@muni-sanfer/types-gestor-documental 0.0.1-beta.4 → 0.0.1-beta.40

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 (223) hide show
  1. package/dist/base/entities.d.ts +1000 -4
  2. package/dist/base/entities.js +247 -1
  3. package/dist/contracts/accessRequest.contract.d.ts +109 -0
  4. package/dist/contracts/accessRequest.contract.js +12 -0
  5. package/dist/contracts/archivalSeries.contract.d.ts +56 -0
  6. package/dist/contracts/archivalSeries.contract.js +11 -0
  7. package/dist/contracts/audit.contract.d.ts +32 -0
  8. package/dist/contracts/audit.contract.js +8 -0
  9. package/dist/contracts/caseFile.contract.d.ts +124 -1
  10. package/dist/contracts/caseFile.contract.js +10 -0
  11. package/dist/contracts/dataProtection.contract.d.ts +256 -0
  12. package/dist/contracts/dataProtection.contract.js +23 -0
  13. package/dist/contracts/desk.contract.d.ts +88 -0
  14. package/dist/contracts/desk.contract.js +13 -0
  15. package/dist/contracts/document.contract.d.ts +214 -3
  16. package/dist/contracts/document.contract.js +15 -0
  17. package/dist/contracts/documentTemplate.contract.d.ts +58 -0
  18. package/dist/contracts/documentTemplate.contract.js +12 -0
  19. package/dist/contracts/documentType.contract.d.ts +13 -1
  20. package/dist/contracts/draftingRequest.contract.d.ts +94 -0
  21. package/dist/contracts/draftingRequest.contract.js +11 -0
  22. package/dist/contracts/holiday.contract.d.ts +30 -0
  23. package/dist/contracts/holiday.contract.js +9 -0
  24. package/dist/contracts/index.d.ts +255 -1
  25. package/dist/contracts/index.js +66 -0
  26. package/dist/contracts/indicators.contract.d.ts +103 -0
  27. package/dist/contracts/indicators.contract.js +15 -0
  28. package/dist/contracts/issuingEntity.contract.d.ts +52 -0
  29. package/dist/contracts/issuingEntity.contract.js +11 -0
  30. package/dist/contracts/mailIntake.contract.d.ts +61 -0
  31. package/dist/contracts/mailIntake.contract.js +15 -0
  32. package/dist/contracts/partsOffice.contract.d.ts +263 -0
  33. package/dist/contracts/partsOffice.contract.js +27 -0
  34. package/dist/contracts/push.contract.d.ts +59 -0
  35. package/dist/contracts/push.contract.js +14 -0
  36. package/dist/contracts/registerBook.contract.d.ts +27 -0
  37. package/dist/contracts/registerBook.contract.js +8 -0
  38. package/dist/contracts/repositoryExport.contract.d.ts +57 -0
  39. package/dist/contracts/repositoryExport.contract.js +13 -0
  40. package/dist/contracts/retention.contract.d.ts +58 -0
  41. package/dist/contracts/retention.contract.js +11 -0
  42. package/dist/contracts/scan.contract.d.ts +63 -0
  43. package/dist/contracts/scan.contract.js +12 -0
  44. package/dist/contracts/signatureBatch.contract.d.ts +109 -0
  45. package/dist/contracts/signatureBatch.contract.js +12 -0
  46. package/dist/contracts/signatureCheck.contract.d.ts +14 -0
  47. package/dist/contracts/signatureCheck.contract.js +7 -0
  48. package/dist/contracts/textSnippet.contract.d.ts +51 -0
  49. package/dist/contracts/textSnippet.contract.js +11 -0
  50. package/dist/contracts/transparency.contract.d.ts +96 -0
  51. package/dist/contracts/transparency.contract.js +12 -0
  52. package/dist/contracts/workFolder.contract.d.ts +114 -0
  53. package/dist/contracts/workFolder.contract.js +16 -0
  54. package/dist/entities/accessRequest/accessRequest.entity.d.ts +73 -0
  55. package/dist/entities/accessRequest/accessRequest.entity.js +2 -0
  56. package/dist/entities/accessRequest/index.d.ts +1 -0
  57. package/dist/entities/accessRequest/index.js +17 -0
  58. package/dist/entities/archivalSeries/archivalSeries.entity.d.ts +32 -0
  59. package/dist/entities/archivalSeries/archivalSeries.entity.js +2 -0
  60. package/dist/entities/archivalSeries/index.d.ts +1 -0
  61. package/dist/entities/archivalSeries/index.js +17 -0
  62. package/dist/entities/audit/audit.entity.d.ts +30 -0
  63. package/dist/entities/audit/audit.entity.js +2 -0
  64. package/dist/entities/audit/index.d.ts +1 -0
  65. package/dist/entities/audit/index.js +17 -0
  66. package/dist/entities/caseFile/caseFile.entity.d.ts +135 -0
  67. package/dist/entities/dataProtection/dataProtection.entity.d.ts +180 -0
  68. package/dist/entities/dataProtection/dataProtection.entity.js +2 -0
  69. package/dist/entities/dataProtection/index.d.ts +1 -0
  70. package/dist/entities/dataProtection/index.js +17 -0
  71. package/dist/entities/desk/desk.entity.d.ts +25 -0
  72. package/dist/entities/desk/desk.entity.js +2 -0
  73. package/dist/entities/desk/index.d.ts +1 -0
  74. package/dist/entities/desk/index.js +17 -0
  75. package/dist/entities/document/document.entity.d.ts +436 -1
  76. package/dist/entities/documentTemplate/documentTemplate.entity.d.ts +51 -0
  77. package/dist/entities/documentTemplate/documentTemplate.entity.js +2 -0
  78. package/dist/entities/documentTemplate/index.d.ts +1 -0
  79. package/dist/entities/documentTemplate/index.js +17 -0
  80. package/dist/entities/documentType/documentType.entity.d.ts +25 -0
  81. package/dist/entities/draftingRequest/draftingRequest.entity.d.ts +76 -0
  82. package/dist/entities/draftingRequest/draftingRequest.entity.js +2 -0
  83. package/dist/entities/draftingRequest/index.d.ts +1 -0
  84. package/dist/entities/draftingRequest/index.js +17 -0
  85. package/dist/entities/holiday/holiday.entity.d.ts +10 -0
  86. package/dist/entities/holiday/holiday.entity.js +2 -0
  87. package/dist/entities/holiday/index.d.ts +1 -0
  88. package/dist/entities/holiday/index.js +17 -0
  89. package/dist/entities/index.d.ts +22 -0
  90. package/dist/entities/index.js +22 -0
  91. package/dist/entities/indicators/index.d.ts +1 -0
  92. package/dist/entities/indicators/index.js +17 -0
  93. package/dist/entities/indicators/indicators.entity.d.ts +152 -0
  94. package/dist/entities/indicators/indicators.entity.js +2 -0
  95. package/dist/entities/issuingEntity/index.d.ts +1 -0
  96. package/dist/entities/issuingEntity/index.js +17 -0
  97. package/dist/entities/issuingEntity/issuingEntity.entity.d.ts +20 -0
  98. package/dist/entities/issuingEntity/issuingEntity.entity.js +2 -0
  99. package/dist/entities/mailIntake/index.d.ts +1 -0
  100. package/dist/entities/mailIntake/index.js +17 -0
  101. package/dist/entities/mailIntake/mailIntake.entity.d.ts +51 -0
  102. package/dist/entities/mailIntake/mailIntake.entity.js +2 -0
  103. package/dist/entities/partsOffice/index.d.ts +1 -0
  104. package/dist/entities/partsOffice/index.js +17 -0
  105. package/dist/entities/partsOffice/partsOffice.entity.d.ts +137 -0
  106. package/dist/entities/partsOffice/partsOffice.entity.js +2 -0
  107. package/dist/entities/push/index.d.ts +1 -0
  108. package/dist/entities/push/index.js +17 -0
  109. package/dist/entities/push/push.entity.d.ts +28 -0
  110. package/dist/entities/push/push.entity.js +2 -0
  111. package/dist/entities/registerBook/index.d.ts +1 -0
  112. package/dist/entities/registerBook/index.js +17 -0
  113. package/dist/entities/registerBook/registerBook.entity.d.ts +48 -0
  114. package/dist/entities/registerBook/registerBook.entity.js +2 -0
  115. package/dist/entities/repositoryExport/index.d.ts +1 -0
  116. package/dist/entities/repositoryExport/index.js +17 -0
  117. package/dist/entities/repositoryExport/repositoryExport.entity.d.ts +124 -0
  118. package/dist/entities/repositoryExport/repositoryExport.entity.js +2 -0
  119. package/dist/entities/retention/index.d.ts +1 -0
  120. package/dist/entities/retention/index.js +17 -0
  121. package/dist/entities/retention/retention.entity.d.ts +49 -0
  122. package/dist/entities/retention/retention.entity.js +2 -0
  123. package/dist/entities/scan/index.d.ts +1 -0
  124. package/dist/entities/scan/index.js +17 -0
  125. package/dist/entities/scan/scan.entity.d.ts +29 -0
  126. package/dist/entities/scan/scan.entity.js +2 -0
  127. package/dist/entities/signatureBatch/index.d.ts +1 -0
  128. package/dist/entities/signatureBatch/index.js +17 -0
  129. package/dist/entities/signatureBatch/signatureBatch.entity.d.ts +107 -0
  130. package/dist/entities/signatureBatch/signatureBatch.entity.js +2 -0
  131. package/dist/entities/signatureCheck/index.d.ts +1 -0
  132. package/dist/entities/signatureCheck/index.js +17 -0
  133. package/dist/entities/signatureCheck/signatureCheck.entity.d.ts +60 -0
  134. package/dist/entities/signatureCheck/signatureCheck.entity.js +2 -0
  135. package/dist/entities/textSnippet/index.d.ts +1 -0
  136. package/dist/entities/textSnippet/index.js +17 -0
  137. package/dist/entities/textSnippet/textSnippet.entity.d.ts +20 -0
  138. package/dist/entities/textSnippet/textSnippet.entity.js +2 -0
  139. package/dist/entities/transparency/index.d.ts +1 -0
  140. package/dist/entities/transparency/index.js +17 -0
  141. package/dist/entities/transparency/transparency.entity.d.ts +77 -0
  142. package/dist/entities/transparency/transparency.entity.js +2 -0
  143. package/dist/entities/workFolder/index.d.ts +1 -0
  144. package/dist/entities/workFolder/index.js +17 -0
  145. package/dist/entities/workFolder/workFolder.entity.d.ts +83 -0
  146. package/dist/entities/workFolder/workFolder.entity.js +2 -0
  147. package/package.json +1 -1
  148. package/src/base/entities.ts +1170 -4
  149. package/src/contracts/accessRequest.contract.ts +81 -0
  150. package/src/contracts/archivalSeries.contract.ts +59 -0
  151. package/src/contracts/audit.contract.ts +30 -0
  152. package/src/contracts/caseFile.contract.ts +107 -2
  153. package/src/contracts/dataProtection.contract.ts +197 -0
  154. package/src/contracts/desk.contract.ts +72 -0
  155. package/src/contracts/document.contract.ts +197 -2
  156. package/src/contracts/documentTemplate.contract.ts +61 -0
  157. package/src/contracts/documentType.contract.ts +29 -3
  158. package/src/contracts/draftingRequest.contract.ts +73 -0
  159. package/src/contracts/holiday.contract.ts +16 -0
  160. package/src/contracts/index.ts +92 -1
  161. package/src/contracts/indicators.contract.ts +80 -0
  162. package/src/contracts/issuingEntity.contract.ts +55 -0
  163. package/src/contracts/mailIntake.contract.ts +49 -0
  164. package/src/contracts/partsOffice.contract.ts +199 -0
  165. package/src/contracts/push.contract.ts +41 -0
  166. package/src/contracts/registerBook.contract.ts +24 -0
  167. package/src/contracts/repositoryExport.contract.ts +54 -0
  168. package/src/contracts/retention.contract.ts +44 -0
  169. package/src/contracts/scan.contract.ts +52 -0
  170. package/src/contracts/signatureBatch.contract.ts +96 -0
  171. package/src/contracts/signatureCheck.contract.ts +11 -0
  172. package/src/contracts/textSnippet.contract.ts +53 -0
  173. package/src/contracts/transparency.contract.ts +55 -0
  174. package/src/contracts/workFolder.contract.ts +75 -0
  175. package/src/entities/accessRequest/accessRequest.entity.ts +78 -0
  176. package/src/entities/accessRequest/index.ts +1 -0
  177. package/src/entities/archivalSeries/archivalSeries.entity.ts +37 -0
  178. package/src/entities/archivalSeries/index.ts +1 -0
  179. package/src/entities/audit/audit.entity.ts +41 -0
  180. package/src/entities/audit/index.ts +1 -0
  181. package/src/entities/caseFile/caseFile.entity.ts +132 -0
  182. package/src/entities/dataProtection/dataProtection.entity.ts +191 -0
  183. package/src/entities/dataProtection/index.ts +1 -0
  184. package/src/entities/desk/desk.entity.ts +28 -0
  185. package/src/entities/desk/index.ts +1 -0
  186. package/src/entities/document/document.entity.ts +412 -0
  187. package/src/entities/documentTemplate/documentTemplate.entity.ts +58 -0
  188. package/src/entities/documentTemplate/index.ts +1 -0
  189. package/src/entities/documentType/documentType.entity.ts +19 -0
  190. package/src/entities/draftingRequest/draftingRequest.entity.ts +78 -0
  191. package/src/entities/draftingRequest/index.ts +1 -0
  192. package/src/entities/holiday/holiday.entity.ts +11 -0
  193. package/src/entities/holiday/index.ts +1 -0
  194. package/src/entities/index.ts +22 -0
  195. package/src/entities/indicators/index.ts +1 -0
  196. package/src/entities/indicators/indicators.entity.ts +157 -0
  197. package/src/entities/issuingEntity/index.ts +1 -0
  198. package/src/entities/issuingEntity/issuingEntity.entity.ts +24 -0
  199. package/src/entities/mailIntake/index.ts +1 -0
  200. package/src/entities/mailIntake/mailIntake.entity.ts +55 -0
  201. package/src/entities/partsOffice/index.ts +1 -0
  202. package/src/entities/partsOffice/partsOffice.entity.ts +138 -0
  203. package/src/entities/push/index.ts +1 -0
  204. package/src/entities/push/push.entity.ts +31 -0
  205. package/src/entities/registerBook/index.ts +1 -0
  206. package/src/entities/registerBook/registerBook.entity.ts +52 -0
  207. package/src/entities/repositoryExport/index.ts +1 -0
  208. package/src/entities/repositoryExport/repositoryExport.entity.ts +86 -0
  209. package/src/entities/retention/index.ts +1 -0
  210. package/src/entities/retention/retention.entity.ts +53 -0
  211. package/src/entities/scan/index.ts +1 -0
  212. package/src/entities/scan/scan.entity.ts +32 -0
  213. package/src/entities/signatureBatch/index.ts +1 -0
  214. package/src/entities/signatureBatch/signatureBatch.entity.ts +110 -0
  215. package/src/entities/signatureCheck/index.ts +1 -0
  216. package/src/entities/signatureCheck/signatureCheck.entity.ts +63 -0
  217. package/src/entities/textSnippet/index.ts +1 -0
  218. package/src/entities/textSnippet/textSnippet.entity.ts +24 -0
  219. package/src/entities/transparency/index.ts +1 -0
  220. package/src/entities/transparency/transparency.entity.ts +78 -0
  221. package/src/entities/workFolder/index.ts +1 -0
  222. package/src/entities/workFolder/workFolder.entity.ts +84 -0
  223. package/tsconfig.json +1 -3
