@muni-sanfer/types-gestor-documental 0.0.1-beta.49 → 0.0.1-beta.50
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 +27 -0
- package/dist/entities/document/document.entity.d.ts +4 -0
- package/dist/entities/documentType/documentType.entity.d.ts +9 -0
- package/package.json +1 -1
- package/src/base/entities.ts +28 -0
- package/src/entities/document/document.entity.ts +4 -0
- package/src/entities/documentType/documentType.entity.ts +14 -0
package/dist/base/entities.d.ts
CHANGED
|
@@ -450,6 +450,8 @@ export interface DocumentTypeEntity {
|
|
|
450
450
|
sharesNumberingWithId?: string | null;
|
|
451
451
|
numberingMembers?: DocumentTypeEntity[];
|
|
452
452
|
enabled: boolean;
|
|
453
|
+
version: number;
|
|
454
|
+
versions?: DocumentTypeVersionEntity[];
|
|
453
455
|
documents?: DocumentEntity[];
|
|
454
456
|
draftingRequests?: DraftingRequestEntity[];
|
|
455
457
|
annulledNumbers?: DocumentAnnulledNumberEntity[];
|
|
@@ -508,6 +510,8 @@ export interface DocumentEntity {
|
|
|
508
510
|
finishedAt?: string | null;
|
|
509
511
|
documentType?: DocumentTypeEntity;
|
|
510
512
|
documentTypeId: string;
|
|
513
|
+
documentTypeVersion?: DocumentTypeVersionEntity | null;
|
|
514
|
+
documentTypeVersionId?: string | null;
|
|
511
515
|
participants?: DocumentParticipantEntity[];
|
|
512
516
|
attachments?: DocumentAttachmentEntity[];
|
|
513
517
|
trackings?: DocumentTrackingEntity[];
|
|
@@ -640,6 +644,29 @@ export interface DocumentDeliveryEntity {
|
|
|
640
644
|
documentId: string;
|
|
641
645
|
createdAt: string;
|
|
642
646
|
}
|
|
647
|
+
export interface DocumentTypeVersionEntity {
|
|
648
|
+
id: string;
|
|
649
|
+
version: number;
|
|
650
|
+
name: string;
|
|
651
|
+
abbreviation?: string | null;
|
|
652
|
+
category: DocumentCategory;
|
|
653
|
+
description?: string | null;
|
|
654
|
+
numbered: boolean;
|
|
655
|
+
activeTransparency: boolean;
|
|
656
|
+
transparencySection?: string | null;
|
|
657
|
+
directorateCodeReference?: number | null;
|
|
658
|
+
draftReviewDirectorateCode?: number | null;
|
|
659
|
+
draftReviewDirectorateName?: string | null;
|
|
660
|
+
issuingEntityId?: string | null;
|
|
661
|
+
sharesNumberingWithId?: string | null;
|
|
662
|
+
templateVersion?: number | null;
|
|
663
|
+
flowSteps: JsonValue;
|
|
664
|
+
createdByFullName?: string | null;
|
|
665
|
+
createdAt: string;
|
|
666
|
+
documentType?: DocumentTypeEntity;
|
|
667
|
+
documentTypeId: string;
|
|
668
|
+
documents?: DocumentEntity[];
|
|
669
|
+
}
|
|
643
670
|
export interface DocumentTypeFlowStepEntity {
|
|
644
671
|
id: string;
|
|
645
672
|
role: DocumentParticipantRole;
|
|
@@ -219,6 +219,10 @@ export interface DocumentGetByIdResponseEntity {
|
|
|
219
219
|
dispatch: DocumentDispatchResponseEntity | null;
|
|
220
220
|
emailCopies: DocumentEmailCopyResponseEntity[];
|
|
221
221
|
documentType: DocumentTypeSummaryEntity;
|
|
222
|
+
documentTypeVersion: {
|
|
223
|
+
version: number;
|
|
224
|
+
current: boolean;
|
|
225
|
+
} | null;
|
|
222
226
|
participants: DocumentParticipantResponseEntity[];
|
|
223
227
|
attachments: {
|
|
224
228
|
id: DocumentAttachmentEntity['id'];
|
|
@@ -47,6 +47,7 @@ export interface DocumentTypeGetAllResponseEntity {
|
|
|
47
47
|
name: string;
|
|
48
48
|
}[];
|
|
49
49
|
enabled: DocumentTypeEntity['enabled'];
|
|
50
|
+
version: DocumentTypeEntity['version'];
|
|
50
51
|
flow: {
|
|
51
52
|
visa: number;
|
|
52
53
|
signature: number;
|
|
@@ -59,10 +60,18 @@ export interface DocumentTypeTemplateResponseEntity {
|
|
|
59
60
|
version: number;
|
|
60
61
|
content: DocumentTemplateContent;
|
|
61
62
|
}
|
|
63
|
+
/** Una versión de la configuración del tipo: los documentos enviados a tramitación con ella la conservan. */
|
|
64
|
+
export interface DocumentTypeVersionResponseEntity {
|
|
65
|
+
version: number;
|
|
66
|
+
createdAt: string;
|
|
67
|
+
createdByFullName: string | null;
|
|
68
|
+
documentsInProcess: number;
|
|
69
|
+
}
|
|
62
70
|
export interface DocumentTypeGetByIdResponseEntity extends DocumentTypeGetAllResponseEntity {
|
|
63
71
|
lastCorrelative: number | null;
|
|
64
72
|
flowSteps: DocumentTypeFlowStepResponseEntity[];
|
|
65
73
|
template: DocumentTypeTemplateResponseEntity | null;
|
|
74
|
+
versions: DocumentTypeVersionResponseEntity[];
|
|
66
75
|
}
|
|
67
76
|
export interface DocumentTypeCreateResponseEntity {
|
|
68
77
|
id: DocumentTypeEntity['id'];
|
package/package.json
CHANGED
package/src/base/entities.ts
CHANGED
|
@@ -656,6 +656,8 @@ export interface DocumentTypeEntity {
|
|
|
656
656
|
sharesNumberingWithId?: string | null;
|
|
657
657
|
numberingMembers?: DocumentTypeEntity[];
|
|
658
658
|
enabled: boolean;
|
|
659
|
+
version: number;
|
|
660
|
+
versions?: DocumentTypeVersionEntity[];
|
|
659
661
|
documents?: DocumentEntity[];
|
|
660
662
|
draftingRequests?: DraftingRequestEntity[];
|
|
661
663
|
annulledNumbers?: DocumentAnnulledNumberEntity[];
|
|
@@ -715,6 +717,8 @@ export interface DocumentEntity {
|
|
|
715
717
|
finishedAt?: string | null;
|
|
716
718
|
documentType?: DocumentTypeEntity;
|
|
717
719
|
documentTypeId: string;
|
|
720
|
+
documentTypeVersion?: DocumentTypeVersionEntity | null;
|
|
721
|
+
documentTypeVersionId?: string | null;
|
|
718
722
|
participants?: DocumentParticipantEntity[];
|
|
719
723
|
attachments?: DocumentAttachmentEntity[];
|
|
720
724
|
trackings?: DocumentTrackingEntity[];
|
|
@@ -855,6 +859,30 @@ export interface DocumentDeliveryEntity {
|
|
|
855
859
|
createdAt: string;
|
|
856
860
|
}
|
|
857
861
|
|
|
862
|
+
export interface DocumentTypeVersionEntity {
|
|
863
|
+
id: string;
|
|
864
|
+
version: number;
|
|
865
|
+
name: string;
|
|
866
|
+
abbreviation?: string | null;
|
|
867
|
+
category: DocumentCategory;
|
|
868
|
+
description?: string | null;
|
|
869
|
+
numbered: boolean;
|
|
870
|
+
activeTransparency: boolean;
|
|
871
|
+
transparencySection?: string | null;
|
|
872
|
+
directorateCodeReference?: number | null;
|
|
873
|
+
draftReviewDirectorateCode?: number | null;
|
|
874
|
+
draftReviewDirectorateName?: string | null;
|
|
875
|
+
issuingEntityId?: string | null;
|
|
876
|
+
sharesNumberingWithId?: string | null;
|
|
877
|
+
templateVersion?: number | null;
|
|
878
|
+
flowSteps: JsonValue;
|
|
879
|
+
createdByFullName?: string | null;
|
|
880
|
+
createdAt: string;
|
|
881
|
+
documentType?: DocumentTypeEntity;
|
|
882
|
+
documentTypeId: string;
|
|
883
|
+
documents?: DocumentEntity[];
|
|
884
|
+
}
|
|
885
|
+
|
|
858
886
|
export interface DocumentTypeFlowStepEntity {
|
|
859
887
|
id: string;
|
|
860
888
|
role: DocumentParticipantRole;
|
|
@@ -242,7 +242,11 @@ export interface DocumentGetByIdResponseEntity {
|
|
|
242
242
|
dispatch: DocumentDispatchResponseEntity | null;
|
|
243
243
|
// Copias por correo a quienes están fuera del Estado, con su envío y apertura.
|
|
244
244
|
emailCopies: DocumentEmailCopyResponseEntity[];
|
|
245
|
+
// El tipo como estaba en la versión con que se tramita (nombre, sigla y categoría de entonces).
|
|
245
246
|
documentType: DocumentTypeSummaryEntity;
|
|
247
|
+
// Versión del tipo con que se tramita: la vigente mientras es borrador; desde que se envía, queda fija. `null` si
|
|
248
|
+
// el tipo ya no la tiene registrada.
|
|
249
|
+
documentTypeVersion: { version: number; current: boolean } | null;
|
|
246
250
|
participants: DocumentParticipantResponseEntity[];
|
|
247
251
|
attachments: {
|
|
248
252
|
id: DocumentAttachmentEntity['id'];
|
|
@@ -44,6 +44,8 @@ export interface DocumentTypeGetAllResponseEntity {
|
|
|
44
44
|
// Tipos que toman sus números del correlativo de este.
|
|
45
45
|
numberingMembers: { id: string; name: string }[];
|
|
46
46
|
enabled: DocumentTypeEntity['enabled'];
|
|
47
|
+
// Versión vigente de su configuración: la toman los documentos nuevos y los borradores al guardarse.
|
|
48
|
+
version: DocumentTypeEntity['version'];
|
|
47
49
|
// Cuántos visadores y firmantes tiene su flujo sugerido.
|
|
48
50
|
flow: { visa: number; signature: number };
|
|
49
51
|
// Tiene plantilla propia: se aplica sola al redactar.
|
|
@@ -57,6 +59,16 @@ export interface DocumentTypeTemplateResponseEntity {
|
|
|
57
59
|
content: DocumentTemplateContent;
|
|
58
60
|
}
|
|
59
61
|
|
|
62
|
+
/** Una versión de la configuración del tipo: los documentos enviados a tramitación con ella la conservan. */
|
|
63
|
+
export interface DocumentTypeVersionResponseEntity {
|
|
64
|
+
version: number;
|
|
65
|
+
createdAt: string;
|
|
66
|
+
// Quién guardó el cambio (sin valor en la primera versión de un tipo anterior a las versiones).
|
|
67
|
+
createdByFullName: string | null;
|
|
68
|
+
// Documentos en tramitación (o devueltos para corregir) que siguen con esta versión.
|
|
69
|
+
documentsInProcess: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
60
72
|
export interface DocumentTypeGetByIdResponseEntity extends DocumentTypeGetAllResponseEntity {
|
|
61
73
|
// Último número ya asignado en el año vigente del correlativo (null si aún no se numera ninguno): el próximo
|
|
62
74
|
// correlativo no puede quedar por debajo de él.
|
|
@@ -65,6 +77,8 @@ export interface DocumentTypeGetByIdResponseEntity extends DocumentTypeGetAllRes
|
|
|
65
77
|
flowSteps: DocumentTypeFlowStepResponseEntity[];
|
|
66
78
|
// Plantilla propia del tipo (sin valor: no la tiene).
|
|
67
79
|
template: DocumentTypeTemplateResponseEntity | null;
|
|
80
|
+
// Versiones, de la más nueva a la más antigua.
|
|
81
|
+
versions: DocumentTypeVersionResponseEntity[];
|
|
68
82
|
}
|
|
69
83
|
|
|
70
84
|
export interface DocumentTypeCreateResponseEntity {
|