@muni-sanfer/types-gestor-documental 0.0.1-beta.9 → 0.0.1-beta.90

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 (270) hide show
  1. package/dist/base/entities.d.ts +1067 -12
  2. package/dist/base/entities.js +267 -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 +124 -1
  10. package/dist/contracts/caseFile.contract.js +10 -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 +272 -5
  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 +36 -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 +256 -4
  28. package/dist/contracts/index.js +72 -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 +63 -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 +111 -3
  40. package/dist/contracts/partsOffice.contract.js +6 -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/repositoryExport.contract.d.ts +57 -0
  46. package/dist/contracts/repositoryExport.contract.js +13 -0
  47. package/dist/contracts/retention.contract.d.ts +58 -0
  48. package/dist/contracts/retention.contract.js +11 -0
  49. package/dist/contracts/richImage.contract.d.ts +33 -0
  50. package/dist/contracts/richImage.contract.js +8 -0
  51. package/dist/contracts/scan.contract.d.ts +63 -0
  52. package/dist/contracts/scan.contract.js +12 -0
  53. package/dist/contracts/signatureBatch.contract.d.ts +1 -1
  54. package/dist/contracts/signatureCheck.contract.d.ts +14 -0
  55. package/dist/contracts/signatureCheck.contract.js +7 -0
  56. package/dist/contracts/textSnippet.contract.d.ts +51 -0
  57. package/dist/contracts/textSnippet.contract.js +11 -0
  58. package/dist/contracts/transparency.contract.d.ts +96 -0
  59. package/dist/contracts/transparency.contract.js +12 -0
  60. package/dist/contracts/visaInitials.contract.d.ts +39 -0
  61. package/dist/contracts/visaInitials.contract.js +12 -0
  62. package/dist/contracts/workFolder.contract.d.ts +114 -0
  63. package/dist/contracts/workFolder.contract.js +16 -0
  64. package/dist/entities/accessRequest/accessRequest.entity.d.ts +73 -0
  65. package/dist/entities/accessRequest/accessRequest.entity.js +2 -0
  66. package/dist/entities/accessRequest/index.d.ts +1 -0
  67. package/dist/entities/accessRequest/index.js +17 -0
  68. package/dist/entities/archivalSeries/archivalSeries.entity.d.ts +32 -0
  69. package/dist/entities/archivalSeries/archivalSeries.entity.js +2 -0
  70. package/dist/entities/archivalSeries/index.d.ts +1 -0
  71. package/dist/entities/archivalSeries/index.js +17 -0
  72. package/dist/entities/audit/audit.entity.d.ts +30 -0
  73. package/dist/entities/audit/audit.entity.js +2 -0
  74. package/dist/entities/audit/index.d.ts +1 -0
  75. package/dist/entities/audit/index.js +17 -0
  76. package/dist/entities/caseFile/caseFile.entity.d.ts +135 -0
  77. package/dist/entities/dashboard/dashboard.entity.d.ts +99 -0
  78. package/dist/entities/dashboard/dashboard.entity.js +2 -0
  79. package/dist/entities/dashboard/index.d.ts +1 -0
  80. package/dist/entities/dashboard/index.js +17 -0
  81. package/dist/entities/dataProtection/dataProtection.entity.d.ts +180 -0
  82. package/dist/entities/dataProtection/dataProtection.entity.js +2 -0
  83. package/dist/entities/dataProtection/index.d.ts +1 -0
  84. package/dist/entities/dataProtection/index.js +17 -0
  85. package/dist/entities/desk/desk.entity.d.ts +25 -0
  86. package/dist/entities/desk/desk.entity.js +2 -0
  87. package/dist/entities/desk/index.d.ts +1 -0
  88. package/dist/entities/desk/index.js +17 -0
  89. package/dist/entities/document/document.entity.d.ts +515 -3
  90. package/dist/entities/document/folio.d.ts +55 -0
  91. package/dist/entities/document/folio.js +30 -0
  92. package/dist/entities/document/index.d.ts +4 -0
  93. package/dist/entities/document/index.js +4 -0
  94. package/dist/entities/document/richDistribution.d.ts +22 -0
  95. package/dist/entities/document/richDistribution.js +11 -0
  96. package/dist/entities/document/richStyle.d.ts +264 -0
  97. package/dist/entities/document/richStyle.js +133 -0
  98. package/dist/entities/document/stampPlacement.d.ts +56 -0
  99. package/dist/entities/document/stampPlacement.js +20 -0
  100. package/dist/entities/documentTemplate/documentTemplate.entity.d.ts +32 -0
  101. package/dist/entities/documentTemplate/documentTemplate.entity.js +2 -0
  102. package/dist/entities/documentTemplate/index.d.ts +1 -0
  103. package/dist/entities/documentTemplate/index.js +17 -0
  104. package/dist/entities/documentType/documentCategory.d.ts +15 -0
  105. package/dist/entities/documentType/documentCategory.js +39 -0
  106. package/dist/entities/documentType/documentType.entity.d.ts +62 -2
  107. package/dist/entities/documentType/index.d.ts +1 -0
  108. package/dist/entities/documentType/index.js +1 -0
  109. package/dist/entities/draftingRequest/draftingRequest.entity.d.ts +83 -0
  110. package/dist/entities/draftingRequest/draftingRequest.entity.js +2 -0
  111. package/dist/entities/draftingRequest/index.d.ts +1 -0
  112. package/dist/entities/draftingRequest/index.js +17 -0
  113. package/dist/entities/holiday/holiday.entity.d.ts +32 -0
  114. package/dist/entities/holiday/holiday.entity.js +2 -0
  115. package/dist/entities/holiday/index.d.ts +1 -0
  116. package/dist/entities/holiday/index.js +17 -0
  117. package/dist/entities/index.d.ts +23 -0
  118. package/dist/entities/index.js +23 -0
  119. package/dist/entities/indicators/index.d.ts +1 -0
  120. package/dist/entities/indicators/index.js +17 -0
  121. package/dist/entities/indicators/indicators.entity.d.ts +152 -0
  122. package/dist/entities/indicators/indicators.entity.js +2 -0
  123. package/dist/entities/internalReview/index.d.ts +1 -0
  124. package/dist/entities/internalReview/index.js +17 -0
  125. package/dist/entities/internalReview/internalReview.entity.d.ts +56 -0
  126. package/dist/entities/internalReview/internalReview.entity.js +2 -0
  127. package/dist/entities/issuingEntity/index.d.ts +1 -0
  128. package/dist/entities/issuingEntity/index.js +17 -0
  129. package/dist/entities/issuingEntity/issuingEntity.entity.d.ts +20 -0
  130. package/dist/entities/issuingEntity/issuingEntity.entity.js +2 -0
  131. package/dist/entities/mailIntake/index.d.ts +1 -0
  132. package/dist/entities/mailIntake/index.js +17 -0
  133. package/dist/entities/mailIntake/mailIntake.entity.d.ts +51 -0
  134. package/dist/entities/mailIntake/mailIntake.entity.js +2 -0
  135. package/dist/entities/notificationPreference/index.d.ts +1 -0
  136. package/dist/entities/notificationPreference/index.js +17 -0
  137. package/dist/entities/notificationPreference/notificationPreference.entity.d.ts +26 -0
  138. package/dist/entities/notificationPreference/notificationPreference.entity.js +9 -0
  139. package/dist/entities/partsOffice/partsOffice.entity.d.ts +42 -0
  140. package/dist/entities/procedure/procedure.entity.d.ts +27 -6
  141. package/dist/entities/push/index.d.ts +1 -0
  142. package/dist/entities/push/index.js +17 -0
  143. package/dist/entities/push/push.entity.d.ts +28 -0
  144. package/dist/entities/push/push.entity.js +2 -0
  145. package/dist/entities/registerBook/registerBook.entity.d.ts +6 -0
  146. package/dist/entities/repositoryExport/index.d.ts +1 -0
  147. package/dist/entities/repositoryExport/index.js +17 -0
  148. package/dist/entities/repositoryExport/repositoryExport.entity.d.ts +124 -0
  149. package/dist/entities/repositoryExport/repositoryExport.entity.js +2 -0
  150. package/dist/entities/retention/index.d.ts +1 -0
  151. package/dist/entities/retention/index.js +17 -0
  152. package/dist/entities/retention/retention.entity.d.ts +49 -0
  153. package/dist/entities/retention/retention.entity.js +2 -0
  154. package/dist/entities/scan/index.d.ts +1 -0
  155. package/dist/entities/scan/index.js +17 -0
  156. package/dist/entities/scan/scan.entity.d.ts +29 -0
  157. package/dist/entities/scan/scan.entity.js +2 -0
  158. package/dist/entities/signatureCheck/index.d.ts +1 -0
  159. package/dist/entities/signatureCheck/index.js +17 -0
  160. package/dist/entities/signatureCheck/signatureCheck.entity.d.ts +60 -0
  161. package/dist/entities/signatureCheck/signatureCheck.entity.js +2 -0
  162. package/dist/entities/textSnippet/index.d.ts +1 -0
  163. package/dist/entities/textSnippet/index.js +17 -0
  164. package/dist/entities/textSnippet/textSnippet.entity.d.ts +20 -0
  165. package/dist/entities/textSnippet/textSnippet.entity.js +2 -0
  166. package/dist/entities/transparency/index.d.ts +1 -0
  167. package/dist/entities/transparency/index.js +17 -0
  168. package/dist/entities/transparency/transparency.entity.d.ts +77 -0
  169. package/dist/entities/transparency/transparency.entity.js +2 -0
  170. package/dist/entities/visaInitials/index.d.ts +1 -0
  171. package/dist/entities/visaInitials/index.js +17 -0
  172. package/dist/entities/visaInitials/visaInitials.entity.d.ts +18 -0
  173. package/dist/entities/visaInitials/visaInitials.entity.js +5 -0
  174. package/dist/entities/workFolder/index.d.ts +1 -0
  175. package/dist/entities/workFolder/index.js +17 -0
  176. package/dist/entities/workFolder/workFolder.entity.d.ts +83 -0
  177. package/dist/entities/workFolder/workFolder.entity.js +2 -0
  178. package/package.json +1 -1
  179. package/src/base/entities.ts +1267 -12
  180. package/src/contracts/accessRequest.contract.ts +81 -0
  181. package/src/contracts/archivalSeries.contract.ts +59 -0
  182. package/src/contracts/audit.contract.ts +30 -0
  183. package/src/contracts/caseFile.contract.ts +107 -2
  184. package/src/contracts/dashboard.contract.ts +17 -0
  185. package/src/contracts/dataProtection.contract.ts +197 -0
  186. package/src/contracts/desk.contract.ts +72 -0
  187. package/src/contracts/document.contract.ts +272 -10
  188. package/src/contracts/documentTemplate.contract.ts +17 -0
  189. package/src/contracts/documentType.contract.ts +63 -5
  190. package/src/contracts/draftingRequest.contract.ts +82 -0
  191. package/src/contracts/holiday.contract.ts +25 -0
  192. package/src/contracts/index.ts +97 -1
  193. package/src/contracts/indicators.contract.ts +80 -0
  194. package/src/contracts/internalReview.contract.ts +56 -0
  195. package/src/contracts/issuingEntity.contract.ts +55 -0
  196. package/src/contracts/mailIntake.contract.ts +49 -0
  197. package/src/contracts/notificationPreference.contract.ts +38 -0
  198. package/src/contracts/partsOffice.contract.ts +94 -3
  199. package/src/contracts/procedure.contract.ts +11 -27
  200. package/src/contracts/push.contract.ts +41 -0
  201. package/src/contracts/repositoryExport.contract.ts +54 -0
  202. package/src/contracts/retention.contract.ts +44 -0
  203. package/src/contracts/richImage.contract.ts +23 -0
  204. package/src/contracts/scan.contract.ts +52 -0
  205. package/src/contracts/signatureBatch.contract.ts +2 -2
  206. package/src/contracts/signatureCheck.contract.ts +11 -0
  207. package/src/contracts/textSnippet.contract.ts +53 -0
  208. package/src/contracts/transparency.contract.ts +55 -0
  209. package/src/contracts/visaInitials.contract.ts +29 -0
  210. package/src/contracts/workFolder.contract.ts +75 -0
  211. package/src/entities/accessRequest/accessRequest.entity.ts +78 -0
  212. package/src/entities/accessRequest/index.ts +1 -0
  213. package/src/entities/archivalSeries/archivalSeries.entity.ts +37 -0
  214. package/src/entities/archivalSeries/index.ts +1 -0
  215. package/src/entities/audit/audit.entity.ts +41 -0
  216. package/src/entities/audit/index.ts +1 -0
  217. package/src/entities/caseFile/caseFile.entity.ts +132 -0
  218. package/src/entities/dashboard/dashboard.entity.ts +95 -0
  219. package/src/entities/dashboard/index.ts +1 -0
  220. package/src/entities/dataProtection/dataProtection.entity.ts +191 -0
  221. package/src/entities/dataProtection/index.ts +1 -0
  222. package/src/entities/desk/desk.entity.ts +28 -0
  223. package/src/entities/desk/index.ts +1 -0
  224. package/src/entities/document/document.entity.ts +520 -6
  225. package/src/entities/document/folio.ts +82 -0
  226. package/src/entities/document/index.ts +4 -0
  227. package/src/entities/document/richDistribution.ts +18 -0
  228. package/src/entities/document/richStyle.ts +288 -0
  229. package/src/entities/document/stampPlacement.ts +51 -0
  230. package/src/entities/documentTemplate/documentTemplate.entity.ts +34 -0
  231. package/src/entities/documentTemplate/index.ts +1 -0
  232. package/src/entities/documentType/documentCategory.ts +40 -0
  233. package/src/entities/documentType/documentType.entity.ts +78 -2
  234. package/src/entities/documentType/index.ts +1 -0
  235. package/src/entities/draftingRequest/draftingRequest.entity.ts +87 -0
  236. package/src/entities/draftingRequest/index.ts +1 -0
  237. package/src/entities/holiday/holiday.entity.ts +36 -0
  238. package/src/entities/holiday/index.ts +1 -0
  239. package/src/entities/index.ts +23 -0
  240. package/src/entities/indicators/index.ts +1 -0
  241. package/src/entities/indicators/indicators.entity.ts +157 -0
  242. package/src/entities/internalReview/index.ts +1 -0
  243. package/src/entities/internalReview/internalReview.entity.ts +59 -0
  244. package/src/entities/issuingEntity/index.ts +1 -0
  245. package/src/entities/issuingEntity/issuingEntity.entity.ts +24 -0
  246. package/src/entities/mailIntake/index.ts +1 -0
  247. package/src/entities/mailIntake/mailIntake.entity.ts +55 -0
  248. package/src/entities/notificationPreference/index.ts +1 -0
  249. package/src/entities/notificationPreference/notificationPreference.entity.ts +26 -0
  250. package/src/entities/partsOffice/partsOffice.entity.ts +38 -0
  251. package/src/entities/procedure/procedure.entity.ts +27 -6
  252. package/src/entities/push/index.ts +1 -0
  253. package/src/entities/push/push.entity.ts +31 -0
  254. package/src/entities/registerBook/registerBook.entity.ts +6 -0
  255. package/src/entities/repositoryExport/index.ts +1 -0
  256. package/src/entities/repositoryExport/repositoryExport.entity.ts +86 -0
  257. package/src/entities/retention/index.ts +1 -0
  258. package/src/entities/retention/retention.entity.ts +53 -0
  259. package/src/entities/scan/index.ts +1 -0
  260. package/src/entities/scan/scan.entity.ts +32 -0
  261. package/src/entities/signatureCheck/index.ts +1 -0
  262. package/src/entities/signatureCheck/signatureCheck.entity.ts +63 -0
  263. package/src/entities/textSnippet/index.ts +1 -0
  264. package/src/entities/textSnippet/textSnippet.entity.ts +24 -0
  265. package/src/entities/transparency/index.ts +1 -0
  266. package/src/entities/transparency/transparency.entity.ts +78 -0
  267. package/src/entities/visaInitials/index.ts +1 -0
  268. package/src/entities/visaInitials/visaInitials.entity.ts +18 -0
  269. package/src/entities/workFolder/index.ts +1 -0
  270. package/src/entities/workFolder/workFolder.entity.ts +84 -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,356 @@ 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
