@thanh01.pmt/curriculum-kit 1.0.21 → 1.1.0

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.
@@ -2084,9 +2084,20 @@ var SessionPlanSchema = zod.z.object({
2084
2084
  differentiation: zod.z.object({ bronze: zod.z.string(), silver: zod.z.string(), gold: zod.z.string() })
2085
2085
  });
2086
2086
  var TranslationPolicySchema = zod.z.object({
2087
- policy: zod.z.enum(["after_artifact", "end_of_unit", "at_publish"]).default("at_publish"),
2087
+ policy: zod.z.enum(["after_artifact", "end_of_unit", "at_publish", "native"]).default("native"),
2088
2088
  target_language: zod.z.string().nullable().default(null)
2089
- });
2089
+ }).refine(
2090
+ (data) => {
2091
+ if (data.policy === "native") {
2092
+ return typeof data.target_language === "string" && data.target_language.trim().length > 0;
2093
+ }
2094
+ return true;
2095
+ },
2096
+ {
2097
+ message: "When translation policy is 'native', target_language must be a non-empty string",
2098
+ path: ["target_language"]
2099
+ }
2100
+ );
2090
2101
  var CoverageReportSchema = zod.z.object({
2091
2102
  assigned_node_ids: zod.z.array(zod.z.string()),
2092
2103
  unassigned_node_ids: zod.z.array(zod.z.string()),