/*
 * 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 AssignResourceToClassResource$inboundSchema = z.object({
    sourcedId: z.string(),
    dateAssigned: z.string().optional(),
});
/** @internal */
export const AssignResourceToClassResource$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 AssignResourceToClassResource$;
(function (AssignResourceToClassResource$) {
    /** @deprecated use `AssignResourceToClassResource$inboundSchema` instead. */
    AssignResourceToClassResource$.inboundSchema = AssignResourceToClassResource$inboundSchema;
    /** @deprecated use `AssignResourceToClassResource$outboundSchema` instead. */
    AssignResourceToClassResource$.outboundSchema = AssignResourceToClassResource$outboundSchema;
})(AssignResourceToClassResource$ || (AssignResourceToClassResource$ = {}));
export function assignResourceToClassResourceToJSON(assignResourceToClassResource) {
    return JSON.stringify(AssignResourceToClassResource$outboundSchema.parse(assignResourceToClassResource));
}
export function assignResourceToClassResourceFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AssignResourceToClassResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToClassResource' from JSON`);
}
/** @internal */
export const AssignResourceToClassRequestBody$inboundSchema = z.object({
    resource: z.lazy(() => AssignResourceToClassResource$inboundSchema),
});
/** @internal */
export const AssignResourceToClassRequestBody$outboundSchema = z.object({
    resource: z.lazy(() => AssignResourceToClassResource$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AssignResourceToClassRequestBody$;
(function (AssignResourceToClassRequestBody$) {
    /** @deprecated use `AssignResourceToClassRequestBody$inboundSchema` instead. */
    AssignResourceToClassRequestBody$.inboundSchema = AssignResourceToClassRequestBody$inboundSchema;
    /** @deprecated use `AssignResourceToClassRequestBody$outboundSchema` instead. */
    AssignResourceToClassRequestBody$.outboundSchema = AssignResourceToClassRequestBody$outboundSchema;
})(AssignResourceToClassRequestBody$ || (AssignResourceToClassRequestBody$ = {}));
export function assignResourceToClassRequestBodyToJSON(assignResourceToClassRequestBody) {
    return JSON.stringify(AssignResourceToClassRequestBody$outboundSchema.parse(assignResourceToClassRequestBody));
}
export function assignResourceToClassRequestBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AssignResourceToClassRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToClassRequestBody' from JSON`);
}
/** @internal */
export const AssignResourceToClassRequest$inboundSchema = z.object({
    classSourcedId: z.string(),
    RequestBody: z.lazy(() => AssignResourceToClassRequestBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
export const AssignResourceToClassRequest$outboundSchema = z.object({
    classSourcedId: z.string(),
    requestBody: z.lazy(() => AssignResourceToClassRequestBody$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 AssignResourceToClassRequest$;
(function (AssignResourceToClassRequest$) {
    /** @deprecated use `AssignResourceToClassRequest$inboundSchema` instead. */
    AssignResourceToClassRequest$.inboundSchema = AssignResourceToClassRequest$inboundSchema;
    /** @deprecated use `AssignResourceToClassRequest$outboundSchema` instead. */
    AssignResourceToClassRequest$.outboundSchema = AssignResourceToClassRequest$outboundSchema;
})(AssignResourceToClassRequest$ || (AssignResourceToClassRequest$ = {}));
export function assignResourceToClassRequestToJSON(assignResourceToClassRequest) {
    return JSON.stringify(AssignResourceToClassRequest$outboundSchema.parse(assignResourceToClassRequest));
}
export function assignResourceToClassRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AssignResourceToClassRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToClassRequest' from JSON`);
}
/** @internal */
export const AssignResourceToClassSourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
export const AssignResourceToClassSourcedIdPairs$outboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AssignResourceToClassSourcedIdPairs$;
(function (AssignResourceToClassSourcedIdPairs$) {
    /** @deprecated use `AssignResourceToClassSourcedIdPairs$inboundSchema` instead. */
    AssignResourceToClassSourcedIdPairs$.inboundSchema = AssignResourceToClassSourcedIdPairs$inboundSchema;
    /** @deprecated use `AssignResourceToClassSourcedIdPairs$outboundSchema` instead. */
    AssignResourceToClassSourcedIdPairs$.outboundSchema = AssignResourceToClassSourcedIdPairs$outboundSchema;
})(AssignResourceToClassSourcedIdPairs$ || (AssignResourceToClassSourcedIdPairs$ = {}));
export function assignResourceToClassSourcedIdPairsToJSON(assignResourceToClassSourcedIdPairs) {
    return JSON.stringify(AssignResourceToClassSourcedIdPairs$outboundSchema.parse(assignResourceToClassSourcedIdPairs));
}
export function assignResourceToClassSourcedIdPairsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AssignResourceToClassSourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToClassSourcedIdPairs' from JSON`);
}
/** @internal */
export const AssignResourceToClassResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => AssignResourceToClassSourcedIdPairs$inboundSchema),
});
/** @internal */
export const AssignResourceToClassResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => AssignResourceToClassSourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AssignResourceToClassResponse$;
(function (AssignResourceToClassResponse$) {
    /** @deprecated use `AssignResourceToClassResponse$inboundSchema` instead. */
    AssignResourceToClassResponse$.inboundSchema = AssignResourceToClassResponse$inboundSchema;
    /** @deprecated use `AssignResourceToClassResponse$outboundSchema` instead. */
    AssignResourceToClassResponse$.outboundSchema = AssignResourceToClassResponse$outboundSchema;
})(AssignResourceToClassResponse$ || (AssignResourceToClassResponse$ = {}));
export function assignResourceToClassResponseToJSON(assignResourceToClassResponse) {
    return JSON.stringify(AssignResourceToClassResponse$outboundSchema.parse(assignResourceToClassResponse));
}
export function assignResourceToClassResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AssignResourceToClassResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToClassResponse' from JSON`);
}
//# sourceMappingURL=assignresourcetoclass.js.map