permissions-contractx 1.0.2 → 1.1.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 (87) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +53 -1346
  3. package/dist/constants/contractx-permissions.constants.d.ts +84 -92
  4. package/dist/constants/contractx-permissions.constants.d.ts.map +1 -1
  5. package/dist/constants/contractx-permissions.constants.js +2 -2
  6. package/dist/constants/contractx-roles.constants.d.ts +150 -254
  7. package/dist/constants/contractx-roles.constants.d.ts.map +1 -1
  8. package/dist/constants/contractx-roles.constants.js +2 -2
  9. package/dist/constants/index.d.ts +1 -0
  10. package/dist/constants/index.d.ts.map +1 -1
  11. package/dist/constants/index.js +1 -0
  12. package/dist/constants/permission-names.constants.d.ts +310 -0
  13. package/dist/constants/permission-names.constants.d.ts.map +1 -0
  14. package/dist/constants/permission-names.constants.js +209 -0
  15. package/dist/constants/security.constants.d.ts +49 -49
  16. package/dist/constants/security.constants.d.ts.map +1 -1
  17. package/dist/constants/security.constants.js +2 -2
  18. package/dist/decorators/current-user.decorator.d.ts +5 -53
  19. package/dist/decorators/current-user.decorator.d.ts.map +1 -1
  20. package/dist/decorators/current-user.decorator.js +4 -51
  21. package/dist/decorators/index.d.ts +1 -0
  22. package/dist/decorators/index.d.ts.map +1 -1
  23. package/dist/decorators/index.js +1 -0
  24. package/dist/decorators/permission-writes.decorator.d.ts +14 -0
  25. package/dist/decorators/permission-writes.decorator.d.ts.map +1 -0
  26. package/dist/decorators/permission-writes.decorator.js +18 -0
  27. package/dist/decorators/permissions.decorator.d.ts +0 -58
  28. package/dist/decorators/permissions.decorator.d.ts.map +1 -1
  29. package/dist/decorators/permissions.decorator.js +0 -58
  30. package/dist/decorators/public.decorator.d.ts +0 -0
  31. package/dist/decorators/public.decorator.d.ts.map +0 -0
  32. package/dist/decorators/public.decorator.js +0 -0
  33. package/dist/decorators/roles.decorator.d.ts +4 -57
  34. package/dist/decorators/roles.decorator.d.ts.map +1 -1
  35. package/dist/decorators/roles.decorator.js +6 -57
  36. package/dist/guards/authorization.guard.d.ts +37 -0
  37. package/dist/guards/authorization.guard.d.ts.map +1 -0
  38. package/dist/guards/authorization.guard.js +150 -0
  39. package/dist/guards/index.d.ts +1 -0
  40. package/dist/guards/index.d.ts.map +1 -1
  41. package/dist/guards/index.js +1 -0
  42. package/dist/guards/jwt-auth.guard.d.ts +0 -0
  43. package/dist/guards/jwt-auth.guard.d.ts.map +1 -1
  44. package/dist/guards/jwt-auth.guard.js +0 -0
  45. package/dist/guards/permissions.guard.d.ts +0 -0
  46. package/dist/guards/permissions.guard.d.ts.map +1 -1
  47. package/dist/guards/permissions.guard.js +8 -2
  48. package/dist/guards/roles.guard.d.ts +0 -0
  49. package/dist/guards/roles.guard.d.ts.map +1 -1
  50. package/dist/guards/roles.guard.js +1 -1
  51. package/dist/index.d.ts +0 -0
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +0 -6
  54. package/dist/interfaces/index.d.ts +1 -0
  55. package/dist/interfaces/index.d.ts.map +1 -1
  56. package/dist/interfaces/index.js +1 -0
  57. package/dist/interfaces/jwt-payload.interface.d.ts +46 -9
  58. package/dist/interfaces/jwt-payload.interface.d.ts.map +1 -1
  59. package/dist/interfaces/jwt-payload.interface.js +19 -0
  60. package/dist/interfaces/permission-mode.enum.d.ts +22 -0
  61. package/dist/interfaces/permission-mode.enum.d.ts.map +1 -0
  62. package/dist/interfaces/permission-mode.enum.js +25 -0
  63. package/dist/modules/index.d.ts +0 -0
  64. package/dist/modules/index.d.ts.map +0 -0
  65. package/dist/modules/index.js +0 -0
  66. package/dist/modules/permissions-contractx.module.d.ts +0 -0
  67. package/dist/modules/permissions-contractx.module.d.ts.map +1 -1
  68. package/dist/modules/permissions-contractx.module.js +4 -2
  69. package/dist/services/contractx-authorization.service.d.ts +198 -27
  70. package/dist/services/contractx-authorization.service.d.ts.map +1 -1
  71. package/dist/services/contractx-authorization.service.js +2 -0
  72. package/dist/services/contractx-validation.service.d.ts +93 -12
  73. package/dist/services/contractx-validation.service.d.ts.map +1 -1
  74. package/dist/services/contractx-validation.service.js +1 -0
  75. package/dist/services/index.d.ts +0 -2
  76. package/dist/services/index.d.ts.map +1 -1
  77. package/dist/services/index.js +2 -0
  78. package/dist/services/user-context.service.d.ts +29 -34
  79. package/dist/services/user-context.service.d.ts.map +1 -1
  80. package/dist/services/user-context.service.js +65 -44
  81. package/package.json +5 -24
  82. package/dist/services/contractx-document-compliance.service.d.ts +0 -85
  83. package/dist/services/contractx-document-compliance.service.d.ts.map +0 -1
  84. package/dist/services/contractx-document-compliance.service.js +0 -536
  85. package/dist/test-document-compliance.d.ts +0 -7
  86. package/dist/test-document-compliance.d.ts.map +0 -1
  87. 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
