@docbrasil/api-systemmanager 1.1.71 → 1.1.74

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 (82) hide show
  1. package/api/user/task.js +220 -0
  2. package/dist/bundle.cjs +220 -0
  3. package/dist/bundle.mjs +1 -1
  4. package/doc/api.md +157 -7
  5. package/docs/Admin.html +1 -1
  6. package/docs/AdminDocuments.html +1 -1
  7. package/docs/AdminForm.html +1 -1
  8. package/docs/AdminLists.html +1 -1
  9. package/docs/AdminMessage.html +1 -1
  10. package/docs/AdminNotification.html +1 -1
  11. package/docs/AdminPlugin.html +1 -1
  12. package/docs/AdminPolicy.html +1 -1
  13. package/docs/AdminProcesses.html +1 -1
  14. package/docs/AdminTask.html +1 -1
  15. package/docs/AdminUser.html +1 -1
  16. package/docs/Application.html +1 -1
  17. package/docs/Chart.html +1 -1
  18. package/docs/Dashboard.html +74 -12
  19. package/docs/Datasource.html +1 -1
  20. package/docs/Dispatch.html +1 -1
  21. package/docs/Documents.html +1 -1
  22. package/docs/External.html +1 -1
  23. package/docs/GeoLocation.html +1 -1
  24. package/docs/Help.html +1 -1
  25. package/docs/Kanban.html +1 -1
  26. package/docs/Login.html +1 -1
  27. package/docs/MyTasks.html +1 -1
  28. package/docs/MyndAI.html +1 -1
  29. package/docs/Notification.html +1 -1
  30. package/docs/Organization.html +1 -1
  31. package/docs/Page.html +1 -1
  32. package/docs/Process.html +1 -1
  33. package/docs/Register.html +1 -1
  34. package/docs/Report.html +529 -0
  35. package/docs/Session.html +1 -1
  36. package/docs/Settings.html +1 -1
  37. package/docs/Task.html +1890 -410
  38. package/docs/TaskAvailable.html +1 -1
  39. package/docs/Updates.html +1 -1
  40. package/docs/User.html +1 -1
  41. package/docs/Users.html +1 -1
  42. package/docs/admin_doctypes.js.html +1 -1
  43. package/docs/admin_document.js.html +1 -1
  44. package/docs/admin_form.js.html +1 -1
  45. package/docs/admin_index.js.html +1 -1
  46. package/docs/admin_list.js.html +1 -1
  47. package/docs/admin_message.js.html +1 -1
  48. package/docs/admin_notification.js.html +1 -1
  49. package/docs/admin_organization.js.html +1 -1
  50. package/docs/admin_plugin.js.html +1 -1
  51. package/docs/admin_policy.js.html +1 -1
  52. package/docs/admin_processes.js.html +1 -1
  53. package/docs/admin_task.js.html +1 -1
  54. package/docs/admin_user.js.html +1 -1
  55. package/docs/ai.js.html +1 -1
  56. package/docs/dispatch.js.html +1 -1
  57. package/docs/external.js.html +1 -1
  58. package/docs/general_geoLocation.js.html +1 -1
  59. package/docs/general_index.js.html +1 -1
  60. package/docs/index.html +1 -1
  61. package/docs/login.js.html +1 -1
  62. package/docs/session.js.html +1 -1
  63. package/docs/user_application.js.html +1 -1
  64. package/docs/user_dashboard.js.html +94 -8
  65. package/docs/user_datasource.js.html +1 -1
  66. package/docs/user_document.js.html +1 -1
  67. package/docs/user_help.js.html +1 -1
  68. package/docs/user_index.js.html +1 -1
  69. package/docs/user_kanban.js.html +1 -1
  70. package/docs/user_my_tasks.js.html +1 -1
  71. package/docs/user_notification.js.html +1 -1
  72. package/docs/user_organization.js.html +1 -1
  73. package/docs/user_page.js.html +1 -1
  74. package/docs/user_process.js.html +1 -1
  75. package/docs/user_register.js.html +1 -1
  76. package/docs/user_settings.js.html +1 -1
  77. package/docs/user_task.js.html +221 -1
  78. package/docs/user_task_available.js.html +1 -1
  79. package/docs/user_updates.js.html +1 -1
  80. package/docs/user_user.js.html +1 -1
  81. package/docs/utils_promises.js.html +1 -1
  82. package/package.json +1 -1
package/docs/Task.html CHANGED
@@ -66,7 +66,7 @@
66
66
 
67
67
  <nav>
68
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="Application.html">Application</a></li><li><a href="Chart.html">Chart</a></li><li><a href="Dashboard.html">Dashboard</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="Help.html">Help</a></li><li><a href="Kanban.html">Kanban</a></li><li><a href="Login.html">Login</a></li><li><a href="MyTasks.html">MyTasks</a></li><li><a href="MyndAI.html">MyndAI</a></li><li><a href="Notification.html">Notification</a></li><li><a href="Organization.html">Organization</a></li><li><a href="Page.html">Page</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="Settings.html">Settings</a></li><li><a href="Task.html">Task</a></li><li><a href="TaskAvailable.html">TaskAvailable</a></li><li><a href="Updates.html">Updates</a></li><li><a href="User.html">User</a></li><li><a href="Users.html">Users</a></li></ul></div>
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="Application.html">Application</a></li><li><a href="Chart.html">Chart</a></li><li><a href="Dashboard.html">Dashboard</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="Help.html">Help</a></li><li><a href="Kanban.html">Kanban</a></li><li><a href="Login.html">Login</a></li><li><a href="MyTasks.html">MyTasks</a></li><li><a href="MyndAI.html">MyndAI</a></li><li><a href="Notification.html">Notification</a></li><li><a href="Organization.html">Organization</a></li><li><a href="Page.html">Page</a></li><li><a href="Process.html">Process</a></li><li><a href="Register.html">Register</a></li><li><a href="Report.html">Report</a></li><li><a href="Session.html">Session</a></li><li><a href="Settings.html">Settings</a></li><li><a href="Task.html">Task</a></li><li><a href="TaskAvailable.html">TaskAvailable</a></li><li><a href="Updates.html">Updates</a></li><li><a href="User.html">User</a></li><li><a href="Users.html">Users</a></li></ul></div>
70
70
 
71
71
  </nav>
72
72
  </div>
@@ -224,8 +224,8 @@
224
224
 
225
225
 
226
226
 
227
- <h4 class="name" id="executeActionFinalize">
228
- <a class="href-link" href="#executeActionFinalize">#</a>
227
+ <h4 class="name" id="endTask">
228
+ <a class="href-link" href="#endTask">#</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
- executeActionFinalize<span class="signature">(params<span class="signature-attributes">non-null</span>, session)</span><span class="type-signature"> &rarr; {Promise}</span>
236
+ endTask<span class="signature">(params, session)</span><span class="type-signature"> &rarr; {Promise}</span>
237
237
 
238
238
  </span>
239
239
  </h4>
@@ -242,7 +242,7 @@
242
242
 
243
243
 
244
244
  <div class="description">
245
- Find task by id and update
245
+ End/complete a task and advance the workflow
246
246
  </div>
247
247
 
248
248
 
@@ -267,9 +267,9 @@
267
267
  <th>Type</th>
268
268
 
269
269
 
270
-
270
+ <th>Attributes</th>
271
271
 
272
- <th>Default</th>
272
+
273
273
 
274
274
 
275
275
  <th class="last">Description</th>
@@ -295,14 +295,18 @@
295
295
  </td>
296
296
 
297
297
 
298
+ <td class="attributes">
299
+
300
+
301
+
298
302
 
299
-
300
- <td class="default">
301
303
 
302
304
  </td>
303
305
 
304
306
 
305
- <td class="description last">Params - to update task</td>
307
+
308
+
309
+ <td class="description last">Params to end task</td>
306
310
  </tr>
307
311
 
308
312
 
@@ -310,7 +314,7 @@
310
314
 
311
315
  <tr class="deep-level-1">
312
316
 
313
- <td class="name"><code>taskId</code></td>
317
+ <td class="name"><code>processId</code></td>
314
318
 
315
319
 
316
320
  <td class="type">
@@ -323,21 +327,25 @@
323
327
  </td>
324
328
 
325
329
 
330
+ <td class="attributes">
331
+
332
+
333
+
326
334
 
327
-
328
- <td class="default">
329
335
 
330
336
  </td>
331
337
 
332
338
 
333
- <td class="description last">Task id (_id database)</td>
339
+
340
+
341
+ <td class="description last">Process id (_id database)</td>
334
342
  </tr>
335
343
 
336
344
 
337
345
 
338
346
  <tr class="deep-level-1">
339
347
 
340
- <td class="name"><code>actionGuid</code></td>
348
+ <td class="name"><code>taskId</code></td>
341
349
 
342
350
 
343
351
  <td class="type">
@@ -350,21 +358,25 @@
350
358
  </td>
351
359
 
352
360
 
361
+ <td class="attributes">
362
+
363
+
364
+
353
365
 
354
-
355
- <td class="default">
356
366
 
