@muni-sanfer/types-gestor-documental 0.0.1-beta.2 → 0.0.1-beta.20
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 +605 -1
- package/dist/base/entities.js +133 -1
- package/dist/contracts/archivalSeries.contract.d.ts +50 -0
- package/dist/contracts/archivalSeries.contract.js +11 -0
- package/dist/contracts/audit.contract.d.ts +32 -0
- package/dist/contracts/audit.contract.js +8 -0
- package/dist/contracts/caseFile.contract.d.ts +262 -0
- package/dist/contracts/caseFile.contract.js +26 -0
- package/dist/contracts/document.contract.d.ts +145 -2
- package/dist/contracts/document.contract.js +9 -0
- package/dist/contracts/documentType.contract.d.ts +24 -1
- package/dist/contracts/holiday.contract.d.ts +30 -0
- package/dist/contracts/holiday.contract.js +9 -0
- package/dist/contracts/index.d.ts +157 -1
- package/dist/contracts/index.js +39 -0
- package/dist/contracts/indicators.contract.d.ts +103 -0
- package/dist/contracts/indicators.contract.js +15 -0
- package/dist/contracts/issuingEntity.contract.d.ts +52 -0
- package/dist/contracts/issuingEntity.contract.js +11 -0
- package/dist/contracts/partsOffice.contract.d.ts +177 -0
- package/dist/contracts/partsOffice.contract.js +23 -0
- package/dist/contracts/procedure.contract.d.ts +50 -0
- package/dist/contracts/procedure.contract.js +11 -0
- package/dist/contracts/registerBook.contract.d.ts +27 -0
- package/dist/contracts/registerBook.contract.js +8 -0
- package/dist/contracts/scan.contract.d.ts +63 -0
- package/dist/contracts/scan.contract.js +12 -0
- package/dist/contracts/signatureBatch.contract.d.ts +109 -0
- package/dist/contracts/signatureBatch.contract.js +12 -0
- package/dist/contracts/textSnippet.contract.d.ts +51 -0
- package/dist/contracts/textSnippet.contract.js +11 -0
- package/dist/contracts/workFolder.contract.d.ts +114 -0
- package/dist/contracts/workFolder.contract.js +16 -0
- package/dist/entities/archivalSeries/archivalSeries.entity.d.ts +27 -0
- package/dist/entities/archivalSeries/archivalSeries.entity.js +2 -0
- package/dist/entities/archivalSeries/index.d.ts +1 -0
- package/dist/entities/archivalSeries/index.js +17 -0
- package/dist/entities/audit/audit.entity.d.ts +27 -0
- package/dist/entities/audit/audit.entity.js +2 -0
- package/dist/entities/audit/index.d.ts +1 -0
- package/dist/entities/audit/index.js +17 -0
- package/dist/entities/caseFile/caseFile.entity.d.ts +297 -0
- package/dist/entities/caseFile/caseFile.entity.js +2 -0
- package/dist/entities/caseFile/index.d.ts +1 -0
- package/dist/entities/caseFile/index.js +17 -0
- package/dist/entities/document/document.entity.d.ts +252 -0
- package/dist/entities/documentType/documentType.entity.d.ts +37 -1
- package/dist/entities/holiday/holiday.entity.d.ts +10 -0
- package/dist/entities/holiday/holiday.entity.js +2 -0
- package/dist/entities/holiday/index.d.ts +1 -0
- package/dist/entities/holiday/index.js +17 -0
- package/dist/entities/index.d.ts +13 -0
- package/dist/entities/index.js +13 -0
- package/dist/entities/indicators/index.d.ts +1 -0
- package/dist/entities/indicators/index.js +17 -0
- package/dist/entities/indicators/indicators.entity.d.ts +152 -0
- package/dist/entities/indicators/indicators.entity.js +2 -0
- package/dist/entities/issuingEntity/index.d.ts +1 -0
- package/dist/entities/issuingEntity/index.js +17 -0
- package/dist/entities/issuingEntity/issuingEntity.entity.d.ts +20 -0
- package/dist/entities/issuingEntity/issuingEntity.entity.js +2 -0
- package/dist/entities/partsOffice/index.d.ts +1 -0
- package/dist/entities/partsOffice/index.js +17 -0
- package/dist/entities/partsOffice/partsOffice.entity.d.ts +102 -0
- package/dist/entities/partsOffice/partsOffice.entity.js +2 -0
- package/dist/entities/procedure/index.d.ts +1 -0
- package/dist/entities/procedure/index.js +17 -0
- package/dist/entities/procedure/procedure.entity.d.ts +20 -0
- package/dist/entities/procedure/procedure.entity.js +2 -0
- package/dist/entities/registerBook/index.d.ts +1 -0
- package/dist/entities/registerBook/index.js +17 -0
- package/dist/entities/registerBook/registerBook.entity.d.ts +48 -0
- package/dist/entities/registerBook/registerBook.entity.js +2 -0
- package/dist/entities/scan/index.d.ts +1 -0
- package/dist/entities/scan/index.js +17 -0
- package/dist/entities/scan/scan.entity.d.ts +29 -0
- package/dist/entities/scan/scan.entity.js +2 -0
- package/dist/entities/signatureBatch/index.d.ts +1 -0
- package/dist/entities/signatureBatch/index.js +17 -0
- package/dist/entities/signatureBatch/signatureBatch.entity.d.ts +107 -0
- package/dist/entities/signatureBatch/signatureBatch.entity.js +2 -0
- package/dist/entities/textSnippet/index.d.ts +1 -0
- package/dist/entities/textSnippet/index.js +17 -0
- package/dist/entities/textSnippet/textSnippet.entity.d.ts +20 -0
- package/dist/entities/textSnippet/textSnippet.entity.js +2 -0
- package/dist/entities/workFolder/index.d.ts +1 -0
- package/dist/entities/workFolder/index.js +17 -0
- package/dist/entities/workFolder/workFolder.entity.d.ts +83 -0
- package/dist/entities/workFolder/workFolder.entity.js +2 -0
- package/package.json +1 -1
- package/src/base/entities.ts +714 -1
- package/src/contracts/archivalSeries.contract.ts +53 -0
- package/src/contracts/audit.contract.ts +30 -0
- package/src/contracts/caseFile.contract.ts +228 -0
- package/src/contracts/document.contract.ts +151 -2
- package/src/contracts/documentType.contract.ts +32 -2
- package/src/contracts/holiday.contract.ts +16 -0
- package/src/contracts/index.ts +54 -1
- package/src/contracts/indicators.contract.ts +80 -0
- package/src/contracts/issuingEntity.contract.ts +55 -0
- package/src/contracts/partsOffice.contract.ts +123 -0
- package/src/contracts/procedure.contract.ts +53 -0
- package/src/contracts/registerBook.contract.ts +24 -0
- package/src/contracts/scan.contract.ts +52 -0
- package/src/contracts/signatureBatch.contract.ts +96 -0
- package/src/contracts/textSnippet.contract.ts +53 -0
- package/src/contracts/workFolder.contract.ts +75 -0
- package/src/entities/archivalSeries/archivalSeries.entity.ts +32 -0
- package/src/entities/archivalSeries/index.ts +1 -0
- package/src/entities/audit/audit.entity.ts +30 -0
- package/src/entities/audit/index.ts +1 -0
- package/src/entities/caseFile/caseFile.entity.ts +321 -0
- package/src/entities/caseFile/index.ts +1 -0
- package/src/entities/document/document.entity.ts +250 -0
- package/src/entities/documentType/documentType.entity.ts +31 -1
- package/src/entities/holiday/holiday.entity.ts +11 -0
- package/src/entities/holiday/index.ts +1 -0
- package/src/entities/index.ts +13 -0
- package/src/entities/indicators/index.ts +1 -0
- package/src/entities/indicators/indicators.entity.ts +157 -0
- package/src/entities/issuingEntity/index.ts +1 -0
- package/src/entities/issuingEntity/issuingEntity.entity.ts +24 -0
- package/src/entities/partsOffice/index.ts +1 -0
- package/src/entities/partsOffice/partsOffice.entity.ts +107 -0
- package/src/entities/procedure/index.ts +1 -0
- package/src/entities/procedure/procedure.entity.ts +24 -0
- package/src/entities/registerBook/index.ts +1 -0
- package/src/entities/registerBook/registerBook.entity.ts +52 -0
- package/src/entities/scan/index.ts +1 -0
- package/src/entities/scan/scan.entity.ts +32 -0
- package/src/entities/signatureBatch/index.ts +1 -0
- package/src/entities/signatureBatch/signatureBatch.entity.ts +110 -0
- package/src/entities/textSnippet/index.ts +1 -0
- package/src/entities/textSnippet/textSnippet.entity.ts +24 -0
- package/src/entities/workFolder/index.ts +1 -0
- package/src/entities/workFolder/workFolder.entity.ts +84 -0
- package/tsconfig.json +1 -3
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./partsOffice.entity"), exports);
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { type DocumentDispatchResponseEntity, type DocumentExternalRecipientResponseEntity, type DocumentLinkEntity } from '../document';
|
|
2
|
+
/** Institución del Estado en DocDigital. */
|
|
3
|
+
export interface DocDigitalEntityEntity {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
/** Organismo al que pertenece (la entidad padre). */
|
|
7
|
+
organism: string | null;
|
|
8
|
+
}
|
|
9
|
+
/** Usuario habilitado de una institución en DocDigital. */
|
|
10
|
+
export interface DocDigitalUserEntity {
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
position: string | null;
|
|
14
|
+
}
|
|
15
|
+
export interface DocDigitalDocumentTypeEntity {
|
|
16
|
+
id: number;
|
|
17
|
+
name: string;
|
|
18
|
+
}
|
|
19
|
+
/** Si DocDigital está configurado en el gestor y cada cuánto se revisa lo recibido. */
|
|
20
|
+
export interface PartsOfficeStatusEntity {
|
|
21
|
+
configured: boolean;
|
|
22
|
+
syncMinutes: number;
|
|
23
|
+
}
|
|
24
|
+
/** Totales del Panel de Partes. */
|
|
25
|
+
export interface PartsOfficeSummaryEntity {
|
|
26
|
+
toDispatch: number;
|
|
27
|
+
received: number;
|
|
28
|
+
}
|
|
29
|
+
/** Documento firmado que va a otras instituciones: lo despacha Oficina de Partes. */
|
|
30
|
+
export interface PartsOfficeDispatchEntity extends DocumentDispatchResponseEntity {
|
|
31
|
+
document: DocumentLinkEntity & {
|
|
32
|
+
accessLevel: string;
|
|
33
|
+
};
|
|
34
|
+
externalRecipients: DocumentExternalRecipientResponseEntity[];
|
|
35
|
+
/** A nombre de quién sale: la entidad emisora del tipo documental o la municipalidad. */
|
|
36
|
+
issuerName: string;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
}
|
|
39
|
+
/** Documento que llegó por DocDigital. */
|
|
40
|
+
export interface PartsOfficeInboundEntity {
|
|
41
|
+
id: string;
|
|
42
|
+
docDigitalDocumentId: string;
|
|
43
|
+
status: 'Pending' | 'Registered' | 'Returned';
|
|
44
|
+
subject: string;
|
|
45
|
+
description: string | null;
|
|
46
|
+
folio: string | null;
|
|
47
|
+
folioDate: string | null;
|
|
48
|
+
typeName: string | null;
|
|
49
|
+
reserved: boolean;
|
|
50
|
+
/** Entidad propia a la que llegó (la municipalidad o una entidad emisora). */
|
|
51
|
+
recipientEntityName: string | null;
|
|
52
|
+
senderEntityName: string | null;
|
|
53
|
+
senderName: string | null;
|
|
54
|
+
senderPosition: string | null;
|
|
55
|
+
fileName: string | null;
|
|
56
|
+
hasFile: boolean;
|
|
57
|
+
attachments: {
|
|
58
|
+
name: string;
|
|
59
|
+
url: string | null;
|
|
60
|
+
hasFile: boolean;
|
|
61
|
+
}[];
|
|
62
|
+
createdAt: string;
|
|
63
|
+
registeredAt: string | null;
|
|
64
|
+
registeredByFullName: string | null;
|
|
65
|
+
acknowledgedAt: string | null;
|
|
66
|
+
acknowledgeError: string | null;
|
|
67
|
+
returnedAt: string | null;
|
|
68
|
+
returnedByFullName: string | null;
|
|
69
|
+
returnReason: string | null;
|
|
70
|
+
/** El documento con que quedó ingresado al gestor. */
|
|
71
|
+
document: {
|
|
72
|
+
id: string;
|
|
73
|
+
intakeNumber: number | null;
|
|
74
|
+
intakeYear: number | null;
|
|
75
|
+
} | null;
|
|
76
|
+
}
|
|
77
|
+
export interface PartsOfficeOkResponseEntity {
|
|
78
|
+
id: string;
|
|
79
|
+
ok: boolean;
|
|
80
|
+
/** Documento al que corresponde el despacho (al despachar o devolver). */
|
|
81
|
+
documentId?: string;
|
|
82
|
+
}
|
|
83
|
+
export interface PartsOfficeSyncResponseEntity {
|
|
84
|
+
/** Recibidos nuevos que se trajeron. */
|
|
85
|
+
created: number;
|
|
86
|
+
/** Los que no se pudieron traer (se reintentan en la próxima revisión). */
|
|
87
|
+
failed: number;
|
|
88
|
+
}
|
|
89
|
+
export interface PartsOfficeRegisterResponseEntity {
|
|
90
|
+
id: string;
|
|
91
|
+
documentId: string;
|
|
92
|
+
intakeNumber: number;
|
|
93
|
+
intakeYear: number;
|
|
94
|
+
/** `false` si DocDigital no aceptó el acuse de recibo: se puede reintentar. */
|
|
95
|
+
acknowledged: boolean;
|
|
96
|
+
ok: boolean;
|
|
97
|
+
}
|
|
98
|
+
/** Archivo de un recibido, ya copiado al gestor. */
|
|
99
|
+
export interface PartsOfficeFileEntity {
|
|
100
|
+
fileId: string;
|
|
101
|
+
fileName: string;
|
|
102
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './procedure.entity';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./procedure.entity"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ProcedureEntity } from '../../base/entities';
|
|
2
|
+
export interface ProcedureGetAllResponseEntity {
|
|
3
|
+
id: ProcedureEntity['id'];
|
|
4
|
+
name: ProcedureEntity['name'];
|
|
5
|
+
cpatId: ProcedureEntity['cpatId'];
|
|
6
|
+
cpatCode: ProcedureEntity['cpatCode'];
|
|
7
|
+
description: ProcedureEntity['description'];
|
|
8
|
+
enabled: ProcedureEntity['enabled'];
|
|
9
|
+
/** Cuántos expedientes pertenecen a este procedimiento. */
|
|
10
|
+
caseFiles: number;
|
|
11
|
+
}
|
|
12
|
+
export type ProcedureGetByIdResponseEntity = ProcedureGetAllResponseEntity;
|
|
13
|
+
export interface ProcedureCreateResponseEntity {
|
|
14
|
+
id: ProcedureEntity['id'];
|
|
15
|
+
ok: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface ProcedureUpdateResponseEntity {
|
|
18
|
+
id: ProcedureEntity['id'];
|
|
19
|
+
ok: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './registerBook.entity';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./registerBook.entity"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** Libro de registro: el de un tipo documental (sus números) o el de ingresos de Oficina de Partes. */
|
|
2
|
+
export type RegisterBookKind = 'documentType' | 'intake';
|
|
3
|
+
/**
|
|
4
|
+
* Estado de un número en el libro: vigente, en tramitación (numerado con la primera firma, aún sin todas las firmas),
|
|
5
|
+
* documento anulado, número anulado por un rechazo, o número sin registro en el gestor (un salto en la numeración).
|
|
6
|
+
*/
|
|
7
|
+
export type RegisterBookRowState = 'Valid' | 'InProgress' | 'Annulled' | 'NumberAnnulled' | 'Unused';
|
|
8
|
+
export interface RegisterBookRowEntity {
|
|
9
|
+
number: number;
|
|
10
|
+
/** Fecha del número (o del ingreso), en ISO 8601. `null` en un salto. */
|
|
11
|
+
date: string | null;
|
|
12
|
+
state: RegisterBookRowState;
|
|
13
|
+
documentId: string | null;
|
|
14
|
+
subject: string | null;
|
|
15
|
+
/** Quién redactó el documento (o, en el libro de ingresos, quién lo ingresó). */
|
|
16
|
+
author: string | null;
|
|
17
|
+
signers: string[];
|
|
18
|
+
/** Libro de ingresos: institución que lo envió y su folio. */
|
|
19
|
+
sender: string | null;
|
|
20
|
+
externalFolio: string | null;
|
|
21
|
+
/** Libro de ingresos: a quiénes se derivó. */
|
|
22
|
+
recipients: string[];
|
|
23
|
+
/** Despacho por DocDigital: «DocDigital N° 777001 · 14-10-2026». */
|
|
24
|
+
dispatch: string | null;
|
|
25
|
+
/** Motivo de la anulación (del documento o del número). */
|
|
26
|
+
observation: string | null;
|
|
27
|
+
/** Numeración compartida: tipo documental del número (`null` en un salto o si el libro es de un solo tipo). */
|
|
28
|
+
documentTypeName: string | null;
|
|
29
|
+
}
|
|
30
|
+
export interface RegisterBookEntity {
|
|
31
|
+
kind: RegisterBookKind;
|
|
32
|
+
/** «Decreto alcaldicio exento» o «Ingresos de Oficina de Partes». */
|
|
33
|
+
title: string;
|
|
34
|
+
/** Quién lleva el libro: la entidad emisora del tipo o la municipalidad. */
|
|
35
|
+
issuerName: string;
|
|
36
|
+
/** Numeración compartida: los tipos que numeran en la serie del libro (vacío si es de un solo tipo). */
|
|
37
|
+
series: string[];
|
|
38
|
+
year: number;
|
|
39
|
+
month: number | null;
|
|
40
|
+
rows: RegisterBookRowEntity[];
|
|
41
|
+
totals: Record<RegisterBookRowState, number>;
|
|
42
|
+
}
|
|
43
|
+
/** Libro exportado, listo para descargar. */
|
|
44
|
+
export interface RegisterBookExportEntity {
|
|
45
|
+
fileName: string;
|
|
46
|
+
contentType: string;
|
|
47
|
+
contentBase64: string;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './scan.entity';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./scan.entity"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** Sesión recién abierta: el token y el QR viajan solo aquí. */
|
|
2
|
+
export interface ScanSessionCreateResponseEntity {
|
|
3
|
+
id: string;
|
|
4
|
+
token: string;
|
|
5
|
+
/** Dirección que abre el celular, con el token. */
|
|
6
|
+
url: string;
|
|
7
|
+
/** El QR de esa dirección, como imagen PNG en data URL. */
|
|
8
|
+
qrDataUrl: string;
|
|
9
|
+
expiresAt: string;
|
|
10
|
+
}
|
|
11
|
+
/** Estado de la sesión, como lo ve en el escritorio quien la abrió. */
|
|
12
|
+
export interface ScanSessionResponseEntity {
|
|
13
|
+
id: string;
|
|
14
|
+
status: 'Open' | 'Ready';
|
|
15
|
+
pageCount: number;
|
|
16
|
+
expiresAt: string;
|
|
17
|
+
fileName: string | null;
|
|
18
|
+
}
|
|
19
|
+
export interface ScanSessionFileResponseEntity {
|
|
20
|
+
fileId: string;
|
|
21
|
+
fileName: string;
|
|
22
|
+
}
|
|
23
|
+
/** La sesión como la ve el celular. */
|
|
24
|
+
export interface ScanSessionPublicEntity {
|
|
25
|
+
status: 'Open' | 'Ready';
|
|
26
|
+
pageCount: number;
|
|
27
|
+
maxPages: number;
|
|
28
|
+
expiresAt: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './signatureBatch.entity';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./signatureBatch.entity"), exports);
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { type DocumentAccessLevel, type DocumentEntity, type DocumentParticipantRole, type DocumentStatus, type SignatureBatchEntity } from '../../base/entities';
|
|
2
|
+
import { type DocumentSignManyResponseEntity, type DocumentSignManyResultEntity } from '../document';
|
|
3
|
+
/**
|
|
4
|
+
* Estado de un lote, deducido del de sus documentos: en tramitación mientras alguno lo esté; devuelto si no queda
|
|
5
|
+
* ninguno en tramitación y alguno volvió a su redactor; finalizado si todos terminaron (o se anularon después).
|
|
6
|
+
*/
|
|
7
|
+
export type SignatureBatchStatus = 'InProgress' | 'Returned' | 'Finished';
|
|
8
|
+
/** Lista de lotes: los que esperan al funcionario, los que redactó o todos en que participa. */
|
|
9
|
+
export type SignatureBatchTab = 'pending' | 'created' | 'participated';
|
|
10
|
+
/** Cuántos documentos del lote hay en cada situación. */
|
|
11
|
+
export interface SignatureBatchCountsEntity {
|
|
12
|
+
total: number;
|
|
13
|
+
inProgress: number;
|
|
14
|
+
finished: number;
|
|
15
|
+
/** Devueltos a su redactor (rechazados), para corregirlos y reenviarlos. */
|
|
16
|
+
returned: number;
|
|
17
|
+
annulled: number;
|
|
18
|
+
}
|
|
19
|
+
export interface SignatureBatchGetAllResponseEntity {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
documentType: {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
26
|
+
createdByEmployeeId: string;
|
|
27
|
+
createdByFullName: string;
|
|
28
|
+
createdAt: SignatureBatchEntity['createdAt'];
|
|
29
|
+
status: SignatureBatchStatus;
|
|
30
|
+
counts: SignatureBatchCountsEntity;
|
|
31
|
+
/** Documentos del lote que esperan al funcionario que consulta, por rol. */
|
|
32
|
+
myPending: {
|
|
33
|
+
visa: number;
|
|
34
|
+
signature: number;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/** Un documento del lote, con su turno vigente. */
|
|
38
|
+
export interface SignatureBatchDocumentEntity {
|
|
39
|
+
id: string;
|
|
40
|
+
subject: string;
|
|
41
|
+
status: DocumentStatus;
|
|
42
|
+
correlative: number | null;
|
|
43
|
+
correlativeYear: number | null;
|
|
44
|
+
numberedAt: DocumentEntity['numberedAt'];
|
|
45
|
+
verificationCode: string | null;
|
|
46
|
+
originalFileName: string;
|
|
47
|
+
currentTurn: {
|
|
48
|
+
employeeId: string;
|
|
49
|
+
fullName: string;
|
|
50
|
+
role: DocumentParticipantRole;
|
|
51
|
+
} | null;
|
|
52
|
+
/** Si el turno vigente es del funcionario que consulta, qué le toca hacer. */
|
|
53
|
+
myTurn: DocumentParticipantRole | null;
|
|
54
|
+
}
|
|
55
|
+
export interface SignatureBatchGetByIdResponseEntity extends SignatureBatchGetAllResponseEntity {
|
|
56
|
+
documentType: {
|
|
57
|
+
id: string;
|
|
58
|
+
name: string;
|
|
59
|
+
abbreviation: string | null;
|
|
60
|
+
numbered: boolean;
|
|
61
|
+
};
|
|
62
|
+
keywords: string[];
|
|
63
|
+
accessLevel: DocumentAccessLevel;
|
|
64
|
+
hasSensitiveData: boolean;
|
|
65
|
+
/** Visadores y firmantes del lote, en orden (los del primer documento: todos parten con el mismo flujo). */
|
|
66
|
+
flow: {
|
|
67
|
+
role: DocumentParticipantRole;
|
|
68
|
+
stage: number;
|
|
69
|
+
employeeId: string;
|
|
70
|
+
fullName: string;
|
|
71
|
+
position: string | null;
|
|
72
|
+
}[];
|
|
73
|
+
documents: SignatureBatchDocumentEntity[];
|
|
74
|
+
}
|
|
75
|
+
/** A quién le quedó el turno después de una operación sobre el lote: para avisarle una sola vez por lote. */
|
|
76
|
+
export interface SignatureBatchTurnEntity {
|
|
77
|
+
employeeId: string;
|
|
78
|
+
fullName: string;
|
|
79
|
+
role: DocumentParticipantRole;
|
|
80
|
+
count: number;
|
|
81
|
+
}
|
|
82
|
+
/** Lo que el gateway necesita para avisar: el lote, su redactor, a quién le toca ahora y cuántos terminaron. */
|
|
83
|
+
export interface SignatureBatchOutcomeEntity {
|
|
84
|
+
id: string;
|
|
85
|
+
name: string;
|
|
86
|
+
createdByEmployeeId: string;
|
|
87
|
+
nextTurns: SignatureBatchTurnEntity[];
|
|
88
|
+
/** Documentos que quedaron finalizados con esta operación. */
|
|
89
|
+
finished: number;
|
|
90
|
+
}
|
|
91
|
+
export interface SignatureBatchCreateResponseEntity extends SignatureBatchOutcomeEntity {
|
|
92
|
+
ok: boolean;
|
|
93
|
+
documentIds: string[];
|
|
94
|
+
}
|
|
95
|
+
export interface SignatureBatchVisaResponseEntity extends SignatureBatchOutcomeEntity {
|
|
96
|
+
ok: boolean;
|
|
97
|
+
visaed: number;
|
|
98
|
+
/** Los que no se pudieron visar, con el motivo. */
|
|
99
|
+
failures: DocumentSignManyResultEntity[];
|
|
100
|
+
}
|
|
101
|
+
export type SignatureBatchSignResponseEntity = SignatureBatchOutcomeEntity & DocumentSignManyResponseEntity;
|
|
102
|
+
export interface SignatureBatchRejectResponseEntity extends SignatureBatchOutcomeEntity {
|
|
103
|
+
ok: boolean;
|
|
104
|
+
/** Documentos devueltos a su redactor. */
|
|
105
|
+
rejected: number;
|
|
106
|
+
observation: string;
|
|
107
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './textSnippet.entity';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./textSnippet.entity"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TextSnippetEntity } from '../../base/entities';
|
|
2
|
+
/** Texto de la biblioteca de vistos y cláusulas. */
|
|
3
|
+
export interface TextSnippetGetAllResponseEntity {
|
|
4
|
+
id: TextSnippetEntity['id'];
|
|
5
|
+
title: TextSnippetEntity['title'];
|
|
6
|
+
text: TextSnippetEntity['text'];
|
|
7
|
+
section: TextSnippetEntity['section'];
|
|
8
|
+
keywords: TextSnippetEntity['keywords'];
|
|
9
|
+
enabled: TextSnippetEntity['enabled'];
|
|
10
|
+
updatedAt: TextSnippetEntity['updatedAt'];
|
|
11
|
+
}
|
|
12
|
+
export type TextSnippetGetByIdResponseEntity = TextSnippetGetAllResponseEntity;
|
|
13
|
+
export interface TextSnippetCreateResponseEntity {
|
|
14
|
+
id: TextSnippetEntity['id'];
|
|
15
|
+
ok: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface TextSnippetUpdateResponseEntity {
|
|
18
|
+
id: TextSnippetEntity['id'];
|
|
19
|
+
ok: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './workFolder.entity';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./workFolder.entity"), exports);
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { type CaseFileActuationType, type DocumentAccessLevel, type DocumentStatus, type WorkFolderItemKind } from '../../base/entities';
|
|
2
|
+
export interface WorkFolderGetAllResponseEntity {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string | null;
|
|
6
|
+
ownerEmployeeId: string;
|
|
7
|
+
ownerFullName: string;
|
|
8
|
+
itemCount: number;
|
|
9
|
+
participantCount: number;
|
|
10
|
+
/** Expediente en que se convirtió: desde ahí la carpeta queda solo de consulta. */
|
|
11
|
+
caseFile: {
|
|
12
|
+
id: string;
|
|
13
|
+
code: string;
|
|
14
|
+
} | null;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
/** Quien consulta es su responsable. */
|
|
18
|
+
isOwner: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface WorkFolderItemResponseEntity {
|
|
21
|
+
id: string;
|
|
22
|
+
kind: WorkFolderItemKind;
|
|
23
|
+
title: string;
|
|
24
|
+
/** Documento del gestor (si es uno). */
|
|
25
|
+
document: {
|
|
26
|
+
id: string;
|
|
27
|
+
status: DocumentStatus;
|
|
28
|
+
documentType: {
|
|
29
|
+
name: string;
|
|
30
|
+
abbreviation: string | null;
|
|
31
|
+
};
|
|
32
|
+
correlative: number | null;
|
|
33
|
+
correlativeYear: number | null;
|
|
34
|
+
intakeNumber: number | null;
|
|
35
|
+
intakeYear: number | null;
|
|
36
|
+
} | null;
|
|
37
|
+
/** Archivo subido (si es uno). Se descarga por la carpeta, que comprueba el acceso. */
|
|
38
|
+
fileId: string | null;
|
|
39
|
+
fileName: string | null;
|
|
40
|
+
addedByEmployeeId: string;
|
|
41
|
+
addedByFullName: string;
|
|
42
|
+
createdAt: string;
|
|
43
|
+
/** Lo puede quitar quien consulta: el responsable o quien lo agregó, mientras no se convierta en expediente. */
|
|
44
|
+
canRemove: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface WorkFolderGetByIdResponseEntity extends WorkFolderGetAllResponseEntity {
|
|
47
|
+
participants: {
|
|
48
|
+
id: string;
|
|
49
|
+
employeeId: string;
|
|
50
|
+
fullName: string;
|
|
51
|
+
}[];
|
|
52
|
+
items: WorkFolderItemResponseEntity[];
|
|
53
|
+
/** Editar, compartir y convertir: solo el responsable, mientras no se haya convertido. */
|
|
54
|
+
canEdit: boolean;
|
|
55
|
+
/** Agregar ítems: el responsable y aquellos con quienes se compartió, mientras no se haya convertido. */
|
|
56
|
+
canAdd: boolean;
|
|
57
|
+
}
|
|
58
|
+
export interface WorkFolderWriteResponseEntity {
|
|
59
|
+
id: string;
|
|
60
|
+
ok: boolean;
|
|
61
|
+
}
|
|
62
|
+
/** La carpeta convertida en expediente: cuántos ítems entraron a su índice y cuántos no (documentos sin finalizar). */
|
|
63
|
+
export interface WorkFolderConvertResponseEntity {
|
|
64
|
+
id: string;
|
|
65
|
+
caseFileId: string;
|
|
66
|
+
code: string;
|
|
67
|
+
added: number;
|
|
68
|
+
skipped: number;
|
|
69
|
+
ok: boolean;
|
|
70
|
+
}
|
|
71
|
+
/** Metadatos del expediente que nace de una carpeta (los mismos de un expediente nuevo). */
|
|
72
|
+
export interface WorkFolderConvertInput {
|
|
73
|
+
title: string;
|
|
74
|
+
subject: string;
|
|
75
|
+
summary?: string | null;
|
|
76
|
+
procedureId: string;
|
|
77
|
+
accessLevel: DocumentAccessLevel;
|
|
78
|
+
hasSensitiveData: boolean;
|
|
79
|
+
/** Tipo de actuación con que entran los documentos al índice. */
|
|
80
|
+
actuationType: CaseFileActuationType;
|
|
81
|
+
/** Palabras clave de los archivos subidos (metadato obligatorio de cada actuación). */
|
|
82
|
+
keywords: string[];
|
|
83
|
+
}
|