@muni-sanfer/types-gestor-documental 0.0.1-beta.10 → 0.0.1-beta.101

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 (266) hide show
  1. package/dist/base/entities.d.ts +1061 -12
  2. package/dist/base/entities.js +272 -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 +114 -1
  10. package/dist/contracts/caseFile.contract.js +9 -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 +294 -6
  18. package/dist/contracts/document.contract.js +18 -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 +39 -4
  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 +243 -4
  28. package/dist/contracts/index.js +69 -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 +135 -4
  40. package/dist/contracts/partsOffice.contract.js +8 -0
  41. package/dist/contracts/procedure.contract.d.ts +14 -23
  42. package/dist/contracts/procedure.contract.js +6 -4
  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 +8 -0
  46. package/dist/contracts/repositoryExport.contract.d.ts +57 -0
  47. package/dist/contracts/repositoryExport.contract.js +13 -0
  48. package/dist/contracts/retention.contract.d.ts +58 -0
  49. package/dist/contracts/retention.contract.js +11 -0
  50. package/dist/contracts/richImage.contract.d.ts +33 -0
  51. package/dist/contracts/richImage.contract.js +8 -0
  52. package/dist/contracts/scan.contract.d.ts +63 -0
  53. package/dist/contracts/scan.contract.js +12 -0
  54. package/dist/contracts/signatureBatch.contract.d.ts +1 -1
  55. package/dist/contracts/signatureCheck.contract.d.ts +14 -0
  56. package/dist/contracts/signatureCheck.contract.js +7 -0
  57. package/dist/contracts/textSnippet.contract.d.ts +51 -0
  58. package/dist/contracts/textSnippet.contract.js +11 -0
  59. package/dist/contracts/transparency.contract.d.ts +96 -0
  60. package/dist/contracts/transparency.contract.js +12 -0
  61. package/dist/contracts/visaInitials.contract.d.ts +39 -0
  62. package/dist/contracts/visaInitials.contract.js +12 -0
  63. package/dist/entities/accessRequest/accessRequest.entity.d.ts +73 -0
  64. package/dist/entities/accessRequest/accessRequest.entity.js +2 -0
  65. package/dist/entities/accessRequest/index.d.ts +1 -0
  66. package/dist/entities/accessRequest/index.js +17 -0
  67. package/dist/entities/archivalSeries/archivalSeries.entity.d.ts +32 -0
  68. package/dist/entities/archivalSeries/archivalSeries.entity.js +2 -0
  69. package/dist/entities/archivalSeries/index.d.ts +1 -0
  70. package/dist/entities/archivalSeries/index.js +17 -0
  71. package/dist/entities/audit/audit.entity.d.ts +30 -0
  72. package/dist/entities/audit/audit.entity.js +2 -0
  73. package/dist/entities/audit/index.d.ts +1 -0
  74. package/dist/entities/audit/index.js +17 -0
  75. package/dist/entities/caseFile/caseFile.entity.d.ts +128 -0
  76. package/dist/entities/dashboard/dashboard.entity.d.ts +99 -0
  77. package/dist/entities/dashboard/dashboard.entity.js +2 -0
  78. package/dist/entities/dashboard/index.d.ts +1 -0
  79. package/dist/entities/dashboard/index.js +17 -0
  80. package/dist/entities/dataProtection/dataProtection.entity.d.ts +180 -0
  81. package/dist/entities/dataProtection/dataProtection.entity.js +2 -0
  82. package/dist/entities/dataProtection/index.d.ts +1 -0
  83. package/dist/entities/dataProtection/index.js +17 -0
  84. package/dist/entities/desk/desk.entity.d.ts +25 -0
  85. package/dist/entities/desk/desk.entity.js +2 -0
  86. package/dist/entities/desk/index.d.ts +1 -0
  87. package/dist/entities/desk/index.js +17 -0
  88. package/dist/entities/document/document.entity.d.ts +541 -3
  89. package/dist/entities/document/folio.d.ts +114 -0
  90. package/dist/entities/document/folio.js +100 -0
  91. package/dist/entities/document/index.d.ts +4 -0
  92. package/dist/entities/document/index.js +4 -0
  93. package/dist/entities/document/richDistribution.d.ts +27 -0
  94. package/dist/entities/document/richDistribution.js +45 -0
  95. package/dist/entities/document/richStyle.d.ts +275 -0
  96. package/dist/entities/document/richStyle.js +133 -0
  97. package/dist/entities/document/stampPlacement.d.ts +56 -0
  98. package/dist/entities/document/stampPlacement.js +20 -0
  99. package/dist/entities/documentTemplate/documentTemplate.entity.d.ts +32 -0
  100. package/dist/entities/documentTemplate/documentTemplate.entity.js +2 -0
  101. package/dist/entities/documentTemplate/index.d.ts +1 -0
  102. package/dist/entities/documentTemplate/index.js +17 -0
  103. package/dist/entities/documentType/distribution.d.ts +25 -0
  104. package/dist/entities/documentType/distribution.js +10 -0
  105. package/dist/entities/documentType/documentCategory.d.ts +15 -0
  106. package/dist/entities/documentType/documentCategory.js +39 -0
  107. package/dist/entities/documentType/documentType.entity.d.ts +69 -2
  108. package/dist/entities/documentType/index.d.ts +2 -0
  109. package/dist/entities/documentType/index.js +2 -0
  110. package/dist/entities/draftingRequest/draftingRequest.entity.d.ts +83 -0
  111. package/dist/entities/draftingRequest/draftingRequest.entity.js +2 -0
  112. package/dist/entities/draftingRequest/index.d.ts +1 -0
  113. package/dist/entities/draftingRequest/index.js +17 -0
  114. package/dist/entities/holiday/holiday.entity.d.ts +32 -0
  115. package/dist/entities/holiday/holiday.entity.js +2 -0
  116. package/dist/entities/holiday/index.d.ts +1 -0
  117. package/dist/entities/holiday/index.js +17 -0
  118. package/dist/entities/index.d.ts +22 -0
  119. package/dist/entities/index.js +22 -0
  120. package/dist/entities/indicators/index.d.ts +1 -0
  121. package/dist/entities/indicators/index.js +17 -0
  122. package/dist/entities/indicators/indicators.entity.d.ts +152 -0
  123. package/dist/entities/indicators/indicators.entity.js +2 -0
  124. package/dist/entities/internalReview/index.d.ts +1 -0
  125. package/dist/entities/internalReview/index.js +17 -0
  126. package/dist/entities/internalReview/internalReview.entity.d.ts +60 -0
  127. package/dist/entities/internalReview/internalReview.entity.js +2 -0
  128. package/dist/entities/issuingEntity/index.d.ts +1 -0
  129. package/dist/entities/issuingEntity/index.js +17 -0
  130. package/dist/entities/issuingEntity/issuingEntity.entity.d.ts +20 -0
  131. package/dist/entities/issuingEntity/issuingEntity.entity.js +2 -0
  132. package/dist/entities/mailIntake/index.d.ts +1 -0
  133. package/dist/entities/mailIntake/index.js +17 -0
  134. package/dist/entities/mailIntake/mailIntake.entity.d.ts +51 -0
  135. package/dist/entities/mailIntake/mailIntake.entity.js +2 -0
  136. package/dist/entities/notificationPreference/index.d.ts +1 -0
  137. package/dist/entities/notificationPreference/index.js +17 -0
  138. package/dist/entities/notificationPreference/notificationPreference.entity.d.ts +26 -0
  139. package/dist/entities/notificationPreference/notificationPreference.entity.js +9 -0
  140. package/dist/entities/partsOffice/partsOffice.entity.d.ts +71 -1
  141. package/dist/entities/procedure/procedure.entity.d.ts +27 -6
  142. package/dist/entities/push/index.d.ts +1 -0
  143. package/dist/entities/push/index.js +17 -0
  144. package/dist/entities/push/push.entity.d.ts +28 -0
  145. package/dist/entities/push/push.entity.js +2 -0
  146. package/dist/entities/registerBook/registerBook.entity.d.ts +6 -0
  147. package/dist/entities/repositoryExport/index.d.ts +1 -0
  148. package/dist/entities/repositoryExport/index.js +17 -0
  149. package/dist/entities/repositoryExport/repositoryExport.entity.d.ts +124 -0
  150. package/dist/entities/repositoryExport/repositoryExport.entity.js +2 -0
  151. package/dist/entities/retention/index.d.ts +1 -0
  152. package/dist/entities/retention/index.js +17 -0
  153. package/dist/entities/retention/retention.entity.d.ts +49 -0
  154. package/dist/entities/retention/retention.entity.js +2 -0
  155. package/dist/entities/scan/index.d.ts +1 -0
  156. package/dist/entities/scan/index.js +17 -0
  157. package/dist/entities/scan/scan.entity.d.ts +29 -0
  158. package/dist/entities/scan/scan.entity.js +2 -0
  159. package/dist/entities/signatureCheck/index.d.ts +1 -0
  160. package/dist/entities/signatureCheck/index.js +17 -0
  161. package/dist/entities/signatureCheck/signatureCheck.entity.d.ts +60 -0
  162. package/dist/entities/signatureCheck/signatureCheck.entity.js +2 -0
  163. package/dist/entities/textSnippet/index.d.ts +1 -0
  164. package/dist/entities/textSnippet/index.js +17 -0
  165. package/dist/entities/textSnippet/textSnippet.entity.d.ts +20 -0
  166. package/dist/entities/textSnippet/textSnippet.entity.js +2 -0
  167. package/dist/entities/transparency/index.d.ts +1 -0
  168. package/dist/entities/transparency/index.js +17 -0
  169. package/dist/entities/transparency/transparency.entity.d.ts +77 -0
  170. package/dist/entities/transparency/transparency.entity.js +2 -0
  171. package/dist/entities/visaInitials/index.d.ts +1 -0
  172. package/dist/entities/visaInitials/index.js +17 -0
  173. package/dist/entities/visaInitials/visaInitials.entity.d.ts +18 -0
  174. package/dist/entities/visaInitials/visaInitials.entity.js +5 -0
  175. package/package.json +1 -1
  176. package/src/base/entities.ts +1260 -12
  177. package/src/contracts/accessRequest.contract.ts +81 -0
  178. package/src/contracts/archivalSeries.contract.ts +59 -0
  179. package/src/contracts/audit.contract.ts +30 -0
  180. package/src/contracts/caseFile.contract.ts +100 -2
  181. package/src/contracts/dashboard.contract.ts +17 -0
  182. package/src/contracts/dataProtection.contract.ts +197 -0
  183. package/src/contracts/desk.contract.ts +72 -0
  184. package/src/contracts/document.contract.ts +297 -11
  185. package/src/contracts/documentTemplate.contract.ts +17 -0
  186. package/src/contracts/documentType.contract.ts +72 -5
  187. package/src/contracts/draftingRequest.contract.ts +82 -0
  188. package/src/contracts/holiday.contract.ts +25 -0
  189. package/src/contracts/index.ts +93 -1
  190. package/src/contracts/indicators.contract.ts +80 -0
  191. package/src/contracts/internalReview.contract.ts +59 -0
  192. package/src/contracts/issuingEntity.contract.ts +55 -0
  193. package/src/contracts/mailIntake.contract.ts +49 -0
  194. package/src/contracts/notificationPreference.contract.ts +38 -0
  195. package/src/contracts/partsOffice.contract.ts +121 -5
  196. package/src/contracts/procedure.contract.ts +11 -27
  197. package/src/contracts/push.contract.ts +41 -0
  198. package/src/contracts/registerBook.contract.ts +5 -0
  199. package/src/contracts/repositoryExport.contract.ts +54 -0
  200. package/src/contracts/retention.contract.ts +44 -0
  201. package/src/contracts/richImage.contract.ts +23 -0
  202. package/src/contracts/scan.contract.ts +52 -0
  203. package/src/contracts/signatureBatch.contract.ts +2 -2
  204. package/src/contracts/signatureCheck.contract.ts +11 -0
  205. package/src/contracts/textSnippet.contract.ts +53 -0
  206. package/src/contracts/transparency.contract.ts +55 -0
  207. package/src/contracts/visaInitials.contract.ts +29 -0
  208. package/src/entities/accessRequest/accessRequest.entity.ts +78 -0
  209. package/src/entities/accessRequest/index.ts +1 -0
  210. package/src/entities/archivalSeries/archivalSeries.entity.ts +37 -0
  211. package/src/entities/archivalSeries/index.ts +1 -0
  212. package/src/entities/audit/audit.entity.ts +41 -0
  213. package/src/entities/audit/index.ts +1 -0
  214. package/src/entities/caseFile/caseFile.entity.ts +124 -0
  215. package/src/entities/dashboard/dashboard.entity.ts +95 -0
  216. package/src/entities/dashboard/index.ts +1 -0
  217. package/src/entities/dataProtection/dataProtection.entity.ts +191 -0
  218. package/src/entities/dataProtection/index.ts +1 -0
  219. package/src/entities/desk/desk.entity.ts +28 -0
  220. package/src/entities/desk/index.ts +1 -0
  221. package/src/entities/document/document.entity.ts +540 -6
  222. package/src/entities/document/folio.ts +185 -0
  223. package/src/entities/document/index.ts +4 -0
  224. package/src/entities/document/richDistribution.ts +56 -0
  225. package/src/entities/document/richStyle.ts +299 -0
  226. package/src/entities/document/stampPlacement.ts +51 -0
  227. package/src/entities/documentTemplate/documentTemplate.entity.ts +34 -0
  228. package/src/entities/documentTemplate/index.ts +1 -0
  229. package/src/entities/documentType/distribution.ts +33 -0
  230. package/src/entities/documentType/documentCategory.ts +40 -0
  231. package/src/entities/documentType/documentType.entity.ts +85 -2
  232. package/src/entities/documentType/index.ts +2 -0
  233. package/src/entities/draftingRequest/draftingRequest.entity.ts +87 -0
  234. package/src/entities/draftingRequest/index.ts +1 -0
  235. package/src/entities/holiday/holiday.entity.ts +36 -0
  236. package/src/entities/holiday/index.ts +1 -0
  237. package/src/entities/index.ts +22 -0
  238. package/src/entities/indicators/index.ts +1 -0
  239. package/src/entities/indicators/indicators.entity.ts +157 -0
  240. package/src/entities/internalReview/index.ts +1 -0
  241. package/src/entities/internalReview/internalReview.entity.ts +63 -0
  242. package/src/entities/issuingEntity/index.ts +1 -0
  243. package/src/entities/issuingEntity/issuingEntity.entity.ts +24 -0
  244. package/src/entities/mailIntake/index.ts +1 -0
  245. package/src/entities/mailIntake/mailIntake.entity.ts +55 -0
  246. package/src/entities/notificationPreference/index.ts +1 -0
  247. package/src/entities/notificationPreference/notificationPreference.entity.ts +26 -0
  248. package/src/entities/partsOffice/partsOffice.entity.ts +70 -1
  249. package/src/entities/procedure/procedure.entity.ts +27 -6
  250. package/src/entities/push/index.ts +1 -0
  251. package/src/entities/push/push.entity.ts +31 -0
  252. package/src/entities/registerBook/registerBook.entity.ts +6 -0
  253. package/src/entities/repositoryExport/index.ts +1 -0
  254. package/src/entities/repositoryExport/repositoryExport.entity.ts +86 -0
  255. package/src/entities/retention/index.ts +1 -0
  256. package/src/entities/retention/retention.entity.ts +53 -0
  257. package/src/entities/scan/index.ts +1 -0
  258. package/src/entities/scan/scan.entity.ts +32 -0
  259. package/src/entities/signatureCheck/index.ts +1 -0
  260. package/src/entities/signatureCheck/signatureCheck.entity.ts +63 -0
  261. package/src/entities/textSnippet/index.ts +1 -0
  262. package/src/entities/textSnippet/textSnippet.entity.ts +24 -0
  263. package/src/entities/transparency/index.ts +1 -0
  264. package/src/entities/transparency/transparency.entity.ts +78 -0
  265. package/src/entities/visaInitials/index.ts +1 -0
  266. package/src/entities/visaInitials/visaInitials.entity.ts +18 -0
