@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.
- 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 +11 -11
- 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 +108 -9
- package/dist/bundle.cjs +279 -143
- package/dist/bundle.mjs +1 -1
- package/doc/api.md +202 -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 +11 -11
- 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 +925 -7
- 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 +12 -12
- 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 +108 -9
- package/package.json +1 -1
- package/.project +0 -11
package/api/admin/doctypes.js
CHANGED
|
@@ -13,7 +13,7 @@ class AdminDocTypes {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* @author
|
|
16
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
17
17
|
* @description Get the return data and check for errors
|
|
18
18
|
* @param {object} retData Response HTTP
|
|
19
19
|
* @return {*}
|
|
@@ -28,7 +28,7 @@ class AdminDocTypes {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* @author
|
|
31
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
32
32
|
* @description Set header with new session
|
|
33
33
|
* @param {string} session Session, token JWT
|
|
34
34
|
* @return {object} header with new session
|
|
@@ -43,7 +43,7 @@ class AdminDocTypes {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* @author
|
|
46
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
47
47
|
* @description Request profile by userId
|
|
48
48
|
* @param {object} params The params
|
|
49
49
|
* @param {string} params.id The organization document type id (_id database)
|
package/api/admin/document.js
CHANGED
|
@@ -33,7 +33,7 @@ class AdminDocuments {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @author
|
|
36
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
37
37
|
* @description Set header with new session
|
|
38
38
|
* @param {string} session Session, token JWT
|
|
39
39
|
* @return {object} header with new session
|
|
@@ -48,7 +48,7 @@ class AdminDocuments {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* @author
|
|
51
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
52
52
|
* @description Advanced search of document in elastic search ussing system manager
|
|
53
53
|
* @param {!object} params - Params to search document
|
|
54
54
|
* @param {!string} params.docId - Document id (_id database)
|
|
@@ -107,7 +107,7 @@ class AdminDocuments {
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
|
-
* @author
|
|
110
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
111
111
|
* @description Get document by id
|
|
112
112
|
* @param {object} params - Params to get document by id
|
|
113
113
|
* @param {string} params.docId - Document id (_id database)
|
|
@@ -146,7 +146,7 @@ class AdminDocuments {
|
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
*
|
|
149
|
-
* @author
|
|
149
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
150
150
|
* @description Request signed url url to put or get
|
|
151
151
|
* @param {object} params Params to request signed url
|
|
152
152
|
* @param {string} params.methodType Method type HTTP get or put
|
|
@@ -200,7 +200,7 @@ class AdminDocuments {
|
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
202
|
*
|
|
203
|
-
* @author
|
|
203
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
204
204
|
* @description Update a document content
|
|
205
205
|
* @param {object} params Params to request signed url
|
|
206
206
|
* @param {string} params.content The content text
|
|
@@ -241,7 +241,7 @@ class AdminDocuments {
|
|
|
241
241
|
|
|
242
242
|
/**
|
|
243
243
|
*
|
|
244
|
-
* @author
|
|
244
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
245
245
|
* @description Update a document content
|
|
246
246
|
* @param {object} params Params to request signed url
|
|
247
247
|
* @param {string} params.content The content text
|
|
@@ -287,7 +287,7 @@ class AdminDocuments {
|
|
|
287
287
|
|
|
288
288
|
/**
|
|
289
289
|
*
|
|
290
|
-
* @author
|
|
290
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
291
291
|
* @description Get the content of a document
|
|
292
292
|
* @param {object} params Params to request signed url
|
|
293
293
|
* @param {string} params.docId The unique id of the document
|
package/api/admin/form.js
CHANGED
|
@@ -33,7 +33,7 @@ class AdminForm {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @author
|
|
36
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
37
37
|
* @description Set header with new session
|
|
38
38
|
* @param {string} session Session, token JWT
|
|
39
39
|
* @return {object} header with new session
|
|
@@ -48,7 +48,7 @@ class AdminForm {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* @author
|
|
51
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
52
52
|
* @description Get advance form by ID
|
|
53
53
|
* @param {object} params Params to find form by id
|
|
54
54
|
* @param {string} params.id Formulary Id (_id database)
|
|
@@ -86,7 +86,7 @@ class AdminForm {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
* @author
|
|
89
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
90
90
|
* @description Request signed url url to put or get
|
|
91
91
|
* @param {object} params - Params to get form list
|
|
92
92
|
* @param {string} params.orgId - Organization id (_id database)
|
package/api/admin/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import AdminOrganizations from './organization.js';
|
|
|
18
18
|
*/
|
|
19
19
|
class Admin {
|
|
20
20
|
/**
|
|
21
|
-
* @author
|
|
21
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
22
22
|
* @constructor
|
|
23
23
|
* @param {object} options Params of the constructor
|
|
24
24
|
* @param {object} options.parent This of the pararent
|
package/api/admin/list.js
CHANGED
|
@@ -33,7 +33,7 @@ class AdminLists {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @author
|
|
36
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
37
37
|
* @description Set header with new session
|
|
38
38
|
* @param {string} session Session, token JWT
|
|
39
39
|
* @return {object} header with new session
|
|
@@ -48,7 +48,7 @@ class AdminLists {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* @author
|
|
51
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
52
52
|
* @description Get list by ID
|
|
53
53
|
* @param {object} params Params to find list by id
|
|
54
54
|
* @param {string} params.id List Id (_id database)
|
|
@@ -86,7 +86,7 @@ class AdminLists {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
* @author
|
|
89
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
90
90
|
* @description Get all lists
|
|
91
91
|
* @param {object} params={} Params to pagination and orgId
|
|
92
92
|
* @param {number} [params.page=0] Current page to pagination
|
package/api/admin/message.js
CHANGED
|
@@ -18,7 +18,7 @@ class AdminMessage {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* @author
|
|
21
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
22
22
|
* @description Get the return data and check for errors
|
|
23
23
|
* @param {object} retData Response HTTP
|
|
24
24
|
* @return {*}
|
|
@@ -33,7 +33,7 @@ class AdminMessage {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @author
|
|
36
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
37
37
|
* @description Set header with new session
|
|
38
38
|
* @param {string} session Session, token JWT
|
|
39
39
|
* @return {object} header with new session
|
|
@@ -33,7 +33,7 @@ class AdminNotification {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @author
|
|
36
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
37
37
|
* @description Set header with new session
|
|
38
38
|
* @param {string} session Session, token JWT
|
|
39
39
|
* @return {object} header with new session
|
|
@@ -72,7 +72,7 @@ class AdminNotification {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* @author
|
|
75
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
76
76
|
* @description Create notification
|
|
77
77
|
* @param {object} params Params to create notification
|
|
78
78
|
* @param {string} params.orgId OrgId of the user SU
|
|
@@ -113,7 +113,7 @@ class AdminNotification {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
|
-
* @author
|
|
116
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
117
117
|
* @description Search notification using (notificationId or userId)
|
|
118
118
|
* @param {object} params Params to create notification
|
|
119
119
|
* @param {string} params.orgId OrgId of the user SU
|
|
@@ -151,7 +151,7 @@ class AdminNotification {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
|
-
* @author
|
|
154
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
155
155
|
* @description Update notification using (notificationId or userId)
|
|
156
156
|
* @param {object} params Params to create notification
|
|
157
157
|
* @param {string} params.orgId OrgId of the user SU
|
|
@@ -192,7 +192,7 @@ class AdminNotification {
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
|
-
* @author
|
|
195
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
196
196
|
* @description Delete notification using (notificationId or userId)
|
|
197
197
|
* @param {object} params Params to create notification
|
|
198
198
|
* @param {string} params.orgId OrgId of the user SU
|
|
@@ -33,7 +33,7 @@ class Organization {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @author
|
|
36
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
37
37
|
* @description Set header with new session
|
|
38
38
|
* @param {string} session Session, token JWT
|
|
39
39
|
* @return {object} header with new session
|
|
@@ -48,7 +48,7 @@ class Organization {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* @author
|
|
51
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
52
52
|
* @description Update avatar of organization by session of user not allow session user SU
|
|
53
53
|
* @param {object} params Params to update avatar
|
|
54
54
|
* @param {string} params.orgId - Organization id
|
|
@@ -91,7 +91,7 @@ class Organization {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
* @author
|
|
94
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
95
95
|
* @description Remove avatar of user by session of user not allow session user SU
|
|
96
96
|
* @param {string} params.orgId - Organization id
|
|
97
97
|
* @param {string} session - Is token JWT of user SU
|
package/api/admin/plugin.js
CHANGED
|
@@ -33,7 +33,7 @@ class AdminPlugin {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @author
|
|
36
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
37
37
|
* @description Set header with new session
|
|
38
38
|
* @param {string} session Session, token JWT
|
|
39
39
|
* @return {object} header with new session
|
|
@@ -83,7 +83,7 @@ class AdminPlugin {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
|
-
* @author
|
|
86
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
87
87
|
* @description Get plugin by ID
|
|
88
88
|
* @param {string} id Plugin Id (_id database)
|
|
89
89
|
* @param {string} session Session, token JWT
|
package/api/admin/policy.js
CHANGED
|
@@ -18,7 +18,7 @@ class AdminPolicy {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* @author
|
|
21
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
22
22
|
* @description Get the return data and check for errors
|
|
23
23
|
* @param {object} retData Response HTTP
|
|
24
24
|
* @return {*}
|
|
@@ -33,7 +33,7 @@ class AdminPolicy {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @author
|
|
36
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
37
37
|
* @description Set header with new session
|
|
38
38
|
* @param {string} session Session, token JWT
|
|
39
39
|
* @return {object} header with new session
|
|
@@ -48,7 +48,7 @@ class AdminPolicy {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* @author
|
|
51
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
52
52
|
* @description Find all policies
|
|
53
53
|
* @param {string} session Session, token JWT
|
|
54
54
|
* @return {Promise}
|
package/api/admin/processes.js
CHANGED
|
@@ -206,7 +206,7 @@ class AdminProcesses {
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
|
-
* @author
|
|
209
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
210
210
|
* @description Set header with new session
|
|
211
211
|
* @param {string} session Session, token JWT
|
|
212
212
|
* @return {object} header with new session
|
|
@@ -221,7 +221,7 @@ class AdminProcesses {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
|
-
* @author
|
|
224
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
225
225
|
* @description Mount query string to send in URL
|
|
226
226
|
* @param {object} params Params to mount query string
|
|
227
227
|
* @private
|
|
@@ -256,7 +256,7 @@ class AdminProcesses {
|
|
|
256
256
|
|
|
257
257
|
/**
|
|
258
258
|
* @see https://confluence.external-share.com/content/7450b014-52c6-4d9e-b30e-a062b57453b5/17104899/17694721/532545537
|
|
259
|
-
* @author
|
|
259
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
260
260
|
* @description Advanced search of processes, check documentation, to verify all params, pass to method search
|
|
261
261
|
* @return {Promise}
|
|
262
262
|
* @public
|
|
@@ -318,7 +318,7 @@ class AdminProcesses {
|
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
/**
|
|
321
|
-
* @author
|
|
321
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
322
322
|
* @description Advanced search of process in elastic search ussing system manager
|
|
323
323
|
* @param {!object} params - Params to search document
|
|
324
324
|
* @param {!string} params.orgProcessId - Document id (_id database) of the process
|
package/api/admin/task.js
CHANGED
|
@@ -33,7 +33,7 @@ class AdminTask {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @author
|
|
36
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
37
37
|
* @description Set header with new session
|
|
38
38
|
* @param {string} session Session, token JWT
|
|
39
39
|
* @return {object} header with new session
|
|
@@ -48,7 +48,7 @@ class AdminTask {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* @author
|
|
51
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
52
52
|
* @description Get filter to search tasks
|
|
53
53
|
* @param {string} filter Filter type
|
|
54
54
|
* @return {*}
|
|
@@ -67,7 +67,7 @@ class AdminTask {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
|
-
* @author
|
|
70
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
71
71
|
* @description Get task by user Id
|
|
72
72
|
* @param {object} params Params to get task
|
|
73
73
|
* @param {string} params.userId User id (_id database)
|
package/api/admin/user.js
CHANGED
|
@@ -18,7 +18,7 @@ class AdminUser {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* @author
|
|
21
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
22
22
|
* @description Get the return data and check for errors
|
|
23
23
|
* @param {object} retData Response HTTP
|
|
24
24
|
* @return {*}
|
|
@@ -33,7 +33,7 @@ class AdminUser {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @author
|
|
36
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
37
37
|
* @description Set header with new session
|
|
38
38
|
* @param {string} session Session, token JWT
|
|
39
39
|
* @return {object} header with new session
|
|
@@ -48,7 +48,7 @@ class AdminUser {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* @author
|
|
51
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
52
52
|
* @description Request profile by userId
|
|
53
53
|
* @param {string} userId User identifier (_id database)
|
|
54
54
|
* @param {string} session Is token JWT
|
|
@@ -79,7 +79,7 @@ class AdminUser {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
|
-
* @author
|
|
82
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
83
83
|
* @description Request profile by userId
|
|
84
84
|
* @param {string} userIds Users identifier (_id database)
|
|
85
85
|
* @param {string} apiKey Api to use to search users
|
|
@@ -109,7 +109,7 @@ class AdminUser {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* @author
|
|
112
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
113
113
|
* @description Update password by userId
|
|
114
114
|
* @param {object} params Params to update password
|
|
115
115
|
* @param {string} params.userId Id of the user
|
|
@@ -150,7 +150,7 @@ class AdminUser {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
|
-
* @author
|
|
153
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
154
154
|
* @description Check if email is unique
|
|
155
155
|
* @param {string} email Check if email is unique
|
|
156
156
|
* @param {string} session Is token JWT
|
package/api/dispatch.js
CHANGED
|
@@ -33,7 +33,7 @@ class Dispatch {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @author
|
|
36
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
37
37
|
* @description Set header with new session
|
|
38
38
|
* @param {string} session Session, token JWT
|
|
39
39
|
* @return {object} header with new session
|
|
@@ -77,7 +77,7 @@ class Dispatch {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
* @author
|
|
80
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
81
81
|
* @description Get client Axios
|
|
82
82
|
* @return {promise} return client axios
|
|
83
83
|
* @public
|
package/api/external.js
CHANGED
|
@@ -33,7 +33,7 @@ class External {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @author
|
|
36
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
37
37
|
* @description Set header with new session
|
|
38
38
|
* @param {string} session Session, token JWT
|
|
39
39
|
* @return {object} header with new session
|
|
@@ -48,7 +48,7 @@ class External {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* @author
|
|
51
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
52
52
|
* @description Create new document
|
|
53
53
|
* @param {object} params Object for add new document
|
|
54
54
|
* @param {string} params.id Organization form id
|
|
@@ -87,7 +87,7 @@ class External {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
|
-
* @author
|
|
90
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
91
91
|
* @description Get an upload signed url, so it will be possible to upload documents temporarily during the use of the external form
|
|
92
92
|
* @param {string} mime the mime type of the document
|
|
93
93
|
* @param {string} authorization a legal authorization
|
|
@@ -125,7 +125,7 @@ class External {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
|
-
* @author
|
|
128
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
129
129
|
* @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
|
|
130
130
|
* @param {array<object>} docs the list of documents
|
|
131
131
|
* @param {string} docs.mime the mime type of the document
|
|
@@ -166,7 +166,7 @@ class External {
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* @author
|
|
169
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
170
170
|
* @description Handles the execution of an external form
|
|
171
171
|
* @param {string} authorization a legal authorization
|
|
172
172
|
* @param {object} params the parameters to handle the execution of an external form
|
|
@@ -18,7 +18,7 @@ class GeoLocation {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* @author
|
|
21
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
22
22
|
* @description Get the return data and check for errors
|
|
23
23
|
* @param {object} retData Response HTTP
|
|
24
24
|
* @return {*}
|
|
@@ -33,7 +33,7 @@ class GeoLocation {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @author
|
|
36
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
37
37
|
* @description Set header with new session
|
|
38
38
|
* @param {string} session Session, token JWT
|
|
39
39
|
* @return {object} header with new session
|
|
@@ -48,7 +48,7 @@ class GeoLocation {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* @author
|
|
51
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
52
52
|
* @description Get geo location of the address
|
|
53
53
|
* @param {!object} params - Params to get geo location
|
|
54
54
|
* @param {!string} params.address - The address to get the location for
|
package/api/general/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import Geo from './geoLocation.js';
|
|
|
6
6
|
*/
|
|
7
7
|
class Users {
|
|
8
8
|
/**
|
|
9
|
-
* @author
|
|
9
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
10
10
|
* @constructor
|
|
11
11
|
* @param {object} options Params of the constructor
|
|
12
12
|
* @param {object} options.parent This of the pararent
|
package/api/login.js
CHANGED
|
@@ -32,7 +32,7 @@ class Login {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* @author
|
|
35
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
36
36
|
* @description Set header with new session
|
|
37
37
|
* @param {string} session Session, token JWT
|
|
38
38
|
* @return {object} header with new session
|
|
@@ -47,7 +47,7 @@ class Login {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
* @author
|
|
50
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
51
51
|
* @description Login with social login Facebook
|
|
52
52
|
* @param {object} params Params to login Facebook
|
|
53
53
|
* @param {string} params.accessToken Access token of the system manager
|
|
@@ -87,7 +87,7 @@ class Login {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
|
-
* @author
|
|
90
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
91
91
|
* @description Login with social login Google
|
|
92
92
|
* @param {object} params Params to login Google
|
|
93
93
|
* @param {string} params.accessToken Access token of the system manager
|
|
@@ -127,7 +127,7 @@ class Login {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
|
-
* @author
|
|
130
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
131
131
|
* @description Login with apikey
|
|
132
132
|
* @param {string} apikey Access key
|
|
133
133
|
* @return {promise<object>} data
|
|
@@ -158,7 +158,7 @@ class Login {
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
|
-
* @author
|
|
161
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
162
162
|
* @description Login with user and password
|
|
163
163
|
* @param {object} params Object with user and password
|
|
164
164
|
* @param {string} params.username Username or email of the user
|
|
@@ -202,7 +202,7 @@ class Login {
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
|
-
* @author
|
|
205
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
206
206
|
* @description Logout user system manager
|
|
207
207
|
* @param {string} session Session, token JWT
|
|
208
208
|
* @return {promise<object>}} data
|
|
@@ -233,7 +233,7 @@ class Login {
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
/**
|
|
236
|
-
* @author
|
|
236
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
237
237
|
* @description Recover the password
|
|
238
238
|
* @param {string} username The username or email
|
|
239
239
|
* @return {promise<object>}} data
|
package/api/session.js
CHANGED
|
@@ -35,7 +35,7 @@ class Session {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* @author
|
|
38
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
39
39
|
* @description Set header with new session
|
|
40
40
|
* @param {string} session Session, token JWT
|
|
41
41
|
* @return {object} header with new session
|
package/api/user/application.js
CHANGED
|
@@ -35,7 +35,7 @@ class Application {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* @author
|
|
38
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
39
39
|
* @description Set header with new session
|
|
40
40
|
* @param {string} session Session, token JWT
|
|
41
41
|
* @return {object} header with new session
|
|
@@ -50,7 +50,7 @@ class Application {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* @author
|
|
53
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
54
54
|
* @description Get the available applications for this user in this organizations
|
|
55
55
|
* @param {object} params Params to get task
|
|
56
56
|
* @param {object} params.orgId Organization id (_id database)
|
package/api/user/datasource.js
CHANGED
|
@@ -33,7 +33,7 @@ class Datasource {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @author
|
|
36
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
37
37
|
* @description Set header with new session
|
|
38
38
|
* @param {string} session Session, token JWT
|
|
39
39
|
* @return {object} header with new session
|
|
@@ -52,7 +52,7 @@ class Datasource {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
* @author
|
|
55
|
+
* @author Myndware <augusto.pissarra@myndware.com>
|
|
56
56
|
* @description Method to get autocomplete data from a datasource
|
|
57
57
|
* @param {object} params Params to add notification token
|
|
58
58
|
* @param {string} params.orgId The user organization _id
|