@oaknational/oak-curriculum-schema 2.11.0-beta.1 → 2.12.0-beta.1

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.
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("zod"),s=require("zod-to-camel-case"),a=require("../components/base/base.schema.cjs"),n=require("../components/base/safe-string.schema.cjs"),l=require("../components/keyLearningPoints/keyLearningPoints.schema.cjs"),t=require("../components/keywords/keywords.schema.cjs"),i=require("../components/equipmentAndResources/equipmentAndResources.schema.cjs"),r=require("../components/lessonOutline/lessonOutline.schema.cjs"),o=require("../components/mediaClips/mediaClips.schema.cjs"),_=require("../components/additionalFiles/additionalFiles.schema.cjs"),c=require("../components/features/features.schema.cjs"),u=require("../components/misconceptionsAndCommonMistakes/misconceptionsAndCommonMistakes.schema.cjs"),d=require("../components/teacherTips/teacherTips.schema.cjs");function m(e){return e&&e.__esModule?e:{default:e}}var b=m(s);const p=a.timestampsSchema.extend({lesson_id:e.z.number(),lesson_uid:e.z.string(),slug:e.z.string(),title:n.safeString,description:n.safeString,pupil_lesson_outcome:n.safeString,phonics_outcome:n.safeString.nullable(),key_learning_points:e.z.array(l.keyLearningPointsSchema).nullable(),equipment_and_resources:e.z.array(i.equipmentAndResourcesSchema).nullable(),content_guidance_details:e.z.array(e.z.object({details:e.z.string()})).nullable(),content_guidance:e.z.array(e.z.number()).nullable(),copyright_content:e.z.array(e.z.object({copyright_info:e.z.string()})).nullable(),supervision_level:e.z.string().nullable(),thirdpartycontent_list:e.z.array(e.z.number()).nullable(),misconceptions_and_common_mistakes:e.z.array(u.misconceptionsAndCommonMistakesSchema).nullable(),keywords:e.z.array(t.keywordsSchema).nullable(),video_id:e.z.number().nullable(),sign_language_video_id:e.z.number().nullable(),quiz_id_starter:e.z.number().nullable(),quiz_id_exit:e.z.number().nullable(),teacher_tips:e.z.array(d.teacherTipsSchema).nullable(),asset_id_slidedeck:e.z.number().nullable(),asset_id_worksheet:e.z.number().nullable(),asset_id_worksheet_answers:e.z.number().nullable(),asset_id_supplementary_asset:e.z.number().nullable(),asset_id_lesson_guide:e.z.number().nullable(),expiration_date:e.z.string().nullable(),lesson_outline:e.z.array(r.lessonOutlineSchema).nullish(),media_clips:o.mediaClipsRecordSchema.nullish(),deprecated_fields:e.z.record(e.z.string(),e.z.unknown()).nullable(),_state:a._stateSchema,_cohort:a._cohortSchema,_deleted:e.z.boolean(),_release_id:e.z.number().nullable(),teacher_details:e.z.array(e.z.object({})).nullable(),attribution:e.z.array(e.z.object({})).nullable(),tags:e.z.array(e.z.number()).nullable(),tpc_media_list:e.z.array(e.z.number()).nullable(),tpc_works_list:e.z.array(e.z.number()).nullable(),tpc_downloadablefiles_list:e.z.array(e.z.number()).nullable(),tpc_quizimages_list:e.z.array(e.z.number()).nullable(),features:c.featuresSchema.nullable(),new_vocabulary_list:e.z.array(e.z.object({})).nullable(),revisited_vocabulary_list:e.z.array(e.z.object({})).nullable(),downloadable_files:e.z.array(_.additionalFileObjectSchema).nullable(),lesson_release_date:e.z.string().nullish()}),z=p.pick({lesson_id:!0,lesson_uid:!0,phonics_outcome:!0,description:!0,key_learning_points:!0,equipment_and_resources:!0,content_guidance_details:!0,content_guidance:!0,copyright_content:!0,supervision_level:!0,thirdpartycontent_list:!0,misconceptions_and_common_mistakes:!0,keywords:!0,video_id:!0,sign_language_video_id:!0,teacher_tips:!0,quiz_id_starter:!0,quiz_id_exit:!0,asset_id_slidedeck:!0,asset_id_worksheet:!0,asset_id_worksheet_answers:!0,asset_id_supplementary_asset:!0,asset_id_lesson_guide:!0,expiration_date:!0,lesson_outline:!0,media_clips:!0,deprecated_fields:!0,_cohort:!0,_deleted:!0,_release_id:!0,teacher_details:!0,attribution:!0,tags:!0,tpc_media_list:!0,tpc_works_list:!0,tpc_downloadablefiles_list:!0,tpc_quizimages_list:!0,features:!0,new_vocabulary_list:!0,revisited_vocabulary_list:!0,downloadable_files:!0,lesson_release_date:!0}).extend({_state:a.newState,pupil_lesson_outcome:e.z.string().nullable()}),h=p.extend({_state:a.publishedState}),y=b.default(p),g=b.default(z),k=b.default(h),S=p,q=p;exports.lessonData=S,exports.lessonDataSchema=q,exports.lessonNewSchema=z,exports.lessonNewSchemaCamel=g,exports.lessonPublishedSchema=h,exports.lessonPublishedSchemaCamel=k,exports.lessonSchema=p,exports.lessonSchemaCamel=y;
1
+ "use strict";var e=require("zod"),s=require("zod-to-camel-case"),a=require("../components/base/base.schema.cjs"),n=require("../components/base/safe-string.schema.cjs"),l=require("../components/keyLearningPoints/keyLearningPoints.schema.cjs"),t=require("../components/keywords/keywords.schema.cjs"),i=require("../components/equipmentAndResources/equipmentAndResources.schema.cjs"),r=require("../components/lessonOutline/lessonOutline.schema.cjs"),o=require("../components/mediaClips/mediaClips.schema.cjs"),_=require("../components/additionalFiles/additionalFiles.schema.cjs"),c=require("../components/features/features.schema.cjs"),u=require("../components/misconceptionsAndCommonMistakes/misconceptionsAndCommonMistakes.schema.cjs"),d=require("../components/teacherTips/teacherTips.schema.cjs");function m(e){return e&&e.__esModule?e:{default:e}}var b=m(s);const p=a.timestampsSchema.extend({lesson_id:e.z.number(),lesson_uid:e.z.string(),slug:e.z.string(),title:n.safeString,description:n.safeString,pupil_lesson_outcome:n.safeString,phonics_outcome:n.safeString.nullable(),key_learning_points:e.z.array(l.keyLearningPointsSchema).nullable(),equipment_and_resources:e.z.array(i.equipmentAndResourcesSchema).nullable(),content_guidance_details:e.z.array(e.z.object({details:e.z.string()})).nullable(),content_guidance:e.z.array(e.z.number()).nullable(),copyright_content:e.z.array(e.z.object({copyright_info:e.z.string()})).nullable(),supervision_level:e.z.string().nullable(),thirdpartycontent_list:e.z.array(e.z.number()).nullable(),misconceptions_and_common_mistakes:e.z.array(u.misconceptionsAndCommonMistakesSchema).nullable(),keywords:e.z.array(t.keywordsSchema).nullable(),video_id:e.z.number().nullable(),sign_language_video_id:e.z.number().nullable(),quiz_id_starter:e.z.number().nullable(),quiz_id_exit:e.z.number().nullable(),teacher_tips:e.z.array(d.teacherTipsSchema).nullable(),asset_id_slidedeck:e.z.number().nullable(),asset_id_worksheet:e.z.number().nullable(),asset_id_worksheet_answers:e.z.number().nullable(),asset_id_supplementary_asset:e.z.number().nullable(),asset_id_lesson_guide:e.z.number().nullable(),expiration_date:e.z.string().nullable(),lesson_outline:e.z.array(r.lessonOutlineSchema).nullish(),media_clips:o.mediaClipsRecordSchema.nullish(),deprecated_fields:e.z.record(e.z.string(),e.z.unknown()).nullable(),_state:a._stateSchema,_cohort:a._cohortSchema,_deleted:e.z.boolean(),_release_id:e.z.number().nullable(),teacher_details:e.z.array(e.z.object({})).nullable(),attribution:e.z.array(e.z.object({})).nullable(),tags:e.z.array(e.z.number()).nullable(),tpc_media_list:e.z.array(e.z.number()).nullable(),tpc_works_list:e.z.array(e.z.number()).nullable(),tpc_downloadablefiles_list:e.z.array(e.z.number()).nullable(),tpc_quizimages_list:e.z.array(e.z.number()).nullable(),features:c.featuresSchema.nullable(),new_vocabulary_list:e.z.array(e.z.object({})).nullable(),revisited_vocabulary_list:e.z.array(e.z.object({})).nullable(),downloadable_files:e.z.array(_.additionalFileObjectSchema).nullable(),lesson_release_date:e.z.string().nullish()}),z=p.pick({lesson_id:!0,lesson_uid:!0,phonics_outcome:!0,title:!0,key_learning_points:!0,equipment_and_resources:!0,content_guidance_details:!0,content_guidance:!0,copyright_content:!0,supervision_level:!0,thirdpartycontent_list:!0,misconceptions_and_common_mistakes:!0,keywords:!0,video_id:!0,sign_language_video_id:!0,teacher_tips:!0,quiz_id_starter:!0,quiz_id_exit:!0,asset_id_slidedeck:!0,asset_id_worksheet:!0,asset_id_worksheet_answers:!0,asset_id_supplementary_asset:!0,asset_id_lesson_guide:!0,expiration_date:!0,lesson_outline:!0,media_clips:!0,deprecated_fields:!0,_cohort:!0,_deleted:!0,_release_id:!0,teacher_details:!0,attribution:!0,tags:!0,tpc_media_list:!0,tpc_works_list:!0,tpc_downloadablefiles_list:!0,tpc_quizimages_list:!0,features:!0,new_vocabulary_list:!0,revisited_vocabulary_list:!0,downloadable_files:!0,lesson_release_date:!0}).extend({_state:a.newState,pupil_lesson_outcome:n.safeString.nullish(),description:n.safeString.nullish()}),h=p.extend({_state:a.publishedState}),y=b.default(p),g=b.default(z),S=b.default(h),k=p,f=p;exports.lessonData=k,exports.lessonDataSchema=f,exports.lessonNewSchema=z,exports.lessonNewSchemaCamel=g,exports.lessonPublishedSchema=h,exports.lessonPublishedSchemaCamel=S,exports.lessonSchema=p,exports.lessonSchemaCamel=y;
2
2
  //# sourceMappingURL=lesson.schema.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"lesson.schema.cjs","sources":["../../../../../src/schema/public/lesson/lesson.schema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport zodToCamelCase from \"zod-to-camel-case\";\n\nimport {\n _stateSchema,\n _cohortSchema,\n timestampsSchema,\n newState,\n publishedState,\n} from \"@/schema/public/components/base/base.schema\";\nimport { safeString } from \"@/schema/public/components/base/safe-string.schema\";\nimport { keyLearningPointsSchema } from \"@/schema/public/components/keyLearningPoints/keyLearningPoints.schema\";\nimport { keywordsSchema } from \"@/schema/public/components/keywords/keywords.schema\";\nimport { equipmentAndResourcesSchema } from \"@/schema/public/components/equipmentAndResources/equipmentAndResources.schema\";\nimport { lessonOutlineSchema } from \"@/schema/public/components/lessonOutline/lessonOutline.schema\";\nimport { mediaClipsRecordSchema } from \"@/schema/public/components/mediaClips/mediaClips.schema\";\nimport { additionalFileObjectSchema } from \"@/schema/public/components/additionalFiles/additionalFiles.schema\";\nimport { featuresSchema } from \"@/schema/public/components/features/features.schema\";\nimport { misconceptionsAndCommonMistakesSchema } from \"@/schema/public/components/misconceptionsAndCommonMistakes/misconceptionsAndCommonMistakes.schema\";\nimport { teacherTipsSchema } from \"@/schema/public/components/teacherTips/teacherTips.schema\";\n\nexport const lessonSchema = timestampsSchema.extend({\n lesson_id: z.number(),\n lesson_uid: z.string(),\n slug: z.string(),\n title: safeString,\n description: safeString,\n pupil_lesson_outcome: safeString,\n phonics_outcome: safeString.nullable(),\n key_learning_points: z.array(keyLearningPointsSchema).nullable(),\n equipment_and_resources: z.array(equipmentAndResourcesSchema).nullable(),\n content_guidance_details: z\n .array(z.object({ details: z.string() }))\n .nullable(),\n content_guidance: z.array(z.number()).nullable(),\n copyright_content: z\n .array(\n z.object({\n copyright_info: z.string(),\n }),\n )\n .nullable(),\n supervision_level: z.string().nullable(),\n thirdpartycontent_list: z.array(z.number()).nullable(),\n misconceptions_and_common_mistakes: z\n .array(misconceptionsAndCommonMistakesSchema)\n .nullable(),\n keywords: z.array(keywordsSchema).nullable(),\n video_id: z.number().nullable(),\n sign_language_video_id: z.number().nullable(),\n quiz_id_starter: z.number().nullable(),\n quiz_id_exit: z.number().nullable(),\n teacher_tips: z.array(teacherTipsSchema).nullable(),\n asset_id_slidedeck: z.number().nullable(),\n asset_id_worksheet: z.number().nullable(),\n asset_id_worksheet_answers: z.number().nullable(),\n asset_id_supplementary_asset: z.number().nullable(),\n asset_id_lesson_guide: z.number().nullable(),\n expiration_date: z.string().nullable(),\n lesson_outline: z.array(lessonOutlineSchema).nullish(),\n media_clips: mediaClipsRecordSchema.nullish(),\n deprecated_fields: z.record(z.string(), z.unknown()).nullable(),\n _state: _stateSchema,\n _cohort: _cohortSchema,\n _deleted: z.boolean(),\n _release_id: z.number().nullable(),\n teacher_details: z.array(z.object({})).nullable(),\n attribution: z.array(z.object({})).nullable(),\n tags: z.array(z.number()).nullable(),\n tpc_media_list: z.array(z.number()).nullable(),\n tpc_works_list: z.array(z.number()).nullable(),\n tpc_downloadablefiles_list: z.array(z.number()).nullable(),\n tpc_quizimages_list: z.array(z.number()).nullable(),\n features: featuresSchema.nullable(),\n new_vocabulary_list: z.array(z.object({})).nullable(),\n revisited_vocabulary_list: z.array(z.object({})).nullable(),\n downloadable_files: z.array(additionalFileObjectSchema).nullable(),\n lesson_release_date: z.string().nullish(),\n});\nexport type Lesson = z.infer<typeof lessonSchema>;\n\nexport const lessonNewSchema = lessonSchema\n .pick({\n lesson_id: true,\n lesson_uid: true,\n phonics_outcome: true,\n description: true,\n key_learning_points: true,\n equipment_and_resources: true,\n content_guidance_details: true,\n content_guidance: true,\n copyright_content: true,\n supervision_level: true,\n thirdpartycontent_list: true,\n misconceptions_and_common_mistakes: true,\n keywords: true,\n video_id: true,\n sign_language_video_id: true,\n teacher_tips: true,\n quiz_id_starter: true,\n quiz_id_exit: true,\n asset_id_slidedeck: true,\n asset_id_worksheet: true,\n asset_id_worksheet_answers: true,\n asset_id_supplementary_asset: true,\n asset_id_lesson_guide: true,\n expiration_date: true,\n lesson_outline: true,\n media_clips: true,\n deprecated_fields: true,\n _cohort: true,\n _deleted: true,\n _release_id: true,\n teacher_details: true,\n attribution: true,\n tags: true,\n tpc_media_list: true,\n tpc_works_list: true,\n tpc_downloadablefiles_list: true,\n tpc_quizimages_list: true,\n features: true,\n new_vocabulary_list: true,\n revisited_vocabulary_list: true,\n downloadable_files: true,\n lesson_release_date: true,\n })\n .extend({\n _state: newState,\n pupil_lesson_outcome: z.string().nullable(),\n });\n\nexport const lessonPublishedSchema = lessonSchema.extend({\n _state: publishedState,\n});\n\nexport type LessonNew = z.infer<typeof lessonNewSchema>;\nexport type LessonPublished = z.infer<typeof lessonPublishedSchema>;\n\nexport const lessonSchemaCamel = zodToCamelCase(lessonSchema);\nexport type LessonCamel = z.infer<typeof lessonSchemaCamel>;\n\nexport const lessonNewSchemaCamel = zodToCamelCase(lessonNewSchema);\nexport type LessonNewCamel = z.infer<typeof lessonNewSchemaCamel>;\n\nexport const lessonPublishedSchemaCamel = zodToCamelCase(lessonPublishedSchema);\nexport type LessonPublishedCamel = z.infer<typeof lessonPublishedSchemaCamel>;\n\n// Backwards compatibility exports\n/**\n * @deprecated Use lessonSchema instead.\n */\nexport const lessonData = lessonSchema;\nexport const lessonDataSchema = lessonSchema;\nexport type LessonData = Lesson;\n"],"names":["lessonSchema","timestampsSchema","extend","lesson_id","z","number","lesson_uid","string","slug","title","safeString","description","pupil_lesson_outcome","phonics_outcome","nullable","key_learning_points","array","keyLearningPointsSchema","equipment_and_resources","equipmentAndResourcesSchema","content_guidance_details","object","details","content_guidance","copyright_content","copyright_info","supervision_level","thirdpartycontent_list","misconceptions_and_common_mistakes","misconceptionsAndCommonMistakesSchema","keywords","keywordsSchema","video_id","sign_language_video_id","quiz_id_starter","quiz_id_exit","teacher_tips","teacherTipsSchema","asset_id_slidedeck","asset_id_worksheet","asset_id_worksheet_answers","asset_id_supplementary_asset","asset_id_lesson_guide","expiration_date","lesson_outline","lessonOutlineSchema","nullish","media_clips","mediaClipsRecordSchema","deprecated_fields","record","unknown","_state","_stateSchema","_cohort","_cohortSchema","_deleted","boolean","_release_id","teacher_details","attribution","tags","tpc_media_list","tpc_works_list","tpc_downloadablefiles_list","tpc_quizimages_list","features","featuresSchema","new_vocabulary_list","revisited_vocabulary_list","downloadable_files","additionalFileObjectSchema","lesson_release_date","lessonNewSchema","pick","newState","lessonPublishedSchema","publishedState","lessonSchemaCamel","zodToCamelCase","lessonNewSchemaCamel","lessonPublishedSchemaCamel","lessonData","lessonDataSchema"],"mappings":"01BAqBO,MAAMA,EAAeC,EAAAA,iBAAiBC,OAAO,CAClDC,UAAWC,EAAAA,EAAEC,SACbC,WAAYF,EAAAA,EAAEG,SACdC,KAAMJ,EAAAA,EAAEG,SACRE,MAAOC,EAAAA,WACPC,YAAaD,EAAAA,WACbE,qBAAsBF,EAAAA,WACtBG,gBAAiBH,EAAAA,WAAWI,WAC5BC,oBAAqBX,EAAAA,EAAEY,MAAMC,EAAAA,yBAAyBH,WACtDI,wBAAyBd,EAAAA,EAAEY,MAAMG,EAAAA,6BAA6BL,WAC9DM,yBAA0BhB,EAAAA,EACvBY,MAAMZ,EAAAA,EAAEiB,OAAO,CAAEC,QAASlB,EAAAA,EAAEG,YAC5BO,WACHS,iBAAkBnB,EAAAA,EAAEY,MAAMZ,EAAAA,EAAEC,UAAUS,WACtCU,kBAAmBpB,EA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BAAsBR,EAAAA,EAAEG,SAASO,aAGxB8D,EAAwB5E,EAAaE,OAAO,CACvDkD,OAAQyB,EAAAA,iBAMGC,EAAoBC,EAAAA,QAAe/E,GAGnCgF,EAAuBD,EAAAA,QAAeN,GAGtCQ,EAA6BF,EAAAA,QAAeH,GAO5CM,EAAalF,EACbmF,EAAmBnF"}
