@wix/auto_sdk_table-reservations_experiences 1.0.25 → 1.0.27
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 +15 -6
- package/build/cjs/index.js +155 -9
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +147 -9
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +88 -4
- package/build/cjs/meta.js +115 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{table-reservations-v1-experience-experiences.universal-D4h-orRX.d.ts → table-reservations-v1-experience-experiences.universal-BkaxOWv3.d.ts} +111 -9
- package/build/es/index.d.mts +15 -6
- package/build/es/index.mjs +152 -5
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +144 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +88 -4
- package/build/es/meta.mjs +114 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{table-reservations-v1-experience-experiences.universal-D4h-orRX.d.mts → table-reservations-v1-experience-experiences.universal-BkaxOWv3.d.mts} +111 -9
- package/build/internal/cjs/index.d.ts +15 -6
- package/build/internal/cjs/index.js +155 -9
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +147 -9
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +88 -4
- package/build/internal/cjs/meta.js +115 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/{table-reservations-v1-experience-experiences.universal-D4h-orRX.d.ts → table-reservations-v1-experience-experiences.universal-BkaxOWv3.d.ts} +111 -9
- package/build/internal/es/index.d.mts +15 -6
- package/build/internal/es/index.mjs +152 -5
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +144 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +88 -4
- package/build/internal/es/meta.mjs +114 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/{table-reservations-v1-experience-experiences.universal-D4h-orRX.d.mts → table-reservations-v1-experience-experiences.universal-BkaxOWv3.d.mts} +111 -9
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { E as Experience, U as UpdateExperience, a as UpdateExperienceApplicationErrors, b as ExperienceSearch, S as SearchExperiencesResponse, B as BulkUpdateExperienceTagsOptions, c as BulkUpdateExperienceTagsResponse, d as BulkUpdateExperienceTagsApplicationErrors, e as BulkUpdateExperienceTagsByFilterOptions, f as BulkUpdateExperienceTagsByFilterResponse, g as BulkUpdateExperienceTagsByFilterApplicationErrors, h as ExperienceCreatedEnvelope, i as ExperienceTagsModifiedEnvelope, j as ExperienceUpdatedEnvelope, k as ExperiencesQueryBuilder, l as ExperienceQuery, t as typedQueryExperiences } from './table-reservations-v1-experience-experiences.universal-
|
|
3
|
-
export {
|
|
2
|
+
import { E as Experience, G as GetExperienceBySlugResponse, U as UpdateExperience, a as UpdateExperienceApplicationErrors, b as ExperienceSearch, S as SearchExperiencesResponse, B as BulkUpdateExperienceTagsOptions, c as BulkUpdateExperienceTagsResponse, d as BulkUpdateExperienceTagsApplicationErrors, e as BulkUpdateExperienceTagsByFilterOptions, f as BulkUpdateExperienceTagsByFilterResponse, g as BulkUpdateExperienceTagsByFilterApplicationErrors, h as ExperienceCreatedEnvelope, i as ExperienceTagsModifiedEnvelope, j as ExperienceUpdatedEnvelope, k as ExperiencesQueryBuilder, l as ExperienceQuery, t as typedQueryExperiences } from './table-reservations-v1-experience-experiences.universal-BkaxOWv3.js';
|
|
3
|
+
export { eh as AccountInfo, ek as AccountInfoMetadata, ed as ActionEvent, dT as Address, dU as AddressHint, d3 as Aggregation, dg as AggregationData, d4 as AggregationKindOneOf, dA as AggregationResults, dB as AggregationResultsResultOneOf, dn as AggregationResultsScalarResult, al as AggregationType, fi as AggregationTypeWithLiterals, a1 as Alignment, e_ as AlignmentWithLiterals, bL as AnchorData, cH as App, bS as AppEmbedData, bT as AppEmbedDataAppDataOneOf, a3 as AppType, f0 as AppTypeWithLiterals, dE as ApplicationError, aD as Approval, Z as AspectRatio, eW as AspectRatioWithLiterals, cb as AudioData, bB as Background, bC as BackgroundBackgroundOneOf, ch as BackgroundImage, K as BackgroundType, eS as BackgroundTypeWithLiterals, ei as BaseEventMetadata, ce as BlockquoteData, bU as BookingData, aR as Border, c8 as BorderColors, c9 as BorderWidths, dG as BulkActionMetadata, dI as BulkArchiveExperiencesRequest, dJ as BulkArchiveExperiencesResponse, dK as BulkArchiveExperiencesResult, dL as BulkUnarchiveExperiencesRequest, dM as BulkUnarchiveExperiencesResponse, dN as BulkUnarchiveExperiencesResult, dH as BulkUpdateExperienceTagsByFilterRequest, dC as BulkUpdateExperienceTagsRequest, dF as BulkUpdateExperienceTagsResult, cd as BulletedListData, dW as BusinessSchedule, aQ as ButtonData, q as ButtonDataType, ez as ButtonDataTypeWithLiterals, bW as ButtonStyles, cf as CaptionData, bZ as CardStyles, dR as Categories, c7 as CellStyle, e1 as ChangeContext, e2 as ChangeContextPayloadOneOf, b0 as CodeBlockData, c3 as CollapsibleListData, bM as ColorData, aS as Colors, fo as CommonQueryWithEntityContext, fp as CommonSearchWithEntityContext, cw as Configuration, d$ as ConsentPolicy, cN as CreateExperienceRequest, cO as CreateExperienceResponse, C as Crop, eI as CropWithLiterals, cY as CursorPaging, c_ as CursorPagingMetadata, cV as CursorQuery, cW as CursorQueryPagingMethodOneOf, d1 as CursorSearch, d2 as CursorSearchPagingMethodOneOf, c$ as Cursors, aK as CustomFieldDefinition, cL as CustomTag, db as DateHistogramAggregation, dw as DateHistogramResult, dy as DateHistogramResults, ao as DayOfWeek, fl as DayOfWeekWithLiterals, bJ as Decoration, bK as DecorationDataOneOf, Q as DecorationType, eT as DecorationTypeWithLiterals, bH as Design, ac as DesignTarget, f9 as DesignTargetWithLiterals, c5 as Dimensions, a5 as Direction, f2 as DirectionWithLiterals, cp as DisplayInfo, b2 as DividerData, D as DividerDataAlignment, eE as DividerDataAlignmentWithLiterals, cm as DocumentStyle, e7 as DomainEvent, e8 as DomainEventBodyOneOf, aL as EmailMarketingCheckbox, c1 as EmbedData, e6 as Empty, e9 as EntityCreatedEvent, ec as EntityDeletedEvent, eb as EntityUpdatedEvent, az as Entry, aA as EntryRecurrenceOptionsOneOf, bV as EventData, ej as EventMetadata, em as ExperienceQuerySpec, en as ExperienceSearchSpec, el as ExperiencesQueryResult, cx as ExtendedFields, cK as File, b3 as FileData, b4 as FileSource, b5 as FileSourceDataOneOf, bR as FontFamilyData, bP as FontSizeData, X as FontType, eU as FontTypeWithLiterals, bi as GIF, bh as GIFData, x as GIFType, eK as GIFTypeWithLiterals, b7 as GalleryData, bd as GalleryOptions, be as GalleryOptionsLayout, dV as GeoCoordinates, cR as GetExperienceBySlugRequest, cP as GetExperienceRequest, cQ as GetExperienceResponse, bA as Gradient, dx as GroupByValueResults, bk as HTMLData, bl as HTMLDataDataOneOf, bj as HeadingData, aX as Height, ef as IdentificationData, eg as IdentificationDataIdOneOf, b9 as Image, bm as ImageData, bo as ImageDataStyles, a9 as ImagePosition, f6 as ImagePositionWithLiterals, bX as ImageStyles, d6 as IncludeMissingValuesOptions, a4 as InitialExpandedItems, f1 as InitialExpandedItemsWithLiterals, ak as Interval, fh as IntervalWithLiterals, cF as InvalidateCache, cG as InvalidateCacheGetByOneOf, bb as Item, bc as ItemDataOneOf, dD as ItemMetadata, bf as ItemStyle, cC as Keyword, a2 as Layout, ci as LayoutCellData, cg as LayoutData, v as LayoutType, eG as LayoutTypeWithLiterals, e$ as LayoutWithLiterals, L as LineStyle, eC as LineStyleWithLiterals, aZ as Link, bN as LinkData, a_ as LinkDataOneOf, bp as LinkPreviewData, bq as LinkPreviewDataStyles, ca as ListValue, dS as Locale, br as MapData, bs as MapSettings, A as MapType, eN as MapTypeWithLiterals, aE as MaxGuests, b8 as Media, bO as MentionData, ee as MessageEnvelope, cl as Metadata, ah as MissingValues, fe as MissingValuesWithLiterals, M as Mode, et as ModeWithLiterals, dZ as Multilingual, de as NestedAggregation, dc as NestedAggregationItem, dd as NestedAggregationItemKindOneOf, dj as NestedAggregationResults, dk as NestedAggregationResultsResultOneOf, aj as NestedAggregationType, fg as NestedAggregationTypeWithLiterals, dt as NestedResultValue, du as NestedResultValueResultOneOf, dz as NestedResults, dp as NestedValueAggregationResult, aN as Node, aO as NodeDataOneOf, aP as NodeStyle, N as NodeType, ew as NodeTypeWithLiterals, aC as NoticePeriod, a7 as NullValue, f4 as NullValueWithLiterals, c2 as Oembed, au as OnOptions, av as OnOptionsOptionsOneOf, ay as OneTimeOptions, cs as OnlineReservations, aF as OnlineReservationsBusinessSchedule, bw as Option, bE as OptionDesign, bz as OptionLayout, cc as OrderedListData, O as Orientation, eH as OrientationWithLiterals, b6 as PDFSettings, cI as Page, bt as ParagraphData, aB as PartySize, cq as PaymentPolicy, cr as PaymentPolicyOptionsOneOf, ad as PaymentPolicyType, fa as PaymentPolicyTypeWithLiterals, co as PerGuestOptions, bv as Permissions, $ as Placement, an as PlacementType, fk as PlacementTypeWithLiterals, eY as PlacementWithLiterals, c0 as PlaybackOptions, aT as PluginContainerData, P as PluginContainerDataAlignment, ey as PluginContainerDataAlignmentWithLiterals, aU as PluginContainerDataWidth, aV as PluginContainerDataWidthDataOneOf, bF as Poll, bu as PollData, bG as PollDataLayout, bD as PollDesign, by as PollLayout, J as PollLayoutDirection, eR as PollLayoutDirectionWithLiterals, I as PollLayoutType, eQ as PollLayoutTypeWithLiterals, bx as PollSettings, Y as Position, eV as PositionWithLiterals, b_ as PricingData, aG as PrivacyPolicy, aH as PrivacyPolicyValueOneOf, dQ as Properties, e3 as PropertiesChange, cU as QueryExperiencesRequest, cZ as QueryExperiencesResponse, d9 as RangeAggregation, di as RangeAggregationResult, d5 as RangeBucket, dr as RangeResult, dm as RangeResults, R as Recurrence, ev as RecurrenceWithLiterals, a$ as Rel, ct as ReservationForm, _ as Resizing, eX as ResizingWithLiterals, ap as ResolutionMethod, fm as ResolutionMethodWithLiterals, ab as ResponsivenessBehaviour, f8 as ResponsivenessBehaviourWithLiterals, ea as RestoreInfo, dv as Results, bY as RibbonStyles, aM as RichContent, da as ScalarAggregation, ds as ScalarResult, ai as ScalarType, ff as ScalarTypeWithLiterals, a8 as Scaling, f5 as ScalingWithLiterals, df as SearchDetails, am as SearchDetailsMode, fj as SearchDetailsModeWithLiterals, d0 as SearchExperiencesRequest, cB as SeoSchema, cA as SeoSettings, cE as Settings, cj as ShapeData, ck as ShapeDataStyles, e5 as SiteCloned, e4 as SiteCreated, dP as SitePropertiesEvent, dO as SitePropertiesNotification, ag as SortDirection, fd as SortDirectionWithLiterals, ae as SortOrder, fb as SortOrderWithLiterals, af as SortType, fc as SortTypeWithLiterals, cX as Sorting, y as Source, eL as SourceWithLiterals, dY as SpecialHourPeriod, at as SpecificTablesOptions, aW as Spoiler, bQ as SpoilerData, aw as StartDaysAndTimes, p as StartDaysAndTimesDayOfWeek, eu as StartDaysAndTimesDayOfWeekWithLiterals, aY as Styles, bn as StylesBorder, z as StylesPosition, eM as StylesPositionWithLiterals, d_ as SupportedLanguage, ar as Table, m as TableAssignmentType, eq as TableAssignmentTypeWithLiterals, T as TableAvailabilityType, ep as TableAvailabilityTypeWithLiterals, c6 as TableCellData, as as TableCombination, c4 as TableData, cu as TableManagement, n as TableManagementMode, er as TableManagementModeWithLiterals, cv as TableManagementOptionsOneOf, cD as Tag, cz as TagList, cy as Tags, cM as TagsModified, r as Target, eA as TargetWithLiterals, aI as TermsAndConditions, aJ as TermsAndConditionsValueOneOf, s as TextAlignment, eB as TextAlignmentWithLiterals, bI as TextData, cn as TextNodeStyle, b1 as TextStyle, bg as Thumbnails, w as ThumbnailsAlignment, eJ as ThumbnailsAlignmentWithLiterals, dX as TimePeriod, e0 as Translation, a0 as Type, eZ as TypeWithLiterals, cJ as URI, o as Unit, es as UnitWithLiterals, cS as UpdateExperienceRequest, cT as UpdateExperienceResponse, d7 as ValueAggregation, d8 as ValueAggregationOptionsOneOf, dh as ValueAggregationResult, dq as ValueResult, dl as ValueResults, a6 as VerticalAlignment, aa as VerticalAlignmentAlignment, f7 as VerticalAlignmentAlignmentWithLiterals, f3 as VerticalAlignmentWithLiterals, ba as Video, b$ as VideoData, V as ViewMode, eF as ViewModeWithLiterals, F as ViewRole, eO as ViewRoleWithLiterals, H as VoteRole, eP as VoteRoleWithLiterals, aq as WebhookIdentityType, fn as WebhookIdentityTypeWithLiterals, ax as WeeklyOptions, u as Width, W as WidthType, ex as WidthTypeWithLiterals, eD as WidthWithLiterals, eo as utils } from './table-reservations-v1-experience-experiences.universal-BkaxOWv3.js';
|
|
4
4
|
|
|
5
5
|
declare function createExperience$1(httpClient: HttpClient): CreateExperienceSignature;
|
|
6
6
|
interface CreateExperienceSignature {
|
|
@@ -9,7 +9,7 @@ interface CreateExperienceSignature {
|
|
|
9
9
|
* @param - Experience to create.
|
|
10
10
|
* @returns Created experience.
|
|
11
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` | `tags.privateTags.tagIds`, 7>>;
|
|
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` | `tags.privateTags.tagIds` | `seoSettings.seoSchema.tags` | `seoSettings.seoSchema.tags.${number}.type` | `seoSettings.seoSchema.tags.${number}.children` | `seoSettings.seoSchema.tags.${number}.custom` | `seoSettings.seoSchema.tags.${number}.disabled` | `seoSettings.seoSchema.settings.preventAutoRedirect` | `seoSettings.seoSchema.settings.keywords` | `seoSettings.seoSchema.settings.keywords.${number}.term` | `seoSettings.seoSchema.settings.keywords.${number}.isMain`, 7>>;
|
|
13
13
|
}
|
|
14
14
|
declare function getExperience$1(httpClient: HttpClient): GetExperienceSignature;
|
|
15
15
|
interface GetExperienceSignature {
|
|
@@ -18,7 +18,15 @@ interface GetExperienceSignature {
|
|
|
18
18
|
* @param - ID of the experience to retrieve.
|
|
19
19
|
* @returns Retrieved experience.
|
|
20
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` | `tags.privateTags.tagIds`, 7>>;
|
|
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` | `tags.privateTags.tagIds` | `seoSettings.seoSchema.tags` | `seoSettings.seoSchema.tags.${number}.type` | `seoSettings.seoSchema.tags.${number}.children` | `seoSettings.seoSchema.tags.${number}.custom` | `seoSettings.seoSchema.tags.${number}.disabled` | `seoSettings.seoSchema.settings.preventAutoRedirect` | `seoSettings.seoSchema.settings.keywords` | `seoSettings.seoSchema.settings.keywords.${number}.term` | `seoSettings.seoSchema.settings.keywords.${number}.isMain`, 7>>;
|
|
22
|
+
}
|
|
23
|
+
declare function getExperienceBySlug$1(httpClient: HttpClient): GetExperienceBySlugSignature;
|
|
24
|
+
interface GetExperienceBySlugSignature {
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves an experience.
|
|
27
|
+
* @param - ID of the experience to retrieve.
|
|
28
|
+
*/
|
|
29
|
+
(slug: string): Promise<NonNullablePaths<GetExperienceBySlugResponse, `experience.configuration.paymentPolicy.paymentPolicyType` | `experience.configuration.onlineReservations.minimumReservationNotice.unit` | `experience.configuration.onlineReservations.approval.mode` | `experience.configuration.onlineReservations.businessSchedule.entries` | `experience.configuration.onlineReservations.businessSchedule.entries.${number}.recurrence` | `experience.configuration.reservationForm.customFieldDefinitions` | `experience.tags.privateTags.tagIds` | `experience.seoSettings.seoSchema.tags` | `experience.seoSettings.seoSchema.tags.${number}.type` | `experience.seoSettings.seoSchema.tags.${number}.children` | `experience.seoSettings.seoSchema.tags.${number}.custom` | `experience.seoSettings.seoSchema.tags.${number}.disabled` | `experience.seoSettings.seoSchema.settings.preventAutoRedirect` | `experience.seoSettings.seoSchema.settings.keywords` | `experience.seoSettings.seoSchema.settings.keywords.${number}.term` | `experience.seoSettings.seoSchema.settings.keywords.${number}.isMain`, 8>>;
|
|
22
30
|
}
|
|
23
31
|
declare function updateExperience$1(httpClient: HttpClient): UpdateExperienceSignature;
|
|
24
32
|
interface UpdateExperienceSignature {
|
|
@@ -31,7 +39,7 @@ interface UpdateExperienceSignature {
|
|
|
31
39
|
* @param - Experience ID.
|
|
32
40
|
* @returns Updated experience.
|
|
33
41
|
*/
|
|
34
|
-
(_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` | `tags.privateTags.tagIds`, 7> & {
|
|
42
|
+
(_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` | `tags.privateTags.tagIds` | `seoSettings.seoSchema.tags` | `seoSettings.seoSchema.tags.${number}.type` | `seoSettings.seoSchema.tags.${number}.children` | `seoSettings.seoSchema.tags.${number}.custom` | `seoSettings.seoSchema.tags.${number}.disabled` | `seoSettings.seoSchema.settings.preventAutoRedirect` | `seoSettings.seoSchema.settings.keywords` | `seoSettings.seoSchema.settings.keywords.${number}.term` | `seoSettings.seoSchema.settings.keywords.${number}.isMain`, 7> & {
|
|
35
43
|
__applicationErrorsType?: UpdateExperienceApplicationErrors;
|
|
36
44
|
}>;
|
|
37
45
|
}
|
|
@@ -75,6 +83,7 @@ declare function customQueryExperiences(httpClient: HttpClient): {
|
|
|
75
83
|
};
|
|
76
84
|
declare const createExperience: MaybeContext<BuildRESTFunction<typeof createExperience$1> & typeof createExperience$1>;
|
|
77
85
|
declare const getExperience: MaybeContext<BuildRESTFunction<typeof getExperience$1> & typeof getExperience$1>;
|
|
86
|
+
declare const getExperienceBySlug: MaybeContext<BuildRESTFunction<typeof getExperienceBySlug$1> & typeof getExperienceBySlug$1>;
|
|
78
87
|
declare const updateExperience: MaybeContext<BuildRESTFunction<typeof updateExperience$1> & typeof updateExperience$1>;
|
|
79
88
|
declare const searchExperiences: MaybeContext<BuildRESTFunction<typeof searchExperiences$1> & typeof searchExperiences$1>;
|
|
80
89
|
declare const bulkUpdateExperienceTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateExperienceTags$1> & typeof bulkUpdateExperienceTags$1>;
|
|
@@ -93,4 +102,4 @@ declare const onExperienceTagsModified: BuildEventDefinition<typeof onExperience
|
|
|
93
102
|
*/
|
|
94
103
|
declare const onExperienceUpdated: BuildEventDefinition<typeof onExperienceUpdated$1> & typeof onExperienceUpdated$1;
|
|
95
104
|
|
|
96
|
-
export { BulkUpdateExperienceTagsApplicationErrors, BulkUpdateExperienceTagsByFilterApplicationErrors, BulkUpdateExperienceTagsByFilterOptions, BulkUpdateExperienceTagsByFilterResponse, BulkUpdateExperienceTagsOptions, BulkUpdateExperienceTagsResponse, Experience, ExperienceCreatedEnvelope, ExperienceQuery, ExperienceSearch, ExperienceTagsModifiedEnvelope, ExperienceUpdatedEnvelope, ExperiencesQueryBuilder, SearchExperiencesResponse, UpdateExperience, UpdateExperienceApplicationErrors, bulkUpdateExperienceTags, bulkUpdateExperienceTagsByFilter, createExperience, getExperience, onExperienceCreated, onExperienceTagsModified, onExperienceUpdated, queryExperiences, searchExperiences, updateExperience };
|
|
105
|
+
export { BulkUpdateExperienceTagsApplicationErrors, BulkUpdateExperienceTagsByFilterApplicationErrors, BulkUpdateExperienceTagsByFilterOptions, BulkUpdateExperienceTagsByFilterResponse, BulkUpdateExperienceTagsOptions, BulkUpdateExperienceTagsResponse, Experience, ExperienceCreatedEnvelope, ExperienceQuery, ExperienceSearch, ExperienceTagsModifiedEnvelope, ExperienceUpdatedEnvelope, ExperiencesQueryBuilder, GetExperienceBySlugResponse, SearchExperiencesResponse, UpdateExperience, UpdateExperienceApplicationErrors, bulkUpdateExperienceTags, bulkUpdateExperienceTagsByFilter, createExperience, getExperience, getExperienceBySlug, onExperienceCreated, onExperienceTagsModified, onExperienceUpdated, queryExperiences, searchExperiences, updateExperience };
|
package/build/cjs/index.js
CHANGED
|
@@ -32,7 +32,6 @@ __export(index_exports, {
|
|
|
32
32
|
DesignTarget: () => DesignTarget,
|
|
33
33
|
Direction: () => Direction,
|
|
34
34
|
DividerDataAlignment: () => DividerDataAlignment,
|
|
35
|
-
Filter: () => Filter,
|
|
36
35
|
FontType: () => FontType,
|
|
37
36
|
GIFType: () => GIFType,
|
|
38
37
|
ImagePosition: () => ImagePosition,
|
|
@@ -55,7 +54,6 @@ __export(index_exports, {
|
|
|
55
54
|
PollLayoutDirection: () => PollLayoutDirection,
|
|
56
55
|
PollLayoutType: () => PollLayoutType,
|
|
57
56
|
Position: () => Position,
|
|
58
|
-
QueryBuilder: () => QueryBuilder,
|
|
59
57
|
Recurrence: () => Recurrence,
|
|
60
58
|
Resizing: () => Resizing,
|
|
61
59
|
ResolutionMethod: () => ResolutionMethod,
|
|
@@ -63,7 +61,6 @@ __export(index_exports, {
|
|
|
63
61
|
ScalarType: () => ScalarType,
|
|
64
62
|
Scaling: () => Scaling,
|
|
65
63
|
SearchDetailsMode: () => SearchDetailsMode,
|
|
66
|
-
Sort: () => Sort,
|
|
67
64
|
SortDirection: () => SortDirection,
|
|
68
65
|
SortOrder: () => SortOrder,
|
|
69
66
|
SortType: () => SortType,
|
|
@@ -90,12 +87,14 @@ __export(index_exports, {
|
|
|
90
87
|
bulkUpdateExperienceTagsByFilter: () => bulkUpdateExperienceTagsByFilter4,
|
|
91
88
|
createExperience: () => createExperience4,
|
|
92
89
|
getExperience: () => getExperience4,
|
|
90
|
+
getExperienceBySlug: () => getExperienceBySlug4,
|
|
93
91
|
onExperienceCreated: () => onExperienceCreated2,
|
|
94
92
|
onExperienceTagsModified: () => onExperienceTagsModified2,
|
|
95
93
|
onExperienceUpdated: () => onExperienceUpdated2,
|
|
96
94
|
queryExperiences: () => queryExperiences4,
|
|
97
95
|
searchExperiences: () => searchExperiences4,
|
|
98
|
-
updateExperience: () => updateExperience4
|
|
96
|
+
updateExperience: () => updateExperience4,
|
|
97
|
+
utils: () => utils
|
|
99
98
|
});
|
|
100
99
|
module.exports = __toCommonJS(index_exports);
|
|
101
100
|
|
|
@@ -480,6 +479,101 @@ function getExperience(payload) {
|
|
|
480
479
|
}
|
|
481
480
|
return __getExperience;
|
|
482
481
|
}
|
|
482
|
+
function getExperienceBySlug(payload) {
|
|
483
|
+
function __getExperienceBySlug({ host }) {
|
|
484
|
+
const metadata = {
|
|
485
|
+
entityFqdn: "wix.table_reservations.v1.experience",
|
|
486
|
+
method: "GET",
|
|
487
|
+
methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.GetExperienceBySlug",
|
|
488
|
+
packageName: PACKAGE_NAME,
|
|
489
|
+
migrationOptions: {
|
|
490
|
+
optInTransformResponse: true
|
|
491
|
+
},
|
|
492
|
+
url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
|
|
493
|
+
protoPath: "/v1/experiences/slug/{slug}",
|
|
494
|
+
data: payload,
|
|
495
|
+
host
|
|
496
|
+
}),
|
|
497
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
498
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
499
|
+
{
|
|
500
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
501
|
+
paths: [
|
|
502
|
+
{ path: "experience.createdDate" },
|
|
503
|
+
{ path: "experience.updatedDate" },
|
|
504
|
+
{
|
|
505
|
+
path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
|
|
509
|
+
}
|
|
510
|
+
]
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
514
|
+
paths: [
|
|
515
|
+
{
|
|
516
|
+
path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
path: "experience.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
|
|
568
|
+
}
|
|
569
|
+
]
|
|
570
|
+
}
|
|
571
|
+
])
|
|
572
|
+
};
|
|
573
|
+
return metadata;
|
|
574
|
+
}
|
|
575
|
+
return __getExperienceBySlug;
|
|
576
|
+
}
|
|
483
577
|
function updateExperience(payload) {
|
|
484
578
|
function __updateExperience({ host }) {
|
|
485
579
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1503,6 +1597,49 @@ async function getExperience2(experienceId) {
|
|
|
1503
1597
|
throw transformedError;
|
|
1504
1598
|
}
|
|
1505
1599
|
}
|
|
1600
|
+
async function getExperienceBySlug2(slug) {
|
|
1601
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1602
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ slug }, []);
|
|
1603
|
+
const reqOpts = getExperienceBySlug(payload);
|
|
1604
|
+
sideEffects?.onSiteCall?.();
|
|
1605
|
+
try {
|
|
1606
|
+
const result = await httpClient.request(reqOpts);
|
|
1607
|
+
sideEffects?.onSuccess?.(result);
|
|
1608
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1609
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1610
|
+
{
|
|
1611
|
+
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1612
|
+
paths: [
|
|
1613
|
+
{ path: "experience.experiencePageUrl" },
|
|
1614
|
+
{
|
|
1615
|
+
path: "experience.configuration.reservationForm.privacyPolicy.url"
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
path: "experience.configuration.reservationForm.termsAndConditions.url"
|
|
1619
|
+
}
|
|
1620
|
+
]
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1624
|
+
paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
|
|
1625
|
+
}
|
|
1626
|
+
]),
|
|
1627
|
+
["experience.configuration.displayInfo.richContent"]
|
|
1628
|
+
);
|
|
1629
|
+
} catch (err) {
|
|
1630
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1631
|
+
err,
|
|
1632
|
+
{
|
|
1633
|
+
spreadPathsToArguments: {},
|
|
1634
|
+
explicitPathsToArguments: { slug: "$[0]" },
|
|
1635
|
+
singleArgumentUnchanged: false
|
|
1636
|
+
},
|
|
1637
|
+
["slug"]
|
|
1638
|
+
);
|
|
1639
|
+
sideEffects?.onError?.(err);
|
|
1640
|
+
throw transformedError;
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1506
1643
|
async function updateExperience2(_id, experience) {
|
|
1507
1644
|
const { httpClient, sideEffects } = arguments[2];
|
|
1508
1645
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
@@ -1675,7 +1812,9 @@ async function typedQueryExperiences(query) {
|
|
|
1675
1812
|
throw transformedError;
|
|
1676
1813
|
}
|
|
1677
1814
|
}
|
|
1678
|
-
var
|
|
1815
|
+
var utils = {
|
|
1816
|
+
...(0, import_query_builder_utils.createQueryUtils)()
|
|
1817
|
+
};
|
|
1679
1818
|
async function searchExperiences2(search) {
|
|
1680
1819
|
const { httpClient, sideEffects } = arguments[1];
|
|
1681
1820
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ search }, []);
|
|
@@ -1807,6 +1946,13 @@ function getExperience3(httpClient) {
|
|
|
1807
1946
|
{ httpClient }
|
|
1808
1947
|
);
|
|
1809
1948
|
}
|
|
1949
|
+
function getExperienceBySlug3(httpClient) {
|
|
1950
|
+
return (slug) => getExperienceBySlug2(
|
|
1951
|
+
slug,
|
|
1952
|
+
// @ts-ignore
|
|
1953
|
+
{ httpClient }
|
|
1954
|
+
);
|
|
1955
|
+
}
|
|
1810
1956
|
function updateExperience3(httpClient) {
|
|
1811
1957
|
return (_id, experience) => updateExperience2(
|
|
1812
1958
|
_id,
|
|
@@ -2230,6 +2376,7 @@ function customQueryExperiences(httpClient) {
|
|
|
2230
2376
|
}
|
|
2231
2377
|
var createExperience4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createExperience3);
|
|
2232
2378
|
var getExperience4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getExperience3);
|
|
2379
|
+
var getExperienceBySlug4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getExperienceBySlug3);
|
|
2233
2380
|
var updateExperience4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateExperience3);
|
|
2234
2381
|
var searchExperiences4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchExperiences3);
|
|
2235
2382
|
var bulkUpdateExperienceTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateExperienceTags3);
|
|
@@ -2258,7 +2405,6 @@ var onExperienceUpdated2 = (0, import_event_definition_modules.createEventModule
|
|
|
2258
2405
|
DesignTarget,
|
|
2259
2406
|
Direction,
|
|
2260
2407
|
DividerDataAlignment,
|
|
2261
|
-
Filter,
|
|
2262
2408
|
FontType,
|
|
2263
2409
|
GIFType,
|
|
2264
2410
|
ImagePosition,
|
|
@@ -2281,7 +2427,6 @@ var onExperienceUpdated2 = (0, import_event_definition_modules.createEventModule
|
|
|
2281
2427
|
PollLayoutDirection,
|
|
2282
2428
|
PollLayoutType,
|
|
2283
2429
|
Position,
|
|
2284
|
-
QueryBuilder,
|
|
2285
2430
|
Recurrence,
|
|
2286
2431
|
Resizing,
|
|
2287
2432
|
ResolutionMethod,
|
|
@@ -2289,7 +2434,6 @@ var onExperienceUpdated2 = (0, import_event_definition_modules.createEventModule
|
|
|
2289
2434
|
ScalarType,
|
|
2290
2435
|
Scaling,
|
|
2291
2436
|
SearchDetailsMode,
|
|
2292
|
-
Sort,
|
|
2293
2437
|
SortDirection,
|
|
2294
2438
|
SortOrder,
|
|
2295
2439
|
SortType,
|
|
@@ -2316,11 +2460,13 @@ var onExperienceUpdated2 = (0, import_event_definition_modules.createEventModule
|
|
|
2316
2460
|
bulkUpdateExperienceTagsByFilter,
|
|
2317
2461
|
createExperience,
|
|
2318
2462
|
getExperience,
|
|
2463
|
+
getExperienceBySlug,
|
|
2319
2464
|
onExperienceCreated,
|
|
2320
2465
|
onExperienceTagsModified,
|
|
2321
2466
|
onExperienceUpdated,
|
|
2322
2467
|
queryExperiences,
|
|
2323
2468
|
searchExperiences,
|
|
2324
|
-
updateExperience
|
|
2469
|
+
updateExperience,
|
|
2470
|
+
utils
|
|
2325
2471
|
});
|
|
2326
2472
|
//# sourceMappingURL=index.js.map
|