@opencrvs/toolkit 2.1.0-rc.1dde62b → 2.1.0-rc.1f4b4ad

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 (66) hide show
  1. package/dist/application-config/index.js +3 -1
  2. package/dist/commons/api/router.d.ts +3428 -3360
  3. package/dist/commons/application-config/index.d.ts +6 -6
  4. package/dist/commons/conditionals/conditionals.d.ts +32 -323
  5. package/dist/commons/events/ActionConfig.d.ts +112 -105
  6. package/dist/commons/events/ActionDocument.d.ts +119 -119
  7. package/dist/commons/events/ActionInput.d.ts +0 -6
  8. package/dist/commons/events/ActionType.d.ts +62 -62
  9. package/dist/commons/events/AdvancedSearchConfig.d.ts +513 -507
  10. package/dist/commons/events/AuditLog.d.ts +79 -42
  11. package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
  12. package/dist/commons/events/Conditional.d.ts +3 -3
  13. package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
  14. package/dist/commons/events/Draft.d.ts +37 -37
  15. package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
  16. package/dist/commons/events/EventConfig.d.ts +5 -5
  17. package/dist/commons/events/EventDocument.d.ts +48 -48
  18. package/dist/commons/events/EventIndex.d.ts +62 -62
  19. package/dist/commons/events/EventMetadata.d.ts +40 -40
  20. package/dist/commons/events/FieldConfig.d.ts +341 -336
  21. package/dist/commons/events/FieldType.d.ts +51 -51
  22. package/dist/commons/events/FieldTypeMapping.d.ts +100 -100
  23. package/dist/commons/events/FieldValue.d.ts +12 -12
  24. package/dist/commons/events/Flag.d.ts +15 -15
  25. package/dist/commons/events/TemplateConfig.d.ts +1 -1
  26. package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
  27. package/dist/commons/events/WorkqueueConfig.d.ts +826 -826
  28. package/dist/commons/events/deduplication.d.ts +1 -1
  29. package/dist/commons/events/event.d.ts +2 -2
  30. package/dist/commons/events/field.d.ts +69 -198
  31. package/dist/commons/events/index.d.ts +1 -0
  32. package/dist/commons/events/locationPayloads.d.ts +95 -0
  33. package/dist/commons/events/locations.d.ts +103 -6
  34. package/dist/commons/events/mocks.test.utils.d.ts +18 -4
  35. package/dist/commons/events/scopes.d.ts +4 -4
  36. package/dist/commons/events/state/index.d.ts +17 -17
  37. package/dist/commons/events/state/utils.d.ts +7 -7
  38. package/dist/commons/events/test.utils.d.ts +40 -43
  39. package/dist/commons/events/utils.d.ts +122 -114
  40. package/dist/commons/notification/UserNotifications.d.ts +10 -10
  41. package/dist/conditionals/index.js +1 -0
  42. package/dist/environment/derived-variables.d.ts +119 -119
  43. package/dist/environment/derived-variables.d.ts.map +1 -1
  44. package/dist/environment/logger.d.ts +3 -12
  45. package/dist/environment/logger.d.ts.map +1 -1
  46. package/dist/environment/manage-users.js +17 -7
  47. package/dist/environment/questions.d.ts +75 -74
  48. package/dist/environment/questions.d.ts.map +1 -1
  49. package/dist/environment/setup-environment.js +8 -14
  50. package/dist/environment/swarm-to-k8s.js +17 -7
  51. package/dist/environment/update-workflows.js +17 -7
  52. package/dist/environment/users.js +17 -7
  53. package/dist/environment/utils.d.ts +1 -1
  54. package/dist/environment/utils.js +17 -7
  55. package/dist/events/deduplication.d.ts +1 -1
  56. package/dist/events/index.js +179 -70
  57. package/dist/migrations/v2.0/convert-config-files-to-ts.js +17 -7
  58. package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
  59. package/dist/migrations/v2.0/remove-hearth-migrations.js +17 -7
  60. package/dist/notification/index.js +162 -93
  61. package/dist/scopes/index.d.ts +148 -146
  62. package/dist/scopes/index.js +1 -0
  63. package/opencrvs-toolkit-2.1.0-rc.1f4b4ad.tgz +0 -0
  64. package/package.json +5 -5
  65. package/tsconfig.tsbuildinfo +1 -1
  66. package/opencrvs-toolkit-2.1.0-rc.1dde62b.tgz +0 -0
