@muni-sanfer/types-gestor-documental 0.0.1-beta.67 → 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.
@@ -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
  };
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muni-sanfer/types-gestor-documental",
3
- "version": "0.0.1-beta.67",
3
+ "version": "0.0.1-beta.68",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -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;