@opencrvs/toolkit 2.1.0-rc.83d4009 → 2.1.0-rc.86244fb

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