- readonly CLIENTS: "clients";
41
- readonly CONTRACTS: "contracts";
42
- readonly USERS: "users";
43
- readonly PROVIDERS: "providers";
44
- readonly DOCUMENTS: "documents";
45
- readonly CLAUSES: "clauses";
46
- readonly DELIVERABLES: "deliverables";
47
- readonly SUBDELIVERABLES: "subdeliverables";
48
- readonly DELIVERABLE_HISTORY: "deliverable_history";
49
- readonly SLA_SERVICES: "sla_services";
50
- readonly MEASUREMENT_WINDOWS: "measurement_windows";
51
- readonly CREDIT_SERVICE_LEVELS: "credit_service_levels";
52
- readonly MEETINGS: "meetings";
53
- readonly MEETING_PARTICIPANTS: "meeting_participants";
54
- readonly ACTION_ITEMS: "action_items";
55
- readonly NOTIFICATION_ESCALATIONS: "notification_escalations";
56
- readonly INVOICE_SERVICES: "invoice_services";
57
- readonly INVOICE_LINES: "invoice_lines";
58
- readonly SECURITY_CONTROL: "security_control";
59
- readonly CONFIGURATION: "configuration";
60
- readonly WORKFLOWS: "workflows";
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
- readonly c: ContractXPermissionType.CREATE;
64
- readonly r: ContractXPermissionType.READ;
65
- readonly u: ContractXPermissionType.UPDATE;
66
- readonly d: ContractXPermissionType.DELETE;
67
- readonly s: ContractXPermissionType.SHOW;
68
- readonly f: ContractXPermissionType.FILTER;
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
- readonly CLIENTS: {
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
- readonly CONTRACTS: {
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
- readonly USERS: {
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
- readonly PROVIDERS: {
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
- readonly DOCUMENTS: {
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
- readonly CLAUSES: {
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
- readonly DELIVERABLES: {
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
- readonly SUBDELIVERABLES: {
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
- readonly DELIVERABLE_HISTORY: {
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
- readonly SLA_SERVICES: {
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
- readonly MEASUREMENT_WINDOWS: {
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
- readonly CREDIT_SERVICE_LEVELS: {
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
- readonly MEETINGS: {
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
- readonly MEETING_PARTICIPANTS: {
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
- readonly ACTION_ITEMS: {
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
- readonly NOTIFICATION_ESCALATIONS: {
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
- readonly INVOICE_SERVICES: {
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
- readonly INVOICE_LINES: {
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
- readonly SECURITY_CONTROL: {
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
- readonly CONFIGURATION: {
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
- readonly WORKFLOWS: {
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
- readonly SUPERADMIN_PERMISSIONS: string[];
263
- readonly CORE_MANAGEMENT: readonly string[];
264
- readonly PERFORMANCE_MANAGEMENT: readonly string[];
265
- readonly FINANCIAL_MANAGEMENT: readonly string[];
266
- readonly COLLABORATION: readonly string[];
267
- readonly REPORTING: readonly [string, string, string, string, string, string, string, string, string];
268
- readonly RISK_MANAGEMENT: readonly [string, string, string, string, string, string, string];
269
- readonly SYSTEM_ADMIN: readonly string[];
270
- readonly READ_ONLY: string[];
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
- readonly superadmin: readonly [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string];
274
- readonly client_contract_admin: readonly [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string];
275
- readonly client_performance_manager: readonly [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string];
276
- readonly client_finance_manager: readonly [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string];
277
- readonly client_reports_manager: readonly [string, string, string, string, string, string, string, string, string, string, string, string];
278
- readonly client_relationship_manager: readonly [string, string, string, string, string, string, string, string, string, string];
279
- readonly client_risk_manager: readonly [string, string, string, string, string, string, string, string, string];
280
- readonly provider_contract_admin: readonly [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string];
281
- readonly provider_performance_manager: readonly [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string];
282
- readonly provider_finance_manager: readonly [string, string, string, string, string, string];
283
- readonly provider_relationship_manager: readonly [string, string, string, string, string, string, string];
284
- readonly provider_risk_manager: readonly [string, string, string, string, string, string, string, string, string, string, string, string];
285
- readonly provider_operator: readonly [string, string, string, string, string, string, string, string, string];
286
- readonly auditor: readonly [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string];
287
- readonly guest: readonly [string, string, string, string];
288
- readonly provider_reports_manager: readonly [string, string, string, string, string, string, string, string];
289
- readonly support: readonly [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string];
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: string) => boolean;
293
- export declare const getModuleFromPermission: (permission: string) => string | null;
294
- export declare const getActionFromPermission: (permission: string) => string | null;
295
- export declare const hasModuleAccess: (permissions: string[], module: string, action: string) => boolean;
296
- export declare const hasAnyModuleAccess: (permissions: string[], module: string) => boolean;
297
- export declare const getPermissionsForModule: (module: string) => {
298
- CREATE: string;
299
- READ: string;
300
- UPDATE: string;
301
- DELETE: string;
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;AAGH,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;AAGD,oBAAY,wBAAwB;IAClC,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAGD,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;AAGD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;CAqCpB,CAAC;AAGX,eAAO,MAAM,kBAAkB;;;;;;;CAOrB,CAAC;AAcX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCxB,CAAC;AAOX,eAAO,MAAM,2BAA2B;;;;;;;;;;CAyE9B,CAAC;AAGX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;CAw0BvB,CAAC;AAGX,eAAO,MAAM,2BAA2B,UACG,CAAC;AAG5C,eAAO,MAAM,kBAAkB,GAAI,YAAY,MAAM,KAAG,OAkBvD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,YAAY,MAAM,KAAG,MAAM,GAAG,IAGrE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,YAAY,MAAM,KAAG,MAAM,GAAG,IASrE,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,aAAa,MAAM,EAAE,EAAE,QAAQ,MAAM,EAAE,QAAQ,MAAM,KAAG,OAGvF,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,aAAa,MAAM,EAAE,EAAE,QAAQ,MAAM,KAAG,OAE1E,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,QAAQ,MAAM;;;;;;;;CAErD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,WAAW,MAAM,KAAG,MAAM,EAK7D,CAAC;AAGF,MAAM,MAAM,mBAAmB,GAAG,OAAO,2BAA2B,CAAC,MAAM,CAAC,CAAC;AAC7E,MAAM,MAAM,eAAe,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AACvF,MAAM,MAAM,yBAAyB,GAAG,OAAO,kBAAkB,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"}
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) {