@wix/auto_sdk_events_ticket-definitions 1.0.22 → 1.0.23

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.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../index.typings.ts","../../../src/events-v1-ticket-definition-ticket-definitions.universal.ts","../../../src/events-v1-ticket-definition-ticket-definitions.http.ts"],"sourcesContent":["export * from './src/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's not 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\ntype TicketDefinitionNonNullablePaths =\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.fixedPrice.amount`\n | `pricing.fixedPrice.currency`\n | `pricing.pricingOptions.options`\n | `pricing.pricingType`;\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 | {\n [P in TicketDefinitionNonNullablePaths]: `definitions.${number}.${P}`;\n }[TicketDefinitionNonNullablePaths]\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(): DefinitionsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] 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(payload);\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, {}] as [\n QueryTicketDefinitionsV2Request['query'],\n {}\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\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 * **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 | {\n [P in TicketDefinitionNonNullablePaths]: `definitions.${number}.${P}`;\n }[TicketDefinitionNonNullablePaths]\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<TicketDefinition, TicketDefinitionNonNullablePaths>\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 >\n): Promise<\n NonNullablePaths<\n CreateTicketDefinitionResponse,\n {\n [P in TicketDefinitionNonNullablePaths]: `definition.${P}`;\n }[TicketDefinitionNonNullablePaths]\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 {\n [P in TicketDefinitionNonNullablePaths]: `definition.${P}`;\n }[TicketDefinitionNonNullablePaths]\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`>\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: '/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/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/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/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/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 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 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 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 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 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 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 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 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"],"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,8BAAAC;AAAA,EAAA,gCAAAC;AAAA,EAAA,8BAAAC;AAAA;AAAA;;;ACAA,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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;AAAA,UACT,UAAU;AAAA,QACZ;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS;AAAA,IACZ;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["changeCurrency","createTicketDefinition","deleteTicketDefinition","getTicketDefinition","listTicketDefinitions","queryTicketDefinitions","queryTicketDefinitionsV2","updateTicketDefinition","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"]}
@@ -1,4 +1,5 @@
1
- import { v as QueryTicketDefinitionsRequest$1, a as QueryTicketDefinitionsResponse$1, x as QueryTicketDefinitionsV2Request$1, H as QueryTicketDefinitionsV2Response$1, K as ListTicketDefinitionsRequest$1, b as ListTicketDefinitionsResponse$1, N as GetTicketDefinitionRequest$1, O as GetTicketDefinitionResponse$1, V as CreateTicketDefinitionRequest$1, c as CreateTicketDefinitionResponse$1, _ as UpdateTicketDefinitionRequest$1, d as UpdateTicketDefinitionResponse$1, a0 as DeleteTicketDefinitionRequest$1, a3 as DeleteTicketDefinitionResponse$1, a5 as ChangeCurrencyRequest$1, a6 as ChangeCurrencyResponse$1 } from './events-v1-ticket-definition-ticket-definitions.universal-CpUuZoky.js';
1
+ import { QueryTicketDefinitionsRequest as QueryTicketDefinitionsRequest$1, QueryTicketDefinitionsResponse as QueryTicketDefinitionsResponse$1, QueryTicketDefinitionsV2Request as QueryTicketDefinitionsV2Request$1, QueryTicketDefinitionsV2Response as QueryTicketDefinitionsV2Response$1, ListTicketDefinitionsRequest as ListTicketDefinitionsRequest$1, ListTicketDefinitionsResponse as ListTicketDefinitionsResponse$1, GetTicketDefinitionRequest as GetTicketDefinitionRequest$1, GetTicketDefinitionResponse as GetTicketDefinitionResponse$1, CreateTicketDefinitionRequest as CreateTicketDefinitionRequest$1, CreateTicketDefinitionResponse as CreateTicketDefinitionResponse$1, UpdateTicketDefinitionRequest as UpdateTicketDefinitionRequest$1, UpdateTicketDefinitionResponse as UpdateTicketDefinitionResponse$1, DeleteTicketDefinitionRequest as DeleteTicketDefinitionRequest$1, DeleteTicketDefinitionResponse as DeleteTicketDefinitionResponse$1, ChangeCurrencyRequest as ChangeCurrencyRequest$1, ChangeCurrencyResponse as ChangeCurrencyResponse$1 } from './index.typings.js';
2
+ import '@wix/sdk-types';
2
3
 
