permissions-contractx 1.0.2 → 1.2.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.
- package/LICENSE +1 -1
- package/README.md +53 -1346
- package/dist/constants/contractx-permissions.constants.d.ts +84 -92
- package/dist/constants/contractx-permissions.constants.d.ts.map +1 -1
- package/dist/constants/contractx-permissions.constants.js +2 -2
- package/dist/constants/contractx-roles.constants.d.ts +150 -254
- package/dist/constants/contractx-roles.constants.d.ts.map +1 -1
- package/dist/constants/contractx-roles.constants.js +2 -2
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +1 -0
- package/dist/constants/permission-names.constants.d.ts +432 -0
- package/dist/constants/permission-names.constants.d.ts.map +1 -0
- package/dist/constants/permission-names.constants.js +304 -0
- package/dist/constants/security.constants.d.ts +49 -49
- package/dist/constants/security.constants.d.ts.map +1 -1
- package/dist/constants/security.constants.js +2 -2
- package/dist/decorators/current-user.decorator.d.ts +5 -53
- package/dist/decorators/current-user.decorator.d.ts.map +1 -1
- package/dist/decorators/current-user.decorator.js +4 -51
- package/dist/decorators/index.d.ts +1 -0
- package/dist/decorators/index.d.ts.map +1 -1
- package/dist/decorators/index.js +1 -0
- package/dist/decorators/permission-writes.decorator.d.ts +14 -0
- package/dist/decorators/permission-writes.decorator.d.ts.map +1 -0
- package/dist/decorators/permission-writes.decorator.js +18 -0
- package/dist/decorators/permissions.decorator.d.ts +0 -58
- package/dist/decorators/permissions.decorator.d.ts.map +1 -1
- package/dist/decorators/permissions.decorator.js +0 -58
- package/dist/decorators/public.decorator.d.ts +0 -0
- package/dist/decorators/public.decorator.d.ts.map +0 -0
- package/dist/decorators/public.decorator.js +0 -0
- package/dist/decorators/roles.decorator.d.ts +4 -57
- package/dist/decorators/roles.decorator.d.ts.map +1 -1
- package/dist/decorators/roles.decorator.js +6 -57
- package/dist/guards/authorization.guard.d.ts +37 -0
- package/dist/guards/authorization.guard.d.ts.map +1 -0
- package/dist/guards/authorization.guard.js +150 -0
- package/dist/guards/index.d.ts +1 -0
- package/dist/guards/index.d.ts.map +1 -1
- package/dist/guards/index.js +1 -0
- package/dist/guards/jwt-auth.guard.d.ts +0 -0
- package/dist/guards/jwt-auth.guard.d.ts.map +1 -1
- package/dist/guards/jwt-auth.guard.js +0 -0
- package/dist/guards/permissions.guard.d.ts +0 -0
- package/dist/guards/permissions.guard.d.ts.map +1 -1
- package/dist/guards/permissions.guard.js +8 -2
- package/dist/guards/roles.guard.d.ts +0 -0
- package/dist/guards/roles.guard.d.ts.map +1 -1
- package/dist/guards/roles.guard.js +1 -1
- package/dist/index.d.ts +0 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -6
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/index.js +1 -0
- package/dist/interfaces/jwt-payload.interface.d.ts +46 -9
- package/dist/interfaces/jwt-payload.interface.d.ts.map +1 -1
- package/dist/interfaces/jwt-payload.interface.js +19 -0
- package/dist/interfaces/permission-mode.enum.d.ts +22 -0
- package/dist/interfaces/permission-mode.enum.d.ts.map +1 -0
- package/dist/interfaces/permission-mode.enum.js +25 -0
- package/dist/modules/index.d.ts +0 -0
- package/dist/modules/index.d.ts.map +0 -0
- package/dist/modules/index.js +0 -0
- package/dist/modules/permissions-contractx.module.d.ts +0 -0
- package/dist/modules/permissions-contractx.module.d.ts.map +1 -1
- package/dist/modules/permissions-contractx.module.js +4 -2
- package/dist/services/contractx-authorization.service.d.ts +198 -27
- package/dist/services/contractx-authorization.service.d.ts.map +1 -1
- package/dist/services/contractx-authorization.service.js +2 -0
- package/dist/services/contractx-validation.service.d.ts +93 -12
- package/dist/services/contractx-validation.service.d.ts.map +1 -1
- package/dist/services/contractx-validation.service.js +1 -0
- package/dist/services/index.d.ts +0 -2
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +2 -0
- package/dist/services/user-context.service.d.ts +29 -34
- package/dist/services/user-context.service.d.ts.map +1 -1
- package/dist/services/user-context.service.js +65 -44
- package/package.json +5 -24
- package/dist/services/contractx-document-compliance.service.d.ts +0 -85
- package/dist/services/contractx-document-compliance.service.d.ts.map +0 -1
- package/dist/services/contractx-document-compliance.service.js +0 -536
- package/dist/test-document-compliance.d.ts +0 -7
- package/dist/test-document-compliance.d.ts.map +0 -1
- package/dist/test-document-compliance.js +0 -118
|
@@ -37,38 +37,38 @@ export declare enum ContractXPermissionCategory {
|
|
|
37
37
|
INTEGRATION = "integration"
|
|
38
38
|
}
|
|
39
39
|
export declare const CONTRACTX_MODULES: {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
40
|
+
CLIENTS: string;
|
|
41
|
+
CONTRACTS: string;
|
|
42
|
+
USERS: string;
|
|
43
|
+
PROVIDERS: string;
|
|
44
|
+
DOCUMENTS: string;
|
|
45
|
+
CLAUSES: string;
|
|
46
|
+
DELIVERABLES: string;
|
|
47
|
+
SUBDELIVERABLES: string;
|
|
48
|
+
DELIVERABLE_HISTORY: string;
|
|
49
|
+
SLA_SERVICES: string;
|
|
50
|
+
MEASUREMENT_WINDOWS: string;
|
|
51
|
+
CREDIT_SERVICE_LEVELS: string;
|
|
52
|
+
MEETINGS: string;
|
|
53
|
+
MEETING_PARTICIPANTS: string;
|
|
54
|
+
ACTION_ITEMS: string;
|
|
55
|
+
NOTIFICATION_ESCALATIONS: string;
|
|
56
|
+
INVOICE_SERVICES: string;
|
|
57
|
+
INVOICE_LINES: string;
|
|
58
|
+
SECURITY_CONTROL: string;
|
|
59
|
+
CONFIGURATION: string;
|
|
60
|
+
WORKFLOWS: string;
|
|
61
61
|
};
|
|
62
62
|
export declare const PERMISSION_ACTIONS: {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
c: ContractXPermissionType;
|
|
64
|
+
r: ContractXPermissionType;
|
|
65
|
+
u: ContractXPermissionType;
|
|
66
|
+
d: ContractXPermissionType;
|
|
67
|
+
s: ContractXPermissionType;
|
|
68
|
+
f: ContractXPermissionType;
|
|
69
69
|
};
|
|
70
70
|
export declare const CONTRACTX_PERMISSIONS: {
|
|
71
|
-
|
|
71
|
+
CLIENTS: {
|
|
72
72
|
CREATE: string;
|
|
73
73
|
READ: string;
|
|
74
74
|
UPDATE: string;
|
|
@@ -77,7 +77,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
77
77
|
FILTER: string;
|
|
78
78
|
ADMIN: string;
|
|
79
79
|
};
|
|
80
|
-
|
|
80
|
+
CONTRACTS: {
|
|
81
81
|
CREATE: string;
|
|
82
82
|
READ: string;
|
|
83
83
|
UPDATE: string;
|
|
@@ -86,7 +86,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
86
86
|
FILTER: string;
|
|
87
87
|
ADMIN: string;
|
|
88
88
|
};
|
|
89
|
-
|
|
89
|
+
USERS: {
|
|
90
90
|
CREATE: string;
|
|
91
91
|
READ: string;
|
|
92
92
|
UPDATE: string;
|
|
@@ -95,7 +95,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
95
95
|
FILTER: string;
|
|
96
96
|
ADMIN: string;
|
|
97
97
|
};
|
|
98
|
-
|
|
98
|
+
PROVIDERS: {
|
|
99
99
|
CREATE: string;
|
|
100
100
|
READ: string;
|
|
101
101
|
UPDATE: string;
|
|
@@ -104,7 +104,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
104
104
|
FILTER: string;
|
|
105
105
|
ADMIN: string;
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
DOCUMENTS: {
|
|
108
108
|
CREATE: string;
|
|
109
109
|
READ: string;
|
|
110
110
|
UPDATE: string;
|
|
@@ -113,7 +113,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
113
113
|
FILTER: string;
|
|
114
114
|
ADMIN: string;
|
|
115
115
|
};
|
|
116
|
-
|
|
116
|
+
CLAUSES: {
|
|
117
117
|
CREATE: string;
|
|
118
118
|
READ: string;
|
|
119
119
|
UPDATE: string;
|
|
@@ -122,7 +122,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
122
122
|
FILTER: string;
|
|
123
123
|
ADMIN: string;
|
|
124
124
|
};
|
|
125
|
-
|
|
125
|
+
DELIVERABLES: {
|
|
126
126
|
CREATE: string;
|
|
127
127
|
READ: string;
|
|
128
128
|
UPDATE: string;
|
|
@@ -131,7 +131,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
131
131
|
FILTER: string;
|
|
132
132
|
ADMIN: string;
|
|
133
133
|
};
|
|
134
|
-
|
|
134
|
+
SUBDELIVERABLES: {
|
|
135
135
|
CREATE: string;
|
|
136
136
|
READ: string;
|
|
137
137
|
UPDATE: string;
|
|
@@ -140,7 +140,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
140
140
|
FILTER: string;
|
|
141
141
|
ADMIN: string;
|
|
142
142
|
};
|
|
143
|
-
|
|
143
|
+
DELIVERABLE_HISTORY: {
|
|
144
144
|
CREATE: string;
|
|
145
145
|
READ: string;
|
|
146
146
|
UPDATE: string;
|
|
@@ -149,7 +149,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
149
149
|
FILTER: string;
|
|
150
150
|
ADMIN: string;
|
|
151
151
|
};
|
|
152
|
-
|
|
152
|
+
SLA_SERVICES: {
|
|
153
153
|
CREATE: string;
|
|
154
154
|
READ: string;
|
|
155
155
|
UPDATE: string;
|
|
@@ -158,7 +158,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
158
158
|
FILTER: string;
|
|
159
159
|
ADMIN: string;
|
|
160
160
|
};
|
|
161
|
-
|
|
161
|
+
MEASUREMENT_WINDOWS: {
|
|
162
162
|
CREATE: string;
|
|
163
163
|
READ: string;
|
|
164
164
|
UPDATE: string;
|
|
@@ -167,7 +167,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
167
167
|
FILTER: string;
|
|
168
168
|
ADMIN: string;
|
|
169
169
|
};
|
|
170
|
-
|
|
170
|
+
CREDIT_SERVICE_LEVELS: {
|
|
171
171
|
CREATE: string;
|
|
172
172
|
READ: string;
|
|
173
173
|
UPDATE: string;
|
|
@@ -176,7 +176,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
176
176
|
FILTER: string;
|
|
177
177
|
ADMIN: string;
|
|
178
178
|
};
|
|
179
|
-
|
|
179
|
+
MEETINGS: {
|
|
180
180
|
CREATE: string;
|
|
181
181
|
READ: string;
|
|
182
182
|
UPDATE: string;
|
|
@@ -185,7 +185,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
185
185
|
FILTER: string;
|
|
186
186
|
ADMIN: string;
|
|
187
187
|
};
|
|
188
|
-
|
|
188
|
+
MEETING_PARTICIPANTS: {
|
|
189
189
|
CREATE: string;
|
|
190
190
|
READ: string;
|
|
191
191
|
UPDATE: string;
|
|
@@ -194,7 +194,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
194
194
|
FILTER: string;
|
|
195
195
|
ADMIN: string;
|
|
196
196
|
};
|
|
197
|
-
|
|
197
|
+
ACTION_ITEMS: {
|
|
198
198
|
CREATE: string;
|
|
199
199
|
READ: string;
|
|
200
200
|
UPDATE: string;
|
|
@@ -203,7 +203,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
203
203
|
FILTER: string;
|
|
204
204
|
ADMIN: string;
|
|
205
205
|
};
|
|
206
|
-
|
|
206
|
+
NOTIFICATION_ESCALATIONS: {
|
|
207
207
|
CREATE: string;
|
|
208
208
|
READ: string;
|
|
209
209
|
UPDATE: string;
|
|
@@ -212,7 +212,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
212
212
|
FILTER: string;
|
|
213
213
|
ADMIN: string;
|
|
214
214
|
};
|
|
215
|
-
|
|
215
|
+
INVOICE_SERVICES: {
|
|
216
216
|
CREATE: string;
|
|
217
217
|
READ: string;
|
|
218
218
|
UPDATE: string;
|
|
@@ -221,7 +221,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
221
221
|
FILTER: string;
|
|
222
222
|
ADMIN: string;
|
|
223
223
|
};
|
|
224
|
-
|
|
224
|
+
INVOICE_LINES: {
|
|
225
225
|
CREATE: string;
|
|
226
226
|
READ: string;
|
|
227
227
|
UPDATE: string;
|
|
@@ -230,7 +230,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
230
230
|
FILTER: string;
|
|
231
231
|
ADMIN: string;
|
|
232
232
|
};
|
|
233
|
-
|
|
233
|
+
SECURITY_CONTROL: {
|
|
234
234
|
CREATE: string;
|
|
235
235
|
READ: string;
|
|
236
236
|
UPDATE: string;
|
|
@@ -239,7 +239,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
239
239
|
FILTER: string;
|
|
240
240
|
ADMIN: string;
|
|
241
241
|
};
|
|
242
|
-
|
|
242
|
+
CONFIGURATION: {
|
|
243
243
|
CREATE: string;
|
|
244
244
|
READ: string;
|
|
245
245
|
UPDATE: string;
|
|
@@ -248,7 +248,7 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
248
248
|
FILTER: string;
|
|
249
249
|
ADMIN: string;
|
|
250
250
|
};
|
|
251
|
-
|
|
251
|
+
WORKFLOWS: {
|
|
252
252
|
CREATE: string;
|
|
253
253
|
READ: string;
|
|
254
254
|
UPDATE: string;
|
|
@@ -259,52 +259,44 @@ export declare const CONTRACTX_PERMISSIONS: {
|
|
|
259
259
|
};
|
|
260
260
|
};
|
|
261
261
|
export declare const CONTRACTX_PERMISSION_GROUPS: {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
262
|
+
SUPERADMIN_PERMISSIONS: string[];
|
|
263
|
+
CORE_MANAGEMENT: string[];
|
|
264
|
+
PERFORMANCE_MANAGEMENT: string[];
|
|
265
|
+
FINANCIAL_MANAGEMENT: string[];
|
|
266
|
+
COLLABORATION: string[];
|
|
267
|
+
REPORTING: string[];
|
|
268
|
+
RISK_MANAGEMENT: string[];
|
|
269
|
+
SYSTEM_ADMIN: string[];
|
|
270
|
+
READ_ONLY: string[];
|
|
271
271
|
};
|
|
272
272
|
export declare const ODS_ROLE_PERMISSIONS: {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
273
|
+
superadmin: string[];
|
|
274
|
+
client_contract_admin: string[];
|
|
275
|
+
client_performance_manager: string[];
|
|
276
|
+
client_finance_manager: string[];
|
|
277
|
+
client_reports_manager: string[];
|
|
278
|
+
client_relationship_manager: string[];
|
|
279
|
+
client_risk_manager: string[];
|
|
280
|
+
provider_contract_admin: string[];
|
|
281
|
+
provider_performance_manager: string[];
|
|
282
|
+
provider_finance_manager: string[];
|
|
283
|
+
provider_relationship_manager: string[];
|
|
284
|
+
provider_risk_manager: string[];
|
|
285
|
+
provider_operator: string[];
|
|
286
|
+
auditor: string[];
|
|
287
|
+
guest: string[];
|
|
288
|
+
provider_reports_manager: string[];
|
|
289
|
+
support: string[];
|
|
290
290
|
};
|
|
291
291
|
export declare const VALID_CONTRACTX_PERMISSIONS: string[];
|
|
292
|
-
export declare const validatePermission: (permission:
|
|
293
|
-
export declare const getModuleFromPermission: (permission:
|
|
294
|
-
export declare const getActionFromPermission: (permission:
|
|
295
|
-
export declare const hasModuleAccess: (permissions:
|
|
296
|
-
export declare const hasAnyModuleAccess: (permissions:
|
|
297
|
-
export declare const getPermissionsForModule: (module:
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
SHOW: string;
|
|
303
|
-
FILTER: string;
|
|
304
|
-
ADMIN: string;
|
|
305
|
-
};
|
|
306
|
-
export declare const parseOdsPermissions: (odsString: string) => string[];
|
|
307
|
-
export type ContractXPermission = typeof VALID_CONTRACTX_PERMISSIONS[number];
|
|
308
|
-
export type ContractXModule = typeof CONTRACTX_MODULES[keyof typeof CONTRACTX_MODULES];
|
|
309
|
-
export type ContractXPermissionAction = typeof PERMISSION_ACTIONS[keyof typeof PERMISSION_ACTIONS];
|
|
292
|
+
export declare const validatePermission: (permission: any) => boolean;
|
|
293
|
+
export declare const getModuleFromPermission: (permission: any) => any;
|
|
294
|
+
export declare const getActionFromPermission: (permission: any) => any;
|
|
295
|
+
export declare const hasModuleAccess: (permissions: any, module: any, action: any) => any;
|
|
296
|
+
export declare const hasAnyModuleAccess: (permissions: any, module: any) => any;
|
|
297
|
+
export declare const getPermissionsForModule: (module: any) => any;
|
|
298
|
+
export declare const parseOdsPermissions: (odsString: any) => any;
|
|
299
|
+
export type ContractXPermission = (typeof VALID_CONTRACTX_PERMISSIONS)[number];
|
|
300
|
+
export type ContractXModule = (typeof CONTRACTX_MODULES)[keyof typeof CONTRACTX_MODULES];
|
|
301
|
+
export type ContractXPermissionAction = (typeof PERMISSION_ACTIONS)[keyof typeof PERMISSION_ACTIONS];
|
|
310
302
|
//# sourceMappingURL=contractx-permissions.constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractx-permissions.constants.d.ts","sourceRoot":"","sources":["../../src/constants/contractx-permissions.constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"contractx-permissions.constants.d.ts","sourceRoot":"","sources":["../../src/constants/contractx-permissions.constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,oBAAY,uBAAuB;IACjC,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,oBAAY,wBAAwB;IAClC,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,oBAAY,2BAA2B;IACrC,eAAe,oBAAoB;IACnC,mBAAmB,wBAAwB;IAC3C,iBAAiB,sBAAsB;IACvC,mBAAmB,wBAAwB;IAC3C,mBAAmB,wBAAwB;IAC3C,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,KAAK,UAAU;IACf,WAAW,gBAAgB;CAC5B;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;CA8B7B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;CAO9B,CAAC;AAYF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BjC,CAAC;AAKF,eAAO,MAAM,2BAA2B;;;;;;;;;;CA+DvC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;CAuzBhC,CAAC;AAEF,eAAO,MAAM,2BAA2B,UACK,CAAC;AAE9C,eAAO,MAAM,kBAAkB,GAAI,eAAU,YAe5C,CAAC;AACF,eAAO,MAAM,uBAAuB,GAAI,eAAU,QAGjD,CAAC;AACF,eAAO,MAAM,uBAAuB,GAAI,eAAU,QAOjD,CAAC;AACF,eAAO,MAAM,eAAe,GAAI,gBAAW,EAAE,WAAM,EAAE,WAAM,QAG1D,CAAC;AACF,eAAO,MAAM,kBAAkB,GAAI,gBAAW,EAAE,WAAM,QAErD,CAAC;AACF,eAAO,MAAM,uBAAuB,GAAI,WAAM,QAE7C,CAAC;AACF,eAAO,MAAM,mBAAmB,GAAI,cAAS,QAK5C,CAAC;AAGF,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAC/E,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AACzF,MAAM,MAAM,yBAAyB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseOdsPermissions = exports.getPermissionsForModule = exports.hasAnyModuleAccess = exports.hasModuleAccess = exports.getActionFromPermission = exports.getModuleFromPermission = exports.validatePermission = exports.VALID_CONTRACTX_PERMISSIONS = exports.ODS_ROLE_PERMISSIONS = exports.CONTRACTX_PERMISSION_GROUPS = exports.CONTRACTX_PERMISSIONS = exports.PERMISSION_ACTIONS = exports.CONTRACTX_MODULES = exports.ContractXPermissionCategory = exports.ContractXPermissionScope = exports.ContractXPermissionType = void 0;
|
|
2
4
|
/**
|
|
3
5
|
* ContractX Permissions Constants
|
|
4
6
|
* Based on the ODS permissions matrix and auth-service-contract module structure
|
|
5
7
|
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.parseOdsPermissions = exports.getPermissionsForModule = exports.hasAnyModuleAccess = exports.hasModuleAccess = exports.getActionFromPermission = exports.getModuleFromPermission = exports.validatePermission = exports.VALID_CONTRACTX_PERMISSIONS = exports.ODS_ROLE_PERMISSIONS = exports.CONTRACTX_PERMISSION_GROUPS = exports.CONTRACTX_PERMISSIONS = exports.PERMISSION_ACTIONS = exports.CONTRACTX_MODULES = exports.ContractXPermissionCategory = exports.ContractXPermissionScope = exports.ContractXPermissionType = void 0;
|
|
8
8
|
// Permission Types (CRUD + Show + Filter)
|
|
9
9
|
var ContractXPermissionType;
|
|
10
10
|
(function (ContractXPermissionType) {
|