@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.
@@ -1279,9 +1279,20 @@ var SessionPlanSchema = zod.z.object({
1279
1279
  differentiation: zod.z.object({ bronze: zod.z.string(), silver: zod.z.string(), gold: zod.z.string() })
1280
1280
  });
1281
1281
  var TranslationPolicySchema = zod.z.object({
1282
- policy: zod.z.enum(["after_artifact", "end_of_unit", "at_publish"]).default("at_publish"),
1282
+ policy: zod.z.enum(["after_artifact", "end_of_unit", "at_publish", "native"]).default("native"),
1283
1283
  target_language: zod.z.string().nullable().default(null)
1284
- });
1284
+ }).refine(
1285
+ (data) => {
1286
+ if (data.policy === "native") {
1287
+ return typeof data.target_language === "string" && data.target_language.trim().length > 0;
1288
+ }
1289
+ return true;
1290
+ },
1291
+ {
1292
+ message: "When translation policy is 'native', target_language must be a non-empty string",
1293
+ path: ["target_language"]
1294
+ }
1295
+ );
1285
1296
  var CoverageReportSchema = zod.z.object({
1286
1297
  assigned_node_ids: zod.z.array(zod.z.string()),
1287
1298
  unassigned_node_ids: zod.z.array(zod.z.string()),