@docbrasil/api-systemmanager 1.1.19 → 1.1.21

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.
Files changed (104) hide show
  1. package/api/admin/doctypes.js +3 -3
  2. package/api/admin/document.js +7 -7
  3. package/api/admin/form.js +3 -3
  4. package/api/admin/index.js +1 -1
  5. package/api/admin/list.js +3 -3
  6. package/api/admin/message.js +2 -2
  7. package/api/admin/notification.js +5 -5
  8. package/api/admin/organization.js +3 -3
  9. package/api/admin/plugin.js +2 -2
  10. package/api/admin/policy.js +3 -3
  11. package/api/admin/processes.js +4 -4
  12. package/api/admin/task.js +3 -3
  13. package/api/admin/user.js +6 -6
  14. package/api/dispatch.js +2 -2
  15. package/api/external.js +5 -5
  16. package/api/general/geoLocation.js +3 -3
  17. package/api/general/index.js +1 -1
  18. package/api/login.js +7 -7
  19. package/api/session.js +1 -1
  20. package/api/user/application.js +2 -2
  21. package/api/user/datasource.js +2 -2
  22. package/api/user/document.js +13 -13
  23. package/api/user/help.js +2 -2
  24. package/api/user/index.js +1 -1
  25. package/api/user/my_tasks.js +11 -11
  26. package/api/user/notification.js +4 -4
  27. package/api/user/organization.js +4 -4
  28. package/api/user/page.js +2 -2
  29. package/api/user/process.js +12 -12
  30. package/api/user/register.js +4 -4
  31. package/api/user/settings.js +5 -5
  32. package/api/user/task.js +41 -4
  33. package/api/user/task_available.js +3 -3
  34. package/api/user/updates.js +1 -1
  35. package/api/user/user.js +108 -9
  36. package/dist/bundle.cjs +279 -143
  37. package/dist/bundle.mjs +1 -1
  38. package/doc/api.md +202 -102
  39. package/docs/Admin.html +1 -1
  40. package/docs/AdminDocuments.html +6 -6
  41. package/docs/AdminForm.html +2 -2
  42. package/docs/AdminLists.html +2 -2
  43. package/docs/AdminNotification.html +4 -4
  44. package/docs/AdminPlugin.html +1 -1
  45. package/docs/AdminPolicy.html +1 -1
  46. package/docs/AdminProcesses.html +2 -2
  47. package/docs/AdminTask.html +1 -1
  48. package/docs/AdminUser.html +4 -4
  49. package/docs/Application.html +1 -1
  50. package/docs/Datasource.html +1 -1
  51. package/docs/Dispatch.html +1 -1
  52. package/docs/Documents.html +10 -10
  53. package/docs/External.html +4 -4
  54. package/docs/GeoLocation.html +1 -1
  55. package/docs/Help.html +1 -1
  56. package/docs/Login.html +6 -6
  57. package/docs/MyTasks.html +11 -11
  58. package/docs/Notification.html +3 -3
  59. package/docs/Organization.html +6 -6
  60. package/docs/Page.html +1 -1
  61. package/docs/Process.html +9 -9
  62. package/docs/Register.html +3 -3
  63. package/docs/Settings.html +3 -3
  64. package/docs/Task.html +287 -3
  65. package/docs/TaskAvailable.html +2 -2
  66. package/docs/User.html +925 -7
  67. package/docs/Users.html +2 -2
  68. package/docs/admin_doctypes.js.html +3 -3
  69. package/docs/admin_document.js.html +7 -7
  70. package/docs/admin_form.js.html +3 -3
  71. package/docs/admin_index.js.html +1 -1
  72. package/docs/admin_list.js.html +3 -3
  73. package/docs/admin_message.js.html +2 -2
  74. package/docs/admin_notification.js.html +5 -5
  75. package/docs/admin_organization.js.html +3 -3
  76. package/docs/admin_plugin.js.html +2 -2
  77. package/docs/admin_policy.js.html +3 -3
  78. package/docs/admin_processes.js.html +4 -4
  79. package/docs/admin_task.js.html +3 -3
  80. package/docs/admin_user.js.html +6 -6
  81. package/docs/dispatch.js.html +2 -2
  82. package/docs/external.js.html +5 -5
  83. package/docs/general_geoLocation.js.html +3 -3
  84. package/docs/general_index.js.html +1 -1
  85. package/docs/login.js.html +7 -7
  86. package/docs/session.js.html +1 -1
  87. package/docs/user_application.js.html +2 -2
  88. package/docs/user_datasource.js.html +2 -2
  89. package/docs/user_document.js.html +13 -13
  90. package/docs/user_help.js.html +2 -2
  91. package/docs/user_index.js.html +1 -1
  92. package/docs/user_my_tasks.js.html +12 -12
  93. package/docs/user_notification.js.html +4 -4
  94. package/docs/user_organization.js.html +4 -4
  95. package/docs/user_page.js.html +2 -2
  96. package/docs/user_process.js.html +12 -12
  97. package/docs/user_register.js.html +4 -4
  98. package/docs/user_settings.js.html +5 -5
  99. package/docs/user_task.js.html +41 -4
  100. package/docs/user_task_available.js.html +3 -3
  101. package/docs/user_updates.js.html +1 -1
  102. package/docs/user_user.js.html +108 -9
  103. package/package.json +1 -1
  104. package/.project +0 -11
