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

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