"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.HrisUpdateEmploymentRequestDto$outboundSchema = exports.HrisUpdateEmploymentRequestDtoWorkTime$outboundSchema = exports.HrisUpdateEmploymentRequestDtoPeriod$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$outboundSchema = exports.HrisUpdateEmploymentRequestDtoType$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasType$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasTypeValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasTypeSourceValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasType4$outboundSchema = exports.HrisUpdateEmploymentRequestDtoPayPeriod$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$outboundSchema = exports.HrisUpdateEmploymentRequestDtoPayFrequency$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$outboundSchema = exports.HrisUpdateEmploymentRequestDtoGrade$outboundSchema = exports.HrisUpdateEmploymentRequestDtoEmploymentType$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasSourceValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemas4$outboundSchema = exports.HrisUpdateEmploymentRequestDtoEmploymentContractType$outboundSchema = exports.HrisUpdateEmploymentRequestDtoValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSourceValue$outboundSchema = exports.HrisUpdateEmploymentRequestDto4$outboundSchema = exports.HrisUpdateEmploymentRequestDtoContractType$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasContractType$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasContractTypeValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasContractTypeSourceValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasContractType4$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue = exports.HrisUpdateEmploymentRequestDtoSchemasTypeValue = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue = exports.HrisUpdateEmploymentRequestDtoSchemasValue = exports.HrisUpdateEmploymentRequestDtoValue = exports.HrisUpdateEmploymentRequestDtoSchemasContractTypeValue = void 0;
exports.hrisUpdateEmploymentRequestDtoSchemasContractType4ToJSON = hrisUpdateEmploymentRequestDtoSchemasContractType4ToJSON;
exports.hrisUpdateEmploymentRequestDtoSchemasContractTypeSourceValueToJSON = hrisUpdateEmploymentRequestDtoSchemasContractTypeSourceValueToJSON;
exports.hrisUpdateEmploymentRequestDtoSchemasContractTypeToJSON = hrisUpdateEmploymentRequestDtoSchemasContractTypeToJSON;
exports.hrisUpdateEmploymentRequestDtoContractTypeToJSON = hrisUpdateEmploymentRequestDtoContractTypeToJSON;
exports.hrisUpdateEmploymentRequestDto4ToJSON = hrisUpdateEmploymentRequestDto4ToJSON;
exports.hrisUpdateEmploymentRequestDtoSourceValueToJSON = hrisUpdateEmploymentRequestDtoSourceValueToJSON;
exports.hrisUpdateEmploymentRequestDtoEmploymentContractTypeToJSON = hrisUpdateEmploymentRequestDtoEmploymentContractTypeToJSON;
exports.hrisUpdateEmploymentRequestDtoSchemas4ToJSON = hrisUpdateEmploymentRequestDtoSchemas4ToJSON;
exports.hrisUpdateEmploymentRequestDtoSchemasSourceValueToJSON = hrisUpdateEmploymentRequestDtoSchemasSourceValueToJSON;
exports.hrisUpdateEmploymentRequestDtoEmploymentTypeToJSON = hrisUpdateEmploymentRequestDtoEmploymentTypeToJSON;
exports.hrisUpdateEmploymentRequestDtoGradeToJSON = hrisUpdateEmploymentRequestDtoGradeToJSON;
exports.hrisUpdateEmploymentRequestDtoSchemasPayFrequency4ToJSON = hrisUpdateEmploymentRequestDtoSchemasPayFrequency4ToJSON;
exports.hrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValueToJSON = hrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValueToJSON;
exports.hrisUpdateEmploymentRequestDtoPayFrequencyToJSON = hrisUpdateEmploymentRequestDtoPayFrequencyToJSON;
exports.hrisUpdateEmploymentRequestDtoSchemasPayPeriod4ToJSON = hrisUpdateEmploymentRequestDtoSchemasPayPeriod4ToJSON;
exports.hrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValueToJSON = hrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValueToJSON;
exports.hrisUpdateEmploymentRequestDtoPayPeriodToJSON = hrisUpdateEmploymentRequestDtoPayPeriodToJSON;
exports.hrisUpdateEmploymentRequestDtoSchemasType4ToJSON = hrisUpdateEmploymentRequestDtoSchemasType4ToJSON;
exports.hrisUpdateEmploymentRequestDtoSchemasTypeSourceValueToJSON = hrisUpdateEmploymentRequestDtoSchemasTypeSourceValueToJSON;
exports.hrisUpdateEmploymentRequestDtoSchemasTypeToJSON = hrisUpdateEmploymentRequestDtoSchemasTypeToJSON;
exports.hrisUpdateEmploymentRequestDtoTypeToJSON = hrisUpdateEmploymentRequestDtoTypeToJSON;
exports.hrisUpdateEmploymentRequestDtoSchemasWorkTime4ToJSON = hrisUpdateEmploymentRequestDtoSchemasWorkTime4ToJSON;
exports.hrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValueToJSON = hrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValueToJSON;
exports.hrisUpdateEmploymentRequestDtoPeriodToJSON = hrisUpdateEmploymentRequestDtoPeriodToJSON;
exports.hrisUpdateEmploymentRequestDtoWorkTimeToJSON = hrisUpdateEmploymentRequestDtoWorkTimeToJSON;
exports.hrisUpdateEmploymentRequestDtoToJSON = hrisUpdateEmploymentRequestDtoToJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../../lib/primitives.js");
const openEnums = __importStar(require("../../types/enums.js"));
var HrisUpdateEmploymentRequestDtoSchemasContractTypeValue;
(function (HrisUpdateEmploymentRequestDtoSchemasContractTypeValue) {
    HrisUpdateEmploymentRequestDtoSchemasContractTypeValue["FullTime"] = "full_time";
    HrisUpdateEmploymentRequestDtoSchemasContractTypeValue["Shifts"] = "shifts";
    HrisUpdateEmploymentRequestDtoSchemasContractTypeValue["PartTime"] = "part_time";
    HrisUpdateEmploymentRequestDtoSchemasContractTypeValue["UnmappedValue"] = "unmapped_value";
})(HrisUpdateEmploymentRequestDtoSchemasContractTypeValue || (exports.HrisUpdateEmploymentRequestDtoSchemasContractTypeValue = HrisUpdateEmploymentRequestDtoSchemasContractTypeValue = {}));
var HrisUpdateEmploymentRequestDtoValue;
(function (HrisUpdateEmploymentRequestDtoValue) {
    HrisUpdateEmploymentRequestDtoValue["FullTime"] = "full_time";
    HrisUpdateEmploymentRequestDtoValue["Shifts"] = "shifts";
    HrisUpdateEmploymentRequestDtoValue["PartTime"] = "part_time";
    HrisUpdateEmploymentRequestDtoValue["UnmappedValue"] = "unmapped_value";
})(HrisUpdateEmploymentRequestDtoValue || (exports.HrisUpdateEmploymentRequestDtoValue = HrisUpdateEmploymentRequestDtoValue = {}));
/**
 * The type of the employment.
 */
