@opencrvs/toolkit 2.1.0-rc.9cf8328 → 2.1.0-rc.9d2a1ba

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 (49) hide show
  1. package/dist/commons/api/router.d.ts +3237 -3237
  2. package/dist/commons/application-config/index.d.ts +6 -6
  3. package/dist/commons/conditionals/conditionals.d.ts +259 -2102
  4. package/dist/commons/events/ActionConfig.d.ts +105 -105
  5. package/dist/commons/events/ActionDocument.d.ts +113 -113
  6. package/dist/commons/events/ActionType.d.ts +62 -62
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +507 -507
  8. package/dist/commons/events/AuditLog.d.ts +43 -43
  9. package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
  10. package/dist/commons/events/Conditional.d.ts +3 -3
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
  12. package/dist/commons/events/Draft.d.ts +37 -37
  13. package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
  14. package/dist/commons/events/EventConfig.d.ts +5 -5
  15. package/dist/commons/events/EventDocument.d.ts +46 -46
  16. package/dist/commons/events/EventIndex.d.ts +62 -62
  17. package/dist/commons/events/EventMetadata.d.ts +40 -40
  18. package/dist/commons/events/FieldConfig.d.ts +336 -336
  19. package/dist/commons/events/FieldType.d.ts +51 -51
  20. package/dist/commons/events/FieldTypeMapping.d.ts +100 -100
  21. package/dist/commons/events/FieldValue.d.ts +12 -12
  22. package/dist/commons/events/Flag.d.ts +15 -15
  23. package/dist/commons/events/TemplateConfig.d.ts +1 -1
  24. package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
  25. package/dist/commons/events/WorkqueueConfig.d.ts +826 -826
  26. package/dist/commons/events/deduplication.d.ts +1 -1
  27. package/dist/commons/events/event.d.ts +2 -2
  28. package/dist/commons/events/field.d.ts +78 -895
  29. package/dist/commons/events/locations.d.ts +4 -4
  30. package/dist/commons/events/mocks.test.utils.d.ts +2 -2
  31. package/dist/commons/events/scopes.d.ts +4 -4
  32. package/dist/commons/events/state/index.d.ts +17 -17
  33. package/dist/commons/events/state/utils.d.ts +7 -7
  34. package/dist/commons/events/test.utils.d.ts +35 -35
  35. package/dist/commons/events/utils.d.ts +114 -114
  36. package/dist/commons/notification/UserNotifications.d.ts +10 -10
  37. package/dist/environment/derived-variables.d.ts +119 -119
  38. package/dist/environment/derived-variables.d.ts.map +1 -1
  39. package/dist/environment/logger.d.ts.map +1 -1
  40. package/dist/environment/questions.d.ts +75 -74
  41. package/dist/environment/questions.d.ts.map +1 -1
  42. package/dist/environment/setup-environment.js +8 -14
  43. package/dist/environment/utils.d.ts +1 -1
  44. package/dist/events/deduplication.d.ts +1 -1
  45. package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
  46. package/dist/scopes/index.d.ts +146 -146
  47. package/{opencrvs-toolkit-2.1.0-rc.9cf8328.tgz → opencrvs-toolkit-2.1.0-rc.9d2a1ba.tgz} +0 -0
  48. package/package.json +4 -4
  49. package/tsconfig.tsbuildinfo +1 -1
@@ -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;
@@ -67,8 +67,8 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
67
67
  };
68
68
  requireCompletionToContinue: boolean;
69
69
  fields: FieldConfig[];
70
- type: "FORM";
71
70
  conditional?: any;
71
+ type: "FORM";
72
72
  } | {
73
73
  id: string;
74
74
  title: {
@@ -78,6 +78,7 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
78
78
  };
79
79
  requireCompletionToContinue: boolean;
80
80
  fields: FieldConfig[];
81
+ conditional?: any;
81
82
  type: "VERIFICATION";
82
83
  actions: {
83
84
  verify: {
@@ -107,7 +108,6 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
107
108
  };
108
109
  };
109
110
  };
110
- conditional?: any;
111
111
  })[];
112
112
  export declare const getActionAnnotationFields: (actionConfig: ActionConfig) => FieldConfig[];
113
113
  export declare function getAllUniqueFields(eventConfig: EventConfig): FieldConfig[];