357
367
  </td>
358
368
 
359
369
 
360
- <td class="description last">GUID of the action</td>
370
+
371
+
372
+ <td class="description last">Task id (_id database)</td>
361
373
  </tr>
362
374
 
363
375
 
364
376
 
365
377
  <tr class="deep-level-1">
366
378
 
367
- <td class="name"><code>orgId</code></td>
379
+ <td class="name"><code>flowName</code></td>
368
380
 
369
381
 
370
382
  <td class="type">
@@ -377,342 +389,410 @@
377
389
  </td>
378
390
 
379
391
 
392
+ <td class="attributes">
393
+
394
+
395
+
380
396
 
381
-
382
- <td class="default">
383
397
 
384
398
  </td>
385
399
 
386
400
 
387
- <td class="description last">Organization id (_id database)</td>
401
+
402
+
403
+ <td class="description last">Flow name</td>
388
404
  </tr>
389
405
 
390
406
 
391
407
 
392
408
  <tr class="deep-level-1">
393
409
 
394
- <td class="name"><code>payload</code></td>
410
+ <td class="name"><code>orgId</code></td>
395
411
 
396
412
 
397
413
  <td class="type">
398
414
 
399
415
 
400
- <code class="param-type">any</code>
416
+ <code class="param-type">string</code>
401
417
 
402
418
 
403
419
 
404
420
  </td>
405
421
 
406
422
 
423
+ <td class="attributes">
424
+
407
425
 
408
-
409
- <td class="default">
410
426
 
411
- {}
427
+
412
428
 
413
429
  </td>
414
430
 
415
431
 
416
- <td class="description last">Payload to send in action</td>
417
- </tr>
418
-
419
432
 
420
433
 
434
+ <td class="description last">Organization id (_id database)</td>
435
+ </tr>
421
436
 
422
-
423
-
424
-
425
- <tr class="deep-level-0">
426
437
 
427
- <td class="name"><code>session</code></td>
438
+
439
+ <tr class="deep-level-1">
440
+
441
+ <td class="name"><code>formData</code></td>
428
442
 
429
443
 
430
444
  <td class="type">
431
445
 
432
446
 
433
- <code class="param-type">string</code>
447
+ <code class="param-type">array</code>
434
448
 
435
449
 
436
450
 
437
451
  </td>
438
452
 
439
453
 
454
+ <td class="attributes">
455
+
456
+
457
+
440
458
 
441
-
442
- <td class="default">
443
459
 
444
460
  </td>
445
461
 
446
462
 
447
- <td class="description last">Session, token JWT</td>
463
+
464
+
465
+ <td class="description last">Form data to submit</td>
448
466
  </tr>
449
467
 
468
+
469
+
470
+ <tr class="deep-level-1">
471
+
472
+ <td class="name"><code>selectedDocs</code></td>
473
+
450
474
 
451
-
452
- </tbody>
453
- </table>
454
- </div>
475
+ <td class="type">
476
+
477
+
478
+ <code class="param-type">array</code>
455
479
 
456
480
 
481
+
482
+ </td>
457
483
 
484
+
485
+ <td class="attributes">
486
+
487
+ &lt;optional><br>
488
+
458
489
 
490
+
459
491
 
460
- <dl class="details">
492
+
493
+ </td>
494
+
461
495
 
462
-
496
+
463
497
 
464
-
498
+ <td class="description last">Selected documents</td>
499
+ </tr>
465
500
 
501
+
466
502
 
503
+ <tr class="deep-level-1">
504
+
505
+ <td class="name"><code>selectedAssignees</code></td>
506
+
467
507
 
468
-
508
+ <td class="type">
509
+
510
+
511
+ <code class="param-type">array</code>
469
512
 
470
-
471
513
 
472
-
514
+
515
+ </td>
473
516
 
474
-
517
+
518
+ <td class="attributes">
519
+
520
+ &lt;optional><br>
521
+
475
522
 
476
-
523
+
477
524
 
478
-
479
- <dt class="tag-author">Author:</dt>
480
- <dd class="tag-author">
481
- <ul>
482
- <li><a href="mailto:augusto.pissarra@myndware.com">Myndware</a></li>
483
- </ul>
484
- </dd>
485
-
525
+
526
+ </td>
527
+
486
528
 
487
-
529
+
488
530
 
489
-
531
+ <td class="description last">Selected assignees</td>
532
+ </tr>
490
533
 
534
+
491
535
 
492
-
536
+ <tr class="deep-level-1">
537
+
538
+ <td class="name"><code>selectedBoxes</code></td>
539
+
493
540
 
494
-
541
+ <td class="type">
542
+
543
+
544
+ <code class="param-type">array</code>
495
545
 
496
-
497
546
 
498
-
499
- <p class="tag-source">
500
- <a href="user_task.js.html" class="button">View Source</a>
501
- <span>
502
- <a href="user_task.js.html">user/task.js</a>, <a href="user_task.js.html#line183">line 183</a>
503
- </span>
504
- </p>
505
-
506
- </dl>
547
+
548
+ </td>
507
549
 
550
+
551
+ <td class="attributes">
552
+
553
+ &lt;optional><br>
554
+
508
555
 
556
+
509
557
 
558
+
559
+ </td>
560
+
510
561
 
562
+
511
563
 
564
+ <td class="description last">Selected boxes</td>
565
+ </tr>
512
566
 
567
+
568
+
569
+ <tr class="deep-level-1">
570
+
571
+ <td class="name"><code>advFormData</code></td>
572
+
513
573
 
574
+ <td class="type">
575
+
576
+
577
+ <code class="param-type">object</code>
514
578
 
515
579
 
580
+
581
+ </td>
516
582
 
583
+
584
+ <td class="attributes">
585
+
586
+ &lt;optional><br>
587
+
517
588
 
589
+
518
590
 
591
+
592
+ </td>
593
+
519
594
 
595
+
520
596
 
597
+ <td class="description last">Advanced form data</td>
598
+ </tr>
521
599
 
600
+
601
+
602
+ <tr class="deep-level-1">
603
+
604
+ <td class="name"><code>advFormSchema</code></td>
605
+
522
606
 
607
+ <td class="type">
608
+
609
+
610
+ <code class="param-type">object</code>
523
611
 
524
612
 
525
- <div class='columns method-parameter'>
526
- <div class="column is-2"><label>Returns:</label></div>
527
- <div class="column is-10">
528
-
529
-
613
+
614
+ </td>
530
615
 
531
- <div class="columns">
532
-
533
-
534
- <div class='column is-5 has-text-left'>
535
- <label>Type: </label>
536
-
537
- <code class="param-type">Promise</code>
616
+
617
+ <td class="attributes">
618
+
619
+ &lt;optional><br>
620
+
538
621
 
622
+
539
623
 
540
- </div>
541
-
542
- </div>
624
+
625
+ </td>
626
+
543
627
 
544
-
545
- </div>
546
- </div>
628
+
547
629
 
630
+ <td class="description last">Advanced form schema</td>
631
+ </tr>
548
632
 
633
+
634
+
635
+ <tr class="deep-level-1">
636
+
637
+ <td class="name"><code>status</code></td>
638
+
549
639
 
550
-
551
- <h5>Example</h5>
552
-
553
-
554
- <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
555
- const api = new API();
556
- const params = {
557
- taskId: '5df7f19618430c89a41a19d2',
558
- actionGuid: 'b3823a2ae52c7a05bfb9590fe427038d'
559
- orgId: '5df7f19618430c89a41a1bc3',
560
- payload: {}',
561
- };
562
- const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
563
- await api.user.task.executeActionFinalize(params, session);</code></pre>
564
-
565
-
566
-
567
- </div>
568
-
569
- <div class="member">
570
-
571
-
572
-
573
- <h4 class="name" id="findById">
574
- <a class="href-link" href="#findById">#</a>
575
-
576
-
577
- <span class='tag'>async</span>
578
-
579
-
580
- <span class="code-name">
581
-
582
- findById<span class="signature">(params, session)</span><span class="type-signature"> &rarr; {promise}</span>
583
-
584
- </span>
585
- </h4>
586
-
587
-
588
-
589
-
590
- <div class="description">
591
- Method to find task by id
592
- </div>
593
-
594
-
640
+ <td class="type">
641
+
642
+
643
+ <code class="param-type">string</code>
595
644
 
596
645
 
646
+
647
+ </td>
597
648
 
649
+
650
+ <td class="attributes">
651
+
652
+ &lt;optional><br>
653
+
598
654
 
655
+
599
656
 
657
+
658
+ </td>
659
+
600
660
 
661
+
601
662
 
663
+ <td class="description last">Task status</td>
664
+ </tr>
602
665
 
603
- <h5>Parameters:</h5>
666
+
604
667
 
605
- <div class="table-container">
606
- <table class="params table">
607
- <thead>
608
- <tr>
609
-
610
- <th>Name</th>
611
-
612
-
613
- <th>Type</th>
614
-
615
-
616
-
617
-
618
-
619
- <th class="last">Description</th>
620
- </tr>
621
- </thead>
622
-
623
- <tbody>
624
-
625
-
626
-
627
- <tr class="deep-level-0">
668
+ <tr class="deep-level-1">
628
669
 
