@muni-sanfer/types-gestor-documental 0.0.1-beta.58 → 0.0.1-beta.59
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 +2 -0
- package/dist/entities/documentType/documentType.entity.d.ts +1 -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 +2 -0
- package/src/entities/documentType/documentType.entity.ts +2 -0
package/dist/base/entities.d.ts
CHANGED
|
@@ -4,6 +4,11 @@ export declare const DocumentCategory: {
|
|
|
4
4
|
Communication: "Communication";
|
|
5
5
|
Other: "Other";
|
|
6
6
|
};
|
|
7
|
+
export type DocumentVisaMode = 'Stamp' | 'Signature';
|
|
8
|
+
export declare const DocumentVisaMode: {
|
|
9
|
+
Stamp: "Stamp";
|
|
10
|
+
Signature: "Signature";
|
|
11
|
+
};
|
|
7
12
|
export type DocumentNumberingScope = 'Type' | 'Category';
|
|
8
13
|
export declare const DocumentNumberingScope: {
|
|
9
14
|
Type: "Type";
|
|
@@ -452,6 +457,7 @@ export interface DocumentTypeEntity {
|
|
|
452
457
|
numberingScope: DocumentNumberingScope;
|
|
453
458
|
allowsExternalNumber: boolean;
|
|
454
459
|
usesPartsOffice: boolean;
|
|
460
|
+
visaMode: DocumentVisaMode;
|
|
455
461
|
activeTransparency: boolean;
|
|
456
462
|
transparencySection?: string | null;
|
|
457
463
|
directorateCodeReference?: number | null;
|
|
@@ -685,6 +691,7 @@ export interface DocumentTypeVersionEntity {
|
|
|
685
691
|
numberingScope: DocumentNumberingScope;
|
|
686
692
|
allowsExternalNumber: boolean;
|
|
687
693
|
usesPartsOffice: boolean;
|
|
694
|
+
visaMode: DocumentVisaMode;
|
|
688
695
|
activeTransparency: boolean;
|
|
689
696
|
transparencySection?: string | null;
|
|
690
697
|
directorateCodeReference?: number | null;
|
package/dist/base/entities.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
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.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.DocumentVisaMode = exports.DocumentCategory = void 0;
|
|
5
|
+
exports.DraftingRequestEventAction = exports.DraftingRequestStatus = exports.MailAuthentication = exports.MailIntakeStatus = exports.DeskFileTarget = exports.DeskFileSource = exports.DataBreachNoticeMeans = exports.DataBreachEventAction = exports.DataBreachStatus = void 0;
|
|
6
6
|
exports.DocumentCategory = {
|
|
7
7
|
Decree: 'Decree',
|
|
8
8
|
Communication: 'Communication',
|
|
9
9
|
Other: 'Other',
|
|
10
10
|
};
|
|
11
|
+
exports.DocumentVisaMode = {
|
|
12
|
+
Stamp: 'Stamp',
|
|
13
|
+
Signature: 'Signature',
|
|
14
|
+
};
|
|
11
15
|
exports.DocumentNumberingScope = {
|
|
12
16
|
Type: 'Type',
|
|
13
17
|
Category: 'Category',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DocumentCategory, type DocumentNumberingScope, type DocumentParticipantRole, type DocumentTypeEntity } from '../base/entities';
|
|
1
|
+
import { type DocumentCategory, type DocumentNumberingScope, type DocumentVisaMode, 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>`. */
|
|
@@ -40,6 +40,7 @@ export interface DocumentTypeWritePayload {
|
|
|
40
40
|
numberingScope?: DocumentNumberingScope;
|
|
41
41
|
allowsExternalNumber?: boolean;
|
|
42
42
|
usesPartsOffice?: boolean;
|
|
43
|
+
visaMode?: DocumentVisaMode;
|
|
43
44
|
/** Transparencia Activa: sus documentos se publican cada mes, en esta sección del Portal. */
|
|
44
45
|
activeTransparency?: boolean;
|
|
45
46
|
transparencySection?: string | null;
|
|
@@ -242,6 +242,8 @@ export interface DocumentGetByIdResponseEntity {
|
|
|
242
242
|
version: number;
|
|
243
243
|
current: boolean;
|
|
244
244
|
} | null;
|
|
245
|
+
/** Cómo se visa: con el sello del sistema o con la firma electrónica desatendida de cada visador (sin OTP). */
|
|
246
|
+
visaMode: DocumentTypeEntity['visaMode'];
|
|
245
247
|
participants: DocumentParticipantResponseEntity[];
|
|
246
248
|
attachments: {
|
|
247
249
|
id: DocumentAttachmentEntity['id'];
|
|
@@ -25,6 +25,7 @@ export interface DocumentTypeGetAllResponseEntity {
|
|
|
25
25
|
numberingScope: DocumentTypeEntity['numberingScope'];
|
|
26
26
|
allowsExternalNumber: DocumentTypeEntity['allowsExternalNumber'];
|
|
27
27
|
usesPartsOffice: DocumentTypeEntity['usesPartsOffice'];
|
|
28
|
+
visaMode: DocumentTypeEntity['visaMode'];
|
|
28
29
|
/** Transparencia Activa: sus documentos se publican cada mes, en esta sección del Portal. */
|
|
29
30
|
activeTransparency: DocumentTypeEntity['activeTransparency'];
|
|
30
31
|
transparencySection: DocumentTypeEntity['transparencySection'];
|
package/package.json
CHANGED
package/src/base/entities.ts
CHANGED
|
@@ -8,6 +8,13 @@ export const DocumentCategory = {
|
|
|
8
8
|
Other: 'Other',
|
|
9
9
|
} satisfies Record<string, DocumentCategory>;
|
|
10
10
|
|
|
11
|
+
export type DocumentVisaMode = 'Stamp' | 'Signature';
|
|
12
|
+
|
|
13
|
+
export const DocumentVisaMode = {
|
|
14
|
+
Stamp: 'Stamp',
|
|
15
|
+
Signature: 'Signature',
|
|
16
|
+
} satisfies Record<string, DocumentVisaMode>;
|
|
17
|
+
|
|
11
18
|
export type DocumentNumberingScope = 'Type' | 'Category';
|
|
12
19
|
|
|
13
20
|
export const DocumentNumberingScope = {
|
|
@@ -664,6 +671,7 @@ export interface DocumentTypeEntity {
|
|
|
664
671
|
numberingScope: DocumentNumberingScope;
|
|
665
672
|
allowsExternalNumber: boolean;
|
|
666
673
|
usesPartsOffice: boolean;
|
|
674
|
+
visaMode: DocumentVisaMode;
|
|
667
675
|
activeTransparency: boolean;
|
|
668
676
|
transparencySection?: string | null;
|
|
669
677
|
directorateCodeReference?: number | null;
|
|
@@ -907,6 +915,7 @@ export interface DocumentTypeVersionEntity {
|
|
|
907
915
|
numberingScope: DocumentNumberingScope;
|
|
908
916
|
allowsExternalNumber: boolean;
|
|
909
917
|
usesPartsOffice: boolean;
|
|
918
|
+
visaMode: DocumentVisaMode;
|
|
910
919
|
activeTransparency: boolean;
|
|
911
920
|
transparencySection?: string | null;
|
|
912
921
|
directorateCodeReference?: number | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
type DocumentCategory,
|
|
3
3
|
type DocumentNumberingScope,
|
|
4
|
+
type DocumentVisaMode,
|
|
4
5
|
type DocumentParticipantRole,
|
|
5
6
|
type DocumentTypeEntity,
|
|
6
7
|
} from '../base/entities';
|
|
@@ -56,6 +57,8 @@ export interface DocumentTypeWritePayload {
|
|
|
56
57
|
allowsExternalNumber?: boolean;
|
|
57
58
|
// Pasa por Oficina de Partes (por omisión, sí). Sin ella, el documento solo se firma: va solo a funcionarios y áreas.
|
|
58
59
|
usesPartsOffice?: boolean;
|
|
60
|
+
// Cómo visan sus documentos (por omisión, con el sello del sistema).
|
|
61
|
+
visaMode?: DocumentVisaMode;
|
|
59
62
|
/** Transparencia Activa: sus documentos se publican cada mes, en esta sección del Portal. */
|
|
60
63
|
activeTransparency?: boolean;
|
|
61
64
|
transparencySection?: string | null;
|
|
@@ -271,6 +271,8 @@ export interface DocumentGetByIdResponseEntity {
|
|
|
271
271
|
// Versión del tipo con que se tramita: la vigente mientras es borrador; desde que se envía, queda fija. `null` si
|
|
272
272
|
// el tipo ya no la tiene registrada.
|
|
273
273
|
documentTypeVersion: { version: number; current: boolean } | null;
|
|
274
|
+
/** Cómo se visa: con el sello del sistema o con la firma electrónica desatendida de cada visador (sin OTP). */
|
|
275
|
+
visaMode: DocumentTypeEntity['visaMode'];
|
|
274
276
|
participants: DocumentParticipantResponseEntity[];
|
|
275
277
|
attachments: {
|
|
276
278
|
id: DocumentAttachmentEntity['id'];
|
|
@@ -35,6 +35,8 @@ export interface DocumentTypeGetAllResponseEntity {
|
|
|
35
35
|
// Pasa por Oficina de Partes: sus documentos pueden ir a otras instituciones y con copias por correo. Sin ella,
|
|
36
36
|
// solo se firman y van a funcionarios y áreas de la municipalidad.
|
|
37
37
|
usesPartsOffice: DocumentTypeEntity['usesPartsOffice'];
|
|
38
|
+
// Cómo visan sus documentos: con el sello del sistema o con la firma electrónica desatendida de cada visador.
|
|
39
|
+
visaMode: DocumentTypeEntity['visaMode'];
|
|
38
40
|
/** Transparencia Activa: sus documentos se publican cada mes, en esta sección del Portal. */
|
|
39
41
|
activeTransparency: DocumentTypeEntity['activeTransparency'];
|
|
40
42
|
transparencySection: DocumentTypeEntity['transparencySection'];
|