"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.hrisListEmployeeTimeOffPoliciesResponseFromJSON = exports.hrisListEmployeeTimeOffPoliciesResponseToJSON = exports.HrisListEmployeeTimeOffPoliciesResponse$ = exports.HrisListEmployeeTimeOffPoliciesResponse$outboundSchema = exports.HrisListEmployeeTimeOffPoliciesResponse$inboundSchema = exports.hrisListEmployeeTimeOffPoliciesRequestFromJSON = exports.hrisListEmployeeTimeOffPoliciesRequestToJSON = exports.HrisListEmployeeTimeOffPoliciesRequest$ = exports.HrisListEmployeeTimeOffPoliciesRequest$outboundSchema = exports.HrisListEmployeeTimeOffPoliciesRequest$inboundSchema = exports.hrisListEmployeeTimeOffPoliciesQueryParamFilterFromJSON = exports.hrisListEmployeeTimeOffPoliciesQueryParamFilterToJSON = exports.HrisListEmployeeTimeOffPoliciesQueryParamFilter$ = exports.HrisListEmployeeTimeOffPoliciesQueryParamFilter$outboundSchema = exports.HrisListEmployeeTimeOffPoliciesQueryParamFilter$inboundSchema = exports.Type$ = exports.Type$outboundSchema = exports.Type$inboundSchema = exports.Type = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const shared = __importStar(require("../shared/index.js"));
/**
 * Filter to select time-off policies by type
 */
var Type;
(function (Type) {
    Type["Sick"] = "sick";
    Type["UnmappedValue"] = "unmapped_value";
    Type["Vacation"] = "vacation";
    Type["LongTermDisability"] = "long_term_disability";
    Type["ShortTermDisability"] = "short_term_disability";
    Type["Absent"] = "absent";
    Type["CompTime"] = "comp_time";
    Type["Training"] = "training";
    Type["AnnualLeave"] = "annual_leave";
    Type["LeaveOfAbsence"] = "leave_of_absence";
    Type["Break"] = "break";
    Type["ChildCareLeave"] = "child_care_leave";
    Type["MaternityLeave"] = "maternity_leave";
    Type["JuryDuty"] = "jury_duty";
    Type["BereavementLeave"] = "bereavement_leave";
    Type["Sabbatical"] = "sabbatical";
    Type["Accident"] = "accident";
})(Type || (exports.Type = Type = {}));
/** @internal */
exports.Type$inboundSchema = z.nativeEnum(Type);
/** @internal */
exports.Type$outboundSchema = exports.Type$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Type$;
(function (Type$) {
    /** @deprecated use `Type$inboundSchema` instead. */
    Type$.inboundSchema = exports.Type$inboundSchema;
    /** @deprecated use `Type$outboundSchema` instead. */
    Type$.outboundSchema = exports.Type$outboundSchema;
})(Type$ || (exports.Type$ = Type$ = {}));
/** @internal */
exports.HrisListEmployeeTimeOffPoliciesQueryParamFilter$inboundSchema = z.object({
    type: z.nullable(exports.Type$inboundSchema).optional(),
    updated_after: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "updated_after": "updatedAfter",
    });
});
/** @internal */
exports.HrisListEmployeeTimeOffPoliciesQueryParamFilter$outboundSchema = z.object({
    type: z.nullable(exports.Type$outboundSchema).optional(),
    updatedAfter: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        updatedAfter: "updated_after",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisListEmployeeTimeOffPoliciesQueryParamFilter$;
(function (HrisListEmployeeTimeOffPoliciesQueryParamFilter$) {
    /** @deprecated use `HrisListEmployeeTimeOffPoliciesQueryParamFilter$inboundSchema` instead. */
    HrisListEmployeeTimeOffPoliciesQueryParamFilter$.inboundSchema = exports.HrisListEmployeeTimeOffPoliciesQueryParamFilter$inboundSchema;
    /** @deprecated use `HrisListEmployeeTimeOffPoliciesQueryParamFilter$outboundSchema` instead. */
    HrisListEmployeeTimeOffPoliciesQueryParamFilter$.outboundSchema = exports.HrisListEmployeeTimeOffPoliciesQueryParamFilter$outboundSchema;
})(HrisListEmployeeTimeOffPoliciesQueryParamFilter$ || (exports.HrisListEmployeeTimeOffPoliciesQueryParamFilter$ = HrisListEmployeeTimeOffPoliciesQueryParamFilter$ = {}));
function hrisListEmployeeTimeOffPoliciesQueryParamFilterToJSON(hrisListEmployeeTimeOffPoliciesQueryParamFilter) {
    return JSON.stringify(exports.HrisListEmployeeTimeOffPoliciesQueryParamFilter$outboundSchema.parse(hrisListEmployeeTimeOffPoliciesQueryParamFilter));
}
exports.hrisListEmployeeTimeOffPoliciesQueryParamFilterToJSON = hrisListEmployeeTimeOffPoliciesQueryParamFilterToJSON;
function hrisListEmployeeTimeOffPoliciesQueryParamFilterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisListEmployeeTimeOffPoliciesQueryParamFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisListEmployeeTimeOffPoliciesQueryParamFilter' from JSON`);
}
exports.hrisListEmployeeTimeOffPoliciesQueryParamFilterFromJSON = hrisListEmployeeTimeOffPoliciesQueryParamFilterFromJSON;
/** @internal */
exports.HrisListEmployeeTimeOffPoliciesRequest$inboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.HrisListEmployeeTimeOffPoliciesQueryParamFilter$inboundSchema)).optional(),
    id: z.string(),
    next: z.nullable(z.string()).optional(),
    page: z.nullable(z.string()).optional(),
    page_size: z.nullable(z.string()).optional(),
    proxy: z.nullable(z.record(z.any())).optional(),
    raw: z.nullable(z.boolean()).optional(),
    updated_after: z.nullable(z.string()).optional(),
    "x-account-id": z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "page_size": "pageSize",
        "updated_after": "updatedAfter",
        "x-account-id": "xAccountId",
    });
});
/** @internal */
exports.HrisListEmployeeTimeOffPoliciesRequest$outboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.HrisListEmployeeTimeOffPoliciesQueryParamFilter$outboundSchema)).optional(),
    id: z.string(),
    next: z.nullable(z.string()).optional(),
    page: z.nullable(z.string()).optional(),
    pageSize: z.nullable(z.string()).optional(),
    proxy: z.nullable(z.record(z.any())).optional(),
    raw: z.nullable(z.boolean()).optional(),
    updatedAfter: z.nullable(z.string()).optional(),
    xAccountId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        pageSize: "page_size",
        updatedAfter: "updated_after",
        xAccountId: "x-account-id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisListEmployeeTimeOffPoliciesRequest$;