629
- <td class="name"><code>params</code></td>
670
+ <td class="name"><code>order</code></td>
630
671
 
631
672
 
632
673
  <td class="type">
633
674
 
634
675
 
635
- <code class="param-type">object</code>
676
+ <code class="param-type">number</code>
636
677
 
637
678
 
638
679
 
639
680
  </td>
640
681
 
641
682
 
683
+ <td class="attributes">
684
+
685
+ &lt;optional><br>
686
+
687
+
688
+
689
+
690
+
691
+ </td>
692
+
642
693
 
643
694
 
644
695
 
645
- <td class="description last">Params to get task</td>
696
+ <td class="description last">Task order</td>
646
697
  </tr>
647
698
 
648
699
 
649
-
650
700
 
651
701
  <tr class="deep-level-1">
652
702
 
653
- <td class="name"><code>processId</code></td>
703
+ <td class="name"><code>title</code></td>
654
704
 
655
705
 
656
706
  <td class="type">
657
707
 
658
708
 
659
- <code class="param-type">object</code>
709
+ <code class="param-type">string</code>
660
710
 
661
711
 
662
712
 
663
713
  </td>
664
714
 
665
715
 
716
+ <td class="attributes">
717
+
718
+ &lt;optional><br>
719
+
720
+
721
+
722
+
723
+
724
+ </td>
725
+
666
726
 
667
727
 
668
728
 
669
- <td class="description last">Proccess id (_id database)</td>
729
+ <td class="description last">Task title</td>
670
730
  </tr>
671
731
 
672
732
 
673
733
 
674
734
  <tr class="deep-level-1">
675
735
 
676
- <td class="name"><code>taskId</code></td>
736
+ <td class="name"><code>tags</code></td>
677
737
 
678
738
 
679
739
  <td class="type">
680
740
 
681
741
 
682
- <code class="param-type">object</code>
742
+ <code class="param-type">array</code>
683
743
 
684
744
 
685
745
 
686
746
  </td>
687
747
 
688
748
 
749
+ <td class="attributes">
750
+
751
+ &lt;optional><br>
752
+
753
+
754
+
755
+
756
+
757
+ </td>
758
+
689
759
 
690
760
 
691
761
 
692
- <td class="description last">Task id (_id database)</td>
762
+ <td class="description last">Task tags</td>
693
763
  </tr>
694
764
 
695
765
 
696
766
 
697
767
  <tr class="deep-level-1">
698
768
 
699
- <td class="name"><code>orgId</code></td>
769
+ <td class="name"><code>dueDate</code></td>
700
770
 
701
771
 
702
772
  <td class="type">
703
773
 
704
774
 
705
- <code class="param-type">object</code>
775
+ <code class="param-type">string</code>
706
776
 
707
777
 
708
778
 
709
779
  </td>
710
780
 
711
781
 
782
+ <td class="attributes">
783
+
784
+ &lt;optional><br>
785
+
786
+
787
+
788
+
789
+
790
+ </td>
791
+
712
792
 
713
793
 
714
794
 
715
- <td class="description last">Organization id (_id database)</td>
795
+ <td class="description last">Due date ISO string</td>
716
796
  </tr>
717
797
 
718
798
 
@@ -736,6 +816,14 @@ await api.user.task.executeActionFinalize(params, session);</code></pre>
736
816
  </td>
737
817
 
738
818
 
819
+ <td class="attributes">
820
+
821
+
822
+
823
+
824
+
825
+ </td>
826
+
739
827
 
740
828
 
741
829
 
@@ -794,7 +882,7 @@ await api.user.task.executeActionFinalize(params, session);</code></pre>
794
882
  <p class="tag-source">
795
883
  <a href="user_task.js.html" class="button">View Source</a>
796
884
  <span>
797
- <a href="user_task.js.html">user/task.js</a>, <a href="user_task.js.html#line76">line 76</a>
885
+ <a href="user_task.js.html">user/task.js</a>, <a href="user_task.js.html#line397">line 397</a>
798
886
  </span>
799
887
  </p>
800
888
 
@@ -829,7 +917,7 @@ await api.user.task.executeActionFinalize(params, session);</code></pre>
829
917
  <div class='column is-5 has-text-left'>
830
918
  <label>Type: </label>
831
919
 
832
- <code class="param-type">promise</code>
920
+ <code class="param-type">Promise</code>
833
921
 
834
922
 
835
923
  </div>
@@ -849,12 +937,24 @@ await api.user.task.executeActionFinalize(params, session);</code></pre>
849
937
  <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
850
938
  const api = new API();
851
939
  const params = {
852
- processId: '5dadd01dc4af3941d42f8c5c',
853
- taskId: '5df7f19618430c89a41a19d2',
854
- orgId: '55e4a3bd6be6b45210833fae',
940
+ processId: '5dadd01dc4af3941d42f8c5c',
941
+ taskId: '5df7f19618430c89a41a19d2',
942
+ flowName: 'simpleTask',
943
+ orgId: '55e4a3bd6be6b45210833fae',
944
+ formData: [{ name: 'Group', fields: [...] }],
945
+ selectedDocs: [],
946
+ selectedAssignees: [],
947
+ selectedBoxes: [],
948
+ advFormData: {},
949
+ advFormSchema: {},
950
+ status: '',
951
+ order: 0,
952
+ title: 'My Task',
953
+ tags: [],
954
+ dueDate: '2024-01-15T00:00:00Z'
855
955
  };
856
956
  const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
857
- await api.user.task.findById(params, session);</code></pre>
957
+ await api.user.task.endTask(params, session);</code></pre>
858
958
 
859
959
 
860
960
 
@@ -864,8 +964,8 @@ await api.user.task.findById(params, session);</code></pre>
864
964
 
865
965
 
866
966
 
867
- <h4 class="name" id="findByIdAndUpdate">
868
- <a class="href-link" href="#findByIdAndUpdate">#</a>
967
+ <h4 class="name" id="executeActionFinalize">
968
+ <a class="href-link" href="#executeActionFinalize">#</a>
869
969
 
870
970
 
871
971
  <span class='tag'>async</span>
@@ -873,7 +973,7 @@ await api.user.task.findById(params, session);</code></pre>
873
973
 
874
974
  <span class="code-name">
875
975
 
876
- findByIdAndUpdate<span class="signature">(params, session)</span><span class="type-signature"> &rarr; {Promise}</span>
976
+ executeActionFinalize<span class="signature">(params<span class="signature-attributes">non-null</span>, session)</span><span class="type-signature"> &rarr; {Promise}</span>
877
977
 
878
978
  </span>
879
979
  </h4>
@@ -907,10 +1007,10 @@ await api.user.task.findById(params, session);</code></pre>
907
1007
  <th>Type</th>
908
1008
 
909
1009
 
910
- <th>Attributes</th>
911
-
912
1010
 
913
1011
 
1012
+ <th>Default</th>
1013
+
914
1014
 
915
1015
  <th class="last">Description</th>
916
1016
  </tr>
@@ -935,18 +1035,14 @@ await api.user.task.findById(params, session);</code></pre>
935
1035
  </td>
936
1036
 
937
1037
 
938
- <td class="attributes">
939
-
940
-
941
-
942
1038
 
1039
+
1040
+ <td class="default">
943
1041
 
944
1042
  </td>
945
1043
 
946
1044
 
947
-
948
-
949
- <td class="description last">Params to update task</td>
1045
+ <td class="description last">Params - to update task</td>
950
1046
  </tr>
951
1047
 
952
1048
 
@@ -954,38 +1050,34 @@ await api.user.task.findById(params, session);</code></pre>
954
1050
 
955
1051
  <tr class="deep-level-1">
956
1052
 
957
- <td class="name"><code>userId</code></td>
1053
+ <td class="name"><code>taskId</code></td>
958
1054
 
959
1055
 
960
1056
  <td class="type">
961
1057
 
962
1058
 
963
- <code class="param-type">object</code>
1059
+ <code class="param-type">string</code>
964
1060
 
965
1061
 
966
1062
 
967
1063
  </td>
968
1064
 
969
1065
 
970
- <td class="attributes">
971
-
972
-
973
-
974
1066
 
1067
+
1068
+ <td class="default">
975
1069
 
976
1070
  </td>
977
1071
 
978
1072
 
979
-
980
-
981
- <td class="description last">User id (_id database)</td>
1073
+ <td class="description last">Task id (_id database)</td>
982
1074
  </tr>
983
1075
 
984
1076
 
985
1077
 
986
1078
  <tr class="deep-level-1">
987
1079
 
988
- <td class="name"><code>processId</code></td>
1080
+ <td class="name"><code>actionGuid</code></td>
989
1081
 
990
1082
 
991
1083
  <td class="type">
@@ -998,25 +1090,21 @@ await api.user.task.findById(params, session);</code></pre>
998
1090
  </td>
999
1091
 
1000
1092
 
1001
- <td class="attributes">
1002
-
1003
-
1004
-
1005
1093
 
