"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.atsUpdateCandidatesAssessmentsResultsRequestDtoFromJSON = exports.atsUpdateCandidatesAssessmentsResultsRequestDtoToJSON = exports.AtsUpdateCandidatesAssessmentsResultsRequestDto$ = exports.AtsUpdateCandidatesAssessmentsResultsRequestDto$outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDto$inboundSchema = exports.atsUpdateCandidatesAssessmentsResultsRequestDtoScoreFromJSON = exports.atsUpdateCandidatesAssessmentsResultsRequestDtoScoreToJSON = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$ = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$inboundSchema = exports.atsUpdateCandidatesAssessmentsResultsRequestDtoResultFromJSON = exports.atsUpdateCandidatesAssessmentsResultsRequestDtoResultToJSON = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$ = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$inboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$ = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$inboundSchema = exports.atsUpdateCandidatesAssessmentsResultsRequestDtoSourceValueFromJSON = exports.atsUpdateCandidatesAssessmentsResultsRequestDtoSourceValueToJSON = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$ = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$inboundSchema = exports.atsUpdateCandidatesAssessmentsResultsRequestDto4FromJSON = exports.atsUpdateCandidatesAssessmentsResultsRequestDto4ToJSON = exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$ = exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$inboundSchema = exports.atsUpdateCandidatesAssessmentsResultsRequestDtoCandidateFromJSON = exports.atsUpdateCandidatesAssessmentsResultsRequestDtoCandidateToJSON = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$ = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$inboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoValue = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const enums_js_1 = require("../../types/enums.js");
const attachment_js_1 = require("./attachment.js");
/**
 * The result of the test.
 */
