@wix/auto_sdk_bookings_bookings 1.0.81 → 1.0.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +442 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +26 -6
- package/build/cjs/index.typings.js +407 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +17 -7
- package/build/cjs/meta.js +374 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +438 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +26 -6
- package/build/es/index.typings.mjs +403 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +17 -7
- package/build/es/meta.mjs +370 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +54 -3
- package/build/internal/cjs/index.js +442 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +72 -6
- package/build/internal/cjs/index.typings.js +407 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +17 -7
- package/build/internal/cjs/meta.js +374 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +54 -3
- package/build/internal/es/index.mjs +438 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +72 -6
- package/build/internal/es/index.typings.mjs +403 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +17 -7
- package/build/internal/es/meta.mjs +370 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -914,7 +914,7 @@ interface CancelBookingAnonymouslyRequest {
|
|
|
914
914
|
* The token provided in the booking links for anonymous access
|
|
915
915
|
* @maxLength 2048
|
|
916
916
|
*/
|
|
917
|
-
token
|
|
917
|
+
token: string | null;
|
|
918
918
|
/**
|
|
919
919
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
920
920
|
* To prevent conflicting changes, the current revision must be specified when
|
|
@@ -933,15 +933,15 @@ interface RescheduleBookingAnonymouslyRequest {
|
|
|
933
933
|
* The token provided in the booking links for anonymous access
|
|
934
934
|
* @maxLength 2048
|
|
935
935
|
*/
|
|
936
|
-
token
|
|
936
|
+
token: string | null;
|
|
937
937
|
/** New slot of the booking. */
|
|
938
|
-
slot
|
|
938
|
+
slot: V2Slot;
|
|
939
939
|
/**
|
|
940
940
|
* Revision number, which increments by 1 each time the booking is rescheduled.
|
|
941
941
|
* To prevent conflicting changes, the current revision must be passed when
|
|
942
942
|
* rescheduling the booking.
|
|
943
943
|
*/
|
|
944
|
-
revision
|
|
944
|
+
revision: string | null;
|
|
945
945
|
}
|
|
946
946
|
interface V2Slot {
|
|
947
947
|
/** Identifier for the underlying session when the session is a single session or generated from a recurring session. */
|
|
@@ -1035,7 +1035,7 @@ interface GetBookingAnonymouslyRequest {
|
|
|
1035
1035
|
* The token provided in the booking links for anonymous access
|
|
1036
1036
|
* @maxLength 2048
|
|
1037
1037
|
*/
|
|
1038
|
-
token
|
|
1038
|
+
token: string | null;
|
|
1039
1039
|
}
|
|
1040
1040
|
/** Response for GetBookingAnonymously */
|
|
1041
1041
|
interface GetBookingAnonymouslyResponse {
|
|
@@ -3973,6 +3973,72 @@ interface BookingUpdatedEnvelope {
|
|
|
3973
3973
|
* @slug updated
|
|
3974
3974
|
*/
|
|
3975
3975
|
declare function onBookingUpdated(handler: (event: BookingUpdatedEnvelope) => void | Promise<void>): void;
|
|
3976
|
+
/**
|
|
3977
|
+
* Returns booking details related to AnonymousActions
|
|
3978
|
+
* Anonymous tokens for getting, canceling or rescheduling the booking.
|
|
3979
|
+
* That token is symmetrically encrypted and Url-safe.
|
|
3980
|
+
* That allows the UoU to cancel or reschedule without Authentication.
|
|
3981
|
+
* @internal
|
|
3982
|
+
* @documentationMaturity preview
|
|
3983
|
+
* @permissionId BOOKINGS.ANONYMOUS_BOOKING_ACTIONS_READ
|
|
3984
|
+
* @returns Response for GetAnonymousActionDetails
|
|
3985
|
+
* @fqn com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetAnonymousActionDetails
|
|
3986
|
+
*/
|
|
3987
|
+
declare function getAnonymousActionDetails(options?: GetAnonymousActionDetailsOptions): Promise<GetAnonymousActionDetailsResponse>;
|
|
3988
|
+
interface GetAnonymousActionDetailsOptions {
|
|
3989
|
+
/** @format GUID */
|
|
3990
|
+
bookingId?: string | null;
|
|
3991
|
+
}
|
|
3992
|
+
/**
|
|
3993
|
+
* Cancel booking using an anonymous token
|
|
3994
|
+
* @param token - The token provided in the booking links for anonymous access
|
|
3995
|
+
* @internal
|
|
3996
|
+
* @documentationMaturity preview
|
|
3997
|
+
* @requiredField token
|
|
3998
|
+
* @returns Response for CancelBookingAnonymously
|
|
3999
|
+
* @fqn com.wixpress.bookings.bookings.v2.AnonymousBookingActions.CancelBookingAnonymously
|
|
4000
|
+
*/
|
|
4001
|
+
declare function cancelBookingAnonymously(token: string, options?: CancelBookingAnonymouslyOptions): Promise<NonNullablePaths<CancelBookingAnonymouslyResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId`, 7>>;
|
|
4002
|
+
interface CancelBookingAnonymouslyOptions {
|
|
4003
|
+
/**
|
|
4004
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
4005
|
+
* To prevent conflicting changes, the current revision must be specified when
|
|
4006
|
+
* managing the booking.
|
|
4007
|
+
*/
|
|
4008
|
+
revision?: string | null;
|
|
4009
|
+
}
|
|
4010
|
+
/**
|
|
4011
|
+
* Reschedule booking using an anonymous token
|
|
4012
|
+
* @param token - The token provided in the booking links for anonymous access
|
|
4013
|
+
* @param slot - New slot of the booking.
|
|
4014
|
+
* @internal
|
|
4015
|
+
* @documentationMaturity preview
|
|
4016
|
+
* @requiredField options
|
|
4017
|
+
* @requiredField options.revision
|
|
4018
|
+
* @requiredField slot
|
|
4019
|
+
* @requiredField token
|
|
4020
|
+
* @returns Response for RescheduleBookingAnonymously
|
|
4021
|
+
* @fqn com.wixpress.bookings.bookings.v2.AnonymousBookingActions.RescheduleBookingAnonymously
|
|
4022
|
+
*/
|
|
4023
|
+
declare function rescheduleBookingAnonymously(token: string, slot: V2Slot, options: NonNullablePaths<RescheduleBookingAnonymouslyOptions, `revision`, 2>): Promise<NonNullablePaths<RescheduleBookingAnonymouslyResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId`, 7>>;
|
|
4024
|
+
interface RescheduleBookingAnonymouslyOptions {
|
|
4025
|
+
/**
|
|
4026
|
+
* Revision number, which increments by 1 each time the booking is rescheduled.
|
|
4027
|
+
* To prevent conflicting changes, the current revision must be passed when
|
|
4028
|
+
* rescheduling the booking.
|
|
4029
|
+
*/
|
|
4030
|
+
revision: string | null;
|
|
4031
|
+
}
|
|
4032
|
+
/**
|
|
4033
|
+
* Get booking using an anonymous token
|
|
4034
|
+
* @param token - The token provided in the booking links for anonymous access
|
|
4035
|
+
* @internal
|
|
4036
|
+
* @documentationMaturity preview
|
|
4037
|
+
* @requiredField token
|
|
4038
|
+
* @returns Response for GetBookingAnonymously
|
|
4039
|
+
* @fqn com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetBookingAnonymously
|
|
4040
|
+
*/
|
|
4041
|
+
declare function getBookingAnonymously(token: string): Promise<NonNullablePaths<GetBookingAnonymouslyResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId` | `allowedActionsAnonymously.cancel` | `allowedActionsAnonymously.reschedule`, 7>>;
|
|
3976
4042
|
/**
|
|
3977
4043
|
* Updates the booking `status` to `CONFIRMED`, `PENDING`, or `DECLINED` based
|
|
3978
4044
|
* on the `paymentStatus` you provide, double booking conflicts, and whether
|
|
@@ -5240,4 +5306,4 @@ interface RemoveBookingsFromMultiServiceBookingOptions {
|
|
|
5240
5306
|
returnFullEntity?: boolean;
|
|
5241
5307
|
}
|
|
5242
5308
|
|
|
5243
|
-
export { type ActionEvent, Actor, type ActorWithLiterals, type AddBookingsToMultiServiceBookingApplicationErrors, type AddBookingsToMultiServiceBookingOptions, type AddBookingsToMultiServiceBookingRequest, type AddBookingsToMultiServiceBookingResponse, type Address, type AddressLocation, type AddressStreetOneOf, type AllowedActions, type AllowedActionsAnonymously, type AnonymousBookingUrls, type ApplicationError, type AvailableResources, type BaseEventMetadata, type BookedAddOn, type BookedEntity, type BookedEntityItemOneOf, type BookedResource, type BookedSchedule, type BookedSlot, type Booking, type BookingCanceled, type BookingCanceledEnvelope, type BookingChanged, type BookingConfirmed, type BookingConfirmedEnvelope, type BookingCreatedEnvelope, type BookingDeclined, type BookingDeclinedEnvelope, type BookingDetails, type BookingFormFilled, type BookingIdAndRevision, type BookingInfo, type BookingMarkedAsPending, type BookingNumberOfParticipantsUpdatedEnvelope, type BookingParticipantsInfoOneOf, type BookingPolicySettings, type BookingPolicyViolations, type BookingRescheduled, type BookingRescheduledEnvelope, type BookingRescheduledPreviousParticipantsInfoOneOf, type BookingResult, type BookingSource, BookingStatus, type BookingStatusWithLiterals, type BookingUpdatedEnvelope, type BulkActionMetadata, type BulkBookingResult, type BulkCalculateAllowedActionsRequest, type BulkCalculateAllowedActionsResponse, type BulkCalculateAllowedActionsResult, type BulkConfirmOrDeclineBookingApplicationErrors, type BulkConfirmOrDeclineBookingOptions, type BulkConfirmOrDeclineBookingRequest, type BulkConfirmOrDeclineBookingRequestBookingDetails, type BulkConfirmOrDeclineBookingResponse, type BulkCreateBookingApplicationErrors, type BulkCreateBookingOptions, type BulkCreateBookingRequest, type BulkCreateBookingResponse, type BulkGetMultiServiceBookingAllowedActionsRequest, type BulkGetMultiServiceBookingAllowedActionsResponse, type BulkRescheduleBookingRequest, type BulkRescheduleBookingRequestBooking, type BulkRescheduleBookingResponse, type BulkUpdateBookedScheduleRequest, type BulkUpdateBookedScheduleResponse, type BulkUpdateBookingRequest, type BulkUpdateBookingResponse, type CancelBookingAnonymouslyRequest, type CancelBookingAnonymouslyResponse, type CancelBookingApplicationErrors, type CancelBookingFlowControlSettings, type CancelBookingOptions, type CancelBookingRequest, type CancelBookingRequestFlowControlSettings, type CancelBookingResponse, type CancelMultiServiceBookingApplicationErrors, type CancelMultiServiceBookingOptions, type CancelMultiServiceBookingRequest, type CancelMultiServiceBookingResponse, type Clash, type CommonIdentificationData, type CommonIdentificationDataIdOneOf, type ConfirmBookingApplicationErrors, type ConfirmBookingFlowControlSettings, type ConfirmBookingOptions, type ConfirmBookingRequest, type ConfirmBookingResponse, type ConfirmMultiServiceBookingApplicationErrors, type ConfirmMultiServiceBookingOptions, type ConfirmMultiServiceBookingRequest, type ConfirmMultiServiceBookingResponse, type ConfirmOrDeclineBookingApplicationErrors, type ConfirmOrDeclineBookingOptions, type ConfirmOrDeclineBookingRequest, type ConfirmOrDeclineBookingResponse, type ConfirmRequest, type ConfirmResponse, type ConsistentQueryBookingsRequest, type ConsistentQueryBookingsResponse, type ContactDetails, type CountBookingsRequest, type CountBookingsResponse, type CreateBookingApplicationErrors, type CreateBookingFlowControlSettings, type CreateBookingInfo, type CreateBookingOptions, type CreateBookingRequest, type CreateBookingRequestFlowControlSettings, type CreateBookingResponse, type CreateMultiServiceBookingApplicationErrors, type CreateMultiServiceBookingOptions, type CreateMultiServiceBookingRequest, type CreateMultiServiceBookingResponse, type CursorPaging, type Cursors, type CustomFormField, type DeclineBookingApplicationErrors, type DeclineBookingFlowControlSettings, type DeclineBookingOptions, type DeclineBookingRequest, type DeclineBookingResponse, type DeclineMultiServiceBookingApplicationErrors, type DeclineMultiServiceBookingOptions, type DeclineMultiServiceBookingRequest, type DeclineMultiServiceBookingResponse, type DomainEvent, type DomainEventBodyOneOf, type Duration, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type FlowControlSettings, type GetAnonymousActionDetailsRequest, type GetAnonymousActionDetailsResponse, type GetBookingAnonymouslyRequest, type GetBookingAnonymouslyResponse, type GetMultiServiceBookingAvailabilityApplicationErrors, type GetMultiServiceBookingAvailabilityRequest, type GetMultiServiceBookingAvailabilityResponse, type GetMultiServiceBookingAvailabilityResponseBookingInfo, type GetMultiServiceBookingRequest, type GetMultiServiceBookingResponse, type GetScheduleAvailabilityRequest, type GetScheduleAvailabilityResponse, type GetSlotAvailabilityRequest, type GetSlotAvailabilityResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentificationDataIdentityType, type IdentificationDataIdentityTypeWithLiterals, IdentityType, type IdentityTypeWithLiterals, type ItemMetadata, type LegacyCreateBookingRequest, type LegacyCreateBookingResponse, type Location, LocationLocationType, type LocationLocationTypeWithLiterals, LocationType, type LocationTypeWithLiterals, type MarkBookingAsPendingApplicationErrors, type MarkBookingAsPendingFlowControlSettings, type MarkBookingAsPendingOptions, type MarkBookingAsPendingRequest, type MarkBookingAsPendingResponse, type MarkMultiServiceBookingAsPendingApplicationErrors, type MarkMultiServiceBookingAsPendingOptions, type MarkMultiServiceBookingAsPendingRequest, type MarkMultiServiceBookingAsPendingResponse, type MaskedBooking, type MessageEnvelope, type MigrationCheckIfClashesWithBlockedTimeRequest, type MigrationCheckIfClashesWithBlockedTimeResponse, type MsidAndBookingId, type MultiServiceBooking, type MultiServiceBookingInfo, type MultiServiceBookingMetadata, MultiServiceBookingType, type MultiServiceBookingTypeWithLiterals, type NumberOfParticipantsUpdated, type NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf, type Paging, type PagingMetadataV2, type ParticipantChoices, type ParticipantNotification, PaymentStatus, type PaymentStatusWithLiterals, Platform, type PlatformWithLiterals, type QueryBookingsRequest, type QueryBookingsResponse, type QueryV2, type QueryV2PagingMethodOneOf, type RemoveBookingsFromMultiServiceBookingApplicationErrors, type RemoveBookingsFromMultiServiceBookingOptions, type RemoveBookingsFromMultiServiceBookingRequest, type RemoveBookingsFromMultiServiceBookingResponse, type RescheduleBookingAnonymouslyRequest, type RescheduleBookingAnonymouslyResponse, type RescheduleBookingApplicationErrors, type RescheduleBookingFlowControlSettings, type RescheduleBookingInfo, type RescheduleBookingInfoParticipantsInfoOneOf, type RescheduleBookingOptions, type RescheduleBookingOptionsParticipantsInfoOneOf, type RescheduleBookingRequest, type RescheduleBookingRequestFlowControlSettings, type RescheduleBookingRequestParticipantsInfoOneOf, type RescheduleBookingResponse, type RescheduleMultiServiceBookingApplicationErrors, type RescheduleMultiServiceBookingOptions, type RescheduleMultiServiceBookingRequest, type RescheduleMultiServiceBookingResponse, type ResourceSelection, type RestoreInfo, type ScheduleAvailability, SelectedPaymentOption, type SelectedPaymentOptionWithLiterals, SelectionMethod, type SelectionMethodWithLiterals, type ServiceChoice, type ServiceChoiceChoiceOneOf, type ServiceChoices, type SetBookingFormAndSubmissionIdRequest, type SetBookingFormAndSubmissionIdRequestCreatedByOneOf, type SetBookingFormAndSubmissionIdResponse, type SetBookingSessionIdRequest, type SetBookingSessionIdResponse, type SetBookingSubmissionIdApplicationErrors, type SetBookingSubmissionIdRequest, type SetBookingSubmissionIdResponse, type Slot, type SlotAvailability, type SlotBookings, type SlotLocation, type SlotResource, type SlotSlotResource, SortOrder, type SortOrderWithLiterals, type Sorting, type StreetAddress, type Subdivision, type UpdateBookingRequest, type UpdateBookingResponse, type UpdateExtendedFieldsApplicationErrors, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UpdateNumberOfParticipantsApplicationErrors, type UpdateNumberOfParticipantsOptions, type UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf, type UpdateNumberOfParticipantsRequest, type UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, type UpdateNumberOfParticipantsResponse, type V2CancelBookingRequest, type V2CancelBookingResponse, type V2ConfirmBookingRequest, type V2ConfirmBookingResponse, type V2CreateBookingRequest, type V2CreateBookingRequestBookableItemOneOf, type V2CreateBookingRequestParticipantsInfoOneOf, type V2CreateBookingResponse, type V2DeclineBookingRequest, type V2DeclineBookingResponse, type V2RescheduleBookingRequest, type V2RescheduleBookingRequestParticipantsInfoOneOf, type V2RescheduleBookingResponse, type V2Slot, type V2UpdateNumberOfParticipantsRequest, type V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, type V2UpdateNumberOfParticipantsResponse, ValueType, type ValueTypeWithLiterals, type WaitingList, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WebhooksIdentificationData, type WebhooksIdentificationDataIdOneOf, addBookingsToMultiServiceBooking, bulkConfirmOrDeclineBooking, bulkCreateBooking, bulkGetMultiServiceBookingAllowedActions, cancelBooking, cancelMultiServiceBooking, confirmBooking, confirmMultiServiceBooking, confirmOrDeclineBooking, createBooking, createMultiServiceBooking, declineBooking, declineMultiServiceBooking, getMultiServiceBooking, getMultiServiceBookingAvailability, markBookingAsPending, markMultiServiceBookingAsPending, onBookingCanceled, onBookingConfirmed, onBookingCreated, onBookingDeclined, onBookingNumberOfParticipantsUpdated, onBookingRescheduled, onBookingUpdated, removeBookingsFromMultiServiceBooking, rescheduleBooking, rescheduleMultiServiceBooking, setBookingSubmissionId, updateExtendedFields, updateNumberOfParticipants };
|
|
5309
|
+
export { type ActionEvent, Actor, type ActorWithLiterals, type AddBookingsToMultiServiceBookingApplicationErrors, type AddBookingsToMultiServiceBookingOptions, type AddBookingsToMultiServiceBookingRequest, type AddBookingsToMultiServiceBookingResponse, type Address, type AddressLocation, type AddressStreetOneOf, type AllowedActions, type AllowedActionsAnonymously, type AnonymousBookingUrls, type ApplicationError, type AvailableResources, type BaseEventMetadata, type BookedAddOn, type BookedEntity, type BookedEntityItemOneOf, type BookedResource, type BookedSchedule, type BookedSlot, type Booking, type BookingCanceled, type BookingCanceledEnvelope, type BookingChanged, type BookingConfirmed, type BookingConfirmedEnvelope, type BookingCreatedEnvelope, type BookingDeclined, type BookingDeclinedEnvelope, type BookingDetails, type BookingFormFilled, type BookingIdAndRevision, type BookingInfo, type BookingMarkedAsPending, type BookingNumberOfParticipantsUpdatedEnvelope, type BookingParticipantsInfoOneOf, type BookingPolicySettings, type BookingPolicyViolations, type BookingRescheduled, type BookingRescheduledEnvelope, type BookingRescheduledPreviousParticipantsInfoOneOf, type BookingResult, type BookingSource, BookingStatus, type BookingStatusWithLiterals, type BookingUpdatedEnvelope, type BulkActionMetadata, type BulkBookingResult, type BulkCalculateAllowedActionsRequest, type BulkCalculateAllowedActionsResponse, type BulkCalculateAllowedActionsResult, type BulkConfirmOrDeclineBookingApplicationErrors, type BulkConfirmOrDeclineBookingOptions, type BulkConfirmOrDeclineBookingRequest, type BulkConfirmOrDeclineBookingRequestBookingDetails, type BulkConfirmOrDeclineBookingResponse, type BulkCreateBookingApplicationErrors, type BulkCreateBookingOptions, type BulkCreateBookingRequest, type BulkCreateBookingResponse, type BulkGetMultiServiceBookingAllowedActionsRequest, type BulkGetMultiServiceBookingAllowedActionsResponse, type BulkRescheduleBookingRequest, type BulkRescheduleBookingRequestBooking, type BulkRescheduleBookingResponse, type BulkUpdateBookedScheduleRequest, type BulkUpdateBookedScheduleResponse, type BulkUpdateBookingRequest, type BulkUpdateBookingResponse, type CancelBookingAnonymouslyOptions, type CancelBookingAnonymouslyRequest, type CancelBookingAnonymouslyResponse, type CancelBookingApplicationErrors, type CancelBookingFlowControlSettings, type CancelBookingOptions, type CancelBookingRequest, type CancelBookingRequestFlowControlSettings, type CancelBookingResponse, type CancelMultiServiceBookingApplicationErrors, type CancelMultiServiceBookingOptions, type CancelMultiServiceBookingRequest, type CancelMultiServiceBookingResponse, type Clash, type CommonIdentificationData, type CommonIdentificationDataIdOneOf, type ConfirmBookingApplicationErrors, type ConfirmBookingFlowControlSettings, type ConfirmBookingOptions, type ConfirmBookingRequest, type ConfirmBookingResponse, type ConfirmMultiServiceBookingApplicationErrors, type ConfirmMultiServiceBookingOptions, type ConfirmMultiServiceBookingRequest, type ConfirmMultiServiceBookingResponse, type ConfirmOrDeclineBookingApplicationErrors, type ConfirmOrDeclineBookingOptions, type ConfirmOrDeclineBookingRequest, type ConfirmOrDeclineBookingResponse, type ConfirmRequest, type ConfirmResponse, type ConsistentQueryBookingsRequest, type ConsistentQueryBookingsResponse, type ContactDetails, type CountBookingsRequest, type CountBookingsResponse, type CreateBookingApplicationErrors, type CreateBookingFlowControlSettings, type CreateBookingInfo, type CreateBookingOptions, type CreateBookingRequest, type CreateBookingRequestFlowControlSettings, type CreateBookingResponse, type CreateMultiServiceBookingApplicationErrors, type CreateMultiServiceBookingOptions, type CreateMultiServiceBookingRequest, type CreateMultiServiceBookingResponse, type CursorPaging, type Cursors, type CustomFormField, type DeclineBookingApplicationErrors, type DeclineBookingFlowControlSettings, type DeclineBookingOptions, type DeclineBookingRequest, type DeclineBookingResponse, type DeclineMultiServiceBookingApplicationErrors, type DeclineMultiServiceBookingOptions, type DeclineMultiServiceBookingRequest, type DeclineMultiServiceBookingResponse, type DomainEvent, type DomainEventBodyOneOf, type Duration, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type FlowControlSettings, type GetAnonymousActionDetailsOptions, type GetAnonymousActionDetailsRequest, type GetAnonymousActionDetailsResponse, type GetBookingAnonymouslyRequest, type GetBookingAnonymouslyResponse, type GetMultiServiceBookingAvailabilityApplicationErrors, type GetMultiServiceBookingAvailabilityRequest, type GetMultiServiceBookingAvailabilityResponse, type GetMultiServiceBookingAvailabilityResponseBookingInfo, type GetMultiServiceBookingRequest, type GetMultiServiceBookingResponse, type GetScheduleAvailabilityRequest, type GetScheduleAvailabilityResponse, type GetSlotAvailabilityRequest, type GetSlotAvailabilityResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentificationDataIdentityType, type IdentificationDataIdentityTypeWithLiterals, IdentityType, type IdentityTypeWithLiterals, type ItemMetadata, type LegacyCreateBookingRequest, type LegacyCreateBookingResponse, type Location, LocationLocationType, type LocationLocationTypeWithLiterals, LocationType, type LocationTypeWithLiterals, type MarkBookingAsPendingApplicationErrors, type MarkBookingAsPendingFlowControlSettings, type MarkBookingAsPendingOptions, type MarkBookingAsPendingRequest, type MarkBookingAsPendingResponse, type MarkMultiServiceBookingAsPendingApplicationErrors, type MarkMultiServiceBookingAsPendingOptions, type MarkMultiServiceBookingAsPendingRequest, type MarkMultiServiceBookingAsPendingResponse, type MaskedBooking, type MessageEnvelope, type MigrationCheckIfClashesWithBlockedTimeRequest, type MigrationCheckIfClashesWithBlockedTimeResponse, type MsidAndBookingId, type MultiServiceBooking, type MultiServiceBookingInfo, type MultiServiceBookingMetadata, MultiServiceBookingType, type MultiServiceBookingTypeWithLiterals, type NumberOfParticipantsUpdated, type NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf, type Paging, type PagingMetadataV2, type ParticipantChoices, type ParticipantNotification, PaymentStatus, type PaymentStatusWithLiterals, Platform, type PlatformWithLiterals, type QueryBookingsRequest, type QueryBookingsResponse, type QueryV2, type QueryV2PagingMethodOneOf, type RemoveBookingsFromMultiServiceBookingApplicationErrors, type RemoveBookingsFromMultiServiceBookingOptions, type RemoveBookingsFromMultiServiceBookingRequest, type RemoveBookingsFromMultiServiceBookingResponse, type RescheduleBookingAnonymouslyOptions, type RescheduleBookingAnonymouslyRequest, type RescheduleBookingAnonymouslyResponse, type RescheduleBookingApplicationErrors, type RescheduleBookingFlowControlSettings, type RescheduleBookingInfo, type RescheduleBookingInfoParticipantsInfoOneOf, type RescheduleBookingOptions, type RescheduleBookingOptionsParticipantsInfoOneOf, type RescheduleBookingRequest, type RescheduleBookingRequestFlowControlSettings, type RescheduleBookingRequestParticipantsInfoOneOf, type RescheduleBookingResponse, type RescheduleMultiServiceBookingApplicationErrors, type RescheduleMultiServiceBookingOptions, type RescheduleMultiServiceBookingRequest, type RescheduleMultiServiceBookingResponse, type ResourceSelection, type RestoreInfo, type ScheduleAvailability, SelectedPaymentOption, type SelectedPaymentOptionWithLiterals, SelectionMethod, type SelectionMethodWithLiterals, type ServiceChoice, type ServiceChoiceChoiceOneOf, type ServiceChoices, type SetBookingFormAndSubmissionIdRequest, type SetBookingFormAndSubmissionIdRequestCreatedByOneOf, type SetBookingFormAndSubmissionIdResponse, type SetBookingSessionIdRequest, type SetBookingSessionIdResponse, type SetBookingSubmissionIdApplicationErrors, type SetBookingSubmissionIdRequest, type SetBookingSubmissionIdResponse, type Slot, type SlotAvailability, type SlotBookings, type SlotLocation, type SlotResource, type SlotSlotResource, SortOrder, type SortOrderWithLiterals, type Sorting, type StreetAddress, type Subdivision, type UpdateBookingRequest, type UpdateBookingResponse, type UpdateExtendedFieldsApplicationErrors, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UpdateNumberOfParticipantsApplicationErrors, type UpdateNumberOfParticipantsOptions, type UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf, type UpdateNumberOfParticipantsRequest, type UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, type UpdateNumberOfParticipantsResponse, type V2CancelBookingRequest, type V2CancelBookingResponse, type V2ConfirmBookingRequest, type V2ConfirmBookingResponse, type V2CreateBookingRequest, type V2CreateBookingRequestBookableItemOneOf, type V2CreateBookingRequestParticipantsInfoOneOf, type V2CreateBookingResponse, type V2DeclineBookingRequest, type V2DeclineBookingResponse, type V2RescheduleBookingRequest, type V2RescheduleBookingRequestParticipantsInfoOneOf, type V2RescheduleBookingResponse, type V2Slot, type V2UpdateNumberOfParticipantsRequest, type V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, type V2UpdateNumberOfParticipantsResponse, ValueType, type ValueTypeWithLiterals, type WaitingList, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WebhooksIdentificationData, type WebhooksIdentificationDataIdOneOf, addBookingsToMultiServiceBooking, bulkConfirmOrDeclineBooking, bulkCreateBooking, bulkGetMultiServiceBookingAllowedActions, cancelBooking, cancelBookingAnonymously, cancelMultiServiceBooking, confirmBooking, confirmMultiServiceBooking, confirmOrDeclineBooking, createBooking, createMultiServiceBooking, declineBooking, declineMultiServiceBooking, getAnonymousActionDetails, getBookingAnonymously, getMultiServiceBooking, getMultiServiceBookingAvailability, markBookingAsPending, markMultiServiceBookingAsPending, onBookingCanceled, onBookingConfirmed, onBookingCreated, onBookingDeclined, onBookingNumberOfParticipantsUpdated, onBookingRescheduled, onBookingUpdated, removeBookingsFromMultiServiceBooking, rescheduleBooking, rescheduleBookingAnonymously, rescheduleMultiServiceBooking, setBookingSubmissionId, updateExtendedFields, updateNumberOfParticipants };
|
|
@@ -370,7 +370,301 @@ function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
|
|
|
370
370
|
};
|
|
371
371
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
372
372
|
}
|
|
373
|
+
function resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl(opts) {
|
|
374
|
+
const domainToMappings = {
|
|
375
|
+
_: [
|
|
376
|
+
{
|
|
377
|
+
srcPath: "/_api/bookings-service/v2/bookings",
|
|
378
|
+
destPath: "/v2/bookings"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
srcPath: "/_api/bookings-service/v2/bulk/bookings",
|
|
382
|
+
destPath: "/v2/bulk/bookings"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
srcPath: "/_api/bookings-service/v2/multi_service_bookings",
|
|
386
|
+
destPath: "/v2/multi_service_bookings"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
srcPath: "/_api/bookings-service/v2/bulk/multi_service_bookings",
|
|
390
|
+
destPath: "/v2/bulk/multi_service_bookings"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
394
|
+
destPath: "/v2/multi_service_bookings"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
|
|
398
|
+
destPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
srcPath: "/bookings/bookings/v2/bulk/bookings",
|
|
402
|
+
destPath: "/v2/bulk/bookings"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
srcPath: "/bookings/multiServiceBookings/v2/bulk/multi_service_bookings/get_allowed_actions",
|
|
406
|
+
destPath: "/v2/bulk/multi_service_bookings/get_allowed_actions"
|
|
407
|
+
}
|
|
408
|
+
],
|
|
409
|
+
"manage._base_domain_": [
|
|
410
|
+
{
|
|
411
|
+
srcPath: "/_api/bookings-service/v2/bookings",
|
|
412
|
+
destPath: "/v2/bookings"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
srcPath: "/_api/bookings-service/v2/bulk/bookings",
|
|
416
|
+
destPath: "/v2/bulk/bookings"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
srcPath: "/_api/bookings-service/v2/multi_service_bookings",
|
|
420
|
+
destPath: "/v2/multi_service_bookings"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
srcPath: "/_api/bookings-service/v2/bulk/multi_service_bookings",
|
|
424
|
+
destPath: "/v2/bulk/multi_service_bookings"
|
|
425
|
+
}
|
|
426
|
+
],
|
|
427
|
+
"www.wixapis.com": [
|
|
428
|
+
{
|
|
429
|
+
srcPath: "/_api/bookings-service/v2/bookings",
|
|
430
|
+
destPath: "/v2/bookings"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
srcPath: "/bookings/v2/bookings",
|
|
434
|
+
destPath: "/v2/bookings"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
srcPath: "/bookings/v2/bulk/bookings",
|
|
438
|
+
destPath: "/v2/bulk/bookings"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
srcPath: "/_api/bookings-service/v2/multi_service_bookings",
|
|
442
|
+
destPath: "/v2/multi_service_bookings"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
446
|
+
destPath: "/v2/multi_service_bookings"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
|
|
450
|
+
destPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
srcPath: "/bookings/bookings/v2/bulk/bookings",
|
|
454
|
+
destPath: "/v2/bulk/bookings"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
srcPath: "/bookings/multiServiceBookings/v2/bulk/multi_service_bookings/get_allowed_actions",
|
|
458
|
+
destPath: "/v2/bulk/multi_service_bookings/get_allowed_actions"
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
"www._base_domain_": [
|
|
462
|
+
{
|
|
463
|
+
srcPath: "/_api/bookings-service/v2/bulk/bookings",
|
|
464
|
+
destPath: "/v2/bulk/bookings"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
srcPath: "/_api/bookings-service/v2/bookings",
|
|
468
|
+
destPath: "/v2/bookings"
|
|
469
|
+
}
|
|
470
|
+
],
|
|
471
|
+
"bo._base_domain_": [
|
|
472
|
+
{
|
|
473
|
+
srcPath: "/_api/bookings-service/v2/bulk/bookings",
|
|
474
|
+
destPath: "/v2/bulk/bookings"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
srcPath: "/_api/bookings-service/v2/bookings",
|
|
478
|
+
destPath: "/v2/bookings"
|
|
479
|
+
}
|
|
480
|
+
],
|
|
481
|
+
"wixbo.ai": [
|
|
482
|
+
{
|
|
483
|
+
srcPath: "/_api/bookings-service/v2/bulk/bookings",
|
|
484
|
+
destPath: "/v2/bulk/bookings"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
srcPath: "/_api/bookings-service/v2/bookings",
|
|
488
|
+
destPath: "/v2/bookings"
|
|
489
|
+
}
|
|
490
|
+
],
|
|
491
|
+
"wix-bo.com": [
|
|
492
|
+
{
|
|
493
|
+
srcPath: "/_api/bookings-service/v2/bulk/bookings",
|
|
494
|
+
destPath: "/v2/bulk/bookings"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
srcPath: "/_api/bookings-service/v2/bookings",
|
|
498
|
+
destPath: "/v2/bookings"
|
|
499
|
+
}
|
|
500
|
+
],
|
|
501
|
+
"*.dev.wix-code.com": [
|
|
502
|
+
{
|
|
503
|
+
srcPath: "/_api/bookings-service",
|
|
504
|
+
destPath: "/v2/bookings"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
508
|
+
destPath: "/v2/multi_service_bookings"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
|
|
512
|
+
destPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
srcPath: "/bookings/bookings/v2/bulk/bookings",
|
|
516
|
+
destPath: "/v2/bulk/bookings"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
srcPath: "/bookings/multiServiceBookings/v2/bulk/multi_service_bookings/get_allowed_actions",
|
|
520
|
+
destPath: "/v2/bulk/multi_service_bookings/get_allowed_actions"
|
|
521
|
+
}
|
|
522
|
+
]
|
|
523
|
+
};
|
|
524
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
525
|
+
}
|
|
373
526
|
var PACKAGE_NAME = "@wix/auto_sdk_bookings_bookings";
|
|
527
|
+
function getAnonymousActionDetails(payload) {
|
|
528
|
+
function __getAnonymousActionDetails({ host }) {
|
|
529
|
+
const metadata = {
|
|
530
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
531
|
+
method: "GET",
|
|
532
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetAnonymousActionDetails",
|
|
533
|
+
packageName: PACKAGE_NAME,
|
|
534
|
+
migrationOptions: {
|
|
535
|
+
optInTransformResponse: true
|
|
536
|
+
},
|
|
537
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
538
|
+
protoPath: "/v2/bookings/anonymous-actions-details",
|
|
539
|
+
data: payload,
|
|
540
|
+
host
|
|
541
|
+
}),
|
|
542
|
+
params: toURLSearchParams(payload)
|
|
543
|
+
};
|
|
544
|
+
return metadata;
|
|
545
|
+
}
|
|
546
|
+
return __getAnonymousActionDetails;
|
|
547
|
+
}
|
|
548
|
+
function cancelBookingAnonymously(payload) {
|
|
549
|
+
function __cancelBookingAnonymously({ host }) {
|
|
550
|
+
const metadata = {
|
|
551
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
552
|
+
method: "POST",
|
|
553
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.CancelBookingAnonymously",
|
|
554
|
+
packageName: PACKAGE_NAME,
|
|
555
|
+
migrationOptions: {
|
|
556
|
+
optInTransformResponse: true
|
|
557
|
+
},
|
|
558
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
559
|
+
protoPath: "/v2/bookings/{token}/anonymous-cancel",
|
|
560
|
+
data: payload,
|
|
561
|
+
host
|
|
562
|
+
}),
|
|
563
|
+
data: payload,
|
|
564
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
565
|
+
{
|
|
566
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
567
|
+
paths: [
|
|
568
|
+
{ path: "booking.createdDate" },
|
|
569
|
+
{ path: "booking.startDate" },
|
|
570
|
+
{ path: "booking.endDate" },
|
|
571
|
+
{ path: "booking.updatedDate" },
|
|
572
|
+
{ path: "booking.canceledDate" }
|
|
573
|
+
]
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
577
|
+
paths: [
|
|
578
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
579
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
580
|
+
]
|
|
581
|
+
}
|
|
582
|
+
])
|
|
583
|
+
};
|
|
584
|
+
return metadata;
|
|
585
|
+
}
|
|
586
|
+
return __cancelBookingAnonymously;
|
|
587
|
+
}
|
|
588
|
+
function rescheduleBookingAnonymously(payload) {
|
|
589
|
+
function __rescheduleBookingAnonymously({ host }) {
|
|
590
|
+
const metadata = {
|
|
591
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
592
|
+
method: "POST",
|
|
593
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.RescheduleBookingAnonymously",
|
|
594
|
+
packageName: PACKAGE_NAME,
|
|
595
|
+
migrationOptions: {
|
|
596
|
+
optInTransformResponse: true
|
|
597
|
+
},
|
|
598
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
599
|
+
protoPath: "/v2/bookings/{token}/anonymous-reschedule",
|
|
600
|
+
data: payload,
|
|
601
|
+
host
|
|
602
|
+
}),
|
|
603
|
+
data: payload,
|
|
604
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
605
|
+
{
|
|
606
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
607
|
+
paths: [
|
|
608
|
+
{ path: "booking.createdDate" },
|
|
609
|
+
{ path: "booking.startDate" },
|
|
610
|
+
{ path: "booking.endDate" },
|
|
611
|
+
{ path: "booking.updatedDate" },
|
|
612
|
+
{ path: "booking.canceledDate" }
|
|
613
|
+
]
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
617
|
+
paths: [
|
|
618
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
619
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
620
|
+
]
|
|
621
|
+
}
|
|
622
|
+
])
|
|
623
|
+
};
|
|
624
|
+
return metadata;
|
|
625
|
+
}
|
|
626
|
+
return __rescheduleBookingAnonymously;
|
|
627
|
+
}
|
|
628
|
+
function getBookingAnonymously(payload) {
|
|
629
|
+
function __getBookingAnonymously({ host }) {
|
|
630
|
+
const metadata = {
|
|
631
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
632
|
+
method: "GET",
|
|
633
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetBookingAnonymously",
|
|
634
|
+
packageName: PACKAGE_NAME,
|
|
635
|
+
migrationOptions: {
|
|
636
|
+
optInTransformResponse: true
|
|
637
|
+
},
|
|
638
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
639
|
+
protoPath: "/v2/bookings/{token}/anonymous-get",
|
|
640
|
+
data: payload,
|
|
641
|
+
host
|
|
642
|
+
}),
|
|
643
|
+
params: toURLSearchParams(payload),
|
|
644
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
645
|
+
{
|
|
646
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
647
|
+
paths: [
|
|
648
|
+
{ path: "booking.createdDate" },
|
|
649
|
+
{ path: "booking.startDate" },
|
|
650
|
+
{ path: "booking.endDate" },
|
|
651
|
+
{ path: "booking.updatedDate" },
|
|
652
|
+
{ path: "booking.canceledDate" }
|
|
653
|
+
]
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
657
|
+
paths: [
|
|
658
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
659
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
660
|
+
]
|
|
661
|
+
}
|
|
662
|
+
])
|
|
663
|
+
};
|
|
664
|
+
return metadata;
|
|
665
|
+
}
|
|
666
|
+
return __getBookingAnonymously;
|
|
667
|
+
}
|
|
374
668
|
function confirmOrDeclineBooking(payload) {
|
|
375
669
|
function __confirmOrDeclineBooking({ host }) {
|
|
376
670
|
const metadata = {
|
|
@@ -1441,6 +1735,111 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
1441
1735
|
SortOrder2["DESC"] = "DESC";
|
|
1442
1736
|
return SortOrder2;
|
|
1443
1737
|
})(SortOrder || {});
|
|
1738
|
+
async function getAnonymousActionDetails2(options) {
|
|
1739
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1740
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1741
|
+
bookingId: options?.bookingId
|
|
1742
|
+
});
|
|
1743
|
+
const reqOpts = getAnonymousActionDetails(payload);
|
|
1744
|
+
sideEffects?.onSiteCall?.();
|
|
1745
|
+
try {
|
|
1746
|
+
const result = await httpClient.request(reqOpts);
|
|
1747
|
+
sideEffects?.onSuccess?.(result);
|
|
1748
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1749
|
+
} catch (err) {
|
|
1750
|
+
const transformedError = sdkTransformError(
|
|
1751
|
+
err,
|
|
1752
|
+
{
|
|
1753
|
+
spreadPathsToArguments: {},
|
|
1754
|
+
explicitPathsToArguments: { bookingId: "$[0].bookingId" },
|
|
1755
|
+
singleArgumentUnchanged: false
|
|
1756
|
+
},
|
|
1757
|
+
["options"]
|
|
1758
|
+
);
|
|
1759
|
+
sideEffects?.onError?.(err);
|
|
1760
|
+
throw transformedError;
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
async function cancelBookingAnonymously2(token, options) {
|
|
1764
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1765
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1766
|
+
token,
|
|
1767
|
+
revision: options?.revision
|
|
1768
|
+
});
|
|
1769
|
+
const reqOpts = cancelBookingAnonymously(payload);
|
|
1770
|
+
sideEffects?.onSiteCall?.();
|
|
1771
|
+
try {
|
|
1772
|
+
const result = await httpClient.request(reqOpts);
|
|
1773
|
+
sideEffects?.onSuccess?.(result);
|
|
1774
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1775
|
+
} catch (err) {
|
|
1776
|
+
const transformedError = sdkTransformError(
|
|
1777
|
+
err,
|
|
1778
|
+
{
|
|
1779
|
+
spreadPathsToArguments: {},
|
|
1780
|
+
explicitPathsToArguments: { token: "$[0]", revision: "$[1].revision" },
|
|
1781
|
+
singleArgumentUnchanged: false
|
|
1782
|
+
},
|
|
1783
|
+
["token", "options"]
|
|
1784
|
+
);
|
|
1785
|
+
sideEffects?.onError?.(err);
|
|
1786
|
+
throw transformedError;
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
async function rescheduleBookingAnonymously2(token, slot, options) {
|
|
1790
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1791
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1792
|
+
token,
|
|
1793
|
+
slot,
|
|
1794
|
+
revision: options?.revision
|
|
1795
|
+
});
|
|
1796
|
+
const reqOpts = rescheduleBookingAnonymously(payload);
|
|
1797
|
+
sideEffects?.onSiteCall?.();
|
|
1798
|
+
try {
|
|
1799
|
+
const result = await httpClient.request(reqOpts);
|
|
1800
|
+
sideEffects?.onSuccess?.(result);
|
|
1801
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1802
|
+
} catch (err) {
|
|
1803
|
+
const transformedError = sdkTransformError(
|
|
1804
|
+
err,
|
|
1805
|
+
{
|
|
1806
|
+
spreadPathsToArguments: {},
|
|
1807
|
+
explicitPathsToArguments: {
|
|
1808
|
+
token: "$[0]",
|
|
1809
|
+
slot: "$[1]",
|
|
1810
|
+
revision: "$[2].revision"
|
|
1811
|
+
},
|
|
1812
|
+
singleArgumentUnchanged: false
|
|
1813
|
+
},
|
|
1814
|
+
["token", "slot", "options"]
|
|
1815
|
+
);
|
|
1816
|
+
sideEffects?.onError?.(err);
|
|
1817
|
+
throw transformedError;
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
async function getBookingAnonymously2(token) {
|
|
1821
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1822
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ token });
|
|
1823
|
+
const reqOpts = getBookingAnonymously(payload);
|
|
1824
|
+
sideEffects?.onSiteCall?.();
|
|
1825
|
+
try {
|
|
1826
|
+
const result = await httpClient.request(reqOpts);
|
|
1827
|
+
sideEffects?.onSuccess?.(result);
|
|
1828
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1829
|
+
} catch (err) {
|
|
1830
|
+
const transformedError = sdkTransformError(
|
|
1831
|
+
err,
|
|
1832
|
+
{
|
|
1833
|
+
spreadPathsToArguments: {},
|
|
1834
|
+
explicitPathsToArguments: { token: "$[0]" },
|
|
1835
|
+
singleArgumentUnchanged: false
|
|
1836
|
+
},
|
|
1837
|
+
["token"]
|
|
1838
|
+
);
|
|
1839
|
+
sideEffects?.onError?.(err);
|
|
1840
|
+
throw transformedError;
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1444
1843
|
async function confirmOrDeclineBooking2(bookingId, options) {
|
|
1445
1844
|
const { httpClient, sideEffects } = arguments[2];
|
|
1446
1845
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -2219,6 +2618,7 @@ export {
|
|
|
2219
2618
|
bulkCreateBooking2 as bulkCreateBooking,
|
|
2220
2619
|
bulkGetMultiServiceBookingAllowedActions2 as bulkGetMultiServiceBookingAllowedActions,
|
|
2221
2620
|
cancelBooking,
|
|
2621
|
+
cancelBookingAnonymously2 as cancelBookingAnonymously,
|
|
2222
2622
|
cancelMultiServiceBooking2 as cancelMultiServiceBooking,
|
|
2223
2623
|
confirmBooking,
|
|
2224
2624
|
confirmMultiServiceBooking2 as confirmMultiServiceBooking,
|
|
@@ -2227,12 +2627,15 @@ export {
|
|
|
2227
2627
|
createMultiServiceBooking2 as createMultiServiceBooking,
|
|
2228
2628
|
declineBooking,
|
|
2229
2629
|
declineMultiServiceBooking2 as declineMultiServiceBooking,
|
|
2630
|
+
getAnonymousActionDetails2 as getAnonymousActionDetails,
|
|
2631
|
+
getBookingAnonymously2 as getBookingAnonymously,
|
|
2230
2632
|
getMultiServiceBooking2 as getMultiServiceBooking,
|
|
2231
2633
|
getMultiServiceBookingAvailability2 as getMultiServiceBookingAvailability,
|
|
2232
2634
|
markBookingAsPending2 as markBookingAsPending,
|
|
2233
2635
|
markMultiServiceBookingAsPending2 as markMultiServiceBookingAsPending,
|
|
2234
2636
|
removeBookingsFromMultiServiceBooking2 as removeBookingsFromMultiServiceBooking,
|
|
2235
2637
|
rescheduleBooking2 as rescheduleBooking,
|
|
2638
|
+
rescheduleBookingAnonymously2 as rescheduleBookingAnonymously,
|
|
2236
2639
|
rescheduleMultiServiceBooking2 as rescheduleMultiServiceBooking,
|
|
2237
2640
|
setBookingSubmissionId2 as setBookingSubmissionId,
|
|
2238
2641
|
updateExtendedFields2 as updateExtendedFields,
|