1
+ {"version":3,"file":"lesson.schema.cjs","sources":["../../../../../src/schema/public/lesson/lesson.schema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport zodToCamelCase from \"zod-to-camel-case\";\n\nimport {\n _stateSchema,\n _cohortSchema,\n timestampsSchema,\n newState,\n publishedState,\n} from \"@/schema/public/components/base/base.schema\";\nimport { safeString } from \"@/schema/public/components/base/safe-string.schema\";\nimport { keyLearningPointsSchema } from \"@/schema/public/components/keyLearningPoints/keyLearningPoints.schema\";\nimport { keywordsSchema } from \"@/schema/public/components/keywords/keywords.schema\";\nimport { equipmentAndResourcesSchema } from \"@/schema/public/components/equipmentAndResources/equipmentAndResources.schema\";\nimport { lessonOutlineSchema } from \"@/schema/public/components/lessonOutline/lessonOutline.schema\";\nimport { mediaClipsRecordSchema } from \"@/schema/public/components/mediaClips/mediaClips.schema\";\nimport { additionalFileObjectSchema } from \"@/schema/public/components/additionalFiles/additionalFiles.schema\";\nimport { featuresSchema } from \"@/schema/public/components/features/features.schema\";\nimport { misconceptionsAndCommonMistakesSchema } from \"@/schema/public/components/misconceptionsAndCommonMistakes/misconceptionsAndCommonMistakes.schema\";\nimport { teacherTipsSchema } from \"@/schema/public/components/teacherTips/teacherTips.schema\";\n\nexport const lessonSchema = timestampsSchema.extend({\n lesson_id: z.number(),\n lesson_uid: z.string(),\n slug: z.string(),\n title: safeString,\n description: safeString,\n pupil_lesson_outcome: safeString,\n phonics_outcome: safeString.nullable(),\n key_learning_points: z.array(keyLearningPointsSchema).nullable(),\n equipment_and_resources: z.array(equipmentAndResourcesSchema).nullable(),\n content_guidance_details: z\n .array(z.object({ details: z.string() }))\n .nullable(),\n content_guidance: z.array(z.number()).nullable(),\n copyright_content: z\n .array(\n z.object({\n copyright_info: z.string(),\n }),\n )\n .nullable(),\n supervision_level: z.string().nullable(),\n thirdpartycontent_list: z.array(z.number()).nullable(),\n misconceptions_and_common_mistakes: z\n .array(misconceptionsAndCommonMistakesSchema)\n .nullable(),\n keywords: z.array(keywordsSchema).nullable(),\n video_id: z.number().nullable(),\n sign_language_video_id: z.number().nullable(),\n quiz_id_starter: z.number().nullable(),\n quiz_id_exit: z.number().nullable(),\n teacher_tips: z.array(teacherTipsSchema).nullable(),\n asset_id_slidedeck: z.number().nullable(),\n asset_id_worksheet: z.number().nullable(),\n asset_id_worksheet_answers: z.number().nullable(),\n asset_id_supplementary_asset: z.number().nullable(),\n asset_id_lesson_guide: z.number().nullable(),\n expiration_date: z.string().nullable(),\n lesson_outline: z.array(lessonOutlineSchema).nullish(),\n media_clips: mediaClipsRecordSchema.nullish(),\n deprecated_fields: z.record(z.string(), z.unknown()).nullable(),\n _state: _stateSchema,\n _cohort: _cohortSchema,\n _deleted: z.boolean(),\n _release_id: z.number().nullable(),\n teacher_details: z.array(z.object({})).nullable(),\n attribution: z.array(z.object({})).nullable(),\n tags: z.array(z.number()).nullable(),\n tpc_media_list: z.array(z.number()).nullable(),\n tpc_works_list: z.array(z.number()).nullable(),\n tpc_downloadablefiles_list: z.array(z.number()).nullable(),\n tpc_quizimages_list: z.array(z.number()).nullable(),\n features: featuresSchema.nullable(),\n new_vocabulary_list: z.array(z.object({})).nullable(),\n revisited_vocabulary_list: z.array(z.object({})).nullable(),\n downloadable_files: z.array(additionalFileObjectSchema).nullable(),\n lesson_release_date: z.string().nullish(),\n});\nexport type Lesson = z.infer<typeof lessonSchema>;\n\nexport const lessonNewSchema = lessonSchema\n .pick({\n lesson_id: true,\n lesson_uid: true,\n phonics_outcome: true,\n title: true,\n key_learning_points: true,\n equipment_and_resources: true,\n content_guidance_details: true,\n content_guidance: true,\n copyright_content: true,\n supervision_level: true,\n thirdpartycontent_list: true,\n misconceptions_and_common_mistakes: true,\n keywords: true,\n video_id: true,\n sign_language_video_id: true,\n teacher_tips: true,\n quiz_id_starter: true,\n quiz_id_exit: true,\n asset_id_slidedeck: true,\n asset_id_worksheet: true,\n asset_id_worksheet_answers: true,\n asset_id_supplementary_asset: true,\n asset_id_lesson_guide: true,\n expiration_date: true,\n lesson_outline: true,\n media_clips: true,\n deprecated_fields: true,\n _cohort: true,\n _deleted: true,\n _release_id: true,\n teacher_details: true,\n attribution: true,\n tags: true,\n tpc_media_list: true,\n tpc_works_list: true,\n tpc_downloadablefiles_list: true,\n tpc_quizimages_list: true,\n features: true,\n new_vocabulary_list: true,\n revisited_vocabulary_list: true,\n downloadable_files: true,\n lesson_release_date: true,\n })\n .extend({\n _state: newState,\n pupil_lesson_outcome: safeString.nullish(),\n description: safeString.nullish(),\n });\n\nexport const lessonPublishedSchema = lessonSchema.extend({\n _state: publishedState,\n});\n\nexport type LessonNew = z.infer<typeof lessonNewSchema>;\nexport type LessonPublished = z.infer<typeof lessonPublishedSchema>;\n\nexport const lessonSchemaCamel = zodToCamelCase(lessonSchema);\nexport type LessonCamel = z.infer<typeof lessonSchemaCamel>;\n\nexport const lessonNewSchemaCamel = zodToCamelCase(lessonNewSchema);\nexport type LessonNewCamel = z.infer<typeof lessonNewSchemaCamel>;\n\nexport const lessonPublishedSchemaCamel = zodToCamelCase(lessonPublishedSchema);\nexport type LessonPublishedCamel = z.infer<typeof lessonPublishedSchemaCamel>;\n\n// Backwards compatibility exports\n/**\n * @deprecated Use lessonSchema instead.\n */\nexport const lessonData = lessonSchema;\nexport const lessonDataSchema = lessonSchema;\nexport type LessonData = Lesson;\n"],"names":["lessonSchema","timestampsSchema","extend","lesson_id","z","number","lesson_uid","string","slug","title","safeString","description","pupil_lesson_outcome","phonics_outcome","nullable","key_learning_points","array","keyLearningPointsSchema","equipment_and_resources","equipmentAndResourcesSchema","content_guidance_details","object","details","content_guidance","copyright_content","copyright_info","supervision_level","thirdpartycontent_list","misconceptions_and_common_mistakes","misconceptionsAndCommonMistakesSchema","keywords","keywordsSchema","video_id","sign_language_video_id","quiz_id_starter","quiz_id_exit","teacher_tips","teacherTipsSchema","asset_id_slidedeck","asset_id_worksheet","asset_id_worksheet_answers","asset_id_supplementary_asset","asset_id_lesson_guide","expiration_date","lesson_outline","lessonOutlineSchema","nullish","media_clips","mediaClipsRecordSchema","deprecated_fields","record","unknown","_state","_stateSchema","_cohort","_cohortSchema","_deleted","boolean","_release_id","teacher_details","attribution","tags","tpc_media_list","tpc_works_list","tpc_downloadablefiles_list","tpc_quizimages_list","features","featuresSchema","new_vocabulary_list","revisited_vocabulary_list","downloadable_files","additionalFileObjectSchema","lesson_release_date","lessonNewSchema","pick","newState","lessonPublishedSchema","publishedState","lessonSchemaCamel","zodToCamelCase","lessonNewSchemaCamel","lessonPublishedSchemaCamel","lessonData","lessonDataSchema"],"mappings":"01BAqBO,MAAMA,EAAeC,EAAAA,iBAAiBC,OAAO,CAClDC,UAAWC,EAAAA,EAAEC,SACbC,WAAYF,EAAAA,EAAEG,SACdC,KAAMJ,EAAAA,EAAEG,SACRE,MAAOC,EAAAA,WACPC,YAAaD,EAAAA,WACbE,qBAAsBF,EAAAA,WACtBG,gBAAiBH,EAAAA,WAAWI,WAC5BC,oBAAqBX,EAAAA,EAAEY,MAAMC,EAAAA,yBAAyBH,WACtDI,wBAAyBd,EAAAA,EAAEY,MAAMG,EAAAA,6BAA6BL,WAC9DM,yBAA0BhB,EAAAA,EACvBY,MAAMZ,EAAAA,EAAEiB,OAAO,CAAEC,QAASlB,EAAAA,EAAEG,YAC5BO,WACHS,iBAAkBnB,EAAAA,EAAEY,MAAMZ,EAAAA,EAAEC,UAAUS,WACtCU,kBAAmBpB,EAAAA,EAChBY,MACCZ,EAAAA,EAAEiB,OAAO,CACPI,eAAgBrB,EAAAA,EAAEG,YAGrBO,WACHY,kBAAmBtB,EAAAA,EAAEG,SAASO,WAC9Ba,uBAAwBvB,EAAAA,EA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GnCgF,EAAuBD,EAAAA,QAAeN,GAGtCQ,EAA6BF,EAAAA,QAAeH,GAO5CM,EAAalF,EACbmF,EAAmBnF"}
@@ -1,2 +1,2 @@
1
- import{z as e}from"zod";import s from"zod-to-camel-case";import{timestampsSchema as l,_cohortSchema as n,_stateSchema as a,newState as t,publishedState as i}from"../components/base/base.schema.js";import{safeString as o}from"../components/base/safe-string.schema.js";import{keyLearningPointsSchema as r}from"../components/keyLearningPoints/keyLearningPoints.schema.js";import{keywordsSchema as _}from"../components/keywords/keywords.schema.js";import{equipmentAndResourcesSchema as u}from"../components/equipmentAndResources/equipmentAndResources.schema.js";import{lessonOutlineSchema as d}from"../components/lessonOutline/lessonOutline.schema.js";import{mediaClipsRecordSchema as m}from"../components/mediaClips/mediaClips.schema.js";import{additionalFileObjectSchema as c}from"../components/additionalFiles/additionalFiles.schema.js";import{featuresSchema as p}from"../components/features/features.schema.js";import{misconceptionsAndCommonMistakesSchema as b}from"../components/misconceptionsAndCommonMistakes/misconceptionsAndCommonMistakes.schema.js";import{teacherTipsSchema as y}from"../components/teacherTips/teacherTips.schema.js";const g=l.extend({lesson_id:e.number(),lesson_uid:e.string(),slug:e.string(),title:o,description:o,pupil_lesson_outcome:o,phonics_outcome:o.nullable(),key_learning_points:e.array(r).nullable(),equipment_and_resources:e.array(u).nullable(),content_guidance_details:e.array(e.object({details:e.string()})).nullable(),content_guidance:e.array(e.number()).nullable(),copyright_content:e.array(e.object({copyright_info:e.string()})).nullable(),supervision_level:e.string().nullable(),thirdpartycontent_list:e.array(e.number()).nullable(),misconceptions_and_common_mistakes:e.array(b).nullable(),keywords:e.array(_).nullable(),video_id:e.number().nullable(),sign_language_video_id:e.number().nullable(),quiz_id_starter:e.number().nullable(),quiz_id_exit:e.number().nullable(),teacher_tips:e.array(y).nullable(),asset_id_slidedeck:e.number().nullable(),asset_id_worksheet:e.number().nullable(),asset_id_worksheet_answers:e.number().nullable(),asset_id_supplementary_asset:e.number().nullable(),asset_id_lesson_guide:e.number().nullable(),expiration_date:e.string().nullable(),lesson_outline:e.array(d).nullish(),media_clips:m.nullish(),deprecated_fields:e.record(e.string(),e.unknown()).nullable(),_state:a,_cohort:n,_deleted:e.boolean(),_release_id:e.number().nullable(),teacher_details:e.array(e.object({})).nullable(),attribution:e.array(e.object({})).nullable(),tags:e.array(e.number()).nullable(),tpc_media_list:e.array(e.number()).nullable(),tpc_works_list:e.array(e.number()).nullable(),tpc_downloadablefiles_list:e.array(e.number()).nullable(),tpc_quizimages_list:e.array(e.number()).nullable(),features:p.nullable(),new_vocabulary_list:e.array(e.object({})).nullable(),revisited_vocabulary_list:e.array(e.object({})).nullable(),downloadable_files:e.array(c).nullable(),lesson_release_date:e.string().nullish()}),h=g.pick({lesson_id:!0,lesson_uid:!0,phonics_outcome:!0,description:!0,key_learning_points:!0,equipment_and_resources:!0,content_guidance_details:!0,content_guidance:!0,copyright_content:!0,supervision_level:!0,thirdpartycontent_list:!0,misconceptions_and_common_mistakes:!0,keywords:!0,video_id:!0,sign_language_video_id:!0,teacher_tips:!0,quiz_id_starter:!0,quiz_id_exit:!0,asset_id_slidedeck:!0,asset_id_worksheet:!0,asset_id_worksheet_answers:!0,asset_id_supplementary_asset:!0,asset_id_lesson_guide:!0,expiration_date:!0,lesson_outline:!0,media_clips:!0,deprecated_fields:!0,_cohort:!0,_deleted:!0,_release_id:!0,teacher_details:!0,attribution:!0,tags:!0,tpc_media_list:!0,tpc_works_list:!0,tpc_downloadablefiles_list:!0,tpc_quizimages_list:!0,features:!0,new_vocabulary_list:!0,revisited_vocabulary_list:!0,downloadable_files:!0,lesson_release_date:!0}).extend({_state:t,pupil_lesson_outcome:e.string().nullable()}),f=g.extend({_state:i}),k=s(g),w=s(h),j=s(f),v=g,q=g;export{v as lessonData,q as lessonDataSchema,h as lessonNewSchema,w as lessonNewSchemaCamel,f as lessonPublishedSchema,j as lessonPublishedSchemaCamel,g as lessonSchema,k as lessonSchemaCamel};
1
+ import{z as e}from"zod";import s from"zod-to-camel-case";import{timestampsSchema as l,_cohortSchema as n,_stateSchema as a,newState as t,publishedState as i}from"../components/base/base.schema.js";import{safeString as o}from"../components/base/safe-string.schema.js";import{keyLearningPointsSchema as r}from"../components/keyLearningPoints/keyLearningPoints.schema.js";import{keywordsSchema as _}from"../components/keywords/keywords.schema.js";import{equipmentAndResourcesSchema as u}from"../components/equipmentAndResources/equipmentAndResources.schema.js";import{lessonOutlineSchema as d}from"../components/lessonOutline/lessonOutline.schema.js";import{mediaClipsRecordSchema as m}from"../components/mediaClips/mediaClips.schema.js";import{additionalFileObjectSchema as c}from"../components/additionalFiles/additionalFiles.schema.js";import{featuresSchema as p}from"../components/features/features.schema.js";import{misconceptionsAndCommonMistakesSchema as b}from"../components/misconceptionsAndCommonMistakes/misconceptionsAndCommonMistakes.schema.js";import{teacherTipsSchema as y}from"../components/teacherTips/teacherTips.schema.js";const h=l.extend({lesson_id:e.number(),lesson_uid:e.string(),slug:e.string(),title:o,description:o,pupil_lesson_outcome:o,phonics_outcome:o.nullable(),key_learning_points:e.array(r).nullable(),equipment_and_resources:e.array(u).nullable(),content_guidance_details:e.array(e.object({details:e.string()})).nullable(),content_guidance:e.array(e.number()).nullable(),copyright_content:e.array(e.object({copyright_info:e.string()})).nullable(),supervision_level:e.string().nullable(),thirdpartycontent_list:e.array(e.number()).nullable(),misconceptions_and_common_mistakes:e.array(b).nullable(),keywords:e.array(_).nullable(),video_id:e.number().nullable(),sign_language_video_id:e.number().nullable(),quiz_id_starter:e.number().nullable(),quiz_id_exit:e.number().nullable(),teacher_tips:e.array(y).nullable(),asset_id_slidedeck:e.number().nullable(),asset_id_worksheet:e.number().nullable(),asset_id_worksheet_answers:e.number().nullable(),asset_id_supplementary_asset:e.number().nullable(),asset_id_lesson_guide:e.number().nullable(),expiration_date:e.string().nullable(),lesson_outline:e.array(d).nullish(),media_clips:m.nullish(),deprecated_fields:e.record(e.string(),e.unknown()).nullable(),_state:a,_cohort:n,_deleted:e.boolean(),_release_id:e.number().nullable(),teacher_details:e.array(e.object({})).nullable(),attribution:e.array(e.object({})).nullable(),tags:e.array(e.number()).nullable(),tpc_media_list:e.array(e.number()).nullable(),tpc_works_list:e.array(e.number()).nullable(),tpc_downloadablefiles_list:e.array(e.number()).nullable(),tpc_quizimages_list:e.array(e.number()).nullable(),features:p.nullable(),new_vocabulary_list:e.array(e.object({})).nullable(),revisited_vocabulary_list:e.array(e.object({})).nullable(),downloadable_files:e.array(c).nullable(),lesson_release_date:e.string().nullish()}),g=h.pick({lesson_id:!0,lesson_uid:!0,phonics_outcome:!0,title:!0,key_learning_points:!0,equipment_and_resources:!0,content_guidance_details:!0,content_guidance:!0,copyright_content:!0,supervision_level:!0,thirdpartycontent_list:!0,misconceptions_and_common_mistakes:!0,keywords:!0,video_id:!0,sign_language_video_id:!0,teacher_tips:!0,quiz_id_starter:!0,quiz_id_exit:!0,asset_id_slidedeck:!0,asset_id_worksheet:!0,asset_id_worksheet_answers:!0,asset_id_supplementary_asset:!0,asset_id_lesson_guide:!0,expiration_date:!0,lesson_outline:!0,media_clips:!0,deprecated_fields:!0,_cohort:!0,_deleted:!0,_release_id:!0,teacher_details:!0,attribution:!0,tags:!0,tpc_media_list:!0,tpc_works_list:!0,tpc_downloadablefiles_list:!0,tpc_quizimages_list:!0,features:!0,new_vocabulary_list:!0,revisited_vocabulary_list:!0,downloadable_files:!0,lesson_release_date:!0}).extend({_state:t,pupil_lesson_outcome:o.nullish(),description:o.nullish()}),f=h.extend({_state:i}),k=s(h),w=s(g),j=s(f),v=h,q=h;export{v as lessonData,q as lessonDataSchema,g as lessonNewSchema,w as lessonNewSchemaCamel,f as lessonPublishedSchema,j as lessonPublishedSchemaCamel,h as lessonSchema,k as lessonSchemaCamel};
2
2
  //# sourceMappingURL=lesson.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lesson.schema.js","sources":["../../../../../src/schema/public/lesson/lesson.schema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport zodToCamelCase from \"zod-to-camel-case\";\n\nimport {\n _stateSchema,\n _cohortSchema,\n timestampsSchema,\n newState,\n publishedState,\n} from \"@/schema/public/components/base/base.schema\";\nimport { safeString } from \"@/schema/public/components/base/safe-string.schema\";\nimport { keyLearningPointsSchema } from \"@/schema/public/components/keyLearningPoints/keyLearningPoints.schema\";\nimport { keywordsSchema } from \"@/schema/public/components/keywords/keywords.schema\";\nimport { equipmentAndResourcesSchema } from \"@/schema/public/components/equipmentAndResources/equipmentAndResources.schema\";\nimport { lessonOutlineSchema } from \"@/schema/public/components/lessonOutline/lessonOutline.schema\";\nimport { mediaClipsRecordSchema } from \"@/schema/public/components/mediaClips/mediaClips.schema\";\nimport { additionalFileObjectSchema } from \"@/schema/public/components/additionalFiles/additionalFiles.schema\";\nimport { featuresSchema } from \"@/schema/public/components/features/features.schema\";\nimport { misconceptionsAndCommonMistakesSchema } from \"@/schema/public/components/misconceptionsAndCommonMistakes/misconceptionsAndCommonMistakes.schema\";\nimport { teacherTipsSchema } from \"@/schema/public/components/teacherTips/teacherTips.schema\";\n\nexport const lessonSchema = timestampsSchema.extend({\n lesson_id: z.number(),\n lesson_uid: z.string(),\n slug: z.string(),\n title: safeString,\n description: safeString,\n pupil_lesson_outcome: safeString,\n phonics_outcome: safeString.nullable(),\n key_learning_points: z.array(keyLearningPointsSchema).nullable(),\n equipment_and_resources: z.array(equipmentAndResourcesSchema).nullable(),\n content_guidance_details: z\n .array(z.object({ details: z.string() }))\n .nullable(),\n content_guidance: z.array(z.number()).nullable(),\n copyright_content: z\n .array(\n z.object({\n copyright_info: z.string(),\n }),\n )\n .nullable(),\n supervision_level: z.string().nullable(),\n thirdpartycontent_list: z.array(z.number()).nullable(),\n misconceptions_and_common_mistakes: z\n .array(misconceptionsAndCommonMistakesSchema)\n .nullable(),\n keywords: z.array(keywordsSchema).nullable(),\n video_id: z.number().nullable(),\n sign_language_video_id: z.number().nullable(),\n quiz_id_starter: z.number().nullable(),\n quiz_id_exit: z.number().nullable(),\n teacher_tips: z.array(teacherTipsSchema).nullable(),\n asset_id_slidedeck: z.number().nullable(),\n asset_id_worksheet: z.number().nullable(),\n asset_id_worksheet_answers: z.number().nullable(),\n asset_id_supplementary_asset: z.number().nullable(),\n asset_id_lesson_guide: z.number().nullable(),\n expiration_date: z.string().nullable(),\n lesson_outline: z.array(lessonOutlineSchema).nullish(),\n media_clips: mediaClipsRecordSchema.nullish(),\n deprecated_fields: z.record(z.string(), z.unknown()).nullable(),\n _state: _stateSchema,\n _cohort: _cohortSchema,\n _deleted: z.boolean(),\n _release_id: z.number().nullable(),\n teacher_details: z.array(z.object({})).nullable(),\n attribution: z.array(z.object({})).nullable(),\n tags: z.array(z.number()).nullable(),\n tpc_media_list: z.array(z.number()).nullable(),\n tpc_works_list: z.array(z.number()).nullable(),\n tpc_downloadablefiles_list: z.array(z.number()).nullable(),\n tpc_quizimages_list: z.array(z.number()).nullable(),\n features: featuresSchema.nullable(),\n new_vocabulary_list: z.array(z.object({})).nullable(),\n revisited_vocabulary_list: z.array(z.object({})).nullable(),\n downloadable_files: z.array(additionalFileObjectSchema).nullable(),\n lesson_release_date: z.string().nullish(),\n});\nexport type Lesson = z.infer<typeof lessonSchema>;\n\nexport const lessonNewSchema = lessonSchema\n .pick({\n lesson_id: true,\n lesson_uid: true,\n phonics_outcome: true,\n description: true,\n key_learning_points: true,\n equipment_and_resources: true,\n content_guidance_details: true,\n content_guidance: true,\n copyright_content: true,\n supervision_level: true,\n thirdpartycontent_list: true,\n misconceptions_and_common_mistakes: true,\n keywords: true,\n video_id: true,\n sign_language_video_id: true,\n teacher_tips: true,\n quiz_id_starter: true,\n quiz_id_exit: true,\n asset_id_slidedeck: true,\n asset_id_worksheet: true,\n asset_id_worksheet_answers: true,\n asset_id_supplementary_asset: true,\n asset_id_lesson_guide: true,\n expiration_date: true,\n lesson_outline: true,\n media_clips: true,\n deprecated_fields: true,\n _cohort: true,\n _deleted: true,\n _release_id: true,\n teacher_details: true,\n attribution: true,\n tags: true,\n tpc_media_list: true,\n tpc_works_list: true,\n tpc_downloadablefiles_list: true,\n tpc_quizimages_list: true,\n features: true,\n new_vocabulary_list: true,\n revisited_vocabulary_list: true,\n downloadable_files: true,\n lesson_release_date: true,\n })\n .extend({\n _state: newState,\n pupil_lesson_outcome: z.string().nullable(),\n });\n\nexport const lessonPublishedSchema = lessonSchema.extend({\n _state: publishedState,\n});\n\nexport type LessonNew = z.infer<typeof lessonNewSchema>;\nexport type LessonPublished = z.infer<typeof lessonPublishedSchema>;\n\nexport const lessonSchemaCamel = zodToCamelCase(lessonSchema);\nexport type LessonCamel = z.infer<typeof lessonSchemaCamel>;\n\nexport const lessonNewSchemaCamel = zodToCamelCase(lessonNewSchema);\nexport type LessonNewCamel = z.infer<typeof lessonNewSchemaCamel>;\n\nexport const lessonPublishedSchemaCamel = zodToCamelCase(lessonPublishedSchema);\nexport type LessonPublishedCamel = z.infer<typeof lessonPublishedSchemaCamel>;\n\n// Backwards compatibility exports\n/**\n * @deprecated Use lessonSchema instead.\n */\nexport const lessonData = lessonSchema;\nexport const lessonDataSchema = lessonSchema;\nexport type LessonData = Lesson;\n"],"names":["lessonSchema","timestampsSchema","extend","lesson_id","z","number","lesson_uid","string","slug","title","safeString","description","pupil_lesson_outcome","phonics_outcome","nullable","key_learning_points","array","keyLearningPointsSchema","equipment_and_resources","equipmentAndResourcesSchema","content_guidance_details","object","details","content_guidance","copyright_content","copyright_info","supervision_level","thirdpartycontent_list","misconceptions_and_common_mistakes","misconceptionsAndCommonMistakesSchema","keywords","keywordsSchema","video_id","sign_language_video_id","quiz_id_starter","quiz_id_exit","teacher_tips","teacherTipsSchema","asset_id_slidedeck","asset_id_worksheet","asset_id_worksheet_answers","asset_id_supplementary_asset","asset_id_lesson_guide","expiration_date","lesson_outline","lessonOutlineSchema","nullish","media_clips","mediaClipsRecordSchema","deprecated_fields","record","unknown","_state","_stateSchema","_cohort","_cohortSchema","_deleted","boolean","_release_id","teacher_details","attribution","tags","tpc_media_list","tpc_works_list","tpc_downloadablefiles_list","tpc_quizimages_list","features","featuresSchema","new_vocabulary_list","revisited_vocabulary_list","downloadable_files","additionalFileObjectSchema","lesson_release_date","lessonNewSchema","pick","newState","lessonPublishedSchema","publishedState","lessonSchemaCamel","zodToCamelCase","lessonNewSchemaCamel","lessonPublishedSchemaCamel","lessonData","lessonDataSchema"],"mappings":"mnCAqBO,MAAMA,EAAeC,EAAiBC,OAAO,CAClDC,UAAWC,EAAEC,SACbC,WAAYF,EAAEG,SACdC,KAAMJ,EAAEG,SACRE,MAAOC,EACPC,YAAaD,EACbE,qBAAsBF,EACtBG,gBAAiBH,EAAWI,WAC5BC,oBAAqBX,EAAEY,MAAMC,GAAyBH,WACtDI,wBAAyBd,EAAEY,MAAMG,GAA6BL,WAC9DM,yBAA0BhB,EACvBY,MAAMZ,EAAEiB,OAAO,CAAEC,QAASlB,EAAEG,YAC5BO,WACHS,iBAAkBnB,EAAEY,MAAMZ,EAAEC,UAAUS,WACtCU,kBAAmBpB,EAChBY,MACCZ,EAAEiB,OAAO,CACPI,eAAgBrB,EAAEG,YAGrBO,WACHY,kBAAmBtB,EAAEG,SAASO,WAC9Ba,uBAAwBvB,EAAEY,MAAMZ,EAAEC,UAAUS,WAC5Cc,mCAAoCxB,EACjCY,MAAMa,GACNf,WACHgB,SAAU1B,EAAEY,MAAMe,GAAgBjB,WAClCkB,SAAU5B,EAAEC,SAASS,WACrBmB,uBAAwB7B,EAAEC,SAASS,WACnCoB,gBAAiB9B,EAAEC,SAASS,WAC5BqB,aAAc/B,EAAEC,SAASS,WACzBsB,aAAchC,EAAEY,MAAMqB,GAAmBvB,WACzCwB,mBAAoBlC,EAAEC,SAASS,WAC/ByB,mBAAoBnC,EAAEC,SAASS,WAC/B0B,2BAA4BpC,EAAEC,SAASS,WACvC2B,6BAA8BrC,EAAEC,SAASS,WACzC4B,sBAAuBtC,EAAEC,SAASS,WAClC6B,gBAAiBvC,EAAEG,SAASO,WAC5B8B,eAAgBxC,EAAEY,MAAM6B,GAA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a,EACbC,iBAAiB,EACjBC,aAAa,EACbC,MAAM,EACNC,gBAAgB,EAChBC,gBAAgB,EAChBC,4BAA4B,EAC5BC,qBAAqB,EACrBC,UAAU,EACVE,qBAAqB,EACrBC,2BAA2B,EAC3BC,oBAAoB,EACpBE,qBAAqB,IAEtBtE,OAAO,CACNkD,OAAQuB,EACR/D,qBAAsBR,EAAEG,SAASO,aAGxB8D,EAAwB5E,EAAaE,OAAO,CACvDkD,OAAQyB,IAMGC,EAAoBC,EAAe/E,GAGnCgF,EAAuBD,EAAeN,GAGtCQ,EAA6BF,EAAeH,GAO5CM,EAAalF,EACbmF,EAAmBnF"}
