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