@muni-sanfer/types-gestor-documental 0.0.1-beta.7 → 0.0.1-beta.71
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 +1041 -8
- package/dist/base/entities.js +259 -2
- 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 +124 -1
- package/dist/contracts/caseFile.contract.js +10 -0
- package/dist/contracts/dashboard.contract.d.ts +17 -0
- package/dist/contracts/dashboard.contract.js +7 -0
- package/dist/contracts/dataProtection.contract.d.ts +256 -0
- package/dist/contracts/dataProtection.contract.js +23 -0
- package/dist/contracts/desk.contract.d.ts +88 -0
- package/dist/contracts/desk.contract.js +13 -0
- package/dist/contracts/document.contract.d.ts +238 -4
- package/dist/contracts/document.contract.js +17 -0
- package/dist/contracts/documentTemplate.contract.d.ts +17 -0
- package/dist/contracts/documentTemplate.contract.js +10 -0
- package/dist/contracts/documentType.contract.d.ts +33 -3
- package/dist/contracts/documentType.contract.js +2 -0
- package/dist/contracts/draftingRequest.contract.d.ts +105 -0
- package/dist/contracts/draftingRequest.contract.js +11 -0
- package/dist/contracts/holiday.contract.d.ts +39 -0
- package/dist/contracts/holiday.contract.js +10 -0
- package/dist/contracts/index.d.ts +254 -4
- package/dist/contracts/index.js +72 -0
- package/dist/contracts/indicators.contract.d.ts +103 -0
- package/dist/contracts/indicators.contract.js +15 -0
- package/dist/contracts/internalReview.contract.d.ts +55 -0
- package/dist/contracts/internalReview.contract.js +9 -0
- package/dist/contracts/issuingEntity.contract.d.ts +52 -0
- package/dist/contracts/issuingEntity.contract.js +11 -0
- package/dist/contracts/mailIntake.contract.d.ts +61 -0
- package/dist/contracts/mailIntake.contract.js +15 -0
- package/dist/contracts/notificationPreference.contract.d.ts +45 -0
- package/dist/contracts/notificationPreference.contract.js +13 -0
- package/dist/contracts/partsOffice.contract.d.ts +94 -2
- package/dist/contracts/partsOffice.contract.js +5 -0
- package/dist/contracts/procedure.contract.d.ts +14 -23
- package/dist/contracts/procedure.contract.js +6 -4
- package/dist/contracts/push.contract.d.ts +59 -0
- package/dist/contracts/push.contract.js +14 -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/richImage.contract.d.ts +33 -0
- package/dist/contracts/richImage.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 +2 -1
- 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/visaInitials.contract.d.ts +39 -0
- package/dist/contracts/visaInitials.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 +30 -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 +135 -0
- package/dist/entities/dashboard/dashboard.entity.d.ts +99 -0
- package/dist/entities/dashboard/dashboard.entity.js +2 -0
- package/dist/entities/dashboard/index.d.ts +1 -0
- package/dist/entities/dashboard/index.js +17 -0
- package/dist/entities/dataProtection/dataProtection.entity.d.ts +180 -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 +25 -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 +493 -3
- package/dist/entities/document/index.d.ts +2 -0
- package/dist/entities/document/index.js +2 -0
- package/dist/entities/document/richStyle.d.ts +219 -0
- package/dist/entities/document/richStyle.js +81 -0
- package/dist/entities/document/stampPlacement.d.ts +46 -0
- package/dist/entities/document/stampPlacement.js +19 -0
- package/dist/entities/documentTemplate/documentTemplate.entity.d.ts +25 -0
- package/dist/entities/documentTemplate/documentTemplate.entity.js +2 -0
- package/dist/entities/documentTemplate/index.d.ts +1 -0
- package/dist/entities/documentTemplate/index.js +17 -0
- package/dist/entities/documentType/documentCategory.d.ts +15 -0
- package/dist/entities/documentType/documentCategory.js +39 -0
- package/dist/entities/documentType/documentType.entity.d.ts +56 -1
- package/dist/entities/documentType/index.d.ts +1 -0
- package/dist/entities/documentType/index.js +1 -0
- package/dist/entities/draftingRequest/draftingRequest.entity.d.ts +83 -0
- package/dist/entities/draftingRequest/draftingRequest.entity.js +2 -0
- package/dist/entities/draftingRequest/index.d.ts +1 -0
- package/dist/entities/draftingRequest/index.js +17 -0
- package/dist/entities/holiday/holiday.entity.d.ts +32 -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 +23 -0
- package/dist/entities/index.js +23 -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/internalReview/index.d.ts +1 -0
- package/dist/entities/internalReview/index.js +17 -0
- package/dist/entities/internalReview/internalReview.entity.d.ts +50 -0
- package/dist/entities/internalReview/internalReview.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/mailIntake/index.d.ts +1 -0
- package/dist/entities/mailIntake/index.js +17 -0
- package/dist/entities/mailIntake/mailIntake.entity.d.ts +51 -0
- package/dist/entities/mailIntake/mailIntake.entity.js +2 -0
- package/dist/entities/notificationPreference/index.d.ts +1 -0
- package/dist/entities/notificationPreference/index.js +17 -0
- package/dist/entities/notificationPreference/notificationPreference.entity.d.ts +26 -0
- package/dist/entities/notificationPreference/notificationPreference.entity.js +9 -0
- package/dist/entities/partsOffice/partsOffice.entity.d.ts +39 -0
- package/dist/entities/procedure/procedure.entity.d.ts +27 -6
- package/dist/entities/push/index.d.ts +1 -0
- package/dist/entities/push/index.js +17 -0
- package/dist/entities/push/push.entity.d.ts +28 -0
- package/dist/entities/push/push.entity.js +2 -0
- package/dist/entities/registerBook/registerBook.entity.d.ts +6 -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/signatureBatch.entity.d.ts +1 -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 +60 -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/visaInitials/index.d.ts +1 -0
- package/dist/entities/visaInitials/index.js +17 -0
- package/dist/entities/visaInitials/visaInitials.entity.d.ts +18 -0
- package/dist/entities/visaInitials/visaInitials.entity.js +5 -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 +1229 -8
- 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 +107 -2
- package/src/contracts/dashboard.contract.ts +17 -0
- package/src/contracts/dataProtection.contract.ts +197 -0
- package/src/contracts/desk.contract.ts +72 -0
- package/src/contracts/document.contract.ts +220 -5
- package/src/contracts/documentTemplate.contract.ts +17 -0
- package/src/contracts/documentType.contract.ts +55 -4
- package/src/contracts/draftingRequest.contract.ts +82 -0
- package/src/contracts/holiday.contract.ts +25 -0
- package/src/contracts/index.ts +97 -1
- package/src/contracts/indicators.contract.ts +80 -0
- package/src/contracts/internalReview.contract.ts +48 -0
- package/src/contracts/issuingEntity.contract.ts +55 -0
- package/src/contracts/mailIntake.contract.ts +49 -0
- package/src/contracts/notificationPreference.contract.ts +38 -0
- package/src/contracts/partsOffice.contract.ts +81 -2
- package/src/contracts/procedure.contract.ts +11 -27
- package/src/contracts/push.contract.ts +41 -0
- package/src/contracts/repositoryExport.contract.ts +54 -0
- package/src/contracts/retention.contract.ts +44 -0
- package/src/contracts/richImage.contract.ts +23 -0
- package/src/contracts/scan.contract.ts +52 -0
- package/src/contracts/signatureBatch.contract.ts +4 -2
- 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/visaInitials.contract.ts +29 -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 +41 -0
- package/src/entities/audit/index.ts +1 -0
- package/src/entities/caseFile/caseFile.entity.ts +132 -0
- package/src/entities/dashboard/dashboard.entity.ts +95 -0
- package/src/entities/dashboard/index.ts +1 -0
- package/src/entities/dataProtection/dataProtection.entity.ts +191 -0
- package/src/entities/dataProtection/index.ts +1 -0
- package/src/entities/desk/desk.entity.ts +28 -0
- package/src/entities/desk/index.ts +1 -0
- package/src/entities/document/document.entity.ts +482 -5
- package/src/entities/document/index.ts +2 -0
- package/src/entities/document/richStyle.ts +200 -0
- package/src/entities/document/stampPlacement.ts +39 -0
- package/src/entities/documentTemplate/documentTemplate.entity.ts +27 -0
- package/src/entities/documentTemplate/index.ts +1 -0
- package/src/entities/documentType/documentCategory.ts +40 -0
- package/src/entities/documentType/documentType.entity.ts +71 -1
- package/src/entities/documentType/index.ts +1 -0
- package/src/entities/draftingRequest/draftingRequest.entity.ts +87 -0
- package/src/entities/draftingRequest/index.ts +1 -0
- package/src/entities/holiday/holiday.entity.ts +36 -0
- package/src/entities/holiday/index.ts +1 -0
- package/src/entities/index.ts +23 -0
- package/src/entities/indicators/index.ts +1 -0
- package/src/entities/indicators/indicators.entity.ts +157 -0
- package/src/entities/internalReview/index.ts +1 -0
- package/src/entities/internalReview/internalReview.entity.ts +50 -0
- package/src/entities/issuingEntity/index.ts +1 -0
- package/src/entities/issuingEntity/issuingEntity.entity.ts +24 -0
- package/src/entities/mailIntake/index.ts +1 -0
- package/src/entities/mailIntake/mailIntake.entity.ts +55 -0
- package/src/entities/notificationPreference/index.ts +1 -0
- package/src/entities/notificationPreference/notificationPreference.entity.ts +26 -0
- package/src/entities/partsOffice/partsOffice.entity.ts +35 -0
- package/src/entities/procedure/procedure.entity.ts +27 -6
- package/src/entities/push/index.ts +1 -0
- package/src/entities/push/push.entity.ts +31 -0
- package/src/entities/registerBook/registerBook.entity.ts +6 -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/signatureBatch.entity.ts +7 -1
- package/src/entities/signatureCheck/index.ts +1 -0
- package/src/entities/signatureCheck/signatureCheck.entity.ts +63 -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/visaInitials/index.ts +1 -0
- package/src/entities/visaInitials/visaInitials.entity.ts +18 -0
- package/src/entities/workFolder/index.ts +1 -0
- package/src/entities/workFolder/workFolder.entity.ts +84 -0
|
@@ -1,20 +1,41 @@
|
|
|
1
1
|
import { ProcedureEntity } from '../../base/entities';
|
|
2
|
+
/** Procedimiento administrativo de la municipalidad, como lo informa el CPAT. */
|
|
2
3
|
export interface ProcedureGetAllResponseEntity {
|
|
3
4
|
id: ProcedureEntity['id'];
|
|
4
5
|
name: ProcedureEntity['name'];
|
|
5
6
|
cpatId: ProcedureEntity['cpatId'];
|
|
6
7
|
cpatCode: ProcedureEntity['cpatCode'];
|
|
7
8
|
description: ProcedureEntity['description'];
|
|
9
|
+
/** Tipo de registro en el CPAT: de función común, de función específica u otra tramitación. */
|
|
10
|
+
kind: string | null;
|
|
11
|
+
responsibleArea: string | null;
|
|
12
|
+
/** Estado del registro en el CPAT: completado o pendiente. */
|
|
13
|
+
cpatStatus: string | null;
|
|
14
|
+
/** Viene del CPAT; si no, es uno de los cargados a mano antes, que quedan solo para sus expedientes. */
|
|
15
|
+
fromCpat: boolean;
|
|
16
|
+
/** Se puede elegir: está en la última nómina del CPAT. */
|
|
8
17
|
enabled: ProcedureEntity['enabled'];
|
|
9
18
|
/** Cuántos expedientes pertenecen a este procedimiento. */
|
|
10
19
|
caseFiles: number;
|
|
11
20
|
}
|
|
12
21
|
export type ProcedureGetByIdResponseEntity = ProcedureGetAllResponseEntity;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
/** De qué institución y nómina del CPAT vienen los procedimientos, y cuándo se trajeron. */
|
|
23
|
+
export interface ProcedureCpatStatusEntity {
|
|
24
|
+
/** Código de la municipalidad en el CPAT (`CPAT_INSTITUTION_CODE`); `null` si no está configurado. */
|
|
25
|
+
institutionCode: string | null;
|
|
26
|
+
syncedAt: string | null;
|
|
27
|
+
total: number | null;
|
|
28
|
+
/** Nómina de datos.gob.cl. Ej: «Nómina CPAT septiembre 2026». */
|
|
29
|
+
resourceName: string | null;
|
|
16
30
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
31
|
+
/** Resultado de traer los procedimientos del CPAT. */
|
|
32
|
+
export interface ProcedureSyncResponseEntity {
|
|
33
|
+
institutionCode: string;
|
|
34
|
+
resourceName: string;
|
|
35
|
+
added: number;
|
|
36
|
+
updated: number;
|
|
37
|
+
/** Los que ya no informa el CPAT: dejan de elegirse, pero siguen en sus expedientes. */
|
|
38
|
+
retired: number;
|
|
39
|
+
total: number;
|
|
40
|
+
syncedAt: string;
|
|
20
41
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './push.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("./push.entity"), exports);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Si los avisos push están habilitados y con qué clave pública se suscribe el navegador. */
|
|
2
|
+
export interface PushConfigResponseEntity {
|
|
3
|
+
/** El servidor tiene sus claves VAPID: se pueden activar. */
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
/** Clave pública VAPID (base64url) para `pushManager.subscribe`; `null` si no está habilitado. */
|
|
6
|
+
publicKey: string | null;
|
|
7
|
+
/** Dispositivos en que quien consulta tiene los avisos activos. */
|
|
8
|
+
devices: number;
|
|
9
|
+
}
|
|
10
|
+
export interface PushOkResponseEntity {
|
|
11
|
+
ok: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** Resultado de un envío: avisos entregados al servicio push, suscripciones vencidas que se borraron y fallas. */
|
|
14
|
+
export interface PushSendResultEntity {
|
|
15
|
+
sent: number;
|
|
16
|
+
removed: number;
|
|
17
|
+
failed: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Un aviso. `url` es una ruta del gestor (`/documentos/…/detalle`): el service worker la abre al tocar el aviso.
|
|
21
|
+
* `tag` agrupa: un aviso nuevo con el mismo `tag` reemplaza al anterior en el dispositivo.
|
|
22
|
+
*/
|
|
23
|
+
export interface PushNotificationInput {
|
|
24
|
+
title: string;
|
|
25
|
+
body: string;
|
|
26
|
+
url: string;
|
|
27
|
+
tag?: string | null;
|
|
28
|
+
}
|
|
@@ -24,11 +24,17 @@ export interface RegisterBookRowEntity {
|
|
|
24
24
|
dispatch: string | null;
|
|
25
25
|
/** Motivo de la anulación (del documento o del número). */
|
|
26
26
|
observation: string | null;
|
|
27
|
+
/** Correlativo de la categoría: tipo documental del número (`null` en un salto o si el libro es de un solo tipo). */
|
|
28
|
+
documentTypeName: string | null;
|
|
27
29
|
}
|
|
28
30
|
export interface RegisterBookEntity {
|
|
29
31
|
kind: RegisterBookKind;
|
|
30
32
|
/** «Decreto alcaldicio exento» o «Ingresos de Oficina de Partes». */
|
|
31
33
|
title: string;
|
|
34
|
+
/** Quién lleva el libro: la entidad emisora del tipo o la municipalidad. */
|
|
35
|
+
issuerName: string;
|
|
36
|
+
/** Correlativo de la categoría: los tipos que numeran en la serie del libro (vacío si es de un solo tipo). */
|
|
37
|
+
series: string[];
|
|
32
38
|
year: number;
|
|
33
39
|
month: number | null;
|
|
34
40
|
rows: RegisterBookRowEntity[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './repositoryExport.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("./repositoryExport.entity"), exports);
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { type CaseFileExportResponseEntity } from '../caseFile';
|
|
2
|
+
/** Qué documentos: los oficiales (finalizados y anulados) o todos, también borradores y en tramitación. */
|
|
3
|
+
export type RepositoryExportScope = 'official' | 'all';
|
|
4
|
+
/** Un archivo que el gateway descarga y pone en el ZIP, en la ruta indicada. */
|
|
5
|
+
export interface RepositoryExportFile {
|
|
6
|
+
fileId: string;
|
|
7
|
+
path: string;
|
|
8
|
+
kind: 'document' | 'attachment';
|
|
9
|
+
}
|
|
10
|
+
/** Un documento con todos sus datos, como va en `documentos/*.jsonl`. Claves en castellano, como `expediente.json`. */
|
|
11
|
+
export interface RepositoryDocumentRecord {
|
|
12
|
+
id: string;
|
|
13
|
+
tipo: {
|
|
14
|
+
nombre: string;
|
|
15
|
+
sigla: string | null;
|
|
16
|
+
serie: {
|
|
17
|
+
codigo: string;
|
|
18
|
+
nombre: string;
|
|
19
|
+
} | null;
|
|
20
|
+
};
|
|
21
|
+
entidadEmisora: string;
|
|
22
|
+
folio: string | null;
|
|
23
|
+
numero: number | null;
|
|
24
|
+
anio: number | null;
|
|
25
|
+
materia: string;
|
|
26
|
+
palabrasClave: string[];
|
|
27
|
+
nivelAcceso: string;
|
|
28
|
+
datosSensibles: boolean;
|
|
29
|
+
finRestriccion: string | null;
|
|
30
|
+
estado: string;
|
|
31
|
+
origen: string;
|
|
32
|
+
codigoVerificacion: string | null;
|
|
33
|
+
redactor: {
|
|
34
|
+
id: string;
|
|
35
|
+
nombre: string;
|
|
36
|
+
};
|
|
37
|
+
unidadEmisora: {
|
|
38
|
+
codigoDireccion: number | null;
|
|
39
|
+
departamentoId: string | null;
|
|
40
|
+
};
|
|
41
|
+
creado: string;
|
|
42
|
+
enviado: string | null;
|
|
43
|
+
finalizado: string | null;
|
|
44
|
+
anulacion: {
|
|
45
|
+
fecha: string;
|
|
46
|
+
motivo: string | null;
|
|
47
|
+
} | null;
|
|
48
|
+
numerosAnulados: {
|
|
49
|
+
numero: number;
|
|
50
|
+
anio: number;
|
|
51
|
+
motivo: string;
|
|
52
|
+
registradoPor: string;
|
|
53
|
+
fecha: string;
|
|
54
|
+
}[];
|
|
55
|
+
participantes: {
|
|
56
|
+
rol: string;
|
|
57
|
+
orden: number;
|
|
58
|
+
etapa: number;
|
|
59
|
+
nombre: string;
|
|
60
|
+
cargo: string | null;
|
|
61
|
+
estado: string;
|
|
62
|
+
resueltoEl: string | null;
|
|
63
|
+
observacion: string | null;
|
|
64
|
+
}[];
|
|
65
|
+
destinatarios: {
|
|
66
|
+
tipo: string;
|
|
67
|
+
nombre: string;
|
|
68
|
+
cargo: string | null;
|
|
69
|
+
}[];
|
|
70
|
+
destinatariosExternos: {
|
|
71
|
+
entidad: string;
|
|
72
|
+
usuario: string | null;
|
|
73
|
+
}[];
|
|
74
|
+
despacho: {
|
|
75
|
+
estado: string;
|
|
76
|
+
folio: string | null;
|
|
77
|
+
despachadoEl: string | null;
|
|
78
|
+
idDocDigital: string | null;
|
|
79
|
+
} | null;
|
|
80
|
+
ingreso: {
|
|
81
|
+
folio: string | null;
|
|
82
|
+
remitente: string | null;
|
|
83
|
+
folioDeOrigen: string | null;
|
|
84
|
+
} | null;
|
|
85
|
+
anexos: {
|
|
86
|
+
nombre: string;
|
|
87
|
+
enlace: string | null;
|
|
88
|
+
archivo: string | null;
|
|
89
|
+
}[];
|
|
90
|
+
trazabilidad: {
|
|
91
|
+
accion: string;
|
|
92
|
+
quien: string | null;
|
|
93
|
+
cuando: string;
|
|
94
|
+
observacion: string | null;
|
|
95
|
+
sha256: string | null;
|
|
96
|
+
}[];
|
|
97
|
+
/** Ruta del PDF vigente (firmado) dentro del ZIP. */
|
|
98
|
+
archivo: string;
|
|
99
|
+
}
|
|
100
|
+
export interface RepositoryExportSummaryEntity {
|
|
101
|
+
/** Órgano que exporta (`ORGAN_NAME`). */
|
|
102
|
+
organ: string;
|
|
103
|
+
from: string | null;
|
|
104
|
+
to: string | null;
|
|
105
|
+
scope: RepositoryExportScope;
|
|
106
|
+
documents: number;
|
|
107
|
+
caseFiles: number;
|
|
108
|
+
/** Catálogos completos: tipos documentales, series, procedimientos, entidades emisoras y feriados. */
|
|
109
|
+
catalogs: Record<string, unknown[]>;
|
|
110
|
+
}
|
|
111
|
+
export interface RepositoryExportDocumentsPageEntity {
|
|
112
|
+
items: {
|
|
113
|
+
record: RepositoryDocumentRecord;
|
|
114
|
+
files: RepositoryExportFile[];
|
|
115
|
+
}[];
|
|
116
|
+
nextCursor: string | null;
|
|
117
|
+
}
|
|
118
|
+
export interface RepositoryExportCaseFilesPageEntity {
|
|
119
|
+
items: CaseFileExportResponseEntity[];
|
|
120
|
+
nextCursor: string | null;
|
|
121
|
+
}
|
|
122
|
+
export interface RepositoryExportRecordResponseEntity {
|
|
123
|
+
ok: boolean;
|
|
124
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './retention.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("./retention.entity"), exports);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type DispositionKind, type FinalDisposition } from '../../base/entities';
|
|
2
|
+
/** Una serie con su Tabla de Retención y cuánto venció. */
|
|
3
|
+
export interface RetentionSeriesEntity {
|
|
4
|
+
seriesId: string;
|
|
5
|
+
code: string;
|
|
6
|
+
name: string;
|
|
7
|
+
section: string | null;
|
|
8
|
+
managementYears: number;
|
|
9
|
+
centralYears: number;
|
|
10
|
+
finalDisposition: FinalDisposition;
|
|
11
|
+
retentionNote: string | null;
|
|
12
|
+
/** Documentos firmados y expedientes cerrados cuyo plazo terminó y aún no tienen acta. */
|
|
13
|
+
documentsDue: number;
|
|
14
|
+
caseFilesDue: number;
|
|
15
|
+
/** Actas ya emitidas de la serie. */
|
|
16
|
+
dispositions: number;
|
|
17
|
+
}
|
|
18
|
+
export interface RetentionSummaryEntity {
|
|
19
|
+
series: RetentionSeriesEntity[];
|
|
20
|
+
/** Series habilitadas sin plazos: sus documentos no vencen. */
|
|
21
|
+
seriesWithoutRetention: number;
|
|
22
|
+
}
|
|
23
|
+
/** Un documento o expediente cuyo plazo de retención terminó. */
|
|
24
|
+
export interface RetentionDueItemEntity {
|
|
25
|
+
kind: 'Document' | 'CaseFile';
|
|
26
|
+
id: string;
|
|
27
|
+
/** Folio del documento o IUIe del expediente. */
|
|
28
|
+
reference: string;
|
|
29
|
+
title: string;
|
|
30
|
+
/** Desde cuándo se cuenta: la última firma del documento o el cierre del expediente. */
|
|
31
|
+
baseDate: string;
|
|
32
|
+
dueAt: string;
|
|
33
|
+
}
|
|
34
|
+
export interface DispositionRecordResponseEntity {
|
|
35
|
+
id: string;
|
|
36
|
+
kind: DispositionKind;
|
|
37
|
+
number: number;
|
|
38
|
+
year: number;
|
|
39
|
+
/** «Acta de transferencia N° 1/2026». */
|
|
40
|
+
label: string;
|
|
41
|
+
seriesId: string;
|
|
42
|
+
seriesCode: string;
|
|
43
|
+
seriesName: string;
|
|
44
|
+
observation: string | null;
|
|
45
|
+
documents: number;
|
|
46
|
+
caseFiles: number;
|
|
47
|
+
createdByFullName: string;
|
|
48
|
+
createdAt: string;
|
|
49
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './signatureCheck.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("./signatureCheck.entity"), exports);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resultado de una firma o del archivo completo: válida, inválida (algo no cuadra) o indeterminada (lo firmado está
|
|
3
|
+
* íntegro, pero falta confirmar algo: la cadena de confianza, la vigencia o cambios posteriores sin firmar).
|
|
4
|
+
*/
|
|
5
|
+
export type PdfSignatureStatus = 'Valid' | 'Invalid' | 'Indeterminate';
|
|
6
|
+
/** Una firma electrónica de un PDF, como se pudo comprobar. */
|
|
7
|
+
/** Si el certificado de una firma fue revocado, según su emisor (OCSP o lista de revocación). */
|
|
8
|
+
export interface PdfRevocationEntity {
|
|
9
|
+
/** `NotChecked`: la revisión está desactivada en el servidor. `Unknown`: no se pudo confirmar. */
|
|
10
|
+
status: 'Good' | 'Revoked' | 'Unknown' | 'NotChecked';
|
|
11
|
+
source: 'OCSP' | 'CRL' | null;
|
|
12
|
+
revokedAt: string | null;
|
|
13
|
+
/** Por qué no se pudo confirmar. */
|
|
14
|
+
detail: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface PdfSignatureEntity {
|
|
17
|
+
/** Orden en el archivo: 1 es la primera. */
|
|
18
|
+
index: number;
|
|
19
|
+
/** Firma de una persona o sello de tiempo del documento. */
|
|
20
|
+
kind: 'Signature' | 'Timestamp';
|
|
21
|
+
signerName: string | null;
|
|
22
|
+
/** Identificador del titular en el certificado (en Chile, suele ser el RUN). */
|
|
23
|
+
signerSerialNumber: string | null;
|
|
24
|
+
organization: string | null;
|
|
25
|
+
issuerName: string | null;
|
|
26
|
+
certificateSerial: string | null;
|
|
27
|
+
certificateValidFrom: string | null;
|
|
28
|
+
certificateValidTo: string | null;
|
|
29
|
+
signingTime: string | null;
|
|
30
|
+
/** De dónde sale la hora de la firma: sello de tiempo (la más confiable), el certificado firmado o el PDF. */
|
|
31
|
+
signingTimeSource: 'Timestamp' | 'SignedAttribute' | 'PdfDate' | null;
|
|
32
|
+
reason: string | null;
|
|
33
|
+
location: string | null;
|
|
34
|
+
hasTimestamp: boolean;
|
|
35
|
+
/** Lo firmado no cambió y la firma corresponde al certificado. */
|
|
36
|
+
intact: boolean;
|
|
37
|
+
/** La firma abarca el archivo completo (las anteriores a la última, solo su versión). */
|
|
38
|
+
coversWholeDocument: boolean;
|
|
39
|
+
/** El certificado estaba vigente al firmar. `null` si no se sabe cuándo se firmó. */
|
|
40
|
+
certificateValidAtSigning: boolean | null;
|
|
41
|
+
/** Cadena hasta un certificado raíz de confianza. `null` si no hay raíces configuradas. */
|
|
42
|
+
trusted: boolean | null;
|
|
43
|
+
/** Si el certificado fue revocado. Falta en las revisiones anteriores a que se consultara. */
|
|
44
|
+
revocation?: PdfRevocationEntity;
|
|
45
|
+
status: PdfSignatureStatus;
|
|
46
|
+
/** Lo que no cuadra o no se pudo confirmar, en palabras. */
|
|
47
|
+
problems: string[];
|
|
48
|
+
}
|
|
49
|
+
/** Revisión de las firmas de un PDF. */
|
|
50
|
+
export interface PdfSignatureReportEntity {
|
|
51
|
+
checkedAt: string;
|
|
52
|
+
status: 'NoSignatures' | PdfSignatureStatus;
|
|
53
|
+
signatures: PdfSignatureEntity[];
|
|
54
|
+
/** Hay contenido agregado después de la última firma, que no está firmado. */
|
|
55
|
+
modifiedAfterLastSignature: boolean;
|
|
56
|
+
/** Se configuraron certificados raíz para confirmar la cadena de confianza. */
|
|
57
|
+
trustConfigured: boolean;
|
|
58
|
+
/** Huella SHA-256 del archivo revisado. */
|
|
59
|
+
fileSha256: string;
|
|
60
|
+
}
|
|
@@ -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 './transparency.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("./transparency.entity"), exports);
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { type DocumentAccessLevel, type DocumentStatus } from '../../base/entities';
|
|
2
|
+
import { type PersonalDataHintsEntity } from '../dataProtection';
|
|
3
|
+
/** En qué quedó un documento en Transparencia Activa: aún sin decidir, publicado o excluido con su motivo. */
|
|
4
|
+
export type TransparencyItemStatus = 'Pending' | 'Published' | 'Excluded';
|
|
5
|
+
/** Un documento que se publica en Transparencia Activa (Ley 20.285, art. 7°), con lo que se decidió de él. */
|
|
6
|
+
export interface TransparencyItemEntity {
|
|
7
|
+
documentId: string;
|
|
8
|
+
documentStatus: DocumentStatus;
|
|
9
|
+
verificationCode: string | null;
|
|
10
|
+
documentTypeName: string;
|
|
11
|
+
documentTypeAbbreviation: string | null;
|
|
12
|
+
/** Sección del Portal en que se publica, según su tipo documental. */
|
|
13
|
+
section: string | null;
|
|
14
|
+
/** Folio del documento (`Decreto Alcaldicio N° 15/2026`), o el nombre del tipo si no lleva número. */
|
|
15
|
+
reference: string;
|
|
16
|
+
correlative: number | null;
|
|
17
|
+
correlativeYear: number | null;
|
|
18
|
+
subject: string;
|
|
19
|
+
finishedAt: string | null;
|
|
20
|
+
annulledAt: string | null;
|
|
21
|
+
accessLevel: DocumentAccessLevel;
|
|
22
|
+
hasSensitiveData: boolean;
|
|
23
|
+
/** El original se puede publicar tal cual: es público (o su restricción terminó) y no tiene datos sensibles. */
|
|
24
|
+
originalIsPublic: boolean;
|
|
25
|
+
/** Para publicarlo hace falta antes la versión tarjada. */
|
|
26
|
+
needsRedacted: boolean;
|
|
27
|
+
redactedFileName: string | null;
|
|
28
|
+
/** RUN, correos y teléfonos que se reconocen en el texto del original (`null` si no tiene texto): ayudan a tarjar. */
|
|
29
|
+
personalData: PersonalDataHintsEntity | null;
|
|
30
|
+
status: TransparencyItemStatus;
|
|
31
|
+
/** Dirección de la publicación en el Portal de Transparencia, si se anotó. */
|
|
32
|
+
transparencyUrl: string | null;
|
|
33
|
+
/** Motivo de la exclusión, u observación de la publicación. */
|
|
34
|
+
transparencyNote: string | null;
|
|
35
|
+
transparencyAt: string | null;
|
|
36
|
+
transparencyByFullName: string | null;
|
|
37
|
+
/** Enlace público estable a la versión que se publica (`<TRANSPARENCY_URL>/<código>`), si está configurado. */
|
|
38
|
+
publicLink: string | null;
|
|
39
|
+
}
|
|
40
|
+
export interface TransparencyMonthCountsEntity {
|
|
41
|
+
total: number;
|
|
42
|
+
pending: number;
|
|
43
|
+
published: number;
|
|
44
|
+
excluded: number;
|
|
45
|
+
/** Publicados que después se anularon: hay que retirarlos o actualizarlos en el Portal. */
|
|
46
|
+
annulledPublished: number;
|
|
47
|
+
}
|
|
48
|
+
/** Lo firmado en un mes de los tipos documentales que se publican, con lo que falta por decidir. */
|
|
49
|
+
export interface TransparencyMonthEntity {
|
|
50
|
+
year: number;
|
|
51
|
+
month: number;
|
|
52
|
+
counts: TransparencyMonthCountsEntity;
|
|
53
|
+
/** Tipos documentales marcados para Transparencia Activa. Sin ninguno, la bandeja queda vacía. */
|
|
54
|
+
documentTypes: {
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
section: string | null;
|
|
58
|
+
}[];
|
|
59
|
+
items: TransparencyItemEntity[];
|
|
60
|
+
}
|
|
61
|
+
/** Lo que muestra la página pública de un documento publicado en Transparencia Activa. No exige sesión. */
|
|
62
|
+
export interface TransparencyPublicEntity {
|
|
63
|
+
verificationCode: string;
|
|
64
|
+
documentTypeName: string;
|
|
65
|
+
issuerName: string;
|
|
66
|
+
section: string | null;
|
|
67
|
+
reference: string;
|
|
68
|
+
/** La materia solo se muestra si el original es público; si se publicó tarjado, se lee en el archivo. */
|
|
69
|
+
subject: string | null;
|
|
70
|
+
finishedAt: string | null;
|
|
71
|
+
/** Anulado después de publicarse: se informa y ya no se descarga. */
|
|
72
|
+
annulled: boolean;
|
|
73
|
+
/** Se publicó una versión tarjada (sin datos personales o reservados). */
|
|
74
|
+
redacted: boolean;
|
|
75
|
+
canDownload: boolean;
|
|
76
|
+
publishedAt: string | null;
|
|
77
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './visaInitials.entity';
|