"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.AtsCreateCandidatesAssessmentsRequestDto$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoRequester$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoPackage$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoJob$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoCandidate$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoApplication$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoValue$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoSourceValue$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDto4$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoValue = void 0;
exports.atsCreateCandidatesAssessmentsRequestDto4ToJSON = atsCreateCandidatesAssessmentsRequestDto4ToJSON;
exports.atsCreateCandidatesAssessmentsRequestDtoSourceValueToJSON = atsCreateCandidatesAssessmentsRequestDtoSourceValueToJSON;
exports.atsCreateCandidatesAssessmentsRequestDtoApplicationStatusToJSON = atsCreateCandidatesAssessmentsRequestDtoApplicationStatusToJSON;
exports.atsCreateCandidatesAssessmentsRequestDtoApplicationToJSON = atsCreateCandidatesAssessmentsRequestDtoApplicationToJSON;
exports.atsCreateCandidatesAssessmentsRequestDtoCandidateToJSON = atsCreateCandidatesAssessmentsRequestDtoCandidateToJSON;
exports.atsCreateCandidatesAssessmentsRequestDtoJobToJSON = atsCreateCandidatesAssessmentsRequestDtoJobToJSON;
exports.atsCreateCandidatesAssessmentsRequestDtoPackageToJSON = atsCreateCandidatesAssessmentsRequestDtoPackageToJSON;
exports.atsCreateCandidatesAssessmentsRequestDtoRequesterToJSON = atsCreateCandidatesAssessmentsRequestDtoRequesterToJSON;
exports.atsCreateCandidatesAssessmentsRequestDtoToJSON = atsCreateCandidatesAssessmentsRequestDtoToJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../../lib/primitives.js");
const openEnums = __importStar(require("../../types/enums.js"));
const atsjobhiringteam_js_1 = require("./atsjobhiringteam.js");
const candidateemail_js_1 = require("./candidateemail.js");
/**
 * The status of the application.
 */
