@muni-sanfer/types-gestor-documental 0.0.1-beta.27 → 0.0.1-beta.29

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.
@@ -220,7 +220,7 @@ export declare const DocumentAccessAction: {
220
220
  FileDownloaded: "FileDownloaded";
221
221
  TrailExported: "TrailExported";
222
222
  };
223
- export type AuditEntity = 'DocumentType' | 'IssuingEntity' | 'ArchivalSeries' | 'TextSnippet' | 'Holiday' | 'Procedure' | 'QualityMetric' | 'ServiceOutage' | 'Repository';
223
+ export type AuditEntity = 'DocumentType' | 'IssuingEntity' | 'ArchivalSeries' | 'TextSnippet' | 'Holiday' | 'Procedure' | 'QualityMetric' | 'ServiceOutage' | 'Repository' | 'DataTreatment';
224
224
  export declare const AuditEntity: {
225
225
  DocumentType: "DocumentType";
226
226
  IssuingEntity: "IssuingEntity";
@@ -231,6 +231,7 @@ export declare const AuditEntity: {
231
231
  QualityMetric: "QualityMetric";
232
232
  ServiceOutage: "ServiceOutage";
233
233
  Repository: "Repository";
234
+ DataTreatment: "DataTreatment";
234
235
  };
235
236
  export type AuditAction = 'Created' | 'Updated' | 'Enabled' | 'Disabled' | 'Removed' | 'Exported';
236
237
  export declare const AuditAction: {
@@ -293,6 +294,81 @@ export declare const TransparencyStatus: {
293
294
  Published: "Published";
294
295
  Excluded: "Excluded";
295
296
  };
297
+ export type DataLegalBasis = 'LegalFunction' | 'LegalObligation' | 'Consent' | 'Contract' | 'VitalInterest';
298
+ export declare const DataLegalBasis: {
299
+ LegalFunction: "LegalFunction";
300
+ LegalObligation: "LegalObligation";
301
+ Consent: "Consent";
302
+ Contract: "Contract";
303
+ VitalInterest: "VitalInterest";
304
+ };
305
+ export type DataRight = 'Access' | 'Rectification' | 'Suppression' | 'Opposition' | 'Portability';
306
+ export declare const DataRight: {
307
+ Access: "Access";
308
+ Rectification: "Rectification";
309
+ Suppression: "Suppression";
310
+ Opposition: "Opposition";
311
+ Portability: "Portability";
312
+ };
313
+ export type DataRightsChannel = 'Email' | 'WebForm' | 'InPerson' | 'Letter';
314
+ export declare const DataRightsChannel: {
315
+ Email: "Email";
316
+ WebForm: "WebForm";
317
+ InPerson: "InPerson";
318
+ Letter: "Letter";
319
+ };
320
+ export type DataRightsRequestStatus = 'Received' | 'InProgress' | 'Resolved';
321
+ export declare const DataRightsRequestStatus: {
322
+ Received: "Received";
323
+ InProgress: "InProgress";
324
+ Resolved: "Resolved";
325
+ };
326
+ export type DataRightsResolution = 'Granted' | 'PartiallyGranted' | 'Denied' | 'Withdrawn';
327
+ export declare const DataRightsResolution: {
328
+ Granted: "Granted";
329
+ PartiallyGranted: "PartiallyGranted";
330
+ Denied: "Denied";
331
+ Withdrawn: "Withdrawn";
332
+ };
333
+ export type DataRightsEventAction = 'Received' | 'Updated' | 'Acknowledged' | 'IdentityVerified' | 'Assigned' | 'BlockingResolved' | 'Extended' | 'Resolved' | 'ResponseSent' | 'ComplaintRegistered';
334
+ export declare const DataRightsEventAction: {
335
+ Received: "Received";
336
+ Updated: "Updated";
337
+ Acknowledged: "Acknowledged";
338
+ IdentityVerified: "IdentityVerified";
339
+ Assigned: "Assigned";
340
+ BlockingResolved: "BlockingResolved";
341
+ Extended: "Extended";
342
+ Resolved: "Resolved";
343
+ ResponseSent: "ResponseSent";
344
+ ComplaintRegistered: "ComplaintRegistered";
345
+ };
346
+ export type DataBreachKind = 'Destruction' | 'Leak' | 'Loss' | 'Alteration' | 'UnauthorizedAccess';
347
+ export declare const DataBreachKind: {
348
+ Destruction: "Destruction";
349
+ Leak: "Leak";
350
+ Loss: "Loss";
351
+ Alteration: "Alteration";
352
+ UnauthorizedAccess: "UnauthorizedAccess";
353
+ };
354
+ export type DataBreachStatus = 'Open' | 'Closed';
355
+ export declare const DataBreachStatus: {
356
+ Open: "Open";
357
+ Closed: "Closed";
358
+ };
359
+ export type DataBreachEventAction = 'Registered' | 'Updated' | 'AgencyReported' | 'HoldersNotified' | 'Closed';
360
+ export declare const DataBreachEventAction: {
361
+ Registered: "Registered";
362
+ Updated: "Updated";
363
+ AgencyReported: "AgencyReported";
364
+ HoldersNotified: "HoldersNotified";
365
+ Closed: "Closed";
366
+ };
367
+ export type DataBreachNoticeMeans = 'Individual' | 'PublicNotice';
368
+ export declare const DataBreachNoticeMeans: {
369
+ Individual: "Individual";
370
+ PublicNotice: "PublicNotice";
371
+ };
296
372
  export interface DocumentTypeEntity {
297
373
  id: string;
298
374
  name: string;
@@ -386,6 +462,7 @@ export interface DocumentEntity {
386
462
  redactedFileId?: string | null;
387
463
  redactedFileName?: string | null;
388
464
  accessRequestResponses?: AccessRequestEntity[];
465
+ dataRightsResponses?: DataRightsRequestEntity[];
389
466
  accessRequestDeliveries?: AccessRequestDocumentEntity[];
390
467
  dispatch?: DocumentDispatchEntity | null;
391
468
  docDigitalInbound?: DocDigitalInboundEntity | null;
@@ -978,6 +1055,128 @@ export interface AccessRequestEventEntity {
978
1055
  accessRequestId: string;
979
1056
  createdAt: string;
980
1057
  }
1058
+ export interface DataTreatmentEntity {
1059
+ id: string;
1060
+ name: string;
1061
+ purpose: string;
1062
+ legalBasis: DataLegalBasis;
1063
+ legalBasisDetail?: string | null;
1064
+ dataCategories: string[];
1065
+ sensitiveData: boolean;
1066
+ dataSubjects: string;
1067
+ recipients?: string | null;
1068
+ source?: string | null;
1069
+ retention?: string | null;
1070
+ securityMeasures?: string | null;
1071
+ internationalTransfer?: string | null;
1072
+ responsibleUnit?: string | null;
1073
+ published: boolean;
1074
+ requests?: DataRightsRequestEntity[];
1075
+ breaches?: DataBreachEntity[];
1076
+ enabled: boolean;
1077
+ deleted: boolean;
1078
+ createdAt: string;
1079
+ updatedAt: string;
1080
+ }
1081
+ export interface DataRightsRequestEntity {
1082
+ id: string;
1083
+ number: number;
1084
+ year: number;
1085
+ channel: DataRightsChannel;
1086
+ receivedAt: string;
1087
+ rights: DataRight[];
1088
+ requesterName: string;
1089
+ requesterRut?: string | null;
1090
+ requesterEmail?: string | null;
1091
+ requesterAddress?: string | null;
1092
+ representativeName?: string | null;
1093
+ identityVerifiedAt?: string | null;
1094
+ identityNote?: string | null;
1095
+ requestText: string;
1096
+ treatment?: DataTreatmentEntity | null;
1097
+ treatmentId?: string | null;
1098
+ status: DataRightsRequestStatus;
1099
+ acknowledgedAt?: string | null;
1100
+ dueAt: string;
1101
+ extendedAt?: string | null;
1102
+ extensionNote?: string | null;
1103
+ blockingRequested: boolean;
1104
+ blockingReason?: string | null;
1105
+ blockingDueAt?: string | null;
1106
+ blockingGranted?: boolean | null;
1107
+ blockingResolvedAt?: string | null;
1108
+ blockingNote?: string | null;
1109
+ assigneeEmployeeId?: string | null;
1110
+ assigneeFullName?: string | null;
1111
+ resolution?: DataRightsResolution | null;
1112
+ resolvedAt?: string | null;
1113
+ denialGrounds: string[];
1114
+ resolutionNote?: string | null;
1115
+ responseDocument?: DocumentEntity | null;
1116
+ responseDocumentId?: string | null;
1117
+ responseSentAt?: string | null;
1118
+ responseSentTo?: string | null;
1119
+ responseSentMeans?: CommunicationMeans | null;
1120
+ complaintAt?: string | null;
1121
+ complaintNote?: string | null;
1122
+ createdByEmployeeId: string;
1123
+ createdByFullName: string;
1124
+ events?: DataRightsEventEntity[];
1125
+ createdAt: string;
1126
+ updatedAt: string;
1127
+ }
1128
+ export interface DataRightsEventEntity {
1129
+ id: string;
1130
+ action: DataRightsEventAction;
1131
+ note?: string | null;
1132
+ employeeId?: string | null;
1133
+ employeeFullName: string;
1134
+ request?: DataRightsRequestEntity;
1135
+ requestId: string;
1136
+ createdAt: string;
1137
+ }
1138
+ export interface DataBreachEntity {
1139
+ id: string;
1140
+ number: number;
1141
+ year: number;
1142
+ detectedAt: string;
1143
+ occurredAt?: string | null;
1144
+ kinds: DataBreachKind[];
1145
+ description: string;
1146
+ effects?: string | null;
1147
+ dataCategories: string[];
1148
+ affectedCount?: number | null;
1149
+ measures?: string | null;
1150
+ sensitiveData: boolean;
1151
+ minorsData: boolean;
1152
+ financialData: boolean;
1153
+ riskToRights: boolean;
1154
+ treatment?: DataTreatmentEntity | null;
1155
+ treatmentId?: string | null;
1156
+ status: DataBreachStatus;
1157
+ agencyReportedAt?: string | null;
1158
+ agencyReportNote?: string | null;
1159
+ holdersNotifiedAt?: string | null;
1160
+ holdersNoticeMeans?: DataBreachNoticeMeans | null;
1161
+ holdersNoticeNote?: string | null;
1162
+ closedAt?: string | null;
1163
+ closeNote?: string | null;
1164
+ createdByEmployeeId: string;
1165
+ createdByFullName: string;
1166
+ events?: DataBreachEventEntity[];
1167
+ createdAt: string;
1168
+ updatedAt: string;
1169
+ }
1170
+ export interface DataBreachEventEntity {
1171
+ id: string;
1172
+ action: DataBreachEventAction;
1173
+ note?: string | null;
1174
+ employeeId?: string | null;
1175
+ employeeFullName: string;
1176
+ breach?: DataBreachEntity;
1177
+ breachId: string;
1178
+ createdAt: string;
1179
+ }
981
1180
  type JsonValue = string | number | boolean | {
982
1181
  [key in string]?: JsonValue;
983
1182
  } | Array<JsonValue> | null;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by prisma-generator-typescript-interfaces
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.TransparencyStatus = exports.AccessRequestEventAction = exports.AccessRequestResolution = exports.AccessRequestStatus = exports.AccessRequestChannel = exports.DispositionKind = exports.FinalDisposition = exports.AuditAction = exports.AuditEntity = exports.DocumentAccessAction = exports.QualityMetricKey = exports.ServiceOutageKind = exports.WorkFolderItemKind = exports.TextSnippetSection = exports.ScanSessionStatus = exports.CaseFileAccessAction = exports.CaseFileTrackingAction = exports.CaseFileActorType = exports.CaseFileActorRelation = exports.CaseFileEntryKind = exports.CaseFileActuationType = exports.CaseFileIncorporationMechanism = exports.CaseFileStatus = exports.DocumentInstruction = exports.DocumentDeliveryOrigin = exports.DocumentRecipientType = exports.DocumentAttachmentType = exports.DocumentFlowStepType = exports.DocDigitalInboundStatus = exports.DocumentDispatchStatus = exports.CommunicationMeans = exports.DocumentOrigin = exports.DocumentTrackingAction = exports.DocumentParticipantStatus = exports.DocumentParticipantRole = exports.DocumentAccessLevel = exports.DocumentStatus = exports.DocumentCategory = void 0;
4
+ exports.DataBreachNoticeMeans = exports.DataBreachEventAction = exports.DataBreachStatus = exports.DataBreachKind = exports.DataRightsEventAction = exports.DataRightsResolution = exports.DataRightsRequestStatus = exports.DataRightsChannel = exports.DataRight = exports.DataLegalBasis = exports.TransparencyStatus = exports.AccessRequestEventAction = exports.AccessRequestResolution = exports.AccessRequestStatus = exports.AccessRequestChannel = exports.DispositionKind = exports.FinalDisposition = exports.AuditAction = exports.AuditEntity = exports.DocumentAccessAction = exports.QualityMetricKey = exports.ServiceOutageKind = exports.WorkFolderItemKind = exports.TextSnippetSection = exports.ScanSessionStatus = exports.CaseFileAccessAction = exports.CaseFileTrackingAction = exports.CaseFileActorType = exports.CaseFileActorRelation = exports.CaseFileEntryKind = exports.CaseFileActuationType = exports.CaseFileIncorporationMechanism = exports.CaseFileStatus = exports.DocumentInstruction = exports.DocumentDeliveryOrigin = exports.DocumentRecipientType = exports.DocumentAttachmentType = exports.DocumentFlowStepType = exports.DocDigitalInboundStatus = exports.DocumentDispatchStatus = exports.CommunicationMeans = exports.DocumentOrigin = exports.DocumentTrackingAction = exports.DocumentParticipantStatus = exports.DocumentParticipantRole = exports.DocumentAccessLevel = exports.DocumentStatus = exports.DocumentCategory = void 0;
5
5
  exports.DocumentCategory = {
6
6
  Decree: 'Decree',
7
7
  Communication: 'Communication',
@@ -205,6 +205,7 @@ exports.AuditEntity = {
205
205
  QualityMetric: 'QualityMetric',
206
206
  ServiceOutage: 'ServiceOutage',
207
207
  Repository: 'Repository',
208
+ DataTreatment: 'DataTreatment',
208
209
  };
209
210
  exports.AuditAction = {
210
211
  Created: 'Created',
@@ -259,3 +260,68 @@ exports.TransparencyStatus = {
259
260
  Published: 'Published',
260
261
  Excluded: 'Excluded',
261
262
  };
263
+ exports.DataLegalBasis = {
264
+ LegalFunction: 'LegalFunction',
265
+ LegalObligation: 'LegalObligation',
266
+ Consent: 'Consent',
267
+ Contract: 'Contract',
268
+ VitalInterest: 'VitalInterest',
269
+ };
270
+ exports.DataRight = {
271
+ Access: 'Access',
272
+ Rectification: 'Rectification',
273
+ Suppression: 'Suppression',
274
+ Opposition: 'Opposition',
275
+ Portability: 'Portability',
276
+ };
277
+ exports.DataRightsChannel = {
278
+ Email: 'Email',
279
+ WebForm: 'WebForm',
280
+ InPerson: 'InPerson',
281
+ Letter: 'Letter',
282
+ };
283
+ exports.DataRightsRequestStatus = {
284
+ Received: 'Received',
285
+ InProgress: 'InProgress',
286
+ Resolved: 'Resolved',
287
+ };
288
+ exports.DataRightsResolution = {
289
+ Granted: 'Granted',
290
+ PartiallyGranted: 'PartiallyGranted',
291
+ Denied: 'Denied',
292
+ Withdrawn: 'Withdrawn',
293
+ };
294
+ exports.DataRightsEventAction = {
295
+ Received: 'Received',
296
+ Updated: 'Updated',
297
+ Acknowledged: 'Acknowledged',
298
+ IdentityVerified: 'IdentityVerified',
299
+ Assigned: 'Assigned',
300
+ BlockingResolved: 'BlockingResolved',
301
+ Extended: 'Extended',
302
+ Resolved: 'Resolved',
303
+ ResponseSent: 'ResponseSent',
304
+ ComplaintRegistered: 'ComplaintRegistered',
305
+ };
306
+ exports.DataBreachKind = {
307
+ Destruction: 'Destruction',
308
+ Leak: 'Leak',
309
+ Loss: 'Loss',
310
+ Alteration: 'Alteration',
311
+ UnauthorizedAccess: 'UnauthorizedAccess',
312
+ };
313
+ exports.DataBreachStatus = {
314
+ Open: 'Open',
315
+ Closed: 'Closed',
316
+ };
317
+ exports.DataBreachEventAction = {
318
+ Registered: 'Registered',
319
+ Updated: 'Updated',
320
+ AgencyReported: 'AgencyReported',
321
+ HoldersNotified: 'HoldersNotified',
322
+ Closed: 'Closed',
323
+ };
324
+ exports.DataBreachNoticeMeans = {
325
+ Individual: 'Individual',
326
+ PublicNotice: 'PublicNotice',
327
+ };
@@ -0,0 +1,251 @@
1
+ import { type CommunicationMeans, type DataBreachKind, type DataBreachNoticeMeans, type DataLegalBasis, type DataRight, type DataRightsChannel, type DataRightsResolution } from '../base/entities';
2
+ import { type DataBreachResponseEntity, type DataProtectionPolicyEntity, type IndicatorsFileEntity, type DataRightsRequestDetailEntity, type DataRightsRequestListItemEntity, type DataRightsSummaryEntity, type DataTreatmentResponseEntity } from '../entities';
3
+ import { type RpcPage } from './contract';
4
+ /** Patrones NATS de `dataProtection`: tratamientos de datos y solicitudes de los titulares (Ley 19.628). */
5
+ export declare const DataProtectionPatterns: {
6
+ readonly getTreatments: "gestorDocumental.dataProtection.getTreatments";
7
+ readonly createTreatment: "gestorDocumental.dataProtection.createTreatment";
8
+ readonly updateTreatment: "gestorDocumental.dataProtection.updateTreatment";
9
+ readonly setTreatmentEnabled: "gestorDocumental.dataProtection.setTreatmentEnabled";
10
+ readonly getPolicy: "gestorDocumental.dataProtection.getPolicy";
11
+ readonly getRequests: "gestorDocumental.dataProtection.getRequests";
12
+ readonly getRequest: "gestorDocumental.dataProtection.getRequest";
13
+ readonly getSummary: "gestorDocumental.dataProtection.getSummary";
14
+ readonly createRequest: "gestorDocumental.dataProtection.createRequest";
15
+ readonly updateRequest: "gestorDocumental.dataProtection.updateRequest";
16
+ readonly actOnRequest: "gestorDocumental.dataProtection.actOnRequest";
17
+ readonly getBreaches: "gestorDocumental.dataProtection.getBreaches";
18
+ readonly getBreach: "gestorDocumental.dataProtection.getBreach";
19
+ readonly createBreach: "gestorDocumental.dataProtection.createBreach";
20
+ readonly updateBreach: "gestorDocumental.dataProtection.updateBreach";
21
+ readonly actOnBreach: "gestorDocumental.dataProtection.actOnBreach";
22
+ readonly getBreachPdf: "gestorDocumental.dataProtection.getBreachPdf";
23
+ };
24
+ type TActor = {
25
+ employeeId: string;
26
+ fullName: string;
27
+ };
28
+ /** Datos de un tratamiento al crearlo o editarlo. */
29
+ export interface DataTreatmentWritePayload {
30
+ name: string;
31
+ purpose: string;
32
+ legalBasis: DataLegalBasis;
33
+ legalBasisDetail?: string | null;
34
+ dataCategories: string[];
35
+ sensitiveData?: boolean;
36
+ dataSubjects: string;
37
+ recipients?: string | null;
38
+ source?: string | null;
39
+ retention?: string | null;
40
+ securityMeasures?: string | null;
41
+ internationalTransfer?: string | null;
42
+ responsibleUnit?: string | null;
43
+ published?: boolean;
44
+ }
45
+ /** Datos de una solicitud al ingresarla o corregirla. */
46
+ export interface DataRightsRequestWritePayload {
47
+ channel: DataRightsChannel;
48
+ receivedAt: string;
49
+ rights: DataRight[];
50
+ requesterName: string;
51
+ requesterRut?: string | null;
52
+ requesterEmail?: string | null;
53
+ requesterAddress?: string | null;
54
+ representativeName?: string | null;
55
+ requestText: string;
56
+ treatmentId?: string | null;
57
+ /** Bloqueo temporal: solo con rectificación, supresión u oposición, y fundado. */
58
+ blockingRequested?: boolean;
59
+ blockingReason?: string | null;
60
+ }
61
+ /** Un paso de la tramitación. */
62
+ export type DataRightsAction = {
63
+ type: 'acknowledge';
64
+ note?: string | null;
65
+ } | {
66
+ type: 'verifyIdentity';
67
+ note?: string | null;
68
+ } | {
69
+ type: 'assign';
70
+ employeeId: string;
71
+ fullName: string;
72
+ note?: string | null;
73
+ }
74
+ /** Bloqueo temporal, en 2 días hábiles; si se rechaza, fundado (y se comunica a la Agencia). */
75
+ | {
76
+ type: 'resolveBlocking';
77
+ granted: boolean;
78
+ note?: string | null;
79
+ } | {
80
+ type: 'extend';
81
+ note: string;
82
+ } | {
83
+ type: 'resolve';
84
+ resolution: DataRightsResolution;
85
+ grounds?: string[];
86
+ note?: string | null;
87
+ responseDocumentId?: string | null;
88
+ }
89
+ /** Respaldo del envío de la respuesta escrita (art. 11). */
90
+ | {
91
+ type: 'registerResponseSent';
92
+ sentAt?: string | null;
93
+ sentTo: string;
94
+ means: CommunicationMeans;
95
+ note?: string | null;
96
+ } | {
97
+ type: 'registerComplaint';
98
+ complaintAt?: string | null;
99
+ note: string;
100
+ };
101
+ /** Datos de una vulneración al registrarla o corregirla. */
102
+ export interface DataBreachWritePayload {
103
+ detectedAt: string;
104
+ occurredAt?: string | null;
105
+ kinds: DataBreachKind[];
106
+ description: string;
107
+ effects?: string | null;
108
+ dataCategories: string[];
109
+ affectedCount?: number | null;
110
+ measures?: string | null;
111
+ sensitiveData?: boolean;
112
+ minorsData?: boolean;
113
+ financialData?: boolean;
114
+ riskToRights?: boolean;
115
+ treatmentId?: string | null;
116
+ }
117
+ /** Un paso de la gestión de una vulneración. */
118
+ export type DataBreachAction =
119
+ /** Reporte a la Agencia, con el medio y su número o folio. */
120
+ {
121
+ type: 'reportAgency';
122
+ reportedAt?: string | null;
123
+ note: string;
124
+ }
125
+ /** Comunicación a los titulares: a cada uno o, si no es posible, un aviso en un medio masivo nacional. */
126
+ | {
127
+ type: 'notifyHolders';
128
+ notifiedAt?: string | null;
129
+ means: DataBreachNoticeMeans;
130
+ note: string;
131
+ } | {
132
+ type: 'close';
133
+ note?: string | null;
134
+ };
135
+ export interface DataProtectionContract {
136
+ [DataProtectionPatterns.getTreatments]: {
137
+ payload: {
138
+ enabled?: boolean | null;
139
+ };
140
+ response: DataTreatmentResponseEntity[];
141
+ };
142
+ [DataProtectionPatterns.createTreatment]: {
143
+ payload: DataTreatmentWritePayload;
144
+ response: DataTreatmentResponseEntity;
145
+ };
146
+ [DataProtectionPatterns.updateTreatment]: {
147
+ payload: DataTreatmentWritePayload & {
148
+ id: string;
149
+ };
150
+ response: DataTreatmentResponseEntity;
151
+ };
152
+ [DataProtectionPatterns.setTreatmentEnabled]: {
153
+ payload: {
154
+ id: string;
155
+ enabled: boolean;
156
+ };
157
+ response: DataTreatmentResponseEntity;
158
+ };
159
+ /** Lo que se publica sin sesión (art. 14 ter): los tratamientos habilitados y publicados. */
160
+ [DataProtectionPatterns.getPolicy]: {
161
+ payload: Record<string, never>;
162
+ response: DataProtectionPolicyEntity;
163
+ };
164
+ [DataProtectionPatterns.getRequests]: {
165
+ payload: {
166
+ status?: 'open' | 'resolved' | 'all';
167
+ year?: number | null;
168
+ search?: string;
169
+ page?: number;
170
+ limit?: number;
171
+ };
172
+ response: RpcPage<DataRightsRequestListItemEntity[]>;
173
+ };
174
+ [DataProtectionPatterns.getRequest]: {
175
+ payload: {
176
+ id: string;
177
+ };
178
+ response: DataRightsRequestDetailEntity;
179
+ };
180
+ [DataProtectionPatterns.getSummary]: {
181
+ payload: {
182
+ year: number;
183
+ };
184
+ response: DataRightsSummaryEntity;
185
+ };
186
+ [DataProtectionPatterns.createRequest]: {
187
+ payload: DataRightsRequestWritePayload & {
188
+ actor: TActor;
189
+ };
190
+ response: DataRightsRequestDetailEntity;
191
+ };
192
+ [DataProtectionPatterns.updateRequest]: {
193
+ payload: DataRightsRequestWritePayload & {
194
+ id: string;
195
+ actor: TActor;
196
+ };
197
+ response: DataRightsRequestDetailEntity;
198
+ };
199
+ [DataProtectionPatterns.actOnRequest]: {
200
+ payload: {
201
+ id: string;
202
+ action: DataRightsAction;
203
+ actor: TActor;
204
+ };
205
+ response: DataRightsRequestDetailEntity;
206
+ };
207
+ /** Las vulneraciones del año (o todas las abiertas), de la más reciente a la más antigua. */
208
+ [DataProtectionPatterns.getBreaches]: {
209
+ payload: {
210
+ year?: number | null;
211
+ openOnly?: boolean;
212
+ };
213
+ response: DataBreachResponseEntity[];
214
+ };
215
+ [DataProtectionPatterns.getBreach]: {
216
+ payload: {
217
+ id: string;
218
+ };
219
+ response: DataBreachResponseEntity;
220
+ };
221
+ [DataProtectionPatterns.createBreach]: {
222
+ payload: DataBreachWritePayload & {
223
+ actor: TActor;
224
+ };
225
+ response: DataBreachResponseEntity;
226
+ };
227
+ [DataProtectionPatterns.updateBreach]: {
228
+ payload: DataBreachWritePayload & {
229
+ id: string;
230
+ actor: TActor;
231
+ };
232
+ response: DataBreachResponseEntity;
233
+ };
234
+ [DataProtectionPatterns.actOnBreach]: {
235
+ payload: {
236
+ id: string;
237
+ action: DataBreachAction;
238
+ actor: TActor;
239
+ };
240
+ response: DataBreachResponseEntity;
241
+ };
242
+ /** El registro de la vulneración en PDF, para reportarla o archivarla. */
243
+ [DataProtectionPatterns.getBreachPdf]: {
244
+ payload: {
245
+ id: string;
246
+ generatedBy: string;
247
+ };
248
+ response: IndicatorsFileEntity;
249
+ };
250
+ }
251
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DataProtectionPatterns = void 0;
4
+ /** Patrones NATS de `dataProtection`: tratamientos de datos y solicitudes de los titulares (Ley 19.628). */
5
+ exports.DataProtectionPatterns = {
6
+ getTreatments: 'gestorDocumental.dataProtection.getTreatments',
7
+ createTreatment: 'gestorDocumental.dataProtection.createTreatment',
8
+ updateTreatment: 'gestorDocumental.dataProtection.updateTreatment',
9
+ setTreatmentEnabled: 'gestorDocumental.dataProtection.setTreatmentEnabled',
10
+ getPolicy: 'gestorDocumental.dataProtection.getPolicy',
11
+ getRequests: 'gestorDocumental.dataProtection.getRequests',
12
+ getRequest: 'gestorDocumental.dataProtection.getRequest',
13
+ getSummary: 'gestorDocumental.dataProtection.getSummary',
14
+ createRequest: 'gestorDocumental.dataProtection.createRequest',
15
+ updateRequest: 'gestorDocumental.dataProtection.updateRequest',
16
+ actOnRequest: 'gestorDocumental.dataProtection.actOnRequest',
17
+ getBreaches: 'gestorDocumental.dataProtection.getBreaches',
18
+ getBreach: 'gestorDocumental.dataProtection.getBreach',
19
+ createBreach: 'gestorDocumental.dataProtection.createBreach',
20
+ updateBreach: 'gestorDocumental.dataProtection.updateBreach',
21
+ actOnBreach: 'gestorDocumental.dataProtection.actOnBreach',
22
+ getBreachPdf: 'gestorDocumental.dataProtection.getBreachPdf',
23
+ };
@@ -12,6 +12,7 @@ import { type RepositoryExportContract } from './repositoryExport.contract';
12
12
  import { type RetentionContract } from './retention.contract';
13
13
  import { type AccessRequestContract } from './accessRequest.contract';
14
14
  import { type TransparencyContract } from './transparency.contract';
15
+ import { type DataProtectionContract } from './dataProtection.contract';
15
16
  import { type ScanContract } from './scan.contract';
16
17
  import { type PartsOfficeContract } from './partsOffice.contract';
17
18
  import { type ProcedureContract } from './procedure.contract';
@@ -39,6 +40,7 @@ export * from './repositoryExport.contract';
39
40
  export * from './retention.contract';
40
41
  export * from './accessRequest.contract';
41
42
  export * from './transparency.contract';
43
+ export * from './dataProtection.contract';
42
44
  /** Patrones NATS de gestor-documental-ms, por recurso: `gestorDocumental.<recurso>.<acción>`. */
43
45
  export declare const GestorDocumentalPatterns: {
44
46
  readonly documentType: {
@@ -130,6 +132,7 @@ export declare const GestorDocumentalPatterns: {
130
132
  readonly checkEnablement: "gestorDocumental.partsOffice.checkEnablement";
131
133
  readonly dispatchByContingency: "gestorDocumental.partsOffice.dispatchByContingency";
132
134
  readonly registerManualIntake: "gestorDocumental.partsOffice.registerManualIntake";
135
+ readonly addCaseFileReceipt: "gestorDocumental.partsOffice.addCaseFileReceipt";
133
136
  };
134
137
  readonly registerBook: {
135
138
  readonly get: "gestorDocumental.registerBook.get";
@@ -229,6 +232,25 @@ export declare const GestorDocumentalPatterns: {
229
232
  readonly getPublic: "gestorDocumental.transparency.getPublic";
230
233
  readonly getPublicFile: "gestorDocumental.transparency.getPublicFile";
231
234
  };
235
+ readonly dataProtection: {
236
+ readonly getTreatments: "gestorDocumental.dataProtection.getTreatments";
237
+ readonly createTreatment: "gestorDocumental.dataProtection.createTreatment";
238
+ readonly updateTreatment: "gestorDocumental.dataProtection.updateTreatment";
239
+ readonly setTreatmentEnabled: "gestorDocumental.dataProtection.setTreatmentEnabled";
240
+ readonly getPolicy: "gestorDocumental.dataProtection.getPolicy";
241
+ readonly getRequests: "gestorDocumental.dataProtection.getRequests";
242
+ readonly getRequest: "gestorDocumental.dataProtection.getRequest";
243
+ readonly getSummary: "gestorDocumental.dataProtection.getSummary";
244
+ readonly createRequest: "gestorDocumental.dataProtection.createRequest";
245
+ readonly updateRequest: "gestorDocumental.dataProtection.updateRequest";
246
+ readonly actOnRequest: "gestorDocumental.dataProtection.actOnRequest";
247
+ readonly getBreaches: "gestorDocumental.dataProtection.getBreaches";
248
+ readonly getBreach: "gestorDocumental.dataProtection.getBreach";
249
+ readonly createBreach: "gestorDocumental.dataProtection.createBreach";
250
+ readonly updateBreach: "gestorDocumental.dataProtection.updateBreach";
251
+ readonly actOnBreach: "gestorDocumental.dataProtection.actOnBreach";
252
+ readonly getBreachPdf: "gestorDocumental.dataProtection.getBreachPdf";
253
+ };
232
254
  };
233
255
  /** Contrato completo de gestor-documental-ms: la unión de los contratos de sus recursos. */
234
- export type GestorDocumentalContract = DocumentTypeContract & DocumentContract & ProcedureContract & IssuingEntityContract & CaseFileContract & PartsOfficeContract & RegisterBookContract & SignatureBatchContract & WorkFolderContract & ScanContract & ArchivalSeriesContract & TextSnippetContract & HolidayContract & IndicatorsContract & AuditContract & SignatureCheckContract & RepositoryExportContract & RetentionContract & AccessRequestContract & TransparencyContract;
256
+ export type GestorDocumentalContract = DocumentTypeContract & DocumentContract & ProcedureContract & IssuingEntityContract & CaseFileContract & PartsOfficeContract & RegisterBookContract & SignatureBatchContract & WorkFolderContract & ScanContract & ArchivalSeriesContract & TextSnippetContract & HolidayContract & IndicatorsContract & AuditContract & SignatureCheckContract & RepositoryExportContract & RetentionContract & AccessRequestContract & TransparencyContract & DataProtectionContract;
@@ -29,6 +29,7 @@ const repositoryExport_contract_1 = require("./repositoryExport.contract");
29
29
  const retention_contract_1 = require("./retention.contract");
30
30
  const accessRequest_contract_1 = require("./accessRequest.contract");
31
31
  const transparency_contract_1 = require("./transparency.contract");
32
+ const dataProtection_contract_1 = require("./dataProtection.contract");
32
33
  const scan_contract_1 = require("./scan.contract");
33
34
  const partsOffice_contract_1 = require("./partsOffice.contract");
34
35
  const procedure_contract_1 = require("./procedure.contract");
@@ -56,6 +57,7 @@ __exportStar(require("./repositoryExport.contract"), exports);
56
57
  __exportStar(require("./retention.contract"), exports);
57
58
  __exportStar(require("./accessRequest.contract"), exports);
58
59
  __exportStar(require("./transparency.contract"), exports);
60
+ __exportStar(require("./dataProtection.contract"), exports);
59
61
  /** Patrones NATS de gestor-documental-ms, por recurso: `gestorDocumental.<recurso>.<acción>`. */
60
62
  exports.GestorDocumentalPatterns = {
61
63
  documentType: documentType_contract_1.DocumentTypePatterns,
@@ -78,4 +80,5 @@ exports.GestorDocumentalPatterns = {
78
80
  retention: retention_contract_1.RetentionPatterns,
79
81
  accessRequest: accessRequest_contract_1.AccessRequestPatterns,
80
82
  transparency: transparency_contract_1.TransparencyPatterns,
83
+ dataProtection: dataProtection_contract_1.DataProtectionPatterns,
81
84
  };