package/dist/bundle.cjs CHANGED
@@ -45,7 +45,7 @@ class Dispatch {
45
45
  }
46
46
 
47
47
  /**
48
- * @author CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 Thiago Anselmo <thiagoo.anselmoo@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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
@@ -2238,7 +2238,7 @@ class MyTasks {
2238
2238
  }
2239
2239
 
2240
2240
  /**
2241
- * @author CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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 CloudBrasil <abernardo.br@gmail.com>
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
@@ -3062,7 +3099,7 @@ class User {
3062
3099
  * const api = new API();
3063
3100
  * const id = '616eccaaa9360a05293b10fe';
3064
3101
  * const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
3065
- * await api.user.changeOrganization.updateAvatar(id, session);
3102
+ * await api.user.changeOrganization(id, session);
3066
3103
  */
3067
3104
  async changeOrganization(id, session) {
3068
3105
  const self = this;
@@ -3077,6 +3114,105 @@ class User {
3077
3114
  throw ex;
3078
3115
  }
3079
3116
  }
3117
+
3118
+ /**
3119
+ * @author Myndware <augusto.pissarra@myndware.com>
3120
+ * @description Get the Atlas Chart JWT Token, so we can access authorized the created charts
3121
+ * @param {object} query={} The query, if any, to add to the JWT token
3122
+ * @param {array<string>} query.orgIds An array of orgIds that we want to filter by
3123
+ * @param {array<string>} query.orgProcessIds An array of orgProcessId that we want to filter by
3124
+ * @param {array<string>} query.tags An array of org processes tags that we want to filter by
3125
+ * @param {date} query.startDate The start date in ISO format that we want to filter by
3126
+ * @param {date} query.endDate The start date in ISO format that we want to filter by
3127
+ * @param {string} session Is token JWT of user NOT allow SU
3128
+ * @return {Promise<string>} JWT Token
3129
+ * @public
3130
+ * @async
3131
+ * @example
3132
+ *
3133
+ * const API = require('@docbrasil/api-systemmanager');
3134
+ * const api = new API();
3135
+ * const query = { orgIds: ['616eccaaa9360a05293b10fe'] };
3136
+ * const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
3137
+ * const jwtToken = await api.user.changeOrganization.getChartJWT(query, session);
3138
+ */
3139
+ async getChartJWT(query = {}, session) {
3140
+ const self = this;
3141
+
3142
+ try {
3143
+ Joi__default["default"].assert(session, Joi__default["default"].string().required());
3144
+ const url = `/users/charts/info?query=${JSON.stringify(query)}`;
3145
+
3146
+ const apiCall = self._client.get(url, self._setHeader(session));
3147
+ return self._returnData(await apiCall);
3148
+ } catch (ex) {
3149
+ throw ex;
3150
+ }
3151
+ }
3152
+
3153
+ /**
3154
+ * @author Myndware <augusto.pissarra@myndware.com>
3155
+ * @description Get the user organizations to run dashboard filtering
3156
+ * @param {string} session Is token JWT of user NOT allow SU
3157
+ * @return {Promise}
3158
+ * @return {array<object>} Array of organizations
3159
+ * @return {array<object>} id The id of the organization
3160
+ * @return {array<object>} text The name of the organization
3161
+ * @public
3162
+ * @async
3163
+ * @example
3164
+ *
3165
+ * const API = require('@docbrasil/api-systemmanager');
3166
+ * const api = new API();
3167
+ * const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
3168
+ * const organizations = await api.user.changeOrganization.getChartOrganizations(session);
3169
+ */
3170
+ async getChartOrganizations(session) {
3171
+ const self = this;
3172
+
3173
+ try {
3174
+ Joi__default["default"].assert(session, Joi__default["default"].string().required());
3175
+ const apiCall = self._client.get('/users/charts/organizations', self._setHeader(session));
3176
+ return self._returnData(await apiCall);
3177
+ } catch (ex) {
3178
+ throw ex;
3179
+ }
3180
+ }
3181
+
3182
+ /**
3183
+ * @author Myndware <augusto.pissarra@myndware.com>
3184
+ * @description Given orgIds, return all the tags and org processes ids that can be used to filter dashboards
3185
+ * @param {array<string>} orgIds=[] An array of orgIds
3186
+ * @param {string} session Is token JWT of user NOT allow SU
3187
+ * @return {Promise}
3188
+ * @return {array<object>} The array of each org process and tags associated with them
3189
+ * @return {srting} id The id of the org process
3190
+ * @return {srting} name The name of the org process
3191
+ * @return {array<srting>} tags The array of tags of the org process
3192
+ * @public
3193
+ * @async
3194
+ * @example
3195
+ *
3196
+ * const API = require('@docbrasil/api-systemmanager');
3197
+ * const api = new API();
3198
+ * const orgIds: ['616eccaaa9360a05293b10fe'];
3199
+ * const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
3200
+ * const jwtToken = await api.user.changeOrganization.getChartTags(orgIds, session);
3201
+ */
3202
+ async getChartTags(orgIds = [], session) {
3203
+ const self = this;
3204
+
3205
+ try {
3206
+ Joi__default["default"].assert(session, Joi__default["default"].string().required());
3207
+ const url = `/users/charts/tags?orgIds=${JSON.stringify(orgIds)}`;
3208
+
3209
+ const apiCall = self._client.get(url, self._setHeader(session));
3210
+ return self._returnData(await apiCall);
3211
+ } catch (ex) {
3212
+ throw ex;
3213
+ }
3214
+ }
3215
+
3080
3216
  }