@@ -60,7 +60,22 @@ export type DocumentTrackingAction =
60
60
  | 'Annulled'
61
61
  | 'Delivered'
62
62
  | 'Derived'
63
- | 'Reassigned';
63
+ | 'Reassigned'
64
+ | 'Dispatched'
65
+ | 'DispatchReturned'
66
+ | 'DispatchedByContingency'
67
+ | 'Received'
68
+ | 'EmailCopySent'
69
+ | 'EmailCopyOpened'
70
+ | 'DispositionRecorded'
71
+ | 'TransparencyRedacted'
72
+ | 'TransparencyPublished'
73
+ | 'TransparencyExcluded'
74
+ | 'TransparencyWithdrawn'
75
+ | 'DraftReviewRequested'
76
+ | 'DraftReviewApproved'
77
+ | 'DraftReviewRejected'
78
+ | 'DraftReviewCancelled';
64
79
 
65
80
  export const DocumentTrackingAction = {
66
81
  Created: 'Created',
@@ -77,8 +92,65 @@ export const DocumentTrackingAction = {
77
92
  Delivered: 'Delivered',
78
93
  Derived: 'Derived',
79
94
  Reassigned: 'Reassigned',
95
+ Dispatched: 'Dispatched',
96
+ DispatchReturned: 'DispatchReturned',
97
+ DispatchedByContingency: 'DispatchedByContingency',
98
+ Received: 'Received',
99
+ EmailCopySent: 'EmailCopySent',
100
+ EmailCopyOpened: 'EmailCopyOpened',
101
+ DispositionRecorded: 'DispositionRecorded',
102
+ TransparencyRedacted: 'TransparencyRedacted',
103
+ TransparencyPublished: 'TransparencyPublished',
104
+ TransparencyExcluded: 'TransparencyExcluded',
105
+ TransparencyWithdrawn: 'TransparencyWithdrawn',
106
+ DraftReviewRequested: 'DraftReviewRequested',
107
+ DraftReviewApproved: 'DraftReviewApproved',
108
+ DraftReviewRejected: 'DraftReviewRejected',
109
+ DraftReviewCancelled: 'DraftReviewCancelled',
80
110
  } satisfies Record<string, DocumentTrackingAction>;
81
111
 
112
+ export type DraftReviewStatus = 'Pending' | 'Approved' | 'Rejected' | 'Cancelled';
113
+
114
+ export const DraftReviewStatus = {
115
+ Pending: 'Pending',
116
+ Approved: 'Approved',
117
+ Rejected: 'Rejected',
118
+ Cancelled: 'Cancelled',
119
+ } satisfies Record<string, DraftReviewStatus>;
120
+
121
+ export type DocumentOrigin = 'Internal' | 'DocDigital' | 'Manual';
122
+
123
+ export const DocumentOrigin = {
124
+ Internal: 'Internal',
125
+ DocDigital: 'DocDigital',
126
+ Manual: 'Manual',
127
+ } satisfies Record<string, DocumentOrigin>;
128
+
129
+ export type CommunicationMeans = 'Paper' | 'Email' | 'Courier' | 'Other';
130
+
131
+ export const CommunicationMeans = {
132
+ Paper: 'Paper',
133
+ Email: 'Email',
134
+ Courier: 'Courier',
135
+ Other: 'Other',
136
+ } satisfies Record<string, CommunicationMeans>;
137
+
138
+ export type DocumentDispatchStatus = 'Pending' | 'Dispatched' | 'Returned';
139
+
140
+ export const DocumentDispatchStatus = {
141
+ Pending: 'Pending',
142
+ Dispatched: 'Dispatched',
143
+ Returned: 'Returned',
144
+ } satisfies Record<string, DocumentDispatchStatus>;
145
+
146
+ export type DocDigitalInboundStatus = 'Pending' | 'Registered' | 'Returned';
147
+
148
+ export const DocDigitalInboundStatus = {
149
+ Pending: 'Pending',
150
+ Registered: 'Registered',
151
+ Returned: 'Returned',
152
+ } satisfies Record<string, DocDigitalInboundStatus>;
153
+
82
154
  export type DocumentFlowStepType = 'Employee' | 'DirectorateHead';
83
155
 
84
156
  export const DocumentFlowStepType = {
@@ -154,12 +226,13 @@ export const CaseFileActuationType = {
154
226
  PowerRegistration: 'PowerRegistration',
155
227
  } satisfies Record<string, CaseFileActuationType>;
156
228
 
157
- export type CaseFileEntryKind = 'Document' | 'File' | 'CaseFile';
229
+ export type CaseFileEntryKind = 'Document' | 'File' | 'CaseFile' | 'Physical';
158
230
 
159
231
  export const CaseFileEntryKind = {
160
232
  Document: 'Document',
161
233
  File: 'File',
162
234
  CaseFile: 'CaseFile',
235
+ Physical: 'Physical',
163
236
  } satisfies Record<string, CaseFileEntryKind>;
164
237
 
165
238
  export type CaseFileActorRelation =
@@ -188,20 +261,28 @@ export type CaseFileTrackingAction =
188
261
  | 'Updated'
189
262
  | 'EntryAdded'
190
263
  | 'EntryVoided'
264
+ | 'EntryMoved'
191
265
  | 'ParticipantAdded'
192
266
  | 'ParticipantRemoved'
193
267
  | 'Closed'
194
- | 'Exported';
268
+ | 'Exported'
269
+ | 'ShareLinkCreated'
270
+ | 'ShareLinkRevoked'
271
+ | 'DispositionRecorded';
195
272
 
196
273
  export const CaseFileTrackingAction = {
197
274
  Created: 'Created',
198
275
  Updated: 'Updated',
199
276
  EntryAdded: 'EntryAdded',
200
277
  EntryVoided: 'EntryVoided',
278
+ EntryMoved: 'EntryMoved',
201
279
  ParticipantAdded: 'ParticipantAdded',
202
280
  ParticipantRemoved: 'ParticipantRemoved',
203
281
  Closed: 'Closed',
204
282
  Exported: 'Exported',
283
+ ShareLinkCreated: 'ShareLinkCreated',
284
+ ShareLinkRevoked: 'ShareLinkRevoked',
285
+ DispositionRecorded: 'DispositionRecorded',
205
286
  } satisfies Record<string, CaseFileTrackingAction>;
206
287
 
207
288
  export type CaseFileAccessAction = 'Viewed' | 'FileDownloaded' | 'Exported';
@@ -212,6 +293,337 @@ export const CaseFileAccessAction = {
212
293
  Exported: 'Exported',
213
294
  } satisfies Record<string, CaseFileAccessAction>;
214
295
 
296
+ export type ScanSessionStatus = 'Open' | 'Ready';
297
+
298
+ export const ScanSessionStatus = {
299
+ Open: 'Open',
300
+ Ready: 'Ready',
301
+ } satisfies Record<string, ScanSessionStatus>;
302
+
303
+ export type TextSnippetSection = 'Vistos' | 'Considerando' | 'Resolutive' | 'Body' | 'Closing';
304
+
305
+ export const TextSnippetSection = {
306
+ Vistos: 'Vistos',
307
+ Considerando: 'Considerando',
308
+ Resolutive: 'Resolutive',
309
+ Body: 'Body',
310
+ Closing: 'Closing',
311
+ } satisfies Record<string, TextSnippetSection>;
312
+
313
+ export type WorkFolderItemKind = 'Document' | 'File';
314
+
315
+ export const WorkFolderItemKind = {
316
+ Document: 'Document',
317
+ File: 'File',
318
+ } satisfies Record<string, WorkFolderItemKind>;
319
+
320
+ export type ServiceOutageKind = 'Unplanned' | 'Planned';
321
+
322
+ export const ServiceOutageKind = {
323
+ Unplanned: 'Unplanned',
324
+ Planned: 'Planned',
325
+ } satisfies Record<string, ServiceOutageKind>;
326
+
327
+ export type QualityMetricKey =
328
+ | 'Effectiveness'
329
+ | 'Efficiency'
330
+ | 'Availability'
331
+ | 'ResponseTime'
332
+ | 'Accessibility'
333
+ | 'FunctionalCompleteness'
334
+ | 'Interoperability';
335
+
336
+ export const QualityMetricKey = {
337
+ Effectiveness: 'Effectiveness',
338
+ Efficiency: 'Efficiency',
339
+ Availability: 'Availability',
340
+ ResponseTime: 'ResponseTime',
341
+ Accessibility: 'Accessibility',
342
+ FunctionalCompleteness: 'FunctionalCompleteness',
343
+ Interoperability: 'Interoperability',
344
+ } satisfies Record<string, QualityMetricKey>;
345
+
346
+ export type DocumentAccessAction = 'Viewed' | 'FileDownloaded' | 'TrailExported';
347
+
348
+ export const DocumentAccessAction = {
349
+ Viewed: 'Viewed',
350
+ FileDownloaded: 'FileDownloaded',
351
+ TrailExported: 'TrailExported',
352
+ } satisfies Record<string, DocumentAccessAction>;
353
+
354
+ export type AuditEntity =
355
+ | 'DocumentType'
356
+ | 'IssuingEntity'
357
+ | 'ArchivalSeries'
358
+ | 'TextSnippet'
359
+ | 'Holiday'
360
+ | 'Procedure'
361
+ | 'QualityMetric'
362
+ | 'ServiceOutage'
363
+ | 'Repository'
364
+ | 'DataTreatment'
365
+ | 'DocumentTemplate';
366
+
367
+ export const AuditEntity = {
368
+ DocumentType: 'DocumentType',
369
+ IssuingEntity: 'IssuingEntity',
370
+ ArchivalSeries: 'ArchivalSeries',
371
+ TextSnippet: 'TextSnippet',
372
+ Holiday: 'Holiday',
373
+ Procedure: 'Procedure',
374
+ QualityMetric: 'QualityMetric',
375
+ ServiceOutage: 'ServiceOutage',
376
+ Repository: 'Repository',
377
+ DataTreatment: 'DataTreatment',
378
+ DocumentTemplate: 'DocumentTemplate',
379
+ } satisfies Record<string, AuditEntity>;
380
+
381
+ export type AuditAction = 'Created' | 'Updated' | 'Enabled' | 'Disabled' | 'Removed' | 'Exported';
382
+
383
+ export const AuditAction = {
384
+ Created: 'Created',
385
+ Updated: 'Updated',
386
+ Enabled: 'Enabled',
387
+ Disabled: 'Disabled',
388
+ Removed: 'Removed',
389
+ Exported: 'Exported',
390
+ } satisfies Record<string, AuditAction>;
391
+
392
+ export type FinalDisposition = 'Permanent' | 'Eliminate' | 'Select';
393
+
394
+ export const FinalDisposition = {
395
+ Permanent: 'Permanent',
396
+ Eliminate: 'Eliminate',
397
+ Select: 'Select',
398
+ } satisfies Record<string, FinalDisposition>;
399
+
400
+ export type DispositionKind = 'Transfer' | 'Elimination';
401
+
402
+ export const DispositionKind = {
403
+ Transfer: 'Transfer',
404
+ Elimination: 'Elimination',
405
+ } satisfies Record<string, DispositionKind>;
406
+
407
+ export type AccessRequestChannel = 'Portal' | 'Email' | 'InPerson' | 'Letter';
408
+
409
+ export const AccessRequestChannel = {
410
+ Portal: 'Portal',
411
+ Email: 'Email',
412
+ InPerson: 'InPerson',
413
+ Letter: 'Letter',
414
+ } satisfies Record<string, AccessRequestChannel>;
415
+
416
+ export type AccessRequestStatus = 'Received' | 'InCorrection' | 'InProgress' | 'Resolved';
417
+
418
+ export const AccessRequestStatus = {
419
+ Received: 'Received',
420
+ InCorrection: 'InCorrection',
421
+ InProgress: 'InProgress',
422
+ Resolved: 'Resolved',
423
+ } satisfies Record<string, AccessRequestStatus>;
424
+
425
+ export type AccessRequestResolution =
426
+ 'Delivered' | 'PartiallyDelivered' | 'Denied' | 'Derived' | 'NonExistent' | 'Withdrawn';
427
+
428
+ export const AccessRequestResolution = {
429
+ Delivered: 'Delivered',
430
+ PartiallyDelivered: 'PartiallyDelivered',
431
+ Denied: 'Denied',
432
+ Derived: 'Derived',
433
+ NonExistent: 'NonExistent',
434
+ Withdrawn: 'Withdrawn',
435
+ } satisfies Record<string, AccessRequestResolution>;
436
+
437
+ export type AccessRequestEventAction =
438
+ | 'Received'
439
+ | 'Updated'
440
+ | 'CorrectionRequested'
441
+ | 'Corrected'
442
+ | 'Assigned'
443
+ | 'ThirdPartyNotified'
444
+ | 'OppositionRegistered'
445
+ | 'Extended'
446
+ | 'Resolved'
447
+ | 'AppealRegistered';
448
+
449
+ export const AccessRequestEventAction = {
450
+ Received: 'Received',
451
+ Updated: 'Updated',
452
+ CorrectionRequested: 'CorrectionRequested',
453
+ Corrected: 'Corrected',
454
+ Assigned: 'Assigned',
455
+ ThirdPartyNotified: 'ThirdPartyNotified',
456
+ OppositionRegistered: 'OppositionRegistered',
457
+ Extended: 'Extended',
458
+ Resolved: 'Resolved',
459
+ AppealRegistered: 'AppealRegistered',
460
+ } satisfies Record<string, AccessRequestEventAction>;
461
+
462
+ export type TransparencyStatus = 'Published' | 'Excluded';
463
+
464
+ export const TransparencyStatus = {
465
+ Published: 'Published',
466
+ Excluded: 'Excluded',
467
+ } satisfies Record<string, TransparencyStatus>;
468
+
469
+ export type DataLegalBasis = 'LegalFunction' | 'LegalObligation' | 'Consent' | 'Contract' | 'VitalInterest';
470
+
471
+ export const DataLegalBasis = {
472
+ LegalFunction: 'LegalFunction',
473
+ LegalObligation: 'LegalObligation',
474
+ Consent: 'Consent',
475
+ Contract: 'Contract',
476
+ VitalInterest: 'VitalInterest',
477
+ } satisfies Record<string, DataLegalBasis>;
478
+
479
+ export type DataRight = 'Access' | 'Rectification' | 'Suppression' | 'Opposition' | 'Portability';
480
+
481
+ export const DataRight = {
482
+ Access: 'Access',
483
+ Rectification: 'Rectification',
484
+ Suppression: 'Suppression',
485
+ Opposition: 'Opposition',
486
+ Portability: 'Portability',
487
+ } satisfies Record<string, DataRight>;
488
+
489
+ export type DataRightsChannel = 'Email' | 'WebForm' | 'InPerson' | 'Letter';
490
+
491
+ export const DataRightsChannel = {
492
+ Email: 'Email',
493
+ WebForm: 'WebForm',
494
+ InPerson: 'InPerson',
495
+ Letter: 'Letter',
496
+ } satisfies Record<string, DataRightsChannel>;
497
+
498
+ export type DataRightsRequestStatus = 'Received' | 'InProgress' | 'Resolved';
499
+
500
+ export const DataRightsRequestStatus = {
501
+ Received: 'Received',
502
+ InProgress: 'InProgress',
503
+ Resolved: 'Resolved',
504
+ } satisfies Record<string, DataRightsRequestStatus>;
505
+
506
+ export type DataRightsResolution = 'Granted' | 'PartiallyGranted' | 'Denied' | 'Withdrawn';
507
+
508
+ export const DataRightsResolution = {
509
+ Granted: 'Granted',
510
+ PartiallyGranted: 'PartiallyGranted',
511
+ Denied: 'Denied',
512
+ Withdrawn: 'Withdrawn',
513
+ } satisfies Record<string, DataRightsResolution>;
514
+
515
+ export type DataRightsEventAction =
516
+ | 'Received'
517
+ | 'Updated'
518
+ | 'Acknowledged'
519
+ | 'IdentityVerified'
520
+ | 'Assigned'
521
+ | 'BlockingResolved'
522
+ | 'BlockingLifted'
523
+ | 'Extended'
524
+ | 'Resolved'
525
+ | 'ResponseSent'
526
+ | 'ComplaintRegistered';
527
+
528
+ export const DataRightsEventAction = {
529
+ Received: 'Received',
530
+ Updated: 'Updated',
531
+ Acknowledged: 'Acknowledged',
532
+ IdentityVerified: 'IdentityVerified',
533
+ Assigned: 'Assigned',
534
+ BlockingResolved: 'BlockingResolved',
535
+ BlockingLifted: 'BlockingLifted',
536
+ Extended: 'Extended',
537
+ Resolved: 'Resolved',
538
+ ResponseSent: 'ResponseSent',
539
+ ComplaintRegistered: 'ComplaintRegistered',
540
+ } satisfies Record<string, DataRightsEventAction>;
541
+
542
+ export type DataBreachKind = 'Destruction' | 'Leak' | 'Loss' | 'Alteration' | 'UnauthorizedAccess';
543
+
544
+ export const DataBreachKind = {
545
+ Destruction: 'Destruction',
546
+ Leak: 'Leak',
547
+ Loss: 'Loss',
548
+ Alteration: 'Alteration',
549
+ UnauthorizedAccess: 'UnauthorizedAccess',
550
+ } satisfies Record<string, DataBreachKind>;
551
+
552
+ export type DataBreachStatus = 'Open' | 'Closed';
553
+
554
+ export const DataBreachStatus = {
555
+ Open: 'Open',
556
+ Closed: 'Closed',
557
+ } satisfies Record<string, DataBreachStatus>;
558
+
559
+ export type DataBreachEventAction = 'Registered' | 'Updated' | 'AgencyReported' | 'HoldersNotified' | 'Closed';
560
+
561
+ export const DataBreachEventAction = {
562
+ Registered: 'Registered',
563
+ Updated: 'Updated',
564
+ AgencyReported: 'AgencyReported',
565
+ HoldersNotified: 'HoldersNotified',
566
+ Closed: 'Closed',
567
+ } satisfies Record<string, DataBreachEventAction>;
568
+
569
+ export type DataBreachNoticeMeans = 'Individual' | 'PublicNotice';
570
+
571
+ export const DataBreachNoticeMeans = {
572
+ Individual: 'Individual',
573
+ PublicNotice: 'PublicNotice',
574
+ } satisfies Record<string, DataBreachNoticeMeans>;
575
+
576
+ export type DeskFileSource = 'Upload' | 'Scan' | 'Email';
577
+
578
+ export const DeskFileSource = {
579
+ Upload: 'Upload',
580
+ Scan: 'Scan',
581
+ Email: 'Email',
582
+ } satisfies Record<string, DeskFileSource>;
583
+
584
+ export type DeskFileTarget = 'Document' | 'CaseFile';
585
+
586
+ export const DeskFileTarget = {
587
+ Document: 'Document',
588
+ CaseFile: 'CaseFile',
589
+ } satisfies Record<string, DeskFileTarget>;
590
+
591
+ export type MailIntakeStatus = 'Pending' | 'Accepted' | 'Discarded';
592
+
593
+ export const MailIntakeStatus = {
594
+ Pending: 'Pending',
595
+ Accepted: 'Accepted',
596
+ Discarded: 'Discarded',
597
+ } satisfies Record<string, MailIntakeStatus>;
598
+
599
+ export type MailAuthentication = 'Pass' | 'Fail' | 'Unknown';
600
+
601
+ export const MailAuthentication = {
602
+ Pass: 'Pass',
603
+ Fail: 'Fail',
604
+ Unknown: 'Unknown',
605
+ } satisfies Record<string, MailAuthentication>;
606
+
607
+ export type DraftingRequestStatus = 'Pending' | 'Taken' | 'Declined' | 'Cancelled';
608
+
609
+ export const DraftingRequestStatus = {
610
+ Pending: 'Pending',
611
+ Taken: 'Taken',
612
+ Declined: 'Declined',
613
+ Cancelled: 'Cancelled',
614
+ } satisfies Record<string, DraftingRequestStatus>;
615
+
616
+ export type DraftingRequestEventAction = 'Created' | 'Taken' | 'Released' | 'Declined' | 'Cancelled' | 'DocumentLinked';
617
+
618
+ export const DraftingRequestEventAction = {
619
+ Created: 'Created',
620
+ Taken: 'Taken',
621
+ Released: 'Released',
622
+ Declined: 'Declined',
623
+ Cancelled: 'Cancelled',
624
+ DocumentLinked: 'DocumentLinked',
625
+ } satisfies Record<string, DraftingRequestEventAction>;
626
+
215
627
  export interface DocumentTypeEntity {
216
628
  id: string;
217
629
  name: string;
@@ -221,11 +633,25 @@ export interface DocumentTypeEntity {
221
633
  nextCorrelative: number;
222
634
  correlativeYear?: number | null;
223
635
  resetsYearly: boolean;
636
+ numbered: boolean;
637
+ activeTransparency: boolean;
638
+ transparencySection?: string | null;
224
639
  directorateCodeReference?: number | null;
640
+ draftReviewDirectorateCode?: number | null;
641
+ draftReviewDirectorateName?: string | null;
642
+ archivalSeries?: ArchivalSeriesEntity | null;
643
+ archivalSeriesId?: string | null;
644
+ issuingEntity?: IssuingEntityEntity | null;
645
+ issuingEntityId?: string | null;
646
+ sharesNumberingWith?: DocumentTypeEntity | null;
647
+ sharesNumberingWithId?: string | null;
648
+ numberingMembers?: DocumentTypeEntity[];
225
649
  enabled: boolean;
226
650
  documents?: DocumentEntity[];
651
+ draftingRequests?: DraftingRequestEntity[];
227
652
  annulledNumbers?: DocumentAnnulledNumberEntity[];
228
653
  flowSteps?: DocumentTypeFlowStepEntity[];
654
+ signatureBatches?: SignatureBatchEntity[];
229
655
  deleted: boolean;
230
656
  createdAt: string;
231
657
  updatedAt: string;
@@ -237,6 +663,7 @@ export interface DocumentEntity {
237
663
  keywords: string[];
238
664
  accessLevel: DocumentAccessLevel;
239
665
  hasSensitiveData: boolean;
666
+ restrictionEndsAt?: string | null;
240
667
  status: DocumentStatus;
241
668
  correlative?: number | null;
242
669
  correlativeYear?: number | null;
@@ -246,6 +673,18 @@ export interface DocumentEntity {
246
673
  annulledAt?: string | null;
247
674
  annulmentReason?: string | null;
248
675
  responseDueAt?: string | null;
676
+ origin: DocumentOrigin;
677
+ intakeNumber?: number | null;
678
+ intakeYear?: number | null;
679
+ externalFolio?: string | null;
680
+ externalSender?: string | null;
681
+ externalDate?: string | null;
682
+ intakeMeans?: CommunicationMeans | null;
683
+ composition?: JsonValue | null;
684
+ contentText?: string | null;
685
+ textExtractedAt?: string | null;
686
+ batch?: SignatureBatchEntity | null;
687
+ batchId?: string | null;
249
688
  replyTo?: DocumentEntity | null;
250
689
  replyToDocumentId?: string | null;
251
690
  replies?: DocumentEntity[];
@@ -257,6 +696,7 @@ export interface DocumentEntity {
257
696
  originalFileName: string;
258
697
  currentFileId?: string | null;
259
698
  currentFileUrl?: string | null;
699
+ fileFormat?: string | null;
260
700
  submittedAt?: string | null;
261
701
  finishedAt?: string | null;
262
702
  documentType?: DocumentTypeEntity;
@@ -268,6 +708,41 @@ export interface DocumentEntity {
268
708
  recipients?: DocumentRecipientEntity[];
269
709
  deliveries?: DocumentDeliveryEntity[];
270
710
  caseFileEntries?: CaseFileEntryEntity[];
711
+ workFolderItems?: WorkFolderItemEntity[];
712
+ externalRecipients?: DocumentExternalRecipientEntity[];
713
+ emailCopies?: DocumentEmailCopyEntity[];
714
+ accesses?: DocumentAccessEntity[];
715
+ disposition?: DispositionRecordEntity | null;
716
+ dispositionId?: string | null;
717
+ transparencyStatus?: TransparencyStatus | null;
718
+ transparencyUrl?: string | null;
719
+ transparencyNote?: string | null;
720
+ transparencyAt?: string | null;
721
+ transparencyByFullName?: string | null;
722
+ redactedFileId?: string | null;
723
+ redactedFileName?: string | null;
724
+ accessRequestResponses?: AccessRequestEntity[];
725
+ dataRightsResponses?: DataRightsRequestEntity[];
726
+ versions?: DocumentVersionEntity[];
727
+ comments?: DocumentCommentEntity[];
728
+ draftReviews?: DocumentDraftReviewEntity[];
729
+ draftingRequest?: DraftingRequestEntity | null;
730
+ accessRequestDeliveries?: AccessRequestDocumentEntity[];
731
+ dispatch?: DocumentDispatchEntity | null;
732
+ docDigitalInbound?: DocDigitalInboundEntity | null;
733
+ deleted: boolean;
734
+ createdAt: string;
735
+ updatedAt: string;
736
+ }
737
+
738
+ export interface SignatureBatchEntity {
739
+ id: string;
740
+ name: string;
741
+ createdByEmployeeId: string;
742
+ createdByFullName: string;
743
+ documentType?: DocumentTypeEntity;
744
+ documentTypeId: string;
745
+ documents?: DocumentEntity[];
271
746
  deleted: boolean;
272
747
  createdAt: string;
273
748
  updatedAt: string;
@@ -277,6 +752,7 @@ export interface DocumentParticipantEntity {
277
752
  id: string;
278
753
  role: DocumentParticipantRole;
279
754
  order: number;
755
+ stage: number;
280
756
  status: DocumentParticipantStatus;
281
757
  employeeId: string;
282
758
  fullName: string;
@@ -306,6 +782,7 @@ export interface DocumentTrackingEntity {
306
782
  id: string;
307
783
  action: DocumentTrackingAction;
308
784
  observation?: string | null;
785
+ sha256?: string | null;
309
786
  employeeId?: string | null;
310
787
  employeeFullName?: string | null;
311
788
  document?: DocumentEntity;
@@ -356,6 +833,8 @@ export interface DocumentDeliveryEntity {
356
833
  readAt?: string | null;
357
834
  closedAt?: string | null;
358
835
  closingNote?: string | null;
836
+ dueSoonRemindedAt?: string | null;
837
+ overdueRemindedAt?: string | null;
359
838
  document?: DocumentEntity;
360
839
  documentId: string;
361
840
  createdAt: string;
@@ -370,6 +849,7 @@ export interface DocumentTypeFlowStepEntity {
370
849
  directorateCodeReference?: number | null;
371
850
  name: string;
372
851
  position?: string | null;
852
+ withPrevious: boolean;
373
853
  documentType?: DocumentTypeEntity;
374
854
  documentTypeId: string;
375
855
  createdAt: string;
@@ -404,6 +884,9 @@ export interface CaseFileEntity {
404
884
  status: CaseFileStatus;
405
885
  accessLevel: DocumentAccessLevel;
406
886
  hasSensitiveData: boolean;
887
+ restrictionEndsAt?: string | null;
888
+ archivalSeries?: ArchivalSeriesEntity | null;
889
+ archivalSeriesId?: string | null;
407
890
  incorporationMechanism: CaseFileIncorporationMechanism;
408
891
  schemaVersion: string;
409
892
  procedure?: ProcedureEntity;
@@ -412,6 +895,8 @@ export interface CaseFileEntity {
412
895
  responsibleFullName: string;
413
896
  responsiblePosition?: string | null;
414
897
  closedAt?: string | null;
898
+ disposition?: DispositionRecordEntity | null;
899
+ dispositionId?: string | null;
415
900
  closedByEmployeeId?: string | null;
416
901
  closedByFullName?: string | null;
417
902
  closingNote?: string | null;
@@ -422,8 +907,11 @@ export interface CaseFileEntity {
422
907
  trackings?: CaseFileTrackingEntity[];
423
908
  metadataChanges?: CaseFileMetadataChangeEntity[];
424
909
  accesses?: CaseFileAccessEntity[];
910
+ shareLinks?: CaseFileShareLinkEntity[];
911
+ integratedPdf?: JsonValue | null;
425
912
  createdAt: string;
426
913
  updatedAt: string;
914
+ workFolder?: WorkFolderEntity | null;
427
915
  }
428
916
 
429
917
  export interface CaseFileParticipantEntity {
@@ -455,6 +943,7 @@ export interface CaseFileEntryEntity {
455
943
  kind: CaseFileEntryKind;
456
944
  actuationType: CaseFileActuationType;
457
945
  title: string;
946
+ folder?: string | null;
458
947
  document?: DocumentEntity | null;
459
948
  documentId?: string | null;
460
949
  fileId?: string | null;
@@ -465,11 +954,16 @@ export interface CaseFileEntryEntity {
465
954
  keywords: string[];
466
955
  accessLevel?: DocumentAccessLevel | null;
467
956
  hasSensitiveData?: boolean | null;
957
+ physicalLocation?: string | null;
958
+ physicalReason?: string | null;
959
+ pageCount?: number | null;
468
960
  linkedCaseFile?: CaseFileEntity | null;
469
961
  linkedCaseFileId?: string | null;
470
962
  sha256?: string | null;
471
963
  size?: number | null;
472
964
  hasAdvancedSignature: boolean;
965
+ fileFormat?: string | null;
966
+ signatureCheck?: JsonValue | null;
473
967
  incorporatedByEmployeeId: string;
474
968
  incorporatedByFullName: string;
475
969
  voidedAt?: string | null;
@@ -508,9 +1002,681 @@ export interface CaseFileAccessEntity {
508
1002
  id: string;
509
1003
  action: CaseFileAccessAction;
510
1004
  entryId?: string | null;
511
- employeeId: string;
1005
+ employeeId?: string | null;
512
1006
  employeeFullName: string;
1007
+ shareLink?: CaseFileShareLinkEntity | null;
1008
+ shareLinkId?: string | null;
1009
+ caseFile?: CaseFileEntity;
1010
+ caseFileId: string;
1011
+ createdAt: string;
1012
+ }
1013
+
1014
+ export interface CaseFileShareLinkEntity {
1015
+ id: string;
1016
+ tokenHash: string;
1017
+ recipient: string;
1018
+ recipientEmail?: string | null;
1019
+ purpose?: string | null;
1020
+ allowExport: boolean;
1021
+ expiresAt: string;
1022
+ createdByEmployeeId: string;
1023
+ createdByFullName: string;
1024
+ revokedAt?: string | null;
1025
+ revokedByEmployeeId?: string | null;
1026
+ revokedByFullName?: string | null;
513
1027
  caseFile?: CaseFileEntity;
514
1028
  caseFileId: string;
1029
+ accesses?: CaseFileAccessEntity[];
1030
+ createdAt: string;
1031
+ }
1032
+
1033
+ export interface DocumentEmailCopyEntity {
1034
+ id: string;
1035
+ name: string;
1036
+ email: string;
1037
+ tokenHash?: string | null;
1038
+ expiresAt?: string | null;
1039
+ issuedAt?: string | null;
1040
+ openedAt?: string | null;
1041
+ downloadCount: number;
1042
+ document?: DocumentEntity;
1043
+ documentId: string;
1044
+ createdAt: string;
1045
+ }
1046
+
1047
+ export interface ScanSessionEntity {
1048
+ id: string;
1049
+ tokenHash: string;
1050
+ status: ScanSessionStatus;
1051
+ employeeId: string;
1052
+ pages: JsonValue;
1053
+ fileId?: string | null;
1054
+ fileName?: string | null;
1055
+ expiresAt: string;
1056
+ finishedAt?: string | null;
1057
+ createdAt: string;
1058
+ }
1059
+
1060
+ export interface DocumentExternalRecipientEntity {
1061
+ id: string;
1062
+ entityId: number;
1063
+ entityName: string;
1064
+ userId?: number | null;
1065
+ userName?: string | null;
1066
+ userPosition?: string | null;
1067
+ document?: DocumentEntity;
1068
+ documentId: string;
1069
+ createdAt: string;
1070
+ }
1071
+
1072
+ export interface DocumentDispatchEntity {
1073
+ id: string;
1074
+ status: DocumentDispatchStatus;
1075
+ folio?: string | null;
1076
+ docDigitalTypeId?: number | null;
1077
+ docDigitalTypeName?: string | null;
1078
+ docDigitalDocumentId?: string | null;
1079
+ docDigitalRequestId?: string | null;
1080
+ dispatchedAt?: string | null;
1081
+ dispatchedByEmployeeId?: string | null;
1082
+ dispatchedByFullName?: string | null;
1083
+ returnedAt?: string | null;
1084
+ returnedByEmployeeId?: string | null;
1085
+ returnedByFullName?: string | null;
1086
+ returnReason?: string | null;
1087
+ contingencyMeans?: CommunicationMeans | null;
1088
+ contingencySentTo?: string | null;
1089
+ contingencyReason?: string | null;
1090
+ contingencyReceiptFileId?: string | null;
1091
+ contingencyReceiptName?: string | null;
1092
+ document?: DocumentEntity;
1093
+ documentId: string;
1094
+ createdAt: string;
1095
+ updatedAt: string;
1096
+ }
1097
+
1098
+ export interface DocDigitalInboundEntity {
1099
+ id: string;
1100
+ docDigitalDocumentId: string;
1101
+ docDigitalRequestId?: string | null;
1102
+ status: DocDigitalInboundStatus;
1103
+ subject: string;
1104
+ description?: string | null;
1105
+ folio?: string | null;
1106
+ folioDate?: string | null;
1107
+ typeName?: string | null;
1108
+ reserved: boolean;
1109
+ senderEntityId?: number | null;
1110
+ senderEntityName?: string | null;
1111
+ senderName?: string | null;
1112
+ senderPosition?: string | null;
1113
+ recipientEntityId?: number | null;
1114
+ recipientEntityName?: string | null;
1115
+ fileId?: string | null;
1116
+ fileName?: string | null;
1117
+ attachments: JsonValue;
1118
+ signatureCheck?: JsonValue | null;
1119
+ registeredAt?: string | null;
1120
+ registeredByEmployeeId?: string | null;
1121
+ registeredByFullName?: string | null;
1122
+ acknowledgedAt?: string | null;
1123
+ acknowledgeError?: string | null;
1124
+ returnedAt?: string | null;
1125
+ returnedByEmployeeId?: string | null;
1126
+ returnedByFullName?: string | null;
1127
+ returnReason?: string | null;
1128
+ document?: DocumentEntity | null;
1129
+ documentId?: string | null;
1130
+ createdAt: string;
1131
+ updatedAt: string;
1132
+ }
1133
+
1134
+ export interface HolidayEntity {
1135
+ id: string;
1136
+ date: string;
1137
+ name: string;
1138
+ createdAt: string;
1139
+ }
1140
+
1141
+ export interface TextSnippetEntity {
1142
+ id: string;
1143
+ title: string;
1144
+ text: string;
1145
+ section: TextSnippetSection;
1146
+ keywords: string[];
1147
+ enabled: boolean;
1148
+ deleted: boolean;
1149
+ createdAt: string;
1150
+ updatedAt: string;
1151
+ }
1152
+
1153
+ export interface DocumentTemplateEntity {
1154
+ id: string;
1155
+ name: string;
1156
+ description?: string | null;
1157
+ documentTypeIds: string[];
1158
+ content: JsonValue;
1159
+ version: number;
1160
+ enabled: boolean;
1161
+ updatedByFullName?: string | null;
1162
+ versions?: DocumentTemplateVersionEntity[];
1163
+ deleted: boolean;
1164
+ createdAt: string;
1165
+ updatedAt: string;
1166
+ }
1167
+
1168
+ export interface DocumentDraftReviewEntity {
1169
+ id: string;
1170
+ documentId: string;
1171
+ document?: DocumentEntity;
1172
+ round: number;
1173
+ versionNumber: number;
1174
+ directorateCodeReference: number;
1175
+ directorateName: string;
1176
+ reviewerEmployeeId: string;
1177
+ reviewerFullName: string;
1178
+ requestedByEmployeeId: string;
1179
+ requestedByFullName: string;
1180
+ requestedAt: string;
1181
+ status: DraftReviewStatus;
1182
+ observation?: string | null;
1183
+ resolvedAt?: string | null;
1184
+ }
1185
+
1186
+ export interface DocumentTemplateVersionEntity {
1187
+ id: string;
1188
+ templateId: string;
1189
+ template?: DocumentTemplateEntity;
1190
+ version: number;
1191
+ content: JsonValue;
1192
+ createdByFullName?: string | null;
515
1193
  createdAt: string;
516
1194
  }
1195
+
1196
+ export interface ArchivalSeriesEntity {
1197
+ id: string;
1198
+ code: string;
1199
+ name: string;
1200
+ section?: string | null;
1201
+ description?: string | null;
1202
+ managementYears?: number | null;
1203
+ centralYears?: number | null;
1204
+ finalDisposition?: FinalDisposition | null;
1205
+ retentionNote?: string | null;
1206
+ enabled: boolean;
1207
+ documentTypes?: DocumentTypeEntity[];
1208
+ caseFiles?: CaseFileEntity[];
1209
+ dispositions?: DispositionRecordEntity[];
1210
+ deleted: boolean;
1211
+ createdAt: string;
1212
+ updatedAt: string;
1213
+ }
1214
+
1215
+ export interface IssuingEntityEntity {
1216
+ id: string;
1217
+ name: string;
1218
+ shortName?: string | null;
1219
+ directorateCodeReferences: number[];
1220
+ docDigitalEntityId?: number | null;
1221
+ enabled: boolean;
1222
+ documentTypes?: DocumentTypeEntity[];
1223
+ deleted: boolean;
1224
+ createdAt: string;
1225
+ updatedAt: string;
1226
+ }
1227
+
1228
+ export interface IntakeSequenceEntity {
1229
+ year: number;
1230
+ next: number;
1231
+ }
1232
+
1233
+ export interface WorkFolderEntity {
1234
+ id: string;
1235
+ name: string;
1236
+ description?: string | null;
1237
+ ownerEmployeeId: string;
1238
+ ownerFullName: string;
1239
+ caseFile?: CaseFileEntity | null;
1240
+ caseFileId?: string | null;
1241
+ participants?: WorkFolderParticipantEntity[];
1242
+ items?: WorkFolderItemEntity[];
1243
+ deleted: boolean;
1244
+ createdAt: string;
1245
+ updatedAt: string;
1246
+ }
1247
+
1248
+ export interface WorkFolderParticipantEntity {
1249
+ id: string;
1250
+ employeeId: string;
1251
+ fullName: string;
1252
+ folder?: WorkFolderEntity;
1253
+ folderId: string;
1254
+ createdAt: string;
1255
+ }
1256
+
1257
+ export interface WorkFolderItemEntity {
1258
+ id: string;
1259
+ kind: WorkFolderItemKind;
1260
+ title: string;
1261
+ document?: DocumentEntity | null;
1262
+ documentId?: string | null;
1263
+ fileId?: string | null;
1264
+ fileName?: string | null;
1265
+ addedByEmployeeId: string;
1266
+ addedByFullName: string;
1267
+ folder?: WorkFolderEntity;
1268
+ folderId: string;
1269
+ createdAt: string;
1270
+ }
1271
+
1272
+ export interface ServiceOutageEntity {
1273
+ id: string;
1274
+ kind: ServiceOutageKind;
1275
+ startedAt: string;
1276
+ endedAt?: string | null;
1277
+ cause: string;
1278
+ affectedServices?: string | null;
1279
+ createdByEmployeeId: string;
1280
+ createdByFullName: string;
1281
+ updatedByFullName?: string | null;
1282
+ deleted: boolean;
1283
+ createdAt: string;
1284
+ updatedAt: string;
1285
+ }
1286
+
1287
+ export interface QualityMetricSettingEntity {
1288
+ key: QualityMetricKey;
1289
+ threshold: number;
1290
+ declaredValue?: number | null;
1291
+ declaredNote?: string | null;
1292
+ declaredAt?: string | null;
1293
+ declaredByFullName?: string | null;
1294
+ updatedAt: string;
1295
+ }
1296
+
1297
+ export interface ServiceTimingEntity {
1298
+ hour: string;
1299
+ count: number;
1300
+ errorCount: number;
1301
+ totalMs: number;
1302
+ maxMs: number;
1303
+ under100: number;
1304
+ under250: number;
1305
+ under500: number;
1306
+ under1000: number;
1307
+ under2000: number;
1308
+ under5000: number;
1309
+ over5000: number;
1310
+ }
1311
+
1312
+ export interface DocumentAccessEntity {
1313
+ id: string;
1314
+ action: DocumentAccessAction;
1315
+ employeeId?: string | null;
1316
+ employeeFullName: string;
1317
+ document?: DocumentEntity;
1318
+ documentId: string;
1319
+ createdAt: string;
1320
+ }
1321
+
1322
+ export interface AuditLogEntity {
1323
+ id: string;
1324
+ entity: AuditEntity;
1325
+ action: AuditAction;
1326
+ entityId?: string | null;
1327
+ name: string;
1328
+ details?: JsonValue | null;
1329
+ employeeId?: string | null;
1330
+ employeeFullName: string;
1331
+ createdAt: string;
1332
+ }
1333
+
1334
+ export interface DispositionRecordEntity {
1335
+ id: string;
1336
+ kind: DispositionKind;
1337
+ number: number;
1338
+ year: number;
1339
+ observation?: string | null;
1340
+ series?: ArchivalSeriesEntity;
1341
+ seriesId: string;
1342
+ documents?: DocumentEntity[];
1343
+ caseFiles?: CaseFileEntity[];
1344
+ createdByEmployeeId: string;
1345
+ createdByFullName: string;
1346
+ createdAt: string;
1347
+ }
1348
+
1349
+ export interface AccessRequestEntity {
1350
+ id: string;
1351
+ number: number;
1352
+ year: number;
1353
+ externalFolio?: string | null;
1354
+ channel: AccessRequestChannel;
1355
+ receivedAt: string;
1356
+ requesterName: string;
1357
+ requesterEmail?: string | null;
1358
+ requesterAddress?: string | null;
1359
+ requestText: string;
1360
+ deliveryFormat?: string | null;
1361
+ status: AccessRequestStatus;
1362
+ correctionRequestedAt?: string | null;
1363
+ correctionDueAt?: string | null;
1364
+ correctedAt?: string | null;
1365
+ dueAt: string;
1366
+ extendedAt?: string | null;
1367
+ extensionNote?: string | null;
1368
+ assigneeEmployeeId?: string | null;
1369
+ assigneeFullName?: string | null;
1370
+ thirdPartyNotifiedAt?: string | null;
1371
+ oppositionDueAt?: string | null;
1372
+ thirdPartyOpposed?: boolean | null;
1373
+ resolution?: AccessRequestResolution | null;
1374
+ resolvedAt?: string | null;
1375
+ denialGrounds: string[];
1376
+ derivedTo?: string | null;
1377
+ resolutionNote?: string | null;
1378
+ responseDocument?: DocumentEntity | null;
1379
+ responseDocumentId?: string | null;
1380
+ appealedAt?: string | null;
1381
+ appealNote?: string | null;
1382
+ createdByEmployeeId: string;
1383
+ createdByFullName: string;
1384
+ documents?: AccessRequestDocumentEntity[];
1385
+ events?: AccessRequestEventEntity[];
1386
+ createdAt: string;
1387
+ updatedAt: string;
1388
+ }
1389
+
1390
+ export interface AccessRequestDocumentEntity {
1391
+ accessRequest?: AccessRequestEntity;
1392
+ accessRequestId: string;
1393
+ document?: DocumentEntity;
1394
+ documentId: string;
1395
+ }
1396
+
1397
+ export interface AccessRequestEventEntity {
1398
+ id: string;
1399
+ action: AccessRequestEventAction;
1400
+ note?: string | null;
1401
+ employeeId?: string | null;
1402
+ employeeFullName: string;
1403
+ accessRequest?: AccessRequestEntity;
1404
+ accessRequestId: string;
1405
+ createdAt: string;
1406
+ }
1407
+
1408
+ export interface DataTreatmentEntity {
1409
+ id: string;
1410
+ name: string;
1411
+ purpose: string;
1412
+ legalBasis: DataLegalBasis;
1413
+ legalBasisDetail?: string | null;
1414
+ dataCategories: string[];
1415
+ sensitiveData: boolean;
1416
+ dataSubjects: string;
1417
+ recipients?: string | null;
1418
+ source?: string | null;
1419
+ retention?: string | null;
1420
+ securityMeasures?: string | null;
1421
+ internationalTransfer?: string | null;
1422
+ responsibleUnit?: string | null;
1423
+ published: boolean;
1424
+ requests?: DataRightsRequestEntity[];
1425
+ breaches?: DataBreachEntity[];
1426
+ enabled: boolean;
1427
+ deleted: boolean;
1428
+ createdAt: string;
1429
+ updatedAt: string;
1430
+ }
1431
+
1432
+ export interface DataRightsRequestEntity {
1433
+ id: string;
1434
+ number: number;
1435
+ year: number;
1436
+ channel: DataRightsChannel;
1437
+ receivedAt: string;
1438
+ rights: DataRight[];
1439
+ requesterName: string;
1440
+ requesterRut?: string | null;
1441
+ requesterEmail?: string | null;
1442
+ requesterAddress?: string | null;
1443
+ representativeName?: string | null;
1444
+ identityVerifiedAt?: string | null;
1445
+ identityNote?: string | null;
1446
+ requestText: string;
1447
+ treatment?: DataTreatmentEntity | null;
1448
+ treatmentId?: string | null;
1449
+ status: DataRightsRequestStatus;
1450
+ acknowledgedAt?: string | null;
1451
+ dueAt: string;
1452
+ extendedAt?: string | null;
1453
+ extensionNote?: string | null;
1454
+ blockingRequested: boolean;
1455
+ blockingReason?: string | null;
1456
+ blockingDueAt?: string | null;
1457
+ blockingGranted?: boolean | null;
1458
+ blockingResolvedAt?: string | null;
1459
+ blockingNote?: string | null;
1460
+ blockingLiftedAt?: string | null;
1461
+ blockingLiftNote?: string | null;
1462
+ assigneeEmployeeId?: string | null;
1463
+ assigneeFullName?: string | null;
1464
+ resolution?: DataRightsResolution | null;
1465
+ resolvedAt?: string | null;
1466
+ denialGrounds: string[];
1467
+ resolutionNote?: string | null;
1468
+ responseDocument?: DocumentEntity | null;
1469
+ responseDocumentId?: string | null;
1470
+ responseSentAt?: string | null;
1471
+ responseSentTo?: string | null;
1472
+ responseSentMeans?: CommunicationMeans | null;
1473
+ complaintAt?: string | null;
1474
+ complaintNote?: string | null;
1475
+ createdByEmployeeId: string;
1476
+ createdByFullName: string;
1477
+ events?: DataRightsEventEntity[];
1478
+ createdAt: string;
1479
+ updatedAt: string;
1480
+ }
1481
+
1482
+ export interface DataRightsEventEntity {
1483
+ id: string;
1484
+ action: DataRightsEventAction;
1485
+ note?: string | null;
1486
+ employeeId?: string | null;
1487
+ employeeFullName: string;
1488
+ request?: DataRightsRequestEntity;
1489
+ requestId: string;
1490
+ createdAt: string;
1491
+ }
1492
+
1493
+ export interface DataBreachEntity {
1494
+ id: string;
1495
+ number: number;
1496
+ year: number;
1497
+ detectedAt: string;
1498
+ occurredAt?: string | null;
1499
+ kinds: DataBreachKind[];
1500
+ description: string;
1501
+ effects?: string | null;
1502
+ dataCategories: string[];
1503
+ affectedCount?: number | null;
1504
+ measures?: string | null;
1505
+ sensitiveData: boolean;
1506
+ minorsData: boolean;
1507
+ financialData: boolean;
1508
+ riskToRights: boolean;
1509
+ treatment?: DataTreatmentEntity | null;
1510
+ treatmentId?: string | null;
1511
+ status: DataBreachStatus;
1512
+ agencyReportedAt?: string | null;
1513
+ agencyReportNote?: string | null;
1514
+ holdersNotifiedAt?: string | null;
1515
+ holdersNoticeMeans?: DataBreachNoticeMeans | null;
1516
+ holdersNoticeNote?: string | null;
1517
+ closedAt?: string | null;
1518
+ closeNote?: string | null;
1519
+ createdByEmployeeId: string;
1520
+ createdByFullName: string;
1521
+ events?: DataBreachEventEntity[];
1522
+ createdAt: string;
1523
+ updatedAt: string;
1524
+ }
1525
+
1526
+ export interface DataBreachEventEntity {
1527
+ id: string;
1528
+ action: DataBreachEventAction;
1529
+ note?: string | null;
1530
+ employeeId?: string | null;
1531
+ employeeFullName: string;
1532
+ breach?: DataBreachEntity;
1533
+ breachId: string;
1534
+ createdAt: string;
1535
+ }
1536
+
1537
+ export interface DeskFileEntity {
1538
+ id: string;
1539
+ ownerEmployeeId: string;
1540
+ fileId: string;
1541
+ fileName: string;
1542
+ size: number;
1543
+ sha256: string;
1544
+ source: DeskFileSource;
1545
+ description?: string | null;
1546
+ classifiedAt?: string | null;
1547
+ target?: DeskFileTarget | null;
1548
+ targetId?: string | null;
1549
+ targetLabel?: string | null;
1550
+ removedAt?: string | null;
1551
+ mailIntake?: MailIntakeEntity | null;
1552
+ mailIntakeId?: string | null;
1553
+ createdAt: string;
1554
+ updatedAt: string;
1555
+ }
1556
+
1557
+ export interface MailIntakeEntity {
1558
+ id: string;
1559
+ sha256: string;
1560
+ messageId?: string | null;
1561
+ fromAddress: string;
1562
+ fromName?: string | null;
1563
+ subject: string;
1564
+ textPreview?: string | null;
1565
+ sentAt?: string | null;
1566
+ emlFileId: string;
1567
+ emlFileName: string;
1568
+ size: number;
1569
+ attachments: JsonValue;
1570
+ authentication: MailAuthentication;
1571
+ authDetail?: string | null;
1572
+ status: MailIntakeStatus;
1573
+ resolvedAt?: string | null;
1574
+ resolvedByEmployeeId?: string | null;
1575
+ deskFiles?: DeskFileEntity[];
1576
+ createdAt: string;
1577
+ updatedAt: string;
1578
+ }
1579
+
1580
+ export interface PushSubscriptionEntity {
1581
+ id: string;
1582
+ employeeId: string;
1583
+ endpoint: string;
1584
+ p256dh: string;
1585
+ auth: string;
1586
+ userAgent?: string | null;
1587
+ lastSuccessAt?: string | null;
1588
+ failures: number;
1589
+ createdAt: string;
1590
+ updatedAt: string;
1591
+ }
1592
+
1593
+ export interface DocumentVersionEntity {
1594
+ id: string;
1595
+ documentId: string;
1596
+ document?: DocumentEntity;
1597
+ number: number;
1598
+ subject: string;
1599
+ fileId: string;
1600
+ fileName: string;
1601
+ sha256?: string | null;
1602
+ composition?: JsonValue | null;
1603
+ note?: string | null;
1604
+ status: DocumentStatus;
1605
+ createdByEmployeeId: string;
1606
+ createdByFullName: string;
1607
+ createdAt: string;
1608
+ }
1609
+
1610
+ export interface DocumentCommentEntity {
1611
+ id: string;
1612
+ documentId: string;
1613
+ document?: DocumentEntity;
1614
+ versionNumber: number;
1615
+ section?: string | null;
1616
+ quote?: string | null;
1617
+ text: string;
1618
+ authorEmployeeId: string;
1619
+ authorFullName: string;
1620
+ authorRole: string;
1621
+ resolvedAt?: string | null;
1622
+ resolvedByFullName?: string | null;
1623
+ resolutionNote?: string | null;
1624
+ createdAt: string;
1625
+ }
1626
+
1627
+ export interface DraftingRequestEntity {
1628
+ id: string;
1629
+ number: number;
1630
+ year: number;
1631
+ subject: string;
1632
+ details: string;
1633
+ documentTypeId?: string | null;
1634
+ documentType?: DocumentTypeEntity | null;
1635
+ dueAt?: string | null;
1636
+ requesterEmployeeId: string;
1637
+ requesterFullName: string;
1638
+ requesterAreaName?: string | null;
1639
+ targetDirectorateCode: number;
1640
+ targetDirectorateName: string;
1641
+ status: DraftingRequestStatus;
1642
+ takenByEmployeeId?: string | null;
1643
+ takenByFullName?: string | null;
1644
+ takenAt?: string | null;
1645
+ closedAt?: string | null;
1646
+ closingNote?: string | null;
1647
+ documentId?: string | null;
1648
+ document?: DocumentEntity | null;
1649
+ recipients?: DraftingRequestRecipientEntity[];
1650
+ attachments?: DraftingRequestAttachmentEntity[];
1651
+ events?: DraftingRequestEventEntity[];
1652
+ createdAt: string;
1653
+ updatedAt: string;
1654
+ }
1655
+
1656
+ export interface DraftingRequestRecipientEntity {
1657
+ id: string;
1658
+ requestId: string;
1659
+ request?: DraftingRequestEntity;
1660
+ employeeId: string;
1661
+ }
1662
+
1663
+ export interface DraftingRequestAttachmentEntity {
1664
+ id: string;
1665
+ requestId: string;
1666
+ request?: DraftingRequestEntity;
1667
+ fileId: string;
1668
+ name: string;
1669
+ }
1670
+
1671
+ export interface DraftingRequestEventEntity {
1672
+ id: string;
1673
+ requestId: string;
1674
+ request?: DraftingRequestEntity;
1675
+ action: DraftingRequestEventAction;
1676
+ note?: string | null;
1677
+ employeeId: string;
1678
+ employeeFullName: string;
1679
+ createdAt: string;
1680
+ }
1681
+
1682
+ type JsonValue = string | number | boolean | { [key in string]?: JsonValue } | Array<JsonValue> | null;