@docbrasil/api-systemmanager 1.1.40 → 1.1.41
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/.project +11 -0
- package/api/user/process.js +71 -1
- package/dist/bundle.cjs +71 -1
- package/dist/bundle.mjs +1 -1
- package/doc/api.md +52 -0
- package/package-lock.json +7337 -0
- package/package.json +1 -1
package/doc/api.md
CHANGED
|
@@ -2942,6 +2942,8 @@ Class for process, permission user
|
|
|
2942
2942
|
* [.processDocs(params, session)](#Process+processDocs) ⇒ <code>promise</code> \| <code>array.<object></code>
|
|
2943
2943
|
* [.downloadDocs(params, session)](#Process+downloadDocs) ⇒ <code>promise</code>
|
|
2944
2944
|
* [.getOrgDocTypes(params, session)](#Process+getOrgDocTypes) ⇒ <code>Promise</code>
|
|
2945
|
+
* [.getOrgGroups(params, session)](#Process+getOrgGroups) ⇒ <code>Promise</code>
|
|
2946
|
+
* [.getOrgUsers(params, session)](#Process+getOrgUsers) ⇒ <code>Promise</code>
|
|
2945
2947
|
|
|
2946
2948
|
<a name="Process+start"></a>
|
|
2947
2949
|
|
|
@@ -3226,6 +3228,56 @@ const params = {
|
|
|
3226
3228
|
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
3227
3229
|
await api.user.process.getOrgDocTypes(params, session);
|
|
3228
3230
|
```
|
|
3231
|
+
<a name="Process+getOrgGroups"></a>
|
|
3232
|
+
|
|
3233
|
+
### process.getOrgGroups(params, session) ⇒ <code>Promise</code>
|
|
3234
|
+
Get Org Groups
|
|
3235
|
+
|
|
3236
|
+
**Kind**: instance method of [<code>Process</code>](#Process)
|
|
3237
|
+
**Access**: public
|
|
3238
|
+
**Author**: Myndware <augusto.pissarra@myndware.com>
|
|
3239
|
+
|
|
3240
|
+
| Param | Type | Description |
|
|
3241
|
+
| --- | --- | --- |
|
|
3242
|
+
| params | <code>object</code> | Params to get Org Groups |
|
|
3243
|
+
| params.orgId | <code>string</code> | Organization id (_id database); |
|
|
3244
|
+
| session | <code>string</code> | Session, token JWT |
|
|
3245
|
+
|
|
3246
|
+
**Example**
|
|
3247
|
+
```js
|
|
3248
|
+
const API = require('@docbrasil/api-systemmanager');
|
|
3249
|
+
const api = new API();
|
|
3250
|
+
const params = {
|
|
3251
|
+
orgId: '5edd11c46b6ce9729c2c297c',
|
|
3252
|
+
}
|
|
3253
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
3254
|
+
await api.user.process.getOrgGroups(params, session);
|
|
3255
|
+
```
|
|
3256
|
+
<a name="Process+getOrgUsers"></a>
|
|
3257
|
+
|
|
3258
|
+
### process.getOrgUsers(params, session) ⇒ <code>Promise</code>
|
|
3259
|
+
Get Org Users
|
|
3260
|
+
|
|
3261
|
+
**Kind**: instance method of [<code>Process</code>](#Process)
|
|
3262
|
+
**Access**: public
|
|
3263
|
+
**Author**: Myndware <augusto.pissarra@myndware.com>
|
|
3264
|
+
|
|
3265
|
+
| Param | Type | Description |
|
|
3266
|
+
| --- | --- | --- |
|
|
3267
|
+
| params | <code>object</code> | Params to get Org Users |
|
|
3268
|
+
| params.orgId | <code>string</code> | Organization id (_id database); |
|
|
3269
|
+
| session | <code>string</code> | Session, token JWT |
|
|
3270
|
+
|
|
3271
|
+
**Example**
|
|
3272
|
+
```js
|
|
3273
|
+
const API = require('@docbrasil/api-systemmanager');
|
|
3274
|
+
const api = new API();
|
|
3275
|
+
const params = {
|
|
3276
|
+
orgId: '5edd11c46b6ce9729c2c297c',
|
|
3277
|
+
}
|
|
3278
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
3279
|
+
await api.user.process.getOrgUsers(params, session);
|
|
3280
|
+
```
|
|
3229
3281
|
<a name="Register"></a>
|
|
3230
3282
|
|
|
3231
3283
|
## Register
|