"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.GetComponentResourceResponse$ = exports.GetComponentResourceResponse$outboundSchema = exports.GetComponentResourceResponse$inboundSchema = exports.GetComponentResourceComponentResource$ = exports.GetComponentResourceComponentResource$outboundSchema = exports.GetComponentResourceComponentResource$inboundSchema = exports.GetComponentResourceResource$ = exports.GetComponentResourceResource$outboundSchema = exports.GetComponentResourceResource$inboundSchema = exports.GetComponentResourceCourseComponent$ = exports.GetComponentResourceCourseComponent$outboundSchema = exports.GetComponentResourceCourseComponent$inboundSchema = exports.GetComponentResourceStatus$ = exports.GetComponentResourceStatus$outboundSchema = exports.GetComponentResourceStatus$inboundSchema = exports.GetComponentResourceRequest$ = exports.GetComponentResourceRequest$outboundSchema = exports.GetComponentResourceRequest$inboundSchema = exports.GetComponentResourceStatus = void 0;
exports.getComponentResourceRequestToJSON = getComponentResourceRequestToJSON;
exports.getComponentResourceRequestFromJSON = getComponentResourceRequestFromJSON;
exports.getComponentResourceCourseComponentToJSON = getComponentResourceCourseComponentToJSON;
exports.getComponentResourceCourseComponentFromJSON = getComponentResourceCourseComponentFromJSON;
exports.getComponentResourceResourceToJSON = getComponentResourceResourceToJSON;
exports.getComponentResourceResourceFromJSON = getComponentResourceResourceFromJSON;
exports.getComponentResourceComponentResourceToJSON = getComponentResourceComponentResourceToJSON;
exports.getComponentResourceComponentResourceFromJSON = getComponentResourceComponentResourceFromJSON;
exports.getComponentResourceResponseToJSON = getComponentResourceResponseToJSON;
exports.getComponentResourceResponseFromJSON = getComponentResourceResponseFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
exports.GetComponentResourceStatus = {
    Active: "active",
    Tobedeleted: "tobedeleted",
};
/** @internal */
exports.GetComponentResourceRequest$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.GetComponentResourceRequest$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 GetComponentResourceRequest$;
(function (GetComponentResourceRequest$) {
    /** @deprecated use `GetComponentResourceRequest$inboundSchema` instead. */
    GetComponentResourceRequest$.inboundSchema = exports.GetComponentResourceRequest$inboundSchema;
    /** @deprecated use `GetComponentResourceRequest$outboundSchema` instead. */
    GetComponentResourceRequest$.outboundSchema = exports.GetComponentResourceRequest$outboundSchema;
})(GetComponentResourceRequest$ || (exports.GetComponentResourceRequest$ = GetComponentResourceRequest$ = {}));
function getComponentResourceRequestToJSON(getComponentResourceRequest) {
    return JSON.stringify(exports.GetComponentResourceRequest$outboundSchema.parse(getComponentResourceRequest));
}
function getComponentResourceRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetComponentResourceRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetComponentResourceRequest' from JSON`);
}
/** @internal */
exports.GetComponentResourceStatus$inboundSchema = z.nativeEnum(exports.GetComponentResourceStatus);
/** @internal */
exports.GetComponentResourceStatus$outboundSchema = exports.GetComponentResourceStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetComponentResourceStatus$;
(function (GetComponentResourceStatus$) {
    /** @deprecated use `GetComponentResourceStatus$inboundSchema` instead. */
    GetComponentResourceStatus$.inboundSchema = exports.GetComponentResourceStatus$inboundSchema;
    /** @deprecated use `GetComponentResourceStatus$outboundSchema` instead. */
    GetComponentResourceStatus$.outboundSchema = exports.GetComponentResourceStatus$outboundSchema;
})(GetComponentResourceStatus$ || (exports.GetComponentResourceStatus$ = GetComponentResourceStatus$ = {}));
/** @internal */
exports.GetComponentResourceCourseComponent$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.GetComponentResourceCourseComponent$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 GetComponentResourceCourseComponent$;
(function (GetComponentResourceCourseComponent$) {
    /** @deprecated use `GetComponentResourceCourseComponent$inboundSchema` instead. */
    GetComponentResourceCourseComponent$.inboundSchema = exports.GetComponentResourceCourseComponent$inboundSchema;
    /** @deprecated use `GetComponentResourceCourseComponent$outboundSchema` instead. */
    GetComponentResourceCourseComponent$.outboundSchema = exports.GetComponentResourceCourseComponent$outboundSchema;
})(GetComponentResourceCourseComponent$ || (exports.GetComponentResourceCourseComponent$ = GetComponentResourceCourseComponent$ = {}));
function getComponentResourceCourseComponentToJSON(getComponentResourceCourseComponent) {
    return JSON.stringify(exports.GetComponentResourceCourseComponent$outboundSchema.parse(getComponentResourceCourseComponent));
}
function getComponentResourceCourseComponentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetComponentResourceCourseComponent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetComponentResourceCourseComponent' from JSON`);
}
/** @internal */
exports.GetComponentResourceResource$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
exports.GetComponentResourceResource$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 GetComponentResourceResource$;
(function (GetComponentResourceResource$) {
    /** @deprecated use `GetComponentResourceResource$inboundSchema` instead. */
    GetComponentResourceResource$.inboundSchema = exports.GetComponentResourceResource$inboundSchema;
    /** @deprecated use `GetComponentResourceResource$outboundSchema` instead. */
    GetComponentResourceResource$.outboundSchema = exports.GetComponentResourceResource$outboundSchema;
})(GetComponentResourceResource$ || (exports.GetComponentResourceResource$ = GetComponentResourceResource$ = {}));
function getComponentResourceResourceToJSON(getComponentResourceResource) {
    return JSON.stringify(exports.GetComponentResourceResource$outboundSchema.parse(getComponentResourceResource));
}
function getComponentResourceResourceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetComponentResourceResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetComponentResourceResource' from JSON`);
}
/** @internal */
exports.GetComponentResourceComponentResource$inboundSchema = z.object({
    sourcedId: z.string(),
    status: exports.GetComponentResourceStatus$inboundSchema,
    dateLastModified: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
    metadata: z.nullable(z.record(z.any())).optional(),
    courseComponent: z.lazy(() => exports.GetComponentResourceCourseComponent$inboundSchema),
    resource: z.lazy(() => exports.GetComponentResourceResource$inboundSchema),
    title: z.string(),
    sortOrder: z.number().default(0),
});
/** @internal */
exports.GetComponentResourceComponentResource$outboundSchema = z.object({
    sourcedId: z.string(),
    status: exports.GetComponentResourceStatus$outboundSchema,
    dateLastModified: z.date().transform(v => v.toISOString()).optional(),
    metadata: z.nullable(z.record(z.any())).optional(),
    courseComponent: z.lazy(() => exports.GetComponentResourceCourseComponent$outboundSchema),
    resource: z.lazy(() => exports.GetComponentResourceResource$outboundSchema),
    title: z.string(),
    sortOrder: z.number().default(0),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetComponentResourceComponentResource$;
(function (GetComponentResourceComponentResource$) {
    /** @deprecated use `GetComponentResourceComponentResource$inboundSchema` instead. */
    GetComponentResourceComponentResource$.inboundSchema = exports.GetComponentResourceComponentResource$inboundSchema;
    /** @deprecated use `GetComponentResourceComponentResource$outboundSchema` instead. */
    GetComponentResourceComponentResource$.outboundSchema = exports.GetComponentResourceComponentResource$outboundSchema;
})(GetComponentResourceComponentResource$ || (exports.GetComponentResourceComponentResource$ = GetComponentResourceComponentResource$ = {}));
function getComponentResourceComponentResourceToJSON(getComponentResourceComponentResource) {
    return JSON.stringify(exports.GetComponentResourceComponentResource$outboundSchema.parse(getComponentResourceComponentResource));
}
function getComponentResourceComponentResourceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetComponentResourceComponentResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetComponentResourceComponentResource' from JSON`);
}
/** @internal */
exports.GetComponentResourceResponse$inboundSchema = z.object({
    componentResource: z.lazy(() => exports.GetComponentResourceComponentResource$inboundSchema),
});
/** @internal */
exports.GetComponentResourceResponse$outboundSchema = z.object({
    componentResource: z.lazy(() => exports.GetComponentResourceComponentResource$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetComponentResourceResponse$;
(function (GetComponentResourceResponse$) {
    /** @deprecated use `GetComponentResourceResponse$inboundSchema` instead. */
    GetComponentResourceResponse$.inboundSchema = exports.GetComponentResourceResponse$inboundSchema;
    /** @deprecated use `GetComponentResourceResponse$outboundSchema` instead. */
    GetComponentResourceResponse$.outboundSchema = exports.GetComponentResourceResponse$outboundSchema;
})(GetComponentResourceResponse$ || (exports.GetComponentResourceResponse$ = GetComponentResourceResponse$ = {}));
function getComponentResourceResponseToJSON(getComponentResourceResponse) {
    return JSON.stringify(exports.GetComponentResourceResponse$outboundSchema.parse(getComponentResourceResponse));
}
function getComponentResourceResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetComponentResourceResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetComponentResourceResponse' from JSON`);
}
//# sourceMappingURL=getcomponentresource.js.map