3081
3217
 
3082
3218
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -9846,7 +9982,7 @@ class Register {
9846
9982
  }
9847
9983
 
9848
9984
  /**
9849
- * @author CloudBrasil <abernardo.br@gmail.com>
9985
+ * @author Myndware <augusto.pissarra@myndware.com>
9850
9986
  * @description Set header with new session
9851
9987
  * @param {string} session Session, token JWT
9852
9988
  * @return {object} header with new session
@@ -9861,7 +9997,7 @@ class Register {
9861
9997
  }
9862
9998
 
9863
9999
  /**
9864
- * @author CloudBrasil <abernardo.br@gmail.com>
10000
+ * @author Myndware <augusto.pissarra@myndware.com>
9865
10001
  * @param {object} params.registerId The registerId that comes with the registration page context
9866
10002
  * @return {string} orgname The orgname of the organization in the registerId
9867
10003
  * @public
@@ -9880,7 +10016,7 @@ class Register {
9880
10016
  }
9881
10017
 
9882
10018
  /**
9883
- * @author CloudBrasil <abernardo.br@gmail.com>
10019
+ * @author Myndware <augusto.pissarra@myndware.com>
9884
10020
  * @description Method to find task by id
9885
10021
  * @param {object} params Params to get task
9886
10022
  * @param {string} params.registerId The registerId that comes with the registration page context
@@ -9931,7 +10067,7 @@ class Register {
9931
10067
  }
9932
10068
 
9933
10069
  /**
9934
- * @author CloudBrasil <abernardo.br@gmail.com>
10070
+ * @author Myndware <augusto.pissarra@myndware.com>
9935
10071
  * @description Method to register a user
9936
10072
  * @param {object} params Params to get task
9937
10073
  * @param {string} params.registerId The registerId that comes with the registration page context
@@ -10045,7 +10181,7 @@ class Notification {
10045
10181
  }
10046
10182
 
10047
10183
  /**
10048
- * @author CloudBrasil <abernardo.br@gmail.com>
10184
+ * @author Myndware <augusto.pissarra@myndware.com>
10049
10185
  * @description Set header with new session
10050
10186
  * @param {string} session Session, token JWT
10051
10187
  * @return {object} header with new session
@@ -10071,7 +10207,7 @@ class Notification {
10071
10207
  }
10072
10208
 
10073
10209
  /**
10074
- * @author CloudBrasil <abernardo.br@gmail.com>
10210
+ * @author Myndware <augusto.pissarra@myndware.com>
10075
10211
  * @description Method to add a notification token
10076
10212
  * @param {object} params Params to add notification token
10077
10213
  * @param {string} params.token The token
@@ -10162,7 +10298,7 @@ class Notification {
10162
10298
  }
10163
10299
 
10164
10300
  /**
10165
- * @author CloudBrasil <abernardo.br@gmail.com>
10301
+ * @author Myndware <augusto.pissarra@myndware.com>
10166
10302
  * @description Set notification as readed
10167
10303
  * @param {object} params Params to update the notification
10168
10304
  * @param {string} params.id Notification Id
@@ -10198,7 +10334,7 @@ class Notification {
10198
10334
  }
10199
10335
 
10200
10336
  /**
10201
- * @author CloudBrasil <abernardo.br@gmail.com>
10337
+ * @author Myndware <augusto.pissarra@myndware.com>
10202
10338
  * @description Set notification as unreaded
10203
10339
  * @param {object} params Params to update the notification
10204
10340
  * @param {string} params.id Notification Id
@@ -10265,7 +10401,7 @@ class Updates {
10265
10401
  }
10266
10402
 
10267
10403
  /**
10268
- * @author CloudBrasil <abernardo.br@gmail.com>
10404
+ * @author Myndware <augusto.pissarra@myndware.com>
10269
10405
  * @description Set header with new session
10270
10406
  * @param {string} session Session, token JWT
10271
10407
  * @return {object} header with new session
@@ -10338,7 +10474,7 @@ class Help {
10338
10474
  }
10339
10475
 
10340
10476
  /**
10341
- * @author CloudBrasil <abernardo.br@gmail.com>
10477
+ * @author Myndware <augusto.pissarra@myndware.com>
10342
10478
  * @description Set header with new session
10343
10479
  * @param {string} session Session, token JWT
10344
10480
  * @return {object} header with new session
@@ -10384,7 +10520,7 @@ class Help {
10384
10520
  }
10385
10521
 
10386
10522
  /**
10387
- * @author CloudBrasil <abernardo.br@gmail.com>
10523
+ * @author Myndware <augusto.pissarra@myndware.com>
10388
10524
  * @description Method to find helps from a topic
10389
10525
  * @param {object} params Params to get helps from topic
10390
10526
  * @param {object} params.id Topic id (_id database)
@@ -10451,7 +10587,7 @@ class Datasource {
10451
10587
  }
10452
10588
 
10453
10589
  /**
10454
- * @author CloudBrasil <abernardo.br@gmail.com>
10590
+ * @author Myndware <augusto.pissarra@myndware.com>
10455
10591
  * @description Set header with new session
10456
10592
  * @param {string} session Session, token JWT
10457
10593
  * @return {object} header with new session
@@ -10470,7 +10606,7 @@ class Datasource {
10470
10606
  }
10471
10607
 
10472
10608
  /**
10473
- * @author CloudBrasil <abernardo.br@gmail.com>
10609
+ * @author Myndware <augusto.pissarra@myndware.com>
10474
10610
  * @description Method to get autocomplete data from a datasource
10475
10611
  * @param {object} params Params to add notification token
10476
10612
  * @param {string} params.orgId The user organization _id
@@ -10590,7 +10726,7 @@ class Page {
10590
10726
  }
10591
10727
 
10592
10728
  /**
10593
- * @author CloudBrasil <abernardo.br@gmail.com>
10729
+ * @author Myndware <augusto.pissarra@myndware.com>
10594
10730
  * @description Set header with new session
10595
10731
  * @param {string} session Session, token JWT
10596
10732
  * @return {object} header with new session
@@ -10605,7 +10741,7 @@ class Page {
10605
10741
  }
10606
10742
 
10607
10743
  /**
10608
- * @author CloudBrasil <abernardo.br@gmail.com>
10744
+ * @author Myndware <augusto.pissarra@myndware.com>
10609
10745
  * @description Get the available page for an application inside an organization
10610
10746
  * @param {object} params Params to get task
10611
10747
  * @param {object} params.orgId Organization id (_id database)
@@ -10679,7 +10815,7 @@ class Application {
10679
10815
  }
10680
10816
 
10681
10817
  /**
10682
- * @author CloudBrasil <abernardo.br@gmail.com>
10818
+ * @author Myndware <augusto.pissarra@myndware.com>
10683
10819
  * @description Set header with new session
10684
10820
  * @param {string} session Session, token JWT
10685
10821
  * @return {object} header with new session
@@ -10694,7 +10830,7 @@ class Application {
10694
10830
  }
10695
10831
 
10696
10832
  /**
10697
- * @author CloudBrasil <abernardo.br@gmail.com>
10833
+ * @author Myndware <augusto.pissarra@myndware.com>
10698
10834
  * @description Get the available applications for this user in this organizations
10699
10835
  * @param {object} params Params to get task
10700
10836
  * @param {object} params.orgId Organization id (_id database)
@@ -10751,7 +10887,7 @@ class Settings {
10751
10887
  }
10752
10888
 
10753
10889
  /**
10754
- * @author CloudBrasil <abernardo.br@gmail.com>
10890
+ * @author Myndware <augusto.pissarra@myndware.com>
10755
10891
  * @description Get the return data and check for errors
10756
10892
  * @param {object} retData Response HTTP
10757
10893
  * @return {*}
@@ -10766,7 +10902,7 @@ class Settings {
10766
10902
  }
10767
10903
 
10768
10904
  /**
10769
- * @author CloudBrasil <abernardo.br@gmail.com>
10905
+ * @author Myndware <augusto.pissarra@myndware.com>
10770
10906
  * @description Set header with new session
10771
10907
  * @param {string} session Session, token JWT
10772
10908
  * @return {object} header with new session
@@ -10781,7 +10917,7 @@ class Settings {
10781
10917
  }
10782
10918
 
10783
10919
  /**
10784
- * @author CloudBrasil <abernardo.br@gmail.com>
10920
+ * @author Myndware <augusto.pissarra@myndware.com>
10785
10921
  * @description Adds/updates a user settings
10786
10922
  * @param {object} settings Full user settings
10787
10923
  * @param {string} session Is token JWT of user NOT allow SU
@@ -10813,7 +10949,7 @@ class Settings {
10813
10949
  }
10814
10950
 
10815
10951
  /**
10816
- * @author CloudBrasil <abernardo.br@gmail.com>
10952
+ * @author Myndware <augusto.pissarra@myndware.com>
10817
10953
  * @description Gets the user settings. Returns an array of settings.
10818
10954
  * @param {string} session Is token JWT of user NOT allow SU
10819
10955
  * @return {Promise}
@@ -10840,7 +10976,7 @@ class Settings {
10840
10976
  }
10841
10977
 
10842
10978
  /**
10843
- * @author CloudBrasil <abernardo.br@gmail.com>
10979
+ * @author Myndware <augusto.pissarra@myndware.com>
10844
10980
  * @description Removes the user settings
10845
10981
  * @param {string} session Is token JWT of user NOT allow SU
10846
10982
  * @return {Promise}
@@ -10872,7 +11008,7 @@ class Settings {
10872
11008
  */
