"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.AssignResourceToCourseRequest$ = exports.AssignResourceToCourseRequest$outboundSchema = exports.AssignResourceToCourseRequest$inboundSchema = exports.AssignResourceToCourseRequestBody$ = exports.AssignResourceToCourseRequestBody$outboundSchema = exports.AssignResourceToCourseRequestBody$inboundSchema = exports.AssignResourceToCourseResource$ = exports.AssignResourceToCourseResource$outboundSchema = exports.AssignResourceToCourseResource$inboundSchema = void 0;
exports.assignResourceToCourseResourceToJSON = assignResourceToCourseResourceToJSON;
exports.assignResourceToCourseResourceFromJSON = assignResourceToCourseResourceFromJSON;
exports.assignResourceToCourseRequestBodyToJSON = assignResourceToCourseRequestBodyToJSON;
exports.assignResourceToCourseRequestBodyFromJSON = assignResourceToCourseRequestBodyFromJSON;
exports.assignResourceToCourseRequestToJSON = assignResourceToCourseRequestToJSON;
exports.assignResourceToCourseRequestFromJSON = assignResourceToCourseRequestFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.AssignResourceToCourseResource$inboundSchema = z.object({
    sourcedId: z.string(),
    dateAssigned: z.string().optional(),
});
/** @internal */
exports.AssignResourceToCourseResource$outboundSchema = z.object({
    sourcedId: z.string(),
    dateAssigned: 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 AssignResourceToCourseResource$;
(function (AssignResourceToCourseResource$) {
    /** @deprecated use `AssignResourceToCourseResource$inboundSchema` instead. */
    AssignResourceToCourseResource$.inboundSchema = exports.AssignResourceToCourseResource$inboundSchema;
    /** @deprecated use `AssignResourceToCourseResource$outboundSchema` instead. */
    AssignResourceToCourseResource$.outboundSchema = exports.AssignResourceToCourseResource$outboundSchema;
})(AssignResourceToCourseResource$ || (exports.AssignResourceToCourseResource$ = AssignResourceToCourseResource$ = {}));
function assignResourceToCourseResourceToJSON(assignResourceToCourseResource) {
    return JSON.stringify(exports.AssignResourceToCourseResource$outboundSchema.parse(assignResourceToCourseResource));
}
function assignResourceToCourseResourceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignResourceToCourseResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToCourseResource' from JSON`);
}
/** @internal */
exports.AssignResourceToCourseRequestBody$inboundSchema = z.object({
    resource: z.lazy(() => exports.AssignResourceToCourseResource$inboundSchema),
});
/** @internal */
exports.AssignResourceToCourseRequestBody$outboundSchema = z.object({
    resource: z.lazy(() => exports.AssignResourceToCourseResource$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignResourceToCourseRequestBody$;
(function (AssignResourceToCourseRequestBody$) {
    /** @deprecated use `AssignResourceToCourseRequestBody$inboundSchema` instead. */
    AssignResourceToCourseRequestBody$.inboundSchema = exports.AssignResourceToCourseRequestBody$inboundSchema;
    /** @deprecated use `AssignResourceToCourseRequestBody$outboundSchema` instead. */
    AssignResourceToCourseRequestBody$.outboundSchema = exports.AssignResourceToCourseRequestBody$outboundSchema;
})(AssignResourceToCourseRequestBody$ || (exports.AssignResourceToCourseRequestBody$ = AssignResourceToCourseRequestBody$ = {}));
function assignResourceToCourseRequestBodyToJSON(assignResourceToCourseRequestBody) {
    return JSON.stringify(exports.AssignResourceToCourseRequestBody$outboundSchema.parse(assignResourceToCourseRequestBody));
}
function assignResourceToCourseRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignResourceToCourseRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToCourseRequestBody' from JSON`);
}
/** @internal */
exports.AssignResourceToCourseRequest$inboundSchema = z.object({
    courseSourcedId: z.string(),
    RequestBody: z.lazy(() => exports.AssignResourceToCourseRequestBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.AssignResourceToCourseRequest$outboundSchema = z.object({
    courseSourcedId: z.string(),
    requestBody: z.lazy(() => exports.AssignResourceToCourseRequestBody$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        requestBody: "RequestBody",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignResourceToCourseRequest$;
(function (AssignResourceToCourseRequest$) {
    /** @deprecated use `AssignResourceToCourseRequest$inboundSchema` instead. */
    AssignResourceToCourseRequest$.inboundSchema = exports.AssignResourceToCourseRequest$inboundSchema;
    /** @deprecated use `AssignResourceToCourseRequest$outboundSchema` instead. */
    AssignResourceToCourseRequest$.outboundSchema = exports.AssignResourceToCourseRequest$outboundSchema;
})(AssignResourceToCourseRequest$ || (exports.AssignResourceToCourseRequest$ = AssignResourceToCourseRequest$ = {}));
function assignResourceToCourseRequestToJSON(assignResourceToCourseRequest) {
    return JSON.stringify(exports.AssignResourceToCourseRequest$outboundSchema.parse(assignResourceToCourseRequest));
}
function assignResourceToCourseRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignResourceToCourseRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToCourseRequest' from JSON`);
}
//# sourceMappingURL=assignresourcetocourse.js.map