/*
 * 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";
import * as components from "../components/index.js";
/** @internal */
export const PostResultsForAcademicSessionForClassRequestBody$inboundSchema = z.object({
    results: z.array(components.Result$inboundSchema),
});
/** @internal */
export const PostResultsForAcademicSessionForClassRequestBody$outboundSchema = z.object({
    results: z.array(components.Result$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var PostResultsForAcademicSessionForClassRequestBody$;
(function (PostResultsForAcademicSessionForClassRequestBody$) {
    /** @deprecated use `PostResultsForAcademicSessionForClassRequestBody$inboundSchema` instead. */
    PostResultsForAcademicSessionForClassRequestBody$.inboundSchema = PostResultsForAcademicSessionForClassRequestBody$inboundSchema;
    /** @deprecated use `PostResultsForAcademicSessionForClassRequestBody$outboundSchema` instead. */
    PostResultsForAcademicSessionForClassRequestBody$.outboundSchema = PostResultsForAcademicSessionForClassRequestBody$outboundSchema;
})(PostResultsForAcademicSessionForClassRequestBody$ || (PostResultsForAcademicSessionForClassRequestBody$ = {}));
export function postResultsForAcademicSessionForClassRequestBodyToJSON(postResultsForAcademicSessionForClassRequestBody) {
    return JSON.stringify(PostResultsForAcademicSessionForClassRequestBody$outboundSchema.parse(postResultsForAcademicSessionForClassRequestBody));
}
export function postResultsForAcademicSessionForClassRequestBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => PostResultsForAcademicSessionForClassRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostResultsForAcademicSessionForClassRequestBody' from JSON`);
}
/** @internal */
export const PostResultsForAcademicSessionForClassRequest$inboundSchema = z.object({
    classSourcedId: z.string(),
    academicSessionSourcedId: z.string(),
    RequestBody: z.lazy(() => PostResultsForAcademicSessionForClassRequestBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
export const PostResultsForAcademicSessionForClassRequest$outboundSchema = z.object({
    classSourcedId: z.string(),
    academicSessionSourcedId: z.string(),
    requestBody: z.lazy(() => PostResultsForAcademicSessionForClassRequestBody$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 PostResultsForAcademicSessionForClassRequest$;
(function (PostResultsForAcademicSessionForClassRequest$) {
    /** @deprecated use `PostResultsForAcademicSessionForClassRequest$inboundSchema` instead. */
    PostResultsForAcademicSessionForClassRequest$.inboundSchema = PostResultsForAcademicSessionForClassRequest$inboundSchema;
    /** @deprecated use `PostResultsForAcademicSessionForClassRequest$outboundSchema` instead. */
    PostResultsForAcademicSessionForClassRequest$.outboundSchema = PostResultsForAcademicSessionForClassRequest$outboundSchema;
})(PostResultsForAcademicSessionForClassRequest$ || (PostResultsForAcademicSessionForClassRequest$ = {}));
export function postResultsForAcademicSessionForClassRequestToJSON(postResultsForAcademicSessionForClassRequest) {
    return JSON.stringify(PostResultsForAcademicSessionForClassRequest$outboundSchema.parse(postResultsForAcademicSessionForClassRequest));
}
export function postResultsForAcademicSessionForClassRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => PostResultsForAcademicSessionForClassRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostResultsForAcademicSessionForClassRequest' from JSON`);
}
/** @internal */
export const PostResultsForAcademicSessionForClassSourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
export const PostResultsForAcademicSessionForClassSourcedIdPairs$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 PostResultsForAcademicSessionForClassSourcedIdPairs$;
(function (PostResultsForAcademicSessionForClassSourcedIdPairs$) {
    /** @deprecated use `PostResultsForAcademicSessionForClassSourcedIdPairs$inboundSchema` instead. */
    PostResultsForAcademicSessionForClassSourcedIdPairs$.inboundSchema = PostResultsForAcademicSessionForClassSourcedIdPairs$inboundSchema;
    /** @deprecated use `PostResultsForAcademicSessionForClassSourcedIdPairs$outboundSchema` instead. */
    PostResultsForAcademicSessionForClassSourcedIdPairs$.outboundSchema = PostResultsForAcademicSessionForClassSourcedIdPairs$outboundSchema;
})(PostResultsForAcademicSessionForClassSourcedIdPairs$ || (PostResultsForAcademicSessionForClassSourcedIdPairs$ = {}));
export function postResultsForAcademicSessionForClassSourcedIdPairsToJSON(postResultsForAcademicSessionForClassSourcedIdPairs) {
    return JSON.stringify(PostResultsForAcademicSessionForClassSourcedIdPairs$outboundSchema.parse(postResultsForAcademicSessionForClassSourcedIdPairs));
}
export function postResultsForAcademicSessionForClassSourcedIdPairsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => PostResultsForAcademicSessionForClassSourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostResultsForAcademicSessionForClassSourcedIdPairs' from JSON`);
}
/** @internal */
export const PostResultsForAcademicSessionForClassResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => PostResultsForAcademicSessionForClassSourcedIdPairs$inboundSchema),
});
/** @internal */
export const PostResultsForAcademicSessionForClassResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => PostResultsForAcademicSessionForClassSourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var PostResultsForAcademicSessionForClassResponse$;
(function (PostResultsForAcademicSessionForClassResponse$) {
    /** @deprecated use `PostResultsForAcademicSessionForClassResponse$inboundSchema` instead. */
    PostResultsForAcademicSessionForClassResponse$.inboundSchema = PostResultsForAcademicSessionForClassResponse$inboundSchema;
    /** @deprecated use `PostResultsForAcademicSessionForClassResponse$outboundSchema` instead. */
    PostResultsForAcademicSessionForClassResponse$.outboundSchema = PostResultsForAcademicSessionForClassResponse$outboundSchema;
})(PostResultsForAcademicSessionForClassResponse$ || (PostResultsForAcademicSessionForClassResponse$ = {}));
export function postResultsForAcademicSessionForClassResponseToJSON(postResultsForAcademicSessionForClassResponse) {
    return JSON.stringify(PostResultsForAcademicSessionForClassResponse$outboundSchema.parse(postResultsForAcademicSessionForClassResponse));
}
export function postResultsForAcademicSessionForClassResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => PostResultsForAcademicSessionForClassResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostResultsForAcademicSessionForClassResponse' from JSON`);
}
//# sourceMappingURL=postresultsforacademicsessionforclass.js.map