@wix/auto_sdk_bookings_bookings 1.0.14 → 1.0.16
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/{es/src/bookings-v2-booking-bookings.types.d.ts → bookings-v2-booking-bookings.universal-r9r1xC1y.d.mts} +608 -411
- package/build/{cjs/src/bookings-v2-booking-bookings.types.d.ts → bookings-v2-booking-bookings.universal-r9r1xC1y.d.ts} +608 -411
- package/build/{es/src/bookings-v2-booking-bookings.public.d.ts → index.d.mts} +99 -55
- package/build/{internal/cjs/src/bookings-v2-booking-bookings.public.d.ts → index.d.ts} +99 -55
- package/build/index.js +2387 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +2323 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{cjs/src/bookings-v2-booking-bookings.types.d.ts → bookings-v2-booking-bookings.universal-r9r1xC1y.d.mts} +608 -411
- package/build/internal/{es/src/bookings-v2-booking-bookings.types.d.ts → bookings-v2-booking-bookings.universal-r9r1xC1y.d.ts} +608 -411
- package/build/{cjs/src/bookings-v2-booking-bookings.public.d.ts → internal/index.d.mts} +99 -55
- package/build/internal/{es/src/bookings-v2-booking-bookings.public.d.ts → index.d.ts} +99 -55
- package/build/internal/index.js +2387 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +2323 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +1652 -0
- package/build/internal/meta.d.ts +1652 -0
- package/build/internal/meta.js +1522 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +1475 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +1652 -0
- package/build/meta.d.ts +1652 -0
- package/build/meta.js +1522 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +1475 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/bookings-v2-booking-bookings.context.d.ts +0 -61
- package/build/cjs/src/bookings-v2-booking-bookings.context.js +0 -77
- package/build/cjs/src/bookings-v2-booking-bookings.context.js.map +0 -1
- package/build/cjs/src/bookings-v2-booking-bookings.http.d.ts +0 -510
- package/build/cjs/src/bookings-v2-booking-bookings.http.js +0 -1579
- package/build/cjs/src/bookings-v2-booking-bookings.http.js.map +0 -1
- package/build/cjs/src/bookings-v2-booking-bookings.meta.d.ts +0 -61
- package/build/cjs/src/bookings-v2-booking-bookings.meta.js +0 -427
- package/build/cjs/src/bookings-v2-booking-bookings.meta.js.map +0 -1
- package/build/cjs/src/bookings-v2-booking-bookings.public.js +0 -313
- package/build/cjs/src/bookings-v2-booking-bookings.public.js.map +0 -1
- package/build/cjs/src/bookings-v2-booking-bookings.types.js +0 -165
- package/build/cjs/src/bookings-v2-booking-bookings.types.js.map +0 -1
- package/build/cjs/src/bookings-v2-booking-bookings.universal.d.ts +0 -4540
- package/build/cjs/src/bookings-v2-booking-bookings.universal.js +0 -1692
- package/build/cjs/src/bookings-v2-booking-bookings.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/bookings-v2-booking-bookings.context.d.ts +0 -61
- package/build/es/src/bookings-v2-booking-bookings.context.js +0 -61
- package/build/es/src/bookings-v2-booking-bookings.context.js.map +0 -1
- package/build/es/src/bookings-v2-booking-bookings.http.d.ts +0 -510
- package/build/es/src/bookings-v2-booking-bookings.http.js +0 -1555
- package/build/es/src/bookings-v2-booking-bookings.http.js.map +0 -1
- package/build/es/src/bookings-v2-booking-bookings.meta.d.ts +0 -61
- package/build/es/src/bookings-v2-booking-bookings.meta.js +0 -380
- package/build/es/src/bookings-v2-booking-bookings.meta.js.map +0 -1
- package/build/es/src/bookings-v2-booking-bookings.public.js +0 -276
- package/build/es/src/bookings-v2-booking-bookings.public.js.map +0 -1
- package/build/es/src/bookings-v2-booking-bookings.types.js +0 -162
- package/build/es/src/bookings-v2-booking-bookings.types.js.map +0 -1
- package/build/es/src/bookings-v2-booking-bookings.universal.d.ts +0 -4540
- package/build/es/src/bookings-v2-booking-bookings.universal.js +0 -1645
- package/build/es/src/bookings-v2-booking-bookings.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.context.d.ts +0 -61
- package/build/internal/cjs/src/bookings-v2-booking-bookings.context.js +0 -77
- package/build/internal/cjs/src/bookings-v2-booking-bookings.context.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.http.d.ts +0 -510
- package/build/internal/cjs/src/bookings-v2-booking-bookings.http.js +0 -1579
- package/build/internal/cjs/src/bookings-v2-booking-bookings.http.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.d.ts +0 -61
- package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.js +0 -427
- package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.public.js +0 -313
- package/build/internal/cjs/src/bookings-v2-booking-bookings.public.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.types.js +0 -165
- package/build/internal/cjs/src/bookings-v2-booking-bookings.types.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.d.ts +0 -4540
- package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.js +0 -1692
- package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.context.d.ts +0 -61
- package/build/internal/es/src/bookings-v2-booking-bookings.context.js +0 -61
- package/build/internal/es/src/bookings-v2-booking-bookings.context.js.map +0 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.http.d.ts +0 -510
- package/build/internal/es/src/bookings-v2-booking-bookings.http.js +0 -1555
- package/build/internal/es/src/bookings-v2-booking-bookings.http.js.map +0 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.meta.d.ts +0 -61
- package/build/internal/es/src/bookings-v2-booking-bookings.meta.js +0 -380
- package/build/internal/es/src/bookings-v2-booking-bookings.meta.js.map +0 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.public.js +0 -276
- package/build/internal/es/src/bookings-v2-booking-bookings.public.js.map +0 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.types.js +0 -162
- package/build/internal/es/src/bookings-v2-booking-bookings.types.js.map +0 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.universal.d.ts +0 -4540
- package/build/internal/es/src/bookings-v2-booking-bookings.universal.js +0 -1645
- package/build/internal/es/src/bookings-v2-booking-bookings.universal.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { C as ConfirmOrDeclineBookingOptions, a as ConfirmOrDeclineBookingResponse, B as BulkConfirmOrDeclineBookingRequestBookingDetails, b as BulkConfirmOrDeclineBookingOptions, c as BulkConfirmOrDeclineBookingResponse, d as Booking, e as CreateBookingOptions, f as CreateBookingResponse, g as CreateBookingInfo, h as BulkCreateBookingOptions, i as BulkCreateBookingResponse, V as V2Slot, R as RescheduleBookingOptions, j as RescheduleBookingResponse, k as ConfirmBookingOptions, l as ConfirmBookingResponse, U as UpdateExtendedFieldsOptions, m as UpdateExtendedFieldsResponse, D as DeclineBookingOptions, n as DeclineBookingResponse, o as CancelBookingOptions, p as CancelBookingResponse, q as UpdateNumberOfParticipantsOptions, r as UpdateNumberOfParticipantsResponse, s as CreateMultiServiceBookingOptions, t as CreateMultiServiceBookingResponse, u as RescheduleBookingInfo, v as RescheduleMultiServiceBookingOptions, w as RescheduleMultiServiceBookingResponse, G as GetMultiServiceBookingAvailabilityResponse, x as CancelMultiServiceBookingOptions, y as CancelMultiServiceBookingResponse, M as MarkMultiServiceBookingAsPendingOptions, z as MarkMultiServiceBookingAsPendingResponse, A as ConfirmMultiServiceBookingOptions, E as ConfirmMultiServiceBookingResponse, F as DeclineMultiServiceBookingOptions, H as DeclineMultiServiceBookingResponse, I as BulkGetMultiServiceBookingAllowedActionsResponse, J as MultiServiceBooking, K as AddBookingsToMultiServiceBookingOptions, L as AddBookingsToMultiServiceBookingResponse, N as RemoveBookingsFromMultiServiceBookingOptions, O as RemoveBookingsFromMultiServiceBookingResponse } from './bookings-v2-booking-bookings.universal-r9r1xC1y.js';
|
|
3
|
+
export { aE as ActionEvent, Z as Actor, cE as AddBookingsToMultiServiceBookingRequest, ab as Address, ae as AddressLocation, ac as AddressStreetOneOf, c4 as AllowedActions, b5 as ApplicationError, cb as AvailableResources, cH as BaseEventMetadata, at as BookedAddOn, a4 as BookedEntity, a5 as BookedEntityItemOneOf, a7 as BookedResource, a9 as BookedSchedule, a6 as BookedSlot, bY as BookingCanceled, cJ as BookingCanceledEnvelope, b7 as BookingChanged, bL as BookingConfirmed, cK as BookingConfirmedEnvelope, cL as BookingCreatedEnvelope, bV as BookingDeclined, cM as BookingDeclinedEnvelope, bw as BookingDetails, au as BookingFormFilled, cF as BookingIdAndRevision, cx as BookingInfo, ci as BookingMarkedAsPending, cN as BookingNumberOfParticipantsUpdatedEnvelope, a3 as BookingParticipantsInfoOneOf, ca as BookingPolicySettings, c9 as BookingPolicyViolations, bn as BookingRescheduled, cO as BookingRescheduledEnvelope, bo as BookingRescheduledPreviousParticipantsInfoOneOf, cq as BookingResult, ah as BookingSource, T as BookingStatus, cP as BookingUpdatedEnvelope, b6 as BulkActionMetadata, b3 as BulkBookingResult, c1 as BulkCalculateAllowedActionsRequest, c2 as BulkCalculateAllowedActionsResponse, c3 as BulkCalculateAllowedActionsResult, b2 as BulkConfirmOrDeclineBookingRequest, bh as BulkCreateBookingRequest, cA as BulkGetMultiServiceBookingAllowedActionsRequest, br as BulkRescheduleBookingRequest, bs as BulkRescheduleBookingRequestBooking, bu as BulkRescheduleBookingResponse, bv as BulkUpdateBookedScheduleRequest, bx as BulkUpdateBookedScheduleResponse, be as BulkUpdateBookingRequest, bg as BulkUpdateBookingResponse, bX as CancelBookingFlowControlSettings, bW as CancelBookingRequest, aQ as CancelBookingRequestFlowControlSettings, cv as CancelMultiServiceBookingRequest, cm as Clash, aj as CommonIdentificationData, ak as CommonIdentificationDataIdOneOf, bK as ConfirmBookingFlowControlSettings, bJ as ConfirmBookingRequest, cy as ConfirmMultiServiceBookingRequest, b1 as ConfirmOrDeclineBookingRequest, bH as ConfirmRequest, bI as ConfirmResponse, bM as ConsistentQueryBookingsRequest, bN as ConsistentQueryBookingsResponse, aa as ContactDetails, cn as CountBookingsRequest, co as CountBookingsResponse, b9 as CreateBookingFlowControlSettings, b8 as CreateBookingRequest, aN as CreateBookingRequestFlowControlSettings, cp as CreateMultiServiceBookingRequest, bD as CursorPaging, bG as Cursors, ag as CustomFormField, bU as DeclineBookingFlowControlSettings, bT as DeclineBookingRequest, cz as DeclineMultiServiceBookingRequest, ay as DomainEvent, az as DomainEventBodyOneOf, ar as Duration, aA as EntityCreatedEvent, aD as EntityDeletedEvent, aC as EntityUpdatedEvent, cI as EventMetadata, am as ExtendedFields, al as FlowControlSettings, ct as GetMultiServiceBookingAvailabilityRequest, cu as GetMultiServiceBookingAvailabilityResponseBookingInfo, cB as GetMultiServiceBookingRequest, cC as GetMultiServiceBookingResponse, cc as GetScheduleAvailabilityRequest, cd as GetScheduleAvailabilityResponse, c5 as GetSlotAvailabilityRequest, c6 as GetSlotAvailabilityResponse, bp as IdentificationData, bq as IdentificationDataIdOneOf, _ as IdentificationDataIdentityType, a1 as IdentityType, b4 as ItemMetadata, bc as LegacyCreateBookingRequest, bd as LegacyCreateBookingResponse, a8 as Location, a0 as LocationLocationType, Q as LocationType, cg as MarkBookingAsPendingFlowControlSettings, cf as MarkBookingAsPendingRequest, ch as MarkBookingAsPendingResponse, cw as MarkMultiServiceBookingAsPendingRequest, bf as MaskedBooking, aF as MessageEnvelope, cj as MigrationCheckIfClashesWithBlockedTimeRequest, cl as MigrationCheckIfClashesWithBlockedTimeResponse, ck as MsidAndBookingId, as as MultiServiceBookingInfo, cD as MultiServiceBookingMetadata, P as MultiServiceBookingType, b$ as NumberOfParticipantsUpdated, c0 as NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf, bC as Paging, bF as PagingMetadataV2, an as ParticipantChoices, ai as ParticipantNotification, W as PaymentStatus, Y as Platform, by as QueryBookingsRequest, bE as QueryBookingsResponse, bz as QueryV2, bA as QueryV2PagingMethodOneOf, cG as RemoveBookingsFromMultiServiceBookingRequest, bm as RescheduleBookingFlowControlSettings, cs as RescheduleBookingInfoParticipantsInfoOneOf, cQ as RescheduleBookingOptionsParticipantsInfoOneOf, bi as RescheduleBookingRequest, aU as RescheduleBookingRequestFlowControlSettings, bj as RescheduleBookingRequestParticipantsInfoOneOf, cr as RescheduleMultiServiceBookingRequest, aB as RestoreInfo, ce as ScheduleAvailability, X as SelectedPaymentOption, ap as ServiceChoice, aq as ServiceChoiceChoiceOneOf, ao as ServiceChoices, av as SetBookingFormAndSubmissionIdRequest, aw as SetBookingFormAndSubmissionIdRequestCreatedByOneOf, ax as SetBookingFormAndSubmissionIdResponse, bO as SetBookingSessionIdRequest, bP as SetBookingSessionIdResponse, bQ as SetBookingSubmissionIdRequest, bR as SetBookingSubmissionIdResponse, aL as Slot, c7 as SlotAvailability, bt as SlotBookings, bl as SlotLocation, aM as SlotResource, bk as SlotSlotResource, a2 as SortOrder, bB as Sorting, ad as StreetAddress, af as Subdivision, ba as UpdateBookingRequest, bb as UpdateBookingResponse, bS as UpdateExtendedFieldsRequest, cR as UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf, bZ as UpdateNumberOfParticipantsRequest, b_ as UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, aP as V2CancelBookingRequest, aR as V2CancelBookingResponse, aW as V2ConfirmBookingRequest, aX as V2ConfirmBookingResponse, aI as V2CreateBookingRequest, aJ as V2CreateBookingRequestBookableItemOneOf, aK as V2CreateBookingRequestParticipantsInfoOneOf, aO as V2CreateBookingResponse, aY as V2DeclineBookingRequest, aZ as V2DeclineBookingResponse, aS as V2RescheduleBookingRequest, aT as V2RescheduleBookingRequestParticipantsInfoOneOf, aV as V2RescheduleBookingResponse, a_ as V2UpdateNumberOfParticipantsRequest, a$ as V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, b0 as V2UpdateNumberOfParticipantsResponse, S as ValueType, c8 as WaitingList, $ as WebhookIdentityType, aG as WebhooksIdentificationData, aH as WebhooksIdentificationDataIdOneOf } from './bookings-v2-booking-bookings.universal-r9r1xC1y.js';
|
|
4
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
5
|
+
|
|
6
|
+
declare function confirmOrDeclineBooking$1(httpClient: HttpClient): ConfirmOrDeclineBookingSignature;
|
|
7
7
|
interface ConfirmOrDeclineBookingSignature {
|
|
8
8
|
/**
|
|
9
9
|
* Updates the booking `status` to `CONFIRMED`, `PENDING`, or `DECLINED` based
|
|
@@ -48,9 +48,9 @@ interface ConfirmOrDeclineBookingSignature {
|
|
|
48
48
|
* immediately.
|
|
49
49
|
* @param - ID of the booking to confirm or decline.
|
|
50
50
|
*/
|
|
51
|
-
(bookingId: string, options?: ConfirmOrDeclineBookingOptions | undefined): Promise<ConfirmOrDeclineBookingResponse
|
|
51
|
+
(bookingId: string, options?: ConfirmOrDeclineBookingOptions | undefined): Promise<ConfirmOrDeclineBookingResponse>;
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
declare function bulkConfirmOrDeclineBooking$1(httpClient: HttpClient): BulkConfirmOrDeclineBookingSignature;
|
|
54
54
|
interface BulkConfirmOrDeclineBookingSignature {
|
|
55
55
|
/**
|
|
56
56
|
* Confirms or declines up to 300 bookings.
|
|
@@ -61,9 +61,9 @@ interface BulkConfirmOrDeclineBookingSignature {
|
|
|
61
61
|
* for details about when a booking is confirmed or declined.
|
|
62
62
|
* @param - Bookings to confirm or decline.
|
|
63
63
|
*/
|
|
64
|
-
(details: BulkConfirmOrDeclineBookingRequestBookingDetails[], options?: BulkConfirmOrDeclineBookingOptions | undefined): Promise<BulkConfirmOrDeclineBookingResponse
|
|
64
|
+
(details: BulkConfirmOrDeclineBookingRequestBookingDetails[], options?: BulkConfirmOrDeclineBookingOptions | undefined): Promise<BulkConfirmOrDeclineBookingResponse>;
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
declare function createBooking$1(httpClient: HttpClient): CreateBookingSignature;
|
|
67
67
|
interface CreateBookingSignature {
|
|
68
68
|
/**
|
|
69
69
|
* Creates a booking.
|
|
@@ -182,9 +182,9 @@ interface CreateBookingSignature {
|
|
|
182
182
|
* them intentionally and securely.
|
|
183
183
|
* @param - The booking to create.
|
|
184
184
|
*/
|
|
185
|
-
(booking: Booking, options?: CreateBookingOptions | undefined): Promise<CreateBookingResponse
|
|
185
|
+
(booking: Booking, options?: CreateBookingOptions | undefined): Promise<CreateBookingResponse>;
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
declare function bulkCreateBooking$1(httpClient: HttpClient): BulkCreateBookingSignature;
|
|
188
188
|
interface BulkCreateBookingSignature {
|
|
189
189
|
/**
|
|
190
190
|
* Creates up to 8 bookings.
|
|
@@ -204,9 +204,9 @@ interface BulkCreateBookingSignature {
|
|
|
204
204
|
*
|
|
205
205
|
* Max: 8 bookings
|
|
206
206
|
*/
|
|
207
|
-
(createBookingsInfo: CreateBookingInfo[], options?: BulkCreateBookingOptions | undefined): Promise<BulkCreateBookingResponse
|
|
207
|
+
(createBookingsInfo: CreateBookingInfo[], options?: BulkCreateBookingOptions | undefined): Promise<BulkCreateBookingResponse>;
|
|
208
208
|
}
|
|
209
|
-
|
|
209
|
+
declare function rescheduleBooking$1(httpClient: HttpClient): RescheduleBookingSignature;
|
|
210
210
|
interface RescheduleBookingSignature {
|
|
211
211
|
/**
|
|
212
212
|
* Reschedules an appointment booking to a different slot or a class booking to
|
|
@@ -271,9 +271,9 @@ interface RescheduleBookingSignature {
|
|
|
271
271
|
* @param - New slot of the booking.
|
|
272
272
|
* @param - An object representing the available options for rescheduling a booking.
|
|
273
273
|
*/
|
|
274
|
-
(bookingId: string, slot: V2Slot, options?: RescheduleBookingOptions | undefined): Promise<RescheduleBookingResponse
|
|
274
|
+
(bookingId: string, slot: V2Slot, options?: RescheduleBookingOptions | undefined): Promise<RescheduleBookingResponse>;
|
|
275
275
|
}
|
|
276
|
-
|
|
276
|
+
declare function confirmBooking$1(httpClient: HttpClient): ConfirmBookingSignature;
|
|
277
277
|
interface ConfirmBookingSignature {
|
|
278
278
|
/**
|
|
279
279
|
* Updates the booking status to `CONFIRMED` and updates the relevant session's
|
|
@@ -335,9 +335,9 @@ interface ConfirmBookingSignature {
|
|
|
335
335
|
* updating the booking.
|
|
336
336
|
* @param - An object representing the available options for canceling a booking.
|
|
337
337
|
*/
|
|
338
|
-
(bookingId: string, revision: string
|
|
338
|
+
(bookingId: string, revision: string, options?: ConfirmBookingOptions | undefined): Promise<ConfirmBookingResponse>;
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature;
|
|
341
341
|
interface UpdateExtendedFieldsSignature {
|
|
342
342
|
/**
|
|
343
343
|
* Updates the extended fields for a booking.
|
|
@@ -351,9 +351,9 @@ interface UpdateExtendedFieldsSignature {
|
|
|
351
351
|
* @param - [Namespace](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-reading-and-writing-schema-plugin-fields#namespaces) of the app for which to update extended fields.
|
|
352
352
|
* @param - Options for updating the booking's extended fields.
|
|
353
353
|
*/
|
|
354
|
-
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse
|
|
354
|
+
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse>;
|
|
355
355
|
}
|
|
356
|
-
|
|
356
|
+
declare function declineBooking$1(httpClient: HttpClient): DeclineBookingSignature;
|
|
357
357
|
interface DeclineBookingSignature {
|
|
358
358
|
/**
|
|
359
359
|
* Updates the booking status to `DECLINED` and updates the relevant session's
|
|
@@ -398,9 +398,9 @@ interface DeclineBookingSignature {
|
|
|
398
398
|
* declining the booking.
|
|
399
399
|
* @param - An object representing the available options for declining a booking.
|
|
400
400
|
*/
|
|
401
|
-
(bookingId: string, revision: string
|
|
401
|
+
(bookingId: string, revision: string, options?: DeclineBookingOptions | undefined): Promise<DeclineBookingResponse>;
|
|
402
402
|
}
|
|
403
|
-
|
|
403
|
+
declare function cancelBooking$1(httpClient: HttpClient): CancelBookingSignature;
|
|
404
404
|
interface CancelBookingSignature {
|
|
405
405
|
/**
|
|
406
406
|
* Updates the booking status to `CANCELED`.
|
|
@@ -451,9 +451,9 @@ interface CancelBookingSignature {
|
|
|
451
451
|
* @param - ID of the booking to cancel.
|
|
452
452
|
* @param - An object representing the available options for canceling a booking.
|
|
453
453
|
*/
|
|
454
|
-
(bookingId: string, options?: CancelBookingOptions | undefined): Promise<CancelBookingResponse
|
|
454
|
+
(bookingId: string, options?: CancelBookingOptions | undefined): Promise<CancelBookingResponse>;
|
|
455
455
|
}
|
|
456
|
-
|
|
456
|
+
declare function updateNumberOfParticipants$1(httpClient: HttpClient): UpdateNumberOfParticipantsSignature;
|
|
457
457
|
interface UpdateNumberOfParticipantsSignature {
|
|
458
458
|
/**
|
|
459
459
|
* Updates the number of participants for a class or course booking and changes
|
|
@@ -472,9 +472,9 @@ interface UpdateNumberOfParticipantsSignature {
|
|
|
472
472
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)).
|
|
473
473
|
* @param - ID of the booking to update the number of participants for.
|
|
474
474
|
*/
|
|
475
|
-
(bookingId: string, options?: UpdateNumberOfParticipantsOptions | undefined): Promise<UpdateNumberOfParticipantsResponse
|
|
475
|
+
(bookingId: string, options?: UpdateNumberOfParticipantsOptions | undefined): Promise<UpdateNumberOfParticipantsResponse>;
|
|
476
476
|
}
|
|
477
|
-
|
|
477
|
+
declare function createMultiServiceBooking$1(httpClient: HttpClient): CreateMultiServiceBookingSignature;
|
|
478
478
|
interface CreateMultiServiceBookingSignature {
|
|
479
479
|
/**
|
|
480
480
|
* Creates a multi-service booking.
|
|
@@ -483,9 +483,9 @@ interface CreateMultiServiceBookingSignature {
|
|
|
483
483
|
* See Create Booking for more information.
|
|
484
484
|
* @param - Single-service bookings to combine in a multi-service booking.
|
|
485
485
|
*/
|
|
486
|
-
(bookings: Booking[], options?: CreateMultiServiceBookingOptions | undefined): Promise<CreateMultiServiceBookingResponse
|
|
486
|
+
(bookings: Booking[], options?: CreateMultiServiceBookingOptions | undefined): Promise<CreateMultiServiceBookingResponse>;
|
|
487
487
|
}
|
|
488
|
-
|
|
488
|
+
declare function rescheduleMultiServiceBooking$1(httpClient: HttpClient): RescheduleMultiServiceBookingSignature;
|
|
489
489
|
interface RescheduleMultiServiceBookingSignature {
|
|
490
490
|
/**
|
|
491
491
|
* Reschedules a multi-service booking.
|
|
@@ -499,9 +499,9 @@ interface RescheduleMultiServiceBookingSignature {
|
|
|
499
499
|
* @param - ID of the multi service booking to reschedule.
|
|
500
500
|
* @param - Information about the single-service bookings to reschedule.
|
|
501
501
|
*/
|
|
502
|
-
(multiServiceBookingId: string
|
|
502
|
+
(multiServiceBookingId: string, rescheduleBookingsInfo: RescheduleBookingInfo[], options?: RescheduleMultiServiceBookingOptions | undefined): Promise<RescheduleMultiServiceBookingResponse>;
|
|
503
503
|
}
|
|
504
|
-
|
|
504
|
+
declare function getMultiServiceBookingAvailability$1(httpClient: HttpClient): GetMultiServiceBookingAvailabilitySignature;
|
|
505
505
|
interface GetMultiServiceBookingAvailabilitySignature {
|
|
506
506
|
/**
|
|
507
507
|
* Retrieves a multi-service booking's availability.
|
|
@@ -511,17 +511,17 @@ interface GetMultiServiceBookingAvailabilitySignature {
|
|
|
511
511
|
* `SEQUENTIAL_BOOKINGS` multi-service booking.
|
|
512
512
|
* @param - ID of the multi-service booking to retrieve.
|
|
513
513
|
*/
|
|
514
|
-
(multiServiceBookingId: string
|
|
514
|
+
(multiServiceBookingId: string): Promise<GetMultiServiceBookingAvailabilityResponse>;
|
|
515
515
|
}
|
|
516
|
-
|
|
516
|
+
declare function cancelMultiServiceBooking$1(httpClient: HttpClient): CancelMultiServiceBookingSignature;
|
|
517
517
|
interface CancelMultiServiceBookingSignature {
|
|
518
518
|
/**
|
|
519
519
|
* Cancels a multi-service booking and thus all its individual bookings.
|
|
520
520
|
* @param - ID of the multi-service booking to cancel.
|
|
521
521
|
*/
|
|
522
|
-
(multiServiceBookingId: string
|
|
522
|
+
(multiServiceBookingId: string, options?: CancelMultiServiceBookingOptions | undefined): Promise<CancelMultiServiceBookingResponse>;
|
|
523
523
|
}
|
|
524
|
-
|
|
524
|
+
declare function markMultiServiceBookingAsPending$1(httpClient: HttpClient): MarkMultiServiceBookingAsPendingSignature;
|
|
525
525
|
interface MarkMultiServiceBookingAsPendingSignature {
|
|
526
526
|
/**
|
|
527
527
|
* Updates the status of a multi-service booking to `PENDING`.
|
|
@@ -534,9 +534,9 @@ interface MarkMultiServiceBookingAsPendingSignature {
|
|
|
534
534
|
* See Mark Booking as Pending for more information.
|
|
535
535
|
* @param - ID of the multi-service booking to mark as `PENDING`.
|
|
536
536
|
*/
|
|
537
|
-
(multiServiceBookingId: string
|
|
537
|
+
(multiServiceBookingId: string, options?: MarkMultiServiceBookingAsPendingOptions | undefined): Promise<MarkMultiServiceBookingAsPendingResponse>;
|
|
538
538
|
}
|
|
539
|
-
|
|
539
|
+
declare function confirmMultiServiceBooking$1(httpClient: HttpClient): ConfirmMultiServiceBookingSignature;
|
|
540
540
|
interface ConfirmMultiServiceBookingSignature {
|
|
541
541
|
/**
|
|
542
542
|
* Updates the status of a multi-service booking to `CONFIRMED`.
|
|
@@ -549,9 +549,9 @@ interface ConfirmMultiServiceBookingSignature {
|
|
|
549
549
|
* See Confirm Booking for more information.
|
|
550
550
|
* @param - ID of the multi-service booking to confirm its related bookings.
|
|
551
551
|
*/
|
|
552
|
-
(multiServiceBookingId: string
|
|
552
|
+
(multiServiceBookingId: string, options?: ConfirmMultiServiceBookingOptions | undefined): Promise<ConfirmMultiServiceBookingResponse>;
|
|
553
553
|
}
|
|
554
|
-
|
|
554
|
+
declare function declineMultiServiceBooking$1(httpClient: HttpClient): DeclineMultiServiceBookingSignature;
|
|
555
555
|
interface DeclineMultiServiceBookingSignature {
|
|
556
556
|
/**
|
|
557
557
|
* Updates the status of a multi-service booking to `DECLINED`.
|
|
@@ -564,17 +564,17 @@ interface DeclineMultiServiceBookingSignature {
|
|
|
564
564
|
* See Decline Booking for more information.
|
|
565
565
|
* @param - ID of the multi service booking to decline.
|
|
566
566
|
*/
|
|
567
|
-
(multiServiceBookingId: string
|
|
567
|
+
(multiServiceBookingId: string, options?: DeclineMultiServiceBookingOptions | undefined): Promise<DeclineMultiServiceBookingResponse>;
|
|
568
568
|
}
|
|
569
|
-
|
|
569
|
+
declare function bulkGetMultiServiceBookingAllowedActions$1(httpClient: HttpClient): BulkGetMultiServiceBookingAllowedActionsSignature;
|
|
570
570
|
interface BulkGetMultiServiceBookingAllowedActionsSignature {
|
|
571
571
|
/**
|
|
572
572
|
* Retrieves the allowed actions for a list of multi-service bookings.
|
|
573
573
|
* @param - IDs of the multi-service bookings to retrieve allowed actions for.
|
|
574
574
|
*/
|
|
575
|
-
(multiServiceBookingIds: string[]
|
|
575
|
+
(multiServiceBookingIds: string[]): Promise<BulkGetMultiServiceBookingAllowedActionsResponse>;
|
|
576
576
|
}
|
|
577
|
-
|
|
577
|
+
declare function getMultiServiceBooking$1(httpClient: HttpClient): GetMultiServiceBookingSignature;
|
|
578
578
|
interface GetMultiServiceBookingSignature {
|
|
579
579
|
/**
|
|
580
580
|
* Retrieves all single-service bookings belonging to a multi-service booking.
|
|
@@ -587,9 +587,9 @@ interface GetMultiServiceBookingSignature {
|
|
|
587
587
|
* @param - ID of the multi-service booking.
|
|
588
588
|
* @returns Retrieved multi-service booking.
|
|
589
589
|
*/
|
|
590
|
-
(multiServiceBookingId: string
|
|
590
|
+
(multiServiceBookingId: string): Promise<MultiServiceBooking>;
|
|
591
591
|
}
|
|
592
|
-
|
|
592
|
+
declare function addBookingsToMultiServiceBooking$1(httpClient: HttpClient): AddBookingsToMultiServiceBookingSignature;
|
|
593
593
|
interface AddBookingsToMultiServiceBookingSignature {
|
|
594
594
|
/**
|
|
595
595
|
* Adds a list of single-service bookings to a multi-service booking.
|
|
@@ -599,9 +599,9 @@ interface AddBookingsToMultiServiceBookingSignature {
|
|
|
599
599
|
* multi-service booking.
|
|
600
600
|
* @param - ID of the multi-service booking.
|
|
601
601
|
*/
|
|
602
|
-
(multiServiceBookingId: string
|
|
602
|
+
(multiServiceBookingId: string, options?: AddBookingsToMultiServiceBookingOptions | undefined): Promise<AddBookingsToMultiServiceBookingResponse>;
|
|
603
603
|
}
|
|
604
|
-
|
|
604
|
+
declare function removeBookingsFromMultiServiceBooking$1(httpClient: HttpClient): RemoveBookingsFromMultiServiceBookingSignature;
|
|
605
605
|
interface RemoveBookingsFromMultiServiceBookingSignature {
|
|
606
606
|
/**
|
|
607
607
|
* Removes single-service bookings from a multi-service booking and returns the
|
|
@@ -616,13 +616,57 @@ interface RemoveBookingsFromMultiServiceBookingSignature {
|
|
|
616
616
|
* booking, the multi-service booking is also deleted.
|
|
617
617
|
* @param - ID of the multi-service booking.
|
|
618
618
|
*/
|
|
619
|
-
(multiServiceBookingId: string
|
|
619
|
+
(multiServiceBookingId: string, options?: RemoveBookingsFromMultiServiceBookingOptions | undefined): Promise<RemoveBookingsFromMultiServiceBookingResponse>;
|
|
620
620
|
}
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
621
|
+
|
|
622
|
+
declare const confirmOrDeclineBooking: MaybeContext<BuildRESTFunction<typeof confirmOrDeclineBooking$1> & typeof confirmOrDeclineBooking$1>;
|
|
623
|
+
declare const bulkConfirmOrDeclineBooking: MaybeContext<BuildRESTFunction<typeof bulkConfirmOrDeclineBooking$1> & typeof bulkConfirmOrDeclineBooking$1>;
|
|
624
|
+
declare const createBooking: MaybeContext<BuildRESTFunction<typeof createBooking$1> & typeof createBooking$1>;
|
|
625
|
+
declare const bulkCreateBooking: MaybeContext<BuildRESTFunction<typeof bulkCreateBooking$1> & typeof bulkCreateBooking$1>;
|
|
626
|
+
declare const rescheduleBooking: MaybeContext<BuildRESTFunction<typeof rescheduleBooking$1> & typeof rescheduleBooking$1>;
|
|
627
|
+
declare const confirmBooking: MaybeContext<BuildRESTFunction<typeof confirmBooking$1> & typeof confirmBooking$1>;
|
|
628
|
+
declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
|
|
629
|
+
declare const declineBooking: MaybeContext<BuildRESTFunction<typeof declineBooking$1> & typeof declineBooking$1>;
|
|
630
|
+
declare const cancelBooking: MaybeContext<BuildRESTFunction<typeof cancelBooking$1> & typeof cancelBooking$1>;
|
|
631
|
+
declare const updateNumberOfParticipants: MaybeContext<BuildRESTFunction<typeof updateNumberOfParticipants$1> & typeof updateNumberOfParticipants$1>;
|
|
632
|
+
declare const createMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof createMultiServiceBooking$1> & typeof createMultiServiceBooking$1>;
|
|
633
|
+
declare const rescheduleMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof rescheduleMultiServiceBooking$1> & typeof rescheduleMultiServiceBooking$1>;
|
|
634
|
+
declare const getMultiServiceBookingAvailability: MaybeContext<BuildRESTFunction<typeof getMultiServiceBookingAvailability$1> & typeof getMultiServiceBookingAvailability$1>;
|
|
635
|
+
declare const cancelMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof cancelMultiServiceBooking$1> & typeof cancelMultiServiceBooking$1>;
|
|
636
|
+
declare const markMultiServiceBookingAsPending: MaybeContext<BuildRESTFunction<typeof markMultiServiceBookingAsPending$1> & typeof markMultiServiceBookingAsPending$1>;
|
|
637
|
+
declare const confirmMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof confirmMultiServiceBooking$1> & typeof confirmMultiServiceBooking$1>;
|
|
638
|
+
declare const declineMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof declineMultiServiceBooking$1> & typeof declineMultiServiceBooking$1>;
|
|
639
|
+
declare const bulkGetMultiServiceBookingAllowedActions: MaybeContext<BuildRESTFunction<typeof bulkGetMultiServiceBookingAllowedActions$1> & typeof bulkGetMultiServiceBookingAllowedActions$1>;
|
|
640
|
+
declare const getMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof getMultiServiceBooking$1> & typeof getMultiServiceBooking$1>;
|
|
641
|
+
declare const addBookingsToMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof addBookingsToMultiServiceBooking$1> & typeof addBookingsToMultiServiceBooking$1>;
|
|
642
|
+
declare const removeBookingsFromMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof removeBookingsFromMultiServiceBooking$1> & typeof removeBookingsFromMultiServiceBooking$1>;
|
|
643
|
+
/**
|
|
644
|
+
* Triggered when a booking is canceled.
|
|
645
|
+
*/
|
|
646
|
+
declare const onBookingCanceled: ReturnType<typeof createEventModule<typeof publicOnBookingCanceled>>;
|
|
647
|
+
/**
|
|
648
|
+
* Triggered when a booking is confirmed.
|
|
649
|
+
*/
|
|
650
|
+
declare const onBookingConfirmed: ReturnType<typeof createEventModule<typeof publicOnBookingConfirmed>>;
|
|
651
|
+
/**
|
|
652
|
+
* Triggered when a booking is created.
|
|
653
|
+
*/
|
|
654
|
+
declare const onBookingCreated: ReturnType<typeof createEventModule<typeof publicOnBookingCreated>>;
|
|
655
|
+
/**
|
|
656
|
+
* Triggered when a booking is declined.
|
|
657
|
+
*/
|
|
658
|
+
declare const onBookingDeclined: ReturnType<typeof createEventModule<typeof publicOnBookingDeclined>>;
|
|
659
|
+
/**
|
|
660
|
+
* Triggered when the number of participants is updated.
|
|
661
|
+
*/
|
|
662
|
+
declare const onBookingNumberOfParticipantsUpdated: ReturnType<typeof createEventModule<typeof publicOnBookingNumberOfParticipantsUpdated>>;
|
|
663
|
+
/**
|
|
664
|
+
* Triggered when a booking is rescheduled.
|
|
665
|
+
*/
|
|
666
|
+
declare const onBookingRescheduled: ReturnType<typeof createEventModule<typeof publicOnBookingRescheduled>>;
|
|
667
|
+
/**
|
|
668
|
+
* Triggered when a booked schedule is updated.
|
|
669
|
+
*/
|
|
670
|
+
declare const onBookingUpdated: ReturnType<typeof createEventModule<typeof publicOnBookingUpdated>>;
|
|
671
|
+
|
|
672
|
+
export { AddBookingsToMultiServiceBookingOptions, AddBookingsToMultiServiceBookingResponse, Booking, BulkConfirmOrDeclineBookingOptions, BulkConfirmOrDeclineBookingRequestBookingDetails, BulkConfirmOrDeclineBookingResponse, BulkCreateBookingOptions, BulkCreateBookingResponse, BulkGetMultiServiceBookingAllowedActionsResponse, CancelBookingOptions, CancelBookingResponse, CancelMultiServiceBookingOptions, CancelMultiServiceBookingResponse, ConfirmBookingOptions, ConfirmBookingResponse, ConfirmMultiServiceBookingOptions, ConfirmMultiServiceBookingResponse, ConfirmOrDeclineBookingOptions, ConfirmOrDeclineBookingResponse, CreateBookingInfo, CreateBookingOptions, CreateBookingResponse, CreateMultiServiceBookingOptions, CreateMultiServiceBookingResponse, DeclineBookingOptions, DeclineBookingResponse, DeclineMultiServiceBookingOptions, DeclineMultiServiceBookingResponse, GetMultiServiceBookingAvailabilityResponse, MarkMultiServiceBookingAsPendingOptions, MarkMultiServiceBookingAsPendingResponse, MultiServiceBooking, RemoveBookingsFromMultiServiceBookingOptions, RemoveBookingsFromMultiServiceBookingResponse, RescheduleBookingInfo, RescheduleBookingOptions, RescheduleBookingResponse, RescheduleMultiServiceBookingOptions, RescheduleMultiServiceBookingResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateNumberOfParticipantsOptions, UpdateNumberOfParticipantsResponse, V2Slot, addBookingsToMultiServiceBooking, bulkConfirmOrDeclineBooking, bulkCreateBooking, bulkGetMultiServiceBookingAllowedActions, cancelBooking, cancelMultiServiceBooking, confirmBooking, confirmMultiServiceBooking, confirmOrDeclineBooking, createBooking, createMultiServiceBooking, declineBooking, declineMultiServiceBooking, getMultiServiceBooking, getMultiServiceBookingAvailability, markMultiServiceBookingAsPending, onBookingCanceled, onBookingConfirmed, onBookingCreated, onBookingDeclined, onBookingNumberOfParticipantsUpdated, onBookingRescheduled, onBookingUpdated, removeBookingsFromMultiServiceBooking, rescheduleBooking, rescheduleMultiServiceBooking, updateExtendedFields, updateNumberOfParticipants };
|