@opencrvs/toolkit 1.9.13-rc.6145732 → 1.9.13-rc.6d693fa

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.
@@ -1531,11 +1531,29 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1531
1531
  meta: import("trpc-to-openapi").OpenApiMeta;
1532
1532
  }>;
1533
1533
  reject: import("@trpc/server").TRPCMutationProcedure<{
1534
- input: {
1534
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
1535
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
1536
+ transactionId: import("zod").ZodString;
1537
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
1538
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
1539
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
1540
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
1541
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
1542
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
1543
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
1544
+ }, "transactionId" | "eventId" | "keepAssignment">, {
1545
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
1546
+ }>, "strip", import("zod").ZodTypeAny, {
1547
+ transactionId: string;
1548
+ eventId: string & import("zod").BRAND<"UUID">;
1549
+ actionId: string & import("zod").BRAND<"UUID">;
1550
+ keepAssignment?: boolean | undefined;
1551
+ }, {
1552
+ transactionId: string;
1535
1553
  eventId: string;
1536
1554
  actionId: string;
1537
- transactionId: string;
1538
- };
1555
+ keepAssignment?: boolean | undefined;
1556
+ }>>;
1539
1557
  output: import("../commons").EventDocument;
1540
1558
  meta: import("trpc-to-openapi").OpenApiMeta;
1541
1559
  }>;
@@ -2080,11 +2098,29 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2080
2098
  meta: import("trpc-to-openapi").OpenApiMeta;
2081
2099
  }>;
2082
2100
  reject: import("@trpc/server").TRPCMutationProcedure<{
2083
- input: {
2101
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
2102
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2103
+ transactionId: import("zod").ZodString;
2104
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2105
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2106
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
2107
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2108
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
2109
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
2110
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
2111
+ }, "transactionId" | "eventId" | "keepAssignment">, {
2112
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2113
+ }>, "strip", import("zod").ZodTypeAny, {
2114
+ transactionId: string;
2115
+ eventId: string & import("zod").BRAND<"UUID">;
2116
+ actionId: string & import("zod").BRAND<"UUID">;
2117
+ keepAssignment?: boolean | undefined;
2118
+ }, {
2119
+ transactionId: string;
2084
2120
  eventId: string;
2085
2121
  actionId: string;
2086
- transactionId: string;
2087
- };
2122
+ keepAssignment?: boolean | undefined;
2123
+ }>>;
2088
2124
  output: import("../commons").EventDocument;
2089
2125
  meta: import("trpc-to-openapi").OpenApiMeta;
2090
2126
  }>;
@@ -2336,11 +2372,29 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2336
2372
  meta: import("trpc-to-openapi").OpenApiMeta;
2337
2373
  }>;
2338
2374
  reject: import("@trpc/server").TRPCMutationProcedure<{
2339
- input: {
2375
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
2376
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2377
+ transactionId: import("zod").ZodString;
2378
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2379
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2380
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
2381
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2382
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
2383
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
2384
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
2385
+ }, "transactionId" | "eventId" | "keepAssignment">, {
2386
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2387
+ }>, "strip", import("zod").ZodTypeAny, {
2388
+ transactionId: string;
2389
+ eventId: string & import("zod").BRAND<"UUID">;
2390
+ actionId: string & import("zod").BRAND<"UUID">;
2391
+ keepAssignment?: boolean | undefined;
2392
+ }, {
2393
+ transactionId: string;
2340
2394
  eventId: string;
2341
2395
  actionId: string;
2342
- transactionId: string;
2343
- };
2396
+ keepAssignment?: boolean | undefined;
2397
+ }>>;
2344
2398
  output: import("../commons").EventDocument;
2345
2399
  meta: import("trpc-to-openapi").OpenApiMeta;
2346
2400
  }>;
@@ -2592,11 +2646,29 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2592
2646
  meta: import("trpc-to-openapi").OpenApiMeta;
2593
2647
  }>;
2594
2648
  reject: import("@trpc/server").TRPCMutationProcedure<{
2595
- input: {
2649
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
2650
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2651
+ transactionId: import("zod").ZodString;
2652
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2653
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2654
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
2655
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2656
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
2657
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
2658
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
2659
+ }, "transactionId" | "eventId" | "keepAssignment">, {
2660
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2661
+ }>, "strip", import("zod").ZodTypeAny, {
2662
+ transactionId: string;
2663
+ eventId: string & import("zod").BRAND<"UUID">;
2664
+ actionId: string & import("zod").BRAND<"UUID">;
2665
+ keepAssignment?: boolean | undefined;
2666
+ }, {
2667
+ transactionId: string;
2596
2668
  eventId: string;
2597
2669
  actionId: string;
2598
- transactionId: string;
2599
- };
2670
+ keepAssignment?: boolean | undefined;
2671
+ }>>;
2600
2672
  output: import("../commons").EventDocument;
