@wix/auto_sdk_bookings_bookings 1.0.80 → 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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +442 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +26 -6
  5. package/build/cjs/index.typings.js +407 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +17 -7
  8. package/build/cjs/meta.js +374 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +438 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +26 -6
  14. package/build/es/index.typings.mjs +403 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +17 -7
  17. package/build/es/meta.mjs +370 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +54 -3
  20. package/build/internal/cjs/index.js +442 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +94 -6
  23. package/build/internal/cjs/index.typings.js +407 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +17 -7
  26. package/build/internal/cjs/meta.js +374 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +54 -3
  29. package/build/internal/es/index.mjs +438 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +94 -6
  32. package/build/internal/es/index.typings.mjs +403 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +17 -7
  35. package/build/internal/es/meta.mjs +370 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -292,6 +292,17 @@ interface BookedSlot {
292
292
  resource?: BookedResource;
293
293
  /** Location where the session takes place. */
294
294
  location?: Location;
295
+ /**
296
+ * How the customer has selected resources for the booking. Each resource type may have a different selection method. Check `resource` for resource details.
297
+ *
298
+ * Supported values:
299
+ * - `SPECIFIC_RESOURCE`: The customer explicitly chose a particular staff member or resource.
300
+ * - `ANY_RESOURCE`: The customer chose any available resource of that type.
301
+ * - `NO_SELECTION`: The customer made no selection for this resource type.
302
+ * @internal
303
+ * @maxSize 3
304
+ */
305
+ resourceSelections?: ResourceSelection[];
295
306
  }
296
307
  interface BookedResource {
297
308
  /**
@@ -903,7 +914,7 @@ interface CancelBookingAnonymouslyRequest {
903
914
  * The token provided in the booking links for anonymous access
904
915
  * @maxLength 2048
905
916
  */
906
- token?: string | null;
917
+ token: string | null;
907
918
  /**
908
919
  * Revision number, which increments by 1 each time the booking is updated.
909
920
  * To prevent conflicting changes, the current revision must be specified when
@@ -922,15 +933,15 @@ interface RescheduleBookingAnonymouslyRequest {
922
933
  * The token provided in the booking links for anonymous access
923
934
  * @maxLength 2048
924
935
  */
925
- token?: string | null;
936
+ token: string | null;
926
937
  /** New slot of the booking. */
927
- slot?: V2Slot;
938
+ slot: V2Slot;
928
939
  /**
929
940
  * Revision number, which increments by 1 each time the booking is rescheduled.
930
941
  * To prevent conflicting changes, the current revision must be passed when
931
942
  * rescheduling the booking.
932
943
  */
933
- revision?: string | null;
944
+ revision: string | null;
934
945
  }
