@docbrasil/api-systemmanager 1.0.106 → 1.0.108

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.
Files changed (76) hide show
  1. package/.github/workflows/static.yml +43 -0
  2. package/api/external.js +41 -0
  3. package/api/user/process.js +44 -0
  4. package/api/user/task.js +1 -0
  5. package/api/user/task_available.js +1 -1
  6. package/dist/bundle.cjs +87 -1
  7. package/dist/bundle.mjs +1 -1
  8. package/doc/api.md +412 -1
  9. package/docs/Admin.html +336 -0
  10. package/docs/AdminDocuments.html +2235 -0
  11. package/docs/AdminForm.html +934 -0
  12. package/docs/AdminLists.html +895 -0
  13. package/docs/AdminMessage.html +1490 -0
  14. package/docs/AdminNotification.html +1636 -0
  15. package/docs/AdminPlugin.html +696 -0
  16. package/docs/AdminPolicy.html +451 -0
  17. package/docs/AdminProcesses.html +692 -0
  18. package/docs/AdminTask.html +740 -0
  19. package/docs/AdminUser.html +1203 -0
  20. package/docs/Datasource.html +660 -0
  21. package/docs/Dispatch.html +624 -0
  22. package/docs/Documents.html +4875 -0
  23. package/docs/External.html +1203 -0
  24. package/docs/GeoLocation.html +503 -0
  25. package/docs/Login.html +1839 -0
  26. package/docs/Notification.html +625 -0
  27. package/docs/Organization.html +2767 -0
  28. package/docs/Process.html +1598 -0
  29. package/docs/Register.html +1604 -0
  30. package/docs/Session.html +482 -0
  31. package/docs/Task.html +1394 -0
  32. package/docs/TaskAvailable.html +893 -0
  33. package/docs/User.html +2002 -0
  34. package/docs/Users.html +569 -0
  35. package/docs/admin_doctypes.js.html +193 -0
  36. package/docs/admin_document.js.html +449 -0
  37. package/docs/admin_form.js.html +268 -0
  38. package/docs/admin_index.js.html +163 -0
  39. package/docs/admin_list.js.html +250 -0
  40. package/docs/admin_message.js.html +311 -0
  41. package/docs/admin_notification.js.html +350 -0
  42. package/docs/admin_organization.js.html +241 -0
  43. package/docs/admin_plugin.js.html +233 -0
  44. package/docs/admin_policy.js.html +195 -0
  45. package/docs/admin_processes.js.html +487 -0
  46. package/docs/admin_task.js.html +242 -0
  47. package/docs/admin_user.js.html +302 -0
  48. package/docs/dispatch.js.html +218 -0
  49. package/docs/external.js.html +333 -0
  50. package/docs/general_geoLocation.js.html +205 -0
  51. package/docs/general_index.js.html +140 -0
  52. package/docs/index.html +129 -0
  53. package/docs/login.js.html +384 -0
  54. package/docs/scripts/app.min.js +1 -0
  55. package/docs/scripts/linenumber.js +26 -0
  56. package/docs/scripts/search.js +39 -0
  57. package/docs/session.js.html +202 -0
  58. package/docs/styles/app.min.css +1 -0
  59. package/docs/styles/iframe.css +13 -0
  60. package/docs/styles/prettify-jsdoc.css +111 -0
  61. package/docs/styles/prettify-tomorrow.css +132 -0
  62. package/docs/styles/reset.css +44 -0
  63. package/docs/user_datasource.js.html +261 -0
  64. package/docs/user_document.js.html +847 -0
  65. package/docs/user_index.js.html +156 -0
  66. package/docs/user_notification.js.html +218 -0
  67. package/docs/user_organization.js.html +347 -0
  68. package/docs/user_process.js.html +352 -0
  69. package/docs/user_register.js.html +322 -0
  70. package/docs/user_task.js.html +319 -0
  71. package/docs/user_task_available.js.html +252 -0
  72. package/docs/user_user.js.html +404 -0
  73. package/docs/utils_promises.js.html +235 -0
  74. package/package.json +7 -4
  75. package/readme.md +7 -8
  76. package/doc.md +0 -653
