@muni-sanfer/types-gestor-documental 0.0.1-beta.2 → 0.0.1-beta.21

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.
Files changed (146) hide show
  1. package/dist/base/entities.d.ts +607 -1
  2. package/dist/base/entities.js +133 -1
  3. package/dist/contracts/archivalSeries.contract.d.ts +50 -0
  4. package/dist/contracts/archivalSeries.contract.js +11 -0
  5. package/dist/contracts/audit.contract.d.ts +32 -0
  6. package/dist/contracts/audit.contract.js +8 -0
  7. package/dist/contracts/caseFile.contract.d.ts +262 -0
  8. package/dist/contracts/caseFile.contract.js +26 -0
  9. package/dist/contracts/document.contract.d.ts +145 -2
  10. package/dist/contracts/document.contract.js +9 -0
  11. package/dist/contracts/documentType.contract.d.ts +24 -1
  12. package/dist/contracts/holiday.contract.d.ts +30 -0
  13. package/dist/contracts/holiday.contract.js +9 -0
  14. package/dist/contracts/index.d.ts +162 -1
  15. package/dist/contracts/index.js +42 -0
  16. package/dist/contracts/indicators.contract.d.ts +103 -0
  17. package/dist/contracts/indicators.contract.js +15 -0
  18. package/dist/contracts/issuingEntity.contract.d.ts +52 -0
  19. package/dist/contracts/issuingEntity.contract.js +11 -0
  20. package/dist/contracts/partsOffice.contract.d.ts +177 -0
  21. package/dist/contracts/partsOffice.contract.js +23 -0
  22. package/dist/contracts/procedure.contract.d.ts +50 -0
  23. package/dist/contracts/procedure.contract.js +11 -0
  24. package/dist/contracts/registerBook.contract.d.ts +27 -0
  25. package/dist/contracts/registerBook.contract.js +8 -0
  26. package/dist/contracts/scan.contract.d.ts +63 -0
  27. package/dist/contracts/scan.contract.js +12 -0
  28. package/dist/contracts/signatureBatch.contract.d.ts +109 -0
  29. package/dist/contracts/signatureBatch.contract.js +12 -0
  30. package/dist/contracts/signatureCheck.contract.d.ts +14 -0
  31. package/dist/contracts/signatureCheck.contract.js +7 -0
  32. package/dist/contracts/textSnippet.contract.d.ts +51 -0
  33. package/dist/contracts/textSnippet.contract.js +11 -0
  34. package/dist/contracts/workFolder.contract.d.ts +114 -0
  35. package/dist/contracts/workFolder.contract.js +16 -0
  36. package/dist/entities/archivalSeries/archivalSeries.entity.d.ts +27 -0
  37. package/dist/entities/archivalSeries/archivalSeries.entity.js +2 -0
  38. package/dist/entities/archivalSeries/index.d.ts +1 -0
  39. package/dist/entities/archivalSeries/index.js +17 -0
  40. package/dist/entities/audit/audit.entity.d.ts +27 -0
  41. package/dist/entities/audit/audit.entity.js +2 -0
  42. package/dist/entities/audit/index.d.ts +1 -0
  43. package/dist/entities/audit/index.js +17 -0
  44. package/dist/entities/caseFile/caseFile.entity.d.ts +300 -0
  45. package/dist/entities/caseFile/caseFile.entity.js +2 -0
  46. package/dist/entities/caseFile/index.d.ts +1 -0
  47. package/dist/entities/caseFile/index.js +17 -0
  48. package/dist/entities/document/document.entity.d.ts +252 -0
  49. package/dist/entities/documentType/documentType.entity.d.ts +37 -1
  50. package/dist/entities/holiday/holiday.entity.d.ts +10 -0
  51. package/dist/entities/holiday/holiday.entity.js +2 -0
  52. package/dist/entities/holiday/index.d.ts +1 -0
  53. package/dist/entities/holiday/index.js +17 -0
  54. package/dist/entities/index.d.ts +14 -0
  55. package/dist/entities/index.js +14 -0
  56. package/dist/entities/indicators/index.d.ts +1 -0
  57. package/dist/entities/indicators/index.js +17 -0
  58. package/dist/entities/indicators/indicators.entity.d.ts +152 -0
  59. package/dist/entities/indicators/indicators.entity.js +2 -0
  60. package/dist/entities/issuingEntity/index.d.ts +1 -0
  61. package/dist/entities/issuingEntity/index.js +17 -0
  62. package/dist/entities/issuingEntity/issuingEntity.entity.d.ts +20 -0
  63. package/dist/entities/issuingEntity/issuingEntity.entity.js +2 -0
  64. package/dist/entities/partsOffice/index.d.ts +1 -0
  65. package/dist/entities/partsOffice/index.js +17 -0
  66. package/dist/entities/partsOffice/partsOffice.entity.d.ts +105 -0
  67. package/dist/entities/partsOffice/partsOffice.entity.js +2 -0
  68. package/dist/entities/procedure/index.d.ts +1 -0
  69. package/dist/entities/procedure/index.js +17 -0
  70. package/dist/entities/procedure/procedure.entity.d.ts +20 -0
  71. package/dist/entities/procedure/procedure.entity.js +2 -0
  72. package/dist/entities/registerBook/index.d.ts +1 -0
  73. package/dist/entities/registerBook/index.js +17 -0
  74. package/dist/entities/registerBook/registerBook.entity.d.ts +48 -0
  75. package/dist/entities/registerBook/registerBook.entity.js +2 -0
  76. package/dist/entities/scan/index.d.ts +1 -0
  77. package/dist/entities/scan/index.js +17 -0
  78. package/dist/entities/scan/scan.entity.d.ts +29 -0
  79. package/dist/entities/scan/scan.entity.js +2 -0
  80. package/dist/entities/signatureBatch/index.d.ts +1 -0
  81. package/dist/entities/signatureBatch/index.js +17 -0
  82. package/dist/entities/signatureBatch/signatureBatch.entity.d.ts +107 -0
  83. package/dist/entities/signatureBatch/signatureBatch.entity.js +2 -0
  84. package/dist/entities/signatureCheck/index.d.ts +1 -0
  85. package/dist/entities/signatureCheck/index.js +17 -0
  86. package/dist/entities/signatureCheck/signatureCheck.entity.d.ts +49 -0
  87. package/dist/entities/signatureCheck/signatureCheck.entity.js +2 -0
  88. package/dist/entities/textSnippet/index.d.ts +1 -0
  89. package/dist/entities/textSnippet/index.js +17 -0
  90. package/dist/entities/textSnippet/textSnippet.entity.d.ts +20 -0
  91. package/dist/entities/textSnippet/textSnippet.entity.js +2 -0
  92. package/dist/entities/workFolder/index.d.ts +1 -0
  93. package/dist/entities/workFolder/index.js +17 -0
  94. package/dist/entities/workFolder/workFolder.entity.d.ts +83 -0
  95. package/dist/entities/workFolder/workFolder.entity.js +2 -0
  96. package/package.json +1 -1
  97. package/src/base/entities.ts +716 -1
  98. package/src/contracts/archivalSeries.contract.ts +53 -0
  99. package/src/contracts/audit.contract.ts +30 -0
  100. package/src/contracts/caseFile.contract.ts +228 -0
  101. package/src/contracts/document.contract.ts +151 -2
  102. package/src/contracts/documentType.contract.ts +32 -2
  103. package/src/contracts/holiday.contract.ts +16 -0
  104. package/src/contracts/index.ts +58 -1
  105. package/src/contracts/indicators.contract.ts +80 -0
  106. package/src/contracts/issuingEntity.contract.ts +55 -0
  107. package/src/contracts/partsOffice.contract.ts +123 -0
  108. package/src/contracts/procedure.contract.ts +53 -0
  109. package/src/contracts/registerBook.contract.ts +24 -0
  110. package/src/contracts/scan.contract.ts +52 -0
  111. package/src/contracts/signatureBatch.contract.ts +96 -0
  112. package/src/contracts/signatureCheck.contract.ts +11 -0
  113. package/src/contracts/textSnippet.contract.ts +53 -0
  114. package/src/contracts/workFolder.contract.ts +75 -0
  115. package/src/entities/archivalSeries/archivalSeries.entity.ts +32 -0
  116. package/src/entities/archivalSeries/index.ts +1 -0
  117. package/src/entities/audit/audit.entity.ts +30 -0
  118. package/src/entities/audit/index.ts +1 -0
  119. package/src/entities/caseFile/caseFile.entity.ts +324 -0
  120. package/src/entities/caseFile/index.ts +1 -0
  121. package/src/entities/document/document.entity.ts +250 -0
  122. package/src/entities/documentType/documentType.entity.ts +31 -1
  123. package/src/entities/holiday/holiday.entity.ts +11 -0
  124. package/src/entities/holiday/index.ts +1 -0
  125. package/src/entities/index.ts +14 -0
  126. package/src/entities/indicators/index.ts +1 -0
  127. package/src/entities/indicators/indicators.entity.ts +157 -0
  128. package/src/entities/issuingEntity/index.ts +1 -0
  129. package/src/entities/issuingEntity/issuingEntity.entity.ts +24 -0
  130. package/src/entities/partsOffice/index.ts +1 -0
  131. package/src/entities/partsOffice/partsOffice.entity.ts +110 -0
  132. package/src/entities/procedure/index.ts +1 -0
  133. package/src/entities/procedure/procedure.entity.ts +24 -0
  134. package/src/entities/registerBook/index.ts +1 -0
  135. package/src/entities/registerBook/registerBook.entity.ts +52 -0
  136. package/src/entities/scan/index.ts +1 -0
  137. package/src/entities/scan/scan.entity.ts +32 -0
  138. package/src/entities/signatureBatch/index.ts +1 -0
  139. package/src/entities/signatureBatch/signatureBatch.entity.ts +110 -0
  140. package/src/entities/signatureCheck/index.ts +1 -0
  141. package/src/entities/signatureCheck/signatureCheck.entity.ts +51 -0
  142. package/src/entities/textSnippet/index.ts +1 -0
  143. package/src/entities/textSnippet/textSnippet.entity.ts +24 -0
  144. package/src/entities/workFolder/index.ts +1 -0
  145. package/src/entities/workFolder/workFolder.entity.ts +84 -0
  146. package/tsconfig.json +1 -3
