@muni-sanfer/types-gestor-documental 0.0.1-beta.101 → 0.0.1-beta.103
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 +1 -0
- package/dist/contracts/partsOffice.contract.d.ts +6 -3
- package/dist/entities/document/document.entity.d.ts +6 -1
- package/dist/entities/partsOffice/partsOffice.entity.d.ts +2 -0
- package/package.json +1 -1
- package/src/base/entities.ts +1 -0
- package/src/contracts/partsOffice.contract.ts +6 -3
- package/src/entities/document/document.entity.ts +6 -0
- package/src/entities/partsOffice/partsOffice.entity.ts +2 -0
package/dist/base/entities.d.ts
CHANGED
|
@@ -1039,6 +1039,7 @@ export interface DocDigitalInboundEntity {
|
|
|
1039
1039
|
registeredByFullName?: string | null;
|
|
1040
1040
|
acknowledgedAt?: string | null;
|
|
1041
1041
|
acknowledgeError?: string | null;
|
|
1042
|
+
discardReason?: string | null;
|
|
1042
1043
|
returnedAt?: string | null;
|
|
1043
1044
|
returnedByEmployeeId?: string | null;
|
|
1044
1045
|
returnedByFullName?: string | null;
|
|
@@ -202,8 +202,8 @@ export interface PartsOfficeContract {
|
|
|
202
202
|
response: PartsOfficeSyncResponseEntity;
|
|
203
203
|
};
|
|
204
204
|
/**
|
|
205
|
-
*
|
|
206
|
-
*
|
|
205
|
+
* Acuse de recibo de un recibido (como en DocDigital): lo ingresa al gestor con folio de ingreso, da el acuse en
|
|
206
|
+
* DocDigital y lo deriva a quienes corresponda o, con `discardReason` («Descartar derivación»), lo deja sin derivar.
|
|
207
207
|
*/
|
|
208
208
|
[PartsOfficePatterns.registerInbound]: {
|
|
209
209
|
payload: {
|
|
@@ -212,10 +212,13 @@ export interface PartsOfficeContract {
|
|
|
212
212
|
keywords: string[];
|
|
213
213
|
accessLevel: DocumentAccessLevel;
|
|
214
214
|
hasSensitiveData: boolean;
|
|
215
|
+
/** A quién se deriva; vacío si no se deriva. */
|
|
215
216
|
recipients: PartsOfficeRecipientInput[];
|
|
216
|
-
instruction
|
|
217
|
+
instruction?: DocumentInstruction;
|
|
217
218
|
note?: string | null;
|
|
218
219
|
dueAt?: string | null;
|
|
220
|
+
/** «Descartar derivación»: por qué no se deriva a nadie (entre 3 y 500 caracteres). */
|
|
221
|
+
discardReason?: string | null;
|
|
219
222
|
actor: DocumentActor;
|
|
220
223
|
};
|
|
221
224
|
response: PartsOfficeRegisterResponseEntity;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type DocumentFolioDraft, type DocumentFolioStamp } from './folio';
|
|
2
2
|
import { type DocumentTypeDistribution } from '../documentType/distribution';
|
|
3
|
-
import { type CommunicationMeans, DocumentAnnulledNumberEntity, DocumentAttachmentEntity, DocumentDeliveryEntity, DocumentEntity, DocumentParticipantEntity, DocumentRecipientEntity, type DocumentStatus, type InternalNoteVerdict, DocumentTrackingEntity, DocumentTypeEntity } from '../../base/entities';
|
|
3
|
+
import { type CommunicationMeans, DocumentAnnulledNumberEntity, DocumentAttachmentEntity, DocumentDeliveryEntity, DocumentEntity, DocumentParticipantEntity, DocumentRecipientEntity, type DocumentStatus, type DraftReviewStatus, type InternalNoteVerdict, DocumentTrackingEntity, DocumentTypeEntity } from '../../base/entities';
|
|
4
4
|
import { type RichLetterhead, type RichPage, type RichSpacing, type RichTextStyle } from './richStyle';
|
|
5
5
|
import { type DocumentDraftingRequestEntity } from '../draftingRequest/draftingRequest.entity';
|
|
6
6
|
import { type DocumentStampPlacements, type StampBox } from './stampPlacement';
|
|
@@ -163,6 +163,11 @@ export interface DocumentGetAllResponseEntity {
|
|
|
163
163
|
} | null;
|
|
164
164
|
/** Borrador que espera su revisión: quién la tiene que hacer (para elegir varios y aprobarlos de una vez). */
|
|
165
165
|
draftReviewerEmployeeId?: string | null;
|
|
166
|
+
/**
|
|
167
|
+
* Cómo va la revisión de un borrador: esperándola, con observaciones (devuelto) o aprobado (y sin cambios desde
|
|
168
|
+
* entonces). Sin revisión, o si ya no es borrador, `null`.
|
|
169
|
+
*/
|
|
170
|
+
draftReviewStatus?: Exclude<DraftReviewStatus, 'Cancelled'> | null;
|
|
166
171
|
}
|
|
167
172
|
/** Una entrada de la bandeja de recibidos: la entrega y el documento al que corresponde. */
|
|
168
173
|
/** Semáforo de un plazo pendiente: a tiempo, por vencer (2 días hábiles o menos) o vencido. */
|
|
@@ -98,6 +98,8 @@ export interface PartsOfficeInboundEntity {
|
|
|
98
98
|
registeredByFullName: string | null;
|
|
99
99
|
acknowledgedAt: string | null;
|
|
100
100
|
acknowledgeError: string | null;
|
|
101
|
+
/** Acuse de recibo sin derivar («Descartar derivación»): por qué no se derivó a nadie. */
|
|
102
|
+
discardReason: string | null;
|
|
101
103
|
returnedAt: string | null;
|
|
102
104
|
returnedByFullName: string | null;
|
|
103
105
|
returnReason: string | null;
|
package/package.json
CHANGED
package/src/base/entities.ts
CHANGED
|
@@ -1306,6 +1306,7 @@ export interface DocDigitalInboundEntity {
|
|
|
1306
1306
|
registeredByFullName?: string | null;
|
|
1307
1307
|
acknowledgedAt?: string | null;
|
|
1308
1308
|
acknowledgeError?: string | null;
|
|
1309
|
+
discardReason?: string | null;
|
|
1309
1310
|
returnedAt?: string | null;
|
|
1310
1311
|
returnedByEmployeeId?: string | null;
|
|
1311
1312
|
returnedByFullName?: string | null;
|
|
@@ -159,8 +159,8 @@ export interface PartsOfficeContract {
|
|
|
159
159
|
/** Trae de DocDigital lo recibido que aún no tiene acuse de recibo. */
|
|
160
160
|
[PartsOfficePatterns.syncInbound]: { payload: Record<string, never>; response: PartsOfficeSyncResponseEntity };
|
|
161
161
|
/**
|
|
162
|
-
*
|
|
163
|
-
*
|
|
162
|
+
* Acuse de recibo de un recibido (como en DocDigital): lo ingresa al gestor con folio de ingreso, da el acuse en
|
|
163
|
+
* DocDigital y lo deriva a quienes corresponda o, con `discardReason` («Descartar derivación»), lo deja sin derivar.
|
|
164
164
|
*/
|
|
165
165
|
[PartsOfficePatterns.registerInbound]: {
|
|
166
166
|
payload: {
|
|
@@ -169,10 +169,13 @@ export interface PartsOfficeContract {
|
|
|
169
169
|
keywords: string[];
|
|
170
170
|
accessLevel: DocumentAccessLevel;
|
|
171
171
|
hasSensitiveData: boolean;
|
|
172
|
+
/** A quién se deriva; vacío si no se deriva. */
|
|
172
173
|
recipients: PartsOfficeRecipientInput[];
|
|
173
|
-
instruction
|
|
174
|
+
instruction?: DocumentInstruction;
|
|
174
175
|
note?: string | null;
|
|
175
176
|
dueAt?: string | null;
|
|
177
|
+
/** «Descartar derivación»: por qué no se deriva a nadie (entre 3 y 500 caracteres). */
|
|
178
|
+
discardReason?: string | null;
|
|
176
179
|
actor: DocumentActor;
|
|
177
180
|
};
|
|
178
181
|
response: PartsOfficeRegisterResponseEntity;
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
DocumentParticipantEntity,
|
|
10
10
|
DocumentRecipientEntity,
|
|
11
11
|
type DocumentStatus,
|
|
12
|
+
type DraftReviewStatus,
|
|
12
13
|
type InternalNoteVerdict,
|
|
13
14
|
DocumentTrackingEntity,
|
|
14
15
|
DocumentTypeEntity,
|
|
@@ -185,6 +186,11 @@ export interface DocumentGetAllResponseEntity {
|
|
|
185
186
|
internalVerdict?: { verdict: InternalNoteVerdict; authorFullName: string; createdAt: string } | null;
|
|
186
187
|
/** Borrador que espera su revisión: quién la tiene que hacer (para elegir varios y aprobarlos de una vez). */
|
|
187
188
|
draftReviewerEmployeeId?: string | null;
|
|
189
|
+
/**
|
|
190
|
+
* Cómo va la revisión de un borrador: esperándola, con observaciones (devuelto) o aprobado (y sin cambios desde
|
|
191
|
+
* entonces). Sin revisión, o si ya no es borrador, `null`.
|
|
192
|
+
*/
|
|
193
|
+
draftReviewStatus?: Exclude<DraftReviewStatus, 'Cancelled'> | null;
|
|
188
194
|
}
|
|
189
195
|
|
|
190
196
|
/** Una entrada de la bandeja de recibidos: la entrega y el documento al que corresponde. */
|
|
@@ -106,6 +106,8 @@ export interface PartsOfficeInboundEntity {
|
|
|
106
106
|
registeredByFullName: string | null;
|
|
107
107
|
acknowledgedAt: string | null;
|
|
108
108
|
acknowledgeError: string | null;
|
|
109
|
+
/** Acuse de recibo sin derivar («Descartar derivación»): por qué no se derivó a nadie. */
|
|
110
|
+
discardReason: string | null;
|
|
109
111
|
returnedAt: string | null;
|
|
110
112
|
returnedByFullName: string | null;
|
|
111
113
|
returnReason: string | null;
|