@@ -21,8 +21,8 @@ export declare function getDeclarationPages(configuration: EventConfig): {
21
21
  };
22
22
  requireCompletionToContinue: boolean;
23
23
  fields: FieldConfig[];
24
- type: "FORM";
25
24
  conditional?: any;
25
+ type: "FORM";
26
26
  }[];
27
27
  export declare function getDeclaration(configuration: EventConfig): {
28
28
  label: {
@@ -39,8 +39,8 @@ export declare function getDeclaration(configuration: EventConfig): {
39
39
  };
40
40
  requireCompletionToContinue: boolean;
41
41
  fields: FieldConfig[];
42
- type: "FORM";
43
42
  conditional?: any;
43
+ type: "FORM";
44
44
  }[];
45
45
  };
46
46
  export declare function isActionConfigType(type: ActionType): type is ActionConfigTypes;
@@ -50,6 +50,14 @@ export declare function getActionConfig({ eventConfiguration, actionType, custom
50
50
  customActionType?: string;
51
51
  }): ActionConfig | undefined;
52
52
  export declare function getCustomActionFields(eventConfiguration: EventConfig, customActionType: string): FieldConfig[];
53
+ /**
54
+ * Returns the fields configured for an action's confirmation dialog.
55
+ *
56
+ * Unlike review fields and supporting copy, NOTIFY does NOT fall back to the
57
+ * DECLARE config here: dialog fields always come from the action's own
58
+ * configuration entry.
59
+ */
60
+ export declare function getActionFormFields(eventConfiguration: EventConfig, actionType: ActionType, customActionType?: string): FieldConfig[];
53
61
  export declare function getPrintCertificatePages(configuration: EventConfig): ({
54
62
  id: string;
55
63
  title: {
@@ -59,8 +67,8 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
59
67
  };
60
68
  requireCompletionToContinue: boolean;
61
69
  fields: FieldConfig[];
62
- type: "FORM";
63
70
  conditional?: any;
71
+ type: "FORM";
64
72
  } | {
65
73
  id: string;
66
74
  title: {
@@ -70,6 +78,7 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
70
78
  };
71
79
  requireCompletionToContinue: boolean;
72
80
  fields: FieldConfig[];
81
+ conditional?: any;
73
82
  type: "VERIFICATION";
74
83
  actions: {
75
84
  verify: {
@@ -99,7 +108,6 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
99
108
  };
100
109
  };
101
110
  };
102
- conditional?: any;
103
111
  })[];
104
112
  export declare const getActionAnnotationFields: (actionConfig: ActionConfig) => FieldConfig[];
105
113
  export declare function getAllUniqueFields(eventConfig: EventConfig): FieldConfig[];