1094
+
1095
+ <td class="default">
1006
1096
 
1007
1097
  </td>
1008
1098
 
1009
1099
 
1010
-
1011
-
1012
- <td class="description last">Proccess id (_id database)</td>
1100
+ <td class="description last">GUID of the action</td>
1013
1101
  </tr>
1014
1102
 
1015
1103
 
1016
1104
 
1017
1105
  <tr class="deep-level-1">
1018
1106
 
1019
- <td class="name"><code>taskId</code></td>
1107
+ <td class="name"><code>orgId</code></td>
1020
1108
 
1021
1109
 
1022
1110
  <td class="type">
@@ -1029,56 +1117,54 @@ await api.user.task.findById(params, session);</code></pre>
1029
1117
  </td>
1030
1118
 
1031
1119
 
1032
- <td class="attributes">
1033
-
1034
-
1035
-
1036
1120
 
1121
+
1122
+ <td class="default">
1037
1123
 
1038
1124
  </td>
1039
1125
 
1040
1126
 
1041
-
1042
-
1043
- <td class="description last">Task id (_id database)</td>
1127
+ <td class="description last">Organization id (_id database)</td>
1044
1128
  </tr>
1045
1129
 
1046
1130
 
1047
1131
 
1048
1132
  <tr class="deep-level-1">
1049
1133
 
1050
- <td class="name"><code>flowName</code></td>
1134
+ <td class="name"><code>payload</code></td>
1051
1135
 
1052
1136
 
1053
1137
  <td class="type">
1054
1138
 
1055
1139
 
1056
- <code class="param-type">string</code>
1140
+ <code class="param-type">any</code>
1057
1141
 
1058
1142
 
1059
1143
 
1060
1144
  </td>
1061
1145
 
1062
1146
 
1063
- <td class="attributes">
1064
-
1065
1147
 
1148
+
1149
+ <td class="default">
1066
1150
 
1067
-
1151
+ {}
1068
1152
 
1069
1153
  </td>
1070
1154
 
1071
1155
 
1072
-
1073
-
1074
- <td class="description last">Flow name</td>
1156
+ <td class="description last">Payload to send in action</td>
1075
1157
  </tr>
1076
1158
 
1077
1159
 
1078
-
1079
- <tr class="deep-level-1">
1160
+
1161
+
1162
+
1163
+
1164
+
1165
+ <tr class="deep-level-0">
1080
1166
 
1081
- <td class="name"><code>action</code></td>
1167
+ <td class="name"><code>session</code></td>
1082
1168
 
1083
1169
 
1084
1170
  <td class="type">
@@ -1091,148 +1177,14 @@ await api.user.task.findById(params, session);</code></pre>
1091
1177
  </td>
1092
1178
 
1093
1179
 
1094
- <td class="attributes">
1095
-
1096
-
1097
-
1098
1180
 
1181
+
1182
+ <td class="default">
1099
1183
 
1100
1184
  </td>
1101
1185
 
1102
1186
 
1103
-
1104
-
1105
- <td class="description last">Button action</td>
1106
- </tr>
1107
-
1108
-
1109
-
1110
- <tr class="deep-level-1">
1111
-
1112
- <td class="name"><code>formData</code></td>
1113
-
1114
-
1115
- <td class="type">
1116
-
1117
-
1118
- <code class="param-type">object</code>
1119
-
1120
-
1121
-
1122
- </td>
1123
-
1124
-
1125
- <td class="attributes">
1126
-
1127
-
1128
-
1129
-
1130
-
1131
- </td>
1132
-
1133
-
1134
-
1135
-
1136
- <td class="description last">Data to update task</td>
1137
- </tr>
1138
-
1139
-
1140
-
1141
- <tr class="deep-level-1">
1142
-
1143
- <td class="name"><code>actionGuid</code></td>
1144
-
1145
-
1146
- <td class="type">
1147
-
1148
-
1149
- <code class="param-type">string</code>
1150
-
1151
-
1152
-
1153
- </td>
1154
-
1155
-
1156
- <td class="attributes">
1157
-
1158
- &lt;optional><br>
1159
-
1160
-
1161
-
1162
-
1163
-
1164
- </td>
1165
-
1166
-
1167
-
1168
-
1169
- <td class="description last">GUID of the action</td>
1170
- </tr>
1171
-
1172
-
1173
-
1174
- <tr class="deep-level-1">
1175
-
1176
- <td class="name"><code>orgId</code></td>
1177
-
1178
-
1179
- <td class="type">
1180
-
1181
-
1182
- <code class="param-type">string</code>
1183
-
1184
-
1185
-
1186
- </td>
1187
-
1188
-
1189
- <td class="attributes">
1190
-
1191
-
1192
-
1193
-
1194
-
1195
- </td>
1196
-
1197
-
1198
-
1199
-
1200
- <td class="description last">Organization id (_id database)</td>
1201
- </tr>
1202
-
1203
-
1204
-
1205
-
1206
-
1207
-
1208
-
1209
- <tr class="deep-level-0">
1210
-
1211
- <td class="name"><code>session</code></td>
1212
-
1213
-
1214
- <td class="type">
1215
-
1216
-
1217
- <code class="param-type">string</code>
1218
-
1219
-
1220
-
1221
- </td>
1222
-
1223
-
1224
- <td class="attributes">
1225
-
1226
-
1227
-
1228
-
1229
-
1230
- </td>
1231
-
1232
-
1233
-
1234
-
1235
- <td class="description last">Session, token JWT</td>
1187
+ <td class="description last">Session, token JWT</td>
1236
1188
  </tr>
1237
1189
 
1238
1190
 
@@ -1287,7 +1239,7 @@ await api.user.task.findById(params, session);</code></pre>
1287
1239
  <p class="tag-source">
1288
1240
  <a href="user_task.js.html" class="button">View Source</a>
1289
1241
  <span>
1290
- <a href="user_task.js.html">user/task.js</a>, <a href="user_task.js.html#line126">line 126</a>
1242
+ <a href="user_task.js.html">user/task.js</a>, <a href="user_task.js.html#line183">line 183</a>
1291
1243
  </span>
1292
1244
  </p>
1293
1245
 
@@ -1342,14 +1294,13 @@ await api.user.task.findById(params, session);</code></pre>
1342
1294
  <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
1343
1295
  const api = new API();
1344
1296
  const params = {
1345
- userId: '5739d4c6ccb0ebc61f2a9557',
1346
- processId: '5dadd01dc4af3941d42f8c5c',
1347
1297
  taskId: '5df7f19618430c89a41a19d2',
1348
- action: 1,
1349
- formData: {name: 'CloudBrasil'},
1298
+ actionGuid: 'b3823a2ae52c7a05bfb9590fe427038d'
1299
+ orgId: '5df7f19618430c89a41a1bc3',
1300
+ payload: {}',
1350
1301
  };
1351
1302
  const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
1352
- await api.user.task.findByIdAndUpdate(params, session);</code></pre>
1303
+ await api.user.task.executeActionFinalize(params, session);</code></pre>
1353
1304
 
1354
1305
 
1355
1306
 
@@ -1359,8 +1310,8 @@ await api.user.task.findByIdAndUpdate(params, session);</code></pre>
1359
1310
 
1360
1311
 
1361
1312
 
1362
- <h4 class="name" id="getSummaryByTags">
1363
- <a class="href-link" href="#getSummaryByTags">#</a>
1313
+ <h4 class="name" id="findById">
1314
+ <a class="href-link" href="#findById">#</a>
1364
1315
 
1365
1316
 
1366
1317
  <span class='tag'>async</span>
@@ -1368,7 +1319,7 @@ await api.user.task.findByIdAndUpdate(params, session);</code></pre>
1368
1319
 
1369
1320
  <span class="code-name">
1370
1321
 
1371
- getSummaryByTags<span class="signature">(params, session)</span><span class="type-signature"> &rarr; {Promise.&lt;object>|Promise.&lt;object>|Promise.&lt;object>}</span>
1322
+ findById<span class="signature">(params, session)</span><span class="type-signature"> &rarr; {promise}</span>
1372
1323
 
1373
1324
  </span>
1374
1325
  </h4>
@@ -1377,7 +1328,7 @@ await api.user.task.findByIdAndUpdate(params, session);</code></pre>
1377
1328
 
1378
1329
 
1379
1330
  <div class="description">
1380
- Get the tasks and available tasks summary (totals) for specific tags
1331
+ Method to find task by id
1381
1332
  </div>
1382
1333
 
1383
1334
 
@@ -1431,7 +1382,7 @@ await api.user.task.findByIdAndUpdate(params, session);</code></pre>
1431
1382
 
1432
1383
 
1433
1384
 
1434
- <td class="description last">Params - to update task</td>
1385
+ <td class="description last">Params to get task</td>
1435
1386
  </tr>
1436
1387
 
1437
1388
 
@@ -1439,13 +1390,13 @@ await api.user.task.findByIdAndUpdate(params, session);</code></pre>
1439
1390
 
1440
1391
  <tr class="deep-level-1">
1441
1392
 
