@wix/auto_sdk_bookings_bookings 1.0.90 → 1.0.92

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 +20 -3
  2. package/build/cjs/index.js +91 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +54 -6
  5. package/build/cjs/index.typings.js +48 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +18 -7
  8. package/build/cjs/meta.js +41 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +20 -3
  11. package/build/es/index.mjs +89 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +54 -6
  14. package/build/es/index.typings.mjs +47 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +18 -7
  17. package/build/es/meta.mjs +40 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +20 -3
  20. package/build/internal/cjs/index.js +91 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +54 -6
  23. package/build/internal/cjs/index.typings.js +48 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +18 -7
  26. package/build/internal/cjs/meta.js +41 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +20 -3
  29. package/build/internal/es/index.mjs +89 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +54 -6
  32. package/build/internal/es/index.typings.mjs +47 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +18 -7
  35. package/build/internal/es/meta.mjs +40 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1948,6 +1948,15 @@ interface CancelBookingFlowControlSettings {
1948
1948
  * Default: `false`.
1949
1949
  */
1950
1950
  withRefund?: boolean | null;
1951
+ /**
1952
+ * Whether to waive the cancellation fee when canceling the booking.
1953
+ *
1954
+ * - `true`: The customer doesn't have to pay a cancellation fee.
1955
+ * - `false`: The customer must pay the cancellation fee that's defined in the service's [policy](https://dev.wix.com/docs/api-reference/business-solutions/bookings/policies/booking-policies/introduction).
1956
+ *
1957
+ * Default: `false`.
1958
+ */
1959
+ waiveCancellationFee?: boolean | null;
1951
1960
  }
