"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetSubjectProgressResponse$ = exports.GetSubjectProgressResponse$outboundSchema = exports.GetSubjectProgressResponse$inboundSchema = exports.Progress$ = exports.Progress$outboundSchema = exports.Progress$inboundSchema = exports.GetSubjectProgressCourse$ = exports.GetSubjectProgressCourse$outboundSchema = exports.GetSubjectProgressCourse$inboundSchema = exports.GetSubjectProgressRequest$ = exports.GetSubjectProgressRequest$outboundSchema = exports.GetSubjectProgressRequest$inboundSchema = void 0;
exports.getSubjectProgressRequestToJSON = getSubjectProgressRequestToJSON;
exports.getSubjectProgressRequestFromJSON = getSubjectProgressRequestFromJSON;
exports.getSubjectProgressCourseToJSON = getSubjectProgressCourseToJSON;
exports.getSubjectProgressCourseFromJSON = getSubjectProgressCourseFromJSON;
exports.progressToJSON = progressToJSON;
exports.progressFromJSON = progressFromJSON;
exports.getSubjectProgressResponseToJSON = getSubjectProgressResponseToJSON;
exports.getSubjectProgressResponseFromJSON = getSubjectProgressResponseFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.GetSubjectProgressRequest$inboundSchema = z.object({
    student: z.string(),
    subject: z.string(),
});
/** @internal */
exports.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.
 */
var GetSubjectProgressRequest$;
(function (GetSubjectProgressRequest$) {
    /** @deprecated use `GetSubjectProgressRequest$inboundSchema` instead. */
    GetSubjectProgressRequest$.inboundSchema = exports.GetSubjectProgressRequest$inboundSchema;
    /** @deprecated use `GetSubjectProgressRequest$outboundSchema` instead. */
    GetSubjectProgressRequest$.outboundSchema = exports.GetSubjectProgressRequest$outboundSchema;
})(GetSubjectProgressRequest$ || (exports.GetSubjectProgressRequest$ = GetSubjectProgressRequest$ = {}));
function getSubjectProgressRequestToJSON(getSubjectProgressRequest) {
    return JSON.stringify(exports.GetSubjectProgressRequest$outboundSchema.parse(getSubjectProgressRequest));
}
function getSubjectProgressRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetSubjectProgressRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSubjectProgressRequest' from JSON`);
}
/** @internal */
exports.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 */
exports.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.
 */
var GetSubjectProgressCourse$;
(function (GetSubjectProgressCourse$) {
    /** @deprecated use `GetSubjectProgressCourse$inboundSchema` instead. */
    GetSubjectProgressCourse$.inboundSchema = exports.GetSubjectProgressCourse$inboundSchema;
    /** @deprecated use `GetSubjectProgressCourse$outboundSchema` instead. */
    GetSubjectProgressCourse$.outboundSchema = exports.GetSubjectProgressCourse$outboundSchema;
})(GetSubjectProgressCourse$ || (exports.GetSubjectProgressCourse$ = GetSubjectProgressCourse$ = {}));
function getSubjectProgressCourseToJSON(getSubjectProgressCourse) {
    return JSON.stringify(exports.GetSubjectProgressCourse$outboundSchema.parse(getSubjectProgressCourse));
}
function getSubjectProgressCourseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetSubjectProgressCourse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSubjectProgressCourse' from JSON`);
}
/** @internal */
exports.Progress$inboundSchema = z.object({
    course: z.lazy(() => exports.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 */
exports.Progress$outboundSchema = z.object({
    course: z.lazy(() => exports.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.
 */
var Progress$;
(function (Progress$) {
    /** @deprecated use `Progress$inboundSchema` instead. */
    Progress$.inboundSchema = exports.Progress$inboundSchema;
    /** @deprecated use `Progress$outboundSchema` instead. */
    Progress$.outboundSchema = exports.Progress$outboundSchema;
})(Progress$ || (exports.Progress$ = Progress$ = {}));
function progressToJSON(progress) {
    return JSON.stringify(exports.Progress$outboundSchema.parse(progress));
}
function progressFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Progress$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Progress' from JSON`);
}
/** @internal */
exports.GetSubjectProgressResponse$inboundSchema = z.object({
    progress: z.array(z.lazy(() => exports.Progress$inboundSchema)),
});
/** @internal */
exports.GetSubjectProgressResponse$outboundSchema = z.object({
    progress: z.array(z.lazy(() => exports.Progress$outboundSchema)),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetSubjectProgressResponse$;
(function (GetSubjectProgressResponse$) {
    /** @deprecated use `GetSubjectProgressResponse$inboundSchema` instead. */
    GetSubjectProgressResponse$.inboundSchema = exports.GetSubjectProgressResponse$inboundSchema;
    /** @deprecated use `GetSubjectProgressResponse$outboundSchema` instead. */
    GetSubjectProgressResponse$.outboundSchema = exports.GetSubjectProgressResponse$outboundSchema;
})(GetSubjectProgressResponse$ || (exports.GetSubjectProgressResponse$ = GetSubjectProgressResponse$ = {}));
function getSubjectProgressResponseToJSON(getSubjectProgressResponse) {
    return JSON.stringify(exports.GetSubjectProgressResponse$outboundSchema.parse(getSubjectProgressResponse));
}
function getSubjectProgressResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetSubjectProgressResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSubjectProgressResponse' from JSON`);
}
//# sourceMappingURL=getsubjectprogress.js.map