935
946
  interface V2Slot {
936
947
  /** Identifier for the underlying session when the session is a single session or generated from a recurring session. */
@@ -963,6 +974,17 @@ interface V2Slot {
963
974
  * @maxLength 250
964
975
  */
965
976
  eventId?: string | null;
977
+ /**
978
+ * How the customer has selected resources for the booking. Each resource type may have a different selection method. Check `resource` for resource details.
979
+ *
980
+ * Supported values:
981
+ * - `SPECIFIC_RESOURCE`: The customer explicitly chose a particular staff member or resource.
982
+ * - `ANY_RESOURCE`: The customer chose any available resource of that type.
983
+ * - `NO_SELECTION`: The customer made no selection for this resource type.
984
+ * @internal
985
+ * @maxSize 3
986
+ */
987
+ resourceSelections?: ResourceSelection[];
966
988
  }
967
989
  declare enum LocationLocationType {
968
990
  /** Undefined location type. */
@@ -1013,7 +1035,7 @@ interface GetBookingAnonymouslyRequest {
1013
1035
  * The token provided in the booking links for anonymous access
1014
1036
  * @maxLength 2048
1015
1037
  */
1016
- token?: string | null;
1038
+ token: string | null;
1017
1039
  }
1018
1040
  /** Response for GetBookingAnonymously */
1019
1041
  interface GetBookingAnonymouslyResponse {
@@ -3951,6 +3973,72 @@ interface BookingUpdatedEnvelope {
3951
3973
  * @slug updated
3952
3974
  */
3953
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>>;
3954
4042
  /**
3955
4043
  * Updates the booking `status` to `CONFIRMED`, `PENDING`, or `DECLINED` based
3956
4044
  * on the `paymentStatus` you provide, double booking conflicts, and whether
@@ -5218,4 +5306,4 @@ interface RemoveBookingsFromMultiServiceBookingOptions {
5218
5306
  returnFullEntity?: boolean;
5219
5307
  }
5220
5308
 
5221
- 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 };
@@ -39,6 +39,7 @@ __export(index_typings_exports, {
39
39
  bulkCreateBooking: () => bulkCreateBooking2,
40
40
  bulkGetMultiServiceBookingAllowedActions: () => bulkGetMultiServiceBookingAllowedActions2,
41
41
  cancelBooking: () => cancelBooking,
42
+ cancelBookingAnonymously: () => cancelBookingAnonymously2,
42
43
  cancelMultiServiceBooking: () => cancelMultiServiceBooking2,
43
44
  confirmBooking: () => confirmBooking,
44
45
  confirmMultiServiceBooking: () => confirmMultiServiceBooking2,
@@ -47,12 +48,15 @@ __export(index_typings_exports, {
47
48
  createMultiServiceBooking: () => createMultiServiceBooking2,
48
49
  declineBooking: () => declineBooking,
49
50
  declineMultiServiceBooking: () => declineMultiServiceBooking2,
51
+ getAnonymousActionDetails: () => getAnonymousActionDetails2,
52
+ getBookingAnonymously: () => getBookingAnonymously2,
50
53
  getMultiServiceBooking: () => getMultiServiceBooking2,
51
54
  getMultiServiceBookingAvailability: () => getMultiServiceBookingAvailability2,
52
55
  markBookingAsPending: () => markBookingAsPending2,
53
56
  markMultiServiceBookingAsPending: () => markMultiServiceBookingAsPending2,
54
57
  removeBookingsFromMultiServiceBooking: () => removeBookingsFromMultiServiceBooking2,
55
58
  rescheduleBooking: () => rescheduleBooking2,
59
+ rescheduleBookingAnonymously: () => rescheduleBookingAnonymously2,
56
60
  rescheduleMultiServiceBooking: () => rescheduleMultiServiceBooking2,
57
61
  setBookingSubmissionId: () => setBookingSubmissionId2,
58
62
  updateExtendedFields: () => updateExtendedFields2,
@@ -429,7 +433,301 @@ function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
429
433
  };
430
434
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
431
435
  }
436
+ function resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl(opts) {
437
+ const domainToMappings = {
438
+ _: [
439
+ {
440
+ srcPath: "/_api/bookings-service/v2/bookings",
441
+ destPath: "/v2/bookings"
442
+ },
443
+ {
444
+ srcPath: "/_api/bookings-service/v2/bulk/bookings",
445
+ destPath: "/v2/bulk/bookings"
446
+ },
447
+ {
448
+ srcPath: "/_api/bookings-service/v2/multi_service_bookings",
449
+ destPath: "/v2/multi_service_bookings"
450
+ },
451
+ {
452
+ srcPath: "/_api/bookings-service/v2/bulk/multi_service_bookings",
453
+ destPath: "/v2/bulk/multi_service_bookings"
454
+ },
455
+ {
456
+ srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
457
+ destPath: "/v2/multi_service_bookings"
458
+ },
459
+ {
460
+ srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
461
+ destPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking"
462
+ },
463
+ {
464
+ srcPath: "/bookings/bookings/v2/bulk/bookings",
465
+ destPath: "/v2/bulk/bookings"
466
+ },
467
+ {
468
+ srcPath: "/bookings/multiServiceBookings/v2/bulk/multi_service_bookings/get_allowed_actions",
469
+ destPath: "/v2/bulk/multi_service_bookings/get_allowed_actions"
470
+ }
471
+ ],
472
+ "manage._base_domain_": [
473
+ {
474
+ srcPath: "/_api/bookings-service/v2/bookings",
475
+ destPath: "/v2/bookings"
476
+ },
477
+ {
478
+ srcPath: "/_api/bookings-service/v2/bulk/bookings",
479
+ destPath: "/v2/bulk/bookings"
480
+ },
481
+ {
482
+ srcPath: "/_api/bookings-service/v2/multi_service_bookings",
483
+ destPath: "/v2/multi_service_bookings"
484
+ },
485
+ {
486
+ srcPath: "/_api/bookings-service/v2/bulk/multi_service_bookings",
487
+ destPath: "/v2/bulk/multi_service_bookings"
488
+ }
489
+ ],
490
+ "www.wixapis.com": [
491
+ {
492
+ srcPath: "/_api/bookings-service/v2/bookings",
493
+ destPath: "/v2/bookings"
494
+ },
495
+ {
496
+ srcPath: "/bookings/v2/bookings",
497
+ destPath: "/v2/bookings"
498
+ },
499
+ {
500
+ srcPath: "/bookings/v2/bulk/bookings",
501
+ destPath: "/v2/bulk/bookings"
502
+ },
503
+ {
504
+ srcPath: "/_api/bookings-service/v2/multi_service_bookings",
505
+ destPath: "/v2/multi_service_bookings"
506
+ },
507
+ {
508
+ srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
509
+ destPath: "/v2/multi_service_bookings"
510
+ },
511
+ {
512
+ srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
513
+ destPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking"
514
+ },
515
+ {
516
+ srcPath: "/bookings/bookings/v2/bulk/bookings",
517
+ destPath: "/v2/bulk/bookings"
518
+ },
519
+ {
520
+ srcPath: "/bookings/multiServiceBookings/v2/bulk/multi_service_bookings/get_allowed_actions",
521
+ destPath: "/v2/bulk/multi_service_bookings/get_allowed_actions"
522
+ }
523
+ ],
524
+ "www._base_domain_": [
525
+ {
526
+ srcPath: "/_api/bookings-service/v2/bulk/bookings",
527
+ destPath: "/v2/bulk/bookings"
528
+ },
529
+ {
530
+ srcPath: "/_api/bookings-service/v2/bookings",
531
+ destPath: "/v2/bookings"
532
+ }
533
+ ],
534
+ "bo._base_domain_": [
535
+ {
536
+ srcPath: "/_api/bookings-service/v2/bulk/bookings",
537
+ destPath: "/v2/bulk/bookings"
538
+ },
539
+ {
540
+ srcPath: "/_api/bookings-service/v2/bookings",
541
+ destPath: "/v2/bookings"
542
+ }
543
+ ],
544
+ "wixbo.ai": [
545
+ {
546
+ srcPath: "/_api/bookings-service/v2/bulk/bookings",
547
+ destPath: "/v2/bulk/bookings"
548
+ },
549
+ {
550
+ srcPath: "/_api/bookings-service/v2/bookings",
551
+ destPath: "/v2/bookings"
552
+ }
553
+ ],
554
+ "wix-bo.com": [
555
+ {
556
+ srcPath: "/_api/bookings-service/v2/bulk/bookings",
557
+ destPath: "/v2/bulk/bookings"
558
+ },
559
+ {
560
+ srcPath: "/_api/bookings-service/v2/bookings",
561
+ destPath: "/v2/bookings"
562
+ }
563
+ ],
564
+ "*.dev.wix-code.com": [
565
+ {
566
+ srcPath: "/_api/bookings-service",
567
+ destPath: "/v2/bookings"
568
+ },
569
+ {
570
+ srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
571
+ destPath: "/v2/multi_service_bookings"
572
+ },
573
+ {
574
+ srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
575
+ destPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking"
576
+ },
577
+ {
578
+ srcPath: "/bookings/bookings/v2/bulk/bookings",
579
+ destPath: "/v2/bulk/bookings"
580
+ },
581
+ {
582
+ srcPath: "/bookings/multiServiceBookings/v2/bulk/multi_service_bookings/get_allowed_actions",
583
+ destPath: "/v2/bulk/multi_service_bookings/get_allowed_actions"
584
+ }
585
+ ]
586
+ };
587
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
588
+ }
432
589
  var PACKAGE_NAME = "@wix/auto_sdk_bookings_bookings";
590
+ function getAnonymousActionDetails(payload) {
591
+ function __getAnonymousActionDetails({ host }) {
592
+ const metadata = {
593
+ entityFqdn: "wix.bookings.v2.booking",
594
+ method: "GET",
595
+ methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetAnonymousActionDetails",
596
+ packageName: PACKAGE_NAME,
597
+ migrationOptions: {
598
+ optInTransformResponse: true
599
+ },
600
+ url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
601
+ protoPath: "/v2/bookings/anonymous-actions-details",
602
+ data: payload,
603
+ host
604
+ }),
605
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
606
+ };
607
+ return metadata;
608
+ }
609
+ return __getAnonymousActionDetails;
610
+ }
611
+ function cancelBookingAnonymously(payload) {
612
+ function __cancelBookingAnonymously({ host }) {
613
+ const metadata = {
614
+ entityFqdn: "wix.bookings.v2.booking",
615
+ method: "POST",
616
+ methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.CancelBookingAnonymously",
617
+ packageName: PACKAGE_NAME,
618
+ migrationOptions: {
619
+ optInTransformResponse: true
620
+ },
621
+ url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
622
+ protoPath: "/v2/bookings/{token}/anonymous-cancel",
623
+ data: payload,
624
+ host
625
+ }),
626
+ data: payload,
627
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
628
+ {
629
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
630
+ paths: [
631
+ { path: "booking.createdDate" },
632
+ { path: "booking.startDate" },
633
+ { path: "booking.endDate" },
634
+ { path: "booking.updatedDate" },
635
+ { path: "booking.canceledDate" }
636
+ ]
637
+ },
638
+ {
639
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
640
+ paths: [
641
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
642
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
643
+ ]
644
+ }
645
+ ])
646
+ };
647
+ return metadata;
648
+ }
649
+ return __cancelBookingAnonymously;
650
+ }
651
+ function rescheduleBookingAnonymously(payload) {
652
+ function __rescheduleBookingAnonymously({ host }) {
653
+ const metadata = {
654
+ entityFqdn: "wix.bookings.v2.booking",
655
+ method: "POST",
656
+ methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.RescheduleBookingAnonymously",
657
+ packageName: PACKAGE_NAME,
658
+ migrationOptions: {
659
+ optInTransformResponse: true
660
+ },
661
+ url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
662
+ protoPath: "/v2/bookings/{token}/anonymous-reschedule",
663
+ data: payload,
664
+ host
665
+ }),
666
+ data: payload,
667
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
668
+ {
669
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
670
+ paths: [
671
+ { path: "booking.createdDate" },
672
+ { path: "booking.startDate" },
673
+ { path: "booking.endDate" },
674
+ { path: "booking.updatedDate" },
675
+ { path: "booking.canceledDate" }
676
+ ]
677
+ },
678
+ {
679
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
680
+ paths: [
681
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
682
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
683
+ ]
684
+ }
685
+ ])
686
+ };
687
+ return metadata;
688
+ }
689
+ return __rescheduleBookingAnonymously;
690
+ }
691
+ function getBookingAnonymously(payload) {
692
+ function __getBookingAnonymously({ host }) {
693
+ const metadata = {
694
+ entityFqdn: "wix.bookings.v2.booking",
695
+ method: "GET",
696
+ methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetBookingAnonymously",
697
+ packageName: PACKAGE_NAME,
698
+ migrationOptions: {
699
+ optInTransformResponse: true
700
+ },
701
+ url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
702
+ protoPath: "/v2/bookings/{token}/anonymous-get",
703
+ data: payload,
704
+ host
705
+ }),
706
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
707
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
708
+ {
709
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
710
+ paths: [
711
+ { path: "booking.createdDate" },
712
+ { path: "booking.startDate" },
713
+ { path: "booking.endDate" },
714
+ { path: "booking.updatedDate" },
715
+ { path: "booking.canceledDate" }
716
+ ]
717
+ },
718
+ {
719
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
720
+ paths: [
721
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
722
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
723
+ ]
724
+ }
725
+ ])
726
+ };
727
+ return metadata;
728
+ }
729
+ return __getBookingAnonymously;
730
+ }
433
731
  function confirmOrDeclineBooking(payload) {
434
732
  function __confirmOrDeclineBooking({ host }) {
435
733
  const metadata = {
@@ -1500,6 +1798,111 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1500
1798
  SortOrder2["DESC"] = "DESC";
1501
1799
  return SortOrder2;
1502
1800
  })(SortOrder || {});
1801
+ async function getAnonymousActionDetails2(options) {
1802
+ const { httpClient, sideEffects } = arguments[1];
1803
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1804
+ bookingId: options?.bookingId
1805
+ });
1806
+ const reqOpts = getAnonymousActionDetails(payload);
1807
+ sideEffects?.onSiteCall?.();
1808
+ try {
1809
+ const result = await httpClient.request(reqOpts);
1810
+ sideEffects?.onSuccess?.(result);
1811
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1812
+ } catch (err) {
1813
+ const transformedError = (0, import_transform_error.transformError)(
1814
+ err,
1815
+ {
1816
+ spreadPathsToArguments: {},
1817
+ explicitPathsToArguments: { bookingId: "$[0].bookingId" },
1818
+ singleArgumentUnchanged: false
1819
+ },
1820
+ ["options"]
1821
+ );
1822
+ sideEffects?.onError?.(err);
1823
+ throw transformedError;
1824
+ }
1825
+ }
1826
+ async function cancelBookingAnonymously2(token, options) {
1827
+ const { httpClient, sideEffects } = arguments[2];
1828
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1829
+ token,
1830
+ revision: options?.revision
1831
+ });
1832
+ const reqOpts = cancelBookingAnonymously(payload);
1833
+ sideEffects?.onSiteCall?.();
1834
+ try {
1835
+ const result = await httpClient.request(reqOpts);
1836
+ sideEffects?.onSuccess?.(result);
1837
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1838
+ } catch (err) {
1839
+ const transformedError = (0, import_transform_error.transformError)(
1840
+ err,
1841
+ {
1842
+ spreadPathsToArguments: {},
1843
+ explicitPathsToArguments: { token: "$[0]", revision: "$[1].revision" },
1844
+ singleArgumentUnchanged: false
1845
+ },
1846
+ ["token", "options"]
1847
+ );
1848
+ sideEffects?.onError?.(err);
1849
+ throw transformedError;
1850
+ }
1851
+ }
1852
+ async function rescheduleBookingAnonymously2(token, slot, options) {
1853
+ const { httpClient, sideEffects } = arguments[3];
1854
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1855
+ token,
1856
+ slot,
1857
+ revision: options?.revision
1858
+ });
1859
+ const reqOpts = rescheduleBookingAnonymously(payload);
1860
+ sideEffects?.onSiteCall?.();
1861
+ try {
1862
+ const result = await httpClient.request(reqOpts);
1863
+ sideEffects?.onSuccess?.(result);
1864
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1865
+ } catch (err) {
1866
+ const transformedError = (0, import_transform_error.transformError)(
1867
+ err,
1868
+ {
1869
+ spreadPathsToArguments: {},
1870
+ explicitPathsToArguments: {
1871
+ token: "$[0]",
1872
+ slot: "$[1]",
1873
+ revision: "$[2].revision"
1874
+ },
1875
+ singleArgumentUnchanged: false
1876
+ },
1877
+ ["token", "slot", "options"]
1878
+ );
1879
+ sideEffects?.onError?.(err);
1880
+ throw transformedError;
1881
+ }
1882
+ }
1883
+ async function getBookingAnonymously2(token) {
1884
+ const { httpClient, sideEffects } = arguments[1];
1885
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ token });
1886
+ const reqOpts = getBookingAnonymously(payload);
1887
+ sideEffects?.onSiteCall?.();
1888
+ try {
1889
+ const result = await httpClient.request(reqOpts);
1890
+ sideEffects?.onSuccess?.(result);
1891
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1892
+ } catch (err) {
1893
+ const transformedError = (0, import_transform_error.transformError)(
1894
+ err,
1895
+ {
1896
+ spreadPathsToArguments: {},
1897
+ explicitPathsToArguments: { token: "$[0]" },
1898
+ singleArgumentUnchanged: false
1899
+ },
1900
+ ["token"]
1901
+ );
1902
+ sideEffects?.onError?.(err);
1903
+ throw transformedError;
1904
+ }
1905
+ }
1503
1906
  async function confirmOrDeclineBooking2(bookingId, options) {
1504
1907
  const { httpClient, sideEffects } = arguments[2];
1505
1908
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -2279,6 +2682,7 @@ async function removeBookingsFromMultiServiceBooking2(multiServiceBookingId, opt
2279
2682
  bulkCreateBooking,
2280
2683
  bulkGetMultiServiceBookingAllowedActions,
2281
2684
  cancelBooking,
2685
+ cancelBookingAnonymously,
2282
2686
  cancelMultiServiceBooking,
2283
2687
  confirmBooking,
2284
2688
  confirmMultiServiceBooking,
@@ -2287,12 +2691,15 @@ async function removeBookingsFromMultiServiceBooking2(multiServiceBookingId, opt
2287
2691
  createMultiServiceBooking,
2288
2692
  declineBooking,
2289
2693
  declineMultiServiceBooking,
2694
+ getAnonymousActionDetails,
2695
+ getBookingAnonymously,
2290
2696
  getMultiServiceBooking,
2291
2697
  getMultiServiceBookingAvailability,
2292
2698
  markBookingAsPending,
2293
2699
  markMultiServiceBookingAsPending,
2294
2700
  removeBookingsFromMultiServiceBooking,
2295
2701
  rescheduleBooking,
2702
+ rescheduleBookingAnonymously,
2296
2703
  rescheduleMultiServiceBooking,
2297
2704
  setBookingSubmissionId,
2298
2705
  updateExtendedFields,