@oaknational/oak-curriculum-schema 1.6.0 → 1.7.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.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/src/src/fixtures/syntheticUnitvariantsWithLessonIds.fixture.ts +1 -0
- package/dist/src/src/schema/syntheticUnitvariantsWithLessonIds.schema.ts +1 -0
- package/dist/src/src/schema/unitData.schema.ts +1 -0
- package/dist/types.d.ts +35 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("zod");const t=e.z.enum(["published","new","migration"]),i=e.z.enum(["2020-2023","2023-2024","0"]),r=e.z.enum(["foundation","primary","secondary"]),n=e.z.enum(["Early Years Foundation Stage","Primary","Secondary"]),s=e.z.enum(["foundation","primary","secondary"]),a=e.z.enum(["KS1","KS2","KS3","KS4","EYFS"]),o=e.z.enum(["ks1","ks2","ks3","ks4","early-years-foundation-stage"]),l=e.z.enum(["Key Stage 1","Key Stage 2","Key Stage 3","Key Stage 4","Early Years Foundation Stage"]),u=e.z.enum(["1","2","3","4","5","6","7","8","9","10","11","12","13","R"]),c=e.z.enum(["reception","year-1","year-2","year-3","year-4","year-5","year-6","year-7","year-8","year-9","year-10","year-11","year-12","year-13"]),d=e.z.enum(["Year 1","Year 2","Year 3","Year 4","Year 5","Year 6","Year 7","Year 8","Year 9","Year 10","Year 11","Year 12","Year 13","Reception"]),p=e.z.enum(["core","foundation","higher"]),_=e.z.enum(["core","foundation","higher"]),g=e.z.enum(["Core","Foundation","Higher"]),m=e.z.enum(["aqa","edexcel","eduqas","ocr","wjec"]),b=e.z.enum(["AQA","Edexcel","Eduqas","OCR","WJEC"]),z=e.z.enum(["Assessment and Qualifications Alliance","Edexcel","Eduqas","Oxford, Cambridge and RSA Examinations","Welsh Joint Education Committee"]),h=e.z.enum(["English","Geography","History","Maths","Music","Science","Biology","Physics","Chemistry","Combined science","Art and design","Citizenship","Computing","Computing (non-GCSE)","Design and technology","Drama","English grammar","English reading for pleasure","English spelling","Expressive arts and design","French","German","Latin","Literacy","Physical education","Personal, social and emotional development","Religious education","RSHE (PSHE)","Spanish","Understanding the world","Therapies","Occupational therapy","Physical therapy","Sensory integration","Speech and language therapy","Specialist","Physical development","Communication and language","Creative arts","Independent living","Numeracy","GCSE citizenship","Core citizenship","Computer science","Core computing","GCSE physical education","Core physical education","GCSE religious education","Core religious education","QA testing only","Relationships, sex and health education"]),y=e.z.enum(["english","geography","history","maths","music","science","biology","physics","chemistry","combined-science","art","citizenship","computing","computing-non-gcse","design-technology","drama","english-grammar","english-reading-for-pleasure","english-spelling","expressive-arts-and-design","french","german","latin","literacy","physical-education","personal-social-and-emotional-development","religious-education","rshe-pshe","spanish","understanding-the-world","therapies","occupational-therapy","physical-therapy","sensory-integration","speech-and-language-therapy","specialist","physical-development","communication-and-language","creative-arts","independent-living","numeracy","gcse-citizenship","core-citizenship","computer-science","core-computing","gcse-physical-education","core-physical-education","gcse-religious-education","core-religious-education","rshe"]),x=e.z.object({lesson_id:e.z.number(),lesson_uid:e.z.string(),slug:e.z.string(),title:e.z.string(),description:e.z.string(),pupil_lesson_outcome:e.z.string(),key_learning_points:e.z.array(e.z.object({})),equipment_and_resources:e.z.array(e.z.object({})).nullable(),content_guidance_details:e.z.array(e.z.object({})).nullable(),content_guidance:e.z.array(e.z.number()).nullable(),copyright_content:e.z.array(e.z.object({})).nullable(),supervision_level:e.z.string().nullable(),thirdpartycontent_list:e.z.array(e.z.number()).nullable(),misconceptions_and_common_mistakes:e.z.array(e.z.object({})).nullable(),keywords:e.z.array(e.z.object({})).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(),asset_id_slidedeck:e.z.number().nullable(),asset_id_worksheet:e.z.number().nullable(),deprecated_fields:e.z.record(e.z.unknown()).nullable(),_state:t,_cohort:i}),v=e.z.object({tier:p.nullable(),tier_id:e.z.number().nullable(),tier_slug:_.nullable(),tier_description:g.nullable(),tier_display_order:e.z.number().nullable(),examboard:b.nullable(),examboard_id:e.z.number().nullable(),examboard_slug:m.nullable(),examboard_description:z.nullable(),examboard_display_order:e.z.number().nullable(),year:u,year_slug:c,year_id:e.z.number(),year_description:d,year_display_order:e.z.number(),keystage:a,keystage_id:e.z.number(),keystage_slug:o,keystage_description:l,keystage_display_order:e.z.number(),phase:s,phase_id:e.z.number(),phase_slug:r,phase_description:n,phase_display_order:e.z.number(),subject:h,subject_id:e.z.number(),subject_slug:y,subject_description:e.z.string(),subject_display_order:e.z.number(),legacy:e.z.string().optional(),dataset:e.z.string().optional()}),j=e.z.object({unit_id:e.z.number(),unit_uid:e.z.string(),description:e.z.string().nullable(),slug:e.z.string(),tags:e.z.array(e.z.number()).nullable(),title:e.z.string(),_state:t,_cohort:i}),w=e.z.object({_state:t,_cohort:i,unit_id:e.z.number(),unitvariant_id:e.z.number(),_deleted:e.z.boolean(),unit_overrides:j.partial(),programme_fields:v.partial()}),k=e.z.object({format:e.z.enum(["png","jpg","jpeg","webp","gif","svg"]).optional(),secure_url:e.z.string().url(),url:e.z.string().url().optional(),height:e.z.number().optional(),width:e.z.number().optional(),metadata:e.z.union([e.z.array(e.z.any()),e.z.object({attribution:e.z.string().optional(),usageRestriction:e.z.string().optional()})]),public_id:e.z.string().optional(),version:e.z.number().optional()}),q=e.z.object({image_object:k,type:e.z.literal("image")}),S=e.z.object({text:e.z.string(),type:e.z.literal("text")}),f=e.z.object({answer:e.z.array(e.z.union([S,q]).optional()),answer_is_active:e.z.boolean().optional(),answer_is_correct:e.z.boolean().optional()}),F=e.z.object({answer:e.z.array(e.z.union([S,q]).optional()),answer_is_active:e.z.boolean().optional(),answer_is_default:e.z.boolean().optional()}),C=e.z.object({answer:e.z.array(S),correct_order:e.z.number().optional(),answer_is_active:e.z.boolean().optional()}),E=e.z.object({answer_is_active:e.z.boolean().optional(),correct_choice:e.z.array(S),match_option:e.z.array(S).optional()}),O=e.z.object({question_id:e.z.number(),question_uid:e.z.string(),question_type:e.z.string(),question_stem:e.z.array(e.z.union([S,q])).optional().nullable(),answers:e.z.object({"multiple-choice":e.z.array(f).optional(),"short-answer":e.z.array(F).optional(),order:e.z.array(C).optional(),match:e.z.array(E).optional()}).optional().nullable(),feedback:e.z.string().optional().nullable(),hint:e.z.string().optional().nullable(),active:e.z.boolean().optional(),order:e.z.number()}),Y=e.z.object({lesson_slug:e.z.string(),unit_slug:e.z.string(),programme_slug:e.z.string(),is_legacy:e.z.boolean(),lesson_data:x,unit_data:j,null_unitvariant:w,programme_fields:v,supplementary_data:e.z.object({unit_order:e.z.number(),order_in_unit:e.z.number()})}),P=e.z.object({unit_slug:e.z.string(),programme_slug:e.z.string(),is_legacy:e.z.boolean(),lesson_count:e.z.number(),unit_data:j,null_unitvariant:w,programme_fields:v,supplementary_data:e.z.object({unit_order:e.z.number()})}),A=e.z.object({equipment:e.z.string()}),R=e.z.object({key_learning_point:e.z.string()}),D=e.z.object({keyword:e.z.string(),description:e.z.string()}),T=e.z.object({misconception:e.z.string(),response:e.z.string()}),K=e.z.object({teacher_tip:e.z.string()}),W=e.z.object({contentguidance_label:e.z.string().nullable(),contentguidance_description:e.z.string().nullable(),contentguidance_area:e.z.string().nullable()}),G=e.z.object({lesson_id:e.z.number(),lesson_slug:e.z.string(),lesson_title:e.z.string().nullable(),content_guidance:e.z.array(W).nullable(),misconceptions_and_common_mistakes:e.z.array(T).nullable(),teacher_tips:e.z.array(K).nullable(),equipment_and_resources:e.z.array(A).nullable(),pupil_lesson_outcome:e.z.string().nullable(),lesson_keywords:e.z.array(D).nullable(),supervision_level:e.z.string().nullable(),key_learning_points:e.z.array(R).nullable().optional(),video_mux_playback_id:e.z.string().nullable(),video_with_sign_language_mux_playback_id:e.z.string().nullable(),video_id:e.z.number().nullable(),video_title:e.z.string().nullable(),transcript_sentences:e.z.string().nullable(),starter_quiz:e.z.array(O).optional().nullable(),exit_quiz:e.z.array(O).optional().nullable(),starter_quiz_id:e.z.number().nullable(),exit_quiz_id:e.z.number().nullable(),state:e.z.string(),is_legacy:e.z.boolean().nullable(),deprecated_fields:e.z.record(e.z.unknown()).nullable()}),Q=e.z.object({year_slug:c,programme_slug:e.z.string(),base_slug:e.z.string(),is_legacy:e.z.boolean(),programme_fields:v}),L=e.z.object({unit_id:e.z.number(),threads:e.z.array(e.z.object({theme_slug:e.z.string(),theme_title:e.z.string()})).nullable()}),U=({overrides:e={}}={})=>Object.assign({lesson_id:1,lesson_uid:"lesson-uid",title:"lesson-title",description:"lesson-description",slug:"lesson-slug",pupil_lesson_outcome:"pupil-lesson-outcome",key_learning_points:[{}],equipment_and_resources:null,content_guidance_details:null,content_guidance:null,supervision_level:null,thirdpartycontent_list:null,misconceptions_and_common_mistakes:null,keywords:null,video_id:null,sign_language_video_id:null,quiz_id_starter:null,quiz_id_exit:null,asset_id_slidedeck:null,asset_id_worksheet:null,copyright_content:null,_state:"published",_cohort:"2023-2024",deprecated_fields:null},e),H=({overrides:e}={})=>Object.assign({tier:null,tier_id:null,tier_slug:null,tier_description:null,tier_display_order:null,examboard:null,examboard_id:null,examboard_slug:null,examboard_description:null,examboard_display_order:null,year:"1",year_slug:"year-1",year_id:1,year_description:"Year 1",year_display_order:1,keystage:"KS1",keystage_id:1,keystage_slug:"ks1",keystage_description:"Key Stage 1",keystage_display_order:1,phase:"primary",phase_id:0,phase_slug:"primary",phase_description:"Primary",phase_display_order:1,subject:"Maths",subject_id:1,subject_slug:"maths",subject_description:"subject-description",subject_display_order:1},e),I=({overrides:e={}}={})=>Object.assign({unit_id:0,unit_uid:"unit-uid",description:null,slug:"unit-slug",tags:null,title:"unit-title",_state:"published",_cohort:"2023-2024"},e),M=({overrides:e={}}={})=>Object.assign({unitvariant_id:1,unit_id:1,_deleted:!1,_state:"published",_cohort:"2023-2024",unit_overrides:{},programme_fields:{}},e),B=({overrides:e={}}={})=>Object.assign({text:"Hello, World!",type:"text"},e),J=({overrides:e={}}={})=>Object.assign({answer:[B(),{image_object:{format:"png",secure_url:"https://res.cloudinary.com/demo/image/upload/sample.png",url:"http://res.cloudinary.com/demo/image/upload/sample.png",height:100,width:100,metadata:{attribution:"author",usageRestriction:"free"},public_id:"sample",version:1234567890},type:"image"}],answer_is_active:!0,answer_is_correct:!0},e),N=({overrides:e={}}={})=>Object.assign({answer:[B(),{image_object:{format:"png",secure_url:"https://res.cloudinary.com/demo/image/upload/sample.png",url:"http://res.cloudinary.com/demo/image/upload/sample.png",height:100,width:100,metadata:{attribution:"author",usageRestriction:"free"},public_id:"sample",version:1234567890},type:"image"}],answer_is_active:!0,answer_is_default:!0},e),V=({overrides:e={}}={})=>Object.assign({answer:[B()],correct_order:1,answer_is_active:!0},e),X=({overrides:e={}}={})=>Object.assign({answer_is_active:!0,correct_choice:[B({overrides:{text:"Paris"}})],match_option:[B({overrides:{text:"Capital of France"}})]},e),Z=({overrides:e={}}={})=>Object.assign({question_id:1,question_uid:"question-1",question_type:"multiple-choice",question_stem:[{text:"What is the capital of France?",type:"text"}],answers:{"multiple-choice":[J({overrides:{answer_is_correct:!0}}),J({overrides:{answer_is_correct:!1}}),J({overrides:{answer_is_correct:!1}}),J({overrides:{answer_is_correct:!1}})]},feedback:"Paris is the capital of France.",hint:"Think about the Eiffel Tower.",active:!0,order:1},e),$=({overrides:e={}}={})=>Object.assign({question_id:2,question_uid:"question-2",question_type:"short-answer",question_stem:[{text:"What is the capital of France?",type:"text"}],answers:{"short-answer":[N()]},feedback:"Paris is the capital of France.",hint:"Think about the Eiffel Tower.",active:!0,order:2},e),ee=({overrides:e={}}={})=>Object.assign({question_id:3,question_uid:"question-3",question_type:"order",question_stem:[{text:"What is the capital of France?",type:"text"}],answers:{order:[V({overrides:{correct_order:1}}),V({overrides:{correct_order:2}}),V({overrides:{correct_order:3}}),V({overrides:{correct_order:4}})]},feedback:"Paris is the capital of France.",hint:"Think about the Eiffel Tower.",active:!0,order:3},e),te=({overrides:e={}}={})=>Object.assign({question_id:4,question_uid:"question-4",question_type:"match",question_stem:[{text:"What is the capital of France?",type:"text"}],answers:{match:[X(),X(),X(),X()]},feedback:"Paris is the capital of France.",hint:"Think about the Eiffel Tower.",active:!0,order:4},e),ie=()=>({equipment:"equipment"}),re=()=>({teacher_tip:"teacher-tip"}),ne=()=>({keyword:"keyword",description:"description"}),se=()=>({misconception:"misconception",response:"response"}),ae=()=>({contentguidance_label:"contentguidance-label",contentguidance_description:"contentguidance-description",contentguidance_area:"contentguidance-area"});exports._cohortSchema=i,exports._stateSchema=t,exports.contentGuidanceFixture=ae,exports.contentGuidanceSchema=W,exports.examboardDescriptions=z,exports.examboardSlugs=m,exports.examboards=b,exports.imageItemSchema=q,exports.imageObjectSchema=k,exports.keyLearningPointsSchema=R,exports.keystageDescriptions=l,exports.keystageSlugs=o,exports.keystages=a,exports.keywordsFixture=ne,exports.keywordsSchema=D,exports.lessonContentFixture=({overrides:e={}}={})=>Object.assign({lesson_id:1,lesson_title:"lesson-title",lesson_slug:"lesson-slug",deprecated_fields:{},is_legacy:!1,misconceptions_and_common_mistakes:[{misconception:"misconception",response:"response"}],equipment_and_resources:[{equipment:"equipment"}],teacher_tips:[{teacher_tip:"teacher-tip"}],key_learning_points:null,pupil_lesson_outcome:"pupil-lesson-outcome",lesson_keywords:[{keyword:"keyword",description:"description"}],content_guidance:[{contentguidance_label:"contentguidance-label",contentguidance_description:"contentguidance-description",contentguidance_area:"contentguidance-area"}],video_mux_playback_id:"video-mux-playback-id",video_id:null,video_with_sign_language_mux_playback_id:"video-with-sign-language-mux-playback-id",video_title:"video-title",transcript_sentences:"this is the transcript",starter_quiz:[Z({overrides:{order:1,question_uid:"starter-quiz-1"}}),ee({overrides:{order:2,question_uid:"starter-quiz-2"}}),te({overrides:{order:3,question_uid:"starter-quiz-3"}}),$({overrides:{order:4,question_uid:"starter-quiz-4"}})],starter_quiz_id:1,exit_quiz:null,exit_quiz_id:null,supervision_level:null,state:"published"},e),exports.lessonContentSchema=G,exports.lessonDataFixture=U,exports.lessonDataSchema=x,exports.lessonEquipmentAndResourcesFixture=ie,exports.lessonEquipmentAndResourcesSchema=A,exports.matchFixture=X,exports.matchQuestion=te,exports.matchSchema=E,exports.misconceptionsAndCommonMistakesFixture=se,exports.misconceptionsAndCommonMistakesSchema=T,exports.multipleChoiceFixture=J,exports.multipleChoiceQuestion=Z,exports.multipleChoiceSchema=f,exports.orderFixture=V,exports.orderQuestion=ee,exports.orderSchema=C,exports.phaseDescriptions=n,exports.phaseSlugs=r,exports.phases=s,exports.programmeFieldsFixture=H,exports.programmeFieldsSchema=v,exports.quizQuestionSchema=O,exports.shortAnswerFixture=N,exports.shortAnswerQuestion=$,exports.shortAnswerSchema=F,exports.subjectSlugs=y,exports.subjects=h,exports.syntheticProgrammesByYearFixture=({overrides:e={}}={})=>({year_slug:"year-1",base_slug:"maths-primary-year-1",programme_slug:"maths-primary-year-1",is_legacy:!1,programme_fields:H()}),exports.syntheticProgrammesByYearSchema=Q,exports.syntheticUnitvariantLessonsFixture=({overrides:e={}}={})=>Object.assign({lesson_slug:"lesson-slug",unit_slug:"unit-slug",programme_slug:"programme-slug",is_legacy:!1,lesson_data:U(),unit_data:I(),null_unitvariant:M(),programme_fields:H(),supplementary_data:{unit_order:1,order_in_unit:1}},e),exports.syntheticUnitvariantLessonsSchema=Y,exports.syntheticUnitvariantsWithLessonIdsFixture=({overrides:e={}}={})=>Object.assign({unit_slug:"unit-slug",programme_slug:"programme-slug",is_legacy:!1,lesson_count:1,unit_data:I(),null_unitvariant:M(),programme_fields:H(),supplementary_data:{unit_order:1}},e),exports.syntheticUnitvariantsWithLessonIdsSchema=P,exports.teacherTipsFixture=re,exports.teacherTipsSchema=K,exports.textItemSchema=S,exports.threadsByUnitSchema=L,exports.tierDescriptions=g,exports.tierSlugs=_,exports.tiers=p,exports.unitDataFixture=I,exports.unitDataSchema=j,exports.unitvariantFixture=M,exports.unitvariantSchema=w,exports.yearDescriptions=d,exports.yearSlugs=c,exports.years=u;
|
|
1
|
+
"use strict";var e=require("zod");const t=e.z.enum(["published","new","migration"]),i=e.z.enum(["2020-2023","2023-2024","0"]),r=e.z.enum(["foundation","primary","secondary"]),n=e.z.enum(["Early Years Foundation Stage","Primary","Secondary"]),s=e.z.enum(["foundation","primary","secondary"]),a=e.z.enum(["KS1","KS2","KS3","KS4","EYFS"]),o=e.z.enum(["ks1","ks2","ks3","ks4","early-years-foundation-stage"]),l=e.z.enum(["Key Stage 1","Key Stage 2","Key Stage 3","Key Stage 4","Early Years Foundation Stage"]),u=e.z.enum(["1","2","3","4","5","6","7","8","9","10","11","12","13","R"]),c=e.z.enum(["reception","year-1","year-2","year-3","year-4","year-5","year-6","year-7","year-8","year-9","year-10","year-11","year-12","year-13"]),d=e.z.enum(["Year 1","Year 2","Year 3","Year 4","Year 5","Year 6","Year 7","Year 8","Year 9","Year 10","Year 11","Year 12","Year 13","Reception"]),p=e.z.enum(["core","foundation","higher"]),_=e.z.enum(["core","foundation","higher"]),g=e.z.enum(["Core","Foundation","Higher"]),m=e.z.enum(["aqa","edexcel","eduqas","ocr","wjec"]),b=e.z.enum(["AQA","Edexcel","Eduqas","OCR","WJEC"]),z=e.z.enum(["Assessment and Qualifications Alliance","Edexcel","Eduqas","Oxford, Cambridge and RSA Examinations","Welsh Joint Education Committee"]),h=e.z.enum(["English","Geography","History","Maths","Music","Science","Biology","Physics","Chemistry","Combined science","Art and design","Citizenship","Computing","Computing (non-GCSE)","Design and technology","Drama","English grammar","English reading for pleasure","English spelling","Expressive arts and design","French","German","Latin","Literacy","Physical education","Personal, social and emotional development","Religious education","RSHE (PSHE)","Spanish","Understanding the world","Therapies","Occupational therapy","Physical therapy","Sensory integration","Speech and language therapy","Specialist","Physical development","Communication and language","Creative arts","Independent living","Numeracy","GCSE citizenship","Core citizenship","Computer science","Core computing","GCSE physical education","Core physical education","GCSE religious education","Core religious education","QA testing only","Relationships, sex and health education"]),y=e.z.enum(["english","geography","history","maths","music","science","biology","physics","chemistry","combined-science","art","citizenship","computing","computing-non-gcse","design-technology","drama","english-grammar","english-reading-for-pleasure","english-spelling","expressive-arts-and-design","french","german","latin","literacy","physical-education","personal-social-and-emotional-development","religious-education","rshe-pshe","spanish","understanding-the-world","therapies","occupational-therapy","physical-therapy","sensory-integration","speech-and-language-therapy","specialist","physical-development","communication-and-language","creative-arts","independent-living","numeracy","gcse-citizenship","core-citizenship","computer-science","core-computing","gcse-physical-education","core-physical-education","gcse-religious-education","core-religious-education","rshe"]),x=e.z.object({lesson_id:e.z.number(),lesson_uid:e.z.string(),slug:e.z.string(),title:e.z.string(),description:e.z.string(),pupil_lesson_outcome:e.z.string(),key_learning_points:e.z.array(e.z.object({})),equipment_and_resources:e.z.array(e.z.object({})).nullable(),content_guidance_details:e.z.array(e.z.object({})).nullable(),content_guidance:e.z.array(e.z.number()).nullable(),copyright_content:e.z.array(e.z.object({})).nullable(),supervision_level:e.z.string().nullable(),thirdpartycontent_list:e.z.array(e.z.number()).nullable(),misconceptions_and_common_mistakes:e.z.array(e.z.object({})).nullable(),keywords:e.z.array(e.z.object({})).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(),asset_id_slidedeck:e.z.number().nullable(),asset_id_worksheet:e.z.number().nullable(),deprecated_fields:e.z.record(e.z.unknown()).nullable(),_state:t,_cohort:i}),v=e.z.object({tier:p.nullable(),tier_id:e.z.number().nullable(),tier_slug:_.nullable(),tier_description:g.nullable(),tier_display_order:e.z.number().nullable(),examboard:b.nullable(),examboard_id:e.z.number().nullable(),examboard_slug:m.nullable(),examboard_description:z.nullable(),examboard_display_order:e.z.number().nullable(),year:u,year_slug:c,year_id:e.z.number(),year_description:d,year_display_order:e.z.number(),keystage:a,keystage_id:e.z.number(),keystage_slug:o,keystage_description:l,keystage_display_order:e.z.number(),phase:s,phase_id:e.z.number(),phase_slug:r,phase_description:n,phase_display_order:e.z.number(),subject:h,subject_id:e.z.number(),subject_slug:y,subject_description:e.z.string(),subject_display_order:e.z.number(),legacy:e.z.string().optional(),dataset:e.z.string().optional()}),j=e.z.object({unit_id:e.z.number(),unit_uid:e.z.string(),description:e.z.string().nullable(),slug:e.z.string(),tags:e.z.array(e.z.number()).nullable(),deprecated_fields:e.z.record(e.z.unknown()).nullable().optional(),title:e.z.string(),_state:t,_cohort:i}),w=e.z.object({_state:t,_cohort:i,unit_id:e.z.number(),unitvariant_id:e.z.number(),_deleted:e.z.boolean(),unit_overrides:j.partial(),programme_fields:v.partial()}),k=e.z.object({format:e.z.enum(["png","jpg","jpeg","webp","gif","svg"]).optional(),secure_url:e.z.string().url(),url:e.z.string().url().optional(),height:e.z.number().optional(),width:e.z.number().optional(),metadata:e.z.union([e.z.array(e.z.any()),e.z.object({attribution:e.z.string().optional(),usageRestriction:e.z.string().optional()})]),public_id:e.z.string().optional(),version:e.z.number().optional()}),q=e.z.object({image_object:k,type:e.z.literal("image")}),S=e.z.object({text:e.z.string(),type:e.z.literal("text")}),f=e.z.object({answer:e.z.array(e.z.union([S,q]).optional()),answer_is_active:e.z.boolean().optional(),answer_is_correct:e.z.boolean().optional()}),F=e.z.object({answer:e.z.array(e.z.union([S,q]).optional()),answer_is_active:e.z.boolean().optional(),answer_is_default:e.z.boolean().optional()}),C=e.z.object({answer:e.z.array(S),correct_order:e.z.number().optional(),answer_is_active:e.z.boolean().optional()}),E=e.z.object({answer_is_active:e.z.boolean().optional(),correct_choice:e.z.array(S),match_option:e.z.array(S).optional()}),O=e.z.object({question_id:e.z.number(),question_uid:e.z.string(),question_type:e.z.string(),question_stem:e.z.array(e.z.union([S,q])).optional().nullable(),answers:e.z.object({"multiple-choice":e.z.array(f).optional(),"short-answer":e.z.array(F).optional(),order:e.z.array(C).optional(),match:e.z.array(E).optional()}).optional().nullable(),feedback:e.z.string().optional().nullable(),hint:e.z.string().optional().nullable(),active:e.z.boolean().optional(),order:e.z.number()}),Y=e.z.object({lesson_slug:e.z.string(),unit_slug:e.z.string(),programme_slug:e.z.string(),is_legacy:e.z.boolean(),lesson_data:x,unit_data:j,null_unitvariant:w,programme_fields:v,supplementary_data:e.z.object({unit_order:e.z.number(),order_in_unit:e.z.number()})}),P=e.z.object({unit_slug:e.z.string(),programme_slug:e.z.string(),is_legacy:e.z.boolean(),lesson_count:e.z.number(),unit_data:j,null_unitvariant:w,programme_fields:v,supplementary_data:e.z.object({unit_order:e.z.number()}),expired:e.z.boolean()}),A=e.z.object({equipment:e.z.string()}),R=e.z.object({key_learning_point:e.z.string()}),D=e.z.object({keyword:e.z.string(),description:e.z.string()}),T=e.z.object({misconception:e.z.string(),response:e.z.string()}),K=e.z.object({teacher_tip:e.z.string()}),W=e.z.object({contentguidance_label:e.z.string().nullable(),contentguidance_description:e.z.string().nullable(),contentguidance_area:e.z.string().nullable()}),G=e.z.object({lesson_id:e.z.number(),lesson_slug:e.z.string(),lesson_title:e.z.string().nullable(),content_guidance:e.z.array(W).nullable(),misconceptions_and_common_mistakes:e.z.array(T).nullable(),teacher_tips:e.z.array(K).nullable(),equipment_and_resources:e.z.array(A).nullable(),pupil_lesson_outcome:e.z.string().nullable(),lesson_keywords:e.z.array(D).nullable(),supervision_level:e.z.string().nullable(),key_learning_points:e.z.array(R).nullable().optional(),video_mux_playback_id:e.z.string().nullable(),video_with_sign_language_mux_playback_id:e.z.string().nullable(),video_id:e.z.number().nullable(),video_title:e.z.string().nullable(),transcript_sentences:e.z.string().nullable(),starter_quiz:e.z.array(O).optional().nullable(),exit_quiz:e.z.array(O).optional().nullable(),starter_quiz_id:e.z.number().nullable(),exit_quiz_id:e.z.number().nullable(),state:e.z.string(),is_legacy:e.z.boolean().nullable(),deprecated_fields:e.z.record(e.z.unknown()).nullable()}),Q=e.z.object({year_slug:c,programme_slug:e.z.string(),base_slug:e.z.string(),is_legacy:e.z.boolean(),programme_fields:v}),L=e.z.object({unit_id:e.z.number(),threads:e.z.array(e.z.object({theme_slug:e.z.string(),theme_title:e.z.string()})).nullable()}),U=({overrides:e={}}={})=>Object.assign({lesson_id:1,lesson_uid:"lesson-uid",title:"lesson-title",description:"lesson-description",slug:"lesson-slug",pupil_lesson_outcome:"pupil-lesson-outcome",key_learning_points:[{}],equipment_and_resources:null,content_guidance_details:null,content_guidance:null,supervision_level:null,thirdpartycontent_list:null,misconceptions_and_common_mistakes:null,keywords:null,video_id:null,sign_language_video_id:null,quiz_id_starter:null,quiz_id_exit:null,asset_id_slidedeck:null,asset_id_worksheet:null,copyright_content:null,_state:"published",_cohort:"2023-2024",deprecated_fields:null},e),H=({overrides:e}={})=>Object.assign({tier:null,tier_id:null,tier_slug:null,tier_description:null,tier_display_order:null,examboard:null,examboard_id:null,examboard_slug:null,examboard_description:null,examboard_display_order:null,year:"1",year_slug:"year-1",year_id:1,year_description:"Year 1",year_display_order:1,keystage:"KS1",keystage_id:1,keystage_slug:"ks1",keystage_description:"Key Stage 1",keystage_display_order:1,phase:"primary",phase_id:0,phase_slug:"primary",phase_description:"Primary",phase_display_order:1,subject:"Maths",subject_id:1,subject_slug:"maths",subject_description:"subject-description",subject_display_order:1},e),I=({overrides:e={}}={})=>Object.assign({unit_id:0,unit_uid:"unit-uid",description:null,slug:"unit-slug",tags:null,title:"unit-title",_state:"published",_cohort:"2023-2024"},e),M=({overrides:e={}}={})=>Object.assign({unitvariant_id:1,unit_id:1,_deleted:!1,_state:"published",_cohort:"2023-2024",unit_overrides:{},programme_fields:{}},e),B=({overrides:e={}}={})=>Object.assign({text:"Hello, World!",type:"text"},e),J=({overrides:e={}}={})=>Object.assign({answer:[B(),{image_object:{format:"png",secure_url:"https://res.cloudinary.com/demo/image/upload/sample.png",url:"http://res.cloudinary.com/demo/image/upload/sample.png",height:100,width:100,metadata:{attribution:"author",usageRestriction:"free"},public_id:"sample",version:1234567890},type:"image"}],answer_is_active:!0,answer_is_correct:!0},e),N=({overrides:e={}}={})=>Object.assign({answer:[B(),{image_object:{format:"png",secure_url:"https://res.cloudinary.com/demo/image/upload/sample.png",url:"http://res.cloudinary.com/demo/image/upload/sample.png",height:100,width:100,metadata:{attribution:"author",usageRestriction:"free"},public_id:"sample",version:1234567890},type:"image"}],answer_is_active:!0,answer_is_default:!0},e),V=({overrides:e={}}={})=>Object.assign({answer:[B()],correct_order:1,answer_is_active:!0},e),X=({overrides:e={}}={})=>Object.assign({answer_is_active:!0,correct_choice:[B({overrides:{text:"Paris"}})],match_option:[B({overrides:{text:"Capital of France"}})]},e),Z=({overrides:e={}}={})=>Object.assign({question_id:1,question_uid:"question-1",question_type:"multiple-choice",question_stem:[{text:"What is the capital of France?",type:"text"}],answers:{"multiple-choice":[J({overrides:{answer_is_correct:!0}}),J({overrides:{answer_is_correct:!1}}),J({overrides:{answer_is_correct:!1}}),J({overrides:{answer_is_correct:!1}})]},feedback:"Paris is the capital of France.",hint:"Think about the Eiffel Tower.",active:!0,order:1},e),$=({overrides:e={}}={})=>Object.assign({question_id:2,question_uid:"question-2",question_type:"short-answer",question_stem:[{text:"What is the capital of France?",type:"text"}],answers:{"short-answer":[N()]},feedback:"Paris is the capital of France.",hint:"Think about the Eiffel Tower.",active:!0,order:2},e),ee=({overrides:e={}}={})=>Object.assign({question_id:3,question_uid:"question-3",question_type:"order",question_stem:[{text:"What is the capital of France?",type:"text"}],answers:{order:[V({overrides:{correct_order:1}}),V({overrides:{correct_order:2}}),V({overrides:{correct_order:3}}),V({overrides:{correct_order:4}})]},feedback:"Paris is the capital of France.",hint:"Think about the Eiffel Tower.",active:!0,order:3},e),te=({overrides:e={}}={})=>Object.assign({question_id:4,question_uid:"question-4",question_type:"match",question_stem:[{text:"What is the capital of France?",type:"text"}],answers:{match:[X(),X(),X(),X()]},feedback:"Paris is the capital of France.",hint:"Think about the Eiffel Tower.",active:!0,order:4},e),ie=()=>({equipment:"equipment"}),re=()=>({teacher_tip:"teacher-tip"}),ne=()=>({keyword:"keyword",description:"description"}),se=()=>({misconception:"misconception",response:"response"}),ae=()=>({contentguidance_label:"contentguidance-label",contentguidance_description:"contentguidance-description",contentguidance_area:"contentguidance-area"});exports._cohortSchema=i,exports._stateSchema=t,exports.contentGuidanceFixture=ae,exports.contentGuidanceSchema=W,exports.examboardDescriptions=z,exports.examboardSlugs=m,exports.examboards=b,exports.imageItemSchema=q,exports.imageObjectSchema=k,exports.keyLearningPointsSchema=R,exports.keystageDescriptions=l,exports.keystageSlugs=o,exports.keystages=a,exports.keywordsFixture=ne,exports.keywordsSchema=D,exports.lessonContentFixture=({overrides:e={}}={})=>Object.assign({lesson_id:1,lesson_title:"lesson-title",lesson_slug:"lesson-slug",deprecated_fields:{},is_legacy:!1,misconceptions_and_common_mistakes:[{misconception:"misconception",response:"response"}],equipment_and_resources:[{equipment:"equipment"}],teacher_tips:[{teacher_tip:"teacher-tip"}],key_learning_points:null,pupil_lesson_outcome:"pupil-lesson-outcome",lesson_keywords:[{keyword:"keyword",description:"description"}],content_guidance:[{contentguidance_label:"contentguidance-label",contentguidance_description:"contentguidance-description",contentguidance_area:"contentguidance-area"}],video_mux_playback_id:"video-mux-playback-id",video_id:null,video_with_sign_language_mux_playback_id:"video-with-sign-language-mux-playback-id",video_title:"video-title",transcript_sentences:"this is the transcript",starter_quiz:[Z({overrides:{order:1,question_uid:"starter-quiz-1"}}),ee({overrides:{order:2,question_uid:"starter-quiz-2"}}),te({overrides:{order:3,question_uid:"starter-quiz-3"}}),$({overrides:{order:4,question_uid:"starter-quiz-4"}})],starter_quiz_id:1,exit_quiz:null,exit_quiz_id:null,supervision_level:null,state:"published"},e),exports.lessonContentSchema=G,exports.lessonDataFixture=U,exports.lessonDataSchema=x,exports.lessonEquipmentAndResourcesFixture=ie,exports.lessonEquipmentAndResourcesSchema=A,exports.matchFixture=X,exports.matchQuestion=te,exports.matchSchema=E,exports.misconceptionsAndCommonMistakesFixture=se,exports.misconceptionsAndCommonMistakesSchema=T,exports.multipleChoiceFixture=J,exports.multipleChoiceQuestion=Z,exports.multipleChoiceSchema=f,exports.orderFixture=V,exports.orderQuestion=ee,exports.orderSchema=C,exports.phaseDescriptions=n,exports.phaseSlugs=r,exports.phases=s,exports.programmeFieldsFixture=H,exports.programmeFieldsSchema=v,exports.quizQuestionSchema=O,exports.shortAnswerFixture=N,exports.shortAnswerQuestion=$,exports.shortAnswerSchema=F,exports.subjectSlugs=y,exports.subjects=h,exports.syntheticProgrammesByYearFixture=({overrides:e={}}={})=>({year_slug:"year-1",base_slug:"maths-primary-year-1",programme_slug:"maths-primary-year-1",is_legacy:!1,programme_fields:H()}),exports.syntheticProgrammesByYearSchema=Q,exports.syntheticUnitvariantLessonsFixture=({overrides:e={}}={})=>Object.assign({lesson_slug:"lesson-slug",unit_slug:"unit-slug",programme_slug:"programme-slug",is_legacy:!1,lesson_data:U(),unit_data:I(),null_unitvariant:M(),programme_fields:H(),supplementary_data:{unit_order:1,order_in_unit:1}},e),exports.syntheticUnitvariantLessonsSchema=Y,exports.syntheticUnitvariantsWithLessonIdsFixture=({overrides:e={}}={})=>Object.assign({unit_slug:"unit-slug",programme_slug:"programme-slug",is_legacy:!1,lesson_count:1,unit_data:I(),null_unitvariant:M(),programme_fields:H(),supplementary_data:{unit_order:1},expired:!1},e),exports.syntheticUnitvariantsWithLessonIdsSchema=P,exports.teacherTipsFixture=re,exports.teacherTipsSchema=K,exports.textItemSchema=S,exports.threadsByUnitSchema=L,exports.tierDescriptions=g,exports.tierSlugs=_,exports.tiers=p,exports.unitDataFixture=I,exports.unitDataSchema=j,exports.unitvariantFixture=M,exports.unitvariantSchema=w,exports.yearDescriptions=d,exports.yearSlugs=c,exports.years=u;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/schema/base.schema.ts","../../src/schema/lessonData.schema.ts","../../src/schema/programmeFields.schema.ts","../../src/schema/unitData.schema.ts","../../src/schema/unitvariant.schema.ts","../../src/schema/imageTextItems.schema.ts","../../src/schema/quizAnswers.schema.ts","../../src/schema/quizQuestion.schema.ts","../../src/schema/syntheticUnitvariantLessons.schema.ts","../../src/schema/syntheticUnitvariantsWithLessonIds.schema.ts","../../src/schema/lessonContent.schema.ts","../../src/schema/syntheticProgrammesByYear.schema.ts","../../src/schema/threadsByUnit.schema.ts","../../src/fixtures/lessonData.fixture.ts","../../src/fixtures/programmeFields.fixture.ts","../../src/fixtures/unitData.fixture.ts","../../src/fixtures/unitvariant.fixture.ts","../../src/fixtures/imageTextItems.fixture.ts","../../src/fixtures/quizAnswers.fixture.ts","../../src/fixtures/quizQuestion.fixture.ts","../../src/fixtures/lessonContent.fixture.ts","../../src/fixtures/syntheticProgrammesByYear.fixture.ts","../../src/fixtures/syntheticUnitvariantLessons.fixture.ts","../../src/fixtures/syntheticUnitvariantsWithLessonIds.fixture.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const _stateSchema = z.enum([\"published\", \"new\", \"migration\"]);\nexport const _cohortSchema = z.enum([\"2020-2023\", \"2023-2024\", \"0\"]);\n\nexport const phaseSlugs = z.enum([\"foundation\", \"primary\", \"secondary\"]);\nexport const phaseDescriptions = z.enum([\n \"Early Years Foundation Stage\",\n \"Primary\",\n \"Secondary\",\n]);\nexport const phases = z.enum([\"foundation\", \"primary\", \"secondary\"]);\n\nexport const keystages = z.enum([\"KS1\", \"KS2\", \"KS3\", \"KS4\", \"EYFS\"]);\nexport const keystageSlugs = z.enum([\n \"ks1\",\n \"ks2\",\n \"ks3\",\n \"ks4\",\n \"early-years-foundation-stage\",\n]);\nexport const keystageDescriptions = z.enum([\n \"Key Stage 1\",\n \"Key Stage 2\",\n \"Key Stage 3\",\n \"Key Stage 4\",\n \"Early Years Foundation Stage\",\n]);\n\nexport const years = z.enum([\n \"1\",\n \"2\",\n \"3\",\n \"4\",\n \"5\",\n \"6\",\n \"7\",\n \"8\",\n \"9\",\n \"10\",\n \"11\",\n \"12\",\n \"13\",\n \"R\",\n]);\nexport const yearSlugs = z.enum([\n \"reception\",\n \"year-1\",\n \"year-2\",\n \"year-3\",\n \"year-4\",\n \"year-5\",\n \"year-6\",\n \"year-7\",\n \"year-8\",\n \"year-9\",\n \"year-10\",\n \"year-11\",\n \"year-12\",\n \"year-13\",\n]);\nexport const yearDescriptions = z.enum([\n \"Year 1\",\n \"Year 2\",\n \"Year 3\",\n \"Year 4\",\n \"Year 5\",\n \"Year 6\",\n \"Year 7\",\n \"Year 8\",\n \"Year 9\",\n \"Year 10\",\n \"Year 11\",\n \"Year 12\",\n \"Year 13\",\n \"Reception\",\n]);\n\nexport const tiers = z.enum([\"core\", \"foundation\", \"higher\"]);\nexport const tierSlugs = z.enum([\"core\", \"foundation\", \"higher\"]);\nexport const tierDescriptions = z.enum([\"Core\", \"Foundation\", \"Higher\"]);\n\nexport const examboardSlugs = z.enum([\n \"aqa\",\n \"edexcel\",\n \"eduqas\",\n \"ocr\",\n \"wjec\",\n]);\nexport const examboards = z.enum([\"AQA\", \"Edexcel\", \"Eduqas\", \"OCR\", \"WJEC\"]);\nexport const examboardDescriptions = z.enum([\n \"Assessment and Qualifications Alliance\",\n \"Edexcel\",\n \"Eduqas\",\n \"Oxford, Cambridge and RSA Examinations\",\n \"Welsh Joint Education Committee\",\n]);\n\nexport const subjects = z.enum([\n \"English\",\n \"Geography\",\n \"History\",\n \"Maths\",\n \"Music\",\n \"Science\",\n \"Biology\",\n \"Physics\",\n \"Chemistry\",\n \"Combined science\",\n \"Art and design\",\n \"Citizenship\",\n \"Computing\",\n \"Computing (non-GCSE)\",\n \"Design and technology\",\n \"Drama\",\n \"English grammar\",\n \"English reading for pleasure\",\n \"English spelling\",\n \"Expressive arts and design\",\n \"French\",\n \"German\",\n \"Latin\",\n \"Literacy\",\n \"Physical education\",\n \"Personal, social and emotional development\",\n \"Religious education\",\n \"RSHE (PSHE)\",\n \"Spanish\",\n \"Understanding the world\",\n \"Therapies\",\n \"Occupational therapy\",\n \"Physical therapy\",\n \"Sensory integration\",\n \"Speech and language therapy\",\n \"Specialist\",\n \"Physical development\",\n \"Communication and language\",\n \"Creative arts\",\n \"Independent living\",\n \"Numeracy\",\n \"GCSE citizenship\",\n \"Core citizenship\",\n \"Computer science\",\n \"Core computing\",\n \"GCSE physical education\",\n \"Core physical education\",\n \"GCSE religious education\",\n \"Core religious education\",\n \"QA testing only\",\n \"Relationships, sex and health education\",\n]);\nexport const subjectSlugs = z.enum([\n \"english\",\n \"geography\",\n \"history\",\n \"maths\",\n \"music\",\n \"science\",\n \"biology\",\n \"physics\",\n \"chemistry\",\n \"combined-science\",\n \"art\",\n \"citizenship\",\n \"computing\",\n \"computing-non-gcse\",\n \"design-technology\",\n \"drama\",\n \"english-grammar\",\n \"english-reading-for-pleasure\",\n \"english-spelling\",\n \"expressive-arts-and-design\",\n \"french\",\n \"german\",\n \"latin\",\n \"literacy\",\n \"physical-education\",\n \"personal-social-and-emotional-development\",\n \"religious-education\",\n \"rshe-pshe\",\n \"spanish\",\n \"understanding-the-world\",\n \"therapies\",\n \"occupational-therapy\",\n \"physical-therapy\",\n \"sensory-integration\",\n \"speech-and-language-therapy\",\n \"specialist\",\n \"physical-development\",\n \"communication-and-language\",\n \"creative-arts\",\n \"independent-living\",\n \"numeracy\",\n \"gcse-citizenship\",\n \"core-citizenship\",\n \"computer-science\",\n \"core-computing\",\n \"gcse-physical-education\",\n \"core-physical-education\",\n \"gcse-religious-education\",\n \"core-religious-education\",\n \"rshe\",\n]);\n","import { z } from \"zod\";\n\nimport { _stateSchema, _cohortSchema } from \"./base.schema\";\n\nexport const lessonDataSchema = z.object({\n lesson_id: z.number(),\n lesson_uid: z.string(),\n slug: z.string(),\n title: z.string(),\n description: z.string(),\n pupil_lesson_outcome: z.string(),\n key_learning_points: z.array(z.object({})),\n equipment_and_resources: z.array(z.object({})).nullable(),\n content_guidance_details: z.array(z.object({})).nullable(),\n content_guidance: z.array(z.number()).nullable(),\n copyright_content: z.array(z.object({})).nullable(),\n supervision_level: z.string().nullable(),\n thirdpartycontent_list: z.array(z.number()).nullable(),\n misconceptions_and_common_mistakes: z.array(z.object({})).nullable(),\n keywords: z.array(z.object({})).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 asset_id_slidedeck: z.number().nullable(),\n asset_id_worksheet: z.number().nullable(),\n deprecated_fields: z.record(z.unknown()).nullable(),\n _state: _stateSchema,\n _cohort: _cohortSchema,\n});\n\nexport type LessonData = z.infer<typeof lessonDataSchema>;\n","import { z } from \"zod\";\nimport {\n keystages,\n keystageSlugs,\n keystageDescriptions,\n examboards,\n examboardSlugs,\n examboardDescriptions,\n tierSlugs,\n tierDescriptions,\n tiers,\n yearSlugs,\n yearDescriptions,\n years,\n phases,\n phaseSlugs,\n phaseDescriptions,\n subjects,\n subjectSlugs,\n} from \"./base.schema\";\n\nexport const programmeFieldsSchema = z.object({\n tier: tiers.nullable(),\n tier_id: z.number().nullable(),\n tier_slug: tierSlugs.nullable(),\n tier_description: tierDescriptions.nullable(),\n tier_display_order: z.number().nullable(),\n\n examboard: examboards.nullable(),\n examboard_id: z.number().nullable(),\n examboard_slug: examboardSlugs.nullable(),\n examboard_description: examboardDescriptions.nullable(),\n examboard_display_order: z.number().nullable(),\n\n year: years,\n year_slug: yearSlugs,\n year_id: z.number(),\n year_description: yearDescriptions,\n year_display_order: z.number(),\n\n keystage: keystages,\n keystage_id: z.number(),\n keystage_slug: keystageSlugs,\n keystage_description: keystageDescriptions,\n keystage_display_order: z.number(),\n\n phase: phases,\n phase_id: z.number(),\n phase_slug: phaseSlugs,\n phase_description: phaseDescriptions,\n phase_display_order: z.number(),\n\n subject: subjects,\n subject_id: z.number(),\n subject_slug: subjectSlugs,\n subject_description: z.string(),\n subject_display_order: z.number(),\n\n legacy: z.string().optional(),\n dataset: z.string().optional(),\n});\n\nexport type ProgrammeFields = z.infer<typeof programmeFieldsSchema>;\n","import { z } from \"zod\";\n\nimport { _stateSchema, _cohortSchema } from \"./base.schema\";\n\nexport const unitDataSchema = z.object({\n unit_id: z.number(),\n unit_uid: z.string(),\n description: z.string().nullable(),\n slug: z.string(),\n tags: z.array(z.number()).nullable(),\n title: z.string(),\n _state: _stateSchema,\n _cohort: _cohortSchema,\n});\n\nexport type UnitData = z.infer<typeof unitDataSchema>;\n","import { z } from \"zod\";\n\nimport { _stateSchema, _cohortSchema } from \"./base.schema\";\nimport { unitDataSchema } from \"./unitData.schema\";\nimport { programmeFieldsSchema } from \"./programmeFields.schema\";\n\nexport const unitvariantSchema = z.object({\n _state: _stateSchema,\n _cohort: _cohortSchema,\n unit_id: z.number(),\n unitvariant_id: z.number(),\n _deleted: z.boolean(),\n unit_overrides: unitDataSchema.partial(),\n programme_fields: programmeFieldsSchema.partial(),\n});\n\nexport type Unitvariant = z.infer<typeof unitvariantSchema>;\n","import { z } from \"zod\";\n\nexport const imageObjectSchema = z.object({\n format: z.enum([\"png\", \"jpg\", \"jpeg\", \"webp\", \"gif\", \"svg\"]).optional(),\n secure_url: z.string().url(),\n url: z.string().url().optional(),\n height: z.number().optional(),\n width: z.number().optional(),\n metadata: z.union([\n z.array(z.any()),\n z.object({\n attribution: z.string().optional(),\n usageRestriction: z.string().optional(),\n }),\n ]),\n public_id: z.string().optional(),\n version: z.number().optional(),\n});\n\nexport type ImageObject = z.infer<typeof imageObjectSchema>;\n\nexport const imageItemSchema = z.object({\n image_object: imageObjectSchema,\n type: z.literal(\"image\"),\n});\n\nexport type ImageItem = z.infer<typeof imageItemSchema>;\n\nexport const textItemSchema = z.object({\n text: z.string(),\n type: z.literal(\"text\"),\n});\n\nexport type TextItem = z.infer<typeof textItemSchema>;\n","import { z } from \"zod\";\nimport { imageItemSchema, textItemSchema } from \"./imageTextItems.schema\";\n\nexport const multipleChoiceSchema = z.object({\n answer: z.array(z.union([textItemSchema, imageItemSchema]).optional()),\n answer_is_active: z.boolean().optional(),\n answer_is_correct: z.boolean().optional(),\n});\n\nexport type MultipleChoice = z.infer<typeof multipleChoiceSchema>;\n\nexport const shortAnswerSchema = z.object({\n answer: z.array(z.union([textItemSchema, imageItemSchema]).optional()),\n answer_is_active: z.boolean().optional(),\n answer_is_default: z.boolean().optional(),\n});\n\nexport type ShortAnswer = z.infer<typeof shortAnswerSchema>;\n\nexport const orderSchema = z.object({\n answer: z.array(textItemSchema),\n correct_order: z.number().optional(),\n answer_is_active: z.boolean().optional(),\n});\n\nexport type Order = z.infer<typeof orderSchema>;\n\nexport const matchSchema = z.object({\n answer_is_active: z.boolean().optional(),\n correct_choice: z.array(textItemSchema),\n match_option: z.array(textItemSchema).optional(),\n});\n\nexport type Match = z.infer<typeof matchSchema>;\n","import { z } from \"zod\";\n\nimport { imageItemSchema, textItemSchema } from \"./imageTextItems.schema\";\nimport {\n matchSchema,\n multipleChoiceSchema,\n orderSchema,\n shortAnswerSchema,\n} from \"./quizAnswers.schema\";\n\nexport const quizQuestionSchema = z.object({\n question_id: z.number(),\n question_uid: z.string(),\n question_type: z.string(),\n question_stem: z\n .array(z.union([textItemSchema, imageItemSchema]))\n .optional()\n .nullable(),\n answers: z\n .object({\n \"multiple-choice\": z.array(multipleChoiceSchema).optional(),\n \"short-answer\": z.array(shortAnswerSchema).optional(),\n order: z.array(orderSchema).optional(),\n match: z.array(matchSchema).optional(),\n })\n .optional()\n .nullable(),\n feedback: z.string().optional().nullable(),\n hint: z.string().optional().nullable(),\n active: z.boolean().optional(),\n order: z.number(),\n});\n\nexport type QuizQuestion = z.infer<typeof quizQuestionSchema>;\n","import { z } from \"zod\";\nimport { lessonDataSchema } from \"./lessonData.schema\";\nimport { unitDataSchema } from \"./unitData.schema\";\nimport { unitvariantSchema } from \"./unitvariant.schema\";\nimport { programmeFieldsSchema } from \"./programmeFields.schema\";\n\nexport const syntheticUnitvariantLessonsSchema = z.object({\n lesson_slug: z.string(),\n unit_slug: z.string(),\n programme_slug: z.string(),\n is_legacy: z.boolean(),\n lesson_data: lessonDataSchema,\n unit_data: unitDataSchema,\n null_unitvariant: unitvariantSchema,\n programme_fields: programmeFieldsSchema,\n supplementary_data: z.object({\n unit_order: z.number(),\n order_in_unit: z.number(),\n }),\n});\n\nexport type SyntheticUnitvariantLessons = z.infer<\n typeof syntheticUnitvariantLessonsSchema\n>;\n","import { z } from \"zod\";\nimport { unitDataSchema } from \"./unitData.schema\";\nimport { unitvariantSchema } from \"./unitvariant.schema\";\nimport { programmeFieldsSchema } from \"./programmeFields.schema\";\n\nexport const syntheticUnitvariantsWithLessonIdsSchema = z.object({\n unit_slug: z.string(),\n programme_slug: z.string(),\n is_legacy: z.boolean(),\n lesson_count: z.number(),\n unit_data: unitDataSchema,\n null_unitvariant: unitvariantSchema,\n programme_fields: programmeFieldsSchema,\n supplementary_data: z.object({\n unit_order: z.number(),\n }),\n});\n\nexport type syntheticUnitvariantsWithLessonIds = z.infer<\n typeof syntheticUnitvariantsWithLessonIdsSchema\n>;\n","import { z } from \"zod\";\n\nimport { quizQuestionSchema } from \"./quizQuestion.schema\";\n\nexport const lessonEquipmentAndResourcesSchema = z.object({\n equipment: z.string(),\n});\n\nexport type LessonEquipmentAndResources = z.infer<\n typeof lessonEquipmentAndResourcesSchema\n>;\n\nexport const keyLearningPointsSchema = z.object({\n key_learning_point: z.string(),\n});\n\nexport type KeyLearningPoints = z.infer<typeof keyLearningPointsSchema>;\n\nexport const keywordsSchema = z.object({\n keyword: z.string(),\n description: z.string(),\n});\n\nexport type Keywords = z.infer<typeof keywordsSchema>;\n\nexport const misconceptionsAndCommonMistakesSchema = z.object({\n misconception: z.string(),\n response: z.string(),\n});\n\nexport type MisconceptionsAndCommonMistakes = z.infer<\n typeof misconceptionsAndCommonMistakesSchema\n>;\n\nexport const teacherTipsSchema = z.object({\n teacher_tip: z.string(),\n});\n\nexport type TeacherTips = z.infer<typeof teacherTipsSchema>;\n\nexport const contentGuidanceSchema = z.object({\n contentguidance_label: z.string().nullable(),\n contentguidance_description: z.string().nullable(),\n contentguidance_area: z.string().nullable(),\n});\n\nexport type ContentGuidance = z.infer<typeof contentGuidanceSchema>;\n\nexport const lessonContentSchema = z.object({\n lesson_id: z.number(),\n lesson_slug: z.string(),\n lesson_title: z.string().nullable(),\n content_guidance: z.array(contentGuidanceSchema).nullable(),\n misconceptions_and_common_mistakes: z\n .array(misconceptionsAndCommonMistakesSchema)\n .nullable(),\n teacher_tips: z.array(teacherTipsSchema).nullable(),\n equipment_and_resources: z\n .array(lessonEquipmentAndResourcesSchema)\n .nullable(),\n pupil_lesson_outcome: z.string().nullable(),\n lesson_keywords: z.array(keywordsSchema).nullable(),\n supervision_level: z.string().nullable(),\n key_learning_points: z.array(keyLearningPointsSchema).nullable().optional(),\n video_mux_playback_id: z.string().nullable(),\n video_with_sign_language_mux_playback_id: z.string().nullable(),\n video_id: z.number().nullable(),\n video_title: z.string().nullable(),\n transcript_sentences: z.string().nullable(),\n starter_quiz: z.array(quizQuestionSchema).optional().nullable(),\n exit_quiz: z.array(quizQuestionSchema).optional().nullable(),\n starter_quiz_id: z.number().nullable(),\n exit_quiz_id: z.number().nullable(),\n state: z.string(),\n is_legacy: z.boolean().nullable(),\n deprecated_fields: z.record(z.unknown()).nullable(),\n});\n\nexport type LessonContent = z.infer<typeof lessonContentSchema>;\n","import { z } from \"zod\";\nimport { programmeFieldsSchema } from \"./programmeFields.schema\";\nimport { yearSlugs } from \"./base.schema\";\n\nexport const syntheticProgrammesByYearSchema = z.object({\n year_slug: yearSlugs,\n programme_slug: z.string(),\n base_slug: z.string(),\n is_legacy: z.boolean(),\n programme_fields: programmeFieldsSchema,\n});\n\nexport type SyntheticProgrammesByYear = z.infer<\n typeof syntheticProgrammesByYearSchema\n>;\n","import { z } from \"zod\";\n\nexport const threadsByUnitSchema = z.object({\n unit_id: z.number(),\n threads: z\n .array(z.object({ theme_slug: z.string(), theme_title: z.string() }))\n .nullable(),\n});\n\nexport type ThreadsByUnit = z.infer<typeof threadsByUnitSchema>;\n","import { LessonData } from \"@/schema/lessonData.schema\";\n\nexport const lessonDataFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<LessonData>;\n} = {}): LessonData => ({\n lesson_id: 1,\n lesson_uid: \"lesson-uid\",\n title: \"lesson-title\",\n description: \"lesson-description\",\n slug: \"lesson-slug\",\n pupil_lesson_outcome: \"pupil-lesson-outcome\",\n key_learning_points: [{}],\n equipment_and_resources: null,\n content_guidance_details: null,\n content_guidance: null,\n supervision_level: null,\n thirdpartycontent_list: null,\n misconceptions_and_common_mistakes: null,\n keywords: null,\n video_id: null,\n sign_language_video_id: null,\n quiz_id_starter: null,\n quiz_id_exit: null,\n asset_id_slidedeck: null,\n asset_id_worksheet: null,\n copyright_content: null,\n _state: \"published\",\n _cohort: \"2023-2024\",\n deprecated_fields: null,\n ...overrides,\n});\n","import { ProgrammeFields } from \"@/schema/programmeFields.schema\";\n\nexport const programmeFieldsFixture = ({\n overrides,\n}: {\n overrides?: Partial<ProgrammeFields>;\n} = {}): ProgrammeFields => ({\n tier: null,\n tier_id: null,\n tier_slug: null,\n tier_description: null,\n tier_display_order: null,\n examboard: null,\n examboard_id: null,\n examboard_slug: null,\n examboard_description: null,\n examboard_display_order: null,\n year: \"1\",\n year_slug: \"year-1\",\n year_id: 1,\n year_description: \"Year 1\",\n year_display_order: 1,\n keystage: \"KS1\",\n keystage_id: 1,\n keystage_slug: \"ks1\",\n keystage_description: \"Key Stage 1\",\n keystage_display_order: 1,\n phase: \"primary\",\n phase_id: 0,\n phase_slug: \"primary\",\n phase_description: \"Primary\",\n phase_display_order: 1,\n subject: \"Maths\",\n subject_id: 1,\n subject_slug: \"maths\",\n subject_description: \"subject-description\",\n subject_display_order: 1,\n ...overrides,\n});\n","import { UnitData } from \"@/schema/unitData.schema\";\n\nexport const unitDataFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<UnitData>;\n} = {}): UnitData => ({\n unit_id: 0,\n unit_uid: \"unit-uid\",\n description: null,\n slug: \"unit-slug\",\n tags: null,\n title: \"unit-title\",\n _state: \"published\",\n _cohort: \"2023-2024\",\n ...overrides,\n});\n","import { Unitvariant } from \"@/schema/unitvariant.schema\";\n\nexport const unitvariantFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<Unitvariant>;\n} = {}): Unitvariant => ({\n unitvariant_id: 1,\n unit_id: 1,\n _deleted: false,\n _state: \"published\",\n _cohort: \"2023-2024\",\n unit_overrides: {},\n programme_fields: {},\n ...overrides,\n});\n","import {\n ImageObject,\n ImageItem,\n TextItem,\n} from \"@/schema/imageTextItems.schema\";\n\nexport const imageObjectFixture = (): ImageObject => ({\n format: \"png\",\n secure_url: \"https://res.cloudinary.com/demo/image/upload/sample.png\",\n url: \"http://res.cloudinary.com/demo/image/upload/sample.png\",\n height: 100,\n width: 100,\n metadata: {\n attribution: \"author\",\n usageRestriction: \"free\",\n },\n public_id: \"sample\",\n version: 1234567890,\n});\n\nexport const imageItemFixture = (): ImageItem => ({\n image_object: imageObjectFixture(),\n type: \"image\",\n});\n\nexport const textItemFixture = ({\n overrides = {},\n}: { overrides?: Partial<TextItem> } = {}): TextItem => ({\n text: \"Hello, World!\",\n type: \"text\",\n ...overrides,\n});\n","import {\n Match,\n MultipleChoice,\n Order,\n ShortAnswer,\n} from \"@/schema/quizAnswers.schema\";\nimport { imageItemFixture, textItemFixture } from \"./imageTextItems.fixture\";\n\nexport const multipleChoiceFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<MultipleChoice>;\n} = {}): MultipleChoice => ({\n answer: [textItemFixture(), imageItemFixture()],\n answer_is_active: true,\n answer_is_correct: true,\n ...overrides,\n});\n\nexport const shortAnswerFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<ShortAnswer>;\n} = {}): ShortAnswer => ({\n answer: [textItemFixture(), imageItemFixture()],\n answer_is_active: true,\n answer_is_default: true,\n ...overrides,\n});\n\nexport const orderFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<Order>;\n} = {}): Order => ({\n answer: [textItemFixture()],\n correct_order: 1,\n answer_is_active: true,\n ...overrides,\n});\n\nexport const matchFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<Match>;\n} = {}): Match => ({\n answer_is_active: true,\n correct_choice: [textItemFixture({ overrides: { text: \"Paris\" } })],\n match_option: [textItemFixture({ overrides: { text: \"Capital of France\" } })],\n ...overrides,\n});\n","import { QuizQuestion } from \"@/schema/quizQuestion.schema\";\n\nimport {\n matchFixture,\n multipleChoiceFixture,\n orderFixture,\n shortAnswerFixture,\n} from \"./quizAnswers.fixture\";\n\nexport const multipleChoiceQuestion = ({\n overrides = {},\n}: {\n overrides?: Partial<QuizQuestion>;\n} = {}): QuizQuestion => ({\n question_id: 1,\n question_uid: \"question-1\",\n question_type: \"multiple-choice\",\n question_stem: [\n {\n text: \"What is the capital of France?\",\n type: \"text\",\n },\n ],\n answers: {\n \"multiple-choice\": [\n multipleChoiceFixture({ overrides: { answer_is_correct: true } }),\n multipleChoiceFixture({ overrides: { answer_is_correct: false } }),\n multipleChoiceFixture({ overrides: { answer_is_correct: false } }),\n multipleChoiceFixture({ overrides: { answer_is_correct: false } }),\n ],\n },\n feedback: \"Paris is the capital of France.\",\n hint: \"Think about the Eiffel Tower.\",\n active: true,\n order: 1,\n ...overrides,\n});\n\nexport const shortAnswerQuestion = ({\n overrides = {},\n}: {\n overrides?: Partial<QuizQuestion>;\n} = {}): QuizQuestion => ({\n question_id: 2,\n question_uid: \"question-2\",\n question_type: \"short-answer\",\n question_stem: [\n {\n text: \"What is the capital of France?\",\n type: \"text\",\n },\n ],\n answers: {\n \"short-answer\": [shortAnswerFixture()],\n },\n feedback: \"Paris is the capital of France.\",\n hint: \"Think about the Eiffel Tower.\",\n active: true,\n order: 2,\n ...overrides,\n});\n\nexport const orderQuestion = ({\n overrides = {},\n}: {\n overrides?: Partial<QuizQuestion>;\n} = {}): QuizQuestion => ({\n question_id: 3,\n question_uid: \"question-3\",\n question_type: \"order\",\n question_stem: [\n {\n text: \"What is the capital of France?\",\n type: \"text\",\n },\n ],\n answers: {\n order: [\n orderFixture({ overrides: { correct_order: 1 } }),\n orderFixture({ overrides: { correct_order: 2 } }),\n orderFixture({ overrides: { correct_order: 3 } }),\n orderFixture({ overrides: { correct_order: 4 } }),\n ],\n },\n feedback: \"Paris is the capital of France.\",\n hint: \"Think about the Eiffel Tower.\",\n active: true,\n order: 3,\n ...overrides,\n});\n\nexport const matchQuestion = ({\n overrides = {},\n}: {\n overrides?: Partial<QuizQuestion>;\n} = {}): QuizQuestion => ({\n question_id: 4,\n question_uid: \"question-4\",\n question_type: \"match\",\n question_stem: [\n {\n text: \"What is the capital of France?\",\n type: \"text\",\n },\n ],\n answers: {\n match: [matchFixture(), matchFixture(), matchFixture(), matchFixture()],\n },\n feedback: \"Paris is the capital of France.\",\n hint: \"Think about the Eiffel Tower.\",\n active: true,\n order: 4,\n ...overrides,\n});\n","import {\n Keywords,\n LessonContent,\n TeacherTips,\n LessonEquipmentAndResources,\n} from \"@/schema/lessonContent.schema\";\nimport {\n matchQuestion,\n multipleChoiceQuestion,\n orderQuestion,\n shortAnswerQuestion,\n} from \"./quizQuestion.fixture\";\n\nexport const lessonEquipmentAndResourcesFixture =\n (): LessonEquipmentAndResources => ({\n equipment: \"equipment\",\n });\n\nexport const teacherTipsFixture = (): TeacherTips => ({\n teacher_tip: \"teacher-tip\",\n});\n\nexport const keywordsFixture = (): Keywords => ({\n keyword: \"keyword\",\n description: \"description\",\n});\n\nexport const misconceptionsAndCommonMistakesFixture = () => ({\n misconception: \"misconception\",\n response: \"response\",\n});\n\nexport const contentGuidanceFixture = () => ({\n contentguidance_label: \"contentguidance-label\",\n contentguidance_description: \"contentguidance-description\",\n contentguidance_area: \"contentguidance-area\",\n});\n\nexport const lessonContentFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<LessonContent>;\n} = {}): LessonContent => ({\n lesson_id: 1,\n lesson_title: \"lesson-title\",\n lesson_slug: \"lesson-slug\",\n deprecated_fields: {},\n is_legacy: false,\n misconceptions_and_common_mistakes: [\n misconceptionsAndCommonMistakesFixture(),\n ],\n equipment_and_resources: [lessonEquipmentAndResourcesFixture()],\n teacher_tips: [teacherTipsFixture()],\n key_learning_points: null,\n pupil_lesson_outcome: \"pupil-lesson-outcome\",\n lesson_keywords: [keywordsFixture()],\n content_guidance: [contentGuidanceFixture()],\n video_mux_playback_id: \"video-mux-playback-id\",\n video_id: null,\n video_with_sign_language_mux_playback_id:\n \"video-with-sign-language-mux-playback-id\",\n video_title: \"video-title\",\n transcript_sentences: \"this is the transcript\",\n starter_quiz: [\n multipleChoiceQuestion({\n overrides: { order: 1, question_uid: \"starter-quiz-1\" },\n }),\n orderQuestion({ overrides: { order: 2, question_uid: \"starter-quiz-2\" } }),\n matchQuestion({ overrides: { order: 3, question_uid: \"starter-quiz-3\" } }),\n shortAnswerQuestion({\n overrides: { order: 4, question_uid: \"starter-quiz-4\" },\n }),\n ],\n starter_quiz_id: 1,\n exit_quiz: null,\n exit_quiz_id: null,\n supervision_level: null,\n state: \"published\",\n ...overrides,\n});\n","import { SyntheticProgrammesByYear } from \"@/schema/syntheticProgrammesByYear.schema\";\nimport { programmeFieldsFixture } from \"./programmeFields.fixture\";\n\nexport const syntheticProgrammesByYearFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<SyntheticProgrammesByYear>;\n} = {}): SyntheticProgrammesByYear => ({\n year_slug: \"year-1\",\n base_slug: \"maths-primary-year-1\",\n programme_slug: \"maths-primary-year-1\",\n is_legacy: false,\n programme_fields: programmeFieldsFixture(),\n});\n","import { SyntheticUnitvariantLessons } from \"@/schema/syntheticUnitvariantLessons.schema\";\n\nimport { lessonDataFixture } from \"./lessonData.fixture\";\nimport { unitDataFixture } from \"./unitData.fixture\";\nimport { unitvariantFixture } from \"./unitvariant.fixture\";\nimport { programmeFieldsFixture } from \"./programmeFields.fixture\";\n\nexport const syntheticUnitvariantLessonsFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<SyntheticUnitvariantLessons>;\n} = {}): SyntheticUnitvariantLessons => ({\n lesson_slug: \"lesson-slug\",\n unit_slug: \"unit-slug\",\n programme_slug: \"programme-slug\",\n is_legacy: false,\n lesson_data: lessonDataFixture(),\n unit_data: unitDataFixture(),\n null_unitvariant: unitvariantFixture(),\n programme_fields: programmeFieldsFixture(),\n supplementary_data: {\n unit_order: 1,\n order_in_unit: 1,\n },\n ...overrides,\n});\n","import { unitDataFixture } from \"./unitData.fixture\";\nimport { unitvariantFixture } from \"./unitvariant.fixture\";\nimport { programmeFieldsFixture } from \"./programmeFields.fixture\";\nimport { syntheticUnitvariantsWithLessonIds } from \"@/schema/syntheticUnitvariantsWithLessonIds.schema\";\n\nexport const syntheticUnitvariantsWithLessonIdsFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<syntheticUnitvariantsWithLessonIds>;\n} = {}): syntheticUnitvariantsWithLessonIds => ({\n unit_slug: \"unit-slug\",\n programme_slug: \"programme-slug\",\n is_legacy: false,\n lesson_count: 1,\n unit_data: unitDataFixture(),\n null_unitvariant: unitvariantFixture(),\n programme_fields: programmeFieldsFixture(),\n supplementary_data: {\n unit_order: 1,\n },\n ...overrides,\n});\n"],"names":["_stateSchema","z","enum","_cohortSchema","phaseSlugs","phaseDescriptions","phases","keystages","keystageSlugs","keystageDescriptions","years","yearSlugs","yearDescriptions","tiers","tierSlugs","tierDescriptions","examboardSlugs","examboards","examboardDescriptions","subjects","subjectSlugs","lessonDataSchema","object","lesson_id","number","lesson_uid","string","slug","title","description","pupil_lesson_outcome","key_learning_points","array","equipment_and_resources","nullable","content_guidance_details","content_guidance","copyright_content","supervision_level","thirdpartycontent_list","misconceptions_and_common_mistakes","keywords","video_id","sign_language_video_id","quiz_id_starter","quiz_id_exit","asset_id_slidedeck","asset_id_worksheet","deprecated_fields","record","unknown","_state","_cohort","programmeFieldsSchema","tier","tier_id","tier_slug","tier_description","tier_display_order","examboard","examboard_id","examboard_slug","examboard_description","examboard_display_order","year","year_slug","year_id","year_description","year_display_order","keystage","keystage_id","keystage_slug","keystage_description","keystage_display_order","phase","phase_id","phase_slug","phase_description","phase_display_order","subject","subject_id","subject_slug","subject_description","subject_display_order","legacy","optional","dataset","unitDataSchema","unit_id","unit_uid","tags","unitvariantSchema","unitvariant_id","_deleted","boolean","unit_overrides","partial","programme_fields","imageObjectSchema","format","secure_url","url","height","width","metadata","union","any","attribution","usageRestriction","public_id","version","imageItemSchema","image_object","type","literal","textItemSchema","text","multipleChoiceSchema","answer","answer_is_active","answer_is_correct","shortAnswerSchema","answer_is_default","orderSchema","correct_order","matchSchema","correct_choice","match_option","quizQuestionSchema","question_id","question_uid","question_type","question_stem","answers","order","match","feedback","hint","active","syntheticUnitvariantLessonsSchema","lesson_slug","unit_slug","programme_slug","is_legacy","lesson_data","unit_data","null_unitvariant","supplementary_data","unit_order","order_in_unit","syntheticUnitvariantsWithLessonIdsSchema","lesson_count","lessonEquipmentAndResourcesSchema","equipment","keyLearningPointsSchema","key_learning_point","keywordsSchema","keyword","misconceptionsAndCommonMistakesSchema","misconception","response","teacherTipsSchema","teacher_tip","contentGuidanceSchema","contentguidance_label","contentguidance_description","contentguidance_area","lessonContentSchema","lesson_title","teacher_tips","lesson_keywords","video_mux_playback_id","video_with_sign_language_mux_playback_id","video_title","transcript_sentences","starter_quiz","exit_quiz","starter_quiz_id","exit_quiz_id","state","syntheticProgrammesByYearSchema","base_slug","threadsByUnitSchema","threads","theme_slug","theme_title","lessonDataFixture","overrides","Object","assign","programmeFieldsFixture","unitDataFixture","unitvariantFixture","textItemFixture","multipleChoiceFixture","shortAnswerFixture","orderFixture","matchFixture","multipleChoiceQuestion","shortAnswerQuestion","orderQuestion","matchQuestion","lessonEquipmentAndResourcesFixture","teacherTipsFixture","keywordsFixture","misconceptionsAndCommonMistakesFixture","contentGuidanceFixture"],"mappings":"kCAEa,MAAAA,EAAeC,EAACA,EAACC,KAAK,CAAC,YAAa,MAAO,cAC3CC,EAAgBF,EAACA,EAACC,KAAK,CAAC,YAAa,YAAa,MAElDE,EAAaH,EAACA,EAACC,KAAK,CAAC,aAAc,UAAW,cAC9CG,EAAoBJ,EAACA,EAACC,KAAK,CACtC,+BACA,UACA,cAEWI,EAASL,EAACA,EAACC,KAAK,CAAC,aAAc,UAAW,cAE1CK,EAAYN,EAAAA,EAAEC,KAAK,CAAC,MAAO,MAAO,MAAO,MAAO,SAChDM,EAAgBP,EAACA,EAACC,KAAK,CAClC,MACA,MACA,MACA,MACA,iCAEWO,EAAuBR,EAACA,EAACC,KAAK,CACzC,cACA,cACA,cACA,cACA,iCAGWQ,EAAQT,EAACA,EAACC,KAAK,CAC1B,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,KACA,KACA,KACA,KACA,MAEWS,EAAYV,EAACA,EAACC,KAAK,CAC9B,YACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,YAEWU,EAAmBX,EAACA,EAACC,KAAK,CACrC,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,UACA,cAGWW,EAAQZ,EAACA,EAACC,KAAK,CAAC,OAAQ,aAAc,WACtCY,EAAYb,EAACA,EAACC,KAAK,CAAC,OAAQ,aAAc,WAC1Ca,EAAmBd,EAACA,EAACC,KAAK,CAAC,OAAQ,aAAc,WAEjDc,EAAiBf,EAACA,EAACC,KAAK,CACnC,MACA,UACA,SACA,MACA,SAEWe,EAAahB,EAAAA,EAAEC,KAAK,CAAC,MAAO,UAAW,SAAU,MAAO,SACxDgB,EAAwBjB,EAACA,EAACC,KAAK,CAC1C,yCACA,UACA,SACA,yCACA,oCAGWiB,EAAWlB,EAACA,EAACC,KAAK,CAC7B,UACA,YACA,UACA,QACA,QACA,UACA,UACA,UACA,YACA,mBACA,iBACA,cACA,YACA,uBACA,wBACA,QACA,kBACA,+BACA,mBACA,6BACA,SACA,SACA,QACA,WACA,qBACA,6CACA,sBACA,cACA,UACA,0BACA,YACA,uBACA,mBACA,sBACA,8BACA,aACA,uBACA,6BACA,gBACA,qBACA,WACA,mBACA,mBACA,mBACA,iBACA,0BACA,0BACA,2BACA,2BACA,kBACA,4CAEWkB,EAAenB,EAACA,EAACC,KAAK,CACjC,UACA,YACA,UACA,QACA,QACA,UACA,UACA,UACA,YACA,mBACA,MACA,cACA,YACA,qBACA,oBACA,QACA,kBACA,+BACA,mBACA,6BACA,SACA,SACA,QACA,WACA,qBACA,4CACA,sBACA,YACA,UACA,0BACA,YACA,uBACA,mBACA,sBACA,8BACA,aACA,uBACA,6BACA,gBACA,qBACA,WACA,mBACA,mBACA,mBACA,iBACA,0BACA,0BACA,2BACA,2BACA,SCrMWmB,EAAmBpB,EAACA,EAACqB,OAAO,CACvCC,UAAWtB,EAACA,EAACuB,SACbC,WAAYxB,EAACA,EAACyB,SACdC,KAAM1B,EAACA,EAACyB,SACRE,MAAO3B,EAACA,EAACyB,SACTG,YAAa5B,EAACA,EAACyB,SACfI,qBAAsB7B,EAACA,EAACyB,SACxBK,oBAAqB9B,EAACA,EAAC+B,MAAM/B,EAACA,EAACqB,OAAO,CAAE,IACxCW,wBAAyBhC,EAACA,EAAC+B,MAAM/B,EAAAA,EAAEqB,OAAO,CAAE,IAAGY,WAC/CC,yBAA0BlC,EAACA,EAAC+B,MAAM/B,EAAAA,EAAEqB,OAAO,CAAE,IAAGY,WAChDE,iBAAkBnC,EAACA,EAAC+B,MAAM/B,EAACA,EAACuB,UAAUU,WACtCG,kBAAmBpC,EAACA,EAAC+B,MAAM/B,EAAAA,EAAEqB,OAAO,CAAE,IAAGY,WACzCI,kBAAmBrC,EAACA,EAACyB,SAASQ,WAC9BK,uBAAwBtC,EAACA,EAAC+B,MAAM/B,EAACA,EAACuB,UAAUU,WAC5CM,mCAAoCvC,EAACA,EAAC+B,MAAM/B,EAAAA,EAAEqB,OAAO,CAAE,IAAGY,WAC1DO,SAAUxC,EAACA,EAAC+B,MAAM/B,EAAAA,EAAEqB,OAAO,CAAE,IAAGY,WAChCQ,SAAUzC,EAACA,EAACuB,SAASU,WACrBS,uBAAwB1C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E,GAGZ,CAAA,IAAoCC,OAAAC,OAAA,CACtCjD,YAAa,cACbC,UAAW,YACXC,eAAgB,iBAChBC,WAAW,EACXC,YAAa0C,IACbzC,UAAW8C,IACX7C,iBAAkB8C,IAClB/F,iBAAkB6F,IAClB3C,mBAAoB,CAClBC,WAAY,EACZC,cAAe,IAEdsC,iGCnBoD,EACvDA,YAAY,CAAA,GAGV,CAAE,IACJC,OAAAC,OAAA,CAAAhD,UAAW,YACXC,eAAgB,iBAChBC,WAAW,EACXQ,aAAc,EACdN,UAAW8C,IACX7C,iBAAkB8C,IAClB/F,iBAAkB6F,IAClB3C,mBAAoB,CAClBC,WAAY,IAEXuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/schema/base.schema.ts","../../src/schema/lessonData.schema.ts","../../src/schema/programmeFields.schema.ts","../../src/schema/unitData.schema.ts","../../src/schema/unitvariant.schema.ts","../../src/schema/imageTextItems.schema.ts","../../src/schema/quizAnswers.schema.ts","../../src/schema/quizQuestion.schema.ts","../../src/schema/syntheticUnitvariantLessons.schema.ts","../../src/schema/syntheticUnitvariantsWithLessonIds.schema.ts","../../src/schema/lessonContent.schema.ts","../../src/schema/syntheticProgrammesByYear.schema.ts","../../src/schema/threadsByUnit.schema.ts","../../src/fixtures/lessonData.fixture.ts","../../src/fixtures/programmeFields.fixture.ts","../../src/fixtures/unitData.fixture.ts","../../src/fixtures/unitvariant.fixture.ts","../../src/fixtures/imageTextItems.fixture.ts","../../src/fixtures/quizAnswers.fixture.ts","../../src/fixtures/quizQuestion.fixture.ts","../../src/fixtures/lessonContent.fixture.ts","../../src/fixtures/syntheticProgrammesByYear.fixture.ts","../../src/fixtures/syntheticUnitvariantLessons.fixture.ts","../../src/fixtures/syntheticUnitvariantsWithLessonIds.fixture.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const _stateSchema = z.enum([\"published\", \"new\", \"migration\"]);\nexport const _cohortSchema = z.enum([\"2020-2023\", \"2023-2024\", \"0\"]);\n\nexport const phaseSlugs = z.enum([\"foundation\", \"primary\", \"secondary\"]);\nexport const phaseDescriptions = z.enum([\n \"Early Years Foundation Stage\",\n \"Primary\",\n \"Secondary\",\n]);\nexport const phases = z.enum([\"foundation\", \"primary\", \"secondary\"]);\n\nexport const keystages = z.enum([\"KS1\", \"KS2\", \"KS3\", \"KS4\", \"EYFS\"]);\nexport const keystageSlugs = z.enum([\n \"ks1\",\n \"ks2\",\n \"ks3\",\n \"ks4\",\n \"early-years-foundation-stage\",\n]);\nexport const keystageDescriptions = z.enum([\n \"Key Stage 1\",\n \"Key Stage 2\",\n \"Key Stage 3\",\n \"Key Stage 4\",\n \"Early Years Foundation Stage\",\n]);\n\nexport const years = z.enum([\n \"1\",\n \"2\",\n \"3\",\n \"4\",\n \"5\",\n \"6\",\n \"7\",\n \"8\",\n \"9\",\n \"10\",\n \"11\",\n \"12\",\n \"13\",\n \"R\",\n]);\nexport const yearSlugs = z.enum([\n \"reception\",\n \"year-1\",\n \"year-2\",\n \"year-3\",\n \"year-4\",\n \"year-5\",\n \"year-6\",\n \"year-7\",\n \"year-8\",\n \"year-9\",\n \"year-10\",\n \"year-11\",\n \"year-12\",\n \"year-13\",\n]);\nexport const yearDescriptions = z.enum([\n \"Year 1\",\n \"Year 2\",\n \"Year 3\",\n \"Year 4\",\n \"Year 5\",\n \"Year 6\",\n \"Year 7\",\n \"Year 8\",\n \"Year 9\",\n \"Year 10\",\n \"Year 11\",\n \"Year 12\",\n \"Year 13\",\n \"Reception\",\n]);\n\nexport const tiers = z.enum([\"core\", \"foundation\", \"higher\"]);\nexport const tierSlugs = z.enum([\"core\", \"foundation\", \"higher\"]);\nexport const tierDescriptions = z.enum([\"Core\", \"Foundation\", \"Higher\"]);\n\nexport const examboardSlugs = z.enum([\n \"aqa\",\n \"edexcel\",\n \"eduqas\",\n \"ocr\",\n \"wjec\",\n]);\nexport const examboards = z.enum([\"AQA\", \"Edexcel\", \"Eduqas\", \"OCR\", \"WJEC\"]);\nexport const examboardDescriptions = z.enum([\n \"Assessment and Qualifications Alliance\",\n \"Edexcel\",\n \"Eduqas\",\n \"Oxford, Cambridge and RSA Examinations\",\n \"Welsh Joint Education Committee\",\n]);\n\nexport const subjects = z.enum([\n \"English\",\n \"Geography\",\n \"History\",\n \"Maths\",\n \"Music\",\n \"Science\",\n \"Biology\",\n \"Physics\",\n \"Chemistry\",\n \"Combined science\",\n \"Art and design\",\n \"Citizenship\",\n \"Computing\",\n \"Computing (non-GCSE)\",\n \"Design and technology\",\n \"Drama\",\n \"English grammar\",\n \"English reading for pleasure\",\n \"English spelling\",\n \"Expressive arts and design\",\n \"French\",\n \"German\",\n \"Latin\",\n \"Literacy\",\n \"Physical education\",\n \"Personal, social and emotional development\",\n \"Religious education\",\n \"RSHE (PSHE)\",\n \"Spanish\",\n \"Understanding the world\",\n \"Therapies\",\n \"Occupational therapy\",\n \"Physical therapy\",\n \"Sensory integration\",\n \"Speech and language therapy\",\n \"Specialist\",\n \"Physical development\",\n \"Communication and language\",\n \"Creative arts\",\n \"Independent living\",\n \"Numeracy\",\n \"GCSE citizenship\",\n \"Core citizenship\",\n \"Computer science\",\n \"Core computing\",\n \"GCSE physical education\",\n \"Core physical education\",\n \"GCSE religious education\",\n \"Core religious education\",\n \"QA testing only\",\n \"Relationships, sex and health education\",\n]);\nexport const subjectSlugs = z.enum([\n \"english\",\n \"geography\",\n \"history\",\n \"maths\",\n \"music\",\n \"science\",\n \"biology\",\n \"physics\",\n \"chemistry\",\n \"combined-science\",\n \"art\",\n \"citizenship\",\n \"computing\",\n \"computing-non-gcse\",\n \"design-technology\",\n \"drama\",\n \"english-grammar\",\n \"english-reading-for-pleasure\",\n \"english-spelling\",\n \"expressive-arts-and-design\",\n \"french\",\n \"german\",\n \"latin\",\n \"literacy\",\n \"physical-education\",\n \"personal-social-and-emotional-development\",\n \"religious-education\",\n \"rshe-pshe\",\n \"spanish\",\n \"understanding-the-world\",\n \"therapies\",\n \"occupational-therapy\",\n \"physical-therapy\",\n \"sensory-integration\",\n \"speech-and-language-therapy\",\n \"specialist\",\n \"physical-development\",\n \"communication-and-language\",\n \"creative-arts\",\n \"independent-living\",\n \"numeracy\",\n \"gcse-citizenship\",\n \"core-citizenship\",\n \"computer-science\",\n \"core-computing\",\n \"gcse-physical-education\",\n \"core-physical-education\",\n \"gcse-religious-education\",\n \"core-religious-education\",\n \"rshe\",\n]);\n","import { z } from \"zod\";\n\nimport { _stateSchema, _cohortSchema } from \"./base.schema\";\n\nexport const lessonDataSchema = z.object({\n lesson_id: z.number(),\n lesson_uid: z.string(),\n slug: z.string(),\n title: z.string(),\n description: z.string(),\n pupil_lesson_outcome: z.string(),\n key_learning_points: z.array(z.object({})),\n equipment_and_resources: z.array(z.object({})).nullable(),\n content_guidance_details: z.array(z.object({})).nullable(),\n content_guidance: z.array(z.number()).nullable(),\n copyright_content: z.array(z.object({})).nullable(),\n supervision_level: z.string().nullable(),\n thirdpartycontent_list: z.array(z.number()).nullable(),\n misconceptions_and_common_mistakes: z.array(z.object({})).nullable(),\n keywords: z.array(z.object({})).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 asset_id_slidedeck: z.number().nullable(),\n asset_id_worksheet: z.number().nullable(),\n deprecated_fields: z.record(z.unknown()).nullable(),\n _state: _stateSchema,\n _cohort: _cohortSchema,\n});\n\nexport type LessonData = z.infer<typeof lessonDataSchema>;\n","import { z } from \"zod\";\nimport {\n keystages,\n keystageSlugs,\n keystageDescriptions,\n examboards,\n examboardSlugs,\n examboardDescriptions,\n tierSlugs,\n tierDescriptions,\n tiers,\n yearSlugs,\n yearDescriptions,\n years,\n phases,\n phaseSlugs,\n phaseDescriptions,\n subjects,\n subjectSlugs,\n} from \"./base.schema\";\n\nexport const programmeFieldsSchema = z.object({\n tier: tiers.nullable(),\n tier_id: z.number().nullable(),\n tier_slug: tierSlugs.nullable(),\n tier_description: tierDescriptions.nullable(),\n tier_display_order: z.number().nullable(),\n\n examboard: examboards.nullable(),\n examboard_id: z.number().nullable(),\n examboard_slug: examboardSlugs.nullable(),\n examboard_description: examboardDescriptions.nullable(),\n examboard_display_order: z.number().nullable(),\n\n year: years,\n year_slug: yearSlugs,\n year_id: z.number(),\n year_description: yearDescriptions,\n year_display_order: z.number(),\n\n keystage: keystages,\n keystage_id: z.number(),\n keystage_slug: keystageSlugs,\n keystage_description: keystageDescriptions,\n keystage_display_order: z.number(),\n\n phase: phases,\n phase_id: z.number(),\n phase_slug: phaseSlugs,\n phase_description: phaseDescriptions,\n phase_display_order: z.number(),\n\n subject: subjects,\n subject_id: z.number(),\n subject_slug: subjectSlugs,\n subject_description: z.string(),\n subject_display_order: z.number(),\n\n legacy: z.string().optional(),\n dataset: z.string().optional(),\n});\n\nexport type ProgrammeFields = z.infer<typeof programmeFieldsSchema>;\n","import { z } from \"zod\";\n\nimport { _stateSchema, _cohortSchema } from \"./base.schema\";\n\nexport const unitDataSchema = z.object({\n unit_id: z.number(),\n unit_uid: z.string(),\n description: z.string().nullable(),\n slug: z.string(),\n tags: z.array(z.number()).nullable(),\n deprecated_fields: z.record(z.unknown()).nullable().optional(),\n title: z.string(),\n _state: _stateSchema,\n _cohort: _cohortSchema,\n});\n\nexport type UnitData = z.infer<typeof unitDataSchema>;\n","import { z } from \"zod\";\n\nimport { _stateSchema, _cohortSchema } from \"./base.schema\";\nimport { unitDataSchema } from \"./unitData.schema\";\nimport { programmeFieldsSchema } from \"./programmeFields.schema\";\n\nexport const unitvariantSchema = z.object({\n _state: _stateSchema,\n _cohort: _cohortSchema,\n unit_id: z.number(),\n unitvariant_id: z.number(),\n _deleted: z.boolean(),\n unit_overrides: unitDataSchema.partial(),\n programme_fields: programmeFieldsSchema.partial(),\n});\n\nexport type Unitvariant = z.infer<typeof unitvariantSchema>;\n","import { z } from \"zod\";\n\nexport const imageObjectSchema = z.object({\n format: z.enum([\"png\", \"jpg\", \"jpeg\", \"webp\", \"gif\", \"svg\"]).optional(),\n secure_url: z.string().url(),\n url: z.string().url().optional(),\n height: z.number().optional(),\n width: z.number().optional(),\n metadata: z.union([\n z.array(z.any()),\n z.object({\n attribution: z.string().optional(),\n usageRestriction: z.string().optional(),\n }),\n ]),\n public_id: z.string().optional(),\n version: z.number().optional(),\n});\n\nexport type ImageObject = z.infer<typeof imageObjectSchema>;\n\nexport const imageItemSchema = z.object({\n image_object: imageObjectSchema,\n type: z.literal(\"image\"),\n});\n\nexport type ImageItem = z.infer<typeof imageItemSchema>;\n\nexport const textItemSchema = z.object({\n text: z.string(),\n type: z.literal(\"text\"),\n});\n\nexport type TextItem = z.infer<typeof textItemSchema>;\n","import { z } from \"zod\";\nimport { imageItemSchema, textItemSchema } from \"./imageTextItems.schema\";\n\nexport const multipleChoiceSchema = z.object({\n answer: z.array(z.union([textItemSchema, imageItemSchema]).optional()),\n answer_is_active: z.boolean().optional(),\n answer_is_correct: z.boolean().optional(),\n});\n\nexport type MultipleChoice = z.infer<typeof multipleChoiceSchema>;\n\nexport const shortAnswerSchema = z.object({\n answer: z.array(z.union([textItemSchema, imageItemSchema]).optional()),\n answer_is_active: z.boolean().optional(),\n answer_is_default: z.boolean().optional(),\n});\n\nexport type ShortAnswer = z.infer<typeof shortAnswerSchema>;\n\nexport const orderSchema = z.object({\n answer: z.array(textItemSchema),\n correct_order: z.number().optional(),\n answer_is_active: z.boolean().optional(),\n});\n\nexport type Order = z.infer<typeof orderSchema>;\n\nexport const matchSchema = z.object({\n answer_is_active: z.boolean().optional(),\n correct_choice: z.array(textItemSchema),\n match_option: z.array(textItemSchema).optional(),\n});\n\nexport type Match = z.infer<typeof matchSchema>;\n","import { z } from \"zod\";\n\nimport { imageItemSchema, textItemSchema } from \"./imageTextItems.schema\";\nimport {\n matchSchema,\n multipleChoiceSchema,\n orderSchema,\n shortAnswerSchema,\n} from \"./quizAnswers.schema\";\n\nexport const quizQuestionSchema = z.object({\n question_id: z.number(),\n question_uid: z.string(),\n question_type: z.string(),\n question_stem: z\n .array(z.union([textItemSchema, imageItemSchema]))\n .optional()\n .nullable(),\n answers: z\n .object({\n \"multiple-choice\": z.array(multipleChoiceSchema).optional(),\n \"short-answer\": z.array(shortAnswerSchema).optional(),\n order: z.array(orderSchema).optional(),\n match: z.array(matchSchema).optional(),\n })\n .optional()\n .nullable(),\n feedback: z.string().optional().nullable(),\n hint: z.string().optional().nullable(),\n active: z.boolean().optional(),\n order: z.number(),\n});\n\nexport type QuizQuestion = z.infer<typeof quizQuestionSchema>;\n","import { z } from \"zod\";\nimport { lessonDataSchema } from \"./lessonData.schema\";\nimport { unitDataSchema } from \"./unitData.schema\";\nimport { unitvariantSchema } from \"./unitvariant.schema\";\nimport { programmeFieldsSchema } from \"./programmeFields.schema\";\n\nexport const syntheticUnitvariantLessonsSchema = z.object({\n lesson_slug: z.string(),\n unit_slug: z.string(),\n programme_slug: z.string(),\n is_legacy: z.boolean(),\n lesson_data: lessonDataSchema,\n unit_data: unitDataSchema,\n null_unitvariant: unitvariantSchema,\n programme_fields: programmeFieldsSchema,\n supplementary_data: z.object({\n unit_order: z.number(),\n order_in_unit: z.number(),\n }),\n});\n\nexport type SyntheticUnitvariantLessons = z.infer<\n typeof syntheticUnitvariantLessonsSchema\n>;\n","import { z } from \"zod\";\nimport { unitDataSchema } from \"./unitData.schema\";\nimport { unitvariantSchema } from \"./unitvariant.schema\";\nimport { programmeFieldsSchema } from \"./programmeFields.schema\";\n\nexport const syntheticUnitvariantsWithLessonIdsSchema = z.object({\n unit_slug: z.string(),\n programme_slug: z.string(),\n is_legacy: z.boolean(),\n lesson_count: z.number(),\n unit_data: unitDataSchema,\n null_unitvariant: unitvariantSchema,\n programme_fields: programmeFieldsSchema,\n supplementary_data: z.object({\n unit_order: z.number(),\n }),\n expired: z.boolean(),\n});\n\nexport type syntheticUnitvariantsWithLessonIds = z.infer<\n typeof syntheticUnitvariantsWithLessonIdsSchema\n>;\n","import { z } from \"zod\";\n\nimport { quizQuestionSchema } from \"./quizQuestion.schema\";\n\nexport const lessonEquipmentAndResourcesSchema = z.object({\n equipment: z.string(),\n});\n\nexport type LessonEquipmentAndResources = z.infer<\n typeof lessonEquipmentAndResourcesSchema\n>;\n\nexport const keyLearningPointsSchema = z.object({\n key_learning_point: z.string(),\n});\n\nexport type KeyLearningPoints = z.infer<typeof keyLearningPointsSchema>;\n\nexport const keywordsSchema = z.object({\n keyword: z.string(),\n description: z.string(),\n});\n\nexport type Keywords = z.infer<typeof keywordsSchema>;\n\nexport const misconceptionsAndCommonMistakesSchema = z.object({\n misconception: z.string(),\n response: z.string(),\n});\n\nexport type MisconceptionsAndCommonMistakes = z.infer<\n typeof misconceptionsAndCommonMistakesSchema\n>;\n\nexport const teacherTipsSchema = z.object({\n teacher_tip: z.string(),\n});\n\nexport type TeacherTips = z.infer<typeof teacherTipsSchema>;\n\nexport const contentGuidanceSchema = z.object({\n contentguidance_label: z.string().nullable(),\n contentguidance_description: z.string().nullable(),\n contentguidance_area: z.string().nullable(),\n});\n\nexport type ContentGuidance = z.infer<typeof contentGuidanceSchema>;\n\nexport const lessonContentSchema = z.object({\n lesson_id: z.number(),\n lesson_slug: z.string(),\n lesson_title: z.string().nullable(),\n content_guidance: z.array(contentGuidanceSchema).nullable(),\n misconceptions_and_common_mistakes: z\n .array(misconceptionsAndCommonMistakesSchema)\n .nullable(),\n teacher_tips: z.array(teacherTipsSchema).nullable(),\n equipment_and_resources: z\n .array(lessonEquipmentAndResourcesSchema)\n .nullable(),\n pupil_lesson_outcome: z.string().nullable(),\n lesson_keywords: z.array(keywordsSchema).nullable(),\n supervision_level: z.string().nullable(),\n key_learning_points: z.array(keyLearningPointsSchema).nullable().optional(),\n video_mux_playback_id: z.string().nullable(),\n video_with_sign_language_mux_playback_id: z.string().nullable(),\n video_id: z.number().nullable(),\n video_title: z.string().nullable(),\n transcript_sentences: z.string().nullable(),\n starter_quiz: z.array(quizQuestionSchema).optional().nullable(),\n exit_quiz: z.array(quizQuestionSchema).optional().nullable(),\n starter_quiz_id: z.number().nullable(),\n exit_quiz_id: z.number().nullable(),\n state: z.string(),\n is_legacy: z.boolean().nullable(),\n deprecated_fields: z.record(z.unknown()).nullable(),\n});\n\nexport type LessonContent = z.infer<typeof lessonContentSchema>;\n","import { z } from \"zod\";\nimport { programmeFieldsSchema } from \"./programmeFields.schema\";\nimport { yearSlugs } from \"./base.schema\";\n\nexport const syntheticProgrammesByYearSchema = z.object({\n year_slug: yearSlugs,\n programme_slug: z.string(),\n base_slug: z.string(),\n is_legacy: z.boolean(),\n programme_fields: programmeFieldsSchema,\n});\n\nexport type SyntheticProgrammesByYear = z.infer<\n typeof syntheticProgrammesByYearSchema\n>;\n","import { z } from \"zod\";\n\nexport const threadsByUnitSchema = z.object({\n unit_id: z.number(),\n threads: z\n .array(z.object({ theme_slug: z.string(), theme_title: z.string() }))\n .nullable(),\n});\n\nexport type ThreadsByUnit = z.infer<typeof threadsByUnitSchema>;\n","import { LessonData } from \"@/schema/lessonData.schema\";\n\nexport const lessonDataFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<LessonData>;\n} = {}): LessonData => ({\n lesson_id: 1,\n lesson_uid: \"lesson-uid\",\n title: \"lesson-title\",\n description: \"lesson-description\",\n slug: \"lesson-slug\",\n pupil_lesson_outcome: \"pupil-lesson-outcome\",\n key_learning_points: [{}],\n equipment_and_resources: null,\n content_guidance_details: null,\n content_guidance: null,\n supervision_level: null,\n thirdpartycontent_list: null,\n misconceptions_and_common_mistakes: null,\n keywords: null,\n video_id: null,\n sign_language_video_id: null,\n quiz_id_starter: null,\n quiz_id_exit: null,\n asset_id_slidedeck: null,\n asset_id_worksheet: null,\n copyright_content: null,\n _state: \"published\",\n _cohort: \"2023-2024\",\n deprecated_fields: null,\n ...overrides,\n});\n","import { ProgrammeFields } from \"@/schema/programmeFields.schema\";\n\nexport const programmeFieldsFixture = ({\n overrides,\n}: {\n overrides?: Partial<ProgrammeFields>;\n} = {}): ProgrammeFields => ({\n tier: null,\n tier_id: null,\n tier_slug: null,\n tier_description: null,\n tier_display_order: null,\n examboard: null,\n examboard_id: null,\n examboard_slug: null,\n examboard_description: null,\n examboard_display_order: null,\n year: \"1\",\n year_slug: \"year-1\",\n year_id: 1,\n year_description: \"Year 1\",\n year_display_order: 1,\n keystage: \"KS1\",\n keystage_id: 1,\n keystage_slug: \"ks1\",\n keystage_description: \"Key Stage 1\",\n keystage_display_order: 1,\n phase: \"primary\",\n phase_id: 0,\n phase_slug: \"primary\",\n phase_description: \"Primary\",\n phase_display_order: 1,\n subject: \"Maths\",\n subject_id: 1,\n subject_slug: \"maths\",\n subject_description: \"subject-description\",\n subject_display_order: 1,\n ...overrides,\n});\n","import { UnitData } from \"@/schema/unitData.schema\";\n\nexport const unitDataFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<UnitData>;\n} = {}): UnitData => ({\n unit_id: 0,\n unit_uid: \"unit-uid\",\n description: null,\n slug: \"unit-slug\",\n tags: null,\n title: \"unit-title\",\n _state: \"published\",\n _cohort: \"2023-2024\",\n ...overrides,\n});\n","import { Unitvariant } from \"@/schema/unitvariant.schema\";\n\nexport const unitvariantFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<Unitvariant>;\n} = {}): Unitvariant => ({\n unitvariant_id: 1,\n unit_id: 1,\n _deleted: false,\n _state: \"published\",\n _cohort: \"2023-2024\",\n unit_overrides: {},\n programme_fields: {},\n ...overrides,\n});\n","import {\n ImageObject,\n ImageItem,\n TextItem,\n} from \"@/schema/imageTextItems.schema\";\n\nexport const imageObjectFixture = (): ImageObject => ({\n format: \"png\",\n secure_url: \"https://res.cloudinary.com/demo/image/upload/sample.png\",\n url: \"http://res.cloudinary.com/demo/image/upload/sample.png\",\n height: 100,\n width: 100,\n metadata: {\n attribution: \"author\",\n usageRestriction: \"free\",\n },\n public_id: \"sample\",\n version: 1234567890,\n});\n\nexport const imageItemFixture = (): ImageItem => ({\n image_object: imageObjectFixture(),\n type: \"image\",\n});\n\nexport const textItemFixture = ({\n overrides = {},\n}: { overrides?: Partial<TextItem> } = {}): TextItem => ({\n text: \"Hello, World!\",\n type: \"text\",\n ...overrides,\n});\n","import {\n Match,\n MultipleChoice,\n Order,\n ShortAnswer,\n} from \"@/schema/quizAnswers.schema\";\nimport { imageItemFixture, textItemFixture } from \"./imageTextItems.fixture\";\n\nexport const multipleChoiceFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<MultipleChoice>;\n} = {}): MultipleChoice => ({\n answer: [textItemFixture(), imageItemFixture()],\n answer_is_active: true,\n answer_is_correct: true,\n ...overrides,\n});\n\nexport const shortAnswerFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<ShortAnswer>;\n} = {}): ShortAnswer => ({\n answer: [textItemFixture(), imageItemFixture()],\n answer_is_active: true,\n answer_is_default: true,\n ...overrides,\n});\n\nexport const orderFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<Order>;\n} = {}): Order => ({\n answer: [textItemFixture()],\n correct_order: 1,\n answer_is_active: true,\n ...overrides,\n});\n\nexport const matchFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<Match>;\n} = {}): Match => ({\n answer_is_active: true,\n correct_choice: [textItemFixture({ overrides: { text: \"Paris\" } })],\n match_option: [textItemFixture({ overrides: { text: \"Capital of France\" } })],\n ...overrides,\n});\n","import { QuizQuestion } from \"@/schema/quizQuestion.schema\";\n\nimport {\n matchFixture,\n multipleChoiceFixture,\n orderFixture,\n shortAnswerFixture,\n} from \"./quizAnswers.fixture\";\n\nexport const multipleChoiceQuestion = ({\n overrides = {},\n}: {\n overrides?: Partial<QuizQuestion>;\n} = {}): QuizQuestion => ({\n question_id: 1,\n question_uid: \"question-1\",\n question_type: \"multiple-choice\",\n question_stem: [\n {\n text: \"What is the capital of France?\",\n type: \"text\",\n },\n ],\n answers: {\n \"multiple-choice\": [\n multipleChoiceFixture({ overrides: { answer_is_correct: true } }),\n multipleChoiceFixture({ overrides: { answer_is_correct: false } }),\n multipleChoiceFixture({ overrides: { answer_is_correct: false } }),\n multipleChoiceFixture({ overrides: { answer_is_correct: false } }),\n ],\n },\n feedback: \"Paris is the capital of France.\",\n hint: \"Think about the Eiffel Tower.\",\n active: true,\n order: 1,\n ...overrides,\n});\n\nexport const shortAnswerQuestion = ({\n overrides = {},\n}: {\n overrides?: Partial<QuizQuestion>;\n} = {}): QuizQuestion => ({\n question_id: 2,\n question_uid: \"question-2\",\n question_type: \"short-answer\",\n question_stem: [\n {\n text: \"What is the capital of France?\",\n type: \"text\",\n },\n ],\n answers: {\n \"short-answer\": [shortAnswerFixture()],\n },\n feedback: \"Paris is the capital of France.\",\n hint: \"Think about the Eiffel Tower.\",\n active: true,\n order: 2,\n ...overrides,\n});\n\nexport const orderQuestion = ({\n overrides = {},\n}: {\n overrides?: Partial<QuizQuestion>;\n} = {}): QuizQuestion => ({\n question_id: 3,\n question_uid: \"question-3\",\n question_type: \"order\",\n question_stem: [\n {\n text: \"What is the capital of France?\",\n type: \"text\",\n },\n ],\n answers: {\n order: [\n orderFixture({ overrides: { correct_order: 1 } }),\n orderFixture({ overrides: { correct_order: 2 } }),\n orderFixture({ overrides: { correct_order: 3 } }),\n orderFixture({ overrides: { correct_order: 4 } }),\n ],\n },\n feedback: \"Paris is the capital of France.\",\n hint: \"Think about the Eiffel Tower.\",\n active: true,\n order: 3,\n ...overrides,\n});\n\nexport const matchQuestion = ({\n overrides = {},\n}: {\n overrides?: Partial<QuizQuestion>;\n} = {}): QuizQuestion => ({\n question_id: 4,\n question_uid: \"question-4\",\n question_type: \"match\",\n question_stem: [\n {\n text: \"What is the capital of France?\",\n type: \"text\",\n },\n ],\n answers: {\n match: [matchFixture(), matchFixture(), matchFixture(), matchFixture()],\n },\n feedback: \"Paris is the capital of France.\",\n hint: \"Think about the Eiffel Tower.\",\n active: true,\n order: 4,\n ...overrides,\n});\n","import {\n Keywords,\n LessonContent,\n TeacherTips,\n LessonEquipmentAndResources,\n} from \"@/schema/lessonContent.schema\";\nimport {\n matchQuestion,\n multipleChoiceQuestion,\n orderQuestion,\n shortAnswerQuestion,\n} from \"./quizQuestion.fixture\";\n\nexport const lessonEquipmentAndResourcesFixture =\n (): LessonEquipmentAndResources => ({\n equipment: \"equipment\",\n });\n\nexport const teacherTipsFixture = (): TeacherTips => ({\n teacher_tip: \"teacher-tip\",\n});\n\nexport const keywordsFixture = (): Keywords => ({\n keyword: \"keyword\",\n description: \"description\",\n});\n\nexport const misconceptionsAndCommonMistakesFixture = () => ({\n misconception: \"misconception\",\n response: \"response\",\n});\n\nexport const contentGuidanceFixture = () => ({\n contentguidance_label: \"contentguidance-label\",\n contentguidance_description: \"contentguidance-description\",\n contentguidance_area: \"contentguidance-area\",\n});\n\nexport const lessonContentFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<LessonContent>;\n} = {}): LessonContent => ({\n lesson_id: 1,\n lesson_title: \"lesson-title\",\n lesson_slug: \"lesson-slug\",\n deprecated_fields: {},\n is_legacy: false,\n misconceptions_and_common_mistakes: [\n misconceptionsAndCommonMistakesFixture(),\n ],\n equipment_and_resources: [lessonEquipmentAndResourcesFixture()],\n teacher_tips: [teacherTipsFixture()],\n key_learning_points: null,\n pupil_lesson_outcome: \"pupil-lesson-outcome\",\n lesson_keywords: [keywordsFixture()],\n content_guidance: [contentGuidanceFixture()],\n video_mux_playback_id: \"video-mux-playback-id\",\n video_id: null,\n video_with_sign_language_mux_playback_id:\n \"video-with-sign-language-mux-playback-id\",\n video_title: \"video-title\",\n transcript_sentences: \"this is the transcript\",\n starter_quiz: [\n multipleChoiceQuestion({\n overrides: { order: 1, question_uid: \"starter-quiz-1\" },\n }),\n orderQuestion({ overrides: { order: 2, question_uid: \"starter-quiz-2\" } }),\n matchQuestion({ overrides: { order: 3, question_uid: \"starter-quiz-3\" } }),\n shortAnswerQuestion({\n overrides: { order: 4, question_uid: \"starter-quiz-4\" },\n }),\n ],\n starter_quiz_id: 1,\n exit_quiz: null,\n exit_quiz_id: null,\n supervision_level: null,\n state: \"published\",\n ...overrides,\n});\n","import { SyntheticProgrammesByYear } from \"@/schema/syntheticProgrammesByYear.schema\";\nimport { programmeFieldsFixture } from \"./programmeFields.fixture\";\n\nexport const syntheticProgrammesByYearFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<SyntheticProgrammesByYear>;\n} = {}): SyntheticProgrammesByYear => ({\n year_slug: \"year-1\",\n base_slug: \"maths-primary-year-1\",\n programme_slug: \"maths-primary-year-1\",\n is_legacy: false,\n programme_fields: programmeFieldsFixture(),\n});\n","import { SyntheticUnitvariantLessons } from \"@/schema/syntheticUnitvariantLessons.schema\";\n\nimport { lessonDataFixture } from \"./lessonData.fixture\";\nimport { unitDataFixture } from \"./unitData.fixture\";\nimport { unitvariantFixture } from \"./unitvariant.fixture\";\nimport { programmeFieldsFixture } from \"./programmeFields.fixture\";\n\nexport const syntheticUnitvariantLessonsFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<SyntheticUnitvariantLessons>;\n} = {}): SyntheticUnitvariantLessons => ({\n lesson_slug: \"lesson-slug\",\n unit_slug: \"unit-slug\",\n programme_slug: \"programme-slug\",\n is_legacy: false,\n lesson_data: lessonDataFixture(),\n unit_data: unitDataFixture(),\n null_unitvariant: unitvariantFixture(),\n programme_fields: programmeFieldsFixture(),\n supplementary_data: {\n unit_order: 1,\n order_in_unit: 1,\n },\n ...overrides,\n});\n","import { unitDataFixture } from \"./unitData.fixture\";\nimport { unitvariantFixture } from \"./unitvariant.fixture\";\nimport { programmeFieldsFixture } from \"./programmeFields.fixture\";\nimport { syntheticUnitvariantsWithLessonIds } from \"@/schema/syntheticUnitvariantsWithLessonIds.schema\";\n\nexport const syntheticUnitvariantsWithLessonIdsFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<syntheticUnitvariantsWithLessonIds>;\n} = {}): syntheticUnitvariantsWithLessonIds => ({\n unit_slug: \"unit-slug\",\n programme_slug: \"programme-slug\",\n is_legacy: false,\n lesson_count: 1,\n unit_data: unitDataFixture(),\n null_unitvariant: unitvariantFixture(),\n programme_fields: programmeFieldsFixture(),\n supplementary_data: {\n unit_order: 1,\n },\n expired: false,\n ...overrides,\n});\n"],"names":["_stateSchema","z","enum","_cohortSchema","phaseSlugs","phaseDescriptions","phases","keystages","keystageSlugs","keystageDescriptions","years","yearSlugs","yearDescriptions","tiers","tierSlugs","tierDescriptions","examboardSlugs","examboards","examboardDescriptions","subjects","subjectSlugs","lessonDataSchema","object","lesson_id","number","lesson_uid","string","slug","title","description","pupil_lesson_outcome","key_learning_points","array","equipment_and_resources","nullable","content_guidance_details","content_guidance","copyright_content","supervision_level","thirdpartycontent_list","misconceptions_and_common_mistakes","keywords","video_id","sign_language_video_id","quiz_id_starter","quiz_id_exit","asset_id_slidedeck","asset_id_worksheet","deprecated_fields","record","unknown","_state","_cohort","programmeFieldsSchema","tier","tier_id","tier_slug","tier_description","tier_display_order","examboard","examboard_id","examboard_slug","examboard_description","examboard_display_order","year","year_slug","year_id","year_description","year_display_order","keystage","keystage_id","keystage_slug","keystage_description","keystage_display_order","phase","phase_id","phase_slug","phase_description","phase_display_order","subject","subject_id","subject_slug","subject_description","subject_display_order","legacy","optional","dataset","unitDataSchema","unit_id","unit_uid","tags","unitvariantSchema","unitvariant_id","_deleted","boolean","unit_overrides","partial","programme_fields","imageObjectSchema","format","secure_url","url","height","width","metadata","union","any","attribution","usageRestriction","public_id","version","imageItemSchema","image_object","type","literal","textItemSchema","text","multipleChoiceSchema","answer","answer_is_active","answer_is_correct","shortAnswerSchema","answer_is_default","orderSchema","correct_order","matchSchema","correct_choice","match_option","quizQuestionSchema","question_id","question_uid","question_type","question_stem","answers","order","match","feedback","hint","active","syntheticUnitvariantLessonsSchema","lesson_slug","unit_slug","programme_slug","is_legacy","lesson_data","unit_data","null_unitvariant","supplementary_data","unit_order","order_in_unit","syntheticUnitvariantsWithLessonIdsSchema","lesson_count","expired","lessonEquipmentAndResourcesSchema","equipment","keyLearningPointsSchema","key_learning_point","keywordsSchema","keyword","misconceptionsAndCommonMistakesSchema","misconception","response","teacherTipsSchema","teacher_tip","contentGuidanceSchema","contentguidance_label","contentguidance_description","contentguidance_area","lessonContentSchema","lesson_title","teacher_tips","lesson_keywords","video_mux_playback_id","video_with_sign_language_mux_playback_id","video_title","transcript_sentences","starter_quiz","exit_quiz","starter_quiz_id","exit_quiz_id","state","syntheticProgrammesByYearSchema","base_slug","threadsByUnitSchema","threads","theme_slug","theme_title","lessonDataFixture","overrides","Object","assign","programmeFieldsFixture","unitDataFixture","unitvariantFixture","textItemFixture","multipleChoiceFixture","shortAnswerFixture","orderFixture","matchFixture","multipleChoiceQuestion","shortAnswerQuestion","orderQuestion","matchQuestion","lessonEquipmentAndResourcesFixture","teacherTipsFixture","keywordsFixture","misconceptionsAndCommonMistakesFixture","contentGuidanceFixture"],"mappings":"kCAEa,MAAAA,EAAeC,EAACA,EAACC,KAAK,CAAC,YAAa,MAAO,cAC3CC,EAAgBF,EAACA,EAACC,KAAK,CAAC,YAAa,YAAa,MAElDE,EAAaH,EAACA,EAACC,KAAK,CAAC,aAAc,UAAW,cAC9CG,EAAoBJ,EAACA,EAACC,KAAK,CACtC,+BACA,UACA,cAEWI,EAASL,EAACA,EAACC,KAAK,CAAC,aAAc,UAAW,cAE1CK,EAAYN,EAAAA,EAAEC,KAAK,CAAC,MAAO,MAAO,MAAO,MAAO,SAChDM,EAAgBP,EAACA,EAACC,KAAK,CAClC,MACA,MACA,MACA,MACA,iCAEWO,EAAuBR,EAACA,EAACC,KAAK,CACzC,cACA,cACA,cACA,cACA,iCAGWQ,EAAQT,EAACA,EAACC,KAAK,CAC1B,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,KACA,KACA,KACA,KACA,MAEWS,EAAYV,EAACA,EAACC,KAAK,CAC9B,YACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,YAEWU,EAAmBX,EAACA,EAACC,KAAK,CACrC,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,UACA,cAGWW,EAAQZ,EAACA,EAACC,KAAK,CAAC,OAAQ,aAAc,WACtCY,EAAYb,EAACA,EAACC,KAAK,CAAC,OAAQ,aAAc,WAC1Ca,EAAmBd,EAACA,EAACC,KAAK,CAAC,OAAQ,aAAc,WAEjDc,EAAiBf,EAACA,EAACC,KAAK,CACnC,MACA,UACA,SACA,MACA,SAEWe,EAAahB,EAAAA,EAAEC,KAAK,CAAC,MAAO,UAAW,SAAU,MAAO,SACxDgB,EAAwBjB,EAACA,EAACC,KAAK,CAC1C,yCACA,UACA,SACA,yCACA,oCAGWiB,EAAWlB,EAACA,EAACC,KAAK,CAC7B,UACA,YACA,UACA,QACA,QACA,UACA,UACA,UACA,YACA,mBACA,iBACA,cACA,YACA,uBACA,wBACA,QACA,kBACA,+BACA,mBACA,6BACA,SACA,SACA,QACA,WACA,qBACA,6CACA,sBACA,cACA,UACA,0BACA,YACA,uBACA,mBACA,sBACA,8BACA,aACA,uBACA,6BACA,gBACA,qBACA,WACA,mBACA,mBACA,mBACA,iBACA,0BACA,0BACA,2BACA,2BACA,kBACA,4CAEWkB,EAAenB,EAACA,EAACC,KAAK,CACjC,UACA,YACA,UACA,QACA,QACA,UACA,UACA,UACA,YACA,mBACA,MACA,cACA,YACA,qBACA,oBACA,QACA,kBACA,+BACA,mBACA,6BACA,SACA,SACA,QACA,WACA,qBACA,4CACA,sBACA,YACA,UACA,0BACA,YACA,uBACA,mBACA,sBACA,8BACA,aACA,uBACA,6BACA,gBACA,qBACA,WACA,mBACA,mBACA,mBACA,iBACA,0BACA,0BACA,2BACA,2BACA,SCrMWmB,EAAmBpB,EAACA,EAACqB,OAAO,CACvCC,UAAWtB,EAACA,EAACuB,SACbC,WAAYxB,EAACA,EAACyB,SACdC,KAAM1B,EAACA,EAACyB,SACRE,MAAO3B,EAACA,EAACyB,SACTG,YAAa5B,EAACA,EAACyB,SACfI,qBAAsB7B,EAACA,EAACyB,SACxBK,oBAAqB9B,EAACA,EAAC+B,MAAM/B,EAACA,EAACqB,OAAO,CAAE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enum(["2020-2023","2023-2024","0"]),t=e.enum(["foundation","primary","secondary"]),a=e.enum(["Early Years Foundation Stage","Primary","Secondary"]),r=e.enum(["foundation","primary","secondary"]),s=e.enum(["KS1","KS2","KS3","KS4","EYFS"]),o=e.enum(["ks1","ks2","ks3","ks4","early-years-foundation-stage"]),l=e.enum(["Key Stage 1","Key Stage 2","Key Stage 3","Key Stage 4","Early Years Foundation Stage"]),u=e.enum(["1","2","3","4","5","6","7","8","9","10","11","12","13","R"]),c=e.enum(["reception","year-1","year-2","year-3","year-4","year-5","year-6","year-7","year-8","year-9","year-10","year-11","year-12","year-13"]),d=e.enum(["Year 1","Year 2","Year 3","Year 4","Year 5","Year 6","Year 7","Year 8","Year 9","Year 10","Year 11","Year 12","Year 13","Reception"]),_=e.enum(["core","foundation","higher"]),p=e.enum(["core","foundation","higher"]),g=e.enum(["Core","Foundation","Higher"]),m=e.enum(["aqa","edexcel","eduqas","ocr","wjec"]),b=e.enum(["AQA","Edexcel","Eduqas","OCR","WJEC"]),y=e.enum(["Assessment and Qualifications Alliance","Edexcel","Eduqas","Oxford, Cambridge and RSA Examinations","Welsh Joint Education Committee"]),h=e.enum(["English","Geography","History","Maths","Music","Science","Biology","Physics","Chemistry","Combined science","Art and design","Citizenship","Computing","Computing (non-GCSE)","Design and technology","Drama","English grammar","English reading for pleasure","English spelling","Expressive arts and design","French","German","Latin","Literacy","Physical education","Personal, social and emotional development","Religious education","RSHE (PSHE)","Spanish","Understanding the world","Therapies","Occupational therapy","Physical therapy","Sensory integration","Speech and language therapy","Specialist","Physical development","Communication and language","Creative arts","Independent living","Numeracy","GCSE citizenship","Core citizenship","Computer science","Core computing","GCSE physical education","Core physical education","GCSE religious education","Core religious education","QA testing only","Relationships, sex and health education"]),v=e.enum(["english","geography","history","maths","music","science","biology","physics","chemistry","combined-science","art","citizenship","computing","computing-non-gcse","design-technology","drama","english-grammar","english-reading-for-pleasure","english-spelling","expressive-arts-and-design","french","german","latin","literacy","physical-education","personal-social-and-emotional-development","religious-education","rshe-pshe","spanish","understanding-the-world","therapies","occupational-therapy","physical-therapy","sensory-integration","speech-and-language-therapy","specialist","physical-development","communication-and-language","creative-arts","independent-living","numeracy","gcse-citizenship","core-citizenship","computer-science","core-computing","gcse-physical-education","core-physical-education","gcse-religious-education","core-religious-education","rshe"]),j=e.object({lesson_id:e.number(),lesson_uid:e.string(),slug:e.string(),title:e.string(),description:e.string(),pupil_lesson_outcome:e.string(),key_learning_points:e.array(e.object({})),equipment_and_resources:e.array(e.object({})).nullable(),content_guidance_details:e.array(e.object({})).nullable(),content_guidance:e.array(e.number()).nullable(),copyright_content:e.array(e.object({})).nullable(),supervision_level:e.string().nullable(),thirdpartycontent_list:e.array(e.number()).nullable(),misconceptions_and_common_mistakes:e.array(e.object({})).nullable(),keywords:e.array(e.object({})).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(),asset_id_slidedeck:e.number().nullable(),asset_id_worksheet:e.number().nullable(),deprecated_fields:e.record(e.unknown()).nullable(),_state:i,_cohort:n}),w=e.object({tier:_.nullable(),tier_id:e.number().nullable(),tier_slug:p.nullable(),tier_description:g.nullable(),tier_display_order:e.number().nullable(),examboard:b.nullable(),examboard_id:e.number().nullable(),examboard_slug:m.nullable(),examboard_description:y.nullable(),examboard_display_order:e.number().nullable(),year:u,year_slug:c,year_id:e.number(),year_description:d,year_display_order:e.number(),keystage:s,keystage_id:e.number(),keystage_slug:o,keystage_description:l,keystage_display_order:e.number(),phase:r,phase_id:e.number(),phase_slug:t,phase_description:a,phase_display_order:e.number(),subject:h,subject_id:e.number(),subject_slug:v,subject_description:e.string(),subject_display_order:e.number(),legacy:e.string().optional(),dataset:e.string().optional()}),q=e.object({unit_id:e.number(),unit_uid:e.string(),description:e.string().nullable(),slug:e.string(),tags:e.array(e.number()).nullable(),title:e.string(),_state:i,_cohort:n}),k=e.object({_state:i,_cohort:n,unit_id:e.number(),unitvariant_id:e.number(),_deleted:e.boolean(),unit_overrides:q.partial(),programme_fields:w.partial()}),f=e.object({format:e.enum(["png","jpg","jpeg","webp","gif","svg"]).optional(),secure_url:e.string().url(),url:e.string().url().optional(),height:e.number().optional(),width:e.number().optional(),metadata:e.union([e.array(e.any()),e.object({attribution:e.string().optional(),usageRestriction:e.string().optional()})]),public_id:e.string().optional(),version:e.number().optional()}),x=e.object({image_object:f,type:e.literal("image")}),S=e.object({text:e.string(),type:e.literal("text")}),E=e.object({answer:e.array(e.union([S,x]).optional()),answer_is_active:e.boolean().optional(),answer_is_correct:e.boolean().optional()}),z=e.object({answer:e.array(e.union([S,x]).optional()),answer_is_active:e.boolean().optional(),answer_is_default:e.boolean().optional()}),C=e.object({answer:e.array(S),correct_order:e.number().optional(),answer_is_active:e.boolean().optional()}),O=e.object({answer_is_active:e.boolean().optional(),correct_choice:e.array(S),match_option:e.array(S).optional()}),Y=e.object({question_id:e.number(),question_uid:e.string(),question_type:e.string(),question_stem:e.array(e.union([S,x])).optional().nullable(),answers:e.object({"multiple-choice":e.array(E).optional(),"short-answer":e.array(z).optional(),order:e.array(C).optional(),match:e.array(O).optional()}).optional().nullable(),feedback:e.string().optional().nullable(),hint:e.string().optional().nullable(),active:e.boolean().optional(),order:e.number()}),F=e.object({lesson_slug:e.string(),unit_slug:e.string(),programme_slug:e.string(),is_legacy:e.boolean(),lesson_data:j,unit_data:q,null_unitvariant:k,programme_fields:w,supplementary_data:e.object({unit_order:e.number(),order_in_unit:e.number()})}),P=e.object({unit_slug:e.string(),programme_slug:e.string(),is_legacy:e.boolean(),lesson_count:e.number(),unit_data:q,null_unitvariant:k,programme_fields:w,supplementary_data:e.object({unit_order:e.number()})}),K=e.object({equipment:e.string()}),R=e.object({key_learning_point:e.string()}),T=e.object({keyword:e.string(),description:e.string()}),A=e.object({misconception:e.string(),response:e.string()}),W=e.object({teacher_tip:e.string()}),G=e.object({contentguidance_label:e.string().nullable(),contentguidance_description:e.string().nullable(),contentguidance_area:e.string().nullable()}),H=e.object({lesson_id:e.number(),lesson_slug:e.string(),lesson_title:e.string().nullable(),content_guidance:e.array(G).nullable(),misconceptions_and_common_mistakes:e.array(A).nullable(),teacher_tips:e.array(W).nullable(),equipment_and_resources:e.array(K).nullable(),pupil_lesson_outcome:e.string().nullable(),lesson_keywords:e.array(T).nullable(),supervision_level:e.string().nullable(),key_learning_points:e.array(R).nullable().optional(),video_mux_playback_id:e.string().nullable(),video_with_sign_language_mux_playback_id:e.string().nullable(),video_id:e.number().nullable(),video_title:e.string().nullable(),transcript_sentences:e.string().nullable(),starter_quiz:e.array(Y).optional().nullable(),exit_quiz:e.array(Y).optional().nullable(),starter_quiz_id:e.number().nullable(),exit_quiz_id:e.number().nullable(),state:e.string(),is_legacy:e.boolean().nullable(),deprecated_fields:e.record(e.unknown()).nullable()}),M=e.object({year_slug:c,programme_slug:e.string(),base_slug:e.string(),is_legacy:e.boolean(),programme_fields:w}),Q=e.object({unit_id:e.number(),threads:e.array(e.object({theme_slug:e.string(),theme_title:e.string()})).nullable()}),D=({overrides:e={}}={})=>Object.assign({lesson_id:1,lesson_uid:"lesson-uid",title:"lesson-title",description:"lesson-description",slug:"lesson-slug",pupil_lesson_outcome:"pupil-lesson-outcome",key_learning_points:[{}],equipment_and_resources:null,content_guidance_details:null,content_guidance:null,supervision_level:null,thirdpartycontent_list:null,misconceptions_and_common_mistakes:null,keywords:null,video_id:null,sign_language_video_id:null,quiz_id_starter:null,quiz_id_exit:null,asset_id_slidedeck:null,asset_id_worksheet:null,copyright_content:null,_state:"published",_cohort:"2023-2024",deprecated_fields:null},e),J=({overrides:e}={})=>Object.assign({tier:null,tier_id:null,tier_slug:null,tier_description:null,tier_display_order:null,examboard:null,examboard_id:null,examboard_slug:null,examboard_description:null,examboard_display_order:null,year:"1",year_slug:"year-1",year_id:1,year_description:"Year 1",year_display_order:1,keystage:"KS1",keystage_id:1,keystage_slug:"ks1",keystage_description:"Key Stage 1",keystage_display_order:1,phase:"primary",phase_id:0,phase_slug:"primary",phase_description:"Primary",phase_display_order:1,subject:"Maths",subject_id:1,subject_slug:"maths",subject_description:"subject-description",subject_display_order:1},e),L=({overrides:e={}}={})=>Object.assign({unit_id:0,unit_uid:"unit-uid",description:null,slug:"unit-slug",tags:null,title:"unit-title",_state:"published",_cohort:"2023-2024"},e),B=({overrides:e={}}={})=>Object.assign({unitvariant_id:1,unit_id:1,_deleted:!1,_state:"published",_cohort:"2023-2024",unit_overrides:{},programme_fields:{}},e),I=({overrides:e={}}={})=>Object.assign({text:"Hello, World!",type:"text"},e),N=({overrides:e={}}={})=>Object.assign({answer:[I(),{image_object:{format:"png",secure_url:"https://res.cloudinary.com/demo/image/upload/sample.png",url:"http://res.cloudinary.com/demo/image/upload/sample.png",height:100,width:100,metadata:{attribution:"author",usageRestriction:"free"},public_id:"sample",version:1234567890},type:"image"}],answer_is_active:!0,answer_is_correct:!0},e),U=({overrides:e={}}={})=>Object.assign({answer:[I(),{image_object:{format:"png",secure_url:"https://res.cloudinary.com/demo/image/upload/sample.png",url:"http://res.cloudinary.com/demo/image/upload/sample.png",height:100,width:100,metadata:{attribution:"author",usageRestriction:"free"},public_id:"sample",version:1234567890},type:"image"}],answer_is_active:!0,answer_is_default:!0},e),V=({overrides:e={}}={})=>Object.assign({answer:[I()],correct_order:1,answer_is_active:!0},e),X=({overrides:e={}}={})=>Object.assign({answer_is_active:!0,correct_choice:[I({overrides:{text:"Paris"}})],match_option:[I({overrides:{text:"Capital of France"}})]},e),Z=({overrides:e={}}={})=>Object.assign({question_id:1,question_uid:"question-1",question_type:"multiple-choice",question_stem:[{text:"What is the capital of France?",type:"text"}],answers:{"multiple-choice":[N({overrides:{answer_is_correct:!0}}),N({overrides:{answer_is_correct:!1}}),N({overrides:{answer_is_correct:!1}}),N({overrides:{answer_is_correct:!1}})]},feedback:"Paris is the capital of France.",hint:"Think about the Eiffel Tower.",active:!0,order:1},e),$=({overrides:e={}}={})=>Object.assign({question_id:2,question_uid:"question-2",question_type:"short-answer",question_stem:[{text:"What is the capital of France?",type:"text"}],answers:{"short-answer":[U()]},feedback:"Paris is the capital of France.",hint:"Think about the Eiffel Tower.",active:!0,order:2},e),ee=({overrides:e={}}={})=>Object.assign({question_id:3,question_uid:"question-3",question_type:"order",question_stem:[{text:"What is the capital of France?",type:"text"}],answers:{order:[V({overrides:{correct_order:1}}),V({overrides:{correct_order:2}}),V({overrides:{correct_order:3}}),V({overrides:{correct_order:4}})]},feedback:"Paris is the capital of France.",hint:"Think about the Eiffel Tower.",active:!0,order:3},e),ie=({overrides:e={}}={})=>Object.assign({question_id:4,question_uid:"question-4",question_type:"match",question_stem:[{text:"What is the capital of France?",type:"text"}],answers:{match:[X(),X(),X(),X()]},feedback:"Paris is the capital of France.",hint:"Think about the Eiffel Tower.",active:!0,order:4},e),ne=()=>({equipment:"equipment"}),te=()=>({teacher_tip:"teacher-tip"}),ae=()=>({keyword:"keyword",description:"description"}),re=()=>({misconception:"misconception",response:"response"}),se=()=>({contentguidance_label:"contentguidance-label",contentguidance_description:"contentguidance-description",contentguidance_area:"contentguidance-area"}),oe=({overrides:e={}}={})=>Object.assign({lesson_id:1,lesson_title:"lesson-title",lesson_slug:"lesson-slug",deprecated_fields:{},is_legacy:!1,misconceptions_and_common_mistakes:[{misconception:"misconception",response:"response"}],equipment_and_resources:[{equipment:"equipment"}],teacher_tips:[{teacher_tip:"teacher-tip"}],key_learning_points:null,pupil_lesson_outcome:"pupil-lesson-outcome",lesson_keywords:[{keyword:"keyword",description:"description"}],content_guidance:[{contentguidance_label:"contentguidance-label",contentguidance_description:"contentguidance-description",contentguidance_area:"contentguidance-area"}],video_mux_playback_id:"video-mux-playback-id",video_id:null,video_with_sign_language_mux_playback_id:"video-with-sign-language-mux-playback-id",video_title:"video-title",transcript_sentences:"this is the transcript",starter_quiz:[Z({overrides:{order:1,question_uid:"starter-quiz-1"}}),ee({overrides:{order:2,question_uid:"starter-quiz-2"}}),ie({overrides:{order:3,question_uid:"starter-quiz-3"}}),$({overrides:{order:4,question_uid:"starter-quiz-4"}})],starter_quiz_id:1,exit_quiz:null,exit_quiz_id:null,supervision_level:null,state:"published"},e),le=({overrides:e={}}={})=>Object.assign({lesson_slug:"lesson-slug",unit_slug:"unit-slug",programme_slug:"programme-slug",is_legacy:!1,lesson_data:D(),unit_data:L(),null_unitvariant:B(),programme_fields:J(),supplementary_data:{unit_order:1,order_in_unit:1}},e),ue=({overrides:e={}}={})=>Object.assign({unit_slug:"unit-slug",programme_slug:"programme-slug",is_legacy:!1,lesson_count:1,unit_data:L(),null_unitvariant:B(),programme_fields:J(),supplementary_data:{unit_order:1}},e),ce=({overrides:e={}}={})=>({year_slug:"year-1",base_slug:"maths-primary-year-1",programme_slug:"maths-primary-year-1",is_legacy:!1,programme_fields:J()});export{n as _cohortSchema,i as _stateSchema,se as contentGuidanceFixture,G as contentGuidanceSchema,y as examboardDescriptions,m as examboardSlugs,b as examboards,x as imageItemSchema,f as imageObjectSchema,R as keyLearningPointsSchema,l as keystageDescriptions,o as keystageSlugs,s as keystages,ae as keywordsFixture,T as keywordsSchema,oe as lessonContentFixture,H as lessonContentSchema,D as lessonDataFixture,j as lessonDataSchema,ne as lessonEquipmentAndResourcesFixture,K as lessonEquipmentAndResourcesSchema,X as matchFixture,ie as matchQuestion,O as matchSchema,re as misconceptionsAndCommonMistakesFixture,A as misconceptionsAndCommonMistakesSchema,N as multipleChoiceFixture,Z as multipleChoiceQuestion,E as multipleChoiceSchema,V as orderFixture,ee as orderQuestion,C as orderSchema,a as phaseDescriptions,t as phaseSlugs,r as phases,J as programmeFieldsFixture,w as programmeFieldsSchema,Y as quizQuestionSchema,U as shortAnswerFixture,$ as shortAnswerQuestion,z as shortAnswerSchema,v as subjectSlugs,h as subjects,ce as syntheticProgrammesByYearFixture,M as syntheticProgrammesByYearSchema,le as syntheticUnitvariantLessonsFixture,F as syntheticUnitvariantLessonsSchema,ue as syntheticUnitvariantsWithLessonIdsFixture,P as syntheticUnitvariantsWithLessonIdsSchema,te as teacherTipsFixture,W as teacherTipsSchema,S as textItemSchema,Q as threadsByUnitSchema,g as tierDescriptions,p as tierSlugs,_ as tiers,L as unitDataFixture,q as unitDataSchema,B as unitvariantFixture,k as unitvariantSchema,d as yearDescriptions,c as yearSlugs,u as years};
|
|
1
|
+
import{z as e}from"zod";const i=e.enum(["published","new","migration"]),n=e.enum(["2020-2023","2023-2024","0"]),t=e.enum(["foundation","primary","secondary"]),a=e.enum(["Early Years Foundation Stage","Primary","Secondary"]),r=e.enum(["foundation","primary","secondary"]),s=e.enum(["KS1","KS2","KS3","KS4","EYFS"]),o=e.enum(["ks1","ks2","ks3","ks4","early-years-foundation-stage"]),l=e.enum(["Key Stage 1","Key Stage 2","Key Stage 3","Key Stage 4","Early Years Foundation Stage"]),u=e.enum(["1","2","3","4","5","6","7","8","9","10","11","12","13","R"]),c=e.enum(["reception","year-1","year-2","year-3","year-4","year-5","year-6","year-7","year-8","year-9","year-10","year-11","year-12","year-13"]),d=e.enum(["Year 1","Year 2","Year 3","Year 4","Year 5","Year 6","Year 7","Year 8","Year 9","Year 10","Year 11","Year 12","Year 13","Reception"]),_=e.enum(["core","foundation","higher"]),p=e.enum(["core","foundation","higher"]),g=e.enum(["Core","Foundation","Higher"]),m=e.enum(["aqa","edexcel","eduqas","ocr","wjec"]),b=e.enum(["AQA","Edexcel","Eduqas","OCR","WJEC"]),y=e.enum(["Assessment and Qualifications Alliance","Edexcel","Eduqas","Oxford, Cambridge and RSA Examinations","Welsh Joint Education Committee"]),h=e.enum(["English","Geography","History","Maths","Music","Science","Biology","Physics","Chemistry","Combined science","Art and design","Citizenship","Computing","Computing (non-GCSE)","Design and technology","Drama","English grammar","English reading for pleasure","English spelling","Expressive arts and design","French","German","Latin","Literacy","Physical education","Personal, social and emotional development","Religious education","RSHE (PSHE)","Spanish","Understanding the world","Therapies","Occupational therapy","Physical therapy","Sensory integration","Speech and language therapy","Specialist","Physical development","Communication and language","Creative arts","Independent living","Numeracy","GCSE citizenship","Core citizenship","Computer science","Core computing","GCSE physical education","Core physical education","GCSE religious education","Core religious education","QA testing only","Relationships, sex and health education"]),v=e.enum(["english","geography","history","maths","music","science","biology","physics","chemistry","combined-science","art","citizenship","computing","computing-non-gcse","design-technology","drama","english-grammar","english-reading-for-pleasure","english-spelling","expressive-arts-and-design","french","german","latin","literacy","physical-education","personal-social-and-emotional-development","religious-education","rshe-pshe","spanish","understanding-the-world","therapies","occupational-therapy","physical-therapy","sensory-integration","speech-and-language-therapy","specialist","physical-development","communication-and-language","creative-arts","independent-living","numeracy","gcse-citizenship","core-citizenship","computer-science","core-computing","gcse-physical-education","core-physical-education","gcse-religious-education","core-religious-education","rshe"]),j=e.object({lesson_id:e.number(),lesson_uid:e.string(),slug:e.string(),title:e.string(),description:e.string(),pupil_lesson_outcome:e.string(),key_learning_points:e.array(e.object({})),equipment_and_resources:e.array(e.object({})).nullable(),content_guidance_details:e.array(e.object({})).nullable(),content_guidance:e.array(e.number()).nullable(),copyright_content:e.array(e.object({})).nullable(),supervision_level:e.string().nullable(),thirdpartycontent_list:e.array(e.number()).nullable(),misconceptions_and_common_mistakes:e.array(e.object({})).nullable(),keywords:e.array(e.object({})).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(),asset_id_slidedeck:e.number().nullable(),asset_id_worksheet:e.number().nullable(),deprecated_fields:e.record(e.unknown()).nullable(),_state:i,_cohort:n}),w=e.object({tier:_.nullable(),tier_id:e.number().nullable(),tier_slug:p.nullable(),tier_description:g.nullable(),tier_display_order:e.number().nullable(),examboard:b.nullable(),examboard_id:e.number().nullable(),examboard_slug:m.nullable(),examboard_description:y.nullable(),examboard_display_order:e.number().nullable(),year:u,year_slug:c,year_id:e.number(),year_description:d,year_display_order:e.number(),keystage:s,keystage_id:e.number(),keystage_slug:o,keystage_description:l,keystage_display_order:e.number(),phase:r,phase_id:e.number(),phase_slug:t,phase_description:a,phase_display_order:e.number(),subject:h,subject_id:e.number(),subject_slug:v,subject_description:e.string(),subject_display_order:e.number(),legacy:e.string().optional(),dataset:e.string().optional()}),q=e.object({unit_id:e.number(),unit_uid:e.string(),description:e.string().nullable(),slug:e.string(),tags:e.array(e.number()).nullable(),deprecated_fields:e.record(e.unknown()).nullable().optional(),title:e.string(),_state:i,_cohort:n}),k=e.object({_state:i,_cohort:n,unit_id:e.number(),unitvariant_id:e.number(),_deleted:e.boolean(),unit_overrides:q.partial(),programme_fields:w.partial()}),f=e.object({format:e.enum(["png","jpg","jpeg","webp","gif","svg"]).optional(),secure_url:e.string().url(),url:e.string().url().optional(),height:e.number().optional(),width:e.number().optional(),metadata:e.union([e.array(e.any()),e.object({attribution:e.string().optional(),usageRestriction:e.string().optional()})]),public_id:e.string().optional(),version:e.number().optional()}),x=e.object({image_object:f,type:e.literal("image")}),S=e.object({text:e.string(),type:e.literal("text")}),E=e.object({answer:e.array(e.union([S,x]).optional()),answer_is_active:e.boolean().optional(),answer_is_correct:e.boolean().optional()}),z=e.object({answer:e.array(e.union([S,x]).optional()),answer_is_active:e.boolean().optional(),answer_is_default:e.boolean().optional()}),C=e.object({answer:e.array(S),correct_order:e.number().optional(),answer_is_active:e.boolean().optional()}),O=e.object({answer_is_active:e.boolean().optional(),correct_choice:e.array(S),match_option:e.array(S).optional()}),Y=e.object({question_id:e.number(),question_uid:e.string(),question_type:e.string(),question_stem:e.array(e.union([S,x])).optional().nullable(),answers:e.object({"multiple-choice":e.array(E).optional(),"short-answer":e.array(z).optional(),order:e.array(C).optional(),match:e.array(O).optional()}).optional().nullable(),feedback:e.string().optional().nullable(),hint:e.string().optional().nullable(),active:e.boolean().optional(),order:e.number()}),F=e.object({lesson_slug:e.string(),unit_slug:e.string(),programme_slug:e.string(),is_legacy:e.boolean(),lesson_data:j,unit_data:q,null_unitvariant:k,programme_fields:w,supplementary_data:e.object({unit_order:e.number(),order_in_unit:e.number()})}),P=e.object({unit_slug:e.string(),programme_slug:e.string(),is_legacy:e.boolean(),lesson_count:e.number(),unit_data:q,null_unitvariant:k,programme_fields:w,supplementary_data:e.object({unit_order:e.number()}),expired:e.boolean()}),K=e.object({equipment:e.string()}),R=e.object({key_learning_point:e.string()}),T=e.object({keyword:e.string(),description:e.string()}),A=e.object({misconception:e.string(),response:e.string()}),W=e.object({teacher_tip:e.string()}),G=e.object({contentguidance_label:e.string().nullable(),contentguidance_description:e.string().nullable(),contentguidance_area:e.string().nullable()}),H=e.object({lesson_id:e.number(),lesson_slug:e.string(),lesson_title:e.string().nullable(),content_guidance:e.array(G).nullable(),misconceptions_and_common_mistakes:e.array(A).nullable(),teacher_tips:e.array(W).nullable(),equipment_and_resources:e.array(K).nullable(),pupil_lesson_outcome:e.string().nullable(),lesson_keywords:e.array(T).nullable(),supervision_level:e.string().nullable(),key_learning_points:e.array(R).nullable().optional(),video_mux_playback_id:e.string().nullable(),video_with_sign_language_mux_playback_id:e.string().nullable(),video_id:e.number().nullable(),video_title:e.string().nullable(),transcript_sentences:e.string().nullable(),starter_quiz:e.array(Y).optional().nullable(),exit_quiz:e.array(Y).optional().nullable(),starter_quiz_id:e.number().nullable(),exit_quiz_id:e.number().nullable(),state:e.string(),is_legacy:e.boolean().nullable(),deprecated_fields:e.record(e.unknown()).nullable()}),M=e.object({year_slug:c,programme_slug:e.string(),base_slug:e.string(),is_legacy:e.boolean(),programme_fields:w}),Q=e.object({unit_id:e.number(),threads:e.array(e.object({theme_slug:e.string(),theme_title:e.string()})).nullable()}),D=({overrides:e={}}={})=>Object.assign({lesson_id:1,lesson_uid:"lesson-uid",title:"lesson-title",description:"lesson-description",slug:"lesson-slug",pupil_lesson_outcome:"pupil-lesson-outcome",key_learning_points:[{}],equipment_and_resources:null,content_guidance_details:null,content_guidance:null,supervision_level:null,thirdpartycontent_list:null,misconceptions_and_common_mistakes:null,keywords:null,video_id:null,sign_language_video_id:null,quiz_id_starter:null,quiz_id_exit:null,asset_id_slidedeck:null,asset_id_worksheet:null,copyright_content:null,_state:"published",_cohort:"2023-2024",deprecated_fields:null},e),J=({overrides:e}={})=>Object.assign({tier:null,tier_id:null,tier_slug:null,tier_description:null,tier_display_order:null,examboard:null,examboard_id:null,examboard_slug:null,examboard_description:null,examboard_display_order:null,year:"1",year_slug:"year-1",year_id:1,year_description:"Year 1",year_display_order:1,keystage:"KS1",keystage_id:1,keystage_slug:"ks1",keystage_description:"Key Stage 1",keystage_display_order:1,phase:"primary",phase_id:0,phase_slug:"primary",phase_description:"Primary",phase_display_order:1,subject:"Maths",subject_id:1,subject_slug:"maths",subject_description:"subject-description",subject_display_order:1},e),L=({overrides:e={}}={})=>Object.assign({unit_id:0,unit_uid:"unit-uid",description:null,slug:"unit-slug",tags:null,title:"unit-title",_state:"published",_cohort:"2023-2024"},e),B=({overrides:e={}}={})=>Object.assign({unitvariant_id:1,unit_id:1,_deleted:!1,_state:"published",_cohort:"2023-2024",unit_overrides:{},programme_fields:{}},e),I=({overrides:e={}}={})=>Object.assign({text:"Hello, World!",type:"text"},e),N=({overrides:e={}}={})=>Object.assign({answer:[I(),{image_object:{format:"png",secure_url:"https://res.cloudinary.com/demo/image/upload/sample.png",url:"http://res.cloudinary.com/demo/image/upload/sample.png",height:100,width:100,metadata:{attribution:"author",usageRestriction:"free"},public_id:"sample",version:1234567890},type:"image"}],answer_is_active:!0,answer_is_correct:!0},e),U=({overrides:e={}}={})=>Object.assign({answer:[I(),{image_object:{format:"png",secure_url:"https://res.cloudinary.com/demo/image/upload/sample.png",url:"http://res.cloudinary.com/demo/image/upload/sample.png",height:100,width:100,metadata:{attribution:"author",usageRestriction:"free"},public_id:"sample",version:1234567890},type:"image"}],answer_is_active:!0,answer_is_default:!0},e),V=({overrides:e={}}={})=>Object.assign({answer:[I()],correct_order:1,answer_is_active:!0},e),X=({overrides:e={}}={})=>Object.assign({answer_is_active:!0,correct_choice:[I({overrides:{text:"Paris"}})],match_option:[I({overrides:{text:"Capital of France"}})]},e),Z=({overrides:e={}}={})=>Object.assign({question_id:1,question_uid:"question-1",question_type:"multiple-choice",question_stem:[{text:"What is the capital of France?",type:"text"}],answers:{"multiple-choice":[N({overrides:{answer_is_correct:!0}}),N({overrides:{answer_is_correct:!1}}),N({overrides:{answer_is_correct:!1}}),N({overrides:{answer_is_correct:!1}})]},feedback:"Paris is the capital of France.",hint:"Think about the Eiffel Tower.",active:!0,order:1},e),$=({overrides:e={}}={})=>Object.assign({question_id:2,question_uid:"question-2",question_type:"short-answer",question_stem:[{text:"What is the capital of France?",type:"text"}],answers:{"short-answer":[U()]},feedback:"Paris is the capital of France.",hint:"Think about the Eiffel Tower.",active:!0,order:2},e),ee=({overrides:e={}}={})=>Object.assign({question_id:3,question_uid:"question-3",question_type:"order",question_stem:[{text:"What is the capital of France?",type:"text"}],answers:{order:[V({overrides:{correct_order:1}}),V({overrides:{correct_order:2}}),V({overrides:{correct_order:3}}),V({overrides:{correct_order:4}})]},feedback:"Paris is the capital of France.",hint:"Think about the Eiffel Tower.",active:!0,order:3},e),ie=({overrides:e={}}={})=>Object.assign({question_id:4,question_uid:"question-4",question_type:"match",question_stem:[{text:"What is the capital of France?",type:"text"}],answers:{match:[X(),X(),X(),X()]},feedback:"Paris is the capital of France.",hint:"Think about the Eiffel Tower.",active:!0,order:4},e),ne=()=>({equipment:"equipment"}),te=()=>({teacher_tip:"teacher-tip"}),ae=()=>({keyword:"keyword",description:"description"}),re=()=>({misconception:"misconception",response:"response"}),se=()=>({contentguidance_label:"contentguidance-label",contentguidance_description:"contentguidance-description",contentguidance_area:"contentguidance-area"}),oe=({overrides:e={}}={})=>Object.assign({lesson_id:1,lesson_title:"lesson-title",lesson_slug:"lesson-slug",deprecated_fields:{},is_legacy:!1,misconceptions_and_common_mistakes:[{misconception:"misconception",response:"response"}],equipment_and_resources:[{equipment:"equipment"}],teacher_tips:[{teacher_tip:"teacher-tip"}],key_learning_points:null,pupil_lesson_outcome:"pupil-lesson-outcome",lesson_keywords:[{keyword:"keyword",description:"description"}],content_guidance:[{contentguidance_label:"contentguidance-label",contentguidance_description:"contentguidance-description",contentguidance_area:"contentguidance-area"}],video_mux_playback_id:"video-mux-playback-id",video_id:null,video_with_sign_language_mux_playback_id:"video-with-sign-language-mux-playback-id",video_title:"video-title",transcript_sentences:"this is the transcript",starter_quiz:[Z({overrides:{order:1,question_uid:"starter-quiz-1"}}),ee({overrides:{order:2,question_uid:"starter-quiz-2"}}),ie({overrides:{order:3,question_uid:"starter-quiz-3"}}),$({overrides:{order:4,question_uid:"starter-quiz-4"}})],starter_quiz_id:1,exit_quiz:null,exit_quiz_id:null,supervision_level:null,state:"published"},e),le=({overrides:e={}}={})=>Object.assign({lesson_slug:"lesson-slug",unit_slug:"unit-slug",programme_slug:"programme-slug",is_legacy:!1,lesson_data:D(),unit_data:L(),null_unitvariant:B(),programme_fields:J(),supplementary_data:{unit_order:1,order_in_unit:1}},e),ue=({overrides:e={}}={})=>Object.assign({unit_slug:"unit-slug",programme_slug:"programme-slug",is_legacy:!1,lesson_count:1,unit_data:L(),null_unitvariant:B(),programme_fields:J(),supplementary_data:{unit_order:1},expired:!1},e),ce=({overrides:e={}}={})=>({year_slug:"year-1",base_slug:"maths-primary-year-1",programme_slug:"maths-primary-year-1",is_legacy:!1,programme_fields:J()});export{n as _cohortSchema,i as _stateSchema,se as contentGuidanceFixture,G as contentGuidanceSchema,y as examboardDescriptions,m as examboardSlugs,b as examboards,x as imageItemSchema,f as imageObjectSchema,R as keyLearningPointsSchema,l as keystageDescriptions,o as keystageSlugs,s as keystages,ae as keywordsFixture,T as keywordsSchema,oe as lessonContentFixture,H as lessonContentSchema,D as lessonDataFixture,j as lessonDataSchema,ne as lessonEquipmentAndResourcesFixture,K as lessonEquipmentAndResourcesSchema,X as matchFixture,ie as matchQuestion,O as matchSchema,re as misconceptionsAndCommonMistakesFixture,A as misconceptionsAndCommonMistakesSchema,N as multipleChoiceFixture,Z as multipleChoiceQuestion,E as multipleChoiceSchema,V as orderFixture,ee as orderQuestion,C as orderSchema,a as phaseDescriptions,t as phaseSlugs,r as phases,J as programmeFieldsFixture,w as programmeFieldsSchema,Y as quizQuestionSchema,U as shortAnswerFixture,$ as shortAnswerQuestion,z as shortAnswerSchema,v as subjectSlugs,h as subjects,ce as syntheticProgrammesByYearFixture,M as syntheticProgrammesByYearSchema,le as syntheticUnitvariantLessonsFixture,F as syntheticUnitvariantLessonsSchema,ue as syntheticUnitvariantsWithLessonIdsFixture,P as syntheticUnitvariantsWithLessonIdsSchema,te as teacherTipsFixture,W as teacherTipsSchema,S as textItemSchema,Q as threadsByUnitSchema,g as tierDescriptions,p as tierSlugs,_ as tiers,L as unitDataFixture,q as unitDataSchema,B as unitvariantFixture,k as unitvariantSchema,d as yearDescriptions,c as yearSlugs,u as years};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/schema/base.schema.ts","../../src/schema/lessonData.schema.ts","../../src/schema/programmeFields.schema.ts","../../src/schema/unitData.schema.ts","../../src/schema/unitvariant.schema.ts","../../src/schema/imageTextItems.schema.ts","../../src/schema/quizAnswers.schema.ts","../../src/schema/quizQuestion.schema.ts","../../src/schema/syntheticUnitvariantLessons.schema.ts","../../src/schema/syntheticUnitvariantsWithLessonIds.schema.ts","../../src/schema/lessonContent.schema.ts","../../src/schema/syntheticProgrammesByYear.schema.ts","../../src/schema/threadsByUnit.schema.ts","../../src/fixtures/lessonData.fixture.ts","../../src/fixtures/programmeFields.fixture.ts","../../src/fixtures/unitData.fixture.ts","../../src/fixtures/unitvariant.fixture.ts","../../src/fixtures/imageTextItems.fixture.ts","../../src/fixtures/quizAnswers.fixture.ts","../../src/fixtures/quizQuestion.fixture.ts","../../src/fixtures/lessonContent.fixture.ts","../../src/fixtures/syntheticUnitvariantLessons.fixture.ts","../../src/fixtures/syntheticUnitvariantsWithLessonIds.fixture.ts","../../src/fixtures/syntheticProgrammesByYear.fixture.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const _stateSchema = z.enum([\"published\", \"new\", \"migration\"]);\nexport const _cohortSchema = z.enum([\"2020-2023\", \"2023-2024\", \"0\"]);\n\nexport const phaseSlugs = z.enum([\"foundation\", \"primary\", \"secondary\"]);\nexport const phaseDescriptions = z.enum([\n \"Early Years Foundation Stage\",\n \"Primary\",\n \"Secondary\",\n]);\nexport const phases = z.enum([\"foundation\", \"primary\", \"secondary\"]);\n\nexport const keystages = z.enum([\"KS1\", \"KS2\", \"KS3\", \"KS4\", \"EYFS\"]);\nexport const keystageSlugs = z.enum([\n \"ks1\",\n \"ks2\",\n \"ks3\",\n \"ks4\",\n \"early-years-foundation-stage\",\n]);\nexport const keystageDescriptions = z.enum([\n \"Key Stage 1\",\n \"Key Stage 2\",\n \"Key Stage 3\",\n \"Key Stage 4\",\n \"Early Years Foundation Stage\",\n]);\n\nexport const years = z.enum([\n \"1\",\n \"2\",\n \"3\",\n \"4\",\n \"5\",\n \"6\",\n \"7\",\n \"8\",\n \"9\",\n \"10\",\n \"11\",\n \"12\",\n \"13\",\n \"R\",\n]);\nexport const yearSlugs = z.enum([\n \"reception\",\n \"year-1\",\n \"year-2\",\n \"year-3\",\n \"year-4\",\n \"year-5\",\n \"year-6\",\n \"year-7\",\n \"year-8\",\n \"year-9\",\n \"year-10\",\n \"year-11\",\n \"year-12\",\n \"year-13\",\n]);\nexport const yearDescriptions = z.enum([\n \"Year 1\",\n \"Year 2\",\n \"Year 3\",\n \"Year 4\",\n \"Year 5\",\n \"Year 6\",\n \"Year 7\",\n \"Year 8\",\n \"Year 9\",\n \"Year 10\",\n \"Year 11\",\n \"Year 12\",\n \"Year 13\",\n \"Reception\",\n]);\n\nexport const tiers = z.enum([\"core\", \"foundation\", \"higher\"]);\nexport const tierSlugs = z.enum([\"core\", \"foundation\", \"higher\"]);\nexport const tierDescriptions = z.enum([\"Core\", \"Foundation\", \"Higher\"]);\n\nexport const examboardSlugs = z.enum([\n \"aqa\",\n \"edexcel\",\n \"eduqas\",\n \"ocr\",\n \"wjec\",\n]);\nexport const examboards = z.enum([\"AQA\", \"Edexcel\", \"Eduqas\", \"OCR\", \"WJEC\"]);\nexport const examboardDescriptions = z.enum([\n \"Assessment and Qualifications Alliance\",\n \"Edexcel\",\n \"Eduqas\",\n \"Oxford, Cambridge and RSA Examinations\",\n \"Welsh Joint Education Committee\",\n]);\n\nexport const subjects = z.enum([\n \"English\",\n \"Geography\",\n \"History\",\n \"Maths\",\n \"Music\",\n \"Science\",\n \"Biology\",\n \"Physics\",\n \"Chemistry\",\n \"Combined science\",\n \"Art and design\",\n \"Citizenship\",\n \"Computing\",\n \"Computing (non-GCSE)\",\n \"Design and technology\",\n \"Drama\",\n \"English grammar\",\n \"English reading for pleasure\",\n \"English spelling\",\n \"Expressive arts and design\",\n \"French\",\n \"German\",\n \"Latin\",\n \"Literacy\",\n \"Physical education\",\n \"Personal, social and emotional development\",\n \"Religious education\",\n \"RSHE (PSHE)\",\n \"Spanish\",\n \"Understanding the world\",\n \"Therapies\",\n \"Occupational therapy\",\n \"Physical therapy\",\n \"Sensory integration\",\n \"Speech and language therapy\",\n \"Specialist\",\n \"Physical development\",\n \"Communication and language\",\n \"Creative arts\",\n \"Independent living\",\n \"Numeracy\",\n \"GCSE citizenship\",\n \"Core citizenship\",\n \"Computer science\",\n \"Core computing\",\n \"GCSE physical education\",\n \"Core physical education\",\n \"GCSE religious education\",\n \"Core religious education\",\n \"QA testing only\",\n \"Relationships, sex and health education\",\n]);\nexport const subjectSlugs = z.enum([\n \"english\",\n \"geography\",\n \"history\",\n \"maths\",\n \"music\",\n \"science\",\n \"biology\",\n \"physics\",\n \"chemistry\",\n \"combined-science\",\n \"art\",\n \"citizenship\",\n \"computing\",\n \"computing-non-gcse\",\n \"design-technology\",\n \"drama\",\n \"english-grammar\",\n \"english-reading-for-pleasure\",\n \"english-spelling\",\n \"expressive-arts-and-design\",\n \"french\",\n \"german\",\n \"latin\",\n \"literacy\",\n \"physical-education\",\n \"personal-social-and-emotional-development\",\n \"religious-education\",\n \"rshe-pshe\",\n \"spanish\",\n \"understanding-the-world\",\n \"therapies\",\n \"occupational-therapy\",\n \"physical-therapy\",\n \"sensory-integration\",\n \"speech-and-language-therapy\",\n \"specialist\",\n \"physical-development\",\n \"communication-and-language\",\n \"creative-arts\",\n \"independent-living\",\n \"numeracy\",\n \"gcse-citizenship\",\n \"core-citizenship\",\n \"computer-science\",\n \"core-computing\",\n \"gcse-physical-education\",\n \"core-physical-education\",\n \"gcse-religious-education\",\n \"core-religious-education\",\n \"rshe\",\n]);\n","import { z } from \"zod\";\n\nimport { _stateSchema, _cohortSchema } from \"./base.schema\";\n\nexport const lessonDataSchema = z.object({\n lesson_id: z.number(),\n lesson_uid: z.string(),\n slug: z.string(),\n title: z.string(),\n description: z.string(),\n pupil_lesson_outcome: z.string(),\n key_learning_points: z.array(z.object({})),\n equipment_and_resources: z.array(z.object({})).nullable(),\n content_guidance_details: z.array(z.object({})).nullable(),\n content_guidance: z.array(z.number()).nullable(),\n copyright_content: z.array(z.object({})).nullable(),\n supervision_level: z.string().nullable(),\n thirdpartycontent_list: z.array(z.number()).nullable(),\n misconceptions_and_common_mistakes: z.array(z.object({})).nullable(),\n keywords: z.array(z.object({})).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 asset_id_slidedeck: z.number().nullable(),\n asset_id_worksheet: z.number().nullable(),\n deprecated_fields: z.record(z.unknown()).nullable(),\n _state: _stateSchema,\n _cohort: _cohortSchema,\n});\n\nexport type LessonData = z.infer<typeof lessonDataSchema>;\n","import { z } from \"zod\";\nimport {\n keystages,\n keystageSlugs,\n keystageDescriptions,\n examboards,\n examboardSlugs,\n examboardDescriptions,\n tierSlugs,\n tierDescriptions,\n tiers,\n yearSlugs,\n yearDescriptions,\n years,\n phases,\n phaseSlugs,\n phaseDescriptions,\n subjects,\n subjectSlugs,\n} from \"./base.schema\";\n\nexport const programmeFieldsSchema = z.object({\n tier: tiers.nullable(),\n tier_id: z.number().nullable(),\n tier_slug: tierSlugs.nullable(),\n tier_description: tierDescriptions.nullable(),\n tier_display_order: z.number().nullable(),\n\n examboard: examboards.nullable(),\n examboard_id: z.number().nullable(),\n examboard_slug: examboardSlugs.nullable(),\n examboard_description: examboardDescriptions.nullable(),\n examboard_display_order: z.number().nullable(),\n\n year: years,\n year_slug: yearSlugs,\n year_id: z.number(),\n year_description: yearDescriptions,\n year_display_order: z.number(),\n\n keystage: keystages,\n keystage_id: z.number(),\n keystage_slug: keystageSlugs,\n keystage_description: keystageDescriptions,\n keystage_display_order: z.number(),\n\n phase: phases,\n phase_id: z.number(),\n phase_slug: phaseSlugs,\n phase_description: phaseDescriptions,\n phase_display_order: z.number(),\n\n subject: subjects,\n subject_id: z.number(),\n subject_slug: subjectSlugs,\n subject_description: z.string(),\n subject_display_order: z.number(),\n\n legacy: z.string().optional(),\n dataset: z.string().optional(),\n});\n\nexport type ProgrammeFields = z.infer<typeof programmeFieldsSchema>;\n","import { z } from \"zod\";\n\nimport { _stateSchema, _cohortSchema } from \"./base.schema\";\n\nexport const unitDataSchema = z.object({\n unit_id: z.number(),\n unit_uid: z.string(),\n description: z.string().nullable(),\n slug: z.string(),\n tags: z.array(z.number()).nullable(),\n title: z.string(),\n _state: _stateSchema,\n _cohort: _cohortSchema,\n});\n\nexport type UnitData = z.infer<typeof unitDataSchema>;\n","import { z } from \"zod\";\n\nimport { _stateSchema, _cohortSchema } from \"./base.schema\";\nimport { unitDataSchema } from \"./unitData.schema\";\nimport { programmeFieldsSchema } from \"./programmeFields.schema\";\n\nexport const unitvariantSchema = z.object({\n _state: _stateSchema,\n _cohort: _cohortSchema,\n unit_id: z.number(),\n unitvariant_id: z.number(),\n _deleted: z.boolean(),\n unit_overrides: unitDataSchema.partial(),\n programme_fields: programmeFieldsSchema.partial(),\n});\n\nexport type Unitvariant = z.infer<typeof unitvariantSchema>;\n","import { z } from \"zod\";\n\nexport const imageObjectSchema = z.object({\n format: z.enum([\"png\", \"jpg\", \"jpeg\", \"webp\", \"gif\", \"svg\"]).optional(),\n secure_url: z.string().url(),\n url: z.string().url().optional(),\n height: z.number().optional(),\n width: z.number().optional(),\n metadata: z.union([\n z.array(z.any()),\n z.object({\n attribution: z.string().optional(),\n usageRestriction: z.string().optional(),\n }),\n ]),\n public_id: z.string().optional(),\n version: z.number().optional(),\n});\n\nexport type ImageObject = z.infer<typeof imageObjectSchema>;\n\nexport const imageItemSchema = z.object({\n image_object: imageObjectSchema,\n type: z.literal(\"image\"),\n});\n\nexport type ImageItem = z.infer<typeof imageItemSchema>;\n\nexport const textItemSchema = z.object({\n text: z.string(),\n type: z.literal(\"text\"),\n});\n\nexport type TextItem = z.infer<typeof textItemSchema>;\n","import { z } from \"zod\";\nimport { imageItemSchema, textItemSchema } from \"./imageTextItems.schema\";\n\nexport const multipleChoiceSchema = z.object({\n answer: z.array(z.union([textItemSchema, imageItemSchema]).optional()),\n answer_is_active: z.boolean().optional(),\n answer_is_correct: z.boolean().optional(),\n});\n\nexport type MultipleChoice = z.infer<typeof multipleChoiceSchema>;\n\nexport const shortAnswerSchema = z.object({\n answer: z.array(z.union([textItemSchema, imageItemSchema]).optional()),\n answer_is_active: z.boolean().optional(),\n answer_is_default: z.boolean().optional(),\n});\n\nexport type ShortAnswer = z.infer<typeof shortAnswerSchema>;\n\nexport const orderSchema = z.object({\n answer: z.array(textItemSchema),\n correct_order: z.number().optional(),\n answer_is_active: z.boolean().optional(),\n});\n\nexport type Order = z.infer<typeof orderSchema>;\n\nexport const matchSchema = z.object({\n answer_is_active: z.boolean().optional(),\n correct_choice: z.array(textItemSchema),\n match_option: z.array(textItemSchema).optional(),\n});\n\nexport type Match = z.infer<typeof matchSchema>;\n","import { z } from \"zod\";\n\nimport { imageItemSchema, textItemSchema } from \"./imageTextItems.schema\";\nimport {\n matchSchema,\n multipleChoiceSchema,\n orderSchema,\n shortAnswerSchema,\n} from \"./quizAnswers.schema\";\n\nexport const quizQuestionSchema = z.object({\n question_id: z.number(),\n question_uid: z.string(),\n question_type: z.string(),\n question_stem: z\n .array(z.union([textItemSchema, imageItemSchema]))\n .optional()\n .nullable(),\n answers: z\n .object({\n \"multiple-choice\": z.array(multipleChoiceSchema).optional(),\n \"short-answer\": z.array(shortAnswerSchema).optional(),\n order: z.array(orderSchema).optional(),\n match: z.array(matchSchema).optional(),\n })\n .optional()\n .nullable(),\n feedback: z.string().optional().nullable(),\n hint: z.string().optional().nullable(),\n active: z.boolean().optional(),\n order: z.number(),\n});\n\nexport type QuizQuestion = z.infer<typeof quizQuestionSchema>;\n","import { z } from \"zod\";\nimport { lessonDataSchema } from \"./lessonData.schema\";\nimport { unitDataSchema } from \"./unitData.schema\";\nimport { unitvariantSchema } from \"./unitvariant.schema\";\nimport { programmeFieldsSchema } from \"./programmeFields.schema\";\n\nexport const syntheticUnitvariantLessonsSchema = z.object({\n lesson_slug: z.string(),\n unit_slug: z.string(),\n programme_slug: z.string(),\n is_legacy: z.boolean(),\n lesson_data: lessonDataSchema,\n unit_data: unitDataSchema,\n null_unitvariant: unitvariantSchema,\n programme_fields: programmeFieldsSchema,\n supplementary_data: z.object({\n unit_order: z.number(),\n order_in_unit: z.number(),\n }),\n});\n\nexport type SyntheticUnitvariantLessons = z.infer<\n typeof syntheticUnitvariantLessonsSchema\n>;\n","import { z } from \"zod\";\nimport { unitDataSchema } from \"./unitData.schema\";\nimport { unitvariantSchema } from \"./unitvariant.schema\";\nimport { programmeFieldsSchema } from \"./programmeFields.schema\";\n\nexport const syntheticUnitvariantsWithLessonIdsSchema = z.object({\n unit_slug: z.string(),\n programme_slug: z.string(),\n is_legacy: z.boolean(),\n lesson_count: z.number(),\n unit_data: unitDataSchema,\n null_unitvariant: unitvariantSchema,\n programme_fields: programmeFieldsSchema,\n supplementary_data: z.object({\n unit_order: z.number(),\n }),\n});\n\nexport type syntheticUnitvariantsWithLessonIds = z.infer<\n typeof syntheticUnitvariantsWithLessonIdsSchema\n>;\n","import { z } from \"zod\";\n\nimport { quizQuestionSchema } from \"./quizQuestion.schema\";\n\nexport const lessonEquipmentAndResourcesSchema = z.object({\n equipment: z.string(),\n});\n\nexport type LessonEquipmentAndResources = z.infer<\n typeof lessonEquipmentAndResourcesSchema\n>;\n\nexport const keyLearningPointsSchema = z.object({\n key_learning_point: z.string(),\n});\n\nexport type KeyLearningPoints = z.infer<typeof keyLearningPointsSchema>;\n\nexport const keywordsSchema = z.object({\n keyword: z.string(),\n description: z.string(),\n});\n\nexport type Keywords = z.infer<typeof keywordsSchema>;\n\nexport const misconceptionsAndCommonMistakesSchema = z.object({\n misconception: z.string(),\n response: z.string(),\n});\n\nexport type MisconceptionsAndCommonMistakes = z.infer<\n typeof misconceptionsAndCommonMistakesSchema\n>;\n\nexport const teacherTipsSchema = z.object({\n teacher_tip: z.string(),\n});\n\nexport type TeacherTips = z.infer<typeof teacherTipsSchema>;\n\nexport const contentGuidanceSchema = z.object({\n contentguidance_label: z.string().nullable(),\n contentguidance_description: z.string().nullable(),\n contentguidance_area: z.string().nullable(),\n});\n\nexport type ContentGuidance = z.infer<typeof contentGuidanceSchema>;\n\nexport const lessonContentSchema = z.object({\n lesson_id: z.number(),\n lesson_slug: z.string(),\n lesson_title: z.string().nullable(),\n content_guidance: z.array(contentGuidanceSchema).nullable(),\n misconceptions_and_common_mistakes: z\n .array(misconceptionsAndCommonMistakesSchema)\n .nullable(),\n teacher_tips: z.array(teacherTipsSchema).nullable(),\n equipment_and_resources: z\n .array(lessonEquipmentAndResourcesSchema)\n .nullable(),\n pupil_lesson_outcome: z.string().nullable(),\n lesson_keywords: z.array(keywordsSchema).nullable(),\n supervision_level: z.string().nullable(),\n key_learning_points: z.array(keyLearningPointsSchema).nullable().optional(),\n video_mux_playback_id: z.string().nullable(),\n video_with_sign_language_mux_playback_id: z.string().nullable(),\n video_id: z.number().nullable(),\n video_title: z.string().nullable(),\n transcript_sentences: z.string().nullable(),\n starter_quiz: z.array(quizQuestionSchema).optional().nullable(),\n exit_quiz: z.array(quizQuestionSchema).optional().nullable(),\n starter_quiz_id: z.number().nullable(),\n exit_quiz_id: z.number().nullable(),\n state: z.string(),\n is_legacy: z.boolean().nullable(),\n deprecated_fields: z.record(z.unknown()).nullable(),\n});\n\nexport type LessonContent = z.infer<typeof lessonContentSchema>;\n","import { z } from \"zod\";\nimport { programmeFieldsSchema } from \"./programmeFields.schema\";\nimport { yearSlugs } from \"./base.schema\";\n\nexport const syntheticProgrammesByYearSchema = z.object({\n year_slug: yearSlugs,\n programme_slug: z.string(),\n base_slug: z.string(),\n is_legacy: z.boolean(),\n programme_fields: programmeFieldsSchema,\n});\n\nexport type SyntheticProgrammesByYear = z.infer<\n typeof syntheticProgrammesByYearSchema\n>;\n","import { z } from \"zod\";\n\nexport const threadsByUnitSchema = z.object({\n unit_id: z.number(),\n threads: z\n .array(z.object({ theme_slug: z.string(), theme_title: z.string() }))\n .nullable(),\n});\n\nexport type ThreadsByUnit = z.infer<typeof threadsByUnitSchema>;\n","import { LessonData } from \"@/schema/lessonData.schema\";\n\nexport const lessonDataFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<LessonData>;\n} = {}): LessonData => ({\n lesson_id: 1,\n lesson_uid: \"lesson-uid\",\n title: \"lesson-title\",\n description: \"lesson-description\",\n slug: \"lesson-slug\",\n pupil_lesson_outcome: \"pupil-lesson-outcome\",\n key_learning_points: [{}],\n equipment_and_resources: null,\n content_guidance_details: null,\n content_guidance: null,\n supervision_level: null,\n thirdpartycontent_list: null,\n misconceptions_and_common_mistakes: null,\n keywords: null,\n video_id: null,\n sign_language_video_id: null,\n quiz_id_starter: null,\n quiz_id_exit: null,\n asset_id_slidedeck: null,\n asset_id_worksheet: null,\n copyright_content: null,\n _state: \"published\",\n _cohort: \"2023-2024\",\n deprecated_fields: null,\n ...overrides,\n});\n","import { ProgrammeFields } from \"@/schema/programmeFields.schema\";\n\nexport const programmeFieldsFixture = ({\n overrides,\n}: {\n overrides?: Partial<ProgrammeFields>;\n} = {}): ProgrammeFields => ({\n tier: null,\n tier_id: null,\n tier_slug: null,\n tier_description: null,\n tier_display_order: null,\n examboard: null,\n examboard_id: null,\n examboard_slug: null,\n examboard_description: null,\n examboard_display_order: null,\n year: \"1\",\n year_slug: \"year-1\",\n year_id: 1,\n year_description: \"Year 1\",\n year_display_order: 1,\n keystage: \"KS1\",\n keystage_id: 1,\n keystage_slug: \"ks1\",\n keystage_description: \"Key Stage 1\",\n keystage_display_order: 1,\n phase: \"primary\",\n phase_id: 0,\n phase_slug: \"primary\",\n phase_description: \"Primary\",\n phase_display_order: 1,\n subject: \"Maths\",\n subject_id: 1,\n subject_slug: \"maths\",\n subject_description: \"subject-description\",\n subject_display_order: 1,\n ...overrides,\n});\n","import { UnitData } from \"@/schema/unitData.schema\";\n\nexport const unitDataFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<UnitData>;\n} = {}): UnitData => ({\n unit_id: 0,\n unit_uid: \"unit-uid\",\n description: null,\n slug: \"unit-slug\",\n tags: null,\n title: \"unit-title\",\n _state: \"published\",\n _cohort: \"2023-2024\",\n ...overrides,\n});\n","import { Unitvariant } from \"@/schema/unitvariant.schema\";\n\nexport const unitvariantFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<Unitvariant>;\n} = {}): Unitvariant => ({\n unitvariant_id: 1,\n unit_id: 1,\n _deleted: false,\n _state: \"published\",\n _cohort: \"2023-2024\",\n unit_overrides: {},\n programme_fields: {},\n ...overrides,\n});\n","import {\n ImageObject,\n ImageItem,\n TextItem,\n} from \"@/schema/imageTextItems.schema\";\n\nexport const imageObjectFixture = (): ImageObject => ({\n format: \"png\",\n secure_url: \"https://res.cloudinary.com/demo/image/upload/sample.png\",\n url: \"http://res.cloudinary.com/demo/image/upload/sample.png\",\n height: 100,\n width: 100,\n metadata: {\n attribution: \"author\",\n usageRestriction: \"free\",\n },\n public_id: \"sample\",\n version: 1234567890,\n});\n\nexport const imageItemFixture = (): ImageItem => ({\n image_object: imageObjectFixture(),\n type: \"image\",\n});\n\nexport const textItemFixture = ({\n overrides = {},\n}: { overrides?: Partial<TextItem> } = {}): TextItem => ({\n text: \"Hello, World!\",\n type: \"text\",\n ...overrides,\n});\n","import {\n Match,\n MultipleChoice,\n Order,\n ShortAnswer,\n} from \"@/schema/quizAnswers.schema\";\nimport { imageItemFixture, textItemFixture } from \"./imageTextItems.fixture\";\n\nexport const multipleChoiceFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<MultipleChoice>;\n} = {}): MultipleChoice => ({\n answer: [textItemFixture(), imageItemFixture()],\n answer_is_active: true,\n answer_is_correct: true,\n ...overrides,\n});\n\nexport const shortAnswerFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<ShortAnswer>;\n} = {}): ShortAnswer => ({\n answer: [textItemFixture(), imageItemFixture()],\n answer_is_active: true,\n answer_is_default: true,\n ...overrides,\n});\n\nexport const orderFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<Order>;\n} = {}): Order => ({\n answer: [textItemFixture()],\n correct_order: 1,\n answer_is_active: true,\n ...overrides,\n});\n\nexport const matchFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<Match>;\n} = {}): Match => ({\n answer_is_active: true,\n correct_choice: [textItemFixture({ overrides: { text: \"Paris\" } })],\n match_option: [textItemFixture({ overrides: { text: \"Capital of France\" } })],\n ...overrides,\n});\n","import { QuizQuestion } from \"@/schema/quizQuestion.schema\";\n\nimport {\n matchFixture,\n multipleChoiceFixture,\n orderFixture,\n shortAnswerFixture,\n} from \"./quizAnswers.fixture\";\n\nexport const multipleChoiceQuestion = ({\n overrides = {},\n}: {\n overrides?: Partial<QuizQuestion>;\n} = {}): QuizQuestion => ({\n question_id: 1,\n question_uid: \"question-1\",\n question_type: \"multiple-choice\",\n question_stem: [\n {\n text: \"What is the capital of France?\",\n type: \"text\",\n },\n ],\n answers: {\n \"multiple-choice\": [\n multipleChoiceFixture({ overrides: { answer_is_correct: true } }),\n multipleChoiceFixture({ overrides: { answer_is_correct: false } }),\n multipleChoiceFixture({ overrides: { answer_is_correct: false } }),\n multipleChoiceFixture({ overrides: { answer_is_correct: false } }),\n ],\n },\n feedback: \"Paris is the capital of France.\",\n hint: \"Think about the Eiffel Tower.\",\n active: true,\n order: 1,\n ...overrides,\n});\n\nexport const shortAnswerQuestion = ({\n overrides = {},\n}: {\n overrides?: Partial<QuizQuestion>;\n} = {}): QuizQuestion => ({\n question_id: 2,\n question_uid: \"question-2\",\n question_type: \"short-answer\",\n question_stem: [\n {\n text: \"What is the capital of France?\",\n type: \"text\",\n },\n ],\n answers: {\n \"short-answer\": [shortAnswerFixture()],\n },\n feedback: \"Paris is the capital of France.\",\n hint: \"Think about the Eiffel Tower.\",\n active: true,\n order: 2,\n ...overrides,\n});\n\nexport const orderQuestion = ({\n overrides = {},\n}: {\n overrides?: Partial<QuizQuestion>;\n} = {}): QuizQuestion => ({\n question_id: 3,\n question_uid: \"question-3\",\n question_type: \"order\",\n question_stem: [\n {\n text: \"What is the capital of France?\",\n type: \"text\",\n },\n ],\n answers: {\n order: [\n orderFixture({ overrides: { correct_order: 1 } }),\n orderFixture({ overrides: { correct_order: 2 } }),\n orderFixture({ overrides: { correct_order: 3 } }),\n orderFixture({ overrides: { correct_order: 4 } }),\n ],\n },\n feedback: \"Paris is the capital of France.\",\n hint: \"Think about the Eiffel Tower.\",\n active: true,\n order: 3,\n ...overrides,\n});\n\nexport const matchQuestion = ({\n overrides = {},\n}: {\n overrides?: Partial<QuizQuestion>;\n} = {}): QuizQuestion => ({\n question_id: 4,\n question_uid: \"question-4\",\n question_type: \"match\",\n question_stem: [\n {\n text: \"What is the capital of France?\",\n type: \"text\",\n },\n ],\n answers: {\n match: [matchFixture(), matchFixture(), matchFixture(), matchFixture()],\n },\n feedback: \"Paris is the capital of France.\",\n hint: \"Think about the Eiffel Tower.\",\n active: true,\n order: 4,\n ...overrides,\n});\n","import {\n Keywords,\n LessonContent,\n TeacherTips,\n LessonEquipmentAndResources,\n} from \"@/schema/lessonContent.schema\";\nimport {\n matchQuestion,\n multipleChoiceQuestion,\n orderQuestion,\n shortAnswerQuestion,\n} from \"./quizQuestion.fixture\";\n\nexport const lessonEquipmentAndResourcesFixture =\n (): LessonEquipmentAndResources => ({\n equipment: \"equipment\",\n });\n\nexport const teacherTipsFixture = (): TeacherTips => ({\n teacher_tip: \"teacher-tip\",\n});\n\nexport const keywordsFixture = (): Keywords => ({\n keyword: \"keyword\",\n description: \"description\",\n});\n\nexport const misconceptionsAndCommonMistakesFixture = () => ({\n misconception: \"misconception\",\n response: \"response\",\n});\n\nexport const contentGuidanceFixture = () => ({\n contentguidance_label: \"contentguidance-label\",\n contentguidance_description: \"contentguidance-description\",\n contentguidance_area: \"contentguidance-area\",\n});\n\nexport const lessonContentFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<LessonContent>;\n} = {}): LessonContent => ({\n lesson_id: 1,\n lesson_title: \"lesson-title\",\n lesson_slug: \"lesson-slug\",\n deprecated_fields: {},\n is_legacy: false,\n misconceptions_and_common_mistakes: [\n misconceptionsAndCommonMistakesFixture(),\n ],\n equipment_and_resources: [lessonEquipmentAndResourcesFixture()],\n teacher_tips: [teacherTipsFixture()],\n key_learning_points: null,\n pupil_lesson_outcome: \"pupil-lesson-outcome\",\n lesson_keywords: [keywordsFixture()],\n content_guidance: [contentGuidanceFixture()],\n video_mux_playback_id: \"video-mux-playback-id\",\n video_id: null,\n video_with_sign_language_mux_playback_id:\n \"video-with-sign-language-mux-playback-id\",\n video_title: \"video-title\",\n transcript_sentences: \"this is the transcript\",\n starter_quiz: [\n multipleChoiceQuestion({\n overrides: { order: 1, question_uid: \"starter-quiz-1\" },\n }),\n orderQuestion({ overrides: { order: 2, question_uid: \"starter-quiz-2\" } }),\n matchQuestion({ overrides: { order: 3, question_uid: \"starter-quiz-3\" } }),\n shortAnswerQuestion({\n overrides: { order: 4, question_uid: \"starter-quiz-4\" },\n }),\n ],\n starter_quiz_id: 1,\n exit_quiz: null,\n exit_quiz_id: null,\n supervision_level: null,\n state: \"published\",\n ...overrides,\n});\n","import { SyntheticUnitvariantLessons } from \"@/schema/syntheticUnitvariantLessons.schema\";\n\nimport { lessonDataFixture } from \"./lessonData.fixture\";\nimport { unitDataFixture } from \"./unitData.fixture\";\nimport { unitvariantFixture } from \"./unitvariant.fixture\";\nimport { programmeFieldsFixture } from \"./programmeFields.fixture\";\n\nexport const syntheticUnitvariantLessonsFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<SyntheticUnitvariantLessons>;\n} = {}): SyntheticUnitvariantLessons => ({\n lesson_slug: \"lesson-slug\",\n unit_slug: \"unit-slug\",\n programme_slug: \"programme-slug\",\n is_legacy: false,\n lesson_data: lessonDataFixture(),\n unit_data: unitDataFixture(),\n null_unitvariant: unitvariantFixture(),\n programme_fields: programmeFieldsFixture(),\n supplementary_data: {\n unit_order: 1,\n order_in_unit: 1,\n },\n ...overrides,\n});\n","import { unitDataFixture } from \"./unitData.fixture\";\nimport { unitvariantFixture } from \"./unitvariant.fixture\";\nimport { programmeFieldsFixture } from \"./programmeFields.fixture\";\nimport { syntheticUnitvariantsWithLessonIds } from \"@/schema/syntheticUnitvariantsWithLessonIds.schema\";\n\nexport const syntheticUnitvariantsWithLessonIdsFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<syntheticUnitvariantsWithLessonIds>;\n} = {}): syntheticUnitvariantsWithLessonIds => ({\n unit_slug: \"unit-slug\",\n programme_slug: \"programme-slug\",\n is_legacy: false,\n lesson_count: 1,\n unit_data: unitDataFixture(),\n null_unitvariant: unitvariantFixture(),\n programme_fields: programmeFieldsFixture(),\n supplementary_data: {\n unit_order: 1,\n },\n ...overrides,\n});\n","import { SyntheticProgrammesByYear } from \"@/schema/syntheticProgrammesByYear.schema\";\nimport { programmeFieldsFixture } from \"./programmeFields.fixture\";\n\nexport const syntheticProgrammesByYearFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<SyntheticProgrammesByYear>;\n} = {}): SyntheticProgrammesByYear => ({\n year_slug: \"year-1\",\n base_slug: \"maths-primary-year-1\",\n programme_slug: \"maths-primary-year-1\",\n is_legacy: false,\n programme_fields: programmeFieldsFixture(),\n});\n"],"names":["_stateSchema","z","enum","_cohortSchema","phaseSlugs","phaseDescriptions","phases","keystages","keystageSlugs","keystageDescriptions","years","yearSlugs","yearDescriptions","tiers","tierSlugs","tierDescriptions","examboardSlugs","examboards","examboardDescriptions","subjects","subjectSlugs","lessonDataSchema","object","lesson_id","number","lesson_uid","string","slug","title","description","pupil_lesson_outcome","key_learning_points","array","equipment_and_resources","nullable","content_guidance_details","content_guidance","copyright_content","supervision_level","thirdpartycontent_list","misconceptions_and_common_mistakes","keywords","video_id","sign_language_video_id","quiz_id_starter","quiz_id_exit","asset_id_slidedeck","asset_id_worksheet","deprecated_fields","record","unknown","_state","_cohort","programmeFieldsSchema","tier","tier_id","tier_slug","tier_description","tier_display_order","examboard","examboard_id","examboard_slug","examboard_description","examboard_display_order","year","year_slug","year_id","year_description","year_display_order","keystage","keystage_id","keystage_slug","keystage_description","keystage_display_order","phase","phase_id","phase_slug","phase_description","phase_display_order","subject","subject_id","subject_slug","subject_description","subject_display_order","legacy","optional","dataset","unitDataSchema","unit_id","unit_uid","tags","unitvariantSchema","unitvariant_id","_deleted","boolean","unit_overrides","partial","programme_fields","imageObjectSchema","format","secure_url","url","height","width","metadata","union","any","attribution","usageRestriction","public_id","version","imageItemSchema","image_object","type","literal","textItemSchema","text","multipleChoiceSchema","answer","answer_is_active","answer_is_correct","shortAnswerSchema","answer_is_default","orderSchema","correct_order","matchSchema","correct_choice","match_option","quizQuestionSchema","question_id","question_uid","question_type","question_stem","answers","order","match","feedback","hint","active","syntheticUnitvariantLessonsSchema","lesson_slug","unit_slug","programme_slug","is_legacy","lesson_data","unit_data","null_unitvariant","supplementary_data","unit_order","order_in_unit","syntheticUnitvariantsWithLessonIdsSchema","lesson_count","lessonEquipmentAndResourcesSchema","equipment","keyLearningPointsSchema","key_learning_point","keywordsSchema","keyword","misconceptionsAndCommonMistakesSchema","misconception","response","teacherTipsSchema","teacher_tip","contentGuidanceSchema","contentguidance_label","contentguidance_description","contentguidance_area","lessonContentSchema","lesson_title","teacher_tips","lesson_keywords","video_mux_playback_id","video_with_sign_language_mux_playback_id","video_title","transcript_sentences","starter_quiz","exit_quiz","starter_quiz_id","exit_quiz_id","state","syntheticProgrammesByYearSchema","base_slug","threadsByUnitSchema","threads","theme_slug","theme_title","lessonDataFixture","overrides","Object","assign","programmeFieldsFixture","unitDataFixture","unitvariantFixture","textItemFixture","multipleChoiceFixture","shortAnswerFixture","orderFixture","matchFixture","multipleChoiceQuestion","shortAnswerQuestion","orderQuestion","matchQuestion","lessonEquipmentAndResourcesFixture","teacherTipsFixture","keywordsFixture","misconceptionsAndCommonMistakesFixture","contentGuidanceFixture","lessonContentFixture","syntheticUnitvariantLessonsFixture","syntheticUnitvariantsWithLessonIdsFixture","syntheticProgrammesByYearFixture"],"mappings":"wBAEa,MAAAA,EAAeC,EAAEC,KAAK,CAAC,YAAa,MAAO,cAC3CC,EAAgBF,EAAEC,KAAK,CAAC,YAAa,YAAa,MAElDE,EAAaH,EAAEC,KAAK,CAAC,aAAc,UAAW,cAC9CG,EAAoBJ,EAAEC,KAAK,CACtC,+BACA,UACA,cAEWI,EAASL,EAAEC,KAAK,CAAC,aAAc,UAAW,cAE1CK,EAAYN,EAAEC,KAAK,CAAC,MAAO,MAAO,MAAO,MAAO,SAChDM,EAAgBP,EAAEC,KAAK,CAClC,MACA,MACA,MACA,MACA,iCAEWO,EAAuBR,EAAEC,KAAK,CACzC,cACA,cACA,cACA,cACA,iCAGWQ,EAAQT,EAAEC,KAAK,CAC1B,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,KACA,KACA,KACA,KACA,MAEWS,EAAYV,EAAEC,KAAK,CAC9B,YACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,YAEWU,EAAmBX,EAAEC,KAAK,CACrC,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,UACA,cAGWW,EAAQZ,EAAEC,KAAK,CAAC,OAAQ,aAAc,WACtCY,EAAYb,EAAEC,KAAK,CAAC,OAAQ,aAAc,WAC1Ca,EAAmBd,EAAEC,KAAK,CAAC,OAAQ,aAAc,WAEjDc,EAAiBf,EAAEC,KAAK,CACnC,MACA,UACA,SACA,MACA,SAEWe,EAAahB,EAAEC,KAAK,CAAC,MAAO,UAAW,SAAU,MAAO,SACxDgB,EAAwBjB,EAAEC,KAAK,CAC1C,yCACA,UACA,SACA,yCACA,oCAGWiB,EAAWlB,EAAEC,KAAK,CAC7B,UACA,YACA,UACA,QACA,QACA,UACA,UACA,UACA,YACA,mBACA,iBACA,cACA,YACA,uBACA,wBACA,QACA,kBACA,+BACA,mBACA,6BACA,SACA,SACA,QACA,WACA,qBACA,6CACA,sBACA,cACA,UACA,0BACA,YACA,uBACA,mBACA,sBACA,8BACA,aACA,uBACA,6BACA,gBACA,qBACA,WACA,mBACA,mBACA,mBACA,iBACA,0BACA,0BACA,2BACA,2BACA,kBACA,4CAEWkB,EAAenB,EAAEC,KAAK,CACjC,UACA,YACA,UACA,QACA,QACA,UACA,UACA,UACA,YACA,mBACA,MACA,cACA,YACA,qBACA,oBACA,QACA,kBACA,+BACA,mBACA,6BACA,SACA,SACA,QACA,WACA,qBACA,4CACA,sBACA,YACA,UACA,0BACA,YACA,uBACA,mBACA,sBACA,8BACA,aACA,uBACA,6BACA,gBACA,qBACA,WACA,mBACA,mBACA,mBACA,iBACA,0BACA,0BACA,2BACA,2BACA,SCrMWmB,EAAmBpB,EAAEqB,OAAO,CACvCC,UAAWtB,EAAEuB,SACbC,WAAYxB,EAAEyB,SACdC,KAAM1B,EAAEyB,SACRE,MAAO3B,EAAEyB,SACTG,YAAa5B,EAAEyB,SACfI,qBAAsB7B,EAAEyB,SACxBK,oBAAqB9B,EAAE+B,MAAM/B,EAAEqB,OAAO,CAAE,IACxCW,wBAAyBhC,EAAE+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BQuB,GAAmC,EAC9CvB,YAAY,CAAE,GAGZ,CAAA,KAAmC,CACrC1H,UAAW,SACXoH,UAAW,uBACXvC,eAAgB,uBAChBC,WAAW,EACX9C,iBAAkB6F"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/schema/base.schema.ts","../../src/schema/lessonData.schema.ts","../../src/schema/programmeFields.schema.ts","../../src/schema/unitData.schema.ts","../../src/schema/unitvariant.schema.ts","../../src/schema/imageTextItems.schema.ts","../../src/schema/quizAnswers.schema.ts","../../src/schema/quizQuestion.schema.ts","../../src/schema/syntheticUnitvariantLessons.schema.ts","../../src/schema/syntheticUnitvariantsWithLessonIds.schema.ts","../../src/schema/lessonContent.schema.ts","../../src/schema/syntheticProgrammesByYear.schema.ts","../../src/schema/threadsByUnit.schema.ts","../../src/fixtures/lessonData.fixture.ts","../../src/fixtures/programmeFields.fixture.ts","../../src/fixtures/unitData.fixture.ts","../../src/fixtures/unitvariant.fixture.ts","../../src/fixtures/imageTextItems.fixture.ts","../../src/fixtures/quizAnswers.fixture.ts","../../src/fixtures/quizQuestion.fixture.ts","../../src/fixtures/lessonContent.fixture.ts","../../src/fixtures/syntheticUnitvariantLessons.fixture.ts","../../src/fixtures/syntheticUnitvariantsWithLessonIds.fixture.ts","../../src/fixtures/syntheticProgrammesByYear.fixture.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const _stateSchema = z.enum([\"published\", \"new\", \"migration\"]);\nexport const _cohortSchema = z.enum([\"2020-2023\", \"2023-2024\", \"0\"]);\n\nexport const phaseSlugs = z.enum([\"foundation\", \"primary\", \"secondary\"]);\nexport const phaseDescriptions = z.enum([\n \"Early Years Foundation Stage\",\n \"Primary\",\n \"Secondary\",\n]);\nexport const phases = z.enum([\"foundation\", \"primary\", \"secondary\"]);\n\nexport const keystages = z.enum([\"KS1\", \"KS2\", \"KS3\", \"KS4\", \"EYFS\"]);\nexport const keystageSlugs = z.enum([\n \"ks1\",\n \"ks2\",\n \"ks3\",\n \"ks4\",\n \"early-years-foundation-stage\",\n]);\nexport const keystageDescriptions = z.enum([\n \"Key Stage 1\",\n \"Key Stage 2\",\n \"Key Stage 3\",\n \"Key Stage 4\",\n \"Early Years Foundation Stage\",\n]);\n\nexport const years = z.enum([\n \"1\",\n \"2\",\n \"3\",\n \"4\",\n \"5\",\n \"6\",\n \"7\",\n \"8\",\n \"9\",\n \"10\",\n \"11\",\n \"12\",\n \"13\",\n \"R\",\n]);\nexport const yearSlugs = z.enum([\n \"reception\",\n \"year-1\",\n \"year-2\",\n \"year-3\",\n \"year-4\",\n \"year-5\",\n \"year-6\",\n \"year-7\",\n \"year-8\",\n \"year-9\",\n \"year-10\",\n \"year-11\",\n \"year-12\",\n \"year-13\",\n]);\nexport const yearDescriptions = z.enum([\n \"Year 1\",\n \"Year 2\",\n \"Year 3\",\n \"Year 4\",\n \"Year 5\",\n \"Year 6\",\n \"Year 7\",\n \"Year 8\",\n \"Year 9\",\n \"Year 10\",\n \"Year 11\",\n \"Year 12\",\n \"Year 13\",\n \"Reception\",\n]);\n\nexport const tiers = z.enum([\"core\", \"foundation\", \"higher\"]);\nexport const tierSlugs = z.enum([\"core\", \"foundation\", \"higher\"]);\nexport const tierDescriptions = z.enum([\"Core\", \"Foundation\", \"Higher\"]);\n\nexport const examboardSlugs = z.enum([\n \"aqa\",\n \"edexcel\",\n \"eduqas\",\n \"ocr\",\n \"wjec\",\n]);\nexport const examboards = z.enum([\"AQA\", \"Edexcel\", \"Eduqas\", \"OCR\", \"WJEC\"]);\nexport const examboardDescriptions = z.enum([\n \"Assessment and Qualifications Alliance\",\n \"Edexcel\",\n \"Eduqas\",\n \"Oxford, Cambridge and RSA Examinations\",\n \"Welsh Joint Education Committee\",\n]);\n\nexport const subjects = z.enum([\n \"English\",\n \"Geography\",\n \"History\",\n \"Maths\",\n \"Music\",\n \"Science\",\n \"Biology\",\n \"Physics\",\n \"Chemistry\",\n \"Combined science\",\n \"Art and design\",\n \"Citizenship\",\n \"Computing\",\n \"Computing (non-GCSE)\",\n \"Design and technology\",\n \"Drama\",\n \"English grammar\",\n \"English reading for pleasure\",\n \"English spelling\",\n \"Expressive arts and design\",\n \"French\",\n \"German\",\n \"Latin\",\n \"Literacy\",\n \"Physical education\",\n \"Personal, social and emotional development\",\n \"Religious education\",\n \"RSHE (PSHE)\",\n \"Spanish\",\n \"Understanding the world\",\n \"Therapies\",\n \"Occupational therapy\",\n \"Physical therapy\",\n \"Sensory integration\",\n \"Speech and language therapy\",\n \"Specialist\",\n \"Physical development\",\n \"Communication and language\",\n \"Creative arts\",\n \"Independent living\",\n \"Numeracy\",\n \"GCSE citizenship\",\n \"Core citizenship\",\n \"Computer science\",\n \"Core computing\",\n \"GCSE physical education\",\n \"Core physical education\",\n \"GCSE religious education\",\n \"Core religious education\",\n \"QA testing only\",\n \"Relationships, sex and health education\",\n]);\nexport const subjectSlugs = z.enum([\n \"english\",\n \"geography\",\n \"history\",\n \"maths\",\n \"music\",\n \"science\",\n \"biology\",\n \"physics\",\n \"chemistry\",\n \"combined-science\",\n \"art\",\n \"citizenship\",\n \"computing\",\n \"computing-non-gcse\",\n \"design-technology\",\n \"drama\",\n \"english-grammar\",\n \"english-reading-for-pleasure\",\n \"english-spelling\",\n \"expressive-arts-and-design\",\n \"french\",\n \"german\",\n \"latin\",\n \"literacy\",\n \"physical-education\",\n \"personal-social-and-emotional-development\",\n \"religious-education\",\n \"rshe-pshe\",\n \"spanish\",\n \"understanding-the-world\",\n \"therapies\",\n \"occupational-therapy\",\n \"physical-therapy\",\n \"sensory-integration\",\n \"speech-and-language-therapy\",\n \"specialist\",\n \"physical-development\",\n \"communication-and-language\",\n \"creative-arts\",\n \"independent-living\",\n \"numeracy\",\n \"gcse-citizenship\",\n \"core-citizenship\",\n \"computer-science\",\n \"core-computing\",\n \"gcse-physical-education\",\n \"core-physical-education\",\n \"gcse-religious-education\",\n \"core-religious-education\",\n \"rshe\",\n]);\n","import { z } from \"zod\";\n\nimport { _stateSchema, _cohortSchema } from \"./base.schema\";\n\nexport const lessonDataSchema = z.object({\n lesson_id: z.number(),\n lesson_uid: z.string(),\n slug: z.string(),\n title: z.string(),\n description: z.string(),\n pupil_lesson_outcome: z.string(),\n key_learning_points: z.array(z.object({})),\n equipment_and_resources: z.array(z.object({})).nullable(),\n content_guidance_details: z.array(z.object({})).nullable(),\n content_guidance: z.array(z.number()).nullable(),\n copyright_content: z.array(z.object({})).nullable(),\n supervision_level: z.string().nullable(),\n thirdpartycontent_list: z.array(z.number()).nullable(),\n misconceptions_and_common_mistakes: z.array(z.object({})).nullable(),\n keywords: z.array(z.object({})).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 asset_id_slidedeck: z.number().nullable(),\n asset_id_worksheet: z.number().nullable(),\n deprecated_fields: z.record(z.unknown()).nullable(),\n _state: _stateSchema,\n _cohort: _cohortSchema,\n});\n\nexport type LessonData = z.infer<typeof lessonDataSchema>;\n","import { z } from \"zod\";\nimport {\n keystages,\n keystageSlugs,\n keystageDescriptions,\n examboards,\n examboardSlugs,\n examboardDescriptions,\n tierSlugs,\n tierDescriptions,\n tiers,\n yearSlugs,\n yearDescriptions,\n years,\n phases,\n phaseSlugs,\n phaseDescriptions,\n subjects,\n subjectSlugs,\n} from \"./base.schema\";\n\nexport const programmeFieldsSchema = z.object({\n tier: tiers.nullable(),\n tier_id: z.number().nullable(),\n tier_slug: tierSlugs.nullable(),\n tier_description: tierDescriptions.nullable(),\n tier_display_order: z.number().nullable(),\n\n examboard: examboards.nullable(),\n examboard_id: z.number().nullable(),\n examboard_slug: examboardSlugs.nullable(),\n examboard_description: examboardDescriptions.nullable(),\n examboard_display_order: z.number().nullable(),\n\n year: years,\n year_slug: yearSlugs,\n year_id: z.number(),\n year_description: yearDescriptions,\n year_display_order: z.number(),\n\n keystage: keystages,\n keystage_id: z.number(),\n keystage_slug: keystageSlugs,\n keystage_description: keystageDescriptions,\n keystage_display_order: z.number(),\n\n phase: phases,\n phase_id: z.number(),\n phase_slug: phaseSlugs,\n phase_description: phaseDescriptions,\n phase_display_order: z.number(),\n\n subject: subjects,\n subject_id: z.number(),\n subject_slug: subjectSlugs,\n subject_description: z.string(),\n subject_display_order: z.number(),\n\n legacy: z.string().optional(),\n dataset: z.string().optional(),\n});\n\nexport type ProgrammeFields = z.infer<typeof programmeFieldsSchema>;\n","import { z } from \"zod\";\n\nimport { _stateSchema, _cohortSchema } from \"./base.schema\";\n\nexport const unitDataSchema = z.object({\n unit_id: z.number(),\n unit_uid: z.string(),\n description: z.string().nullable(),\n slug: z.string(),\n tags: z.array(z.number()).nullable(),\n deprecated_fields: z.record(z.unknown()).nullable().optional(),\n title: z.string(),\n _state: _stateSchema,\n _cohort: _cohortSchema,\n});\n\nexport type UnitData = z.infer<typeof unitDataSchema>;\n","import { z } from \"zod\";\n\nimport { _stateSchema, _cohortSchema } from \"./base.schema\";\nimport { unitDataSchema } from \"./unitData.schema\";\nimport { programmeFieldsSchema } from \"./programmeFields.schema\";\n\nexport const unitvariantSchema = z.object({\n _state: _stateSchema,\n _cohort: _cohortSchema,\n unit_id: z.number(),\n unitvariant_id: z.number(),\n _deleted: z.boolean(),\n unit_overrides: unitDataSchema.partial(),\n programme_fields: programmeFieldsSchema.partial(),\n});\n\nexport type Unitvariant = z.infer<typeof unitvariantSchema>;\n","import { z } from \"zod\";\n\nexport const imageObjectSchema = z.object({\n format: z.enum([\"png\", \"jpg\", \"jpeg\", \"webp\", \"gif\", \"svg\"]).optional(),\n secure_url: z.string().url(),\n url: z.string().url().optional(),\n height: z.number().optional(),\n width: z.number().optional(),\n metadata: z.union([\n z.array(z.any()),\n z.object({\n attribution: z.string().optional(),\n usageRestriction: z.string().optional(),\n }),\n ]),\n public_id: z.string().optional(),\n version: z.number().optional(),\n});\n\nexport type ImageObject = z.infer<typeof imageObjectSchema>;\n\nexport const imageItemSchema = z.object({\n image_object: imageObjectSchema,\n type: z.literal(\"image\"),\n});\n\nexport type ImageItem = z.infer<typeof imageItemSchema>;\n\nexport const textItemSchema = z.object({\n text: z.string(),\n type: z.literal(\"text\"),\n});\n\nexport type TextItem = z.infer<typeof textItemSchema>;\n","import { z } from \"zod\";\nimport { imageItemSchema, textItemSchema } from \"./imageTextItems.schema\";\n\nexport const multipleChoiceSchema = z.object({\n answer: z.array(z.union([textItemSchema, imageItemSchema]).optional()),\n answer_is_active: z.boolean().optional(),\n answer_is_correct: z.boolean().optional(),\n});\n\nexport type MultipleChoice = z.infer<typeof multipleChoiceSchema>;\n\nexport const shortAnswerSchema = z.object({\n answer: z.array(z.union([textItemSchema, imageItemSchema]).optional()),\n answer_is_active: z.boolean().optional(),\n answer_is_default: z.boolean().optional(),\n});\n\nexport type ShortAnswer = z.infer<typeof shortAnswerSchema>;\n\nexport const orderSchema = z.object({\n answer: z.array(textItemSchema),\n correct_order: z.number().optional(),\n answer_is_active: z.boolean().optional(),\n});\n\nexport type Order = z.infer<typeof orderSchema>;\n\nexport const matchSchema = z.object({\n answer_is_active: z.boolean().optional(),\n correct_choice: z.array(textItemSchema),\n match_option: z.array(textItemSchema).optional(),\n});\n\nexport type Match = z.infer<typeof matchSchema>;\n","import { z } from \"zod\";\n\nimport { imageItemSchema, textItemSchema } from \"./imageTextItems.schema\";\nimport {\n matchSchema,\n multipleChoiceSchema,\n orderSchema,\n shortAnswerSchema,\n} from \"./quizAnswers.schema\";\n\nexport const quizQuestionSchema = z.object({\n question_id: z.number(),\n question_uid: z.string(),\n question_type: z.string(),\n question_stem: z\n .array(z.union([textItemSchema, imageItemSchema]))\n .optional()\n .nullable(),\n answers: z\n .object({\n \"multiple-choice\": z.array(multipleChoiceSchema).optional(),\n \"short-answer\": z.array(shortAnswerSchema).optional(),\n order: z.array(orderSchema).optional(),\n match: z.array(matchSchema).optional(),\n })\n .optional()\n .nullable(),\n feedback: z.string().optional().nullable(),\n hint: z.string().optional().nullable(),\n active: z.boolean().optional(),\n order: z.number(),\n});\n\nexport type QuizQuestion = z.infer<typeof quizQuestionSchema>;\n","import { z } from \"zod\";\nimport { lessonDataSchema } from \"./lessonData.schema\";\nimport { unitDataSchema } from \"./unitData.schema\";\nimport { unitvariantSchema } from \"./unitvariant.schema\";\nimport { programmeFieldsSchema } from \"./programmeFields.schema\";\n\nexport const syntheticUnitvariantLessonsSchema = z.object({\n lesson_slug: z.string(),\n unit_slug: z.string(),\n programme_slug: z.string(),\n is_legacy: z.boolean(),\n lesson_data: lessonDataSchema,\n unit_data: unitDataSchema,\n null_unitvariant: unitvariantSchema,\n programme_fields: programmeFieldsSchema,\n supplementary_data: z.object({\n unit_order: z.number(),\n order_in_unit: z.number(),\n }),\n});\n\nexport type SyntheticUnitvariantLessons = z.infer<\n typeof syntheticUnitvariantLessonsSchema\n>;\n","import { z } from \"zod\";\nimport { unitDataSchema } from \"./unitData.schema\";\nimport { unitvariantSchema } from \"./unitvariant.schema\";\nimport { programmeFieldsSchema } from \"./programmeFields.schema\";\n\nexport const syntheticUnitvariantsWithLessonIdsSchema = z.object({\n unit_slug: z.string(),\n programme_slug: z.string(),\n is_legacy: z.boolean(),\n lesson_count: z.number(),\n unit_data: unitDataSchema,\n null_unitvariant: unitvariantSchema,\n programme_fields: programmeFieldsSchema,\n supplementary_data: z.object({\n unit_order: z.number(),\n }),\n expired: z.boolean(),\n});\n\nexport type syntheticUnitvariantsWithLessonIds = z.infer<\n typeof syntheticUnitvariantsWithLessonIdsSchema\n>;\n","import { z } from \"zod\";\n\nimport { quizQuestionSchema } from \"./quizQuestion.schema\";\n\nexport const lessonEquipmentAndResourcesSchema = z.object({\n equipment: z.string(),\n});\n\nexport type LessonEquipmentAndResources = z.infer<\n typeof lessonEquipmentAndResourcesSchema\n>;\n\nexport const keyLearningPointsSchema = z.object({\n key_learning_point: z.string(),\n});\n\nexport type KeyLearningPoints = z.infer<typeof keyLearningPointsSchema>;\n\nexport const keywordsSchema = z.object({\n keyword: z.string(),\n description: z.string(),\n});\n\nexport type Keywords = z.infer<typeof keywordsSchema>;\n\nexport const misconceptionsAndCommonMistakesSchema = z.object({\n misconception: z.string(),\n response: z.string(),\n});\n\nexport type MisconceptionsAndCommonMistakes = z.infer<\n typeof misconceptionsAndCommonMistakesSchema\n>;\n\nexport const teacherTipsSchema = z.object({\n teacher_tip: z.string(),\n});\n\nexport type TeacherTips = z.infer<typeof teacherTipsSchema>;\n\nexport const contentGuidanceSchema = z.object({\n contentguidance_label: z.string().nullable(),\n contentguidance_description: z.string().nullable(),\n contentguidance_area: z.string().nullable(),\n});\n\nexport type ContentGuidance = z.infer<typeof contentGuidanceSchema>;\n\nexport const lessonContentSchema = z.object({\n lesson_id: z.number(),\n lesson_slug: z.string(),\n lesson_title: z.string().nullable(),\n content_guidance: z.array(contentGuidanceSchema).nullable(),\n misconceptions_and_common_mistakes: z\n .array(misconceptionsAndCommonMistakesSchema)\n .nullable(),\n teacher_tips: z.array(teacherTipsSchema).nullable(),\n equipment_and_resources: z\n .array(lessonEquipmentAndResourcesSchema)\n .nullable(),\n pupil_lesson_outcome: z.string().nullable(),\n lesson_keywords: z.array(keywordsSchema).nullable(),\n supervision_level: z.string().nullable(),\n key_learning_points: z.array(keyLearningPointsSchema).nullable().optional(),\n video_mux_playback_id: z.string().nullable(),\n video_with_sign_language_mux_playback_id: z.string().nullable(),\n video_id: z.number().nullable(),\n video_title: z.string().nullable(),\n transcript_sentences: z.string().nullable(),\n starter_quiz: z.array(quizQuestionSchema).optional().nullable(),\n exit_quiz: z.array(quizQuestionSchema).optional().nullable(),\n starter_quiz_id: z.number().nullable(),\n exit_quiz_id: z.number().nullable(),\n state: z.string(),\n is_legacy: z.boolean().nullable(),\n deprecated_fields: z.record(z.unknown()).nullable(),\n});\n\nexport type LessonContent = z.infer<typeof lessonContentSchema>;\n","import { z } from \"zod\";\nimport { programmeFieldsSchema } from \"./programmeFields.schema\";\nimport { yearSlugs } from \"./base.schema\";\n\nexport const syntheticProgrammesByYearSchema = z.object({\n year_slug: yearSlugs,\n programme_slug: z.string(),\n base_slug: z.string(),\n is_legacy: z.boolean(),\n programme_fields: programmeFieldsSchema,\n});\n\nexport type SyntheticProgrammesByYear = z.infer<\n typeof syntheticProgrammesByYearSchema\n>;\n","import { z } from \"zod\";\n\nexport const threadsByUnitSchema = z.object({\n unit_id: z.number(),\n threads: z\n .array(z.object({ theme_slug: z.string(), theme_title: z.string() }))\n .nullable(),\n});\n\nexport type ThreadsByUnit = z.infer<typeof threadsByUnitSchema>;\n","import { LessonData } from \"@/schema/lessonData.schema\";\n\nexport const lessonDataFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<LessonData>;\n} = {}): LessonData => ({\n lesson_id: 1,\n lesson_uid: \"lesson-uid\",\n title: \"lesson-title\",\n description: \"lesson-description\",\n slug: \"lesson-slug\",\n pupil_lesson_outcome: \"pupil-lesson-outcome\",\n key_learning_points: [{}],\n equipment_and_resources: null,\n content_guidance_details: null,\n content_guidance: null,\n supervision_level: null,\n thirdpartycontent_list: null,\n misconceptions_and_common_mistakes: null,\n keywords: null,\n video_id: null,\n sign_language_video_id: null,\n quiz_id_starter: null,\n quiz_id_exit: null,\n asset_id_slidedeck: null,\n asset_id_worksheet: null,\n copyright_content: null,\n _state: \"published\",\n _cohort: \"2023-2024\",\n deprecated_fields: null,\n ...overrides,\n});\n","import { ProgrammeFields } from \"@/schema/programmeFields.schema\";\n\nexport const programmeFieldsFixture = ({\n overrides,\n}: {\n overrides?: Partial<ProgrammeFields>;\n} = {}): ProgrammeFields => ({\n tier: null,\n tier_id: null,\n tier_slug: null,\n tier_description: null,\n tier_display_order: null,\n examboard: null,\n examboard_id: null,\n examboard_slug: null,\n examboard_description: null,\n examboard_display_order: null,\n year: \"1\",\n year_slug: \"year-1\",\n year_id: 1,\n year_description: \"Year 1\",\n year_display_order: 1,\n keystage: \"KS1\",\n keystage_id: 1,\n keystage_slug: \"ks1\",\n keystage_description: \"Key Stage 1\",\n keystage_display_order: 1,\n phase: \"primary\",\n phase_id: 0,\n phase_slug: \"primary\",\n phase_description: \"Primary\",\n phase_display_order: 1,\n subject: \"Maths\",\n subject_id: 1,\n subject_slug: \"maths\",\n subject_description: \"subject-description\",\n subject_display_order: 1,\n ...overrides,\n});\n","import { UnitData } from \"@/schema/unitData.schema\";\n\nexport const unitDataFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<UnitData>;\n} = {}): UnitData => ({\n unit_id: 0,\n unit_uid: \"unit-uid\",\n description: null,\n slug: \"unit-slug\",\n tags: null,\n title: \"unit-title\",\n _state: \"published\",\n _cohort: \"2023-2024\",\n ...overrides,\n});\n","import { Unitvariant } from \"@/schema/unitvariant.schema\";\n\nexport const unitvariantFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<Unitvariant>;\n} = {}): Unitvariant => ({\n unitvariant_id: 1,\n unit_id: 1,\n _deleted: false,\n _state: \"published\",\n _cohort: \"2023-2024\",\n unit_overrides: {},\n programme_fields: {},\n ...overrides,\n});\n","import {\n ImageObject,\n ImageItem,\n TextItem,\n} from \"@/schema/imageTextItems.schema\";\n\nexport const imageObjectFixture = (): ImageObject => ({\n format: \"png\",\n secure_url: \"https://res.cloudinary.com/demo/image/upload/sample.png\",\n url: \"http://res.cloudinary.com/demo/image/upload/sample.png\",\n height: 100,\n width: 100,\n metadata: {\n attribution: \"author\",\n usageRestriction: \"free\",\n },\n public_id: \"sample\",\n version: 1234567890,\n});\n\nexport const imageItemFixture = (): ImageItem => ({\n image_object: imageObjectFixture(),\n type: \"image\",\n});\n\nexport const textItemFixture = ({\n overrides = {},\n}: { overrides?: Partial<TextItem> } = {}): TextItem => ({\n text: \"Hello, World!\",\n type: \"text\",\n ...overrides,\n});\n","import {\n Match,\n MultipleChoice,\n Order,\n ShortAnswer,\n} from \"@/schema/quizAnswers.schema\";\nimport { imageItemFixture, textItemFixture } from \"./imageTextItems.fixture\";\n\nexport const multipleChoiceFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<MultipleChoice>;\n} = {}): MultipleChoice => ({\n answer: [textItemFixture(), imageItemFixture()],\n answer_is_active: true,\n answer_is_correct: true,\n ...overrides,\n});\n\nexport const shortAnswerFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<ShortAnswer>;\n} = {}): ShortAnswer => ({\n answer: [textItemFixture(), imageItemFixture()],\n answer_is_active: true,\n answer_is_default: true,\n ...overrides,\n});\n\nexport const orderFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<Order>;\n} = {}): Order => ({\n answer: [textItemFixture()],\n correct_order: 1,\n answer_is_active: true,\n ...overrides,\n});\n\nexport const matchFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<Match>;\n} = {}): Match => ({\n answer_is_active: true,\n correct_choice: [textItemFixture({ overrides: { text: \"Paris\" } })],\n match_option: [textItemFixture({ overrides: { text: \"Capital of France\" } })],\n ...overrides,\n});\n","import { QuizQuestion } from \"@/schema/quizQuestion.schema\";\n\nimport {\n matchFixture,\n multipleChoiceFixture,\n orderFixture,\n shortAnswerFixture,\n} from \"./quizAnswers.fixture\";\n\nexport const multipleChoiceQuestion = ({\n overrides = {},\n}: {\n overrides?: Partial<QuizQuestion>;\n} = {}): QuizQuestion => ({\n question_id: 1,\n question_uid: \"question-1\",\n question_type: \"multiple-choice\",\n question_stem: [\n {\n text: \"What is the capital of France?\",\n type: \"text\",\n },\n ],\n answers: {\n \"multiple-choice\": [\n multipleChoiceFixture({ overrides: { answer_is_correct: true } }),\n multipleChoiceFixture({ overrides: { answer_is_correct: false } }),\n multipleChoiceFixture({ overrides: { answer_is_correct: false } }),\n multipleChoiceFixture({ overrides: { answer_is_correct: false } }),\n ],\n },\n feedback: \"Paris is the capital of France.\",\n hint: \"Think about the Eiffel Tower.\",\n active: true,\n order: 1,\n ...overrides,\n});\n\nexport const shortAnswerQuestion = ({\n overrides = {},\n}: {\n overrides?: Partial<QuizQuestion>;\n} = {}): QuizQuestion => ({\n question_id: 2,\n question_uid: \"question-2\",\n question_type: \"short-answer\",\n question_stem: [\n {\n text: \"What is the capital of France?\",\n type: \"text\",\n },\n ],\n answers: {\n \"short-answer\": [shortAnswerFixture()],\n },\n feedback: \"Paris is the capital of France.\",\n hint: \"Think about the Eiffel Tower.\",\n active: true,\n order: 2,\n ...overrides,\n});\n\nexport const orderQuestion = ({\n overrides = {},\n}: {\n overrides?: Partial<QuizQuestion>;\n} = {}): QuizQuestion => ({\n question_id: 3,\n question_uid: \"question-3\",\n question_type: \"order\",\n question_stem: [\n {\n text: \"What is the capital of France?\",\n type: \"text\",\n },\n ],\n answers: {\n order: [\n orderFixture({ overrides: { correct_order: 1 } }),\n orderFixture({ overrides: { correct_order: 2 } }),\n orderFixture({ overrides: { correct_order: 3 } }),\n orderFixture({ overrides: { correct_order: 4 } }),\n ],\n },\n feedback: \"Paris is the capital of France.\",\n hint: \"Think about the Eiffel Tower.\",\n active: true,\n order: 3,\n ...overrides,\n});\n\nexport const matchQuestion = ({\n overrides = {},\n}: {\n overrides?: Partial<QuizQuestion>;\n} = {}): QuizQuestion => ({\n question_id: 4,\n question_uid: \"question-4\",\n question_type: \"match\",\n question_stem: [\n {\n text: \"What is the capital of France?\",\n type: \"text\",\n },\n ],\n answers: {\n match: [matchFixture(), matchFixture(), matchFixture(), matchFixture()],\n },\n feedback: \"Paris is the capital of France.\",\n hint: \"Think about the Eiffel Tower.\",\n active: true,\n order: 4,\n ...overrides,\n});\n","import {\n Keywords,\n LessonContent,\n TeacherTips,\n LessonEquipmentAndResources,\n} from \"@/schema/lessonContent.schema\";\nimport {\n matchQuestion,\n multipleChoiceQuestion,\n orderQuestion,\n shortAnswerQuestion,\n} from \"./quizQuestion.fixture\";\n\nexport const lessonEquipmentAndResourcesFixture =\n (): LessonEquipmentAndResources => ({\n equipment: \"equipment\",\n });\n\nexport const teacherTipsFixture = (): TeacherTips => ({\n teacher_tip: \"teacher-tip\",\n});\n\nexport const keywordsFixture = (): Keywords => ({\n keyword: \"keyword\",\n description: \"description\",\n});\n\nexport const misconceptionsAndCommonMistakesFixture = () => ({\n misconception: \"misconception\",\n response: \"response\",\n});\n\nexport const contentGuidanceFixture = () => ({\n contentguidance_label: \"contentguidance-label\",\n contentguidance_description: \"contentguidance-description\",\n contentguidance_area: \"contentguidance-area\",\n});\n\nexport const lessonContentFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<LessonContent>;\n} = {}): LessonContent => ({\n lesson_id: 1,\n lesson_title: \"lesson-title\",\n lesson_slug: \"lesson-slug\",\n deprecated_fields: {},\n is_legacy: false,\n misconceptions_and_common_mistakes: [\n misconceptionsAndCommonMistakesFixture(),\n ],\n equipment_and_resources: [lessonEquipmentAndResourcesFixture()],\n teacher_tips: [teacherTipsFixture()],\n key_learning_points: null,\n pupil_lesson_outcome: \"pupil-lesson-outcome\",\n lesson_keywords: [keywordsFixture()],\n content_guidance: [contentGuidanceFixture()],\n video_mux_playback_id: \"video-mux-playback-id\",\n video_id: null,\n video_with_sign_language_mux_playback_id:\n \"video-with-sign-language-mux-playback-id\",\n video_title: \"video-title\",\n transcript_sentences: \"this is the transcript\",\n starter_quiz: [\n multipleChoiceQuestion({\n overrides: { order: 1, question_uid: \"starter-quiz-1\" },\n }),\n orderQuestion({ overrides: { order: 2, question_uid: \"starter-quiz-2\" } }),\n matchQuestion({ overrides: { order: 3, question_uid: \"starter-quiz-3\" } }),\n shortAnswerQuestion({\n overrides: { order: 4, question_uid: \"starter-quiz-4\" },\n }),\n ],\n starter_quiz_id: 1,\n exit_quiz: null,\n exit_quiz_id: null,\n supervision_level: null,\n state: \"published\",\n ...overrides,\n});\n","import { SyntheticUnitvariantLessons } from \"@/schema/syntheticUnitvariantLessons.schema\";\n\nimport { lessonDataFixture } from \"./lessonData.fixture\";\nimport { unitDataFixture } from \"./unitData.fixture\";\nimport { unitvariantFixture } from \"./unitvariant.fixture\";\nimport { programmeFieldsFixture } from \"./programmeFields.fixture\";\n\nexport const syntheticUnitvariantLessonsFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<SyntheticUnitvariantLessons>;\n} = {}): SyntheticUnitvariantLessons => ({\n lesson_slug: \"lesson-slug\",\n unit_slug: \"unit-slug\",\n programme_slug: \"programme-slug\",\n is_legacy: false,\n lesson_data: lessonDataFixture(),\n unit_data: unitDataFixture(),\n null_unitvariant: unitvariantFixture(),\n programme_fields: programmeFieldsFixture(),\n supplementary_data: {\n unit_order: 1,\n order_in_unit: 1,\n },\n ...overrides,\n});\n","import { unitDataFixture } from \"./unitData.fixture\";\nimport { unitvariantFixture } from \"./unitvariant.fixture\";\nimport { programmeFieldsFixture } from \"./programmeFields.fixture\";\nimport { syntheticUnitvariantsWithLessonIds } from \"@/schema/syntheticUnitvariantsWithLessonIds.schema\";\n\nexport const syntheticUnitvariantsWithLessonIdsFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<syntheticUnitvariantsWithLessonIds>;\n} = {}): syntheticUnitvariantsWithLessonIds => ({\n unit_slug: \"unit-slug\",\n programme_slug: \"programme-slug\",\n is_legacy: false,\n lesson_count: 1,\n unit_data: unitDataFixture(),\n null_unitvariant: unitvariantFixture(),\n programme_fields: programmeFieldsFixture(),\n supplementary_data: {\n unit_order: 1,\n },\n expired: false,\n ...overrides,\n});\n","import { SyntheticProgrammesByYear } from \"@/schema/syntheticProgrammesByYear.schema\";\nimport { programmeFieldsFixture } from \"./programmeFields.fixture\";\n\nexport const syntheticProgrammesByYearFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<SyntheticProgrammesByYear>;\n} = {}): SyntheticProgrammesByYear => ({\n year_slug: \"year-1\",\n base_slug: \"maths-primary-year-1\",\n programme_slug: \"maths-primary-year-1\",\n is_legacy: false,\n programme_fields: programmeFieldsFixture(),\n});\n"],"names":["_stateSchema","z","enum","_cohortSchema","phaseSlugs","phaseDescriptions","phases","keystages","keystageSlugs","keystageDescriptions","years","yearSlugs","yearDescriptions","tiers","tierSlugs","tierDescriptions","examboardSlugs","examboards","examboardDescriptions","subjects","subjectSlugs","lessonDataSchema","object","lesson_id","number","lesson_uid","string","slug","title","description","pupil_lesson_outcome","key_learning_points","array","equipment_and_resources","nullable","content_guidance_details","content_guidance","copyright_content","supervision_level","thirdpartycontent_list","misconceptions_and_common_mistakes","keywords","video_id","sign_language_video_id","quiz_id_starter","quiz_id_exit","asset_id_slidedeck","asset_id_worksheet","deprecated_fields","record","unknown","_state","_cohort","programmeFieldsSchema","tier","tier_id","tier_slug","tier_description","tier_display_order","examboard","examboard_id","examboard_slug","examboard_description","examboard_display_order","year","year_slug","year_id","year_description","year_display_order","keystage","keystage_id","keystage_slug","keystage_description","keystage_display_order","phase","phase_id","phase_slug","phase_description","phase_display_order","subject","subject_id","subject_slug","subject_description","subject_display_order","legacy","optional","dataset","unitDataSchema","unit_id","unit_uid","tags","unitvariantSchema","unitvariant_id","_deleted","boolean","unit_overrides","partial","programme_fields","imageObjectSchema","format","secure_url","url","height","width","metadata","union","any","attribution","usageRestriction","public_id","version","imageItemSchema","image_object","type","literal","textItemSchema","text","multipleChoiceSchema","answer","answer_is_active","answer_is_correct","shortAnswerSchema","answer_is_default","orderSchema","correct_order","matchSchema","correct_choice","match_option","quizQuestionSchema","question_id","question_uid","question_type","question_stem","answers","order","match","feedback","hint","active","syntheticUnitvariantLessonsSchema","lesson_slug","unit_slug","programme_slug","is_legacy","lesson_data","unit_data","null_unitvariant","supplementary_data","unit_order","order_in_unit","syntheticUnitvariantsWithLessonIdsSchema","lesson_count","expired","lessonEquipmentAndResourcesSchema","equipment","keyLearningPointsSchema","key_learning_point","keywordsSchema","keyword","misconceptionsAndCommonMistakesSchema","misconception","response","teacherTipsSchema","teacher_tip","contentGuidanceSchema","contentguidance_label","contentguidance_description","contentguidance_area","lessonContentSchema","lesson_title","teacher_tips","lesson_keywords","video_mux_playback_id","video_with_sign_language_mux_playback_id","video_title","transcript_sentences","starter_quiz","exit_quiz","starter_quiz_id","exit_quiz_id","state","syntheticProgrammesByYearSchema","base_slug","threadsByUnitSchema","threads","theme_slug","theme_title","lessonDataFixture","overrides","Object","assign","programmeFieldsFixture","unitDataFixture","unitvariantFixture","textItemFixture","multipleChoiceFixture","shortAnswerFixture","orderFixture","matchFixture","multipleChoiceQuestion","shortAnswerQuestion","orderQuestion","matchQuestion","lessonEquipmentAndResourcesFixture","teacherTipsFixture","keywordsFixture","misconceptionsAndCommonMistakesFixture","contentGuidanceFixture","lessonContentFixture","syntheticUnitvariantLessonsFixture","syntheticUnitvariantsWithLessonIdsFixture","syntheticProgrammesByYearFixture"],"mappings":"wBAEa,MAAAA,EAAeC,EAAEC,KAAK,CAAC,YAAa,MAAO,cAC3CC,EAAgBF,EAAEC,KAAK,CAAC,YAAa,YAAa,MAElDE,EAAaH,EAAEC,KAAK,CAAC,aAAc,UAAW,cAC9CG,EAAoBJ,EAAEC,KAAK,CACtC,+BACA,UACA,cAEWI,EAASL,EAAEC,KAAK,CAAC,aAAc,UAAW,cAE1CK,EAAYN,EAAEC,KAAK,CAAC,MAAO,MAAO,MAAO,MAAO,SAChDM,EAAgBP,EAAEC,KAAK,CAClC,MACA,MACA,MACA,MACA,iCAEWO,EAAuBR,EAAEC,KAAK,CACzC,cACA,cACA,cACA,cACA,iCAGWQ,EAAQT,EAAEC,KAAK,CAC1B,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,KACA,KACA,KACA,KACA,MAEWS,EAAYV,EAAEC,KAAK,CAC9B,YACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,YAEWU,EAAmBX,EAAEC,KAAK,CACrC,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,UACA,cAGWW,EAAQZ,EAAEC,KAAK,CAAC,OAAQ,aAAc,WACtCY,EAAYb,EAAEC,KAAK,CAAC,OAAQ,aAAc,WAC1Ca,EAAmBd,EAAEC,KAAK,CAAC,OAAQ,aAAc,WAEjDc,EAAiBf,EAAEC,KAAK,CACnC,MACA,UACA,SACA,MACA,SAEWe,EAAahB,EAAEC,KAAK,CAAC,MAAO,UAAW,SAAU,MAAO,SACxDgB,EAAwBjB,EAAEC,KAAK,CAC1C,yCACA,UACA,SACA,yCACA,oCAGWiB,EAAWlB,EAAEC,KAAK,CAC7B,UACA,YACA,UACA,QACA,QACA,UACA,UACA,UACA,YACA,mBACA,iBACA,cACA,YACA,uBACA,wBACA,QACA,kBACA,+BACA,mBACA,6BACA,SACA,SACA,QACA,WACA,qBACA,6CACA,sBACA,cACA,UACA,0BACA,YACA,uBACA,mBACA,sBACA,8BACA,aACA,uBACA,6BACA,gBACA,qBACA,WACA,mBACA,mBACA,mBACA,iBACA,0BACA,0BACA,2BACA,2BACA,kBACA,4CAEWkB,EAAenB,EAAEC,KAAK,CACjC,UACA,YACA,UACA,QACA,QACA,UACA,UACA,UACA,YACA,mBACA,MACA,cACA,YACA,qBACA,oBACA,QACA,kBACA,+BACA,mBACA,6BACA,SACA,SACA,QACA,WACA,qBACA,4CACA,sBACA,YACA,UACA,0BACA,YACA,uBACA,mBACA,sBACA,8BACA,aACA,uBACA,6BACA,gBACA,qBACA,WACA,mBACA,mBACA,mBACA,iBACA,0BACA,0BACA,2BACA,2BACA,SCrMWmB,EAAmBpB,EAAEqB,OAAO,CACvCC,UAAWtB,EAAEuB,SACbC,WAAYxB,EAAEyB,SACdC,KAAM1B,EAAEyB,SACRE,MAAO3B,EAAEyB,SACTG,YAAa5B,EAAEyB,SACfI,qBAAsB7B,EAAEyB,SACxBK,oBAAqB9B,EAAE+B,MAAM/B,EAAEqB,OAAO,CAAE,IACxCW,wBAAyBhC,EAAE+B,MAAM/B,EAAEqB,OAAO,CAAE,IAAGY,WAC/CC,yBAA0BlC,EAAE+B,MAAM/B,EAAEqB,OAAO,CAAE,IAAGY,WAChDE,iBAAkBnC,EAAE+B,MAAM/B,EAAEuB,UAAUU,WACtCG,kBAAmBpC,EAAE+B,MAAM/B,EAAEqB,OAAO,CAAE,IAAGY,WACzCI,kBAAmBrC,EAAEyB,SAASQ,WAC9BK,uBAAwBtC,EAAE+B,MAAM/B,EAAEuB,UAAUU,WAC5CM,mCAAoCvC,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.string(),
|
|
10
10
|
tags: z.array(z.number()).nullable(),
|
|
11
|
+
deprecated_fields: z.record(z.unknown()).nullable().optional(),
|
|
11
12
|
title: z.string(),
|
|
12
13
|
_state: _stateSchema,
|
|
13
14
|
_cohort: _cohortSchema,
|
package/dist/types.d.ts
CHANGED
|
@@ -206,6 +206,7 @@ declare const unitDataSchema: z.ZodObject<{
|
|
|
206
206
|
description: z.ZodNullable<z.ZodString>;
|
|
207
207
|
slug: z.ZodString;
|
|
208
208
|
tags: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
|
|
209
|
+
deprecated_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
209
210
|
title: z.ZodString;
|
|
210
211
|
_state: z.ZodEnum<["published", "new", "migration"]>;
|
|
211
212
|
_cohort: z.ZodEnum<["2020-2023", "2023-2024", "0"]>;
|
|
@@ -218,6 +219,7 @@ declare const unitDataSchema: z.ZodObject<{
|
|
|
218
219
|
unit_id: number;
|
|
219
220
|
unit_uid: string;
|
|
220
221
|
tags: number[] | null;
|
|
222
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
221
223
|
}, {
|
|
222
224
|
slug: string;
|
|
223
225
|
title: string;
|
|
@@ -227,6 +229,7 @@ declare const unitDataSchema: z.ZodObject<{
|
|
|
227
229
|
unit_id: number;
|
|
228
230
|
unit_uid: string;
|
|
229
231
|
tags: number[] | null;
|
|
232
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
230
233
|
}>;
|
|
231
234
|
type UnitData = z.infer<typeof unitDataSchema>;
|
|
232
235
|
|
|
@@ -242,6 +245,7 @@ declare const unitvariantSchema: z.ZodObject<{
|
|
|
242
245
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
246
|
slug: z.ZodOptional<z.ZodString>;
|
|
244
247
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
248
|
+
deprecated_fields: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
245
249
|
title: z.ZodOptional<z.ZodString>;
|
|
246
250
|
_state: z.ZodOptional<z.ZodEnum<["published", "new", "migration"]>>;
|
|
247
251
|
_cohort: z.ZodOptional<z.ZodEnum<["2020-2023", "2023-2024", "0"]>>;
|
|
@@ -251,6 +255,7 @@ declare const unitvariantSchema: z.ZodObject<{
|
|
|
251
255
|
description?: string | null | undefined;
|
|
252
256
|
slug?: string | undefined;
|
|
253
257
|
tags?: number[] | null | undefined;
|
|
258
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
254
259
|
title?: string | undefined;
|
|
255
260
|
_state?: "published" | "new" | "migration" | undefined;
|
|
256
261
|
_cohort?: "0" | "2020-2023" | "2023-2024" | undefined;
|
|
@@ -260,6 +265,7 @@ declare const unitvariantSchema: z.ZodObject<{
|
|
|
260
265
|
description?: string | null | undefined;
|
|
261
266
|
slug?: string | undefined;
|
|
262
267
|
tags?: number[] | null | undefined;
|
|
268
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
263
269
|
title?: string | undefined;
|
|
264
270
|
_state?: "published" | "new" | "migration" | undefined;
|
|
265
271
|
_cohort?: "0" | "2020-2023" | "2023-2024" | undefined;
|
|
@@ -376,6 +382,7 @@ declare const unitvariantSchema: z.ZodObject<{
|
|
|
376
382
|
description?: string | null | undefined;
|
|
377
383
|
slug?: string | undefined;
|
|
378
384
|
tags?: number[] | null | undefined;
|
|
385
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
379
386
|
title?: string | undefined;
|
|
380
387
|
_state?: "published" | "new" | "migration" | undefined;
|
|
381
388
|
_cohort?: "0" | "2020-2023" | "2023-2024" | undefined;
|
|
@@ -426,6 +433,7 @@ declare const unitvariantSchema: z.ZodObject<{
|
|
|
426
433
|
description?: string | null | undefined;
|
|
427
434
|
slug?: string | undefined;
|
|
428
435
|
tags?: number[] | null | undefined;
|
|
436
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
429
437
|
title?: string | undefined;
|
|
430
438
|
_state?: "published" | "new" | "migration" | undefined;
|
|
431
439
|
_cohort?: "0" | "2020-2023" | "2023-2024" | undefined;
|
|
@@ -1916,6 +1924,7 @@ declare const syntheticUnitvariantLessonsSchema: z.ZodObject<{
|
|
|
1916
1924
|
description: z.ZodNullable<z.ZodString>;
|
|
1917
1925
|
slug: z.ZodString;
|
|
1918
1926
|
tags: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
|
|
1927
|
+
deprecated_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1919
1928
|
title: z.ZodString;
|
|
1920
1929
|
_state: z.ZodEnum<["published", "new", "migration"]>;
|
|
1921
1930
|
_cohort: z.ZodEnum<["2020-2023", "2023-2024", "0"]>;
|
|
@@ -1928,6 +1937,7 @@ declare const syntheticUnitvariantLessonsSchema: z.ZodObject<{
|
|
|
1928
1937
|
unit_id: number;
|
|
1929
1938
|
unit_uid: string;
|
|
1930
1939
|
tags: number[] | null;
|
|
1940
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
1931
1941
|
}, {
|
|
1932
1942
|
slug: string;
|
|
1933
1943
|
title: string;
|
|
@@ -1937,6 +1947,7 @@ declare const syntheticUnitvariantLessonsSchema: z.ZodObject<{
|
|
|
1937
1947
|
unit_id: number;
|
|
1938
1948
|
unit_uid: string;
|
|
1939
1949
|
tags: number[] | null;
|
|
1950
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
1940
1951
|
}>;
|
|
1941
1952
|
null_unitvariant: z.ZodObject<{
|
|
1942
1953
|
_state: z.ZodEnum<["published", "new", "migration"]>;
|
|
@@ -1950,6 +1961,7 @@ declare const syntheticUnitvariantLessonsSchema: z.ZodObject<{
|
|
|
1950
1961
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1951
1962
|
slug: z.ZodOptional<z.ZodString>;
|
|
1952
1963
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
1964
|
+
deprecated_fields: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
1953
1965
|
title: z.ZodOptional<z.ZodString>;
|
|
1954
1966
|
_state: z.ZodOptional<z.ZodEnum<["published", "new", "migration"]>>;
|
|
1955
1967
|
_cohort: z.ZodOptional<z.ZodEnum<["2020-2023", "2023-2024", "0"]>>;
|
|
@@ -1959,6 +1971,7 @@ declare const syntheticUnitvariantLessonsSchema: z.ZodObject<{
|
|
|
1959
1971
|
description?: string | null | undefined;
|
|
1960
1972
|
slug?: string | undefined;
|
|
1961
1973
|
tags?: number[] | null | undefined;
|
|
1974
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
1962
1975
|
title?: string | undefined;
|
|
1963
1976
|
_state?: "published" | "new" | "migration" | undefined;
|
|
1964
1977
|
_cohort?: "0" | "2020-2023" | "2023-2024" | undefined;
|
|
@@ -1968,6 +1981,7 @@ declare const syntheticUnitvariantLessonsSchema: z.ZodObject<{
|
|
|
1968
1981
|
description?: string | null | undefined;
|
|
1969
1982
|
slug?: string | undefined;
|
|
1970
1983
|
tags?: number[] | null | undefined;
|
|
1984
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
1971
1985
|
title?: string | undefined;
|
|
1972
1986
|
_state?: "published" | "new" | "migration" | undefined;
|
|
1973
1987
|
_cohort?: "0" | "2020-2023" | "2023-2024" | undefined;
|
|
@@ -2084,6 +2098,7 @@ declare const syntheticUnitvariantLessonsSchema: z.ZodObject<{
|
|
|
2084
2098
|
description?: string | null | undefined;
|
|
2085
2099
|
slug?: string | undefined;
|
|
2086
2100
|
tags?: number[] | null | undefined;
|
|
2101
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
2087
2102
|
title?: string | undefined;
|
|
2088
2103
|
_state?: "published" | "new" | "migration" | undefined;
|
|
2089
2104
|
_cohort?: "0" | "2020-2023" | "2023-2024" | undefined;
|
|
@@ -2134,6 +2149,7 @@ declare const syntheticUnitvariantLessonsSchema: z.ZodObject<{
|
|
|
2134
2149
|
description?: string | null | undefined;
|
|
2135
2150
|
slug?: string | undefined;
|
|
2136
2151
|
tags?: number[] | null | undefined;
|
|
2152
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
2137
2153
|
title?: string | undefined;
|
|
2138
2154
|
_state?: "published" | "new" | "migration" | undefined;
|
|
2139
2155
|
_cohort?: "0" | "2020-2023" | "2023-2024" | undefined;
|
|
@@ -2357,6 +2373,7 @@ declare const syntheticUnitvariantLessonsSchema: z.ZodObject<{
|
|
|
2357
2373
|
unit_id: number;
|
|
2358
2374
|
unit_uid: string;
|
|
2359
2375
|
tags: number[] | null;
|
|
2376
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
2360
2377
|
};
|
|
2361
2378
|
null_unitvariant: {
|
|
2362
2379
|
_state: "published" | "new" | "migration";
|
|
@@ -2370,6 +2387,7 @@ declare const syntheticUnitvariantLessonsSchema: z.ZodObject<{
|
|
|
2370
2387
|
description?: string | null | undefined;
|
|
2371
2388
|
slug?: string | undefined;
|
|
2372
2389
|
tags?: number[] | null | undefined;
|
|
2390
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
2373
2391
|
title?: string | undefined;
|
|
2374
2392
|
_state?: "published" | "new" | "migration" | undefined;
|
|
2375
2393
|
_cohort?: "0" | "2020-2023" | "2023-2024" | undefined;
|
|
@@ -2487,6 +2505,7 @@ declare const syntheticUnitvariantLessonsSchema: z.ZodObject<{
|
|
|
2487
2505
|
unit_id: number;
|
|
2488
2506
|
unit_uid: string;
|
|
2489
2507
|
tags: number[] | null;
|
|
2508
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
2490
2509
|
};
|
|
2491
2510
|
null_unitvariant: {
|
|
2492
2511
|
_state: "published" | "new" | "migration";
|
|
@@ -2500,6 +2519,7 @@ declare const syntheticUnitvariantLessonsSchema: z.ZodObject<{
|
|
|
2500
2519
|
description?: string | null | undefined;
|
|
2501
2520
|
slug?: string | undefined;
|
|
2502
2521
|
tags?: number[] | null | undefined;
|
|
2522
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
2503
2523
|
title?: string | undefined;
|
|
2504
2524
|
_state?: "published" | "new" | "migration" | undefined;
|
|
2505
2525
|
_cohort?: "0" | "2020-2023" | "2023-2024" | undefined;
|
|
@@ -2557,6 +2577,7 @@ declare const syntheticUnitvariantsWithLessonIdsSchema: z.ZodObject<{
|
|
|
2557
2577
|
description: z.ZodNullable<z.ZodString>;
|
|
2558
2578
|
slug: z.ZodString;
|
|
2559
2579
|
tags: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
|
|
2580
|
+
deprecated_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2560
2581
|
title: z.ZodString;
|
|
2561
2582
|
_state: z.ZodEnum<["published", "new", "migration"]>;
|
|
2562
2583
|
_cohort: z.ZodEnum<["2020-2023", "2023-2024", "0"]>;
|
|
@@ -2569,6 +2590,7 @@ declare const syntheticUnitvariantsWithLessonIdsSchema: z.ZodObject<{
|
|
|
2569
2590
|
unit_id: number;
|
|
2570
2591
|
unit_uid: string;
|
|
2571
2592
|
tags: number[] | null;
|
|
2593
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
2572
2594
|
}, {
|
|
2573
2595
|
slug: string;
|
|
2574
2596
|
title: string;
|
|
@@ -2578,6 +2600,7 @@ declare const syntheticUnitvariantsWithLessonIdsSchema: z.ZodObject<{
|
|
|
2578
2600
|
unit_id: number;
|
|
2579
2601
|
unit_uid: string;
|
|
2580
2602
|
tags: number[] | null;
|
|
2603
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
2581
2604
|
}>;
|
|
2582
2605
|
null_unitvariant: z.ZodObject<{
|
|
2583
2606
|
_state: z.ZodEnum<["published", "new", "migration"]>;
|
|
@@ -2591,6 +2614,7 @@ declare const syntheticUnitvariantsWithLessonIdsSchema: z.ZodObject<{
|
|
|
2591
2614
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2592
2615
|
slug: z.ZodOptional<z.ZodString>;
|
|
2593
2616
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
2617
|
+
deprecated_fields: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
2594
2618
|
title: z.ZodOptional<z.ZodString>;
|
|
2595
2619
|
_state: z.ZodOptional<z.ZodEnum<["published", "new", "migration"]>>;
|
|
2596
2620
|
_cohort: z.ZodOptional<z.ZodEnum<["2020-2023", "2023-2024", "0"]>>;
|
|
@@ -2600,6 +2624,7 @@ declare const syntheticUnitvariantsWithLessonIdsSchema: z.ZodObject<{
|
|
|
2600
2624
|
description?: string | null | undefined;
|
|
2601
2625
|
slug?: string | undefined;
|
|
2602
2626
|
tags?: number[] | null | undefined;
|
|
2627
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
2603
2628
|
title?: string | undefined;
|
|
2604
2629
|
_state?: "published" | "new" | "migration" | undefined;
|
|
2605
2630
|
_cohort?: "0" | "2020-2023" | "2023-2024" | undefined;
|
|
@@ -2609,6 +2634,7 @@ declare const syntheticUnitvariantsWithLessonIdsSchema: z.ZodObject<{
|
|
|
2609
2634
|
description?: string | null | undefined;
|
|
2610
2635
|
slug?: string | undefined;
|
|
2611
2636
|
tags?: number[] | null | undefined;
|
|
2637
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
2612
2638
|
title?: string | undefined;
|
|
2613
2639
|
_state?: "published" | "new" | "migration" | undefined;
|
|
2614
2640
|
_cohort?: "0" | "2020-2023" | "2023-2024" | undefined;
|
|
@@ -2725,6 +2751,7 @@ declare const syntheticUnitvariantsWithLessonIdsSchema: z.ZodObject<{
|
|
|
2725
2751
|
description?: string | null | undefined;
|
|
2726
2752
|
slug?: string | undefined;
|
|
2727
2753
|
tags?: number[] | null | undefined;
|
|
2754
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
2728
2755
|
title?: string | undefined;
|
|
2729
2756
|
_state?: "published" | "new" | "migration" | undefined;
|
|
2730
2757
|
_cohort?: "0" | "2020-2023" | "2023-2024" | undefined;
|
|
@@ -2775,6 +2802,7 @@ declare const syntheticUnitvariantsWithLessonIdsSchema: z.ZodObject<{
|
|
|
2775
2802
|
description?: string | null | undefined;
|
|
2776
2803
|
slug?: string | undefined;
|
|
2777
2804
|
tags?: number[] | null | undefined;
|
|
2805
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
2778
2806
|
title?: string | undefined;
|
|
2779
2807
|
_state?: "published" | "new" | "migration" | undefined;
|
|
2780
2808
|
_cohort?: "0" | "2020-2023" | "2023-2024" | undefined;
|
|
@@ -2921,6 +2949,7 @@ declare const syntheticUnitvariantsWithLessonIdsSchema: z.ZodObject<{
|
|
|
2921
2949
|
}, {
|
|
2922
2950
|
unit_order: number;
|
|
2923
2951
|
}>;
|
|
2952
|
+
expired: z.ZodBoolean;
|
|
2924
2953
|
}, "strip", z.ZodTypeAny, {
|
|
2925
2954
|
programme_fields: {
|
|
2926
2955
|
tier: "foundation" | "core" | "higher" | null;
|
|
@@ -2968,6 +2997,7 @@ declare const syntheticUnitvariantsWithLessonIdsSchema: z.ZodObject<{
|
|
|
2968
2997
|
unit_id: number;
|
|
2969
2998
|
unit_uid: string;
|
|
2970
2999
|
tags: number[] | null;
|
|
3000
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
2971
3001
|
};
|
|
2972
3002
|
null_unitvariant: {
|
|
2973
3003
|
_state: "published" | "new" | "migration";
|
|
@@ -2981,6 +3011,7 @@ declare const syntheticUnitvariantsWithLessonIdsSchema: z.ZodObject<{
|
|
|
2981
3011
|
description?: string | null | undefined;
|
|
2982
3012
|
slug?: string | undefined;
|
|
2983
3013
|
tags?: number[] | null | undefined;
|
|
3014
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
2984
3015
|
title?: string | undefined;
|
|
2985
3016
|
_state?: "published" | "new" | "migration" | undefined;
|
|
2986
3017
|
_cohort?: "0" | "2020-2023" | "2023-2024" | undefined;
|
|
@@ -3024,6 +3055,7 @@ declare const syntheticUnitvariantsWithLessonIdsSchema: z.ZodObject<{
|
|
|
3024
3055
|
unit_order: number;
|
|
3025
3056
|
};
|
|
3026
3057
|
lesson_count: number;
|
|
3058
|
+
expired: boolean;
|
|
3027
3059
|
}, {
|
|
3028
3060
|
programme_fields: {
|
|
3029
3061
|
tier: "foundation" | "core" | "higher" | null;
|
|
@@ -3071,6 +3103,7 @@ declare const syntheticUnitvariantsWithLessonIdsSchema: z.ZodObject<{
|
|
|
3071
3103
|
unit_id: number;
|
|
3072
3104
|
unit_uid: string;
|
|
3073
3105
|
tags: number[] | null;
|
|
3106
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
3074
3107
|
};
|
|
3075
3108
|
null_unitvariant: {
|
|
3076
3109
|
_state: "published" | "new" | "migration";
|
|
@@ -3084,6 +3117,7 @@ declare const syntheticUnitvariantsWithLessonIdsSchema: z.ZodObject<{
|
|
|
3084
3117
|
description?: string | null | undefined;
|
|
3085
3118
|
slug?: string | undefined;
|
|
3086
3119
|
tags?: number[] | null | undefined;
|
|
3120
|
+
deprecated_fields?: Record<string, unknown> | null | undefined;
|
|
3087
3121
|
title?: string | undefined;
|
|
3088
3122
|
_state?: "published" | "new" | "migration" | undefined;
|
|
3089
3123
|
_cohort?: "0" | "2020-2023" | "2023-2024" | undefined;
|
|
@@ -3127,6 +3161,7 @@ declare const syntheticUnitvariantsWithLessonIdsSchema: z.ZodObject<{
|
|
|
3127
3161
|
unit_order: number;
|
|
3128
3162
|
};
|
|
3129
3163
|
lesson_count: number;
|
|
3164
|
+
expired: boolean;
|
|
3130
3165
|
}>;
|
|
3131
3166
|
type syntheticUnitvariantsWithLessonIds = z.infer<typeof syntheticUnitvariantsWithLessonIdsSchema>;
|
|
3132
3167
|
|
package/package.json
CHANGED