@docbrasil/api-systemmanager 1.1.19 → 1.1.20
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/api/admin/doctypes.js +3 -3
- package/api/admin/document.js +7 -7
- package/api/admin/form.js +3 -3
- package/api/admin/index.js +1 -1
- package/api/admin/list.js +3 -3
- package/api/admin/message.js +2 -2
- package/api/admin/notification.js +5 -5
- package/api/admin/organization.js +3 -3
- package/api/admin/plugin.js +2 -2
- package/api/admin/policy.js +3 -3
- package/api/admin/processes.js +4 -4
- package/api/admin/task.js +3 -3
- package/api/admin/user.js +6 -6
- package/api/dispatch.js +2 -2
- package/api/external.js +5 -5
- package/api/general/geoLocation.js +3 -3
- package/api/general/index.js +1 -1
- package/api/login.js +7 -7
- package/api/session.js +1 -1
- package/api/user/application.js +2 -2
- package/api/user/datasource.js +2 -2
- package/api/user/document.js +13 -13
- package/api/user/help.js +2 -2
- package/api/user/index.js +1 -1
- package/api/user/my_tasks.js +12 -12
- package/api/user/notification.js +4 -4
- package/api/user/organization.js +4 -4
- package/api/user/page.js +2 -2
- package/api/user/process.js +12 -12
- package/api/user/register.js +4 -4
- package/api/user/settings.js +5 -5
- package/api/user/task.js +41 -4
- package/api/user/task_available.js +3 -3
- package/api/user/updates.js +1 -1
- package/api/user/user.js +8 -8
- package/dist/bundle.cjs +180 -143
- package/dist/bundle.mjs +1 -1
- package/doc/api.md +129 -102
- package/docs/Admin.html +1 -1
- package/docs/AdminDocuments.html +6 -6
- package/docs/AdminForm.html +2 -2
- package/docs/AdminLists.html +2 -2
- package/docs/AdminNotification.html +4 -4
- package/docs/AdminPlugin.html +1 -1
- package/docs/AdminPolicy.html +1 -1
- package/docs/AdminProcesses.html +2 -2
- package/docs/AdminTask.html +1 -1
- package/docs/AdminUser.html +4 -4
- package/docs/Application.html +1 -1
- package/docs/Datasource.html +1 -1
- package/docs/Dispatch.html +1 -1
- package/docs/Documents.html +10 -10
- package/docs/External.html +4 -4
- package/docs/GeoLocation.html +1 -1
- package/docs/Help.html +1 -1
- package/docs/Login.html +6 -6
- package/docs/MyTasks.html +10 -10
- package/docs/Notification.html +3 -3
- package/docs/Organization.html +6 -6
- package/docs/Page.html +1 -1
- package/docs/Process.html +9 -9
- package/docs/Register.html +3 -3
- package/docs/Settings.html +3 -3
- package/docs/Task.html +287 -3
- package/docs/TaskAvailable.html +2 -2
- package/docs/User.html +6 -6
- package/docs/Users.html +2 -2
- package/docs/admin_doctypes.js.html +3 -3
- package/docs/admin_document.js.html +7 -7
- package/docs/admin_form.js.html +3 -3
- package/docs/admin_index.js.html +1 -1
- package/docs/admin_list.js.html +3 -3
- package/docs/admin_message.js.html +2 -2
- package/docs/admin_notification.js.html +5 -5
- package/docs/admin_organization.js.html +3 -3
- package/docs/admin_plugin.js.html +2 -2
- package/docs/admin_policy.js.html +3 -3
- package/docs/admin_processes.js.html +4 -4
- package/docs/admin_task.js.html +3 -3
- package/docs/admin_user.js.html +6 -6
- package/docs/dispatch.js.html +2 -2
- package/docs/external.js.html +5 -5
- package/docs/general_geoLocation.js.html +3 -3
- package/docs/general_index.js.html +1 -1
- package/docs/login.js.html +7 -7
- package/docs/session.js.html +1 -1
- package/docs/user_application.js.html +2 -2
- package/docs/user_datasource.js.html +2 -2
- package/docs/user_document.js.html +13 -13
- package/docs/user_help.js.html +2 -2
- package/docs/user_index.js.html +1 -1
- package/docs/user_my_tasks.js.html +11 -11
- package/docs/user_notification.js.html +4 -4
- package/docs/user_organization.js.html +4 -4
- package/docs/user_page.js.html +2 -2
- package/docs/user_process.js.html +12 -12
- package/docs/user_register.js.html +4 -4
- package/docs/user_settings.js.html +5 -5
- package/docs/user_task.js.html +41 -4
- package/docs/user_task_available.js.html +3 -3
- package/docs/user_updates.js.html +1 -1
- package/docs/user_user.js.html +8 -8
- package/package.json +1 -1
- package/.project +0 -11
package/dist/bundle.cjs
CHANGED
|
@@ -45,7 +45,7 @@ class Dispatch {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* @author
|
|
48
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
49
49
|
* @description Set header with new session
|
|
50
50
|
* @param {string} session Session, token JWT
|
|
51
51
|
* @return {object} header with new session
|
|
@@ -89,7 +89,7 @@ class Dispatch {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
* @author
|
|
92
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
93
93
|
* @description Get client Axios
|
|
94
94
|
* @return {promise} return client axios
|
|
95
95
|
* @public
|
|
@@ -143,7 +143,7 @@ class Session {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
|
-
* @author
|
|
146
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
147
147
|
* @description Set header with new session
|
|
148
148
|
* @param {string} session Session, token JWT
|
|
149
149
|
* @return {object} header with new session
|
|
@@ -221,7 +221,7 @@ class Login {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
|
-
* @author
|
|
224
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
225
225
|
* @description Set header with new session
|
|
226
226
|
* @param {string} session Session, token JWT
|
|
227
227
|
* @return {object} header with new session
|
|
@@ -236,7 +236,7 @@ class Login {
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
/**
|
|
239
|
-
* @author
|
|
239
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
240
240
|
* @description Login with social login Facebook
|
|
241
241
|
* @param {object} params Params to login Facebook
|
|
242
242
|
* @param {string} params.accessToken Access token of the system manager
|
|
@@ -276,7 +276,7 @@ class Login {
|
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
/**
|
|
279
|
-
* @author
|
|
279
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
280
280
|
* @description Login with social login Google
|
|
281
281
|
* @param {object} params Params to login Google
|
|
282
282
|
* @param {string} params.accessToken Access token of the system manager
|
|
@@ -316,7 +316,7 @@ class Login {
|
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
/**
|
|
319
|
-
* @author
|
|
319
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
320
320
|
* @description Login with apikey
|
|
321
321
|
* @param {string} apikey Access key
|
|
322
322
|
* @return {promise<object>} data
|
|
@@ -347,7 +347,7 @@ class Login {
|
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
/**
|
|
350
|
-
* @author
|
|
350
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
351
351
|
* @description Login with user and password
|
|
352
352
|
* @param {object} params Object with user and password
|
|
353
353
|
* @param {string} params.username Username or email of the user
|
|
@@ -391,7 +391,7 @@ class Login {
|
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
/**
|
|
394
|
-
* @author
|
|
394
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
395
395
|
* @description Logout user system manager
|
|
396
396
|
* @param {string} session Session, token JWT
|
|
397
397
|
* @return {promise<object>}} data
|
|
@@ -422,7 +422,7 @@ class Login {
|
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
/**
|
|
425
|
-
* @author
|
|
425
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
426
426
|
* @description Recover the password
|
|
427
427
|
* @param {string} username The username or email
|
|
428
428
|
* @return {promise<object>}} data
|
|
@@ -469,7 +469,7 @@ class GeoLocation {
|
|
|
469
469
|
}
|
|
470
470
|
|
|
471
471
|
/**
|
|
472
|
-
* @author
|
|
472
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
473
473
|
* @description Get the return data and check for errors
|
|
474
474
|
* @param {object} retData Response HTTP
|
|
475
475
|
* @return {*}
|
|
@@ -484,7 +484,7 @@ class GeoLocation {
|
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
/**
|
|
487
|
-
* @author
|
|
487
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
488
488
|
* @description Set header with new session
|
|
489
489
|
* @param {string} session Session, token JWT
|
|
490
490
|
* @return {object} header with new session
|
|
@@ -499,7 +499,7 @@ class GeoLocation {
|
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
/**
|
|
502
|
-
* @author
|
|
502
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
503
503
|
* @description Get geo location of the address
|
|
504
504
|
* @param {!object} params - Params to get geo location
|
|
505
505
|
* @param {!string} params.address - The address to get the location for
|
|
@@ -541,7 +541,7 @@ class GeoLocation {
|
|
|
541
541
|
*/
|
|
542
542
|
class Users$1 {
|
|
543
543
|
/**
|
|
544
|
-
* @author
|
|
544
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
545
545
|
* @constructor
|
|
546
546
|
* @param {object} options Params of the constructor
|
|
547
547
|
* @param {object} options.parent This of the pararent
|
|
@@ -599,7 +599,7 @@ class Documents {
|
|
|
599
599
|
}
|
|
600
600
|
|
|
601
601
|
/**
|
|
602
|
-
* @author
|
|
602
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
603
603
|
* @description Set header with new session
|
|
604
604
|
* @param {string} session Session, token JWT
|
|
605
605
|
* @return {object} header with new session
|
|
@@ -614,7 +614,7 @@ class Documents {
|
|
|
614
614
|
}
|
|
615
615
|
|
|
616
616
|
/**
|
|
617
|
-
* @author
|
|
617
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
618
618
|
* @description Create document with informed data
|
|
619
619
|
* @param {object} params Object for add new document
|
|
620
620
|
* @param {string} params.orgname Organization name
|
|
@@ -678,7 +678,7 @@ class Documents {
|
|
|
678
678
|
}
|
|
679
679
|
|
|
680
680
|
/**
|
|
681
|
-
* @author
|
|
681
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
682
682
|
* @description Transform objtect query in query string
|
|
683
683
|
* @param {object} searchQuery object wicth query
|
|
684
684
|
* @return {string} Retutn string query
|
|
@@ -702,7 +702,7 @@ class Documents {
|
|
|
702
702
|
}
|
|
703
703
|
|
|
704
704
|
/**
|
|
705
|
-
* @author
|
|
705
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
706
706
|
* @description Create new document
|
|
707
707
|
* @param {object} params Object for add new document
|
|
708
708
|
* @param {string} params.orgname Organization name
|
|
@@ -791,7 +791,7 @@ class Documents {
|
|
|
791
791
|
}
|
|
792
792
|
|
|
793
793
|
/**
|
|
794
|
-
* @author
|
|
794
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
795
795
|
* @description Updates a document
|
|
796
796
|
* @param {string} id Document _id
|
|
797
797
|
* @param {object} params Object for document payload to update. It has to be the FULL document data, that you can get with findById
|
|
@@ -824,7 +824,7 @@ class Documents {
|
|
|
824
824
|
}
|
|
825
825
|
|
|
826
826
|
/**
|
|
827
|
-
* @author
|
|
827
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
828
828
|
* @description Updates a document.
|
|
829
829
|
* IMPORTANT: if your document has a content, it will NOT bring the content.
|
|
830
830
|
* @param {string} id Document _id
|
|
@@ -857,7 +857,7 @@ class Documents {
|
|
|
857
857
|
}
|
|
858
858
|
|
|
859
859
|
/**
|
|
860
|
-
* @author
|
|
860
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
861
861
|
* @param {object} params Object with params
|
|
862
862
|
* @param {string} params.index Field to search
|
|
863
863
|
* @param {string} params.txtToSearch Text to search
|
|
@@ -949,7 +949,7 @@ class Documents {
|
|
|
949
949
|
}
|
|
950
950
|
|
|
951
951
|
/**
|
|
952
|
-
* @author
|
|
952
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
953
953
|
* @description Remove document by id
|
|
954
954
|
* @param {object} params Params to remove document
|
|
955
955
|
* @param {string} params.docId Document Id (_id database)
|
|
@@ -993,7 +993,7 @@ class Documents {
|
|
|
993
993
|
}
|
|
994
994
|
|
|
995
995
|
/**
|
|
996
|
-
* @author
|
|
996
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
997
997
|
* @description Remove documents
|
|
998
998
|
* @param {object} params Params to remove document
|
|
999
999
|
* @param {array<string>} params.documents An array ids of documents (_id database)
|
|
@@ -1039,7 +1039,7 @@ class Documents {
|
|
|
1039
1039
|
|
|
1040
1040
|
/**
|
|
1041
1041
|
*
|
|
1042
|
-
* @author
|
|
1042
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1043
1043
|
* @description Request signed url url to put or get
|
|
1044
1044
|
* @param {object} params Params to request signed url
|
|
1045
1045
|
* @param {string} params.methodType Method type HTTP get or put
|
|
@@ -1128,7 +1128,7 @@ class Documents {
|
|
|
1128
1128
|
|
|
1129
1129
|
/**
|
|
1130
1130
|
*
|
|
1131
|
-
* @author
|
|
1131
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1132
1132
|
* @description Request signed url url to put or get
|
|
1133
1133
|
* @param {object} params Params to request signed url
|
|
1134
1134
|
* @param {array} params.docs the list of documents to get the signed urls
|
|
@@ -1258,7 +1258,7 @@ class Documents {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
|
|
1260
1260
|
/**
|
|
1261
|
-
* @author
|
|
1261
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1262
1262
|
* Checks if a document can be added and it does not repeat its primary key
|
|
1263
1263
|
* @param params
|
|
1264
1264
|
* @param params.orgId {string} the organization id
|
|
@@ -1312,7 +1312,7 @@ class Documents {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
|
|
1314
1314
|
/**
|
|
1315
|
-
* @author
|
|
1315
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1316
1316
|
* @description Method to search documents for
|
|
1317
1317
|
* @param {object} params Params to search the documents
|
|
1318
1318
|
* @param {object} params.query Search documents query
|
|
@@ -1387,7 +1387,7 @@ class Organization$1 {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
|
|
1389
1389
|
/**
|
|
1390
|
-
* @author
|
|
1390
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1391
1391
|
* @description Set header with new session
|
|
1392
1392
|
* @param {string} session Session, token JWT
|
|
1393
1393
|
* @return {object} header with new session
|
|
@@ -1460,7 +1460,7 @@ class Organization$1 {
|
|
|
1460
1460
|
}
|
|
1461
1461
|
|
|
1462
1462
|
/**
|
|
1463
|
-
* @author
|
|
1463
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1464
1464
|
* @description Update avatar of organization by session of user not allow session user SU
|
|
1465
1465
|
* @param {object} params Params to update avatar
|
|
1466
1466
|
* @param {string} params.avatar Image in base64 to update
|
|
@@ -1500,7 +1500,7 @@ class Organization$1 {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
|
|
1502
1502
|
/**
|
|
1503
|
-
* @author
|
|
1503
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1504
1504
|
* @description Remove avatar of user by session of user not allow session user SU
|
|
1505
1505
|
* @param {string} session Is token JWT of user NOT allow SU
|
|
1506
1506
|
* @return {Promise}
|
|
@@ -1527,7 +1527,7 @@ class Organization$1 {
|
|
|
1527
1527
|
}
|
|
1528
1528
|
|
|
1529
1529
|
/**
|
|
1530
|
-
* @author
|
|
1530
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1531
1531
|
* @description Call URL internal, need auth JWT (session)
|
|
1532
1532
|
* @param {!object} params Params to call fectch (URL internal)
|
|
1533
1533
|
* @param {!string} params.url URL to call
|
|
@@ -1596,7 +1596,7 @@ class Process {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
|
|
1598
1598
|
/**
|
|
1599
|
-
* @author
|
|
1599
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1600
1600
|
* @description Get the return data and check for errors
|
|
1601
1601
|
* @param {object} retData Response HTTP
|
|
1602
1602
|
* @return {*}
|
|
@@ -1611,7 +1611,7 @@ class Process {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
|
|
1613
1613
|
/**
|
|
1614
|
-
* @author
|
|
1614
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1615
1615
|
* @description Set header with new session
|
|
1616
1616
|
* @param {string} session Session, token JWT
|
|
1617
1617
|
* @return {object} header with new session
|
|
@@ -1626,7 +1626,7 @@ class Process {
|
|
|
1626
1626
|
}
|
|
1627
1627
|
|
|
1628
1628
|
/**
|
|
1629
|
-
* @author
|
|
1629
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1630
1630
|
* @description Set header for a bigger payload
|
|
1631
1631
|
* @param {string} session Session, token JWT
|
|
1632
1632
|
* @return {object} header with new session
|
|
@@ -1643,7 +1643,7 @@ class Process {
|
|
|
1643
1643
|
}
|
|
1644
1644
|
|
|
1645
1645
|
/**
|
|
1646
|
-
* @author
|
|
1646
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1647
1647
|
* @description Start process
|
|
1648
1648
|
* @param {object} params Params to start process
|
|
1649
1649
|
* @param {string} params.orgProcessId The organization process id (_id database);
|
|
@@ -1684,7 +1684,7 @@ class Process {
|
|
|
1684
1684
|
}
|
|
1685
1685
|
|
|
1686
1686
|
/**
|
|
1687
|
-
* @author
|
|
1687
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1688
1688
|
* @description Get process properties of process
|
|
1689
1689
|
* @param {object} params Params to get process properties
|
|
1690
1690
|
* @param {string} params.processId Process id (_id database);
|
|
@@ -1722,7 +1722,7 @@ class Process {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
|
|
1724
1724
|
/**
|
|
1725
|
-
* @author
|
|
1725
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1726
1726
|
* @description Get the search info of a organization process
|
|
1727
1727
|
* @param {object} params Params to get search info
|
|
1728
1728
|
* @param {string} params.orgProcessId The id of an organization process (_id database);
|
|
@@ -1766,7 +1766,7 @@ class Process {
|
|
|
1766
1766
|
}
|
|
1767
1767
|
|
|
1768
1768
|
/**
|
|
1769
|
-
* @author
|
|
1769
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1770
1770
|
* @description Method to search processes
|
|
1771
1771
|
* @param {object} params Params to search processes
|
|
1772
1772
|
* @param {object} params.query Search process query
|
|
@@ -1810,7 +1810,7 @@ class Process {
|
|
|
1810
1810
|
}
|
|
1811
1811
|
|
|
1812
1812
|
/**
|
|
1813
|
-
* @author
|
|
1813
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1814
1814
|
* @description Method to remove process
|
|
1815
1815
|
* @param {object} params Params to remove process
|
|
1816
1816
|
* @param {object} params.orgId Organization id (_id database)
|
|
@@ -1847,7 +1847,7 @@ class Process {
|
|
|
1847
1847
|
}
|
|
1848
1848
|
|
|
1849
1849
|
/**
|
|
1850
|
-
* @author
|
|
1850
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1851
1851
|
* @description Method to export status data
|
|
1852
1852
|
* @param {object} params Params to export status data
|
|
1853
1853
|
* @param {object} params.query Search process query
|
|
@@ -1886,7 +1886,7 @@ class Process {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
|
|
1888
1888
|
/**
|
|
1889
|
-
* @author
|
|
1889
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1890
1890
|
* @description Method to export process data
|
|
1891
1891
|
* @param {object} params Params to export process data
|
|
1892
1892
|
* @param {object} params.query Search process query
|
|
@@ -1925,7 +1925,7 @@ class Process {
|
|
|
1925
1925
|
}
|
|
1926
1926
|
|
|
1927
1927
|
/**
|
|
1928
|
-
* @author
|
|
1928
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1929
1929
|
* @description Method to get Process Docs
|
|
1930
1930
|
* @param {object} params Params to get process docs
|
|
1931
1931
|
* @param {string} params.orgProcessId Organization Process Id
|
|
@@ -1966,7 +1966,7 @@ class Process {
|
|
|
1966
1966
|
}
|
|
1967
1967
|
|
|
1968
1968
|
/**
|
|
1969
|
-
* @author
|
|
1969
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
1970
1970
|
* @description Method to download the process documents
|
|
1971
1971
|
* @param {object} params Params to download the process documents
|
|
1972
1972
|
* @param {string} params.orgId Organization id (_id database)
|
|
@@ -2049,7 +2049,7 @@ class TaskAvailable {
|
|
|
2049
2049
|
}
|
|
2050
2050
|
|
|
2051
2051
|
/**
|
|
2052
|
-
* @author
|
|
2052
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2053
2053
|
* @description Set header with new session
|
|
2054
2054
|
* @param {string} session Session, token JWT
|
|
2055
2055
|
* @return {object} header with new session
|
|
@@ -2064,7 +2064,7 @@ class TaskAvailable {
|
|
|
2064
2064
|
}
|
|
2065
2065
|
|
|
2066
2066
|
/**
|
|
2067
|
-
* @author
|
|
2067
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2068
2068
|
* @description Method to find available tasks for a user
|
|
2069
2069
|
* @param {object} params Params to get task
|
|
2070
2070
|
* @param {object} params.query Search available tasks query
|
|
@@ -2108,7 +2108,7 @@ class TaskAvailable {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
|
|
2110
2110
|
/**
|
|
2111
|
-
* @author
|
|
2111
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2112
2112
|
* @description Method for a user to claim an available task
|
|
2113
2113
|
* @param {object} params Params to get task
|
|
2114
2114
|
* @param {object} params.taskId the task id to claim
|
|
@@ -2179,7 +2179,7 @@ class MyTasks {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
|
|
2181
2181
|
/**
|
|
2182
|
-
* @author
|
|
2182
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2183
2183
|
* @description Set header with new session
|
|
2184
2184
|
* @param {string} session Session, token JWT
|
|
2185
2185
|
* @return {object} header with new session
|
|
@@ -2194,7 +2194,7 @@ class MyTasks {
|
|
|
2194
2194
|
}
|
|
2195
2195
|
|
|
2196
2196
|
/**
|
|
2197
|
-
* @author
|
|
2197
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2198
2198
|
* @description Method to find my tasks for a user
|
|
2199
2199
|
* @param {object} params Params to get tasks
|
|
2200
2200
|
* @param {object} params.query Search my tasks query
|
|
@@ -2211,7 +2211,7 @@ class MyTasks {
|
|
|
2211
2211
|
* const API = require('@docbrasil/api-systemmanager');
|
|
2212
2212
|
* const api = new API();
|
|
2213
2213
|
* const params = {
|
|
2214
|
-
* query: {"s":[{"historyBegin":{"order":"desc"}}],"i":1,"p":20
|
|
2214
|
+
* query: {"s":[{"historyBegin":{"order":"desc"}}],"i":1,"p":20},
|
|
2215
2215
|
* orgId: '55e4a3bd6be6b45210833fae',
|
|
2216
2216
|
* };
|
|
2217
2217
|
* const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
@@ -2238,7 +2238,7 @@ class MyTasks {
|
|
|
2238
2238
|
}
|
|
2239
2239
|
|
|
2240
2240
|
/**
|
|
2241
|
-
* @author
|
|
2241
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2242
2242
|
* @description Update task dueDate
|
|
2243
2243
|
* @param {object} params The Date to save
|
|
2244
2244
|
* @param {string} params.dueDate DueDate
|
|
@@ -2280,7 +2280,7 @@ class MyTasks {
|
|
|
2280
2280
|
}
|
|
2281
2281
|
|
|
2282
2282
|
/**
|
|
2283
|
-
* @author
|
|
2283
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2284
2284
|
* @description Update task dueDate
|
|
2285
2285
|
* @param {string} data.orgId Organization id
|
|
2286
2286
|
* @param {string} data.taskId Task Id
|
|
@@ -2318,7 +2318,7 @@ class MyTasks {
|
|
|
2318
2318
|
}
|
|
2319
2319
|
|
|
2320
2320
|
/**
|
|
2321
|
-
* @author
|
|
2321
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2322
2322
|
* @description Method to get task multi users
|
|
2323
2323
|
* @param {object} params Params to get task
|
|
2324
2324
|
* @param {object} params.taskId Task id (_id database)
|
|
@@ -2357,7 +2357,7 @@ class MyTasks {
|
|
|
2357
2357
|
}
|
|
2358
2358
|
|
|
2359
2359
|
/**
|
|
2360
|
-
* @author
|
|
2360
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2361
2361
|
* @description remove multi task user
|
|
2362
2362
|
* @param {object} params Params of the user to be removed
|
|
2363
2363
|
* @param {string} params.userId User id
|
|
@@ -2399,7 +2399,7 @@ class MyTasks {
|
|
|
2399
2399
|
}
|
|
2400
2400
|
|
|
2401
2401
|
/**
|
|
2402
|
-
* @author
|
|
2402
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2403
2403
|
* @description Add Multi Task User
|
|
2404
2404
|
* @param {object} params Params for adding multi task user
|
|
2405
2405
|
* @param {string} params.userId User id
|
|
@@ -2441,7 +2441,7 @@ class MyTasks {
|
|
|
2441
2441
|
}
|
|
2442
2442
|
|
|
2443
2443
|
/**
|
|
2444
|
-
* @author
|
|
2444
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2445
2445
|
* @description Method to get assign task users
|
|
2446
2446
|
* @param {object} params Params to get task
|
|
2447
2447
|
* @param {object} params.taskId Task id (_id database)
|
|
@@ -2480,7 +2480,7 @@ class MyTasks {
|
|
|
2480
2480
|
}
|
|
2481
2481
|
|
|
2482
2482
|
/**
|
|
2483
|
-
* @author
|
|
2483
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2484
2484
|
* @description Assign Task user
|
|
2485
2485
|
* @param {object} params The params to assign task to user
|
|
2486
2486
|
* @param {string} params.orgName Organization Name
|
|
@@ -2522,7 +2522,7 @@ class MyTasks {
|
|
|
2522
2522
|
}
|
|
2523
2523
|
|
|
2524
2524
|
/**
|
|
2525
|
-
* @author
|
|
2525
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2526
2526
|
* @description Unclaim task
|
|
2527
2527
|
* @param {object} params The params to unclaim task
|
|
2528
2528
|
* @param {string} params.orgName Organization Name
|
|
@@ -2561,7 +2561,7 @@ class MyTasks {
|
|
|
2561
2561
|
}
|
|
2562
2562
|
|
|
2563
2563
|
/**
|
|
2564
|
-
* @author
|
|
2564
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2565
2565
|
* @description Escalate task
|
|
2566
2566
|
* @param {object} params The params to escalate task
|
|
2567
2567
|
* @param {string} params.orgName Organization Name
|
|
@@ -2633,7 +2633,7 @@ class Task {
|
|
|
2633
2633
|
}
|
|
2634
2634
|
|
|
2635
2635
|
/**
|
|
2636
|
-
* @author
|
|
2636
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2637
2637
|
* @description Set header with new session
|
|
2638
2638
|
* @param {string} session Session, token JWT
|
|
2639
2639
|
* @return {object} header with new session
|
|
@@ -2648,7 +2648,7 @@ class Task {
|
|
|
2648
2648
|
}
|
|
2649
2649
|
|
|
2650
2650
|
/**
|
|
2651
|
-
* @author
|
|
2651
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2652
2652
|
* @description Method to find task by id
|
|
2653
2653
|
* @param {object} params Params to get task
|
|
2654
2654
|
* @param {object} params.processId Proccess id (_id database)
|
|
@@ -2690,7 +2690,7 @@ class Task {
|
|
|
2690
2690
|
}
|
|
2691
2691
|
|
|
2692
2692
|
/**
|
|
2693
|
-
* @author
|
|
2693
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2694
2694
|
* @description Find task by id and update
|
|
2695
2695
|
* @param {object} params Params to update task
|
|
2696
2696
|
* @param {object} params.userId User id (_id database)
|
|
@@ -2752,7 +2752,7 @@ class Task {
|
|
|
2752
2752
|
}
|
|
2753
2753
|
|
|
2754
2754
|
/**
|
|
2755
|
-
* @author
|
|
2755
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2756
2756
|
* @description Find task by id and update
|
|
2757
2757
|
* @param {!object} params Params - to update task
|
|
2758
2758
|
* @param {!string} params.taskId - Task id (_id database)
|
|
@@ -2795,6 +2795,43 @@ class Task {
|
|
|
2795
2795
|
throw ex;
|
|
2796
2796
|
}
|
|
2797
2797
|
}
|
|
2798
|
+
|
|
2799
|
+
/**
|
|
2800
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2801
|
+
* @description Get the tasks and available tasks summary (totals) for specific tags
|
|
2802
|
+
* @param {object} params Params - to update task
|
|
2803
|
+
* @param {array<string>} params.tags - The tags to get task summaries
|
|
2804
|
+
* @param {string} session Session, token JWT
|
|
2805
|
+
* @return {Promise<object>} data
|
|
2806
|
+
* @return {Promise<object>} data.tasks - the total tasks
|
|
2807
|
+
* @return {Promise<object>} data.availableTasks - the total available tasks
|
|
2808
|
+
* @public
|
|
2809
|
+
* @async
|
|
2810
|
+
* @example
|
|
2811
|
+
*
|
|
2812
|
+
* const API = require('@docbrasil/api-systemmanager');
|
|
2813
|
+
* const api = new API();
|
|
2814
|
+
* const params = {
|
|
2815
|
+
* tags: ['INCIDENTS']
|
|
2816
|
+
* };
|
|
2817
|
+
* const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
2818
|
+
* await api.user.task.getSummaryByTags(params, session);
|
|
2819
|
+
*/
|
|
2820
|
+
async getSummaryByTags(params, session) {
|
|
2821
|
+
const self = this;
|
|
2822
|
+
|
|
2823
|
+
try {
|
|
2824
|
+
Joi__default["default"].assert(params, Joi__default["default"].object().required());
|
|
2825
|
+
Joi__default["default"].assert(params.tags, Joi__default["default"].array().required(), 'Tags is required');
|
|
2826
|
+
|
|
2827
|
+
const url = `/organizations/tasks/summary`;
|
|
2828
|
+
const apiCall = self._client.post(url, params, self._setHeader(session));
|
|
2829
|
+
|
|
2830
|
+
return self._returnData(await apiCall);
|
|
2831
|
+
} catch (ex) {
|
|
2832
|
+
throw ex;
|
|
2833
|
+
}
|
|
2834
|
+
}
|
|
2798
2835
|
}
|
|
2799
2836
|
|
|
2800
2837
|
/**
|
|
@@ -2818,7 +2855,7 @@ class User {
|
|
|
2818
2855
|
}
|
|
2819
2856
|
|
|
2820
2857
|
/**
|
|
2821
|
-
* @author
|
|
2858
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2822
2859
|
* @description Get the return data and check for errors
|
|
2823
2860
|
* @param {object} retData Response HTTP
|
|
2824
2861
|
* @return {*}
|
|
@@ -2833,7 +2870,7 @@ class User {
|
|
|
2833
2870
|
}
|
|
2834
2871
|
|
|
2835
2872
|
/**
|
|
2836
|
-
* @author
|
|
2873
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2837
2874
|
* @description Set header with new session
|
|
2838
2875
|
* @param {string} session Session, token JWT
|
|
2839
2876
|
* @return {object} header with new session
|
|
@@ -2848,7 +2885,7 @@ class User {
|
|
|
2848
2885
|
}
|
|
2849
2886
|
|
|
2850
2887
|
/**
|
|
2851
|
-
* @author
|
|
2888
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2852
2889
|
* @description Update avatar of user by session of user not allow session user SU
|
|
2853
2890
|
* @param {object} params Params to update avatar
|
|
2854
2891
|
* @param {string} params.avatar Image in base64 to update
|
|
@@ -2888,7 +2925,7 @@ class User {
|
|
|
2888
2925
|
}
|
|
2889
2926
|
|
|
2890
2927
|
/**
|
|
2891
|
-
* @author
|
|
2928
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2892
2929
|
* @description Remove avatar of user by session of user not allow session user SU
|
|
2893
2930
|
* @param {string} session Is token JWT of user NOT allow SU
|
|
2894
2931
|
* @return {Promise}
|
|
@@ -2915,7 +2952,7 @@ class User {
|
|
|
2915
2952
|
}
|
|
2916
2953
|
|
|
2917
2954
|
/**
|
|
2918
|
-
* @author
|
|
2955
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2919
2956
|
* @description Remove the signature of user by session
|
|
2920
2957
|
* @param {string} session Is token JWT of user NOT allow SU
|
|
2921
2958
|
* @return {Promise}
|
|
@@ -2942,7 +2979,7 @@ class User {
|
|
|
2942
2979
|
}
|
|
2943
2980
|
|
|
2944
2981
|
/**
|
|
2945
|
-
* @author
|
|
2982
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2946
2983
|
* @description Sava a new signature of user by session
|
|
2947
2984
|
* @param {object} data The signature data to save
|
|
2948
2985
|
* @param {string} data.type CURSIVE or HANDWRITE
|
|
@@ -2989,7 +3026,7 @@ class User {
|
|
|
2989
3026
|
}
|
|
2990
3027
|
|
|
2991
3028
|
/**
|
|
2992
|
-
* @author
|
|
3029
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
2993
3030
|
* @description Update a user profile by id
|
|
2994
3031
|
* @param {object} params Params to update task
|
|
2995
3032
|
* @param {string} params.name The name of the user
|
|
@@ -3049,7 +3086,7 @@ class User {
|
|
|
3049
3086
|
}
|
|
3050
3087
|
|
|
3051
3088
|
/**
|
|
3052
|
-
* @author
|
|
3089
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
3053
3090
|
* @description Change a user's organization
|
|
3054
3091
|
* @param {string} id Organization id
|
|
3055
3092
|
* @param {string} session Is token JWT of user NOT allow SU
|
|
@@ -9846,7 +9883,7 @@ class Register {
|
|
|
9846
9883
|
}
|
|
9847
9884
|
|
|
9848
9885
|
/**
|
|
9849
|
-
* @author
|
|
9886
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
9850
9887
|
* @description Set header with new session
|
|
9851
9888
|
* @param {string} session Session, token JWT
|
|
9852
9889
|
* @return {object} header with new session
|
|
@@ -9861,7 +9898,7 @@ class Register {
|
|
|
9861
9898
|
}
|
|
9862
9899
|
|
|
9863
9900
|
/**
|
|
9864
|
-
* @author
|
|
9901
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
9865
9902
|
* @param {object} params.registerId The registerId that comes with the registration page context
|
|
9866
9903
|
* @return {string} orgname The orgname of the organization in the registerId
|
|
9867
9904
|
* @public
|
|
@@ -9880,7 +9917,7 @@ class Register {
|
|
|
9880
9917
|
}
|
|
9881
9918
|
|
|
9882
9919
|
/**
|
|
9883
|
-
* @author
|
|
9920
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
9884
9921
|
* @description Method to find task by id
|
|
9885
9922
|
* @param {object} params Params to get task
|
|
9886
9923
|
* @param {string} params.registerId The registerId that comes with the registration page context
|
|
@@ -9931,7 +9968,7 @@ class Register {
|
|
|
9931
9968
|
}
|
|
9932
9969
|
|
|
9933
9970
|
/**
|
|
9934
|
-
* @author
|
|
9971
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
9935
9972
|
* @description Method to register a user
|
|
9936
9973
|
* @param {object} params Params to get task
|
|
9937
9974
|
* @param {string} params.registerId The registerId that comes with the registration page context
|
|
@@ -10045,7 +10082,7 @@ class Notification {
|
|
|
10045
10082
|
}
|
|
10046
10083
|
|
|
10047
10084
|
/**
|
|
10048
|
-
* @author
|
|
10085
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10049
10086
|
* @description Set header with new session
|
|
10050
10087
|
* @param {string} session Session, token JWT
|
|
10051
10088
|
* @return {object} header with new session
|
|
@@ -10071,7 +10108,7 @@ class Notification {
|
|
|
10071
10108
|
}
|
|
10072
10109
|
|
|
10073
10110
|
/**
|
|
10074
|
-
* @author
|
|
10111
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10075
10112
|
* @description Method to add a notification token
|
|
10076
10113
|
* @param {object} params Params to add notification token
|
|
10077
10114
|
* @param {string} params.token The token
|
|
@@ -10162,7 +10199,7 @@ class Notification {
|
|
|
10162
10199
|
}
|
|
10163
10200
|
|
|
10164
10201
|
/**
|
|
10165
|
-
* @author
|
|
10202
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10166
10203
|
* @description Set notification as readed
|
|
10167
10204
|
* @param {object} params Params to update the notification
|
|
10168
10205
|
* @param {string} params.id Notification Id
|
|
@@ -10198,7 +10235,7 @@ class Notification {
|
|
|
10198
10235
|
}
|
|
10199
10236
|
|
|
10200
10237
|
/**
|
|
10201
|
-
* @author
|
|
10238
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10202
10239
|
* @description Set notification as unreaded
|
|
10203
10240
|
* @param {object} params Params to update the notification
|
|
10204
10241
|
* @param {string} params.id Notification Id
|
|
@@ -10265,7 +10302,7 @@ class Updates {
|
|
|
10265
10302
|
}
|
|
10266
10303
|
|
|
10267
10304
|
/**
|
|
10268
|
-
* @author
|
|
10305
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10269
10306
|
* @description Set header with new session
|
|
10270
10307
|
* @param {string} session Session, token JWT
|
|
10271
10308
|
* @return {object} header with new session
|
|
@@ -10338,7 +10375,7 @@ class Help {
|
|
|
10338
10375
|
}
|
|
10339
10376
|
|
|
10340
10377
|
/**
|
|
10341
|
-
* @author
|
|
10378
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10342
10379
|
* @description Set header with new session
|
|
10343
10380
|
* @param {string} session Session, token JWT
|
|
10344
10381
|
* @return {object} header with new session
|
|
@@ -10384,7 +10421,7 @@ class Help {
|
|
|
10384
10421
|
}
|
|
10385
10422
|
|
|
10386
10423
|
/**
|
|
10387
|
-
* @author
|
|
10424
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10388
10425
|
* @description Method to find helps from a topic
|
|
10389
10426
|
* @param {object} params Params to get helps from topic
|
|
10390
10427
|
* @param {object} params.id Topic id (_id database)
|
|
@@ -10451,7 +10488,7 @@ class Datasource {
|
|
|
10451
10488
|
}
|
|
10452
10489
|
|
|
10453
10490
|
/**
|
|
10454
|
-
* @author
|
|
10491
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10455
10492
|
* @description Set header with new session
|
|
10456
10493
|
* @param {string} session Session, token JWT
|
|
10457
10494
|
* @return {object} header with new session
|
|
@@ -10470,7 +10507,7 @@ class Datasource {
|
|
|
10470
10507
|
}
|
|
10471
10508
|
|
|
10472
10509
|
/**
|
|
10473
|
-
* @author
|
|
10510
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10474
10511
|
* @description Method to get autocomplete data from a datasource
|
|
10475
10512
|
* @param {object} params Params to add notification token
|
|
10476
10513
|
* @param {string} params.orgId The user organization _id
|
|
@@ -10590,7 +10627,7 @@ class Page {
|
|
|
10590
10627
|
}
|
|
10591
10628
|
|
|
10592
10629
|
/**
|
|
10593
|
-
* @author
|
|
10630
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10594
10631
|
* @description Set header with new session
|
|
10595
10632
|
* @param {string} session Session, token JWT
|
|
10596
10633
|
* @return {object} header with new session
|
|
@@ -10605,7 +10642,7 @@ class Page {
|
|
|
10605
10642
|
}
|
|
10606
10643
|
|
|
10607
10644
|
/**
|
|
10608
|
-
* @author
|
|
10645
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10609
10646
|
* @description Get the available page for an application inside an organization
|
|
10610
10647
|
* @param {object} params Params to get task
|
|
10611
10648
|
* @param {object} params.orgId Organization id (_id database)
|
|
@@ -10679,7 +10716,7 @@ class Application {
|
|
|
10679
10716
|
}
|
|
10680
10717
|
|
|
10681
10718
|
/**
|
|
10682
|
-
* @author
|
|
10719
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10683
10720
|
* @description Set header with new session
|
|
10684
10721
|
* @param {string} session Session, token JWT
|
|
10685
10722
|
* @return {object} header with new session
|
|
@@ -10694,7 +10731,7 @@ class Application {
|
|
|
10694
10731
|
}
|
|
10695
10732
|
|
|
10696
10733
|
/**
|
|
10697
|
-
* @author
|
|
10734
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10698
10735
|
* @description Get the available applications for this user in this organizations
|
|
10699
10736
|
* @param {object} params Params to get task
|
|
10700
10737
|
* @param {object} params.orgId Organization id (_id database)
|
|
@@ -10751,7 +10788,7 @@ class Settings {
|
|
|
10751
10788
|
}
|
|
10752
10789
|
|
|
10753
10790
|
/**
|
|
10754
|
-
* @author
|
|
10791
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10755
10792
|
* @description Get the return data and check for errors
|
|
10756
10793
|
* @param {object} retData Response HTTP
|
|
10757
10794
|
* @return {*}
|
|
@@ -10766,7 +10803,7 @@ class Settings {
|
|
|
10766
10803
|
}
|
|
10767
10804
|
|
|
10768
10805
|
/**
|
|
10769
|
-
* @author
|
|
10806
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10770
10807
|
* @description Set header with new session
|
|
10771
10808
|
* @param {string} session Session, token JWT
|
|
10772
10809
|
* @return {object} header with new session
|
|
@@ -10781,7 +10818,7 @@ class Settings {
|
|
|
10781
10818
|
}
|
|
10782
10819
|
|
|
10783
10820
|
/**
|
|
10784
|
-
* @author
|
|
10821
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10785
10822
|
* @description Adds/updates a user settings
|
|
10786
10823
|
* @param {object} settings Full user settings
|
|
10787
10824
|
* @param {string} session Is token JWT of user NOT allow SU
|
|
@@ -10813,7 +10850,7 @@ class Settings {
|
|
|
10813
10850
|
}
|
|
10814
10851
|
|
|
10815
10852
|
/**
|
|
10816
|
-
* @author
|
|
10853
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10817
10854
|
* @description Gets the user settings. Returns an array of settings.
|
|
10818
10855
|
* @param {string} session Is token JWT of user NOT allow SU
|
|
10819
10856
|
* @return {Promise}
|
|
@@ -10840,7 +10877,7 @@ class Settings {
|
|
|
10840
10877
|
}
|
|
10841
10878
|
|
|
10842
10879
|
/**
|
|
10843
|
-
* @author
|
|
10880
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10844
10881
|
* @description Removes the user settings
|
|
10845
10882
|
* @param {string} session Is token JWT of user NOT allow SU
|
|
10846
10883
|
* @return {Promise}
|
|
@@ -10872,7 +10909,7 @@ class Settings {
|
|
|
10872
10909
|
*/
|
|
10873
10910
|
class Users {
|
|
10874
10911
|
/**
|
|
10875
|
-
* @author
|
|
10912
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10876
10913
|
* @constructor
|
|
10877
10914
|
* @param {object} options Params of the constructor
|
|
10878
10915
|
* @param {object} options.parent This of the pararent
|
|
@@ -10928,7 +10965,7 @@ class AdminDocuments {
|
|
|
10928
10965
|
}
|
|
10929
10966
|
|
|
10930
10967
|
/**
|
|
10931
|
-
* @author
|
|
10968
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10932
10969
|
* @description Set header with new session
|
|
10933
10970
|
* @param {string} session Session, token JWT
|
|
10934
10971
|
* @return {object} header with new session
|
|
@@ -10943,7 +10980,7 @@ class AdminDocuments {
|
|
|
10943
10980
|
}
|
|
10944
10981
|
|
|
10945
10982
|
/**
|
|
10946
|
-
* @author
|
|
10983
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10947
10984
|
* @description Advanced search of document in elastic search ussing system manager
|
|
10948
10985
|
* @param {!object} params - Params to search document
|
|
10949
10986
|
* @param {!string} params.docId - Document id (_id database)
|
|
@@ -11002,7 +11039,7 @@ class AdminDocuments {
|
|
|
11002
11039
|
}
|
|
11003
11040
|
|
|
11004
11041
|
/**
|
|
11005
|
-
* @author
|
|
11042
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11006
11043
|
* @description Get document by id
|
|
11007
11044
|
* @param {object} params - Params to get document by id
|
|
11008
11045
|
* @param {string} params.docId - Document id (_id database)
|
|
@@ -11041,7 +11078,7 @@ class AdminDocuments {
|
|
|
11041
11078
|
|
|
11042
11079
|
/**
|
|
11043
11080
|
*
|
|
11044
|
-
* @author
|
|
11081
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11045
11082
|
* @description Request signed url url to put or get
|
|
11046
11083
|
* @param {object} params Params to request signed url
|
|
11047
11084
|
* @param {string} params.methodType Method type HTTP get or put
|
|
@@ -11095,7 +11132,7 @@ class AdminDocuments {
|
|
|
11095
11132
|
|
|
11096
11133
|
/**
|
|
11097
11134
|
*
|
|
11098
|
-
* @author
|
|
11135
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11099
11136
|
* @description Update a document content
|
|
11100
11137
|
* @param {object} params Params to request signed url
|
|
11101
11138
|
* @param {string} params.content The content text
|
|
@@ -11136,7 +11173,7 @@ class AdminDocuments {
|
|
|
11136
11173
|
|
|
11137
11174
|
/**
|
|
11138
11175
|
*
|
|
11139
|
-
* @author
|
|
11176
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11140
11177
|
* @description Update a document content
|
|
11141
11178
|
* @param {object} params Params to request signed url
|
|
11142
11179
|
* @param {string} params.content The content text
|
|
@@ -11182,7 +11219,7 @@ class AdminDocuments {
|
|
|
11182
11219
|
|
|
11183
11220
|
/**
|
|
11184
11221
|
*
|
|
11185
|
-
* @author
|
|
11222
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11186
11223
|
* @description Get the content of a document
|
|
11187
11224
|
* @param {object} params Params to request signed url
|
|
11188
11225
|
* @param {string} params.docId The unique id of the document
|
|
@@ -11255,7 +11292,7 @@ class AdminForm {
|
|
|
11255
11292
|
}
|
|
11256
11293
|
|
|
11257
11294
|
/**
|
|
11258
|
-
* @author
|
|
11295
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11259
11296
|
* @description Set header with new session
|
|
11260
11297
|
* @param {string} session Session, token JWT
|
|
11261
11298
|
* @return {object} header with new session
|
|
@@ -11270,7 +11307,7 @@ class AdminForm {
|
|
|
11270
11307
|
}
|
|
11271
11308
|
|
|
11272
11309
|
/**
|
|
11273
|
-
* @author
|
|
11310
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11274
11311
|
* @description Get advance form by ID
|
|
11275
11312
|
* @param {object} params Params to find form by id
|
|
11276
11313
|
* @param {string} params.id Formulary Id (_id database)
|
|
@@ -11308,7 +11345,7 @@ class AdminForm {
|
|
|
11308
11345
|
}
|
|
11309
11346
|
|
|
11310
11347
|
/**
|
|
11311
|
-
* @author
|
|
11348
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11312
11349
|
* @description Request signed url url to put or get
|
|
11313
11350
|
* @param {object} params - Params to get form list
|
|
11314
11351
|
* @param {string} params.orgId - Organization id (_id database)
|
|
@@ -11401,7 +11438,7 @@ class AdminNotification {
|
|
|
11401
11438
|
}
|
|
11402
11439
|
|
|
11403
11440
|
/**
|
|
11404
|
-
* @author
|
|
11441
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11405
11442
|
* @description Set header with new session
|
|
11406
11443
|
* @param {string} session Session, token JWT
|
|
11407
11444
|
* @return {object} header with new session
|
|
@@ -11440,7 +11477,7 @@ class AdminNotification {
|
|
|
11440
11477
|
}
|
|
11441
11478
|
|
|
11442
11479
|
/**
|
|
11443
|
-
* @author
|
|
11480
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11444
11481
|
* @description Create notification
|
|
11445
11482
|
* @param {object} params Params to create notification
|
|
11446
11483
|
* @param {string} params.orgId OrgId of the user SU
|
|
@@ -11481,7 +11518,7 @@ class AdminNotification {
|
|
|
11481
11518
|
}
|
|
11482
11519
|
|
|
11483
11520
|
/**
|
|
11484
|
-
* @author
|
|
11521
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11485
11522
|
* @description Search notification using (notificationId or userId)
|
|
11486
11523
|
* @param {object} params Params to create notification
|
|
11487
11524
|
* @param {string} params.orgId OrgId of the user SU
|
|
@@ -11519,7 +11556,7 @@ class AdminNotification {
|
|
|
11519
11556
|
}
|
|
11520
11557
|
|
|
11521
11558
|
/**
|
|
11522
|
-
* @author
|
|
11559
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11523
11560
|
* @description Update notification using (notificationId or userId)
|
|
11524
11561
|
* @param {object} params Params to create notification
|
|
11525
11562
|
* @param {string} params.orgId OrgId of the user SU
|
|
@@ -11560,7 +11597,7 @@ class AdminNotification {
|
|
|
11560
11597
|
}
|
|
11561
11598
|
|
|
11562
11599
|
/**
|
|
11563
|
-
* @author
|
|
11600
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11564
11601
|
* @description Delete notification using (notificationId or userId)
|
|
11565
11602
|
* @param {object} params Params to create notification
|
|
11566
11603
|
* @param {string} params.orgId OrgId of the user SU
|
|
@@ -11629,7 +11666,7 @@ class AdminLists {
|
|
|
11629
11666
|
}
|
|
11630
11667
|
|
|
11631
11668
|
/**
|
|
11632
|
-
* @author
|
|
11669
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11633
11670
|
* @description Set header with new session
|
|
11634
11671
|
* @param {string} session Session, token JWT
|
|
11635
11672
|
* @return {object} header with new session
|
|
@@ -11644,7 +11681,7 @@ class AdminLists {
|
|
|
11644
11681
|
}
|
|
11645
11682
|
|
|
11646
11683
|
/**
|
|
11647
|
-
* @author
|
|
11684
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11648
11685
|
* @description Get list by ID
|
|
11649
11686
|
* @param {object} params Params to find list by id
|
|
11650
11687
|
* @param {string} params.id List Id (_id database)
|
|
@@ -11682,7 +11719,7 @@ class AdminLists {
|
|
|
11682
11719
|
}
|
|
11683
11720
|
|
|
11684
11721
|
/**
|
|
11685
|
-
* @author
|
|
11722
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11686
11723
|
* @description Get all lists
|
|
11687
11724
|
* @param {object} params={} Params to pagination and orgId
|
|
11688
11725
|
* @param {number} [params.page=0] Current page to pagination
|
|
@@ -11757,7 +11794,7 @@ class AdminPlugin {
|
|
|
11757
11794
|
}
|
|
11758
11795
|
|
|
11759
11796
|
/**
|
|
11760
|
-
* @author
|
|
11797
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11761
11798
|
* @description Set header with new session
|
|
11762
11799
|
* @param {string} session Session, token JWT
|
|
11763
11800
|
* @return {object} header with new session
|
|
@@ -11807,7 +11844,7 @@ class AdminPlugin {
|
|
|
11807
11844
|
}
|
|
11808
11845
|
|
|
11809
11846
|
/**
|
|
11810
|
-
* @author
|
|
11847
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11811
11848
|
* @description Get plugin by ID
|
|
11812
11849
|
* @param {string} id Plugin Id (_id database)
|
|
11813
11850
|
* @param {string} session Session, token JWT
|
|
@@ -11853,7 +11890,7 @@ class AdminPolicy {
|
|
|
11853
11890
|
}
|
|
11854
11891
|
|
|
11855
11892
|
/**
|
|
11856
|
-
* @author
|
|
11893
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11857
11894
|
* @description Get the return data and check for errors
|
|
11858
11895
|
* @param {object} retData Response HTTP
|
|
11859
11896
|
* @return {*}
|
|
@@ -11868,7 +11905,7 @@ class AdminPolicy {
|
|
|
11868
11905
|
}
|
|
11869
11906
|
|
|
11870
11907
|
/**
|
|
11871
|
-
* @author
|
|
11908
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11872
11909
|
* @description Set header with new session
|
|
11873
11910
|
* @param {string} session Session, token JWT
|
|
11874
11911
|
* @return {object} header with new session
|
|
@@ -11883,7 +11920,7 @@ class AdminPolicy {
|
|
|
11883
11920
|
}
|
|
11884
11921
|
|
|
11885
11922
|
/**
|
|
11886
|
-
* @author
|
|
11923
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11887
11924
|
* @description Find all policies
|
|
11888
11925
|
* @param {string} session Session, token JWT
|
|
11889
11926
|
* @return {Promise}
|
|
@@ -11941,7 +11978,7 @@ class AdminTask {
|
|
|
11941
11978
|
}
|
|
11942
11979
|
|
|
11943
11980
|
/**
|
|
11944
|
-
* @author
|
|
11981
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11945
11982
|
* @description Set header with new session
|
|
11946
11983
|
* @param {string} session Session, token JWT
|
|
11947
11984
|
* @return {object} header with new session
|
|
@@ -11956,7 +11993,7 @@ class AdminTask {
|
|
|
11956
11993
|
}
|
|
11957
11994
|
|
|
11958
11995
|
/**
|
|
11959
|
-
* @author
|
|
11996
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11960
11997
|
* @description Get filter to search tasks
|
|
11961
11998
|
* @param {string} filter Filter type
|
|
11962
11999
|
* @return {*}
|
|
@@ -11975,7 +12012,7 @@ class AdminTask {
|
|
|
11975
12012
|
}
|
|
11976
12013
|
|
|
11977
12014
|
/**
|
|
11978
|
-
* @author
|
|
12015
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
11979
12016
|
* @description Get task by user Id
|
|
11980
12017
|
* @param {object} params Params to get task
|
|
11981
12018
|
* @param {string} params.userId User id (_id database)
|
|
@@ -12046,7 +12083,7 @@ class AdminUser {
|
|
|
12046
12083
|
}
|
|
12047
12084
|
|
|
12048
12085
|
/**
|
|
12049
|
-
* @author
|
|
12086
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12050
12087
|
* @description Get the return data and check for errors
|
|
12051
12088
|
* @param {object} retData Response HTTP
|
|
12052
12089
|
* @return {*}
|
|
@@ -12061,7 +12098,7 @@ class AdminUser {
|
|
|
12061
12098
|
}
|
|
12062
12099
|
|
|
12063
12100
|
/**
|
|
12064
|
-
* @author
|
|
12101
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12065
12102
|
* @description Set header with new session
|
|
12066
12103
|
* @param {string} session Session, token JWT
|
|
12067
12104
|
* @return {object} header with new session
|
|
@@ -12076,7 +12113,7 @@ class AdminUser {
|
|
|
12076
12113
|
}
|
|
12077
12114
|
|
|
12078
12115
|
/**
|
|
12079
|
-
* @author
|
|
12116
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12080
12117
|
* @description Request profile by userId
|
|
12081
12118
|
* @param {string} userId User identifier (_id database)
|
|
12082
12119
|
* @param {string} session Is token JWT
|
|
@@ -12107,7 +12144,7 @@ class AdminUser {
|
|
|
12107
12144
|
}
|
|
12108
12145
|
|
|
12109
12146
|
/**
|
|
12110
|
-
* @author
|
|
12147
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12111
12148
|
* @description Request profile by userId
|
|
12112
12149
|
* @param {string} userIds Users identifier (_id database)
|
|
12113
12150
|
* @param {string} apiKey Api to use to search users
|
|
@@ -12137,7 +12174,7 @@ class AdminUser {
|
|
|
12137
12174
|
}
|
|
12138
12175
|
|
|
12139
12176
|
/**
|
|
12140
|
-
* @author
|
|
12177
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12141
12178
|
* @description Update password by userId
|
|
12142
12179
|
* @param {object} params Params to update password
|
|
12143
12180
|
* @param {string} params.userId Id of the user
|
|
@@ -12178,7 +12215,7 @@ class AdminUser {
|
|
|
12178
12215
|
}
|
|
12179
12216
|
|
|
12180
12217
|
/**
|
|
12181
|
-
* @author
|
|
12218
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12182
12219
|
* @description Check if email is unique
|
|
12183
12220
|
* @param {string} email Check if email is unique
|
|
12184
12221
|
* @param {string} session Is token JWT
|
|
@@ -12506,7 +12543,7 @@ class AdminProcesses {
|
|
|
12506
12543
|
}
|
|
12507
12544
|
|
|
12508
12545
|
/**
|
|
12509
|
-
* @author
|
|
12546
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12510
12547
|
* @description Set header with new session
|
|
12511
12548
|
* @param {string} session Session, token JWT
|
|
12512
12549
|
* @return {object} header with new session
|
|
@@ -12521,7 +12558,7 @@ class AdminProcesses {
|
|
|
12521
12558
|
}
|
|
12522
12559
|
|
|
12523
12560
|
/**
|
|
12524
|
-
* @author
|
|
12561
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12525
12562
|
* @description Mount query string to send in URL
|
|
12526
12563
|
* @param {object} params Params to mount query string
|
|
12527
12564
|
* @private
|
|
@@ -12556,7 +12593,7 @@ class AdminProcesses {
|
|
|
12556
12593
|
|
|
12557
12594
|
/**
|
|
12558
12595
|
* @see https://confluence.external-share.com/content/7450b014-52c6-4d9e-b30e-a062b57453b5/17104899/17694721/532545537
|
|
12559
|
-
* @author
|
|
12596
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12560
12597
|
* @description Advanced search of processes, check documentation, to verify all params, pass to method search
|
|
12561
12598
|
* @return {Promise}
|
|
12562
12599
|
* @public
|
|
@@ -12618,7 +12655,7 @@ class AdminProcesses {
|
|
|
12618
12655
|
}
|
|
12619
12656
|
|
|
12620
12657
|
/**
|
|
12621
|
-
* @author
|
|
12658
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12622
12659
|
* @description Advanced search of process in elastic search ussing system manager
|
|
12623
12660
|
* @param {!object} params - Params to search document
|
|
12624
12661
|
* @param {!string} params.orgProcessId - Document id (_id database) of the process
|
|
@@ -12683,7 +12720,7 @@ class AdminMessage {
|
|
|
12683
12720
|
}
|
|
12684
12721
|
|
|
12685
12722
|
/**
|
|
12686
|
-
* @author
|
|
12723
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12687
12724
|
* @description Get the return data and check for errors
|
|
12688
12725
|
* @param {object} retData Response HTTP
|
|
12689
12726
|
* @return {*}
|
|
@@ -12698,7 +12735,7 @@ class AdminMessage {
|
|
|
12698
12735
|
}
|
|
12699
12736
|
|
|
12700
12737
|
/**
|
|
12701
|
-
* @author
|
|
12738
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12702
12739
|
* @description Set header with new session
|
|
12703
12740
|
* @param {string} session Session, token JWT
|
|
12704
12741
|
* @return {object} header with new session
|
|
@@ -12866,7 +12903,7 @@ class AdminDocTypes {
|
|
|
12866
12903
|
}
|
|
12867
12904
|
|
|
12868
12905
|
/**
|
|
12869
|
-
* @author
|
|
12906
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12870
12907
|
* @description Get the return data and check for errors
|
|
12871
12908
|
* @param {object} retData Response HTTP
|
|
12872
12909
|
* @return {*}
|
|
@@ -12881,7 +12918,7 @@ class AdminDocTypes {
|
|
|
12881
12918
|
}
|
|
12882
12919
|
|
|
12883
12920
|
/**
|
|
12884
|
-
* @author
|
|
12921
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12885
12922
|
* @description Set header with new session
|
|
12886
12923
|
* @param {string} session Session, token JWT
|
|
12887
12924
|
* @return {object} header with new session
|
|
@@ -12896,7 +12933,7 @@ class AdminDocTypes {
|
|
|
12896
12933
|
}
|
|
12897
12934
|
|
|
12898
12935
|
/**
|
|
12899
|
-
* @author
|
|
12936
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12900
12937
|
* @description Request profile by userId
|
|
12901
12938
|
* @param {object} params The params
|
|
12902
12939
|
* @param {string} params.id The organization document type id (_id database)
|
|
@@ -12957,7 +12994,7 @@ class Organization {
|
|
|
12957
12994
|
}
|
|
12958
12995
|
|
|
12959
12996
|
/**
|
|
12960
|
-
* @author
|
|
12997
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12961
12998
|
* @description Set header with new session
|
|
12962
12999
|
* @param {string} session Session, token JWT
|
|
12963
13000
|
* @return {object} header with new session
|
|
@@ -12972,7 +13009,7 @@ class Organization {
|
|
|
12972
13009
|
}
|
|
12973
13010
|
|
|
12974
13011
|
/**
|
|
12975
|
-
* @author
|
|
13012
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
12976
13013
|
* @description Update avatar of organization by session of user not allow session user SU
|
|
12977
13014
|
* @param {object} params Params to update avatar
|
|
12978
13015
|
* @param {string} params.orgId - Organization id
|
|
@@ -13015,7 +13052,7 @@ class Organization {
|
|
|
13015
13052
|
}
|
|
13016
13053
|
|
|
13017
13054
|
/**
|
|
13018
|
-
* @author
|
|
13055
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
13019
13056
|
* @description Remove avatar of user by session of user not allow session user SU
|
|
13020
13057
|
* @param {string} params.orgId - Organization id
|
|
13021
13058
|
* @param {string} session - Is token JWT of user SU
|
|
@@ -13050,7 +13087,7 @@ class Organization {
|
|
|
13050
13087
|
*/
|
|
13051
13088
|
class Admin {
|
|
13052
13089
|
/**
|
|
13053
|
-
* @author
|
|
13090
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
13054
13091
|
* @constructor
|
|
13055
13092
|
* @param {object} options Params of the constructor
|
|
13056
13093
|
* @param {object} options.parent This of the pararent
|
|
@@ -13106,7 +13143,7 @@ class External {
|
|
|
13106
13143
|
}
|
|
13107
13144
|
|
|
13108
13145
|
/**
|
|
13109
|
-
* @author
|
|
13146
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
13110
13147
|
* @description Set header with new session
|
|
13111
13148
|
* @param {string} session Session, token JWT
|
|
13112
13149
|
* @return {object} header with new session
|
|
@@ -13121,7 +13158,7 @@ class External {
|
|
|
13121
13158
|
}
|
|
13122
13159
|
|
|
13123
13160
|
/**
|
|
13124
|
-
* @author
|
|
13161
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
13125
13162
|
* @description Create new document
|
|
13126
13163
|
* @param {object} params Object for add new document
|
|
13127
13164
|
* @param {string} params.id Organization form id
|
|
@@ -13160,7 +13197,7 @@ class External {
|
|
|
13160
13197
|
}
|
|
13161
13198
|
|
|
13162
13199
|
/**
|
|
13163
|
-
* @author
|
|
13200
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
13164
13201
|
* @description Get an upload signed url, so it will be possible to upload documents temporarily during the use of the external form
|
|
13165
13202
|
* @param {string} mime the mime type of the document
|
|
13166
13203
|
* @param {string} authorization a legal authorization
|
|
@@ -13198,7 +13235,7 @@ class External {
|
|
|
13198
13235
|
}
|
|
13199
13236
|
|
|
13200
13237
|
/**
|
|
13201
|
-
* @author
|
|
13238
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
13202
13239
|
* @description Get an upload signed url, for many documents. So it will be possible to upload documents temporarily during the use of the external form
|
|
13203
13240
|
* @param {array<object>} docs the list of documents
|
|
13204
13241
|
* @param {string} docs.mime the mime type of the document
|
|
@@ -13239,7 +13276,7 @@ class External {
|
|
|
13239
13276
|
}
|
|
13240
13277
|
|
|
13241
13278
|
/**
|
|
13242
|
-
* @author
|
|
13279
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
13243
13280
|
* @description Handles the execution of an external form
|
|
13244
13281
|
* @param {string} authorization a legal authorization
|
|
13245
13282
|
* @param {object} params the parameters to handle the execution of an external form
|