"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.GetCourseComponentResponse$ = exports.GetCourseComponentResponse$outboundSchema = exports.GetCourseComponentResponse$inboundSchema = exports.GetCourseComponentCourseComponent$ = exports.GetCourseComponentCourseComponent$outboundSchema = exports.GetCourseComponentCourseComponent$inboundSchema = exports.GetCourseComponentParent$ = exports.GetCourseComponentParent$outboundSchema = exports.GetCourseComponentParent$inboundSchema = exports.GetCourseComponentCourseComponentCourseComponent$ = exports.GetCourseComponentCourseComponentCourseComponent$outboundSchema = exports.GetCourseComponentCourseComponentCourseComponent$inboundSchema = exports.GetCourseComponentCourse$ = exports.GetCourseComponentCourse$outboundSchema = exports.GetCourseComponentCourse$inboundSchema = exports.GetCourseComponentStatus$ = exports.GetCourseComponentStatus$outboundSchema = exports.GetCourseComponentStatus$inboundSchema = exports.GetCourseComponentRequest$ = exports.GetCourseComponentRequest$outboundSchema = exports.GetCourseComponentRequest$inboundSchema = exports.GetCourseComponentStatus = void 0;
exports.getCourseComponentRequestToJSON = getCourseComponentRequestToJSON;
exports.getCourseComponentRequestFromJSON = getCourseComponentRequestFromJSON;
exports.getCourseComponentCourseToJSON = getCourseComponentCourseToJSON;
exports.getCourseComponentCourseFromJSON = getCourseComponentCourseFromJSON;
exports.getCourseComponentCourseComponentCourseComponentToJSON = getCourseComponentCourseComponentCourseComponentToJSON;
exports.getCourseComponentCourseComponentCourseComponentFromJSON = getCourseComponentCourseComponentCourseComponentFromJSON;
exports.getCourseComponentParentToJSON = getCourseComponentParentToJSON;
exports.getCourseComponentParentFromJSON = getCourseComponentParentFromJSON;
exports.getCourseComponentCourseComponentToJSON = getCourseComponentCourseComponentToJSON;
exports.getCourseComponentCourseComponentFromJSON = getCourseComponentCourseComponentFromJSON;
exports.getCourseComponentResponseToJSON = getCourseComponentResponseToJSON;
exports.getCourseComponentResponseFromJSON = getCourseComponentResponseFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
exports.GetCourseComponentStatus = {
    Active: "active",
    Tobedeleted: "tobedeleted",
};
/** @internal */
exports.GetCourseComponentRequest$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.GetCourseComponentRequest$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 GetCourseComponentRequest$;
(function (GetCourseComponentRequest$) {
    /** @deprecated use `GetCourseComponentRequest$inboundSchema` instead. */
    GetCourseComponentRequest$.inboundSchema = exports.GetCourseComponentRequest$inboundSchema;
    /** @deprecated use `GetCourseComponentRequest$outboundSchema` instead. */
    GetCourseComponentRequest$.outboundSchema = exports.GetCourseComponentRequest$outboundSchema;
})(GetCourseComponentRequest$ || (exports.GetCourseComponentRequest$ = GetCourseComponentRequest$ = {}));
function getCourseComponentRequestToJSON(getCourseComponentRequest) {
    return JSON.stringify(exports.GetCourseComponentRequest$outboundSchema.parse(getCourseComponentRequest));
}
function getCourseComponentRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetCourseComponentRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCourseComponentRequest' from JSON`);
}
/** @internal */
exports.GetCourseComponentStatus$inboundSchema = z.nativeEnum(exports.GetCourseComponentStatus);
/** @internal */
exports.GetCourseComponentStatus$outboundSchema = exports.GetCourseComponentStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetCourseComponentStatus$;
(function (GetCourseComponentStatus$) {
    /** @deprecated use `GetCourseComponentStatus$inboundSchema` instead. */
    GetCourseComponentStatus$.inboundSchema = exports.GetCourseComponentStatus$inboundSchema;
    /** @deprecated use `GetCourseComponentStatus$outboundSchema` instead. */
    GetCourseComponentStatus$.outboundSchema = exports.GetCourseComponentStatus$outboundSchema;
})(GetCourseComponentStatus$ || (exports.GetCourseComponentStatus$ = GetCourseComponentStatus$ = {}));
/** @internal */
exports.GetCourseComponentCourse$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.GetCourseComponentCourse$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 GetCourseComponentCourse$;
(function (GetCourseComponentCourse$) {
    /** @deprecated use `GetCourseComponentCourse$inboundSchema` instead. */
    GetCourseComponentCourse$.inboundSchema = exports.GetCourseComponentCourse$inboundSchema;
    /** @deprecated use `GetCourseComponentCourse$outboundSchema` instead. */
    GetCourseComponentCourse$.outboundSchema = exports.GetCourseComponentCourse$outboundSchema;
})(GetCourseComponentCourse$ || (exports.GetCourseComponentCourse$ = GetCourseComponentCourse$ = {}));
function getCourseComponentCourseToJSON(getCourseComponentCourse) {
    return JSON.stringify(exports.GetCourseComponentCourse$outboundSchema.parse(getCourseComponentCourse));
}
function getCourseComponentCourseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetCourseComponentCourse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCourseComponentCourse' from JSON`);
}
/** @internal */
exports.GetCourseComponentCourseComponentCourseComponent$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.GetCourseComponentCourseComponentCourseComponent$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 GetCourseComponentCourseComponentCourseComponent$;
(function (GetCourseComponentCourseComponentCourseComponent$) {
    /** @deprecated use `GetCourseComponentCourseComponentCourseComponent$inboundSchema` instead. */
    GetCourseComponentCourseComponentCourseComponent$.inboundSchema = exports.GetCourseComponentCourseComponentCourseComponent$inboundSchema;
    /** @deprecated use `GetCourseComponentCourseComponentCourseComponent$outboundSchema` instead. */
    GetCourseComponentCourseComponentCourseComponent$.outboundSchema = exports.GetCourseComponentCourseComponentCourseComponent$outboundSchema;
})(GetCourseComponentCourseComponentCourseComponent$ || (exports.GetCourseComponentCourseComponentCourseComponent$ = GetCourseComponentCourseComponentCourseComponent$ = {}));
function getCourseComponentCourseComponentCourseComponentToJSON(getCourseComponentCourseComponentCourseComponent) {
    return JSON.stringify(exports.GetCourseComponentCourseComponentCourseComponent$outboundSchema.parse(getCourseComponentCourseComponentCourseComponent));
}
function getCourseComponentCourseComponentCourseComponentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetCourseComponentCourseComponentCourseComponent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCourseComponentCourseComponentCourseComponent' from JSON`);
}
/** @internal */
exports.GetCourseComponentParent$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.GetCourseComponentParent$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 GetCourseComponentParent$;
(function (GetCourseComponentParent$) {
    /** @deprecated use `GetCourseComponentParent$inboundSchema` instead. */
    GetCourseComponentParent$.inboundSchema = exports.GetCourseComponentParent$inboundSchema;
    /** @deprecated use `GetCourseComponentParent$outboundSchema` instead. */
    GetCourseComponentParent$.outboundSchema = exports.GetCourseComponentParent$outboundSchema;
})(GetCourseComponentParent$ || (exports.GetCourseComponentParent$ = GetCourseComponentParent$ = {}));
function getCourseComponentParentToJSON(getCourseComponentParent) {
    return JSON.stringify(exports.GetCourseComponentParent$outboundSchema.parse(getCourseComponentParent));
}
function getCourseComponentParentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetCourseComponentParent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCourseComponentParent' from JSON`);
}
/** @internal */
exports.GetCourseComponentCourseComponent$inboundSchema = z.object({
    sourcedId: z.string().optional(),
    status: exports.GetCourseComponentStatus$inboundSchema,
    dateLastModified: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
    metadata: z.nullable(z.record(z.any())).optional(),
    course: z.lazy(() => exports.GetCourseComponentCourse$inboundSchema),
    courseComponent: z.nullable(z.lazy(() => exports.GetCourseComponentCourseComponentCourseComponent$inboundSchema)).optional(),
    parent: z.nullable(z.lazy(() => exports.GetCourseComponentParent$inboundSchema))
        .optional(),
    title: z.string(),
    sortOrder: z.number(),
    prerequisites: z.nullable(z.array(z.string())).optional(),
    prerequisiteCriteria: z.nullable(z.string()).optional(),
    unlockDate: z.string(),
});
/** @internal */
exports.GetCourseComponentCourseComponent$outboundSchema = z.object({
    sourcedId: z.string().optional(),
    status: exports.GetCourseComponentStatus$outboundSchema,
    dateLastModified: z.date().transform(v => v.toISOString()).optional(),
    metadata: z.nullable(z.record(z.any())).optional(),
    course: z.lazy(() => exports.GetCourseComponentCourse$outboundSchema),
    courseComponent: z.nullable(z.lazy(() => exports.GetCourseComponentCourseComponentCourseComponent$outboundSchema)).optional(),
    parent: z.nullable(z.lazy(() => exports.GetCourseComponentParent$outboundSchema))
        .optional(),
    title: z.string(),
    sortOrder: z.number(),
    prerequisites: z.nullable(z.array(z.string())).optional(),
    prerequisiteCriteria: z.nullable(z.string()).optional(),
    unlockDate: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetCourseComponentCourseComponent$;
(function (GetCourseComponentCourseComponent$) {
    /** @deprecated use `GetCourseComponentCourseComponent$inboundSchema` instead. */
    GetCourseComponentCourseComponent$.inboundSchema = exports.GetCourseComponentCourseComponent$inboundSchema;
    /** @deprecated use `GetCourseComponentCourseComponent$outboundSchema` instead. */
    GetCourseComponentCourseComponent$.outboundSchema = exports.GetCourseComponentCourseComponent$outboundSchema;
})(GetCourseComponentCourseComponent$ || (exports.GetCourseComponentCourseComponent$ = GetCourseComponentCourseComponent$ = {}));
function getCourseComponentCourseComponentToJSON(getCourseComponentCourseComponent) {
    return JSON.stringify(exports.GetCourseComponentCourseComponent$outboundSchema.parse(getCourseComponentCourseComponent));
}
function getCourseComponentCourseComponentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetCourseComponentCourseComponent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCourseComponentCourseComponent' from JSON`);
}
/** @internal */
exports.GetCourseComponentResponse$inboundSchema = z.object({
    courseComponent: z.lazy(() => exports.GetCourseComponentCourseComponent$inboundSchema),
});
/** @internal */
exports.GetCourseComponentResponse$outboundSchema = z.object({
    courseComponent: z.lazy(() => exports.GetCourseComponentCourseComponent$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetCourseComponentResponse$;
(function (GetCourseComponentResponse$) {
    /** @deprecated use `GetCourseComponentResponse$inboundSchema` instead. */
    GetCourseComponentResponse$.inboundSchema = exports.GetCourseComponentResponse$inboundSchema;
    /** @deprecated use `GetCourseComponentResponse$outboundSchema` instead. */
    GetCourseComponentResponse$.outboundSchema = exports.GetCourseComponentResponse$outboundSchema;
})(GetCourseComponentResponse$ || (exports.GetCourseComponentResponse$ = GetCourseComponentResponse$ = {}));
function getCourseComponentResponseToJSON(getCourseComponentResponse) {
    return JSON.stringify(exports.GetCourseComponentResponse$outboundSchema.parse(getCourseComponentResponse));
}
function getCourseComponentResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetCourseComponentResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCourseComponentResponse' from JSON`);
}
//# sourceMappingURL=getcoursecomponent.js.map