"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.HRISLocation$inboundSchema = exports.HRISLocationLocationType$inboundSchema = exports.HRISLocationSchemasValue$inboundSchema = exports.HRISLocationSchemasSourceValue$inboundSchema = exports.HRISLocationSchemas4$inboundSchema = exports.HRISLocationCountry$inboundSchema = exports.HRISLocationValue$inboundSchema = exports.HRISLocationSourceValue$inboundSchema = exports.HRISLocation4$inboundSchema = exports.HRISLocationSchemasValue = exports.HRISLocationValue = void 0;
exports.hrisLocation4FromJSON = hrisLocation4FromJSON;
exports.hrisLocationSourceValueFromJSON = hrisLocationSourceValueFromJSON;
exports.hrisLocationCountryFromJSON = hrisLocationCountryFromJSON;
exports.hrisLocationSchemas4FromJSON = hrisLocationSchemas4FromJSON;
exports.hrisLocationSchemasSourceValueFromJSON = hrisLocationSchemasSourceValueFromJSON;
exports.hrisLocationLocationTypeFromJSON = hrisLocationLocationTypeFromJSON;
exports.hrisLocationFromJSON = hrisLocationFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const openEnums = __importStar(require("../../types/enums.js"));
/**
 * The ISO3166-1 Alpha2 Code of the Country
 */
