@docbrasil/api-systemmanager 1.1.76 → 1.1.78
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/list.js +214 -0
- package/api/admin/user.js +363 -1
- package/dist/bundle.cjs +577 -1
- package/dist/bundle.mjs +1 -1
- package/doc/api.md +407 -0
- package/docs/AdminLists.html +1591 -49
- package/docs/AdminUser.html +3164 -292
- package/docs/admin_list.js.html +214 -0
- package/docs/admin_user.js.html +363 -1
- package/package.json +1 -1
package/docs/AdminLists.html
CHANGED
|
@@ -224,8 +224,8 @@
|
|
|
224
224
|
|
|
225
225
|
|
|
226
226
|
|
|
227
|
-
<h4 class="name" id="
|
|
228
|
-
<a class="href-link" href="#
|
|
227
|
+
<h4 class="name" id="create">
|
|
228
|
+
<a class="href-link" href="#create">#</a>
|
|
229
229
|
|
|
230
230
|
|
|
231
231
|
<span class='tag'>async</span>
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
|
|
234
234
|
<span class="code-name">
|
|
235
235
|
|
|
236
|
-
|
|
236
|
+
create<span class="signature">(params, session)</span><span class="type-signature"> → {Promise.<object>}</span>
|
|
237
237
|
|
|
238
238
|
</span>
|
|
239
239
|
</h4>
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
|
|
243
243
|
|
|
244
244
|
<div class="description">
|
|
245
|
-
|
|
245
|
+
Create a new organization list
|
|
246
246
|
</div>
|
|
247
247
|
|
|
248
248
|
|
|
@@ -309,12 +309,10 @@
|
|
|
309
309
|
|
|
310
310
|
<td class="default">
|
|
311
311
|
|
|
312
|
-
{}
|
|
313
|
-
|
|
314
312
|
</td>
|
|
315
313
|
|
|
316
314
|
|
|
317
|
-
<td class="description last">
|
|
315
|
+
<td class="description last">Parameters</td>
|
|
318
316
|
</tr>
|
|
319
317
|
|
|
320
318
|
|
|
@@ -322,13 +320,13 @@
|
|
|
322
320
|
|
|
323
321
|
<tr class="deep-level-1">
|
|
324
322
|
|
|
325
|
-
<td class="name"><code>
|
|
323
|
+
<td class="name"><code>orgId</code></td>
|
|
326
324
|
|
|
327
325
|
|
|
328
326
|
<td class="type">
|
|
329
327
|
|
|
330
328
|
|
|
331
|
-
<code class="param-type">
|
|
329
|
+
<code class="param-type">string</code>
|
|
332
330
|
|
|
333
331
|
|
|
334
332
|
|
|
@@ -337,8 +335,6 @@
|
|
|
337
335
|
|
|
338
336
|
<td class="attributes">
|
|
339
337
|
|
|
340
|
-
<optional><br>
|
|
341
|
-
|
|
342
338
|
|
|
343
339
|
|
|
344
340
|
|
|
@@ -349,25 +345,23 @@
|
|
|
349
345
|
|
|
350
346
|
<td class="default">
|
|
351
347
|
|
|
352
|
-
0
|
|
353
|
-
|
|
354
348
|
</td>
|
|
355
349
|
|
|
356
350
|
|
|
357
|
-
<td class="description last">
|
|
351
|
+
<td class="description last">Organization ID (required)</td>
|
|
358
352
|
</tr>
|
|
359
353
|
|
|
360
354
|
|
|
361
355
|
|
|
362
356
|
<tr class="deep-level-1">
|
|
363
357
|
|
|
364
|
-
<td class="name"><code>
|
|
358
|
+
<td class="name"><code>name</code></td>
|
|
365
359
|
|
|
366
360
|
|
|
367
361
|
<td class="type">
|
|
368
362
|
|
|
369
363
|
|
|
370
|
-
<code class="param-type">
|
|
364
|
+
<code class="param-type">string</code>
|
|
371
365
|
|
|
372
366
|
|
|
373
367
|
|
|
@@ -376,8 +370,6 @@
|
|
|
376
370
|
|
|
377
371
|
<td class="attributes">
|
|
378
372
|
|
|
379
|
-
<optional><br>
|
|
380
|
-
|
|
381
373
|
|
|
382
374
|
|
|
383
375
|
|
|
@@ -388,25 +380,23 @@
|
|
|
388
380
|
|
|
389
381
|
<td class="default">
|
|
390
382
|
|
|
391
|
-
200
|
|
392
|
-
|
|
393
383
|
</td>
|
|
394
384
|
|
|
395
385
|
|
|
396
|
-
<td class="description last">
|
|
386
|
+
<td class="description last">List name (required)</td>
|
|
397
387
|
</tr>
|
|
398
388
|
|
|
399
389
|
|
|
400
390
|
|
|
401
391
|
<tr class="deep-level-1">
|
|
402
392
|
|
|
403
|
-
<td class="name"><code>
|
|
393
|
+
<td class="name"><code>list</code></td>
|
|
404
394
|
|
|
405
395
|
|
|
406
396
|
<td class="type">
|
|
407
397
|
|
|
408
398
|
|
|
409
|
-
<code class="param-type">
|
|
399
|
+
<code class="param-type">array</code>
|
|
410
400
|
|
|
411
401
|
|
|
412
402
|
|
|
@@ -415,6 +405,8 @@
|
|
|
415
405
|
|
|
416
406
|
<td class="attributes">
|
|
417
407
|
|
|
408
|
+
<optional><br>
|
|
409
|
+
|
|
418
410
|
|
|
419
411
|
|
|
420
412
|
|
|
@@ -425,10 +417,12 @@
|
|
|
425
417
|
|
|
426
418
|
<td class="default">
|
|
427
419
|
|
|
420
|
+
[]
|
|
421
|
+
|
|
428
422
|
</td>
|
|
429
423
|
|
|
430
424
|
|
|
431
|
-
<td class="description last">
|
|
425
|
+
<td class="description last">Initial list items</td>
|
|
432
426
|
</tr>
|
|
433
427
|
|
|
434
428
|
|
|
@@ -467,7 +461,7 @@
|
|
|
467
461
|
</td>
|
|
468
462
|
|
|
469
463
|
|
|
470
|
-
<td class="description last">
|
|
464
|
+
<td class="description last">JWT session token</td>
|
|
471
465
|
</tr>
|
|
472
466
|
|
|
473
467
|
|
|
@@ -522,7 +516,7 @@
|
|
|
522
516
|
<p class="tag-source">
|
|
523
517
|
<a href="admin_list.js.html" class="button">View Source</a>
|
|
524
518
|
<span>
|
|
525
|
-
<a href="admin_list.js.html">admin/list.js</a>, <a href="admin_list.js.html#
|
|
519
|
+
<a href="admin_list.js.html">admin/list.js</a>, <a href="admin_list.js.html#line192">line 192</a>
|
|
526
520
|
</span>
|
|
527
521
|
</p>
|
|
528
522
|
|
|
@@ -553,11 +547,13 @@
|
|
|
553
547
|
|
|
554
548
|
<div class="columns">
|
|
555
549
|
|
|
550
|
+
<div class='param-desc column is-7'>Created list document</div>
|
|
551
|
+
|
|
556
552
|
|
|
557
553
|
<div class='column is-5 has-text-left'>
|
|
558
554
|
<label>Type: </label>
|
|
559
555
|
|
|
560
|
-
<code class="param-type">Promise
|
|
556
|
+
<code class="param-type">Promise.<object></code>
|
|
561
557
|
|
|
562
558
|
|
|
563
559
|
</div>
|
|
@@ -576,11 +572,9 @@
|
|
|
576
572
|
|
|
577
573
|
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
578
574
|
const api = new API();
|
|
579
|
-
const params = {
|
|
580
|
-
orgId: '55e4a3bd6be6b45210833fae'
|
|
581
|
-
};
|
|
575
|
+
const params = { orgId: '5edd11c46b6ce9729c2c297c', name: 'My List', list: [] };
|
|
582
576
|
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
583
|
-
await api.admin.list.
|
|
577
|
+
const list = await api.admin.list.create(params, session);</code></pre>
|
|
584
578
|
|
|
585
579
|
|
|
586
580
|
|
|
@@ -590,8 +584,8 @@ await api.admin.list.find(params, session);</code></pre>
|
|
|
590
584
|
|
|
591
585
|
|
|
592
586
|
|
|
593
|
-
<h4 class="name" id="
|
|
594
|
-
<a class="href-link" href="#
|
|
587
|
+
<h4 class="name" id="filterByName">
|
|
588
|
+
<a class="href-link" href="#filterByName">#</a>
|
|
595
589
|
|
|
596
590
|
|
|
597
591
|
<span class='tag'>async</span>
|
|
@@ -599,7 +593,7 @@ await api.admin.list.find(params, session);</code></pre>
|
|
|
599
593
|
|
|
600
594
|
<span class="code-name">
|
|
601
595
|
|
|
602
|
-
|
|
596
|
+
filterByName<span class="signature">(params, session)</span><span class="type-signature"> → {Promise.<array>}</span>
|
|
603
597
|
|
|
604
598
|
</span>
|
|
605
599
|
</h4>
|
|
@@ -608,7 +602,7 @@ await api.admin.list.find(params, session);</code></pre>
|
|
|
608
602
|
|
|
609
603
|
|
|
610
604
|
<div class="description">
|
|
611
|
-
|
|
605
|
+
Filter organization lists by name
|
|
612
606
|
</div>
|
|
613
607
|
|
|
614
608
|
|
|
@@ -633,8 +627,12 @@ await api.admin.list.find(params, session);</code></pre>
|
|
|
633
627
|
<th>Type</th>
|
|
634
628
|
|
|
635
629
|
|
|
630
|
+
<th>Attributes</th>
|
|
631
|
+
|
|
636
632
|
|
|
637
633
|
|
|
634
|
+
<th>Default</th>
|
|
635
|
+
|
|
638
636
|
|
|
639
637
|
<th class="last">Description</th>
|
|
640
638
|
</tr>
|
|
@@ -659,10 +657,22 @@ await api.admin.list.find(params, session);</code></pre>
|
|
|
659
657
|
</td>
|
|
660
658
|
|
|
661
659
|
|
|
660
|
+
<td class="attributes">
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
</td>
|
|
667
|
+
|
|
662
668
|
|
|
663
669
|
|
|
670
|
+
<td class="default">
|
|
671
|
+
|
|
672
|
+
</td>
|
|
673
|
+
|
|
664
674
|
|
|
665
|
-
<td class="description last">
|
|
675
|
+
<td class="description last">Parameters</td>
|
|
666
676
|
</tr>
|
|
667
677
|
|
|
668
678
|
|
|
@@ -670,7 +680,7 @@ await api.admin.list.find(params, session);</code></pre>
|
|
|
670
680
|
|
|
671
681
|
<tr class="deep-level-1">
|
|
672
682
|
|
|
673
|
-
<td class="name"><code>
|
|
683
|
+
<td class="name"><code>orgId</code></td>
|
|
674
684
|
|
|
675
685
|
|
|
676
686
|
<td class="type">
|
|
@@ -683,33 +693,61 @@ await api.admin.list.find(params, session);</code></pre>
|
|
|
683
693
|
</td>
|
|
684
694
|
|
|
685
695
|
|
|
696
|
+
<td class="attributes">
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
</td>
|
|
703
|
+
|
|
686
704
|
|
|
687
705
|
|
|
706
|
+
<td class="default">
|
|
707
|
+
|
|
708
|
+
</td>
|
|
709
|
+
|
|
688
710
|
|
|
689
|
-
<td class="description last">
|
|
711
|
+
<td class="description last">Organization ID (required)</td>
|
|
690
712
|
</tr>
|
|
691
713
|
|
|
692
714
|
|
|
693
715
|
|
|
694
716
|
<tr class="deep-level-1">
|
|
695
717
|
|
|
696
|
-
<td class="name"><code>
|
|
718
|
+
<td class="name"><code>names</code></td>
|
|
697
719
|
|
|
698
720
|
|
|
699
721
|
<td class="type">
|
|
700
722
|
|
|
701
723
|
|
|
702
|
-
<code class="param-type">
|
|
724
|
+
<code class="param-type">array</code>
|
|
703
725
|
|
|
704
726
|
|
|
705
727
|
|
|
706
728
|
</td>
|
|
707
729
|
|
|
708
730
|
|
|
731
|
+
<td class="attributes">
|
|
732
|
+
|
|
733
|
+
<optional><br>
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
</td>
|
|
740
|
+
|
|
709
741
|
|
|
710
742
|
|
|
743
|
+
<td class="default">
|
|
744
|
+
|
|
745
|
+
[]
|
|
746
|
+
|
|
747
|
+
</td>
|
|
748
|
+
|
|
711
749
|
|
|
712
|
-
<td class="description last">
|
|
750
|
+
<td class="description last">Array of list names to filter (empty = all)</td>
|
|
713
751
|
</tr>
|
|
714
752
|
|
|
715
753
|
|
|
@@ -733,10 +771,22 @@ await api.admin.list.find(params, session);</code></pre>
|
|
|
733
771
|
</td>
|
|
734
772
|
|
|
735
773
|
|
|
774
|
+
<td class="attributes">
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
</td>
|
|
781
|
+
|
|
736
782
|
|
|
737
783
|
|
|
784
|
+
<td class="default">
|
|
785
|
+
|
|
786
|
+
</td>
|
|
787
|
+
|
|
738
788
|
|
|
739
|
-
<td class="description last">
|
|
789
|
+
<td class="description last">JWT session token</td>
|
|
740
790
|
</tr>
|
|
741
791
|
|
|
742
792
|
|
|
@@ -791,7 +841,7 @@ await api.admin.list.find(params, session);</code></pre>
|
|
|
791
841
|
<p class="tag-source">
|
|
792
842
|
<a href="admin_list.js.html" class="button">View Source</a>
|
|
793
843
|
<span>
|
|
794
|
-
<a href="admin_list.js.html">admin/list.js</a>, <a href="admin_list.js.html#
|
|
844
|
+
<a href="admin_list.js.html">admin/list.js</a>, <a href="admin_list.js.html#line150">line 150</a>
|
|
795
845
|
</span>
|
|
796
846
|
</p>
|
|
797
847
|
|
|
@@ -822,11 +872,13 @@ await api.admin.list.find(params, session);</code></pre>
|
|
|
822
872
|
|
|
823
873
|
<div class="columns">
|
|
824
874
|
|
|
875
|
+
<div class='param-desc column is-7'>Array of matching org lists sorted by name</div>
|
|
876
|
+
|
|
825
877
|
|
|
826
878
|
<div class='column is-5 has-text-left'>
|
|
827
879
|
<label>Type: </label>
|
|
828
880
|
|
|
829
|
-
<code class="param-type">Promise
|
|
881
|
+
<code class="param-type">Promise.<array></code>
|
|
830
882
|
|
|
831
883
|
|
|
832
884
|
</div>
|
|
@@ -845,12 +897,1502 @@ await api.admin.list.find(params, session);</code></pre>
|
|
|
845
897
|
|
|
846
898
|
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
847
899
|
const api = new API();
|
|
848
|
-
const params = {
|
|
849
|
-
id: '55e4a3bd6be6b45210833fae',
|
|
850
|
-
orgId: '5edd11c46b6ce9729c2c297c',
|
|
851
|
-
};
|
|
900
|
+
const params = { orgId: '5edd11c46b6ce9729c2c297c', names: ['Tags', 'Categorias'] };
|
|
852
901
|
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
853
|
-
await api.admin.list.
|
|
902
|
+
const lists = await api.admin.list.filterByName(params, session);</code></pre>
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
</div>
|
|
907
|
+
|
|
908
|
+
<div class="member">
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
<h4 class="name" id="find">
|
|
913
|
+
<a class="href-link" href="#find">#</a>
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
<span class='tag'>async</span>
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
<span class="code-name">
|
|
920
|
+
|
|
921
|
+
find<span class="signature">(params, session)</span><span class="type-signature"> → {Promise}</span>
|
|
922
|
+
|
|
923
|
+
</span>
|
|
924
|
+
</h4>
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
<div class="description">
|
|
930
|
+
Get all lists
|
|
931
|
+
</div>
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
<h5>Parameters:</h5>
|
|
943
|
+
|
|
944
|
+
<div class="table-container">
|
|
945
|
+
<table class="params table">
|
|
946
|
+
<thead>
|
|
947
|
+
<tr>
|
|
948
|
+
|
|
949
|
+
<th>Name</th>
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
<th>Type</th>
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
<th>Attributes</th>
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
<th>Default</th>
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
<th class="last">Description</th>
|
|
963
|
+
</tr>
|
|
964
|
+
</thead>
|
|
965
|
+
|
|
966
|
+
<tbody>
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
<tr class="deep-level-0">
|
|
971
|
+
|
|
972
|
+
<td class="name"><code>params</code></td>
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
<td class="type">
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
<code class="param-type">object</code>
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
</td>
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
<td class="attributes">
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
</td>
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
<td class="default">
|
|
996
|
+
|
|
997
|
+
{}
|
|
998
|
+
|
|
999
|
+
</td>
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
<td class="description last">Params to pagination and orgId</td>
|
|
1003
|
+
</tr>
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
<tr class="deep-level-1">
|
|
1009
|
+
|
|
1010
|
+
<td class="name"><code>page</code></td>
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
<td class="type">
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
<code class="param-type">number</code>
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
</td>
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
<td class="attributes">
|
|
1024
|
+
|
|
1025
|
+
<optional><br>
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
</td>
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
<td class="default">
|
|
1036
|
+
|
|
1037
|
+
0
|
|
1038
|
+
|
|
1039
|
+
</td>
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
<td class="description last">Current page to pagination</td>
|
|
1043
|
+
</tr>
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
<tr class="deep-level-1">
|
|
1048
|
+
|
|
1049
|
+
<td class="name"><code>perPage</code></td>
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
<td class="type">
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
<code class="param-type">number</code>
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
</td>
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
<td class="attributes">
|
|
1063
|
+
|
|
1064
|
+
<optional><br>
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
</td>
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
<td class="default">
|
|
1075
|
+
|
|
1076
|
+
200
|
|
1077
|
+
|
|
1078
|
+
</td>
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
<td class="description last">Qnt itens per page</td>
|
|
1082
|
+
</tr>
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
<tr class="deep-level-1">
|
|
1087
|
+
|
|
1088
|
+
<td class="name"><code>orgId</code></td>
|
|
1089
|
+
|
|
1090
|
+
|
|
1091
|
+
<td class="type">
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
<code class="param-type">string</code>
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
</td>
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
<td class="attributes">
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
</td>
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
<td class="default">
|
|
1112
|
+
|
|
1113
|
+
</td>
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
<td class="description last">Organization Id (_id database)</td>
|
|
1117
|
+
</tr>
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
<tr class="deep-level-0">
|
|
1126
|
+
|
|
1127
|
+
<td class="name"><code>session</code></td>
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
<td class="type">
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
<code class="param-type">string</code>
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
</td>
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
<td class="attributes">
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
</td>
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
<td class="default">
|
|
1151
|
+
|
|
1152
|
+
</td>
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
<td class="description last">Session, token JWT</td>
|
|
1156
|
+
</tr>
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
</tbody>
|
|
1161
|
+
</table>
|
|
1162
|
+
</div>
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
<dl class="details">
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
<dt class="tag-author">Author:</dt>
|
|
1188
|
+
<dd class="tag-author">
|
|
1189
|
+
<ul>
|
|
1190
|
+
<li><a href="mailto:augusto.pissarra@myndware.com">Myndware</a></li>
|
|
1191
|
+
</ul>
|
|
1192
|
+
</dd>
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
<p class="tag-source">
|
|
1208
|
+
<a href="admin_list.js.html" class="button">View Source</a>
|
|
1209
|
+
<span>
|
|
1210
|
+
<a href="admin_list.js.html">admin/list.js</a>, <a href="admin_list.js.html#line109">line 109</a>
|
|
1211
|
+
</span>
|
|
1212
|
+
</p>
|
|
1213
|
+
|
|
1214
|
+
</dl>
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
<div class='columns method-parameter'>
|
|
1234
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
1235
|
+
<div class="column is-10">
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
<div class="columns">
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
<div class='column is-5 has-text-left'>
|
|
1243
|
+
<label>Type: </label>
|
|
1244
|
+
|
|
1245
|
+
<code class="param-type">Promise</code>
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
</div>
|
|
1249
|
+
|
|
1250
|
+
</div>
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
</div>
|
|
1254
|
+
</div>
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
<h5>Example</h5>
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1263
|
+
const api = new API();
|
|
1264
|
+
const params = {
|
|
1265
|
+
orgId: '55e4a3bd6be6b45210833fae'
|
|
1266
|
+
};
|
|
1267
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1268
|
+
await api.admin.list.find(params, session);</code></pre>
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
</div>
|
|
1273
|
+
|
|
1274
|
+
<div class="member">
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
<h4 class="name" id="findById">
|
|
1279
|
+
<a class="href-link" href="#findById">#</a>
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
<span class='tag'>async</span>
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
<span class="code-name">
|
|
1286
|
+
|
|
1287
|
+
findById<span class="signature">(params, session)</span><span class="type-signature"> → {Promise}</span>
|
|
1288
|
+
|
|
1289
|
+
</span>
|
|
1290
|
+
</h4>
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
<div class="description">
|
|
1296
|
+
Get list by ID
|
|
1297
|
+
</div>
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
<h5>Parameters:</h5>
|
|
1309
|
+
|
|
1310
|
+
<div class="table-container">
|
|
1311
|
+
<table class="params table">
|
|
1312
|
+
<thead>
|
|
1313
|
+
<tr>
|
|
1314
|
+
|
|
1315
|
+
<th>Name</th>
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
<th>Type</th>
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
<th class="last">Description</th>
|
|
1325
|
+
</tr>
|
|
1326
|
+
</thead>
|
|
1327
|
+
|
|
1328
|
+
<tbody>
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
<tr class="deep-level-0">
|
|
1333
|
+
|
|
1334
|
+
<td class="name"><code>params</code></td>
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
<td class="type">
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
<code class="param-type">object</code>
|
|
1341
|
+
|
|
1342
|
+
|
|
1343
|
+
|
|
1344
|
+
</td>
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
<td class="description last">Params to find list by id</td>
|
|
1351
|
+
</tr>
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
<tr class="deep-level-1">
|
|
1357
|
+
|
|
1358
|
+
<td class="name"><code>id</code></td>
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
<td class="type">
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
<code class="param-type">string</code>
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
</td>
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
<td class="description last">List Id (_id database)</td>
|
|
1375
|
+
</tr>
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
|
|
1379
|
+
<tr class="deep-level-1">
|
|
1380
|
+
|
|
1381
|
+
<td class="name"><code>orgId</code></td>
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
<td class="type">
|
|
1385
|
+
|
|
1386
|
+
|
|
1387
|
+
<code class="param-type">string</code>
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
</td>
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
<td class="description last">Organization Id (_id database)</td>
|
|
1398
|
+
</tr>
|
|
1399
|
+
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
|
|
1403
|
+
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
<tr class="deep-level-0">
|
|
1407
|
+
|
|
1408
|
+
<td class="name"><code>session</code></td>
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
<td class="type">
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
<code class="param-type">string</code>
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
</td>
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
<td class="description last">Session, token JWT</td>
|
|
1425
|
+
</tr>
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
</tbody>
|
|
1430
|
+
</table>
|
|
1431
|
+
</div>
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
<dl class="details">
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
|
|
1456
|
+
<dt class="tag-author">Author:</dt>
|
|
1457
|
+
<dd class="tag-author">
|
|
1458
|
+
<ul>
|
|
1459
|
+
<li><a href="mailto:augusto.pissarra@myndware.com">Myndware</a></li>
|
|
1460
|
+
</ul>
|
|
1461
|
+
</dd>
|
|
1462
|
+
|
|
1463
|
+
|
|
1464
|
+
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+
<p class="tag-source">
|
|
1477
|
+
<a href="admin_list.js.html" class="button">View Source</a>
|
|
1478
|
+
<span>
|
|
1479
|
+
<a href="admin_list.js.html">admin/list.js</a>, <a href="admin_list.js.html#line71">line 71</a>
|
|
1480
|
+
</span>
|
|
1481
|
+
</p>
|
|
1482
|
+
|
|
1483
|
+
</dl>
|
|
1484
|
+
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
|
|
1498
|
+
|
|
1499
|
+
|
|
1500
|
+
|
|
1501
|
+
|
|
1502
|
+
<div class='columns method-parameter'>
|
|
1503
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
1504
|
+
<div class="column is-10">
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
|
|
1508
|
+
<div class="columns">
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
<div class='column is-5 has-text-left'>
|
|
1512
|
+
<label>Type: </label>
|
|
1513
|
+
|
|
1514
|
+
<code class="param-type">Promise</code>
|
|
1515
|
+
|
|
1516
|
+
|
|
1517
|
+
</div>
|
|
1518
|
+
|
|
1519
|
+
</div>
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
</div>
|
|
1523
|
+
</div>
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
|
|
1527
|
+
|
|
1528
|
+
<h5>Example</h5>
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1532
|
+
const api = new API();
|
|
1533
|
+
const params = {
|
|
1534
|
+
id: '55e4a3bd6be6b45210833fae',
|
|
1535
|
+
orgId: '5edd11c46b6ce9729c2c297c',
|
|
1536
|
+
};
|
|
1537
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1538
|
+
await api.admin.list.findById(params, session);</code></pre>
|
|
1539
|
+
|
|
1540
|
+
|
|
1541
|
+
|
|
1542
|
+
</div>
|
|
1543
|
+
|
|
1544
|
+
<div class="member">
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
|
|
1548
|
+
<h4 class="name" id="remove">
|
|
1549
|
+
<a class="href-link" href="#remove">#</a>
|
|
1550
|
+
|
|
1551
|
+
|
|
1552
|
+
<span class='tag'>async</span>
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
<span class="code-name">
|
|
1556
|
+
|
|
1557
|
+
remove<span class="signature">(params, session)</span><span class="type-signature"> → {Promise.<object>}</span>
|
|
1558
|
+
|
|
1559
|
+
</span>
|
|
1560
|
+
</h4>
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
|
|
1564
|
+
|
|
1565
|
+
<div class="description">
|
|
1566
|
+
Remove an organization list
|
|
1567
|
+
</div>
|
|
1568
|
+
|
|
1569
|
+
|
|
1570
|
+
|
|
1571
|
+
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
|
|
1575
|
+
|
|
1576
|
+
|
|
1577
|
+
|
|
1578
|
+
<h5>Parameters:</h5>
|
|
1579
|
+
|
|
1580
|
+
<div class="table-container">
|
|
1581
|
+
<table class="params table">
|
|
1582
|
+
<thead>
|
|
1583
|
+
<tr>
|
|
1584
|
+
|
|
1585
|
+
<th>Name</th>
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
<th>Type</th>
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
<th class="last">Description</th>
|
|
1595
|
+
</tr>
|
|
1596
|
+
</thead>
|
|
1597
|
+
|
|
1598
|
+
<tbody>
|
|
1599
|
+
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
<tr class="deep-level-0">
|
|
1603
|
+
|
|
1604
|
+
<td class="name"><code>params</code></td>
|
|
1605
|
+
|
|
1606
|
+
|
|
1607
|
+
<td class="type">
|
|
1608
|
+
|
|
1609
|
+
|
|
1610
|
+
<code class="param-type">object</code>
|
|
1611
|
+
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
</td>
|
|
1615
|
+
|
|
1616
|
+
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
<td class="description last">Parameters</td>
|
|
1621
|
+
</tr>
|
|
1622
|
+
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
|
|
1626
|
+
<tr class="deep-level-1">
|
|
1627
|
+
|
|
1628
|
+
<td class="name"><code>orgId</code></td>
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
<td class="type">
|
|
1632
|
+
|
|
1633
|
+
|
|
1634
|
+
<code class="param-type">string</code>
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
</td>
|
|
1639
|
+
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
|
|
1644
|
+
<td class="description last">Organization ID (required)</td>
|
|
1645
|
+
</tr>
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
<tr class="deep-level-1">
|
|
1650
|
+
|
|
1651
|
+
<td class="name"><code>id</code></td>
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
<td class="type">
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
<code class="param-type">string</code>
|
|
1658
|
+
|
|
1659
|
+
|
|
1660
|
+
|
|
1661
|
+
</td>
|
|
1662
|
+
|
|
1663
|
+
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
<td class="description last">List ID to remove (required)</td>
|
|
1668
|
+
</tr>
|
|
1669
|
+
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
|
+
|
|
1673
|
+
|
|
1674
|
+
|
|
1675
|
+
|
|
1676
|
+
<tr class="deep-level-0">
|
|
1677
|
+
|
|
1678
|
+
<td class="name"><code>session</code></td>
|
|
1679
|
+
|
|
1680
|
+
|
|
1681
|
+
<td class="type">
|
|
1682
|
+
|
|
1683
|
+
|
|
1684
|
+
<code class="param-type">string</code>
|
|
1685
|
+
|
|
1686
|
+
|
|
1687
|
+
|
|
1688
|
+
</td>
|
|
1689
|
+
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
|
|
1693
|
+
|
|
1694
|
+
<td class="description last">JWT session token</td>
|
|
1695
|
+
</tr>
|
|
1696
|
+
|
|
1697
|
+
|
|
1698
|
+
|
|
1699
|
+
</tbody>
|
|
1700
|
+
</table>
|
|
1701
|
+
</div>
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
|
|
1705
|
+
|
|
1706
|
+
|
|
1707
|
+
<dl class="details">
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
|
|
1714
|
+
|
|
1715
|
+
|
|
1716
|
+
|
|
1717
|
+
|
|
1718
|
+
|
|
1719
|
+
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
|
|
1723
|
+
|
|
1724
|
+
|
|
1725
|
+
|
|
1726
|
+
<dt class="tag-author">Author:</dt>
|
|
1727
|
+
<dd class="tag-author">
|
|
1728
|
+
<ul>
|
|
1729
|
+
<li><a href="mailto:augusto.pissarra@myndware.com">Myndware</a></li>
|
|
1730
|
+
</ul>
|
|
1731
|
+
</dd>
|
|
1732
|
+
|
|
1733
|
+
|
|
1734
|
+
|
|
1735
|
+
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
|
|
1743
|
+
|
|
1744
|
+
|
|
1745
|
+
|
|
1746
|
+
<p class="tag-source">
|
|
1747
|
+
<a href="admin_list.js.html" class="button">View Source</a>
|
|
1748
|
+
<span>
|
|
1749
|
+
<a href="admin_list.js.html">admin/list.js</a>, <a href="admin_list.js.html#line277">line 277</a>
|
|
1750
|
+
</span>
|
|
1751
|
+
</p>
|
|
1752
|
+
|
|
1753
|
+
</dl>
|
|
1754
|
+
|
|
1755
|
+
|
|
1756
|
+
|
|
1757
|
+
|
|
1758
|
+
|
|
1759
|
+
|
|
1760
|
+
|
|
1761
|
+
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
|
|
1765
|
+
|
|
1766
|
+
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
|
|
1770
|
+
|
|
1771
|
+
|
|
1772
|
+
<div class='columns method-parameter'>
|
|
1773
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
1774
|
+
<div class="column is-10">
|
|
1775
|
+
|
|
1776
|
+
|
|
1777
|
+
|
|
1778
|
+
<div class="columns">
|
|
1779
|
+
|
|
1780
|
+
<div class='param-desc column is-7'>Removal confirmation</div>
|
|
1781
|
+
|
|
1782
|
+
|
|
1783
|
+
<div class='column is-5 has-text-left'>
|
|
1784
|
+
<label>Type: </label>
|
|
1785
|
+
|
|
1786
|
+
<code class="param-type">Promise.<object></code>
|
|
1787
|
+
|
|
1788
|
+
|
|
1789
|
+
</div>
|
|
1790
|
+
|
|
1791
|
+
</div>
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
</div>
|
|
1795
|
+
</div>
|
|
1796
|
+
|
|
1797
|
+
|
|
1798
|
+
|
|
1799
|
+
|
|
1800
|
+
<h5>Example</h5>
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1804
|
+
const api = new API();
|
|
1805
|
+
const params = { orgId: '5edd11c46b6ce9729c2c297c', id: '55e4a3bd6be6b45210833fae' };
|
|
1806
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1807
|
+
await api.admin.list.remove(params, session);</code></pre>
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
</div>
|
|
1812
|
+
|
|
1813
|
+
<div class="member">
|
|
1814
|
+
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
<h4 class="name" id="update">
|
|
1818
|
+
<a class="href-link" href="#update">#</a>
|
|
1819
|
+
|
|
1820
|
+
|
|
1821
|
+
<span class='tag'>async</span>
|
|
1822
|
+
|
|
1823
|
+
|
|
1824
|
+
<span class="code-name">
|
|
1825
|
+
|
|
1826
|
+
update<span class="signature">(params, session)</span><span class="type-signature"> → {Promise.<object>}</span>
|
|
1827
|
+
|
|
1828
|
+
</span>
|
|
1829
|
+
</h4>
|
|
1830
|
+
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
<div class="description">
|
|
1835
|
+
Update an organization list
|
|
1836
|
+
</div>
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
<h5>Parameters:</h5>
|
|
1848
|
+
|
|
1849
|
+
<div class="table-container">
|
|
1850
|
+
<table class="params table">
|
|
1851
|
+
<thead>
|
|
1852
|
+
<tr>
|
|
1853
|
+
|
|
1854
|
+
<th>Name</th>
|
|
1855
|
+
|
|
1856
|
+
|
|
1857
|
+
<th>Type</th>
|
|
1858
|
+
|
|
1859
|
+
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
<th class="last">Description</th>
|
|
1864
|
+
</tr>
|
|
1865
|
+
</thead>
|
|
1866
|
+
|
|
1867
|
+
<tbody>
|
|
1868
|
+
|
|
1869
|
+
|
|
1870
|
+
|
|
1871
|
+
<tr class="deep-level-0">
|
|
1872
|
+
|
|
1873
|
+
<td class="name"><code>params</code></td>
|
|
1874
|
+
|
|
1875
|
+
|
|
1876
|
+
<td class="type">
|
|
1877
|
+
|
|
1878
|
+
|
|
1879
|
+
<code class="param-type">object</code>
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
|
|
1883
|
+
</td>
|
|
1884
|
+
|
|
1885
|
+
|
|
1886
|
+
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
<td class="description last">Parameters</td>
|
|
1890
|
+
</tr>
|
|
1891
|
+
|
|
1892
|
+
|
|
1893
|
+
|
|
1894
|
+
|
|
1895
|
+
<tr class="deep-level-1">
|
|
1896
|
+
|
|
1897
|
+
<td class="name"><code>orgId</code></td>
|
|
1898
|
+
|
|
1899
|
+
|
|
1900
|
+
<td class="type">
|
|
1901
|
+
|
|
1902
|
+
|
|
1903
|
+
<code class="param-type">string</code>
|
|
1904
|
+
|
|
1905
|
+
|
|
1906
|
+
|
|
1907
|
+
</td>
|
|
1908
|
+
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
|
|
1912
|
+
|
|
1913
|
+
<td class="description last">Organization ID (required)</td>
|
|
1914
|
+
</tr>
|
|
1915
|
+
|
|
1916
|
+
|
|
1917
|
+
|
|
1918
|
+
<tr class="deep-level-1">
|
|
1919
|
+
|
|
1920
|
+
<td class="name"><code>id</code></td>
|
|
1921
|
+
|
|
1922
|
+
|
|
1923
|
+
<td class="type">
|
|
1924
|
+
|
|
1925
|
+
|
|
1926
|
+
<code class="param-type">string</code>
|
|
1927
|
+
|
|
1928
|
+
|
|
1929
|
+
|
|
1930
|
+
</td>
|
|
1931
|
+
|
|
1932
|
+
|
|
1933
|
+
|
|
1934
|
+
|
|
1935
|
+
|
|
1936
|
+
<td class="description last">List ID (required)</td>
|
|
1937
|
+
</tr>
|
|
1938
|
+
|
|
1939
|
+
|
|
1940
|
+
|
|
1941
|
+
<tr class="deep-level-1">
|
|
1942
|
+
|
|
1943
|
+
<td class="name"><code>data</code></td>
|
|
1944
|
+
|
|
1945
|
+
|
|
1946
|
+
<td class="type">
|
|
1947
|
+
|
|
1948
|
+
|
|
1949
|
+
<code class="param-type">object</code>
|
|
1950
|
+
|
|
1951
|
+
|
|
1952
|
+
|
|
1953
|
+
</td>
|
|
1954
|
+
|
|
1955
|
+
|
|
1956
|
+
|
|
1957
|
+
|
|
1958
|
+
|
|
1959
|
+
<td class="description last">Fields to update (name, list, etc.)</td>
|
|
1960
|
+
</tr>
|
|
1961
|
+
|
|
1962
|
+
|
|
1963
|
+
|
|
1964
|
+
|
|
1965
|
+
|
|
1966
|
+
|
|
1967
|
+
|
|
1968
|
+
<tr class="deep-level-0">
|
|
1969
|
+
|
|
1970
|
+
<td class="name"><code>session</code></td>
|
|
1971
|
+
|
|
1972
|
+
|
|
1973
|
+
<td class="type">
|
|
1974
|
+
|
|
1975
|
+
|
|
1976
|
+
<code class="param-type">string</code>
|
|
1977
|
+
|
|
1978
|
+
|
|
1979
|
+
|
|
1980
|
+
</td>
|
|
1981
|
+
|
|
1982
|
+
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
|
|
1986
|
+
<td class="description last">JWT session token</td>
|
|
1987
|
+
</tr>
|
|
1988
|
+
|
|
1989
|
+
|
|
1990
|
+
|
|
1991
|
+
</tbody>
|
|
1992
|
+
</table>
|
|
1993
|
+
</div>
|
|
1994
|
+
|
|
1995
|
+
|
|
1996
|
+
|
|
1997
|
+
|
|
1998
|
+
|
|
1999
|
+
<dl class="details">
|
|
2000
|
+
|
|
2001
|
+
|
|
2002
|
+
|
|
2003
|
+
|
|
2004
|
+
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
|
|
2008
|
+
|
|
2009
|
+
|
|
2010
|
+
|
|
2011
|
+
|
|
2012
|
+
|
|
2013
|
+
|
|
2014
|
+
|
|
2015
|
+
|
|
2016
|
+
|
|
2017
|
+
|
|
2018
|
+
<dt class="tag-author">Author:</dt>
|
|
2019
|
+
<dd class="tag-author">
|
|
2020
|
+
<ul>
|
|
2021
|
+
<li><a href="mailto:augusto.pissarra@myndware.com">Myndware</a></li>
|
|
2022
|
+
</ul>
|
|
2023
|
+
</dd>
|
|
2024
|
+
|
|
2025
|
+
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
|
|
2029
|
+
|
|
2030
|
+
|
|
2031
|
+
|
|
2032
|
+
|
|
2033
|
+
|
|
2034
|
+
|
|
2035
|
+
|
|
2036
|
+
|
|
2037
|
+
|
|
2038
|
+
<p class="tag-source">
|
|
2039
|
+
<a href="admin_list.js.html" class="button">View Source</a>
|
|
2040
|
+
<span>
|
|
2041
|
+
<a href="admin_list.js.html">admin/list.js</a>, <a href="admin_list.js.html#line235">line 235</a>
|
|
2042
|
+
</span>
|
|
2043
|
+
</p>
|
|
2044
|
+
|
|
2045
|
+
</dl>
|
|
2046
|
+
|
|
2047
|
+
|
|
2048
|
+
|
|
2049
|
+
|
|
2050
|
+
|
|
2051
|
+
|
|
2052
|
+
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
|
|
2056
|
+
|
|
2057
|
+
|
|
2058
|
+
|
|
2059
|
+
|
|
2060
|
+
|
|
2061
|
+
|
|
2062
|
+
|
|
2063
|
+
|
|
2064
|
+
<div class='columns method-parameter'>
|
|
2065
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
2066
|
+
<div class="column is-10">
|
|
2067
|
+
|
|
2068
|
+
|
|
2069
|
+
|
|
2070
|
+
<div class="columns">
|
|
2071
|
+
|
|
2072
|
+
<div class='param-desc column is-7'>Updated list document</div>
|
|
2073
|
+
|
|
2074
|
+
|
|
2075
|
+
<div class='column is-5 has-text-left'>
|
|
2076
|
+
<label>Type: </label>
|
|
2077
|
+
|
|
2078
|
+
<code class="param-type">Promise.<object></code>
|
|
2079
|
+
|
|
2080
|
+
|
|
2081
|
+
</div>
|
|
2082
|
+
|
|
2083
|
+
</div>
|
|
2084
|
+
|
|
2085
|
+
|
|
2086
|
+
</div>
|
|
2087
|
+
</div>
|
|
2088
|
+
|
|
2089
|
+
|
|
2090
|
+
|
|
2091
|
+
|
|
2092
|
+
<h5>Example</h5>
|
|
2093
|
+
|
|
2094
|
+
|
|
2095
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
2096
|
+
const api = new API();
|
|
2097
|
+
const params = { orgId: '5edd11c46b6ce9729c2c297c', id: '55e4a3bd6be6b45210833fae', data: { name: 'Renamed' } };
|
|
2098
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
2099
|
+
const list = await api.admin.list.update(params, session);</code></pre>
|
|
2100
|
+
|
|
2101
|
+
|
|
2102
|
+
|
|
2103
|
+
</div>
|
|
2104
|
+
|
|
2105
|
+
<div class="member">
|
|
2106
|
+
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
<h4 class="name" id="updateListItems">
|
|
2110
|
+
<a class="href-link" href="#updateListItems">#</a>
|
|
2111
|
+
|
|
2112
|
+
|
|
2113
|
+
<span class='tag'>async</span>
|
|
2114
|
+
|
|
2115
|
+
|
|
2116
|
+
<span class="code-name">
|
|
2117
|
+
|
|
2118
|
+
updateListItems<span class="signature">(params, session)</span><span class="type-signature"> → {Promise.<object>}</span>
|
|
2119
|
+
|
|
2120
|
+
</span>
|
|
2121
|
+
</h4>
|
|
2122
|
+
|
|
2123
|
+
|
|
2124
|
+
|
|
2125
|
+
|
|
2126
|
+
<div class="description">
|
|
2127
|
+
Update list items of an organization list
|
|
2128
|
+
</div>
|
|
2129
|
+
|
|
2130
|
+
|
|
2131
|
+
|
|
2132
|
+
|
|
2133
|
+
|
|
2134
|
+
|
|
2135
|
+
|
|
2136
|
+
|
|
2137
|
+
|
|
2138
|
+
|
|
2139
|
+
<h5>Parameters:</h5>
|
|
2140
|
+
|
|
2141
|
+
<div class="table-container">
|
|
2142
|
+
<table class="params table">
|
|
2143
|
+
<thead>
|
|
2144
|
+
<tr>
|
|
2145
|
+
|
|
2146
|
+
<th>Name</th>
|
|
2147
|
+
|
|
2148
|
+
|
|
2149
|
+
<th>Type</th>
|
|
2150
|
+
|
|
2151
|
+
|
|
2152
|
+
|
|
2153
|
+
|
|
2154
|
+
|
|
2155
|
+
<th class="last">Description</th>
|
|
2156
|
+
</tr>
|
|
2157
|
+
</thead>
|
|
2158
|
+
|
|
2159
|
+
<tbody>
|
|
2160
|
+
|
|
2161
|
+
|
|
2162
|
+
|
|
2163
|
+
<tr class="deep-level-0">
|
|
2164
|
+
|
|
2165
|
+
<td class="name"><code>params</code></td>
|
|
2166
|
+
|
|
2167
|
+
|
|
2168
|
+
<td class="type">
|
|
2169
|
+
|
|
2170
|
+
|
|
2171
|
+
<code class="param-type">object</code>
|
|
2172
|
+
|
|
2173
|
+
|
|
2174
|
+
|
|
2175
|
+
</td>
|
|
2176
|
+
|
|
2177
|
+
|
|
2178
|
+
|
|
2179
|
+
|
|
2180
|
+
|
|
2181
|
+
<td class="description last">Parameters</td>
|
|
2182
|
+
</tr>
|
|
2183
|
+
|
|
2184
|
+
|
|
2185
|
+
|
|
2186
|
+
|
|
2187
|
+
<tr class="deep-level-1">
|
|
2188
|
+
|
|
2189
|
+
<td class="name"><code>orgId</code></td>
|
|
2190
|
+
|
|
2191
|
+
|
|
2192
|
+
<td class="type">
|
|
2193
|
+
|
|
2194
|
+
|
|
2195
|
+
<code class="param-type">string</code>
|
|
2196
|
+
|
|
2197
|
+
|
|
2198
|
+
|
|
2199
|
+
</td>
|
|
2200
|
+
|
|
2201
|
+
|
|
2202
|
+
|
|
2203
|
+
|
|
2204
|
+
|
|
2205
|
+
<td class="description last">Organization ID (required)</td>
|
|
2206
|
+
</tr>
|
|
2207
|
+
|
|
2208
|
+
|
|
2209
|
+
|
|
2210
|
+
<tr class="deep-level-1">
|
|
2211
|
+
|
|
2212
|
+
<td class="name"><code>id</code></td>
|
|
2213
|
+
|
|
2214
|
+
|
|
2215
|
+
<td class="type">
|
|
2216
|
+
|
|
2217
|
+
|
|
2218
|
+
<code class="param-type">string</code>
|
|
2219
|
+
|
|
2220
|
+
|
|
2221
|
+
|
|
2222
|
+
</td>
|
|
2223
|
+
|
|
2224
|
+
|
|
2225
|
+
|
|
2226
|
+
|
|
2227
|
+
|
|
2228
|
+
<td class="description last">List ID (required)</td>
|
|
2229
|
+
</tr>
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
|
|
2233
|
+
<tr class="deep-level-1">
|
|
2234
|
+
|
|
2235
|
+
<td class="name"><code>list</code></td>
|
|
2236
|
+
|
|
2237
|
+
|
|
2238
|
+
<td class="type">
|
|
2239
|
+
|
|
2240
|
+
|
|
2241
|
+
<code class="param-type">array</code>
|
|
2242
|
+
|
|
2243
|
+
|
|
2244
|
+
|
|
2245
|
+
</td>
|
|
2246
|
+
|
|
2247
|
+
|
|
2248
|
+
|
|
2249
|
+
|
|
2250
|
+
|
|
2251
|
+
<td class="description last">Updated list items array (required)</td>
|
|
2252
|
+
</tr>
|
|
2253
|
+
|
|
2254
|
+
|
|
2255
|
+
|
|
2256
|
+
|
|
2257
|
+
|
|
2258
|
+
|
|
2259
|
+
|
|
2260
|
+
<tr class="deep-level-0">
|
|
2261
|
+
|
|
2262
|
+
<td class="name"><code>session</code></td>
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
<td class="type">
|
|
2266
|
+
|
|
2267
|
+
|
|
2268
|
+
<code class="param-type">string</code>
|
|
2269
|
+
|
|
2270
|
+
|
|
2271
|
+
|
|
2272
|
+
</td>
|
|
2273
|
+
|
|
2274
|
+
|
|
2275
|
+
|
|
2276
|
+
|
|
2277
|
+
|
|
2278
|
+
<td class="description last">JWT session token</td>
|
|
2279
|
+
</tr>
|
|
2280
|
+
|
|
2281
|
+
|
|
2282
|
+
|
|
2283
|
+
</tbody>
|
|
2284
|
+
</table>
|
|
2285
|
+
</div>
|
|
2286
|
+
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
|
|
2290
|
+
|
|
2291
|
+
<dl class="details">
|
|
2292
|
+
|
|
2293
|
+
|
|
2294
|
+
|
|
2295
|
+
|
|
2296
|
+
|
|
2297
|
+
|
|
2298
|
+
|
|
2299
|
+
|
|
2300
|
+
|
|
2301
|
+
|
|
2302
|
+
|
|
2303
|
+
|
|
2304
|
+
|
|
2305
|
+
|
|
2306
|
+
|
|
2307
|
+
|
|
2308
|
+
|
|
2309
|
+
|
|
2310
|
+
<dt class="tag-author">Author:</dt>
|
|
2311
|
+
<dd class="tag-author">
|
|
2312
|
+
<ul>
|
|
2313
|
+
<li><a href="mailto:augusto.pissarra@myndware.com">Myndware</a></li>
|
|
2314
|
+
</ul>
|
|
2315
|
+
</dd>
|
|
2316
|
+
|
|
2317
|
+
|
|
2318
|
+
|
|
2319
|
+
|
|
2320
|
+
|
|
2321
|
+
|
|
2322
|
+
|
|
2323
|
+
|
|
2324
|
+
|
|
2325
|
+
|
|
2326
|
+
|
|
2327
|
+
|
|
2328
|
+
|
|
2329
|
+
|
|
2330
|
+
<p class="tag-source">
|
|
2331
|
+
<a href="admin_list.js.html" class="button">View Source</a>
|
|
2332
|
+
<span>
|
|
2333
|
+
<a href="admin_list.js.html">admin/list.js</a>, <a href="admin_list.js.html#line322">line 322</a>
|
|
2334
|
+
</span>
|
|
2335
|
+
</p>
|
|
2336
|
+
|
|
2337
|
+
</dl>
|
|
2338
|
+
|
|
2339
|
+
|
|
2340
|
+
|
|
2341
|
+
|
|
2342
|
+
|
|
2343
|
+
|
|
2344
|
+
|
|
2345
|
+
|
|
2346
|
+
|
|
2347
|
+
|
|
2348
|
+
|
|
2349
|
+
|
|
2350
|
+
|
|
2351
|
+
|
|
2352
|
+
|
|
2353
|
+
|
|
2354
|
+
|
|
2355
|
+
|
|
2356
|
+
<div class='columns method-parameter'>
|
|
2357
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
2358
|
+
<div class="column is-10">
|
|
2359
|
+
|
|
2360
|
+
|
|
2361
|
+
|
|
2362
|
+
<div class="columns">
|
|
2363
|
+
|
|
2364
|
+
<div class='param-desc column is-7'>Updated list document</div>
|
|
2365
|
+
|
|
2366
|
+
|
|
2367
|
+
<div class='column is-5 has-text-left'>
|
|
2368
|
+
<label>Type: </label>
|
|
2369
|
+
|
|
2370
|
+
<code class="param-type">Promise.<object></code>
|
|
2371
|
+
|
|
2372
|
+
|
|
2373
|
+
</div>
|
|
2374
|
+
|
|
2375
|
+
</div>
|
|
2376
|
+
|
|
2377
|
+
|
|
2378
|
+
</div>
|
|
2379
|
+
</div>
|
|
2380
|
+
|
|
2381
|
+
|
|
2382
|
+
|
|
2383
|
+
|
|
2384
|
+
<h5>Example</h5>
|
|
2385
|
+
|
|
2386
|
+
|
|
2387
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
2388
|
+
const api = new API();
|
|
2389
|
+
const params = {
|
|
2390
|
+
orgId: '5edd11c46b6ce9729c2c297c',
|
|
2391
|
+
id: '55e4a3bd6be6b45210833fae',
|
|
2392
|
+
list: [{ _id: '1', value: 'Item 1', filter: '', order: 0 }]
|
|
2393
|
+
};
|
|
2394
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
2395
|
+
const list = await api.admin.list.updateListItems(params, session);</code></pre>
|
|
854
2396
|
|
|
855
2397
|
|
|
856
2398
|
|