3
4
  interface TicketDefinition {
4
5
  /**
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { Q as QueryTicketDefinitionsOptions, a as QueryTicketDefinitionsResponse, D as DefinitionsQueryBuilder, L as ListTicketDefinitionsOptions, b as ListTicketDefinitionsResponse, G as GetTicketDefinitionOptions, T as TicketDefinition, C as CreateTicketDefinitionOptions, c as CreateTicketDefinitionResponse, U as UpdateTicketDefinitionOptions, d as UpdateTicketDefinitionResponse, e as DeleteTicketDefinitionOptions, f as ChangeCurrencyOptions, g as TicketDefinitionCreatedEnvelope, h as TicketDefinitionDeletedEnvelope, i as TicketDefinitionUpdatedEnvelope } from './events-v1-ticket-definition-ticket-definitions.universal-CpUuZoky.mjs';
3
- export { af as BaseEventMetadata, a7 as BulkCopyTicketDefinitionsByEventIdRequest, a8 as BulkCopyTicketDefinitionsByEventIdResponse, a2 as ById, a5 as ChangeCurrencyRequest, a6 as ChangeCurrencyResponse, a9 as CopiedTicketDefinition, V as CreateTicketDefinitionRequest, E as CursorPaging, J as Cursors, p as Dashboard, ag as DefinitionsQueryResult, ah as DeleteTicketDefinitionOptionsDeleteOneOf, a0 as DeleteTicketDefinitionRequest, a1 as DeleteTicketDefinitionRequestDeleteOneOf, a3 as DeleteTicketDefinitionResponse, w as FacetCounts, F as FeeType, N as GetTicketDefinitionRequest, O as GetTicketDefinitionResponse, o as GroupBy, ad as IdentificationData, ae as IdentificationDataIdOneOf, K as ListTicketDefinitionsRequest, ac as MessageEnvelope, M as Money, Z as OriginatedFrom, B as Paging, I as PagingMetadataV2, aa as PaidTicketDefinitionExistsRequest, ab as PaidTicketDefinitionExistsResponse, u as PricingOption, P as PricingOptions, v as QueryTicketDefinitionsRequest, x as QueryTicketDefinitionsV2Request, H as QueryTicketDefinitionsV2Response, y as QueryV2, z as QueryV2PagingMethodOneOf, R as ResponseMetaData, S as SortOrder, A as Sorting, n as State, Y as TicketDefinitionCreated, X as TicketDefinitionData, a4 as TicketDefinitionDeleted, m as TicketDefinitionFieldset, k as TicketDefinitionStateEnumState, $ as TicketDefinitionUpdated, s as TicketPricing, t as TicketPricingPriceOneOf, r as TicketSalePeriod, j as TicketSaleStatus, l as Type, _ as UpdateTicketDefinitionRequest, W as WebhookIdentityType, q as WixFeeConfig } from './events-v1-ticket-definition-ticket-definitions.universal-CpUuZoky.mjs';
2
+ import { QueryTicketDefinitionsOptions, QueryTicketDefinitionsResponse, DefinitionsQueryBuilder, ListTicketDefinitionsOptions, ListTicketDefinitionsResponse, GetTicketDefinitionOptions, TicketDefinition, CreateTicketDefinitionOptions, CreateTicketDefinitionResponse, UpdateTicketDefinitionOptions, UpdateTicketDefinitionResponse, DeleteTicketDefinitionOptions, ChangeCurrencyOptions, TicketDefinitionCreatedEnvelope, TicketDefinitionDeletedEnvelope, TicketDefinitionUpdatedEnvelope } from './index.typings.mjs';
3
+ export { BaseEventMetadata, BulkCopyTicketDefinitionsByEventIdRequest, BulkCopyTicketDefinitionsByEventIdResponse, ById, ChangeCurrencyRequest, ChangeCurrencyResponse, CopiedTicketDefinition, CreateTicketDefinitionRequest, CursorPaging, Cursors, Dashboard, DefinitionsQueryResult, DeleteTicketDefinitionOptionsDeleteOneOf, DeleteTicketDefinitionRequest, DeleteTicketDefinitionRequestDeleteOneOf, DeleteTicketDefinitionResponse, FacetCounts, FeeType, GetTicketDefinitionRequest, GetTicketDefinitionResponse, GroupBy, IdentificationData, IdentificationDataIdOneOf, ListTicketDefinitionsRequest, MessageEnvelope, Money, OriginatedFrom, Paging, PagingMetadataV2, PaidTicketDefinitionExistsRequest, PaidTicketDefinitionExistsResponse, PricingOption, PricingOptions, QueryTicketDefinitionsRequest, QueryTicketDefinitionsV2Request, QueryTicketDefinitionsV2Response, QueryV2, QueryV2PagingMethodOneOf, ResponseMetaData, SortOrder, Sorting, State, TicketDefinitionCreated, TicketDefinitionData, TicketDefinitionDeleted, TicketDefinitionFieldset, TicketDefinitionStateEnumState, TicketDefinitionUpdated, TicketPricing, TicketPricingPriceOneOf, TicketSalePeriod, TicketSaleStatus, Type, UpdateTicketDefinitionRequest, WebhookIdentityType, WixFeeConfig } from './index.typings.mjs';
4
4
 
5
5
  declare function queryTicketDefinitions$1(httpClient: HttpClient): QueryTicketDefinitionsSignature;
6
6
  interface QueryTicketDefinitionsSignature {
@@ -1,3 +1,5 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
1
3
  interface TicketDefinition {
2
4
  /**
3
5
  * Ticket definition ID.
@@ -408,6 +410,8 @@ declare enum GroupBy {
408
410
  /** Groups by event created date with ascending sorting. */
409
411
  EVENT_CREATED_ASC = "EVENT_CREATED_ASC"
410
412
  }
