@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
@@ -59,7 +59,13 @@ export type DocumentTrackingAction =
59
59
  | 'NumberAnnulled'
60
60
  | 'Annulled'
61
61
  | 'Delivered'
62
- | 'Derived';
62
+ | 'Derived'
63
+ | 'Reassigned'
64
+ | 'Dispatched'
65
+ | 'DispatchReturned'
66
+ | 'Received'
67
+ | 'EmailCopySent'
68
+ | 'EmailCopyOpened';
63
69
 
64
70
  export const DocumentTrackingAction = {
65
71
  Created: 'Created',
@@ -75,8 +81,44 @@ export const DocumentTrackingAction = {
75
81
  Annulled: 'Annulled',
76
82
  Delivered: 'Delivered',
77
83
  Derived: 'Derived',
84
+ Reassigned: 'Reassigned',
85
+ Dispatched: 'Dispatched',
86
+ DispatchReturned: 'DispatchReturned',
87
+ Received: 'Received',
88
+ EmailCopySent: 'EmailCopySent',
89
+ EmailCopyOpened: 'EmailCopyOpened',
78
90
  } satisfies Record<string, DocumentTrackingAction>;
79
91
 
92
+ export type DocumentOrigin = 'Internal' | 'DocDigital';
93
+
94
+ export const DocumentOrigin = {
95
+ Internal: 'Internal',
96
+ DocDigital: 'DocDigital',
97
+ } satisfies Record<string, DocumentOrigin>;
98
+
99
+ export type DocumentDispatchStatus = 'Pending' | 'Dispatched' | 'Returned';
100
+
101
+ export const DocumentDispatchStatus = {
102
+ Pending: 'Pending',
103
+ Dispatched: 'Dispatched',
104
+ Returned: 'Returned',
105
+ } satisfies Record<string, DocumentDispatchStatus>;
106
+
107
+ export type DocDigitalInboundStatus = 'Pending' | 'Registered' | 'Returned';
108
+
109
+ export const DocDigitalInboundStatus = {
110
+ Pending: 'Pending',
111
+ Registered: 'Registered',
112
+ Returned: 'Returned',
113
+ } satisfies Record<string, DocDigitalInboundStatus>;
114
+
115
+ export type DocumentFlowStepType = 'Employee' | 'DirectorateHead';
116
+
117
+ export const DocumentFlowStepType = {
118
+ Employee: 'Employee',
119
+ DirectorateHead: 'DirectorateHead',
120
+ } satisfies Record<string, DocumentFlowStepType>;
121
+
80
122
  export type DocumentAttachmentType = 'File' | 'Link';
81
123
 
82
124
  export const DocumentAttachmentType = {
@@ -108,6 +150,197 @@ export const DocumentInstruction = {
108
150
  Archive: 'Archive',
109
151
  } satisfies Record<string, DocumentInstruction>;
110
152
 
153
+ export type CaseFileStatus = 'Open' | 'Closed';
154
+
155
+ export const CaseFileStatus = {
156
+ Open: 'Open',
157
+ Closed: 'Closed',
158
+ } satisfies Record<string, CaseFileStatus>;
159
+
160
+ export type CaseFileIncorporationMechanism =
161
+ 'Manual' | 'WebService' | 'Mixed' | 'CitizenRepository' | 'Interoperability';
162
+
163
+ export const CaseFileIncorporationMechanism = {
164
+ Manual: 'Manual',
165
+ WebService: 'WebService',
166
+ Mixed: 'Mixed',
167
+ CitizenRepository: 'CitizenRepository',
168
+ Interoperability: 'Interoperability',
169
+ } satisfies Record<string, CaseFileIncorporationMechanism>;
170
+
171
+ export type CaseFileActuationType =
172
+ | 'AdministrativeAct'
173
+ | 'Notification'
174
+ | 'OfficialCommunication'
175
+ | 'Interoperability'
176
+ | 'RequestReception'
177
+ | 'Subfolder'
178
+ | 'PowerRegistration';
179
+
180
+ export const CaseFileActuationType = {
181
+ AdministrativeAct: 'AdministrativeAct',
182
+ Notification: 'Notification',
183
+ OfficialCommunication: 'OfficialCommunication',
184
+ Interoperability: 'Interoperability',
185
+ RequestReception: 'RequestReception',
186
+ Subfolder: 'Subfolder',
187
+ PowerRegistration: 'PowerRegistration',
188
+ } satisfies Record<string, CaseFileActuationType>;
189
+
190
+ export type CaseFileEntryKind = 'Document' | 'File' | 'CaseFile' | 'Physical';
191
+
192
+ export const CaseFileEntryKind = {
193
+ Document: 'Document',
194
+ File: 'File',
195
+ CaseFile: 'CaseFile',
196
+ Physical: 'Physical',
197
+ } satisfies Record<string, CaseFileEntryKind>;
198
+
199
+ export type CaseFileActorRelation =
200
+ 'Responsible' | 'Interested' | 'Author' | 'Referred' | 'Recipient' | 'MinisterOfFaith';
201
+
202
+ export const CaseFileActorRelation = {
203
+ Responsible: 'Responsible',
204
+ Interested: 'Interested',
205
+ Author: 'Author',
206
+ Referred: 'Referred',
207
+ Recipient: 'Recipient',
208
+ MinisterOfFaith: 'MinisterOfFaith',
209
+ } satisfies Record<string, CaseFileActorRelation>;
210
+
211
+ export type CaseFileActorType = 'Citizen' | 'Foreigner' | 'PrivateInstitution' | 'Official';
212
+
213
+ export const CaseFileActorType = {
214
+ Citizen: 'Citizen',
215
+ Foreigner: 'Foreigner',
216
+ PrivateInstitution: 'PrivateInstitution',
217
+ Official: 'Official',
218
+ } satisfies Record<string, CaseFileActorType>;
219
+
220
+ export type CaseFileTrackingAction =
221
+ | 'Created'
222
+ | 'Updated'
223
+ | 'EntryAdded'
224
+ | 'EntryVoided'
225
+ | 'EntryMoved'
226
+ | 'ParticipantAdded'
227
+ | 'ParticipantRemoved'
228
+ | 'Closed'
229
+ | 'Exported'
230
+ | 'ShareLinkCreated'
231
+ | 'ShareLinkRevoked';
232
+
233
+ export const CaseFileTrackingAction = {
234
+ Created: 'Created',
235
+ Updated: 'Updated',
236
+ EntryAdded: 'EntryAdded',
237
+ EntryVoided: 'EntryVoided',
238
+ EntryMoved: 'EntryMoved',
239
+ ParticipantAdded: 'ParticipantAdded',
240
+ ParticipantRemoved: 'ParticipantRemoved',
241
+ Closed: 'Closed',
242
+ Exported: 'Exported',
243
+ ShareLinkCreated: 'ShareLinkCreated',
244
+ ShareLinkRevoked: 'ShareLinkRevoked',
245
+ } satisfies Record<string, CaseFileTrackingAction>;
246
+
247
+ export type CaseFileAccessAction = 'Viewed' | 'FileDownloaded' | 'Exported';
248
+
249
+ export const CaseFileAccessAction = {
250
+ Viewed: 'Viewed',
251
+ FileDownloaded: 'FileDownloaded',
252
+ Exported: 'Exported',
253
+ } satisfies Record<string, CaseFileAccessAction>;
254
+
255
+ export type ScanSessionStatus = 'Open' | 'Ready';
256
+
257
+ export const ScanSessionStatus = {
258
+ Open: 'Open',
259
+ Ready: 'Ready',
260
+ } satisfies Record<string, ScanSessionStatus>;
261
+
262
+ export type TextSnippetSection = 'Vistos' | 'Considerando' | 'Resolutive' | 'Body' | 'Closing';
263
+
264
+ export const TextSnippetSection = {
265
+ Vistos: 'Vistos',
266
+ Considerando: 'Considerando',
267
+ Resolutive: 'Resolutive',
268
+ Body: 'Body',
269
+ Closing: 'Closing',
270
+ } satisfies Record<string, TextSnippetSection>;
271
+
272
+ export type WorkFolderItemKind = 'Document' | 'File';
273
+
274
+ export const WorkFolderItemKind = {
275
+ Document: 'Document',
276
+ File: 'File',
277
+ } satisfies Record<string, WorkFolderItemKind>;
278
+
279
+ export type ServiceOutageKind = 'Unplanned' | 'Planned';
280
+
281
+ export const ServiceOutageKind = {
282
+ Unplanned: 'Unplanned',
283
+ Planned: 'Planned',
284
+ } satisfies Record<string, ServiceOutageKind>;
285
+
286
+ export type QualityMetricKey =
287
+ | 'Effectiveness'
288
+ | 'Efficiency'
289
+ | 'Availability'
290
+ | 'ResponseTime'
291
+ | 'Accessibility'
292
+ | 'FunctionalCompleteness'
293
+ | 'Interoperability';
294
+
295
+ export const QualityMetricKey = {
296
+ Effectiveness: 'Effectiveness',
297
+ Efficiency: 'Efficiency',
298
+ Availability: 'Availability',
299
+ ResponseTime: 'ResponseTime',
300
+ Accessibility: 'Accessibility',
301
+ FunctionalCompleteness: 'FunctionalCompleteness',
302
+ Interoperability: 'Interoperability',
303
+ } satisfies Record<string, QualityMetricKey>;
304
+
305
+ export type DocumentAccessAction = 'Viewed' | 'FileDownloaded' | 'TrailExported';
306
+
307
+ export const DocumentAccessAction = {
308
+ Viewed: 'Viewed',
309
+ FileDownloaded: 'FileDownloaded',
310
+ TrailExported: 'TrailExported',
311
+ } satisfies Record<string, DocumentAccessAction>;
312
+
313
+ export type AuditEntity =
314
+ | 'DocumentType'
315
+ | 'IssuingEntity'
316
+ | 'ArchivalSeries'
317
+ | 'TextSnippet'
318
+ | 'Holiday'
319
+ | 'Procedure'
320
+ | 'QualityMetric'
321
+ | 'ServiceOutage';
322
+
323
+ export const AuditEntity = {
324
+ DocumentType: 'DocumentType',
325
+ IssuingEntity: 'IssuingEntity',
326
+ ArchivalSeries: 'ArchivalSeries',
327
+ TextSnippet: 'TextSnippet',
328
+ Holiday: 'Holiday',
329
+ Procedure: 'Procedure',
330
+ QualityMetric: 'QualityMetric',
331
+ ServiceOutage: 'ServiceOutage',
332
+ } satisfies Record<string, AuditEntity>;
333
+
334
+ export type AuditAction = 'Created' | 'Updated' | 'Enabled' | 'Disabled' | 'Removed';
335
+
336
+ export const AuditAction = {
337
+ Created: 'Created',
338
+ Updated: 'Updated',
339
+ Enabled: 'Enabled',
340
+ Disabled: 'Disabled',
341
+ Removed: 'Removed',
342
+ } satisfies Record<string, AuditAction>;
343
+
111
344
  export interface DocumentTypeEntity {
112
345
  id: string;
113
346
  name: string;
@@ -117,10 +350,20 @@ export interface DocumentTypeEntity {
117
350
  nextCorrelative: number;
118
351
  correlativeYear?: number | null;
119
352
  resetsYearly: boolean;
353
+ numbered: boolean;
120
354
  directorateCodeReference?: number | null;
355
+ archivalSeries?: ArchivalSeriesEntity | null;
356
+ archivalSeriesId?: string | null;
357
+ issuingEntity?: IssuingEntityEntity | null;
358
+ issuingEntityId?: string | null;
359
+ sharesNumberingWith?: DocumentTypeEntity | null;
360
+ sharesNumberingWithId?: string | null;
361
+ numberingMembers?: DocumentTypeEntity[];
121
362
  enabled: boolean;
122
363
  documents?: DocumentEntity[];
123
364
  annulledNumbers?: DocumentAnnulledNumberEntity[];
365
+ flowSteps?: DocumentTypeFlowStepEntity[];
366
+ signatureBatches?: SignatureBatchEntity[];
124
367
  deleted: boolean;
125
368
  createdAt: string;
126
369
  updatedAt: string;
@@ -132,6 +375,7 @@ export interface DocumentEntity {
132
375
  keywords: string[];
133
376
  accessLevel: DocumentAccessLevel;
134
377
  hasSensitiveData: boolean;
378
+ restrictionEndsAt?: string | null;
135
379
  status: DocumentStatus;
136
380
  correlative?: number | null;
137
381
  correlativeYear?: number | null;
@@ -141,6 +385,17 @@ export interface DocumentEntity {
141
385
  annulledAt?: string | null;
142
386
  annulmentReason?: string | null;
143
387
  responseDueAt?: string | null;
388
+ origin: DocumentOrigin;
389
+ intakeNumber?: number | null;
390
+ intakeYear?: number | null;
391
+ externalFolio?: string | null;
392
+ externalSender?: string | null;
393
+ externalDate?: string | null;
394
+ composition?: JsonValue | null;
395
+ contentText?: string | null;
396
+ textExtractedAt?: string | null;
397
+ batch?: SignatureBatchEntity | null;
398
+ batchId?: string | null;
144
399
  replyTo?: DocumentEntity | null;
145
400
  replyToDocumentId?: string | null;
146
401
  replies?: DocumentEntity[];
@@ -162,6 +417,26 @@ export interface DocumentEntity {
162
417
  annulledNumbers?: DocumentAnnulledNumberEntity[];
163
418
  recipients?: DocumentRecipientEntity[];
164
419
  deliveries?: DocumentDeliveryEntity[];
420
+ caseFileEntries?: CaseFileEntryEntity[];
421
+ workFolderItems?: WorkFolderItemEntity[];
422
+ externalRecipients?: DocumentExternalRecipientEntity[];
423
+ emailCopies?: DocumentEmailCopyEntity[];
424
+ accesses?: DocumentAccessEntity[];
425
+ dispatch?: DocumentDispatchEntity | null;
426
+ docDigitalInbound?: DocDigitalInboundEntity | null;
427
+ deleted: boolean;
428
+ createdAt: string;
429
+ updatedAt: string;
430
+ }
431
+
432
+ export interface SignatureBatchEntity {
433
+ id: string;
434
+ name: string;
435
+ createdByEmployeeId: string;
436
+ createdByFullName: string;
437
+ documentType?: DocumentTypeEntity;
438
+ documentTypeId: string;
439
+ documents?: DocumentEntity[];
165
440
  deleted: boolean;
166
441
  createdAt: string;
167
442
  updatedAt: string;
@@ -171,6 +446,7 @@ export interface DocumentParticipantEntity {
171
446
  id: string;
172
447
  role: DocumentParticipantRole;
173
448
  order: number;
449
+ stage: number;
174
450
  status: DocumentParticipantStatus;
175
451
  employeeId: string;
176
452
  fullName: string;
@@ -200,6 +476,7 @@ export interface DocumentTrackingEntity {
200
476
  id: string;
201
477
  action: DocumentTrackingAction;
202
478
  observation?: string | null;
479
+ sha256?: string | null;
203
480
  employeeId?: string | null;
204
481
  employeeFullName?: string | null;
205
482
  document?: DocumentEntity;
@@ -250,7 +527,445 @@ export interface DocumentDeliveryEntity {
250
527
  readAt?: string | null;
251
528
  closedAt?: string | null;
252
529
  closingNote?: string | null;
530
+ dueSoonRemindedAt?: string | null;
531
+ overdueRemindedAt?: string | null;
253
532
  document?: DocumentEntity;
254
533
  documentId: string;
255
534
  createdAt: string;
256
535
  }
536
+
537
+ export interface DocumentTypeFlowStepEntity {
538
+ id: string;
539
+ role: DocumentParticipantRole;
540
+ order: number;
541
+ type: DocumentFlowStepType;
542
+ employeeId?: string | null;
543
+ directorateCodeReference?: number | null;
544
+ name: string;
545
+ position?: string | null;
546
+ withPrevious: boolean;
547
+ documentType?: DocumentTypeEntity;
548
+ documentTypeId: string;
549
+ createdAt: string;
550
+ }
551
+
552
+ export interface ProcedureEntity {
553
+ id: string;
554
+ name: string;
555
+ cpatId?: string | null;
556
+ cpatCode?: string | null;
557
+ description?: string | null;
558
+ enabled: boolean;
559
+ caseFiles?: CaseFileEntity[];
560
+ deleted: boolean;
561
+ createdAt: string;
562
+ updatedAt: string;
563
+ }
564
+
565
+ export interface CaseFileSequenceEntity {
566
+ year: number;
567
+ next: number;
568
+ }
569
+
570
+ export interface CaseFileEntity {
571
+ id: string;
572
+ code: string;
573
+ year: number;
574
+ number: number;
575
+ title: string;
576
+ subject: string;
577
+ summary?: string | null;
578
+ status: CaseFileStatus;
579
+ accessLevel: DocumentAccessLevel;
580
+ hasSensitiveData: boolean;
581
+ restrictionEndsAt?: string | null;
582
+ archivalSeries?: ArchivalSeriesEntity | null;
583
+ archivalSeriesId?: string | null;
584
+ incorporationMechanism: CaseFileIncorporationMechanism;
585
+ schemaVersion: string;
586
+ procedure?: ProcedureEntity;
587
+ procedureId: string;
588
+ responsibleEmployeeId: string;
589
+ responsibleFullName: string;
590
+ responsiblePosition?: string | null;
591
+ closedAt?: string | null;
592
+ closedByEmployeeId?: string | null;
593
+ closedByFullName?: string | null;
594
+ closingNote?: string | null;
595
+ participants?: CaseFileParticipantEntity[];
596
+ actors?: CaseFileActorEntity[];
597
+ entries?: CaseFileEntryEntity[];
598
+ linkedFrom?: CaseFileEntryEntity[];
599
+ trackings?: CaseFileTrackingEntity[];
600
+ metadataChanges?: CaseFileMetadataChangeEntity[];
601
+ accesses?: CaseFileAccessEntity[];
602
+ shareLinks?: CaseFileShareLinkEntity[];
603
+ createdAt: string;
604
+ updatedAt: string;
605
+ workFolder?: WorkFolderEntity | null;
606
+ }
607
+
608
+ export interface CaseFileParticipantEntity {
609
+ id: string;
610
+ employeeId: string;
611
+ fullName: string;
612
+ position?: string | null;
613
+ addedByEmployeeId: string;
614
+ addedByFullName: string;
615
+ caseFile?: CaseFileEntity;
616
+ caseFileId: string;
617
+ createdAt: string;
618
+ }
619
+
620
+ export interface CaseFileActorEntity {
621
+ id: string;
622
+ relation: CaseFileActorRelation;
623
+ actorType: CaseFileActorType;
624
+ identifier?: string | null;
625
+ name: string;
626
+ caseFile?: CaseFileEntity;
627
+ caseFileId: string;
628
+ createdAt: string;
629
+ }
630
+
631
+ export interface CaseFileEntryEntity {
632
+ id: string;
633
+ sequence: number;
634
+ kind: CaseFileEntryKind;
635
+ actuationType: CaseFileActuationType;
636
+ title: string;
637
+ folder?: string | null;
638
+ document?: DocumentEntity | null;
639
+ documentId?: string | null;
640
+ fileId?: string | null;
641
+ fileName?: string | null;
642
+ documentTypeName?: string | null;
643
+ originDate?: string | null;
644
+ author?: string | null;
645
+ keywords: string[];
646
+ accessLevel?: DocumentAccessLevel | null;
647
+ hasSensitiveData?: boolean | null;
648
+ physicalLocation?: string | null;
649
+ physicalReason?: string | null;
650
+ pageCount?: number | null;
651
+ linkedCaseFile?: CaseFileEntity | null;
652
+ linkedCaseFileId?: string | null;
653
+ sha256?: string | null;
654
+ size?: number | null;
655
+ hasAdvancedSignature: boolean;
656
+ signatureCheck?: JsonValue | null;
657
+ incorporatedByEmployeeId: string;
658
+ incorporatedByFullName: string;
659
+ voidedAt?: string | null;
660
+ voidedByEmployeeId?: string | null;
661
+ voidedByFullName?: string | null;
662
+ voidReason?: string | null;
663
+ caseFile?: CaseFileEntity;
664
+ caseFileId: string;
665
+ createdAt: string;
666
+ }
667
+
668
+ export interface CaseFileTrackingEntity {
669
+ id: string;
670
+ action: CaseFileTrackingAction;
671
+ observation?: string | null;
672
+ employeeId?: string | null;
673
+ employeeFullName?: string | null;
674
+ caseFile?: CaseFileEntity;
675
+ caseFileId: string;
676
+ createdAt: string;
677
+ }
678
+
679
+ export interface CaseFileMetadataChangeEntity {
680
+ id: string;
681
+ field: string;
682
+ previousValue?: string | null;
683
+ newValue?: string | null;
684
+ employeeId: string;
685
+ employeeFullName: string;
686
+ caseFile?: CaseFileEntity;
687
+ caseFileId: string;
688
+ createdAt: string;
689
+ }
690
+
691
+ export interface CaseFileAccessEntity {
692
+ id: string;
693
+ action: CaseFileAccessAction;
694
+ entryId?: string | null;
695
+ employeeId?: string | null;
696
+ employeeFullName: string;
697
+ shareLink?: CaseFileShareLinkEntity | null;
698
+ shareLinkId?: string | null;
699
+ caseFile?: CaseFileEntity;
700
+ caseFileId: string;
701
+ createdAt: string;
702
+ }
703
+
704
+ export interface CaseFileShareLinkEntity {
705
+ id: string;
706
+ tokenHash: string;
707
+ recipient: string;
708
+ recipientEmail?: string | null;
709
+ purpose?: string | null;
710
+ allowExport: boolean;
711
+ expiresAt: string;
712
+ createdByEmployeeId: string;
713
+ createdByFullName: string;
714
+ revokedAt?: string | null;
715
+ revokedByEmployeeId?: string | null;
716
+ revokedByFullName?: string | null;
717
+ caseFile?: CaseFileEntity;
718
+ caseFileId: string;
719
+ accesses?: CaseFileAccessEntity[];
720
+ createdAt: string;
721
+ }
722
+
723
+ export interface DocumentEmailCopyEntity {
724
+ id: string;
725
+ name: string;
726
+ email: string;
727
+ tokenHash?: string | null;
728
+ expiresAt?: string | null;
729
+ issuedAt?: string | null;
730
+ openedAt?: string | null;
731
+ downloadCount: number;
732
+ document?: DocumentEntity;
733
+ documentId: string;
734
+ createdAt: string;
735
+ }
736
+
737
+ export interface ScanSessionEntity {
738
+ id: string;
739
+ tokenHash: string;
740
+ status: ScanSessionStatus;
741
+ employeeId: string;
742
+ pages: JsonValue;
743
+ fileId?: string | null;
744
+ fileName?: string | null;
745
+ expiresAt: string;
746
+ finishedAt?: string | null;
747
+ createdAt: string;
748
+ }
749
+
750
+ export interface DocumentExternalRecipientEntity {
751
+ id: string;
752
+ entityId: number;
753
+ entityName: string;
754
+ userId?: number | null;
755
+ userName?: string | null;
756
+ userPosition?: string | null;
757
+ document?: DocumentEntity;
758
+ documentId: string;
759
+ createdAt: string;
760
+ }
761
+
762
+ export interface DocumentDispatchEntity {
763
+ id: string;
764
+ status: DocumentDispatchStatus;
765
+ folio?: string | null;
766
+ docDigitalTypeId?: number | null;
767
+ docDigitalTypeName?: string | null;
768
+ docDigitalDocumentId?: string | null;
769
+ docDigitalRequestId?: string | null;
770
+ dispatchedAt?: string | null;
771
+ dispatchedByEmployeeId?: string | null;
772
+ dispatchedByFullName?: string | null;
773
+ returnedAt?: string | null;
774
+ returnedByEmployeeId?: string | null;
775
+ returnedByFullName?: string | null;
776
+ returnReason?: string | null;
777
+ document?: DocumentEntity;
778
+ documentId: string;
779
+ createdAt: string;
780
+ updatedAt: string;
781
+ }
782
+
783
+ export interface DocDigitalInboundEntity {
784
+ id: string;
785
+ docDigitalDocumentId: string;
786
+ docDigitalRequestId?: string | null;
787
+ status: DocDigitalInboundStatus;
788
+ subject: string;
789
+ description?: string | null;
790
+ folio?: string | null;
791
+ folioDate?: string | null;
792
+ typeName?: string | null;
793
+ reserved: boolean;
794
+ senderEntityId?: number | null;
795
+ senderEntityName?: string | null;
796
+ senderName?: string | null;
797
+ senderPosition?: string | null;
798
+ recipientEntityId?: number | null;
799
+ recipientEntityName?: string | null;
800
+ fileId?: string | null;
801
+ fileName?: string | null;
802
+ attachments: JsonValue;
803
+ signatureCheck?: JsonValue | null;
804
+ registeredAt?: string | null;
805
+ registeredByEmployeeId?: string | null;
806
+ registeredByFullName?: string | null;
807
+ acknowledgedAt?: string | null;
808
+ acknowledgeError?: string | null;
809
+ returnedAt?: string | null;
810
+ returnedByEmployeeId?: string | null;
811
+ returnedByFullName?: string | null;
812
+ returnReason?: string | null;
813
+ document?: DocumentEntity | null;
814
+ documentId?: string | null;
815
+ createdAt: string;
816
+ updatedAt: string;
817
+ }
818
+
819
+ export interface HolidayEntity {
820
+ id: string;
821
+ date: string;
822
+ name: string;
823
+ createdAt: string;
824
+ }
825
+
826
+ export interface TextSnippetEntity {
827
+ id: string;
828
+ title: string;
829
+ text: string;
830
+ section: TextSnippetSection;
831
+ keywords: string[];
832
+ enabled: boolean;
833
+ deleted: boolean;
834
+ createdAt: string;
835
+ updatedAt: string;
836
+ }
837
+
838
+ export interface ArchivalSeriesEntity {
839
+ id: string;
840
+ code: string;
841
+ name: string;
842
+ section?: string | null;
843
+ description?: string | null;
844
+ enabled: boolean;
845
+ documentTypes?: DocumentTypeEntity[];
846
+ caseFiles?: CaseFileEntity[];
847
+ deleted: boolean;
848
+ createdAt: string;
849
+ updatedAt: string;
850
+ }
851
+
852
+ export interface IssuingEntityEntity {
853
+ id: string;
854
+ name: string;
855
+ shortName?: string | null;
856
+ directorateCodeReferences: number[];
857
+ docDigitalEntityId?: number | null;
858
+ enabled: boolean;
859
+ documentTypes?: DocumentTypeEntity[];
860
+ deleted: boolean;
861
+ createdAt: string;
862
+ updatedAt: string;
863
+ }
864
+
865
+ export interface IntakeSequenceEntity {
866
+ year: number;
867
+ next: number;
868
+ }
869
+
870
+ export interface WorkFolderEntity {
871
+ id: string;
872
+ name: string;
873
+ description?: string | null;
874
+ ownerEmployeeId: string;
875
+ ownerFullName: string;
876
+ caseFile?: CaseFileEntity | null;
877
+ caseFileId?: string | null;
878
+ participants?: WorkFolderParticipantEntity[];
879
+ items?: WorkFolderItemEntity[];
880
+ deleted: boolean;
881
+ createdAt: string;
882
+ updatedAt: string;
883
+ }
884
+
885
+ export interface WorkFolderParticipantEntity {
886
+ id: string;
887
+ employeeId: string;
888
+ fullName: string;
889
+ folder?: WorkFolderEntity;
890
+ folderId: string;
891
+ createdAt: string;
892
+ }
893
+
894
+ export interface WorkFolderItemEntity {
895
+ id: string;
896
+ kind: WorkFolderItemKind;
897
+ title: string;
898
+ document?: DocumentEntity | null;
899
+ documentId?: string | null;
900
+ fileId?: string | null;
901
+ fileName?: string | null;
902
+ addedByEmployeeId: string;
903
+ addedByFullName: string;
904
+ folder?: WorkFolderEntity;
905
+ folderId: string;
906
+ createdAt: string;
907
+ }
908
+
909
+ export interface ServiceOutageEntity {
910
+ id: string;
911
+ kind: ServiceOutageKind;
912
+ startedAt: string;
913
+ endedAt?: string | null;
914
+ cause: string;
915
+ affectedServices?: string | null;
916
+ createdByEmployeeId: string;
917
+ createdByFullName: string;
918
+ updatedByFullName?: string | null;
919
+ deleted: boolean;
920
+ createdAt: string;
921
+ updatedAt: string;
922
+ }
923
+
924
+ export interface QualityMetricSettingEntity {
925
+ key: QualityMetricKey;
926
+ threshold: number;
927
+ declaredValue?: number | null;
928
+ declaredNote?: string | null;
929
+ declaredAt?: string | null;
930
+ declaredByFullName?: string | null;
931
+ updatedAt: string;
932
+ }
933
+
934
+ export interface ServiceTimingEntity {
935
+ hour: string;
936
+ count: number;
937
+ errorCount: number;
938
+ totalMs: number;
939
+ maxMs: number;
940
+ under100: number;
941
+ under250: number;
942
+ under500: number;
943
+ under1000: number;
944
+ under2000: number;
945
+ under5000: number;
946
+ over5000: number;
947
+ }
948
+
949
+ export interface DocumentAccessEntity {
950
+ id: string;
951
+ action: DocumentAccessAction;
952
+ employeeId?: string | null;
953
+ employeeFullName: string;
954
+ document?: DocumentEntity;
955
+ documentId: string;
956
+ createdAt: string;
957
+ }
958
+
959
+ export interface AuditLogEntity {
960
+ id: string;
961
+ entity: AuditEntity;
962
+ action: AuditAction;
963
+ entityId?: string | null;
964
+ name: string;
965
+ details?: JsonValue | null;
966
+ employeeId?: string | null;
967
+ employeeFullName: string;
968
+ createdAt: string;
969
+ }
970
+
971
+ type JsonValue = string | number | boolean | { [key in string]?: JsonValue } | Array<JsonValue> | null;