@muni-sanfer/types-gestor-documental 0.0.1-beta.6 → 0.0.1-beta.60

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 (248) hide show
  1. package/dist/base/entities.d.ts +1045 -5
  2. package/dist/base/entities.js +249 -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 +236 -3
  16. package/dist/contracts/document.contract.js +16 -0
  17. package/dist/contracts/documentTemplate.contract.d.ts +17 -0
  18. package/dist/contracts/documentTemplate.contract.js +10 -0
  19. package/dist/contracts/documentType.contract.d.ts +33 -3
  20. package/dist/contracts/documentType.contract.js +2 -0
  21. package/dist/contracts/draftingRequest.contract.d.ts +97 -0
  22. package/dist/contracts/draftingRequest.contract.js +11 -0
  23. package/dist/contracts/holiday.contract.d.ts +39 -0
  24. package/dist/contracts/holiday.contract.js +10 -0
  25. package/dist/contracts/index.d.ts +249 -4
  26. package/dist/contracts/index.js +69 -0
  27. package/dist/contracts/indicators.contract.d.ts +103 -0
  28. package/dist/contracts/indicators.contract.js +15 -0
  29. package/dist/contracts/internalReview.contract.d.ts +55 -0
  30. package/dist/contracts/internalReview.contract.js +9 -0
  31. package/dist/contracts/issuingEntity.contract.d.ts +52 -0
  32. package/dist/contracts/issuingEntity.contract.js +11 -0
  33. package/dist/contracts/mailIntake.contract.d.ts +61 -0
  34. package/dist/contracts/mailIntake.contract.js +15 -0
  35. package/dist/contracts/partsOffice.contract.d.ts +94 -2
  36. package/dist/contracts/partsOffice.contract.js +5 -0
  37. package/dist/contracts/procedure.contract.d.ts +14 -23
  38. package/dist/contracts/procedure.contract.js +6 -4
  39. package/dist/contracts/push.contract.d.ts +59 -0
  40. package/dist/contracts/push.contract.js +14 -0
  41. package/dist/contracts/repositoryExport.contract.d.ts +57 -0
  42. package/dist/contracts/repositoryExport.contract.js +13 -0
  43. package/dist/contracts/retention.contract.d.ts +58 -0
  44. package/dist/contracts/retention.contract.js +11 -0
  45. package/dist/contracts/richImage.contract.d.ts +33 -0
  46. package/dist/contracts/richImage.contract.js +8 -0
  47. package/dist/contracts/scan.contract.d.ts +63 -0
  48. package/dist/contracts/scan.contract.js +12 -0
  49. package/dist/contracts/signatureBatch.contract.d.ts +109 -0
  50. package/dist/contracts/signatureBatch.contract.js +12 -0
  51. package/dist/contracts/signatureCheck.contract.d.ts +14 -0
  52. package/dist/contracts/signatureCheck.contract.js +7 -0
  53. package/dist/contracts/textSnippet.contract.d.ts +51 -0
  54. package/dist/contracts/textSnippet.contract.js +11 -0
  55. package/dist/contracts/transparency.contract.d.ts +96 -0
  56. package/dist/contracts/transparency.contract.js +12 -0
  57. package/dist/contracts/visaInitials.contract.d.ts +28 -0
  58. package/dist/contracts/visaInitials.contract.js +11 -0
  59. package/dist/contracts/workFolder.contract.d.ts +114 -0
  60. package/dist/contracts/workFolder.contract.js +16 -0
  61. package/dist/entities/accessRequest/accessRequest.entity.d.ts +73 -0
  62. package/dist/entities/accessRequest/accessRequest.entity.js +2 -0
  63. package/dist/entities/accessRequest/index.d.ts +1 -0
  64. package/dist/entities/accessRequest/index.js +17 -0
  65. package/dist/entities/archivalSeries/archivalSeries.entity.d.ts +32 -0
  66. package/dist/entities/archivalSeries/archivalSeries.entity.js +2 -0
  67. package/dist/entities/archivalSeries/index.d.ts +1 -0
  68. package/dist/entities/archivalSeries/index.js +17 -0
  69. package/dist/entities/audit/audit.entity.d.ts +30 -0
  70. package/dist/entities/audit/audit.entity.js +2 -0
  71. package/dist/entities/audit/index.d.ts +1 -0
  72. package/dist/entities/audit/index.js +17 -0
  73. package/dist/entities/caseFile/caseFile.entity.d.ts +135 -0
  74. package/dist/entities/dataProtection/dataProtection.entity.d.ts +180 -0
  75. package/dist/entities/dataProtection/dataProtection.entity.js +2 -0
  76. package/dist/entities/dataProtection/index.d.ts +1 -0
  77. package/dist/entities/dataProtection/index.js +17 -0
  78. package/dist/entities/desk/desk.entity.d.ts +25 -0
  79. package/dist/entities/desk/desk.entity.js +2 -0
  80. package/dist/entities/desk/index.d.ts +1 -0
  81. package/dist/entities/desk/index.js +17 -0
  82. package/dist/entities/document/document.entity.d.ts +476 -1
  83. package/dist/entities/document/index.d.ts +2 -0
  84. package/dist/entities/document/index.js +2 -0
  85. package/dist/entities/document/richStyle.d.ts +219 -0
  86. package/dist/entities/document/richStyle.js +81 -0
  87. package/dist/entities/document/stampPlacement.d.ts +42 -0
  88. package/dist/entities/document/stampPlacement.js +16 -0
  89. package/dist/entities/documentTemplate/documentTemplate.entity.d.ts +25 -0
  90. package/dist/entities/documentTemplate/documentTemplate.entity.js +2 -0
  91. package/dist/entities/documentTemplate/index.d.ts +1 -0
  92. package/dist/entities/documentTemplate/index.js +17 -0
  93. package/dist/entities/documentType/documentType.entity.d.ts +64 -1
  94. package/dist/entities/draftingRequest/draftingRequest.entity.d.ts +78 -0
  95. package/dist/entities/draftingRequest/draftingRequest.entity.js +2 -0
  96. package/dist/entities/draftingRequest/index.d.ts +1 -0
  97. package/dist/entities/draftingRequest/index.js +17 -0
  98. package/dist/entities/holiday/holiday.entity.d.ts +32 -0
  99. package/dist/entities/holiday/holiday.entity.js +2 -0
  100. package/dist/entities/holiday/index.d.ts +1 -0
  101. package/dist/entities/holiday/index.js +17 -0
  102. package/dist/entities/index.d.ts +22 -0
  103. package/dist/entities/index.js +22 -0
  104. package/dist/entities/indicators/index.d.ts +1 -0
  105. package/dist/entities/indicators/index.js +17 -0
  106. package/dist/entities/indicators/indicators.entity.d.ts +152 -0
  107. package/dist/entities/indicators/indicators.entity.js +2 -0
  108. package/dist/entities/internalReview/index.d.ts +1 -0
  109. package/dist/entities/internalReview/index.js +17 -0
  110. package/dist/entities/internalReview/internalReview.entity.d.ts +50 -0
  111. package/dist/entities/internalReview/internalReview.entity.js +2 -0
  112. package/dist/entities/issuingEntity/index.d.ts +1 -0
  113. package/dist/entities/issuingEntity/index.js +17 -0
  114. package/dist/entities/issuingEntity/issuingEntity.entity.d.ts +20 -0
  115. package/dist/entities/issuingEntity/issuingEntity.entity.js +2 -0
  116. package/dist/entities/mailIntake/index.d.ts +1 -0
  117. package/dist/entities/mailIntake/index.js +17 -0
  118. package/dist/entities/mailIntake/mailIntake.entity.d.ts +51 -0
  119. package/dist/entities/mailIntake/mailIntake.entity.js +2 -0
  120. package/dist/entities/partsOffice/partsOffice.entity.d.ts +39 -0
  121. package/dist/entities/procedure/procedure.entity.d.ts +27 -6
  122. package/dist/entities/push/index.d.ts +1 -0
  123. package/dist/entities/push/index.js +17 -0
  124. package/dist/entities/push/push.entity.d.ts +28 -0
  125. package/dist/entities/push/push.entity.js +2 -0
  126. package/dist/entities/registerBook/registerBook.entity.d.ts +6 -0
  127. package/dist/entities/repositoryExport/index.d.ts +1 -0
  128. package/dist/entities/repositoryExport/index.js +17 -0
  129. package/dist/entities/repositoryExport/repositoryExport.entity.d.ts +124 -0
  130. package/dist/entities/repositoryExport/repositoryExport.entity.js +2 -0
  131. package/dist/entities/retention/index.d.ts +1 -0
  132. package/dist/entities/retention/index.js +17 -0
  133. package/dist/entities/retention/retention.entity.d.ts +49 -0
  134. package/dist/entities/retention/retention.entity.js +2 -0
  135. package/dist/entities/scan/index.d.ts +1 -0
  136. package/dist/entities/scan/index.js +17 -0
  137. package/dist/entities/scan/scan.entity.d.ts +29 -0
  138. package/dist/entities/scan/scan.entity.js +2 -0
  139. package/dist/entities/signatureBatch/index.d.ts +1 -0
  140. package/dist/entities/signatureBatch/index.js +17 -0
  141. package/dist/entities/signatureBatch/signatureBatch.entity.d.ts +107 -0
  142. package/dist/entities/signatureBatch/signatureBatch.entity.js +2 -0
  143. package/dist/entities/signatureCheck/index.d.ts +1 -0
  144. package/dist/entities/signatureCheck/index.js +17 -0
  145. package/dist/entities/signatureCheck/signatureCheck.entity.d.ts +60 -0
  146. package/dist/entities/signatureCheck/signatureCheck.entity.js +2 -0
  147. package/dist/entities/textSnippet/index.d.ts +1 -0
  148. package/dist/entities/textSnippet/index.js +17 -0
  149. package/dist/entities/textSnippet/textSnippet.entity.d.ts +20 -0
  150. package/dist/entities/textSnippet/textSnippet.entity.js +2 -0
  151. package/dist/entities/transparency/index.d.ts +1 -0
  152. package/dist/entities/transparency/index.js +17 -0
  153. package/dist/entities/transparency/transparency.entity.d.ts +77 -0
  154. package/dist/entities/transparency/transparency.entity.js +2 -0
  155. package/dist/entities/visaInitials/index.d.ts +1 -0
  156. package/dist/entities/visaInitials/index.js +17 -0
  157. package/dist/entities/visaInitials/visaInitials.entity.d.ts +13 -0
  158. package/dist/entities/visaInitials/visaInitials.entity.js +5 -0
  159. package/dist/entities/workFolder/index.d.ts +1 -0
  160. package/dist/entities/workFolder/index.js +17 -0
  161. package/dist/entities/workFolder/workFolder.entity.d.ts +83 -0
  162. package/dist/entities/workFolder/workFolder.entity.js +2 -0
  163. package/package.json +1 -1
  164. package/src/base/entities.ts +1223 -5
  165. package/src/contracts/accessRequest.contract.ts +81 -0
  166. package/src/contracts/archivalSeries.contract.ts +59 -0
  167. package/src/contracts/audit.contract.ts +30 -0
  168. package/src/contracts/caseFile.contract.ts +107 -2
  169. package/src/contracts/dataProtection.contract.ts +197 -0
  170. package/src/contracts/desk.contract.ts +72 -0
  171. package/src/contracts/document.contract.ts +223 -3
  172. package/src/contracts/documentTemplate.contract.ts +17 -0
  173. package/src/contracts/documentType.contract.ts +57 -4
  174. package/src/contracts/draftingRequest.contract.ts +77 -0
  175. package/src/contracts/holiday.contract.ts +25 -0
  176. package/src/contracts/index.ts +93 -1
  177. package/src/contracts/indicators.contract.ts +80 -0
  178. package/src/contracts/internalReview.contract.ts +48 -0
  179. package/src/contracts/issuingEntity.contract.ts +55 -0
  180. package/src/contracts/mailIntake.contract.ts +49 -0
  181. package/src/contracts/partsOffice.contract.ts +81 -2
  182. package/src/contracts/procedure.contract.ts +11 -27
  183. package/src/contracts/push.contract.ts +41 -0
  184. package/src/contracts/repositoryExport.contract.ts +54 -0
  185. package/src/contracts/retention.contract.ts +44 -0
  186. package/src/contracts/richImage.contract.ts +23 -0
  187. package/src/contracts/scan.contract.ts +52 -0
  188. package/src/contracts/signatureBatch.contract.ts +96 -0
  189. package/src/contracts/signatureCheck.contract.ts +11 -0
  190. package/src/contracts/textSnippet.contract.ts +53 -0
  191. package/src/contracts/transparency.contract.ts +55 -0
  192. package/src/contracts/visaInitials.contract.ts +23 -0
  193. package/src/contracts/workFolder.contract.ts +75 -0
  194. package/src/entities/accessRequest/accessRequest.entity.ts +78 -0
  195. package/src/entities/accessRequest/index.ts +1 -0
  196. package/src/entities/archivalSeries/archivalSeries.entity.ts +37 -0
  197. package/src/entities/archivalSeries/index.ts +1 -0
  198. package/src/entities/audit/audit.entity.ts +41 -0
  199. package/src/entities/audit/index.ts +1 -0
  200. package/src/entities/caseFile/caseFile.entity.ts +132 -0
  201. package/src/entities/dataProtection/dataProtection.entity.ts +191 -0
  202. package/src/entities/dataProtection/index.ts +1 -0
  203. package/src/entities/desk/desk.entity.ts +28 -0
  204. package/src/entities/desk/index.ts +1 -0
  205. package/src/entities/document/document.entity.ts +464 -1
  206. package/src/entities/document/index.ts +2 -0
  207. package/src/entities/document/richStyle.ts +200 -0
  208. package/src/entities/document/stampPlacement.ts +35 -0
  209. package/src/entities/documentTemplate/documentTemplate.entity.ts +27 -0
  210. package/src/entities/documentTemplate/index.ts +1 -0
  211. package/src/entities/documentType/documentType.entity.ts +76 -1
  212. package/src/entities/draftingRequest/draftingRequest.entity.ts +81 -0
  213. package/src/entities/draftingRequest/index.ts +1 -0
  214. package/src/entities/holiday/holiday.entity.ts +36 -0
  215. package/src/entities/holiday/index.ts +1 -0
  216. package/src/entities/index.ts +22 -0
  217. package/src/entities/indicators/index.ts +1 -0
  218. package/src/entities/indicators/indicators.entity.ts +157 -0
  219. package/src/entities/internalReview/index.ts +1 -0
  220. package/src/entities/internalReview/internalReview.entity.ts +50 -0
  221. package/src/entities/issuingEntity/index.ts +1 -0
  222. package/src/entities/issuingEntity/issuingEntity.entity.ts +24 -0
  223. package/src/entities/mailIntake/index.ts +1 -0
  224. package/src/entities/mailIntake/mailIntake.entity.ts +55 -0
  225. package/src/entities/partsOffice/partsOffice.entity.ts +35 -0
  226. package/src/entities/procedure/procedure.entity.ts +27 -6
  227. package/src/entities/push/index.ts +1 -0
  228. package/src/entities/push/push.entity.ts +31 -0
  229. package/src/entities/registerBook/registerBook.entity.ts +6 -0
  230. package/src/entities/repositoryExport/index.ts +1 -0
  231. package/src/entities/repositoryExport/repositoryExport.entity.ts +86 -0
  232. package/src/entities/retention/index.ts +1 -0
  233. package/src/entities/retention/retention.entity.ts +53 -0
  234. package/src/entities/scan/index.ts +1 -0
  235. package/src/entities/scan/scan.entity.ts +32 -0
  236. package/src/entities/signatureBatch/index.ts +1 -0
  237. package/src/entities/signatureBatch/signatureBatch.entity.ts +110 -0
  238. package/src/entities/signatureCheck/index.ts +1 -0
  239. package/src/entities/signatureCheck/signatureCheck.entity.ts +63 -0
  240. package/src/entities/textSnippet/index.ts +1 -0
  241. package/src/entities/textSnippet/textSnippet.entity.ts +24 -0
  242. package/src/entities/transparency/index.ts +1 -0
  243. package/src/entities/transparency/transparency.entity.ts +78 -0
  244. package/src/entities/visaInitials/index.ts +1 -0
  245. package/src/entities/visaInitials/visaInitials.entity.ts +12 -0
  246. package/src/entities/workFolder/index.ts +1 -0
  247. package/src/entities/workFolder/workFolder.entity.ts +84 -0
  248. package/tsconfig.json +1 -3
