@muni-sanfer/types-gestor-documental 0.0.1-beta.5 → 0.0.1-beta.50

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 (242) hide show
  1. package/dist/base/entities.d.ts +996 -5
  2. package/dist/base/entities.js +235 -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 +218 -3
  16. package/dist/contracts/document.contract.js +15 -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 +15 -2
  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 +39 -0
  23. package/dist/contracts/holiday.contract.js +10 -0
  24. package/dist/contracts/index.d.ts +246 -4
  25. package/dist/contracts/index.js +69 -0
  26. package/dist/contracts/indicators.contract.d.ts +103 -0
  27. package/dist/contracts/indicators.contract.js +15 -0
  28. package/dist/contracts/internalReview.contract.d.ts +55 -0
  29. package/dist/contracts/internalReview.contract.js +9 -0
  30. package/dist/contracts/issuingEntity.contract.d.ts +52 -0
  31. package/dist/contracts/issuingEntity.contract.js +11 -0
  32. package/dist/contracts/mailIntake.contract.d.ts +61 -0
  33. package/dist/contracts/mailIntake.contract.js +15 -0
  34. package/dist/contracts/partsOffice.contract.d.ts +94 -2
  35. package/dist/contracts/partsOffice.contract.js +5 -0
  36. package/dist/contracts/procedure.contract.d.ts +14 -23
  37. package/dist/contracts/procedure.contract.js +6 -4
  38. package/dist/contracts/push.contract.d.ts +59 -0
  39. package/dist/contracts/push.contract.js +14 -0
  40. package/dist/contracts/registerBook.contract.d.ts +27 -0
  41. package/dist/contracts/registerBook.contract.js +8 -0
  42. package/dist/contracts/repositoryExport.contract.d.ts +57 -0
  43. package/dist/contracts/repositoryExport.contract.js +13 -0
  44. package/dist/contracts/retention.contract.d.ts +58 -0
  45. package/dist/contracts/retention.contract.js +11 -0
  46. package/dist/contracts/richImage.contract.d.ts +33 -0
  47. package/dist/contracts/richImage.contract.js +8 -0
  48. package/dist/contracts/scan.contract.d.ts +63 -0
  49. package/dist/contracts/scan.contract.js +12 -0
  50. package/dist/contracts/signatureBatch.contract.d.ts +109 -0
  51. package/dist/contracts/signatureBatch.contract.js +12 -0
  52. package/dist/contracts/signatureCheck.contract.d.ts +14 -0
  53. package/dist/contracts/signatureCheck.contract.js +7 -0
  54. package/dist/contracts/textSnippet.contract.d.ts +51 -0
  55. package/dist/contracts/textSnippet.contract.js +11 -0
  56. package/dist/contracts/transparency.contract.d.ts +96 -0
  57. package/dist/contracts/transparency.contract.js +12 -0
  58. package/dist/contracts/workFolder.contract.d.ts +114 -0
  59. package/dist/contracts/workFolder.contract.js +16 -0
  60. package/dist/entities/accessRequest/accessRequest.entity.d.ts +73 -0
  61. package/dist/entities/accessRequest/accessRequest.entity.js +2 -0
  62. package/dist/entities/accessRequest/index.d.ts +1 -0
  63. package/dist/entities/accessRequest/index.js +17 -0
  64. package/dist/entities/archivalSeries/archivalSeries.entity.d.ts +32 -0
  65. package/dist/entities/archivalSeries/archivalSeries.entity.js +2 -0
  66. package/dist/entities/archivalSeries/index.d.ts +1 -0
  67. package/dist/entities/archivalSeries/index.js +17 -0
  68. package/dist/entities/audit/audit.entity.d.ts +30 -0
  69. package/dist/entities/audit/audit.entity.js +2 -0
  70. package/dist/entities/audit/index.d.ts +1 -0
  71. package/dist/entities/audit/index.js +17 -0
  72. package/dist/entities/caseFile/caseFile.entity.d.ts +135 -0
  73. package/dist/entities/dataProtection/dataProtection.entity.d.ts +180 -0
  74. package/dist/entities/dataProtection/dataProtection.entity.js +2 -0
  75. package/dist/entities/dataProtection/index.d.ts +1 -0
  76. package/dist/entities/dataProtection/index.js +17 -0
  77. package/dist/entities/desk/desk.entity.d.ts +25 -0
  78. package/dist/entities/desk/desk.entity.js +2 -0
  79. package/dist/entities/desk/index.d.ts +1 -0
  80. package/dist/entities/desk/index.js +17 -0
  81. package/dist/entities/document/document.entity.d.ts +429 -1
  82. package/dist/entities/document/index.d.ts +1 -0
  83. package/dist/entities/document/index.js +1 -0
  84. package/dist/entities/document/richStyle.d.ts +212 -0
  85. package/dist/entities/document/richStyle.js +81 -0
  86. package/dist/entities/documentTemplate/documentTemplate.entity.d.ts +25 -0
  87. package/dist/entities/documentTemplate/documentTemplate.entity.js +2 -0
  88. package/dist/entities/documentTemplate/index.d.ts +1 -0
  89. package/dist/entities/documentTemplate/index.js +17 -0
  90. package/dist/entities/documentType/documentType.entity.d.ts +43 -0
  91. package/dist/entities/draftingRequest/draftingRequest.entity.d.ts +76 -0
  92. package/dist/entities/draftingRequest/draftingRequest.entity.js +2 -0
  93. package/dist/entities/draftingRequest/index.d.ts +1 -0
  94. package/dist/entities/draftingRequest/index.js +17 -0
  95. package/dist/entities/holiday/holiday.entity.d.ts +32 -0
  96. package/dist/entities/holiday/holiday.entity.js +2 -0
  97. package/dist/entities/holiday/index.d.ts +1 -0
  98. package/dist/entities/holiday/index.js +17 -0
  99. package/dist/entities/index.d.ts +22 -0
  100. package/dist/entities/index.js +22 -0
  101. package/dist/entities/indicators/index.d.ts +1 -0
  102. package/dist/entities/indicators/index.js +17 -0
  103. package/dist/entities/indicators/indicators.entity.d.ts +152 -0
  104. package/dist/entities/indicators/indicators.entity.js +2 -0
  105. package/dist/entities/internalReview/index.d.ts +1 -0
  106. package/dist/entities/internalReview/index.js +17 -0
  107. package/dist/entities/internalReview/internalReview.entity.d.ts +50 -0
  108. package/dist/entities/internalReview/internalReview.entity.js +2 -0
  109. package/dist/entities/issuingEntity/index.d.ts +1 -0
  110. package/dist/entities/issuingEntity/index.js +17 -0
  111. package/dist/entities/issuingEntity/issuingEntity.entity.d.ts +20 -0
  112. package/dist/entities/issuingEntity/issuingEntity.entity.js +2 -0
  113. package/dist/entities/mailIntake/index.d.ts +1 -0
  114. package/dist/entities/mailIntake/index.js +17 -0
  115. package/dist/entities/mailIntake/mailIntake.entity.d.ts +51 -0
  116. package/dist/entities/mailIntake/mailIntake.entity.js +2 -0
  117. package/dist/entities/partsOffice/partsOffice.entity.d.ts +39 -0
  118. package/dist/entities/procedure/procedure.entity.d.ts +27 -6
  119. package/dist/entities/push/index.d.ts +1 -0
  120. package/dist/entities/push/index.js +17 -0
  121. package/dist/entities/push/push.entity.d.ts +28 -0
  122. package/dist/entities/push/push.entity.js +2 -0
  123. package/dist/entities/registerBook/index.d.ts +1 -0
  124. package/dist/entities/registerBook/index.js +17 -0
  125. package/dist/entities/registerBook/registerBook.entity.d.ts +48 -0
  126. package/dist/entities/registerBook/registerBook.entity.js +2 -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/workFolder/index.d.ts +1 -0
  156. package/dist/entities/workFolder/index.js +17 -0
  157. package/dist/entities/workFolder/workFolder.entity.d.ts +83 -0
  158. package/dist/entities/workFolder/workFolder.entity.js +2 -0
  159. package/package.json +1 -1
  160. package/src/base/entities.ts +1164 -5
  161. package/src/contracts/accessRequest.contract.ts +81 -0
  162. package/src/contracts/archivalSeries.contract.ts +59 -0
  163. package/src/contracts/audit.contract.ts +30 -0
  164. package/src/contracts/caseFile.contract.ts +107 -2
  165. package/src/contracts/dataProtection.contract.ts +197 -0
  166. package/src/contracts/desk.contract.ts +72 -0
  167. package/src/contracts/document.contract.ts +200 -3
  168. package/src/contracts/documentTemplate.contract.ts +17 -0
  169. package/src/contracts/documentType.contract.ts +32 -3
  170. package/src/contracts/draftingRequest.contract.ts +73 -0
  171. package/src/contracts/holiday.contract.ts +25 -0
  172. package/src/contracts/index.ts +93 -1
  173. package/src/contracts/indicators.contract.ts +80 -0
  174. package/src/contracts/internalReview.contract.ts +48 -0
  175. package/src/contracts/issuingEntity.contract.ts +55 -0
  176. package/src/contracts/mailIntake.contract.ts +49 -0
  177. package/src/contracts/partsOffice.contract.ts +81 -2
  178. package/src/contracts/procedure.contract.ts +11 -27
  179. package/src/contracts/push.contract.ts +41 -0
  180. package/src/contracts/registerBook.contract.ts +24 -0
  181. package/src/contracts/repositoryExport.contract.ts +54 -0
  182. package/src/contracts/retention.contract.ts +44 -0
  183. package/src/contracts/richImage.contract.ts +23 -0
  184. package/src/contracts/scan.contract.ts +52 -0
  185. package/src/contracts/signatureBatch.contract.ts +96 -0
  186. package/src/contracts/signatureCheck.contract.ts +11 -0
  187. package/src/contracts/textSnippet.contract.ts +53 -0
  188. package/src/contracts/transparency.contract.ts +55 -0
  189. package/src/contracts/workFolder.contract.ts +75 -0
  190. package/src/entities/accessRequest/accessRequest.entity.ts +78 -0
  191. package/src/entities/accessRequest/index.ts +1 -0
  192. package/src/entities/archivalSeries/archivalSeries.entity.ts +37 -0
  193. package/src/entities/archivalSeries/index.ts +1 -0
  194. package/src/entities/audit/audit.entity.ts +41 -0
  195. package/src/entities/audit/index.ts +1 -0
  196. package/src/entities/caseFile/caseFile.entity.ts +132 -0
  197. package/src/entities/dataProtection/dataProtection.entity.ts +191 -0
  198. package/src/entities/dataProtection/index.ts +1 -0
  199. package/src/entities/desk/desk.entity.ts +28 -0
  200. package/src/entities/desk/index.ts +1 -0
  201. package/src/entities/document/document.entity.ts +413 -1
  202. package/src/entities/document/index.ts +1 -0
  203. package/src/entities/document/richStyle.ts +193 -0
  204. package/src/entities/documentTemplate/documentTemplate.entity.ts +27 -0
  205. package/src/entities/documentTemplate/index.ts +1 -0
  206. package/src/entities/documentType/documentType.entity.ts +45 -0
  207. package/src/entities/draftingRequest/draftingRequest.entity.ts +78 -0
  208. package/src/entities/draftingRequest/index.ts +1 -0
  209. package/src/entities/holiday/holiday.entity.ts +36 -0
  210. package/src/entities/holiday/index.ts +1 -0
  211. package/src/entities/index.ts +22 -0
  212. package/src/entities/indicators/index.ts +1 -0
  213. package/src/entities/indicators/indicators.entity.ts +157 -0
  214. package/src/entities/internalReview/index.ts +1 -0
  215. package/src/entities/internalReview/internalReview.entity.ts +50 -0
  216. package/src/entities/issuingEntity/index.ts +1 -0
  217. package/src/entities/issuingEntity/issuingEntity.entity.ts +24 -0
  218. package/src/entities/mailIntake/index.ts +1 -0
  219. package/src/entities/mailIntake/mailIntake.entity.ts +55 -0
  220. package/src/entities/partsOffice/partsOffice.entity.ts +35 -0
  221. package/src/entities/procedure/procedure.entity.ts +27 -6
  222. package/src/entities/push/index.ts +1 -0
  223. package/src/entities/push/push.entity.ts +31 -0
  224. package/src/entities/registerBook/index.ts +1 -0
  225. package/src/entities/registerBook/registerBook.entity.ts +52 -0
  226. package/src/entities/repositoryExport/index.ts +1 -0
  227. package/src/entities/repositoryExport/repositoryExport.entity.ts +86 -0
  228. package/src/entities/retention/index.ts +1 -0
  229. package/src/entities/retention/retention.entity.ts +53 -0
  230. package/src/entities/scan/index.ts +1 -0
  231. package/src/entities/scan/scan.entity.ts +32 -0
  232. package/src/entities/signatureBatch/index.ts +1 -0
  233. package/src/entities/signatureBatch/signatureBatch.entity.ts +110 -0
  234. package/src/entities/signatureCheck/index.ts +1 -0
  235. package/src/entities/signatureCheck/signatureCheck.entity.ts +63 -0
  236. package/src/entities/textSnippet/index.ts +1 -0
  237. package/src/entities/textSnippet/textSnippet.entity.ts +24 -0
  238. package/src/entities/transparency/index.ts +1 -0
  239. package/src/entities/transparency/transparency.entity.ts +78 -0
  240. package/src/entities/workFolder/index.ts +1 -0
  241. package/src/entities/workFolder/workFolder.entity.ts +84 -0
  242. package/tsconfig.json +1 -3
