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