@docbrasil/api-systemmanager 1.1.15 → 1.1.16
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/document.js +7 -5
- package/dist/bundle.cjs +7 -5
- package/dist/bundle.mjs +1 -1
- package/doc/api.md +1 -1
- package/docs/Documents.html +9 -9
- package/docs/MyTasks.html +1252 -148
- package/docs/user_document.js.html +7 -5
- package/docs/user_my_tasks.js.html +161 -2
- package/package.json +1 -1
- package/.project +0 -11
package/docs/MyTasks.html
CHANGED
|
@@ -512,6 +512,570 @@ await api.user.task.mytasks.addMultiTaskUser(params, session);</code></pre>
|
|
|
512
512
|
|
|
513
513
|
|
|
514
514
|
|
|
515
|
+
</div>
|
|
516
|
+
|
|
517
|
+
<div class="member">
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
<h4 class="name" id="assignTaskUsers">
|
|
522
|
+
<a class="href-link" href="#assignTaskUsers">#</a>
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
<span class='tag'>async</span>
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
<span class="code-name">
|
|
529
|
+
|
|
530
|
+
assignTaskUsers<span class="signature">(params, session)</span><span class="type-signature"> → {Promise}</span>
|
|
531
|
+
|
|
532
|
+
</span>
|
|
533
|
+
</h4>
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
<div class="description">
|
|
539
|
+
Assign Task user
|
|
540
|
+
</div>
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
<h5>Parameters:</h5>
|
|
552
|
+
|
|
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">The params to assign task to user</td>
|
|
594
|
+
</tr>
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
<tr class="deep-level-1">
|
|
600
|
+
|
|
601
|
+
<td class="name"><code>orgName</code></td>
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
<td class="type">
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
<code class="param-type">string</code>
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
</td>
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
<td class="description last">Organization Name</td>
|
|
618
|
+
</tr>
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
<tr class="deep-level-1">
|
|
623
|
+
|
|
624
|
+
<td class="name"><code>userId</code></td>
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
<td class="type">
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
<code class="param-type">string</code>
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
</td>
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
<td class="description last">User id that will be assigned the task</td>
|
|
641
|
+
</tr>
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
<tr class="deep-level-1">
|
|
646
|
+
|
|
647
|
+
<td class="name"><code>taskId</code></td>
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
<td class="type">
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
<code class="param-type">string</code>
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
</td>
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
<td class="description last">Task Id</td>
|
|
664
|
+
</tr>
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
<tr class="deep-level-0">
|
|
673
|
+
|
|
674
|
+
<td class="name"><code>session</code></td>
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
<td class="type">
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
<code class="param-type">string</code>
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
</td>
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
<td class="description last">Is token JWT of user</td>
|
|
691
|
+
</tr>
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
</tbody>
|
|
696
|
+
</table>
|
|
697
|
+
</div>
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
<dl class="details">
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
<dt class="tag-author">Author:</dt>
|
|
723
|
+
<dd class="tag-author">
|
|
724
|
+
<ul>
|
|
725
|
+
<li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
|
|
726
|
+
</ul>
|
|
727
|
+
</dd>
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
<p class="tag-source">
|
|
743
|
+
<a href="user_my_tasks.js.html" class="button">View Source</a>
|
|
744
|
+
<span>
|
|
745
|
+
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#line359">line 359</a>
|
|
746
|
+
</span>
|
|
747
|
+
</p>
|
|
748
|
+
|
|
749
|
+
</dl>
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
<div class='columns method-parameter'>
|
|
769
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
770
|
+
<div class="column is-10">
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
<div class="columns">
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
<div class='column is-5 has-text-left'>
|
|
778
|
+
<label>Type: </label>
|
|
779
|
+
|
|
780
|
+
<code class="param-type">Promise</code>
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
</div>
|
|
784
|
+
|
|
785
|
+
</div>
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
</div>
|
|
789
|
+
</div>
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
<h5>Example</h5>
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
798
|
+
const api = new API();
|
|
799
|
+
const params = {
|
|
800
|
+
orgName: 'pinkbrain',
|
|
801
|
+
userId: '646386c9583e04a131adc894',
|
|
802
|
+
taskId: '646386c9583e04a131adc895'
|
|
803
|
+
};
|
|
804
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
805
|
+
await api.user.task.mytasks.assignTaskUser(params, session);</code></pre>
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
</div>
|
|
810
|
+
|
|
811
|
+
<div class="member">
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
<h4 class="name" id="escalate">
|
|
816
|
+
<a class="href-link" href="#escalate">#</a>
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
<span class='tag'>async</span>
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
<span class="code-name">
|
|
823
|
+
|
|
824
|
+
escalate<span class="signature">(params, session)</span><span class="type-signature"> → {Promise}</span>
|
|
825
|
+
|
|
826
|
+
</span>
|
|
827
|
+
</h4>
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
<div class="description">
|
|
833
|
+
Escalate task
|
|
834
|
+
</div>
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
<h5>Parameters:</h5>
|
|
846
|
+
|
|
847
|
+
<div class="table-container">
|
|
848
|
+
<table class="params table">
|
|
849
|
+
<thead>
|
|
850
|
+
<tr>
|
|
851
|
+
|
|
852
|
+
<th>Name</th>
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
<th>Type</th>
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
<th class="last">Description</th>
|
|
862
|
+
</tr>
|
|
863
|
+
</thead>
|
|
864
|
+
|
|
865
|
+
<tbody>
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
<tr class="deep-level-0">
|
|
870
|
+
|
|
871
|
+
<td class="name"><code>params</code></td>
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
<td class="type">
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
<code class="param-type">object</code>
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
</td>
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
<td class="description last">The params to escalate task</td>
|
|
888
|
+
</tr>
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
<tr class="deep-level-1">
|
|
894
|
+
|
|
895
|
+
<td class="name"><code>orgName</code></td>
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
<td class="type">
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
<code class="param-type">string</code>
|
|
902
|
+
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
</td>
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
<td class="description last">Organization Name</td>
|
|
912
|
+
</tr>
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
<tr class="deep-level-1">
|
|
917
|
+
|
|
918
|
+
<td class="name"><code>taskId</code></td>
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
<td class="type">
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
<code class="param-type">string</code>
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
</td>
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
<td class="description last">Task Id</td>
|
|
935
|
+
</tr>
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
<tr class="deep-level-0">
|
|
944
|
+
|
|
945
|
+
<td class="name"><code>session</code></td>
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
<td class="type">
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
<code class="param-type">string</code>
|
|
952
|
+
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
</td>
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
<td class="description last">Is token JWT of user</td>
|
|
962
|
+
</tr>
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
</tbody>
|
|
967
|
+
</table>
|
|
968
|
+
</div>
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
<dl class="details">
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
<dt class="tag-author">Author:</dt>
|
|
994
|
+
<dd class="tag-author">
|
|
995
|
+
<ul>
|
|
996
|
+
<li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
|
|
997
|
+
</ul>
|
|
998
|
+
</dd>
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
<p class="tag-source">
|
|
1014
|
+
<a href="user_my_tasks.js.html" class="button">View Source</a>
|
|
1015
|
+
<span>
|
|
1016
|
+
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#line438">line 438</a>
|
|
1017
|
+
</span>
|
|
1018
|
+
</p>
|
|
1019
|
+
|
|
1020
|
+
</dl>
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
<div class='columns method-parameter'>
|
|
1040
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
1041
|
+
<div class="column is-10">
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
<div class="columns">
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
<div class='column is-5 has-text-left'>
|
|
1049
|
+
<label>Type: </label>
|
|
1050
|
+
|
|
1051
|
+
<code class="param-type">Promise</code>
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
</div>
|
|
1055
|
+
|
|
1056
|
+
</div>
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
</div>
|
|
1060
|
+
</div>
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
<h5>Example</h5>
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1069
|
+
const api = new API();
|
|
1070
|
+
const params = {
|
|
1071
|
+
orgName: 'pinkbrain',
|
|
1072
|
+
taskId: '646386c9583e04a131adc895'
|
|
1073
|
+
};
|
|
1074
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1075
|
+
await api.user.task.mytasks.escalate(params, session);</code></pre>
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
|
|
515
1079
|
</div>
|
|
516
1080
|
|
|
517
1081
|
<div class="member">
|
|
@@ -527,7 +1091,351 @@ await api.user.task.mytasks.addMultiTaskUser(params, session);</code></pre>
|
|
|
527
1091
|
|
|
528
1092
|
<span class="code-name">
|
|
529
1093
|
|
|
530
|
-
find<span class="signature">(params, session)</span><span class="type-signature"> → {promise|number|array.<object>|number|number}</span>
|
|
1094
|
+
find<span class="signature">(params, session)</span><span class="type-signature"> → {promise|number|array.<object>|number|number}</span>
|
|
1095
|
+
|
|
1096
|
+
</span>
|
|
1097
|
+
</h4>
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
<div class="description">
|
|
1103
|
+
Method to find my tasks for a user
|
|
1104
|
+
</div>
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
<h5>Parameters:</h5>
|
|
1116
|
+
|
|
1117
|
+
<div class="table-container">
|
|
1118
|
+
<table class="params table">
|
|
1119
|
+
<thead>
|
|
1120
|
+
<tr>
|
|
1121
|
+
|
|
1122
|
+
<th>Name</th>
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
<th>Type</th>
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
<th class="last">Description</th>
|
|
1132
|
+
</tr>
|
|
1133
|
+
</thead>
|
|
1134
|
+
|
|
1135
|
+
<tbody>
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
<tr class="deep-level-0">
|
|
1140
|
+
|
|
1141
|
+
<td class="name"><code>params</code></td>
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
<td class="type">
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
<code class="param-type">object</code>
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
</td>
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
<td class="description last">Params to get tasks</td>
|
|
1158
|
+
</tr>
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
<tr class="deep-level-1">
|
|
1164
|
+
|
|
1165
|
+
<td class="name"><code>query</code></td>
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
<td class="type">
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
<code class="param-type">object</code>
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
</td>
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
<td class="description last">Search my tasks query</td>
|
|
1182
|
+
</tr>
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
<tr class="deep-level-1">
|
|
1187
|
+
|
|
1188
|
+
<td class="name"><code>orgId</code></td>
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
<td class="type">
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
<code class="param-type">object</code>
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
</td>
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
<td class="description last">Organization id (_id database)</td>
|
|
1205
|
+
</tr>
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
<tr class="deep-level-0">
|
|
1214
|
+
|
|
1215
|
+
<td class="name"><code>session</code></td>
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
<td class="type">
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
<code class="param-type">string</code>
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
</td>
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
<td class="description last">Session, token JWT</td>
|
|
1232
|
+
</tr>
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
</tbody>
|
|
1237
|
+
</table>
|
|
1238
|
+
</div>
|
|
1239
|
+
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
<dl class="details">
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
<dt class="tag-author">Author:</dt>
|
|
1264
|
+
<dd class="tag-author">
|
|
1265
|
+
<ul>
|
|
1266
|
+
<li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
|
|
1267
|
+
</ul>
|
|
1268
|
+
</dd>
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
<p class="tag-source">
|
|
1284
|
+
<a href="user_my_tasks.js.html" class="button">View Source</a>
|
|
1285
|
+
<span>
|
|
1286
|
+
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#line74">line 74</a>
|
|
1287
|
+
</span>
|
|
1288
|
+
</p>
|
|
1289
|
+
|
|
1290
|
+
</dl>
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
<div class='columns method-parameter'>
|
|
1310
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
1311
|
+
<div class="column is-10">
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
<div class="columns">
|
|
1316
|
+
|
|
1317
|
+
<div class='param-desc column is-7'>returned data from the search</div>
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
<div class='column is-5 has-text-left'>
|
|
1321
|
+
<label>Type: </label>
|
|
1322
|
+
|
|
1323
|
+
<code class="param-type">promise</code>
|
|
1324
|
+
|
|
1325
|
+
|
|
1326
|
+
</div>
|
|
1327
|
+
|
|
1328
|
+
</div>
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
|
+
<div class="columns">
|
|
1334
|
+
|
|
1335
|
+
<div class='param-desc column is-7'>count the count of items searched</div>
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
<div class='column is-5 has-text-left'>
|
|
1339
|
+
<label>Type: </label>
|
|
1340
|
+
|
|
1341
|
+
<code class="param-type">number</code>
|
|
1342
|
+
|
|
1343
|
+
|
|
1344
|
+
</div>
|
|
1345
|
+
|
|
1346
|
+
</div>
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
<div class="columns">
|
|
1352
|
+
|
|
1353
|
+
<div class='param-desc column is-7'>items the items returned from search</div>
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
<div class='column is-5 has-text-left'>
|
|
1357
|
+
<label>Type: </label>
|
|
1358
|
+
|
|
1359
|
+
<code class="param-type">array.<object></code>
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
</div>
|
|
1363
|
+
|
|
1364
|
+
</div>
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
<div class="columns">
|
|
1370
|
+
|
|
1371
|
+
<div class='param-desc column is-7'>page the page of the search (on pagination), zero indexed</div>
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
<div class='column is-5 has-text-left'>
|
|
1375
|
+
<label>Type: </label>
|
|
1376
|
+
|
|
1377
|
+
<code class="param-type">number</code>
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
</div>
|
|
1381
|
+
|
|
1382
|
+
</div>
|
|
1383
|
+
|
|
1384
|
+
|
|
1385
|
+
|
|
1386
|
+
|
|
1387
|
+
<div class="columns">
|
|
1388
|
+
|
|
1389
|
+
<div class='param-desc column is-7'>perPage how many items per page</div>
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
<div class='column is-5 has-text-left'>
|
|
1393
|
+
<label>Type: </label>
|
|
1394
|
+
|
|
1395
|
+
<code class="param-type">number</code>
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
</div>
|
|
1399
|
+
|
|
1400
|
+
</div>
|
|
1401
|
+
|
|
1402
|
+
|
|
1403
|
+
</div>
|
|
1404
|
+
</div>
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
<h5>Example</h5>
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1413
|
+
const api = new API();
|
|
1414
|
+
const params = {
|
|
1415
|
+
query: {"s":[{"historyBegin":{"order":"desc"}}],"i":1,"p":20},
|
|
1416
|
+
orgId: '55e4a3bd6be6b45210833fae',
|
|
1417
|
+
};
|
|
1418
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1419
|
+
const retSearch = await api.user.task.mytasks.find(params, session);</code></pre>
|
|
1420
|
+
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
</div>
|
|
1424
|
+
|
|
1425
|
+
<div class="member">
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
<h4 class="name" id="getAssignTaskUsers">
|
|
1430
|
+
<a class="href-link" href="#getAssignTaskUsers">#</a>
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
<span class='tag'>async</span>
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
<span class="code-name">
|
|
1437
|
+
|
|
1438
|
+
getAssignTaskUsers<span class="signature">(params, session)</span><span class="type-signature"> → {promise}</span>
|
|
531
1439
|
|
|
532
1440
|
</span>
|
|
533
1441
|
</h4>
|
|
@@ -536,7 +1444,7 @@ await api.user.task.mytasks.addMultiTaskUser(params, session);</code></pre>
|
|
|
536
1444
|
|
|
537
1445
|
|
|
538
1446
|
<div class="description">
|
|
539
|
-
Method to
|
|
1447
|
+
Method to get assign task users
|
|
540
1448
|
</div>
|
|
541
1449
|
|
|
542
1450
|
|
|
@@ -590,7 +1498,7 @@ await api.user.task.mytasks.addMultiTaskUser(params, session);</code></pre>
|
|
|
590
1498
|
|
|
591
1499
|
|
|
592
1500
|
|
|
593
|
-
<td class="description last">Params to get
|
|
1501
|
+
<td class="description last">Params to get task</td>
|
|
594
1502
|
</tr>
|
|
595
1503
|
|
|
596
1504
|
|
|
@@ -598,7 +1506,7 @@ await api.user.task.mytasks.addMultiTaskUser(params, session);</code></pre>
|
|
|
598
1506
|
|
|
599
1507
|
<tr class="deep-level-1">
|
|
600
1508
|
|
|
601
|
-
<td class="name"><code>
|
|
1509
|
+
<td class="name"><code>taskId</code></td>
|
|
602
1510
|
|
|
603
1511
|
|
|
604
1512
|
<td class="type">
|
|
@@ -614,7 +1522,7 @@ await api.user.task.mytasks.addMultiTaskUser(params, session);</code></pre>
|
|
|
614
1522
|
|
|
615
1523
|
|
|
616
1524
|
|
|
617
|
-
<td class="description last">
|
|
1525
|
+
<td class="description last">Task id (_id database)</td>
|
|
618
1526
|
</tr>
|
|
619
1527
|
|
|
620
1528
|
|
|
@@ -719,7 +1627,7 @@ await api.user.task.mytasks.addMultiTaskUser(params, session);</code></pre>
|
|
|
719
1627
|
<p class="tag-source">
|
|
720
1628
|
<a href="user_my_tasks.js.html" class="button">View Source</a>
|
|
721
1629
|
<span>
|
|
722
|
-
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#
|
|
1630
|
+
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#line317">line 317</a>
|
|
723
1631
|
</span>
|
|
724
1632
|
</p>
|
|
725
1633
|
|
|
@@ -750,8 +1658,6 @@ await api.user.task.mytasks.addMultiTaskUser(params, session);</code></pre>
|
|
|
750
1658
|
|
|
751
1659
|
<div class="columns">
|
|
752
1660
|
|
|
753
|
-
<div class='param-desc column is-7'>returned data from the search</div>
|
|
754
|
-
|
|
755
1661
|
|
|
756
1662
|
<div class='column is-5 has-text-left'>
|
|
757
1663
|
<label>Type: </label>
|
|
@@ -764,71 +1670,269 @@ await api.user.task.mytasks.addMultiTaskUser(params, session);</code></pre>
|
|
|
764
1670
|
</div>
|
|
765
1671
|
|
|
766
1672
|
|
|
767
|
-
|
|
1673
|
+
</div>
|
|
1674
|
+
</div>
|
|
768
1675
|
|
|
769
|
-
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
|
|
1679
|
+
<h5>Example</h5>
|
|
770
1680
|
|
|
771
|
-
<div class='param-desc column is-7'>count the count of items searched</div>
|
|
772
1681
|
|
|
1682
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1683
|
+
const api = new API();
|
|
1684
|
+
const params = {
|
|
1685
|
+
taskId: '5df7f19618430c89a41a19d2',
|
|
1686
|
+
orgId: '55e4a3bd6be6b45210833fae',
|
|
1687
|
+
};
|
|
1688
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1689
|
+
await api.user.task.mytasks.getAssignTaskUsers(params, session);</code></pre>
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
|
|
1693
|
+
</div>
|
|
1694
|
+
|
|
1695
|
+
<div class="member">
|
|
1696
|
+
|
|
1697
|
+
|
|
1698
|
+
|
|
1699
|
+
<h4 class="name" id="getTaskMultiUsers">
|
|
1700
|
+
<a class="href-link" href="#getTaskMultiUsers">#</a>
|
|
1701
|
+
|
|
1702
|
+
|
|
1703
|
+
<span class='tag'>async</span>
|
|
1704
|
+
|
|
1705
|
+
|
|
1706
|
+
<span class="code-name">
|
|
1707
|
+
|
|
1708
|
+
getTaskMultiUsers<span class="signature">(params, session)</span><span class="type-signature"> → {promise}</span>
|
|
1709
|
+
|
|
1710
|
+
</span>
|
|
1711
|
+
</h4>
|
|
1712
|
+
|
|
1713
|
+
|
|
1714
|
+
|
|
1715
|
+
|
|
1716
|
+
<div class="description">
|
|
1717
|
+
Method to get task multi users
|
|
1718
|
+
</div>
|
|
1719
|
+
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
|
|
1723
|
+
|
|
1724
|
+
|
|
1725
|
+
|
|
1726
|
+
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
<h5>Parameters:</h5>
|
|
1730
|
+
|
|
1731
|
+
<div class="table-container">
|
|
1732
|
+
<table class="params table">
|
|
1733
|
+
<thead>
|
|
1734
|
+
<tr>
|
|
1735
|
+
|
|
1736
|
+
<th>Name</th>
|
|
1737
|
+
|
|
1738
|
+
|
|
1739
|
+
<th>Type</th>
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
|
|
1743
|
+
|
|
1744
|
+
|
|
1745
|
+
<th class="last">Description</th>
|
|
1746
|
+
</tr>
|
|
1747
|
+
</thead>
|
|
1748
|
+
|
|
1749
|
+
<tbody>
|
|
1750
|
+
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
<tr class="deep-level-0">
|
|
1754
|
+
|
|
1755
|
+
<td class="name"><code>params</code></td>
|
|
1756
|
+
|
|
1757
|
+
|
|
1758
|
+
<td class="type">
|
|
1759
|
+
|
|
1760
|
+
|
|
1761
|
+
<code class="param-type">object</code>
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
|
|
1765
|
+
</td>
|
|
1766
|
+
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
|
|
1770
|
+
|
|
1771
|
+
<td class="description last">Params to get task</td>
|
|
1772
|
+
</tr>
|
|
1773
|
+
|
|
1774
|
+
|
|
1775
|
+
|
|
1776
|
+
|
|
1777
|
+
<tr class="deep-level-1">
|
|
1778
|
+
|
|
1779
|
+
<td class="name"><code>taskId</code></td>
|
|
1780
|
+
|
|
1781
|
+
|
|
1782
|
+
<td class="type">
|
|
1783
|
+
|
|
1784
|
+
|
|
1785
|
+
<code class="param-type">object</code>
|
|
1786
|
+
|
|
1787
|
+
|
|
1788
|
+
|
|
1789
|
+
</td>
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
<td class="description last">Task id (_id database)</td>
|
|
1796
|
+
</tr>
|
|
1797
|
+
|
|
1798
|
+
|
|
1799
|
+
|
|
1800
|
+
<tr class="deep-level-1">
|
|
1801
|
+
|
|
1802
|
+
<td class="name"><code>orgId</code></td>
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
<td class="type">
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
<code class="param-type">object</code>
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
|
|
1812
|
+
</td>
|
|
1813
|
+
|
|
1814
|
+
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
|
|
1818
|
+
<td class="description last">Organization id (_id database)</td>
|
|
1819
|
+
</tr>
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
|
|
1826
|
+
|
|
1827
|
+
<tr class="deep-level-0">
|
|
1828
|
+
|
|
1829
|
+
<td class="name"><code>session</code></td>
|
|
1830
|
+
|
|
1831
|
+
|
|
1832
|
+
<td class="type">
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
<code class="param-type">string</code>
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
</td>
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
<td class="description last">Session, token JWT</td>
|
|
1846
|
+
</tr>
|
|
1847
|
+
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
</tbody>
|
|
1851
|
+
</table>
|
|
1852
|
+
</div>
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
<dl class="details">
|
|
1859
|
+
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
|
|
1864
|
+
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
|
|
1869
|
+
|
|
1870
|
+
|
|
1871
|
+
|
|
1872
|
+
|
|
1873
|
+
|
|
1874
|
+
|
|
1875
|
+
|
|
1876
|
+
|
|
1877
|
+
<dt class="tag-author">Author:</dt>
|
|
1878
|
+
<dd class="tag-author">
|
|
1879
|
+
<ul>
|
|
1880
|
+
<li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
|
|
1881
|
+
</ul>
|
|
1882
|
+
</dd>
|
|
1883
|
+
|
|
1884
|
+
|
|
773
1885
|
|
|
774
|
-
<div class='column is-5 has-text-left'>
|
|
775
|
-
<label>Type: </label>
|
|
776
|
-
|
|
777
|
-
<code class="param-type">number</code>
|
|
778
1886
|
|
|
1887
|
+
|
|
779
1888
|
|
|
780
|
-
</div>
|
|
781
1889
|
|
|
782
|
-
|
|
1890
|
+
|
|
783
1891
|
|
|
784
|
-
|
|
785
|
-
|
|
1892
|
+
|
|
786
1893
|
|
|
787
|
-
<div class="columns">
|
|
788
1894
|
|
|
789
|
-
|
|
1895
|
+
|
|
790
1896
|
|
|
1897
|
+
<p class="tag-source">
|
|
1898
|
+
<a href="user_my_tasks.js.html" class="button">View Source</a>
|
|
1899
|
+
<span>
|
|
1900
|
+
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#line194">line 194</a>
|
|
1901
|
+
</span>
|
|
1902
|
+
</p>
|
|
791
1903
|
|
|
792
|
-
|
|
793
|
-
<label>Type: </label>
|
|
794
|
-
|
|
795
|
-
<code class="param-type">array.<object></code>
|
|
1904
|
+
</dl>
|
|
796
1905
|
|
|
797
1906
|
|
|
798
|
-
</div>
|
|
799
|
-
|
|
800
|
-
</div>
|
|
801
1907
|
|
|
802
|
-
|
|
803
|
-
|
|
804
1908
|
|
|
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
1909
|
|
|
815
1910
|
|
|
816
|
-
</div>
|
|
817
|
-
|
|
818
|
-
</div>
|
|
819
1911
|
|
|
820
|
-
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
|
|
1915
|
+
|
|
1916
|
+
|
|
1917
|
+
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
|
|
1921
|
+
|
|
1922
|
+
|
|
1923
|
+
<div class='columns method-parameter'>
|
|
1924
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
1925
|
+
<div class="column is-10">
|
|
1926
|
+
|
|
821
1927
|
|
|
822
1928
|
|
|
823
1929
|
<div class="columns">
|
|
824
1930
|
|
|
825
|
-
<div class='param-desc column is-7'>perPage how many items per page</div>
|
|
826
|
-
|
|
827
1931
|
|
|
828
1932
|
<div class='column is-5 has-text-left'>
|
|
829
1933
|
<label>Type: </label>
|
|
830
1934
|
|
|
831
|
-
<code class="param-type">
|
|
1935
|
+
<code class="param-type">promise</code>
|
|
832
1936
|
|
|
833
1937
|
|
|
834
1938
|
</div>
|
|
@@ -848,11 +1952,11 @@ await api.user.task.mytasks.addMultiTaskUser(params, session);</code></pre>
|
|
|
848
1952
|
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
849
1953
|
const api = new API();
|
|
850
1954
|
const params = {
|
|
851
|
-
|
|
1955
|
+
taskId: '5df7f19618430c89a41a19d2',
|
|
852
1956
|
orgId: '55e4a3bd6be6b45210833fae',
|
|
853
1957
|
};
|
|
854
1958
|
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
855
|
-
|
|
1959
|
+
await api.user.task.mytasks.getTaskMultiUsers(params, session);</code></pre>
|
|
856
1960
|
|
|
857
1961
|
|
|
858
1962
|
|
|
@@ -862,8 +1966,8 @@ const retSearch = await api.user.task.mytasks.find(params, session);</code></pre
|
|
|
862
1966
|
|
|
863
1967
|
|
|
864
1968
|
|
|
865
|
-
<h4 class="name" id="
|
|
866
|
-
<a class="href-link" href="#
|
|
1969
|
+
<h4 class="name" id="removeDueDate">
|
|
1970
|
+
<a class="href-link" href="#removeDueDate">#</a>
|
|
867
1971
|
|
|
868
1972
|
|
|
869
1973
|
<span class='tag'>async</span>
|
|
@@ -871,7 +1975,7 @@ const retSearch = await api.user.task.mytasks.find(params, session);</code></pre
|
|
|
871
1975
|
|
|
872
1976
|
<span class="code-name">
|
|
873
1977
|
|
|
874
|
-
|
|
1978
|
+
removeDueDate<span class="signature">(session)</span><span class="type-signature"> → {Promise}</span>
|
|
875
1979
|
|
|
876
1980
|
</span>
|
|
877
1981
|
</h4>
|
|
@@ -880,7 +1984,7 @@ const retSearch = await api.user.task.mytasks.find(params, session);</code></pre
|
|
|
880
1984
|
|
|
881
1985
|
|
|
882
1986
|
<div class="description">
|
|
883
|
-
|
|
1987
|
+
Update task dueDate
|
|
884
1988
|
</div>
|
|
885
1989
|
|
|
886
1990
|
|
|
@@ -918,13 +2022,13 @@ const retSearch = await api.user.task.mytasks.find(params, session);</code></pre
|
|
|
918
2022
|
|
|
919
2023
|
<tr class="deep-level-0">
|
|
920
2024
|
|
|
921
|
-
<td class="name"><code>
|
|
2025
|
+
<td class="name"><code>data.orgId</code></td>
|
|
922
2026
|
|
|
923
2027
|
|
|
924
2028
|
<td class="type">
|
|
925
2029
|
|
|
926
2030
|
|
|
927
|
-
<code class="param-type">
|
|
2031
|
+
<code class="param-type">string</code>
|
|
928
2032
|
|
|
929
2033
|
|
|
930
2034
|
|
|
@@ -934,44 +2038,22 @@ const retSearch = await api.user.task.mytasks.find(params, session);</code></pre
|
|
|
934
2038
|
|
|
935
2039
|
|
|
936
2040
|
|
|
937
|
-
<td class="description last">
|
|
2041
|
+
<td class="description last">Organization id</td>
|
|
938
2042
|
</tr>
|
|
939
2043
|
|
|
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
2044
|
|
|
961
|
-
|
|
962
|
-
</tr>
|
|
2045
|
+
|
|
963
2046
|
|
|
2047
|
+
|
|
2048
|
+
<tr class="deep-level-0">
|
|
964
2049
|
|
|
965
|
-
|
|
966
|
-
<tr class="deep-level-1">
|
|
967
|
-
|
|
968
|
-
<td class="name"><code>orgId</code></td>
|
|
2050
|
+
<td class="name"><code>data.taskId</code></td>
|
|
969
2051
|
|
|
970
2052
|
|
|
971
2053
|
<td class="type">
|
|
972
2054
|
|
|
973
2055
|
|
|
974
|
-
<code class="param-type">
|
|
2056
|
+
<code class="param-type">string</code>
|
|
975
2057
|
|
|
976
2058
|
|
|
977
2059
|
|
|
@@ -981,11 +2063,9 @@ const retSearch = await api.user.task.mytasks.find(params, session);</code></pre
|
|
|
981
2063
|
|
|
982
2064
|
|
|
983
2065
|
|
|
984
|
-
<td class="description last">
|
|
2066
|
+
<td class="description last">Task Id</td>
|
|
985
2067
|
</tr>
|
|
986
2068
|
|
|
987
|
-
|
|
988
|
-
|
|
989
2069
|
|
|
990
2070
|
|
|
991
2071
|
|
|
@@ -1008,7 +2088,7 @@ const retSearch = await api.user.task.mytasks.find(params, session);</code></pre
|
|
|
1008
2088
|
|
|
1009
2089
|
|
|
1010
2090
|
|
|
1011
|
-
<td class="description last">
|
|
2091
|
+
<td class="description last">Is token JWT of user NOT allow SU</td>
|
|
1012
2092
|
</tr>
|
|
1013
2093
|
|
|
1014
2094
|
|
|
@@ -1063,7 +2143,7 @@ const retSearch = await api.user.task.mytasks.find(params, session);</code></pre
|
|
|
1063
2143
|
<p class="tag-source">
|
|
1064
2144
|
<a href="user_my_tasks.js.html" class="button">View Source</a>
|
|
1065
2145
|
<span>
|
|
1066
|
-
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#
|
|
2146
|
+
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#line156">line 156</a>
|
|
1067
2147
|
</span>
|
|
1068
2148
|
</p>
|
|
1069
2149
|
|
|
@@ -1098,7 +2178,7 @@ const retSearch = await api.user.task.mytasks.find(params, session);</code></pre
|
|
|
1098
2178
|
<div class='column is-5 has-text-left'>
|
|
1099
2179
|
<label>Type: </label>
|
|
1100
2180
|
|
|
1101
|
-
<code class="param-type">
|
|
2181
|
+
<code class="param-type">Promise</code>
|
|
1102
2182
|
|
|
1103
2183
|
|
|
1104
2184
|
</div>
|
|
@@ -1118,11 +2198,11 @@ const retSearch = await api.user.task.mytasks.find(params, session);</code></pre
|
|
|
1118
2198
|
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1119
2199
|
const api = new API();
|
|
1120
2200
|
const params = {
|
|
1121
|
-
|
|
1122
|
-
|
|
2201
|
+
orgId: '646386c9583e04a131adc894',
|
|
2202
|
+
taskId: '646386c9583e04a131adc895'
|
|
1123
2203
|
};
|
|
1124
2204
|
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1125
|
-
await api.user.task.mytasks.
|
|
2205
|
+
await api.user.task.mytasks.removeDueDate(params, session);</code></pre>
|
|
1126
2206
|
|
|
1127
2207
|
|
|
1128
2208
|
|
|
@@ -1132,8 +2212,8 @@ await api.user.task.mytasks.getTaskMultiUsers(params, session);</code></pre>
|
|
|
1132
2212
|
|
|
1133
2213
|
|
|
1134
2214
|
|
|
1135
|
-
<h4 class="name" id="
|
|
1136
|
-
<a class="href-link" href="#
|
|
2215
|
+
<h4 class="name" id="removeMultiTaskUser">
|
|
2216
|
+
<a class="href-link" href="#removeMultiTaskUser">#</a>
|
|
1137
2217
|
|
|
1138
2218
|
|
|
1139
2219
|
<span class='tag'>async</span>
|
|
@@ -1141,7 +2221,7 @@ await api.user.task.mytasks.getTaskMultiUsers(params, session);</code></pre>
|
|
|
1141
2221
|
|
|
1142
2222
|
<span class="code-name">
|
|
1143
2223
|
|
|
1144
|
-
|
|
2224
|
+
removeMultiTaskUser<span class="signature">(params, session)</span><span class="type-signature"> → {Promise}</span>
|
|
1145
2225
|
|
|
1146
2226
|
</span>
|
|
1147
2227
|
</h4>
|
|
@@ -1150,7 +2230,7 @@ await api.user.task.mytasks.getTaskMultiUsers(params, session);</code></pre>
|
|
|
1150
2230
|
|
|
1151
2231
|
|
|
1152
2232
|
<div class="description">
|
|
1153
|
-
|
|
2233
|
+
remove multi task user
|
|
1154
2234
|
</div>
|
|
1155
2235
|
|
|
1156
2236
|
|
|
@@ -1188,7 +2268,31 @@ await api.user.task.mytasks.getTaskMultiUsers(params, session);</code></pre>
|
|
|
1188
2268
|
|
|
1189
2269
|
<tr class="deep-level-0">
|
|
1190
2270
|
|
|
1191
|
-
<td class="name"><code>
|
|
2271
|
+
<td class="name"><code>params</code></td>
|
|
2272
|
+
|
|
2273
|
+
|
|
2274
|
+
<td class="type">
|
|
2275
|
+
|
|
2276
|
+
|
|
2277
|
+
<code class="param-type">object</code>
|
|
2278
|
+
|
|
2279
|
+
|
|
2280
|
+
|
|
2281
|
+
</td>
|
|
2282
|
+
|
|
2283
|
+
|
|
2284
|
+
|
|
2285
|
+
|
|
2286
|
+
|
|
2287
|
+
<td class="description last">Params of the user to be removed</td>
|
|
2288
|
+
</tr>
|
|
2289
|
+
|
|
2290
|
+
|
|
2291
|
+
|
|
2292
|
+
|
|
2293
|
+
<tr class="deep-level-1">
|
|
2294
|
+
|
|
2295
|
+
<td class="name"><code>userId</code></td>
|
|
1192
2296
|
|
|
1193
2297
|
|
|
1194
2298
|
<td class="type">
|
|
@@ -1204,16 +2308,37 @@ await api.user.task.mytasks.getTaskMultiUsers(params, session);</code></pre>
|
|
|
1204
2308
|
|
|
1205
2309
|
|
|
1206
2310
|
|
|
1207
|
-
<td class="description last">
|
|
2311
|
+
<td class="description last">User id</td>
|
|
1208
2312
|
</tr>
|
|
1209
2313
|
|
|
2314
|
+
|
|
2315
|
+
|
|
2316
|
+
<tr class="deep-level-1">
|
|
2317
|
+
|
|
2318
|
+
<td class="name"><code>orgId</code></td>
|
|
2319
|
+
|
|
2320
|
+
|
|
2321
|
+
<td class="type">
|
|
2322
|
+
|
|
2323
|
+
|
|
2324
|
+
<code class="param-type">string</code>
|
|
1210
2325
|
|
|
1211
|
-
|
|
1212
2326
|
|
|
1213
|
-
|
|
1214
|
-
<tr class="deep-level-0">
|
|
1215
2327
|
|
|
1216
|
-
|
|
2328
|
+
</td>
|
|
2329
|
+
|
|
2330
|
+
|
|
2331
|
+
|
|
2332
|
+
|
|
2333
|
+
|
|
2334
|
+
<td class="description last">Organization id</td>
|
|
2335
|
+
</tr>
|
|
2336
|
+
|
|
2337
|
+
|
|
2338
|
+
|
|
2339
|
+
<tr class="deep-level-1">
|
|
2340
|
+
|
|
2341
|
+
<td class="name"><code>taskId</code></td>
|
|
1217
2342
|
|
|
1218
2343
|
|
|
1219
2344
|
<td class="type">
|
|
@@ -1232,6 +2357,8 @@ await api.user.task.mytasks.getTaskMultiUsers(params, session);</code></pre>
|
|
|
1232
2357
|
<td class="description last">Task Id</td>
|
|
1233
2358
|
</tr>
|
|
1234
2359
|
|
|
2360
|
+
|
|
2361
|
+
|
|
1235
2362
|
|
|
1236
2363
|
|
|
1237
2364
|
|
|
@@ -1254,7 +2381,7 @@ await api.user.task.mytasks.getTaskMultiUsers(params, session);</code></pre>
|
|
|
1254
2381
|
|
|
1255
2382
|
|
|
1256
2383
|
|
|
1257
|
-
<td class="description last">Is token JWT of user
|
|
2384
|
+
<td class="description last">Is token JWT of user</td>
|
|
1258
2385
|
</tr>
|
|
1259
2386
|
|
|
1260
2387
|
|
|
@@ -1309,7 +2436,7 @@ await api.user.task.mytasks.getTaskMultiUsers(params, session);</code></pre>
|
|
|
1309
2436
|
<p class="tag-source">
|
|
1310
2437
|
<a href="user_my_tasks.js.html" class="button">View Source</a>
|
|
1311
2438
|
<span>
|
|
1312
|
-
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#
|
|
2439
|
+
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#line236">line 236</a>
|
|
1313
2440
|
</span>
|
|
1314
2441
|
</p>
|
|
1315
2442
|
|
|
@@ -1364,11 +2491,12 @@ await api.user.task.mytasks.getTaskMultiUsers(params, session);</code></pre>
|
|
|
1364
2491
|
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1365
2492
|
const api = new API();
|
|
1366
2493
|
const params = {
|
|
2494
|
+
userId: '646386c9583e04a131adc896',
|
|
1367
2495
|
orgId: '646386c9583e04a131adc894',
|
|
1368
2496
|
taskId: '646386c9583e04a131adc895'
|
|
1369
2497
|
};
|
|
1370
2498
|
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1371
|
-
await api.user.task.mytasks.
|
|
2499
|
+
await api.user.task.mytasks.removeMultiTaskUser(params, session);</code></pre>
|
|
1372
2500
|
|
|
1373
2501
|
|
|
1374
2502
|
|
|
@@ -1378,8 +2506,8 @@ await api.user.task.mytasks.removeDueDate(params, session);</code></pre>
|
|
|
1378
2506
|
|
|
1379
2507
|
|
|
1380
2508
|
|
|
1381
|
-
<h4 class="name" id="
|
|
1382
|
-
<a class="href-link" href="#
|
|
2509
|
+
<h4 class="name" id="saveDueDate">
|
|
2510
|
+
<a class="href-link" href="#saveDueDate">#</a>
|
|
1383
2511
|
|
|
1384
2512
|
|
|
1385
2513
|
<span class='tag'>async</span>
|
|
@@ -1387,7 +2515,7 @@ await api.user.task.mytasks.removeDueDate(params, session);</code></pre>
|
|
|
1387
2515
|
|
|
1388
2516
|
<span class="code-name">
|
|
1389
2517
|
|
|
1390
|
-
|
|
2518
|
+
saveDueDate<span class="signature">(params, session)</span><span class="type-signature"> → {Promise}</span>
|
|
1391
2519
|
|
|
1392
2520
|
</span>
|
|
1393
2521
|
</h4>
|
|
@@ -1396,7 +2524,7 @@ await api.user.task.mytasks.removeDueDate(params, session);</code></pre>
|
|
|
1396
2524
|
|
|
1397
2525
|
|
|
1398
2526
|
<div class="description">
|
|
1399
|
-
|
|
2527
|
+
Update task dueDate
|
|
1400
2528
|
</div>
|
|
1401
2529
|
|
|
1402
2530
|
|
|
@@ -1450,7 +2578,7 @@ await api.user.task.mytasks.removeDueDate(params, session);</code></pre>
|
|
|
1450
2578
|
|
|
1451
2579
|
|
|
1452
2580
|
|
|
1453
|
-
<td class="description last">
|
|
2581
|
+
<td class="description last">The Date to save</td>
|
|
1454
2582
|
</tr>
|
|
1455
2583
|
|
|
1456
2584
|
|
|
@@ -1458,7 +2586,7 @@ await api.user.task.mytasks.removeDueDate(params, session);</code></pre>
|
|
|
1458
2586
|
|
|
1459
2587
|
<tr class="deep-level-1">
|
|
1460
2588
|
|
|
1461
|
-
<td class="name"><code>
|
|
2589
|
+
<td class="name"><code>dueDate</code></td>
|
|
1462
2590
|
|
|
1463
2591
|
|
|
1464
2592
|
<td class="type">
|
|
@@ -1474,7 +2602,7 @@ await api.user.task.mytasks.removeDueDate(params, session);</code></pre>
|
|
|
1474
2602
|
|
|
1475
2603
|
|
|
1476
2604
|
|
|
1477
|
-
<td class="description last">
|
|
2605
|
+
<td class="description last">DueDate</td>
|
|
1478
2606
|
</tr>
|
|
1479
2607
|
|
|
1480
2608
|
|
|
@@ -1602,7 +2730,7 @@ await api.user.task.mytasks.removeDueDate(params, session);</code></pre>
|
|
|
1602
2730
|
<p class="tag-source">
|
|
1603
2731
|
<a href="user_my_tasks.js.html" class="button">View Source</a>
|
|
1604
2732
|
<span>
|
|
1605
|
-
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#
|
|
2733
|
+
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#line117">line 117</a>
|
|
1606
2734
|
</span>
|
|
1607
2735
|
</p>
|
|
1608
2736
|
|
|
@@ -1657,12 +2785,12 @@ await api.user.task.mytasks.removeDueDate(params, session);</code></pre>
|
|
|
1657
2785
|
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1658
2786
|
const api = new API();
|
|
1659
2787
|
const params = {
|
|
1660
|
-
|
|
2788
|
+
dueDate: '2011-10-05T14:48:00.000Z',
|
|
1661
2789
|
orgId: '646386c9583e04a131adc894',
|
|
1662
2790
|
taskId: '646386c9583e04a131adc895'
|
|
1663
2791
|
};
|
|
1664
2792
|
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1665
|
-
await api.user.task.mytasks.
|
|
2793
|
+
await api.user.task.mytasks.saveDueDate(params, session);</code></pre>
|
|
1666
2794
|
|
|
1667
2795
|
|
|
1668
2796
|
|
|
@@ -1672,8 +2800,8 @@ await api.user.task.mytasks.removeMultiTaskUser(params, session);</code></pre>
|
|
|
1672
2800
|
|
|
1673
2801
|
|
|
1674
2802
|
|
|
1675
|
-
<h4 class="name" id="
|
|
1676
|
-
<a class="href-link" href="#
|
|
2803
|
+
<h4 class="name" id="unclaim">
|
|
2804
|
+
<a class="href-link" href="#unclaim">#</a>
|
|
1677
2805
|
|
|
1678
2806
|
|
|
1679
2807
|
<span class='tag'>async</span>
|
|
@@ -1681,7 +2809,7 @@ await api.user.task.mytasks.removeMultiTaskUser(params, session);</code></pre>
|
|
|
1681
2809
|
|
|
1682
2810
|
<span class="code-name">
|
|
1683
2811
|
|
|
1684
|
-
|
|
2812
|
+
unclaim<span class="signature">(params, session)</span><span class="type-signature"> → {Promise}</span>
|
|
1685
2813
|
|
|
1686
2814
|
</span>
|
|
1687
2815
|
</h4>
|
|
@@ -1690,7 +2818,7 @@ await api.user.task.mytasks.removeMultiTaskUser(params, session);</code></pre>
|
|
|
1690
2818
|
|
|
1691
2819
|
|
|
1692
2820
|
<div class="description">
|
|
1693
|
-
|
|
2821
|
+
Unclaim task
|
|
1694
2822
|
</div>
|
|
1695
2823
|
|
|
1696
2824
|
|
|
@@ -1744,7 +2872,7 @@ await api.user.task.mytasks.removeMultiTaskUser(params, session);</code></pre>
|
|
|
1744
2872
|
|
|
1745
2873
|
|
|
1746
2874
|
|
|
1747
|
-
<td class="description last">The
|
|
2875
|
+
<td class="description last">The params to unclaim task</td>
|
|
1748
2876
|
</tr>
|
|
1749
2877
|
|
|
1750
2878
|
|
|
@@ -1752,30 +2880,7 @@ await api.user.task.mytasks.removeMultiTaskUser(params, session);</code></pre>
|
|
|
1752
2880
|
|
|
1753
2881
|
<tr class="deep-level-1">
|
|
1754
2882
|
|
|
1755
|
-
<td class="name"><code>
|
|
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>
|
|
2883
|
+
<td class="name"><code>orgName</code></td>
|
|
1779
2884
|
|
|
1780
2885
|
|
|
1781
2886
|
<td class="type">
|
|
@@ -1791,7 +2896,7 @@ await api.user.task.mytasks.removeMultiTaskUser(params, session);</code></pre>
|
|
|
1791
2896
|
|
|
1792
2897
|
|
|
1793
2898
|
|
|
1794
|
-
<td class="description last">Organization
|
|
2899
|
+
<td class="description last">Organization Name</td>
|
|
1795
2900
|
</tr>
|
|
1796
2901
|
|
|
1797
2902
|
|
|
@@ -1896,7 +3001,7 @@ await api.user.task.mytasks.removeMultiTaskUser(params, session);</code></pre>
|
|
|
1896
3001
|
<p class="tag-source">
|
|
1897
3002
|
<a href="user_my_tasks.js.html" class="button">View Source</a>
|
|
1898
3003
|
<span>
|
|
1899
|
-
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#
|
|
3004
|
+
<a href="user_my_tasks.js.html">user/my_tasks.js</a>, <a href="user_my_tasks.js.html#line399">line 399</a>
|
|
1900
3005
|
</span>
|
|
1901
3006
|
</p>
|
|
1902
3007
|
|
|
@@ -1951,12 +3056,11 @@ await api.user.task.mytasks.removeMultiTaskUser(params, session);</code></pre>
|
|
|
1951
3056
|
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
1952
3057
|
const api = new API();
|
|
1953
3058
|
const params = {
|
|
1954
|
-
|
|
1955
|
-
orgId: '646386c9583e04a131adc894',
|
|
3059
|
+
orgName: 'pinkbrain',
|
|
1956
3060
|
taskId: '646386c9583e04a131adc895'
|
|
1957
3061
|
};
|
|
1958
3062
|
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
1959
|
-
await api.user.task.mytasks.
|
|
3063
|
+
await api.user.task.mytasks.unclaim(params, session);</code></pre>
|
|
1960
3064
|
|
|
1961
3065
|
|
|
1962
3066
|
|