@opencrvs/toolkit 1.8.0-rc.fd6feaa → 1.8.0-rc.fd754eb
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 +10768 -13690
- package/dist/commons/conditionals/conditionals.d.ts +31 -5
- package/dist/commons/conditionals/validate.d.ts +12 -17
- package/dist/commons/events/ActionConfig.d.ts +89454 -2042
- package/dist/commons/events/ActionDocument.d.ts +8396 -446
- package/dist/commons/events/ActionInput.d.ts +3229 -704
- package/dist/commons/events/ActionType.d.ts +26 -11
- package/dist/commons/events/AdvancedSearchConfig.d.ts +369 -25
- package/dist/commons/events/CompositeFieldValue.d.ts +55 -12
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +167 -67
- package/dist/commons/events/EventConfig.d.ts +42579 -1766
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +1751 -544
- package/dist/commons/events/EventIndex.d.ts +1346 -10
- package/dist/commons/events/EventInput.d.ts +13 -0
- package/dist/commons/events/EventMetadata.d.ts +273 -8
- package/dist/commons/events/FieldConfig.d.ts +4218 -802
- package/dist/commons/events/FieldType.d.ts +4 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +67 -11
- package/dist/commons/events/FieldValue.d.ts +36 -13
- 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 +5 -5
- 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 -224
- 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 +5 -1
- package/dist/commons/events/scopes.d.ts +26 -0
- package/dist/commons/events/test.utils.d.ts +84 -302
- package/dist/commons/events/utils.d.ts +3593 -95
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +196 -108
- package/dist/events/index.js +2530 -1320
- package/dist/scopes/index.d.ts +70 -1
- package/dist/scopes/index.js +130 -0
- package/package.json +3 -2
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ActionDocument } from './ActionDocument';
|
2
|
-
import { ArchiveActionInput, DeclareActionInput, RegisterActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, ValidateActionInput } from './ActionInput';
|
1
|
+
import { ActionDocument, ActionUpdate, EventState } from './ActionDocument';
|
2
|
+
import { ArchiveActionInput, AssignActionInput, DeclareActionInput, RegisterActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, UnassignActionInput, ValidateActionInput } from './ActionInput';
|
3
3
|
import { ActionType } from './ActionType';
|
4
4
|
import { Draft } from './Draft';
|
5
5
|
import { EventConfig } from './EventConfig';
|
@@ -7,41 +7,9 @@ import { EventDocument } from './EventDocument';
|
|
7
7
|
import { EventIndex } from './EventIndex';
|
8
8
|
import { EventInput } from './EventInput';
|
9
9
|
import { FieldValue } from './FieldValue';
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
originalFilename: string;
|
14
|
-
} | {
|
15
|
-
country: string;
|
16
|
-
district: string;
|
17
|
-
province: string;
|
18
|
-
urbanOrRural: "URBAN";
|
19
|
-
number?: string | undefined;
|
20
|
-
town?: string | undefined;
|
21
|
-
residentialArea?: string | undefined;
|
22
|
-
street?: string | undefined;
|
23
|
-
zipCode?: string | undefined;
|
24
|
-
} | {
|
25
|
-
country: string;
|
26
|
-
district: string;
|
27
|
-
province: string;
|
28
|
-
urbanOrRural: "RURAL";
|
29
|
-
village?: string | undefined;
|
30
|
-
} | {
|
31
|
-
country: string;
|
32
|
-
state: string;
|
33
|
-
district2: string;
|
34
|
-
cityOrTown?: string | undefined;
|
35
|
-
addressLine1?: string | undefined;
|
36
|
-
addressLine2?: string | undefined;
|
37
|
-
addressLine3?: string | undefined;
|
38
|
-
postcodeOrZip?: string | undefined;
|
39
|
-
} | {
|
40
|
-
type: string;
|
41
|
-
option: string;
|
42
|
-
filename: string;
|
43
|
-
originalFilename: string;
|
44
|
-
}[]>;
|
10
|
+
import { TranslationConfig } from './TranslationConfig';
|
11
|
+
export declare function generateActionDeclarationInput(configuration: EventConfig, action: ActionType): EventState;
|
12
|
+
export declare function generateActionAnnotationInput(configuration: EventConfig, action: ActionType): {};
|
45
13
|
export declare const eventPayloadGenerator: {
|
46
14
|
create: (input?: Partial<EventInput>) => {
|
47
15
|
transactionId: string;
|
@@ -52,79 +20,22 @@ export declare const eventPayloadGenerator: {
|
|
52
20
|
type: string;
|
53
21
|
id: string;
|
54
22
|
};
|
55
|
-
draft: (eventId
|
56
|
-
id: import("../uuid").UUID;
|
23
|
+
draft: ({ eventId, actionType }: {
|
57
24
|
eventId: string;
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
'applicant.dob': string;
|
66
|
-
'recommender.none': boolean;
|
67
|
-
};
|
68
|
-
metadata: {
|
69
|
-
'correction.requester.relationship': string;
|
70
|
-
'correction.request.reason': string;
|
71
|
-
};
|
72
|
-
createdAt: string;
|
73
|
-
createdBy: string;
|
74
|
-
createdAtLocation: string;
|
75
|
-
};
|
76
|
-
} & Partial<{
|
77
|
-
id: string;
|
78
|
-
createdAt: string;
|
79
|
-
eventId: string;
|
80
|
-
transactionId: string;
|
81
|
-
action: {
|
82
|
-
type: ActionType;
|
83
|
-
data: Record<string, string | number | boolean | {
|
84
|
-
type: string;
|
85
|
-
filename: string;
|
86
|
-
originalFilename: string;
|
87
|
-
} | {
|
88
|
-
country: string;
|
89
|
-
district: string;
|
90
|
-
province: string;
|
91
|
-
urbanOrRural: "URBAN";
|
92
|
-
number?: string | null | undefined;
|
93
|
-
town?: string | null | undefined;
|
94
|
-
residentialArea?: string | null | undefined;
|
95
|
-
street?: string | null | undefined;
|
96
|
-
zipCode?: string | null | undefined;
|
97
|
-
} | {
|
98
|
-
country: string;
|
99
|
-
district: string;
|
100
|
-
province: string;
|
101
|
-
urbanOrRural: "RURAL";
|
102
|
-
village?: string | null | undefined;
|
103
|
-
} | {
|
104
|
-
country: string;
|
105
|
-
state: string;
|
106
|
-
district2: string;
|
107
|
-
cityOrTown?: string | null | undefined;
|
108
|
-
addressLine1?: string | null | undefined;
|
109
|
-
addressLine2?: string | null | undefined;
|
110
|
-
addressLine3?: string | null | undefined;
|
111
|
-
postcodeOrZip?: string | null | undefined;
|
112
|
-
} | {
|
113
|
-
type: string;
|
114
|
-
option: string;
|
115
|
-
filename: string;
|
116
|
-
originalFilename: string;
|
117
|
-
}[]>;
|
118
|
-
createdAt: string;
|
119
|
-
createdBy: string;
|
120
|
-
createdAtLocation: string;
|
121
|
-
metadata?: 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 | {
|
122
32
|
type: string;
|
123
33
|
filename: string;
|
124
34
|
originalFilename: string;
|
125
35
|
} | {
|
126
36
|
country: string;
|
127
37
|
district: string;
|
38
|
+
addressType: "DOMESTIC";
|
128
39
|
province: string;
|
129
40
|
urbanOrRural: "URBAN";
|
130
41
|
number?: string | null | undefined;
|
@@ -135,12 +46,14 @@ export declare const eventPayloadGenerator: {
|
|
135
46
|
} | {
|
136
47
|
country: string;
|
137
48
|
district: string;
|
49
|
+
addressType: "DOMESTIC";
|
138
50
|
province: string;
|
139
51
|
urbanOrRural: "RURAL";
|
140
52
|
village?: string | null | undefined;
|
141
53
|
} | {
|
142
54
|
country: string;
|
143
55
|
state: string;
|
56
|
+
addressType: "INTERNATIONAL";
|
144
57
|
district2: string;
|
145
58
|
cityOrTown?: string | null | undefined;
|
146
59
|
addressLine1?: string | null | undefined;
|
@@ -152,20 +65,27 @@ export declare const eventPayloadGenerator: {
|
|
152
65
|
option: string;
|
153
66
|
filename: string;
|
154
67
|
originalFilename: string;
|
155
|
-
}[]
|
68
|
+
}[] | [string, string] | undefined>;
|
69
|
+
annotation: {};
|
70
|
+
eventId: string;
|
156
71
|
};
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
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";
|
161
80
|
transactionId: string;
|
162
|
-
|
81
|
+
declaration: Partial<Record<string, string | number | boolean | {
|
163
82
|
type: string;
|
164
83
|
filename: string;
|
165
84
|
originalFilename: string;
|
166
85
|
} | {
|
167
86
|
country: string;
|
168
87
|
district: string;
|
88
|
+
addressType: "DOMESTIC";
|
169
89
|
province: string;
|
170
90
|
urbanOrRural: "URBAN";
|
171
91
|
number?: string | null | undefined;
|
@@ -176,12 +96,14 @@ export declare const eventPayloadGenerator: {
|
|
176
96
|
} | {
|
177
97
|
country: string;
|
178
98
|
district: string;
|
99
|
+
addressType: "DOMESTIC";
|
179
100
|
province: string;
|
180
101
|
urbanOrRural: "RURAL";
|
181
102
|
village?: string | null | undefined;
|
182
103
|
} | {
|
183
104
|
country: string;
|
184
105
|
state: string;
|
106
|
+
addressType: "INTERNATIONAL";
|
185
107
|
district2: string;
|
186
108
|
cityOrTown?: string | null | undefined;
|
187
109
|
addressLine1?: string | null | undefined;
|
@@ -193,19 +115,20 @@ export declare const eventPayloadGenerator: {
|
|
193
115
|
option: string;
|
194
116
|
filename: string;
|
195
117
|
originalFilename: string;
|
196
|
-
}[]
|
118
|
+
}[] | [string, string] | undefined>>;
|
197
119
|
eventId: string;
|
198
120
|
};
|
199
|
-
validate: (eventId: string, input?: Partial<Pick<ValidateActionInput, "transactionId" | "
|
121
|
+
validate: (eventId: string, input?: Partial<Pick<ValidateActionInput, "transactionId" | "declaration" | "annotation">>) => {
|
200
122
|
type: "VALIDATE";
|
201
123
|
transactionId: string;
|
202
|
-
|
124
|
+
declaration: Record<string, string | number | boolean | {
|
203
125
|
type: string;
|
204
126
|
filename: string;
|
205
127
|
originalFilename: string;
|
206
128
|
} | {
|
207
129
|
country: string;
|
208
130
|
district: string;
|
131
|
+
addressType: "DOMESTIC";
|
209
132
|
province: string;
|
210
133
|
urbanOrRural: "URBAN";
|
211
134
|
number?: string | null | undefined;
|
@@ -216,12 +139,14 @@ export declare const eventPayloadGenerator: {
|
|
216
139
|
} | {
|
217
140
|
country: string;
|
218
141
|
district: string;
|
142
|
+
addressType: "DOMESTIC";
|
219
143
|
province: string;
|
220
144
|
urbanOrRural: "RURAL";
|
221
145
|
village?: string | null | undefined;
|
222
146
|
} | {
|
223
147
|
country: string;
|
224
148
|
state: string;
|
149
|
+
addressType: "INTERNATIONAL";
|
225
150
|
district2: string;
|
226
151
|
cityOrTown?: string | null | undefined;
|
227
152
|
addressLine1?: string | null | undefined;
|
@@ -233,105 +158,54 @@ export declare const eventPayloadGenerator: {
|
|
233
158
|
option: string;
|
234
159
|
filename: string;
|
235
160
|
originalFilename: string;
|
236
|
-
}[]>;
|
161
|
+
}[] | [string, string] | undefined>;
|
162
|
+
annotation: {};
|
237
163
|
duplicates: never[];
|
238
164
|
eventId: string;
|
239
165
|
};
|
240
|
-
|
166
|
+
assign: (eventId: string, input?: Partial<Pick<AssignActionInput, "transactionId" | "assignedTo">>) => {
|
167
|
+
type: "ASSIGN";
|
168
|
+
transactionId: string;
|
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) => {
|
241
181
|
type: "ARCHIVE";
|
242
182
|
transactionId: string;
|
243
|
-
|
244
|
-
|
245
|
-
filename: string;
|
246
|
-
originalFilename: string;
|
247
|
-
} | {
|
248
|
-
country: string;
|
249
|
-
district: string;
|
250
|
-
province: string;
|
251
|
-
urbanOrRural: "URBAN";
|
252
|
-
number?: string | null | undefined;
|
253
|
-
town?: string | null | undefined;
|
254
|
-
residentialArea?: string | null | undefined;
|
255
|
-
street?: string | null | undefined;
|
256
|
-
zipCode?: string | null | undefined;
|
257
|
-
} | {
|
258
|
-
country: string;
|
259
|
-
district: string;
|
260
|
-
province: string;
|
261
|
-
urbanOrRural: "RURAL";
|
262
|
-
village?: string | null | undefined;
|
263
|
-
} | {
|
264
|
-
country: string;
|
265
|
-
state: string;
|
266
|
-
district2: string;
|
267
|
-
cityOrTown?: string | null | undefined;
|
268
|
-
addressLine1?: string | null | undefined;
|
269
|
-
addressLine2?: string | null | undefined;
|
270
|
-
addressLine3?: string | null | undefined;
|
271
|
-
postcodeOrZip?: string | null | undefined;
|
272
|
-
} | {
|
273
|
-
type: string;
|
274
|
-
option: string;
|
275
|
-
filename: string;
|
276
|
-
originalFilename: string;
|
277
|
-
}[]>;
|
278
|
-
metadata: {
|
183
|
+
declaration: {};
|
184
|
+
annotation: {
|
279
185
|
isDuplicate: boolean;
|
280
186
|
};
|
281
187
|
duplicates: never[];
|
282
188
|
eventId: string;
|
283
189
|
};
|
284
|
-
reject: (eventId: string, input?: Partial<Pick<RejectDeclarationActionInput, "transactionId" | "
|
190
|
+
reject: (eventId: string, input?: Partial<Pick<RejectDeclarationActionInput, "transactionId" | "annotation">>) => {
|
285
191
|
type: "REJECT";
|
286
192
|
transactionId: string;
|
287
|
-
|
288
|
-
|
289
|
-
filename: string;
|
290
|
-
originalFilename: string;
|
291
|
-
} | {
|
292
|
-
country: string;
|
293
|
-
district: string;
|
294
|
-
province: string;
|
295
|
-
urbanOrRural: "URBAN";
|
296
|
-
number?: string | null | undefined;
|
297
|
-
town?: string | null | undefined;
|
298
|
-
residentialArea?: string | null | undefined;
|
299
|
-
street?: string | null | undefined;
|
300
|
-
zipCode?: string | null | undefined;
|
301
|
-
} | {
|
302
|
-
country: string;
|
303
|
-
district: string;
|
304
|
-
province: string;
|
305
|
-
urbanOrRural: "RURAL";
|
306
|
-
village?: string | null | undefined;
|
307
|
-
} | {
|
308
|
-
country: string;
|
309
|
-
state: string;
|
310
|
-
district2: string;
|
311
|
-
cityOrTown?: string | null | undefined;
|
312
|
-
addressLine1?: string | null | undefined;
|
313
|
-
addressLine2?: string | null | undefined;
|
314
|
-
addressLine3?: string | null | undefined;
|
315
|
-
postcodeOrZip?: string | null | undefined;
|
316
|
-
} | {
|
317
|
-
type: string;
|
318
|
-
option: string;
|
319
|
-
filename: string;
|
320
|
-
originalFilename: string;
|
321
|
-
}[]>;
|
193
|
+
declaration: {};
|
194
|
+
annotation: {};
|
322
195
|
duplicates: never[];
|
323
196
|
eventId: string;
|
324
197
|
};
|
325
|
-
register: (eventId: string, input?: Partial<Pick<RegisterActionInput, "transactionId" | "
|
198
|
+
register: (eventId: string, input?: Partial<Pick<RegisterActionInput, "transactionId" | "declaration" | "annotation">>) => {
|
326
199
|
type: "REGISTER";
|
327
200
|
transactionId: string;
|
328
|
-
|
201
|
+
declaration: Record<string, string | number | boolean | {
|
329
202
|
type: string;
|
330
203
|
filename: string;
|
331
204
|
originalFilename: string;
|
332
205
|
} | {
|
333
206
|
country: string;
|
334
207
|
district: string;
|
208
|
+
addressType: "DOMESTIC";
|
335
209
|
province: string;
|
336
210
|
urbanOrRural: "URBAN";
|
337
211
|
number?: string | null | undefined;
|
@@ -342,12 +216,14 @@ export declare const eventPayloadGenerator: {
|
|
342
216
|
} | {
|
343
217
|
country: string;
|
344
218
|
district: string;
|
219
|
+
addressType: "DOMESTIC";
|
345
220
|
province: string;
|
346
221
|
urbanOrRural: "RURAL";
|
347
222
|
village?: string | null | undefined;
|
348
223
|
} | {
|
349
224
|
country: string;
|
350
225
|
state: string;
|
226
|
+
addressType: "INTERNATIONAL";
|
351
227
|
district2: string;
|
352
228
|
cityOrTown?: string | null | undefined;
|
353
229
|
addressLine1?: string | null | undefined;
|
@@ -359,60 +235,29 @@ export declare const eventPayloadGenerator: {
|
|
359
235
|
option: string;
|
360
236
|
filename: string;
|
361
237
|
originalFilename: string;
|
362
|
-
}[]>;
|
238
|
+
}[] | [string, string] | undefined>;
|
239
|
+
annotation: {};
|
363
240
|
eventId: string;
|
364
241
|
};
|
365
|
-
printCertificate: (eventId: string, input?: Partial<Pick<RegisterActionInput, "transactionId" | "
|
242
|
+
printCertificate: (eventId: string, input?: Partial<Pick<RegisterActionInput, "transactionId" | "annotation">>) => {
|
366
243
|
type: "PRINT_CERTIFICATE";
|
367
244
|
transactionId: string;
|
368
|
-
|
369
|
-
|
370
|
-
filename: string;
|
371
|
-
originalFilename: string;
|
372
|
-
} | {
|
373
|
-
country: string;
|
374
|
-
district: string;
|
375
|
-
province: string;
|
376
|
-
urbanOrRural: "URBAN";
|
377
|
-
number?: string | null | undefined;
|
378
|
-
town?: string | null | undefined;
|
379
|
-
residentialArea?: string | null | undefined;
|
380
|
-
street?: string | null | undefined;
|
381
|
-
zipCode?: string | null | undefined;
|
382
|
-
} | {
|
383
|
-
country: string;
|
384
|
-
district: string;
|
385
|
-
province: string;
|
386
|
-
urbanOrRural: "RURAL";
|
387
|
-
village?: string | null | undefined;
|
388
|
-
} | {
|
389
|
-
country: string;
|
390
|
-
state: string;
|
391
|
-
district2: string;
|
392
|
-
cityOrTown?: string | null | undefined;
|
393
|
-
addressLine1?: string | null | undefined;
|
394
|
-
addressLine2?: string | null | undefined;
|
395
|
-
addressLine3?: string | null | undefined;
|
396
|
-
postcodeOrZip?: string | null | undefined;
|
397
|
-
} | {
|
398
|
-
type: string;
|
399
|
-
option: string;
|
400
|
-
filename: string;
|
401
|
-
originalFilename: string;
|
402
|
-
}[]>;
|
245
|
+
declaration: {};
|
246
|
+
annotation: {};
|
403
247
|
eventId: string;
|
404
248
|
};
|
405
249
|
correction: {
|
406
|
-
request: (eventId: string, input?: Partial<Pick<RequestCorrectionActionInput, "transactionId" | "
|
250
|
+
request: (eventId: string, input?: Partial<Pick<RequestCorrectionActionInput, "transactionId" | "declaration" | "annotation">>) => {
|
407
251
|
type: "REQUEST_CORRECTION";
|
408
252
|
transactionId: string;
|
409
|
-
|
253
|
+
declaration: Record<string, string | number | boolean | {
|
410
254
|
type: string;
|
411
255
|
filename: string;
|
412
256
|
originalFilename: string;
|
413
257
|
} | {
|
414
258
|
country: string;
|
415
259
|
district: string;
|
260
|
+
addressType: "DOMESTIC";
|
416
261
|
province: string;
|
417
262
|
urbanOrRural: "URBAN";
|
418
263
|
number?: string | null | undefined;
|
@@ -423,12 +268,14 @@ export declare const eventPayloadGenerator: {
|
|
423
268
|
} | {
|
424
269
|
country: string;
|
425
270
|
district: string;
|
271
|
+
addressType: "DOMESTIC";
|
426
272
|
province: string;
|
427
273
|
urbanOrRural: "RURAL";
|
428
274
|
village?: string | null | undefined;
|
429
275
|
} | {
|
430
276
|
country: string;
|
431
277
|
state: string;
|
278
|
+
addressType: "INTERNATIONAL";
|
432
279
|
district2: string;
|
433
280
|
cityOrTown?: string | null | undefined;
|
434
281
|
addressLine1?: string | null | undefined;
|
@@ -440,89 +287,23 @@ export declare const eventPayloadGenerator: {
|
|
440
287
|
option: string;
|
441
288
|
filename: string;
|
442
289
|
originalFilename: string;
|
443
|
-
}[]>;
|
444
|
-
|
290
|
+
}[] | [string, string] | undefined>;
|
291
|
+
annotation: {};
|
445
292
|
eventId: string;
|
446
293
|
};
|
447
|
-
approve: (eventId: string, requestId: string, input?: Partial<Pick<RequestCorrectionActionInput, "transactionId" | "
|
294
|
+
approve: (eventId: string, requestId: string, input?: Partial<Pick<RequestCorrectionActionInput, "transactionId" | "annotation">>) => {
|
448
295
|
type: "APPROVE_CORRECTION";
|
449
296
|
transactionId: string;
|
450
|
-
|
451
|
-
|
452
|
-
filename: string;
|
453
|
-
originalFilename: string;
|
454
|
-
} | {
|
455
|
-
country: string;
|
456
|
-
district: string;
|
457
|
-
province: string;
|
458
|
-
urbanOrRural: "URBAN";
|
459
|
-
number?: string | null | undefined;
|
460
|
-
town?: string | null | undefined;
|
461
|
-
residentialArea?: string | null | undefined;
|
462
|
-
street?: string | null | undefined;
|
463
|
-
zipCode?: string | null | undefined;
|
464
|
-
} | {
|
465
|
-
country: string;
|
466
|
-
district: string;
|
467
|
-
province: string;
|
468
|
-
urbanOrRural: "RURAL";
|
469
|
-
village?: string | null | undefined;
|
470
|
-
} | {
|
471
|
-
country: string;
|
472
|
-
state: string;
|
473
|
-
district2: string;
|
474
|
-
cityOrTown?: string | null | undefined;
|
475
|
-
addressLine1?: string | null | undefined;
|
476
|
-
addressLine2?: string | null | undefined;
|
477
|
-
addressLine3?: string | null | undefined;
|
478
|
-
postcodeOrZip?: string | null | undefined;
|
479
|
-
} | {
|
480
|
-
type: string;
|
481
|
-
option: string;
|
482
|
-
filename: string;
|
483
|
-
originalFilename: string;
|
484
|
-
}[]>;
|
297
|
+
declaration: {};
|
298
|
+
annotation: {};
|
485
299
|
eventId: string;
|
486
300
|
requestId: string;
|
487
301
|
};
|
488
|
-
reject: (eventId: string, requestId: string, input?: Partial<Pick<RequestCorrectionActionInput, "transactionId" | "
|
302
|
+
reject: (eventId: string, requestId: string, input?: Partial<Pick<RequestCorrectionActionInput, "transactionId" | "annotation">>) => {
|
489
303
|
type: "REJECT_CORRECTION";
|
490
304
|
transactionId: string;
|
491
|
-
|
492
|
-
|
493
|
-
filename: string;
|
494
|
-
originalFilename: string;
|
495
|
-
} | {
|
496
|
-
country: string;
|
497
|
-
district: string;
|
498
|
-
province: string;
|
499
|
-
urbanOrRural: "URBAN";
|
500
|
-
number?: string | null | undefined;
|
501
|
-
town?: string | null | undefined;
|
502
|
-
residentialArea?: string | null | undefined;
|
503
|
-
street?: string | null | undefined;
|
504
|
-
zipCode?: string | null | undefined;
|
505
|
-
} | {
|
506
|
-
country: string;
|
507
|
-
district: string;
|
508
|
-
province: string;
|
509
|
-
urbanOrRural: "RURAL";
|
510
|
-
village?: string | null | undefined;
|
511
|
-
} | {
|
512
|
-
country: string;
|
513
|
-
state: string;
|
514
|
-
district2: string;
|
515
|
-
cityOrTown?: string | null | undefined;
|
516
|
-
addressLine1?: string | null | undefined;
|
517
|
-
addressLine2?: string | null | undefined;
|
518
|
-
addressLine3?: string | null | undefined;
|
519
|
-
postcodeOrZip?: string | null | undefined;
|
520
|
-
} | {
|
521
|
-
type: string;
|
522
|
-
option: string;
|
523
|
-
filename: string;
|
524
|
-
originalFilename: string;
|
525
|
-
}[]>;
|
305
|
+
declaration: {};
|
306
|
+
annotation: {};
|
526
307
|
eventId: string;
|
527
308
|
requestId: string;
|
528
309
|
};
|
@@ -538,6 +319,7 @@ export declare function generateEventDocument({ configuration, actions }: {
|
|
538
319
|
configuration: EventConfig;
|
539
320
|
actions: ActionType[];
|
540
321
|
}): EventDocument;
|
541
|
-
export declare function generateEventDraftDocument(eventId: string, actionType?: ActionType,
|
322
|
+
export declare function generateEventDraftDocument(eventId: string, actionType?: ActionType, declaration?: Record<string, FieldValue>): Draft;
|
542
323
|
export declare const eventQueryDataGenerator: (overrides?: Partial<EventIndex>) => EventIndex;
|
324
|
+
export declare const generateTranslationConfig: (message: string) => TranslationConfig;
|
543
325
|
//# sourceMappingURL=test.utils.d.ts.map
|