"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.HrisCreateEmploymentRequestDto$outboundSchema = exports.HrisCreateEmploymentRequestDtoWorkTime$outboundSchema = exports.HrisCreateEmploymentRequestDtoPeriod$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasWorkTimeValue$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasWorkTimeSourceValue$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasWorkTime4$outboundSchema = exports.HrisCreateEmploymentRequestDtoType$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasType$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasTypeValue$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasTypeSourceValue$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasType4$outboundSchema = exports.HrisCreateEmploymentRequestDtoPayPeriod$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasPayPeriodValue$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasPayPeriodSourceValue$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasPayPeriod4$outboundSchema = exports.HrisCreateEmploymentRequestDtoPayFrequency$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasPayFrequencySourceValue$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasPayFrequency4$outboundSchema = exports.HrisCreateEmploymentRequestDtoGrade$outboundSchema = exports.HrisCreateEmploymentRequestDtoEmploymentType$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasValue$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasSourceValue$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemas4$outboundSchema = exports.HrisCreateEmploymentRequestDtoEmploymentContractType$outboundSchema = exports.HrisCreateEmploymentRequestDtoValue$outboundSchema = exports.HrisCreateEmploymentRequestDtoSourceValue$outboundSchema = exports.HrisCreateEmploymentRequestDto4$outboundSchema = exports.HrisCreateEmploymentRequestDtoContractType$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasContractType$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasContractTypeValue$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasContractTypeSourceValue$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasContractType4$outboundSchema = exports.HrisCreateEmploymentRequestDtoSchemasWorkTimeValue = exports.HrisCreateEmploymentRequestDtoSchemasTypeValue = exports.HrisCreateEmploymentRequestDtoSchemasPayPeriodValue = exports.HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue = exports.HrisCreateEmploymentRequestDtoSchemasValue = exports.HrisCreateEmploymentRequestDtoValue = exports.HrisCreateEmploymentRequestDtoSchemasContractTypeValue = void 0;
exports.hrisCreateEmploymentRequestDtoSchemasContractType4ToJSON = hrisCreateEmploymentRequestDtoSchemasContractType4ToJSON;
exports.hrisCreateEmploymentRequestDtoSchemasContractTypeSourceValueToJSON = hrisCreateEmploymentRequestDtoSchemasContractTypeSourceValueToJSON;
exports.hrisCreateEmploymentRequestDtoSchemasContractTypeToJSON = hrisCreateEmploymentRequestDtoSchemasContractTypeToJSON;
exports.hrisCreateEmploymentRequestDtoContractTypeToJSON = hrisCreateEmploymentRequestDtoContractTypeToJSON;
exports.hrisCreateEmploymentRequestDto4ToJSON = hrisCreateEmploymentRequestDto4ToJSON;
exports.hrisCreateEmploymentRequestDtoSourceValueToJSON = hrisCreateEmploymentRequestDtoSourceValueToJSON;
exports.hrisCreateEmploymentRequestDtoEmploymentContractTypeToJSON = hrisCreateEmploymentRequestDtoEmploymentContractTypeToJSON;
exports.hrisCreateEmploymentRequestDtoSchemas4ToJSON = hrisCreateEmploymentRequestDtoSchemas4ToJSON;
exports.hrisCreateEmploymentRequestDtoSchemasSourceValueToJSON = hrisCreateEmploymentRequestDtoSchemasSourceValueToJSON;
exports.hrisCreateEmploymentRequestDtoEmploymentTypeToJSON = hrisCreateEmploymentRequestDtoEmploymentTypeToJSON;
exports.hrisCreateEmploymentRequestDtoGradeToJSON = hrisCreateEmploymentRequestDtoGradeToJSON;
exports.hrisCreateEmploymentRequestDtoSchemasPayFrequency4ToJSON = hrisCreateEmploymentRequestDtoSchemasPayFrequency4ToJSON;
exports.hrisCreateEmploymentRequestDtoSchemasPayFrequencySourceValueToJSON = hrisCreateEmploymentRequestDtoSchemasPayFrequencySourceValueToJSON;
exports.hrisCreateEmploymentRequestDtoPayFrequencyToJSON = hrisCreateEmploymentRequestDtoPayFrequencyToJSON;
exports.hrisCreateEmploymentRequestDtoSchemasPayPeriod4ToJSON = hrisCreateEmploymentRequestDtoSchemasPayPeriod4ToJSON;
exports.hrisCreateEmploymentRequestDtoSchemasPayPeriodSourceValueToJSON = hrisCreateEmploymentRequestDtoSchemasPayPeriodSourceValueToJSON;
exports.hrisCreateEmploymentRequestDtoPayPeriodToJSON = hrisCreateEmploymentRequestDtoPayPeriodToJSON;
exports.hrisCreateEmploymentRequestDtoSchemasType4ToJSON = hrisCreateEmploymentRequestDtoSchemasType4ToJSON;
exports.hrisCreateEmploymentRequestDtoSchemasTypeSourceValueToJSON = hrisCreateEmploymentRequestDtoSchemasTypeSourceValueToJSON;
exports.hrisCreateEmploymentRequestDtoSchemasTypeToJSON = hrisCreateEmploymentRequestDtoSchemasTypeToJSON;
exports.hrisCreateEmploymentRequestDtoTypeToJSON = hrisCreateEmploymentRequestDtoTypeToJSON;
exports.hrisCreateEmploymentRequestDtoSchemasWorkTime4ToJSON = hrisCreateEmploymentRequestDtoSchemasWorkTime4ToJSON;
exports.hrisCreateEmploymentRequestDtoSchemasWorkTimeSourceValueToJSON = hrisCreateEmploymentRequestDtoSchemasWorkTimeSourceValueToJSON;
exports.hrisCreateEmploymentRequestDtoPeriodToJSON = hrisCreateEmploymentRequestDtoPeriodToJSON;
exports.hrisCreateEmploymentRequestDtoWorkTimeToJSON = hrisCreateEmploymentRequestDtoWorkTimeToJSON;
exports.hrisCreateEmploymentRequestDtoToJSON = hrisCreateEmploymentRequestDtoToJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../../lib/primitives.js");
const openEnums = __importStar(require("../../types/enums.js"));
var HrisCreateEmploymentRequestDtoSchemasContractTypeValue;
(function (HrisCreateEmploymentRequestDtoSchemasContractTypeValue) {
    HrisCreateEmploymentRequestDtoSchemasContractTypeValue["FullTime"] = "full_time";
    HrisCreateEmploymentRequestDtoSchemasContractTypeValue["Shifts"] = "shifts";
    HrisCreateEmploymentRequestDtoSchemasContractTypeValue["PartTime"] = "part_time";
    HrisCreateEmploymentRequestDtoSchemasContractTypeValue["UnmappedValue"] = "unmapped_value";
})(HrisCreateEmploymentRequestDtoSchemasContractTypeValue || (exports.HrisCreateEmploymentRequestDtoSchemasContractTypeValue = HrisCreateEmploymentRequestDtoSchemasContractTypeValue = {}));
var HrisCreateEmploymentRequestDtoValue;
(function (HrisCreateEmploymentRequestDtoValue) {
    HrisCreateEmploymentRequestDtoValue["FullTime"] = "full_time";
    HrisCreateEmploymentRequestDtoValue["Shifts"] = "shifts";
    HrisCreateEmploymentRequestDtoValue["PartTime"] = "part_time";
    HrisCreateEmploymentRequestDtoValue["UnmappedValue"] = "unmapped_value";
})(HrisCreateEmploymentRequestDtoValue || (exports.HrisCreateEmploymentRequestDtoValue = HrisCreateEmploymentRequestDtoValue = {}));
/**
 * The type of the employment.
 */
var HrisCreateEmploymentRequestDtoSchemasValue;
(function (HrisCreateEmploymentRequestDtoSchemasValue) {
    HrisCreateEmploymentRequestDtoSchemasValue["Contractor"] = "contractor";
    HrisCreateEmploymentRequestDtoSchemasValue["Intern"] = "intern";
    HrisCreateEmploymentRequestDtoSchemasValue["Permanent"] = "permanent";
    HrisCreateEmploymentRequestDtoSchemasValue["Apprentice"] = "apprentice";
    HrisCreateEmploymentRequestDtoSchemasValue["Freelance"] = "freelance";
    HrisCreateEmploymentRequestDtoSchemasValue["Terminated"] = "terminated";
    HrisCreateEmploymentRequestDtoSchemasValue["Temporary"] = "temporary";
    HrisCreateEmploymentRequestDtoSchemasValue["Seasonal"] = "seasonal";
    HrisCreateEmploymentRequestDtoSchemasValue["Volunteer"] = "volunteer";
    HrisCreateEmploymentRequestDtoSchemasValue["Probation"] = "probation";
    HrisCreateEmploymentRequestDtoSchemasValue["Internal"] = "internal";
    HrisCreateEmploymentRequestDtoSchemasValue["External"] = "external";
    HrisCreateEmploymentRequestDtoSchemasValue["Expatriate"] = "expatriate";
    HrisCreateEmploymentRequestDtoSchemasValue["EmployerOfRecord"] = "employer_of_record";
    HrisCreateEmploymentRequestDtoSchemasValue["Casual"] = "casual";
    HrisCreateEmploymentRequestDtoSchemasValue["Programme"] = "Programme";
    HrisCreateEmploymentRequestDtoSchemasValue["UnmappedValue"] = "unmapped_value";
})(HrisCreateEmploymentRequestDtoSchemasValue || (exports.HrisCreateEmploymentRequestDtoSchemasValue = HrisCreateEmploymentRequestDtoSchemasValue = {}));
/**
 * The pay frequency of the job postings.
 */
var HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue;
(function (HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue) {
    HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue["Hourly"] = "hourly";
    HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue["Weekly"] = "weekly";
    HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue["BiWeekly"] = "bi_weekly";
    HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue["FourWeekly"] = "four_weekly";
    HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue["SemiMonthly"] = "semi_monthly";
    HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue["Monthly"] = "monthly";
    HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue["BiMonthly"] = "bi_monthly";
    HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue["Quarterly"] = "quarterly";
    HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue["SemiAnnually"] = "semi_annually";
    HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue["Yearly"] = "yearly";
    HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue["ThirteenMonthly"] = "thirteen_monthly";
    HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue["ProRata"] = "pro_rata";
    HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue["UnmappedValue"] = "unmapped_value";
    HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue["HalfYearly"] = "half_yearly";
    HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue["Daily"] = "daily";
})(HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue || (exports.HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue = HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue = {}));
/**
 * The pay period of the job postings.
 */
var HrisCreateEmploymentRequestDtoSchemasPayPeriodValue;
(function (HrisCreateEmploymentRequestDtoSchemasPayPeriodValue) {
    HrisCreateEmploymentRequestDtoSchemasPayPeriodValue["Hour"] = "hour";
    HrisCreateEmploymentRequestDtoSchemasPayPeriodValue["Day"] = "day";
    HrisCreateEmploymentRequestDtoSchemasPayPeriodValue["Week"] = "week";
    HrisCreateEmploymentRequestDtoSchemasPayPeriodValue["EveryTwoWeeks"] = "every_two_weeks";
    HrisCreateEmploymentRequestDtoSchemasPayPeriodValue["Month"] = "month";
    HrisCreateEmploymentRequestDtoSchemasPayPeriodValue["TwiceAMonth"] = "twice_a_month";
    HrisCreateEmploymentRequestDtoSchemasPayPeriodValue["EveryTwoMonths"] = "every_two_months";
    HrisCreateEmploymentRequestDtoSchemasPayPeriodValue["Quarter"] = "quarter";
    HrisCreateEmploymentRequestDtoSchemasPayPeriodValue["EverySixMonths"] = "every_six_months";
    HrisCreateEmploymentRequestDtoSchemasPayPeriodValue["Year"] = "year";
    HrisCreateEmploymentRequestDtoSchemasPayPeriodValue["OneOff"] = "one_off";
    HrisCreateEmploymentRequestDtoSchemasPayPeriodValue["None"] = "none";
    HrisCreateEmploymentRequestDtoSchemasPayPeriodValue["UnmappedValue"] = "unmapped_value";
})(HrisCreateEmploymentRequestDtoSchemasPayPeriodValue || (exports.HrisCreateEmploymentRequestDtoSchemasPayPeriodValue = HrisCreateEmploymentRequestDtoSchemasPayPeriodValue = {}));
var HrisCreateEmploymentRequestDtoSchemasTypeValue;
(function (HrisCreateEmploymentRequestDtoSchemasTypeValue) {
    HrisCreateEmploymentRequestDtoSchemasTypeValue["Contractor"] = "contractor";
    HrisCreateEmploymentRequestDtoSchemasTypeValue["Intern"] = "intern";
    HrisCreateEmploymentRequestDtoSchemasTypeValue["Permanent"] = "permanent";
    HrisCreateEmploymentRequestDtoSchemasTypeValue["Apprentice"] = "apprentice";
    HrisCreateEmploymentRequestDtoSchemasTypeValue["Freelance"] = "freelance";
    HrisCreateEmploymentRequestDtoSchemasTypeValue["Terminated"] = "terminated";
    HrisCreateEmploymentRequestDtoSchemasTypeValue["Temporary"] = "temporary";
    HrisCreateEmploymentRequestDtoSchemasTypeValue["Seasonal"] = "seasonal";
    HrisCreateEmploymentRequestDtoSchemasTypeValue["Volunteer"] = "volunteer";
    HrisCreateEmploymentRequestDtoSchemasTypeValue["Probation"] = "probation";
    HrisCreateEmploymentRequestDtoSchemasTypeValue["Internal"] = "internal";
    HrisCreateEmploymentRequestDtoSchemasTypeValue["External"] = "external";
    HrisCreateEmploymentRequestDtoSchemasTypeValue["Expatriate"] = "expatriate";
    HrisCreateEmploymentRequestDtoSchemasTypeValue["EmployerOfRecord"] = "employer_of_record";
    HrisCreateEmploymentRequestDtoSchemasTypeValue["Casual"] = "casual";
    HrisCreateEmploymentRequestDtoSchemasTypeValue["Programme"] = "Programme";
    HrisCreateEmploymentRequestDtoSchemasTypeValue["UnmappedValue"] = "unmapped_value";
})(HrisCreateEmploymentRequestDtoSchemasTypeValue || (exports.HrisCreateEmploymentRequestDtoSchemasTypeValue = HrisCreateEmploymentRequestDtoSchemasTypeValue = {}));
/**
 * The unified value for the period.
 */
var HrisCreateEmploymentRequestDtoSchemasWorkTimeValue;
(function (HrisCreateEmploymentRequestDtoSchemasWorkTimeValue) {
    HrisCreateEmploymentRequestDtoSchemasWorkTimeValue["Day"] = "day";
    HrisCreateEmploymentRequestDtoSchemasWorkTimeValue["Week"] = "week";
    HrisCreateEmploymentRequestDtoSchemasWorkTimeValue["Month"] = "month";
    HrisCreateEmploymentRequestDtoSchemasWorkTimeValue["Year"] = "year";
    HrisCreateEmploymentRequestDtoSchemasWorkTimeValue["UnmappedValue"] = "unmapped_value";
})(HrisCreateEmploymentRequestDtoSchemasWorkTimeValue || (exports.HrisCreateEmploymentRequestDtoSchemasWorkTimeValue = HrisCreateEmploymentRequestDtoSchemasWorkTimeValue = {}));
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasContractType4$outboundSchema = z.object({});
function hrisCreateEmploymentRequestDtoSchemasContractType4ToJSON(hrisCreateEmploymentRequestDtoSchemasContractType4) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoSchemasContractType4$outboundSchema.parse(hrisCreateEmploymentRequestDtoSchemasContractType4));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasContractTypeSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HrisCreateEmploymentRequestDtoSchemasContractType4$outboundSchema),
    z.array(z.any()),
]);
function hrisCreateEmploymentRequestDtoSchemasContractTypeSourceValueToJSON(hrisCreateEmploymentRequestDtoSchemasContractTypeSourceValue) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoSchemasContractTypeSourceValue$outboundSchema
        .parse(hrisCreateEmploymentRequestDtoSchemasContractTypeSourceValue));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasContractTypeValue$outboundSchema = openEnums.outboundSchema(HrisCreateEmploymentRequestDtoSchemasContractTypeValue);
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasContractType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HrisCreateEmploymentRequestDtoSchemasContractType4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisCreateEmploymentRequestDtoSchemasContractTypeValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function hrisCreateEmploymentRequestDtoSchemasContractTypeToJSON(hrisCreateEmploymentRequestDtoSchemasContractType) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoSchemasContractType$outboundSchema.parse(hrisCreateEmploymentRequestDtoSchemasContractType));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoContractType$outboundSchema = z.object({
    contractType: z.nullable(z.lazy(() => exports.HrisCreateEmploymentRequestDtoSchemasContractType$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 hrisCreateEmploymentRequestDtoContractTypeToJSON(hrisCreateEmploymentRequestDtoContractType) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoContractType$outboundSchema.parse(hrisCreateEmploymentRequestDtoContractType));
}
/** @internal */
exports.HrisCreateEmploymentRequestDto4$outboundSchema = z.object({});
function hrisCreateEmploymentRequestDto4ToJSON(hrisCreateEmploymentRequestDto4) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDto4$outboundSchema.parse(hrisCreateEmploymentRequestDto4));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HrisCreateEmploymentRequestDto4$outboundSchema),
    z.array(z.any()),
]);
function hrisCreateEmploymentRequestDtoSourceValueToJSON(hrisCreateEmploymentRequestDtoSourceValue) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoSourceValue$outboundSchema.parse(hrisCreateEmploymentRequestDtoSourceValue));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoValue$outboundSchema = openEnums.outboundSchema(HrisCreateEmploymentRequestDtoValue);
/** @internal */
exports.HrisCreateEmploymentRequestDtoEmploymentContractType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HrisCreateEmploymentRequestDto4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisCreateEmploymentRequestDtoValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function hrisCreateEmploymentRequestDtoEmploymentContractTypeToJSON(hrisCreateEmploymentRequestDtoEmploymentContractType) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoEmploymentContractType$outboundSchema.parse(hrisCreateEmploymentRequestDtoEmploymentContractType));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemas4$outboundSchema = z.object({});
function hrisCreateEmploymentRequestDtoSchemas4ToJSON(hrisCreateEmploymentRequestDtoSchemas4) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoSchemas4$outboundSchema.parse(hrisCreateEmploymentRequestDtoSchemas4));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HrisCreateEmploymentRequestDtoSchemas4$outboundSchema),
    z.array(z.any()),
]);
function hrisCreateEmploymentRequestDtoSchemasSourceValueToJSON(hrisCreateEmploymentRequestDtoSchemasSourceValue) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoSchemasSourceValue$outboundSchema.parse(hrisCreateEmploymentRequestDtoSchemasSourceValue));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasValue$outboundSchema = openEnums.outboundSchema(HrisCreateEmploymentRequestDtoSchemasValue);
/** @internal */
exports.HrisCreateEmploymentRequestDtoEmploymentType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HrisCreateEmploymentRequestDtoSchemas4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisCreateEmploymentRequestDtoSchemasValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function hrisCreateEmploymentRequestDtoEmploymentTypeToJSON(hrisCreateEmploymentRequestDtoEmploymentType) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoEmploymentType$outboundSchema.parse(hrisCreateEmploymentRequestDtoEmploymentType));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoGrade$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 hrisCreateEmploymentRequestDtoGradeToJSON(hrisCreateEmploymentRequestDtoGrade) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoGrade$outboundSchema.parse(hrisCreateEmploymentRequestDtoGrade));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasPayFrequency4$outboundSchema = z.object({});
function hrisCreateEmploymentRequestDtoSchemasPayFrequency4ToJSON(hrisCreateEmploymentRequestDtoSchemasPayFrequency4) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoSchemasPayFrequency4$outboundSchema.parse(hrisCreateEmploymentRequestDtoSchemasPayFrequency4));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasPayFrequencySourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HrisCreateEmploymentRequestDtoSchemasPayFrequency4$outboundSchema),
    z.array(z.any()),
]);
function hrisCreateEmploymentRequestDtoSchemasPayFrequencySourceValueToJSON(hrisCreateEmploymentRequestDtoSchemasPayFrequencySourceValue) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoSchemasPayFrequencySourceValue$outboundSchema
        .parse(hrisCreateEmploymentRequestDtoSchemasPayFrequencySourceValue));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue$outboundSchema = openEnums.outboundSchema(HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue);
/** @internal */
exports.HrisCreateEmploymentRequestDtoPayFrequency$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HrisCreateEmploymentRequestDtoSchemasPayFrequency4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisCreateEmploymentRequestDtoSchemasPayFrequencyValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function hrisCreateEmploymentRequestDtoPayFrequencyToJSON(hrisCreateEmploymentRequestDtoPayFrequency) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoPayFrequency$outboundSchema.parse(hrisCreateEmploymentRequestDtoPayFrequency));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasPayPeriod4$outboundSchema = z.object({});
function hrisCreateEmploymentRequestDtoSchemasPayPeriod4ToJSON(hrisCreateEmploymentRequestDtoSchemasPayPeriod4) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoSchemasPayPeriod4$outboundSchema.parse(hrisCreateEmploymentRequestDtoSchemasPayPeriod4));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasPayPeriodSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HrisCreateEmploymentRequestDtoSchemasPayPeriod4$outboundSchema),
    z.array(z.any()),
]);
function hrisCreateEmploymentRequestDtoSchemasPayPeriodSourceValueToJSON(hrisCreateEmploymentRequestDtoSchemasPayPeriodSourceValue) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoSchemasPayPeriodSourceValue$outboundSchema
        .parse(hrisCreateEmploymentRequestDtoSchemasPayPeriodSourceValue));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasPayPeriodValue$outboundSchema = openEnums.outboundSchema(HrisCreateEmploymentRequestDtoSchemasPayPeriodValue);
/** @internal */
exports.HrisCreateEmploymentRequestDtoPayPeriod$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HrisCreateEmploymentRequestDtoSchemasPayPeriod4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisCreateEmploymentRequestDtoSchemasPayPeriodValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function hrisCreateEmploymentRequestDtoPayPeriodToJSON(hrisCreateEmploymentRequestDtoPayPeriod) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoPayPeriod$outboundSchema.parse(hrisCreateEmploymentRequestDtoPayPeriod));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasType4$outboundSchema = z.object({});
function hrisCreateEmploymentRequestDtoSchemasType4ToJSON(hrisCreateEmploymentRequestDtoSchemasType4) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoSchemasType4$outboundSchema.parse(hrisCreateEmploymentRequestDtoSchemasType4));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasTypeSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HrisCreateEmploymentRequestDtoSchemasType4$outboundSchema),
    z.array(z.any()),
]);
function hrisCreateEmploymentRequestDtoSchemasTypeSourceValueToJSON(hrisCreateEmploymentRequestDtoSchemasTypeSourceValue) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoSchemasTypeSourceValue$outboundSchema.parse(hrisCreateEmploymentRequestDtoSchemasTypeSourceValue));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasTypeValue$outboundSchema = openEnums.outboundSchema(HrisCreateEmploymentRequestDtoSchemasTypeValue);
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HrisCreateEmploymentRequestDtoSchemasType4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisCreateEmploymentRequestDtoSchemasTypeValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function hrisCreateEmploymentRequestDtoSchemasTypeToJSON(hrisCreateEmploymentRequestDtoSchemasType) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoSchemasType$outboundSchema.parse(hrisCreateEmploymentRequestDtoSchemasType));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoType$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.HrisCreateEmploymentRequestDtoSchemasType$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        remoteId: "remote_id",
    });
});
function hrisCreateEmploymentRequestDtoTypeToJSON(hrisCreateEmploymentRequestDtoType) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoType$outboundSchema.parse(hrisCreateEmploymentRequestDtoType));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasWorkTime4$outboundSchema = z.object({});
function hrisCreateEmploymentRequestDtoSchemasWorkTime4ToJSON(hrisCreateEmploymentRequestDtoSchemasWorkTime4) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoSchemasWorkTime4$outboundSchema.parse(hrisCreateEmploymentRequestDtoSchemasWorkTime4));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasWorkTimeSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HrisCreateEmploymentRequestDtoSchemasWorkTime4$outboundSchema),
    z.array(z.any()),
]);
function hrisCreateEmploymentRequestDtoSchemasWorkTimeSourceValueToJSON(hrisCreateEmploymentRequestDtoSchemasWorkTimeSourceValue) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoSchemasWorkTimeSourceValue$outboundSchema
        .parse(hrisCreateEmploymentRequestDtoSchemasWorkTimeSourceValue));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoSchemasWorkTimeValue$outboundSchema = openEnums.outboundSchema(HrisCreateEmploymentRequestDtoSchemasWorkTimeValue);
/** @internal */
exports.HrisCreateEmploymentRequestDtoPeriod$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HrisCreateEmploymentRequestDtoSchemasWorkTime4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisCreateEmploymentRequestDtoSchemasWorkTimeValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
function hrisCreateEmploymentRequestDtoPeriodToJSON(hrisCreateEmploymentRequestDtoPeriod) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoPeriod$outboundSchema.parse(hrisCreateEmploymentRequestDtoPeriod));
}
/** @internal */
exports.HrisCreateEmploymentRequestDtoWorkTime$outboundSchema = z.object({
    duration: z.nullable(z.string()).optional(),
    period: z.nullable(z.lazy(() => exports.HrisCreateEmploymentRequestDtoPeriod$outboundSchema)).optional(),
});
function hrisCreateEmploymentRequestDtoWorkTimeToJSON(hrisCreateEmploymentRequestDtoWorkTime) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDtoWorkTime$outboundSchema.parse(hrisCreateEmploymentRequestDtoWorkTime));
}
/** @internal */
exports.HrisCreateEmploymentRequestDto$outboundSchema = z.object({
    contractType: z.nullable(z.lazy(() => exports.HrisCreateEmploymentRequestDtoContractType$outboundSchema)).optional(),
    effectiveDate: z.nullable(z.date().transform(v => v.toISOString()))
        .optional(),
    employmentContractType: z.nullable(z.lazy(() => exports.HrisCreateEmploymentRequestDtoEmploymentContractType$outboundSchema)).optional(),
    employmentType: z.nullable(z.lazy(() => exports.HrisCreateEmploymentRequestDtoEmploymentType$outboundSchema)).optional(),
    endDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    grade: z.nullable(z.lazy(() => exports.HrisCreateEmploymentRequestDtoGrade$outboundSchema)).optional(),
    jobId: z.nullable(z.string()).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.HrisCreateEmploymentRequestDtoPayFrequency$outboundSchema)).optional(),
    payPeriod: z.nullable(z.lazy(() => exports.HrisCreateEmploymentRequestDtoPayPeriod$outboundSchema)).optional(),
    payRate: z.nullable(z.string()).optional(),
    payrollCode: z.nullable(z.string()).optional(),
    type: z.nullable(z.lazy(() => exports.HrisCreateEmploymentRequestDtoType$outboundSchema)).optional(),
    unifiedCustomFields: z.nullable(z.record(z.any())).optional(),
    workTime: z.nullable(z.lazy(() => exports.HrisCreateEmploymentRequestDtoWorkTime$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",
        jobId: "job_id",
        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 hrisCreateEmploymentRequestDtoToJSON(hrisCreateEmploymentRequestDto) {
    return JSON.stringify(exports.HrisCreateEmploymentRequestDto$outboundSchema.parse(hrisCreateEmploymentRequestDto));
}
//# sourceMappingURL=hriscreateemploymentrequestdto.js.map