@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.
@@ -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 | null | undefined;
84
- town?: string | null | undefined;
85
- residentialArea?: string | null | undefined;
86
- street?: string | null | undefined;
87
- zipCode?: string | null | undefined;
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 | null | undefined;
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 | null | undefined;
113
- town?: string | null | undefined;
114
- residentialArea?: string | null | undefined;
115
- street?: string | null | undefined;
116
- zipCode?: string | null | undefined;
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 | null | undefined;
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 | null | undefined;
145
- town?: string | null | undefined;
146
- residentialArea?: string | null | undefined;
147
- street?: string | null | undefined;
148
- zipCode?: string | null | undefined;
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 | null | undefined;
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 | null | undefined;
176
- town?: string | null | undefined;
177
- residentialArea?: string | null | undefined;
178
- street?: string | null | undefined;
179
- zipCode?: string | null | undefined;
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 | null | undefined;
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 | null | undefined;
208
- town?: string | null | undefined;
209
- residentialArea?: string | null | undefined;
210
- street?: string | null | undefined;
211
- zipCode?: string | null | undefined;
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 | null | undefined;
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 | null | undefined;
243
- town?: string | null | undefined;
244
- residentialArea?: string | null | undefined;
245
- street?: string | null | undefined;
246
- zipCode?: string | null | undefined;
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 | null | undefined;
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 | null | undefined;
275
- town?: string | null | undefined;
276
- residentialArea?: string | null | undefined;
277
- street?: string | null | undefined;
278
- zipCode?: string | null | undefined;
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 | null | undefined;
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 | null | undefined;
306
- town?: string | null | undefined;
307
- residentialArea?: string | null | undefined;
308
- street?: string | null | undefined;
309
- zipCode?: string | null | undefined;
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 | null | undefined;
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 | null | undefined;
338
- town?: string | null | undefined;
339
- residentialArea?: string | null | undefined;
340
- street?: string | null | undefined;
341
- zipCode?: string | null | undefined;
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 | null | undefined;
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 | null | undefined;
370
- town?: string | null | undefined;
371
- residentialArea?: string | null | undefined;
372
- street?: string | null | undefined;
373
- zipCode?: string | null | undefined;
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 | null | undefined;
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 | null | undefined;
402
- town?: string | null | undefined;
403
- residentialArea?: string | null | undefined;
404
- street?: string | null | undefined;
405
- zipCode?: string | null | undefined;
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 | null | undefined;
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 { EventState } from './ActionDocument';
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: EventState): boolean;
84
- export declare function stripHiddenFields(fields: FieldConfig[], data: EventState): import("lodash").Dictionary<string | number | boolean | {
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;