@muni-sanfer/types-gestor-documental 0.0.1-beta.102 → 0.0.1-beta.104

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.
@@ -514,6 +514,7 @@ export interface DocumentTypeEntity {
514
514
  issuingEntity?: IssuingEntityEntity | null;
515
515
  issuingEntityId?: string | null;
516
516
  enabled: boolean;
517
+ system?: string | null;
517
518
  version: number;
518
519
  versions?: DocumentTypeVersionEntity[];
519
520
  documents?: DocumentEntity[];
@@ -1034,15 +1035,25 @@ export interface DocDigitalInboundEntity {
1034
1035
  fileName?: string | null;
1035
1036
  attachments: JsonValue;
1036
1037
  signatureCheck?: JsonValue | null;
1038
+ metadata?: JsonValue | null;
1039
+ metadataKeywords: string[];
1040
+ metadataAccessLevel?: DocumentAccessLevel | null;
1041
+ metadataSensitive?: boolean | null;
1042
+ metadataFetchedAt?: string | null;
1037
1043
  registeredAt?: string | null;
1038
1044
  registeredByEmployeeId?: string | null;
1039
1045
  registeredByFullName?: string | null;
1040
1046
  acknowledgedAt?: string | null;
1041
1047
  acknowledgeError?: string | null;
1048
+ acknowledgedByEmployeeId?: string | null;
1049
+ acknowledgedByFullName?: string | null;
1050
+ acknowledgedInDocDigital: boolean;
1051
+ discardReason?: string | null;
1042
1052
  returnedAt?: string | null;
1043
1053
  returnedByEmployeeId?: string | null;
1044
1054
  returnedByFullName?: string | null;
1045
1055
  returnReason?: string | null;
1056
+ returnedInDocDigital: boolean;
1046
1057
  document?: DocumentEntity | null;
1047
1058
  documentId?: string | null;
1048
1059
  createdAt: string;
@@ -395,10 +395,16 @@ export interface DocumentContract {
395
395
  response: DocumentDiscardResponseEntity;
396
396
  };
397
397
  /** Deja sin efecto un documento ya finalizado. Conserva su número, que no se reutiliza. */
398
+ /**
399
+ * Anula un documento, con su motivo: quien lo redactó, mientras no tenga número (firmado por todos y sin foliar, o
400
+ * finalizado de un tipo sin numeración); o quien lleva el registro (`asRegistry`, lo dice el gateway), cualquier
401
+ * finalizado. Lo recibido por DocDigital no se anula.
402
+ */
398
403
  [DocumentPatterns.annul]: {
399
404
  payload: Pick<DocumentEntity, 'id'> & {
400
405
  reason: string;
401
406
  actor: DocumentActor;
407
+ asRegistry?: boolean;
402
408
  };
403
409
  response: DocumentAnnulResponseEntity;
404
410
  };
@@ -165,6 +165,7 @@ export declare const GestorDocumentalPatterns: {
165
165
  readonly syncInbound: "gestorDocumental.partsOffice.syncInbound";
166
166
  readonly registerInbound: "gestorDocumental.partsOffice.registerInbound";
167
167
  readonly acknowledgeInbound: "gestorDocumental.partsOffice.acknowledgeInbound";
168
+ readonly extendDerivation: "gestorDocumental.partsOffice.extendDerivation";
168
169
  readonly returnInbound: "gestorDocumental.partsOffice.returnInbound";
169
170
  readonly getInboundFile: "gestorDocumental.partsOffice.getInboundFile";
170
171
  readonly checkEnablement: "gestorDocumental.partsOffice.checkEnablement";
@@ -1,5 +1,5 @@
1
1
  import { type CommunicationMeans, type DocumentAccessLevel, type DocumentInstruction } from '../base/entities';
2
- import { type CaseFileAddEntryResponseEntity, type DocDigitalDocumentTypeEntity, type DocDigitalEntityEntity, type PartsOfficeInboundEntity, type DocDigitalUserEntity, type EnablementPersonInput, type PartsOfficeEnablementEntity, type PartsOfficeDispatchEntity, type DocDigitalInternalPersonInput, type PartsOfficeInternalRecipientEntity, type DocDigitalInternalMatchEntity, type PartsOfficeFileEntity, type PartsOfficeOkResponseEntity, type PartsOfficeRegisterResponseEntity, type PartsOfficeStatusEntity, type PartsOfficeSummaryEntity, type PartsOfficeSyncResponseEntity } from '../entities';
2
+ import { type CaseFileAddEntryResponseEntity, type DocumentDeriveResponseEntity, type DocDigitalDocumentTypeEntity, type DocDigitalEntityEntity, type PartsOfficeInboundEntity, type DocDigitalUserEntity, type EnablementPersonInput, type PartsOfficeEnablementEntity, type PartsOfficeDispatchEntity, type DocDigitalInternalPersonInput, type PartsOfficeInternalRecipientEntity, type DocDigitalInternalMatchEntity, type PartsOfficeFileEntity, type PartsOfficeOkResponseEntity, type PartsOfficeRegisterResponseEntity, type PartsOfficeStatusEntity, type PartsOfficeSummaryEntity, type PartsOfficeSyncResponseEntity } from '../entities';
3
3
  import { type RpcPage } from './contract';
4
4
  import { type DocumentActor, type DocumentExternalRecipientInput } from './document.contract';
5
5
  /** Patrones NATS de `partsOffice` (Oficina de Partes y DocDigital): `<servicio>.<recurso>.<acción>`. */
@@ -22,6 +22,7 @@ export declare const PartsOfficePatterns: {
22
22
  readonly syncInbound: "gestorDocumental.partsOffice.syncInbound";
23
23
  readonly registerInbound: "gestorDocumental.partsOffice.registerInbound";
24
24
  readonly acknowledgeInbound: "gestorDocumental.partsOffice.acknowledgeInbound";
25
+ readonly extendDerivation: "gestorDocumental.partsOffice.extendDerivation";
25
26
  readonly returnInbound: "gestorDocumental.partsOffice.returnInbound";
26
27
  readonly getInboundFile: "gestorDocumental.partsOffice.getInboundFile";
27
28
  readonly checkEnablement: "gestorDocumental.partsOffice.checkEnablement";
@@ -192,8 +193,17 @@ export interface PartsOfficeContract {
192
193
  };
193
194
  response: PartsOfficeFileEntity;
194
195
  };
196
+ /**
197
+ * `Pending`: pendiente de acuse; `Acknowledged`: con acuse, pendiente de derivación; `Registered`: derivado;
198
+ * `Discarded`: con la derivación descartada; `Returned`: devuelto. `handledIn`: dónde se resolvió (el acuse o la
199
+ * devolución), en el gestor o en DocDigital.
200
+ */
195
201
  [PartsOfficePatterns.getInbound]: {
196
- payload: IListPayload<'Pending' | 'Registered' | 'Returned'>;
202
+ payload: IListPayload<'Pending' | 'Acknowledged' | 'Registered' | 'Discarded' | 'Returned'> & {
203
+ filters?: {
204
+ handledIn?: 'Gestor' | 'DocDigital';
205
+ };
206
+ };
197
207
  response: RpcPage<PartsOfficeInboundEntity[]>;
198
208
  };
199
209
  /** Trae de DocDigital lo recibido que aún no tiene acuse de recibo. */
@@ -202,25 +212,33 @@ export interface PartsOfficeContract {
202
212
  response: PartsOfficeSyncResponseEntity;
203
213
  };
204
214
  /**
205
- * Ingresa un recibido al gestor: le da folio de ingreso, lo deriva a quienes corresponda y da el acuse de recibo
206
- * en DocDigital.
215
+ * Acuse de recibo de un recibido (como en DocDigital): lo ingresa al gestor con folio de ingreso, da el acuse en
216
+ * DocDigital y lo deriva a quienes corresponda o, con `discardReason` («Descartar derivación»), lo deja sin derivar.
207
217
  */
208
218
  [PartsOfficePatterns.registerInbound]: {
209
219
  payload: {
210
220
  id: string;
211
- documentTypeId: string;
221
+ /** Se ignora: lo recibido por DocDigital es siempre «Documento recibido desde DocDigital». */
222
+ documentTypeId?: string;
223
+ /** Solo si DocDigital no trae palabras clave en sus metadatos (si las trae, mandan esas). */
212
224
  keywords: string[];
213
225
  accessLevel: DocumentAccessLevel;
214
226
  hasSensitiveData: boolean;
227
+ /** A quién se deriva; vacío si no se deriva. */
215
228
  recipients: PartsOfficeRecipientInput[];
216
- instruction: DocumentInstruction;
229
+ instruction?: DocumentInstruction;
217
230
  note?: string | null;
218
231
  dueAt?: string | null;
232
+ /** «Descartar derivación»: por qué no se deriva a nadie (entre 3 y 500 caracteres). */
233
+ discardReason?: string | null;
219
234
  actor: DocumentActor;
220
235
  };
221
236
  response: PartsOfficeRegisterResponseEntity;
222
237
  };
223
- /** Reintenta el acuse de recibo de un recibido ya ingresado. */
238
+ /**
239
+ * Acuse de recibo en DocDigital, sin ingresarlo: queda pendiente de derivación. En lo ya ingresado cuyo acuse falló,
240
+ * lo reintenta.
241
+ */
224
242
  [PartsOfficePatterns.acknowledgeInbound]: {
225
243
  payload: {
226
244
  id: string;
@@ -228,6 +246,22 @@ export interface PartsOfficeContract {
228
246
  };
229
247
  response: PartsOfficeOkResponseEntity;
230
248
  };
249
+ /**
250
+ * Amplía la derivación de un recibido ya derivado (de la pestaña «Derivados»): lo deriva a las personas o áreas que
251
+ * faltaron, con su instrucción, providencia y plazo. Es la única forma de derivar lo recibido por DocDigital.
252
+ */
253
+ [PartsOfficePatterns.extendDerivation]: {
254
+ payload: {
255
+ id: string;
256
+ recipients: PartsOfficeRecipientInput[];
257
+ instruction: DocumentInstruction;
258
+ note?: string | null;
259
+ dueAt?: string | null;
260
+ dueBusinessDays?: number | null;
261
+ actor: DocumentActor;
262
+ };
263
+ response: DocumentDeriveResponseEntity;
264
+ };
231
265
  /** Devuelve el recibido a la institución que lo envió, con el motivo (entre 3 y 255 caracteres). */
232
266
  [PartsOfficePatterns.returnInbound]: {
233
267
  payload: {
@@ -21,6 +21,7 @@ exports.PartsOfficePatterns = {
21
21
  syncInbound: 'gestorDocumental.partsOffice.syncInbound',
22
22
  registerInbound: 'gestorDocumental.partsOffice.registerInbound',
23
23
  acknowledgeInbound: 'gestorDocumental.partsOffice.acknowledgeInbound',
24
+ extendDerivation: 'gestorDocumental.partsOffice.extendDerivation',
24
25
  returnInbound: 'gestorDocumental.partsOffice.returnInbound',
25
26
  getInboundFile: 'gestorDocumental.partsOffice.getInboundFile',
26
27
  checkEnablement: 'gestorDocumental.partsOffice.checkEnablement',
@@ -85,6 +85,9 @@ export interface DocumentLinkEntity {
85
85
  /** Folio de ingreso de Oficina de Partes, si llegó por DocDigital. */
86
86
  intakeNumber: DocumentEntity['intakeNumber'];
87
87
  intakeYear: DocumentEntity['intakeYear'];
88
+ /** Lo recibido de otra institución: el folio con que la emitió (folio de origen) y su fecha, como venían. */
89
+ externalFolio?: DocumentEntity['externalFolio'];
90
+ externalDate?: DocumentEntity['externalDate'];
88
91
  }
89
92
  /** Institución (y usuario) de DocDigital a la que va dirigido un documento. */
90
93
  export interface DocumentExternalRecipientResponseEntity {
@@ -333,6 +336,7 @@ export interface DocumentGetByIdResponseEntity {
333
336
  canDerive: boolean;
334
337
  canReply: boolean;
335
338
  canAddRecipients: boolean;
339
+ canAnnul?: boolean;
336
340
  canReassign: boolean;
337
341
  /** Quien consulta redactó el documento (o lo ingresó, si llegó por DocDigital). */
338
342
  isAuthor: boolean;
@@ -1,3 +1,4 @@
1
+ import { type DocumentAccessLevel } from '../../base/entities';
1
2
  import { type DocumentFolioDraft } from '../document/folio';
2
3
  import { type PdfSignatureReportEntity } from '../signatureCheck';
3
4
  import { type DocumentDispatchResponseEntity, type DocumentExternalRecipientResponseEntity, type DocumentLinkEntity } from '../document';
@@ -29,7 +30,10 @@ export interface PartsOfficeSummaryEntity {
29
30
  toFolio: number;
30
31
  /** Foliados, por despachar. */
31
32
  toDispatch: number;
33
+ /** Recibidos pendientes de acuse. */
32
34
  received: number;
35
+ /** Con acuse de recibo (en el gestor o en DocDigital), pendientes de derivación. */
36
+ toDerive: number;
33
37
  }
34
38
  /** Destinatario del gestor (una persona o un área) de un documento por despachar. */
35
39
  export interface PartsOfficeInternalRecipientEntity {
@@ -98,9 +102,26 @@ export interface PartsOfficeInboundEntity {
98
102
  registeredByFullName: string | null;
99
103
  acknowledgedAt: string | null;
100
104
  acknowledgeError: string | null;
105
+ /** Quién dio el acuse: el funcionario del gestor o, si fue en DocDigital, el nombre que informa su historial. */
106
+ acknowledgedByFullName: string | null;
107
+ /**
108
+ * Lo que traen sus metadatos de DocDigital (DS 10) y queda fijo al derivar; lo que viene sin valor lo completa
109
+ * Partes. Sin valor si aún no se leen.
110
+ */
111
+ docDigitalMetadata: {
112
+ keywords: string[];
113
+ accessLevel: DocumentAccessLevel | null;
114
+ hasSensitiveData: boolean | null;
115
+ } | null;
116
+ /** El acuse se dio directamente en DocDigital, no desde el gestor. */
117
+ acknowledgedInDocDigital: boolean;
118
+ /** Acuse de recibo sin derivar («Descartar derivación»): por qué no se derivó a nadie. */
119
+ discardReason: string | null;
101
120
  returnedAt: string | null;
102
121
  returnedByFullName: string | null;
103
122
  returnReason: string | null;
123
+ /** Se devolvió directamente en DocDigital, no desde el gestor. */
124
+ returnedInDocDigital: boolean;
104
125
  /** El documento con que quedó ingresado al gestor. */
105
126
  document: {
106
127
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muni-sanfer/types-gestor-documental",
3
- "version": "0.0.1-beta.102",
3
+ "version": "0.0.1-beta.104",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -755,6 +755,7 @@ export interface DocumentTypeEntity {
755
755
  issuingEntity?: IssuingEntityEntity | null;
756
756
  issuingEntityId?: string | null;
757
757
  enabled: boolean;
758
+ system?: string | null;
758
759
  version: number;
759
760
  versions?: DocumentTypeVersionEntity[];
760
761
  documents?: DocumentEntity[];
@@ -1301,15 +1302,25 @@ export interface DocDigitalInboundEntity {
1301
1302
  fileName?: string | null;
1302
1303
  attachments: JsonValue;
1303
1304
  signatureCheck?: JsonValue | null;
1305
+ metadata?: JsonValue | null;
1306
+ metadataKeywords: string[];
1307
+ metadataAccessLevel?: DocumentAccessLevel | null;
1308
+ metadataSensitive?: boolean | null;
1309
+ metadataFetchedAt?: string | null;
1304
1310
  registeredAt?: string | null;
1305
1311
  registeredByEmployeeId?: string | null;
1306
1312
  registeredByFullName?: string | null;
1307
1313
  acknowledgedAt?: string | null;
1308
1314
  acknowledgeError?: string | null;
1315
+ acknowledgedByEmployeeId?: string | null;
1316
+ acknowledgedByFullName?: string | null;
1317
+ acknowledgedInDocDigital: boolean;
1318
+ discardReason?: string | null;
1309
1319
  returnedAt?: string | null;
1310
1320
  returnedByEmployeeId?: string | null;
1311
1321
  returnedByFullName?: string | null;
1312
1322
  returnReason?: string | null;
1323
+ returnedInDocDigital: boolean;
1313
1324
  document?: DocumentEntity | null;
1314
1325
  documentId?: string | null;
1315
1326
  createdAt: string;
@@ -445,8 +445,13 @@ export interface DocumentContract {
445
445
  response: DocumentDiscardResponseEntity;
446
446
  };
447
447
  /** Deja sin efecto un documento ya finalizado. Conserva su número, que no se reutiliza. */
448
+ /**
449
+ * Anula un documento, con su motivo: quien lo redactó, mientras no tenga número (firmado por todos y sin foliar, o
450
+ * finalizado de un tipo sin numeración); o quien lleva el registro (`asRegistry`, lo dice el gateway), cualquier
451
+ * finalizado. Lo recibido por DocDigital no se anula.
452
+ */
448
453
  [DocumentPatterns.annul]: {
449
- payload: Pick<DocumentEntity, 'id'> & { reason: string; actor: DocumentActor };
454
+ payload: Pick<DocumentEntity, 'id'> & { reason: string; actor: DocumentActor; asRegistry?: boolean };
450
455
  response: DocumentAnnulResponseEntity;
451
456
  };
452
457
  /**
@@ -1,6 +1,7 @@
1
1
  import { type CommunicationMeans, type DocumentAccessLevel, type DocumentInstruction } from '../base/entities';
2
2
  import {
3
3
  type CaseFileAddEntryResponseEntity,
4
+ type DocumentDeriveResponseEntity,
4
5
  type DocDigitalDocumentTypeEntity,
5
6
  type DocDigitalEntityEntity,
6
7
  type PartsOfficeInboundEntity,
@@ -41,6 +42,7 @@ export const PartsOfficePatterns = {
41
42
  syncInbound: 'gestorDocumental.partsOffice.syncInbound',
42
43
  registerInbound: 'gestorDocumental.partsOffice.registerInbound',
43
44
  acknowledgeInbound: 'gestorDocumental.partsOffice.acknowledgeInbound',
45
+ extendDerivation: 'gestorDocumental.partsOffice.extendDerivation',
44
46
  returnInbound: 'gestorDocumental.partsOffice.returnInbound',
45
47
  getInboundFile: 'gestorDocumental.partsOffice.getInboundFile',
46
48
  checkEnablement: 'gestorDocumental.partsOffice.checkEnablement',
@@ -152,36 +154,67 @@ export interface PartsOfficeContract {
152
154
  payload: { id: string; receipt?: boolean };
153
155
  response: PartsOfficeFileEntity;
154
156
  };
157
+ /**
158
+ * `Pending`: pendiente de acuse; `Acknowledged`: con acuse, pendiente de derivación; `Registered`: derivado;
159
+ * `Discarded`: con la derivación descartada; `Returned`: devuelto. `handledIn`: dónde se resolvió (el acuse o la
160
+ * devolución), en el gestor o en DocDigital.
161
+ */
155
162
  [PartsOfficePatterns.getInbound]: {
156
- payload: IListPayload<'Pending' | 'Registered' | 'Returned'>;
163
+ payload: IListPayload<'Pending' | 'Acknowledged' | 'Registered' | 'Discarded' | 'Returned'> & {
164
+ filters?: { handledIn?: 'Gestor' | 'DocDigital' };
165
+ };
157
166
  response: RpcPage<PartsOfficeInboundEntity[]>;
158
167
  };
159
168
  /** Trae de DocDigital lo recibido que aún no tiene acuse de recibo. */
160
169
  [PartsOfficePatterns.syncInbound]: { payload: Record<string, never>; response: PartsOfficeSyncResponseEntity };
161
170
  /**
162
- * Ingresa un recibido al gestor: le da folio de ingreso, lo deriva a quienes corresponda y da el acuse de recibo
163
- * en DocDigital.
171
+ * Acuse de recibo de un recibido (como en DocDigital): lo ingresa al gestor con folio de ingreso, da el acuse en
172
+ * DocDigital y lo deriva a quienes corresponda o, con `discardReason` («Descartar derivación»), lo deja sin derivar.
164
173
  */
165
174
  [PartsOfficePatterns.registerInbound]: {
166
175
  payload: {
167
176
  id: string;
168
- documentTypeId: string;
177
+ /** Se ignora: lo recibido por DocDigital es siempre «Documento recibido desde DocDigital». */
178
+ documentTypeId?: string;
179
+ /** Solo si DocDigital no trae palabras clave en sus metadatos (si las trae, mandan esas). */
169
180
  keywords: string[];
170
181
  accessLevel: DocumentAccessLevel;
171
182
  hasSensitiveData: boolean;
183
+ /** A quién se deriva; vacío si no se deriva. */
172
184
  recipients: PartsOfficeRecipientInput[];
173
- instruction: DocumentInstruction;
185
+ instruction?: DocumentInstruction;
174
186
  note?: string | null;
175
187
  dueAt?: string | null;
188
+ /** «Descartar derivación»: por qué no se deriva a nadie (entre 3 y 500 caracteres). */
189
+ discardReason?: string | null;
176
190
  actor: DocumentActor;
177
191
  };
178
192
  response: PartsOfficeRegisterResponseEntity;
179
193
  };
180
- /** Reintenta el acuse de recibo de un recibido ya ingresado. */
194
+ /**
195
+ * Acuse de recibo en DocDigital, sin ingresarlo: queda pendiente de derivación. En lo ya ingresado cuyo acuse falló,
196
+ * lo reintenta.
197
+ */
181
198
  [PartsOfficePatterns.acknowledgeInbound]: {
182
199
  payload: { id: string; actor: DocumentActor };
183
200
  response: PartsOfficeOkResponseEntity;
184
201
  };
202
+ /**
203
+ * Amplía la derivación de un recibido ya derivado (de la pestaña «Derivados»): lo deriva a las personas o áreas que
204
+ * faltaron, con su instrucción, providencia y plazo. Es la única forma de derivar lo recibido por DocDigital.
205
+ */
206
+ [PartsOfficePatterns.extendDerivation]: {
207
+ payload: {
208
+ id: string;
209
+ recipients: PartsOfficeRecipientInput[];
210
+ instruction: DocumentInstruction;
211
+ note?: string | null;
212
+ dueAt?: string | null;
213
+ dueBusinessDays?: number | null;
214
+ actor: DocumentActor;
215
+ };
216
+ response: DocumentDeriveResponseEntity;
217
+ };
185
218
  /** Devuelve el recibido a la institución que lo envió, con el motivo (entre 3 y 255 caracteres). */
186
219
  [PartsOfficePatterns.returnInbound]: {
187
220
  payload: { id: string; reason: string; actor: DocumentActor };
@@ -109,6 +109,9 @@ export interface DocumentLinkEntity {
109
109
  /** Folio de ingreso de Oficina de Partes, si llegó por DocDigital. */
110
110
  intakeNumber: DocumentEntity['intakeNumber'];
111
111
  intakeYear: DocumentEntity['intakeYear'];
112
+ /** Lo recibido de otra institución: el folio con que la emitió (folio de origen) y su fecha, como venían. */
113
+ externalFolio?: DocumentEntity['externalFolio'];
114
+ externalDate?: DocumentEntity['externalDate'];
112
115
  }
113
116
 
114
117
  /** Institución (y usuario) de DocDigital a la que va dirigido un documento. */
@@ -365,6 +368,9 @@ export interface DocumentGetByIdResponseEntity {
365
368
  canReply: boolean;
366
369
  // Ya finalizado, puede agregarle destinatarios (quien lo redactó o quien lleva el historial).
367
370
  canAddRecipients: boolean;
371
+ // Lo redactó y aún no tiene número (firmado por todos y sin foliar, o finalizado sin numeración): lo puede anular.
372
+ // Quien lleva el registro anula además cualquier finalizado, con su permiso.
373
+ canAnnul?: boolean;
368
374
  // Es quien redactó un documento en tramitación: puede pasar un turno pendiente a otro funcionario.
369
375
  canReassign: boolean;
370
376
  /** Quien consulta redactó el documento (o lo ingresó, si llegó por DocDigital). */
@@ -1,3 +1,4 @@
1
+ import { type DocumentAccessLevel } from '../../base/entities';
1
2
  import { type DocumentFolioDraft } from '../document/folio';
2
3
  import { type PdfSignatureReportEntity } from '../signatureCheck';
3
4
  import {
@@ -38,7 +39,10 @@ export interface PartsOfficeSummaryEntity {
38
39
  toFolio: number;
39
40
  /** Foliados, por despachar. */
40
41
  toDispatch: number;
42
+ /** Recibidos pendientes de acuse. */
41
43
  received: number;
44
+ /** Con acuse de recibo (en el gestor o en DocDigital), pendientes de derivación. */
45
+ toDerive: number;
42
46
  }
43
47
 
44
48
  /** Destinatario del gestor (una persona o un área) de un documento por despachar. */
@@ -106,9 +110,26 @@ export interface PartsOfficeInboundEntity {
106
110
  registeredByFullName: string | null;
107
111
  acknowledgedAt: string | null;
108
112
  acknowledgeError: string | null;
113
+ /** Quién dio el acuse: el funcionario del gestor o, si fue en DocDigital, el nombre que informa su historial. */
114
+ acknowledgedByFullName: string | null;
115
+ /**
116
+ * Lo que traen sus metadatos de DocDigital (DS 10) y queda fijo al derivar; lo que viene sin valor lo completa
117
+ * Partes. Sin valor si aún no se leen.
118
+ */
119
+ docDigitalMetadata: {
120
+ keywords: string[];
121
+ accessLevel: DocumentAccessLevel | null;
122
+ hasSensitiveData: boolean | null;
123
+ } | null;
124
+ /** El acuse se dio directamente en DocDigital, no desde el gestor. */
125
+ acknowledgedInDocDigital: boolean;
126
+ /** Acuse de recibo sin derivar («Descartar derivación»): por qué no se derivó a nadie. */
127
+ discardReason: string | null;
109
128
  returnedAt: string | null;
110
129
  returnedByFullName: string | null;
111
130
  returnReason: string | null;
131
+ /** Se devolvió directamente en DocDigital, no desde el gestor. */
132
+ returnedInDocDigital: boolean;
112
133
  /** El documento con que quedó ingresado al gestor. */
113
134
  document: { id: string; intakeNumber: number | null; intakeYear: number | null } | null;
114
135
  }