@opencrvs/toolkit 1.8.1-rc.c0da6fc → 1.8.1-rc.c39f8f6

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.
@@ -725,6 +725,25 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
725
725
  type: "timePeriod";
726
726
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
727
727
  }>]>>>;
728
+ 'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
729
+ type: z.ZodLiteral<"within">;
730
+ location: z.ZodString;
731
+ }, "strip", z.ZodTypeAny, {
732
+ type: "within";
733
+ location: string;
734
+ }, {
735
+ type: "within";
736
+ location: string;
737
+ }>, z.ZodObject<{
738
+ type: z.ZodLiteral<"exact">;
739
+ term: z.ZodString;
740
+ }, "strip", z.ZodTypeAny, {
741
+ type: "exact";
742
+ term: string;
743
+ }, {
744
+ type: "exact";
745
+ term: string;
746
+ }>]>>>;
728
747
  'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
729
748
  type: z.ZodLiteral<"within">;
730
749
  location: z.ZodString;
@@ -945,6 +964,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
945
964
  type: "timePeriod";
946
965
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
947
966
  } | undefined;
967
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
968
+ type: "exact";
969
+ term: string;
970
+ } | {
971
+ type: "within";
972
+ location: string;
973
+ } | undefined;
948
974
  'legalStatuses.REGISTERED.createdAtLocation'?: {
949
975
  type: "exact";
950
976
  term: string;
@@ -1038,6 +1064,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1038
1064
  type: "timePeriod";
1039
1065
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1040
1066
  } | undefined;
1067
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1068
+ type: "exact";
1069
+ term: string;
1070
+ } | {
1071
+ type: "within";
1072
+ location: string;
1073
+ } | undefined;
1041
1074
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1042
1075
  type: "exact";
1043
1076
  term: string;
@@ -1131,6 +1164,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1131
1164
  type: "timePeriod";
1132
1165
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1133
1166
  } | undefined;
1167
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1168
+ type: "exact";
1169
+ term: string;
1170
+ } | {
1171
+ type: "within";
1172
+ location: string;
1173
+ } | undefined;
1134
1174
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1135
1175
  type: "exact";
1136
1176
  term: string;
@@ -1224,6 +1264,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1224
1264
  type: "timePeriod";
1225
1265
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1226
1266
  } | undefined;
1267
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1268
+ type: "exact";
1269
+ term: string;
1270
+ } | {
1271
+ type: "within";
1272
+ location: string;
1273
+ } | undefined;
1227
1274
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1228
1275
  type: "exact";
1229
1276
  term: string;
@@ -1359,6 +1406,25 @@ export declare const QueryType: z.ZodObject<{
1359
1406
  type: "timePeriod";
1360
1407
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1361
1408
  }>]>>>;
1409
+ 'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1410
+ type: z.ZodLiteral<"within">;
1411
+ location: z.ZodString;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ type: "within";
1414
+ location: string;
1415
+ }, {
1416
+ type: "within";
1417
+ location: string;
1418
+ }>, z.ZodObject<{
1419
+ type: z.ZodLiteral<"exact">;
1420
+ term: z.ZodString;
1421
+ }, "strip", z.ZodTypeAny, {
1422
+ type: "exact";
1423
+ term: string;
1424
+ }, {
1425
+ type: "exact";
1426
+ term: string;
1427
+ }>]>>>;
1362
1428
  'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1363
1429
  type: z.ZodLiteral<"within">;
1364
1430
  location: z.ZodString;
@@ -1579,6 +1645,13 @@ export declare const QueryType: z.ZodObject<{
1579
1645
  type: "timePeriod";
1580
1646
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1581
1647
  } | undefined;
1648
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1649
+ type: "exact";
1650
+ term: string;
1651
+ } | {
1652
+ type: "within";
1653
+ location: string;
1654
+ } | undefined;
1582
1655
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1583
1656
  type: "exact";
