@muni-sanfer/types-gestor-documental 0.0.1-beta.84 → 0.0.1-beta.86
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/dist/base/entities.d.ts +10 -3
- package/dist/base/entities.js +1 -0
- package/dist/contracts/document.contract.d.ts +20 -1
- package/dist/contracts/document.contract.js +1 -0
- package/dist/contracts/index.d.ts +1 -0
- package/dist/entities/document/document.entity.d.ts +19 -2
- package/package.json +1 -1
- package/src/base/entities.ts +10 -2
- package/src/contracts/document.contract.ts +22 -1
- package/src/entities/document/document.entity.ts +25 -3
package/dist/base/entities.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export declare const DocumentParticipantStatus: {
|
|
|
51
51
|
Resolved: "Resolved";
|
|
52
52
|
Rejected: "Rejected";
|
|
53
53
|
};
|
|
54
|
-
export type DocumentTrackingAction = 'Created' | 'Updated' | 'Submitted' | 'Visaed' | 'Signed' | 'Rejected' | 'Finished' | 'Discarded' | 'Numbered' | 'NumberAnnulled' | 'Annulled' | 'Delivered' | 'Derived' | 'Reassigned' | 'Dispatched' | 'DispatchReturned' | 'DispatchedByContingency' | 'Received' | 'EmailCopySent' | 'EmailCopyOpened' | 'DispositionRecorded' | 'TransparencyRedacted' | 'TransparencyPublished' | 'TransparencyExcluded' | 'TransparencyWithdrawn' | 'DraftReviewRequested' | 'DraftReviewApproved' | 'DraftReviewRejected' | 'DraftReviewCancelled' | 'DraftCorrected';
|
|
54
|
+
export type DocumentTrackingAction = 'Created' | 'Updated' | 'Submitted' | 'Visaed' | 'Signed' | 'Rejected' | 'Finished' | 'Discarded' | 'Numbered' | 'NumberAnnulled' | 'Annulled' | 'Delivered' | 'Derived' | 'RecipientsAdded' | 'Reassigned' | 'Dispatched' | 'DispatchReturned' | 'DispatchedByContingency' | 'Received' | 'EmailCopySent' | 'EmailCopyOpened' | 'DispositionRecorded' | 'TransparencyRedacted' | 'TransparencyPublished' | 'TransparencyExcluded' | 'TransparencyWithdrawn' | 'DraftReviewRequested' | 'DraftReviewApproved' | 'DraftReviewRejected' | 'DraftReviewCancelled' | 'DraftCorrected';
|
|
55
55
|
export declare const DocumentTrackingAction: {
|
|
56
56
|
Created: "Created";
|
|
57
57
|
Updated: "Updated";
|
|
@@ -66,6 +66,7 @@ export declare const DocumentTrackingAction: {
|
|
|
66
66
|
Annulled: "Annulled";
|
|
67
67
|
Delivered: "Delivered";
|
|
68
68
|
Derived: "Derived";
|
|
69
|
+
RecipientsAdded: "RecipientsAdded";
|
|
69
70
|
Reassigned: "Reassigned";
|
|
70
71
|
Dispatched: "Dispatched";
|
|
71
72
|
DispatchReturned: "DispatchReturned";
|
|
@@ -667,9 +668,11 @@ export interface DocumentRecipientEntity {
|
|
|
667
668
|
export interface DocumentDeliveryEntity {
|
|
668
669
|
id: string;
|
|
669
670
|
origin: DocumentDeliveryOrigin;
|
|
670
|
-
employeeId
|
|
671
|
-
fullName
|
|
671
|
+
employeeId?: string | null;
|
|
672
|
+
fullName?: string | null;
|
|
672
673
|
position?: string | null;
|
|
674
|
+
directorateCodeReference?: number | null;
|
|
675
|
+
departmentId?: string | null;
|
|
673
676
|
areaName?: string | null;
|
|
674
677
|
sentByEmployeeId?: string | null;
|
|
675
678
|
sentByFullName?: string | null;
|
|
@@ -680,6 +683,10 @@ export interface DocumentDeliveryEntity {
|
|
|
680
683
|
readAt?: string | null;
|
|
681
684
|
closedAt?: string | null;
|
|
682
685
|
closingNote?: string | null;
|
|
686
|
+
readByEmployeeId?: string | null;
|
|
687
|
+
readByFullName?: string | null;
|
|
688
|
+
closedByEmployeeId?: string | null;
|
|
689
|
+
closedByFullName?: string | null;
|
|
683
690
|
dueSoonRemindedAt?: string | null;
|
|
684
691
|
overdueRemindedAt?: string | null;
|
|
685
692
|
document?: DocumentEntity;
|
package/dist/base/entities.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DocumentAccessAction, type DocumentAccessLevel, type DocumentAttachmentEntity, type DocumentDeliveryEntity, type DocumentEntity, type DocumentInstruction, type DocumentParticipantEntity, type DocumentStatus } from '../base/entities';
|
|
2
|
-
import { type DocumentAnnulResponseEntity, type DocumentCloseDeliveryResponseEntity, type DocumentCreateResponseEntity, type DocumentDeriveResponseEntity, type DocumentDiscardResponseEntity, type DocumentEmailCopyIssuedEntity, type DocumentEmailCopyViewEntity, type DocumentReminderEntity, type DocumentSlaReminderEntity, type DocumentGetAllResponseEntity, type DocumentGetByIdResponseEntity, type DocumentGetSummaryResponseEntity, type DocumentReviewAreaEntity, type DocumentInboxItemEntity, type DocumentPublicFileResponseEntity, type DocumentReassignResponseEntity, type DocumentReviewResponseEntity, type DocumentSignManyResponseEntity, type DocumentAgendaResponseEntity, type DocumentComposeResponseEntity, type DocumentComposition, type DocumentTrailExportEntity, type DocumentUpdateResponseEntity, type DocumentVerifyResponseEntity, type DocumentCommentResponseEntity, type DocumentCommentsResponseEntity, type DocumentVersionResponseEntity, type DocumentDraftCorrectionResponseEntity, type DocumentStampPlacements, type DocumentDraftReviewResponseEntity } from '../entities';
|
|
2
|
+
import { type DocumentAnnulResponseEntity, type DocumentCloseDeliveryResponseEntity, type DocumentCreateResponseEntity, type DocumentAddRecipientsResponseEntity, type DocumentDeriveResponseEntity, type DocumentDiscardResponseEntity, type DocumentEmailCopyIssuedEntity, type DocumentEmailCopyViewEntity, type DocumentReminderEntity, type DocumentSlaReminderEntity, type DocumentGetAllResponseEntity, type DocumentGetByIdResponseEntity, type DocumentGetSummaryResponseEntity, type DocumentReviewAreaEntity, type DocumentInboxItemEntity, type DocumentPublicFileResponseEntity, type DocumentReassignResponseEntity, type DocumentReviewResponseEntity, type DocumentSignManyResponseEntity, type DocumentAgendaResponseEntity, type DocumentComposeResponseEntity, type DocumentComposition, type DocumentTrailExportEntity, type DocumentUpdateResponseEntity, type DocumentVerifyResponseEntity, type DocumentCommentResponseEntity, type DocumentCommentsResponseEntity, type DocumentVersionResponseEntity, type DocumentDraftCorrectionResponseEntity, type DocumentStampPlacements, type DocumentDraftReviewResponseEntity } from '../entities';
|
|
3
3
|
import { type RpcPage } from './contract';
|
|
4
4
|
/** Patrones NATS de `document`: `<servicio>.<recurso>.<acción>`. */
|
|
5
5
|
export declare const DocumentPatterns: {
|
|
@@ -19,6 +19,7 @@ export declare const DocumentPatterns: {
|
|
|
19
19
|
readonly discard: "gestorDocumental.document.discard";
|
|
20
20
|
readonly annul: "gestorDocumental.document.annul";
|
|
21
21
|
readonly derive: "gestorDocumental.document.derive";
|
|
22
|
+
readonly addRecipients: "gestorDocumental.document.addRecipients";
|
|
22
23
|
readonly closeDelivery: "gestorDocumental.document.closeDelivery";
|
|
23
24
|
readonly verify: "gestorDocumental.document.verify";
|
|
24
25
|
readonly getVersions: "gestorDocumental.document.getVersions";
|
|
@@ -56,6 +57,11 @@ export interface DocumentActor {
|
|
|
56
57
|
* documentos de sus departamentos; quien está solo en un departamento, solo los de ese). Lo resuelve el gateway.
|
|
57
58
|
*/
|
|
58
59
|
areaDepartmentIds?: string[];
|
|
60
|
+
/**
|
|
61
|
+
* Direcciones de los departamentos que integra o encarga: lo que llega a esas direcciones también le llega (como a
|
|
62
|
+
* quienes las integran). Lo resuelve el gateway.
|
|
63
|
+
*/
|
|
64
|
+
inboxDirectorateCodes?: number[];
|
|
59
65
|
}
|
|
60
66
|
/** Bandeja desde la que se lista. Todas son del funcionario (`actor`), salvo `all`. */
|
|
61
67
|
export type DocumentBucket = 'created' | 'area' | 'sent' | 'toVisa' | 'toSign' | 'participated' | 'visaed' | 'signed' | 'reviewed' | 'toReview' | 'visaAll' | 'signAll' | 'reviewAll' | 'all';
|
|
@@ -223,6 +229,7 @@ export interface DocumentContract {
|
|
|
223
229
|
filters?: {
|
|
224
230
|
search?: string;
|
|
225
231
|
state?: DocumentInboxState;
|
|
232
|
+
mailbox?: string;
|
|
226
233
|
};
|
|
227
234
|
actor: DocumentActor;
|
|
228
235
|
};
|
|
@@ -369,6 +376,18 @@ export interface DocumentContract {
|
|
|
369
376
|
};
|
|
370
377
|
response: DocumentDeriveResponseEntity;
|
|
371
378
|
};
|
|
379
|
+
/**
|
|
380
|
+
* Agrega destinatarios a un documento ya finalizado (las áreas o personas que faltaron): les llega de inmediato y
|
|
381
|
+
* queda en la trazabilidad quién los agregó. Lo hace quien lo redactó o, con `viewAll`, quien lleva el historial.
|
|
382
|
+
*/
|
|
383
|
+
[DocumentPatterns.addRecipients]: {
|
|
384
|
+
payload: Pick<DocumentEntity, 'id'> & {
|
|
385
|
+
recipients: DocumentRecipientInput[];
|
|
386
|
+
actor: DocumentActor;
|
|
387
|
+
viewAll?: boolean;
|
|
388
|
+
};
|
|
389
|
+
response: DocumentAddRecipientsResponseEntity;
|
|
390
|
+
};
|
|
372
391
|
/** Quien recibió un documento lo marca como atendido, con una nota opcional. */
|
|
373
392
|
[DocumentPatterns.closeDelivery]: {
|
|
374
393
|
payload: {
|
|
@@ -19,6 +19,7 @@ exports.DocumentPatterns = {
|
|
|
19
19
|
discard: 'gestorDocumental.document.discard',
|
|
20
20
|
annul: 'gestorDocumental.document.annul',
|
|
21
21
|
derive: 'gestorDocumental.document.derive',
|
|
22
|
+
addRecipients: 'gestorDocumental.document.addRecipients',
|
|
22
23
|
closeDelivery: 'gestorDocumental.document.closeDelivery',
|
|
23
24
|
verify: 'gestorDocumental.document.verify',
|
|
24
25
|
getVersions: 'gestorDocumental.document.getVersions',
|
|
@@ -89,6 +89,7 @@ export declare const GestorDocumentalPatterns: {
|
|
|
89
89
|
readonly discard: "gestorDocumental.document.discard";
|
|
90
90
|
readonly annul: "gestorDocumental.document.annul";
|
|
91
91
|
readonly derive: "gestorDocumental.document.derive";
|
|
92
|
+
readonly addRecipients: "gestorDocumental.document.addRecipients";
|
|
92
93
|
readonly closeDelivery: "gestorDocumental.document.closeDelivery";
|
|
93
94
|
readonly verify: "gestorDocumental.document.verify";
|
|
94
95
|
readonly getVersions: "gestorDocumental.document.getVersions";
|
|
@@ -55,6 +55,8 @@ export interface DocumentDeliveryResponseEntity {
|
|
|
55
55
|
employeeId: DocumentDeliveryEntity['employeeId'];
|
|
56
56
|
fullName: DocumentDeliveryEntity['fullName'];
|
|
57
57
|
position: DocumentDeliveryEntity['position'];
|
|
58
|
+
directorateCodeReference: DocumentDeliveryEntity['directorateCodeReference'];
|
|
59
|
+
departmentId: DocumentDeliveryEntity['departmentId'];
|
|
58
60
|
areaName: DocumentDeliveryEntity['areaName'];
|
|
59
61
|
sentByEmployeeId: DocumentDeliveryEntity['sentByEmployeeId'];
|
|
60
62
|
sentByFullName: DocumentDeliveryEntity['sentByFullName'];
|
|
@@ -65,6 +67,8 @@ export interface DocumentDeliveryResponseEntity {
|
|
|
65
67
|
readAt: DocumentDeliveryEntity['readAt'];
|
|
66
68
|
closedAt: DocumentDeliveryEntity['closedAt'];
|
|
67
69
|
closingNote: DocumentDeliveryEntity['closingNote'];
|
|
70
|
+
readByFullName: DocumentDeliveryEntity['readByFullName'];
|
|
71
|
+
closedByFullName: DocumentDeliveryEntity['closedByFullName'];
|
|
68
72
|
}
|
|
69
73
|
/** Lo necesario para citar otro documento y enlazarlo (el que se responde, o las respuestas). */
|
|
70
74
|
export interface DocumentLinkEntity {
|
|
@@ -292,6 +296,7 @@ export interface DocumentGetByIdResponseEntity {
|
|
|
292
296
|
canDiscard: boolean;
|
|
293
297
|
canDerive: boolean;
|
|
294
298
|
canReply: boolean;
|
|
299
|
+
canAddRecipients: boolean;
|
|
295
300
|
canReassign: boolean;
|
|
296
301
|
/** Quien consulta redactó el documento (o lo ingresó, si llegó por DocDigital). */
|
|
297
302
|
isAuthor: boolean;
|
|
@@ -411,6 +416,11 @@ export interface DocumentPublicFileResponseEntity {
|
|
|
411
416
|
fileId: string;
|
|
412
417
|
fileName: string;
|
|
413
418
|
}
|
|
419
|
+
export interface DocumentAddRecipientsResponseEntity {
|
|
420
|
+
id: DocumentEntity['id'];
|
|
421
|
+
ok: boolean;
|
|
422
|
+
delivered: number;
|
|
423
|
+
}
|
|
414
424
|
export interface DocumentDeriveResponseEntity {
|
|
415
425
|
id: DocumentEntity['id'];
|
|
416
426
|
ok: boolean;
|
|
@@ -704,8 +714,15 @@ export interface DocumentSlaReminderEntity {
|
|
|
704
714
|
export interface DocumentReminderEntity {
|
|
705
715
|
deliveryId: string;
|
|
706
716
|
kind: 'DueSoon' | 'Overdue';
|
|
707
|
-
|
|
708
|
-
|
|
717
|
+
/**
|
|
718
|
+
* A quién se le recuerda: a la persona (`employeeId`) o, si le llegó a un área, a su jefatura (el gateway la resuelve
|
|
719
|
+
* con `directorateCodeReference` o `departmentId`).
|
|
720
|
+
*/
|
|
721
|
+
employeeId: string | null;
|
|
722
|
+
fullName: string | null;
|
|
723
|
+
directorateCodeReference: number | null;
|
|
724
|
+
departmentId: string | null;
|
|
725
|
+
areaName: string | null;
|
|
709
726
|
documentId: string;
|
|
710
727
|
/** Cómo se cita: «D.E. N° 590/2026», el folio de ingreso o el tipo. */
|
|
711
728
|
folio: string;
|
package/package.json
CHANGED
package/src/base/entities.ts
CHANGED
|
@@ -93,6 +93,7 @@ export type DocumentTrackingAction =
|
|
|
93
93
|
| 'Annulled'
|
|
94
94
|
| 'Delivered'
|
|
95
95
|
| 'Derived'
|
|
96
|
+
| 'RecipientsAdded'
|
|
96
97
|
| 'Reassigned'
|
|
97
98
|
| 'Dispatched'
|
|
98
99
|
| 'DispatchReturned'
|
|
@@ -125,6 +126,7 @@ export const DocumentTrackingAction = {
|
|
|
125
126
|
Annulled: 'Annulled',
|
|
126
127
|
Delivered: 'Delivered',
|
|
127
128
|
Derived: 'Derived',
|
|
129
|
+
RecipientsAdded: 'RecipientsAdded',
|
|
128
130
|
Reassigned: 'Reassigned',
|
|
129
131
|
Dispatched: 'Dispatched',
|
|
130
132
|
DispatchReturned: 'DispatchReturned',
|
|
@@ -902,9 +904,11 @@ export interface DocumentRecipientEntity {
|
|
|
902
904
|
export interface DocumentDeliveryEntity {
|
|
903
905
|
id: string;
|
|
904
906
|
origin: DocumentDeliveryOrigin;
|
|
905
|
-
employeeId
|
|
906
|
-
fullName
|
|
907
|
+
employeeId?: string | null;
|
|
908
|
+
fullName?: string | null;
|
|
907
909
|
position?: string | null;
|
|
910
|
+
directorateCodeReference?: number | null;
|
|
911
|
+
departmentId?: string | null;
|
|
908
912
|
areaName?: string | null;
|
|
909
913
|
sentByEmployeeId?: string | null;
|
|
910
914
|
sentByFullName?: string | null;
|
|
@@ -915,6 +919,10 @@ export interface DocumentDeliveryEntity {
|
|
|
915
919
|
readAt?: string | null;
|
|
916
920
|
closedAt?: string | null;
|
|
917
921
|
closingNote?: string | null;
|
|
922
|
+
readByEmployeeId?: string | null;
|
|
923
|
+
readByFullName?: string | null;
|
|
924
|
+
closedByEmployeeId?: string | null;
|
|
925
|
+
closedByFullName?: string | null;
|
|
918
926
|
dueSoonRemindedAt?: string | null;
|
|
919
927
|
overdueRemindedAt?: string | null;
|
|
920
928
|
document?: DocumentEntity;
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
type DocumentAnnulResponseEntity,
|
|
13
13
|
type DocumentCloseDeliveryResponseEntity,
|
|
14
14
|
type DocumentCreateResponseEntity,
|
|
15
|
+
type DocumentAddRecipientsResponseEntity,
|
|
15
16
|
type DocumentDeriveResponseEntity,
|
|
16
17
|
type DocumentDiscardResponseEntity,
|
|
17
18
|
type DocumentEmailCopyIssuedEntity,
|
|
@@ -60,6 +61,7 @@ export const DocumentPatterns = {
|
|
|
60
61
|
discard: 'gestorDocumental.document.discard',
|
|
61
62
|
annul: 'gestorDocumental.document.annul',
|
|
62
63
|
derive: 'gestorDocumental.document.derive',
|
|
64
|
+
addRecipients: 'gestorDocumental.document.addRecipients',
|
|
63
65
|
closeDelivery: 'gestorDocumental.document.closeDelivery',
|
|
64
66
|
verify: 'gestorDocumental.document.verify',
|
|
65
67
|
getVersions: 'gestorDocumental.document.getVersions',
|
|
@@ -98,6 +100,11 @@ export interface DocumentActor {
|
|
|
98
100
|
* documentos de sus departamentos; quien está solo en un departamento, solo los de ese). Lo resuelve el gateway.
|
|
99
101
|
*/
|
|
100
102
|
areaDepartmentIds?: string[];
|
|
103
|
+
/**
|
|
104
|
+
* Direcciones de los departamentos que integra o encarga: lo que llega a esas direcciones también le llega (como a
|
|
105
|
+
* quienes las integran). Lo resuelve el gateway.
|
|
106
|
+
*/
|
|
107
|
+
inboxDirectorateCodes?: number[];
|
|
101
108
|
}
|
|
102
109
|
|
|
103
110
|
/** Bandeja desde la que se lista. Todas son del funcionario (`actor`), salvo `all`. */
|
|
@@ -278,7 +285,9 @@ export interface DocumentContract {
|
|
|
278
285
|
[DocumentPatterns.getInbox]: {
|
|
279
286
|
payload: {
|
|
280
287
|
pagination?: { page?: number; limit?: number };
|
|
281
|
-
|
|
288
|
+
// `mailbox`: el buzón personal (`personal`), el de una dirección (`d-9`) o el de un departamento (`p-<id>`); sin
|
|
289
|
+
// él, todos los suyos
|
|
290
|
+
filters?: { search?: string; state?: DocumentInboxState; mailbox?: string };
|
|
282
291
|
actor: DocumentActor;
|
|
283
292
|
};
|
|
284
293
|
response: RpcPage<DocumentInboxItemEntity[]>;
|
|
@@ -411,6 +420,18 @@ export interface DocumentContract {
|
|
|
411
420
|
};
|
|
412
421
|
response: DocumentDeriveResponseEntity;
|
|
413
422
|
};
|
|
423
|
+
/**
|
|
424
|
+
* Agrega destinatarios a un documento ya finalizado (las áreas o personas que faltaron): les llega de inmediato y
|
|
425
|
+
* queda en la trazabilidad quién los agregó. Lo hace quien lo redactó o, con `viewAll`, quien lleva el historial.
|
|
426
|
+
*/
|
|
427
|
+
[DocumentPatterns.addRecipients]: {
|
|
428
|
+
payload: Pick<DocumentEntity, 'id'> & {
|
|
429
|
+
recipients: DocumentRecipientInput[];
|
|
430
|
+
actor: DocumentActor;
|
|
431
|
+
viewAll?: boolean;
|
|
432
|
+
};
|
|
433
|
+
response: DocumentAddRecipientsResponseEntity;
|
|
434
|
+
};
|
|
414
435
|
/** Quien recibió un documento lo marca como atendido, con una nota opcional. */
|
|
415
436
|
[DocumentPatterns.closeDelivery]: {
|
|
416
437
|
payload: { deliveryId: DocumentDeliveryEntity['id']; note?: string | null; actor: DocumentActor };
|
|
@@ -68,10 +68,13 @@ export interface DocumentRecipientResponseEntity {
|
|
|
68
68
|
export interface DocumentDeliveryResponseEntity {
|
|
69
69
|
id: DocumentDeliveryEntity['id'];
|
|
70
70
|
origin: DocumentDeliveryEntity['origin'];
|
|
71
|
+
// A una persona (`employeeId`) o a un área completa (`directorateCodeReference` o `departmentId`, con `areaName`): la
|
|
72
|
+
// de un área la ven todos quienes la integran o la dirigen hoy.
|
|
71
73
|
employeeId: DocumentDeliveryEntity['employeeId'];
|
|
72
74
|
fullName: DocumentDeliveryEntity['fullName'];
|
|
73
75
|
position: DocumentDeliveryEntity['position'];
|
|
74
|
-
|
|
76
|
+
directorateCodeReference: DocumentDeliveryEntity['directorateCodeReference'];
|
|
77
|
+
departmentId: DocumentDeliveryEntity['departmentId'];
|
|
75
78
|
areaName: DocumentDeliveryEntity['areaName'];
|
|
76
79
|
// Quién se lo derivó. Null si es uno de los destinatarios originales.
|
|
77
80
|
sentByEmployeeId: DocumentDeliveryEntity['sentByEmployeeId'];
|
|
@@ -84,6 +87,9 @@ export interface DocumentDeliveryResponseEntity {
|
|
|
84
87
|
readAt: DocumentDeliveryEntity['readAt'];
|
|
85
88
|
closedAt: DocumentDeliveryEntity['closedAt'];
|
|
86
89
|
closingNote: DocumentDeliveryEntity['closingNote'];
|
|
90
|
+
// Quién lo abrió primero y quién lo marcó como atendido (en la de un área, quién de ella).
|
|
91
|
+
readByFullName: DocumentDeliveryEntity['readByFullName'];
|
|
92
|
+
closedByFullName: DocumentDeliveryEntity['closedByFullName'];
|
|
87
93
|
}
|
|
88
94
|
|
|
89
95
|
/** Lo necesario para citar otro documento y enlazarlo (el que se responde, o las respuestas). */
|
|
@@ -323,6 +329,8 @@ export interface DocumentGetByIdResponseEntity {
|
|
|
323
329
|
// Puede derivarlo a otros funcionarios y responderlo: el documento ya es oficial y está a su alcance.
|
|
324
330
|
canDerive: boolean;
|
|
325
331
|
canReply: boolean;
|
|
332
|
+
// Ya finalizado, puede agregarle destinatarios (quien lo redactó o quien lleva el historial).
|
|
333
|
+
canAddRecipients: boolean;
|
|
326
334
|
// Es quien redactó un documento en tramitación: puede pasar un turno pendiente a otro funcionario.
|
|
327
335
|
canReassign: boolean;
|
|
328
336
|
/** Quien consulta redactó el documento (o lo ingresó, si llegó por DocDigital). */
|
|
@@ -455,6 +463,13 @@ export interface DocumentPublicFileResponseEntity {
|
|
|
455
463
|
fileName: string;
|
|
456
464
|
}
|
|
457
465
|
|
|
466
|
+
export interface DocumentAddRecipientsResponseEntity {
|
|
467
|
+
id: DocumentEntity['id'];
|
|
468
|
+
ok: boolean;
|
|
469
|
+
// Cuántas entregas nuevas hubo (una por persona y una por área); lo que ya era destinatario no se repite.
|
|
470
|
+
delivered: number;
|
|
471
|
+
}
|
|
472
|
+
|
|
458
473
|
export interface DocumentDeriveResponseEntity {
|
|
459
474
|
id: DocumentEntity['id'];
|
|
460
475
|
ok: boolean;
|
|
@@ -739,8 +754,15 @@ export interface DocumentSlaReminderEntity {
|
|
|
739
754
|
export interface DocumentReminderEntity {
|
|
740
755
|
deliveryId: string;
|
|
741
756
|
kind: 'DueSoon' | 'Overdue';
|
|
742
|
-
|
|
743
|
-
|
|
757
|
+
/**
|
|
758
|
+
* A quién se le recuerda: a la persona (`employeeId`) o, si le llegó a un área, a su jefatura (el gateway la resuelve
|
|
759
|
+
* con `directorateCodeReference` o `departmentId`).
|
|
760
|
+
*/
|
|
761
|
+
employeeId: string | null;
|
|
762
|
+
fullName: string | null;
|
|
763
|
+
directorateCodeReference: number | null;
|
|
764
|
+
departmentId: string | null;
|
|
765
|
+
areaName: string | null;
|
|
744
766
|
documentId: string;
|
|
745
767
|
/** Cómo se cita: «D.E. N° 590/2026», el folio de ingreso o el tipo. */
|
|
746
768
|
folio: string;
|