@muni-sanfer/types-gestor-documental 0.0.1-beta.84 → 0.0.1-beta.85
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 +8 -2
- package/dist/contracts/document.contract.d.ts +5 -0
- package/dist/entities/document/document.entity.d.ts +13 -2
- package/package.json +1 -1
- package/src/base/entities.ts +8 -2
- package/src/contracts/document.contract.ts +5 -0
- package/src/entities/document/document.entity.ts +16 -3
package/dist/base/entities.d.ts
CHANGED
|
@@ -667,9 +667,11 @@ export interface DocumentRecipientEntity {
|
|
|
667
667
|
export interface DocumentDeliveryEntity {
|
|
668
668
|
id: string;
|
|
669
669
|
origin: DocumentDeliveryOrigin;
|
|
670
|
-
employeeId
|
|
671
|
-
fullName
|
|
670
|
+
employeeId?: string | null;
|
|
671
|
+
fullName?: string | null;
|
|
672
672
|
position?: string | null;
|
|
673
|
+
directorateCodeReference?: number | null;
|
|
674
|
+
departmentId?: string | null;
|
|
673
675
|
areaName?: string | null;
|
|
674
676
|
sentByEmployeeId?: string | null;
|
|
675
677
|
sentByFullName?: string | null;
|
|
@@ -680,6 +682,10 @@ export interface DocumentDeliveryEntity {
|
|
|
680
682
|
readAt?: string | null;
|
|
681
683
|
closedAt?: string | null;
|
|
682
684
|
closingNote?: string | null;
|
|
685
|
+
readByEmployeeId?: string | null;
|
|
686
|
+
readByFullName?: string | null;
|
|
687
|
+
closedByEmployeeId?: string | null;
|
|
688
|
+
closedByFullName?: string | null;
|
|
683
689
|
dueSoonRemindedAt?: string | null;
|
|
684
690
|
overdueRemindedAt?: string | null;
|
|
685
691
|
document?: DocumentEntity;
|
|
@@ -56,6 +56,11 @@ export interface DocumentActor {
|
|
|
56
56
|
* documentos de sus departamentos; quien está solo en un departamento, solo los de ese). Lo resuelve el gateway.
|
|
57
57
|
*/
|
|
58
58
|
areaDepartmentIds?: string[];
|
|
59
|
+
/**
|
|
60
|
+
* Direcciones de los departamentos que integra o encarga: lo que llega a esas direcciones también le llega (como a
|
|
61
|
+
* quienes las integran). Lo resuelve el gateway.
|
|
62
|
+
*/
|
|
63
|
+
inboxDirectorateCodes?: number[];
|
|
59
64
|
}
|
|
60
65
|
/** Bandeja desde la que se lista. Todas son del funcionario (`actor`), salvo `all`. */
|
|
61
66
|
export type DocumentBucket = 'created' | 'area' | 'sent' | 'toVisa' | 'toSign' | 'participated' | 'visaed' | 'signed' | 'reviewed' | 'toReview' | 'visaAll' | 'signAll' | 'reviewAll' | 'all';
|
|
@@ -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 {
|
|
@@ -704,8 +708,15 @@ export interface DocumentSlaReminderEntity {
|
|
|
704
708
|
export interface DocumentReminderEntity {
|
|
705
709
|
deliveryId: string;
|
|
706
710
|
kind: 'DueSoon' | 'Overdue';
|
|
707
|
-
|
|
708
|
-
|
|
711
|
+
/**
|
|
712
|
+
* A quién se le recuerda: a la persona (`employeeId`) o, si le llegó a un área, a su jefatura (el gateway la resuelve
|
|
713
|
+
* con `directorateCodeReference` o `departmentId`).
|
|
714
|
+
*/
|
|
715
|
+
employeeId: string | null;
|
|
716
|
+
fullName: string | null;
|
|
717
|
+
directorateCodeReference: number | null;
|
|
718
|
+
departmentId: string | null;
|
|
719
|
+
areaName: string | null;
|
|
709
720
|
documentId: string;
|
|
710
721
|
/** Cómo se cita: «D.E. N° 590/2026», el folio de ingreso o el tipo. */
|
|
711
722
|
folio: string;
|
package/package.json
CHANGED
package/src/base/entities.ts
CHANGED
|
@@ -902,9 +902,11 @@ export interface DocumentRecipientEntity {
|
|
|
902
902
|
export interface DocumentDeliveryEntity {
|
|
903
903
|
id: string;
|
|
904
904
|
origin: DocumentDeliveryOrigin;
|
|
905
|
-
employeeId
|
|
906
|
-
fullName
|
|
905
|
+
employeeId?: string | null;
|
|
906
|
+
fullName?: string | null;
|
|
907
907
|
position?: string | null;
|
|
908
|
+
directorateCodeReference?: number | null;
|
|
909
|
+
departmentId?: string | null;
|
|
908
910
|
areaName?: string | null;
|
|
909
911
|
sentByEmployeeId?: string | null;
|
|
910
912
|
sentByFullName?: string | null;
|
|
@@ -915,6 +917,10 @@ export interface DocumentDeliveryEntity {
|
|
|
915
917
|
readAt?: string | null;
|
|
916
918
|
closedAt?: string | null;
|
|
917
919
|
closingNote?: string | null;
|
|
920
|
+
readByEmployeeId?: string | null;
|
|
921
|
+
readByFullName?: string | null;
|
|
922
|
+
closedByEmployeeId?: string | null;
|
|
923
|
+
closedByFullName?: string | null;
|
|
918
924
|
dueSoonRemindedAt?: string | null;
|
|
919
925
|
overdueRemindedAt?: string | null;
|
|
920
926
|
document?: DocumentEntity;
|
|
@@ -98,6 +98,11 @@ export interface DocumentActor {
|
|
|
98
98
|
* documentos de sus departamentos; quien está solo en un departamento, solo los de ese). Lo resuelve el gateway.
|
|
99
99
|
*/
|
|
100
100
|
areaDepartmentIds?: string[];
|
|
101
|
+
/**
|
|
102
|
+
* Direcciones de los departamentos que integra o encarga: lo que llega a esas direcciones también le llega (como a
|
|
103
|
+
* quienes las integran). Lo resuelve el gateway.
|
|
104
|
+
*/
|
|
105
|
+
inboxDirectorateCodes?: number[];
|
|
101
106
|
}
|
|
102
107
|
|
|
103
108
|
/** Bandeja desde la que se lista. Todas son del funcionario (`actor`), salvo `all`. */
|
|
@@ -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). */
|
|
@@ -739,8 +745,15 @@ export interface DocumentSlaReminderEntity {
|
|
|
739
745
|
export interface DocumentReminderEntity {
|
|
740
746
|
deliveryId: string;
|
|
741
747
|
kind: 'DueSoon' | 'Overdue';
|
|
742
|
-
|
|
743
|
-
|
|
748
|
+
/**
|
|
749
|
+
* A quién se le recuerda: a la persona (`employeeId`) o, si le llegó a un área, a su jefatura (el gateway la resuelve
|
|
750
|
+
* con `directorateCodeReference` o `departmentId`).
|
|
751
|
+
*/
|
|
752
|
+
employeeId: string | null;
|
|
753
|
+
fullName: string | null;
|
|
754
|
+
directorateCodeReference: number | null;
|
|
755
|
+
departmentId: string | null;
|
|
756
|
+
areaName: string | null;
|
|
744
757
|
documentId: string;
|
|
745
758
|
/** Cómo se cita: «D.E. N° 590/2026», el folio de ingreso o el tipo. */
|
|
746
759
|
folio: string;
|