@opencrvs/toolkit 2.1.0-rc.b89dfd1 → 2.1.0-rc.b8f206f

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 (52) hide show
  1. package/dist/commons/api/router.d.ts +1580 -1580
  2. package/dist/commons/application-config/index.d.ts +6 -6
  3. package/dist/commons/conditionals/conditionals.d.ts +2102 -259
  4. package/dist/commons/events/ActionConfig.d.ts +112 -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 +337 -337
  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 +820 -820
  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 +895 -78
  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 +36 -36
  35. package/dist/commons/events/utils.d.ts +122 -114
  36. package/dist/commons/notification/UserNotifications.d.ts +10 -10
  37. package/dist/environment/derived-variables.d.ts +131 -131
  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 +74 -75
  41. package/dist/environment/questions.d.ts.map +1 -1
  42. package/dist/environment/setup-environment.js +14 -8
  43. package/dist/environment/utils.d.ts +1 -1
  44. package/dist/events/deduplication.d.ts +1 -1
  45. package/dist/events/index.js +29 -12
  46. package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
  47. package/dist/notification/index.js +15 -11
  48. package/dist/scopes/index.d.ts +146 -146
  49. package/opencrvs-toolkit-2.1.0-rc.b8f206f.tgz +0 -0
  50. package/package.json +3 -2
  51. package/tsconfig.tsbuildinfo +1 -1
  52. package/opencrvs-toolkit-2.1.0-rc.b89dfd1.tgz +0 -0
@@ -7,8 +7,8 @@ import { SystemContext, UserContext } from '../users/User';
7
7
  /** @deprecated Moving on, location types are arbitrary and defined by the country config. */
8
8
  export declare const LocationTypeV1: z.ZodEnum<{
9
9
  ADMIN_STRUCTURE: "ADMIN_STRUCTURE";
10
- CRVS_OFFICE: "CRVS_OFFICE";
11
10
  HEALTH_FACILITY: "HEALTH_FACILITY";
11
+ CRVS_OFFICE: "CRVS_OFFICE";
12
12
  }>;
13
13
  export type LocationTypeV1 = z.infer<typeof LocationTypeV1>;
