"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.CreateEmploymentApiModelSchemasPayFrequency4$inboundSchema = exports.Grade$ = exports.Grade$outboundSchema = exports.Grade$inboundSchema = exports.EmploymentType$ = exports.EmploymentType$outboundSchema = exports.EmploymentType$inboundSchema = exports.CreateEmploymentApiModelSchemasValue$ = exports.CreateEmploymentApiModelSchemasValue$outboundSchema = exports.CreateEmploymentApiModelSchemasValue$inboundSchema = exports.CreateEmploymentApiModelSchemasSourceValue$ = exports.CreateEmploymentApiModelSchemasSourceValue$outboundSchema = exports.CreateEmploymentApiModelSchemasSourceValue$inboundSchema = exports.CreateEmploymentApiModelSchemas4$ = exports.CreateEmploymentApiModelSchemas4$outboundSchema = exports.CreateEmploymentApiModelSchemas4$inboundSchema = exports.EmploymentContractType$ = exports.EmploymentContractType$outboundSchema = exports.EmploymentContractType$inboundSchema = exports.CreateEmploymentApiModelValue$ = exports.CreateEmploymentApiModelValue$outboundSchema = exports.CreateEmploymentApiModelValue$inboundSchema = exports.CreateEmploymentApiModelSourceValue$ = exports.CreateEmploymentApiModelSourceValue$outboundSchema = exports.CreateEmploymentApiModelSourceValue$inboundSchema = exports.CreateEmploymentApiModel4$ = exports.CreateEmploymentApiModel4$outboundSchema = exports.CreateEmploymentApiModel4$inboundSchema = exports.ContractType$ = exports.ContractType$outboundSchema = exports.ContractType$inboundSchema = exports.CreateEmploymentApiModelContractType$ = exports.CreateEmploymentApiModelContractType$outboundSchema = exports.CreateEmploymentApiModelContractType$inboundSchema = exports.CreateEmploymentApiModelSchemasContractTypeValue$ = exports.CreateEmploymentApiModelSchemasContractTypeValue$outboundSchema = exports.CreateEmploymentApiModelSchemasContractTypeValue$inboundSchema = exports.CreateEmploymentApiModelSchemasContractTypeSourceValue$ = exports.CreateEmploymentApiModelSchemasContractTypeSourceValue$outboundSchema = exports.CreateEmploymentApiModelSchemasContractTypeSourceValue$inboundSchema = exports.CreateEmploymentApiModelSchemasContractType4$ = exports.CreateEmploymentApiModelSchemasContractType4$outboundSchema = exports.CreateEmploymentApiModelSchemasContractType4$inboundSchema = exports.CreateEmploymentApiModelSchemasWorkTimeValue = exports.CreateEmploymentApiModelSchemasTypeValue = exports.CreateEmploymentApiModelSchemasPayPeriodValue = exports.CreateEmploymentApiModelSchemasPayFrequencyValue = exports.CreateEmploymentApiModelSchemasValue = exports.CreateEmploymentApiModelValue = exports.CreateEmploymentApiModelSchemasContractTypeValue = void 0;
exports.Period$ = exports.Period$outboundSchema = exports.Period$inboundSchema = exports.CreateEmploymentApiModelSchemasWorkTimeValue$ = exports.CreateEmploymentApiModelSchemasWorkTimeValue$outboundSchema = exports.CreateEmploymentApiModelSchemasWorkTimeValue$inboundSchema = exports.CreateEmploymentApiModelSchemasWorkTimeSourceValue$ = exports.CreateEmploymentApiModelSchemasWorkTimeSourceValue$outboundSchema = exports.CreateEmploymentApiModelSchemasWorkTimeSourceValue$inboundSchema = exports.CreateEmploymentApiModelSchemasWorkTime4$ = exports.CreateEmploymentApiModelSchemasWorkTime4$outboundSchema = exports.CreateEmploymentApiModelSchemasWorkTime4$inboundSchema = exports.CreateEmploymentApiModelType$ = exports.CreateEmploymentApiModelType$outboundSchema = exports.CreateEmploymentApiModelType$inboundSchema = exports.CreateEmploymentApiModelSchemasType$ = exports.CreateEmploymentApiModelSchemasType$outboundSchema = exports.CreateEmploymentApiModelSchemasType$inboundSchema = exports.CreateEmploymentApiModelSchemasTypeValue$ = exports.CreateEmploymentApiModelSchemasTypeValue$outboundSchema = exports.CreateEmploymentApiModelSchemasTypeValue$inboundSchema = exports.CreateEmploymentApiModelSchemasTypeSourceValue$ = exports.CreateEmploymentApiModelSchemasTypeSourceValue$outboundSchema = exports.CreateEmploymentApiModelSchemasTypeSourceValue$inboundSchema = exports.CreateEmploymentApiModelSchemasType4$ = exports.CreateEmploymentApiModelSchemasType4$outboundSchema = exports.CreateEmploymentApiModelSchemasType4$inboundSchema = exports.PayPeriod$ = exports.PayPeriod$outboundSchema = exports.PayPeriod$inboundSchema = exports.CreateEmploymentApiModelSchemasPayPeriodValue$ = exports.CreateEmploymentApiModelSchemasPayPeriodValue$outboundSchema = exports.CreateEmploymentApiModelSchemasPayPeriodValue$inboundSchema = exports.CreateEmploymentApiModelSchemasPayPeriodSourceValue$ = exports.CreateEmploymentApiModelSchemasPayPeriodSourceValue$outboundSchema = exports.CreateEmploymentApiModelSchemasPayPeriodSourceValue$inboundSchema = exports.CreateEmploymentApiModelSchemasPayPeriod4$ = exports.CreateEmploymentApiModelSchemasPayPeriod4$outboundSchema = exports.CreateEmploymentApiModelSchemasPayPeriod4$inboundSchema = exports.PayFrequency$ = exports.PayFrequency$outboundSchema = exports.PayFrequency$inboundSchema = exports.CreateEmploymentApiModelSchemasPayFrequencyValue$ = exports.CreateEmploymentApiModelSchemasPayFrequencyValue$outboundSchema = exports.CreateEmploymentApiModelSchemasPayFrequencyValue$inboundSchema = exports.CreateEmploymentApiModelSchemasPayFrequencySourceValue$ = exports.CreateEmploymentApiModelSchemasPayFrequencySourceValue$outboundSchema = exports.CreateEmploymentApiModelSchemasPayFrequencySourceValue$inboundSchema = exports.CreateEmploymentApiModelSchemasPayFrequency4$ = exports.CreateEmploymentApiModelSchemasPayFrequency4$outboundSchema = void 0;
exports.CreateEmploymentApiModel$ = exports.CreateEmploymentApiModel$outboundSchema = exports.CreateEmploymentApiModel$inboundSchema = exports.WorkTime$ = exports.WorkTime$outboundSchema = exports.WorkTime$inboundSchema = void 0;
exports.createEmploymentApiModelSchemasContractType4ToJSON = createEmploymentApiModelSchemasContractType4ToJSON;
exports.createEmploymentApiModelSchemasContractType4FromJSON = createEmploymentApiModelSchemasContractType4FromJSON;
exports.createEmploymentApiModelSchemasContractTypeSourceValueToJSON = createEmploymentApiModelSchemasContractTypeSourceValueToJSON;
exports.createEmploymentApiModelSchemasContractTypeSourceValueFromJSON = createEmploymentApiModelSchemasContractTypeSourceValueFromJSON;
exports.createEmploymentApiModelContractTypeToJSON = createEmploymentApiModelContractTypeToJSON;
exports.createEmploymentApiModelContractTypeFromJSON = createEmploymentApiModelContractTypeFromJSON;
exports.contractTypeToJSON = contractTypeToJSON;
exports.contractTypeFromJSON = contractTypeFromJSON;
exports.createEmploymentApiModel4ToJSON = createEmploymentApiModel4ToJSON;
exports.createEmploymentApiModel4FromJSON = createEmploymentApiModel4FromJSON;
exports.createEmploymentApiModelSourceValueToJSON = createEmploymentApiModelSourceValueToJSON;
exports.createEmploymentApiModelSourceValueFromJSON = createEmploymentApiModelSourceValueFromJSON;
exports.employmentContractTypeToJSON = employmentContractTypeToJSON;
exports.employmentContractTypeFromJSON = employmentContractTypeFromJSON;
exports.createEmploymentApiModelSchemas4ToJSON = createEmploymentApiModelSchemas4ToJSON;
exports.createEmploymentApiModelSchemas4FromJSON = createEmploymentApiModelSchemas4FromJSON;
exports.createEmploymentApiModelSchemasSourceValueToJSON = createEmploymentApiModelSchemasSourceValueToJSON;
exports.createEmploymentApiModelSchemasSourceValueFromJSON = createEmploymentApiModelSchemasSourceValueFromJSON;
exports.employmentTypeToJSON = employmentTypeToJSON;
exports.employmentTypeFromJSON = employmentTypeFromJSON;
exports.gradeToJSON = gradeToJSON;
exports.gradeFromJSON = gradeFromJSON;
exports.createEmploymentApiModelSchemasPayFrequency4ToJSON = createEmploymentApiModelSchemasPayFrequency4ToJSON;
exports.createEmploymentApiModelSchemasPayFrequency4FromJSON = createEmploymentApiModelSchemasPayFrequency4FromJSON;
exports.createEmploymentApiModelSchemasPayFrequencySourceValueToJSON = createEmploymentApiModelSchemasPayFrequencySourceValueToJSON;
exports.createEmploymentApiModelSchemasPayFrequencySourceValueFromJSON = createEmploymentApiModelSchemasPayFrequencySourceValueFromJSON;
exports.payFrequencyToJSON = payFrequencyToJSON;
exports.payFrequencyFromJSON = payFrequencyFromJSON;
exports.createEmploymentApiModelSchemasPayPeriod4ToJSON = createEmploymentApiModelSchemasPayPeriod4ToJSON;
exports.createEmploymentApiModelSchemasPayPeriod4FromJSON = createEmploymentApiModelSchemasPayPeriod4FromJSON;
exports.createEmploymentApiModelSchemasPayPeriodSourceValueToJSON = createEmploymentApiModelSchemasPayPeriodSourceValueToJSON;
exports.createEmploymentApiModelSchemasPayPeriodSourceValueFromJSON = createEmploymentApiModelSchemasPayPeriodSourceValueFromJSON;
exports.payPeriodToJSON = payPeriodToJSON;
exports.payPeriodFromJSON = payPeriodFromJSON;
exports.createEmploymentApiModelSchemasType4ToJSON = createEmploymentApiModelSchemasType4ToJSON;
exports.createEmploymentApiModelSchemasType4FromJSON = createEmploymentApiModelSchemasType4FromJSON;
exports.createEmploymentApiModelSchemasTypeSourceValueToJSON = createEmploymentApiModelSchemasTypeSourceValueToJSON;
exports.createEmploymentApiModelSchemasTypeSourceValueFromJSON = createEmploymentApiModelSchemasTypeSourceValueFromJSON;
exports.createEmploymentApiModelSchemasTypeToJSON = createEmploymentApiModelSchemasTypeToJSON;
exports.createEmploymentApiModelSchemasTypeFromJSON = createEmploymentApiModelSchemasTypeFromJSON;
exports.createEmploymentApiModelTypeToJSON = createEmploymentApiModelTypeToJSON;
exports.createEmploymentApiModelTypeFromJSON = createEmploymentApiModelTypeFromJSON;
exports.createEmploymentApiModelSchemasWorkTime4ToJSON = createEmploymentApiModelSchemasWorkTime4ToJSON;
exports.createEmploymentApiModelSchemasWorkTime4FromJSON = createEmploymentApiModelSchemasWorkTime4FromJSON;
exports.createEmploymentApiModelSchemasWorkTimeSourceValueToJSON = createEmploymentApiModelSchemasWorkTimeSourceValueToJSON;
exports.createEmploymentApiModelSchemasWorkTimeSourceValueFromJSON = createEmploymentApiModelSchemasWorkTimeSourceValueFromJSON;
exports.periodToJSON = periodToJSON;
exports.periodFromJSON = periodFromJSON;
exports.workTimeToJSON = workTimeToJSON;
exports.workTimeFromJSON = workTimeFromJSON;
exports.createEmploymentApiModelToJSON = createEmploymentApiModelToJSON;
exports.createEmploymentApiModelFromJSON = createEmploymentApiModelFromJSON;
const z = __importStar(require("zod/v3"));
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 CreateEmploymentApiModelSchemasContractTypeValue;
(function (CreateEmploymentApiModelSchemasContractTypeValue) {
    CreateEmploymentApiModelSchemasContractTypeValue["FullTime"] = "full_time";
    CreateEmploymentApiModelSchemasContractTypeValue["Shifts"] = "shifts";
    CreateEmploymentApiModelSchemasContractTypeValue["PartTime"] = "part_time";
    CreateEmploymentApiModelSchemasContractTypeValue["UnmappedValue"] = "unmapped_value";
})(CreateEmploymentApiModelSchemasContractTypeValue || (exports.CreateEmploymentApiModelSchemasContractTypeValue = CreateEmploymentApiModelSchemasContractTypeValue = {}));
var CreateEmploymentApiModelValue;
(function (CreateEmploymentApiModelValue) {
    CreateEmploymentApiModelValue["FullTime"] = "full_time";
    CreateEmploymentApiModelValue["Shifts"] = "shifts";
    CreateEmploymentApiModelValue["PartTime"] = "part_time";
    CreateEmploymentApiModelValue["UnmappedValue"] = "unmapped_value";
})(CreateEmploymentApiModelValue || (exports.CreateEmploymentApiModelValue = CreateEmploymentApiModelValue = {}));
/**
 * The type of the employment.
 */
var CreateEmploymentApiModelSchemasValue;
(function (CreateEmploymentApiModelSchemasValue) {
    CreateEmploymentApiModelSchemasValue["Contractor"] = "contractor";
    CreateEmploymentApiModelSchemasValue["Intern"] = "intern";
    CreateEmploymentApiModelSchemasValue["Permanent"] = "permanent";
    CreateEmploymentApiModelSchemasValue["Apprentice"] = "apprentice";
    CreateEmploymentApiModelSchemasValue["Freelance"] = "freelance";
    CreateEmploymentApiModelSchemasValue["Terminated"] = "terminated";
    CreateEmploymentApiModelSchemasValue["Temporary"] = "temporary";
    CreateEmploymentApiModelSchemasValue["Seasonal"] = "seasonal";
    CreateEmploymentApiModelSchemasValue["Volunteer"] = "volunteer";
    CreateEmploymentApiModelSchemasValue["Probation"] = "probation";
    CreateEmploymentApiModelSchemasValue["Internal"] = "internal";
    CreateEmploymentApiModelSchemasValue["External"] = "external";
    CreateEmploymentApiModelSchemasValue["Expatriate"] = "expatriate";
    CreateEmploymentApiModelSchemasValue["EmployerOfRecord"] = "employer_of_record";
    CreateEmploymentApiModelSchemasValue["Casual"] = "casual";
    CreateEmploymentApiModelSchemasValue["Programme"] = "Programme";
    CreateEmploymentApiModelSchemasValue["UnmappedValue"] = "unmapped_value";
})(CreateEmploymentApiModelSchemasValue || (exports.CreateEmploymentApiModelSchemasValue = CreateEmploymentApiModelSchemasValue = {}));
/**
 * The pay frequency of the job postings.
 */
var CreateEmploymentApiModelSchemasPayFrequencyValue;
(function (CreateEmploymentApiModelSchemasPayFrequencyValue) {
    CreateEmploymentApiModelSchemasPayFrequencyValue["Hourly"] = "hourly";
    CreateEmploymentApiModelSchemasPayFrequencyValue["Weekly"] = "weekly";
    CreateEmploymentApiModelSchemasPayFrequencyValue["BiWeekly"] = "bi_weekly";
    CreateEmploymentApiModelSchemasPayFrequencyValue["FourWeekly"] = "four_weekly";
    CreateEmploymentApiModelSchemasPayFrequencyValue["SemiMonthly"] = "semi_monthly";
    CreateEmploymentApiModelSchemasPayFrequencyValue["Monthly"] = "monthly";
    CreateEmploymentApiModelSchemasPayFrequencyValue["BiMonthly"] = "bi_monthly";
    CreateEmploymentApiModelSchemasPayFrequencyValue["Quarterly"] = "quarterly";
    CreateEmploymentApiModelSchemasPayFrequencyValue["SemiAnnually"] = "semi_annually";
    CreateEmploymentApiModelSchemasPayFrequencyValue["Yearly"] = "yearly";
    CreateEmploymentApiModelSchemasPayFrequencyValue["ThirteenMonthly"] = "thirteen_monthly";
    CreateEmploymentApiModelSchemasPayFrequencyValue["ProRata"] = "pro_rata";
    CreateEmploymentApiModelSchemasPayFrequencyValue["UnmappedValue"] = "unmapped_value";
    CreateEmploymentApiModelSchemasPayFrequencyValue["HalfYearly"] = "half_yearly";
    CreateEmploymentApiModelSchemasPayFrequencyValue["Daily"] = "daily";
})(CreateEmploymentApiModelSchemasPayFrequencyValue || (exports.CreateEmploymentApiModelSchemasPayFrequencyValue = CreateEmploymentApiModelSchemasPayFrequencyValue = {}));
/**
 * The pay period of the job postings.
 */
var CreateEmploymentApiModelSchemasPayPeriodValue;
(function (CreateEmploymentApiModelSchemasPayPeriodValue) {
    CreateEmploymentApiModelSchemasPayPeriodValue["Hour"] = "hour";
    CreateEmploymentApiModelSchemasPayPeriodValue["Day"] = "day";
    CreateEmploymentApiModelSchemasPayPeriodValue["Week"] = "week";
    CreateEmploymentApiModelSchemasPayPeriodValue["EveryTwoWeeks"] = "every_two_weeks";
    CreateEmploymentApiModelSchemasPayPeriodValue["Month"] = "month";
    CreateEmploymentApiModelSchemasPayPeriodValue["TwiceAMonth"] = "twice_a_month";
    CreateEmploymentApiModelSchemasPayPeriodValue["EveryTwoMonths"] = "every_two_months";
    CreateEmploymentApiModelSchemasPayPeriodValue["Quarter"] = "quarter";
    CreateEmploymentApiModelSchemasPayPeriodValue["EverySixMonths"] = "every_six_months";
    CreateEmploymentApiModelSchemasPayPeriodValue["Year"] = "year";
    CreateEmploymentApiModelSchemasPayPeriodValue["OneOff"] = "one_off";
    CreateEmploymentApiModelSchemasPayPeriodValue["None"] = "none";
    CreateEmploymentApiModelSchemasPayPeriodValue["UnmappedValue"] = "unmapped_value";
})(CreateEmploymentApiModelSchemasPayPeriodValue || (exports.CreateEmploymentApiModelSchemasPayPeriodValue = CreateEmploymentApiModelSchemasPayPeriodValue = {}));
var CreateEmploymentApiModelSchemasTypeValue;
(function (CreateEmploymentApiModelSchemasTypeValue) {
    CreateEmploymentApiModelSchemasTypeValue["Contractor"] = "contractor";
    CreateEmploymentApiModelSchemasTypeValue["Intern"] = "intern";
    CreateEmploymentApiModelSchemasTypeValue["Permanent"] = "permanent";
    CreateEmploymentApiModelSchemasTypeValue["Apprentice"] = "apprentice";
    CreateEmploymentApiModelSchemasTypeValue["Freelance"] = "freelance";
    CreateEmploymentApiModelSchemasTypeValue["Terminated"] = "terminated";
    CreateEmploymentApiModelSchemasTypeValue["Temporary"] = "temporary";
    CreateEmploymentApiModelSchemasTypeValue["Seasonal"] = "seasonal";
    CreateEmploymentApiModelSchemasTypeValue["Volunteer"] = "volunteer";
    CreateEmploymentApiModelSchemasTypeValue["Probation"] = "probation";
    CreateEmploymentApiModelSchemasTypeValue["Internal"] = "internal";
    CreateEmploymentApiModelSchemasTypeValue["External"] = "external";
    CreateEmploymentApiModelSchemasTypeValue["Expatriate"] = "expatriate";
    CreateEmploymentApiModelSchemasTypeValue["EmployerOfRecord"] = "employer_of_record";
    CreateEmploymentApiModelSchemasTypeValue["Casual"] = "casual";
    CreateEmploymentApiModelSchemasTypeValue["Programme"] = "Programme";
    CreateEmploymentApiModelSchemasTypeValue["UnmappedValue"] = "unmapped_value";
})(CreateEmploymentApiModelSchemasTypeValue || (exports.CreateEmploymentApiModelSchemasTypeValue = CreateEmploymentApiModelSchemasTypeValue = {}));
/**
 * The unified value for the period.
 */
var CreateEmploymentApiModelSchemasWorkTimeValue;
(function (CreateEmploymentApiModelSchemasWorkTimeValue) {
    CreateEmploymentApiModelSchemasWorkTimeValue["Day"] = "day";
    CreateEmploymentApiModelSchemasWorkTimeValue["Week"] = "week";
    CreateEmploymentApiModelSchemasWorkTimeValue["Month"] = "month";
    CreateEmploymentApiModelSchemasWorkTimeValue["Year"] = "year";
    CreateEmploymentApiModelSchemasWorkTimeValue["UnmappedValue"] = "unmapped_value";
})(CreateEmploymentApiModelSchemasWorkTimeValue || (exports.CreateEmploymentApiModelSchemasWorkTimeValue = CreateEmploymentApiModelSchemasWorkTimeValue = {}));
/** @internal */
exports.CreateEmploymentApiModelSchemasContractType4$inboundSchema = z.object({});
/** @internal */
exports.CreateEmploymentApiModelSchemasContractType4$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 CreateEmploymentApiModelSchemasContractType4$;
(function (CreateEmploymentApiModelSchemasContractType4$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasContractType4$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasContractType4$.inboundSchema = exports.CreateEmploymentApiModelSchemasContractType4$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasContractType4$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasContractType4$.outboundSchema = exports.CreateEmploymentApiModelSchemasContractType4$outboundSchema;
})(CreateEmploymentApiModelSchemasContractType4$ || (exports.CreateEmploymentApiModelSchemasContractType4$ = CreateEmploymentApiModelSchemasContractType4$ = {}));
function createEmploymentApiModelSchemasContractType4ToJSON(createEmploymentApiModelSchemasContractType4) {
    return JSON.stringify(exports.CreateEmploymentApiModelSchemasContractType4$outboundSchema.parse(createEmploymentApiModelSchemasContractType4));
}
function createEmploymentApiModelSchemasContractType4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModelSchemasContractType4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModelSchemasContractType4' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemasContractTypeSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.CreateEmploymentApiModelSchemasContractType4$inboundSchema),
    z.array(z.any()),
]);
/** @internal */
exports.CreateEmploymentApiModelSchemasContractTypeSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.CreateEmploymentApiModelSchemasContractType4$outboundSchema),
    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 CreateEmploymentApiModelSchemasContractTypeSourceValue$;
