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

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