@docbrasil/api-systemmanager 1.1.12 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/user/my_tasks.js +123 -0
- package/dist/bundle.cjs +123 -0
- package/dist/bundle.mjs +1 -1
- package/doc/api.md +1364 -511
- package/docs/MyTasks.html +1457 -59
- package/docs/user_my_tasks.js.html +203 -0
- package/package.json +1 -1
package/docs/MyTasks.html
CHANGED
|
@@ -224,8 +224,8 @@
|
|
|
224
224
|
|
|
225
225
|
|
|
226
226
|
|
|
227
|
-
<h4 class="name" id="
|
|
228
|
-
<a class="href-link" href="#
|
|
227
|
+
<h4 class="name" id="addMultiTaskUser">
|
|
228
|
+
<a class="href-link" href="#addMultiTaskUser">#</a>
|
|
229
229
|
|
|
230
230
|
|
|
231
231
|
<span class='tag'>async</span>
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
|
|
234
234
|
<span class="code-name">
|
|
235
235
|
|
|
236
|
-
|
|
236
|
+
addMultiTaskUser<span class="signature">(params, session)</span><span class="type-signature"> → {Promise}</span>
|
|
237
237
|
|
|
238
238
|
</span>
|
|
239
239
|
</h4>
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
|
|
243
243
|
|
|
244
244
|
<div class="description">
|
|
245
|
-
|
|
245
|
+
Add Multi Task User
|
|
246
246
|
</div>
|
|
247
247
|
|
|
248
248
|
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
|
|
297
297
|
|
|
298
298
|
|
|
299
|
-
<td class="description last">Params
|
|
299
|
+
<td class="description last">Params for adding multi task user</td>
|
|
300
300
|
</tr>
|
|
301
301
|
|
|
302
302
|
|
|
@@ -304,13 +304,13 @@
|
|
|
304
304
|
|
|
305
305
|
<tr class="deep-level-1">
|
|
306
306
|
|
|
307
|
-
<td class="name"><code>
|
|
307
|
+
<td class="name"><code>userId</code></td>
|
|
308
308
|
|
|
309
309
|
|
|
310
310
|
<td class="type">
|
|
311
311
|
|
|
312
312
|
|
|
313
|
-
<code class="param-type">
|
|
313
|
+
<code class="param-type">string</code>
|
|
314
314
|
|
|
315
315
|
|
|
316
316
|
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
|
|
321
321
|
|
|
322
322
|
|
|
323
|
-
<td class="description last">
|
|
323
|
+
<td class="description last">User id</td>
|
|
324
324
|
</tr>
|
|
325
325
|
|
|
326
326
|
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
<td class="type">
|
|
334
334
|
|
|
335
335
|
|
|
336
|
-
<code class="param-type">
|
|
336
|
+
<code class="param-type">string</code>
|
|
337
337
|
|
|
338
338
|
|
|
339
339
|
|
|
@@ -343,7 +343,30 @@
|
|
|
343
343
|
|
|
344
344
|
|
|
345
345
|
|
|
346
|
-
<td class="description last">Organization id
|
|
346
|
+
<td class="description last">Organization id</td>
|
|
347
|
+
</tr>
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
<tr class="deep-level-1">
|
|
352
|
+
|
|
353
|
+
<td class="name"><code>taskId</code></td>
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
<td class="type">
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
<code class="param-type">string</code>
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
</td>
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
<td class="description last">Task Id</td>
|
|
347
370
|
</tr>
|
|
348
371
|
|
|
349
372
|
|
|
@@ -370,7 +393,7 @@
|
|
|
370
393
|
|
|
371
394
|
|
|
372
395
|
|
|
373
|
-
<td class="description last">
|
|
396
|
+
<td class="description last">Is token JWT of user</td>
|
|
374
397
|
</tr>
|
|
375
398
|
|
|
376
399
|
|
|
@@ -425,7 +448,7 @@
|
|
|
425
448
|
<p class="tag-source">
|
|
426
449
|
<a href="user_my_tasks.js.html" class="button">View Source</a>
|
|
427
450
|
<span>
|
|
428
|
-
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#
|
|
451
|
+
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#line278">line 278</a>
|
|
429
452
|
</span>
|
|
430
453
|
</p>
|
|
431
454
|
|
|
@@ -456,13 +479,11 @@
|
|
|
456
479
|
|
|
457
480
|
<div class="columns">
|
|
458
481
|
|
|
459
|
-
<div class='param-desc column is-7'>returned data from the search</div>
|
|
460
|
-
|
|
461
482
|
|
|
462
483
|
<div class='column is-5 has-text-left'>
|
|
463
484
|
<label>Type: </label>
|
|
464
485
|
|
|
465
|
-
<code class="param-type">
|
|
486
|
+
<code class="param-type">Promise</code>
|
|
466
487
|
|
|
467
488
|
|
|
468
489
|
</div>
|
|
@@ -470,88 +491,361 @@
|
|
|
470
491
|
</div>
|
|
471
492
|
|
|
472
493
|
|
|
473
|
-
|
|
494
|
+
</div>
|
|
495
|
+
</div>
|
|
474
496
|
|
|
475
|
-
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
<h5>Example</h5>
|
|
476
501
|
|
|
477
|
-
<div class='param-desc column is-7'>count the count of items searched</div>
|
|
478
502
|
|
|
503
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
504
|
+
const api = new API();
|
|
505
|
+
const params = {
|
|
506
|
+
userId: '646386c9583e04a131adc8946',
|
|
507
|
+
orgId: '646386c9583e04a131adc894',
|
|
508
|
+
taskId: '646386c9583e04a131adc895'
|
|
509
|
+
};
|
|
510
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
511
|
+
await api.user.task.mytasks.addMultiTaskUser(params, session);</code></pre>
|
|
479
512
|
|
|
480
|
-
<div class='column is-5 has-text-left'>
|
|
481
|
-
<label>Type: </label>
|
|
482
|
-
|
|
483
|
-
<code class="param-type">number</code>
|
|
484
513
|
|
|
485
514
|
|
|
486
|
-
</div>
|
|
487
|
-
|
|
488
515
|
</div>
|
|
516
|
+
|
|
517
|
+
<div class="member">
|
|
489
518
|
|
|
490
|
-
|
|
491
|
-
|
|
492
519
|
|
|
493
|
-
<div class="columns">
|
|
494
|
-
|
|
495
|
-
<div class='param-desc column is-7'>items the items returned from search</div>
|
|
496
|
-
|
|
497
520
|
|
|
498
|
-
<
|
|
499
|
-
<
|
|
521
|
+
<h4 class="name" id="find">
|
|
522
|
+
<a class="href-link" href="#find">#</a>
|
|
500
523
|
|
|
501
|
-
|
|
502
|
-
|
|
524
|
+
|
|
525
|
+
<span class='tag'>async</span>
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
<span class="code-name">
|
|
529
|
+
|
|
530
|
+
find<span class="signature">(params, session)</span><span class="type-signature"> → {promise|number|array.<object>|number|number}</span>
|
|
531
|
+
|
|
532
|
+
</span>
|
|
533
|
+
</h4>
|
|
534
|
+
|
|
503
535
|
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
<div class="description">
|
|
539
|
+
Method to find my tasks for a user
|
|
504
540
|
</div>
|
|
505
541
|
|
|
506
|
-
</div>
|
|
507
542
|
|
|
508
|
-
|
|
509
|
-
|
|
510
543
|
|
|
511
|
-
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
<h5>Parameters:</h5>
|
|
512
552
|
|
|
513
|
-
|
|
553
|
+
<div class="table-container">
|
|
554
|
+
<table class="params table">
|
|
555
|
+
<thead>
|
|
556
|
+
<tr>
|
|
557
|
+
|
|
558
|
+
<th>Name</th>
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
<th>Type</th>
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
<th class="last">Description</th>
|
|
568
|
+
</tr>
|
|
569
|
+
</thead>
|
|
570
|
+
|
|
571
|
+
<tbody>
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
<tr class="deep-level-0">
|
|
576
|
+
|
|
577
|
+
<td class="name"><code>params</code></td>
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
<td class="type">
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
<code class="param-type">object</code>
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
</td>
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
<td class="description last">Params to get tasks</td>
|
|
594
|
+
</tr>
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
514
598
|
|
|
599
|
+
<tr class="deep-level-1">
|
|
600
|
+
|
|
601
|
+
<td class="name"><code>query</code></td>
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
<td class="type">
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
<code class="param-type">object</code>
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
</td>
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
<td class="description last">Search my tasks query</td>
|
|
618
|
+
</tr>
|
|
619
|
+
|
|
620
|
+
|
|
515
621
|
|
|
516
|
-
|
|
517
|
-
|
|
622
|
+
<tr class="deep-level-1">
|
|
623
|
+
|
|
624
|
+
<td class="name"><code>orgId</code></td>
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
<td class="type">
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
<code class="param-type">object</code>
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
</td>
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
<td class="description last">Organization id (_id database)</td>
|
|
641
|
+
</tr>
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
518
646
|
|
|
519
|
-
<code class="param-type">number</code>
|
|
520
647
|
|
|
648
|
+
|
|
649
|
+
<tr class="deep-level-0">
|
|
650
|
+
|
|
651
|
+
<td class="name"><code>session</code></td>
|
|
652
|
+
|
|
521
653
|
|
|
522
|
-
|
|
523
|
-
|
|
654
|
+
<td class="type">
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
<code class="param-type">string</code>
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
</td>
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
<td class="description last">Session, token JWT</td>
|
|
668
|
+
</tr>
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
</tbody>
|
|
673
|
+
</table>
|
|
524
674
|
</div>
|
|
525
675
|
|
|
526
|
-
|
|
527
|
-
|
|
528
676
|
|
|
529
|
-
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
<dl class="details">
|
|
681
|
+
|
|
530
682
|
|
|
531
|
-
|
|
683
|
+
|
|
532
684
|
|
|
685
|
+
|
|
533
686
|
|
|
534
|
-
<div class='column is-5 has-text-left'>
|
|
535
|
-
<label>Type: </label>
|
|
536
|
-
|
|
537
|
-
<code class="param-type">number</code>
|
|
538
687
|
|
|
688
|
+
|
|
539
689
|
|
|
540
|
-
</div>
|
|
541
690
|
|
|
542
|
-
</div>
|
|
543
691
|
|
|
544
|
-
|
|
545
|
-
</div>
|
|
546
|
-
</div>
|
|
692
|
+
|
|
547
693
|
|
|
694
|
+
|
|
548
695
|
|
|
696
|
+
|
|
549
697
|
|
|
698
|
+
|
|
699
|
+
<dt class="tag-author">Author:</dt>
|
|
700
|
+
<dd class="tag-author">
|
|
701
|
+
<ul>
|
|
702
|
+
<li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
|
|
703
|
+
</ul>
|
|
704
|
+
</dd>
|
|
705
|
+
|
|
550
706
|
|
|
551
|
-
<h5>Example</h5>
|
|
552
707
|
|
|
708
|
+
|
|
553
709
|
|
|
554
|
-
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
<p class="tag-source">
|
|
720
|
+
<a href="user_my_tasks.js.html" class="button">View Source</a>
|
|
721
|
+
<span>
|
|
722
|
+
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#line74">line 74</a>
|
|
723
|
+
</span>
|
|
724
|
+
</p>
|
|
725
|
+
|
|
726
|
+
</dl>
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
<div class='columns method-parameter'>
|
|
746
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
747
|
+
<div class="column is-10">
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
<div class="columns">
|
|
752
|
+
|
|
753
|
+
<div class='param-desc column is-7'>returned data from the search</div>
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
<div class='column is-5 has-text-left'>
|
|
757
|
+
<label>Type: </label>
|
|
758
|
+
|
|
759
|
+
<code class="param-type">promise</code>
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
</div>
|
|
763
|
+
|
|
764
|
+
</div>
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
<div class="columns">
|
|
770
|
+
|
|
771
|
+
<div class='param-desc column is-7'>count the count of items searched</div>
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
<div class='column is-5 has-text-left'>
|
|
775
|
+
<label>Type: </label>
|
|
776
|
+
|
|
777
|
+
<code class="param-type">number</code>
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
</div>
|
|
781
|
+
|
|
782
|
+
</div>
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
<div class="columns">
|
|
788
|
+
|
|
789
|
+
<div class='param-desc column is-7'>items the items returned from search</div>
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
<div class='column is-5 has-text-left'>
|
|
793
|
+
<label>Type: </label>
|
|
794
|
+
|
|
795
|
+
<code class="param-type">array.<object></code>
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
</div>
|
|
799
|
+
|
|
800
|
+
</div>
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
<div class="columns">
|
|
806
|
+
|
|
807
|
+
<div class='param-desc column is-7'>page the page of the search (on pagination), zero indexed</div>
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
<div class='column is-5 has-text-left'>
|
|
811
|
+
<label>Type: </label>
|
|
812
|
+
|
|
813
|
+
<code class="param-type">number</code>
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
</div>
|
|
817
|
+
|
|
818
|
+
</div>
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
<div class="columns">
|
|
824
|
+
|
|
825
|
+
<div class='param-desc column is-7'>perPage how many items per page</div>
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
<div class='column is-5 has-text-left'>
|
|
829
|
+
<label>Type: </label>
|
|
830
|
+
|
|
831
|
+
<code class="param-type">number</code>
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
</div>
|
|
835
|
+
|
|
836
|
+
</div>
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
</div>
|
|
840
|
+
</div>
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
<h5>Example</h5>
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
555
849
|
const api = new API();
|
|
556
850
|
const params = {
|
|
557
851
|
query: {"s":[{"historyBegin":{"order":"desc"}}],"i":1,"p":20},
|
|
@@ -562,6 +856,1110 @@ const retSearch = await api.user.task.mytasks.find(params, session);</code></pre
|
|
|
562
856
|
|
|
563
857
|
|
|
564
858
|
|
|
859
|
+
</div>
|
|
860
|
+
|
|
861
|
+
<div class="member">
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
<h4 class="name" id="getTaskMultiUsers">
|
|
866
|
+
<a class="href-link" href="#getTaskMultiUsers">#</a>
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
<span class='tag'>async</span>
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
<span class="code-name">
|
|
873
|
+
|
|
874
|
+
getTaskMultiUsers<span class="signature">(params, session)</span><span class="type-signature"> → {promise}</span>
|
|
875
|
+
|
|
876
|
+
</span>
|
|
877
|
+
</h4>
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
<div class="description">
|
|
883
|
+
Method to get task multi users
|
|
884
|
+
</div>
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
<h5>Parameters:</h5>
|
|
896
|
+
|
|
897
|
+
<div class="table-container">
|
|
898
|
+
<table class="params table">
|
|
899
|
+
<thead>
|
|
900
|
+
<tr>
|
|
901
|
+
|
|
902
|
+
<th>Name</th>
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
<th>Type</th>
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
<th class="last">Description</th>
|
|
912
|
+
</tr>
|
|
913
|
+
</thead>
|
|
914
|
+
|
|
915
|
+
<tbody>
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
<tr class="deep-level-0">
|
|
920
|
+
|
|
921
|
+
<td class="name"><code>params</code></td>
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
<td class="type">
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
<code class="param-type">object</code>
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
</td>
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
<td class="description last">Params to get task</td>
|
|
938
|
+
</tr>
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
<tr class="deep-level-1">
|
|
944
|
+
|
|
945
|
+
<td class="name"><code>taskId</code></td>
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
<td class="type">
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
<code class="param-type">object</code>
|
|
952
|
+
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
</td>
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
<td class="description last">Task id (_id database)</td>
|
|
962
|
+
</tr>
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
<tr class="deep-level-1">
|
|
967
|
+
|
|
968
|
+
<td class="name"><code>orgId</code></td>
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
<td class="type">
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
<code class="param-type">object</code>
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
</td>
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
<td class="description last">Organization id (_id database)</td>
|
|
985
|
+
</tr>
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
<tr class="deep-level-0">
|
|
994
|
+
|
|
995
|
+
<td class="name"><code>session</code></td>
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
<td class="type">
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
<code class="param-type">string</code>
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
</td>
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
<td class="description last">Session, token JWT</td>
|
|
1012
|
+
</tr>
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
</tbody>
|
|
1017
|
+
</table>
|
|
1018
|
+
</div>
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
<dl class="details">
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
<dt class="tag-author">Author:</dt>
|
|
1044
|
+
<dd class="tag-author">
|
|
1045
|
+
<ul>
|
|
1046
|
+
<li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
|
|
1047
|
+
</ul>
|
|
1048
|
+
</dd>
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
<p class="tag-source">
|
|
1064
|
+
<a href="user_my_tasks.js.html" class="button">View Source</a>
|
|
1065
|
+
<span>
|
|
1066
|
+
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#line194">line 194</a>
|
|
1067
|
+
</span>
|
|
1068
|
+
</p>
|
|
1069
|
+
|
|
1070
|
+
</dl>
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
<div class='columns method-parameter'>
|
|
1090
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
1091
|
+
<div class="column is-10">
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
<div class="columns">
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
<div class='column is-5 has-text-left'>
|
|
1099
|
+
<label>Type: </label>
|
|
1100
|
+
|
|
1101
|
+
<code class="param-type">promise</code>
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
</div>
|
|
1105
|
+
|
|
1106
|
+
</div>
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
</div>
|
|
1110
|
+
</div>
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
<h5>Example</h5>
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1119
|
+
const api = new API();
|
|
1120
|
+
const params = {
|
|
1121
|
+
taskId: '5df7f19618430c89a41a19d2',
|
|
1122
|
+
orgId: '55e4a3bd6be6b45210833fae',
|
|
1123
|
+
};
|
|
1124
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1125
|
+
await api.user.task.mytasks.getTaskMultiUsers(params, session);</code></pre>
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
</div>
|
|
1130
|
+
|
|
1131
|
+
<div class="member">
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
<h4 class="name" id="removeDueDate">
|
|
1136
|
+
<a class="href-link" href="#removeDueDate">#</a>
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
<span class='tag'>async</span>
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
<span class="code-name">
|
|
1143
|
+
|
|
1144
|
+
removeDueDate<span class="signature">(session)</span><span class="type-signature"> → {Promise}</span>
|
|
1145
|
+
|
|
1146
|
+
</span>
|
|
1147
|
+
</h4>
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
<div class="description">
|
|
1153
|
+
Update task dueDate
|
|
1154
|
+
</div>
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
<h5>Parameters:</h5>
|
|
1166
|
+
|
|
1167
|
+
<div class="table-container">
|
|
1168
|
+
<table class="params table">
|
|
1169
|
+
<thead>
|
|
1170
|
+
<tr>
|
|
1171
|
+
|
|
1172
|
+
<th>Name</th>
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
<th>Type</th>
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
<th class="last">Description</th>
|
|
1182
|
+
</tr>
|
|
1183
|
+
</thead>
|
|
1184
|
+
|
|
1185
|
+
<tbody>
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
<tr class="deep-level-0">
|
|
1190
|
+
|
|
1191
|
+
<td class="name"><code>data.orgId</code></td>
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
<td class="type">
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
<code class="param-type">string</code>
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
</td>
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
<td class="description last">Organization id</td>
|
|
1208
|
+
</tr>
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
<tr class="deep-level-0">
|
|
1215
|
+
|
|
1216
|
+
<td class="name"><code>data.taskId</code></td>
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
<td class="type">
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
<code class="param-type">string</code>
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
</td>
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
<td class="description last">Task Id</td>
|
|
1233
|
+
</tr>
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
<tr class="deep-level-0">
|
|
1240
|
+
|
|
1241
|
+
<td class="name"><code>session</code></td>
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
<td class="type">
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
<code class="param-type">string</code>
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
</td>
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
<td class="description last">Is token JWT of user NOT allow SU</td>
|
|
1258
|
+
</tr>
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
</tbody>
|
|
1263
|
+
</table>
|
|
1264
|
+
</div>
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
<dl class="details">
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
|
|
1289
|
+
<dt class="tag-author">Author:</dt>
|
|
1290
|
+
<dd class="tag-author">
|
|
1291
|
+
<ul>
|
|
1292
|
+
<li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
|
|
1293
|
+
</ul>
|
|
1294
|
+
</dd>
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
<p class="tag-source">
|
|
1310
|
+
<a href="user_my_tasks.js.html" class="button">View Source</a>
|
|
1311
|
+
<span>
|
|
1312
|
+
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#line156">line 156</a>
|
|
1313
|
+
</span>
|
|
1314
|
+
</p>
|
|
1315
|
+
|
|
1316
|
+
</dl>
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
<div class='columns method-parameter'>
|
|
1336
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
1337
|
+
<div class="column is-10">
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
|
|
1341
|
+
<div class="columns">
|
|
1342
|
+
|
|
1343
|
+
|
|
1344
|
+
<div class='column is-5 has-text-left'>
|
|
1345
|
+
<label>Type: </label>
|
|
1346
|
+
|
|
1347
|
+
<code class="param-type">Promise</code>
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
</div>
|
|
1351
|
+
|
|
1352
|
+
</div>
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
</div>
|
|
1356
|
+
</div>
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
<h5>Example</h5>
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1365
|
+
const api = new API();
|
|
1366
|
+
const params = {
|
|
1367
|
+
orgId: '646386c9583e04a131adc894',
|
|
1368
|
+
taskId: '646386c9583e04a131adc895'
|
|
1369
|
+
};
|
|
1370
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1371
|
+
await api.user.task.mytasks.removeDueDate(params, session);</code></pre>
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
</div>
|
|
1376
|
+
|
|
1377
|
+
<div class="member">
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
<h4 class="name" id="removeMultiTaskUser">
|
|
1382
|
+
<a class="href-link" href="#removeMultiTaskUser">#</a>
|
|
1383
|
+
|
|
1384
|
+
|
|
1385
|
+
<span class='tag'>async</span>
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
<span class="code-name">
|
|
1389
|
+
|
|
1390
|
+
removeMultiTaskUser<span class="signature">(params, session)</span><span class="type-signature"> → {Promise}</span>
|
|
1391
|
+
|
|
1392
|
+
</span>
|
|
1393
|
+
</h4>
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
<div class="description">
|
|
1399
|
+
remove multi task user
|
|
1400
|
+
</div>
|
|
1401
|
+
|
|
1402
|
+
|
|
1403
|
+
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
<h5>Parameters:</h5>
|
|
1412
|
+
|
|
1413
|
+
<div class="table-container">
|
|
1414
|
+
<table class="params table">
|
|
1415
|
+
<thead>
|
|
1416
|
+
<tr>
|
|
1417
|
+
|
|
1418
|
+
<th>Name</th>
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
<th>Type</th>
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
<th class="last">Description</th>
|
|
1428
|
+
</tr>
|
|
1429
|
+
</thead>
|
|
1430
|
+
|
|
1431
|
+
<tbody>
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
<tr class="deep-level-0">
|
|
1436
|
+
|
|
1437
|
+
<td class="name"><code>params</code></td>
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
<td class="type">
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
<code class="param-type">object</code>
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
</td>
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
<td class="description last">Params of the user to be removed</td>
|
|
1454
|
+
</tr>
|
|
1455
|
+
|
|
1456
|
+
|
|
1457
|
+
|
|
1458
|
+
|
|
1459
|
+
<tr class="deep-level-1">
|
|
1460
|
+
|
|
1461
|
+
<td class="name"><code>userId</code></td>
|
|
1462
|
+
|
|
1463
|
+
|
|
1464
|
+
<td class="type">
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
<code class="param-type">string</code>
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
|
|
1471
|
+
</td>
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+
|
|
1477
|
+
<td class="description last">User id</td>
|
|
1478
|
+
</tr>
|
|
1479
|
+
|
|
1480
|
+
|
|
1481
|
+
|
|
1482
|
+
<tr class="deep-level-1">
|
|
1483
|
+
|
|
1484
|
+
<td class="name"><code>orgId</code></td>
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
<td class="type">
|
|
1488
|
+
|
|
1489
|
+
|
|
1490
|
+
<code class="param-type">string</code>
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
</td>
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
|
|
1498
|
+
|
|
1499
|
+
|
|
1500
|
+
<td class="description last">Organization id</td>
|
|
1501
|
+
</tr>
|
|
1502
|
+
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
<tr class="deep-level-1">
|
|
1506
|
+
|
|
1507
|
+
<td class="name"><code>taskId</code></td>
|
|
1508
|
+
|
|
1509
|
+
|
|
1510
|
+
<td class="type">
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
<code class="param-type">string</code>
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
|
|
1517
|
+
</td>
|
|
1518
|
+
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
|
|
1523
|
+
<td class="description last">Task Id</td>
|
|
1524
|
+
</tr>
|
|
1525
|
+
|
|
1526
|
+
|
|
1527
|
+
|
|
1528
|
+
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
|
|
1532
|
+
<tr class="deep-level-0">
|
|
1533
|
+
|
|
1534
|
+
<td class="name"><code>session</code></td>
|
|
1535
|
+
|
|
1536
|
+
|
|
1537
|
+
<td class="type">
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
<code class="param-type">string</code>
|
|
1541
|
+
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
</td>
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
<td class="description last">Is token JWT of user</td>
|
|
1551
|
+
</tr>
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
</tbody>
|
|
1556
|
+
</table>
|
|
1557
|
+
</div>
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
<dl class="details">
|
|
1564
|
+
|
|
1565
|
+
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
|
|
1570
|
+
|
|
1571
|
+
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
|
|
1575
|
+
|
|
1576
|
+
|
|
1577
|
+
|
|
1578
|
+
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
<dt class="tag-author">Author:</dt>
|
|
1583
|
+
<dd class="tag-author">
|
|
1584
|
+
<ul>
|
|
1585
|
+
<li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
|
|
1586
|
+
</ul>
|
|
1587
|
+
</dd>
|
|
1588
|
+
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
|
|
1595
|
+
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
<p class="tag-source">
|
|
1603
|
+
<a href="user_my_tasks.js.html" class="button">View Source</a>
|
|
1604
|
+
<span>
|
|
1605
|
+
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#line236">line 236</a>
|
|
1606
|
+
</span>
|
|
1607
|
+
</p>
|
|
1608
|
+
|
|
1609
|
+
</dl>
|
|
1610
|
+
|
|
1611
|
+
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
|
|
1626
|
+
|
|
1627
|
+
|
|
1628
|
+
<div class='columns method-parameter'>
|
|
1629
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
1630
|
+
<div class="column is-10">
|
|
1631
|
+
|
|
1632
|
+
|
|
1633
|
+
|
|
1634
|
+
<div class="columns">
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
<div class='column is-5 has-text-left'>
|
|
1638
|
+
<label>Type: </label>
|
|
1639
|
+
|
|
1640
|
+
<code class="param-type">Promise</code>
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
</div>
|
|
1644
|
+
|
|
1645
|
+
</div>
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
</div>
|
|
1649
|
+
</div>
|
|
1650
|
+
|
|
1651
|
+
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
<h5>Example</h5>
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1658
|
+
const api = new API();
|
|
1659
|
+
const params = {
|
|
1660
|
+
userId: '646386c9583e04a131adc896',
|
|
1661
|
+
orgId: '646386c9583e04a131adc894',
|
|
1662
|
+
taskId: '646386c9583e04a131adc895'
|
|
1663
|
+
};
|
|
1664
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1665
|
+
await api.user.task.mytasks.removeMultiTaskUser(params, session);</code></pre>
|
|
1666
|
+
|
|
1667
|
+
|
|
1668
|
+
|
|
1669
|
+
</div>
|
|
1670
|
+
|
|
1671
|
+
<div class="member">
|
|
1672
|
+
|
|
1673
|
+
|
|
1674
|
+
|
|
1675
|
+
<h4 class="name" id="saveDueDate">
|
|
1676
|
+
<a class="href-link" href="#saveDueDate">#</a>
|
|
1677
|
+
|
|
1678
|
+
|
|
1679
|
+
<span class='tag'>async</span>
|
|
1680
|
+
|
|
1681
|
+
|
|
1682
|
+
<span class="code-name">
|
|
1683
|
+
|
|
1684
|
+
saveDueDate<span class="signature">(params, session)</span><span class="type-signature"> → {Promise}</span>
|
|
1685
|
+
|
|
1686
|
+
</span>
|
|
1687
|
+
</h4>
|
|
1688
|
+
|
|
1689
|
+
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
<div class="description">
|
|
1693
|
+
Update task dueDate
|
|
1694
|
+
</div>
|
|
1695
|
+
|
|
1696
|
+
|
|
1697
|
+
|
|
1698
|
+
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
|
|
1705
|
+
<h5>Parameters:</h5>
|
|
1706
|
+
|
|
1707
|
+
<div class="table-container">
|
|
1708
|
+
<table class="params table">
|
|
1709
|
+
<thead>
|
|
1710
|
+
<tr>
|
|
1711
|
+
|
|
1712
|
+
<th>Name</th>
|
|
1713
|
+
|
|
1714
|
+
|
|
1715
|
+
<th>Type</th>
|
|
1716
|
+
|
|
1717
|
+
|
|
1718
|
+
|
|
1719
|
+
|
|
1720
|
+
|
|
1721
|
+
<th class="last">Description</th>
|
|
1722
|
+
</tr>
|
|
1723
|
+
</thead>
|
|
1724
|
+
|
|
1725
|
+
<tbody>
|
|
1726
|
+
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
<tr class="deep-level-0">
|
|
1730
|
+
|
|
1731
|
+
<td class="name"><code>params</code></td>
|
|
1732
|
+
|
|
1733
|
+
|
|
1734
|
+
<td class="type">
|
|
1735
|
+
|
|
1736
|
+
|
|
1737
|
+
<code class="param-type">object</code>
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
</td>
|
|
1742
|
+
|
|
1743
|
+
|
|
1744
|
+
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
<td class="description last">The Date to save</td>
|
|
1748
|
+
</tr>
|
|
1749
|
+
|
|
1750
|
+
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
<tr class="deep-level-1">
|
|
1754
|
+
|
|
1755
|
+
<td class="name"><code>dueDate</code></td>
|
|
1756
|
+
|
|
1757
|
+
|
|
1758
|
+
<td class="type">
|
|
1759
|
+
|
|
1760
|
+
|
|
1761
|
+
<code class="param-type">string</code>
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
|
|
1765
|
+
</td>
|
|
1766
|
+
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
|
|
1770
|
+
|
|
1771
|
+
<td class="description last">DueDate</td>
|
|
1772
|
+
</tr>
|
|
1773
|
+
|
|
1774
|
+
|
|
1775
|
+
|
|
1776
|
+
<tr class="deep-level-1">
|
|
1777
|
+
|
|
1778
|
+
<td class="name"><code>orgId</code></td>
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
<td class="type">
|
|
1782
|
+
|
|
1783
|
+
|
|
1784
|
+
<code class="param-type">string</code>
|
|
1785
|
+
|
|
1786
|
+
|
|
1787
|
+
|
|
1788
|
+
</td>
|
|
1789
|
+
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
<td class="description last">Organization id</td>
|
|
1795
|
+
</tr>
|
|
1796
|
+
|
|
1797
|
+
|
|
1798
|
+
|
|
1799
|
+
<tr class="deep-level-1">
|
|
1800
|
+
|
|
1801
|
+
<td class="name"><code>taskId</code></td>
|
|
1802
|
+
|
|
1803
|
+
|
|
1804
|
+
<td class="type">
|
|
1805
|
+
|
|
1806
|
+
|
|
1807
|
+
<code class="param-type">string</code>
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
</td>
|
|
1812
|
+
|
|
1813
|
+
|
|
1814
|
+
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
<td class="description last">Task Id</td>
|
|
1818
|
+
</tr>
|
|
1819
|
+
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
|
|
1826
|
+
<tr class="deep-level-0">
|
|
1827
|
+
|
|
1828
|
+
<td class="name"><code>session</code></td>
|
|
1829
|
+
|
|
1830
|
+
|
|
1831
|
+
<td class="type">
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
<code class="param-type">string</code>
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
</td>
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
|
|
1844
|
+
<td class="description last">Is token JWT of user</td>
|
|
1845
|
+
</tr>
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
|
|
1849
|
+
</tbody>
|
|
1850
|
+
</table>
|
|
1851
|
+
</div>
|
|
1852
|
+
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
|
|
1857
|
+
<dl class="details">
|
|
1858
|
+
|
|
1859
|
+
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
|
|
1864
|
+
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
|
|
1869
|
+
|
|
1870
|
+
|
|
1871
|
+
|
|
1872
|
+
|
|
1873
|
+
|
|
1874
|
+
|
|
1875
|
+
|
|
1876
|
+
<dt class="tag-author">Author:</dt>
|
|
1877
|
+
<dd class="tag-author">
|
|
1878
|
+
<ul>
|
|
1879
|
+
<li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
|
|
1880
|
+
</ul>
|
|
1881
|
+
</dd>
|
|
1882
|
+
|
|
1883
|
+
|
|
1884
|
+
|
|
1885
|
+
|
|
1886
|
+
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
|
|
1892
|
+
|
|
1893
|
+
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
<p class="tag-source">
|
|
1897
|
+
<a href="user_my_tasks.js.html" class="button">View Source</a>
|
|
1898
|
+
<span>
|
|
1899
|
+
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#line117">line 117</a>
|
|
1900
|
+
</span>
|
|
1901
|
+
</p>
|
|
1902
|
+
|
|
1903
|
+
</dl>
|
|
1904
|
+
|
|
1905
|
+
|
|
1906
|
+
|
|
1907
|
+
|
|
1908
|
+
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
|
|
1915
|
+
|
|
1916
|
+
|
|
1917
|
+
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
|
|
1921
|
+
|
|
1922
|
+
<div class='columns method-parameter'>
|
|
1923
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
1924
|
+
<div class="column is-10">
|
|
1925
|
+
|
|
1926
|
+
|
|
1927
|
+
|
|
1928
|
+
<div class="columns">
|
|
1929
|
+
|
|
1930
|
+
|
|
1931
|
+
<div class='column is-5 has-text-left'>
|
|
1932
|
+
<label>Type: </label>
|
|
1933
|
+
|
|
1934
|
+
<code class="param-type">Promise</code>
|
|
1935
|
+
|
|
1936
|
+
|
|
1937
|
+
</div>
|
|
1938
|
+
|
|
1939
|
+
</div>
|
|
1940
|
+
|
|
1941
|
+
|
|
1942
|
+
</div>
|
|
1943
|
+
</div>
|
|
1944
|
+
|
|
1945
|
+
|
|
1946
|
+
|
|
1947
|
+
|
|
1948
|
+
<h5>Example</h5>
|
|
1949
|
+
|
|
1950
|
+
|
|
1951
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1952
|
+
const api = new API();
|
|
1953
|
+
const params = {
|
|
1954
|
+
dueDate: '2011-10-05T14:48:00.000Z',
|
|
1955
|
+
orgId: '646386c9583e04a131adc894',
|
|
1956
|
+
taskId: '646386c9583e04a131adc895'
|
|
1957
|
+
};
|
|
1958
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1959
|
+
await api.user.task.mytasks.saveDueDate(params, session);</code></pre>
|
|
1960
|
+
|
|
1961
|
+
|
|
1962
|
+
|
|
565
1963
|
</div>
|
|
566
1964
|
|
|
567
1965
|
</div>
|