"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.atsListApplicationCustomFieldDefinitionsResponseFromJSON = exports.atsListApplicationCustomFieldDefinitionsResponseToJSON = exports.AtsListApplicationCustomFieldDefinitionsResponse$ = exports.AtsListApplicationCustomFieldDefinitionsResponse$outboundSchema = exports.AtsListApplicationCustomFieldDefinitionsResponse$inboundSchema = exports.atsListApplicationCustomFieldDefinitionsRequestFromJSON = exports.atsListApplicationCustomFieldDefinitionsRequestToJSON = exports.AtsListApplicationCustomFieldDefinitionsRequest$ = exports.AtsListApplicationCustomFieldDefinitionsRequest$outboundSchema = exports.AtsListApplicationCustomFieldDefinitionsRequest$inboundSchema = exports.atsListApplicationCustomFieldDefinitionsQueryParamFilterFromJSON = exports.atsListApplicationCustomFieldDefinitionsQueryParamFilterToJSON = exports.AtsListApplicationCustomFieldDefinitionsQueryParamFilter$ = exports.AtsListApplicationCustomFieldDefinitionsQueryParamFilter$outboundSchema = exports.AtsListApplicationCustomFieldDefinitionsQueryParamFilter$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.AtsListApplicationCustomFieldDefinitionsQueryParamFilter$inboundSchema = z.object({
    updated_after: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "updated_after": "updatedAfter",
    });
});
/** @internal */
exports.AtsListApplicationCustomFieldDefinitionsQueryParamFilter$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 AtsListApplicationCustomFieldDefinitionsQueryParamFilter$;
(function (AtsListApplicationCustomFieldDefinitionsQueryParamFilter$) {
    /** @deprecated use `AtsListApplicationCustomFieldDefinitionsQueryParamFilter$inboundSchema` instead. */
    AtsListApplicationCustomFieldDefinitionsQueryParamFilter$.inboundSchema = exports.AtsListApplicationCustomFieldDefinitionsQueryParamFilter$inboundSchema;
    /** @deprecated use `AtsListApplicationCustomFieldDefinitionsQueryParamFilter$outboundSchema` instead. */
    AtsListApplicationCustomFieldDefinitionsQueryParamFilter$.outboundSchema = exports.AtsListApplicationCustomFieldDefinitionsQueryParamFilter$outboundSchema;
})(AtsListApplicationCustomFieldDefinitionsQueryParamFilter$ || (exports.AtsListApplicationCustomFieldDefinitionsQueryParamFilter$ = AtsListApplicationCustomFieldDefinitionsQueryParamFilter$ = {}));
function atsListApplicationCustomFieldDefinitionsQueryParamFilterToJSON(atsListApplicationCustomFieldDefinitionsQueryParamFilter) {
    return JSON.stringify(exports.AtsListApplicationCustomFieldDefinitionsQueryParamFilter$outboundSchema
        .parse(atsListApplicationCustomFieldDefinitionsQueryParamFilter));
}
exports.atsListApplicationCustomFieldDefinitionsQueryParamFilterToJSON = atsListApplicationCustomFieldDefinitionsQueryParamFilterToJSON;
function atsListApplicationCustomFieldDefinitionsQueryParamFilterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsListApplicationCustomFieldDefinitionsQueryParamFilter$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'AtsListApplicationCustomFieldDefinitionsQueryParamFilter' from JSON`);
}
exports.atsListApplicationCustomFieldDefinitionsQueryParamFilterFromJSON = atsListApplicationCustomFieldDefinitionsQueryParamFilterFromJSON;
/** @internal */
exports.AtsListApplicationCustomFieldDefinitionsRequest$inboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.AtsListApplicationCustomFieldDefinitionsQueryParamFilter$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.AtsListApplicationCustomFieldDefinitionsRequest$outboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.AtsListApplicationCustomFieldDefinitionsQueryParamFilter$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 AtsListApplicationCustomFieldDefinitionsRequest$;
(function (AtsListApplicationCustomFieldDefinitionsRequest$) {
    /** @deprecated use `AtsListApplicationCustomFieldDefinitionsRequest$inboundSchema` instead. */
    AtsListApplicationCustomFieldDefinitionsRequest$.inboundSchema = exports.AtsListApplicationCustomFieldDefinitionsRequest$inboundSchema;
    /** @deprecated use `AtsListApplicationCustomFieldDefinitionsRequest$outboundSchema` instead. */
    AtsListApplicationCustomFieldDefinitionsRequest$.outboundSchema = exports.AtsListApplicationCustomFieldDefinitionsRequest$outboundSchema;
})(AtsListApplicationCustomFieldDefinitionsRequest$ || (exports.AtsListApplicationCustomFieldDefinitionsRequest$ = AtsListApplicationCustomFieldDefinitionsRequest$ = {}));
function atsListApplicationCustomFieldDefinitionsRequestToJSON(atsListApplicationCustomFieldDefinitionsRequest) {
    return JSON.stringify(exports.AtsListApplicationCustomFieldDefinitionsRequest$outboundSchema.parse(atsListApplicationCustomFieldDefinitionsRequest));
}
exports.atsListApplicationCustomFieldDefinitionsRequestToJSON = atsListApplicationCustomFieldDefinitionsRequestToJSON;
function atsListApplicationCustomFieldDefinitionsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsListApplicationCustomFieldDefinitionsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsListApplicationCustomFieldDefinitionsRequest' from JSON`);
}
exports.atsListApplicationCustomFieldDefinitionsRequestFromJSON = atsListApplicationCustomFieldDefinitionsRequestFromJSON;
/** @internal */
exports.AtsListApplicationCustomFieldDefinitionsResponse$inboundSchema = z.object({
    ContentType: z.string(),
    CustomFieldDefinitionsPaginated: shared
        .CustomFieldDefinitionsPaginated$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",
        "CustomFieldDefinitionsPaginated": "customFieldDefinitionsPaginated",
        "Headers": "headers",
        "StatusCode": "statusCode",
        "RawResponse": "rawResponse",
    });
});
/** @internal */
exports.AtsListApplicationCustomFieldDefinitionsResponse$outboundSchema = z.object({
    contentType: z.string(),
    customFieldDefinitionsPaginated: shared
        .CustomFieldDefinitionsPaginated$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",
        customFieldDefinitionsPaginated: "CustomFieldDefinitionsPaginated",
        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 AtsListApplicationCustomFieldDefinitionsResponse$;
(function (AtsListApplicationCustomFieldDefinitionsResponse$) {
    /** @deprecated use `AtsListApplicationCustomFieldDefinitionsResponse$inboundSchema` instead. */
    AtsListApplicationCustomFieldDefinitionsResponse$.inboundSchema = exports.AtsListApplicationCustomFieldDefinitionsResponse$inboundSchema;
    /** @deprecated use `AtsListApplicationCustomFieldDefinitionsResponse$outboundSchema` instead. */
    AtsListApplicationCustomFieldDefinitionsResponse$.outboundSchema = exports.AtsListApplicationCustomFieldDefinitionsResponse$outboundSchema;
})(AtsListApplicationCustomFieldDefinitionsResponse$ || (exports.AtsListApplicationCustomFieldDefinitionsResponse$ = AtsListApplicationCustomFieldDefinitionsResponse$ = {}));
function atsListApplicationCustomFieldDefinitionsResponseToJSON(atsListApplicationCustomFieldDefinitionsResponse) {
    return JSON.stringify(exports.AtsListApplicationCustomFieldDefinitionsResponse$outboundSchema.parse(atsListApplicationCustomFieldDefinitionsResponse));
}
exports.atsListApplicationCustomFieldDefinitionsResponseToJSON = atsListApplicationCustomFieldDefinitionsResponseToJSON;
function atsListApplicationCustomFieldDefinitionsResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsListApplicationCustomFieldDefinitionsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsListApplicationCustomFieldDefinitionsResponse' from JSON`);
}
exports.atsListApplicationCustomFieldDefinitionsResponseFromJSON = atsListApplicationCustomFieldDefinitionsResponseFromJSON;
//# sourceMappingURL=atslistapplicationcustomfielddefinitions.js.map