14
14
  export declare const AdministrativeArea: z.ZodObject<{
@@ -75,11 +75,11 @@ export declare function canAccessOtherUserWithScopes({ scopes, userToAccess, use
75
75
  */
76
76
  export declare function userCanAccessEventWithScopes(event: Partial<EventIndexWithAdministrativeHierarchy>, scopes: RecordScopeV2[], user: UserContext | SystemContext, customActionType?: string): boolean;
77
77
  export declare function getAdministrativeAreaHierarchy(administrativeAreaId: string | undefined | null, administrativeAreas: Map<UUID, AdministrativeArea>): {
78
- id: string & z.$brand<"UUID">;
78
+ id: string & z.core.$brand<"UUID">;
79
79
  name: string;
80
- externalId?: string | null | undefined;
81
- parentId: (string & z.$brand<"UUID">) | null;
80
+ parentId: (string & z.core.$brand<"UUID">) | null;
82
81
  validUntil: string | null;
82
+ externalId?: string | null | undefined;
83
83
  }[];
84
84
  /**
85
85
  * Resolves a location or administrative area UUID into a root-first hierarchy of UUIDs.
@@ -4,16 +4,16 @@ export declare const V2_DEFAULT_MOCK_LOCATIONS: Location[];
4
4
  export declare const V2_DEFAULT_MOCK_LOCATIONS_MAP: Map<string & import("zod").$brand<"UUID">, {
5
5
  id: string & import("zod").$brand<"UUID">;
6
6
  name: string;
7
- externalId?: string | null | undefined;
8
7
  administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
9
8
  validUntil: string | null;
10
9
  locationType: string | null;
10
+ externalId?: string | null | undefined;
11
11
  }>;
12
12
  export declare const V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP: Map<string & import("zod").$brand<"UUID">, {
13
13
  id: string & import("zod").$brand<"UUID">;
14
14
  name: string;
15
- externalId?: string | null | undefined;
16
15
  parentId: (string & import("zod").$brand<"UUID">) | null;
17
16
  validUntil: string | null;
17
+ externalId?: string | null | undefined;
18
18
  }>;
19
19
  //# sourceMappingURL=mocks.test.utils.d.ts.map
@@ -13,7 +13,7 @@ export declare const ACTION_SCOPE_MAP: {
13
13
  DELETE: ("record.declare" | "record.notify")[];
14
14
  REGISTER: "record.register"[];
15
15
  PRINT_CERTIFICATE: "record.print-certified-copies"[];
16
- REQUEST_CORRECTION: ("record.correct" | "record.request-correction")[];
16
+ REQUEST_CORRECTION: ("record.request-correction" | "record.correct")[];
17
17
  REVIEW_CORRECTION_REQUEST: "record.correct"[];
18
18
  REJECT_CORRECTION: "record.correct"[];
19
19
  APPROVE_CORRECTION: "record.correct"[];
@@ -29,9 +29,9 @@ export declare const ACTION_SCOPE_MAP: {
29
29
  };
30
30
  export declare function hasAnyOfScopes(a: string[], b: string[]): boolean;
31
31
  export declare const AssignmentStatus: {
32
- readonly ASSIGNED_TO_SELF: 'ASSIGNED_TO_SELF';
33
- readonly ASSIGNED_TO_OTHERS: 'ASSIGNED_TO_OTHERS';
34
- readonly UNASSIGNED: 'UNASSIGNED';
32
+ readonly ASSIGNED_TO_SELF: "ASSIGNED_TO_SELF";
33
+ readonly ASSIGNED_TO_OTHERS: "ASSIGNED_TO_OTHERS";
34
+ readonly UNASSIGNED: "UNASSIGNED";
35
35
  };
36
36
  export type AssignmentStatus = (typeof AssignmentStatus)[keyof typeof AssignmentStatus];
37
37
  export declare function getAssignmentStatus(eventState: EventIndex | EventIndexWithAdministrativeHierarchy, userId: string): AssignmentStatus;
@@ -7,7 +7,7 @@ import { Draft } from '../Draft';
7
7
  import { EventConfig } from '../EventConfig';
8
8
  import { UUID } from '../../uuid';
9
9
  import { DocumentPath } from '../../documents';
10
- export declare function getStatusFromActions(actions: Array<Action>): "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
10
+ export declare function getStatusFromActions(actions: Array<Action>): "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
11
11
  export declare function getAssignedUserFromActions(actions: Array<ActionDocument>): string | null;
12
12
  type NonNullableDeep<T> = T extends [unknown, ...unknown[]] ? {
13
13
  [K in keyof T]: NonNullableDeep<NonNullable<T[K]>>;
@@ -63,45 +63,37 @@ export declare function applyDeclarationToEventIndex(eventIndex: EventIndex, dec
63
63
  export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Draft, eventConfiguration: EventConfig): {
64
64
  id: string & import("zod").$brand<"UUID">;
65
65
  type: string;
66
- status: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
66
+ status: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
67
67
  legalStatuses: {
68
68
  NOTIFIED?: {
69
69
  createdAt: string;
70
70
  createdBy: string;
71
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
72
- createdByUserType?: "system" | "user" | null | undefined;
73
71
  acceptedAt: string;
72
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
73
+ createdByUserType?: "user" | "system" | null | undefined;
74
74
  createdByRole?: string | undefined;
75
75
  } | null | undefined;
76
76
  DECLARED?: {
77
77
  createdAt: string;
78
78
  createdBy: string;
79
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
80
- createdByUserType?: "system" | "user" | null | undefined;
81
79
  acceptedAt: string;
80
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
81
+ createdByUserType?: "user" | "system" | null | undefined;
82
82
  createdByRole?: string | undefined;
83
83
  } | null | undefined;
84
84
  REGISTERED?: {
85
85
  createdAt: string;
86
86
  createdBy: string;
87
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
88
- createdByUserType?: "system" | "user" | null | undefined;
89
87
  acceptedAt: string;
90
- createdByRole?: string | undefined;
91
88
  registrationNumber: string;
89
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
90
+ createdByUserType?: "user" | "system" | null | undefined;
91
+ createdByRole?: string | undefined;
92
92
  } | null | undefined;
93
93
  };
94
94
  createdAt: string;
95
- dateOfEvent?: string | null | undefined;
96
- placeOfEvent?: (string & import("zod").$brand<"UUID">) | null | undefined;
97
95
  createdBy: string;
98
- createdByUserType?: "system" | "user" | null | undefined;
99
- updatedByUserRole?: string | null | undefined;
100
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
101
- updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
102
96
  updatedAt: string;
103
- assignedTo?: string | null | undefined;
104
- updatedBy?: string | null | undefined;
105
97
  trackingId: string;
106
98
  potentialDuplicates: {
107
99
  id: string & import("zod").$brand<"UUID">;
@@ -109,6 +101,14 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
109
101
  }[];
110
102
  flags: string[];
111
103
  declaration: Record<string, import("..").FieldValue>;
104
+ dateOfEvent?: string | null | undefined;
105
+ placeOfEvent?: (string & import("zod").$brand<"UUID">) | null | undefined;
106
+ createdByUserType?: "user" | "system" | null | undefined;
107
+ updatedByUserRole?: string | null | undefined;
108
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
109
+ updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
110
+ assignedTo?: string | null | undefined;
111
+ updatedBy?: string | null | undefined;
112
112
  };
113
113
  /**
114
114
  * Annotation is always specific to the action. when action with annotation is triggered multiple times,
@@ -14,17 +14,17 @@ import { Action } from '../ActionDocument';
14
14
  export declare function getActionUpdateMetadata(actions: Action[]): Pick<{
15
15
  id: string & import("zod").$brand<"UUID">;
16
16
  transactionId: string;
17
- createdByUserType: "system" | "user";
17
+ createdByUserType: "user" | "system";
18
18
  createdAt: string;
19
19
  createdBy: string;
20
+ declaration: Record<string, import("..").FieldUpdateValue>;
21
+ status: "Requested" | "Accepted" | "Rejected";
20
22
  createdByRole?: string | undefined;
21
23
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
22
24
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
23
- declaration: Record<string, import("..").FieldUpdateValue>;
24
25
  annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
25
- status: "Accepted" | "Rejected" | "Requested";
26
26
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
27
- }, "createdAt" | "createdAtLocation" | "createdBy" | "createdByRole" | "createdByUserType">;
27
+ }, "createdByUserType" | "createdAt" | "createdBy" | "createdByRole" | "createdAtLocation">;
28
28
  /**
29
29
  * @returns the legal statuses of the event. Event is considered legal if it has been accepted.
30
30
  * @see EventIndex for the description of the returned object.
@@ -33,7 +33,7 @@ export declare function getLegalStatuses(actions: Action[]): {
33
33
  NOTIFIED: {
34
34
  createdAt: string;
35
35
  createdBy: string;
36
- createdByUserType: "system" | "user";
36
+ createdByUserType: "user" | "system";
37
37
  createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
38
38
  acceptedAt: string;
39
39
  createdByRole: string | undefined;
@@ -42,7 +42,7 @@ export declare function getLegalStatuses(actions: Action[]): {
42
42
  DECLARED: {
43
43
  createdAt: string;
44
44
  createdBy: string;
45
- createdByUserType: "system" | "user";
45
+ createdByUserType: "user" | "system";
46
46
  createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
47
47
  acceptedAt: string;
48
48
  createdByRole: string | undefined;
@@ -51,7 +51,7 @@ export declare function getLegalStatuses(actions: Action[]): {
51
51
  REGISTERED: {
52
52
  createdAt: string;
53
53
  createdBy: string;
54
- createdByUserType: "system" | "user";
54
+ createdByUserType: "user" | "system";
55
55
  createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
56
56
  acceptedAt: string;
57
57
  createdByRole: string | undefined;
@@ -23,15 +23,15 @@ export declare const TEST_SYSTEM_IANA_TIMEZONE = "Asia/Dhaka";
23
23
  * These are just for testing purposes to generate realistic mock data.
24
24
  */
25
25
  export declare const TestUserRole: z.ZodEnum<{
26
- COMMUNITY_LEADER: "COMMUNITY_LEADER";
27
26
  FIELD_AGENT: "FIELD_AGENT";
28
27
  LOCAL_REGISTRAR: "LOCAL_REGISTRAR";
29
28
  LOCAL_SYSTEM_ADMIN: "LOCAL_SYSTEM_ADMIN";
30
29
  NATIONAL_REGISTRAR: "NATIONAL_REGISTRAR";
31
- NATIONAL_SYSTEM_ADMIN: "NATIONAL_SYSTEM_ADMIN";
32
- PROVINCIAL_REGISTRAR: "PROVINCIAL_REGISTRAR";
33
30
  REGISTRATION_AGENT: "REGISTRATION_AGENT";
31
+ NATIONAL_SYSTEM_ADMIN: "NATIONAL_SYSTEM_ADMIN";
34
32
  SOCIAL_WORKER: "SOCIAL_WORKER";
33
+ COMMUNITY_LEADER: "COMMUNITY_LEADER";
34
+ PROVINCIAL_REGISTRAR: "PROVINCIAL_REGISTRAR";
35
35
  }>;
36
36
  export type TestUserRole = z.infer<typeof TestUserRole>;
37
37
  export declare function pickRandom<T>(rng: () => number, items: T[]): T;
@@ -72,111 +72,111 @@ export declare function eventPayloadGenerator(rng: () => number, configuration?:
72
72
  };
73
73
  draft: ({ eventId, actionType, annotation, omitFields }: {
74
74
  eventId: UUID;
75
- actionType: Draft['action']['type'];
75
+ actionType: Draft["action"]["type"];
76
76
  annotation?: Record<string, any>;
77
77
  omitFields?: string[];
78
78
  }, input?: Partial<Draft>) => Draft;
79
79
  actions: {
80
- declare: (eventId: string, input?: Partial<Pick<DeclareActionInput, 'transactionId' | 'declaration' | 'annotation' | 'keepAssignment'>>) => {
81
- keepAssignment?: boolean | undefined;
82
- type: "DECLARE";
80
+ declare: (eventId: string, input?: Partial<Pick<DeclareActionInput, "transactionId" | "declaration" | "annotation" | "keepAssignment">>) => {
83
81
  transactionId: string;
84
82
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
85
83
  annotation: {};
84
+ keepAssignment?: boolean | undefined;
85
+ type: "DECLARE";
86
86
  eventId: string;
87
87
  };
88
88
  /**
89
89
  * Notify allows sending incomplete data. Think it as 'partial declare' for now.
90
90
  */
91
- notify: (eventId: string, input?: Partial<Pick<NotifyActionInput, 'transactionId' | 'declaration' | 'keepAssignment'>>) => {
91
+ notify: (eventId: string, input?: Partial<Pick<NotifyActionInput, "transactionId" | "declaration" | "keepAssignment">>) => {
92
92
  type: "NOTIFY";
93
93
  transactionId: string;
94
94
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
95
95
  eventId: string;
96
96
  keepAssignment: boolean | undefined;
97
97
  };
98
- edit: (eventId: string, input?: Partial<Pick<EditActionInput, 'transactionId' | 'declaration' | 'annotation' | 'keepAssignment'>>) => {
98
+ edit: (eventId: string, input?: Partial<Pick<EditActionInput, "transactionId" | "declaration" | "annotation" | "keepAssignment">>) => {
99
+ transactionId: string;
100
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
101
+ annotation: {};
99
102
  keepAssignment?: boolean | undefined;
100
103
  type: "EDIT";
101
104
  content: {
102
105
  comment: string;
103
106
  };
104
- transactionId: string;
105
- declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
106
- annotation: {};
107
107
  eventId: string;
108
108
  };
109
- assign: (eventId: string, input?: Partial<Pick<AssignActionInput, 'transactionId' | 'assignedTo'>>) => {
109
+ assign: (eventId: string, input?: Partial<Pick<AssignActionInput, "transactionId" | "assignedTo">>) => {
110
110
  type: "ASSIGN";
111
111
  transactionId: string;
112
112
  declaration: {};
113
113
  assignedTo: string;
114
114
  eventId: string;
115
115
  };
116
- unassign: (eventId: string, input?: Partial<Pick<UnassignActionInput, 'transactionId'>>) => {
116
+ unassign: (eventId: string, input?: Partial<Pick<UnassignActionInput, "transactionId">>) => {
117
117
  type: "UNASSIGN";
118
118
  transactionId: string;
119
119
  declaration: {};
120
120
  assignedTo: null;
121
121
  eventId: string;
122
122
  };
123
- archive: (eventId: string, input?: Partial<Pick<ArchiveActionInput, 'transactionId' | 'declaration' | 'keepAssignment'>>) => {
123
+ archive: (eventId: string, input?: Partial<Pick<ArchiveActionInput, "transactionId" | "declaration" | "keepAssignment">>) => {
124
+ transactionId: string;
125
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
124
126
  keepAssignment?: boolean | undefined;
125
127
  type: "ARCHIVE";
126
- transactionId: string;
127
- declaration: {};
128
128
  annotation: {};
129
129
  eventId: string;
130
130
  content: {
131
131
  reason: string;
132
132
  };
133
133
  };
134
- unarchive: (eventId: string, input?: Partial<Pick<UnarchiveActionInput, 'transactionId' | 'declaration' | 'keepAssignment'>>) => {
134
+ unarchive: (eventId: string, input?: Partial<Pick<UnarchiveActionInput, "transactionId" | "declaration" | "keepAssignment">>) => {
135
+ transactionId: string;
136
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
135
137
  keepAssignment?: boolean | undefined;
136
138
  type: "UNARCHIVE";
137
- transactionId: string;
138
- declaration: {};
139
139
  annotation: {};
140
140
  eventId: string;
141
141
  };
142
- reject: (eventId: string, input?: Partial<Pick<RejectDeclarationActionInput, 'transactionId' | 'annotation' | 'keepAssignment'>>) => {
142
+ reject: (eventId: string, input?: Partial<Pick<RejectDeclarationActionInput, "transactionId" | "annotation" | "keepAssignment">>) => {
143
+ transactionId: string;
144
+ annotation: {};
143
145
  keepAssignment?: boolean | undefined;
144
146
  type: "REJECT";
145
- transactionId: string;
146
147
  declaration: {};
147
- annotation: {};
148
148
  eventId: string;
149
149
  content: {
150
150
  reason: string;
151
151
  };
152
152
  };
153
- register: (eventId: string, input?: Partial<Pick<RegisterActionInput, 'transactionId' | 'declaration' | 'annotation' | 'keepAssignment' | 'registrationNumber'>>) => {
154
- keepAssignment?: boolean | undefined;
155
- registrationNumber?: string | undefined;
156
- type: "REGISTER";
153
+ register: (eventId: string, input?: Partial<Pick<RegisterActionInput, "transactionId" | "declaration" | "annotation" | "keepAssignment" | "registrationNumber">>) => {
157
154
  transactionId: string;
158
155
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
159
156
  annotation: {};
157
+ registrationNumber?: string | undefined;
158
+ keepAssignment?: boolean | undefined;
159
+ type: "REGISTER";
160
160
  eventId: string;
161
161
  };
162
- printCertificate: (eventId: string, input?: Partial<Pick<RegisterActionInput, 'transactionId' | 'annotation' | 'keepAssignment'>>) => {
162
+ printCertificate: (eventId: string, input?: Partial<Pick<RegisterActionInput, "transactionId" | "annotation" | "keepAssignment">>) => {
163
+ transactionId: string;
164
+ annotation: {};
163
165
  keepAssignment?: boolean | undefined;
164
166
  type: "PRINT_CERTIFICATE";
165
- transactionId: string;
166
167
  declaration: {};
167
- annotation: {};
168
168
  eventId: string;
169
169
  };
170
170
  correction: {
171
- request: (eventId: string, input?: Partial<Pick<RequestCorrectionActionInput, 'transactionId' | 'declaration' | 'annotation' | 'keepAssignment'>>) => {
171
+ request: (eventId: string, input?: Partial<Pick<RequestCorrectionActionInput, "transactionId" | "declaration" | "annotation" | "keepAssignment">>) => {
172
172
  type: "REQUEST_CORRECTION";
173
173
  transactionId: string;
174
- declaration: import("lodash").Omit<Record<string, import("./FieldValue").FieldUpdateValue>, "applicant.email" | "applicant.image">;
174
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
175
175
  annotation: {};
176
176
  eventId: string;
177
177
  keepAssignment: boolean | undefined;
178
178
  };
179
- approve: (eventId: string, requestId: string, input?: Partial<Pick<ApproveCorrectionActionInput, 'transactionId' | 'annotation' | 'keepAssignment'>>) => {
179
+ approve: (eventId: string, requestId: string, input?: Partial<Pick<ApproveCorrectionActionInput, "transactionId" | "annotation" | "keepAssignment">>) => {
180
180
  type: "APPROVE_CORRECTION";
181
181
  transactionId: string;
182
182
  declaration: {};
@@ -185,7 +185,7 @@ export declare function eventPayloadGenerator(rng: () => number, configuration?:
185
185
  requestId: string;
186
186
  keepAssignment: boolean | undefined;
187
187
  };
188
- reject: (eventId: string, requestId: string, input: Partial<Pick<RejectCorrectionActionInput, 'transactionId' | 'annotation' | 'keepAssignment' | 'content'>>) => {
188
+ reject: (eventId: string, requestId: string, input: Partial<Pick<RejectCorrectionActionInput, "transactionId" | "annotation" | "keepAssignment" | "content">>) => {
189
189
  type: "REJECT_CORRECTION";
190
190
  transactionId: string;
191
191
  declaration: {};
@@ -199,7 +199,7 @@ export declare function eventPayloadGenerator(rng: () => number, configuration?:
199
199
  };
200
200
  };
201
201
  duplicate: {
202
- markAsDuplicate: (eventId: string, input?: Partial<Pick<MarkAsDuplicateActionInput, 'transactionId' | 'declaration' | 'annotation' | 'keepAssignment'>>) => {
202
+ markAsDuplicate: (eventId: string, input?: Partial<Pick<MarkAsDuplicateActionInput, "transactionId" | "declaration" | "annotation" | "keepAssignment">>) => {
203
203
  type: "MARK_AS_DUPLICATE";
204
204
  transactionId: string;
205
205
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
@@ -207,7 +207,7 @@ export declare function eventPayloadGenerator(rng: () => number, configuration?:
207
207
  eventId: string;
208
208
  keepAssignment: boolean | undefined;
209
209
  };
210
- markNotDuplicate: (eventId: string, input?: Partial<Pick<MarkNotDuplicateActionInput, 'transactionId' | 'declaration' | 'annotation' | 'keepAssignment'>>) => {
210
+ markNotDuplicate: (eventId: string, input?: Partial<Pick<MarkNotDuplicateActionInput, "transactionId" | "declaration" | "annotation" | "keepAssignment">>) => {
211
211
  type: "MARK_AS_NOT_DUPLICATE";
212
212
  transactionId: string;
213
213
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;