"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.hrisListTimeEntriesResponseFromJSON = exports.hrisListTimeEntriesResponseToJSON = exports.HrisListTimeEntriesResponse$ = exports.HrisListTimeEntriesResponse$outboundSchema = exports.HrisListTimeEntriesResponse$inboundSchema = exports.hrisListTimeEntriesRequestFromJSON = exports.hrisListTimeEntriesRequestToJSON = exports.HrisListTimeEntriesRequest$ = exports.HrisListTimeEntriesRequest$outboundSchema = exports.HrisListTimeEntriesRequest$inboundSchema = exports.hrisListTimeEntriesQueryParamFilterFromJSON = exports.hrisListTimeEntriesQueryParamFilterToJSON = exports.HrisListTimeEntriesQueryParamFilter$ = exports.HrisListTimeEntriesQueryParamFilter$outboundSchema = exports.HrisListTimeEntriesQueryParamFilter$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.HrisListTimeEntriesQueryParamFilter$inboundSchema = z.object({
    employee_id: z.nullable(z.string()).optional(),
    end_time: z.nullable(z.string()).optional(),
    start_time: z.nullable(z.string()).optional(),
    updated_after: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "employee_id": "employeeId",
        "end_time": "endTime",
        "start_time": "startTime",
        "updated_after": "updatedAfter",
    });
});
/** @internal */
exports.HrisListTimeEntriesQueryParamFilter$outboundSchema = z.object({
    employeeId: z.nullable(z.string()).optional(),
    endTime: z.nullable(z.string()).optional(),
    startTime: z.nullable(z.string()).optional(),
    updatedAfter: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        employeeId: "employee_id",
        endTime: "end_time",
        startTime: "start_time",
        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 HrisListTimeEntriesQueryParamFilter$;
(function (HrisListTimeEntriesQueryParamFilter$) {
    /** @deprecated use `HrisListTimeEntriesQueryParamFilter$inboundSchema` instead. */
    HrisListTimeEntriesQueryParamFilter$.inboundSchema = exports.HrisListTimeEntriesQueryParamFilter$inboundSchema;
    /** @deprecated use `HrisListTimeEntriesQueryParamFilter$outboundSchema` instead. */
    HrisListTimeEntriesQueryParamFilter$.outboundSchema = exports.HrisListTimeEntriesQueryParamFilter$outboundSchema;
})(HrisListTimeEntriesQueryParamFilter$ || (exports.HrisListTimeEntriesQueryParamFilter$ = HrisListTimeEntriesQueryParamFilter$ = {}));
function hrisListTimeEntriesQueryParamFilterToJSON(hrisListTimeEntriesQueryParamFilter) {
    return JSON.stringify(exports.HrisListTimeEntriesQueryParamFilter$outboundSchema.parse(hrisListTimeEntriesQueryParamFilter));
}
exports.hrisListTimeEntriesQueryParamFilterToJSON = hrisListTimeEntriesQueryParamFilterToJSON;
function hrisListTimeEntriesQueryParamFilterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisListTimeEntriesQueryParamFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisListTimeEntriesQueryParamFilter' from JSON`);
}
exports.hrisListTimeEntriesQueryParamFilterFromJSON = hrisListTimeEntriesQueryParamFilterFromJSON;
/** @internal */
exports.HrisListTimeEntriesRequest$inboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.HrisListTimeEntriesQueryParamFilter$inboundSchema)).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.HrisListTimeEntriesRequest$outboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.HrisListTimeEntriesQueryParamFilter$outboundSchema)).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 HrisListTimeEntriesRequest$;
(function (HrisListTimeEntriesRequest$) {
    /** @deprecated use `HrisListTimeEntriesRequest$inboundSchema` instead. */
    HrisListTimeEntriesRequest$.inboundSchema = exports.HrisListTimeEntriesRequest$inboundSchema;
    /** @deprecated use `HrisListTimeEntriesRequest$outboundSchema` instead. */
    HrisListTimeEntriesRequest$.outboundSchema = exports.HrisListTimeEntriesRequest$outboundSchema;
})(HrisListTimeEntriesRequest$ || (exports.HrisListTimeEntriesRequest$ = HrisListTimeEntriesRequest$ = {}));
function hrisListTimeEntriesRequestToJSON(hrisListTimeEntriesRequest) {
    return JSON.stringify(exports.HrisListTimeEntriesRequest$outboundSchema.parse(hrisListTimeEntriesRequest));
}
exports.hrisListTimeEntriesRequestToJSON = hrisListTimeEntriesRequestToJSON;
function hrisListTimeEntriesRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisListTimeEntriesRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisListTimeEntriesRequest' from JSON`);
}
exports.hrisListTimeEntriesRequestFromJSON = hrisListTimeEntriesRequestFromJSON;
/** @internal */
exports.HrisListTimeEntriesResponse$inboundSchema = z.object({
    ContentType: z.string(),
    Headers: z.record(z.array(z.string())),
    StatusCode: z.number().int(),
    RawResponse: z.instanceof(Response),
    TimeEntriesPaginated: shared.TimeEntriesPaginated$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "ContentType": "contentType",
        "Headers": "headers",
        "StatusCode": "statusCode",
        "RawResponse": "rawResponse",
        "TimeEntriesPaginated": "timeEntriesPaginated",
    });
});
/** @internal */
exports.HrisListTimeEntriesResponse$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");
    }),
    timeEntriesPaginated: shared.TimeEntriesPaginated$outboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contentType: "ContentType",
        headers: "Headers",
        statusCode: "StatusCode",
        rawResponse: "RawResponse",
        timeEntriesPaginated: "TimeEntriesPaginated",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisListTimeEntriesResponse$;
(function (HrisListTimeEntriesResponse$) {
    /** @deprecated use `HrisListTimeEntriesResponse$inboundSchema` instead. */
    HrisListTimeEntriesResponse$.inboundSchema = exports.HrisListTimeEntriesResponse$inboundSchema;
    /** @deprecated use `HrisListTimeEntriesResponse$outboundSchema` instead. */
    HrisListTimeEntriesResponse$.outboundSchema = exports.HrisListTimeEntriesResponse$outboundSchema;
})(HrisListTimeEntriesResponse$ || (exports.HrisListTimeEntriesResponse$ = HrisListTimeEntriesResponse$ = {}));
function hrisListTimeEntriesResponseToJSON(hrisListTimeEntriesResponse) {
    return JSON.stringify(exports.HrisListTimeEntriesResponse$outboundSchema.parse(hrisListTimeEntriesResponse));
}
exports.hrisListTimeEntriesResponseToJSON = hrisListTimeEntriesResponseToJSON;
function hrisListTimeEntriesResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisListTimeEntriesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisListTimeEntriesResponse' from JSON`);
}
exports.hrisListTimeEntriesResponseFromJSON = hrisListTimeEntriesResponseFromJSON;
//# sourceMappingURL=hrislisttimeentries.js.map