@docbrasil/api-systemmanager 1.0.107 → 1.0.109

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 (73) hide show
  1. package/.github/workflows/static.yml +43 -0
  2. package/api/external.js +41 -0
  3. package/dist/bundle.cjs +41 -0
  4. package/dist/bundle.mjs +1 -1
  5. package/doc/api.md +382 -0
  6. package/docs/Admin.html +336 -0
  7. package/docs/AdminDocuments.html +2235 -0
  8. package/docs/AdminForm.html +934 -0
  9. package/docs/AdminLists.html +895 -0
  10. package/docs/AdminMessage.html +1490 -0
  11. package/docs/AdminNotification.html +1636 -0
  12. package/docs/AdminPlugin.html +696 -0
  13. package/docs/AdminPolicy.html +451 -0
  14. package/docs/AdminProcesses.html +692 -0
  15. package/docs/AdminTask.html +740 -0
  16. package/docs/AdminUser.html +1203 -0
  17. package/docs/Datasource.html +660 -0
  18. package/docs/Dispatch.html +624 -0
  19. package/docs/Documents.html +4875 -0
  20. package/docs/External.html +1497 -0
  21. package/docs/GeoLocation.html +503 -0
  22. package/docs/Login.html +1839 -0
  23. package/docs/Notification.html +625 -0
  24. package/docs/Organization.html +2767 -0
  25. package/docs/Process.html +1598 -0
  26. package/docs/Register.html +1604 -0
  27. package/docs/Session.html +482 -0
  28. package/docs/Task.html +1394 -0
  29. package/docs/TaskAvailable.html +893 -0
  30. package/docs/User.html +2002 -0
  31. package/docs/Users.html +569 -0
  32. package/docs/admin_doctypes.js.html +193 -0
  33. package/docs/admin_document.js.html +449 -0
  34. package/docs/admin_form.js.html +268 -0
  35. package/docs/admin_index.js.html +163 -0
  36. package/docs/admin_list.js.html +250 -0
  37. package/docs/admin_message.js.html +311 -0
  38. package/docs/admin_notification.js.html +350 -0
  39. package/docs/admin_organization.js.html +241 -0
  40. package/docs/admin_plugin.js.html +233 -0
  41. package/docs/admin_policy.js.html +195 -0
  42. package/docs/admin_processes.js.html +487 -0
  43. package/docs/admin_task.js.html +242 -0
  44. package/docs/admin_user.js.html +302 -0
  45. package/docs/dispatch.js.html +218 -0
  46. package/docs/external.js.html +333 -0
  47. package/docs/general_geoLocation.js.html +205 -0
  48. package/docs/general_index.js.html +140 -0
  49. package/docs/index.html +129 -0
  50. package/docs/login.js.html +384 -0
  51. package/docs/scripts/app.min.js +1 -0
  52. package/docs/scripts/linenumber.js +26 -0
  53. package/docs/scripts/search.js +39 -0
  54. package/docs/session.js.html +202 -0
  55. package/docs/styles/app.min.css +1 -0
  56. package/docs/styles/iframe.css +13 -0
  57. package/docs/styles/prettify-jsdoc.css +111 -0
  58. package/docs/styles/prettify-tomorrow.css +132 -0
  59. package/docs/styles/reset.css +44 -0
  60. package/docs/user_datasource.js.html +261 -0
  61. package/docs/user_document.js.html +847 -0
  62. package/docs/user_index.js.html +156 -0
  63. package/docs/user_notification.js.html +218 -0
  64. package/docs/user_organization.js.html +347 -0
  65. package/docs/user_process.js.html +352 -0
  66. package/docs/user_register.js.html +322 -0
  67. package/docs/user_task.js.html +319 -0
  68. package/docs/user_task_available.js.html +252 -0
  69. package/docs/user_user.js.html +404 -0
  70. package/docs/utils_promises.js.html +235 -0
  71. package/package.json +7 -4
  72. package/readme.md +7 -8
  73. package/doc.md +0 -653
