"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 (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.atsOrderAssessmentsRequestResponseFromJSON = exports.atsOrderAssessmentsRequestResponseToJSON = exports.AtsOrderAssessmentsRequestResponse$ = exports.AtsOrderAssessmentsRequestResponse$outboundSchema = exports.AtsOrderAssessmentsRequestResponse$inboundSchema = exports.atsOrderAssessmentsRequestRequestFromJSON = exports.atsOrderAssessmentsRequestRequestToJSON = exports.AtsOrderAssessmentsRequestRequest$ = exports.AtsOrderAssessmentsRequestRequest$outboundSchema = exports.AtsOrderAssessmentsRequestRequest$inboundSchema = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const shared = __importStar(require("../shared/index.js"));
/** @internal */
exports.AtsOrderAssessmentsRequestRequest$inboundSchema = z.object({
    AtsCreateCandidatesAssessmentsRequestDto: shared.AtsCreateCandidatesAssessmentsRequestDto$inboundSchema,
    "x-account-id": z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "AtsCreateCandidatesAssessmentsRequestDto": "atsCreateCandidatesAssessmentsRequestDto",
        "x-account-id": "xAccountId",
    });
});
/** @internal */
exports.AtsOrderAssessmentsRequestRequest$outboundSchema = z.object({
    atsCreateCandidatesAssessmentsRequestDto: shared.AtsCreateCandidatesAssessmentsRequestDto$outboundSchema,
    xAccountId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        atsCreateCandidatesAssessmentsRequestDto: "AtsCreateCandidatesAssessmentsRequestDto",
        xAccountId: "x-account-id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsOrderAssessmentsRequestRequest$;
(function (AtsOrderAssessmentsRequestRequest$) {
    /** @deprecated use `AtsOrderAssessmentsRequestRequest$inboundSchema` instead. */
    AtsOrderAssessmentsRequestRequest$.inboundSchema = exports.AtsOrderAssessmentsRequestRequest$inboundSchema;
    /** @deprecated use `AtsOrderAssessmentsRequestRequest$outboundSchema` instead. */
    AtsOrderAssessmentsRequestRequest$.outboundSchema = exports.AtsOrderAssessmentsRequestRequest$outboundSchema;
})(AtsOrderAssessmentsRequestRequest$ || (exports.AtsOrderAssessmentsRequestRequest$ = AtsOrderAssessmentsRequestRequest$ = {}));
function atsOrderAssessmentsRequestRequestToJSON(atsOrderAssessmentsRequestRequest) {
    return JSON.stringify(exports.AtsOrderAssessmentsRequestRequest$outboundSchema.parse(atsOrderAssessmentsRequestRequest));
}
exports.atsOrderAssessmentsRequestRequestToJSON = atsOrderAssessmentsRequestRequestToJSON;
function atsOrderAssessmentsRequestRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsOrderAssessmentsRequestRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsOrderAssessmentsRequestRequest' from JSON`);
}
exports.atsOrderAssessmentsRequestRequestFromJSON = atsOrderAssessmentsRequestRequestFromJSON;
/** @internal */
exports.AtsOrderAssessmentsRequestResponse$inboundSchema = z.object({
    ContentType: z.string(),
    CreateAssessmentOrderResult: shared.CreateAssessmentOrderResult$inboundSchema
        .optional(),
    Headers: z.record(z.array(z.string())),
    StatusCode: z.number().int(),
    RawResponse: z.instanceof(Response),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "ContentType": "contentType",
        "CreateAssessmentOrderResult": "createAssessmentOrderResult",
        "Headers": "headers",
        "StatusCode": "statusCode",
        "RawResponse": "rawResponse",
    });
});
/** @internal */
exports.AtsOrderAssessmentsRequestResponse$outboundSchema = z.object({
    contentType: z.string(),
    createAssessmentOrderResult: shared.CreateAssessmentOrderResult$outboundSchema
        .optional(),
    headers: z.record(z.array(z.string())),
    statusCode: z.number().int(),
    rawResponse: z.instanceof(Response).transform(() => {
        throw new Error("Response cannot be serialized");
    }),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contentType: "ContentType",
        createAssessmentOrderResult: "CreateAssessmentOrderResult",
        headers: "Headers",
        statusCode: "StatusCode",
        rawResponse: "RawResponse",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsOrderAssessmentsRequestResponse$;
(function (AtsOrderAssessmentsRequestResponse$) {
    /** @deprecated use `AtsOrderAssessmentsRequestResponse$inboundSchema` instead. */
    AtsOrderAssessmentsRequestResponse$.inboundSchema = exports.AtsOrderAssessmentsRequestResponse$inboundSchema;
    /** @deprecated use `AtsOrderAssessmentsRequestResponse$outboundSchema` instead. */
    AtsOrderAssessmentsRequestResponse$.outboundSchema = exports.AtsOrderAssessmentsRequestResponse$outboundSchema;
})(AtsOrderAssessmentsRequestResponse$ || (exports.AtsOrderAssessmentsRequestResponse$ = AtsOrderAssessmentsRequestResponse$ = {}));
function atsOrderAssessmentsRequestResponseToJSON(atsOrderAssessmentsRequestResponse) {
    return JSON.stringify(exports.AtsOrderAssessmentsRequestResponse$outboundSchema.parse(atsOrderAssessmentsRequestResponse));
}
exports.atsOrderAssessmentsRequestResponseToJSON = atsOrderAssessmentsRequestResponseToJSON;
function atsOrderAssessmentsRequestResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsOrderAssessmentsRequestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsOrderAssessmentsRequestResponse' from JSON`);
}
exports.atsOrderAssessmentsRequestResponseFromJSON = atsOrderAssessmentsRequestResponseFromJSON;
//# sourceMappingURL=atsorderassessmentsrequest.js.map