"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.atsCreateBackgroundCheckOrderRequestDtoFromJSON = exports.atsCreateBackgroundCheckOrderRequestDtoToJSON = exports.AtsCreateBackgroundCheckOrderRequestDto$ = exports.AtsCreateBackgroundCheckOrderRequestDto$outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDto$inboundSchema = exports.atsCreateBackgroundCheckOrderRequestDtoRequesterFromJSON = exports.atsCreateBackgroundCheckOrderRequestDtoRequesterToJSON = exports.AtsCreateBackgroundCheckOrderRequestDtoRequester$ = exports.AtsCreateBackgroundCheckOrderRequestDtoRequester$outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoRequester$inboundSchema = exports.atsCreateBackgroundCheckOrderRequestDtoPackageFromJSON = exports.atsCreateBackgroundCheckOrderRequestDtoPackageToJSON = exports.AtsCreateBackgroundCheckOrderRequestDtoPackage$ = exports.AtsCreateBackgroundCheckOrderRequestDtoPackage$outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoPackage$inboundSchema = exports.atsCreateBackgroundCheckOrderRequestDtoJobFromJSON = exports.atsCreateBackgroundCheckOrderRequestDtoJobToJSON = exports.AtsCreateBackgroundCheckOrderRequestDtoJob$ = exports.AtsCreateBackgroundCheckOrderRequestDtoJob$outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoJob$inboundSchema = exports.atsCreateBackgroundCheckOrderRequestDtoCandidateFromJSON = exports.atsCreateBackgroundCheckOrderRequestDtoCandidateToJSON = exports.AtsCreateBackgroundCheckOrderRequestDtoCandidate$ = exports.AtsCreateBackgroundCheckOrderRequestDtoCandidate$outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoCandidate$inboundSchema = exports.atsCreateBackgroundCheckOrderRequestDtoApplicationFromJSON = exports.atsCreateBackgroundCheckOrderRequestDtoApplicationToJSON = exports.AtsCreateBackgroundCheckOrderRequestDtoApplication$ = exports.AtsCreateBackgroundCheckOrderRequestDtoApplication$outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoApplication$inboundSchema = exports.atsCreateBackgroundCheckOrderRequestDtoApplicationStatusFromJSON = exports.atsCreateBackgroundCheckOrderRequestDtoApplicationStatusToJSON = exports.AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$ = exports.AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$inboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoValue$ = exports.AtsCreateBackgroundCheckOrderRequestDtoValue$outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoValue$inboundSchema = exports.atsCreateBackgroundCheckOrderRequestDtoSourceValueFromJSON = exports.atsCreateBackgroundCheckOrderRequestDtoSourceValueToJSON = exports.AtsCreateBackgroundCheckOrderRequestDtoSourceValue$ = exports.AtsCreateBackgroundCheckOrderRequestDtoSourceValue$outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoSourceValue$inboundSchema = exports.atsCreateBackgroundCheckOrderRequestDto4FromJSON = exports.atsCreateBackgroundCheckOrderRequestDto4ToJSON = exports.AtsCreateBackgroundCheckOrderRequestDto4$ = exports.AtsCreateBackgroundCheckOrderRequestDto4$outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDto4$inboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoValue = 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 candidateemail_js_1 = require("./candidateemail.js");
const jobhiringteam_js_1 = require("./jobhiringteam.js");
const package_js_1 = require("./package.js");
/**
 * The status of the application.
 */
