@docbrasil/api-systemmanager 1.1.61 → 1.1.62

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);
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);
@@ -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
207
  // Build API endpoint with flowName as part of the path
208
- const endpoint = `/organization/${orgId}/kanban/${orgProcessName}/flow/${flowName}`;
208
+ const endpoint = `/organization/${orgId}/kanban/${orgProcessName}/flow/${flowId}`;
209
209
 
210
210
  const apiCall = self._client
211
211
  .get(endpoint, 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.62",
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",