(function (HrisListEmployeeTimeOffPoliciesRequest$) {
    /** @deprecated use `HrisListEmployeeTimeOffPoliciesRequest$inboundSchema` instead. */
    HrisListEmployeeTimeOffPoliciesRequest$.inboundSchema = exports.HrisListEmployeeTimeOffPoliciesRequest$inboundSchema;
    /** @deprecated use `HrisListEmployeeTimeOffPoliciesRequest$outboundSchema` instead. */
    HrisListEmployeeTimeOffPoliciesRequest$.outboundSchema = exports.HrisListEmployeeTimeOffPoliciesRequest$outboundSchema;
})(HrisListEmployeeTimeOffPoliciesRequest$ || (exports.HrisListEmployeeTimeOffPoliciesRequest$ = HrisListEmployeeTimeOffPoliciesRequest$ = {}));
function hrisListEmployeeTimeOffPoliciesRequestToJSON(hrisListEmployeeTimeOffPoliciesRequest) {
    return JSON.stringify(exports.HrisListEmployeeTimeOffPoliciesRequest$outboundSchema.parse(hrisListEmployeeTimeOffPoliciesRequest));
}
exports.hrisListEmployeeTimeOffPoliciesRequestToJSON = hrisListEmployeeTimeOffPoliciesRequestToJSON;
function hrisListEmployeeTimeOffPoliciesRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisListEmployeeTimeOffPoliciesRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisListEmployeeTimeOffPoliciesRequest' from JSON`);
}
exports.hrisListEmployeeTimeOffPoliciesRequestFromJSON = hrisListEmployeeTimeOffPoliciesRequestFromJSON;
/** @internal */
exports.HrisListEmployeeTimeOffPoliciesResponse$inboundSchema = z.object({
    ContentType: z.string(),
    Headers: z.record(z.array(z.string())),
    StatusCode: z.number().int(),
    RawResponse: z.instanceof(Response),
    TimeOffPoliciesPaginated: shared.TimeOffPoliciesPaginated$inboundSchema
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "ContentType": "contentType",
        "Headers": "headers",
        "StatusCode": "statusCode",
        "RawResponse": "rawResponse",
        "TimeOffPoliciesPaginated": "timeOffPoliciesPaginated",
    });
});
/** @internal */
exports.HrisListEmployeeTimeOffPoliciesResponse$outboundSchema = z.object({
    contentType: z.string(),
    headers: z.record(z.array(z.string())),
    statusCode: z.number().int(),
    rawResponse: z.instanceof(Response).transform(() => {
        throw new Error("Response cannot be serialized");
    }),
    timeOffPoliciesPaginated: shared.TimeOffPoliciesPaginated$outboundSchema
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contentType: "ContentType",
        headers: "Headers",
        statusCode: "StatusCode",
        rawResponse: "RawResponse",
        timeOffPoliciesPaginated: "TimeOffPoliciesPaginated",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisListEmployeeTimeOffPoliciesResponse$;
(function (HrisListEmployeeTimeOffPoliciesResponse$) {
    /** @deprecated use `HrisListEmployeeTimeOffPoliciesResponse$inboundSchema` instead. */
    HrisListEmployeeTimeOffPoliciesResponse$.inboundSchema = exports.HrisListEmployeeTimeOffPoliciesResponse$inboundSchema;
    /** @deprecated use `HrisListEmployeeTimeOffPoliciesResponse$outboundSchema` instead. */
    HrisListEmployeeTimeOffPoliciesResponse$.outboundSchema = exports.HrisListEmployeeTimeOffPoliciesResponse$outboundSchema;
})(HrisListEmployeeTimeOffPoliciesResponse$ || (exports.HrisListEmployeeTimeOffPoliciesResponse$ = HrisListEmployeeTimeOffPoliciesResponse$ = {}));
function hrisListEmployeeTimeOffPoliciesResponseToJSON(hrisListEmployeeTimeOffPoliciesResponse) {
    return JSON.stringify(exports.HrisListEmployeeTimeOffPoliciesResponse$outboundSchema.parse(hrisListEmployeeTimeOffPoliciesResponse));
}
exports.hrisListEmployeeTimeOffPoliciesResponseToJSON = hrisListEmployeeTimeOffPoliciesResponseToJSON;
function hrisListEmployeeTimeOffPoliciesResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisListEmployeeTimeOffPoliciesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisListEmployeeTimeOffPoliciesResponse' from JSON`);
}
exports.hrisListEmployeeTimeOffPoliciesResponseFromJSON = hrisListEmployeeTimeOffPoliciesResponseFromJSON;
//# sourceMappingURL=hrislistemployeetimeoffpolicies.js.map