@thanh01.pmt/curriculum-kit 1.0.22 → 1.2.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.
@@ -2075,9 +2075,20 @@ var SessionPlanSchema = z.object({
2075
2075
  differentiation: z.object({ bronze: z.string(), silver: z.string(), gold: z.string() })
2076
2076
  });
2077
2077
  var TranslationPolicySchema = z.object({
2078
- policy: z.enum(["after_artifact", "end_of_unit", "at_publish"]).default("at_publish"),
2078
+ policy: z.enum(["after_artifact", "end_of_unit", "at_publish", "native"]).default("native"),
2079
2079
  target_language: z.string().nullable().default(null)
2080
- });
2080
+ }).refine(
2081
+ (data) => {
2082
+ if (data.policy === "native") {
2083
+ return typeof data.target_language === "string" && data.target_language.trim().length > 0;
2084
+ }
2085
+ return true;
2086
+ },
2087
+ {
2088
+ message: "When translation policy is 'native', target_language must be a non-empty string",
2089
+ path: ["target_language"]
2090
+ }
2091
+ );
2081
2092
  var CoverageReportSchema = z.object({
2082
2093
  assigned_node_ids: z.array(z.string()),
2083
2094
  unassigned_node_ids: z.array(z.string()),