@opencrvs/toolkit 1.8.0-rc.f7910f3 → 1.8.0-rc.f876361

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.
@@ -19,32 +19,35 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
19
19
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  updatedBy: z.ZodString;
21
21
  trackingId: z.ZodString;
22
+ registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
23
  }, {
23
- data: z.ZodRecord<z.ZodString, z.ZodAny>;
24
+ declaration: z.ZodRecord<z.ZodString, z.ZodAny>;
24
25
  }>, "strip", z.ZodTypeAny, {
25
26
  type: string;
26
27
  id: string;
27
28
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
28
- data: Record<string, any>;
29
29
  createdAt: string;
30
30
  createdBy: string;
31
+ declaration: Record<string, any>;
31
32
  createdAtLocation: string;
32
33
  trackingId: string;
33
34
  modifiedAt: string;
34
35
  updatedBy: string;
35
36
  assignedTo?: string | null | undefined;
37
+ registrationNumber?: string | null | undefined;
36
38
  }, {
37
39
  type: string;
38
40
  id: string;
39
41
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
40
- data: Record<string, any>;
41
42
  createdAt: string;
42
43
  createdBy: string;
44
+ declaration: Record<string, any>;
43
45
  createdAtLocation: string;
44
46
  trackingId: string;
45
47
  modifiedAt: string;
46
48
  updatedBy: string;
47
49
  assignedTo?: string | null | undefined;
50
+ registrationNumber?: string | null | undefined;
48
51
  }>;
49
52
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
50
53
  type: z.ZodString;
@@ -50,6 +50,7 @@ export declare const EventMetadata: z.ZodObject<{
50
50
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
51
  updatedBy: z.ZodString;
52
52
  trackingId: z.ZodString;
53
+ registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
54
  }, "strip", z.ZodTypeAny, {
54
55
  type: string;
55
56
  id: string;
@@ -61,6 +62,7 @@ export declare const EventMetadata: z.ZodObject<{
61
62
  modifiedAt: string;
62
63
  updatedBy: string;
63
64
  assignedTo?: string | null | undefined;
65
+ registrationNumber?: string | null | undefined;
64
66
  }, {
65
67
  type: string;
66
68
  id: string;
@@ -72,6 +74,7 @@ export declare const EventMetadata: z.ZodObject<{
72
74
  modifiedAt: string;
73
75
  updatedBy: string;
74
76
  assignedTo?: string | null | undefined;
77
+ registrationNumber?: string | null | undefined;
75
78
  }>;
76
79
  export type EventMetadata = z.infer<typeof EventMetadata>;
77
80
  export type EventMetadataKeys = `event.${keyof EventMetadata}`;
@@ -2335,22 +2335,22 @@ export type Country = z.infer<typeof Country>;
2335
2335
  export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2336
2336
  declare const AdministrativeAreaConfiguration: z.ZodObject<{
2337
2337
  partOf: z.ZodOptional<z.ZodObject<{
2338
- $data: z.ZodString;
2338
+ $declaration: z.ZodString;
2339
2339
  }, "strip", z.ZodTypeAny, {
2340
- $data: string;
2340
+ $declaration: string;
2341
2341
  }, {
2342
- $data: string;
2342
+ $declaration: string;
2343
2343
  }>>;
2344
2344
  type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2345
2345
  }, "strip", z.ZodTypeAny, {
2346
2346
  type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2347
2347
  partOf?: {
2348
- $data: string;
2348
+ $declaration: string;
2349
2349
  } | undefined;
2350
2350
  }, {
2351
2351
  type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2352
2352
  partOf?: {
2353
- $data: string;
2353
+ $declaration: string;
2354
2354
  } | undefined;
2355
2355
  }>;
2356
2356
  declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
@@ -2413,22 +2413,22 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2413
2413
  }>]>>;
2414
2414
  configuration: z.ZodObject<{
2415
2415
  partOf: z.ZodOptional<z.ZodObject<{
2416
- $data: z.ZodString;
2416
+ $declaration: z.ZodString;
2417
2417
  }, "strip", z.ZodTypeAny, {
2418
- $data: string;
2418
+ $declaration: string;
2419
2419
  }, {
2420
- $data: string;
2420
+ $declaration: string;
2421
2421
  }>>;
2422
2422
  type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2423
2423
  }, "strip", z.ZodTypeAny, {
2424
2424
  type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2425
2425
  partOf?: {
2426
- $data: string;
2426
+ $declaration: string;
2427
2427
  } | undefined;
2428
2428
  }, {
2429
2429
  type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2430
2430
  partOf?: {
2431
- $data: string;
2431
+ $declaration: string;
2432
2432
  } | undefined;
2433
2433
  }>;
