@genesislcap/mock-server 15.65.1-alpha-358eaead70.0 → 15.67.0

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 (51) hide show
  1. package/README.md +120 -4
  2. package/dist/handlers/auth.d.ts +24 -5
  3. package/dist/handlers/auth.js +196 -43
  4. package/dist/handlers/heartbeat.d.ts +2 -1
  5. package/dist/handlers/heartbeat.js +26 -3
  6. package/dist/handlers/http.d.ts +6 -3
  7. package/dist/handlers/http.js +266 -91
  8. package/dist/handlers/resources.d.ts +2 -1
  9. package/dist/handlers/resources.js +18 -2
  10. package/dist/index.d.ts +1 -1
  11. package/dist/presets/csv.d.ts +2 -0
  12. package/dist/presets/csv.js +52 -0
  13. package/dist/presets/index.d.ts +3 -0
  14. package/dist/presets/index.js +3 -0
  15. package/dist/presets/merge.d.ts +15 -0
  16. package/dist/presets/merge.js +76 -0
  17. package/dist/presets/platform/default-user.json +30 -0
  18. package/dist/presets/platform/profile-rights.json +242 -0
  19. package/dist/presets/platform/profiles.json +62 -0
  20. package/dist/presets/platform/resources.json +710 -0
  21. package/dist/presets/platform/rights.json +238 -0
  22. package/dist/presets/platform.d.ts +27 -0
  23. package/dist/presets/platform.js +410 -0
  24. package/dist/protocol/connection.d.ts +10 -2
  25. package/dist/protocol/connection.js +69 -3
  26. package/dist/protocol/msgNack.d.ts +2 -0
  27. package/dist/protocol/msgNack.js +18 -0
  28. package/dist/protocol/router.d.ts +2 -2
  29. package/dist/protocol/router.js +24 -7
  30. package/dist/server.js +30 -12
  31. package/dist/types.d.ts +18 -0
  32. package/package.json +8 -2
  33. package/src/handlers/auth.ts +232 -44
  34. package/src/handlers/heartbeat.ts +38 -4
  35. package/src/handlers/http.ts +317 -103
  36. package/src/handlers/resources.ts +19 -2
  37. package/src/index.ts +2 -0
  38. package/src/presets/csv.ts +50 -0
  39. package/src/presets/index.ts +8 -0
  40. package/src/presets/merge.ts +79 -0
  41. package/src/presets/platform/default-user.json +30 -0
  42. package/src/presets/platform/profile-rights.json +242 -0
  43. package/src/presets/platform/profiles.json +62 -0
  44. package/src/presets/platform/resources.json +710 -0
  45. package/src/presets/platform/rights.json +238 -0
  46. package/src/presets/platform.ts +503 -0
  47. package/src/protocol/connection.ts +77 -3
  48. package/src/protocol/msgNack.ts +25 -0
  49. package/src/protocol/router.ts +31 -8
  50. package/src/server.ts +35 -12
  51. package/src/types.ts +69 -3