@@ -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' | 'Delivered' | 'Derived';
36
+ export type DocumentTrackingAction = 'Created' | 'Updated' | 'Submitted' | 'Visaed' | 'Signed' | 'Rejected' | 'Finished' | 'Discarded' | 'Numbered' | 'NumberAnnulled' | 'Annulled' | 'Delivered' | 'Derived' | 'Reassigned' | 'Dispatched' | 'DispatchReturned' | 'Received' | 'EmailCopySent' | 'EmailCopyOpened';
37
37
  export declare const DocumentTrackingAction: {
38
38
  Created: "Created";
39
39
  Updated: "Updated";
@@ -48,6 +48,34 @@ export declare const DocumentTrackingAction: {
48
48
  Annulled: "Annulled";
49
49
  Delivered: "Delivered";
50
50
  Derived: "Derived";
51
+ Reassigned: "Reassigned";
52
+ Dispatched: "Dispatched";
53
+ DispatchReturned: "DispatchReturned";
54
+ Received: "Received";
55
+ EmailCopySent: "EmailCopySent";
56
+ EmailCopyOpened: "EmailCopyOpened";
57
+ };
58
+ export type DocumentOrigin = 'Internal' | 'DocDigital';
59
+ export declare const DocumentOrigin: {
60
+ Internal: "Internal";
61
+ DocDigital: "DocDigital";
62
+ };
63
+ export type DocumentDispatchStatus = 'Pending' | 'Dispatched' | 'Returned';
64
+ export declare const DocumentDispatchStatus: {
65
+ Pending: "Pending";
66
+ Dispatched: "Dispatched";
67
+ Returned: "Returned";
68
+ };
69
+ export type DocDigitalInboundStatus = 'Pending' | 'Registered' | 'Returned';
70
+ export declare const DocDigitalInboundStatus: {
71
+ Pending: "Pending";
72
+ Registered: "Registered";
73
+ Returned: "Returned";
74
+ };
75
+ export type DocumentFlowStepType = 'Employee' | 'DirectorateHead';
76
+ export declare const DocumentFlowStepType: {
77
+ Employee: "Employee";
78
+ DirectorateHead: "DirectorateHead";
51
79
  };
52
80
  export type DocumentAttachmentType = 'File' | 'Link';
53
81
  export declare const DocumentAttachmentType: {
@@ -72,6 +100,130 @@ export declare const DocumentInstruction: {
72
100
  Respond: "Respond";
73
101
  Archive: "Archive";
74
102
  };
103
+ export type CaseFileStatus = 'Open' | 'Closed';
104
+ export declare const CaseFileStatus: {
105
+ Open: "Open";
106
+ Closed: "Closed";
107
+ };
108
+ export type CaseFileIncorporationMechanism = 'Manual' | 'WebService' | 'Mixed' | 'CitizenRepository' | 'Interoperability';
109
+ export declare const CaseFileIncorporationMechanism: {
110
+ Manual: "Manual";
111
+ WebService: "WebService";
112
+ Mixed: "Mixed";
113
+ CitizenRepository: "CitizenRepository";
114
+ Interoperability: "Interoperability";
115
+ };
116
+ export type CaseFileActuationType = 'AdministrativeAct' | 'Notification' | 'OfficialCommunication' | 'Interoperability' | 'RequestReception' | 'Subfolder' | 'PowerRegistration';
117
+ export declare const CaseFileActuationType: {
118
+ AdministrativeAct: "AdministrativeAct";
119
+ Notification: "Notification";
120
+ OfficialCommunication: "OfficialCommunication";
121
+ Interoperability: "Interoperability";
122
+ RequestReception: "RequestReception";
123
+ Subfolder: "Subfolder";
124
+ PowerRegistration: "PowerRegistration";
125
+ };
126
+ export type CaseFileEntryKind = 'Document' | 'File' | 'CaseFile' | 'Physical';
127
+ export declare const CaseFileEntryKind: {
128
+ Document: "Document";
129
+ File: "File";
130
+ CaseFile: "CaseFile";
131
+ Physical: "Physical";
132
+ };
133
+ export type CaseFileActorRelation = 'Responsible' | 'Interested' | 'Author' | 'Referred' | 'Recipient' | 'MinisterOfFaith';
134
+ export declare const CaseFileActorRelation: {
135
+ Responsible: "Responsible";
136
+ Interested: "Interested";
137
+ Author: "Author";
138
+ Referred: "Referred";
139
+ Recipient: "Recipient";
140
+ MinisterOfFaith: "MinisterOfFaith";
141
+ };
142
+ export type CaseFileActorType = 'Citizen' | 'Foreigner' | 'PrivateInstitution' | 'Official';
143
+ export declare const CaseFileActorType: {
144
+ Citizen: "Citizen";
145
+ Foreigner: "Foreigner";
146
+ PrivateInstitution: "PrivateInstitution";
147
+ Official: "Official";
148
+ };
149
+ export type CaseFileTrackingAction = 'Created' | 'Updated' | 'EntryAdded' | 'EntryVoided' | 'EntryMoved' | 'ParticipantAdded' | 'ParticipantRemoved' | 'Closed' | 'Exported' | 'ShareLinkCreated' | 'ShareLinkRevoked';
150
+ export declare const CaseFileTrackingAction: {
151
+ Created: "Created";
152
+ Updated: "Updated";
153
+ EntryAdded: "EntryAdded";
154
+ EntryVoided: "EntryVoided";
155
+ EntryMoved: "EntryMoved";
156
+ ParticipantAdded: "ParticipantAdded";
157
+ ParticipantRemoved: "ParticipantRemoved";
158
+ Closed: "Closed";
159
+ Exported: "Exported";
160
+ ShareLinkCreated: "ShareLinkCreated";
161
+ ShareLinkRevoked: "ShareLinkRevoked";
162
+ };
163
+ export type CaseFileAccessAction = 'Viewed' | 'FileDownloaded' | 'Exported';
164
+ export declare const CaseFileAccessAction: {
165
+ Viewed: "Viewed";
166
+ FileDownloaded: "FileDownloaded";
167
+ Exported: "Exported";
168
+ };
169
+ export type ScanSessionStatus = 'Open' | 'Ready';
170
+ export declare const ScanSessionStatus: {
171
+ Open: "Open";
172
+ Ready: "Ready";
173
+ };
174
+ export type TextSnippetSection = 'Vistos' | 'Considerando' | 'Resolutive' | 'Body' | 'Closing';
175
+ export declare const TextSnippetSection: {
176
+ Vistos: "Vistos";
177
+ Considerando: "Considerando";
178
+ Resolutive: "Resolutive";
179
+ Body: "Body";
180
+ Closing: "Closing";
181
+ };
182
+ export type WorkFolderItemKind = 'Document' | 'File';
183
+ export declare const WorkFolderItemKind: {
184
+ Document: "Document";
185
+ File: "File";
186
+ };
187
+ export type ServiceOutageKind = 'Unplanned' | 'Planned';
188
+ export declare const ServiceOutageKind: {
189
+ Unplanned: "Unplanned";
190
+ Planned: "Planned";
191
+ };
192
+ export type QualityMetricKey = 'Effectiveness' | 'Efficiency' | 'Availability' | 'ResponseTime' | 'Accessibility' | 'FunctionalCompleteness' | 'Interoperability';
193
+ export declare const QualityMetricKey: {
194
+ Effectiveness: "Effectiveness";
195
+ Efficiency: "Efficiency";
196
+ Availability: "Availability";
197
+ ResponseTime: "ResponseTime";
198
+ Accessibility: "Accessibility";
199
+ FunctionalCompleteness: "FunctionalCompleteness";
200
+ Interoperability: "Interoperability";
201
+ };
202
+ export type DocumentAccessAction = 'Viewed' | 'FileDownloaded' | 'TrailExported';
203
+ export declare const DocumentAccessAction: {
204
+ Viewed: "Viewed";
205
+ FileDownloaded: "FileDownloaded";
206
+ TrailExported: "TrailExported";
207
+ };
208
+ export type AuditEntity = 'DocumentType' | 'IssuingEntity' | 'ArchivalSeries' | 'TextSnippet' | 'Holiday' | 'Procedure' | 'QualityMetric' | 'ServiceOutage';
209
+ export declare const AuditEntity: {
210
+ DocumentType: "DocumentType";
211
+ IssuingEntity: "IssuingEntity";
212
+ ArchivalSeries: "ArchivalSeries";
213
+ TextSnippet: "TextSnippet";
214
+ Holiday: "Holiday";
215
+ Procedure: "Procedure";
216
+ QualityMetric: "QualityMetric";
217
+ ServiceOutage: "ServiceOutage";
218
+ };
219
+ export type AuditAction = 'Created' | 'Updated' | 'Enabled' | 'Disabled' | 'Removed';
220
+ export declare const AuditAction: {
221
+ Created: "Created";
222
+ Updated: "Updated";
223
+ Enabled: "Enabled";
224
+ Disabled: "Disabled";
225
+ Removed: "Removed";
226
+ };
75
227
  export interface DocumentTypeEntity {
76
228
  id: string;
77
229
  name: string;
@@ -81,10 +233,20 @@ export interface DocumentTypeEntity {
81
233
  nextCorrelative: number;
82
234
  correlativeYear?: number | null;
83
235
  resetsYearly: boolean;
236
+ numbered: boolean;
84
237
  directorateCodeReference?: number | null;
238
+ archivalSeries?: ArchivalSeriesEntity | null;
239
+ archivalSeriesId?: string | null;
240
+ issuingEntity?: IssuingEntityEntity | null;
241
+ issuingEntityId?: string | null;
242
+ sharesNumberingWith?: DocumentTypeEntity | null;
243
+ sharesNumberingWithId?: string | null;
244
+ numberingMembers?: DocumentTypeEntity[];
85
245
  enabled: boolean;
86
246
  documents?: DocumentEntity[];
87
247
  annulledNumbers?: DocumentAnnulledNumberEntity[];
248
+ flowSteps?: DocumentTypeFlowStepEntity[];
249
+ signatureBatches?: SignatureBatchEntity[];
88
250
  deleted: boolean;
89
251
  createdAt: string;
90
252
  updatedAt: string;
@@ -95,6 +257,7 @@ export interface DocumentEntity {
95
257
  keywords: string[];
96
258
  accessLevel: DocumentAccessLevel;
97
259
  hasSensitiveData: boolean;
260
+ restrictionEndsAt?: string | null;
98
261
  status: DocumentStatus;
99
262
  correlative?: number | null;
100
263
  correlativeYear?: number | null;
@@ -104,6 +267,17 @@ export interface DocumentEntity {
104
267
  annulledAt?: string | null;
105
268
  annulmentReason?: string | null;
106
269
  responseDueAt?: string | null;
270
+ origin: DocumentOrigin;
271
+ intakeNumber?: number | null;
272
+ intakeYear?: number | null;
273
+ externalFolio?: string | null;
274
+ externalSender?: string | null;
275
+ externalDate?: string | null;
276
+ composition?: JsonValue | null;
277
+ contentText?: string | null;
278
+ textExtractedAt?: string | null;
279
+ batch?: SignatureBatchEntity | null;
280
+ batchId?: string | null;
107
281
  replyTo?: DocumentEntity | null;
108
282
  replyToDocumentId?: string | null;
109
283
  replies?: DocumentEntity[];
@@ -125,6 +299,25 @@ export interface DocumentEntity {
125
299
  annulledNumbers?: DocumentAnnulledNumberEntity[];
126
300
  recipients?: DocumentRecipientEntity[];
127
301
  deliveries?: DocumentDeliveryEntity[];
302
+ caseFileEntries?: CaseFileEntryEntity[];
303
+ workFolderItems?: WorkFolderItemEntity[];
304
+ externalRecipients?: DocumentExternalRecipientEntity[];
305
+ emailCopies?: DocumentEmailCopyEntity[];
306
+ accesses?: DocumentAccessEntity[];
307
+ dispatch?: DocumentDispatchEntity | null;
308
+ docDigitalInbound?: DocDigitalInboundEntity | null;
309
+ deleted: boolean;
310
+ createdAt: string;
311
+ updatedAt: string;
312
+ }
313
+ export interface SignatureBatchEntity {
314
+ id: string;
315
+ name: string;
316
+ createdByEmployeeId: string;
317
+ createdByFullName: string;
318
+ documentType?: DocumentTypeEntity;
319
+ documentTypeId: string;
320
+ documents?: DocumentEntity[];
128
321
  deleted: boolean;
129
322
  createdAt: string;
130
323
  updatedAt: string;
@@ -133,6 +326,7 @@ export interface DocumentParticipantEntity {
133
326
  id: string;
134
327
  role: DocumentParticipantRole;
135
328
  order: number;
329
+ stage: number;
136
330
  status: DocumentParticipantStatus;
137
331
  employeeId: string;
138
332
  fullName: string;
@@ -160,6 +354,7 @@ export interface DocumentTrackingEntity {
160
354
  id: string;
161
355
  action: DocumentTrackingAction;
162
356
  observation?: string | null;
357
+ sha256?: string | null;
163
358
  employeeId?: string | null;
164
359
  employeeFullName?: string | null;
165
360
  document?: DocumentEntity;
@@ -207,7 +402,418 @@ export interface DocumentDeliveryEntity {
207
402
  readAt?: string | null;
208
403
  closedAt?: string | null;
209
404
  closingNote?: string | null;
405
+ dueSoonRemindedAt?: string | null;
406
+ overdueRemindedAt?: string | null;
407
+ document?: DocumentEntity;
408
+ documentId: string;
409
+ createdAt: string;
410
+ }
411
+ export interface DocumentTypeFlowStepEntity {
412
+ id: string;
413
+ role: DocumentParticipantRole;
414
+ order: number;
415
+ type: DocumentFlowStepType;
416
+ employeeId?: string | null;
417
+ directorateCodeReference?: number | null;
418
+ name: string;
419
+ position?: string | null;
420
+ withPrevious: boolean;
421
+ documentType?: DocumentTypeEntity;
422
+ documentTypeId: string;
423
+ createdAt: string;
424
+ }
425
+ export interface ProcedureEntity {
426
+ id: string;
427
+ name: string;
428
+ cpatId?: string | null;
429
+ cpatCode?: string | null;
430
+ description?: string | null;
431
+ enabled: boolean;
432
+ caseFiles?: CaseFileEntity[];
433
+ deleted: boolean;
434
+ createdAt: string;
435
+ updatedAt: string;
436
+ }
437
+ export interface CaseFileSequenceEntity {
438
+ year: number;
439
+ next: number;
440
+ }
441
+ export interface CaseFileEntity {
442
+ id: string;
443
+ code: string;
444
+ year: number;
445
+ number: number;
446
+ title: string;
447
+ subject: string;
448
+ summary?: string | null;
449
+ status: CaseFileStatus;
450
+ accessLevel: DocumentAccessLevel;
451
+ hasSensitiveData: boolean;
452
+ restrictionEndsAt?: string | null;
453
+ archivalSeries?: ArchivalSeriesEntity | null;
454
+ archivalSeriesId?: string | null;
455
+ incorporationMechanism: CaseFileIncorporationMechanism;
456
+ schemaVersion: string;
457
+ procedure?: ProcedureEntity;
458
+ procedureId: string;
459
+ responsibleEmployeeId: string;
460
+ responsibleFullName: string;
461
+ responsiblePosition?: string | null;
462
+ closedAt?: string | null;
463
+ closedByEmployeeId?: string | null;
464
+ closedByFullName?: string | null;
465
+ closingNote?: string | null;
466
+ participants?: CaseFileParticipantEntity[];
467
+ actors?: CaseFileActorEntity[];
468
+ entries?: CaseFileEntryEntity[];
469
+ linkedFrom?: CaseFileEntryEntity[];
470
+ trackings?: CaseFileTrackingEntity[];
471
+ metadataChanges?: CaseFileMetadataChangeEntity[];
472
+ accesses?: CaseFileAccessEntity[];
473
+ shareLinks?: CaseFileShareLinkEntity[];
474
+ createdAt: string;
475
+ updatedAt: string;
476
+ workFolder?: WorkFolderEntity | null;
477
+ }
478
+ export interface CaseFileParticipantEntity {
479
+ id: string;
480
+ employeeId: string;
481
+ fullName: string;
482
+ position?: string | null;
483
+ addedByEmployeeId: string;
484
+ addedByFullName: string;
485
+ caseFile?: CaseFileEntity;
486
+ caseFileId: string;
487
+ createdAt: string;
488
+ }
489
+ export interface CaseFileActorEntity {
490
+ id: string;
491
+ relation: CaseFileActorRelation;
492
+ actorType: CaseFileActorType;
493
+ identifier?: string | null;
494
+ name: string;
495
+ caseFile?: CaseFileEntity;
496
+ caseFileId: string;
497
+ createdAt: string;
498
+ }
499
+ export interface CaseFileEntryEntity {
500
+ id: string;
501
+ sequence: number;
502
+ kind: CaseFileEntryKind;
503
+ actuationType: CaseFileActuationType;
504
+ title: string;
505
+ folder?: string | null;
506
+ document?: DocumentEntity | null;
507
+ documentId?: string | null;
508
+ fileId?: string | null;
509
+ fileName?: string | null;
510
+ documentTypeName?: string | null;
511
+ originDate?: string | null;
512
+ author?: string | null;
513
+ keywords: string[];
514
+ accessLevel?: DocumentAccessLevel | null;
515
+ hasSensitiveData?: boolean | null;
516
+ physicalLocation?: string | null;
517
+ physicalReason?: string | null;
518
+ pageCount?: number | null;
519
+ linkedCaseFile?: CaseFileEntity | null;
520
+ linkedCaseFileId?: string | null;
521
+ sha256?: string | null;
522
+ size?: number | null;
523
+ hasAdvancedSignature: boolean;
524
+ signatureCheck?: JsonValue | null;
525
+ incorporatedByEmployeeId: string;
526
+ incorporatedByFullName: string;
527
+ voidedAt?: string | null;
528
+ voidedByEmployeeId?: string | null;
529
+ voidedByFullName?: string | null;
530
+ voidReason?: string | null;
531
+ caseFile?: CaseFileEntity;
532
+ caseFileId: string;
533
+ createdAt: string;
534
+ }
535
+ export interface CaseFileTrackingEntity {
536
+ id: string;
537
+ action: CaseFileTrackingAction;
538
+ observation?: string | null;
539
+ employeeId?: string | null;
540
+ employeeFullName?: string | null;
541
+ caseFile?: CaseFileEntity;
542
+ caseFileId: string;
543
+ createdAt: string;
544
+ }
545
+ export interface CaseFileMetadataChangeEntity {
546
+ id: string;
547
+ field: string;
548
+ previousValue?: string | null;
549
+ newValue?: string | null;
550
+ employeeId: string;
551
+ employeeFullName: string;
552
+ caseFile?: CaseFileEntity;
553
+ caseFileId: string;
554
+ createdAt: string;
555
+ }
556
+ export interface CaseFileAccessEntity {
557
+ id: string;
558
+ action: CaseFileAccessAction;
559
+ entryId?: string | null;
560
+ employeeId?: string | null;
561
+ employeeFullName: string;
562
+ shareLink?: CaseFileShareLinkEntity | null;
563
+ shareLinkId?: string | null;
564
+ caseFile?: CaseFileEntity;
565
+ caseFileId: string;
566
+ createdAt: string;
567
+ }
568
+ export interface CaseFileShareLinkEntity {
569
+ id: string;
570
+ tokenHash: string;
571
+ recipient: string;
572
+ recipientEmail?: string | null;
573
+ purpose?: string | null;
574
+ allowExport: boolean;
575
+ expiresAt: string;
576
+ createdByEmployeeId: string;
577
+ createdByFullName: string;
578
+ revokedAt?: string | null;
579
+ revokedByEmployeeId?: string | null;
580
+ revokedByFullName?: string | null;
581
+ caseFile?: CaseFileEntity;
582
+ caseFileId: string;
583
+ accesses?: CaseFileAccessEntity[];
584
+ createdAt: string;
585
+ }
586
+ export interface DocumentEmailCopyEntity {
587
+ id: string;
588
+ name: string;
589
+ email: string;
590
+ tokenHash?: string | null;
591
+ expiresAt?: string | null;
592
+ issuedAt?: string | null;
593
+ openedAt?: string | null;
594
+ downloadCount: number;
595
+ document?: DocumentEntity;
596
+ documentId: string;
597
+ createdAt: string;
598
+ }
599
+ export interface ScanSessionEntity {
600
+ id: string;
601
+ tokenHash: string;
602
+ status: ScanSessionStatus;
603
+ employeeId: string;
604
+ pages: JsonValue;
605
+ fileId?: string | null;
606
+ fileName?: string | null;
607
+ expiresAt: string;
608
+ finishedAt?: string | null;
609
+ createdAt: string;
610
+ }
611
+ export interface DocumentExternalRecipientEntity {
612
+ id: string;
613
+ entityId: number;
614
+ entityName: string;
615
+ userId?: number | null;
616
+ userName?: string | null;
617
+ userPosition?: string | null;
618
+ document?: DocumentEntity;
619
+ documentId: string;
620
+ createdAt: string;
621
+ }
622
+ export interface DocumentDispatchEntity {
623
+ id: string;
624
+ status: DocumentDispatchStatus;
625
+ folio?: string | null;
626
+ docDigitalTypeId?: number | null;
627
+ docDigitalTypeName?: string | null;
628
+ docDigitalDocumentId?: string | null;
629
+ docDigitalRequestId?: string | null;
630
+ dispatchedAt?: string | null;
631
+ dispatchedByEmployeeId?: string | null;
632
+ dispatchedByFullName?: string | null;
633
+ returnedAt?: string | null;
634
+ returnedByEmployeeId?: string | null;
635
+ returnedByFullName?: string | null;
636
+ returnReason?: string | null;
637
+ document?: DocumentEntity;
638
+ documentId: string;
639
+ createdAt: string;
640
+ updatedAt: string;
641
+ }
642
+ export interface DocDigitalInboundEntity {
643
+ id: string;
644
+ docDigitalDocumentId: string;
645
+ docDigitalRequestId?: string | null;
646
+ status: DocDigitalInboundStatus;
647
+ subject: string;
648
+ description?: string | null;
649
+ folio?: string | null;
650
+ folioDate?: string | null;
651
+ typeName?: string | null;
652
+ reserved: boolean;
653
+ senderEntityId?: number | null;
654
+ senderEntityName?: string | null;
655
+ senderName?: string | null;
656
+ senderPosition?: string | null;
657
+ recipientEntityId?: number | null;
658
+ recipientEntityName?: string | null;
659
+ fileId?: string | null;
660
+ fileName?: string | null;
661
+ attachments: JsonValue;
662
+ signatureCheck?: JsonValue | null;
663
+ registeredAt?: string | null;
664
+ registeredByEmployeeId?: string | null;
665
+ registeredByFullName?: string | null;
666
+ acknowledgedAt?: string | null;
667
+ acknowledgeError?: string | null;
668
+ returnedAt?: string | null;
669
+ returnedByEmployeeId?: string | null;
670
+ returnedByFullName?: string | null;
671
+ returnReason?: string | null;
672
+ document?: DocumentEntity | null;
673
+ documentId?: string | null;
674
+ createdAt: string;
675
+ updatedAt: string;
676
+ }
677
+ export interface HolidayEntity {
678
+ id: string;
679
+ date: string;
680
+ name: string;
681
+ createdAt: string;
682
+ }
683
+ export interface TextSnippetEntity {
684
+ id: string;
685
+ title: string;
686
+ text: string;
687
+ section: TextSnippetSection;
688
+ keywords: string[];
689
+ enabled: boolean;
690
+ deleted: boolean;
691
+ createdAt: string;
692
+ updatedAt: string;
693
+ }
694
+ export interface ArchivalSeriesEntity {
695
+ id: string;
696
+ code: string;
697
+ name: string;
698
+ section?: string | null;
699
+ description?: string | null;
700
+ enabled: boolean;
701
+ documentTypes?: DocumentTypeEntity[];
702
+ caseFiles?: CaseFileEntity[];
703
+ deleted: boolean;
704
+ createdAt: string;
705
+ updatedAt: string;
706
+ }
707
+ export interface IssuingEntityEntity {
708
+ id: string;
709
+ name: string;
710
+ shortName?: string | null;
711
+ directorateCodeReferences: number[];
712
+ docDigitalEntityId?: number | null;
713
+ enabled: boolean;
714
+ documentTypes?: DocumentTypeEntity[];
715
+ deleted: boolean;
716
+ createdAt: string;
717
+ updatedAt: string;
718
+ }
719
+ export interface IntakeSequenceEntity {
720
+ year: number;
721
+ next: number;
722
+ }
723
+ export interface WorkFolderEntity {
724
+ id: string;
725
+ name: string;
726
+ description?: string | null;
727
+ ownerEmployeeId: string;
728
+ ownerFullName: string;
729
+ caseFile?: CaseFileEntity | null;
730
+ caseFileId?: string | null;
731
+ participants?: WorkFolderParticipantEntity[];
732
+ items?: WorkFolderItemEntity[];
733
+ deleted: boolean;
734
+ createdAt: string;
735
+ updatedAt: string;
736
+ }
737
+ export interface WorkFolderParticipantEntity {
738
+ id: string;
739
+ employeeId: string;
740
+ fullName: string;
741
+ folder?: WorkFolderEntity;
742
+ folderId: string;
743
+ createdAt: string;
744
+ }
745
+ export interface WorkFolderItemEntity {
746
+ id: string;
747
+ kind: WorkFolderItemKind;
748
+ title: string;
749
+ document?: DocumentEntity | null;
750
+ documentId?: string | null;
751
+ fileId?: string | null;
752
+ fileName?: string | null;
753
+ addedByEmployeeId: string;
754
+ addedByFullName: string;
755
+ folder?: WorkFolderEntity;
756
+ folderId: string;
757
+ createdAt: string;
758
+ }
759
+ export interface ServiceOutageEntity {
760
+ id: string;
761
+ kind: ServiceOutageKind;
762
+ startedAt: string;
763
+ endedAt?: string | null;
764
+ cause: string;
765
+ affectedServices?: string | null;
766
+ createdByEmployeeId: string;
767
+ createdByFullName: string;
768
+ updatedByFullName?: string | null;
769
+ deleted: boolean;
770
+ createdAt: string;
771
+ updatedAt: string;
772
+ }
773
+ export interface QualityMetricSettingEntity {
774
+ key: QualityMetricKey;
775
+ threshold: number;
776
+ declaredValue?: number | null;
777
+ declaredNote?: string | null;
778
+ declaredAt?: string | null;
779
+ declaredByFullName?: string | null;
780
+ updatedAt: string;
781
+ }
782
+ export interface ServiceTimingEntity {
783
+ hour: string;
784
+ count: number;
785
+ errorCount: number;
786
+ totalMs: number;
787
+ maxMs: number;
788
+ under100: number;
789
+ under250: number;
790
+ under500: number;
791
+ under1000: number;
792
+ under2000: number;
793
+ under5000: number;
794
+ over5000: number;
795
+ }
796
+ export interface DocumentAccessEntity {
797
+ id: string;
798
+ action: DocumentAccessAction;
799
+ employeeId?: string | null;
800
+ employeeFullName: string;
210
801
  document?: DocumentEntity;
211
802
  documentId: string;
212
803
  createdAt: string;
213
804
  }
805
+ export interface AuditLogEntity {
806
+ id: string;
807
+ entity: AuditEntity;
808
+ action: AuditAction;
809
+ entityId?: string | null;
810
+ name: string;
811
+ details?: JsonValue | null;
812
+ employeeId?: string | null;
813
+ employeeFullName: string;
814
+ createdAt: string;
815
+ }
816
+ type JsonValue = string | number | boolean | {
817
+ [key in string]?: JsonValue;
818
+ } | Array<JsonValue> | null;
819
+ export {};