@@ -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,14 +99,29 @@ export type DocumentTrackingAction =
56
99
  | 'Finished'
57
100
  | 'Discarded'
58
101
  | 'Numbered'
102
+ | 'Foliated'
59
103
  | 'NumberAnnulled'
60
104
  | 'Annulled'
61
105
  | 'Delivered'
62
106
  | 'Derived'
107
+ | 'RecipientsAdded'
63
108
  | 'Reassigned'
64
109
  | 'Dispatched'
65
110
  | 'DispatchReturned'
66
- | 'Received';
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';
67
125
 
68
126
  export const DocumentTrackingAction = {
69
127
  Created: 'Created',
@@ -75,23 +133,64 @@ export const DocumentTrackingAction = {
75
133
  Finished: 'Finished',
76
134
  Discarded: 'Discarded',
77
135
  Numbered: 'Numbered',
136
+ Foliated: 'Foliated',
78
137
  NumberAnnulled: 'NumberAnnulled',
79
138
  Annulled: 'Annulled',
80
139
  Delivered: 'Delivered',
81
140
  Derived: 'Derived',
141
+ RecipientsAdded: 'RecipientsAdded',
82
142
  Reassigned: 'Reassigned',
83
143
  Dispatched: 'Dispatched',
84
144
  DispatchReturned: 'DispatchReturned',
145
+ DispatchedByContingency: 'DispatchedByContingency',
85
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',
86
159
  } satisfies Record<string, DocumentTrackingAction>;
87
160
 
88
- export type DocumentOrigin = 'Internal' | 'DocDigital';
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';
89
178
 
90
179
  export const DocumentOrigin = {
91
180
  Internal: 'Internal',
92
181
  DocDigital: 'DocDigital',
182
+ Manual: 'Manual',
93
183
  } satisfies Record<string, DocumentOrigin>;
94
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
+
95
194
  export type DocumentDispatchStatus = 'Pending' | 'Dispatched' | 'Returned';
96
195
 
97
196
  export const DocumentDispatchStatus = {
@@ -183,12 +282,13 @@ export const CaseFileActuationType = {
183
282
  PowerRegistration: 'PowerRegistration',
184
283
  } satisfies Record<string, CaseFileActuationType>;
185
284
 
186
- export type CaseFileEntryKind = 'Document' | 'File' | 'CaseFile';
285
+ export type CaseFileEntryKind = 'Document' | 'File' | 'CaseFile' | 'Physical';
187
286
 
188
287
  export const CaseFileEntryKind = {
189
288
  Document: 'Document',
190
289
  File: 'File',
191
290
  CaseFile: 'CaseFile',
291
+ Physical: 'Physical',
192
292
  } satisfies Record<string, CaseFileEntryKind>;
193
293
 
194
294
  export type CaseFileActorRelation =
@@ -217,20 +317,28 @@ export type CaseFileTrackingAction =
217
317
  | 'Updated'
218
318
  | 'EntryAdded'
219
319
  | 'EntryVoided'
320
+ | 'EntryMoved'
220
321
  | 'ParticipantAdded'
221
322
  | 'ParticipantRemoved'
222
323
  | 'Closed'
223
- | 'Exported';
324
+ | 'Exported'
325
+ | 'ShareLinkCreated'
326
+ | 'ShareLinkRevoked'
327
+ | 'DispositionRecorded';
224
328
 
225
329
  export const CaseFileTrackingAction = {
226
330
  Created: 'Created',
227
331
  Updated: 'Updated',
228
332
  EntryAdded: 'EntryAdded',
229
333
  EntryVoided: 'EntryVoided',
334
+ EntryMoved: 'EntryMoved',
230
335
  ParticipantAdded: 'ParticipantAdded',
231
336
  ParticipantRemoved: 'ParticipantRemoved',
232
337
  Closed: 'Closed',
233
338
  Exported: 'Exported',
339
+ ShareLinkCreated: 'ShareLinkCreated',
340
+ ShareLinkRevoked: 'ShareLinkRevoked',
341
+ DispositionRecorded: 'DispositionRecorded',
234
342
  } satisfies Record<string, CaseFileTrackingAction>;
235
343
 
236
344
  export type CaseFileAccessAction = 'Viewed' | 'FileDownloaded' | 'Exported';
@@ -241,6 +349,30 @@ export const CaseFileAccessAction = {
241
349
  Exported: 'Exported',
242
350
  } satisfies Record<string, CaseFileAccessAction>;
243
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
+
244
376
  export type WorkFolderItemKind = 'Document' | 'File';
245
377
 
246
378
  export const WorkFolderItemKind = {
@@ -248,6 +380,346 @@ export const WorkFolderItemKind = {
248
380
  File: 'File',
249
381
  } satisfies Record<string, WorkFolderItemKind>;
250
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
+
251
723
  export interface DocumentTypeEntity {
252
724
  id: string;
253
725
  name: string;
@@ -258,12 +730,39 @@ export interface DocumentTypeEntity {
258
730
  correlativeYear?: number | null;
259
731
  resetsYearly: boolean;
260
732
  numbered: boolean;
261
- directorateCodeReference?: number | null;
733
+ numberingScope: DocumentNumberingScope;
734
+ usesPartsOffice: boolean;
735
+ folioDirectorateCode?: number | null;
736
+ folioDepartmentId?: string | null;
737
+ folioUnitName?: string | null;
738
+ internalDistribution: DistributionRule;
739
+ externalDistribution: DistributionRule;
740
+ emailDistribution: DistributionRule;
741
+ laterDistribution: boolean;
742
+ decreeKind?: DecreeKind | null;
743
+ folioFormat?: JsonValue | null;
744
+ processingSlaDays?: number | null;
745
+ turnSlaDays?: number | null;
746
+ reviewSlaDays?: number | null;
747
+ responseSlaDays?: number | null;
748
+ activeTransparency: boolean;
749
+ transparencySection?: string | null;
750
+ directorateCodeReferences: number[];
751
+ draftReviewDirectorateCode?: number | null;
752
+ draftReviewDirectorateName?: string | null;
753
+ archivalSeries?: ArchivalSeriesEntity | null;
754
+ archivalSeriesId?: string | null;
755
+ issuingEntity?: IssuingEntityEntity | null;
756
+ issuingEntityId?: string | null;
262
757
  enabled: boolean;
758
+ version: number;
759
+ versions?: DocumentTypeVersionEntity[];
263
760
  documents?: DocumentEntity[];
761
+ draftingRequests?: DraftingRequestEntity[];
264
762
  annulledNumbers?: DocumentAnnulledNumberEntity[];
265
763
  flowSteps?: DocumentTypeFlowStepEntity[];
266
764
  signatureBatches?: SignatureBatchEntity[];
765
+ template?: DocumentTemplateEntity | null;
267
766
  deleted: boolean;
268
767
  createdAt: string;
269
768
  updatedAt: string;
@@ -272,24 +771,32 @@ export interface DocumentTypeEntity {
272
771
  export interface DocumentEntity {
273
772
  id: string;
274
773
  subject: string;
774
+ description?: string | null;
275
775
  keywords: string[];
276
776
  accessLevel: DocumentAccessLevel;
277
777
  hasSensitiveData: boolean;
778
+ restrictionEndsAt?: string | null;
278
779
  status: DocumentStatus;
279
780
  correlative?: number | null;
280
781
  correlativeYear?: number | null;
281
782
  numberedAt?: string | null;
783
+ stampedAt?: string | null;
784
+ folioStamp?: JsonValue | null;
282
785
  verificationCode?: string | null;
283
- signatureSheet: boolean;
284
786
  annulledAt?: string | null;
285
787
  annulmentReason?: string | null;
286
788
  responseDueAt?: string | null;
789
+ responseDueBusinessDays?: number | null;
790
+ procedure?: ProcedureEntity | null;
791
+ procedureId?: string | null;
287
792
  origin: DocumentOrigin;
288
793
  intakeNumber?: number | null;
289
794
  intakeYear?: number | null;
290
795
  externalFolio?: string | null;
291
796
  externalSender?: string | null;
292
797
  externalDate?: string | null;
798
+ intakeMeans?: CommunicationMeans | null;
799
+ composition?: JsonValue | null;
293
800
  contentText?: string | null;
294
801
  textExtractedAt?: string | null;
295
802
  batch?: SignatureBatchEntity | null;
@@ -299,16 +806,25 @@ export interface DocumentEntity {
299
806
  replies?: DocumentEntity[];
300
807
  directorateCodeReference?: number | null;
301
808
  departmentId?: string | null;
809
+ issuingUnitName?: string | null;
810
+ issuingDirectorateName?: string | null;
811
+ stampPlacements?: JsonValue | null;
812
+ selfValidated: boolean;
813
+ selfValidationNote?: string | null;
302
814
  createdByEmployeeId: string;
303
815
  createdByFullName: string;
304
816
  originalFileId: string;
305
817
  originalFileName: string;
306
818
  currentFileId?: string | null;
307
819
  currentFileUrl?: string | null;
820
+ fileFormat?: string | null;
308
821
  submittedAt?: string | null;
822
+ processingOverdueRemindedAt?: string | null;
309
823
  finishedAt?: string | null;
310
824
  documentType?: DocumentTypeEntity;
311
825
  documentTypeId: string;
826
+ documentTypeVersion?: DocumentTypeVersionEntity | null;
827
+ documentTypeVersionId?: string | null;
312
828
  participants?: DocumentParticipantEntity[];
313
829
  attachments?: DocumentAttachmentEntity[];
314
830
  trackings?: DocumentTrackingEntity[];
@@ -318,6 +834,25 @@ export interface DocumentEntity {
318
834
  caseFileEntries?: CaseFileEntryEntity[];
319
835
  workFolderItems?: WorkFolderItemEntity[];
320
836
  externalRecipients?: DocumentExternalRecipientEntity[];
837
+ emailCopies?: DocumentEmailCopyEntity[];
838
+ accesses?: DocumentAccessEntity[];
839
+ disposition?: DispositionRecordEntity | null;
840
+ dispositionId?: string | null;
841
+ transparencyStatus?: TransparencyStatus | null;
842
+ transparencyUrl?: string | null;
843
+ transparencyNote?: string | null;
844
+ transparencyAt?: string | null;
845
+ transparencyByFullName?: string | null;
846
+ redactedFileId?: string | null;
847
+ redactedFileName?: string | null;
848
+ accessRequestResponses?: AccessRequestEntity[];
849
+ dataRightsResponses?: DataRightsRequestEntity[];
850
+ versions?: DocumentVersionEntity[];
851
+ comments?: DocumentCommentEntity[];
852
+ draftReviews?: DocumentDraftReviewEntity[];
853
+ draftingRequest?: DraftingRequestEntity | null;
854
+ internalNotes?: DocumentInternalNoteEntity[];
855
+ accessRequestDeliveries?: AccessRequestDocumentEntity[];
321
856
  dispatch?: DocumentDispatchEntity | null;
322
857
  docDigitalInbound?: DocDigitalInboundEntity | null;
323
858
  deleted: boolean;
@@ -349,6 +884,9 @@ export interface DocumentParticipantEntity {
349
884
  position?: string | null;
350
885
  observation?: string | null;
351
886
  resolvedAt?: string | null;
887
+ initials?: string | null;
888
+ currentSince?: string | null;
889
+ overdueRemindedAt?: string | null;
352
890
  document?: DocumentEntity;
353
891
  documentId: string;
354
892
  createdAt: string;
@@ -372,6 +910,7 @@ export interface DocumentTrackingEntity {
372
910
  id: string;
373
911
  action: DocumentTrackingAction;
374
912
  observation?: string | null;
913
+ sha256?: string | null;
375
914
  employeeId?: string | null;
376
915
  employeeFullName?: string | null;
377
916
  document?: DocumentEntity;
@@ -409,9 +948,11 @@ export interface DocumentRecipientEntity {
409
948
  export interface DocumentDeliveryEntity {
410
949
  id: string;
411
950
  origin: DocumentDeliveryOrigin;
412
- employeeId: string;
413
- fullName: string;
951
+ employeeId?: string | null;
952
+ fullName?: string | null;
414
953
  position?: string | null;
954
+ directorateCodeReference?: number | null;
955
+ departmentId?: string | null;
415
956
  areaName?: string | null;
416
957
  sentByEmployeeId?: string | null;
417
958
  sentByFullName?: string | null;
@@ -422,11 +963,63 @@ export interface DocumentDeliveryEntity {
422
963
  readAt?: string | null;
423
964
  closedAt?: string | null;
424
965
  closingNote?: string | null;
966
+ readByEmployeeId?: string | null;
967
+ readByFullName?: string | null;
968
+ closedByEmployeeId?: string | null;
969
+ closedByFullName?: string | null;
970
+ dueSoonRemindedAt?: string | null;
971
+ overdueRemindedAt?: string | null;
425
972
  document?: DocumentEntity;
426
973
  documentId: string;
427
974
  createdAt: string;
428
975
  }
429
976
 
977
+ export interface CategoryNumberingEntity {
978
+ category: DocumentCategory;
979
+ nextCorrelative: number;
980
+ correlativeYear?: number | null;
981
+ resetsYearly: boolean;
982
+ updatedAt: string;
983
+ }
984
+
985
+ export interface DocumentTypeVersionEntity {
986
+ id: string;
987
+ version: number;
988
+ name: string;
989
+ abbreviation?: string | null;
990
+ category: DocumentCategory;
991
+ description?: string | null;
992
+ numbered: boolean;
993
+ numberingScope: DocumentNumberingScope;
994
+ usesPartsOffice: boolean;
995
+ decreeKind?: DecreeKind | null;
996
+ folioFormat?: JsonValue | null;
997
+ folioDirectorateCode?: number | null;
998
+ folioDepartmentId?: string | null;
999
+ folioUnitName?: string | null;
1000
+ internalDistribution: DistributionRule;
1001
+ externalDistribution: DistributionRule;
1002
+ emailDistribution: DistributionRule;
1003
+ laterDistribution: boolean;
1004
+ processingSlaDays?: number | null;
1005
+ turnSlaDays?: number | null;
1006
+ reviewSlaDays?: number | null;
1007
+ responseSlaDays?: number | null;
1008
+ activeTransparency: boolean;
1009
+ transparencySection?: string | null;
1010
+ directorateCodeReferences: number[];
1011
+ draftReviewDirectorateCode?: number | null;
1012
+ draftReviewDirectorateName?: string | null;
1013
+ issuingEntityId?: string | null;
1014
+ templateVersion?: number | null;
1015
+ flowSteps: JsonValue;
1016
+ createdByFullName?: string | null;
1017
+ createdAt: string;
1018
+ documentType?: DocumentTypeEntity;
1019
+ documentTypeId: string;
1020
+ documents?: DocumentEntity[];
1021
+ }
1022
+
430
1023
  export interface DocumentTypeFlowStepEntity {
431
1024
  id: string;
432
1025
  role: DocumentParticipantRole;
@@ -436,6 +1029,7 @@ export interface DocumentTypeFlowStepEntity {
436
1029
  directorateCodeReference?: number | null;
437
1030
  name: string;
438
1031
  position?: string | null;
1032
+ withPrevious: boolean;
439
1033
  documentType?: DocumentTypeEntity;
440
1034
  documentTypeId: string;
441
1035
  createdAt: string;
@@ -447,8 +1041,13 @@ export interface ProcedureEntity {
447
1041
  cpatId?: string | null;
448
1042
  cpatCode?: string | null;
449
1043
  description?: string | null;
1044
+ kind?: string | null;
1045
+ responsibleArea?: string | null;
1046
+ cpatStatus?: string | null;
1047
+ fromCpat: boolean;
450
1048
  enabled: boolean;
451
1049
  caseFiles?: CaseFileEntity[];
1050
+ documents?: DocumentEntity[];
452
1051
  deleted: boolean;
453
1052
  createdAt: string;
454
1053
  updatedAt: string;
@@ -470,6 +1069,9 @@ export interface CaseFileEntity {
470
1069
  status: CaseFileStatus;
471
1070
  accessLevel: DocumentAccessLevel;
472
1071
  hasSensitiveData: boolean;
1072
+ restrictionEndsAt?: string | null;
1073
+ archivalSeries?: ArchivalSeriesEntity | null;
1074
+ archivalSeriesId?: string | null;
473
1075
  incorporationMechanism: CaseFileIncorporationMechanism;
474
1076
  schemaVersion: string;
475
1077
  procedure?: ProcedureEntity;
@@ -478,6 +1080,8 @@ export interface CaseFileEntity {
478
1080
  responsibleFullName: string;
479
1081
  responsiblePosition?: string | null;
480
1082
  closedAt?: string | null;
1083
+ disposition?: DispositionRecordEntity | null;
1084
+ dispositionId?: string | null;
481
1085
  closedByEmployeeId?: string | null;
482
1086
  closedByFullName?: string | null;
483
1087
  closingNote?: string | null;
@@ -488,6 +1092,8 @@ export interface CaseFileEntity {
488
1092
  trackings?: CaseFileTrackingEntity[];
489
1093
  metadataChanges?: CaseFileMetadataChangeEntity[];
490
1094
  accesses?: CaseFileAccessEntity[];
1095
+ shareLinks?: CaseFileShareLinkEntity[];
1096
+ integratedPdf?: JsonValue | null;
491
1097
  createdAt: string;
492
1098
  updatedAt: string;
493
1099
  workFolder?: WorkFolderEntity | null;
@@ -522,6 +1128,7 @@ export interface CaseFileEntryEntity {
522
1128
  kind: CaseFileEntryKind;
523
1129
  actuationType: CaseFileActuationType;
524
1130
  title: string;
1131
+ folder?: string | null;
525
1132
  document?: DocumentEntity | null;
526
1133
  documentId?: string | null;
527
1134
  fileId?: string | null;
@@ -532,11 +1139,16 @@ export interface CaseFileEntryEntity {
532
1139
  keywords: string[];
533
1140
  accessLevel?: DocumentAccessLevel | null;
534
1141
  hasSensitiveData?: boolean | null;
1142
+ physicalLocation?: string | null;
1143
+ physicalReason?: string | null;
1144
+ pageCount?: number | null;
535
1145
  linkedCaseFile?: CaseFileEntity | null;
536
1146
  linkedCaseFileId?: string | null;
537
1147
  sha256?: string | null;
538
1148
  size?: number | null;
539
1149
  hasAdvancedSignature: boolean;
1150
+ fileFormat?: string | null;
1151
+ signatureCheck?: JsonValue | null;
540
1152
  incorporatedByEmployeeId: string;
541
1153
  incorporatedByFullName: string;
542
1154
  voidedAt?: string | null;
@@ -575,10 +1187,58 @@ export interface CaseFileAccessEntity {
575
1187
  id: string;
576
1188
  action: CaseFileAccessAction;
577
1189
  entryId?: string | null;
578
- employeeId: string;
1190
+ employeeId?: string | null;
579
1191
  employeeFullName: string;
1192
+ shareLink?: CaseFileShareLinkEntity | null;
1193
+ shareLinkId?: string | null;
1194
+ caseFile?: CaseFileEntity;
1195
+ caseFileId: string;
1196
+ createdAt: string;
1197
+ }
1198
+
1199
+ export interface CaseFileShareLinkEntity {
1200
+ id: string;
1201
+ tokenHash: string;
1202
+ recipient: string;
1203
+ recipientEmail?: string | null;
1204
+ purpose?: string | null;
1205
+ allowExport: boolean;
1206
+ expiresAt: string;
1207
+ createdByEmployeeId: string;
1208
+ createdByFullName: string;
1209
+ revokedAt?: string | null;
1210
+ revokedByEmployeeId?: string | null;
1211
+ revokedByFullName?: string | null;
580
1212
  caseFile?: CaseFileEntity;
581
1213
  caseFileId: string;
1214
+ accesses?: CaseFileAccessEntity[];
1215
+ createdAt: string;
1216
+ }
1217
+
1218
+ export interface DocumentEmailCopyEntity {
1219
+ id: string;
1220
+ name: string;
1221
+ email: string;
1222
+ tokenHash?: string | null;
1223
+ expiresAt?: string | null;
1224
+ issuedAt?: string | null;
1225
+ openedAt?: string | null;
1226
+ downloadCount: number;
1227
+ document?: DocumentEntity;
1228
+ documentId: string;
1229
+ createdAt: string;
1230
+ }
1231
+
1232
+ export interface ScanSessionEntity {
1233
+ id: string;
1234
+ tokenHash: string;
1235
+ status: ScanSessionStatus;
1236
+ employeeId: string;
1237
+ pages: JsonValue;
1238
+ fileId?: string | null;
1239
+ fileName?: string | null;
1240
+ expiresAt: string;
1241
+ finishedAt?: string | null;
582
1242
  createdAt: string;
583
1243
  }
584
1244
 
@@ -609,6 +1269,11 @@ export interface DocumentDispatchEntity {
609
1269
  returnedByEmployeeId?: string | null;
610
1270
  returnedByFullName?: string | null;
611
1271
  returnReason?: string | null;
1272
+ contingencyMeans?: CommunicationMeans | null;
1273
+ contingencySentTo?: string | null;
1274
+ contingencyReason?: string | null;
1275
+ contingencyReceiptFileId?: string | null;
1276
+ contingencyReceiptName?: string | null;
612
1277
  document?: DocumentEntity;
613
1278
  documentId: string;
614
1279
  createdAt: string;
@@ -630,9 +1295,12 @@ export interface DocDigitalInboundEntity {
630
1295
  senderEntityName?: string | null;
631
1296
  senderName?: string | null;
632
1297
  senderPosition?: string | null;
1298
+ recipientEntityId?: number | null;
1299
+ recipientEntityName?: string | null;
633
1300
  fileId?: string | null;
634
1301
  fileName?: string | null;
635
1302
  attachments: JsonValue;
1303
+ signatureCheck?: JsonValue | null;
636
1304
  registeredAt?: string | null;
637
1305
  registeredByEmployeeId?: string | null;
638
1306
  registeredByFullName?: string | null;
@@ -648,6 +1316,121 @@ export interface DocDigitalInboundEntity {
648
1316
  updatedAt: string;
649
1317
  }
650
1318
 
1319
+ export interface HolidayEntity {
1320
+ id: string;
1321
+ date: string;
1322
+ name: string;
1323
+ source: HolidaySource;
1324
+ kind?: string | null;
1325
+ excluded: boolean;
1326
+ createdAt: string;
1327
+ updatedAt: string;
1328
+ }
1329
+
1330
+ export interface ProcedureSyncEntity {
1331
+ institutionCode: string;
1332
+ syncedAt: string;
1333
+ total: number;
1334
+ resourceName: string;
1335
+ }
1336
+
1337
+ export interface HolidaySyncEntity {
1338
+ year: number;
1339
+ syncedAt: string;
1340
+ total: number;
1341
+ }
1342
+
1343
+ export interface TextSnippetEntity {
1344
+ id: string;
1345
+ title: string;
1346
+ text: string;
1347
+ section: TextSnippetSection;
1348
+ keywords: string[];
1349
+ enabled: boolean;
1350
+ deleted: boolean;
1351
+ createdAt: string;
1352
+ updatedAt: string;
1353
+ }
1354
+
1355
+ export interface DocumentTemplateEntity {
1356
+ id: string;
1357
+ name: string;
1358
+ description?: string | null;
1359
+ documentTypeIds: string[];
1360
+ documentType?: DocumentTypeEntity | null;
1361
+ documentTypeId?: string | null;
1362
+ content: JsonValue;
1363
+ version: number;
1364
+ enabled: boolean;
1365
+ updatedByFullName?: string | null;
1366
+ versions?: DocumentTemplateVersionEntity[];
1367
+ deleted: boolean;
1368
+ createdAt: string;
1369
+ updatedAt: string;
1370
+ }
1371
+
1372
+ export interface DocumentDraftReviewEntity {
1373
+ id: string;
1374
+ documentId: string;
1375
+ document?: DocumentEntity;
1376
+ round: number;
1377
+ stage: DraftReviewStage;
1378
+ versionNumber: number;
1379
+ directorateCodeReference: number;
1380
+ directorateName: string;
1381
+ reviewerEmployeeId: string;
1382
+ reviewerFullName: string;
1383
+ requestedByEmployeeId: string;
1384
+ requestedByFullName: string;
1385
+ requestedAt: string;
1386
+ status: DraftReviewStatus;
1387
+ observation?: string | null;
1388
+ resolvedAt?: string | null;
1389
+ overdueRemindedAt?: string | null;
1390
+ }
1391
+
1392
+ export interface DocumentTemplateVersionEntity {
1393
+ id: string;
1394
+ templateId: string;
1395
+ template?: DocumentTemplateEntity;
1396
+ version: number;
1397
+ content: JsonValue;
1398
+ createdByFullName?: string | null;
1399
+ createdAt: string;
1400
+ }
1401
+
1402
+ export interface ArchivalSeriesEntity {
1403
+ id: string;
1404
+ code: string;
1405
+ name: string;
1406
+ section?: string | null;
1407
+ description?: string | null;
1408
+ managementYears?: number | null;
1409
+ centralYears?: number | null;
1410
+ finalDisposition?: FinalDisposition | null;
1411
+ retentionNote?: string | null;
1412
+ enabled: boolean;
1413
+ documentTypes?: DocumentTypeEntity[];
1414
+ caseFiles?: CaseFileEntity[];
1415
+ dispositions?: DispositionRecordEntity[];
1416
+ deleted: boolean;
1417
+ createdAt: string;
1418
+ updatedAt: string;
1419
+ }
1420
+
1421
+ export interface IssuingEntityEntity {
1422
+ id: string;
1423
+ name: string;
1424
+ shortName?: string | null;
1425
+ directorateCodeReferences: number[];
1426
+ docDigitalEntityId?: number | null;
1427
+ enabled: boolean;
1428
+ documentTypes?: DocumentTypeEntity[];
1429
+ deleted: boolean;
1430
+ createdAt: string;
1431
+ updatedAt: string;
1432
+ }
1433
+
651
1434
  export interface IntakeSequenceEntity {
652
1435
  year: number;
653
1436
  next: number;
@@ -692,4 +1475,469 @@ export interface WorkFolderItemEntity {
692
1475
  createdAt: string;
693
1476
  }
694
1477
 
1478
+ export interface ServiceOutageEntity {
1479
+ id: string;
1480
+ kind: ServiceOutageKind;
1481
+ startedAt: string;
1482
+ endedAt?: string | null;
1483
+ cause: string;
1484
+ affectedServices?: string | null;
1485
+ createdByEmployeeId: string;
1486
+ createdByFullName: string;
1487
+ updatedByFullName?: string | null;
1488
+ deleted: boolean;
1489
+ createdAt: string;
1490
+ updatedAt: string;
1491
+ }
1492
+
1493
+ export interface QualityMetricSettingEntity {
1494
+ key: QualityMetricKey;
1495
+ threshold: number;
1496
+ declaredValue?: number | null;
1497
+ declaredNote?: string | null;
1498
+ declaredAt?: string | null;
1499
+ declaredByFullName?: string | null;
1500
+ updatedAt: string;
1501
+ }
1502
+
1503
+ export interface ServiceTimingEntity {
1504
+ hour: string;
1505
+ count: number;
1506
+ errorCount: number;
1507
+ totalMs: number;
1508
+ maxMs: number;
1509
+ under100: number;
1510
+ under250: number;
1511
+ under500: number;
1512
+ under1000: number;
1513
+ under2000: number;
1514
+ under5000: number;
1515
+ over5000: number;
1516
+ }
1517
+
1518
+ export interface DocumentAccessEntity {
1519
+ id: string;
1520
+ action: DocumentAccessAction;
1521
+ employeeId?: string | null;
1522
+ employeeFullName: string;
1523
+ document?: DocumentEntity;
1524
+ documentId: string;
1525
+ createdAt: string;
1526
+ }
1527
+
1528
+ export interface AuditLogEntity {
1529
+ id: string;
1530
+ entity: AuditEntity;
1531
+ action: AuditAction;
1532
+ entityId?: string | null;
1533
+ name: string;
1534
+ details?: JsonValue | null;
1535
+ employeeId?: string | null;
1536
+ employeeFullName: string;
1537
+ createdAt: string;
1538
+ }
1539
+
1540
+ export interface DispositionRecordEntity {
1541
+ id: string;
1542
+ kind: DispositionKind;
1543
+ number: number;
1544
+ year: number;
1545
+ observation?: string | null;
1546
+ series?: ArchivalSeriesEntity;
1547
+ seriesId: string;
1548
+ documents?: DocumentEntity[];
1549
+ caseFiles?: CaseFileEntity[];
1550
+ createdByEmployeeId: string;
1551
+ createdByFullName: string;
1552
+ createdAt: string;
1553
+ }
1554
+
1555
+ export interface AccessRequestEntity {
1556
+ id: string;
1557
+ number: number;
1558
+ year: number;
1559
+ externalFolio?: string | null;
1560
+ channel: AccessRequestChannel;
1561
+ receivedAt: string;
1562
+ requesterName: string;
1563
+ requesterEmail?: string | null;
1564
+ requesterAddress?: string | null;
1565
+ requestText: string;
1566
+ deliveryFormat?: string | null;
1567
+ status: AccessRequestStatus;
1568
+ correctionRequestedAt?: string | null;
1569
+ correctionDueAt?: string | null;
1570
+ correctedAt?: string | null;
1571
+ dueAt: string;
1572
+ extendedAt?: string | null;
1573
+ extensionNote?: string | null;
1574
+ assigneeEmployeeId?: string | null;
1575
+ assigneeFullName?: string | null;
1576
+ thirdPartyNotifiedAt?: string | null;
1577
+ oppositionDueAt?: string | null;
1578
+ thirdPartyOpposed?: boolean | null;
1579
+ resolution?: AccessRequestResolution | null;
1580
+ resolvedAt?: string | null;
1581
+ denialGrounds: string[];
1582
+ derivedTo?: string | null;
1583
+ resolutionNote?: string | null;
1584
+ responseDocument?: DocumentEntity | null;
1585
+ responseDocumentId?: string | null;
1586
+ appealedAt?: string | null;
1587
+ appealNote?: string | null;
1588
+ createdByEmployeeId: string;
1589
+ createdByFullName: string;
1590
+ documents?: AccessRequestDocumentEntity[];
1591
+ events?: AccessRequestEventEntity[];
1592
+ createdAt: string;
1593
+ updatedAt: string;
1594
+ }
1595
+
1596
+ export interface AccessRequestDocumentEntity {
1597
+ accessRequest?: AccessRequestEntity;
1598
+ accessRequestId: string;
1599
+ document?: DocumentEntity;
1600
+ documentId: string;
1601
+ }
1602
+
1603
+ export interface AccessRequestEventEntity {
1604
+ id: string;
1605
+ action: AccessRequestEventAction;
1606
+ note?: string | null;
1607
+ employeeId?: string | null;
1608
+ employeeFullName: string;
1609
+ accessRequest?: AccessRequestEntity;
1610
+ accessRequestId: string;
1611
+ createdAt: string;
1612
+ }
1613
+
1614
+ export interface DataTreatmentEntity {
1615
+ id: string;
1616
+ name: string;
1617
+ purpose: string;
1618
+ legalBasis: DataLegalBasis;
1619
+ legalBasisDetail?: string | null;
1620
+ dataCategories: string[];
1621
+ sensitiveData: boolean;
1622
+ dataSubjects: string;
1623
+ recipients?: string | null;
1624
+ source?: string | null;
1625
+ retention?: string | null;
1626
+ securityMeasures?: string | null;
1627
+ internationalTransfer?: string | null;
1628
+ responsibleUnit?: string | null;
1629
+ published: boolean;
1630
+ requests?: DataRightsRequestEntity[];
1631
+ breaches?: DataBreachEntity[];
1632
+ enabled: boolean;
1633
+ deleted: boolean;
1634
+ createdAt: string;
1635
+ updatedAt: string;
1636
+ }
1637
+
1638
+ export interface DataRightsRequestEntity {
1639
+ id: string;
1640
+ number: number;
1641
+ year: number;
1642
+ channel: DataRightsChannel;
1643
+ receivedAt: string;
1644
+ rights: DataRight[];
1645
+ requesterName: string;
1646
+ requesterRut?: string | null;
1647
+ requesterEmail?: string | null;
1648
+ requesterAddress?: string | null;
1649
+ representativeName?: string | null;
1650
+ identityVerifiedAt?: string | null;
1651
+ identityNote?: string | null;
1652
+ requestText: string;
1653
+ treatment?: DataTreatmentEntity | null;
1654
+ treatmentId?: string | null;
1655
+ status: DataRightsRequestStatus;
1656
+ acknowledgedAt?: string | null;
1657
+ dueAt: string;
1658
+ extendedAt?: string | null;
1659
+ extensionNote?: string | null;
1660
+ blockingRequested: boolean;
1661
+ blockingReason?: string | null;
1662
+ blockingDueAt?: string | null;
1663
+ blockingGranted?: boolean | null;
1664
+ blockingResolvedAt?: string | null;
1665
+ blockingNote?: string | null;
1666
+ blockingLiftedAt?: string | null;
1667
+ blockingLiftNote?: string | null;
1668
+ assigneeEmployeeId?: string | null;
1669
+ assigneeFullName?: string | null;
1670
+ resolution?: DataRightsResolution | null;
1671
+ resolvedAt?: string | null;
1672
+ denialGrounds: string[];
1673
+ resolutionNote?: string | null;
1674
+ responseDocument?: DocumentEntity | null;
1675
+ responseDocumentId?: string | null;
1676
+ responseSentAt?: string | null;
1677
+ responseSentTo?: string | null;
1678
+ responseSentMeans?: CommunicationMeans | null;
1679
+ complaintAt?: string | null;
1680
+ complaintNote?: string | null;
1681
+ createdByEmployeeId: string;
1682
+ createdByFullName: string;
1683
+ events?: DataRightsEventEntity[];
1684
+ createdAt: string;
1685
+ updatedAt: string;
1686
+ }
1687
+
1688
+ export interface DataRightsEventEntity {
1689
+ id: string;
1690
+ action: DataRightsEventAction;
1691
+ note?: string | null;
1692
+ employeeId?: string | null;
1693
+ employeeFullName: string;
1694
+ request?: DataRightsRequestEntity;
1695
+ requestId: string;
1696
+ createdAt: string;
1697
+ }
1698
+
1699
+ export interface DataBreachEntity {
1700
+ id: string;
1701
+ number: number;
1702
+ year: number;
1703
+ detectedAt: string;
1704
+ occurredAt?: string | null;
1705
+ kinds: DataBreachKind[];
1706
+ description: string;
1707
+ effects?: string | null;
1708
+ dataCategories: string[];
1709
+ affectedCount?: number | null;
1710
+ measures?: string | null;
1711
+ sensitiveData: boolean;
1712
+ minorsData: boolean;
1713
+ financialData: boolean;
1714
+ riskToRights: boolean;
1715
+ treatment?: DataTreatmentEntity | null;
1716
+ treatmentId?: string | null;
1717
+ status: DataBreachStatus;
1718
+ agencyReportedAt?: string | null;
1719
+ agencyReportNote?: string | null;
1720
+ holdersNotifiedAt?: string | null;
1721
+ holdersNoticeMeans?: DataBreachNoticeMeans | null;
1722
+ holdersNoticeNote?: string | null;
1723
+ closedAt?: string | null;
1724
+ closeNote?: string | null;
1725
+ createdByEmployeeId: string;
1726
+ createdByFullName: string;
1727
+ events?: DataBreachEventEntity[];
1728
+ createdAt: string;
1729
+ updatedAt: string;
1730
+ }
1731
+
1732
+ export interface DataBreachEventEntity {
1733
+ id: string;
1734
+ action: DataBreachEventAction;
1735
+ note?: string | null;
1736
+ employeeId?: string | null;
1737
+ employeeFullName: string;
1738
+ breach?: DataBreachEntity;
1739
+ breachId: string;
1740
+ createdAt: string;
1741
+ }
1742
+
1743
+ export interface DeskFileEntity {
1744
+ id: string;
1745
+ ownerEmployeeId: string;
1746
+ fileId: string;
1747
+ fileName: string;
1748
+ size: number;
1749
+ sha256: string;
1750
+ source: DeskFileSource;
1751
+ description?: string | null;
1752
+ classifiedAt?: string | null;
1753
+ target?: DeskFileTarget | null;
1754
+ targetId?: string | null;
1755
+ targetLabel?: string | null;
1756
+ removedAt?: string | null;
1757
+ mailIntake?: MailIntakeEntity | null;
1758
+ mailIntakeId?: string | null;
1759
+ createdAt: string;
1760
+ updatedAt: string;
1761
+ }
1762
+
1763
+ export interface MailIntakeEntity {
1764
+ id: string;
1765
+ sha256: string;
1766
+ messageId?: string | null;
1767
+ fromAddress: string;
1768
+ fromName?: string | null;
1769
+ subject: string;
1770
+ textPreview?: string | null;
1771
+ sentAt?: string | null;
1772
+ emlFileId: string;
1773
+ emlFileName: string;
1774
+ size: number;
1775
+ attachments: JsonValue;
1776
+ authentication: MailAuthentication;
1777
+ authDetail?: string | null;
1778
+ status: MailIntakeStatus;
1779
+ resolvedAt?: string | null;
1780
+ resolvedByEmployeeId?: string | null;
1781
+ deskFiles?: DeskFileEntity[];
1782
+ createdAt: string;
1783
+ updatedAt: string;
1784
+ }
1785
+
1786
+ export interface VisaInitialsEntity {
1787
+ employeeId: string;
1788
+ initials: string;
1789
+ createdAt: string;
1790
+ updatedAt: string;
1791
+ }
1792
+
1793
+ export interface NotificationPreferenceEntity {
1794
+ employeeId: string;
1795
+ mode: NotificationMode;
1796
+ digestSentOn?: string | null;
1797
+ createdAt: string;
1798
+ updatedAt: string;
1799
+ }
1800
+
1801
+ export interface PushSubscriptionEntity {
1802
+ id: string;
1803
+ employeeId: string;
1804
+ endpoint: string;
1805
+ p256dh: string;
1806
+ auth: string;
1807
+ userAgent?: string | null;
1808
+ lastSuccessAt?: string | null;
1809
+ failures: number;
1810
+ createdAt: string;
1811
+ updatedAt: string;
1812
+ }
1813
+
1814
+ export interface DocumentVersionEntity {
1815
+ id: string;
1816
+ documentId: string;
1817
+ document?: DocumentEntity;
1818
+ number: number;
1819
+ subject: string;
1820
+ fileId: string;
1821
+ fileName: string;
1822
+ sha256?: string | null;
1823
+ composition?: JsonValue | null;
1824
+ note?: string | null;
1825
+ status: DocumentStatus;
1826
+ correction: boolean;
1827
+ createdByEmployeeId: string;
1828
+ createdByFullName: string;
1829
+ createdAt: string;
1830
+ }
1831
+
1832
+ export interface DocumentCommentEntity {
1833
+ id: string;
1834
+ documentId: string;
1835
+ document?: DocumentEntity;
1836
+ versionNumber: number;
1837
+ section?: string | null;
1838
+ quote?: string | null;
1839
+ text: string;
1840
+ authorEmployeeId: string;
1841
+ authorFullName: string;
1842
+ authorRole: string;
1843
+ resolvedAt?: string | null;
1844
+ resolvedByFullName?: string | null;
1845
+ resolutionNote?: string | null;
1846
+ createdAt: string;
1847
+ }
1848
+
1849
+ export interface DraftingRequestEntity {
1850
+ id: string;
1851
+ number: number;
1852
+ year: number;
1853
+ subject: string;
1854
+ details: string;
1855
+ documentTypeId?: string | null;
1856
+ documentType?: DocumentTypeEntity | null;
1857
+ dueAt?: string | null;
1858
+ requesterEmployeeId: string;
1859
+ requesterFullName: string;
1860
+ requesterAreaName?: string | null;
1861
+ requesterDirectorateCode?: number | null;
1862
+ requesterDepartmentId?: string | null;
1863
+ requesterDirectorateName?: string | null;
1864
+ targetDirectorateCode: number;
1865
+ targetDirectorateName: string;
1866
+ targetDepartmentId?: string | null;
1867
+ targetDepartmentName?: string | null;
1868
+ status: DraftingRequestStatus;
1869
+ takenByEmployeeId?: string | null;
1870
+ takenByFullName?: string | null;
1871
+ takenAt?: string | null;
1872
+ closedAt?: string | null;
1873
+ closingNote?: string | null;
1874
+ documentId?: string | null;
1875
+ document?: DocumentEntity | null;
1876
+ recipients?: DraftingRequestRecipientEntity[];
1877
+ attachments?: DraftingRequestAttachmentEntity[];
1878
+ events?: DraftingRequestEventEntity[];
1879
+ createdAt: string;
1880
+ updatedAt: string;
1881
+ }
1882
+
1883
+ export interface DraftingRequestRecipientEntity {
1884
+ id: string;
1885
+ requestId: string;
1886
+ request?: DraftingRequestEntity;
1887
+ employeeId: string;
1888
+ }
1889
+
1890
+ export interface DraftingRequestAttachmentEntity {
1891
+ id: string;
1892
+ requestId: string;
1893
+ request?: DraftingRequestEntity;
1894
+ fileId: string;
1895
+ name: string;
1896
+ }
1897
+
1898
+ export interface DraftingRequestEventEntity {
1899
+ id: string;
1900
+ requestId: string;
1901
+ request?: DraftingRequestEntity;
1902
+ action: DraftingRequestEventAction;
1903
+ note?: string | null;
1904
+ employeeId: string;
1905
+ employeeFullName: string;
1906
+ createdAt: string;
1907
+ }
1908
+
1909
+ export interface DocumentInternalNoteEntity {
1910
+ id: string;
1911
+ documentId: string;
1912
+ document?: DocumentEntity;
1913
+ directorateCode: number;
1914
+ directorateName: string;
1915
+ departmentId?: string | null;
1916
+ departmentName?: string | null;
1917
+ headEmployeeIds: string[];
1918
+ versionNumber: number;
1919
+ authorEmployeeId: string;
1920
+ authorFullName: string;
1921
+ authorRole: string;
1922
+ text: string;
1923
+ /**
1924
+ * Lo que concluye la revisora para su jefatura: todo correcto o posible rechazo. Sin valor, solo comenta.
1925
+ */
1926
+ verdict?: InternalNoteVerdict | null;
1927
+ createdAt: string;
1928
+ }
1929
+
1930
+ export interface RichImageEntity {
1931
+ id: string;
1932
+ fileId: string;
1933
+ name: string;
1934
+ mimeType: string;
1935
+ width: number;
1936
+ height: number;
1937
+ sha256: string;
1938
+ sizeBytes: number;
1939
+ employeeId: string;
1940
+ createdAt: string;
1941
+ }
1942
+
695
1943
  type JsonValue = string | number | boolean | { [key in string]?: JsonValue } | Array<JsonValue> | null;