@muni-sanfer/types-gestor-documental 0.0.1-beta.82 → 0.0.1-beta.84
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/stampPlacement.d.ts +1 -1
- package/dist/entities/document/stampPlacement.js +2 -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/stampPlacement.ts +2 -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;
|
|
@@ -10,7 +10,8 @@ exports.signatureHeightFor = exports.STAMP_PLACEMENT_LIMITS = void 0;
|
|
|
10
10
|
exports.STAMP_PLACEMENT_LIMITS = {
|
|
11
11
|
/** Ancho sobre alto del sello de firma (la imagen de firmas-ms mide ~2084x835 px). */
|
|
12
12
|
signatureAspect: 2084 / 835,
|
|
13
|
-
|
|
13
|
+
// el de siempre es el del CDP y los informes de la suite (pre-obligado-ms): 245 × 98 pt
|
|
14
|
+
signature: { minWidth: 90, maxWidth: 260, defaultWidth: 245 },
|
|
14
15
|
visa: { minWidth: 24, maxWidth: 220, minHeight: 12, maxHeight: 70, defaultWidth: 80, defaultHeight: 24 },
|
|
15
16
|
bottomReserved: 60,
|
|
16
17
|
};
|
|
@@ -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;
|
|
@@ -40,7 +40,8 @@ export interface TemplateStampPlacements extends DocumentStampPlacements {
|
|
|
40
40
|
export const STAMP_PLACEMENT_LIMITS = {
|
|
41
41
|
/** Ancho sobre alto del sello de firma (la imagen de firmas-ms mide ~2084x835 px). */
|
|
42
42
|
signatureAspect: 2084 / 835,
|
|
43
|
-
|
|
43
|
+
// el de siempre es el del CDP y los informes de la suite (pre-obligado-ms): 245 × 98 pt
|
|
44
|
+
signature: { minWidth: 90, maxWidth: 260, defaultWidth: 245 },
|
|
44
45
|
visa: { minWidth: 24, maxWidth: 220, minHeight: 12, maxHeight: 70, defaultWidth: 80, defaultHeight: 24 },
|
|
45
46
|
bottomReserved: 60,
|
|
46
47
|
} as const;
|
|
@@ -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.
|