var AtsCreateBackgroundCheckOrderRequestDtoValue;
(function (AtsCreateBackgroundCheckOrderRequestDtoValue) {
    AtsCreateBackgroundCheckOrderRequestDtoValue["Active"] = "active";
    AtsCreateBackgroundCheckOrderRequestDtoValue["Assessment"] = "assessment";
    AtsCreateBackgroundCheckOrderRequestDtoValue["BackgroundCheck"] = "background_check";
    AtsCreateBackgroundCheckOrderRequestDtoValue["Converted"] = "converted";
    AtsCreateBackgroundCheckOrderRequestDtoValue["DeclinedByCandidate"] = "declined_by_candidate";
    AtsCreateBackgroundCheckOrderRequestDtoValue["Hired"] = "hired";
    AtsCreateBackgroundCheckOrderRequestDtoValue["Interview"] = "interview";
    AtsCreateBackgroundCheckOrderRequestDtoValue["Lead"] = "lead";
    AtsCreateBackgroundCheckOrderRequestDtoValue["Offer"] = "offer";
    AtsCreateBackgroundCheckOrderRequestDtoValue["ReferenceCheck"] = "reference_check";
    AtsCreateBackgroundCheckOrderRequestDtoValue["Rejected"] = "rejected";
    AtsCreateBackgroundCheckOrderRequestDtoValue["Review"] = "review";
    AtsCreateBackgroundCheckOrderRequestDtoValue["Screen"] = "screen";
    AtsCreateBackgroundCheckOrderRequestDtoValue["New"] = "new";
    AtsCreateBackgroundCheckOrderRequestDtoValue["Onboarding"] = "onboarding";
    AtsCreateBackgroundCheckOrderRequestDtoValue["Created"] = "created";
    AtsCreateBackgroundCheckOrderRequestDtoValue["Accepted"] = "accepted";
    AtsCreateBackgroundCheckOrderRequestDtoValue["ShortList"] = "short_list";
    AtsCreateBackgroundCheckOrderRequestDtoValue["Approved"] = "approved";
    AtsCreateBackgroundCheckOrderRequestDtoValue["UnmappedValue"] = "unmapped_value";
})(AtsCreateBackgroundCheckOrderRequestDtoValue || (exports.AtsCreateBackgroundCheckOrderRequestDtoValue = AtsCreateBackgroundCheckOrderRequestDtoValue = {}));
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDto4$inboundSchema = z.object({});
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDto4$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 AtsCreateBackgroundCheckOrderRequestDto4$;
(function (AtsCreateBackgroundCheckOrderRequestDto4$) {
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDto4$inboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDto4$.inboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDto4$inboundSchema;
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDto4$outboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDto4$.outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDto4$outboundSchema;
})(AtsCreateBackgroundCheckOrderRequestDto4$ || (exports.AtsCreateBackgroundCheckOrderRequestDto4$ = AtsCreateBackgroundCheckOrderRequestDto4$ = {}));
function atsCreateBackgroundCheckOrderRequestDto4ToJSON(atsCreateBackgroundCheckOrderRequestDto4) {
    return JSON.stringify(exports.AtsCreateBackgroundCheckOrderRequestDto4$outboundSchema.parse(atsCreateBackgroundCheckOrderRequestDto4));
}
exports.atsCreateBackgroundCheckOrderRequestDto4ToJSON = atsCreateBackgroundCheckOrderRequestDto4ToJSON;
function atsCreateBackgroundCheckOrderRequestDto4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateBackgroundCheckOrderRequestDto4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsCreateBackgroundCheckOrderRequestDto4' from JSON`);
}
exports.atsCreateBackgroundCheckOrderRequestDto4FromJSON = atsCreateBackgroundCheckOrderRequestDto4FromJSON;
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDtoSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.AtsCreateBackgroundCheckOrderRequestDto4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDtoSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.AtsCreateBackgroundCheckOrderRequestDto4$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 AtsCreateBackgroundCheckOrderRequestDtoSourceValue$;
(function (AtsCreateBackgroundCheckOrderRequestDtoSourceValue$) {
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDtoSourceValue$inboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDtoSourceValue$.inboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoSourceValue$inboundSchema;
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDtoSourceValue$outboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDtoSourceValue$.outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoSourceValue$outboundSchema;
})(AtsCreateBackgroundCheckOrderRequestDtoSourceValue$ || (exports.AtsCreateBackgroundCheckOrderRequestDtoSourceValue$ = AtsCreateBackgroundCheckOrderRequestDtoSourceValue$ = {}));
function atsCreateBackgroundCheckOrderRequestDtoSourceValueToJSON(atsCreateBackgroundCheckOrderRequestDtoSourceValue) {
    return JSON.stringify(exports.AtsCreateBackgroundCheckOrderRequestDtoSourceValue$outboundSchema.parse(atsCreateBackgroundCheckOrderRequestDtoSourceValue));
}
exports.atsCreateBackgroundCheckOrderRequestDtoSourceValueToJSON = atsCreateBackgroundCheckOrderRequestDtoSourceValueToJSON;
function atsCreateBackgroundCheckOrderRequestDtoSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateBackgroundCheckOrderRequestDtoSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsCreateBackgroundCheckOrderRequestDtoSourceValue' from JSON`);
}
exports.atsCreateBackgroundCheckOrderRequestDtoSourceValueFromJSON = atsCreateBackgroundCheckOrderRequestDtoSourceValueFromJSON;
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDtoValue$inboundSchema = z
    .union([
    z.nativeEnum(AtsCreateBackgroundCheckOrderRequestDtoValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDtoValue$outboundSchema = z.union([
    z.nativeEnum(AtsCreateBackgroundCheckOrderRequestDtoValue),
    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 AtsCreateBackgroundCheckOrderRequestDtoValue$;
(function (AtsCreateBackgroundCheckOrderRequestDtoValue$) {
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDtoValue$inboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDtoValue$.inboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoValue$inboundSchema;
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDtoValue$outboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDtoValue$.outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoValue$outboundSchema;
})(AtsCreateBackgroundCheckOrderRequestDtoValue$ || (exports.AtsCreateBackgroundCheckOrderRequestDtoValue$ = AtsCreateBackgroundCheckOrderRequestDtoValue$ = {}));
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.AtsCreateBackgroundCheckOrderRequestDto4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AtsCreateBackgroundCheckOrderRequestDtoValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.AtsCreateBackgroundCheckOrderRequestDto4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AtsCreateBackgroundCheckOrderRequestDtoValue$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 AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$;
(function (AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$) {
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$inboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$.inboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$inboundSchema;
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$outboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$.outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$outboundSchema;
})(AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$ || (exports.AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$ = AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$ = {}));
function atsCreateBackgroundCheckOrderRequestDtoApplicationStatusToJSON(atsCreateBackgroundCheckOrderRequestDtoApplicationStatus) {
    return JSON.stringify(exports.AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$outboundSchema
        .parse(atsCreateBackgroundCheckOrderRequestDtoApplicationStatus));
}
exports.atsCreateBackgroundCheckOrderRequestDtoApplicationStatusToJSON = atsCreateBackgroundCheckOrderRequestDtoApplicationStatusToJSON;
function atsCreateBackgroundCheckOrderRequestDtoApplicationStatusFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus' from JSON`);
}
exports.atsCreateBackgroundCheckOrderRequestDtoApplicationStatusFromJSON = atsCreateBackgroundCheckOrderRequestDtoApplicationStatusFromJSON;
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDtoApplication$inboundSchema = z.object({
    application_status: z.nullable(z.lazy(() => exports.AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$inboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    remote_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "application_status": "applicationStatus",
        "remote_id": "remoteId",
    });
});
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDtoApplication$outboundSchema = z.object({
    applicationStatus: z.nullable(z.lazy(() => exports.AtsCreateBackgroundCheckOrderRequestDtoApplicationStatus$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",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsCreateBackgroundCheckOrderRequestDtoApplication$;
(function (AtsCreateBackgroundCheckOrderRequestDtoApplication$) {
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDtoApplication$inboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDtoApplication$.inboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoApplication$inboundSchema;
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDtoApplication$outboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDtoApplication$.outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoApplication$outboundSchema;
})(AtsCreateBackgroundCheckOrderRequestDtoApplication$ || (exports.AtsCreateBackgroundCheckOrderRequestDtoApplication$ = AtsCreateBackgroundCheckOrderRequestDtoApplication$ = {}));
function atsCreateBackgroundCheckOrderRequestDtoApplicationToJSON(atsCreateBackgroundCheckOrderRequestDtoApplication) {
    return JSON.stringify(exports.AtsCreateBackgroundCheckOrderRequestDtoApplication$outboundSchema.parse(atsCreateBackgroundCheckOrderRequestDtoApplication));
}
exports.atsCreateBackgroundCheckOrderRequestDtoApplicationToJSON = atsCreateBackgroundCheckOrderRequestDtoApplicationToJSON;
function atsCreateBackgroundCheckOrderRequestDtoApplicationFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateBackgroundCheckOrderRequestDtoApplication$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsCreateBackgroundCheckOrderRequestDtoApplication' from JSON`);
}
exports.atsCreateBackgroundCheckOrderRequestDtoApplicationFromJSON = atsCreateBackgroundCheckOrderRequestDtoApplicationFromJSON;
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDtoCandidate$inboundSchema = z.object({
    emails: z.nullable(z.array(candidateemail_js_1.CandidateEmail$inboundSchema)).optional(),
    first_name: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    last_name: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    profile_url: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "first_name": "firstName",
        "last_name": "lastName",
        "profile_url": "profileUrl",
        "remote_id": "remoteId",
    });
});
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDtoCandidate$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",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsCreateBackgroundCheckOrderRequestDtoCandidate$;
(function (AtsCreateBackgroundCheckOrderRequestDtoCandidate$) {
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDtoCandidate$inboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDtoCandidate$.inboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoCandidate$inboundSchema;
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDtoCandidate$outboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDtoCandidate$.outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoCandidate$outboundSchema;
})(AtsCreateBackgroundCheckOrderRequestDtoCandidate$ || (exports.AtsCreateBackgroundCheckOrderRequestDtoCandidate$ = AtsCreateBackgroundCheckOrderRequestDtoCandidate$ = {}));
function atsCreateBackgroundCheckOrderRequestDtoCandidateToJSON(atsCreateBackgroundCheckOrderRequestDtoCandidate) {
    return JSON.stringify(exports.AtsCreateBackgroundCheckOrderRequestDtoCandidate$outboundSchema.parse(atsCreateBackgroundCheckOrderRequestDtoCandidate));
}
exports.atsCreateBackgroundCheckOrderRequestDtoCandidateToJSON = atsCreateBackgroundCheckOrderRequestDtoCandidateToJSON;
function atsCreateBackgroundCheckOrderRequestDtoCandidateFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateBackgroundCheckOrderRequestDtoCandidate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsCreateBackgroundCheckOrderRequestDtoCandidate' from JSON`);
}
exports.atsCreateBackgroundCheckOrderRequestDtoCandidateFromJSON = atsCreateBackgroundCheckOrderRequestDtoCandidateFromJSON;
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDtoJob$inboundSchema = z.object({
    hiring_team: z.nullable(z.array(jobhiringteam_js_1.JobHiringTeam$inboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    remote_id: z.nullable(z.string()).optional(),
    title: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "hiring_team": "hiringTeam",
        "remote_id": "remoteId",
    });
});
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDtoJob$outboundSchema = z.object({
    hiringTeam: z.nullable(z.array(jobhiringteam_js_1.JobHiringTeam$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",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsCreateBackgroundCheckOrderRequestDtoJob$;
(function (AtsCreateBackgroundCheckOrderRequestDtoJob$) {
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDtoJob$inboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDtoJob$.inboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoJob$inboundSchema;
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDtoJob$outboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDtoJob$.outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoJob$outboundSchema;
})(AtsCreateBackgroundCheckOrderRequestDtoJob$ || (exports.AtsCreateBackgroundCheckOrderRequestDtoJob$ = AtsCreateBackgroundCheckOrderRequestDtoJob$ = {}));
function atsCreateBackgroundCheckOrderRequestDtoJobToJSON(atsCreateBackgroundCheckOrderRequestDtoJob) {
    return JSON.stringify(exports.AtsCreateBackgroundCheckOrderRequestDtoJob$outboundSchema.parse(atsCreateBackgroundCheckOrderRequestDtoJob));
}
exports.atsCreateBackgroundCheckOrderRequestDtoJobToJSON = atsCreateBackgroundCheckOrderRequestDtoJobToJSON;
function atsCreateBackgroundCheckOrderRequestDtoJobFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateBackgroundCheckOrderRequestDtoJob$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsCreateBackgroundCheckOrderRequestDtoJob' from JSON`);
}
exports.atsCreateBackgroundCheckOrderRequestDtoJobFromJSON = atsCreateBackgroundCheckOrderRequestDtoJobFromJSON;
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDtoPackage$inboundSchema = z.object({
    description: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
    tests: z.nullable(z.array(package_js_1.Package$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "remote_id": "remoteId",
    });
});
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDtoPackage$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(),
    tests: z.nullable(z.array(package_js_1.Package$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        remoteId: "remote_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsCreateBackgroundCheckOrderRequestDtoPackage$;
(function (AtsCreateBackgroundCheckOrderRequestDtoPackage$) {
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDtoPackage$inboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDtoPackage$.inboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoPackage$inboundSchema;
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDtoPackage$outboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDtoPackage$.outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoPackage$outboundSchema;
})(AtsCreateBackgroundCheckOrderRequestDtoPackage$ || (exports.AtsCreateBackgroundCheckOrderRequestDtoPackage$ = AtsCreateBackgroundCheckOrderRequestDtoPackage$ = {}));
function atsCreateBackgroundCheckOrderRequestDtoPackageToJSON(atsCreateBackgroundCheckOrderRequestDtoPackage) {
    return JSON.stringify(exports.AtsCreateBackgroundCheckOrderRequestDtoPackage$outboundSchema.parse(atsCreateBackgroundCheckOrderRequestDtoPackage));
}
exports.atsCreateBackgroundCheckOrderRequestDtoPackageToJSON = atsCreateBackgroundCheckOrderRequestDtoPackageToJSON;
function atsCreateBackgroundCheckOrderRequestDtoPackageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateBackgroundCheckOrderRequestDtoPackage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsCreateBackgroundCheckOrderRequestDtoPackage' from JSON`);
}
exports.atsCreateBackgroundCheckOrderRequestDtoPackageFromJSON = atsCreateBackgroundCheckOrderRequestDtoPackageFromJSON;
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDtoRequester$inboundSchema = z.object({
    email: z.nullable(z.string()).optional(),
    first_name: z.nullable(z.string()).optional(),
    last_name: z.nullable(z.string()).optional(),
    remote_user_id: z.nullable(z.string()).optional(),
    role: z.nullable(z.string()).optional(),
    user_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "first_name": "firstName",
        "last_name": "lastName",
        "remote_user_id": "remoteUserId",
        "user_id": "userId",
    });
});
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDtoRequester$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",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsCreateBackgroundCheckOrderRequestDtoRequester$;
(function (AtsCreateBackgroundCheckOrderRequestDtoRequester$) {
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDtoRequester$inboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDtoRequester$.inboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoRequester$inboundSchema;
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDtoRequester$outboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDtoRequester$.outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDtoRequester$outboundSchema;
})(AtsCreateBackgroundCheckOrderRequestDtoRequester$ || (exports.AtsCreateBackgroundCheckOrderRequestDtoRequester$ = AtsCreateBackgroundCheckOrderRequestDtoRequester$ = {}));
function atsCreateBackgroundCheckOrderRequestDtoRequesterToJSON(atsCreateBackgroundCheckOrderRequestDtoRequester) {
    return JSON.stringify(exports.AtsCreateBackgroundCheckOrderRequestDtoRequester$outboundSchema.parse(atsCreateBackgroundCheckOrderRequestDtoRequester));
}
exports.atsCreateBackgroundCheckOrderRequestDtoRequesterToJSON = atsCreateBackgroundCheckOrderRequestDtoRequesterToJSON;
function atsCreateBackgroundCheckOrderRequestDtoRequesterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateBackgroundCheckOrderRequestDtoRequester$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsCreateBackgroundCheckOrderRequestDtoRequester' from JSON`);
}
exports.atsCreateBackgroundCheckOrderRequestDtoRequesterFromJSON = atsCreateBackgroundCheckOrderRequestDtoRequesterFromJSON;
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDto$inboundSchema = z.object({
    application: z.nullable(z.lazy(() => exports.AtsCreateBackgroundCheckOrderRequestDtoApplication$inboundSchema)).optional(),
    candidate: z.nullable(z.lazy(() => exports.AtsCreateBackgroundCheckOrderRequestDtoCandidate$inboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    job: z.nullable(z.lazy(() => exports.AtsCreateBackgroundCheckOrderRequestDtoJob$inboundSchema)).optional(),
    package: z.nullable(z.lazy(() => exports.AtsCreateBackgroundCheckOrderRequestDtoPackage$inboundSchema)).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    remote_id: z.nullable(z.string()).optional(),
    requester: z.nullable(z.lazy(() => exports.AtsCreateBackgroundCheckOrderRequestDtoRequester$inboundSchema)).optional(),
    results_update_url: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "remote_id": "remoteId",
        "results_update_url": "resultsUpdateUrl",
    });
});
/** @internal */
exports.AtsCreateBackgroundCheckOrderRequestDto$outboundSchema = z.object({
    application: z.nullable(z.lazy(() => exports.AtsCreateBackgroundCheckOrderRequestDtoApplication$outboundSchema)).optional(),
    candidate: z.nullable(z.lazy(() => exports.AtsCreateBackgroundCheckOrderRequestDtoCandidate$outboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    job: z.nullable(z.lazy(() => exports.AtsCreateBackgroundCheckOrderRequestDtoJob$outboundSchema)).optional(),
    package: z.nullable(z.lazy(() => exports.AtsCreateBackgroundCheckOrderRequestDtoPackage$outboundSchema)).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    remoteId: z.nullable(z.string()).optional(),
    requester: z.nullable(z.lazy(() => exports.AtsCreateBackgroundCheckOrderRequestDtoRequester$outboundSchema)).optional(),
    resultsUpdateUrl: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        remoteId: "remote_id",
        resultsUpdateUrl: "results_update_url",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsCreateBackgroundCheckOrderRequestDto$;
(function (AtsCreateBackgroundCheckOrderRequestDto$) {
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDto$inboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDto$.inboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDto$inboundSchema;
    /** @deprecated use `AtsCreateBackgroundCheckOrderRequestDto$outboundSchema` instead. */
    AtsCreateBackgroundCheckOrderRequestDto$.outboundSchema = exports.AtsCreateBackgroundCheckOrderRequestDto$outboundSchema;
})(AtsCreateBackgroundCheckOrderRequestDto$ || (exports.AtsCreateBackgroundCheckOrderRequestDto$ = AtsCreateBackgroundCheckOrderRequestDto$ = {}));
function atsCreateBackgroundCheckOrderRequestDtoToJSON(atsCreateBackgroundCheckOrderRequestDto) {
    return JSON.stringify(exports.AtsCreateBackgroundCheckOrderRequestDto$outboundSchema.parse(atsCreateBackgroundCheckOrderRequestDto));
}
exports.atsCreateBackgroundCheckOrderRequestDtoToJSON = atsCreateBackgroundCheckOrderRequestDtoToJSON;
function atsCreateBackgroundCheckOrderRequestDtoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateBackgroundCheckOrderRequestDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsCreateBackgroundCheckOrderRequestDto' from JSON`);
}
exports.atsCreateBackgroundCheckOrderRequestDtoFromJSON = atsCreateBackgroundCheckOrderRequestDtoFromJSON;
//# sourceMappingURL=atscreatebackgroundcheckorderrequestdto.js.map