@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.
- package/dist/application-config/index.js +3 -1
- package/dist/commons/api/router.d.ts +3428 -3360
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +32 -323
- package/dist/commons/events/ActionConfig.d.ts +112 -105
- package/dist/commons/events/ActionDocument.d.ts +119 -119
- package/dist/commons/events/ActionInput.d.ts +0 -6
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +513 -507
- package/dist/commons/events/AuditLog.d.ts +79 -42
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/Conditional.d.ts +3 -3
- package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
- package/dist/commons/events/Draft.d.ts +37 -37
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +5 -5
- package/dist/commons/events/EventDocument.d.ts +48 -48
- package/dist/commons/events/EventIndex.d.ts +62 -62
- package/dist/commons/events/EventMetadata.d.ts +40 -40
- package/dist/commons/events/FieldConfig.d.ts +341 -336
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +100 -100
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/Flag.d.ts +15 -15
- package/dist/commons/events/TemplateConfig.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
- package/dist/commons/events/WorkqueueConfig.d.ts +826 -826
- package/dist/commons/events/deduplication.d.ts +1 -1
- package/dist/commons/events/event.d.ts +2 -2
- package/dist/commons/events/field.d.ts +69 -198
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/locationPayloads.d.ts +95 -0
- package/dist/commons/events/locations.d.ts +103 -6
- package/dist/commons/events/mocks.test.utils.d.ts +18 -4
- package/dist/commons/events/scopes.d.ts +4 -4
- package/dist/commons/events/state/index.d.ts +17 -17
- package/dist/commons/events/state/utils.d.ts +7 -7
- package/dist/commons/events/test.utils.d.ts +40 -43
- package/dist/commons/events/utils.d.ts +122 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/conditionals/index.js +1 -0
- package/dist/environment/derived-variables.d.ts +119 -119
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/logger.d.ts +3 -12
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/manage-users.js +17 -7
- package/dist/environment/questions.d.ts +75 -74
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +8 -14
- package/dist/environment/swarm-to-k8s.js +17 -7
- package/dist/environment/update-workflows.js +17 -7
- package/dist/environment/users.js +17 -7
- package/dist/environment/utils.d.ts +1 -1
- package/dist/environment/utils.js +17 -7
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +179 -70
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +17 -7
- package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
- package/dist/migrations/v2.0/remove-hearth-migrations.js +17 -7
- package/dist/notification/index.js +162 -93
- package/dist/scopes/index.d.ts +148 -146
- package/dist/scopes/index.js +1 -0
- package/opencrvs-toolkit-2.1.0-rc.1f4b4ad.tgz +0 -0
- package/package.json +5 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.1dde62b.tgz +0 -0
|
@@ -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>): "
|
|
10
|
+
export declare function getStatusFromActions(actions: Array<Action>): "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
|
|
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,37 +63,45 @@ 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: "
|
|
66
|
+
status: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
|
|
67
67
|
legalStatuses: {
|
|
68
68
|
NOTIFIED?: {
|
|
69
69
|
createdAt: string;
|
|
70
70
|
createdBy: string;
|
|
71
|
-
acceptedAt: string;
|
|
72
71
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
73
|
-
createdByUserType?: "
|
|
72
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
|
73
|
+
acceptedAt: string;
|
|
74
74
|
createdByRole?: string | undefined;
|
|
75
75
|
} | null | undefined;
|
|
76
76
|
DECLARED?: {
|
|
77
77
|
createdAt: string;
|
|
78
78
|
createdBy: string;
|
|
79
|
-
acceptedAt: string;
|
|
80
79
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
81
|
-
createdByUserType?: "
|
|
80
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
|
81
|
+
acceptedAt: string;
|
|
82
82
|
createdByRole?: string | undefined;
|
|
83
83
|
} | null | undefined;
|
|
84
84
|
REGISTERED?: {
|
|
85
85
|
createdAt: string;
|
|
86
86
|
createdBy: string;
|
|
87
|
-
acceptedAt: string;
|
|
88
|
-
registrationNumber: string;
|
|
89
87
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
90
|
-
createdByUserType?: "
|
|
88
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
|
89
|
+
acceptedAt: string;
|
|
91
90
|
createdByRole?: string | undefined;
|
|
91
|
+
registrationNumber: string;
|
|
92
92
|
} | null | undefined;
|
|
93
93
|
};
|
|
94
94
|
createdAt: string;
|
|
95
|
+
dateOfEvent?: string | null | undefined;
|
|
96
|
+
placeOfEvent?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
95
97
|
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;
|
|
96
102
|
updatedAt: string;
|
|
103
|
+
assignedTo?: string | null | undefined;
|
|
104
|
+
updatedBy?: string | null | undefined;
|
|
97
105
|
trackingId: string;
|
|
98
106
|
potentialDuplicates: {
|
|
99
107
|
id: string & import("zod").$brand<"UUID">;
|
|
@@ -101,14 +109,6 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
101
109
|
}[];
|
|
102
110
|
flags: string[];
|
|
103
111
|
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: "
|
|
17
|
+
createdByUserType: "system" | "user";
|
|
18
18
|
createdAt: string;
|
|
19
19
|
createdBy: string;
|
|
20
|
-
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
21
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
22
20
|
createdByRole?: string | undefined;
|
|
23
21
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
24
22
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
23
|
+
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
25
24
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
25
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
26
26
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
27
|
-
}, "
|
|
27
|
+
}, "createdAt" | "createdAtLocation" | "createdBy" | "createdByRole" | "createdByUserType">;
|
|
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: "
|
|
36
|
+
createdByUserType: "system" | "user";
|
|
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: "
|
|
45
|
+
createdByUserType: "system" | "user";
|
|
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: "
|
|
54
|
+
createdByUserType: "system" | "user";
|
|
55
55
|
createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
56
56
|
acceptedAt: string;
|
|
57
57
|
createdByRole: string | undefined;
|
|
@@ -9,7 +9,7 @@ import { EventIndex } from './EventIndex';
|
|
|
9
9
|
import { EventInput } from './EventInput';
|
|
10
10
|
import { TranslationConfig } from './TranslationConfig';
|
|
11
11
|
import { FieldConfig } from './FieldConfig';
|
|
12
|
-
import {
|
|
12
|
+
import { SetLocationPayload, SetAdministrativeAreaPayload } from './locations';
|
|
13
13
|
import { WorkqueueConfig } from './WorkqueueConfig';
|
|
14
14
|
import * as z from 'zod/v4';
|
|
15
15
|
import { DocumentPath } from '../documents';
|
|
@@ -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";
|
|
26
27
|
FIELD_AGENT: "FIELD_AGENT";
|
|
27
28
|
LOCAL_REGISTRAR: "LOCAL_REGISTRAR";
|
|
28
29
|
LOCAL_SYSTEM_ADMIN: "LOCAL_SYSTEM_ADMIN";
|
|
29
30
|
NATIONAL_REGISTRAR: "NATIONAL_REGISTRAR";
|
|
30
|
-
REGISTRATION_AGENT: "REGISTRATION_AGENT";
|
|
31
31
|
NATIONAL_SYSTEM_ADMIN: "NATIONAL_SYSTEM_ADMIN";
|
|
32
|
-
SOCIAL_WORKER: "SOCIAL_WORKER";
|
|
33
|
-
COMMUNITY_LEADER: "COMMUNITY_LEADER";
|
|
34
32
|
PROVINCIAL_REGISTRAR: "PROVINCIAL_REGISTRAR";
|
|
33
|
+
REGISTRATION_AGENT: "REGISTRATION_AGENT";
|
|
34
|
+
SOCIAL_WORKER: "SOCIAL_WORKER";
|
|
35
35
|
}>;
|
|
36
36
|
export type TestUserRole = z.infer<typeof TestUserRole>;
|
|
37
37
|
export declare function pickRandom<T>(rng: () => number, items: T[]): T;
|
|
@@ -48,16 +48,16 @@ export declare function fieldConfigsToActionPayload(fields: FieldConfig[], rng:
|
|
|
48
48
|
* Given hierarchy, ensures that related fields (e.g. location and administrative area) have valid values based on the hierarchy.
|
|
49
49
|
*/
|
|
50
50
|
administrativeHierarchy?: {
|
|
51
|
-
administrativeAreas:
|
|
52
|
-
locations:
|
|
51
|
+
administrativeAreas: SetAdministrativeAreaPayload[];
|
|
52
|
+
locations: SetLocationPayload[];
|
|
53
53
|
}): ActionUpdate;
|
|
54
54
|
export declare function generateActionDeclarationInput(configuration: EventConfig, action: ActionType, rng: () => number, overrides?: ActionUpdate,
|
|
55
55
|
/**
|
|
56
56
|
* Given hierarchy, ensures that related fields (e.g. location and administrative area) have valid values based on the hierarchy.
|
|
57
57
|
*/
|
|
58
58
|
administrativeHierarchy?: {
|
|
59
|
-
administrativeAreas:
|
|
60
|
-
locations:
|
|
59
|
+
administrativeAreas: SetAdministrativeAreaPayload[];
|
|
60
|
+
locations: SetLocationPayload[];
|
|
61
61
|
}): ActionUpdate;
|
|
62
62
|
export declare function generateActionDuplicateDeclarationInput(...args: Parameters<typeof generateActionDeclarationInput>): ReturnType<typeof generateActionDeclarationInput>;
|
|
63
63
|
export declare function eventPayloadGenerator(rng: () => number, configuration?: EventConfig): {
|
|
@@ -72,111 +72,108 @@ export declare function eventPayloadGenerator(rng: () => number, configuration?:
|
|
|
72
72
|
};
|
|
73
73
|
draft: ({ eventId, actionType, annotation, omitFields }: {
|
|
74
74
|
eventId: UUID;
|
|
75
|
-
actionType: Draft[
|
|
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,
|
|
80
|
+
declare: (eventId: string, input?: Partial<Pick<DeclareActionInput, 'transactionId' | 'declaration' | 'annotation' | 'keepAssignment'>>) => {
|
|
81
|
+
keepAssignment?: boolean | undefined;
|
|
82
|
+
type: "DECLARE";
|
|
81
83
|
transactionId: string;
|
|
82
84
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
83
85
|
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,
|
|
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,
|
|
98
|
+
edit: (eventId: string, input?: Partial<Pick<EditActionInput, 'transactionId' | 'declaration' | 'annotation' | 'keepAssignment'>>) => {
|
|
99
|
+
keepAssignment?: boolean | undefined;
|
|
100
|
+
type: "EDIT";
|
|
99
101
|
transactionId: string;
|
|
100
102
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
101
103
|
annotation: {};
|
|
102
|
-
keepAssignment?: boolean | undefined;
|
|
103
|
-
type: "EDIT";
|
|
104
|
-
content: {
|
|
105
|
-
comment: string;
|
|
106
|
-
};
|
|
107
104
|
eventId: string;
|
|
108
105
|
};
|
|
109
|
-
assign: (eventId: string, input?: Partial<Pick<AssignActionInput,
|
|
106
|
+
assign: (eventId: string, input?: Partial<Pick<AssignActionInput, 'transactionId' | 'assignedTo'>>) => {
|
|
110
107
|
type: "ASSIGN";
|
|
111
108
|
transactionId: string;
|
|
112
109
|
declaration: {};
|
|
113
110
|
assignedTo: string;
|
|
114
111
|
eventId: string;
|
|
115
112
|
};
|
|
116
|
-
unassign: (eventId: string, input?: Partial<Pick<UnassignActionInput,
|
|
113
|
+
unassign: (eventId: string, input?: Partial<Pick<UnassignActionInput, 'transactionId'>>) => {
|
|
117
114
|
type: "UNASSIGN";
|
|
118
115
|
transactionId: string;
|
|
119
116
|
declaration: {};
|
|
120
117
|
assignedTo: null;
|
|
121
118
|
eventId: string;
|
|
122
119
|
};
|
|
123
|
-
archive: (eventId: string, input?: Partial<Pick<ArchiveActionInput,
|
|
124
|
-
transactionId: string;
|
|
125
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
120
|
+
archive: (eventId: string, input?: Partial<Pick<ArchiveActionInput, 'transactionId' | 'declaration' | 'keepAssignment'>>) => {
|
|
126
121
|
keepAssignment?: boolean | undefined;
|
|
127
122
|
type: "ARCHIVE";
|
|
123
|
+
transactionId: string;
|
|
124
|
+
declaration: {};
|
|
128
125
|
annotation: {};
|
|
129
126
|
eventId: string;
|
|
130
127
|
content: {
|
|
131
128
|
reason: string;
|
|
132
129
|
};
|
|
133
130
|
};
|
|
134
|
-
unarchive: (eventId: string, input?: Partial<Pick<UnarchiveActionInput,
|
|
135
|
-
transactionId: string;
|
|
136
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
131
|
+
unarchive: (eventId: string, input?: Partial<Pick<UnarchiveActionInput, 'transactionId' | 'declaration' | 'keepAssignment'>>) => {
|
|
137
132
|
keepAssignment?: boolean | undefined;
|
|
138
133
|
type: "UNARCHIVE";
|
|
134
|
+
transactionId: string;
|
|
135
|
+
declaration: {};
|
|
139
136
|
annotation: {};
|
|
140
137
|
eventId: string;
|
|
141
138
|
};
|
|
142
|
-
reject: (eventId: string, input?: Partial<Pick<RejectDeclarationActionInput,
|
|
143
|
-
transactionId: string;
|
|
144
|
-
annotation: {};
|
|
139
|
+
reject: (eventId: string, input?: Partial<Pick<RejectDeclarationActionInput, 'transactionId' | 'annotation' | 'keepAssignment'>>) => {
|
|
145
140
|
keepAssignment?: boolean | undefined;
|
|
146
141
|
type: "REJECT";
|
|
142
|
+
transactionId: string;
|
|
147
143
|
declaration: {};
|
|
144
|
+
annotation: {};
|
|
148
145
|
eventId: string;
|
|
149
146
|
content: {
|
|
150
147
|
reason: string;
|
|
151
148
|
};
|
|
152
149
|
};
|
|
153
|
-
register: (eventId: string, input?: Partial<Pick<RegisterActionInput,
|
|
150
|
+
register: (eventId: string, input?: Partial<Pick<RegisterActionInput, 'transactionId' | 'declaration' | 'annotation' | 'keepAssignment' | 'registrationNumber'>>) => {
|
|
151
|
+
keepAssignment?: boolean | undefined;
|
|
152
|
+
registrationNumber?: string | undefined;
|
|
153
|
+
type: "REGISTER";
|
|
154
154
|
transactionId: string;
|
|
155
155
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
156
156
|
annotation: {};
|
|
157
|
-
registrationNumber?: string | undefined;
|
|
158
|
-
keepAssignment?: boolean | undefined;
|
|
159
|
-
type: "REGISTER";
|
|
160
157
|
eventId: string;
|
|
161
158
|
};
|
|
162
|
-
printCertificate: (eventId: string, input?: Partial<Pick<RegisterActionInput,
|
|
163
|
-
transactionId: string;
|
|
164
|
-
annotation: {};
|
|
159
|
+
printCertificate: (eventId: string, input?: Partial<Pick<RegisterActionInput, 'transactionId' | 'annotation' | 'keepAssignment'>>) => {
|
|
165
160
|
keepAssignment?: boolean | undefined;
|
|
166
161
|
type: "PRINT_CERTIFICATE";
|
|
162
|
+
transactionId: string;
|
|
167
163
|
declaration: {};
|
|
164
|
+
annotation: {};
|
|
168
165
|
eventId: string;
|
|
169
166
|
};
|
|
170
167
|
correction: {
|
|
171
|
-
request: (eventId: string, input?: Partial<Pick<RequestCorrectionActionInput,
|
|
168
|
+
request: (eventId: string, input?: Partial<Pick<RequestCorrectionActionInput, 'transactionId' | 'declaration' | 'annotation' | 'keepAssignment'>>) => {
|
|
172
169
|
type: "REQUEST_CORRECTION";
|
|
173
170
|
transactionId: string;
|
|
174
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
171
|
+
declaration: import("lodash").Omit<Record<string, import("./FieldValue").FieldUpdateValue>, "applicant.email" | "applicant.image">;
|
|
175
172
|
annotation: {};
|
|
176
173
|
eventId: string;
|
|
177
174
|
keepAssignment: boolean | undefined;
|
|
178
175
|
};
|
|
179
|
-
approve: (eventId: string, requestId: string, input?: Partial<Pick<ApproveCorrectionActionInput,
|
|
176
|
+
approve: (eventId: string, requestId: string, input?: Partial<Pick<ApproveCorrectionActionInput, 'transactionId' | 'annotation' | 'keepAssignment'>>) => {
|
|
180
177
|
type: "APPROVE_CORRECTION";
|
|
181
178
|
transactionId: string;
|
|
182
179
|
declaration: {};
|
|
@@ -185,7 +182,7 @@ export declare function eventPayloadGenerator(rng: () => number, configuration?:
|
|
|
185
182
|
requestId: string;
|
|
186
183
|
keepAssignment: boolean | undefined;
|
|
187
184
|
};
|
|
188
|
-
reject: (eventId: string, requestId: string, input: Partial<Pick<RejectCorrectionActionInput,
|
|
185
|
+
reject: (eventId: string, requestId: string, input: Partial<Pick<RejectCorrectionActionInput, 'transactionId' | 'annotation' | 'keepAssignment' | 'content'>>) => {
|
|
189
186
|
type: "REJECT_CORRECTION";
|
|
190
187
|
transactionId: string;
|
|
191
188
|
declaration: {};
|
|
@@ -199,7 +196,7 @@ export declare function eventPayloadGenerator(rng: () => number, configuration?:
|
|
|
199
196
|
};
|
|
200
197
|
};
|
|
201
198
|
duplicate: {
|
|
202
|
-
markAsDuplicate: (eventId: string, input?: Partial<Pick<MarkAsDuplicateActionInput,
|
|
199
|
+
markAsDuplicate: (eventId: string, input?: Partial<Pick<MarkAsDuplicateActionInput, 'transactionId' | 'declaration' | 'annotation' | 'keepAssignment'>>) => {
|
|
203
200
|
type: "MARK_AS_DUPLICATE";
|
|
204
201
|
transactionId: string;
|
|
205
202
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
@@ -207,7 +204,7 @@ export declare function eventPayloadGenerator(rng: () => number, configuration?:
|
|
|
207
204
|
eventId: string;
|
|
208
205
|
keepAssignment: boolean | undefined;
|
|
209
206
|
};
|
|
210
|
-
markNotDuplicate: (eventId: string, input?: Partial<Pick<MarkNotDuplicateActionInput,
|
|
207
|
+
markNotDuplicate: (eventId: string, input?: Partial<Pick<MarkNotDuplicateActionInput, 'transactionId' | 'declaration' | 'annotation' | 'keepAssignment'>>) => {
|
|
211
208
|
type: "MARK_AS_NOT_DUPLICATE";
|
|
212
209
|
transactionId: string;
|
|
213
210
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|