@wix/auto_sdk_events_ticket-definitions-v-2 1.0.36 → 1.0.38
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/cjs/index.d.ts +32 -31
- package/build/cjs/index.js +64 -13
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +266 -66
- package/build/cjs/index.typings.js +64 -13
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +27 -27
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +32 -31
- package/build/es/index.mjs +57 -13
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +266 -66
- package/build/es/index.typings.mjs +57 -13
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +27 -27
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +32 -31
- package/build/internal/cjs/index.js +64 -13
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +266 -66
- package/build/internal/cjs/index.typings.js +64 -13
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +27 -27
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +32 -31
- package/build/internal/es/index.mjs +57 -13
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +266 -66
- package/build/internal/es/index.typings.mjs +57 -13
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +27 -27
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { TicketDefinition, CreateTicketDefinitionOptions, CreateTicketDefinitionApplicationErrors, UpdateTicketDefinition, UpdateTicketDefinitionOptions, UpdateTicketDefinitionApplicationErrors, GetTicketDefinitionOptions, ReorderTicketDefinitionsOptions, ReorderTicketDefinitionsApplicationErrors, QueryTicketDefinitionsOptions, TicketDefinitionsQueryBuilder, QueryV2, QueryAvailableTicketDefinitionsOptions, QueryAvailableTicketDefinitionsResponse, CountTicketDefinitionsOptions, CountTicketDefinitionsResponse, CountTicketDefinitionsApplicationErrors, CountAvailableTicketDefinitionsOptions, CountAvailableTicketDefinitionsResponse, CountAvailableTicketDefinitionsApplicationErrors, ChangeCurrencyOptions, ChangeCurrencyApplicationErrors, TicketDefinitionCreatedEnvelope, TicketDefinitionDeletedEnvelope, TicketDefinitionSaleEndedEnvelope, TicketDefinitionSalePeriodUpdatedEnvelope, TicketDefinitionSaleStartedEnvelope, TicketDefinitionUpdatedEnvelope } from './index.typings.js';
|
|
3
|
-
export { ActionEvent, Address, AddressLocation, AddressStreetOneOf, Agenda, Alignment, AnchorData, App, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, Asset, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, Badge, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BulkCopyTicketDefinitionsByEventIdRequest, BulkCopyTicketDefinitionsByEventIdResponse, BulkDeleteTicketDefinitionsByFilterRequest, BulkDeleteTicketDefinitionsByFilterResponse, BulletedListData, ButtonData, ButtonDataType, CalendarLinks, CaptionData, Category, CategoryCounts, CategoryDetails, CategoryStateState, CellStyle, ChangeCurrencyRequest, ChangeCurrencyResponse, CheckoutFormMessages, CodeBlockData, CollapsibleListData, ColorData, Colors, CommonAddress, CommonAddressLocation, CommonAddressStreetOneOf, CommonMoney, CommonStreetAddress, CommonSubdivision, ConferenceType, CopiedTicketDefinition, CountAvailableTicketDefinitionsRequest, CountTicketDefinitionsRequest, CreateTicketDefinitionRequest, CreateTicketDefinitionResponse, Crop, CursorPaging, Cursors, CustomTag, Dashboard, DateAndTimeSettings, Decoration, DecorationDataOneOf, DecorationType, DeleteContext, DeleteStatus, DeleteTicketDefinitionRequest, DeleteTicketDefinitionResponse, Design, Dimensions, Direction, DividerData, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Event, EventCanceled, EventCreated, EventData, EventDeleted, EventDetails, EventDisplaySettings, EventEnded, EventMetadata, EventStatus, EventTicketingSummary, EventType, EventUpdated, EventsLocation, EventsOccurrence, EventsRecurrenceStatusStatus, EventsRecurrences, ExtendedFields, ExternalEvent, FacetCounts, FeeTypeEnumType, Feed, Field, File, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, Form, FormMessages, Formatted, GIF, GIFData, GIFType, GalleryData, GalleryOptions, GetTicketDefinitionFromTrashBinRequest, GetTicketDefinitionFromTrashBinResponse, GetTicketDefinitionRequest, GetTicketDefinitionResponse, GetTicketDefinitionSummaryRequest, GetTicketDefinitionSummaryResponse, Gradient, GuestListConfig, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, InitialExpandedItems, Input, InputControl, InputControlType, InvalidateCache, InvalidateCacheGetByOneOf, Item, ItemDataOneOf, ItemStyle, Keyword, Label, LabellingSettings, Layout, LayoutCellData, LayoutType, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListEventTicketingSummaryRequest, ListEventTicketingSummaryResponse, ListValue, Location, LocationLocationType, LocationType, MapCoordinates, MapData, MapSettings, MapType, Media, MentionData, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Metadata, Money, Namespace, NamespaceChanged, Negative, NegativeResponseConfirmation, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Occurrence, OdeditorAssigned, OdeditorUnassigned, Oembed, OnlineConferencing, OnlineConferencingConfig, OnlineConferencingSession, Option, OptionDesign, OptionDetails, OptionLayout, OptionSelection, OptionSelectionSelectedOptionOneOf, OrderedListData, Orientation, PDFSettings, Page, Paging, PagingMetadataV2, ParagraphData, Permissions, PicassoAssigned, PicassoUnassigned, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, PollSettings, Position, Positive, PositiveResponseConfirmation, PricingMethod, PricingMethodPriceOneOf, PricingOptions, PricingTypeEnumType, QueryAvailableTicketDefinitionsRequest, QueryTicketDefinitionsRequest, QueryTicketDefinitionsResponse, QueryV2PagingMethodOneOf, RecurrenceStatusStatus, Recurrences, Registration, RegistrationClosedMessages, RegistrationStatus, Rel, ReorderTicketDefinitionsOptionsReferenceDefinitionOneOf, ReorderTicketDefinitionsRequest, ReorderTicketDefinitionsRequestReferenceDefinitionOneOf, ReorderTicketDefinitionsResponse, ReservationCount, ReservationCreated, ReservationStatus, ReservationUpdated, ResponseConfirmation, RestoreInfo, RichContent, RsvpCollection, RsvpCollectionConfig, RsvpFormMessages, RsvpStatusOptions, RsvpSummary, SalePeriod, SalePeriodUpdated, SaleStatusEnumStatus, SalesDetails, ScheduleConfig, ScheduleLegacyTimeCapsuleTaskRequest, Scheduling, SeatingPlanCategoriesSummaryUpdated, SeoSchema, SeoSettings, ServiceProvisioned, ServiceRemoved, Settings, SiteCreated, SiteCreatedContext, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrl, SiteUrlChanged, SortOrder, Sorting, Source, Spoiler, SpoilerData, State, Status, StreetAddress, StudioAssigned, StudioUnassigned, Styles, StylesBorder, Subdivision, SubdivisionSubdivisionType, SubdivisionType, TableCellData, TableData, Tag, Target, TaxConfig, TaxType, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, TicketDefinitionSaleEnded, TicketDefinitionSaleStarted, TicketDefinitionSummary, TicketDefinitionsQueryResult, TicketQuantity, Ticketing, TicketingConfig, TicketingSummary, TicketsUnavailableMessages, Type, URI, UpdateFeeTypesBasedOnSettingsRequest, UpdateFeeTypesBasedOnSettingsResponse, UpdateTicketDefinitionRequest, UpdateTicketDefinitionResponse, UpdateTicketDefinitionSortIndexRequest, UpdateTicketDefinitionSortIndexResponse, ValueType, VerticalAlignment, Video, VideoData, ViewMode, ViewRole, VisitorType, VoteRole, WebhookIdentityType, Width, WidthType } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, Address, AddressLocation, AddressStreetOneOf, Agenda, Alignment, AnchorData, App, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AspectRatio, Asset, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, Badge, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BulkCopyTicketDefinitionsByEventIdRequest, BulkCopyTicketDefinitionsByEventIdResponse, BulkDeleteTicketDefinitionsByFilterRequest, BulkDeleteTicketDefinitionsByFilterResponse, BulletedListData, ButtonData, ButtonDataType, ButtonStyles, CalendarLinks, CaptionData, CardStyles, CardStylesType, Category, CategoryCounts, CategoryDetails, CategoryStateState, CellStyle, ChangeCurrencyRequest, ChangeCurrencyResponse, CheckoutFormMessages, CodeBlockData, CollapsibleListData, ColorData, Colors, CommonAddress, CommonAddressLocation, CommonAddressStreetOneOf, CommonMoney, CommonStreetAddress, CommonSubdivision, ConferenceType, CopiedTicketDefinition, CountAvailableTicketDefinitionsRequest, CountTicketDefinitionsRequest, CreateTicketDefinitionRequest, CreateTicketDefinitionResponse, Crop, CursorPaging, Cursors, CustomTag, Dashboard, DateAndTimeSettings, Decoration, DecorationDataOneOf, DecorationType, DeleteContext, DeleteStatus, DeleteTicketDefinitionRequest, DeleteTicketDefinitionResponse, Design, Dimensions, Direction, DividerData, DividerDataAlignment, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Event, EventCanceled, EventCreated, EventData, EventDeleted, EventDetails, EventDisplaySettings, EventEnded, EventMetadata, EventStatus, EventTicketingSummary, EventType, EventUpdated, EventsLocation, EventsOccurrence, EventsRecurrenceStatusStatus, EventsRecurrences, ExtendedFields, ExternalEvent, FacetCounts, FeeTypeEnumType, Feed, Field, File, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, Form, FormMessages, Formatted, GIF, GIFData, GIFType, GalleryData, GalleryOptions, GalleryOptionsLayout, GetTicketDefinitionFromTrashBinRequest, GetTicketDefinitionFromTrashBinResponse, GetTicketDefinitionRequest, GetTicketDefinitionResponse, GetTicketDefinitionSummaryRequest, GetTicketDefinitionSummaryResponse, Gradient, GuestListConfig, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImageStyles, InitialExpandedItems, Input, InputControl, InputControlType, InvalidateCache, InvalidateCacheGetByOneOf, Item, ItemDataOneOf, ItemStyle, Keyword, Label, LabellingSettings, Layout, LayoutCellData, LayoutType, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListEventTicketingSummaryRequest, ListEventTicketingSummaryResponse, ListValue, Location, LocationLocationType, LocationType, MapCoordinates, MapData, MapSettings, MapType, Media, MentionData, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Metadata, Money, Namespace, NamespaceChanged, Negative, NegativeResponseConfirmation, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Occurrence, OdeditorAssigned, OdeditorUnassigned, Oembed, OnlineConferencing, OnlineConferencingConfig, OnlineConferencingSession, Option, OptionDesign, OptionDetails, OptionLayout, OptionSelection, OptionSelectionSelectedOptionOneOf, OrderedListData, Orientation, PDFSettings, Page, Paging, PagingMetadataV2, ParagraphData, Permissions, PicassoAssigned, PicassoUnassigned, Placement, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, PollSettings, Position, Positive, PositiveResponseConfirmation, PricingMethod, PricingMethodPriceOneOf, PricingOptions, PricingTypeEnumType, QueryAvailableTicketDefinitionsRequest, QueryTicketDefinitionsRequest, QueryTicketDefinitionsResponse, QueryV2PagingMethodOneOf, RecurrenceStatusStatus, Recurrences, Registration, RegistrationClosedMessages, RegistrationStatus, Rel, ReorderTicketDefinitionsOptionsReferenceDefinitionOneOf, ReorderTicketDefinitionsRequest, ReorderTicketDefinitionsRequestReferenceDefinitionOneOf, ReorderTicketDefinitionsResponse, ReservationCount, ReservationCreated, ReservationStatus, ReservationUpdated, Resizing, ResponseConfirmation, RestoreInfo, RibbonStyles, RichContent, RsvpCollection, RsvpCollectionConfig, RsvpFormMessages, RsvpStatusOptions, RsvpSummary, SalePeriod, SalePeriodUpdated, SaleStatusEnumStatus, SalesDetails, ScheduleConfig, ScheduleLegacyTimeCapsuleTaskRequest, Scheduling, SeatingPlanCategoriesSummaryUpdated, SeoSchema, SeoSettings, ServiceProvisioned, ServiceRemoved, Settings, SiteCreated, SiteCreatedContext, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrl, SiteUrlChanged, SortOrder, Sorting, Source, Spoiler, SpoilerData, State, Status, StreetAddress, StudioAssigned, StudioUnassigned, Styles, StylesBorder, StylesPosition, Subdivision, SubdivisionSubdivisionType, SubdivisionType, TableCellData, TableData, Tag, Target, TaxConfig, TaxType, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, TicketDefinitionSaleEnded, TicketDefinitionSaleStarted, TicketDefinitionSummary, TicketDefinitionsQueryResult, TicketQuantity, Ticketing, TicketingConfig, TicketingSummary, TicketsUnavailableMessages, Type, URI, UpdateFeeTypesBasedOnSettingsRequest, UpdateFeeTypesBasedOnSettingsResponse, UpdateTicketDefinitionRequest, UpdateTicketDefinitionResponse, UpdateTicketDefinitionSortIndexRequest, UpdateTicketDefinitionSortIndexResponse, ValueType, VerticalAlignment, Video, VideoData, ViewMode, ViewRole, VisitorType, VoteRole, WebhookIdentityType, Width, WidthType } from './index.typings.js';
|
|
4
4
|
|
|
5
|
+
type TicketDefinitionNonNullablePaths = `hidden` | `limited` | `pricingMethod.fixedPrice.value` | `pricingMethod.fixedPrice.currency` | `pricingMethod.pricingOptions.optionDetails` | `pricingMethod.pricingType` | `pricingMethod.free` | `feeType` | `salePeriod.displayNotOnSale` | `saleStatus` | `eventDetails.location.type` | `eventDetails.location.address.streetAddress.number` | `eventDetails.location.address.streetAddress.name` | `eventDetails.dateAndTimeSettings.recurrenceStatus` | `eventDetails.dateAndTimeSettings.recurringEvents.individualEventDates` | `eventDetails.dateAndTimeSettings.recurringEvents.individualEventDates.${number}.showTimeZone` | `eventDetails.status`;
|
|
5
6
|
declare function createTicketDefinition$1(httpClient: HttpClient): CreateTicketDefinitionSignature;
|
|
6
7
|
interface CreateTicketDefinitionSignature {
|
|
7
8
|
/**
|
|
8
9
|
* Creates a ticket definition.
|
|
9
10
|
*
|
|
10
|
-
*
|
|
11
|
-
* It is allowed to create up to 100 definitions per event.
|
|
11
|
+
* You may create up to 100 definitions per event.
|
|
12
12
|
* @param - Ticket definition info.
|
|
13
|
-
* @param -
|
|
13
|
+
* @param - Currency info.
|
|
14
14
|
* @returns Created ticket definition.
|
|
15
15
|
*/
|
|
16
|
-
(ticketDefinition: TicketDefinition, options?: CreateTicketDefinitionOptions
|
|
17
|
-
__applicationErrorsType?: CreateTicketDefinitionApplicationErrors
|
|
16
|
+
(ticketDefinition: NonNullablePaths<TicketDefinition, `eventId` | `feeType` | `name` | `pricingMethod`>, options?: CreateTicketDefinitionOptions): Promise<NonNullablePaths<TicketDefinition, TicketDefinitionNonNullablePaths> & {
|
|
17
|
+
__applicationErrorsType?: CreateTicketDefinitionApplicationErrors;
|
|
18
18
|
}>;
|
|
19
19
|
}
|
|
20
20
|
declare function updateTicketDefinition$1(httpClient: HttpClient): UpdateTicketDefinitionSignature;
|
|
@@ -22,31 +22,30 @@ interface UpdateTicketDefinitionSignature {
|
|
|
22
22
|
/**
|
|
23
23
|
* Updates a ticket definition.
|
|
24
24
|
*
|
|
25
|
-
*
|
|
26
25
|
* Each time the ticket definition is updated, `revision` increments by 1. The existing `revision` must be included when updating the ticket definition. This ensures you're working with the latest ticket definition and prevents unintended overwrites.
|
|
27
26
|
* @param - Ticket definition ID.
|
|
28
27
|
* @param - Optional fields.
|
|
29
28
|
* @param - Ticket definition to update.
|
|
30
29
|
* @returns The updated ticket definition.
|
|
31
30
|
*/
|
|
32
|
-
(_id: string, ticketDefinition: UpdateTicketDefinition, options?: UpdateTicketDefinitionOptions
|
|
33
|
-
__applicationErrorsType?: UpdateTicketDefinitionApplicationErrors
|
|
31
|
+
(_id: string, ticketDefinition: NonNullablePaths<UpdateTicketDefinition, `revision`>, options?: UpdateTicketDefinitionOptions): Promise<NonNullablePaths<TicketDefinition, TicketDefinitionNonNullablePaths> & {
|
|
32
|
+
__applicationErrorsType?: UpdateTicketDefinitionApplicationErrors;
|
|
34
33
|
}>;
|
|
35
34
|
}
|
|
36
35
|
declare function getTicketDefinition$1(httpClient: HttpClient): GetTicketDefinitionSignature;
|
|
37
36
|
interface GetTicketDefinitionSignature {
|
|
38
37
|
/**
|
|
39
|
-
* Retrieves a ticket definition
|
|
38
|
+
* Retrieves a ticket definition.
|
|
40
39
|
* @param - Ticket definition ID.
|
|
41
40
|
* @param - Optional fields.
|
|
42
41
|
* @returns The requested ticket definition.
|
|
43
42
|
*/
|
|
44
|
-
(ticketDefinitionId: string, options?: GetTicketDefinitionOptions
|
|
43
|
+
(ticketDefinitionId: string, options?: GetTicketDefinitionOptions): Promise<NonNullablePaths<TicketDefinition, TicketDefinitionNonNullablePaths>>;
|
|
45
44
|
}
|
|
46
45
|
declare function deleteTicketDefinition$1(httpClient: HttpClient): DeleteTicketDefinitionSignature;
|
|
47
46
|
interface DeleteTicketDefinitionSignature {
|
|
48
47
|
/**
|
|
49
|
-
*
|
|
48
|
+
* Deletes a ticket definition.
|
|
50
49
|
* @param - ID of the ticket definition to delete.
|
|
51
50
|
*/
|
|
52
51
|
(ticketDefinitionId: string): Promise<void>;
|
|
@@ -54,13 +53,13 @@ interface DeleteTicketDefinitionSignature {
|
|
|
54
53
|
declare function reorderTicketDefinitions$1(httpClient: HttpClient): ReorderTicketDefinitionsSignature;
|
|
55
54
|
interface ReorderTicketDefinitionsSignature {
|
|
56
55
|
/**
|
|
57
|
-
*
|
|
58
|
-
* > **Note:**
|
|
56
|
+
* Adjusts the order in which ticket definitions display in an event dashboard, as well as the order of available tickets displayed in the ticket picker.
|
|
57
|
+
* > **Note:** You may use both `beforeTicketDefinitionId` and `afterTicketDefinitionId` but only the last one provided takes effect.
|
|
59
58
|
* @param - Event ID.
|
|
60
59
|
* @param - Optional fields.
|
|
61
60
|
*/
|
|
62
|
-
(eventId: string, options?: ReorderTicketDefinitionsOptions
|
|
63
|
-
__applicationErrorsType?: ReorderTicketDefinitionsApplicationErrors
|
|
61
|
+
(eventId: string, options?: NonNullablePaths<ReorderTicketDefinitionsOptions, `ticketDefinitionId`>): Promise<void & {
|
|
62
|
+
__applicationErrorsType?: ReorderTicketDefinitionsApplicationErrors;
|
|
64
63
|
}>;
|
|
65
64
|
}
|
|
66
65
|
declare function queryTicketDefinitions$1(httpClient: HttpClient): QueryTicketDefinitionsSignature;
|
|
@@ -73,14 +72,14 @@ interface QueryTicketDefinitionsSignature {
|
|
|
73
72
|
* - `paging.offset` is `0`
|
|
74
73
|
* @param - Optional fields.
|
|
75
74
|
*/
|
|
76
|
-
(options?: QueryTicketDefinitionsOptions
|
|
75
|
+
(options?: QueryTicketDefinitionsOptions): TicketDefinitionsQueryBuilder;
|
|
77
76
|
}
|
|
78
77
|
declare function queryAvailableTicketDefinitions$1(httpClient: HttpClient): QueryAvailableTicketDefinitionsSignature;
|
|
79
78
|
interface QueryAvailableTicketDefinitionsSignature {
|
|
80
79
|
/**
|
|
81
|
-
* Retrieves a list of available ticket definitions
|
|
80
|
+
* Retrieves a list of available ticket definitions with the specified paging, filtering, and sorting.
|
|
82
81
|
*
|
|
83
|
-
* This
|
|
82
|
+
* This method retrieves ticket definitions that aren't in the `hidden` state. The available ticket definitions can be retrieved by site visitors.
|
|
84
83
|
*
|
|
85
84
|
* > **Note:** You need the `WIX_EVENTS.READ_TICKET_DEFINITIONS` permission to get the `salesDetails` field values.
|
|
86
85
|
*
|
|
@@ -90,11 +89,13 @@ interface QueryAvailableTicketDefinitionsSignature {
|
|
|
90
89
|
* - `paging.offset` is `0`
|
|
91
90
|
*
|
|
92
91
|
* For field support for filters and sorting, see [Ticket Definitions: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-solutions/events/ticket-definition-v3/filter-and-sort).
|
|
93
|
-
* To learn about working with _Query_
|
|
94
|
-
* @param - Query options. See [API Query Language](https://dev.wix.com/
|
|
92
|
+
* To learn about working with _Query_ methods, see [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language).
|
|
93
|
+
* @param - Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language) for more details.
|
|
95
94
|
* @param - Optional fields.
|
|
96
95
|
*/
|
|
97
|
-
(query: QueryV2, options?: QueryAvailableTicketDefinitionsOptions
|
|
96
|
+
(query: QueryV2, options?: QueryAvailableTicketDefinitionsOptions): Promise<NonNullablePaths<QueryAvailableTicketDefinitionsResponse, {
|
|
97
|
+
[P in TicketDefinitionNonNullablePaths]: `ticketDefinitions.${number}.${P}`;
|
|
98
|
+
}[TicketDefinitionNonNullablePaths]>>;
|
|
98
99
|
}
|
|
99
100
|
declare function countTicketDefinitions$1(httpClient: HttpClient): CountTicketDefinitionsSignature;
|
|
100
101
|
interface CountTicketDefinitionsSignature {
|
|
@@ -102,8 +103,8 @@ interface CountTicketDefinitionsSignature {
|
|
|
102
103
|
* Counts ticket definitions by the `saleStatus` field, including those with the `hidden` status.
|
|
103
104
|
* @param - Optional fields.
|
|
104
105
|
*/
|
|
105
|
-
(options?: CountTicketDefinitionsOptions
|
|
106
|
-
__applicationErrorsType?: CountTicketDefinitionsApplicationErrors
|
|
106
|
+
(options?: CountTicketDefinitionsOptions): Promise<CountTicketDefinitionsResponse & {
|
|
107
|
+
__applicationErrorsType?: CountTicketDefinitionsApplicationErrors;
|
|
107
108
|
}>;
|
|
108
109
|
}
|
|
109
110
|
declare function countAvailableTicketDefinitions$1(httpClient: HttpClient): CountAvailableTicketDefinitionsSignature;
|
|
@@ -112,8 +113,8 @@ interface CountAvailableTicketDefinitionsSignature {
|
|
|
112
113
|
* Counts ticket definitions by the `saleStatus`, excluding those with the `hidden` status.
|
|
113
114
|
* @param - Optional fields.
|
|
114
115
|
*/
|
|
115
|
-
(options?: CountAvailableTicketDefinitionsOptions
|
|
116
|
-
__applicationErrorsType?: CountAvailableTicketDefinitionsApplicationErrors
|
|
116
|
+
(options?: CountAvailableTicketDefinitionsOptions): Promise<CountAvailableTicketDefinitionsResponse & {
|
|
117
|
+
__applicationErrorsType?: CountAvailableTicketDefinitionsApplicationErrors;
|
|
117
118
|
}>;
|
|
118
119
|
}
|
|
119
120
|
declare function bulkDeleteTicketDefinitionsByFilter$1(httpClient: HttpClient): BulkDeleteTicketDefinitionsByFilterSignature;
|
|
@@ -133,8 +134,8 @@ interface ChangeCurrencySignature {
|
|
|
133
134
|
* @param - Event ID.
|
|
134
135
|
* @param - Optional fields.
|
|
135
136
|
*/
|
|
136
|
-
(eventId: string, options: ChangeCurrencyOptions): Promise<void & {
|
|
137
|
-
__applicationErrorsType?: ChangeCurrencyApplicationErrors
|
|
137
|
+
(eventId: string, options: NonNullablePaths<ChangeCurrencyOptions, `currency`>): Promise<void & {
|
|
138
|
+
__applicationErrorsType?: ChangeCurrencyApplicationErrors;
|
|
138
139
|
}>;
|
|
139
140
|
}
|
|
140
141
|
declare const onTicketDefinitionCreated$1: EventDefinition<TicketDefinitionCreatedEnvelope, "wix.events.v3.ticket_definition_created">;
|
|
@@ -164,7 +165,7 @@ declare const onTicketDefinitionCreated: BuildEventDefinition<typeof onTicketDef
|
|
|
164
165
|
*/
|
|
165
166
|
declare const onTicketDefinitionDeleted: BuildEventDefinition<typeof onTicketDefinitionDeleted$1>;
|
|
166
167
|
/**
|
|
167
|
-
* Triggered when a ticket sale ends. Sales details
|
|
168
|
+
* Triggered when a ticket sale ends. Sales details aren't included in the response.
|
|
168
169
|
*/
|
|
169
170
|
declare const onTicketDefinitionSaleEnded: BuildEventDefinition<typeof onTicketDefinitionSaleEnded$1>;
|
|
170
171
|
/**
|
|
@@ -172,7 +173,7 @@ declare const onTicketDefinitionSaleEnded: BuildEventDefinition<typeof onTicketD
|
|
|
172
173
|
*/
|
|
173
174
|
declare const onTicketDefinitionSalePeriodUpdated: BuildEventDefinition<typeof onTicketDefinitionSalePeriodUpdated$1>;
|
|
174
175
|
/**
|
|
175
|
-
* Triggered when a ticket sale starts. Sales details
|
|
176
|
+
* Triggered when a ticket sale starts. Sales details aren't included in the response.
|
|
176
177
|
*/
|
|
177
178
|
declare const onTicketDefinitionSaleStarted: BuildEventDefinition<typeof onTicketDefinitionSaleStarted$1>;
|
|
178
179
|
/**
|
package/build/cjs/index.js
CHANGED
|
@@ -22,14 +22,17 @@ var index_exports = {};
|
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
Alignment: () => Alignment,
|
|
24
24
|
AppType: () => AppType,
|
|
25
|
+
AspectRatio: () => AspectRatio,
|
|
25
26
|
BackgroundType: () => BackgroundType,
|
|
26
27
|
ButtonDataType: () => ButtonDataType,
|
|
28
|
+
CardStylesType: () => CardStylesType,
|
|
27
29
|
CategoryStateState: () => CategoryStateState,
|
|
28
30
|
ConferenceType: () => ConferenceType,
|
|
29
31
|
Crop: () => Crop,
|
|
30
32
|
DecorationType: () => DecorationType,
|
|
31
33
|
DeleteStatus: () => DeleteStatus,
|
|
32
34
|
Direction: () => Direction,
|
|
35
|
+
DividerDataAlignment: () => DividerDataAlignment,
|
|
33
36
|
EventStatus: () => EventStatus,
|
|
34
37
|
EventType: () => EventType,
|
|
35
38
|
EventsRecurrenceStatusStatus: () => EventsRecurrenceStatusStatus,
|
|
@@ -39,6 +42,7 @@ __export(index_exports, {
|
|
|
39
42
|
GIFType: () => GIFType,
|
|
40
43
|
InitialExpandedItems: () => InitialExpandedItems,
|
|
41
44
|
InputControlType: () => InputControlType,
|
|
45
|
+
Layout: () => Layout,
|
|
42
46
|
LayoutType: () => LayoutType,
|
|
43
47
|
LineStyle: () => LineStyle,
|
|
44
48
|
LocationLocationType: () => LocationLocationType,
|
|
@@ -48,6 +52,7 @@ __export(index_exports, {
|
|
|
48
52
|
NodeType: () => NodeType,
|
|
49
53
|
NullValue: () => NullValue,
|
|
50
54
|
Orientation: () => Orientation,
|
|
55
|
+
Placement: () => Placement,
|
|
51
56
|
PluginContainerDataAlignment: () => PluginContainerDataAlignment,
|
|
52
57
|
PollLayoutDirection: () => PollLayoutDirection,
|
|
53
58
|
PollLayoutType: () => PollLayoutType,
|
|
@@ -56,6 +61,7 @@ __export(index_exports, {
|
|
|
56
61
|
RecurrenceStatusStatus: () => RecurrenceStatusStatus,
|
|
57
62
|
RegistrationStatus: () => RegistrationStatus,
|
|
58
63
|
ReservationStatus: () => ReservationStatus,
|
|
64
|
+
Resizing: () => Resizing,
|
|
59
65
|
RsvpStatusOptions: () => RsvpStatusOptions,
|
|
60
66
|
SaleStatusEnumStatus: () => SaleStatusEnumStatus,
|
|
61
67
|
SiteCreatedContext: () => SiteCreatedContext,
|
|
@@ -63,6 +69,7 @@ __export(index_exports, {
|
|
|
63
69
|
Source: () => Source,
|
|
64
70
|
State: () => State,
|
|
65
71
|
Status: () => Status,
|
|
72
|
+
StylesPosition: () => StylesPosition,
|
|
66
73
|
SubdivisionSubdivisionType: () => SubdivisionSubdivisionType,
|
|
67
74
|
SubdivisionType: () => SubdivisionType,
|
|
68
75
|
Target: () => Target,
|
|
@@ -879,12 +886,12 @@ var Width = /* @__PURE__ */ ((Width2) => {
|
|
|
879
886
|
Width2["SMALL"] = "SMALL";
|
|
880
887
|
return Width2;
|
|
881
888
|
})(Width || {});
|
|
882
|
-
var
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
return
|
|
887
|
-
})(
|
|
889
|
+
var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
|
|
890
|
+
DividerDataAlignment2["CENTER"] = "CENTER";
|
|
891
|
+
DividerDataAlignment2["LEFT"] = "LEFT";
|
|
892
|
+
DividerDataAlignment2["RIGHT"] = "RIGHT";
|
|
893
|
+
return DividerDataAlignment2;
|
|
894
|
+
})(DividerDataAlignment || {});
|
|
888
895
|
var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
|
|
889
896
|
ViewMode2["NONE"] = "NONE";
|
|
890
897
|
ViewMode2["FULL"] = "FULL";
|
|
@@ -932,13 +939,13 @@ var Source = /* @__PURE__ */ ((Source2) => {
|
|
|
932
939
|
Source2["ADSENSE"] = "ADSENSE";
|
|
933
940
|
return Source2;
|
|
934
941
|
})(Source || {});
|
|
935
|
-
var
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
return
|
|
941
|
-
})(
|
|
942
|
+
var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
|
|
943
|
+
StylesPosition2["START"] = "START";
|
|
944
|
+
StylesPosition2["END"] = "END";
|
|
945
|
+
StylesPosition2["TOP"] = "TOP";
|
|
946
|
+
StylesPosition2["HIDDEN"] = "HIDDEN";
|
|
947
|
+
return StylesPosition2;
|
|
948
|
+
})(StylesPosition || {});
|
|
942
949
|
var MapType = /* @__PURE__ */ ((MapType2) => {
|
|
943
950
|
MapType2["ROADMAP"] = "ROADMAP";
|
|
944
951
|
MapType2["SATELITE"] = "SATELITE";
|
|
@@ -994,6 +1001,43 @@ var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
|
994
1001
|
FontType2["EM"] = "EM";
|
|
995
1002
|
return FontType2;
|
|
996
1003
|
})(FontType || {});
|
|
1004
|
+
var Position = /* @__PURE__ */ ((Position2) => {
|
|
1005
|
+
Position2["START"] = "START";
|
|
1006
|
+
Position2["END"] = "END";
|
|
1007
|
+
Position2["TOP"] = "TOP";
|
|
1008
|
+
return Position2;
|
|
1009
|
+
})(Position || {});
|
|
1010
|
+
var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
|
|
1011
|
+
AspectRatio2["SQUARE"] = "SQUARE";
|
|
1012
|
+
AspectRatio2["RECTANGLE"] = "RECTANGLE";
|
|
1013
|
+
return AspectRatio2;
|
|
1014
|
+
})(AspectRatio || {});
|
|
1015
|
+
var Resizing = /* @__PURE__ */ ((Resizing2) => {
|
|
1016
|
+
Resizing2["FILL"] = "FILL";
|
|
1017
|
+
Resizing2["FIT"] = "FIT";
|
|
1018
|
+
return Resizing2;
|
|
1019
|
+
})(Resizing || {});
|
|
1020
|
+
var Placement = /* @__PURE__ */ ((Placement2) => {
|
|
1021
|
+
Placement2["IMAGE"] = "IMAGE";
|
|
1022
|
+
Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
|
|
1023
|
+
return Placement2;
|
|
1024
|
+
})(Placement || {});
|
|
1025
|
+
var CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
|
|
1026
|
+
CardStylesType2["CONTAINED"] = "CONTAINED";
|
|
1027
|
+
CardStylesType2["FRAMELESS"] = "FRAMELESS";
|
|
1028
|
+
return CardStylesType2;
|
|
1029
|
+
})(CardStylesType || {});
|
|
1030
|
+
var Alignment = /* @__PURE__ */ ((Alignment2) => {
|
|
1031
|
+
Alignment2["START"] = "START";
|
|
1032
|
+
Alignment2["CENTER"] = "CENTER";
|
|
1033
|
+
Alignment2["END"] = "END";
|
|
1034
|
+
return Alignment2;
|
|
1035
|
+
})(Alignment || {});
|
|
1036
|
+
var Layout = /* @__PURE__ */ ((Layout2) => {
|
|
1037
|
+
Layout2["STACKED"] = "STACKED";
|
|
1038
|
+
Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
|
|
1039
|
+
return Layout2;
|
|
1040
|
+
})(Layout || {});
|
|
997
1041
|
var AppType = /* @__PURE__ */ ((AppType2) => {
|
|
998
1042
|
AppType2["PRODUCT"] = "PRODUCT";
|
|
999
1043
|
AppType2["EVENT"] = "EVENT";
|
|
@@ -1824,14 +1868,17 @@ var onTicketDefinitionUpdated2 = (0, import_event_definition_modules.createEvent
|
|
|
1824
1868
|
0 && (module.exports = {
|
|
1825
1869
|
Alignment,
|
|
1826
1870
|
AppType,
|
|
1871
|
+
AspectRatio,
|
|
1827
1872
|
BackgroundType,
|
|
1828
1873
|
ButtonDataType,
|
|
1874
|
+
CardStylesType,
|
|
1829
1875
|
CategoryStateState,
|
|
1830
1876
|
ConferenceType,
|
|
1831
1877
|
Crop,
|
|
1832
1878
|
DecorationType,
|
|
1833
1879
|
DeleteStatus,
|
|
1834
1880
|
Direction,
|
|
1881
|
+
DividerDataAlignment,
|
|
1835
1882
|
EventStatus,
|
|
1836
1883
|
EventType,
|
|
1837
1884
|
EventsRecurrenceStatusStatus,
|
|
@@ -1841,6 +1888,7 @@ var onTicketDefinitionUpdated2 = (0, import_event_definition_modules.createEvent
|
|
|
1841
1888
|
GIFType,
|
|
1842
1889
|
InitialExpandedItems,
|
|
1843
1890
|
InputControlType,
|
|
1891
|
+
Layout,
|
|
1844
1892
|
LayoutType,
|
|
1845
1893
|
LineStyle,
|
|
1846
1894
|
LocationLocationType,
|
|
@@ -1850,6 +1898,7 @@ var onTicketDefinitionUpdated2 = (0, import_event_definition_modules.createEvent
|
|
|
1850
1898
|
NodeType,
|
|
1851
1899
|
NullValue,
|
|
1852
1900
|
Orientation,
|
|
1901
|
+
Placement,
|
|
1853
1902
|
PluginContainerDataAlignment,
|
|
1854
1903
|
PollLayoutDirection,
|
|
1855
1904
|
PollLayoutType,
|
|
@@ -1858,6 +1907,7 @@ var onTicketDefinitionUpdated2 = (0, import_event_definition_modules.createEvent
|
|
|
1858
1907
|
RecurrenceStatusStatus,
|
|
1859
1908
|
RegistrationStatus,
|
|
1860
1909
|
ReservationStatus,
|
|
1910
|
+
Resizing,
|
|
1861
1911
|
RsvpStatusOptions,
|
|
1862
1912
|
SaleStatusEnumStatus,
|
|
1863
1913
|
SiteCreatedContext,
|
|
@@ -1865,6 +1915,7 @@ var onTicketDefinitionUpdated2 = (0, import_event_definition_modules.createEvent
|
|
|
1865
1915
|
Source,
|
|
1866
1916
|
State,
|
|
1867
1917
|
Status,
|
|
1918
|
+
StylesPosition,
|
|
1868
1919
|
SubdivisionSubdivisionType,
|
|
1869
1920
|
SubdivisionType,
|
|
1870
1921
|
Target,
|