@@ -8,6 +8,20 @@ export const DocumentCategory = {
8
8
  Other: 'Other',
9
9
  } satisfies Record<string, DocumentCategory>;
10
10
 
11
+ export type DocumentVisaMode = 'Stamp' | 'Signature';
12
+
13
+ export const DocumentVisaMode = {
14
+ Stamp: 'Stamp',
15
+ Signature: 'Signature',
16
+ } satisfies Record<string, DocumentVisaMode>;
17
+
18
+ export type DocumentNumberingScope = 'Type' | 'Category';
19
+
20
+ export const DocumentNumberingScope = {
21
+ Type: 'Type',
22
+ Category: 'Category',
23
+ } satisfies Record<string, DocumentNumberingScope>;
24
+
11
25
  export type DocumentStatus =
12
26
  'Drafted' | 'PendingVisa' | 'PendingSignature' | 'Finished' | 'Rejected' | 'Discarded' | 'Annulled';
13
27
 
@@ -63,7 +77,20 @@ export type DocumentTrackingAction =
63
77
  | 'Reassigned'
64
78
  | 'Dispatched'
65
79
  | 'DispatchReturned'
66
- | 'Received';
80
+ | 'DispatchedByContingency'
81
+ | 'Received'
82
+ | 'EmailCopySent'
83
+ | 'EmailCopyOpened'
84
+ | 'DispositionRecorded'
85
+ | 'TransparencyRedacted'
86
+ | 'TransparencyPublished'
87
+ | 'TransparencyExcluded'
88
+ | 'TransparencyWithdrawn'
89
+ | 'DraftReviewRequested'
90
+ | 'DraftReviewApproved'
91
+ | 'DraftReviewRejected'
92
+ | 'DraftReviewCancelled'
93
+ | 'DraftCorrected';
67
94
 
