"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.hrisGetEmployeeCustomFieldDefinitionResponseFromJSON = exports.hrisGetEmployeeCustomFieldDefinitionResponseToJSON = exports.HrisGetEmployeeCustomFieldDefinitionResponse$ = exports.HrisGetEmployeeCustomFieldDefinitionResponse$outboundSchema = exports.HrisGetEmployeeCustomFieldDefinitionResponse$inboundSchema = exports.hrisGetEmployeeCustomFieldDefinitionRequestFromJSON = exports.hrisGetEmployeeCustomFieldDefinitionRequestToJSON = exports.HrisGetEmployeeCustomFieldDefinitionRequest$ = exports.HrisGetEmployeeCustomFieldDefinitionRequest$outboundSchema = exports.HrisGetEmployeeCustomFieldDefinitionRequest$inboundSchema = exports.hrisGetEmployeeCustomFieldDefinitionQueryParamFilterFromJSON = exports.hrisGetEmployeeCustomFieldDefinitionQueryParamFilterToJSON = exports.HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$ = exports.HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$outboundSchema = exports.HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$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.HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$inboundSchema = z.object({
    updated_after: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "updated_after": "updatedAfter",
    });
});
/** @internal */
exports.HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$outboundSchema = z.object({
    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 HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$;
(function (HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$) {
    /** @deprecated use `HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$inboundSchema` instead. */
    HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$.inboundSchema = exports.HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$inboundSchema;
    /** @deprecated use `HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$outboundSchema` instead. */
    HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$.outboundSchema = exports.HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$outboundSchema;
})(HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$ || (exports.HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$ = HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$ = {}));
function hrisGetEmployeeCustomFieldDefinitionQueryParamFilterToJSON(hrisGetEmployeeCustomFieldDefinitionQueryParamFilter) {
    return JSON.stringify(exports.HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$outboundSchema.parse(hrisGetEmployeeCustomFieldDefinitionQueryParamFilter));
}
exports.hrisGetEmployeeCustomFieldDefinitionQueryParamFilterToJSON = hrisGetEmployeeCustomFieldDefinitionQueryParamFilterToJSON;
function hrisGetEmployeeCustomFieldDefinitionQueryParamFilterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisGetEmployeeCustomFieldDefinitionQueryParamFilter' from JSON`);
}
exports.hrisGetEmployeeCustomFieldDefinitionQueryParamFilterFromJSON = hrisGetEmployeeCustomFieldDefinitionQueryParamFilterFromJSON;
/** @internal */
exports.HrisGetEmployeeCustomFieldDefinitionRequest$inboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$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.HrisGetEmployeeCustomFieldDefinitionRequest$outboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.HrisGetEmployeeCustomFieldDefinitionQueryParamFilter$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 HrisGetEmployeeCustomFieldDefinitionRequest$;
(function (HrisGetEmployeeCustomFieldDefinitionRequest$) {
    /** @deprecated use `HrisGetEmployeeCustomFieldDefinitionRequest$inboundSchema` instead. */
    HrisGetEmployeeCustomFieldDefinitionRequest$.inboundSchema = exports.HrisGetEmployeeCustomFieldDefinitionRequest$inboundSchema;
    /** @deprecated use `HrisGetEmployeeCustomFieldDefinitionRequest$outboundSchema` instead. */
    HrisGetEmployeeCustomFieldDefinitionRequest$.outboundSchema = exports.HrisGetEmployeeCustomFieldDefinitionRequest$outboundSchema;
})(HrisGetEmployeeCustomFieldDefinitionRequest$ || (exports.HrisGetEmployeeCustomFieldDefinitionRequest$ = HrisGetEmployeeCustomFieldDefinitionRequest$ = {}));
function hrisGetEmployeeCustomFieldDefinitionRequestToJSON(hrisGetEmployeeCustomFieldDefinitionRequest) {
    return JSON.stringify(exports.HrisGetEmployeeCustomFieldDefinitionRequest$outboundSchema.parse(hrisGetEmployeeCustomFieldDefinitionRequest));
}
exports.hrisGetEmployeeCustomFieldDefinitionRequestToJSON = hrisGetEmployeeCustomFieldDefinitionRequestToJSON;
function hrisGetEmployeeCustomFieldDefinitionRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisGetEmployeeCustomFieldDefinitionRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisGetEmployeeCustomFieldDefinitionRequest' from JSON`);
}
exports.hrisGetEmployeeCustomFieldDefinitionRequestFromJSON = hrisGetEmployeeCustomFieldDefinitionRequestFromJSON;
/** @internal */
exports.HrisGetEmployeeCustomFieldDefinitionResponse$inboundSchema = z.object({
    ContentType: z.string(),
    CustomFieldDefinitionResultApiModel: shared
        .CustomFieldDefinitionResultApiModel$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",
        "CustomFieldDefinitionResultApiModel": "customFieldDefinitionResultApiModel",
        "Headers": "headers",
        "StatusCode": "statusCode",
        "RawResponse": "rawResponse",
    });
});
/** @internal */
exports.HrisGetEmployeeCustomFieldDefinitionResponse$outboundSchema = z.object({
    contentType: z.string(),
    customFieldDefinitionResultApiModel: shared
        .CustomFieldDefinitionResultApiModel$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",
        customFieldDefinitionResultApiModel: "CustomFieldDefinitionResultApiModel",
        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 HrisGetEmployeeCustomFieldDefinitionResponse$;
(function (HrisGetEmployeeCustomFieldDefinitionResponse$) {
    /** @deprecated use `HrisGetEmployeeCustomFieldDefinitionResponse$inboundSchema` instead. */
    HrisGetEmployeeCustomFieldDefinitionResponse$.inboundSchema = exports.HrisGetEmployeeCustomFieldDefinitionResponse$inboundSchema;
    /** @deprecated use `HrisGetEmployeeCustomFieldDefinitionResponse$outboundSchema` instead. */
    HrisGetEmployeeCustomFieldDefinitionResponse$.outboundSchema = exports.HrisGetEmployeeCustomFieldDefinitionResponse$outboundSchema;
})(HrisGetEmployeeCustomFieldDefinitionResponse$ || (exports.HrisGetEmployeeCustomFieldDefinitionResponse$ = HrisGetEmployeeCustomFieldDefinitionResponse$ = {}));
function hrisGetEmployeeCustomFieldDefinitionResponseToJSON(hrisGetEmployeeCustomFieldDefinitionResponse) {
    return JSON.stringify(exports.HrisGetEmployeeCustomFieldDefinitionResponse$outboundSchema.parse(hrisGetEmployeeCustomFieldDefinitionResponse));
}
exports.hrisGetEmployeeCustomFieldDefinitionResponseToJSON = hrisGetEmployeeCustomFieldDefinitionResponseToJSON;
function hrisGetEmployeeCustomFieldDefinitionResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisGetEmployeeCustomFieldDefinitionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisGetEmployeeCustomFieldDefinitionResponse' from JSON`);
}
exports.hrisGetEmployeeCustomFieldDefinitionResponseFromJSON = hrisGetEmployeeCustomFieldDefinitionResponseFromJSON;
//# sourceMappingURL=hrisgetemployeecustomfielddefinition.js.map