"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.EmploymentPayPeriod$inboundSchema = exports.EmploymentSchemasPayPeriodValue$ = exports.EmploymentSchemasPayPeriodValue$outboundSchema = exports.EmploymentSchemasPayPeriodValue$inboundSchema = exports.EmploymentSchemasPayPeriodSourceValue$ = exports.EmploymentSchemasPayPeriodSourceValue$outboundSchema = exports.EmploymentSchemasPayPeriodSourceValue$inboundSchema = exports.EmploymentSchemasPayPeriod4$ = exports.EmploymentSchemasPayPeriod4$outboundSchema = exports.EmploymentSchemasPayPeriod4$inboundSchema = exports.EmploymentPayFrequency$ = exports.EmploymentPayFrequency$outboundSchema = exports.EmploymentPayFrequency$inboundSchema = exports.EmploymentSchemasPayFrequencyValue$ = exports.EmploymentSchemasPayFrequencyValue$outboundSchema = exports.EmploymentSchemasPayFrequencyValue$inboundSchema = exports.EmploymentSchemasPayFrequencySourceValue$ = exports.EmploymentSchemasPayFrequencySourceValue$outboundSchema = exports.EmploymentSchemasPayFrequencySourceValue$inboundSchema = exports.EmploymentSchemasPayFrequency4$ = exports.EmploymentSchemasPayFrequency4$outboundSchema = exports.EmploymentSchemasPayFrequency4$inboundSchema = exports.EmploymentEmploymentType$ = exports.EmploymentEmploymentType$outboundSchema = exports.EmploymentEmploymentType$inboundSchema = exports.EmploymentSchemasValue$ = exports.EmploymentSchemasValue$outboundSchema = exports.EmploymentSchemasValue$inboundSchema = exports.EmploymentSchemasSourceValue$ = exports.EmploymentSchemasSourceValue$outboundSchema = exports.EmploymentSchemasSourceValue$inboundSchema = exports.EmploymentSchemas4$ = exports.EmploymentSchemas4$outboundSchema = exports.EmploymentSchemas4$inboundSchema = exports.EmploymentEmploymentContractType$ = exports.EmploymentEmploymentContractType$outboundSchema = exports.EmploymentEmploymentContractType$inboundSchema = exports.EmploymentValue$ = exports.EmploymentValue$outboundSchema = exports.EmploymentValue$inboundSchema = exports.EmploymentSourceValue$ = exports.EmploymentSourceValue$outboundSchema = exports.EmploymentSourceValue$inboundSchema = exports.Employment4$ = exports.Employment4$outboundSchema = exports.Employment4$inboundSchema = exports.EmploymentSchemasPayPeriodValue = exports.EmploymentSchemasPayFrequencyValue = exports.EmploymentSchemasValue = exports.EmploymentValue = void 0;
exports.Employment$ = exports.Employment$outboundSchema = exports.Employment$inboundSchema = exports.EmploymentPayPeriod$ = exports.EmploymentPayPeriod$outboundSchema = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const enums_js_1 = require("../../types/enums.js");
var EmploymentValue;
(function (EmploymentValue) {
    EmploymentValue["FullTime"] = "full_time";
    EmploymentValue["Shifts"] = "shifts";
    EmploymentValue["PartTime"] = "part_time";
    EmploymentValue["UnmappedValue"] = "unmapped_value";
})(EmploymentValue || (exports.EmploymentValue = EmploymentValue = {}));
/**
 * The type of the employment.
 */
var EmploymentSchemasValue;
(function (EmploymentSchemasValue) {
    EmploymentSchemasValue["Contractor"] = "contractor";
    EmploymentSchemasValue["Intern"] = "intern";
    EmploymentSchemasValue["Permanent"] = "permanent";
    EmploymentSchemasValue["Apprentice"] = "apprentice";
    EmploymentSchemasValue["Freelance"] = "freelance";
    EmploymentSchemasValue["Terminated"] = "terminated";
    EmploymentSchemasValue["Temporary"] = "temporary";
    EmploymentSchemasValue["Seasonal"] = "seasonal";
    EmploymentSchemasValue["Volunteer"] = "volunteer";
    EmploymentSchemasValue["Probation"] = "probation";
    EmploymentSchemasValue["Internal"] = "internal";
    EmploymentSchemasValue["External"] = "external";
    EmploymentSchemasValue["Expatriate"] = "expatriate";
    EmploymentSchemasValue["EmployerOfRecord"] = "employer_of_record";
    EmploymentSchemasValue["Casual"] = "casual";
    EmploymentSchemasValue["Programme"] = "Programme";
    EmploymentSchemasValue["UnmappedValue"] = "unmapped_value";
})(EmploymentSchemasValue || (exports.EmploymentSchemasValue = EmploymentSchemasValue = {}));
/**
 * The pay frequency of the job postings.
 */
