@wix/auto_sdk_table-reservations_experiences 1.0.6 → 1.0.8

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.
Files changed (41) hide show
  1. package/build/cjs/index.d.ts +33 -24
  2. package/build/cjs/index.js +191 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +12 -3774
  5. package/build/cjs/index.typings.js +183 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +99 -100
  8. package/build/cjs/meta.js +159 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/table-reservations-v1-experience-experiences.universal-DUlr47KQ.d.ts +3951 -0
  11. package/build/es/index.d.mts +33 -24
  12. package/build/es/index.mjs +190 -0
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +12 -3774
  15. package/build/es/index.typings.mjs +182 -0
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +99 -100
  18. package/build/es/meta.mjs +158 -0
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/table-reservations-v1-experience-experiences.universal-DUlr47KQ.d.mts +3951 -0
  21. package/build/internal/cjs/index.d.ts +33 -24
  22. package/build/internal/cjs/index.js +191 -0
  23. package/build/internal/cjs/index.js.map +1 -1
  24. package/build/internal/cjs/index.typings.d.ts +12 -3774
  25. package/build/internal/cjs/index.typings.js +183 -0
  26. package/build/internal/cjs/index.typings.js.map +1 -1
  27. package/build/internal/cjs/meta.d.ts +99 -100
  28. package/build/internal/cjs/meta.js +159 -0
  29. package/build/internal/cjs/meta.js.map +1 -1
  30. package/build/internal/cjs/table-reservations-v1-experience-experiences.universal-DUlr47KQ.d.ts +3951 -0
  31. package/build/internal/es/index.d.mts +33 -24
  32. package/build/internal/es/index.mjs +190 -0
  33. package/build/internal/es/index.mjs.map +1 -1
  34. package/build/internal/es/index.typings.d.mts +12 -3774
  35. package/build/internal/es/index.typings.mjs +182 -0
  36. package/build/internal/es/index.typings.mjs.map +1 -1
  37. package/build/internal/es/meta.d.mts +99 -100
  38. package/build/internal/es/meta.mjs +158 -0
  39. package/build/internal/es/meta.mjs.map +1 -1
  40. package/build/internal/es/table-reservations-v1-experience-experiences.universal-DUlr47KQ.d.mts +3951 -0
  41. package/package.json +2 -2
