"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.hrisListEmployeeTimeOffBalancesResponseFromJSON = exports.hrisListEmployeeTimeOffBalancesResponseToJSON = exports.HrisListEmployeeTimeOffBalancesResponse$ = exports.HrisListEmployeeTimeOffBalancesResponse$outboundSchema = exports.HrisListEmployeeTimeOffBalancesResponse$inboundSchema = exports.hrisListEmployeeTimeOffBalancesRequestFromJSON = exports.hrisListEmployeeTimeOffBalancesRequestToJSON = exports.HrisListEmployeeTimeOffBalancesRequest$ = exports.HrisListEmployeeTimeOffBalancesRequest$outboundSchema = exports.HrisListEmployeeTimeOffBalancesRequest$inboundSchema = exports.hrisListEmployeeTimeOffBalancesQueryParamFilterFromJSON = exports.hrisListEmployeeTimeOffBalancesQueryParamFilterToJSON = exports.HrisListEmployeeTimeOffBalancesQueryParamFilter$ = exports.HrisListEmployeeTimeOffBalancesQueryParamFilter$outboundSchema = exports.HrisListEmployeeTimeOffBalancesQueryParamFilter$inboundSchema = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const shared = __importStar(require("../shared/index.js"));
/** @internal */
exports.HrisListEmployeeTimeOffBalancesQueryParamFilter$inboundSchema = z.object({
    policy_ids: z.nullable(z.array(z.string())).optional(),
    updated_after: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "policy_ids": "policyIds",
        "updated_after": "updatedAfter",
    });
});
/** @internal */
exports.HrisListEmployeeTimeOffBalancesQueryParamFilter$outboundSchema = z.object({
    policyIds: z.nullable(z.array(z.string())).optional(),
    updatedAfter: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        policyIds: "policy_ids",
        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 HrisListEmployeeTimeOffBalancesQueryParamFilter$;
(function (HrisListEmployeeTimeOffBalancesQueryParamFilter$) {
    /** @deprecated use `HrisListEmployeeTimeOffBalancesQueryParamFilter$inboundSchema` instead. */
    HrisListEmployeeTimeOffBalancesQueryParamFilter$.inboundSchema = exports.HrisListEmployeeTimeOffBalancesQueryParamFilter$inboundSchema;
    /** @deprecated use `HrisListEmployeeTimeOffBalancesQueryParamFilter$outboundSchema` instead. */
    HrisListEmployeeTimeOffBalancesQueryParamFilter$.outboundSchema = exports.HrisListEmployeeTimeOffBalancesQueryParamFilter$outboundSchema;
})(HrisListEmployeeTimeOffBalancesQueryParamFilter$ || (exports.HrisListEmployeeTimeOffBalancesQueryParamFilter$ = HrisListEmployeeTimeOffBalancesQueryParamFilter$ = {}));
function hrisListEmployeeTimeOffBalancesQueryParamFilterToJSON(hrisListEmployeeTimeOffBalancesQueryParamFilter) {
    return JSON.stringify(exports.HrisListEmployeeTimeOffBalancesQueryParamFilter$outboundSchema.parse(hrisListEmployeeTimeOffBalancesQueryParamFilter));
}
exports.hrisListEmployeeTimeOffBalancesQueryParamFilterToJSON = hrisListEmployeeTimeOffBalancesQueryParamFilterToJSON;
function hrisListEmployeeTimeOffBalancesQueryParamFilterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisListEmployeeTimeOffBalancesQueryParamFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisListEmployeeTimeOffBalancesQueryParamFilter' from JSON`);
}
exports.hrisListEmployeeTimeOffBalancesQueryParamFilterFromJSON = hrisListEmployeeTimeOffBalancesQueryParamFilterFromJSON;
/** @internal */
exports.HrisListEmployeeTimeOffBalancesRequest$inboundSchema = z.object({
    expand: z.nullable(z.string()).optional(),
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.HrisListEmployeeTimeOffBalancesQueryParamFilter$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.HrisListEmployeeTimeOffBalancesRequest$outboundSchema = z.object({
    expand: z.nullable(z.string()).optional(),
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.HrisListEmployeeTimeOffBalancesQueryParamFilter$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 HrisListEmployeeTimeOffBalancesRequest$;
(function (HrisListEmployeeTimeOffBalancesRequest$) {
    /** @deprecated use `HrisListEmployeeTimeOffBalancesRequest$inboundSchema` instead. */
    HrisListEmployeeTimeOffBalancesRequest$.inboundSchema = exports.HrisListEmployeeTimeOffBalancesRequest$inboundSchema;
    /** @deprecated use `HrisListEmployeeTimeOffBalancesRequest$outboundSchema` instead. */
    HrisListEmployeeTimeOffBalancesRequest$.outboundSchema = exports.HrisListEmployeeTimeOffBalancesRequest$outboundSchema;
})(HrisListEmployeeTimeOffBalancesRequest$ || (exports.HrisListEmployeeTimeOffBalancesRequest$ = HrisListEmployeeTimeOffBalancesRequest$ = {}));
function hrisListEmployeeTimeOffBalancesRequestToJSON(hrisListEmployeeTimeOffBalancesRequest) {
    return JSON.stringify(exports.HrisListEmployeeTimeOffBalancesRequest$outboundSchema.parse(hrisListEmployeeTimeOffBalancesRequest));
}
exports.hrisListEmployeeTimeOffBalancesRequestToJSON = hrisListEmployeeTimeOffBalancesRequestToJSON;
function hrisListEmployeeTimeOffBalancesRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisListEmployeeTimeOffBalancesRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisListEmployeeTimeOffBalancesRequest' from JSON`);
}
exports.hrisListEmployeeTimeOffBalancesRequestFromJSON = hrisListEmployeeTimeOffBalancesRequestFromJSON;
/** @internal */
exports.HrisListEmployeeTimeOffBalancesResponse$inboundSchema = z.object({
    ContentType: z.string(),
    Headers: z.record(z.array(z.string())),
    StatusCode: z.number().int(),
    RawResponse: z.instanceof(Response),
    TimeOffBalancesPaginated: shared.TimeOffBalancesPaginated$inboundSchema
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "ContentType": "contentType",
        "Headers": "headers",
        "StatusCode": "statusCode",
        "RawResponse": "rawResponse",
        "TimeOffBalancesPaginated": "timeOffBalancesPaginated",
    });
});
/** @internal */
exports.HrisListEmployeeTimeOffBalancesResponse$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");
    }),
    timeOffBalancesPaginated: shared.TimeOffBalancesPaginated$outboundSchema
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contentType: "ContentType",
        headers: "Headers",
        statusCode: "StatusCode",
        rawResponse: "RawResponse",
        timeOffBalancesPaginated: "TimeOffBalancesPaginated",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisListEmployeeTimeOffBalancesResponse$;