@@ -0,0 +1,242 @@
1
+ [
2
+ {
3
+ "PROFILE_NAME": "USER_ADMIN",
4
+ "RIGHT_CODE": "INSERT_USER"
5
+ },
6
+ {
7
+ "PROFILE_NAME": "USER_ADMIN",
8
+ "RIGHT_CODE": "AMEND_USER"
9
+ },
10
+ {
11
+ "PROFILE_NAME": "USER_ADMIN",
12
+ "RIGHT_CODE": "DELETE_USER"
13
+ },
14
+ {
15
+ "PROFILE_NAME": "USER_ADMIN",
16
+ "RIGHT_CODE": "CHANGE_PWD"
17
+ },
18
+ {
19
+ "PROFILE_NAME": "USER_ADMIN",
20
+ "RIGHT_CODE": "EXPIRE_PWD"
21
+ },
22
+ {
23
+ "PROFILE_NAME": "USER_ADMIN",
24
+ "RIGHT_CODE": "ENABLE_USER"
25
+ },
26
+ {
27
+ "PROFILE_NAME": "USER_ADMIN",
28
+ "RIGHT_CODE": "DISABLE_USER"
29
+ },
30
+ {
31
+ "PROFILE_NAME": "USER_ADMIN",
32
+ "RIGHT_CODE": "INSERT_PROFILE"
33
+ },
34
+ {
35
+ "PROFILE_NAME": "USER_ADMIN",
36
+ "RIGHT_CODE": "DELETE_PROFILE"
37
+ },
38
+ {
39
+ "PROFILE_NAME": "USER_ADMIN",
40
+ "RIGHT_CODE": "AMEND_PROFILE"
41
+ },
42
+ {
43
+ "PROFILE_NAME": "USER_ADMIN",
44
+ "RIGHT_CODE": "USER_PROFILE_AMEND"
45
+ },
46
+ {
47
+ "PROFILE_NAME": "FILE_STORAGE_USER",
48
+ "RIGHT_CODE": "FileStorageView"
49
+ },
50
+ {
51
+ "PROFILE_NAME": "FILE_STORAGE_USER",
52
+ "RIGHT_CODE": "FileStorageUpload"
53
+ },
54
+ {
55
+ "PROFILE_NAME": "FILE_STORAGE_USER",
56
+ "RIGHT_CODE": "FileStorageReplace"
57
+ },
58
+ {
59
+ "PROFILE_NAME": "FILE_STORAGE_USER",
60
+ "RIGHT_CODE": "FileStorageDelete"
61
+ },
62
+ {
63
+ "PROFILE_NAME": "FILE_STORAGE_USER",
64
+ "RIGHT_CODE": "FileStorageDownload"
65
+ },
66
+ {
67
+ "PROFILE_NAME": "FILE_STORAGE_USER",
68
+ "RIGHT_CODE": "TemplateAssetsInsert"
69
+ },
70
+ {
71
+ "PROFILE_NAME": "FILE_STORAGE_ADMIN",
72
+ "RIGHT_CODE": "FileStorageAdminAction"
73
+ },
74
+ {
75
+ "PROFILE_NAME": "NOTIFICATION_ADMIN",
76
+ "RIGHT_CODE": "NotificationAdminAction"
77
+ },
78
+ {
79
+ "PROFILE_NAME": "NOTIFICATION_RULE_ADMIN",
80
+ "RIGHT_CODE": "NotificationRuleCreate"
81
+ },
82
+ {
83
+ "PROFILE_NAME": "NOTIFICATION_RULE_ADMIN",
84
+ "RIGHT_CODE": "NotificationRuleUpdate"
85
+ },
86
+ {
87
+ "PROFILE_NAME": "NOTIFICATION_RULE_ADMIN",
88
+ "RIGHT_CODE": "NotificationRuleDelete"
89
+ },
90
+ {
91
+ "PROFILE_NAME": "NOTIFICATION_RULE_USER",
92
+ "RIGHT_CODE": "NotificationRuleSubscribe"
93
+ },
94
+ {
95
+ "PROFILE_NAME": "NOTIFICATION_RULE_USER",
96
+ "RIGHT_CODE": "NotificationRuleUnsubscribe"
97
+ },
98
+ {
99
+ "PROFILE_NAME": "NOTIFICATION_RULE_USER",
100
+ "RIGHT_CODE": "NotificationRuleEnable"
101
+ },
102
+ {
103
+ "PROFILE_NAME": "NOTIFICATION_RULE_USER",
104
+ "RIGHT_CODE": "NotificationRuleDisable"
105
+ },
106
+ {
107
+ "PROFILE_NAME": "NOTIFICATION_RULE_USER",
108
+ "RIGHT_CODE": "NotificationRuleView"
109
+ },
110
+ {
111
+ "PROFILE_NAME": "NOTIFICATION_RULE_TEMPLATE_ADMIN",
112
+ "RIGHT_CODE": "NotificationRuleTemplateCreate"
113
+ },
114
+ {
115
+ "PROFILE_NAME": "NOTIFICATION_RULE_TEMPLATE_ADMIN",
116
+ "RIGHT_CODE": "NotificationRuleTemplateUpdate"
117
+ },
118
+ {
119
+ "PROFILE_NAME": "NOTIFICATION_RULE_TEMPLATE_ADMIN",
120
+ "RIGHT_CODE": "NotificationRuleTemplateDelete"
121
+ },
122
+ {
123
+ "PROFILE_NAME": "NOTIFICATION_RULE_TEMPLATE_ADMIN",
124
+ "RIGHT_CODE": "NotificationRuleTemplateView"
125
+ },
126
+ {
127
+ "PROFILE_NAME": "NOTIFICATION_ROUTE_ADMIN",
128
+ "RIGHT_CODE": "NotificationRouteCreate"
129
+ },
130
+ {
131
+ "PROFILE_NAME": "NOTIFICATION_ROUTE_ADMIN",
132
+ "RIGHT_CODE": "NotificationRouteDelete"
133
+ },
134
+ {
135
+ "PROFILE_NAME": "NOTIFICATION_ROUTE_ADMIN",
136
+ "RIGHT_CODE": "NotificationRouteTopicsView"
137
+ },
138
+ {
139
+ "PROFILE_NAME": "NOTIFICATION_ROUTE_ADMIN",
140
+ "RIGHT_CODE": "NotificationRouteUpdate"
141
+ },
142
+ {
143
+ "PROFILE_NAME": "NOTIFICATION_ROUTE_ADMIN",
144
+ "RIGHT_CODE": "NotificationRouteView"
145
+ },
146
+ {
147
+ "PROFILE_NAME": "NOTIFICATION_USER",
148
+ "RIGHT_CODE": "NotificationView"
149
+ },
150
+ {
151
+ "PROFILE_NAME": "NOTIFICATION_USER",
152
+ "RIGHT_CODE": "NotificationAuditView"
153
+ },
154
+ {
155
+ "PROFILE_NAME": "NOTIFICATION_SERVICE",
156
+ "RIGHT_CODE": "SendNotificationOnBehalfOfOthers"
157
+ },
158
+ {
159
+ "PROFILE_NAME": "RECONCILIATION_USER",
160
+ "RIGHT_CODE": "ReconciliationConfigView"
161
+ },
162
+ {
163
+ "PROFILE_NAME": "RECONCILIATION_USER",
164
+ "RIGHT_CODE": "ReconciliationConfigInsert"
165
+ },
166
+ {
167
+ "PROFILE_NAME": "RECONCILIATION_USER",
168
+ "RIGHT_CODE": "ReconciliationConfigUpdate"
169
+ },
170
+ {
171
+ "PROFILE_NAME": "RECONCILIATION_USER",
172
+ "RIGHT_CODE": "ReconciliationConfigDelete"
173
+ },
174
+ {
175
+ "PROFILE_NAME": "RECONCILIATION_USER",
176
+ "RIGHT_CODE": "ReconciliationDictionaryView"
177
+ },
178
+ {
179
+ "PROFILE_NAME": "RECONCILIATION_USER",
180
+ "RIGHT_CODE": "ReconciliationDictionaryInsert"
181
+ },
182
+ {
183
+ "PROFILE_NAME": "RECONCILIATION_USER",
184
+ "RIGHT_CODE": "ReconciliationDictionaryUpdate"
185
+ },
186
+ {
187
+ "PROFILE_NAME": "RECONCILIATION_USER",
188
+ "RIGHT_CODE": "ReconciliationDictionaryDelete"
189
+ },
190
+ {
191
+ "PROFILE_NAME": "RECONCILIATION_USER",
192
+ "RIGHT_CODE": "ReconciliationResultView"
193
+ },
194
+ {
195
+ "PROFILE_NAME": "RECONCILIATION_USER",
196
+ "RIGHT_CODE": "ReconciliationComment"
197
+ },
198
+ {
199
+ "PROFILE_NAME": "RECONCILIATION_USER",
200
+ "RIGHT_CODE": "ReconciliationRun"
201
+ },
202
+ {
203
+ "PROFILE_NAME": "RECONCILIATION_USER",
204
+ "RIGHT_CODE": "ReconciliationCancel"
205
+ },
206
+ {
207
+ "PROFILE_NAME": "REPORTING_USER",
208
+ "RIGHT_CODE": "ReportConfigurationView"
209
+ },
210
+ {
211
+ "PROFILE_NAME": "REPORTING_USER",
212
+ "RIGHT_CODE": "ReportConfigurationUpdate"
213
+ },
214
+ {
215
+ "PROFILE_NAME": "REPORTING_USER",
216
+ "RIGHT_CODE": "ReportConfigurationDelete"
217
+ },
218
+ {
219
+ "PROFILE_NAME": "REPORTING_USER",
220
+ "RIGHT_CODE": "ReportDestinationView"
221
+ },
222
+ {
223
+ "PROFILE_NAME": "REPORTING_USER",
224
+ "RIGHT_CODE": "ReportDestinationUpdate"
225
+ },
226
+ {
227
+ "PROFILE_NAME": "REPORTING_USER",
228
+ "RIGHT_CODE": "ReportDestinationDelete"
229
+ },
230
+ {
231
+ "PROFILE_NAME": "REPORTING_USER",
232
+ "RIGHT_CODE": "ReportRun"
233
+ },
234
+ {
235
+ "PROFILE_NAME": "REPORTING_USER",
236
+ "RIGHT_CODE": "ReportView"
237
+ },
238
+ {
239
+ "PROFILE_NAME": "REPORTING_USER",
240
+ "RIGHT_CODE": "ReportDelete"
241
+ }
242
+ ]
@@ -0,0 +1,62 @@
1
+ [
2
+ {
3
+ "NAME": "USER_ADMIN",
4
+ "DESCRIPTION": "User Admin",
5
+ "STATUS": "ENABLED"
6
+ },
7
+ {
8
+ "NAME": "FILE_STORAGE_USER",
9
+ "DESCRIPTION": "File Storage User has the ability to perform any user action related to file storage",
10
+ "STATUS": "ENABLED"
11
+ },
12
+ {
13
+ "NAME": "FILE_STORAGE_ADMIN",
14
+ "DESCRIPTION": "File Storage Admin has the ability to perform any admin action related to file storage",
15
+ "STATUS": "ENABLED"
16
+ },
17
+ {
18
+ "NAME": "NOTIFICATION_ADMIN",
19
+ "DESCRIPTION": "Notification Admin has the ability to perform any admin action related to notifications",
20
+ "STATUS": "ENABLED"
21
+ },
22
+ {
23
+ "NAME": "NOTIFICATION_RULE_ADMIN",
24
+ "DESCRIPTION": "Notification Rule Admin has the ability to create notification rules",
25
+ "STATUS": "ENABLED"
26
+ },
27
+ {
28
+ "NAME": "NOTIFICATION_RULE_TEMPLATE_ADMIN",
29
+ "DESCRIPTION": "Notification Rule Template Admin has the ability to create notification rule templates",
30
+ "STATUS": "ENABLED"
31
+ },
32
+ {
33
+ "NAME": "NOTIFICATION_RULE_USER",
34
+ "DESCRIPTION": "Notification Rule User has the ability to subscribe/unsubscribe etc to notification rules",
35
+ "STATUS": "ENABLED"
36
+ },
37
+ {
38
+ "NAME": "NOTIFICATION_ROUTE_ADMIN",
39
+ "DESCRIPTION": "Notification Route Admin has the ability to create notification routes",
40
+ "STATUS": "ENABLED"
41
+ },
42
+ {
43
+ "NAME": "NOTIFICATION_USER",
44
+ "DESCRIPTION": "Notification User can manage their own notification rules and receive notifications",
45
+ "STATUS": "ENABLED"
46
+ },
47
+ {
48
+ "NAME": "NOTIFICATION_SERVICE",
49
+ "DESCRIPTION": "Notification service accounts can send notifications on behalf of other users. This role can be used to set up global system notitfication rules.",
50
+ "STATUS": "ENABLED"
51
+ },
52
+ {
53
+ "NAME": "RECONCILIATION_USER",
54
+ "DESCRIPTION": "Reconciliation User has the ability to perform any user action related to reconciliations",
55
+ "STATUS": "ENABLED"
56
+ },
57
+ {
58
+ "NAME": "REPORTING_USER",
59
+ "DESCRIPTION": "Reporting user has the ability to perform any action relating to the reporting component",
60
+ "STATUS": "ENABLED"
61
+ }
62
+ ]