@@ -0,0 +1,2767 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+
6
+ <meta charset="utf-8">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1">
8
+ <title> Organization</title>
9
+
10
+ <script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
11
+ <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
12
+ <script src="./build/entry.js"></script>
13
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
14
+ <!--[if lt IE 9]>
15
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
16
+ <![endif]-->
17
+ <link href="https://fonts.googleapis.com/css?family=Roboto:100,400,700|Inconsolata,700" rel="stylesheet">
18
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
19
+ <link type="text/css" rel="stylesheet" href="https://jmblog.github.io/color-themes-for-google-code-prettify/themes/tomorrow-night.min.css">
20
+ <link type="text/css" rel="stylesheet" href="styles/app.min.css">
21
+ <link type="text/css" rel="stylesheet" href="styles/iframe.css">
22
+ <link type="text/css" rel="stylesheet" href="">
23
+ <script async defer src="https://buttons.github.io/buttons.js"></script>
24
+
25
+
26
+ </head>
27
+
28
+
29
+
30
+ <body class="layout small-header">
31
+ <div id="stickyNavbarOverlay"></div>
32
+
33
+
34
+ <div class="top-nav">
35
+ <div class="inner">
36
+ <a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
37
+ <span aria-hidden="true"></span>
38
+ <span aria-hidden="true"></span>
39
+ <span aria-hidden="true"></span>
40
+ </a>
41
+ <div class="logo">
42
+
43
+
44
+ </div>
45
+ <div class="menu">
46
+
47
+ <div class="navigation">
48
+ <a
49
+ href="index.html"
50
+ class="link"
51
+ >
52
+ Documentation
53
+ </a>
54
+
55
+
56
+
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ <div id="main">
62
+ <div
63
+ class="sidebar "
64
+ id="sidebarNav"
65
+ >
66
+
67
+ <nav>
68
+
69
+ <h2><a href="index.html">Documentation</a></h2><div class="category"><h3>Classes</h3><ul><li><a href="Admin.html">Admin</a></li><li><a href="AdminDocuments.html">AdminDocuments</a></li><li><a href="AdminForm.html">AdminForm</a></li><li><a href="AdminLists.html">AdminLists</a></li><li><a href="AdminMessage.html">AdminMessage</a></li><li><a href="AdminNotification.html">AdminNotification</a></li><li><a href="AdminPlugin.html">AdminPlugin</a></li><li><a href="AdminPolicy.html">AdminPolicy</a></li><li><a href="AdminProcesses.html">AdminProcesses</a></li><li><a href="AdminTask.html">AdminTask</a></li><li><a href="AdminUser.html">AdminUser</a></li><li><a href="Datasource.html">Datasource</a></li><li><a href="Dispatch.html">Dispatch</a></li><li><a href="Documents.html">Documents</a></li><li><a href="External.html">External</a></li><li><a href="GeoLocation.html">GeoLocation</a></li><li><a href="Login.html">Login</a></li><li><a href="Notification.html">Notification</a></li><li><a href="Organization.html">Organization</a></li><li><a href="Process.html">Process</a></li><li><a href="Register.html">Register</a></li><li><a href="Session.html">Session</a></li><li><a href="Task.html">Task</a></li><li><a href="TaskAvailable.html">TaskAvailable</a></li><li><a href="User.html">User</a></li><li><a href="Users.html">Users</a></li></ul></div>
70
+
71
+ </nav>
72
+ </div>
73
+ <div class="core" id="main-content-wrapper">
74
+ <div class="content">
75
+ <header class="page-title">
76
+ <p>Class</p>
77
+ <h1>Organization</h1>
78
+ </header>
79
+
80
+
81
+
82
+
83
+
84
+ <section>
85
+
86
+ <header>
87
+
88
+ <h2><span class="attribs"><span class="type-signature"></span></span>Organization<span class="signature">()</span><span class="type-signature"></span></h2>
89
+
90
+ <div class="class-description">Class for organizations, permission user</div>
91
+
92
+
93
+ </header>
94
+
95
+ <article>
96
+ <div class="container-overview">
97
+
98
+
99
+ <div class='vertical-section'>
100
+ <div class="members">
101
+ <div class="member">
102
+ <div class=name>
103
+ <span class="tag">Constructor</span>
104
+ </div>
105
+
106
+
107
+
108
+
109
+ <h4 class="name" id="Organization">
110
+ <a class="href-link" href="#Organization">#</a>
111
+
112
+ <span class="code-name">
113
+
114
+ new Organization<span class="signature">()</span><span class="type-signature"></span>
115
+
116
+ </span>
117
+ </h4>
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+ <dl class="details">
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+ <p class="tag-source">
168
+ <a href="admin_organization.js.html" class="button">View Source</a>
169
+ <span>
170
+ <a href="admin_organization.js.html">admin/organization.js</a>, <a href="admin_organization.js.html#line9">line 9</a>
171
+ </span>
172
+ </p>
173
+
174
+ </dl>
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+ </div>
198
+ </div>
199
+ </div>
200
+
201
+
202
+ </div>
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+ <div class='vertical-section'>
220
+ <h1>Methods</h1>
221
+ <div class="members">
222
+
223
+ <div class="member">
224
+
225
+
226
+
227
+ <h4 class="name" id="callFetch">
228
+ <a class="href-link" href="#callFetch">#</a>
229
+
230
+
231
+ <span class='tag'>async</span>
232
+
233
+
234
+ <span class="code-name">
235
+
236
+ callFetch<span class="signature">(params<span class="signature-attributes">non-null</span>)</span><span class="type-signature"> &rarr; {promise}</span>
237
+
238
+ </span>
239
+ </h4>
240
+
241
+
242
+
243
+
244
+ <div class="description">
245
+ Call URL internal, need auth JWT (session)
246
+ </div>
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+ <h5>Parameters:</h5>
258
+
259
+ <div class="table-container">
260
+ <table class="params table">
261
+ <thead>
262
+ <tr>
263
+
264
+ <th>Name</th>
265
+
266
+
267
+ <th>Type</th>
268
+
269
+
270
+ <th>Attributes</th>
271
+
272
+
273
+
274
+ <th>Default</th>
275
+
276
+
277
+ <th class="last">Description</th>
278
+ </tr>
279
+ </thead>
280
+
281
+ <tbody>
282
+
283
+
284
+
285
+ <tr class="deep-level-0">
286
+
287
+ <td class="name"><code>params</code></td>
288
+
289
+
290
+ <td class="type">
291
+
292
+
293
+ <code class="param-type">object</code>
294
+
295
+
296
+
297
+ </td>
298
+
299
+
300
+ <td class="attributes">
301
+
302
+
303
+
304
+
305
+
306
+ </td>
307
+
308
+
309
+
310
+ <td class="default">
311
+
312
+ </td>
313
+
314
+
315
+ <td class="description last">Params to call fectch (URL internal)</td>
316
+ </tr>
317
+
318
+
319
+
320
+
321
+ <tr class="deep-level-1">
322
+
323
+ <td class="name"><code>url</code></td>
324
+
325
+
326
+ <td class="type">
327
+
328
+
329
+ <code class="param-type">string</code>
330
+
331
+
332
+
333
+ </td>
334
+
335
+
336
+ <td class="attributes">
337
+
338
+
339
+
340
+
341
+
342
+ </td>
343
+
344
+
345
+
346
+ <td class="default">
347
+
348
+ </td>
349
+
350
+
351
+ <td class="description last">URL to call</td>
352
+ </tr>
353
+
354
+
355
+
356
+ <tr class="deep-level-1">
357
+
358
+ <td class="name"><code>method</code></td>
359
+
360
+
361
+ <td class="type">
362
+
363
+
364
+ <code class="param-type">string</code>
365
+
366
+
367
+
368
+ </td>
369
+
370
+
371
+ <td class="attributes">
372
+
373
+ &lt;optional><br>
374
+
375
+
376
+
377
+
378
+
379
+ </td>
380
+
381
+
382
+
383
+ <td class="default">
384
+
385
+ POST
386
+
387
+ </td>
388
+
389
+
390
+ <td class="description last">Fetch Method</td>
391
+ </tr>
392
+
393
+
394
+
395
+ <tr class="deep-level-1">
396
+
397
+ <td class="name"><code>payload</code></td>
398
+
399
+
400
+ <td class="type">
401
+
402
+
403
+ <code class="param-type">string</code>
404
+
405
+
406
+
407
+ </td>
408
+
409
+
410
+ <td class="attributes">
411
+
412
+
413
+
414
+
415
+
416
+ </td>
417
+
418
+
419
+
420
+ <td class="default">
421
+
422
+ </td>
423
+
424
+
425
+ <td class="description last">Payload to send system manager</td>
426
+ </tr>
427
+
428
+
429
+
430
+
431
+
432
+ </tbody>
433
+ </table>
434
+ </div>
435
+
436
+
437
+
438
+
439
+
440
+ <dl class="details">
441
+
442
+
443
+
444
+
445
+
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+ <dt class="tag-author">Author:</dt>
460
+ <dd class="tag-author">
461
+ <ul>
462
+ <li><a href="mailto:thiagoo.anselmoo@gmail.com">Thiago Anselmo</a></li>
463
+ </ul>
464
+ </dd>
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+ <p class="tag-source">
480
+ <a href="user_organization.js.html" class="button">View Source</a>
481
+ <span>
482
+ <a href="user_organization.js.html">user/organization.js</a>, <a href="user_organization.js.html#line197">line 197</a>
483
+ </span>
484
+ </p>
485
+
486
+ </dl>
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+ <div class='columns method-parameter'>
506
+ <div class="column is-2"><label>Returns:</label></div>
507
+ <div class="column is-10">
508
+
509
+
510
+
511
+ <div class="columns">
512
+
513
+
514
+ <div class='column is-5 has-text-left'>
515
+ <label>Type: </label>
516
+
517
+ <code class="param-type">promise</code>
518
+
519
+
520
+ </div>
521
+
522
+ </div>
523
+
524
+
525
+ </div>
526
+ </div>
527
+
528
+
529
+
530
+
531
+ <h5>Example</h5>
532
+
533
+
534
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
535
+ const api = new API();
536
+
537
+ const params = {
538
+ url: 'http://localhost:8080/organizations/..../process/..../task/candidateAccepted/end/....',
539
+ method: 'POST'
540
+ }
541
+ await api.user.organization.callFetchs(params, session);</code></pre>
542
+
543
+
544
+
545
+ </div>
546
+
547
+ <div class="member">
548
+
549
+
550
+
551
+ <h4 class="name" id="findById">
552
+ <a class="href-link" href="#findById">#</a>
553
+
554
+
555
+ <span class='tag'>async</span>
556
+
557
+
558
+ <span class="code-name">
559
+
560
+ findById<span class="signature">(orgId, session)</span><span class="type-signature"></span>
561
+
562
+ </span>
563
+ </h4>
564
+
565
+
566
+
567
+
568
+ <div class="description">
569
+ Find organization by id
570
+ </div>
571
+
572
+
573
+
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+ <h5>Parameters:</h5>
582
+
583
+ <div class="table-container">
584
+ <table class="params table">
585
+ <thead>
586
+ <tr>
587
+
588
+ <th>Name</th>
589
+
590
+
591
+ <th>Type</th>
592
+
593
+
594
+
595
+
596
+
597
+ <th class="last">Description</th>
598
+ </tr>
599
+ </thead>
600
+
601
+ <tbody>
602
+
603
+
604
+
605
+ <tr class="deep-level-0">
606
+
607
+ <td class="name"><code>orgId</code></td>
608
+
609
+
610
+ <td class="type">
611
+
612
+
613
+ <code class="param-type">string</code>
614
+
615
+
616
+
617
+ </td>
618
+
619
+
620
+
621
+
622
+
623
+ <td class="description last">ID of the organization to find (_id database)</td>
624
+ </tr>
625
+
626
+
627
+
628
+
629
+
630
+ <tr class="deep-level-0">
631
+
632
+ <td class="name"><code>session</code></td>
633
+
634
+
635
+ <td class="type">
636
+
637
+
638
+ <code class="param-type">string</code>
639
+
640
+
641
+
642
+ </td>
643
+
644
+
645
+
646
+
647
+
648
+ <td class="description last">Is token JWT</td>
649
+ </tr>
650
+
651
+
652
+
653
+ </tbody>
654
+ </table>
655
+ </div>
656
+
657
+
658
+
659
+
660
+
661
+ <dl class="details">
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+ <dt class="tag-author">Author:</dt>
681
+ <dd class="tag-author">
682
+ <ul>
683
+ <li><a href="mailto:abernardo.br@gmail.com">Augusto Pissarra</a></li>
684
+ </ul>
685
+ </dd>
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+ <p class="tag-source">
701
+ <a href="user_organization.js.html" class="button">View Source</a>
702
+ <span>
703
+ <a href="user_organization.js.html">user/organization.js</a>, <a href="user_organization.js.html#line66">line 66</a>
704
+ </span>
705
+ </p>
706
+
707
+ </dl>
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+
722
+
723
+
724
+
725
+
726
+
727
+
728
+
729
+ <h5>Example</h5>
730
+
731
+
732
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
733
+ const api = new API();
734
+ const orgId = '80443245000122';
735
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
736
+ await api.user.organization.findById(idCard, session);</code></pre>
737
+
738
+
739
+
740
+ </div>
741
+
742
+ <div class="member">
743
+
744
+
745
+
746
+ <h4 class="name" id="idCardExist">
747
+ <a class="href-link" href="#idCardExist">#</a>
748
+
749
+
750
+ <span class='tag'>async</span>
751
+
752
+
753
+ <span class="code-name">
754
+
755
+ idCardExist<span class="signature">(idcard, session)</span><span class="type-signature"></span>
756
+
757
+ </span>
758
+ </h4>
759
+
760
+
761
+
762
+
763
+ <div class="description">
764
+ Check if id card exist
765
+ </div>
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+
776
+ <h5>Parameters:</h5>
777
+
778
+ <div class="table-container">
779
+ <table class="params table">
780
+ <thead>
781
+ <tr>
782
+
783
+ <th>Name</th>
784
+
785
+
786
+ <th>Type</th>
787
+
788
+
789
+
790
+
791
+
792
+ <th class="last">Description</th>
793
+ </tr>
794
+ </thead>
795
+
796
+ <tbody>
797
+
798
+
799
+
800
+ <tr class="deep-level-0">
801
+
802
+ <td class="name"><code>idcard</code></td>
803
+
804
+
805
+ <td class="type">
806
+
807
+
808
+ <code class="param-type">string</code>
809
+
810
+
811
+
812
+ </td>
813
+
814
+
815
+
816
+
817
+
818
+ <td class="description last">Check if id card exist</td>
819
+ </tr>
820
+
821
+
822
+
823
+
824
+
825
+ <tr class="deep-level-0">
826
+
827
+ <td class="name"><code>session</code></td>
828
+
829
+
830
+ <td class="type">
831
+
832
+
833
+ <code class="param-type">string</code>
834
+
835
+
836
+
837
+ </td>
838
+
839
+
840
+
841
+
842
+
843
+ <td class="description last">Is token JWT</td>
844
+ </tr>
845
+
846
+
847
+
848
+ </tbody>
849
+ </table>
850
+ </div>
851
+
852
+
853
+
854
+
855
+
856
+ <dl class="details">
857
+
858
+
859
+
860
+
861
+
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+
870
+
871
+
872
+
873
+
874
+
875
+ <dt class="tag-author">Author:</dt>
876
+ <dd class="tag-author">
877
+ <ul>
878
+ <li><a href="mailto:abernardo.br@gmail.com">Augusto Pissarra</a></li>
879
+ </ul>
880
+ </dd>
881
+
882
+
883
+
884
+
885
+
886
+
887
+
888
+
889
+
890
+
891
+
892
+
893
+
894
+
895
+ <p class="tag-source">
896
+ <a href="user_organization.js.html" class="button">View Source</a>
897
+ <span>
898
+ <a href="user_organization.js.html">user/organization.js</a>, <a href="user_organization.js.html#line95">line 95</a>
899
+ </span>
900
+ </p>
901
+
902
+ </dl>
903
+
904
+
905
+
906
+
907
+
908
+
909
+
910
+
911
+
912
+
913
+
914
+
915
+
916
+
917
+
918
+
919
+
920
+
921
+
922
+
923
+
924
+ <h5>Example</h5>
925
+
926
+
927
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
928
+ const api = new API();
929
+ const idCard = '80443245000122';
930
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
931
+ await api.user.organization.idCardExist(idCard, session);</code></pre>
932
+
933
+
934
+
935
+ </div>
936
+
937
+ <div class="member">
938
+
939
+
940
+
941
+ <h4 class="name" id="removeAvatar">
942
+ <a class="href-link" href="#removeAvatar">#</a>
943
+
944
+
945
+ <span class='tag'>async</span>
946
+
947
+
948
+ <span class="code-name">
949
+
950
+ removeAvatar<span class="signature">(session)</span><span class="type-signature"> &rarr; {Promise}</span>
951
+
952
+ </span>
953
+ </h4>
954
+
955
+
956
+
957
+
958
+ <div class="description">
959
+ Remove avatar of user by session of user not allow session user SU
960
+ </div>
961
+
962
+
963
+
964
+
965
+
966
+
967
+
968
+
969
+
970
+
971
+ <h5>Parameters:</h5>
972
+
973
+ <div class="table-container">
974
+ <table class="params table">
975
+ <thead>
976
+ <tr>
977
+
978
+ <th>Name</th>
979
+
980
+
981
+ <th>Type</th>
982
+
983
+
984
+
985
+
986
+
987
+ <th class="last">Description</th>
988
+ </tr>
989
+ </thead>
990
+
991
+ <tbody>
992
+
993
+
994
+
995
+ <tr class="deep-level-0">
996
+
997
+ <td class="name"><code>session</code></td>
998
+
999
+
1000
+ <td class="type">
1001
+
1002
+
1003
+ <code class="param-type">string</code>
1004
+
1005
+
1006
+
1007
+ </td>
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+ <td class="description last">Is token JWT of user NOT allow SU</td>
1014
+ </tr>
1015
+
1016
+
1017
+
1018
+ </tbody>
1019
+ </table>
1020
+ </div>
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+ <dl class="details">
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+
1044
+
1045
+ <dt class="tag-author">Author:</dt>
1046
+ <dd class="tag-author">
1047
+ <ul>
1048
+ <li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
1049
+ </ul>
1050
+ </dd>
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+ <p class="tag-source">
1066
+ <a href="user_organization.js.html" class="button">View Source</a>
1067
+ <span>
1068
+ <a href="user_organization.js.html">user/organization.js</a>, <a href="user_organization.js.html#line163">line 163</a>
1069
+ </span>
1070
+ </p>
1071
+
1072
+ </dl>
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+ <div class='columns method-parameter'>
1092
+ <div class="column is-2"><label>Returns:</label></div>
1093
+ <div class="column is-10">
1094
+
1095
+
1096
+
1097
+ <div class="columns">
1098
+
1099
+
1100
+ <div class='column is-5 has-text-left'>
1101
+ <label>Type: </label>
1102
+
1103
+ <code class="param-type">Promise</code>
1104
+
1105
+
1106
+ </div>
1107
+
1108
+ </div>
1109
+
1110
+
1111
+ </div>
1112
+ </div>
1113
+
1114
+
1115
+
1116
+
1117
+ <h5>Example</h5>
1118
+
1119
+
1120
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
1121
+ const api = new API();
1122
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
1123
+ await api.user.profile.removeAvatar(session);</code></pre>
1124
+
1125
+
1126
+
1127
+ </div>
1128
+
1129
+ <div class="member">
1130
+
1131
+
1132
+
1133
+ <h4 class="name" id="upsertAvatar">
1134
+ <a class="href-link" href="#upsertAvatar">#</a>
1135
+
1136
+
1137
+ <span class='tag'>async</span>
1138
+
1139
+
1140
+ <span class="code-name">
1141
+
1142
+ upsertAvatar<span class="signature">(params, session)</span><span class="type-signature"> &rarr; {Promise}</span>
1143
+
1144
+ </span>
1145
+ </h4>
1146
+
1147
+
1148
+
1149
+
1150
+ <div class="description">
1151
+ Update avatar of organization by session of user not allow session user SU
1152
+ </div>
1153
+
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+
1163
+ <h5>Parameters:</h5>
1164
+
1165
+ <div class="table-container">
1166
+ <table class="params table">
1167
+ <thead>
1168
+ <tr>
1169
+
1170
+ <th>Name</th>
1171
+
1172
+
1173
+ <th>Type</th>
1174
+
1175
+
1176
+
1177
+
1178
+
1179
+ <th class="last">Description</th>
1180
+ </tr>
1181
+ </thead>
1182
+
1183
+ <tbody>
1184
+
1185
+
1186
+
1187
+ <tr class="deep-level-0">
1188
+
1189
+ <td class="name"><code>params</code></td>
1190
+
1191
+
1192
+ <td class="type">
1193
+
1194
+
1195
+ <code class="param-type">object</code>
1196
+
1197
+
1198
+
1199
+ </td>
1200
+
1201
+
1202
+
1203
+
1204
+
1205
+ <td class="description last">Params to update avatar</td>
1206
+ </tr>
1207
+
1208
+
1209
+
1210
+
1211
+ <tr class="deep-level-1">
1212
+
1213
+ <td class="name"><code>avatar</code></td>
1214
+
1215
+
1216
+ <td class="type">
1217
+
1218
+
1219
+ <code class="param-type">string</code>
1220
+
1221
+
1222
+
1223
+ </td>
1224
+
1225
+
1226
+
1227
+
1228
+
1229
+ <td class="description last">Image in base64 to update</td>
1230
+ </tr>
1231
+
1232
+
1233
+
1234
+ <tr class="deep-level-1">
1235
+
1236
+ <td class="name"><code>type</code></td>
1237
+
1238
+
1239
+ <td class="type">
1240
+
1241
+
1242
+ <code class="param-type">string</code>
1243
+
1244
+
1245
+
1246
+ </td>
1247
+
1248
+
1249
+
1250
+
1251
+
1252
+ <td class="description last">mimeType (image/png)</td>
1253
+ </tr>
1254
+
1255
+
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+ <tr class="deep-level-0">
1262
+
1263
+ <td class="name"><code>session</code></td>
1264
+
1265
+
1266
+ <td class="type">
1267
+
1268
+
1269
+ <code class="param-type">string</code>
1270
+
1271
+
1272
+
1273
+ </td>
1274
+
1275
+
1276
+
1277
+
1278
+
1279
+ <td class="description last">Is token JWT of user NOT allow SU</td>
1280
+ </tr>
1281
+
1282
+
1283
+
1284
+ </tbody>
1285
+ </table>
1286
+ </div>
1287
+
1288
+
1289
+
1290
+
1291
+
1292
+ <dl class="details">
1293
+
1294
+
1295
+
1296
+
1297
+
1298
+
1299
+
1300
+
1301
+
1302
+
1303
+
1304
+
1305
+
1306
+
1307
+
1308
+
1309
+
1310
+
1311
+ <dt class="tag-author">Author:</dt>
1312
+ <dd class="tag-author">
1313
+ <ul>
1314
+ <li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
1315
+ </ul>
1316
+ </dd>
1317
+
1318
+
1319
+
1320
+
1321
+
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+
1328
+
1329
+
1330
+
1331
+ <p class="tag-source">
1332
+ <a href="user_organization.js.html" class="button">View Source</a>
1333
+ <span>
1334
+ <a href="user_organization.js.html">user/organization.js</a>, <a href="user_organization.js.html#line130">line 130</a>
1335
+ </span>
1336
+ </p>
1337
+
1338
+ </dl>
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+
1353
+
1354
+
1355
+
1356
+
1357
+ <div class='columns method-parameter'>
1358
+ <div class="column is-2"><label>Returns:</label></div>
1359
+ <div class="column is-10">
1360
+
1361
+
1362
+
1363
+ <div class="columns">
1364
+
1365
+
1366
+ <div class='column is-5 has-text-left'>
1367
+ <label>Type: </label>
1368
+
1369
+ <code class="param-type">Promise</code>
1370
+
1371
+
1372
+ </div>
1373
+
1374
+ </div>
1375
+
1376
+
1377
+ </div>
1378
+ </div>
1379
+
1380
+
1381
+
1382
+
1383
+ <h5>Example</h5>
1384
+
1385
+
1386
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
1387
+ const api = new API();
1388
+ const params = {
1389
+ avatar: 'iVBORw0KGgoAAAANSUhEUgAAAasAAAHnCAYAAAAGi3J6AAA9BElEQVR...He3/kk/m7kl35S8AAAAASUVORK5CYII=',
1390
+ type: 'image/png',
1391
+ };
1392
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
1393
+ await api.user.profile.updateAvatar(params, session);</code></pre>
1394
+
1395
+
1396
+
1397
+ </div>
1398
+
1399
+ </div>
1400
+ </div>
1401
+
1402
+
1403
+
1404
+
1405
+
1406
+ </article>
1407
+
1408
+ </section>
1409
+
1410
+
1411
+
1412
+
1413
+
1414
+
1415
+
1416
+ <section>
1417
+
1418
+ <header>
1419
+
1420
+ <h2><span class="attribs"><span class="type-signature"></span></span>Organization<span class="signature">()</span><span class="type-signature"></span></h2>
1421
+
1422
+ <div class="class-description">Class for organizations, permission user</div>
1423
+
1424
+
1425
+ </header>
1426
+
1427
+ <article>
1428
+ <div class="container-overview">
1429
+
1430
+
1431
+ <div class='vertical-section'>
1432
+ <div class="members">
1433
+ <div class="member">
1434
+ <div class=name>
1435
+ <span class="tag">Constructor</span>
1436
+ </div>
1437
+
1438
+
1439
+
1440
+
1441
+ <h4 class="name" id="Organization">
1442
+ <a class="href-link" href="#Organization">#</a>
1443
+
1444
+ <span class="code-name">
1445
+
1446
+ new Organization<span class="signature">()</span><span class="type-signature"></span>
1447
+
1448
+ </span>
1449
+ </h4>
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+
1458
+
1459
+
1460
+
1461
+
1462
+
1463
+
1464
+
1465
+
1466
+
1467
+ <dl class="details">
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+
1474
+
1475
+
1476
+
1477
+
1478
+
1479
+
1480
+
1481
+
1482
+
1483
+
1484
+
1485
+
1486
+
1487
+
1488
+
1489
+
1490
+
1491
+
1492
+
1493
+
1494
+
1495
+
1496
+
1497
+
1498
+
1499
+ <p class="tag-source">
1500
+ <a href="user_organization.js.html" class="button">View Source</a>
1501
+ <span>
1502
+ <a href="user_organization.js.html">user/organization.js</a>, <a href="user_organization.js.html#line10">line 10</a>
1503
+ </span>
1504
+ </p>
1505
+
1506
+ </dl>
1507
+
1508
+
1509
+
1510
+
1511
+
1512
+
1513
+
1514
+
1515
+
1516
+
1517
+
1518
+
1519
+
1520
+
1521
+
1522
+
1523
+
1524
+
1525
+
1526
+
1527
+
1528
+
1529
+ </div>
1530
+ </div>
1531
+ </div>
1532
+
1533
+
1534
+ </div>
1535
+
1536
+
1537
+
1538
+
1539
+
1540
+
1541
+
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+
1550
+
1551
+ <div class='vertical-section'>
1552
+ <h1>Methods</h1>
1553
+ <div class="members">
1554
+
1555
+ <div class="member">
1556
+
1557
+
1558
+
1559
+ <h4 class="name" id="callFetch">
1560
+ <a class="href-link" href="#callFetch">#</a>
1561
+
1562
+
1563
+ <span class='tag'>async</span>
1564
+
1565
+
1566
+ <span class="code-name">
1567
+
1568
+ callFetch<span class="signature">(params<span class="signature-attributes">non-null</span>)</span><span class="type-signature"> &rarr; {promise}</span>
1569
+
1570
+ </span>
1571
+ </h4>
1572
+
1573
+
1574
+
1575
+
1576
+ <div class="description">
1577
+ Call URL internal, need auth JWT (session)
1578
+ </div>
1579
+
1580
+
1581
+
1582
+
1583
+
1584
+
1585
+
1586
+
1587
+
1588
+
1589
+ <h5>Parameters:</h5>
1590
+
1591
+ <div class="table-container">
1592
+ <table class="params table">
1593
+ <thead>
1594
+ <tr>
1595
+
1596
+ <th>Name</th>
1597
+
1598
+
1599
+ <th>Type</th>
1600
+
1601
+
1602
+ <th>Attributes</th>
1603
+
1604
+
1605
+
1606
+ <th>Default</th>
1607
+
1608
+
1609
+ <th class="last">Description</th>
1610
+ </tr>
1611
+ </thead>
1612
+
1613
+ <tbody>
1614
+
1615
+
1616
+
1617
+ <tr class="deep-level-0">
1618
+
1619
+ <td class="name"><code>params</code></td>
1620
+
1621
+
1622
+ <td class="type">
1623
+
1624
+
1625
+ <code class="param-type">object</code>
1626
+
1627
+
1628
+
1629
+ </td>
1630
+
1631
+
1632
+ <td class="attributes">
1633
+
1634
+
1635
+
1636
+
1637
+
1638
+ </td>
1639
+
1640
+
1641
+
1642
+ <td class="default">
1643
+
1644
+ </td>
1645
+
1646
+
1647
+ <td class="description last">Params to call fectch (URL internal)</td>
1648
+ </tr>
1649
+
1650
+
1651
+
1652
+
1653
+ <tr class="deep-level-1">
1654
+
1655
+ <td class="name"><code>url</code></td>
1656
+
1657
+
1658
+ <td class="type">
1659
+
1660
+
1661
+ <code class="param-type">string</code>
1662
+
1663
+
1664
+
1665
+ </td>
1666
+
1667
+
1668
+ <td class="attributes">
1669
+
1670
+
1671
+
1672
+
1673
+
1674
+ </td>
1675
+
1676
+
1677
+
1678
+ <td class="default">
1679
+
1680
+ </td>
1681
+
1682
+
1683
+ <td class="description last">URL to call</td>
1684
+ </tr>
1685
+
1686
+
1687
+
1688
+ <tr class="deep-level-1">
1689
+
1690
+ <td class="name"><code>method</code></td>
1691
+
1692
+
1693
+ <td class="type">
1694
+
1695
+
1696
+ <code class="param-type">string</code>
1697
+
1698
+
1699
+
1700
+ </td>
1701
+
1702
+
1703
+ <td class="attributes">
1704
+
1705
+ &lt;optional><br>
1706
+
1707
+
1708
+
1709
+
1710
+
1711
+ </td>
1712
+
1713
+
1714
+
1715
+ <td class="default">
1716
+
1717
+ POST
1718
+
1719
+ </td>
1720
+
1721
+
1722
+ <td class="description last">Fetch Method</td>
1723
+ </tr>
1724
+
1725
+
1726
+
1727
+ <tr class="deep-level-1">
1728
+
1729
+ <td class="name"><code>payload</code></td>
1730
+
1731
+
1732
+ <td class="type">
1733
+
1734
+
1735
+ <code class="param-type">string</code>
1736
+
1737
+
1738
+
1739
+ </td>
1740
+
1741
+
1742
+ <td class="attributes">
1743
+
1744
+
1745
+
1746
+
1747
+
1748
+ </td>
1749
+
1750
+
1751
+
1752
+ <td class="default">
1753
+
1754
+ </td>
1755
+
1756
+
1757
+ <td class="description last">Payload to send system manager</td>
1758
+ </tr>
1759
+
1760
+
1761
+
1762
+
1763
+
1764
+ </tbody>
1765
+ </table>
1766
+ </div>
1767
+
1768
+
1769
+
1770
+
1771
+
1772
+ <dl class="details">
1773
+
1774
+
1775
+
1776
+
1777
+
1778
+
1779
+
1780
+
1781
+
1782
+
1783
+
1784
+
1785
+
1786
+
1787
+
1788
+
1789
+
1790
+
1791
+ <dt class="tag-author">Author:</dt>
1792
+ <dd class="tag-author">
1793
+ <ul>
1794
+ <li><a href="mailto:thiagoo.anselmoo@gmail.com">Thiago Anselmo</a></li>
1795
+ </ul>
1796
+ </dd>
1797
+
1798
+
1799
+
1800
+
1801
+
1802
+
1803
+
1804
+
1805
+
1806
+
1807
+
1808
+
1809
+
1810
+
1811
+ <p class="tag-source">
1812
+ <a href="user_organization.js.html" class="button">View Source</a>
1813
+ <span>
1814
+ <a href="user_organization.js.html">user/organization.js</a>, <a href="user_organization.js.html#line197">line 197</a>
1815
+ </span>
1816
+ </p>
1817
+
1818
+ </dl>
1819
+
1820
+
1821
+
1822
+
1823
+
1824
+
1825
+
1826
+
1827
+
1828
+
1829
+
1830
+
1831
+
1832
+
1833
+
1834
+
1835
+
1836
+
1837
+ <div class='columns method-parameter'>
1838
+ <div class="column is-2"><label>Returns:</label></div>
1839
+ <div class="column is-10">
1840
+
1841
+
1842
+
1843
+ <div class="columns">
1844
+
1845
+
1846
+ <div class='column is-5 has-text-left'>
1847
+ <label>Type: </label>
1848
+
1849
+ <code class="param-type">promise</code>
1850
+
1851
+
1852
+ </div>
1853
+
1854
+ </div>
1855
+
1856
+
1857
+ </div>
1858
+ </div>
1859
+
1860
+
1861
+
1862
+
1863
+ <h5>Example</h5>
1864
+
1865
+
1866
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
1867
+ const api = new API();
1868
+
1869
+ const params = {
1870
+ url: 'http://localhost:8080/organizations/..../process/..../task/candidateAccepted/end/....',
1871
+ method: 'POST'
1872
+ }
1873
+ await api.user.organization.callFetchs(params, session);</code></pre>
1874
+
1875
+
1876
+
1877
+ </div>
1878
+
1879
+ <div class="member">
1880
+
1881
+
1882
+
1883
+ <h4 class="name" id="findById">
1884
+ <a class="href-link" href="#findById">#</a>
1885
+
1886
+
1887
+ <span class='tag'>async</span>
1888
+
1889
+
1890
+ <span class="code-name">
1891
+
1892
+ findById<span class="signature">(orgId, session)</span><span class="type-signature"></span>
1893
+
1894
+ </span>
1895
+ </h4>
1896
+
1897
+
1898
+
1899
+
1900
+ <div class="description">
1901
+ Find organization by id
1902
+ </div>
1903
+
1904
+
1905
+
1906
+
1907
+
1908
+
1909
+
1910
+
1911
+
1912
+
1913
+ <h5>Parameters:</h5>
1914
+
1915
+ <div class="table-container">
1916
+ <table class="params table">
1917
+ <thead>
1918
+ <tr>
1919
+
1920
+ <th>Name</th>
1921
+
1922
+
1923
+ <th>Type</th>
1924
+
1925
+
1926
+
1927
+
1928
+
1929
+ <th class="last">Description</th>
1930
+ </tr>
1931
+ </thead>
1932
+
1933
+ <tbody>
1934
+
1935
+
1936
+
1937
+ <tr class="deep-level-0">
1938
+
1939
+ <td class="name"><code>orgId</code></td>
1940
+
1941
+
1942
+ <td class="type">
1943
+
1944
+
1945
+ <code class="param-type">string</code>
1946
+
1947
+
1948
+
1949
+ </td>
1950
+
1951
+
1952
+
1953
+
1954
+
1955
+ <td class="description last">ID of the organization to find (_id database)</td>
1956
+ </tr>
1957
+
1958
+
1959
+
1960
+
1961
+
1962
+ <tr class="deep-level-0">
1963
+
1964
+ <td class="name"><code>session</code></td>
1965
+
1966
+
1967
+ <td class="type">
1968
+
1969
+
1970
+ <code class="param-type">string</code>
1971
+
1972
+
1973
+
1974
+ </td>
1975
+
1976
+
1977
+
1978
+
1979
+
1980
+ <td class="description last">Is token JWT</td>
1981
+ </tr>
1982
+
1983
+
1984
+
1985
+ </tbody>
1986
+ </table>
1987
+ </div>
1988
+
1989
+
1990
+
1991
+
1992
+
1993
+ <dl class="details">
1994
+
1995
+
1996
+
1997
+
1998
+
1999
+
2000
+
2001
+
2002
+
2003
+
2004
+
2005
+
2006
+
2007
+
2008
+
2009
+
2010
+
2011
+
2012
+ <dt class="tag-author">Author:</dt>
2013
+ <dd class="tag-author">
2014
+ <ul>
2015
+ <li><a href="mailto:abernardo.br@gmail.com">Augusto Pissarra</a></li>
2016
+ </ul>
2017
+ </dd>
2018
+
2019
+
2020
+
2021
+
2022
+
2023
+
2024
+
2025
+
2026
+
2027
+
2028
+
2029
+
2030
+
2031
+
2032
+ <p class="tag-source">
2033
+ <a href="user_organization.js.html" class="button">View Source</a>
2034
+ <span>
2035
+ <a href="user_organization.js.html">user/organization.js</a>, <a href="user_organization.js.html#line66">line 66</a>
2036
+ </span>
2037
+ </p>
2038
+
2039
+ </dl>
2040
+
2041
+
2042
+
2043
+
2044
+
2045
+
2046
+
2047
+
2048
+
2049
+
2050
+
2051
+
2052
+
2053
+
2054
+
2055
+
2056
+
2057
+
2058
+
2059
+
2060
+
2061
+ <h5>Example</h5>
2062
+
2063
+
2064
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
2065
+ const api = new API();
2066
+ const orgId = '80443245000122';
2067
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
2068
+ await api.user.organization.findById(idCard, session);</code></pre>
2069
+
2070
+
2071
+
2072
+ </div>
2073
+
2074
+ <div class="member">
2075
+
2076
+
2077
+
2078
+ <h4 class="name" id="idCardExist">
2079
+ <a class="href-link" href="#idCardExist">#</a>
2080
+
2081
+
2082
+ <span class='tag'>async</span>
2083
+
2084
+
2085
+ <span class="code-name">
2086
+
2087
+ idCardExist<span class="signature">(idcard, session)</span><span class="type-signature"></span>
2088
+
2089
+ </span>
2090
+ </h4>
2091
+
2092
+
2093
+
2094
+
2095
+ <div class="description">
2096
+ Check if id card exist
2097
+ </div>
2098
+
2099
+
2100
+
2101
+
2102
+
2103
+
2104
+
2105
+
2106
+
2107
+
2108
+ <h5>Parameters:</h5>
2109
+
2110
+ <div class="table-container">
2111
+ <table class="params table">
2112
+ <thead>
2113
+ <tr>
2114
+
2115
+ <th>Name</th>
2116
+
2117
+
2118
+ <th>Type</th>
2119
+
2120
+
2121
+
2122
+
2123
+
2124
+ <th class="last">Description</th>
2125
+ </tr>
2126
+ </thead>
2127
+
2128
+ <tbody>
2129
+
2130
+
2131
+
2132
+ <tr class="deep-level-0">
2133
+
2134
+ <td class="name"><code>idcard</code></td>
2135
+
2136
+
2137
+ <td class="type">
2138
+
2139
+
2140
+ <code class="param-type">string</code>
2141
+
2142
+
2143
+
2144
+ </td>
2145
+
2146
+
2147
+
2148
+
2149
+
2150
+ <td class="description last">Check if id card exist</td>
2151
+ </tr>
2152
+
2153
+
2154
+
2155
+
2156
+
2157
+ <tr class="deep-level-0">
2158
+
2159
+ <td class="name"><code>session</code></td>
2160
+
2161
+
2162
+ <td class="type">
2163
+
2164
+
2165
+ <code class="param-type">string</code>
2166
+
2167
+
2168
+
2169
+ </td>
2170
+
2171
+
2172
+
2173
+
2174
+
2175
+ <td class="description last">Is token JWT</td>
2176
+ </tr>
2177
+
2178
+
2179
+
2180
+ </tbody>
2181
+ </table>
2182
+ </div>
2183
+
2184
+
2185
+
2186
+
2187
+
2188
+ <dl class="details">
2189
+
2190
+
2191
+
2192
+
2193
+
2194
+
2195
+
2196
+
2197
+
2198
+
2199
+
2200
+
2201
+
2202
+
2203
+
2204
+
2205
+
2206
+
2207
+ <dt class="tag-author">Author:</dt>
2208
+ <dd class="tag-author">
2209
+ <ul>
2210
+ <li><a href="mailto:abernardo.br@gmail.com">Augusto Pissarra</a></li>
2211
+ </ul>
2212
+ </dd>
2213
+
2214
+
2215
+
2216
+
2217
+
2218
+
2219
+
2220
+
2221
+
2222
+
2223
+
2224
+
2225
+
2226
+
2227
+ <p class="tag-source">
2228
+ <a href="user_organization.js.html" class="button">View Source</a>
2229
+ <span>
2230
+ <a href="user_organization.js.html">user/organization.js</a>, <a href="user_organization.js.html#line95">line 95</a>
2231
+ </span>
2232
+ </p>
2233
+
2234
+ </dl>
2235
+
2236
+
2237
+
2238
+
2239
+
2240
+
2241
+
2242
+
2243
+
2244
+
2245
+
2246
+
2247
+
2248
+
2249
+
2250
+
2251
+
2252
+
2253
+
2254
+
2255
+
2256
+ <h5>Example</h5>
2257
+
2258
+
2259
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
2260
+ const api = new API();
2261
+ const idCard = '80443245000122';
2262
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
2263
+ await api.user.organization.idCardExist(idCard, session);</code></pre>
2264
+
2265
+
2266
+
2267
+ </div>
2268
+
2269
+ <div class="member">
2270
+
2271
+
2272
+
2273
+ <h4 class="name" id="removeAvatar">
2274
+ <a class="href-link" href="#removeAvatar">#</a>
2275
+
2276
+
2277
+ <span class='tag'>async</span>
2278
+
2279
+
2280
+ <span class="code-name">
2281
+
2282
+ removeAvatar<span class="signature">(session)</span><span class="type-signature"> &rarr; {Promise}</span>
2283
+
2284
+ </span>
2285
+ </h4>
2286
+
2287
+
2288
+
2289
+
2290
+ <div class="description">
2291
+ Remove avatar of user by session of user not allow session user SU
2292
+ </div>
2293
+
2294
+
2295
+
2296
+
2297
+
2298
+
2299
+
2300
+
2301
+
2302
+
2303
+ <h5>Parameters:</h5>
2304
+
2305
+ <div class="table-container">
2306
+ <table class="params table">
2307
+ <thead>
2308
+ <tr>
2309
+
2310
+ <th>Name</th>
2311
+
2312
+
2313
+ <th>Type</th>
2314
+
2315
+
2316
+
2317
+
2318
+
2319
+ <th class="last">Description</th>
2320
+ </tr>
2321
+ </thead>
2322
+
2323
+ <tbody>
2324
+
2325
+
2326
+
2327
+ <tr class="deep-level-0">
2328
+
2329
+ <td class="name"><code>session</code></td>
2330
+
2331
+
2332
+ <td class="type">
2333
+
2334
+
2335
+ <code class="param-type">string</code>
2336
+
2337
+
2338
+
2339
+ </td>
2340
+
2341
+
2342
+
2343
+
2344
+
2345
+ <td class="description last">Is token JWT of user NOT allow SU</td>
2346
+ </tr>
2347
+
2348
+
2349
+
2350
+ </tbody>
2351
+ </table>
2352
+ </div>
2353
+
2354
+
2355
+
2356
+
2357
+
2358
+ <dl class="details">
2359
+
2360
+
2361
+
2362
+
2363
+
2364
+
2365
+
2366
+
2367
+
2368
+
2369
+
2370
+
2371
+
2372
+
2373
+
2374
+
2375
+
2376
+
2377
+ <dt class="tag-author">Author:</dt>
2378
+ <dd class="tag-author">
2379
+ <ul>
2380
+ <li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
2381
+ </ul>
2382
+ </dd>
2383
+
2384
+
2385
+
2386
+
2387
+
2388
+
2389
+
2390
+
2391
+
2392
+
2393
+
2394
+
2395
+
2396
+
2397
+ <p class="tag-source">
2398
+ <a href="user_organization.js.html" class="button">View Source</a>
2399
+ <span>
2400
+ <a href="user_organization.js.html">user/organization.js</a>, <a href="user_organization.js.html#line163">line 163</a>
2401
+ </span>
2402
+ </p>
2403
+
2404
+ </dl>
2405
+
2406
+
2407
+
2408
+
2409
+
2410
+
2411
+
2412
+
2413
+
2414
+
2415
+
2416
+
2417
+
2418
+
2419
+
2420
+
2421
+
2422
+
2423
+ <div class='columns method-parameter'>
2424
+ <div class="column is-2"><label>Returns:</label></div>
2425
+ <div class="column is-10">
2426
+
2427
+
2428
+
2429
+ <div class="columns">
2430
+
2431
+
2432
+ <div class='column is-5 has-text-left'>
2433
+ <label>Type: </label>
2434
+
2435
+ <code class="param-type">Promise</code>
2436
+
2437
+
2438
+ </div>
2439
+
2440
+ </div>
2441
+
2442
+
2443
+ </div>
2444
+ </div>
2445
+
2446
+
2447
+
2448
+
2449
+ <h5>Example</h5>
2450
+
2451
+
2452
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
2453
+ const api = new API();
2454
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
2455
+ await api.user.profile.removeAvatar(session);</code></pre>
2456
+
2457
+
2458
+
2459
+ </div>
2460
+
2461
+ <div class="member">
2462
+
2463
+
2464
+
2465
+ <h4 class="name" id="upsertAvatar">
2466
+ <a class="href-link" href="#upsertAvatar">#</a>
2467
+
2468
+
2469
+ <span class='tag'>async</span>
2470
+
2471
+
2472
+ <span class="code-name">
2473
+
2474
+ upsertAvatar<span class="signature">(params, session)</span><span class="type-signature"> &rarr; {Promise}</span>
2475
+
2476
+ </span>
2477
+ </h4>
2478
+
2479
+
2480
+
2481
+
2482
+ <div class="description">
2483
+ Update avatar of organization by session of user not allow session user SU
2484
+ </div>
2485
+
2486
+
2487
+
2488
+
2489
+
2490
+
2491
+
2492
+
2493
+
2494
+
2495
+ <h5>Parameters:</h5>
2496
+
2497
+ <div class="table-container">
2498
+ <table class="params table">
2499
+ <thead>
2500
+ <tr>
2501
+
2502
+ <th>Name</th>
2503
+
2504
+
2505
+ <th>Type</th>
2506
+
2507
+
2508
+
2509
+
2510
+
2511
+ <th class="last">Description</th>
2512
+ </tr>
2513
+ </thead>
2514
+
2515
+ <tbody>
2516
+
2517
+
2518
+
2519
+ <tr class="deep-level-0">
2520
+
2521
+ <td class="name"><code>params</code></td>
2522
+
2523
+
2524
+ <td class="type">
2525
+
2526
+
2527
+ <code class="param-type">object</code>
2528
+
2529
+
2530
+
2531
+ </td>
2532
+
2533
+
2534
+
2535
+
2536
+
2537
+ <td class="description last">Params to update avatar</td>
2538
+ </tr>
2539
+
2540
+
2541
+
2542
+
2543
+ <tr class="deep-level-1">
2544
+
2545
+ <td class="name"><code>avatar</code></td>
2546
+
2547
+
2548
+ <td class="type">
2549
+
2550
+
2551
+ <code class="param-type">string</code>
2552
+
2553
+
2554
+
2555
+ </td>
2556
+
2557
+
2558
+
2559
+
2560
+
2561
+ <td class="description last">Image in base64 to update</td>
2562
+ </tr>
2563
+
2564
+
2565
+
2566
+ <tr class="deep-level-1">
2567
+
2568
+ <td class="name"><code>type</code></td>
2569
+
2570
+
2571
+ <td class="type">
2572
+
2573
+
2574
+ <code class="param-type">string</code>
2575
+
2576
+
2577
+
2578
+ </td>
2579
+
2580
+
2581
+
2582
+
2583
+
2584
+ <td class="description last">mimeType (image/png)</td>
2585
+ </tr>
2586
+
2587
+
2588
+
2589
+
2590
+
2591
+
2592
+
2593
+ <tr class="deep-level-0">
2594
+
2595
+ <td class="name"><code>session</code></td>
2596
+
2597
+
2598
+ <td class="type">
2599
+
2600
+
2601
+ <code class="param-type">string</code>
2602
+
2603
+
2604
+
2605
+ </td>
2606
+
2607
+
2608
+
2609
+
2610
+
2611
+ <td class="description last">Is token JWT of user NOT allow SU</td>
2612
+ </tr>
2613
+
2614
+
2615
+
2616
+ </tbody>
2617
+ </table>
2618
+ </div>
2619
+
2620
+
2621
+
2622
+
2623
+
2624
+ <dl class="details">
2625
+
2626
+
2627
+
2628
+
2629
+
2630
+
2631
+
2632
+
2633
+
2634
+
2635
+
2636
+
2637
+
2638
+
2639
+
2640
+
2641
+
2642
+
2643
+ <dt class="tag-author">Author:</dt>
2644
+ <dd class="tag-author">
2645
+ <ul>
2646
+ <li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
2647
+ </ul>
2648
+ </dd>
2649
+
2650
+
2651
+
2652
+
2653
+
2654
+
2655
+
2656
+
2657
+
2658
+
2659
+
2660
+
2661
+
2662
+
2663
+ <p class="tag-source">
2664
+ <a href="user_organization.js.html" class="button">View Source</a>
2665
+ <span>
2666
+ <a href="user_organization.js.html">user/organization.js</a>, <a href="user_organization.js.html#line130">line 130</a>
2667
+ </span>
2668
+ </p>
2669
+
2670
+ </dl>
2671
+
2672
+
2673
+
2674
+
2675
+
2676
+
2677
+
2678
+
2679
+
2680
+
2681
+
2682
+
2683
+
2684
+
2685
+
2686
+
2687
+
2688
+
2689
+ <div class='columns method-parameter'>
2690
+ <div class="column is-2"><label>Returns:</label></div>
2691
+ <div class="column is-10">
2692
+
2693
+
2694
+
2695
+ <div class="columns">
2696
+
2697
+
2698
+ <div class='column is-5 has-text-left'>
2699
+ <label>Type: </label>
2700
+
2701
+ <code class="param-type">Promise</code>
2702
+
2703
+
2704
+ </div>
2705
+
2706
+ </div>
2707
+
2708
+
2709
+ </div>
2710
+ </div>
2711
+
2712
+
2713
+
2714
+
2715
+ <h5>Example</h5>
2716
+
2717
+
2718
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
2719
+ const api = new API();
2720
+ const params = {
2721
+ avatar: 'iVBORw0KGgoAAAANSUhEUgAAAasAAAHnCAYAAAAGi3J6AAA9BElEQVR...He3/kk/m7kl35S8AAAAASUVORK5CYII=',
2722
+ type: 'image/png',
2723
+ };
2724
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
2725
+ await api.user.profile.updateAvatar(params, session);</code></pre>
2726
+
2727
+
2728
+
2729
+ </div>
2730
+
2731
+ </div>
2732
+ </div>
2733
+
2734
+
2735
+
2736
+
2737
+
2738
+ </article>
2739
+
2740
+ </section>
2741
+
2742
+
2743
+
2744
+
2745
+ </div>
2746
+
2747
+ <footer class="footer">
2748
+ <div class="content has-text-centered">
2749
+ <p>Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a></p>
2750
+ <p class="sidebar-created-by">
2751
+ <a href="https://github.com/SoftwareBrothers/better-docs" target="_blank">BetterDocs theme</a> provided with <i class="fas fa-heart"></i> by
2752
+ <a href="http://softwarebrothers.co" target="_blank">SoftwareBrothers - JavaScript Development Agency</a>
2753
+ </p>
2754
+ </div>
2755
+ </footer>
2756
+
2757
+ </div>
2758
+ <div id="side-nav" class="side-nav">
2759
+ </div>
2760
+ </div>
2761
+ <script src="scripts/app.min.js"></script>
2762
+ <script>PR.prettyPrint();</script>
2763
+ <script src="scripts/linenumber.js"> </script>
2764
+
2765
+
2766
+ </body>
2767
+ </html>