68
95
  export const DocumentTrackingAction = {
69
96
  Created: 'Created',
@@ -82,16 +109,55 @@ export const DocumentTrackingAction = {
82
109
  Reassigned: 'Reassigned',
83
110
  Dispatched: 'Dispatched',
84
111
  DispatchReturned: 'DispatchReturned',
112
+ DispatchedByContingency: 'DispatchedByContingency',
85
113
  Received: 'Received',
114
+ EmailCopySent: 'EmailCopySent',
115
+ EmailCopyOpened: 'EmailCopyOpened',
116
+ DispositionRecorded: 'DispositionRecorded',
117
+ TransparencyRedacted: 'TransparencyRedacted',
118
+ TransparencyPublished: 'TransparencyPublished',
119
+ TransparencyExcluded: 'TransparencyExcluded',
120
+ TransparencyWithdrawn: 'TransparencyWithdrawn',
121
+ DraftReviewRequested: 'DraftReviewRequested',
122
+ DraftReviewApproved: 'DraftReviewApproved',
123
+ DraftReviewRejected: 'DraftReviewRejected',
124
+ DraftReviewCancelled: 'DraftReviewCancelled',
125
+ DraftCorrected: 'DraftCorrected',
86
126
  } satisfies Record<string, DocumentTrackingAction>;
87
127
 
88
- export type DocumentOrigin = 'Internal' | 'DocDigital';
128
+ export type DraftReviewStage = 'Draft' | 'Official';
129
+
130
+ export const DraftReviewStage = {
131
+ Draft: 'Draft',
132
+ Official: 'Official',
133
+ } satisfies Record<string, DraftReviewStage>;
134
+
135
+ export type DraftReviewStatus = 'Pending' | 'Approved' | 'Rejected' | 'Cancelled';
136
+
137
+ export const DraftReviewStatus = {
138
+ Pending: 'Pending',
139
+ Approved: 'Approved',
140
+ Rejected: 'Rejected',
141
+ Cancelled: 'Cancelled',
142
+ } satisfies Record<string, DraftReviewStatus>;
143
+
144
+ export type DocumentOrigin = 'Internal' | 'DocDigital' | 'Manual';
89
145
 
90
146
  export const DocumentOrigin = {
91
147
  Internal: 'Internal',
92
148
  DocDigital: 'DocDigital',
149
+ Manual: 'Manual',
93
150
  } satisfies Record<string, DocumentOrigin>;
94
151
 
152
+ export type CommunicationMeans = 'Paper' | 'Email' | 'Courier' | 'Other';
153
+
154
+ export const CommunicationMeans = {
155
+ Paper: 'Paper',
156
+ Email: 'Email',
157
+ Courier: 'Courier',
158
+ Other: 'Other',
159
+ } satisfies Record<string, CommunicationMeans>;
160
+
95
161
  export type DocumentDispatchStatus = 'Pending' | 'Dispatched' | 'Returned';
96
162
 
97
163
  export const DocumentDispatchStatus = {
@@ -183,12 +249,13 @@ export const CaseFileActuationType = {
183
249
  PowerRegistration: 'PowerRegistration',
184
250
  } satisfies Record<string, CaseFileActuationType>;
185
251
 
186
- export type CaseFileEntryKind = 'Document' | 'File' | 'CaseFile';
252
+ export type CaseFileEntryKind = 'Document' | 'File' | 'CaseFile' | 'Physical';
187
253
 
188
254
  export const CaseFileEntryKind = {
189
255
  Document: 'Document',
190
256
  File: 'File',
191
257
  CaseFile: 'CaseFile',
258
+ Physical: 'Physical',
192
259
  } satisfies Record<string, CaseFileEntryKind>;
193
260
 
194
261
  export type CaseFileActorRelation =
@@ -217,20 +284,28 @@ export type CaseFileTrackingAction =
217
284
  | 'Updated'
218
285
  | 'EntryAdded'
219
286
  | 'EntryVoided'
287
+ | 'EntryMoved'
220
288
  | 'ParticipantAdded'
221
289
  | 'ParticipantRemoved'
222
290
  | 'Closed'
223
- | 'Exported';
291
+ | 'Exported'
292
+ | 'ShareLinkCreated'
293
+ | 'ShareLinkRevoked'
294
+ | 'DispositionRecorded';
224
295
 
225
296
  export const CaseFileTrackingAction = {
226
297
  Created: 'Created',
227
298
  Updated: 'Updated',
228
299
  EntryAdded: 'EntryAdded',
229
300
  EntryVoided: 'EntryVoided',
301
+ EntryMoved: 'EntryMoved',
230
302
  ParticipantAdded: 'ParticipantAdded',
231
303
  ParticipantRemoved: 'ParticipantRemoved',
232
304
  Closed: 'Closed',
233
305
  Exported: 'Exported',
306
+ ShareLinkCreated: 'ShareLinkCreated',
307
+ ShareLinkRevoked: 'ShareLinkRevoked',
308
+ DispositionRecorded: 'DispositionRecorded',
234
309
  } satisfies Record<string, CaseFileTrackingAction>;
235
310
 
236
311
  export type CaseFileAccessAction = 'Viewed' | 'FileDownloaded' | 'Exported';
@@ -241,6 +316,348 @@ export const CaseFileAccessAction = {
241
316
  Exported: 'Exported',
242
317
  } satisfies Record<string, CaseFileAccessAction>;
243
318
 
319
+ export type ScanSessionStatus = 'Open' | 'Ready';
320
+
321
+ export const ScanSessionStatus = {
322
+ Open: 'Open',
323
+ Ready: 'Ready',
324
+ } satisfies Record<string, ScanSessionStatus>;
325
+
326
+ export type TextSnippetSection = 'Vistos' | 'Considerando' | 'Resolutive' | 'Body' | 'Closing';
327
+
328
+ export const TextSnippetSection = {
329
+ Vistos: 'Vistos',
330
+ Considerando: 'Considerando',
331
+ Resolutive: 'Resolutive',
332
+ Body: 'Body',
333
+ Closing: 'Closing',
334
+ } satisfies Record<string, TextSnippetSection>;
335
+
336
+ export type HolidaySource = 'Manual' | 'Api';
337
+
338
+ export const HolidaySource = {
339
+ Manual: 'Manual',
340
+ Api: 'Api',
341
+ } satisfies Record<string, HolidaySource>;
342
+
343
+ export type WorkFolderItemKind = 'Document' | 'File';
344
+
345
+ export const WorkFolderItemKind = {
346
+ Document: 'Document',
347
+ File: 'File',
348
+ } satisfies Record<string, WorkFolderItemKind>;
349
+
350
+ export type ServiceOutageKind = 'Unplanned' | 'Planned';
351
+
352
+ export const ServiceOutageKind = {
353
+ Unplanned: 'Unplanned',
354
+ Planned: 'Planned',
355
+ } satisfies Record<string, ServiceOutageKind>;
356
+
357
+ export type QualityMetricKey =
358
+ | 'Effectiveness'
359
+ | 'Efficiency'
360
+ | 'Availability'
361
+ | 'ResponseTime'
362
+ | 'Accessibility'
363
+ | 'FunctionalCompleteness'
364
+ | 'Interoperability';
365
+
366
+ export const QualityMetricKey = {
367
+ Effectiveness: 'Effectiveness',
368
+ Efficiency: 'Efficiency',
369
+ Availability: 'Availability',
370
+ ResponseTime: 'ResponseTime',
371
+ Accessibility: 'Accessibility',
372
+ FunctionalCompleteness: 'FunctionalCompleteness',
373
+ Interoperability: 'Interoperability',
374
+ } satisfies Record<string, QualityMetricKey>;
375
+
376
+ export type DocumentAccessAction = 'Viewed' | 'FileDownloaded' | 'TrailExported';
377
+
378
+ export const DocumentAccessAction = {
379
+ Viewed: 'Viewed',
380
+ FileDownloaded: 'FileDownloaded',
381
+ TrailExported: 'TrailExported',
382
+ } satisfies Record<string, DocumentAccessAction>;
383
+
384
+ export type AuditEntity =
385
+ | 'DocumentType'
386
+ | 'IssuingEntity'
387
+ | 'ArchivalSeries'
388
+ | 'TextSnippet'
389
+ | 'Holiday'
390
+ | 'Procedure'
391
+ | 'QualityMetric'
392
+ | 'ServiceOutage'
393
+ | 'Repository'
394
+ | 'DataTreatment'
395
+ | 'DocumentTemplate'
396
+ | 'DirectorateReviewer'
397
+ | 'CategoryNumbering';
398
+
399
+ export const AuditEntity = {
400
+ DocumentType: 'DocumentType',
401
+ IssuingEntity: 'IssuingEntity',
402
+ ArchivalSeries: 'ArchivalSeries',
403
+ TextSnippet: 'TextSnippet',
404
+ Holiday: 'Holiday',
405
+ Procedure: 'Procedure',
406
+ QualityMetric: 'QualityMetric',
407
+ ServiceOutage: 'ServiceOutage',
408
+ Repository: 'Repository',
409
+ DataTreatment: 'DataTreatment',
410
+ DocumentTemplate: 'DocumentTemplate',
411
+ DirectorateReviewer: 'DirectorateReviewer',
412
+ CategoryNumbering: 'CategoryNumbering',
413
+ } satisfies Record<string, AuditEntity>;
414
+
415
+ export type AuditAction = 'Created' | 'Updated' | 'Enabled' | 'Disabled' | 'Removed' | 'Exported';
416
+
417
+ export const AuditAction = {
418
+ Created: 'Created',
419
+ Updated: 'Updated',
420
+ Enabled: 'Enabled',
421
+ Disabled: 'Disabled',
422
+ Removed: 'Removed',
423
+ Exported: 'Exported',
424
+ } satisfies Record<string, AuditAction>;
425
+
426
+ export type FinalDisposition = 'Permanent' | 'Eliminate' | 'Select';
427
+
428
+ export const FinalDisposition = {
429
+ Permanent: 'Permanent',
430
+ Eliminate: 'Eliminate',
431
+ Select: 'Select',
432
+ } satisfies Record<string, FinalDisposition>;
433
+
434
+ export type DispositionKind = 'Transfer' | 'Elimination';
435
+
436
+ export const DispositionKind = {
437
+ Transfer: 'Transfer',
438
+ Elimination: 'Elimination',
439
+ } satisfies Record<string, DispositionKind>;
440
+
441
+ export type AccessRequestChannel = 'Portal' | 'Email' | 'InPerson' | 'Letter';
442
+
443
+ export const AccessRequestChannel = {
444
+ Portal: 'Portal',
445
+ Email: 'Email',
446
+ InPerson: 'InPerson',
447
+ Letter: 'Letter',
448
+ } satisfies Record<string, AccessRequestChannel>;
449
+
450
+ export type AccessRequestStatus = 'Received' | 'InCorrection' | 'InProgress' | 'Resolved';
451
+
452
+ export const AccessRequestStatus = {
453
+ Received: 'Received',
454
+ InCorrection: 'InCorrection',
455
+ InProgress: 'InProgress',
456
+ Resolved: 'Resolved',
457
+ } satisfies Record<string, AccessRequestStatus>;
458
+
459
+ export type AccessRequestResolution =
460
+ 'Delivered' | 'PartiallyDelivered' | 'Denied' | 'Derived' | 'NonExistent' | 'Withdrawn';
461
+
462
+ export const AccessRequestResolution = {
463
+ Delivered: 'Delivered',
464
+ PartiallyDelivered: 'PartiallyDelivered',
465
+ Denied: 'Denied',
466
+ Derived: 'Derived',
467
+ NonExistent: 'NonExistent',
468
+ Withdrawn: 'Withdrawn',
469
+ } satisfies Record<string, AccessRequestResolution>;
470
+
471
+ export type AccessRequestEventAction =
472
+ | 'Received'
473
+ | 'Updated'
474
+ | 'CorrectionRequested'
475
+ | 'Corrected'
476
+ | 'Assigned'
477
+ | 'ThirdPartyNotified'
478
+ | 'OppositionRegistered'
479
+ | 'Extended'
480
+ | 'Resolved'
481
+ | 'AppealRegistered';
482
+
483
+ export const AccessRequestEventAction = {
484
+ Received: 'Received',
485
+ Updated: 'Updated',
486
+ CorrectionRequested: 'CorrectionRequested',
487
+ Corrected: 'Corrected',
488
+ Assigned: 'Assigned',
489
+ ThirdPartyNotified: 'ThirdPartyNotified',
490
+ OppositionRegistered: 'OppositionRegistered',
491
+ Extended: 'Extended',
492
+ Resolved: 'Resolved',
493
+ AppealRegistered: 'AppealRegistered',
494
+ } satisfies Record<string, AccessRequestEventAction>;
495
+
496
+ export type TransparencyStatus = 'Published' | 'Excluded';
497
+
498
+ export const TransparencyStatus = {
499
+ Published: 'Published',
500
+ Excluded: 'Excluded',
501
+ } satisfies Record<string, TransparencyStatus>;
502
+
503
+ export type DataLegalBasis = 'LegalFunction' | 'LegalObligation' | 'Consent' | 'Contract' | 'VitalInterest';
504
+
505
+ export const DataLegalBasis = {
506
+ LegalFunction: 'LegalFunction',
507
+ LegalObligation: 'LegalObligation',
508
+ Consent: 'Consent',
509
+ Contract: 'Contract',
510
+ VitalInterest: 'VitalInterest',
511
+ } satisfies Record<string, DataLegalBasis>;
512
+
513
+ export type DataRight = 'Access' | 'Rectification' | 'Suppression' | 'Opposition' | 'Portability';
514
+
515
+ export const DataRight = {
516
+ Access: 'Access',
517
+ Rectification: 'Rectification',
518
+ Suppression: 'Suppression',
519
+ Opposition: 'Opposition',
520
+ Portability: 'Portability',
521
+ } satisfies Record<string, DataRight>;
522
+
523
+ export type DataRightsChannel = 'Email' | 'WebForm' | 'InPerson' | 'Letter';
524
+
525
+ export const DataRightsChannel = {
526
+ Email: 'Email',
527
+ WebForm: 'WebForm',
528
+ InPerson: 'InPerson',
529
+ Letter: 'Letter',
530
+ } satisfies Record<string, DataRightsChannel>;
531
+
532
+ export type DataRightsRequestStatus = 'Received' | 'InProgress' | 'Resolved';
533
+
534
+ export const DataRightsRequestStatus = {
535
+ Received: 'Received',
536
+ InProgress: 'InProgress',
537
+ Resolved: 'Resolved',
538
+ } satisfies Record<string, DataRightsRequestStatus>;
539
+
540
+ export type DataRightsResolution = 'Granted' | 'PartiallyGranted' | 'Denied' | 'Withdrawn';
541
+
542
+ export const DataRightsResolution = {
543
+ Granted: 'Granted',
544
+ PartiallyGranted: 'PartiallyGranted',
545
+ Denied: 'Denied',
546
+ Withdrawn: 'Withdrawn',
547
+ } satisfies Record<string, DataRightsResolution>;
548
+
549
+ export type DataRightsEventAction =
550
+ | 'Received'
551
+ | 'Updated'
552
+ | 'Acknowledged'
553
+ | 'IdentityVerified'
554
+ | 'Assigned'
555
+ | 'BlockingResolved'
556
+ | 'BlockingLifted'
557
+ | 'Extended'
558
+ | 'Resolved'
559
+ | 'ResponseSent'
560
+ | 'ComplaintRegistered';
561
+
562
+ export const DataRightsEventAction = {
563
+ Received: 'Received',
564
+ Updated: 'Updated',
565
+ Acknowledged: 'Acknowledged',
566
+ IdentityVerified: 'IdentityVerified',
567
+ Assigned: 'Assigned',
568
+ BlockingResolved: 'BlockingResolved',
569
+ BlockingLifted: 'BlockingLifted',
570
+ Extended: 'Extended',
571
+ Resolved: 'Resolved',
572
+ ResponseSent: 'ResponseSent',
573
+ ComplaintRegistered: 'ComplaintRegistered',
574
+ } satisfies Record<string, DataRightsEventAction>;
575
+
576
+ export type DataBreachKind = 'Destruction' | 'Leak' | 'Loss' | 'Alteration' | 'UnauthorizedAccess';
577
+
578
+ export const DataBreachKind = {
579
+ Destruction: 'Destruction',
580
+ Leak: 'Leak',
581
+ Loss: 'Loss',
582
+ Alteration: 'Alteration',
583
+ UnauthorizedAccess: 'UnauthorizedAccess',
584
+ } satisfies Record<string, DataBreachKind>;
585
+
586
+ export type DataBreachStatus = 'Open' | 'Closed';
587
+
588
+ export const DataBreachStatus = {
589
+ Open: 'Open',
590
+ Closed: 'Closed',
591
+ } satisfies Record<string, DataBreachStatus>;
592
+
593
+ export type DataBreachEventAction = 'Registered' | 'Updated' | 'AgencyReported' | 'HoldersNotified' | 'Closed';
594
+
595
+ export const DataBreachEventAction = {
596
+ Registered: 'Registered',
597
+ Updated: 'Updated',
598
+ AgencyReported: 'AgencyReported',
599
+ HoldersNotified: 'HoldersNotified',
600
+ Closed: 'Closed',
601
+ } satisfies Record<string, DataBreachEventAction>;
602
+
603
+ export type DataBreachNoticeMeans = 'Individual' | 'PublicNotice';
604
+
605
+ export const DataBreachNoticeMeans = {
606
+ Individual: 'Individual',
607
+ PublicNotice: 'PublicNotice',
608
+ } satisfies Record<string, DataBreachNoticeMeans>;
609
+
610
+ export type DeskFileSource = 'Upload' | 'Scan' | 'Email';
611
+
612
+ export const DeskFileSource = {
613
+ Upload: 'Upload',
614
+ Scan: 'Scan',
615
+ Email: 'Email',
616
+ } satisfies Record<string, DeskFileSource>;
617
+
618
+ export type DeskFileTarget = 'Document' | 'CaseFile';
619
+
620
+ export const DeskFileTarget = {
621
+ Document: 'Document',
622
+ CaseFile: 'CaseFile',
623
+ } satisfies Record<string, DeskFileTarget>;
624
+
625
+ export type MailIntakeStatus = 'Pending' | 'Accepted' | 'Discarded';
626
+
627
+ export const MailIntakeStatus = {
628
+ Pending: 'Pending',
629
+ Accepted: 'Accepted',
630
+ Discarded: 'Discarded',
631
+ } satisfies Record<string, MailIntakeStatus>;
632
+
633
+ export type MailAuthentication = 'Pass' | 'Fail' | 'Unknown';
634
+
635
+ export const MailAuthentication = {
636
+ Pass: 'Pass',
637
+ Fail: 'Fail',
638
+ Unknown: 'Unknown',
639
+ } satisfies Record<string, MailAuthentication>;
640
+
641
+ export type DraftingRequestStatus = 'Pending' | 'Taken' | 'Declined' | 'Cancelled';
642
+
643
+ export const DraftingRequestStatus = {
644
+ Pending: 'Pending',
645
+ Taken: 'Taken',
646
+ Declined: 'Declined',
647
+ Cancelled: 'Cancelled',
648
+ } satisfies Record<string, DraftingRequestStatus>;
649
+
650
+ export type DraftingRequestEventAction = 'Created' | 'Taken' | 'Released' | 'Declined' | 'Cancelled' | 'DocumentLinked';
651
+
652
+ export const DraftingRequestEventAction = {
653
+ Created: 'Created',
654
+ Taken: 'Taken',
655
+ Released: 'Released',
656
+ Declined: 'Declined',
657
+ Cancelled: 'Cancelled',
658
+ DocumentLinked: 'DocumentLinked',
659
+ } satisfies Record<string, DraftingRequestEventAction>;
660
+
244
661
  export interface DocumentTypeEntity {
245
662
  id: string;
246
663
  name: string;
@@ -250,11 +667,32 @@ export interface DocumentTypeEntity {
250
667
  nextCorrelative: number;
251
668
  correlativeYear?: number | null;
252
669
  resetsYearly: boolean;
670
+ numbered: boolean;
671
+ numberingScope: DocumentNumberingScope;
672
+ allowsExternalNumber: boolean;
673
+ usesPartsOffice: boolean;
674
+ visaMode: DocumentVisaMode;
675
+ activeTransparency: boolean;
676
+ transparencySection?: string | null;
253
677
  directorateCodeReference?: number | null;
678
+ draftReviewDirectorateCode?: number | null;
679
+ draftReviewDirectorateName?: string | null;
680
+ archivalSeries?: ArchivalSeriesEntity | null;
681
+ archivalSeriesId?: string | null;
682
+ issuingEntity?: IssuingEntityEntity | null;
683
+ issuingEntityId?: string | null;
684
+ sharesNumberingWith?: DocumentTypeEntity | null;
685
+ sharesNumberingWithId?: string | null;
686
+ numberingMembers?: DocumentTypeEntity[];
254
687
  enabled: boolean;
688
+ version: number;
689
+ versions?: DocumentTypeVersionEntity[];
255
690
  documents?: DocumentEntity[];
691
+ draftingRequests?: DraftingRequestEntity[];
256
692
  annulledNumbers?: DocumentAnnulledNumberEntity[];
257
693
  flowSteps?: DocumentTypeFlowStepEntity[];
694
+ signatureBatches?: SignatureBatchEntity[];
695
+ template?: DocumentTemplateEntity | null;
258
696
  deleted: boolean;
259
697
  createdAt: string;
260
698
  updatedAt: string;
@@ -263,41 +701,60 @@ export interface DocumentTypeEntity {
263
701
  export interface DocumentEntity {
264
702
  id: string;
265
703
  subject: string;
704
+ description?: string | null;
266
705
  keywords: string[];
267
706
  accessLevel: DocumentAccessLevel;
268
707
  hasSensitiveData: boolean;
708
+ restrictionEndsAt?: string | null;
269
709
  status: DocumentStatus;
270
710
  correlative?: number | null;
271
711
  correlativeYear?: number | null;
272
712
  numberedAt?: string | null;
713
+ externalCorrelative?: number | null;
714
+ externalCorrelativeYear?: number | null;
273
715
  verificationCode?: string | null;
274
716
  signatureSheet: boolean;
275
717
  annulledAt?: string | null;
276
718
  annulmentReason?: string | null;
277
719
  responseDueAt?: string | null;
720
+ responseDueBusinessDays?: number | null;
721
+ procedure?: ProcedureEntity | null;
722
+ procedureId?: string | null;
278
723
  origin: DocumentOrigin;
279
724
  intakeNumber?: number | null;
280
725
  intakeYear?: number | null;
281
726
  externalFolio?: string | null;
282
727
  externalSender?: string | null;
283
728
  externalDate?: string | null;
729
+ intakeMeans?: CommunicationMeans | null;
730
+ composition?: JsonValue | null;
284
731
  contentText?: string | null;
285
732
  textExtractedAt?: string | null;
733
+ batch?: SignatureBatchEntity | null;
734
+ batchId?: string | null;
286
735
  replyTo?: DocumentEntity | null;
287
736
  replyToDocumentId?: string | null;
288
737
  replies?: DocumentEntity[];
289
738
  directorateCodeReference?: number | null;
290
739
  departmentId?: string | null;
740
+ issuingUnitName?: string | null;
741
+ issuingDirectorateName?: string | null;
742
+ stampPlacements?: JsonValue | null;
743
+ selfValidated: boolean;
744
+ selfValidationNote?: string | null;
291
745
  createdByEmployeeId: string;
292
746
  createdByFullName: string;
293
747
  originalFileId: string;
294
748
  originalFileName: string;
295
749
  currentFileId?: string | null;
296
750
  currentFileUrl?: string | null;
751
+ fileFormat?: string | null;
297
752
  submittedAt?: string | null;
298
753
  finishedAt?: string | null;
299
754
  documentType?: DocumentTypeEntity;
300
755
  documentTypeId: string;
756
+ documentTypeVersion?: DocumentTypeVersionEntity | null;
757
+ documentTypeVersionId?: string | null;
301
758
  participants?: DocumentParticipantEntity[];
302
759
  attachments?: DocumentAttachmentEntity[];
303
760
  trackings?: DocumentTrackingEntity[];
@@ -305,7 +762,27 @@ export interface DocumentEntity {
305
762
  recipients?: DocumentRecipientEntity[];
306
763
  deliveries?: DocumentDeliveryEntity[];
307
764
  caseFileEntries?: CaseFileEntryEntity[];
765
+ workFolderItems?: WorkFolderItemEntity[];
308
766
  externalRecipients?: DocumentExternalRecipientEntity[];
767
+ emailCopies?: DocumentEmailCopyEntity[];
768
+ accesses?: DocumentAccessEntity[];
769
+ disposition?: DispositionRecordEntity | null;
770
+ dispositionId?: string | null;
771
+ transparencyStatus?: TransparencyStatus | null;
772
+ transparencyUrl?: string | null;
773
+ transparencyNote?: string | null;
774
+ transparencyAt?: string | null;
775
+ transparencyByFullName?: string | null;
776
+ redactedFileId?: string | null;
777
+ redactedFileName?: string | null;
778
+ accessRequestResponses?: AccessRequestEntity[];
779
+ dataRightsResponses?: DataRightsRequestEntity[];
780
+ versions?: DocumentVersionEntity[];
781
+ comments?: DocumentCommentEntity[];
782
+ draftReviews?: DocumentDraftReviewEntity[];
783
+ draftingRequest?: DraftingRequestEntity | null;
784
+ internalNotes?: DocumentInternalNoteEntity[];
785
+ accessRequestDeliveries?: AccessRequestDocumentEntity[];
309
786
  dispatch?: DocumentDispatchEntity | null;
310
787
  docDigitalInbound?: DocDigitalInboundEntity | null;
311
788
  deleted: boolean;
@@ -313,16 +790,31 @@ export interface DocumentEntity {
313
790
  updatedAt: string;
314
791
  }
315
792
 
793
+ export interface SignatureBatchEntity {
794
+ id: string;
795
+ name: string;
796
+ createdByEmployeeId: string;
797
+ createdByFullName: string;
798
+ documentType?: DocumentTypeEntity;
799
+ documentTypeId: string;
800
+ documents?: DocumentEntity[];
801
+ deleted: boolean;
802
+ createdAt: string;
803
+ updatedAt: string;
804
+ }
805
+
316
806
  export interface DocumentParticipantEntity {
317
807
  id: string;
318
808
  role: DocumentParticipantRole;
319
809
  order: number;
810
+ stage: number;
320
811
  status: DocumentParticipantStatus;
321
812
  employeeId: string;
322
813
  fullName: string;
323
814
  position?: string | null;
324
815
  observation?: string | null;
325
816
  resolvedAt?: string | null;
817
+ initials?: string | null;
326
818
  document?: DocumentEntity;
327
819
  documentId: string;
328
820
  createdAt: string;
@@ -346,6 +838,7 @@ export interface DocumentTrackingEntity {
346
838
  id: string;
347
839
  action: DocumentTrackingAction;
348
840
  observation?: string | null;
841
+ sha256?: string | null;
349
842
  employeeId?: string | null;
350
843
  employeeFullName?: string | null;
351
844
  document?: DocumentEntity;
@@ -396,11 +889,49 @@ export interface DocumentDeliveryEntity {
396
889
  readAt?: string | null;
397
890
  closedAt?: string | null;
398
891
  closingNote?: string | null;
892
+ dueSoonRemindedAt?: string | null;
893
+ overdueRemindedAt?: string | null;
399
894
  document?: DocumentEntity;
400
895
  documentId: string;
401
896
  createdAt: string;
402
897
  }
403
898
 
899
+ export interface CategoryNumberingEntity {
900
+ category: DocumentCategory;
901
+ nextCorrelative: number;
902
+ correlativeYear?: number | null;
903
+ resetsYearly: boolean;
904
+ updatedAt: string;
905
+ }
906
+
907
+ export interface DocumentTypeVersionEntity {
908
+ id: string;
909
+ version: number;
910
+ name: string;
911
+ abbreviation?: string | null;
912
+ category: DocumentCategory;
913
+ description?: string | null;
914
+ numbered: boolean;
915
+ numberingScope: DocumentNumberingScope;
916
+ allowsExternalNumber: boolean;
917
+ usesPartsOffice: boolean;
918
+ visaMode: DocumentVisaMode;
919
+ activeTransparency: boolean;
920
+ transparencySection?: string | null;
921
+ directorateCodeReference?: number | null;
922
+ draftReviewDirectorateCode?: number | null;
923
+ draftReviewDirectorateName?: string | null;
924
+ issuingEntityId?: string | null;
925
+ sharesNumberingWithId?: string | null;
926
+ templateVersion?: number | null;
927
+ flowSteps: JsonValue;
928
+ createdByFullName?: string | null;
929
+ createdAt: string;
930
+ documentType?: DocumentTypeEntity;
931
+ documentTypeId: string;
932
+ documents?: DocumentEntity[];
933
+ }
934
+
404
935
  export interface DocumentTypeFlowStepEntity {
405
936
  id: string;
406
937
  role: DocumentParticipantRole;
@@ -410,6 +941,7 @@ export interface DocumentTypeFlowStepEntity {
410
941
  directorateCodeReference?: number | null;
411
942
  name: string;
412
943
  position?: string | null;
944
+ withPrevious: boolean;
413
945
  documentType?: DocumentTypeEntity;
414
946
  documentTypeId: string;
415
947
  createdAt: string;
@@ -421,8 +953,13 @@ export interface ProcedureEntity {
421
953
  cpatId?: string | null;
422
954
  cpatCode?: string | null;
423
955
  description?: string | null;
956
+ kind?: string | null;
957
+ responsibleArea?: string | null;
958
+ cpatStatus?: string | null;
959
+ fromCpat: boolean;
424
960
  enabled: boolean;
425
961
  caseFiles?: CaseFileEntity[];
962
+ documents?: DocumentEntity[];
426
963
  deleted: boolean;
427
964
  createdAt: string;
428
965
  updatedAt: string;
@@ -444,6 +981,9 @@ export interface CaseFileEntity {
444
981
  status: CaseFileStatus;
445
982
  accessLevel: DocumentAccessLevel;
446
983
  hasSensitiveData: boolean;
984
+ restrictionEndsAt?: string | null;
985
+ archivalSeries?: ArchivalSeriesEntity | null;
986
+ archivalSeriesId?: string | null;
447
987
  incorporationMechanism: CaseFileIncorporationMechanism;
448
988
  schemaVersion: string;
449
989
  procedure?: ProcedureEntity;
@@ -452,6 +992,8 @@ export interface CaseFileEntity {
452
992
  responsibleFullName: string;
453
993
  responsiblePosition?: string | null;
454
994
  closedAt?: string | null;
995
+ disposition?: DispositionRecordEntity | null;
996
+ dispositionId?: string | null;
455
997
  closedByEmployeeId?: string | null;
456
998
  closedByFullName?: string | null;
457
999
  closingNote?: string | null;
@@ -462,8 +1004,11 @@ export interface CaseFileEntity {
462
1004
  trackings?: CaseFileTrackingEntity[];
463
1005
  metadataChanges?: CaseFileMetadataChangeEntity[];
464
1006
  accesses?: CaseFileAccessEntity[];
1007
+ shareLinks?: CaseFileShareLinkEntity[];
1008
+ integratedPdf?: JsonValue | null;
465
1009
  createdAt: string;
466
1010
  updatedAt: string;
1011
+ workFolder?: WorkFolderEntity | null;
467
1012
  }
468
1013
 
469
1014
  export interface CaseFileParticipantEntity {
@@ -495,6 +1040,7 @@ export interface CaseFileEntryEntity {
495
1040
  kind: CaseFileEntryKind;
496
1041
  actuationType: CaseFileActuationType;
497
1042
  title: string;
1043
+ folder?: string | null;
498
1044
  document?: DocumentEntity | null;
499
1045
  documentId?: string | null;
500
1046
  fileId?: string | null;
@@ -505,11 +1051,16 @@ export interface CaseFileEntryEntity {
505
1051
  keywords: string[];
506
1052
  accessLevel?: DocumentAccessLevel | null;
507
1053
  hasSensitiveData?: boolean | null;
1054
+ physicalLocation?: string | null;
1055
+ physicalReason?: string | null;
1056
+ pageCount?: number | null;
508
1057
  linkedCaseFile?: CaseFileEntity | null;
509
1058
  linkedCaseFileId?: string | null;
510
1059
  sha256?: string | null;
511
1060
  size?: number | null;
512
1061
  hasAdvancedSignature: boolean;
1062
+ fileFormat?: string | null;
1063
+ signatureCheck?: JsonValue | null;
513
1064
  incorporatedByEmployeeId: string;
514
1065
  incorporatedByFullName: string;
515
1066
  voidedAt?: string | null;
@@ -548,10 +1099,58 @@ export interface CaseFileAccessEntity {
548
1099
  id: string;
549
1100
  action: CaseFileAccessAction;
550
1101
  entryId?: string | null;
551
- employeeId: string;
1102
+ employeeId?: string | null;
552
1103
  employeeFullName: string;
1104
+ shareLink?: CaseFileShareLinkEntity | null;
1105
+ shareLinkId?: string | null;
1106
+ caseFile?: CaseFileEntity;
1107
+ caseFileId: string;
1108
+ createdAt: string;
1109
+ }
1110
+
1111
+ export interface CaseFileShareLinkEntity {
1112
+ id: string;
1113
+ tokenHash: string;
1114
+ recipient: string;
1115
+ recipientEmail?: string | null;
1116
+ purpose?: string | null;
1117
+ allowExport: boolean;
1118
+ expiresAt: string;
1119
+ createdByEmployeeId: string;
1120
+ createdByFullName: string;
1121
+ revokedAt?: string | null;
1122
+ revokedByEmployeeId?: string | null;
1123
+ revokedByFullName?: string | null;
553
1124
  caseFile?: CaseFileEntity;
554
1125
  caseFileId: string;
1126
+ accesses?: CaseFileAccessEntity[];
1127
+ createdAt: string;
1128
+ }
1129
+
1130
+ export interface DocumentEmailCopyEntity {
1131
+ id: string;
1132
+ name: string;
1133
+ email: string;
1134
+ tokenHash?: string | null;
1135
+ expiresAt?: string | null;
1136
+ issuedAt?: string | null;
1137
+ openedAt?: string | null;
1138
+ downloadCount: number;
1139
+ document?: DocumentEntity;
1140
+ documentId: string;
1141
+ createdAt: string;
1142
+ }
1143
+
1144
+ export interface ScanSessionEntity {
1145
+ id: string;
1146
+ tokenHash: string;
1147
+ status: ScanSessionStatus;
1148
+ employeeId: string;
1149
+ pages: JsonValue;
1150
+ fileId?: string | null;
1151
+ fileName?: string | null;
1152
+ expiresAt: string;
1153
+ finishedAt?: string | null;
555
1154
  createdAt: string;
556
1155
  }
557
1156
 
@@ -582,6 +1181,11 @@ export interface DocumentDispatchEntity {
582
1181
  returnedByEmployeeId?: string | null;
583
1182
  returnedByFullName?: string | null;
584
1183
  returnReason?: string | null;
1184
+ contingencyMeans?: CommunicationMeans | null;
1185
+ contingencySentTo?: string | null;
1186
+ contingencyReason?: string | null;
1187
+ contingencyReceiptFileId?: string | null;
1188
+ contingencyReceiptName?: string | null;
585
1189
  document?: DocumentEntity;
586
1190
  documentId: string;
587
1191
  createdAt: string;
@@ -603,9 +1207,12 @@ export interface DocDigitalInboundEntity {
603
1207
  senderEntityName?: string | null;
604
1208
  senderName?: string | null;
605
1209
  senderPosition?: string | null;
1210
+ recipientEntityId?: number | null;
1211
+ recipientEntityName?: string | null;
606
1212
  fileId?: string | null;
607
1213
  fileName?: string | null;
608
1214
  attachments: JsonValue;
1215
+ signatureCheck?: JsonValue | null;
609
1216
  registeredAt?: string | null;
610
1217
  registeredByEmployeeId?: string | null;
611
1218
  registeredByFullName?: string | null;
@@ -621,9 +1228,620 @@ export interface DocDigitalInboundEntity {
621
1228
  updatedAt: string;
622
1229
  }
623
1230
 
1231
+ export interface HolidayEntity {
1232
+ id: string;
1233
+ date: string;
1234
+ name: string;
1235
+ source: HolidaySource;
1236
+ kind?: string | null;
1237
+ excluded: boolean;
1238
+ createdAt: string;
1239
+ updatedAt: string;
1240
+ }
1241
+
1242
+ export interface ProcedureSyncEntity {
1243
+ institutionCode: string;
1244
+ syncedAt: string;
1245
+ total: number;
1246
+ resourceName: string;
1247
+ }
1248
+
1249
+ export interface HolidaySyncEntity {
1250
+ year: number;
1251
+ syncedAt: string;
1252
+ total: number;
1253
+ }
1254
+
1255
+ export interface TextSnippetEntity {
1256
+ id: string;
1257
+ title: string;
1258
+ text: string;
1259
+ section: TextSnippetSection;
1260
+ keywords: string[];
1261
+ enabled: boolean;
1262
+ deleted: boolean;
1263
+ createdAt: string;
1264
+ updatedAt: string;
1265
+ }
1266
+
1267
+ export interface DocumentTemplateEntity {
1268
+ id: string;
1269
+ name: string;
1270
+ description?: string | null;
1271
+ documentTypeIds: string[];
1272
+ documentType?: DocumentTypeEntity | null;
1273
+ documentTypeId?: string | null;
1274
+ content: JsonValue;
1275
+ version: number;
1276
+ enabled: boolean;
1277
+ updatedByFullName?: string | null;
1278
+ versions?: DocumentTemplateVersionEntity[];
1279
+ deleted: boolean;
1280
+ createdAt: string;
1281
+ updatedAt: string;
1282
+ }
1283
+
1284
+ export interface DocumentDraftReviewEntity {
1285
+ id: string;
1286
+ documentId: string;
1287
+ document?: DocumentEntity;
1288
+ round: number;
1289
+ stage: DraftReviewStage;
1290
+ versionNumber: number;
1291
+ directorateCodeReference: number;
1292
+ directorateName: string;
1293
+ reviewerEmployeeId: string;
1294
+ reviewerFullName: string;
1295
+ requestedByEmployeeId: string;
1296
+ requestedByFullName: string;
1297
+ requestedAt: string;
1298
+ status: DraftReviewStatus;
1299
+ observation?: string | null;
1300
+ resolvedAt?: string | null;
1301
+ }
1302
+
1303
+ export interface DocumentTemplateVersionEntity {
1304
+ id: string;
1305
+ templateId: string;
1306
+ template?: DocumentTemplateEntity;
1307
+ version: number;
1308
+ content: JsonValue;
1309
+ createdByFullName?: string | null;
1310
+ createdAt: string;
1311
+ }
1312
+
1313
+ export interface ArchivalSeriesEntity {
1314
+ id: string;
1315
+ code: string;
1316
+ name: string;
1317
+ section?: string | null;
1318
+ description?: string | null;
1319
+ managementYears?: number | null;
1320
+ centralYears?: number | null;
1321
+ finalDisposition?: FinalDisposition | null;
1322
+ retentionNote?: string | null;
1323
+ enabled: boolean;
1324
+ documentTypes?: DocumentTypeEntity[];
1325
+ caseFiles?: CaseFileEntity[];
1326
+ dispositions?: DispositionRecordEntity[];
1327
+ deleted: boolean;
1328
+ createdAt: string;
1329
+ updatedAt: string;
1330
+ }
1331
+
1332
+ export interface IssuingEntityEntity {
1333
+ id: string;
1334
+ name: string;
1335
+ shortName?: string | null;
1336
+ directorateCodeReferences: number[];
1337
+ docDigitalEntityId?: number | null;
1338
+ enabled: boolean;
1339
+ documentTypes?: DocumentTypeEntity[];
1340
+ deleted: boolean;
1341
+ createdAt: string;
1342
+ updatedAt: string;
1343
+ }
1344
+
624
1345
  export interface IntakeSequenceEntity {
625
1346
  year: number;
626
1347
  next: number;
627
1348
  }
628
1349
 
1350
+ export interface WorkFolderEntity {
1351
+ id: string;
1352
+ name: string;
1353
+ description?: string | null;
1354
+ ownerEmployeeId: string;
1355
+ ownerFullName: string;
1356
+ caseFile?: CaseFileEntity | null;
1357
+ caseFileId?: string | null;
1358
+ participants?: WorkFolderParticipantEntity[];
1359
+ items?: WorkFolderItemEntity[];
1360
+ deleted: boolean;
1361
+ createdAt: string;
1362
+ updatedAt: string;
1363
+ }
1364
+
1365
+ export interface WorkFolderParticipantEntity {
1366
+ id: string;
1367
+ employeeId: string;
1368
+ fullName: string;
1369
+ folder?: WorkFolderEntity;
1370
+ folderId: string;
1371
+ createdAt: string;
1372
+ }
1373
+
1374
+ export interface WorkFolderItemEntity {
1375
+ id: string;
1376
+ kind: WorkFolderItemKind;
1377
+ title: string;
1378
+ document?: DocumentEntity | null;
1379
+ documentId?: string | null;
1380
+ fileId?: string | null;
1381
+ fileName?: string | null;
1382
+ addedByEmployeeId: string;
1383
+ addedByFullName: string;
1384
+ folder?: WorkFolderEntity;
1385
+ folderId: string;
1386
+ createdAt: string;
1387
+ }
1388
+
1389
+ export interface ServiceOutageEntity {
1390
+ id: string;
1391
+ kind: ServiceOutageKind;
1392
+ startedAt: string;
1393
+ endedAt?: string | null;
1394
+ cause: string;
1395
+ affectedServices?: string | null;
1396
+ createdByEmployeeId: string;
1397
+ createdByFullName: string;
1398
+ updatedByFullName?: string | null;
1399
+ deleted: boolean;
1400
+ createdAt: string;
1401
+ updatedAt: string;
1402
+ }
1403
+
1404
+ export interface QualityMetricSettingEntity {
1405
+ key: QualityMetricKey;
1406
+ threshold: number;
1407
+ declaredValue?: number | null;
1408
+ declaredNote?: string | null;
1409
+ declaredAt?: string | null;
1410
+ declaredByFullName?: string | null;
1411
+ updatedAt: string;
1412
+ }
1413
+
1414
+ export interface ServiceTimingEntity {
1415
+ hour: string;
1416
+ count: number;
1417
+ errorCount: number;
1418
+ totalMs: number;
1419
+ maxMs: number;
1420
+ under100: number;
1421
+ under250: number;
1422
+ under500: number;
1423
+ under1000: number;
1424
+ under2000: number;
1425
+ under5000: number;
1426
+ over5000: number;
1427
+ }
1428
+
1429
+ export interface DocumentAccessEntity {
1430
+ id: string;
1431
+ action: DocumentAccessAction;
1432
+ employeeId?: string | null;
1433
+ employeeFullName: string;
1434
+ document?: DocumentEntity;
1435
+ documentId: string;
1436
+ createdAt: string;
1437
+ }
1438
+
1439
+ export interface AuditLogEntity {
1440
+ id: string;
1441
+ entity: AuditEntity;
1442
+ action: AuditAction;
1443
+ entityId?: string | null;
1444
+ name: string;
1445
+ details?: JsonValue | null;
1446
+ employeeId?: string | null;
1447
+ employeeFullName: string;
1448
+ createdAt: string;
1449
+ }
1450
+
1451
+ export interface DispositionRecordEntity {
1452
+ id: string;
1453
+ kind: DispositionKind;
1454
+ number: number;
1455
+ year: number;
1456
+ observation?: string | null;
1457
+ series?: ArchivalSeriesEntity;
1458
+ seriesId: string;
1459
+ documents?: DocumentEntity[];
1460
+ caseFiles?: CaseFileEntity[];
1461
+ createdByEmployeeId: string;
1462
+ createdByFullName: string;
1463
+ createdAt: string;
1464
+ }
1465
+
1466
+ export interface AccessRequestEntity {
1467
+ id: string;
1468
+ number: number;
1469
+ year: number;
1470
+ externalFolio?: string | null;
1471
+ channel: AccessRequestChannel;
1472
+ receivedAt: string;
1473
+ requesterName: string;
1474
+ requesterEmail?: string | null;
1475
+ requesterAddress?: string | null;
1476
+ requestText: string;
1477
+ deliveryFormat?: string | null;
1478
+ status: AccessRequestStatus;
1479
+ correctionRequestedAt?: string | null;
1480
+ correctionDueAt?: string | null;
1481
+ correctedAt?: string | null;
1482
+ dueAt: string;
1483
+ extendedAt?: string | null;
1484
+ extensionNote?: string | null;
1485
+ assigneeEmployeeId?: string | null;
1486
+ assigneeFullName?: string | null;
1487
+ thirdPartyNotifiedAt?: string | null;
1488
+ oppositionDueAt?: string | null;
1489
+ thirdPartyOpposed?: boolean | null;
1490
+ resolution?: AccessRequestResolution | null;
1491
+ resolvedAt?: string | null;
1492
+ denialGrounds: string[];
1493
+ derivedTo?: string | null;
1494
+ resolutionNote?: string | null;
1495
+ responseDocument?: DocumentEntity | null;
1496
+ responseDocumentId?: string | null;
1497
+ appealedAt?: string | null;
1498
+ appealNote?: string | null;
1499
+ createdByEmployeeId: string;
1500
+ createdByFullName: string;
1501
+ documents?: AccessRequestDocumentEntity[];
1502
+ events?: AccessRequestEventEntity[];
1503
+ createdAt: string;
1504
+ updatedAt: string;
1505
+ }
1506
+
1507
+ export interface AccessRequestDocumentEntity {
1508
+ accessRequest?: AccessRequestEntity;
1509
+ accessRequestId: string;
1510
+ document?: DocumentEntity;
1511
+ documentId: string;
1512
+ }
1513
+
1514
+ export interface AccessRequestEventEntity {
1515
+ id: string;
1516
+ action: AccessRequestEventAction;
1517
+ note?: string | null;
1518
+ employeeId?: string | null;
1519
+ employeeFullName: string;
1520
+ accessRequest?: AccessRequestEntity;
1521
+ accessRequestId: string;
1522
+ createdAt: string;
1523
+ }
1524
+
1525
+ export interface DataTreatmentEntity {
1526
+ id: string;
1527
+ name: string;
1528
+ purpose: string;
1529
+ legalBasis: DataLegalBasis;
1530
+ legalBasisDetail?: string | null;
1531
+ dataCategories: string[];
1532
+ sensitiveData: boolean;
1533
+ dataSubjects: string;
1534
+ recipients?: string | null;
1535
+ source?: string | null;
1536
+ retention?: string | null;
1537
+ securityMeasures?: string | null;
1538
+ internationalTransfer?: string | null;
1539
+ responsibleUnit?: string | null;
1540
+ published: boolean;
1541
+ requests?: DataRightsRequestEntity[];
1542
+ breaches?: DataBreachEntity[];
1543
+ enabled: boolean;
1544
+ deleted: boolean;
1545
+ createdAt: string;
1546
+ updatedAt: string;
1547
+ }
1548
+
1549
+ export interface DataRightsRequestEntity {
1550
+ id: string;
1551
+ number: number;
1552
+ year: number;
1553
+ channel: DataRightsChannel;
1554
+ receivedAt: string;
1555
+ rights: DataRight[];
1556
+ requesterName: string;
1557
+ requesterRut?: string | null;
1558
+ requesterEmail?: string | null;
1559
+ requesterAddress?: string | null;
1560
+ representativeName?: string | null;
1561
+ identityVerifiedAt?: string | null;
1562
+ identityNote?: string | null;
1563
+ requestText: string;
1564
+ treatment?: DataTreatmentEntity | null;
1565
+ treatmentId?: string | null;
1566
+ status: DataRightsRequestStatus;
1567
+ acknowledgedAt?: string | null;
1568
+ dueAt: string;
1569
+ extendedAt?: string | null;
1570
+ extensionNote?: string | null;
1571
+ blockingRequested: boolean;
1572
+ blockingReason?: string | null;
1573
+ blockingDueAt?: string | null;
1574
+ blockingGranted?: boolean | null;
1575
+ blockingResolvedAt?: string | null;
1576
+ blockingNote?: string | null;
1577
+ blockingLiftedAt?: string | null;
1578
+ blockingLiftNote?: string | null;
1579
+ assigneeEmployeeId?: string | null;
1580
+ assigneeFullName?: string | null;
1581
+ resolution?: DataRightsResolution | null;
1582
+ resolvedAt?: string | null;
1583
+ denialGrounds: string[];
1584
+ resolutionNote?: string | null;
1585
+ responseDocument?: DocumentEntity | null;
1586
+ responseDocumentId?: string | null;
1587
+ responseSentAt?: string | null;
1588
+ responseSentTo?: string | null;
1589
+ responseSentMeans?: CommunicationMeans | null;
1590
+ complaintAt?: string | null;
1591
+ complaintNote?: string | null;
1592
+ createdByEmployeeId: string;
1593
+ createdByFullName: string;
1594
+ events?: DataRightsEventEntity[];
1595
+ createdAt: string;
1596
+ updatedAt: string;
1597
+ }
1598
+
1599
+ export interface DataRightsEventEntity {
1600
+ id: string;
1601
+ action: DataRightsEventAction;
1602
+ note?: string | null;
1603
+ employeeId?: string | null;
1604
+ employeeFullName: string;
1605
+ request?: DataRightsRequestEntity;
1606
+ requestId: string;
1607
+ createdAt: string;
1608
+ }
1609
+
1610
+ export interface DataBreachEntity {
1611
+ id: string;
1612
+ number: number;
1613
+ year: number;
1614
+ detectedAt: string;
1615
+ occurredAt?: string | null;
1616
+ kinds: DataBreachKind[];
1617
+ description: string;
1618
+ effects?: string | null;
1619
+ dataCategories: string[];
1620
+ affectedCount?: number | null;
1621
+ measures?: string | null;
1622
+ sensitiveData: boolean;
1623
+ minorsData: boolean;
1624
+ financialData: boolean;
1625
+ riskToRights: boolean;
1626
+ treatment?: DataTreatmentEntity | null;
1627
+ treatmentId?: string | null;
1628
+ status: DataBreachStatus;
1629
+ agencyReportedAt?: string | null;
1630
+ agencyReportNote?: string | null;
1631
+ holdersNotifiedAt?: string | null;
1632
+ holdersNoticeMeans?: DataBreachNoticeMeans | null;
1633
+ holdersNoticeNote?: string | null;
1634
+ closedAt?: string | null;
1635
+ closeNote?: string | null;
1636
+ createdByEmployeeId: string;
1637
+ createdByFullName: string;
1638
+ events?: DataBreachEventEntity[];
1639
+ createdAt: string;
1640
+ updatedAt: string;
1641
+ }
1642
+
1643
+ export interface DataBreachEventEntity {
1644
+ id: string;
1645
+ action: DataBreachEventAction;
1646
+ note?: string | null;
1647
+ employeeId?: string | null;
1648
+ employeeFullName: string;
1649
+ breach?: DataBreachEntity;
1650
+ breachId: string;
1651
+ createdAt: string;
1652
+ }
1653
+
1654
+ export interface DeskFileEntity {
1655
+ id: string;
1656
+ ownerEmployeeId: string;
1657
+ fileId: string;
1658
+ fileName: string;
1659
+ size: number;
1660
+ sha256: string;
1661
+ source: DeskFileSource;
1662
+ description?: string | null;
1663
+ classifiedAt?: string | null;
1664
+ target?: DeskFileTarget | null;
1665
+ targetId?: string | null;
1666
+ targetLabel?: string | null;
1667
+ removedAt?: string | null;
1668
+ mailIntake?: MailIntakeEntity | null;
1669
+ mailIntakeId?: string | null;
1670
+ createdAt: string;
1671
+ updatedAt: string;
1672
+ }
1673
+
1674
+ export interface MailIntakeEntity {
1675
+ id: string;
1676
+ sha256: string;
1677
+ messageId?: string | null;
1678
+ fromAddress: string;
1679
+ fromName?: string | null;
1680
+ subject: string;
1681
+ textPreview?: string | null;
1682
+ sentAt?: string | null;
1683
+ emlFileId: string;
1684
+ emlFileName: string;
1685
+ size: number;
1686
+ attachments: JsonValue;
1687
+ authentication: MailAuthentication;
1688
+ authDetail?: string | null;
1689
+ status: MailIntakeStatus;
1690
+ resolvedAt?: string | null;
1691
+ resolvedByEmployeeId?: string | null;
1692
+ deskFiles?: DeskFileEntity[];
1693
+ createdAt: string;
1694
+ updatedAt: string;
1695
+ }
1696
+
1697
+ export interface VisaInitialsEntity {
1698
+ employeeId: string;
1699
+ initials: string;
1700
+ createdAt: string;
1701
+ updatedAt: string;
1702
+ }
1703
+
1704
+ export interface PushSubscriptionEntity {
1705
+ id: string;
1706
+ employeeId: string;
1707
+ endpoint: string;
1708
+ p256dh: string;
1709
+ auth: string;
1710
+ userAgent?: string | null;
1711
+ lastSuccessAt?: string | null;
1712
+ failures: number;
1713
+ createdAt: string;
1714
+ updatedAt: string;
1715
+ }
1716
+
1717
+ export interface DocumentVersionEntity {
1718
+ id: string;
1719
+ documentId: string;
1720
+ document?: DocumentEntity;
1721
+ number: number;
1722
+ subject: string;
1723
+ fileId: string;
1724
+ fileName: string;
1725
+ sha256?: string | null;
1726
+ composition?: JsonValue | null;
1727
+ note?: string | null;
1728
+ status: DocumentStatus;
1729
+ correction: boolean;
1730
+ createdByEmployeeId: string;
1731
+ createdByFullName: string;
1732
+ createdAt: string;
1733
+ }
1734
+
1735
+ export interface DocumentCommentEntity {
1736
+ id: string;
1737
+ documentId: string;
1738
+ document?: DocumentEntity;
1739
+ versionNumber: number;
1740
+ section?: string | null;
1741
+ quote?: string | null;
1742
+ text: string;
1743
+ authorEmployeeId: string;
1744
+ authorFullName: string;
1745
+ authorRole: string;
1746
+ resolvedAt?: string | null;
1747
+ resolvedByFullName?: string | null;
1748
+ resolutionNote?: string | null;
1749
+ createdAt: string;
1750
+ }
1751
+
1752
+ export interface DraftingRequestEntity {
1753
+ id: string;
1754
+ number: number;
1755
+ year: number;
1756
+ subject: string;
1757
+ details: string;
1758
+ documentTypeId?: string | null;
1759
+ documentType?: DocumentTypeEntity | null;
1760
+ dueAt?: string | null;
1761
+ requesterEmployeeId: string;
1762
+ requesterFullName: string;
1763
+ requesterAreaName?: string | null;
1764
+ requesterDirectorateCode?: number | null;
1765
+ requesterDepartmentId?: string | null;
1766
+ requesterDirectorateName?: string | null;
1767
+ targetDirectorateCode: number;
1768
+ targetDirectorateName: string;
1769
+ status: DraftingRequestStatus;
1770
+ takenByEmployeeId?: string | null;
1771
+ takenByFullName?: string | null;
1772
+ takenAt?: string | null;
1773
+ closedAt?: string | null;
1774
+ closingNote?: string | null;
1775
+ documentId?: string | null;
1776
+ document?: DocumentEntity | null;
1777
+ recipients?: DraftingRequestRecipientEntity[];
1778
+ attachments?: DraftingRequestAttachmentEntity[];
1779
+ events?: DraftingRequestEventEntity[];
1780
+ createdAt: string;
1781
+ updatedAt: string;
1782
+ }
1783
+
1784
+ export interface DraftingRequestRecipientEntity {
1785
+ id: string;
1786
+ requestId: string;
1787
+ request?: DraftingRequestEntity;
1788
+ employeeId: string;
1789
+ }
1790
+
1791
+ export interface DraftingRequestAttachmentEntity {
1792
+ id: string;
1793
+ requestId: string;
1794
+ request?: DraftingRequestEntity;
1795
+ fileId: string;
1796
+ name: string;
1797
+ }
1798
+
1799
+ export interface DraftingRequestEventEntity {
1800
+ id: string;
1801
+ requestId: string;
1802
+ request?: DraftingRequestEntity;
1803
+ action: DraftingRequestEventAction;
1804
+ note?: string | null;
1805
+ employeeId: string;
1806
+ employeeFullName: string;
1807
+ createdAt: string;
1808
+ }
1809
+
1810
+ export interface DirectorateReviewerEntity {
1811
+ id: string;
1812
+ directorateCode: number;
1813
+ directorateName: string;
1814
+ employeeId: string;
1815
+ fullName: string;
1816
+ createdAt: string;
1817
+ }
1818
+
1819
+ export interface DocumentInternalNoteEntity {
1820
+ id: string;
1821
+ documentId: string;
1822
+ document?: DocumentEntity;
1823
+ directorateCode: number;
1824
+ directorateName: string;
1825
+ headEmployeeIds: string[];
1826
+ versionNumber: number;
1827
+ authorEmployeeId: string;
1828
+ authorFullName: string;
1829
+ authorRole: string;
1830
+ text: string;
1831
+ createdAt: string;
1832
+ }
1833
+
1834
+ export interface RichImageEntity {
1835
+ id: string;
1836
+ fileId: string;
1837
+ name: string;
1838
+ mimeType: string;
1839
+ width: number;
1840
+ height: number;
1841
+ sha256: string;
1842
+ sizeBytes: number;
1843
+ employeeId: string;
1844
+ createdAt: string;
1845
+ }
1846
+
629
1847
  type JsonValue = string | number | boolean | { [key in string]?: JsonValue } | Array<JsonValue> | null;