@docbrasil/api-systemmanager 1.1.0 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/.project +11 -0
  2. package/api/user/application.js +89 -0
  3. package/api/user/index.js +2 -0
  4. package/api/user/page.js +93 -0
  5. package/dist/bundle.cjs +172 -0
  6. package/dist/bundle.mjs +1 -1
  7. package/doc/api.md +95 -0
  8. package/docs/Admin.html +1 -1
  9. package/docs/AdminDocuments.html +1 -1
  10. package/docs/AdminForm.html +1 -1
  11. package/docs/AdminLists.html +1 -1
  12. package/docs/AdminMessage.html +1 -1
  13. package/docs/AdminNotification.html +1 -1
  14. package/docs/AdminPlugin.html +1 -1
  15. package/docs/AdminPolicy.html +1 -1
  16. package/docs/AdminProcesses.html +1 -1
  17. package/docs/AdminTask.html +1 -1
  18. package/docs/AdminUser.html +224 -6
  19. package/docs/Application.html +505 -0
  20. package/docs/Datasource.html +1 -1
  21. package/docs/Dispatch.html +1 -1
  22. package/docs/Documents.html +1 -1
  23. package/docs/External.html +1 -1
  24. package/docs/GeoLocation.html +1 -1
  25. package/docs/Help.html +674 -0
  26. package/docs/Login.html +1 -1
  27. package/docs/Notification.html +831 -1
  28. package/docs/Organization.html +1 -1
  29. package/docs/Page.html +553 -0
  30. package/docs/Process.html +1 -1
  31. package/docs/Register.html +1 -1
  32. package/docs/Session.html +1 -1
  33. package/docs/Task.html +1 -1
  34. package/docs/TaskAvailable.html +1 -1
  35. package/docs/Updates.html +428 -0
  36. package/docs/User.html +1 -1
  37. package/docs/Users.html +2 -2
  38. package/docs/admin_doctypes.js.html +1 -1
  39. package/docs/admin_document.js.html +1 -1
  40. package/docs/admin_form.js.html +1 -1
  41. package/docs/admin_index.js.html +1 -1
  42. package/docs/admin_list.js.html +1 -1
  43. package/docs/admin_message.js.html +1 -1
  44. package/docs/admin_notification.js.html +1 -1
  45. package/docs/admin_organization.js.html +1 -1
  46. package/docs/admin_plugin.js.html +1 -1
  47. package/docs/admin_policy.js.html +1 -1
  48. package/docs/admin_processes.js.html +1 -1
  49. package/docs/admin_task.js.html +1 -1
  50. package/docs/admin_user.js.html +31 -1
  51. package/docs/dispatch.js.html +1 -1
  52. package/docs/external.js.html +1 -1
  53. package/docs/general_geoLocation.js.html +1 -1
  54. package/docs/general_index.js.html +1 -1
  55. package/docs/index.html +1 -1
  56. package/docs/login.js.html +1 -1
  57. package/docs/session.js.html +1 -1
  58. package/docs/user_application.js.html +204 -0
  59. package/docs/user_datasource.js.html +1 -1
  60. package/docs/user_document.js.html +1 -1
  61. package/docs/user_help.js.html +230 -0
  62. package/docs/user_index.js.html +7 -1
  63. package/docs/user_notification.js.html +125 -1
  64. package/docs/user_organization.js.html +1 -1
  65. package/docs/user_page.js.html +210 -0
  66. package/docs/user_process.js.html +1 -1
  67. package/docs/user_register.js.html +1 -1
  68. package/docs/user_task.js.html +1 -1
  69. package/docs/user_task_available.js.html +1 -1
  70. package/docs/user_updates.js.html +195 -0
  71. package/docs/user_user.js.html +1 -1
  72. package/docs/utils_promises.js.html +1 -1
  73. package/package.json +1 -1
@@ -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="Datasource.html">Datasource</a></li><li><a href="Dispatch.html">Dispatch</a></li><li><a href="Documents.html">Documents</a></li><li><a href="External.html">External</a></li><li><a href="GeoLocation.html">GeoLocation</a></li><li><a href="Login.html">Login</a></li><li><a href="Notification.html">Notification</a></li><li><a href="Organization.html">Organization</a></li><li><a href="Process.html">Process</a></li><li><a href="Register.html">Register</a></li><li><a href="Session.html">Session</a></li><li><a href="Task.html">Task</a></li><li><a href="TaskAvailable.html">TaskAvailable</a></li><li><a href="User.html">User</a></li><li><a href="Users.html">Users</a></li></ul></div>
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="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="Login.html">Login</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="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>
@@ -584,6 +584,836 @@ const retData = await api.user.notification.addToken(params, session);</code></p
584
584
 
585
585
 
586
586
 
