@wix/auto_sdk_table-reservations_experiences 1.0.0
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 +85 -0
- package/build/cjs/index.js +1781 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +3183 -0
- package/build/cjs/index.typings.js +1442 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2934 -0
- package/build/cjs/meta.js +1240 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +85 -0
- package/build/es/index.mjs +1699 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +3183 -0
- package/build/es/index.typings.mjs +1363 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2934 -0
- package/build/es/meta.mjs +1158 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +85 -0
- package/build/internal/cjs/index.js +1781 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +3183 -0
- package/build/internal/cjs/index.typings.js +1442 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2934 -0
- package/build/internal/cjs/meta.js +1240 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.mts +85 -0
- package/build/internal/es/index.mjs +1699 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +3183 -0
- package/build/internal/es/index.typings.mjs +1363 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2934 -0
- package/build/internal/es/meta.mjs +1158 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { Experience, UpdateExperience, ExperiencesQueryBuilder, BulkUpdateExperienceTagsOptions, BulkUpdateExperienceTagsResponse, BulkUpdateExperienceTagsApplicationErrors, BulkUpdateExperienceTagsByFilterOptions, BulkUpdateExperienceTagsByFilterResponse, BulkUpdateExperienceTagsByFilterApplicationErrors, ExperienceCreatedEnvelope, ExperienceTagsModifiedEnvelope, ExperienceUpdatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, Address, AddressHint, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, ApplicationError, Approval, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BackgroundTypeWithLiterals, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BulkActionMetadata, BulkUpdateExperienceTagsByFilterRequest, BulkUpdateExperienceTagsRequest, BulkUpdateExperienceTagsResult, BulletedListData, BusinessSchedule, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, Categories, CellStyle, ChangeContext, ChangeContextPayloadOneOf, CodeBlockData, CollapsibleListData, ColorData, Colors, Configuration, ConsentPolicy, CreateExperienceRequest, CreateExperienceResponse, Crop, CropWithLiterals, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomFieldDefinition, DayOfWeek, DayOfWeekWithLiterals, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, Design, Dimensions, Direction, DirectionWithLiterals, DisplayInfo, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmailMarketingCheckbox, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Entry, EntryRecurrenceOptionsOneOf, EventData, EventMetadata, ExperiencesQueryResult, ExtendedFields, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GeoCoordinates, GetExperienceRequest, GetExperienceResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImageStyles, InitialExpandedItems, InitialExpandedItemsWithLiterals, Item, ItemDataOneOf, ItemMetadata, ItemStyle, Layout, LayoutCellData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListValue, Locale, MapData, MapSettings, MapType, MapTypeWithLiterals, MaxGuests, Media, MentionData, MessageEnvelope, Metadata, Mode, ModeWithLiterals, Multilingual, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NoticePeriod, NullValue, NullValueWithLiterals, Oembed, OnOptions, OnOptionsOptionsOneOf, OneTimeOptions, OnlineReservations, OnlineReservationsBusinessSchedule, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, OrientationWithLiterals, PDFSettings, ParagraphData, PartySize, PaymentPolicy, PaymentPolicyOptionsOneOf, PaymentPolicyType, PaymentPolicyTypeWithLiterals, PerGuestOptions, Permissions, Placement, PlacementType, PlacementTypeWithLiterals, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, Position, PositionWithLiterals, PricingData, PrivacyPolicy, PrivacyPolicyValueOneOf, Properties, PropertiesChange, QueryExperiencesRequest, QueryExperiencesResponse, Recurrence, RecurrenceWithLiterals, Rel, ReservationForm, Resizing, ResizingWithLiterals, ResolutionMethod, ResolutionMethodWithLiterals, RestoreInfo, RibbonStyles, RichContent, Settings, SiteCloned, SiteCreated, SitePropertiesEvent, SitePropertiesNotification, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, SpecialHourPeriod, SpecificTablesOptions, Spoiler, SpoilerData, StartDaysAndTimes, StartDaysAndTimesDayOfWeek, StartDaysAndTimesDayOfWeekWithLiterals, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, SupportedLanguage, Table, TableAssignmentType, TableAssignmentTypeWithLiterals, TableAvailabilityType, TableAvailabilityTypeWithLiterals, TableCellData, TableCombination, TableData, TableManagement, TableManagementMode, TableManagementModeWithLiterals, TableManagementOptionsOneOf, TagList, Tags, TagsModified, Target, TargetWithLiterals, TermsAndConditions, TermsAndConditionsValueOneOf, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, TimePeriod, Translation, Type, TypeWithLiterals, Unit, UnitWithLiterals, UpdateExperienceRequest, UpdateExperienceResponse, VerticalAlignment, VerticalAlignmentWithLiterals, Video, VideoData, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeeklyOptions, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals } from './index.typings.js';
|
|
4
|
+
|
|
5
|
+
declare function createExperience$1(httpClient: HttpClient): CreateExperienceSignature;
|
|
6
|
+
interface CreateExperienceSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Creates an Experience.
|
|
9
|
+
* @param - Experience to be created.
|
|
10
|
+
* @returns The created Experience.
|
|
11
|
+
*/
|
|
12
|
+
(experience: NonNullablePaths<Experience, `configuration` | `configuration.displayInfo` | `configuration.displayInfo.name` | `configuration.onlineReservations` | `configuration.onlineReservations.approval` | `configuration.onlineReservations.approval.mode` | `configuration.onlineReservations.maxGuests.number` | `configuration.onlineReservations.maximumReservationNotice.number` | `configuration.onlineReservations.maximumReservationNotice.unit` | `configuration.onlineReservations.minimumReservationNotice.number` | `configuration.onlineReservations.minimumReservationNotice.unit` | `configuration.onlineReservations.partySize` | `configuration.onlineReservations.partySize.max` | `configuration.onlineReservations.partySize.min` | `configuration.paymentPolicy` | `configuration.paymentPolicy.paymentPolicyType` | `reservationLocationId`, 5>): Promise<NonNullablePaths<Experience, `configuration.paymentPolicy.paymentPolicyType` | `configuration.onlineReservations.minimumReservationNotice.unit` | `configuration.onlineReservations.approval.mode` | `configuration.onlineReservations.businessSchedule.entries` | `configuration.onlineReservations.businessSchedule.entries.${number}.recurrence` | `configuration.reservationForm.customFieldDefinitions` | `configuration.tableManagement.onOptions.specificTablesOptions.tables` | `configuration.tableManagement.onOptions.specificTablesOptions.tableCombinations` | `configuration.tableManagement.onOptions.tableAvailabilityType` | `configuration.tableManagement.onOptions.tableAssignmentType` | `configuration.tableManagement.mode` | `tags.privateTags.tagIds`, 7>>;
|
|
13
|
+
}
|
|
14
|
+
declare function getExperience$1(httpClient: HttpClient): GetExperienceSignature;
|
|
15
|
+
interface GetExperienceSignature {
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves an Experience.
|
|
18
|
+
* @param - ID of the Experience to retrieve.
|
|
19
|
+
* @returns The requested Experience.
|
|
20
|
+
*/
|
|
21
|
+
(experienceId: string): Promise<NonNullablePaths<Experience, `configuration.paymentPolicy.paymentPolicyType` | `configuration.onlineReservations.minimumReservationNotice.unit` | `configuration.onlineReservations.approval.mode` | `configuration.onlineReservations.businessSchedule.entries` | `configuration.onlineReservations.businessSchedule.entries.${number}.recurrence` | `configuration.reservationForm.customFieldDefinitions` | `configuration.tableManagement.onOptions.specificTablesOptions.tables` | `configuration.tableManagement.onOptions.specificTablesOptions.tableCombinations` | `configuration.tableManagement.onOptions.tableAvailabilityType` | `configuration.tableManagement.onOptions.tableAssignmentType` | `configuration.tableManagement.mode` | `tags.privateTags.tagIds`, 7>>;
|
|
22
|
+
}
|
|
23
|
+
declare function updateExperience$1(httpClient: HttpClient): UpdateExperienceSignature;
|
|
24
|
+
interface UpdateExperienceSignature {
|
|
25
|
+
/**
|
|
26
|
+
* Updates an Experience.
|
|
27
|
+
*
|
|
28
|
+
* Each time the Experience is updated,
|
|
29
|
+
* `revision` increments by 1.
|
|
30
|
+
* The current `revision` must be passed when updating the Experience.
|
|
31
|
+
* This ensures you're working with the latest Experience
|
|
32
|
+
* and prevents unintended overwrites.
|
|
33
|
+
* @param - Experience ID.
|
|
34
|
+
* @returns Updated Experience.
|
|
35
|
+
*/
|
|
36
|
+
(_id: string, experience: NonNullablePaths<UpdateExperience, `revision`, 2>): Promise<NonNullablePaths<Experience, `configuration.paymentPolicy.paymentPolicyType` | `configuration.onlineReservations.minimumReservationNotice.unit` | `configuration.onlineReservations.approval.mode` | `configuration.onlineReservations.businessSchedule.entries` | `configuration.onlineReservations.businessSchedule.entries.${number}.recurrence` | `configuration.reservationForm.customFieldDefinitions` | `configuration.tableManagement.onOptions.specificTablesOptions.tables` | `configuration.tableManagement.onOptions.specificTablesOptions.tableCombinations` | `configuration.tableManagement.onOptions.tableAvailabilityType` | `configuration.tableManagement.onOptions.tableAssignmentType` | `configuration.tableManagement.mode` | `tags.privateTags.tagIds`, 7>>;
|
|
37
|
+
}
|
|
38
|
+
declare function queryExperiences$1(httpClient: HttpClient): QueryExperiencesSignature;
|
|
39
|
+
interface QueryExperiencesSignature {
|
|
40
|
+
/**
|
|
41
|
+
* Queries Experiences.
|
|
42
|
+
*/
|
|
43
|
+
(): ExperiencesQueryBuilder;
|
|
44
|
+
}
|
|
45
|
+
declare function bulkUpdateExperienceTags$1(httpClient: HttpClient): BulkUpdateExperienceTagsSignature;
|
|
46
|
+
interface BulkUpdateExperienceTagsSignature {
|
|
47
|
+
/**
|
|
48
|
+
* Synchronously update tags on multiple Experiences, by list of Experiences ids
|
|
49
|
+
* A tag that appears both in the list of assign and unassign tags, will be assigned
|
|
50
|
+
* @param - List of NileProtoTagsEntities that their tags will update.
|
|
51
|
+
*/
|
|
52
|
+
(experienceIds: string[], options?: BulkUpdateExperienceTagsOptions): Promise<NonNullablePaths<BulkUpdateExperienceTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
|
|
53
|
+
__applicationErrorsType?: BulkUpdateExperienceTagsApplicationErrors;
|
|
54
|
+
}>;
|
|
55
|
+
}
|
|
56
|
+
declare function bulkUpdateExperienceTagsByFilter$1(httpClient: HttpClient): BulkUpdateExperienceTagsByFilterSignature;
|
|
57
|
+
interface BulkUpdateExperienceTagsByFilterSignature {
|
|
58
|
+
/**
|
|
59
|
+
* Asynchronously update tags on multiple Experiences, by provided filter
|
|
60
|
+
* An empty filter will update all Experiences
|
|
61
|
+
* A tag that appears both in the list of assign and unassign tags, will be assigned
|
|
62
|
+
* @param - Filter
|
|
63
|
+
*/
|
|
64
|
+
(filter: Record<string, any>, options?: BulkUpdateExperienceTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateExperienceTagsByFilterResponse, `jobId`, 2> & {
|
|
65
|
+
__applicationErrorsType?: BulkUpdateExperienceTagsByFilterApplicationErrors;
|
|
66
|
+
}>;
|
|
67
|
+
}
|
|
68
|
+
declare const onExperienceCreated$1: EventDefinition<ExperienceCreatedEnvelope, "wix.table_reservations.v1.experience_created">;
|
|
69
|
+
declare const onExperienceTagsModified$1: EventDefinition<ExperienceTagsModifiedEnvelope, "wix.table_reservations.v1.experience_tags_modified">;
|
|
70
|
+
declare const onExperienceUpdated$1: EventDefinition<ExperienceUpdatedEnvelope, "wix.table_reservations.v1.experience_updated">;
|
|
71
|
+
|
|
72
|
+
declare const createExperience: MaybeContext<BuildRESTFunction<typeof createExperience$1> & typeof createExperience$1>;
|
|
73
|
+
declare const getExperience: MaybeContext<BuildRESTFunction<typeof getExperience$1> & typeof getExperience$1>;
|
|
74
|
+
declare const updateExperience: MaybeContext<BuildRESTFunction<typeof updateExperience$1> & typeof updateExperience$1>;
|
|
75
|
+
declare const queryExperiences: MaybeContext<BuildRESTFunction<typeof queryExperiences$1> & typeof queryExperiences$1>;
|
|
76
|
+
declare const bulkUpdateExperienceTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateExperienceTags$1> & typeof bulkUpdateExperienceTags$1>;
|
|
77
|
+
declare const bulkUpdateExperienceTagsByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdateExperienceTagsByFilter$1> & typeof bulkUpdateExperienceTagsByFilter$1>;
|
|
78
|
+
/** */
|
|
79
|
+
declare const onExperienceCreated: BuildEventDefinition<typeof onExperienceCreated$1> & typeof onExperienceCreated$1;
|
|
80
|
+
/** */
|
|
81
|
+
declare const onExperienceTagsModified: BuildEventDefinition<typeof onExperienceTagsModified$1> & typeof onExperienceTagsModified$1;
|
|
82
|
+
/** */
|
|
83
|
+
declare const onExperienceUpdated: BuildEventDefinition<typeof onExperienceUpdated$1> & typeof onExperienceUpdated$1;
|
|
84
|
+
|
|
85
|
+
export { BulkUpdateExperienceTagsApplicationErrors, BulkUpdateExperienceTagsByFilterApplicationErrors, BulkUpdateExperienceTagsByFilterOptions, BulkUpdateExperienceTagsByFilterResponse, BulkUpdateExperienceTagsOptions, BulkUpdateExperienceTagsResponse, Experience, ExperienceCreatedEnvelope, ExperienceTagsModifiedEnvelope, ExperienceUpdatedEnvelope, ExperiencesQueryBuilder, UpdateExperience, bulkUpdateExperienceTags, bulkUpdateExperienceTagsByFilter, createExperience, getExperience, onExperienceCreated, onExperienceTagsModified, onExperienceUpdated, queryExperiences, updateExperience };
|