@muni-sanfer/types-gestor-documental 0.0.1-beta.6 → 0.0.1-beta.61
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 +1055 -7
- package/dist/base/entities.js +258 -2
- 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 +236 -3
- package/dist/contracts/document.contract.js +16 -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 +33 -3
- package/dist/contracts/documentType.contract.js +2 -0
- package/dist/contracts/draftingRequest.contract.d.ts +97 -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 +249 -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/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/visaInitials.contract.d.ts +28 -0
- package/dist/contracts/visaInitials.contract.js +11 -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 +476 -1
- package/dist/entities/document/index.d.ts +2 -0
- package/dist/entities/document/index.js +2 -0
- package/dist/entities/document/richStyle.d.ts +219 -0
- package/dist/entities/document/richStyle.js +81 -0
- package/dist/entities/document/stampPlacement.d.ts +42 -0
- package/dist/entities/document/stampPlacement.js +16 -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/documentCategory.d.ts +15 -0
- package/dist/entities/documentType/documentCategory.js +39 -0
- package/dist/entities/documentType/documentType.entity.d.ts +64 -1
- package/dist/entities/documentType/index.d.ts +1 -0
- package/dist/entities/documentType/index.js +1 -0
- package/dist/entities/draftingRequest/draftingRequest.entity.d.ts +78 -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/registerBook.entity.d.ts +6 -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/visaInitials/index.d.ts +1 -0
- package/dist/entities/visaInitials/index.js +17 -0
- package/dist/entities/visaInitials/visaInitials.entity.d.ts +13 -0
- package/dist/entities/visaInitials/visaInitials.entity.js +5 -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 +1244 -7
- 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 +223 -3
- package/src/contracts/documentTemplate.contract.ts +17 -0
- package/src/contracts/documentType.contract.ts +57 -4
- package/src/contracts/draftingRequest.contract.ts +77 -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/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/visaInitials.contract.ts +23 -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 +464 -1
- package/src/entities/document/index.ts +2 -0
- package/src/entities/document/richStyle.ts +200 -0
- package/src/entities/document/stampPlacement.ts +35 -0
- package/src/entities/documentTemplate/documentTemplate.entity.ts +27 -0
- package/src/entities/documentTemplate/index.ts +1 -0
- package/src/entities/documentType/documentCategory.ts +40 -0
- package/src/entities/documentType/documentType.entity.ts +76 -1
- package/src/entities/documentType/index.ts +1 -0
- package/src/entities/draftingRequest/draftingRequest.entity.ts +81 -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/registerBook.entity.ts +6 -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/visaInitials/index.ts +1 -0
- package/src/entities/visaInitials/visaInitials.entity.ts +12 -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,7 @@
|
|
|
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';
|
|
4
|
+
import { type DocumentStampPlacements } from './stampPlacement';
|
|
2
5
|
/** Tipo documental de un documento, con lo necesario para citarlo. */
|
|
3
6
|
export interface DocumentTypeSummaryEntity {
|
|
4
7
|
id: DocumentTypeEntity['id'];
|
|
@@ -10,6 +13,8 @@ export interface DocumentParticipantResponseEntity {
|
|
|
10
13
|
id: DocumentParticipantEntity['id'];
|
|
11
14
|
role: DocumentParticipantEntity['role'];
|
|
12
15
|
order: DocumentParticipantEntity['order'];
|
|
16
|
+
/** Los visadores de una misma etapa visan a la vez. */
|
|
17
|
+
stage: DocumentParticipantEntity['stage'];
|
|
13
18
|
status: DocumentParticipantEntity['status'];
|
|
14
19
|
employeeId: DocumentParticipantEntity['employeeId'];
|
|
15
20
|
fullName: DocumentParticipantEntity['fullName'];
|
|
@@ -80,6 +85,14 @@ export interface DocumentDispatchResponseEntity {
|
|
|
80
85
|
returnedAt: string | null;
|
|
81
86
|
returnedByFullName: string | null;
|
|
82
87
|
returnReason: string | null;
|
|
88
|
+
/** Registro por contingencia: salió por otro medio porque no se pudo por DocDigital. */
|
|
89
|
+
contingency: {
|
|
90
|
+
means: CommunicationMeans;
|
|
91
|
+
sentTo: string | null;
|
|
92
|
+
reason: string | null;
|
|
93
|
+
/** Nombre del comprobante, si se adjuntó. */
|
|
94
|
+
receiptName: string | null;
|
|
95
|
+
} | null;
|
|
83
96
|
}
|
|
84
97
|
export interface DocumentGetAllResponseEntity {
|
|
85
98
|
id: DocumentEntity['id'];
|
|
@@ -100,27 +113,68 @@ export interface DocumentGetAllResponseEntity {
|
|
|
100
113
|
/** Con búsqueda de texto completo: el fragmento donde aparece lo buscado, con lo encontrado entre ⟦ y ⟧. */
|
|
101
114
|
snippet?: string | null;
|
|
102
115
|
currentParticipant: Pick<DocumentParticipantResponseEntity, 'role' | 'employeeId' | 'fullName'> | null;
|
|
116
|
+
otherCurrentCount: number;
|
|
103
117
|
distribution: {
|
|
104
118
|
total: number;
|
|
105
119
|
read: number;
|
|
106
120
|
} | null;
|
|
107
121
|
}
|
|
108
122
|
/** Una entrada de la bandeja de recibidos: la entrega y el documento al que corresponde. */
|
|
123
|
+
/** Semáforo de un plazo pendiente: a tiempo, por vencer (2 días hábiles o menos) o vencido. */
|
|
124
|
+
export type DocumentDueStatus = 'OnTime' | 'DueSoon' | 'Overdue';
|
|
109
125
|
export interface DocumentInboxItemEntity extends DocumentDeliveryResponseEntity {
|
|
126
|
+
/** Semáforo de lo pendiente con plazo (sin plazo o ya atendido, `null`). */
|
|
127
|
+
dueStatus: DocumentDueStatus | null;
|
|
128
|
+
/** Días hábiles que quedan, sin contar hoy (vencido: `null`). */
|
|
129
|
+
businessDaysLeft: number | null;
|
|
110
130
|
document: DocumentLinkEntity;
|
|
111
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* Área responsable de un documento (su unidad emisora): una dirección o un departamento, con su nombre y el de la
|
|
134
|
+
* dirección a que pertenece (en una dirección, el mismo).
|
|
135
|
+
*/
|
|
136
|
+
export interface DocumentResponsibleAreaEntity {
|
|
137
|
+
directorateCodeReference: number | null;
|
|
138
|
+
departmentId: string | null;
|
|
139
|
+
name: string;
|
|
140
|
+
directorateName: string;
|
|
141
|
+
}
|
|
112
142
|
export interface DocumentGetByIdResponseEntity {
|
|
113
143
|
id: DocumentEntity['id'];
|
|
144
|
+
issuerName: string;
|
|
145
|
+
archivalSeries: {
|
|
146
|
+
id: string;
|
|
147
|
+
code: string;
|
|
148
|
+
name: string;
|
|
149
|
+
} | null;
|
|
150
|
+
restrictionEndsAt: string | null;
|
|
114
151
|
subject: DocumentEntity['subject'];
|
|
152
|
+
/** Resumen breve; va a DocDigital como «descripcion» al despacharlo. */
|
|
153
|
+
description: string | null;
|
|
154
|
+
/** Procedimiento administrativo al que corresponde. */
|
|
155
|
+
procedure: {
|
|
156
|
+
id: string;
|
|
157
|
+
name: string;
|
|
158
|
+
cpatCode: string | null;
|
|
159
|
+
} | null;
|
|
115
160
|
keywords: DocumentEntity['keywords'];
|
|
116
161
|
accessLevel: DocumentEntity['accessLevel'];
|
|
117
162
|
hasSensitiveData: DocumentEntity['hasSensitiveData'];
|
|
163
|
+
/**
|
|
164
|
+
* Formato del archivo vigente: la conformidad PDF/A que declara («PDF/A-2B») o «PDF». `null` si no se revisó (los
|
|
165
|
+
* documentos anteriores a esta revisión, o aún sin firmar).
|
|
166
|
+
*/
|
|
167
|
+
fileFormat: DocumentEntity['fileFormat'];
|
|
118
168
|
status: DocumentEntity['status'];
|
|
119
169
|
correlative: DocumentEntity['correlative'];
|
|
120
170
|
correlativeYear: DocumentEntity['correlativeYear'];
|
|
121
171
|
numberedAt: DocumentEntity['numberedAt'];
|
|
172
|
+
externalCorrelative: DocumentEntity['externalCorrelative'];
|
|
173
|
+
externalCorrelativeYear: DocumentEntity['externalCorrelativeYear'];
|
|
122
174
|
directorateCodeReference: DocumentEntity['directorateCodeReference'];
|
|
123
175
|
departmentId: DocumentEntity['departmentId'];
|
|
176
|
+
responsibleArea: DocumentResponsibleAreaEntity | null;
|
|
177
|
+
responsibleAreaFixed: boolean;
|
|
124
178
|
createdByEmployeeId: DocumentEntity['createdByEmployeeId'];
|
|
125
179
|
createdByFullName: DocumentEntity['createdByFullName'];
|
|
126
180
|
originalFileId: DocumentEntity['originalFileId'];
|
|
@@ -142,9 +196,28 @@ export interface DocumentGetByIdResponseEntity {
|
|
|
142
196
|
createdAt: DocumentAnnulledNumberEntity['createdAt'];
|
|
143
197
|
}[];
|
|
144
198
|
responseDueAt: DocumentEntity['responseDueAt'];
|
|
199
|
+
responseDueBusinessDays: number | null;
|
|
145
200
|
recipients: DocumentRecipientResponseEntity[];
|
|
146
201
|
deliveries: DocumentDeliveryResponseEntity[];
|
|
147
202
|
replyTo: DocumentLinkEntity | null;
|
|
203
|
+
/** Lote de firma al que pertenece. */
|
|
204
|
+
batch: {
|
|
205
|
+
id: string;
|
|
206
|
+
name: string;
|
|
207
|
+
} | null;
|
|
208
|
+
/** Contenido redactado en el sistema con una plantilla, para volver a editarlo (sin valor si se subió un PDF). */
|
|
209
|
+
composition: DocumentComposition | null;
|
|
210
|
+
/**
|
|
211
|
+
* Revisión del borrador antes de enviarlo a tramitación, si su tipo la exige: qué dirección revisa, las rondas (la
|
|
212
|
+
* más reciente primero) y si la versión vigente ya está aprobada. `null` si el tipo no la exige.
|
|
213
|
+
*/
|
|
214
|
+
draftReview: DocumentDraftReviewInfoEntity | null;
|
|
215
|
+
/** Se subió como validado: no pasó por la revisión del tipo. */
|
|
216
|
+
selfValidation: DocumentSelfValidationEntity | null;
|
|
217
|
+
/** Dónde van las visaciones y las firmas, si quien redacta las ubicó; `null`, las ubica el sistema. */
|
|
218
|
+
stampPlacements: DocumentStampPlacements | null;
|
|
219
|
+
/** Solicitud de redacción que atiende, si se redactó a pedido de otra área. */
|
|
220
|
+
draftingRequest: DocumentDraftingRequestEntity | null;
|
|
148
221
|
replies: DocumentLinkEntity[];
|
|
149
222
|
/** Expedientes en que está incorporado y que quien consulta puede ver. */
|
|
150
223
|
caseFiles: {
|
|
@@ -163,7 +236,14 @@ export interface DocumentGetByIdResponseEntity {
|
|
|
163
236
|
/** Instituciones de DocDigital a quienes va dirigido, y su despacho por Oficina de Partes. */
|
|
164
237
|
externalRecipients: DocumentExternalRecipientResponseEntity[];
|
|
165
238
|
dispatch: DocumentDispatchResponseEntity | null;
|
|
239
|
+
emailCopies: DocumentEmailCopyResponseEntity[];
|
|
166
240
|
documentType: DocumentTypeSummaryEntity;
|
|
241
|
+
documentTypeVersion: {
|
|
242
|
+
version: number;
|
|
243
|
+
current: boolean;
|
|
244
|
+
} | null;
|
|
245
|
+
/** Cómo se visa: con el sello del sistema o con la firma electrónica desatendida de cada visador (sin OTP). */
|
|
246
|
+
visaMode: DocumentTypeEntity['visaMode'];
|
|
167
247
|
participants: DocumentParticipantResponseEntity[];
|
|
168
248
|
attachments: {
|
|
169
249
|
id: DocumentAttachmentEntity['id'];
|
|
@@ -176,6 +256,7 @@ export interface DocumentGetByIdResponseEntity {
|
|
|
176
256
|
id: DocumentTrackingEntity['id'];
|
|
177
257
|
action: DocumentTrackingEntity['action'];
|
|
178
258
|
observation: DocumentTrackingEntity['observation'];
|
|
259
|
+
sha256: DocumentTrackingEntity['sha256'];
|
|
179
260
|
employeeId: DocumentTrackingEntity['employeeId'];
|
|
180
261
|
employeeFullName: DocumentTrackingEntity['employeeFullName'];
|
|
181
262
|
createdAt: DocumentTrackingEntity['createdAt'];
|
|
@@ -189,6 +270,8 @@ export interface DocumentGetByIdResponseEntity {
|
|
|
189
270
|
canReassign: boolean;
|
|
190
271
|
/** Quien consulta redactó el documento (o lo ingresó, si llegó por DocDigital). */
|
|
191
272
|
isAuthor: boolean;
|
|
273
|
+
/** Le toca aprobar o devolver el borrador: es la jefatura de la revisión pendiente. */
|
|
274
|
+
canResolveDraftReview: boolean;
|
|
192
275
|
inbox: DocumentDeliveryResponseEntity[];
|
|
193
276
|
};
|
|
194
277
|
signatureRequiresOtp: boolean;
|
|
@@ -197,6 +280,18 @@ export interface DocumentGetByIdResponseEntity {
|
|
|
197
280
|
export interface DocumentGetSummaryResponseEntity {
|
|
198
281
|
toVisa: number;
|
|
199
282
|
toSign: number;
|
|
283
|
+
/** Borradores que esperan su revisión (como jefatura de la dirección que los revisa). */
|
|
284
|
+
toReview: number;
|
|
285
|
+
/** Solicitudes de redacción: sin tomar dirigidas a su dirección, y tomadas por él aún sin atender. */
|
|
286
|
+
draftingRequests: {
|
|
287
|
+
pending: number;
|
|
288
|
+
taken: number;
|
|
289
|
+
};
|
|
290
|
+
/** Lotes de firma con documentos en su turno (los documentos de un lote no se cuentan en `toVisa` ni `toSign`). */
|
|
291
|
+
batches: {
|
|
292
|
+
toVisa: number;
|
|
293
|
+
toSign: number;
|
|
294
|
+
};
|
|
200
295
|
created: {
|
|
201
296
|
drafted: number;
|
|
202
297
|
inProgress: number;
|
|
@@ -216,12 +311,35 @@ export interface DocumentCreateResponseEntity {
|
|
|
216
311
|
export interface DocumentUpdateResponseEntity {
|
|
217
312
|
id: DocumentEntity['id'];
|
|
218
313
|
ok: boolean;
|
|
314
|
+
/** Se envió con el borrador aprobado: el documento oficial quedó en revisión (hay que avisar a quien lo revisa). */
|
|
315
|
+
officialReview?: DocumentDraftReviewResponseEntity;
|
|
219
316
|
}
|
|
220
317
|
export interface DocumentReviewResponseEntity {
|
|
221
318
|
id: DocumentEntity['id'];
|
|
222
319
|
ok: boolean;
|
|
223
320
|
status: DocumentEntity['status'];
|
|
224
321
|
}
|
|
322
|
+
/** Resultado de un documento en una firma de varios documentos. */
|
|
323
|
+
export interface DocumentSignManyResultEntity {
|
|
324
|
+
id: DocumentEntity['id'];
|
|
325
|
+
ok: boolean;
|
|
326
|
+
/** Estado en que quedó, si se firmó. */
|
|
327
|
+
status?: DocumentEntity['status'];
|
|
328
|
+
/** Por qué no se firmó. */
|
|
329
|
+
message?: string;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Firma de varios documentos con un solo OTP. FirmaGob admite 5 MB por solicitud: los que no cupieron quedan en
|
|
333
|
+
* `remaining`, en el turno del firmante, para firmarlos con un OTP nuevo.
|
|
334
|
+
*/
|
|
335
|
+
export interface DocumentSignManyResponseEntity {
|
|
336
|
+
results: DocumentSignManyResultEntity[];
|
|
337
|
+
signed: number;
|
|
338
|
+
failed: number;
|
|
339
|
+
remaining: DocumentEntity['id'][];
|
|
340
|
+
/** FirmaGob avisó que el OTP venció antes de firmar todos los documentos de la solicitud. */
|
|
341
|
+
otpExpired: boolean;
|
|
342
|
+
}
|
|
225
343
|
export interface DocumentDiscardResponseEntity {
|
|
226
344
|
id: DocumentEntity['id'];
|
|
227
345
|
ok: boolean;
|
|
@@ -245,6 +363,7 @@ export interface DocumentVerifyResponseEntity {
|
|
|
245
363
|
state: DocumentVerificationState;
|
|
246
364
|
verificationCode: string;
|
|
247
365
|
documentType: Pick<DocumentTypeSummaryEntity, 'name' | 'abbreviation'>;
|
|
366
|
+
issuerName: string;
|
|
248
367
|
correlative: DocumentEntity['correlative'];
|
|
249
368
|
correlativeYear: DocumentEntity['correlativeYear'];
|
|
250
369
|
numberedAt: DocumentEntity['numberedAt'];
|
|
@@ -276,3 +395,359 @@ export interface DocumentReassignResponseEntity {
|
|
|
276
395
|
id: DocumentEntity['id'];
|
|
277
396
|
ok: boolean;
|
|
278
397
|
}
|
|
398
|
+
/**
|
|
399
|
+
* Un plazo en la agenda de un funcionario: lo que recibió (como destinatario o por derivación) y debe atender, o un
|
|
400
|
+
* documento que envió y del que espera respuesta.
|
|
401
|
+
*/
|
|
402
|
+
export interface DocumentAgendaItemEntity {
|
|
403
|
+
kind: 'Received' | 'Sent';
|
|
404
|
+
/** Semáforo de lo pendiente (atendido o ya respondido por todos: `null`). */
|
|
405
|
+
dueStatus: DocumentDueStatus | null;
|
|
406
|
+
/** Días hábiles que quedan, sin contar hoy (vencido: `null`). */
|
|
407
|
+
businessDaysLeft: number | null;
|
|
408
|
+
/** La entrega (lo recibido) o el documento (lo enviado). */
|
|
409
|
+
id: string;
|
|
410
|
+
documentId: DocumentEntity['id'];
|
|
411
|
+
subject: DocumentEntity['subject'];
|
|
412
|
+
documentType: {
|
|
413
|
+
name: string;
|
|
414
|
+
abbreviation: string | null;
|
|
415
|
+
};
|
|
416
|
+
correlative: DocumentEntity['correlative'];
|
|
417
|
+
correlativeYear: DocumentEntity['correlativeYear'];
|
|
418
|
+
intakeNumber: DocumentEntity['intakeNumber'];
|
|
419
|
+
intakeYear: DocumentEntity['intakeYear'];
|
|
420
|
+
/** Plazo, en ISO 8601. */
|
|
421
|
+
dueAt: string;
|
|
422
|
+
/** Lo recibido: cuándo lo marcó como atendido (sin valor si sigue pendiente). */
|
|
423
|
+
closedAt: string | null;
|
|
424
|
+
/** Lo recibido: la providencia y quién lo derivó. */
|
|
425
|
+
instruction: DocumentDeliveryEntity['instruction'] | null;
|
|
426
|
+
sentByFullName: string | null;
|
|
427
|
+
/** Lo enviado: a cuántos les llegó y cuántos aún no lo atienden. */
|
|
428
|
+
recipients: {
|
|
429
|
+
total: number;
|
|
430
|
+
pending: number;
|
|
431
|
+
} | null;
|
|
432
|
+
}
|
|
433
|
+
export interface DocumentAgendaResponseEntity {
|
|
434
|
+
/** Plazos dentro del período pedido. */
|
|
435
|
+
items: DocumentAgendaItemEntity[];
|
|
436
|
+
/** Lo recibido con el plazo vencido y sin atender, de cualquier fecha (los 50 más antiguos). */
|
|
437
|
+
overdue: DocumentAgendaItemEntity[];
|
|
438
|
+
}
|
|
439
|
+
/** Trazabilidad de un documento en PDF, lista para descargar. */
|
|
440
|
+
export interface DocumentTrailExportEntity {
|
|
441
|
+
fileName: string;
|
|
442
|
+
contentType: string;
|
|
443
|
+
contentBase64: string;
|
|
444
|
+
}
|
|
445
|
+
/** Plantilla oficial con que se redacta un documento en el sistema. */
|
|
446
|
+
export type DocumentTemplateKind = 'Decree' | 'Office' | 'Memorandum' | 'General';
|
|
447
|
+
/** Formato de un trozo de texto en el editor del gestor. Superíndice y subíndice no van juntos. */
|
|
448
|
+
export type RichMark = 'bold' | 'italic' | 'underline' | 'strike' | 'superscript' | 'subscript';
|
|
449
|
+
/**
|
|
450
|
+
* Texto con su formato, o un campo de la plantilla (`field`: su clave), que se reemplaza por su valor al armar el PDF.
|
|
451
|
+
* Un salto de línea dentro del texto (`\n`) es un salto de línea del párrafo.
|
|
452
|
+
*/
|
|
453
|
+
export type RichInline = {
|
|
454
|
+
text: string;
|
|
455
|
+
marks?: RichMark[];
|
|
456
|
+
style?: RichTextStyle;
|
|
457
|
+
} | {
|
|
458
|
+
field: string;
|
|
459
|
+
marks?: RichMark[];
|
|
460
|
+
style?: RichTextStyle;
|
|
461
|
+
};
|
|
462
|
+
export type RichAlign = 'left' | 'center' | 'right' | 'justify';
|
|
463
|
+
/** Numeración de una lista: viñetas, «1.» o la de los decretos, «1.-». */
|
|
464
|
+
export type RichListStyle = 'bullet' | 'decimal' | 'decree';
|
|
465
|
+
/**
|
|
466
|
+
* Cómo se ve una tabla: con bordes (`grid`), o como las líneas «DE:», «A:», «MAT.:» de un oficio, con la etiqueta en
|
|
467
|
+
* negrita y sin bordes (`labels`, o `labelsRight`, en la mitad derecha, como «ANT.» y «MAT.» de un oficio).
|
|
468
|
+
*/
|
|
469
|
+
export type RichTableVariant = 'grid' | 'labels' | 'labelsRight';
|
|
470
|
+
/**
|
|
471
|
+
* Un bloque del texto. Los de una plantilla pueden ser fijos (`locked`): quien redacta no los cambia. Las listas son
|
|
472
|
+
* bloques seguidos del mismo estilo (su nivel es la sangría, desde 0); un título o un párrafo reinicia la numeración.
|
|
473
|
+
*/
|
|
474
|
+
export type RichBlock = {
|
|
475
|
+
id: string;
|
|
476
|
+
type: 'paragraph';
|
|
477
|
+
align?: RichAlign;
|
|
478
|
+
spacing?: RichSpacing;
|
|
479
|
+
locked?: boolean;
|
|
480
|
+
content: RichInline[];
|
|
481
|
+
} | {
|
|
482
|
+
id: string;
|
|
483
|
+
type: 'heading';
|
|
484
|
+
level: 1 | 2;
|
|
485
|
+
align?: RichAlign;
|
|
486
|
+
spacing?: RichSpacing;
|
|
487
|
+
locked?: boolean;
|
|
488
|
+
content: RichInline[];
|
|
489
|
+
} | {
|
|
490
|
+
id: string;
|
|
491
|
+
type: 'listItem';
|
|
492
|
+
list: RichListStyle;
|
|
493
|
+
level: number;
|
|
494
|
+
spacing?: RichSpacing;
|
|
495
|
+
locked?: boolean;
|
|
496
|
+
content: RichInline[];
|
|
497
|
+
}
|
|
498
|
+
/** Imagen registrada en el gestor (`imageId`), con su ancho en puntos (sin pasar el del texto) y alineación. */
|
|
499
|
+
| {
|
|
500
|
+
id: string;
|
|
501
|
+
type: 'image';
|
|
502
|
+
imageId: string;
|
|
503
|
+
width: number;
|
|
504
|
+
align?: 'left' | 'center' | 'right';
|
|
505
|
+
caption?: string;
|
|
506
|
+
locked?: boolean;
|
|
507
|
+
}
|
|
508
|
+
/** `rows[fila][columna]`: el contenido de cada celda. */
|
|
509
|
+
| {
|
|
510
|
+
id: string;
|
|
511
|
+
type: 'table';
|
|
512
|
+
variant: RichTableVariant;
|
|
513
|
+
locked?: boolean;
|
|
514
|
+
rows: RichInline[][][];
|
|
515
|
+
} | {
|
|
516
|
+
id: string;
|
|
517
|
+
type: 'rule';
|
|
518
|
+
locked?: boolean;
|
|
519
|
+
} | {
|
|
520
|
+
id: string;
|
|
521
|
+
type: 'pageBreak';
|
|
522
|
+
locked?: boolean;
|
|
523
|
+
};
|
|
524
|
+
/**
|
|
525
|
+
* Campo de una plantilla, con el valor que le dio quien redacta. `materia` es el asunto del documento: no se escribe
|
|
526
|
+
* aparte.
|
|
527
|
+
*/
|
|
528
|
+
export interface RichField {
|
|
529
|
+
key: string;
|
|
530
|
+
label: string;
|
|
531
|
+
value: string;
|
|
532
|
+
required?: boolean;
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Contenido de un documento redactado en el sistema. Cada plantilla tiene su estructura; los párrafos son texto
|
|
536
|
+
* (un salto de línea dentro de un párrafo se respeta). La materia es el asunto del documento.
|
|
537
|
+
*/
|
|
538
|
+
export type DocumentComposition = {
|
|
539
|
+
template: 'Decree';
|
|
540
|
+
/** VISTOS: las normas y antecedentes. */
|
|
541
|
+
vistos: string[];
|
|
542
|
+
/** CONSIDERANDO: cada fundamento, numerado. */
|
|
543
|
+
considerando: string[];
|
|
544
|
+
/** DECRETO: cada punto resolutivo, numerado. */
|
|
545
|
+
resolutive: string[];
|
|
546
|
+
/** Fórmula de cierre: «Anótese, comuníquese y archívese». */
|
|
547
|
+
closing: string;
|
|
548
|
+
distribution: string[];
|
|
549
|
+
} | {
|
|
550
|
+
template: 'Office';
|
|
551
|
+
/** ANT.: antecedentes (otro oficio, una solicitud). */
|
|
552
|
+
antecedents?: string | null;
|
|
553
|
+
from: string;
|
|
554
|
+
to: string;
|
|
555
|
+
body: string[];
|
|
556
|
+
closing: string;
|
|
557
|
+
distribution: string[];
|
|
558
|
+
} | {
|
|
559
|
+
template: 'Memorandum';
|
|
560
|
+
from: string;
|
|
561
|
+
to: string;
|
|
562
|
+
body: string[];
|
|
563
|
+
closing?: string | null;
|
|
564
|
+
distribution: string[];
|
|
565
|
+
} | {
|
|
566
|
+
template: 'General';
|
|
567
|
+
title: string;
|
|
568
|
+
body: string[];
|
|
569
|
+
closing?: string | null;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Redactado con el editor del gestor: los bloques del texto, los campos de la plantilla con su valor y la
|
|
573
|
+
* distribución. `templateKey` y `templateVersion`: de qué plantilla salió, si salió de una.
|
|
574
|
+
*/
|
|
575
|
+
| {
|
|
576
|
+
template: 'Rich';
|
|
577
|
+
templateKey?: string | null;
|
|
578
|
+
templateVersion?: number | null;
|
|
579
|
+
blocks: RichBlock[];
|
|
580
|
+
fields: RichField[];
|
|
581
|
+
distribution: string[];
|
|
582
|
+
/** Página y membrete. En una plantilla propia los pone su versión: lo que mande el navegador no cuenta. */
|
|
583
|
+
page?: RichPage;
|
|
584
|
+
letterhead?: RichLetterhead;
|
|
585
|
+
};
|
|
586
|
+
/** PDF armado con una plantilla: para la vista previa (`contentBase64`) o ya subido (`fileId`). */
|
|
587
|
+
export interface DocumentComposeResponseEntity {
|
|
588
|
+
fileName: string;
|
|
589
|
+
fileId?: string;
|
|
590
|
+
contentBase64?: string;
|
|
591
|
+
}
|
|
592
|
+
/** Copia por correo de un documento, como la ve quien lo consulta en el gestor. */
|
|
593
|
+
export interface DocumentEmailCopyResponseEntity {
|
|
594
|
+
id: string;
|
|
595
|
+
name: string;
|
|
596
|
+
email: string;
|
|
597
|
+
/** Cuándo se envió (sin valor: aún no corresponde). */
|
|
598
|
+
issuedAt: string | null;
|
|
599
|
+
expiresAt: string | null;
|
|
600
|
+
openedAt: string | null;
|
|
601
|
+
downloadCount: number;
|
|
602
|
+
}
|
|
603
|
+
/** Copia recién emitida: el gateway le envía el enlace a su destinatario. El token viaja solo aquí. */
|
|
604
|
+
export interface DocumentEmailCopyIssuedEntity {
|
|
605
|
+
copyId: string;
|
|
606
|
+
documentId: string;
|
|
607
|
+
name: string;
|
|
608
|
+
email: string;
|
|
609
|
+
token: string;
|
|
610
|
+
expiresAt: string;
|
|
611
|
+
/** Cómo se cita: «D.E. N° 590/2026», o el tipo si no lleva número. */
|
|
612
|
+
folio: string;
|
|
613
|
+
subject: string;
|
|
614
|
+
issuerName: string;
|
|
615
|
+
}
|
|
616
|
+
/** El documento como lo ve quien abre su copia por correo. */
|
|
617
|
+
export interface DocumentEmailCopyViewEntity {
|
|
618
|
+
recipientName: string;
|
|
619
|
+
expiresAt: string;
|
|
620
|
+
documentTypeName: string;
|
|
621
|
+
folio: string;
|
|
622
|
+
subject: string;
|
|
623
|
+
issuerName: string;
|
|
624
|
+
finishedAt: string | null;
|
|
625
|
+
verificationCode: string | null;
|
|
626
|
+
signers: {
|
|
627
|
+
fullName: string;
|
|
628
|
+
position: string | null;
|
|
629
|
+
signedAt: string | null;
|
|
630
|
+
}[];
|
|
631
|
+
}
|
|
632
|
+
/** Recordatorio de un plazo: al recibido y, si venció, también a su jefatura (la resuelve el gateway). */
|
|
633
|
+
export interface DocumentReminderEntity {
|
|
634
|
+
deliveryId: string;
|
|
635
|
+
kind: 'DueSoon' | 'Overdue';
|
|
636
|
+
employeeId: string;
|
|
637
|
+
fullName: string;
|
|
638
|
+
documentId: string;
|
|
639
|
+
/** Cómo se cita: «D.E. N° 590/2026», el folio de ingreso o el tipo. */
|
|
640
|
+
folio: string;
|
|
641
|
+
subject: string;
|
|
642
|
+
dueAt: string;
|
|
643
|
+
instruction: DocumentDeliveryEntity['instruction'];
|
|
644
|
+
sentByFullName: string | null;
|
|
645
|
+
}
|
|
646
|
+
/** Quien visó, firmó o rechazó una versión, según la trazabilidad. */
|
|
647
|
+
export interface DocumentVersionReviewEntity {
|
|
648
|
+
action: 'Visaed' | 'Signed' | 'Rejected';
|
|
649
|
+
employeeFullName: string;
|
|
650
|
+
createdAt: string;
|
|
651
|
+
}
|
|
652
|
+
/** Una versión de un documento: lo que se guardó cada vez que cambió su PDF, su texto o su asunto. */
|
|
653
|
+
export interface DocumentVersionResponseEntity {
|
|
654
|
+
number: number;
|
|
655
|
+
subject: string;
|
|
656
|
+
fileName: string;
|
|
657
|
+
sha256: string | null;
|
|
658
|
+
/** Lo redactado con plantilla, para compararla con otra versión. `null` si se subió un PDF. */
|
|
659
|
+
composition: DocumentComposition | null;
|
|
660
|
+
note: string | null;
|
|
661
|
+
status: DocumentStatus;
|
|
662
|
+
/** La guardó la jefatura revisora al corregir el texto; `note` es su justificación. */
|
|
663
|
+
correction: boolean;
|
|
664
|
+
createdByFullName: string;
|
|
665
|
+
createdAt: string;
|
|
666
|
+
/** Visaciones, firmas y rechazos mientras fue la versión vigente. */
|
|
667
|
+
reviews: DocumentVersionReviewEntity[];
|
|
668
|
+
}
|
|
669
|
+
/** Comentario de redacción de un visador, un firmante o el redactor. */
|
|
670
|
+
export interface DocumentCommentResponseEntity {
|
|
671
|
+
id: string;
|
|
672
|
+
versionNumber: number;
|
|
673
|
+
section: string | null;
|
|
674
|
+
quote: string | null;
|
|
675
|
+
text: string;
|
|
676
|
+
authorEmployeeId: string;
|
|
677
|
+
authorFullName: string;
|
|
678
|
+
/** `Review`: la jefatura que revisa el borrador antes de enviarlo a tramitación. */
|
|
679
|
+
authorRole: 'Author' | 'Visa' | 'Signature' | 'Review';
|
|
680
|
+
createdAt: string;
|
|
681
|
+
resolvedAt: string | null;
|
|
682
|
+
resolvedByFullName: string | null;
|
|
683
|
+
resolutionNote: string | null;
|
|
684
|
+
/** Quien consulta lo puede marcar como resuelto: el redactor o quien lo escribió, mientras el documento se tramita. */
|
|
685
|
+
canResolve: boolean;
|
|
686
|
+
}
|
|
687
|
+
export interface DocumentCommentsResponseEntity {
|
|
688
|
+
comments: DocumentCommentResponseEntity[];
|
|
689
|
+
/** Quien consulta puede comentar: es el redactor o tiene un turno, y el documento no ha terminado. */
|
|
690
|
+
canComment: boolean;
|
|
691
|
+
currentVersion: number;
|
|
692
|
+
}
|
|
693
|
+
/** Una ronda de revisión del borrador. */
|
|
694
|
+
export interface DocumentDraftReviewRoundEntity {
|
|
695
|
+
id: string;
|
|
696
|
+
round: number;
|
|
697
|
+
/** Qué se revisó: el borrador (su contenido) o el documento oficial, antes de entrar a tramitación. */
|
|
698
|
+
stage: 'Draft' | 'Official';
|
|
699
|
+
/** Versión del borrador que se revisó. */
|
|
700
|
+
versionNumber: number;
|
|
701
|
+
directorateName: string;
|
|
702
|
+
reviewerEmployeeId: string;
|
|
703
|
+
reviewerFullName: string;
|
|
704
|
+
requestedByFullName: string;
|
|
705
|
+
requestedAt: string;
|
|
706
|
+
status: 'Pending' | 'Approved' | 'Rejected' | 'Cancelled';
|
|
707
|
+
observation: string | null;
|
|
708
|
+
resolvedAt: string | null;
|
|
709
|
+
}
|
|
710
|
+
/** La revisión del borrador que exige el tipo documental. */
|
|
711
|
+
export interface DocumentDraftReviewInfoEntity {
|
|
712
|
+
directorateCodeReference: number;
|
|
713
|
+
directorateName: string;
|
|
714
|
+
rounds: DocumentDraftReviewRoundEntity[];
|
|
715
|
+
/**
|
|
716
|
+
* La versión vigente del borrador está aprobada: quien redacta completa visación, firma y destinatarios y lo envía,
|
|
717
|
+
* y el documento oficial va a revisión de quien aprobó el borrador.
|
|
718
|
+
*/
|
|
719
|
+
approved: boolean;
|
|
720
|
+
/** Hay una ronda esperando respuesta: el borrador no se edita mientras tanto. */
|
|
721
|
+
pending: boolean;
|
|
722
|
+
/** Qué espera la ronda pendiente, si la hay. */
|
|
723
|
+
pendingStage: DocumentDraftReviewRoundEntity['stage'] | null;
|
|
724
|
+
}
|
|
725
|
+
/** PDF subido que quien redacta declaró validado, con su justificación: se saltó la revisión que exige el tipo. */
|
|
726
|
+
export interface DocumentSelfValidationEntity {
|
|
727
|
+
note: string;
|
|
728
|
+
}
|
|
729
|
+
/** Resultado de pedir, resolver o retirar una revisión del borrador. */
|
|
730
|
+
export interface DocumentDraftReviewResponseEntity {
|
|
731
|
+
id: string;
|
|
732
|
+
ok: boolean;
|
|
733
|
+
round: number;
|
|
734
|
+
stage: DocumentDraftReviewRoundEntity['stage'];
|
|
735
|
+
status: DocumentDraftReviewRoundEntity['status'];
|
|
736
|
+
/** A quién avisar: la jefatura revisora (al pedirla) o el redactor (al resolverla). */
|
|
737
|
+
notify: {
|
|
738
|
+
employeeId: string;
|
|
739
|
+
fullName: string;
|
|
740
|
+
} | null;
|
|
741
|
+
/** Al aprobar el oficial, el documento entró a tramitación: hay que avisar a quien tiene el primer turno. */
|
|
742
|
+
submitted?: boolean;
|
|
743
|
+
}
|
|
744
|
+
/** Resultado de la corrección de la jefatura revisora: la versión nueva y a quién avisar (quien redacta). */
|
|
745
|
+
export interface DocumentDraftCorrectionResponseEntity {
|
|
746
|
+
id: string;
|
|
747
|
+
ok: boolean;
|
|
748
|
+
versionNumber: number;
|
|
749
|
+
notify: {
|
|
750
|
+
employeeId: string;
|
|
751
|
+
fullName: string;
|
|
752
|
+
} | null;
|
|
753
|
+
}
|
|
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./document.entity"), exports);
|
|
18
|
+
__exportStar(require("./richStyle"), exports);
|
|
19
|
+
__exportStar(require("./stampPlacement"), exports);
|