@wix/auto_sdk_bookings_bookings 1.0.46 → 1.0.48
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 +30 -14
- package/build/cjs/index.js +96 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +76 -20
- package/build/cjs/index.typings.js +86 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +48 -8
- package/build/cjs/meta.js +65 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +30 -14
- package/build/es/index.mjs +95 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +76 -20
- package/build/es/index.typings.mjs +85 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +48 -8
- package/build/es/meta.mjs +64 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +30 -14
- package/build/internal/cjs/index.js +96 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +76 -20
- package/build/internal/cjs/index.typings.js +86 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +48 -8
- package/build/internal/cjs/meta.js +65 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +30 -14
- package/build/internal/es/index.mjs +95 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +76 -20
- package/build/internal/es/index.typings.mjs +85 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +48 -8
- package/build/internal/es/meta.mjs +64 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -243,9 +243,9 @@ interface BookedSlot {
|
|
|
243
243
|
* @maxLength 250
|
|
244
244
|
*/
|
|
245
245
|
eventId?: string | null;
|
|
246
|
-
/** The start time of this slot in [
|
|
246
|
+
/** The start time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`. */
|
|
247
247
|
startDate?: string | null;
|
|
248
|
-
/** The end time of this slot in [
|
|
248
|
+
/** The end time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`. */
|
|
249
249
|
endDate?: string | null;
|
|
250
250
|
/** The time zone according to which the slot was shown to the user when booking, and should be shown in the future. */
|
|
251
251
|
timezone?: string | null;
|
|
@@ -332,12 +332,12 @@ interface BookedSchedule {
|
|
|
332
332
|
*/
|
|
333
333
|
timezone?: string | null;
|
|
334
334
|
/**
|
|
335
|
-
* Start time of the first session related to the booking in [
|
|
335
|
+
* Start time of the first session related to the booking in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`.
|
|
336
336
|
* @readonly
|
|
337
337
|
*/
|
|
338
338
|
firstSessionStart?: string | null;
|
|
339
339
|
/**
|
|
340
|
-
* End time of the last session related to the booking in [
|
|
340
|
+
* End time of the last session related to the booking in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`.
|
|
341
341
|
* @readonly
|
|
342
342
|
*/
|
|
343
343
|
lastSessionEnd?: string | null;
|
|
@@ -1668,9 +1668,9 @@ interface V2Slot {
|
|
|
1668
1668
|
serviceId?: string;
|
|
1669
1669
|
/** Schedule identifier. Required. */
|
|
1670
1670
|
scheduleId?: string;
|
|
1671
|
-
/** The start time of this slot
|
|
1671
|
+
/** The start time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`. */
|
|
1672
1672
|
startDate?: string | null;
|
|
1673
|
-
/** The end time of this slot
|
|
1673
|
+
/** The end time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`. */
|
|
1674
1674
|
endDate?: string | null;
|
|
1675
1675
|
/** The timezone according to which the slot is calculated and presented. */
|
|
1676
1676
|
timezone?: string | null;
|
|
@@ -2523,14 +2523,14 @@ interface MarkBookingAsPendingRequest {
|
|
|
2523
2523
|
* ID of the booking to mark as `PENDING`.
|
|
2524
2524
|
* @format GUID
|
|
2525
2525
|
*/
|
|
2526
|
-
bookingId
|
|
2526
|
+
bookingId: string;
|
|
2527
2527
|
/**
|
|
2528
2528
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
2529
2529
|
*
|
|
2530
2530
|
* To prevent conflicting changes, the current revision must be specified when
|
|
2531
2531
|
* managing the booking.
|
|
2532
2532
|
*/
|
|
2533
|
-
revision
|
|
2533
|
+
revision: string | null;
|
|
2534
2534
|
/**
|
|
2535
2535
|
* Information about whether to notify the customer and
|
|
2536
2536
|
* the message to send.
|
|
@@ -3271,6 +3271,23 @@ type UpdateNumberOfParticipantsApplicationErrors = {
|
|
|
3271
3271
|
description?: string;
|
|
3272
3272
|
data?: Record<string, any>;
|
|
3273
3273
|
};
|
|
3274
|
+
type MarkBookingAsPendingApplicationErrors = {
|
|
3275
|
+
code?: 'BOOKING_MARK_BOOKING_AS_PENDING';
|
|
3276
|
+
description?: string;
|
|
3277
|
+
data?: Record<string, any>;
|
|
3278
|
+
} | {
|
|
3279
|
+
code?: 'BOOKING_NOT_FOUND';
|
|
3280
|
+
description?: string;
|
|
3281
|
+
data?: Record<string, any>;
|
|
3282
|
+
} | {
|
|
3283
|
+
code?: 'NO_OPEN_SPOTS';
|
|
3284
|
+
description?: string;
|
|
3285
|
+
data?: Record<string, any>;
|
|
3286
|
+
} | {
|
|
3287
|
+
code?: 'NOT_PENDING_APPROVAL_SERVICE';
|
|
3288
|
+
description?: string;
|
|
3289
|
+
data?: Record<string, any>;
|
|
3290
|
+
};
|
|
3274
3291
|
type CreateMultiServiceBookingApplicationErrors = {
|
|
3275
3292
|
code?: 'VALIDATION_FAILURE';
|
|
3276
3293
|
description?: string;
|
|
@@ -4490,6 +4507,45 @@ interface UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf {
|
|
|
4490
4507
|
*/
|
|
4491
4508
|
participantsChoices?: ParticipantChoices;
|
|
4492
4509
|
}
|
|
4510
|
+
/** @param bookingId - ID of the booking to mark as `PENDING`.
|
|
4511
|
+
* @param revision - Revision number, which increments by 1 each time the booking is updated.
|
|
4512
|
+
*
|
|
4513
|
+
* To prevent conflicting changes, the current revision must be specified when
|
|
4514
|
+
* managing the booking.
|
|
4515
|
+
* @public
|
|
4516
|
+
* @documentationMaturity preview
|
|
4517
|
+
* @requiredField bookingId
|
|
4518
|
+
* @requiredField revision
|
|
4519
|
+
* @permissionId BOOKINGS.BOOKING_MARK_BOOKING_AS_PENDING
|
|
4520
|
+
* @applicableIdentity APP
|
|
4521
|
+
* @fqn com.wixpress.bookings.bookings.v2.Bookings.MarkBookingAsPending
|
|
4522
|
+
*/
|
|
4523
|
+
declare function markBookingAsPending(bookingId: string, revision: string, options?: MarkBookingAsPendingOptions): Promise<NonNullablePaths<MarkBookingAsPendingResponse, {
|
|
4524
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
4525
|
+
}[BookingNonNullablePaths]> & {
|
|
4526
|
+
__applicationErrorsType?: MarkBookingAsPendingApplicationErrors;
|
|
4527
|
+
}>;
|
|
4528
|
+
interface MarkBookingAsPendingOptions {
|
|
4529
|
+
/**
|
|
4530
|
+
* Information about whether to notify the customer and
|
|
4531
|
+
* the message to send.
|
|
4532
|
+
*/
|
|
4533
|
+
participantNotification?: ParticipantNotification;
|
|
4534
|
+
/**
|
|
4535
|
+
* Whether to send an SMS reminder to the customer 24 hours before the
|
|
4536
|
+
* session starts. The phone number is taken from `contactDetails.phone`.
|
|
4537
|
+
*/
|
|
4538
|
+
sendSmsReminder?: boolean | null;
|
|
4539
|
+
/** Payment status to set for the booking. */
|
|
4540
|
+
paymentStatus?: PaymentStatusWithLiterals;
|
|
4541
|
+
/** Whether this booking has a conflict with at least 1 other confirmed booking. */
|
|
4542
|
+
doubleBooked?: boolean | null;
|
|
4543
|
+
/**
|
|
4544
|
+
* Whether to ignore specific standard procedures of the Wix Bookings flow.
|
|
4545
|
+
* For example, whether to check availability before updating the status.
|
|
4546
|
+
*/
|
|
4547
|
+
flowControlSettings?: MarkBookingAsPendingFlowControlSettings;
|
|
4548
|
+
}
|
|
4493
4549
|
/**
|
|
4494
4550
|
* Creates a multi-service booking and all included single-service bookings simultaneously.
|
|
4495
4551
|
*
|
|
@@ -4504,15 +4560,15 @@ interface UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf {
|
|
|
4504
4560
|
*
|
|
4505
4561
|
* __Timing specification__: You must provide complete `slot` details (`scheduleId`, `startDate`, `endDate`) for each single-service booking. Wix Bookings validates sequential timing but doesn't auto-calculate it.
|
|
4506
4562
|
*
|
|
4507
|
-
* __Package pricing__: The total price equals the sum of individual services. Wix Bookings automatically syncs the payment status from the corresponding Wix eCommerce order ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecommerce/orders/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)) if the customer paid via an eCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/
|
|
4563
|
+
* __Package pricing__: The total price equals the sum of individual services. Wix Bookings automatically syncs the payment status from the corresponding Wix eCommerce order ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecommerce/orders/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)) if the customer paid via an eCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
|
|
4508
4564
|
*
|
|
4509
4565
|
* __Package notifications__: Customers receive 1 unified notification for the entire multi-service booking. Wix Bookings doesn't send notifications for the package's individual single-service bookings.
|
|
4510
4566
|
*
|
|
4511
4567
|
* ## Related methods
|
|
4512
4568
|
*
|
|
4513
|
-
* Verify availability first with List Multi Service Availability Time Slots ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/
|
|
4569
|
+
* Verify availability first with List Multi Service Availability Time Slots ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/time-slots/multi-service-availability-time-slots/list-multi-service-availability-time-slots) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/time-slots-v2/list-multi-service-availability-time-slots)).
|
|
4514
4570
|
*
|
|
4515
|
-
* See Create Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings
|
|
4571
|
+
* See Create Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/create-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/create-booking)) for more details about constraints and effects of creating single-service bookings.
|
|
4516
4572
|
* @param bookings - Between 2 to 8 new single-service booking specifications to create and combine in a multi-service booking.
|
|
4517
4573
|
*
|
|
4518
4574
|
* Each single-service booking specification must include `slot` details (`scheduleId`, `startDate`, and `endDate`).
|
|
@@ -4572,7 +4628,7 @@ interface CreateMultiServiceBookingOptions {
|
|
|
4572
4628
|
*
|
|
4573
4629
|
* This method fails if it can't reschedule at least 1 single-service booking. You must provide the current revision number for each single-service booking you're rescheduling to prevent conflicting changes.
|
|
4574
4630
|
*
|
|
4575
|
-
* See Reschedule Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings
|
|
4631
|
+
* See Reschedule Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/reschedule-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/reschedule-booking)) for single-service booking rescheduling details.
|
|
4576
4632
|
* @param multiServiceBookingId - ID of the multi-service booking to reschedule.
|
|
4577
4633
|
* @param rescheduleBookingsInfo - Information about the single-service bookings to reschedule.
|
|
4578
4634
|
* @public
|
|
@@ -4609,7 +4665,7 @@ interface RescheduleMultiServiceBookingOptions {
|
|
|
4609
4665
|
*
|
|
4610
4666
|
* Wix Bookings considers:
|
|
4611
4667
|
* - The relevant services' booking policies ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction)).
|
|
4612
|
-
* - The availability of all required resources ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/introduction)).
|
|
4668
|
+
* - The availability of all required resources ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction)).
|
|
4613
4669
|
*
|
|
4614
4670
|
* Call this method to check if an existing multi-service booking is still valid after business configuration changes.
|
|
4615
4671
|
* For example, staff changes, policy updates, or capacity modifications.
|
|
@@ -4635,7 +4691,7 @@ declare function getMultiServiceBookingAvailability(multiServiceBookingId: strin
|
|
|
4635
4691
|
* Cancels the entire multi-service booking, updating the status of all single-service bookings to `CANCELED`.
|
|
4636
4692
|
* The call fails if all single-service bookings are already canceled or declined.
|
|
4637
4693
|
*
|
|
4638
|
-
* See Cancel Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings
|
|
4694
|
+
* See Cancel Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/cancel-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/cancel-booking)) for single-service booking cancellation details.
|
|
4639
4695
|
* @param multiServiceBookingId - ID of the multi-service booking to cancel.
|
|
4640
4696
|
* @public
|
|
4641
4697
|
* @documentationMaturity preview
|
|
@@ -4683,7 +4739,7 @@ interface CancelMultiServiceBookingOptions {
|
|
|
4683
4739
|
* - __Customer notifications__: Send messages using `participantNotification`.
|
|
4684
4740
|
* - __Revision control__: Requires current revision numbers for all single-service bookings.
|
|
4685
4741
|
*
|
|
4686
|
-
* See Mark Booking as Pending ([SDK](https://dev.wix.com/docs/
|
|
4742
|
+
* See Mark Booking as Pending ([SDK](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/mark-booking-as-pending) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/mark-booking-as-pending)) for more details about marking single-service bookings as pending.
|
|
4687
4743
|
* @param multiServiceBookingId - ID of the multi-service booking to mark as `PENDING`.
|
|
4688
4744
|
* @public
|
|
4689
4745
|
* @documentationMaturity preview
|
|
@@ -4745,7 +4801,7 @@ interface MarkMultiServiceBookingAsPendingOptions {
|
|
|
4745
4801
|
* - __Customer notifications__: Send messages using `participantNotification`.
|
|
4746
4802
|
* - __Revision control__: Requires current revision numbers for all single-service bookings.
|
|
4747
4803
|
*
|
|
4748
|
-
* See Confirm Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings
|
|
4804
|
+
* See Confirm Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/confirm-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-booking)) for more details about confirming single-service bookings.
|
|
4749
4805
|
* @param multiServiceBookingId - ID of the multi-service booking to confirm its related bookings.
|
|
4750
4806
|
* @public
|
|
4751
4807
|
* @documentationMaturity preview
|
|
@@ -4803,7 +4859,7 @@ interface ConfirmMultiServiceBookingOptions {
|
|
|
4803
4859
|
* - __Customer notifications__: Send messages using `participantNotification`.
|
|
4804
4860
|
* - __Revision control__: Requires current revision numbers for all single-service bookings.
|
|
4805
4861
|
*
|
|
4806
|
-
* Refer to Decline Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings
|
|
4862
|
+
* Refer to Decline Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/decline-booking)) for more details about declining single-service bookings.
|
|
4807
4863
|
* @param multiServiceBookingId - ID of the multi-service booking to decline.
|
|
4808
4864
|
* @public
|
|
4809
4865
|
* @documentationMaturity preview
|
|
@@ -4887,7 +4943,7 @@ declare function getMultiServiceBooking(multiServiceBookingId: string): Promise<
|
|
|
4887
4943
|
* ## When to call this method
|
|
4888
4944
|
*
|
|
4889
4945
|
* Call this method to add 1 or more existing single-service bookings to an existing multi-service booking.
|
|
4890
|
-
* For creating a new multi-service booking with new single-service bookings, call Create Multi Service Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings
|
|
4946
|
+
* For creating a new multi-service booking with new single-service bookings, call Create Multi Service Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/create-multi-service-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/create-multi-service-booking)) instead.
|
|
4891
4947
|
*
|
|
4892
4948
|
* ## Package integration
|
|
4893
4949
|
*
|
|
@@ -4937,7 +4993,7 @@ interface AddBookingsToMultiServiceBookingOptions {
|
|
|
4937
4993
|
*
|
|
4938
4994
|
* __Selective removal__: Specify single-service booking IDs and revisions to remove only specific single-service bookings from the package.
|
|
4939
4995
|
*
|
|
4940
|
-
* __Sequential scheduling__: To maintain sequential scheduling, remove only first or last single-service bookings. For middle bookings, first reschedule all relevant single-service bookings to eliminate gaps. To do so, call Reschedule Multi Service Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings
|
|
4996
|
+
* __Sequential scheduling__: To maintain sequential scheduling, remove only first or last single-service bookings. For middle bookings, first reschedule all relevant single-service bookings to eliminate gaps. To do so, call Reschedule Multi Service Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/reschedule-multi-service-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/reschedule-multi-service-booking)) before removing the unwanted bookings.
|
|
4941
4997
|
*
|
|
4942
4998
|
* ## Removal behavior
|
|
4943
4999
|
*
|
|
@@ -4975,4 +5031,4 @@ interface RemoveBookingsFromMultiServiceBookingOptions {
|
|
|
4975
5031
|
returnFullEntity?: boolean;
|
|
4976
5032
|
}
|
|
4977
5033
|
|
|
4978
|
-
export { type ActionEvent, Actor, type ActorWithLiterals, type AddBookingsToMultiServiceBookingApplicationErrors, type AddBookingsToMultiServiceBookingOptions, type AddBookingsToMultiServiceBookingRequest, type AddBookingsToMultiServiceBookingResponse, type Address, type AddressLocation, type AddressStreetOneOf, type AllowedActions, 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 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 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 MarkBookingAsPendingFlowControlSettings, 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 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 RestoreInfo, type ScheduleAvailability, SelectedPaymentOption, type SelectedPaymentOptionWithLiterals, 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, markMultiServiceBookingAsPending, onBookingCanceled, onBookingConfirmed, onBookingCreated, onBookingDeclined, onBookingNumberOfParticipantsUpdated, onBookingRescheduled, onBookingUpdated, removeBookingsFromMultiServiceBooking, rescheduleBooking, rescheduleMultiServiceBooking, setBookingSubmissionId, updateExtendedFields, updateNumberOfParticipants };
|
|
5034
|
+
export { type ActionEvent, Actor, type ActorWithLiterals, type AddBookingsToMultiServiceBookingApplicationErrors, type AddBookingsToMultiServiceBookingOptions, type AddBookingsToMultiServiceBookingRequest, type AddBookingsToMultiServiceBookingResponse, type Address, type AddressLocation, type AddressStreetOneOf, type AllowedActions, 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 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 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 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 RestoreInfo, type ScheduleAvailability, SelectedPaymentOption, type SelectedPaymentOptionWithLiterals, 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 };
|
|
@@ -48,6 +48,7 @@ __export(index_typings_exports, {
|
|
|
48
48
|
declineMultiServiceBooking: () => declineMultiServiceBooking2,
|
|
49
49
|
getMultiServiceBooking: () => getMultiServiceBooking2,
|
|
50
50
|
getMultiServiceBookingAvailability: () => getMultiServiceBookingAvailability2,
|
|
51
|
+
markBookingAsPending: () => markBookingAsPending2,
|
|
51
52
|
markMultiServiceBookingAsPending: () => markMultiServiceBookingAsPending2,
|
|
52
53
|
removeBookingsFromMultiServiceBooking: () => removeBookingsFromMultiServiceBooking2,
|
|
53
54
|
rescheduleBooking: () => rescheduleBooking2,
|
|
@@ -120,6 +121,10 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
|
120
121
|
{
|
|
121
122
|
srcPath: "/bookings/v2/bulk/bookings",
|
|
122
123
|
destPath: "/v2/bulk/bookings"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
srcPath: "/_api/bookings-service/v2/multi_service_bookings",
|
|
127
|
+
destPath: "/v2/multi_service_bookings"
|
|
123
128
|
}
|
|
124
129
|
],
|
|
125
130
|
"www._base_domain_": [
|
|
@@ -221,6 +226,10 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
|
|
|
221
226
|
{
|
|
222
227
|
srcPath: "/bookings/v2/bulk/bookings",
|
|
223
228
|
destPath: "/v2/bulk/bookings"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
srcPath: "/_api/bookings-service/v2/multi_service_bookings",
|
|
232
|
+
destPath: "/v2/multi_service_bookings"
|
|
224
233
|
}
|
|
225
234
|
],
|
|
226
235
|
"www._base_domain_": [
|
|
@@ -742,6 +751,43 @@ function bookingsUpdateNumberOfParticipants(payload) {
|
|
|
742
751
|
}
|
|
743
752
|
return __bookingsUpdateNumberOfParticipants;
|
|
744
753
|
}
|
|
754
|
+
function markBookingAsPending(payload) {
|
|
755
|
+
function __markBookingAsPending({ host }) {
|
|
756
|
+
const metadata = {
|
|
757
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
758
|
+
method: "POST",
|
|
759
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.MarkBookingAsPending",
|
|
760
|
+
packageName: PACKAGE_NAME,
|
|
761
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
762
|
+
protoPath: "/v2/bookings/{bookingId}/mark_booking_as_pending",
|
|
763
|
+
data: payload,
|
|
764
|
+
host
|
|
765
|
+
}),
|
|
766
|
+
data: payload,
|
|
767
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
768
|
+
{
|
|
769
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
770
|
+
paths: [
|
|
771
|
+
{ path: "booking.createdDate" },
|
|
772
|
+
{ path: "booking.startDate" },
|
|
773
|
+
{ path: "booking.endDate" },
|
|
774
|
+
{ path: "booking.updatedDate" },
|
|
775
|
+
{ path: "booking.canceledDate" }
|
|
776
|
+
]
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
780
|
+
paths: [
|
|
781
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
782
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
783
|
+
]
|
|
784
|
+
}
|
|
785
|
+
])
|
|
786
|
+
};
|
|
787
|
+
return metadata;
|
|
788
|
+
}
|
|
789
|
+
return __markBookingAsPending;
|
|
790
|
+
}
|
|
745
791
|
function createMultiServiceBooking(payload) {
|
|
746
792
|
function __createMultiServiceBooking({ host }) {
|
|
747
793
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1619,6 +1665,45 @@ async function updateNumberOfParticipants(bookingId, options) {
|
|
|
1619
1665
|
throw transformedError;
|
|
1620
1666
|
}
|
|
1621
1667
|
}
|
|
1668
|
+
async function markBookingAsPending2(bookingId, revision, options) {
|
|
1669
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1670
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1671
|
+
bookingId,
|
|
1672
|
+
revision,
|
|
1673
|
+
participantNotification: options?.participantNotification,
|
|
1674
|
+
sendSmsReminder: options?.sendSmsReminder,
|
|
1675
|
+
paymentStatus: options?.paymentStatus,
|
|
1676
|
+
doubleBooked: options?.doubleBooked,
|
|
1677
|
+
flowControlSettings: options?.flowControlSettings
|
|
1678
|
+
});
|
|
1679
|
+
const reqOpts = markBookingAsPending(payload);
|
|
1680
|
+
sideEffects?.onSiteCall?.();
|
|
1681
|
+
try {
|
|
1682
|
+
const result = await httpClient.request(reqOpts);
|
|
1683
|
+
sideEffects?.onSuccess?.(result);
|
|
1684
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1685
|
+
} catch (err) {
|
|
1686
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1687
|
+
err,
|
|
1688
|
+
{
|
|
1689
|
+
spreadPathsToArguments: {},
|
|
1690
|
+
explicitPathsToArguments: {
|
|
1691
|
+
bookingId: "$[0]",
|
|
1692
|
+
revision: "$[1]",
|
|
1693
|
+
participantNotification: "$[2].participantNotification",
|
|
1694
|
+
sendSmsReminder: "$[2].sendSmsReminder",
|
|
1695
|
+
paymentStatus: "$[2].paymentStatus",
|
|
1696
|
+
doubleBooked: "$[2].doubleBooked",
|
|
1697
|
+
flowControlSettings: "$[2].flowControlSettings"
|
|
1698
|
+
},
|
|
1699
|
+
singleArgumentUnchanged: false
|
|
1700
|
+
},
|
|
1701
|
+
["bookingId", "revision", "options"]
|
|
1702
|
+
);
|
|
1703
|
+
sideEffects?.onError?.(err);
|
|
1704
|
+
throw transformedError;
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1622
1707
|
async function createMultiServiceBooking2(bookings, options) {
|
|
1623
1708
|
const { httpClient, sideEffects } = arguments[2];
|
|
1624
1709
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -2010,6 +2095,7 @@ async function removeBookingsFromMultiServiceBooking2(multiServiceBookingId, opt
|
|
|
2010
2095
|
declineMultiServiceBooking,
|
|
2011
2096
|
getMultiServiceBooking,
|
|
2012
2097
|
getMultiServiceBookingAvailability,
|
|
2098
|
+
markBookingAsPending,
|
|
2013
2099
|
markMultiServiceBookingAsPending,
|
|
2014
2100
|
removeBookingsFromMultiServiceBooking,
|
|
2015
2101
|
rescheduleBooking,
|