@opencrvs/toolkit 2.0.0-rc.052ef00 → 2.0.0-rc.056053a

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.
@@ -75,7 +75,10 @@ var ActionConditional = z.discriminatedUnion("type", [
75
75
  ShowConditional,
76
76
  // Action can be shown to the user in the list but as disabled
77
77
  EnableConditional
78
- ]);
78
+ ]).meta({
79
+ description: "Action conditional configuration",
80
+ id: "ActionConditional"
81
+ });
79
82
  var DisplayOnReviewConditional = z.object({
80
83
  type: z.literal(ConditionalType.DISPLAY_ON_REVIEW),
81
84
  conditional: Conditional
@@ -1077,6 +1080,9 @@ var FlagConfig = z14.object({
1077
1080
  "Indicates if this flag expects an action to be performed to be cleared."
1078
1081
  ),
1079
1082
  label: TranslationConfig.describe("Human readable label of the flag.")
1083
+ }).meta({
1084
+ description: "Flag configuration",
1085
+ id: "FlagConfig"
1080
1086
  });
1081
1087
  var ActionFlagConfig = z14.object({
1082
1088
  id: Flag,
@@ -1084,6 +1090,9 @@ var ActionFlagConfig = z14.object({
1084
1090
  conditional: Conditional.optional().describe(
1085
1091
  "When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally."
1086
1092
  )
1093
+ }).meta({
1094
+ description: "Action flag configuration",
1095
+ id: "ActionFlagConfig"
1087
1096
  });
1088
1097
 
1089
1098
  // ../commons/src/events/EventMetadata.ts
@@ -1077,7 +1077,10 @@ var ActionConditional = z7.discriminatedUnion("type", [
1077
1077
  ShowConditional,
1078
1078
  // Action can be shown to the user in the list but as disabled
1079
1079
  EnableConditional
1080
- ]);
1080
+ ]).meta({
1081
+ description: "Action conditional configuration",
1082
+ id: "ActionConditional"
1083
+ });
1081
1084
  var DisplayOnReviewConditional = z7.object({
1082
1085
  type: z7.literal(ConditionalType.DISPLAY_ON_REVIEW),
1083
1086
  conditional: Conditional
@@ -1736,6 +1739,9 @@ var FlagConfig = z15.object({
1736
1739
  "Indicates if this flag expects an action to be performed to be cleared."
1737
1740
  ),
1738
1741
  label: TranslationConfig.describe("Human readable label of the flag.")
1742
+ }).meta({
1743
+ description: "Flag configuration",
1744
+ id: "FlagConfig"
1739
1745
  });
1740
1746
  var ActionFlagConfig = z15.object({
1741
1747
  id: Flag,
@@ -1743,6 +1749,9 @@ var ActionFlagConfig = z15.object({
1743
1749
  conditional: Conditional.optional().describe(
1744
1750
  "When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally."
1745
1751
  )
1752
+ }).meta({
1753
+ description: "Action flag configuration",
1754
+ id: "ActionFlagConfig"
1746
1755
  });
1747
1756
 
1748
1757
  // ../commons/src/events/EventMetadata.ts
@@ -2879,10 +2888,10 @@ var VerificationPageConfig = FormPageConfig.extend({
2879
2888
  type: z21.literal(PageTypes.enum.VERIFICATION),
2880
2889
  actions: VerificationActionConfig
2881
2890
  });
2882
- var PageConfig = z21.discriminatedUnion("type", [
2883
- FormPageConfig,
2884
- VerificationPageConfig
2885
- ]);
2891
+ var PageConfig = z21.discriminatedUnion("type", [FormPageConfig, VerificationPageConfig]).meta({
2892
+ description: "Page configuration",
2893
+ id: "PageConfig"
2894
+ });
2886
2895
 
2887
2896
  // ../commons/src/events/FormConfig.ts
2888
2897
  var DeclarationFormConfig = z22.object({
@@ -652,7 +652,10 @@ var ActionConditional = z7.discriminatedUnion("type", [
652
652
  ShowConditional,
653
653
  // Action can be shown to the user in the list but as disabled
654
654
  EnableConditional
655
- ]);
655
+ ]).meta({
656
+ description: "Action conditional configuration",
657
+ id: "ActionConditional"
658
+ });
656
659
  var DisplayOnReviewConditional = z7.object({
657
660
  type: z7.literal(ConditionalType.DISPLAY_ON_REVIEW),
658
661
  conditional: Conditional
@@ -1303,6 +1306,9 @@ var FlagConfig = z15.object({
1303
1306
  "Indicates if this flag expects an action to be performed to be cleared."
1304
1307
  ),
1305
1308
  label: TranslationConfig.describe("Human readable label of the flag.")
1309
+ }).meta({
1310
+ description: "Flag configuration",
1311
+ id: "FlagConfig"
1306
1312
  });
1307
1313
  var ActionFlagConfig = z15.object({
1308
1314
  id: Flag,
@@ -1310,6 +1316,9 @@ var ActionFlagConfig = z15.object({
1310
1316
  conditional: Conditional.optional().describe(
1311
1317
  "When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally."
1312
1318
  )
1319
+ }).meta({
1320
+ description: "Action flag configuration",
1321
+ id: "ActionFlagConfig"
1313
1322
  });
1314
1323
 
1315
1324
  // ../commons/src/events/EventMetadata.ts
@@ -2364,10 +2373,10 @@ var VerificationPageConfig = FormPageConfig.extend({
2364
2373
  type: z21.literal(PageTypes.enum.VERIFICATION),
2365
2374
  actions: VerificationActionConfig
2366
2375
  });
2367
- var PageConfig = z21.discriminatedUnion("type", [
2368
- FormPageConfig,
2369
- VerificationPageConfig
2370
- ]);
2376
+ var PageConfig = z21.discriminatedUnion("type", [FormPageConfig, VerificationPageConfig]).meta({
2377
+ description: "Page configuration",
2378
+ id: "PageConfig"
2379
+ });
2371
2380
 
2372
2381
  // ../commons/src/events/FormConfig.ts
2373
2382
  var DeclarationFormConfig = z22.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.0.0-rc.052ef00",
3
+ "version": "2.0.0-rc.056053a",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {