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