@@ -1,53 +1,63 @@
1
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, Aggregation, AggregationData, AggregationKindOneOf, AggregationResults, AggregationResultsResultOneOf, AggregationResultsScalarResult, AggregationType, AggregationTypeWithLiterals, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, ApplicationError, Approval, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundImage, 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, CursorSearch, CursorSearchPagingMethodOneOf, Cursors, CustomFieldDefinition, DateHistogramAggregation, DateHistogramResult, DateHistogramResults, 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, GroupByValueResults, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImagePosition, ImagePositionWithLiterals, ImageStyles, IncludeMissingValuesOptions, InitialExpandedItems, InitialExpandedItemsWithLiterals, Interval, IntervalWithLiterals, Item, ItemDataOneOf, ItemMetadata, ItemStyle, Layout, LayoutCellData, LayoutData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListValue, Locale, MapData, MapSettings, MapType, MapTypeWithLiterals, MaxGuests, Media, MentionData, MessageEnvelope, Metadata, MissingValues, MissingValuesWithLiterals, Mode, ModeWithLiterals, Multilingual, NestedAggregation, NestedAggregationItem, NestedAggregationItemKindOneOf, NestedAggregationResults, NestedAggregationResultsResultOneOf, NestedAggregationType, NestedAggregationTypeWithLiterals, NestedResultValue, NestedResultValueResultOneOf, NestedResults, NestedValueAggregationResult, 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, RangeAggregation, RangeAggregationResult, RangeBucket, RangeResult, RangeResults, Recurrence, RecurrenceWithLiterals, Rel, ReservationForm, Resizing, ResizingWithLiterals, ResolutionMethod, ResolutionMethodWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreInfo, Results, RibbonStyles, RichContent, ScalarAggregation, ScalarResult, ScalarType, ScalarTypeWithLiterals, Scaling, ScalingWithLiterals, SearchDetails, SearchDetailsMode, SearchDetailsModeWithLiterals, SearchExperiencesRequest, SearchExperiencesResponse, Settings, SiteCloned, SiteCreated, SitePropertiesEvent, SitePropertiesNotification, SortDirection, SortDirectionWithLiterals, SortOrder, SortOrderWithLiterals, SortType, SortTypeWithLiterals, 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, ValueAggregation, ValueAggregationOptionsOneOf, ValueAggregationResult, ValueResult, ValueResults, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeeklyOptions, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals } from './index.typings.js';
2
+ import { E as Experience, U as UpdateExperience, a as ExperiencesQueryBuilder, 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 } from './table-reservations-v1-experience-experiences.universal-DUlr47KQ.js';
3
+ export { dN as ActionEvent, dr as Address, ds as AddressHint, cJ as Aggregation, cW as AggregationData, cK as AggregationKindOneOf, dd as AggregationResults, de as AggregationResultsResultOneOf, d1 as AggregationResultsScalarResult, ag as AggregationType, eN as AggregationTypeWithLiterals, Z as Alignment, eu as AlignmentWithLiterals, bG as AnchorData, bM as AppEmbedData, bN as AppEmbedDataAppDataOneOf, $ as AppType, ew as AppTypeWithLiterals, dh as ApplicationError, ay as Approval, K as AspectRatio, eq as AspectRatioWithLiterals, c4 as AudioData, bw as Background, bx as BackgroundBackgroundOneOf, ca as BackgroundImage, F as BackgroundType, em as BackgroundTypeWithLiterals, dR as BaseEventMetadata, c7 as BlockquoteData, bO as BookingData, aM as Border, c2 as BorderColors, dj as BulkActionMetadata, dk as BulkUpdateExperienceTagsByFilterRequest, df as BulkUpdateExperienceTagsRequest, di as BulkUpdateExperienceTagsResult, c6 as BulletedListData, du as BusinessSchedule, aL as ButtonData, o as ButtonDataType, e3 as ButtonDataTypeWithLiterals, bQ as ButtonStyles, c8 as CaptionData, bT as CardStyles, dp as Categories, c1 as CellStyle, dB as ChangeContext, dC as ChangeContextPayloadOneOf, aX as CodeBlockData, bZ as CollapsibleListData, bH as ColorData, aN as Colors, eT as CommonSearchWithEntityContext, cn as Configuration, dz as ConsentPolicy, cs as CreateExperienceRequest, ct as CreateExperienceResponse, C as Crop, ec as CropWithLiterals, cC as CursorPaging, cE as CursorPagingMetadata, cz as CursorQuery, cA as CursorQueryPagingMethodOneOf, cH as CursorSearch, cI as CursorSearchPagingMethodOneOf, cF as Cursors, aF as CustomFieldDefinition, cR as DateHistogramAggregation, d9 as DateHistogramResult, db as DateHistogramResults, aj as DayOfWeek, eQ as DayOfWeekWithLiterals, bE as Decoration, bF as DecorationDataOneOf, H as DecorationType, en as DecorationTypeWithLiterals, bC as Design, b$ as Dimensions, a1 as Direction, ey as DirectionWithLiterals, cg as DisplayInfo, aZ as DividerData, D as DividerDataAlignment, e8 as DividerDataAlignmentWithLiterals, cd as DocumentStyle, dH as DomainEvent, dI as DomainEventBodyOneOf, aG as EmailMarketingCheckbox, bX as EmbedData, dG as Empty, dJ as EntityCreatedEvent, dM as EntityDeletedEvent, dL as EntityUpdatedEvent, au as Entry, av as EntryRecurrenceOptionsOneOf, bP as EventData, dS as EventMetadata, dU as ExperienceSearchSpec, dT as ExperiencesQueryResult, co as ExtendedFields, a_ as FileData, a$ as FileSource, b0 as FileSourceDataOneOf, bK as FontSizeData, I as FontType, eo as FontTypeWithLiterals, bd as GIF, bc as GIFData, G as GIFType, ee as GIFTypeWithLiterals, b2 as GalleryData, b8 as GalleryOptions, b9 as GalleryOptionsLayout, dt as GeoCoordinates, cu as GetExperienceRequest, cv as GetExperienceResponse, bv as Gradient, da as GroupByValueResults, bf as HTMLData, bg as HTMLDataDataOneOf, be as HeadingData, aS as Height, dP as IdentificationData, dQ as IdentificationDataIdOneOf, b4 as Image, bh as ImageData, bj as ImageDataStyles, a5 as ImagePosition, eC as ImagePositionWithLiterals, bR as ImageStyles, cM as IncludeMissingValuesOptions, a0 as InitialExpandedItems, ex as InitialExpandedItemsWithLiterals, af as Interval, eM as IntervalWithLiterals, b6 as Item, b7 as ItemDataOneOf, dg as ItemMetadata, ba as ItemStyle, _ as Layout, cb as LayoutCellData, c9 as LayoutData, s as LayoutType, ea as LayoutTypeWithLiterals, ev as LayoutWithLiterals, L as LineStyle, e6 as LineStyleWithLiterals, aU as Link, bI as LinkData, aV as LinkDataOneOf, bk as LinkPreviewData, bl as LinkPreviewDataStyles, c3 as ListValue, dq as Locale, bm as MapData, bn as MapSettings, w as MapType, eh as MapTypeWithLiterals, az as MaxGuests, b3 as Media, bJ as MentionData, dO as MessageEnvelope, cc as Metadata, ac as MissingValues, eJ as MissingValuesWithLiterals, M as Mode, dZ as ModeWithLiterals, dx as Multilingual, cU as NestedAggregation, cS as NestedAggregationItem, cT as NestedAggregationItemKindOneOf, cZ as NestedAggregationResults, c_ as NestedAggregationResultsResultOneOf, ae as NestedAggregationType, eL as NestedAggregationTypeWithLiterals, d6 as NestedResultValue, d7 as NestedResultValueResultOneOf, dc as NestedResults, d2 as NestedValueAggregationResult, aI as Node, aJ as NodeDataOneOf, aK as NodeStyle, N as NodeType, e0 as NodeTypeWithLiterals, ax as NoticePeriod, a3 as NullValue, eA as NullValueWithLiterals, bY as Oembed, ap as OnOptions, aq as OnOptionsOptionsOneOf, at as OneTimeOptions, cj as OnlineReservations, aA as OnlineReservationsBusinessSchedule, br as Option, bz as OptionDesign, bu as OptionLayout, c5 as OrderedListData, O as Orientation, eb as OrientationWithLiterals, b1 as PDFSettings, bo as ParagraphData, aw as PartySize, ch as PaymentPolicy, ci as PaymentPolicyOptionsOneOf, a8 as PaymentPolicyType, eF as PaymentPolicyTypeWithLiterals, cf as PerGuestOptions, bq as Permissions, X as Placement, ai as PlacementType, eP as PlacementTypeWithLiterals, es as PlacementWithLiterals, bW as PlaybackOptions, aO as PluginContainerData, P as PluginContainerDataAlignment, e2 as PluginContainerDataAlignmentWithLiterals, aP as PluginContainerDataWidth, aQ as PluginContainerDataWidthDataOneOf, bA as Poll, bp as PollData, bB as PollDataLayout, by as PollDesign, bt as PollLayout, A as PollLayoutDirection, el as PollLayoutDirectionWithLiterals, z as PollLayoutType, ek as PollLayoutTypeWithLiterals, J as Position, ep as PositionWithLiterals, bU as PricingData, aB as PrivacyPolicy, aC as PrivacyPolicyValueOneOf, dn as Properties, dD as PropertiesChange, cy as QueryExperiencesRequest, cD as QueryExperiencesResponse, cP as RangeAggregation, cY as RangeAggregationResult, cL as RangeBucket, d4 as RangeResult, d0 as RangeResults, R as Recurrence, d$ as RecurrenceWithLiterals, aW as Rel, ck as ReservationForm, Q as Resizing, er as ResizingWithLiterals, ak as ResolutionMethod, eR as ResolutionMethodWithLiterals, a7 as ResponsivenessBehaviour, eE as ResponsivenessBehaviourWithLiterals, dK as RestoreInfo, d8 as Results, bS as RibbonStyles, aH as RichContent, cQ as ScalarAggregation, d5 as ScalarResult, ad as ScalarType, eK as ScalarTypeWithLiterals, a4 as Scaling, eB as ScalingWithLiterals, cV as SearchDetails, ah as SearchDetailsMode, eO as SearchDetailsModeWithLiterals, cG as SearchExperiencesRequest, bs as Settings, dF as SiteCloned, dE as SiteCreated, dm as SitePropertiesEvent, dl as SitePropertiesNotification, ab as SortDirection, eI as SortDirectionWithLiterals, a9 as SortOrder, eG as SortOrderWithLiterals, aa as SortType, eH as SortTypeWithLiterals, cB as Sorting, u as Source, ef as SourceWithLiterals, dw as SpecialHourPeriod, ao as SpecificTablesOptions, aR as Spoiler, bL as SpoilerData, ar as StartDaysAndTimes, n as StartDaysAndTimesDayOfWeek, d_ as StartDaysAndTimesDayOfWeekWithLiterals, aT as Styles, bi as StylesBorder, v as StylesPosition, eg as StylesPositionWithLiterals, dy as SupportedLanguage, am as Table, k as TableAssignmentType, dW as TableAssignmentTypeWithLiterals, T as TableAvailabilityType, dV as TableAvailabilityTypeWithLiterals, c0 as TableCellData, an as TableCombination, b_ as TableData, cl as TableManagement, l as TableManagementMode, dX as TableManagementModeWithLiterals, cm as TableManagementOptionsOneOf, cq as TagList, cp as Tags, cr as TagsModified, p as Target, e4 as TargetWithLiterals, aD as TermsAndConditions, aE as TermsAndConditionsValueOneOf, q as TextAlignment, e5 as TextAlignmentWithLiterals, bD as TextData, ce as TextNodeStyle, aY as TextStyle, bb as Thumbnails, t as ThumbnailsAlignment, ed as ThumbnailsAlignmentWithLiterals, dv as TimePeriod, dA as Translation, Y as Type, et as TypeWithLiterals, m as Unit, dY as UnitWithLiterals, cw as UpdateExperienceRequest, cx as UpdateExperienceResponse, cN as ValueAggregation, cO as ValueAggregationOptionsOneOf, cX as ValueAggregationResult, d3 as ValueResult, c$ as ValueResults, a2 as VerticalAlignment, a6 as VerticalAlignmentAlignment, eD as VerticalAlignmentAlignmentWithLiterals, ez as VerticalAlignmentWithLiterals, b5 as Video, bV as VideoData, V as ViewMode, e9 as ViewModeWithLiterals, x as ViewRole, ei as ViewRoleWithLiterals, y as VoteRole, ej as VoteRoleWithLiterals, al as WebhookIdentityType, eS as WebhookIdentityTypeWithLiterals, as as WeeklyOptions, r as Width, W as WidthType, e1 as WidthTypeWithLiterals, e7 as WidthWithLiterals } from './table-reservations-v1-experience-experiences.universal-DUlr47KQ.js';
4
4
 