@@ -154,313 +162,313 @@ export declare function deepMerge<T extends Record<string, unknown>, K extends R
154
162
  export declare function findLastAssignmentAction(actions: Action[]): {
155
163
  id: string & import("zod").$brand<"UUID">;
156
164
  transactionId: string;
157
- createdByUserType: "user" | "system";
165
+ createdByUserType: "system" | "user";
158
166
  createdAt: string;
159
167
  createdBy: string;
160
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
161
- status: "Requested" | "Accepted" | "Rejected";
162
- type: "REGISTER";
163
168
  createdByRole?: string | undefined;
164
169
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
165
170
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
171
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
166
172
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
173
+ status: "Accepted" | "Rejected" | "Requested";
167
174
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
168
- registrationNumber?: string | undefined;
175
+ type: "CREATE";
169
176
  } | {
170
177
  id: string & import("zod").$brand<"UUID">;
171
178
  transactionId: string;
172
- createdByUserType: "user" | "system";
179
+ createdByUserType: "system" | "user";
173
180
  createdAt: string;
174
181
  createdBy: string;
175
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
176
- status: "Requested" | "Accepted" | "Rejected";
177
- type: "DUPLICATE_DETECTED";
178
- content: {
179
- duplicates: {
180
- id: string & import("zod").$brand<"UUID">;
181
- trackingId: string;
182
- }[];
183
- };
184
182
  createdByRole?: string | undefined;
185
183
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
186
184
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
185
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
187
186
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
187
+ status: "Accepted" | "Rejected" | "Requested";
188
188
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
189
+ type: "REJECT";
190
+ content: {
191
+ reason: string;
192
+ };
189
193
  } | {
190
194
  id: string & import("zod").$brand<"UUID">;
191
195
  transactionId: string;
192
- createdByUserType: "user" | "system";
196
+ createdByUserType: "system" | "user";
193
197
  createdAt: string;
194
198
  createdBy: string;
195
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
196
- status: "Requested" | "Accepted" | "Rejected";
197
- type: "EDIT";
198
- content: {
199
- comment?: string | undefined;
200
- };
201
199
  createdByRole?: string | undefined;
202
200
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
203
201
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
202
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
204
203
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
204
+ status: "Accepted" | "Rejected" | "Requested";
205
205
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
206
+ type: "DUPLICATE_DETECTED";
207
+ content: {
208
+ duplicates: {
209
+ id: string & import("zod").$brand<"UUID">;
210
+ trackingId: string;
211
+ }[];
212
+ };
206
213
  } | {
207
214
  id: string & import("zod").$brand<"UUID">;
208
215
  transactionId: string;
209
- createdByUserType: "user" | "system";
216
+ createdByUserType: "system" | "user";
210
217
  createdAt: string;
211
218
  createdBy: string;
212
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
213
- status: "Requested" | "Accepted" | "Rejected";
214
- type: "PRINT_CERTIFICATE";
215
219
  createdByRole?: string | undefined;
216
220
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
217
221
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
222
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
218
223
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
224
+ status: "Accepted" | "Rejected" | "Requested";
219
225
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
220
- content?: {
221
- templateId?: string | undefined;
222
- } | null | undefined;
226
+ type: "MARK_AS_NOT_DUPLICATE";
223
227
  } | {
224
228
  id: string & import("zod").$brand<"UUID">;
225
229
  transactionId: string;
226
- createdByUserType: "user" | "system";
230
+ createdByUserType: "system" | "user";
227
231
  createdAt: string;
228
232
  createdBy: string;
229
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
230
- status: "Requested" | "Accepted" | "Rejected";
231
- type: "REQUEST_CORRECTION";
232
233
  createdByRole?: string | undefined;
233
234
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
234
235
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
236
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
235
237
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
238
+ status: "Accepted" | "Rejected" | "Requested";
236
239
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
240
+ type: "MARK_AS_DUPLICATE";
241
+ content?: {
242
+ duplicateOf: string & import("zod").$brand<"UUID">;
243
+ } | undefined;
237
244
  } | {
238
245
  id: string & import("zod").$brand<"UUID">;
239
246
  transactionId: string;
240
- createdByUserType: "user" | "system";
247
+ createdByUserType: "system" | "user";
241
248
  createdAt: string;
242
249
  createdBy: string;
243
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
244
- status: "Requested" | "Accepted" | "Rejected";
245
- type: "CUSTOM";
246
- customActionType: string;
247
250
  createdByRole?: string | undefined;
248
251
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
249
252
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
253
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
250
254
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
255
+ status: "Accepted" | "Rejected" | "Requested";
251
256
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
257
+ type: "ARCHIVE";
258
+ content: {
259
+ reason: string;
260
+ };
252
261
  } | {
253
262
  id: string & import("zod").$brand<"UUID">;
254
263
  transactionId: string;
255
- createdByUserType: "user" | "system";
264
+ createdByUserType: "system" | "user";
256
265
  createdAt: string;
257
266
  createdBy: string;
258
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
259
- status: "Requested" | "Accepted" | "Rejected";
260
- type: "CREATE";
261
267
  createdByRole?: string | undefined;
262
268
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
263
269
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
270
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
264
271
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
272
+ status: "Accepted" | "Rejected" | "Requested";
265
273
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
274
+ type: "UNARCHIVE";
266
275
  } | {
267
276
  id: string & import("zod").$brand<"UUID">;
268
277
  transactionId: string;
269
- createdByUserType: "user" | "system";
278
+ createdByUserType: "system" | "user";
270
279
  createdAt: string;
271
280
  createdBy: string;
272
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
273
- status: "Requested" | "Accepted" | "Rejected";
274
- type: "REJECT";
275
- content: {
276
- reason: string;
277
- };
278
281
  createdByRole?: string | undefined;
279
282
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
280
283
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
284
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
281
285
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
286
+ status: "Accepted" | "Rejected" | "Requested";
282
287
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
288
+ type: "NOTIFY";
283
289
  } | {
284
290
  id: string & import("zod").$brand<"UUID">;
285
291
  transactionId: string;
286
- createdByUserType: "user" | "system";
292
+ createdByUserType: "system" | "user";
287
293
  createdAt: string;
288
294
  createdBy: string;
289
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
290
- status: "Requested" | "Accepted" | "Rejected";
291
- type: "MARK_AS_NOT_DUPLICATE";
292
295
  createdByRole?: string | undefined;
293
296
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
294
297
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
298
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
295
299
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
300
+ status: "Accepted" | "Rejected" | "Requested";
296
301
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
302
+ type: "REGISTER";
303
+ registrationNumber?: string | undefined;
297
304
  } | {
298
305
  id: string & import("zod").$brand<"UUID">;
299
306
  transactionId: string;
300
- createdByUserType: "user" | "system";
307
+ createdByUserType: "system" | "user";
301
308
  createdAt: string;
302
309
  createdBy: string;
303
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
304
- status: "Requested" | "Accepted" | "Rejected";
305
- type: "MARK_AS_DUPLICATE";
306
310
  createdByRole?: string | undefined;
307
311
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
308
312
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
313
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
309
314
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
315
+ status: "Accepted" | "Rejected" | "Requested";
310
316
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
311
- content?: {
312
- duplicateOf: string & import("zod").$brand<"UUID">;
313
- } | undefined;
317
+ type: "DECLARE";
314
318
  } | {
315
319
  id: string & import("zod").$brand<"UUID">;
316
320
  transactionId: string;
317
- createdByUserType: "user" | "system";
321
+ createdByUserType: "system" | "user";
318
322
  createdAt: string;
319
323
  createdBy: string;
320
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
321
- status: "Requested" | "Accepted" | "Rejected";
322
- type: "ARCHIVE";
323
- content: {
324
- reason: string;
325
- };
326
324
  createdByRole?: string | undefined;
327
325
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
328
326
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
327
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
329
328
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
329
+ status: "Accepted" | "Rejected" | "Requested";
330
330
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
331
+ type: "ASSIGN";
332
+ assignedTo: string;
331
333
  } | {
332
334
  id: string & import("zod").$brand<"UUID">;
333
335
  transactionId: string;
334
- createdByUserType: "user" | "system";
336
+ createdByUserType: "system" | "user";
335
337
  createdAt: string;
336
338
  createdBy: string;
337
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
338
- status: "Requested" | "Accepted" | "Rejected";
339
- type: "UNARCHIVE";
340
339
  createdByRole?: string | undefined;
341
340
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
342
341
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
342
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
343
343
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
344
+ status: "Accepted" | "Rejected" | "Requested";
344
345
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
346
+ type: "REQUEST_CORRECTION";
345
347
  } | {
346
348
  id: string & import("zod").$brand<"UUID">;
347
349
  transactionId: string;
348
- createdByUserType: "user" | "system";
350
+ createdByUserType: "system" | "user";
349
351
  createdAt: string;
350
352
  createdBy: string;
351
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
352
- status: "Requested" | "Accepted" | "Rejected";
353
- type: "NOTIFY";
354
353
  createdByRole?: string | undefined;
355
354
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
356
355
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
356
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
357
357
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
358
+ status: "Accepted" | "Rejected" | "Requested";
358
359
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
360
+ type: "APPROVE_CORRECTION";
361
+ requestId: string;
362
+ content?: {
363
+ immediateCorrection?: boolean | undefined;
364
+ } | undefined;
359
365
  } | {
360
366
  id: string & import("zod").$brand<"UUID">;
361
367
  transactionId: string;
362
- createdByUserType: "user" | "system";
368
+ createdByUserType: "system" | "user";
363
369
  createdAt: string;
364
370
  createdBy: string;
365
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
366
- status: "Requested" | "Accepted" | "Rejected";
367
- type: "DECLARE";
368
371
  createdByRole?: string | undefined;
369
372
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
370
373
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
374
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
371
375
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
376
+ status: "Accepted" | "Rejected" | "Requested";
372
377
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
378
+ type: "REJECT_CORRECTION";
379
+ requestId: string;
380
+ content: {
381
+ reason: string;
382
+ };
373
383
  } | {
374
384
  id: string & import("zod").$brand<"UUID">;
375
385
  transactionId: string;
376
- createdByUserType: "user" | "system";
386
+ createdByUserType: "system" | "user";
377
387
  createdAt: string;
378
388
  createdBy: string;
379
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
380
- status: "Requested" | "Accepted" | "Rejected";
381
- type: "ASSIGN";
382
- assignedTo: string;
383
389
  createdByRole?: string | undefined;
384
390
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
385
391
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
392
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
386
393
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
394
+ status: "Accepted" | "Rejected" | "Requested";
387
395
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
396
+ type: "UNASSIGN";
388
397
  } | {
389
398
  id: string & import("zod").$brand<"UUID">;
390
399
  transactionId: string;
391
- createdByUserType: "user" | "system";
400
+ createdByUserType: "system" | "user";
392
401
  createdAt: string;
393
402
  createdBy: string;
394
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
395
- status: "Requested" | "Accepted" | "Rejected";
396
- type: "APPROVE_CORRECTION";
397
- requestId: string;
398
403
  createdByRole?: string | undefined;
399
404
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
400
405
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
406
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
401
407
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
408
+ status: "Accepted" | "Rejected" | "Requested";
402
409
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
410
+ type: "PRINT_CERTIFICATE";
403
411
  content?: {
404
- immediateCorrection?: boolean | undefined;
405
- } | undefined;
412
+ templateId?: string | undefined;
413
+ } | null | undefined;
406
414
  } | {
407
415
  id: string & import("zod").$brand<"UUID">;
408
416
  transactionId: string;
409
- createdByUserType: "user" | "system";
417
+ createdByUserType: "system" | "user";
410
418
  createdAt: string;
411
419
  createdBy: string;
412
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
413
- status: "Requested" | "Accepted" | "Rejected";
414
- type: "REJECT_CORRECTION";
415
- requestId: string;
416
- content: {
417
- reason: string;
418
- };
419
420
  createdByRole?: string | undefined;
420
421
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
421
422
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
423
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
422
424
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
425
+ status: "Accepted" | "Rejected" | "Requested";
423
426
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
427
+ type: "READ";
424
428
  } | {
425
429
  id: string & import("zod").$brand<"UUID">;
426
430
  transactionId: string;
427
- createdByUserType: "user" | "system";
431
+ createdByUserType: "system" | "user";
428
432
  createdAt: string;
429
433
  createdBy: string;
430
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
431
- status: "Requested" | "Accepted" | "Rejected";
432
- type: "UNASSIGN";
433
434
  createdByRole?: string | undefined;
434
435
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
435
436
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
437
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
436
438
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
439
+ status: "Accepted" | "Rejected" | "Requested";
437
440
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
441
+ type: "EDIT";
442
+ content?: {
443
+ comment?: string | undefined;
444
+ } | undefined;
438
445
  } | {
439
446
  id: string & import("zod").$brand<"UUID">;
440
447
  transactionId: string;
441
- createdByUserType: "user" | "system";
448
+ createdByUserType: "system" | "user";
442
449
  createdAt: string;
443
450
  createdBy: string;
444
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
445
- status: "Requested" | "Accepted" | "Rejected";
446
- type: "READ";
447
451
  createdByRole?: string | undefined;
448
452
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
449
453
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
454
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
450
455
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
456
+ status: "Accepted" | "Rejected" | "Requested";
451
457
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
458
+ type: "CUSTOM";
459
+ customActionType: string;
452
460
  } | {
453
461
  id: string & import("zod").$brand<"UUID">;
454
462
  transactionId: string;
455
- createdByUserType: "user" | "system";
463
+ createdByUserType: "system" | "user";
456
464
  createdAt: string;
457
465
  createdBy: string;
458
- type: "CUSTOM" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
459
- status: "Rejected";
460
466
  createdByRole?: string | undefined;
461
467
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
462
468
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
463
469
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
470
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
471
+ status: "Rejected";
464
472
  } | undefined;
