@muni-sanfer/types-gestor-documental 0.0.1-beta.97 → 0.0.1-beta.99
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 +12 -0
- package/dist/base/entities.js +5 -1
- package/dist/contracts/document.contract.d.ts +9 -0
- package/dist/contracts/internalReview.contract.d.ts +3 -0
- package/dist/entities/document/document.entity.d.ts +17 -1
- package/dist/entities/internalReview/internalReview.entity.d.ts +5 -1
- package/package.json +1 -1
- package/src/base/entities.ts +14 -0
- package/src/contracts/document.contract.ts +6 -0
- package/src/contracts/internalReview.contract.ts +3 -0
- package/src/entities/document/document.entity.ts +10 -0
- package/src/entities/internalReview/internalReview.entity.ts +5 -1
package/dist/base/entities.d.ts
CHANGED
|
@@ -462,6 +462,14 @@ export declare const DraftingRequestEventAction: {
|
|
|
462
462
|
Cancelled: "Cancelled";
|
|
463
463
|
DocumentLinked: "DocumentLinked";
|
|
464
464
|
};
|
|
465
|
+
/**
|
|
466
|
+
* Lo que concluye quien revisa para la jefatura: le sirve para aprobar o rechazar varios de una vez.
|
|
467
|
+
*/
|
|
468
|
+
export type InternalNoteVerdict = 'Ok' | 'PossibleRejection';
|
|
469
|
+
export declare const InternalNoteVerdict: {
|
|
470
|
+
Ok: "Ok";
|
|
471
|
+
PossibleRejection: "PossibleRejection";
|
|
472
|
+
};
|
|
465
473
|
export interface DocumentTypeEntity {
|
|
466
474
|
id: string;
|
|
467
475
|
name: string;
|
|
@@ -1583,6 +1591,10 @@ export interface DocumentInternalNoteEntity {
|
|
|
1583
1591
|
authorFullName: string;
|
|
1584
1592
|
authorRole: string;
|
|
1585
1593
|
text: string;
|
|
1594
|
+
/**
|
|
1595
|
+
* Lo que concluye la revisora para su jefatura: todo correcto o posible rechazo. Sin valor, solo comenta.
|
|
1596
|
+
*/
|
|
1597
|
+
verdict?: InternalNoteVerdict | null;
|
|
1586
1598
|
createdAt: string;
|
|
1587
1599
|
}
|
|
1588
1600
|
export interface RichImageEntity {
|
package/dist/base/entities.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This file was auto-generated by prisma-generator-typescript-interfaces
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.DataBreachKind = exports.DataRightsEventAction = exports.DataRightsResolution = exports.DataRightsRequestStatus = exports.DataRightsChannel = exports.DataRight = exports.DataLegalBasis = exports.TransparencyStatus = exports.AccessRequestEventAction = exports.AccessRequestResolution = exports.AccessRequestStatus = exports.AccessRequestChannel = exports.DispositionKind = exports.FinalDisposition = exports.AuditAction = exports.AuditEntity = exports.DocumentAccessAction = exports.QualityMetricKey = exports.ServiceOutageKind = exports.WorkFolderItemKind = exports.HolidaySource = exports.TextSnippetSection = exports.ScanSessionStatus = exports.CaseFileAccessAction = exports.CaseFileTrackingAction = exports.CaseFileActorType = exports.CaseFileActorRelation = exports.CaseFileEntryKind = exports.CaseFileActuationType = exports.CaseFileIncorporationMechanism = exports.CaseFileStatus = exports.DocumentInstruction = exports.DocumentDeliveryOrigin = exports.DocumentRecipientType = exports.DocumentAttachmentType = exports.DocumentFlowStepType = exports.DocDigitalInboundStatus = exports.DocumentDispatchStatus = exports.CommunicationMeans = exports.DocumentOrigin = exports.DraftReviewStatus = exports.DraftReviewStage = exports.DocumentTrackingAction = exports.DocumentParticipantStatus = exports.DocumentParticipantRole = exports.DocumentAccessLevel = exports.DocumentStatus = exports.DocumentNumberingScope = exports.DocumentCategory = exports.DecreeKind = void 0;
|
|
5
|
-
exports.DraftingRequestEventAction = exports.DraftingRequestStatus = exports.NotificationMode = exports.MailAuthentication = exports.MailIntakeStatus = exports.DeskFileTarget = exports.DeskFileSource = exports.DataBreachNoticeMeans = exports.DataBreachEventAction = exports.DataBreachStatus = void 0;
|
|
5
|
+
exports.InternalNoteVerdict = exports.DraftingRequestEventAction = exports.DraftingRequestStatus = exports.NotificationMode = exports.MailAuthentication = exports.MailIntakeStatus = exports.DeskFileTarget = exports.DeskFileSource = exports.DataBreachNoticeMeans = exports.DataBreachEventAction = exports.DataBreachStatus = void 0;
|
|
6
6
|
exports.DecreeKind = {
|
|
7
7
|
Exempt: 'Exempt',
|
|
8
8
|
Affected: 'Affected',
|
|
@@ -407,3 +407,7 @@ exports.DraftingRequestEventAction = {
|
|
|
407
407
|
Cancelled: 'Cancelled',
|
|
408
408
|
DocumentLinked: 'DocumentLinked',
|
|
409
409
|
};
|
|
410
|
+
exports.InternalNoteVerdict = {
|
|
411
|
+
Ok: 'Ok',
|
|
412
|
+
PossibleRejection: 'PossibleRejection',
|
|
413
|
+
};
|
|
@@ -64,6 +64,15 @@ export interface DocumentActor {
|
|
|
64
64
|
* resuelve el gateway.
|
|
65
65
|
*/
|
|
66
66
|
inboxDepartmentIds?: string[];
|
|
67
|
+
/**
|
|
68
|
+
* Áreas que dirige hoy: las direcciones de que es titular (si no está subrogado) o subrogante en ejercicio, con sus
|
|
69
|
+
* departamentos, y los departamentos que encarga. Como jefatura del área responsable ve todos sus documentos desde que
|
|
70
|
+
* se envían, también los reservados. Lo resuelve el gateway.
|
|
71
|
+
*/
|
|
72
|
+
headOf?: {
|
|
73
|
+
directorateCodes: number[];
|
|
74
|
+
departmentIds: string[];
|
|
75
|
+
};
|
|
67
76
|
}
|
|
68
77
|
/** Bandeja desde la que se lista. Todas son del funcionario (`actor`), salvo `all`. */
|
|
69
78
|
export type DocumentBucket = 'created' | 'area' | 'sent' | 'toVisa' | 'toSign' | 'participated' | 'visaed' | 'signed' | 'reviewed' | 'toReview' | 'visaAll' | 'signAll' | 'reviewAll' | 'toFolio' | 'all';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type DocumentInternalNoteResponseEntity, type DocumentInternalNotesResponseEntity, type InternalReviewQueueItemEntity } from '../entities';
|
|
2
|
+
import { type InternalNoteVerdict } from '../base/entities';
|
|
2
3
|
/** Patrones NATS de `internalReview`: la revisión para la jefatura y sus observaciones internas. */
|
|
3
4
|
export declare const InternalReviewPatterns: {
|
|
4
5
|
readonly getQueue: "gestorDocumental.internalReview.getQueue";
|
|
@@ -52,6 +53,8 @@ export interface InternalReviewContract {
|
|
|
52
53
|
/** Para la jefatura de un departamento de esa dirección (sin él: la de la dirección). */
|
|
53
54
|
departmentId?: string | null;
|
|
54
55
|
text: string;
|
|
56
|
+
/** Lo que concluye la revisora: todo correcto o posible rechazo. La jefatura no marca. */
|
|
57
|
+
verdict?: InternalNoteVerdict | null;
|
|
55
58
|
actor: {
|
|
56
59
|
employeeId: string;
|
|
57
60
|
fullName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DocumentFolioDraft, type DocumentFolioStamp } from './folio';
|
|
2
|
-
import { type CommunicationMeans, DocumentAnnulledNumberEntity, DocumentAttachmentEntity, DocumentDeliveryEntity, DocumentEntity, DocumentParticipantEntity, DocumentRecipientEntity, type DocumentStatus, DocumentTrackingEntity, DocumentTypeEntity } from '../../base/entities';
|
|
2
|
+
import { type CommunicationMeans, DocumentAnnulledNumberEntity, DocumentAttachmentEntity, DocumentDeliveryEntity, DocumentEntity, DocumentParticipantEntity, DocumentRecipientEntity, type DocumentStatus, type InternalNoteVerdict, DocumentTrackingEntity, DocumentTypeEntity } from '../../base/entities';
|
|
3
3
|
import { type RichLetterhead, type RichPage, type RichSpacing, type RichTextStyle } from './richStyle';
|
|
4
4
|
import { type DocumentDraftingRequestEntity } from '../draftingRequest/draftingRequest.entity';
|
|
5
5
|
import { type DocumentStampPlacements, type StampBox } from './stampPlacement';
|
|
@@ -151,6 +151,17 @@ export interface DocumentGetAllResponseEntity {
|
|
|
151
151
|
* revisa. Solo en las bandejas de un funcionario.
|
|
152
152
|
*/
|
|
153
153
|
internalNotes?: number;
|
|
154
|
+
/**
|
|
155
|
+
* La última conclusión de quien revisa para la jefatura («Todo correcto» o «Posible rechazo»), entre las
|
|
156
|
+
* observaciones internas que puede leer quien consulta: le sirve para aprobar o rechazar varios de una vez.
|
|
157
|
+
*/
|
|
158
|
+
internalVerdict?: {
|
|
159
|
+
verdict: InternalNoteVerdict;
|
|
160
|
+
authorFullName: string;
|
|
161
|
+
createdAt: string;
|
|
162
|
+
} | null;
|
|
163
|
+
/** Borrador que espera su revisión: quién la tiene que hacer (para elegir varios y aprobarlos de una vez). */
|
|
164
|
+
draftReviewerEmployeeId?: string | null;
|
|
154
165
|
}
|
|
155
166
|
/** Una entrada de la bandeja de recibidos: la entrega y el documento al que corresponde. */
|
|
156
167
|
/** Semáforo de un plazo pendiente: a tiempo, por vencer (2 días hábiles o menos) o vencido. */
|
|
@@ -353,6 +364,11 @@ export interface DocumentGetSummaryResponseEntity {
|
|
|
353
364
|
pending: number;
|
|
354
365
|
overdue: number;
|
|
355
366
|
};
|
|
367
|
+
/** Oficina de Partes (solo a quien despacha): lo firmado que espera foliarse y lo foliado que espera despacharse. */
|
|
368
|
+
partsOffice?: {
|
|
369
|
+
toFolio: number;
|
|
370
|
+
toDispatch: number;
|
|
371
|
+
};
|
|
356
372
|
}
|
|
357
373
|
export interface DocumentCreateResponseEntity {
|
|
358
374
|
id: DocumentEntity['id'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DocumentStatus } from '../../base/entities';
|
|
1
|
+
import { type DocumentStatus, type InternalNoteVerdict } from '../../base/entities';
|
|
2
2
|
/** Qué espera de la jefatura un documento de la cola de revisión. */
|
|
3
3
|
export type InternalReviewTurn = 'Visa' | 'Signature' | 'DraftReview';
|
|
4
4
|
/** Documento que espera a la jefatura para la que revisa la funcionaria. */
|
|
@@ -35,6 +35,8 @@ export interface InternalNoteResponseEntity {
|
|
|
35
35
|
authorRole: 'Reviewer' | 'Head';
|
|
36
36
|
versionNumber: number;
|
|
37
37
|
text: string;
|
|
38
|
+
/** Lo que concluyó la revisora (solo en las suyas); `null` si solo comenta. */
|
|
39
|
+
verdict: InternalNoteVerdict | null;
|
|
38
40
|
createdAt: string;
|
|
39
41
|
}
|
|
40
42
|
export interface DocumentInternalNotesResponseEntity {
|
|
@@ -45,6 +47,8 @@ export interface DocumentInternalNotesResponseEntity {
|
|
|
45
47
|
directorateName: string;
|
|
46
48
|
departmentId: string | null;
|
|
47
49
|
departmentName: string | null;
|
|
50
|
+
/** Si escribe como quien revisa para la jefatura (puede marcar «Todo correcto» o «Posible rechazo») o como ella. */
|
|
51
|
+
role?: 'Reviewer' | 'Head';
|
|
48
52
|
}[];
|
|
49
53
|
}
|
|
50
54
|
export interface DocumentInternalNoteResponseEntity {
|
package/package.json
CHANGED
package/src/base/entities.ts
CHANGED
|
@@ -699,6 +699,16 @@ export const DraftingRequestEventAction = {
|
|
|
699
699
|
DocumentLinked: 'DocumentLinked',
|
|
700
700
|
} satisfies Record<string, DraftingRequestEventAction>;
|
|
701
701
|
|
|
702
|
+
/**
|
|
703
|
+
* Lo que concluye quien revisa para la jefatura: le sirve para aprobar o rechazar varios de una vez.
|
|
704
|
+
*/
|
|
705
|
+
export type InternalNoteVerdict = 'Ok' | 'PossibleRejection';
|
|
706
|
+
|
|
707
|
+
export const InternalNoteVerdict = {
|
|
708
|
+
Ok: 'Ok',
|
|
709
|
+
PossibleRejection: 'PossibleRejection',
|
|
710
|
+
} satisfies Record<string, InternalNoteVerdict>;
|
|
711
|
+
|
|
702
712
|
export interface DocumentTypeEntity {
|
|
703
713
|
id: string;
|
|
704
714
|
name: string;
|
|
@@ -1885,6 +1895,10 @@ export interface DocumentInternalNoteEntity {
|
|
|
1885
1895
|
authorFullName: string;
|
|
1886
1896
|
authorRole: string;
|
|
1887
1897
|
text: string;
|
|
1898
|
+
/**
|
|
1899
|
+
* Lo que concluye la revisora para su jefatura: todo correcto o posible rechazo. Sin valor, solo comenta.
|
|
1900
|
+
*/
|
|
1901
|
+
verdict?: InternalNoteVerdict | null;
|
|
1888
1902
|
createdAt: string;
|
|
1889
1903
|
}
|
|
1890
1904
|
|
|
@@ -111,6 +111,12 @@ export interface DocumentActor {
|
|
|
111
111
|
* resuelve el gateway.
|
|
112
112
|
*/
|
|
113
113
|
inboxDepartmentIds?: string[];
|
|
114
|
+
/**
|
|
115
|
+
* Áreas que dirige hoy: las direcciones de que es titular (si no está subrogado) o subrogante en ejercicio, con sus
|
|
116
|
+
* departamentos, y los departamentos que encarga. Como jefatura del área responsable ve todos sus documentos desde que
|
|
117
|
+
* se envían, también los reservados. Lo resuelve el gateway.
|
|
118
|
+
*/
|
|
119
|
+
headOf?: { directorateCodes: number[]; departmentIds: string[] };
|
|
114
120
|
}
|
|
115
121
|
|
|
116
122
|
/** Bandeja desde la que se lista. Todas son del funcionario (`actor`), salvo `all`. */
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
type DocumentInternalNotesResponseEntity,
|
|
4
4
|
type InternalReviewQueueItemEntity,
|
|
5
5
|
} from '../entities';
|
|
6
|
+
import { type InternalNoteVerdict } from '../base/entities';
|
|
6
7
|
|
|
7
8
|
/** Patrones NATS de `internalReview`: la revisión para la jefatura y sus observaciones internas. */
|
|
8
9
|
export const InternalReviewPatterns = {
|
|
@@ -48,6 +49,8 @@ export interface InternalReviewContract {
|
|
|
48
49
|
/** Para la jefatura de un departamento de esa dirección (sin él: la de la dirección). */
|
|
49
50
|
departmentId?: string | null;
|
|
50
51
|
text: string;
|
|
52
|
+
/** Lo que concluye la revisora: todo correcto o posible rechazo. La jefatura no marca. */
|
|
53
|
+
verdict?: InternalNoteVerdict | null;
|
|
51
54
|
actor: { employeeId: string; fullName: string };
|
|
52
55
|
scopes: InternalReviewScope[];
|
|
53
56
|
};
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
DocumentParticipantEntity,
|
|
9
9
|
DocumentRecipientEntity,
|
|
10
10
|
type DocumentStatus,
|
|
11
|
+
type InternalNoteVerdict,
|
|
11
12
|
DocumentTrackingEntity,
|
|
12
13
|
DocumentTypeEntity,
|
|
13
14
|
} from '../../base/entities';
|
|
@@ -176,6 +177,13 @@ export interface DocumentGetAllResponseEntity {
|
|
|
176
177
|
* revisa. Solo en las bandejas de un funcionario.
|
|
177
178
|
*/
|
|
178
179
|
internalNotes?: number;
|
|
180
|
+
/**
|
|
181
|
+
* La última conclusión de quien revisa para la jefatura («Todo correcto» o «Posible rechazo»), entre las
|
|
182
|
+
* observaciones internas que puede leer quien consulta: le sirve para aprobar o rechazar varios de una vez.
|
|
183
|
+
*/
|
|
184
|
+
internalVerdict?: { verdict: InternalNoteVerdict; authorFullName: string; createdAt: string } | null;
|
|
185
|
+
/** Borrador que espera su revisión: quién la tiene que hacer (para elegir varios y aprobarlos de una vez). */
|
|
186
|
+
draftReviewerEmployeeId?: string | null;
|
|
179
187
|
}
|
|
180
188
|
|
|
181
189
|
/** Una entrada de la bandeja de recibidos: la entrega y el documento al que corresponde. */
|
|
@@ -386,6 +394,8 @@ export interface DocumentGetSummaryResponseEntity {
|
|
|
386
394
|
pending: number;
|
|
387
395
|
overdue: number;
|
|
388
396
|
};
|
|
397
|
+
/** Oficina de Partes (solo a quien despacha): lo firmado que espera foliarse y lo foliado que espera despacharse. */
|
|
398
|
+
partsOffice?: { toFolio: number; toDispatch: number };
|
|
389
399
|
}
|
|
390
400
|
|
|
391
401
|
export interface DocumentCreateResponseEntity {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DocumentStatus } from '../../base/entities';
|
|
1
|
+
import { type DocumentStatus, type InternalNoteVerdict } from '../../base/entities';
|
|
2
2
|
|
|
3
3
|
/** Qué espera de la jefatura un documento de la cola de revisión. */
|
|
4
4
|
export type InternalReviewTurn = 'Visa' | 'Signature' | 'DraftReview';
|
|
@@ -38,6 +38,8 @@ export interface InternalNoteResponseEntity {
|
|
|
38
38
|
authorRole: 'Reviewer' | 'Head';
|
|
39
39
|
versionNumber: number;
|
|
40
40
|
text: string;
|
|
41
|
+
/** Lo que concluyó la revisora (solo en las suyas); `null` si solo comenta. */
|
|
42
|
+
verdict: InternalNoteVerdict | null;
|
|
41
43
|
createdAt: string;
|
|
42
44
|
}
|
|
43
45
|
|
|
@@ -49,6 +51,8 @@ export interface DocumentInternalNotesResponseEntity {
|
|
|
49
51
|
directorateName: string;
|
|
50
52
|
departmentId: string | null;
|
|
51
53
|
departmentName: string | null;
|
|
54
|
+
/** Si escribe como quien revisa para la jefatura (puede marcar «Todo correcto» o «Posible rechazo») o como ella. */
|
|
55
|
+
role?: 'Reviewer' | 'Head';
|
|
52
56
|
}[];
|
|
53
57
|
}
|
|
54
58
|
|