@@ -162,313 +162,313 @@ export declare function deepMerge<T extends Record<string, unknown>, K extends R
162
162
  export declare function findLastAssignmentAction(actions: Action[]): {
163
163
  id: string & import("zod").$brand<"UUID">;
164
164
  transactionId: string;
165
- createdByUserType: "user" | "system";
165
+ createdByUserType: "system" | "user";
166
166
  createdAt: string;
167
167
  createdBy: string;
168
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
169
- status: "Requested" | "Accepted" | "Rejected";
170
- type: "REGISTER";
171
168
  createdByRole?: string | undefined;
172
169
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
173
170
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
171
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
174
172
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
173
+ status: "Accepted" | "Rejected" | "Requested";
175
174
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
176
- registrationNumber?: string | undefined;
175
+ type: "CREATE";
177
176
  } | {
178
177
  id: string & import("zod").$brand<"UUID">;
179
178
  transactionId: string;
180
- createdByUserType: "user" | "system";
179
+ createdByUserType: "system" | "user";
181
180
  createdAt: string;
182
181
  createdBy: string;
183
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
184
- status: "Requested" | "Accepted" | "Rejected";
185
- type: "DUPLICATE_DETECTED";
186
- content: {
187
- duplicates: {
188
- id: string & import("zod").$brand<"UUID">;
189
- trackingId: string;
190
- }[];
191
- };
192
182
  createdByRole?: string | undefined;
193
183
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
194
184
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
185
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
195
186
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
187
+ status: "Accepted" | "Rejected" | "Requested";
196
188
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
189
+ type: "REJECT";
190
+ content: {
191
+ reason: string;
192
+ };
197
193
  } | {
198
194
  id: string & import("zod").$brand<"UUID">;
199
195
  transactionId: string;
200
- createdByUserType: "user" | "system";
196
+ createdByUserType: "system" | "user";
201
197
  createdAt: string;
202
198
  createdBy: string;
203
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
204
- status: "Requested" | "Accepted" | "Rejected";
205
- type: "EDIT";
206
199
  createdByRole?: string | undefined;
207
200
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
208
201
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
202
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
209
203
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
204
+ status: "Accepted" | "Rejected" | "Requested";
210
205
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
211
- content?: {
212
- comment?: string | undefined;
213
- } | undefined;
206
+ type: "DUPLICATE_DETECTED";
207
+ content: {
208
+ duplicates: {
209
+ id: string & import("zod").$brand<"UUID">;
210
+ trackingId: string;
211
+ }[];
212
+ };
214
213
  } | {
215
214
  id: string & import("zod").$brand<"UUID">;
216
215
  transactionId: string;
217
- createdByUserType: "user" | "system";
216
+ createdByUserType: "system" | "user";
218
217
  createdAt: string;
219
218
  createdBy: string;
220
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
221
- status: "Requested" | "Accepted" | "Rejected";
222
- type: "PRINT_CERTIFICATE";
223
219
  createdByRole?: string | undefined;
224
220
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
225
221
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
222
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
226
223
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
224
+ status: "Accepted" | "Rejected" | "Requested";
227
225
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
228
- content?: {
229
- templateId?: string | undefined;
230
- } | null | undefined;
226
+ type: "MARK_AS_NOT_DUPLICATE";
231
227
  } | {
232
228
  id: string & import("zod").$brand<"UUID">;
233
229
  transactionId: string;
234
- createdByUserType: "user" | "system";
230
+ createdByUserType: "system" | "user";
235
231
  createdAt: string;
236
232
  createdBy: string;
237
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
238
- status: "Requested" | "Accepted" | "Rejected";
239
- type: "REQUEST_CORRECTION";
240
233
  createdByRole?: string | undefined;
241
234
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
242
235
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
236
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
243
237
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
238
+ status: "Accepted" | "Rejected" | "Requested";
244
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;
245
244
  } | {
246
245
  id: string & import("zod").$brand<"UUID">;
247
246
  transactionId: string;
248
- createdByUserType: "user" | "system";
247
+ createdByUserType: "system" | "user";
249
248
  createdAt: string;
250
249
  createdBy: string;
251
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
252
- status: "Requested" | "Accepted" | "Rejected";
253
- type: "CUSTOM";
254
- customActionType: string;
255
250
  createdByRole?: string | undefined;
256
251
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
257
252
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
253
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
258
254
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
255
+ status: "Accepted" | "Rejected" | "Requested";
259
256
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
257
+ type: "ARCHIVE";
258
+ content: {
259
+ reason: string;
260
+ };
260
261
  } | {
261
262
  id: string & import("zod").$brand<"UUID">;
262
263
  transactionId: string;
263
- createdByUserType: "user" | "system";
264
+ createdByUserType: "system" | "user";
264
265
  createdAt: string;
265
266
  createdBy: string;
266
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
267
- status: "Requested" | "Accepted" | "Rejected";
268
- type: "CREATE";
269
267
  createdByRole?: string | undefined;
270
268
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
271
269
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
270
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
272
271
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
272
+ status: "Accepted" | "Rejected" | "Requested";
273
273
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
274
+ type: "UNARCHIVE";
274
275
  } | {
275
276
  id: string & import("zod").$brand<"UUID">;
276
277
  transactionId: string;
277
- createdByUserType: "user" | "system";
278
+ createdByUserType: "system" | "user";
278
279
  createdAt: string;
279
280
  createdBy: string;
280
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
281
- status: "Requested" | "Accepted" | "Rejected";
282
- type: "REJECT";
283
- content: {
284
- reason: string;
285
- };
286
281
  createdByRole?: string | undefined;
287
282
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
288
283
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
284
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
289
285
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
286
+ status: "Accepted" | "Rejected" | "Requested";
290
287
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
288
+ type: "NOTIFY";
291
289
  } | {
292
290
  id: string & import("zod").$brand<"UUID">;
293
291
  transactionId: string;
294
- createdByUserType: "user" | "system";
292
+ createdByUserType: "system" | "user";
295
293
  createdAt: string;
296
294
  createdBy: string;
297
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
298
- status: "Requested" | "Accepted" | "Rejected";
299
- type: "MARK_AS_NOT_DUPLICATE";
300
295
  createdByRole?: string | undefined;
301
296
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
302
297
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
298
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
303
299
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
300
+ status: "Accepted" | "Rejected" | "Requested";
304
301
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
302
+ type: "REGISTER";
303
+ registrationNumber?: string | undefined;
305
304
  } | {
306
305
  id: string & import("zod").$brand<"UUID">;
307
306
  transactionId: string;
308
- createdByUserType: "user" | "system";
307
+ createdByUserType: "system" | "user";
309
308
  createdAt: string;
310
309
  createdBy: string;
311
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
312
- status: "Requested" | "Accepted" | "Rejected";
313
- type: "MARK_AS_DUPLICATE";
314
310
  createdByRole?: string | undefined;
315
311
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
316
312
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
313
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
317
314
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
315
+ status: "Accepted" | "Rejected" | "Requested";
318
316
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
319
- content?: {
320
- duplicateOf: string & import("zod").$brand<"UUID">;
321
- } | undefined;
317
+ type: "DECLARE";
322
318
  } | {
323
319
  id: string & import("zod").$brand<"UUID">;
324
320
  transactionId: string;
325
- createdByUserType: "user" | "system";
321
+ createdByUserType: "system" | "user";
326
322
  createdAt: string;
327
323
  createdBy: string;
328
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
329
- status: "Requested" | "Accepted" | "Rejected";
330
- type: "ARCHIVE";
331
- content: {
332
- reason: string;
333
- };
334
324
  createdByRole?: string | undefined;
335
325
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
336
326
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
327
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
337
328
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
329
+ status: "Accepted" | "Rejected" | "Requested";
338
330
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
331
+ type: "ASSIGN";
332
+ assignedTo: string;
339
333
  } | {
340
334
  id: string & import("zod").$brand<"UUID">;
341
335
  transactionId: string;
342
- createdByUserType: "user" | "system";
336
+ createdByUserType: "system" | "user";
343
337
  createdAt: string;
344
338
  createdBy: string;
345
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
346
- status: "Requested" | "Accepted" | "Rejected";
347
- type: "UNARCHIVE";
348
339
  createdByRole?: string | undefined;
349
340
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
350
341
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
342
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
351
343
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
344
+ status: "Accepted" | "Rejected" | "Requested";
352
345
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
346
+ type: "REQUEST_CORRECTION";
353
347
  } | {
354
348
  id: string & import("zod").$brand<"UUID">;
355
349
  transactionId: string;
356
- createdByUserType: "user" | "system";
350
+ createdByUserType: "system" | "user";
357
351
  createdAt: string;
358
352
  createdBy: string;
359
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
360
- status: "Requested" | "Accepted" | "Rejected";
361
- type: "NOTIFY";
362
353
  createdByRole?: string | undefined;
363
354
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
364
355
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
356
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
365
357
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
358
+ status: "Accepted" | "Rejected" | "Requested";
366
359
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
360
+ type: "APPROVE_CORRECTION";
361
+ requestId: string;
362
+ content?: {
363
+ immediateCorrection?: boolean | undefined;
364
+ } | undefined;
367
365
  } | {
368
366
  id: string & import("zod").$brand<"UUID">;
369
367
  transactionId: string;
370
- createdByUserType: "user" | "system";
368
+ createdByUserType: "system" | "user";
371
369
  createdAt: string;
372
370
  createdBy: string;
373
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
374
- status: "Requested" | "Accepted" | "Rejected";
375
- type: "DECLARE";
376
371
  createdByRole?: string | undefined;
377
372
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
378
373
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
374
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
379
375
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
376
+ status: "Accepted" | "Rejected" | "Requested";
380
377
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
378
+ type: "REJECT_CORRECTION";
379
+ requestId: string;
380
+ content: {
381
+ reason: string;
382
+ };
381
383
  } | {
382
384
  id: string & import("zod").$brand<"UUID">;
383
385
  transactionId: string;
384
- createdByUserType: "user" | "system";
386
+ createdByUserType: "system" | "user";
385
387
  createdAt: string;
386
388
  createdBy: string;
387
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
388
- status: "Requested" | "Accepted" | "Rejected";
389
- type: "ASSIGN";
390
- assignedTo: string;
391
389
  createdByRole?: string | undefined;
392
390
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
393
391
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
392
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
394
393
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
394
+ status: "Accepted" | "Rejected" | "Requested";
395
395
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
396
+ type: "UNASSIGN";
396
397
  } | {
397
398
  id: string & import("zod").$brand<"UUID">;
398
399
  transactionId: string;
399
- createdByUserType: "user" | "system";
400
+ createdByUserType: "system" | "user";
400
401
  createdAt: string;
401
402
  createdBy: string;
402
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
403
- status: "Requested" | "Accepted" | "Rejected";
404
- type: "APPROVE_CORRECTION";
405
- requestId: string;
406
403
  createdByRole?: string | undefined;
407
404
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
408
405
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
406
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
409
407
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
408
+ status: "Accepted" | "Rejected" | "Requested";
410
409
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
410
+ type: "PRINT_CERTIFICATE";
411
411
  content?: {
412
- immediateCorrection?: boolean | undefined;
413
- } | undefined;
412
+ templateId?: string | undefined;
413
+ } | null | undefined;
414
414
  } | {
415
415
  id: string & import("zod").$brand<"UUID">;
416
416
  transactionId: string;
417
- createdByUserType: "user" | "system";
417
+ createdByUserType: "system" | "user";
418
418
  createdAt: string;
419
419
  createdBy: string;
420
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
421
- status: "Requested" | "Accepted" | "Rejected";
422
- type: "REJECT_CORRECTION";
423
- requestId: string;
424
- content: {
425
- reason: string;
426
- };
427
420
  createdByRole?: string | undefined;
428
421
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
429
422
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
423
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
430
424
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
425
+ status: "Accepted" | "Rejected" | "Requested";
431
426
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
427
+ type: "READ";
432
428
  } | {
433
429
  id: string & import("zod").$brand<"UUID">;
434
430
  transactionId: string;
435
- createdByUserType: "user" | "system";
431
+ createdByUserType: "system" | "user";
436
432
  createdAt: string;
437
433
  createdBy: string;
438
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
439
- status: "Requested" | "Accepted" | "Rejected";
440
- type: "UNASSIGN";
441
434
  createdByRole?: string | undefined;
442
435
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
443
436
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
437
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
444
438
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
439
+ status: "Accepted" | "Rejected" | "Requested";
445
440
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
441
+ type: "EDIT";
442
+ content?: {
443
+ comment?: string | undefined;
444
+ } | undefined;
446
445
  } | {
447
446
  id: string & import("zod").$brand<"UUID">;
448
447
  transactionId: string;
449
- createdByUserType: "user" | "system";
448
+ createdByUserType: "system" | "user";
450
449
  createdAt: string;
451
450
  createdBy: string;
452
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
453
- status: "Requested" | "Accepted" | "Rejected";
454
- type: "READ";
455
451
  createdByRole?: string | undefined;
456
452
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
457
453
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
454
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
458
455
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
456
+ status: "Accepted" | "Rejected" | "Requested";
459
457
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
458
+ type: "CUSTOM";
459
+ customActionType: string;
460
460
  } | {
461
461
  id: string & import("zod").$brand<"UUID">;
462
462
  transactionId: string;
463
- createdByUserType: "user" | "system";
463
+ createdByUserType: "system" | "user";
464
464
  createdAt: string;
465
465
  createdBy: string;
466
- type: "CUSTOM" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
467
- status: "Rejected";
468
466
  createdByRole?: string | undefined;
469
467
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
470
468
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
471
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";
472
472
  } | undefined;
473
473
  /**
474
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<{