465
473
  /**
466
474
  * Tell compiler that accessing record with arbitrary key might result to undefined
@@ -1,15 +1,15 @@
1
1
  import * as z from 'zod/v4';
2
2
  export declare const TriggerEvent: {
3
- readonly USER_CREATED: "user-created";
4
- readonly USER_UPDATED: "user-updated";
5
- readonly USERNAME_REMINDER: "username-reminder";
6
- readonly RESET_PASSWORD: "reset-password";
7
- readonly RESET_PASSWORD_BY_ADMIN: "reset-password-by-admin";
8
- readonly RESEND_INVITE: "resend-invite";
9
- readonly TWO_FA: "2fa";
10
- readonly ALL_USER_NOTIFICATION: "all-user-notification";
11
- readonly CHANGE_PHONE_NUMBER: "change-phone-number";
12
- readonly CHANGE_EMAIL_ADDRESS: "change-email-address";
3
+ readonly USER_CREATED: 'user-created';
4
+ readonly USER_UPDATED: 'user-updated';
5
+ readonly USERNAME_REMINDER: 'username-reminder';
6
+ readonly RESET_PASSWORD: 'reset-password';
7
+ readonly RESET_PASSWORD_BY_ADMIN: 'reset-password-by-admin';
8
+ readonly RESEND_INVITE: 'resend-invite';
9
+ readonly TWO_FA: '2fa';
10
+ readonly ALL_USER_NOTIFICATION: 'all-user-notification';
11
+ readonly CHANGE_PHONE_NUMBER: 'change-phone-number';
12
+ readonly CHANGE_EMAIL_ADDRESS: 'change-email-address';
13
13
  };
14
14
  export type TriggerEvent = (typeof TriggerEvent)[keyof typeof TriggerEvent];
15
15
  export declare const Recipient: z.ZodObject<{
@@ -169,6 +169,7 @@ var PlainScopeType = z6.enum([
169
169
  "integration.create",
170
170
  "record.import",
171
171
  "config.update-all",
172
+ "location.edit",
172
173
  "attachment.upload",
173
174
  "profile.electronic-signature",
174
175
  "user.read-only-my-audit",