permissions-contractx 1.3.0 → 1.4.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.
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* La metadata se cuelga encima, en Auth. Un test en Auth valida que todo `code`
|
|
11
11
|
* del catálogo existe como constante aquí (sincronización — Fase 6/8 del porte).
|
|
12
12
|
*
|
|
13
|
-
* Agrupación por microservicio: Auth(12) Contratos(
|
|
14
|
-
* Facturación(27) SLAs(36) Proveedores(39) =
|
|
13
|
+
* Agrupación por microservicio: Auth(12) Contratos(46) Entregables(45)
|
|
14
|
+
* Facturación(27) SLAs(36) Proveedores(39) = 205.
|
|
15
15
|
*
|
|
16
16
|
* Convención de claves: reflejan el recurso completo del code, en
|
|
17
17
|
* SCREAMING_SNAKE_CASE (recurso + acción). Esto evita colisiones entre dominios
|
|
@@ -110,6 +110,24 @@ export declare const ENTREGABLES_PERMISSIONS: {
|
|
|
110
110
|
readonly DELIVERABLE_REPORTS_REPORT_HISTORY: "deliverable_reports.report_history";
|
|
111
111
|
readonly DELIVERABLE_REPORTS_EXPORT: "deliverable_reports.export";
|
|
112
112
|
readonly DELIVERABLE_REPORTS_ALERTS: "deliverable_reports.alerts";
|
|
113
|
+
readonly DELIVERABLES_VIEW_LIST: "deliverables.view_list";
|
|
114
|
+
readonly DELIVERABLES_VIEW_DETAIL: "deliverables.view_detail";
|
|
115
|
+
readonly DELIVERABLES_TRANSITION: "deliverables.transition";
|
|
116
|
+
readonly DELIVERABLES_ESCALATE_DISPUTE: "deliverables.escalate_dispute";
|
|
117
|
+
readonly DELIVERABLE_EVIDENCE_APPROVE: "deliverable_evidence.approve";
|
|
118
|
+
readonly DELIVERABLE_EVIDENCE_REJECT: "deliverable_evidence.reject";
|
|
119
|
+
readonly DELIVERABLE_EVIDENCE_START_REVIEW: "deliverable_evidence.start_review";
|
|
120
|
+
readonly DELIVERABLE_EVIDENCE_RESUBMIT: "deliverable_evidence.resubmit";
|
|
121
|
+
readonly DELIVERABLE_EVIDENCE_VIEW_LIST: "deliverable_evidence.view_list";
|
|
122
|
+
readonly DELIVERABLE_EVIDENCE_VIEW_DETAIL: "deliverable_evidence.view_detail";
|
|
123
|
+
readonly DELIVERABLE_INCIDENTS_VIEW_LIST: "deliverable_incidents.view_list";
|
|
124
|
+
readonly DELIVERABLE_INCIDENTS_VIEW_DETAIL: "deliverable_incidents.view_detail";
|
|
125
|
+
readonly DELIVERABLE_INCIDENTS_RESPOND: "deliverable_incidents.respond";
|
|
126
|
+
readonly DELIVERABLE_LOGS_VIEW_LIST: "deliverable_logs.view_list";
|
|
127
|
+
readonly DELIVERABLE_LOGS_VIEW_DETAIL: "deliverable_logs.view_detail";
|
|
128
|
+
readonly SCHEDULER_ADMIN_RUN: "scheduler_admin.run";
|
|
129
|
+
readonly STATE_MACHINE_ADMIN_PUBLISH: "state_machine_admin.publish";
|
|
130
|
+
readonly STATE_MACHINE_ADMIN_VIEW: "state_machine_admin.view";
|
|
113
131
|
};
|
|
114
132
|
export declare const FACTURACION_PERMISSIONS: {
|
|
115
133
|
readonly INVOICES_REGISTER: "invoices.register";
|
|
@@ -351,6 +369,24 @@ export declare const PERMISSIONS_BY_DOMAIN: {
|
|
|
351
369
|
readonly DELIVERABLE_REPORTS_REPORT_HISTORY: "deliverable_reports.report_history";
|
|
352
370
|
readonly DELIVERABLE_REPORTS_EXPORT: "deliverable_reports.export";
|
|
353
371
|
readonly DELIVERABLE_REPORTS_ALERTS: "deliverable_reports.alerts";
|
|
372
|
+
readonly DELIVERABLES_VIEW_LIST: "deliverables.view_list";
|
|
373
|
+
readonly DELIVERABLES_VIEW_DETAIL: "deliverables.view_detail";
|
|
374
|
+
readonly DELIVERABLES_TRANSITION: "deliverables.transition";
|
|
375
|
+
readonly DELIVERABLES_ESCALATE_DISPUTE: "deliverables.escalate_dispute";
|
|
376
|
+
readonly DELIVERABLE_EVIDENCE_APPROVE: "deliverable_evidence.approve";
|
|
377
|
+
readonly DELIVERABLE_EVIDENCE_REJECT: "deliverable_evidence.reject";
|
|
378
|
+
readonly DELIVERABLE_EVIDENCE_START_REVIEW: "deliverable_evidence.start_review";
|
|
379
|
+
readonly DELIVERABLE_EVIDENCE_RESUBMIT: "deliverable_evidence.resubmit";
|
|
380
|
+
readonly DELIVERABLE_EVIDENCE_VIEW_LIST: "deliverable_evidence.view_list";
|
|
381
|
+
readonly DELIVERABLE_EVIDENCE_VIEW_DETAIL: "deliverable_evidence.view_detail";
|
|
382
|
+
readonly DELIVERABLE_INCIDENTS_VIEW_LIST: "deliverable_incidents.view_list";
|
|
383
|
+
readonly DELIVERABLE_INCIDENTS_VIEW_DETAIL: "deliverable_incidents.view_detail";
|
|
384
|
+
readonly DELIVERABLE_INCIDENTS_RESPOND: "deliverable_incidents.respond";
|
|
385
|
+
readonly DELIVERABLE_LOGS_VIEW_LIST: "deliverable_logs.view_list";
|
|
386
|
+
readonly DELIVERABLE_LOGS_VIEW_DETAIL: "deliverable_logs.view_detail";
|
|
387
|
+
readonly SCHEDULER_ADMIN_RUN: "scheduler_admin.run";
|
|
388
|
+
readonly STATE_MACHINE_ADMIN_PUBLISH: "state_machine_admin.publish";
|
|
389
|
+
readonly STATE_MACHINE_ADMIN_VIEW: "state_machine_admin.view";
|
|
354
390
|
};
|
|
355
391
|
readonly Facturacion: {
|
|
356
392
|
readonly INVOICES_REGISTER: "invoices.register";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission-names.constants.d.ts","sourceRoot":"","sources":["../../src/constants/permission-names.constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;CAanB,CAAC;AAGX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDxB,CAAC;AAGX,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"permission-names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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOxB,CAAC;AAEX,iFAAiF;AACjF,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAOxC,CAAC;AAEX,wDAAwD;AACxD,MAAM,MAAM,cAAc,GACtB,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,GACxD,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,GAClE,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,GACtE,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,GACtE,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,GACxD,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* La metadata se cuelga encima, en Auth. Un test en Auth valida que todo `code`
|
|
12
12
|
* del catálogo existe como constante aquí (sincronización — Fase 6/8 del porte).
|
|
13
13
|
*
|
|
14
|
-
* Agrupación por microservicio: Auth(12) Contratos(
|
|
15
|
-
* Facturación(27) SLAs(36) Proveedores(39) =
|
|
14
|
+
* Agrupación por microservicio: Auth(12) Contratos(46) Entregables(45)
|
|
15
|
+
* Facturación(27) SLAs(36) Proveedores(39) = 205.
|
|
16
16
|
*
|
|
17
17
|
* Convención de claves: reflejan el recurso completo del code, en
|
|
18
18
|
* SCREAMING_SNAKE_CASE (recurso + acción). Esto evita colisiones entre dominios
|
|
@@ -92,7 +92,7 @@ exports.CONTRATOS_PERMISSIONS = {
|
|
|
92
92
|
DELEGATIONS_UPDATE: 'delegations.update',
|
|
93
93
|
DELEGATIONS_REVOKE: 'delegations.revoke',
|
|
94
94
|
};
|
|
95
|
-
// ======================= ENTREGABLES (
|
|
95
|
+
// ======================= ENTREGABLES (45) =======================
|
|
96
96
|
exports.ENTREGABLES_PERMISSIONS = {
|
|
97
97
|
// deliverables.*
|
|
98
98
|
DELIVERABLES_CREATE: 'deliverables.create',
|
|
@@ -126,6 +126,30 @@ exports.ENTREGABLES_PERMISSIONS = {
|
|
|
126
126
|
DELIVERABLE_REPORTS_REPORT_HISTORY: 'deliverable_reports.report_history',
|
|
127
127
|
DELIVERABLE_REPORTS_EXPORT: 'deliverable_reports.export',
|
|
128
128
|
DELIVERABLE_REPORTS_ALERTS: 'deliverable_reports.alerts',
|
|
129
|
+
// deliverables.* (nuevos)
|
|
130
|
+
DELIVERABLES_VIEW_LIST: 'deliverables.view_list',
|
|
131
|
+
DELIVERABLES_VIEW_DETAIL: 'deliverables.view_detail',
|
|
132
|
+
DELIVERABLES_TRANSITION: 'deliverables.transition',
|
|
133
|
+
DELIVERABLES_ESCALATE_DISPUTE: 'deliverables.escalate_dispute',
|
|
134
|
+
// deliverable_evidence.* (nuevos)
|
|
135
|
+
DELIVERABLE_EVIDENCE_APPROVE: 'deliverable_evidence.approve',
|
|
136
|
+
DELIVERABLE_EVIDENCE_REJECT: 'deliverable_evidence.reject',
|
|
137
|
+
DELIVERABLE_EVIDENCE_START_REVIEW: 'deliverable_evidence.start_review',
|
|
138
|
+
DELIVERABLE_EVIDENCE_RESUBMIT: 'deliverable_evidence.resubmit',
|
|
139
|
+
DELIVERABLE_EVIDENCE_VIEW_LIST: 'deliverable_evidence.view_list',
|
|
140
|
+
DELIVERABLE_EVIDENCE_VIEW_DETAIL: 'deliverable_evidence.view_detail',
|
|
141
|
+
// deliverable_incidents.*
|
|
142
|
+
DELIVERABLE_INCIDENTS_VIEW_LIST: 'deliverable_incidents.view_list',
|
|
143
|
+
DELIVERABLE_INCIDENTS_VIEW_DETAIL: 'deliverable_incidents.view_detail',
|
|
144
|
+
DELIVERABLE_INCIDENTS_RESPOND: 'deliverable_incidents.respond',
|
|
145
|
+
// deliverable_logs.*
|
|
146
|
+
DELIVERABLE_LOGS_VIEW_LIST: 'deliverable_logs.view_list',
|
|
147
|
+
DELIVERABLE_LOGS_VIEW_DETAIL: 'deliverable_logs.view_detail',
|
|
148
|
+
// scheduler_admin.*
|
|
149
|
+
SCHEDULER_ADMIN_RUN: 'scheduler_admin.run',
|
|
150
|
+
// state_machine_admin.*
|
|
151
|
+
STATE_MACHINE_ADMIN_PUBLISH: 'state_machine_admin.publish',
|
|
152
|
+
STATE_MACHINE_ADMIN_VIEW: 'state_machine_admin.view',
|
|
129
153
|
};
|
|
130
154
|
// ======================= FACTURACIÓN (27) =======================
|
|
131
155
|
exports.FACTURACION_PERMISSIONS = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "permissions-contractx",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Enterprise-grade authentication and authorization package for NestJS microservices with role-based and permission-based access control",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|