@@ -33,7 +33,7 @@ export declare const DocumentParticipantStatus: {
33
33
  Resolved: "Resolved";
34
34
  Rejected: "Rejected";
35
35
  };
36
- export type DocumentTrackingAction = 'Created' | 'Updated' | 'Submitted' | 'Visaed' | 'Signed' | 'Rejected' | 'Finished' | 'Discarded' | 'Numbered' | 'NumberAnnulled' | 'Annulled' | 'Delivered' | 'Derived' | 'Reassigned' | 'Dispatched' | 'DispatchReturned' | 'Received';
36
+ export type DocumentTrackingAction = 'Created' | 'Updated' | 'Submitted' | 'Visaed' | 'Signed' | 'Rejected' | 'Finished' | 'Discarded' | 'Numbered' | 'NumberAnnulled' | 'Annulled' | 'Delivered' | 'Derived' | 'Reassigned' | 'Dispatched' | 'DispatchReturned' | 'DispatchedByContingency' | 'Received' | 'EmailCopySent' | 'EmailCopyOpened' | 'DispositionRecorded' | 'TransparencyRedacted' | 'TransparencyPublished' | 'TransparencyExcluded' | 'TransparencyWithdrawn' | 'DraftReviewRequested' | 'DraftReviewApproved' | 'DraftReviewRejected' | 'DraftReviewCancelled';
37
37
  export declare const DocumentTrackingAction: {
38
38
  Created: "Created";
39
39
  Updated: "Updated";
@@ -51,12 +51,39 @@ export declare const DocumentTrackingAction: {
51
51
  Reassigned: "Reassigned";
52
52
  Dispatched: "Dispatched";
53
53
  DispatchReturned: "DispatchReturned";
54
+ DispatchedByContingency: "DispatchedByContingency";
54
55
  Received: "Received";
56
+ EmailCopySent: "EmailCopySent";
57
+ EmailCopyOpened: "EmailCopyOpened";
58
+ DispositionRecorded: "DispositionRecorded";
59
+ TransparencyRedacted: "TransparencyRedacted";
60
+ TransparencyPublished: "TransparencyPublished";
61
+ TransparencyExcluded: "TransparencyExcluded";
62
+ TransparencyWithdrawn: "TransparencyWithdrawn";
63
+ DraftReviewRequested: "DraftReviewRequested";
64
+ DraftReviewApproved: "DraftReviewApproved";
65
+ DraftReviewRejected: "DraftReviewRejected";
66
+ DraftReviewCancelled: "DraftReviewCancelled";
55
67
  };
56
- export type DocumentOrigin = 'Internal' | 'DocDigital';
68
+ export type DraftReviewStatus = 'Pending' | 'Approved' | 'Rejected' | 'Cancelled';
69
+ export declare const DraftReviewStatus: {
70
+ Pending: "Pending";
71
+ Approved: "Approved";
72
+ Rejected: "Rejected";
73
+ Cancelled: "Cancelled";
74
+ };
75
+ export type DocumentOrigin = 'Internal' | 'DocDigital' | 'Manual';
57
76
  export declare const DocumentOrigin: {
58
77
  Internal: "Internal";
59
78
  DocDigital: "DocDigital";
79
+ Manual: "Manual";
80
+ };
81
+ export type CommunicationMeans = 'Paper' | 'Email' | 'Courier' | 'Other';
82
+ export declare const CommunicationMeans: {
83
+ Paper: "Paper";
84
+ Email: "Email";
85
+ Courier: "Courier";
86
+ Other: "Other";
60
87
  };
61
88
  export type DocumentDispatchStatus = 'Pending' | 'Dispatched' | 'Returned';
62
89
  export declare const DocumentDispatchStatus: {
@@ -121,11 +148,12 @@ export declare const CaseFileActuationType: {
121
148
  Subfolder: "Subfolder";
122
149
  PowerRegistration: "PowerRegistration";
123
150
  };
124
- export type CaseFileEntryKind = 'Document' | 'File' | 'CaseFile';
151
+ export type CaseFileEntryKind = 'Document' | 'File' | 'CaseFile' | 'Physical';
125
152
  export declare const CaseFileEntryKind: {
126
153
  Document: "Document";
127
154
  File: "File";
128
155
  CaseFile: "CaseFile";
156
+ Physical: "Physical";
129
157
  };
130
158
  export type CaseFileActorRelation = 'Responsible' | 'Interested' | 'Author' | 'Referred' | 'Recipient' | 'MinisterOfFaith';
131
159
  export declare const CaseFileActorRelation: {
@@ -143,16 +171,20 @@ export declare const CaseFileActorType: {
143
171
  PrivateInstitution: "PrivateInstitution";
144
172
  Official: "Official";
145
173
  };
146
- export type CaseFileTrackingAction = 'Created' | 'Updated' | 'EntryAdded' | 'EntryVoided' | 'ParticipantAdded' | 'ParticipantRemoved' | 'Closed' | 'Exported';
174
+ export type CaseFileTrackingAction = 'Created' | 'Updated' | 'EntryAdded' | 'EntryVoided' | 'EntryMoved' | 'ParticipantAdded' | 'ParticipantRemoved' | 'Closed' | 'Exported' | 'ShareLinkCreated' | 'ShareLinkRevoked' | 'DispositionRecorded';
147
175
  export declare const CaseFileTrackingAction: {
148
176
  Created: "Created";
149
177
  Updated: "Updated";
150
178
  EntryAdded: "EntryAdded";
151
179
  EntryVoided: "EntryVoided";
180
+ EntryMoved: "EntryMoved";
152
181
  ParticipantAdded: "ParticipantAdded";
153
182
  ParticipantRemoved: "ParticipantRemoved";
154
183
  Closed: "Closed";
155
184
  Exported: "Exported";
185
+ ShareLinkCreated: "ShareLinkCreated";
186
+ ShareLinkRevoked: "ShareLinkRevoked";
187
+ DispositionRecorded: "DispositionRecorded";
156
188
  };
157
189
  export type CaseFileAccessAction = 'Viewed' | 'FileDownloaded' | 'Exported';
158
190
  export declare const CaseFileAccessAction: {
@@ -160,6 +192,241 @@ export declare const CaseFileAccessAction: {
160
192
  FileDownloaded: "FileDownloaded";
161
193
  Exported: "Exported";
162
194
  };
195
+ export type ScanSessionStatus = 'Open' | 'Ready';
196
+ export declare const ScanSessionStatus: {
197
+ Open: "Open";
198
+ Ready: "Ready";
199
+ };
200
+ export type TextSnippetSection = 'Vistos' | 'Considerando' | 'Resolutive' | 'Body' | 'Closing';
201
+ export declare const TextSnippetSection: {
202
+ Vistos: "Vistos";
203
+ Considerando: "Considerando";
204
+ Resolutive: "Resolutive";
205
+ Body: "Body";
206
+ Closing: "Closing";
207
+ };
208
+ export type HolidaySource = 'Manual' | 'Api';
209
+ export declare const HolidaySource: {
210
+ Manual: "Manual";
211
+ Api: "Api";
212
+ };
213
+ export type WorkFolderItemKind = 'Document' | 'File';
214
+ export declare const WorkFolderItemKind: {
215
+ Document: "Document";
216
+ File: "File";
217
+ };
218
+ export type ServiceOutageKind = 'Unplanned' | 'Planned';
219
+ export declare const ServiceOutageKind: {
220
+ Unplanned: "Unplanned";
221
+ Planned: "Planned";
222
+ };
223
+ export type QualityMetricKey = 'Effectiveness' | 'Efficiency' | 'Availability' | 'ResponseTime' | 'Accessibility' | 'FunctionalCompleteness' | 'Interoperability';
224
+ export declare const QualityMetricKey: {
225
+ Effectiveness: "Effectiveness";
226
+ Efficiency: "Efficiency";
227
+ Availability: "Availability";
228
+ ResponseTime: "ResponseTime";
229
+ Accessibility: "Accessibility";
230
+ FunctionalCompleteness: "FunctionalCompleteness";
231
+ Interoperability: "Interoperability";
232
+ };
233
+ export type DocumentAccessAction = 'Viewed' | 'FileDownloaded' | 'TrailExported';
234
+ export declare const DocumentAccessAction: {
235
+ Viewed: "Viewed";
236
+ FileDownloaded: "FileDownloaded";
237
+ TrailExported: "TrailExported";
238
+ };
239
+ export type AuditEntity = 'DocumentType' | 'IssuingEntity' | 'ArchivalSeries' | 'TextSnippet' | 'Holiday' | 'Procedure' | 'QualityMetric' | 'ServiceOutage' | 'Repository' | 'DataTreatment' | 'DocumentTemplate' | 'DirectorateReviewer';
240
+ export declare const AuditEntity: {
241
+ DocumentType: "DocumentType";
242
+ IssuingEntity: "IssuingEntity";
243
+ ArchivalSeries: "ArchivalSeries";
244
+ TextSnippet: "TextSnippet";
245
+ Holiday: "Holiday";
246
+ Procedure: "Procedure";
247
+ QualityMetric: "QualityMetric";
248
+ ServiceOutage: "ServiceOutage";
249
+ Repository: "Repository";
250
+ DataTreatment: "DataTreatment";
251
+ DocumentTemplate: "DocumentTemplate";
252
+ DirectorateReviewer: "DirectorateReviewer";
253
+ };
254
+ export type AuditAction = 'Created' | 'Updated' | 'Enabled' | 'Disabled' | 'Removed' | 'Exported';
255
+ export declare const AuditAction: {
256
+ Created: "Created";
257
+ Updated: "Updated";
258
+ Enabled: "Enabled";
259
+ Disabled: "Disabled";
260
+ Removed: "Removed";
261
+ Exported: "Exported";
262
+ };
263
+ export type FinalDisposition = 'Permanent' | 'Eliminate' | 'Select';
264
+ export declare const FinalDisposition: {
265
+ Permanent: "Permanent";
266
+ Eliminate: "Eliminate";
267
+ Select: "Select";
268
+ };
269
+ export type DispositionKind = 'Transfer' | 'Elimination';
270
+ export declare const DispositionKind: {
271
+ Transfer: "Transfer";
272
+ Elimination: "Elimination";
273
+ };
274
+ export type AccessRequestChannel = 'Portal' | 'Email' | 'InPerson' | 'Letter';
275
+ export declare const AccessRequestChannel: {
276
+ Portal: "Portal";
277
+ Email: "Email";
278
+ InPerson: "InPerson";
279
+ Letter: "Letter";
280
+ };
281
+ export type AccessRequestStatus = 'Received' | 'InCorrection' | 'InProgress' | 'Resolved';
282
+ export declare const AccessRequestStatus: {
283
+ Received: "Received";
284
+ InCorrection: "InCorrection";
285
+ InProgress: "InProgress";
286
+ Resolved: "Resolved";
287
+ };
288
+ export type AccessRequestResolution = 'Delivered' | 'PartiallyDelivered' | 'Denied' | 'Derived' | 'NonExistent' | 'Withdrawn';
289
+ export declare const AccessRequestResolution: {
290
+ Delivered: "Delivered";
291
+ PartiallyDelivered: "PartiallyDelivered";
292
+ Denied: "Denied";
293
+ Derived: "Derived";
294
+ NonExistent: "NonExistent";
295
+ Withdrawn: "Withdrawn";
296
+ };
297
+ export type AccessRequestEventAction = 'Received' | 'Updated' | 'CorrectionRequested' | 'Corrected' | 'Assigned' | 'ThirdPartyNotified' | 'OppositionRegistered' | 'Extended' | 'Resolved' | 'AppealRegistered';
298
+ export declare const AccessRequestEventAction: {
299
+ Received: "Received";
300
+ Updated: "Updated";
301
+ CorrectionRequested: "CorrectionRequested";
302
+ Corrected: "Corrected";
303
+ Assigned: "Assigned";
304
+ ThirdPartyNotified: "ThirdPartyNotified";
305
+ OppositionRegistered: "OppositionRegistered";
306
+ Extended: "Extended";
307
+ Resolved: "Resolved";
308
+ AppealRegistered: "AppealRegistered";
309
+ };
310
+ export type TransparencyStatus = 'Published' | 'Excluded';
311
+ export declare const TransparencyStatus: {
312
+ Published: "Published";
313
+ Excluded: "Excluded";
314
+ };
315
+ export type DataLegalBasis = 'LegalFunction' | 'LegalObligation' | 'Consent' | 'Contract' | 'VitalInterest';
316
+ export declare const DataLegalBasis: {
317
+ LegalFunction: "LegalFunction";
318
+ LegalObligation: "LegalObligation";
319
+ Consent: "Consent";
320
+ Contract: "Contract";
321
+ VitalInterest: "VitalInterest";
322
+ };
323
+ export type DataRight = 'Access' | 'Rectification' | 'Suppression' | 'Opposition' | 'Portability';
324
+ export declare const DataRight: {
325
+ Access: "Access";
326
+ Rectification: "Rectification";
327
+ Suppression: "Suppression";
328
+ Opposition: "Opposition";
329
+ Portability: "Portability";
330
+ };
331
+ export type DataRightsChannel = 'Email' | 'WebForm' | 'InPerson' | 'Letter';
332
+ export declare const DataRightsChannel: {
333
+ Email: "Email";
334
+ WebForm: "WebForm";
335
+ InPerson: "InPerson";
336
+ Letter: "Letter";
337
+ };
338
+ export type DataRightsRequestStatus = 'Received' | 'InProgress' | 'Resolved';
339
+ export declare const DataRightsRequestStatus: {
340
+ Received: "Received";
341
+ InProgress: "InProgress";
342
+ Resolved: "Resolved";
343
+ };
344
+ export type DataRightsResolution = 'Granted' | 'PartiallyGranted' | 'Denied' | 'Withdrawn';
345
+ export declare const DataRightsResolution: {
346
+ Granted: "Granted";
347
+ PartiallyGranted: "PartiallyGranted";
348
+ Denied: "Denied";
349
+ Withdrawn: "Withdrawn";
350
+ };
351
+ export type DataRightsEventAction = 'Received' | 'Updated' | 'Acknowledged' | 'IdentityVerified' | 'Assigned' | 'BlockingResolved' | 'BlockingLifted' | 'Extended' | 'Resolved' | 'ResponseSent' | 'ComplaintRegistered';
352
+ export declare const DataRightsEventAction: {
353
+ Received: "Received";
354
+ Updated: "Updated";
355
+ Acknowledged: "Acknowledged";
356
+ IdentityVerified: "IdentityVerified";
357
+ Assigned: "Assigned";
358
+ BlockingResolved: "BlockingResolved";
359
+ BlockingLifted: "BlockingLifted";
360
+ Extended: "Extended";
361
+ Resolved: "Resolved";
362
+ ResponseSent: "ResponseSent";
363
+ ComplaintRegistered: "ComplaintRegistered";
364
+ };
365
+ export type DataBreachKind = 'Destruction' | 'Leak' | 'Loss' | 'Alteration' | 'UnauthorizedAccess';
366
+ export declare const DataBreachKind: {
367
+ Destruction: "Destruction";
368
+ Leak: "Leak";
369
+ Loss: "Loss";
370
+ Alteration: "Alteration";
371
+ UnauthorizedAccess: "UnauthorizedAccess";
372
+ };
373
+ export type DataBreachStatus = 'Open' | 'Closed';
374
+ export declare const DataBreachStatus: {
375
+ Open: "Open";
376
+ Closed: "Closed";
377
+ };
378
+ export type DataBreachEventAction = 'Registered' | 'Updated' | 'AgencyReported' | 'HoldersNotified' | 'Closed';
379
+ export declare const DataBreachEventAction: {
380
+ Registered: "Registered";
381
+ Updated: "Updated";
382
+ AgencyReported: "AgencyReported";
383
+ HoldersNotified: "HoldersNotified";
384
+ Closed: "Closed";
385
+ };
386
+ export type DataBreachNoticeMeans = 'Individual' | 'PublicNotice';
387
+ export declare const DataBreachNoticeMeans: {
388
+ Individual: "Individual";
389
+ PublicNotice: "PublicNotice";
390
+ };
391
+ export type DeskFileSource = 'Upload' | 'Scan' | 'Email';
392
+ export declare const DeskFileSource: {
393
+ Upload: "Upload";
394
+ Scan: "Scan";
395
+ Email: "Email";
396
+ };
397
+ export type DeskFileTarget = 'Document' | 'CaseFile';
398
+ export declare const DeskFileTarget: {
399
+ Document: "Document";
400
+ CaseFile: "CaseFile";
401
+ };
402
+ export type MailIntakeStatus = 'Pending' | 'Accepted' | 'Discarded';
403
+ export declare const MailIntakeStatus: {
404
+ Pending: "Pending";
405
+ Accepted: "Accepted";
406
+ Discarded: "Discarded";
407
+ };
408
+ export type MailAuthentication = 'Pass' | 'Fail' | 'Unknown';
409
+ export declare const MailAuthentication: {
410
+ Pass: "Pass";
411
+ Fail: "Fail";
412
+ Unknown: "Unknown";
413
+ };
414
+ export type DraftingRequestStatus = 'Pending' | 'Taken' | 'Declined' | 'Cancelled';
415
+ export declare const DraftingRequestStatus: {
416
+ Pending: "Pending";
417
+ Taken: "Taken";
418
+ Declined: "Declined";
419
+ Cancelled: "Cancelled";
420
+ };
421
+ export type DraftingRequestEventAction = 'Created' | 'Taken' | 'Released' | 'Declined' | 'Cancelled' | 'DocumentLinked';
422
+ export declare const DraftingRequestEventAction: {
423
+ Created: "Created";
424
+ Taken: "Taken";
425
+ Released: "Released";
426
+ Declined: "Declined";
427
+ Cancelled: "Cancelled";
428
+ DocumentLinked: "DocumentLinked";
429
+ };
163
430
  export interface DocumentTypeEntity {
164
431
  id: string;
165
432
  name: string;
@@ -169,11 +436,28 @@ export interface DocumentTypeEntity {
169
436
  nextCorrelative: number;
170
437
  correlativeYear?: number | null;
171
438
  resetsYearly: boolean;
439
+ numbered: boolean;
440
+ activeTransparency: boolean;
441
+ transparencySection?: string | null;
172
442
  directorateCodeReference?: number | null;
443
+ draftReviewDirectorateCode?: number | null;
444
+ draftReviewDirectorateName?: string | null;
445
+ archivalSeries?: ArchivalSeriesEntity | null;
446
+ archivalSeriesId?: string | null;
447
+ issuingEntity?: IssuingEntityEntity | null;
448
+ issuingEntityId?: string | null;
449
+ sharesNumberingWith?: DocumentTypeEntity | null;
450
+ sharesNumberingWithId?: string | null;
451
+ numberingMembers?: DocumentTypeEntity[];
173
452
  enabled: boolean;
453
+ version: number;
454
+ versions?: DocumentTypeVersionEntity[];
174
455
  documents?: DocumentEntity[];
456
+ draftingRequests?: DraftingRequestEntity[];
175
457
  annulledNumbers?: DocumentAnnulledNumberEntity[];
176
458
  flowSteps?: DocumentTypeFlowStepEntity[];
459
+ signatureBatches?: SignatureBatchEntity[];
460
+ template?: DocumentTemplateEntity | null;
177
461
  deleted: boolean;
178
462
  createdAt: string;
179
463
  updatedAt: string;
@@ -181,9 +465,11 @@ export interface DocumentTypeEntity {
181
465
  export interface DocumentEntity {
182
466
  id: string;
183
467
  subject: string;
468
+ description?: string | null;
184
469
  keywords: string[];
185
470
  accessLevel: DocumentAccessLevel;
186
471
  hasSensitiveData: boolean;
472
+ restrictionEndsAt?: string | null;
187
473
  status: DocumentStatus;
188
474
  correlative?: number | null;
189
475
  correlativeYear?: number | null;
@@ -193,12 +479,21 @@ export interface DocumentEntity {
193
479
  annulledAt?: string | null;
194
480
  annulmentReason?: string | null;
195
481
  responseDueAt?: string | null;
482
+ responseDueBusinessDays?: number | null;
483
+ procedure?: ProcedureEntity | null;
484
+ procedureId?: string | null;
196
485
  origin: DocumentOrigin;
197
486
  intakeNumber?: number | null;
198
487
  intakeYear?: number | null;
199
488
  externalFolio?: string | null;
200
489
  externalSender?: string | null;
201
490
  externalDate?: string | null;
491
+ intakeMeans?: CommunicationMeans | null;
492
+ composition?: JsonValue | null;
493
+ contentText?: string | null;
494
+ textExtractedAt?: string | null;
495
+ batch?: SignatureBatchEntity | null;
496
+ batchId?: string | null;
202
497
  replyTo?: DocumentEntity | null;
203
498
  replyToDocumentId?: string | null;
204
499
  replies?: DocumentEntity[];
@@ -210,10 +505,13 @@ export interface DocumentEntity {
210
505
  originalFileName: string;
211
506
  currentFileId?: string | null;
212
507
  currentFileUrl?: string | null;
508
+ fileFormat?: string | null;
213
509
  submittedAt?: string | null;
214
510
  finishedAt?: string | null;
215
511
  documentType?: DocumentTypeEntity;
216
512
  documentTypeId: string;
513
+ documentTypeVersion?: DocumentTypeVersionEntity | null;
514
+ documentTypeVersionId?: string | null;
217
515
  participants?: DocumentParticipantEntity[];
218
516
  attachments?: DocumentAttachmentEntity[];
219
517
  trackings?: DocumentTrackingEntity[];
@@ -221,17 +519,50 @@ export interface DocumentEntity {
221
519
  recipients?: DocumentRecipientEntity[];
222
520
  deliveries?: DocumentDeliveryEntity[];
223
521
  caseFileEntries?: CaseFileEntryEntity[];
522
+ workFolderItems?: WorkFolderItemEntity[];
224
523
  externalRecipients?: DocumentExternalRecipientEntity[];
524
+ emailCopies?: DocumentEmailCopyEntity[];
525
+ accesses?: DocumentAccessEntity[];
526
+ disposition?: DispositionRecordEntity | null;
527
+ dispositionId?: string | null;
528
+ transparencyStatus?: TransparencyStatus | null;
529
+ transparencyUrl?: string | null;
530
+ transparencyNote?: string | null;
531
+ transparencyAt?: string | null;
532
+ transparencyByFullName?: string | null;
533
+ redactedFileId?: string | null;
534
+ redactedFileName?: string | null;
535
+ accessRequestResponses?: AccessRequestEntity[];
536
+ dataRightsResponses?: DataRightsRequestEntity[];
537
+ versions?: DocumentVersionEntity[];
538
+ comments?: DocumentCommentEntity[];
539
+ draftReviews?: DocumentDraftReviewEntity[];
540
+ draftingRequest?: DraftingRequestEntity | null;
541
+ internalNotes?: DocumentInternalNoteEntity[];
542
+ accessRequestDeliveries?: AccessRequestDocumentEntity[];
225
543
  dispatch?: DocumentDispatchEntity | null;
226
544
  docDigitalInbound?: DocDigitalInboundEntity | null;
227
545
  deleted: boolean;
228
546
  createdAt: string;
229
547
  updatedAt: string;
230
548
  }
549
+ export interface SignatureBatchEntity {
550
+ id: string;
551
+ name: string;
552
+ createdByEmployeeId: string;
553
+ createdByFullName: string;
554
+ documentType?: DocumentTypeEntity;
555
+ documentTypeId: string;
556
+ documents?: DocumentEntity[];
557
+ deleted: boolean;
558
+ createdAt: string;
559
+ updatedAt: string;
560
+ }
231
561
  export interface DocumentParticipantEntity {
232
562
  id: string;
233
563
  role: DocumentParticipantRole;
234
564
  order: number;
565
+ stage: number;
235
566
  status: DocumentParticipantStatus;
236
567
  employeeId: string;
237
568
  fullName: string;
@@ -259,6 +590,7 @@ export interface DocumentTrackingEntity {
259
590
  id: string;
260
591
  action: DocumentTrackingAction;
261
592
  observation?: string | null;
593
+ sha256?: string | null;
262
594
  employeeId?: string | null;
263
595
  employeeFullName?: string | null;
264
596
  document?: DocumentEntity;
@@ -306,10 +638,35 @@ export interface DocumentDeliveryEntity {
306
638
  readAt?: string | null;
307
639
  closedAt?: string | null;
308
640
  closingNote?: string | null;
641
+ dueSoonRemindedAt?: string | null;
642
+ overdueRemindedAt?: string | null;
309
643
  document?: DocumentEntity;
310
644
  documentId: string;
311
645
  createdAt: string;
312
646
  }
647
+ export interface DocumentTypeVersionEntity {
648
+ id: string;
649
+ version: number;
650
+ name: string;
651
+ abbreviation?: string | null;
652
+ category: DocumentCategory;
653
+ description?: string | null;
654
+ numbered: boolean;
655
+ activeTransparency: boolean;
656
+ transparencySection?: string | null;
657
+ directorateCodeReference?: number | null;
658
+ draftReviewDirectorateCode?: number | null;
659
+ draftReviewDirectorateName?: string | null;
660
+ issuingEntityId?: string | null;
661
+ sharesNumberingWithId?: string | null;
662
+ templateVersion?: number | null;
663
+ flowSteps: JsonValue;
664
+ createdByFullName?: string | null;
665
+ createdAt: string;
666
+ documentType?: DocumentTypeEntity;
667
+ documentTypeId: string;
668
+ documents?: DocumentEntity[];
669
+ }
313
670
  export interface DocumentTypeFlowStepEntity {
314
671
  id: string;
315
672
  role: DocumentParticipantRole;
@@ -319,6 +676,7 @@ export interface DocumentTypeFlowStepEntity {
319
676
  directorateCodeReference?: number | null;
320
677
  name: string;
321
678
  position?: string | null;
679
+ withPrevious: boolean;
322
680
  documentType?: DocumentTypeEntity;
323
681
  documentTypeId: string;
324
682
  createdAt: string;
@@ -329,8 +687,13 @@ export interface ProcedureEntity {
329
687
  cpatId?: string | null;
330
688
  cpatCode?: string | null;
331
689
  description?: string | null;
690
+ kind?: string | null;
691
+ responsibleArea?: string | null;
692
+ cpatStatus?: string | null;
693
+ fromCpat: boolean;
332
694
  enabled: boolean;
333
695
  caseFiles?: CaseFileEntity[];
696
+ documents?: DocumentEntity[];
334
697
  deleted: boolean;
335
698
  createdAt: string;
336
699
  updatedAt: string;
@@ -350,6 +713,9 @@ export interface CaseFileEntity {
350
713
  status: CaseFileStatus;
351
714
  accessLevel: DocumentAccessLevel;
352
715
  hasSensitiveData: boolean;
716
+ restrictionEndsAt?: string | null;
717
+ archivalSeries?: ArchivalSeriesEntity | null;
718
+ archivalSeriesId?: string | null;
353
719
  incorporationMechanism: CaseFileIncorporationMechanism;
354
720
  schemaVersion: string;
355
721
  procedure?: ProcedureEntity;
@@ -358,6 +724,8 @@ export interface CaseFileEntity {
358
724
  responsibleFullName: string;
359
725
  responsiblePosition?: string | null;
360
726
  closedAt?: string | null;
727
+ disposition?: DispositionRecordEntity | null;
728
+ dispositionId?: string | null;
361
729
  closedByEmployeeId?: string | null;
362
730
  closedByFullName?: string | null;
363
731
  closingNote?: string | null;
@@ -368,8 +736,11 @@ export interface CaseFileEntity {
368
736
  trackings?: CaseFileTrackingEntity[];
369
737
  metadataChanges?: CaseFileMetadataChangeEntity[];
370
738
  accesses?: CaseFileAccessEntity[];
739
+ shareLinks?: CaseFileShareLinkEntity[];
740
+ integratedPdf?: JsonValue | null;
371
741
  createdAt: string;
372
742
  updatedAt: string;
743
+ workFolder?: WorkFolderEntity | null;
373
744
  }
374
745
  export interface CaseFileParticipantEntity {
375
746
  id: string;
@@ -398,6 +769,7 @@ export interface CaseFileEntryEntity {
398
769
  kind: CaseFileEntryKind;
399
770
  actuationType: CaseFileActuationType;
400
771
  title: string;
772
+ folder?: string | null;
401
773
  document?: DocumentEntity | null;
402
774
  documentId?: string | null;
403
775
  fileId?: string | null;
@@ -408,11 +780,16 @@ export interface CaseFileEntryEntity {
408
780
  keywords: string[];
409
781
  accessLevel?: DocumentAccessLevel | null;
410
782
  hasSensitiveData?: boolean | null;
783
+ physicalLocation?: string | null;
784
+ physicalReason?: string | null;
785
+ pageCount?: number | null;
411
786
  linkedCaseFile?: CaseFileEntity | null;
412
787
  linkedCaseFileId?: string | null;
413
788
  sha256?: string | null;
414
789
  size?: number | null;
415
790
  hasAdvancedSignature: boolean;
791
+ fileFormat?: string | null;
792
+ signatureCheck?: JsonValue | null;
416
793
  incorporatedByEmployeeId: string;
417
794
  incorporatedByFullName: string;
418
795
  voidedAt?: string | null;
@@ -448,12 +825,57 @@ export interface CaseFileAccessEntity {
448
825
  id: string;
449
826
  action: CaseFileAccessAction;
450
827
  entryId?: string | null;
451
- employeeId: string;
828
+ employeeId?: string | null;
452
829
  employeeFullName: string;
830
+ shareLink?: CaseFileShareLinkEntity | null;
831
+ shareLinkId?: string | null;
453
832
  caseFile?: CaseFileEntity;
454
833
  caseFileId: string;
455
834
  createdAt: string;
456
835
  }
836
+ export interface CaseFileShareLinkEntity {
837
+ id: string;
838
+ tokenHash: string;
839
+ recipient: string;
840
+ recipientEmail?: string | null;
841
+ purpose?: string | null;
842
+ allowExport: boolean;
843
+ expiresAt: string;
844
+ createdByEmployeeId: string;
845
+ createdByFullName: string;
846
+ revokedAt?: string | null;
847
+ revokedByEmployeeId?: string | null;
848
+ revokedByFullName?: string | null;
849
+ caseFile?: CaseFileEntity;
850
+ caseFileId: string;
851
+ accesses?: CaseFileAccessEntity[];
852
+ createdAt: string;
853
+ }
854
+ export interface DocumentEmailCopyEntity {
855
+ id: string;
856
+ name: string;
857
+ email: string;
858
+ tokenHash?: string | null;
859
+ expiresAt?: string | null;
860
+ issuedAt?: string | null;
861
+ openedAt?: string | null;
862
+ downloadCount: number;
863
+ document?: DocumentEntity;
864
+ documentId: string;
865
+ createdAt: string;
866
+ }
867
+ export interface ScanSessionEntity {
868
+ id: string;
869
+ tokenHash: string;
870
+ status: ScanSessionStatus;
871
+ employeeId: string;
872
+ pages: JsonValue;
873
+ fileId?: string | null;
874
+ fileName?: string | null;
875
+ expiresAt: string;
876
+ finishedAt?: string | null;
877
+ createdAt: string;
878
+ }
457
879
  export interface DocumentExternalRecipientEntity {
458
880
  id: string;
459
881
  entityId: number;
@@ -480,6 +902,11 @@ export interface DocumentDispatchEntity {
480
902
  returnedByEmployeeId?: string | null;
481
903
  returnedByFullName?: string | null;
482
904
  returnReason?: string | null;
905
+ contingencyMeans?: CommunicationMeans | null;
906
+ contingencySentTo?: string | null;
907
+ contingencyReason?: string | null;
908
+ contingencyReceiptFileId?: string | null;
909
+ contingencyReceiptName?: string | null;
483
910
  document?: DocumentEntity;
484
911
  documentId: string;
485
912
  createdAt: string;
@@ -500,9 +927,12 @@ export interface DocDigitalInboundEntity {
500
927
  senderEntityName?: string | null;
501
928
  senderName?: string | null;
502
929
  senderPosition?: string | null;
930
+ recipientEntityId?: number | null;
931
+ recipientEntityName?: string | null;
503
932
  fileId?: string | null;
504
933
  fileName?: string | null;
505
934
  attachments: JsonValue;
935
+ signatureCheck?: JsonValue | null;
506
936
  registeredAt?: string | null;
507
937
  registeredByEmployeeId?: string | null;
508
938
  registeredByFullName?: string | null;
@@ -517,10 +947,571 @@ export interface DocDigitalInboundEntity {
517
947
  createdAt: string;
518
948
  updatedAt: string;
519
949
  }
950
+ export interface HolidayEntity {
951
+ id: string;
952
+ date: string;
953
+ name: string;
954
+ source: HolidaySource;
955
+ kind?: string | null;
956
+ excluded: boolean;
957
+ createdAt: string;
958
+ updatedAt: string;
959
+ }
960
+ export interface ProcedureSyncEntity {
961
+ institutionCode: string;
962
+ syncedAt: string;
963
+ total: number;
964
+ resourceName: string;
965
+ }
966
+ export interface HolidaySyncEntity {
967
+ year: number;
968
+ syncedAt: string;
969
+ total: number;
970
+ }
971
+ export interface TextSnippetEntity {
972
+ id: string;
973
+ title: string;
974
+ text: string;
975
+ section: TextSnippetSection;
976
+ keywords: string[];
977
+ enabled: boolean;
978
+ deleted: boolean;
979
+ createdAt: string;
980
+ updatedAt: string;
981
+ }
982
+ export interface DocumentTemplateEntity {
983
+ id: string;
984
+ name: string;
985
+ description?: string | null;
986
+ documentTypeIds: string[];
987
+ documentType?: DocumentTypeEntity | null;
988
+ documentTypeId?: string | null;
989
+ content: JsonValue;
990
+ version: number;
991
+ enabled: boolean;
992
+ updatedByFullName?: string | null;
993
+ versions?: DocumentTemplateVersionEntity[];
994
+ deleted: boolean;
995
+ createdAt: string;
996
+ updatedAt: string;
997
+ }
998
+ export interface DocumentDraftReviewEntity {
999
+ id: string;
1000
+ documentId: string;
1001
+ document?: DocumentEntity;
1002
+ round: number;
1003
+ versionNumber: number;
1004
+ directorateCodeReference: number;
1005
+ directorateName: string;
1006
+ reviewerEmployeeId: string;
1007
+ reviewerFullName: string;
1008
+ requestedByEmployeeId: string;
1009
+ requestedByFullName: string;
1010
+ requestedAt: string;
1011
+ status: DraftReviewStatus;
1012
+ observation?: string | null;
1013
+ resolvedAt?: string | null;
1014
+ }
1015
+ export interface DocumentTemplateVersionEntity {
1016
+ id: string;
1017
+ templateId: string;
1018
+ template?: DocumentTemplateEntity;
1019
+ version: number;
1020
+ content: JsonValue;
1021
+ createdByFullName?: string | null;
1022
+ createdAt: string;
1023
+ }
1024
+ export interface ArchivalSeriesEntity {
1025
+ id: string;
1026
+ code: string;
1027
+ name: string;
1028
+ section?: string | null;
1029
+ description?: string | null;
1030
+ managementYears?: number | null;
1031
+ centralYears?: number | null;
1032
+ finalDisposition?: FinalDisposition | null;
1033
+ retentionNote?: string | null;
1034
+ enabled: boolean;
1035
+ documentTypes?: DocumentTypeEntity[];
1036
+ caseFiles?: CaseFileEntity[];
1037
+ dispositions?: DispositionRecordEntity[];
1038
+ deleted: boolean;
1039
+ createdAt: string;
1040
+ updatedAt: string;
1041
+ }
1042
+ export interface IssuingEntityEntity {
1043
+ id: string;
1044
+ name: string;
1045
+ shortName?: string | null;
1046
+ directorateCodeReferences: number[];
1047
+ docDigitalEntityId?: number | null;
1048
+ enabled: boolean;
1049
+ documentTypes?: DocumentTypeEntity[];
1050
+ deleted: boolean;
1051
+ createdAt: string;
1052
+ updatedAt: string;
1053
+ }
520
1054
  export interface IntakeSequenceEntity {
521
1055
  year: number;
522
1056
  next: number;
523
1057
  }
1058
+ export interface WorkFolderEntity {
1059
+ id: string;
1060
+ name: string;
1061
+ description?: string | null;
1062
+ ownerEmployeeId: string;
1063
+ ownerFullName: string;
1064
+ caseFile?: CaseFileEntity | null;
1065
+ caseFileId?: string | null;
1066
+ participants?: WorkFolderParticipantEntity[];
1067
+ items?: WorkFolderItemEntity[];
1068
+ deleted: boolean;
1069
+ createdAt: string;
1070
+ updatedAt: string;
1071
+ }
1072
+ export interface WorkFolderParticipantEntity {
1073
+ id: string;
1074
+ employeeId: string;
1075
+ fullName: string;
1076
+ folder?: WorkFolderEntity;
1077
+ folderId: string;
1078
+ createdAt: string;
1079
+ }
1080
+ export interface WorkFolderItemEntity {
1081
+ id: string;
1082
+ kind: WorkFolderItemKind;
1083
+ title: string;
1084
+ document?: DocumentEntity | null;
1085
+ documentId?: string | null;
1086
+ fileId?: string | null;
1087
+ fileName?: string | null;
1088
+ addedByEmployeeId: string;
1089
+ addedByFullName: string;
1090
+ folder?: WorkFolderEntity;
1091
+ folderId: string;
1092
+ createdAt: string;
1093
+ }
1094
+ export interface ServiceOutageEntity {
1095
+ id: string;
1096
+ kind: ServiceOutageKind;
1097
+ startedAt: string;
1098
+ endedAt?: string | null;
1099
+ cause: string;
1100
+ affectedServices?: string | null;
1101
+ createdByEmployeeId: string;
1102
+ createdByFullName: string;
1103
+ updatedByFullName?: string | null;
1104
+ deleted: boolean;
1105
+ createdAt: string;
1106
+ updatedAt: string;
1107
+ }
1108
+ export interface QualityMetricSettingEntity {
1109
+ key: QualityMetricKey;
1110
+ threshold: number;
1111
+ declaredValue?: number | null;
1112
+ declaredNote?: string | null;
1113
+ declaredAt?: string | null;
1114
+ declaredByFullName?: string | null;
1115
+ updatedAt: string;
1116
+ }
1117
+ export interface ServiceTimingEntity {
1118
+ hour: string;
1119
+ count: number;
1120
+ errorCount: number;
1121
+ totalMs: number;
1122
+ maxMs: number;
1123
+ under100: number;
1124
+ under250: number;
1125
+ under500: number;
1126
+ under1000: number;
1127
+ under2000: number;
1128
+ under5000: number;
1129
+ over5000: number;
1130
+ }
1131
+ export interface DocumentAccessEntity {
1132
+ id: string;
1133
+ action: DocumentAccessAction;
1134
+ employeeId?: string | null;
1135
+ employeeFullName: string;
1136
+ document?: DocumentEntity;
1137
+ documentId: string;
1138
+ createdAt: string;
1139
+ }
1140
+ export interface AuditLogEntity {
1141
+ id: string;
1142
+ entity: AuditEntity;
1143
+ action: AuditAction;
1144
+ entityId?: string | null;
1145
+ name: string;
1146
+ details?: JsonValue | null;
1147
+ employeeId?: string | null;
1148
+ employeeFullName: string;
1149
+ createdAt: string;
1150
+ }
1151
+ export interface DispositionRecordEntity {
1152
+ id: string;
1153
+ kind: DispositionKind;
1154
+ number: number;
1155
+ year: number;
1156
+ observation?: string | null;
1157
+ series?: ArchivalSeriesEntity;
1158
+ seriesId: string;
1159
+ documents?: DocumentEntity[];
1160
+ caseFiles?: CaseFileEntity[];
1161
+ createdByEmployeeId: string;
1162
+ createdByFullName: string;
1163
+ createdAt: string;
1164
+ }
1165
+ export interface AccessRequestEntity {
1166
+ id: string;
1167
+ number: number;
1168
+ year: number;
1169
+ externalFolio?: string | null;
1170
+ channel: AccessRequestChannel;
1171
+ receivedAt: string;
1172
+ requesterName: string;
1173
+ requesterEmail?: string | null;
1174
+ requesterAddress?: string | null;
1175
+ requestText: string;
1176
+ deliveryFormat?: string | null;
1177
+ status: AccessRequestStatus;
1178
+ correctionRequestedAt?: string | null;
1179
+ correctionDueAt?: string | null;
1180
+ correctedAt?: string | null;
1181
+ dueAt: string;
1182
+ extendedAt?: string | null;
1183
+ extensionNote?: string | null;
1184
+ assigneeEmployeeId?: string | null;
1185
+ assigneeFullName?: string | null;
1186
+ thirdPartyNotifiedAt?: string | null;
1187
+ oppositionDueAt?: string | null;
1188
+ thirdPartyOpposed?: boolean | null;
1189
+ resolution?: AccessRequestResolution | null;
1190
+ resolvedAt?: string | null;
1191
+ denialGrounds: string[];
1192
+ derivedTo?: string | null;
1193
+ resolutionNote?: string | null;
1194
+ responseDocument?: DocumentEntity | null;
1195
+ responseDocumentId?: string | null;
1196
+ appealedAt?: string | null;
1197
+ appealNote?: string | null;
1198
+ createdByEmployeeId: string;
1199
+ createdByFullName: string;
1200
+ documents?: AccessRequestDocumentEntity[];
1201
+ events?: AccessRequestEventEntity[];
1202
+ createdAt: string;
1203
+ updatedAt: string;
1204
+ }
1205
+ export interface AccessRequestDocumentEntity {
1206
+ accessRequest?: AccessRequestEntity;
1207
+ accessRequestId: string;
1208
+ document?: DocumentEntity;
1209
+ documentId: string;
1210
+ }
1211
+ export interface AccessRequestEventEntity {
1212
+ id: string;
1213
+ action: AccessRequestEventAction;
1214
+ note?: string | null;
1215
+ employeeId?: string | null;
1216
+ employeeFullName: string;
1217
+ accessRequest?: AccessRequestEntity;
1218
+ accessRequestId: string;
1219
+ createdAt: string;
1220
+ }
1221
+ export interface DataTreatmentEntity {
1222
+ id: string;
1223
+ name: string;
1224
+ purpose: string;
1225
+ legalBasis: DataLegalBasis;
1226
+ legalBasisDetail?: string | null;
1227
+ dataCategories: string[];
1228
+ sensitiveData: boolean;
1229
+ dataSubjects: string;
1230
+ recipients?: string | null;
1231
+ source?: string | null;
1232
+ retention?: string | null;
1233
+ securityMeasures?: string | null;
1234
+ internationalTransfer?: string | null;
1235
+ responsibleUnit?: string | null;
1236
+ published: boolean;
1237
+ requests?: DataRightsRequestEntity[];
1238
+ breaches?: DataBreachEntity[];
1239
+ enabled: boolean;
1240
+ deleted: boolean;
1241
+ createdAt: string;
1242
+ updatedAt: string;
1243
+ }
1244
+ export interface DataRightsRequestEntity {
1245
+ id: string;
1246
+ number: number;
1247
+ year: number;
1248
+ channel: DataRightsChannel;
1249
+ receivedAt: string;
1250
+ rights: DataRight[];
1251
+ requesterName: string;
1252
+ requesterRut?: string | null;
1253
+ requesterEmail?: string | null;
1254
+ requesterAddress?: string | null;
1255
+ representativeName?: string | null;
1256
+ identityVerifiedAt?: string | null;
1257
+ identityNote?: string | null;
1258
+ requestText: string;
1259
+ treatment?: DataTreatmentEntity | null;
1260
+ treatmentId?: string | null;
1261
+ status: DataRightsRequestStatus;
1262
+ acknowledgedAt?: string | null;
1263
+ dueAt: string;
1264
+ extendedAt?: string | null;
1265
+ extensionNote?: string | null;
1266
+ blockingRequested: boolean;
1267
+ blockingReason?: string | null;
1268
+ blockingDueAt?: string | null;
1269
+ blockingGranted?: boolean | null;
1270
+ blockingResolvedAt?: string | null;
1271
+ blockingNote?: string | null;
1272
+ blockingLiftedAt?: string | null;
1273
+ blockingLiftNote?: string | null;
1274
+ assigneeEmployeeId?: string | null;
1275
+ assigneeFullName?: string | null;
1276
+ resolution?: DataRightsResolution | null;
1277
+ resolvedAt?: string | null;
1278
+ denialGrounds: string[];
1279
+ resolutionNote?: string | null;
1280
+ responseDocument?: DocumentEntity | null;
1281
+ responseDocumentId?: string | null;
1282
+ responseSentAt?: string | null;
1283
+ responseSentTo?: string | null;
1284
+ responseSentMeans?: CommunicationMeans | null;
1285
+ complaintAt?: string | null;
1286
+ complaintNote?: string | null;
1287
+ createdByEmployeeId: string;
1288
+ createdByFullName: string;
1289
+ events?: DataRightsEventEntity[];
1290
+ createdAt: string;
1291
+ updatedAt: string;
1292
+ }
1293
+ export interface DataRightsEventEntity {
1294
+ id: string;
1295
+ action: DataRightsEventAction;
1296
+ note?: string | null;
1297
+ employeeId?: string | null;
1298
+ employeeFullName: string;
1299
+ request?: DataRightsRequestEntity;
1300
+ requestId: string;
1301
+ createdAt: string;
1302
+ }
1303
+ export interface DataBreachEntity {
1304
+ id: string;
1305
+ number: number;
1306
+ year: number;
1307
+ detectedAt: string;
1308
+ occurredAt?: string | null;
1309
+ kinds: DataBreachKind[];
1310
+ description: string;
1311
+ effects?: string | null;
1312
+ dataCategories: string[];
1313
+ affectedCount?: number | null;
1314
+ measures?: string | null;
1315
+ sensitiveData: boolean;
1316
+ minorsData: boolean;
1317
+ financialData: boolean;
1318
+ riskToRights: boolean;
1319
+ treatment?: DataTreatmentEntity | null;
1320
+ treatmentId?: string | null;
1321
+ status: DataBreachStatus;
1322
+ agencyReportedAt?: string | null;
1323
+ agencyReportNote?: string | null;
1324
+ holdersNotifiedAt?: string | null;
1325
+ holdersNoticeMeans?: DataBreachNoticeMeans | null;
1326
+ holdersNoticeNote?: string | null;
1327
+ closedAt?: string | null;
1328
+ closeNote?: string | null;
1329
+ createdByEmployeeId: string;
1330
+ createdByFullName: string;
1331
+ events?: DataBreachEventEntity[];
1332
+ createdAt: string;
1333
+ updatedAt: string;
1334
+ }
1335
+ export interface DataBreachEventEntity {
1336
+ id: string;
1337
+ action: DataBreachEventAction;
1338
+ note?: string | null;
1339
+ employeeId?: string | null;
1340
+ employeeFullName: string;
1341
+ breach?: DataBreachEntity;
1342
+ breachId: string;
1343
+ createdAt: string;
1344
+ }
1345
+ export interface DeskFileEntity {
1346
+ id: string;
1347
+ ownerEmployeeId: string;
1348
+ fileId: string;
1349
+ fileName: string;
1350
+ size: number;
1351
+ sha256: string;
1352
+ source: DeskFileSource;
1353
+ description?: string | null;
1354
+ classifiedAt?: string | null;
1355
+ target?: DeskFileTarget | null;
1356
+ targetId?: string | null;
1357
+ targetLabel?: string | null;
1358
+ removedAt?: string | null;
1359
+ mailIntake?: MailIntakeEntity | null;
1360
+ mailIntakeId?: string | null;
1361
+ createdAt: string;
1362
+ updatedAt: string;
1363
+ }
1364
+ export interface MailIntakeEntity {
1365
+ id: string;
1366
+ sha256: string;
1367
+ messageId?: string | null;
1368
+ fromAddress: string;
1369
+ fromName?: string | null;
1370
+ subject: string;
1371
+ textPreview?: string | null;
1372
+ sentAt?: string | null;
1373
+ emlFileId: string;
1374
+ emlFileName: string;
1375
+ size: number;
1376
+ attachments: JsonValue;
1377
+ authentication: MailAuthentication;
1378
+ authDetail?: string | null;
1379
+ status: MailIntakeStatus;
1380
+ resolvedAt?: string | null;
1381
+ resolvedByEmployeeId?: string | null;
1382
+ deskFiles?: DeskFileEntity[];
1383
+ createdAt: string;
1384
+ updatedAt: string;
1385
+ }
1386
+ export interface PushSubscriptionEntity {
1387
+ id: string;
1388
+ employeeId: string;
1389
+ endpoint: string;
1390
+ p256dh: string;
1391
+ auth: string;
1392
+ userAgent?: string | null;
1393
+ lastSuccessAt?: string | null;
1394
+ failures: number;
1395
+ createdAt: string;
1396
+ updatedAt: string;
1397
+ }
1398
+ export interface DocumentVersionEntity {
1399
+ id: string;
1400
+ documentId: string;
1401
+ document?: DocumentEntity;
1402
+ number: number;
1403
+ subject: string;
1404
+ fileId: string;
1405
+ fileName: string;
1406
+ sha256?: string | null;
1407
+ composition?: JsonValue | null;
1408
+ note?: string | null;
1409
+ status: DocumentStatus;
1410
+ createdByEmployeeId: string;
1411
+ createdByFullName: string;
1412
+ createdAt: string;
1413
+ }
1414
+ export interface DocumentCommentEntity {
1415
+ id: string;
1416
+ documentId: string;
1417
+ document?: DocumentEntity;
1418
+ versionNumber: number;
1419
+ section?: string | null;
1420
+ quote?: string | null;
1421
+ text: string;
1422
+ authorEmployeeId: string;
1423
+ authorFullName: string;
1424
+ authorRole: string;
1425
+ resolvedAt?: string | null;
1426
+ resolvedByFullName?: string | null;
1427
+ resolutionNote?: string | null;
1428
+ createdAt: string;
1429
+ }
1430
+ export interface DraftingRequestEntity {
1431
+ id: string;
1432
+ number: number;
1433
+ year: number;
1434
+ subject: string;
1435
+ details: string;
1436
+ documentTypeId?: string | null;
1437
+ documentType?: DocumentTypeEntity | null;
1438
+ dueAt?: string | null;
1439
+ requesterEmployeeId: string;
1440
+ requesterFullName: string;
1441
+ requesterAreaName?: string | null;
1442
+ targetDirectorateCode: number;
1443
+ targetDirectorateName: string;
1444
+ status: DraftingRequestStatus;
1445
+ takenByEmployeeId?: string | null;
1446
+ takenByFullName?: string | null;
1447
+ takenAt?: string | null;
1448
+ closedAt?: string | null;
1449
+ closingNote?: string | null;
1450
+ documentId?: string | null;
1451
+ document?: DocumentEntity | null;
1452
+ recipients?: DraftingRequestRecipientEntity[];
1453
+ attachments?: DraftingRequestAttachmentEntity[];
1454
+ events?: DraftingRequestEventEntity[];
1455
+ createdAt: string;
1456
+ updatedAt: string;
1457
+ }
1458
+ export interface DraftingRequestRecipientEntity {
1459
+ id: string;
1460
+ requestId: string;
1461
+ request?: DraftingRequestEntity;
1462
+ employeeId: string;
1463
+ }
1464
+ export interface DraftingRequestAttachmentEntity {
1465
+ id: string;
1466
+ requestId: string;
1467
+ request?: DraftingRequestEntity;
1468
+ fileId: string;
1469
+ name: string;
1470
+ }
1471
+ export interface DraftingRequestEventEntity {
1472
+ id: string;
1473
+ requestId: string;
1474
+ request?: DraftingRequestEntity;
1475
+ action: DraftingRequestEventAction;
1476
+ note?: string | null;
1477
+ employeeId: string;
1478
+ employeeFullName: string;
1479
+ createdAt: string;
1480
+ }
1481
+ export interface DirectorateReviewerEntity {
1482
+ id: string;
1483
+ directorateCode: number;
1484
+ directorateName: string;
1485
+ employeeId: string;
1486
+ fullName: string;
1487
+ createdAt: string;
1488
+ }
1489
+ export interface DocumentInternalNoteEntity {
1490
+ id: string;
1491
+ documentId: string;
1492
+ document?: DocumentEntity;
1493
+ directorateCode: number;
1494
+ directorateName: string;
1495
+ headEmployeeIds: string[];
1496
+ versionNumber: number;
1497
+ authorEmployeeId: string;
1498
+ authorFullName: string;
1499
+ authorRole: string;
1500
+ text: string;
1501
+ createdAt: string;
1502
+ }
1503
+ export interface RichImageEntity {
1504
+ id: string;
1505
+ fileId: string;
1506
+ name: string;
1507
+ mimeType: string;
1508
+ width: number;
1509
+ height: number;
1510
+ sha256: string;
1511
+ sizeBytes: number;
1512
+ employeeId: string;
1513
+ createdAt: string;
1514
+ }
524
1515
  type JsonValue = string | number | boolean | {
525
1516
  [key in string]?: JsonValue;
526
1517
  } | Array<JsonValue> | null;