var AtsCreateCandidatesAssessmentsRequestDtoValue;
(function (AtsCreateCandidatesAssessmentsRequestDtoValue) {
    AtsCreateCandidatesAssessmentsRequestDtoValue["Active"] = "active";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Assessment"] = "assessment";
    AtsCreateCandidatesAssessmentsRequestDtoValue["BackgroundCheck"] = "background_check";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Converted"] = "converted";
    AtsCreateCandidatesAssessmentsRequestDtoValue["DeclinedByCandidate"] = "declined_by_candidate";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Hired"] = "hired";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Interview"] = "interview";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Lead"] = "lead";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Offer"] = "offer";
    AtsCreateCandidatesAssessmentsRequestDtoValue["ReferenceCheck"] = "reference_check";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Rejected"] = "rejected";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Review"] = "review";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Screen"] = "screen";
    AtsCreateCandidatesAssessmentsRequestDtoValue["New"] = "new";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Onboarding"] = "onboarding";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Created"] = "created";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Accepted"] = "accepted";
    AtsCreateCandidatesAssessmentsRequestDtoValue["ShortList"] = "short_list";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Approved"] = "approved";
    AtsCreateCandidatesAssessmentsRequestDtoValue["UnmappedValue"] = "unmapped_value";
})(AtsCreateCandidatesAssessmentsRequestDtoValue || (exports.AtsCreateCandidatesAssessmentsRequestDtoValue = AtsCreateCandidatesAssessmentsRequestDtoValue = {}));
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDto4$outboundSchema = z.object({});
function atsCreateCandidatesAssessmentsRequestDto4ToJSON(atsCreateCandidatesAssessmentsRequestDto4) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDto4$outboundSchema.parse(atsCreateCandidatesAssessmentsRequestDto4));
}
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDto4$outboundSchema),
    z.array(z.any()),
]);
function atsCreateCandidatesAssessmentsRequestDtoSourceValueToJSON(atsCreateCandidatesAssessmentsRequestDtoSourceValue) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDtoSourceValue$outboundSchema.parse(atsCreateCandidatesAssessmentsRequestDtoSourceValue));
}
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoValue$outboundSchema = openEnums.outboundSchema(AtsCreateCandidatesAssessmentsRequestDtoValue);
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDto4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AtsCreateCandidatesAssessmentsRequestDtoValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function atsCreateCandidatesAssessmentsRequestDtoApplicationStatusToJSON(atsCreateCandidatesAssessmentsRequestDtoApplicationStatus) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$outboundSchema
        .parse(atsCreateCandidatesAssessmentsRequestDtoApplicationStatus));
}
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoApplication$outboundSchema = z.object({
    applicationStatus: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$outboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    remoteId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        applicationStatus: "application_status",
        remoteId: "remote_id",
    });
});
function atsCreateCandidatesAssessmentsRequestDtoApplicationToJSON(atsCreateCandidatesAssessmentsRequestDtoApplication) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDtoApplication$outboundSchema.parse(atsCreateCandidatesAssessmentsRequestDtoApplication));
}
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoCandidate$outboundSchema = z.object({
    emails: z.nullable(z.array(candidateemail_js_1.CandidateEmail$outboundSchema)).optional(),
    firstName: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    lastName: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    profileUrl: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        firstName: "first_name",
        lastName: "last_name",
        profileUrl: "profile_url",
        remoteId: "remote_id",
    });
});
function atsCreateCandidatesAssessmentsRequestDtoCandidateToJSON(atsCreateCandidatesAssessmentsRequestDtoCandidate) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDtoCandidate$outboundSchema.parse(atsCreateCandidatesAssessmentsRequestDtoCandidate));
}
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoJob$outboundSchema = z.object({
    hiringTeam: z.nullable(z.array(atsjobhiringteam_js_1.AtsJobHiringTeam$outboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    remoteId: z.nullable(z.string()).optional(),
    title: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        hiringTeam: "hiring_team",
        remoteId: "remote_id",
    });
});
function atsCreateCandidatesAssessmentsRequestDtoJobToJSON(atsCreateCandidatesAssessmentsRequestDtoJob) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDtoJob$outboundSchema.parse(atsCreateCandidatesAssessmentsRequestDtoJob));
}
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoPackage$outboundSchema = z.object({
    description: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        remoteId: "remote_id",
    });
});
function atsCreateCandidatesAssessmentsRequestDtoPackageToJSON(atsCreateCandidatesAssessmentsRequestDtoPackage) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDtoPackage$outboundSchema.parse(atsCreateCandidatesAssessmentsRequestDtoPackage));
}
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoRequester$outboundSchema = z.object({
    email: z.nullable(z.string()).optional(),
    firstName: z.nullable(z.string()).optional(),
    lastName: z.nullable(z.string()).optional(),
    remoteUserId: z.nullable(z.string()).optional(),
    role: z.nullable(z.string()).optional(),
    userId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        firstName: "first_name",
        lastName: "last_name",
        remoteUserId: "remote_user_id",
        userId: "user_id",
    });
});
function atsCreateCandidatesAssessmentsRequestDtoRequesterToJSON(atsCreateCandidatesAssessmentsRequestDtoRequester) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDtoRequester$outboundSchema.parse(atsCreateCandidatesAssessmentsRequestDtoRequester));
}
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDto$outboundSchema = z.object({
    application: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoApplication$outboundSchema)).optional(),
    candidate: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoCandidate$outboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    job: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoJob$outboundSchema)).optional(),
    package: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoPackage$outboundSchema)).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    requester: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoRequester$outboundSchema)).optional(),
    resultsUpdateUrl: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        resultsUpdateUrl: "results_update_url",
    });
});
function atsCreateCandidatesAssessmentsRequestDtoToJSON(atsCreateCandidatesAssessmentsRequestDto) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDto$outboundSchema.parse(atsCreateCandidatesAssessmentsRequestDto));
}
//# sourceMappingURL=atscreatecandidatesassessmentsrequestdto.js.map