2601
2673
  meta: import("trpc-to-openapi").OpenApiMeta;
2602
2674
  }>;
@@ -2848,11 +2920,29 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2848
2920
  meta: import("trpc-to-openapi").OpenApiMeta;
2849
2921
  }>;
2850
2922
  reject: import("@trpc/server").TRPCMutationProcedure<{
2851
- input: {
2923
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
2924
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2925
+ transactionId: import("zod").ZodString;
2926
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2927
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2928
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
2929
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2930
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
2931
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
2932
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
2933
+ }, "transactionId" | "eventId" | "keepAssignment">, {
2934
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2935
+ }>, "strip", import("zod").ZodTypeAny, {
2936
+ transactionId: string;
2937
+ eventId: string & import("zod").BRAND<"UUID">;
2938
+ actionId: string & import("zod").BRAND<"UUID">;
2939
+ keepAssignment?: boolean | undefined;
2940
+ }, {
2941
+ transactionId: string;
2852
2942
  eventId: string;
2853
2943
  actionId: string;
2854
- transactionId: string;
2855
- };
2944
+ keepAssignment?: boolean | undefined;
2945
+ }>>;
2856
2946
  output: import("../commons").EventDocument;
2857
2947
  meta: import("trpc-to-openapi").OpenApiMeta;
2858
2948
  }>;
@@ -3104,11 +3194,29 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3104
3194
  meta: import("trpc-to-openapi").OpenApiMeta;
3105
3195
  }>;
3106
3196
  reject: import("@trpc/server").TRPCMutationProcedure<{
3107
- input: {
3197
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
3198
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
3199
+ transactionId: import("zod").ZodString;
3200
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
3201
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
3202
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
3203
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3204
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
3205
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
3206
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
3207
+ }, "transactionId" | "eventId" | "keepAssignment">, {
3208
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
3209
+ }>, "strip", import("zod").ZodTypeAny, {
3210
+ transactionId: string;
3211
+ eventId: string & import("zod").BRAND<"UUID">;
3212
+ actionId: string & import("zod").BRAND<"UUID">;
3213
+ keepAssignment?: boolean | undefined;
3214
+ }, {
3215
+ transactionId: string;
3108
3216
  eventId: string;
3109
3217
  actionId: string;
3110
- transactionId: string;
3111
- };
3218
+ keepAssignment?: boolean | undefined;
3219
+ }>>;
3112
3220
  output: import("../commons").EventDocument;
3113
3221
  meta: import("trpc-to-openapi").OpenApiMeta;
3114
3222
  }>;
@@ -3360,11 +3468,29 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3360
3468
  meta: import("trpc-to-openapi").OpenApiMeta;
3361
3469
  }>;
3362
3470
  reject: import("@trpc/server").TRPCMutationProcedure<{
3363
- input: {
3471
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
3472
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
3473
+ transactionId: import("zod").ZodString;
3474
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
3475
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
3476
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
3477
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3478
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
3479
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
3480
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
3481
+ }, "transactionId" | "eventId" | "keepAssignment">, {
3482
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
3483
+ }>, "strip", import("zod").ZodTypeAny, {
3484
+ transactionId: string;
3485
+ eventId: string & import("zod").BRAND<"UUID">;
3486
+ actionId: string & import("zod").BRAND<"UUID">;
3487
+ keepAssignment?: boolean | undefined;
3488
+ }, {
3489
+ transactionId: string;
3364
3490
  eventId: string;
3365
3491
  actionId: string;
3366
- transactionId: string;
3367
- };
3492
+ keepAssignment?: boolean | undefined;
3493
+ }>>;
3368
3494
  output: import("../commons").EventDocument;
3369
3495
  meta: import("trpc-to-openapi").OpenApiMeta;
3370
3496
  }>;
@@ -4257,11 +4383,29 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4257
4383
  meta: import("trpc-to-openapi").OpenApiMeta;
4258
4384
  }>;