1
+ {"version":3,"file":"lesson.schema.js","sources":["../../../../../src/schema/public/lesson/lesson.schema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport zodToCamelCase from \"zod-to-camel-case\";\n\nimport {\n _stateSchema,\n _cohortSchema,\n timestampsSchema,\n newState,\n publishedState,\n} from \"@/schema/public/components/base/base.schema\";\nimport { safeString } from \"@/schema/public/components/base/safe-string.schema\";\nimport { keyLearningPointsSchema } from \"@/schema/public/components/keyLearningPoints/keyLearningPoints.schema\";\nimport { keywordsSchema } from \"@/schema/public/components/keywords/keywords.schema\";\nimport { equipmentAndResourcesSchema } from \"@/schema/public/components/equipmentAndResources/equipmentAndResources.schema\";\nimport { lessonOutlineSchema } from \"@/schema/public/components/lessonOutline/lessonOutline.schema\";\nimport { mediaClipsRecordSchema } from \"@/schema/public/components/mediaClips/mediaClips.schema\";\nimport { additionalFileObjectSchema } from \"@/schema/public/components/additionalFiles/additionalFiles.schema\";\nimport { featuresSchema } from \"@/schema/public/components/features/features.schema\";\nimport { misconceptionsAndCommonMistakesSchema } from \"@/schema/public/components/misconceptionsAndCommonMistakes/misconceptionsAndCommonMistakes.schema\";\nimport { teacherTipsSchema } from \"@/schema/public/components/teacherTips/teacherTips.schema\";\n\nexport const lessonSchema = timestampsSchema.extend({\n lesson_id: z.number(),\n lesson_uid: z.string(),\n slug: z.string(),\n title: safeString,\n description: safeString,\n pupil_lesson_outcome: safeString,\n phonics_outcome: safeString.nullable(),\n key_learning_points: z.array(keyLearningPointsSchema).nullable(),\n equipment_and_resources: z.array(equipmentAndResourcesSchema).nullable(),\n content_guidance_details: z\n .array(z.object({ details: z.string() }))\n .nullable(),\n content_guidance: z.array(z.number()).nullable(),\n copyright_content: z\n .array(\n z.object({\n copyright_info: z.string(),\n }),\n )\n .nullable(),\n supervision_level: z.string().nullable(),\n thirdpartycontent_list: z.array(z.number()).nullable(),\n misconceptions_and_common_mistakes: z\n .array(misconceptionsAndCommonMistakesSchema)\n .nullable(),\n keywords: z.array(keywordsSchema).nullable(),\n video_id: z.number().nullable(),\n sign_language_video_id: z.number().nullable(),\n quiz_id_starter: z.number().nullable(),\n quiz_id_exit: z.number().nullable(),\n teacher_tips: z.array(teacherTipsSchema).nullable(),\n asset_id_slidedeck: z.number().nullable(),\n asset_id_worksheet: z.number().nullable(),\n asset_id_worksheet_answers: z.number().nullable(),\n asset_id_supplementary_asset: z.number().nullable(),\n asset_id_lesson_guide: z.number().nullable(),\n expiration_date: z.string().nullable(),\n lesson_outline: z.array(lessonOutlineSchema).nullish(),\n media_clips: mediaClipsRecordSchema.nullish(),\n deprecated_fields: z.record(z.string(), z.unknown()).nullable(),\n _state: _stateSchema,\n _cohort: _cohortSchema,\n _deleted: z.boolean(),\n _release_id: z.number().nullable(),\n teacher_details: z.array(z.object({})).nullable(),\n attribution: z.array(z.object({})).nullable(),\n tags: z.array(z.number()).nullable(),\n tpc_media_list: z.array(z.number()).nullable(),\n tpc_works_list: z.array(z.number()).nullable(),\n tpc_downloadablefiles_list: z.array(z.number()).nullable(),\n tpc_quizimages_list: z.array(z.number()).nullable(),\n features: featuresSchema.nullable(),\n new_vocabulary_list: z.array(z.object({})).nullable(),\n revisited_vocabulary_list: z.array(z.object({})).nullable(),\n downloadable_files: z.array(additionalFileObjectSchema).nullable(),\n lesson_release_date: z.string().nullish(),\n});\nexport type Lesson = z.infer<typeof lessonSchema>;\n\nexport const lessonNewSchema = lessonSchema\n .pick({\n lesson_id: true,\n lesson_uid: true,\n phonics_outcome: true,\n title: true,\n key_learning_points: true,\n equipment_and_resources: true,\n content_guidance_details: true,\n content_guidance: true,\n copyright_content: true,\n supervision_level: true,\n thirdpartycontent_list: true,\n misconceptions_and_common_mistakes: true,\n keywords: true,\n video_id: true,\n sign_language_video_id: true,\n teacher_tips: true,\n quiz_id_starter: true,\n quiz_id_exit: true,\n asset_id_slidedeck: true,\n asset_id_worksheet: true,\n asset_id_worksheet_answers: true,\n asset_id_supplementary_asset: true,\n asset_id_lesson_guide: true,\n expiration_date: true,\n lesson_outline: true,\n media_clips: true,\n deprecated_fields: true,\n _cohort: true,\n _deleted: true,\n _release_id: true,\n teacher_details: true,\n attribution: true,\n tags: true,\n tpc_media_list: true,\n tpc_works_list: true,\n tpc_downloadablefiles_list: true,\n tpc_quizimages_list: true,\n features: true,\n new_vocabulary_list: true,\n revisited_vocabulary_list: true,\n downloadable_files: true,\n lesson_release_date: true,\n })\n .extend({\n _state: newState,\n pupil_lesson_outcome: safeString.nullish(),\n description: safeString.nullish(),\n });\n\nexport const lessonPublishedSchema = lessonSchema.extend({\n _state: publishedState,\n});\n\nexport type LessonNew = z.infer<typeof lessonNewSchema>;\nexport type LessonPublished = z.infer<typeof lessonPublishedSchema>;\n\nexport const lessonSchemaCamel = zodToCamelCase(lessonSchema);\nexport type LessonCamel = z.infer<typeof lessonSchemaCamel>;\n\nexport const lessonNewSchemaCamel = zodToCamelCase(lessonNewSchema);\nexport type LessonNewCamel = z.infer<typeof lessonNewSchemaCamel>;\n\nexport const lessonPublishedSchemaCamel = zodToCamelCase(lessonPublishedSchema);\nexport type LessonPublishedCamel = z.infer<typeof lessonPublishedSchemaCamel>;\n\n// Backwards compatibility exports\n/**\n * @deprecated Use lessonSchema instead.\n */\nexport const lessonData = lessonSchema;\nexport const lessonDataSchema = lessonSchema;\nexport type LessonData = Lesson;\n"],"names":["lessonSchema","timestampsSchema","extend","lesson_id","z","number","lesson_uid","string","slug","title","safeString","description","pupil_lesson_outcome","phonics_outcome","nullable","key_learning_points","array","keyLearningPointsSchema","equipment_and_resources","equipmentAndResourcesSchema","content_guidance_details","object","details","content_guidance","copyright_content","copyright_info","supervision_level","thirdpartycontent_list","misconceptions_and_common_mistakes","misconceptionsAndCommonMistakesSchema","keywords","keywordsSchema","video_id","sign_language_video_id","quiz_id_starter","quiz_id_exit","teacher_tips","teacherTipsSchema","asset_id_slidedeck","asset_id_worksheet","asset_id_worksheet_answers","asset_id_supplementary_asset","asset_id_lesson_guide","expiration_date","lesson_outline","lessonOutlineSchema","nullish","media_clips","mediaClipsRecordSchema","deprecated_fields","record","unknown","_state","_stateSchema","_cohort","_cohortSchema","_deleted","boolean","_release_id","teacher_details","attribution","tags","tpc_media_list","tpc_works_list","tpc_downloadablefiles_list","tpc_quizimages_list","features","featuresSchema","new_vocabulary_list","revisited_vocabulary_list","downloadable_files","additionalFileObjectSchema","lesson_release_date","lessonNewSchema","pick","newState","lessonPublishedSchema","publishedState","lessonSchemaCamel","zodToCamelCase","lessonNewSchemaCamel","lessonPublishedSchemaCamel","lessonData","lessonDataSchema"],"mappings":"mnCAqBO,MAAMA,EAAeC,EAAiBC,OAAO,CAClDC,UAAWC,EAAEC,SACbC,WAAYF,EAAEG,SACdC,KAAMJ,EAAEG,SACRE,MAAOC,EACPC,YAAaD,EACbE,qBAAsBF,EACtBG,gBAAiBH,EAAWI,WAC5BC,oBAAqBX,EAAEY,MAAMC,GAAyBH,WACtDI,wBAAyBd,EAAEY,MAAMG,GAA6BL,WAC9DM,yBAA0BhB,EACvBY,MAAMZ,EAAEiB,OAAO,CAAEC,QAASlB,EAAEG,YAC5BO,WACHS,iBAAkBnB,EAAEY,MAAMZ,EAAEC,UAAUS,WACtCU,kBAAmBpB,EAChBY,MACCZ,EAAEiB,OAAO,CACPI,eAAgBrB,EAAEG,YAGrBO,WACHY,kBAAmBtB,EAAEG,SAASO,WAC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BlE,EAAEY,MAAMuD,GAA4BzD,WACxD0D,oBAAqBpE,EAAEG,SAASuC,YAIrB2B,EAAkBzE,EAC5B0E,KAAK,CACJvE,WAAW,EACXG,YAAY,EACZO,iBAAiB,EACjBJ,OAAO,EACPM,qBAAqB,EACrBG,yBAAyB,EACzBE,0BAA0B,EAC1BG,kBAAkB,EAClBC,mBAAmB,EACnBE,mBAAmB,EACnBC,wBAAwB,EACxBC,oCAAoC,EACpCE,UAAU,EACVE,UAAU,EACVC,wBAAwB,EACxBG,cAAc,EACdF,iBAAiB,EACjBC,cAAc,EACdG,oBAAoB,EACpBC,oBAAoB,EACpBC,4BAA4B,EAC5BC,8BAA8B,EAC9BC,uBAAuB,EACvBC,iBAAiB,EACjBC,gBAAgB,EAChBG,aAAa,EACbE,mBAAmB,EACnBK,SAAS,EACTE,UAAU,EACVE,aAAa,EACbC,iBAAiB,EACjBC,aAAa,EACbC,MAAM,EACNC,gBAAgB,EAChBC,gBAAgB,EAChBC,4BAA4B,EAC5BC,qBAAqB,EACrBC,UAAU,EACVE,qBAAqB,EACrBC,2BAA2B,EAC3BC,oBAAoB,EACpBE,qBAAqB,IAEtBtE,OAAO,CACNkD,OAAQuB,EACR/D,qBAAsBF,EAAWoC,UACjCnC,YAAaD,EAAWoC,YAGf8B,EAAwB5E,EAAaE,OAAO,CACvDkD,OAAQyB,IAMGC,EAAoBC,EAAe/E,GAGnCgF,EAAuBD,EAAeN,GAGtCQ,EAA6BF,EAAeH,GAO5CM,EAAalF,EACbmF,EAAmBnF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oaknational/oak-curriculum-schema",
3
- "version": "2.11.0-beta.1",
3
+ "version": "2.12.0-beta.1",
4
4
  "type": "module",
5
5
  "description": "Contract tests to ensure data integrity between Oak apps and their data",
6
6
  "main": "cjs/index.cjs",
@@ -84,7 +84,7 @@ export const lessonNewSchema = lessonSchema
84
84
  lesson_id: true,
85
85
  lesson_uid: true,
86
86
  phonics_outcome: true,
87
- description: true,
87
+ title: true,
88
88
  key_learning_points: true,
89
89
  equipment_and_resources: true,
90
90
  content_guidance_details: true,
@@ -126,7 +126,8 @@ export const lessonNewSchema = lessonSchema
126
126
  })