1584
1657
  term: string;
@@ -1672,6 +1745,13 @@ export declare const QueryType: z.ZodObject<{
1672
1745
  type: "timePeriod";
1673
1746
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1674
1747
  } | undefined;
1748
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1749
+ type: "exact";
1750
+ term: string;
1751
+ } | {
1752
+ type: "within";
1753
+ location: string;
1754
+ } | undefined;
1675
1755
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1676
1756
  type: "exact";
1677
1757
  term: string;
@@ -1765,6 +1845,13 @@ export declare const QueryType: z.ZodObject<{
1765
1845
  type: "timePeriod";
1766
1846
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1767
1847
  } | undefined;
1848
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1849
+ type: "exact";
1850
+ term: string;
1851
+ } | {
1852
+ type: "within";
1853
+ location: string;
1854
+ } | undefined;
1768
1855
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1769
1856
  type: "exact";
1770
1857
  term: string;
@@ -1858,6 +1945,13 @@ export declare const QueryType: z.ZodObject<{
1858
1945
  type: "timePeriod";
1859
1946
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1860
1947
  } | undefined;
1948
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1949
+ type: "exact";
1950
+ term: string;
1951
+ } | {
1952
+ type: "within";
1953
+ location: string;
1954
+ } | undefined;
1861
1955
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1862
1956
  type: "exact";
1863
1957
  term: string;
@@ -1951,6 +2045,13 @@ export declare const QueryType: z.ZodObject<{
1951
2045
  type: "timePeriod";
1952
2046
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1953
2047
  } | undefined;
2048
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2049
+ type: "exact";
2050
+ term: string;
2051
+ } | {
2052
+ type: "within";
2053
+ location: string;
2054
+ } | undefined;
1954
2055
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1955
2056
  type: "exact";
1956
2057
  term: string;
@@ -2044,6 +2145,13 @@ export declare const QueryType: z.ZodObject<{
2044
2145
  type: "timePeriod";
2045
2146
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2046
2147
  } | undefined;
2148
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2149
+ type: "exact";
2150
+ term: string;
2151
+ } | {
2152
+ type: "within";
2153
+ location: string;
2154
+ } | undefined;
2047
2155
  'legalStatuses.REGISTERED.createdAtLocation'?: {
2048
2156
  type: "exact";
2049
2157
  term: string;
@@ -2140,6 +2248,13 @@ export declare const QueryType: z.ZodObject<{
2140
2248
  type: "timePeriod";
2141
2249
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2142
2250
  } | undefined;
2251
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2252
+ type: "exact";
2253
+ term: string;
2254
+ } | {
2255
+ type: "within";
2256
+ location: string;
2257
+ } | undefined;
2143
2258
  'legalStatuses.REGISTERED.createdAtLocation'?: {
2144
2259
  type: "exact";
2145
2260
  term: string;
@@ -2233,6 +2348,13 @@ export declare const QueryType: z.ZodObject<{
2233
2348
  type: "timePeriod";
2234
2349
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2235
2350
  } | undefined;
2351
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2352
+ type: "exact";
2353
+ term: string;
2354
+ } | {
2355
+ type: "within";
2356
+ location: string;
2357
+ } | undefined;
2236
2358
  'legalStatuses.REGISTERED.createdAtLocation'?: {
2237
2359
  type: "exact";
2238
2360
  term: string;
@@ -7037,6 +7037,25 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
7037
7037
  type: "timePeriod";
7038
7038
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
7039
7039
  }>]>>>;
7040
+ 'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
7041
+ type: z.ZodLiteral<"within">;
7042
+ location: z.ZodString;
7043
+ }, "strip", z.ZodTypeAny, {
7044
+ type: "within";
7045
+ location: string;
7046
+ }, {
7047
+ type: "within";
7048
+ location: string;
7049
+ }>, z.ZodObject<{
7050
+ type: z.ZodLiteral<"exact">;
7051
+ term: z.ZodString;
7052
+ }, "strip", z.ZodTypeAny, {
7053
+ type: "exact";
7054
+ term: string;
7055
+ }, {
7056
+ type: "exact";
7057
+ term: string;
7058
+ }>]>>>;
7040
7059
  'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