var AtsUpdateCandidatesAssessmentsResultsRequestDtoValue;
(function (AtsUpdateCandidatesAssessmentsResultsRequestDtoValue) {
    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$inboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    profile_url: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "profile_url": "profileUrl",
    });
});
/** @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",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$;
(function (AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$) {
    /** @deprecated use `AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$inboundSchema` instead. */
    AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$.inboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$inboundSchema;
    /** @deprecated use `AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$outboundSchema` instead. */
    AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$.outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$outboundSchema;
})(AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$ || (exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$ = AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$ = {}));
function atsUpdateCandidatesAssessmentsResultsRequestDtoCandidateToJSON(atsUpdateCandidatesAssessmentsResultsRequestDtoCandidate) {
    return JSON.stringify(exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$outboundSchema
        .parse(atsUpdateCandidatesAssessmentsResultsRequestDtoCandidate));
}
exports.atsUpdateCandidatesAssessmentsResultsRequestDtoCandidateToJSON = atsUpdateCandidatesAssessmentsResultsRequestDtoCandidateToJSON;
function atsUpdateCandidatesAssessmentsResultsRequestDtoCandidateFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate' from JSON`);
}
exports.atsUpdateCandidatesAssessmentsResultsRequestDtoCandidateFromJSON = atsUpdateCandidatesAssessmentsResultsRequestDtoCandidateFromJSON;
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$inboundSchema = z.object({});
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsUpdateCandidatesAssessmentsResultsRequestDto4$;
(function (AtsUpdateCandidatesAssessmentsResultsRequestDto4$) {
    /** @deprecated use `AtsUpdateCandidatesAssessmentsResultsRequestDto4$inboundSchema` instead. */
    AtsUpdateCandidatesAssessmentsResultsRequestDto4$.inboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$inboundSchema;
    /** @deprecated use `AtsUpdateCandidatesAssessmentsResultsRequestDto4$outboundSchema` instead. */
    AtsUpdateCandidatesAssessmentsResultsRequestDto4$.outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$outboundSchema;
})(AtsUpdateCandidatesAssessmentsResultsRequestDto4$ || (exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$ = AtsUpdateCandidatesAssessmentsResultsRequestDto4$ = {}));
function atsUpdateCandidatesAssessmentsResultsRequestDto4ToJSON(atsUpdateCandidatesAssessmentsResultsRequestDto4) {
    return JSON.stringify(exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$outboundSchema.parse(atsUpdateCandidatesAssessmentsResultsRequestDto4));
}
exports.atsUpdateCandidatesAssessmentsResultsRequestDto4ToJSON = atsUpdateCandidatesAssessmentsResultsRequestDto4ToJSON;
function atsUpdateCandidatesAssessmentsResultsRequestDto4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsUpdateCandidatesAssessmentsResultsRequestDto4' from JSON`);
}
exports.atsUpdateCandidatesAssessmentsResultsRequestDto4FromJSON = atsUpdateCandidatesAssessmentsResultsRequestDto4FromJSON;
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$outboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$;
(function (AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$) {
    /** @deprecated use `AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$inboundSchema` instead. */
    AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$.inboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$inboundSchema;
    /** @deprecated use `AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$outboundSchema` instead. */
    AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$.outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$outboundSchema;
})(AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$ || (exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$ = AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$ = {}));
function atsUpdateCandidatesAssessmentsResultsRequestDtoSourceValueToJSON(atsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue) {
    return JSON.stringify(exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$outboundSchema
        .parse(atsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue));
}
exports.atsUpdateCandidatesAssessmentsResultsRequestDtoSourceValueToJSON = atsUpdateCandidatesAssessmentsResultsRequestDtoSourceValueToJSON;
function atsUpdateCandidatesAssessmentsResultsRequestDtoSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue' from JSON`);
}
exports.atsUpdateCandidatesAssessmentsResultsRequestDtoSourceValueFromJSON = atsUpdateCandidatesAssessmentsResultsRequestDtoSourceValueFromJSON;
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$inboundSchema = z
    .union([
    z.nativeEnum(AtsUpdateCandidatesAssessmentsResultsRequestDtoValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$outboundSchema = z.union([
    z.nativeEnum(AtsUpdateCandidatesAssessmentsResultsRequestDtoValue),
    z.string().and(z.custom()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$;
(function (AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$) {
    /** @deprecated use `AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$inboundSchema` instead. */
    AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$.inboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$inboundSchema;
    /** @deprecated use `AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$outboundSchema` instead. */
    AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$.outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$outboundSchema;
})(AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$ || (exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$ = AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$ = {}));
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.AtsUpdateCandidatesAssessmentsResultsRequestDto4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$;
(function (AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$) {
    /** @deprecated use `AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$inboundSchema` instead. */
    AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$.inboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$inboundSchema;
    /** @deprecated use `AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$outboundSchema` instead. */
    AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$.outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$outboundSchema;
})(AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$ || (exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$ = AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$ = {}));
function atsUpdateCandidatesAssessmentsResultsRequestDtoResultToJSON(atsUpdateCandidatesAssessmentsResultsRequestDtoResult) {
    return JSON.stringify(exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$outboundSchema.parse(atsUpdateCandidatesAssessmentsResultsRequestDtoResult));
}
exports.atsUpdateCandidatesAssessmentsResultsRequestDtoResultToJSON = atsUpdateCandidatesAssessmentsResultsRequestDtoResultToJSON;
function atsUpdateCandidatesAssessmentsResultsRequestDtoResultFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsUpdateCandidatesAssessmentsResultsRequestDtoResult' from JSON`);
}
exports.atsUpdateCandidatesAssessmentsResultsRequestDtoResultFromJSON = atsUpdateCandidatesAssessmentsResultsRequestDtoResultFromJSON;
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$inboundSchema = 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(),
});
/** @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(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$;
(function (AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$) {
    /** @deprecated use `AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$inboundSchema` instead. */
    AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$.inboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$inboundSchema;
    /** @deprecated use `AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$outboundSchema` instead. */
    AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$.outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$outboundSchema;
})(AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$ || (exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$ = AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$ = {}));
function atsUpdateCandidatesAssessmentsResultsRequestDtoScoreToJSON(atsUpdateCandidatesAssessmentsResultsRequestDtoScore) {
    return JSON.stringify(exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$outboundSchema.parse(atsUpdateCandidatesAssessmentsResultsRequestDtoScore));
}
exports.atsUpdateCandidatesAssessmentsResultsRequestDtoScoreToJSON = atsUpdateCandidatesAssessmentsResultsRequestDtoScoreToJSON;
function atsUpdateCandidatesAssessmentsResultsRequestDtoScoreFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsUpdateCandidatesAssessmentsResultsRequestDtoScore' from JSON`);
}
exports.atsUpdateCandidatesAssessmentsResultsRequestDtoScoreFromJSON = atsUpdateCandidatesAssessmentsResultsRequestDtoScoreFromJSON;
/** @internal */
exports.AtsUpdateCandidatesAssessmentsResultsRequestDto$inboundSchema = z.object({
    attachments: z.nullable(z.array(attachment_js_1.Attachment$inboundSchema)).optional(),
    candidate: z.nullable(z.lazy(() => exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoCandidate$inboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    result: z.nullable(z.lazy(() => exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoResult$inboundSchema)).optional(),
    result_url: z.nullable(z.string()).optional(),
    score: z.nullable(z.lazy(() => exports.AtsUpdateCandidatesAssessmentsResultsRequestDtoScore$inboundSchema)).optional(),
    start_date: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    submission_date: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    summary: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "result_url": "resultUrl",
        "start_date": "startDate",
        "submission_date": "submissionDate",
    });
});
/** @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(),
    id: z.nullable(z.string()).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",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsUpdateCandidatesAssessmentsResultsRequestDto$;
(function (AtsUpdateCandidatesAssessmentsResultsRequestDto$) {
    /** @deprecated use `AtsUpdateCandidatesAssessmentsResultsRequestDto$inboundSchema` instead. */
    AtsUpdateCandidatesAssessmentsResultsRequestDto$.inboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDto$inboundSchema;
    /** @deprecated use `AtsUpdateCandidatesAssessmentsResultsRequestDto$outboundSchema` instead. */
    AtsUpdateCandidatesAssessmentsResultsRequestDto$.outboundSchema = exports.AtsUpdateCandidatesAssessmentsResultsRequestDto$outboundSchema;
})(AtsUpdateCandidatesAssessmentsResultsRequestDto$ || (exports.AtsUpdateCandidatesAssessmentsResultsRequestDto$ = AtsUpdateCandidatesAssessmentsResultsRequestDto$ = {}));
function atsUpdateCandidatesAssessmentsResultsRequestDtoToJSON(atsUpdateCandidatesAssessmentsResultsRequestDto) {
    return JSON.stringify(exports.AtsUpdateCandidatesAssessmentsResultsRequestDto$outboundSchema.parse(atsUpdateCandidatesAssessmentsResultsRequestDto));
}
exports.atsUpdateCandidatesAssessmentsResultsRequestDtoToJSON = atsUpdateCandidatesAssessmentsResultsRequestDtoToJSON;
function atsUpdateCandidatesAssessmentsResultsRequestDtoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsUpdateCandidatesAssessmentsResultsRequestDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsUpdateCandidatesAssessmentsResultsRequestDto' from JSON`);
}
exports.atsUpdateCandidatesAssessmentsResultsRequestDtoFromJSON = atsUpdateCandidatesAssessmentsResultsRequestDtoFromJSON;
//# sourceMappingURL=atsupdatecandidatesassessmentsresultsrequestdto.js.map