{"version":3,"file":"syntheticProgrammesByYear.schema.cjs","sources":["../../../../../src/schema/published/syntheticProgrammesByYear/syntheticProgrammesByYear.schema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport zodToCamelCase from \"zod-to-camel-case\";\n\nimport { programmeFieldsSchema } from \"@/schema/public/components/programmeFields/programmeFields.schema\";\nimport { yearSlugs } from \"@/schema/public/components/base/base.schema\";\nimport { actionsSchema } from \"@/schema/published/components/actions/actions.schema\";\n\nexport const syntheticProgrammesByYearSchema = z.object({\n  year_slug: yearSlugs,\n  programme_slug: z.string(),\n  base_slug: z.string(),\n  is_legacy: z.boolean(),\n  programme_fields: programmeFieldsSchema,\n  actions: actionsSchema.nullish(), // the optional should be removed once old mvs are retired\n  features: z\n    .object({ nonCurriculum: z.boolean().optional() })\n    .optional()\n    .nullable(), // the optional should be removed once old mvs are retired\n});\nexport type SyntheticProgrammesByYear = z.infer<\n  typeof syntheticProgrammesByYearSchema\n>;\n\nexport const syntheticProgrammesByYearSchemaCamel = zodToCamelCase(\n  syntheticProgrammesByYearSchema,\n);\nexport type SyntheticProgrammesByYearCamel = z.infer<\n  typeof syntheticProgrammesByYearSchemaCamel\n>;\n"],"names":["syntheticProgrammesByYearSchema","z","object","year_slug","yearSlugs","programme_slug","string","base_slug","is_legacy","boolean","programme_fields","programmeFieldsSchema","actions","actionsSchema","nullish","features","nonCurriculum","optional","nullable","syntheticProgrammesByYearSchemaCamel","zodToCamelCase"],"mappings":"+TAOO,MAAMA,EAAkCC,EAAAA,EAAEC,OAAO,CACtDC,UAAWC,EAAAA,UACXC,eAAgBJ,EAAAA,EAAEK,SAClBC,UAAWN,EAAAA,EAAEK,SACbE,UAAWP,EAAAA,EAAEQ,UACbC,iBAAkBC,EAAAA,sBAClBC,QAASC,EAAAA,cAAcC,UACvBC,SAAUd,EAAAA,EACPC,OAAO,CAAEc,cAAef,EAAAA,EAAEQ,UAAUQ,aACpCA,WACAC,aAMQC,EAAuCC,EAAAA,QAClDpB"}