var HRISLocationValue;
(function (HRISLocationValue) {
    HRISLocationValue["Af"] = "AF";
    HRISLocationValue["Al"] = "AL";
    HRISLocationValue["Dz"] = "DZ";
    HRISLocationValue["As"] = "AS";
    HRISLocationValue["Ad"] = "AD";
    HRISLocationValue["Ao"] = "AO";
    HRISLocationValue["Ai"] = "AI";
    HRISLocationValue["Aq"] = "AQ";
    HRISLocationValue["Ag"] = "AG";
    HRISLocationValue["Ar"] = "AR";
    HRISLocationValue["Am"] = "AM";
    HRISLocationValue["Aw"] = "AW";
    HRISLocationValue["Au"] = "AU";
    HRISLocationValue["At"] = "AT";
    HRISLocationValue["Az"] = "AZ";
    HRISLocationValue["Bs"] = "BS";
    HRISLocationValue["Bh"] = "BH";
    HRISLocationValue["Bd"] = "BD";
    HRISLocationValue["Bb"] = "BB";
    HRISLocationValue["By"] = "BY";
    HRISLocationValue["Be"] = "BE";
    HRISLocationValue["Bz"] = "BZ";
    HRISLocationValue["Bj"] = "BJ";
    HRISLocationValue["Bm"] = "BM";
    HRISLocationValue["Bt"] = "BT";
    HRISLocationValue["Bo"] = "BO";
    HRISLocationValue["Bq"] = "BQ";
    HRISLocationValue["Ba"] = "BA";
    HRISLocationValue["Bw"] = "BW";
    HRISLocationValue["Bv"] = "BV";
    HRISLocationValue["Br"] = "BR";
    HRISLocationValue["Io"] = "IO";
    HRISLocationValue["Bn"] = "BN";
    HRISLocationValue["Bg"] = "BG";
    HRISLocationValue["Bf"] = "BF";
    HRISLocationValue["Bi"] = "BI";
    HRISLocationValue["Kh"] = "KH";
    HRISLocationValue["Cm"] = "CM";
    HRISLocationValue["Ca"] = "CA";
    HRISLocationValue["Cv"] = "CV";
    HRISLocationValue["Ky"] = "KY";
    HRISLocationValue["Cf"] = "CF";
    HRISLocationValue["Td"] = "TD";
    HRISLocationValue["Cl"] = "CL";
    HRISLocationValue["Cn"] = "CN";
    HRISLocationValue["Cx"] = "CX";
    HRISLocationValue["Cc"] = "CC";
    HRISLocationValue["Co"] = "CO";
    HRISLocationValue["Km"] = "KM";
    HRISLocationValue["Cg"] = "CG";
    HRISLocationValue["Cd"] = "CD";
    HRISLocationValue["Ck"] = "CK";
    HRISLocationValue["Cr"] = "CR";
    HRISLocationValue["Hr"] = "HR";
    HRISLocationValue["Cu"] = "CU";
    HRISLocationValue["Cw"] = "CW";
    HRISLocationValue["Cy"] = "CY";
    HRISLocationValue["Cz"] = "CZ";
    HRISLocationValue["Ci"] = "CI";
    HRISLocationValue["Dk"] = "DK";
    HRISLocationValue["Dj"] = "DJ";
    HRISLocationValue["Dm"] = "DM";
    HRISLocationValue["Do"] = "DO";
    HRISLocationValue["Ec"] = "EC";
    HRISLocationValue["Eg"] = "EG";
    HRISLocationValue["Sv"] = "SV";
    HRISLocationValue["Gq"] = "GQ";
    HRISLocationValue["Er"] = "ER";
    HRISLocationValue["Ee"] = "EE";
    HRISLocationValue["Et"] = "ET";
    HRISLocationValue["Fk"] = "FK";
    HRISLocationValue["Fo"] = "FO";
    HRISLocationValue["Fj"] = "FJ";
    HRISLocationValue["Fi"] = "FI";
    HRISLocationValue["Fr"] = "FR";
    HRISLocationValue["Gf"] = "GF";
    HRISLocationValue["Pf"] = "PF";
    HRISLocationValue["Tf"] = "TF";
    HRISLocationValue["Ga"] = "GA";
    HRISLocationValue["Gm"] = "GM";
    HRISLocationValue["Ge"] = "GE";
    HRISLocationValue["De"] = "DE";
    HRISLocationValue["Gh"] = "GH";
    HRISLocationValue["Gi"] = "GI";
    HRISLocationValue["Gr"] = "GR";
    HRISLocationValue["Gl"] = "GL";
    HRISLocationValue["Gd"] = "GD";
    HRISLocationValue["Gp"] = "GP";
    HRISLocationValue["Gu"] = "GU";
    HRISLocationValue["Gt"] = "GT";
    HRISLocationValue["Gg"] = "GG";
    HRISLocationValue["Gn"] = "GN";
    HRISLocationValue["Gw"] = "GW";
    HRISLocationValue["Gy"] = "GY";
    HRISLocationValue["Ht"] = "HT";
    HRISLocationValue["Hm"] = "HM";
    HRISLocationValue["Va"] = "VA";
    HRISLocationValue["Hn"] = "HN";
    HRISLocationValue["Hk"] = "HK";
    HRISLocationValue["Hu"] = "HU";
    HRISLocationValue["Is"] = "IS";
    HRISLocationValue["In"] = "IN";
    HRISLocationValue["Id"] = "ID";
    HRISLocationValue["Ir"] = "IR";
    HRISLocationValue["Iq"] = "IQ";
    HRISLocationValue["Ie"] = "IE";
    HRISLocationValue["Im"] = "IM";
    HRISLocationValue["Il"] = "IL";
    HRISLocationValue["It"] = "IT";
    HRISLocationValue["Jm"] = "JM";
    HRISLocationValue["Jp"] = "JP";
    HRISLocationValue["Je"] = "JE";
    HRISLocationValue["Jo"] = "JO";
    HRISLocationValue["Kz"] = "KZ";
    HRISLocationValue["Ke"] = "KE";
    HRISLocationValue["Ki"] = "KI";
    HRISLocationValue["Kp"] = "KP";
    HRISLocationValue["Kr"] = "KR";
    HRISLocationValue["Kw"] = "KW";
    HRISLocationValue["Kg"] = "KG";
    HRISLocationValue["La"] = "LA";
    HRISLocationValue["Lv"] = "LV";
    HRISLocationValue["Lb"] = "LB";
    HRISLocationValue["Ls"] = "LS";
    HRISLocationValue["Lr"] = "LR";
    HRISLocationValue["Ly"] = "LY";
    HRISLocationValue["Li"] = "LI";
    HRISLocationValue["Lt"] = "LT";
    HRISLocationValue["Lu"] = "LU";
    HRISLocationValue["Mo"] = "MO";
    HRISLocationValue["Mk"] = "MK";
    HRISLocationValue["Mg"] = "MG";
    HRISLocationValue["Mw"] = "MW";
    HRISLocationValue["My"] = "MY";
    HRISLocationValue["Mv"] = "MV";
    HRISLocationValue["Ml"] = "ML";
    HRISLocationValue["Mt"] = "MT";
    HRISLocationValue["Mh"] = "MH";
    HRISLocationValue["Mq"] = "MQ";
    HRISLocationValue["Mr"] = "MR";
    HRISLocationValue["Mu"] = "MU";
    HRISLocationValue["Yt"] = "YT";
    HRISLocationValue["Mx"] = "MX";
    HRISLocationValue["Fm"] = "FM";
    HRISLocationValue["Md"] = "MD";
    HRISLocationValue["Mc"] = "MC";
    HRISLocationValue["Mn"] = "MN";
    HRISLocationValue["Me"] = "ME";
    HRISLocationValue["Ms"] = "MS";
    HRISLocationValue["Ma"] = "MA";
    HRISLocationValue["Mz"] = "MZ";
    HRISLocationValue["Mm"] = "MM";
    HRISLocationValue["Na"] = "NA";
    HRISLocationValue["Nr"] = "NR";
    HRISLocationValue["Np"] = "NP";
    HRISLocationValue["Nl"] = "NL";
    HRISLocationValue["Nc"] = "NC";
    HRISLocationValue["Nz"] = "NZ";
    HRISLocationValue["Ni"] = "NI";
    HRISLocationValue["Ne"] = "NE";
    HRISLocationValue["Ng"] = "NG";
    HRISLocationValue["Nu"] = "NU";
    HRISLocationValue["Nf"] = "NF";
    HRISLocationValue["Mp"] = "MP";
    HRISLocationValue["No"] = "NO";
    HRISLocationValue["Om"] = "OM";
    HRISLocationValue["Pk"] = "PK";
    HRISLocationValue["Pw"] = "PW";
    HRISLocationValue["Ps"] = "PS";
    HRISLocationValue["Pa"] = "PA";
    HRISLocationValue["Pg"] = "PG";
    HRISLocationValue["Py"] = "PY";
    HRISLocationValue["Pe"] = "PE";
    HRISLocationValue["Ph"] = "PH";
    HRISLocationValue["Pn"] = "PN";
    HRISLocationValue["Pl"] = "PL";
    HRISLocationValue["Pt"] = "PT";
    HRISLocationValue["Pr"] = "PR";
    HRISLocationValue["Qa"] = "QA";
    HRISLocationValue["Ro"] = "RO";
    HRISLocationValue["Ru"] = "RU";
    HRISLocationValue["Rw"] = "RW";
    HRISLocationValue["Re"] = "RE";
    HRISLocationValue["Bl"] = "BL";
    HRISLocationValue["Sh"] = "SH";
    HRISLocationValue["Kn"] = "KN";
    HRISLocationValue["Lc"] = "LC";
    HRISLocationValue["Mf"] = "MF";
    HRISLocationValue["Pm"] = "PM";
    HRISLocationValue["Vc"] = "VC";
    HRISLocationValue["Ws"] = "WS";
    HRISLocationValue["Sm"] = "SM";
    HRISLocationValue["St"] = "ST";
    HRISLocationValue["Sa"] = "SA";
    HRISLocationValue["Sn"] = "SN";
    HRISLocationValue["Rs"] = "RS";
    HRISLocationValue["Sc"] = "SC";
    HRISLocationValue["Sl"] = "SL";
    HRISLocationValue["Sg"] = "SG";
    HRISLocationValue["Sx"] = "SX";
    HRISLocationValue["Sk"] = "SK";
    HRISLocationValue["Si"] = "SI";
    HRISLocationValue["Sb"] = "SB";
    HRISLocationValue["So"] = "SO";
    HRISLocationValue["Za"] = "ZA";
    HRISLocationValue["Gs"] = "GS";
    HRISLocationValue["Ss"] = "SS";
    HRISLocationValue["Es"] = "ES";
    HRISLocationValue["Lk"] = "LK";
    HRISLocationValue["Sd"] = "SD";
    HRISLocationValue["Sr"] = "SR";
    HRISLocationValue["Sj"] = "SJ";
    HRISLocationValue["Sz"] = "SZ";
    HRISLocationValue["Se"] = "SE";
    HRISLocationValue["Ch"] = "CH";
    HRISLocationValue["Sy"] = "SY";
    HRISLocationValue["Tw"] = "TW";
    HRISLocationValue["Tj"] = "TJ";
    HRISLocationValue["Tz"] = "TZ";
    HRISLocationValue["Th"] = "TH";
    HRISLocationValue["Tl"] = "TL";
    HRISLocationValue["Tg"] = "TG";
    HRISLocationValue["Tk"] = "TK";
    HRISLocationValue["To"] = "TO";
    HRISLocationValue["Tt"] = "TT";
    HRISLocationValue["Tn"] = "TN";
    HRISLocationValue["Tr"] = "TR";
    HRISLocationValue["Tm"] = "TM";
    HRISLocationValue["Tc"] = "TC";
    HRISLocationValue["Tv"] = "TV";
    HRISLocationValue["Ug"] = "UG";
    HRISLocationValue["Ua"] = "UA";
    HRISLocationValue["Ae"] = "AE";
    HRISLocationValue["Gb"] = "GB";
    HRISLocationValue["Us"] = "US";
    HRISLocationValue["Um"] = "UM";
    HRISLocationValue["Uy"] = "UY";
    HRISLocationValue["Uz"] = "UZ";
    HRISLocationValue["Vu"] = "VU";
    HRISLocationValue["Ve"] = "VE";
    HRISLocationValue["Vn"] = "VN";
    HRISLocationValue["Vg"] = "VG";
    HRISLocationValue["Vi"] = "VI";
    HRISLocationValue["Wf"] = "WF";
    HRISLocationValue["Eh"] = "EH";
    HRISLocationValue["Ye"] = "YE";
    HRISLocationValue["Zm"] = "ZM";
    HRISLocationValue["Zw"] = "ZW";
    HRISLocationValue["UnmappedValue"] = "unmapped_value";
})(HRISLocationValue || (exports.HRISLocationValue = HRISLocationValue = {}));
/**
 * The type of the location.
 */