(function (CreateEmploymentApiModelSchemasContractTypeSourceValue$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasContractTypeSourceValue$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasContractTypeSourceValue$.inboundSchema = exports.CreateEmploymentApiModelSchemasContractTypeSourceValue$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasContractTypeSourceValue$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasContractTypeSourceValue$.outboundSchema = exports.CreateEmploymentApiModelSchemasContractTypeSourceValue$outboundSchema;
})(CreateEmploymentApiModelSchemasContractTypeSourceValue$ || (exports.CreateEmploymentApiModelSchemasContractTypeSourceValue$ = CreateEmploymentApiModelSchemasContractTypeSourceValue$ = {}));
function createEmploymentApiModelSchemasContractTypeSourceValueToJSON(createEmploymentApiModelSchemasContractTypeSourceValue) {
    return JSON.stringify(exports.CreateEmploymentApiModelSchemasContractTypeSourceValue$outboundSchema.parse(createEmploymentApiModelSchemasContractTypeSourceValue));
}
function createEmploymentApiModelSchemasContractTypeSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModelSchemasContractTypeSourceValue$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModelSchemasContractTypeSourceValue' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemasContractTypeValue$inboundSchema = z
    .union([
    z.nativeEnum(CreateEmploymentApiModelSchemasContractTypeValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.CreateEmploymentApiModelSchemasContractTypeValue$outboundSchema = z.union([
    z.nativeEnum(CreateEmploymentApiModelSchemasContractTypeValue),
    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 CreateEmploymentApiModelSchemasContractTypeValue$;
(function (CreateEmploymentApiModelSchemasContractTypeValue$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasContractTypeValue$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasContractTypeValue$.inboundSchema = exports.CreateEmploymentApiModelSchemasContractTypeValue$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasContractTypeValue$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasContractTypeValue$.outboundSchema = exports.CreateEmploymentApiModelSchemasContractTypeValue$outboundSchema;
})(CreateEmploymentApiModelSchemasContractTypeValue$ || (exports.CreateEmploymentApiModelSchemasContractTypeValue$ = CreateEmploymentApiModelSchemasContractTypeValue$ = {}));
/** @internal */
exports.CreateEmploymentApiModelContractType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.CreateEmploymentApiModelSchemasContractType4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CreateEmploymentApiModelSchemasContractTypeValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.CreateEmploymentApiModelContractType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.CreateEmploymentApiModelSchemasContractType4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CreateEmploymentApiModelSchemasContractTypeValue$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 CreateEmploymentApiModelContractType$;
(function (CreateEmploymentApiModelContractType$) {
    /** @deprecated use `CreateEmploymentApiModelContractType$inboundSchema` instead. */
    CreateEmploymentApiModelContractType$.inboundSchema = exports.CreateEmploymentApiModelContractType$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelContractType$outboundSchema` instead. */
    CreateEmploymentApiModelContractType$.outboundSchema = exports.CreateEmploymentApiModelContractType$outboundSchema;
})(CreateEmploymentApiModelContractType$ || (exports.CreateEmploymentApiModelContractType$ = CreateEmploymentApiModelContractType$ = {}));
function createEmploymentApiModelContractTypeToJSON(createEmploymentApiModelContractType) {
    return JSON.stringify(exports.CreateEmploymentApiModelContractType$outboundSchema.parse(createEmploymentApiModelContractType));
}
function createEmploymentApiModelContractTypeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModelContractType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModelContractType' from JSON`);
}
/** @internal */
exports.ContractType$inboundSchema = z.object({
    contract_type: z.nullable(z.lazy(() => exports.CreateEmploymentApiModelContractType$inboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    label: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "contract_type": "contractType",
        "remote_id": "remoteId",
    });
});
/** @internal */
exports.ContractType$outboundSchema = z.object({
    contractType: z.nullable(z.lazy(() => exports.CreateEmploymentApiModelContractType$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",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ContractType$;
(function (ContractType$) {
    /** @deprecated use `ContractType$inboundSchema` instead. */
    ContractType$.inboundSchema = exports.ContractType$inboundSchema;
    /** @deprecated use `ContractType$outboundSchema` instead. */
    ContractType$.outboundSchema = exports.ContractType$outboundSchema;
})(ContractType$ || (exports.ContractType$ = ContractType$ = {}));
function contractTypeToJSON(contractType) {
    return JSON.stringify(exports.ContractType$outboundSchema.parse(contractType));
}
function contractTypeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ContractType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ContractType' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModel4$inboundSchema = z.object({});
/** @internal */
exports.CreateEmploymentApiModel4$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 CreateEmploymentApiModel4$;
(function (CreateEmploymentApiModel4$) {
    /** @deprecated use `CreateEmploymentApiModel4$inboundSchema` instead. */
    CreateEmploymentApiModel4$.inboundSchema = exports.CreateEmploymentApiModel4$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModel4$outboundSchema` instead. */
    CreateEmploymentApiModel4$.outboundSchema = exports.CreateEmploymentApiModel4$outboundSchema;
})(CreateEmploymentApiModel4$ || (exports.CreateEmploymentApiModel4$ = CreateEmploymentApiModel4$ = {}));
function createEmploymentApiModel4ToJSON(createEmploymentApiModel4) {
    return JSON.stringify(exports.CreateEmploymentApiModel4$outboundSchema.parse(createEmploymentApiModel4));
}
function createEmploymentApiModel4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModel4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModel4' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.CreateEmploymentApiModel4$inboundSchema),
    z.array(z.any()),
]);
/** @internal */
exports.CreateEmploymentApiModelSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.CreateEmploymentApiModel4$outboundSchema),
    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 CreateEmploymentApiModelSourceValue$;
(function (CreateEmploymentApiModelSourceValue$) {
    /** @deprecated use `CreateEmploymentApiModelSourceValue$inboundSchema` instead. */
    CreateEmploymentApiModelSourceValue$.inboundSchema = exports.CreateEmploymentApiModelSourceValue$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSourceValue$outboundSchema` instead. */
    CreateEmploymentApiModelSourceValue$.outboundSchema = exports.CreateEmploymentApiModelSourceValue$outboundSchema;
})(CreateEmploymentApiModelSourceValue$ || (exports.CreateEmploymentApiModelSourceValue$ = CreateEmploymentApiModelSourceValue$ = {}));
function createEmploymentApiModelSourceValueToJSON(createEmploymentApiModelSourceValue) {
    return JSON.stringify(exports.CreateEmploymentApiModelSourceValue$outboundSchema.parse(createEmploymentApiModelSourceValue));
}
function createEmploymentApiModelSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModelSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModelSourceValue' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelValue$inboundSchema = z
    .union([
    z.nativeEnum(CreateEmploymentApiModelValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.CreateEmploymentApiModelValue$outboundSchema = z.union([
    z.nativeEnum(CreateEmploymentApiModelValue),
    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 CreateEmploymentApiModelValue$;
(function (CreateEmploymentApiModelValue$) {
    /** @deprecated use `CreateEmploymentApiModelValue$inboundSchema` instead. */
    CreateEmploymentApiModelValue$.inboundSchema = exports.CreateEmploymentApiModelValue$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelValue$outboundSchema` instead. */
    CreateEmploymentApiModelValue$.outboundSchema = exports.CreateEmploymentApiModelValue$outboundSchema;
})(CreateEmploymentApiModelValue$ || (exports.CreateEmploymentApiModelValue$ = CreateEmploymentApiModelValue$ = {}));
/** @internal */
exports.EmploymentContractType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.CreateEmploymentApiModel4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CreateEmploymentApiModelValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.EmploymentContractType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.CreateEmploymentApiModel4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CreateEmploymentApiModelValue$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 EmploymentContractType$;
(function (EmploymentContractType$) {
    /** @deprecated use `EmploymentContractType$inboundSchema` instead. */
    EmploymentContractType$.inboundSchema = exports.EmploymentContractType$inboundSchema;
    /** @deprecated use `EmploymentContractType$outboundSchema` instead. */
    EmploymentContractType$.outboundSchema = exports.EmploymentContractType$outboundSchema;
})(EmploymentContractType$ || (exports.EmploymentContractType$ = EmploymentContractType$ = {}));
function employmentContractTypeToJSON(employmentContractType) {
    return JSON.stringify(exports.EmploymentContractType$outboundSchema.parse(employmentContractType));
}
function employmentContractTypeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EmploymentContractType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EmploymentContractType' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemas4$inboundSchema = z.object({});
/** @internal */
exports.CreateEmploymentApiModelSchemas4$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 CreateEmploymentApiModelSchemas4$;
(function (CreateEmploymentApiModelSchemas4$) {
    /** @deprecated use `CreateEmploymentApiModelSchemas4$inboundSchema` instead. */
    CreateEmploymentApiModelSchemas4$.inboundSchema = exports.CreateEmploymentApiModelSchemas4$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemas4$outboundSchema` instead. */
    CreateEmploymentApiModelSchemas4$.outboundSchema = exports.CreateEmploymentApiModelSchemas4$outboundSchema;
})(CreateEmploymentApiModelSchemas4$ || (exports.CreateEmploymentApiModelSchemas4$ = CreateEmploymentApiModelSchemas4$ = {}));
function createEmploymentApiModelSchemas4ToJSON(createEmploymentApiModelSchemas4) {
    return JSON.stringify(exports.CreateEmploymentApiModelSchemas4$outboundSchema.parse(createEmploymentApiModelSchemas4));
}
function createEmploymentApiModelSchemas4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModelSchemas4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModelSchemas4' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemasSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.CreateEmploymentApiModelSchemas4$inboundSchema),
    z.array(z.any()),
]);
/** @internal */
exports.CreateEmploymentApiModelSchemasSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.CreateEmploymentApiModelSchemas4$outboundSchema),
    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 CreateEmploymentApiModelSchemasSourceValue$;
(function (CreateEmploymentApiModelSchemasSourceValue$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasSourceValue$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasSourceValue$.inboundSchema = exports.CreateEmploymentApiModelSchemasSourceValue$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasSourceValue$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasSourceValue$.outboundSchema = exports.CreateEmploymentApiModelSchemasSourceValue$outboundSchema;
})(CreateEmploymentApiModelSchemasSourceValue$ || (exports.CreateEmploymentApiModelSchemasSourceValue$ = CreateEmploymentApiModelSchemasSourceValue$ = {}));
function createEmploymentApiModelSchemasSourceValueToJSON(createEmploymentApiModelSchemasSourceValue) {
    return JSON.stringify(exports.CreateEmploymentApiModelSchemasSourceValue$outboundSchema.parse(createEmploymentApiModelSchemasSourceValue));
}
function createEmploymentApiModelSchemasSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModelSchemasSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModelSchemasSourceValue' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemasValue$inboundSchema = z
    .union([
    z.nativeEnum(CreateEmploymentApiModelSchemasValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.CreateEmploymentApiModelSchemasValue$outboundSchema = z.union([
    z.nativeEnum(CreateEmploymentApiModelSchemasValue),
    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 CreateEmploymentApiModelSchemasValue$;
(function (CreateEmploymentApiModelSchemasValue$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasValue$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasValue$.inboundSchema = exports.CreateEmploymentApiModelSchemasValue$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasValue$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasValue$.outboundSchema = exports.CreateEmploymentApiModelSchemasValue$outboundSchema;
})(CreateEmploymentApiModelSchemasValue$ || (exports.CreateEmploymentApiModelSchemasValue$ = CreateEmploymentApiModelSchemasValue$ = {}));
/** @internal */
exports.EmploymentType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.CreateEmploymentApiModelSchemas4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CreateEmploymentApiModelSchemasValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.EmploymentType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.CreateEmploymentApiModelSchemas4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CreateEmploymentApiModelSchemasValue$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 EmploymentType$;
(function (EmploymentType$) {
    /** @deprecated use `EmploymentType$inboundSchema` instead. */
    EmploymentType$.inboundSchema = exports.EmploymentType$inboundSchema;
    /** @deprecated use `EmploymentType$outboundSchema` instead. */
    EmploymentType$.outboundSchema = exports.EmploymentType$outboundSchema;
})(EmploymentType$ || (exports.EmploymentType$ = EmploymentType$ = {}));
function employmentTypeToJSON(employmentType) {
    return JSON.stringify(exports.EmploymentType$outboundSchema.parse(employmentType));
}
function employmentTypeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EmploymentType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EmploymentType' from JSON`);
}
/** @internal */
exports.Grade$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.Grade$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 Grade$;
(function (Grade$) {
    /** @deprecated use `Grade$inboundSchema` instead. */
    Grade$.inboundSchema = exports.Grade$inboundSchema;
    /** @deprecated use `Grade$outboundSchema` instead. */
    Grade$.outboundSchema = exports.Grade$outboundSchema;
})(Grade$ || (exports.Grade$ = Grade$ = {}));
function gradeToJSON(grade) {
    return JSON.stringify(exports.Grade$outboundSchema.parse(grade));
}
function gradeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Grade$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Grade' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemasPayFrequency4$inboundSchema = z.object({});
/** @internal */
exports.CreateEmploymentApiModelSchemasPayFrequency4$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 CreateEmploymentApiModelSchemasPayFrequency4$;
(function (CreateEmploymentApiModelSchemasPayFrequency4$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasPayFrequency4$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasPayFrequency4$.inboundSchema = exports.CreateEmploymentApiModelSchemasPayFrequency4$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasPayFrequency4$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasPayFrequency4$.outboundSchema = exports.CreateEmploymentApiModelSchemasPayFrequency4$outboundSchema;
})(CreateEmploymentApiModelSchemasPayFrequency4$ || (exports.CreateEmploymentApiModelSchemasPayFrequency4$ = CreateEmploymentApiModelSchemasPayFrequency4$ = {}));
function createEmploymentApiModelSchemasPayFrequency4ToJSON(createEmploymentApiModelSchemasPayFrequency4) {
    return JSON.stringify(exports.CreateEmploymentApiModelSchemasPayFrequency4$outboundSchema.parse(createEmploymentApiModelSchemasPayFrequency4));
}
function createEmploymentApiModelSchemasPayFrequency4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModelSchemasPayFrequency4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModelSchemasPayFrequency4' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemasPayFrequencySourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.CreateEmploymentApiModelSchemasPayFrequency4$inboundSchema),
    z.array(z.any()),
]);
/** @internal */
exports.CreateEmploymentApiModelSchemasPayFrequencySourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.CreateEmploymentApiModelSchemasPayFrequency4$outboundSchema),
    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 CreateEmploymentApiModelSchemasPayFrequencySourceValue$;
(function (CreateEmploymentApiModelSchemasPayFrequencySourceValue$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasPayFrequencySourceValue$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasPayFrequencySourceValue$.inboundSchema = exports.CreateEmploymentApiModelSchemasPayFrequencySourceValue$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasPayFrequencySourceValue$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasPayFrequencySourceValue$.outboundSchema = exports.CreateEmploymentApiModelSchemasPayFrequencySourceValue$outboundSchema;
})(CreateEmploymentApiModelSchemasPayFrequencySourceValue$ || (exports.CreateEmploymentApiModelSchemasPayFrequencySourceValue$ = CreateEmploymentApiModelSchemasPayFrequencySourceValue$ = {}));
function createEmploymentApiModelSchemasPayFrequencySourceValueToJSON(createEmploymentApiModelSchemasPayFrequencySourceValue) {
    return JSON.stringify(exports.CreateEmploymentApiModelSchemasPayFrequencySourceValue$outboundSchema.parse(createEmploymentApiModelSchemasPayFrequencySourceValue));
}
function createEmploymentApiModelSchemasPayFrequencySourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModelSchemasPayFrequencySourceValue$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModelSchemasPayFrequencySourceValue' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemasPayFrequencyValue$inboundSchema = z
    .union([
    z.nativeEnum(CreateEmploymentApiModelSchemasPayFrequencyValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.CreateEmploymentApiModelSchemasPayFrequencyValue$outboundSchema = z.union([
    z.nativeEnum(CreateEmploymentApiModelSchemasPayFrequencyValue),
    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 CreateEmploymentApiModelSchemasPayFrequencyValue$;
(function (CreateEmploymentApiModelSchemasPayFrequencyValue$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasPayFrequencyValue$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasPayFrequencyValue$.inboundSchema = exports.CreateEmploymentApiModelSchemasPayFrequencyValue$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasPayFrequencyValue$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasPayFrequencyValue$.outboundSchema = exports.CreateEmploymentApiModelSchemasPayFrequencyValue$outboundSchema;
})(CreateEmploymentApiModelSchemasPayFrequencyValue$ || (exports.CreateEmploymentApiModelSchemasPayFrequencyValue$ = CreateEmploymentApiModelSchemasPayFrequencyValue$ = {}));
/** @internal */
exports.PayFrequency$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.CreateEmploymentApiModelSchemasPayFrequency4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CreateEmploymentApiModelSchemasPayFrequencyValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.PayFrequency$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.CreateEmploymentApiModelSchemasPayFrequency4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CreateEmploymentApiModelSchemasPayFrequencyValue$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 PayFrequency$;
(function (PayFrequency$) {
    /** @deprecated use `PayFrequency$inboundSchema` instead. */
    PayFrequency$.inboundSchema = exports.PayFrequency$inboundSchema;
    /** @deprecated use `PayFrequency$outboundSchema` instead. */
    PayFrequency$.outboundSchema = exports.PayFrequency$outboundSchema;
})(PayFrequency$ || (exports.PayFrequency$ = PayFrequency$ = {}));
function payFrequencyToJSON(payFrequency) {
    return JSON.stringify(exports.PayFrequency$outboundSchema.parse(payFrequency));
}
function payFrequencyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PayFrequency$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayFrequency' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemasPayPeriod4$inboundSchema = z.object({});
/** @internal */
exports.CreateEmploymentApiModelSchemasPayPeriod4$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 CreateEmploymentApiModelSchemasPayPeriod4$;
(function (CreateEmploymentApiModelSchemasPayPeriod4$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasPayPeriod4$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasPayPeriod4$.inboundSchema = exports.CreateEmploymentApiModelSchemasPayPeriod4$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasPayPeriod4$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasPayPeriod4$.outboundSchema = exports.CreateEmploymentApiModelSchemasPayPeriod4$outboundSchema;
})(CreateEmploymentApiModelSchemasPayPeriod4$ || (exports.CreateEmploymentApiModelSchemasPayPeriod4$ = CreateEmploymentApiModelSchemasPayPeriod4$ = {}));
function createEmploymentApiModelSchemasPayPeriod4ToJSON(createEmploymentApiModelSchemasPayPeriod4) {
    return JSON.stringify(exports.CreateEmploymentApiModelSchemasPayPeriod4$outboundSchema.parse(createEmploymentApiModelSchemasPayPeriod4));
}
function createEmploymentApiModelSchemasPayPeriod4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModelSchemasPayPeriod4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModelSchemasPayPeriod4' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemasPayPeriodSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.CreateEmploymentApiModelSchemasPayPeriod4$inboundSchema),
    z.array(z.any()),
]);
/** @internal */
exports.CreateEmploymentApiModelSchemasPayPeriodSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.CreateEmploymentApiModelSchemasPayPeriod4$outboundSchema),
    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 CreateEmploymentApiModelSchemasPayPeriodSourceValue$;
(function (CreateEmploymentApiModelSchemasPayPeriodSourceValue$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasPayPeriodSourceValue$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasPayPeriodSourceValue$.inboundSchema = exports.CreateEmploymentApiModelSchemasPayPeriodSourceValue$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasPayPeriodSourceValue$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasPayPeriodSourceValue$.outboundSchema = exports.CreateEmploymentApiModelSchemasPayPeriodSourceValue$outboundSchema;
})(CreateEmploymentApiModelSchemasPayPeriodSourceValue$ || (exports.CreateEmploymentApiModelSchemasPayPeriodSourceValue$ = CreateEmploymentApiModelSchemasPayPeriodSourceValue$ = {}));
function createEmploymentApiModelSchemasPayPeriodSourceValueToJSON(createEmploymentApiModelSchemasPayPeriodSourceValue) {
    return JSON.stringify(exports.CreateEmploymentApiModelSchemasPayPeriodSourceValue$outboundSchema.parse(createEmploymentApiModelSchemasPayPeriodSourceValue));
}
function createEmploymentApiModelSchemasPayPeriodSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModelSchemasPayPeriodSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModelSchemasPayPeriodSourceValue' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemasPayPeriodValue$inboundSchema = z
    .union([
    z.nativeEnum(CreateEmploymentApiModelSchemasPayPeriodValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.CreateEmploymentApiModelSchemasPayPeriodValue$outboundSchema = z.union([
    z.nativeEnum(CreateEmploymentApiModelSchemasPayPeriodValue),
    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 CreateEmploymentApiModelSchemasPayPeriodValue$;
(function (CreateEmploymentApiModelSchemasPayPeriodValue$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasPayPeriodValue$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasPayPeriodValue$.inboundSchema = exports.CreateEmploymentApiModelSchemasPayPeriodValue$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasPayPeriodValue$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasPayPeriodValue$.outboundSchema = exports.CreateEmploymentApiModelSchemasPayPeriodValue$outboundSchema;
})(CreateEmploymentApiModelSchemasPayPeriodValue$ || (exports.CreateEmploymentApiModelSchemasPayPeriodValue$ = CreateEmploymentApiModelSchemasPayPeriodValue$ = {}));
/** @internal */
exports.PayPeriod$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.CreateEmploymentApiModelSchemasPayPeriod4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CreateEmploymentApiModelSchemasPayPeriodValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.PayPeriod$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.CreateEmploymentApiModelSchemasPayPeriod4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CreateEmploymentApiModelSchemasPayPeriodValue$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 PayPeriod$;
(function (PayPeriod$) {
    /** @deprecated use `PayPeriod$inboundSchema` instead. */
    PayPeriod$.inboundSchema = exports.PayPeriod$inboundSchema;
    /** @deprecated use `PayPeriod$outboundSchema` instead. */
    PayPeriod$.outboundSchema = exports.PayPeriod$outboundSchema;
})(PayPeriod$ || (exports.PayPeriod$ = PayPeriod$ = {}));
function payPeriodToJSON(payPeriod) {
    return JSON.stringify(exports.PayPeriod$outboundSchema.parse(payPeriod));
}
function payPeriodFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PayPeriod$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayPeriod' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemasType4$inboundSchema = z.object({});
/** @internal */
exports.CreateEmploymentApiModelSchemasType4$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 CreateEmploymentApiModelSchemasType4$;
(function (CreateEmploymentApiModelSchemasType4$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasType4$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasType4$.inboundSchema = exports.CreateEmploymentApiModelSchemasType4$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasType4$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasType4$.outboundSchema = exports.CreateEmploymentApiModelSchemasType4$outboundSchema;
})(CreateEmploymentApiModelSchemasType4$ || (exports.CreateEmploymentApiModelSchemasType4$ = CreateEmploymentApiModelSchemasType4$ = {}));
function createEmploymentApiModelSchemasType4ToJSON(createEmploymentApiModelSchemasType4) {
    return JSON.stringify(exports.CreateEmploymentApiModelSchemasType4$outboundSchema.parse(createEmploymentApiModelSchemasType4));
}
function createEmploymentApiModelSchemasType4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModelSchemasType4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModelSchemasType4' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemasTypeSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.CreateEmploymentApiModelSchemasType4$inboundSchema),
    z.array(z.any()),
]);
/** @internal */
exports.CreateEmploymentApiModelSchemasTypeSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.CreateEmploymentApiModelSchemasType4$outboundSchema),
    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 CreateEmploymentApiModelSchemasTypeSourceValue$;
(function (CreateEmploymentApiModelSchemasTypeSourceValue$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasTypeSourceValue$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasTypeSourceValue$.inboundSchema = exports.CreateEmploymentApiModelSchemasTypeSourceValue$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasTypeSourceValue$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasTypeSourceValue$.outboundSchema = exports.CreateEmploymentApiModelSchemasTypeSourceValue$outboundSchema;
})(CreateEmploymentApiModelSchemasTypeSourceValue$ || (exports.CreateEmploymentApiModelSchemasTypeSourceValue$ = CreateEmploymentApiModelSchemasTypeSourceValue$ = {}));
function createEmploymentApiModelSchemasTypeSourceValueToJSON(createEmploymentApiModelSchemasTypeSourceValue) {
    return JSON.stringify(exports.CreateEmploymentApiModelSchemasTypeSourceValue$outboundSchema.parse(createEmploymentApiModelSchemasTypeSourceValue));
}
function createEmploymentApiModelSchemasTypeSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModelSchemasTypeSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModelSchemasTypeSourceValue' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemasTypeValue$inboundSchema = z
    .union([
    z.nativeEnum(CreateEmploymentApiModelSchemasTypeValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.CreateEmploymentApiModelSchemasTypeValue$outboundSchema = z.union([
    z.nativeEnum(CreateEmploymentApiModelSchemasTypeValue),
    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 CreateEmploymentApiModelSchemasTypeValue$;
(function (CreateEmploymentApiModelSchemasTypeValue$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasTypeValue$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasTypeValue$.inboundSchema = exports.CreateEmploymentApiModelSchemasTypeValue$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasTypeValue$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasTypeValue$.outboundSchema = exports.CreateEmploymentApiModelSchemasTypeValue$outboundSchema;
})(CreateEmploymentApiModelSchemasTypeValue$ || (exports.CreateEmploymentApiModelSchemasTypeValue$ = CreateEmploymentApiModelSchemasTypeValue$ = {}));
/** @internal */
exports.CreateEmploymentApiModelSchemasType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.CreateEmploymentApiModelSchemasType4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CreateEmploymentApiModelSchemasTypeValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.CreateEmploymentApiModelSchemasType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.CreateEmploymentApiModelSchemasType4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CreateEmploymentApiModelSchemasTypeValue$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 CreateEmploymentApiModelSchemasType$;
(function (CreateEmploymentApiModelSchemasType$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasType$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasType$.inboundSchema = exports.CreateEmploymentApiModelSchemasType$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasType$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasType$.outboundSchema = exports.CreateEmploymentApiModelSchemasType$outboundSchema;
})(CreateEmploymentApiModelSchemasType$ || (exports.CreateEmploymentApiModelSchemasType$ = CreateEmploymentApiModelSchemasType$ = {}));
function createEmploymentApiModelSchemasTypeToJSON(createEmploymentApiModelSchemasType) {
    return JSON.stringify(exports.CreateEmploymentApiModelSchemasType$outboundSchema.parse(createEmploymentApiModelSchemasType));
}
function createEmploymentApiModelSchemasTypeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModelSchemasType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModelSchemasType' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelType$inboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    label: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
    type: z.nullable(z.lazy(() => exports.CreateEmploymentApiModelSchemasType$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "remote_id": "remoteId",
    });
});
/** @internal */
exports.CreateEmploymentApiModelType$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.CreateEmploymentApiModelSchemasType$outboundSchema)).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 CreateEmploymentApiModelType$;
(function (CreateEmploymentApiModelType$) {
    /** @deprecated use `CreateEmploymentApiModelType$inboundSchema` instead. */
    CreateEmploymentApiModelType$.inboundSchema = exports.CreateEmploymentApiModelType$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelType$outboundSchema` instead. */
    CreateEmploymentApiModelType$.outboundSchema = exports.CreateEmploymentApiModelType$outboundSchema;
})(CreateEmploymentApiModelType$ || (exports.CreateEmploymentApiModelType$ = CreateEmploymentApiModelType$ = {}));
function createEmploymentApiModelTypeToJSON(createEmploymentApiModelType) {
    return JSON.stringify(exports.CreateEmploymentApiModelType$outboundSchema.parse(createEmploymentApiModelType));
}
function createEmploymentApiModelTypeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModelType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModelType' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemasWorkTime4$inboundSchema = z.object({});
/** @internal */
exports.CreateEmploymentApiModelSchemasWorkTime4$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 CreateEmploymentApiModelSchemasWorkTime4$;
(function (CreateEmploymentApiModelSchemasWorkTime4$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasWorkTime4$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasWorkTime4$.inboundSchema = exports.CreateEmploymentApiModelSchemasWorkTime4$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasWorkTime4$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasWorkTime4$.outboundSchema = exports.CreateEmploymentApiModelSchemasWorkTime4$outboundSchema;
})(CreateEmploymentApiModelSchemasWorkTime4$ || (exports.CreateEmploymentApiModelSchemasWorkTime4$ = CreateEmploymentApiModelSchemasWorkTime4$ = {}));
function createEmploymentApiModelSchemasWorkTime4ToJSON(createEmploymentApiModelSchemasWorkTime4) {
    return JSON.stringify(exports.CreateEmploymentApiModelSchemasWorkTime4$outboundSchema.parse(createEmploymentApiModelSchemasWorkTime4));
}
function createEmploymentApiModelSchemasWorkTime4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModelSchemasWorkTime4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModelSchemasWorkTime4' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemasWorkTimeSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.CreateEmploymentApiModelSchemasWorkTime4$inboundSchema),
    z.array(z.any()),
]);
/** @internal */
exports.CreateEmploymentApiModelSchemasWorkTimeSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.CreateEmploymentApiModelSchemasWorkTime4$outboundSchema),
    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 CreateEmploymentApiModelSchemasWorkTimeSourceValue$;
(function (CreateEmploymentApiModelSchemasWorkTimeSourceValue$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasWorkTimeSourceValue$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasWorkTimeSourceValue$.inboundSchema = exports.CreateEmploymentApiModelSchemasWorkTimeSourceValue$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasWorkTimeSourceValue$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasWorkTimeSourceValue$.outboundSchema = exports.CreateEmploymentApiModelSchemasWorkTimeSourceValue$outboundSchema;
})(CreateEmploymentApiModelSchemasWorkTimeSourceValue$ || (exports.CreateEmploymentApiModelSchemasWorkTimeSourceValue$ = CreateEmploymentApiModelSchemasWorkTimeSourceValue$ = {}));
function createEmploymentApiModelSchemasWorkTimeSourceValueToJSON(createEmploymentApiModelSchemasWorkTimeSourceValue) {
    return JSON.stringify(exports.CreateEmploymentApiModelSchemasWorkTimeSourceValue$outboundSchema.parse(createEmploymentApiModelSchemasWorkTimeSourceValue));
}
function createEmploymentApiModelSchemasWorkTimeSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModelSchemasWorkTimeSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModelSchemasWorkTimeSourceValue' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModelSchemasWorkTimeValue$inboundSchema = z
    .union([
    z.nativeEnum(CreateEmploymentApiModelSchemasWorkTimeValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.CreateEmploymentApiModelSchemasWorkTimeValue$outboundSchema = z.union([
    z.nativeEnum(CreateEmploymentApiModelSchemasWorkTimeValue),
    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 CreateEmploymentApiModelSchemasWorkTimeValue$;
(function (CreateEmploymentApiModelSchemasWorkTimeValue$) {
    /** @deprecated use `CreateEmploymentApiModelSchemasWorkTimeValue$inboundSchema` instead. */
    CreateEmploymentApiModelSchemasWorkTimeValue$.inboundSchema = exports.CreateEmploymentApiModelSchemasWorkTimeValue$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModelSchemasWorkTimeValue$outboundSchema` instead. */
    CreateEmploymentApiModelSchemasWorkTimeValue$.outboundSchema = exports.CreateEmploymentApiModelSchemasWorkTimeValue$outboundSchema;
})(CreateEmploymentApiModelSchemasWorkTimeValue$ || (exports.CreateEmploymentApiModelSchemasWorkTimeValue$ = CreateEmploymentApiModelSchemasWorkTimeValue$ = {}));
/** @internal */
exports.Period$inboundSchema = z
    .object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.CreateEmploymentApiModelSchemasWorkTime4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CreateEmploymentApiModelSchemasWorkTimeValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.Period$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.CreateEmploymentApiModelSchemasWorkTime4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CreateEmploymentApiModelSchemasWorkTimeValue$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 Period$;
(function (Period$) {
    /** @deprecated use `Period$inboundSchema` instead. */
    Period$.inboundSchema = exports.Period$inboundSchema;
    /** @deprecated use `Period$outboundSchema` instead. */
    Period$.outboundSchema = exports.Period$outboundSchema;
})(Period$ || (exports.Period$ = Period$ = {}));
function periodToJSON(period) {
    return JSON.stringify(exports.Period$outboundSchema.parse(period));
}
function periodFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Period$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Period' from JSON`);
}
/** @internal */
exports.WorkTime$inboundSchema = z.object({
    duration: z.nullable(z.string()).optional(),
    period: z.nullable(z.lazy(() => exports.Period$inboundSchema)).optional(),
});
/** @internal */
exports.WorkTime$outboundSchema = z.object({
    duration: z.nullable(z.string()).optional(),
    period: z.nullable(z.lazy(() => exports.Period$outboundSchema)).optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var WorkTime$;
(function (WorkTime$) {
    /** @deprecated use `WorkTime$inboundSchema` instead. */
    WorkTime$.inboundSchema = exports.WorkTime$inboundSchema;
    /** @deprecated use `WorkTime$outboundSchema` instead. */
    WorkTime$.outboundSchema = exports.WorkTime$outboundSchema;
})(WorkTime$ || (exports.WorkTime$ = WorkTime$ = {}));
function workTimeToJSON(workTime) {
    return JSON.stringify(exports.WorkTime$outboundSchema.parse(workTime));
}
function workTimeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.WorkTime$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkTime' from JSON`);
}
/** @internal */
exports.CreateEmploymentApiModel$inboundSchema = z.object({
    contract_type: z.nullable(z.lazy(() => exports.ContractType$inboundSchema))
        .optional(),
    effective_date: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    employment_contract_type: z.nullable(z.lazy(() => exports.EmploymentContractType$inboundSchema)).optional(),
    employment_type: z.nullable(z.lazy(() => exports.EmploymentType$inboundSchema))
        .optional(),
    end_date: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    grade: z.nullable(z.lazy(() => exports.Grade$inboundSchema)).optional(),
    job_id: z.nullable(z.string()).optional(),
    job_title: z.nullable(z.string()).optional(),
    pay_currency: z.nullable(z.string()).optional(),
    pay_frequency: z.nullable(z.lazy(() => exports.PayFrequency$inboundSchema))
        .optional(),
    pay_period: z.nullable(z.lazy(() => exports.PayPeriod$inboundSchema)).optional(),
    pay_rate: z.nullable(z.string()).optional(),
    payroll_code: z.nullable(z.string()).optional(),
    type: z.nullable(z.lazy(() => exports.CreateEmploymentApiModelType$inboundSchema))
        .optional(),
    unified_custom_fields: z.nullable(z.record(z.any())).optional(),
    work_time: z.nullable(z.lazy(() => exports.WorkTime$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "contract_type": "contractType",
        "effective_date": "effectiveDate",
        "employment_contract_type": "employmentContractType",
        "employment_type": "employmentType",
        "end_date": "endDate",
        "job_id": "jobId",
        "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.CreateEmploymentApiModel$outboundSchema = z.object({
    contractType: z.nullable(z.lazy(() => exports.ContractType$outboundSchema))
        .optional(),
    effectiveDate: z.nullable(z.date().transform(v => v.toISOString()))
        .optional(),
    employmentContractType: z.nullable(z.lazy(() => exports.EmploymentContractType$outboundSchema)).optional(),
    employmentType: z.nullable(z.lazy(() => exports.EmploymentType$outboundSchema))
        .optional(),
    endDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    grade: z.nullable(z.lazy(() => exports.Grade$outboundSchema)).optional(),
    jobId: z.nullable(z.string()).optional(),
    jobTitle: z.nullable(z.string()).optional(),
    payCurrency: z.nullable(z.string()).optional(),
    payFrequency: z.nullable(z.lazy(() => exports.PayFrequency$outboundSchema))
        .optional(),
    payPeriod: z.nullable(z.lazy(() => exports.PayPeriod$outboundSchema)).optional(),
    payRate: z.nullable(z.string()).optional(),
    payrollCode: z.nullable(z.string()).optional(),
    type: z.nullable(z.lazy(() => exports.CreateEmploymentApiModelType$outboundSchema))
        .optional(),
    unifiedCustomFields: z.nullable(z.record(z.any())).optional(),
    workTime: z.nullable(z.lazy(() => exports.WorkTime$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",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateEmploymentApiModel$;
(function (CreateEmploymentApiModel$) {
    /** @deprecated use `CreateEmploymentApiModel$inboundSchema` instead. */
    CreateEmploymentApiModel$.inboundSchema = exports.CreateEmploymentApiModel$inboundSchema;
    /** @deprecated use `CreateEmploymentApiModel$outboundSchema` instead. */
    CreateEmploymentApiModel$.outboundSchema = exports.CreateEmploymentApiModel$outboundSchema;
})(CreateEmploymentApiModel$ || (exports.CreateEmploymentApiModel$ = CreateEmploymentApiModel$ = {}));
function createEmploymentApiModelToJSON(createEmploymentApiModel) {
    return JSON.stringify(exports.CreateEmploymentApiModel$outboundSchema.parse(createEmploymentApiModel));
}
function createEmploymentApiModelFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEmploymentApiModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmploymentApiModel' from JSON`);
}
//# sourceMappingURL=createemploymentapimodel.js.map