+
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
+
244
702
  export interface DocumentTypeEntity {
245
703
  id: string;
246
704
  name: string;
@@ -251,12 +709,31 @@ export interface DocumentTypeEntity {
251
709
  correlativeYear?: number | null;
252
710
  resetsYearly: boolean;
253
711
  numbered: boolean;
254
- directorateCodeReference?: number | null;
712
+ numberingScope: DocumentNumberingScope;
713
+ usesPartsOffice: boolean;
714
+ decreeKind?: DecreeKind | null;
715
+ folioFormat?: JsonValue | null;
716
+ processingSlaDays?: number | null;
717
+ turnSlaDays?: number | null;
718
+ reviewSlaDays?: number | null;
719
+ activeTransparency: boolean;
720
+ transparencySection?: string | null;
721
+ directorateCodeReferences: number[];
722
+ draftReviewDirectorateCode?: number | null;
723
+ draftReviewDirectorateName?: string | null;
724
+ archivalSeries?: ArchivalSeriesEntity | null;
725
+ archivalSeriesId?: string | null;
726
+ issuingEntity?: IssuingEntityEntity | null;
727
+ issuingEntityId?: string | null;
255
728
  enabled: boolean;
729
+ version: number;
730
+ versions?: DocumentTypeVersionEntity[];
256
731
  documents?: DocumentEntity[];
732
+ draftingRequests?: DraftingRequestEntity[];
257
733
  annulledNumbers?: DocumentAnnulledNumberEntity[];
258
734
  flowSteps?: DocumentTypeFlowStepEntity[];
259
735
  signatureBatches?: SignatureBatchEntity[];
736
+ template?: DocumentTemplateEntity | null;
260
737
  deleted: boolean;
261
738
  createdAt: string;
262
739
  updatedAt: string;
@@ -265,24 +742,32 @@ export interface DocumentTypeEntity {
265
742
  export interface DocumentEntity {
266
743
  id: string;
267
744
  subject: string;
745
+ description?: string | null;
268
746
  keywords: string[];
269
747
  accessLevel: DocumentAccessLevel;
270
748
  hasSensitiveData: boolean;
749
+ restrictionEndsAt?: string | null;
271
750
  status: DocumentStatus;
272
751
  correlative?: number | null;
273
752
  correlativeYear?: number | null;
274
753
  numberedAt?: string | null;
754
+ stampedAt?: string | null;
755
+ folioStamp?: JsonValue | null;
275
756
  verificationCode?: string | null;
276
- signatureSheet: boolean;
277
757
  annulledAt?: string | null;
278
758
  annulmentReason?: string | null;
279
759
  responseDueAt?: string | null;
760
+ responseDueBusinessDays?: number | null;
761
+ procedure?: ProcedureEntity | null;
762
+ procedureId?: string | null;
280
763
  origin: DocumentOrigin;
281
764
  intakeNumber?: number | null;
282
765
  intakeYear?: number | null;
283
766
  externalFolio?: string | null;
284
767
  externalSender?: string | null;
285
768
  externalDate?: string | null;
769
+ intakeMeans?: CommunicationMeans | null;
770
+ composition?: JsonValue | null;
286
771
  contentText?: string | null;
287
772
  textExtractedAt?: string | null;
288
773
  batch?: SignatureBatchEntity | null;
@@ -292,16 +777,25 @@ export interface DocumentEntity {
292
777
  replies?: DocumentEntity[];
293
778
  directorateCodeReference?: number | null;
294
779
  departmentId?: string | null;
780
+ issuingUnitName?: string | null;
781
+ issuingDirectorateName?: string | null;
782
+ stampPlacements?: JsonValue | null;
783
+ selfValidated: boolean;
784
+ selfValidationNote?: string | null;
295
785
  createdByEmployeeId: string;
296
786
  createdByFullName: string;
297
787
  originalFileId: string;
298
788
  originalFileName: string;
299
789
  currentFileId?: string | null;
300
790
  currentFileUrl?: string | null;
791
+ fileFormat?: string | null;
301
792
  submittedAt?: string | null;
793
+ processingOverdueRemindedAt?: string | null;
302
794
  finishedAt?: string | null;
303
795
  documentType?: DocumentTypeEntity;
304
796
  documentTypeId: string;
797
+ documentTypeVersion?: DocumentTypeVersionEntity | null;
798
+ documentTypeVersionId?: string | null;
305
799
  participants?: DocumentParticipantEntity[];
306
800
  attachments?: DocumentAttachmentEntity[];
307
801
  trackings?: DocumentTrackingEntity[];
@@ -309,7 +803,27 @@ export interface DocumentEntity {
309
803
  recipients?: DocumentRecipientEntity[];
310
804
  deliveries?: DocumentDeliveryEntity[];
311
805
  caseFileEntries?: CaseFileEntryEntity[];
806
+ workFolderItems?: WorkFolderItemEntity[];
312
807
  externalRecipients?: DocumentExternalRecipientEntity[];
808
+ emailCopies?: DocumentEmailCopyEntity[];
809
+ accesses?: DocumentAccessEntity[];
810
+ disposition?: DispositionRecordEntity | null;
811
+ dispositionId?: string | null;
812
+ transparencyStatus?: TransparencyStatus | null;
813
+ transparencyUrl?: string | null;
814
+ transparencyNote?: string | null;
815
+ transparencyAt?: string | null;
816
+ transparencyByFullName?: string | null;
817
+ redactedFileId?: string | null;
818
+ redactedFileName?: string | null;
819
+ accessRequestResponses?: AccessRequestEntity[];
820
+ dataRightsResponses?: DataRightsRequestEntity[];
821
+ versions?: DocumentVersionEntity[];
822
+ comments?: DocumentCommentEntity[];
823
+ draftReviews?: DocumentDraftReviewEntity[];
824
+ draftingRequest?: DraftingRequestEntity | null;
825
+ internalNotes?: DocumentInternalNoteEntity[];
826
+ accessRequestDeliveries?: AccessRequestDocumentEntity[];
313
827
  dispatch?: DocumentDispatchEntity | null;
314
828
  docDigitalInbound?: DocDigitalInboundEntity | null;
315
829
  deleted: boolean;
@@ -341,6 +855,9 @@ export interface DocumentParticipantEntity {
341
855
  position?: string | null;
342
856
  observation?: string | null;
343
857
  resolvedAt?: string | null;
858
+ initials?: string | null;
859
+ currentSince?: string | null;
860
+ overdueRemindedAt?: string | null;
344
861
  document?: DocumentEntity;
345
862
  documentId: string;
346
863
  createdAt: string;
@@ -364,6 +881,7 @@ export interface DocumentTrackingEntity {
364
881
  id: string;
365
882
  action: DocumentTrackingAction;
366
883
  observation?: string | null;
884
+ sha256?: string | null;
367
885
  employeeId?: string | null;
368
886
  employeeFullName?: string | null;
369
887
  document?: DocumentEntity;
@@ -401,9 +919,11 @@ export interface DocumentRecipientEntity {
401
919
  export interface DocumentDeliveryEntity {
402
920
  id: string;
403
921
  origin: DocumentDeliveryOrigin;
404
- employeeId: string;
405
- fullName: string;
922
+ employeeId?: string | null;
923
+ fullName?: string | null;
406
924
  position?: string | null;
925
+ directorateCodeReference?: number | null;
926
+ departmentId?: string | null;
407
927
  areaName?: string | null;
408
928
  sentByEmployeeId?: string | null;
409
929
  sentByFullName?: string | null;
@@ -414,11 +934,55 @@ export interface DocumentDeliveryEntity {
414
934
  readAt?: string | null;
415
935
  closedAt?: string | null;
416
936
  closingNote?: string | null;
937
+ readByEmployeeId?: string | null;
938
+ readByFullName?: string | null;
939
+ closedByEmployeeId?: string | null;
940
+ closedByFullName?: string | null;
941
+ dueSoonRemindedAt?: string | null;
942
+ overdueRemindedAt?: string | null;
417
943
  document?: DocumentEntity;
418
944
  documentId: string;
419
945
  createdAt: string;
420
946
  }
421
947
 
948
+ export interface CategoryNumberingEntity {
949
+ category: DocumentCategory;
950
+ nextCorrelative: number;
951
+ correlativeYear?: number | null;
952
+ resetsYearly: boolean;
953
+ updatedAt: string;
954
+ }
955
+
956
+ export interface DocumentTypeVersionEntity {
957
+ id: string;
958
+ version: number;
959
+ name: string;
960
+ abbreviation?: string | null;
961
+ category: DocumentCategory;
962
+ description?: string | null;
963
+ numbered: boolean;
964
+ numberingScope: DocumentNumberingScope;
965
+ usesPartsOffice: boolean;
966
+ decreeKind?: DecreeKind | null;
967
+ folioFormat?: JsonValue | null;
968
+ processingSlaDays?: number | null;
969
+ turnSlaDays?: number | null;
970
+ reviewSlaDays?: number | null;
971
+ activeTransparency: boolean;
972
+ transparencySection?: string | null;
973
+ directorateCodeReferences: number[];
974
+ draftReviewDirectorateCode?: number | null;
975
+ draftReviewDirectorateName?: string | null;
976
+ issuingEntityId?: string | null;
977
+ templateVersion?: number | null;
978
+ flowSteps: JsonValue;
979
+ createdByFullName?: string | null;
980
+ createdAt: string;
981
+ documentType?: DocumentTypeEntity;
982
+ documentTypeId: string;
983
+ documents?: DocumentEntity[];
984
+ }
985
+
422
986
  export interface DocumentTypeFlowStepEntity {
423
987
  id: string;
424
988
  role: DocumentParticipantRole;
@@ -428,6 +992,7 @@ export interface DocumentTypeFlowStepEntity {
428
992
  directorateCodeReference?: number | null;
429
993
  name: string;
430
994
  position?: string | null;
995
+ withPrevious: boolean;
431
996
  documentType?: DocumentTypeEntity;
432
997
  documentTypeId: string;
433
998
  createdAt: string;
@@ -439,8 +1004,13 @@ export interface ProcedureEntity {
439
1004
  cpatId?: string | null;
440
1005
  cpatCode?: string | null;
441
1006
  description?: string | null;
1007
+ kind?: string | null;
1008
+ responsibleArea?: string | null;
1009
+ cpatStatus?: string | null;
1010
+ fromCpat: boolean;
442
1011
  enabled: boolean;
443
1012
  caseFiles?: CaseFileEntity[];
1013
+ documents?: DocumentEntity[];
444
1014
  deleted: boolean;
445
1015
  createdAt: string;
446
1016
  updatedAt: string;
@@ -462,6 +1032,9 @@ export interface CaseFileEntity {
462
1032
  status: CaseFileStatus;
463
1033
  accessLevel: DocumentAccessLevel;
464
1034
  hasSensitiveData: boolean;
1035
+ restrictionEndsAt?: string | null;
1036
+ archivalSeries?: ArchivalSeriesEntity | null;
1037
+ archivalSeriesId?: string | null;
465
1038
  incorporationMechanism: CaseFileIncorporationMechanism;
466
1039
  schemaVersion: string;
467
1040
  procedure?: ProcedureEntity;
@@ -470,6 +1043,8 @@ export interface CaseFileEntity {
470
1043
  responsibleFullName: string;
471
1044
  responsiblePosition?: string | null;
472
1045
  closedAt?: string | null;
1046
+ disposition?: DispositionRecordEntity | null;
1047
+ dispositionId?: string | null;
473
1048
  closedByEmployeeId?: string | null;
474
1049
  closedByFullName?: string | null;
475
1050
  closingNote?: string | null;
@@ -480,8 +1055,11 @@ export interface CaseFileEntity {
480
1055
  trackings?: CaseFileTrackingEntity[];
481
1056
  metadataChanges?: CaseFileMetadataChangeEntity[];
482
1057
  accesses?: CaseFileAccessEntity[];
1058
+ shareLinks?: CaseFileShareLinkEntity[];
1059
+ integratedPdf?: JsonValue | null;
483
1060
  createdAt: string;
484
1061
  updatedAt: string;
1062
+ workFolder?: WorkFolderEntity | null;
485
1063
  }
486
1064
 
487
1065
  export interface CaseFileParticipantEntity {
@@ -513,6 +1091,7 @@ export interface CaseFileEntryEntity {
513
1091
  kind: CaseFileEntryKind;
514
1092
  actuationType: CaseFileActuationType;
515
1093
  title: string;
1094
+ folder?: string | null;
516
1095
  document?: DocumentEntity | null;
517
1096
  documentId?: string | null;
518
1097
  fileId?: string | null;
@@ -523,11 +1102,16 @@ export interface CaseFileEntryEntity {
523
1102
  keywords: string[];
524
1103
  accessLevel?: DocumentAccessLevel | null;
525
1104
  hasSensitiveData?: boolean | null;
1105
+ physicalLocation?: string | null;
1106
+ physicalReason?: string | null;
1107
+ pageCount?: number | null;
526
1108
  linkedCaseFile?: CaseFileEntity | null;
527
1109
  linkedCaseFileId?: string | null;
528
1110
  sha256?: string | null;
529
1111
  size?: number | null;
530
1112
  hasAdvancedSignature: boolean;
1113
+ fileFormat?: string | null;
1114
+ signatureCheck?: JsonValue | null;
531
1115
  incorporatedByEmployeeId: string;
532
1116
  incorporatedByFullName: string;
533
1117
  voidedAt?: string | null;
@@ -566,13 +1150,61 @@ export interface CaseFileAccessEntity {
566
1150
  id: string;
567
1151
  action: CaseFileAccessAction;
568
1152
  entryId?: string | null;
569
- employeeId: string;
1153
+ employeeId?: string | null;
570
1154
  employeeFullName: string;
1155
+ shareLink?: CaseFileShareLinkEntity | null;
1156
+ shareLinkId?: string | null;
571
1157
  caseFile?: CaseFileEntity;
572
1158
  caseFileId: string;
573
1159
  createdAt: string;
574
1160
  }
575
1161
 
1162
+ export interface CaseFileShareLinkEntity {
1163
+ id: string;
1164
+ tokenHash: string;
1165
+ recipient: string;
1166
+ recipientEmail?: string | null;
1167
+ purpose?: string | null;
1168
+ allowExport: boolean;
1169
+ expiresAt: string;
1170
+ createdByEmployeeId: string;
1171
+ createdByFullName: string;
1172
+ revokedAt?: string | null;
1173
+ revokedByEmployeeId?: string | null;
1174
+ revokedByFullName?: string | null;
1175
+ caseFile?: CaseFileEntity;
1176
+ caseFileId: string;
1177
+ accesses?: CaseFileAccessEntity[];
1178
+ createdAt: string;
1179
+ }
1180
+
1181
+ export interface DocumentEmailCopyEntity {
1182
+ id: string;
1183
+ name: string;
1184
+ email: string;
1185
+ tokenHash?: string | null;
1186
+ expiresAt?: string | null;
1187
+ issuedAt?: string | null;
1188
+ openedAt?: string | null;
1189
+ downloadCount: number;
1190
+ document?: DocumentEntity;
1191
+ documentId: string;
1192
+ createdAt: string;
1193
+ }
1194
+
1195
+ export interface ScanSessionEntity {
1196
+ id: string;
1197
+ tokenHash: string;
1198
+ status: ScanSessionStatus;
1199
+ employeeId: string;
1200
+ pages: JsonValue;
1201
+ fileId?: string | null;
1202
+ fileName?: string | null;
1203
+ expiresAt: string;
1204
+ finishedAt?: string | null;
1205
+ createdAt: string;
1206
+ }
1207
+
576
1208
  export interface DocumentExternalRecipientEntity {
577
1209
  id: string;
578
1210
  entityId: number;
@@ -600,6 +1232,11 @@ export interface DocumentDispatchEntity {
600
1232
  returnedByEmployeeId?: string | null;
601
1233
  returnedByFullName?: string | null;
602
1234
  returnReason?: string | null;
1235
+ contingencyMeans?: CommunicationMeans | null;
1236
+ contingencySentTo?: string | null;
1237
+ contingencyReason?: string | null;
1238
+ contingencyReceiptFileId?: string | null;
1239
+ contingencyReceiptName?: string | null;
603
1240
  document?: DocumentEntity;
604
1241
  documentId: string;
605
1242
  createdAt: string;
@@ -621,9 +1258,12 @@ export interface DocDigitalInboundEntity {
621
1258
  senderEntityName?: string | null;
622
1259
  senderName?: string | null;
623
1260
  senderPosition?: string | null;
1261
+ recipientEntityId?: number | null;
1262
+ recipientEntityName?: string | null;
624
1263
  fileId?: string | null;
625
1264
  fileName?: string | null;
626
1265
  attachments: JsonValue;
1266
+ signatureCheck?: JsonValue | null;
627
1267
  registeredAt?: string | null;
628
1268
  registeredByEmployeeId?: string | null;
629
1269
  registeredByFullName?: string | null;
@@ -639,9 +1279,624 @@ export interface DocDigitalInboundEntity {
639
1279
  updatedAt: string;
640
1280
  }
641
1281
 
1282
+ export interface HolidayEntity {
1283
+ id: string;
1284
+ date: string;
1285
+ name: string;
1286
+ source: HolidaySource;
1287
+ kind?: string | null;
1288
+ excluded: boolean;
1289
+ createdAt: string;
1290
+ updatedAt: string;
1291
+ }
1292
+
1293
+ export interface ProcedureSyncEntity {
1294
+ institutionCode: string;
1295
+ syncedAt: string;
1296
+ total: number;
1297
+ resourceName: string;
1298
+ }
1299
+
1300
+ export interface HolidaySyncEntity {
1301
+ year: number;
1302
+ syncedAt: string;
1303
+ total: number;
1304
+ }
1305
+
1306
+ export interface TextSnippetEntity {
1307
+ id: string;
1308
+ title: string;
1309
+ text: string;
1310
+ section: TextSnippetSection;
1311
+ keywords: string[];
1312
+ enabled: boolean;
1313
+ deleted: boolean;
1314
+ createdAt: string;
1315
+ updatedAt: string;
1316
+ }
1317
+
1318
+ export interface DocumentTemplateEntity {
1319
+ id: string;
1320
+ name: string;
1321
+ description?: string | null;
1322
+ documentTypeIds: string[];
1323
+ documentType?: DocumentTypeEntity | null;
1324
+ documentTypeId?: string | null;
1325
+ content: JsonValue;
1326
+ version: number;
1327
+ enabled: boolean;
1328
+ updatedByFullName?: string | null;
1329
+ versions?: DocumentTemplateVersionEntity[];
1330
+ deleted: boolean;
1331
+ createdAt: string;
1332
+ updatedAt: string;
1333
+ }
1334
+
1335
+ export interface DocumentDraftReviewEntity {
1336
+ id: string;
1337
+ documentId: string;
1338
+ document?: DocumentEntity;
1339
+ round: number;
1340
+ stage: DraftReviewStage;
1341
+ versionNumber: number;
1342
+ directorateCodeReference: number;
1343
+ directorateName: string;
1344
+ reviewerEmployeeId: string;
1345
+ reviewerFullName: string;
1346
+ requestedByEmployeeId: string;
1347
+ requestedByFullName: string;
1348
+ requestedAt: string;
1349
+ status: DraftReviewStatus;
1350
+ observation?: string | null;
1351
+ resolvedAt?: string | null;
1352
+ overdueRemindedAt?: string | null;
1353
+ }
1354
+
1355
+ export interface DocumentTemplateVersionEntity {
1356
+ id: string;
1357
+ templateId: string;
1358
+ template?: DocumentTemplateEntity;
1359
+ version: number;
1360
+ content: JsonValue;
1361
+ createdByFullName?: string | null;
1362
+ createdAt: string;
1363
+ }
1364
+
1365
+ export interface ArchivalSeriesEntity {
1366
+ id: string;
1367
+ code: string;
1368
+ name: string;
1369
+ section?: string | null;
1370
+ description?: string | null;
1371
+ managementYears?: number | null;
1372
+ centralYears?: number | null;
1373
+ finalDisposition?: FinalDisposition | null;
1374
+ retentionNote?: string | null;
1375
+ enabled: boolean;
1376
+ documentTypes?: DocumentTypeEntity[];
1377
+ caseFiles?: CaseFileEntity[];
1378
+ dispositions?: DispositionRecordEntity[];
1379
+ deleted: boolean;
1380
+ createdAt: string;
1381
+ updatedAt: string;
1382
+ }
1383
+
1384
+ export interface IssuingEntityEntity {
1385
+ id: string;
1386
+ name: string;
1387
+ shortName?: string | null;
1388
+ directorateCodeReferences: number[];
1389
+ docDigitalEntityId?: number | null;
1390
+ enabled: boolean;
1391
+ documentTypes?: DocumentTypeEntity[];
1392
+ deleted: boolean;
1393
+ createdAt: string;
1394
+ updatedAt: string;
1395
+ }
1396
+
642
1397
  export interface IntakeSequenceEntity {
643
1398
  year: number;
644
1399
  next: number;
645
1400
  }
646
1401
 
1402
+ export interface WorkFolderEntity {
1403
+ id: string;
1404
+ name: string;
1405
+ description?: string | null;
1406
+ ownerEmployeeId: string;
1407
+ ownerFullName: string;
1408
+ caseFile?: CaseFileEntity | null;
1409
+ caseFileId?: string | null;
1410
+ participants?: WorkFolderParticipantEntity[];
1411
+ items?: WorkFolderItemEntity[];
1412
+ deleted: boolean;
1413
+ createdAt: string;
1414
+ updatedAt: string;
1415
+ }
1416
+
1417
+ export interface WorkFolderParticipantEntity {
1418
+ id: string;
1419
+ employeeId: string;
1420
+ fullName: string;
1421
+ folder?: WorkFolderEntity;
1422
+ folderId: string;
1423
+ createdAt: string;
1424
+ }
1425
+
1426
+ export interface WorkFolderItemEntity {
1427
+ id: string;
1428
+ kind: WorkFolderItemKind;
1429
+ title: string;
1430
+ document?: DocumentEntity | null;
1431
+ documentId?: string | null;
1432
+ fileId?: string | null;
1433
+ fileName?: string | null;
1434
+ addedByEmployeeId: string;
1435
+ addedByFullName: string;
1436
+ folder?: WorkFolderEntity;
1437
+ folderId: string;
1438
+ createdAt: string;
1439
+ }
1440
+
1441
+ export interface ServiceOutageEntity {
1442
+ id: string;
1443
+ kind: ServiceOutageKind;
1444
+ startedAt: string;
1445
+ endedAt?: string | null;
1446
+ cause: string;
1447
+ affectedServices?: string | null;
1448
+ createdByEmployeeId: string;
1449
+ createdByFullName: string;
1450
+ updatedByFullName?: string | null;
1451
+ deleted: boolean;
1452
+ createdAt: string;
1453
+ updatedAt: string;
1454
+ }
1455
+
1456
+ export interface QualityMetricSettingEntity {
1457
+ key: QualityMetricKey;
1458
+ threshold: number;
1459
+ declaredValue?: number | null;
1460
+ declaredNote?: string | null;
1461
+ declaredAt?: string | null;
1462
+ declaredByFullName?: string | null;
1463
+ updatedAt: string;
1464
+ }
1465
+
1466
+ export interface ServiceTimingEntity {
1467
+ hour: string;
1468
+ count: number;
1469
+ errorCount: number;
1470
+ totalMs: number;
1471
+ maxMs: number;
1472
+ under100: number;
1473
+ under250: number;
1474
+ under500: number;
1475
+ under1000: number;
1476
+ under2000: number;
1477
+ under5000: number;
1478
+ over5000: number;
1479
+ }
1480
+
1481
+ export interface DocumentAccessEntity {
1482
+ id: string;
1483
+ action: DocumentAccessAction;
1484
+ employeeId?: string | null;
1485
+ employeeFullName: string;
1486
+ document?: DocumentEntity;
1487
+ documentId: string;
1488
+ createdAt: string;
1489
+ }
1490
+
1491
+ export interface AuditLogEntity {
1492
+ id: string;
1493
+ entity: AuditEntity;
1494
+ action: AuditAction;
1495
+ entityId?: string | null;
1496
+ name: string;
1497
+ details?: JsonValue | null;
1498
+ employeeId?: string | null;
1499
+ employeeFullName: string;
1500
+ createdAt: string;
1501
+ }
1502
+
1503
+ export interface DispositionRecordEntity {
1504
+ id: string;
1505
+ kind: DispositionKind;
1506
+ number: number;
1507
+ year: number;
1508
+ observation?: string | null;
1509
+ series?: ArchivalSeriesEntity;
1510
+ seriesId: string;
1511
+ documents?: DocumentEntity[];
1512
+ caseFiles?: CaseFileEntity[];
1513
+ createdByEmployeeId: string;
1514
+ createdByFullName: string;
1515
+ createdAt: string;
1516
+ }
1517
+
1518
+ export interface AccessRequestEntity {
1519
+ id: string;
1520
+ number: number;
1521
+ year: number;
1522
+ externalFolio?: string | null;
1523
+ channel: AccessRequestChannel;
1524
+ receivedAt: string;
1525
+ requesterName: string;
1526
+ requesterEmail?: string | null;
1527
+ requesterAddress?: string | null;
1528
+ requestText: string;
1529
+ deliveryFormat?: string | null;
1530
+ status: AccessRequestStatus;
1531
+ correctionRequestedAt?: string | null;
1532
+ correctionDueAt?: string | null;
1533
+ correctedAt?: string | null;
1534
+ dueAt: string;
1535
+ extendedAt?: string | null;
1536
+ extensionNote?: string | null;
1537
+ assigneeEmployeeId?: string | null;
1538
+ assigneeFullName?: string | null;
1539
+ thirdPartyNotifiedAt?: string | null;
1540
+ oppositionDueAt?: string | null;
1541
+ thirdPartyOpposed?: boolean | null;
1542
+ resolution?: AccessRequestResolution | null;
1543
+ resolvedAt?: string | null;
1544
+ denialGrounds: string[];
1545
+ derivedTo?: string | null;
1546
+ resolutionNote?: string | null;
1547
+ responseDocument?: DocumentEntity | null;
1548
+ responseDocumentId?: string | null;
1549
+ appealedAt?: string | null;
1550
+ appealNote?: string | null;
1551
+ createdByEmployeeId: string;
1552
+ createdByFullName: string;
1553
+ documents?: AccessRequestDocumentEntity[];
1554
+ events?: AccessRequestEventEntity[];
1555
+ createdAt: string;
1556
+ updatedAt: string;
1557
+ }
1558
+
1559
+ export interface AccessRequestDocumentEntity {
1560
+ accessRequest?: AccessRequestEntity;
1561
+ accessRequestId: string;
1562
+ document?: DocumentEntity;
1563
+ documentId: string;
1564
+ }
1565
+
1566
+ export interface AccessRequestEventEntity {
1567
+ id: string;
1568
+ action: AccessRequestEventAction;
1569
+ note?: string | null;
1570
+ employeeId?: string | null;
1571
+ employeeFullName: string;
1572
+ accessRequest?: AccessRequestEntity;
1573
+ accessRequestId: string;
1574
+ createdAt: string;
1575
+ }
1576
+
1577
+ export interface DataTreatmentEntity {
1578
+ id: string;
1579
+ name: string;
1580
+ purpose: string;
1581
+ legalBasis: DataLegalBasis;
1582
+ legalBasisDetail?: string | null;
1583
+ dataCategories: string[];
1584
+ sensitiveData: boolean;
1585
+ dataSubjects: string;
1586
+ recipients?: string | null;
1587
+ source?: string | null;
1588
+ retention?: string | null;
1589
+ securityMeasures?: string | null;
1590
+ internationalTransfer?: string | null;
1591
+ responsibleUnit?: string | null;
1592
+ published: boolean;
1593
+ requests?: DataRightsRequestEntity[];
1594
+ breaches?: DataBreachEntity[];
1595
+ enabled: boolean;
1596
+ deleted: boolean;
1597
+ createdAt: string;
1598
+ updatedAt: string;
1599
+ }
1600
+
1601
+ export interface DataRightsRequestEntity {
1602
+ id: string;
1603
+ number: number;
1604
+ year: number;
1605
+ channel: DataRightsChannel;
1606
+ receivedAt: string;
1607
+ rights: DataRight[];
1608
+ requesterName: string;
1609
+ requesterRut?: string | null;
1610
+ requesterEmail?: string | null;
1611
+ requesterAddress?: string | null;
1612
+ representativeName?: string | null;
1613
+ identityVerifiedAt?: string | null;
1614
+ identityNote?: string | null;
1615
+ requestText: string;
1616
+ treatment?: DataTreatmentEntity | null;
1617
+ treatmentId?: string | null;
1618
+ status: DataRightsRequestStatus;
1619
+ acknowledgedAt?: string | null;
1620
+ dueAt: string;
1621
+ extendedAt?: string | null;
1622
+ extensionNote?: string | null;
1623
+ blockingRequested: boolean;
1624
+ blockingReason?: string | null;
1625
+ blockingDueAt?: string | null;
1626
+ blockingGranted?: boolean | null;
1627
+ blockingResolvedAt?: string | null;
1628
+ blockingNote?: string | null;
1629
+ blockingLiftedAt?: string | null;
1630
+ blockingLiftNote?: string | null;
1631
+ assigneeEmployeeId?: string | null;
1632
+ assigneeFullName?: string | null;
1633
+ resolution?: DataRightsResolution | null;
1634
+ resolvedAt?: string | null;
1635
+ denialGrounds: string[];
1636
+ resolutionNote?: string | null;
1637
+ responseDocument?: DocumentEntity | null;
1638
+ responseDocumentId?: string | null;
1639
+ responseSentAt?: string | null;
1640
+ responseSentTo?: string | null;
1641
+ responseSentMeans?: CommunicationMeans | null;
1642
+ complaintAt?: string | null;
1643
+ complaintNote?: string | null;
1644
+ createdByEmployeeId: string;
1645
+ createdByFullName: string;
1646
+ events?: DataRightsEventEntity[];
1647
+ createdAt: string;
1648
+ updatedAt: string;
1649
+ }
1650
+
1651
+ export interface DataRightsEventEntity {
1652
+ id: string;
1653
+ action: DataRightsEventAction;
1654
+ note?: string | null;
1655
+ employeeId?: string | null;
1656
+ employeeFullName: string;
1657
+ request?: DataRightsRequestEntity;
1658
+ requestId: string;
1659
+ createdAt: string;
1660
+ }
1661
+
1662
+ export interface DataBreachEntity {
1663
+ id: string;
1664
+ number: number;
1665
+ year: number;
1666
+ detectedAt: string;
1667
+ occurredAt?: string | null;
1668
+ kinds: DataBreachKind[];
1669
+ description: string;
1670
+ effects?: string | null;
1671
+ dataCategories: string[];
1672
+ affectedCount?: number | null;
1673
+ measures?: string | null;
1674
+ sensitiveData: boolean;
1675
+ minorsData: boolean;
1676
+ financialData: boolean;
1677
+ riskToRights: boolean;
1678
+ treatment?: DataTreatmentEntity | null;
1679
+ treatmentId?: string | null;
1680
+ status: DataBreachStatus;
1681
+ agencyReportedAt?: string | null;
1682
+ agencyReportNote?: string | null;
1683
+ holdersNotifiedAt?: string | null;
1684
+ holdersNoticeMeans?: DataBreachNoticeMeans | null;
1685
+ holdersNoticeNote?: string | null;
1686
+ closedAt?: string | null;
1687
+ closeNote?: string | null;
1688
+ createdByEmployeeId: string;
1689
+ createdByFullName: string;
1690
+ events?: DataBreachEventEntity[];
1691
+ createdAt: string;
1692
+ updatedAt: string;
1693
+ }
1694
+
1695
+ export interface DataBreachEventEntity {
1696
+ id: string;
1697
+ action: DataBreachEventAction;
1698
+ note?: string | null;
1699
+ employeeId?: string | null;
1700
+ employeeFullName: string;
1701
+ breach?: DataBreachEntity;
1702
+ breachId: string;
1703
+ createdAt: string;
1704
+ }
1705
+
1706
+ export interface DeskFileEntity {
1707
+ id: string;
1708
+ ownerEmployeeId: string;
1709
+ fileId: string;
1710
+ fileName: string;
1711
+ size: number;
1712
+ sha256: string;
1713
+ source: DeskFileSource;
1714
+ description?: string | null;
1715
+ classifiedAt?: string | null;
1716
+ target?: DeskFileTarget | null;
1717
+ targetId?: string | null;
1718
+ targetLabel?: string | null;
1719
+ removedAt?: string | null;
1720
+ mailIntake?: MailIntakeEntity | null;
1721
+ mailIntakeId?: string | null;
1722
+ createdAt: string;
1723
+ updatedAt: string;
1724
+ }
1725
+
1726
+ export interface MailIntakeEntity {
1727
+ id: string;
1728
+ sha256: string;
1729
+ messageId?: string | null;
1730
+ fromAddress: string;
1731
+ fromName?: string | null;
1732
+ subject: string;
1733
+ textPreview?: string | null;
1734
+ sentAt?: string | null;
1735
+ emlFileId: string;
1736
+ emlFileName: string;
1737
+ size: number;
1738
+ attachments: JsonValue;
1739
+ authentication: MailAuthentication;
1740
+ authDetail?: string | null;
1741
+ status: MailIntakeStatus;
1742
+ resolvedAt?: string | null;
1743
+ resolvedByEmployeeId?: string | null;
1744
+ deskFiles?: DeskFileEntity[];
1745
+ createdAt: string;
1746
+ updatedAt: string;
1747
+ }
1748
+
1749
+ export interface VisaInitialsEntity {
1750
+ employeeId: string;
1751
+ initials: string;
1752
+ createdAt: string;
1753
+ updatedAt: string;
1754
+ }
1755
+
1756
+ export interface NotificationPreferenceEntity {
1757
+ employeeId: string;
1758
+ mode: NotificationMode;
1759
+ digestSentOn?: string | null;
1760
+ createdAt: string;
1761
+ updatedAt: string;
1762
+ }
1763
+
1764
+ export interface PushSubscriptionEntity {
1765
+ id: string;
1766
+ employeeId: string;
1767
+ endpoint: string;
1768
+ p256dh: string;
1769
+ auth: string;
1770
+ userAgent?: string | null;
1771
+ lastSuccessAt?: string | null;
1772
+ failures: number;
1773
+ createdAt: string;
1774
+ updatedAt: string;
1775
+ }
1776
+
1777
+ export interface DocumentVersionEntity {
1778
+ id: string;
1779
+ documentId: string;
1780
+ document?: DocumentEntity;
1781
+ number: number;
1782
+ subject: string;
1783
+ fileId: string;
1784
+ fileName: string;
1785
+ sha256?: string | null;
1786
+ composition?: JsonValue | null;
1787
+ note?: string | null;
1788
+ status: DocumentStatus;
1789
+ correction: boolean;
1790
+ createdByEmployeeId: string;
1791
+ createdByFullName: string;
1792
+ createdAt: string;
1793
+ }
1794
+
1795
+ export interface DocumentCommentEntity {
1796
+ id: string;
1797
+ documentId: string;
1798
+ document?: DocumentEntity;
1799
+ versionNumber: number;
1800
+ section?: string | null;
1801
+ quote?: string | null;
1802
+ text: string;
1803
+ authorEmployeeId: string;
1804
+ authorFullName: string;
1805
+ authorRole: string;
1806
+ resolvedAt?: string | null;
1807
+ resolvedByFullName?: string | null;
1808
+ resolutionNote?: string | null;
1809
+ createdAt: string;
1810
+ }
1811
+
1812
+ export interface DraftingRequestEntity {
1813
+ id: string;
1814
+ number: number;
1815
+ year: number;
1816
+ subject: string;
1817
+ details: string;
1818
+ documentTypeId?: string | null;
1819
+ documentType?: DocumentTypeEntity | null;
1820
+ dueAt?: string | null;
1821
+ requesterEmployeeId: string;
1822
+ requesterFullName: string;
1823
+ requesterAreaName?: string | null;
1824
+ requesterDirectorateCode?: number | null;
1825
+ requesterDepartmentId?: string | null;
1826
+ requesterDirectorateName?: string | null;
1827
+ targetDirectorateCode: number;
1828
+ targetDirectorateName: string;
1829
+ targetDepartmentId?: string | null;
1830
+ targetDepartmentName?: string | null;
1831
+ status: DraftingRequestStatus;
1832
+ takenByEmployeeId?: string | null;
1833
+ takenByFullName?: string | null;
1834
+ takenAt?: string | null;
1835
+ closedAt?: string | null;
1836
+ closingNote?: string | null;
1837
+ documentId?: string | null;
1838
+ document?: DocumentEntity | null;
1839
+ recipients?: DraftingRequestRecipientEntity[];
1840
+ attachments?: DraftingRequestAttachmentEntity[];
1841
+ events?: DraftingRequestEventEntity[];
1842
+ createdAt: string;
1843
+ updatedAt: string;
1844
+ }
1845
+
1846
+ export interface DraftingRequestRecipientEntity {
1847
+ id: string;
1848
+ requestId: string;
1849
+ request?: DraftingRequestEntity;
1850
+ employeeId: string;
1851
+ }
1852
+
1853
+ export interface DraftingRequestAttachmentEntity {
1854
+ id: string;
1855
+ requestId: string;
1856
+ request?: DraftingRequestEntity;
1857
+ fileId: string;
1858
+ name: string;
1859
+ }
1860
+
1861
+ export interface DraftingRequestEventEntity {
1862
+ id: string;
1863
+ requestId: string;
1864
+ request?: DraftingRequestEntity;
1865
+ action: DraftingRequestEventAction;
1866
+ note?: string | null;
1867
+ employeeId: string;
1868
+ employeeFullName: string;
1869
+ createdAt: string;
1870
+ }
1871
+
1872
+ export interface DocumentInternalNoteEntity {
1873
+ id: string;
1874
+ documentId: string;
1875
+ document?: DocumentEntity;
1876
+ directorateCode: number;
1877
+ directorateName: string;
1878
+ departmentId?: string | null;
1879
+ departmentName?: string | null;
1880
+ headEmployeeIds: string[];
1881
+ versionNumber: number;
1882
+ authorEmployeeId: string;
1883
+ authorFullName: string;
1884
+ authorRole: string;
1885
+ text: string;
1886
+ createdAt: string;
1887
+ }
1888
+
1889
+ export interface RichImageEntity {
1890
+ id: string;
1891
+ fileId: string;
1892
+ name: string;
1893
+ mimeType: string;
1894
+ width: number;
1895
+ height: number;
1896
+ sha256: string;
1897
+ sizeBytes: number;
1898
+ employeeId: string;
1899
+ createdAt: string;
1900
+ }
1901
+
647
1902
  type JsonValue = string | number | boolean | { [key in string]?: JsonValue } | Array<JsonValue> | null;