"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$outboundSchema = exports.AtsUpdateApplicationRequestDtoSource$outboundSchema = exports.AtsUpdateApplicationRequestDtoApplicationStatus$outboundSchema = exports.AtsUpdateApplicationRequestDtoValue$outboundSchema = exports.AtsUpdateApplicationRequestDtoSourceValue$outboundSchema = exports.AtsUpdateApplicationRequestDto4$outboundSchema = exports.AtsUpdateApplicationRequestDtoValue = void 0;
exports.atsUpdateApplicationRequestDto4ToJSON = atsUpdateApplicationRequestDto4ToJSON;
exports.atsUpdateApplicationRequestDtoSourceValueToJSON = atsUpdateApplicationRequestDtoSourceValueToJSON;
exports.atsUpdateApplicationRequestDtoApplicationStatusToJSON = atsUpdateApplicationRequestDtoApplicationStatusToJSON;
exports.atsUpdateApplicationRequestDtoSourceToJSON = atsUpdateApplicationRequestDtoSourceToJSON;
exports.atsUpdateApplicationRequestDtoToJSON = atsUpdateApplicationRequestDtoToJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../../lib/primitives.js");
const openEnums = __importStar(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$outboundSchema = z.object({});
function atsUpdateApplicationRequestDto4ToJSON(atsUpdateApplicationRequestDto4) {
    return JSON.stringify(exports.AtsUpdateApplicationRequestDto4$outboundSchema.parse(atsUpdateApplicationRequestDto4));
}
/** @internal */
exports.AtsUpdateApplicationRequestDtoSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.AtsUpdateApplicationRequestDto4$outboundSchema),
    z.array(z.any()),
]);
function atsUpdateApplicationRequestDtoSourceValueToJSON(atsUpdateApplicationRequestDtoSourceValue) {
    return JSON.stringify(exports.AtsUpdateApplicationRequestDtoSourceValue$outboundSchema.parse(atsUpdateApplicationRequestDtoSourceValue));
}
/** @internal */
exports.AtsUpdateApplicationRequestDtoValue$outboundSchema = openEnums.outboundSchema(AtsUpdateApplicationRequestDtoValue);
/** @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",
    });
});
function atsUpdateApplicationRequestDtoApplicationStatusToJSON(atsUpdateApplicationRequestDtoApplicationStatus) {
    return JSON.stringify(exports.AtsUpdateApplicationRequestDtoApplicationStatus$outboundSchema.parse(atsUpdateApplicationRequestDtoApplicationStatus));
}
/** @internal */
exports.AtsUpdateApplicationRequestDtoSource$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
});
function atsUpdateApplicationRequestDtoSourceToJSON(atsUpdateApplicationRequestDtoSource) {
    return JSON.stringify(exports.AtsUpdateApplicationRequestDtoSource$outboundSchema.parse(atsUpdateApplicationRequestDtoSource));
}
/** @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",
    });
});
function atsUpdateApplicationRequestDtoToJSON(atsUpdateApplicationRequestDto) {
    return JSON.stringify(exports.AtsUpdateApplicationRequestDto$outboundSchema.parse(atsUpdateApplicationRequestDto));
}
//# sourceMappingURL=atsupdateapplicationrequestdto.js.map