2434
2434
  }>, "strip", z.ZodTypeAny, {
@@ -2438,7 +2438,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2438
2438
  configuration: {
2439
2439
  type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2440
2440
  partOf?: {
2441
- $data: string;
2441
+ $declaration: string;
2442
2442
  } | undefined;
2443
2443
  };
2444
2444
  validation?: {
@@ -2473,7 +2473,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2473
2473
  configuration: {
2474
2474
  type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2475
2475
  partOf?: {
2476
- $data: string;
2476
+ $declaration: string;
2477
2477
  } | undefined;
2478
2478
  };
2479
2479
  validation?: {
@@ -3281,6 +3281,31 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3281
3281
  } | undefined;
3282
3282
  hideLabel?: boolean | undefined;
3283
3283
  }>;
3284
+ export declare const DataEntry: z.ZodUnion<[z.ZodObject<{
3285
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3286
+ id: string;
3287
+ description: string;
3288
+ defaultMessage: string;
3289
+ }>;
3290
+ value: z.ZodString;
3291
+ }, "strip", z.ZodTypeAny, {
3292
+ value: string;
3293
+ label: TranslationConfig;
3294
+ }, {
3295
+ value: string;
3296
+ label: {
3297
+ id: string;
3298
+ description: string;
3299
+ defaultMessage: string;
3300
+ };
3301
+ }>, z.ZodObject<{
3302
+ fieldId: z.ZodString;
3303
+ }, "strip", z.ZodTypeAny, {
3304
+ fieldId: string;
3305
+ }, {
3306
+ fieldId: string;
3307
+ }>]>;
3308
+ export type DataEntry = z.infer<typeof DataEntry>;
3284
3309
  declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3285
3310
  id: z.ZodString;
3286
3311
  defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
@@ -3335,22 +3360,49 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3335
3360
  description: string;
3336
3361
  defaultMessage: string;
3337
3362
  }>>;
3338
- data: z.ZodArray<z.ZodObject<{
3363
+ data: z.ZodArray<z.ZodUnion<[z.ZodObject<{
3364
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3365
+ id: string;
3366
+ description: string;
3367
+ defaultMessage: string;
3368
+ }>;
3369
+ value: z.ZodString;
3370
+ }, "strip", z.ZodTypeAny, {
3371
+ value: string;
3372
+ label: TranslationConfig;
3373
+ }, {
3374
+ value: string;
3375
+ label: {
3376
+ id: string;
3377
+ description: string;
3378
+ defaultMessage: string;
3379
+ };
3380
+ }>, z.ZodObject<{
3339
3381
  fieldId: z.ZodString;
3340
3382
  }, "strip", z.ZodTypeAny, {
3341
3383
  fieldId: string;
3342
3384
  }, {
3343
3385
  fieldId: string;
3344
- }>, "many">;
3386
+ }>]>, "many">;
3345
3387
  }, "strip", z.ZodTypeAny, {
3346
- data: {
3388
+ data: ({
3389
+ value: string;
3390
+ label: TranslationConfig;
3391
+ } | {
3347
3392
  fieldId: string;
3348
- }[];
3393
+ })[];
3349
3394
  subtitle?: TranslationConfig | undefined;
3350
3395
  }, {
3351
- data: {
3396
+ data: ({
3397
+ value: string;
3398
+ label: {
3399
+ id: string;
3400
+ description: string;
3401
+ defaultMessage: string;
3402
+ };
3403
+ } | {
3352
3404
  fieldId: string;
3353
- }[];
3405
+ })[];
3354
3406
  subtitle?: {
3355
3407
  id: string;
3356
3408
  description: string;
@@ -3362,9 +3414,12 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3362
3414
  id: string;
3363
3415
  label: TranslationConfig;
3364
3416
  configuration: {
3365
- data: {
3417
+ data: ({
3418
+ value: string;
3419
+ label: TranslationConfig;
3420
+ } | {
3366
3421
  fieldId: string;
3367
- }[];
3422
+ })[];
3368
3423
  subtitle?: TranslationConfig | undefined;
3369
3424
  };
3370
3425
  validation?: {
@@ -3397,9 +3452,16 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3397
3452
  defaultMessage: string;
3398
3453
  };
3399
3454
  configuration: {
3400
- data: {
3455
+ data: ({
3456
+ value: string;
3457
+ label: {
3458
+ id: string;
3459
+ description: string;
3460
+ defaultMessage: string;
3461
+ };
3462
+ } | {
3401
3463
  fieldId: string;
3402
- }[];
3464
+ })[];
3403
3465
  subtitle?: {
3404
3466
  id: string;
3405
3467
  description: string;