1442
- <td class="name"><code>tags</code></td>
1393
+ <td class="name"><code>processId</code></td>
1443
1394
 
1444
1395
 
1445
1396
  <td class="type">
1446
1397
 
1447
1398
 
1448
- <code class="param-type">array.&lt;string></code>
1399
+ <code class="param-type">object</code>
1449
1400
 
1450
1401
 
1451
1402
 
@@ -1455,7 +1406,53 @@ await api.user.task.findByIdAndUpdate(params, session);</code></pre>
1455
1406
 
1456
1407
 
1457
1408
 
1458
- <td class="description last">The tags to get task summaries</td>
1409
+ <td class="description last">Proccess id (_id database)</td>
1410
+ </tr>
1411
+
1412
+
1413
+
1414
+ <tr class="deep-level-1">
1415
+
1416
+ <td class="name"><code>taskId</code></td>
1417
+
1418
+
1419
+ <td class="type">
1420
+
1421
+
1422
+ <code class="param-type">object</code>
1423
+
1424
+
1425
+
1426
+ </td>
1427
+
1428
+
1429
+
1430
+
1431
+
1432
+ <td class="description last">Task id (_id database)</td>
1433
+ </tr>
1434
+
1435
+
1436
+
1437
+ <tr class="deep-level-1">
1438
+
1439
+ <td class="name"><code>orgId</code></td>
1440
+
1441
+
1442
+ <td class="type">
1443
+
1444
+
1445
+ <code class="param-type">object</code>
1446
+
1447
+
1448
+
1449
+ </td>
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+ <td class="description last">Organization id (_id database)</td>
1459
1456
  </tr>
1460
1457
 
1461
1458
 
@@ -1537,7 +1534,7 @@ await api.user.task.findByIdAndUpdate(params, session);</code></pre>
1537
1534
  <p class="tag-source">
1538
1535
  <a href="user_task.js.html" class="button">View Source</a>
1539
1536
  <span>
1540
- <a href="user_task.js.html">user/task.js</a>, <a href="user_task.js.html#line224">line 224</a>
1537
+ <a href="user_task.js.html">user/task.js</a>, <a href="user_task.js.html#line76">line 76</a>
1541
1538
  </span>
1542
1539
  </p>
1543
1540
 
@@ -1568,13 +1565,11 @@ await api.user.task.findByIdAndUpdate(params, session);</code></pre>
1568
1565
 
1569
1566
  <div class="columns">
1570
1567
 
1571
- <div class='param-desc column is-7'>data</div>
1572
-
1573
1568
 
1574
1569
  <div class='column is-5 has-text-left'>
1575
1570
  <label>Type: </label>
1576
1571
 
1577
- <code class="param-type">Promise.&lt;object></code>
1572
+ <code class="param-type">promise</code>
1578
1573
 
1579
1574
 
1580
1575
  </div>
@@ -1582,58 +1577,1543 @@ await api.user.task.findByIdAndUpdate(params, session);</code></pre>
1582
1577
  </div>
1583
1578
 
1584
1579
 
1585
-
1580
+ </div>
1581
+ </div>
1586
1582
 
1587
- <div class="columns">
1583
+
1584
+
1585
+
1586
+ <h5>Example</h5>
1588
1587
 
1589
- <div class='param-desc column is-7'>data.tasks - the total tasks</div>
1590
1588
 
1589
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
1590
+ const api = new API();
1591
+ const params = {
1592
+ processId: '5dadd01dc4af3941d42f8c5c',
1593
+ taskId: '5df7f19618430c89a41a19d2',
1594
+ orgId: '55e4a3bd6be6b45210833fae',
1595
+ };
1596
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
1597
+ await api.user.task.findById(params, session);</code></pre>
1591
1598
 
1592
- <div class='column is-5 has-text-left'>
1593
- <label>Type: </label>
1594
-
1595
- <code class="param-type">Promise.&lt;object></code>
1596
1599
 
1597
1600
 
1598
- </div>
1599
-
1600
1601
  </div>
1602
+
1603
+ <div class="member">
1601
1604
 
1602
-
1603
-
1604
1605
 
1605
- <div class="columns">
1606
-
1607
- <div class='param-desc column is-7'>data.availableTasks - the total available tasks</div>
1608
-
1609
1606
 
1610
- <div class='column is-5 has-text-left'>
1611
- <label>Type: </label>
1607
+ <h4 class="name" id="findByIdAndUpdate">
1608
+ <a class="href-link" href="#findByIdAndUpdate">#</a>
1612
1609
 
1613
- <code class="param-type">Promise.&lt;object></code>
1614
-
1610
+
1611
+ <span class='tag'>async</span>
1612
+
1613
+
1614
+ <span class="code-name">
1615
+
1616
+ findByIdAndUpdate<span class="signature">(params, session)</span><span class="type-signature"> &rarr; {Promise}</span>
1617
+
1618
+ </span>
1619
+ </h4>
1620
+
1615
1621
 
1622
+
1623
+
1624
+ <div class="description">
1625
+ Find task by id and update
1616
1626
  </div>
1617
1627
 
1618
- </div>
1619
1628
 
1620
-
1621
- </div>
1622
- </div>
1623
1629
 
1624
1630
 
1625
1631
 
1626
1632
 
