@opencrvs/toolkit 1.8.0-rc.f466707 → 1.8.0-rc.fc43738
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 +2498 -2498
- package/dist/commons/conditionals/conditionals.d.ts +2 -2
- package/dist/commons/conditionals/validate.d.ts +6 -6
- package/dist/commons/events/ActionDocument.d.ts +1110 -1117
- package/dist/commons/events/ActionInput.d.ts +1664 -1664
- package/dist/commons/events/Draft.d.ts +152 -152
- package/dist/commons/events/EventDocument.d.ts +1320 -1320
- package/dist/commons/events/EventIndex.d.ts +3 -3
- package/dist/commons/events/EventMetadata.d.ts +3 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +38 -122
- package/dist/commons/events/FieldValue.d.ts +65 -62
- package/dist/commons/events/index.d.ts +0 -1
- package/dist/commons/events/test.utils.d.ts +66 -72
- package/dist/commons/events/utils.d.ts +3 -3
- package/dist/events/index.js +409 -482
- package/package.json +1 -1
- package/dist/commons/events/CompositeFieldValue.d.ts +0 -264
@@ -1,4 +1,3 @@
|
|
1
|
-
import { ActionDocument } from './ActionDocument';
|
2
1
|
import { ArchivedActionInput, DeclareActionInput, RegisterActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, ValidateActionInput } from './ActionInput';
|
3
2
|
import { ActionType } from './ActionType';
|
4
3
|
import { Draft } from './Draft';
|
@@ -80,17 +79,17 @@ export declare const eventPayloadGenerator: {
|
|
80
79
|
district: string;
|
81
80
|
province: string;
|
82
81
|
urbanOrRural: "URBAN";
|
83
|
-
number?: string |
|
84
|
-
town?: string |
|
85
|
-
residentialArea?: string |
|
86
|
-
street?: string |
|
87
|
-
zipCode?: string |
|
82
|
+
number?: string | undefined;
|
83
|
+
town?: string | undefined;
|
84
|
+
residentialArea?: string | undefined;
|
85
|
+
street?: string | undefined;
|
86
|
+
zipCode?: string | undefined;
|
88
87
|
} | {
|
89
88
|
country: string;
|
90
89
|
district: string;
|
91
90
|
province: string;
|
92
91
|
urbanOrRural: "RURAL";
|
93
|
-
village?: string |
|
92
|
+
village?: string | undefined;
|
94
93
|
} | {
|
95
94
|
type: string;
|
96
95
|
option: string;
|
@@ -109,17 +108,17 @@ export declare const eventPayloadGenerator: {
|
|
109
108
|
district: string;
|
110
109
|
province: string;
|
111
110
|
urbanOrRural: "URBAN";
|
112
|
-
number?: string |
|
113
|
-
town?: string |
|
114
|
-
residentialArea?: string |
|
115
|
-
street?: string |
|
116
|
-
zipCode?: string |
|
111
|
+
number?: string | undefined;
|
112
|
+
town?: string | undefined;
|
113
|
+
residentialArea?: string | undefined;
|
114
|
+
street?: string | undefined;
|
115
|
+
zipCode?: string | undefined;
|
117
116
|
} | {
|
118
117
|
country: string;
|
119
118
|
district: string;
|
120
119
|
province: string;
|
121
120
|
urbanOrRural: "RURAL";
|
122
|
-
village?: string |
|
121
|
+
village?: string | undefined;
|
123
122
|
} | {
|
124
123
|
type: string;
|
125
124
|
option: string;
|
@@ -141,17 +140,17 @@ export declare const eventPayloadGenerator: {
|
|
141
140
|
district: string;
|
142
141
|
province: string;
|
143
142
|
urbanOrRural: "URBAN";
|
144
|
-
number?: string |
|
145
|
-
town?: string |
|
146
|
-
residentialArea?: string |
|
147
|
-
street?: string |
|
148
|
-
zipCode?: string |
|
143
|
+
number?: string | undefined;
|
144
|
+
town?: string | undefined;
|
145
|
+
residentialArea?: string | undefined;
|
146
|
+
street?: string | undefined;
|
147
|
+
zipCode?: string | undefined;
|
149
148
|
} | {
|
150
149
|
country: string;
|
151
150
|
district: string;
|
152
151
|
province: string;
|
153
152
|
urbanOrRural: "RURAL";
|
154
|
-
village?: string |
|
153
|
+
village?: string | undefined;
|
155
154
|
} | {
|
156
155
|
type: string;
|
157
156
|
option: string;
|
@@ -172,17 +171,17 @@ export declare const eventPayloadGenerator: {
|
|
172
171
|
district: string;
|
173
172
|
province: string;
|
174
173
|
urbanOrRural: "URBAN";
|
175
|
-
number?: string |
|
176
|
-
town?: string |
|
177
|
-
residentialArea?: string |
|
178
|
-
street?: string |
|
179
|
-
zipCode?: string |
|
174
|
+
number?: string | undefined;
|
175
|
+
town?: string | undefined;
|
176
|
+
residentialArea?: string | undefined;
|
177
|
+
street?: string | undefined;
|
178
|
+
zipCode?: string | undefined;
|
180
179
|
} | {
|
181
180
|
country: string;
|
182
181
|
district: string;
|
183
182
|
province: string;
|
184
183
|
urbanOrRural: "RURAL";
|
185
|
-
village?: string |
|
184
|
+
village?: string | undefined;
|
186
185
|
} | {
|
187
186
|
type: string;
|
188
187
|
option: string;
|
@@ -204,17 +203,17 @@ export declare const eventPayloadGenerator: {
|
|
204
203
|
district: string;
|
205
204
|
province: string;
|
206
205
|
urbanOrRural: "URBAN";
|
207
|
-
number?: string |
|
208
|
-
town?: string |
|
209
|
-
residentialArea?: string |
|
210
|
-
street?: string |
|
211
|
-
zipCode?: string |
|
206
|
+
number?: string | undefined;
|
207
|
+
town?: string | undefined;
|
208
|
+
residentialArea?: string | undefined;
|
209
|
+
street?: string | undefined;
|
210
|
+
zipCode?: string | undefined;
|
212
211
|
} | {
|
213
212
|
country: string;
|
214
213
|
district: string;
|
215
214
|
province: string;
|
216
215
|
urbanOrRural: "RURAL";
|
217
|
-
village?: string |
|
216
|
+
village?: string | undefined;
|
218
217
|
} | {
|
219
218
|
type: string;
|
220
219
|
option: string;
|
@@ -239,17 +238,17 @@ export declare const eventPayloadGenerator: {
|
|
239
238
|
district: string;
|
240
239
|
province: string;
|
241
240
|
urbanOrRural: "URBAN";
|
242
|
-
number?: string |
|
243
|
-
town?: string |
|
244
|
-
residentialArea?: string |
|
245
|
-
street?: string |
|
246
|
-
zipCode?: string |
|
241
|
+
number?: string | undefined;
|
242
|
+
town?: string | undefined;
|
243
|
+
residentialArea?: string | undefined;
|
244
|
+
street?: string | undefined;
|
245
|
+
zipCode?: string | undefined;
|
247
246
|
} | {
|
248
247
|
country: string;
|
249
248
|
district: string;
|
250
249
|
province: string;
|
251
250
|
urbanOrRural: "RURAL";
|
252
|
-
village?: string |
|
251
|
+
village?: string | undefined;
|
253
252
|
} | {
|
254
253
|
type: string;
|
255
254
|
option: string;
|
@@ -271,17 +270,17 @@ export declare const eventPayloadGenerator: {
|
|
271
270
|
district: string;
|
272
271
|
province: string;
|
273
272
|
urbanOrRural: "URBAN";
|
274
|
-
number?: string |
|
275
|
-
town?: string |
|
276
|
-
residentialArea?: string |
|
277
|
-
street?: string |
|
278
|
-
zipCode?: string |
|
273
|
+
number?: string | undefined;
|
274
|
+
town?: string | undefined;
|
275
|
+
residentialArea?: string | undefined;
|
276
|
+
street?: string | undefined;
|
277
|
+
zipCode?: string | undefined;
|
279
278
|
} | {
|
280
279
|
country: string;
|
281
280
|
district: string;
|
282
281
|
province: string;
|
283
282
|
urbanOrRural: "RURAL";
|
284
|
-
village?: string |
|
283
|
+
village?: string | undefined;
|
285
284
|
} | {
|
286
285
|
type: string;
|
287
286
|
option: string;
|
@@ -302,17 +301,17 @@ export declare const eventPayloadGenerator: {
|
|
302
301
|
district: string;
|
303
302
|
province: string;
|
304
303
|
urbanOrRural: "URBAN";
|
305
|
-
number?: string |
|
306
|
-
town?: string |
|
307
|
-
residentialArea?: string |
|
308
|
-
street?: string |
|
309
|
-
zipCode?: string |
|
304
|
+
number?: string | undefined;
|
305
|
+
town?: string | undefined;
|
306
|
+
residentialArea?: string | undefined;
|
307
|
+
street?: string | undefined;
|
308
|
+
zipCode?: string | undefined;
|
310
309
|
} | {
|
311
310
|
country: string;
|
312
311
|
district: string;
|
313
312
|
province: string;
|
314
313
|
urbanOrRural: "RURAL";
|
315
|
-
village?: string |
|
314
|
+
village?: string | undefined;
|
316
315
|
} | {
|
317
316
|
type: string;
|
318
317
|
option: string;
|
@@ -334,17 +333,17 @@ export declare const eventPayloadGenerator: {
|
|
334
333
|
district: string;
|
335
334
|
province: string;
|
336
335
|
urbanOrRural: "URBAN";
|
337
|
-
number?: string |
|
338
|
-
town?: string |
|
339
|
-
residentialArea?: string |
|
340
|
-
street?: string |
|
341
|
-
zipCode?: string |
|
336
|
+
number?: string | undefined;
|
337
|
+
town?: string | undefined;
|
338
|
+
residentialArea?: string | undefined;
|
339
|
+
street?: string | undefined;
|
340
|
+
zipCode?: string | undefined;
|
342
341
|
} | {
|
343
342
|
country: string;
|
344
343
|
district: string;
|
345
344
|
province: string;
|
346
345
|
urbanOrRural: "RURAL";
|
347
|
-
village?: string |
|
346
|
+
village?: string | undefined;
|
348
347
|
} | {
|
349
348
|
type: string;
|
350
349
|
option: string;
|
@@ -366,17 +365,17 @@ export declare const eventPayloadGenerator: {
|
|
366
365
|
district: string;
|
367
366
|
province: string;
|
368
367
|
urbanOrRural: "URBAN";
|
369
|
-
number?: string |
|
370
|
-
town?: string |
|
371
|
-
residentialArea?: string |
|
372
|
-
street?: string |
|
373
|
-
zipCode?: string |
|
368
|
+
number?: string | undefined;
|
369
|
+
town?: string | undefined;
|
370
|
+
residentialArea?: string | undefined;
|
371
|
+
street?: string | undefined;
|
372
|
+
zipCode?: string | undefined;
|
374
373
|
} | {
|
375
374
|
country: string;
|
376
375
|
district: string;
|
377
376
|
province: string;
|
378
377
|
urbanOrRural: "RURAL";
|
379
|
-
village?: string |
|
378
|
+
village?: string | undefined;
|
380
379
|
} | {
|
381
380
|
type: string;
|
382
381
|
option: string;
|
@@ -398,17 +397,17 @@ export declare const eventPayloadGenerator: {
|
|
398
397
|
district: string;
|
399
398
|
province: string;
|
400
399
|
urbanOrRural: "URBAN";
|
401
|
-
number?: string |
|
402
|
-
town?: string |
|
403
|
-
residentialArea?: string |
|
404
|
-
street?: string |
|
405
|
-
zipCode?: string |
|
400
|
+
number?: string | undefined;
|
401
|
+
town?: string | undefined;
|
402
|
+
residentialArea?: string | undefined;
|
403
|
+
street?: string | undefined;
|
404
|
+
zipCode?: string | undefined;
|
406
405
|
} | {
|
407
406
|
country: string;
|
408
407
|
district: string;
|
409
408
|
province: string;
|
410
409
|
urbanOrRural: "RURAL";
|
411
|
-
village?: string |
|
410
|
+
village?: string | undefined;
|
412
411
|
} | {
|
413
412
|
type: string;
|
414
413
|
option: string;
|
@@ -421,11 +420,6 @@ export declare const eventPayloadGenerator: {
|
|
421
420
|
};
|
422
421
|
};
|
423
422
|
};
|
424
|
-
export declare function generateActionDocument({ configuration, action, defaults }: {
|
425
|
-
configuration: EventConfig;
|
426
|
-
action: ActionType;
|
427
|
-
defaults?: Partial<ActionDocument>;
|
428
|
-
}): ActionDocument;
|
429
423
|
export declare function generateEventDocument({ configuration, actions }: {
|
430
424
|
configuration: EventConfig;
|
431
425
|
actions: ActionType[];
|
@@ -5,7 +5,7 @@ import { EventConfigInput } from './EventConfigInput';
|
|
5
5
|
import { EventMetadataKeys } from './EventMetadata';
|
6
6
|
import { FieldConfig } from './FieldConfig';
|
7
7
|
import { WorkqueueConfig } from './WorkqueueConfig';
|
8
|
-
import {
|
8
|
+
import { ActionFormData } from './ActionDocument';
|
9
9
|
import { FormConfig } from './FormConfig';
|
10
10
|
/**
|
11
11
|
* @returns All the fields in the event configuration input.
|
@@ -80,8 +80,8 @@ export declare const findActiveActionFields: (configuration: EventConfig, action
|
|
80
80
|
*/
|
81
81
|
export declare function getActiveActionFields(configuration: EventConfig, action: ActionType): FieldConfig[];
|
82
82
|
export declare function getEventConfiguration(eventConfigurations: EventConfig[], type: string): EventConfig;
|
83
|
-
export declare function isOptionalUncheckedCheckbox(field: FieldConfig, form:
|
84
|
-
export declare function stripHiddenFields(fields: FieldConfig[], data:
|
83
|
+
export declare function isOptionalUncheckedCheckbox(field: FieldConfig, form: ActionFormData): boolean;
|
84
|
+
export declare function stripHiddenFields(fields: FieldConfig[], data: ActionFormData): import("lodash").Dictionary<string | number | boolean | {
|
85
85
|
type: string;
|
86
86
|
filename: string;
|
87
87
|
originalFilename: string;
|