@wix/auto_sdk_events_ticket-definitions 1.0.18 → 1.0.20
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.
- package/build/{events-v1-ticket-definition-ticket-definitions.universal-DK46PoNl.d.mts → cjs/events-v1-ticket-definition-ticket-definitions.universal-Du5H8LGx.d.ts} +1 -3
- package/build/{internal → cjs}/index.d.ts +4 -4
- package/build/{internal → cjs}/index.js +5 -9
- package/build/cjs/index.js.map +1 -0
- package/build/{internal → cjs}/meta.d.ts +1 -1
- package/build/{events-v1-ticket-definition-ticket-definitions.universal-DK46PoNl.d.ts → es/events-v1-ticket-definition-ticket-definitions.universal-Du5H8LGx.d.mts} +1 -3
- package/build/{internal → es}/index.d.mts +4 -4
- package/build/{internal → es}/index.mjs +5 -9
- package/build/es/index.mjs.map +1 -0
- package/build/{internal → es}/meta.d.mts +1 -1
- package/build/es/package.json +3 -0
- package/build/internal/{events-v1-ticket-definition-ticket-definitions.universal-BcfGLAd-.d.ts → cjs/events-v1-ticket-definition-ticket-definitions.universal-D0E9Jwus.d.ts} +1 -3
- package/build/{index.d.ts → internal/cjs/index.d.ts} +4 -4
- package/build/{index.js → internal/cjs/index.js} +5 -9
- package/build/internal/cjs/index.js.map +1 -0
- package/build/{meta.d.ts → internal/cjs/meta.d.ts} +1 -1
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/{events-v1-ticket-definition-ticket-definitions.universal-BcfGLAd-.d.mts → es/events-v1-ticket-definition-ticket-definitions.universal-D0E9Jwus.d.mts} +1 -3
- package/build/{index.d.mts → internal/es/index.d.mts} +4 -4
- package/build/{index.mjs → internal/es/index.mjs} +5 -9
- package/build/internal/es/index.mjs.map +1 -0
- package/build/{meta.d.mts → internal/es/meta.d.mts} +1 -1
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +10 -10
- package/build/index.js.map +0 -1
- package/build/index.mjs.map +0 -1
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs.map +0 -1
- package/build/meta.js.map +0 -1
- package/build/meta.mjs.map +0 -1
- /package/build/{internal → cjs}/meta.js +0 -0
- /package/build/{internal → cjs}/meta.js.map +0 -0
- /package/build/{internal → es}/meta.mjs +0 -0
- /package/build/{internal → es}/meta.mjs.map +0 -0
- /package/build/{meta.js → internal/cjs/meta.js} +0 -0
- /package/build/{meta.mjs → internal/es/meta.mjs} +0 -0
|
@@ -769,8 +769,6 @@ interface QueryTicketDefinitionsOptions {
|
|
|
769
769
|
*/
|
|
770
770
|
facet?: string[];
|
|
771
771
|
}
|
|
772
|
-
interface QueryTicketDefinitionsV2Options {
|
|
773
|
-
}
|
|
774
772
|
interface QueryCursorResult {
|
|
775
773
|
cursors: Cursors;
|
|
776
774
|
hasNext: () => boolean;
|
|
@@ -907,4 +905,4 @@ interface ChangeCurrencyOptions {
|
|
|
907
905
|
currency: string;
|
|
908
906
|
}
|
|
909
907
|
|
|
910
|
-
export { type
|
|
908
|
+
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 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { Q as QueryTicketDefinitionsOptions, a as QueryTicketDefinitionsResponse,
|
|
3
|
-
export {
|
|
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-Du5H8LGx.js';
|
|
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-Du5H8LGx.js';
|
|
4
4
|
|
|
5
5
|
declare function queryTicketDefinitions$1(httpClient: HttpClient): QueryTicketDefinitionsSignature;
|
|
6
6
|
interface QueryTicketDefinitionsSignature {
|
|
@@ -38,7 +38,7 @@ interface QueryTicketDefinitionsV2Signature {
|
|
|
38
38
|
* Retrieves a list of up to 1,000 ticket definitions, given the provided paging and filtering.
|
|
39
39
|
* @deprecated
|
|
40
40
|
*/
|
|
41
|
-
(
|
|
41
|
+
(): DefinitionsQueryBuilder;
|
|
42
42
|
}
|
|
43
43
|
declare function listTicketDefinitions$1(httpClient: HttpClient): ListTicketDefinitionsSignature;
|
|
44
44
|
interface ListTicketDefinitionsSignature {
|
|
@@ -188,4 +188,4 @@ declare const onTicketDefinitionDeleted: BuildEventDefinition<typeof onTicketDef
|
|
|
188
188
|
/** */
|
|
189
189
|
declare const onTicketDefinitionUpdated: BuildEventDefinition<typeof onTicketDefinitionUpdated$1>;
|
|
190
190
|
|
|
191
|
-
export { ChangeCurrencyOptions, CreateTicketDefinitionOptions, CreateTicketDefinitionResponse, DefinitionsQueryBuilder, DeleteTicketDefinitionOptions, GetTicketDefinitionOptions, ListTicketDefinitionsOptions, ListTicketDefinitionsResponse, QueryTicketDefinitionsOptions, QueryTicketDefinitionsResponse,
|
|
191
|
+
export { ChangeCurrencyOptions, CreateTicketDefinitionOptions, CreateTicketDefinitionResponse, DefinitionsQueryBuilder, DeleteTicketDefinitionOptions, GetTicketDefinitionOptions, ListTicketDefinitionsOptions, ListTicketDefinitionsResponse, QueryTicketDefinitionsOptions, QueryTicketDefinitionsResponse, TicketDefinition, TicketDefinitionCreatedEnvelope, TicketDefinitionDeletedEnvelope, TicketDefinitionUpdatedEnvelope, UpdateTicketDefinitionOptions, UpdateTicketDefinitionResponse, changeCurrency, createTicketDefinition, deleteTicketDefinition, getTicketDefinition, listTicketDefinitions, onTicketDefinitionCreated, onTicketDefinitionDeleted, onTicketDefinitionUpdated, queryTicketDefinitions, queryTicketDefinitionsV2, updateTicketDefinition };
|
|
@@ -715,14 +715,11 @@ async function queryTicketDefinitions2(options) {
|
|
|
715
715
|
throw transformedError;
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
|
-
function queryTicketDefinitionsV22(
|
|
719
|
-
const { httpClient, sideEffects } = arguments[
|
|
718
|
+
function queryTicketDefinitionsV22() {
|
|
719
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
720
720
|
return (0, import_query_builder.queryBuilder)({
|
|
721
721
|
func: async (payload) => {
|
|
722
|
-
const reqOpts = queryTicketDefinitionsV2(
|
|
723
|
-
...payload,
|
|
724
|
-
...options ?? {}
|
|
725
|
-
});
|
|
722
|
+
const reqOpts = queryTicketDefinitionsV2(payload);
|
|
726
723
|
sideEffects?.onSiteCall?.();
|
|
727
724
|
try {
|
|
728
725
|
const result = await httpClient.request(reqOpts);
|
|
@@ -734,7 +731,7 @@ function queryTicketDefinitionsV22(options) {
|
|
|
734
731
|
}
|
|
735
732
|
},
|
|
736
733
|
requestTransformer: (query) => {
|
|
737
|
-
const args = [query,
|
|
734
|
+
const args = [query, {}];
|
|
738
735
|
return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
739
736
|
...args?.[1],
|
|
740
737
|
query: args?.[0]
|
|
@@ -965,8 +962,7 @@ function queryTicketDefinitions3(httpClient) {
|
|
|
965
962
|
);
|
|
966
963
|
}
|
|
967
964
|
function queryTicketDefinitionsV23(httpClient) {
|
|
968
|
-
return (
|
|
969
|
-
options,
|
|
965
|
+
return () => queryTicketDefinitionsV22(
|
|
970
966
|
// @ts-ignore
|
|
971
967
|
{ httpClient }
|
|
972
968
|
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/events-v1-ticket-definition-ticket-definitions.public.ts","../../src/events-v1-ticket-definition-ticket-definitions.universal.ts","../../src/events-v1-ticket-definition-ticket-definitions.http.ts","../../src/events-v1-ticket-definition-ticket-definitions.context.ts"],"sourcesContent":["export * from './src/events-v1-ticket-definition-ticket-definitions.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ChangeCurrencyOptions,\n CreateTicketDefinitionOptions,\n CreateTicketDefinitionResponse,\n DefinitionsQueryBuilder,\n DeleteTicketDefinitionOptions,\n GetTicketDefinitionOptions,\n ListTicketDefinitionsOptions,\n ListTicketDefinitionsResponse,\n QueryTicketDefinitionsOptions,\n QueryTicketDefinitionsResponse,\n TicketDefinition,\n TicketDefinitionCreatedEnvelope,\n TicketDefinitionDeletedEnvelope,\n TicketDefinitionUpdatedEnvelope,\n UpdateTicketDefinitionOptions,\n UpdateTicketDefinitionResponse,\n changeCurrency as universalChangeCurrency,\n createTicketDefinition as universalCreateTicketDefinition,\n deleteTicketDefinition as universalDeleteTicketDefinition,\n getTicketDefinition as universalGetTicketDefinition,\n listTicketDefinitions as universalListTicketDefinitions,\n queryTicketDefinitions as universalQueryTicketDefinitions,\n queryTicketDefinitionsV2 as universalQueryTicketDefinitionsV2,\n updateTicketDefinition as universalUpdateTicketDefinition,\n} from './events-v1-ticket-definition-ticket-definitions.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/events' };\n\nexport function queryTicketDefinitions(\n httpClient: HttpClient\n): QueryTicketDefinitionsSignature {\n return (options?: QueryTicketDefinitionsOptions) =>\n universalQueryTicketDefinitions(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryTicketDefinitionsSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinition()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinition()`, and replace it with `ticketDefinitionsV2.queryTicketDefinition()`. Update your code to work with the new `createTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 100 ticket definitions.\n * @deprecated\n */\n (\n options?: QueryTicketDefinitionsOptions | undefined\n ): Promise<QueryTicketDefinitionsResponse>;\n}\n\nexport function queryTicketDefinitionsV2(\n httpClient: HttpClient\n): QueryTicketDefinitionsV2Signature {\n return () =>\n universalQueryTicketDefinitionsV2(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryTicketDefinitionsV2Signature {\n /**\n * **Deprecated.** This function will continue to work until October 29, 2024, but a newer version is available at [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinitions()`, and replace it with `ticketDefinitionsV2.queryTicketDefinitions()`. Update your code to work with the new `queryTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 1,000 ticket definitions, given the provided paging and filtering.\n * @deprecated\n */\n (): DefinitionsQueryBuilder;\n}\n\nexport function listTicketDefinitions(\n httpClient: HttpClient\n): ListTicketDefinitionsSignature {\n return (options?: ListTicketDefinitionsOptions) =>\n universalListTicketDefinitions(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListTicketDefinitionsSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a substitute is available. Use the [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`queryTicketDefinitions()`](/ticket-definitions-v2/query-ticket-definitions).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.queryTicketDefinitions()`, and replace it with `ticketDefinitionsV2.queryTicketDefinitions()`. Update your code to work with the new `queryTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a list of up to 100 ticket definitions, with basic filter support.\n * @param - Details for the tickets to retrieve.\n * @deprecated\n */\n (\n options?: ListTicketDefinitionsOptions | undefined\n ): Promise<ListTicketDefinitionsResponse>;\n}\n\nexport function getTicketDefinition(\n httpClient: HttpClient\n): GetTicketDefinitionSignature {\n return (definitionId: string, options?: GetTicketDefinitionOptions) =>\n universalGetTicketDefinition(\n definitionId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetTicketDefinitionSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`getTicketDefinition()`](/ticket-definitions-v2/get-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`getTicketDefinition()`](/ticket-definitions-v2/get-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.getTicketDefinition()`, and replace it with `ticketDefinitionsV2.getTicketDefinition()`. Update your code to work with the new `getTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Retrieves a ticket definition.\n * @param - Ticket definition ID.\n * @param - Details for the ticket to retrieve.\n * @returns Retrieved ticket definition.\n * @deprecated\n */\n (\n definitionId: string,\n options?: GetTicketDefinitionOptions | undefined\n ): Promise<TicketDefinition>;\n}\n\nexport function createTicketDefinition(\n httpClient: HttpClient\n): CreateTicketDefinitionSignature {\n return (\n eventId: string,\n options: NonNullablePaths<\n CreateTicketDefinitionOptions,\n `definition` | `definition.name`\n >\n ) =>\n universalCreateTicketDefinition(\n eventId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateTicketDefinitionSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`createTicketDefinition()`](/ticket-definitions-v2/create-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`createTicketDefinition()`](/ticket-definitions-v2/create-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.createTicketDefinition()`, and replace it with `ticketDefinitionsV2.createTicketDefinition()`. Update your code to work with the new `createTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Creates a ticket definition (and enables ticket sales).\n * @param - Event ID.\n * @deprecated\n */\n (\n eventId: string,\n options: CreateTicketDefinitionOptions\n ): Promise<CreateTicketDefinitionResponse>;\n}\n\nexport function updateTicketDefinition(\n httpClient: HttpClient\n): UpdateTicketDefinitionSignature {\n return (\n definitionId: string,\n eventId: string,\n options?: NonNullablePaths<\n UpdateTicketDefinitionOptions,\n `definition.pricing`\n >\n ) =>\n universalUpdateTicketDefinition(\n definitionId,\n eventId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateTicketDefinitionSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`updateTicketDefinition()`](/ticket-definitions-v2/update-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`updateTicketDefinition()`](/ticket-definitions-v2/update-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.updateTicketDefinition()`, and replace it with `ticketDefinitionsV2.updateTicketDefinition()`. Update your code to work with the new `updateTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n *\n * Updates a ticket definition.\n *\n * See [Partial Updates](/wix-events-v2/partial-updates) for more information.\n * @param - Ticket definition ID.\n * @param - Event ID.\n * @param - Details of the ticket definition to update.\n * @param - Ticket definition details to update.\n * @deprecated\n */\n (\n definitionId: string,\n eventId: string,\n options?: UpdateTicketDefinitionOptions | undefined\n ): Promise<UpdateTicketDefinitionResponse>;\n}\n\nexport function deleteTicketDefinition(\n httpClient: HttpClient\n): DeleteTicketDefinitionSignature {\n return (eventId: string, options?: DeleteTicketDefinitionOptions) =>\n universalDeleteTicketDefinition(\n eventId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteTicketDefinitionSignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available. Use the [`deleteTicketDefinition()`](/ticket-definitions-v2/delete-ticket-definition) function instead.\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`deleteTicketDefinition()`](/ticket-definitions-v2/delete-ticket-definition).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.deleteTicketDefinition()`, and replace it with `ticketDefinitionsV2.deleteTicketDefinition()`. Update your code to work with the new `deleteTicketDefinition()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Deletes a ticket definition.\n * @param - Event ID.\n * @param - Details of tickets to delete.\n * @deprecated\n */\n (\n eventId: string,\n options?: DeleteTicketDefinitionOptions | undefined\n ): Promise<void>;\n}\n\nexport function changeCurrency(\n httpClient: HttpClient\n): ChangeCurrencySignature {\n return (options?: NonNullablePaths<ChangeCurrencyOptions, `currency`>) =>\n universalChangeCurrency(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ChangeCurrencySignature {\n /**\n * **Deprecated.** This function will continue to work until November 8, 2024, but a newer version is available at [`changeCurrency()`](/ticket-definitions-v2/change-currency).\n * >**Migration Instructions**.\n * > If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to [`changeCurrency()`](/ticket-definitions-v2/change-currency).\n * > To migrate to the new function:\n * > 1. Add the new import statement:\n * > ```js\n * > import { ticketDefinitionsV2 } from 'wix-events.v2';\n * > ```\n * > 2. Look for any code that uses `ticketDefinitions.changeCurrency()`, and replace it with `ticketDefinitionsV2.changeCurrency()`. Update your code to work with the new `changeCurrency()` response properties.\n * > 3. Test your changes to make sure your code behaves as expected.\n *\n * Changes the currency for all tickets per event.\n *\n * @deprecated\n */\n (options?: ChangeCurrencyOptions | undefined): Promise<void>;\n}\n\nexport const onTicketDefinitionCreated = EventDefinition(\n 'wix.events.ticketing.events.TicketDefinitionCreated',\n false,\n (event: TicketDefinitionCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'data.timestamp' }],\n },\n ])\n )\n)<TicketDefinitionCreatedEnvelope>();\nexport const onTicketDefinitionDeleted = EventDefinition(\n 'wix.events.ticketing.events.TicketDefinitionDeleted',\n false,\n (event: TicketDefinitionDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'data.timestamp' }],\n },\n ])\n )\n)<TicketDefinitionDeletedEnvelope>();\nexport const onTicketDefinitionUpdated = EventDefinition(\n 'wix.events.ticketing.events.TicketDefinitionUpdated',\n false,\n (event: TicketDefinitionUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'data.timestamp' }],\n },\n ])\n )\n)<TicketDefinitionUpdatedEnvelope>();\n\nexport {\n BaseEventMetadata,\n BulkCopyTicketDefinitionsByEventIdRequest,\n BulkCopyTicketDefinitionsByEventIdResponse,\n ById,\n ChangeCurrencyOptions,\n ChangeCurrencyRequest,\n ChangeCurrencyResponse,\n CopiedTicketDefinition,\n CreateTicketDefinitionOptions,\n CreateTicketDefinitionRequest,\n CreateTicketDefinitionResponse,\n CursorPaging,\n Cursors,\n Dashboard,\n DefinitionsQueryBuilder,\n DefinitionsQueryResult,\n DeleteTicketDefinitionOptions,\n DeleteTicketDefinitionOptionsDeleteOneOf,\n DeleteTicketDefinitionRequest,\n DeleteTicketDefinitionRequestDeleteOneOf,\n DeleteTicketDefinitionResponse,\n FacetCounts,\n FeeType,\n GetTicketDefinitionOptions,\n GetTicketDefinitionRequest,\n GetTicketDefinitionResponse,\n GroupBy,\n IdentificationData,\n IdentificationDataIdOneOf,\n ListTicketDefinitionsOptions,\n ListTicketDefinitionsRequest,\n ListTicketDefinitionsResponse,\n MessageEnvelope,\n Money,\n OriginatedFrom,\n Paging,\n PagingMetadataV2,\n PaidTicketDefinitionExistsRequest,\n PaidTicketDefinitionExistsResponse,\n PricingOption,\n PricingOptions,\n QueryTicketDefinitionsOptions,\n QueryTicketDefinitionsRequest,\n QueryTicketDefinitionsResponse,\n QueryTicketDefinitionsV2Request,\n QueryTicketDefinitionsV2Response,\n QueryV2,\n QueryV2PagingMethodOneOf,\n ResponseMetaData,\n SortOrder,\n Sorting,\n State,\n TicketDefinition,\n TicketDefinitionCreated,\n TicketDefinitionCreatedEnvelope,\n TicketDefinitionData,\n TicketDefinitionDeleted,\n TicketDefinitionDeletedEnvelope,\n TicketDefinitionFieldset,\n TicketDefinitionStateEnumState,\n TicketDefinitionUpdated,\n TicketDefinitionUpdatedEnvelope,\n TicketPricing,\n TicketPricingPriceOneOf,\n TicketSalePeriod,\n TicketSaleStatus,\n Type,\n UpdateTicketDefinitionOptions,\n UpdateTicketDefinitionRequest,\n UpdateTicketDefinitionResponse,\n WebhookIdentityType,\n WixFeeConfig,\n} from './events-v1-ticket-definition-ticket-definitions.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixEventsV1TicketDefinition from './events-v1-ticket-definition-ticket-definitions.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface TicketDefinition {\n /**\n * Ticket definition ID.\n * @format GUID\n */\n _id?: string;\n /** Ticket price. */\n price?: Money;\n /** Whether the ticket is free (read only). */\n free?: boolean;\n /** Ticket name. */\n name?: string;\n /** Ticket description. */\n description?: string;\n /**\n * Limit of tickets that can be purchased per checkout.\n * Set to 20 for unlimited ticket definition.\n * @max 20\n */\n limitPerCheckout?: number;\n /** Custom sort index. */\n orderIndex?: number;\n /** Policy information plain text block, as printed on the ticket. */\n policy?: string;\n /** Sensitive dashboard data. */\n dashboard?: Dashboard;\n /**\n * Event ID associated with the ticket.\n * @format GUID\n */\n eventId?: string;\n /**\n * Configuration of the fixed-rate Wix ticket service fee that is applied at checkout to each ticket sold.\n * @readonly\n */\n wixFeeConfig?: WixFeeConfig;\n /** Ticket sale period. */\n salePeriod?: TicketSalePeriod;\n /**\n * Ticket sale status.\n * @readonly\n */\n saleStatus?: TicketSaleStatusWithLiterals;\n /** Ticket state. */\n state?: TicketDefinitionStateEnumStateWithLiterals[];\n /** Ticket pricing. */\n pricing?: TicketPricing;\n}\n\nexport interface Money {\n /**\n * @internal\n * @internal\n * @format DECIMAL_VALUE\n * @deprecated\n */\n amount?: string;\n /**\n * Three-letter currency code in\n * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n * @format CURRENCY\n */\n currency?: string;\n /**\n * Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, starts with a single (-), to indicate that the amount is negative.\n * @format DECIMAL_VALUE\n */\n value?: string | null;\n}\n\nexport interface Dashboard {\n /** Whether ticket is hidden and cannot be sold. */\n hidden?: boolean;\n /**\n * Number of tickets sold and reserved.\n * @deprecated\n */\n sold?: number;\n /** Whether the ticket has limited quantity. */\n limited?: boolean;\n /** Ticket limit. `NULL` for unlimited ticket definitions. */\n quantity?: number | null;\n /** Number of unsold tickets. `NULL` for unlimited ticket definitions. */\n unsold?: number | null;\n /** Number of tickets sold. */\n ticketsSold?: number;\n /** Number of tickets reserved. */\n ticketsReserved?: number;\n}\n\nexport interface WixFeeConfig {\n /**\n * Fee calculation method.\n *\n * Supported values: `\"FEE_ADDED\"`, `\"FEE_INCLUDED\"`, `\"FEE_ADDED_AT_CHECKOUT\"`\n *\n * Default: `\"FEE_ADDED_AT_CHECKOUT\"`\n */\n type?: FeeTypeWithLiterals;\n}\n\nexport enum FeeType {\n /** Fee is added to the ticket price at checkout. */\n FEE_ADDED = 'FEE_ADDED',\n /** Seller absorbs the fee. It's deducted from the ticket price. */\n FEE_INCLUDED = 'FEE_INCLUDED',\n /** Fee is added to the ticket price at checkout. */\n FEE_ADDED_AT_CHECKOUT = 'FEE_ADDED_AT_CHECKOUT',\n}\n\n/** @enumType */\nexport type FeeTypeWithLiterals =\n | FeeType\n | 'FEE_ADDED'\n | 'FEE_INCLUDED'\n | 'FEE_ADDED_AT_CHECKOUT';\n\nexport interface TicketSalePeriod {\n /** Ticket sale start timestamp. */\n startDate?: Date | null;\n /** Ticket sale end timestamp. */\n endDate?: Date | null;\n /** Whether to hide this ticket if it'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 skip 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 the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\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 skip 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 * @requiredField options.definition.pricing.price\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?: NonNullablePaths<\n UpdateTicketDefinitionOptions,\n `definition.pricing`\n >\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","import {\n queryTicketDefinitions as publicQueryTicketDefinitions,\n queryTicketDefinitionsV2 as publicQueryTicketDefinitionsV2,\n listTicketDefinitions as publicListTicketDefinitions,\n getTicketDefinition as publicGetTicketDefinition,\n createTicketDefinition as publicCreateTicketDefinition,\n updateTicketDefinition as publicUpdateTicketDefinition,\n deleteTicketDefinition as publicDeleteTicketDefinition,\n changeCurrency as publicChangeCurrency,\n} from './events-v1-ticket-definition-ticket-definitions.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onTicketDefinitionCreated as publicOnTicketDefinitionCreated } from './events-v1-ticket-definition-ticket-definitions.public.js';\nimport { onTicketDefinitionDeleted as publicOnTicketDefinitionDeleted } from './events-v1-ticket-definition-ticket-definitions.public.js';\nimport { onTicketDefinitionUpdated as publicOnTicketDefinitionUpdated } from './events-v1-ticket-definition-ticket-definitions.public.js';\n\nexport const queryTicketDefinitions: MaybeContext<\n BuildRESTFunction<typeof publicQueryTicketDefinitions> &\n typeof publicQueryTicketDefinitions\n> = /*#__PURE__*/ createRESTModule(publicQueryTicketDefinitions);\nexport const queryTicketDefinitionsV2: MaybeContext<\n BuildRESTFunction<typeof publicQueryTicketDefinitionsV2> &\n typeof publicQueryTicketDefinitionsV2\n> = /*#__PURE__*/ createRESTModule(publicQueryTicketDefinitionsV2);\nexport const listTicketDefinitions: MaybeContext<\n BuildRESTFunction<typeof publicListTicketDefinitions> &\n typeof publicListTicketDefinitions\n> = /*#__PURE__*/ createRESTModule(publicListTicketDefinitions);\nexport const getTicketDefinition: MaybeContext<\n BuildRESTFunction<typeof publicGetTicketDefinition> &\n typeof publicGetTicketDefinition\n> = /*#__PURE__*/ createRESTModule(publicGetTicketDefinition);\nexport const createTicketDefinition: MaybeContext<\n BuildRESTFunction<typeof publicCreateTicketDefinition> &\n typeof publicCreateTicketDefinition\n> = /*#__PURE__*/ createRESTModule(publicCreateTicketDefinition);\nexport const updateTicketDefinition: MaybeContext<\n BuildRESTFunction<typeof publicUpdateTicketDefinition> &\n typeof publicUpdateTicketDefinition\n> = /*#__PURE__*/ createRESTModule(publicUpdateTicketDefinition);\nexport const deleteTicketDefinition: MaybeContext<\n BuildRESTFunction<typeof publicDeleteTicketDefinition> &\n typeof publicDeleteTicketDefinition\n> = /*#__PURE__*/ createRESTModule(publicDeleteTicketDefinition);\nexport const changeCurrency: MaybeContext<\n BuildRESTFunction<typeof publicChangeCurrency> & typeof publicChangeCurrency\n> = /*#__PURE__*/ createRESTModule(publicChangeCurrency);\n/** */\nexport const onTicketDefinitionCreated: BuildEventDefinition<\n typeof publicOnTicketDefinitionCreated\n> = createEventModule(publicOnTicketDefinitionCreated);\n/** */\nexport const onTicketDefinitionDeleted: BuildEventDefinition<\n typeof publicOnTicketDefinitionDeleted\n> = createEventModule(publicOnTicketDefinitionDeleted);\n/** */\nexport const onTicketDefinitionUpdated: BuildEventDefinition<\n typeof publicOnTicketDefinitionUpdated\n> = createEventModule(publicOnTicketDefinitionUpdated);\n\nexport {\n FeeType,\n TicketSaleStatus,\n TicketDefinitionStateEnumState,\n Type,\n TicketDefinitionFieldset,\n SortOrder,\n State,\n GroupBy,\n WebhookIdentityType,\n} from './events-v1-ticket-definition-ticket-definitions.universal.js';\nexport {\n TicketDefinition,\n Money,\n Dashboard,\n WixFeeConfig,\n TicketSalePeriod,\n TicketPricing,\n TicketPricingPriceOneOf,\n PricingOptions,\n PricingOption,\n QueryTicketDefinitionsRequest,\n QueryTicketDefinitionsResponse,\n FacetCounts,\n QueryTicketDefinitionsV2Request,\n QueryV2,\n QueryV2PagingMethodOneOf,\n Sorting,\n Paging,\n CursorPaging,\n QueryTicketDefinitionsV2Response,\n PagingMetadataV2,\n Cursors,\n ListTicketDefinitionsRequest,\n ListTicketDefinitionsResponse,\n ResponseMetaData,\n GetTicketDefinitionRequest,\n GetTicketDefinitionResponse,\n CreateTicketDefinitionRequest,\n TicketDefinitionData,\n CreateTicketDefinitionResponse,\n TicketDefinitionCreated,\n OriginatedFrom,\n UpdateTicketDefinitionRequest,\n UpdateTicketDefinitionResponse,\n TicketDefinitionUpdated,\n DeleteTicketDefinitionRequest,\n DeleteTicketDefinitionRequestDeleteOneOf,\n ById,\n DeleteTicketDefinitionResponse,\n TicketDefinitionDeleted,\n ChangeCurrencyRequest,\n ChangeCurrencyResponse,\n BulkCopyTicketDefinitionsByEventIdRequest,\n BulkCopyTicketDefinitionsByEventIdResponse,\n CopiedTicketDefinition,\n PaidTicketDefinitionExistsRequest,\n PaidTicketDefinitionExistsResponse,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BaseEventMetadata,\n TicketDefinitionCreatedEnvelope,\n TicketDefinitionDeletedEnvelope,\n TicketDefinitionUpdatedEnvelope,\n QueryTicketDefinitionsOptions,\n DefinitionsQueryResult,\n DefinitionsQueryBuilder,\n ListTicketDefinitionsOptions,\n GetTicketDefinitionOptions,\n CreateTicketDefinitionOptions,\n UpdateTicketDefinitionOptions,\n DeleteTicketDefinitionOptions,\n DeleteTicketDefinitionOptionsDeleteO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,IAAAC,uBAAiC;AACjC,sCAAkC;AAU3B,IAAMC,0BAGK,2DAAiBA,uBAA4B;AACxD,IAAMC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMC,yBAGK,2DAAiBA,sBAA2B;AACvD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,0BAGK,2DAAiBA,uBAA4B;AACxD,IAAMC,0BAGK,2DAAiBA,uBAA4B;AACxD,IAAMC,0BAGK,2DAAiBA,uBAA4B;AACxD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAEhD,IAAMC,iCAET,mDAAkB,yBAA+B;AAE9C,IAAMC,iCAET,mDAAkB,yBAA+B;AAE9C,IAAMC,iCAET,mDAAkB,yBAA+B;","names":["changeCurrency","createTicketDefinition","deleteTicketDefinition","getTicketDefinition","listTicketDefinitions","onTicketDefinitionCreated","onTicketDefinitionDeleted","onTicketDefinitionUpdated","queryTicketDefinitions","queryTicketDefinitionsV2","updateTicketDefinition","import_rename_all_nested_keys","import_timestamp","import_transform_paths","import_timestamp","import_rest_modules","payload","import_transform_paths","FeeType","TicketSaleStatus","TicketDefinitionStateEnumState","Type","TicketDefinitionFieldset","SortOrder","State","GroupBy","WebhookIdentityType","queryTicketDefinitions","sdkTransformError","queryTicketDefinitionsV2","listTicketDefinitions","getTicketDefinition","createTicketDefinition","updateTicketDefinition","deleteTicketDefinition","changeCurrency","queryTicketDefinitions","queryTicketDefinitionsV2","listTicketDefinitions","getTicketDefinition","createTicketDefinition","updateTicketDefinition","deleteTicketDefinition","changeCurrency","import_rest_modules","queryTicketDefinitions","queryTicketDefinitionsV2","listTicketDefinitions","getTicketDefinition","createTicketDefinition","updateTicketDefinition","deleteTicketDefinition","changeCurrency","onTicketDefinitionCreated","onTicketDefinitionDeleted","onTicketDefinitionUpdated"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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-Du5H8LGx.js';
|
|
2
2
|
|
|
3
3
|
interface TicketDefinition {
|
|
4
4
|
/**
|
|
@@ -769,8 +769,6 @@ interface QueryTicketDefinitionsOptions {
|
|
|
769
769
|
*/
|
|
770
770
|
facet?: string[];
|
|
771
771
|
}
|
|
772
|
-
interface QueryTicketDefinitionsV2Options {
|
|
773
|
-
}
|
|
774
772
|
interface QueryCursorResult {
|
|
775
773
|
cursors: Cursors;
|
|
776
774
|
hasNext: () => boolean;
|
|
@@ -907,4 +905,4 @@ interface ChangeCurrencyOptions {
|
|
|
907
905
|
currency: string;
|
|
908
906
|
}
|
|
909
907
|
|
|
910
|
-
export { type
|
|
908
|
+
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 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { Q as QueryTicketDefinitionsOptions, a as QueryTicketDefinitionsResponse,
|
|
3
|
-
export {
|
|
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-Du5H8LGx.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-Du5H8LGx.mjs';
|
|
4
4
|
|
|
5
5
|
declare function queryTicketDefinitions$1(httpClient: HttpClient): QueryTicketDefinitionsSignature;
|
|
6
6
|
interface QueryTicketDefinitionsSignature {
|
|
@@ -38,7 +38,7 @@ interface QueryTicketDefinitionsV2Signature {
|
|
|
38
38
|
* Retrieves a list of up to 1,000 ticket definitions, given the provided paging and filtering.
|
|
39
39
|
* @deprecated
|
|
40
40
|
*/
|
|
41
|
-
(
|
|
41
|
+
(): DefinitionsQueryBuilder;
|
|
42
42
|
}
|
|
43
43
|
declare function listTicketDefinitions$1(httpClient: HttpClient): ListTicketDefinitionsSignature;
|
|
44
44
|
interface ListTicketDefinitionsSignature {
|
|
@@ -188,4 +188,4 @@ declare const onTicketDefinitionDeleted: BuildEventDefinition<typeof onTicketDef
|
|
|
188
188
|
/** */
|
|
189
189
|
declare const onTicketDefinitionUpdated: BuildEventDefinition<typeof onTicketDefinitionUpdated$1>;
|
|
190
190
|
|
|
191
|
-
export { ChangeCurrencyOptions, CreateTicketDefinitionOptions, CreateTicketDefinitionResponse, DefinitionsQueryBuilder, DeleteTicketDefinitionOptions, GetTicketDefinitionOptions, ListTicketDefinitionsOptions, ListTicketDefinitionsResponse, QueryTicketDefinitionsOptions, QueryTicketDefinitionsResponse,
|
|
191
|
+
export { ChangeCurrencyOptions, CreateTicketDefinitionOptions, CreateTicketDefinitionResponse, DefinitionsQueryBuilder, DeleteTicketDefinitionOptions, GetTicketDefinitionOptions, ListTicketDefinitionsOptions, ListTicketDefinitionsResponse, QueryTicketDefinitionsOptions, QueryTicketDefinitionsResponse, TicketDefinition, TicketDefinitionCreatedEnvelope, TicketDefinitionDeletedEnvelope, TicketDefinitionUpdatedEnvelope, UpdateTicketDefinitionOptions, UpdateTicketDefinitionResponse, changeCurrency, createTicketDefinition, deleteTicketDefinition, getTicketDefinition, listTicketDefinitions, onTicketDefinitionCreated, onTicketDefinitionDeleted, onTicketDefinitionUpdated, queryTicketDefinitions, queryTicketDefinitionsV2, updateTicketDefinition };
|
|
@@ -673,14 +673,11 @@ async function queryTicketDefinitions2(options) {
|
|
|
673
673
|
throw transformedError;
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
|
-
function queryTicketDefinitionsV22(
|
|
677
|
-
const { httpClient, sideEffects } = arguments[
|
|
676
|
+
function queryTicketDefinitionsV22() {
|
|
677
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
678
678
|
return queryBuilder({
|
|
679
679
|
func: async (payload) => {
|
|
680
|
-
const reqOpts = queryTicketDefinitionsV2(
|
|
681
|
-
...payload,
|
|
682
|
-
...options ?? {}
|
|
683
|
-
});
|
|
680
|
+
const reqOpts = queryTicketDefinitionsV2(payload);
|
|
684
681
|
sideEffects?.onSiteCall?.();
|
|
685
682
|
try {
|
|
686
683
|
const result = await httpClient.request(reqOpts);
|
|
@@ -692,7 +689,7 @@ function queryTicketDefinitionsV22(options) {
|
|
|
692
689
|
}
|
|
693
690
|
},
|
|
694
691
|
requestTransformer: (query) => {
|
|
695
|
-
const args = [query,
|
|
692
|
+
const args = [query, {}];
|
|
696
693
|
return renameKeysFromSDKRequestToRESTRequest({
|
|
697
694
|
...args?.[1],
|
|
698
695
|
query: args?.[0]
|
|
@@ -923,8 +920,7 @@ function queryTicketDefinitions3(httpClient) {
|
|
|
923
920
|
);
|
|
924
921
|
}
|
|
925
922
|
function queryTicketDefinitionsV23(httpClient) {
|
|
926
|
-
return (
|
|
927
|
-
options,
|
|
923
|
+
return () => queryTicketDefinitionsV22(
|
|
928
924
|
// @ts-ignore
|
|
929
925
|
{ httpClient }
|
|
930
926
|
);
|