1952
1961
  interface CancelMultiServiceBookingResponse {
1953
1962
  /** Canceled multi-service booking. */
@@ -2863,14 +2872,15 @@ interface NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf {
2863
2872
  }
2864
2873
  interface BulkCalculateAllowedActionsRequest {
2865
2874
  /**
2866
- * The booking IDs for which we want to calculate the allowed actions.
2875
+ * List of booking IDs to calculate allowed actions for.
2867
2876
  * @minSize 1
2868
2877
  */
2869
- bookingIds?: string[] | null;
2878
+ bookingIds: string[] | null;
2870
2879
  }
2871
2880
  interface BulkCalculateAllowedActionsResponse {
2881
+ /** Results for each booking in the request, containing the allowed actions or error information. */
2872
2882
  results?: BulkCalculateAllowedActionsResult[];
2873
- /** Total number of successes and failures for Bulk Calculate Allowed Actions. */
2883
+ /** Summary of successful and failed operations. */
2874
2884
  bulkActionMetadata?: BulkActionMetadata;
2875
2885
  }
2876
2886
  interface GetSlotAvailabilityRequest {
@@ -2985,9 +2995,9 @@ interface MarkBookingAsPendingResponse {
2985
2995
  booking?: Booking;
2986
2996
  }
2987
2997
  interface BookingMarkedAsPending {
2988
- /** The booking object that was marked as pending. */
2998
+ /** The booking that was marked as pending. */
2989
2999
  booking?: Booking;
2990
- /** Information about whether to notify the customer upon manual confirmation of the pending booking and the message to send. */
3000
+ /** Customer notification settings for when the pending booking is manually confirmed. */
2991
3001
  participantNotification?: ParticipantNotification;
2992
3002
  /**
2993
3003
  * Whether to send an SMS reminder to the customer 24 hours before the session starts.
@@ -3890,6 +3900,30 @@ interface BookingUpdatedEnvelope {
3890
3900
  * @slug updated
3891
3901
  */
3892
3902
  declare function onBookingUpdated(handler: (event: BookingUpdatedEnvelope) => void | Promise<void>): void;
3903
+ interface BookingMarkedAsPendingEnvelope {
3904
+ data: BookingMarkedAsPending;
3905
+ metadata: EventMetadata;
3906
+ }
3907
+ /**
3908
+ * Triggered when a booking is marked as pending.
3909
+ * @permissionScope Manage Bookings
3910
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
3911
+ * @permissionScope Read Bookings - Including Participants
3912
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
3913
+ * @permissionScope Read Bookings - all read permissions
3914
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
3915
+ * @permissionScope Manage Bookings - all permissions
3916
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
3917
+ * @permissionScope Read bookings calendar - including participants
3918
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
3919
+ * @permissionId BOOKINGS.BOOKING_READ
3920
+ * @webhook
3921
+ * @eventType wix.bookings.v2.booking_markedAsPending
3922
+ * @serviceIdentifier com.wixpress.bookings.bookings.v2.Bookings
3923
+ * @slug markedAsPending
3924
+ * @documentationMaturity preview
3925
+ */
3926
+ declare function onBookingMarkedAsPending(handler: (event: BookingMarkedAsPendingEnvelope) => void | Promise<void>): void;
3893
3927
  interface BookingNumberOfParticipantsUpdatedEnvelope {
3894
3928
  data: NumberOfParticipantsUpdated;
3895
3929
  metadata: EventMetadata;
@@ -5081,6 +5115,20 @@ interface UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf {
5081
5115
  */
5082
5116
  participantsChoices?: ParticipantChoices;
5083
5117
  }
5118
+ /**
5119
+ * Checks whether you can [reschedule](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-writer-v2/reschedule-booking) or [cancel](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-writer-v2/cancel-booking) a list of bookings without using [force resolution](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-writer-v2/sample-flows#force-resolution).
5120
+ *
5121
+ *
5122
+ * Call this method to determine which standard actions are available before attempting to modify bookings. If standard actions aren't available, you may need to use force resolution to override business rules and availability validation.
5123
+ * @param bookingIds - List of booking IDs to calculate allowed actions for.
5124
+ * @public
5125
+ * @documentationMaturity preview
5126
+ * @requiredField bookingIds
5127
+ * @permissionId BOOKINGS.BULK_CALCULATE_ALLOWED_ACTIONS
5128
+ * @applicableIdentity APP
5129
+ * @fqn com.wixpress.bookings.bookings.v2.Bookings.BulkCalculateAllowedActions
5130
+ */
5131
+ declare function bulkCalculateAllowedActions(bookingIds: string[]): Promise<NonNullablePaths<BulkCalculateAllowedActionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.cancel` | `results.${number}.item.reschedule` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
5084
5132
  /**
5085
5133
  * Updates the booking status to `PENDING`.
5086
5134
  *
@@ -5247,4 +5295,4 @@ interface RescheduleBookingAnonymouslyOptions {
5247
5295
  */
5248
5296
  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` | `booking.bookedAddOns` | `booking.bookedAddOns.${number}._id` | `booking.bookedAddOns.${number}.groupId` | `allowedActionsAnonymously.cancel` | `allowedActionsAnonymously.reschedule`, 7>>;
5249
5297
 
5250
- 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, type PhoneCall, 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 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 V2PhoneCall, 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 };
5298
+ 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 BookingMarkedAsPendingEnvelope, 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, type PhoneCall, 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 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 V2PhoneCall, 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, bulkCalculateAllowedActions, bulkConfirmOrDeclineBooking, bulkCreateBooking, bulkGetMultiServiceBookingAllowedActions, cancelBooking, cancelBookingAnonymously, cancelMultiServiceBooking, confirmBooking, confirmMultiServiceBooking, confirmOrDeclineBooking, createBooking, createMultiServiceBooking, declineBooking, declineMultiServiceBooking, getAnonymousActionDetails, getBookingAnonymously, getMultiServiceBooking, getMultiServiceBookingAvailability, markBookingAsPending, markMultiServiceBookingAsPending, onBookingCanceled, onBookingConfirmed, onBookingCreated, onBookingDeclined, onBookingMarkedAsPending, onBookingNumberOfParticipantsUpdated, onBookingRescheduled, onBookingUpdated, removeBookingsFromMultiServiceBooking, rescheduleBooking, rescheduleBookingAnonymously, rescheduleMultiServiceBooking, setBookingSubmissionId, updateExtendedFields, updateNumberOfParticipants };
@@ -35,6 +35,7 @@ __export(index_typings_exports, {
35
35
  ValueType: () => ValueType,
36
36
  WebhookIdentityType: () => WebhookIdentityType,
37
37
  addBookingsToMultiServiceBooking: () => addBookingsToMultiServiceBooking2,
38
+ bulkCalculateAllowedActions: () => bulkCalculateAllowedActions2,
38
39
  bulkConfirmOrDeclineBooking: () => bulkConfirmOrDeclineBooking2,
39
40
  bulkCreateBooking: () => bulkCreateBooking2,
40
41
  bulkGetMultiServiceBookingAllowedActions: () => bulkGetMultiServiceBookingAllowedActions2,
@@ -1515,6 +1516,27 @@ function bookingsUpdateNumberOfParticipants(payload) {
1515
1516
  }
1516
1517
  return __bookingsUpdateNumberOfParticipants;
1517
1518
  }
1519
+ function bulkCalculateAllowedActions(payload) {
1520
+ function __bulkCalculateAllowedActions({ host }) {
1521
+ const metadata = {
1522
+ entityFqdn: "wix.bookings.v2.booking",
1523
+ method: "POST",
1524
+ methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.BulkCalculateAllowedActions",
1525
+ packageName: PACKAGE_NAME,
1526
+ migrationOptions: {
1527
+ optInTransformResponse: true
1528
+ },
1529
+ url: resolveComWixpressBookingsBookingsV2BookingsUrl({
1530
+ protoPath: "/v2/bulk/bookings/calculate_allowed_actions",
1531
+ data: payload,
1532
+ host
1533
+ }),
1534
+ data: payload
1535
+ };
1536
+ return metadata;
1537
+ }
1538
+ return __bulkCalculateAllowedActions;
1539
+ }
1518
1540
  function markBookingAsPending(payload) {
1519
1541
  function __markBookingAsPending({ host }) {
1520
1542
  const metadata = {
@@ -2519,6 +2541,31 @@ async function updateNumberOfParticipants(bookingId, options) {
2519
2541
  throw transformedError;
2520
2542
  }
2521
2543
  }
2544
+ async function bulkCalculateAllowedActions2(bookingIds) {
2545
+ const { httpClient, sideEffects } = arguments[1];
2546
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2547
+ bookingIds
2548
+ });
2549
+ const reqOpts = bulkCalculateAllowedActions(payload);
2550
+ sideEffects?.onSiteCall?.();
2551
+ try {
2552
+ const result = await httpClient.request(reqOpts);
2553
+ sideEffects?.onSuccess?.(result);
2554
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2555
+ } catch (err) {
2556
+ const transformedError = (0, import_transform_error.transformError)(
2557
+ err,
2558
+ {
2559
+ spreadPathsToArguments: {},
2560
+ explicitPathsToArguments: { bookingIds: "$[0]" },
2561
+ singleArgumentUnchanged: false
2562
+ },
2563
+ ["bookingIds"]
2564
+ );
2565
+ sideEffects?.onError?.(err);
2566
+ throw transformedError;
2567
+ }
2568
+ }
2522
2569
  async function markBookingAsPending2(bookingId, revision, options) {
2523
2570
  const { httpClient, sideEffects } = arguments[3];
2524
2571
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -2680,6 +2727,7 @@ async function getBookingAnonymously2(token) {
2680
2727
  ValueType,
2681
2728
  WebhookIdentityType,
2682
2729
  addBookingsToMultiServiceBooking,
2730
+ bulkCalculateAllowedActions,
2683
2731
  bulkConfirmOrDeclineBooking,
2684
2732
  bulkCreateBooking,
2685
2733
  bulkGetMultiServiceBookingAllowedActions,