7041
7060
  type: z.ZodLiteral<"within">;
7042
7061
  location: z.ZodString;
@@ -7257,6 +7276,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
7257
7276
  type: "timePeriod";
7258
7277
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
7259
7278
  } | undefined;
7279
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
7280
+ type: "exact";
7281
+ term: string;
7282
+ } | {
7283
+ type: "within";
7284
+ location: string;
7285
+ } | undefined;
7260
7286
  'legalStatuses.REGISTERED.createdAtLocation'?: {
7261
7287
  type: "exact";
7262
7288
  term: string;
@@ -7350,6 +7376,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
7350
7376
  type: "timePeriod";
7351
7377
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
7352
7378
  } | undefined;
7379
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
7380
+ type: "exact";
7381
+ term: string;
7382
+ } | {
7383
+ type: "within";
7384
+ location: string;
7385
+ } | undefined;
7353
7386
  'legalStatuses.REGISTERED.createdAtLocation'?: {
7354
7387
  type: "exact";
7355
7388
  term: string;
@@ -7443,6 +7476,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
7443
7476
  type: "timePeriod";
7444
7477
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
7445
7478
  } | undefined;
7479
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
7480
+ type: "exact";
7481
+ term: string;
7482
+ } | {
7483
+ type: "within";
7484
+ location: string;
7485
+ } | undefined;
7446
7486
  'legalStatuses.REGISTERED.createdAtLocation'?: {
7447
7487
  type: "exact";
7448
7488
  term: string;
@@ -7536,6 +7576,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
7536
7576
  type: "timePeriod";
7537
7577
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
7538
7578
  } | undefined;
7579
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
7580
+ type: "exact";
7581
+ term: string;
7582
+ } | {
7583
+ type: "within";
7584
+ location: string;
7585
+ } | undefined;
7539
7586
  'legalStatuses.REGISTERED.createdAtLocation'?: {
7540
7587
  type: "exact";
7541
7588
  term: string;
@@ -7629,6 +7676,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
7629
7676
  type: "timePeriod";
7630
7677
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
7631
7678
  } | undefined;
7679
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
7680
+ type: "exact";
7681
+ term: string;
7682
+ } | {
7683
+ type: "within";
7684
+ location: string;
7685
+ } | undefined;
7632
7686
  'legalStatuses.REGISTERED.createdAtLocation'?: {
7633
7687
  type: "exact";
7634
7688
  term: string;
@@ -7722,6 +7776,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
7722
7776
  type: "timePeriod";
7723
7777
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
7724
7778
  } | undefined;
7779
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
7780
+ type: "exact";
7781
+ term: string;
7782
+ } | {
7783
+ type: "within";
7784
+ location: string;
7785
+ } | undefined;
7725
7786
  'legalStatuses.REGISTERED.createdAtLocation'?: {
7726
7787
  type: "exact";
7727
7788
  term: string;
@@ -7818,6 +7879,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
7818
7879
  type: "timePeriod";
7819
7880
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
7820
7881
  } | undefined;
7882
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
7883
+ type: "exact";
7884
+ term: string;
7885
+ } | {
7886
+ type: "within";
7887
+ location: string;
7888
+ } | undefined;
7821
7889
  'legalStatuses.REGISTERED.createdAtLocation'?: {
7822
7890
  type: "exact";
7823
7891
  term: string;
@@ -7911,6 +7979,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
7911
7979
  type: "timePeriod";
7912
7980
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
7913
7981
  } | undefined;
