@opencrvs/toolkit 2.1.0-rc.a74bce1 → 2.1.0-rc.b89dfd1
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/commons/api/router.d.ts +3373 -3373
- 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 +105 -105
- package/dist/commons/events/ActionDocument.d.ts +113 -113
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +507 -507
- package/dist/commons/events/AuditLog.d.ts +43 -43
- 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 +46 -46
- 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 +336 -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/locations.d.ts +4 -4
- package/dist/commons/events/mocks.test.utils.d.ts +2 -2
- 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 +36 -36
- package/dist/commons/events/utils.d.ts +114 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/environment/derived-variables.d.ts +131 -131
- 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/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/scopes/index.d.ts +146 -146
- package/opencrvs-toolkit-2.1.0-rc.b89dfd1.tgz +0 -0
- package/package.json +2 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.a74bce1.tgz +0 -0
|
@@ -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;
|
|
@@ -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[
|
|
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,
|
|
99
|
-
transactionId: string;
|
|
100
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
101
|
-
annotation: {};
|
|
98
|
+
edit: (eventId: string, input?: Partial<Pick<EditActionInput, 'transactionId' | 'declaration' | 'annotation' | 'keepAssignment'>>) => {
|
|
102
99
|
keepAssignment?: boolean | undefined;
|
|
103
100
|
type: "EDIT";
|
|
104
101
|
content: {
|
|
105
102
|
comment: string;
|
|
106
103
|
};
|
|
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,
|
|
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,
|
|
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,
|
|
124
|
-
transactionId: string;
|
|
125
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
123
|
+
archive: (eventId: string, input?: Partial<Pick<ArchiveActionInput, 'transactionId' | 'declaration' | 'keepAssignment'>>) => {
|
|
126
124
|
keepAssignment?: boolean | undefined;
|
|
127
125
|
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,
|
|
135
|
-
transactionId: string;
|
|
136
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
134
|
+
unarchive: (eventId: string, input?: Partial<Pick<UnarchiveActionInput, 'transactionId' | 'declaration' | 'keepAssignment'>>) => {
|
|
137
135
|
keepAssignment?: boolean | undefined;
|
|
138
136
|
type: "UNARCHIVE";
|
|
137
|
+
transactionId: string;
|
|
138
|
+
declaration: {};
|
|
139
139
|
annotation: {};
|
|
140
140
|
eventId: string;
|
|
141
141
|
};
|
|
142
|
-
reject: (eventId: string, input?: Partial<Pick<RejectDeclarationActionInput,
|
|
143
|
-
transactionId: string;
|
|
144
|
-
annotation: {};
|
|
142
|
+
reject: (eventId: string, input?: Partial<Pick<RejectDeclarationActionInput, 'transactionId' | 'annotation' | 'keepAssignment'>>) => {
|
|
145
143
|
keepAssignment?: boolean | undefined;
|
|
146
144
|
type: "REJECT";
|
|
145
|
+
transactionId: string;
|
|
147
146
|
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,
|
|
153
|
+
register: (eventId: string, input?: Partial<Pick<RegisterActionInput, 'transactionId' | 'declaration' | 'annotation' | 'keepAssignment' | 'registrationNumber'>>) => {
|
|
154
|
+
keepAssignment?: boolean | undefined;
|
|
155
|
+
registrationNumber?: string | undefined;
|
|
156
|
+
type: "REGISTER";
|
|
154
157
|
transactionId: string;
|
|
155
158
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
156
159
|
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,
|
|
163
|
-
transactionId: string;
|
|
164
|
-
annotation: {};
|
|
162
|
+
printCertificate: (eventId: string, input?: Partial<Pick<RegisterActionInput, 'transactionId' | 'annotation' | 'keepAssignment'>>) => {
|
|
165
163
|
keepAssignment?: boolean | undefined;
|
|
166
164
|
type: "PRINT_CERTIFICATE";
|
|
165
|
+
transactionId: string;
|
|
167
166
|
declaration: {};
|
|
167
|
+
annotation: {};
|
|
168
168
|
eventId: string;
|
|
169
169
|
};
|
|
170
170
|
correction: {
|
|
171
|
-
request: (eventId: string, input?: Partial<Pick<RequestCorrectionActionInput,
|
|
171
|
+
request: (eventId: string, input?: Partial<Pick<RequestCorrectionActionInput, 'transactionId' | 'declaration' | 'annotation' | 'keepAssignment'>>) => {
|
|
172
172
|
type: "REQUEST_CORRECTION";
|
|
173
173
|
transactionId: string;
|
|
174
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
174
|
+
declaration: import("lodash").Omit<Record<string, import("./FieldValue").FieldUpdateValue>, "applicant.email" | "applicant.image">;
|
|
175
175
|
annotation: {};
|
|
176
176
|
eventId: string;
|
|
177
177
|
keepAssignment: boolean | undefined;
|
|
178
178
|
};
|
|
179
|
-
approve: (eventId: string, requestId: string, input?: Partial<Pick<ApproveCorrectionActionInput,
|
|
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,
|
|
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,
|
|
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,
|
|
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>;
|