"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.ticketingListTicketTypesResponseFromJSON = exports.ticketingListTicketTypesResponseToJSON = exports.TicketingListTicketTypesResponse$ = exports.TicketingListTicketTypesResponse$outboundSchema = exports.TicketingListTicketTypesResponse$inboundSchema = exports.ticketingListTicketTypesRequestFromJSON = exports.ticketingListTicketTypesRequestToJSON = exports.TicketingListTicketTypesRequest$ = exports.TicketingListTicketTypesRequest$outboundSchema = exports.TicketingListTicketTypesRequest$inboundSchema = exports.ticketingListTicketTypesQueryParamFilterFromJSON = exports.ticketingListTicketTypesQueryParamFilterToJSON = exports.TicketingListTicketTypesQueryParamFilter$ = exports.TicketingListTicketTypesQueryParamFilter$outboundSchema = exports.TicketingListTicketTypesQueryParamFilter$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.TicketingListTicketTypesQueryParamFilter$inboundSchema = z.object({
    updated_after: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "updated_after": "updatedAfter",
    });
});
/** @internal */
exports.TicketingListTicketTypesQueryParamFilter$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 TicketingListTicketTypesQueryParamFilter$;
(function (TicketingListTicketTypesQueryParamFilter$) {
    /** @deprecated use `TicketingListTicketTypesQueryParamFilter$inboundSchema` instead. */
    TicketingListTicketTypesQueryParamFilter$.inboundSchema = exports.TicketingListTicketTypesQueryParamFilter$inboundSchema;
    /** @deprecated use `TicketingListTicketTypesQueryParamFilter$outboundSchema` instead. */
    TicketingListTicketTypesQueryParamFilter$.outboundSchema = exports.TicketingListTicketTypesQueryParamFilter$outboundSchema;
})(TicketingListTicketTypesQueryParamFilter$ || (exports.TicketingListTicketTypesQueryParamFilter$ = TicketingListTicketTypesQueryParamFilter$ = {}));
function ticketingListTicketTypesQueryParamFilterToJSON(ticketingListTicketTypesQueryParamFilter) {
    return JSON.stringify(exports.TicketingListTicketTypesQueryParamFilter$outboundSchema.parse(ticketingListTicketTypesQueryParamFilter));
}
exports.ticketingListTicketTypesQueryParamFilterToJSON = ticketingListTicketTypesQueryParamFilterToJSON;
function ticketingListTicketTypesQueryParamFilterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingListTicketTypesQueryParamFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingListTicketTypesQueryParamFilter' from JSON`);
}
exports.ticketingListTicketTypesQueryParamFilterFromJSON = ticketingListTicketTypesQueryParamFilterFromJSON;
/** @internal */
exports.TicketingListTicketTypesRequest$inboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.TicketingListTicketTypesQueryParamFilter$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.TicketingListTicketTypesRequest$outboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.TicketingListTicketTypesQueryParamFilter$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 TicketingListTicketTypesRequest$;
(function (TicketingListTicketTypesRequest$) {
    /** @deprecated use `TicketingListTicketTypesRequest$inboundSchema` instead. */
    TicketingListTicketTypesRequest$.inboundSchema = exports.TicketingListTicketTypesRequest$inboundSchema;
    /** @deprecated use `TicketingListTicketTypesRequest$outboundSchema` instead. */
    TicketingListTicketTypesRequest$.outboundSchema = exports.TicketingListTicketTypesRequest$outboundSchema;
})(TicketingListTicketTypesRequest$ || (exports.TicketingListTicketTypesRequest$ = TicketingListTicketTypesRequest$ = {}));
function ticketingListTicketTypesRequestToJSON(ticketingListTicketTypesRequest) {
    return JSON.stringify(exports.TicketingListTicketTypesRequest$outboundSchema.parse(ticketingListTicketTypesRequest));
}
exports.ticketingListTicketTypesRequestToJSON = ticketingListTicketTypesRequestToJSON;
function ticketingListTicketTypesRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingListTicketTypesRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingListTicketTypesRequest' from JSON`);
}
exports.ticketingListTicketTypesRequestFromJSON = ticketingListTicketTypesRequestFromJSON;
/** @internal */
exports.TicketingListTicketTypesResponse$inboundSchema = z.object({
    ContentType: z.string(),
    Headers: z.record(z.array(z.string())),
    StatusCode: z.number().int(),
    RawResponse: z.instanceof(Response),
    TicketingTicketTypePaginated: shared
        .TicketingTicketTypePaginated$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "ContentType": "contentType",
        "Headers": "headers",
        "StatusCode": "statusCode",
        "RawResponse": "rawResponse",
        "TicketingTicketTypePaginated": "ticketingTicketTypePaginated",
    });
});
/** @internal */
exports.TicketingListTicketTypesResponse$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");
    }),
    ticketingTicketTypePaginated: shared
        .TicketingTicketTypePaginated$outboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contentType: "ContentType",
        headers: "Headers",
        statusCode: "StatusCode",
        rawResponse: "RawResponse",
        ticketingTicketTypePaginated: "TicketingTicketTypePaginated",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var TicketingListTicketTypesResponse$;
(function (TicketingListTicketTypesResponse$) {
    /** @deprecated use `TicketingListTicketTypesResponse$inboundSchema` instead. */
    TicketingListTicketTypesResponse$.inboundSchema = exports.TicketingListTicketTypesResponse$inboundSchema;
    /** @deprecated use `TicketingListTicketTypesResponse$outboundSchema` instead. */
    TicketingListTicketTypesResponse$.outboundSchema = exports.TicketingListTicketTypesResponse$outboundSchema;
})(TicketingListTicketTypesResponse$ || (exports.TicketingListTicketTypesResponse$ = TicketingListTicketTypesResponse$ = {}));
function ticketingListTicketTypesResponseToJSON(ticketingListTicketTypesResponse) {
    return JSON.stringify(exports.TicketingListTicketTypesResponse$outboundSchema.parse(ticketingListTicketTypesResponse));
}
exports.ticketingListTicketTypesResponseToJSON = ticketingListTicketTypesResponseToJSON;
function ticketingListTicketTypesResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingListTicketTypesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingListTicketTypesResponse' from JSON`);
}
exports.ticketingListTicketTypesResponseFromJSON = ticketingListTicketTypesResponseFromJSON;
//# sourceMappingURL=ticketinglisttickettypes.js.map