"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.ticketingListCollectionTicketTypesResponseFromJSON = exports.ticketingListCollectionTicketTypesResponseToJSON = exports.TicketingListCollectionTicketTypesResponse$ = exports.TicketingListCollectionTicketTypesResponse$outboundSchema = exports.TicketingListCollectionTicketTypesResponse$inboundSchema = exports.ticketingListCollectionTicketTypesRequestFromJSON = exports.ticketingListCollectionTicketTypesRequestToJSON = exports.TicketingListCollectionTicketTypesRequest$ = exports.TicketingListCollectionTicketTypesRequest$outboundSchema = exports.TicketingListCollectionTicketTypesRequest$inboundSchema = exports.ticketingListCollectionTicketTypesQueryParamFilterFromJSON = exports.ticketingListCollectionTicketTypesQueryParamFilterToJSON = exports.TicketingListCollectionTicketTypesQueryParamFilter$ = exports.TicketingListCollectionTicketTypesQueryParamFilter$outboundSchema = exports.TicketingListCollectionTicketTypesQueryParamFilter$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.TicketingListCollectionTicketTypesQueryParamFilter$inboundSchema = z.object({
    updated_after: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "updated_after": "updatedAfter",
    });
});
/** @internal */
exports.TicketingListCollectionTicketTypesQueryParamFilter$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 TicketingListCollectionTicketTypesQueryParamFilter$;
(function (TicketingListCollectionTicketTypesQueryParamFilter$) {
    /** @deprecated use `TicketingListCollectionTicketTypesQueryParamFilter$inboundSchema` instead. */
    TicketingListCollectionTicketTypesQueryParamFilter$.inboundSchema = exports.TicketingListCollectionTicketTypesQueryParamFilter$inboundSchema;
    /** @deprecated use `TicketingListCollectionTicketTypesQueryParamFilter$outboundSchema` instead. */
    TicketingListCollectionTicketTypesQueryParamFilter$.outboundSchema = exports.TicketingListCollectionTicketTypesQueryParamFilter$outboundSchema;
})(TicketingListCollectionTicketTypesQueryParamFilter$ || (exports.TicketingListCollectionTicketTypesQueryParamFilter$ = TicketingListCollectionTicketTypesQueryParamFilter$ = {}));
function ticketingListCollectionTicketTypesQueryParamFilterToJSON(ticketingListCollectionTicketTypesQueryParamFilter) {
    return JSON.stringify(exports.TicketingListCollectionTicketTypesQueryParamFilter$outboundSchema.parse(ticketingListCollectionTicketTypesQueryParamFilter));
}
exports.ticketingListCollectionTicketTypesQueryParamFilterToJSON = ticketingListCollectionTicketTypesQueryParamFilterToJSON;
function ticketingListCollectionTicketTypesQueryParamFilterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingListCollectionTicketTypesQueryParamFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingListCollectionTicketTypesQueryParamFilter' from JSON`);
}
exports.ticketingListCollectionTicketTypesQueryParamFilterFromJSON = ticketingListCollectionTicketTypesQueryParamFilterFromJSON;
/** @internal */
exports.TicketingListCollectionTicketTypesRequest$inboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.TicketingListCollectionTicketTypesQueryParamFilter$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.TicketingListCollectionTicketTypesRequest$outboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.TicketingListCollectionTicketTypesQueryParamFilter$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 TicketingListCollectionTicketTypesRequest$;
(function (TicketingListCollectionTicketTypesRequest$) {
    /** @deprecated use `TicketingListCollectionTicketTypesRequest$inboundSchema` instead. */
    TicketingListCollectionTicketTypesRequest$.inboundSchema = exports.TicketingListCollectionTicketTypesRequest$inboundSchema;
    /** @deprecated use `TicketingListCollectionTicketTypesRequest$outboundSchema` instead. */
    TicketingListCollectionTicketTypesRequest$.outboundSchema = exports.TicketingListCollectionTicketTypesRequest$outboundSchema;
})(TicketingListCollectionTicketTypesRequest$ || (exports.TicketingListCollectionTicketTypesRequest$ = TicketingListCollectionTicketTypesRequest$ = {}));
function ticketingListCollectionTicketTypesRequestToJSON(ticketingListCollectionTicketTypesRequest) {
    return JSON.stringify(exports.TicketingListCollectionTicketTypesRequest$outboundSchema.parse(ticketingListCollectionTicketTypesRequest));
}
exports.ticketingListCollectionTicketTypesRequestToJSON = ticketingListCollectionTicketTypesRequestToJSON;
function ticketingListCollectionTicketTypesRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingListCollectionTicketTypesRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingListCollectionTicketTypesRequest' from JSON`);
}
exports.ticketingListCollectionTicketTypesRequestFromJSON = ticketingListCollectionTicketTypesRequestFromJSON;
/** @internal */
exports.TicketingListCollectionTicketTypesResponse$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.TicketingListCollectionTicketTypesResponse$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 TicketingListCollectionTicketTypesResponse$;
(function (TicketingListCollectionTicketTypesResponse$) {
    /** @deprecated use `TicketingListCollectionTicketTypesResponse$inboundSchema` instead. */
    TicketingListCollectionTicketTypesResponse$.inboundSchema = exports.TicketingListCollectionTicketTypesResponse$inboundSchema;
    /** @deprecated use `TicketingListCollectionTicketTypesResponse$outboundSchema` instead. */
    TicketingListCollectionTicketTypesResponse$.outboundSchema = exports.TicketingListCollectionTicketTypesResponse$outboundSchema;
})(TicketingListCollectionTicketTypesResponse$ || (exports.TicketingListCollectionTicketTypesResponse$ = TicketingListCollectionTicketTypesResponse$ = {}));
function ticketingListCollectionTicketTypesResponseToJSON(ticketingListCollectionTicketTypesResponse) {
    return JSON.stringify(exports.TicketingListCollectionTicketTypesResponse$outboundSchema.parse(ticketingListCollectionTicketTypesResponse));
}
exports.ticketingListCollectionTicketTypesResponseToJSON = ticketingListCollectionTicketTypesResponseToJSON;
function ticketingListCollectionTicketTypesResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingListCollectionTicketTypesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingListCollectionTicketTypesResponse' from JSON`);
}
exports.ticketingListCollectionTicketTypesResponseFromJSON = ticketingListCollectionTicketTypesResponseFromJSON;
//# sourceMappingURL=ticketinglistcollectiontickettypes.js.map