@muni-sanfer/types-gestor-documental 0.0.1-beta.55 → 0.0.1-beta.56
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 -1
- package/dist/base/entities.js +1 -0
- package/dist/contracts/document.contract.d.ts +16 -1
- package/dist/contracts/document.contract.js +1 -0
- package/dist/contracts/index.d.ts +1 -0
- package/dist/entities/document/document.entity.d.ts +12 -0
- package/package.json +1 -1
- package/src/base/entities.ts +4 -1
- package/src/contracts/document.contract.ts +16 -0
- package/src/entities/document/document.entity.ts +10 -0
package/dist/base/entities.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare const DocumentParticipantStatus: {
|
|
|
38
38
|
Resolved: "Resolved";
|
|
39
39
|
Rejected: "Rejected";
|
|
40
40
|
};
|
|
41
|
-
export type DocumentTrackingAction = 'Created' | 'Updated' | 'Submitted' | 'Visaed' | 'Signed' | 'Rejected' | 'Finished' | 'Discarded' | 'Numbered' | 'NumberAnnulled' | 'Annulled' | 'Delivered' | 'Derived' | 'Reassigned' | 'Dispatched' | 'DispatchReturned' | 'DispatchedByContingency' | 'Received' | 'EmailCopySent' | 'EmailCopyOpened' | 'DispositionRecorded' | 'TransparencyRedacted' | 'TransparencyPublished' | 'TransparencyExcluded' | 'TransparencyWithdrawn' | 'DraftReviewRequested' | 'DraftReviewApproved' | 'DraftReviewRejected' | 'DraftReviewCancelled';
|
|
41
|
+
export type DocumentTrackingAction = 'Created' | 'Updated' | 'Submitted' | 'Visaed' | 'Signed' | 'Rejected' | 'Finished' | 'Discarded' | 'Numbered' | 'NumberAnnulled' | 'Annulled' | 'Delivered' | 'Derived' | 'Reassigned' | 'Dispatched' | 'DispatchReturned' | 'DispatchedByContingency' | 'Received' | 'EmailCopySent' | 'EmailCopyOpened' | 'DispositionRecorded' | 'TransparencyRedacted' | 'TransparencyPublished' | 'TransparencyExcluded' | 'TransparencyWithdrawn' | 'DraftReviewRequested' | 'DraftReviewApproved' | 'DraftReviewRejected' | 'DraftReviewCancelled' | 'DraftCorrected';
|
|
42
42
|
export declare const DocumentTrackingAction: {
|
|
43
43
|
Created: "Created";
|
|
44
44
|
Updated: "Updated";
|
|
@@ -69,6 +69,7 @@ export declare const DocumentTrackingAction: {
|
|
|
69
69
|
DraftReviewApproved: "DraftReviewApproved";
|
|
70
70
|
DraftReviewRejected: "DraftReviewRejected";
|
|
71
71
|
DraftReviewCancelled: "DraftReviewCancelled";
|
|
72
|
+
DraftCorrected: "DraftCorrected";
|
|
72
73
|
};
|
|
73
74
|
export type DraftReviewStage = 'Draft' | 'Official';
|
|
74
75
|
export declare const DraftReviewStage: {
|
|
@@ -1438,6 +1439,7 @@ export interface DocumentVersionEntity {
|
|
|
1438
1439
|
composition?: JsonValue | null;
|
|
1439
1440
|
note?: string | null;
|
|
1440
1441
|
status: DocumentStatus;
|
|
1442
|
+
correction: boolean;
|
|
1441
1443
|
createdByEmployeeId: string;
|
|
1442
1444
|
createdByFullName: string;
|
|
1443
1445
|
createdAt: string;
|
package/dist/base/entities.js
CHANGED
|
@@ -67,6 +67,7 @@ exports.DocumentTrackingAction = {
|
|
|
67
67
|
DraftReviewApproved: 'DraftReviewApproved',
|
|
68
68
|
DraftReviewRejected: 'DraftReviewRejected',
|
|
69
69
|
DraftReviewCancelled: 'DraftReviewCancelled',
|
|
70
|
+
DraftCorrected: 'DraftCorrected',
|
|
70
71
|
};
|
|
71
72
|
exports.DraftReviewStage = {
|
|
72
73
|
Draft: 'Draft',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DocumentAccessAction, type DocumentAccessLevel, type DocumentAttachmentEntity, type DocumentDeliveryEntity, type DocumentEntity, type DocumentInstruction, type DocumentParticipantEntity, type DocumentStatus } from '../base/entities';
|
|
2
|
-
import { type DocumentAnnulResponseEntity, type DocumentCloseDeliveryResponseEntity, type DocumentCreateResponseEntity, type DocumentDeriveResponseEntity, type DocumentDiscardResponseEntity, type DocumentEmailCopyIssuedEntity, type DocumentEmailCopyViewEntity, type DocumentReminderEntity, type DocumentGetAllResponseEntity, type DocumentGetByIdResponseEntity, type DocumentGetSummaryResponseEntity, type DocumentInboxItemEntity, type DocumentPublicFileResponseEntity, type DocumentReassignResponseEntity, type DocumentReviewResponseEntity, type DocumentSignManyResponseEntity, type DocumentAgendaResponseEntity, type DocumentComposeResponseEntity, type DocumentComposition, type DocumentTrailExportEntity, type DocumentUpdateResponseEntity, type DocumentVerifyResponseEntity, type DocumentCommentResponseEntity, type DocumentCommentsResponseEntity, type DocumentVersionResponseEntity, type DocumentDraftReviewResponseEntity } from '../entities';
|
|
2
|
+
import { type DocumentAnnulResponseEntity, type DocumentCloseDeliveryResponseEntity, type DocumentCreateResponseEntity, type DocumentDeriveResponseEntity, type DocumentDiscardResponseEntity, type DocumentEmailCopyIssuedEntity, type DocumentEmailCopyViewEntity, type DocumentReminderEntity, type DocumentGetAllResponseEntity, type DocumentGetByIdResponseEntity, type DocumentGetSummaryResponseEntity, type DocumentInboxItemEntity, type DocumentPublicFileResponseEntity, type DocumentReassignResponseEntity, type DocumentReviewResponseEntity, type DocumentSignManyResponseEntity, type DocumentAgendaResponseEntity, type DocumentComposeResponseEntity, type DocumentComposition, type DocumentTrailExportEntity, type DocumentUpdateResponseEntity, type DocumentVerifyResponseEntity, type DocumentCommentResponseEntity, type DocumentCommentsResponseEntity, type DocumentVersionResponseEntity, type DocumentDraftCorrectionResponseEntity, type DocumentDraftReviewResponseEntity } from '../entities';
|
|
3
3
|
import { type RpcPage } from './contract';
|
|
4
4
|
/** Patrones NATS de `document`: `<servicio>.<recurso>.<acción>`. */
|
|
5
5
|
export declare const DocumentPatterns: {
|
|
@@ -14,6 +14,7 @@ export declare const DocumentPatterns: {
|
|
|
14
14
|
readonly reassign: "gestorDocumental.document.reassign";
|
|
15
15
|
readonly requestDraftReview: "gestorDocumental.document.requestDraftReview";
|
|
16
16
|
readonly resolveDraftReview: "gestorDocumental.document.resolveDraftReview";
|
|
17
|
+
readonly correctDraft: "gestorDocumental.document.correctDraft";
|
|
17
18
|
readonly discard: "gestorDocumental.document.discard";
|
|
18
19
|
readonly annul: "gestorDocumental.document.annul";
|
|
19
20
|
readonly derive: "gestorDocumental.document.derive";
|
|
@@ -298,6 +299,20 @@ export interface DocumentContract {
|
|
|
298
299
|
};
|
|
299
300
|
response: DocumentDraftReviewResponseEntity;
|
|
300
301
|
};
|
|
302
|
+
/**
|
|
303
|
+
* La jefatura que tiene la revisión pendiente corrige el texto redactado con la plantilla, sin devolverlo: el sistema
|
|
304
|
+
* arma el PDF y guarda una versión nueva a su nombre con la justificación. La revisión sigue pendiente, ahora de esa
|
|
305
|
+
* versión.
|
|
306
|
+
*/
|
|
307
|
+
[DocumentPatterns.correctDraft]: {
|
|
308
|
+
payload: Pick<DocumentEntity, 'id'> & {
|
|
309
|
+
subject: string;
|
|
310
|
+
composition: DocumentComposition;
|
|
311
|
+
reason: string;
|
|
312
|
+
actor: DocumentActor;
|
|
313
|
+
};
|
|
314
|
+
response: DocumentDraftCorrectionResponseEntity;
|
|
315
|
+
};
|
|
301
316
|
[DocumentPatterns.reassign]: {
|
|
302
317
|
payload: Pick<DocumentEntity, 'id'> & {
|
|
303
318
|
participantId: DocumentParticipantEntity['id'];
|
|
@@ -14,6 +14,7 @@ exports.DocumentPatterns = {
|
|
|
14
14
|
reassign: 'gestorDocumental.document.reassign',
|
|
15
15
|
requestDraftReview: 'gestorDocumental.document.requestDraftReview',
|
|
16
16
|
resolveDraftReview: 'gestorDocumental.document.resolveDraftReview',
|
|
17
|
+
correctDraft: 'gestorDocumental.document.correctDraft',
|
|
17
18
|
discard: 'gestorDocumental.document.discard',
|
|
18
19
|
annul: 'gestorDocumental.document.annul',
|
|
19
20
|
derive: 'gestorDocumental.document.derive',
|
|
@@ -78,6 +78,7 @@ export declare const GestorDocumentalPatterns: {
|
|
|
78
78
|
readonly reassign: "gestorDocumental.document.reassign";
|
|
79
79
|
readonly requestDraftReview: "gestorDocumental.document.requestDraftReview";
|
|
80
80
|
readonly resolveDraftReview: "gestorDocumental.document.resolveDraftReview";
|
|
81
|
+
readonly correctDraft: "gestorDocumental.document.correctDraft";
|
|
81
82
|
readonly discard: "gestorDocumental.document.discard";
|
|
82
83
|
readonly annul: "gestorDocumental.document.annul";
|
|
83
84
|
readonly derive: "gestorDocumental.document.derive";
|
|
@@ -654,6 +654,8 @@ export interface DocumentVersionResponseEntity {
|
|
|
654
654
|
composition: DocumentComposition | null;
|
|
655
655
|
note: string | null;
|
|
656
656
|
status: DocumentStatus;
|
|
657
|
+
/** La guardó la jefatura revisora al corregir el texto; `note` es su justificación. */
|
|
658
|
+
correction: boolean;
|
|
657
659
|
createdByFullName: string;
|
|
658
660
|
createdAt: string;
|
|
659
661
|
/** Visaciones, firmas y rechazos mientras fue la versión vigente. */
|
|
@@ -734,3 +736,13 @@ export interface DocumentDraftReviewResponseEntity {
|
|
|
734
736
|
/** Al aprobar el oficial, el documento entró a tramitación: hay que avisar a quien tiene el primer turno. */
|
|
735
737
|
submitted?: boolean;
|
|
736
738
|
}
|
|
739
|
+
/** Resultado de la corrección de la jefatura revisora: la versión nueva y a quién avisar (quien redacta). */
|
|
740
|
+
export interface DocumentDraftCorrectionResponseEntity {
|
|
741
|
+
id: string;
|
|
742
|
+
ok: boolean;
|
|
743
|
+
versionNumber: number;
|
|
744
|
+
notify: {
|
|
745
|
+
employeeId: string;
|
|
746
|
+
fullName: string;
|
|
747
|
+
} | null;
|
|
748
|
+
}
|
package/package.json
CHANGED
package/src/base/entities.ts
CHANGED
|
@@ -82,7 +82,8 @@ export type DocumentTrackingAction =
|
|
|
82
82
|
| 'DraftReviewRequested'
|
|
83
83
|
| 'DraftReviewApproved'
|
|
84
84
|
| 'DraftReviewRejected'
|
|
85
|
-
| 'DraftReviewCancelled'
|
|
85
|
+
| 'DraftReviewCancelled'
|
|
86
|
+
| 'DraftCorrected';
|
|
86
87
|
|
|
87
88
|
export const DocumentTrackingAction = {
|
|
88
89
|
Created: 'Created',
|
|
@@ -114,6 +115,7 @@ export const DocumentTrackingAction = {
|
|
|
114
115
|
DraftReviewApproved: 'DraftReviewApproved',
|
|
115
116
|
DraftReviewRejected: 'DraftReviewRejected',
|
|
116
117
|
DraftReviewCancelled: 'DraftReviewCancelled',
|
|
118
|
+
DraftCorrected: 'DraftCorrected',
|
|
117
119
|
} satisfies Record<string, DocumentTrackingAction>;
|
|
118
120
|
|
|
119
121
|
export type DraftReviewStage = 'Draft' | 'Official';
|
|
@@ -1706,6 +1708,7 @@ export interface DocumentVersionEntity {
|
|
|
1706
1708
|
composition?: JsonValue | null;
|
|
1707
1709
|
note?: string | null;
|
|
1708
1710
|
status: DocumentStatus;
|
|
1711
|
+
correction: boolean;
|
|
1709
1712
|
createdByEmployeeId: string;
|
|
1710
1713
|
createdByFullName: string;
|
|
1711
1714
|
createdAt: string;
|
|
@@ -34,6 +34,7 @@ import {
|
|
|
34
34
|
type DocumentCommentResponseEntity,
|
|
35
35
|
type DocumentCommentsResponseEntity,
|
|
36
36
|
type DocumentVersionResponseEntity,
|
|
37
|
+
type DocumentDraftCorrectionResponseEntity,
|
|
37
38
|
type DocumentDraftReviewResponseEntity,
|
|
38
39
|
} from '../entities';
|
|
39
40
|
import { type RpcPage } from './contract';
|
|
@@ -51,6 +52,7 @@ export const DocumentPatterns = {
|
|
|
51
52
|
reassign: 'gestorDocumental.document.reassign',
|
|
52
53
|
requestDraftReview: 'gestorDocumental.document.requestDraftReview',
|
|
53
54
|
resolveDraftReview: 'gestorDocumental.document.resolveDraftReview',
|
|
55
|
+
correctDraft: 'gestorDocumental.document.correctDraft',
|
|
54
56
|
discard: 'gestorDocumental.document.discard',
|
|
55
57
|
annul: 'gestorDocumental.document.annul',
|
|
56
58
|
derive: 'gestorDocumental.document.derive',
|
|
@@ -331,6 +333,20 @@ export interface DocumentContract {
|
|
|
331
333
|
};
|
|
332
334
|
response: DocumentDraftReviewResponseEntity;
|
|
333
335
|
};
|
|
336
|
+
/**
|
|
337
|
+
* La jefatura que tiene la revisión pendiente corrige el texto redactado con la plantilla, sin devolverlo: el sistema
|
|
338
|
+
* arma el PDF y guarda una versión nueva a su nombre con la justificación. La revisión sigue pendiente, ahora de esa
|
|
339
|
+
* versión.
|
|
340
|
+
*/
|
|
341
|
+
[DocumentPatterns.correctDraft]: {
|
|
342
|
+
payload: Pick<DocumentEntity, 'id'> & {
|
|
343
|
+
subject: string;
|
|
344
|
+
composition: DocumentComposition;
|
|
345
|
+
reason: string;
|
|
346
|
+
actor: DocumentActor;
|
|
347
|
+
};
|
|
348
|
+
response: DocumentDraftCorrectionResponseEntity;
|
|
349
|
+
};
|
|
334
350
|
[DocumentPatterns.reassign]: {
|
|
335
351
|
payload: Pick<DocumentEntity, 'id'> & {
|
|
336
352
|
participantId: DocumentParticipantEntity['id'];
|
|
@@ -689,6 +689,8 @@ export interface DocumentVersionResponseEntity {
|
|
|
689
689
|
composition: DocumentComposition | null;
|
|
690
690
|
note: string | null;
|
|
691
691
|
status: DocumentStatus;
|
|
692
|
+
/** La guardó la jefatura revisora al corregir el texto; `note` es su justificación. */
|
|
693
|
+
correction: boolean;
|
|
692
694
|
createdByFullName: string;
|
|
693
695
|
createdAt: string;
|
|
694
696
|
/** Visaciones, firmas y rechazos mientras fue la versión vigente. */
|
|
@@ -772,3 +774,11 @@ export interface DocumentDraftReviewResponseEntity {
|
|
|
772
774
|
/** Al aprobar el oficial, el documento entró a tramitación: hay que avisar a quien tiene el primer turno. */
|
|
773
775
|
submitted?: boolean;
|
|
774
776
|
}
|
|
777
|
+
|
|
778
|
+
/** Resultado de la corrección de la jefatura revisora: la versión nueva y a quién avisar (quien redacta). */
|
|
779
|
+
export interface DocumentDraftCorrectionResponseEntity {
|
|
780
|
+
id: string;
|
|
781
|
+
ok: boolean;
|
|
782
|
+
versionNumber: number;
|
|
783
|
+
notify: { employeeId: string; fullName: string } | null;
|
|
784
|
+
}
|