@muni-sanfer/types-gestor-documental 0.0.1-beta.1 → 0.0.1-beta.100

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