7982
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
7983
+ type: "exact";
7984
+ term: string;
7985
+ } | {
7986
+ type: "within";
7987
+ location: string;
7988
+ } | undefined;
7914
7989
  'legalStatuses.REGISTERED.createdAtLocation'?: {
7915
7990
  type: "exact";
7916
7991
  term: string;
@@ -8012,6 +8087,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
8012
8087
  type: "timePeriod";
8013
8088
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
8014
8089
  } | undefined;
8090
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
8091
+ type: "exact";
8092
+ term: string;
8093
+ } | {
8094
+ type: "within";
8095
+ location: string;
8096
+ } | undefined;
8015
8097
  'legalStatuses.REGISTERED.createdAtLocation'?: {
8016
8098
  type: "exact";
8017
8099
  term: string;
@@ -8105,6 +8187,13 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
8105
8187
  type: "timePeriod";
8106
8188
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
8107
8189
  } | undefined;
8190
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
8191
+ type: "exact";
8192
+ term: string;
8193
+ } | {
8194
+ type: "within";
8195
+ location: string;
8196
+ } | undefined;
8108
8197
  'legalStatuses.REGISTERED.createdAtLocation'?: {
8109
8198
  type: "exact";
8110
8199
  term: string;
@@ -8657,7 +8657,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
8657
8657
  title: import("./TranslationConfig").TranslationConfig;
8658
8658
  fields: ({
8659
8659
  config: {
8660
- type: "exact" | "fuzzy" | "range";
8660
+ type: "exact" | "fuzzy" | "range" | "within";
8661
8661
  };
8662
8662
  fieldId: string;
8663
8663
  fieldType: "field";
@@ -8684,7 +8684,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
8684
8684
  excludeInSearchQuery?: boolean | undefined;
8685
8685
  } | {
8686
8686
  config: {
8687
- type: "exact" | "fuzzy" | "range";
8687
+ type: "exact" | "fuzzy" | "range" | "within";
8688
8688
  };
8689
8689
  fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
8690
8690
  fieldType: "event";
@@ -33,6 +33,14 @@ declare function eventFn(fieldId: EventFieldId): {
33
33
  type: "fuzzy";
34
34
  };
35
35
  };
36
+ within: () => {
37
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
38
+ fieldType: "event";
39
+ } & {
40
+ config: {
41
+ type: "within";
42
+ };
43
+ };
36
44
  };
37
45
  declare const event: typeof eventFn & {
38
46
  /**
@@ -56,6 +56,20 @@ export declare function field(fieldId: string, options?: {
56
56
  type: "fuzzy";
57
57
  };
58
58
  };
59
+ within: () => {
60
+ options?: SelectOption[];
61
+ excludeInSearchQuery?: boolean;
62
+ alternateFieldIds?: string[];
63
+ conditionals?: FieldConditional[];
64
+ validations?: ValidationConfig[];
65
+ searchCriteriaLabelPrefix?: TranslationConfig;
66
+ fieldId: string;
67
+ fieldType: "field";
68
+ } & {
69
+ config: {
70
+ type: "within";
71
+ };
72
+ };
59
73
  $$field: string;
60
74
  isAfter: () => {
61
75
  days: (days: number) => {
@@ -15520,7 +15520,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
15520
15520
  title: import("./TranslationConfig").TranslationConfig;
15521
15521
  fields: ({
15522
15522
  config: {
15523
- type: "exact" | "fuzzy" | "range";
15523
+ type: "exact" | "fuzzy" | "range" | "within";
15524
15524
  };
15525
15525
  fieldId: string;
15526
15526
  fieldType: "field";
@@ -15547,7 +15547,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
15547
15547
  excludeInSearchQuery?: boolean | undefined;
15548
15548
  } | {
15549
15549
  config: {
15550
- type: "exact" | "fuzzy" | "range";
15550
+ type: "exact" | "fuzzy" | "range" | "within";
15551
15551
  };
15552
15552
  fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
15553
15553
  fieldType: "event";
@@ -139,6 +139,7 @@ __export(events_exports, {
139
139
  PageConfig: () => PageConfig,
140
140
  PageTypes: () => PageTypes,
141
141
  PrintCertificateActionInput: () => PrintCertificateActionInput,
142
+ PrintContent: () => PrintContent,
142
143
  QueryExpression: () => QueryExpression,
143
144
  QueryInput: () => QueryInput,
144
145
  QueryType: () => QueryType,
@@ -606,8 +607,8 @@ var UrbanAddressUpdateValue = AdminStructure.extend({
606
607
  zipCode: import_zod5.z.string().nullish()
607
608
  });
608
609
  var NameFieldValue = import_zod5.z.object({
609
- firstname: import_zod5.z.string(),
610
- surname: import_zod5.z.string(),
610
+ firstname: import_zod5.z.string().min(1),
611
+ surname: import_zod5.z.string().min(1),
611
612
  middlename: import_zod5.z.string().optional()
612
613
  });
613
614
  var NameFieldUpdateValue = import_zod5.z.object({
@@ -1340,7 +1341,7 @@ var SummaryConfig = import_zod14.z.object({
1340
1341
 
1341
1342
  // ../commons/src/events/AdvancedSearchConfig.ts
1342
1343
  var import_zod15 = require("zod");
1343
- var MatchType = import_zod15.z.enum(["fuzzy", "exact", "range"]);
1344
+ var MatchType = import_zod15.z.enum(["fuzzy", "exact", "range", "within"]);
1344
1345
  var BaseField3 = import_zod15.z.object({
1345
1346
  config: import_zod15.z.object({
1346
1347
  type: MatchType.describe("Determines the type of field")
@@ -1902,11 +1903,15 @@ var ActionBase = import_zod19.z.object({
1902
1903
  originalActionId: UUID.optional().nullable().describe(
1903
1904
  "Reference to the original action that was asynchronously rejected or accepted by 3rd party integration."
1904
1905
  )
1906
+ // 'content' field reserved for additional data
1907
+ // Each action can define its own content specifc to the action
1908
+ // See PrintCertificateAction
1905
1909
  });
1906
1910
  var AssignedAction = ActionBase.merge(
1907
1911
  import_zod19.z.object({
1908
1912
  type: import_zod19.z.literal(ActionType.ASSIGN),
1909
1913
  assignedTo: import_zod19.z.string()
1914
+ // TODO move into 'content' property
1910
1915
  })
1911
1916
  );
1912
1917
  var UnassignedAction = ActionBase.merge(
@@ -1918,6 +1923,7 @@ var RegisterAction = ActionBase.merge(
1918
1923
  import_zod19.z.object({
1919
1924
  type: import_zod19.z.literal(ActionType.REGISTER),
1920
1925
  registrationNumber: import_zod19.z.string().optional()
1926
+ // TODO move into 'content' property
1921
1927
  })
1922
1928
  );
1923
1929
  var DeclareAction = ActionBase.merge(
@@ -1938,6 +1944,7 @@ var RejectAction = ActionBase.merge(
1938
1944
  import_zod19.z.object({
1939
1945
  type: import_zod19.z.literal(ActionType.REJECT),
1940
1946
  reason: RejectionReason
1947
+ // TODO move into 'content' property
1941
1948
  })
1942
1949
  );
1943
1950
  var MarkAsDuplicateAction = ActionBase.merge(
@@ -1949,6 +1956,7 @@ var ArchiveAction = ActionBase.merge(
1949
1956
  import_zod19.z.object({
1950
1957
  type: import_zod19.z.literal(ActionType.ARCHIVE),
1951
1958
  reason: RejectionReason
1959
+ // TODO move into 'content' property
1952
1960
  })
1953
1961
  );
1954
1962
  var CreatedAction = ActionBase.merge(
@@ -1961,9 +1969,13 @@ var NotifiedAction = ActionBase.merge(
1961
1969
  type: import_zod19.z.literal(ActionType.NOTIFY)
1962
1970
  })
1963
1971
  );
1972
+ var PrintContent = import_zod19.z.object({
1973
+ templateId: import_zod19.z.string().optional()
1974
+ });
1964
1975
  var PrintCertificateAction = ActionBase.merge(
1965
1976
  import_zod19.z.object({
1966
- type: import_zod19.z.literal(ActionType.PRINT_CERTIFICATE)
1977
+ type: import_zod19.z.literal(ActionType.PRINT_CERTIFICATE),
1978
+ content: PrintContent.optional().nullable()
1967
1979
  })
1968
1980
  );
1969
1981
  var RequestedCorrectionAction = ActionBase.merge(
@@ -1975,12 +1987,14 @@ var ApprovedCorrectionAction = ActionBase.merge(
1975
1987
  import_zod19.z.object({
1976
1988
  type: import_zod19.z.literal(ActionType.APPROVE_CORRECTION),
1977
1989
  requestId: import_zod19.z.string()
1990
+ // TODO move into 'content' property
1978
1991
  })
1979
1992
  );
1980
1993
  var RejectedCorrectionAction = ActionBase.merge(
1981
1994
  import_zod19.z.object({
1982
1995
  type: import_zod19.z.literal(ActionType.REJECT_CORRECTION),
1983
1996
  requestId: import_zod19.z.string(),
1997
+ // TODO move into 'content' property
1984
1998
  reason: RejectionReason
1985
1999
  })
1986
2000
  );
@@ -3175,6 +3189,19 @@ function createSearchConfig(baseField) {
3175
3189
  fuzzy: () => ({
3176
3190
  ...baseField,
3177
3191
  config: { type: "fuzzy" }
3192
+ }),
3193
+ /**
3194
+ * Creates a configuration for matching locations and the child locations
3195
+ * @returns An object containing the field ID and a configuration object with a type of 'within'.
3196
+ * @example field('createdAtLocation').within()
3197
+ * // {
3198
+ * // ...
3199
+ * // config: { type: 'within' }
3200
+ * // }
3201
+ */
3202
+ within: () => ({
3203
+ ...baseField,
3204
+ config: { type: "within" }
3178
3205
  })
3179
3206
  };
3180
3207
  }
