@muni-sanfer/types-gestor-documental 0.0.1-beta.0 → 0.0.1-beta.10
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 +459 -2
- package/dist/base/entities.js +102 -1
- package/dist/contracts/caseFile.contract.d.ts +159 -0
- package/dist/contracts/caseFile.contract.js +18 -0
- package/dist/contracts/document.contract.d.ts +167 -3
- package/dist/contracts/document.contract.js +10 -0
- package/dist/contracts/documentType.contract.d.ts +18 -1
- package/dist/contracts/index.d.ts +86 -1
- package/dist/contracts/index.js +18 -0
- package/dist/contracts/partsOffice.contract.d.ts +171 -0
- package/dist/contracts/partsOffice.contract.js +22 -0
- package/dist/contracts/procedure.contract.d.ts +50 -0
- package/dist/contracts/procedure.contract.js +11 -0
- package/dist/contracts/registerBook.contract.d.ts +27 -0
- package/dist/contracts/registerBook.contract.js +8 -0
- package/dist/contracts/signatureBatch.contract.d.ts +109 -0
- package/dist/contracts/signatureBatch.contract.js +12 -0
- package/dist/contracts/workFolder.contract.d.ts +114 -0
- package/dist/contracts/workFolder.contract.js +16 -0
- package/dist/entities/caseFile/caseFile.entity.d.ts +176 -0
- package/dist/entities/caseFile/caseFile.entity.js +2 -0
- package/dist/entities/caseFile/index.d.ts +1 -0
- package/dist/entities/caseFile/index.js +17 -0
- package/dist/entities/document/document.entity.d.ts +250 -1
- package/dist/entities/documentType/documentType.entity.d.ts +18 -1
- package/dist/entities/index.d.ts +6 -0
- package/dist/entities/index.js +6 -0
- package/dist/entities/partsOffice/index.d.ts +1 -0
- package/dist/entities/partsOffice/index.js +17 -0
- package/dist/entities/partsOffice/partsOffice.entity.d.ts +98 -0
- package/dist/entities/partsOffice/partsOffice.entity.js +2 -0
- package/dist/entities/procedure/index.d.ts +1 -0
- package/dist/entities/procedure/index.js +17 -0
- package/dist/entities/procedure/procedure.entity.d.ts +20 -0
- package/dist/entities/procedure/procedure.entity.js +2 -0
- package/dist/entities/registerBook/index.d.ts +1 -0
- package/dist/entities/registerBook/index.js +17 -0
- package/dist/entities/registerBook/registerBook.entity.d.ts +42 -0
- package/dist/entities/registerBook/registerBook.entity.js +2 -0
- package/dist/entities/signatureBatch/index.d.ts +1 -0
- package/dist/entities/signatureBatch/index.js +17 -0
- package/dist/entities/signatureBatch/signatureBatch.entity.d.ts +107 -0
- package/dist/entities/signatureBatch/signatureBatch.entity.js +2 -0
- package/dist/entities/workFolder/index.d.ts +1 -0
- package/dist/entities/workFolder/index.js +17 -0
- package/dist/entities/workFolder/workFolder.entity.d.ts +83 -0
- package/dist/entities/workFolder/workFolder.entity.js +2 -0
- package/package.json +1 -1
- package/src/base/entities.ts +544 -2
- package/src/contracts/caseFile.contract.ts +141 -0
- package/src/contracts/document.contract.ts +153 -0
- package/src/contracts/documentType.contract.ts +14 -1
- package/src/contracts/index.ts +26 -1
- package/src/contracts/partsOffice.contract.ts +120 -0
- package/src/contracts/procedure.contract.ts +53 -0
- package/src/contracts/registerBook.contract.ts +24 -0
- package/src/contracts/signatureBatch.contract.ts +96 -0
- package/src/contracts/workFolder.contract.ts +75 -0
- package/src/entities/caseFile/caseFile.entity.ts +204 -0
- package/src/entities/caseFile/index.ts +1 -0
- package/src/entities/document/document.entity.ts +271 -0
- package/src/entities/documentType/documentType.entity.ts +20 -1
- package/src/entities/index.ts +6 -0
- package/src/entities/partsOffice/index.ts +1 -0
- package/src/entities/partsOffice/partsOffice.entity.ts +103 -0
- package/src/entities/procedure/index.ts +1 -0
- package/src/entities/procedure/procedure.entity.ts +24 -0
- package/src/entities/registerBook/index.ts +1 -0
- package/src/entities/registerBook/registerBook.entity.ts +46 -0
- package/src/entities/signatureBatch/index.ts +1 -0
- package/src/entities/signatureBatch/signatureBatch.entity.ts +110 -0
- package/src/entities/workFolder/index.ts +1 -0
- package/src/entities/workFolder/workFolder.entity.ts +84 -0
- package/tsconfig.json +1 -3
package/dist/base/entities.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const DocumentCategory: {
|
|
|
4
4
|
Communication: "Communication";
|
|
5
5
|
Other: "Other";
|
|
6
6
|
};
|
|
7
|
-
export type DocumentStatus = 'Drafted' | 'PendingVisa' | 'PendingSignature' | 'Finished' | 'Rejected' | 'Discarded';
|
|
7
|
+
export type DocumentStatus = 'Drafted' | 'PendingVisa' | 'PendingSignature' | 'Finished' | 'Rejected' | 'Discarded' | 'Annulled';
|
|
8
8
|
export declare const DocumentStatus: {
|
|
9
9
|
Drafted: "Drafted";
|
|
10
10
|
PendingVisa: "PendingVisa";
|
|
@@ -12,6 +12,7 @@ export declare const DocumentStatus: {
|
|
|
12
12
|
Finished: "Finished";
|
|
13
13
|
Rejected: "Rejected";
|
|
14
14
|
Discarded: "Discarded";
|
|
15
|
+
Annulled: "Annulled";
|
|
15
16
|
};
|
|
16
17
|
export type DocumentAccessLevel = 'Public' | 'Restricted' | 'Secret' | 'Reserved';
|
|
17
18
|
export declare const DocumentAccessLevel: {
|
|
@@ -32,7 +33,7 @@ export declare const DocumentParticipantStatus: {
|
|
|
32
33
|
Resolved: "Resolved";
|
|
33
34
|
Rejected: "Rejected";
|
|
34
35
|
};
|
|
35
|
-
export type DocumentTrackingAction = 'Created' | 'Updated' | 'Submitted' | 'Visaed' | 'Signed' | 'Rejected' | 'Finished' | 'Discarded';
|
|
36
|
+
export type DocumentTrackingAction = 'Created' | 'Updated' | 'Submitted' | 'Visaed' | 'Signed' | 'Rejected' | 'Finished' | 'Discarded' | 'Numbered' | 'NumberAnnulled' | 'Annulled' | 'Delivered' | 'Derived' | 'Reassigned' | 'Dispatched' | 'DispatchReturned' | 'Received';
|
|
36
37
|
export declare const DocumentTrackingAction: {
|
|
37
38
|
Created: "Created";
|
|
38
39
|
Updated: "Updated";
|
|
@@ -42,12 +43,128 @@ export declare const DocumentTrackingAction: {
|
|
|
42
43
|
Rejected: "Rejected";
|
|
43
44
|
Finished: "Finished";
|
|
44
45
|
Discarded: "Discarded";
|
|
46
|
+
Numbered: "Numbered";
|
|
47
|
+
NumberAnnulled: "NumberAnnulled";
|
|
48
|
+
Annulled: "Annulled";
|
|
49
|
+
Delivered: "Delivered";
|
|
50
|
+
Derived: "Derived";
|
|
51
|
+
Reassigned: "Reassigned";
|
|
52
|
+
Dispatched: "Dispatched";
|
|
53
|
+
DispatchReturned: "DispatchReturned";
|
|
54
|
+
Received: "Received";
|
|
55
|
+
};
|
|
56
|
+
export type DocumentOrigin = 'Internal' | 'DocDigital';
|
|
57
|
+
export declare const DocumentOrigin: {
|
|
58
|
+
Internal: "Internal";
|
|
59
|
+
DocDigital: "DocDigital";
|
|
60
|
+
};
|
|
61
|
+
export type DocumentDispatchStatus = 'Pending' | 'Dispatched' | 'Returned';
|
|
62
|
+
export declare const DocumentDispatchStatus: {
|
|
63
|
+
Pending: "Pending";
|
|
64
|
+
Dispatched: "Dispatched";
|
|
65
|
+
Returned: "Returned";
|
|
66
|
+
};
|
|
67
|
+
export type DocDigitalInboundStatus = 'Pending' | 'Registered' | 'Returned';
|
|
68
|
+
export declare const DocDigitalInboundStatus: {
|
|
69
|
+
Pending: "Pending";
|
|
70
|
+
Registered: "Registered";
|
|
71
|
+
Returned: "Returned";
|
|
72
|
+
};
|
|
73
|
+
export type DocumentFlowStepType = 'Employee' | 'DirectorateHead';
|
|
74
|
+
export declare const DocumentFlowStepType: {
|
|
75
|
+
Employee: "Employee";
|
|
76
|
+
DirectorateHead: "DirectorateHead";
|
|
45
77
|
};
|
|
46
78
|
export type DocumentAttachmentType = 'File' | 'Link';
|
|
47
79
|
export declare const DocumentAttachmentType: {
|
|
48
80
|
File: "File";
|
|
49
81
|
Link: "Link";
|
|
50
82
|
};
|
|
83
|
+
export type DocumentRecipientType = 'Employee' | 'Directorate' | 'Department';
|
|
84
|
+
export declare const DocumentRecipientType: {
|
|
85
|
+
Employee: "Employee";
|
|
86
|
+
Directorate: "Directorate";
|
|
87
|
+
Department: "Department";
|
|
88
|
+
};
|
|
89
|
+
export type DocumentDeliveryOrigin = 'Recipient' | 'Derivation';
|
|
90
|
+
export declare const DocumentDeliveryOrigin: {
|
|
91
|
+
Recipient: "Recipient";
|
|
92
|
+
Derivation: "Derivation";
|
|
93
|
+
};
|
|
94
|
+
export type DocumentInstruction = 'Knowledge' | 'Inform' | 'Respond' | 'Archive';
|
|
95
|
+
export declare const DocumentInstruction: {
|
|
96
|
+
Knowledge: "Knowledge";
|
|
97
|
+
Inform: "Inform";
|
|
98
|
+
Respond: "Respond";
|
|
99
|
+
Archive: "Archive";
|
|
100
|
+
};
|
|
101
|
+
export type CaseFileStatus = 'Open' | 'Closed';
|
|
102
|
+
export declare const CaseFileStatus: {
|
|
103
|
+
Open: "Open";
|
|
104
|
+
Closed: "Closed";
|
|
105
|
+
};
|
|
106
|
+
export type CaseFileIncorporationMechanism = 'Manual' | 'WebService' | 'Mixed' | 'CitizenRepository' | 'Interoperability';
|
|
107
|
+
export declare const CaseFileIncorporationMechanism: {
|
|
108
|
+
Manual: "Manual";
|
|
109
|
+
WebService: "WebService";
|
|
110
|
+
Mixed: "Mixed";
|
|
111
|
+
CitizenRepository: "CitizenRepository";
|
|
112
|
+
Interoperability: "Interoperability";
|
|
113
|
+
};
|
|
114
|
+
export type CaseFileActuationType = 'AdministrativeAct' | 'Notification' | 'OfficialCommunication' | 'Interoperability' | 'RequestReception' | 'Subfolder' | 'PowerRegistration';
|
|
115
|
+
export declare const CaseFileActuationType: {
|
|
116
|
+
AdministrativeAct: "AdministrativeAct";
|
|
117
|
+
Notification: "Notification";
|
|
118
|
+
OfficialCommunication: "OfficialCommunication";
|
|
119
|
+
Interoperability: "Interoperability";
|
|
120
|
+
RequestReception: "RequestReception";
|
|
121
|
+
Subfolder: "Subfolder";
|
|
122
|
+
PowerRegistration: "PowerRegistration";
|
|
123
|
+
};
|
|
124
|
+
export type CaseFileEntryKind = 'Document' | 'File' | 'CaseFile';
|
|
125
|
+
export declare const CaseFileEntryKind: {
|
|
126
|
+
Document: "Document";
|
|
127
|
+
File: "File";
|
|
128
|
+
CaseFile: "CaseFile";
|
|
129
|
+
};
|
|
130
|
+
export type CaseFileActorRelation = 'Responsible' | 'Interested' | 'Author' | 'Referred' | 'Recipient' | 'MinisterOfFaith';
|
|
131
|
+
export declare const CaseFileActorRelation: {
|
|
132
|
+
Responsible: "Responsible";
|
|
133
|
+
Interested: "Interested";
|
|
134
|
+
Author: "Author";
|
|
135
|
+
Referred: "Referred";
|
|
136
|
+
Recipient: "Recipient";
|
|
137
|
+
MinisterOfFaith: "MinisterOfFaith";
|
|
138
|
+
};
|
|
139
|
+
export type CaseFileActorType = 'Citizen' | 'Foreigner' | 'PrivateInstitution' | 'Official';
|
|
140
|
+
export declare const CaseFileActorType: {
|
|
141
|
+
Citizen: "Citizen";
|
|
142
|
+
Foreigner: "Foreigner";
|
|
143
|
+
PrivateInstitution: "PrivateInstitution";
|
|
144
|
+
Official: "Official";
|
|
145
|
+
};
|
|
146
|
+
export type CaseFileTrackingAction = 'Created' | 'Updated' | 'EntryAdded' | 'EntryVoided' | 'ParticipantAdded' | 'ParticipantRemoved' | 'Closed' | 'Exported';
|
|
147
|
+
export declare const CaseFileTrackingAction: {
|
|
148
|
+
Created: "Created";
|
|
149
|
+
Updated: "Updated";
|
|
150
|
+
EntryAdded: "EntryAdded";
|
|
151
|
+
EntryVoided: "EntryVoided";
|
|
152
|
+
ParticipantAdded: "ParticipantAdded";
|
|
153
|
+
ParticipantRemoved: "ParticipantRemoved";
|
|
154
|
+
Closed: "Closed";
|
|
155
|
+
Exported: "Exported";
|
|
156
|
+
};
|
|
157
|
+
export type CaseFileAccessAction = 'Viewed' | 'FileDownloaded' | 'Exported';
|
|
158
|
+
export declare const CaseFileAccessAction: {
|
|
159
|
+
Viewed: "Viewed";
|
|
160
|
+
FileDownloaded: "FileDownloaded";
|
|
161
|
+
Exported: "Exported";
|
|
162
|
+
};
|
|
163
|
+
export type WorkFolderItemKind = 'Document' | 'File';
|
|
164
|
+
export declare const WorkFolderItemKind: {
|
|
165
|
+
Document: "Document";
|
|
166
|
+
File: "File";
|
|
167
|
+
};
|
|
51
168
|
export interface DocumentTypeEntity {
|
|
52
169
|
id: string;
|
|
53
170
|
name: string;
|
|
@@ -57,9 +174,13 @@ export interface DocumentTypeEntity {
|
|
|
57
174
|
nextCorrelative: number;
|
|
58
175
|
correlativeYear?: number | null;
|
|
59
176
|
resetsYearly: boolean;
|
|
177
|
+
numbered: boolean;
|
|
60
178
|
directorateCodeReference?: number | null;
|
|
61
179
|
enabled: boolean;
|
|
62
180
|
documents?: DocumentEntity[];
|
|
181
|
+
annulledNumbers?: DocumentAnnulledNumberEntity[];
|
|
182
|
+
flowSteps?: DocumentTypeFlowStepEntity[];
|
|
183
|
+
signatureBatches?: SignatureBatchEntity[];
|
|
63
184
|
deleted: boolean;
|
|
64
185
|
createdAt: string;
|
|
65
186
|
updatedAt: string;
|
|
@@ -74,6 +195,24 @@ export interface DocumentEntity {
|
|
|
74
195
|
correlative?: number | null;
|
|
75
196
|
correlativeYear?: number | null;
|
|
76
197
|
numberedAt?: string | null;
|
|
198
|
+
verificationCode?: string | null;
|
|
199
|
+
signatureSheet: boolean;
|
|
200
|
+
annulledAt?: string | null;
|
|
201
|
+
annulmentReason?: string | null;
|
|
202
|
+
responseDueAt?: string | null;
|
|
203
|
+
origin: DocumentOrigin;
|
|
204
|
+
intakeNumber?: number | null;
|
|
205
|
+
intakeYear?: number | null;
|
|
206
|
+
externalFolio?: string | null;
|
|
207
|
+
externalSender?: string | null;
|
|
208
|
+
externalDate?: string | null;
|
|
209
|
+
contentText?: string | null;
|
|
210
|
+
textExtractedAt?: string | null;
|
|
211
|
+
batch?: SignatureBatchEntity | null;
|
|
212
|
+
batchId?: string | null;
|
|
213
|
+
replyTo?: DocumentEntity | null;
|
|
214
|
+
replyToDocumentId?: string | null;
|
|
215
|
+
replies?: DocumentEntity[];
|
|
77
216
|
directorateCodeReference?: number | null;
|
|
78
217
|
departmentId?: string | null;
|
|
79
218
|
createdByEmployeeId: string;
|
|
@@ -89,6 +228,26 @@ export interface DocumentEntity {
|
|
|
89
228
|
participants?: DocumentParticipantEntity[];
|
|
90
229
|
attachments?: DocumentAttachmentEntity[];
|
|
91
230
|
trackings?: DocumentTrackingEntity[];
|
|
231
|
+
annulledNumbers?: DocumentAnnulledNumberEntity[];
|
|
232
|
+
recipients?: DocumentRecipientEntity[];
|
|
233
|
+
deliveries?: DocumentDeliveryEntity[];
|
|
234
|
+
caseFileEntries?: CaseFileEntryEntity[];
|
|
235
|
+
workFolderItems?: WorkFolderItemEntity[];
|
|
236
|
+
externalRecipients?: DocumentExternalRecipientEntity[];
|
|
237
|
+
dispatch?: DocumentDispatchEntity | null;
|
|
238
|
+
docDigitalInbound?: DocDigitalInboundEntity | null;
|
|
239
|
+
deleted: boolean;
|
|
240
|
+
createdAt: string;
|
|
241
|
+
updatedAt: string;
|
|
242
|
+
}
|
|
243
|
+
export interface SignatureBatchEntity {
|
|
244
|
+
id: string;
|
|
245
|
+
name: string;
|
|
246
|
+
createdByEmployeeId: string;
|
|
247
|
+
createdByFullName: string;
|
|
248
|
+
documentType?: DocumentTypeEntity;
|
|
249
|
+
documentTypeId: string;
|
|
250
|
+
documents?: DocumentEntity[];
|
|
92
251
|
deleted: boolean;
|
|
93
252
|
createdAt: string;
|
|
94
253
|
updatedAt: string;
|
|
@@ -97,6 +256,7 @@ export interface DocumentParticipantEntity {
|
|
|
97
256
|
id: string;
|
|
98
257
|
role: DocumentParticipantRole;
|
|
99
258
|
order: number;
|
|
259
|
+
stage: number;
|
|
100
260
|
status: DocumentParticipantStatus;
|
|
101
261
|
employeeId: string;
|
|
102
262
|
fullName: string;
|
|
@@ -130,3 +290,300 @@ export interface DocumentTrackingEntity {
|
|
|
130
290
|
documentId: string;
|
|
131
291
|
createdAt: string;
|
|
132
292
|
}
|
|
293
|
+
export interface DocumentAnnulledNumberEntity {
|
|
294
|
+
id: string;
|
|
295
|
+
correlative: number;
|
|
296
|
+
correlativeYear: number;
|
|
297
|
+
reason: string;
|
|
298
|
+
employeeId: string;
|
|
299
|
+
employeeFullName: string;
|
|
300
|
+
documentType?: DocumentTypeEntity;
|
|
301
|
+
documentTypeId: string;
|
|
302
|
+
document?: DocumentEntity;
|
|
303
|
+
documentId: string;
|
|
304
|
+
createdAt: string;
|
|
305
|
+
}
|
|
306
|
+
export interface DocumentRecipientEntity {
|
|
307
|
+
id: string;
|
|
308
|
+
type: DocumentRecipientType;
|
|
309
|
+
employeeId?: string | null;
|
|
310
|
+
directorateCodeReference?: number | null;
|
|
311
|
+
departmentId?: string | null;
|
|
312
|
+
name: string;
|
|
313
|
+
position?: string | null;
|
|
314
|
+
document?: DocumentEntity;
|
|
315
|
+
documentId: string;
|
|
316
|
+
createdAt: string;
|
|
317
|
+
}
|
|
318
|
+
export interface DocumentDeliveryEntity {
|
|
319
|
+
id: string;
|
|
320
|
+
origin: DocumentDeliveryOrigin;
|
|
321
|
+
employeeId: string;
|
|
322
|
+
fullName: string;
|
|
323
|
+
position?: string | null;
|
|
324
|
+
areaName?: string | null;
|
|
325
|
+
sentByEmployeeId?: string | null;
|
|
326
|
+
sentByFullName?: string | null;
|
|
327
|
+
instruction?: DocumentInstruction | null;
|
|
328
|
+
note?: string | null;
|
|
329
|
+
dueAt?: string | null;
|
|
330
|
+
deliveredAt?: string | null;
|
|
331
|
+
readAt?: string | null;
|
|
332
|
+
closedAt?: string | null;
|
|
333
|
+
closingNote?: string | null;
|
|
334
|
+
document?: DocumentEntity;
|
|
335
|
+
documentId: string;
|
|
336
|
+
createdAt: string;
|
|
337
|
+
}
|
|
338
|
+
export interface DocumentTypeFlowStepEntity {
|
|
339
|
+
id: string;
|
|
340
|
+
role: DocumentParticipantRole;
|
|
341
|
+
order: number;
|
|
342
|
+
type: DocumentFlowStepType;
|
|
343
|
+
employeeId?: string | null;
|
|
344
|
+
directorateCodeReference?: number | null;
|
|
345
|
+
name: string;
|
|
346
|
+
position?: string | null;
|
|
347
|
+
documentType?: DocumentTypeEntity;
|
|
348
|
+
documentTypeId: string;
|
|
349
|
+
createdAt: string;
|
|
350
|
+
}
|
|
351
|
+
export interface ProcedureEntity {
|
|
352
|
+
id: string;
|
|
353
|
+
name: string;
|
|
354
|
+
cpatId?: string | null;
|
|
355
|
+
cpatCode?: string | null;
|
|
356
|
+
description?: string | null;
|
|
357
|
+
enabled: boolean;
|
|
358
|
+
caseFiles?: CaseFileEntity[];
|
|
359
|
+
deleted: boolean;
|
|
360
|
+
createdAt: string;
|
|
361
|
+
updatedAt: string;
|
|
362
|
+
}
|
|
363
|
+
export interface CaseFileSequenceEntity {
|
|
364
|
+
year: number;
|
|
365
|
+
next: number;
|
|
366
|
+
}
|
|
367
|
+
export interface CaseFileEntity {
|
|
368
|
+
id: string;
|
|
369
|
+
code: string;
|
|
370
|
+
year: number;
|
|
371
|
+
number: number;
|
|
372
|
+
title: string;
|
|
373
|
+
subject: string;
|
|
374
|
+
summary?: string | null;
|
|
375
|
+
status: CaseFileStatus;
|
|
376
|
+
accessLevel: DocumentAccessLevel;
|
|
377
|
+
hasSensitiveData: boolean;
|
|
378
|
+
incorporationMechanism: CaseFileIncorporationMechanism;
|
|
379
|
+
schemaVersion: string;
|
|
380
|
+
procedure?: ProcedureEntity;
|
|
381
|
+
procedureId: string;
|
|
382
|
+
responsibleEmployeeId: string;
|
|
383
|
+
responsibleFullName: string;
|
|
384
|
+
responsiblePosition?: string | null;
|
|
385
|
+
closedAt?: string | null;
|
|
386
|
+
closedByEmployeeId?: string | null;
|
|
387
|
+
closedByFullName?: string | null;
|
|
388
|
+
closingNote?: string | null;
|
|
389
|
+
participants?: CaseFileParticipantEntity[];
|
|
390
|
+
actors?: CaseFileActorEntity[];
|
|
391
|
+
entries?: CaseFileEntryEntity[];
|
|
392
|
+
linkedFrom?: CaseFileEntryEntity[];
|
|
393
|
+
trackings?: CaseFileTrackingEntity[];
|
|
394
|
+
metadataChanges?: CaseFileMetadataChangeEntity[];
|
|
395
|
+
accesses?: CaseFileAccessEntity[];
|
|
396
|
+
createdAt: string;
|
|
397
|
+
updatedAt: string;
|
|
398
|
+
workFolder?: WorkFolderEntity | null;
|
|
399
|
+
}
|
|
400
|
+
export interface CaseFileParticipantEntity {
|
|
401
|
+
id: string;
|
|
402
|
+
employeeId: string;
|
|
403
|
+
fullName: string;
|
|
404
|
+
position?: string | null;
|
|
405
|
+
addedByEmployeeId: string;
|
|
406
|
+
addedByFullName: string;
|
|
407
|
+
caseFile?: CaseFileEntity;
|
|
408
|
+
caseFileId: string;
|
|
409
|
+
createdAt: string;
|
|
410
|
+
}
|
|
411
|
+
export interface CaseFileActorEntity {
|
|
412
|
+
id: string;
|
|
413
|
+
relation: CaseFileActorRelation;
|
|
414
|
+
actorType: CaseFileActorType;
|
|
415
|
+
identifier?: string | null;
|
|
416
|
+
name: string;
|
|
417
|
+
caseFile?: CaseFileEntity;
|
|
418
|
+
caseFileId: string;
|
|
419
|
+
createdAt: string;
|
|
420
|
+
}
|
|
421
|
+
export interface CaseFileEntryEntity {
|
|
422
|
+
id: string;
|
|
423
|
+
sequence: number;
|
|
424
|
+
kind: CaseFileEntryKind;
|
|
425
|
+
actuationType: CaseFileActuationType;
|
|
426
|
+
title: string;
|
|
427
|
+
document?: DocumentEntity | null;
|
|
428
|
+
documentId?: string | null;
|
|
429
|
+
fileId?: string | null;
|
|
430
|
+
fileName?: string | null;
|
|
431
|
+
documentTypeName?: string | null;
|
|
432
|
+
originDate?: string | null;
|
|
433
|
+
author?: string | null;
|
|
434
|
+
keywords: string[];
|
|
435
|
+
accessLevel?: DocumentAccessLevel | null;
|
|
436
|
+
hasSensitiveData?: boolean | null;
|
|
437
|
+
linkedCaseFile?: CaseFileEntity | null;
|
|
438
|
+
linkedCaseFileId?: string | null;
|
|
439
|
+
sha256?: string | null;
|
|
440
|
+
size?: number | null;
|
|
441
|
+
hasAdvancedSignature: boolean;
|
|
442
|
+
incorporatedByEmployeeId: string;
|
|
443
|
+
incorporatedByFullName: string;
|
|
444
|
+
voidedAt?: string | null;
|
|
445
|
+
voidedByEmployeeId?: string | null;
|
|
446
|
+
voidedByFullName?: string | null;
|
|
447
|
+
voidReason?: string | null;
|
|
448
|
+
caseFile?: CaseFileEntity;
|
|
449
|
+
caseFileId: string;
|
|
450
|
+
createdAt: string;
|
|
451
|
+
}
|
|
452
|
+
export interface CaseFileTrackingEntity {
|
|
453
|
+
id: string;
|
|
454
|
+
action: CaseFileTrackingAction;
|
|
455
|
+
observation?: string | null;
|
|
456
|
+
employeeId?: string | null;
|
|
457
|
+
employeeFullName?: string | null;
|
|
458
|
+
caseFile?: CaseFileEntity;
|
|
459
|
+
caseFileId: string;
|
|
460
|
+
createdAt: string;
|
|
461
|
+
}
|
|
462
|
+
export interface CaseFileMetadataChangeEntity {
|
|
463
|
+
id: string;
|
|
464
|
+
field: string;
|
|
465
|
+
previousValue?: string | null;
|
|
466
|
+
newValue?: string | null;
|
|
467
|
+
employeeId: string;
|
|
468
|
+
employeeFullName: string;
|
|
469
|
+
caseFile?: CaseFileEntity;
|
|
470
|
+
caseFileId: string;
|
|
471
|
+
createdAt: string;
|
|
472
|
+
}
|
|
473
|
+
export interface CaseFileAccessEntity {
|
|
474
|
+
id: string;
|
|
475
|
+
action: CaseFileAccessAction;
|
|
476
|
+
entryId?: string | null;
|
|
477
|
+
employeeId: string;
|
|
478
|
+
employeeFullName: string;
|
|
479
|
+
caseFile?: CaseFileEntity;
|
|
480
|
+
caseFileId: string;
|
|
481
|
+
createdAt: string;
|
|
482
|
+
}
|
|
483
|
+
export interface DocumentExternalRecipientEntity {
|
|
484
|
+
id: string;
|
|
485
|
+
entityId: number;
|
|
486
|
+
entityName: string;
|
|
487
|
+
userId?: number | null;
|
|
488
|
+
userName?: string | null;
|
|
489
|
+
userPosition?: string | null;
|
|
490
|
+
document?: DocumentEntity;
|
|
491
|
+
documentId: string;
|
|
492
|
+
createdAt: string;
|
|
493
|
+
}
|
|
494
|
+
export interface DocumentDispatchEntity {
|
|
495
|
+
id: string;
|
|
496
|
+
status: DocumentDispatchStatus;
|
|
497
|
+
folio?: string | null;
|
|
498
|
+
docDigitalTypeId?: number | null;
|
|
499
|
+
docDigitalTypeName?: string | null;
|
|
500
|
+
docDigitalDocumentId?: string | null;
|
|
501
|
+
docDigitalRequestId?: string | null;
|
|
502
|
+
dispatchedAt?: string | null;
|
|
503
|
+
dispatchedByEmployeeId?: string | null;
|
|
504
|
+
dispatchedByFullName?: string | null;
|
|
505
|
+
returnedAt?: string | null;
|
|
506
|
+
returnedByEmployeeId?: string | null;
|
|
507
|
+
returnedByFullName?: string | null;
|
|
508
|
+
returnReason?: string | null;
|
|
509
|
+
document?: DocumentEntity;
|
|
510
|
+
documentId: string;
|
|
511
|
+
createdAt: string;
|
|
512
|
+
updatedAt: string;
|
|
513
|
+
}
|
|
514
|
+
export interface DocDigitalInboundEntity {
|
|
515
|
+
id: string;
|
|
516
|
+
docDigitalDocumentId: string;
|
|
517
|
+
docDigitalRequestId?: string | null;
|
|
518
|
+
status: DocDigitalInboundStatus;
|
|
519
|
+
subject: string;
|
|
520
|
+
description?: string | null;
|
|
521
|
+
folio?: string | null;
|
|
522
|
+
folioDate?: string | null;
|
|
523
|
+
typeName?: string | null;
|
|
524
|
+
reserved: boolean;
|
|
525
|
+
senderEntityId?: number | null;
|
|
526
|
+
senderEntityName?: string | null;
|
|
527
|
+
senderName?: string | null;
|
|
528
|
+
senderPosition?: string | null;
|
|
529
|
+
fileId?: string | null;
|
|
530
|
+
fileName?: string | null;
|
|
531
|
+
attachments: JsonValue;
|
|
532
|
+
registeredAt?: string | null;
|
|
533
|
+
registeredByEmployeeId?: string | null;
|
|
534
|
+
registeredByFullName?: string | null;
|
|
535
|
+
acknowledgedAt?: string | null;
|
|
536
|
+
acknowledgeError?: string | null;
|
|
537
|
+
returnedAt?: string | null;
|
|
538
|
+
returnedByEmployeeId?: string | null;
|
|
539
|
+
returnedByFullName?: string | null;
|
|
540
|
+
returnReason?: string | null;
|
|
541
|
+
document?: DocumentEntity | null;
|
|
542
|
+
documentId?: string | null;
|
|
543
|
+
createdAt: string;
|
|
544
|
+
updatedAt: string;
|
|
545
|
+
}
|
|
546
|
+
export interface IntakeSequenceEntity {
|
|
547
|
+
year: number;
|
|
548
|
+
next: number;
|
|
549
|
+
}
|
|
550
|
+
export interface WorkFolderEntity {
|
|
551
|
+
id: string;
|
|
552
|
+
name: string;
|
|
553
|
+
description?: string | null;
|
|
554
|
+
ownerEmployeeId: string;
|
|
555
|
+
ownerFullName: string;
|
|
556
|
+
caseFile?: CaseFileEntity | null;
|
|
557
|
+
caseFileId?: string | null;
|
|
558
|
+
participants?: WorkFolderParticipantEntity[];
|
|
559
|
+
items?: WorkFolderItemEntity[];
|
|
560
|
+
deleted: boolean;
|
|
561
|
+
createdAt: string;
|
|
562
|
+
updatedAt: string;
|
|
563
|
+
}
|
|
564
|
+
export interface WorkFolderParticipantEntity {
|
|
565
|
+
id: string;
|
|
566
|
+
employeeId: string;
|
|
567
|
+
fullName: string;
|
|
568
|
+
folder?: WorkFolderEntity;
|
|
569
|
+
folderId: string;
|
|
570
|
+
createdAt: string;
|
|
571
|
+
}
|
|
572
|
+
export interface WorkFolderItemEntity {
|
|
573
|
+
id: string;
|
|
574
|
+
kind: WorkFolderItemKind;
|
|
575
|
+
title: string;
|
|
576
|
+
document?: DocumentEntity | null;
|
|
577
|
+
documentId?: string | null;
|
|
578
|
+
fileId?: string | null;
|
|
579
|
+
fileName?: string | null;
|
|
580
|
+
addedByEmployeeId: string;
|
|
581
|
+
addedByFullName: string;
|
|
582
|
+
folder?: WorkFolderEntity;
|
|
583
|
+
folderId: string;
|
|
584
|
+
createdAt: string;
|
|
585
|
+
}
|
|
586
|
+
type JsonValue = string | number | boolean | {
|
|
587
|
+
[key in string]?: JsonValue;
|
|
588
|
+
} | Array<JsonValue> | null;
|
|
589
|
+
export {};
|
package/dist/base/entities.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.DocumentAttachmentType = exports.DocumentTrackingAction = exports.DocumentParticipantStatus = exports.DocumentParticipantRole = exports.DocumentAccessLevel = exports.DocumentStatus = exports.DocumentCategory = void 0;
|
|
4
|
+
exports.WorkFolderItemKind = 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.DocumentOrigin = exports.DocumentTrackingAction = exports.DocumentParticipantStatus = exports.DocumentParticipantRole = exports.DocumentAccessLevel = exports.DocumentStatus = exports.DocumentCategory = void 0;
|
|
5
5
|
exports.DocumentCategory = {
|
|
6
6
|
Decree: 'Decree',
|
|
7
7
|
Communication: 'Communication',
|
|
@@ -14,6 +14,7 @@ exports.DocumentStatus = {
|
|
|
14
14
|
Finished: 'Finished',
|
|
15
15
|
Rejected: 'Rejected',
|
|
16
16
|
Discarded: 'Discarded',
|
|
17
|
+
Annulled: 'Annulled',
|
|
17
18
|
};
|
|
18
19
|
exports.DocumentAccessLevel = {
|
|
19
20
|
Public: 'Public',
|
|
@@ -40,8 +41,108 @@ exports.DocumentTrackingAction = {
|
|
|
40
41
|
Rejected: 'Rejected',
|
|
41
42
|
Finished: 'Finished',
|
|
42
43
|
Discarded: 'Discarded',
|
|
44
|
+
Numbered: 'Numbered',
|
|
45
|
+
NumberAnnulled: 'NumberAnnulled',
|
|
46
|
+
Annulled: 'Annulled',
|
|
47
|
+
Delivered: 'Delivered',
|
|
48
|
+
Derived: 'Derived',
|
|
49
|
+
Reassigned: 'Reassigned',
|
|
50
|
+
Dispatched: 'Dispatched',
|
|
51
|
+
DispatchReturned: 'DispatchReturned',
|
|
52
|
+
Received: 'Received',
|
|
53
|
+
};
|
|
54
|
+
exports.DocumentOrigin = {
|
|
55
|
+
Internal: 'Internal',
|
|
56
|
+
DocDigital: 'DocDigital',
|
|
57
|
+
};
|
|
58
|
+
exports.DocumentDispatchStatus = {
|
|
59
|
+
Pending: 'Pending',
|
|
60
|
+
Dispatched: 'Dispatched',
|
|
61
|
+
Returned: 'Returned',
|
|
62
|
+
};
|
|
63
|
+
exports.DocDigitalInboundStatus = {
|
|
64
|
+
Pending: 'Pending',
|
|
65
|
+
Registered: 'Registered',
|
|
66
|
+
Returned: 'Returned',
|
|
67
|
+
};
|
|
68
|
+
exports.DocumentFlowStepType = {
|
|
69
|
+
Employee: 'Employee',
|
|
70
|
+
DirectorateHead: 'DirectorateHead',
|
|
43
71
|
};
|
|
44
72
|
exports.DocumentAttachmentType = {
|
|
45
73
|
File: 'File',
|
|
46
74
|
Link: 'Link',
|
|
47
75
|
};
|
|
76
|
+
exports.DocumentRecipientType = {
|
|
77
|
+
Employee: 'Employee',
|
|
78
|
+
Directorate: 'Directorate',
|
|
79
|
+
Department: 'Department',
|
|
80
|
+
};
|
|
81
|
+
exports.DocumentDeliveryOrigin = {
|
|
82
|
+
Recipient: 'Recipient',
|
|
83
|
+
Derivation: 'Derivation',
|
|
84
|
+
};
|
|
85
|
+
exports.DocumentInstruction = {
|
|
86
|
+
Knowledge: 'Knowledge',
|
|
87
|
+
Inform: 'Inform',
|
|
88
|
+
Respond: 'Respond',
|
|
89
|
+
Archive: 'Archive',
|
|
90
|
+
};
|
|
91
|
+
exports.CaseFileStatus = {
|
|
92
|
+
Open: 'Open',
|
|
93
|
+
Closed: 'Closed',
|
|
94
|
+
};
|
|
95
|
+
exports.CaseFileIncorporationMechanism = {
|
|
96
|
+
Manual: 'Manual',
|
|
97
|
+
WebService: 'WebService',
|
|
98
|
+
Mixed: 'Mixed',
|
|
99
|
+
CitizenRepository: 'CitizenRepository',
|
|
100
|
+
Interoperability: 'Interoperability',
|
|
101
|
+
};
|
|
102
|
+
exports.CaseFileActuationType = {
|
|
103
|
+
AdministrativeAct: 'AdministrativeAct',
|
|
104
|
+
Notification: 'Notification',
|
|
105
|
+
OfficialCommunication: 'OfficialCommunication',
|
|
106
|
+
Interoperability: 'Interoperability',
|
|
107
|
+
RequestReception: 'RequestReception',
|
|
108
|
+
Subfolder: 'Subfolder',
|
|
109
|
+
PowerRegistration: 'PowerRegistration',
|
|
110
|
+
};
|
|
111
|
+
exports.CaseFileEntryKind = {
|
|
112
|
+
Document: 'Document',
|
|
113
|
+
File: 'File',
|
|
114
|
+
CaseFile: 'CaseFile',
|
|
115
|
+
};
|
|
116
|
+
exports.CaseFileActorRelation = {
|
|
117
|
+
Responsible: 'Responsible',
|
|
118
|
+
Interested: 'Interested',
|
|
119
|
+
Author: 'Author',
|
|
120
|
+
Referred: 'Referred',
|
|
121
|
+
Recipient: 'Recipient',
|
|
122
|
+
MinisterOfFaith: 'MinisterOfFaith',
|
|
123
|
+
};
|
|
124
|
+
exports.CaseFileActorType = {
|
|
125
|
+
Citizen: 'Citizen',
|
|
126
|
+
Foreigner: 'Foreigner',
|
|
127
|
+
PrivateInstitution: 'PrivateInstitution',
|
|
128
|
+
Official: 'Official',
|
|
129
|
+
};
|
|
130
|
+
exports.CaseFileTrackingAction = {
|
|
131
|
+
Created: 'Created',
|
|
132
|
+
Updated: 'Updated',
|
|
133
|
+
EntryAdded: 'EntryAdded',
|
|
134
|
+
EntryVoided: 'EntryVoided',
|
|
135
|
+
ParticipantAdded: 'ParticipantAdded',
|
|
136
|
+
ParticipantRemoved: 'ParticipantRemoved',
|
|
137
|
+
Closed: 'Closed',
|
|
138
|
+
Exported: 'Exported',
|
|
139
|
+
};
|
|
140
|
+
exports.CaseFileAccessAction = {
|
|
141
|
+
Viewed: 'Viewed',
|
|
142
|
+
FileDownloaded: 'FileDownloaded',
|
|
143
|
+
Exported: 'Exported',
|
|
144
|
+
};
|
|
145
|
+
exports.WorkFolderItemKind = {
|
|
146
|
+
Document: 'Document',
|
|
147
|
+
File: 'File',
|
|
148
|
+
};
|