@docbrasil/api-systemmanager 1.0.48 → 1.0.52
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/user/document.js +2 -2
- package/api/user/organization.js +0 -10
- package/api/utils/promises.js +2 -2
- package/bundleRollup.js +158 -0
- package/dist/bundle.cjs +6707 -17
- package/dist/bundle.mjs +1 -4004
- package/doc/api.md +4 -9
- package/package.json +15 -9
- package/rollup.config.js +0 -24
package/doc/api.md
CHANGED
|
@@ -1193,7 +1193,7 @@ Uploads the file
|
|
|
1193
1193
|
| Param | Type | Description |
|
|
1194
1194
|
| --- | --- | --- |
|
|
1195
1195
|
| params | <code>object</code> | Params to upload document |
|
|
1196
|
-
| params.content | <code>
|
|
1196
|
+
| params.content | <code>buffer</code> | The content of the file (Buffer) |
|
|
1197
1197
|
| params.signedUrl | <code>string</code> | The signed URL |
|
|
1198
1198
|
| params.type | <code>string</code> | The file mime type |
|
|
1199
1199
|
|
|
@@ -1252,7 +1252,7 @@ Class for organizations, permission user
|
|
|
1252
1252
|
* [.idCardExist(idcard, session)](#Organization+idCardExist)
|
|
1253
1253
|
* [.upsertAvatar(params, session)](#Organization+upsertAvatar) ⇒ <code>Promise</code>
|
|
1254
1254
|
* [.removeAvatar(session)](#Organization+removeAvatar) ⇒ <code>Promise</code>
|
|
1255
|
-
* [.callFetch(params
|
|
1255
|
+
* [.callFetch(params)](#Organization+callFetch) ⇒ <code>promise</code>
|
|
1256
1256
|
|
|
1257
1257
|
<a name="Organization+findById"></a>
|
|
1258
1258
|
|
|
@@ -1347,12 +1347,11 @@ await api.user.profile.removeAvatar(session);
|
|
|
1347
1347
|
```
|
|
1348
1348
|
<a name="Organization+callFetch"></a>
|
|
1349
1349
|
|
|
1350
|
-
### organization.callFetch(params
|
|
1350
|
+
### organization.callFetch(params) ⇒ <code>promise</code>
|
|
1351
1351
|
Call URL internal, need auth JWT (session)
|
|
1352
1352
|
|
|
1353
1353
|
**Kind**: instance method of [<code>Organization</code>](#Organization)
|
|
1354
1354
|
**Access**: public
|
|
1355
|
-
**Author**: Augusto Pissarra <abernardo.br@gmail.com>
|
|
1356
1355
|
**Author**: Thiago Anselmo <thiagoo.anselmoo@gmail.com>
|
|
1357
1356
|
|
|
1358
1357
|
| Param | Type | Default | Description |
|
|
@@ -1360,10 +1359,6 @@ Call URL internal, need auth JWT (session)
|
|
|
1360
1359
|
| params | <code>object</code> | | Params to call fectch (URL internal) |
|
|
1361
1360
|
| params.url | <code>string</code> | | URL to call |
|
|
1362
1361
|
| [params.method] | <code>string</code> | <code>"POST"</code> | Fetch Method |
|
|
1363
|
-
| params.payload | <code>string</code> | | Payload to send |
|
|
1364
|
-
| params | <code>object</code> | | Params to call fectch (URL internal) |
|
|
1365
|
-
| params.url | <code>string</code> | | URL to call |
|
|
1366
|
-
| [params.method] | <code>string</code> | <code>"POST"</code> | Fetch Method |
|
|
1367
1362
|
| params.payload | <code>string</code> | | Payload to send system manager |
|
|
1368
1363
|
|
|
1369
1364
|
**Example**
|
|
@@ -1753,7 +1748,7 @@ Update a user profile by id
|
|
|
1753
1748
|
| params.secAnswer | <code>string</code> | The security answer |
|
|
1754
1749
|
| params.timezone | <code>string</code> | The timezone |
|
|
1755
1750
|
| params.userLanguage | <code>string</code> | The user language |
|
|
1756
|
-
| params.changePassword | <code>string</code> | If we need to change the status and we changed the password |
|
|
1751
|
+
| params.changePassword | <code>string</code> | (required) If we need to change the status and we changed the password |
|
|
1757
1752
|
| params.acceptTermsOfUse | <code>string</code> | If the user has accepted the terms of change |
|
|
1758
1753
|
| session | <code>string</code> | Session, token JWT |
|
|
1759
1754
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docbrasil/api-systemmanager",
|
|
3
3
|
"description": "Module API System Manager",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.52",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"doc": "rm -f doc/api.md && jsdoc2md api/**/** > doc/api.md",
|
|
7
|
-
"build": "
|
|
7
|
+
"build": "node bundleRollup.js"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"main": "./dist/bundle.mjs",
|
|
@@ -30,25 +30,31 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@hapi/boom": "^8.0.1",
|
|
32
32
|
"async": "^3.1.0",
|
|
33
|
-
"axios": "^0.21.
|
|
33
|
+
"axios": "^0.21.2",
|
|
34
34
|
"crypto-js": "^4.1.1",
|
|
35
|
-
"i": "^0.3.
|
|
36
|
-
"joi": "^17.
|
|
35
|
+
"i": "^0.3.7",
|
|
36
|
+
"joi": "^17.4.2",
|
|
37
37
|
"jsdoc-to-markdown": "^6.0.1",
|
|
38
|
-
"lodash": "^4.17.
|
|
38
|
+
"lodash": "^4.17.21",
|
|
39
39
|
"moment": "^2.27.0",
|
|
40
|
-
"npm": "^6.
|
|
40
|
+
"npm": "^6.14.6"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
+
"@rollup/plugin-alias": "^3.1.8",
|
|
44
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
45
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
43
46
|
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
47
|
+
"axios-esm": "^1.0.0",
|
|
44
48
|
"chai": "^3.5.0",
|
|
49
|
+
"dayjs": "^1.10.7",
|
|
45
50
|
"glob": "~7.1.1",
|
|
46
51
|
"license-checker": "^8.0.4",
|
|
52
|
+
"lodash-es": "^4.17.21",
|
|
47
53
|
"mocha": "^3.2.0",
|
|
48
54
|
"proxyquire": "^1.8.0",
|
|
49
|
-
"rollup
|
|
55
|
+
"rollup": "^2.59.0",
|
|
50
56
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
51
|
-
"rollup-plugin-
|
|
57
|
+
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
52
58
|
"rollup-plugin-uglify": "^6.0.4",
|
|
53
59
|
"sinon": "^7.5.0"
|
|
54
60
|
},
|
package/rollup.config.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import cleanup from 'rollup-plugin-cleanup';
|
|
2
|
-
import { uglify } from "rollup-plugin-uglify";
|
|
3
|
-
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
|
4
|
-
import autoExternal from 'rollup-plugin-auto-external';
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
input: './index.js',
|
|
8
|
-
output: [
|
|
9
|
-
{
|
|
10
|
-
file: 'dist/bundle.cjs',
|
|
11
|
-
format: 'cjs'
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
file: 'dist/bundle.mjs',
|
|
15
|
-
format: 'esm'
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
plugins: [
|
|
19
|
-
autoExternal(),
|
|
20
|
-
nodeResolve(),
|
|
21
|
-
// cleanup(),
|
|
22
|
-
// uglify()
|
|
23
|
-
]
|
|
24
|
-
}
|