@wix/auto_sdk_events_ticket-definitions 1.0.33 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.ts","../../src/events-v1-ticket-definition-ticket-definitions.public.ts","../../src/events-v1-ticket-definition-ticket-definitions.universal.ts","../../src/events-v1-ticket-definition-ticket-definitions.http.ts","../../src/events-v1-ticket-definition-ticket-definitions.context.ts"],"sourcesContent":["export * from './src/events-v1-ticket-definition-ticket-definitions.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ChangeCurrencyOptions,\n CreateTicketDefinitionOptions,\n CreateTicketDefinitionResponse,\n DefinitionsQueryBuilder,\n DeleteTicketDefinitionOptions,\n GetTicketDefinitionOptions,\n ListTicketDefinitionsOptions,\n ListTicketDefinitionsResponse,\n QueryTicketDefinitionsOptions,\n QueryTicketDefinitionsResponse,\n QueryTicketDefinitionsV2Options,\n QueryTicketDefinitionsV2Response,\n QueryV2,\n TicketDefinition,\n TicketDefinitionCreatedEnvelope,\n TicketDefinitionDeletedEnvelope,\n TicketDefinitionUpdatedEnvelope,\n UpdateTicketDefinitionOptions,\n UpdateTicketDefinitionResponse,\n changeCurrency as universalChangeCurrency,\n createTicketDefinition as universalCreateTicketDefinition,\n deleteTicketDefinition as universalDeleteTicketDefinition,\n getTicketDefinition as universalGetTicketDefinition,\n listTicketDefinitions as universalListTicketDefinitions,\n queryTicketDefinitions as universalQueryTicketDefinitions,\n queryTicketDefinitionsV2 as universalQueryTicketDefinitionsV2,\n typedQueryTicketDefinitionsV2 as universalTypedQueryTicketDefinitionsV2,\n updateTicketDefinition as universalUpdateTicketDefinition,\n} from './events-v1-ticket-definition-ticket-definitions.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/events' };\n\nexport function queryTicketDefinitions(\n httpClient: HttpClient\n): QueryTicketDefinitionsSignature {\n return (options?: QueryTicketDefinitionsOptions) =>\n universalQueryTicketDefinitions(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryTicketDefinitionsSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinition()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinition()`, and replace it with `ticketDefinitionsV2.queryTicketDefinition()`. Update your code to work with the new `createTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 100 ticket definitions.\n * @deprecated\n */\n (options?: QueryTicketDefinitionsOptions): Promise<\n NonNullablePaths<\n QueryTicketDefinitionsResponse,\n | `total`\n | `offset`\n | `limit`\n | `definitions`\n | `definitions.${number}._id`\n | `definitions.${number}.price.amount`\n | `definitions.${number}.price.currency`\n | `definitions.${number}.free`\n | `definitions.${number}.name`\n | `definitions.${number}.description`\n | `definitions.${number}.limitPerCheckout`\n | `definitions.${number}.orderIndex`\n | `definitions.${number}.policy`\n | `definitions.${number}.dashboard.hidden`\n | `definitions.${number}.dashboard.sold`\n | `definitions.${number}.dashboard.limited`\n | `definitions.${number}.dashboard.ticketsSold`\n | `definitions.${number}.dashboard.ticketsReserved`\n | `definitions.${number}.eventId`\n | `definitions.${number}.wixFeeConfig.type`\n | `definitions.${number}.salePeriod.hideNotOnSale`\n | `definitions.${number}.saleStatus`\n | `definitions.${number}.pricing.pricingType`,\n 5\n >\n >;\n}\n\nexport function queryTicketDefinitionsV2(\n httpClient: HttpClient\n): QueryTicketDefinitionsV2Signature {\n return (options?: QueryTicketDefinitionsV2Options) =>\n universalQueryTicketDefinitionsV2(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryTicketDefinitionsV2Signature {\n /**\n * **Deprecated.** This function will continue to work until October 29, 2024, but a newer version is available at [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinitions()`, and replace it with `ticketDefinitionsV2.queryTicketDefinitions()`. Update your code to work with the new `queryTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 1,000 ticket definitions, given the provided paging and filtering.\n * @deprecated\n */\n (options?: QueryTicketDefinitionsV2Options): DefinitionsQueryBuilder;\n}\n\nexport function typedQueryTicketDefinitionsV2(\n httpClient: HttpClient\n): TypedQueryTicketDefinitionsV2Signature {\n return (query: QueryV2, options?: QueryTicketDefinitionsV2Options) =>\n universalTypedQueryTicketDefinitionsV2(\n query,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQueryTicketDefinitionsV2Signature {\n /** */\n (query: QueryV2, options?: QueryTicketDefinitionsV2Options): Promise<\n NonNullablePaths<\n QueryTicketDefinitionsV2Response,\n | `definitions`\n | `definitions.${number}._id`\n | `definitions.${number}.price.amount`\n | `definitions.${number}.price.currency`\n | `definitions.${number}.free`\n | `definitions.${number}.name`\n | `definitions.${number}.description`\n | `definitions.${number}.limitPerCheckout`\n | `definitions.${number}.orderIndex`\n | `definitions.${number}.policy`\n | `definitions.${number}.dashboard.hidden`\n | `definitions.${number}.dashboard.sold`\n | `definitions.${number}.dashboard.limited`\n | `definitions.${number}.dashboard.ticketsSold`\n | `definitions.${number}.dashboard.ticketsReserved`\n | `definitions.${number}.eventId`\n | `definitions.${number}.wixFeeConfig.type`\n | `definitions.${number}.salePeriod.hideNotOnSale`\n | `definitions.${number}.saleStatus`\n | `definitions.${number}.pricing.pricingType`,\n 5\n >\n >;\n}\n\nexport function listTicketDefinitions(\n httpClient: HttpClient\n): ListTicketDefinitionsSignature {\n return (options?: ListTicketDefinitionsOptions) =>\n universalListTicketDefinitions(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListTicketDefinitionsSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a substitute is available. Use the [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinitions()`, and replace it with `ticketDefinitionsV2.queryTicketDefinitions()`. Update your code to work with the new `queryTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 100 ticket definitions, with basic filter support.\n * @param - Details for the tickets to retrieve.\n * @deprecated\n */\n (options?: ListTicketDefinitionsOptions): Promise<\n NonNullablePaths<\n ListTicketDefinitionsResponse,\n | `metaData.count`\n | `metaData.offset`\n | `metaData.total`\n | `definitions`\n | `definitions.${number}._id`\n | `definitions.${number}.price.amount`\n | `definitions.${number}.price.currency`\n | `definitions.${number}.free`\n | `definitions.${number}.name`\n | `definitions.${number}.description`\n | `definitions.${number}.limitPerCheckout`\n | `definitions.${number}.orderIndex`\n | `definitions.${number}.policy`\n | `definitions.${number}.dashboard.hidden`\n | `definitions.${number}.dashboard.sold`\n | `definitions.${number}.dashboard.limited`\n | `definitions.${number}.dashboard.ticketsSold`\n | `definitions.${number}.dashboard.ticketsReserved`\n | `definitions.${number}.eventId`\n | `definitions.${number}.wixFeeConfig.type`\n | `definitions.${number}.salePeriod.hideNotOnSale`\n | `definitions.${number}.saleStatus`\n | `definitions.${number}.pricing.pricingType`,\n 5\n >\n >;\n}\n\nexport function getTicketDefinition(\n httpClient: HttpClient\n): GetTicketDefinitionSignature {\n return (definitionId: string, options?: GetTicketDefinitionOptions) =>\n universalGetTicketDefinition(\n definitionId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetTicketDefinitionSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`getTicketDefinition()`](/ticket-definitions-v2/get-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`getTicketDefinition()`](/ticket-definitions-v2/get-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.getTicketDefinition()`, and replace it with `ticketDefinitionsV2.getTicketDefinition()`. Update your code to work with the new `getTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a ticket definition.\n * @param - Ticket definition ID.\n * @param - Details for the ticket to retrieve.\n * @returns Retrieved ticket definition.\n * @deprecated\n */\n (definitionId: string, options?: GetTicketDefinitionOptions): Promise<\n NonNullablePaths<\n TicketDefinition,\n | `_id`\n | `price.amount`\n | `price.currency`\n | `free`\n | `name`\n | `description`\n | `limitPerCheckout`\n | `orderIndex`\n | `policy`\n | `dashboard.hidden`\n | `dashboard.sold`\n | `dashboard.limited`\n | `dashboard.ticketsSold`\n | `dashboard.ticketsReserved`\n | `eventId`\n | `wixFeeConfig.type`\n | `salePeriod.hideNotOnSale`\n | `saleStatus`\n | `state`\n | `pricing.pricingOptions.options`\n | `pricing.pricingType`,\n 4\n >\n >;\n}\n\nexport function createTicketDefinition(\n httpClient: HttpClient\n): CreateTicketDefinitionSignature {\n return (\n eventId: string,\n options: NonNullablePaths<\n CreateTicketDefinitionOptions,\n `definition` | `definition.name`,\n 3\n >\n ) =>\n universalCreateTicketDefinition(\n eventId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateTicketDefinitionSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`createTicketDefinition()`](/ticket-definitions-v2/create-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`createTicketDefinition()`](/ticket-definitions-v2/create-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.createTicketDefinition()`, and replace it with `ticketDefinitionsV2.createTicketDefinition()`. Update your code to work with the new `createTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Creates a ticket definition (and enables ticket sales).\n * @param - Event ID.\n * @deprecated\n */\n (\n eventId: string,\n options: NonNullablePaths<\n CreateTicketDefinitionOptions,\n `definition` | `definition.name`,\n 3\n >\n ): Promise<\n NonNullablePaths<\n CreateTicketDefinitionResponse,\n | `definition._id`\n | `definition.price.amount`\n | `definition.price.currency`\n | `definition.free`\n | `definition.name`\n | `definition.description`\n | `definition.limitPerCheckout`\n | `definition.orderIndex`\n | `definition.policy`\n | `definition.dashboard.hidden`\n | `definition.dashboard.sold`\n | `definition.dashboard.limited`\n | `definition.dashboard.ticketsSold`\n | `definition.dashboard.ticketsReserved`\n | `definition.eventId`\n | `definition.wixFeeConfig.type`\n | `definition.salePeriod.hideNotOnSale`\n | `definition.saleStatus`\n | `definition.state`\n | `definition.pricing.pricingOptions.options`\n | `definition.pricing.pricingType`,\n 5\n >\n >;\n}\n\nexport function updateTicketDefinition(\n httpClient: HttpClient\n): UpdateTicketDefinitionSignature {\n return (\n definitionId: string,\n eventId: string,\n options?: UpdateTicketDefinitionOptions\n ) =>\n universalUpdateTicketDefinition(\n definitionId,\n eventId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateTicketDefinitionSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`updateTicketDefinition()`](/ticket-definitions-v2/update-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`updateTicketDefinition()`](/ticket-definitions-v2/update-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.updateTicketDefinition()`, and replace it with `ticketDefinitionsV2.updateTicketDefinition()`. Update your code to work with the new `updateTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n *\n * Updates a ticket definition.\n *\n * See [Partial Updates](/wix-events-v2/partial-updates) for more information.\n * @param - Ticket definition ID.\n * @param - Event ID.\n * @param - Details of the ticket definition to update.\n * @param - Ticket definition details to update.\n * @deprecated\n */\n (\n definitionId: string,\n eventId: string,\n options?: UpdateTicketDefinitionOptions\n ): Promise<\n NonNullablePaths<\n UpdateTicketDefinitionResponse,\n | `definition._id`\n | `definition.price.amount`\n | `definition.price.currency`\n | `definition.free`\n | `definition.name`\n | `definition.description`\n | `definition.limitPerCheckout`\n | `definition.orderIndex`\n | `definition.policy`\n | `definition.dashboard.hidden`\n | `definition.dashboard.sold`\n | `definition.dashboard.limited`\n | `definition.dashboard.ticketsSold`\n | `definition.dashboard.ticketsReserved`\n | `definition.eventId`\n | `definition.wixFeeConfig.type`\n | `definition.salePeriod.hideNotOnSale`\n | `definition.saleStatus`\n | `definition.state`\n | `definition.pricing.pricingOptions.options`\n | `definition.pricing.pricingType`,\n 5\n >\n >;\n}\n\nexport function deleteTicketDefinition(\n httpClient: HttpClient\n): DeleteTicketDefinitionSignature {\n return (eventId: string, options?: DeleteTicketDefinitionOptions) =>\n universalDeleteTicketDefinition(\n eventId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteTicketDefinitionSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`deleteTicketDefinition()`](/ticket-definitions-v2/delete-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`deleteTicketDefinition()`](/ticket-definitions-v2/delete-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.deleteTicketDefinition()`, and replace it with `ticketDefinitionsV2.deleteTicketDefinition()`. Update your code to work with the new `deleteTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Deletes a ticket definition.\n * @param - Event ID.\n * @param - Details of tickets to delete.\n * @deprecated\n */\n (eventId: string, options?: DeleteTicketDefinitionOptions): Promise<void>;\n}\n\nexport function changeCurrency(\n httpClient: HttpClient\n): ChangeCurrencySignature {\n return (options?: NonNullablePaths<ChangeCurrencyOptions, `currency`, 2>) =>\n universalChangeCurrency(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ChangeCurrencySignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available at [`changeCurrency()`](/ticket-definitions-v2/change-currency).\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`changeCurrency()`](/ticket-definitions-v2/change-currency).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.changeCurrency()`, and replace it with `ticketDefinitionsV2.changeCurrency()`. Update your code to work with the new `changeCurrency()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Changes the currency for all tickets per event.\n *\n * @deprecated\n */\n (\n options?: NonNullablePaths<ChangeCurrencyOptions, `currency`, 2>\n ): Promise<void>;\n}\n\nexport const onTicketDefinitionCreated = EventDefinition(\n 'wix.events.ticketing.events.TicketDefinitionCreated',\n false,\n (event: TicketDefinitionCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'data.timestamp' }],\n },\n ])\n )\n)<TicketDefinitionCreatedEnvelope>();\nexport const onTicketDefinitionDeleted = EventDefinition(\n 'wix.events.ticketing.events.TicketDefinitionDeleted',\n false,\n (event: TicketDefinitionDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'data.timestamp' }],\n },\n ])\n )\n)<TicketDefinitionDeletedEnvelope>();\nexport const onTicketDefinitionUpdated = EventDefinition(\n 'wix.events.ticketing.events.TicketDefinitionUpdated',\n false,\n (event: TicketDefinitionUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'data.timestamp' }],\n },\n ])\n )\n)<TicketDefinitionUpdatedEnvelope>();\n\nexport {\n BaseEventMetadata,\n BulkCopyTicketDefinitionsByEventIdRequest,\n BulkCopyTicketDefinitionsByEventIdResponse,\n ById,\n ChangeCurrencyOptions,\n ChangeCurrencyRequest,\n ChangeCurrencyResponse,\n CopiedTicketDefinition,\n CreateTicketDefinitionOptions,\n CreateTicketDefinitionRequest,\n CreateTicketDefinitionResponse,\n CursorPaging,\n Cursors,\n Dashboard,\n DefinitionsQueryBuilder,\n DefinitionsQueryResult,\n DeleteTicketDefinitionOptions,\n DeleteTicketDefinitionOptionsDeleteOneOf,\n DeleteTicketDefinitionRequest,\n DeleteTicketDefinitionRequestDeleteOneOf,\n DeleteTicketDefinitionResponse,\n FacetCounts,\n FeeType,\n GetTicketDefinitionOptions,\n GetTicketDefinitionRequest,\n GetTicketDefinitionResponse,\n GroupBy,\n IdentificationData,\n IdentificationDataIdOneOf,\n ListTicketDefinitionsOptions,\n ListTicketDefinitionsRequest,\n ListTicketDefinitionsResponse,\n MessageEnvelope,\n Money,\n OriginatedFrom,\n Paging,\n PagingMetadataV2,\n PaidTicketDefinitionExistsRequest,\n PaidTicketDefinitionExistsResponse,\n PricingOption,\n PricingOptions,\n QueryTicketDefinitionsOptions,\n QueryTicketDefinitionsRequest,\n QueryTicketDefinitionsResponse,\n QueryTicketDefinitionsV2Options,\n QueryTicketDefinitionsV2Request,\n QueryTicketDefinitionsV2Response,\n QueryV2,\n QueryV2PagingMethodOneOf,\n ResponseMetaData,\n SortOrder,\n Sorting,\n State,\n TicketDefinition,\n TicketDefinitionCreated,\n TicketDefinitionCreatedEnvelope,\n TicketDefinitionData,\n TicketDefinitionDeleted,\n TicketDefinitionDeletedEnvelope,\n TicketDefinitionFieldset,\n TicketDefinitionStateEnumState,\n TicketDefinitionUpdated,\n TicketDefinitionUpdatedEnvelope,\n TicketPricing,\n TicketPricingPriceOneOf,\n TicketSalePeriod,\n TicketSaleStatus,\n Type,\n UpdateTicketDefinitionOptions,\n UpdateTicketDefinitionRequest,\n UpdateTicketDefinitionResponse,\n WebhookIdentityType,\n WixFeeConfig,\n} from './events-v1-ticket-definition-ticket-definitions.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixEventsV1TicketDefinition from './events-v1-ticket-definition-ticket-definitions.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface TicketDefinition {\n /**\n * Ticket definition ID.\n * @format GUID\n */\n _id?: string;\n /** Ticket price. */\n price?: Money;\n /** Whether the ticket is free (read only). */\n free?: boolean;\n /** Ticket name. */\n name?: string;\n /** Ticket description. */\n description?: string;\n /**\n * Limit of tickets that can be purchased per checkout.\n * Set to 20 for unlimited ticket definition.\n * @max 20\n */\n limitPerCheckout?: number;\n /** Custom sort index. */\n orderIndex?: number;\n /** Policy information plain text block, as printed on the ticket. */\n policy?: string;\n /** Sensitive dashboard data. */\n dashboard?: Dashboard;\n /**\n * Event ID associated with the ticket.\n * @format GUID\n */\n eventId?: string;\n /**\n * Configuration of the fixed-rate Wix ticket service fee that is applied at checkout to each ticket sold.\n * @readonly\n */\n wixFeeConfig?: WixFeeConfig;\n /** Ticket sale period. */\n salePeriod?: TicketSalePeriod;\n /**\n * Ticket sale status.\n * @readonly\n */\n saleStatus?: TicketSaleStatusWithLiterals;\n /** Ticket state. */\n state?: TicketDefinitionStateEnumStateWithLiterals[];\n /** Ticket pricing. */\n pricing?: TicketPricing;\n}\n\nexport interface Money {\n /**\n * @internal\n * @internal\n * @format DECIMAL_VALUE\n * @deprecated\n */\n amount?: string;\n /**\n * Three-letter currency code in\n * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n * @format CURRENCY\n */\n currency?: string;\n /**\n * Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, starts with a single (-), to indicate that the amount is negative.\n * @format DECIMAL_VALUE\n */\n value?: string | null;\n}\n\nexport interface Dashboard {\n /** Whether ticket is hidden and cannot be sold. */\n hidden?: boolean;\n /**\n * Number of tickets sold and reserved.\n * @deprecated\n */\n sold?: number;\n /** Whether the ticket has limited quantity. */\n limited?: boolean;\n /** Ticket limit. `NULL` for unlimited ticket definitions. */\n quantity?: number | null;\n /** Number of unsold tickets. `NULL` for unlimited ticket definitions. */\n unsold?: number | null;\n /** Number of tickets sold. */\n ticketsSold?: number;\n /** Number of tickets reserved. */\n ticketsReserved?: number;\n}\n\nexport interface WixFeeConfig {\n /**\n * Fee calculation method.\n *\n * Supported values: `\"FEE_ADDED\"`, `\"FEE_INCLUDED\"`, `\"FEE_ADDED_AT_CHECKOUT\"`\n *\n * Default: `\"FEE_ADDED_AT_CHECKOUT\"`\n */\n type?: FeeTypeWithLiterals;\n}\n\nexport enum FeeType {\n /** Fee is added to the ticket price at checkout. */\n FEE_ADDED = 'FEE_ADDED',\n /** Seller absorbs the fee. It's deducted from the ticket price. */\n FEE_INCLUDED = 'FEE_INCLUDED',\n /** Fee is added to the ticket price at checkout. */\n FEE_ADDED_AT_CHECKOUT = 'FEE_ADDED_AT_CHECKOUT',\n}\n\n/** @enumType */\nexport type FeeTypeWithLiterals =\n | FeeType\n | 'FEE_ADDED'\n | 'FEE_INCLUDED'\n | 'FEE_ADDED_AT_CHECKOUT';\n\nexport interface TicketSalePeriod {\n /** Ticket sale start timestamp. */\n startDate?: Date | null;\n /** Ticket sale end timestamp. */\n endDate?: Date | null;\n /** Whether to hide this ticket if it isn't on sale. */\n hideNotOnSale?: boolean;\n}\n\nexport enum TicketSaleStatus {\n /** Ticket sale is scheduled to start. */\n SALE_SCHEDULED = 'SALE_SCHEDULED',\n /** Ticket sale has started. */\n SALE_STARTED = 'SALE_STARTED',\n /** Ticket sale has ended. */\n SALE_ENDED = 'SALE_ENDED',\n}\n\n/** @enumType */\nexport type TicketSaleStatusWithLiterals =\n | TicketSaleStatus\n | 'SALE_SCHEDULED'\n | 'SALE_STARTED'\n | 'SALE_ENDED';\n\nexport enum TicketDefinitionStateEnumState {\n INCLUDE_HIDDEN_NOT_ON_SALE = 'INCLUDE_HIDDEN_NOT_ON_SALE',\n}\n\n/** @enumType */\nexport type TicketDefinitionStateEnumStateWithLiterals =\n | TicketDefinitionStateEnumState\n | 'INCLUDE_HIDDEN_NOT_ON_SALE';\n\nexport interface TicketPricing extends TicketPricingPriceOneOf {\n /** Ticket price which is read only. */\n fixedPrice?: Money;\n /** Min price per ticket, customizable. */\n minPrice?: Money;\n /** Ticket pricing options. */\n pricingOptions?: PricingOptions;\n /**\n * Ticket pricing type.\n * @readonly\n */\n pricingType?: TypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TicketPricingPriceOneOf {\n /** Ticket price which is read only. */\n fixedPrice?: Money;\n /** Min price per ticket, customizable. */\n minPrice?: Money;\n /** Ticket pricing options. */\n pricingOptions?: PricingOptions;\n}\n\nexport interface PricingOptions {\n /** Multiple ticket pricing options. */\n options?: PricingOption[];\n}\n\nexport interface PricingOption {\n /**\n * Ticket pricing option ID.\n * @format GUID\n */\n _id?: string | null;\n /**\n * Ticket pricing option name.\n * @minLength 1\n * @maxLength 200\n */\n name?: string | null;\n /** Ticket pricing option price. */\n price?: Money;\n}\n\nexport enum Type {\n STANDARD = 'STANDARD',\n DONATION = 'DONATION',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'STANDARD' | 'DONATION';\n\nexport interface QueryTicketDefinitionsRequest {\n /** Offset. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */\n offset?: number;\n /**\n * Limit. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).\n * @max 100\n */\n limit?: number;\n /**\n * Set of fields to return in the response. See [fieldsets](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_ticket-definition-fieldset).\n * @maxSize 20\n */\n fieldset?: TicketDefinitionFieldsetWithLiterals[];\n /** Filter. See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions). */\n filter?: Record<string, any> | null;\n /**\n * Sort order. Defaults to: \"created:asc\".\n * See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions).\n * @maxLength 100\n */\n sort?: string;\n /**\n * Filter facets to include in the response.\n * See [supported facets](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions).\n * @maxLength 20\n * @maxSize 10\n */\n facet?: string[];\n}\n\nexport enum TicketDefinitionFieldset {\n /** Include `policy` in the response. */\n POLICY = 'POLICY',\n /** Include `dashboard` in the response. */\n DASHBOARD = 'DASHBOARD',\n}\n\n/** @enumType */\nexport type TicketDefinitionFieldsetWithLiterals =\n | TicketDefinitionFieldset\n | 'POLICY'\n | 'DASHBOARD';\n\nexport interface QueryTicketDefinitionsResponse {\n /** Total ticket definitions matching the given filters. */\n total?: number;\n /** Offset. */\n offset?: number;\n /**\n * Limit.\n * @max 100\n */\n limit?: number;\n /** Ticket definitions. */\n definitions?: TicketDefinition[];\n /** Filter facets. */\n facets?: Record<string, FacetCounts>;\n}\n\nexport interface FacetCounts {\n /** Facet counts aggregated per value. */\n counts?: Record<string, number>;\n}\n\nexport interface QueryTicketDefinitionsV2Request {\n /** Query request object. */\n query?: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\n /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n fields?: string[];\n /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryTicketDefinitionsV2Response {\n /** Ticket definitions. */\n definitions?: TicketDefinition[];\n /** Paging metadata definitions. */\n metadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface ListTicketDefinitionsRequest {\n /**\n * Event ID.\n * @format GUID\n * @maxSize 100\n */\n eventId?: string[];\n /** Offset. */\n offset?: number;\n /**\n * Paging limit.\n * @max 100\n */\n limit?: number;\n /**\n * Predefined sets of fields to return.\n * - `DASHBOARD`: Returns `dashboard`.\n * - `POLICY`: Returns `policy`.\n *\n * Default: If `fieldset` is omitted from the request, `id`, `price`, `free`, `name`, `limitPerCheckout`, `orderIndex`, `eventId`.\n *\n * @maxSize 20\n */\n fieldset?: TicketDefinitionFieldsetWithLiterals[];\n /**\n * Event creator ID.\n * @format GUID\n * @maxSize 1\n */\n eventCreatorId?: string[];\n /**\n * Filter by ticket definition state.\n *\n * Supported values: `\"VISIBLE\"`, `\"HIDDEN\"`, `\"FREE\"`, `\"PAID\"`\n * @maxSize 20\n */\n state?: StateWithLiterals[];\n /**\n * Sort order.\n *\n * Default: `\"created\"`:`\"asc\"`\n * @maxLength 100\n */\n sort?: string;\n /**\n * Ticket sale status.\n *\n * Supported values: `\"SALE_SCHEDULED\"`, `\"SALE_STARTED\"`, `\"SALE_ENDED\"`\n * @maxSize 5\n */\n saleStatus?: TicketSaleStatusWithLiterals[];\n /**\n * Filter facets.\n * @maxLength 20\n * @maxSize 10\n */\n facet?: string[];\n}\n\nexport enum State {\n /** The ticket is available for purchase. */\n VISIBLE = 'VISIBLE',\n /** The ticket is unavailable for purchase. */\n HIDDEN = 'HIDDEN',\n /** The ticket price is 0. */\n FREE = 'FREE',\n /** The ticket price is greater than 0. */\n PAID = 'PAID',\n}\n\n/** @enumType */\nexport type StateWithLiterals = State | 'VISIBLE' | 'HIDDEN' | 'FREE' | 'PAID';\n\nexport enum GroupBy {\n /** No grouping. */\n NONE = 'NONE',\n /** Groups by event created date with descending sorting. */\n EVENT_CREATED_DESC = 'EVENT_CREATED_DESC',\n /** Groups by event created date with ascending sorting. */\n EVENT_CREATED_ASC = 'EVENT_CREATED_ASC',\n}\n\n/** @enumType */\nexport type GroupByWithLiterals =\n | GroupBy\n | 'NONE'\n | 'EVENT_CREATED_DESC'\n | 'EVENT_CREATED_ASC';\n\nexport interface ListTicketDefinitionsResponse {\n /** Meta data. */\n metaData?: ResponseMetaData;\n /** Retrieved ticket definitions. */\n definitions?: TicketDefinition[];\n /** Filter facets. */\n facets?: Record<string, FacetCounts>;\n}\n\nexport interface ResponseMetaData {\n /** Number of items in the response. */\n count?: number;\n /** Offset of items. */\n offset?: number;\n /** Total number of matching items. */\n total?: number;\n}\n\nexport interface GetTicketDefinitionRequest {\n /**\n * Ticket definition ID.\n * @format GUID\n */\n definitionId: string;\n /**\n * Predefined sets of fields to return.\n * - `DASHBOARD`: Returns `dashboard`.\n * - `POLICY`: Returns `policy`.\n *\n * Default: If `fieldset` is omitted from the request, `id`, `price`, `free`, `name`, `limitPerCheckout`, `orderIndex`, `eventId`.\n * @maxSize 20\n */\n fieldset?: TicketDefinitionFieldsetWithLiterals[];\n}\n\nexport interface GetTicketDefinitionResponse {\n /** Retrieved ticket definition. */\n definition?: TicketDefinition;\n}\n\nexport interface CreateTicketDefinitionRequest {\n /**\n * Event ID.\n * @format GUID\n */\n eventId: string;\n /** Ticket definition data. */\n definition: TicketDefinitionData;\n}\n\nexport interface TicketDefinitionData {\n /**\n * Ticket name.\n * @maxLength 30\n */\n name?: string | null;\n /** Ticket price. */\n price?: Money;\n /**\n * Ticket description.\n * @maxLength 500\n */\n description?: string | null;\n /** Whether this ticket type is limited in quantity. */\n limited?: boolean;\n /**\n * Limit for this ticket type.\n *\n * `NULL` for unlimited.\n */\n quantity?: number | null;\n /** Custom sort index for manual tickets ordering implementation. */\n orderIndex?: number;\n /**\n * Policy information in plain text (as listed on the ticket).\n * @maxLength 1000\n */\n policy?: string | null;\n /** Whether this ticket type is hidden to customers and cannot be purchased. */\n hidden?: boolean;\n /** Configuration of the fixed-rate Wix ticket service fee that is applied to each ticket sold. */\n wixFeeConfig?: WixFeeConfig;\n /** Ticket sale period. */\n salePeriod?: TicketSalePeriod;\n /** Ticket pricing. */\n pricing?: TicketPricing;\n}\n\nexport interface CreateTicketDefinitionResponse {\n /** Created ticket definition. */\n definition?: TicketDefinition;\n}\n\nexport interface TicketDefinitionCreated {\n /** Ticket Definition created timestamp in ISO UTC format. */\n timestamp?: Date | null;\n /**\n * Ticket Definition ID.\n * @format GUID\n */\n ticketDefinitionId?: string;\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n /** Originated from. */\n originatedFrom?: OriginatedFrom;\n}\n\nexport interface OriginatedFrom {\n /**\n * Instance ID. Indicates the original app instance which current entity originated from.\n * @format GUID\n */\n instanceId?: string;\n /**\n * Event ID. Indicates the original event which current entity originated from.\n * @format GUID\n */\n eventId?: string;\n /**\n * Event ID. Indicates the original entity which current entity originated from.\n * @format GUID\n */\n entityId?: string;\n}\n\nexport interface UpdateTicketDefinitionRequest {\n /**\n * Event ID.\n * @format GUID\n */\n eventId: string;\n /**\n * Ticket definition ID.\n * @format GUID\n */\n definitionId: string;\n /** Ticket definition data. */\n definition?: TicketDefinitionData;\n /** Set of field paths, specifying which parts of ticket definition to update. */\n fields?: string[];\n}\n\nexport interface UpdateTicketDefinitionResponse {\n /** Updated ticket definition. */\n definition?: TicketDefinition;\n}\n\nexport interface TicketDefinitionUpdated {\n /** Ticket definition updated timestamp in ISO UTC format. */\n timestamp?: Date | null;\n /**\n * Ticket definition ID.\n * @format GUID\n */\n ticketDefinitionId?: string;\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n}\n\nexport interface DeleteTicketDefinitionRequest\n extends DeleteTicketDefinitionRequestDeleteOneOf {\n /** Ticket definitions to delete. */\n byId?: ById;\n /** Whether to delete all event tickets. */\n all?: boolean;\n /**\n * Event ID.\n * @format GUID\n */\n eventId: string;\n}\n\n/** @oneof */\nexport interface DeleteTicketDefinitionRequestDeleteOneOf {\n /** Ticket definitions to delete. */\n byId?: ById;\n /** Whether to delete all event tickets. */\n all?: boolean;\n}\n\nexport interface ById {\n /**\n * Ticket definition IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n definitionId?: string[];\n}\n\nexport interface DeleteTicketDefinitionResponse {}\n\nexport interface TicketDefinitionDeleted {\n /** Ticket definition deleted timestamp in ISO UTC format. */\n timestamp?: Date | null;\n /**\n * Ticket definition ID.\n * @format GUID\n */\n ticketDefinitionId?: string;\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n}\n\nexport interface ChangeCurrencyRequest {\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n /**\n * Event currency, in 3-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n * @minLength 3\n * @maxLength 3\n */\n currency: string;\n}\n\nexport interface ChangeCurrencyResponse {}\n\nexport interface BulkCopyTicketDefinitionsByEventIdRequest {\n /** Origin instance ID. */\n originInstanceId?: string | null;\n /**\n * Origin Event ID.\n * @format GUID\n */\n originEventId?: string;\n /**\n * Target Event ID.\n * @format GUID\n */\n targetEventId?: string;\n}\n\nexport interface BulkCopyTicketDefinitionsByEventIdResponse {\n /** Copied ticket definitions. */\n definitions?: CopiedTicketDefinition[];\n}\n\nexport interface CopiedTicketDefinition {\n /** Origin Ticket definition ID. */\n originTicketDefinitionId?: string;\n /** Ticket definition ID. */\n ticketDefinitionId?: string;\n}\n\nexport interface PaidTicketDefinitionExistsRequest {}\n\nexport interface PaidTicketDefinitionExistsResponse {\n /** Paid exists. */\n paidExists?: boolean;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface TicketDefinitionCreatedEnvelope {\n data: TicketDefinitionCreated;\n metadata: BaseEventMetadata;\n}\n\n/** @permissionScope Manage Events - all permissions\n * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS\n * @permissionScope Manage Ticket Definitions\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF\n * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS\n * @webhook\n * @eventType wix.events.ticketing.events.TicketDefinitionCreated\n * @serviceIdentifier wix.events.ticketing.TicketDefinitionManagement\n * @slug ticket_definition_created\n */\nexport declare function onTicketDefinitionCreated(\n handler: (event: TicketDefinitionCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface TicketDefinitionDeletedEnvelope {\n data: TicketDefinitionDeleted;\n metadata: BaseEventMetadata;\n}\n\n/** @permissionScope Manage Events - all permissions\n * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS\n * @permissionScope Manage Ticket Definitions\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF\n * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS\n * @webhook\n * @eventType wix.events.ticketing.events.TicketDefinitionDeleted\n * @serviceIdentifier wix.events.ticketing.TicketDefinitionManagement\n * @slug ticket_definition_deleted\n */\nexport declare function onTicketDefinitionDeleted(\n handler: (event: TicketDefinitionDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface TicketDefinitionUpdatedEnvelope {\n data: TicketDefinitionUpdated;\n metadata: BaseEventMetadata;\n}\n\n/** @permissionScope Manage Events - all permissions\n * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS\n * @permissionScope Manage Ticket Definitions\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF\n * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS\n * @webhook\n * @eventType wix.events.ticketing.events.TicketDefinitionUpdated\n * @serviceIdentifier wix.events.ticketing.TicketDefinitionManagement\n * @slug ticket_definition_updated\n */\nexport declare function onTicketDefinitionUpdated(\n handler: (event: TicketDefinitionUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinition()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinition()`, and replace it with `ticketDefinitionsV2.queryTicketDefinition()`. Update your code to work with the new `createTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 100 ticket definitions.\n * @public\n * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS\n * @applicableIdentity APP\n * @fqn wix.events.ticketing.TicketDefinitionManagement.QueryTicketDefinitions\n * @deprecated\n * @targetRemovalDate 2024-12-01\n */\nexport async function queryTicketDefinitions(\n options?: QueryTicketDefinitionsOptions\n): Promise<\n NonNullablePaths<\n QueryTicketDefinitionsResponse,\n | `total`\n | `offset`\n | `limit`\n | `definitions`\n | `definitions.${number}._id`\n | `definitions.${number}.price.amount`\n | `definitions.${number}.price.currency`\n | `definitions.${number}.free`\n | `definitions.${number}.name`\n | `definitions.${number}.description`\n | `definitions.${number}.limitPerCheckout`\n | `definitions.${number}.orderIndex`\n | `definitions.${number}.policy`\n | `definitions.${number}.dashboard.hidden`\n | `definitions.${number}.dashboard.sold`\n | `definitions.${number}.dashboard.limited`\n | `definitions.${number}.dashboard.ticketsSold`\n | `definitions.${number}.dashboard.ticketsReserved`\n | `definitions.${number}.eventId`\n | `definitions.${number}.wixFeeConfig.type`\n | `definitions.${number}.salePeriod.hideNotOnSale`\n | `definitions.${number}.saleStatus`\n | `definitions.${number}.pricing.pricingType`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n offset: options?.offset,\n limit: options?.limit,\n fieldset: options?.fieldset,\n filter: options?.filter,\n sort: options?.sort,\n facet: options?.facet,\n });\n\n const reqOpts =\n ambassadorWixEventsV1TicketDefinition.queryTicketDefinitions(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n offset: '$[0].offset',\n limit: '$[0].limit',\n fieldset: '$[0].fieldset',\n filter: '$[0].filter',\n sort: '$[0].sort',\n facet: '$[0].facet',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface QueryTicketDefinitionsOptions {\n /** Offset. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */\n offset?: number;\n /**\n * Limit. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).\n * @max 100\n */\n limit?: number;\n /**\n * Set of fields to return in the response. See [fieldsets](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_ticket-definition-fieldset).\n * @maxSize 20\n */\n fieldset?: TicketDefinitionFieldsetWithLiterals[];\n /** Filter. See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions). */\n filter?: Record<string, any> | null;\n /**\n * Sort order. Defaults to: \"created:asc\".\n * See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions).\n * @maxLength 100\n */\n sort?: string;\n /**\n * Filter facets to include in the response.\n * See [supported facets](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions).\n * @maxLength 20\n * @maxSize 10\n */\n facet?: string[];\n}\n\n/**\n * **Deprecated.** This function will continue to work until October 29, 2024, but a newer version is available at [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinitions()`, and replace it with `ticketDefinitionsV2.queryTicketDefinitions()`. Update your code to work with the new `queryTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 1,000 ticket definitions, given the provided paging and filtering.\n * @public\n * @documentationMaturity preview\n * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS\n * @applicableIdentity APP\n * @fqn wix.events.ticketing.TicketDefinitionManagement.QueryTicketDefinitionsV2\n * @deprecated\n * @targetRemovalDate 2024-12-01\n */\nexport function queryTicketDefinitionsV2(\n options?: QueryTicketDefinitionsV2Options\n): DefinitionsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n TicketDefinition,\n 'CURSOR',\n QueryTicketDefinitionsV2Request,\n QueryTicketDefinitionsV2Response\n >({\n func: async (payload: QueryTicketDefinitionsV2Request) => {\n const reqOpts =\n ambassadorWixEventsV1TicketDefinition.queryTicketDefinitionsV2({\n ...payload,\n ...(options ?? {}),\n });\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryTicketDefinitionsV2Request['query']) => {\n const args = [query, options] as [\n QueryTicketDefinitionsV2Request['query'],\n QueryTicketDefinitionsV2Options\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryTicketDefinitionsV2Response>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.definitions,\n pagingMetadata: transformedData?.metadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\nexport interface QueryTicketDefinitionsV2Options {}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface DefinitionsQueryResult extends QueryCursorResult {\n items: TicketDefinition[];\n query: DefinitionsQueryBuilder;\n next: () => Promise<DefinitionsQueryResult>;\n prev: () => Promise<DefinitionsQueryResult>;\n}\n\nexport interface DefinitionsQueryBuilder {\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => DefinitionsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => DefinitionsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<DefinitionsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.events.ticketing.TicketDefinitionManagement.QueryTicketDefinitionsV2\n * @requiredField query\n */\nexport async function typedQueryTicketDefinitionsV2(\n query: QueryV2,\n options?: QueryTicketDefinitionsV2Options\n): Promise<\n NonNullablePaths<\n QueryTicketDefinitionsV2Response,\n | `definitions`\n | `definitions.${number}._id`\n | `definitions.${number}.price.amount`\n | `definitions.${number}.price.currency`\n | `definitions.${number}.free`\n | `definitions.${number}.name`\n | `definitions.${number}.description`\n | `definitions.${number}.limitPerCheckout`\n | `definitions.${number}.orderIndex`\n | `definitions.${number}.policy`\n | `definitions.${number}.dashboard.hidden`\n | `definitions.${number}.dashboard.sold`\n | `definitions.${number}.dashboard.limited`\n | `definitions.${number}.dashboard.ticketsSold`\n | `definitions.${number}.dashboard.ticketsReserved`\n | `definitions.${number}.eventId`\n | `definitions.${number}.wixFeeConfig.type`\n | `definitions.${number}.salePeriod.hideNotOnSale`\n | `definitions.${number}.saleStatus`\n | `definitions.${number}.pricing.pricingType`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n ...options,\n });\n\n const reqOpts =\n ambassadorWixEventsV1TicketDefinition.queryTicketDefinitionsV2(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a substitute is available. Use the [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinitions()`, and replace it with `ticketDefinitionsV2.queryTicketDefinitions()`. Update your code to work with the new `queryTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 100 ticket definitions, with basic filter support.\n * @public\n * @param options - Details for the tickets to retrieve.\n * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS\n * @applicableIdentity APP\n * @fqn wix.events.ticketing.TicketDefinitionManagement.ListTicketDefinitions\n * @deprecated\n * @targetRemovalDate 2024-12-01\n */\nexport async function listTicketDefinitions(\n options?: ListTicketDefinitionsOptions\n): Promise<\n NonNullablePaths<\n ListTicketDefinitionsResponse,\n | `metaData.count`\n | `metaData.offset`\n | `metaData.total`\n | `definitions`\n | `definitions.${number}._id`\n | `definitions.${number}.price.amount`\n | `definitions.${number}.price.currency`\n | `definitions.${number}.free`\n | `definitions.${number}.name`\n | `definitions.${number}.description`\n | `definitions.${number}.limitPerCheckout`\n | `definitions.${number}.orderIndex`\n | `definitions.${number}.policy`\n | `definitions.${number}.dashboard.hidden`\n | `definitions.${number}.dashboard.sold`\n | `definitions.${number}.dashboard.limited`\n | `definitions.${number}.dashboard.ticketsSold`\n | `definitions.${number}.dashboard.ticketsReserved`\n | `definitions.${number}.eventId`\n | `definitions.${number}.wixFeeConfig.type`\n | `definitions.${number}.salePeriod.hideNotOnSale`\n | `definitions.${number}.saleStatus`\n | `definitions.${number}.pricing.pricingType`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n eventId: options?.eventId,\n offset: options?.offset,\n limit: options?.limit,\n fieldset: options?.fieldset,\n eventCreatorId: options?.eventCreatorId,\n state: options?.state,\n sort: options?.sort,\n saleStatus: options?.saleStatus,\n facet: options?.facet,\n });\n\n const reqOpts =\n ambassadorWixEventsV1TicketDefinition.listTicketDefinitions(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n eventId: '$[0].eventId',\n offset: '$[0].offset',\n limit: '$[0].limit',\n fieldset: '$[0].fieldset',\n eventCreatorId: '$[0].eventCreatorId',\n state: '$[0].state',\n sort: '$[0].sort',\n saleStatus: '$[0].saleStatus',\n facet: '$[0].facet',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListTicketDefinitionsOptions {\n /**\n * Event ID.\n * @format GUID\n * @maxSize 100\n */\n eventId?: string[];\n /** Offset. */\n offset?: number;\n /**\n * Paging limit.\n * @max 100\n */\n limit?: number;\n /**\n * Predefined sets of fields to return.\n * - `DASHBOARD`: Returns `dashboard`.\n * - `POLICY`: Returns `policy`.\n *\n * Default: If `fieldset` is omitted from the request, `id`, `price`, `free`, `name`, `limitPerCheckout`, `orderIndex`, `eventId`.\n * @maxSize 20\n */\n fieldset?: TicketDefinitionFieldsetWithLiterals[];\n /**\n * Event creator ID.\n * @format GUID\n * @maxSize 1\n */\n eventCreatorId?: string[];\n /**\n * Filter by ticket definition state.\n *\n * Supported values: `\"VISIBLE\"`, `\"HIDDEN\"`, `\"FREE\"`, `\"PAID\"`\n * @maxSize 20\n */\n state?: StateWithLiterals[];\n /**\n * Sort order.\n *\n * Default: `\"created\"`:`\"asc\"`.\n *\n * See [Ticket Definitions Sort](/wix-events-v2/ticketdefinitions/ticket-definitions-sort) for more information.\n *\n *\n *\n *\n * @maxLength 100\n */\n sort?: string;\n /**\n * Ticket sale status.\n *\n * Supported values: `\"SALE_SCHEDULED\"`, `\"SALE_STARTED\"`, `\"SALE_ENDED\"`\n * @maxSize 5\n */\n saleStatus?: TicketSaleStatusWithLiterals[];\n /**\n * Filter facets.\n * @maxLength 20\n * @maxSize 10\n */\n facet?: string[];\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`getTicketDefinition()`](/ticket-definitions-v2/get-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`getTicketDefinition()`](/ticket-definitions-v2/get-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.getTicketDefinition()`, and replace it with `ticketDefinitionsV2.getTicketDefinition()`. Update your code to work with the new `getTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a ticket definition.\n * @param definitionId - Ticket definition ID.\n * @public\n * @requiredField definitionId\n * @param options - Details for the ticket to retrieve.\n * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS\n * @applicableIdentity APP\n * @returns Retrieved ticket definition.\n * @fqn wix.events.ticketing.TicketDefinitionManagement.GetTicketDefinition\n * @deprecated\n * @targetRemovalDate 2024-12-01\n */\nexport async function getTicketDefinition(\n definitionId: string,\n options?: GetTicketDefinitionOptions\n): Promise<\n NonNullablePaths<\n TicketDefinition,\n | `_id`\n | `price.amount`\n | `price.currency`\n | `free`\n | `name`\n | `description`\n | `limitPerCheckout`\n | `orderIndex`\n | `policy`\n | `dashboard.hidden`\n | `dashboard.sold`\n | `dashboard.limited`\n | `dashboard.ticketsSold`\n | `dashboard.ticketsReserved`\n | `eventId`\n | `wixFeeConfig.type`\n | `salePeriod.hideNotOnSale`\n | `saleStatus`\n | `state`\n | `pricing.pricingOptions.options`\n | `pricing.pricingType`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n definitionId: definitionId,\n fieldset: options?.fieldset,\n });\n\n const reqOpts =\n ambassadorWixEventsV1TicketDefinition.getTicketDefinition(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.definition!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n definitionId: '$[0]',\n fieldset: '$[1].fieldset',\n },\n singleArgumentUnchanged: false,\n },\n ['definitionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetTicketDefinitionOptions {\n /**\n * Predefined sets of fields to return.\n * - `DASHBOARD`: Returns `dashboard`.\n * - `POLICY`: Returns `policy`.\n *\n * Default: If `fieldset` is omitted from the request, `id`, `price`, `free`, `name`, `limitPerCheckout`, `orderIndex`, `eventId`.\n * @maxSize 20\n */\n fieldset?: TicketDefinitionFieldsetWithLiterals[];\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`createTicketDefinition()`](/ticket-definitions-v2/create-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`createTicketDefinition()`](/ticket-definitions-v2/create-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.createTicketDefinition()`, and replace it with `ticketDefinitionsV2.createTicketDefinition()`. Update your code to work with the new `createTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Creates a ticket definition (and enables ticket sales).\n * @param eventId - Event ID.\n * @public\n * @requiredField eventId\n * @requiredField options\n * @requiredField options.definition\n * @requiredField options.definition.name\n * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS\n * @applicableIdentity APP\n * @fqn wix.events.ticketing.TicketDefinitionManagement.CreateTicketDefinition\n * @deprecated\n * @targetRemovalDate 2024-12-01\n */\nexport async function createTicketDefinition(\n eventId: string,\n options: NonNullablePaths<\n CreateTicketDefinitionOptions,\n `definition` | `definition.name`,\n 3\n >\n): Promise<\n NonNullablePaths<\n CreateTicketDefinitionResponse,\n | `definition._id`\n | `definition.price.amount`\n | `definition.price.currency`\n | `definition.free`\n | `definition.name`\n | `definition.description`\n | `definition.limitPerCheckout`\n | `definition.orderIndex`\n | `definition.policy`\n | `definition.dashboard.hidden`\n | `definition.dashboard.sold`\n | `definition.dashboard.limited`\n | `definition.dashboard.ticketsSold`\n | `definition.dashboard.ticketsReserved`\n | `definition.eventId`\n | `definition.wixFeeConfig.type`\n | `definition.salePeriod.hideNotOnSale`\n | `definition.saleStatus`\n | `definition.state`\n | `definition.pricing.pricingOptions.options`\n | `definition.pricing.pricingType`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n eventId: eventId,\n definition: options?.definition,\n });\n\n const reqOpts =\n ambassadorWixEventsV1TicketDefinition.createTicketDefinition(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n eventId: '$[0]',\n definition: '$[1].definition',\n },\n singleArgumentUnchanged: false,\n },\n ['eventId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateTicketDefinitionOptions {\n /** Ticket definition data. */\n definition: TicketDefinitionData;\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`updateTicketDefinition()`](/ticket-definitions-v2/update-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`updateTicketDefinition()`](/ticket-definitions-v2/update-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.updateTicketDefinition()`, and replace it with `ticketDefinitionsV2.updateTicketDefinition()`. Update your code to work with the new `updateTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n *\n * Updates a ticket definition.\n *\n * See [Partial Updates](/wix-events-v2/partial-updates) for more information.\n * @param definitionId - Ticket definition ID.\n * @param eventId - Event ID.\n * @public\n * @requiredField definitionId\n * @requiredField eventId\n * @param identifiers - Details of the ticket definition to update.\n * @param options - Ticket definition details to update.\n * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS\n * @applicableIdentity APP\n * @fqn wix.events.ticketing.TicketDefinitionManagement.UpdateTicketDefinition\n * @deprecated\n * @targetRemovalDate 2024-12-01\n */\nexport async function updateTicketDefinition(\n definitionId: string,\n eventId: string,\n options?: UpdateTicketDefinitionOptions\n): Promise<\n NonNullablePaths<\n UpdateTicketDefinitionResponse,\n | `definition._id`\n | `definition.price.amount`\n | `definition.price.currency`\n | `definition.free`\n | `definition.name`\n | `definition.description`\n | `definition.limitPerCheckout`\n | `definition.orderIndex`\n | `definition.policy`\n | `definition.dashboard.hidden`\n | `definition.dashboard.sold`\n | `definition.dashboard.limited`\n | `definition.dashboard.ticketsSold`\n | `definition.dashboard.ticketsReserved`\n | `definition.eventId`\n | `definition.wixFeeConfig.type`\n | `definition.salePeriod.hideNotOnSale`\n | `definition.saleStatus`\n | `definition.state`\n | `definition.pricing.pricingOptions.options`\n | `definition.pricing.pricingType`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n definitionId: definitionId,\n eventId: eventId,\n definition: options?.definition,\n fields: options?.fields,\n });\n\n const reqOpts =\n ambassadorWixEventsV1TicketDefinition.updateTicketDefinition(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n definitionId: '$[0]',\n eventId: '$[1]',\n definition: '$[2].definition',\n fields: '$[2].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['definitionId', 'eventId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateTicketDefinitionOptions {\n /** Ticket definition data. */\n definition?: TicketDefinitionData;\n /** Set of field paths, specifying which parts of ticket definition to update. */\n fields?: string[];\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`deleteTicketDefinition()`](/ticket-definitions-v2/delete-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`deleteTicketDefinition()`](/ticket-definitions-v2/delete-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.deleteTicketDefinition()`, and replace it with `ticketDefinitionsV2.deleteTicketDefinition()`. Update your code to work with the new `deleteTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Deletes a ticket definition.\n * @param eventId - Event ID.\n * @public\n * @requiredField eventId\n * @param options - Details of tickets to delete.\n * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS\n * @applicableIdentity APP\n * @fqn wix.events.ticketing.TicketDefinitionManagement.DeleteTicketDefinition\n * @deprecated\n * @targetRemovalDate 2024-12-01\n */\nexport async function deleteTicketDefinition(\n eventId: string,\n options?: DeleteTicketDefinitionOptions\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n eventId: eventId,\n byId: options?.byId,\n all: options?.all,\n });\n\n const reqOpts =\n ambassadorWixEventsV1TicketDefinition.deleteTicketDefinition(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n eventId: '$[0]',\n byId: '$[1].byId',\n all: '$[1].all',\n },\n singleArgumentUnchanged: false,\n },\n ['eventId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DeleteTicketDefinitionOptions\n extends DeleteTicketDefinitionOptionsDeleteOneOf {\n /** Ticket definitions to delete. */\n byId?: ById;\n /** Whether to delete all event tickets. */\n all?: boolean;\n}\n\n/** @oneof */\nexport interface DeleteTicketDefinitionOptionsDeleteOneOf {\n /** Ticket definitions to delete. */\n byId?: ById;\n /** Whether to delete all event tickets. */\n all?: boolean;\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available at [`changeCurrency()`](/ticket-definitions-v2/change-currency).\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`changeCurrency()`](/ticket-definitions-v2/change-currency).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.changeCurrency()`, and replace it with `ticketDefinitionsV2.changeCurrency()`. Update your code to work with the new `changeCurrency()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Changes the currency for all tickets per event.\n *\n * @public\n * @requiredField options.currency\n * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS\n * @applicableIdentity APP\n * @fqn wix.events.ticketing.TicketDefinitionManagement.ChangeCurrency\n * @deprecated\n * @targetRemovalDate 2024-12-01\n */\nexport async function changeCurrency(\n options?: NonNullablePaths<ChangeCurrencyOptions, `currency`, 2>\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n eventId: options?.eventId,\n currency: options?.currency,\n });\n\n const reqOpts = ambassadorWixEventsV1TicketDefinition.changeCurrency(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n eventId: '$[0].eventId',\n currency: '$[0].currency',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ChangeCurrencyOptions {\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n /**\n * Event currency, in 3-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n * @minLength 3\n * @maxLength 3\n */\n currency: string;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEventsTicketingTicketDefinitionManagementUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/wix-events-web/v1/tickets',\n destPath: '/v1/tickets',\n },\n {\n srcPath: '/events/v1/tickets',\n destPath: '/v1/tickets',\n },\n {\n srcPath: '/events/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/events/v2/ticket-definitions',\n destPath: '/v2/ticket-definitions',\n },\n {\n srcPath: '/events/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/events/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/events/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n {\n srcPath: '/_api/events/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v2/ticket-definitions',\n destPath: '/v2/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/events/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n {\n srcPath: '/_api/events/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/events-ticketing-v1-proxy',\n destPath: '/api',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/events/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/events/v2/ticket-definitions',\n destPath: '/v2/ticket-definitions',\n },\n {\n srcPath: '/events/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/events/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/events/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n _: [\n {\n srcPath: '/_api/events/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v2/ticket-definition',\n destPath: '/v2/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/events/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n {\n srcPath: '/_api/events/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/events-ticketing-v1-proxy/v1',\n destPath: '/v1',\n },\n {\n srcPath: '/_api/events-ticketing-v1-proxy/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/events/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v2/ticket-definitions',\n destPath: '/v2/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/events/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n {\n srcPath: '/_api/events/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets',\n destPath: '/v1/tickets',\n },\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/events/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v2/ticket-definitions',\n destPath: '/v2/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/events/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n {\n srcPath: '/_api/events/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets',\n destPath: '/v1/tickets',\n },\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/events/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v2/ticket-definitions',\n destPath: '/v2/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/events/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n {\n srcPath: '/_api/events/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets',\n destPath: '/v1/tickets',\n },\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n 'api._base_domain_': [\n {\n srcPath: '/events/v1/tickets',\n destPath: '/v1/tickets',\n },\n {\n srcPath: '/events/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/events/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/events/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/events/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n 'editor-flow.wixapps.net': [\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_events_ticket-definitions';\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinition()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinition()`, and replace it with `ticketDefinitionsV2.queryTicketDefinition()`. Update your code to work with the new `createTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 100 ticket definitions.\n * @deprecated Will be removed on 2024-12-01.\n */\nexport function queryTicketDefinitions(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryTicketDefinitions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.ticket_definition',\n method: 'POST' as any,\n methodFqn:\n 'wix.events.ticketing.TicketDefinitionManagement.QueryTicketDefinitions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsTicketingTicketDefinitionManagementUrl({\n protoPath: '/v1/ticket-definitions/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'definitions.salePeriod.startDate' },\n { path: 'definitions.salePeriod.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTicketDefinitions;\n}\n\n/**\n * **Deprecated.** This function will continue to work until October 29, 2024, but a newer version is available at [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinitions()`, and replace it with `ticketDefinitionsV2.queryTicketDefinitions()`. Update your code to work with the new `queryTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 1,000 ticket definitions, given the provided paging and filtering.\n * @deprecated Will be removed on 2024-12-01.\n */\nexport function queryTicketDefinitionsV2(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryTicketDefinitionsV2({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.ticket_definition',\n method: 'POST' as any,\n methodFqn:\n 'wix.events.ticketing.TicketDefinitionManagement.QueryTicketDefinitionsV2',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsTicketingTicketDefinitionManagementUrl({\n protoPath: '/v2/ticket-definitions/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'definitions.salePeriod.startDate' },\n { path: 'definitions.salePeriod.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTicketDefinitionsV2;\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a substitute is available. Use the [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinitions()`, and replace it with `ticketDefinitionsV2.queryTicketDefinitions()`. Update your code to work with the new `queryTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 100 ticket definitions, with basic filter support.\n * @deprecated Will be removed on 2024-12-01.\n */\nexport function listTicketDefinitions(\n payload: object\n): RequestOptionsFactory<any> {\n function __listTicketDefinitions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.ticket_definition',\n method: 'GET' as any,\n methodFqn:\n 'wix.events.ticketing.TicketDefinitionManagement.ListTicketDefinitions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsTicketingTicketDefinitionManagementUrl({\n protoPath: '/v1/ticket-definitions',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'definitions.salePeriod.startDate' },\n { path: 'definitions.salePeriod.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listTicketDefinitions;\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`getTicketDefinition()`](/ticket-definitions-v2/get-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`getTicketDefinition()`](/ticket-definitions-v2/get-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.getTicketDefinition()`, and replace it with `ticketDefinitionsV2.getTicketDefinition()`. Update your code to work with the new `getTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a ticket definition.\n * @deprecated Will be removed on 2024-12-01.\n */\nexport function getTicketDefinition(\n payload: object\n): RequestOptionsFactory<any> {\n function __getTicketDefinition({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.ticket_definition',\n method: 'GET' as any,\n methodFqn:\n 'wix.events.ticketing.TicketDefinitionManagement.GetTicketDefinition',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsTicketingTicketDefinitionManagementUrl({\n protoPath: '/v1/ticket-definitions/{definitionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'definition.salePeriod.startDate' },\n { path: 'definition.salePeriod.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getTicketDefinition;\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`createTicketDefinition()`](/ticket-definitions-v2/create-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`createTicketDefinition()`](/ticket-definitions-v2/create-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.createTicketDefinition()`, and replace it with `ticketDefinitionsV2.createTicketDefinition()`. Update your code to work with the new `createTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Creates a ticket definition (and enables ticket sales).\n * @deprecated Will be removed on 2024-12-01.\n */\nexport function createTicketDefinition(\n payload: object\n): RequestOptionsFactory<any> {\n function __createTicketDefinition({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'definition.salePeriod.startDate' },\n { path: 'definition.salePeriod.endDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.events.v1.ticket_definition',\n method: 'POST' as any,\n methodFqn:\n 'wix.events.ticketing.TicketDefinitionManagement.CreateTicketDefinition',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsTicketingTicketDefinitionManagementUrl({\n protoPath: '/v1/ticket-definitions',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'definition.salePeriod.startDate' },\n { path: 'definition.salePeriod.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createTicketDefinition;\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`updateTicketDefinition()`](/ticket-definitions-v2/update-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`updateTicketDefinition()`](/ticket-definitions-v2/update-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.updateTicketDefinition()`, and replace it with `ticketDefinitionsV2.updateTicketDefinition()`. Update your code to work with the new `updateTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n *\n * Updates a ticket definition.\n *\n * See [Partial Updates](/wix-events-v2/partial-updates) for more information.\n * @deprecated Will be removed on 2024-12-01.\n */\nexport function updateTicketDefinition(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateTicketDefinition({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fields' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'definition.salePeriod.startDate' },\n { path: 'definition.salePeriod.endDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.events.v1.ticket_definition',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.events.ticketing.TicketDefinitionManagement.UpdateTicketDefinition',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsTicketingTicketDefinitionManagementUrl({\n protoPath: '/v1/ticket-definitions/{definitionId}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'definition.salePeriod.startDate' },\n { path: 'definition.salePeriod.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateTicketDefinition;\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`deleteTicketDefinition()`](/ticket-definitions-v2/delete-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`deleteTicketDefinition()`](/ticket-definitions-v2/delete-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.deleteTicketDefinition()`, and replace it with `ticketDefinitionsV2.deleteTicketDefinition()`. Update your code to work with the new `deleteTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Deletes a ticket definition.\n * @deprecated Will be removed on 2024-12-01.\n */\nexport function deleteTicketDefinition(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteTicketDefinition({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.ticket_definition',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.events.ticketing.TicketDefinitionManagement.DeleteTicketDefinition',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsTicketingTicketDefinitionManagementUrl({\n protoPath: '/v1/ticket-definitions',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteTicketDefinition;\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available at [`changeCurrency()`](/ticket-definitions-v2/change-currency).\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`changeCurrency()`](/ticket-definitions-v2/change-currency).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.changeCurrency()`, and replace it with `ticketDefinitionsV2.changeCurrency()`. Update your code to work with the new `changeCurrency()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Changes the currency for all tickets per event.\n * @deprecated Will be removed on 2024-12-01.\n */\nexport function changeCurrency(payload: object): RequestOptionsFactory<any> {\n function __changeCurrency({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.ticket_definition',\n method: 'PUT' as any,\n methodFqn:\n 'wix.events.ticketing.TicketDefinitionManagement.ChangeCurrency',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsTicketingTicketDefinitionManagementUrl({\n protoPath: '/v1/ticket-definitions/currency',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __changeCurrency;\n}\n","import {\n queryTicketDefinitions as publicQueryTicketDefinitions,\n queryTicketDefinitionsV2 as publicQueryTicketDefinitionsV2,\n typedQueryTicketDefinitionsV2 as publicTypedQueryTicketDefinitionsV2,\n listTicketDefinitions as publicListTicketDefinitions,\n getTicketDefinition as publicGetTicketDefinition,\n createTicketDefinition as publicCreateTicketDefinition,\n updateTicketDefinition as publicUpdateTicketDefinition,\n deleteTicketDefinition as publicDeleteTicketDefinition,\n changeCurrency as publicChangeCurrency,\n} from './events-v1-ticket-definition-ticket-definitions.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n DefinitionsQueryBuilder,\n QueryTicketDefinitionsV2Options,\n QueryV2,\n typedQueryTicketDefinitionsV2 as universalTypedQueryTicketDefinitionsV2,\n} from './events-v1-ticket-definition-ticket-definitions.universal.js';\nimport { onTicketDefinitionCreated as publicOnTicketDefinitionCreated } from './events-v1-ticket-definition-ticket-definitions.public.js';\nimport { onTicketDefinitionDeleted as publicOnTicketDefinitionDeleted } from './events-v1-ticket-definition-ticket-definitions.public.js';\nimport { onTicketDefinitionUpdated as publicOnTicketDefinitionUpdated } from './events-v1-ticket-definition-ticket-definitions.public.js';\n\nfunction customQueryTicketDefinitionsV2(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: (options?: QueryTicketDefinitionsV2Options) =>\n publicQueryTicketDefinitionsV2(httpClient)(options),\n typedQueryFunction: (\n query: QueryV2,\n options?: QueryTicketDefinitionsV2Options\n ) => publicTypedQueryTicketDefinitionsV2(httpClient)(query, options),\n hasOptionsParameter: true,\n });\n\n function overloadedQuery(\n query: QueryV2\n ): ReturnType<typeof universalTypedQueryTicketDefinitionsV2>;\n function overloadedQuery(\n query: QueryV2,\n options: QueryTicketDefinitionsV2Options\n ): ReturnType<typeof universalTypedQueryTicketDefinitionsV2>;\n function overloadedQuery(): DefinitionsQueryBuilder;\n function overloadedQuery(\n options: QueryTicketDefinitionsV2Options\n ): DefinitionsQueryBuilder;\n function overloadedQuery(\n queryOrOptions?: QueryV2 | QueryTicketDefinitionsV2Options,\n options?: QueryTicketDefinitionsV2Options\n ): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\nexport const queryTicketDefinitions: MaybeContext<\n BuildRESTFunction<typeof publicQueryTicketDefinitions> &\n typeof publicQueryTicketDefinitions\n> = /*#__PURE__*/ createRESTModule(publicQueryTicketDefinitions);\nexport const listTicketDefinitions: MaybeContext<\n BuildRESTFunction<typeof publicListTicketDefinitions> &\n typeof publicListTicketDefinitions\n> = /*#__PURE__*/ createRESTModule(publicListTicketDefinitions);\nexport const getTicketDefinition: MaybeContext<\n BuildRESTFunction<typeof publicGetTicketDefinition> &\n typeof publicGetTicketDefinition\n> = /*#__PURE__*/ createRESTModule(publicGetTicketDefinition);\nexport const createTicketDefinition: MaybeContext<\n BuildRESTFunction<typeof publicCreateTicketDefinition> &\n typeof publicCreateTicketDefinition\n> = /*#__PURE__*/ createRESTModule(publicCreateTicketDefinition);\nexport const updateTicketDefinition: MaybeContext<\n BuildRESTFunction<typeof publicUpdateTicketDefinition> &\n typeof publicUpdateTicketDefinition\n> = /*#__PURE__*/ createRESTModule(publicUpdateTicketDefinition);\nexport const deleteTicketDefinition: MaybeContext<\n BuildRESTFunction<typeof publicDeleteTicketDefinition> &\n typeof publicDeleteTicketDefinition\n> = /*#__PURE__*/ createRESTModule(publicDeleteTicketDefinition);\nexport const changeCurrency: MaybeContext<\n BuildRESTFunction<typeof publicChangeCurrency> & typeof publicChangeCurrency\n> = /*#__PURE__*/ createRESTModule(publicChangeCurrency);\nexport const queryTicketDefinitionsV2: MaybeContext<\n BuildRESTFunction<typeof customQueryTicketDefinitionsV2> &\n typeof customQueryTicketDefinitionsV2\n> = /*#__PURE__*/ createRESTModule(customQueryTicketDefinitionsV2);\n/** */\nexport const onTicketDefinitionCreated: BuildEventDefinition<\n typeof publicOnTicketDefinitionCreated\n> &\n typeof publicOnTicketDefinitionCreated = createEventModule(\n publicOnTicketDefinitionCreated\n);\n/** */\nexport const onTicketDefinitionDeleted: BuildEventDefinition<\n typeof publicOnTicketDefinitionDeleted\n> &\n typeof publicOnTicketDefinitionDeleted = createEventModule(\n publicOnTicketDefinitionDeleted\n);\n/** */\nexport const onTicketDefinitionUpdated: BuildEventDefinition<\n typeof publicOnTicketDefinitionUpdated\n> &\n typeof publicOnTicketDefinitionUpdated = createEventModule(\n publicOnTicketDefinitionUpdated\n);\n\nexport {\n FeeType,\n TicketSaleStatus,\n TicketDefinitionStateEnumState,\n Type,\n TicketDefinitionFieldset,\n SortOrder,\n State,\n GroupBy,\n WebhookIdentityType,\n} from './events-v1-ticket-definition-ticket-definitions.universal.js';\nexport {\n TicketDefinition,\n Money,\n Dashboard,\n WixFeeConfig,\n TicketSalePeriod,\n TicketPricing,\n TicketPricingPriceOneOf,\n PricingOptions,\n PricingOption,\n QueryTicketDefinitionsRequest,\n QueryTicketDefinitionsResponse,\n FacetCounts,\n QueryTicketDefinitionsV2Request,\n QueryV2,\n QueryV2PagingMethodOneOf,\n Sorting,\n Paging,\n CursorPaging,\n QueryTicketDefinitionsV2Response,\n PagingMetadataV2,\n Cursors,\n ListTicketDefinitionsRequest,\n ListTicketDefinitionsResponse,\n ResponseMetaData,\n GetTicketDefinitionRequest,\n GetTicketDefinitionResponse,\n CreateTicketDefinitionRequest,\n TicketDefinitionData,\n CreateTicketDefinitionResponse,\n TicketDefinitionCreated,\n OriginatedFrom,\n UpdateTicketDefinitionRequest,\n UpdateTicketDefinitionResponse,\n TicketDefinitionUpdated,\n DeleteTicketDefinitionRequest,\n DeleteTicketDefinitionRequestDeleteOneOf,\n ById,\n DeleteTicketDefinitionResponse,\n TicketDefinitionDeleted,\n ChangeCurrencyRequest,\n ChangeCurrencyResponse,\n BulkCopyTicketDefinitionsByEventIdRequest,\n BulkCopyTicketDefinitionsByEventIdResponse,\n CopiedTicketDefinition,\n PaidTicketDefinitionExistsRequest,\n PaidTicketDefinitionExistsResponse,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BaseEventMetadata,\n TicketDefinitionCreatedEnvelope,\n TicketDefinitionDeletedEnvelope,\n TicketDefinitionUpdatedEnvelope,\n QueryTicketDefinitionsOptions,\n QueryTicketDefinitionsV2Options,\n DefinitionsQueryResult,\n DefinitionsQueryBuilder,\n ListTicketDefinitionsOptions,\n GetTicketDefinitionOptions,\n CreateTicketDefinitionOptions,\n UpdateTicketDefinitionOptions,\n DeleteTicketDefinitionOptions,\n DeleteTicketDefinitionOptionsDeleteOneOf,\n ChangeCurrencyOptions,\n} from './events-v1-ticket-definition-ticket-definitions.universal.js';\nexport {\n FeeTypeWithLiterals,\n TicketSaleStatusWithLiterals,\n TicketDefinitionStateEnumStateWithLiterals,\n TypeWithLiterals,\n TicketDefinitionFieldsetWithLiterals,\n SortOrderWithLiterals,\n StateWithLiterals,\n GroupByWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './events-v1-ticket-definition-ticket-definitions.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAAA;AAAA,EAAA,8BAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,gCAAAC;AAAA,EAAA,8BAAAC;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA8D;;;ACH9D,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,uDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AA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C,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMR,4BAGK,2DAAiB,8BAA8B;AAE1D,IAAMS,iCAG8B;AAAA,EACzC;AACF;AAEO,IAAMC,iCAG8B;AAAA,EACzC;AACF;AAEO,IAAMC,iCAG8B;AAAA,EACzC;AACF;","names":["changeCurrency","createTicketDefinition","deleteTicketDefinition","getTicketDefinition","listTicketDefinitions","onTicketDefinitionCreated","onTicketDefinitionDeleted","onTicketDefinitionUpdated","queryTicketDefinitions","queryTicketDefinitionsV2","updateTicketDefinition","import_rename_all_nested_keys","import_timestamp","import_transform_paths","import_timestamp","import_rest_modules","payload","import_transform_paths","FeeType","TicketSaleStatus","TicketDefinitionStateEnumState","Type","TicketDefinitionFieldset","SortOrder","State","GroupBy","WebhookIdentityType","queryTicketDefinitions","sdkTransformError","queryTicketDefinitionsV2","listTicketDefinitions","getTicketDefinition","createTicketDefinition","updateTicketDefinition","deleteTicketDefinition","changeCurrency","queryTicketDefinitions","queryTicketDefinitionsV2","typedQueryTicketDefinitionsV2","listTicketDefinitions","getTicketDefinition","createTicketDefinition","updateTicketDefinition","deleteTicketDefinition","changeCurrency","import_rest_modules","queryTicketDefinitionsV2","typedQueryTicketDefinitionsV2","queryTicketDefinitions","listTicketDefinitions","getTicketDefinition","createTicketDefinition","updateTicketDefinition","deleteTicketDefinition","changeCurrency","onTicketDefinitionCreated","onTicketDefinitionDeleted","onTicketDefinitionUpdated"]}
1
+ {"version":3,"sources":["../../index.ts","../../src/events-v1-ticket-definition-ticket-definitions.public.ts","../../src/events-v1-ticket-definition-ticket-definitions.universal.ts","../../src/events-v1-ticket-definition-ticket-definitions.http.ts","../../src/events-v1-ticket-definition-ticket-definitions.context.ts"],"sourcesContent":["export * from './src/events-v1-ticket-definition-ticket-definitions.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ChangeCurrencyOptions,\n CreateTicketDefinitionOptions,\n CreateTicketDefinitionResponse,\n DefinitionsQueryBuilder,\n DeleteTicketDefinitionOptions,\n GetTicketDefinitionOptions,\n ListTicketDefinitionsOptions,\n ListTicketDefinitionsResponse,\n QueryTicketDefinitionsOptions,\n QueryTicketDefinitionsResponse,\n QueryTicketDefinitionsV2Options,\n QueryTicketDefinitionsV2Response,\n QueryV2,\n TicketDefinition,\n TicketDefinitionCreatedEnvelope,\n TicketDefinitionDeletedEnvelope,\n TicketDefinitionUpdatedEnvelope,\n UpdateTicketDefinitionOptions,\n UpdateTicketDefinitionResponse,\n changeCurrency as universalChangeCurrency,\n createTicketDefinition as universalCreateTicketDefinition,\n deleteTicketDefinition as universalDeleteTicketDefinition,\n getTicketDefinition as universalGetTicketDefinition,\n listTicketDefinitions as universalListTicketDefinitions,\n queryTicketDefinitions as universalQueryTicketDefinitions,\n queryTicketDefinitionsV2 as universalQueryTicketDefinitionsV2,\n typedQueryTicketDefinitionsV2 as universalTypedQueryTicketDefinitionsV2,\n updateTicketDefinition as universalUpdateTicketDefinition,\n} from './events-v1-ticket-definition-ticket-definitions.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/events' };\n\nexport function queryTicketDefinitions(\n httpClient: HttpClient\n): QueryTicketDefinitionsSignature {\n return (options?: QueryTicketDefinitionsOptions) =>\n universalQueryTicketDefinitions(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryTicketDefinitionsSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinition()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinition()`, and replace it with `ticketDefinitionsV2.queryTicketDefinition()`. Update your code to work with the new `createTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 100 ticket definitions.\n * @deprecated\n */\n (options?: QueryTicketDefinitionsOptions): Promise<\n NonNullablePaths<\n QueryTicketDefinitionsResponse,\n | `total`\n | `offset`\n | `limit`\n | `definitions`\n | `definitions.${number}._id`\n | `definitions.${number}.price.amount`\n | `definitions.${number}.price.currency`\n | `definitions.${number}.free`\n | `definitions.${number}.name`\n | `definitions.${number}.description`\n | `definitions.${number}.limitPerCheckout`\n | `definitions.${number}.orderIndex`\n | `definitions.${number}.policy`\n | `definitions.${number}.dashboard.hidden`\n | `definitions.${number}.dashboard.sold`\n | `definitions.${number}.dashboard.limited`\n | `definitions.${number}.dashboard.ticketsSold`\n | `definitions.${number}.dashboard.ticketsReserved`\n | `definitions.${number}.eventId`\n | `definitions.${number}.wixFeeConfig.type`\n | `definitions.${number}.salePeriod.hideNotOnSale`\n | `definitions.${number}.saleStatus`\n | `definitions.${number}.pricing.pricingType`,\n 5\n >\n >;\n}\n\nexport function queryTicketDefinitionsV2(\n httpClient: HttpClient\n): QueryTicketDefinitionsV2Signature {\n return (options?: QueryTicketDefinitionsV2Options) =>\n universalQueryTicketDefinitionsV2(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryTicketDefinitionsV2Signature {\n /**\n * **Deprecated.** This function will continue to work until October 29, 2024, but a newer version is available at [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinitions()`, and replace it with `ticketDefinitionsV2.queryTicketDefinitions()`. Update your code to work with the new `queryTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 1,000 ticket definitions, given the provided paging and filtering.\n * @deprecated\n */\n (options?: QueryTicketDefinitionsV2Options): DefinitionsQueryBuilder;\n}\n\nexport function typedQueryTicketDefinitionsV2(\n httpClient: HttpClient\n): TypedQueryTicketDefinitionsV2Signature {\n return (query: QueryV2, options?: QueryTicketDefinitionsV2Options) =>\n universalTypedQueryTicketDefinitionsV2(\n query,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQueryTicketDefinitionsV2Signature {\n /** */\n (query: QueryV2, options?: QueryTicketDefinitionsV2Options): Promise<\n NonNullablePaths<\n QueryTicketDefinitionsV2Response,\n | `definitions`\n | `definitions.${number}._id`\n | `definitions.${number}.price.amount`\n | `definitions.${number}.price.currency`\n | `definitions.${number}.free`\n | `definitions.${number}.name`\n | `definitions.${number}.description`\n | `definitions.${number}.limitPerCheckout`\n | `definitions.${number}.orderIndex`\n | `definitions.${number}.policy`\n | `definitions.${number}.dashboard.hidden`\n | `definitions.${number}.dashboard.sold`\n | `definitions.${number}.dashboard.limited`\n | `definitions.${number}.dashboard.ticketsSold`\n | `definitions.${number}.dashboard.ticketsReserved`\n | `definitions.${number}.eventId`\n | `definitions.${number}.wixFeeConfig.type`\n | `definitions.${number}.salePeriod.hideNotOnSale`\n | `definitions.${number}.saleStatus`\n | `definitions.${number}.pricing.pricingType`,\n 5\n >\n >;\n}\n\nexport function listTicketDefinitions(\n httpClient: HttpClient\n): ListTicketDefinitionsSignature {\n return (options?: ListTicketDefinitionsOptions) =>\n universalListTicketDefinitions(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListTicketDefinitionsSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a substitute is available. Use the [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinitions()`, and replace it with `ticketDefinitionsV2.queryTicketDefinitions()`. Update your code to work with the new `queryTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 100 ticket definitions, with basic filter support.\n * @param - Details for the tickets to retrieve.\n * @deprecated\n */\n (options?: ListTicketDefinitionsOptions): Promise<\n NonNullablePaths<\n ListTicketDefinitionsResponse,\n | `metaData.count`\n | `metaData.offset`\n | `metaData.total`\n | `definitions`\n | `definitions.${number}._id`\n | `definitions.${number}.price.amount`\n | `definitions.${number}.price.currency`\n | `definitions.${number}.free`\n | `definitions.${number}.name`\n | `definitions.${number}.description`\n | `definitions.${number}.limitPerCheckout`\n | `definitions.${number}.orderIndex`\n | `definitions.${number}.policy`\n | `definitions.${number}.dashboard.hidden`\n | `definitions.${number}.dashboard.sold`\n | `definitions.${number}.dashboard.limited`\n | `definitions.${number}.dashboard.ticketsSold`\n | `definitions.${number}.dashboard.ticketsReserved`\n | `definitions.${number}.eventId`\n | `definitions.${number}.wixFeeConfig.type`\n | `definitions.${number}.salePeriod.hideNotOnSale`\n | `definitions.${number}.saleStatus`\n | `definitions.${number}.pricing.pricingType`,\n 5\n >\n >;\n}\n\nexport function getTicketDefinition(\n httpClient: HttpClient\n): GetTicketDefinitionSignature {\n return (definitionId: string, options?: GetTicketDefinitionOptions) =>\n universalGetTicketDefinition(\n definitionId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetTicketDefinitionSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`getTicketDefinition()`](/ticket-definitions-v2/get-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`getTicketDefinition()`](/ticket-definitions-v2/get-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.getTicketDefinition()`, and replace it with `ticketDefinitionsV2.getTicketDefinition()`. Update your code to work with the new `getTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a ticket definition.\n * @param - Ticket definition ID.\n * @param - Details for the ticket to retrieve.\n * @returns Retrieved ticket definition.\n * @deprecated\n */\n (definitionId: string, options?: GetTicketDefinitionOptions): Promise<\n NonNullablePaths<\n TicketDefinition,\n | `_id`\n | `price.amount`\n | `price.currency`\n | `free`\n | `name`\n | `description`\n | `limitPerCheckout`\n | `orderIndex`\n | `policy`\n | `dashboard.hidden`\n | `dashboard.sold`\n | `dashboard.limited`\n | `dashboard.ticketsSold`\n | `dashboard.ticketsReserved`\n | `eventId`\n | `wixFeeConfig.type`\n | `salePeriod.hideNotOnSale`\n | `saleStatus`\n | `state`\n | `pricing.pricingOptions.options`\n | `pricing.pricingType`,\n 4\n >\n >;\n}\n\nexport function createTicketDefinition(\n httpClient: HttpClient\n): CreateTicketDefinitionSignature {\n return (\n eventId: string,\n options: NonNullablePaths<\n CreateTicketDefinitionOptions,\n `definition` | `definition.name`,\n 3\n >\n ) =>\n universalCreateTicketDefinition(\n eventId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateTicketDefinitionSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`createTicketDefinition()`](/ticket-definitions-v2/create-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`createTicketDefinition()`](/ticket-definitions-v2/create-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.createTicketDefinition()`, and replace it with `ticketDefinitionsV2.createTicketDefinition()`. Update your code to work with the new `createTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Creates a ticket definition (and enables ticket sales).\n * @param - Event ID.\n * @deprecated\n */\n (\n eventId: string,\n options: NonNullablePaths<\n CreateTicketDefinitionOptions,\n `definition` | `definition.name`,\n 3\n >\n ): Promise<\n NonNullablePaths<\n CreateTicketDefinitionResponse,\n | `definition._id`\n | `definition.price.amount`\n | `definition.price.currency`\n | `definition.free`\n | `definition.name`\n | `definition.description`\n | `definition.limitPerCheckout`\n | `definition.orderIndex`\n | `definition.policy`\n | `definition.dashboard.hidden`\n | `definition.dashboard.sold`\n | `definition.dashboard.limited`\n | `definition.dashboard.ticketsSold`\n | `definition.dashboard.ticketsReserved`\n | `definition.eventId`\n | `definition.wixFeeConfig.type`\n | `definition.salePeriod.hideNotOnSale`\n | `definition.saleStatus`\n | `definition.state`\n | `definition.pricing.pricingOptions.options`\n | `definition.pricing.pricingType`,\n 5\n >\n >;\n}\n\nexport function updateTicketDefinition(\n httpClient: HttpClient\n): UpdateTicketDefinitionSignature {\n return (\n definitionId: string,\n eventId: string,\n options?: UpdateTicketDefinitionOptions\n ) =>\n universalUpdateTicketDefinition(\n definitionId,\n eventId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateTicketDefinitionSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`updateTicketDefinition()`](/ticket-definitions-v2/update-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`updateTicketDefinition()`](/ticket-definitions-v2/update-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.updateTicketDefinition()`, and replace it with `ticketDefinitionsV2.updateTicketDefinition()`. Update your code to work with the new `updateTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n *\n * Updates a ticket definition.\n *\n * See [Partial Updates](/wix-events-v2/partial-updates) for more information.\n * @param - Ticket definition ID.\n * @param - Event ID.\n * @param - Details of the ticket definition to update.\n * @param - Ticket definition details to update.\n * @deprecated\n */\n (\n definitionId: string,\n eventId: string,\n options?: UpdateTicketDefinitionOptions\n ): Promise<\n NonNullablePaths<\n UpdateTicketDefinitionResponse,\n | `definition._id`\n | `definition.price.amount`\n | `definition.price.currency`\n | `definition.free`\n | `definition.name`\n | `definition.description`\n | `definition.limitPerCheckout`\n | `definition.orderIndex`\n | `definition.policy`\n | `definition.dashboard.hidden`\n | `definition.dashboard.sold`\n | `definition.dashboard.limited`\n | `definition.dashboard.ticketsSold`\n | `definition.dashboard.ticketsReserved`\n | `definition.eventId`\n | `definition.wixFeeConfig.type`\n | `definition.salePeriod.hideNotOnSale`\n | `definition.saleStatus`\n | `definition.state`\n | `definition.pricing.pricingOptions.options`\n | `definition.pricing.pricingType`,\n 5\n >\n >;\n}\n\nexport function deleteTicketDefinition(\n httpClient: HttpClient\n): DeleteTicketDefinitionSignature {\n return (eventId: string, options?: DeleteTicketDefinitionOptions) =>\n universalDeleteTicketDefinition(\n eventId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteTicketDefinitionSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`deleteTicketDefinition()`](/ticket-definitions-v2/delete-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`deleteTicketDefinition()`](/ticket-definitions-v2/delete-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.deleteTicketDefinition()`, and replace it with `ticketDefinitionsV2.deleteTicketDefinition()`. Update your code to work with the new `deleteTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Deletes a ticket definition.\n * @param - Event ID.\n * @param - Details of tickets to delete.\n * @deprecated\n */\n (eventId: string, options?: DeleteTicketDefinitionOptions): Promise<void>;\n}\n\nexport function changeCurrency(\n httpClient: HttpClient\n): ChangeCurrencySignature {\n return (options?: NonNullablePaths<ChangeCurrencyOptions, `currency`, 2>) =>\n universalChangeCurrency(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ChangeCurrencySignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available at [`changeCurrency()`](/ticket-definitions-v2/change-currency).\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`changeCurrency()`](/ticket-definitions-v2/change-currency).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.changeCurrency()`, and replace it with `ticketDefinitionsV2.changeCurrency()`. Update your code to work with the new `changeCurrency()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Changes the currency for all tickets per event.\n *\n * @deprecated\n */\n (\n options?: NonNullablePaths<ChangeCurrencyOptions, `currency`, 2>\n ): Promise<void>;\n}\n\nexport const onTicketDefinitionCreated = EventDefinition(\n 'wix.events.ticketing.events.TicketDefinitionCreated',\n false,\n (event: TicketDefinitionCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'data.timestamp' }],\n },\n ])\n )\n)<TicketDefinitionCreatedEnvelope>();\nexport const onTicketDefinitionDeleted = EventDefinition(\n 'wix.events.ticketing.events.TicketDefinitionDeleted',\n false,\n (event: TicketDefinitionDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'data.timestamp' }],\n },\n ])\n )\n)<TicketDefinitionDeletedEnvelope>();\nexport const onTicketDefinitionUpdated = EventDefinition(\n 'wix.events.ticketing.events.TicketDefinitionUpdated',\n false,\n (event: TicketDefinitionUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'data.timestamp' }],\n },\n ])\n )\n)<TicketDefinitionUpdatedEnvelope>();\n\nexport {\n BaseEventMetadata,\n BulkCopyTicketDefinitionsByEventIdRequest,\n BulkCopyTicketDefinitionsByEventIdResponse,\n ById,\n ChangeCurrencyOptions,\n ChangeCurrencyRequest,\n ChangeCurrencyResponse,\n CopiedTicketDefinition,\n CreateTicketDefinitionOptions,\n CreateTicketDefinitionRequest,\n CreateTicketDefinitionResponse,\n CursorPaging,\n Cursors,\n Dashboard,\n DefinitionsQueryBuilder,\n DefinitionsQueryResult,\n DeleteTicketDefinitionOptions,\n DeleteTicketDefinitionOptionsDeleteOneOf,\n DeleteTicketDefinitionRequest,\n DeleteTicketDefinitionRequestDeleteOneOf,\n DeleteTicketDefinitionResponse,\n FacetCounts,\n FeeType,\n GetTicketDefinitionOptions,\n GetTicketDefinitionRequest,\n GetTicketDefinitionResponse,\n GroupBy,\n IdentificationData,\n IdentificationDataIdOneOf,\n ListTicketDefinitionsOptions,\n ListTicketDefinitionsRequest,\n ListTicketDefinitionsResponse,\n MessageEnvelope,\n Money,\n OriginatedFrom,\n Paging,\n PagingMetadataV2,\n PaidTicketDefinitionExistsRequest,\n PaidTicketDefinitionExistsResponse,\n PricingOption,\n PricingOptions,\n QueryTicketDefinitionsOptions,\n QueryTicketDefinitionsRequest,\n QueryTicketDefinitionsResponse,\n QueryTicketDefinitionsV2Options,\n QueryTicketDefinitionsV2Request,\n QueryTicketDefinitionsV2Response,\n QueryV2,\n QueryV2PagingMethodOneOf,\n ResponseMetaData,\n SortOrder,\n Sorting,\n State,\n TicketDefinition,\n TicketDefinitionCreated,\n TicketDefinitionCreatedEnvelope,\n TicketDefinitionData,\n TicketDefinitionDeleted,\n TicketDefinitionDeletedEnvelope,\n TicketDefinitionFieldset,\n TicketDefinitionStateEnumState,\n TicketDefinitionUpdated,\n TicketDefinitionUpdatedEnvelope,\n TicketPricing,\n TicketPricingPriceOneOf,\n TicketSalePeriod,\n TicketSaleStatus,\n Type,\n UpdateTicketDefinitionOptions,\n UpdateTicketDefinitionRequest,\n UpdateTicketDefinitionResponse,\n WebhookIdentityType,\n WixFeeConfig,\n} from './events-v1-ticket-definition-ticket-definitions.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixEventsV1TicketDefinition from './events-v1-ticket-definition-ticket-definitions.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface TicketDefinition {\n /**\n * Ticket definition ID.\n * @format GUID\n */\n _id?: string;\n /** Ticket price. */\n price?: Money;\n /** Whether the ticket is free (read only). */\n free?: boolean;\n /** Ticket name. */\n name?: string;\n /** Ticket description. */\n description?: string;\n /**\n * Limit of tickets that can be purchased per checkout.\n * Set to 20 for unlimited ticket definition.\n * @max 20\n */\n limitPerCheckout?: number;\n /** Custom sort index. */\n orderIndex?: number;\n /** Policy information plain text block, as printed on the ticket. */\n policy?: string;\n /** Sensitive dashboard data. */\n dashboard?: Dashboard;\n /**\n * Event ID associated with the ticket.\n * @format GUID\n */\n eventId?: string;\n /**\n * Configuration of the fixed-rate Wix ticket service fee that is applied at checkout to each ticket sold.\n * @readonly\n */\n wixFeeConfig?: WixFeeConfig;\n /** Ticket sale period. */\n salePeriod?: TicketSalePeriod;\n /**\n * Ticket sale status.\n * @readonly\n */\n saleStatus?: TicketSaleStatusWithLiterals;\n /** Ticket state. */\n state?: TicketDefinitionStateEnumStateWithLiterals[];\n /** Ticket pricing. */\n pricing?: TicketPricing;\n}\n\nexport interface Money {\n /**\n * @internal\n * @internal\n * @format DECIMAL_VALUE\n * @deprecated\n */\n amount?: string;\n /**\n * Three-letter currency code in\n * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n * @format CURRENCY\n */\n currency?: string;\n /**\n * Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, starts with a single (-), to indicate that the amount is negative.\n * @format DECIMAL_VALUE\n */\n value?: string | null;\n}\n\nexport interface Dashboard {\n /** Whether ticket is hidden and cannot be sold. */\n hidden?: boolean;\n /**\n * Number of tickets sold and reserved.\n * @deprecated\n */\n sold?: number;\n /** Whether the ticket has limited quantity. */\n limited?: boolean;\n /** Ticket limit. `NULL` for unlimited ticket definitions. */\n quantity?: number | null;\n /** Number of unsold tickets. `NULL` for unlimited ticket definitions. */\n unsold?: number | null;\n /** Number of tickets sold. */\n ticketsSold?: number;\n /** Number of tickets reserved. */\n ticketsReserved?: number;\n}\n\nexport interface WixFeeConfig {\n /**\n * Fee calculation method.\n *\n * Supported values: `\"FEE_ADDED\"`, `\"FEE_INCLUDED\"`, `\"FEE_ADDED_AT_CHECKOUT\"`\n *\n * Default: `\"FEE_ADDED_AT_CHECKOUT\"`\n */\n type?: FeeTypeWithLiterals;\n}\n\nexport enum FeeType {\n /** Fee is added to the ticket price at checkout. */\n FEE_ADDED = 'FEE_ADDED',\n /** Seller absorbs the fee. It's deducted from the ticket price. */\n FEE_INCLUDED = 'FEE_INCLUDED',\n /** Fee is added to the ticket price at checkout. */\n FEE_ADDED_AT_CHECKOUT = 'FEE_ADDED_AT_CHECKOUT',\n}\n\n/** @enumType */\nexport type FeeTypeWithLiterals =\n | FeeType\n | 'FEE_ADDED'\n | 'FEE_INCLUDED'\n | 'FEE_ADDED_AT_CHECKOUT';\n\nexport interface TicketSalePeriod {\n /** Ticket sale start timestamp. */\n startDate?: Date | null;\n /** Ticket sale end timestamp. */\n endDate?: Date | null;\n /** Whether to hide this ticket if it isn't on sale. */\n hideNotOnSale?: boolean;\n}\n\nexport enum TicketSaleStatus {\n /** Ticket sale is scheduled to start. */\n SALE_SCHEDULED = 'SALE_SCHEDULED',\n /** Ticket sale has started. */\n SALE_STARTED = 'SALE_STARTED',\n /** Ticket sale has ended. */\n SALE_ENDED = 'SALE_ENDED',\n}\n\n/** @enumType */\nexport type TicketSaleStatusWithLiterals =\n | TicketSaleStatus\n | 'SALE_SCHEDULED'\n | 'SALE_STARTED'\n | 'SALE_ENDED';\n\nexport enum TicketDefinitionStateEnumState {\n INCLUDE_HIDDEN_NOT_ON_SALE = 'INCLUDE_HIDDEN_NOT_ON_SALE',\n}\n\n/** @enumType */\nexport type TicketDefinitionStateEnumStateWithLiterals =\n | TicketDefinitionStateEnumState\n | 'INCLUDE_HIDDEN_NOT_ON_SALE';\n\nexport interface TicketPricing extends TicketPricingPriceOneOf {\n /** Ticket price which is read only. */\n fixedPrice?: Money;\n /** Min price per ticket, customizable. */\n minPrice?: Money;\n /** Ticket pricing options. */\n pricingOptions?: PricingOptions;\n /**\n * Ticket pricing type.\n * @readonly\n */\n pricingType?: TypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TicketPricingPriceOneOf {\n /** Ticket price which is read only. */\n fixedPrice?: Money;\n /** Min price per ticket, customizable. */\n minPrice?: Money;\n /** Ticket pricing options. */\n pricingOptions?: PricingOptions;\n}\n\nexport interface PricingOptions {\n /** Multiple ticket pricing options. */\n options?: PricingOption[];\n}\n\nexport interface PricingOption {\n /**\n * Ticket pricing option ID.\n * @format GUID\n */\n _id?: string | null;\n /**\n * Ticket pricing option name.\n * @minLength 1\n * @maxLength 200\n */\n name?: string | null;\n /** Ticket pricing option price. */\n price?: Money;\n}\n\nexport enum Type {\n STANDARD = 'STANDARD',\n DONATION = 'DONATION',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'STANDARD' | 'DONATION';\n\nexport interface QueryTicketDefinitionsRequest {\n /** Offset. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */\n offset?: number;\n /**\n * Limit. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).\n * @max 100\n */\n limit?: number;\n /**\n * Set of fields to return in the response. See [fieldsets](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_ticket-definition-fieldset).\n * @maxSize 20\n */\n fieldset?: TicketDefinitionFieldsetWithLiterals[];\n /** Filter. See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions). */\n filter?: Record<string, any> | null;\n /**\n * Sort order. Defaults to: \"created:asc\".\n * See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions).\n * @maxLength 100\n */\n sort?: string;\n /**\n * Filter facets to include in the response.\n * See [supported facets](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions).\n * @maxLength 20\n * @maxSize 10\n */\n facet?: string[];\n}\n\nexport enum TicketDefinitionFieldset {\n /** Include `policy` in the response. */\n POLICY = 'POLICY',\n /** Include `dashboard` in the response. */\n DASHBOARD = 'DASHBOARD',\n}\n\n/** @enumType */\nexport type TicketDefinitionFieldsetWithLiterals =\n | TicketDefinitionFieldset\n | 'POLICY'\n | 'DASHBOARD';\n\nexport interface QueryTicketDefinitionsResponse {\n /** Total ticket definitions matching the given filters. */\n total?: number;\n /** Offset. */\n offset?: number;\n /**\n * Limit.\n * @max 100\n */\n limit?: number;\n /** Ticket definitions. */\n definitions?: TicketDefinition[];\n /** Filter facets. */\n facets?: Record<string, FacetCounts>;\n}\n\nexport interface FacetCounts {\n /** Facet counts aggregated per value. */\n counts?: Record<string, number>;\n}\n\nexport interface QueryTicketDefinitionsV2Request {\n /** Query request object. */\n query?: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\n /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n fields?: string[];\n /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryTicketDefinitionsV2Response {\n /** Ticket definitions. */\n definitions?: TicketDefinition[];\n /** Paging metadata definitions. */\n metadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface ListTicketDefinitionsRequest {\n /**\n * Event ID.\n * @format GUID\n * @maxSize 100\n */\n eventId?: string[];\n /** Offset. */\n offset?: number;\n /**\n * Paging limit.\n * @max 100\n */\n limit?: number;\n /**\n * Predefined sets of fields to return.\n * - `DASHBOARD`: Returns `dashboard`.\n * - `POLICY`: Returns `policy`.\n *\n * Default: If `fieldset` is omitted from the request, `id`, `price`, `free`, `name`, `limitPerCheckout`, `orderIndex`, `eventId`.\n *\n * @maxSize 20\n */\n fieldset?: TicketDefinitionFieldsetWithLiterals[];\n /**\n * Event creator ID.\n * @format GUID\n * @maxSize 1\n */\n eventCreatorId?: string[];\n /**\n * Filter by ticket definition state.\n *\n * Supported values: `\"VISIBLE\"`, `\"HIDDEN\"`, `\"FREE\"`, `\"PAID\"`\n * @maxSize 20\n */\n state?: StateWithLiterals[];\n /**\n * Sort order.\n *\n * Default: `\"created\"`:`\"asc\"`\n * @maxLength 100\n */\n sort?: string;\n /**\n * Ticket sale status.\n *\n * Supported values: `\"SALE_SCHEDULED\"`, `\"SALE_STARTED\"`, `\"SALE_ENDED\"`\n * @maxSize 5\n */\n saleStatus?: TicketSaleStatusWithLiterals[];\n /**\n * Filter facets.\n * @maxLength 20\n * @maxSize 10\n */\n facet?: string[];\n}\n\nexport enum State {\n /** The ticket is available for purchase. */\n VISIBLE = 'VISIBLE',\n /** The ticket is unavailable for purchase. */\n HIDDEN = 'HIDDEN',\n /** The ticket price is 0. */\n FREE = 'FREE',\n /** The ticket price is greater than 0. */\n PAID = 'PAID',\n}\n\n/** @enumType */\nexport type StateWithLiterals = State | 'VISIBLE' | 'HIDDEN' | 'FREE' | 'PAID';\n\nexport enum GroupBy {\n /** No grouping. */\n NONE = 'NONE',\n /** Groups by event created date with descending sorting. */\n EVENT_CREATED_DESC = 'EVENT_CREATED_DESC',\n /** Groups by event created date with ascending sorting. */\n EVENT_CREATED_ASC = 'EVENT_CREATED_ASC',\n}\n\n/** @enumType */\nexport type GroupByWithLiterals =\n | GroupBy\n | 'NONE'\n | 'EVENT_CREATED_DESC'\n | 'EVENT_CREATED_ASC';\n\nexport interface ListTicketDefinitionsResponse {\n /** Meta data. */\n metaData?: ResponseMetaData;\n /** Retrieved ticket definitions. */\n definitions?: TicketDefinition[];\n /** Filter facets. */\n facets?: Record<string, FacetCounts>;\n}\n\nexport interface ResponseMetaData {\n /** Number of items in the response. */\n count?: number;\n /** Offset of items. */\n offset?: number;\n /** Total number of matching items. */\n total?: number;\n}\n\nexport interface GetTicketDefinitionRequest {\n /**\n * Ticket definition ID.\n * @format GUID\n */\n definitionId: string;\n /**\n * Predefined sets of fields to return.\n * - `DASHBOARD`: Returns `dashboard`.\n * - `POLICY`: Returns `policy`.\n *\n * Default: If `fieldset` is omitted from the request, `id`, `price`, `free`, `name`, `limitPerCheckout`, `orderIndex`, `eventId`.\n * @maxSize 20\n */\n fieldset?: TicketDefinitionFieldsetWithLiterals[];\n}\n\nexport interface GetTicketDefinitionResponse {\n /** Retrieved ticket definition. */\n definition?: TicketDefinition;\n}\n\nexport interface CreateTicketDefinitionRequest {\n /**\n * Event ID.\n * @format GUID\n */\n eventId: string;\n /** Ticket definition data. */\n definition: TicketDefinitionData;\n}\n\nexport interface TicketDefinitionData {\n /**\n * Ticket name.\n * @maxLength 30\n */\n name?: string | null;\n /** Ticket price. */\n price?: Money;\n /**\n * Ticket description.\n * @maxLength 500\n */\n description?: string | null;\n /** Whether this ticket type is limited in quantity. */\n limited?: boolean;\n /**\n * Limit for this ticket type.\n *\n * `NULL` for unlimited.\n */\n quantity?: number | null;\n /** Custom sort index for manual tickets ordering implementation. */\n orderIndex?: number;\n /**\n * Policy information in plain text (as listed on the ticket).\n * @maxLength 1000\n */\n policy?: string | null;\n /** Whether this ticket type is hidden to customers and cannot be purchased. */\n hidden?: boolean;\n /** Configuration of the fixed-rate Wix ticket service fee that is applied to each ticket sold. */\n wixFeeConfig?: WixFeeConfig;\n /** Ticket sale period. */\n salePeriod?: TicketSalePeriod;\n /** Ticket pricing. */\n pricing?: TicketPricing;\n}\n\nexport interface CreateTicketDefinitionResponse {\n /** Created ticket definition. */\n definition?: TicketDefinition;\n}\n\nexport interface TicketDefinitionCreated {\n /** Ticket Definition created timestamp in ISO UTC format. */\n timestamp?: Date | null;\n /**\n * Ticket Definition ID.\n * @format GUID\n */\n ticketDefinitionId?: string;\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n /** Originated from. */\n originatedFrom?: OriginatedFrom;\n}\n\nexport interface OriginatedFrom {\n /**\n * Instance ID. Indicates the original app instance which current entity originated from.\n * @format GUID\n */\n instanceId?: string;\n /**\n * Event ID. Indicates the original event which current entity originated from.\n * @format GUID\n */\n eventId?: string;\n /**\n * Event ID. Indicates the original entity which current entity originated from.\n * @format GUID\n */\n entityId?: string;\n}\n\nexport interface UpdateTicketDefinitionRequest {\n /**\n * Event ID.\n * @format GUID\n */\n eventId: string;\n /**\n * Ticket definition ID.\n * @format GUID\n */\n definitionId: string;\n /** Ticket definition data. */\n definition?: TicketDefinitionData;\n /** Set of field paths, specifying which parts of ticket definition to update. */\n fields?: string[];\n}\n\nexport interface UpdateTicketDefinitionResponse {\n /** Updated ticket definition. */\n definition?: TicketDefinition;\n}\n\nexport interface TicketDefinitionUpdated {\n /** Ticket definition updated timestamp in ISO UTC format. */\n timestamp?: Date | null;\n /**\n * Ticket definition ID.\n * @format GUID\n */\n ticketDefinitionId?: string;\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n}\n\nexport interface DeleteTicketDefinitionRequest\n extends DeleteTicketDefinitionRequestDeleteOneOf {\n /** Ticket definitions to delete. */\n byId?: ById;\n /** Whether to delete all event tickets. */\n all?: boolean;\n /**\n * Event ID.\n * @format GUID\n */\n eventId: string;\n}\n\n/** @oneof */\nexport interface DeleteTicketDefinitionRequestDeleteOneOf {\n /** Ticket definitions to delete. */\n byId?: ById;\n /** Whether to delete all event tickets. */\n all?: boolean;\n}\n\nexport interface ById {\n /**\n * Ticket definition IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n definitionId?: string[];\n}\n\nexport interface DeleteTicketDefinitionResponse {}\n\nexport interface TicketDefinitionDeleted {\n /** Ticket definition deleted timestamp in ISO UTC format. */\n timestamp?: Date | null;\n /**\n * Ticket definition ID.\n * @format GUID\n */\n ticketDefinitionId?: string;\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n}\n\nexport interface ChangeCurrencyRequest {\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n /**\n * Event currency, in 3-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n * @minLength 3\n * @maxLength 3\n */\n currency: string;\n}\n\nexport interface ChangeCurrencyResponse {}\n\nexport interface BulkCopyTicketDefinitionsByEventIdRequest {\n /** Origin instance ID. */\n originInstanceId?: string | null;\n /**\n * Origin Event ID.\n * @format GUID\n */\n originEventId?: string;\n /**\n * Target Event ID.\n * @format GUID\n */\n targetEventId?: string;\n}\n\nexport interface BulkCopyTicketDefinitionsByEventIdResponse {\n /** Copied ticket definitions. */\n definitions?: CopiedTicketDefinition[];\n}\n\nexport interface CopiedTicketDefinition {\n /** Origin Ticket definition ID. */\n originTicketDefinitionId?: string;\n /** Ticket definition ID. */\n ticketDefinitionId?: string;\n}\n\nexport interface PaidTicketDefinitionExistsRequest {}\n\nexport interface PaidTicketDefinitionExistsResponse {\n /** Paid exists. */\n paidExists?: boolean;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface TicketDefinitionCreatedEnvelope {\n data: TicketDefinitionCreated;\n metadata: BaseEventMetadata;\n}\n\n/** @permissionScope Manage Events - all permissions\n * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS\n * @permissionScope Manage Ticket Definitions\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF\n * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS\n * @webhook\n * @eventType wix.events.ticketing.events.TicketDefinitionCreated\n * @serviceIdentifier wix.events.ticketing.TicketDefinitionManagement\n * @slug ticket_definition_created\n */\nexport declare function onTicketDefinitionCreated(\n handler: (event: TicketDefinitionCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface TicketDefinitionDeletedEnvelope {\n data: TicketDefinitionDeleted;\n metadata: BaseEventMetadata;\n}\n\n/** @permissionScope Manage Events - all permissions\n * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS\n * @permissionScope Manage Ticket Definitions\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF\n * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS\n * @webhook\n * @eventType wix.events.ticketing.events.TicketDefinitionDeleted\n * @serviceIdentifier wix.events.ticketing.TicketDefinitionManagement\n * @slug ticket_definition_deleted\n */\nexport declare function onTicketDefinitionDeleted(\n handler: (event: TicketDefinitionDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface TicketDefinitionUpdatedEnvelope {\n data: TicketDefinitionUpdated;\n metadata: BaseEventMetadata;\n}\n\n/** @permissionScope Manage Events - all permissions\n * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS\n * @permissionScope Manage Ticket Definitions\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF\n * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS\n * @webhook\n * @eventType wix.events.ticketing.events.TicketDefinitionUpdated\n * @serviceIdentifier wix.events.ticketing.TicketDefinitionManagement\n * @slug ticket_definition_updated\n */\nexport declare function onTicketDefinitionUpdated(\n handler: (event: TicketDefinitionUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinition()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinition()`, and replace it with `ticketDefinitionsV2.queryTicketDefinition()`. Update your code to work with the new `createTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 100 ticket definitions.\n * @public\n * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS\n * @applicableIdentity APP\n * @fqn wix.events.ticketing.TicketDefinitionManagement.QueryTicketDefinitions\n * @deprecated\n * @targetRemovalDate 2024-12-01\n */\nexport async function queryTicketDefinitions(\n options?: QueryTicketDefinitionsOptions\n): Promise<\n NonNullablePaths<\n QueryTicketDefinitionsResponse,\n | `total`\n | `offset`\n | `limit`\n | `definitions`\n | `definitions.${number}._id`\n | `definitions.${number}.price.amount`\n | `definitions.${number}.price.currency`\n | `definitions.${number}.free`\n | `definitions.${number}.name`\n | `definitions.${number}.description`\n | `definitions.${number}.limitPerCheckout`\n | `definitions.${number}.orderIndex`\n | `definitions.${number}.policy`\n | `definitions.${number}.dashboard.hidden`\n | `definitions.${number}.dashboard.sold`\n | `definitions.${number}.dashboard.limited`\n | `definitions.${number}.dashboard.ticketsSold`\n | `definitions.${number}.dashboard.ticketsReserved`\n | `definitions.${number}.eventId`\n | `definitions.${number}.wixFeeConfig.type`\n | `definitions.${number}.salePeriod.hideNotOnSale`\n | `definitions.${number}.saleStatus`\n | `definitions.${number}.pricing.pricingType`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n offset: options?.offset,\n limit: options?.limit,\n fieldset: options?.fieldset,\n filter: options?.filter,\n sort: options?.sort,\n facet: options?.facet,\n });\n\n const reqOpts =\n ambassadorWixEventsV1TicketDefinition.queryTicketDefinitions(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n offset: '$[0].offset',\n limit: '$[0].limit',\n fieldset: '$[0].fieldset',\n filter: '$[0].filter',\n sort: '$[0].sort',\n facet: '$[0].facet',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface QueryTicketDefinitionsOptions {\n /** Offset. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */\n offset?: number;\n /**\n * Limit. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).\n * @max 100\n */\n limit?: number;\n /**\n * Set of fields to return in the response. See [fieldsets](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_ticket-definition-fieldset).\n * @maxSize 20\n */\n fieldset?: TicketDefinitionFieldsetWithLiterals[];\n /** Filter. See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions). */\n filter?: Record<string, any> | null;\n /**\n * Sort order. Defaults to: \"created:asc\".\n * See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions).\n * @maxLength 100\n */\n sort?: string;\n /**\n * Filter facets to include in the response.\n * See [supported facets](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions).\n * @maxLength 20\n * @maxSize 10\n */\n facet?: string[];\n}\n\n/**\n * **Deprecated.** This function will continue to work until October 29, 2024, but a newer version is available at [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinitions()`, and replace it with `ticketDefinitionsV2.queryTicketDefinitions()`. Update your code to work with the new `queryTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 1,000 ticket definitions, given the provided paging and filtering.\n * @public\n * @documentationMaturity preview\n * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS\n * @applicableIdentity APP\n * @fqn wix.events.ticketing.TicketDefinitionManagement.QueryTicketDefinitionsV2\n * @deprecated\n * @targetRemovalDate 2024-12-01\n */\nexport function queryTicketDefinitionsV2(\n options?: QueryTicketDefinitionsV2Options\n): DefinitionsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n TicketDefinition,\n 'CURSOR',\n QueryTicketDefinitionsV2Request,\n QueryTicketDefinitionsV2Response\n >({\n func: async (payload: QueryTicketDefinitionsV2Request) => {\n const reqOpts =\n ambassadorWixEventsV1TicketDefinition.queryTicketDefinitionsV2({\n ...payload,\n ...(options ?? {}),\n });\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryTicketDefinitionsV2Request['query']) => {\n const args = [query, options] as [\n QueryTicketDefinitionsV2Request['query'],\n QueryTicketDefinitionsV2Options\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryTicketDefinitionsV2Response>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.definitions,\n pagingMetadata: transformedData?.metadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\nexport interface QueryTicketDefinitionsV2Options {}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface DefinitionsQueryResult extends QueryCursorResult {\n items: TicketDefinition[];\n query: DefinitionsQueryBuilder;\n next: () => Promise<DefinitionsQueryResult>;\n prev: () => Promise<DefinitionsQueryResult>;\n}\n\nexport interface DefinitionsQueryBuilder {\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => DefinitionsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => DefinitionsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<DefinitionsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.events.ticketing.TicketDefinitionManagement.QueryTicketDefinitionsV2\n * @requiredField query\n */\nexport async function typedQueryTicketDefinitionsV2(\n query: QueryV2,\n options?: QueryTicketDefinitionsV2Options\n): Promise<\n NonNullablePaths<\n QueryTicketDefinitionsV2Response,\n | `definitions`\n | `definitions.${number}._id`\n | `definitions.${number}.price.amount`\n | `definitions.${number}.price.currency`\n | `definitions.${number}.free`\n | `definitions.${number}.name`\n | `definitions.${number}.description`\n | `definitions.${number}.limitPerCheckout`\n | `definitions.${number}.orderIndex`\n | `definitions.${number}.policy`\n | `definitions.${number}.dashboard.hidden`\n | `definitions.${number}.dashboard.sold`\n | `definitions.${number}.dashboard.limited`\n | `definitions.${number}.dashboard.ticketsSold`\n | `definitions.${number}.dashboard.ticketsReserved`\n | `definitions.${number}.eventId`\n | `definitions.${number}.wixFeeConfig.type`\n | `definitions.${number}.salePeriod.hideNotOnSale`\n | `definitions.${number}.saleStatus`\n | `definitions.${number}.pricing.pricingType`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n ...options,\n });\n\n const reqOpts =\n ambassadorWixEventsV1TicketDefinition.queryTicketDefinitionsV2(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a substitute is available. Use the [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinitions()`, and replace it with `ticketDefinitionsV2.queryTicketDefinitions()`. Update your code to work with the new `queryTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 100 ticket definitions, with basic filter support.\n * @public\n * @param options - Details for the tickets to retrieve.\n * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS\n * @applicableIdentity APP\n * @fqn wix.events.ticketing.TicketDefinitionManagement.ListTicketDefinitions\n * @deprecated\n * @targetRemovalDate 2024-12-01\n */\nexport async function listTicketDefinitions(\n options?: ListTicketDefinitionsOptions\n): Promise<\n NonNullablePaths<\n ListTicketDefinitionsResponse,\n | `metaData.count`\n | `metaData.offset`\n | `metaData.total`\n | `definitions`\n | `definitions.${number}._id`\n | `definitions.${number}.price.amount`\n | `definitions.${number}.price.currency`\n | `definitions.${number}.free`\n | `definitions.${number}.name`\n | `definitions.${number}.description`\n | `definitions.${number}.limitPerCheckout`\n | `definitions.${number}.orderIndex`\n | `definitions.${number}.policy`\n | `definitions.${number}.dashboard.hidden`\n | `definitions.${number}.dashboard.sold`\n | `definitions.${number}.dashboard.limited`\n | `definitions.${number}.dashboard.ticketsSold`\n | `definitions.${number}.dashboard.ticketsReserved`\n | `definitions.${number}.eventId`\n | `definitions.${number}.wixFeeConfig.type`\n | `definitions.${number}.salePeriod.hideNotOnSale`\n | `definitions.${number}.saleStatus`\n | `definitions.${number}.pricing.pricingType`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n eventId: options?.eventId,\n offset: options?.offset,\n limit: options?.limit,\n fieldset: options?.fieldset,\n eventCreatorId: options?.eventCreatorId,\n state: options?.state,\n sort: options?.sort,\n saleStatus: options?.saleStatus,\n facet: options?.facet,\n });\n\n const reqOpts =\n ambassadorWixEventsV1TicketDefinition.listTicketDefinitions(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n eventId: '$[0].eventId',\n offset: '$[0].offset',\n limit: '$[0].limit',\n fieldset: '$[0].fieldset',\n eventCreatorId: '$[0].eventCreatorId',\n state: '$[0].state',\n sort: '$[0].sort',\n saleStatus: '$[0].saleStatus',\n facet: '$[0].facet',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListTicketDefinitionsOptions {\n /**\n * Event ID.\n * @format GUID\n * @maxSize 100\n */\n eventId?: string[];\n /** Offset. */\n offset?: number;\n /**\n * Paging limit.\n * @max 100\n */\n limit?: number;\n /**\n * Predefined sets of fields to return.\n * - `DASHBOARD`: Returns `dashboard`.\n * - `POLICY`: Returns `policy`.\n *\n * Default: If `fieldset` is omitted from the request, `id`, `price`, `free`, `name`, `limitPerCheckout`, `orderIndex`, `eventId`.\n * @maxSize 20\n */\n fieldset?: TicketDefinitionFieldsetWithLiterals[];\n /**\n * Event creator ID.\n * @format GUID\n * @maxSize 1\n */\n eventCreatorId?: string[];\n /**\n * Filter by ticket definition state.\n *\n * Supported values: `\"VISIBLE\"`, `\"HIDDEN\"`, `\"FREE\"`, `\"PAID\"`\n * @maxSize 20\n */\n state?: StateWithLiterals[];\n /**\n * Sort order.\n *\n * Default: `\"created\"`:`\"asc\"`.\n *\n * See [Ticket Definitions Sort](/wix-events-v2/ticketdefinitions/ticket-definitions-sort) for more information.\n *\n *\n *\n *\n * @maxLength 100\n */\n sort?: string;\n /**\n * Ticket sale status.\n *\n * Supported values: `\"SALE_SCHEDULED\"`, `\"SALE_STARTED\"`, `\"SALE_ENDED\"`\n * @maxSize 5\n */\n saleStatus?: TicketSaleStatusWithLiterals[];\n /**\n * Filter facets.\n * @maxLength 20\n * @maxSize 10\n */\n facet?: string[];\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`getTicketDefinition()`](/ticket-definitions-v2/get-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`getTicketDefinition()`](/ticket-definitions-v2/get-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.getTicketDefinition()`, and replace it with `ticketDefinitionsV2.getTicketDefinition()`. Update your code to work with the new `getTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a ticket definition.\n * @param definitionId - Ticket definition ID.\n * @public\n * @requiredField definitionId\n * @param options - Details for the ticket to retrieve.\n * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS\n * @applicableIdentity APP\n * @returns Retrieved ticket definition.\n * @fqn wix.events.ticketing.TicketDefinitionManagement.GetTicketDefinition\n * @deprecated\n * @targetRemovalDate 2024-12-01\n */\nexport async function getTicketDefinition(\n definitionId: string,\n options?: GetTicketDefinitionOptions\n): Promise<\n NonNullablePaths<\n TicketDefinition,\n | `_id`\n | `price.amount`\n | `price.currency`\n | `free`\n | `name`\n | `description`\n | `limitPerCheckout`\n | `orderIndex`\n | `policy`\n | `dashboard.hidden`\n | `dashboard.sold`\n | `dashboard.limited`\n | `dashboard.ticketsSold`\n | `dashboard.ticketsReserved`\n | `eventId`\n | `wixFeeConfig.type`\n | `salePeriod.hideNotOnSale`\n | `saleStatus`\n | `state`\n | `pricing.pricingOptions.options`\n | `pricing.pricingType`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n definitionId: definitionId,\n fieldset: options?.fieldset,\n });\n\n const reqOpts =\n ambassadorWixEventsV1TicketDefinition.getTicketDefinition(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.definition!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n definitionId: '$[0]',\n fieldset: '$[1].fieldset',\n },\n singleArgumentUnchanged: false,\n },\n ['definitionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetTicketDefinitionOptions {\n /**\n * Predefined sets of fields to return.\n * - `DASHBOARD`: Returns `dashboard`.\n * - `POLICY`: Returns `policy`.\n *\n * Default: If `fieldset` is omitted from the request, `id`, `price`, `free`, `name`, `limitPerCheckout`, `orderIndex`, `eventId`.\n * @maxSize 20\n */\n fieldset?: TicketDefinitionFieldsetWithLiterals[];\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`createTicketDefinition()`](/ticket-definitions-v2/create-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`createTicketDefinition()`](/ticket-definitions-v2/create-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.createTicketDefinition()`, and replace it with `ticketDefinitionsV2.createTicketDefinition()`. Update your code to work with the new `createTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Creates a ticket definition (and enables ticket sales).\n * @param eventId - Event ID.\n * @public\n * @requiredField eventId\n * @requiredField options\n * @requiredField options.definition\n * @requiredField options.definition.name\n * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS\n * @applicableIdentity APP\n * @fqn wix.events.ticketing.TicketDefinitionManagement.CreateTicketDefinition\n * @deprecated\n * @targetRemovalDate 2024-12-01\n */\nexport async function createTicketDefinition(\n eventId: string,\n options: NonNullablePaths<\n CreateTicketDefinitionOptions,\n `definition` | `definition.name`,\n 3\n >\n): Promise<\n NonNullablePaths<\n CreateTicketDefinitionResponse,\n | `definition._id`\n | `definition.price.amount`\n | `definition.price.currency`\n | `definition.free`\n | `definition.name`\n | `definition.description`\n | `definition.limitPerCheckout`\n | `definition.orderIndex`\n | `definition.policy`\n | `definition.dashboard.hidden`\n | `definition.dashboard.sold`\n | `definition.dashboard.limited`\n | `definition.dashboard.ticketsSold`\n | `definition.dashboard.ticketsReserved`\n | `definition.eventId`\n | `definition.wixFeeConfig.type`\n | `definition.salePeriod.hideNotOnSale`\n | `definition.saleStatus`\n | `definition.state`\n | `definition.pricing.pricingOptions.options`\n | `definition.pricing.pricingType`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n eventId: eventId,\n definition: options?.definition,\n });\n\n const reqOpts =\n ambassadorWixEventsV1TicketDefinition.createTicketDefinition(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n eventId: '$[0]',\n definition: '$[1].definition',\n },\n singleArgumentUnchanged: false,\n },\n ['eventId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateTicketDefinitionOptions {\n /** Ticket definition data. */\n definition: TicketDefinitionData;\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`updateTicketDefinition()`](/ticket-definitions-v2/update-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`updateTicketDefinition()`](/ticket-definitions-v2/update-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.updateTicketDefinition()`, and replace it with `ticketDefinitionsV2.updateTicketDefinition()`. Update your code to work with the new `updateTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n *\n * Updates a ticket definition.\n *\n * See [Partial Updates](/wix-events-v2/partial-updates) for more information.\n * @param definitionId - Ticket definition ID.\n * @param eventId - Event ID.\n * @public\n * @requiredField definitionId\n * @requiredField eventId\n * @param identifiers - Details of the ticket definition to update.\n * @param options - Ticket definition details to update.\n * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS\n * @applicableIdentity APP\n * @fqn wix.events.ticketing.TicketDefinitionManagement.UpdateTicketDefinition\n * @deprecated\n * @targetRemovalDate 2024-12-01\n */\nexport async function updateTicketDefinition(\n definitionId: string,\n eventId: string,\n options?: UpdateTicketDefinitionOptions\n): Promise<\n NonNullablePaths<\n UpdateTicketDefinitionResponse,\n | `definition._id`\n | `definition.price.amount`\n | `definition.price.currency`\n | `definition.free`\n | `definition.name`\n | `definition.description`\n | `definition.limitPerCheckout`\n | `definition.orderIndex`\n | `definition.policy`\n | `definition.dashboard.hidden`\n | `definition.dashboard.sold`\n | `definition.dashboard.limited`\n | `definition.dashboard.ticketsSold`\n | `definition.dashboard.ticketsReserved`\n | `definition.eventId`\n | `definition.wixFeeConfig.type`\n | `definition.salePeriod.hideNotOnSale`\n | `definition.saleStatus`\n | `definition.state`\n | `definition.pricing.pricingOptions.options`\n | `definition.pricing.pricingType`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n definitionId: definitionId,\n eventId: eventId,\n definition: options?.definition,\n fields: options?.fields,\n });\n\n const reqOpts =\n ambassadorWixEventsV1TicketDefinition.updateTicketDefinition(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n definitionId: '$[0]',\n eventId: '$[1]',\n definition: '$[2].definition',\n fields: '$[2].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['definitionId', 'eventId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateTicketDefinitionOptions {\n /** Ticket definition data. */\n definition?: TicketDefinitionData;\n /** Set of field paths, specifying which parts of ticket definition to update. */\n fields?: string[];\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`deleteTicketDefinition()`](/ticket-definitions-v2/delete-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`deleteTicketDefinition()`](/ticket-definitions-v2/delete-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.deleteTicketDefinition()`, and replace it with `ticketDefinitionsV2.deleteTicketDefinition()`. Update your code to work with the new `deleteTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Deletes a ticket definition.\n * @param eventId - Event ID.\n * @public\n * @requiredField eventId\n * @param options - Details of tickets to delete.\n * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS\n * @applicableIdentity APP\n * @fqn wix.events.ticketing.TicketDefinitionManagement.DeleteTicketDefinition\n * @deprecated\n * @targetRemovalDate 2024-12-01\n */\nexport async function deleteTicketDefinition(\n eventId: string,\n options?: DeleteTicketDefinitionOptions\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n eventId: eventId,\n byId: options?.byId,\n all: options?.all,\n });\n\n const reqOpts =\n ambassadorWixEventsV1TicketDefinition.deleteTicketDefinition(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n eventId: '$[0]',\n byId: '$[1].byId',\n all: '$[1].all',\n },\n singleArgumentUnchanged: false,\n },\n ['eventId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DeleteTicketDefinitionOptions\n extends DeleteTicketDefinitionOptionsDeleteOneOf {\n /** Ticket definitions to delete. */\n byId?: ById;\n /** Whether to delete all event tickets. */\n all?: boolean;\n}\n\n/** @oneof */\nexport interface DeleteTicketDefinitionOptionsDeleteOneOf {\n /** Ticket definitions to delete. */\n byId?: ById;\n /** Whether to delete all event tickets. */\n all?: boolean;\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available at [`changeCurrency()`](/ticket-definitions-v2/change-currency).\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`changeCurrency()`](/ticket-definitions-v2/change-currency).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.changeCurrency()`, and replace it with `ticketDefinitionsV2.changeCurrency()`. Update your code to work with the new `changeCurrency()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Changes the currency for all tickets per event.\n *\n * @public\n * @requiredField options.currency\n * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS\n * @applicableIdentity APP\n * @fqn wix.events.ticketing.TicketDefinitionManagement.ChangeCurrency\n * @deprecated\n * @targetRemovalDate 2024-12-01\n */\nexport async function changeCurrency(\n options?: NonNullablePaths<ChangeCurrencyOptions, `currency`, 2>\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n eventId: options?.eventId,\n currency: options?.currency,\n });\n\n const reqOpts = ambassadorWixEventsV1TicketDefinition.changeCurrency(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n eventId: '$[0].eventId',\n currency: '$[0].currency',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ChangeCurrencyOptions {\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n /**\n * Event currency, in 3-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n * @minLength 3\n * @maxLength 3\n */\n currency: string;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEventsTicketingTicketDefinitionManagementUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/wix-events-web/v1/tickets',\n destPath: '/v1/tickets',\n },\n {\n srcPath: '/events/v1/tickets',\n destPath: '/v1/tickets',\n },\n {\n srcPath: '/events/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/events/v2/ticket-definitions',\n destPath: '/v2/ticket-definitions',\n },\n {\n srcPath: '/events/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/events/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/events/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n {\n srcPath: '/_api/events/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v2/ticket-definitions',\n destPath: '/v2/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/events/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n {\n srcPath: '/_api/events/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/events-ticketing-v1-proxy',\n destPath: '/api',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/events/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/events/v2/ticket-definitions',\n destPath: '/v2/ticket-definitions',\n },\n {\n srcPath: '/events/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/events/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/events/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n _: [\n {\n srcPath: '/_api/events/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v2/ticket-definition',\n destPath: '/v2/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/events/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n {\n srcPath: '/_api/events/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/events-ticketing-v1-proxy/v1',\n destPath: '/v1',\n },\n {\n srcPath: '/_api/events-ticketing-v1-proxy/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets',\n destPath: '/v1/tickets',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/events/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v2/ticket-definitions',\n destPath: '/v2/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/events/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n {\n srcPath: '/_api/events/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets',\n destPath: '/v1/tickets',\n },\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/events/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v2/ticket-definitions',\n destPath: '/v2/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/events/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n {\n srcPath: '/_api/events/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets',\n destPath: '/v1/tickets',\n },\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/events/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v2/ticket-definitions',\n destPath: '/v2/ticket-definitions',\n },\n {\n srcPath: '/_api/events/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/events/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n {\n srcPath: '/_api/events/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets',\n destPath: '/v1/tickets',\n },\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n 'api._base_domain_': [\n {\n srcPath: '/events/v1/tickets',\n destPath: '/v1/tickets',\n },\n {\n srcPath: '/events/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/events/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/events/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/events/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n 'editor-flow.wixapps.net': [\n {\n srcPath: '/_api/wix-events-web/v1/tickets',\n destPath: '/v1/tickets',\n },\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/wix-events-web/v1/tickets',\n destPath: '/v1/tickets',\n },\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/wix-events-web/v1/checkout',\n destPath: '/v1/checkout',\n },\n {\n srcPath: '/_api/wix-events-web/v1/ticket-definitions',\n destPath: '/v1/ticket-definitions',\n },\n {\n srcPath: '/_api/wix-events-web/v1/tickets/available',\n destPath: '/v1/tickets/available',\n },\n {\n srcPath: '/_api/wix-events-web/v1/pos-checkout',\n destPath: '/v1/pos-checkout',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_events_ticket-definitions';\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinition()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinition()`, and replace it with `ticketDefinitionsV2.queryTicketDefinition()`. Update your code to work with the new `createTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 100 ticket definitions.\n * @deprecated Will be removed on 2024-12-01.\n */\nexport function queryTicketDefinitions(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryTicketDefinitions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.ticket_definition',\n method: 'POST' as any,\n methodFqn:\n 'wix.events.ticketing.TicketDefinitionManagement.QueryTicketDefinitions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsTicketingTicketDefinitionManagementUrl({\n protoPath: '/v1/ticket-definitions/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'definitions.salePeriod.startDate' },\n { path: 'definitions.salePeriod.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTicketDefinitions;\n}\n\n/**\n * **Deprecated.** This function will continue to work until October 29, 2024, but a newer version is available at [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinitions()`, and replace it with `ticketDefinitionsV2.queryTicketDefinitions()`. Update your code to work with the new `queryTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 1,000 ticket definitions, given the provided paging and filtering.\n * @deprecated Will be removed on 2024-12-01.\n */\nexport function queryTicketDefinitionsV2(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryTicketDefinitionsV2({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.ticket_definition',\n method: 'POST' as any,\n methodFqn:\n 'wix.events.ticketing.TicketDefinitionManagement.QueryTicketDefinitionsV2',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsTicketingTicketDefinitionManagementUrl({\n protoPath: '/v2/ticket-definitions/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'definitions.salePeriod.startDate' },\n { path: 'definitions.salePeriod.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTicketDefinitionsV2;\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a substitute is available. Use the [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinitions()`, and replace it with `ticketDefinitionsV2.queryTicketDefinitions()`. Update your code to work with the new `queryTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 100 ticket definitions, with basic filter support.\n * @deprecated Will be removed on 2024-12-01.\n */\nexport function listTicketDefinitions(\n payload: object\n): RequestOptionsFactory<any> {\n function __listTicketDefinitions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.ticket_definition',\n method: 'GET' as any,\n methodFqn:\n 'wix.events.ticketing.TicketDefinitionManagement.ListTicketDefinitions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsTicketingTicketDefinitionManagementUrl({\n protoPath: '/v1/ticket-definitions',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'definitions.salePeriod.startDate' },\n { path: 'definitions.salePeriod.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listTicketDefinitions;\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`getTicketDefinition()`](/ticket-definitions-v2/get-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`getTicketDefinition()`](/ticket-definitions-v2/get-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.getTicketDefinition()`, and replace it with `ticketDefinitionsV2.getTicketDefinition()`. Update your code to work with the new `getTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a ticket definition.\n * @deprecated Will be removed on 2024-12-01.\n */\nexport function getTicketDefinition(\n payload: object\n): RequestOptionsFactory<any> {\n function __getTicketDefinition({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.ticket_definition',\n method: 'GET' as any,\n methodFqn:\n 'wix.events.ticketing.TicketDefinitionManagement.GetTicketDefinition',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsTicketingTicketDefinitionManagementUrl({\n protoPath: '/v1/ticket-definitions/{definitionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'definition.salePeriod.startDate' },\n { path: 'definition.salePeriod.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getTicketDefinition;\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`createTicketDefinition()`](/ticket-definitions-v2/create-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`createTicketDefinition()`](/ticket-definitions-v2/create-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.createTicketDefinition()`, and replace it with `ticketDefinitionsV2.createTicketDefinition()`. Update your code to work with the new `createTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Creates a ticket definition (and enables ticket sales).\n * @deprecated Will be removed on 2024-12-01.\n */\nexport function createTicketDefinition(\n payload: object\n): RequestOptionsFactory<any> {\n function __createTicketDefinition({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'definition.salePeriod.startDate' },\n { path: 'definition.salePeriod.endDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.events.v1.ticket_definition',\n method: 'POST' as any,\n methodFqn:\n 'wix.events.ticketing.TicketDefinitionManagement.CreateTicketDefinition',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsTicketingTicketDefinitionManagementUrl({\n protoPath: '/v1/ticket-definitions',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'definition.salePeriod.startDate' },\n { path: 'definition.salePeriod.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createTicketDefinition;\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`updateTicketDefinition()`](/ticket-definitions-v2/update-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`updateTicketDefinition()`](/ticket-definitions-v2/update-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.updateTicketDefinition()`, and replace it with `ticketDefinitionsV2.updateTicketDefinition()`. Update your code to work with the new `updateTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n *\n * Updates a ticket definition.\n *\n * See [Partial Updates](/wix-events-v2/partial-updates) for more information.\n * @deprecated Will be removed on 2024-12-01.\n */\nexport function updateTicketDefinition(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateTicketDefinition({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fields' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'definition.salePeriod.startDate' },\n { path: 'definition.salePeriod.endDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.events.v1.ticket_definition',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.events.ticketing.TicketDefinitionManagement.UpdateTicketDefinition',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsTicketingTicketDefinitionManagementUrl({\n protoPath: '/v1/ticket-definitions/{definitionId}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'definition.salePeriod.startDate' },\n { path: 'definition.salePeriod.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateTicketDefinition;\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`deleteTicketDefinition()`](/ticket-definitions-v2/delete-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`deleteTicketDefinition()`](/ticket-definitions-v2/delete-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.deleteTicketDefinition()`, and replace it with `ticketDefinitionsV2.deleteTicketDefinition()`. Update your code to work with the new `deleteTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Deletes a ticket definition.\n * @deprecated Will be removed on 2024-12-01.\n */\nexport function deleteTicketDefinition(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteTicketDefinition({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.ticket_definition',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.events.ticketing.TicketDefinitionManagement.DeleteTicketDefinition',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsTicketingTicketDefinitionManagementUrl({\n protoPath: '/v1/ticket-definitions',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteTicketDefinition;\n}\n\n/**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available at [`changeCurrency()`](/ticket-definitions-v2/change-currency).\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`changeCurrency()`](/ticket-definitions-v2/change-currency).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.changeCurrency()`, and replace it with `ticketDefinitionsV2.changeCurrency()`. Update your code to work with the new `changeCurrency()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Changes the currency for all tickets per event.\n * @deprecated Will be removed on 2024-12-01.\n */\nexport function changeCurrency(payload: object): RequestOptionsFactory<any> {\n function __changeCurrency({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.ticket_definition',\n method: 'PUT' as any,\n methodFqn:\n 'wix.events.ticketing.TicketDefinitionManagement.ChangeCurrency',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsTicketingTicketDefinitionManagementUrl({\n protoPath: '/v1/ticket-definitions/currency',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __changeCurrency;\n}\n","import {\n queryTicketDefinitions as publicQueryTicketDefinitions,\n queryTicketDefinitionsV2 as publicQueryTicketDefinitionsV2,\n typedQueryTicketDefinitionsV2 as publicTypedQueryTicketDefinitionsV2,\n listTicketDefinitions as publicListTicketDefinitions,\n getTicketDefinition as publicGetTicketDefinition,\n createTicketDefinition as publicCreateTicketDefinition,\n updateTicketDefinition as publicUpdateTicketDefinition,\n deleteTicketDefinition as publicDeleteTicketDefinition,\n changeCurrency as publicChangeCurrency,\n} from './events-v1-ticket-definition-ticket-definitions.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n DefinitionsQueryBuilder,\n QueryTicketDefinitionsV2Options,\n QueryV2,\n typedQueryTicketDefinitionsV2 as universalTypedQueryTicketDefinitionsV2,\n} from './events-v1-ticket-definition-ticket-definitions.universal.js';\nimport { onTicketDefinitionCreated as publicOnTicketDefinitionCreated } from './events-v1-ticket-definition-ticket-definitions.public.js';\nimport { onTicketDefinitionDeleted as publicOnTicketDefinitionDeleted } from './events-v1-ticket-definition-ticket-definitions.public.js';\nimport { onTicketDefinitionUpdated as publicOnTicketDefinitionUpdated } from './events-v1-ticket-definition-ticket-definitions.public.js';\n\nfunction customQueryTicketDefinitionsV2(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: (options?: QueryTicketDefinitionsV2Options) =>\n publicQueryTicketDefinitionsV2(httpClient)(options),\n typedQueryFunction: (\n query: QueryV2,\n options?: QueryTicketDefinitionsV2Options\n ) => publicTypedQueryTicketDefinitionsV2(httpClient)(query, options),\n hasOptionsParameter: true,\n });\n\n function overloadedQuery(\n query: QueryV2\n ): ReturnType<typeof universalTypedQueryTicketDefinitionsV2>;\n function overloadedQuery(\n query: QueryV2,\n options: QueryTicketDefinitionsV2Options\n ): ReturnType<typeof universalTypedQueryTicketDefinitionsV2>;\n function overloadedQuery(): DefinitionsQueryBuilder;\n function overloadedQuery(\n options: QueryTicketDefinitionsV2Options\n ): DefinitionsQueryBuilder;\n function overloadedQuery(\n queryOrOptions?: QueryV2 | QueryTicketDefinitionsV2Options,\n options?: QueryTicketDefinitionsV2Options\n ): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\nexport const queryTicketDefinitions: MaybeContext<\n BuildRESTFunction<typeof publicQueryTicketDefinitions> &\n typeof publicQueryTicketDefinitions\n> = /*#__PURE__*/ createRESTModule(publicQueryTicketDefinitions);\nexport const listTicketDefinitions: MaybeContext<\n BuildRESTFunction<typeof publicListTicketDefinitions> &\n typeof publicListTicketDefinitions\n> = /*#__PURE__*/ createRESTModule(publicListTicketDefinitions);\nexport const getTicketDefinition: MaybeContext<\n BuildRESTFunction<typeof publicGetTicketDefinition> &\n typeof publicGetTicketDefinition\n> = /*#__PURE__*/ createRESTModule(publicGetTicketDefinition);\nexport const createTicketDefinition: MaybeContext<\n BuildRESTFunction<typeof publicCreateTicketDefinition> &\n typeof publicCreateTicketDefinition\n> = /*#__PURE__*/ createRESTModule(publicCreateTicketDefinition);\nexport const updateTicketDefinition: MaybeContext<\n BuildRESTFunction<typeof publicUpdateTicketDefinition> &\n typeof publicUpdateTicketDefinition\n> = /*#__PURE__*/ createRESTModule(publicUpdateTicketDefinition);\nexport const deleteTicketDefinition: MaybeContext<\n BuildRESTFunction<typeof publicDeleteTicketDefinition> &\n typeof publicDeleteTicketDefinition\n> = /*#__PURE__*/ createRESTModule(publicDeleteTicketDefinition);\nexport const changeCurrency: MaybeContext<\n BuildRESTFunction<typeof publicChangeCurrency> & typeof publicChangeCurrency\n> = /*#__PURE__*/ createRESTModule(publicChangeCurrency);\nexport const queryTicketDefinitionsV2: MaybeContext<\n BuildRESTFunction<typeof customQueryTicketDefinitionsV2> &\n typeof customQueryTicketDefinitionsV2\n> = /*#__PURE__*/ createRESTModule(customQueryTicketDefinitionsV2);\n/** */\nexport const onTicketDefinitionCreated: BuildEventDefinition<\n typeof publicOnTicketDefinitionCreated\n> &\n typeof publicOnTicketDefinitionCreated = createEventModule(\n publicOnTicketDefinitionCreated\n);\n/** */\nexport const onTicketDefinitionDeleted: BuildEventDefinition<\n typeof publicOnTicketDefinitionDeleted\n> &\n typeof publicOnTicketDefinitionDeleted = createEventModule(\n publicOnTicketDefinitionDeleted\n);\n/** */\nexport const onTicketDefinitionUpdated: BuildEventDefinition<\n typeof publicOnTicketDefinitionUpdated\n> &\n typeof publicOnTicketDefinitionUpdated = createEventModule(\n publicOnTicketDefinitionUpdated\n);\n\nexport {\n FeeType,\n TicketSaleStatus,\n TicketDefinitionStateEnumState,\n Type,\n TicketDefinitionFieldset,\n SortOrder,\n State,\n GroupBy,\n WebhookIdentityType,\n} from './events-v1-ticket-definition-ticket-definitions.universal.js';\nexport {\n TicketDefinition,\n Money,\n Dashboard,\n WixFeeConfig,\n TicketSalePeriod,\n TicketPricing,\n TicketPricingPriceOneOf,\n PricingOptions,\n PricingOption,\n QueryTicketDefinitionsRequest,\n QueryTicketDefinitionsResponse,\n FacetCounts,\n QueryTicketDefinitionsV2Request,\n QueryV2,\n QueryV2PagingMethodOneOf,\n Sorting,\n Paging,\n CursorPaging,\n QueryTicketDefinitionsV2Response,\n PagingMetadataV2,\n Cursors,\n ListTicketDefinitionsRequest,\n ListTicketDefinitionsResponse,\n ResponseMetaData,\n GetTicketDefinitionRequest,\n GetTicketDefinitionResponse,\n CreateTicketDefinitionRequest,\n TicketDefinitionData,\n CreateTicketDefinitionResponse,\n TicketDefinitionCreated,\n OriginatedFrom,\n UpdateTicketDefinitionRequest,\n UpdateTicketDefinitionResponse,\n TicketDefinitionUpdated,\n DeleteTicketDefinitionRequest,\n DeleteTicketDefinitionRequestDeleteOneOf,\n ById,\n DeleteTicketDefinitionResponse,\n TicketDefinitionDeleted,\n ChangeCurrencyRequest,\n ChangeCurrencyResponse,\n BulkCopyTicketDefinitionsByEventIdRequest,\n BulkCopyTicketDefinitionsByEventIdResponse,\n CopiedTicketDefinition,\n PaidTicketDefinitionExistsRequest,\n PaidTicketDefinitionExistsResponse,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BaseEventMetadata,\n TicketDefinitionCreatedEnvelope,\n TicketDefinitionDeletedEnvelope,\n TicketDefinitionUpdatedEnvelope,\n QueryTicketDefinitionsOptions,\n QueryTicketDefinitionsV2Options,\n DefinitionsQueryResult,\n DefinitionsQueryBuilder,\n ListTicketDefinitionsOptions,\n GetTicketDefinitionOptions,\n CreateTicketDefinitionOptions,\n UpdateTicketDefinitionOptions,\n DeleteTicketDefinitionOptions,\n DeleteTicketDefinitionOptionsDeleteOneOf,\n ChangeCurrencyOptions,\n} from './events-v1-ticket-definition-ticket-definitions.universal.js';\nexport {\n FeeTypeWithLiterals,\n TicketSaleStatusWithLiterals,\n TicketDefinitionStateEnumStateWithLiterals,\n TypeWithLiterals,\n TicketDefinitionFieldsetWithLiterals,\n SortOrderWithLiterals,\n StateWithLiterals,\n GroupByWithLiterals,\n WebhookIdentityT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EO,IAAMC,iCAG8B;AAAA,EACzC;AACF;","names":["changeCurrency","createTicketDefinition","deleteTicketDefinition","getTicketDefinition","listTicketDefinitions","onTicketDefinitionCreated","onTicketDefinitionDeleted","onTicketDefinitionUpdated","queryTicketDefinitions","queryTicketDefinitionsV2","updateTicketDefinition","import_rename_all_nested_keys","import_timestamp","import_transform_paths","import_timestamp","import_rest_modules","payload","import_transform_paths","FeeType","TicketSaleStatus","TicketDefinitionStateEnumState","Type","TicketDefinitionFieldset","SortOrder","State","GroupBy","WebhookIdentityType","queryTicketDefinitions","sdkTransformError","queryTicketDefinitionsV2","listTicketDefinitions","getTicketDefinition","createTicketDefinition","updateTicketDefinition","deleteTicketDefinition","changeCurrency","queryTicketDefinitions","queryTicketDefinitionsV2","typedQueryTicketDefinitionsV2","listTicketDefinitions","getTicketDefinition","createTicketDefinition","updateTicketDefinition","deleteTicketDefinition","changeCurrency","import_rest_modules","queryTicketDefinitionsV2","typedQueryTicketDefinitionsV2","queryTicketDefinitions","listTicketDefinitions","getTicketDefinition","createTicketDefinition","updateTicketDefinition","deleteTicketDefinition","changeCurrency","onTicketDefinitionCreated","onTicketDefinitionDeleted","onTicketDefinitionUpdated"]}