4259
4385
  reject: import("@trpc/server").TRPCMutationProcedure<{
4260
- input: {
4386
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
4387
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
4388
+ transactionId: import("zod").ZodString;
4389
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
4390
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
4391
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
4392
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
4393
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
4394
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
4395
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
4396
+ }, "transactionId" | "eventId" | "keepAssignment">, {
4397
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
4398
+ }>, "strip", import("zod").ZodTypeAny, {
4399
+ transactionId: string;
4400
+ eventId: string & import("zod").BRAND<"UUID">;
4401
+ actionId: string & import("zod").BRAND<"UUID">;
4402
+ keepAssignment?: boolean | undefined;
4403
+ }, {
4404
+ transactionId: string;
4261
4405
  eventId: string;
4262
4406
  actionId: string;
4263
- transactionId: string;
4264
- };
4407
+ keepAssignment?: boolean | undefined;
4408
+ }>>;
4265
4409
  output: import("../commons").EventDocument;
4266
4410
  meta: import("trpc-to-openapi").OpenApiMeta;
4267
4411
  }>;
@@ -4513,11 +4657,29 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4513
4657
  meta: import("trpc-to-openapi").OpenApiMeta;
4514
4658
  }>;
4515
4659
  reject: import("@trpc/server").TRPCMutationProcedure<{
4516
- input: {
4660
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
4661
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
4662
+ transactionId: import("zod").ZodString;
4663
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
4664
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
4665
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
4666
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
4667
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
4668
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
4669
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
4670
+ }, "transactionId" | "eventId" | "keepAssignment">, {
4671
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
4672
+ }>, "strip", import("zod").ZodTypeAny, {
4673
+ transactionId: string;
4674
+ eventId: string & import("zod").BRAND<"UUID">;
4675
+ actionId: string & import("zod").BRAND<"UUID">;
4676
+ keepAssignment?: boolean | undefined;
4677
+ }, {
4678
+ transactionId: string;
4517
4679
  eventId: string;
4518
4680
  actionId: string;
4519
- transactionId: string;
4520
- };
4681
+ keepAssignment?: boolean | undefined;
4682
+ }>>;
4521
4683
  output: import("../commons").EventDocument;
4522
4684
  meta: import("trpc-to-openapi").OpenApiMeta;
4523
4685
  }>;
@@ -4769,11 +4931,29 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4769
4931
  meta: import("trpc-to-openapi").OpenApiMeta;
4770
4932
  }>;
4771
4933
  reject: import("@trpc/server").TRPCMutationProcedure<{
4772
- input: {
4934
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
4935
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
4936
+ transactionId: import("zod").ZodString;
4937
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
4938
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
4939
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
4940
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
4941
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
4942
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
4943
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
4944
+ }, "transactionId" | "eventId" | "keepAssignment">, {
4945
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
4946
+ }>, "strip", import("zod").ZodTypeAny, {
4947
+ transactionId: string;
4948
+ eventId: string & import("zod").BRAND<"UUID">;
4949
+ actionId: string & import("zod").BRAND<"UUID">;
4950
+ keepAssignment?: boolean | undefined;
4951
+ }, {
4952
+ transactionId: string;
4773
4953
  eventId: string;
4774
4954
  actionId: string;
4775
- transactionId: string;
4776
- };
4955
+ keepAssignment?: boolean | undefined;
4956
+ }>>;
4777
4957
  output: import("../commons").EventDocument;
4778
4958
  meta: import("trpc-to-openapi").OpenApiMeta;
4779
4959
  }>;
@@ -20,6 +20,7 @@ export type ValidatorContext = {
20
20
  id: UUID;
21
21
  }>;
22
22
  event?: EventDocument;
23
+ baseFormState?: EventState;
23
24
  };
24
25
  export declare function isFieldVisible(field: FieldConfig, form: Partial<ActionUpdate | EventState>, context: ValidatorContext): boolean;
25
26
  export declare function isFieldEnabled(field: FieldConfig, form: ActionUpdate | EventState, context: ValidatorContext): boolean;
