@wix/auto_sdk_bookings_bookings 1.0.3 → 1.0.5
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/src/bookings-v2-booking-bookings.context.d.ts +17 -17
- package/build/cjs/src/bookings-v2-booking-bookings.context.js +17 -17
- package/build/cjs/src/bookings-v2-booking-bookings.context.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking-bookings.http.d.ts +137 -134
- package/build/cjs/src/bookings-v2-booking-bookings.http.js +861 -858
- package/build/cjs/src/bookings-v2-booking-bookings.http.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking-bookings.meta.d.ts +24 -24
- package/build/cjs/src/bookings-v2-booking-bookings.meta.js +125 -125
- package/build/cjs/src/bookings-v2-booking-bookings.meta.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking-bookings.public.d.ts +192 -189
- package/build/cjs/src/bookings-v2-booking-bookings.public.js +84 -84
- package/build/cjs/src/bookings-v2-booking-bookings.public.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking-bookings.types.d.ts +1310 -991
- package/build/cjs/src/bookings-v2-booking-bookings.types.js +3 -3
- package/build/cjs/src/bookings-v2-booking-bookings.types.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking-bookings.universal.d.ts +2219 -1839
- package/build/cjs/src/bookings-v2-booking-bookings.universal.js +901 -898
- package/build/cjs/src/bookings-v2-booking-bookings.universal.js.map +1 -1
- package/build/es/src/bookings-v2-booking-bookings.context.d.ts +17 -17
- package/build/es/src/bookings-v2-booking-bookings.context.js +16 -16
- package/build/es/src/bookings-v2-booking-bookings.context.js.map +1 -1
- package/build/es/src/bookings-v2-booking-bookings.http.d.ts +137 -134
- package/build/es/src/bookings-v2-booking-bookings.http.js +837 -834
- package/build/es/src/bookings-v2-booking-bookings.http.js.map +1 -1
- package/build/es/src/bookings-v2-booking-bookings.meta.d.ts +24 -24
- package/build/es/src/bookings-v2-booking-bookings.meta.js +103 -103
- package/build/es/src/bookings-v2-booking-bookings.meta.js.map +1 -1
- package/build/es/src/bookings-v2-booking-bookings.public.d.ts +192 -189
- package/build/es/src/bookings-v2-booking-bookings.public.js +65 -65
- package/build/es/src/bookings-v2-booking-bookings.public.js.map +1 -1
- package/build/es/src/bookings-v2-booking-bookings.types.d.ts +1310 -991
- package/build/es/src/bookings-v2-booking-bookings.types.js +3 -3
- package/build/es/src/bookings-v2-booking-bookings.types.js.map +1 -1
- package/build/es/src/bookings-v2-booking-bookings.universal.d.ts +2219 -1839
- package/build/es/src/bookings-v2-booking-bookings.universal.js +855 -852
- package/build/es/src/bookings-v2-booking-bookings.universal.js.map +1 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.context.d.ts +17 -17
- package/build/internal/cjs/src/bookings-v2-booking-bookings.context.js +17 -17
- package/build/internal/cjs/src/bookings-v2-booking-bookings.context.js.map +1 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.http.d.ts +137 -134
- package/build/internal/cjs/src/bookings-v2-booking-bookings.http.js +861 -858
- package/build/internal/cjs/src/bookings-v2-booking-bookings.http.js.map +1 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.d.ts +24 -24
- package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.js +125 -125
- package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.js.map +1 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.public.d.ts +192 -189
- package/build/internal/cjs/src/bookings-v2-booking-bookings.public.js +84 -84
- package/build/internal/cjs/src/bookings-v2-booking-bookings.public.js.map +1 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.types.d.ts +1310 -991
- package/build/internal/cjs/src/bookings-v2-booking-bookings.types.js +3 -3
- package/build/internal/cjs/src/bookings-v2-booking-bookings.types.js.map +1 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.d.ts +2219 -1839
- package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.js +901 -898
- package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.js.map +1 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.context.d.ts +17 -17
- package/build/internal/es/src/bookings-v2-booking-bookings.context.js +16 -16
- package/build/internal/es/src/bookings-v2-booking-bookings.context.js.map +1 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.http.d.ts +137 -134
- package/build/internal/es/src/bookings-v2-booking-bookings.http.js +837 -834
- package/build/internal/es/src/bookings-v2-booking-bookings.http.js.map +1 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.meta.d.ts +24 -24
- package/build/internal/es/src/bookings-v2-booking-bookings.meta.js +103 -103
- package/build/internal/es/src/bookings-v2-booking-bookings.meta.js.map +1 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.public.d.ts +192 -189
- package/build/internal/es/src/bookings-v2-booking-bookings.public.js +65 -65
- package/build/internal/es/src/bookings-v2-booking-bookings.public.js.map +1 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.types.d.ts +1310 -991
- package/build/internal/es/src/bookings-v2-booking-bookings.types.js +3 -3
- package/build/internal/es/src/bookings-v2-booking-bookings.types.js.map +1 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.universal.d.ts +2219 -1839
- package/build/internal/es/src/bookings-v2-booking-bookings.universal.js +855 -852
- package/build/internal/es/src/bookings-v2-booking-bookings.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { confirmOrDeclineBooking as publicConfirmOrDeclineBooking, bulkConfirmOrDeclineBooking as publicBulkConfirmOrDeclineBooking, createBooking as publicCreateBooking, bulkCreateBooking as publicBulkCreateBooking, rescheduleBooking as publicRescheduleBooking, confirmBooking as publicConfirmBooking, updateExtendedFields as publicUpdateExtendedFields, declineBooking as publicDeclineBooking, cancelBooking as publicCancelBooking, updateNumberOfParticipants as publicUpdateNumberOfParticipants, createMultiServiceBooking as publicCreateMultiServiceBooking, rescheduleMultiServiceBooking as publicRescheduleMultiServiceBooking, getMultiServiceBookingAvailability as publicGetMultiServiceBookingAvailability, cancelMultiServiceBooking as publicCancelMultiServiceBooking, markMultiServiceBookingAsPending as publicMarkMultiServiceBookingAsPending, confirmMultiServiceBooking as publicConfirmMultiServiceBooking, declineMultiServiceBooking as publicDeclineMultiServiceBooking, bulkGetMultiServiceBookingAllowedActions as publicBulkGetMultiServiceBookingAllowedActions, getMultiServiceBooking as publicGetMultiServiceBooking, addBookingsToMultiServiceBooking as publicAddBookingsToMultiServiceBooking, removeBookingsFromMultiServiceBooking as publicRemoveBookingsFromMultiServiceBooking } from './bookings-v2-booking-bookings.public.js';
|
|
2
2
|
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
3
3
|
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
4
4
|
import { onBookingCanceled as publicOnBookingCanceled } from './bookings-v2-booking-bookings.public.js';
|
|
5
5
|
import { onBookingConfirmed as publicOnBookingConfirmed } from './bookings-v2-booking-bookings.public.js';
|
|
6
6
|
import { onBookingCreated as publicOnBookingCreated } from './bookings-v2-booking-bookings.public.js';
|
|
7
7
|
import { onBookingDeclined as publicOnBookingDeclined } from './bookings-v2-booking-bookings.public.js';
|
|
8
|
+
import { onBookingNumberOfParticipantsUpdated as publicOnBookingNumberOfParticipantsUpdated } from './bookings-v2-booking-bookings.public.js';
|
|
8
9
|
import { onBookingRescheduled as publicOnBookingRescheduled } from './bookings-v2-booking-bookings.public.js';
|
|
9
10
|
import { onBookingUpdated as publicOnBookingUpdated } from './bookings-v2-booking-bookings.public.js';
|
|
10
|
-
|
|
11
|
+
export declare const confirmOrDeclineBooking: MaybeContext<BuildRESTFunction<typeof publicConfirmOrDeclineBooking> & typeof publicConfirmOrDeclineBooking>;
|
|
12
|
+
export declare const bulkConfirmOrDeclineBooking: MaybeContext<BuildRESTFunction<typeof publicBulkConfirmOrDeclineBooking> & typeof publicBulkConfirmOrDeclineBooking>;
|
|
13
|
+
export declare const createBooking: MaybeContext<BuildRESTFunction<typeof publicCreateBooking> & typeof publicCreateBooking>;
|
|
14
|
+
export declare const bulkCreateBooking: MaybeContext<BuildRESTFunction<typeof publicBulkCreateBooking> & typeof publicBulkCreateBooking>;
|
|
15
|
+
export declare const rescheduleBooking: MaybeContext<BuildRESTFunction<typeof publicRescheduleBooking> & typeof publicRescheduleBooking>;
|
|
16
|
+
export declare const confirmBooking: MaybeContext<BuildRESTFunction<typeof publicConfirmBooking> & typeof publicConfirmBooking>;
|
|
17
|
+
export declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof publicUpdateExtendedFields> & typeof publicUpdateExtendedFields>;
|
|
18
|
+
export declare const declineBooking: MaybeContext<BuildRESTFunction<typeof publicDeclineBooking> & typeof publicDeclineBooking>;
|
|
19
|
+
export declare const cancelBooking: MaybeContext<BuildRESTFunction<typeof publicCancelBooking> & typeof publicCancelBooking>;
|
|
20
|
+
export declare const updateNumberOfParticipants: MaybeContext<BuildRESTFunction<typeof publicUpdateNumberOfParticipants> & typeof publicUpdateNumberOfParticipants>;
|
|
11
21
|
export declare const createMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof publicCreateMultiServiceBooking> & typeof publicCreateMultiServiceBooking>;
|
|
12
22
|
export declare const rescheduleMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof publicRescheduleMultiServiceBooking> & typeof publicRescheduleMultiServiceBooking>;
|
|
13
23
|
export declare const getMultiServiceBookingAvailability: MaybeContext<BuildRESTFunction<typeof publicGetMultiServiceBookingAvailability> & typeof publicGetMultiServiceBookingAvailability>;
|
|
@@ -19,16 +29,6 @@ export declare const bulkGetMultiServiceBookingAllowedActions: MaybeContext<Buil
|
|
|
19
29
|
export declare const getMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof publicGetMultiServiceBooking> & typeof publicGetMultiServiceBooking>;
|
|
20
30
|
export declare const addBookingsToMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof publicAddBookingsToMultiServiceBooking> & typeof publicAddBookingsToMultiServiceBooking>;
|
|
21
31
|
export declare const removeBookingsFromMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof publicRemoveBookingsFromMultiServiceBooking> & typeof publicRemoveBookingsFromMultiServiceBooking>;
|
|
22
|
-
export declare const createBooking: MaybeContext<BuildRESTFunction<typeof publicCreateBooking> & typeof publicCreateBooking>;
|
|
23
|
-
export declare const bulkCreateBooking: MaybeContext<BuildRESTFunction<typeof publicBulkCreateBooking> & typeof publicBulkCreateBooking>;
|
|
24
|
-
export declare const rescheduleBooking: MaybeContext<BuildRESTFunction<typeof publicRescheduleBooking> & typeof publicRescheduleBooking>;
|
|
25
|
-
export declare const confirmBooking: MaybeContext<BuildRESTFunction<typeof publicConfirmBooking> & typeof publicConfirmBooking>;
|
|
26
|
-
export declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof publicUpdateExtendedFields> & typeof publicUpdateExtendedFields>;
|
|
27
|
-
export declare const declineBooking: MaybeContext<BuildRESTFunction<typeof publicDeclineBooking> & typeof publicDeclineBooking>;
|
|
28
|
-
export declare const cancelBooking: MaybeContext<BuildRESTFunction<typeof publicCancelBooking> & typeof publicCancelBooking>;
|
|
29
|
-
export declare const updateNumberOfParticipants: MaybeContext<BuildRESTFunction<typeof publicUpdateNumberOfParticipants> & typeof publicUpdateNumberOfParticipants>;
|
|
30
|
-
export declare const confirmOrDeclineBooking: MaybeContext<BuildRESTFunction<typeof publicConfirmOrDeclineBooking> & typeof publicConfirmOrDeclineBooking>;
|
|
31
|
-
export declare const bulkConfirmOrDeclineBooking: MaybeContext<BuildRESTFunction<typeof publicBulkConfirmOrDeclineBooking> & typeof publicBulkConfirmOrDeclineBooking>;
|
|
32
32
|
/**
|
|
33
33
|
* Triggered when a booking is canceled.
|
|
34
34
|
*/
|
|
@@ -45,6 +45,10 @@ export declare const onBookingCreated: ReturnType<typeof createEventModule<typeo
|
|
|
45
45
|
* Triggered when a booking is declined.
|
|
46
46
|
*/
|
|
47
47
|
export declare const onBookingDeclined: ReturnType<typeof createEventModule<typeof publicOnBookingDeclined>>;
|
|
48
|
+
/**
|
|
49
|
+
* Triggered when the number of participants is updated.
|
|
50
|
+
*/
|
|
51
|
+
export declare const onBookingNumberOfParticipantsUpdated: ReturnType<typeof createEventModule<typeof publicOnBookingNumberOfParticipantsUpdated>>;
|
|
48
52
|
/**
|
|
49
53
|
* Triggered when a booking is rescheduled.
|
|
50
54
|
*/
|
|
@@ -53,9 +57,5 @@ export declare const onBookingRescheduled: ReturnType<typeof createEventModule<t
|
|
|
53
57
|
* Triggered when a booked schedule is updated.
|
|
54
58
|
*/
|
|
55
59
|
export declare const onBookingUpdated: ReturnType<typeof createEventModule<typeof publicOnBookingUpdated>>;
|
|
56
|
-
/**
|
|
57
|
-
* Triggered when the number of participants is updated.
|
|
58
|
-
*/
|
|
59
|
-
export declare const onBookingNumberOfParticipantsUpdated: ReturnType<typeof createEventModule<typeof publicOnBookingNumberOfParticipantsUpdated>>;
|
|
60
60
|
export { MultiServiceBookingType, LocationType, ValueType, BookingStatus, PaymentStatus, SelectedPaymentOption, Platform, Actor, IdentificationDataIdentityType, WebhookIdentityType, LocationLocationType, IdentityType, SortOrder, } from './bookings-v2-booking-bookings.universal.js';
|
|
61
|
-
export { Booking, BookingParticipantsInfoOneOf, BookedEntity, BookedEntityItemOneOf, BookedSlot, BookedResource, Location, BookedSchedule, ContactDetails, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, CustomFormField, BookingSource, ParticipantNotification, CommonIdentificationData, CommonIdentificationDataIdOneOf, FlowControlSettings, ExtendedFields, ParticipantChoices, ServiceChoices, ServiceChoice, ServiceChoiceChoiceOneOf, Duration, MultiServiceBookingInfo, BookingFormFilled, SetBookingFormAndSubmissionIdRequest, SetBookingFormAndSubmissionIdResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, WebhooksIdentificationData, WebhooksIdentificationDataIdOneOf,
|
|
61
|
+
export { Booking, BookingParticipantsInfoOneOf, BookedEntity, BookedEntityItemOneOf, BookedSlot, BookedResource, Location, BookedSchedule, ContactDetails, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, CustomFormField, BookingSource, ParticipantNotification, CommonIdentificationData, CommonIdentificationDataIdOneOf, FlowControlSettings, ExtendedFields, ParticipantChoices, ServiceChoices, ServiceChoice, ServiceChoiceChoiceOneOf, Duration, MultiServiceBookingInfo, BookingFormFilled, SetBookingFormAndSubmissionIdRequest, SetBookingFormAndSubmissionIdResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, WebhooksIdentificationData, WebhooksIdentificationDataIdOneOf, V2CreateBookingRequest, V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf, Slot, SlotResource, CreateBookingRequestFlowControlSettings, V2CreateBookingResponse, V2CancelBookingRequest, CancelBookingRequestFlowControlSettings, V2CancelBookingResponse, V2RescheduleBookingRequest, V2RescheduleBookingRequestParticipantsInfoOneOf, RescheduleBookingRequestFlowControlSettings, V2RescheduleBookingResponse, V2ConfirmBookingRequest, V2ConfirmBookingResponse, V2DeclineBookingRequest, V2DeclineBookingResponse, V2UpdateNumberOfParticipantsRequest, V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, V2UpdateNumberOfParticipantsResponse, ConfirmOrDeclineBookingRequest, ConfirmOrDeclineBookingResponse, BulkConfirmOrDeclineBookingRequest, BulkConfirmOrDeclineBookingRequestBookingDetails, BulkConfirmOrDeclineBookingResponse, BulkBookingResult, ItemMetadata, ApplicationError, BulkActionMetadata, BookingChanged, CreateBookingRequest, CreateBookingFlowControlSettings, CreateBookingResponse, UpdateBookingRequest, UpdateBookingResponse, LegacyCreateBookingRequest, LegacyCreateBookingResponse, BulkUpdateBookingRequest, MaskedBooking, BulkUpdateBookingResponse, BulkCreateBookingRequest, CreateBookingInfo, BulkCreateBookingResponse, RescheduleBookingRequest, RescheduleBookingRequestParticipantsInfoOneOf, V2Slot, SlotSlotResource, SlotLocation, RescheduleBookingFlowControlSettings, RescheduleBookingResponse, BookingRescheduled, BookingRescheduledPreviousParticipantsInfoOneOf, IdentificationData, IdentificationDataIdOneOf, BulkRescheduleBookingRequest, BulkRescheduleBookingRequestBooking, SlotBookings, BulkRescheduleBookingResponse, BulkUpdateBookedScheduleRequest, BookingDetails, BulkUpdateBookedScheduleResponse, QueryBookingsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryBookingsResponse, PagingMetadataV2, Cursors, ConfirmRequest, ConfirmResponse, ConfirmBookingRequest, ConfirmBookingFlowControlSettings, ConfirmBookingResponse, BookingConfirmed, ConsistentQueryBookingsRequest, ConsistentQueryBookingsResponse, SetBookingSessionIdRequest, SetBookingSessionIdResponse, SetBookingSubmissionIdRequest, SetBookingSubmissionIdResponse, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, DeclineBookingRequest, DeclineBookingFlowControlSettings, DeclineBookingResponse, BookingDeclined, CancelBookingRequest, CancelBookingFlowControlSettings, CancelBookingResponse, BookingCanceled, UpdateNumberOfParticipantsRequest, UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, UpdateNumberOfParticipantsResponse, NumberOfParticipantsUpdated, NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf, BulkCalculateAllowedActionsRequest, BulkCalculateAllowedActionsResponse, BulkCalculateAllowedActionsResult, AllowedActions, GetSlotAvailabilityRequest, GetSlotAvailabilityResponse, SlotAvailability, WaitingList, BookingPolicyViolations, BookingPolicySettings, AvailableResources, GetScheduleAvailabilityRequest, GetScheduleAvailabilityResponse, ScheduleAvailability, MarkBookingAsPendingRequest, MarkBookingAsPendingFlowControlSettings, MarkBookingAsPendingResponse, BookingMarkedAsPending, MigrationCheckIfClashesWithBlockedTimeRequest, MsidAndBookingId, MigrationCheckIfClashesWithBlockedTimeResponse, Clash, CountBookingsRequest, CountBookingsResponse, CreateMultiServiceBookingRequest, CreateMultiServiceBookingResponse, MultiServiceBooking, BookingResult, RescheduleMultiServiceBookingRequest, RescheduleBookingInfo, RescheduleBookingInfoParticipantsInfoOneOf, RescheduleMultiServiceBookingResponse, GetMultiServiceBookingAvailabilityRequest, GetMultiServiceBookingAvailabilityResponse, GetMultiServiceBookingAvailabilityResponseBookingInfo, CancelMultiServiceBookingRequest, CancelMultiServiceBookingResponse, MarkMultiServiceBookingAsPendingRequest, BookingInfo, MarkMultiServiceBookingAsPendingResponse, ConfirmMultiServiceBookingRequest, ConfirmMultiServiceBookingResponse, DeclineMultiServiceBookingRequest, DeclineMultiServiceBookingResponse, BulkGetMultiServiceBookingAllowedActionsRequest, BulkGetMultiServiceBookingAllowedActionsResponse, GetMultiServiceBookingRequest, GetMultiServiceBookingResponse, MultiServiceBookingMetadata, AddBookingsToMultiServiceBookingRequest, BookingIdAndRevision, AddBookingsToMultiServiceBookingResponse, RemoveBookingsFromMultiServiceBookingRequest, RemoveBookingsFromMultiServiceBookingResponse, ConfirmOrDeclineBookingResponseNonNullableFields, BulkConfirmOrDeclineBookingResponseNonNullableFields, CreateBookingResponseNonNullableFields, BulkCreateBookingResponseNonNullableFields, RescheduleBookingResponseNonNullableFields, ConfirmBookingResponseNonNullableFields, UpdateExtendedFieldsResponseNonNullableFields, DeclineBookingResponseNonNullableFields, CancelBookingResponseNonNullableFields, UpdateNumberOfParticipantsResponseNonNullableFields, MultiServiceBookingNonNullableFields, CreateMultiServiceBookingResponseNonNullableFields, RescheduleMultiServiceBookingResponseNonNullableFields, GetMultiServiceBookingAvailabilityResponseNonNullableFields, CancelMultiServiceBookingResponseNonNullableFields, MarkMultiServiceBookingAsPendingResponseNonNullableFields, ConfirmMultiServiceBookingResponseNonNullableFields, DeclineMultiServiceBookingResponseNonNullableFields, BulkGetMultiServiceBookingAllowedActionsResponseNonNullableFields, GetMultiServiceBookingResponseNonNullableFields, AddBookingsToMultiServiceBookingResponseNonNullableFields, RemoveBookingsFromMultiServiceBookingResponseNonNullableFields, BaseEventMetadata, EventMetadata, BookingCanceledEnvelope, BookingConfirmedEnvelope, BookingCreatedEnvelope, BookingDeclinedEnvelope, BookingNumberOfParticipantsUpdatedEnvelope, BookingRescheduledEnvelope, BookingUpdatedEnvelope, ConfirmOrDeclineBookingOptions, BulkConfirmOrDeclineBookingOptions, CreateBookingOptions, BulkCreateBookingOptions, RescheduleBookingOptions, ConfirmBookingOptions, UpdateExtendedFieldsOptions, DeclineBookingOptions, CancelBookingOptions, UpdateNumberOfParticipantsOptions, CreateMultiServiceBookingOptions, RescheduleMultiServiceBookingOptions, CancelMultiServiceBookingOptions, MarkMultiServiceBookingAsPendingOptions, ConfirmMultiServiceBookingOptions, DeclineMultiServiceBookingOptions, AddBookingsToMultiServiceBookingOptions, RemoveBookingsFromMultiServiceBookingOptions, } from './bookings-v2-booking-bookings.universal.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SortOrder = exports.IdentityType = exports.LocationLocationType = exports.WebhookIdentityType = exports.IdentificationDataIdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.LocationType = exports.MultiServiceBookingType = exports.
|
|
3
|
+
exports.SortOrder = exports.IdentityType = exports.LocationLocationType = exports.WebhookIdentityType = exports.IdentificationDataIdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.LocationType = exports.MultiServiceBookingType = exports.onBookingUpdated = exports.onBookingRescheduled = exports.onBookingNumberOfParticipantsUpdated = exports.onBookingDeclined = exports.onBookingCreated = exports.onBookingConfirmed = exports.onBookingCanceled = exports.removeBookingsFromMultiServiceBooking = exports.addBookingsToMultiServiceBooking = exports.getMultiServiceBooking = exports.bulkGetMultiServiceBookingAllowedActions = exports.declineMultiServiceBooking = exports.confirmMultiServiceBooking = exports.markMultiServiceBookingAsPending = exports.cancelMultiServiceBooking = exports.getMultiServiceBookingAvailability = exports.rescheduleMultiServiceBooking = exports.createMultiServiceBooking = exports.updateNumberOfParticipants = exports.cancelBooking = exports.declineBooking = exports.updateExtendedFields = exports.confirmBooking = exports.rescheduleBooking = exports.bulkCreateBooking = exports.createBooking = exports.bulkConfirmOrDeclineBooking = exports.confirmOrDeclineBooking = void 0;
|
|
4
4
|
const bookings_v2_booking_bookings_public_js_1 = require("./bookings-v2-booking-bookings.public.js");
|
|
5
5
|
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
6
|
const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
|
|
@@ -11,6 +11,16 @@ const bookings_v2_booking_bookings_public_js_5 = require("./bookings-v2-booking-
|
|
|
11
11
|
const bookings_v2_booking_bookings_public_js_6 = require("./bookings-v2-booking-bookings.public.js");
|
|
12
12
|
const bookings_v2_booking_bookings_public_js_7 = require("./bookings-v2-booking-bookings.public.js");
|
|
13
13
|
const bookings_v2_booking_bookings_public_js_8 = require("./bookings-v2-booking-bookings.public.js");
|
|
14
|
+
exports.confirmOrDeclineBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.confirmOrDeclineBooking);
|
|
15
|
+
exports.bulkConfirmOrDeclineBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.bulkConfirmOrDeclineBooking);
|
|
16
|
+
exports.createBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.createBooking);
|
|
17
|
+
exports.bulkCreateBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.bulkCreateBooking);
|
|
18
|
+
exports.rescheduleBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.rescheduleBooking);
|
|
19
|
+
exports.confirmBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.confirmBooking);
|
|
20
|
+
exports.updateExtendedFields = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.updateExtendedFields);
|
|
21
|
+
exports.declineBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.declineBooking);
|
|
22
|
+
exports.cancelBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.cancelBooking);
|
|
23
|
+
exports.updateNumberOfParticipants = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.updateNumberOfParticipants);
|
|
14
24
|
exports.createMultiServiceBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.createMultiServiceBooking);
|
|
15
25
|
exports.rescheduleMultiServiceBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.rescheduleMultiServiceBooking);
|
|
16
26
|
exports.getMultiServiceBookingAvailability = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.getMultiServiceBookingAvailability);
|
|
@@ -22,16 +32,6 @@ exports.bulkGetMultiServiceBookingAllowedActions = (0, rest_modules_1.createREST
|
|
|
22
32
|
exports.getMultiServiceBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.getMultiServiceBooking);
|
|
23
33
|
exports.addBookingsToMultiServiceBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.addBookingsToMultiServiceBooking);
|
|
24
34
|
exports.removeBookingsFromMultiServiceBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.removeBookingsFromMultiServiceBooking);
|
|
25
|
-
exports.createBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.createBooking);
|
|
26
|
-
exports.bulkCreateBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.bulkCreateBooking);
|
|
27
|
-
exports.rescheduleBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.rescheduleBooking);
|
|
28
|
-
exports.confirmBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.confirmBooking);
|
|
29
|
-
exports.updateExtendedFields = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.updateExtendedFields);
|
|
30
|
-
exports.declineBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.declineBooking);
|
|
31
|
-
exports.cancelBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.cancelBooking);
|
|
32
|
-
exports.updateNumberOfParticipants = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.updateNumberOfParticipants);
|
|
33
|
-
exports.confirmOrDeclineBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.confirmOrDeclineBooking);
|
|
34
|
-
exports.bulkConfirmOrDeclineBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.bulkConfirmOrDeclineBooking);
|
|
35
35
|
/**
|
|
36
36
|
* Triggered when a booking is canceled.
|
|
37
37
|
*/
|
|
@@ -49,17 +49,17 @@ exports.onBookingCreated = (0, event_definition_modules_1.createEventModule)(boo
|
|
|
49
49
|
*/
|
|
50
50
|
exports.onBookingDeclined = (0, event_definition_modules_1.createEventModule)(bookings_v2_booking_bookings_public_js_5.onBookingDeclined);
|
|
51
51
|
/**
|
|
52
|
-
* Triggered when
|
|
52
|
+
* Triggered when the number of participants is updated.
|
|
53
53
|
*/
|
|
54
|
-
exports.
|
|
54
|
+
exports.onBookingNumberOfParticipantsUpdated = (0, event_definition_modules_1.createEventModule)(bookings_v2_booking_bookings_public_js_6.onBookingNumberOfParticipantsUpdated);
|
|
55
55
|
/**
|
|
56
|
-
* Triggered when a
|
|
56
|
+
* Triggered when a booking is rescheduled.
|
|
57
57
|
*/
|
|
58
|
-
exports.
|
|
58
|
+
exports.onBookingRescheduled = (0, event_definition_modules_1.createEventModule)(bookings_v2_booking_bookings_public_js_7.onBookingRescheduled);
|
|
59
59
|
/**
|
|
60
|
-
* Triggered when
|
|
60
|
+
* Triggered when a booked schedule is updated.
|
|
61
61
|
*/
|
|
62
|
-
exports.
|
|
62
|
+
exports.onBookingUpdated = (0, event_definition_modules_1.createEventModule)(bookings_v2_booking_bookings_public_js_8.onBookingUpdated);
|
|
63
63
|
var bookings_v2_booking_bookings_universal_js_1 = require("./bookings-v2-booking-bookings.universal.js");
|
|
64
64
|
Object.defineProperty(exports, "MultiServiceBookingType", { enumerable: true, get: function () { return bookings_v2_booking_bookings_universal_js_1.MultiServiceBookingType; } });
|
|
65
65
|
Object.defineProperty(exports, "LocationType", { enumerable: true, get: function () { return bookings_v2_booking_bookings_universal_js_1.LocationType; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-v2-booking-bookings.context.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking-bookings.context.ts"],"names":[],"mappings":";;;AAAA,qGAsBkD;AAClD,gEAAiE;AACjE,wFAA8E;AAE9E,qGAAwG;AACxG,qGAA0G;AAC1G,qGAAsG;AACtG,qGAAwG;AACxG,qGAA8G;AAC9G,qGAAsG;
|
|
1
|
+
{"version":3,"file":"bookings-v2-booking-bookings.context.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking-bookings.context.ts"],"names":[],"mappings":";;;AAAA,qGAsBkD;AAClD,gEAAiE;AACjE,wFAA8E;AAE9E,qGAAwG;AACxG,qGAA0G;AAC1G,qGAAsG;AACtG,qGAAwG;AACxG,qGAA8I;AAC9I,qGAA8G;AAC9G,qGAAsG;AAEzF,QAAA,uBAAuB,GAGlB,IAAA,+BAAgB,EAAC,gEAA6B,CAAC,CAAC;AACrD,QAAA,2BAA2B,GAGtB,IAAA,+BAAgB,EAAC,oEAAiC,CAAC,CAAC;AACzD,QAAA,aAAa,GAER,IAAA,+BAAgB,EAAC,sDAAmB,CAAC,CAAC;AAC3C,QAAA,iBAAiB,GAGZ,IAAA,+BAAgB,EAAC,0DAAuB,CAAC,CAAC;AAC/C,QAAA,iBAAiB,GAGZ,IAAA,+BAAgB,EAAC,0DAAuB,CAAC,CAAC;AAC/C,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,uDAAoB,CAAC,CAAC;AAC5C,QAAA,oBAAoB,GAGf,IAAA,+BAAgB,EAAC,6DAA0B,CAAC,CAAC;AAClD,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,uDAAoB,CAAC,CAAC;AAC5C,QAAA,aAAa,GAER,IAAA,+BAAgB,EAAC,sDAAmB,CAAC,CAAC;AAC3C,QAAA,0BAA0B,GAGrB,IAAA,+BAAgB,EAAC,mEAAgC,CAAC,CAAC;AACxD,QAAA,yBAAyB,GAGpB,IAAA,+BAAgB,EAAC,kEAA+B,CAAC,CAAC;AACvD,QAAA,6BAA6B,GAGxB,IAAA,+BAAgB,EAAC,sEAAmC,CAAC,CAAC;AAC3D,QAAA,kCAAkC,GAG7B,IAAA,+BAAgB,EAAC,2EAAwC,CAAC,CAAC;AAChE,QAAA,yBAAyB,GAGpB,IAAA,+BAAgB,EAAC,kEAA+B,CAAC,CAAC;AACvD,QAAA,gCAAgC,GAG3B,IAAA,+BAAgB,EAAC,yEAAsC,CAAC,CAAC;AAC9D,QAAA,0BAA0B,GAGrB,IAAA,+BAAgB,EAAC,mEAAgC,CAAC,CAAC;AACxD,QAAA,0BAA0B,GAGrB,IAAA,+BAAgB,EAAC,mEAAgC,CAAC,CAAC;AACxD,QAAA,wCAAwC,GAGnC,IAAA,+BAAgB,EAChC,iFAA8C,CAC/C,CAAC;AACW,QAAA,sBAAsB,GAGjB,IAAA,+BAAgB,EAAC,+DAA4B,CAAC,CAAC;AACpD,QAAA,gCAAgC,GAG3B,IAAA,+BAAgB,EAAC,yEAAsC,CAAC,CAAC;AAC9D,QAAA,qCAAqC,GAGhC,IAAA,+BAAgB,EAAC,8EAA2C,CAAC,CAAC;AAChF;;GAEG;AACU,QAAA,iBAAiB,GAE1B,IAAA,4CAAiB,EAAC,0DAAuB,CAAC,CAAC;AAC/C;;GAEG;AACU,QAAA,kBAAkB,GAE3B,IAAA,4CAAiB,EAAC,2DAAwB,CAAC,CAAC;AAChD;;GAEG;AACU,QAAA,gBAAgB,GAEzB,IAAA,4CAAiB,EAAC,yDAAsB,CAAC,CAAC;AAC9C;;GAEG;AACU,QAAA,iBAAiB,GAE1B,IAAA,4CAAiB,EAAC,0DAAuB,CAAC,CAAC;AAC/C;;GAEG;AACU,QAAA,oCAAoC,GAE7C,IAAA,4CAAiB,EAAC,6EAA0C,CAAC,CAAC;AAClE;;GAEG;AACU,QAAA,oBAAoB,GAE7B,IAAA,4CAAiB,EAAC,6DAA0B,CAAC,CAAC;AAClD;;GAEG;AACU,QAAA,gBAAgB,GAEzB,IAAA,4CAAiB,EAAC,yDAAsB,CAAC,CAAC;AAE9C,yGAcqD;AAbnD,oJAAA,uBAAuB,OAAA;AACvB,yIAAA,YAAY,OAAA;AACZ,sIAAA,SAAS,OAAA;AACT,0IAAA,aAAa,OAAA;AACb,0IAAA,aAAa,OAAA;AACb,kJAAA,qBAAqB,OAAA;AACrB,qIAAA,QAAQ,OAAA;AACR,kIAAA,KAAK,OAAA;AACL,2JAAA,8BAA8B,OAAA;AAC9B,gJAAA,mBAAmB,OAAA;AACnB,iJAAA,oBAAoB,OAAA;AACpB,yIAAA,YAAY,OAAA;AACZ,sIAAA,SAAS,OAAA"}
|
|
@@ -1,98 +1,56 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* See Create Booking for more information.
|
|
7
|
-
*/
|
|
8
|
-
export declare function createMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
|
|
9
|
-
/**
|
|
10
|
-
* Reschedules a multi-service booking.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* The call fails if at least 1 individual booking can't be rescheduled due
|
|
14
|
-
* the service being unavailable or a rescheduling policy violation.
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* See Reschedule Booking for more information.
|
|
18
|
-
*/
|
|
19
|
-
export declare function rescheduleMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
|
|
20
|
-
/**
|
|
21
|
-
* Retrieves a multi-service booking's availability.
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* Use List Multi Service Availability Time Slots to check availability for a
|
|
25
|
-
* `SEQUENTIAL_BOOKINGS` multi-service booking.
|
|
26
|
-
*/
|
|
27
|
-
export declare function getMultiServiceBookingAvailability(payload: object): RequestOptionsFactory<any>;
|
|
28
|
-
/** Cancels a multi-service booking and thus all its individual bookings. */
|
|
29
|
-
export declare function cancelMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
|
|
30
|
-
/**
|
|
31
|
-
* Updates the status of a multi-service booking to `PENDING`.
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* Also updates the status of each of individual bookings within the multi-service booking to `PENDING`.
|
|
35
|
-
*
|
|
36
|
-
* The call fails if the status for at least a single individual booking can't be updated.
|
|
37
|
-
*
|
|
38
|
-
* See Mark Booking as Pending for more information.
|
|
39
|
-
*/
|
|
40
|
-
export declare function markMultiServiceBookingAsPending(payload: object): RequestOptionsFactory<any>;
|
|
41
|
-
/**
|
|
42
|
-
* Updates the status of a multi-service booking to `CONFIRMED`.
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* Also updates the status of each of individual bookings within the multi-service booking to `CONFIRMED`.
|
|
46
|
-
*
|
|
47
|
-
* The call fails if the status for at least a single individual booking can't be updated.
|
|
3
|
+
* Updates the booking `status` to `CONFIRMED`, `PENDING`, or `DECLINED` based
|
|
4
|
+
* on the `paymentStatus` you provide, double booking conflicts, and whether
|
|
5
|
+
* the service requires business approval.
|
|
48
6
|
*
|
|
49
|
-
*
|
|
50
|
-
*/
|
|
51
|
-
export declare function confirmMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
|
|
52
|
-
/**
|
|
53
|
-
* Updates the status of a multi-service booking to `DECLINED`.
|
|
7
|
+
* ## eCommerce checkout restriction
|
|
54
8
|
*
|
|
9
|
+
* Call this method only when using a custom checkout page. Don't
|
|
10
|
+
* call it when using a *Wix eCommerce checkout*
|
|
11
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
|
|
12
|
+
* In such cases, Wix automatically updates the booking status based on
|
|
13
|
+
* the `paymentStatus` of the corresponding *Wix eCommerce order*
|
|
14
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
|
|
55
15
|
*
|
|
56
|
-
*
|
|
16
|
+
* ## New booking status
|
|
57
17
|
*
|
|
58
|
-
* The
|
|
18
|
+
* The booking `status` is set to `DECLINED` if both of the following conditions
|
|
19
|
+
* are met:
|
|
20
|
+
* + You provide `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT` as payment status.
|
|
21
|
+
* + There is a double booking conflict.
|
|
59
22
|
*
|
|
60
|
-
*
|
|
61
|
-
|
|
62
|
-
export declare function declineMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
|
|
63
|
-
/** Retrieves the allowed actions for a list of multi-service bookings. */
|
|
64
|
-
export declare function bulkGetMultiServiceBookingAllowedActions(payload: object): RequestOptionsFactory<any>;
|
|
65
|
-
/**
|
|
66
|
-
* Retrieves all single-service bookings belonging to a multi-service booking.
|
|
23
|
+
* If only one or none of these conditions is met, `status` is set to `PENDING`
|
|
24
|
+
* or `CONFIRMED` depending on whether the service requires business approval.
|
|
67
25
|
*
|
|
26
|
+
* ## Double bookings
|
|
68
27
|
*
|
|
69
|
-
* If
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* bookings includes also the bookings for which you don't have permissions.
|
|
73
|
-
*/
|
|
74
|
-
export declare function getMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
|
|
75
|
-
/**
|
|
76
|
-
* Adds a list of single-service bookings to a multi-service booking.
|
|
28
|
+
* If there is a double booking conflict, but the booking has already been at least
|
|
29
|
+
* partially paid, the method still marks the booking as `PENDING` or `CONFIRMED`.
|
|
30
|
+
* Then, it also sets `doubleBooked` to `true`.
|
|
77
31
|
*
|
|
32
|
+
* ## Admin overwrites
|
|
78
33
|
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
34
|
+
* There are small but important differences in confirmation behavior if the
|
|
35
|
+
* booking was created with special `flowControlSettings`:
|
|
36
|
+
* + If the booking's `flowControlSettings.skipAvailabilityValidation` was set to
|
|
37
|
+
* `true`, the booking is never declined regardless of double booking conflicts.
|
|
38
|
+
* Instead, it's marked `CONFIRMED` or `PENDING`, depending on whether the
|
|
39
|
+
* service requires business approval.
|
|
40
|
+
* + If the booking's `flowControlSettings.skipBusinessConfirmation` was set to
|
|
41
|
+
* `true`, the booking skips `PENDING` status and is marked `CONFIRMED`
|
|
42
|
+
* immediately.
|
|
81
43
|
*/
|
|
82
|
-
export declare function
|
|
44
|
+
export declare function confirmOrDeclineBooking(payload: object): RequestOptionsFactory<any>;
|
|
83
45
|
/**
|
|
84
|
-
*
|
|
85
|
-
* removed bookings.
|
|
86
|
-
*
|
|
46
|
+
* Confirms or declines up to 300 bookings.
|
|
87
47
|
*
|
|
88
|
-
* If you specify an empty `bookings` array, all single-service bookings for which
|
|
89
|
-
* the call's [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities)
|
|
90
|
-
* has read permissions are removed from the multi-service booking.
|
|
91
48
|
*
|
|
92
|
-
*
|
|
93
|
-
* booking
|
|
49
|
+
* See *Confirm Or Decline Booking*
|
|
50
|
+
* ([SDK](https://dev.wix.com/docs/velo/api-reference/wix-bookings-v2/bookings/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking))
|
|
51
|
+
* for details about when a booking is confirmed or declined.
|
|
94
52
|
*/
|
|
95
|
-
export declare function
|
|
53
|
+
export declare function bulkConfirmOrDeclineBooking(payload: object): RequestOptionsFactory<any>;
|
|
96
54
|
/**
|
|
97
55
|
* Creates a booking.
|
|
98
56
|
*
|
|
@@ -101,16 +59,16 @@ export declare function removeBookingsFromMultiServiceBooking(payload: object):
|
|
|
101
59
|
*
|
|
102
60
|
* For appointment-based services, specify the relevant `slot` in
|
|
103
61
|
* `bookedEntity.slot`. We recommend specifying the complete
|
|
104
|
-
* `availabilityEntries.slot` returned in Query Availability
|
|
62
|
+
* `availabilityEntries.slot` returned in *Query Availability*
|
|
105
63
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/query-availability))
|
|
106
64
|
* in your call's request to avoid failed calls due to unavailability.
|
|
107
65
|
*
|
|
108
66
|
* ## Class session booking
|
|
109
67
|
*
|
|
110
|
-
* For class services, specify the relevant event ID
|
|
68
|
+
* For class services, specify the relevant *event ID*
|
|
111
69
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction))
|
|
112
70
|
* as `bookedEntity.slot.eventId`.
|
|
113
|
-
* We recommend retrieving the event ID from Query Availability's
|
|
71
|
+
* We recommend retrieving the event ID from *Query Availability's*
|
|
114
72
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/query-availability))
|
|
115
73
|
* `availabilityEntries.slot.eventId` to avoid failed calls due to unavailability.
|
|
116
74
|
* Specifying an event ID leads to automatic calculations of `slot.startDate`, `slot.endDate`,
|
|
@@ -134,7 +92,7 @@ export declare function removeBookingsFromMultiServiceBooking(payload: object):
|
|
|
134
92
|
*
|
|
135
93
|
* You must specify either `participantsChoices` or `totalParticipants`.
|
|
136
94
|
* The call fails if the specified `participantsChoices` aren't among the supported
|
|
137
|
-
*
|
|
95
|
+
* _service options and variants_
|
|
138
96
|
* ([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)).
|
|
139
97
|
*
|
|
140
98
|
* ## Notify customers
|
|
@@ -161,14 +119,16 @@ export declare function removeBookingsFromMultiServiceBooking(payload: object):
|
|
|
161
119
|
* ## Payment status
|
|
162
120
|
*
|
|
163
121
|
* A booking is initially created with `{"paymentStatus": "UNDEFINED"}` regardless
|
|
164
|
-
* of the payment status specified in Create Booking. If a customer uses an
|
|
165
|
-
*
|
|
122
|
+
* of the payment status specified in Create Booking. If a customer uses an
|
|
123
|
+
* _eCommerce checkout_
|
|
124
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)),
|
|
166
125
|
* Wix Bookings automatically syncs the booking's payment status from
|
|
167
|
-
* the corresponding eCommerce order
|
|
126
|
+
* the corresponding *eCommerce order*
|
|
127
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
|
|
168
128
|
*
|
|
169
129
|
* If a booking doesn't have a corresponding eCommerce order, for example, since
|
|
170
130
|
* the customer didn't use the eCommerce checkout, you can update the booking's
|
|
171
|
-
* payment status with Confirm Or Decline Booking
|
|
131
|
+
* payment status with *Confirm Or Decline Booking*
|
|
172
132
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking)).
|
|
173
133
|
*
|
|
174
134
|
* ## Booking form data
|
|
@@ -212,7 +172,8 @@ export declare function createBooking(payload: object): RequestOptionsFactory<an
|
|
|
212
172
|
* Creates up to 8 bookings.
|
|
213
173
|
*
|
|
214
174
|
*
|
|
215
|
-
* See Create Booking
|
|
175
|
+
* See *Create Booking*
|
|
176
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/create-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/create-booking))
|
|
216
177
|
* for more information.
|
|
217
178
|
*
|
|
218
179
|
* If any of the specified bookings is missing a required field the entire call
|
|
@@ -235,7 +196,7 @@ export declare function bulkCreateBooking(payload: object): RequestOptionsFactor
|
|
|
235
196
|
* ## Appointment sessions
|
|
236
197
|
*
|
|
237
198
|
* For appointments, the old session is removed from the business calendar
|
|
238
|
-
* while a new session is added. We recommend calling Query Availability
|
|
199
|
+
* while a new session is added. We recommend calling *Query Availability*
|
|
239
200
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/query-availability))
|
|
240
201
|
* first and specifying the entire retrieved `slot`.
|
|
241
202
|
*
|
|
@@ -243,7 +204,7 @@ export declare function bulkCreateBooking(payload: object): RequestOptionsFactor
|
|
|
243
204
|
*
|
|
244
205
|
* For classes, the new session must be an existing session belonging to the
|
|
245
206
|
* same class. We recommend retrieving `availabilityEntries.slot.eventId`
|
|
246
|
-
* from Query Availability
|
|
207
|
+
* from *Query Availability*
|
|
247
208
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/query-availability))
|
|
248
209
|
* to avoid failed Reschedule Booking calls due to unavailability. Specify
|
|
249
210
|
* only `slot.eventId` instead of the entire `slot` object.
|
|
@@ -292,16 +253,16 @@ export declare function rescheduleBooking(payload: object): RequestOptionsFactor
|
|
|
292
253
|
* ## eCommerce checkout restriction
|
|
293
254
|
*
|
|
294
255
|
* Call this method only when using a custom checkout page. Don't
|
|
295
|
-
* call it when using a Wix eCommerce checkout
|
|
256
|
+
* call it when using a *Wix eCommerce checkout*
|
|
296
257
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
|
|
297
258
|
* In such cases, Wix automatically updates the booking status based on
|
|
298
|
-
* the `paymentStatus` of the corresponding Wix eCommerce order
|
|
259
|
+
* the `paymentStatus` of the corresponding *Wix eCommerce order*
|
|
299
260
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
|
|
300
261
|
*
|
|
301
262
|
* ## When to call Confirm Or Decline Booking instead
|
|
302
263
|
*
|
|
303
264
|
* Confirm Booking doesn't check whether a slot or schedule is still available. For
|
|
304
|
-
* these checks you can call Confirm or Decline Booking
|
|
265
|
+
* these checks you can call *Confirm or Decline Booking*
|
|
305
266
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking)).
|
|
306
267
|
*
|
|
307
268
|
* ## Original status validation
|
|
@@ -359,16 +320,16 @@ export declare function updateExtendedFields(payload: object): RequestOptionsFac
|
|
|
359
320
|
* ## eCommerce checkout restriction
|
|
360
321
|
*
|
|
361
322
|
* Call this method only when using a custom checkout page. Don't
|
|
362
|
-
* call it when using a Wix eCommerce checkout
|
|
323
|
+
* call it when using a *Wix eCommerce checkout*
|
|
363
324
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
|
|
364
325
|
* In such cases, Wix automatically updates the booking status based on
|
|
365
|
-
* the `paymentStatus` of the corresponding Wix eCommerce order
|
|
326
|
+
* the `paymentStatus` of the corresponding *Wix eCommerce order*
|
|
366
327
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
|
|
367
328
|
*
|
|
368
329
|
* ## When to call Confirm Or Decline Booking instead
|
|
369
330
|
*
|
|
370
331
|
* The method doesn't check whether a slot or schedule is still available. For
|
|
371
|
-
* these checks you can call Confirm or Decline Booking
|
|
332
|
+
* these checks you can call *Confirm or Decline Booking*
|
|
372
333
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking)).
|
|
373
334
|
*
|
|
374
335
|
* ## Original status validation
|
|
@@ -449,59 +410,101 @@ export declare function bookingsCancelBooking(payload: object): RequestOptionsFa
|
|
|
449
410
|
*
|
|
450
411
|
* You must specify either `participantsChoices` or `totalParticipants`.
|
|
451
412
|
* The call fails if the specified `participantsChoices` aren't among the
|
|
452
|
-
* supported service options and variants
|
|
413
|
+
* supported *service options and variants*
|
|
453
414
|
* ([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)).
|
|
454
415
|
*/
|
|
455
416
|
export declare function bookingsUpdateNumberOfParticipants(payload: object): RequestOptionsFactory<any>;
|
|
456
417
|
/**
|
|
457
|
-
*
|
|
458
|
-
* on the `paymentStatus` you provide, double booking conflicts, and whether
|
|
459
|
-
* the service requires business approval.
|
|
418
|
+
* Creates a multi-service booking.
|
|
460
419
|
*
|
|
461
|
-
* ## eCommerce checkout restriction
|
|
462
420
|
*
|
|
463
|
-
*
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
*
|
|
468
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
|
|
421
|
+
* See Create Booking for more information.
|
|
422
|
+
*/
|
|
423
|
+
export declare function createMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
|
|
424
|
+
/**
|
|
425
|
+
* Reschedules a multi-service booking.
|
|
469
426
|
*
|
|
470
|
-
* ## New booking status
|
|
471
427
|
*
|
|
472
|
-
* The
|
|
473
|
-
*
|
|
474
|
-
* + You provide `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT` as payment status.
|
|
475
|
-
* + There is a double booking conflict.
|
|
428
|
+
* The call fails if at least 1 individual booking can't be rescheduled due
|
|
429
|
+
* the service being unavailable or a rescheduling policy violation.
|
|
476
430
|
*
|
|
477
|
-
* If only one or none of these conditions is met, `status` is set to `PENDING`
|
|
478
|
-
* or `CONFIRMED` depending on whether the service requires business approval.
|
|
479
431
|
*
|
|
480
|
-
*
|
|
432
|
+
* See Reschedule Booking for more information.
|
|
433
|
+
*/
|
|
434
|
+
export declare function rescheduleMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
|
|
435
|
+
/**
|
|
436
|
+
* Retrieves a multi-service booking's availability.
|
|
481
437
|
*
|
|
482
|
-
* If there is a double booking conflict, but the booking has already been at least
|
|
483
|
-
* partially paid, the method still marks the booking as `PENDING` or `CONFIRMED`.
|
|
484
|
-
* Then, it also sets `doubleBooked` to `true`.
|
|
485
438
|
*
|
|
486
|
-
*
|
|
439
|
+
* Use List Multi Service Availability Time Slots to check availability for a
|
|
440
|
+
* `SEQUENTIAL_BOOKINGS` multi-service booking.
|
|
441
|
+
*/
|
|
442
|
+
export declare function getMultiServiceBookingAvailability(payload: object): RequestOptionsFactory<any>;
|
|
443
|
+
/** Cancels a multi-service booking and thus all its individual bookings. */
|
|
444
|
+
export declare function cancelMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
|
|
445
|
+
/**
|
|
446
|
+
* Updates the status of a multi-service booking to `PENDING`.
|
|
487
447
|
*
|
|
488
|
-
*
|
|
489
|
-
*
|
|
490
|
-
*
|
|
491
|
-
*
|
|
492
|
-
*
|
|
493
|
-
*
|
|
494
|
-
* + If the booking's `flowControlSettings.skipBusinessConfirmation` was set to
|
|
495
|
-
* `true`, the booking skips `PENDING` status and is marked `CONFIRMED`
|
|
496
|
-
* immediately.
|
|
448
|
+
*
|
|
449
|
+
* Also updates the status of each of individual bookings within the multi-service booking to `PENDING`.
|
|
450
|
+
*
|
|
451
|
+
* The call fails if the status for at least a single individual booking can't be updated.
|
|
452
|
+
*
|
|
453
|
+
* See Mark Booking as Pending for more information.
|
|
497
454
|
*/
|
|
498
|
-
export declare function
|
|
455
|
+
export declare function markMultiServiceBookingAsPending(payload: object): RequestOptionsFactory<any>;
|
|
499
456
|
/**
|
|
500
|
-
*
|
|
457
|
+
* Updates the status of a multi-service booking to `CONFIRMED`.
|
|
501
458
|
*
|
|
502
459
|
*
|
|
503
|
-
*
|
|
504
|
-
*
|
|
505
|
-
* for
|
|
460
|
+
* Also updates the status of each of individual bookings within the multi-service booking to `CONFIRMED`.
|
|
461
|
+
*
|
|
462
|
+
* The call fails if the status for at least a single individual booking can't be updated.
|
|
463
|
+
*
|
|
464
|
+
* See Confirm Booking for more information.
|
|
506
465
|
*/
|
|
507
|
-
export declare function
|
|
466
|
+
export declare function confirmMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
|
|
467
|
+
/**
|
|
468
|
+
* Updates the status of a multi-service booking to `DECLINED`.
|
|
469
|
+
*
|
|
470
|
+
*
|
|
471
|
+
* Also updates the status of each of individual bookings within the multi-service booking to `DECLINED`.
|
|
472
|
+
*
|
|
473
|
+
* The call fails if the status for at least a single individual booking can't be updated.
|
|
474
|
+
*
|
|
475
|
+
* See Decline Booking for more information.
|
|
476
|
+
*/
|
|
477
|
+
export declare function declineMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
|
|
478
|
+
/** Retrieves the allowed actions for a list of multi-service bookings. */
|
|
479
|
+
export declare function bulkGetMultiServiceBookingAllowedActions(payload: object): RequestOptionsFactory<any>;
|
|
480
|
+
/**
|
|
481
|
+
* Retrieves all single-service bookings belonging to a multi-service booking.
|
|
482
|
+
*
|
|
483
|
+
*
|
|
484
|
+
* If you call as an [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities)
|
|
485
|
+
* who has permissions to read only part of the bookings,
|
|
486
|
+
* only the permitted bookings are retrieved. The returned total number of
|
|
487
|
+
* bookings includes also the bookings for which you don't have permissions.
|
|
488
|
+
*/
|
|
489
|
+
export declare function getMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
|
|
490
|
+
/**
|
|
491
|
+
* Adds a list of single-service bookings to a multi-service booking.
|
|
492
|
+
*
|
|
493
|
+
*
|
|
494
|
+
* The call fails, if at least 1 of the specified booking is already part of a
|
|
495
|
+
* multi-service booking.
|
|
496
|
+
*/
|
|
497
|
+
export declare function addBookingsToMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
|
|
498
|
+
/**
|
|
499
|
+
* Removes single-service bookings from a multi-service booking and returns the
|
|
500
|
+
* removed bookings.
|
|
501
|
+
*
|
|
502
|
+
*
|
|
503
|
+
* If you specify an empty `bookings` array, all single-service bookings for which
|
|
504
|
+
* the call's [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities)
|
|
505
|
+
* has read permissions are removed from the multi-service booking.
|
|
506
|
+
*
|
|
507
|
+
* If the call would create a multi-service booking including only 1 single-service
|
|
508
|
+
* booking, the multi-service booking is also deleted.
|
|
509
|
+
*/
|
|
510
|
+
export declare function removeBookingsFromMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
|