var EmploymentSchemasPayFrequencyValue;
(function (EmploymentSchemasPayFrequencyValue) {
    EmploymentSchemasPayFrequencyValue["Hourly"] = "hourly";
    EmploymentSchemasPayFrequencyValue["Weekly"] = "weekly";
    EmploymentSchemasPayFrequencyValue["BiWeekly"] = "bi_weekly";
    EmploymentSchemasPayFrequencyValue["FourWeekly"] = "four_weekly";
    EmploymentSchemasPayFrequencyValue["SemiMonthly"] = "semi_monthly";
    EmploymentSchemasPayFrequencyValue["Monthly"] = "monthly";
    EmploymentSchemasPayFrequencyValue["BiMonthly"] = "bi_monthly";
    EmploymentSchemasPayFrequencyValue["Quarterly"] = "quarterly";
    EmploymentSchemasPayFrequencyValue["SemiAnnually"] = "semi_annually";
    EmploymentSchemasPayFrequencyValue["Yearly"] = "yearly";
    EmploymentSchemasPayFrequencyValue["ThirteenMonthly"] = "thirteen_monthly";
    EmploymentSchemasPayFrequencyValue["ProRata"] = "pro_rata";
    EmploymentSchemasPayFrequencyValue["UnmappedValue"] = "unmapped_value";
    EmploymentSchemasPayFrequencyValue["HalfYearly"] = "half_yearly";
    EmploymentSchemasPayFrequencyValue["Daily"] = "daily";
})(EmploymentSchemasPayFrequencyValue || (exports.EmploymentSchemasPayFrequencyValue = EmploymentSchemasPayFrequencyValue = {}));
/**
 * The pay period of the job postings.
 */
