"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.AtsUpdateApplicationRequestDto$ = exports.AtsUpdateApplicationRequestDto$outboundSchema = exports.AtsUpdateApplicationRequestDto$inboundSchema = exports.AtsUpdateApplicationRequestDtoSource$ = exports.AtsUpdateApplicationRequestDtoSource$outboundSchema = exports.AtsUpdateApplicationRequestDtoSource$inboundSchema = exports.AtsUpdateApplicationRequestDtoApplicationStatus$ = exports.AtsUpdateApplicationRequestDtoApplicationStatus$outboundSchema = exports.AtsUpdateApplicationRequestDtoApplicationStatus$inboundSchema = exports.AtsUpdateApplicationRequestDtoValue$ = exports.AtsUpdateApplicationRequestDtoValue$outboundSchema = exports.AtsUpdateApplicationRequestDtoValue$inboundSchema = exports.AtsUpdateApplicationRequestDtoSourceValue$ = exports.AtsUpdateApplicationRequestDtoSourceValue$outboundSchema = exports.AtsUpdateApplicationRequestDtoSourceValue$inboundSchema = exports.AtsUpdateApplicationRequestDto4$ = exports.AtsUpdateApplicationRequestDto4$outboundSchema = exports.AtsUpdateApplicationRequestDto4$inboundSchema = exports.AtsUpdateApplicationRequestDtoValue = void 0;
exports.atsUpdateApplicationRequestDto4ToJSON = atsUpdateApplicationRequestDto4ToJSON;
exports.atsUpdateApplicationRequestDto4FromJSON = atsUpdateApplicationRequestDto4FromJSON;
exports.atsUpdateApplicationRequestDtoSourceValueToJSON = atsUpdateApplicationRequestDtoSourceValueToJSON;
exports.atsUpdateApplicationRequestDtoSourceValueFromJSON = atsUpdateApplicationRequestDtoSourceValueFromJSON;
exports.atsUpdateApplicationRequestDtoApplicationStatusToJSON = atsUpdateApplicationRequestDtoApplicationStatusToJSON;
exports.atsUpdateApplicationRequestDtoApplicationStatusFromJSON = atsUpdateApplicationRequestDtoApplicationStatusFromJSON;
exports.atsUpdateApplicationRequestDtoSourceToJSON = atsUpdateApplicationRequestDtoSourceToJSON;
exports.atsUpdateApplicationRequestDtoSourceFromJSON = atsUpdateApplicationRequestDtoSourceFromJSON;
exports.atsUpdateApplicationRequestDtoToJSON = atsUpdateApplicationRequestDtoToJSON;
exports.atsUpdateApplicationRequestDtoFromJSON = atsUpdateApplicationRequestDtoFromJSON;
const z = __importStar(require("zod/v3"));
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 customfields_js_1 = require("./customfields.js");
/**
 * The status of the application.
 */
var AtsUpdateApplicationRequestDtoValue;
(function (AtsUpdateApplicationRequestDtoValue) {
    AtsUpdateApplicationRequestDtoValue["Active"] = "active";
    AtsUpdateApplicationRequestDtoValue["Assessment"] = "assessment";
    AtsUpdateApplicationRequestDtoValue["BackgroundCheck"] = "background_check";
    AtsUpdateApplicationRequestDtoValue["Converted"] = "converted";
    AtsUpdateApplicationRequestDtoValue["DeclinedByCandidate"] = "declined_by_candidate";
    AtsUpdateApplicationRequestDtoValue["Hired"] = "hired";
    AtsUpdateApplicationRequestDtoValue["Interview"] = "interview";
    AtsUpdateApplicationRequestDtoValue["Lead"] = "lead";
    AtsUpdateApplicationRequestDtoValue["Offer"] = "offer";
    AtsUpdateApplicationRequestDtoValue["ReferenceCheck"] = "reference_check";
    AtsUpdateApplicationRequestDtoValue["Rejected"] = "rejected";
    AtsUpdateApplicationRequestDtoValue["Review"] = "review";
    AtsUpdateApplicationRequestDtoValue["Screen"] = "screen";
    AtsUpdateApplicationRequestDtoValue["New"] = "new";
    AtsUpdateApplicationRequestDtoValue["Onboarding"] = "onboarding";
    AtsUpdateApplicationRequestDtoValue["Created"] = "created";
    AtsUpdateApplicationRequestDtoValue["Accepted"] = "accepted";
    AtsUpdateApplicationRequestDtoValue["ShortList"] = "short_list";
    AtsUpdateApplicationRequestDtoValue["Approved"] = "approved";
    AtsUpdateApplicationRequestDtoValue["UnmappedValue"] = "unmapped_value";
})(AtsUpdateApplicationRequestDtoValue || (exports.AtsUpdateApplicationRequestDtoValue = AtsUpdateApplicationRequestDtoValue = {}));
/** @internal */
exports.AtsUpdateApplicationRequestDto4$inboundSchema = z.object({});
/** @internal */
exports.AtsUpdateApplicationRequestDto4$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 AtsUpdateApplicationRequestDto4$;
(function (AtsUpdateApplicationRequestDto4$) {
    /** @deprecated use `AtsUpdateApplicationRequestDto4$inboundSchema` instead. */
    AtsUpdateApplicationRequestDto4$.inboundSchema = exports.AtsUpdateApplicationRequestDto4$inboundSchema;
    /** @deprecated use `AtsUpdateApplicationRequestDto4$outboundSchema` instead. */
    AtsUpdateApplicationRequestDto4$.outboundSchema = exports.AtsUpdateApplicationRequestDto4$outboundSchema;
})(AtsUpdateApplicationRequestDto4$ || (exports.AtsUpdateApplicationRequestDto4$ = AtsUpdateApplicationRequestDto4$ = {}));
function atsUpdateApplicationRequestDto4ToJSON(atsUpdateApplicationRequestDto4) {
    return JSON.stringify(exports.AtsUpdateApplicationRequestDto4$outboundSchema.parse(atsUpdateApplicationRequestDto4));
}
function atsUpdateApplicationRequestDto4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsUpdateApplicationRequestDto4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsUpdateApplicationRequestDto4' from JSON`);
}
/** @internal */
exports.AtsUpdateApplicationRequestDtoSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.AtsUpdateApplicationRequestDto4$inboundSchema),
    z.array(z.any()),
]);
/** @internal */
exports.AtsUpdateApplicationRequestDtoSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.AtsUpdateApplicationRequestDto4$outboundSchema),
    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 AtsUpdateApplicationRequestDtoSourceValue$;