@@ -0,0 +1,740 @@
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> AdminTask</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>AdminTask</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>AdminTask<span class="signature">()</span><span class="type-signature"></span></h2>
89
+
90
+ <div class="class-description">Admin Class for task, permission admin</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="AdminTask">
110
+ <a class="href-link" href="#AdminTask">#</a>
111
+
112
+ <span class="code-name">
113
+
114
+ new AdminTask<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_task.js.html" class="button">View Source</a>
169
+ <span>
170
+ <a href="admin_task.js.html">admin/task.js</a>, <a href="admin_task.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="find">
228
+ <a class="href-link" href="#find">#</a>
229
+
230
+
231
+ <span class='tag'>async</span>
232
+
233
+
234
+ <span class="code-name">
235
+
236
+ find<span class="signature">(params, session)</span><span class="type-signature"></span>
237
+
238
+ </span>
239
+ </h4>
240
+
241
+
242
+
243
+
244
+ <div class="description">
245
+ Get task by user Id
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 get task</td>
316
+ </tr>
317
+
318
+
319
+
320
+
321
+ <tr class="deep-level-1">
322
+
323
+ <td class="name"><code>userId</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">User id (_id database)</td>
352
+ </tr>
353
+
354
+
355
+
356
+ <tr class="deep-level-1">
357
+
358
+ <td class="name"><code>filter</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
+ NOT_DONE
386
+
387
+ </td>
388
+
389
+
390
+ <td class="description last">Filter type CLEAN | EXECUTED | PENDING | LATE | NOT_DONE | DONE</td>
391
+ </tr>
392
+
393
+
394
+
395
+ <tr class="deep-level-1">
396
+
397
+ <td class="name"><code>project</code></td>
398
+
399
+
400
+ <td class="type">
401
+
402
+
403
+ <code class="param-type">object</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">Project to return</td>
426
+ </tr>
427
+
428
+
429
+
430
+ <tr class="deep-level-1">
431
+
432
+ <td class="name"><code>project.returnProcessProperties</code></td>
433
+
434
+
435
+ <td class="type">
436
+
437
+
438
+ <code class="param-type">boolean</code>
439
+
440
+
441
+
442
+ </td>
443
+
444
+
445
+ <td class="attributes">
446
+
447
+
448
+
449
+
450
+
451
+ </td>
452
+
453
+
454
+
455
+ <td class="default">
456
+
457
+ </td>
458
+
459
+
460
+ <td class="description last">Return process properties</td>
461
+ </tr>
462
+
463
+
464
+
465
+ <tr class="deep-level-1">
466
+
467
+ <td class="name"><code>project.returnInitParams</code></td>
468
+
469
+
470
+ <td class="type">
471
+
472
+
473
+ <code class="param-type">boolean</code>
474
+
475
+
476
+
477
+ </td>
478
+
479
+
480
+ <td class="attributes">
481
+
482
+
483
+
484
+
485
+
486
+ </td>
487
+
488
+
489
+
490
+ <td class="default">
491
+
492
+ </td>
493
+
494
+
495
+ <td class="description last">Return init params</td>
496
+ </tr>
497
+
498
+
499
+
500
+ <tr class="deep-level-1">
501
+
502
+ <td class="name"><code>userId</code></td>
503
+
504
+
505
+ <td class="type">
506
+
507
+
508
+ <code class="param-type">string</code>
509
+
510
+
511
+
512
+ </td>
513
+
514
+
515
+ <td class="attributes">
516
+
517
+
518
+
519
+
520
+
521
+ </td>
522
+
523
+
524
+
525
+ <td class="default">
526
+
527
+ </td>
528
+
529
+
530
+ <td class="description last">User id (_id database)</td>
531
+ </tr>
532
+
533
+
534
+
535
+ <tr class="deep-level-1">
536
+
537
+ <td class="name"><code>includeOwner</code></td>
538
+
539
+
540
+ <td class="type">
541
+
542
+
543
+ <code class="param-type">boolean</code>
544
+
545
+
546
+
547
+ </td>
548
+
549
+
550
+ <td class="attributes">
551
+
552
+ &lt;optional><br>
553
+
554
+
555
+
556
+
557
+
558
+ </td>
559
+
560
+
561
+
562
+ <td class="default">
563
+
564
+ false
565
+
566
+ </td>
567
+
568
+
569
+ <td class="description last">Include owner true | false</td>
570
+ </tr>
571
+
572
+
573
+
574
+
575
+
576
+
577
+
578
+ <tr class="deep-level-0">
579
+
580
+ <td class="name"><code>session</code></td>
581
+
582
+
583
+ <td class="type">
584
+
585
+
586
+ <code class="param-type">string</code>
587
+
588
+
589
+
590
+ </td>
591
+
592
+
593
+ <td class="attributes">
594
+
595
+
596
+
597
+
598
+
599
+ </td>
600
+
601
+
602
+
603
+ <td class="default">
604
+
605
+ </td>
606
+
607
+
608
+ <td class="description last">Session, token JWT</td>
609
+ </tr>
610
+
611
+
612
+
613
+ </tbody>
614
+ </table>
615
+ </div>
616
+
617
+
618
+
619
+
620
+
621
+ <dl class="details">
622
+
623
+
624
+
625
+
626
+
627
+
628
+
629
+
630
+
631
+
632
+
633
+
634
+
635
+
636
+
637
+
638
+
639
+
640
+ <dt class="tag-author">Author:</dt>
641
+ <dd class="tag-author">
642
+ <ul>
643
+ <li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
644
+ </ul>
645
+ </dd>
646
+
647
+
648
+
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+ <p class="tag-source">
661
+ <a href="admin_task.js.html" class="button">View Source</a>
662
+ <span>
663
+ <a href="admin_task.js.html">admin/task.js</a>, <a href="admin_task.js.html#line95">line 95</a>
664
+ </span>
665
+ </p>
666
+
667
+ </dl>
668
+
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+
687
+
688
+
689
+ <h5>Example</h5>
690
+
691
+
692
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
693
+ const api = new API();
694
+ const params = {
695
+ userId: '55e4a3bd6be6b45210833fae',
696
+ };
697
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
698
+ await api.admin.task.find(params, session);</code></pre>
699
+
700
+
701
+
702
+ </div>
703
+
704
+ </div>
705
+ </div>
706
+
707
+
708
+
709
+
710
+
711
+ </article>
712
+
713
+ </section>
714
+
715
+
716
+
717
+
718
+ </div>
719
+
720
+ <footer class="footer">
721
+ <div class="content has-text-centered">
722
+ <p>Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a></p>
723
+ <p class="sidebar-created-by">
724
+ <a href="https://github.com/SoftwareBrothers/better-docs" target="_blank">BetterDocs theme</a> provided with <i class="fas fa-heart"></i> by
725
+ <a href="http://softwarebrothers.co" target="_blank">SoftwareBrothers - JavaScript Development Agency</a>
726
+ </p>
727
+ </div>
728
+ </footer>
729
+
730
+ </div>
731
+ <div id="side-nav" class="side-nav">
732
+ </div>
733
+ </div>
734
+ <script src="scripts/app.min.js"></script>
735
+ <script>PR.prettyPrint();</script>
736
+ <script src="scripts/linenumber.js"> </script>
737
+
738
+
739
+ </body>
740
+ </html>