var EmploymentSchemasPayPeriodValue;
(function (EmploymentSchemasPayPeriodValue) {
    EmploymentSchemasPayPeriodValue["Hour"] = "hour";
    EmploymentSchemasPayPeriodValue["Day"] = "day";
    EmploymentSchemasPayPeriodValue["Week"] = "week";
    EmploymentSchemasPayPeriodValue["EveryTwoWeeks"] = "every_two_weeks";
    EmploymentSchemasPayPeriodValue["Month"] = "month";
    EmploymentSchemasPayPeriodValue["TwiceAMonth"] = "twice_a_month";
    EmploymentSchemasPayPeriodValue["EveryTwoMonths"] = "every_two_months";
    EmploymentSchemasPayPeriodValue["Quarter"] = "quarter";
    EmploymentSchemasPayPeriodValue["EverySixMonths"] = "every_six_months";
    EmploymentSchemasPayPeriodValue["Year"] = "year";
    EmploymentSchemasPayPeriodValue["OneOff"] = "one_off";
    EmploymentSchemasPayPeriodValue["None"] = "none";
    EmploymentSchemasPayPeriodValue["UnmappedValue"] = "unmapped_value";
})(EmploymentSchemasPayPeriodValue || (exports.EmploymentSchemasPayPeriodValue = EmploymentSchemasPayPeriodValue = {}));
/** @internal */
exports.Employment4$inboundSchema = z.object({});
/** @internal */
exports.Employment4$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 Employment4$;
(function (Employment4$) {
    /** @deprecated use `Employment4$inboundSchema` instead. */
    Employment4$.inboundSchema = exports.Employment4$inboundSchema;
    /** @deprecated use `Employment4$outboundSchema` instead. */
    Employment4$.outboundSchema = exports.Employment4$outboundSchema;
})(Employment4$ || (exports.Employment4$ = Employment4$ = {}));
/** @internal */
exports.EmploymentSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.Employment4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.EmploymentSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.Employment4$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 EmploymentSourceValue$;
(function (EmploymentSourceValue$) {
    /** @deprecated use `EmploymentSourceValue$inboundSchema` instead. */
    EmploymentSourceValue$.inboundSchema = exports.EmploymentSourceValue$inboundSchema;
    /** @deprecated use `EmploymentSourceValue$outboundSchema` instead. */
    EmploymentSourceValue$.outboundSchema = exports.EmploymentSourceValue$outboundSchema;
})(EmploymentSourceValue$ || (exports.EmploymentSourceValue$ = EmploymentSourceValue$ = {}));
/** @internal */
exports.EmploymentValue$inboundSchema = z
    .union([
    z.nativeEnum(EmploymentValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.EmploymentValue$outboundSchema = z.union([
    z.nativeEnum(EmploymentValue),
    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 EmploymentValue$;
(function (EmploymentValue$) {
    /** @deprecated use `EmploymentValue$inboundSchema` instead. */
    EmploymentValue$.inboundSchema = exports.EmploymentValue$inboundSchema;
    /** @deprecated use `EmploymentValue$outboundSchema` instead. */
    EmploymentValue$.outboundSchema = exports.EmploymentValue$outboundSchema;
})(EmploymentValue$ || (exports.EmploymentValue$ = EmploymentValue$ = {}));
/** @internal */
exports.EmploymentEmploymentContractType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.Employment4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.EmploymentValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.EmploymentEmploymentContractType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.Employment4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.EmploymentValue$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 EmploymentEmploymentContractType$;
(function (EmploymentEmploymentContractType$) {
    /** @deprecated use `EmploymentEmploymentContractType$inboundSchema` instead. */
    EmploymentEmploymentContractType$.inboundSchema = exports.EmploymentEmploymentContractType$inboundSchema;
    /** @deprecated use `EmploymentEmploymentContractType$outboundSchema` instead. */
    EmploymentEmploymentContractType$.outboundSchema = exports.EmploymentEmploymentContractType$outboundSchema;
})(EmploymentEmploymentContractType$ || (exports.EmploymentEmploymentContractType$ = EmploymentEmploymentContractType$ = {}));
/** @internal */
exports.EmploymentSchemas4$inboundSchema = z.object({});
/** @internal */
exports.EmploymentSchemas4$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 EmploymentSchemas4$;
(function (EmploymentSchemas4$) {
    /** @deprecated use `EmploymentSchemas4$inboundSchema` instead. */
    EmploymentSchemas4$.inboundSchema = exports.EmploymentSchemas4$inboundSchema;
    /** @deprecated use `EmploymentSchemas4$outboundSchema` instead. */
    EmploymentSchemas4$.outboundSchema = exports.EmploymentSchemas4$outboundSchema;
})(EmploymentSchemas4$ || (exports.EmploymentSchemas4$ = EmploymentSchemas4$ = {}));
/** @internal */
exports.EmploymentSchemasSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.EmploymentSchemas4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.EmploymentSchemasSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.EmploymentSchemas4$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 EmploymentSchemasSourceValue$;
(function (EmploymentSchemasSourceValue$) {
    /** @deprecated use `EmploymentSchemasSourceValue$inboundSchema` instead. */
    EmploymentSchemasSourceValue$.inboundSchema = exports.EmploymentSchemasSourceValue$inboundSchema;
    /** @deprecated use `EmploymentSchemasSourceValue$outboundSchema` instead. */
    EmploymentSchemasSourceValue$.outboundSchema = exports.EmploymentSchemasSourceValue$outboundSchema;
})(EmploymentSchemasSourceValue$ || (exports.EmploymentSchemasSourceValue$ = EmploymentSchemasSourceValue$ = {}));
/** @internal */
exports.EmploymentSchemasValue$inboundSchema = z
    .union([
    z.nativeEnum(EmploymentSchemasValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.EmploymentSchemasValue$outboundSchema = z.union([
    z.nativeEnum(EmploymentSchemasValue),
    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 EmploymentSchemasValue$;
(function (EmploymentSchemasValue$) {
    /** @deprecated use `EmploymentSchemasValue$inboundSchema` instead. */
    EmploymentSchemasValue$.inboundSchema = exports.EmploymentSchemasValue$inboundSchema;
    /** @deprecated use `EmploymentSchemasValue$outboundSchema` instead. */
    EmploymentSchemasValue$.outboundSchema = exports.EmploymentSchemasValue$outboundSchema;
})(EmploymentSchemasValue$ || (exports.EmploymentSchemasValue$ = EmploymentSchemasValue$ = {}));
/** @internal */
exports.EmploymentEmploymentType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.EmploymentSchemas4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.EmploymentSchemasValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.EmploymentEmploymentType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.EmploymentSchemas4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.EmploymentSchemasValue$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 EmploymentEmploymentType$;
(function (EmploymentEmploymentType$) {
    /** @deprecated use `EmploymentEmploymentType$inboundSchema` instead. */
    EmploymentEmploymentType$.inboundSchema = exports.EmploymentEmploymentType$inboundSchema;
    /** @deprecated use `EmploymentEmploymentType$outboundSchema` instead. */
    EmploymentEmploymentType$.outboundSchema = exports.EmploymentEmploymentType$outboundSchema;
})(EmploymentEmploymentType$ || (exports.EmploymentEmploymentType$ = EmploymentEmploymentType$ = {}));
/** @internal */
exports.EmploymentSchemasPayFrequency4$inboundSchema = z.object({});
/** @internal */
exports.EmploymentSchemasPayFrequency4$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 EmploymentSchemasPayFrequency4$;
(function (EmploymentSchemasPayFrequency4$) {
    /** @deprecated use `EmploymentSchemasPayFrequency4$inboundSchema` instead. */
    EmploymentSchemasPayFrequency4$.inboundSchema = exports.EmploymentSchemasPayFrequency4$inboundSchema;
    /** @deprecated use `EmploymentSchemasPayFrequency4$outboundSchema` instead. */
    EmploymentSchemasPayFrequency4$.outboundSchema = exports.EmploymentSchemasPayFrequency4$outboundSchema;
})(EmploymentSchemasPayFrequency4$ || (exports.EmploymentSchemasPayFrequency4$ = EmploymentSchemasPayFrequency4$ = {}));
/** @internal */
exports.EmploymentSchemasPayFrequencySourceValue$inboundSchema = z.union([
    z.lazy(() => exports.EmploymentSchemasPayFrequency4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.EmploymentSchemasPayFrequencySourceValue$outboundSchema = z.union([
    z.lazy(() => exports.EmploymentSchemasPayFrequency4$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 EmploymentSchemasPayFrequencySourceValue$;
(function (EmploymentSchemasPayFrequencySourceValue$) {
    /** @deprecated use `EmploymentSchemasPayFrequencySourceValue$inboundSchema` instead. */
    EmploymentSchemasPayFrequencySourceValue$.inboundSchema = exports.EmploymentSchemasPayFrequencySourceValue$inboundSchema;
    /** @deprecated use `EmploymentSchemasPayFrequencySourceValue$outboundSchema` instead. */
    EmploymentSchemasPayFrequencySourceValue$.outboundSchema = exports.EmploymentSchemasPayFrequencySourceValue$outboundSchema;
})(EmploymentSchemasPayFrequencySourceValue$ || (exports.EmploymentSchemasPayFrequencySourceValue$ = EmploymentSchemasPayFrequencySourceValue$ = {}));
/** @internal */
exports.EmploymentSchemasPayFrequencyValue$inboundSchema = z
    .union([
    z.nativeEnum(EmploymentSchemasPayFrequencyValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.EmploymentSchemasPayFrequencyValue$outboundSchema = z.union([
    z.nativeEnum(EmploymentSchemasPayFrequencyValue),
    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 EmploymentSchemasPayFrequencyValue$;
(function (EmploymentSchemasPayFrequencyValue$) {
    /** @deprecated use `EmploymentSchemasPayFrequencyValue$inboundSchema` instead. */
    EmploymentSchemasPayFrequencyValue$.inboundSchema = exports.EmploymentSchemasPayFrequencyValue$inboundSchema;
    /** @deprecated use `EmploymentSchemasPayFrequencyValue$outboundSchema` instead. */
    EmploymentSchemasPayFrequencyValue$.outboundSchema = exports.EmploymentSchemasPayFrequencyValue$outboundSchema;
})(EmploymentSchemasPayFrequencyValue$ || (exports.EmploymentSchemasPayFrequencyValue$ = EmploymentSchemasPayFrequencyValue$ = {}));
/** @internal */
exports.EmploymentPayFrequency$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.EmploymentSchemasPayFrequency4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.EmploymentSchemasPayFrequencyValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.EmploymentPayFrequency$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.EmploymentSchemasPayFrequency4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.EmploymentSchemasPayFrequencyValue$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 EmploymentPayFrequency$;
(function (EmploymentPayFrequency$) {
    /** @deprecated use `EmploymentPayFrequency$inboundSchema` instead. */
    EmploymentPayFrequency$.inboundSchema = exports.EmploymentPayFrequency$inboundSchema;
    /** @deprecated use `EmploymentPayFrequency$outboundSchema` instead. */
    EmploymentPayFrequency$.outboundSchema = exports.EmploymentPayFrequency$outboundSchema;
})(EmploymentPayFrequency$ || (exports.EmploymentPayFrequency$ = EmploymentPayFrequency$ = {}));
/** @internal */
exports.EmploymentSchemasPayPeriod4$inboundSchema = z.object({});
/** @internal */
exports.EmploymentSchemasPayPeriod4$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 EmploymentSchemasPayPeriod4$;
(function (EmploymentSchemasPayPeriod4$) {
    /** @deprecated use `EmploymentSchemasPayPeriod4$inboundSchema` instead. */
    EmploymentSchemasPayPeriod4$.inboundSchema = exports.EmploymentSchemasPayPeriod4$inboundSchema;
    /** @deprecated use `EmploymentSchemasPayPeriod4$outboundSchema` instead. */
    EmploymentSchemasPayPeriod4$.outboundSchema = exports.EmploymentSchemasPayPeriod4$outboundSchema;
})(EmploymentSchemasPayPeriod4$ || (exports.EmploymentSchemasPayPeriod4$ = EmploymentSchemasPayPeriod4$ = {}));
/** @internal */
exports.EmploymentSchemasPayPeriodSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.EmploymentSchemasPayPeriod4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.EmploymentSchemasPayPeriodSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.EmploymentSchemasPayPeriod4$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 EmploymentSchemasPayPeriodSourceValue$;
(function (EmploymentSchemasPayPeriodSourceValue$) {
    /** @deprecated use `EmploymentSchemasPayPeriodSourceValue$inboundSchema` instead. */
    EmploymentSchemasPayPeriodSourceValue$.inboundSchema = exports.EmploymentSchemasPayPeriodSourceValue$inboundSchema;
    /** @deprecated use `EmploymentSchemasPayPeriodSourceValue$outboundSchema` instead. */
    EmploymentSchemasPayPeriodSourceValue$.outboundSchema = exports.EmploymentSchemasPayPeriodSourceValue$outboundSchema;
})(EmploymentSchemasPayPeriodSourceValue$ || (exports.EmploymentSchemasPayPeriodSourceValue$ = EmploymentSchemasPayPeriodSourceValue$ = {}));
/** @internal */
exports.EmploymentSchemasPayPeriodValue$inboundSchema = z
    .union([
    z.nativeEnum(EmploymentSchemasPayPeriodValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.EmploymentSchemasPayPeriodValue$outboundSchema = z.union([
    z.nativeEnum(EmploymentSchemasPayPeriodValue),
    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 EmploymentSchemasPayPeriodValue$;
(function (EmploymentSchemasPayPeriodValue$) {
    /** @deprecated use `EmploymentSchemasPayPeriodValue$inboundSchema` instead. */
    EmploymentSchemasPayPeriodValue$.inboundSchema = exports.EmploymentSchemasPayPeriodValue$inboundSchema;
    /** @deprecated use `EmploymentSchemasPayPeriodValue$outboundSchema` instead. */
    EmploymentSchemasPayPeriodValue$.outboundSchema = exports.EmploymentSchemasPayPeriodValue$outboundSchema;
})(EmploymentSchemasPayPeriodValue$ || (exports.EmploymentSchemasPayPeriodValue$ = EmploymentSchemasPayPeriodValue$ = {}));
/** @internal */
exports.EmploymentPayPeriod$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.EmploymentSchemasPayPeriod4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.EmploymentSchemasPayPeriodValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.EmploymentPayPeriod$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.EmploymentSchemasPayPeriod4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.EmploymentSchemasPayPeriodValue$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 EmploymentPayPeriod$;
(function (EmploymentPayPeriod$) {
    /** @deprecated use `EmploymentPayPeriod$inboundSchema` instead. */
    EmploymentPayPeriod$.inboundSchema = exports.EmploymentPayPeriod$inboundSchema;
    /** @deprecated use `EmploymentPayPeriod$outboundSchema` instead. */
    EmploymentPayPeriod$.outboundSchema = exports.EmploymentPayPeriod$outboundSchema;
})(EmploymentPayPeriod$ || (exports.EmploymentPayPeriod$ = EmploymentPayPeriod$ = {}));
/** @internal */
exports.Employment$inboundSchema = z.object({
    created_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    effective_date: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    employee_id: z.nullable(z.string()).optional(),
    employment_contract_type: z.nullable(z.lazy(() => exports.EmploymentEmploymentContractType$inboundSchema)).optional(),
    employment_type: z.nullable(z.lazy(() => exports.EmploymentEmploymentType$inboundSchema)).optional(),
    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.EmploymentPayFrequency$inboundSchema))
        .optional(),
    pay_period: z.nullable(z.lazy(() => exports.EmploymentPayPeriod$inboundSchema))
        .optional(),
    pay_rate: z.nullable(z.string()).optional(),
    remote_employee_id: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
    time_worked: z.nullable(z.string()).optional(),
    unified_custom_fields: z.nullable(z.record(z.any())).optional(),
    updated_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "created_at": "createdAt",
        "effective_date": "effectiveDate",
        "employee_id": "employeeId",
        "employment_contract_type": "employmentContractType",
        "employment_type": "employmentType",
        "job_title": "jobTitle",
        "pay_currency": "payCurrency",
        "pay_frequency": "payFrequency",
        "pay_period": "payPeriod",
        "pay_rate": "payRate",
        "remote_employee_id": "remoteEmployeeId",
        "remote_id": "remoteId",
        "time_worked": "timeWorked",
        "unified_custom_fields": "unifiedCustomFields",
        "updated_at": "updatedAt",
    });
});
/** @internal */
exports.Employment$outboundSchema = z.object({
    createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    effectiveDate: z.nullable(z.date().transform(v => v.toISOString()))
        .optional(),
    employeeId: z.nullable(z.string()).optional(),
    employmentContractType: z.nullable(z.lazy(() => exports.EmploymentEmploymentContractType$outboundSchema)).optional(),
    employmentType: z.nullable(z.lazy(() => exports.EmploymentEmploymentType$outboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    jobTitle: z.nullable(z.string()).optional(),
    payCurrency: z.nullable(z.string()).optional(),
    payFrequency: z.nullable(z.lazy(() => exports.EmploymentPayFrequency$outboundSchema))
        .optional(),
    payPeriod: z.nullable(z.lazy(() => exports.EmploymentPayPeriod$outboundSchema))
        .optional(),
    payRate: z.nullable(z.string()).optional(),
    remoteEmployeeId: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
    timeWorked: z.nullable(z.string()).optional(),
    unifiedCustomFields: z.nullable(z.record(z.any())).optional(),
    updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        createdAt: "created_at",
        effectiveDate: "effective_date",
        employeeId: "employee_id",
        employmentContractType: "employment_contract_type",
        employmentType: "employment_type",
        jobTitle: "job_title",
        payCurrency: "pay_currency",
        payFrequency: "pay_frequency",
        payPeriod: "pay_period",
        payRate: "pay_rate",
        remoteEmployeeId: "remote_employee_id",
        remoteId: "remote_id",
        timeWorked: "time_worked",
        unifiedCustomFields: "unified_custom_fields",
        updatedAt: "updated_at",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Employment$;
(function (Employment$) {
    /** @deprecated use `Employment$inboundSchema` instead. */
    Employment$.inboundSchema = exports.Employment$inboundSchema;
    /** @deprecated use `Employment$outboundSchema` instead. */
    Employment$.outboundSchema = exports.Employment$outboundSchema;
})(Employment$ || (exports.Employment$ = Employment$ = {}));
//# sourceMappingURL=employment.js.map