1627
- <h5>Example</h5>
1628
-
1629
-
1633
+
1634
+
1635
+
1636
+
1637
+ <h5>Parameters:</h5>
1638
+
1639
+ <div class="table-container">
1640
+ <table class="params table">
1641
+ <thead>
1642
+ <tr>
1643
+
1644
+ <th>Name</th>
1645
+
1646
+
1647
+ <th>Type</th>
1648
+
1649
+
1650
+ <th>Attributes</th>
1651
+
1652
+
1653
+
1654
+
1655
+ <th class="last">Description</th>
1656
+ </tr>
1657
+ </thead>
1658
+
1659
+ <tbody>
1660
+
1661
+
1662
+
1663
+ <tr class="deep-level-0">
1664
+
1665
+ <td class="name"><code>params</code></td>
1666
+
1667
+
1668
+ <td class="type">
1669
+
1670
+
1671
+ <code class="param-type">object</code>
1672
+
1673
+
1674
+
1675
+ </td>
1676
+
1677
+
1678
+ <td class="attributes">
1679
+
1680
+
1681
+
1682
+
1683
+
1684
+ </td>
1685
+
1686
+
1687
+
1688
+
1689
+ <td class="description last">Params to update task</td>
1690
+ </tr>
1691
+
1692
+
1693
+
1694
+
1695
+ <tr class="deep-level-1">
1696
+
1697
+ <td class="name"><code>userId</code></td>
1698
+
1699
+
1700
+ <td class="type">
1701
+
1702
+
1703
+ <code class="param-type">object</code>
1704
+
1705
+
1706
+
1707
+ </td>
1708
+
1709
+
1710
+ <td class="attributes">
1711
+
1712
+
1713
+
1714
+
1715
+
1716
+ </td>
1717
+
1718
+
1719
+
1720
+
1721
+ <td class="description last">User id (_id database)</td>
1722
+ </tr>
1723
+
1724
+
1725
+
1726
+ <tr class="deep-level-1">
1727
+
1728
+ <td class="name"><code>processId</code></td>
1729
+
1730
+
1731
+ <td class="type">
1732
+
1733
+
1734
+ <code class="param-type">string</code>
1735
+
1736
+
1737
+
1738
+ </td>
1739
+
1740
+
1741
+ <td class="attributes">
1742
+
1743
+
1744
+
1745
+
1746
+
1747
+ </td>
1748
+
1749
+
1750
+
1751
+
1752
+ <td class="description last">Proccess id (_id database)</td>
1753
+ </tr>
1754
+
1755
+
1756
+
1757
+ <tr class="deep-level-1">
1758
+
1759
+ <td class="name"><code>taskId</code></td>
1760
+
1761
+
1762
+ <td class="type">
1763
+
1764
+
1765
+ <code class="param-type">string</code>
1766
+
1767
+
1768
+
1769
+ </td>
1770
+
1771
+
1772
+ <td class="attributes">
1773
+
1774
+
1775
+
1776
+
1777
+
1778
+ </td>
1779
+
1780
+
1781
+
1782
+
1783
+ <td class="description last">Task id (_id database)</td>
1784
+ </tr>
1785
+
1786
+
1787
+
1788
+ <tr class="deep-level-1">
1789
+
1790
+ <td class="name"><code>flowName</code></td>
1791
+
1792
+
1793
+ <td class="type">
1794
+
1795
+
1796
+ <code class="param-type">string</code>
1797
+
1798
+
1799
+
1800
+ </td>
1801
+
1802
+
1803
+ <td class="attributes">
1804
+
1805
+
1806
+
1807
+
1808
+
1809
+ </td>
1810
+
1811
+
1812
+
1813
+
1814
+ <td class="description last">Flow name</td>
1815
+ </tr>
1816
+
1817
+
1818
+
1819
+ <tr class="deep-level-1">
1820
+
1821
+ <td class="name"><code>action</code></td>
1822
+
1823
+
1824
+ <td class="type">
1825
+
1826
+
1827
+ <code class="param-type">string</code>
1828
+
1829
+
1830
+
1831
+ </td>
1832
+
1833
+
1834
+ <td class="attributes">
1835
+
1836
+
1837
+
1838
+
1839
+
1840
+ </td>
1841
+
1842
+
1843
+
1844
+
1845
+ <td class="description last">Button action</td>
1846
+ </tr>
1847
+
1848
+
1849
+
1850
+ <tr class="deep-level-1">
1851
+
1852
+ <td class="name"><code>formData</code></td>
1853
+
1854
+
1855
+ <td class="type">
1856
+
1857
+
1858
+ <code class="param-type">object</code>
1859
+
1860
+
1861
+
1862
+ </td>
1863
+
1864
+
1865
+ <td class="attributes">
1866
+
1867
+
1868
+
1869
+
1870
+
1871
+ </td>
1872
+
1873
+
1874
+
1875
+
1876
+ <td class="description last">Data to update task</td>
1877
+ </tr>
1878
+
1879
+
1880
+
1881
+ <tr class="deep-level-1">
1882
+
1883
+ <td class="name"><code>actionGuid</code></td>
1884
+
1885
+
1886
+ <td class="type">
1887
+
1888
+
1889
+ <code class="param-type">string</code>
1890
+
1891
+
1892
+
1893
+ </td>
1894
+
1895
+
1896
+ <td class="attributes">
1897
+
1898
+ &lt;optional><br>
1899
+
1900
+
1901
+
1902
+
1903
+
1904
+ </td>
1905
+
1906
+
1907
+
1908
+
1909
+ <td class="description last">GUID of the action</td>
1910
+ </tr>
1911
+
1912
+
1913
+
1914
+ <tr class="deep-level-1">
1915
+
1916
+ <td class="name"><code>orgId</code></td>
1917
+
1918
+
1919
+ <td class="type">
1920
+
1921
+
1922
+ <code class="param-type">string</code>
1923
+
1924
+
1925
+
1926
+ </td>
1927
+
1928
+
1929
+ <td class="attributes">
1930
+
1931
+
1932
+
1933
+
1934
+
1935
+ </td>
1936
+
1937
+
1938
+
1939
+
1940
+ <td class="description last">Organization id (_id database)</td>
1941
+ </tr>
1942
+
1943
+
1944
+
1945
+
1946
+
1947
+
1948
+
1949
+ <tr class="deep-level-0">
1950
+
1951
+ <td class="name"><code>session</code></td>
1952
+
1953
+
1954
+ <td class="type">
1955
+
1956
+
1957
+ <code class="param-type">string</code>
1958
+
1959
+
1960
+
1961
+ </td>
1962
+
1963
+
1964
+ <td class="attributes">
1965
+
1966
+
1967
+
1968
+
1969
+
1970
+ </td>
1971
+
1972
+
1973
+
1974
+
1975
+ <td class="description last">Session, token JWT</td>
1976
+ </tr>
1977
+
1978
+
1979
+
1980
+ </tbody>
1981
+ </table>
1982
+ </div>
1983
+
1984
+
1985
+
1986
+
1987
+
1988
+ <dl class="details">
1989
+
1990
+
1991
+
1992
+
1993
+
1994
+
1995
+
1996
+
1997
+
1998
+
1999
+
2000
+
2001
+
2002
+
2003
+
2004
+
2005
+
2006
+
2007
+ <dt class="tag-author">Author:</dt>
2008
+ <dd class="tag-author">
2009
+ <ul>
2010
+ <li><a href="mailto:augusto.pissarra@myndware.com">Myndware</a></li>
2011
+ </ul>
2012
+ </dd>
2013
+
2014
+
2015
+
2016
+
2017
+
2018
+
2019
+
2020
+
2021
+
2022
+
2023
+
2024
+
2025
+
2026
+
2027
+ <p class="tag-source">
2028
+ <a href="user_task.js.html" class="button">View Source</a>
2029
+ <span>
2030
+ <a href="user_task.js.html">user/task.js</a>, <a href="user_task.js.html#line126">line 126</a>
2031
+ </span>
2032
+ </p>
2033
+
2034
+ </dl>
2035
+
2036
+
2037
+
2038
+
2039
+
2040
+
2041
+
2042
+
2043
+
2044
+
2045
+
2046
+
2047
+
2048
+
2049
+
2050
+
2051
+
2052
+
2053
+ <div class='columns method-parameter'>
2054
+ <div class="column is-2"><label>Returns:</label></div>
2055
+ <div class="column is-10">
2056
+
2057
+
2058
+
2059
+ <div class="columns">
2060
+
2061
+
2062
+ <div class='column is-5 has-text-left'>
2063
+ <label>Type: </label>
2064
+
2065
+ <code class="param-type">Promise</code>
2066
+
2067
+
2068
+ </div>
2069
+
2070
+ </div>
2071
+
2072
+
2073
+ </div>
2074
+ </div>
2075
+
2076
+
2077
+
2078
+
2079
+ <h5>Example</h5>
2080
+
2081
+
2082
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
2083
+ const api = new API();
2084
+ const params = {
2085
+ userId: '5739d4c6ccb0ebc61f2a9557',
2086
+ processId: '5dadd01dc4af3941d42f8c5c',
2087
+ taskId: '5df7f19618430c89a41a19d2',
2088
+ action: 1,
2089
+ formData: {name: 'CloudBrasil'},
2090
+ };
2091
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
2092
+ await api.user.task.findByIdAndUpdate(params, session);</code></pre>
2093
+
2094
+
2095
+
2096
+ </div>
2097
+
2098
+ <div class="member">
2099
+
2100
+
2101
+
2102
+ <h4 class="name" id="getSummaryByTags">
2103
+ <a class="href-link" href="#getSummaryByTags">#</a>
2104
+
2105
+
2106
+ <span class='tag'>async</span>
2107
+
2108
+
2109
+ <span class="code-name">
2110
+
2111
+ getSummaryByTags<span class="signature">(params, session)</span><span class="type-signature"> &rarr; {Promise.&lt;object>|Promise.&lt;object>|Promise.&lt;object>}</span>
2112
+
2113
+ </span>
2114
+ </h4>
2115
+
2116
+
2117
+
2118
+
2119
+ <div class="description">
2120
+ Get the tasks and available tasks summary (totals) for specific tags
2121
+ </div>
2122
+
2123
+
2124
+
2125
+
2126
+
2127
+
2128
+
2129
+
2130
+
2131
+
2132
+ <h5>Parameters:</h5>
2133
+
2134
+ <div class="table-container">
2135
+ <table class="params table">
2136
+ <thead>
2137
+ <tr>
2138
+
2139
+ <th>Name</th>
2140
+
2141
+
2142
+ <th>Type</th>
2143
+
2144
+
2145
+
2146
+
2147
+
2148
+ <th class="last">Description</th>
2149
+ </tr>
2150
+ </thead>
2151
+
2152
+ <tbody>
2153
+
2154
+
2155
+
2156
+ <tr class="deep-level-0">
2157
+
2158
+ <td class="name"><code>params</code></td>
2159
+
2160
+
2161
+ <td class="type">
2162
+
2163
+
2164
+ <code class="param-type">object</code>
2165
+
2166
+
2167
+
2168
+ </td>
2169
+
2170
+
2171
+
2172
+
2173
+
2174
+ <td class="description last">Params - to update task</td>
2175
+ </tr>
2176
+
2177
+
2178
+
2179
+
2180
+ <tr class="deep-level-1">
2181
+
2182
+ <td class="name"><code>tags</code></td>
2183
+
2184
+
2185
+ <td class="type">
2186
+
2187
+
2188
+ <code class="param-type">array.&lt;string></code>
2189
+
2190
+
2191
+
2192
+ </td>
2193
+
2194
+
2195
+
2196
+
2197
+
2198
+ <td class="description last">The tags to get task summaries</td>
2199
+ </tr>
2200
+
2201
+
2202
+
2203
+
2204
+
2205
+
2206
+
2207
+ <tr class="deep-level-0">
2208
+
2209
+ <td class="name"><code>session</code></td>
2210
+
2211
+
2212
+ <td class="type">
2213
+
2214
+
2215
+ <code class="param-type">string</code>
2216
+
2217
+
2218
+
2219
+ </td>
2220
+
2221
+
2222
+
2223
+
2224
+
2225
+ <td class="description last">Session, token JWT</td>
2226
+ </tr>
2227
+
2228
+
2229
+
2230
+ </tbody>
2231
+ </table>
2232
+ </div>
2233
+
2234
+
2235
+
2236
+
2237
+
2238
+ <dl class="details">
2239
+
2240
+
2241
+
2242
+
2243
+
2244
+
2245
+
2246
+
2247
+
2248
+
2249
+
2250
+
2251
+
2252
+
2253
+
2254
+
2255
+
2256
+
2257
+ <dt class="tag-author">Author:</dt>
2258
+ <dd class="tag-author">
2259
+ <ul>
2260
+ <li><a href="mailto:augusto.pissarra@myndware.com">Myndware</a></li>
2261
+ </ul>
2262
+ </dd>
2263
+
2264
+
2265
+
2266
+
2267
+
2268
+
2269
+
2270
+
2271
+
2272
+
2273
+
2274
+
2275
+
2276
+
2277
+ <p class="tag-source">
2278
+ <a href="user_task.js.html" class="button">View Source</a>
2279
+ <span>
2280
+ <a href="user_task.js.html">user/task.js</a>, <a href="user_task.js.html#line224">line 224</a>
2281
+ </span>
2282
+ </p>
2283
+
2284
+ </dl>
2285
+
2286
+
2287
+
2288
+
2289
+
2290
+
2291
+
2292
+
2293
+
2294
+
2295
+
2296
+
2297
+
2298
+
2299
+
2300
+
2301
+
2302
+
2303
+ <div class='columns method-parameter'>
2304
+ <div class="column is-2"><label>Returns:</label></div>
2305
+ <div class="column is-10">
2306
+
2307
+
2308
+
2309
+ <div class="columns">
2310
+
2311
+ <div class='param-desc column is-7'>data</div>
2312
+
2313
+
2314
+ <div class='column is-5 has-text-left'>
2315
+ <label>Type: </label>
2316
+
2317
+ <code class="param-type">Promise.&lt;object></code>
2318
+
2319
+
2320
+ </div>
2321
+
2322
+ </div>
2323
+
2324
+
2325
+
2326
+
2327
+ <div class="columns">
2328
+
2329
+ <div class='param-desc column is-7'>data.tasks - the total tasks</div>
2330
+
2331
+
2332
+ <div class='column is-5 has-text-left'>
2333
+ <label>Type: </label>
2334
+
2335
+ <code class="param-type">Promise.&lt;object></code>
2336
+
2337
+
2338
+ </div>
2339
+
2340
+ </div>
2341
+
2342
+
2343
+
2344
+
2345
+ <div class="columns">
2346
+
2347
+ <div class='param-desc column is-7'>data.availableTasks - the total available tasks</div>
2348
+
2349
+
2350
+ <div class='column is-5 has-text-left'>
2351
+ <label>Type: </label>
2352
+
2353
+ <code class="param-type">Promise.&lt;object></code>
2354
+
2355
+
2356
+ </div>
2357
+
2358
+ </div>
2359
+
2360
+
2361
+ </div>
2362
+ </div>
2363
+
2364
+
2365
+
2366
+
2367
+ <h5>Example</h5>
2368
+
2369
+
2370
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
2371
+ const api = new API();
2372
+ const params = {
2373
+ tags: ['INCIDENTS']
2374
+ };
2375
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
2376
+ await api.user.task.getSummaryByTags(params, session);</code></pre>
2377
+
2378
+
2379
+
2380
+ </div>
2381
+
2382
+ <div class="member">
2383
+
2384
+
2385
+
2386
+ <h4 class="name" id="saveTask">
2387
+ <a class="href-link" href="#saveTask">#</a>
2388
+
2389
+
2390
+ <span class='tag'>async</span>
2391
+
2392
+
2393
+ <span class="code-name">
2394
+
2395
+ saveTask<span class="signature">(params, session)</span><span class="type-signature"> &rarr; {Promise}</span>
2396
+
2397
+ </span>
2398
+ </h4>
2399
+
2400
+
2401
+
2402
+
2403
+ <div class="description">
2404
+ Save task progress without completing it
2405
+ </div>
2406
+
2407
+
2408
+
2409
+
2410
+
2411
+
2412
+
2413
+
2414
+
2415
+
2416
+ <h5>Parameters:</h5>
2417
+
2418
+ <div class="table-container">
2419
+ <table class="params table">
2420
+ <thead>
2421
+ <tr>
2422
+
2423
+ <th>Name</th>
2424
+
2425
+
2426
+ <th>Type</th>
2427
+
2428
+
2429
+ <th>Attributes</th>
2430
+
2431
+
2432
+
2433
+
2434
+ <th class="last">Description</th>
2435
+ </tr>
2436
+ </thead>
2437
+
2438
+ <tbody>
2439
+
2440
+
2441
+
2442
+ <tr class="deep-level-0">
2443
+
2444
+ <td class="name"><code>params</code></td>
2445
+
2446
+
2447
+ <td class="type">
2448
+
2449
+
2450
+ <code class="param-type">object</code>
2451
+
2452
+
2453
+
2454
+ </td>
2455
+
2456
+
2457
+ <td class="attributes">
2458
+
2459
+
2460
+
2461
+
2462
+
2463
+ </td>
2464
+
2465
+
2466
+
2467
+
2468
+ <td class="description last">Params to save task</td>
2469
+ </tr>
2470
+
2471
+
2472
+
2473
+
2474
+ <tr class="deep-level-1">
2475
+
2476
+ <td class="name"><code>processId</code></td>
2477
+
2478
+
2479
+ <td class="type">
2480
+
2481
+
2482
+ <code class="param-type">string</code>
2483
+
2484
+
2485
+
2486
+ </td>
2487
+
2488
+
2489
+ <td class="attributes">
2490
+
2491
+
2492
+
2493
+
2494
+
2495
+ </td>
2496
+
2497
+
2498
+
2499
+
2500
+ <td class="description last">Process id (_id database)</td>
2501
+ </tr>
2502
+
2503
+
2504
+
2505
+ <tr class="deep-level-1">
2506
+
2507
+ <td class="name"><code>taskId</code></td>
2508
+
2509
+
2510
+ <td class="type">
2511
+
2512
+
2513
+ <code class="param-type">string</code>
2514
+
2515
+
2516
+
2517
+ </td>
2518
+
2519
+
2520
+ <td class="attributes">
2521
+
2522
+
2523
+
2524
+
2525
+
2526
+ </td>
2527
+
2528
+
2529
+
2530
+
2531
+ <td class="description last">Task id (_id database)</td>
2532
+ </tr>
2533
+
2534
+
2535
+
2536
+ <tr class="deep-level-1">
2537
+
2538
+ <td class="name"><code>flowName</code></td>
2539
+
2540
+
2541
+ <td class="type">
2542
+
2543
+
2544
+ <code class="param-type">string</code>
2545
+
2546
+
2547
+
2548
+ </td>
2549
+
2550
+
2551
+ <td class="attributes">
2552
+
2553
+
2554
+
2555
+
2556
+
2557
+ </td>
2558
+
2559
+
2560
+
2561
+
2562
+ <td class="description last">Flow name</td>
2563
+ </tr>
2564
+
2565
+
2566
+
2567
+ <tr class="deep-level-1">
2568
+
2569
+ <td class="name"><code>orgId</code></td>
2570
+
2571
+
2572
+ <td class="type">
2573
+
2574
+
2575
+ <code class="param-type">string</code>
2576
+
2577
+
2578
+
2579
+ </td>
2580
+
2581
+
2582
+ <td class="attributes">
2583
+
2584
+
2585
+
2586
+
2587
+
2588
+ </td>
2589
+
2590
+
2591
+
2592
+
2593
+ <td class="description last">Organization id (_id database)</td>
2594
+ </tr>
2595
+
2596
+
2597
+
2598
+ <tr class="deep-level-1">
2599
+
2600
+ <td class="name"><code>formData</code></td>
2601
+
2602
+
2603
+ <td class="type">
2604
+
2605
+
2606
+ <code class="param-type">array</code>
2607
+
2608
+
2609
+
2610
+ </td>
2611
+
2612
+
2613
+ <td class="attributes">
2614
+
2615
+
2616
+
2617
+
2618
+
2619
+ </td>
2620
+
2621
+
2622
+
2623
+
2624
+ <td class="description last">Form data to save</td>
2625
+ </tr>
2626
+
2627
+
2628
+
2629
+ <tr class="deep-level-1">
2630
+
2631
+ <td class="name"><code>selectedDocs</code></td>
2632
+
2633
+
2634
+ <td class="type">
2635
+
2636
+
2637
+ <code class="param-type">array</code>
2638
+
2639
+
2640
+
2641
+ </td>
2642
+
2643
+
2644
+ <td class="attributes">
2645
+
2646
+ &lt;optional><br>
2647
+
2648
+
2649
+
2650
+
2651
+
2652
+ </td>
2653
+
2654
+
2655
+
2656
+
2657
+ <td class="description last">Selected documents</td>
2658
+ </tr>
2659
+
2660
+
2661
+
2662
+ <tr class="deep-level-1">
2663
+
2664
+ <td class="name"><code>selectedAssignees</code></td>
2665
+
2666
+
2667
+ <td class="type">
2668
+
2669
+
2670
+ <code class="param-type">array</code>
2671
+
2672
+
2673
+
2674
+ </td>
2675
+
2676
+
2677
+ <td class="attributes">
2678
+
2679
+ &lt;optional><br>
2680
+
2681
+
2682
+
2683
+
2684
+
2685
+ </td>
2686
+
2687
+
2688
+
2689
+
2690
+ <td class="description last">Selected assignees</td>
2691
+ </tr>
2692
+
2693
+
2694
+
2695
+ <tr class="deep-level-1">
2696
+
2697
+ <td class="name"><code>selectedBoxes</code></td>
2698
+
2699
+
2700
+ <td class="type">
2701
+
2702
+
2703
+ <code class="param-type">array</code>
2704
+
2705
+
2706
+
2707
+ </td>
2708
+
2709
+
2710
+ <td class="attributes">
2711
+
2712
+ &lt;optional><br>
2713
+
2714
+
2715
+
2716
+
2717
+
2718
+ </td>
2719
+
2720
+
2721
+
2722
+
2723
+ <td class="description last">Selected boxes</td>
2724
+ </tr>
2725
+
2726
+
2727
+
2728
+ <tr class="deep-level-1">
2729
+
2730
+ <td class="name"><code>advFormData</code></td>
2731
+
2732
+
2733
+ <td class="type">
2734
+
2735
+
2736
+ <code class="param-type">object</code>
2737
+
2738
+
2739
+
2740
+ </td>
2741
+
2742
+
2743
+ <td class="attributes">
2744
+
2745
+ &lt;optional><br>
2746
+
2747
+
2748
+
2749
+
2750
+
2751
+ </td>
2752
+
2753
+
2754
+
2755
+
2756
+ <td class="description last">Advanced form data</td>
2757
+ </tr>
2758
+
2759
+
2760
+
2761
+ <tr class="deep-level-1">
2762
+
2763
+ <td class="name"><code>advFormSchema</code></td>
2764
+
2765
+
2766
+ <td class="type">
2767
+
2768
+
2769
+ <code class="param-type">object</code>
2770
+
2771
+
2772
+
2773
+ </td>
2774
+
2775
+
2776
+ <td class="attributes">
2777
+
2778
+ &lt;optional><br>
2779
+
2780
+
2781
+
2782
+
2783
+
2784
+ </td>
2785
+
2786
+
2787
+
2788
+
2789
+ <td class="description last">Advanced form schema</td>
2790
+ </tr>
2791
+
2792
+
2793
+
2794
+ <tr class="deep-level-1">
2795
+
2796
+ <td class="name"><code>status</code></td>
2797
+
2798
+
2799
+ <td class="type">
2800
+
2801
+
2802
+ <code class="param-type">string</code>
2803
+
2804
+
2805
+
2806
+ </td>
2807
+
2808
+
2809
+ <td class="attributes">
2810
+
2811
+ &lt;optional><br>
2812
+
2813
+
2814
+
2815
+
2816
+
2817
+ </td>
2818
+
2819
+
2820
+
2821
+
2822
+ <td class="description last">Task status (empty string for save)</td>
2823
+ </tr>
2824
+
2825
+
2826
+
2827
+ <tr class="deep-level-1">
2828
+
2829
+ <td class="name"><code>order</code></td>
2830
+
2831
+
2832
+ <td class="type">
2833
+
2834
+
2835
+ <code class="param-type">number</code>
2836
+
2837
+
2838
+
2839
+ </td>
2840
+
2841
+
2842
+ <td class="attributes">
2843
+
2844
+ &lt;optional><br>
2845
+
2846
+
2847
+
2848
+
2849
+
2850
+ </td>
2851
+
2852
+
2853
+
2854
+
2855
+ <td class="description last">Task order</td>
2856
+ </tr>
2857
+
2858
+
2859
+
2860
+ <tr class="deep-level-1">
2861
+
2862
+ <td class="name"><code>title</code></td>
2863
+
2864
+
2865
+ <td class="type">
2866
+
2867
+
2868
+ <code class="param-type">string</code>
2869
+
2870
+
2871
+
2872
+ </td>
2873
+
2874
+
2875
+ <td class="attributes">
2876
+
2877
+ &lt;optional><br>
2878
+
2879
+
2880
+
2881
+
2882
+
2883
+ </td>
2884
+
2885
+
2886
+
2887
+
2888
+ <td class="description last">Task title</td>
2889
+ </tr>
2890
+
2891
+
2892
+
2893
+ <tr class="deep-level-1">
2894
+
2895
+ <td class="name"><code>tags</code></td>
2896
+
2897
+
2898
+ <td class="type">
2899
+
2900
+
2901
+ <code class="param-type">array</code>
2902
+
2903
+
2904
+
2905
+ </td>
2906
+
2907
+
2908
+ <td class="attributes">
2909
+
2910
+ &lt;optional><br>
2911
+
2912
+
2913
+
2914
+
2915
+
2916
+ </td>
2917
+
2918
+
2919
+
2920
+
2921
+ <td class="description last">Task tags</td>
2922
+ </tr>
2923
+
2924
+
2925
+
2926
+ <tr class="deep-level-1">
2927
+
2928
+ <td class="name"><code>dueDate</code></td>
2929
+
2930
+
2931
+ <td class="type">
2932
+
2933
+
2934
+ <code class="param-type">string</code>
2935
+
2936
+
2937
+
2938
+ </td>
2939
+
2940
+
2941
+ <td class="attributes">
2942
+
2943
+ &lt;optional><br>
2944
+
2945
+
2946
+
2947
+
2948
+
2949
+ </td>
2950
+
2951
+
2952
+
2953
+
2954
+ <td class="description last">Due date ISO string</td>
2955
+ </tr>
2956
+
2957
+
2958
+
2959
+
2960
+
2961
+
2962
+
2963
+ <tr class="deep-level-0">
2964
+
2965
+ <td class="name"><code>session</code></td>
2966
+
2967
+
2968
+ <td class="type">
2969
+
2970
+
2971
+ <code class="param-type">string</code>
2972
+
2973
+
2974
+
2975
+ </td>
2976
+
2977
+
2978
+ <td class="attributes">
2979
+
2980
+
2981
+
2982
+
2983
+
2984
+ </td>
2985
+
2986
+
2987
+
2988
+
2989
+ <td class="description last">Session, token JWT</td>
2990
+ </tr>
2991
+
2992
+
2993
+
2994
+ </tbody>
2995
+ </table>
2996
+ </div>
2997
+
2998
+
2999
+
3000
+
3001
+
3002
+ <dl class="details">
3003
+
3004
+
3005
+
3006
+
3007
+
3008
+
3009
+
3010
+
3011
+
3012
+
3013
+
3014
+
3015
+
3016
+
3017
+
3018
+
3019
+
3020
+
3021
+ <dt class="tag-author">Author:</dt>
3022
+ <dd class="tag-author">
3023
+ <ul>
3024
+ <li><a href="mailto:augusto.pissarra@myndware.com">Myndware</a></li>
3025
+ </ul>
3026
+ </dd>
3027
+
3028
+
3029
+
3030
+
3031
+
3032
+
3033
+
3034
+
3035
+
3036
+
3037
+
3038
+
3039
+
3040
+
3041
+ <p class="tag-source">
3042
+ <a href="user_task.js.html" class="button">View Source</a>
3043
+ <span>
3044
+ <a href="user_task.js.html">user/task.js</a>, <a href="user_task.js.html#line287">line 287</a>
3045
+ </span>
3046
+ </p>
3047
+
3048
+ </dl>
3049
+
3050
+
3051
+
3052
+
3053
+
3054
+
3055
+
3056
+
3057
+
3058
+
3059
+
3060
+
3061
+
3062
+
3063
+
3064
+
3065
+
3066
+
3067
+ <div class='columns method-parameter'>
3068
+ <div class="column is-2"><label>Returns:</label></div>
3069
+ <div class="column is-10">
3070
+
3071
+
3072
+
3073
+ <div class="columns">
3074
+
3075
+
3076
+ <div class='column is-5 has-text-left'>
3077
+ <label>Type: </label>
3078
+
3079
+ <code class="param-type">Promise</code>
3080
+
3081
+
3082
+ </div>
3083
+
3084
+ </div>
3085
+
3086
+
3087
+ </div>
3088
+ </div>
3089
+
3090
+
3091
+
3092
+
3093
+ <h5>Example</h5>
3094
+
3095
+
1630
3096
  <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
1631
3097
  const api = new API();
1632
3098
  const params = {
1633
- tags: ['INCIDENTS']
3099
+ processId: '5dadd01dc4af3941d42f8c5c',
3100
+ taskId: '5df7f19618430c89a41a19d2',
3101
+ flowName: 'simpleTask',
3102
+ orgId: '55e4a3bd6be6b45210833fae',
3103
+ formData: [{ name: 'Group', fields: [...] }],
3104
+ selectedDocs: [],
3105
+ selectedAssignees: [],
3106
+ selectedBoxes: [],
3107
+ advFormData: {},
3108
+ advFormSchema: {},
3109
+ status: '',
3110
+ order: 0,
3111
+ title: 'My Task',
3112
+ tags: [],
3113
+ dueDate: '2024-01-15T00:00:00Z'
1634
3114
  };
1635
3115
  const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
1636
- await api.user.task.getSummaryByTags(params, session);</code></pre>
3116
+ await api.user.task.saveTask(params, session);</code></pre>
1637
3117
 
1638
3118
 
1639
3119