@docbrasil/api-systemmanager 1.1.61 → 1.1.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/doc/api.md CHANGED
@@ -2282,7 +2282,7 @@ Retrieves the Kanban board data for a specified organization process
2282
2282
  | params | <code>Object</code> | Parameters object |
2283
2283
  | params.orgId | <code>string</code> | Organization id (_id database) |
2284
2284
  | params.orgProcessName | <code>string</code> | The name of the organization process |
2285
- | params.flowName | <code>string</code> | Flow name for the specific kanban flow |
2285
+ | params.flowId | <code>string</code> | Flow id for the specific kanban flow |
2286
2286
  | session | <code>string</code> | Session, token JWT |
2287
2287
 
2288
2288
  **Example**
@@ -2292,7 +2292,7 @@ const api = new API();
2292
2292
  const params = {
2293
2293
  orgId: '55e4a3bd6be6b45210833fae',
2294
2294
  orgProcessName: 'employee-onboarding',
2295
- flowName: 'approval-flow'
2295
+ flowId: 'Task_16888el'
2296
2296
  };
2297
2297
  const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
2298
2298
  const kanbanData = await api.user.kanban.get(params, session);
@@ -2547,7 +2547,7 @@ Updates the status list order for a specific flow in an organization process on
2547
2547
  | params | <code>Object</code> | Parameters object |
2548
2548
  | params.orgId | <code>string</code> | Organization id (_id database) |
2549
2549
  | params.orgProcessName | <code>string</code> | The name of the organization process |
2550
- | params.flowName | <code>string</code> | The name of the organization process step flowName |
2550
+ | params.flowId | <code>string</code> | The id of the organization process step flowId |
2551
2551
  | params.statusList | <code>Array</code> | The status list with new order |
