"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.hrisListTimeOffRequestsResponseFromJSON = exports.hrisListTimeOffRequestsResponseToJSON = exports.HrisListTimeOffRequestsResponse$ = exports.HrisListTimeOffRequestsResponse$outboundSchema = exports.HrisListTimeOffRequestsResponse$inboundSchema = exports.hrisListTimeOffRequestsRequestFromJSON = exports.hrisListTimeOffRequestsRequestToJSON = exports.HrisListTimeOffRequestsRequest$ = exports.HrisListTimeOffRequestsRequest$outboundSchema = exports.HrisListTimeOffRequestsRequest$inboundSchema = exports.hrisListTimeOffRequestsQueryParamFilterFromJSON = exports.hrisListTimeOffRequestsQueryParamFilterToJSON = exports.HrisListTimeOffRequestsQueryParamFilter$ = exports.HrisListTimeOffRequestsQueryParamFilter$outboundSchema = exports.HrisListTimeOffRequestsQueryParamFilter$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.HrisListTimeOffRequestsQueryParamFilter$inboundSchema = z.object({
    type: z.nullable(z.array(z.string())).optional(),
    updated_after: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "updated_after": "updatedAfter",
    });
});
/** @internal */
exports.HrisListTimeOffRequestsQueryParamFilter$outboundSchema = z.object({
    type: z.nullable(z.array(z.string())).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 HrisListTimeOffRequestsQueryParamFilter$;
(function (HrisListTimeOffRequestsQueryParamFilter$) {
    /** @deprecated use `HrisListTimeOffRequestsQueryParamFilter$inboundSchema` instead. */
    HrisListTimeOffRequestsQueryParamFilter$.inboundSchema = exports.HrisListTimeOffRequestsQueryParamFilter$inboundSchema;
    /** @deprecated use `HrisListTimeOffRequestsQueryParamFilter$outboundSchema` instead. */
    HrisListTimeOffRequestsQueryParamFilter$.outboundSchema = exports.HrisListTimeOffRequestsQueryParamFilter$outboundSchema;
})(HrisListTimeOffRequestsQueryParamFilter$ || (exports.HrisListTimeOffRequestsQueryParamFilter$ = HrisListTimeOffRequestsQueryParamFilter$ = {}));
function hrisListTimeOffRequestsQueryParamFilterToJSON(hrisListTimeOffRequestsQueryParamFilter) {
    return JSON.stringify(exports.HrisListTimeOffRequestsQueryParamFilter$outboundSchema.parse(hrisListTimeOffRequestsQueryParamFilter));
}
exports.hrisListTimeOffRequestsQueryParamFilterToJSON = hrisListTimeOffRequestsQueryParamFilterToJSON;
function hrisListTimeOffRequestsQueryParamFilterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisListTimeOffRequestsQueryParamFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisListTimeOffRequestsQueryParamFilter' from JSON`);
}
exports.hrisListTimeOffRequestsQueryParamFilterFromJSON = hrisListTimeOffRequestsQueryParamFilterFromJSON;
/** @internal */
exports.HrisListTimeOffRequestsRequest$inboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.HrisListTimeOffRequestsQueryParamFilter$inboundSchema)).optional(),
    next: z.nullable(z.string()).optional(),
    page: z.nullable(z.string()).optional(),
    page_size: z.nullable(z.string().default("25")),
    proxy: z.nullable(z.record(z.any())).optional(),
    raw: z.nullable(z.boolean().default(false)),
    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.HrisListTimeOffRequestsRequest$outboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.HrisListTimeOffRequestsQueryParamFilter$outboundSchema)).optional(),
    next: z.nullable(z.string()).optional(),
    page: z.nullable(z.string()).optional(),
    pageSize: z.nullable(z.string().default("25")),
    proxy: z.nullable(z.record(z.any())).optional(),
    raw: z.nullable(z.boolean().default(false)),
    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 HrisListTimeOffRequestsRequest$;
(function (HrisListTimeOffRequestsRequest$) {
    /** @deprecated use `HrisListTimeOffRequestsRequest$inboundSchema` instead. */
    HrisListTimeOffRequestsRequest$.inboundSchema = exports.HrisListTimeOffRequestsRequest$inboundSchema;
    /** @deprecated use `HrisListTimeOffRequestsRequest$outboundSchema` instead. */
    HrisListTimeOffRequestsRequest$.outboundSchema = exports.HrisListTimeOffRequestsRequest$outboundSchema;
})(HrisListTimeOffRequestsRequest$ || (exports.HrisListTimeOffRequestsRequest$ = HrisListTimeOffRequestsRequest$ = {}));
function hrisListTimeOffRequestsRequestToJSON(hrisListTimeOffRequestsRequest) {
    return JSON.stringify(exports.HrisListTimeOffRequestsRequest$outboundSchema.parse(hrisListTimeOffRequestsRequest));
}
exports.hrisListTimeOffRequestsRequestToJSON = hrisListTimeOffRequestsRequestToJSON;
function hrisListTimeOffRequestsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisListTimeOffRequestsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisListTimeOffRequestsRequest' from JSON`);
}
exports.hrisListTimeOffRequestsRequestFromJSON = hrisListTimeOffRequestsRequestFromJSON;
/** @internal */
exports.HrisListTimeOffRequestsResponse$inboundSchema = z.object({
    ContentType: z.string(),
    Headers: z.record(z.array(z.string())),
    StatusCode: z.number().int(),
    RawResponse: z.instanceof(Response),
    TimeOffPaginated: shared.TimeOffPaginated$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "ContentType": "contentType",
        "Headers": "headers",
        "StatusCode": "statusCode",
        "RawResponse": "rawResponse",
        "TimeOffPaginated": "timeOffPaginated",
    });
});
/** @internal */
exports.HrisListTimeOffRequestsResponse$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");
    }),
    timeOffPaginated: shared.TimeOffPaginated$outboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contentType: "ContentType",
        headers: "Headers",
        statusCode: "StatusCode",
        rawResponse: "RawResponse",
        timeOffPaginated: "TimeOffPaginated",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisListTimeOffRequestsResponse$;
(function (HrisListTimeOffRequestsResponse$) {
    /** @deprecated use `HrisListTimeOffRequestsResponse$inboundSchema` instead. */
    HrisListTimeOffRequestsResponse$.inboundSchema = exports.HrisListTimeOffRequestsResponse$inboundSchema;
    /** @deprecated use `HrisListTimeOffRequestsResponse$outboundSchema` instead. */
    HrisListTimeOffRequestsResponse$.outboundSchema = exports.HrisListTimeOffRequestsResponse$outboundSchema;
})(HrisListTimeOffRequestsResponse$ || (exports.HrisListTimeOffRequestsResponse$ = HrisListTimeOffRequestsResponse$ = {}));
function hrisListTimeOffRequestsResponseToJSON(hrisListTimeOffRequestsResponse) {
    return JSON.stringify(exports.HrisListTimeOffRequestsResponse$outboundSchema.parse(hrisListTimeOffRequestsResponse));
}
exports.hrisListTimeOffRequestsResponseToJSON = hrisListTimeOffRequestsResponseToJSON;
function hrisListTimeOffRequestsResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisListTimeOffRequestsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisListTimeOffRequestsResponse' from JSON`);
}
exports.hrisListTimeOffRequestsResponseFromJSON = hrisListTimeOffRequestsResponseFromJSON;
//# sourceMappingURL=hrislisttimeoffrequests.js.map