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