(function (AtsUpdateApplicationRequestDtoSourceValue$) {
    /** @deprecated use `AtsUpdateApplicationRequestDtoSourceValue$inboundSchema` instead. */
    AtsUpdateApplicationRequestDtoSourceValue$.inboundSchema = exports.AtsUpdateApplicationRequestDtoSourceValue$inboundSchema;
    /** @deprecated use `AtsUpdateApplicationRequestDtoSourceValue$outboundSchema` instead. */
    AtsUpdateApplicationRequestDtoSourceValue$.outboundSchema = exports.AtsUpdateApplicationRequestDtoSourceValue$outboundSchema;
})(AtsUpdateApplicationRequestDtoSourceValue$ || (exports.AtsUpdateApplicationRequestDtoSourceValue$ = AtsUpdateApplicationRequestDtoSourceValue$ = {}));
function atsUpdateApplicationRequestDtoSourceValueToJSON(atsUpdateApplicationRequestDtoSourceValue) {
    return JSON.stringify(exports.AtsUpdateApplicationRequestDtoSourceValue$outboundSchema.parse(atsUpdateApplicationRequestDtoSourceValue));
}
function atsUpdateApplicationRequestDtoSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsUpdateApplicationRequestDtoSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsUpdateApplicationRequestDtoSourceValue' from JSON`);
}
/** @internal */
exports.AtsUpdateApplicationRequestDtoValue$inboundSchema = z
    .union([
    z.nativeEnum(AtsUpdateApplicationRequestDtoValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.AtsUpdateApplicationRequestDtoValue$outboundSchema = z.union([
    z.nativeEnum(AtsUpdateApplicationRequestDtoValue),
    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 AtsUpdateApplicationRequestDtoValue$;
(function (AtsUpdateApplicationRequestDtoValue$) {
    /** @deprecated use `AtsUpdateApplicationRequestDtoValue$inboundSchema` instead. */
    AtsUpdateApplicationRequestDtoValue$.inboundSchema = exports.AtsUpdateApplicationRequestDtoValue$inboundSchema;
    /** @deprecated use `AtsUpdateApplicationRequestDtoValue$outboundSchema` instead. */
    AtsUpdateApplicationRequestDtoValue$.outboundSchema = exports.AtsUpdateApplicationRequestDtoValue$outboundSchema;
})(AtsUpdateApplicationRequestDtoValue$ || (exports.AtsUpdateApplicationRequestDtoValue$ = AtsUpdateApplicationRequestDtoValue$ = {}));
/** @internal */
exports.AtsUpdateApplicationRequestDtoApplicationStatus$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.AtsUpdateApplicationRequestDto4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AtsUpdateApplicationRequestDtoValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.AtsUpdateApplicationRequestDtoApplicationStatus$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.AtsUpdateApplicationRequestDto4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AtsUpdateApplicationRequestDtoValue$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 AtsUpdateApplicationRequestDtoApplicationStatus$;
(function (AtsUpdateApplicationRequestDtoApplicationStatus$) {
    /** @deprecated use `AtsUpdateApplicationRequestDtoApplicationStatus$inboundSchema` instead. */
    AtsUpdateApplicationRequestDtoApplicationStatus$.inboundSchema = exports.AtsUpdateApplicationRequestDtoApplicationStatus$inboundSchema;
    /** @deprecated use `AtsUpdateApplicationRequestDtoApplicationStatus$outboundSchema` instead. */
    AtsUpdateApplicationRequestDtoApplicationStatus$.outboundSchema = exports.AtsUpdateApplicationRequestDtoApplicationStatus$outboundSchema;
})(AtsUpdateApplicationRequestDtoApplicationStatus$ || (exports.AtsUpdateApplicationRequestDtoApplicationStatus$ = AtsUpdateApplicationRequestDtoApplicationStatus$ = {}));
function atsUpdateApplicationRequestDtoApplicationStatusToJSON(atsUpdateApplicationRequestDtoApplicationStatus) {
    return JSON.stringify(exports.AtsUpdateApplicationRequestDtoApplicationStatus$outboundSchema.parse(atsUpdateApplicationRequestDtoApplicationStatus));
}
function atsUpdateApplicationRequestDtoApplicationStatusFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsUpdateApplicationRequestDtoApplicationStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsUpdateApplicationRequestDtoApplicationStatus' from JSON`);
}
/** @internal */
exports.AtsUpdateApplicationRequestDtoSource$inboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
});
/** @internal */
exports.AtsUpdateApplicationRequestDtoSource$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    name: 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 AtsUpdateApplicationRequestDtoSource$;
(function (AtsUpdateApplicationRequestDtoSource$) {
    /** @deprecated use `AtsUpdateApplicationRequestDtoSource$inboundSchema` instead. */
    AtsUpdateApplicationRequestDtoSource$.inboundSchema = exports.AtsUpdateApplicationRequestDtoSource$inboundSchema;
    /** @deprecated use `AtsUpdateApplicationRequestDtoSource$outboundSchema` instead. */
    AtsUpdateApplicationRequestDtoSource$.outboundSchema = exports.AtsUpdateApplicationRequestDtoSource$outboundSchema;
})(AtsUpdateApplicationRequestDtoSource$ || (exports.AtsUpdateApplicationRequestDtoSource$ = AtsUpdateApplicationRequestDtoSource$ = {}));
function atsUpdateApplicationRequestDtoSourceToJSON(atsUpdateApplicationRequestDtoSource) {
    return JSON.stringify(exports.AtsUpdateApplicationRequestDtoSource$outboundSchema.parse(atsUpdateApplicationRequestDtoSource));
}
function atsUpdateApplicationRequestDtoSourceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsUpdateApplicationRequestDtoSource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsUpdateApplicationRequestDtoSource' from JSON`);
}
/** @internal */
exports.AtsUpdateApplicationRequestDto$inboundSchema = z.object({
    application_status: z.nullable(z.lazy(() => exports.AtsUpdateApplicationRequestDtoApplicationStatus$inboundSchema)).optional(),
    custom_fields: z.nullable(z.array(customfields_js_1.CustomFields$inboundSchema)).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    source: z.nullable(z.lazy(() => exports.AtsUpdateApplicationRequestDtoSource$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "application_status": "applicationStatus",
        "custom_fields": "customFields",
    });
});
/** @internal */
exports.AtsUpdateApplicationRequestDto$outboundSchema = z.object({
    applicationStatus: z.nullable(z.lazy(() => exports.AtsUpdateApplicationRequestDtoApplicationStatus$outboundSchema)).optional(),
    customFields: z.nullable(z.array(customfields_js_1.CustomFields$outboundSchema)).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    source: z.nullable(z.lazy(() => exports.AtsUpdateApplicationRequestDtoSource$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        applicationStatus: "application_status",
        customFields: "custom_fields",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsUpdateApplicationRequestDto$;
(function (AtsUpdateApplicationRequestDto$) {
    /** @deprecated use `AtsUpdateApplicationRequestDto$inboundSchema` instead. */
    AtsUpdateApplicationRequestDto$.inboundSchema = exports.AtsUpdateApplicationRequestDto$inboundSchema;
    /** @deprecated use `AtsUpdateApplicationRequestDto$outboundSchema` instead. */
    AtsUpdateApplicationRequestDto$.outboundSchema = exports.AtsUpdateApplicationRequestDto$outboundSchema;
})(AtsUpdateApplicationRequestDto$ || (exports.AtsUpdateApplicationRequestDto$ = AtsUpdateApplicationRequestDto$ = {}));
function atsUpdateApplicationRequestDtoToJSON(atsUpdateApplicationRequestDto) {
    return JSON.stringify(exports.AtsUpdateApplicationRequestDto$outboundSchema.parse(atsUpdateApplicationRequestDto));
}
function atsUpdateApplicationRequestDtoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsUpdateApplicationRequestDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsUpdateApplicationRequestDto' from JSON`);
}
//# sourceMappingURL=atsupdateapplicationrequestdto.js.map