@muni-sanfer/types-gestor-documental 0.0.1-beta.81 → 0.0.1-beta.83
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 +7 -0
- package/dist/base/entities.js +6 -2
- package/dist/contracts/documentType.contract.d.ts +2 -1
- package/dist/entities/document/document.entity.d.ts +4 -1
- package/dist/entities/documentType/documentType.entity.d.ts +2 -0
- package/package.json +1 -1
- package/src/base/entities.ts +9 -0
- package/src/contracts/documentType.contract.ts +3 -0
- package/src/entities/document/document.entity.ts +4 -1
- package/src/entities/documentType/documentType.entity.ts +2 -0
package/dist/base/entities.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export type DecreeKind = 'Exempt' | 'Affected';
|
|
2
|
+
export declare const DecreeKind: {
|
|
3
|
+
Exempt: "Exempt";
|
|
4
|
+
Affected: "Affected";
|
|
5
|
+
};
|
|
1
6
|
export type DocumentCategory = 'Letter' | 'Circular' | 'Memorandum' | 'Office' | 'Opinion' | 'Report' | 'Agreement' | 'Decree' | 'Resolution' | 'ResolutionWithReview' | 'Other';
|
|
2
7
|
export declare const DocumentCategory: {
|
|
3
8
|
Letter: "Letter";
|
|
@@ -465,6 +470,7 @@ export interface DocumentTypeEntity {
|
|
|
465
470
|
numbered: boolean;
|
|
466
471
|
numberingScope: DocumentNumberingScope;
|
|
467
472
|
usesPartsOffice: boolean;
|
|
473
|
+
decreeKind?: DecreeKind | null;
|
|
468
474
|
processingSlaDays?: number | null;
|
|
469
475
|
turnSlaDays?: number | null;
|
|
470
476
|
reviewSlaDays?: number | null;
|
|
@@ -697,6 +703,7 @@ export interface DocumentTypeVersionEntity {
|
|
|
697
703
|
numbered: boolean;
|
|
698
704
|
numberingScope: DocumentNumberingScope;
|
|
699
705
|
usesPartsOffice: boolean;
|
|
706
|
+
decreeKind?: DecreeKind | null;
|
|
700
707
|
processingSlaDays?: number | null;
|
|
701
708
|
turnSlaDays?: number | null;
|
|
702
709
|
reviewSlaDays?: number | null;
|
package/dist/base/entities.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
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.
|
|
5
|
-
exports.DraftingRequestEventAction = exports.DraftingRequestStatus = exports.NotificationMode = exports.MailAuthentication = exports.MailIntakeStatus = exports.DeskFileTarget = exports.DeskFileSource = exports.DataBreachNoticeMeans = exports.DataBreachEventAction = void 0;
|
|
4
|
+
exports.DataBreachKind = exports.DataRightsEventAction = exports.DataRightsResolution = exports.DataRightsRequestStatus = exports.DataRightsChannel = exports.DataRight = exports.DataLegalBasis = exports.TransparencyStatus = exports.AccessRequestEventAction = exports.AccessRequestResolution = exports.AccessRequestStatus = exports.AccessRequestChannel = exports.DispositionKind = exports.FinalDisposition = exports.AuditAction = exports.AuditEntity = exports.DocumentAccessAction = exports.QualityMetricKey = exports.ServiceOutageKind = exports.WorkFolderItemKind = exports.HolidaySource = 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.CommunicationMeans = exports.DocumentOrigin = exports.DraftReviewStatus = exports.DraftReviewStage = exports.DocumentTrackingAction = exports.DocumentParticipantStatus = exports.DocumentParticipantRole = exports.DocumentAccessLevel = exports.DocumentStatus = exports.DocumentNumberingScope = exports.DocumentCategory = exports.DecreeKind = void 0;
|
|
5
|
+
exports.DraftingRequestEventAction = exports.DraftingRequestStatus = exports.NotificationMode = exports.MailAuthentication = exports.MailIntakeStatus = exports.DeskFileTarget = exports.DeskFileSource = exports.DataBreachNoticeMeans = exports.DataBreachEventAction = exports.DataBreachStatus = void 0;
|
|
6
|
+
exports.DecreeKind = {
|
|
7
|
+
Exempt: 'Exempt',
|
|
8
|
+
Affected: 'Affected',
|
|
9
|
+
};
|
|
6
10
|
exports.DocumentCategory = {
|
|
7
11
|
Letter: 'Letter',
|
|
8
12
|
Circular: 'Circular',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DocumentCategory, type DocumentNumberingScope, type DocumentParticipantRole, type DocumentTypeEntity } from '../base/entities';
|
|
1
|
+
import { type DecreeKind, type DocumentCategory, type DocumentNumberingScope, type DocumentParticipantRole, type DocumentTypeEntity } from '../base/entities';
|
|
2
2
|
import { type CategoryNumberingResponseEntity, type CategoryNumberingUpdateResponseEntity, type DocumentTemplateContent, type DocumentTypeCreateResponseEntity, type DocumentTypeGetAllResponseEntity, type DocumentTypeGetByIdResponseEntity, type DocumentTypeUpdateResponseEntity } from '../entities';
|
|
3
3
|
import { type RpcPage } from './contract';
|
|
4
4
|
/** Patrones NATS de `documentType`: `<servicio>.<recurso>.<acción>`. */
|
|
@@ -39,6 +39,7 @@ export interface DocumentTypeWritePayload {
|
|
|
39
39
|
numbered?: boolean;
|
|
40
40
|
numberingScope?: DocumentNumberingScope;
|
|
41
41
|
usesPartsOffice?: boolean;
|
|
42
|
+
decreeKind?: DecreeKind | null;
|
|
42
43
|
processingSlaDays?: number | null;
|
|
43
44
|
turnSlaDays?: number | null;
|
|
44
45
|
reviewSlaDays?: number | null;
|
|
@@ -538,7 +538,8 @@ export type RichBlock = {
|
|
|
538
538
|
* `rows[fila][columna]`: el contenido de cada celda. `widths`: el ancho de cada columna, en % del ancho de la tabla
|
|
539
539
|
* (sin valor, todas iguales; solo en la tabla con bordes). `cellAlign[fila][columna]`: la alineación del texto de cada
|
|
540
540
|
* celda (sin valor, a la izquierda). `header`: la primera fila es de encabezado (en negrita y sombreada; en el PDF se
|
|
541
|
-
* repite en cada página).
|
|
541
|
+
* repite en cada página). `width` y `align`: el ancho de la tabla con bordes, en % del ancho del texto (sin valor,
|
|
542
|
+
* todo), y dónde va si es más angosta (sin valor, a la izquierda).
|
|
542
543
|
*/
|
|
543
544
|
| {
|
|
544
545
|
id: string;
|
|
@@ -549,6 +550,8 @@ export type RichBlock = {
|
|
|
549
550
|
widths?: number[];
|
|
550
551
|
cellAlign?: (RichAlign | null)[][];
|
|
551
552
|
header?: boolean;
|
|
553
|
+
width?: number;
|
|
554
|
+
align?: 'left' | 'center' | 'right';
|
|
552
555
|
} | {
|
|
553
556
|
id: string;
|
|
554
557
|
type: 'rule';
|
|
@@ -24,6 +24,8 @@ export interface DocumentTypeGetAllResponseEntity {
|
|
|
24
24
|
numbered: DocumentTypeEntity['numbered'];
|
|
25
25
|
numberingScope: DocumentTypeEntity['numberingScope'];
|
|
26
26
|
usesPartsOffice: DocumentTypeEntity['usesPartsOffice'];
|
|
27
|
+
/** En la categoría Decreto: si sus decretos son exentos o afectos. En las demás, `null`. */
|
|
28
|
+
decreeKind: DocumentTypeEntity['decreeKind'];
|
|
27
29
|
processingSlaDays: DocumentTypeEntity['processingSlaDays'];
|
|
28
30
|
turnSlaDays: DocumentTypeEntity['turnSlaDays'];
|
|
29
31
|
reviewSlaDays: DocumentTypeEntity['reviewSlaDays'];
|
package/package.json
CHANGED
package/src/base/entities.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
// This file was auto-generated by prisma-generator-typescript-interfaces
|
|
2
2
|
|
|
3
|
+
export type DecreeKind = 'Exempt' | 'Affected';
|
|
4
|
+
|
|
5
|
+
export const DecreeKind = {
|
|
6
|
+
Exempt: 'Exempt',
|
|
7
|
+
Affected: 'Affected',
|
|
8
|
+
} satisfies Record<string, DecreeKind>;
|
|
9
|
+
|
|
3
10
|
export type DocumentCategory =
|
|
4
11
|
| 'Letter'
|
|
5
12
|
| 'Circular'
|
|
@@ -690,6 +697,7 @@ export interface DocumentTypeEntity {
|
|
|
690
697
|
numbered: boolean;
|
|
691
698
|
numberingScope: DocumentNumberingScope;
|
|
692
699
|
usesPartsOffice: boolean;
|
|
700
|
+
decreeKind?: DecreeKind | null;
|
|
693
701
|
processingSlaDays?: number | null;
|
|
694
702
|
turnSlaDays?: number | null;
|
|
695
703
|
reviewSlaDays?: number | null;
|
|
@@ -932,6 +940,7 @@ export interface DocumentTypeVersionEntity {
|
|
|
932
940
|
numbered: boolean;
|
|
933
941
|
numberingScope: DocumentNumberingScope;
|
|
934
942
|
usesPartsOffice: boolean;
|
|
943
|
+
decreeKind?: DecreeKind | null;
|
|
935
944
|
processingSlaDays?: number | null;
|
|
936
945
|
turnSlaDays?: number | null;
|
|
937
946
|
reviewSlaDays?: number | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
type DecreeKind,
|
|
2
3
|
type DocumentCategory,
|
|
3
4
|
type DocumentNumberingScope,
|
|
4
5
|
type DocumentParticipantRole,
|
|
@@ -54,6 +55,8 @@ export interface DocumentTypeWritePayload {
|
|
|
54
55
|
numberingScope?: DocumentNumberingScope;
|
|
55
56
|
// Pasa por Oficina de Partes (por omisión, sí). Sin ella, el documento solo se firma: va solo a funcionarios y áreas.
|
|
56
57
|
usesPartsOffice?: boolean;
|
|
58
|
+
// En la categoría Decreto, obligatorio: sus decretos son exentos o afectos. En las demás se ignora.
|
|
59
|
+
decreeKind?: DecreeKind | null;
|
|
57
60
|
// Plazos de servicio en días hábiles (sin valor: sin plazo): de la tramitación, de cada turno y de cada revisión.
|
|
58
61
|
processingSlaDays?: number | null;
|
|
59
62
|
turnSlaDays?: number | null;
|
|
@@ -579,7 +579,8 @@ export type RichBlock =
|
|
|
579
579
|
* `rows[fila][columna]`: el contenido de cada celda. `widths`: el ancho de cada columna, en % del ancho de la tabla
|
|
580
580
|
* (sin valor, todas iguales; solo en la tabla con bordes). `cellAlign[fila][columna]`: la alineación del texto de cada
|
|
581
581
|
* celda (sin valor, a la izquierda). `header`: la primera fila es de encabezado (en negrita y sombreada; en el PDF se
|
|
582
|
-
* repite en cada página).
|
|
582
|
+
* repite en cada página). `width` y `align`: el ancho de la tabla con bordes, en % del ancho del texto (sin valor,
|
|
583
|
+
* todo), y dónde va si es más angosta (sin valor, a la izquierda).
|
|
583
584
|
*/
|
|
584
585
|
| {
|
|
585
586
|
id: string;
|
|
@@ -590,6 +591,8 @@ export type RichBlock =
|
|
|
590
591
|
widths?: number[];
|
|
591
592
|
cellAlign?: (RichAlign | null)[][];
|
|
592
593
|
header?: boolean;
|
|
594
|
+
width?: number;
|
|
595
|
+
align?: 'left' | 'center' | 'right';
|
|
593
596
|
}
|
|
594
597
|
| { id: string; type: 'rule'; locked?: boolean }
|
|
595
598
|
| { id: string; type: 'pageBreak'; locked?: boolean };
|
|
@@ -33,6 +33,8 @@ export interface DocumentTypeGetAllResponseEntity {
|
|
|
33
33
|
// Pasa por Oficina de Partes: sus documentos pueden ir a otras instituciones y con copias por correo. Sin ella,
|
|
34
34
|
// solo se firman y van a funcionarios y áreas de la municipalidad.
|
|
35
35
|
usesPartsOffice: DocumentTypeEntity['usesPartsOffice'];
|
|
36
|
+
/** En la categoría Decreto: si sus decretos son exentos o afectos. En las demás, `null`. */
|
|
37
|
+
decreeKind: DocumentTypeEntity['decreeKind'];
|
|
36
38
|
// Plazos de servicio (SLA) en días hábiles: de la tramitación completa (desde que entra a tramitación o se aprueba
|
|
37
39
|
// el oficial), de cada turno de visación o firma y de cada ronda de revisión del borrador o del oficial. `null`: sin
|
|
38
40
|
// plazo.
|