2552
2552
  | params.statusList[ | <code>Object</code> | Status object configuration |
2553
2553
  | params.statusList[].value | <code>string</code> | The title of the status |
@@ -2562,7 +2562,7 @@ const api = new API();
2562
2562
  const params = {
2563
2563
  orgId: '55e4a3bd6be6b45210833fae',
2564
2564
  orgProcessName: 'employee-onboarding',
2565
- flowName: 'approval-flow',
2565
+ flowId: 'Task_16888el',
2566
2566
  statusList: [
2567
2567
  { value: 'Pending', expanded: true, color: '#FF6B6B' },
2568
2568
  { value: 'In Progress', expanded: true, color: '#4ECDC4' },
package/docs/Kanban.html CHANGED
@@ -711,7 +711,7 @@ Expected response structure (error):
711
711
 
712
712
  <tr class="deep-level-1">
713
713
 
714
- <td class="name"><code>flowName</code></td>
714
+ <td class="name"><code>flowId</code></td>
715
715
 
716
716
 
717
717
  <td class="type">
@@ -727,7 +727,7 @@ Expected response structure (error):
727
727
 
728
728
 
729
729
 
730
- <td class="description last">Flow name for the specific kanban flow</td>
730
+ <td class="description last">Flow id for the specific kanban flow</td>
731
731
  </tr>
732
732
 
733
733
 
@@ -1012,7 +1012,7 @@ const api = new API();
1012
1012
  const params = {
1013
1013
  orgId: '55e4a3bd6be6b45210833fae',
1014
1014
  orgProcessName: 'employee-onboarding',
1015
- flowName: 'approval-flow'
1015
+ flowId: 'Task_16888el'
1016
1016
  };
1017
1017
  const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
1018
1018
  const kanbanData = await api.user.kanban.get(params, session);
@@ -1538,7 +1538,7 @@ Expected response structure (error):
1538
1538
 
1539
1539
  <tr class="deep-level-1">
1540
1540
 
1541
- <td class="name"><code>flowName</code></td>
1541
+ <td class="name"><code>flowId</code></td>
1542
1542
 
1543
1543
 
1544
1544
  <td class="type">
@@ -1554,7 +1554,7 @@ Expected response structure (error):
1554
1554
 
1555
1555
 
1556
1556
 
1557
- <td class="description last">The name of the organization process step flowName</td>
1557
+ <td class="description last">The id of the organization process step flowId</td>
1558
1558
  </tr>
1559
1559
 
1560
1560
 
@@ -1864,7 +1864,7 @@ const api = new API();
1864
1864
  const params = {
1865
1865
  orgId: '55e4a3bd6be6b45210833fae',
1866
1866
  orgProcessName: 'employee-onboarding',
1867
- flowName: 'approval-flow',
1867
+ flowId: 'Task_16888el',
1868
1868
  statusList: [
1869
1869
  { value: 'Pending', expanded: true, color: '#FF6B6B' },
1870
1870
  { value: 'In Progress', expanded: true, color: '#4ECDC4' },
@@ -144,7 +144,7 @@ class Kanban {
144
144
  * @param {Object} params - Parameters object
145
145
  * @param {string} params.orgId - Organization id (_id database)
146
146
  * @param {string} params.orgProcessName - The name of the organization process
147
- * @param {string} params.flowName - Flow name for the specific kanban flow
147
+ * @param {string} params.flowId - Flow id for the specific kanban flow
148
148
  * @param {string} session - Session, token JWT
149
149
  * @returns {promise} Promise that resolves to Kanban board data
150
150
  * @returns {Object} returns.data - The response data containing:
@@ -163,7 +163,7 @@ class Kanban {
163
163
  * const params = {
164
164
  * orgId: '55e4a3bd6be6b45210833fae',
165
165
  * orgProcessName: 'employee-onboarding',
166
- * flowName: 'approval-flow'
166
+ * flowId: 'Task_16888el'
167
167
  * };
168
168
  * const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
169
169
  * const kanbanData = await api.user.kanban.get(params, session);
@@ -199,13 +199,13 @@ class Kanban {
199
199
  Joi.assert(params, Joi.object().required(), 'Params to get task');
200
200
  Joi.assert(params.orgId, Joi.string().required(), 'Organization id (_id database)');
201
201
  Joi.assert(params.orgProcessName, Joi.string().required(), 'The organization process name');
202
- Joi.assert(params.flowName, Joi.string().required(), 'Flow name for the specific kanban flow');
202
+ Joi.assert(params.flowId, Joi.string().required(), 'Flow id for the specific kanban flow');
203
203
  Joi.assert(session, Joi.string().required(), 'Session token JWT');
204
204
 
205
- const { orgId, orgProcessName, flowName } = params;
205
+ const { orgId, orgProcessName, flowId } = params;
206
206
 
207
- // Build API endpoint with flowName as part of the path
208
- const endpoint = `/organization/${orgId}/kanban/${orgProcessName}/flow/${flowName}`;
207
+ // Build API endpoint with flowId as part of the path
208
+ const endpoint = `/organization/${orgId}/kanban/${orgProcessName}/flow/${flowId}`;
209
209
 
210
210
  const apiCall = self._client
211
211
  .get(endpoint, self._setHeader(session));
@@ -527,7 +527,7 @@ class Kanban {
527
527
  * @param {Object} params - Parameters object
528
528
  * @param {string} params.orgId - Organization id (_id database)
529
529
  * @param {string} params.orgProcessName - The name of the organization process
530
- * @param {string} params.flowName - The name of the organization process step flowName
530
+ * @param {string} params.flowId - The id of the organization process step flowId
531
531
  * @param {Array} params.statusList - The status list with new order
532
532
  * @param {Object} params.statusList[] - Status object configuration
533
533
  * @param {string} params.statusList[].value - The title of the status
@@ -546,7 +546,7 @@ class Kanban {
546
546
  * const params = {
547
547
  * orgId: '55e4a3bd6be6b45210833fae',
548
548
  * orgProcessName: 'employee-onboarding',
549
- * flowName: 'approval-flow',
549
+ * flowId: 'Task_16888el',
550
550
  * statusList: [
551
551
  * { value: 'Pending', expanded: true, color: '#FF6B6B' },
552
552
  * { value: 'In Progress', expanded: true, color: '#4ECDC4' },
@@ -575,14 +575,14 @@ class Kanban {
575
575
  Joi.assert(params, Joi.object().required(), 'Params to update status list');
576
576
  Joi.assert(params.orgId, Joi.string().required(), 'Organization id (_id database)');
577
577
  Joi.assert(params.orgProcessName, Joi.string().required(), 'The name of the organization process');
578
- Joi.assert(params.flowName, Joi.string().required(), 'The name of the organization process step flowName');
578
+ Joi.assert(params.flowId, Joi.string().required(), 'The id of the organization process step flowId');
579
579
  Joi.assert(params.statusList, Joi.array().required(), 'The status list with new order');
580
580
  Joi.assert(session, Joi.string().required(), 'Session token JWT');
581
581
 
582
- const { orgId, orgProcessName, flowName, statusList } = params;
582
+ const { orgId, orgProcessName, flowId, statusList } = params;
583
583
 
584
584
  // Build API endpoint for updating status list
585
- const endpoint = `/organization/${orgId}/kanban/${orgProcessName}/flow/${flowName}`;
585
+ const endpoint = `/organization/${orgId}/kanban/${orgProcessName}/flow/${flowId}`;
586
586
 
587
587
  const apiCall = self._client
588
588
  .put(endpoint, { statusList }, self._setHeader(session));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@docbrasil/api-systemmanager",
3
3
  "description": "Module API System Manager",
4
- "version": "1.1.61",
4
+ "version": "1.1.63",
5
5
  "scripts": {
6
6
  "htmldoc": "rm -rf docs && jsdoc api/** -d docs -t ./node_modules/better-docs",
7
7
  "doc": "rm -rf doc && mkdir doc && jsdoc2md api/**/* api/* > doc/api.md",