5
5
  declare function createExperience$1(httpClient: HttpClient): CreateExperienceSignature;
6
6
  interface CreateExperienceSignature {
7
7
  /**
8
- * Creates an Experience.
9
- * @param - Experience to be created.
10
- * @returns The created Experience.
8
+ * Creates an experience.
9
+ * @param - Experience to create.
10
+ * @returns Created experience.
11
11
  */
12
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>>;
13
13
  }
14
14
  declare function getExperience$1(httpClient: HttpClient): GetExperienceSignature;
15
15
  interface GetExperienceSignature {
16
16
  /**
17
- * Retrieves an Experience.
18
- * @param - ID of the Experience to retrieve.
19
- * @returns The requested Experience.
17
+ * Retrieves an experience.
18
+ * @param - ID of the experience to retrieve.
19
+ * @returns Retrieved experience.
20
20
  */
21
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>>;
22
22
  }
23
23
  declare function updateExperience$1(httpClient: HttpClient): UpdateExperienceSignature;
24
24
  interface UpdateExperienceSignature {
25
25
  /**
26
- * Updates an Experience.
26
+ * Updates an experience.
27
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.
28
+ * Each time the experience is updated, `revision` increments by 1.
29
+ * The current `revision` must be passed when updating the experience.
30
+ * This ensures you're working with the latest experience information and prevents unintended overwrites.
33
31
  * @param - Experience ID.
34
- * @returns Updated Experience.
32
+ * @returns Updated experience.
35
33
  */
36
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>>;
37
35
  }
