@muni-sanfer/types-gestor-documental 0.0.1-beta.42 → 0.0.1-beta.43
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 +3 -0
- package/dist/contracts/documentType.contract.d.ts +2 -1
- package/dist/entities/documentTemplate/documentTemplate.entity.d.ts +2 -0
- package/dist/entities/documentType/documentType.entity.d.ts +9 -0
- package/package.json +1 -1
- package/src/base/entities.ts +3 -0
- package/src/contracts/documentType.contract.ts +3 -0
- package/src/entities/documentTemplate/documentTemplate.entity.ts +2 -0
- package/src/entities/documentType/documentType.entity.ts +12 -0
package/dist/base/entities.d.ts
CHANGED
|
@@ -450,6 +450,7 @@ export interface DocumentTypeEntity {
|
|
|
450
450
|
annulledNumbers?: DocumentAnnulledNumberEntity[];
|
|
451
451
|
flowSteps?: DocumentTypeFlowStepEntity[];
|
|
452
452
|
signatureBatches?: SignatureBatchEntity[];
|
|
453
|
+
template?: DocumentTemplateEntity | null;
|
|
453
454
|
deleted: boolean;
|
|
454
455
|
createdAt: string;
|
|
455
456
|
updatedAt: string;
|
|
@@ -927,6 +928,8 @@ export interface DocumentTemplateEntity {
|
|
|
927
928
|
name: string;
|
|
928
929
|
description?: string | null;
|
|
929
930
|
documentTypeIds: string[];
|
|
931
|
+
documentType?: DocumentTypeEntity | null;
|
|
932
|
+
documentTypeId?: string | null;
|
|
930
933
|
content: JsonValue;
|
|
931
934
|
version: number;
|
|
932
935
|
enabled: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DocumentCategory, type DocumentParticipantRole, type DocumentTypeEntity } from '../base/entities';
|
|
2
|
-
import { type DocumentTypeCreateResponseEntity, type DocumentTypeGetAllResponseEntity, type DocumentTypeGetByIdResponseEntity, type DocumentTypeUpdateResponseEntity } from '../entities';
|
|
2
|
+
import { 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>`. */
|
|
5
5
|
export declare const DocumentTypePatterns: {
|
|
@@ -46,6 +46,7 @@ export interface DocumentTypeWritePayload {
|
|
|
46
46
|
sharesNumberingWithId?: string | null;
|
|
47
47
|
enabled?: boolean;
|
|
48
48
|
flowSteps?: DocumentFlowStepInput[];
|
|
49
|
+
template?: DocumentTemplateContent | null;
|
|
49
50
|
}
|
|
50
51
|
/**
|
|
51
52
|
* Qué se envía y qué se responde en cada patrón. Generado desde los handlers y los DTO del microservicio.
|
|
@@ -43,6 +43,8 @@ export interface DocumentTemplateAvailableResponseEntity {
|
|
|
43
43
|
description: string | null;
|
|
44
44
|
version: DocumentTemplateEntity['version'];
|
|
45
45
|
content: DocumentTemplateContent;
|
|
46
|
+
/** Es la plantilla del tipo documental pedido: se aplica sola al redactar. */
|
|
47
|
+
ownedByType: boolean;
|
|
46
48
|
}
|
|
47
49
|
export interface DocumentTemplateCreateResponseEntity {
|
|
48
50
|
id: DocumentTemplateEntity['id'];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DocumentTypeEntity, DocumentTypeFlowStepEntity } from '../../base/entities';
|
|
2
|
+
import { type DocumentTemplateContent } from '../documentTemplate/documentTemplate.entity';
|
|
2
3
|
/** Paso del flujo sugerido de un tipo documental: quién visa o firma, en su orden. */
|
|
3
4
|
export interface DocumentTypeFlowStepResponseEntity {
|
|
4
5
|
id: DocumentTypeFlowStepEntity['id'];
|
|
@@ -50,10 +51,18 @@ export interface DocumentTypeGetAllResponseEntity {
|
|
|
50
51
|
visa: number;
|
|
51
52
|
signature: number;
|
|
52
53
|
};
|
|
54
|
+
hasTemplate: boolean;
|
|
55
|
+
}
|
|
56
|
+
/** Plantilla propia de un tipo documental: la versión vigente de su contenido. */
|
|
57
|
+
export interface DocumentTypeTemplateResponseEntity {
|
|
58
|
+
id: string;
|
|
59
|
+
version: number;
|
|
60
|
+
content: DocumentTemplateContent;
|
|
53
61
|
}
|
|
54
62
|
export interface DocumentTypeGetByIdResponseEntity extends DocumentTypeGetAllResponseEntity {
|
|
55
63
|
lastCorrelative: number | null;
|
|
56
64
|
flowSteps: DocumentTypeFlowStepResponseEntity[];
|
|
65
|
+
template: DocumentTypeTemplateResponseEntity | null;
|
|
57
66
|
}
|
|
58
67
|
export interface DocumentTypeCreateResponseEntity {
|
|
59
68
|
id: DocumentTypeEntity['id'];
|
package/package.json
CHANGED
package/src/base/entities.ts
CHANGED
|
@@ -654,6 +654,7 @@ export interface DocumentTypeEntity {
|
|
|
654
654
|
annulledNumbers?: DocumentAnnulledNumberEntity[];
|
|
655
655
|
flowSteps?: DocumentTypeFlowStepEntity[];
|
|
656
656
|
signatureBatches?: SignatureBatchEntity[];
|
|
657
|
+
template?: DocumentTemplateEntity | null;
|
|
657
658
|
deleted: boolean;
|
|
658
659
|
createdAt: string;
|
|
659
660
|
updatedAt: string;
|
|
@@ -1158,6 +1159,8 @@ export interface DocumentTemplateEntity {
|
|
|
1158
1159
|
name: string;
|
|
1159
1160
|
description?: string | null;
|
|
1160
1161
|
documentTypeIds: string[];
|
|
1162
|
+
documentType?: DocumentTypeEntity | null;
|
|
1163
|
+
documentTypeId?: string | null;
|
|
1161
1164
|
content: JsonValue;
|
|
1162
1165
|
version: number;
|
|
1163
1166
|
enabled: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type DocumentCategory, type DocumentParticipantRole, type DocumentTypeEntity } from '../base/entities';
|
|
2
2
|
import {
|
|
3
|
+
type DocumentTemplateContent,
|
|
3
4
|
type DocumentTypeCreateResponseEntity,
|
|
4
5
|
type DocumentTypeGetAllResponseEntity,
|
|
5
6
|
type DocumentTypeGetByIdResponseEntity,
|
|
@@ -57,6 +58,8 @@ export interface DocumentTypeWritePayload {
|
|
|
57
58
|
enabled?: boolean;
|
|
58
59
|
// Flujo sugerido, en el orden en que les toca dentro de cada rol. Al editar, si no viene, el flujo no cambia.
|
|
59
60
|
flowSteps?: DocumentFlowStepInput[];
|
|
61
|
+
// Plantilla propia del tipo: se aplica sola al redactar. `null` la quita; al editar, si no viene, no cambia.
|
|
62
|
+
template?: DocumentTemplateContent | null;
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
/**
|
|
@@ -48,6 +48,8 @@ export interface DocumentTemplateAvailableResponseEntity {
|
|
|
48
48
|
description: string | null;
|
|
49
49
|
version: DocumentTemplateEntity['version'];
|
|
50
50
|
content: DocumentTemplateContent;
|
|
51
|
+
/** Es la plantilla del tipo documental pedido: se aplica sola al redactar. */
|
|
52
|
+
ownedByType: boolean;
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
export interface DocumentTemplateCreateResponseEntity {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DocumentTypeEntity, DocumentTypeFlowStepEntity } from '../../base/entities';
|
|
2
|
+
import { type DocumentTemplateContent } from '../documentTemplate/documentTemplate.entity';
|
|
2
3
|
|
|
3
4
|
/** Paso del flujo sugerido de un tipo documental: quién visa o firma, en su orden. */
|
|
4
5
|
export interface DocumentTypeFlowStepResponseEntity {
|
|
@@ -45,6 +46,15 @@ export interface DocumentTypeGetAllResponseEntity {
|
|
|
45
46
|
enabled: DocumentTypeEntity['enabled'];
|
|
46
47
|
// Cuántos visadores y firmantes tiene su flujo sugerido.
|
|
47
48
|
flow: { visa: number; signature: number };
|
|
49
|
+
// Tiene plantilla propia: se aplica sola al redactar.
|
|
50
|
+
hasTemplate: boolean;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** Plantilla propia de un tipo documental: la versión vigente de su contenido. */
|
|
54
|
+
export interface DocumentTypeTemplateResponseEntity {
|
|
55
|
+
id: string;
|
|
56
|
+
version: number;
|
|
57
|
+
content: DocumentTemplateContent;
|
|
48
58
|
}
|
|
49
59
|
|
|
50
60
|
export interface DocumentTypeGetByIdResponseEntity extends DocumentTypeGetAllResponseEntity {
|
|
@@ -53,6 +63,8 @@ export interface DocumentTypeGetByIdResponseEntity extends DocumentTypeGetAllRes
|
|
|
53
63
|
lastCorrelative: number | null;
|
|
54
64
|
// Flujo sugerido: primero los visadores y después los firmantes, cada grupo en su orden.
|
|
55
65
|
flowSteps: DocumentTypeFlowStepResponseEntity[];
|
|
66
|
+
// Plantilla propia del tipo (sin valor: no la tiene).
|
|
67
|
+
template: DocumentTypeTemplateResponseEntity | null;
|
|
56
68
|
}
|
|
57
69
|
|
|
58
70
|
export interface DocumentTypeCreateResponseEntity {
|