@muni-sanfer/types-gestor-documental 0.0.1-beta.6 → 0.0.1-beta.60

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