"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.hrisListEmployeesResponseFromJSON = exports.hrisListEmployeesResponseToJSON = exports.HrisListEmployeesResponse$ = exports.HrisListEmployeesResponse$outboundSchema = exports.HrisListEmployeesResponse$inboundSchema = exports.hrisListEmployeesRequestFromJSON = exports.hrisListEmployeesRequestToJSON = exports.HrisListEmployeesRequest$ = exports.HrisListEmployeesRequest$outboundSchema = exports.HrisListEmployeesRequest$inboundSchema = exports.hrisListEmployeesQueryParamFilterFromJSON = exports.hrisListEmployeesQueryParamFilterToJSON = exports.HrisListEmployeesQueryParamFilter$ = exports.HrisListEmployeesQueryParamFilter$outboundSchema = exports.HrisListEmployeesQueryParamFilter$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.HrisListEmployeesQueryParamFilter$inboundSchema = z.object({
    email: z.nullable(z.string()).optional(),
    employee_number: z.nullable(z.string()).optional(),
    updated_after: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "employee_number": "employeeNumber",
        "updated_after": "updatedAfter",
    });
});
/** @internal */
exports.HrisListEmployeesQueryParamFilter$outboundSchema = z.object({
    email: z.nullable(z.string()).optional(),
    employeeNumber: z.nullable(z.string()).optional(),
    updatedAfter: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        employeeNumber: "employee_number",
        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 HrisListEmployeesQueryParamFilter$;
(function (HrisListEmployeesQueryParamFilter$) {
    /** @deprecated use `HrisListEmployeesQueryParamFilter$inboundSchema` instead. */
    HrisListEmployeesQueryParamFilter$.inboundSchema = exports.HrisListEmployeesQueryParamFilter$inboundSchema;
    /** @deprecated use `HrisListEmployeesQueryParamFilter$outboundSchema` instead. */
    HrisListEmployeesQueryParamFilter$.outboundSchema = exports.HrisListEmployeesQueryParamFilter$outboundSchema;
})(HrisListEmployeesQueryParamFilter$ || (exports.HrisListEmployeesQueryParamFilter$ = HrisListEmployeesQueryParamFilter$ = {}));
function hrisListEmployeesQueryParamFilterToJSON(hrisListEmployeesQueryParamFilter) {
    return JSON.stringify(exports.HrisListEmployeesQueryParamFilter$outboundSchema.parse(hrisListEmployeesQueryParamFilter));
}
exports.hrisListEmployeesQueryParamFilterToJSON = hrisListEmployeesQueryParamFilterToJSON;
function hrisListEmployeesQueryParamFilterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisListEmployeesQueryParamFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisListEmployeesQueryParamFilter' from JSON`);
}
exports.hrisListEmployeesQueryParamFilterFromJSON = hrisListEmployeesQueryParamFilterFromJSON;
/** @internal */
exports.HrisListEmployeesRequest$inboundSchema = z.object({
    expand: z.nullable(z.string()).optional(),
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.HrisListEmployeesQueryParamFilter$inboundSchema)).optional(),
    include: z.nullable(z.string()).optional(),
    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.HrisListEmployeesRequest$outboundSchema = z.object({
    expand: z.nullable(z.string()).optional(),
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.HrisListEmployeesQueryParamFilter$outboundSchema)).optional(),
    include: z.nullable(z.string()).optional(),
    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 HrisListEmployeesRequest$;
(function (HrisListEmployeesRequest$) {
    /** @deprecated use `HrisListEmployeesRequest$inboundSchema` instead. */
    HrisListEmployeesRequest$.inboundSchema = exports.HrisListEmployeesRequest$inboundSchema;
    /** @deprecated use `HrisListEmployeesRequest$outboundSchema` instead. */
    HrisListEmployeesRequest$.outboundSchema = exports.HrisListEmployeesRequest$outboundSchema;
})(HrisListEmployeesRequest$ || (exports.HrisListEmployeesRequest$ = HrisListEmployeesRequest$ = {}));
function hrisListEmployeesRequestToJSON(hrisListEmployeesRequest) {
    return JSON.stringify(exports.HrisListEmployeesRequest$outboundSchema.parse(hrisListEmployeesRequest));
}
exports.hrisListEmployeesRequestToJSON = hrisListEmployeesRequestToJSON;
function hrisListEmployeesRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisListEmployeesRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisListEmployeesRequest' from JSON`);
}
exports.hrisListEmployeesRequestFromJSON = hrisListEmployeesRequestFromJSON;
/** @internal */
exports.HrisListEmployeesResponse$inboundSchema = z.object({
    ContentType: z.string(),
    EmployeesPaginated: shared.EmployeesPaginated$inboundSchema.optional(),
    Headers: z.record(z.array(z.string())),
    StatusCode: z.number().int(),
    RawResponse: z.instanceof(Response),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "ContentType": "contentType",
        "EmployeesPaginated": "employeesPaginated",
        "Headers": "headers",
        "StatusCode": "statusCode",
        "RawResponse": "rawResponse",
    });
});
/** @internal */
exports.HrisListEmployeesResponse$outboundSchema = z.object({
    contentType: z.string(),
    employeesPaginated: shared.EmployeesPaginated$outboundSchema.optional(),
    headers: z.record(z.array(z.string())),
    statusCode: z.number().int(),
    rawResponse: z.instanceof(Response).transform(() => {
        throw new Error("Response cannot be serialized");
    }),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contentType: "ContentType",
        employeesPaginated: "EmployeesPaginated",
        headers: "Headers",
        statusCode: "StatusCode",
        rawResponse: "RawResponse",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisListEmployeesResponse$;
(function (HrisListEmployeesResponse$) {
    /** @deprecated use `HrisListEmployeesResponse$inboundSchema` instead. */
    HrisListEmployeesResponse$.inboundSchema = exports.HrisListEmployeesResponse$inboundSchema;
    /** @deprecated use `HrisListEmployeesResponse$outboundSchema` instead. */
    HrisListEmployeesResponse$.outboundSchema = exports.HrisListEmployeesResponse$outboundSchema;
})(HrisListEmployeesResponse$ || (exports.HrisListEmployeesResponse$ = HrisListEmployeesResponse$ = {}));
function hrisListEmployeesResponseToJSON(hrisListEmployeesResponse) {
    return JSON.stringify(exports.HrisListEmployeesResponse$outboundSchema.parse(hrisListEmployeesResponse));
}
exports.hrisListEmployeesResponseToJSON = hrisListEmployeesResponseToJSON;
function hrisListEmployeesResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisListEmployeesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisListEmployeesResponse' from JSON`);
}
exports.hrisListEmployeesResponseFromJSON = hrisListEmployeesResponseFromJSON;
//# sourceMappingURL=hrislistemployees.js.map