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