"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.GetCourseResponse$ = exports.GetCourseResponse$outboundSchema = exports.GetCourseResponse$inboundSchema = exports.GetCourseCourse$ = exports.GetCourseCourse$outboundSchema = exports.GetCourseCourse$inboundSchema = exports.GetCourseOrg$ = exports.GetCourseOrg$outboundSchema = exports.GetCourseOrg$inboundSchema = exports.GetCourseAcademicSession$ = exports.GetCourseAcademicSession$outboundSchema = exports.GetCourseAcademicSession$inboundSchema = exports.GetCourseStatus$ = exports.GetCourseStatus$outboundSchema = exports.GetCourseStatus$inboundSchema = exports.GetCourseRequest$ = exports.GetCourseRequest$outboundSchema = exports.GetCourseRequest$inboundSchema = exports.GetCourseStatus = void 0;
exports.getCourseRequestToJSON = getCourseRequestToJSON;
exports.getCourseRequestFromJSON = getCourseRequestFromJSON;
exports.getCourseAcademicSessionToJSON = getCourseAcademicSessionToJSON;
exports.getCourseAcademicSessionFromJSON = getCourseAcademicSessionFromJSON;
exports.getCourseOrgToJSON = getCourseOrgToJSON;
exports.getCourseOrgFromJSON = getCourseOrgFromJSON;
exports.getCourseCourseToJSON = getCourseCourseToJSON;
exports.getCourseCourseFromJSON = getCourseCourseFromJSON;
exports.getCourseResponseToJSON = getCourseResponseToJSON;
exports.getCourseResponseFromJSON = getCourseResponseFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
exports.GetCourseStatus = {
    Active: "active",
    Tobedeleted: "tobedeleted",
};
/** @internal */
exports.GetCourseRequest$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.GetCourseRequest$outboundSchema = z.object({
    sourcedId: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetCourseRequest$;
(function (GetCourseRequest$) {
    /** @deprecated use `GetCourseRequest$inboundSchema` instead. */
    GetCourseRequest$.inboundSchema = exports.GetCourseRequest$inboundSchema;
    /** @deprecated use `GetCourseRequest$outboundSchema` instead. */
    GetCourseRequest$.outboundSchema = exports.GetCourseRequest$outboundSchema;
})(GetCourseRequest$ || (exports.GetCourseRequest$ = GetCourseRequest$ = {}));
function getCourseRequestToJSON(getCourseRequest) {
    return JSON.stringify(exports.GetCourseRequest$outboundSchema.parse(getCourseRequest));
}
function getCourseRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetCourseRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCourseRequest' from JSON`);
}
/** @internal */
exports.GetCourseStatus$inboundSchema = z.nativeEnum(exports.GetCourseStatus);
/** @internal */
exports.GetCourseStatus$outboundSchema = exports.GetCourseStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetCourseStatus$;
(function (GetCourseStatus$) {
    /** @deprecated use `GetCourseStatus$inboundSchema` instead. */
    GetCourseStatus$.inboundSchema = exports.GetCourseStatus$inboundSchema;
    /** @deprecated use `GetCourseStatus$outboundSchema` instead. */
    GetCourseStatus$.outboundSchema = exports.GetCourseStatus$outboundSchema;
})(GetCourseStatus$ || (exports.GetCourseStatus$ = GetCourseStatus$ = {}));
/** @internal */
exports.GetCourseAcademicSession$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.GetCourseAcademicSession$outboundSchema = z.object({
    sourcedId: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetCourseAcademicSession$;
(function (GetCourseAcademicSession$) {
    /** @deprecated use `GetCourseAcademicSession$inboundSchema` instead. */
    GetCourseAcademicSession$.inboundSchema = exports.GetCourseAcademicSession$inboundSchema;
    /** @deprecated use `GetCourseAcademicSession$outboundSchema` instead. */
    GetCourseAcademicSession$.outboundSchema = exports.GetCourseAcademicSession$outboundSchema;
})(GetCourseAcademicSession$ || (exports.GetCourseAcademicSession$ = GetCourseAcademicSession$ = {}));
function getCourseAcademicSessionToJSON(getCourseAcademicSession) {
    return JSON.stringify(exports.GetCourseAcademicSession$outboundSchema.parse(getCourseAcademicSession));
}
function getCourseAcademicSessionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetCourseAcademicSession$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCourseAcademicSession' from JSON`);
}
/** @internal */
exports.GetCourseOrg$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.GetCourseOrg$outboundSchema = z.object({
    sourcedId: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetCourseOrg$;
(function (GetCourseOrg$) {
    /** @deprecated use `GetCourseOrg$inboundSchema` instead. */
    GetCourseOrg$.inboundSchema = exports.GetCourseOrg$inboundSchema;
    /** @deprecated use `GetCourseOrg$outboundSchema` instead. */
    GetCourseOrg$.outboundSchema = exports.GetCourseOrg$outboundSchema;
})(GetCourseOrg$ || (exports.GetCourseOrg$ = GetCourseOrg$ = {}));
function getCourseOrgToJSON(getCourseOrg) {
    return JSON.stringify(exports.GetCourseOrg$outboundSchema.parse(getCourseOrg));
}
function getCourseOrgFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetCourseOrg$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCourseOrg' from JSON`);
}
/** @internal */
exports.GetCourseCourse$inboundSchema = z.object({
    sourcedId: z.string().optional(),
    status: exports.GetCourseStatus$inboundSchema,
    dateLastModified: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
    metadata: z.nullable(z.record(z.any())).optional(),
    title: z.string(),
    academicSession: z.nullable(z.lazy(() => exports.GetCourseAcademicSession$inboundSchema)).optional(),
    courseCode: z.nullable(z.string()).optional(),
    grades: z.nullable(z.array(z.string())).optional(),
    subjects: z.nullable(z.array(z.string())).optional(),
    subjectCodes: z.nullable(z.array(z.string())).optional(),
    org: z.lazy(() => exports.GetCourseOrg$inboundSchema),
    level: z.nullable(z.string()).optional(),
    gradingScheme: z.nullable(z.string()).optional(),
});
/** @internal */
exports.GetCourseCourse$outboundSchema = z.object({
    sourcedId: z.string().optional(),
    status: exports.GetCourseStatus$outboundSchema,
    dateLastModified: z.date().transform(v => v.toISOString()).optional(),
    metadata: z.nullable(z.record(z.any())).optional(),
    title: z.string(),
    academicSession: z.nullable(z.lazy(() => exports.GetCourseAcademicSession$outboundSchema)).optional(),
    courseCode: z.nullable(z.string()).optional(),
    grades: z.nullable(z.array(z.string())).optional(),
    subjects: z.nullable(z.array(z.string())).optional(),
    subjectCodes: z.nullable(z.array(z.string())).optional(),
    org: z.lazy(() => exports.GetCourseOrg$outboundSchema),
    level: z.nullable(z.string()).optional(),
    gradingScheme: z.nullable(z.string()).optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetCourseCourse$;
(function (GetCourseCourse$) {
    /** @deprecated use `GetCourseCourse$inboundSchema` instead. */
    GetCourseCourse$.inboundSchema = exports.GetCourseCourse$inboundSchema;
    /** @deprecated use `GetCourseCourse$outboundSchema` instead. */
    GetCourseCourse$.outboundSchema = exports.GetCourseCourse$outboundSchema;
})(GetCourseCourse$ || (exports.GetCourseCourse$ = GetCourseCourse$ = {}));
function getCourseCourseToJSON(getCourseCourse) {
    return JSON.stringify(exports.GetCourseCourse$outboundSchema.parse(getCourseCourse));
}
function getCourseCourseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetCourseCourse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCourseCourse' from JSON`);
}
/** @internal */
exports.GetCourseResponse$inboundSchema = z.object({
    course: z.lazy(() => exports.GetCourseCourse$inboundSchema),
});
/** @internal */
exports.GetCourseResponse$outboundSchema = z.object({
    course: z.lazy(() => exports.GetCourseCourse$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetCourseResponse$;
(function (GetCourseResponse$) {
    /** @deprecated use `GetCourseResponse$inboundSchema` instead. */
    GetCourseResponse$.inboundSchema = exports.GetCourseResponse$inboundSchema;
    /** @deprecated use `GetCourseResponse$outboundSchema` instead. */
    GetCourseResponse$.outboundSchema = exports.GetCourseResponse$outboundSchema;
})(GetCourseResponse$ || (exports.GetCourseResponse$ = GetCourseResponse$ = {}));
function getCourseResponseToJSON(getCourseResponse) {
    return JSON.stringify(exports.GetCourseResponse$outboundSchema.parse(getCourseResponse));
}
function getCourseResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetCourseResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCourseResponse' from JSON`);
}
//# sourceMappingURL=getcourse.js.map