413
+ /** @enumType */
414
+ type GroupByWithLiterals = GroupBy | 'NONE' | 'EVENT_CREATED_DESC' | 'EVENT_CREATED_ASC';
411
415
  interface ListTicketDefinitionsResponse {
412
416
  /** Meta data. */
413
417
  metaData?: ResponseMetaData;
@@ -739,14 +743,83 @@ interface TicketDefinitionCreatedEnvelope {
739
743
  data: TicketDefinitionCreated;
740
744
  metadata: BaseEventMetadata;
741
745
  }
746
+ /** @permissionScope Manage Events - all permissions
747
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
748
+ * @permissionScope Manage Events
749
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
750
+ * @permissionScope Manage Orders
751
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
752
+ * @permissionScope Manage Ticket Definitions
753
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
754
+ * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS
755
+ * @webhook
756
+ * @eventType wix.events.ticketing.events.TicketDefinitionCreated
757
+ * @serviceIdentifier wix.events.ticketing.TicketDefinitionManagement
758
+ * @slug ticket_definition_created
759
+ */
760
+ declare function onTicketDefinitionCreated(handler: (event: TicketDefinitionCreatedEnvelope) => void | Promise<void>): void;
742
761
  interface TicketDefinitionDeletedEnvelope {
743
762
  data: TicketDefinitionDeleted;
744
763
  metadata: BaseEventMetadata;
745
764
  }
765
+ /** @permissionScope Manage Events - all permissions
766
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
767
+ * @permissionScope Manage Events
768
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
769
+ * @permissionScope Manage Orders
770
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
771
+ * @permissionScope Manage Ticket Definitions
772
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
773
+ * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS
774
+ * @webhook
775
+ * @eventType wix.events.ticketing.events.TicketDefinitionDeleted
776
+ * @serviceIdentifier wix.events.ticketing.TicketDefinitionManagement
777
+ * @slug ticket_definition_deleted
778
+ */
779
+ declare function onTicketDefinitionDeleted(handler: (event: TicketDefinitionDeletedEnvelope) => void | Promise<void>): void;
746
780
  interface TicketDefinitionUpdatedEnvelope {
747
781
  data: TicketDefinitionUpdated;
748
782
  metadata: BaseEventMetadata;
749
783
  }
784
+ /** @permissionScope Manage Events - all permissions
785
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
786
+ * @permissionScope Manage Events
787
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
788
+ * @permissionScope Manage Orders
789
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
790
+ * @permissionScope Manage Ticket Definitions
791
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
792
+ * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS
793
+ * @webhook
794
+ * @eventType wix.events.ticketing.events.TicketDefinitionUpdated
795
+ * @serviceIdentifier wix.events.ticketing.TicketDefinitionManagement
796
+ * @slug ticket_definition_updated
797
+ */
798
+ declare function onTicketDefinitionUpdated(handler: (event: TicketDefinitionUpdatedEnvelope) => void | Promise<void>): void;
799
+ type TicketDefinitionNonNullablePaths = `_id` | `price.amount` | `price.currency` | `free` | `name` | `description` | `limitPerCheckout` | `orderIndex` | `policy` | `dashboard.hidden` | `dashboard.sold` | `dashboard.limited` | `dashboard.ticketsSold` | `dashboard.ticketsReserved` | `eventId` | `wixFeeConfig.type` | `salePeriod.hideNotOnSale` | `saleStatus` | `state` | `pricing.fixedPrice.amount` | `pricing.fixedPrice.currency` | `pricing.pricingOptions.options` | `pricing.pricingType`;
800
+ /**
801
+ * **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.
802
+ * >**Migration Instructions**.
803
+ * > 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).
804
+ * > To migrate to the new function:
805
+ * > 1. Add the new import statement:
806
+ * > ```js
807
+ * > import { ticketDefinitionsV2 } from 'wix-events.v2';
808
+ * > ```
809
+ * > 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.
810
+ * > 3. Test your changes to make sure your code behaves as expected.
811
+ *
812
+ * Retrieves a list of up to 100 ticket definitions.
813
+ * @public
814
+ * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS
815
+ * @applicableIdentity APP
816
+ * @fqn wix.events.ticketing.TicketDefinitionManagement.QueryTicketDefinitions
817
+ * @deprecated
818
+ * @targetRemovalDate 2024-12-01
819
+ */
820
+ declare function queryTicketDefinitions(options?: QueryTicketDefinitionsOptions): Promise<NonNullablePaths<QueryTicketDefinitionsResponse, `total` | `offset` | `limit` | {
821
+ [P in TicketDefinitionNonNullablePaths]: `definitions.${number}.${P}`;
822
+ }[TicketDefinitionNonNullablePaths]>>;
750
823
  interface QueryTicketDefinitionsOptions {
751
824
  /** Offset. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
752
825
  offset?: number;
@@ -776,6 +849,28 @@ interface QueryTicketDefinitionsOptions {
776
849
  */
777
850
  facet?: string[];
778
851
  }
852
+ /**
853
+ * **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).
854
+ * >**Migration Instructions**.
855
+ * > 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).
856
+ * > To migrate to the new function:
857
+ * > 1. Add the new import statement:
858
+ * > ```js
859
+ * > import { ticketDefinitionsV2 } from 'wix-events.v2';
860
+ * > ```
861
+ * > 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.
862
+ * > 3. Test your changes to make sure your code behaves as expected.
863
+ *
864
+ * Retrieves a list of up to 1,000 ticket definitions, given the provided paging and filtering.
865
+ * @public
866
+ * @documentationMaturity preview
867
+ * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS
868
+ * @applicableIdentity APP
869
+ * @fqn wix.events.ticketing.TicketDefinitionManagement.QueryTicketDefinitionsV2
870
+ * @deprecated
871
+ * @targetRemovalDate 2024-12-01
872
+ */
873
+ declare function queryTicketDefinitionsV2(): DefinitionsQueryBuilder;
779
874
  interface QueryCursorResult {
780
875
  cursors: Cursors;
781
876
  hasNext: () => boolean;
@@ -801,6 +896,30 @@ interface DefinitionsQueryBuilder {
801
896
  /** @documentationMaturity preview */
802
897
  find: () => Promise<DefinitionsQueryResult>;
803
898
  }
899
+ /**
900
+ * **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.
901
+ * >**Migration Instructions**.
902
+ * > 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).
903
+ * > To migrate to the new function:
904
+ * > 1. Add the new import statement:
905
+ * > ```js
906
+ * > import { ticketDefinitionsV2 } from 'wix-events.v2';
907
+ * > ```
908
+ * > 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.
909
+ * > 3. Test your changes to make sure your code behaves as expected.
910
+ *
911
+ * Retrieves a list of up to 100 ticket definitions, with basic filter support.
912
+ * @public
913
+ * @param options - Details for the tickets to retrieve.
914
+ * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS
915
+ * @applicableIdentity APP
916
+ * @fqn wix.events.ticketing.TicketDefinitionManagement.ListTicketDefinitions
917
+ * @deprecated
918
+ * @targetRemovalDate 2024-12-01
919
+ */
920
+ declare function listTicketDefinitions(options?: ListTicketDefinitionsOptions): Promise<NonNullablePaths<ListTicketDefinitionsResponse, `metaData.count` | `metaData.offset` | `metaData.total` | {
921
+ [P in TicketDefinitionNonNullablePaths]: `definitions.${number}.${P}`;
922
+ }[TicketDefinitionNonNullablePaths]>>;
804
923
  interface ListTicketDefinitionsOptions {
805
924
  /**
806
925
  * Event ID.
@@ -864,6 +983,31 @@ interface ListTicketDefinitionsOptions {
864
983
  */
865
984
  facet?: string[];
866
985
  }
986
+ /**
987
+ * **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.
988
+ * >**Migration Instructions**.
989
+ * > 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).
990
+ * > To migrate to the new function:
991
+ * > 1. Add the new import statement:
992
+ * > ```js
993
+ * > import { ticketDefinitionsV2 } from 'wix-events.v2';
994
+ * > ```
995
+ * > 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.
996
+ * > 3. Test your changes to make sure your code behaves as expected.
997
+ *
998
+ * Retrieves a ticket definition.
999
+ * @param definitionId - Ticket definition ID.
1000
+ * @public
1001
+ * @requiredField definitionId
1002
+ * @param options - Details for the ticket to retrieve.
1003
+ * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS
1004
+ * @applicableIdentity APP
1005
+ * @returns Retrieved ticket definition.
1006
+ * @fqn wix.events.ticketing.TicketDefinitionManagement.GetTicketDefinition
1007
+ * @deprecated
1008
+ * @targetRemovalDate 2024-12-01
1009
+ */
1010
+ declare function getTicketDefinition(definitionId: string, options?: GetTicketDefinitionOptions): Promise<NonNullablePaths<TicketDefinition, TicketDefinitionNonNullablePaths>>;
867
1011
  interface GetTicketDefinitionOptions {
868
1012
  /**
869
1013
  * Predefined sets of fields to return.
@@ -875,16 +1019,100 @@ interface GetTicketDefinitionOptions {
875
1019
  */
876
1020
  fieldset?: TicketDefinitionFieldsetWithLiterals[];
877
1021
  }
1022
+ /**
1023
+ * **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.
1024
+ * >**Migration Instructions**.
1025
+ * > 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).
1026
+ * > To migrate to the new function:
1027
+ * > 1. Add the new import statement:
1028
+ * > ```js
1029
+ * > import { ticketDefinitionsV2 } from 'wix-events.v2';
1030
+ * > ```
1031
+ * > 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.
1032
+ * > 3. Test your changes to make sure your code behaves as expected.
1033
+ *
1034
+ * Creates a ticket definition (and enables ticket sales).
1035
+ * @param eventId - Event ID.
1036
+ * @public
1037
+ * @requiredField eventId
1038
+ * @requiredField options
1039
+ * @requiredField options.definition
1040
+ * @requiredField options.definition.name
1041
+ * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
1042
+ * @applicableIdentity APP
1043
+ * @fqn wix.events.ticketing.TicketDefinitionManagement.CreateTicketDefinition
1044
+ * @deprecated
1045
+ * @targetRemovalDate 2024-12-01
1046
+ */
1047
+ declare function createTicketDefinition(eventId: string, options: NonNullablePaths<CreateTicketDefinitionOptions, `definition` | `definition.name`>): Promise<NonNullablePaths<CreateTicketDefinitionResponse, {
1048
+ [P in TicketDefinitionNonNullablePaths]: `definition.${P}`;
1049
+ }[TicketDefinitionNonNullablePaths]>>;
878
1050
  interface CreateTicketDefinitionOptions {
879
1051
  /** Ticket definition data. */
880
1052
  definition: TicketDefinitionData;
881
1053
  }
1054
+ /**
1055
+ * **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.
1056
+ * >**Migration Instructions**.
1057
+ * > 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).
1058
+ * > To migrate to the new function:
1059
+ * > 1. Add the new import statement:
1060
+ * > ```js
1061
+ * > import { ticketDefinitionsV2 } from 'wix-events.v2';
1062
+ * > ```
1063
+ * > 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.
1064
+ * > 3. Test your changes to make sure your code behaves as expected.
1065
+ *
1066
+ *
1067
+ * Updates a ticket definition.
1068
+ *
1069
+ * See [Partial Updates](/wix-events-v2/partial-updates) for more information.
1070
+ * @param definitionId - Ticket definition ID.
1071
+ * @param eventId - Event ID.
1072
+ * @public
1073
+ * @requiredField definitionId
1074
+ * @requiredField eventId
1075
+ * @param identifiers - Details of the ticket definition to update.
1076
+ * @param options - Ticket definition details to update.
1077
+ * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
1078
+ * @applicableIdentity APP
1079
+ * @fqn wix.events.ticketing.TicketDefinitionManagement.UpdateTicketDefinition
1080
+ * @deprecated
1081
+ * @targetRemovalDate 2024-12-01
1082
+ */
1083
+ declare function updateTicketDefinition(definitionId: string, eventId: string, options?: UpdateTicketDefinitionOptions): Promise<NonNullablePaths<UpdateTicketDefinitionResponse, {
1084
+ [P in TicketDefinitionNonNullablePaths]: `definition.${P}`;
1085
+ }[TicketDefinitionNonNullablePaths]>>;
882
1086
  interface UpdateTicketDefinitionOptions {
883
1087
  /** Ticket definition data. */
884
1088
  definition?: TicketDefinitionData;
885
1089
  /** Set of field paths, specifying which parts of ticket definition to update. */
886
1090
  fields?: string[];
887
1091
  }
1092
+ /**
1093
+ * **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.
1094
+ * >**Migration Instructions**.
1095
+ * > 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).
1096
+ * > To migrate to the new function:
1097
+ * > 1. Add the new import statement:
1098
+ * > ```js
1099
+ * > import { ticketDefinitionsV2 } from 'wix-events.v2';
1100
+ * > ```
1101
+ * > 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.
1102
+ * > 3. Test your changes to make sure your code behaves as expected.
1103
+ *
1104
+ * Deletes a ticket definition.
1105
+ * @param eventId - Event ID.
1106
+ * @public
1107
+ * @requiredField eventId
1108
+ * @param options - Details of tickets to delete.
1109
+ * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
1110
+ * @applicableIdentity APP
1111
+ * @fqn wix.events.ticketing.TicketDefinitionManagement.DeleteTicketDefinition
1112
+ * @deprecated
1113
+ * @targetRemovalDate 2024-12-01
1114
+ */
1115
+ declare function deleteTicketDefinition(eventId: string, options?: DeleteTicketDefinitionOptions): Promise<void>;
888
1116
  interface DeleteTicketDefinitionOptions extends DeleteTicketDefinitionOptionsDeleteOneOf {
889
1117
  /** Ticket definitions to delete. */
890
1118
  byId?: ById;
@@ -898,6 +1126,29 @@ interface DeleteTicketDefinitionOptionsDeleteOneOf {
898
1126
  /** Whether to delete all event tickets. */
899
1127
  all?: boolean;
900
1128
  }
1129
+ /**
1130
+ * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available at [`changeCurrency()`](/ticket-definitions-v2/change-currency).
1131
+ * >**Migration Instructions**.
1132
+ * > 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).
1133
+ * > To migrate to the new function:
1134
+ * > 1. Add the new import statement:
1135
+ * > ```js
1136
+ * > import { ticketDefinitionsV2 } from 'wix-events.v2';
1137
+ * > ```
1138
+ * > 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.
1139
+ * > 3. Test your changes to make sure your code behaves as expected.
1140
+ *
1141
+ * Changes the currency for all tickets per event.
1142
+ *
1143
+ * @public
1144
+ * @requiredField options.currency
1145
+ * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
1146
+ * @applicableIdentity APP
1147
+ * @fqn wix.events.ticketing.TicketDefinitionManagement.ChangeCurrency
1148
+ * @deprecated
1149
+ * @targetRemovalDate 2024-12-01
1150
+ */
1151
+ declare function changeCurrency(options?: NonNullablePaths<ChangeCurrencyOptions, `currency`>): Promise<void>;
901
1152
  interface ChangeCurrencyOptions {
902
1153
  /**
903
1154
  * Event ID.
@@ -912,4 +1163,4 @@ interface ChangeCurrencyOptions {
912
1163
  currency: string;
913
1164
  }
914
1165
 
915
- export { type TicketDefinitionUpdated as $, type Sorting as A, type Paging as B, type CreateTicketDefinitionOptions as C, type DefinitionsQueryBuilder as D, type CursorPaging as E, FeeType as F, type GetTicketDefinitionOptions as G, type QueryTicketDefinitionsV2Response as H, type PagingMetadataV2 as I, type Cursors as J, type ListTicketDefinitionsRequest as K, type ListTicketDefinitionsOptions as L, type Money as M, type GetTicketDefinitionRequest as N, type GetTicketDefinitionResponse as O, type PricingOptions as P, type QueryTicketDefinitionsOptions as Q, type ResponseMetaData as R, SortOrder as S, type TicketDefinition as T, type UpdateTicketDefinitionOptions as U, type CreateTicketDefinitionRequest as V, WebhookIdentityType as W, type TicketDefinitionData as X, type TicketDefinitionCreated as Y, type OriginatedFrom as Z, type UpdateTicketDefinitionRequest as _, type QueryTicketDefinitionsResponse as a, type DeleteTicketDefinitionRequest as a0, type DeleteTicketDefinitionRequestDeleteOneOf as a1, type ById as a2, type DeleteTicketDefinitionResponse as a3, type TicketDefinitionDeleted as a4, type ChangeCurrencyRequest as a5, type ChangeCurrencyResponse as a6, type BulkCopyTicketDefinitionsByEventIdRequest as a7, type BulkCopyTicketDefinitionsByEventIdResponse as a8, type CopiedTicketDefinition as a9, type PaidTicketDefinitionExistsRequest as aa, type PaidTicketDefinitionExistsResponse as ab, type MessageEnvelope as ac, type IdentificationData as ad, type IdentificationDataIdOneOf as ae, type BaseEventMetadata as af, type DefinitionsQueryResult as ag, type DeleteTicketDefinitionOptionsDeleteOneOf as ah, type ListTicketDefinitionsResponse as b, type CreateTicketDefinitionResponse as c, type UpdateTicketDefinitionResponse as d, type DeleteTicketDefinitionOptions as e, type ChangeCurrencyOptions as f, type TicketDefinitionCreatedEnvelope as g, type TicketDefinitionDeletedEnvelope as h, type TicketDefinitionUpdatedEnvelope as i, TicketSaleStatus as j, TicketDefinitionStateEnumState as k, Type as l, TicketDefinitionFieldset as m, State as n, GroupBy as o, type Dashboard as p, type WixFeeConfig as q, type TicketSalePeriod as r, type TicketPricing as s, type TicketPricingPriceOneOf as t, type PricingOption as u, type QueryTicketDefinitionsRequest as v, type FacetCounts as w, type QueryTicketDefinitionsV2Request as x, type QueryV2 as y, type QueryV2PagingMethodOneOf as z };
1166
+ export { type BaseEventMetadata, type BulkCopyTicketDefinitionsByEventIdRequest, type BulkCopyTicketDefinitionsByEventIdResponse, type ById, type ChangeCurrencyOptions, type ChangeCurrencyRequest, type ChangeCurrencyResponse, type CopiedTicketDefinition, type CreateTicketDefinitionOptions, type CreateTicketDefinitionRequest, type CreateTicketDefinitionResponse, type CursorPaging, type Cursors, type Dashboard, type DefinitionsQueryBuilder, type DefinitionsQueryResult, type DeleteTicketDefinitionOptions, type DeleteTicketDefinitionOptionsDeleteOneOf, type DeleteTicketDefinitionRequest, type DeleteTicketDefinitionRequestDeleteOneOf, type DeleteTicketDefinitionResponse, type FacetCounts, FeeType, type FeeTypeWithLiterals, type GetTicketDefinitionOptions, type GetTicketDefinitionRequest, type GetTicketDefinitionResponse, GroupBy, type GroupByWithLiterals, type IdentificationData, type IdentificationDataIdOneOf, type ListTicketDefinitionsOptions, type ListTicketDefinitionsRequest, type ListTicketDefinitionsResponse, type MessageEnvelope, type Money, type OriginatedFrom, type Paging, type PagingMetadataV2, type PaidTicketDefinitionExistsRequest, type PaidTicketDefinitionExistsResponse, type PricingOption, type PricingOptions, type QueryTicketDefinitionsOptions, type QueryTicketDefinitionsRequest, type QueryTicketDefinitionsResponse, type QueryTicketDefinitionsV2Request, type QueryTicketDefinitionsV2Response, type QueryV2, type QueryV2PagingMethodOneOf, type ResponseMetaData, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, type TicketDefinition, type TicketDefinitionCreated, type TicketDefinitionCreatedEnvelope, type TicketDefinitionData, type TicketDefinitionDeleted, type TicketDefinitionDeletedEnvelope, TicketDefinitionFieldset, type TicketDefinitionFieldsetWithLiterals, TicketDefinitionStateEnumState, type TicketDefinitionStateEnumStateWithLiterals, type TicketDefinitionUpdated, type TicketDefinitionUpdatedEnvelope, type TicketPricing, type TicketPricingPriceOneOf, type TicketSalePeriod, TicketSaleStatus, type TicketSaleStatusWithLiterals, Type, type TypeWithLiterals, type UpdateTicketDefinitionOptions, type UpdateTicketDefinitionRequest, type UpdateTicketDefinitionResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixFeeConfig, changeCurrency, createTicketDefinition, deleteTicketDefinition, getTicketDefinition, listTicketDefinitions, onTicketDefinitionCreated, onTicketDefinitionDeleted, onTicketDefinitionUpdated, queryTicketDefinitions, queryTicketDefinitionsV2, updateTicketDefinition };