@muni-sanfer/types-gestor-documental 0.0.1-beta.15 → 0.0.1-beta.17
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 +63 -0
- package/dist/base/entities.js +12 -1
- package/dist/contracts/archivalSeries.contract.d.ts +50 -0
- package/dist/contracts/archivalSeries.contract.js +11 -0
- package/dist/contracts/caseFile.contract.d.ts +4 -0
- package/dist/contracts/document.contract.d.ts +12 -1
- package/dist/contracts/document.contract.js +1 -0
- package/dist/contracts/documentType.contract.d.ts +1 -0
- package/dist/contracts/holiday.contract.d.ts +30 -0
- package/dist/contracts/holiday.contract.js +9 -0
- package/dist/contracts/index.d.ts +37 -1
- package/dist/contracts/index.js +12 -0
- package/dist/contracts/scan.contract.d.ts +63 -0
- package/dist/contracts/scan.contract.js +12 -0
- package/dist/contracts/textSnippet.contract.d.ts +51 -0
- package/dist/contracts/textSnippet.contract.js +11 -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/caseFile/caseFile.entity.d.ts +8 -0
- package/dist/entities/document/document.entity.d.ts +30 -0
- package/dist/entities/documentType/documentType.entity.d.ts +5 -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 +4 -0
- package/dist/entities/index.js +4 -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/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/package.json +1 -1
- package/src/base/entities.ts +71 -0
- package/src/contracts/archivalSeries.contract.ts +53 -0
- package/src/contracts/caseFile.contract.ts +4 -0
- package/src/contracts/document.contract.ts +14 -0
- package/src/contracts/documentType.contract.ts +2 -0
- package/src/contracts/holiday.contract.ts +16 -0
- package/src/contracts/index.ts +17 -1
- package/src/contracts/scan.contract.ts +52 -0
- package/src/contracts/textSnippet.contract.ts +53 -0
- package/src/entities/archivalSeries/archivalSeries.entity.ts +32 -0
- package/src/entities/archivalSeries/index.ts +1 -0
- package/src/entities/caseFile/caseFile.entity.ts +4 -0
- package/src/entities/document/document.entity.ts +30 -0
- package/src/entities/documentType/documentType.entity.ts +2 -0
- package/src/entities/holiday/holiday.entity.ts +11 -0
- package/src/entities/holiday/index.ts +1 -0
- package/src/entities/index.ts +4 -0
- package/src/entities/scan/index.ts +1 -0
- package/src/entities/scan/scan.entity.ts +32 -0
- package/src/entities/textSnippet/index.ts +1 -0
- package/src/entities/textSnippet/textSnippet.entity.ts +24 -0
package/dist/base/entities.d.ts
CHANGED
|
@@ -166,6 +166,19 @@ export declare const CaseFileAccessAction: {
|
|
|
166
166
|
FileDownloaded: "FileDownloaded";
|
|
167
167
|
Exported: "Exported";
|
|
168
168
|
};
|
|
169
|
+
export type ScanSessionStatus = 'Open' | 'Ready';
|
|
170
|
+
export declare const ScanSessionStatus: {
|
|
171
|
+
Open: "Open";
|
|
172
|
+
Ready: "Ready";
|
|
173
|
+
};
|
|
174
|
+
export type TextSnippetSection = 'Vistos' | 'Considerando' | 'Resolutive' | 'Body' | 'Closing';
|
|
175
|
+
export declare const TextSnippetSection: {
|
|
176
|
+
Vistos: "Vistos";
|
|
177
|
+
Considerando: "Considerando";
|
|
178
|
+
Resolutive: "Resolutive";
|
|
179
|
+
Body: "Body";
|
|
180
|
+
Closing: "Closing";
|
|
181
|
+
};
|
|
169
182
|
export type WorkFolderItemKind = 'Document' | 'File';
|
|
170
183
|
export declare const WorkFolderItemKind: {
|
|
171
184
|
Document: "Document";
|
|
@@ -182,6 +195,8 @@ export interface DocumentTypeEntity {
|
|
|
182
195
|
resetsYearly: boolean;
|
|
183
196
|
numbered: boolean;
|
|
184
197
|
directorateCodeReference?: number | null;
|
|
198
|
+
archivalSeries?: ArchivalSeriesEntity | null;
|
|
199
|
+
archivalSeriesId?: string | null;
|
|
185
200
|
issuingEntity?: IssuingEntityEntity | null;
|
|
186
201
|
issuingEntityId?: string | null;
|
|
187
202
|
sharesNumberingWith?: DocumentTypeEntity | null;
|
|
@@ -202,6 +217,7 @@ export interface DocumentEntity {
|
|
|
202
217
|
keywords: string[];
|
|
203
218
|
accessLevel: DocumentAccessLevel;
|
|
204
219
|
hasSensitiveData: boolean;
|
|
220
|
+
restrictionEndsAt?: string | null;
|
|
205
221
|
status: DocumentStatus;
|
|
206
222
|
correlative?: number | null;
|
|
207
223
|
correlativeYear?: number | null;
|
|
@@ -345,6 +361,8 @@ export interface DocumentDeliveryEntity {
|
|
|
345
361
|
readAt?: string | null;
|
|
346
362
|
closedAt?: string | null;
|
|
347
363
|
closingNote?: string | null;
|
|
364
|
+
dueSoonRemindedAt?: string | null;
|
|
365
|
+
overdueRemindedAt?: string | null;
|
|
348
366
|
document?: DocumentEntity;
|
|
349
367
|
documentId: string;
|
|
350
368
|
createdAt: string;
|
|
@@ -390,6 +408,9 @@ export interface CaseFileEntity {
|
|
|
390
408
|
status: CaseFileStatus;
|
|
391
409
|
accessLevel: DocumentAccessLevel;
|
|
392
410
|
hasSensitiveData: boolean;
|
|
411
|
+
restrictionEndsAt?: string | null;
|
|
412
|
+
archivalSeries?: ArchivalSeriesEntity | null;
|
|
413
|
+
archivalSeriesId?: string | null;
|
|
393
414
|
incorporationMechanism: CaseFileIncorporationMechanism;
|
|
394
415
|
schemaVersion: string;
|
|
395
416
|
procedure?: ProcedureEntity;
|
|
@@ -533,6 +554,18 @@ export interface DocumentEmailCopyEntity {
|
|
|
533
554
|
documentId: string;
|
|
534
555
|
createdAt: string;
|
|
535
556
|
}
|
|
557
|
+
export interface ScanSessionEntity {
|
|
558
|
+
id: string;
|
|
559
|
+
tokenHash: string;
|
|
560
|
+
status: ScanSessionStatus;
|
|
561
|
+
employeeId: string;
|
|
562
|
+
pages: JsonValue;
|
|
563
|
+
fileId?: string | null;
|
|
564
|
+
fileName?: string | null;
|
|
565
|
+
expiresAt: string;
|
|
566
|
+
finishedAt?: string | null;
|
|
567
|
+
createdAt: string;
|
|
568
|
+
}
|
|
536
569
|
export interface DocumentExternalRecipientEntity {
|
|
537
570
|
id: string;
|
|
538
571
|
entityId: number;
|
|
@@ -598,6 +631,36 @@ export interface DocDigitalInboundEntity {
|
|
|
598
631
|
createdAt: string;
|
|
599
632
|
updatedAt: string;
|
|
600
633
|
}
|
|
634
|
+
export interface HolidayEntity {
|
|
635
|
+
id: string;
|
|
636
|
+
date: string;
|
|
637
|
+
name: string;
|
|
638
|
+
createdAt: string;
|
|
639
|
+
}
|
|
640
|
+
export interface TextSnippetEntity {
|
|
641
|
+
id: string;
|
|
642
|
+
title: string;
|
|
643
|
+
text: string;
|
|
644
|
+
section: TextSnippetSection;
|
|
645
|
+
keywords: string[];
|
|
646
|
+
enabled: boolean;
|
|
647
|
+
deleted: boolean;
|
|
648
|
+
createdAt: string;
|
|
649
|
+
updatedAt: string;
|
|
650
|
+
}
|
|
651
|
+
export interface ArchivalSeriesEntity {
|
|
652
|
+
id: string;
|
|
653
|
+
code: string;
|
|
654
|
+
name: string;
|
|
655
|
+
section?: string | null;
|
|
656
|
+
description?: string | null;
|
|
657
|
+
enabled: boolean;
|
|
658
|
+
documentTypes?: DocumentTypeEntity[];
|
|
659
|
+
caseFiles?: CaseFileEntity[];
|
|
660
|
+
deleted: boolean;
|
|
661
|
+
createdAt: string;
|
|
662
|
+
updatedAt: string;
|
|
663
|
+
}
|
|
601
664
|
export interface IssuingEntityEntity {
|
|
602
665
|
id: string;
|
|
603
666
|
name: string;
|
package/dist/base/entities.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by prisma-generator-typescript-interfaces
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.WorkFolderItemKind = exports.CaseFileAccessAction = exports.CaseFileTrackingAction = exports.CaseFileActorType = exports.CaseFileActorRelation = exports.CaseFileEntryKind = exports.CaseFileActuationType = exports.CaseFileIncorporationMechanism = exports.CaseFileStatus = exports.DocumentInstruction = exports.DocumentDeliveryOrigin = exports.DocumentRecipientType = exports.DocumentAttachmentType = exports.DocumentFlowStepType = exports.DocDigitalInboundStatus = exports.DocumentDispatchStatus = exports.DocumentOrigin = exports.DocumentTrackingAction = exports.DocumentParticipantStatus = exports.DocumentParticipantRole = exports.DocumentAccessLevel = exports.DocumentStatus = exports.DocumentCategory = void 0;
|
|
4
|
+
exports.WorkFolderItemKind = exports.TextSnippetSection = exports.ScanSessionStatus = exports.CaseFileAccessAction = exports.CaseFileTrackingAction = exports.CaseFileActorType = exports.CaseFileActorRelation = exports.CaseFileEntryKind = exports.CaseFileActuationType = exports.CaseFileIncorporationMechanism = exports.CaseFileStatus = exports.DocumentInstruction = exports.DocumentDeliveryOrigin = exports.DocumentRecipientType = exports.DocumentAttachmentType = exports.DocumentFlowStepType = exports.DocDigitalInboundStatus = exports.DocumentDispatchStatus = exports.DocumentOrigin = exports.DocumentTrackingAction = exports.DocumentParticipantStatus = exports.DocumentParticipantRole = exports.DocumentAccessLevel = exports.DocumentStatus = exports.DocumentCategory = void 0;
|
|
5
5
|
exports.DocumentCategory = {
|
|
6
6
|
Decree: 'Decree',
|
|
7
7
|
Communication: 'Communication',
|
|
@@ -148,6 +148,17 @@ exports.CaseFileAccessAction = {
|
|
|
148
148
|
FileDownloaded: 'FileDownloaded',
|
|
149
149
|
Exported: 'Exported',
|
|
150
150
|
};
|
|
151
|
+
exports.ScanSessionStatus = {
|
|
152
|
+
Open: 'Open',
|
|
153
|
+
Ready: 'Ready',
|
|
154
|
+
};
|
|
155
|
+
exports.TextSnippetSection = {
|
|
156
|
+
Vistos: 'Vistos',
|
|
157
|
+
Considerando: 'Considerando',
|
|
158
|
+
Resolutive: 'Resolutive',
|
|
159
|
+
Body: 'Body',
|
|
160
|
+
Closing: 'Closing',
|
|
161
|
+
};
|
|
151
162
|
exports.WorkFolderItemKind = {
|
|
152
163
|
Document: 'Document',
|
|
153
164
|
File: 'File',
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type ArchivalSeriesEntity } from '../base/entities';
|
|
2
|
+
import { type ArchivalSeriesCreateResponseEntity, type ArchivalSeriesGetAllResponseEntity, type ArchivalSeriesGetByIdResponseEntity, type ArchivalSeriesUpdateResponseEntity } from '../entities';
|
|
3
|
+
import { type RpcPage } from './contract';
|
|
4
|
+
/** Patrones NATS de `archivalSeries` (series del Cuadro de Clasificación): `<servicio>.<recurso>.<acción>`. */
|
|
5
|
+
export declare const ArchivalSeriesPatterns: {
|
|
6
|
+
readonly getAll: "gestorDocumental.archivalSeries.getAll";
|
|
7
|
+
readonly getById: "gestorDocumental.archivalSeries.getById";
|
|
8
|
+
readonly create: "gestorDocumental.archivalSeries.create";
|
|
9
|
+
readonly update: "gestorDocumental.archivalSeries.update";
|
|
10
|
+
readonly setEnabled: "gestorDocumental.archivalSeries.setEnabled";
|
|
11
|
+
};
|
|
12
|
+
/** Datos de una serie documental al crearla o editarla. */
|
|
13
|
+
export interface ArchivalSeriesWritePayload {
|
|
14
|
+
code: string;
|
|
15
|
+
name: string;
|
|
16
|
+
section?: string | null;
|
|
17
|
+
description?: string | null;
|
|
18
|
+
enabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ArchivalSeriesContract {
|
|
21
|
+
[ArchivalSeriesPatterns.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<ArchivalSeriesGetAllResponseEntity[]>;
|
|
33
|
+
};
|
|
34
|
+
[ArchivalSeriesPatterns.getById]: {
|
|
35
|
+
payload: Pick<ArchivalSeriesEntity, 'id'>;
|
|
36
|
+
response: ArchivalSeriesGetByIdResponseEntity;
|
|
37
|
+
};
|
|
38
|
+
[ArchivalSeriesPatterns.create]: {
|
|
39
|
+
payload: ArchivalSeriesWritePayload;
|
|
40
|
+
response: ArchivalSeriesCreateResponseEntity;
|
|
41
|
+
};
|
|
42
|
+
[ArchivalSeriesPatterns.update]: {
|
|
43
|
+
payload: ArchivalSeriesWritePayload & Pick<ArchivalSeriesEntity, 'id'>;
|
|
44
|
+
response: ArchivalSeriesUpdateResponseEntity;
|
|
45
|
+
};
|
|
46
|
+
[ArchivalSeriesPatterns.setEnabled]: {
|
|
47
|
+
payload: Pick<ArchivalSeriesEntity, 'id' | 'enabled'>;
|
|
48
|
+
response: ArchivalSeriesUpdateResponseEntity;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArchivalSeriesPatterns = void 0;
|
|
4
|
+
/** Patrones NATS de `archivalSeries` (series del Cuadro de Clasificación): `<servicio>.<recurso>.<acción>`. */
|
|
5
|
+
exports.ArchivalSeriesPatterns = {
|
|
6
|
+
getAll: 'gestorDocumental.archivalSeries.getAll',
|
|
7
|
+
getById: 'gestorDocumental.archivalSeries.getById',
|
|
8
|
+
create: 'gestorDocumental.archivalSeries.create',
|
|
9
|
+
update: 'gestorDocumental.archivalSeries.update',
|
|
10
|
+
setEnabled: 'gestorDocumental.archivalSeries.setEnabled',
|
|
11
|
+
};
|
|
@@ -51,6 +51,10 @@ export interface CaseFileWritePayload {
|
|
|
51
51
|
procedureId: string;
|
|
52
52
|
accessLevel: DocumentAccessLevel;
|
|
53
53
|
hasSensitiveData: boolean;
|
|
54
|
+
/** MGDEE8_2: fin de la restricción de acceso (ISO 8601), si no es público. */
|
|
55
|
+
restrictionEndsAt?: string | null;
|
|
56
|
+
/** MGDEE1_2: serie del Cuadro de Clasificación. */
|
|
57
|
+
archivalSeriesId?: string | null;
|
|
54
58
|
actors?: CaseFileActorInput[];
|
|
55
59
|
}
|
|
56
60
|
/** Actuación que se incorpora al índice: un documento del gestor, un archivo subido u otro expediente. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DocumentAccessLevel, type DocumentAttachmentEntity, type DocumentDeliveryEntity, type DocumentEntity, type DocumentInstruction, type DocumentParticipantEntity, type DocumentStatus } from '../base/entities';
|
|
2
|
-
import { type DocumentAnnulResponseEntity, type DocumentCloseDeliveryResponseEntity, type DocumentCreateResponseEntity, type DocumentDeriveResponseEntity, type DocumentDiscardResponseEntity, type DocumentEmailCopyIssuedEntity, type DocumentEmailCopyViewEntity, type DocumentGetAllResponseEntity, type DocumentGetByIdResponseEntity, type DocumentGetSummaryResponseEntity, type DocumentInboxItemEntity, type DocumentPublicFileResponseEntity, type DocumentReassignResponseEntity, type DocumentReviewResponseEntity, type DocumentSignManyResponseEntity, type DocumentAgendaResponseEntity, type DocumentComposeResponseEntity, type DocumentComposition, type DocumentTrailExportEntity, type DocumentUpdateResponseEntity, type DocumentVerifyResponseEntity } from '../entities';
|
|
2
|
+
import { type DocumentAnnulResponseEntity, type DocumentCloseDeliveryResponseEntity, type DocumentCreateResponseEntity, type DocumentDeriveResponseEntity, type DocumentDiscardResponseEntity, type DocumentEmailCopyIssuedEntity, type DocumentEmailCopyViewEntity, type DocumentReminderEntity, type DocumentGetAllResponseEntity, type DocumentGetByIdResponseEntity, type DocumentGetSummaryResponseEntity, type DocumentInboxItemEntity, type DocumentPublicFileResponseEntity, type DocumentReassignResponseEntity, type DocumentReviewResponseEntity, type DocumentSignManyResponseEntity, type DocumentAgendaResponseEntity, type DocumentComposeResponseEntity, type DocumentComposition, type DocumentTrailExportEntity, type DocumentUpdateResponseEntity, type DocumentVerifyResponseEntity } from '../entities';
|
|
3
3
|
import { type RpcPage } from './contract';
|
|
4
4
|
/** Patrones NATS de `document`: `<servicio>.<recurso>.<acción>`. */
|
|
5
5
|
export declare const DocumentPatterns: {
|
|
@@ -25,6 +25,7 @@ export declare const DocumentPatterns: {
|
|
|
25
25
|
readonly issueEmailCopies: "gestorDocumental.document.issueEmailCopies";
|
|
26
26
|
readonly getEmailCopy: "gestorDocumental.document.getEmailCopy";
|
|
27
27
|
readonly getEmailCopyFile: "gestorDocumental.document.getEmailCopyFile";
|
|
28
|
+
readonly claimReminders: "gestorDocumental.document.claimReminders";
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
30
31
|
* Funcionario que hace la operación y sus áreas (direcciones y departamentos a los que pertenece o que dirige). Lo
|
|
@@ -84,6 +85,7 @@ export interface DocumentWritePayload extends Pick<DocumentEntity, 'subject' | '
|
|
|
84
85
|
responseDueAt?: string | null;
|
|
85
86
|
replyToDocumentId?: string | null;
|
|
86
87
|
externalRecipients?: DocumentExternalRecipientInput[];
|
|
88
|
+
restrictionEndsAt?: string | null;
|
|
87
89
|
emailCopies?: DocumentEmailCopyInput[];
|
|
88
90
|
action?: 'Submit';
|
|
89
91
|
actor: DocumentActor;
|
|
@@ -276,6 +278,7 @@ export interface DocumentContract {
|
|
|
276
278
|
instruction: DocumentInstruction;
|
|
277
279
|
note?: string | null;
|
|
278
280
|
dueAt?: string | null;
|
|
281
|
+
dueBusinessDays?: number | null;
|
|
279
282
|
actor: DocumentActor;
|
|
280
283
|
viewAll?: boolean;
|
|
281
284
|
};
|
|
@@ -321,6 +324,14 @@ export interface DocumentContract {
|
|
|
321
324
|
};
|
|
322
325
|
response: DocumentEmailCopyViewEntity;
|
|
323
326
|
};
|
|
327
|
+
/**
|
|
328
|
+
* Recordatorios de plazos que corresponde enviar ahora: lo que vence en un día hábil y lo vencido sin atender. Cada
|
|
329
|
+
* uno se entrega una sola vez (queda marcado al reclamarlo), aunque lo pidan varias instancias del gateway a la vez.
|
|
330
|
+
*/
|
|
331
|
+
[DocumentPatterns.claimReminders]: {
|
|
332
|
+
payload: Record<string, never>;
|
|
333
|
+
response: DocumentReminderEntity[];
|
|
334
|
+
};
|
|
324
335
|
[DocumentPatterns.getEmailCopyFile]: {
|
|
325
336
|
payload: {
|
|
326
337
|
token: string;
|
|
@@ -25,4 +25,5 @@ exports.DocumentPatterns = {
|
|
|
25
25
|
issueEmailCopies: 'gestorDocumental.document.issueEmailCopies',
|
|
26
26
|
getEmailCopy: 'gestorDocumental.document.getEmailCopy',
|
|
27
27
|
getEmailCopyFile: 'gestorDocumental.document.getEmailCopyFile',
|
|
28
|
+
claimReminders: 'gestorDocumental.document.claimReminders',
|
|
28
29
|
};
|
|
@@ -36,6 +36,7 @@ export interface DocumentTypeWritePayload {
|
|
|
36
36
|
resetsYearly?: boolean;
|
|
37
37
|
numbered?: boolean;
|
|
38
38
|
directorateCodeReference?: number | null;
|
|
39
|
+
archivalSeriesId?: string | null;
|
|
39
40
|
issuingEntityId?: string | null;
|
|
40
41
|
sharesNumberingWithId?: string | null;
|
|
41
42
|
enabled?: boolean;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type HolidayRemoveResponseEntity, type HolidayResponseEntity } from '../entities';
|
|
2
|
+
/** Patrones NATS de `holiday`: feriados para contar días hábiles. */
|
|
3
|
+
export declare const HolidayPatterns: {
|
|
4
|
+
readonly getAll: "gestorDocumental.holiday.getAll";
|
|
5
|
+
readonly create: "gestorDocumental.holiday.create";
|
|
6
|
+
readonly remove: "gestorDocumental.holiday.remove";
|
|
7
|
+
};
|
|
8
|
+
export interface HolidayContract {
|
|
9
|
+
/** Feriados de un año, en orden. */
|
|
10
|
+
[HolidayPatterns.getAll]: {
|
|
11
|
+
payload: {
|
|
12
|
+
year: number;
|
|
13
|
+
};
|
|
14
|
+
response: HolidayResponseEntity[];
|
|
15
|
+
};
|
|
16
|
+
/** `date` como «AAAA-MM-DD». */
|
|
17
|
+
[HolidayPatterns.create]: {
|
|
18
|
+
payload: {
|
|
19
|
+
date: string;
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
response: HolidayResponseEntity;
|
|
23
|
+
};
|
|
24
|
+
[HolidayPatterns.remove]: {
|
|
25
|
+
payload: {
|
|
26
|
+
id: string;
|
|
27
|
+
};
|
|
28
|
+
response: HolidayRemoveResponseEntity;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HolidayPatterns = void 0;
|
|
4
|
+
/** Patrones NATS de `holiday`: feriados para contar días hábiles. */
|
|
5
|
+
exports.HolidayPatterns = {
|
|
6
|
+
getAll: 'gestorDocumental.holiday.getAll',
|
|
7
|
+
create: 'gestorDocumental.holiday.create',
|
|
8
|
+
remove: 'gestorDocumental.holiday.remove',
|
|
9
|
+
};
|
|
@@ -2,6 +2,10 @@ import { type CaseFileContract } from './caseFile.contract';
|
|
|
2
2
|
import { type DocumentContract } from './document.contract';
|
|
3
3
|
import { type DocumentTypeContract } from './documentType.contract';
|
|
4
4
|
import { type IssuingEntityContract } from './issuingEntity.contract';
|
|
5
|
+
import { type ArchivalSeriesContract } from './archivalSeries.contract';
|
|
6
|
+
import { type TextSnippetContract } from './textSnippet.contract';
|
|
7
|
+
import { type HolidayContract } from './holiday.contract';
|
|
8
|
+
import { type ScanContract } from './scan.contract';
|
|
5
9
|
import { type PartsOfficeContract } from './partsOffice.contract';
|
|
6
10
|
import { type ProcedureContract } from './procedure.contract';
|
|
7
11
|
import { type RegisterBookContract } from './registerBook.contract';
|
|
@@ -17,6 +21,10 @@ export * from './partsOffice.contract';
|
|
|
17
21
|
export * from './registerBook.contract';
|
|
18
22
|
export * from './signatureBatch.contract';
|
|
19
23
|
export * from './workFolder.contract';
|
|
24
|
+
export * from './scan.contract';
|
|
25
|
+
export * from './archivalSeries.contract';
|
|
26
|
+
export * from './textSnippet.contract';
|
|
27
|
+
export * from './holiday.contract';
|
|
20
28
|
/** Patrones NATS de gestor-documental-ms, por recurso: `gestorDocumental.<recurso>.<acción>`. */
|
|
21
29
|
export declare const GestorDocumentalPatterns: {
|
|
22
30
|
readonly documentType: {
|
|
@@ -49,6 +57,7 @@ export declare const GestorDocumentalPatterns: {
|
|
|
49
57
|
readonly issueEmailCopies: "gestorDocumental.document.issueEmailCopies";
|
|
50
58
|
readonly getEmailCopy: "gestorDocumental.document.getEmailCopy";
|
|
51
59
|
readonly getEmailCopyFile: "gestorDocumental.document.getEmailCopyFile";
|
|
60
|
+
readonly claimReminders: "gestorDocumental.document.claimReminders";
|
|
52
61
|
};
|
|
53
62
|
readonly procedure: {
|
|
54
63
|
readonly getAll: "gestorDocumental.procedure.getAll";
|
|
@@ -128,6 +137,33 @@ export declare const GestorDocumentalPatterns: {
|
|
|
128
137
|
readonly remove: "gestorDocumental.workFolder.remove";
|
|
129
138
|
readonly convert: "gestorDocumental.workFolder.convert";
|
|
130
139
|
};
|
|
140
|
+
readonly scan: {
|
|
141
|
+
readonly create: "gestorDocumental.scan.create";
|
|
142
|
+
readonly getById: "gestorDocumental.scan.getById";
|
|
143
|
+
readonly getFile: "gestorDocumental.scan.getFile";
|
|
144
|
+
readonly getByToken: "gestorDocumental.scan.getByToken";
|
|
145
|
+
readonly addPage: "gestorDocumental.scan.addPage";
|
|
146
|
+
readonly finish: "gestorDocumental.scan.finish";
|
|
147
|
+
};
|
|
148
|
+
readonly archivalSeries: {
|
|
149
|
+
readonly getAll: "gestorDocumental.archivalSeries.getAll";
|
|
150
|
+
readonly getById: "gestorDocumental.archivalSeries.getById";
|
|
151
|
+
readonly create: "gestorDocumental.archivalSeries.create";
|
|
152
|
+
readonly update: "gestorDocumental.archivalSeries.update";
|
|
153
|
+
readonly setEnabled: "gestorDocumental.archivalSeries.setEnabled";
|
|
154
|
+
};
|
|
155
|
+
readonly textSnippet: {
|
|
156
|
+
readonly getAll: "gestorDocumental.textSnippet.getAll";
|
|
157
|
+
readonly getById: "gestorDocumental.textSnippet.getById";
|
|
158
|
+
readonly create: "gestorDocumental.textSnippet.create";
|
|
159
|
+
readonly update: "gestorDocumental.textSnippet.update";
|
|
160
|
+
readonly setEnabled: "gestorDocumental.textSnippet.setEnabled";
|
|
161
|
+
};
|
|
162
|
+
readonly holiday: {
|
|
163
|
+
readonly getAll: "gestorDocumental.holiday.getAll";
|
|
164
|
+
readonly create: "gestorDocumental.holiday.create";
|
|
165
|
+
readonly remove: "gestorDocumental.holiday.remove";
|
|
166
|
+
};
|
|
131
167
|
};
|
|
132
168
|
/** Contrato completo de gestor-documental-ms: la unión de los contratos de sus recursos. */
|
|
133
|
-
export type GestorDocumentalContract = DocumentTypeContract & DocumentContract & ProcedureContract & IssuingEntityContract & CaseFileContract & PartsOfficeContract & RegisterBookContract & SignatureBatchContract & WorkFolderContract;
|
|
169
|
+
export type GestorDocumentalContract = DocumentTypeContract & DocumentContract & ProcedureContract & IssuingEntityContract & CaseFileContract & PartsOfficeContract & RegisterBookContract & SignatureBatchContract & WorkFolderContract & ScanContract & ArchivalSeriesContract & TextSnippetContract & HolidayContract;
|
package/dist/contracts/index.js
CHANGED
|
@@ -19,6 +19,10 @@ const caseFile_contract_1 = require("./caseFile.contract");
|
|
|
19
19
|
const document_contract_1 = require("./document.contract");
|
|
20
20
|
const documentType_contract_1 = require("./documentType.contract");
|
|
21
21
|
const issuingEntity_contract_1 = require("./issuingEntity.contract");
|
|
22
|
+
const archivalSeries_contract_1 = require("./archivalSeries.contract");
|
|
23
|
+
const textSnippet_contract_1 = require("./textSnippet.contract");
|
|
24
|
+
const holiday_contract_1 = require("./holiday.contract");
|
|
25
|
+
const scan_contract_1 = require("./scan.contract");
|
|
22
26
|
const partsOffice_contract_1 = require("./partsOffice.contract");
|
|
23
27
|
const procedure_contract_1 = require("./procedure.contract");
|
|
24
28
|
const registerBook_contract_1 = require("./registerBook.contract");
|
|
@@ -34,6 +38,10 @@ __exportStar(require("./partsOffice.contract"), exports);
|
|
|
34
38
|
__exportStar(require("./registerBook.contract"), exports);
|
|
35
39
|
__exportStar(require("./signatureBatch.contract"), exports);
|
|
36
40
|
__exportStar(require("./workFolder.contract"), exports);
|
|
41
|
+
__exportStar(require("./scan.contract"), exports);
|
|
42
|
+
__exportStar(require("./archivalSeries.contract"), exports);
|
|
43
|
+
__exportStar(require("./textSnippet.contract"), exports);
|
|
44
|
+
__exportStar(require("./holiday.contract"), exports);
|
|
37
45
|
/** Patrones NATS de gestor-documental-ms, por recurso: `gestorDocumental.<recurso>.<acción>`. */
|
|
38
46
|
exports.GestorDocumentalPatterns = {
|
|
39
47
|
documentType: documentType_contract_1.DocumentTypePatterns,
|
|
@@ -45,4 +53,8 @@ exports.GestorDocumentalPatterns = {
|
|
|
45
53
|
registerBook: registerBook_contract_1.RegisterBookPatterns,
|
|
46
54
|
signatureBatch: signatureBatch_contract_1.SignatureBatchPatterns,
|
|
47
55
|
workFolder: workFolder_contract_1.WorkFolderPatterns,
|
|
56
|
+
scan: scan_contract_1.ScanPatterns,
|
|
57
|
+
archivalSeries: archivalSeries_contract_1.ArchivalSeriesPatterns,
|
|
58
|
+
textSnippet: textSnippet_contract_1.TextSnippetPatterns,
|
|
59
|
+
holiday: holiday_contract_1.HolidayPatterns,
|
|
48
60
|
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type ScanSessionCreateResponseEntity, type ScanSessionFileResponseEntity, type ScanSessionPublicEntity, type ScanSessionResponseEntity } from '../entities';
|
|
2
|
+
import { type DocumentActor } from './document.contract';
|
|
3
|
+
/** Patrones NATS de `scan`: escanear con el celular. */
|
|
4
|
+
export declare const ScanPatterns: {
|
|
5
|
+
readonly create: "gestorDocumental.scan.create";
|
|
6
|
+
readonly getById: "gestorDocumental.scan.getById";
|
|
7
|
+
readonly getFile: "gestorDocumental.scan.getFile";
|
|
8
|
+
readonly getByToken: "gestorDocumental.scan.getByToken";
|
|
9
|
+
readonly addPage: "gestorDocumental.scan.addPage";
|
|
10
|
+
readonly finish: "gestorDocumental.scan.finish";
|
|
11
|
+
};
|
|
12
|
+
export interface ScanContract {
|
|
13
|
+
/**
|
|
14
|
+
* Abre una sesión de escaneo para el funcionario. `url` es la dirección pública del celular (sin el token): con ella
|
|
15
|
+
* se arma el QR que se muestra en el escritorio.
|
|
16
|
+
*/
|
|
17
|
+
[ScanPatterns.create]: {
|
|
18
|
+
payload: {
|
|
19
|
+
url: string;
|
|
20
|
+
actor: DocumentActor;
|
|
21
|
+
};
|
|
22
|
+
response: ScanSessionCreateResponseEntity;
|
|
23
|
+
};
|
|
24
|
+
/** Estado de la sesión, para quien la abrió: el escritorio la consulta hasta que el PDF esté listo. */
|
|
25
|
+
[ScanPatterns.getById]: {
|
|
26
|
+
payload: {
|
|
27
|
+
id: string;
|
|
28
|
+
actor: DocumentActor;
|
|
29
|
+
};
|
|
30
|
+
response: ScanSessionResponseEntity;
|
|
31
|
+
};
|
|
32
|
+
[ScanPatterns.getFile]: {
|
|
33
|
+
payload: {
|
|
34
|
+
id: string;
|
|
35
|
+
actor: DocumentActor;
|
|
36
|
+
};
|
|
37
|
+
response: ScanSessionFileResponseEntity;
|
|
38
|
+
};
|
|
39
|
+
/** Sin sesión, desde el celular, con el token del QR. */
|
|
40
|
+
[ScanPatterns.getByToken]: {
|
|
41
|
+
payload: {
|
|
42
|
+
token: string;
|
|
43
|
+
};
|
|
44
|
+
response: ScanSessionPublicEntity;
|
|
45
|
+
};
|
|
46
|
+
/** Agrega una foto ya subida al gestor de archivos (la sube el gateway). */
|
|
47
|
+
[ScanPatterns.addPage]: {
|
|
48
|
+
payload: {
|
|
49
|
+
token: string;
|
|
50
|
+
fileId: string;
|
|
51
|
+
contentType: string;
|
|
52
|
+
size: number;
|
|
53
|
+
};
|
|
54
|
+
response: ScanSessionPublicEntity;
|
|
55
|
+
};
|
|
56
|
+
/** Junta las fotos en un PDF y cierra la sesión. */
|
|
57
|
+
[ScanPatterns.finish]: {
|
|
58
|
+
payload: {
|
|
59
|
+
token: string;
|
|
60
|
+
};
|
|
61
|
+
response: ScanSessionPublicEntity;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScanPatterns = void 0;
|
|
4
|
+
/** Patrones NATS de `scan`: escanear con el celular. */
|
|
5
|
+
exports.ScanPatterns = {
|
|
6
|
+
create: 'gestorDocumental.scan.create',
|
|
7
|
+
getById: 'gestorDocumental.scan.getById',
|
|
8
|
+
getFile: 'gestorDocumental.scan.getFile',
|
|
9
|
+
getByToken: 'gestorDocumental.scan.getByToken',
|
|
10
|
+
addPage: 'gestorDocumental.scan.addPage',
|
|
11
|
+
finish: 'gestorDocumental.scan.finish',
|
|
12
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type TextSnippetEntity, type TextSnippetSection } from '../base/entities';
|
|
2
|
+
import { type TextSnippetCreateResponseEntity, type TextSnippetGetAllResponseEntity, type TextSnippetGetByIdResponseEntity, type TextSnippetUpdateResponseEntity } from '../entities';
|
|
3
|
+
import { type RpcPage } from './contract';
|
|
4
|
+
/** Patrones NATS de `textSnippet` (biblioteca de vistos y cláusulas): `<servicio>.<recurso>.<acción>`. */
|
|
5
|
+
export declare const TextSnippetPatterns: {
|
|
6
|
+
readonly getAll: "gestorDocumental.textSnippet.getAll";
|
|
7
|
+
readonly getById: "gestorDocumental.textSnippet.getById";
|
|
8
|
+
readonly create: "gestorDocumental.textSnippet.create";
|
|
9
|
+
readonly update: "gestorDocumental.textSnippet.update";
|
|
10
|
+
readonly setEnabled: "gestorDocumental.textSnippet.setEnabled";
|
|
11
|
+
};
|
|
12
|
+
/** Datos de un texto de la biblioteca al crearlo o editarlo. */
|
|
13
|
+
export interface TextSnippetWritePayload {
|
|
14
|
+
title: string;
|
|
15
|
+
text: string;
|
|
16
|
+
section: TextSnippetSection;
|
|
17
|
+
keywords?: string[];
|
|
18
|
+
enabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface TextSnippetContract {
|
|
21
|
+
[TextSnippetPatterns.getAll]: {
|
|
22
|
+
payload: {
|
|
23
|
+
pagination?: {
|
|
24
|
+
page?: number;
|
|
25
|
+
limit?: number;
|
|
26
|
+
};
|
|
27
|
+
filters?: {
|
|
28
|
+
search?: string;
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
section?: TextSnippetSection;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
response: RpcPage<TextSnippetGetAllResponseEntity[]>;
|
|
34
|
+
};
|
|
35
|
+
[TextSnippetPatterns.getById]: {
|
|
36
|
+
payload: Pick<TextSnippetEntity, 'id'>;
|
|
37
|
+
response: TextSnippetGetByIdResponseEntity;
|
|
38
|
+
};
|
|
39
|
+
[TextSnippetPatterns.create]: {
|
|
40
|
+
payload: TextSnippetWritePayload;
|
|
41
|
+
response: TextSnippetCreateResponseEntity;
|
|
42
|
+
};
|
|
43
|
+
[TextSnippetPatterns.update]: {
|
|
44
|
+
payload: TextSnippetWritePayload & Pick<TextSnippetEntity, 'id'>;
|
|
45
|
+
response: TextSnippetUpdateResponseEntity;
|
|
46
|
+
};
|
|
47
|
+
[TextSnippetPatterns.setEnabled]: {
|
|
48
|
+
payload: Pick<TextSnippetEntity, 'id' | 'enabled'>;
|
|
49
|
+
response: TextSnippetUpdateResponseEntity;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextSnippetPatterns = void 0;
|
|
4
|
+
/** Patrones NATS de `textSnippet` (biblioteca de vistos y cláusulas): `<servicio>.<recurso>.<acción>`. */
|
|
5
|
+
exports.TextSnippetPatterns = {
|
|
6
|
+
getAll: 'gestorDocumental.textSnippet.getAll',
|
|
7
|
+
getById: 'gestorDocumental.textSnippet.getById',
|
|
8
|
+
create: 'gestorDocumental.textSnippet.create',
|
|
9
|
+
update: 'gestorDocumental.textSnippet.update',
|
|
10
|
+
setEnabled: 'gestorDocumental.textSnippet.setEnabled',
|
|
11
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ArchivalSeriesEntity } from '../../base/entities';
|
|
2
|
+
export interface ArchivalSeriesGetAllResponseEntity {
|
|
3
|
+
id: ArchivalSeriesEntity['id'];
|
|
4
|
+
code: ArchivalSeriesEntity['code'];
|
|
5
|
+
name: ArchivalSeriesEntity['name'];
|
|
6
|
+
section: ArchivalSeriesEntity['section'];
|
|
7
|
+
description: ArchivalSeriesEntity['description'];
|
|
8
|
+
enabled: ArchivalSeriesEntity['enabled'];
|
|
9
|
+
/** Cuántos tipos documentales y expedientes la usan. */
|
|
10
|
+
documentTypes: number;
|
|
11
|
+
caseFiles: number;
|
|
12
|
+
}
|
|
13
|
+
export type ArchivalSeriesGetByIdResponseEntity = ArchivalSeriesGetAllResponseEntity;
|
|
14
|
+
/** Cómo se cita una serie donde se usa: código y nombre. */
|
|
15
|
+
export interface ArchivalSeriesSummaryEntity {
|
|
16
|
+
id: string;
|
|
17
|
+
code: string;
|
|
18
|
+
name: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ArchivalSeriesCreateResponseEntity {
|
|
21
|
+
id: ArchivalSeriesEntity['id'];
|
|
22
|
+
ok: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface ArchivalSeriesUpdateResponseEntity {
|
|
25
|
+
id: ArchivalSeriesEntity['id'];
|
|
26
|
+
ok: boolean;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './archivalSeries.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("./archivalSeries.entity"), exports);
|
|
@@ -120,6 +120,14 @@ export interface CaseFileGetByIdResponseEntity extends CaseFileGetAllResponseEnt
|
|
|
120
120
|
closingNote: CaseFileEntity['closingNote'];
|
|
121
121
|
/** Expediente híbrido: tiene documentos en papel que no se pudieron digitalizar. */
|
|
122
122
|
isHybrid: boolean;
|
|
123
|
+
/** MGDEE1_2: serie del Cuadro de Clasificación. */
|
|
124
|
+
archivalSeries: {
|
|
125
|
+
id: string;
|
|
126
|
+
code: string;
|
|
127
|
+
name: string;
|
|
128
|
+
} | null;
|
|
129
|
+
/** MGDEE8_2: fin de la restricción de acceso. */
|
|
130
|
+
restrictionEndsAt: string | null;
|
|
123
131
|
index: CaseFileEntryResponseEntity[];
|
|
124
132
|
sharedWith: CaseFileParticipantResponseEntity[];
|
|
125
133
|
actors: CaseFileActorResponseEntity[];
|