@muni-sanfer/types-gestor-documental 0.0.1-beta.1 → 0.0.1-beta.11
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 +436 -1
- package/dist/base/entities.js +98 -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 +163 -3
- package/dist/contracts/document.contract.js +8 -0
- package/dist/contracts/documentType.contract.d.ts +18 -1
- package/dist/contracts/index.d.ts +84 -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 +248 -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 +509 -1
- package/src/contracts/caseFile.contract.ts +141 -0
- package/src/contracts/document.contract.ts +155 -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 +259 -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
|
@@ -33,7 +33,7 @@ export declare const DocumentParticipantStatus: {
|
|
|
33
33
|
Resolved: "Resolved";
|
|
34
34
|
Rejected: "Rejected";
|
|
35
35
|
};
|
|
36
|
-
export type DocumentTrackingAction = 'Created' | 'Updated' | 'Submitted' | 'Visaed' | 'Signed' | 'Rejected' | 'Finished' | 'Discarded' | 'Numbered' | 'NumberAnnulled' | 'Annulled';
|
|
36
|
+
export type DocumentTrackingAction = 'Created' | 'Updated' | 'Submitted' | 'Visaed' | 'Signed' | 'Rejected' | 'Finished' | 'Discarded' | 'Numbered' | 'NumberAnnulled' | 'Annulled' | 'Delivered' | 'Derived' | 'Reassigned' | 'Dispatched' | 'DispatchReturned' | 'Received';
|
|
37
37
|
export declare const DocumentTrackingAction: {
|
|
38
38
|
Created: "Created";
|
|
39
39
|
Updated: "Updated";
|
|
@@ -46,12 +46,125 @@ export declare const DocumentTrackingAction: {
|
|
|
46
46
|
Numbered: "Numbered";
|
|
47
47
|
NumberAnnulled: "NumberAnnulled";
|
|
48
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";
|
|
49
77
|
};
|
|
50
78
|
export type DocumentAttachmentType = 'File' | 'Link';
|
|
51
79
|
export declare const DocumentAttachmentType: {
|
|
52
80
|
File: "File";
|
|
53
81
|
Link: "Link";
|
|
54
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
|
+
};
|
|
55
168
|
export interface DocumentTypeEntity {
|
|
56
169
|
id: string;
|
|
57
170
|
name: string;
|
|
@@ -61,10 +174,13 @@ export interface DocumentTypeEntity {
|
|
|
61
174
|
nextCorrelative: number;
|
|
62
175
|
correlativeYear?: number | null;
|
|
63
176
|
resetsYearly: boolean;
|
|
177
|
+
numbered: boolean;
|
|
64
178
|
directorateCodeReference?: number | null;
|
|
65
179
|
enabled: boolean;
|
|
66
180
|
documents?: DocumentEntity[];
|
|
67
181
|
annulledNumbers?: DocumentAnnulledNumberEntity[];
|
|
182
|
+
flowSteps?: DocumentTypeFlowStepEntity[];
|
|
183
|
+
signatureBatches?: SignatureBatchEntity[];
|
|
68
184
|
deleted: boolean;
|
|
69
185
|
createdAt: string;
|
|
70
186
|
updatedAt: string;
|
|
@@ -83,6 +199,21 @@ export interface DocumentEntity {
|
|
|
83
199
|
signatureSheet: boolean;
|
|
84
200
|
annulledAt?: string | null;
|
|
85
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
|
+
composition?: JsonValue | null;
|
|
210
|
+
contentText?: string | null;
|
|
211
|
+
textExtractedAt?: string | null;
|
|
212
|
+
batch?: SignatureBatchEntity | null;
|
|
213
|
+
batchId?: string | null;
|
|
214
|
+
replyTo?: DocumentEntity | null;
|
|
215
|
+
replyToDocumentId?: string | null;
|
|
216
|
+
replies?: DocumentEntity[];
|
|
86
217
|
directorateCodeReference?: number | null;
|
|
87
218
|
departmentId?: string | null;
|
|
88
219
|
createdByEmployeeId: string;
|
|
@@ -99,6 +230,25 @@ export interface DocumentEntity {
|
|
|
99
230
|
attachments?: DocumentAttachmentEntity[];
|
|
100
231
|
trackings?: DocumentTrackingEntity[];
|
|
101
232
|
annulledNumbers?: DocumentAnnulledNumberEntity[];
|
|
233
|
+
recipients?: DocumentRecipientEntity[];
|
|
234
|
+
deliveries?: DocumentDeliveryEntity[];
|
|
235
|
+
caseFileEntries?: CaseFileEntryEntity[];
|
|
236
|
+
workFolderItems?: WorkFolderItemEntity[];
|
|
237
|
+
externalRecipients?: DocumentExternalRecipientEntity[];
|
|
238
|
+
dispatch?: DocumentDispatchEntity | null;
|
|
239
|
+
docDigitalInbound?: DocDigitalInboundEntity | null;
|
|
240
|
+
deleted: boolean;
|
|
241
|
+
createdAt: string;
|
|
242
|
+
updatedAt: string;
|
|
243
|
+
}
|
|
244
|
+
export interface SignatureBatchEntity {
|
|
245
|
+
id: string;
|
|
246
|
+
name: string;
|
|
247
|
+
createdByEmployeeId: string;
|
|
248
|
+
createdByFullName: string;
|
|
249
|
+
documentType?: DocumentTypeEntity;
|
|
250
|
+
documentTypeId: string;
|
|
251
|
+
documents?: DocumentEntity[];
|
|
102
252
|
deleted: boolean;
|
|
103
253
|
createdAt: string;
|
|
104
254
|
updatedAt: string;
|
|
@@ -107,6 +257,7 @@ export interface DocumentParticipantEntity {
|
|
|
107
257
|
id: string;
|
|
108
258
|
role: DocumentParticipantRole;
|
|
109
259
|
order: number;
|
|
260
|
+
stage: number;
|
|
110
261
|
status: DocumentParticipantStatus;
|
|
111
262
|
employeeId: string;
|
|
112
263
|
fullName: string;
|
|
@@ -153,3 +304,287 @@ export interface DocumentAnnulledNumberEntity {
|
|
|
153
304
|
documentId: string;
|
|
154
305
|
createdAt: string;
|
|
155
306
|
}
|
|
307
|
+
export interface DocumentRecipientEntity {
|
|
308
|
+
id: string;
|
|
309
|
+
type: DocumentRecipientType;
|
|
310
|
+
employeeId?: string | null;
|
|
311
|
+
directorateCodeReference?: number | null;
|
|
312
|
+
departmentId?: string | null;
|
|
313
|
+
name: string;
|
|
314
|
+
position?: string | null;
|
|
315
|
+
document?: DocumentEntity;
|
|
316
|
+
documentId: string;
|
|
317
|
+
createdAt: string;
|
|
318
|
+
}
|
|
319
|
+
export interface DocumentDeliveryEntity {
|
|
320
|
+
id: string;
|
|
321
|
+
origin: DocumentDeliveryOrigin;
|
|
322
|
+
employeeId: string;
|
|
323
|
+
fullName: string;
|
|
324
|
+
position?: string | null;
|
|
325
|
+
areaName?: string | null;
|
|
326
|
+
sentByEmployeeId?: string | null;
|
|
327
|
+
sentByFullName?: string | null;
|
|
328
|
+
instruction?: DocumentInstruction | null;
|
|
329
|
+
note?: string | null;
|
|
330
|
+
dueAt?: string | null;
|
|
331
|
+
deliveredAt?: string | null;
|
|
332
|
+
readAt?: string | null;
|
|
333
|
+
closedAt?: string | null;
|
|
334
|
+
closingNote?: string | null;
|
|
335
|
+
document?: DocumentEntity;
|
|
336
|
+
documentId: string;
|
|
337
|
+
createdAt: string;
|
|
338
|
+
}
|
|
339
|
+
export interface DocumentTypeFlowStepEntity {
|
|
340
|
+
id: string;
|
|
341
|
+
role: DocumentParticipantRole;
|
|
342
|
+
order: number;
|
|
343
|
+
type: DocumentFlowStepType;
|
|
344
|
+
employeeId?: string | null;
|
|
345
|
+
directorateCodeReference?: number | null;
|
|
346
|
+
name: string;
|
|
347
|
+
position?: string | null;
|
|
348
|
+
documentType?: DocumentTypeEntity;
|
|
349
|
+
documentTypeId: string;
|
|
350
|
+
createdAt: string;
|
|
351
|
+
}
|
|
352
|
+
export interface ProcedureEntity {
|
|
353
|
+
id: string;
|
|
354
|
+
name: string;
|
|
355
|
+
cpatId?: string | null;
|
|
356
|
+
cpatCode?: string | null;
|
|
357
|
+
description?: string | null;
|
|
358
|
+
enabled: boolean;
|
|
359
|
+
caseFiles?: CaseFileEntity[];
|
|
360
|
+
deleted: boolean;
|
|
361
|
+
createdAt: string;
|
|
362
|
+
updatedAt: string;
|
|
363
|
+
}
|
|
364
|
+
export interface CaseFileSequenceEntity {
|
|
365
|
+
year: number;
|
|
366
|
+
next: number;
|
|
367
|
+
}
|
|
368
|
+
export interface CaseFileEntity {
|
|
369
|
+
id: string;
|
|
370
|
+
code: string;
|
|
371
|
+
year: number;
|
|
372
|
+
number: number;
|
|
373
|
+
title: string;
|
|
374
|
+
subject: string;
|
|
375
|
+
summary?: string | null;
|
|
376
|
+
status: CaseFileStatus;
|
|
377
|
+
accessLevel: DocumentAccessLevel;
|
|
378
|
+
hasSensitiveData: boolean;
|
|
379
|
+
incorporationMechanism: CaseFileIncorporationMechanism;
|
|
380
|
+
schemaVersion: string;
|
|
381
|
+
procedure?: ProcedureEntity;
|
|
382
|
+
procedureId: string;
|
|
383
|
+
responsibleEmployeeId: string;
|
|
384
|
+
responsibleFullName: string;
|
|
385
|
+
responsiblePosition?: string | null;
|
|
386
|
+
closedAt?: string | null;
|
|
387
|
+
closedByEmployeeId?: string | null;
|
|
388
|
+
closedByFullName?: string | null;
|
|
389
|
+
closingNote?: string | null;
|
|
390
|
+
participants?: CaseFileParticipantEntity[];
|
|
391
|
+
actors?: CaseFileActorEntity[];
|
|
392
|
+
entries?: CaseFileEntryEntity[];
|
|
393
|
+
linkedFrom?: CaseFileEntryEntity[];
|
|
394
|
+
trackings?: CaseFileTrackingEntity[];
|
|
395
|
+
metadataChanges?: CaseFileMetadataChangeEntity[];
|
|
396
|
+
accesses?: CaseFileAccessEntity[];
|
|
397
|
+
createdAt: string;
|
|
398
|
+
updatedAt: string;
|
|
399
|
+
workFolder?: WorkFolderEntity | null;
|
|
400
|
+
}
|
|
401
|
+
export interface CaseFileParticipantEntity {
|
|
402
|
+
id: string;
|
|
403
|
+
employeeId: string;
|
|
404
|
+
fullName: string;
|
|
405
|
+
position?: string | null;
|
|
406
|
+
addedByEmployeeId: string;
|
|
407
|
+
addedByFullName: string;
|
|
408
|
+
caseFile?: CaseFileEntity;
|
|
409
|
+
caseFileId: string;
|
|
410
|
+
createdAt: string;
|
|
411
|
+
}
|
|
412
|
+
export interface CaseFileActorEntity {
|
|
413
|
+
id: string;
|
|
414
|
+
relation: CaseFileActorRelation;
|
|
415
|
+
actorType: CaseFileActorType;
|
|
416
|
+
identifier?: string | null;
|
|
417
|
+
name: string;
|
|
418
|
+
caseFile?: CaseFileEntity;
|
|
419
|
+
caseFileId: string;
|
|
420
|
+
createdAt: string;
|
|
421
|
+
}
|
|
422
|
+
export interface CaseFileEntryEntity {
|
|
423
|
+
id: string;
|
|
424
|
+
sequence: number;
|
|
425
|
+
kind: CaseFileEntryKind;
|
|
426
|
+
actuationType: CaseFileActuationType;
|
|
427
|
+
title: string;
|
|
428
|
+
document?: DocumentEntity | null;
|
|
429
|
+
documentId?: string | null;
|
|
430
|
+
fileId?: string | null;
|
|
431
|
+
fileName?: string | null;
|
|
432
|
+
documentTypeName?: string | null;
|
|
433
|
+
originDate?: string | null;
|
|
434
|
+
author?: string | null;
|
|
435
|
+
keywords: string[];
|
|
436
|
+
accessLevel?: DocumentAccessLevel | null;
|
|
437
|
+
hasSensitiveData?: boolean | null;
|
|
438
|
+
linkedCaseFile?: CaseFileEntity | null;
|
|
439
|
+
linkedCaseFileId?: string | null;
|
|
440
|
+
sha256?: string | null;
|
|
441
|
+
size?: number | null;
|
|
442
|
+
hasAdvancedSignature: boolean;
|
|
443
|
+
incorporatedByEmployeeId: string;
|
|
444
|
+
incorporatedByFullName: string;
|
|
445
|
+
voidedAt?: string | null;
|
|
446
|
+
voidedByEmployeeId?: string | null;
|
|
447
|
+
voidedByFullName?: string | null;
|
|
448
|
+
voidReason?: string | null;
|
|
449
|
+
caseFile?: CaseFileEntity;
|
|
450
|
+
caseFileId: string;
|
|
451
|
+
createdAt: string;
|
|
452
|
+
}
|
|
453
|
+
export interface CaseFileTrackingEntity {
|
|
454
|
+
id: string;
|
|
455
|
+
action: CaseFileTrackingAction;
|
|
456
|
+
observation?: string | null;
|
|
457
|
+
employeeId?: string | null;
|
|
458
|
+
employeeFullName?: string | null;
|
|
459
|
+
caseFile?: CaseFileEntity;
|
|
460
|
+
caseFileId: string;
|
|
461
|
+
createdAt: string;
|
|
462
|
+
}
|
|
463
|
+
export interface CaseFileMetadataChangeEntity {
|
|
464
|
+
id: string;
|
|
465
|
+
field: string;
|
|
466
|
+
previousValue?: string | null;
|
|
467
|
+
newValue?: string | null;
|
|
468
|
+
employeeId: string;
|
|
469
|
+
employeeFullName: string;
|
|
470
|
+
caseFile?: CaseFileEntity;
|
|
471
|
+
caseFileId: string;
|
|
472
|
+
createdAt: string;
|
|
473
|
+
}
|
|
474
|
+
export interface CaseFileAccessEntity {
|
|
475
|
+
id: string;
|
|
476
|
+
action: CaseFileAccessAction;
|
|
477
|
+
entryId?: string | null;
|
|
478
|
+
employeeId: string;
|
|
479
|
+
employeeFullName: string;
|
|
480
|
+
caseFile?: CaseFileEntity;
|
|
481
|
+
caseFileId: string;
|
|
482
|
+
createdAt: string;
|
|
483
|
+
}
|
|
484
|
+
export interface DocumentExternalRecipientEntity {
|
|
485
|
+
id: string;
|
|
486
|
+
entityId: number;
|
|
487
|
+
entityName: string;
|
|
488
|
+
userId?: number | null;
|
|
489
|
+
userName?: string | null;
|
|
490
|
+
userPosition?: string | null;
|
|
491
|
+
document?: DocumentEntity;
|
|
492
|
+
documentId: string;
|
|
493
|
+
createdAt: string;
|
|
494
|
+
}
|
|
495
|
+
export interface DocumentDispatchEntity {
|
|
496
|
+
id: string;
|
|
497
|
+
status: DocumentDispatchStatus;
|
|
498
|
+
folio?: string | null;
|
|
499
|
+
docDigitalTypeId?: number | null;
|
|
500
|
+
docDigitalTypeName?: string | null;
|
|
501
|
+
docDigitalDocumentId?: string | null;
|
|
502
|
+
docDigitalRequestId?: string | null;
|
|
503
|
+
dispatchedAt?: string | null;
|
|
504
|
+
dispatchedByEmployeeId?: string | null;
|
|
505
|
+
dispatchedByFullName?: string | null;
|
|
506
|
+
returnedAt?: string | null;
|
|
507
|
+
returnedByEmployeeId?: string | null;
|
|
508
|
+
returnedByFullName?: string | null;
|
|
509
|
+
returnReason?: string | null;
|
|
510
|
+
document?: DocumentEntity;
|
|
511
|
+
documentId: string;
|
|
512
|
+
createdAt: string;
|
|
513
|
+
updatedAt: string;
|
|
514
|
+
}
|
|
515
|
+
export interface DocDigitalInboundEntity {
|
|
516
|
+
id: string;
|
|
517
|
+
docDigitalDocumentId: string;
|
|
518
|
+
docDigitalRequestId?: string | null;
|
|
519
|
+
status: DocDigitalInboundStatus;
|
|
520
|
+
subject: string;
|
|
521
|
+
description?: string | null;
|
|
522
|
+
folio?: string | null;
|
|
523
|
+
folioDate?: string | null;
|
|
524
|
+
typeName?: string | null;
|
|
525
|
+
reserved: boolean;
|
|
526
|
+
senderEntityId?: number | null;
|
|
527
|
+
senderEntityName?: string | null;
|
|
528
|
+
senderName?: string | null;
|
|
529
|
+
senderPosition?: string | null;
|
|
530
|
+
fileId?: string | null;
|
|
531
|
+
fileName?: string | null;
|
|
532
|
+
attachments: JsonValue;
|
|
533
|
+
registeredAt?: string | null;
|
|
534
|
+
registeredByEmployeeId?: string | null;
|
|
535
|
+
registeredByFullName?: string | null;
|
|
536
|
+
acknowledgedAt?: string | null;
|
|
537
|
+
acknowledgeError?: string | null;
|
|
538
|
+
returnedAt?: string | null;
|
|
539
|
+
returnedByEmployeeId?: string | null;
|
|
540
|
+
returnedByFullName?: string | null;
|
|
541
|
+
returnReason?: string | null;
|
|
542
|
+
document?: DocumentEntity | null;
|
|
543
|
+
documentId?: string | null;
|
|
544
|
+
createdAt: string;
|
|
545
|
+
updatedAt: string;
|
|
546
|
+
}
|
|
547
|
+
export interface IntakeSequenceEntity {
|
|
548
|
+
year: number;
|
|
549
|
+
next: number;
|
|
550
|
+
}
|
|
551
|
+
export interface WorkFolderEntity {
|
|
552
|
+
id: string;
|
|
553
|
+
name: string;
|
|
554
|
+
description?: string | null;
|
|
555
|
+
ownerEmployeeId: string;
|
|
556
|
+
ownerFullName: string;
|
|
557
|
+
caseFile?: CaseFileEntity | null;
|
|
558
|
+
caseFileId?: string | null;
|
|
559
|
+
participants?: WorkFolderParticipantEntity[];
|
|
560
|
+
items?: WorkFolderItemEntity[];
|
|
561
|
+
deleted: boolean;
|
|
562
|
+
createdAt: string;
|
|
563
|
+
updatedAt: string;
|
|
564
|
+
}
|
|
565
|
+
export interface WorkFolderParticipantEntity {
|
|
566
|
+
id: string;
|
|
567
|
+
employeeId: string;
|
|
568
|
+
fullName: string;
|
|
569
|
+
folder?: WorkFolderEntity;
|
|
570
|
+
folderId: string;
|
|
571
|
+
createdAt: string;
|
|
572
|
+
}
|
|
573
|
+
export interface WorkFolderItemEntity {
|
|
574
|
+
id: string;
|
|
575
|
+
kind: WorkFolderItemKind;
|
|
576
|
+
title: string;
|
|
577
|
+
document?: DocumentEntity | null;
|
|
578
|
+
documentId?: string | null;
|
|
579
|
+
fileId?: string | null;
|
|
580
|
+
fileName?: string | null;
|
|
581
|
+
addedByEmployeeId: string;
|
|
582
|
+
addedByFullName: string;
|
|
583
|
+
folder?: WorkFolderEntity;
|
|
584
|
+
folderId: string;
|
|
585
|
+
createdAt: string;
|
|
586
|
+
}
|
|
587
|
+
type JsonValue = string | number | boolean | {
|
|
588
|
+
[key in string]?: JsonValue;
|
|
589
|
+
} | Array<JsonValue> | null;
|
|
590
|
+
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',
|
|
@@ -44,8 +44,105 @@ exports.DocumentTrackingAction = {
|
|
|
44
44
|
Numbered: 'Numbered',
|
|
45
45
|
NumberAnnulled: 'NumberAnnulled',
|
|
46
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',
|
|
47
71
|
};
|
|
48
72
|
exports.DocumentAttachmentType = {
|
|
49
73
|
File: 'File',
|
|
50
74
|
Link: 'Link',
|
|
51
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
|
+
};
|