@muni-sanfer/types-gestor-documental 0.0.1-beta.3 → 0.0.1-beta.30
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 +978 -1
- package/dist/base/entities.js +263 -1
- package/dist/contracts/accessRequest.contract.d.ts +109 -0
- package/dist/contracts/accessRequest.contract.js +12 -0
- package/dist/contracts/archivalSeries.contract.d.ts +56 -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/dataProtection.contract.d.ts +251 -0
- package/dist/contracts/dataProtection.contract.js +23 -0
- package/dist/contracts/desk.contract.d.ts +86 -0
- package/dist/contracts/desk.contract.js +13 -0
- package/dist/contracts/document.contract.d.ts +130 -2
- package/dist/contracts/document.contract.js +8 -0
- package/dist/contracts/documentType.contract.d.ts +11 -1
- package/dist/contracts/holiday.contract.d.ts +30 -0
- package/dist/contracts/holiday.contract.js +9 -0
- package/dist/contracts/index.d.ts +234 -1
- package/dist/contracts/index.js +60 -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 +263 -0
- package/dist/contracts/partsOffice.contract.js +27 -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/repositoryExport.contract.d.ts +57 -0
- package/dist/contracts/repositoryExport.contract.js +13 -0
- package/dist/contracts/retention.contract.d.ts +58 -0
- package/dist/contracts/retention.contract.js +11 -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/signatureCheck.contract.d.ts +14 -0
- package/dist/contracts/signatureCheck.contract.js +7 -0
- package/dist/contracts/textSnippet.contract.d.ts +51 -0
- package/dist/contracts/textSnippet.contract.js +11 -0
- package/dist/contracts/transparency.contract.d.ts +96 -0
- package/dist/contracts/transparency.contract.js +12 -0
- package/dist/contracts/workFolder.contract.d.ts +114 -0
- package/dist/contracts/workFolder.contract.js +16 -0
- package/dist/entities/accessRequest/accessRequest.entity.d.ts +73 -0
- package/dist/entities/accessRequest/accessRequest.entity.js +2 -0
- package/dist/entities/accessRequest/index.d.ts +1 -0
- package/dist/entities/accessRequest/index.js +17 -0
- package/dist/entities/archivalSeries/archivalSeries.entity.d.ts +32 -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 +302 -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/dataProtection/dataProtection.entity.d.ts +174 -0
- package/dist/entities/dataProtection/dataProtection.entity.js +2 -0
- package/dist/entities/dataProtection/index.d.ts +1 -0
- package/dist/entities/dataProtection/index.js +17 -0
- package/dist/entities/desk/desk.entity.d.ts +21 -0
- package/dist/entities/desk/desk.entity.js +2 -0
- package/dist/entities/desk/index.d.ts +1 -0
- package/dist/entities/desk/index.js +17 -0
- package/dist/entities/document/document.entity.d.ts +256 -1
- package/dist/entities/documentType/documentType.entity.d.ts +23 -0
- 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 +20 -0
- package/dist/entities/index.js +20 -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 +137 -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/repositoryExport/index.d.ts +1 -0
- package/dist/entities/repositoryExport/index.js +17 -0
- package/dist/entities/repositoryExport/repositoryExport.entity.d.ts +124 -0
- package/dist/entities/repositoryExport/repositoryExport.entity.js +2 -0
- package/dist/entities/retention/index.d.ts +1 -0
- package/dist/entities/retention/index.js +17 -0
- package/dist/entities/retention/retention.entity.d.ts +49 -0
- package/dist/entities/retention/retention.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/signatureCheck/index.d.ts +1 -0
- package/dist/entities/signatureCheck/index.js +17 -0
- package/dist/entities/signatureCheck/signatureCheck.entity.d.ts +49 -0
- package/dist/entities/signatureCheck/signatureCheck.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/transparency/index.d.ts +1 -0
- package/dist/entities/transparency/index.js +17 -0
- package/dist/entities/transparency/transparency.entity.d.ts +77 -0
- package/dist/entities/transparency/transparency.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 +1163 -1
- package/src/contracts/accessRequest.contract.ts +81 -0
- package/src/contracts/archivalSeries.contract.ts +59 -0
- package/src/contracts/audit.contract.ts +30 -0
- package/src/contracts/caseFile.contract.ts +228 -0
- package/src/contracts/dataProtection.contract.ts +195 -0
- package/src/contracts/desk.contract.ts +68 -0
- package/src/contracts/document.contract.ts +133 -2
- package/src/contracts/documentType.contract.ts +25 -3
- package/src/contracts/holiday.contract.ts +16 -0
- package/src/contracts/index.ts +82 -1
- package/src/contracts/indicators.contract.ts +80 -0
- package/src/contracts/issuingEntity.contract.ts +55 -0
- package/src/contracts/partsOffice.contract.ts +199 -0
- package/src/contracts/procedure.contract.ts +53 -0
- package/src/contracts/registerBook.contract.ts +24 -0
- package/src/contracts/repositoryExport.contract.ts +54 -0
- package/src/contracts/retention.contract.ts +44 -0
- package/src/contracts/scan.contract.ts +52 -0
- package/src/contracts/signatureBatch.contract.ts +96 -0
- package/src/contracts/signatureCheck.contract.ts +11 -0
- package/src/contracts/textSnippet.contract.ts +53 -0
- package/src/contracts/transparency.contract.ts +55 -0
- package/src/contracts/workFolder.contract.ts +75 -0
- package/src/entities/accessRequest/accessRequest.entity.ts +78 -0
- package/src/entities/accessRequest/index.ts +1 -0
- package/src/entities/archivalSeries/archivalSeries.entity.ts +37 -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 +326 -0
- package/src/entities/caseFile/index.ts +1 -0
- package/src/entities/dataProtection/dataProtection.entity.ts +185 -0
- package/src/entities/dataProtection/index.ts +1 -0
- package/src/entities/desk/desk.entity.ts +24 -0
- package/src/entities/desk/index.ts +1 -0
- package/src/entities/document/document.entity.ts +252 -0
- package/src/entities/documentType/documentType.entity.ts +16 -0
- package/src/entities/holiday/holiday.entity.ts +11 -0
- package/src/entities/holiday/index.ts +1 -0
- package/src/entities/index.ts +20 -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 +138 -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/repositoryExport/index.ts +1 -0
- package/src/entities/repositoryExport/repositoryExport.entity.ts +86 -0
- package/src/entities/retention/index.ts +1 -0
- package/src/entities/retention/retention.entity.ts +53 -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/signatureCheck/index.ts +1 -0
- package/src/entities/signatureCheck/signatureCheck.entity.ts +51 -0
- package/src/entities/textSnippet/index.ts +1 -0
- package/src/entities/textSnippet/textSnippet.entity.ts +24 -0
- package/src/entities/transparency/index.ts +1 -0
- package/src/entities/transparency/transparency.entity.ts +78 -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,103 @@
|
|
|
1
|
+
import { type IndicatorsFileEntity, type ManagementIndicatorsEntity, type QualityMetricSettingResponseEntity, type QualityReportEntity, type ServiceOutageRemoveResponseEntity, type ServiceOutageResponseEntity } from '../entities';
|
|
2
|
+
import { type QualityMetricKey, type ServiceOutageKind } from '../base/entities';
|
|
3
|
+
/** Patrones NATS de `indicators`: indicadores de gestión y Plan de Mejora Continua (DS 11/2023). */
|
|
4
|
+
export declare const IndicatorsPatterns: {
|
|
5
|
+
readonly getManagement: "gestorDocumental.indicators.getManagement";
|
|
6
|
+
readonly getQuality: "gestorDocumental.indicators.getQuality";
|
|
7
|
+
readonly export: "gestorDocumental.indicators.export";
|
|
8
|
+
readonly updateQualityMetric: "gestorDocumental.indicators.updateQualityMetric";
|
|
9
|
+
readonly getOutages: "gestorDocumental.indicators.getOutages";
|
|
10
|
+
readonly createOutage: "gestorDocumental.indicators.createOutage";
|
|
11
|
+
readonly updateOutage: "gestorDocumental.indicators.updateOutage";
|
|
12
|
+
readonly removeOutage: "gestorDocumental.indicators.removeOutage";
|
|
13
|
+
readonly getOutageCertificate: "gestorDocumental.indicators.getOutageCertificate";
|
|
14
|
+
};
|
|
15
|
+
/** Período: días de Chile «AAAA-MM-DD», hasta dos años. */
|
|
16
|
+
export interface IndicatorsPeriodQuery {
|
|
17
|
+
from: string;
|
|
18
|
+
to: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ManagementIndicatorsQuery extends IndicatorsPeriodQuery {
|
|
21
|
+
documentTypeId?: string | null;
|
|
22
|
+
directorateCode?: number | null;
|
|
23
|
+
}
|
|
24
|
+
export interface ServiceOutageInput {
|
|
25
|
+
kind: ServiceOutageKind;
|
|
26
|
+
startedAt: string;
|
|
27
|
+
endedAt?: string | null;
|
|
28
|
+
cause: string;
|
|
29
|
+
affectedServices?: string | null;
|
|
30
|
+
}
|
|
31
|
+
export interface IndicatorsContract {
|
|
32
|
+
[IndicatorsPatterns.getManagement]: {
|
|
33
|
+
payload: ManagementIndicatorsQuery;
|
|
34
|
+
response: ManagementIndicatorsEntity;
|
|
35
|
+
};
|
|
36
|
+
[IndicatorsPatterns.getQuality]: {
|
|
37
|
+
payload: IndicatorsPeriodQuery;
|
|
38
|
+
response: QualityReportEntity;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Indicadores y Plan de Mejora en una planilla Excel. `generatedBy`: quién la descarga. `unitNames`: nombre de cada
|
|
42
|
+
* unidad (`c:<código de dirección>` o `d:<id de departamento>`), que el ms no conoce.
|
|
43
|
+
*/
|
|
44
|
+
[IndicatorsPatterns.export]: {
|
|
45
|
+
payload: ManagementIndicatorsQuery & {
|
|
46
|
+
generatedBy: string;
|
|
47
|
+
unitNames?: Record<string, string>;
|
|
48
|
+
};
|
|
49
|
+
response: IndicatorsFileEntity;
|
|
50
|
+
};
|
|
51
|
+
/** Umbral y, en las métricas declaradas, su valor y respaldo. */
|
|
52
|
+
[IndicatorsPatterns.updateQualityMetric]: {
|
|
53
|
+
payload: {
|
|
54
|
+
key: QualityMetricKey;
|
|
55
|
+
threshold: number;
|
|
56
|
+
declaredValue?: number | null;
|
|
57
|
+
declaredNote?: string | null;
|
|
58
|
+
actor: {
|
|
59
|
+
fullName: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
response: QualityMetricSettingResponseEntity;
|
|
63
|
+
};
|
|
64
|
+
[IndicatorsPatterns.getOutages]: {
|
|
65
|
+
payload: {
|
|
66
|
+
year: number;
|
|
67
|
+
};
|
|
68
|
+
response: ServiceOutageResponseEntity[];
|
|
69
|
+
};
|
|
70
|
+
[IndicatorsPatterns.createOutage]: {
|
|
71
|
+
payload: ServiceOutageInput & {
|
|
72
|
+
actor: {
|
|
73
|
+
employeeId: string;
|
|
74
|
+
fullName: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
response: ServiceOutageResponseEntity;
|
|
78
|
+
};
|
|
79
|
+
[IndicatorsPatterns.updateOutage]: {
|
|
80
|
+
payload: ServiceOutageInput & {
|
|
81
|
+
id: string;
|
|
82
|
+
actor: {
|
|
83
|
+
employeeId: string;
|
|
84
|
+
fullName: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
response: ServiceOutageResponseEntity;
|
|
88
|
+
};
|
|
89
|
+
[IndicatorsPatterns.removeOutage]: {
|
|
90
|
+
payload: {
|
|
91
|
+
id: string;
|
|
92
|
+
};
|
|
93
|
+
response: ServiceOutageRemoveResponseEntity;
|
|
94
|
+
};
|
|
95
|
+
/** Certificado de indisponibilidad (DS 10/2023) en PDF, de una caída ya terminada. */
|
|
96
|
+
[IndicatorsPatterns.getOutageCertificate]: {
|
|
97
|
+
payload: {
|
|
98
|
+
id: string;
|
|
99
|
+
generatedBy: string;
|
|
100
|
+
};
|
|
101
|
+
response: IndicatorsFileEntity;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IndicatorsPatterns = void 0;
|
|
4
|
+
/** Patrones NATS de `indicators`: indicadores de gestión y Plan de Mejora Continua (DS 11/2023). */
|
|
5
|
+
exports.IndicatorsPatterns = {
|
|
6
|
+
getManagement: 'gestorDocumental.indicators.getManagement',
|
|
7
|
+
getQuality: 'gestorDocumental.indicators.getQuality',
|
|
8
|
+
export: 'gestorDocumental.indicators.export',
|
|
9
|
+
updateQualityMetric: 'gestorDocumental.indicators.updateQualityMetric',
|
|
10
|
+
getOutages: 'gestorDocumental.indicators.getOutages',
|
|
11
|
+
createOutage: 'gestorDocumental.indicators.createOutage',
|
|
12
|
+
updateOutage: 'gestorDocumental.indicators.updateOutage',
|
|
13
|
+
removeOutage: 'gestorDocumental.indicators.removeOutage',
|
|
14
|
+
getOutageCertificate: 'gestorDocumental.indicators.getOutageCertificate',
|
|
15
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type IssuingEntityEntity } from '../base/entities';
|
|
2
|
+
import { type IssuingEntityCreateResponseEntity, type IssuingEntityGetAllResponseEntity, type IssuingEntityGetByIdResponseEntity, type IssuingEntityUpdateResponseEntity } from '../entities';
|
|
3
|
+
import { type RpcPage } from './contract';
|
|
4
|
+
/** Patrones NATS de `issuingEntity`: `<servicio>.<recurso>.<acción>`. */
|
|
5
|
+
export declare const IssuingEntityPatterns: {
|
|
6
|
+
readonly getAll: "gestorDocumental.issuingEntity.getAll";
|
|
7
|
+
readonly getById: "gestorDocumental.issuingEntity.getById";
|
|
8
|
+
readonly create: "gestorDocumental.issuingEntity.create";
|
|
9
|
+
readonly update: "gestorDocumental.issuingEntity.update";
|
|
10
|
+
readonly setEnabled: "gestorDocumental.issuingEntity.setEnabled";
|
|
11
|
+
};
|
|
12
|
+
/** Datos de una entidad emisora al crearla o editarla. */
|
|
13
|
+
export interface IssuingEntityWritePayload {
|
|
14
|
+
name: string;
|
|
15
|
+
shortName?: string | null;
|
|
16
|
+
/** Direcciones (código de caschile) cuyos funcionarios actúan por la entidad. */
|
|
17
|
+
directorateCodeReferences: number[];
|
|
18
|
+
/** Su entidad en DocDigital, entre las asociadas a las credenciales del gestor. */
|
|
19
|
+
docDigitalEntityId?: number | null;
|
|
20
|
+
enabled?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface IssuingEntityContract {
|
|
23
|
+
[IssuingEntityPatterns.getAll]: {
|
|
24
|
+
payload: {
|
|
25
|
+
pagination?: {
|
|
26
|
+
page?: number;
|
|
27
|
+
limit?: number;
|
|
28
|
+
};
|
|
29
|
+
filters?: {
|
|
30
|
+
search?: string;
|
|
31
|
+
enabled?: boolean;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
response: RpcPage<IssuingEntityGetAllResponseEntity[]>;
|
|
35
|
+
};
|
|
36
|
+
[IssuingEntityPatterns.getById]: {
|
|
37
|
+
payload: Pick<IssuingEntityEntity, 'id'>;
|
|
38
|
+
response: IssuingEntityGetByIdResponseEntity;
|
|
39
|
+
};
|
|
40
|
+
[IssuingEntityPatterns.create]: {
|
|
41
|
+
payload: IssuingEntityWritePayload;
|
|
42
|
+
response: IssuingEntityCreateResponseEntity;
|
|
43
|
+
};
|
|
44
|
+
[IssuingEntityPatterns.update]: {
|
|
45
|
+
payload: IssuingEntityWritePayload & Pick<IssuingEntityEntity, 'id'>;
|
|
46
|
+
response: IssuingEntityUpdateResponseEntity;
|
|
47
|
+
};
|
|
48
|
+
[IssuingEntityPatterns.setEnabled]: {
|
|
49
|
+
payload: Pick<IssuingEntityEntity, 'id' | 'enabled'>;
|
|
50
|
+
response: IssuingEntityUpdateResponseEntity;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IssuingEntityPatterns = void 0;
|
|
4
|
+
/** Patrones NATS de `issuingEntity`: `<servicio>.<recurso>.<acción>`. */
|
|
5
|
+
exports.IssuingEntityPatterns = {
|
|
6
|
+
getAll: 'gestorDocumental.issuingEntity.getAll',
|
|
7
|
+
getById: 'gestorDocumental.issuingEntity.getById',
|
|
8
|
+
create: 'gestorDocumental.issuingEntity.create',
|
|
9
|
+
update: 'gestorDocumental.issuingEntity.update',
|
|
10
|
+
setEnabled: 'gestorDocumental.issuingEntity.setEnabled',
|
|
11
|
+
};
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { type CommunicationMeans, type DocumentAccessLevel, type DocumentInstruction } from '../base/entities';
|
|
2
|
+
import { type CaseFileAddEntryResponseEntity, type DocDigitalDocumentTypeEntity, type DocDigitalEntityEntity, type PartsOfficeInboundEntity, type DocDigitalUserEntity, type EnablementPersonInput, type PartsOfficeEnablementEntity, type PartsOfficeDispatchEntity, type PartsOfficeFileEntity, type PartsOfficeOkResponseEntity, type PartsOfficeRegisterResponseEntity, type PartsOfficeStatusEntity, type PartsOfficeSummaryEntity, type PartsOfficeSyncResponseEntity } from '../entities';
|
|
3
|
+
import { type RpcPage } from './contract';
|
|
4
|
+
import { type DocumentActor, type DocumentExternalRecipientInput } from './document.contract';
|
|
5
|
+
/** Patrones NATS de `partsOffice` (Oficina de Partes y DocDigital): `<servicio>.<recurso>.<acción>`. */
|
|
6
|
+
export declare const PartsOfficePatterns: {
|
|
7
|
+
readonly getStatus: "gestorDocumental.partsOffice.getStatus";
|
|
8
|
+
readonly getSummary: "gestorDocumental.partsOffice.getSummary";
|
|
9
|
+
readonly getEntities: "gestorDocumental.partsOffice.getEntities";
|
|
10
|
+
readonly getOwnEntities: "gestorDocumental.partsOffice.getOwnEntities";
|
|
11
|
+
readonly getUsers: "gestorDocumental.partsOffice.getUsers";
|
|
12
|
+
readonly getDocumentTypes: "gestorDocumental.partsOffice.getDocumentTypes";
|
|
13
|
+
readonly getDispatches: "gestorDocumental.partsOffice.getDispatches";
|
|
14
|
+
readonly dispatch: "gestorDocumental.partsOffice.dispatch";
|
|
15
|
+
readonly returnDispatch: "gestorDocumental.partsOffice.returnDispatch";
|
|
16
|
+
readonly resendDispatch: "gestorDocumental.partsOffice.resendDispatch";
|
|
17
|
+
readonly getDispatchFile: "gestorDocumental.partsOffice.getDispatchFile";
|
|
18
|
+
readonly getInbound: "gestorDocumental.partsOffice.getInbound";
|
|
19
|
+
readonly syncInbound: "gestorDocumental.partsOffice.syncInbound";
|
|
20
|
+
readonly registerInbound: "gestorDocumental.partsOffice.registerInbound";
|
|
21
|
+
readonly acknowledgeInbound: "gestorDocumental.partsOffice.acknowledgeInbound";
|
|
22
|
+
readonly returnInbound: "gestorDocumental.partsOffice.returnInbound";
|
|
23
|
+
readonly getInboundFile: "gestorDocumental.partsOffice.getInboundFile";
|
|
24
|
+
readonly checkEnablement: "gestorDocumental.partsOffice.checkEnablement";
|
|
25
|
+
readonly dispatchByContingency: "gestorDocumental.partsOffice.dispatchByContingency";
|
|
26
|
+
readonly registerManualIntake: "gestorDocumental.partsOffice.registerManualIntake";
|
|
27
|
+
readonly addCaseFileReceipt: "gestorDocumental.partsOffice.addCaseFileReceipt";
|
|
28
|
+
};
|
|
29
|
+
/** Destinatario interno de un ingreso, ya resuelto por el gateway (las áreas con sus integrantes). */
|
|
30
|
+
export type PartsOfficeRecipientInput = {
|
|
31
|
+
type: 'Employee';
|
|
32
|
+
employeeId: string;
|
|
33
|
+
} | {
|
|
34
|
+
type: 'Directorate';
|
|
35
|
+
directorateCodeReference: number;
|
|
36
|
+
name: string;
|
|
37
|
+
memberEmployeeIds: string[];
|
|
38
|
+
} | {
|
|
39
|
+
type: 'Department';
|
|
40
|
+
departmentId: string;
|
|
41
|
+
name: string;
|
|
42
|
+
memberEmployeeIds: string[];
|
|
43
|
+
};
|
|
44
|
+
interface IListPayload<S> {
|
|
45
|
+
pagination?: {
|
|
46
|
+
page?: number;
|
|
47
|
+
limit?: number;
|
|
48
|
+
};
|
|
49
|
+
filters?: {
|
|
50
|
+
search?: string;
|
|
51
|
+
status?: S;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/** Lo que llegó fuera de DocDigital y Oficina de Partes ingresa a mano. */
|
|
55
|
+
export interface ManualIntakePayload {
|
|
56
|
+
file: {
|
|
57
|
+
fileId: string;
|
|
58
|
+
name: string;
|
|
59
|
+
};
|
|
60
|
+
attachments?: {
|
|
61
|
+
fileId: string;
|
|
62
|
+
name: string;
|
|
63
|
+
}[];
|
|
64
|
+
means: CommunicationMeans;
|
|
65
|
+
/** Cuándo llegó (ISO); sin él, ahora. */
|
|
66
|
+
receivedAt?: string | null;
|
|
67
|
+
senderEntityName: string;
|
|
68
|
+
senderName?: string | null;
|
|
69
|
+
externalFolio?: string | null;
|
|
70
|
+
externalDate?: string | null;
|
|
71
|
+
subject: string;
|
|
72
|
+
documentTypeId: string;
|
|
73
|
+
keywords: string[];
|
|
74
|
+
accessLevel?: DocumentAccessLevel;
|
|
75
|
+
hasSensitiveData?: boolean;
|
|
76
|
+
recipients: unknown[];
|
|
77
|
+
instruction: DocumentInstruction;
|
|
78
|
+
note?: string | null;
|
|
79
|
+
dueAt?: string | null;
|
|
80
|
+
dueBusinessDays?: number | null;
|
|
81
|
+
actor: DocumentActor;
|
|
82
|
+
}
|
|
83
|
+
export interface PartsOfficeContract {
|
|
84
|
+
[PartsOfficePatterns.getStatus]: {
|
|
85
|
+
payload: Record<string, never>;
|
|
86
|
+
response: PartsOfficeStatusEntity;
|
|
87
|
+
};
|
|
88
|
+
[PartsOfficePatterns.getSummary]: {
|
|
89
|
+
payload: Record<string, never>;
|
|
90
|
+
response: PartsOfficeSummaryEntity;
|
|
91
|
+
};
|
|
92
|
+
/** Directorio de DocDigital: instituciones por nombre. */
|
|
93
|
+
[PartsOfficePatterns.getEntities]: {
|
|
94
|
+
payload: {
|
|
95
|
+
search?: string;
|
|
96
|
+
};
|
|
97
|
+
response: DocDigitalEntityEntity[];
|
|
98
|
+
};
|
|
99
|
+
/** Entidades asociadas a las credenciales del gestor: la del municipio y las de sus entidades emisoras. */
|
|
100
|
+
[PartsOfficePatterns.getOwnEntities]: {
|
|
101
|
+
payload: Record<string, never>;
|
|
102
|
+
response: DocDigitalEntityEntity[];
|
|
103
|
+
};
|
|
104
|
+
[PartsOfficePatterns.getUsers]: {
|
|
105
|
+
payload: {
|
|
106
|
+
entityId: number;
|
|
107
|
+
search?: string;
|
|
108
|
+
};
|
|
109
|
+
response: DocDigitalUserEntity[];
|
|
110
|
+
};
|
|
111
|
+
[PartsOfficePatterns.getDocumentTypes]: {
|
|
112
|
+
payload: Record<string, never>;
|
|
113
|
+
response: DocDigitalDocumentTypeEntity[];
|
|
114
|
+
};
|
|
115
|
+
[PartsOfficePatterns.getDispatches]: {
|
|
116
|
+
payload: IListPayload<'Pending' | 'Dispatched' | 'Returned'>;
|
|
117
|
+
response: RpcPage<PartsOfficeDispatchEntity[]>;
|
|
118
|
+
};
|
|
119
|
+
/** Despacha por DocDigital, con el número del documento como folio. `operatorRun`: RUN de quien despacha. */
|
|
120
|
+
[PartsOfficePatterns.dispatch]: {
|
|
121
|
+
payload: {
|
|
122
|
+
id: string;
|
|
123
|
+
docDigitalTypeId: number;
|
|
124
|
+
operatorRun?: string | null;
|
|
125
|
+
actor: DocumentActor;
|
|
126
|
+
};
|
|
127
|
+
response: PartsOfficeOkResponseEntity & {
|
|
128
|
+
docDigitalDocumentId: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
/** Devuelve el despacho al redactor, con el motivo (por ejemplo, un destinatario equivocado). */
|
|
132
|
+
[PartsOfficePatterns.returnDispatch]: {
|
|
133
|
+
payload: {
|
|
134
|
+
id: string;
|
|
135
|
+
reason: string;
|
|
136
|
+
actor: DocumentActor;
|
|
137
|
+
};
|
|
138
|
+
response: PartsOfficeOkResponseEntity;
|
|
139
|
+
};
|
|
140
|
+
/** El redactor corrige las instituciones de destino de un despacho devuelto y lo envía de nuevo a Partes. */
|
|
141
|
+
[PartsOfficePatterns.resendDispatch]: {
|
|
142
|
+
payload: {
|
|
143
|
+
id: string;
|
|
144
|
+
externalRecipients: DocumentExternalRecipientInput[];
|
|
145
|
+
actor: DocumentActor;
|
|
146
|
+
};
|
|
147
|
+
response: PartsOfficeOkResponseEntity;
|
|
148
|
+
};
|
|
149
|
+
/** PDF firmado de un documento por despachar, para que Oficina de Partes lo revise. */
|
|
150
|
+
[PartsOfficePatterns.getDispatchFile]: {
|
|
151
|
+
payload: {
|
|
152
|
+
id: string;
|
|
153
|
+
receipt?: boolean;
|
|
154
|
+
};
|
|
155
|
+
response: PartsOfficeFileEntity;
|
|
156
|
+
};
|
|
157
|
+
[PartsOfficePatterns.getInbound]: {
|
|
158
|
+
payload: IListPayload<'Pending' | 'Registered' | 'Returned'>;
|
|
159
|
+
response: RpcPage<PartsOfficeInboundEntity[]>;
|
|
160
|
+
};
|
|
161
|
+
/** Trae de DocDigital lo recibido que aún no tiene acuse de recibo. */
|
|
162
|
+
[PartsOfficePatterns.syncInbound]: {
|
|
163
|
+
payload: Record<string, never>;
|
|
164
|
+
response: PartsOfficeSyncResponseEntity;
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Ingresa un recibido al gestor: le da folio de ingreso, lo deriva a quienes corresponda y da el acuse de recibo
|
|
168
|
+
* en DocDigital.
|
|
169
|
+
*/
|
|
170
|
+
[PartsOfficePatterns.registerInbound]: {
|
|
171
|
+
payload: {
|
|
172
|
+
id: string;
|
|
173
|
+
documentTypeId: string;
|
|
174
|
+
keywords: string[];
|
|
175
|
+
accessLevel: DocumentAccessLevel;
|
|
176
|
+
hasSensitiveData: boolean;
|
|
177
|
+
recipients: PartsOfficeRecipientInput[];
|
|
178
|
+
instruction: DocumentInstruction;
|
|
179
|
+
note?: string | null;
|
|
180
|
+
dueAt?: string | null;
|
|
181
|
+
actor: DocumentActor;
|
|
182
|
+
};
|
|
183
|
+
response: PartsOfficeRegisterResponseEntity;
|
|
184
|
+
};
|
|
185
|
+
/** Reintenta el acuse de recibo de un recibido ya ingresado. */
|
|
186
|
+
[PartsOfficePatterns.acknowledgeInbound]: {
|
|
187
|
+
payload: {
|
|
188
|
+
id: string;
|
|
189
|
+
actor: DocumentActor;
|
|
190
|
+
};
|
|
191
|
+
response: PartsOfficeOkResponseEntity;
|
|
192
|
+
};
|
|
193
|
+
/** Devuelve el recibido a la institución que lo envió, con el motivo (entre 3 y 255 caracteres). */
|
|
194
|
+
[PartsOfficePatterns.returnInbound]: {
|
|
195
|
+
payload: {
|
|
196
|
+
id: string;
|
|
197
|
+
reason: string;
|
|
198
|
+
actor: DocumentActor;
|
|
199
|
+
};
|
|
200
|
+
response: PartsOfficeOkResponseEntity;
|
|
201
|
+
};
|
|
202
|
+
/** Archivo de un recibido: el principal o, con `attachment`, uno de sus anexos (por su posición). */
|
|
203
|
+
[PartsOfficePatterns.getInboundFile]: {
|
|
204
|
+
payload: {
|
|
205
|
+
id: string;
|
|
206
|
+
attachment?: number;
|
|
207
|
+
};
|
|
208
|
+
response: PartsOfficeFileEntity;
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* Quiénes de `people` están habilitados como usuarios de DocDigital en la municipalidad o en sus entidades emisoras
|
|
212
|
+
* (por RUN). El directorio de cada entidad se guarda 10 minutos.
|
|
213
|
+
*/
|
|
214
|
+
[PartsOfficePatterns.checkEnablement]: {
|
|
215
|
+
payload: {
|
|
216
|
+
people: EnablementPersonInput[];
|
|
217
|
+
};
|
|
218
|
+
response: PartsOfficeEnablementEntity;
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* Registro por contingencia: el documento no se pudo despachar por DocDigital y salió por otro medio. Queda
|
|
222
|
+
* despachado, con el medio, a quién, el motivo y el comprobante; si después se registra en DocDigital, su número.
|
|
223
|
+
*/
|
|
224
|
+
[PartsOfficePatterns.dispatchByContingency]: {
|
|
225
|
+
payload: {
|
|
226
|
+
id: string;
|
|
227
|
+
means: CommunicationMeans;
|
|
228
|
+
sentAt: string;
|
|
229
|
+
sentTo: string;
|
|
230
|
+
reason: string;
|
|
231
|
+
receipt?: {
|
|
232
|
+
fileId: string;
|
|
233
|
+
name: string;
|
|
234
|
+
} | null;
|
|
235
|
+
docDigitalDocumentId?: string | null;
|
|
236
|
+
actor: DocumentActor;
|
|
237
|
+
};
|
|
238
|
+
response: PartsOfficeOkResponseEntity;
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* Ingreso manual: lo que llegó fuera de DocDigital (papel, correo) entra con folio de ingreso, como lo recibido
|
|
242
|
+
* por DocDigital, y se deriva.
|
|
243
|
+
*/
|
|
244
|
+
[PartsOfficePatterns.registerManualIntake]: {
|
|
245
|
+
payload: ManualIntakePayload;
|
|
246
|
+
response: PartsOfficeRegisterResponseEntity;
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* Comprobante de trazabilidad de DocDigital de un documento del índice de un expediente (despachado o recibido por
|
|
250
|
+
* DocDigital): se arma con el estado y el historial que informa DocDigital y entra como comunicación oficial.
|
|
251
|
+
*/
|
|
252
|
+
[PartsOfficePatterns.addCaseFileReceipt]: {
|
|
253
|
+
payload: {
|
|
254
|
+
caseFileId: string;
|
|
255
|
+
documentId: string;
|
|
256
|
+
actor: {
|
|
257
|
+
employeeId: string;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
response: CaseFileAddEntryResponseEntity;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PartsOfficePatterns = void 0;
|
|
4
|
+
/** Patrones NATS de `partsOffice` (Oficina de Partes y DocDigital): `<servicio>.<recurso>.<acción>`. */
|
|
5
|
+
exports.PartsOfficePatterns = {
|
|
6
|
+
getStatus: 'gestorDocumental.partsOffice.getStatus',
|
|
7
|
+
getSummary: 'gestorDocumental.partsOffice.getSummary',
|
|
8
|
+
getEntities: 'gestorDocumental.partsOffice.getEntities',
|
|
9
|
+
getOwnEntities: 'gestorDocumental.partsOffice.getOwnEntities',
|
|
10
|
+
getUsers: 'gestorDocumental.partsOffice.getUsers',
|
|
11
|
+
getDocumentTypes: 'gestorDocumental.partsOffice.getDocumentTypes',
|
|
12
|
+
getDispatches: 'gestorDocumental.partsOffice.getDispatches',
|
|
13
|
+
dispatch: 'gestorDocumental.partsOffice.dispatch',
|
|
14
|
+
returnDispatch: 'gestorDocumental.partsOffice.returnDispatch',
|
|
15
|
+
resendDispatch: 'gestorDocumental.partsOffice.resendDispatch',
|
|
16
|
+
getDispatchFile: 'gestorDocumental.partsOffice.getDispatchFile',
|
|
17
|
+
getInbound: 'gestorDocumental.partsOffice.getInbound',
|
|
18
|
+
syncInbound: 'gestorDocumental.partsOffice.syncInbound',
|
|
19
|
+
registerInbound: 'gestorDocumental.partsOffice.registerInbound',
|
|
20
|
+
acknowledgeInbound: 'gestorDocumental.partsOffice.acknowledgeInbound',
|
|
21
|
+
returnInbound: 'gestorDocumental.partsOffice.returnInbound',
|
|
22
|
+
getInboundFile: 'gestorDocumental.partsOffice.getInboundFile',
|
|
23
|
+
checkEnablement: 'gestorDocumental.partsOffice.checkEnablement',
|
|
24
|
+
dispatchByContingency: 'gestorDocumental.partsOffice.dispatchByContingency',
|
|
25
|
+
registerManualIntake: 'gestorDocumental.partsOffice.registerManualIntake',
|
|
26
|
+
addCaseFileReceipt: 'gestorDocumental.partsOffice.addCaseFileReceipt',
|
|
27
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type ProcedureEntity } from '../base/entities';
|
|
2
|
+
import { type ProcedureCreateResponseEntity, type ProcedureGetAllResponseEntity, type ProcedureGetByIdResponseEntity, type ProcedureUpdateResponseEntity } from '../entities';
|
|
3
|
+
import { type RpcPage } from './contract';
|
|
4
|
+
/** Patrones NATS de `procedure`: `<servicio>.<recurso>.<acción>`. */
|
|
5
|
+
export declare const ProcedurePatterns: {
|
|
6
|
+
readonly getAll: "gestorDocumental.procedure.getAll";
|
|
7
|
+
readonly getById: "gestorDocumental.procedure.getById";
|
|
8
|
+
readonly create: "gestorDocumental.procedure.create";
|
|
9
|
+
readonly update: "gestorDocumental.procedure.update";
|
|
10
|
+
readonly setEnabled: "gestorDocumental.procedure.setEnabled";
|
|
11
|
+
};
|
|
12
|
+
/** Datos de un procedimiento administrativo al crearlo o editarlo. */
|
|
13
|
+
export interface ProcedureWritePayload {
|
|
14
|
+
name: string;
|
|
15
|
+
cpatId?: string | null;
|
|
16
|
+
cpatCode?: string | null;
|
|
17
|
+
description?: string | null;
|
|
18
|
+
enabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ProcedureContract {
|
|
21
|
+
[ProcedurePatterns.getAll]: {
|
|
22
|
+
payload: {
|
|
23
|
+
pagination?: {
|
|
24
|
+
page?: number;
|
|
25
|
+
limit?: number;
|
|
26
|
+
};
|
|
27
|
+
filters?: {
|
|
28
|
+
search?: string;
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
response: RpcPage<ProcedureGetAllResponseEntity[]>;
|
|
33
|
+
};
|
|
34
|
+
[ProcedurePatterns.getById]: {
|
|
35
|
+
payload: Pick<ProcedureEntity, 'id'>;
|
|
36
|
+
response: ProcedureGetByIdResponseEntity;
|
|
37
|
+
};
|
|
38
|
+
[ProcedurePatterns.create]: {
|
|
39
|
+
payload: ProcedureWritePayload;
|
|
40
|
+
response: ProcedureCreateResponseEntity;
|
|
41
|
+
};
|
|
42
|
+
[ProcedurePatterns.update]: {
|
|
43
|
+
payload: ProcedureWritePayload & Pick<ProcedureEntity, 'id'>;
|
|
44
|
+
response: ProcedureUpdateResponseEntity;
|
|
45
|
+
};
|
|
46
|
+
[ProcedurePatterns.setEnabled]: {
|
|
47
|
+
payload: Pick<ProcedureEntity, 'id' | 'enabled'>;
|
|
48
|
+
response: ProcedureUpdateResponseEntity;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProcedurePatterns = void 0;
|
|
4
|
+
/** Patrones NATS de `procedure`: `<servicio>.<recurso>.<acción>`. */
|
|
5
|
+
exports.ProcedurePatterns = {
|
|
6
|
+
getAll: 'gestorDocumental.procedure.getAll',
|
|
7
|
+
getById: 'gestorDocumental.procedure.getById',
|
|
8
|
+
create: 'gestorDocumental.procedure.create',
|
|
9
|
+
update: 'gestorDocumental.procedure.update',
|
|
10
|
+
setEnabled: 'gestorDocumental.procedure.setEnabled',
|
|
11
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type RegisterBookEntity, type RegisterBookExportEntity, type RegisterBookKind } from '../entities';
|
|
2
|
+
/** Patrones NATS de `registerBook` (libros de registro): `<servicio>.<recurso>.<acción>`. */
|
|
3
|
+
export declare const RegisterBookPatterns: {
|
|
4
|
+
readonly get: "gestorDocumental.registerBook.get";
|
|
5
|
+
readonly export: "gestorDocumental.registerBook.export";
|
|
6
|
+
};
|
|
7
|
+
/** Qué libro y qué período: un año y, si se indica, un mes. El de un tipo documental exige el tipo. */
|
|
8
|
+
export interface RegisterBookQuery {
|
|
9
|
+
kind: RegisterBookKind;
|
|
10
|
+
documentTypeId?: string;
|
|
11
|
+
year: number;
|
|
12
|
+
month?: number | null;
|
|
13
|
+
}
|
|
14
|
+
export interface RegisterBookContract {
|
|
15
|
+
[RegisterBookPatterns.get]: {
|
|
16
|
+
payload: RegisterBookQuery;
|
|
17
|
+
response: RegisterBookEntity;
|
|
18
|
+
};
|
|
19
|
+
/** El libro en Excel o PDF. `generatedBy`: quién lo descarga (va en el encabezado). */
|
|
20
|
+
[RegisterBookPatterns.export]: {
|
|
21
|
+
payload: RegisterBookQuery & {
|
|
22
|
+
format: 'xlsx' | 'pdf';
|
|
23
|
+
generatedBy: string;
|
|
24
|
+
};
|
|
25
|
+
response: RegisterBookExportEntity;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegisterBookPatterns = void 0;
|
|
4
|
+
/** Patrones NATS de `registerBook` (libros de registro): `<servicio>.<recurso>.<acción>`. */
|
|
5
|
+
exports.RegisterBookPatterns = {
|
|
6
|
+
get: 'gestorDocumental.registerBook.get',
|
|
7
|
+
export: 'gestorDocumental.registerBook.export',
|
|
8
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type RepositoryExportCaseFilesPageEntity, type RepositoryExportRecordResponseEntity, type RepositoryExportDocumentsPageEntity, type RepositoryExportScope, type RepositoryExportSummaryEntity } from '../entities';
|
|
2
|
+
/**
|
|
3
|
+
* Patrones NATS de `repositoryExport`: exportación completa del repositorio (portabilidad). El ms entrega los datos
|
|
4
|
+
* por páginas, porque un mensaje NATS no admite más de 1 MB; el gateway arma el ZIP con ellos y los archivos.
|
|
5
|
+
*/
|
|
6
|
+
export declare const RepositoryExportPatterns: {
|
|
7
|
+
readonly getSummary: "gestorDocumental.repositoryExport.getSummary";
|
|
8
|
+
readonly getDocuments: "gestorDocumental.repositoryExport.getDocuments";
|
|
9
|
+
readonly getCaseFiles: "gestorDocumental.repositoryExport.getCaseFiles";
|
|
10
|
+
readonly record: "gestorDocumental.repositoryExport.record";
|
|
11
|
+
};
|
|
12
|
+
/** Período por fecha de creación (días de Chile «AAAA-MM-DD»); sin él, todo. */
|
|
13
|
+
export interface RepositoryExportQuery {
|
|
14
|
+
from?: string | null;
|
|
15
|
+
to?: string | null;
|
|
16
|
+
scope?: RepositoryExportScope;
|
|
17
|
+
/** Solo lo incluido en un acta de transferencia: el paquete para el Archivo Nacional. */
|
|
18
|
+
dispositionId?: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface RepositoryExportContract {
|
|
21
|
+
[RepositoryExportPatterns.getSummary]: {
|
|
22
|
+
payload: RepositoryExportQuery;
|
|
23
|
+
response: RepositoryExportSummaryEntity;
|
|
24
|
+
};
|
|
25
|
+
/** Hasta 50 documentos por página, en orden de creación. */
|
|
26
|
+
[RepositoryExportPatterns.getDocuments]: {
|
|
27
|
+
payload: RepositoryExportQuery & {
|
|
28
|
+
cursor?: string | null;
|
|
29
|
+
limit?: number;
|
|
30
|
+
};
|
|
31
|
+
response: RepositoryExportDocumentsPageEntity;
|
|
32
|
+
};
|
|
33
|
+
/** Hasta 10 expedientes por página; cada uno queda con «Exportó» en su trazabilidad, a nombre de quien exporta. */
|
|
34
|
+
[RepositoryExportPatterns.getCaseFiles]: {
|
|
35
|
+
payload: Omit<RepositoryExportQuery, 'scope'> & {
|
|
36
|
+
cursor?: string | null;
|
|
37
|
+
limit?: number;
|
|
38
|
+
actor: {
|
|
39
|
+
employeeId: string | null;
|
|
40
|
+
fullName: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
response: RepositoryExportCaseFilesPageEntity;
|
|
44
|
+
};
|
|
45
|
+
/** Deja la exportación en la bitácora: quién, qué período y si llevó archivos. */
|
|
46
|
+
[RepositoryExportPatterns.record]: {
|
|
47
|
+
payload: RepositoryExportQuery & {
|
|
48
|
+
includeFiles: boolean;
|
|
49
|
+
complete: boolean;
|
|
50
|
+
actor: {
|
|
51
|
+
employeeId: string | null;
|
|
52
|
+
fullName: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
response: RepositoryExportRecordResponseEntity;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RepositoryExportPatterns = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Patrones NATS de `repositoryExport`: exportación completa del repositorio (portabilidad). El ms entrega los datos
|
|
6
|
+
* por páginas, porque un mensaje NATS no admite más de 1 MB; el gateway arma el ZIP con ellos y los archivos.
|
|
7
|
+
*/
|
|
8
|
+
exports.RepositoryExportPatterns = {
|
|
9
|
+
getSummary: 'gestorDocumental.repositoryExport.getSummary',
|
|
10
|
+
getDocuments: 'gestorDocumental.repositoryExport.getDocuments',
|
|
11
|
+
getCaseFiles: 'gestorDocumental.repositoryExport.getCaseFiles',
|
|
12
|
+
record: 'gestorDocumental.repositoryExport.record',
|
|
13
|
+
};
|