var HrisUpdateEmploymentRequestDtoSchemasValue;
(function (HrisUpdateEmploymentRequestDtoSchemasValue) {
    HrisUpdateEmploymentRequestDtoSchemasValue["Contractor"] = "contractor";
    HrisUpdateEmploymentRequestDtoSchemasValue["Intern"] = "intern";
    HrisUpdateEmploymentRequestDtoSchemasValue["Permanent"] = "permanent";
    HrisUpdateEmploymentRequestDtoSchemasValue["Apprentice"] = "apprentice";
    HrisUpdateEmploymentRequestDtoSchemasValue["Freelance"] = "freelance";
    HrisUpdateEmploymentRequestDtoSchemasValue["Terminated"] = "terminated";
    HrisUpdateEmploymentRequestDtoSchemasValue["Temporary"] = "temporary";
    HrisUpdateEmploymentRequestDtoSchemasValue["Seasonal"] = "seasonal";
    HrisUpdateEmploymentRequestDtoSchemasValue["Volunteer"] = "volunteer";
    HrisUpdateEmploymentRequestDtoSchemasValue["Probation"] = "probation";
    HrisUpdateEmploymentRequestDtoSchemasValue["Internal"] = "internal";
    HrisUpdateEmploymentRequestDtoSchemasValue["External"] = "external";
    HrisUpdateEmploymentRequestDtoSchemasValue["Expatriate"] = "expatriate";
    HrisUpdateEmploymentRequestDtoSchemasValue["EmployerOfRecord"] = "employer_of_record";
    HrisUpdateEmploymentRequestDtoSchemasValue["Casual"] = "casual";
    HrisUpdateEmploymentRequestDtoSchemasValue["Programme"] = "Programme";
    HrisUpdateEmploymentRequestDtoSchemasValue["UnmappedValue"] = "unmapped_value";
})(HrisUpdateEmploymentRequestDtoSchemasValue || (exports.HrisUpdateEmploymentRequestDtoSchemasValue = HrisUpdateEmploymentRequestDtoSchemasValue = {}));
/**
 * The pay frequency of the job postings.
 */
var HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue;
(function (HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue) {
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue["Hourly"] = "hourly";
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue["Weekly"] = "weekly";
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue["BiWeekly"] = "bi_weekly";
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue["FourWeekly"] = "four_weekly";
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue["SemiMonthly"] = "semi_monthly";
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue["Monthly"] = "monthly";
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue["BiMonthly"] = "bi_monthly";
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue["Quarterly"] = "quarterly";
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue["SemiAnnually"] = "semi_annually";
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue["Yearly"] = "yearly";
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue["ThirteenMonthly"] = "thirteen_monthly";
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue["ProRata"] = "pro_rata";
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue["UnmappedValue"] = "unmapped_value";
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue["HalfYearly"] = "half_yearly";
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue["Daily"] = "daily";
})(HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue || (exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue = HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue = {}));
/**
 * The pay period of the job postings.
 */
var HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue;
(function (HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue) {
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue["Hour"] = "hour";
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue["Day"] = "day";
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue["Week"] = "week";
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue["EveryTwoWeeks"] = "every_two_weeks";
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue["Month"] = "month";
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue["TwiceAMonth"] = "twice_a_month";
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue["EveryTwoMonths"] = "every_two_months";
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue["Quarter"] = "quarter";
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue["EverySixMonths"] = "every_six_months";
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue["Year"] = "year";
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue["OneOff"] = "one_off";
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue["None"] = "none";
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue["UnmappedValue"] = "unmapped_value";
})(HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue || (exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue = HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue = {}));
var HrisUpdateEmploymentRequestDtoSchemasTypeValue;
(function (HrisUpdateEmploymentRequestDtoSchemasTypeValue) {
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["Contractor"] = "contractor";
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["Intern"] = "intern";
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["Permanent"] = "permanent";
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["Apprentice"] = "apprentice";
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["Freelance"] = "freelance";
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["Terminated"] = "terminated";
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["Temporary"] = "temporary";
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["Seasonal"] = "seasonal";
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["Volunteer"] = "volunteer";
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["Probation"] = "probation";
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["Internal"] = "internal";
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["External"] = "external";
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["Expatriate"] = "expatriate";
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["EmployerOfRecord"] = "employer_of_record";
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["Casual"] = "casual";
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["Programme"] = "Programme";
    HrisUpdateEmploymentRequestDtoSchemasTypeValue["UnmappedValue"] = "unmapped_value";
})(HrisUpdateEmploymentRequestDtoSchemasTypeValue || (exports.HrisUpdateEmploymentRequestDtoSchemasTypeValue = HrisUpdateEmploymentRequestDtoSchemasTypeValue = {}));
/**
 * The unified value for the period.
 */
var HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue;
(function (HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue) {
    HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue["Day"] = "day";
    HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue["Week"] = "week";
    HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue["Month"] = "month";
    HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue["Year"] = "year";
    HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue["UnmappedValue"] = "unmapped_value";
})(HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue || (exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue = HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue = {}));
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasContractType4$outboundSchema = z.object({});
function hrisUpdateEmploymentRequestDtoSchemasContractType4ToJSON(hrisUpdateEmploymentRequestDtoSchemasContractType4) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasContractType4$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSchemasContractType4));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasContractTypeSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasContractType4$outboundSchema),
    z.array(z.any()),
]);
function hrisUpdateEmploymentRequestDtoSchemasContractTypeSourceValueToJSON(hrisUpdateEmploymentRequestDtoSchemasContractTypeSourceValue) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasContractTypeSourceValue$outboundSchema
        .parse(hrisUpdateEmploymentRequestDtoSchemasContractTypeSourceValue));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasContractTypeValue$outboundSchema = openEnums.outboundSchema(HrisUpdateEmploymentRequestDtoSchemasContractTypeValue);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasContractType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasContractType4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoSchemasContractTypeValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function hrisUpdateEmploymentRequestDtoSchemasContractTypeToJSON(hrisUpdateEmploymentRequestDtoSchemasContractType) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasContractType$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSchemasContractType));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoContractType$outboundSchema = z.object({
    contractType: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasContractType$outboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    label: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contractType: "contract_type",
        remoteId: "remote_id",
    });
});
function hrisUpdateEmploymentRequestDtoContractTypeToJSON(hrisUpdateEmploymentRequestDtoContractType) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoContractType$outboundSchema.parse(hrisUpdateEmploymentRequestDtoContractType));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDto4$outboundSchema = z.object({});
function hrisUpdateEmploymentRequestDto4ToJSON(hrisUpdateEmploymentRequestDto4) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDto4$outboundSchema.parse(hrisUpdateEmploymentRequestDto4));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HrisUpdateEmploymentRequestDto4$outboundSchema),
    z.array(z.any()),
]);
function hrisUpdateEmploymentRequestDtoSourceValueToJSON(hrisUpdateEmploymentRequestDtoSourceValue) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSourceValue$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSourceValue));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoValue$outboundSchema = openEnums.outboundSchema(HrisUpdateEmploymentRequestDtoValue);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoEmploymentContractType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HrisUpdateEmploymentRequestDto4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function hrisUpdateEmploymentRequestDtoEmploymentContractTypeToJSON(hrisUpdateEmploymentRequestDtoEmploymentContractType) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoEmploymentContractType$outboundSchema.parse(hrisUpdateEmploymentRequestDtoEmploymentContractType));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemas4$outboundSchema = z.object({});
function hrisUpdateEmploymentRequestDtoSchemas4ToJSON(hrisUpdateEmploymentRequestDtoSchemas4) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemas4$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSchemas4));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemas4$outboundSchema),
    z.array(z.any()),
]);
function hrisUpdateEmploymentRequestDtoSchemasSourceValueToJSON(hrisUpdateEmploymentRequestDtoSchemasSourceValue) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasSourceValue$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSchemasSourceValue));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasValue$outboundSchema = openEnums.outboundSchema(HrisUpdateEmploymentRequestDtoSchemasValue);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoEmploymentType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemas4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoSchemasValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function hrisUpdateEmploymentRequestDtoEmploymentTypeToJSON(hrisUpdateEmploymentRequestDtoEmploymentType) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoEmploymentType$outboundSchema.parse(hrisUpdateEmploymentRequestDtoEmploymentType));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoGrade$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 hrisUpdateEmploymentRequestDtoGradeToJSON(hrisUpdateEmploymentRequestDtoGrade) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoGrade$outboundSchema.parse(hrisUpdateEmploymentRequestDtoGrade));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$outboundSchema = z.object({});
function hrisUpdateEmploymentRequestDtoSchemasPayFrequency4ToJSON(hrisUpdateEmploymentRequestDtoSchemasPayFrequency4) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSchemasPayFrequency4));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$outboundSchema),
    z.array(z.any()),
]);
function hrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValueToJSON(hrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$outboundSchema
        .parse(hrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$outboundSchema = openEnums.outboundSchema(HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoPayFrequency$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function hrisUpdateEmploymentRequestDtoPayFrequencyToJSON(hrisUpdateEmploymentRequestDtoPayFrequency) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoPayFrequency$outboundSchema.parse(hrisUpdateEmploymentRequestDtoPayFrequency));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$outboundSchema = z.object({});
function hrisUpdateEmploymentRequestDtoSchemasPayPeriod4ToJSON(hrisUpdateEmploymentRequestDtoSchemasPayPeriod4) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSchemasPayPeriod4));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$outboundSchema),
    z.array(z.any()),
]);
function hrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValueToJSON(hrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$outboundSchema
        .parse(hrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$outboundSchema = openEnums.outboundSchema(HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoPayPeriod$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function hrisUpdateEmploymentRequestDtoPayPeriodToJSON(hrisUpdateEmploymentRequestDtoPayPeriod) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoPayPeriod$outboundSchema.parse(hrisUpdateEmploymentRequestDtoPayPeriod));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasType4$outboundSchema = z.object({});
function hrisUpdateEmploymentRequestDtoSchemasType4ToJSON(hrisUpdateEmploymentRequestDtoSchemasType4) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasType4$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSchemasType4));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasTypeSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasType4$outboundSchema),
    z.array(z.any()),
]);
function hrisUpdateEmploymentRequestDtoSchemasTypeSourceValueToJSON(hrisUpdateEmploymentRequestDtoSchemasTypeSourceValue) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasTypeSourceValue$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSchemasTypeSourceValue));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasTypeValue$outboundSchema = openEnums.outboundSchema(HrisUpdateEmploymentRequestDtoSchemasTypeValue);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasType4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoSchemasTypeValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function hrisUpdateEmploymentRequestDtoSchemasTypeToJSON(hrisUpdateEmploymentRequestDtoSchemasType) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasType$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSchemasType));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoType$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    label: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
    type: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasType$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        remoteId: "remote_id",
    });
});
function hrisUpdateEmploymentRequestDtoTypeToJSON(hrisUpdateEmploymentRequestDtoType) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoType$outboundSchema.parse(hrisUpdateEmploymentRequestDtoType));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$outboundSchema = z.object({});
function hrisUpdateEmploymentRequestDtoSchemasWorkTime4ToJSON(hrisUpdateEmploymentRequestDtoSchemasWorkTime4) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSchemasWorkTime4));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$outboundSchema),
    z.array(z.any()),
]);
function hrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValueToJSON(hrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$outboundSchema
        .parse(hrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$outboundSchema = openEnums.outboundSchema(HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoPeriod$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function hrisUpdateEmploymentRequestDtoPeriodToJSON(hrisUpdateEmploymentRequestDtoPeriod) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoPeriod$outboundSchema.parse(hrisUpdateEmploymentRequestDtoPeriod));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDtoWorkTime$outboundSchema = z.object({
    duration: z.nullable(z.string()).optional(),
    period: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoPeriod$outboundSchema)).optional(),
});
function hrisUpdateEmploymentRequestDtoWorkTimeToJSON(hrisUpdateEmploymentRequestDtoWorkTime) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoWorkTime$outboundSchema.parse(hrisUpdateEmploymentRequestDtoWorkTime));
}
/** @internal */
exports.HrisUpdateEmploymentRequestDto$outboundSchema = z.object({
    contractType: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoContractType$outboundSchema)).optional(),
    effectiveDate: z.nullable(z.date().transform(v => v.toISOString()))
        .optional(),
    employmentContractType: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoEmploymentContractType$outboundSchema)).optional(),
    employmentType: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoEmploymentType$outboundSchema)).optional(),
    endDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    grade: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoGrade$outboundSchema)).optional(),
    jobTitle: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    payCurrency: z.nullable(z.string()).optional(),
    payFrequency: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoPayFrequency$outboundSchema)).optional(),
    payPeriod: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoPayPeriod$outboundSchema)).optional(),
    payRate: z.nullable(z.string()).optional(),
    payrollCode: z.nullable(z.string()).optional(),
    type: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoType$outboundSchema)).optional(),
    unifiedCustomFields: z.nullable(z.record(z.any())).optional(),
    workTime: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoWorkTime$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contractType: "contract_type",
        effectiveDate: "effective_date",
        employmentContractType: "employment_contract_type",
        employmentType: "employment_type",
        endDate: "end_date",
        jobTitle: "job_title",
        payCurrency: "pay_currency",
        payFrequency: "pay_frequency",
        payPeriod: "pay_period",
        payRate: "pay_rate",
        payrollCode: "payroll_code",
        unifiedCustomFields: "unified_custom_fields",
        workTime: "work_time",
    });
});
function hrisUpdateEmploymentRequestDtoToJSON(hrisUpdateEmploymentRequestDto) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDto$outboundSchema.parse(hrisUpdateEmploymentRequestDto));
}
//# sourceMappingURL=hrisupdateemploymentrequestdto.js.map