"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.AtsUpdateJobRequestDto$outboundSchema = exports.AtsUpdateJobRequestDtoJobStatus$outboundSchema = exports.AtsUpdateJobRequestDtoValue$outboundSchema = exports.AtsUpdateJobRequestDtoSourceValue$outboundSchema = exports.AtsUpdateJobRequestDto4$outboundSchema = exports.AtsUpdateJobRequestDtoConfidential$outboundSchema = exports.AtsUpdateJobRequestDtoValue = exports.AtsUpdateJobRequestDtoConfidential = void 0;
exports.atsUpdateJobRequestDto4ToJSON = atsUpdateJobRequestDto4ToJSON;
exports.atsUpdateJobRequestDtoSourceValueToJSON = atsUpdateJobRequestDtoSourceValueToJSON;
exports.atsUpdateJobRequestDtoJobStatusToJSON = atsUpdateJobRequestDtoJobStatusToJSON;
exports.atsUpdateJobRequestDtoToJSON = atsUpdateJobRequestDtoToJSON;
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 customfields_js_1 = require("./customfields.js");
const interviewstage_js_1 = require("./interviewstage.js");
/**
 * Confidential status of the job
 */
var AtsUpdateJobRequestDtoConfidential;
(function (AtsUpdateJobRequestDtoConfidential) {
    AtsUpdateJobRequestDtoConfidential["True"] = "true";
    AtsUpdateJobRequestDtoConfidential["False"] = "false";
    AtsUpdateJobRequestDtoConfidential["UnmappedValue"] = "unmapped_value";
})(AtsUpdateJobRequestDtoConfidential || (exports.AtsUpdateJobRequestDtoConfidential = AtsUpdateJobRequestDtoConfidential = {}));
/**
 * The status of the job.
 */
var AtsUpdateJobRequestDtoValue;
(function (AtsUpdateJobRequestDtoValue) {
    AtsUpdateJobRequestDtoValue["Published"] = "published";
    AtsUpdateJobRequestDtoValue["Draft"] = "draft";
    AtsUpdateJobRequestDtoValue["Pending"] = "pending";
    AtsUpdateJobRequestDtoValue["Internal"] = "internal";
    AtsUpdateJobRequestDtoValue["Archived"] = "archived";
    AtsUpdateJobRequestDtoValue["Closed"] = "closed";
    AtsUpdateJobRequestDtoValue["Open"] = "open";
    AtsUpdateJobRequestDtoValue["Deleted"] = "deleted";
    AtsUpdateJobRequestDtoValue["OnHold"] = "on_hold";
    AtsUpdateJobRequestDtoValue["UnmappedValue"] = "unmapped_value";
})(AtsUpdateJobRequestDtoValue || (exports.AtsUpdateJobRequestDtoValue = AtsUpdateJobRequestDtoValue = {}));
/** @internal */
exports.AtsUpdateJobRequestDtoConfidential$outboundSchema = openEnums.outboundSchema(AtsUpdateJobRequestDtoConfidential);
/** @internal */
exports.AtsUpdateJobRequestDto4$outboundSchema = z.object({});
function atsUpdateJobRequestDto4ToJSON(atsUpdateJobRequestDto4) {
    return JSON.stringify(exports.AtsUpdateJobRequestDto4$outboundSchema.parse(atsUpdateJobRequestDto4));
}
/** @internal */
exports.AtsUpdateJobRequestDtoSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.AtsUpdateJobRequestDto4$outboundSchema),
    z.array(z.any()),
]);
function atsUpdateJobRequestDtoSourceValueToJSON(atsUpdateJobRequestDtoSourceValue) {
    return JSON.stringify(exports.AtsUpdateJobRequestDtoSourceValue$outboundSchema.parse(atsUpdateJobRequestDtoSourceValue));
}
/** @internal */
exports.AtsUpdateJobRequestDtoValue$outboundSchema = openEnums.outboundSchema(AtsUpdateJobRequestDtoValue);
/** @internal */
exports.AtsUpdateJobRequestDtoJobStatus$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.AtsUpdateJobRequestDto4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AtsUpdateJobRequestDtoValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function atsUpdateJobRequestDtoJobStatusToJSON(atsUpdateJobRequestDtoJobStatus) {
    return JSON.stringify(exports.AtsUpdateJobRequestDtoJobStatus$outboundSchema.parse(atsUpdateJobRequestDtoJobStatus));
}
/** @internal */
exports.AtsUpdateJobRequestDto$outboundSchema = z.object({
    code: z.nullable(z.string()).optional(),
    confidential: z.nullable(exports.AtsUpdateJobRequestDtoConfidential$outboundSchema)
        .optional(),
    customFields: z.nullable(z.array(customfields_js_1.CustomFields$outboundSchema)).optional(),
    departmentIds: z.nullable(z.array(z.string())).optional(),
    description: z.nullable(z.string()).optional(),
    hiringTeam: z.nullable(z.array(atsjobhiringteam_js_1.AtsJobHiringTeam$outboundSchema)).optional(),
    interviewStages: z.nullable(z.array(interviewstage_js_1.InterviewStage$outboundSchema))
        .optional(),
    jobStatus: z.nullable(z.lazy(() => exports.AtsUpdateJobRequestDtoJobStatus$outboundSchema)).optional(),
    locationIds: z.nullable(z.array(z.string())).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    status: z.nullable(z.string()).optional(),
    title: z.nullable(z.string()).optional(),
    unifiedCustomFields: z.nullable(z.record(z.any())).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        customFields: "custom_fields",
        departmentIds: "department_ids",
        hiringTeam: "hiring_team",
        interviewStages: "interview_stages",
        jobStatus: "job_status",
        locationIds: "location_ids",
        unifiedCustomFields: "unified_custom_fields",
    });
});
function atsUpdateJobRequestDtoToJSON(atsUpdateJobRequestDto) {
    return JSON.stringify(exports.AtsUpdateJobRequestDto$outboundSchema.parse(atsUpdateJobRequestDto));
}
//# sourceMappingURL=atsupdatejobrequestdto.js.map