127
127
  .extend({
128
128
  _state: newState,
129
- pupil_lesson_outcome: z.string().nullable(),
129
+ pupil_lesson_outcome: safeString.nullish(),
130
+ description: safeString.nullish(),
130
131
  });
131
132
 
132
133
  export const lessonPublishedSchema = lessonSchema.extend({
package/types.d.ts CHANGED
@@ -2774,15 +2774,9 @@ declare const assetNewSchema: z.ZodObject<{
2774
2774
  created_at: z.ZodString;
2775
2775
  updated_at: z.ZodString;
2776
2776
  asset_id: z.ZodNumber;
2777
+ tpc_media_ids: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
2778
+ tpc_works_ids: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
2777
2779
  asset_uid: z.ZodString;
2778
- asset_type: z.ZodEnum<{
2779
- worksheet_answers: "worksheet_answers";
2780
- downloadable_file: "downloadable_file";
2781
- supplementary_resource: "supplementary_resource";
2782
- worksheet: "worksheet";
2783
- slidedeck: "slidedeck";
2784
- lesson_guide: "lesson_guide";
2785
- }>;
2786
2780
  asset_object: z.ZodObject<{
2787
2781
  pdf: z.ZodOptional<z.ZodObject<{
2788
2782
  bucket_name: z.ZodNullable<z.ZodString>;
@@ -2804,8 +2798,14 @@ declare const assetNewSchema: z.ZodObject<{
2804
2798
  url: z.ZodNullable<z.ZodURL>;
2805
2799
  }, z.core.$strip>>;
2806
2800
  }, z.core.$strip>;
2807
- tpc_media_ids: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
2808
- tpc_works_ids: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
2801
+ asset_type: z.ZodEnum<{
2802
+ worksheet_answers: "worksheet_answers";
2803
+ downloadable_file: "downloadable_file";
2804
+ supplementary_resource: "supplementary_resource";
2805
+ worksheet: "worksheet";
2806
+ slidedeck: "slidedeck";
2807
+ lesson_guide: "lesson_guide";
2808
+ }>;
2809
2809
  _state: z.ZodLiteral<"new">;
2810
2810
  url: z.ZodNullable<z.ZodURL>;
2811
2811
  title: z.ZodNullable<z.ZodString>;
@@ -3119,8 +3119,9 @@ declare const assetNewSchemaCamel: Omit<z.ZodType<{
3119
3119
  createdAt: string;
3120
3120
  updatedAt: string;
3121
3121
  assetId: number;
3122
+ tpcMediaIds: number[] | null;
3123
+ tpcWorksIds: number[] | null;
3122
3124
  assetUid: string;
3123
- assetType: "worksheet_answers" | "downloadable_file" | "supplementary_resource" | "worksheet" | "slidedeck" | "lesson_guide";
3124
3125
  assetObject: {
3125
3126
  pdf?: {
3126
3127
  bucketName: string | null;
@@ -3142,8 +3143,7 @@ declare const assetNewSchemaCamel: Omit<z.ZodType<{
3142
3143
  url: string | null;
3143
3144
  } | undefined;
3144
3145
  };
3145
- tpcMediaIds: number[] | null;
3146
- tpcWorksIds: number[] | null;
3146
+ assetType: "worksheet_answers" | "downloadable_file" | "supplementary_resource" | "worksheet" | "slidedeck" | "lesson_guide";
3147
3147
  _state: "new";
3148
3148
  url: string | null;
3149
3149
  title: string | null;
@@ -3152,8 +3152,9 @@ declare const assetNewSchemaCamel: Omit<z.ZodType<{
3152
3152
  createdAt: string;
3153
3153
  updatedAt: string;
3154
3154
  assetId: number;
3155
+ tpcMediaIds: number[] | null;
3156
+ tpcWorksIds: number[] | null;
3155
3157
  assetUid: string;
3156
- assetType: "worksheet_answers" | "downloadable_file" | "supplementary_resource" | "worksheet" | "slidedeck" | "lesson_guide";
3157
3158
  assetObject: {
3158
3159
  pdf?: {
3159
3160
  bucketName: string | null;
@@ -3175,8 +3176,7 @@ declare const assetNewSchemaCamel: Omit<z.ZodType<{
3175
3176
  url: string | null;
3176
3177
  } | undefined;
3177
3178
  };
3178
- tpcMediaIds: number[] | null;
3179
- tpcWorksIds: number[] | null;
3179
+ assetType: "worksheet_answers" | "downloadable_file" | "supplementary_resource" | "worksheet" | "slidedeck" | "lesson_guide";
3180
3180
  _state: "new";
3181
3181
  url: string | null;
3182
3182
  title: string | null;
@@ -3186,8 +3186,9 @@ declare const assetNewSchemaCamel: Omit<z.ZodType<{
3186
3186
  created_at: string;
3187
3187
  updated_at: string;
3188
3188
  asset_id: number;
3189
+ tpc_media_ids: number[] | null;
3190
+ tpc_works_ids: number[] | null;
3189
3191
  asset_uid: string;
3190
- asset_type: "worksheet_answers" | "downloadable_file" | "supplementary_resource" | "worksheet" | "slidedeck" | "lesson_guide";
3191
3192
  asset_object: {
3192
3193
  pdf?: {
3193
3194
  bucket_name: string | null;
@@ -3209,8 +3210,7 @@ declare const assetNewSchemaCamel: Omit<z.ZodType<{
3209
3210
  url: string | null;
3210
3211
  } | undefined;
3211
3212
  };
3212
- tpc_media_ids: number[] | null;
3213
- tpc_works_ids: number[] | null;
3213
+ asset_type: "worksheet_answers" | "downloadable_file" | "supplementary_resource" | "worksheet" | "slidedeck" | "lesson_guide";
3214
3214
  _state: "new";
3215
3215
  url: string | null;
3216
3216
  title: string | null;
@@ -3219,8 +3219,9 @@ declare const assetNewSchemaCamel: Omit<z.ZodType<{
3219
3219
  createdAt: string;
3220
3220
  updatedAt: string;
3221
3221
  assetId: number;
3222
+ tpcMediaIds: number[] | null;
3223
+ tpcWorksIds: number[] | null;
3222
3224
  assetUid: string;
3223
- assetType: "worksheet_answers" | "downloadable_file" | "supplementary_resource" | "worksheet" | "slidedeck" | "lesson_guide";
3224
3225
  assetObject: {
3225
3226
  pdf?: {
3226
3227
  bucketName: string | null;
@@ -3242,8 +3243,7 @@ declare const assetNewSchemaCamel: Omit<z.ZodType<{
3242
3243
  url: string | null;
3243
3244
  } | undefined;
3244
3245
  };
3245
- tpcMediaIds: number[] | null;
3246
- tpcWorksIds: number[] | null;
3246
+ assetType: "worksheet_answers" | "downloadable_file" | "supplementary_resource" | "worksheet" | "slidedeck" | "lesson_guide";
3247
3247
  _state: "new";
3248
3248
  url: string | null;
3249
3249
  title: string | null;
@@ -3253,8 +3253,9 @@ declare const assetNewSchemaCamel: Omit<z.ZodType<{
3253
3253
  created_at: string;
3254
3254
  updated_at: string;
3255
3255
  asset_id: number;
3256
+ tpc_media_ids: number[] | null;
3257
+ tpc_works_ids: number[] | null;
3256
3258
  asset_uid: string;
3257
- asset_type: "worksheet_answers" | "downloadable_file" | "supplementary_resource" | "worksheet" | "slidedeck" | "lesson_guide";
3258
3259
  asset_object: {
3259
3260
  pdf?: {
3260
3261
  bucket_name: string | null;
@@ -3276,8 +3277,7 @@ declare const assetNewSchemaCamel: Omit<z.ZodType<{
3276
3277
  url: string | null;
3277
3278
  } | undefined;
3278
3279
  };
3279
- tpc_media_ids: number[] | null;
3280
- tpc_works_ids: number[] | null;
3280
+ asset_type: "worksheet_answers" | "downloadable_file" | "supplementary_resource" | "worksheet" | "slidedeck" | "lesson_guide";
3281
3281
  _state: "new";
3282
3282
  url: string | null;
3283
3283
  title: string | null;
@@ -3288,8 +3288,9 @@ declare const assetNewSchemaCamel: Omit<z.ZodType<{
3288
3288
  createdAt: string;
3289
3289
  updatedAt: string;
3290
3290
  assetId: number;
3291
+ tpcMediaIds: number[] | null;
3292
+ tpcWorksIds: number[] | null;
3291
3293
  assetUid: string;
3292
- assetType: "worksheet_answers" | "downloadable_file" | "supplementary_resource" | "worksheet" | "slidedeck" | "lesson_guide";
3293
3294
  assetObject: {
3294
3295
  pdf?: {
3295
3296
  bucketName: string | null;
@@ -3311,8 +3312,7 @@ declare const assetNewSchemaCamel: Omit<z.ZodType<{
3311
3312
  url: string | null;
3312
3313
  } | undefined;
3313
3314
  };
3314
- tpcMediaIds: number[] | null;
3315
- tpcWorksIds: number[] | null;
3315
+ assetType: "worksheet_answers" | "downloadable_file" | "supplementary_resource" | "worksheet" | "slidedeck" | "lesson_guide";
3316
3316
  _state: "new";
3317
3317
  url: string | null;
3318
3318
  title: string | null;
@@ -6678,7 +6678,6 @@ declare const lessonSchema: z.ZodObject<{
6678
6678
  }, z.core.$strip>;
6679
6679
  type Lesson = z.infer<typeof lessonSchema>;
6680
6680
  declare const lessonNewSchema: z.ZodObject<{
6681
- description: z.ZodString;
6682
6681
  lesson_id: z.ZodNumber;
6683
6682
  lesson_uid: z.ZodString;
6684
6683
  _cohort: z.ZodEnum<{
@@ -6726,6 +6725,7 @@ declare const lessonNewSchema: z.ZodObject<{
6726
6725
  display_name: z.ZodString;
6727
6726
  }, z.core.$strip>;
6728
6727
  }, z.core.$strip>>>;
6728
+ title: z.ZodString;
6729
6729
  phonics_outcome: z.ZodNullable<z.ZodString>;
6730
6730
  key_learning_points: z.ZodNullable<z.ZodArray<z.ZodObject<{
6731
6731
  key_learning_point: z.ZodString;
@@ -6784,7 +6784,8 @@ declare const lessonNewSchema: z.ZodObject<{
6784
6784
  revisited_vocabulary_list: z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>;
6785
6785
  lesson_release_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6786
6786
  _state: z.ZodLiteral<"new">;
6787
- pupil_lesson_outcome: z.ZodNullable<z.ZodString>;
6787
+ pupil_lesson_outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6788
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6788
6789
  }, z.core.$strip>;
6789
6790
  declare const lessonPublishedSchema: z.ZodObject<{
6790
6791
  created_at: z.ZodString;
@@ -7601,7 +7602,6 @@ declare const lessonSchemaCamel: Omit<z.ZodType<{
7601
7602
  };
7602
7603
  type LessonCamel = z.infer<typeof lessonSchemaCamel>;
7603
7604
  declare const lessonNewSchemaCamel: Omit<z.ZodType<{
7604
- description: string;
7605
7605
  lessonId: number;
7606
7606
  lessonUid: string;
7607
7607
  _cohort: "0" | "2020-2023" | "2023-2024" | "2024-2025";
@@ -7616,6 +7616,7 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
7616
7616
  displayName: string;
7617
7617
  };
7618
7618
  }[] | null;
7619
+ title: string;
7619
7620
  phonicsOutcome: string | null;
7620
7621
  keyLearningPoints: {
7621
7622
  keyLearningPoint: string;
@@ -7680,7 +7681,6 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
7680
7681
  [x: string]: never;
7681
7682
  }[] | null;
7682
7683
  _state: "new";
7683
- pupilLessonOutcome: string | null;
7684
7684
  mediaClips?: {
7685
7685
  [x: string]: {
7686
7686
  order: string | number;
@@ -7715,8 +7715,9 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
7715
7715
  lessonOutline: string;
7716
7716
  }[] | null | undefined;
7717
7717
  lessonReleaseDate?: string | null | undefined;
7718
+ pupilLessonOutcome?: string | null | undefined;
7719
+ description?: string | null | undefined;
7718
7720
  }, unknown, z.core.$ZodTypeInternals<{
7719
- description: string;
7720
7721
  lessonId: number;
7721
7722
  lessonUid: string;
7722
7723
  _cohort: "0" | "2020-2023" | "2023-2024" | "2024-2025";
@@ -7731,6 +7732,7 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
7731
7732
  displayName: string;
7732
7733
  };
7733
7734
  }[] | null;
7735
+ title: string;
7734
7736
  phonicsOutcome: string | null;
7735
7737
  keyLearningPoints: {
7736
7738
  keyLearningPoint: string;
@@ -7795,7 +7797,6 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
7795
7797
  [x: string]: never;
7796
7798
  }[] | null;
7797
7799
  _state: "new";
7798
- pupilLessonOutcome: string | null;
7799
7800
  mediaClips?: {
7800
7801
  [x: string]: {
7801
7802
  order: string | number;
@@ -7830,9 +7831,10 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
7830
7831
  lessonOutline: string;
7831
7832
  }[] | null | undefined;
7832
7833
  lessonReleaseDate?: string | null | undefined;
7834
+ pupilLessonOutcome?: string | null | undefined;
7835
+ description?: string | null | undefined;
7833
7836
  }, unknown>>, "parse" | "safeParse"> & {
7834
7837
  parse: (input: {
7835
- description: string;
7836
7838
  lesson_id: number;
7837
7839
  lesson_uid: string;
7838
7840
  _cohort: "0" | "2020-2023" | "2023-2024" | "2024-2025";
@@ -7847,6 +7849,7 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
7847
7849
  display_name: string;
7848
7850
  };
7849
7851
  }[] | null;
7852
+ title: string;
7850
7853
  phonics_outcome: string | null;
7851
7854
  key_learning_points: {
7852
7855
  key_learning_point: string;
@@ -7901,7 +7904,6 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
7901
7904
  new_vocabulary_list: Record<string, never>[] | null;
7902
7905
  revisited_vocabulary_list: Record<string, never>[] | null;
7903
7906
  _state: "new";
7904
- pupil_lesson_outcome: string | null;
7905
7907
  media_clips?: Record<string, {
7906
7908
  order: string | number;
7907
7909
  media_id: string | number;
@@ -7934,8 +7936,9 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
7934
7936
  lesson_outline: string;
7935
7937
  }[] | null | undefined;
7936
7938
  lesson_release_date?: string | null | undefined;
7939
+ pupil_lesson_outcome?: string | null | undefined;
7940
+ description?: string | null | undefined;
7937
7941
  }) => {
7938
- description: string;
7939
7942
  lessonId: number;
7940
7943
  lessonUid: string;
7941
7944
  _cohort: "0" | "2020-2023" | "2023-2024" | "2024-2025";
@@ -7950,6 +7953,7 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
7950
7953
  displayName: string;
7951
7954
  };
7952
7955
  }[] | null;
7956
+ title: string;
7953
7957
  phonicsOutcome: string | null;
7954
7958
  keyLearningPoints: {
7955
7959
  keyLearningPoint: string;
@@ -8014,7 +8018,6 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
8014
8018
  [x: string]: never;
8015
8019
  }[] | null;
8016
8020
  _state: "new";
8017
- pupilLessonOutcome: string | null;
8018
8021
  mediaClips?: {
8019
8022
  [x: string]: {
8020
8023
  order: string | number;
@@ -8049,9 +8052,10 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
8049
8052
  lessonOutline: string;
8050
8053
  }[] | null | undefined;
8051
8054
  lessonReleaseDate?: string | null | undefined;
8055
+ pupilLessonOutcome?: string | null | undefined;
8056
+ description?: string | null | undefined;
8052
8057
  };
8053
8058
  safeParse: (input: {
8054
- description: string;
8055
8059
  lesson_id: number;
8056
8060
  lesson_uid: string;
8057
8061
  _cohort: "0" | "2020-2023" | "2023-2024" | "2024-2025";
@@ -8066,6 +8070,7 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
8066
8070
  display_name: string;
8067
8071
  };
8068
8072
  }[] | null;
8073
+ title: string;
8069
8074
  phonics_outcome: string | null;
8070
8075
  key_learning_points: {
8071
8076
  key_learning_point: string;
@@ -8120,7 +8125,6 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
8120
8125
  new_vocabulary_list: Record<string, never>[] | null;
8121
8126
  revisited_vocabulary_list: Record<string, never>[] | null;
8122
8127
  _state: "new";
8123
- pupil_lesson_outcome: string | null;
8124
8128
  media_clips?: Record<string, {
8125
8129
  order: string | number;
8126
8130
  media_id: string | number;
@@ -8153,10 +8157,11 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
8153
8157
  lesson_outline: string;
8154
8158
  }[] | null | undefined;
8155
8159
  lesson_release_date?: string | null | undefined;
8160
+ pupil_lesson_outcome?: string | null | undefined;
8161
+ description?: string | null | undefined;
8156
8162
  }) => {
8157
8163
  success: boolean;
8158
8164
  data?: {
8159
- description: string;
8160
8165
  lessonId: number;
8161
8166
  lessonUid: string;
8162
8167
  _cohort: "0" | "2020-2023" | "2023-2024" | "2024-2025";
@@ -8171,6 +8176,7 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
8171
8176
  displayName: string;
8172
8177
  };
8173
8178
  }[] | null;
8179
+ title: string;
8174
8180
  phonicsOutcome: string | null;
8175
8181
  keyLearningPoints: {
8176
8182
  keyLearningPoint: string;
@@ -8235,7 +8241,6 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
8235
8241
  [x: string]: never;
8236
8242
  }[] | null;
8237
8243
  _state: "new";
8238
- pupilLessonOutcome: string | null;
8239
8244
  mediaClips?: {
8240
8245
  [x: string]: {
8241
8246
  order: string | number;
@@ -8270,6 +8275,8 @@ declare const lessonNewSchemaCamel: Omit<z.ZodType<{
8270
8275
  lessonOutline: string;
8271
8276
  }[] | null | undefined;
8272
8277
  lessonReleaseDate?: string | null | undefined;
8278
+ pupilLessonOutcome?: string | null | undefined;
8279
+ description?: string | null | undefined;
8273
8280
  } | undefined;
8274
8281
  error?: any;
8275
8282
  };
@@ -20003,7 +20010,6 @@ declare const programmeListingSchema: z.ZodObject<{
20003
20010
  dataset: z.ZodOptional<z.ZodString>;
20004
20011
  }, z.core.$strip>;
20005
20012
  is_legacy: z.ZodBoolean;
20006
- programme_slug: z.ZodString;
20007
20013
  lesson_data: z.ZodObject<{
20008
20014
  created_at: z.ZodString;
20009
20015
  updated_at: z.ZodString;
@@ -20117,6 +20123,7 @@ declare const programmeListingSchema: z.ZodObject<{
20117
20123
  }, z.core.$strip>>>;
20118
20124
  lesson_release_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20119
20125
  }, z.core.$strip>;
20126
+ programme_slug: z.ZodString;
20120
20127
  }, z.core.$strip>;
20121
20128
  type ProgrammeListing = z.infer<typeof programmeListingSchema>;
20122
20129
  declare const programmeListingSchemaCamel: Omit<z.ZodType<{
@@ -20157,7 +20164,6 @@ declare const programmeListingSchemaCamel: Omit<z.ZodType<{
20157
20164
  dataset?: string | undefined;
20158
20165
  };
20159
20166
  isLegacy: boolean;
20160
- programmeSlug: string;
20161
20167
  lessonData: {
20162
20168
  createdAt: string;
20163
20169
  updatedAt: string;
@@ -20278,6 +20284,7 @@ declare const programmeListingSchemaCamel: Omit<z.ZodType<{
20278
20284
  } | null | undefined;
20279
20285
  lessonReleaseDate?: string | null | undefined;
20280
20286
  };
20287
+ programmeSlug: string;
20281
20288
  }, unknown, z.core.$ZodTypeInternals<{
20282
20289
  programmeFields: {
20283
20290
  subject: "Computing (non-GCSE)" | "Art and design" | "Citizenship" | "Computing" | "Computer Science" | "Design and technology" | "Drama" | "English" | "English grammar" | "English reading for pleasure" | "English spelling" | "Expressive arts and design" | "Financial education" | "French" | "Geography" | "German" | "History" | "Latin" | "Literacy" | "Maths" | "Music" | "Personal, social and emotional development" | "Physical education" | "RSHE (PSHE)" | "Religious education" | "Rule of law" | "Science" | "Biology" | "Chemistry" | "Combined science" | "Physics" | "Spanish" | "Understanding the world" | "Specialist" | "Communication and language" | "Creative arts" | "Independent living" | "Numeracy" | "Physical development" | "Therapies" | "Occupational therapy" | "Physical therapy" | "Sensory integration" | "Speech and language therapy" | "QA testing only" | "Cooking and nutrition";
@@ -20316,7 +20323,6 @@ declare const programmeListingSchemaCamel: Omit<z.ZodType<{
20316
20323
  dataset?: string | undefined;
20317
20324
  };
20318
20325
  isLegacy: boolean;
20319
- programmeSlug: string;
20320
20326
  lessonData: {
20321
20327
  createdAt: string;
20322
20328
  updatedAt: string;
@@ -20437,6 +20443,7 @@ declare const programmeListingSchemaCamel: Omit<z.ZodType<{
20437
20443
  } | null | undefined;
20438
20444
  lessonReleaseDate?: string | null | undefined;
20439
20445
  };
20446
+ programmeSlug: string;
20440
20447
  }, unknown>>, "parse" | "safeParse"> & {
20441
20448
  parse: (input: {
20442
20449
  programme_fields: {
@@ -20476,7 +20483,6 @@ declare const programmeListingSchemaCamel: Omit<z.ZodType<{
20476
20483
  dataset?: string | undefined;
20477
20484
  };
20478
20485
  is_legacy: boolean;
20479
- programme_slug: string;
20480
20486
  lesson_data: {
20481
20487
  created_at: string;
20482
20488
  updated_at: string;
@@ -20585,6 +20591,7 @@ declare const programmeListingSchemaCamel: Omit<z.ZodType<{
20585
20591
  }[]> | null | undefined;
20586
20592
  lesson_release_date?: string | null | undefined;
20587
20593
  };
20594
+ programme_slug: string;
20588
20595
  }) => {
20589
20596
  programmeFields: {
20590
20597
  subject: "Computing (non-GCSE)" | "Art and design" | "Citizenship" | "Computing" | "Computer Science" | "Design and technology" | "Drama" | "English" | "English grammar" | "English reading for pleasure" | "English spelling" | "Expressive arts and design" | "Financial education" | "French" | "Geography" | "German" | "History" | "Latin" | "Literacy" | "Maths" | "Music" | "Personal, social and emotional development" | "Physical education" | "RSHE (PSHE)" | "Religious education" | "Rule of law" | "Science" | "Biology" | "Chemistry" | "Combined science" | "Physics" | "Spanish" | "Understanding the world" | "Specialist" | "Communication and language" | "Creative arts" | "Independent living" | "Numeracy" | "Physical development" | "Therapies" | "Occupational therapy" | "Physical therapy" | "Sensory integration" | "Speech and language therapy" | "QA testing only" | "Cooking and nutrition";
@@ -20623,7 +20630,6 @@ declare const programmeListingSchemaCamel: Omit<z.ZodType<{
20623
20630
  dataset?: string | undefined;
20624
20631
  };
20625
20632
  isLegacy: boolean;
20626
- programmeSlug: string;
20627
20633
  lessonData: {
20628
20634
  createdAt: string;
20629
20635
  updatedAt: string;
@@ -20744,6 +20750,7 @@ declare const programmeListingSchemaCamel: Omit<z.ZodType<{
20744
20750
  } | null | undefined;
20745
20751
  lessonReleaseDate?: string | null | undefined;
20746
20752
  };
20753
+ programmeSlug: string;
20747
20754
  };
20748
20755
  safeParse: (input: {
20749
20756
  programme_fields: {
@@ -20783,7 +20790,6 @@ declare const programmeListingSchemaCamel: Omit<z.ZodType<{
20783
20790
  dataset?: string | undefined;
20784
20791
  };
20785
20792
  is_legacy: boolean;
20786
- programme_slug: string;
20787
20793
  lesson_data: {
20788
20794
  created_at: string;
20789
20795
  updated_at: string;
@@ -20892,6 +20898,7 @@ declare const programmeListingSchemaCamel: Omit<z.ZodType<{
20892
20898
  }[]> | null | undefined;
20893
20899
  lesson_release_date?: string | null | undefined;
20894
20900
  };
20901
+ programme_slug: string;
20895
20902
  }) => {
20896
20903
  success: boolean;
20897
20904
  data?: {
@@ -20932,7 +20939,6 @@ declare const programmeListingSchemaCamel: Omit<z.ZodType<{
20932
20939
  dataset?: string | undefined;
20933
20940
  };
20934
20941
  isLegacy: boolean;
20935
- programmeSlug: string;
20936
20942
  lessonData: {
20937
20943
  createdAt: string;
20938
20944
  updatedAt: string;
@@ -21053,6 +21059,7 @@ declare const programmeListingSchemaCamel: Omit<z.ZodType<{
21053
21059
  } | null | undefined;
21054
21060
  lessonReleaseDate?: string | null | undefined;
21055
21061
  };
21062
+ programmeSlug: string;
21056
21063
  } | undefined;
21057
21064
  error?: any;
21058
21065
  };
@@ -21350,7 +21357,6 @@ declare const programmeListingArraySchema: z.ZodArray<z.ZodObject<{
21350
21357
  dataset: z.ZodOptional<z.ZodString>;
21351
21358
  }, z.core.$strip>;
21352
21359
  is_legacy: z.ZodBoolean;
21353
- programme_slug: z.ZodString;
21354
21360
  lesson_data: z.ZodObject<{
21355
21361
  created_at: z.ZodString;
21356
21362
  updated_at: z.ZodString;
@@ -21464,6 +21470,7 @@ declare const programmeListingArraySchema: z.ZodArray<z.ZodObject<{
21464
21470
  }, z.core.$strip>>>;
21465
21471
  lesson_release_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21466
21472
  }, z.core.$strip>;
21473
+ programme_slug: z.ZodString;
21467
21474
  }, z.core.$strip>>;
21468
21475
  type ProgrammeListingArray = z.infer<typeof programmeListingArraySchema>;
21469
21476
  declare const programmeListingArraySchemaCamel: Omit<z.ZodType<{
@@ -21504,7 +21511,6 @@ declare const programmeListingArraySchemaCamel: Omit<z.ZodType<{
21504
21511
  dataset?: string | undefined;
21505
21512
  };
21506
21513
  isLegacy: boolean;
21507
- programmeSlug: string;
21508
21514
  lessonData: {
21509
21515
  createdAt: string;
21510
21516
  updatedAt: string;
@@ -21625,6 +21631,7 @@ declare const programmeListingArraySchemaCamel: Omit<z.ZodType<{
21625
21631
  } | null | undefined;
21626
21632
  lessonReleaseDate?: string | null | undefined;
21627
21633
  };
21634
+ programmeSlug: string;
21628
21635
  }[], unknown, z.core.$ZodTypeInternals<{
21629
21636
  programmeFields: {
21630
21637
  subject: "Computing (non-GCSE)" | "Art and design" | "Citizenship" | "Computing" | "Computer Science" | "Design and technology" | "Drama" | "English" | "English grammar" | "English reading for pleasure" | "English spelling" | "Expressive arts and design" | "Financial education" | "French" | "Geography" | "German" | "History" | "Latin" | "Literacy" | "Maths" | "Music" | "Personal, social and emotional development" | "Physical education" | "RSHE (PSHE)" | "Religious education" | "Rule of law" | "Science" | "Biology" | "Chemistry" | "Combined science" | "Physics" | "Spanish" | "Understanding the world" | "Specialist" | "Communication and language" | "Creative arts" | "Independent living" | "Numeracy" | "Physical development" | "Therapies" | "Occupational therapy" | "Physical therapy" | "Sensory integration" | "Speech and language therapy" | "QA testing only" | "Cooking and nutrition";
@@ -21663,7 +21670,6 @@ declare const programmeListingArraySchemaCamel: Omit<z.ZodType<{
21663
21670
  dataset?: string | undefined;
21664
21671
  };
21665
21672
  isLegacy: boolean;
21666
- programmeSlug: string;
21667
21673
  lessonData: {
21668
21674
  createdAt: string;
21669
21675
  updatedAt: string;
@@ -21784,6 +21790,7 @@ declare const programmeListingArraySchemaCamel: Omit<z.ZodType<{
21784
21790
  } | null | undefined;
21785
21791
  lessonReleaseDate?: string | null | undefined;
21786
21792
  };
21793
+ programmeSlug: string;
21787
21794
  }[], unknown>>, "parse" | "safeParse"> & {
21788
21795
  parse: (input: {
21789
21796
  programme_fields: {
@@ -21823,7 +21830,6 @@ declare const programmeListingArraySchemaCamel: Omit<z.ZodType<{
21823
21830
  dataset?: string | undefined;
21824
21831
  };
21825
21832
  is_legacy: boolean;
21826
- programme_slug: string;
21827
21833
  lesson_data: {
21828
21834
  created_at: string;
21829
21835
  updated_at: string;
@@ -21932,6 +21938,7 @@ declare const programmeListingArraySchemaCamel: Omit<z.ZodType<{
21932
21938
  }[]> | null | undefined;
21933
21939
  lesson_release_date?: string | null | undefined;
21934
21940
  };
21941
+ programme_slug: string;
21935
21942
  }[]) => {
21936
21943
  programmeFields: {
21937
21944
  subject: "Computing (non-GCSE)" | "Art and design" | "Citizenship" | "Computing" | "Computer Science" | "Design and technology" | "Drama" | "English" | "English grammar" | "English reading for pleasure" | "English spelling" | "Expressive arts and design" | "Financial education" | "French" | "Geography" | "German" | "History" | "Latin" | "Literacy" | "Maths" | "Music" | "Personal, social and emotional development" | "Physical education" | "RSHE (PSHE)" | "Religious education" | "Rule of law" | "Science" | "Biology" | "Chemistry" | "Combined science" | "Physics" | "Spanish" | "Understanding the world" | "Specialist" | "Communication and language" | "Creative arts" | "Independent living" | "Numeracy" | "Physical development" | "Therapies" | "Occupational therapy" | "Physical therapy" | "Sensory integration" | "Speech and language therapy" | "QA testing only" | "Cooking and nutrition";
@@ -21970,7 +21977,6 @@ declare const programmeListingArraySchemaCamel: Omit<z.ZodType<{
21970
21977
  dataset?: string | undefined;
21971
21978
  };
21972
21979
  isLegacy: boolean;
21973
- programmeSlug: string;
21974
21980
  lessonData: {
21975
21981
  createdAt: string;
21976
21982
  updatedAt: string;
@@ -22091,6 +22097,7 @@ declare const programmeListingArraySchemaCamel: Omit<z.ZodType<{
22091
22097
  } | null | undefined;
22092
22098
  lessonReleaseDate?: string | null | undefined;
22093
22099
  };
22100
+ programmeSlug: string;
22094
22101
  }[];
22095
22102
  safeParse: (input: {
22096
22103
  programme_fields: {
@@ -22130,7 +22137,6 @@ declare const programmeListingArraySchemaCamel: Omit<z.ZodType<{
22130
22137
  dataset?: string | undefined;
22131
22138
  };
22132
22139
  is_legacy: boolean;
22133
- programme_slug: string;
22134
22140
  lesson_data: {
22135
22141
  created_at: string;
22136
22142
  updated_at: string;
@@ -22239,6 +22245,7 @@ declare const programmeListingArraySchemaCamel: Omit<z.ZodType<{
22239
22245
  }[]> | null | undefined;
22240
22246
  lesson_release_date?: string | null | undefined;
22241
22247
  };
22248
+ programme_slug: string;
22242
22249
  }[]) => {
22243
22250
  success: boolean;
22244
22251
  data?: {
@@ -22279,7 +22286,6 @@ declare const programmeListingArraySchemaCamel: Omit<z.ZodType<{
22279
22286
  dataset?: string | undefined;
22280
22287
  };
22281
22288
  isLegacy: boolean;
22282
- programmeSlug: string;
22283
22289
  lessonData: {
22284
22290
  createdAt: string;
22285
22291
  updatedAt: string;
@@ -22400,6 +22406,7 @@ declare const programmeListingArraySchemaCamel: Omit<z.ZodType<{
22400
22406
  } | null | undefined;
22401
22407
  lessonReleaseDate?: string | null | undefined;
22402
22408
  };
22409
+ programmeSlug: string;
22403
22410
  }[] | undefined;
22404
22411
  error?: any;
22405
22412
  };
@@ -26807,8 +26814,6 @@ declare const syntheticUnitvariantLessonsByKsSchema: z.ZodObject<{
26807
26814
  legacy: z.ZodOptional<z.ZodString>;
26808
26815
  dataset: z.ZodOptional<z.ZodString>;
26809
26816
  }, z.core.$strip>;
26810
- lesson_slug: z.ZodString;
26811
- is_legacy: z.ZodBoolean;
26812
26817
  actions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
26813
26818
  exclusions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
26814
26819
  pupilSubjectListingQuery: "pupilSubjectListingQuery";
@@ -27220,7 +27225,8 @@ declare const syntheticUnitvariantLessonsByKsSchema: z.ZodObject<{
27220
27225
  group_by_subjectcategory: z.ZodBoolean;
27221
27226
  }, z.core.$strip>>;
27222
27227
  }, z.core.$strip>>>;
27223
- programme_slug: z.ZodString;
27228
+ lesson_slug: z.ZodString;
27229
+ is_legacy: z.ZodBoolean;
27224
27230
  lesson_data: z.ZodObject<{
27225
27231
  created_at: z.ZodString;
27226
27232
  updated_at: z.ZodString;
@@ -27354,6 +27360,7 @@ declare const syntheticUnitvariantLessonsByKsSchema: z.ZodObject<{
27354
27360
  expiration_date: z.ZodNullable<z.ZodString>;
27355
27361
  }, z.core.$strip>;
27356
27362
  unit_slug: z.ZodString;
27363
+ programme_slug: z.ZodString;
27357
27364
  null_unitvariant_id: z.ZodNumber;
27358
27365
  static_lesson_list: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
27359
27366
  slug: z.ZodString;
@@ -27410,7 +27417,6 @@ declare const syntheticUnitvariantLessonsByKsSchemaCamel: Omit<z.ZodType<{
27410
27417
  };
27411
27418
  lessonSlug: string;
27412
27419
  isLegacy: boolean;
27413
- programmeSlug: string;
27414
27420
  lessonData: {
27415
27421
  createdAt: string;
27416
27422
  updatedAt: string;
@@ -27548,6 +27554,7 @@ declare const syntheticUnitvariantLessonsByKsSchemaCamel: Omit<z.ZodType<{
27548
27554
  priorKnowledgeRequirements?: string[] | null | undefined;
27549
27555
  };
27550
27556
  unitSlug: string;
27557
+ programmeSlug: string;
27551
27558
  nullUnitvariantId: number;
27552
27559
  features?: {
27553
27560
  pePractical?: boolean | undefined;
@@ -27666,7 +27673,6 @@ declare const syntheticUnitvariantLessonsByKsSchemaCamel: Omit<z.ZodType<{
27666
27673
  };
27667
27674
  lessonSlug: string;
27668
27675
  isLegacy: boolean;
27669
- programmeSlug: string;
27670
27676
  lessonData: {
27671
27677
  createdAt: string;
27672
27678
  updatedAt: string;
@@ -27804,6 +27810,7 @@ declare const syntheticUnitvariantLessonsByKsSchemaCamel: Omit<z.ZodType<{
27804
27810
  priorKnowledgeRequirements?: string[] | null | undefined;
27805
27811
  };
27806
27812
  unitSlug: string;
27813
+ programmeSlug: string;
27807
27814
  nullUnitvariantId: number;
27808
27815
  features?: {
27809
27816
  pePractical?: boolean | undefined;
@@ -27923,7 +27930,6 @@ declare const syntheticUnitvariantLessonsByKsSchemaCamel: Omit<z.ZodType<{
27923
27930
  };
27924
27931
  lesson_slug: string;
27925
27932
  is_legacy: boolean;
27926
- programme_slug: string;
27927
27933
  lesson_data: {
27928
27934
  created_at: string;
27929
27935
  updated_at: string;
@@ -28047,6 +28053,7 @@ declare const syntheticUnitvariantLessonsByKsSchemaCamel: Omit<z.ZodType<{
28047
28053
  prior_knowledge_requirements?: string[] | null | undefined;
28048
28054
  };
28049
28055
  unit_slug: string;
28056
+ programme_slug: string;
28050
28057
  null_unitvariant_id: number;
28051
28058
  features?: {
28052
28059
  pe_practical?: boolean | undefined;
@@ -28165,7 +28172,6 @@ declare const syntheticUnitvariantLessonsByKsSchemaCamel: Omit<z.ZodType<{
28165
28172
  };
28166
28173
  lessonSlug: string;
28167
28174
  isLegacy: boolean;
28168
- programmeSlug: string;
28169
28175
  lessonData: {
28170
28176
  createdAt: string;
28171
28177
  updatedAt: string;
@@ -28303,6 +28309,7 @@ declare const syntheticUnitvariantLessonsByKsSchemaCamel: Omit<z.ZodType<{
28303
28309
  priorKnowledgeRequirements?: string[] | null | undefined;
28304
28310
  };
28305
28311
  unitSlug: string;
28312
+ programmeSlug: string;
28306
28313
  nullUnitvariantId: number;
28307
28314
  features?: {
28308
28315
  pePractical?: boolean | undefined;
@@ -28422,7 +28429,6 @@ declare const syntheticUnitvariantLessonsByKsSchemaCamel: Omit<z.ZodType<{
28422
28429
  };
28423
28430
  lesson_slug: string;
28424
28431
  is_legacy: boolean;
28425
- programme_slug: string;
28426
28432
  lesson_data: {
28427
28433
  created_at: string;
28428
28434
  updated_at: string;
@@ -28546,6 +28552,7 @@ declare const syntheticUnitvariantLessonsByKsSchemaCamel: Omit<z.ZodType<{
28546
28552
  prior_knowledge_requirements?: string[] | null | undefined;
28547
28553
  };
28548
28554
  unit_slug: string;
28555
+ programme_slug: string;
28549
28556
  null_unitvariant_id: number;
28550
28557
  features?: {
28551
28558
  pe_practical?: boolean | undefined;
@@ -28666,7 +28673,6 @@ declare const syntheticUnitvariantLessonsByKsSchemaCamel: Omit<z.ZodType<{
28666
28673
  };
28667
28674
  lessonSlug: string;
28668
28675
  isLegacy: boolean;
28669
- programmeSlug: string;
28670
28676
  lessonData: {
28671
28677
  createdAt: string;
28672
28678
  updatedAt: string;
@@ -28804,6 +28810,7 @@ declare const syntheticUnitvariantLessonsByKsSchemaCamel: Omit<z.ZodType<{
28804
28810
  priorKnowledgeRequirements?: string[] | null | undefined;
28805
28811
  };
28806
28812
  unitSlug: string;
28813
+ programmeSlug: string;
28807
28814
  nullUnitvariantId: number;
28808
28815
  features?: {
28809
28816
  pePractical?: boolean | undefined;