@oaknational/oak-curriculum-schema 2.2.0-beta.8 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/schema/public/components/base/base.schema.cjs +1 -1
- package/cjs/schema/public/components/base/base.schema.cjs.map +1 -1
- package/cjs/schema/public/lesson/lesson.fixture.cjs +1 -1
- package/cjs/schema/public/lesson/lesson.fixture.cjs.map +1 -1
- package/cjs/schema/public/lesson/lesson.schema.cjs +1 -1
- package/cjs/schema/public/lesson/lesson.schema.cjs.map +1 -1
- package/cjs/schema/published/syntheticUnitvariantsWithLessonIdsBase/syntheticUnitvariantsWithLessonIdsBase.schema.cjs +1 -1
- package/cjs/schema/published/syntheticUnitvariantsWithLessonIdsBase/syntheticUnitvariantsWithLessonIdsBase.schema.cjs.map +1 -1
- package/esm/schema/public/components/base/base.schema.js +1 -1
- package/esm/schema/public/components/base/base.schema.js.map +1 -1
- package/esm/schema/public/lesson/lesson.fixture.js +1 -1
- package/esm/schema/public/lesson/lesson.fixture.js.map +1 -1
- package/esm/schema/public/lesson/lesson.schema.js +1 -1
- package/esm/schema/public/lesson/lesson.schema.js.map +1 -1
- package/esm/schema/published/syntheticUnitvariantsWithLessonIdsBase/syntheticUnitvariantsWithLessonIdsBase.schema.js +1 -1
- package/esm/schema/published/syntheticUnitvariantsWithLessonIdsBase/syntheticUnitvariantsWithLessonIdsBase.schema.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/public/components/base/base.schema.ts +2 -0
- package/src/schema/public/lesson/lesson.fixture.ts +5 -1
- package/src/schema/public/lesson/lesson.schema.ts +3 -1
- package/src/schema/published/syntheticUnitvariantsWithLessonIdsBase/syntheticUnitvariantsWithLessonIdsBase.schema.ts +3 -1
- package/types.d.ts +699 -575
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("zod");const a=e.z.literal("published"),n=e.z.literal("new"),r=e.z.literal("migration"),s=e.z.object({created_at:e.z.string(),updated_at:e.z.string()}),i=e.z.union([a,n,r]),t=e.z.enum(["2020-2023","2023-2024","2024-2025","0"]),o=e.z.enum(["foundation","primary","secondary"]),
|
|
1
|
+
"use strict";var e=require("zod");const a=e.z.literal("published"),n=e.z.literal("new"),r=e.z.literal("migration"),s=e.z.object({created_at:e.z.string(),updated_at:e.z.string()}),i=e.z.union([a,n,r]),t=e.z.enum(["2020-2023","2023-2024","2024-2025","0"]),o=e.z.enum(["foundation","primary","secondary"]),l=e.z.enum(["Early Years Foundation Stage","Primary","Secondary"]),c=e.z.enum(["foundation","primary","secondary"]),p=e.z.enum(["KS1","KS2","KS3","KS4","EYFS","All key stages"]),u=e.z.enum(["ks1","ks2","ks3","ks4","early-years-foundation-stage","all-ks"]),g=e.z.enum(["Key Stage 1","Key Stage 2","Key Stage 3","Key Stage 4","Early Years Foundation Stage","All Key Stages"]),d=e.z.enum(["1","2","3","4","5","6","7","8","9","10","11","12","13","R","All"]),y=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","all-years"]),m=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","All years"]),h=e.z.enum(["core","foundation","higher"]),x=e.z.enum(["core","foundation","higher"]),S=e.z.enum(["Core","Foundation","Higher"]),z=e.z.enum(["Core","GCSE"]),E=e.z.enum(["core","gcse"]),C=e.z.enum(["Core","GCSE"]),Y=e.z.enum(["aqa","edexcel","eduqas","ocr","wjec","edexcelb"]),b=e.z.enum(["AQA","Edexcel","Eduqas","OCR","WJEC","Edexcel B"]),f=e.z.enum(["Assessment and Qualifications Alliance","Edexcel","Eduqas","Oxford, Cambridge and RSA Examinations","Welsh Joint Education Committee","Edexcel B"]),k=e.z.enum(["Computing (non-GCSE)","Art and design","Citizenship","Computing","Computer Science","Design and technology","Drama","English","English grammar","English reading for pleasure","English spelling","Expressive arts and design","Financial education","French","Geography","German","History","Latin","Literacy","Maths","Music","Personal, social and emotional development","Physical education","RSHE (PSHE)","Religious education","Rule of law","Science","Biology","Chemistry","Combined science","Physics","Spanish","Understanding the world","Specialist","Communication and language","Creative arts","Independent living","Numeracy","Physical development","Therapies","Occupational therapy","Physical therapy","Sensory integration","Speech and language therapy","QA testing only","Cooking and nutrition"]),v=e.z.enum(["computing-non-gcse","art","citizenship","computing","design-technology","drama","english","english-grammar","english-reading-for-pleasure","english-spelling","expressive-arts-and-design","financial-education","french","geography","german","history","latin","literacy","maths","music","personal-social-and-emotional-development","physical-education","rshe-pshe","religious-education","rule-of-law","science","biology","chemistry","combined-science","physics","spanish","understanding-the-world","specialist","communication-and-language","creative-arts","independent-living","numeracy","physical-development","therapies","occupational-therapy","physical-therapy","sensory-integration","speech-and-language-therapy","testing-not-for-publication","cooking-nutrition"]);exports._cohortSchema=t,exports._stateSchema=i,exports.examboardDescriptions=f,exports.examboardSlugs=Y,exports.examboards=b,exports.keystageDescriptions=g,exports.keystageSlugs=u,exports.keystages=p,exports.migrationState=r,exports.newState=n,exports.pathwayDescriptions=C,exports.pathwaySlugs=E,exports.pathways=z,exports.phaseDescriptions=l,exports.phaseSlugs=o,exports.phases=c,exports.publishedState=a,exports.subjectSlugs=v,exports.subjects=k,exports.tierDescriptions=S,exports.tierSlugs=x,exports.tiers=h,exports.timestampsSchema=s,exports.yearDescriptions=m,exports.yearSlugs=y,exports.years=d;
|
|
2
2
|
//# sourceMappingURL=base.schema.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.schema.cjs","sources":["../../../../../../src/schema/public/components/base/base.schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const publishedState = z.literal(\"published\");\nexport const newState = z.literal(\"new\");\nexport const migrationState = z.literal(\"migration\");\n\nexport const timestampsSchema = z.object({\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport const _stateSchema = z.union([publishedState, newState, migrationState]);\nexport const _cohortSchema = z.enum([\n \"2020-2023\",\n \"2023-2024\",\n \"2024-2025\",\n \"0\",\n]);\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([\n \"KS1\",\n \"KS2\",\n \"KS3\",\n \"KS4\",\n \"EYFS\",\n \"All key stages\",\n]);\nexport const keystageSlugs = z.enum([\n \"ks1\",\n \"ks2\",\n \"ks3\",\n \"ks4\",\n \"early-years-foundation-stage\",\n \"all-ks\",\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 \"All Key Stages\",\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 \"All\",\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 \"all-years\",\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 \"All years\",\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 pathways = z.enum([\"Core\", \"GCSE\"]);\nexport const pathwaySlugs = z.enum([\"core\", \"gcse\"]);\nexport const pathwayDescriptions = z.enum([\"Core\", \"GCSE\"]);\n\nexport const examboardSlugs = z.enum([\n \"aqa\",\n \"edexcel\",\n \"eduqas\",\n \"ocr\",\n \"wjec\",\n \"edexcelb\",\n]);\nexport const examboards = z.enum([\n \"AQA\",\n \"Edexcel\",\n \"Eduqas\",\n \"OCR\",\n \"WJEC\",\n \"Edexcel B\",\n]);\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 \"Edexcel B\",\n]);\n\nexport const subjects = z.enum([\n \"Computing (non-GCSE)\",\n \"Art and design\",\n \"Citizenship\",\n \"Computing\",\n \"Computer Science\",\n \"Design and technology\",\n \"Drama\",\n \"English\",\n \"English grammar\",\n \"English reading for pleasure\",\n \"English spelling\",\n \"Expressive arts and design\",\n \"Financial education\",\n \"French\",\n \"Geography\",\n \"German\",\n \"History\",\n \"Latin\",\n \"Literacy\",\n \"Maths\",\n \"Music\",\n \"Personal, social and emotional development\",\n \"Physical education\",\n \"RSHE (PSHE)\",\n \"Religious education\",\n \"Science\",\n \"Biology\",\n \"Chemistry\",\n \"Combined science\",\n \"Physics\",\n \"Spanish\",\n \"Understanding the world\",\n \"Specialist\",\n \"Communication and language\",\n \"Creative arts\",\n \"Independent living\",\n \"Numeracy\",\n \"Physical development\",\n \"Therapies\",\n \"Occupational therapy\",\n \"Physical therapy\",\n \"Sensory integration\",\n \"Speech and language therapy\",\n \"QA testing only\",\n \"Cooking and nutrition\",\n]);\nexport const subjectSlugs = z.enum([\n \"computing-non-gcse\",\n \"art\",\n \"citizenship\",\n \"computing\",\n \"design-technology\",\n \"drama\",\n \"english\",\n \"english-grammar\",\n \"english-reading-for-pleasure\",\n \"english-spelling\",\n \"expressive-arts-and-design\",\n \"financial-education\",\n \"french\",\n \"geography\",\n \"german\",\n \"history\",\n \"latin\",\n \"literacy\",\n \"maths\",\n \"music\",\n \"personal-social-and-emotional-development\",\n \"physical-education\",\n \"rshe-pshe\",\n \"religious-education\",\n \"science\",\n \"biology\",\n \"chemistry\",\n \"combined-science\",\n \"physics\",\n \"spanish\",\n \"understanding-the-world\",\n \"specialist\",\n \"communication-and-language\",\n \"creative-arts\",\n \"independent-living\",\n \"numeracy\",\n \"physical-development\",\n \"therapies\",\n \"occupational-therapy\",\n \"physical-therapy\",\n \"sensory-integration\",\n \"speech-and-language-therapy\",\n \"testing-not-for-publication\",\n \"cooking-nutrition\",\n]);\n"],"names":["publishedState","z","literal","newState","migrationState","timestampsSchema","object","created_at","string","updated_at","_stateSchema","union","_cohortSchema","enum","phaseSlugs","phaseDescriptions","phases","keystages","keystageSlugs","keystageDescriptions","years","yearSlugs","yearDescriptions","tiers","tierSlugs","tierDescriptions","pathways","pathwaySlugs","pathwayDescriptions","examboardSlugs","examboards","examboardDescriptions","subjects","subjectSlugs"],"mappings":"kCAEO,MAAMA,EAAiBC,EAAAA,EAAEC,QAAQ,aAC3BC,EAAWF,EAAAA,EAAEC,QAAQ,OACrBE,EAAiBH,EAAAA,EAAEC,QAAQ,aAE3BG,EAAmBJ,EAAAA,EAAEK,OAAO,CACvCC,WAAYN,EAAAA,EAAEO,SACdC,WAAYR,EAAAA,EAAEO,WAGHE,EAAeT,EAAAA,EAAEU,MAAM,CAACX,EAAgBG,EAAUC,IAClDQ,EAAgBX,EAAAA,EAAEY,KAAK,CAClC,YACA,YACA,YACA,MAGWC,EAAab,EAAAA,EAAEY,KAAK,CAAC,aAAc,UAAW,cAC9CE,EAAoBd,EAAAA,EAAEY,KAAK,CACtC,+BACA,UACA,cAEWG,EAASf,EAAAA,EAAEY,KAAK,CAAC,aAAc,UAAW,cAE1CI,EAAYhB,EAAAA,EAAEY,KAAK,CAC9B,MACA,MACA,MACA,MACA,OACA,mBAEWK,EAAgBjB,EAAAA,EAAEY,KAAK,CAClC,MACA,MACA,MACA,MACA,+BACA,WAEWM,EAAuBlB,EAAAA,EAAEY,KAAK,CACzC,cACA,cACA,cACA,cACA,+BACA,mBAGWO,EAAQnB,EAAAA,EAAEY,KAAK,CAC1B,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,KACA,KACA,KACA,KACA,IACA,QAEWQ,EAAYpB,EAAAA,EAAEY,KAAK,CAC9B,YACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,UACA,cAEWS,EAAmBrB,EAAAA,EAAEY,KAAK,CACrC,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,UACA,YACA,cAGWU,EAAQtB,EAAAA,EAAEY,KAAK,CAAC,OAAQ,aAAc,WACtCW,EAAYvB,EAAAA,EAAEY,KAAK,CAAC,OAAQ,aAAc,WAC1CY,EAAmBxB,EAAAA,EAAEY,KAAK,CAAC,OAAQ,aAAc,WAEjDa,EAAWzB,EAAAA,EAAEY,KAAK,CAAC,OAAQ,SAC3Bc,EAAe1B,EAAAA,EAAEY,KAAK,CAAC,OAAQ,SAC/Be,EAAsB3B,EAAAA,EAAEY,KAAK,CAAC,OAAQ,SAEtCgB,EAAiB5B,EAAAA,EAAEY,KAAK,CACnC,MACA,UACA,SACA,MACA,OACA,aAEWiB,EAAa7B,EAAAA,EAAEY,KAAK,CAC/B,MACA,UACA,SACA,MACA,OACA,cAEWkB,EAAwB9B,EAAAA,EAAEY,KAAK,CAC1C,yCACA,UACA,SACA,yCACA,kCACA,cAGWmB,EAAW/B,EAAAA,EAAEY,KAAK,CAC7B,uBACA,iBACA,cACA,YACA,mBACA,wBACA,QACA,UACA,kBACA,+BACA,mBACA,6BACA,sBACA,SACA,YACA,SACA,UACA,QACA,WACA,QACA,QACA,6CACA,qBACA,cACA,sBACA,UACA,UACA,YACA,mBACA,UACA,UACA,0BACA,aACA,6BACA,gBACA,qBACA,WACA,uBACA,YACA,uBACA,mBACA,sBACA,8BACA,kBACA,0BAEWoB,EAAehC,EAAAA,EAAEY,KAAK,CACjC,qBACA,MACA,cACA,YACA,oBACA,QACA,UACA,kBACA,+BACA,mBACA,6BACA,sBACA,SACA,YACA,SACA,UACA,QACA,WACA,QACA,QACA,4CACA,qBACA,YACA,sBACA,UACA,UACA,YACA,mBACA,UACA,UACA,0BACA,aACA,6BACA,gBACA,qBACA,WACA,uBACA,YACA,uBACA,mBACA,sBACA,8BACA,8BACA"}
|
|
1
|
+
{"version":3,"file":"base.schema.cjs","sources":["../../../../../../src/schema/public/components/base/base.schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const publishedState = z.literal(\"published\");\nexport const newState = z.literal(\"new\");\nexport const migrationState = z.literal(\"migration\");\n\nexport const timestampsSchema = z.object({\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport const _stateSchema = z.union([publishedState, newState, migrationState]);\nexport const _cohortSchema = z.enum([\n \"2020-2023\",\n \"2023-2024\",\n \"2024-2025\",\n \"0\",\n]);\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([\n \"KS1\",\n \"KS2\",\n \"KS3\",\n \"KS4\",\n \"EYFS\",\n \"All key stages\",\n]);\nexport const keystageSlugs = z.enum([\n \"ks1\",\n \"ks2\",\n \"ks3\",\n \"ks4\",\n \"early-years-foundation-stage\",\n \"all-ks\",\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 \"All Key Stages\",\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 \"All\",\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 \"all-years\",\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 \"All years\",\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 pathways = z.enum([\"Core\", \"GCSE\"]);\nexport const pathwaySlugs = z.enum([\"core\", \"gcse\"]);\nexport const pathwayDescriptions = z.enum([\"Core\", \"GCSE\"]);\n\nexport const examboardSlugs = z.enum([\n \"aqa\",\n \"edexcel\",\n \"eduqas\",\n \"ocr\",\n \"wjec\",\n \"edexcelb\",\n]);\nexport const examboards = z.enum([\n \"AQA\",\n \"Edexcel\",\n \"Eduqas\",\n \"OCR\",\n \"WJEC\",\n \"Edexcel B\",\n]);\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 \"Edexcel B\",\n]);\n\nexport const subjects = z.enum([\n \"Computing (non-GCSE)\",\n \"Art and design\",\n \"Citizenship\",\n \"Computing\",\n \"Computer Science\",\n \"Design and technology\",\n \"Drama\",\n \"English\",\n \"English grammar\",\n \"English reading for pleasure\",\n \"English spelling\",\n \"Expressive arts and design\",\n \"Financial education\",\n \"French\",\n \"Geography\",\n \"German\",\n \"History\",\n \"Latin\",\n \"Literacy\",\n \"Maths\",\n \"Music\",\n \"Personal, social and emotional development\",\n \"Physical education\",\n \"RSHE (PSHE)\",\n \"Religious education\",\n \"Rule of law\",\n \"Science\",\n \"Biology\",\n \"Chemistry\",\n \"Combined science\",\n \"Physics\",\n \"Spanish\",\n \"Understanding the world\",\n \"Specialist\",\n \"Communication and language\",\n \"Creative arts\",\n \"Independent living\",\n \"Numeracy\",\n \"Physical development\",\n \"Therapies\",\n \"Occupational therapy\",\n \"Physical therapy\",\n \"Sensory integration\",\n \"Speech and language therapy\",\n \"QA testing only\",\n \"Cooking and nutrition\",\n]);\nexport const subjectSlugs = z.enum([\n \"computing-non-gcse\",\n \"art\",\n \"citizenship\",\n \"computing\",\n \"design-technology\",\n \"drama\",\n \"english\",\n \"english-grammar\",\n \"english-reading-for-pleasure\",\n \"english-spelling\",\n \"expressive-arts-and-design\",\n \"financial-education\",\n \"french\",\n \"geography\",\n \"german\",\n \"history\",\n \"latin\",\n \"literacy\",\n \"maths\",\n \"music\",\n \"personal-social-and-emotional-development\",\n \"physical-education\",\n \"rshe-pshe\",\n \"religious-education\",\n \"rule-of-law\",\n \"science\",\n \"biology\",\n \"chemistry\",\n \"combined-science\",\n \"physics\",\n \"spanish\",\n \"understanding-the-world\",\n \"specialist\",\n \"communication-and-language\",\n \"creative-arts\",\n \"independent-living\",\n \"numeracy\",\n \"physical-development\",\n \"therapies\",\n \"occupational-therapy\",\n \"physical-therapy\",\n \"sensory-integration\",\n \"speech-and-language-therapy\",\n \"testing-not-for-publication\",\n \"cooking-nutrition\",\n]);\n"],"names":["publishedState","z","literal","newState","migrationState","timestampsSchema","object","created_at","string","updated_at","_stateSchema","union","_cohortSchema","enum","phaseSlugs","phaseDescriptions","phases","keystages","keystageSlugs","keystageDescriptions","years","yearSlugs","yearDescriptions","tiers","tierSlugs","tierDescriptions","pathways","pathwaySlugs","pathwayDescriptions","examboardSlugs","examboards","examboardDescriptions","subjects","subjectSlugs"],"mappings":"kCAEO,MAAMA,EAAiBC,EAAAA,EAAEC,QAAQ,aAC3BC,EAAWF,EAAAA,EAAEC,QAAQ,OACrBE,EAAiBH,EAAAA,EAAEC,QAAQ,aAE3BG,EAAmBJ,EAAAA,EAAEK,OAAO,CACvCC,WAAYN,EAAAA,EAAEO,SACdC,WAAYR,EAAAA,EAAEO,WAGHE,EAAeT,EAAAA,EAAEU,MAAM,CAACX,EAAgBG,EAAUC,IAClDQ,EAAgBX,EAAAA,EAAEY,KAAK,CAClC,YACA,YACA,YACA,MAGWC,EAAab,EAAAA,EAAEY,KAAK,CAAC,aAAc,UAAW,cAC9CE,EAAoBd,EAAAA,EAAEY,KAAK,CACtC,+BACA,UACA,cAEWG,EAASf,EAAAA,EAAEY,KAAK,CAAC,aAAc,UAAW,cAE1CI,EAAYhB,EAAAA,EAAEY,KAAK,CAC9B,MACA,MACA,MACA,MACA,OACA,mBAEWK,EAAgBjB,EAAAA,EAAEY,KAAK,CAClC,MACA,MACA,MACA,MACA,+BACA,WAEWM,EAAuBlB,EAAAA,EAAEY,KAAK,CACzC,cACA,cACA,cACA,cACA,+BACA,mBAGWO,EAAQnB,EAAAA,EAAEY,KAAK,CAC1B,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,KACA,KACA,KACA,KACA,IACA,QAEWQ,EAAYpB,EAAAA,EAAEY,KAAK,CAC9B,YACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,UACA,cAEWS,EAAmBrB,EAAAA,EAAEY,KAAK,CACrC,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,UACA,YACA,cAGWU,EAAQtB,EAAAA,EAAEY,KAAK,CAAC,OAAQ,aAAc,WACtCW,EAAYvB,EAAAA,EAAEY,KAAK,CAAC,OAAQ,aAAc,WAC1CY,EAAmBxB,EAAAA,EAAEY,KAAK,CAAC,OAAQ,aAAc,WAEjDa,EAAWzB,EAAAA,EAAEY,KAAK,CAAC,OAAQ,SAC3Bc,EAAe1B,EAAAA,EAAEY,KAAK,CAAC,OAAQ,SAC/Be,EAAsB3B,EAAAA,EAAEY,KAAK,CAAC,OAAQ,SAEtCgB,EAAiB5B,EAAAA,EAAEY,KAAK,CACnC,MACA,UACA,SACA,MACA,OACA,aAEWiB,EAAa7B,EAAAA,EAAEY,KAAK,CAC/B,MACA,UACA,SACA,MACA,OACA,cAEWkB,EAAwB9B,EAAAA,EAAEY,KAAK,CAC1C,yCACA,UACA,SACA,yCACA,kCACA,cAGWmB,EAAW/B,EAAAA,EAAEY,KAAK,CAC7B,uBACA,iBACA,cACA,YACA,mBACA,wBACA,QACA,UACA,kBACA,+BACA,mBACA,6BACA,sBACA,SACA,YACA,SACA,UACA,QACA,WACA,QACA,QACA,6CACA,qBACA,cACA,sBACA,cACA,UACA,UACA,YACA,mBACA,UACA,UACA,0BACA,aACA,6BACA,gBACA,qBACA,WACA,uBACA,YACA,uBACA,mBACA,sBACA,8BACA,kBACA,0BAEWoB,EAAehC,EAAAA,EAAEY,KAAK,CACjC,qBACA,MACA,cACA,YACA,oBACA,QACA,UACA,kBACA,+BACA,mBACA,6BACA,sBACA,SACA,YACA,SACA,UACA,QACA,WACA,QACA,QACA,4CACA,qBACA,YACA,sBACA,cACA,UACA,UACA,YACA,mBACA,UACA,UACA,0BACA,aACA,6BACA,gBACA,qBACA,WACA,uBACA,YACA,uBACA,mBACA,sBACA,8BACA,8BACA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function e(e){return e&&e.__esModule?e:{default:e}}var l=e(require("camelcase-keys"));const s=({overrides:e={}}={})=>({lesson_id:1,lesson_uid:"lesson-uid",title:"lesson-title",description:"lesson-description",slug:"lesson-slug",pupil_lesson_outcome:"pupil-lesson-outcome",phonics_outcome:null,key_learning_points:[{key_learning_point:"point 1"}],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,asset_id_worksheet_answers:null,asset_id_supplementary_asset:null,asset_id_lesson_guide:null,copyright_content:
|
|
1
|
+
"use strict";function e(e){return e&&e.__esModule?e:{default:e}}var l=e(require("camelcase-keys"));const s=({overrides:e={}}={})=>({lesson_id:1,lesson_uid:"lesson-uid",title:"lesson-title",description:"lesson-description",slug:"lesson-slug",pupil_lesson_outcome:"pupil-lesson-outcome",phonics_outcome:null,key_learning_points:[{key_learning_point:"point 1"}],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,asset_id_worksheet_answers:null,asset_id_supplementary_asset:null,asset_id_lesson_guide:null,copyright_content:[{copyright_info:"info about copyright"}],_state:"published",_cohort:"2023-2024",deprecated_fields:null,updated_at:"2024-02-28T08:09:20.247619+00:00",created_at:"2024-02-28T08:09:20.247619+00:00",expiration_date:null,lesson_outline:null,media_clips:null,lesson_release_date:null,...e}),n=({overrides:e={}}={})=>({...l.default(s(),{deep:!0}),...e}),t=s,i=n;exports.lessonDataFixture=t,exports.lessonDataFixtureCamel=i,exports.lessonFixture=s,exports.lessonFixtureCamel=n;
|
|
2
2
|
//# sourceMappingURL=lesson.fixture.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lesson.fixture.cjs","sources":["../../../../../src/schema/public/lesson/lesson.fixture.ts"],"sourcesContent":["import camelcaseKeys from \"camelcase-keys\";\n\nimport type { Lesson, LessonCamel } from \"@/schema/public/lesson/lesson.schema\";\n\nexport const lessonFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<Lesson>;\n} = {}): Lesson => ({\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 phonics_outcome: null,\n key_learning_points: [{ key_learning_point: \"point 1\" }],\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 asset_id_worksheet_answers: null,\n asset_id_supplementary_asset: null,\n asset_id_lesson_guide: null,\n copyright_content:
|
|
1
|
+
{"version":3,"file":"lesson.fixture.cjs","sources":["../../../../../src/schema/public/lesson/lesson.fixture.ts"],"sourcesContent":["import camelcaseKeys from \"camelcase-keys\";\n\nimport type { Lesson, LessonCamel } from \"@/schema/public/lesson/lesson.schema\";\n\nexport const lessonFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<Lesson>;\n} = {}): Lesson => ({\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 phonics_outcome: null,\n key_learning_points: [{ key_learning_point: \"point 1\" }],\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 asset_id_worksheet_answers: null,\n asset_id_supplementary_asset: null,\n asset_id_lesson_guide: null,\n copyright_content: [\n {\n copyright_info: \"info about copyright\",\n }\n ],\n _state: \"published\",\n _cohort: \"2023-2024\",\n deprecated_fields: null,\n updated_at: \"2024-02-28T08:09:20.247619+00:00\",\n created_at: \"2024-02-28T08:09:20.247619+00:00\",\n expiration_date: null,\n lesson_outline: null,\n media_clips: null,\n lesson_release_date: null,\n ...overrides,\n});\n\nexport const lessonFixtureCamel = ({\n overrides = {},\n}: {\n overrides?: Partial<LessonCamel>;\n} = {}): LessonCamel => ({\n ...camelcaseKeys(lessonFixture(), { deep: true }),\n ...overrides,\n});\n\n// Backwards compatibility exports\n/**\n * @deprecated Use lessonFixture instead.\n */\nexport const lessonDataFixture = lessonFixture;\nexport const lessonDataFixtureCamel = lessonFixtureCamel;\n"],"names":["lessonFixture","overrides","lesson_id","lesson_uid","title","description","slug","pupil_lesson_outcome","phonics_outcome","key_learning_points","key_learning_point","equipment_and_resources","content_guidance_details","content_guidance","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","asset_id_worksheet_answers","asset_id_supplementary_asset","asset_id_lesson_guide","copyright_content","copyright_info","_state","_cohort","deprecated_fields","updated_at","created_at","expiration_date","lesson_outline","media_clips","lesson_release_date","lessonFixtureCamel","camelcaseKeys","deep","lessonDataFixture","lessonDataFixtureCamel"],"mappings":"mGAIO,MAAMA,EAAgB,EAC3BC,YAAY,CAAA,GAGV,CAAA,KAAE,CACJC,UAAW,EACXC,WAAY,aACZC,MAAO,eACPC,YAAa,qBACbC,KAAM,cACNC,qBAAsB,uBACtBC,gBAAiB,KACjBC,oBAAqB,CAAC,CAAEC,mBAAoB,YAC5CC,wBAAyB,KACzBC,yBAA0B,KAC1BC,iBAAkB,KAClBC,kBAAmB,KACnBC,uBAAwB,KACxBC,mCAAoC,KACpCC,SAAU,KACVC,SAAU,KACVC,uBAAwB,KACxBC,gBAAiB,KACjBC,aAAc,KACdC,mBAAoB,KACpBC,mBAAoB,KACpBC,2BAA4B,KAC5BC,6BAA8B,KAC9BC,sBAAuB,KACvBC,kBAAmB,CACjB,CACEC,eAAgB,yBAGpBC,OAAQ,YACRC,QAAS,YACTC,kBAAmB,KACnBC,WAAY,mCACZC,WAAY,mCACZC,gBAAiB,KACjBC,eAAgB,KAChBC,YAAa,KACbC,oBAAqB,QAClBpC,IAGQqC,EAAqB,EAChCrC,YAAY,CAAA,GAGV,CAAA,KAAE,IACDsC,EAAAA,QAAcvC,IAAiB,CAAEwC,MAAM,OACvCvC,IAOQwC,EAAoBzC,EACpB0C,EAAyBJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("zod"),s=require("zod-to-camel-case"),n=require("../components/base/base.schema.cjs"),t=require("../components/keyLearningPoints/keyLearningPoints.schema.cjs"),a=require("../components/keywords/keywords.schema.cjs"),l=require("../components/equipmentAndResources/equipmentAndResources.schema.cjs"),i=require("../components/lessonOutline/lessonOutline.schema.cjs"),r=require("../components/mediaClips/mediaClips.schema.cjs");function o(e){return e&&e.__esModule?e:{default:e}}var _=o(s);const u=n.timestampsSchema.extend({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(),phonics_outcome:e.z.string().nullable(),key_learning_points:e.z.array(t.keyLearningPointsSchema).nullable(),equipment_and_resources:e.z.array(l.equipmentAndResourcesSchema).nullable(),content_guidance_details:e.z.array(e.z.object({details:e.z.string()})).nullable(),content_guidance:e.z.array(e.z.number()).nullable(),copyright_content:e.z.array(e.z.object({})).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(a.keywordsSchema).nullable(),video_id:e.z.number().nullable(),sign_language_video_id:e.z.number().nullable(),quiz_id_starter:e.z.number().nullable(),quiz_id_exit:e.z.number().nullable(),asset_id_slidedeck:e.z.number().nullable(),asset_id_worksheet:e.z.number().nullable(),asset_id_worksheet_answers:e.z.number().nullable(),asset_id_supplementary_asset:e.z.number().nullable(),asset_id_lesson_guide:e.z.number().nullable(),expiration_date:e.z.string().nullable(),lesson_outline:e.z.array(i.lessonOutlineSchema).nullish(),media_clips:r.mediaClipsRecordSchema.nullish(),deprecated_fields:e.z.record(e.z.string(),e.z.unknown()).nullable(),_state:n._stateSchema,_cohort:n._cohortSchema,lesson_release_date:e.z.string().nullish()}),c=u.pick({lesson_id:!0,lesson_uid:!0,phonics_outcome:!0,key_learning_points:!0,equipment_and_resources:!0,content_guidance_details:!0,content_guidance:!0,copyright_content:!0,supervision_level:!0,thirdpartycontent_list:!0,misconceptions_and_common_mistakes:!0,keywords:!0,video_id:!0,sign_language_video_id:!0,quiz_id_starter:!0,quiz_id_exit:!0,asset_id_slidedeck:!0,asset_id_worksheet:!0,asset_id_worksheet_answers:!0,asset_id_supplementary_asset:!0,asset_id_lesson_guide:!0,expiration_date:!0,lesson_outline:!0,media_clips:!0,deprecated_fields:!0,_cohort:!0,lesson_release_date:!0}).extend({_state:n.newState,pupil_lesson_outcome:e.z.string().nullable()}),d=u.extend({_state:n.publishedState}),m=_.default(u),p=_.default(c),z=_.default(d),b=u,h=u;exports.lessonData=b,exports.lessonDataSchema=h,exports.lessonNewSchema=c,exports.lessonNewSchemaCamel=p,exports.lessonPublishedSchema=d,exports.lessonPublishedSchemaCamel=z,exports.lessonSchema=u,exports.lessonSchemaCamel=m;
|
|
1
|
+
"use strict";var e=require("zod"),s=require("zod-to-camel-case"),n=require("../components/base/base.schema.cjs"),t=require("../components/keyLearningPoints/keyLearningPoints.schema.cjs"),a=require("../components/keywords/keywords.schema.cjs"),l=require("../components/equipmentAndResources/equipmentAndResources.schema.cjs"),i=require("../components/lessonOutline/lessonOutline.schema.cjs"),r=require("../components/mediaClips/mediaClips.schema.cjs");function o(e){return e&&e.__esModule?e:{default:e}}var _=o(s);const u=n.timestampsSchema.extend({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(),phonics_outcome:e.z.string().nullable(),key_learning_points:e.z.array(t.keyLearningPointsSchema).nullable(),equipment_and_resources:e.z.array(l.equipmentAndResourcesSchema).nullable(),content_guidance_details:e.z.array(e.z.object({details:e.z.string()})).nullable(),content_guidance:e.z.array(e.z.number()).nullable(),copyright_content:e.z.array(e.z.object({copyright_info:e.z.string()})).nullable(),supervision_level:e.z.string().nullable(),thirdpartycontent_list:e.z.array(e.z.number()).nullable(),misconceptions_and_common_mistakes:e.z.array(e.z.object({})).nullable(),keywords:e.z.array(a.keywordsSchema).nullable(),video_id:e.z.number().nullable(),sign_language_video_id:e.z.number().nullable(),quiz_id_starter:e.z.number().nullable(),quiz_id_exit:e.z.number().nullable(),asset_id_slidedeck:e.z.number().nullable(),asset_id_worksheet:e.z.number().nullable(),asset_id_worksheet_answers:e.z.number().nullable(),asset_id_supplementary_asset:e.z.number().nullable(),asset_id_lesson_guide:e.z.number().nullable(),expiration_date:e.z.string().nullable(),lesson_outline:e.z.array(i.lessonOutlineSchema).nullish(),media_clips:r.mediaClipsRecordSchema.nullish(),deprecated_fields:e.z.record(e.z.string(),e.z.unknown()).nullable(),_state:n._stateSchema,_cohort:n._cohortSchema,lesson_release_date:e.z.string().nullish()}),c=u.pick({lesson_id:!0,lesson_uid:!0,phonics_outcome:!0,key_learning_points:!0,equipment_and_resources:!0,content_guidance_details:!0,content_guidance:!0,copyright_content:!0,supervision_level:!0,thirdpartycontent_list:!0,misconceptions_and_common_mistakes:!0,keywords:!0,video_id:!0,sign_language_video_id:!0,quiz_id_starter:!0,quiz_id_exit:!0,asset_id_slidedeck:!0,asset_id_worksheet:!0,asset_id_worksheet_answers:!0,asset_id_supplementary_asset:!0,asset_id_lesson_guide:!0,expiration_date:!0,lesson_outline:!0,media_clips:!0,deprecated_fields:!0,_cohort:!0,lesson_release_date:!0}).extend({_state:n.newState,pupil_lesson_outcome:e.z.string().nullable()}),d=u.extend({_state:n.publishedState}),m=_.default(u),p=_.default(c),z=_.default(d),b=u,h=u;exports.lessonData=b,exports.lessonDataSchema=h,exports.lessonNewSchema=c,exports.lessonNewSchemaCamel=p,exports.lessonPublishedSchema=d,exports.lessonPublishedSchemaCamel=z,exports.lessonSchema=u,exports.lessonSchemaCamel=m;
|
|
2
2
|
//# sourceMappingURL=lesson.schema.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lesson.schema.cjs","sources":["../../../../../src/schema/public/lesson/lesson.schema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport zodToCamelCase from \"zod-to-camel-case\";\n\nimport {\n _stateSchema,\n _cohortSchema,\n timestampsSchema,\n newState,\n publishedState,\n} from \"@/schema/public/components/base/base.schema\";\nimport { keyLearningPointsSchema } from \"@/schema/public/components/keyLearningPoints/keyLearningPoints.schema\";\nimport { keywordsSchema } from \"@/schema/public/components/keywords/keywords.schema\";\nimport { equipmentAndResourcesSchema } from \"@/schema/public/components/equipmentAndResources/equipmentAndResources.schema\";\nimport { lessonOutlineSchema } from \"@/schema/public/components/lessonOutline/lessonOutline.schema\";\nimport { mediaClipsRecordSchema } from \"@/schema/public/components/mediaClips/mediaClips.schema\";\n\nexport const lessonSchema = timestampsSchema.extend({\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 phonics_outcome: z.string().nullable(),\n key_learning_points: z.array(keyLearningPointsSchema).nullable(),\n equipment_and_resources: z.array(equipmentAndResourcesSchema).nullable(),\n content_guidance_details: z\n .array(z.object({ details: z.string() }))\n .nullable(),\n content_guidance: z.array(z.number()).nullable(),\n copyright_content: z.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(keywordsSchema).nullable(),\n video_id: z.number().nullable(),\n sign_language_video_id: z.number().nullable(),\n quiz_id_starter: z.number().nullable(),\n quiz_id_exit: z.number().nullable(),\n asset_id_slidedeck: z.number().nullable(),\n asset_id_worksheet: z.number().nullable(),\n asset_id_worksheet_answers: z.number().nullable(),\n asset_id_supplementary_asset: z.number().nullable(),\n asset_id_lesson_guide: z.number().nullable(),\n expiration_date: z.string().nullable(),\n lesson_outline: z.array(lessonOutlineSchema).nullish(),\n media_clips: mediaClipsRecordSchema.nullish(),\n deprecated_fields: z.record(z.string(), z.unknown()).nullable(),\n _state: _stateSchema,\n _cohort: _cohortSchema,\n lesson_release_date: z.string().nullish(),\n});\nexport type Lesson = z.infer<typeof lessonSchema>;\n\nexport const lessonNewSchema = lessonSchema\n .pick({\n lesson_id: true,\n lesson_uid: true,\n phonics_outcome: true,\n key_learning_points: true,\n equipment_and_resources: true,\n content_guidance_details: true,\n content_guidance: true,\n copyright_content: true,\n supervision_level: true,\n thirdpartycontent_list: true,\n misconceptions_and_common_mistakes: true,\n keywords: true,\n video_id: true,\n sign_language_video_id: true,\n quiz_id_starter: true,\n quiz_id_exit: true,\n asset_id_slidedeck: true,\n asset_id_worksheet: true,\n asset_id_worksheet_answers: true,\n asset_id_supplementary_asset: true,\n asset_id_lesson_guide: true,\n expiration_date: true,\n lesson_outline: true,\n media_clips: true,\n deprecated_fields: true,\n _cohort: true,\n lesson_release_date: true,\n })\n .extend({\n _state: newState,\n pupil_lesson_outcome: z.string().nullable(),\n });\n\nexport const lessonPublishedSchema = lessonSchema.extend({\n _state: publishedState,\n});\n\nexport type LessonNew = z.infer<typeof lessonNewSchema>;\nexport type LessonPublished = z.infer<typeof lessonPublishedSchema>;\n\nexport const lessonSchemaCamel = zodToCamelCase(lessonSchema);\nexport type LessonCamel = z.infer<typeof lessonSchemaCamel>;\n\nexport const lessonNewSchemaCamel = zodToCamelCase(lessonNewSchema);\nexport type LessonNewCamel = z.infer<typeof lessonNewSchemaCamel>;\n\nexport const lessonPublishedSchemaCamel = zodToCamelCase(lessonPublishedSchema);\nexport type LessonPublishedCamel = z.infer<typeof lessonPublishedSchemaCamel>;\n\n// Backwards compatibility exports\n/**\n * @deprecated Use lessonSchema instead.\n */\nexport const lessonData = lessonSchema;\nexport const lessonDataSchema = lessonSchema;\nexport type LessonData = Lesson;\n"],"names":["lessonSchema","timestampsSchema","extend","lesson_id","z","number","lesson_uid","string","slug","title","description","pupil_lesson_outcome","phonics_outcome","nullable","key_learning_points","array","keyLearningPointsSchema","equipment_and_resources","equipmentAndResourcesSchema","content_guidance_details","object","details","content_guidance","copyright_content","supervision_level","thirdpartycontent_list","misconceptions_and_common_mistakes","keywords","keywordsSchema","video_id","sign_language_video_id","quiz_id_starter","quiz_id_exit","asset_id_slidedeck","asset_id_worksheet","asset_id_worksheet_answers","asset_id_supplementary_asset","asset_id_lesson_guide","expiration_date","lesson_outline","lessonOutlineSchema","nullish","media_clips","mediaClipsRecordSchema","deprecated_fields","record","unknown","_state","_stateSchema","_cohort","_cohortSchema","lesson_release_date","lessonNewSchema","pick","newState","lessonPublishedSchema","publishedState","lessonSchemaCamel","zodToCamelCase","lessonNewSchemaCamel","lessonPublishedSchemaCamel","lessonData","lessonDataSchema"],"mappings":"igBAgBO,MAAMA,EAAeC,EAAAA,iBAAiBC,OAAO,CAClDC,UAAWC,EAAAA,EAAEC,SACbC,WAAYF,EAAAA,EAAEG,SACdC,KAAMJ,EAAAA,EAAEG,SACRE,MAAOL,EAAAA,EAAEG,SACTG,YAAaN,EAAAA,EAAEG,SACfI,qBAAsBP,EAAAA,EAAEG,SACxBK,gBAAiBR,EAAAA,EAAEG,SAASM,WAC5BC,oBAAqBV,EAAAA,EAAEW,MAAMC,EAAAA,yBAAyBH,WACtDI,wBAAyBb,EAAAA,EAAEW,MAAMG,EAAAA,6BAA6BL,WAC9DM,yBAA0Bf,EAAAA,EACvBW,MAAMX,EAAAA,EAAEgB,OAAO,CAAEC,QAASjB,EAAAA,EAAEG,YAC5BM,WACHS,iBAAkBlB,EAAAA,EAAEW,MAAMX,EAAAA,EAAEC,UAAUQ,WACtCU,kBAAmBnB,EAAAA,EAAEW,MAAMX,EAAAA,EAAEgB,OAAO,
|
|
1
|
+
{"version":3,"file":"lesson.schema.cjs","sources":["../../../../../src/schema/public/lesson/lesson.schema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport zodToCamelCase from \"zod-to-camel-case\";\n\nimport {\n _stateSchema,\n _cohortSchema,\n timestampsSchema,\n newState,\n publishedState,\n} from \"@/schema/public/components/base/base.schema\";\nimport { keyLearningPointsSchema } from \"@/schema/public/components/keyLearningPoints/keyLearningPoints.schema\";\nimport { keywordsSchema } from \"@/schema/public/components/keywords/keywords.schema\";\nimport { equipmentAndResourcesSchema } from \"@/schema/public/components/equipmentAndResources/equipmentAndResources.schema\";\nimport { lessonOutlineSchema } from \"@/schema/public/components/lessonOutline/lessonOutline.schema\";\nimport { mediaClipsRecordSchema } from \"@/schema/public/components/mediaClips/mediaClips.schema\";\n\nexport const lessonSchema = timestampsSchema.extend({\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 phonics_outcome: z.string().nullable(),\n key_learning_points: z.array(keyLearningPointsSchema).nullable(),\n equipment_and_resources: z.array(equipmentAndResourcesSchema).nullable(),\n content_guidance_details: z\n .array(z.object({ details: z.string() }))\n .nullable(),\n content_guidance: z.array(z.number()).nullable(),\n copyright_content: z.array(z.object({\n copyright_info: z.string()\n })).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(keywordsSchema).nullable(),\n video_id: z.number().nullable(),\n sign_language_video_id: z.number().nullable(),\n quiz_id_starter: z.number().nullable(),\n quiz_id_exit: z.number().nullable(),\n asset_id_slidedeck: z.number().nullable(),\n asset_id_worksheet: z.number().nullable(),\n asset_id_worksheet_answers: z.number().nullable(),\n asset_id_supplementary_asset: z.number().nullable(),\n asset_id_lesson_guide: z.number().nullable(),\n expiration_date: z.string().nullable(),\n lesson_outline: z.array(lessonOutlineSchema).nullish(),\n media_clips: mediaClipsRecordSchema.nullish(),\n deprecated_fields: z.record(z.string(), z.unknown()).nullable(),\n _state: _stateSchema,\n _cohort: _cohortSchema,\n lesson_release_date: z.string().nullish(),\n});\nexport type Lesson = z.infer<typeof lessonSchema>;\n\nexport const lessonNewSchema = lessonSchema\n .pick({\n lesson_id: true,\n lesson_uid: true,\n phonics_outcome: true,\n key_learning_points: true,\n equipment_and_resources: true,\n content_guidance_details: true,\n content_guidance: true,\n copyright_content: true,\n supervision_level: true,\n thirdpartycontent_list: true,\n misconceptions_and_common_mistakes: true,\n keywords: true,\n video_id: true,\n sign_language_video_id: true,\n quiz_id_starter: true,\n quiz_id_exit: true,\n asset_id_slidedeck: true,\n asset_id_worksheet: true,\n asset_id_worksheet_answers: true,\n asset_id_supplementary_asset: true,\n asset_id_lesson_guide: true,\n expiration_date: true,\n lesson_outline: true,\n media_clips: true,\n deprecated_fields: true,\n _cohort: true,\n lesson_release_date: true,\n })\n .extend({\n _state: newState,\n pupil_lesson_outcome: z.string().nullable(),\n });\n\nexport const lessonPublishedSchema = lessonSchema.extend({\n _state: publishedState,\n});\n\nexport type LessonNew = z.infer<typeof lessonNewSchema>;\nexport type LessonPublished = z.infer<typeof lessonPublishedSchema>;\n\nexport const lessonSchemaCamel = zodToCamelCase(lessonSchema);\nexport type LessonCamel = z.infer<typeof lessonSchemaCamel>;\n\nexport const lessonNewSchemaCamel = zodToCamelCase(lessonNewSchema);\nexport type LessonNewCamel = z.infer<typeof lessonNewSchemaCamel>;\n\nexport const lessonPublishedSchemaCamel = zodToCamelCase(lessonPublishedSchema);\nexport type LessonPublishedCamel = z.infer<typeof lessonPublishedSchemaCamel>;\n\n// Backwards compatibility exports\n/**\n * @deprecated Use lessonSchema instead.\n */\nexport const lessonData = lessonSchema;\nexport const lessonDataSchema = lessonSchema;\nexport type LessonData = Lesson;\n"],"names":["lessonSchema","timestampsSchema","extend","lesson_id","z","number","lesson_uid","string","slug","title","description","pupil_lesson_outcome","phonics_outcome","nullable","key_learning_points","array","keyLearningPointsSchema","equipment_and_resources","equipmentAndResourcesSchema","content_guidance_details","object","details","content_guidance","copyright_content","copyright_info","supervision_level","thirdpartycontent_list","misconceptions_and_common_mistakes","keywords","keywordsSchema","video_id","sign_language_video_id","quiz_id_starter","quiz_id_exit","asset_id_slidedeck","asset_id_worksheet","asset_id_worksheet_answers","asset_id_supplementary_asset","asset_id_lesson_guide","expiration_date","lesson_outline","lessonOutlineSchema","nullish","media_clips","mediaClipsRecordSchema","deprecated_fields","record","unknown","_state","_stateSchema","_cohort","_cohortSchema","lesson_release_date","lessonNewSchema","pick","newState","lessonPublishedSchema","publishedState","lessonSchemaCamel","zodToCamelCase","lessonNewSchemaCamel","lessonPublishedSchemaCamel","lessonData","lessonDataSchema"],"mappings":"igBAgBO,MAAMA,EAAeC,EAAAA,iBAAiBC,OAAO,CAClDC,UAAWC,EAAAA,EAAEC,SACbC,WAAYF,EAAAA,EAAEG,SACdC,KAAMJ,EAAAA,EAAEG,SACRE,MAAOL,EAAAA,EAAEG,SACTG,YAAaN,EAAAA,EAAEG,SACfI,qBAAsBP,EAAAA,EAAEG,SACxBK,gBAAiBR,EAAAA,EAAEG,SAASM,WAC5BC,oBAAqBV,EAAAA,EAAEW,MAAMC,EAAAA,yBAAyBH,WACtDI,wBAAyBb,EAAAA,EAAEW,MAAMG,EAAAA,6BAA6BL,WAC9DM,yBAA0Bf,EAAAA,EACvBW,MAAMX,EAAAA,EAAEgB,OAAO,CAAEC,QAASjB,EAAAA,EAAEG,YAC5BM,WACHS,iBAAkBlB,EAAAA,EAAEW,MAAMX,EAAAA,EAAEC,UAAUQ,WACtCU,kBAAmBnB,EAAAA,EAAEW,MAAMX,EAAAA,EAAEgB,OAAO,CAClCI,eAAgBpB,EAAAA,EAAEG,YAChBM,WACJY,kBAAmBrB,EAAAA,EAAEG,SAASM,WAC9Ba,uBAAwBtB,EAAAA,EAAEW,MAAMX,EAAAA,EAAEC,UAAUQ,WAC5Cc,mCAAoCvB,EAAAA,EAAEW,MAAMX,EAAAA,EAAEgB,OAAO,CAAA,IAAKP,WAC1De,SAAUxB,EAAAA,EAAEW,MAAMc,EAAAA,gBAAgBhB,WAClCiB,SAAU1B,EAAAA,EAAEC,SAASQ,WACrBkB,uBAAwB3B,EAAAA,EAAEC,SAASQ,WACnCmB,gBAAiB5B,EAAAA,EAAEC,SAASQ,WAC5BoB,aAAc7B,EAAAA,EAAEC,SAASQ,WACzBqB,mBAAoB9B,EAAAA,EAAEC,SAASQ,WAC/BsB,mBAAoB/B,EAAAA,EAAEC,SAASQ,WAC/BuB,2BAA4BhC,EAAAA,EAAEC,SAASQ,WACvCwB,6BAA8BjC,EAAAA,EAAEC,SAASQ,WACzCyB,sBAAuBlC,EAAAA,EAAEC,SAASQ,WAClC0B,gBAAiBnC,EAAAA,EAAEG,SAASM,WAC5B2B,eAAgBpC,EAAAA,EAAEW,MAAM0B,EAAAA,qBAAqBC,UAC7CC,YAAaC,EAAAA,uBAAuBF,UACpCG,kBAAmBzC,EAAAA,EAAE0C,OAAO1C,IAAEG,SAAUH,IAAE2C,WAAWlC,WACrDmC,OAAQC,EAAAA,aACRC,QAASC,EAAAA,cACTC,oBAAqBhD,EAAAA,EAAEG,SAASmC,YAIrBW,EAAkBrD,EAC5BsD,KAAK,CACJnD,WAAW,EACXG,YAAY,EACZM,iBAAiB,EACjBE,qBAAqB,EACrBG,yBAAyB,EACzBE,0BAA0B,EAC1BG,kBAAkB,EAClBC,mBAAmB,EACnBE,mBAAmB,EACnBC,wBAAwB,EACxBC,oCAAoC,EACpCC,UAAU,EACVE,UAAU,EACVC,wBAAwB,EACxBC,iBAAiB,EACjBC,cAAc,EACdC,oBAAoB,EACpBC,oBAAoB,EACpBC,4BAA4B,EAC5BC,8BAA8B,EAC9BC,uBAAuB,EACvBC,iBAAiB,EACjBC,gBAAgB,EAChBG,aAAa,EACbE,mBAAmB,EACnBK,SAAS,EACTE,qBAAqB,IAEtBlD,OAAO,CACN8C,OAAQO,EAAAA,SACR5C,qBAAsBP,EAAAA,EAAEG,SAASM,aAGxB2C,EAAwBxD,EAAaE,OAAO,CACvD8C,OAAQS,EAAAA,iBAMGC,EAAoBC,EAAAA,QAAe3D,GAGnC4D,EAAuBD,EAAAA,QAAeN,GAGtCQ,EAA6BF,EAAAA,QAAeH,GAO5CM,EAAa9D,EACb+D,EAAmB/D"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("zod"),s=require("zod-to-camel-case"),t=require("../../public/unit/unit.schema.cjs"),n=require("../../public/components/programmeFields/programmeFields.schema.cjs"),i=require("../components/actions/actions.schema.cjs"),a=require("../../public/components/staticLessonList/staticLessonList.schema.cjs");function
|
|
1
|
+
"use strict";var e=require("zod"),s=require("zod-to-camel-case"),t=require("../../public/unit/unit.schema.cjs"),n=require("../../public/components/programmeFields/programmeFields.schema.cjs"),i=require("../components/actions/actions.schema.cjs"),a=require("../../public/components/staticLessonList/staticLessonList.schema.cjs");function o(e){return e&&e.__esModule?e:{default:e}}var r=o(s);const c=e.z.object({base_slug:e.z.string(),unit_slug:e.z.string(),programme_slug:e.z.string(),is_legacy:e.z.boolean(),lesson_count:e.z.number(),lesson_sensitive_count:e.z.number(),lesson_expired_count:e.z.number(),unit_data:t.unitSchema,null_unitvariant_id:e.z.number(),programme_fields:n.programmeFieldsSchema,supplementary_data:e.z.object({unit_order:e.z.number(),static_lesson_list:a.staticLessonListSchema.nullish()}),expired:e.z.boolean(),actions:i.actionsSchema.nullish(),features:e.z.looseObject({}).optional().nullable()}),u=r.default(c);exports.syntheticUnitvariantsWithLessonIdsBaseSchema=c,exports.syntheticUnitvariantsWithLessonIdsBaseSchemaCamel=u;
|
|
2
2
|
//# sourceMappingURL=syntheticUnitvariantsWithLessonIdsBase.schema.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syntheticUnitvariantsWithLessonIdsBase.schema.cjs","sources":["../../../../../src/schema/published/syntheticUnitvariantsWithLessonIdsBase/syntheticUnitvariantsWithLessonIdsBase.schema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport zodToCamelCase from \"zod-to-camel-case\";\n\nimport { unitSchema } from \"@/schema/public/unit/unit.schema\";\nimport { programmeFieldsSchema } from \"@/schema/public/components/programmeFields/programmeFields.schema\";\nimport { actionsSchema } from \"@/schema/published/components/actions/actions.schema\";\nimport { staticLessonListSchema } from \"@/schema/public/components/staticLessonList/staticLessonList.schema\";\n\nexport const syntheticUnitvariantsWithLessonIdsBaseSchema = z.object({\n base_slug: z.string(),\n unit_slug: z.string(),\n programme_slug: z.string(),\n is_legacy: z.boolean(),\n lesson_count: z.number(),\n lesson_sensitive_count: z.number(),\n lesson_expired_count: z.number(),\n unit_data: unitSchema,\n null_unitvariant_id: z.number(),\n programme_fields: programmeFieldsSchema,\n supplementary_data: z.object({\n unit_order: z.number(),\n static_lesson_list: staticLessonListSchema.nullish(),\n }),\n expired: z.boolean(),\n actions: actionsSchema.nullish(), // the optional should be removed once old mvs are retired\n
|
|
1
|
+
{"version":3,"file":"syntheticUnitvariantsWithLessonIdsBase.schema.cjs","sources":["../../../../../src/schema/published/syntheticUnitvariantsWithLessonIdsBase/syntheticUnitvariantsWithLessonIdsBase.schema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport zodToCamelCase from \"zod-to-camel-case\";\n\nimport { unitSchema } from \"@/schema/public/unit/unit.schema\";\nimport { programmeFieldsSchema } from \"@/schema/public/components/programmeFields/programmeFields.schema\";\nimport { actionsSchema } from \"@/schema/published/components/actions/actions.schema\";\nimport { staticLessonListSchema } from \"@/schema/public/components/staticLessonList/staticLessonList.schema\";\n\nexport const syntheticUnitvariantsWithLessonIdsBaseSchema = z.object({\n base_slug: z.string(),\n unit_slug: z.string(),\n programme_slug: z.string(),\n is_legacy: z.boolean(),\n lesson_count: z.number(),\n lesson_sensitive_count: z.number(),\n lesson_expired_count: z.number(),\n unit_data: unitSchema,\n null_unitvariant_id: z.number(),\n programme_fields: programmeFieldsSchema,\n supplementary_data: z.object({\n unit_order: z.number(),\n static_lesson_list: staticLessonListSchema.nullish(),\n }),\n expired: z.boolean(),\n actions: actionsSchema.nullish(), // the optional should be removed once old mvs are retired\n // TODO: Specify a sepearate schema\n // the optional should be removed once old mvs are retired\n features: z.looseObject({}).optional().nullable(),\n});\n\nexport type SyntheticUnitvariantsWithLessonIdsBase = z.infer<\n typeof syntheticUnitvariantsWithLessonIdsBaseSchema\n>;\n\nexport const syntheticUnitvariantsWithLessonIdsBaseSchemaCamel = zodToCamelCase(\n syntheticUnitvariantsWithLessonIdsBaseSchema,\n);\nexport type SyntheticUnitvariantsWithLessonIdsBaseCamel = z.infer<\n typeof syntheticUnitvariantsWithLessonIdsBaseSchemaCamel\n>;\n"],"names":["syntheticUnitvariantsWithLessonIdsBaseSchema","z","object","base_slug","string","unit_slug","programme_slug","is_legacy","boolean","lesson_count","number","lesson_sensitive_count","lesson_expired_count","unit_data","unitSchema","null_unitvariant_id","programme_fields","programmeFieldsSchema","supplementary_data","unit_order","static_lesson_list","staticLessonListSchema","nullish","expired","actions","actionsSchema","features","looseObject","optional","nullable","syntheticUnitvariantsWithLessonIdsBaseSchemaCamel","zodToCamelCase"],"mappings":"sYAQO,MAAMA,EAA+CC,EAAAA,EAAEC,OAAO,CACnEC,UAAWF,EAAAA,EAAEG,SACbC,UAAWJ,EAAAA,EAAEG,SACbE,eAAgBL,EAAAA,EAAEG,SAClBG,UAAWN,EAAAA,EAAEO,UACbC,aAAcR,EAAAA,EAAES,SAChBC,uBAAwBV,EAAAA,EAAES,SAC1BE,qBAAsBX,EAAAA,EAAES,SACxBG,UAAWC,EAAAA,WACXC,oBAAqBd,EAAAA,EAAES,SACvBM,iBAAkBC,EAAAA,sBAClBC,mBAAoBjB,EAAAA,EAAEC,OAAO,CAC3BiB,WAAYlB,EAAAA,EAAES,SACdU,mBAAoBC,EAAAA,uBAAuBC,YAE7CC,QAAStB,EAAAA,EAAEO,UACXgB,QAASC,EAAAA,cAAcH,UAGvBI,SAAUzB,EAAAA,EAAE0B,YAAY,CAAA,GAAIC,WAAWC,aAO5BC,EAAoDC,EAAAA,QAC/D/B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{z as e}from"zod";const a=e.literal("published"),n=e.literal("new"),i=e.literal("migration"),r=e.object({created_at:e.string(),updated_at:e.string()}),t=e.union([a,n,i]),o=e.enum(["2020-2023","2023-2024","2024-2025","0"]),s=e.enum(["foundation","primary","secondary"]),l=e.enum(["Early Years Foundation Stage","Primary","Secondary"]),c=e.enum(["foundation","primary","secondary"]),d=e.enum(["KS1","KS2","KS3","KS4","EYFS","All key stages"]),
|
|
1
|
+
import{z as e}from"zod";const a=e.literal("published"),n=e.literal("new"),i=e.literal("migration"),r=e.object({created_at:e.string(),updated_at:e.string()}),t=e.union([a,n,i]),o=e.enum(["2020-2023","2023-2024","2024-2025","0"]),s=e.enum(["foundation","primary","secondary"]),l=e.enum(["Early Years Foundation Stage","Primary","Secondary"]),c=e.enum(["foundation","primary","secondary"]),d=e.enum(["KS1","KS2","KS3","KS4","EYFS","All key stages"]),u=e.enum(["ks1","ks2","ks3","ks4","early-years-foundation-stage","all-ks"]),g=e.enum(["Key Stage 1","Key Stage 2","Key Stage 3","Key Stage 4","Early Years Foundation Stage","All Key Stages"]),m=e.enum(["1","2","3","4","5","6","7","8","9","10","11","12","13","R","All"]),y=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","all-years"]),h=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","All years"]),p=e.enum(["core","foundation","higher"]),S=e.enum(["core","foundation","higher"]),E=e.enum(["Core","Foundation","Higher"]),C=e.enum(["Core","GCSE"]),Y=e.enum(["core","gcse"]),f=e.enum(["Core","GCSE"]),x=e.enum(["aqa","edexcel","eduqas","ocr","wjec","edexcelb"]),A=e.enum(["AQA","Edexcel","Eduqas","OCR","WJEC","Edexcel B"]),v=e.enum(["Assessment and Qualifications Alliance","Edexcel","Eduqas","Oxford, Cambridge and RSA Examinations","Welsh Joint Education Committee","Edexcel B"]),K=e.enum(["Computing (non-GCSE)","Art and design","Citizenship","Computing","Computer Science","Design and technology","Drama","English","English grammar","English reading for pleasure","English spelling","Expressive arts and design","Financial education","French","Geography","German","History","Latin","Literacy","Maths","Music","Personal, social and emotional development","Physical education","RSHE (PSHE)","Religious education","Rule of law","Science","Biology","Chemistry","Combined science","Physics","Spanish","Understanding the world","Specialist","Communication and language","Creative arts","Independent living","Numeracy","Physical development","Therapies","Occupational therapy","Physical therapy","Sensory integration","Speech and language therapy","QA testing only","Cooking and nutrition"]),b=e.enum(["computing-non-gcse","art","citizenship","computing","design-technology","drama","english","english-grammar","english-reading-for-pleasure","english-spelling","expressive-arts-and-design","financial-education","french","geography","german","history","latin","literacy","maths","music","personal-social-and-emotional-development","physical-education","rshe-pshe","religious-education","rule-of-law","science","biology","chemistry","combined-science","physics","spanish","understanding-the-world","specialist","communication-and-language","creative-arts","independent-living","numeracy","physical-development","therapies","occupational-therapy","physical-therapy","sensory-integration","speech-and-language-therapy","testing-not-for-publication","cooking-nutrition"]);export{o as _cohortSchema,t as _stateSchema,v as examboardDescriptions,x as examboardSlugs,A as examboards,g as keystageDescriptions,u as keystageSlugs,d as keystages,i as migrationState,n as newState,f as pathwayDescriptions,Y as pathwaySlugs,C as pathways,l as phaseDescriptions,s as phaseSlugs,c as phases,a as publishedState,b as subjectSlugs,K as subjects,E as tierDescriptions,S as tierSlugs,p as tiers,r as timestampsSchema,h as yearDescriptions,y as yearSlugs,m as years};
|
|
2
2
|
//# sourceMappingURL=base.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.schema.js","sources":["../../../../../../src/schema/public/components/base/base.schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const publishedState = z.literal(\"published\");\nexport const newState = z.literal(\"new\");\nexport const migrationState = z.literal(\"migration\");\n\nexport const timestampsSchema = z.object({\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport const _stateSchema = z.union([publishedState, newState, migrationState]);\nexport const _cohortSchema = z.enum([\n \"2020-2023\",\n \"2023-2024\",\n \"2024-2025\",\n \"0\",\n]);\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([\n \"KS1\",\n \"KS2\",\n \"KS3\",\n \"KS4\",\n \"EYFS\",\n \"All key stages\",\n]);\nexport const keystageSlugs = z.enum([\n \"ks1\",\n \"ks2\",\n \"ks3\",\n \"ks4\",\n \"early-years-foundation-stage\",\n \"all-ks\",\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 \"All Key Stages\",\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 \"All\",\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 \"all-years\",\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 \"All years\",\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 pathways = z.enum([\"Core\", \"GCSE\"]);\nexport const pathwaySlugs = z.enum([\"core\", \"gcse\"]);\nexport const pathwayDescriptions = z.enum([\"Core\", \"GCSE\"]);\n\nexport const examboardSlugs = z.enum([\n \"aqa\",\n \"edexcel\",\n \"eduqas\",\n \"ocr\",\n \"wjec\",\n \"edexcelb\",\n]);\nexport const examboards = z.enum([\n \"AQA\",\n \"Edexcel\",\n \"Eduqas\",\n \"OCR\",\n \"WJEC\",\n \"Edexcel B\",\n]);\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 \"Edexcel B\",\n]);\n\nexport const subjects = z.enum([\n \"Computing (non-GCSE)\",\n \"Art and design\",\n \"Citizenship\",\n \"Computing\",\n \"Computer Science\",\n \"Design and technology\",\n \"Drama\",\n \"English\",\n \"English grammar\",\n \"English reading for pleasure\",\n \"English spelling\",\n \"Expressive arts and design\",\n \"Financial education\",\n \"French\",\n \"Geography\",\n \"German\",\n \"History\",\n \"Latin\",\n \"Literacy\",\n \"Maths\",\n \"Music\",\n \"Personal, social and emotional development\",\n \"Physical education\",\n \"RSHE (PSHE)\",\n \"Religious education\",\n \"Science\",\n \"Biology\",\n \"Chemistry\",\n \"Combined science\",\n \"Physics\",\n \"Spanish\",\n \"Understanding the world\",\n \"Specialist\",\n \"Communication and language\",\n \"Creative arts\",\n \"Independent living\",\n \"Numeracy\",\n \"Physical development\",\n \"Therapies\",\n \"Occupational therapy\",\n \"Physical therapy\",\n \"Sensory integration\",\n \"Speech and language therapy\",\n \"QA testing only\",\n \"Cooking and nutrition\",\n]);\nexport const subjectSlugs = z.enum([\n \"computing-non-gcse\",\n \"art\",\n \"citizenship\",\n \"computing\",\n \"design-technology\",\n \"drama\",\n \"english\",\n \"english-grammar\",\n \"english-reading-for-pleasure\",\n \"english-spelling\",\n \"expressive-arts-and-design\",\n \"financial-education\",\n \"french\",\n \"geography\",\n \"german\",\n \"history\",\n \"latin\",\n \"literacy\",\n \"maths\",\n \"music\",\n \"personal-social-and-emotional-development\",\n \"physical-education\",\n \"rshe-pshe\",\n \"religious-education\",\n \"science\",\n \"biology\",\n \"chemistry\",\n \"combined-science\",\n \"physics\",\n \"spanish\",\n \"understanding-the-world\",\n \"specialist\",\n \"communication-and-language\",\n \"creative-arts\",\n \"independent-living\",\n \"numeracy\",\n \"physical-development\",\n \"therapies\",\n \"occupational-therapy\",\n \"physical-therapy\",\n \"sensory-integration\",\n \"speech-and-language-therapy\",\n \"testing-not-for-publication\",\n \"cooking-nutrition\",\n]);\n"],"names":["publishedState","z","literal","newState","migrationState","timestampsSchema","object","created_at","string","updated_at","_stateSchema","union","_cohortSchema","enum","phaseSlugs","phaseDescriptions","phases","keystages","keystageSlugs","keystageDescriptions","years","yearSlugs","yearDescriptions","tiers","tierSlugs","tierDescriptions","pathways","pathwaySlugs","pathwayDescriptions","examboardSlugs","examboards","examboardDescriptions","subjects","subjectSlugs"],"mappings":"wBAEO,MAAMA,EAAiBC,EAAEC,QAAQ,aAC3BC,EAAWF,EAAEC,QAAQ,OACrBE,EAAiBH,EAAEC,QAAQ,aAE3BG,EAAmBJ,EAAEK,OAAO,CACvCC,WAAYN,EAAEO,SACdC,WAAYR,EAAEO,WAGHE,EAAeT,EAAEU,MAAM,CAACX,EAAgBG,EAAUC,IAClDQ,EAAgBX,EAAEY,KAAK,CAClC,YACA,YACA,YACA,MAGWC,EAAab,EAAEY,KAAK,CAAC,aAAc,UAAW,cAC9CE,EAAoBd,EAAEY,KAAK,CACtC,+BACA,UACA,cAEWG,EAASf,EAAEY,KAAK,CAAC,aAAc,UAAW,cAE1CI,EAAYhB,EAAEY,KAAK,CAC9B,MACA,MACA,MACA,MACA,OACA,mBAEWK,EAAgBjB,EAAEY,KAAK,CAClC,MACA,MACA,MACA,MACA,+BACA,WAEWM,EAAuBlB,EAAEY,KAAK,CACzC,cACA,cACA,cACA,cACA,+BACA,mBAGWO,EAAQnB,EAAEY,KAAK,CAC1B,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,KACA,KACA,KACA,KACA,IACA,QAEWQ,EAAYpB,EAAEY,KAAK,CAC9B,YACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,UACA,cAEWS,EAAmBrB,EAAEY,KAAK,CACrC,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,UACA,YACA,cAGWU,EAAQtB,EAAEY,KAAK,CAAC,OAAQ,aAAc,WACtCW,EAAYvB,EAAEY,KAAK,CAAC,OAAQ,aAAc,WAC1CY,EAAmBxB,EAAEY,KAAK,CAAC,OAAQ,aAAc,WAEjDa,EAAWzB,EAAEY,KAAK,CAAC,OAAQ,SAC3Bc,EAAe1B,EAAEY,KAAK,CAAC,OAAQ,SAC/Be,EAAsB3B,EAAEY,KAAK,CAAC,OAAQ,SAEtCgB,EAAiB5B,EAAEY,KAAK,CACnC,MACA,UACA,SACA,MACA,OACA,aAEWiB,EAAa7B,EAAEY,KAAK,CAC/B,MACA,UACA,SACA,MACA,OACA,cAEWkB,EAAwB9B,EAAEY,KAAK,CAC1C,yCACA,UACA,SACA,yCACA,kCACA,cAGWmB,EAAW/B,EAAEY,KAAK,CAC7B,uBACA,iBACA,cACA,YACA,mBACA,wBACA,QACA,UACA,kBACA,+BACA,mBACA,6BACA,sBACA,SACA,YACA,SACA,UACA,QACA,WACA,QACA,QACA,6CACA,qBACA,cACA,sBACA,UACA,UACA,YACA,mBACA,UACA,UACA,0BACA,aACA,6BACA,gBACA,qBACA,WACA,uBACA,YACA,uBACA,mBACA,sBACA,8BACA,kBACA,0BAEWoB,EAAehC,EAAEY,KAAK,CACjC,qBACA,MACA,cACA,YACA,oBACA,QACA,UACA,kBACA,+BACA,mBACA,6BACA,sBACA,SACA,YACA,SACA,UACA,QACA,WACA,QACA,QACA,4CACA,qBACA,YACA,sBACA,UACA,UACA,YACA,mBACA,UACA,UACA,0BACA,aACA,6BACA,gBACA,qBACA,WACA,uBACA,YACA,uBACA,mBACA,sBACA,8BACA,8BACA"}
|
|
1
|
+
{"version":3,"file":"base.schema.js","sources":["../../../../../../src/schema/public/components/base/base.schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const publishedState = z.literal(\"published\");\nexport const newState = z.literal(\"new\");\nexport const migrationState = z.literal(\"migration\");\n\nexport const timestampsSchema = z.object({\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport const _stateSchema = z.union([publishedState, newState, migrationState]);\nexport const _cohortSchema = z.enum([\n \"2020-2023\",\n \"2023-2024\",\n \"2024-2025\",\n \"0\",\n]);\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([\n \"KS1\",\n \"KS2\",\n \"KS3\",\n \"KS4\",\n \"EYFS\",\n \"All key stages\",\n]);\nexport const keystageSlugs = z.enum([\n \"ks1\",\n \"ks2\",\n \"ks3\",\n \"ks4\",\n \"early-years-foundation-stage\",\n \"all-ks\",\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 \"All Key Stages\",\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 \"All\",\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 \"all-years\",\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 \"All years\",\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 pathways = z.enum([\"Core\", \"GCSE\"]);\nexport const pathwaySlugs = z.enum([\"core\", \"gcse\"]);\nexport const pathwayDescriptions = z.enum([\"Core\", \"GCSE\"]);\n\nexport const examboardSlugs = z.enum([\n \"aqa\",\n \"edexcel\",\n \"eduqas\",\n \"ocr\",\n \"wjec\",\n \"edexcelb\",\n]);\nexport const examboards = z.enum([\n \"AQA\",\n \"Edexcel\",\n \"Eduqas\",\n \"OCR\",\n \"WJEC\",\n \"Edexcel B\",\n]);\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 \"Edexcel B\",\n]);\n\nexport const subjects = z.enum([\n \"Computing (non-GCSE)\",\n \"Art and design\",\n \"Citizenship\",\n \"Computing\",\n \"Computer Science\",\n \"Design and technology\",\n \"Drama\",\n \"English\",\n \"English grammar\",\n \"English reading for pleasure\",\n \"English spelling\",\n \"Expressive arts and design\",\n \"Financial education\",\n \"French\",\n \"Geography\",\n \"German\",\n \"History\",\n \"Latin\",\n \"Literacy\",\n \"Maths\",\n \"Music\",\n \"Personal, social and emotional development\",\n \"Physical education\",\n \"RSHE (PSHE)\",\n \"Religious education\",\n \"Rule of law\",\n \"Science\",\n \"Biology\",\n \"Chemistry\",\n \"Combined science\",\n \"Physics\",\n \"Spanish\",\n \"Understanding the world\",\n \"Specialist\",\n \"Communication and language\",\n \"Creative arts\",\n \"Independent living\",\n \"Numeracy\",\n \"Physical development\",\n \"Therapies\",\n \"Occupational therapy\",\n \"Physical therapy\",\n \"Sensory integration\",\n \"Speech and language therapy\",\n \"QA testing only\",\n \"Cooking and nutrition\",\n]);\nexport const subjectSlugs = z.enum([\n \"computing-non-gcse\",\n \"art\",\n \"citizenship\",\n \"computing\",\n \"design-technology\",\n \"drama\",\n \"english\",\n \"english-grammar\",\n \"english-reading-for-pleasure\",\n \"english-spelling\",\n \"expressive-arts-and-design\",\n \"financial-education\",\n \"french\",\n \"geography\",\n \"german\",\n \"history\",\n \"latin\",\n \"literacy\",\n \"maths\",\n \"music\",\n \"personal-social-and-emotional-development\",\n \"physical-education\",\n \"rshe-pshe\",\n \"religious-education\",\n \"rule-of-law\",\n \"science\",\n \"biology\",\n \"chemistry\",\n \"combined-science\",\n \"physics\",\n \"spanish\",\n \"understanding-the-world\",\n \"specialist\",\n \"communication-and-language\",\n \"creative-arts\",\n \"independent-living\",\n \"numeracy\",\n \"physical-development\",\n \"therapies\",\n \"occupational-therapy\",\n \"physical-therapy\",\n \"sensory-integration\",\n \"speech-and-language-therapy\",\n \"testing-not-for-publication\",\n \"cooking-nutrition\",\n]);\n"],"names":["publishedState","z","literal","newState","migrationState","timestampsSchema","object","created_at","string","updated_at","_stateSchema","union","_cohortSchema","enum","phaseSlugs","phaseDescriptions","phases","keystages","keystageSlugs","keystageDescriptions","years","yearSlugs","yearDescriptions","tiers","tierSlugs","tierDescriptions","pathways","pathwaySlugs","pathwayDescriptions","examboardSlugs","examboards","examboardDescriptions","subjects","subjectSlugs"],"mappings":"wBAEO,MAAMA,EAAiBC,EAAEC,QAAQ,aAC3BC,EAAWF,EAAEC,QAAQ,OACrBE,EAAiBH,EAAEC,QAAQ,aAE3BG,EAAmBJ,EAAEK,OAAO,CACvCC,WAAYN,EAAEO,SACdC,WAAYR,EAAEO,WAGHE,EAAeT,EAAEU,MAAM,CAACX,EAAgBG,EAAUC,IAClDQ,EAAgBX,EAAEY,KAAK,CAClC,YACA,YACA,YACA,MAGWC,EAAab,EAAEY,KAAK,CAAC,aAAc,UAAW,cAC9CE,EAAoBd,EAAEY,KAAK,CACtC,+BACA,UACA,cAEWG,EAASf,EAAEY,KAAK,CAAC,aAAc,UAAW,cAE1CI,EAAYhB,EAAEY,KAAK,CAC9B,MACA,MACA,MACA,MACA,OACA,mBAEWK,EAAgBjB,EAAEY,KAAK,CAClC,MACA,MACA,MACA,MACA,+BACA,WAEWM,EAAuBlB,EAAEY,KAAK,CACzC,cACA,cACA,cACA,cACA,+BACA,mBAGWO,EAAQnB,EAAEY,KAAK,CAC1B,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,KACA,KACA,KACA,KACA,IACA,QAEWQ,EAAYpB,EAAEY,KAAK,CAC9B,YACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,UACA,cAEWS,EAAmBrB,EAAEY,KAAK,CACrC,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,UACA,YACA,cAGWU,EAAQtB,EAAEY,KAAK,CAAC,OAAQ,aAAc,WACtCW,EAAYvB,EAAEY,KAAK,CAAC,OAAQ,aAAc,WAC1CY,EAAmBxB,EAAEY,KAAK,CAAC,OAAQ,aAAc,WAEjDa,EAAWzB,EAAEY,KAAK,CAAC,OAAQ,SAC3Bc,EAAe1B,EAAEY,KAAK,CAAC,OAAQ,SAC/Be,EAAsB3B,EAAEY,KAAK,CAAC,OAAQ,SAEtCgB,EAAiB5B,EAAEY,KAAK,CACnC,MACA,UACA,SACA,MACA,OACA,aAEWiB,EAAa7B,EAAEY,KAAK,CAC/B,MACA,UACA,SACA,MACA,OACA,cAEWkB,EAAwB9B,EAAEY,KAAK,CAC1C,yCACA,UACA,SACA,yCACA,kCACA,cAGWmB,EAAW/B,EAAEY,KAAK,CAC7B,uBACA,iBACA,cACA,YACA,mBACA,wBACA,QACA,UACA,kBACA,+BACA,mBACA,6BACA,sBACA,SACA,YACA,SACA,UACA,QACA,WACA,QACA,QACA,6CACA,qBACA,cACA,sBACA,cACA,UACA,UACA,YACA,mBACA,UACA,UACA,0BACA,aACA,6BACA,gBACA,qBACA,WACA,uBACA,YACA,uBACA,mBACA,sBACA,8BACA,kBACA,0BAEWoB,EAAehC,EAAEY,KAAK,CACjC,qBACA,MACA,cACA,YACA,oBACA,QACA,UACA,kBACA,+BACA,mBACA,6BACA,sBACA,SACA,YACA,SACA,UACA,QACA,WACA,QACA,QACA,4CACA,qBACA,YACA,sBACA,cACA,UACA,UACA,YACA,mBACA,UACA,UACA,0BACA,aACA,6BACA,gBACA,qBACA,WACA,uBACA,YACA,uBACA,mBACA,sBACA,8BACA,8BACA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"camelcase-keys";const l=({overrides:e={}}={})=>({lesson_id:1,lesson_uid:"lesson-uid",title:"lesson-title",description:"lesson-description",slug:"lesson-slug",pupil_lesson_outcome:"pupil-lesson-outcome",phonics_outcome:null,key_learning_points:[{key_learning_point:"point 1"}],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,asset_id_worksheet_answers:null,asset_id_supplementary_asset:null,asset_id_lesson_guide:null,copyright_content:
|
|
1
|
+
import e from"camelcase-keys";const l=({overrides:e={}}={})=>({lesson_id:1,lesson_uid:"lesson-uid",title:"lesson-title",description:"lesson-description",slug:"lesson-slug",pupil_lesson_outcome:"pupil-lesson-outcome",phonics_outcome:null,key_learning_points:[{key_learning_point:"point 1"}],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,asset_id_worksheet_answers:null,asset_id_supplementary_asset:null,asset_id_lesson_guide:null,copyright_content:[{copyright_info:"info about copyright"}],_state:"published",_cohort:"2023-2024",deprecated_fields:null,updated_at:"2024-02-28T08:09:20.247619+00:00",created_at:"2024-02-28T08:09:20.247619+00:00",expiration_date:null,lesson_outline:null,media_clips:null,lesson_release_date:null,...e}),n=({overrides:n={}}={})=>({...e(l(),{deep:!0}),...n}),s=l,i=n;export{s as lessonDataFixture,i as lessonDataFixtureCamel,l as lessonFixture,n as lessonFixtureCamel};
|
|
2
2
|
//# sourceMappingURL=lesson.fixture.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lesson.fixture.js","sources":["../../../../../src/schema/public/lesson/lesson.fixture.ts"],"sourcesContent":["import camelcaseKeys from \"camelcase-keys\";\n\nimport type { Lesson, LessonCamel } from \"@/schema/public/lesson/lesson.schema\";\n\nexport const lessonFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<Lesson>;\n} = {}): Lesson => ({\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 phonics_outcome: null,\n key_learning_points: [{ key_learning_point: \"point 1\" }],\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 asset_id_worksheet_answers: null,\n asset_id_supplementary_asset: null,\n asset_id_lesson_guide: null,\n copyright_content:
|
|
1
|
+
{"version":3,"file":"lesson.fixture.js","sources":["../../../../../src/schema/public/lesson/lesson.fixture.ts"],"sourcesContent":["import camelcaseKeys from \"camelcase-keys\";\n\nimport type { Lesson, LessonCamel } from \"@/schema/public/lesson/lesson.schema\";\n\nexport const lessonFixture = ({\n overrides = {},\n}: {\n overrides?: Partial<Lesson>;\n} = {}): Lesson => ({\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 phonics_outcome: null,\n key_learning_points: [{ key_learning_point: \"point 1\" }],\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 asset_id_worksheet_answers: null,\n asset_id_supplementary_asset: null,\n asset_id_lesson_guide: null,\n copyright_content: [\n {\n copyright_info: \"info about copyright\",\n }\n ],\n _state: \"published\",\n _cohort: \"2023-2024\",\n deprecated_fields: null,\n updated_at: \"2024-02-28T08:09:20.247619+00:00\",\n created_at: \"2024-02-28T08:09:20.247619+00:00\",\n expiration_date: null,\n lesson_outline: null,\n media_clips: null,\n lesson_release_date: null,\n ...overrides,\n});\n\nexport const lessonFixtureCamel = ({\n overrides = {},\n}: {\n overrides?: Partial<LessonCamel>;\n} = {}): LessonCamel => ({\n ...camelcaseKeys(lessonFixture(), { deep: true }),\n ...overrides,\n});\n\n// Backwards compatibility exports\n/**\n * @deprecated Use lessonFixture instead.\n */\nexport const lessonDataFixture = lessonFixture;\nexport const lessonDataFixtureCamel = lessonFixtureCamel;\n"],"names":["lessonFixture","overrides","lesson_id","lesson_uid","title","description","slug","pupil_lesson_outcome","phonics_outcome","key_learning_points","key_learning_point","equipment_and_resources","content_guidance_details","content_guidance","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","asset_id_worksheet_answers","asset_id_supplementary_asset","asset_id_lesson_guide","copyright_content","copyright_info","_state","_cohort","deprecated_fields","updated_at","created_at","expiration_date","lesson_outline","media_clips","lesson_release_date","lessonFixtureCamel","camelcaseKeys","deep","lessonDataFixture","lessonDataFixtureCamel"],"mappings":"8BAIO,MAAMA,EAAgB,EAC3BC,YAAY,CAAA,GAGV,CAAA,KAAE,CACJC,UAAW,EACXC,WAAY,aACZC,MAAO,eACPC,YAAa,qBACbC,KAAM,cACNC,qBAAsB,uBACtBC,gBAAiB,KACjBC,oBAAqB,CAAC,CAAEC,mBAAoB,YAC5CC,wBAAyB,KACzBC,yBAA0B,KAC1BC,iBAAkB,KAClBC,kBAAmB,KACnBC,uBAAwB,KACxBC,mCAAoC,KACpCC,SAAU,KACVC,SAAU,KACVC,uBAAwB,KACxBC,gBAAiB,KACjBC,aAAc,KACdC,mBAAoB,KACpBC,mBAAoB,KACpBC,2BAA4B,KAC5BC,6BAA8B,KAC9BC,sBAAuB,KACvBC,kBAAmB,CACjB,CACEC,eAAgB,yBAGpBC,OAAQ,YACRC,QAAS,YACTC,kBAAmB,KACnBC,WAAY,mCACZC,WAAY,mCACZC,gBAAiB,KACjBC,eAAgB,KAChBC,YAAa,KACbC,oBAAqB,QAClBpC,IAGQqC,EAAqB,EAChCrC,YAAY,CAAA,GAGV,CAAA,KAAE,IACDsC,EAAcvC,IAAiB,CAAEwC,MAAM,OACvCvC,IAOQwC,EAAoBzC,EACpB0C,EAAyBJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{z as e}from"zod";import s from"zod-to-camel-case";import{timestampsSchema as n,_cohortSchema as t,_stateSchema as i,newState as l,publishedState as o}from"../components/base/base.schema.js";import{keyLearningPointsSchema as a}from"../components/keyLearningPoints/keyLearningPoints.schema.js";import{keywordsSchema as r}from"../components/keywords/keywords.schema.js";import{equipmentAndResourcesSchema as _}from"../components/equipmentAndResources/equipmentAndResources.schema.js";import{lessonOutlineSchema as u}from"../components/lessonOutline/lessonOutline.schema.js";import{mediaClipsRecordSchema as d}from"../components/mediaClips/mediaClips.schema.js";const m=n.extend({lesson_id:e.number(),lesson_uid:e.string(),slug:e.string(),title:e.string(),description:e.string(),pupil_lesson_outcome:e.string(),phonics_outcome:e.string().nullable(),key_learning_points:e.array(a).nullable(),equipment_and_resources:e.array(_).nullable(),content_guidance_details:e.array(e.object({details:e.string()})).nullable(),content_guidance:e.array(e.number()).nullable(),copyright_content:e.array(e.object({})).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(r).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(),asset_id_worksheet_answers:e.number().nullable(),asset_id_supplementary_asset:e.number().nullable(),asset_id_lesson_guide:e.number().nullable(),expiration_date:e.string().nullable(),lesson_outline:e.array(u).nullish(),media_clips:d.nullish(),deprecated_fields:e.record(e.string(),e.unknown()).nullable(),_state:i,_cohort:t,lesson_release_date:e.string().nullish()}),c=m.pick({lesson_id:!0,lesson_uid:!0,phonics_outcome:!0,key_learning_points:!0,equipment_and_resources:!0,content_guidance_details:!0,content_guidance:!0,copyright_content:!0,supervision_level:!0,thirdpartycontent_list:!0,misconceptions_and_common_mistakes:!0,keywords:!0,video_id:!0,sign_language_video_id:!0,quiz_id_starter:!0,quiz_id_exit:!0,asset_id_slidedeck:!0,asset_id_worksheet:!0,asset_id_worksheet_answers:!0,asset_id_supplementary_asset:!0,asset_id_lesson_guide:!0,expiration_date:!0,lesson_outline:!0,media_clips:!0,deprecated_fields:!0,_cohort:!0,lesson_release_date:!0}).extend({_state:l,pupil_lesson_outcome:e.string().nullable()}),p=m.extend({_state:o}),b=s(m),g=s(c),y=s(p),h=m,k=m;export{h as lessonData,k as lessonDataSchema,c as lessonNewSchema,g as lessonNewSchemaCamel,p as lessonPublishedSchema,y as lessonPublishedSchemaCamel,m as lessonSchema,b as lessonSchemaCamel};
|
|
1
|
+
import{z as e}from"zod";import s from"zod-to-camel-case";import{timestampsSchema as n,_cohortSchema as t,_stateSchema as i,newState as l,publishedState as o}from"../components/base/base.schema.js";import{keyLearningPointsSchema as a}from"../components/keyLearningPoints/keyLearningPoints.schema.js";import{keywordsSchema as r}from"../components/keywords/keywords.schema.js";import{equipmentAndResourcesSchema as _}from"../components/equipmentAndResources/equipmentAndResources.schema.js";import{lessonOutlineSchema as u}from"../components/lessonOutline/lessonOutline.schema.js";import{mediaClipsRecordSchema as d}from"../components/mediaClips/mediaClips.schema.js";const m=n.extend({lesson_id:e.number(),lesson_uid:e.string(),slug:e.string(),title:e.string(),description:e.string(),pupil_lesson_outcome:e.string(),phonics_outcome:e.string().nullable(),key_learning_points:e.array(a).nullable(),equipment_and_resources:e.array(_).nullable(),content_guidance_details:e.array(e.object({details:e.string()})).nullable(),content_guidance:e.array(e.number()).nullable(),copyright_content:e.array(e.object({copyright_info:e.string()})).nullable(),supervision_level:e.string().nullable(),thirdpartycontent_list:e.array(e.number()).nullable(),misconceptions_and_common_mistakes:e.array(e.object({})).nullable(),keywords:e.array(r).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(),asset_id_worksheet_answers:e.number().nullable(),asset_id_supplementary_asset:e.number().nullable(),asset_id_lesson_guide:e.number().nullable(),expiration_date:e.string().nullable(),lesson_outline:e.array(u).nullish(),media_clips:d.nullish(),deprecated_fields:e.record(e.string(),e.unknown()).nullable(),_state:i,_cohort:t,lesson_release_date:e.string().nullish()}),c=m.pick({lesson_id:!0,lesson_uid:!0,phonics_outcome:!0,key_learning_points:!0,equipment_and_resources:!0,content_guidance_details:!0,content_guidance:!0,copyright_content:!0,supervision_level:!0,thirdpartycontent_list:!0,misconceptions_and_common_mistakes:!0,keywords:!0,video_id:!0,sign_language_video_id:!0,quiz_id_starter:!0,quiz_id_exit:!0,asset_id_slidedeck:!0,asset_id_worksheet:!0,asset_id_worksheet_answers:!0,asset_id_supplementary_asset:!0,asset_id_lesson_guide:!0,expiration_date:!0,lesson_outline:!0,media_clips:!0,deprecated_fields:!0,_cohort:!0,lesson_release_date:!0}).extend({_state:l,pupil_lesson_outcome:e.string().nullable()}),p=m.extend({_state:o}),b=s(m),g=s(c),y=s(p),h=m,k=m;export{h as lessonData,k as lessonDataSchema,c as lessonNewSchema,g as lessonNewSchemaCamel,p as lessonPublishedSchema,y as lessonPublishedSchemaCamel,m as lessonSchema,b as lessonSchemaCamel};
|
|
2
2
|
//# sourceMappingURL=lesson.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lesson.schema.js","sources":["../../../../../src/schema/public/lesson/lesson.schema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport zodToCamelCase from \"zod-to-camel-case\";\n\nimport {\n _stateSchema,\n _cohortSchema,\n timestampsSchema,\n newState,\n publishedState,\n} from \"@/schema/public/components/base/base.schema\";\nimport { keyLearningPointsSchema } from \"@/schema/public/components/keyLearningPoints/keyLearningPoints.schema\";\nimport { keywordsSchema } from \"@/schema/public/components/keywords/keywords.schema\";\nimport { equipmentAndResourcesSchema } from \"@/schema/public/components/equipmentAndResources/equipmentAndResources.schema\";\nimport { lessonOutlineSchema } from \"@/schema/public/components/lessonOutline/lessonOutline.schema\";\nimport { mediaClipsRecordSchema } from \"@/schema/public/components/mediaClips/mediaClips.schema\";\n\nexport const lessonSchema = timestampsSchema.extend({\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 phonics_outcome: z.string().nullable(),\n key_learning_points: z.array(keyLearningPointsSchema).nullable(),\n equipment_and_resources: z.array(equipmentAndResourcesSchema).nullable(),\n content_guidance_details: z\n .array(z.object({ details: z.string() }))\n .nullable(),\n content_guidance: z.array(z.number()).nullable(),\n copyright_content: z.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(keywordsSchema).nullable(),\n video_id: z.number().nullable(),\n sign_language_video_id: z.number().nullable(),\n quiz_id_starter: z.number().nullable(),\n quiz_id_exit: z.number().nullable(),\n asset_id_slidedeck: z.number().nullable(),\n asset_id_worksheet: z.number().nullable(),\n asset_id_worksheet_answers: z.number().nullable(),\n asset_id_supplementary_asset: z.number().nullable(),\n asset_id_lesson_guide: z.number().nullable(),\n expiration_date: z.string().nullable(),\n lesson_outline: z.array(lessonOutlineSchema).nullish(),\n media_clips: mediaClipsRecordSchema.nullish(),\n deprecated_fields: z.record(z.string(), z.unknown()).nullable(),\n _state: _stateSchema,\n _cohort: _cohortSchema,\n lesson_release_date: z.string().nullish(),\n});\nexport type Lesson = z.infer<typeof lessonSchema>;\n\nexport const lessonNewSchema = lessonSchema\n .pick({\n lesson_id: true,\n lesson_uid: true,\n phonics_outcome: true,\n key_learning_points: true,\n equipment_and_resources: true,\n content_guidance_details: true,\n content_guidance: true,\n copyright_content: true,\n supervision_level: true,\n thirdpartycontent_list: true,\n misconceptions_and_common_mistakes: true,\n keywords: true,\n video_id: true,\n sign_language_video_id: true,\n quiz_id_starter: true,\n quiz_id_exit: true,\n asset_id_slidedeck: true,\n asset_id_worksheet: true,\n asset_id_worksheet_answers: true,\n asset_id_supplementary_asset: true,\n asset_id_lesson_guide: true,\n expiration_date: true,\n lesson_outline: true,\n media_clips: true,\n deprecated_fields: true,\n _cohort: true,\n lesson_release_date: true,\n })\n .extend({\n _state: newState,\n pupil_lesson_outcome: z.string().nullable(),\n });\n\nexport const lessonPublishedSchema = lessonSchema.extend({\n _state: publishedState,\n});\n\nexport type LessonNew = z.infer<typeof lessonNewSchema>;\nexport type LessonPublished = z.infer<typeof lessonPublishedSchema>;\n\nexport const lessonSchemaCamel = zodToCamelCase(lessonSchema);\nexport type LessonCamel = z.infer<typeof lessonSchemaCamel>;\n\nexport const lessonNewSchemaCamel = zodToCamelCase(lessonNewSchema);\nexport type LessonNewCamel = z.infer<typeof lessonNewSchemaCamel>;\n\nexport const lessonPublishedSchemaCamel = zodToCamelCase(lessonPublishedSchema);\nexport type LessonPublishedCamel = z.infer<typeof lessonPublishedSchemaCamel>;\n\n// Backwards compatibility exports\n/**\n * @deprecated Use lessonSchema instead.\n */\nexport const lessonData = lessonSchema;\nexport const lessonDataSchema = lessonSchema;\nexport type LessonData = Lesson;\n"],"names":["lessonSchema","timestampsSchema","extend","lesson_id","z","number","lesson_uid","string","slug","title","description","pupil_lesson_outcome","phonics_outcome","nullable","key_learning_points","array","keyLearningPointsSchema","equipment_and_resources","equipmentAndResourcesSchema","content_guidance_details","object","details","content_guidance","copyright_content","supervision_level","thirdpartycontent_list","misconceptions_and_common_mistakes","keywords","keywordsSchema","video_id","sign_language_video_id","quiz_id_starter","quiz_id_exit","asset_id_slidedeck","asset_id_worksheet","asset_id_worksheet_answers","asset_id_supplementary_asset","asset_id_lesson_guide","expiration_date","lesson_outline","lessonOutlineSchema","nullish","media_clips","mediaClipsRecordSchema","deprecated_fields","record","unknown","_state","_stateSchema","_cohort","_cohortSchema","lesson_release_date","lessonNewSchema","pick","newState","lessonPublishedSchema","publishedState","lessonSchemaCamel","zodToCamelCase","lessonNewSchemaCamel","lessonPublishedSchemaCamel","lessonData","lessonDataSchema"],"mappings":"ypBAgBO,MAAMA,EAAeC,EAAiBC,OAAO,CAClDC,UAAWC,EAAEC,SACbC,WAAYF,EAAEG,SACdC,KAAMJ,EAAEG,SACRE,MAAOL,EAAEG,SACTG,YAAaN,EAAEG,SACfI,qBAAsBP,EAAEG,SACxBK,gBAAiBR,EAAEG,SAASM,WAC5BC,oBAAqBV,EAAEW,MAAMC,GAAyBH,WACtDI,wBAAyBb,EAAEW,MAAMG,GAA6BL,WAC9DM,yBAA0Bf,EACvBW,MAAMX,EAAEgB,OAAO,CAAEC,QAASjB,EAAEG,YAC5BM,WACHS,iBAAkBlB,EAAEW,MAAMX,EAAEC,UAAUQ,WACtCU,kBAAmBnB,EAAEW,MAAMX,EAAEgB,OAAO,
|
|
1
|
+
{"version":3,"file":"lesson.schema.js","sources":["../../../../../src/schema/public/lesson/lesson.schema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport zodToCamelCase from \"zod-to-camel-case\";\n\nimport {\n _stateSchema,\n _cohortSchema,\n timestampsSchema,\n newState,\n publishedState,\n} from \"@/schema/public/components/base/base.schema\";\nimport { keyLearningPointsSchema } from \"@/schema/public/components/keyLearningPoints/keyLearningPoints.schema\";\nimport { keywordsSchema } from \"@/schema/public/components/keywords/keywords.schema\";\nimport { equipmentAndResourcesSchema } from \"@/schema/public/components/equipmentAndResources/equipmentAndResources.schema\";\nimport { lessonOutlineSchema } from \"@/schema/public/components/lessonOutline/lessonOutline.schema\";\nimport { mediaClipsRecordSchema } from \"@/schema/public/components/mediaClips/mediaClips.schema\";\n\nexport const lessonSchema = timestampsSchema.extend({\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 phonics_outcome: z.string().nullable(),\n key_learning_points: z.array(keyLearningPointsSchema).nullable(),\n equipment_and_resources: z.array(equipmentAndResourcesSchema).nullable(),\n content_guidance_details: z\n .array(z.object({ details: z.string() }))\n .nullable(),\n content_guidance: z.array(z.number()).nullable(),\n copyright_content: z.array(z.object({\n copyright_info: z.string()\n })).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(keywordsSchema).nullable(),\n video_id: z.number().nullable(),\n sign_language_video_id: z.number().nullable(),\n quiz_id_starter: z.number().nullable(),\n quiz_id_exit: z.number().nullable(),\n asset_id_slidedeck: z.number().nullable(),\n asset_id_worksheet: z.number().nullable(),\n asset_id_worksheet_answers: z.number().nullable(),\n asset_id_supplementary_asset: z.number().nullable(),\n asset_id_lesson_guide: z.number().nullable(),\n expiration_date: z.string().nullable(),\n lesson_outline: z.array(lessonOutlineSchema).nullish(),\n media_clips: mediaClipsRecordSchema.nullish(),\n deprecated_fields: z.record(z.string(), z.unknown()).nullable(),\n _state: _stateSchema,\n _cohort: _cohortSchema,\n lesson_release_date: z.string().nullish(),\n});\nexport type Lesson = z.infer<typeof lessonSchema>;\n\nexport const lessonNewSchema = lessonSchema\n .pick({\n lesson_id: true,\n lesson_uid: true,\n phonics_outcome: true,\n key_learning_points: true,\n equipment_and_resources: true,\n content_guidance_details: true,\n content_guidance: true,\n copyright_content: true,\n supervision_level: true,\n thirdpartycontent_list: true,\n misconceptions_and_common_mistakes: true,\n keywords: true,\n video_id: true,\n sign_language_video_id: true,\n quiz_id_starter: true,\n quiz_id_exit: true,\n asset_id_slidedeck: true,\n asset_id_worksheet: true,\n asset_id_worksheet_answers: true,\n asset_id_supplementary_asset: true,\n asset_id_lesson_guide: true,\n expiration_date: true,\n lesson_outline: true,\n media_clips: true,\n deprecated_fields: true,\n _cohort: true,\n lesson_release_date: true,\n })\n .extend({\n _state: newState,\n pupil_lesson_outcome: z.string().nullable(),\n });\n\nexport const lessonPublishedSchema = lessonSchema.extend({\n _state: publishedState,\n});\n\nexport type LessonNew = z.infer<typeof lessonNewSchema>;\nexport type LessonPublished = z.infer<typeof lessonPublishedSchema>;\n\nexport const lessonSchemaCamel = zodToCamelCase(lessonSchema);\nexport type LessonCamel = z.infer<typeof lessonSchemaCamel>;\n\nexport const lessonNewSchemaCamel = zodToCamelCase(lessonNewSchema);\nexport type LessonNewCamel = z.infer<typeof lessonNewSchemaCamel>;\n\nexport const lessonPublishedSchemaCamel = zodToCamelCase(lessonPublishedSchema);\nexport type LessonPublishedCamel = z.infer<typeof lessonPublishedSchemaCamel>;\n\n// Backwards compatibility exports\n/**\n * @deprecated Use lessonSchema instead.\n */\nexport const lessonData = lessonSchema;\nexport const lessonDataSchema = lessonSchema;\nexport type LessonData = Lesson;\n"],"names":["lessonSchema","timestampsSchema","extend","lesson_id","z","number","lesson_uid","string","slug","title","description","pupil_lesson_outcome","phonics_outcome","nullable","key_learning_points","array","keyLearningPointsSchema","equipment_and_resources","equipmentAndResourcesSchema","content_guidance_details","object","details","content_guidance","copyright_content","copyright_info","supervision_level","thirdpartycontent_list","misconceptions_and_common_mistakes","keywords","keywordsSchema","video_id","sign_language_video_id","quiz_id_starter","quiz_id_exit","asset_id_slidedeck","asset_id_worksheet","asset_id_worksheet_answers","asset_id_supplementary_asset","asset_id_lesson_guide","expiration_date","lesson_outline","lessonOutlineSchema","nullish","media_clips","mediaClipsRecordSchema","deprecated_fields","record","unknown","_state","_stateSchema","_cohort","_cohortSchema","lesson_release_date","lessonNewSchema","pick","newState","lessonPublishedSchema","publishedState","lessonSchemaCamel","zodToCamelCase","lessonNewSchemaCamel","lessonPublishedSchemaCamel","lessonData","lessonDataSchema"],"mappings":"ypBAgBO,MAAMA,EAAeC,EAAiBC,OAAO,CAClDC,UAAWC,EAAEC,SACbC,WAAYF,EAAEG,SACdC,KAAMJ,EAAEG,SACRE,MAAOL,EAAEG,SACTG,YAAaN,EAAEG,SACfI,qBAAsBP,EAAEG,SACxBK,gBAAiBR,EAAEG,SAASM,WAC5BC,oBAAqBV,EAAEW,MAAMC,GAAyBH,WACtDI,wBAAyBb,EAAEW,MAAMG,GAA6BL,WAC9DM,yBAA0Bf,EACvBW,MAAMX,EAAEgB,OAAO,CAAEC,QAASjB,EAAEG,YAC5BM,WACHS,iBAAkBlB,EAAEW,MAAMX,EAAEC,UAAUQ,WACtCU,kBAAmBnB,EAAEW,MAAMX,EAAEgB,OAAO,CAClCI,eAAgBpB,EAAEG,YAChBM,WACJY,kBAAmBrB,EAAEG,SAASM,WAC9Ba,uBAAwBtB,EAAEW,MAAMX,EAAEC,UAAUQ,WAC5Cc,mCAAoCvB,EAAEW,MAAMX,EAAEgB,OAAO,CAAA,IAAKP,WAC1De,SAAUxB,EAAEW,MAAMc,GAAgBhB,WAClCiB,SAAU1B,EAAEC,SAASQ,WACrBkB,uBAAwB3B,EAAEC,SAASQ,WACnCmB,gBAAiB5B,EAAEC,SAASQ,WAC5BoB,aAAc7B,EAAEC,SAASQ,WACzBqB,mBAAoB9B,EAAEC,SAASQ,WAC/BsB,mBAAoB/B,EAAEC,SAASQ,WAC/BuB,2BAA4BhC,EAAEC,SAASQ,WACvCwB,6BAA8BjC,EAAEC,SAASQ,WACzCyB,sBAAuBlC,EAAEC,SAASQ,WAClC0B,gBAAiBnC,EAAEG,SAASM,WAC5B2B,eAAgBpC,EAAEW,MAAM0B,GAAqBC,UAC7CC,YAAaC,EAAuBF,UACpCG,kBAAmBzC,EAAE0C,OAAO1C,EAAEG,SAAUH,EAAE2C,WAAWlC,WACrDmC,OAAQC,EACRC,QAASC,EACTC,oBAAqBhD,EAAEG,SAASmC,YAIrBW,EAAkBrD,EAC5BsD,KAAK,CACJnD,WAAW,EACXG,YAAY,EACZM,iBAAiB,EACjBE,qBAAqB,EACrBG,yBAAyB,EACzBE,0BAA0B,EAC1BG,kBAAkB,EAClBC,mBAAmB,EACnBE,mBAAmB,EACnBC,wBAAwB,EACxBC,oCAAoC,EACpCC,UAAU,EACVE,UAAU,EACVC,wBAAwB,EACxBC,iBAAiB,EACjBC,cAAc,EACdC,oBAAoB,EACpBC,oBAAoB,EACpBC,4BAA4B,EAC5BC,8BAA8B,EAC9BC,uBAAuB,EACvBC,iBAAiB,EACjBC,gBAAgB,EAChBG,aAAa,EACbE,mBAAmB,EACnBK,SAAS,EACTE,qBAAqB,IAEtBlD,OAAO,CACN8C,OAAQO,EACR5C,qBAAsBP,EAAEG,SAASM,aAGxB2C,EAAwBxD,EAAaE,OAAO,CACvD8C,OAAQS,IAMGC,EAAoBC,EAAe3D,GAGnC4D,EAAuBD,EAAeN,GAGtCQ,EAA6BF,EAAeH,GAO5CM,EAAa9D,EACb+D,EAAmB/D"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{z as s}from"zod";import o from"zod-to-camel-case";import{unitSchema as e}from"../../public/unit/unit.schema.js";import{programmeFieldsSchema as t}from"../../public/components/programmeFields/programmeFields.schema.js";import{actionsSchema as n}from"../components/actions/actions.schema.js";import{staticLessonListSchema as i}from"../../public/components/staticLessonList/staticLessonList.schema.js";const r=s.object({base_slug:s.string(),unit_slug:s.string(),programme_slug:s.string(),is_legacy:s.boolean(),lesson_count:s.number(),lesson_sensitive_count:s.number(),lesson_expired_count:s.number(),unit_data:e,null_unitvariant_id:s.number(),programme_fields:t,supplementary_data:s.object({unit_order:s.number(),static_lesson_list:i.nullish()}),expired:s.boolean(),actions:n.nullish(),features:s.
|
|
1
|
+
import{z as s}from"zod";import o from"zod-to-camel-case";import{unitSchema as e}from"../../public/unit/unit.schema.js";import{programmeFieldsSchema as t}from"../../public/components/programmeFields/programmeFields.schema.js";import{actionsSchema as n}from"../components/actions/actions.schema.js";import{staticLessonListSchema as i}from"../../public/components/staticLessonList/staticLessonList.schema.js";const r=s.object({base_slug:s.string(),unit_slug:s.string(),programme_slug:s.string(),is_legacy:s.boolean(),lesson_count:s.number(),lesson_sensitive_count:s.number(),lesson_expired_count:s.number(),unit_data:e,null_unitvariant_id:s.number(),programme_fields:t,supplementary_data:s.object({unit_order:s.number(),static_lesson_list:i.nullish()}),expired:s.boolean(),actions:n.nullish(),features:s.looseObject({}).optional().nullable()}),m=o(r);export{r as syntheticUnitvariantsWithLessonIdsBaseSchema,m as syntheticUnitvariantsWithLessonIdsBaseSchemaCamel};
|
|
2
2
|
//# sourceMappingURL=syntheticUnitvariantsWithLessonIdsBase.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syntheticUnitvariantsWithLessonIdsBase.schema.js","sources":["../../../../../src/schema/published/syntheticUnitvariantsWithLessonIdsBase/syntheticUnitvariantsWithLessonIdsBase.schema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport zodToCamelCase from \"zod-to-camel-case\";\n\nimport { unitSchema } from \"@/schema/public/unit/unit.schema\";\nimport { programmeFieldsSchema } from \"@/schema/public/components/programmeFields/programmeFields.schema\";\nimport { actionsSchema } from \"@/schema/published/components/actions/actions.schema\";\nimport { staticLessonListSchema } from \"@/schema/public/components/staticLessonList/staticLessonList.schema\";\n\nexport const syntheticUnitvariantsWithLessonIdsBaseSchema = z.object({\n base_slug: z.string(),\n unit_slug: z.string(),\n programme_slug: z.string(),\n is_legacy: z.boolean(),\n lesson_count: z.number(),\n lesson_sensitive_count: z.number(),\n lesson_expired_count: z.number(),\n unit_data: unitSchema,\n null_unitvariant_id: z.number(),\n programme_fields: programmeFieldsSchema,\n supplementary_data: z.object({\n unit_order: z.number(),\n static_lesson_list: staticLessonListSchema.nullish(),\n }),\n expired: z.boolean(),\n actions: actionsSchema.nullish(), // the optional should be removed once old mvs are retired\n
|
|
1
|
+
{"version":3,"file":"syntheticUnitvariantsWithLessonIdsBase.schema.js","sources":["../../../../../src/schema/published/syntheticUnitvariantsWithLessonIdsBase/syntheticUnitvariantsWithLessonIdsBase.schema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport zodToCamelCase from \"zod-to-camel-case\";\n\nimport { unitSchema } from \"@/schema/public/unit/unit.schema\";\nimport { programmeFieldsSchema } from \"@/schema/public/components/programmeFields/programmeFields.schema\";\nimport { actionsSchema } from \"@/schema/published/components/actions/actions.schema\";\nimport { staticLessonListSchema } from \"@/schema/public/components/staticLessonList/staticLessonList.schema\";\n\nexport const syntheticUnitvariantsWithLessonIdsBaseSchema = z.object({\n base_slug: z.string(),\n unit_slug: z.string(),\n programme_slug: z.string(),\n is_legacy: z.boolean(),\n lesson_count: z.number(),\n lesson_sensitive_count: z.number(),\n lesson_expired_count: z.number(),\n unit_data: unitSchema,\n null_unitvariant_id: z.number(),\n programme_fields: programmeFieldsSchema,\n supplementary_data: z.object({\n unit_order: z.number(),\n static_lesson_list: staticLessonListSchema.nullish(),\n }),\n expired: z.boolean(),\n actions: actionsSchema.nullish(), // the optional should be removed once old mvs are retired\n // TODO: Specify a sepearate schema\n // the optional should be removed once old mvs are retired\n features: z.looseObject({}).optional().nullable(),\n});\n\nexport type SyntheticUnitvariantsWithLessonIdsBase = z.infer<\n typeof syntheticUnitvariantsWithLessonIdsBaseSchema\n>;\n\nexport const syntheticUnitvariantsWithLessonIdsBaseSchemaCamel = zodToCamelCase(\n syntheticUnitvariantsWithLessonIdsBaseSchema,\n);\nexport type SyntheticUnitvariantsWithLessonIdsBaseCamel = z.infer<\n typeof syntheticUnitvariantsWithLessonIdsBaseSchemaCamel\n>;\n"],"names":["syntheticUnitvariantsWithLessonIdsBaseSchema","z","object","base_slug","string","unit_slug","programme_slug","is_legacy","boolean","lesson_count","number","lesson_sensitive_count","lesson_expired_count","unit_data","unitSchema","null_unitvariant_id","programme_fields","programmeFieldsSchema","supplementary_data","unit_order","static_lesson_list","staticLessonListSchema","nullish","expired","actions","actionsSchema","features","looseObject","optional","nullable","syntheticUnitvariantsWithLessonIdsBaseSchemaCamel","zodToCamelCase"],"mappings":"sZAQO,MAAMA,EAA+CC,EAAEC,OAAO,CACnEC,UAAWF,EAAEG,SACbC,UAAWJ,EAAEG,SACbE,eAAgBL,EAAEG,SAClBG,UAAWN,EAAEO,UACbC,aAAcR,EAAES,SAChBC,uBAAwBV,EAAES,SAC1BE,qBAAsBX,EAAES,SACxBG,UAAWC,EACXC,oBAAqBd,EAAES,SACvBM,iBAAkBC,EAClBC,mBAAoBjB,EAAEC,OAAO,CAC3BiB,WAAYlB,EAAES,SACdU,mBAAoBC,EAAuBC,YAE7CC,QAAStB,EAAEO,UACXgB,QAASC,EAAcH,UAGvBI,SAAUzB,EAAE0B,YAAY,CAAA,GAAIC,WAAWC,aAO5BC,EAAoDC,EAC/D/B"}
|
package/package.json
CHANGED
|
@@ -161,6 +161,7 @@ export const subjects = z.enum([
|
|
|
161
161
|
"Physical education",
|
|
162
162
|
"RSHE (PSHE)",
|
|
163
163
|
"Religious education",
|
|
164
|
+
"Rule of law",
|
|
164
165
|
"Science",
|
|
165
166
|
"Biology",
|
|
166
167
|
"Chemistry",
|
|
@@ -207,6 +208,7 @@ export const subjectSlugs = z.enum([
|
|
|
207
208
|
"physical-education",
|
|
208
209
|
"rshe-pshe",
|
|
209
210
|
"religious-education",
|
|
211
|
+
"rule-of-law",
|
|
210
212
|
"science",
|
|
211
213
|
"biology",
|
|
212
214
|
"chemistry",
|
|
@@ -31,7 +31,11 @@ export const lessonFixture = ({
|
|
|
31
31
|
asset_id_worksheet_answers: null,
|
|
32
32
|
asset_id_supplementary_asset: null,
|
|
33
33
|
asset_id_lesson_guide: null,
|
|
34
|
-
copyright_content:
|
|
34
|
+
copyright_content: [
|
|
35
|
+
{
|
|
36
|
+
copyright_info: "info about copyright",
|
|
37
|
+
}
|
|
38
|
+
],
|
|
35
39
|
_state: "published",
|
|
36
40
|
_cohort: "2023-2024",
|
|
37
41
|
deprecated_fields: null,
|
|
@@ -28,7 +28,9 @@ export const lessonSchema = timestampsSchema.extend({
|
|
|
28
28
|
.array(z.object({ details: z.string() }))
|
|
29
29
|
.nullable(),
|
|
30
30
|
content_guidance: z.array(z.number()).nullable(),
|
|
31
|
-
copyright_content: z.array(z.object({
|
|
31
|
+
copyright_content: z.array(z.object({
|
|
32
|
+
copyright_info: z.string()
|
|
33
|
+
})).nullable(),
|
|
32
34
|
supervision_level: z.string().nullable(),
|
|
33
35
|
thirdpartycontent_list: z.array(z.number()).nullable(),
|
|
34
36
|
misconceptions_and_common_mistakes: z.array(z.object({})).nullable(),
|
|
@@ -23,7 +23,9 @@ export const syntheticUnitvariantsWithLessonIdsBaseSchema = z.object({
|
|
|
23
23
|
}),
|
|
24
24
|
expired: z.boolean(),
|
|
25
25
|
actions: actionsSchema.nullish(), // the optional should be removed once old mvs are retired
|
|
26
|
-
|
|
26
|
+
// TODO: Specify a sepearate schema
|
|
27
|
+
// the optional should be removed once old mvs are retired
|
|
28
|
+
features: z.looseObject({}).optional().nullable(),
|
|
27
29
|
});
|
|
28
30
|
|
|
29
31
|
export type SyntheticUnitvariantsWithLessonIdsBase = z.infer<
|