@outliant/sunrise-utils
v1.2.4
Published
Helper functions for project Sunrise
Downloads
79
Readme
Sunrise Utils
A Node.js package that contains code which is commonly used Project Sunrise
You have the following utils available:
log
: Custom logging for sunrise projectsfieldConditions
: Returns an array for sunrise column filterstaskPipeline
: Task pipeline reusable codestaskStatusOptions
: Array of task status column optionsdefaultCustomColumns
: Array of task pipeline custom columnsbuildFiltersQuery(orgId, departmentId, filters = [], query = {}, searchFields = [])
: Function to build task pipeline filter ES queryorgId
: Organization IDdepartmentId
: Department IDfilters
: Array of filtersquery
: Query request params that includessize
,projectId
,search
searchFields
: Array of fields that thesearch
will run against including the defaults
buildSortScript(query = {}, customSort = [])
: Function to build task pipeline sort scriptquery
: Query request params that includessort
,sortBy
customSort
: Array of custom ES sorting script that will be appended to the list of sorting script
projectPipeline
: Project pipeline reusable codesbuildFiltersQuery(orgId, departmentId, filters = [], query = {}, searchFields = [])
: Function to build task pipeline filter ES queryorgId
: Organization IDdepartmentId
: Department IDfilters
: Array of filtersquery
: Query request params that includessize
,projectId
,search
searchFields
: Array of fields that thesearch
will run against including the defaults
buildSortScript(query = {}, customSort = [])
: Function to build task pipeline sort scriptquery
: Query request params that includessort
,sortBy
customSort
: Array of custom ES sorting script that will be appended to the list of sorting script
Installation
npm i @outliant/sunrise-utils