@muni-sanfer/types-gestor-documental 0.0.1-beta.66 → 0.0.1-beta.68
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 +2 -0
- package/dist/contracts/document.contract.d.ts +20 -0
- package/dist/contracts/document.contract.js +1 -0
- package/dist/contracts/draftingRequest.contract.d.ts +8 -0
- package/dist/contracts/index.d.ts +1 -0
- package/dist/entities/draftingRequest/draftingRequest.entity.d.ts +3 -0
- package/package.json +1 -1
- package/src/base/entities.ts +2 -0
- package/src/contracts/document.contract.ts +9 -0
- package/src/contracts/draftingRequest.contract.ts +5 -0
- package/src/entities/draftingRequest/draftingRequest.entity.ts +3 -0
package/dist/base/entities.d.ts
CHANGED
|
@@ -1506,6 +1506,8 @@ export interface DraftingRequestEntity {
|
|
|
1506
1506
|
requesterDirectorateName?: string | null;
|
|
1507
1507
|
targetDirectorateCode: number;
|
|
1508
1508
|
targetDirectorateName: string;
|
|
1509
|
+
targetDepartmentId?: string | null;
|
|
1510
|
+
targetDepartmentName?: string | null;
|
|
1509
1511
|
status: DraftingRequestStatus;
|
|
1510
1512
|
takenByEmployeeId?: string | null;
|
|
1511
1513
|
takenByFullName?: string | null;
|
|
@@ -35,6 +35,7 @@ export declare const DocumentPatterns: {
|
|
|
35
35
|
readonly getEmailCopyFile: "gestorDocumental.document.getEmailCopyFile";
|
|
36
36
|
readonly claimReminders: "gestorDocumental.document.claimReminders";
|
|
37
37
|
readonly claimSlaReminders: "gestorDocumental.document.claimSlaReminders";
|
|
38
|
+
readonly checkVisaSignature: "gestorDocumental.document.checkVisaSignature";
|
|
38
39
|
};
|
|
39
40
|
/**
|
|
40
41
|
* Funcionario que hace la operación y sus áreas (direcciones y departamentos a los que pertenece o que dirige). Lo
|
|
@@ -459,6 +460,25 @@ export interface DocumentContract {
|
|
|
459
460
|
payload: Record<string, never>;
|
|
460
461
|
response: DocumentSlaReminderEntity[];
|
|
461
462
|
};
|
|
463
|
+
/**
|
|
464
|
+
* Comprueba que quien tiene la sesión puede visar con firma: firma con su certificado desatendido una página de
|
|
465
|
+
* prueba, que no se guarda. Si FirmaGob la rechaza, el error explica qué le falta.
|
|
466
|
+
*/
|
|
467
|
+
[DocumentPatterns.checkVisaSignature]: {
|
|
468
|
+
payload: {
|
|
469
|
+
signer: {
|
|
470
|
+
rut: string;
|
|
471
|
+
fullName: string;
|
|
472
|
+
role: string;
|
|
473
|
+
areaName: string;
|
|
474
|
+
};
|
|
475
|
+
actor: DocumentActor;
|
|
476
|
+
};
|
|
477
|
+
response: {
|
|
478
|
+
checkedAt: string;
|
|
479
|
+
initials: string;
|
|
480
|
+
};
|
|
481
|
+
};
|
|
462
482
|
[DocumentPatterns.getEmailCopyFile]: {
|
|
463
483
|
payload: {
|
|
464
484
|
token: string;
|
|
@@ -35,4 +35,5 @@ exports.DocumentPatterns = {
|
|
|
35
35
|
getEmailCopyFile: 'gestorDocumental.document.getEmailCopyFile',
|
|
36
36
|
claimReminders: 'gestorDocumental.document.claimReminders',
|
|
37
37
|
claimSlaReminders: 'gestorDocumental.document.claimSlaReminders',
|
|
38
|
+
checkVisaSignature: 'gestorDocumental.document.checkVisaSignature',
|
|
38
39
|
};
|
|
@@ -30,6 +30,9 @@ export interface DraftingRequestCreatePayload {
|
|
|
30
30
|
/** Dirección a la que se pide, con el nombre que le pone el gateway. */
|
|
31
31
|
targetDirectorateCode: number;
|
|
32
32
|
targetDirectorateName: string;
|
|
33
|
+
/** O un departamento de esa dirección: le llega solo a su equipo. */
|
|
34
|
+
targetDepartmentId?: string | null;
|
|
35
|
+
targetDepartmentName?: string | null;
|
|
33
36
|
/** Quienes la integran hoy, resueltos por el gateway (sin quien la pide). */
|
|
34
37
|
recipientEmployeeIds: string[];
|
|
35
38
|
requesterAreaName?: string | null;
|
|
@@ -57,6 +60,11 @@ export interface DraftingRequestContract {
|
|
|
57
60
|
box: DraftingRequestBox;
|
|
58
61
|
state?: 'open' | 'closed' | 'all';
|
|
59
62
|
search?: string;
|
|
63
|
+
/** Solo las pedidas a esta área (una dirección, con sus departamentos, o un departamento). */
|
|
64
|
+
area?: {
|
|
65
|
+
directorateCode?: number | null;
|
|
66
|
+
departmentId?: string | null;
|
|
67
|
+
} | null;
|
|
60
68
|
page?: number;
|
|
61
69
|
limit?: number;
|
|
62
70
|
actor: Pick<DraftingRequestActor, 'employeeId'>;
|
|
@@ -101,6 +101,7 @@ export declare const GestorDocumentalPatterns: {
|
|
|
101
101
|
readonly getEmailCopyFile: "gestorDocumental.document.getEmailCopyFile";
|
|
102
102
|
readonly claimReminders: "gestorDocumental.document.claimReminders";
|
|
103
103
|
readonly claimSlaReminders: "gestorDocumental.document.claimSlaReminders";
|
|
104
|
+
readonly checkVisaSignature: "gestorDocumental.document.checkVisaSignature";
|
|
104
105
|
};
|
|
105
106
|
readonly procedure: {
|
|
106
107
|
readonly getAll: "gestorDocumental.procedure.getAll";
|
|
@@ -26,6 +26,9 @@ export interface DraftingRequestListItemEntity {
|
|
|
26
26
|
requesterArea: DocumentResponsibleAreaEntity | null;
|
|
27
27
|
targetDirectorateCode: number;
|
|
28
28
|
targetDirectorateName: string;
|
|
29
|
+
/** Si se pidió a un departamento de esa dirección. */
|
|
30
|
+
targetDepartmentId: string | null;
|
|
31
|
+
targetDepartmentName: string | null;
|
|
29
32
|
takenByEmployeeId: string | null;
|
|
30
33
|
takenByFullName: string | null;
|
|
31
34
|
documentType: {
|
package/package.json
CHANGED
package/src/base/entities.ts
CHANGED
|
@@ -1791,6 +1791,8 @@ export interface DraftingRequestEntity {
|
|
|
1791
1791
|
requesterDirectorateName?: string | null;
|
|
1792
1792
|
targetDirectorateCode: number;
|
|
1793
1793
|
targetDirectorateName: string;
|
|
1794
|
+
targetDepartmentId?: string | null;
|
|
1795
|
+
targetDepartmentName?: string | null;
|
|
1794
1796
|
status: DraftingRequestStatus;
|
|
1795
1797
|
takenByEmployeeId?: string | null;
|
|
1796
1798
|
takenByFullName?: string | null;
|
|
@@ -75,6 +75,7 @@ export const DocumentPatterns = {
|
|
|
75
75
|
getEmailCopyFile: 'gestorDocumental.document.getEmailCopyFile',
|
|
76
76
|
claimReminders: 'gestorDocumental.document.claimReminders',
|
|
77
77
|
claimSlaReminders: 'gestorDocumental.document.claimSlaReminders',
|
|
78
|
+
checkVisaSignature: 'gestorDocumental.document.checkVisaSignature',
|
|
78
79
|
} as const;
|
|
79
80
|
|
|
80
81
|
/**
|
|
@@ -465,6 +466,14 @@ export interface DocumentContract {
|
|
|
465
466
|
payload: Record<string, never>;
|
|
466
467
|
response: DocumentSlaReminderEntity[];
|
|
467
468
|
};
|
|
469
|
+
/**
|
|
470
|
+
* Comprueba que quien tiene la sesión puede visar con firma: firma con su certificado desatendido una página de
|
|
471
|
+
* prueba, que no se guarda. Si FirmaGob la rechaza, el error explica qué le falta.
|
|
472
|
+
*/
|
|
473
|
+
[DocumentPatterns.checkVisaSignature]: {
|
|
474
|
+
payload: { signer: { rut: string; fullName: string; role: string; areaName: string }; actor: DocumentActor };
|
|
475
|
+
response: { checkedAt: string; initials: string };
|
|
476
|
+
};
|
|
468
477
|
[DocumentPatterns.getEmailCopyFile]: {
|
|
469
478
|
payload: { token: string };
|
|
470
479
|
response: DocumentPublicFileResponseEntity;
|
|
@@ -31,6 +31,9 @@ export interface DraftingRequestCreatePayload {
|
|
|
31
31
|
/** Dirección a la que se pide, con el nombre que le pone el gateway. */
|
|
32
32
|
targetDirectorateCode: number;
|
|
33
33
|
targetDirectorateName: string;
|
|
34
|
+
/** O un departamento de esa dirección: le llega solo a su equipo. */
|
|
35
|
+
targetDepartmentId?: string | null;
|
|
36
|
+
targetDepartmentName?: string | null;
|
|
34
37
|
/** Quienes la integran hoy, resueltos por el gateway (sin quien la pide). */
|
|
35
38
|
recipientEmployeeIds: string[];
|
|
36
39
|
requesterAreaName?: string | null;
|
|
@@ -54,6 +57,8 @@ export interface DraftingRequestContract {
|
|
|
54
57
|
box: DraftingRequestBox;
|
|
55
58
|
state?: 'open' | 'closed' | 'all';
|
|
56
59
|
search?: string;
|
|
60
|
+
/** Solo las pedidas a esta área (una dirección, con sus departamentos, o un departamento). */
|
|
61
|
+
area?: { directorateCode?: number | null; departmentId?: string | null } | null;
|
|
57
62
|
page?: number;
|
|
58
63
|
limit?: number;
|
|
59
64
|
actor: Pick<DraftingRequestActor, 'employeeId'>;
|
|
@@ -31,6 +31,9 @@ export interface DraftingRequestListItemEntity {
|
|
|
31
31
|
requesterArea: DocumentResponsibleAreaEntity | null;
|
|
32
32
|
targetDirectorateCode: number;
|
|
33
33
|
targetDirectorateName: string;
|
|
34
|
+
/** Si se pidió a un departamento de esa dirección. */
|
|
35
|
+
targetDepartmentId: string | null;
|
|
36
|
+
targetDepartmentName: string | null;
|
|
34
37
|
takenByEmployeeId: string | null;
|
|
35
38
|
takenByFullName: string | null;
|
|
36
39
|
documentType: { id: string; name: string } | null;
|