@docbrasil/api-systemmanager 1.1.21 → 1.1.22

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/user.js CHANGED
@@ -302,7 +302,7 @@ class User {
302
302
  * const api = new API();
303
303
  * const query = { orgIds: ['616eccaaa9360a05293b10fe'] };
304
304
  * const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
305
- * const jwtToken = await api.user.changeOrganization.getChartJWT(query, session);
305
+ * const jwtToken = await api.user.getChartJWT(query, session);
306
306
  */
307
307
  async getChartJWT(query = {}, session) {
308
308
  const self = this;
@@ -333,7 +333,7 @@ class User {
333
333
  * const API = require('@docbrasil/api-systemmanager');
334
334
  * const api = new API();
335
335
  * const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
336
- * const organizations = await api.user.changeOrganization.getChartOrganizations(session);
336
+ * const organizations = await api.user.getChartOrganizations(session);
337
337
  */
338
338
  async getChartOrganizations(session) {
339
339
  const self = this;
@@ -365,7 +365,7 @@ class User {
365
365
  * const api = new API();
366
366
  * const orgIds: ['616eccaaa9360a05293b10fe'];
367
367
  * const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
368
- * const jwtToken = await api.user.changeOrganization.getChartTags(orgIds, session);
368
+ * const jwtToken = await api.user.getChartTags(orgIds, session);
369
369
  */
370
370
  async getChartTags(orgIds = [], session) {
371
371
  const self = this;
package/dist/bundle.cjs CHANGED
@@ -3134,7 +3134,7 @@ class User {
3134
3134
  * const api = new API();
3135
3135
  * const query = { orgIds: ['616eccaaa9360a05293b10fe'] };
3136
3136
  * const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
3137
- * const jwtToken = await api.user.changeOrganization.getChartJWT(query, session);
3137
+ * const jwtToken = await api.user.getChartJWT(query, session);
3138
3138
  */
3139
3139
  async getChartJWT(query = {}, session) {
3140
3140
  const self = this;
@@ -3165,7 +3165,7 @@ class User {
3165
3165
  * const API = require('@docbrasil/api-systemmanager');
3166
3166
  * const api = new API();
3167
3167
  * const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
3168
- * const organizations = await api.user.changeOrganization.getChartOrganizations(session);
3168
+ * const organizations = await api.user.getChartOrganizations(session);
3169
3169
  */
3170
3170
  async getChartOrganizations(session) {
3171
3171
  const self = this;
@@ -3197,7 +3197,7 @@ class User {
3197
3197
  * const api = new API();
3198
3198
  * const orgIds: ['616eccaaa9360a05293b10fe'];
3199
3199
  * const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
3200
- * const jwtToken = await api.user.changeOrganization.getChartTags(orgIds, session);
3200
+ * const jwtToken = await api.user.getChartTags(orgIds, session);
3201
3201
  */
3202
3202
  async getChartTags(orgIds = [], session) {
3203
3203
  const self = this;
package/doc/api.md CHANGED
@@ -3443,7 +3443,7 @@ const API = require('@docbrasil/api-systemmanager');
3443
3443
  const api = new API();
3444
3444
  const query = { orgIds: ['616eccaaa9360a05293b10fe'] };
3445
3445
  const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
3446
- const jwtToken = await api.user.changeOrganization.getChartJWT(query, session);
3446
+ const jwtToken = await api.user.getChartJWT(query, session);
3447
3447
  ```
3448
3448
  <a name="User+getChartOrganizations"></a>
3449
3449
 
@@ -3463,7 +3463,7 @@ Get the user organizations to run dashboard filtering
3463
3463
  const API = require('@docbrasil/api-systemmanager');
3464
3464
  const api = new API();
3465
3465
  const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
3466
- const organizations = await api.user.changeOrganization.getChartOrganizations(session);
3466
+ const organizations = await api.user.getChartOrganizations(session);
3467
3467
  ```
3468
3468
  <a name="User+getChartTags"></a>
3469
3469
 
@@ -3485,7 +3485,7 @@ const API = require('@docbrasil/api-systemmanager');
3485
3485
  const api = new API();
3486
3486
  const orgIds: ['616eccaaa9360a05293b10fe'];
3487
3487
  const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
3488
- const jwtToken = await api.user.changeOrganization.getChartTags(orgIds, session);
3488
+ const jwtToken = await api.user.getChartTags(orgIds, session);
3489
3489
  ```
3490
3490
  <a name="Dispatch"></a>
3491
3491
 
package/docs/User.html CHANGED
@@ -1393,7 +1393,7 @@ await api.user.profile.findByIdAndUpdate(params, session);</code></pre>
1393
1393
  const api = new API();
1394
1394
  const query = { orgIds: ['616eccaaa9360a05293b10fe'] };
1395
1395
  const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
1396
- const jwtToken = await api.user.changeOrganization.getChartJWT(query, session);</code></pre>
1396
+ const jwtToken = await api.user.getChartJWT(query, session);</code></pre>
1397
1397
 
1398
1398
 
1399
1399
 
@@ -1639,7 +1639,7 @@ const jwtToken = await api.user.changeOrganization.getChartJWT(query, session);<
1639
1639
  <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
1640
1640
  const api = new API();
1641
1641
  const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
1642
- const organizations = await api.user.changeOrganization.getChartOrganizations(session);</code></pre>
1642
+ const organizations = await api.user.getChartOrganizations(session);</code></pre>
1643
1643
 
1644
1644
 
1645
1645
 
@@ -1941,7 +1941,7 @@ const organizations = await api.user.changeOrganization.getChartOrganizations(se
1941
1941
  const api = new API();
1942
1942
  const orgIds: ['616eccaaa9360a05293b10fe'];
1943
1943
  const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
1944
- const jwtToken = await api.user.changeOrganization.getChartTags(orgIds, session);</code></pre>
1944
+ const jwtToken = await api.user.getChartTags(orgIds, session);</code></pre>
1945
1945
 
1946
1946
 
1947
1947
 
@@ -389,7 +389,7 @@ class User {
389
389
  * const api = new API();
390
390
  * const query = { orgIds: ['616eccaaa9360a05293b10fe'] };
391
391
  * const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
392
- * const jwtToken = await api.user.changeOrganization.getChartJWT(query, session);
392
+ * const jwtToken = await api.user.getChartJWT(query, session);
393
393
  */
394
394
  async getChartJWT(query = {}, session) {
395
395
  const self = this;
@@ -420,7 +420,7 @@ class User {
420
420
  * const API = require('@docbrasil/api-systemmanager');
421
421
  * const api = new API();
422
422
  * const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
423
- * const organizations = await api.user.changeOrganization.getChartOrganizations(session);
423
+ * const organizations = await api.user.getChartOrganizations(session);
424
424
  */
425
425
  async getChartOrganizations(session) {
426
426
  const self = this;
@@ -452,7 +452,7 @@ class User {
452
452
  * const api = new API();
453
453
  * const orgIds: ['616eccaaa9360a05293b10fe'];
454
454
  * const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
455
- * const jwtToken = await api.user.changeOrganization.getChartTags(orgIds, session);
455
+ * const jwtToken = await api.user.getChartTags(orgIds, session);
456
456
  */
457
457
  async getChartTags(orgIds = [], session) {
458
458
  const self = this;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@docbrasil/api-systemmanager",
3
3
  "description": "Module API System Manager",
4
- "version": "1.1.21",
4
+ "version": "1.1.22",
5
5
  "scripts": {
6
6
  "htmldoc": "rm -rf docs && jsdoc api/** -d docs -t ./node_modules/better-docs",
7
7
  "doc": "rm -rf doc && mkdir doc && jsdoc2md api/**/* api/* > doc/api.md",