@@ -3524,6 +3551,9 @@ var QueryExpression = import_zod25.z.object({
3524
3551
  createdAt: import_zod25.z.optional(DateCondition),
3525
3552
  updatedAt: import_zod25.z.optional(DateCondition),
3526
3553
  "legalStatuses.REGISTERED.acceptedAt": import_zod25.z.optional(DateCondition),
3554
+ "legalStatuses.DECLARED.createdAtLocation": import_zod25.z.optional(
3555
+ import_zod25.z.union([Within, Exact])
3556
+ ),
3527
3557
  "legalStatuses.REGISTERED.createdAtLocation": import_zod25.z.optional(
3528
3558
  import_zod25.z.union([Within, Exact])
3529
3559
  ),
@@ -3877,7 +3907,8 @@ var DeclareActionInput = BaseActionInput.merge(
3877
3907
  );
3878
3908
  var PrintCertificateActionInput = BaseActionInput.merge(
3879
3909
  import_zod29.z.object({
3880
- type: import_zod29.z.literal(ActionType.PRINT_CERTIFICATE).default(ActionType.PRINT_CERTIFICATE)
3910
+ type: import_zod29.z.literal(ActionType.PRINT_CERTIFICATE).default(ActionType.PRINT_CERTIFICATE),
3911
+ content: PrintContent.optional()
3881
3912
  })
3882
3913
  );
3883
3914
  var RejectDeclarationActionInput = BaseActionInput.merge(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.8.1-rc.c0da6fc",
3
+ "version": "1.8.1-rc.c39f8f6",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {