"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 (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.hrisUpdateEmploymentRequestDtoSchemasPayFrequency4ToJSON = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$ = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$inboundSchema = exports.hrisUpdateEmploymentRequestDtoGradeFromJSON = exports.hrisUpdateEmploymentRequestDtoGradeToJSON = exports.HrisUpdateEmploymentRequestDtoGrade$ = exports.HrisUpdateEmploymentRequestDtoGrade$outboundSchema = exports.HrisUpdateEmploymentRequestDtoGrade$inboundSchema = exports.hrisUpdateEmploymentRequestDtoEmploymentTypeFromJSON = exports.hrisUpdateEmploymentRequestDtoEmploymentTypeToJSON = exports.HrisUpdateEmploymentRequestDtoEmploymentType$ = exports.HrisUpdateEmploymentRequestDtoEmploymentType$outboundSchema = exports.HrisUpdateEmploymentRequestDtoEmploymentType$inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasValue$ = exports.HrisUpdateEmploymentRequestDtoSchemasValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasValue$inboundSchema = exports.hrisUpdateEmploymentRequestDtoSchemasSourceValueFromJSON = exports.hrisUpdateEmploymentRequestDtoSchemasSourceValueToJSON = exports.HrisUpdateEmploymentRequestDtoSchemasSourceValue$ = exports.HrisUpdateEmploymentRequestDtoSchemasSourceValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasSourceValue$inboundSchema = exports.hrisUpdateEmploymentRequestDtoSchemas4FromJSON = exports.hrisUpdateEmploymentRequestDtoSchemas4ToJSON = exports.HrisUpdateEmploymentRequestDtoSchemas4$ = exports.HrisUpdateEmploymentRequestDtoSchemas4$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemas4$inboundSchema = exports.hrisUpdateEmploymentRequestDtoEmploymentContractTypeFromJSON = exports.hrisUpdateEmploymentRequestDtoEmploymentContractTypeToJSON = exports.HrisUpdateEmploymentRequestDtoEmploymentContractType$ = exports.HrisUpdateEmploymentRequestDtoEmploymentContractType$outboundSchema = exports.HrisUpdateEmploymentRequestDtoEmploymentContractType$inboundSchema = exports.HrisUpdateEmploymentRequestDtoValue$ = exports.HrisUpdateEmploymentRequestDtoValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoValue$inboundSchema = exports.hrisUpdateEmploymentRequestDtoSourceValueFromJSON = exports.hrisUpdateEmploymentRequestDtoSourceValueToJSON = exports.HrisUpdateEmploymentRequestDtoSourceValue$ = exports.HrisUpdateEmploymentRequestDtoSourceValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSourceValue$inboundSchema = exports.hrisUpdateEmploymentRequestDto4FromJSON = exports.hrisUpdateEmploymentRequestDto4ToJSON = exports.HrisUpdateEmploymentRequestDto4$ = exports.HrisUpdateEmploymentRequestDto4$outboundSchema = exports.HrisUpdateEmploymentRequestDto4$inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue = exports.HrisUpdateEmploymentRequestDtoSchemasValue = exports.HrisUpdateEmploymentRequestDtoValue = void 0;
exports.hrisUpdateEmploymentRequestDtoDurationUnitFromJSON = exports.hrisUpdateEmploymentRequestDtoDurationUnitToJSON = exports.HrisUpdateEmploymentRequestDtoDurationUnit$ = exports.HrisUpdateEmploymentRequestDtoDurationUnit$outboundSchema = exports.HrisUpdateEmploymentRequestDtoDurationUnit$inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$ = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$inboundSchema = exports.hrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValueFromJSON = exports.hrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValueToJSON = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$ = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$inboundSchema = exports.hrisUpdateEmploymentRequestDtoSchemasWorkTime4FromJSON = exports.hrisUpdateEmploymentRequestDtoSchemasWorkTime4ToJSON = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$ = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$inboundSchema = exports.hrisUpdateEmploymentRequestDtoPayPeriodFromJSON = exports.hrisUpdateEmploymentRequestDtoPayPeriodToJSON = exports.HrisUpdateEmploymentRequestDtoPayPeriod$ = exports.HrisUpdateEmploymentRequestDtoPayPeriod$outboundSchema = exports.HrisUpdateEmploymentRequestDtoPayPeriod$inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$ = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$inboundSchema = exports.hrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValueFromJSON = exports.hrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValueToJSON = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$ = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$inboundSchema = exports.hrisUpdateEmploymentRequestDtoSchemasPayPeriod4FromJSON = exports.hrisUpdateEmploymentRequestDtoSchemasPayPeriod4ToJSON = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$ = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$inboundSchema = exports.hrisUpdateEmploymentRequestDtoPayFrequencyFromJSON = exports.hrisUpdateEmploymentRequestDtoPayFrequencyToJSON = exports.HrisUpdateEmploymentRequestDtoPayFrequency$ = exports.HrisUpdateEmploymentRequestDtoPayFrequency$outboundSchema = exports.HrisUpdateEmploymentRequestDtoPayFrequency$inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$ = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$inboundSchema = exports.hrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValueFromJSON = exports.hrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValueToJSON = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$ = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$inboundSchema = exports.hrisUpdateEmploymentRequestDtoSchemasPayFrequency4FromJSON = void 0;
exports.hrisUpdateEmploymentRequestDtoFromJSON = exports.hrisUpdateEmploymentRequestDtoToJSON = exports.HrisUpdateEmploymentRequestDto$ = exports.HrisUpdateEmploymentRequestDto$outboundSchema = exports.HrisUpdateEmploymentRequestDto$inboundSchema = exports.hrisUpdateEmploymentRequestDtoWorkTimeFromJSON = exports.hrisUpdateEmploymentRequestDtoWorkTimeToJSON = exports.HrisUpdateEmploymentRequestDtoWorkTime$ = exports.HrisUpdateEmploymentRequestDtoWorkTime$outboundSchema = exports.HrisUpdateEmploymentRequestDtoWorkTime$inboundSchema = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const enums_js_1 = require("../../types/enums.js");
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 = {}));
/**
 * 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.HrisUpdateEmploymentRequestDto4$inboundSchema = z.object({});
/** @internal */
exports.HrisUpdateEmploymentRequestDto4$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 HrisUpdateEmploymentRequestDto4$;
(function (HrisUpdateEmploymentRequestDto4$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDto4$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDto4$.inboundSchema = exports.HrisUpdateEmploymentRequestDto4$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDto4$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDto4$.outboundSchema = exports.HrisUpdateEmploymentRequestDto4$outboundSchema;
})(HrisUpdateEmploymentRequestDto4$ || (exports.HrisUpdateEmploymentRequestDto4$ = HrisUpdateEmploymentRequestDto4$ = {}));
function hrisUpdateEmploymentRequestDto4ToJSON(hrisUpdateEmploymentRequestDto4) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDto4$outboundSchema.parse(hrisUpdateEmploymentRequestDto4));
}
exports.hrisUpdateEmploymentRequestDto4ToJSON = hrisUpdateEmploymentRequestDto4ToJSON;
function hrisUpdateEmploymentRequestDto4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDto4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDto4' from JSON`);
}
exports.hrisUpdateEmploymentRequestDto4FromJSON = hrisUpdateEmploymentRequestDto4FromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.HrisUpdateEmploymentRequestDto4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.HrisUpdateEmploymentRequestDto4$outboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    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 HrisUpdateEmploymentRequestDtoSourceValue$;
(function (HrisUpdateEmploymentRequestDtoSourceValue$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSourceValue$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSourceValue$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoSourceValue$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSourceValue$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSourceValue$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoSourceValue$outboundSchema;
})(HrisUpdateEmploymentRequestDtoSourceValue$ || (exports.HrisUpdateEmploymentRequestDtoSourceValue$ = HrisUpdateEmploymentRequestDtoSourceValue$ = {}));
function hrisUpdateEmploymentRequestDtoSourceValueToJSON(hrisUpdateEmploymentRequestDtoSourceValue) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSourceValue$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSourceValue));
}
exports.hrisUpdateEmploymentRequestDtoSourceValueToJSON = hrisUpdateEmploymentRequestDtoSourceValueToJSON;
function hrisUpdateEmploymentRequestDtoSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDtoSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDtoSourceValue' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoSourceValueFromJSON = hrisUpdateEmploymentRequestDtoSourceValueFromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDtoValue$inboundSchema = z
    .union([
    z.nativeEnum(HrisUpdateEmploymentRequestDtoValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoValue$outboundSchema = z.union([
    z.nativeEnum(HrisUpdateEmploymentRequestDtoValue),
    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 HrisUpdateEmploymentRequestDtoValue$;
(function (HrisUpdateEmploymentRequestDtoValue$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoValue$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoValue$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoValue$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoValue$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoValue$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoValue$outboundSchema;
})(HrisUpdateEmploymentRequestDtoValue$ || (exports.HrisUpdateEmploymentRequestDtoValue$ = HrisUpdateEmploymentRequestDtoValue$ = {}));
/** @internal */
exports.HrisUpdateEmploymentRequestDtoEmploymentContractType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.HrisUpdateEmploymentRequestDto4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.HrisUpdateEmploymentRequestDtoEmploymentContractType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.HrisUpdateEmploymentRequestDto4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoValue$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 HrisUpdateEmploymentRequestDtoEmploymentContractType$;
(function (HrisUpdateEmploymentRequestDtoEmploymentContractType$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoEmploymentContractType$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoEmploymentContractType$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoEmploymentContractType$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoEmploymentContractType$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoEmploymentContractType$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoEmploymentContractType$outboundSchema;
})(HrisUpdateEmploymentRequestDtoEmploymentContractType$ || (exports.HrisUpdateEmploymentRequestDtoEmploymentContractType$ = HrisUpdateEmploymentRequestDtoEmploymentContractType$ = {}));
function hrisUpdateEmploymentRequestDtoEmploymentContractTypeToJSON(hrisUpdateEmploymentRequestDtoEmploymentContractType) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoEmploymentContractType$outboundSchema.parse(hrisUpdateEmploymentRequestDtoEmploymentContractType));
}
exports.hrisUpdateEmploymentRequestDtoEmploymentContractTypeToJSON = hrisUpdateEmploymentRequestDtoEmploymentContractTypeToJSON;
function hrisUpdateEmploymentRequestDtoEmploymentContractTypeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDtoEmploymentContractType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDtoEmploymentContractType' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoEmploymentContractTypeFromJSON = hrisUpdateEmploymentRequestDtoEmploymentContractTypeFromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemas4$inboundSchema = z.object({});
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemas4$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 HrisUpdateEmploymentRequestDtoSchemas4$;
(function (HrisUpdateEmploymentRequestDtoSchemas4$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemas4$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemas4$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemas4$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemas4$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemas4$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemas4$outboundSchema;
})(HrisUpdateEmploymentRequestDtoSchemas4$ || (exports.HrisUpdateEmploymentRequestDtoSchemas4$ = HrisUpdateEmploymentRequestDtoSchemas4$ = {}));
function hrisUpdateEmploymentRequestDtoSchemas4ToJSON(hrisUpdateEmploymentRequestDtoSchemas4) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemas4$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSchemas4));
}
exports.hrisUpdateEmploymentRequestDtoSchemas4ToJSON = hrisUpdateEmploymentRequestDtoSchemas4ToJSON;
function hrisUpdateEmploymentRequestDtoSchemas4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDtoSchemas4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDtoSchemas4' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoSchemas4FromJSON = hrisUpdateEmploymentRequestDtoSchemas4FromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemas4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemas4$outboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    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 HrisUpdateEmploymentRequestDtoSchemasSourceValue$;
(function (HrisUpdateEmploymentRequestDtoSchemasSourceValue$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasSourceValue$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasSourceValue$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasSourceValue$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasSourceValue$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasSourceValue$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasSourceValue$outboundSchema;
})(HrisUpdateEmploymentRequestDtoSchemasSourceValue$ || (exports.HrisUpdateEmploymentRequestDtoSchemasSourceValue$ = HrisUpdateEmploymentRequestDtoSchemasSourceValue$ = {}));
function hrisUpdateEmploymentRequestDtoSchemasSourceValueToJSON(hrisUpdateEmploymentRequestDtoSchemasSourceValue) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasSourceValue$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSchemasSourceValue));
}
exports.hrisUpdateEmploymentRequestDtoSchemasSourceValueToJSON = hrisUpdateEmploymentRequestDtoSchemasSourceValueToJSON;
function hrisUpdateEmploymentRequestDtoSchemasSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDtoSchemasSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDtoSchemasSourceValue' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoSchemasSourceValueFromJSON = hrisUpdateEmploymentRequestDtoSchemasSourceValueFromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasValue$inboundSchema = z
    .union([
    z.nativeEnum(HrisUpdateEmploymentRequestDtoSchemasValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasValue$outboundSchema = z.union([
    z.nativeEnum(HrisUpdateEmploymentRequestDtoSchemasValue),
    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 HrisUpdateEmploymentRequestDtoSchemasValue$;
(function (HrisUpdateEmploymentRequestDtoSchemasValue$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasValue$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasValue$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasValue$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasValue$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasValue$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasValue$outboundSchema;
})(HrisUpdateEmploymentRequestDtoSchemasValue$ || (exports.HrisUpdateEmploymentRequestDtoSchemasValue$ = HrisUpdateEmploymentRequestDtoSchemasValue$ = {}));
/** @internal */
exports.HrisUpdateEmploymentRequestDtoEmploymentType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemas4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoSchemasValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.HrisUpdateEmploymentRequestDtoEmploymentType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemas4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoSchemasValue$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 HrisUpdateEmploymentRequestDtoEmploymentType$;
(function (HrisUpdateEmploymentRequestDtoEmploymentType$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoEmploymentType$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoEmploymentType$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoEmploymentType$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoEmploymentType$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoEmploymentType$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoEmploymentType$outboundSchema;
})(HrisUpdateEmploymentRequestDtoEmploymentType$ || (exports.HrisUpdateEmploymentRequestDtoEmploymentType$ = HrisUpdateEmploymentRequestDtoEmploymentType$ = {}));
function hrisUpdateEmploymentRequestDtoEmploymentTypeToJSON(hrisUpdateEmploymentRequestDtoEmploymentType) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoEmploymentType$outboundSchema.parse(hrisUpdateEmploymentRequestDtoEmploymentType));
}
exports.hrisUpdateEmploymentRequestDtoEmploymentTypeToJSON = hrisUpdateEmploymentRequestDtoEmploymentTypeToJSON;
function hrisUpdateEmploymentRequestDtoEmploymentTypeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDtoEmploymentType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDtoEmploymentType' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoEmploymentTypeFromJSON = hrisUpdateEmploymentRequestDtoEmploymentTypeFromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDtoGrade$inboundSchema = z.object({
    description: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "remote_id": "remoteId",
    });
});
/** @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",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisUpdateEmploymentRequestDtoGrade$;
(function (HrisUpdateEmploymentRequestDtoGrade$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoGrade$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoGrade$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoGrade$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoGrade$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoGrade$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoGrade$outboundSchema;
})(HrisUpdateEmploymentRequestDtoGrade$ || (exports.HrisUpdateEmploymentRequestDtoGrade$ = HrisUpdateEmploymentRequestDtoGrade$ = {}));
function hrisUpdateEmploymentRequestDtoGradeToJSON(hrisUpdateEmploymentRequestDtoGrade) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoGrade$outboundSchema.parse(hrisUpdateEmploymentRequestDtoGrade));
}
exports.hrisUpdateEmploymentRequestDtoGradeToJSON = hrisUpdateEmploymentRequestDtoGradeToJSON;
function hrisUpdateEmploymentRequestDtoGradeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDtoGrade$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDtoGrade' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoGradeFromJSON = hrisUpdateEmploymentRequestDtoGradeFromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$inboundSchema = z.object({});
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$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 HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$;
(function (HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$outboundSchema;
})(HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$ || (exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$ = HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$ = {}));
function hrisUpdateEmploymentRequestDtoSchemasPayFrequency4ToJSON(hrisUpdateEmploymentRequestDtoSchemasPayFrequency4) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSchemasPayFrequency4));
}
exports.hrisUpdateEmploymentRequestDtoSchemasPayFrequency4ToJSON = hrisUpdateEmploymentRequestDtoSchemasPayFrequency4ToJSON;
function hrisUpdateEmploymentRequestDtoSchemasPayFrequency4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDtoSchemasPayFrequency4' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoSchemasPayFrequency4FromJSON = hrisUpdateEmploymentRequestDtoSchemasPayFrequency4FromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$inboundSchema = z.union([
    z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$outboundSchema = z.union([
    z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$outboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    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 HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$;
(function (HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$outboundSchema;
})(HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$ || (exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$ = HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$ = {}));
function hrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValueToJSON(hrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$outboundSchema
        .parse(hrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue));
}
exports.hrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValueToJSON = hrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValueToJSON;
function hrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValue' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValueFromJSON = hrisUpdateEmploymentRequestDtoSchemasPayFrequencySourceValueFromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$inboundSchema = z
    .union([
    z.nativeEnum(HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$outboundSchema = z.union([
    z.nativeEnum(HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue),
    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 HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$;
(function (HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$outboundSchema;
})(HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$ || (exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$ = HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$ = {}));
/** @internal */
exports.HrisUpdateEmploymentRequestDtoPayFrequency$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.HrisUpdateEmploymentRequestDtoPayFrequency$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequency4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoSchemasPayFrequencyValue$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 HrisUpdateEmploymentRequestDtoPayFrequency$;
(function (HrisUpdateEmploymentRequestDtoPayFrequency$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoPayFrequency$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoPayFrequency$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoPayFrequency$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoPayFrequency$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoPayFrequency$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoPayFrequency$outboundSchema;
})(HrisUpdateEmploymentRequestDtoPayFrequency$ || (exports.HrisUpdateEmploymentRequestDtoPayFrequency$ = HrisUpdateEmploymentRequestDtoPayFrequency$ = {}));
function hrisUpdateEmploymentRequestDtoPayFrequencyToJSON(hrisUpdateEmploymentRequestDtoPayFrequency) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoPayFrequency$outboundSchema.parse(hrisUpdateEmploymentRequestDtoPayFrequency));
}
exports.hrisUpdateEmploymentRequestDtoPayFrequencyToJSON = hrisUpdateEmploymentRequestDtoPayFrequencyToJSON;
function hrisUpdateEmploymentRequestDtoPayFrequencyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDtoPayFrequency$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDtoPayFrequency' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoPayFrequencyFromJSON = hrisUpdateEmploymentRequestDtoPayFrequencyFromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$inboundSchema = z.object({});
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$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 HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$;
(function (HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$outboundSchema;
})(HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$ || (exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$ = HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$ = {}));
function hrisUpdateEmploymentRequestDtoSchemasPayPeriod4ToJSON(hrisUpdateEmploymentRequestDtoSchemasPayPeriod4) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSchemasPayPeriod4));
}
exports.hrisUpdateEmploymentRequestDtoSchemasPayPeriod4ToJSON = hrisUpdateEmploymentRequestDtoSchemasPayPeriod4ToJSON;
function hrisUpdateEmploymentRequestDtoSchemasPayPeriod4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDtoSchemasPayPeriod4' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoSchemasPayPeriod4FromJSON = hrisUpdateEmploymentRequestDtoSchemasPayPeriod4FromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$outboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    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 HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$;
(function (HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$outboundSchema;
})(HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$ || (exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$ = HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$ = {}));
function hrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValueToJSON(hrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$outboundSchema
        .parse(hrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue));
}
exports.hrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValueToJSON = hrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValueToJSON;
function hrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValue' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValueFromJSON = hrisUpdateEmploymentRequestDtoSchemasPayPeriodSourceValueFromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$inboundSchema = z
    .union([
    z.nativeEnum(HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$outboundSchema = z.union([
    z.nativeEnum(HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue),
    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 HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$;
(function (HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$outboundSchema;
})(HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$ || (exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$ = HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$ = {}));
/** @internal */
exports.HrisUpdateEmploymentRequestDtoPayPeriod$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.HrisUpdateEmploymentRequestDtoPayPeriod$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriod4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoSchemasPayPeriodValue$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 HrisUpdateEmploymentRequestDtoPayPeriod$;
(function (HrisUpdateEmploymentRequestDtoPayPeriod$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoPayPeriod$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoPayPeriod$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoPayPeriod$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoPayPeriod$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoPayPeriod$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoPayPeriod$outboundSchema;
})(HrisUpdateEmploymentRequestDtoPayPeriod$ || (exports.HrisUpdateEmploymentRequestDtoPayPeriod$ = HrisUpdateEmploymentRequestDtoPayPeriod$ = {}));
function hrisUpdateEmploymentRequestDtoPayPeriodToJSON(hrisUpdateEmploymentRequestDtoPayPeriod) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoPayPeriod$outboundSchema.parse(hrisUpdateEmploymentRequestDtoPayPeriod));
}
exports.hrisUpdateEmploymentRequestDtoPayPeriodToJSON = hrisUpdateEmploymentRequestDtoPayPeriodToJSON;
function hrisUpdateEmploymentRequestDtoPayPeriodFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDtoPayPeriod$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDtoPayPeriod' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoPayPeriodFromJSON = hrisUpdateEmploymentRequestDtoPayPeriodFromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$inboundSchema = z.object({});
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$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 HrisUpdateEmploymentRequestDtoSchemasWorkTime4$;
(function (HrisUpdateEmploymentRequestDtoSchemasWorkTime4$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasWorkTime4$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasWorkTime4$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasWorkTime4$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasWorkTime4$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$outboundSchema;
})(HrisUpdateEmploymentRequestDtoSchemasWorkTime4$ || (exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$ = HrisUpdateEmploymentRequestDtoSchemasWorkTime4$ = {}));
function hrisUpdateEmploymentRequestDtoSchemasWorkTime4ToJSON(hrisUpdateEmploymentRequestDtoSchemasWorkTime4) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$outboundSchema.parse(hrisUpdateEmploymentRequestDtoSchemasWorkTime4));
}
exports.hrisUpdateEmploymentRequestDtoSchemasWorkTime4ToJSON = hrisUpdateEmploymentRequestDtoSchemasWorkTime4ToJSON;
function hrisUpdateEmploymentRequestDtoSchemasWorkTime4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDtoSchemasWorkTime4' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoSchemasWorkTime4FromJSON = hrisUpdateEmploymentRequestDtoSchemasWorkTime4FromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$outboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    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 HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$;
(function (HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$outboundSchema;
})(HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$ || (exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$ = HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$ = {}));
function hrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValueToJSON(hrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$outboundSchema
        .parse(hrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue));
}
exports.hrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValueToJSON = hrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValueToJSON;
function hrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValue' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValueFromJSON = hrisUpdateEmploymentRequestDtoSchemasWorkTimeSourceValueFromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$inboundSchema = z
    .union([
    z.nativeEnum(HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$outboundSchema = z.union([
    z.nativeEnum(HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue),
    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 HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$;
(function (HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$outboundSchema;
})(HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$ || (exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$ = HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$ = {}));
/** @internal */
exports.HrisUpdateEmploymentRequestDtoDurationUnit$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.HrisUpdateEmploymentRequestDtoDurationUnit$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.HrisUpdateEmploymentRequestDtoSchemasWorkTime4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HrisUpdateEmploymentRequestDtoSchemasWorkTimeValue$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 HrisUpdateEmploymentRequestDtoDurationUnit$;
(function (HrisUpdateEmploymentRequestDtoDurationUnit$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoDurationUnit$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoDurationUnit$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoDurationUnit$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoDurationUnit$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoDurationUnit$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoDurationUnit$outboundSchema;
})(HrisUpdateEmploymentRequestDtoDurationUnit$ || (exports.HrisUpdateEmploymentRequestDtoDurationUnit$ = HrisUpdateEmploymentRequestDtoDurationUnit$ = {}));
function hrisUpdateEmploymentRequestDtoDurationUnitToJSON(hrisUpdateEmploymentRequestDtoDurationUnit) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoDurationUnit$outboundSchema.parse(hrisUpdateEmploymentRequestDtoDurationUnit));
}
exports.hrisUpdateEmploymentRequestDtoDurationUnitToJSON = hrisUpdateEmploymentRequestDtoDurationUnitToJSON;
function hrisUpdateEmploymentRequestDtoDurationUnitFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDtoDurationUnit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDtoDurationUnit' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoDurationUnitFromJSON = hrisUpdateEmploymentRequestDtoDurationUnitFromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDtoWorkTime$inboundSchema = z.object({
    duration: z.nullable(z.string()).optional(),
    duration_unit: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoDurationUnit$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "duration_unit": "durationUnit",
    });
});
/** @internal */
exports.HrisUpdateEmploymentRequestDtoWorkTime$outboundSchema = z.object({
    duration: z.nullable(z.string()).optional(),
    durationUnit: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoDurationUnit$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        durationUnit: "duration_unit",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisUpdateEmploymentRequestDtoWorkTime$;
(function (HrisUpdateEmploymentRequestDtoWorkTime$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDtoWorkTime$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoWorkTime$.inboundSchema = exports.HrisUpdateEmploymentRequestDtoWorkTime$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDtoWorkTime$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDtoWorkTime$.outboundSchema = exports.HrisUpdateEmploymentRequestDtoWorkTime$outboundSchema;
})(HrisUpdateEmploymentRequestDtoWorkTime$ || (exports.HrisUpdateEmploymentRequestDtoWorkTime$ = HrisUpdateEmploymentRequestDtoWorkTime$ = {}));
function hrisUpdateEmploymentRequestDtoWorkTimeToJSON(hrisUpdateEmploymentRequestDtoWorkTime) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDtoWorkTime$outboundSchema.parse(hrisUpdateEmploymentRequestDtoWorkTime));
}
exports.hrisUpdateEmploymentRequestDtoWorkTimeToJSON = hrisUpdateEmploymentRequestDtoWorkTimeToJSON;
function hrisUpdateEmploymentRequestDtoWorkTimeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDtoWorkTime$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDtoWorkTime' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoWorkTimeFromJSON = hrisUpdateEmploymentRequestDtoWorkTimeFromJSON;
/** @internal */
exports.HrisUpdateEmploymentRequestDto$inboundSchema = z.object({
    effective_date: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    employment_contract_type: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoEmploymentContractType$inboundSchema)).optional(),
    employment_type: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoEmploymentType$inboundSchema)).optional(),
    end_date: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    grade: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoGrade$inboundSchema)).optional(),
    job_title: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    pay_currency: z.nullable(z.string()).optional(),
    pay_frequency: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoPayFrequency$inboundSchema)).optional(),
    pay_period: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoPayPeriod$inboundSchema)).optional(),
    pay_rate: z.nullable(z.string()).optional(),
    payroll_code: z.nullable(z.string()).optional(),
    unified_custom_fields: z.nullable(z.record(z.any())).optional(),
    work_time: z.nullable(z.lazy(() => exports.HrisUpdateEmploymentRequestDtoWorkTime$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "effective_date": "effectiveDate",
        "employment_contract_type": "employmentContractType",
        "employment_type": "employmentType",
        "end_date": "endDate",
        "job_title": "jobTitle",
        "pay_currency": "payCurrency",
        "pay_frequency": "payFrequency",
        "pay_period": "payPeriod",
        "pay_rate": "payRate",
        "payroll_code": "payrollCode",
        "unified_custom_fields": "unifiedCustomFields",
        "work_time": "workTime",
    });
});
/** @internal */
exports.HrisUpdateEmploymentRequestDto$outboundSchema = z.object({
    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(),
    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, {
        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",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisUpdateEmploymentRequestDto$;
(function (HrisUpdateEmploymentRequestDto$) {
    /** @deprecated use `HrisUpdateEmploymentRequestDto$inboundSchema` instead. */
    HrisUpdateEmploymentRequestDto$.inboundSchema = exports.HrisUpdateEmploymentRequestDto$inboundSchema;
    /** @deprecated use `HrisUpdateEmploymentRequestDto$outboundSchema` instead. */
    HrisUpdateEmploymentRequestDto$.outboundSchema = exports.HrisUpdateEmploymentRequestDto$outboundSchema;
})(HrisUpdateEmploymentRequestDto$ || (exports.HrisUpdateEmploymentRequestDto$ = HrisUpdateEmploymentRequestDto$ = {}));
function hrisUpdateEmploymentRequestDtoToJSON(hrisUpdateEmploymentRequestDto) {
    return JSON.stringify(exports.HrisUpdateEmploymentRequestDto$outboundSchema.parse(hrisUpdateEmploymentRequestDto));
}
exports.hrisUpdateEmploymentRequestDtoToJSON = hrisUpdateEmploymentRequestDtoToJSON;
function hrisUpdateEmploymentRequestDtoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisUpdateEmploymentRequestDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisUpdateEmploymentRequestDto' from JSON`);
}
exports.hrisUpdateEmploymentRequestDtoFromJSON = hrisUpdateEmploymentRequestDtoFromJSON;
//# sourceMappingURL=hrisupdateemploymentrequestdto.js.map