/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const GetSubjectProgressRequest$inboundSchema = z.object({
    student: z.string(),
    subject: z.string(),
});
/** @internal */
export const GetSubjectProgressRequest$outboundSchema = z.object({
    student: z.string(),
    subject: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetSubjectProgressRequest$;
(function (GetSubjectProgressRequest$) {
    /** @deprecated use `GetSubjectProgressRequest$inboundSchema` instead. */
    GetSubjectProgressRequest$.inboundSchema = GetSubjectProgressRequest$inboundSchema;
    /** @deprecated use `GetSubjectProgressRequest$outboundSchema` instead. */
    GetSubjectProgressRequest$.outboundSchema = GetSubjectProgressRequest$outboundSchema;
})(GetSubjectProgressRequest$ || (GetSubjectProgressRequest$ = {}));
export function getSubjectProgressRequestToJSON(getSubjectProgressRequest) {
    return JSON.stringify(GetSubjectProgressRequest$outboundSchema.parse(getSubjectProgressRequest));
}
export function getSubjectProgressRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetSubjectProgressRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSubjectProgressRequest' from JSON`);
}
/** @internal */
export const GetSubjectProgressCourse$inboundSchema = z.object({
    courseCode: z.nullable(z.string()),
    dateLastModified: z.string(),
    grades: z.nullable(z.array(z.string())),
    level: z.nullable(z.string()),
    orgSourcedId: z.string(),
    sourcedId: z.string(),
    status: z.string(),
    subjects: z.nullable(z.array(z.string())),
    title: z.string(),
});
/** @internal */
export const GetSubjectProgressCourse$outboundSchema = z.object({
    courseCode: z.nullable(z.string()),
    dateLastModified: z.string(),
    grades: z.nullable(z.array(z.string())),
    level: z.nullable(z.string()),
    orgSourcedId: z.string(),
    sourcedId: z.string(),
    status: z.string(),
    subjects: z.nullable(z.array(z.string())),
    title: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetSubjectProgressCourse$;
(function (GetSubjectProgressCourse$) {
    /** @deprecated use `GetSubjectProgressCourse$inboundSchema` instead. */
    GetSubjectProgressCourse$.inboundSchema = GetSubjectProgressCourse$inboundSchema;
    /** @deprecated use `GetSubjectProgressCourse$outboundSchema` instead. */
    GetSubjectProgressCourse$.outboundSchema = GetSubjectProgressCourse$outboundSchema;
})(GetSubjectProgressCourse$ || (GetSubjectProgressCourse$ = {}));
export function getSubjectProgressCourseToJSON(getSubjectProgressCourse) {
    return JSON.stringify(GetSubjectProgressCourse$outboundSchema.parse(getSubjectProgressCourse));
}
export function getSubjectProgressCourseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetSubjectProgressCourse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSubjectProgressCourse' from JSON`);
}
/** @internal */
export const Progress$inboundSchema = z.object({
    course: z.lazy(() => GetSubjectProgressCourse$inboundSchema),
    inEnrolled: z.boolean(),
    hasUsedTestOut: z.boolean(),
    testOutLessonId: z.nullable(z.string()),
    completedLessons: z.number(),
    totalLessons: z.number(),
    totalAttainableXp: z.number(),
    totalXpEarned: z.number(),
});
/** @internal */
export const Progress$outboundSchema = z.object({
    course: z.lazy(() => GetSubjectProgressCourse$outboundSchema),
    inEnrolled: z.boolean(),
    hasUsedTestOut: z.boolean(),
    testOutLessonId: z.nullable(z.string()),
    completedLessons: z.number(),
    totalLessons: z.number(),
    totalAttainableXp: z.number(),
    totalXpEarned: z.number(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var Progress$;
(function (Progress$) {
    /** @deprecated use `Progress$inboundSchema` instead. */
    Progress$.inboundSchema = Progress$inboundSchema;
    /** @deprecated use `Progress$outboundSchema` instead. */
    Progress$.outboundSchema = Progress$outboundSchema;
})(Progress$ || (Progress$ = {}));
export function progressToJSON(progress) {
    return JSON.stringify(Progress$outboundSchema.parse(progress));
}
export function progressFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Progress$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Progress' from JSON`);
}
/** @internal */
export const GetSubjectProgressResponse$inboundSchema = z.object({
    progress: z.array(z.lazy(() => Progress$inboundSchema)),
});
/** @internal */
export const GetSubjectProgressResponse$outboundSchema = z.object({
    progress: z.array(z.lazy(() => Progress$outboundSchema)),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetSubjectProgressResponse$;
(function (GetSubjectProgressResponse$) {
    /** @deprecated use `GetSubjectProgressResponse$inboundSchema` instead. */
    GetSubjectProgressResponse$.inboundSchema = GetSubjectProgressResponse$inboundSchema;
    /** @deprecated use `GetSubjectProgressResponse$outboundSchema` instead. */
    GetSubjectProgressResponse$.outboundSchema = GetSubjectProgressResponse$outboundSchema;
})(GetSubjectProgressResponse$ || (GetSubjectProgressResponse$ = {}));
export function getSubjectProgressResponseToJSON(getSubjectProgressResponse) {
    return JSON.stringify(GetSubjectProgressResponse$outboundSchema.parse(getSubjectProgressResponse));
}
export function getSubjectProgressResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetSubjectProgressResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSubjectProgressResponse' from JSON`);
}
//# sourceMappingURL=getsubjectprogress.js.map