38
36
  declare function queryExperiences$1(httpClient: HttpClient): QueryExperiencesSignature;
39
37
  interface QueryExperiencesSignature {
40
38
  /**
41
- * Queries Experiences.
39
+ * Retrieves a list of experiences using the specified paging, filtering, and sorting.
40
+ *
41
+ * For a detailed list of supported operations, see the [Supported Filters and Sorting](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/wix-restaurants-new/reservations/experiences/sorting-and-filtering) article.
42
+ * To learn how to query reservation locations, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
42
43
  */
43
44
  (): ExperiencesQueryBuilder;
44
45
  }
46
+ declare function searchExperiences$1(httpClient: HttpClient): SearchExperiencesSignature;
47
+ interface SearchExperiencesSignature {
48
+ /**
49
+ * Use this method to search the fields of the experiences on a site for a given expression.
50
+ *
51
+ * You can also use this method to perform data aggregations on a site's experience fields.
52
+ * @param - Search query.
53
+ */
54
+ (search: ExperienceSearch): Promise<NonNullablePaths<SearchExperiencesResponse, `experiences` | `experiences.${number}.configuration.paymentPolicy.paymentPolicyType` | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`, 6>>;
55
+ }
45
56
  declare function bulkUpdateExperienceTags$1(httpClient: HttpClient): BulkUpdateExperienceTagsSignature;
46
57
  interface BulkUpdateExperienceTagsSignature {
47
58
  /**
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.
59
+ * Synchronously updates [tags](https://dev.wix.com/docs/api-reference/business-management/tags/introduction) on multiple experiences by experience IDs. A tag that appears in both assign and unassign lists is assigned.
60
+ * @param - List of experience IDs to update tags for.
51
61
  */
52
62
  (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
63
  __applicationErrorsType?: BulkUpdateExperienceTagsApplicationErrors;
@@ -56,10 +66,8 @@ interface BulkUpdateExperienceTagsSignature {
56
66
  declare function bulkUpdateExperienceTagsByFilter$1(httpClient: HttpClient): BulkUpdateExperienceTagsByFilterSignature;
57
67
  interface BulkUpdateExperienceTagsByFilterSignature {
58
68
  /**
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
69
+ * Asynchronously updates [tags](https://dev.wix.com/docs/api-reference/business-management/tags/introduction) on multiple experiences using filter criteria. An empty filter updates all experiences. A tag that appears in both assign and unassign lists is assigned.
70
+ * @param - Filter criteria to select experiences for tag updates.
63
71
  */
64
72
  (filter: Record<string, any>, options?: BulkUpdateExperienceTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateExperienceTagsByFilterResponse, `jobId`, 2> & {
65
73
  __applicationErrorsType?: BulkUpdateExperienceTagsByFilterApplicationErrors;
@@ -73,6 +81,7 @@ declare const createExperience: MaybeContext<BuildRESTFunction<typeof createExpe
73
81
  declare const getExperience: MaybeContext<BuildRESTFunction<typeof getExperience$1> & typeof getExperience$1>;
74
82
  declare const updateExperience: MaybeContext<BuildRESTFunction<typeof updateExperience$1> & typeof updateExperience$1>;
75
83
  declare const queryExperiences: MaybeContext<BuildRESTFunction<typeof queryExperiences$1> & typeof queryExperiences$1>;
84
+ declare const searchExperiences: MaybeContext<BuildRESTFunction<typeof searchExperiences$1> & typeof searchExperiences$1>;
76
85
  declare const bulkUpdateExperienceTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateExperienceTags$1> & typeof bulkUpdateExperienceTags$1>;
77
86
  declare const bulkUpdateExperienceTagsByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdateExperienceTagsByFilter$1> & typeof bulkUpdateExperienceTagsByFilter$1>;
78
87
  /** */
@@ -82,4 +91,4 @@ declare const onExperienceTagsModified: BuildEventDefinition<typeof onExperience
82
91
  /** */
83
92
  declare const onExperienceUpdated: BuildEventDefinition<typeof onExperienceUpdated$1> & typeof onExperienceUpdated$1;
84
93
 
85
- export { BulkUpdateExperienceTagsApplicationErrors, BulkUpdateExperienceTagsByFilterApplicationErrors, BulkUpdateExperienceTagsByFilterOptions, BulkUpdateExperienceTagsByFilterResponse, BulkUpdateExperienceTagsOptions, BulkUpdateExperienceTagsResponse, Experience, ExperienceCreatedEnvelope, ExperienceTagsModifiedEnvelope, ExperienceUpdatedEnvelope, ExperiencesQueryBuilder, UpdateExperience, bulkUpdateExperienceTags, bulkUpdateExperienceTagsByFilter, createExperience, getExperience, onExperienceCreated, onExperienceTagsModified, onExperienceUpdated, queryExperiences, updateExperience };
94
+ export { BulkUpdateExperienceTagsApplicationErrors, BulkUpdateExperienceTagsByFilterApplicationErrors, BulkUpdateExperienceTagsByFilterOptions, BulkUpdateExperienceTagsByFilterResponse, BulkUpdateExperienceTagsOptions, BulkUpdateExperienceTagsResponse, Experience, ExperienceCreatedEnvelope, ExperienceSearch, ExperienceTagsModifiedEnvelope, ExperienceUpdatedEnvelope, ExperiencesQueryBuilder, SearchExperiencesResponse, UpdateExperience, bulkUpdateExperienceTags, bulkUpdateExperienceTagsByFilter, createExperience, getExperience, onExperienceCreated, onExperienceTagsModified, onExperienceUpdated, queryExperiences, searchExperiences, updateExperience };
@@ -90,6 +90,7 @@ __export(index_exports, {
90
90
  onExperienceTagsModified: () => onExperienceTagsModified2,
91
91
  onExperienceUpdated: () => onExperienceUpdated2,
92
92
  queryExperiences: () => queryExperiences4,
93
+ searchExperiences: () => searchExperiences4,
93
94
  updateExperience: () => updateExperience4
94
95
  });
95
96
  module.exports = __toCommonJS(index_exports);
@@ -736,6 +737,145 @@ function queryExperiences(payload) {
736
737
  }
737
738
  return __queryExperiences;
738
739
  }
740
+ function searchExperiences(payload) {
741
+ function __searchExperiences({ host }) {
742
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
743
+ {
744
+ transformFn: import_float.transformSDKFloatToRESTFloat,
745
+ paths: [
746
+ { path: "search.aggregations.range.buckets.from" },
747
+ { path: "search.aggregations.range.buckets.to" },
748
+ {
749
+ path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
750
+ },
751
+ {
752
+ path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
753
+ }
754
+ ]
755
+ }
756
+ ]);
757
+ const metadata = {
758
+ entityFqdn: "wix.table_reservations.v1.experience",
759
+ method: "GET",
760
+ methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.SearchExperiences",
761
+ packageName: PACKAGE_NAME,
762
+ migrationOptions: {
763
+ optInTransformResponse: true
764
+ },
765
+ url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
766
+ protoPath: "/v1/experiences/search",
767
+ data: serializedData,
768
+ host
769
+ }),
770
+ params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
771
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
772
+ {
773
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
774
+ paths: [
775
+ { path: "experiences.createdDate" },
776
+ { path: "experiences.updatedDate" },
777
+ {
778
+ path: "experiences.configuration.displayInfo.richContent.metadata.createdTimestamp"
779
+ },
780
+ {
781
+ path: "experiences.configuration.displayInfo.richContent.metadata.updatedTimestamp"
782
+ }
783
+ ]
784
+ },
785
+ {
786
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
787
+ paths: [
788
+ {
789
+ path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
790
+ },
791
+ {
792
+ path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
793
+ },
794
+ {
795
+ path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
796
+ },
797
+ {
798
+ path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
799
+ },
800
+ {
801
+ path: "experiences.configuration.displayInfo.richContent.nodes.imageData.image.duration"
802
+ },
803
+ {
804
+ path: "experiences.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
805
+ },
806
+ {
807
+ path: "experiences.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
808
+ },
809
+ {
810
+ path: "experiences.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
811
+ },
812
+ {
813
+ path: "experiences.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
814
+ },
815
+ {
816
+ path: "experiences.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
817
+ },
818
+ {
819
+ path: "experiences.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
820
+ },
821
+ {
822
+ path: "experiences.configuration.displayInfo.richContent.nodes.videoData.video.duration"
823
+ },
824
+ {
825
+ path: "experiences.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
826
+ },
827
+ {
828
+ path: "experiences.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
829
+ },
830
+ {
831
+ path: "experiences.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
832
+ },
833
+ {
834
+ path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
835
+ },
836
+ {
837
+ path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
838
+ },
839
+ { path: "aggregationData.results.ranges.results.from" },
840
+ { path: "aggregationData.results.ranges.results.to" },
841
+ {
842
+ path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
843
+ },
844
+ {
845
+ path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
846
+ },
847
+ {
848
+ path: "aggregationData.results.nested.results.results.*.range.from"
849
+ },
850
+ {
851
+ path: "aggregationData.results.nested.results.results.*.range.to"
852
+ },
853
+ { path: "aggregationData.results.scalar.value" },
854
+ {
855
+ path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
856
+ },
857
+ {
858
+ path: "aggregationData.results.nested.results.results.*.scalar.value"
859
+ }
860
+ ]
861
+ }
862
+ ]),
863
+ fallback: [
864
+ {
865
+ method: "POST",
866
+ url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
867
+ protoPath: "/v1/experiences/search",
868
+ data: serializedData,
869
+ host
870
+ }),
871
+ data: serializedData
872
+ }
873
+ ]
874
+ };
875
+ return metadata;
876
+ }
877
+ return __searchExperiences;
878
+ }
739
879
  function bulkUpdateExperienceTags(payload) {
740
880
  function __bulkUpdateExperienceTags({ host }) {
741
881
  const metadata = {
@@ -1453,6 +1593,48 @@ function queryExperiences2() {
1453
1593
  transformationPaths: {}
1454
1594
  });
1455
1595
  }
1596
+ async function searchExperiences2(search) {
1597
+ const { httpClient, sideEffects } = arguments[1];
1598
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ search }, []);
1599
+ const reqOpts = searchExperiences(payload);
1600
+ sideEffects?.onSiteCall?.();
1601
+ try {
1602
+ const result = await httpClient.request(reqOpts);
1603
+ sideEffects?.onSuccess?.(result);
1604
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1605
+ (0, import_transform_paths2.transformPaths)(result.data, [
1606
+ {
1607
+ transformFn: import_image2.transformRESTImageToSDKImage,
1608
+ paths: [{ path: "experiences.configuration.displayInfo.coverImage" }]
1609
+ },
1610
+ {
1611
+ transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
1612
+ paths: [
1613
+ {
1614
+ path: "experiences.configuration.reservationForm.privacyPolicy.url"
1615
+ },
1616
+ {
1617
+ path: "experiences.configuration.reservationForm.termsAndConditions.url"
1618
+ }
1619
+ ]
1620
+ }
1621
+ ]),
1622
+ ["experiences.configuration.displayInfo.richContent"]
1623
+ );
1624
+ } catch (err) {
1625
+ const transformedError = (0, import_transform_error.transformError)(
1626
+ err,
1627
+ {
1628
+ spreadPathsToArguments: {},
1629
+ explicitPathsToArguments: { search: "$[0]" },
1630
+ singleArgumentUnchanged: false
1631
+ },
1632
+ ["search"]
1633
+ );
1634
+ sideEffects?.onError?.(err);
1635
+ throw transformedError;
1636
+ }
1637
+ }
1456
1638
  async function bulkUpdateExperienceTags2(experienceIds, options) {
1457
1639
  const { httpClient, sideEffects } = arguments[2];
1458
1640
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
@@ -1555,6 +1737,13 @@ function queryExperiences3(httpClient) {
1555
1737
  { httpClient }
1556
1738
  );
1557
1739
  }
1740
+ function searchExperiences3(httpClient) {
1741
+ return (search) => searchExperiences2(
1742
+ search,
1743
+ // @ts-ignore
1744
+ { httpClient }
1745
+ );
1746
+ }
1558
1747
  function bulkUpdateExperienceTags3(httpClient) {
1559
1748
  return (experienceIds, options) => bulkUpdateExperienceTags2(
1560
1749
  experienceIds,
@@ -1856,6 +2045,7 @@ var createExperience4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModul
1856
2045
  var getExperience4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getExperience3);
1857
2046
  var updateExperience4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateExperience3);
1858
2047
  var queryExperiences4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryExperiences3);
2048
+ var searchExperiences4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchExperiences3);
1859
2049
  var bulkUpdateExperienceTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateExperienceTags3);
1860
2050
  var bulkUpdateExperienceTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateExperienceTagsByFilter3);
1861
2051
  var onExperienceCreated2 = (0, import_event_definition_modules.createEventModule)(
@@ -1939,6 +2129,7 @@ var onExperienceUpdated2 = (0, import_event_definition_modules.createEventModule
1939
2129
  onExperienceTagsModified,
1940
2130
  onExperienceUpdated,
1941
2131
  queryExperiences,
2132
+ searchExperiences,
1942
2133
  updateExperience
1943
2134
  });
1944
2135
  //# sourceMappingURL=index.js.map