var HRISLocationSchemasValue;
(function (HRISLocationSchemasValue) {
    HRISLocationSchemasValue["Home"] = "home";
    HRISLocationSchemasValue["Work"] = "work";
    HRISLocationSchemasValue["UnmappedValue"] = "unmapped_value";
})(HRISLocationSchemasValue || (exports.HRISLocationSchemasValue = HRISLocationSchemasValue = {}));
/** @internal */
exports.HRISLocation4$inboundSchema = z.object({});
function hrisLocation4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HRISLocation4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HRISLocation4' from JSON`);
}
/** @internal */
exports.HRISLocationSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HRISLocation4$inboundSchema),
    z.array(z.any()),
]);
function hrisLocationSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HRISLocationSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HRISLocationSourceValue' from JSON`);
}
/** @internal */
exports.HRISLocationValue$inboundSchema = openEnums.inboundSchema(HRISLocationValue);
/** @internal */
exports.HRISLocationCountry$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HRISLocation4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HRISLocationValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
function hrisLocationCountryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HRISLocationCountry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HRISLocationCountry' from JSON`);
}
/** @internal */
exports.HRISLocationSchemas4$inboundSchema = z.object({});
function hrisLocationSchemas4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HRISLocationSchemas4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HRISLocationSchemas4' from JSON`);
}
/** @internal */
exports.HRISLocationSchemasSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.HRISLocationSchemas4$inboundSchema),
    z.array(z.any()),
]);
function hrisLocationSchemasSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HRISLocationSchemasSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HRISLocationSchemasSourceValue' from JSON`);
}
/** @internal */
exports.HRISLocationSchemasValue$inboundSchema = openEnums.inboundSchema(HRISLocationSchemasValue);
/** @internal */
exports.HRISLocationLocationType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.HRISLocationSchemas4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.HRISLocationSchemasValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
function hrisLocationLocationTypeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HRISLocationLocationType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HRISLocationLocationType' from JSON`);
}
/** @internal */
exports.HRISLocation$inboundSchema = z.object({
    city: z.nullable(z.string()).optional(),
    country: z.nullable(z.lazy(() => exports.HRISLocationCountry$inboundSchema))
        .optional(),
    created_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    employee_id: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    location_type: z.nullable(z.lazy(() => exports.HRISLocationLocationType$inboundSchema)).optional(),
    name: z.nullable(z.string()).optional(),
    phone_number: z.nullable(z.string()).optional(),
    remote_employee_id: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
    state: z.nullable(z.string()).optional(),
    street_1: z.nullable(z.string()).optional(),
    street_2: 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(),
    zip_code: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "created_at": "createdAt",
        "employee_id": "employeeId",
        "location_type": "locationType",
        "phone_number": "phoneNumber",
        "remote_employee_id": "remoteEmployeeId",
        "remote_id": "remoteId",
        "street_1": "street1",
        "street_2": "street2",
        "unified_custom_fields": "unifiedCustomFields",
        "updated_at": "updatedAt",
        "zip_code": "zipCode",
    });
});
function hrisLocationFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HRISLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HRISLocation' from JSON`);
}
//# sourceMappingURL=hrislocation.js.map