(function (HrisListEmployeeTimeOffBalancesResponse$) {
    /** @deprecated use `HrisListEmployeeTimeOffBalancesResponse$inboundSchema` instead. */
    HrisListEmployeeTimeOffBalancesResponse$.inboundSchema = exports.HrisListEmployeeTimeOffBalancesResponse$inboundSchema;
    /** @deprecated use `HrisListEmployeeTimeOffBalancesResponse$outboundSchema` instead. */
    HrisListEmployeeTimeOffBalancesResponse$.outboundSchema = exports.HrisListEmployeeTimeOffBalancesResponse$outboundSchema;
})(HrisListEmployeeTimeOffBalancesResponse$ || (exports.HrisListEmployeeTimeOffBalancesResponse$ = HrisListEmployeeTimeOffBalancesResponse$ = {}));
function hrisListEmployeeTimeOffBalancesResponseToJSON(hrisListEmployeeTimeOffBalancesResponse) {
    return JSON.stringify(exports.HrisListEmployeeTimeOffBalancesResponse$outboundSchema.parse(hrisListEmployeeTimeOffBalancesResponse));
}
exports.hrisListEmployeeTimeOffBalancesResponseToJSON = hrisListEmployeeTimeOffBalancesResponseToJSON;
function hrisListEmployeeTimeOffBalancesResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisListEmployeeTimeOffBalancesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisListEmployeeTimeOffBalancesResponse' from JSON`);
}
exports.hrisListEmployeeTimeOffBalancesResponseFromJSON = hrisListEmployeeTimeOffBalancesResponseFromJSON;
//# sourceMappingURL=hrislistemployeetimeoffbalances.js.map