10873
11009
  class Users {
10874
11010
  /**
10875
- * @author CloudBrasil <abernardo.br@gmail.com>
11011
+ * @author Myndware <augusto.pissarra@myndware.com>
10876
11012
  * @constructor
10877
11013
  * @param {object} options Params of the constructor
10878
11014
  * @param {object} options.parent This of the pararent
@@ -10928,7 +11064,7 @@ class AdminDocuments {
10928
11064
  }
10929
11065
 
10930
11066
  /**
10931
- * @author CloudBrasil <abernardo.br@gmail.com>
11067
+ * @author Myndware <augusto.pissarra@myndware.com>
10932
11068
  * @description Set header with new session
10933
11069
  * @param {string} session Session, token JWT
10934
11070
  * @return {object} header with new session
@@ -10943,7 +11079,7 @@ class AdminDocuments {
10943
11079
  }
10944
11080
 
10945
11081
  /**
10946
- * @author CloudBrasil <abernardo.br@gmail.com>
11082
+ * @author Myndware <augusto.pissarra@myndware.com>
10947
11083
  * @description Advanced search of document in elastic search ussing system manager
10948
11084
  * @param {!object} params - Params to search document
10949
11085
  * @param {!string} params.docId - Document id (_id database)
@@ -11002,7 +11138,7 @@ class AdminDocuments {
11002
11138
  }
11003
11139
 
11004
11140
  /**
11005
- * @author CloudBrasil <abernardo.br@gmail.com>
11141
+ * @author Myndware <augusto.pissarra@myndware.com>
11006
11142
  * @description Get document by id
11007
11143
  * @param {object} params - Params to get document by id
11008
11144
  * @param {string} params.docId - Document id (_id database)
@@ -11041,7 +11177,7 @@ class AdminDocuments {
11041
11177
 
11042
11178
  /**
11043
11179
  *
11044
- * @author CloudBrasil <abernardo.br@gmail.com>
11180
+ * @author Myndware <augusto.pissarra@myndware.com>
11045
11181
  * @description Request signed url url to put or get
11046
11182
  * @param {object} params Params to request signed url
11047
11183
  * @param {string} params.methodType Method type HTTP get or put
@@ -11095,7 +11231,7 @@ class AdminDocuments {
11095
11231
 
11096
11232
  /**
11097
11233
  *
11098
- * @author CloudBrasil <abernardo.br@gmail.com>
11234
+ * @author Myndware <augusto.pissarra@myndware.com>
11099
11235
  * @description Update a document content
11100
11236
  * @param {object} params Params to request signed url
11101
11237
  * @param {string} params.content The content text
@@ -11136,7 +11272,7 @@ class AdminDocuments {
11136
11272
 
11137
11273
  /**
11138
11274
  *
11139
- * @author CloudBrasil <abernardo.br@gmail.com>
11275
+ * @author Myndware <augusto.pissarra@myndware.com>
11140
11276
  * @description Update a document content
11141
11277
  * @param {object} params Params to request signed url
11142
11278
  * @param {string} params.content The content text
@@ -11182,7 +11318,7 @@ class AdminDocuments {
11182
11318
 
11183
11319
  /**
11184
11320
  *
11185
- * @author CloudBrasil <abernardo.br@gmail.com>
11321
+ * @author Myndware <augusto.pissarra@myndware.com>
11186
11322
  * @description Get the content of a document
11187
11323
  * @param {object} params Params to request signed url
11188
11324
  * @param {string} params.docId The unique id of the document
@@ -11255,7 +11391,7 @@ class AdminForm {
11255
11391
  }
11256
11392
 
11257
11393
  /**
11258
- * @author CloudBrasil <abernardo.br@gmail.com>
11394
+ * @author Myndware <augusto.pissarra@myndware.com>
11259
11395
  * @description Set header with new session
11260
11396
  * @param {string} session Session, token JWT
11261
11397
  * @return {object} header with new session
@@ -11270,7 +11406,7 @@ class AdminForm {
11270
11406
  }
11271
11407
 
11272
11408
  /**
11273
- * @author CloudBrasil <abernardo.br@gmail.com>
11409
+ * @author Myndware <augusto.pissarra@myndware.com>
11274
11410
  * @description Get advance form by ID
11275
11411
  * @param {object} params Params to find form by id
11276
11412
  * @param {string} params.id Formulary Id (_id database)
@@ -11308,7 +11444,7 @@ class AdminForm {
11308
11444
  }
11309
11445
 
11310
11446
  /**
11311
- * @author CloudBrasil <abernardo.br@gmail.com>
11447
+ * @author Myndware <augusto.pissarra@myndware.com>
11312
11448
  * @description Request signed url url to put or get
11313
11449
  * @param {object} params - Params to get form list
11314
11450
  * @param {string} params.orgId - Organization id (_id database)
@@ -11401,7 +11537,7 @@ class AdminNotification {
11401
11537
  }
11402
11538
 
11403
11539
  /**
11404
- * @author CloudBrasil <abernardo.br@gmail.com>
11540
+ * @author Myndware <augusto.pissarra@myndware.com>
11405
11541
  * @description Set header with new session
11406
11542
  * @param {string} session Session, token JWT
11407
11543
  * @return {object} header with new session
@@ -11440,7 +11576,7 @@ class AdminNotification {
11440
11576
  }
11441
11577
 
11442
11578
  /**
11443
- * @author CloudBrasil <abernardo.br@gmail.com>
11579
+ * @author Myndware <augusto.pissarra@myndware.com>
11444
11580
  * @description Create notification
11445
11581
  * @param {object} params Params to create notification
11446
11582
  * @param {string} params.orgId OrgId of the user SU
@@ -11481,7 +11617,7 @@ class AdminNotification {
11481
11617
  }
11482
11618
 
11483
11619
  /**
11484
- * @author CloudBrasil <abernardo.br@gmail.com>
11620
+ * @author Myndware <augusto.pissarra@myndware.com>
11485
11621
  * @description Search notification using (notificationId or userId)
11486
11622
  * @param {object} params Params to create notification
11487
11623
  * @param {string} params.orgId OrgId of the user SU
@@ -11519,7 +11655,7 @@ class AdminNotification {
11519
11655
  }
11520
11656
 
11521
11657
  /**
11522
- * @author CloudBrasil <abernardo.br@gmail.com>
11658
+ * @author Myndware <augusto.pissarra@myndware.com>
11523
11659
  * @description Update notification using (notificationId or userId)
11524
11660
  * @param {object} params Params to create notification
11525
11661
  * @param {string} params.orgId OrgId of the user SU
@@ -11560,7 +11696,7 @@ class AdminNotification {
11560
11696
  }
11561
11697
 
11562
11698
  /**
11563
- * @author CloudBrasil <abernardo.br@gmail.com>
11699
+ * @author Myndware <augusto.pissarra@myndware.com>
11564
11700
  * @description Delete notification using (notificationId or userId)
11565
11701
  * @param {object} params Params to create notification
11566
11702
  * @param {string} params.orgId OrgId of the user SU
@@ -11629,7 +11765,7 @@ class AdminLists {
11629
11765
  }
11630
11766
 
11631
11767
  /**
11632
- * @author CloudBrasil <abernardo.br@gmail.com>
11768
+ * @author Myndware <augusto.pissarra@myndware.com>
11633
11769
  * @description Set header with new session
11634
11770
  * @param {string} session Session, token JWT
11635
11771
  * @return {object} header with new session
@@ -11644,7 +11780,7 @@ class AdminLists {
11644
11780
  }
11645
11781
 
11646
11782
  /**
11647
- * @author CloudBrasil <abernardo.br@gmail.com>
11783
+ * @author Myndware <augusto.pissarra@myndware.com>
11648
11784
  * @description Get list by ID
11649
11785
  * @param {object} params Params to find list by id
11650
11786
  * @param {string} params.id List Id (_id database)
@@ -11682,7 +11818,7 @@ class AdminLists {
11682
11818
  }
11683
11819
 
11684
11820
  /**
11685
- * @author CloudBrasil <abernardo.br@gmail.com>
11821
+ * @author Myndware <augusto.pissarra@myndware.com>
11686
11822
  * @description Get all lists
11687
11823
  * @param {object} params={} Params to pagination and orgId
11688
11824
  * @param {number} [params.page=0] Current page to pagination
@@ -11757,7 +11893,7 @@ class AdminPlugin {
11757
11893
  }
11758
11894
 
11759
11895
  /**
11760
- * @author CloudBrasil <abernardo.br@gmail.com>
11896
+ * @author Myndware <augusto.pissarra@myndware.com>
11761
11897
  * @description Set header with new session
11762
11898
  * @param {string} session Session, token JWT
11763
11899
  * @return {object} header with new session
@@ -11807,7 +11943,7 @@ class AdminPlugin {
11807
11943
  }
11808
11944
 
11809
11945
  /**
11810
- * @author CloudBrasil <abernardo.br@gmail.com>
11946
+ * @author Myndware <augusto.pissarra@myndware.com>
11811
11947
  * @description Get plugin by ID
11812
11948
  * @param {string} id Plugin Id (_id database)
11813
11949
  * @param {string} session Session, token JWT
@@ -11853,7 +11989,7 @@ class AdminPolicy {
11853
11989
  }
11854
11990
 
11855
11991
  /**
11856
- * @author CloudBrasil <abernardo.br@gmail.com>
11992
+ * @author Myndware <augusto.pissarra@myndware.com>
11857
11993
  * @description Get the return data and check for errors
11858
11994
  * @param {object} retData Response HTTP
11859
11995
  * @return {*}
@@ -11868,7 +12004,7 @@ class AdminPolicy {
11868
12004
  }
11869
12005
 
11870
12006
  /**
11871
- * @author CloudBrasil <abernardo.br@gmail.com>
12007
+ * @author Myndware <augusto.pissarra@myndware.com>
11872
12008
  * @description Set header with new session
11873
12009
  * @param {string} session Session, token JWT
11874
12010
  * @return {object} header with new session
@@ -11883,7 +12019,7 @@ class AdminPolicy {
11883
12019
  }
11884
12020
 
11885
12021
  /**
11886
- * @author CloudBrasil <abernardo.br@gmail.com>
12022
+ * @author Myndware <augusto.pissarra@myndware.com>
11887
12023
  * @description Find all policies
11888
12024
  * @param {string} session Session, token JWT
11889
12025
  * @return {Promise}
@@ -11941,7 +12077,7 @@ class AdminTask {
11941
12077
  }
11942
12078
 
11943
12079
  /**
11944
- * @author CloudBrasil <abernardo.br@gmail.com>
12080
+ * @author Myndware <augusto.pissarra@myndware.com>
11945
12081
  * @description Set header with new session
11946
12082
  * @param {string} session Session, token JWT
11947
12083
  * @return {object} header with new session
@@ -11956,7 +12092,7 @@ class AdminTask {
11956
12092
  }
11957
12093
 
11958
12094
  /**
11959
- * @author CloudBrasil <abernardo.br@gmail.com>
12095
+ * @author Myndware <augusto.pissarra@myndware.com>
11960
12096
  * @description Get filter to search tasks
11961
12097
  * @param {string} filter Filter type
11962
12098
  * @return {*}
@@ -11975,7 +12111,7 @@ class AdminTask {
11975
12111
  }
11976
12112
 
11977
12113
  /**
11978
- * @author CloudBrasil <abernardo.br@gmail.com>
12114
+ * @author Myndware <augusto.pissarra@myndware.com>
11979
12115
  * @description Get task by user Id
11980
12116
  * @param {object} params Params to get task
11981
12117
  * @param {string} params.userId User id (_id database)
@@ -12046,7 +12182,7 @@ class AdminUser {
12046
12182
  }
12047
12183
 
12048
12184
  /**
12049
- * @author CloudBrasil <abernardo.br@gmail.com>
12185
+ * @author Myndware <augusto.pissarra@myndware.com>
12050
12186
  * @description Get the return data and check for errors
12051
12187
  * @param {object} retData Response HTTP
12052
12188
  * @return {*}
@@ -12061,7 +12197,7 @@ class AdminUser {
12061
12197
  }
12062
12198
 
12063
12199
  /**
12064
- * @author CloudBrasil <abernardo.br@gmail.com>
12200
+ * @author Myndware <augusto.pissarra@myndware.com>
12065
12201
  * @description Set header with new session
12066
12202
  * @param {string} session Session, token JWT
12067
12203
  * @return {object} header with new session
@@ -12076,7 +12212,7 @@ class AdminUser {
12076
12212
  }
12077
12213
 
12078
12214
  /**
12079
- * @author CloudBrasil <abernardo.br@gmail.com>
12215
+ * @author Myndware <augusto.pissarra@myndware.com>
12080
12216
  * @description Request profile by userId
12081
12217
  * @param {string} userId User identifier (_id database)
12082
12218
  * @param {string} session Is token JWT
@@ -12107,7 +12243,7 @@ class AdminUser {
12107
12243
  }
12108
12244
 
12109
12245
  /**
12110
- * @author CloudBrasil <abernardo.br@gmail.com>
12246
+ * @author Myndware <augusto.pissarra@myndware.com>
12111
12247
  * @description Request profile by userId
12112
12248
  * @param {string} userIds Users identifier (_id database)
12113
12249
  * @param {string} apiKey Api to use to search users
@@ -12137,7 +12273,7 @@ class AdminUser {
12137
12273
  }
12138
12274
 
12139
12275
  /**
12140
- * @author CloudBrasil <abernardo.br@gmail.com>
12276
+ * @author Myndware <augusto.pissarra@myndware.com>
12141
12277
  * @description Update password by userId
12142
12278
  * @param {object} params Params to update password
12143
12279
  * @param {string} params.userId Id of the user
@@ -12178,7 +12314,7 @@ class AdminUser {
12178
12314
  }
12179
12315
 
12180
12316
  /**
12181
- * @author Thiago Anselmo <thiagoo.anselmoo@gmail.com>
12317
+ * @author Myndware <augusto.pissarra@myndware.com>
12182
12318
  * @description Check if email is unique
12183
12319
  * @param {string} email Check if email is unique
12184
12320
  * @param {string} session Is token JWT
@@ -12506,7 +12642,7 @@ class AdminProcesses {
12506
12642
  }
12507
12643
 
12508
12644
  /**
12509
- * @author CloudBrasil <abernardo.br@gmail.com>
12645
+ * @author Myndware <augusto.pissarra@myndware.com>
12510
12646
  * @description Set header with new session
12511
12647
  * @param {string} session Session, token JWT
12512
12648
  * @return {object} header with new session
@@ -12521,7 +12657,7 @@ class AdminProcesses {
12521
12657
  }
12522
12658
 
12523
12659
  /**
12524
- * @author Thiago Anselmo <thiagoo.anselmoo@gmail.com>
12660
+ * @author Myndware <augusto.pissarra@myndware.com>
12525
12661
  * @description Mount query string to send in URL
12526
12662
  * @param {object} params Params to mount query string
12527
12663
  * @private
@@ -12556,7 +12692,7 @@ class AdminProcesses {
12556
12692
 
12557
12693
  /**
12558
12694
  * @see https://confluence.external-share.com/content/7450b014-52c6-4d9e-b30e-a062b57453b5/17104899/17694721/532545537
12559
- * @author CloudBrasil <abernardo.br@gmail.com>
12695
+ * @author Myndware <augusto.pissarra@myndware.com>
12560
12696
  * @description Advanced search of processes, check documentation, to verify all params, pass to method search
12561
12697
  * @return {Promise}
12562
12698
  * @public
@@ -12618,7 +12754,7 @@ class AdminProcesses {
12618
12754
  }
12619
12755
 
12620
12756
  /**
12621
- * @author CloudBrasil <abernardo.br@gmail.com>
12757
+ * @author Myndware <augusto.pissarra@myndware.com>
12622
12758
  * @description Advanced search of process in elastic search ussing system manager
12623
12759
  * @param {!object} params - Params to search document
12624
12760
  * @param {!string} params.orgProcessId - Document id (_id database) of the process
@@ -12683,7 +12819,7 @@ class AdminMessage {
12683
12819
  }
12684
12820
 
12685
12821
  /**
12686
- * @author CloudBrasil <abernardo.br@gmail.com>
12822
+ * @author Myndware <augusto.pissarra@myndware.com>
12687
12823
  * @description Get the return data and check for errors
12688
12824
  * @param {object} retData Response HTTP
12689
12825
  * @return {*}
@@ -12698,7 +12834,7 @@ class AdminMessage {
12698
12834
  }
12699
12835
 
12700
12836
  /**
12701
- * @author CloudBrasil <abernardo.br@gmail.com>
12837
+ * @author Myndware <augusto.pissarra@myndware.com>
12702
12838
  * @description Set header with new session
12703
12839
  * @param {string} session Session, token JWT
12704
12840
  * @return {object} header with new session
@@ -12866,7 +13002,7 @@ class AdminDocTypes {
12866
13002
  }
12867
13003
 
12868
13004
  /**
12869
- * @author CloudBrasil <abernardo.br@gmail.com>
13005
+ * @author Myndware <augusto.pissarra@myndware.com>
12870
13006
  * @description Get the return data and check for errors
12871
13007
  * @param {object} retData Response HTTP
12872
13008
  * @return {*}
@@ -12881,7 +13017,7 @@ class AdminDocTypes {
12881
13017
  }
12882
13018
 
12883
13019
  /**
12884
- * @author CloudBrasil <abernardo.br@gmail.com>
13020
+ * @author Myndware <augusto.pissarra@myndware.com>
12885
13021
  * @description Set header with new session
12886
13022
  * @param {string} session Session, token JWT
12887
13023
  * @return {object} header with new session
@@ -12896,7 +13032,7 @@ class AdminDocTypes {
12896
13032
  }
12897
13033
 
12898
13034
  /**
12899
- * @author CloudBrasil <abernardo.br@gmail.com>
13035
+ * @author Myndware <augusto.pissarra@myndware.com>
12900
13036
  * @description Request profile by userId
12901
13037
  * @param {object} params The params
12902
13038
  * @param {string} params.id The organization document type id (_id database)
@@ -12957,7 +13093,7 @@ class Organization {
12957
13093
  }
12958
13094
 
12959
13095
  /**
12960
- * @author CloudBrasil <abernardo.br@gmail.com>
13096
+ * @author Myndware <augusto.pissarra@myndware.com>
12961
13097
  * @description Set header with new session
12962
13098
  * @param {string} session Session, token JWT
12963
13099
  * @return {object} header with new session
@@ -12972,7 +13108,7 @@ class Organization {
12972
13108
  }
12973
13109
 
12974
13110
  /**
12975
- * @author CloudBrasil <abernardo.br@gmail.com>
13111
+ * @author Myndware <augusto.pissarra@myndware.com>
12976
13112
  * @description Update avatar of organization by session of user not allow session user SU
12977
13113
  * @param {object} params Params to update avatar
12978
13114
  * @param {string} params.orgId - Organization id
@@ -13015,7 +13151,7 @@ class Organization {
13015
13151
  }
13016
13152
 
13017
13153
  /**
13018
- * @author CloudBrasil <abernardo.br@gmail.com>
13154
+ * @author Myndware <augusto.pissarra@myndware.com>
13019
13155
  * @description Remove avatar of user by session of user not allow session user SU
13020
13156
  * @param {string} params.orgId - Organization id
13021
13157
  * @param {string} session - Is token JWT of user SU
@@ -13050,7 +13186,7 @@ class Organization {
13050
13186
  */
13051
13187
  class Admin {
13052
13188
  /**
13053
- * @author CloudBrasil <abernardo.br@gmail.com>
13189
+ * @author Myndware <augusto.pissarra@myndware.com>
13054
13190
  * @constructor
13055
13191
  * @param {object} options Params of the constructor
13056
13192
  * @param {object} options.parent This of the pararent
@@ -13106,7 +13242,7 @@ class External {
13106
13242
  }
13107
13243
 
13108
13244
  /**
13109
- * @author CloudBrasil <abernardo.br@gmail.com>
13245
+ * @author Myndware <augusto.pissarra@myndware.com>
13110
13246
  * @description Set header with new session
13111
13247
  * @param {string} session Session, token JWT
13112
13248
  * @return {object} header with new session
@@ -13121,7 +13257,7 @@ class External {
13121
13257
  }
13122
13258
 
13123
13259
  /**
13124
- * @author CloudBrasil <abernardo.br@gmail.com>
13260
+ * @author Myndware <augusto.pissarra@myndware.com>
13125
13261
  * @description Create new document
13126
13262
  * @param {object} params Object for add new document
13127
13263
  * @param {string} params.id Organization form id
@@ -13160,7 +13296,7 @@ class External {
13160
13296
  }
13161
13297
 
13162
13298
  /**
13163
- * @author CloudBrasil <abernardo.br@gmail.com>
13299
+ * @author Myndware <augusto.pissarra@myndware.com>
13164
13300
  * @description Get an upload signed url, so it will be possible to upload documents temporarily during the use of the external form
13165
13301
  * @param {string} mime the mime type of the document
13166
13302
  * @param {string} authorization a legal authorization
@@ -13198,7 +13334,7 @@ class External {
13198
13334
  }
13199
13335
 
13200
13336
  /**
13201
- * @author CloudBrasil <abernardo.br@gmail.com>
13337
+ * @author Myndware <augusto.pissarra@myndware.com>
13202
13338
  * @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
13339
  * @param {array<object>} docs the list of documents
13204
13340
  * @param {string} docs.mime the mime type of the document
@@ -13239,7 +13375,7 @@ class External {
13239
13375
  }
13240
13376
 
13241
13377
  /**
13242
- * @author CloudBrasil <abernardo.br@gmail.com>
13378
+ * @author Myndware <augusto.pissarra@myndware.com>
13243
13379
  * @description Handles the execution of an external form
13244
13380
  * @param {string} authorization a legal authorization
13245
13381
  * @param {object} params the parameters to handle the execution of an external form