@muni-sanfer/types-gestor-documental 0.0.1-beta.5 → 0.0.1-beta.50
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 +996 -5
- package/dist/base/entities.js +235 -1
- package/dist/contracts/accessRequest.contract.d.ts +109 -0
- package/dist/contracts/accessRequest.contract.js +12 -0
- package/dist/contracts/archivalSeries.contract.d.ts +56 -0
- package/dist/contracts/archivalSeries.contract.js +11 -0
- package/dist/contracts/audit.contract.d.ts +32 -0
- package/dist/contracts/audit.contract.js +8 -0
- package/dist/contracts/caseFile.contract.d.ts +124 -1
- package/dist/contracts/caseFile.contract.js +10 -0
- package/dist/contracts/dataProtection.contract.d.ts +256 -0
- package/dist/contracts/dataProtection.contract.js +23 -0
- package/dist/contracts/desk.contract.d.ts +88 -0
- package/dist/contracts/desk.contract.js +13 -0
- package/dist/contracts/document.contract.d.ts +218 -3
- package/dist/contracts/document.contract.js +15 -0
- package/dist/contracts/documentTemplate.contract.d.ts +17 -0
- package/dist/contracts/documentTemplate.contract.js +10 -0
- package/dist/contracts/documentType.contract.d.ts +15 -2
- package/dist/contracts/draftingRequest.contract.d.ts +94 -0
- package/dist/contracts/draftingRequest.contract.js +11 -0
- package/dist/contracts/holiday.contract.d.ts +39 -0
- package/dist/contracts/holiday.contract.js +10 -0
- package/dist/contracts/index.d.ts +246 -4
- package/dist/contracts/index.js +69 -0
- package/dist/contracts/indicators.contract.d.ts +103 -0
- package/dist/contracts/indicators.contract.js +15 -0
- package/dist/contracts/internalReview.contract.d.ts +55 -0
- package/dist/contracts/internalReview.contract.js +9 -0
- package/dist/contracts/issuingEntity.contract.d.ts +52 -0
- package/dist/contracts/issuingEntity.contract.js +11 -0
- package/dist/contracts/mailIntake.contract.d.ts +61 -0
- package/dist/contracts/mailIntake.contract.js +15 -0
- package/dist/contracts/partsOffice.contract.d.ts +94 -2
- package/dist/contracts/partsOffice.contract.js +5 -0
- package/dist/contracts/procedure.contract.d.ts +14 -23
- package/dist/contracts/procedure.contract.js +6 -4
- package/dist/contracts/push.contract.d.ts +59 -0
- package/dist/contracts/push.contract.js +14 -0
- package/dist/contracts/registerBook.contract.d.ts +27 -0
- package/dist/contracts/registerBook.contract.js +8 -0
- package/dist/contracts/repositoryExport.contract.d.ts +57 -0
- package/dist/contracts/repositoryExport.contract.js +13 -0
- package/dist/contracts/retention.contract.d.ts +58 -0
- package/dist/contracts/retention.contract.js +11 -0
- package/dist/contracts/richImage.contract.d.ts +33 -0
- package/dist/contracts/richImage.contract.js +8 -0
- package/dist/contracts/scan.contract.d.ts +63 -0
- package/dist/contracts/scan.contract.js +12 -0
- package/dist/contracts/signatureBatch.contract.d.ts +109 -0
- package/dist/contracts/signatureBatch.contract.js +12 -0
- package/dist/contracts/signatureCheck.contract.d.ts +14 -0
- package/dist/contracts/signatureCheck.contract.js +7 -0
- package/dist/contracts/textSnippet.contract.d.ts +51 -0
- package/dist/contracts/textSnippet.contract.js +11 -0
- package/dist/contracts/transparency.contract.d.ts +96 -0
- package/dist/contracts/transparency.contract.js +12 -0
- package/dist/contracts/workFolder.contract.d.ts +114 -0
- package/dist/contracts/workFolder.contract.js +16 -0
- package/dist/entities/accessRequest/accessRequest.entity.d.ts +73 -0
- package/dist/entities/accessRequest/accessRequest.entity.js +2 -0
- package/dist/entities/accessRequest/index.d.ts +1 -0
- package/dist/entities/accessRequest/index.js +17 -0
- package/dist/entities/archivalSeries/archivalSeries.entity.d.ts +32 -0
- package/dist/entities/archivalSeries/archivalSeries.entity.js +2 -0
- package/dist/entities/archivalSeries/index.d.ts +1 -0
- package/dist/entities/archivalSeries/index.js +17 -0
- package/dist/entities/audit/audit.entity.d.ts +30 -0
- package/dist/entities/audit/audit.entity.js +2 -0
- package/dist/entities/audit/index.d.ts +1 -0
- package/dist/entities/audit/index.js +17 -0
- package/dist/entities/caseFile/caseFile.entity.d.ts +135 -0
- package/dist/entities/dataProtection/dataProtection.entity.d.ts +180 -0
- package/dist/entities/dataProtection/dataProtection.entity.js +2 -0
- package/dist/entities/dataProtection/index.d.ts +1 -0
- package/dist/entities/dataProtection/index.js +17 -0
- package/dist/entities/desk/desk.entity.d.ts +25 -0
- package/dist/entities/desk/desk.entity.js +2 -0
- package/dist/entities/desk/index.d.ts +1 -0
- package/dist/entities/desk/index.js +17 -0
- package/dist/entities/document/document.entity.d.ts +429 -1
- package/dist/entities/document/index.d.ts +1 -0
- package/dist/entities/document/index.js +1 -0
- package/dist/entities/document/richStyle.d.ts +212 -0
- package/dist/entities/document/richStyle.js +81 -0
- package/dist/entities/documentTemplate/documentTemplate.entity.d.ts +25 -0
- package/dist/entities/documentTemplate/documentTemplate.entity.js +2 -0
- package/dist/entities/documentTemplate/index.d.ts +1 -0
- package/dist/entities/documentTemplate/index.js +17 -0
- package/dist/entities/documentType/documentType.entity.d.ts +43 -0
- package/dist/entities/draftingRequest/draftingRequest.entity.d.ts +76 -0
- package/dist/entities/draftingRequest/draftingRequest.entity.js +2 -0
- package/dist/entities/draftingRequest/index.d.ts +1 -0
- package/dist/entities/draftingRequest/index.js +17 -0
- package/dist/entities/holiday/holiday.entity.d.ts +32 -0
- package/dist/entities/holiday/holiday.entity.js +2 -0
- package/dist/entities/holiday/index.d.ts +1 -0
- package/dist/entities/holiday/index.js +17 -0
- package/dist/entities/index.d.ts +22 -0
- package/dist/entities/index.js +22 -0
- package/dist/entities/indicators/index.d.ts +1 -0
- package/dist/entities/indicators/index.js +17 -0
- package/dist/entities/indicators/indicators.entity.d.ts +152 -0
- package/dist/entities/indicators/indicators.entity.js +2 -0
- package/dist/entities/internalReview/index.d.ts +1 -0
- package/dist/entities/internalReview/index.js +17 -0
- package/dist/entities/internalReview/internalReview.entity.d.ts +50 -0
- package/dist/entities/internalReview/internalReview.entity.js +2 -0
- package/dist/entities/issuingEntity/index.d.ts +1 -0
- package/dist/entities/issuingEntity/index.js +17 -0
- package/dist/entities/issuingEntity/issuingEntity.entity.d.ts +20 -0
- package/dist/entities/issuingEntity/issuingEntity.entity.js +2 -0
- package/dist/entities/mailIntake/index.d.ts +1 -0
- package/dist/entities/mailIntake/index.js +17 -0
- package/dist/entities/mailIntake/mailIntake.entity.d.ts +51 -0
- package/dist/entities/mailIntake/mailIntake.entity.js +2 -0
- package/dist/entities/partsOffice/partsOffice.entity.d.ts +39 -0
- package/dist/entities/procedure/procedure.entity.d.ts +27 -6
- package/dist/entities/push/index.d.ts +1 -0
- package/dist/entities/push/index.js +17 -0
- package/dist/entities/push/push.entity.d.ts +28 -0
- package/dist/entities/push/push.entity.js +2 -0
- package/dist/entities/registerBook/index.d.ts +1 -0
- package/dist/entities/registerBook/index.js +17 -0
- package/dist/entities/registerBook/registerBook.entity.d.ts +48 -0
- package/dist/entities/registerBook/registerBook.entity.js +2 -0
- package/dist/entities/repositoryExport/index.d.ts +1 -0
- package/dist/entities/repositoryExport/index.js +17 -0
- package/dist/entities/repositoryExport/repositoryExport.entity.d.ts +124 -0
- package/dist/entities/repositoryExport/repositoryExport.entity.js +2 -0
- package/dist/entities/retention/index.d.ts +1 -0
- package/dist/entities/retention/index.js +17 -0
- package/dist/entities/retention/retention.entity.d.ts +49 -0
- package/dist/entities/retention/retention.entity.js +2 -0
- package/dist/entities/scan/index.d.ts +1 -0
- package/dist/entities/scan/index.js +17 -0
- package/dist/entities/scan/scan.entity.d.ts +29 -0
- package/dist/entities/scan/scan.entity.js +2 -0
- package/dist/entities/signatureBatch/index.d.ts +1 -0
- package/dist/entities/signatureBatch/index.js +17 -0
- package/dist/entities/signatureBatch/signatureBatch.entity.d.ts +107 -0
- package/dist/entities/signatureBatch/signatureBatch.entity.js +2 -0
- package/dist/entities/signatureCheck/index.d.ts +1 -0
- package/dist/entities/signatureCheck/index.js +17 -0
- package/dist/entities/signatureCheck/signatureCheck.entity.d.ts +60 -0
- package/dist/entities/signatureCheck/signatureCheck.entity.js +2 -0
- package/dist/entities/textSnippet/index.d.ts +1 -0
- package/dist/entities/textSnippet/index.js +17 -0
- package/dist/entities/textSnippet/textSnippet.entity.d.ts +20 -0
- package/dist/entities/textSnippet/textSnippet.entity.js +2 -0
- package/dist/entities/transparency/index.d.ts +1 -0
- package/dist/entities/transparency/index.js +17 -0
- package/dist/entities/transparency/transparency.entity.d.ts +77 -0
- package/dist/entities/transparency/transparency.entity.js +2 -0
- package/dist/entities/workFolder/index.d.ts +1 -0
- package/dist/entities/workFolder/index.js +17 -0
- package/dist/entities/workFolder/workFolder.entity.d.ts +83 -0
- package/dist/entities/workFolder/workFolder.entity.js +2 -0
- package/package.json +1 -1
- package/src/base/entities.ts +1164 -5
- package/src/contracts/accessRequest.contract.ts +81 -0
- package/src/contracts/archivalSeries.contract.ts +59 -0
- package/src/contracts/audit.contract.ts +30 -0
- package/src/contracts/caseFile.contract.ts +107 -2
- package/src/contracts/dataProtection.contract.ts +197 -0
- package/src/contracts/desk.contract.ts +72 -0
- package/src/contracts/document.contract.ts +200 -3
- package/src/contracts/documentTemplate.contract.ts +17 -0
- package/src/contracts/documentType.contract.ts +32 -3
- package/src/contracts/draftingRequest.contract.ts +73 -0
- package/src/contracts/holiday.contract.ts +25 -0
- package/src/contracts/index.ts +93 -1
- package/src/contracts/indicators.contract.ts +80 -0
- package/src/contracts/internalReview.contract.ts +48 -0
- package/src/contracts/issuingEntity.contract.ts +55 -0
- package/src/contracts/mailIntake.contract.ts +49 -0
- package/src/contracts/partsOffice.contract.ts +81 -2
- package/src/contracts/procedure.contract.ts +11 -27
- package/src/contracts/push.contract.ts +41 -0
- package/src/contracts/registerBook.contract.ts +24 -0
- package/src/contracts/repositoryExport.contract.ts +54 -0
- package/src/contracts/retention.contract.ts +44 -0
- package/src/contracts/richImage.contract.ts +23 -0
- package/src/contracts/scan.contract.ts +52 -0
- package/src/contracts/signatureBatch.contract.ts +96 -0
- package/src/contracts/signatureCheck.contract.ts +11 -0
- package/src/contracts/textSnippet.contract.ts +53 -0
- package/src/contracts/transparency.contract.ts +55 -0
- package/src/contracts/workFolder.contract.ts +75 -0
- package/src/entities/accessRequest/accessRequest.entity.ts +78 -0
- package/src/entities/accessRequest/index.ts +1 -0
- package/src/entities/archivalSeries/archivalSeries.entity.ts +37 -0
- package/src/entities/archivalSeries/index.ts +1 -0
- package/src/entities/audit/audit.entity.ts +41 -0
- package/src/entities/audit/index.ts +1 -0
- package/src/entities/caseFile/caseFile.entity.ts +132 -0
- package/src/entities/dataProtection/dataProtection.entity.ts +191 -0
- package/src/entities/dataProtection/index.ts +1 -0
- package/src/entities/desk/desk.entity.ts +28 -0
- package/src/entities/desk/index.ts +1 -0
- package/src/entities/document/document.entity.ts +413 -1
- package/src/entities/document/index.ts +1 -0
- package/src/entities/document/richStyle.ts +193 -0
- package/src/entities/documentTemplate/documentTemplate.entity.ts +27 -0
- package/src/entities/documentTemplate/index.ts +1 -0
- package/src/entities/documentType/documentType.entity.ts +45 -0
- package/src/entities/draftingRequest/draftingRequest.entity.ts +78 -0
- package/src/entities/draftingRequest/index.ts +1 -0
- package/src/entities/holiday/holiday.entity.ts +36 -0
- package/src/entities/holiday/index.ts +1 -0
- package/src/entities/index.ts +22 -0
- package/src/entities/indicators/index.ts +1 -0
- package/src/entities/indicators/indicators.entity.ts +157 -0
- package/src/entities/internalReview/index.ts +1 -0
- package/src/entities/internalReview/internalReview.entity.ts +50 -0
- package/src/entities/issuingEntity/index.ts +1 -0
- package/src/entities/issuingEntity/issuingEntity.entity.ts +24 -0
- package/src/entities/mailIntake/index.ts +1 -0
- package/src/entities/mailIntake/mailIntake.entity.ts +55 -0
- package/src/entities/partsOffice/partsOffice.entity.ts +35 -0
- package/src/entities/procedure/procedure.entity.ts +27 -6
- package/src/entities/push/index.ts +1 -0
- package/src/entities/push/push.entity.ts +31 -0
- package/src/entities/registerBook/index.ts +1 -0
- package/src/entities/registerBook/registerBook.entity.ts +52 -0
- package/src/entities/repositoryExport/index.ts +1 -0
- package/src/entities/repositoryExport/repositoryExport.entity.ts +86 -0
- package/src/entities/retention/index.ts +1 -0
- package/src/entities/retention/retention.entity.ts +53 -0
- package/src/entities/scan/index.ts +1 -0
- package/src/entities/scan/scan.entity.ts +32 -0
- package/src/entities/signatureBatch/index.ts +1 -0
- package/src/entities/signatureBatch/signatureBatch.entity.ts +110 -0
- package/src/entities/signatureCheck/index.ts +1 -0
- package/src/entities/signatureCheck/signatureCheck.entity.ts +63 -0
- package/src/entities/textSnippet/index.ts +1 -0
- package/src/entities/textSnippet/textSnippet.entity.ts +24 -0
- package/src/entities/transparency/index.ts +1 -0
- package/src/entities/transparency/transparency.entity.ts +78 -0
- package/src/entities/workFolder/index.ts +1 -0
- package/src/entities/workFolder/workFolder.entity.ts +84 -0
- package/tsconfig.json +1 -3
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { DocumentAnnulledNumberEntity, DocumentAttachmentEntity, DocumentDeliveryEntity, DocumentEntity, DocumentParticipantEntity, DocumentRecipientEntity, DocumentTrackingEntity, DocumentTypeEntity } from '../../base/entities';
|
|
1
|
+
import { type CommunicationMeans, DocumentAnnulledNumberEntity, DocumentAttachmentEntity, DocumentDeliveryEntity, DocumentEntity, DocumentParticipantEntity, DocumentRecipientEntity, type DocumentStatus, DocumentTrackingEntity, DocumentTypeEntity } from '../../base/entities';
|
|
2
|
+
import { type RichLetterhead, type RichPage, type RichSpacing, type RichTextStyle } from './richStyle';
|
|
3
|
+
import { type DocumentDraftingRequestEntity } from '../draftingRequest/draftingRequest.entity';
|
|
2
4
|
/** Tipo documental de un documento, con lo necesario para citarlo. */
|
|
3
5
|
export interface DocumentTypeSummaryEntity {
|
|
4
6
|
id: DocumentTypeEntity['id'];
|
|
@@ -10,6 +12,8 @@ export interface DocumentParticipantResponseEntity {
|
|
|
10
12
|
id: DocumentParticipantEntity['id'];
|
|
11
13
|
role: DocumentParticipantEntity['role'];
|
|
12
14
|
order: DocumentParticipantEntity['order'];
|
|
15
|
+
/** Los visadores de una misma etapa visan a la vez. */
|
|
16
|
+
stage: DocumentParticipantEntity['stage'];
|
|
13
17
|
status: DocumentParticipantEntity['status'];
|
|
14
18
|
employeeId: DocumentParticipantEntity['employeeId'];
|
|
15
19
|
fullName: DocumentParticipantEntity['fullName'];
|
|
@@ -80,6 +84,14 @@ export interface DocumentDispatchResponseEntity {
|
|
|
80
84
|
returnedAt: string | null;
|
|
81
85
|
returnedByFullName: string | null;
|
|
82
86
|
returnReason: string | null;
|
|
87
|
+
/** Registro por contingencia: salió por otro medio porque no se pudo por DocDigital. */
|
|
88
|
+
contingency: {
|
|
89
|
+
means: CommunicationMeans;
|
|
90
|
+
sentTo: string | null;
|
|
91
|
+
reason: string | null;
|
|
92
|
+
/** Nombre del comprobante, si se adjuntó. */
|
|
93
|
+
receiptName: string | null;
|
|
94
|
+
} | null;
|
|
83
95
|
}
|
|
84
96
|
export interface DocumentGetAllResponseEntity {
|
|
85
97
|
id: DocumentEntity['id'];
|
|
@@ -97,22 +109,51 @@ export interface DocumentGetAllResponseEntity {
|
|
|
97
109
|
intakeNumber: DocumentEntity['intakeNumber'];
|
|
98
110
|
intakeYear: DocumentEntity['intakeYear'];
|
|
99
111
|
origin: DocumentEntity['origin'];
|
|
112
|
+
/** Con búsqueda de texto completo: el fragmento donde aparece lo buscado, con lo encontrado entre ⟦ y ⟧. */
|
|
113
|
+
snippet?: string | null;
|
|
100
114
|
currentParticipant: Pick<DocumentParticipantResponseEntity, 'role' | 'employeeId' | 'fullName'> | null;
|
|
115
|
+
otherCurrentCount: number;
|
|
101
116
|
distribution: {
|
|
102
117
|
total: number;
|
|
103
118
|
read: number;
|
|
104
119
|
} | null;
|
|
105
120
|
}
|
|
106
121
|
/** Una entrada de la bandeja de recibidos: la entrega y el documento al que corresponde. */
|
|
122
|
+
/** Semáforo de un plazo pendiente: a tiempo, por vencer (2 días hábiles o menos) o vencido. */
|
|
123
|
+
export type DocumentDueStatus = 'OnTime' | 'DueSoon' | 'Overdue';
|
|
107
124
|
export interface DocumentInboxItemEntity extends DocumentDeliveryResponseEntity {
|
|
125
|
+
/** Semáforo de lo pendiente con plazo (sin plazo o ya atendido, `null`). */
|
|
126
|
+
dueStatus: DocumentDueStatus | null;
|
|
127
|
+
/** Días hábiles que quedan, sin contar hoy (vencido: `null`). */
|
|
128
|
+
businessDaysLeft: number | null;
|
|
108
129
|
document: DocumentLinkEntity;
|
|
109
130
|
}
|
|
110
131
|
export interface DocumentGetByIdResponseEntity {
|
|
111
132
|
id: DocumentEntity['id'];
|
|
133
|
+
issuerName: string;
|
|
134
|
+
archivalSeries: {
|
|
135
|
+
id: string;
|
|
136
|
+
code: string;
|
|
137
|
+
name: string;
|
|
138
|
+
} | null;
|
|
139
|
+
restrictionEndsAt: string | null;
|
|
112
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;
|
|
113
149
|
keywords: DocumentEntity['keywords'];
|
|
114
150
|
accessLevel: DocumentEntity['accessLevel'];
|
|
115
151
|
hasSensitiveData: DocumentEntity['hasSensitiveData'];
|
|
152
|
+
/**
|
|
153
|
+
* Formato del archivo vigente: la conformidad PDF/A que declara («PDF/A-2B») o «PDF». `null` si no se revisó (los
|
|
154
|
+
* documentos anteriores a esta revisión, o aún sin firmar).
|
|
155
|
+
*/
|
|
156
|
+
fileFormat: DocumentEntity['fileFormat'];
|
|
116
157
|
status: DocumentEntity['status'];
|
|
117
158
|
correlative: DocumentEntity['correlative'];
|
|
118
159
|
correlativeYear: DocumentEntity['correlativeYear'];
|
|
@@ -140,9 +181,24 @@ export interface DocumentGetByIdResponseEntity {
|
|
|
140
181
|
createdAt: DocumentAnnulledNumberEntity['createdAt'];
|
|
141
182
|
}[];
|
|
142
183
|
responseDueAt: DocumentEntity['responseDueAt'];
|
|
184
|
+
responseDueBusinessDays: number | null;
|
|
143
185
|
recipients: DocumentRecipientResponseEntity[];
|
|
144
186
|
deliveries: DocumentDeliveryResponseEntity[];
|
|
145
187
|
replyTo: DocumentLinkEntity | null;
|
|
188
|
+
/** Lote de firma al que pertenece. */
|
|
189
|
+
batch: {
|
|
190
|
+
id: string;
|
|
191
|
+
name: string;
|
|
192
|
+
} | null;
|
|
193
|
+
/** Contenido redactado en el sistema con una plantilla, para volver a editarlo (sin valor si se subió un PDF). */
|
|
194
|
+
composition: DocumentComposition | null;
|
|
195
|
+
/**
|
|
196
|
+
* Revisión del borrador antes de enviarlo a tramitación, si su tipo la exige: qué dirección revisa, las rondas (la
|
|
197
|
+
* más reciente primero) y si la versión vigente ya está aprobada. `null` si el tipo no la exige.
|
|
198
|
+
*/
|
|
199
|
+
draftReview: DocumentDraftReviewInfoEntity | null;
|
|
200
|
+
/** Solicitud de redacción que atiende, si se redactó a pedido de otra área. */
|
|
201
|
+
draftingRequest: DocumentDraftingRequestEntity | null;
|
|
146
202
|
replies: DocumentLinkEntity[];
|
|
147
203
|
/** Expedientes en que está incorporado y que quien consulta puede ver. */
|
|
148
204
|
caseFiles: {
|
|
@@ -161,7 +217,12 @@ export interface DocumentGetByIdResponseEntity {
|
|
|
161
217
|
/** Instituciones de DocDigital a quienes va dirigido, y su despacho por Oficina de Partes. */
|
|
162
218
|
externalRecipients: DocumentExternalRecipientResponseEntity[];
|
|
163
219
|
dispatch: DocumentDispatchResponseEntity | null;
|
|
220
|
+
emailCopies: DocumentEmailCopyResponseEntity[];
|
|
164
221
|
documentType: DocumentTypeSummaryEntity;
|
|
222
|
+
documentTypeVersion: {
|
|
223
|
+
version: number;
|
|
224
|
+
current: boolean;
|
|
225
|
+
} | null;
|
|
165
226
|
participants: DocumentParticipantResponseEntity[];
|
|
166
227
|
attachments: {
|
|
167
228
|
id: DocumentAttachmentEntity['id'];
|
|
@@ -174,6 +235,7 @@ export interface DocumentGetByIdResponseEntity {
|
|
|
174
235
|
id: DocumentTrackingEntity['id'];
|
|
175
236
|
action: DocumentTrackingEntity['action'];
|
|
176
237
|
observation: DocumentTrackingEntity['observation'];
|
|
238
|
+
sha256: DocumentTrackingEntity['sha256'];
|
|
177
239
|
employeeId: DocumentTrackingEntity['employeeId'];
|
|
178
240
|
employeeFullName: DocumentTrackingEntity['employeeFullName'];
|
|
179
241
|
createdAt: DocumentTrackingEntity['createdAt'];
|
|
@@ -187,6 +249,8 @@ export interface DocumentGetByIdResponseEntity {
|
|
|
187
249
|
canReassign: boolean;
|
|
188
250
|
/** Quien consulta redactó el documento (o lo ingresó, si llegó por DocDigital). */
|
|
189
251
|
isAuthor: boolean;
|
|
252
|
+
/** Le toca aprobar o devolver el borrador: es la jefatura de la revisión pendiente. */
|
|
253
|
+
canResolveDraftReview: boolean;
|
|
190
254
|
inbox: DocumentDeliveryResponseEntity[];
|
|
191
255
|
};
|
|
192
256
|
signatureRequiresOtp: boolean;
|
|
@@ -195,6 +259,18 @@ export interface DocumentGetByIdResponseEntity {
|
|
|
195
259
|
export interface DocumentGetSummaryResponseEntity {
|
|
196
260
|
toVisa: number;
|
|
197
261
|
toSign: number;
|
|
262
|
+
/** Borradores que esperan su revisión (como jefatura de la dirección que los revisa). */
|
|
263
|
+
toReview: number;
|
|
264
|
+
/** Solicitudes de redacción: sin tomar dirigidas a su dirección, y tomadas por él aún sin atender. */
|
|
265
|
+
draftingRequests: {
|
|
266
|
+
pending: number;
|
|
267
|
+
taken: number;
|
|
268
|
+
};
|
|
269
|
+
/** Lotes de firma con documentos en su turno (los documentos de un lote no se cuentan en `toVisa` ni `toSign`). */
|
|
270
|
+
batches: {
|
|
271
|
+
toVisa: number;
|
|
272
|
+
toSign: number;
|
|
273
|
+
};
|
|
198
274
|
created: {
|
|
199
275
|
drafted: number;
|
|
200
276
|
inProgress: number;
|
|
@@ -220,6 +296,27 @@ export interface DocumentReviewResponseEntity {
|
|
|
220
296
|
ok: boolean;
|
|
221
297
|
status: DocumentEntity['status'];
|
|
222
298
|
}
|
|
299
|
+
/** Resultado de un documento en una firma de varios documentos. */
|
|
300
|
+
export interface DocumentSignManyResultEntity {
|
|
301
|
+
id: DocumentEntity['id'];
|
|
302
|
+
ok: boolean;
|
|
303
|
+
/** Estado en que quedó, si se firmó. */
|
|
304
|
+
status?: DocumentEntity['status'];
|
|
305
|
+
/** Por qué no se firmó. */
|
|
306
|
+
message?: string;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Firma de varios documentos con un solo OTP. FirmaGob admite 5 MB por solicitud: los que no cupieron quedan en
|
|
310
|
+
* `remaining`, en el turno del firmante, para firmarlos con un OTP nuevo.
|
|
311
|
+
*/
|
|
312
|
+
export interface DocumentSignManyResponseEntity {
|
|
313
|
+
results: DocumentSignManyResultEntity[];
|
|
314
|
+
signed: number;
|
|
315
|
+
failed: number;
|
|
316
|
+
remaining: DocumentEntity['id'][];
|
|
317
|
+
/** FirmaGob avisó que el OTP venció antes de firmar todos los documentos de la solicitud. */
|
|
318
|
+
otpExpired: boolean;
|
|
319
|
+
}
|
|
223
320
|
export interface DocumentDiscardResponseEntity {
|
|
224
321
|
id: DocumentEntity['id'];
|
|
225
322
|
ok: boolean;
|
|
@@ -243,6 +340,7 @@ export interface DocumentVerifyResponseEntity {
|
|
|
243
340
|
state: DocumentVerificationState;
|
|
244
341
|
verificationCode: string;
|
|
245
342
|
documentType: Pick<DocumentTypeSummaryEntity, 'name' | 'abbreviation'>;
|
|
343
|
+
issuerName: string;
|
|
246
344
|
correlative: DocumentEntity['correlative'];
|
|
247
345
|
correlativeYear: DocumentEntity['correlativeYear'];
|
|
248
346
|
numberedAt: DocumentEntity['numberedAt'];
|
|
@@ -274,3 +372,333 @@ export interface DocumentReassignResponseEntity {
|
|
|
274
372
|
id: DocumentEntity['id'];
|
|
275
373
|
ok: boolean;
|
|
276
374
|
}
|
|
375
|
+
/**
|
|
376
|
+
* Un plazo en la agenda de un funcionario: lo que recibió (como destinatario o por derivación) y debe atender, o un
|
|
377
|
+
* documento que envió y del que espera respuesta.
|
|
378
|
+
*/
|
|
379
|
+
export interface DocumentAgendaItemEntity {
|
|
380
|
+
kind: 'Received' | 'Sent';
|
|
381
|
+
/** Semáforo de lo pendiente (atendido o ya respondido por todos: `null`). */
|
|
382
|
+
dueStatus: DocumentDueStatus | null;
|
|
383
|
+
/** Días hábiles que quedan, sin contar hoy (vencido: `null`). */
|
|
384
|
+
businessDaysLeft: number | null;
|
|
385
|
+
/** La entrega (lo recibido) o el documento (lo enviado). */
|
|
386
|
+
id: string;
|
|
387
|
+
documentId: DocumentEntity['id'];
|
|
388
|
+
subject: DocumentEntity['subject'];
|
|
389
|
+
documentType: {
|
|
390
|
+
name: string;
|
|
391
|
+
abbreviation: string | null;
|
|
392
|
+
};
|
|
393
|
+
correlative: DocumentEntity['correlative'];
|
|
394
|
+
correlativeYear: DocumentEntity['correlativeYear'];
|
|
395
|
+
intakeNumber: DocumentEntity['intakeNumber'];
|
|
396
|
+
intakeYear: DocumentEntity['intakeYear'];
|
|
397
|
+
/** Plazo, en ISO 8601. */
|
|
398
|
+
dueAt: string;
|
|
399
|
+
/** Lo recibido: cuándo lo marcó como atendido (sin valor si sigue pendiente). */
|
|
400
|
+
closedAt: string | null;
|
|
401
|
+
/** Lo recibido: la providencia y quién lo derivó. */
|
|
402
|
+
instruction: DocumentDeliveryEntity['instruction'] | null;
|
|
403
|
+
sentByFullName: string | null;
|
|
404
|
+
/** Lo enviado: a cuántos les llegó y cuántos aún no lo atienden. */
|
|
405
|
+
recipients: {
|
|
406
|
+
total: number;
|
|
407
|
+
pending: number;
|
|
408
|
+
} | null;
|
|
409
|
+
}
|
|
410
|
+
export interface DocumentAgendaResponseEntity {
|
|
411
|
+
/** Plazos dentro del período pedido. */
|
|
412
|
+
items: DocumentAgendaItemEntity[];
|
|
413
|
+
/** Lo recibido con el plazo vencido y sin atender, de cualquier fecha (los 50 más antiguos). */
|
|
414
|
+
overdue: DocumentAgendaItemEntity[];
|
|
415
|
+
}
|
|
416
|
+
/** Trazabilidad de un documento en PDF, lista para descargar. */
|
|
417
|
+
export interface DocumentTrailExportEntity {
|
|
418
|
+
fileName: string;
|
|
419
|
+
contentType: string;
|
|
420
|
+
contentBase64: string;
|
|
421
|
+
}
|
|
422
|
+
/** Plantilla oficial con que se redacta un documento en el sistema. */
|
|
423
|
+
export type DocumentTemplateKind = 'Decree' | 'Office' | 'Memorandum' | 'General';
|
|
424
|
+
/** Formato de un trozo de texto en el editor del gestor. Superíndice y subíndice no van juntos. */
|
|
425
|
+
export type RichMark = 'bold' | 'italic' | 'underline' | 'strike' | 'superscript' | 'subscript';
|
|
426
|
+
/**
|
|
427
|
+
* Texto con su formato, o un campo de la plantilla (`field`: su clave), que se reemplaza por su valor al armar el PDF.
|
|
428
|
+
* Un salto de línea dentro del texto (`\n`) es un salto de línea del párrafo.
|
|
429
|
+
*/
|
|
430
|
+
export type RichInline = {
|
|
431
|
+
text: string;
|
|
432
|
+
marks?: RichMark[];
|
|
433
|
+
style?: RichTextStyle;
|
|
434
|
+
} | {
|
|
435
|
+
field: string;
|
|
436
|
+
marks?: RichMark[];
|
|
437
|
+
style?: RichTextStyle;
|
|
438
|
+
};
|
|
439
|
+
export type RichAlign = 'left' | 'center' | 'right' | 'justify';
|
|
440
|
+
/** Numeración de una lista: viñetas, «1.» o la de los decretos, «1.-». */
|
|
441
|
+
export type RichListStyle = 'bullet' | 'decimal' | 'decree';
|
|
442
|
+
/**
|
|
443
|
+
* Cómo se ve una tabla: con bordes (`grid`), o como las líneas «DE:», «A:», «MAT.:» de un oficio, con la etiqueta en
|
|
444
|
+
* negrita y sin bordes (`labels`, o `labelsRight`, en la mitad derecha, como «ANT.» y «MAT.» de un oficio).
|
|
445
|
+
*/
|
|
446
|
+
export type RichTableVariant = 'grid' | 'labels' | 'labelsRight';
|
|
447
|
+
/**
|
|
448
|
+
* Un bloque del texto. Los de una plantilla pueden ser fijos (`locked`): quien redacta no los cambia. Las listas son
|
|
449
|
+
* bloques seguidos del mismo estilo (su nivel es la sangría, desde 0); un título o un párrafo reinicia la numeración.
|
|
450
|
+
*/
|
|
451
|
+
export type RichBlock = {
|
|
452
|
+
id: string;
|
|
453
|
+
type: 'paragraph';
|
|
454
|
+
align?: RichAlign;
|
|
455
|
+
spacing?: RichSpacing;
|
|
456
|
+
locked?: boolean;
|
|
457
|
+
content: RichInline[];
|
|
458
|
+
} | {
|
|
459
|
+
id: string;
|
|
460
|
+
type: 'heading';
|
|
461
|
+
level: 1 | 2;
|
|
462
|
+
align?: RichAlign;
|
|
463
|
+
spacing?: RichSpacing;
|
|
464
|
+
locked?: boolean;
|
|
465
|
+
content: RichInline[];
|
|
466
|
+
} | {
|
|
467
|
+
id: string;
|
|
468
|
+
type: 'listItem';
|
|
469
|
+
list: RichListStyle;
|
|
470
|
+
level: number;
|
|
471
|
+
spacing?: RichSpacing;
|
|
472
|
+
locked?: boolean;
|
|
473
|
+
content: RichInline[];
|
|
474
|
+
}
|
|
475
|
+
/** Imagen registrada en el gestor (`imageId`), con su ancho en puntos (sin pasar el del texto) y alineación. */
|
|
476
|
+
| {
|
|
477
|
+
id: string;
|
|
478
|
+
type: 'image';
|
|
479
|
+
imageId: string;
|
|
480
|
+
width: number;
|
|
481
|
+
align?: 'left' | 'center' | 'right';
|
|
482
|
+
caption?: string;
|
|
483
|
+
locked?: boolean;
|
|
484
|
+
}
|
|
485
|
+
/** `rows[fila][columna]`: el contenido de cada celda. */
|
|
486
|
+
| {
|
|
487
|
+
id: string;
|
|
488
|
+
type: 'table';
|
|
489
|
+
variant: RichTableVariant;
|
|
490
|
+
locked?: boolean;
|
|
491
|
+
rows: RichInline[][][];
|
|
492
|
+
} | {
|
|
493
|
+
id: string;
|
|
494
|
+
type: 'rule';
|
|
495
|
+
locked?: boolean;
|
|
496
|
+
} | {
|
|
497
|
+
id: string;
|
|
498
|
+
type: 'pageBreak';
|
|
499
|
+
locked?: boolean;
|
|
500
|
+
};
|
|
501
|
+
/**
|
|
502
|
+
* Campo de una plantilla, con el valor que le dio quien redacta. `materia` es el asunto del documento: no se escribe
|
|
503
|
+
* aparte.
|
|
504
|
+
*/
|
|
505
|
+
export interface RichField {
|
|
506
|
+
key: string;
|
|
507
|
+
label: string;
|
|
508
|
+
value: string;
|
|
509
|
+
required?: boolean;
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Contenido de un documento redactado en el sistema. Cada plantilla tiene su estructura; los párrafos son texto
|
|
513
|
+
* (un salto de línea dentro de un párrafo se respeta). La materia es el asunto del documento.
|
|
514
|
+
*/
|
|
515
|
+
export type DocumentComposition = {
|
|
516
|
+
template: 'Decree';
|
|
517
|
+
/** VISTOS: las normas y antecedentes. */
|
|
518
|
+
vistos: string[];
|
|
519
|
+
/** CONSIDERANDO: cada fundamento, numerado. */
|
|
520
|
+
considerando: string[];
|
|
521
|
+
/** DECRETO: cada punto resolutivo, numerado. */
|
|
522
|
+
resolutive: string[];
|
|
523
|
+
/** Fórmula de cierre: «Anótese, comuníquese y archívese». */
|
|
524
|
+
closing: string;
|
|
525
|
+
distribution: string[];
|
|
526
|
+
} | {
|
|
527
|
+
template: 'Office';
|
|
528
|
+
/** ANT.: antecedentes (otro oficio, una solicitud). */
|
|
529
|
+
antecedents?: string | null;
|
|
530
|
+
from: string;
|
|
531
|
+
to: string;
|
|
532
|
+
body: string[];
|
|
533
|
+
closing: string;
|
|
534
|
+
distribution: string[];
|
|
535
|
+
} | {
|
|
536
|
+
template: 'Memorandum';
|
|
537
|
+
from: string;
|
|
538
|
+
to: string;
|
|
539
|
+
body: string[];
|
|
540
|
+
closing?: string | null;
|
|
541
|
+
distribution: string[];
|
|
542
|
+
} | {
|
|
543
|
+
template: 'General';
|
|
544
|
+
title: string;
|
|
545
|
+
body: string[];
|
|
546
|
+
closing?: string | null;
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Redactado con el editor del gestor: los bloques del texto, los campos de la plantilla con su valor y la
|
|
550
|
+
* distribución. `templateKey` y `templateVersion`: de qué plantilla salió, si salió de una.
|
|
551
|
+
*/
|
|
552
|
+
| {
|
|
553
|
+
template: 'Rich';
|
|
554
|
+
templateKey?: string | null;
|
|
555
|
+
templateVersion?: number | null;
|
|
556
|
+
blocks: RichBlock[];
|
|
557
|
+
fields: RichField[];
|
|
558
|
+
distribution: string[];
|
|
559
|
+
/** Página y membrete. En una plantilla propia los pone su versión: lo que mande el navegador no cuenta. */
|
|
560
|
+
page?: RichPage;
|
|
561
|
+
letterhead?: RichLetterhead;
|
|
562
|
+
};
|
|
563
|
+
/** PDF armado con una plantilla: para la vista previa (`contentBase64`) o ya subido (`fileId`). */
|
|
564
|
+
export interface DocumentComposeResponseEntity {
|
|
565
|
+
fileName: string;
|
|
566
|
+
fileId?: string;
|
|
567
|
+
contentBase64?: string;
|
|
568
|
+
}
|
|
569
|
+
/** Copia por correo de un documento, como la ve quien lo consulta en el gestor. */
|
|
570
|
+
export interface DocumentEmailCopyResponseEntity {
|
|
571
|
+
id: string;
|
|
572
|
+
name: string;
|
|
573
|
+
email: string;
|
|
574
|
+
/** Cuándo se envió (sin valor: aún no corresponde). */
|
|
575
|
+
issuedAt: string | null;
|
|
576
|
+
expiresAt: string | null;
|
|
577
|
+
openedAt: string | null;
|
|
578
|
+
downloadCount: number;
|
|
579
|
+
}
|
|
580
|
+
/** Copia recién emitida: el gateway le envía el enlace a su destinatario. El token viaja solo aquí. */
|
|
581
|
+
export interface DocumentEmailCopyIssuedEntity {
|
|
582
|
+
copyId: string;
|
|
583
|
+
documentId: string;
|
|
584
|
+
name: string;
|
|
585
|
+
email: string;
|
|
586
|
+
token: string;
|
|
587
|
+
expiresAt: string;
|
|
588
|
+
/** Cómo se cita: «D.E. N° 590/2026», o el tipo si no lleva número. */
|
|
589
|
+
folio: string;
|
|
590
|
+
subject: string;
|
|
591
|
+
issuerName: string;
|
|
592
|
+
}
|
|
593
|
+
/** El documento como lo ve quien abre su copia por correo. */
|
|
594
|
+
export interface DocumentEmailCopyViewEntity {
|
|
595
|
+
recipientName: string;
|
|
596
|
+
expiresAt: string;
|
|
597
|
+
documentTypeName: string;
|
|
598
|
+
folio: string;
|
|
599
|
+
subject: string;
|
|
600
|
+
issuerName: string;
|
|
601
|
+
finishedAt: string | null;
|
|
602
|
+
verificationCode: string | null;
|
|
603
|
+
signers: {
|
|
604
|
+
fullName: string;
|
|
605
|
+
position: string | null;
|
|
606
|
+
signedAt: string | null;
|
|
607
|
+
}[];
|
|
608
|
+
}
|
|
609
|
+
/** Recordatorio de un plazo: al recibido y, si venció, también a su jefatura (la resuelve el gateway). */
|
|
610
|
+
export interface DocumentReminderEntity {
|
|
611
|
+
deliveryId: string;
|
|
612
|
+
kind: 'DueSoon' | 'Overdue';
|
|
613
|
+
employeeId: string;
|
|
614
|
+
fullName: string;
|
|
615
|
+
documentId: string;
|
|
616
|
+
/** Cómo se cita: «D.E. N° 590/2026», el folio de ingreso o el tipo. */
|
|
617
|
+
folio: string;
|
|
618
|
+
subject: string;
|
|
619
|
+
dueAt: string;
|
|
620
|
+
instruction: DocumentDeliveryEntity['instruction'];
|
|
621
|
+
sentByFullName: string | null;
|
|
622
|
+
}
|
|
623
|
+
/** Quien visó, firmó o rechazó una versión, según la trazabilidad. */
|
|
624
|
+
export interface DocumentVersionReviewEntity {
|
|
625
|
+
action: 'Visaed' | 'Signed' | 'Rejected';
|
|
626
|
+
employeeFullName: string;
|
|
627
|
+
createdAt: string;
|
|
628
|
+
}
|
|
629
|
+
/** Una versión de un documento: lo que se guardó cada vez que cambió su PDF, su texto o su asunto. */
|
|
630
|
+
export interface DocumentVersionResponseEntity {
|
|
631
|
+
number: number;
|
|
632
|
+
subject: string;
|
|
633
|
+
fileName: string;
|
|
634
|
+
sha256: string | null;
|
|
635
|
+
/** Lo redactado con plantilla, para compararla con otra versión. `null` si se subió un PDF. */
|
|
636
|
+
composition: DocumentComposition | null;
|
|
637
|
+
note: string | null;
|
|
638
|
+
status: DocumentStatus;
|
|
639
|
+
createdByFullName: string;
|
|
640
|
+
createdAt: string;
|
|
641
|
+
/** Visaciones, firmas y rechazos mientras fue la versión vigente. */
|
|
642
|
+
reviews: DocumentVersionReviewEntity[];
|
|
643
|
+
}
|
|
644
|
+
/** Comentario de redacción de un visador, un firmante o el redactor. */
|
|
645
|
+
export interface DocumentCommentResponseEntity {
|
|
646
|
+
id: string;
|
|
647
|
+
versionNumber: number;
|
|
648
|
+
section: string | null;
|
|
649
|
+
quote: string | null;
|
|
650
|
+
text: string;
|
|
651
|
+
authorEmployeeId: string;
|
|
652
|
+
authorFullName: string;
|
|
653
|
+
/** `Review`: la jefatura que revisa el borrador antes de enviarlo a tramitación. */
|
|
654
|
+
authorRole: 'Author' | 'Visa' | 'Signature' | 'Review';
|
|
655
|
+
createdAt: string;
|
|
656
|
+
resolvedAt: string | null;
|
|
657
|
+
resolvedByFullName: string | null;
|
|
658
|
+
resolutionNote: string | null;
|
|
659
|
+
/** Quien consulta lo puede marcar como resuelto: el redactor o quien lo escribió, mientras el documento se tramita. */
|
|
660
|
+
canResolve: boolean;
|
|
661
|
+
}
|
|
662
|
+
export interface DocumentCommentsResponseEntity {
|
|
663
|
+
comments: DocumentCommentResponseEntity[];
|
|
664
|
+
/** Quien consulta puede comentar: es el redactor o tiene un turno, y el documento no ha terminado. */
|
|
665
|
+
canComment: boolean;
|
|
666
|
+
currentVersion: number;
|
|
667
|
+
}
|
|
668
|
+
/** Una ronda de revisión del borrador. */
|
|
669
|
+
export interface DocumentDraftReviewRoundEntity {
|
|
670
|
+
id: string;
|
|
671
|
+
round: number;
|
|
672
|
+
/** Versión del borrador que se revisó. */
|
|
673
|
+
versionNumber: number;
|
|
674
|
+
directorateName: string;
|
|
675
|
+
reviewerEmployeeId: string;
|
|
676
|
+
reviewerFullName: string;
|
|
677
|
+
requestedByFullName: string;
|
|
678
|
+
requestedAt: string;
|
|
679
|
+
status: 'Pending' | 'Approved' | 'Rejected' | 'Cancelled';
|
|
680
|
+
observation: string | null;
|
|
681
|
+
resolvedAt: string | null;
|
|
682
|
+
}
|
|
683
|
+
/** La revisión del borrador que exige el tipo documental. */
|
|
684
|
+
export interface DocumentDraftReviewInfoEntity {
|
|
685
|
+
directorateCodeReference: number;
|
|
686
|
+
directorateName: string;
|
|
687
|
+
rounds: DocumentDraftReviewRoundEntity[];
|
|
688
|
+
/** La versión vigente del borrador está aprobada: se puede enviar a tramitación. */
|
|
689
|
+
approved: boolean;
|
|
690
|
+
/** Hay una ronda esperando respuesta: el borrador no se edita mientras tanto. */
|
|
691
|
+
pending: boolean;
|
|
692
|
+
}
|
|
693
|
+
/** Resultado de pedir, resolver o retirar una revisión del borrador. */
|
|
694
|
+
export interface DocumentDraftReviewResponseEntity {
|
|
695
|
+
id: string;
|
|
696
|
+
ok: boolean;
|
|
697
|
+
round: number;
|
|
698
|
+
status: DocumentDraftReviewRoundEntity['status'];
|
|
699
|
+
/** A quién avisar: la jefatura revisora (al pedirla) o el redactor (al resolverla). */
|
|
700
|
+
notify: {
|
|
701
|
+
employeeId: string;
|
|
702
|
+
fullName: string;
|
|
703
|
+
} | null;
|
|
704
|
+
}
|