@muni-sanfer/types-gestor-documental 0.0.1-beta.83 → 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.
@@ -667,9 +667,11 @@ export interface DocumentRecipientEntity {
667
667
  export interface DocumentDeliveryEntity {
668
668
  id: string;
669
669
  origin: DocumentDeliveryOrigin;
670
- employeeId: string;
671
- fullName: string;
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
- employeeId: string;
708
- fullName: string;
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;
@@ -40,7 +40,7 @@ export declare const STAMP_PLACEMENT_LIMITS: {
40
40
  readonly signature: {
41
41
  readonly minWidth: 90;
42
42
  readonly maxWidth: 260;
43
- readonly defaultWidth: 130;
43
+ readonly defaultWidth: 245;
44
44
  };
45
45
  readonly visa: {
46
46
  readonly minWidth: 24;
@@ -10,7 +10,8 @@ exports.signatureHeightFor = exports.STAMP_PLACEMENT_LIMITS = void 0;
10
10
  exports.STAMP_PLACEMENT_LIMITS = {
11
11
  /** Ancho sobre alto del sello de firma (la imagen de firmas-ms mide ~2084x835 px). */
12
12
  signatureAspect: 2084 / 835,
13
- signature: { minWidth: 90, maxWidth: 260, defaultWidth: 130 },
13
+ // el de siempre es el del CDP y los informes de la suite (pre-obligado-ms): 245 × 98 pt
14
+ signature: { minWidth: 90, maxWidth: 260, defaultWidth: 245 },
14
15
  visa: { minWidth: 24, maxWidth: 220, minHeight: 12, maxHeight: 70, defaultWidth: 80, defaultHeight: 24 },
15
16
  bottomReserved: 60,
16
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muni-sanfer/types-gestor-documental",
3
- "version": "0.0.1-beta.83",
3
+ "version": "0.0.1-beta.85",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -902,9 +902,11 @@ export interface DocumentRecipientEntity {
902
902
  export interface DocumentDeliveryEntity {
903
903
  id: string;
904
904
  origin: DocumentDeliveryOrigin;
905
- employeeId: string;
906
- fullName: string;
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
- // Área por la que le llegó, si el documento iba dirigido a un área.
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
- employeeId: string;
743
- fullName: string;
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;
@@ -40,7 +40,8 @@ export interface TemplateStampPlacements extends DocumentStampPlacements {
40
40
  export const STAMP_PLACEMENT_LIMITS = {
41
41
  /** Ancho sobre alto del sello de firma (la imagen de firmas-ms mide ~2084x835 px). */
42
42
  signatureAspect: 2084 / 835,
43
- signature: { minWidth: 90, maxWidth: 260, defaultWidth: 130 },
43
+ // el de siempre es el del CDP y los informes de la suite (pre-obligado-ms): 245 × 98 pt
44
+ signature: { minWidth: 90, maxWidth: 260, defaultWidth: 245 },
44
45
  visa: { minWidth: 24, maxWidth: 220, minHeight: 12, maxHeight: 70, defaultWidth: 80, defaultHeight: 24 },
45
46
  bottomReserved: 60,
46
47
  } as const;