@opencrvs/toolkit 1.8.0-rc.fc43738 → 1.8.0-rc.fc4c805
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/README.md +1 -1
- package/dist/commons/api/router.d.ts +11496 -10683
- package/dist/commons/conditionals/conditionals.d.ts +33 -7
- package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
- package/dist/commons/conditionals/validate.d.ts +44 -22
- package/dist/commons/conditionals/validate.test.d.ts +2 -0
- package/dist/commons/events/ActionConfig.d.ts +89415 -2021
- package/dist/commons/events/ActionDocument.d.ts +10879 -1365
- package/dist/commons/events/ActionInput.d.ts +6977 -2196
- package/dist/commons/events/ActionType.d.ts +27 -12
- package/dist/commons/events/AdvancedSearchConfig.d.ts +369 -25
- package/dist/commons/events/CompositeFieldValue.d.ts +417 -0
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +515 -202
- package/dist/commons/events/EventConfig.d.ts +42573 -1784
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +4816 -1719
- package/dist/commons/events/EventIndex.d.ts +1349 -13
- package/dist/commons/events/EventInput.d.ts +13 -0
- package/dist/commons/events/EventMetadata.d.ts +276 -11
- package/dist/commons/events/FieldConfig.d.ts +4266 -802
- package/dist/commons/events/FieldType.d.ts +7 -2
- package/dist/commons/events/FieldTypeMapping.d.ts +282 -40
- package/dist/commons/events/FieldValue.d.ts +140 -66
- package/dist/commons/events/FormConfig.d.ts +40636 -73
- package/dist/commons/events/PageConfig.d.ts +10209 -0
- package/dist/commons/events/SummaryConfig.d.ts +95 -39
- package/dist/commons/events/TemplateConfig.d.ts +38 -0
- package/dist/commons/events/User.d.ts +5 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +1135 -19
- package/dist/commons/events/defineConfig.d.ts +7030 -230
- package/dist/commons/events/event.d.ts +27 -0
- package/dist/commons/events/field.d.ts +68 -0
- package/dist/commons/events/index.d.ts +7 -1
- package/dist/commons/events/scopes.d.ts +26 -0
- package/dist/commons/events/test.utils.d.ts +163 -267
- package/dist/commons/events/utils.d.ts +3679 -70
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +196 -108
- package/dist/events/index.js +2789 -1407
- package/package.json +3 -2
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { ActionDocument, ActionUpdate, EventState } from './ActionDocument';
|
2
|
+
import { ArchiveActionInput, AssignActionInput, DeclareActionInput, RegisterActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, UnassignActionInput, ValidateActionInput } from './ActionInput';
|
2
3
|
import { ActionType } from './ActionType';
|
3
4
|
import { Draft } from './Draft';
|
4
5
|
import { EventConfig } from './EventConfig';
|
@@ -6,32 +7,9 @@ import { EventDocument } from './EventDocument';
|
|
6
7
|
import { EventIndex } from './EventIndex';
|
7
8
|
import { EventInput } from './EventInput';
|
8
9
|
import { FieldValue } from './FieldValue';
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
originalFilename: string;
|
13
|
-
} | {
|
14
|
-
country: string;
|
15
|
-
district: string;
|
16
|
-
province: string;
|
17
|
-
urbanOrRural: "URBAN";
|
18
|
-
number?: string | undefined;
|
19
|
-
town?: string | undefined;
|
20
|
-
residentialArea?: string | undefined;
|
21
|
-
street?: string | undefined;
|
22
|
-
zipCode?: string | undefined;
|
23
|
-
} | {
|
24
|
-
country: string;
|
25
|
-
district: string;
|
26
|
-
province: string;
|
27
|
-
urbanOrRural: "RURAL";
|
28
|
-
village?: string | undefined;
|
29
|
-
} | {
|
30
|
-
type: string;
|
31
|
-
option: string;
|
32
|
-
filename: string;
|
33
|
-
originalFilename: string;
|
34
|
-
}[]>;
|
10
|
+
import { TranslationConfig } from './TranslationConfig';
|
11
|
+
export declare function generateActionDeclarationInput(configuration: EventConfig, action: ActionType): EventState;
|
12
|
+
export declare function generateActionAnnotationInput(configuration: EventConfig, action: ActionType): {};
|
35
13
|
export declare const eventPayloadGenerator: {
|
36
14
|
create: (input?: Partial<EventInput>) => {
|
37
15
|
transactionId: string;
|
@@ -42,388 +20,306 @@ export declare const eventPayloadGenerator: {
|
|
42
20
|
type: string;
|
43
21
|
id: string;
|
44
22
|
};
|
45
|
-
draft: (eventId
|
46
|
-
id: import("../uuid").UUID;
|
23
|
+
draft: ({ eventId, actionType }: {
|
47
24
|
eventId: string;
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
'applicant.dob': string;
|
56
|
-
'recommender.none': boolean;
|
57
|
-
};
|
58
|
-
metadata: {
|
59
|
-
'correction.requester.relationship': string;
|
60
|
-
'correction.request.reason': string;
|
61
|
-
};
|
62
|
-
createdAt: string;
|
63
|
-
createdBy: string;
|
64
|
-
createdAtLocation: string;
|
65
|
-
};
|
66
|
-
} & Partial<{
|
67
|
-
id: string;
|
68
|
-
createdAt: string;
|
69
|
-
eventId: string;
|
70
|
-
transactionId: string;
|
71
|
-
action: {
|
72
|
-
type: ActionType;
|
73
|
-
data: Record<string, string | number | boolean | {
|
25
|
+
actionType: ActionType;
|
26
|
+
}, input?: Partial<Draft>) => Draft;
|
27
|
+
actions: {
|
28
|
+
declare: (eventId: string, input?: Partial<Pick<DeclareActionInput, "transactionId" | "declaration" | "annotation">>) => {
|
29
|
+
type: "DECLARE";
|
30
|
+
transactionId: string;
|
31
|
+
declaration: Record<string, string | number | boolean | {
|
74
32
|
type: string;
|
75
33
|
filename: string;
|
76
34
|
originalFilename: string;
|
77
35
|
} | {
|
78
36
|
country: string;
|
79
37
|
district: string;
|
38
|
+
addressType: "DOMESTIC";
|
80
39
|
province: string;
|
81
40
|
urbanOrRural: "URBAN";
|
82
|
-
number?: string | undefined;
|
83
|
-
town?: string | undefined;
|
84
|
-
residentialArea?: string | undefined;
|
85
|
-
street?: string | undefined;
|
86
|
-
zipCode?: string | undefined;
|
41
|
+
number?: string | null | undefined;
|
42
|
+
town?: string | null | undefined;
|
43
|
+
residentialArea?: string | null | undefined;
|
44
|
+
street?: string | null | undefined;
|
45
|
+
zipCode?: string | null | undefined;
|
87
46
|
} | {
|
88
47
|
country: string;
|
89
48
|
district: string;
|
49
|
+
addressType: "DOMESTIC";
|
90
50
|
province: string;
|
91
51
|
urbanOrRural: "RURAL";
|
92
|
-
village?: string | undefined;
|
93
|
-
} | {
|
94
|
-
type: string;
|
95
|
-
option: string;
|
96
|
-
filename: string;
|
97
|
-
originalFilename: string;
|
98
|
-
}[]>;
|
99
|
-
createdAt: string;
|
100
|
-
createdBy: string;
|
101
|
-
createdAtLocation: string;
|
102
|
-
metadata?: Record<string, string | number | boolean | {
|
103
|
-
type: string;
|
104
|
-
filename: string;
|
105
|
-
originalFilename: string;
|
52
|
+
village?: string | null | undefined;
|
106
53
|
} | {
|
107
54
|
country: string;
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
} | {
|
117
|
-
country: string;
|
118
|
-
district: string;
|
119
|
-
province: string;
|
120
|
-
urbanOrRural: "RURAL";
|
121
|
-
village?: string | undefined;
|
55
|
+
state: string;
|
56
|
+
addressType: "INTERNATIONAL";
|
57
|
+
district2: string;
|
58
|
+
cityOrTown?: string | null | undefined;
|
59
|
+
addressLine1?: string | null | undefined;
|
60
|
+
addressLine2?: string | null | undefined;
|
61
|
+
addressLine3?: string | null | undefined;
|
62
|
+
postcodeOrZip?: string | null | undefined;
|
122
63
|
} | {
|
123
64
|
type: string;
|
124
65
|
option: string;
|
125
66
|
filename: string;
|
126
67
|
originalFilename: string;
|
127
|
-
}[]
|
68
|
+
}[] | [string, string] | undefined>;
|
69
|
+
annotation: {};
|
70
|
+
eventId: string;
|
128
71
|
};
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
72
|
+
/**
|
73
|
+
* Notify allows sending incomplete data. Think it as 'partial declare' for now.
|
74
|
+
*/
|
75
|
+
notify: (eventId: string, input?: {
|
76
|
+
transactionId?: string;
|
77
|
+
declaration?: Partial<ActionUpdate>;
|
78
|
+
}) => {
|
79
|
+
type: "NOTIFY";
|
133
80
|
transactionId: string;
|
134
|
-
|
81
|
+
declaration: Partial<Record<string, string | number | boolean | {
|
135
82
|
type: string;
|
136
83
|
filename: string;
|
137
84
|
originalFilename: string;
|
138
85
|
} | {
|
139
86
|
country: string;
|
140
87
|
district: string;
|
88
|
+
addressType: "DOMESTIC";
|
141
89
|
province: string;
|
142
90
|
urbanOrRural: "URBAN";
|
143
|
-
number?: string | undefined;
|
144
|
-
town?: string | undefined;
|
145
|
-
residentialArea?: string | undefined;
|
146
|
-
street?: string | undefined;
|
147
|
-
zipCode?: string | undefined;
|
91
|
+
number?: string | null | undefined;
|
92
|
+
town?: string | null | undefined;
|
93
|
+
residentialArea?: string | null | undefined;
|
94
|
+
street?: string | null | undefined;
|
95
|
+
zipCode?: string | null | undefined;
|
148
96
|
} | {
|
149
97
|
country: string;
|
150
98
|
district: string;
|
99
|
+
addressType: "DOMESTIC";
|
151
100
|
province: string;
|
152
101
|
urbanOrRural: "RURAL";
|
153
|
-
village?: string | undefined;
|
102
|
+
village?: string | null | undefined;
|
103
|
+
} | {
|
104
|
+
country: string;
|
105
|
+
state: string;
|
106
|
+
addressType: "INTERNATIONAL";
|
107
|
+
district2: string;
|
108
|
+
cityOrTown?: string | null | undefined;
|
109
|
+
addressLine1?: string | null | undefined;
|
110
|
+
addressLine2?: string | null | undefined;
|
111
|
+
addressLine3?: string | null | undefined;
|
112
|
+
postcodeOrZip?: string | null | undefined;
|
154
113
|
} | {
|
155
114
|
type: string;
|
156
115
|
option: string;
|
157
116
|
filename: string;
|
158
117
|
originalFilename: string;
|
159
|
-
}[]
|
118
|
+
}[] | [string, string] | undefined>>;
|
160
119
|
eventId: string;
|
161
120
|
};
|
162
|
-
validate: (eventId: string, input?: Partial<Pick<ValidateActionInput, "transactionId" | "
|
121
|
+
validate: (eventId: string, input?: Partial<Pick<ValidateActionInput, "transactionId" | "declaration" | "annotation">>) => {
|
163
122
|
type: "VALIDATE";
|
164
123
|
transactionId: string;
|
165
|
-
|
124
|
+
declaration: Record<string, string | number | boolean | {
|
166
125
|
type: string;
|
167
126
|
filename: string;
|
168
127
|
originalFilename: string;
|
169
128
|
} | {
|
170
129
|
country: string;
|
171
130
|
district: string;
|
131
|
+
addressType: "DOMESTIC";
|
172
132
|
province: string;
|
173
133
|
urbanOrRural: "URBAN";
|
174
|
-
number?: string | undefined;
|
175
|
-
town?: string | undefined;
|
176
|
-
residentialArea?: string | undefined;
|
177
|
-
street?: string | undefined;
|
178
|
-
zipCode?: string | undefined;
|
134
|
+
number?: string | null | undefined;
|
135
|
+
town?: string | null | undefined;
|
136
|
+
residentialArea?: string | null | undefined;
|
137
|
+
street?: string | null | undefined;
|
138
|
+
zipCode?: string | null | undefined;
|
179
139
|
} | {
|
180
140
|
country: string;
|
181
141
|
district: string;
|
142
|
+
addressType: "DOMESTIC";
|
182
143
|
province: string;
|
183
144
|
urbanOrRural: "RURAL";
|
184
|
-
village?: string | undefined;
|
145
|
+
village?: string | null | undefined;
|
146
|
+
} | {
|
147
|
+
country: string;
|
148
|
+
state: string;
|
149
|
+
addressType: "INTERNATIONAL";
|
150
|
+
district2: string;
|
151
|
+
cityOrTown?: string | null | undefined;
|
152
|
+
addressLine1?: string | null | undefined;
|
153
|
+
addressLine2?: string | null | undefined;
|
154
|
+
addressLine3?: string | null | undefined;
|
155
|
+
postcodeOrZip?: string | null | undefined;
|
185
156
|
} | {
|
186
157
|
type: string;
|
187
158
|
option: string;
|
188
159
|
filename: string;
|
189
160
|
originalFilename: string;
|
190
|
-
}[]>;
|
161
|
+
}[] | [string, string] | undefined>;
|
162
|
+
annotation: {};
|
191
163
|
duplicates: never[];
|
192
164
|
eventId: string;
|
193
165
|
};
|
194
|
-
|
195
|
-
type: "
|
166
|
+
assign: (eventId: string, input?: Partial<Pick<AssignActionInput, "transactionId" | "assignedTo">>) => {
|
167
|
+
type: "ASSIGN";
|
196
168
|
transactionId: string;
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
district: string;
|
214
|
-
province: string;
|
215
|
-
urbanOrRural: "RURAL";
|
216
|
-
village?: string | undefined;
|
217
|
-
} | {
|
218
|
-
type: string;
|
219
|
-
option: string;
|
220
|
-
filename: string;
|
221
|
-
originalFilename: string;
|
222
|
-
}[]>;
|
223
|
-
metadata: {
|
169
|
+
declaration: {};
|
170
|
+
assignedTo: string;
|
171
|
+
eventId: string;
|
172
|
+
};
|
173
|
+
unassign: (eventId: string, input?: Partial<Pick<UnassignActionInput, "transactionId">>) => {
|
174
|
+
type: "UNASSIGN";
|
175
|
+
transactionId: string;
|
176
|
+
declaration: {};
|
177
|
+
assignedTo: null;
|
178
|
+
eventId: string;
|
179
|
+
};
|
180
|
+
archive: (eventId: string, input?: Partial<Pick<ArchiveActionInput, "transactionId" | "declaration">>, isDuplicate?: boolean) => {
|
181
|
+
type: "ARCHIVE";
|
182
|
+
transactionId: string;
|
183
|
+
declaration: {};
|
184
|
+
annotation: {
|
224
185
|
isDuplicate: boolean;
|
225
186
|
};
|
226
187
|
duplicates: never[];
|
227
188
|
eventId: string;
|
228
189
|
};
|
229
|
-
reject: (eventId: string, input?: Partial<Pick<RejectDeclarationActionInput, "transactionId" | "
|
190
|
+
reject: (eventId: string, input?: Partial<Pick<RejectDeclarationActionInput, "transactionId" | "annotation">>) => {
|
230
191
|
type: "REJECT";
|
231
192
|
transactionId: string;
|
232
|
-
|
233
|
-
|
234
|
-
filename: string;
|
235
|
-
originalFilename: string;
|
236
|
-
} | {
|
237
|
-
country: string;
|
238
|
-
district: string;
|
239
|
-
province: string;
|
240
|
-
urbanOrRural: "URBAN";
|
241
|
-
number?: string | undefined;
|
242
|
-
town?: string | undefined;
|
243
|
-
residentialArea?: string | undefined;
|
244
|
-
street?: string | undefined;
|
245
|
-
zipCode?: string | undefined;
|
246
|
-
} | {
|
247
|
-
country: string;
|
248
|
-
district: string;
|
249
|
-
province: string;
|
250
|
-
urbanOrRural: "RURAL";
|
251
|
-
village?: string | undefined;
|
252
|
-
} | {
|
253
|
-
type: string;
|
254
|
-
option: string;
|
255
|
-
filename: string;
|
256
|
-
originalFilename: string;
|
257
|
-
}[]>;
|
193
|
+
declaration: {};
|
194
|
+
annotation: {};
|
258
195
|
duplicates: never[];
|
259
196
|
eventId: string;
|
260
197
|
};
|
261
|
-
register: (eventId: string, input?: Partial<Pick<RegisterActionInput, "transactionId" | "
|
198
|
+
register: (eventId: string, input?: Partial<Pick<RegisterActionInput, "transactionId" | "declaration" | "annotation">>) => {
|
262
199
|
type: "REGISTER";
|
263
200
|
transactionId: string;
|
264
|
-
|
201
|
+
declaration: Record<string, string | number | boolean | {
|
265
202
|
type: string;
|
266
203
|
filename: string;
|
267
204
|
originalFilename: string;
|
268
205
|
} | {
|
269
206
|
country: string;
|
270
207
|
district: string;
|
208
|
+
addressType: "DOMESTIC";
|
271
209
|
province: string;
|
272
210
|
urbanOrRural: "URBAN";
|
273
|
-
number?: string | undefined;
|
274
|
-
town?: string | undefined;
|
275
|
-
residentialArea?: string | undefined;
|
276
|
-
street?: string | undefined;
|
277
|
-
zipCode?: string | undefined;
|
211
|
+
number?: string | null | undefined;
|
212
|
+
town?: string | null | undefined;
|
213
|
+
residentialArea?: string | null | undefined;
|
214
|
+
street?: string | null | undefined;
|
215
|
+
zipCode?: string | null | undefined;
|
278
216
|
} | {
|
279
217
|
country: string;
|
280
218
|
district: string;
|
219
|
+
addressType: "DOMESTIC";
|
281
220
|
province: string;
|
282
221
|
urbanOrRural: "RURAL";
|
283
|
-
village?: string | undefined;
|
222
|
+
village?: string | null | undefined;
|
223
|
+
} | {
|
224
|
+
country: string;
|
225
|
+
state: string;
|
226
|
+
addressType: "INTERNATIONAL";
|
227
|
+
district2: string;
|
228
|
+
cityOrTown?: string | null | undefined;
|
229
|
+
addressLine1?: string | null | undefined;
|
230
|
+
addressLine2?: string | null | undefined;
|
231
|
+
addressLine3?: string | null | undefined;
|
232
|
+
postcodeOrZip?: string | null | undefined;
|
284
233
|
} | {
|
285
234
|
type: string;
|
286
235
|
option: string;
|
287
236
|
filename: string;
|
288
237
|
originalFilename: string;
|
289
|
-
}[]>;
|
238
|
+
}[] | [string, string] | undefined>;
|
239
|
+
annotation: {};
|
290
240
|
eventId: string;
|
291
241
|
};
|
292
|
-
printCertificate: (eventId: string, input?: Partial<Pick<RegisterActionInput, "transactionId" | "
|
242
|
+
printCertificate: (eventId: string, input?: Partial<Pick<RegisterActionInput, "transactionId" | "annotation">>) => {
|
293
243
|
type: "PRINT_CERTIFICATE";
|
294
244
|
transactionId: string;
|
295
|
-
|
296
|
-
|
297
|
-
filename: string;
|
298
|
-
originalFilename: string;
|
299
|
-
} | {
|
300
|
-
country: string;
|
301
|
-
district: string;
|
302
|
-
province: string;
|
303
|
-
urbanOrRural: "URBAN";
|
304
|
-
number?: string | undefined;
|
305
|
-
town?: string | undefined;
|
306
|
-
residentialArea?: string | undefined;
|
307
|
-
street?: string | undefined;
|
308
|
-
zipCode?: string | undefined;
|
309
|
-
} | {
|
310
|
-
country: string;
|
311
|
-
district: string;
|
312
|
-
province: string;
|
313
|
-
urbanOrRural: "RURAL";
|
314
|
-
village?: string | undefined;
|
315
|
-
} | {
|
316
|
-
type: string;
|
317
|
-
option: string;
|
318
|
-
filename: string;
|
319
|
-
originalFilename: string;
|
320
|
-
}[]>;
|
245
|
+
declaration: {};
|
246
|
+
annotation: {};
|
321
247
|
eventId: string;
|
322
248
|
};
|
323
249
|
correction: {
|
324
|
-
request: (eventId: string, input?: Partial<Pick<RequestCorrectionActionInput, "transactionId" | "
|
250
|
+
request: (eventId: string, input?: Partial<Pick<RequestCorrectionActionInput, "transactionId" | "declaration" | "annotation">>) => {
|
325
251
|
type: "REQUEST_CORRECTION";
|
326
252
|
transactionId: string;
|
327
|
-
|
253
|
+
declaration: Record<string, string | number | boolean | {
|
328
254
|
type: string;
|
329
255
|
filename: string;
|
330
256
|
originalFilename: string;
|
331
257
|
} | {
|
332
258
|
country: string;
|
333
259
|
district: string;
|
260
|
+
addressType: "DOMESTIC";
|
334
261
|
province: string;
|
335
262
|
urbanOrRural: "URBAN";
|
336
|
-
number?: string | undefined;
|
337
|
-
town?: string | undefined;
|
338
|
-
residentialArea?: string | undefined;
|
339
|
-
street?: string | undefined;
|
340
|
-
zipCode?: string | undefined;
|
263
|
+
number?: string | null | undefined;
|
264
|
+
town?: string | null | undefined;
|
265
|
+
residentialArea?: string | null | undefined;
|
266
|
+
street?: string | null | undefined;
|
267
|
+
zipCode?: string | null | undefined;
|
341
268
|
} | {
|
342
269
|
country: string;
|
343
270
|
district: string;
|
271
|
+
addressType: "DOMESTIC";
|
344
272
|
province: string;
|
345
273
|
urbanOrRural: "RURAL";
|
346
|
-
village?: string | undefined;
|
274
|
+
village?: string | null | undefined;
|
275
|
+
} | {
|
276
|
+
country: string;
|
277
|
+
state: string;
|
278
|
+
addressType: "INTERNATIONAL";
|
279
|
+
district2: string;
|
280
|
+
cityOrTown?: string | null | undefined;
|
281
|
+
addressLine1?: string | null | undefined;
|
282
|
+
addressLine2?: string | null | undefined;
|
283
|
+
addressLine3?: string | null | undefined;
|
284
|
+
postcodeOrZip?: string | null | undefined;
|
347
285
|
} | {
|
348
286
|
type: string;
|
349
287
|
option: string;
|
350
288
|
filename: string;
|
351
289
|
originalFilename: string;
|
352
|
-
}[]>;
|
353
|
-
|
290
|
+
}[] | [string, string] | undefined>;
|
291
|
+
annotation: {};
|
354
292
|
eventId: string;
|
355
293
|
};
|
356
|
-
approve: (eventId: string, requestId: string, input?: Partial<Pick<RequestCorrectionActionInput, "transactionId" | "
|
294
|
+
approve: (eventId: string, requestId: string, input?: Partial<Pick<RequestCorrectionActionInput, "transactionId" | "annotation">>) => {
|
357
295
|
type: "APPROVE_CORRECTION";
|
358
296
|
transactionId: string;
|
359
|
-
|
360
|
-
|
361
|
-
filename: string;
|
362
|
-
originalFilename: string;
|
363
|
-
} | {
|
364
|
-
country: string;
|
365
|
-
district: string;
|
366
|
-
province: string;
|
367
|
-
urbanOrRural: "URBAN";
|
368
|
-
number?: string | undefined;
|
369
|
-
town?: string | undefined;
|
370
|
-
residentialArea?: string | undefined;
|
371
|
-
street?: string | undefined;
|
372
|
-
zipCode?: string | undefined;
|
373
|
-
} | {
|
374
|
-
country: string;
|
375
|
-
district: string;
|
376
|
-
province: string;
|
377
|
-
urbanOrRural: "RURAL";
|
378
|
-
village?: string | undefined;
|
379
|
-
} | {
|
380
|
-
type: string;
|
381
|
-
option: string;
|
382
|
-
filename: string;
|
383
|
-
originalFilename: string;
|
384
|
-
}[]>;
|
297
|
+
declaration: {};
|
298
|
+
annotation: {};
|
385
299
|
eventId: string;
|
386
300
|
requestId: string;
|
387
301
|
};
|
388
|
-
reject: (eventId: string, requestId: string, input?: Partial<Pick<RequestCorrectionActionInput, "transactionId" | "
|
302
|
+
reject: (eventId: string, requestId: string, input?: Partial<Pick<RequestCorrectionActionInput, "transactionId" | "annotation">>) => {
|
389
303
|
type: "REJECT_CORRECTION";
|
390
304
|
transactionId: string;
|
391
|
-
|
392
|
-
|
393
|
-
filename: string;
|
394
|
-
originalFilename: string;
|
395
|
-
} | {
|
396
|
-
country: string;
|
397
|
-
district: string;
|
398
|
-
province: string;
|
399
|
-
urbanOrRural: "URBAN";
|
400
|
-
number?: string | undefined;
|
401
|
-
town?: string | undefined;
|
402
|
-
residentialArea?: string | undefined;
|
403
|
-
street?: string | undefined;
|
404
|
-
zipCode?: string | undefined;
|
405
|
-
} | {
|
406
|
-
country: string;
|
407
|
-
district: string;
|
408
|
-
province: string;
|
409
|
-
urbanOrRural: "RURAL";
|
410
|
-
village?: string | undefined;
|
411
|
-
} | {
|
412
|
-
type: string;
|
413
|
-
option: string;
|
414
|
-
filename: string;
|
415
|
-
originalFilename: string;
|
416
|
-
}[]>;
|
305
|
+
declaration: {};
|
306
|
+
annotation: {};
|
417
307
|
eventId: string;
|
418
308
|
requestId: string;
|
419
309
|
};
|
420
310
|
};
|
421
311
|
};
|
422
312
|
};
|
313
|
+
export declare function generateActionDocument({ configuration, action, defaults }: {
|
314
|
+
configuration: EventConfig;
|
315
|
+
action: ActionType;
|
316
|
+
defaults?: Partial<ActionDocument>;
|
317
|
+
}): ActionDocument;
|
423
318
|
export declare function generateEventDocument({ configuration, actions }: {
|
424
319
|
configuration: EventConfig;
|
425
320
|
actions: ActionType[];
|
426
321
|
}): EventDocument;
|
427
|
-
export declare function generateEventDraftDocument(eventId: string, actionType?: ActionType,
|
322
|
+
export declare function generateEventDraftDocument(eventId: string, actionType?: ActionType, declaration?: Record<string, FieldValue>): Draft;
|
428
323
|
export declare const eventQueryDataGenerator: (overrides?: Partial<EventIndex>) => EventIndex;
|
324
|
+
export declare const generateTranslationConfig: (message: string) => TranslationConfig;
|
429
325
|
//# sourceMappingURL=test.utils.d.ts.map
|