@@ -2784,7 +2784,6 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
2784
2784
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2785
2785
  }, {
2786
2786
  type: z.ZodLiteral<"PARAGRAPH">;
2787
- defaultValue: z.ZodOptional<z.ZodString>;
2788
2787
  configuration: z.ZodDefault<z.ZodObject<{
2789
2788
  styles: z.ZodOptional<z.ZodObject<{
2790
2789
  fontVariant: z.ZodOptional<z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>>;
@@ -2854,7 +2853,6 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
2854
2853
  hideLabel?: boolean | undefined;
2855
2854
  uncorrectable?: boolean | undefined;
2856
2855
  analytics?: boolean | undefined;
2857
- defaultValue?: string | undefined;
2858
2856
  }, {
2859
2857
  type: "PARAGRAPH";
2860
2858
  id: string;
@@ -2916,7 +2914,6 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
2916
2914
  hideLabel?: boolean | undefined;
2917
2915
  uncorrectable?: boolean | undefined;
2918
2916
  analytics?: boolean | undefined;
2919
- defaultValue?: string | undefined;
2920
2917
  configuration?: {
2921
2918
  styles?: {
2922
2919
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
@@ -3020,7 +3017,6 @@ declare const PageHeader: z.ZodObject<z.objectUtil.extendShape<{
3020
3017
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3021
3018
  }, {
3022
3019
  type: z.ZodLiteral<"PAGE_HEADER">;
3023
- defaultValue: z.ZodOptional<z.ZodString>;
3024
3020
  }>, "strip", z.ZodTypeAny, {
3025
3021
  type: "PAGE_HEADER";
3026
3022
  id: string;
@@ -3062,7 +3058,6 @@ declare const PageHeader: z.ZodObject<z.objectUtil.extendShape<{
3062
3058
  hideLabel?: boolean | undefined;
3063
3059
  uncorrectable?: boolean | undefined;
3064
3060
  analytics?: boolean | undefined;
3065
- defaultValue?: string | undefined;
3066
3061
  }, {
3067
3062
  type: "PAGE_HEADER";
3068
3063
  id: string;
@@ -3124,7 +3119,6 @@ declare const PageHeader: z.ZodObject<z.objectUtil.extendShape<{
3124
3119
  hideLabel?: boolean | undefined;
3125
3120
  uncorrectable?: boolean | undefined;
3126
3121
  analytics?: boolean | undefined;
3127
- defaultValue?: string | undefined;
3128
3122
  }>;
3129
3123
  export type PageHeader = z.infer<typeof PageHeader>;
3130
3124
  declare const File: z.ZodObject<z.objectUtil.extendShape<{
@@ -4175,7 +4169,6 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
4175
4169
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4176
4170
  }, {
4177
4171
  type: z.ZodLiteral<"BULLET_LIST">;
4178
- defaultValue: z.ZodOptional<z.ZodString>;
4179
4172
  items: z.ZodArray<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4180
4173
  id: string;
4181
4174
  description: string;
@@ -4245,7 +4238,6 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
4245
4238
  hideLabel?: boolean | undefined;
4246
4239
  uncorrectable?: boolean | undefined;
4247
4240
  analytics?: boolean | undefined;
4248
- defaultValue?: string | undefined;
4249
4241
  }, {
4250
4242
  type: "BULLET_LIST";
4251
4243
  id: string;
@@ -4312,7 +4304,6 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
4312
4304
  hideLabel?: boolean | undefined;
4313
4305
  uncorrectable?: boolean | undefined;
4314
4306
  analytics?: boolean | undefined;
4315
- defaultValue?: string | undefined;
4316
4307
  configuration?: {
4317
4308
  styles?: {
4318
4309
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
@@ -94,176 +94,7 @@ export declare function findActiveDraftForEvent(event: EventDocument, draft: Dra
94
94
  export declare function createEmptyDraft(eventId: UUID, draftId: UUID, actionType: Exclude<ActionType, 'DELETE'>): Draft;
95
95
  export declare function isVerificationPage(page: PageConfig): page is VerificationPageConfig;
96
96
  export declare function getVisibleVerificationPageIds(pages: PageConfig[], annotation: ActionUpdate, context: ValidatorContext): string[];
97
- export declare function omitHiddenAnnotationFields(actionConfig: ActionConfig, declaration: EventState, annotation: ActionUpdate, context: ValidatorContext): Partial<{
98
- [x: string]: string | number | boolean | {
99
- type: string;
100
- path: string;
101
- originalFilename: string;
102
- } | {
103
- firstname: string;
104
- surname: string;
105
- middlename?: string | undefined;
106
- } | {
107
- firstname?: string | null | undefined;
108
- surname?: string | null | undefined;
109
- middlename?: string | null | undefined;
110
- } | {
111
- country: string;
112
- addressType: "DOMESTIC";
113
- administrativeArea: string;
114
- streetLevelDetails?: Record<string, string> | undefined;
115
- } | {
116
- country: string;
117
- addressType: "INTERNATIONAL";
118
- streetLevelDetails?: Record<string, string> | undefined;
119
- } | {
120
- addressType: "DOMESTIC";
121
- country?: string | null | undefined;
122
- streetLevelDetails?: Record<string, string | null> | null | undefined;
123
- administrativeArea?: string | null | undefined;
124
- } | {
125
- addressType: "INTERNATIONAL";
126
- country?: string | null | undefined;
127
- streetLevelDetails?: Record<string, string | null> | null | undefined;
128
- } | {
129
- type: string;
130
- option: string;
131
- path: string;
132
- originalFilename: string;
133
- }[] | {
134
- loading: boolean;
135
- data?: any;
136
- error?: {
137
- message: string;
138
- statusCode: number;
139
- } | null | undefined;
140
- } | {
141
- data?: any;
142
- error?: {
143
- message: string;
144
- statusCode: number;
145
- } | null | undefined;
146
- loading?: boolean | null | undefined;
147
- } | {
148
- data: Record<string, string>;
149
- } | {
150
- data: Record<string, string>;
151
- } | {
152
- data?: any;
153
- } | {
154
- numericValue: number;
155
- unit: string;
156
- } | {
157
- numericValue?: number | undefined;
158
- unit?: string | undefined;
159
- } | (string & import("zod").BRAND<"PlainDate">) | {
160
- age: number;
161
- asOfDateRef: string;
162
- } | {
163
- start: string & import("zod").BRAND<"PlainDate">;
164
- end: string & import("zod").BRAND<"PlainDate">;
165
- } | Record<string, string | number | boolean | {
166
- type: string;
167
- path: string;
168
- originalFilename: string;
169
- } | {
170
- firstname: string;
171
- surname: string;
172
- middlename?: string | undefined;
173
- } | {
174
- firstname?: string | null | undefined;
175
- surname?: string | null | undefined;
176
- middlename?: string | null | undefined;
177
- } | {
178
- country: string;
179
- addressType: "DOMESTIC";
180
- administrativeArea: string;
181
- streetLevelDetails?: Record<string, string> | undefined;
182
- } | {
183
- country: string;
184
- addressType: "INTERNATIONAL";
185
- streetLevelDetails?: Record<string, string> | undefined;
186
- } | {
187
- type: string;
188
- option: string;
189
- path: string;
190
- originalFilename: string;
191
- }[] | {
192
- loading: boolean;
193
- data?: any;
194
- error?: {
195
- message: string;
196
- statusCode: number;
197
- } | null | undefined;
198
- } | {
199
- data: Record<string, string>;
200
- } | {
201
- data?: any;
202
- } | {
203
- numericValue: number;
204
- unit: string;
205
- } | {
206
- numericValue?: number | undefined;
207
- unit?: string | undefined;
208
- } | (string & import("zod").BRAND<"PlainDate">) | {
209
- age: number;
210
- asOfDateRef: string;
211
- } | {
212
- start: string & import("zod").BRAND<"PlainDate">;
213
- end: string & import("zod").BRAND<"PlainDate">;
214
- } | null | undefined> | {
215
- data: Record<string, string | number | boolean | {
216
- type: string;
217
- path: string;
218
- originalFilename: string;
219
- } | {
220
- firstname: string;
221
- surname: string;
222
- middlename?: string | undefined;
223
- } | {
224
- firstname?: string | null | undefined;
225
- surname?: string | null | undefined;
226
- middlename?: string | null | undefined;
227
- } | {
228
- country: string;
229
- addressType: "DOMESTIC";
230
- administrativeArea: string;
231
- streetLevelDetails?: Record<string, string> | undefined;
232
- } | {
233
- country: string;
234
- addressType: "INTERNATIONAL";
235
- streetLevelDetails?: Record<string, string> | undefined;
236
- } | {
237
- type: string;
238
- option: string;
239
- path: string;
240
- originalFilename: string;
241
- }[] | {
242
- loading: boolean;
243
- data?: any;
244
- error?: {
245
- message: string;
246
- statusCode: number;
247
- } | null | undefined;
248
- } | {
249
- data: Record<string, string>;
250
- } | {
251
- data?: any;
252
- } | {
253
- numericValue: number;
254
- unit: string;
255
- } | {
256
- numericValue?: number | undefined;
257
- unit?: string | undefined;
258
- } | (string & import("zod").BRAND<"PlainDate">) | {
259
- age: number;
260
- asOfDateRef: string;
261
- } | {
262
- start: string & import("zod").BRAND<"PlainDate">;
263
- end: string & import("zod").BRAND<"PlainDate">;
264
- } | null | undefined>;
265
- } | null | undefined;
266
- }>;
97
+ export declare function omitHiddenAnnotationFields(actionConfig: ActionConfig, declaration: EventState, annotation: ActionUpdate, context: ValidatorContext): Partial<Record<string, import("./FieldValue").FieldUpdateValue>>;
267
98
  /**
268
99
  * Merges two documents together.
269
100
  *
@@ -2154,12 +2154,10 @@ var ParagraphConfiguration = import_zod17.z.object({
2154
2154
  }).default({});
2155
2155
  var Paragraph = BaseField.extend({
2156
2156
  type: import_zod17.z.literal(FieldType.PARAGRAPH),
2157
- defaultValue: NonEmptyTextValue.optional(),
2158
2157
  configuration: ParagraphConfiguration
2159
2158
  }).describe("A read-only HTML <p> paragraph");
2160
2159
  var PageHeader = BaseField.extend({
2161
- type: import_zod17.z.literal(FieldType.PAGE_HEADER),
2162
- defaultValue: NonEmptyTextValue.optional()
2160
+ type: import_zod17.z.literal(FieldType.PAGE_HEADER)
2163
2161
  }).describe("A read-only header component for form pages");
2164
2162
  var File = BaseField.extend({
2165
2163
  type: import_zod17.z.literal(FieldType.FILE),
@@ -2209,7 +2207,6 @@ var RadioGroup = BaseField.extend({
2209
2207
  }).describe("Grouped radio options");
2210
2208
  var BulletList = BaseField.extend({
2211
2209
  type: import_zod17.z.literal(FieldType.BULLET_LIST),
2212
- defaultValue: TextValue.optional(),
2213
2210
  items: import_zod17.z.array(TranslationConfig).describe("A list of items"),
2214
2211
  configuration: import_zod17.z.object({
2215
2212
  styles: import_zod17.z.object({
@@ -3419,6 +3416,9 @@ ajv.addKeyword({
3419
3416
  return locations.some((location) => location.id === locationIdInput);
3420
3417
  }
3421
3418
  });
3419
+ function mergeWithBaseFormState(values, context) {
3420
+ return { ...context.baseFormState, ...values };
3421
+ }
3422
3422
  function validate(schema, data) {
3423
3423
  const validator = ajv.getSchema(schema.$id) || ajv.compile(schema);
3424
3424
  if ("$form" in data) {
@@ -3461,7 +3461,7 @@ function isOnline() {
3461
3461
  }
3462
3462
  function isConditionMet(conditional, values, context) {
3463
3463
  return validate(conditional, {
3464
- $form: values,
3464
+ $form: mergeWithBaseFormState(values, context),
3465
3465
  $now: (0, import_date_fns.formatISO)(/* @__PURE__ */ new Date(), { representation: "date" }),
3466
3466
  $online: isOnline(),
3467
3467
  $user: context.user,
@@ -3488,7 +3488,7 @@ function isFieldConditionMet(field3, form, conditionalType, context) {
3488
3488
  return true;
3489
3489
  }
3490
3490
  const validConditionals = getConditionalActionsForField(field3, {
3491
- $form: form,
3491
+ $form: mergeWithBaseFormState(form, context),
3492
3492
  $now: (0, import_date_fns.formatISO)(/* @__PURE__ */ new Date(), { representation: "date" }),
3493
3493
  $online: isOnline(),
3494
3494
  $user: context.user,
@@ -3641,7 +3641,7 @@ function runFieldValidations({
3641
3641
  return [];
3642
3642
  }
3643
3643
  const conditionalParameters = {
3644
- $form: form,
3644
+ $form: mergeWithBaseFormState(form, context),
3645
3645
  $now: (0, import_date_fns.formatISO)(/* @__PURE__ */ new Date(), { representation: "date" }),
3646
3646
  /**
3647
3647
  * In real use cases, there can be hundreds of thousands of locations.
@@ -3873,7 +3873,7 @@ function omitHiddenPaginatedFields(formConfig, values, validatorContext, include
3873
3873
  const visibleFields = formConfig.pages.filter((p) => isPageVisible(p, values, validatorContext)).flatMap((p) => p.fields);
3874
3874
  const hiddenFields = formConfig.pages.filter((p) => !isPageVisible(p, values, validatorContext)).flatMap((p) => p.fields);
3875
3875
  const valuesExceptHiddenPage = (0, import_lodash.omitBy)(values, (_2, fieldId) => {
3876
- return hiddenFields.some((f) => f.id === fieldId);
3876
+ return hiddenFields.some((f) => f.id === fieldId) && !visibleFields.some((f) => f.id === fieldId);
3877
3877
  });
3878
3878
  return omitHiddenFields(
3879
3879
  visibleFields,
@@ -3920,11 +3920,10 @@ function getVisibleVerificationPageIds(pages, annotation, context) {
3920
3920
  }
3921
3921
  function omitHiddenAnnotationFields(actionConfig, declaration, annotation, context) {
3922
3922
  const annotationFields = getActionAnnotationFields(actionConfig);
3923
- return omitHiddenFields(
3924
- annotationFields,
3925
- { ...declaration, ...annotation },
3926
- context
3927
- );
3923
+ return omitHiddenFields(annotationFields, annotation, {
3924
+ ...context,
3925
+ baseFormState: declaration
3926
+ });
3928
3927
  }
3929
3928
  function deepMerge(currentDocument, actionDocument) {
3930
3929
  const currentDocumentClone = (0, import_lodash.cloneDeep)(currentDocument);
@@ -1660,12 +1660,10 @@ var ParagraphConfiguration = import_zod17.z.object({
1660
1660
  }).default({});
1661
1661
  var Paragraph = BaseField.extend({
1662
1662
  type: import_zod17.z.literal(FieldType.PARAGRAPH),
1663
- defaultValue: NonEmptyTextValue.optional(),
1664
1663
  configuration: ParagraphConfiguration
1665
1664
  }).describe("A read-only HTML <p> paragraph");
1666
1665
  var PageHeader = BaseField.extend({
1667
- type: import_zod17.z.literal(FieldType.PAGE_HEADER),
1668
- defaultValue: NonEmptyTextValue.optional()
1666
+ type: import_zod17.z.literal(FieldType.PAGE_HEADER)
1669
1667
  }).describe("A read-only header component for form pages");
1670
1668
  var File = BaseField.extend({
1671
1669
  type: import_zod17.z.literal(FieldType.FILE),
@@ -1715,7 +1713,6 @@ var RadioGroup = BaseField.extend({
1715
1713
  }).describe("Grouped radio options");
1716
1714
  var BulletList = BaseField.extend({
1717
1715
  type: import_zod17.z.literal(FieldType.BULLET_LIST),
1718
- defaultValue: TextValue.optional(),
1719
1716
  items: import_zod17.z.array(TranslationConfig).describe("A list of items"),
1720
1717
  configuration: import_zod17.z.object({
1721
1718
  styles: import_zod17.z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.13-rc.6145732",
3
+ "version": "1.9.13-rc.6d693fa",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {
@@ -17,21 +17,21 @@
17
17
  "build:all": "lerna run build --include-dependencies --scope @opencrvs/toolkit && ./build.sh"
18
18
  },
19
19
  "dependencies": {
20
- "uuid": "^9.0.0",
20
+ "@trpc/client": "11.4.3",
21
+ "@trpc/server": "11.4.3",
21
22
  "ajv": "^8.17.1",
22
23
  "ajv-formats": "^3.0.1",
23
24
  "object-hash": "^3.0.0",
24
25
  "superjson": "1.9.0-0",
25
- "@trpc/client": "11.4.3",
26
- "@trpc/server": "11.4.3",
26
+ "uuid": "^9.0.0",
27
27
  "zod-openapi": "^4.2.4"
28
28
  },
29
29
  "devDependencies": {
30
+ "@opencrvs/events": "^1.9.0",
31
+ "@types/object-hash": "^3.0.6",
30
32
  "@types/uuid": "^9.0.3",
31
33
  "esbuild": "^0.24.0",
32
- "typescript": "^5.6.3",
33
- "@opencrvs/events": "^1.9.0",
34
- "@types/object-hash": "^3.0.6"
34
+ "typescript": "^5.6.3"
35
35
  },
36
36
  "moduleNameMapper": {
37
37
  "@opencrvs/commons/events": "@opencrvs/commons/build/dist/common/events/index.js",