"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.AtsUpdateCandidatesAssessmentsResultsRequestDto$outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoValue = void 0;
exports.atsUpdateCandidatesAssessmentsResultsRequestDtoCandidateToJSON = atsUpdateCandidatesAssessmentsResultsRequestDtoCandidateToJSON;
exports.atsUpdateCandidatesAssessmentsResultsRequestDto4ToJSON = atsUpdateCandidatesAssessmentsResultsRequestDto4ToJSON;
exports.atsUpdateCandidatesAssessmentsResultsRequestDtoSourceValueToJSON = atsUpdateCandidatesAssessmentsResultsRequestDtoSourceValueToJSON;
exports.atsUpdateCandidatesAssessmentsResultsRequestDtoResultToJSON = atsUpdateCandidatesAssessmentsResultsRequestDtoResultToJSON;
exports.atsUpdateCandidatesAssessmentsResultsRequestDtoScoreToJSON = atsUpdateCandidatesAssessmentsResultsRequestDtoScoreToJSON;
exports.atsUpdateCandidatesAssessmentsResultsRequestDtoToJSON = atsUpdateCandidatesAssessmentsResultsRequestDtoToJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../../lib/primitives.js");
const openEnums = __importStar(require("../../types/enums.js"));
const attachment_js_1 = require("./attachment.js");
/**
 * The result of the test.
 */
var AtsUpdateCandidatesAssessmentsResultsRequestDtoValue;
(function (AtsUpdateCandidatesAssessmentsResultsRequestDtoValue) {
    AtsUpdateCandidatesAssessmentsResultsRequestDtoValue["Initiated"] = "initiated";
    AtsUpdateCandidatesAssessmentsResultsRequestDtoValue["InProgress"] = "in_progress";
    AtsUpdateCandidatesAssessmentsResultsRequestDtoValue["Cancelled"] = "cancelled";
    AtsUpdateCandidatesAssessmentsResultsRequestDtoValue["Completed"] = "completed";
    AtsUpdateCandidatesAssessmentsResultsRequestDtoValue["Expired"] = "expired";
    AtsUpdateCandidatesAssessmentsResultsRequestDtoValue["Failed"] = "failed";
    AtsUpdateCandidatesAssessmentsResultsRequestDtoValue["Passed"] = "passed";
    AtsUpdateCandidatesAssessmentsResultsRequestDtoValue["UnmappedValue"] = "unmapped_value";
})(AtsUpdateCandidatesAssessmentsResultsRequestDtoValue || (exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoValue = AtsUpdateCandidatesAssessmentsResultsRequestDtoValue = {}));
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    profileUrl: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        profileUrl: "profile_url",
    });
});
function atsUpdateCandidatesAssessmentsResultsRequestDtoCandidateToJSON(atsUpdateCandidatesAssessmentsResultsRequestDtoCandidate) {
    return JSON.stringify(exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$outboundSchema
        .parse(atsUpdateCandidatesAssessmentsResultsRequestDtoCandidate));
}
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$outboundSchema = z.object({});
function atsUpdateCandidatesAssessmentsResultsRequestDto4ToJSON(atsUpdateCandidatesAssessmentsResultsRequestDto4) {
    return JSON.stringify(exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$outboundSchema.parse(atsUpdateCandidatesAssessmentsResultsRequestDto4));
}
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$outboundSchema),
    z.array(z.any()),
]);
function atsUpdateCandidatesAssessmentsResultsRequestDtoSourceValueToJSON(atsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue) {
    return JSON.stringify(exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$outboundSchema
        .parse(atsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue));
}
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$outboundSchema = openEnums.outboundSchema(AtsUpdateCandidatesAssessmentsResultsRequestDtoValue);
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function atsUpdateCandidatesAssessmentsResultsRequestDtoResultToJSON(atsUpdateCandidatesAssessmentsResultsRequestDtoResult) {
    return JSON.stringify(exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$outboundSchema.parse(atsUpdateCandidatesAssessmentsResultsRequestDtoResult));
}
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$outboundSchema = z.object({
    label: z.nullable(z.string()).optional(),
    max: z.nullable(z.string()).optional(),
    min: z.nullable(z.string()).optional(),
    value: z.nullable(z.string()).optional(),
});
function atsUpdateCandidatesAssessmentsResultsRequestDtoScoreToJSON(atsUpdateCandidatesAssessmentsResultsRequestDtoScore) {
    return JSON.stringify(exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$outboundSchema.parse(atsUpdateCandidatesAssessmentsResultsRequestDtoScore));
}
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDto$outboundSchema = z.object({
    attachments: z.nullable(z.array(attachment_js_1.Attachment$outboundSchema)).optional(),
    candidate: z.nullable(z.lazy(() => exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$outboundSchema)).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    result: z.nullable(z.lazy(() => exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$outboundSchema)).optional(),
    resultUrl: z.nullable(z.string()).optional(),
    score: z.nullable(z.lazy(() => exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$outboundSchema)).optional(),
    startDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    submissionDate: z.nullable(z.date().transform(v => v.toISOString()))
        .optional(),
    summary: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        resultUrl: "result_url",
        startDate: "start_date",
        submissionDate: "submission_date",
    });
});
function atsUpdateCandidatesAssessmentsResultsRequestDtoToJSON(atsUpdateCandidatesAssessmentsResultsRequestDto) {
    return JSON.stringify(exports.AtsUpdateCandidatesAssessmentsResultsRequestDto$outboundSchema.parse(atsUpdateCandidatesAssessmentsResultsRequestDto));
}
//# sourceMappingURL=atsupdatecandidatesassessmentsresultsrequestdto.js.map