@muni-sanfer/types-gestor-documental 0.0.1-beta.7 → 0.0.1-beta.8
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/document.contract.d.ts +2 -0
- package/dist/contracts/signatureBatch.contract.d.ts +1 -0
- package/dist/entities/document/document.entity.d.ts +3 -0
- package/dist/entities/signatureBatch/signatureBatch.entity.d.ts +1 -0
- package/package.json +1 -1
- package/src/base/entities.ts +1 -0
- package/src/contracts/document.contract.ts +4 -0
- package/src/contracts/signatureBatch.contract.ts +2 -0
- package/src/entities/document/document.entity.ts +4 -0
- package/src/entities/signatureBatch/signatureBatch.entity.ts +7 -1
package/dist/base/entities.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ export interface DocumentWritePayload extends Pick<DocumentEntity, 'subject' | '
|
|
|
69
69
|
};
|
|
70
70
|
attachments?: Pick<DocumentAttachmentEntity, 'name' | 'type' | 'fileId' | 'url'>[];
|
|
71
71
|
visaEmployeeIds: string[];
|
|
72
|
+
visaStages?: number[] | null;
|
|
73
|
+
restartFlow?: boolean;
|
|
72
74
|
signatureEmployeeIds: string[];
|
|
73
75
|
signatureSheet?: boolean;
|
|
74
76
|
recipients?: DocumentRecipientInput[];
|
|
@@ -56,6 +56,7 @@ export interface SignatureBatchContract {
|
|
|
56
56
|
directorateCodeReference?: number | null;
|
|
57
57
|
departmentId?: string | null;
|
|
58
58
|
visaEmployeeIds?: string[];
|
|
59
|
+
visaStages?: number[] | null;
|
|
59
60
|
signatureEmployeeIds: string[];
|
|
60
61
|
signatureSheet?: boolean;
|
|
61
62
|
documents: {
|
|
@@ -10,6 +10,8 @@ export interface DocumentParticipantResponseEntity {
|
|
|
10
10
|
id: DocumentParticipantEntity['id'];
|
|
11
11
|
role: DocumentParticipantEntity['role'];
|
|
12
12
|
order: DocumentParticipantEntity['order'];
|
|
13
|
+
/** Los visadores de una misma etapa visan a la vez. */
|
|
14
|
+
stage: DocumentParticipantEntity['stage'];
|
|
13
15
|
status: DocumentParticipantEntity['status'];
|
|
14
16
|
employeeId: DocumentParticipantEntity['employeeId'];
|
|
15
17
|
fullName: DocumentParticipantEntity['fullName'];
|
|
@@ -100,6 +102,7 @@ export interface DocumentGetAllResponseEntity {
|
|
|
100
102
|
/** Con búsqueda de texto completo: el fragmento donde aparece lo buscado, con lo encontrado entre ⟦ y ⟧. */
|
|
101
103
|
snippet?: string | null;
|
|
102
104
|
currentParticipant: Pick<DocumentParticipantResponseEntity, 'role' | 'employeeId' | 'fullName'> | null;
|
|
105
|
+
otherCurrentCount: number;
|
|
103
106
|
distribution: {
|
|
104
107
|
total: number;
|
|
105
108
|
read: number;
|
|
@@ -65,6 +65,7 @@ export interface SignatureBatchGetByIdResponseEntity extends SignatureBatchGetAl
|
|
|
65
65
|
/** Visadores y firmantes del lote, en orden (los del primer documento: todos parten con el mismo flujo). */
|
|
66
66
|
flow: {
|
|
67
67
|
role: DocumentParticipantRole;
|
|
68
|
+
stage: number;
|
|
68
69
|
employeeId: string;
|
|
69
70
|
fullName: string;
|
|
70
71
|
position: string | null;
|
package/package.json
CHANGED
package/src/base/entities.ts
CHANGED
|
@@ -95,6 +95,10 @@ export interface DocumentWritePayload extends Pick<DocumentEntity, 'subject' | '
|
|
|
95
95
|
attachments?: Pick<DocumentAttachmentEntity, 'name' | 'type' | 'fileId' | 'url'>[];
|
|
96
96
|
// Funcionarios que visan y que firman, en el orden en que les toca. Primero visan todos y después firman.
|
|
97
97
|
visaEmployeeIds: string[];
|
|
98
|
+
// Etapa de cada visador, en su orden ([1, 1, 2]: los dos primeros visan a la vez). Sin etapas, visan en cadena.
|
|
99
|
+
visaStages?: number[] | null;
|
|
100
|
+
// Al reenviar un documento rechazado, pedir de nuevo las visaciones ya hechas en vez de seguir donde quedó.
|
|
101
|
+
restartFlow?: boolean;
|
|
98
102
|
signatureEmployeeIds: string[];
|
|
99
103
|
// Firmas y visaciones en una hoja aparte al final, en vez de al pie de la última página.
|
|
100
104
|
signatureSheet?: boolean;
|
|
@@ -57,6 +57,8 @@ export interface SignatureBatchContract {
|
|
|
57
57
|
directorateCodeReference?: number | null;
|
|
58
58
|
departmentId?: string | null;
|
|
59
59
|
visaEmployeeIds?: string[];
|
|
60
|
+
// Etapa de cada visador: los de una misma etapa visan a la vez.
|
|
61
|
+
visaStages?: number[] | null;
|
|
60
62
|
signatureEmployeeIds: string[];
|
|
61
63
|
signatureSheet?: boolean;
|
|
62
64
|
documents: { subject: string; file: { fileId: string; name: string } }[];
|
|
@@ -21,6 +21,8 @@ export interface DocumentParticipantResponseEntity {
|
|
|
21
21
|
id: DocumentParticipantEntity['id'];
|
|
22
22
|
role: DocumentParticipantEntity['role'];
|
|
23
23
|
order: DocumentParticipantEntity['order'];
|
|
24
|
+
/** Los visadores de una misma etapa visan a la vez. */
|
|
25
|
+
stage: DocumentParticipantEntity['stage'];
|
|
24
26
|
status: DocumentParticipantEntity['status'];
|
|
25
27
|
employeeId: DocumentParticipantEntity['employeeId'];
|
|
26
28
|
fullName: DocumentParticipantEntity['fullName'];
|
|
@@ -121,6 +123,8 @@ export interface DocumentGetAllResponseEntity {
|
|
|
121
123
|
snippet?: string | null;
|
|
122
124
|
// A quién le toca visar o firmar (null si el documento no está en tramitación).
|
|
123
125
|
currentParticipant: Pick<DocumentParticipantResponseEntity, 'role' | 'employeeId' | 'fullName'> | null;
|
|
126
|
+
// Cuántos más tienen el turno a la vez (visación en paralelo).
|
|
127
|
+
otherCurrentCount: number;
|
|
124
128
|
// A cuántos funcionarios llegó y cuántos ya lo abrieron (null si aún no se distribuye a nadie).
|
|
125
129
|
distribution: { total: number; read: number } | null;
|
|
126
130
|
}
|
|
@@ -60,7 +60,13 @@ export interface SignatureBatchGetByIdResponseEntity extends SignatureBatchGetAl
|
|
|
60
60
|
accessLevel: DocumentAccessLevel;
|
|
61
61
|
hasSensitiveData: boolean;
|
|
62
62
|
/** Visadores y firmantes del lote, en orden (los del primer documento: todos parten con el mismo flujo). */
|
|
63
|
-
flow: {
|
|
63
|
+
flow: {
|
|
64
|
+
role: DocumentParticipantRole;
|
|
65
|
+
stage: number;
|
|
66
|
+
employeeId: string;
|
|
67
|
+
fullName: string;
|
|
68
|
+
position: string | null;
|
|
69
|
+
}[];
|
|
64
70
|
documents: SignatureBatchDocumentEntity[];
|
|
65
71
|
}
|
|
66
72
|
|