@muni-sanfer/types-gestor-documental 0.0.1-beta.43 → 0.0.1-beta.44

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.
@@ -458,6 +458,7 @@ export interface DocumentTypeEntity {
458
458
  export interface DocumentEntity {
459
459
  id: string;
460
460
  subject: string;
461
+ description?: string | null;
461
462
  keywords: string[];
462
463
  accessLevel: DocumentAccessLevel;
463
464
  hasSensitiveData: boolean;
@@ -471,6 +472,9 @@ export interface DocumentEntity {
471
472
  annulledAt?: string | null;
472
473
  annulmentReason?: string | null;
473
474
  responseDueAt?: string | null;
475
+ responseDueBusinessDays?: number | null;
476
+ procedure?: ProcedureEntity | null;
477
+ procedureId?: string | null;
474
478
  origin: DocumentOrigin;
475
479
  intakeNumber?: number | null;
476
480
  intakeYear?: number | null;
@@ -653,6 +657,7 @@ export interface ProcedureEntity {
653
657
  description?: string | null;
654
658
  enabled: boolean;
655
659
  caseFiles?: CaseFileEntity[];
660
+ documents?: DocumentEntity[];
656
661
  deleted: boolean;
657
662
  createdAt: string;
658
663
  updatedAt: string;
@@ -78,6 +78,10 @@ export type DocumentReviewAction = 'Visa' | 'Sign' | 'Reject';
78
78
  */
79
79
  export interface DocumentWritePayload extends Pick<DocumentEntity, 'subject' | 'documentTypeId'> {
80
80
  keywords: string[];
81
+ /** Resumen breve (hasta 250 caracteres): va a DocDigital como «descripcion» al despacharlo. */
82
+ description?: string | null;
83
+ /** Procedimiento administrativo del catálogo propio. */
84
+ procedureId?: string | null;
81
85
  /** Qué cambió, si el guardado crea una versión nueva (otro PDF, otro texto u otro asunto). */
82
86
  versionNote?: string | null;
83
87
  /** Al crearlo: solicitud de redacción que atiende (la tomó quien redacta). */
@@ -99,6 +103,7 @@ export interface DocumentWritePayload extends Pick<DocumentEntity, 'subject' | '
99
103
  signatureSheet?: boolean;
100
104
  recipients?: DocumentRecipientInput[];
101
105
  responseDueAt?: string | null;
106
+ responseDueBusinessDays?: number | null;
102
107
  replyToDocumentId?: string | null;
103
108
  externalRecipients?: DocumentExternalRecipientInput[];
104
109
  restrictionEndsAt?: string | null;
@@ -138,6 +138,14 @@ export interface DocumentGetByIdResponseEntity {
138
138
  } | null;
139
139
  restrictionEndsAt: string | null;
140
140
  subject: DocumentEntity['subject'];
141
+ /** Resumen breve; va a DocDigital como «descripcion» al despacharlo. */
142
+ description: string | null;
143
+ /** Procedimiento administrativo al que corresponde. */
144
+ procedure: {
145
+ id: string;
146
+ name: string;
147
+ cpatCode: string | null;
148
+ } | null;
141
149
  keywords: DocumentEntity['keywords'];
142
150
  accessLevel: DocumentEntity['accessLevel'];
143
151
  hasSensitiveData: DocumentEntity['hasSensitiveData'];
@@ -173,6 +181,7 @@ export interface DocumentGetByIdResponseEntity {
173
181
  createdAt: DocumentAnnulledNumberEntity['createdAt'];
174
182
  }[];
175
183
  responseDueAt: DocumentEntity['responseDueAt'];
184
+ responseDueBusinessDays: number | null;
176
185
  recipients: DocumentRecipientResponseEntity[];
177
186
  deliveries: DocumentDeliveryResponseEntity[];
178
187
  replyTo: DocumentLinkEntity | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muni-sanfer/types-gestor-documental",
3
- "version": "0.0.1-beta.43",
3
+ "version": "0.0.1-beta.44",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -663,6 +663,7 @@ export interface DocumentTypeEntity {
663
663
  export interface DocumentEntity {
664
664
  id: string;
665
665
  subject: string;
666
+ description?: string | null;
666
667
  keywords: string[];
667
668
  accessLevel: DocumentAccessLevel;
668
669
  hasSensitiveData: boolean;
@@ -676,6 +677,9 @@ export interface DocumentEntity {
676
677
  annulledAt?: string | null;
677
678
  annulmentReason?: string | null;
678
679
  responseDueAt?: string | null;
680
+ responseDueBusinessDays?: number | null;
681
+ procedure?: ProcedureEntity | null;
682
+ procedureId?: string | null;
679
683
  origin: DocumentOrigin;
680
684
  intakeNumber?: number | null;
681
685
  intakeYear?: number | null;
@@ -867,6 +871,7 @@ export interface ProcedureEntity {
867
871
  description?: string | null;
868
872
  enabled: boolean;
869
873
  caseFiles?: CaseFileEntity[];
874
+ documents?: DocumentEntity[];
870
875
  deleted: boolean;
871
876
  createdAt: string;
872
877
  updatedAt: string;
@@ -118,6 +118,10 @@ export type DocumentReviewAction = 'Visa' | 'Sign' | 'Reject';
118
118
  */
119
119
  export interface DocumentWritePayload extends Pick<DocumentEntity, 'subject' | 'documentTypeId'> {
120
120
  keywords: string[];
121
+ /** Resumen breve (hasta 250 caracteres): va a DocDigital como «descripcion» al despacharlo. */
122
+ description?: string | null;
123
+ /** Procedimiento administrativo del catálogo propio. */
124
+ procedureId?: string | null;
121
125
  /** Qué cambió, si el guardado crea una versión nueva (otro PDF, otro texto u otro asunto). */
122
126
  versionNote?: string | null;
123
127
  /** Al crearlo: solicitud de redacción que atiende (la tomó quien redacta). */
@@ -142,8 +146,9 @@ export interface DocumentWritePayload extends Pick<DocumentEntity, 'subject' | '
142
146
  signatureSheet?: boolean;
143
147
  // A quién va dirigido: le llega a su bandeja cuando el documento termina su tramitación.
144
148
  recipients?: DocumentRecipientInput[];
145
- // Plazo en que se espera respuesta de los destinatarios (ISO 8601).
149
+ // Plazo en que se espera respuesta de los destinatarios (ISO 8601), o en días hábiles desde que lo reciben (uno u otro).
146
150
  responseDueAt?: string | null;
151
+ responseDueBusinessDays?: number | null;
147
152
  // Documento al que este responde.
148
153
  replyToDocumentId?: string | null;
149
154
  // Instituciones (y usuarios) de DocDigital a quienes va: al terminar la firma pasa a Oficina de Partes.
@@ -162,6 +162,10 @@ export interface DocumentGetByIdResponseEntity {
162
162
  // Fin de la restricción de acceso: desde entonces se consulta como público si no tiene datos sensibles.
163
163
  restrictionEndsAt: string | null;
164
164
  subject: DocumentEntity['subject'];
165
+ /** Resumen breve; va a DocDigital como «descripcion» al despacharlo. */
166
+ description: string | null;
167
+ /** Procedimiento administrativo al que corresponde. */
168
+ procedure: { id: string; name: string; cpatCode: string | null } | null;
165
169
  keywords: DocumentEntity['keywords'];
166
170
  accessLevel: DocumentEntity['accessLevel'];
167
171
  hasSensitiveData: DocumentEntity['hasSensitiveData'];
@@ -202,8 +206,10 @@ export interface DocumentGetByIdResponseEntity {
202
206
  employeeFullName: DocumentAnnulledNumberEntity['employeeFullName'];
203
207
  createdAt: DocumentAnnulledNumberEntity['createdAt'];
204
208
  }[];
205
- // Plazo en que el redactor espera respuesta de los destinatarios.
209
+ // Plazo en que el redactor espera respuesta de los destinatarios: una fecha o, mientras no se finaliza, N días
210
+ // hábiles desde que lo reciban (al finalizar queda la fecha en `responseDueAt`).
206
211
  responseDueAt: DocumentEntity['responseDueAt'];
212
+ responseDueBusinessDays: number | null;
207
213
  // A quién va dirigido, como lo indicó el redactor (personas y áreas).
208
214
  recipients: DocumentRecipientResponseEntity[];
209
215
  // En la bandeja de quién está: destinatarios y derivaciones, con su lectura y atención.