587
+ </div>
588
+
589
+ <div class="member">
590
+
591
+
592
+
593
+ <h4 class="name" id="getNew">
594
+ <a class="href-link" href="#getNew">#</a>
595
+
596
+
597
+ <span class='tag'>async</span>
598
+
599
+
600
+ <span class="code-name">
601
+
602
+ getNew<span class="signature">(session)</span><span class="type-signature"></span>
603
+
604
+ </span>
605
+ </h4>
606
+
607
+
608
+
609
+
610
+ <div class="description">
611
+ get new notifications
612
+ </div>
613
+
614
+
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
623
+ <h5>Parameters:</h5>
624
+
625
+ <div class="table-container">
626
+ <table class="params table">
627
+ <thead>
628
+ <tr>
629
+
630
+ <th>Name</th>
631
+
632
+
633
+ <th>Type</th>
634
+
635
+
636
+
637
+
638
+
639
+ <th class="last">Description</th>
640
+ </tr>
641
+ </thead>
642
+
643
+ <tbody>
644
+
645
+
646
+
647
+ <tr class="deep-level-0">
648
+
649
+ <td class="name"><code>session</code></td>
650
+
651
+
652
+ <td class="type">
653
+
654
+
655
+ <code class="param-type">string</code>
656
+
657
+
658
+
659
+ </td>
660
+
661
+
662
+
663
+
664
+
665
+ <td class="description last">JWT token</td>
666
+ </tr>
667
+
668
+
669
+
670
+ </tbody>
671
+ </table>
672
+ </div>
673
+
674
+
675
+
676
+
677
+
678
+ <dl class="details">
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+ <dt class="tag-author">Author:</dt>
698
+ <dd class="tag-author">
699
+ <ul>
700
+ <li><a href="mailto:abernardo.br@gmail.com">Augusto Pissarra</a></li>
701
+ </ul>
702
+ </dd>
703
+
704
+
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+ <p class="tag-source">
718
+ <a href="user_notification.js.html" class="button">View Source</a>
719
+ <span>
720
+ <a href="user_notification.js.html">user/notification.js</a>, <a href="user_notification.js.html#line113">line 113</a>
721
+ </span>
722
+ </p>
723
+
724
+ </dl>
725
+
726
+
727
+
728
+
729
+
730
+
731
+
732
+
733
+
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+
742
+
743
+
744
+
745
+
746
+ <h5>Example</h5>
747
+
748
+
749
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
750
+ const api = new API();
751
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
752
+ await api.user.notification.getNew(session);</code></pre>
753
+
754
+
755
+
756
+ </div>
757
+
758
+ <div class="member">
759
+
760
+
761
+
762
+ <h4 class="name" id="getOld">
763
+ <a class="href-link" href="#getOld">#</a>
764
+
765
+
766
+ <span class='tag'>async</span>
767
+
768
+
769
+ <span class="code-name">
770
+
771
+ getOld<span class="signature">(session)</span><span class="type-signature"></span>
772
+
773
+ </span>
774
+ </h4>
775
+
776
+
777
+
778
+
779
+ <div class="description">
780
+ get old notifications
781
+ </div>
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+ <h5>Parameters:</h5>
793
+
794
+ <div class="table-container">
795
+ <table class="params table">
796
+ <thead>
797
+ <tr>
798
+
799
+ <th>Name</th>
800
+
801
+
802
+ <th>Type</th>
803
+
804
+
805
+
806
+
807
+
808
+ <th class="last">Description</th>
809
+ </tr>
810
+ </thead>
811
+
812
+ <tbody>
813
+
814
+
815
+
816
+ <tr class="deep-level-0">
817
+
818
+ <td class="name"><code>session</code></td>
819
+
820
+
821
+ <td class="type">
822
+
823
+
824
+ <code class="param-type">string</code>
825
+
826
+
827
+
828
+ </td>
829
+
830
+
831
+
832
+
833
+
834
+ <td class="description last">JWT token</td>
835
+ </tr>
836
+
837
+
838
+
839
+ </tbody>
840
+ </table>
841
+ </div>
842
+
843
+
844
+
845
+
846
+
847
+ <dl class="details">
848
+
849
+
850
+
851
+
852
+
853
+
854
+
855
+
856
+
857
+
858
+
859
+
860
+
861
+
862
+
863
+
864
+
865
+
866
+ <dt class="tag-author">Author:</dt>
867
+ <dd class="tag-author">
868
+ <ul>
869
+ <li><a href="mailto:abernardo.br@gmail.com">Augusto Pissarra</a></li>
870
+ </ul>
871
+ </dd>
872
+
873
+
874
+
875
+
876
+
877
+
878
+
879
+
880
+
881
+
882
+
883
+
884
+
885
+
886
+ <p class="tag-source">
887
+ <a href="user_notification.js.html" class="button">View Source</a>
888
+ <span>
889
+ <a href="user_notification.js.html">user/notification.js</a>, <a href="user_notification.js.html#line139">line 139</a>
890
+ </span>
891
+ </p>
892
+
893
+ </dl>
894
+
895
+
896
+
897
+
898
+
899
+
900
+
901
+
902
+
903
+
904
+
905
+
906
+
907
+
908
+
909
+
910
+
911
+
912
+
913
+
914
+
915
+ <h5>Example</h5>
916
+
917
+
918
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
919
+ const api = new API();
920
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
921
+ await api.user.notification.getOld(session);</code></pre>
922
+
923
+
924
+
925
+ </div>
926
+
927
+ <div class="member">
928
+
929
+
930
+
931
+ <h4 class="name" id="setRead">
932
+ <a class="href-link" href="#setRead">#</a>
933
+
934
+
935
+ <span class='tag'>async</span>
936
+
937
+
938
+ <span class="code-name">
939
+
940
+ setRead<span class="signature">(params, session)</span><span class="type-signature"> &rarr; {Promise}</span>
941
+
942
+ </span>
943
+ </h4>
944
+
945
+
946
+
947
+
948
+ <div class="description">
949
+ Set notification as readed
950
+ </div>
951
+
952
+
953
+
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+ <h5>Parameters:</h5>
962
+
963
+ <div class="table-container">
964
+ <table class="params table">
965
+ <thead>
966
+ <tr>
967
+
968
+ <th>Name</th>
969
+
970
+
971
+ <th>Type</th>
972
+
973
+
974
+
975
+
976
+
977
+ <th class="last">Description</th>
978
+ </tr>
979
+ </thead>
980
+
981
+ <tbody>
982
+
983
+
984
+
985
+ <tr class="deep-level-0">
986
+
987
+ <td class="name"><code>params</code></td>
988
+
989
+
990
+ <td class="type">
991
+
992
+
993
+ <code class="param-type">object</code>
994
+
995
+
996
+
997
+ </td>
998
+
999
+
1000
+
1001
+
1002
+
1003
+ <td class="description last">Params to update the notification</td>
1004
+ </tr>
1005
+
1006
+
1007
+
1008
+
1009
+ <tr class="deep-level-1">
1010
+
1011
+ <td class="name"><code>id</code></td>
1012
+
1013
+
1014
+ <td class="type">
1015
+
1016
+
1017
+ <code class="param-type">string</code>
1018
+
1019
+
1020
+
1021
+ </td>
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+ <td class="description last">Notification Id</td>
1028
+ </tr>
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+ <tr class="deep-level-0">
1037
+
1038
+ <td class="name"><code>session</code></td>
1039
+
1040
+
1041
+ <td class="type">
1042
+
1043
+
1044
+ <code class="param-type">string</code>
1045
+
1046
+
1047
+
1048
+ </td>
1049
+
1050
+
1051
+
1052
+
1053
+
1054
+ <td class="description last">JWT Token</td>
1055
+ </tr>
1056
+
1057
+
1058
+
1059
+ </tbody>
1060
+ </table>
1061
+ </div>
1062
+
1063
+
1064
+
1065
+
1066
+
1067
+ <dl class="details">
1068
+
1069
+
1070
+
1071
+
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+ <dt class="tag-author">Author:</dt>
1087
+ <dd class="tag-author">
1088
+ <ul>
1089
+ <li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
1090
+ </ul>
1091
+ </dd>
1092
+
1093
+
1094
+
1095
+
1096
+
1097
+
1098
+
1099
+
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+ <p class="tag-source">
1107
+ <a href="user_notification.js.html" class="button">View Source</a>
1108
+ <span>
1109
+ <a href="user_notification.js.html">user/notification.js</a>, <a href="user_notification.js.html#line171">line 171</a>
1110
+ </span>
1111
+ </p>
1112
+
1113
+ </dl>
1114
+
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+
1124
+
1125
+
1126
+
1127
+
1128
+
1129
+
1130
+
1131
+
1132
+ <div class='columns method-parameter'>
1133
+ <div class="column is-2"><label>Returns:</label></div>
1134
+ <div class="column is-10">
1135
+
1136
+
1137
+
1138
+ <div class="columns">
1139
+
1140
+
1141
+ <div class='column is-5 has-text-left'>
1142
+ <label>Type: </label>
1143
+
1144
+ <code class="param-type">Promise</code>
1145
+
1146
+
1147
+ </div>
1148
+
1149
+ </div>
1150
+
1151
+
1152
+ </div>
1153
+ </div>
1154
+
1155
+
1156
+
1157
+
1158
+ <h5>Example</h5>
1159
+
1160
+
1161
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
1162
+ const api = new API();
1163
+ const params = {
1164
+ id: '34c344c43c34c344c43c'
1165
+ };
1166
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
1167
+ await api.user.notification.setRead(params, session);</code></pre>
1168
+
1169
+
1170
+
1171
+ </div>
1172
+
1173
+ <div class="member">
1174
+
1175
+
1176
+
1177
+ <h4 class="name" id="setUnread">
1178
+ <a class="href-link" href="#setUnread">#</a>
1179
+
1180
+
1181
+ <span class='tag'>async</span>
1182
+
1183
+
1184
+ <span class="code-name">
1185
+
1186
+ setUnread<span class="signature">(params, session)</span><span class="type-signature"> &rarr; {Promise}</span>
1187
+
1188
+ </span>
1189
+ </h4>
1190
+
1191
+
1192
+
1193
+
1194
+ <div class="description">
1195
+ Set notification as unreaded
1196
+ </div>
1197
+
1198
+
1199
+
1200
+
1201
+
1202
+
1203
+
1204
+
1205
+
1206
+
1207
+ <h5>Parameters:</h5>
1208
+
1209
+ <div class="table-container">
1210
+ <table class="params table">
1211
+ <thead>
1212
+ <tr>
1213
+
1214
+ <th>Name</th>
1215
+
1216
+
1217
+ <th>Type</th>
1218
+
1219
+
1220
+
1221
+
1222
+
1223
+ <th class="last">Description</th>
1224
+ </tr>
1225
+ </thead>
1226
+
1227
+ <tbody>
1228
+
1229
+
1230
+
1231
+ <tr class="deep-level-0">
1232
+
1233
+ <td class="name"><code>params</code></td>
1234
+
1235
+
1236
+ <td class="type">
1237
+
1238
+
1239
+ <code class="param-type">object</code>
1240
+
1241
+
1242
+
1243
+ </td>
1244
+
1245
+
1246
+
1247
+
1248
+
1249
+ <td class="description last">Params to update the notification</td>
1250
+ </tr>
1251
+
1252
+
1253
+
1254
+
1255
+ <tr class="deep-level-1">
1256
+
1257
+ <td class="name"><code>id</code></td>
1258
+
1259
+
1260
+ <td class="type">
1261
+
1262
+
1263
+ <code class="param-type">string</code>
1264
+
1265
+
1266
+
1267
+ </td>
1268
+
1269
+
1270
+
1271
+
1272
+
1273
+ <td class="description last">Notification Id</td>
1274
+ </tr>
1275
+
1276
+
1277
+
1278
+
1279
+
1280
+
1281
+
1282
+ <tr class="deep-level-0">
1283
+
1284
+ <td class="name"><code>session</code></td>
1285
+
1286
+
1287
+ <td class="type">
1288
+
1289
+
1290
+ <code class="param-type">string</code>
1291
+
1292
+
1293
+
1294
+ </td>
1295
+
1296
+
1297
+
1298
+
1299
+
1300
+ <td class="description last">JWT Token</td>
1301
+ </tr>
1302
+
1303
+
1304
+
1305
+ </tbody>
1306
+ </table>
1307
+ </div>
1308
+
1309
+
1310
+
1311
+
1312
+
1313
+ <dl class="details">
1314
+
1315
+
1316
+
1317
+
1318
+
1319
+
1320
+
1321
+
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+
1328
+
1329
+
1330
+
1331
+
1332
+ <dt class="tag-author">Author:</dt>
1333
+ <dd class="tag-author">
1334
+ <ul>
1335
+ <li><a href="mailto:abernardo.br@gmail.com">CloudBrasil</a></li>
1336
+ </ul>
1337
+ </dd>
1338
+
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+ <p class="tag-source">
1353
+ <a href="user_notification.js.html" class="button">View Source</a>
1354
+ <span>
1355
+ <a href="user_notification.js.html">user/notification.js</a>, <a href="user_notification.js.html#line207">line 207</a>
1356
+ </span>
1357
+ </p>
1358
+
1359
+ </dl>
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+ <div class='columns method-parameter'>
1379
+ <div class="column is-2"><label>Returns:</label></div>
1380
+ <div class="column is-10">
1381
+
1382
+
1383
+
1384
+ <div class="columns">
1385
+
1386
+
1387
+ <div class='column is-5 has-text-left'>
1388
+ <label>Type: </label>
1389
+
1390
+ <code class="param-type">Promise</code>
1391
+
1392
+
1393
+ </div>
1394
+
1395
+ </div>
1396
+
1397
+
1398
+ </div>
1399
+ </div>
1400
+
1401
+
1402
+
1403
+
1404
+ <h5>Example</h5>
1405
+
1406
+
1407
+ <pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
1408
+ const api = new API();
1409
+ const params = {
1410
+ id: '34c344c43c34c344c43c'
1411
+ };
1412
+ const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
1413
+ await api.user.notification.setUnread(params, session);</code></pre>
1414
+
1415
+
1416
+
587
1417
  </div>
588
1418
 
589
1419
  </div>