@wix/auto_sdk_bookings_bookings 1.0.66 → 1.0.67

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.
@@ -317,6 +317,26 @@ declare enum LocationType {
317
317
  }
318
318
  /** @enumType */
319
319
  type LocationTypeWithLiterals = LocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
320
+ interface ResourceSelection {
321
+ /**
322
+ * Resource type.
323
+ * @format GUID
324
+ */
325
+ resourceTypeId?: string | null;
326
+ /** Selection method. */
327
+ selectionMethod?: SelectionMethodWithLiterals;
328
+ }
329
+ declare enum SelectionMethod {
330
+ UNKNOWN_SELECTION_METHOD = "UNKNOWN_SELECTION_METHOD",
331
+ /** client picked resource id */
332
+ SPECIFIC_RESOURCE = "SPECIFIC_RESOURCE",
333
+ /** client explicitly asked for "any" */
334
+ ANY_RESOURCE = "ANY_RESOURCE",
335
+ /** client provided nothing */
336
+ NO_SELECTION = "NO_SELECTION"
337
+ }
338
+ /** @enumType */
339
+ type SelectionMethodWithLiterals = SelectionMethod | 'UNKNOWN_SELECTION_METHOD' | 'SPECIFIC_RESOURCE' | 'ANY_RESOURCE' | 'NO_SELECTION';
320
340
  interface BookedSchedule {
321
341
  /** Schedule ID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)). */
322
342
  scheduleId?: string;
@@ -538,6 +558,37 @@ declare enum SelectedPaymentOption {
538
558
  }
539
559
  /** @enumType */
540
560
  type SelectedPaymentOptionWithLiterals = SelectedPaymentOption | 'UNDEFINED' | 'OFFLINE' | 'ONLINE' | 'MEMBERSHIP' | 'MEMBERSHIP_OFFLINE';
561
+ interface BookingSource {
562
+ /** Platform from which a booking was created. */
563
+ platform?: PlatformWithLiterals;
564
+ /** Actor that created this booking. */
565
+ actor?: ActorWithLiterals;
566
+ /**
567
+ * Wix site ID of the application that created the booking.
568
+ * @format GUID
569
+ * @readonly
570
+ */
571
+ appDefId?: string | null;
572
+ /**
573
+ * Name of the application that created the booking, as saved in Wix Developers Center at the time of booking.
574
+ * @readonly
575
+ */
576
+ appName?: string | null;
577
+ }
578
+ declare enum Platform {
579
+ UNDEFINED_PLATFORM = "UNDEFINED_PLATFORM",
580
+ WEB = "WEB",
581
+ MOBILE_APP = "MOBILE_APP"
582
+ }
583
+ /** @enumType */
584
+ type PlatformWithLiterals = Platform | 'UNDEFINED_PLATFORM' | 'WEB' | 'MOBILE_APP';
585
+ declare enum Actor {
586
+ UNDEFINED_ACTOR = "UNDEFINED_ACTOR",
587
+ BUSINESS = "BUSINESS",
588
+ CUSTOMER = "CUSTOMER"
589
+ }
590
+ /** @enumType */
591
+ type ActorWithLiterals = Actor | 'UNDEFINED_ACTOR' | 'BUSINESS' | 'CUSTOMER';
541
592
  interface ParticipantNotification {
542
593
  /**
543
594
  * Whether to send a message about the changes to the customer.
@@ -598,6 +649,50 @@ interface CommonIdentificationDataIdOneOf {
598
649
  */
599
650
  appId?: string;
600
651
  }
652
+ declare enum IdentificationDataIdentityType {
653
+ UNKNOWN = "UNKNOWN",
654
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
655
+ MEMBER = "MEMBER",
656
+ WIX_USER = "WIX_USER",
657
+ APP = "APP"
658
+ }
659
+ /** @enumType */
660
+ type IdentificationDataIdentityTypeWithLiterals = IdentificationDataIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
661
+ /**
662
+ * Settings that control booking flow behavior and override default business rules.
663
+ *
664
+ * These settings allow administrators to bypass standard validation checks
665
+ * and policies when creating, confirming, rescheduling, or canceling bookings.
666
+ * Most settings require elevated permissions to use.
667
+ *
668
+ * Use flow control settings to handle special scenarios like:
669
+ * - Emergency bookings outside normal business hours
670
+ * - Admin-initiated bookings that bypass availability checks
671
+ * - Custom payment flows that don't use standard eCommerce checkout
672
+ * - Overriding cancellation or rescheduling policies in exceptional cases
673
+ */
674
+ interface FlowControlSettings {
675
+ /** Whether availability is checked when creating or confirming the booking. */
676
+ skipAvailabilityValidation?: boolean;
677
+ /**
678
+ * Whether the booking's `status` is automatically updated to `CONFIRMED` when
679
+ * the customer completes the eCommerce checkout
680
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)),
681
+ * regardless of whether the relevant service requires manual business confirmation.
682
+ */
683
+ skipBusinessConfirmation?: boolean;
684
+ /**
685
+ * Whether the customer is allowed to pay with a payment method that isn't
686
+ * supported for the relevant service.
687
+ */
688
+ skipSelectedPaymentOptionValidation?: boolean;
689
+ /**
690
+ * Whether the customer receives an automatic refund if there's a double booking
691
+ * conflict. Only available if the customer has paid with a
692
+ * pricing plan.
693
+ */
694
+ withRefund?: boolean | null;
695
+ }
601
696
  interface ExtendedFields {
602
697
  /**
603
698
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
@@ -672,6 +767,140 @@ interface Duration {
672
767
  */
673
768
  name?: string | null;
674
769
  }
770
+ interface MultiServiceBookingInfo {
771
+ /**
772
+ * Multi-service booking ID.
773
+ * @format GUID
774
+ * @readonly
775
+ */
776
+ id?: string | null;
777
+ /** Type of the multi-service booking. */
778
+ type?: MultiServiceBookingTypeWithLiterals;
779
+ }
780
+ interface BookedAddOn {
781
+ /**
782
+ * The ID of the add-on.
783
+ * @format GUID
784
+ */
785
+ id?: string;
786
+ /**
787
+ * The ID of the add-on group.
788
+ * @format GUID
789
+ */
790
+ groupId?: string;
791
+ /**
792
+ * The add-on duration in minutes at the time of booking.
793
+ * @min 1
794
+ * @max 1440
795
+ * @readonly
796
+ */
797
+ durationInMinutes?: number | null;
798
+ /**
799
+ * The quantity of booked add-ons.
800
+ * @min 1
801
+ * @max 1000
802
+ */
803
+ quantity?: number | null;
804
+ /**
805
+ * Add-on `name` at the time of booking.
806
+ * @maxLength 100
807
+ * @readonly
808
+ */
809
+ name?: string | null;
810
+ /**
811
+ * Add-on name translated to the language the customer used during booking.
812
+ * @maxLength 100
813
+ * @readonly
814
+ */
815
+ nameTranslated?: string | null;
816
+ }
817
+ interface BookingFormFilled {
818
+ /** The booking object that form was filled for. */
819
+ booking?: Booking;
820
+ /**
821
+ * The submitted form data, where key is the form field and value is the data submitted for the given field.
822
+ * See the [form submission object](https://dev.wix.com/docs/rest/crm/forms/form-submissions/submission-object)
823
+ * for more details.
824
+ */
825
+ formSubmission?: Record<string, any> | null;
826
+ /**
827
+ * ID of the [form](https://dev.wix.com/docs/rest/crm/forms/form-schemas/form-object)
828
+ * that was filled.
829
+ * @format GUID
830
+ */
831
+ formId?: string | null;
832
+ }
833
+ /** Request for GetAnonymousActionDetails */
834
+ interface GetAnonymousActionDetailsRequest {
835
+ /** @format GUID */
836
+ bookingId?: string | null;
837
+ }
838
+ /** Response for GetAnonymousActionDetails */
839
+ interface GetAnonymousActionDetailsResponse {
840
+ /**
841
+ * Token for anonymous access to manage the booking.
842
+ * It represents a symmetrically encrypted and URL-safe string containing the booking ID.
843
+ * This token is required for canceling or rescheduling the booking without authentication.
844
+ * @minLength 32
845
+ * @maxLength 2048
846
+ */
847
+ token?: string | null;
848
+ /** @format GUID */
849
+ clientId?: string | null;
850
+ anonymousBookingUrls?: AnonymousBookingUrls;
851
+ }
852
+ interface AnonymousBookingUrls {
853
+ /**
854
+ * The base URL for the booking links
855
+ * @maxLength 2048
856
+ */
857
+ baseUrl?: string | null;
858
+ /**
859
+ * The cancellation URL for the booking, which contains an anonymous token and AOth clientId
860
+ * @maxLength 2048
861
+ */
862
+ anonymousCancellationUrl?: string | null;
863
+ /**
864
+ * The reschedule URL for the booking, which contains an anonymous token and AOth clientId
865
+ * @maxLength 2048
866
+ */
867
+ anonymousRescheduleUrl?: string | null;
868
+ }
869
+ /** Request for CancelBookingAnonymously */
870
+ interface CancelBookingAnonymouslyRequest {
871
+ /**
872
+ * The token provided in the booking links for anonymous access
873
+ * @maxLength 2048
874
+ */
875
+ token?: string | null;
876
+ /**
877
+ * Revision number, which increments by 1 each time the booking is updated.
878
+ * To prevent conflicting changes, the current revision must be specified when
879
+ * managing the booking.
880
+ */
881
+ revision?: string | null;
882
+ }
883
+ /** Response for CancelBookingAnonymously */
884
+ interface CancelBookingAnonymouslyResponse {
885
+ /** Canceled booking. */
886
+ booking?: Booking;
887
+ }
888
+ /** Request for RescheduleBookingAnonymously */
889
+ interface RescheduleBookingAnonymouslyRequest {
890
+ /**
891
+ * The token provided in the booking links for anonymous access
892
+ * @maxLength 2048
893
+ */
894
+ token?: string | null;
895
+ /** New slot of the booking. */
896
+ slot?: V2Slot;
897
+ /**
898
+ * Revision number, which increments by 1 each time the booking is rescheduled.
899
+ * To prevent conflicting changes, the current revision must be passed when
900
+ * rescheduling the booking.
901
+ */
902
+ revision?: string | null;
903
+ }
675
904
  interface V2Slot {
676
905
  /** Identifier for the underlying session when the session is a single session or generated from a recurring session. */
677
906
  sessionId?: string | null;
@@ -742,166 +971,814 @@ interface SlotLocation {
742
971
  /** Location type. */
743
972
  locationType?: LocationLocationTypeWithLiterals;
744
973
  }
745
- interface ConfirmOrDeclineBookingRequest {
746
- /**
747
- * ID of the booking to confirm or decline.
748
- * @format GUID
749
- */
750
- bookingId: string;
974
+ /** Response for RescheduleBookingAnonymously */
975
+ interface RescheduleBookingAnonymouslyResponse {
976
+ /** Rescheduled booking. */
977
+ booking?: Booking;
978
+ }
979
+ /** Request for GetBookingAnonymously */
980
+ interface GetBookingAnonymouslyRequest {
751
981
  /**
752
- * Current payment status of the booking when using a custom checkout page and
753
- * not the *eCommerce checkout*
754
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
755
- *
756
- * The booking is declined if there is a double booking conflict and you provide
757
- * one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
982
+ * The token provided in the booking links for anonymous access
983
+ * @maxLength 2048
758
984
  */
759
- paymentStatus?: PaymentStatusWithLiterals;
985
+ token?: string | null;
760
986
  }
761
- interface ConfirmOrDeclineBookingResponse {
762
- /** Updated booking. */
987
+ /** Response for GetBookingAnonymously */
988
+ interface GetBookingAnonymouslyResponse {
763
989
  booking?: Booking;
990
+ /** Allowed actions for the booking, such as canceling or rescheduling. */
991
+ allowedActionsAnonymously?: AllowedActionsAnonymously;
764
992
  }
765
- interface BulkConfirmOrDeclineBookingRequest {
766
- /**
767
- * Bookings to confirm or decline.
768
- * @minSize 1
769
- * @maxSize 300
770
- */
771
- details: BulkConfirmOrDeclineBookingRequestBookingDetails[];
772
- /** Whether to return the confirmed or declined booking objects. */
773
- returnEntity?: boolean;
993
+ /** Possible allowed actions for a Booking */
994
+ interface AllowedActionsAnonymously {
995
+ /** Whether the customer is allowed to cancel the booking. */
996
+ cancel?: boolean;
997
+ /** Whether the customer is allowed to reschedule the booking. */
998
+ reschedule?: boolean;
774
999
  }
775
- interface BulkConfirmOrDeclineBookingRequestBookingDetails {
1000
+ interface DomainEvent extends DomainEventBodyOneOf {
1001
+ createdEvent?: EntityCreatedEvent;
1002
+ updatedEvent?: EntityUpdatedEvent;
1003
+ deletedEvent?: EntityDeletedEvent;
1004
+ actionEvent?: ActionEvent;
1005
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1006
+ id?: string;
776
1007
  /**
777
- * ID of the booking to confirm or decline.
778
- * @format GUID
1008
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1009
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
779
1010
  */
780
- bookingId?: string;
1011
+ entityFqdn?: string;
781
1012
  /**
782
- * Current payment status of the booking when using a custom checkout page and
783
- * not the *eCommerce checkout*
784
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
785
- *
786
- * The booking is declined if there is a double booking conflict and you provide
787
- * one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
1013
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
1014
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
788
1015
  */
789
- paymentStatus?: PaymentStatusWithLiterals;
790
- }
791
- interface BulkConfirmOrDeclineBookingResponse {
792
- /** List of confirmed or declined bookings, including metadata. */
793
- results?: BulkBookingResult[];
794
- /** Total successes and failures of the Bulk Confirm Or Decline call. */
795
- bulkActionMetadata?: BulkActionMetadata;
796
- }
797
- interface BulkBookingResult {
1016
+ slug?: string;
1017
+ /** ID of the entity associated with the event. */
1018
+ entityId?: string;
1019
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
1020
+ eventTime?: Date | null;
798
1021
  /**
799
- * Information about the booking that was created or updated.
800
- * Including its ID, index in the bulk request and whether it was
801
- * successfully created or updated.
1022
+ * Whether the event was triggered as a result of a privacy regulation application
1023
+ * (for example, GDPR).
802
1024
  */
803
- itemMetadata?: ItemMetadata;
1025
+ triggeredByAnonymizeRequest?: boolean | null;
1026
+ /** If present, indicates the action that triggered the event. */
1027
+ originatedFrom?: string | null;
804
1028
  /**
805
- * Created or updated booking. Available only if you requested
806
- * to return the booking entity.
1029
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
1030
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
807
1031
  */
808
- item?: Booking;
1032
+ entityEventSequence?: string | null;
809
1033
  }
810
- interface ItemMetadata {
811
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
812
- id?: string | null;
813
- /** Index of the item within the request array. Allows for correlation between request and response items. */
814
- originalIndex?: number;
815
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
816
- success?: boolean;
817
- /** Details about the error in case of failure. */
818
- error?: ApplicationError;
1034
+ /** @oneof */
1035
+ interface DomainEventBodyOneOf {
1036
+ createdEvent?: EntityCreatedEvent;
1037
+ updatedEvent?: EntityUpdatedEvent;
1038
+ deletedEvent?: EntityDeletedEvent;
1039
+ actionEvent?: ActionEvent;
819
1040
  }
820
- interface ApplicationError {
821
- /** Error code. */
822
- code?: string;
823
- /** Description of the error. */
824
- description?: string;
825
- /** Data related to the error. */
826
- data?: Record<string, any> | null;
1041
+ interface EntityCreatedEvent {
1042
+ entityAsJson?: string;
1043
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1044
+ restoreInfo?: RestoreInfo;
827
1045
  }
828
- interface BulkActionMetadata {
829
- /** Number of items that were successfully processed. */
830
- totalSuccesses?: number;
831
- /** Number of items that couldn't be processed. */
832
- totalFailures?: number;
833
- /** Number of failures without details because detailed failure threshold was exceeded. */
834
- undetailedFailures?: number;
1046
+ interface RestoreInfo {
1047
+ deletedDate?: Date | null;
835
1048
  }
836
- interface CreateBookingRequest {
837
- /** The booking to create. */
838
- booking: Booking;
1049
+ interface EntityUpdatedEvent {
839
1050
  /**
840
- * Information about whether to notify the customer and
841
- * the message to send.
1051
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1052
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1053
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
842
1054
  */
843
- participantNotification?: ParticipantNotification;
1055
+ currentEntityAsJson?: string;
1056
+ }
1057
+ interface EntityDeletedEvent {
1058
+ /** Entity that was deleted. */
1059
+ deletedEntityAsJson?: string | null;
1060
+ }
1061
+ interface ActionEvent {
1062
+ bodyAsJson?: string;
1063
+ }
1064
+ interface MessageEnvelope {
844
1065
  /**
845
- * Whether to send an SMS reminder to the customer 24 hours before the
846
- * session starts. The phone number is taken from `contactDetails.phone`.
847
- * Default: `true`.
1066
+ * App instance ID.
1067
+ * @format GUID
848
1068
  */
849
- sendSmsReminder?: boolean | null;
1069
+ instanceId?: string | null;
850
1070
  /**
851
- * Whether to ignore specific standard procedures of the Wix Bookings flow.
852
- * For example, whether to check availability when creating a booking.
1071
+ * Event type.
1072
+ * @maxLength 150
853
1073
  */
854
- flowControlSettings?: CreateBookingFlowControlSettings;
1074
+ eventType?: string;
1075
+ /** The identification type and identity data. */
1076
+ identity?: WebhooksIdentificationData;
1077
+ /** Stringify payload. */
1078
+ data?: string;
855
1079
  }
856
- interface CreateBookingFlowControlSettings {
1080
+ interface WebhooksIdentificationData extends WebhooksIdentificationDataIdOneOf {
857
1081
  /**
858
- * Whether the availability is checked before creating the booking.
859
- *
860
- * - `false`: A booking is only created when the slot or schedule is available.
861
- * - `true`: The booking is created regardless of availability conflicts. Make sure the call's [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) has the required permissions.
862
- *
863
- * *Use cases for `true`:**
864
- * - Emergency or priority bookings that must be accommodated.
865
- * - Administrative bookings that override normal availability rules.
866
- * - Testing or demonstration purposes.
867
- *
868
- * Default: `false`.
1082
+ * ID of a site visitor that has not logged in to the site.
1083
+ * @format GUID
869
1084
  */
870
- skipAvailabilityValidation?: boolean;
1085
+ anonymousVisitorId?: string;
871
1086
  /**
872
- * Whether `PENDING` bookings are automatically set to `CONFIRMED` for
873
- * services that normally require the owner's manual confirmation.
874
- *
875
- * Your app must have the `BOOKINGS.OVERRIDE_AVAILABILITY` permission
876
- * when passing `true`.
877
- * Default: `false`.
1087
+ * ID of a site visitor that has logged in to the site.
1088
+ * @format GUID
878
1089
  */
879
- skipBusinessConfirmation?: boolean;
1090
+ memberId?: string;
880
1091
  /**
881
- * Whether customers can pay using a payment method that isn't supported
882
- * for the service, but that's supported for other services.
883
- *
884
- * Your app must have the `BOOKINGS.MANAGE_PAYMENTS` permission when passing
885
- * `true`.
886
- * Default: `false`.
1092
+ * ID of a Wix user (site owner, contributor, etc.).
1093
+ * @format GUID
887
1094
  */
888
- skipSelectedPaymentOptionValidation?: boolean;
889
- }
890
- interface CreateBookingResponse {
891
- /** Created booking. */
892
- booking?: Booking;
893
- }
894
- interface BulkCreateBookingRequest {
1095
+ wixUserId?: string;
895
1096
  /**
896
- * Bookings to create.
897
- *
898
- * Max: 8 bookings
899
- * @minSize 1
900
- * @maxSize 8
1097
+ * ID of an app.
1098
+ * @format GUID
901
1099
  */
902
- createBookingsInfo: CreateBookingInfo[];
903
- /** Whether to return the created bookings. */
904
- returnFullEntity?: boolean;
1100
+ appId?: string;
1101
+ /** @readonly */
1102
+ identityType?: WebhookIdentityTypeWithLiterals;
1103
+ }
1104
+ /** @oneof */
1105
+ interface WebhooksIdentificationDataIdOneOf {
1106
+ /**
1107
+ * ID of a site visitor that has not logged in to the site.
1108
+ * @format GUID
1109
+ */
1110
+ anonymousVisitorId?: string;
1111
+ /**
1112
+ * ID of a site visitor that has logged in to the site.
1113
+ * @format GUID
1114
+ */
1115
+ memberId?: string;
1116
+ /**
1117
+ * ID of a Wix user (site owner, contributor, etc.).
1118
+ * @format GUID
1119
+ */
1120
+ wixUserId?: string;
1121
+ /**
1122
+ * ID of an app.
1123
+ * @format GUID
1124
+ */
1125
+ appId?: string;
1126
+ }
1127
+ declare enum WebhookIdentityType {
1128
+ UNKNOWN = "UNKNOWN",
1129
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1130
+ MEMBER = "MEMBER",
1131
+ WIX_USER = "WIX_USER",
1132
+ APP = "APP"
1133
+ }
1134
+ /** @enumType */
1135
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1136
+ interface SetBookingFormAndSubmissionIdRequest extends SetBookingFormAndSubmissionIdRequestCreatedByOneOf {
1137
+ /**
1138
+ * The visitor who created the booking.
1139
+ * @format GUID
1140
+ */
1141
+ visitorId?: string | null;
1142
+ /**
1143
+ * The member that created the booking.
1144
+ * @format GUID
1145
+ */
1146
+ memberId?: string | null;
1147
+ /**
1148
+ * The app that created the booking.
1149
+ * @format GUID
1150
+ */
1151
+ appId?: string | null;
1152
+ /**
1153
+ * ID of the booking to set `formId` and `submissionId` for.
1154
+ * @format GUID
1155
+ */
1156
+ bookingId?: string | null;
1157
+ /**
1158
+ * ID of the form to set on the booking.
1159
+ * @format GUID
1160
+ */
1161
+ formId?: string | null;
1162
+ /**
1163
+ * ID of the form submission to set on the booking.
1164
+ * @format GUID
1165
+ */
1166
+ submissionId?: string | null;
1167
+ /**
1168
+ * MetaSite ID
1169
+ * @format GUID
1170
+ */
1171
+ msid?: string | null;
1172
+ /**
1173
+ * Instance ID
1174
+ * @format GUID
1175
+ */
1176
+ instanceId?: string | null;
1177
+ }
1178
+ /** @oneof */
1179
+ interface SetBookingFormAndSubmissionIdRequestCreatedByOneOf {
1180
+ /**
1181
+ * The visitor who created the booking.
1182
+ * @format GUID
1183
+ */
1184
+ visitorId?: string | null;
1185
+ /**
1186
+ * The member that created the booking.
1187
+ * @format GUID
1188
+ */
1189
+ memberId?: string | null;
1190
+ /**
1191
+ * The app that created the booking.
1192
+ * @format GUID
1193
+ */
1194
+ appId?: string | null;
1195
+ }
1196
+ interface SetBookingFormAndSubmissionIdResponse {
1197
+ /** Updated booking. */
1198
+ booking?: Booking;
1199
+ }
1200
+ interface V2CreateBookingRequest extends V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf {
1201
+ /**
1202
+ * Information about the slot to create a booking for.
1203
+ * If you set `slot.location.locationType` to `CUSTOM`, the created slot's
1204
+ * location is set to `slot.location.formattedAddress` when provided.
1205
+ * Otherwise it's set to `contactDetails.fullAddress.formattedAddress`.
1206
+ */
1207
+ slot?: Slot;
1208
+ /** Information about the schedule to create a booking for. */
1209
+ schedule?: BookedSchedule;
1210
+ /** Contact details of the customer booking the service. */
1211
+ contactDetails?: ContactDetails;
1212
+ /**
1213
+ * Booking status.
1214
+ * One of:
1215
+ * - `"CREATED"` - The booking was created.
1216
+ * - `"UPDATED"` - The booking was updated.
1217
+ * - `"CONFIRMED"` - The booking has been confirmed and appears on the bookings calendar.
1218
+ * Booking can be manually confirmed using the Set As Confirmed endpoint.
1219
+ * Booking can be automatically confirmed when the following requirements are met:
1220
+ * + The service is configured as automatically confirmed.
1221
+ * + Invoking eCommerce checkout API and an order has been created.
1222
+ * - `"CANCELED"` - The booking has been canceled and synced to bookings calendar.
1223
+ * The booking can be canceled using cancel API.
1224
+ * - `"PENDING"` - The booking waiting to be confirmed or declined buy the owner and is synced to bookings calendar.
1225
+ * Bookings can be manually set as pending using setAsPending API, requires manage booking status permissions.
1226
+ * Booking can be automatically set as pending when the following requirements are met:
1227
+ * + The Service is configured as manually confirmed.
1228
+ * + Invoking the eCommerce checkout API and an order has been created.
1229
+ * - `"WAITING_LIST"` - The booking is pending on a waiting list.
1230
+ * Booking can be created with this status when invoking waiting list join API.
1231
+ * - `"DECLINED"` - The booking was declined by the owner and synced to bookings calendar.
1232
+ * Booking can be manually declined using decline API and requires manage booking permissions.
1233
+ * Booking can be automatically declined when the following requirements are met:
1234
+ * + Invoking eCommerce checkout API and the order declined event has been sent.
1235
+ * + Invoking eCommerce checkout API and order approved event has been sent, but the booking is offline and the booking causes a double booking.
1236
+ */
1237
+ status?: BookingStatusWithLiterals;
1238
+ /**
1239
+ * Additional custom fields of the booking form. The customer must provide
1240
+ * information for each field when booking the service. For example, that they
1241
+ * bring their own towels or whether they use a wheelchair.
1242
+ *
1243
+ * Max: 100 fields
1244
+ * @maxSize 100
1245
+ */
1246
+ additionalFields?: CustomFormField[];
1247
+ /**
1248
+ * Total number of participants. Available only when the service doesn't have
1249
+ * [variants](https://dev.wix.com/api/rest/wix-bookings/service-options-and-variants/introduction).
1250
+ *
1251
+ * Max: `20`
1252
+ */
1253
+ numberOfParticipants?: number | null;
1254
+ /**
1255
+ * Internal business note. Not visible to the customer.
1256
+ *
1257
+ * Max: 200 characters
1258
+ */
1259
+ internalBusinessNote?: string | null;
1260
+ /**
1261
+ * Payment option the customer intends to use.
1262
+ * Must be one of the payment options defined for the service, unless
1263
+ * you pass `flowControlSettings.skipSelectedPaymentOptionValidation` as `true`.
1264
+ */
1265
+ selectedPaymentOption?: SelectedPaymentOptionWithLiterals;
1266
+ /**
1267
+ * Identifies the source (platform, actor and app) that created this booking.
1268
+ * This property of the booking cannot be changed.
1269
+ * The app_def_id and app_name will be resolved automatically.
1270
+ * TODO GAP See if we need this - might be able to get this data from the headers?
1271
+ */
1272
+ bookingSource?: BookingSource;
1273
+ /**
1274
+ * A user identifier of an external application user that initiated the book request.
1275
+ * Allows an external application to later identify its own bookings and correlate to its own internal users
1276
+ */
1277
+ externalUserId?: string | null;
1278
+ /** Information about a message to send to the customer. */
1279
+ participantNotification?: ParticipantNotification;
1280
+ /**
1281
+ * Whether to send an SMS reminder to the customer 24 hours before the
1282
+ * session starts. The phone number is taken from `contactDetails.phone`.
1283
+ *
1284
+ * Default: `true`.
1285
+ */
1286
+ sendSmsReminder?: boolean | null;
1287
+ /**
1288
+ * Information about whether specific procedures of the standard Wix Bookings
1289
+ * creation flow are changed. For example, whether the availability is
1290
+ * checked before creating the booking or if additional payment options are
1291
+ * accepted.
1292
+ */
1293
+ flowControlSettings?: CreateBookingRequestFlowControlSettings;
1294
+ }
1295
+ /** @oneof */
1296
+ interface V2CreateBookingRequestBookableItemOneOf {
1297
+ /**
1298
+ * Information about the slot to create a booking for.
1299
+ * If you set `slot.location.locationType` to `CUSTOM`, the created slot's
1300
+ * location is set to `slot.location.formattedAddress` when provided.
1301
+ * Otherwise it's set to `contactDetails.fullAddress.formattedAddress`.
1302
+ */
1303
+ slot?: Slot;
1304
+ /** Information about the schedule to create a booking for. */
1305
+ schedule?: BookedSchedule;
1306
+ }
1307
+ /** @oneof */
1308
+ interface V2CreateBookingRequestParticipantsInfoOneOf {
1309
+ }
1310
+ interface Slot {
1311
+ /**
1312
+ * ID for the slot's corresponding session, when the session is either a single session
1313
+ * or a specific session generated from a recurring session.
1314
+ *
1315
+ * Deprecated. Please use `eventId` instead.
1316
+ * @deprecated ID for the slot's corresponding session, when the session is either a single session
1317
+ * or a specific session generated from a recurring session.
1318
+ *
1319
+ * Deprecated. Please use `eventId` instead.
1320
+ * @replacedBy event_id
1321
+ * @targetRemovalDate 2025-09-30
1322
+ */
1323
+ sessionId?: string | null;
1324
+ /** Service ID. */
1325
+ serviceId?: string;
1326
+ /** Schedule ID. */
1327
+ scheduleId?: string;
1328
+ /**
1329
+ * The start time of this slot in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339)
1330
+ * format.
1331
+ *
1332
+ * If `timezone` is specified,
1333
+ * dates are based on the local date/time. This means that the timezone offset
1334
+ * in the `start_date` is ignored.
1335
+ */
1336
+ startDate?: string | null;
1337
+ /**
1338
+ * The end time of this slot in
1339
+ * [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format.
1340
+ *
1341
+ * If `timezone` is specified,
1342
+ * dates are based on the local date/time. This means that the timezone offset
1343
+ * in the `end_date` is ignored.
1344
+ */
1345
+ endDate?: string | null;
1346
+ /**
1347
+ * The timezone for which slot availability is to be calculated.
1348
+ *
1349
+ * Learn more about [handling Daylight Savings Time (DST) for local time zones](https://dev.wix.com/api/rest/wix-bookings/availability-calendar/query-availability#wix-bookings_availability-calendar_query-availability_handling-daylight-savings-time-dst-for-local-time-zones)
1350
+ * when calculating availability.
1351
+ */
1352
+ timezone?: string | null;
1353
+ /**
1354
+ * The resource required for this slot. Currently, the only supported resource
1355
+ * is the relevant staff member for the slot.
1356
+ */
1357
+ resource?: SlotResource;
1358
+ /** Geographic location of the slot. */
1359
+ location?: Location;
1360
+ /**
1361
+ * ID for the slot's corresponding event, when the event is either a single event
1362
+ * or a specific event generated from a recurring event.
1363
+ * @minLength 36
1364
+ * @maxLength 250
1365
+ */
1366
+ eventId?: string | null;
1367
+ }
1368
+ interface SlotResource {
1369
+ /**
1370
+ * Resource ID.
1371
+ * @format GUID
1372
+ * @readonly
1373
+ */
1374
+ id?: string | null;
1375
+ /**
1376
+ * Resource name. Read only.
1377
+ * @maxLength 1200
1378
+ */
1379
+ name?: string | null;
1380
+ }
1381
+ interface CreateBookingRequestFlowControlSettings {
1382
+ /**
1383
+ * Whether the availability is checked before creating the booking. When
1384
+ * passing `false` a booking is only created when the slot or schedule is
1385
+ * available. Your app must have the `BOOKINGS.OVERRIDE_AVAILABILITY`
1386
+ * permission scope when passing `true`.
1387
+ *
1388
+ * Default: `false`.
1389
+ */
1390
+ skipAvailabilityValidation?: boolean;
1391
+ /**
1392
+ * Whether `PENDING` bookings are automatically set to `CONFIRMED` for
1393
+ * services that normally require the owner's manual confirmation. Your
1394
+ * app must have the `BOOKINGS.OVERRIDE_AVAILABILITY` permission scope
1395
+ * when passing `true`.
1396
+ *
1397
+ * Default: `false`.
1398
+ */
1399
+ skipBusinessConfirmation?: boolean;
1400
+ /**
1401
+ * Whether customers can pay using a payment method that isn't supported
1402
+ * for the service, but that's supported for other services. Your app
1403
+ * must have the `BOOKINGS.MANAGE_PAYMENTS` permission scope when passing
1404
+ * `true`.
1405
+ *
1406
+ * Default: `false`.
1407
+ */
1408
+ skipSelectedPaymentOptionValidation?: boolean;
1409
+ }
1410
+ interface V2CreateBookingResponse {
1411
+ /** Created booking. */
1412
+ booking?: Booking;
1413
+ }
1414
+ interface V2CancelBookingRequest {
1415
+ /**
1416
+ * ID of the booking to cancel.
1417
+ * @format GUID
1418
+ */
1419
+ bookingId?: string;
1420
+ /**
1421
+ * Information about whether to notify the customer about the cancellation and
1422
+ * the message to send.
1423
+ */
1424
+ participantNotification?: ParticipantNotification;
1425
+ /**
1426
+ * Revision number, which increments by 1 each time the booking is updated.
1427
+ * To prevent conflicting changes,
1428
+ * the current revision must be passed when managing the booking.
1429
+ */
1430
+ revision?: string | null;
1431
+ }
1432
+ interface CancelBookingRequestFlowControlSettings {
1433
+ /**
1434
+ * Whether the cancellation policy applies when canceling the booking. When
1435
+ * passing `false` you can only cancel a booking if the cancellation policy
1436
+ * allows it. Your app must have the `BOOKINGS.IGNORE_BOOKING_POLICY `
1437
+ * permission scope when passing `true`.
1438
+ *
1439
+ * Default: `false`.
1440
+ */
1441
+ ignoreCancellationPolicy?: boolean;
1442
+ /**
1443
+ * Whether to issue a refund when canceling the booking.
1444
+ * The refund will be issued only if the booking is refundable.
1445
+ * Currently, booking is considered refundable when it was paid by membership.
1446
+ * If passing `true`, the booking flow control settings will be set with refund,
1447
+ * otherwise, either if `false` is passed or the field remains empty,
1448
+ * the booking flow control settings will be set with no refund.
1449
+ *
1450
+ * Default: `false`.
1451
+ */
1452
+ withRefund?: boolean | null;
1453
+ }
1454
+ interface V2CancelBookingResponse {
1455
+ /** Canceled booking. */
1456
+ booking?: Booking;
1457
+ }
1458
+ interface V2RescheduleBookingRequest extends V2RescheduleBookingRequestParticipantsInfoOneOf {
1459
+ /**
1460
+ * Id of the booking to reschedule.
1461
+ * @format GUID
1462
+ */
1463
+ bookingId?: string;
1464
+ /** Information about the new slot. */
1465
+ slot?: Slot;
1466
+ /**
1467
+ * Revision number, which increments by 1 each time the booking is updated.
1468
+ * To prevent conflicting changes, the current revision must be passed when
1469
+ * managing the booking.
1470
+ */
1471
+ revision?: string | null;
1472
+ /**
1473
+ * Information about whether to notify the customer about the rescheduling and
1474
+ * the message to send.
1475
+ */
1476
+ participantNotification?: ParticipantNotification;
1477
+ }
1478
+ /** @oneof */
1479
+ interface V2RescheduleBookingRequestParticipantsInfoOneOf {
1480
+ }
1481
+ interface RescheduleBookingRequestFlowControlSettings {
1482
+ /**
1483
+ * Whether the rescheduling policy applies when rescheduling the booking.
1484
+ * When passing `false` you can only cancel a booking if the rescheduling
1485
+ * policy allows it. Your app must have the `BOOKINGS.IGNORE_BOOKING_POLICY `
1486
+ * permission scope when passing `true`.
1487
+ *
1488
+ * Default: `false`.
1489
+ */
1490
+ ignoreReschedulePolicy?: boolean;
1491
+ /**
1492
+ * Whether the availability is checked before rescheduling the booking.
1493
+ * When passing `false` a booking is only created when the slot or
1494
+ * schedule is available. Your app must have the `BOOKINGS.OVERRIDE_AVAILABILITY`
1495
+ * permission scope when passing `true`.
1496
+ *
1497
+ * Default: `false`.
1498
+ */
1499
+ skipAvailabilityValidation?: boolean;
1500
+ /**
1501
+ * Whether the rescheduled booking's status is automatically set to
1502
+ * `CONFIRMED` for services that normally require the owner's manual
1503
+ * confirmation. Your app must have the `BOOKINGS.OVERRIDE_AVAILABILITY`
1504
+ * permission scope when passing `true`.
1505
+ *
1506
+ * Default: `false`.
1507
+ */
1508
+ skipBusinessConfirmation?: boolean;
1509
+ }
1510
+ interface V2RescheduleBookingResponse {
1511
+ /** Rescheduled booking. */
1512
+ booking?: Booking;
1513
+ }
1514
+ interface V2ConfirmBookingRequest {
1515
+ /**
1516
+ * ID of the booking to confirm.
1517
+ * @format GUID
1518
+ */
1519
+ bookingId?: string;
1520
+ /**
1521
+ * Revision number, which increments by 1 each time the booking is updated.
1522
+ * To prevent conflicting changes, the current revision must be passed when
1523
+ * managing the booking.
1524
+ */
1525
+ revision?: string | null;
1526
+ /**
1527
+ * Information about whether to notify the customer about the confirmation and
1528
+ * the message to send.
1529
+ */
1530
+ participantNotification?: ParticipantNotification;
1531
+ }
1532
+ interface V2ConfirmBookingResponse {
1533
+ booking?: Booking;
1534
+ }
1535
+ interface V2DeclineBookingRequest {
1536
+ /**
1537
+ * ID of the booking to decline.
1538
+ * @format GUID
1539
+ */
1540
+ bookingId?: string;
1541
+ /**
1542
+ * Revision number, which increments by 1 each time the booking is updated.
1543
+ * To prevent conflicting changes, the current revision must be passed when
1544
+ * managing the booking.
1545
+ */
1546
+ revision?: string | null;
1547
+ /**
1548
+ * Information about whether to notify the customer about the decline and
1549
+ * the message to send.
1550
+ */
1551
+ participantNotification?: ParticipantNotification;
1552
+ }
1553
+ interface V2DeclineBookingResponse {
1554
+ /** Declined booking. */
1555
+ booking?: Booking;
1556
+ }
1557
+ interface V2UpdateNumberOfParticipantsRequest extends V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
1558
+ /**
1559
+ * ID of the booking to update the number of participants for.
1560
+ * @format GUID
1561
+ */
1562
+ bookingId?: string;
1563
+ /** Updated number of participants. */
1564
+ numberOfParticipants?: number | null;
1565
+ /**
1566
+ * Revision number, which increments by 1 each time the booking is updated.
1567
+ * To prevent conflicting changes, the current revision must be passed when
1568
+ * managing the booking.
1569
+ */
1570
+ revision?: string | null;
1571
+ }
1572
+ /** @oneof */
1573
+ interface V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
1574
+ }
1575
+ interface V2UpdateNumberOfParticipantsResponse {
1576
+ /** Booking with updated number of participants. */
1577
+ booking?: Booking;
1578
+ }
1579
+ interface ConfirmOrDeclineBookingRequest {
1580
+ /**
1581
+ * ID of the booking to confirm or decline.
1582
+ * @format GUID
1583
+ */
1584
+ bookingId: string;
1585
+ /**
1586
+ * Current payment status of the booking when using a custom checkout page and
1587
+ * not the *eCommerce checkout*
1588
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
1589
+ *
1590
+ * The booking is declined if there is a double booking conflict and you provide
1591
+ * one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
1592
+ */
1593
+ paymentStatus?: PaymentStatusWithLiterals;
1594
+ }
1595
+ interface ConfirmOrDeclineBookingResponse {
1596
+ /** Updated booking. */
1597
+ booking?: Booking;
1598
+ }
1599
+ interface BulkConfirmOrDeclineBookingRequest {
1600
+ /**
1601
+ * Bookings to confirm or decline.
1602
+ * @minSize 1
1603
+ * @maxSize 300
1604
+ */
1605
+ details: BulkConfirmOrDeclineBookingRequestBookingDetails[];
1606
+ /** Whether to return the confirmed or declined booking objects. */
1607
+ returnEntity?: boolean;
1608
+ }
1609
+ interface BulkConfirmOrDeclineBookingRequestBookingDetails {
1610
+ /**
1611
+ * ID of the booking to confirm or decline.
1612
+ * @format GUID
1613
+ */
1614
+ bookingId?: string;
1615
+ /**
1616
+ * Current payment status of the booking when using a custom checkout page and
1617
+ * not the *eCommerce checkout*
1618
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
1619
+ *
1620
+ * The booking is declined if there is a double booking conflict and you provide
1621
+ * one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
1622
+ */
1623
+ paymentStatus?: PaymentStatusWithLiterals;
1624
+ }
1625
+ interface BulkConfirmOrDeclineBookingResponse {
1626
+ /** List of confirmed or declined bookings, including metadata. */
1627
+ results?: BulkBookingResult[];
1628
+ /** Total successes and failures of the Bulk Confirm Or Decline call. */
1629
+ bulkActionMetadata?: BulkActionMetadata;
1630
+ }
1631
+ interface BulkBookingResult {
1632
+ /**
1633
+ * Information about the booking that was created or updated.
1634
+ * Including its ID, index in the bulk request and whether it was
1635
+ * successfully created or updated.
1636
+ */
1637
+ itemMetadata?: ItemMetadata;
1638
+ /**
1639
+ * Created or updated booking. Available only if you requested
1640
+ * to return the booking entity.
1641
+ */
1642
+ item?: Booking;
1643
+ }
1644
+ interface ItemMetadata {
1645
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
1646
+ id?: string | null;
1647
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
1648
+ originalIndex?: number;
1649
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
1650
+ success?: boolean;
1651
+ /** Details about the error in case of failure. */
1652
+ error?: ApplicationError;
1653
+ }
1654
+ interface ApplicationError {
1655
+ /** Error code. */
1656
+ code?: string;
1657
+ /** Description of the error. */
1658
+ description?: string;
1659
+ /** Data related to the error. */
1660
+ data?: Record<string, any> | null;
1661
+ }
1662
+ interface BulkActionMetadata {
1663
+ /** Number of items that were successfully processed. */
1664
+ totalSuccesses?: number;
1665
+ /** Number of items that couldn't be processed. */
1666
+ totalFailures?: number;
1667
+ /** Number of failures without details because detailed failure threshold was exceeded. */
1668
+ undetailedFailures?: number;
1669
+ }
1670
+ interface BookingChanged {
1671
+ /** The booking before the changes. */
1672
+ previousBooking?: Booking;
1673
+ /** The booking after the changes. */
1674
+ currentBooking?: Booking;
1675
+ }
1676
+ interface CreateBookingRequest {
1677
+ /** The booking to create. */
1678
+ booking: Booking;
1679
+ /**
1680
+ * Information about whether to notify the customer and
1681
+ * the message to send.
1682
+ */
1683
+ participantNotification?: ParticipantNotification;
1684
+ /**
1685
+ * Whether to send an SMS reminder to the customer 24 hours before the
1686
+ * session starts. The phone number is taken from `contactDetails.phone`.
1687
+ * Default: `true`.
1688
+ */
1689
+ sendSmsReminder?: boolean | null;
1690
+ /**
1691
+ * Whether to ignore specific standard procedures of the Wix Bookings flow.
1692
+ * For example, whether to check availability when creating a booking.
1693
+ */
1694
+ flowControlSettings?: CreateBookingFlowControlSettings;
1695
+ }
1696
+ interface CreateBookingFlowControlSettings {
1697
+ /**
1698
+ * Whether the availability is checked before creating the booking.
1699
+ *
1700
+ * - `false`: A booking is only created when the slot or schedule is available.
1701
+ * - `true`: The booking is created regardless of availability conflicts. Make sure the call's [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) has the required permissions.
1702
+ *
1703
+ * *Use cases for `true`:**
1704
+ * - Emergency or priority bookings that must be accommodated.
1705
+ * - Administrative bookings that override normal availability rules.
1706
+ * - Testing or demonstration purposes.
1707
+ *
1708
+ * Default: `false`.
1709
+ */
1710
+ skipAvailabilityValidation?: boolean;
1711
+ /**
1712
+ * Whether `PENDING` bookings are automatically set to `CONFIRMED` for
1713
+ * services that normally require the owner's manual confirmation.
1714
+ *
1715
+ * Your app must have the `BOOKINGS.OVERRIDE_AVAILABILITY` permission
1716
+ * when passing `true`.
1717
+ * Default: `false`.
1718
+ */
1719
+ skipBusinessConfirmation?: boolean;
1720
+ /**
1721
+ * Whether customers can pay using a payment method that isn't supported
1722
+ * for the service, but that's supported for other services.
1723
+ *
1724
+ * Your app must have the `BOOKINGS.MANAGE_PAYMENTS` permission when passing
1725
+ * `true`.
1726
+ * Default: `false`.
1727
+ */
1728
+ skipSelectedPaymentOptionValidation?: boolean;
1729
+ }
1730
+ interface CreateBookingResponse {
1731
+ /** Created booking. */
1732
+ booking?: Booking;
1733
+ }
1734
+ /**
1735
+ * The `fieldMask` should not include both the `numberOfParticipants` and `participantsInfo` paths. Including both results
1736
+ * in an error. `participantsInfo` is preferred over `numberOfParticipants`.
1737
+ */
1738
+ interface UpdateBookingRequest {
1739
+ booking?: Booking;
1740
+ }
1741
+ interface UpdateBookingResponse {
1742
+ booking?: Booking;
1743
+ }
1744
+ interface LegacyCreateBookingRequest {
1745
+ booking?: Booking;
1746
+ }
1747
+ interface LegacyCreateBookingResponse {
1748
+ booking?: Booking;
1749
+ }
1750
+ /**
1751
+ * The `fieldMask` for each booking should not include both the `numberOfParticipants` and `participantsInfo` paths. Including both results
1752
+ * in an error. `participantsInfo` is preferred over `numberOfParticipants`.
1753
+ */
1754
+ interface BulkUpdateBookingRequest {
1755
+ bookings?: MaskedBooking[];
1756
+ }
1757
+ interface MaskedBooking {
1758
+ booking?: Booking;
1759
+ mask?: string[];
1760
+ }
1761
+ interface BulkUpdateBookingResponse {
1762
+ /**
1763
+ * Information about the booking that was updated.
1764
+ * Including its ID, index in the bulk request and whether it was
1765
+ * successfully updated.
1766
+ */
1767
+ results?: ItemMetadata[];
1768
+ /** Total number of successes and failures for Bulk Update Bookings. */
1769
+ bulkActionMetadata?: BulkActionMetadata;
1770
+ }
1771
+ interface BulkCreateBookingRequest {
1772
+ /**
1773
+ * Bookings to create.
1774
+ *
1775
+ * Max: 8 bookings
1776
+ * @minSize 1
1777
+ * @maxSize 8
1778
+ */
1779
+ createBookingsInfo: CreateBookingInfo[];
1780
+ /** Whether to return the created bookings. */
1781
+ returnFullEntity?: boolean;
905
1782
  }
906
1783
  interface CreateBookingInfo {
907
1784
  /** Booking to create. */
@@ -1000,11 +1877,335 @@ interface RescheduleBookingFlowControlSettings {
1000
1877
  * confirmation.
1001
1878
  * Default: `false`.
1002
1879
  */
1003
- skipBusinessConfirmation?: boolean;
1880
+ skipBusinessConfirmation?: boolean;
1881
+ }
1882
+ interface RescheduleBookingResponse {
1883
+ /** Rescheduled booking. */
1884
+ booking?: Booking;
1885
+ }
1886
+ interface BookingRescheduled extends BookingRescheduledPreviousParticipantsInfoOneOf {
1887
+ /**
1888
+ * The previous total number of participants. Available only when the booking includes
1889
+ * a single service variant.
1890
+ */
1891
+ previousTotalParticipants?: number;
1892
+ /**
1893
+ * Information about the previous booked service choices and participants.
1894
+ * Available only when the booking includes multiple service variants.
1895
+ */
1896
+ previousParticipantsChoices?: ParticipantChoices;
1897
+ /** The rescheduled booking object. */
1898
+ booking?: Booking;
1899
+ /** Information about whether to notify the customer about the rescheduling and the message to send. */
1900
+ participantNotification?: ParticipantNotification;
1901
+ /**
1902
+ * Information about whether specific procedures of the standard Wix Bookings
1903
+ * rescheduling flow are changed. For example, whether the availability of
1904
+ * the new slot is checked before rescheduling the booking or if you can
1905
+ * reschedule the booking even though the rescheduling policy doesn't allow it.
1906
+ */
1907
+ flowControlSettings?: RescheduleBookingFlowControlSettings;
1908
+ /** ID of the rescheduling initiator. */
1909
+ initiatedBy?: IdentificationData;
1910
+ /** The previous status of the booking. */
1911
+ previousStatus?: BookingStatusWithLiterals;
1912
+ /** An object describing the previous slot or schedule of the booking. */
1913
+ previousBookedEntity?: BookedEntity;
1914
+ /**
1915
+ * The previous start date of the booking.
1916
+ * For a slot, this is the start date of the slot.
1917
+ * For a schedule, this is the start date of the first session.
1918
+ */
1919
+ previousStartDate?: Date | null;
1920
+ /**
1921
+ * The previous end date of the booking.
1922
+ * For a slot, this is the end date of the slot.
1923
+ * For a schedule, this is the end date of the last session.
1924
+ */
1925
+ previousEndDate?: Date | null;
1926
+ }
1927
+ /** @oneof */
1928
+ interface BookingRescheduledPreviousParticipantsInfoOneOf {
1929
+ /**
1930
+ * The previous total number of participants. Available only when the booking includes
1931
+ * a single service variant.
1932
+ */
1933
+ previousTotalParticipants?: number;
1934
+ /**
1935
+ * Information about the previous booked service choices and participants.
1936
+ * Available only when the booking includes multiple service variants.
1937
+ */
1938
+ previousParticipantsChoices?: ParticipantChoices;
1939
+ }
1940
+ interface IdentificationData extends IdentificationDataIdOneOf {
1941
+ /**
1942
+ * ID of a site visitor that has not logged in to the site.
1943
+ * @format GUID
1944
+ */
1945
+ anonymousVisitorId?: string;
1946
+ /**
1947
+ * ID of a site visitor that has logged in to the site.
1948
+ * @format GUID
1949
+ */
1950
+ memberId?: string;
1951
+ /**
1952
+ * ID of a Wix user (site owner, contributor, etc.).
1953
+ * @format GUID
1954
+ */
1955
+ wixUserId?: string;
1956
+ /**
1957
+ * ID of an app.
1958
+ * @format GUID
1959
+ */
1960
+ appId?: string;
1961
+ /**
1962
+ * ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system.
1963
+ * @format GUID
1964
+ * @readonly
1965
+ */
1966
+ contactId?: string | null;
1967
+ }
1968
+ /** @oneof */
1969
+ interface IdentificationDataIdOneOf {
1970
+ /**
1971
+ * ID of a site visitor that has not logged in to the site.
1972
+ * @format GUID
1973
+ */
1974
+ anonymousVisitorId?: string;
1975
+ /**
1976
+ * ID of a site visitor that has logged in to the site.
1977
+ * @format GUID
1978
+ */
1979
+ memberId?: string;
1980
+ /**
1981
+ * ID of a Wix user (site owner, contributor, etc.).
1982
+ * @format GUID
1983
+ */
1984
+ wixUserId?: string;
1985
+ /**
1986
+ * ID of an app.
1987
+ * @format GUID
1988
+ */
1989
+ appId?: string;
1990
+ }
1991
+ declare enum IdentityType {
1992
+ UNKNOWN = "UNKNOWN",
1993
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1994
+ MEMBER = "MEMBER",
1995
+ WIX_USER = "WIX_USER",
1996
+ APP = "APP"
1997
+ }
1998
+ /** @enumType */
1999
+ type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
2000
+ interface BulkRescheduleBookingRequest {
2001
+ /**
2002
+ * Reschedule multiple bookings to multiple slots.
2003
+ * @minSize 1
2004
+ */
2005
+ slotsBookings?: SlotBookings[];
2006
+ /**
2007
+ * Information about whether to notify the customer about the rescheduling and
2008
+ * the message to send.
2009
+ */
2010
+ participantNotification?: ParticipantNotification;
2011
+ }
2012
+ interface BulkRescheduleBookingRequestBooking {
2013
+ /**
2014
+ * ID of the booking to reschedule.
2015
+ * @format GUID
2016
+ */
2017
+ id?: string;
2018
+ /**
2019
+ * Revision number, which increments by 1 each time the booking is rescheduled.
2020
+ * To prevent conflicting changes,
2021
+ * the current revision must be specified when rescheduling the booking.
2022
+ */
2023
+ revision?: string | null;
2024
+ }
2025
+ /** Bookings to be rescheduled to the given slot. */
2026
+ interface SlotBookings {
2027
+ /**
2028
+ * The bookings details.
2029
+ * @minSize 1
2030
+ */
2031
+ bookings?: BulkRescheduleBookingRequestBooking[];
2032
+ /**
2033
+ * The slot to which the bookings were rescheduled.
2034
+ * These bookings are automatically assigned to the session, if given. Otherwise, a new session is created.
2035
+ */
2036
+ slot?: BookedSlot;
2037
+ }
2038
+ interface BulkRescheduleBookingResponse {
2039
+ /**
2040
+ * Information about the booking that was rescheduled.
2041
+ * Including its ID, index in the bulk request and whether it was
2042
+ * successfully rescheduled.
2043
+ */
2044
+ results?: ItemMetadata[];
2045
+ /** Total number of successes and failures for Bulk Reschedule Bookings. */
2046
+ bulkActionMetadata?: BulkActionMetadata;
2047
+ }
2048
+ /** Update the booked schedule of multiple bookings to the given schedule. */
2049
+ interface BulkUpdateBookedScheduleRequest {
2050
+ /**
2051
+ * The bookings whose booked schedule is to be updated to the given schedule.
2052
+ * @minSize 1
2053
+ */
2054
+ bookings?: BookingDetails[];
2055
+ /** ID of the schedule to update. */
2056
+ scheduleId?: string;
2057
+ /**
2058
+ * Information about whether to notify the customer about the rescheduling and
2059
+ * the message to send.
2060
+ */
2061
+ participantNotification?: ParticipantNotification;
2062
+ }
2063
+ interface BookingDetails {
2064
+ /**
2065
+ * ID of the bookings to be updated.
2066
+ * @format GUID
2067
+ */
2068
+ id?: string;
2069
+ revision?: string | null;
2070
+ }
2071
+ interface BulkUpdateBookedScheduleResponse {
2072
+ /**
2073
+ * Information about the schedule that was updated.
2074
+ * Including its ID, index in the bulk request and whether it was
2075
+ * succesfully updated.
2076
+ */
2077
+ results?: ItemMetadata[];
2078
+ /** Total number of successes and failures for Bulk Updated Booked Schedules. */
2079
+ bulkActionMetadata?: BulkActionMetadata;
2080
+ }
2081
+ interface QueryBookingsRequest {
2082
+ /** Information about filters, paging, and sorting. */
2083
+ query?: QueryV2;
2084
+ }
2085
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
2086
+ /** Paging options to limit and skip the number of items. */
2087
+ paging?: Paging;
2088
+ /**
2089
+ * Cursor token pointing to a page of results. In the first request,
2090
+ * specify `cursorPaging.limit`. For following requests, specify the
2091
+ * retrieved `cursorPaging.cursor` token and not `query.filter` or
2092
+ * `query.sort`.
2093
+ */
2094
+ cursorPaging?: CursorPaging;
2095
+ /**
2096
+ * Filter object in the following format:
2097
+ * `"filter" : {
2098
+ * "fieldName1": "value1",
2099
+ * "fieldName2":{"$operator":"value2"}
2100
+ * }`
2101
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
2102
+ */
2103
+ filter?: Record<string, any> | null;
2104
+ /**
2105
+ * Sort object in the following format:
2106
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
2107
+ */
2108
+ sort?: Sorting[];
2109
+ /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
2110
+ fields?: string[];
2111
+ /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
2112
+ fieldsets?: string[];
2113
+ }
2114
+ /** @oneof */
2115
+ interface QueryV2PagingMethodOneOf {
2116
+ /** Paging options to limit and skip the number of items. */
2117
+ paging?: Paging;
2118
+ /**
2119
+ * Cursor token pointing to a page of results. In the first request,
2120
+ * specify `cursorPaging.limit`. For following requests, specify the
2121
+ * retrieved `cursorPaging.cursor` token and not `query.filter` or
2122
+ * `query.sort`.
2123
+ */
2124
+ cursorPaging?: CursorPaging;
2125
+ }
2126
+ interface Sorting {
2127
+ /**
2128
+ * Name of the field to sort by.
2129
+ * @maxLength 512
2130
+ */
2131
+ fieldName?: string;
2132
+ /** Sort order. */
2133
+ order?: SortOrderWithLiterals;
2134
+ }
2135
+ declare enum SortOrder {
2136
+ ASC = "ASC",
2137
+ DESC = "DESC"
2138
+ }
2139
+ /** @enumType */
2140
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
2141
+ interface Paging {
2142
+ /** Number of items to load. */
2143
+ limit?: number | null;
2144
+ /** Number of items to skip in the current sort order. */
2145
+ offset?: number | null;
2146
+ }
2147
+ interface CursorPaging {
2148
+ /**
2149
+ * Maximum number of items to return in the results.
2150
+ * @max 100
2151
+ */
2152
+ limit?: number | null;
2153
+ /**
2154
+ * Pointer to the next or previous page in the list of results.
2155
+ *
2156
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
2157
+ * Not relevant for the first request.
2158
+ * @maxLength 16000
2159
+ */
2160
+ cursor?: string | null;
2161
+ }
2162
+ interface QueryBookingsResponse {
2163
+ /** Retrieved bookings. */
2164
+ bookings?: Booking[];
2165
+ /** Paging metadata. */
2166
+ pagingMetadata?: PagingMetadataV2;
2167
+ }
2168
+ interface PagingMetadataV2 {
2169
+ /** Number of items returned in the response. */
2170
+ count?: number | null;
2171
+ /** Offset that was requested. */
2172
+ offset?: number | null;
2173
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
2174
+ total?: number | null;
2175
+ /** Flag that indicates the server failed to calculate the `total` field. */
2176
+ tooManyToCount?: boolean | null;
2177
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
2178
+ cursors?: Cursors;
2179
+ }
2180
+ interface Cursors {
2181
+ /**
2182
+ * Cursor string pointing to the next page in the list of results.
2183
+ * @maxLength 16000
2184
+ */
2185
+ next?: string | null;
2186
+ /**
2187
+ * Cursor pointing to the previous page in the list of results.
2188
+ * @maxLength 16000
2189
+ */
2190
+ prev?: string | null;
2191
+ }
2192
+ interface ConfirmRequest {
2193
+ /**
2194
+ * ID of the booking to confirm.
2195
+ * @format GUID
2196
+ */
2197
+ id?: string;
2198
+ /**
2199
+ * Information about whether to notify the customer about the confirmation and
2200
+ * the message to send.
2201
+ */
2202
+ participantNotification?: ParticipantNotification;
1004
2203
  }
1005
- interface RescheduleBookingResponse {
1006
- /** Rescheduled booking. */
2204
+ interface ConfirmResponse {
2205
+ /** Confirmed booking. */
1007
2206
  booking?: Booking;
2207
+ /** Whether this booking has a conflict with at least 1 other confirmed booking. */
2208
+ doubleBooked?: boolean | null;
1008
2209
  }
1009
2210
  interface ConfirmBookingRequest {
1010
2211
  /**
@@ -1051,6 +2252,48 @@ interface ConfirmBookingResponse {
1051
2252
  /** Confirmed booking. */
1052
2253
  booking?: Booking;
1053
2254
  }
2255
+ interface BookingConfirmed {
2256
+ /** The confirmed booking object. */
2257
+ booking?: Booking;
2258
+ /** Information about whether to notify the customer about the confirmation and the message to send. */
2259
+ participantNotification?: ParticipantNotification;
2260
+ /**
2261
+ * Whether to send an SMS reminder to the customer 24 hours before the session starts.
2262
+ * The phone number is taken from `contactDetails.phone`.
2263
+ */
2264
+ sendSmsReminder?: boolean | null;
2265
+ /** Whether this booking overlaps with another existing confirmed booking. */
2266
+ doubleBooked?: boolean | null;
2267
+ /** ID of the confirmation initiator. */
2268
+ initiatedBy?: IdentificationData;
2269
+ /** The previous status of the booking. */
2270
+ previousStatus?: BookingStatusWithLiterals;
2271
+ /** The previous payment status of the booking. */
2272
+ previousPaymentStatus?: PaymentStatusWithLiterals;
2273
+ }
2274
+ interface ConsistentQueryBookingsRequest {
2275
+ /** Information about filters, paging, and sorting. */
2276
+ query?: QueryV2;
2277
+ }
2278
+ interface ConsistentQueryBookingsResponse {
2279
+ /** Retrieved bookings. */
2280
+ bookings?: Booking[];
2281
+ /** Paging metadata. */
2282
+ pagingMetadata?: PagingMetadataV2;
2283
+ }
2284
+ interface SetBookingSessionIdRequest {
2285
+ /**
2286
+ * ID of the booking to set `sessionId` for.
2287
+ * @format GUID
2288
+ */
2289
+ id?: string;
2290
+ /** ID of the session to set on the booking. */
2291
+ sessionId?: string;
2292
+ }
2293
+ interface SetBookingSessionIdResponse {
2294
+ /** Updated booking. */
2295
+ booking?: Booking;
2296
+ }
1054
2297
  interface SetBookingSubmissionIdRequest {
1055
2298
  /**
1056
2299
  * ID of the booking to set `submissionId` for.
@@ -1131,6 +2374,25 @@ interface DeclineBookingResponse {
1131
2374
  /** Declined booking. */
1132
2375
  booking?: Booking;
1133
2376
  }
2377
+ interface BookingDeclined {
2378
+ /** The declined booking object. */
2379
+ booking?: Booking;
2380
+ /** Information about whether to notify the customer about the decline and the message to send. */
2381
+ participantNotification?: ParticipantNotification;
2382
+ /** Whether this booking overlaps with another existing confirmed booking. */
2383
+ doubleBooked?: boolean | null;
2384
+ /** ID of the decline initiator. */
2385
+ initiatedBy?: IdentificationData;
2386
+ /** The previous status of the booking. */
2387
+ previousStatus?: BookingStatusWithLiterals;
2388
+ /** The previous payment status of the booking. */
2389
+ previousPaymentStatus?: PaymentStatusWithLiterals;
2390
+ /**
2391
+ * Information about whether specific procedures of the standard Wix Bookings
2392
+ * declining flow are changed. For example, whether to issue a refund.
2393
+ */
2394
+ flowControlSettings?: DeclineBookingFlowControlSettings;
2395
+ }
1134
2396
  interface CancelBookingRequest {
1135
2397
  /**
1136
2398
  * ID of the booking to cancel.
@@ -1181,6 +2443,23 @@ interface CancelBookingResponse {
1181
2443
  /** Canceled booking. */
1182
2444
  booking?: Booking;
1183
2445
  }
2446
+ interface BookingCanceled {
2447
+ /** The canceled booking object. */
2448
+ booking?: Booking;
2449
+ /** Information about whether to notify the customer about the cancellation and the message to send. */
2450
+ participantNotification?: ParticipantNotification;
2451
+ /**
2452
+ * Information about whether specific procedures of the standard Wix Bookings
2453
+ * cancellation flow are changed. For example, whether you can cancel
2454
+ * a booking even though the cancellation policy doesn't allow it or whether
2455
+ * to issue a refund.
2456
+ */
2457
+ flowControlSettings?: CancelBookingFlowControlSettings;
2458
+ /** ID of the cancellation initiator. */
2459
+ initiatedBy?: IdentificationData;
2460
+ /** The previous status of the booking. */
2461
+ previousStatus?: BookingStatusWithLiterals;
2462
+ }
1184
2463
  interface UpdateNumberOfParticipantsRequest extends UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
1185
2464
  /**
1186
2465
  * Total number of participants. Specify when all participants have booked the
@@ -1222,6 +2501,47 @@ interface UpdateNumberOfParticipantsResponse {
1222
2501
  /** Updated booking. */
1223
2502
  booking?: Booking;
1224
2503
  }
2504
+ interface NumberOfParticipantsUpdated extends NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf {
2505
+ /**
2506
+ * The previous total number of participants. Available only when the booking includes
2507
+ * a single service variant.
2508
+ */
2509
+ previousTotalParticipants?: number;
2510
+ /**
2511
+ * Information about the previous booked service choices and participants.
2512
+ * Available only when the booking includes multiple service variants.
2513
+ */
2514
+ previousParticipantsChoices?: ParticipantChoices;
2515
+ /** The updated booking object. */
2516
+ booking?: Booking;
2517
+ /** ID of the participant number update initiator. */
2518
+ initiatedBy?: IdentificationData;
2519
+ }
2520
+ /** @oneof */
2521
+ interface NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf {
2522
+ /**
2523
+ * The previous total number of participants. Available only when the booking includes
2524
+ * a single service variant.
2525
+ */
2526
+ previousTotalParticipants?: number;
2527
+ /**
2528
+ * Information about the previous booked service choices and participants.
2529
+ * Available only when the booking includes multiple service variants.
2530
+ */
2531
+ previousParticipantsChoices?: ParticipantChoices;
2532
+ }
2533
+ interface BulkCalculateAllowedActionsRequest {
2534
+ /**
2535
+ * The booking IDs for which we want to calculate the allowed actions.
2536
+ * @minSize 1
2537
+ */
2538
+ bookingIds?: string[] | null;
2539
+ }
2540
+ interface BulkCalculateAllowedActionsResponse {
2541
+ results?: BulkCalculateAllowedActionsResult[];
2542
+ /** Total number of successes and failures for Bulk Calculate Allowed Actions. */
2543
+ bulkActionMetadata?: BulkActionMetadata;
2544
+ }
1225
2545
  interface BulkCalculateAllowedActionsResult {
1226
2546
  /** Metadata for the booking. Including ID, index in the provided sequence, success status, and error. */
1227
2547
  itemMetadata?: ItemMetadata;
@@ -1235,6 +2555,46 @@ interface AllowedActions {
1235
2555
  /** Whether rescheduling the booking is allowed. */
1236
2556
  reschedule?: boolean;
1237
2557
  }
2558
+ interface GetSlotAvailabilityRequest {
2559
+ /** The slot for which the availability is checked. */
2560
+ slot?: V2Slot;
2561
+ /** The timezone for which availability is to be calculated. */
2562
+ timezone?: string | null;
2563
+ }
2564
+ interface GetSlotAvailabilityResponse {
2565
+ availability?: SlotAvailability;
2566
+ bookingPolicySettings?: BookingPolicySettings;
2567
+ }
2568
+ interface SlotAvailability {
2569
+ /** Identifier for the underlying session when the session is a single session or generated from a recurring session. Required. */
2570
+ slot?: V2Slot;
2571
+ /** Whether this available slot is bookable. */
2572
+ bookable?: boolean;
2573
+ /**
2574
+ * Total number of spots for this availability.
2575
+ * For example, for a class of 10 spots with 3 spots booked, `totalSpots` is 10 and `openSpots` is 7.
2576
+ */
2577
+ totalSpots?: number | null;
2578
+ /**
2579
+ * Number of open spots for this availability.
2580
+ * For appointments, if there are existing bookings with overlapping time, service & resource, `openSpots` is 0. Otherwise, `openSpots` is 1.
2581
+ */
2582
+ openSpots?: number | null;
2583
+ /** An object describing the slot's waiting list and its occupancy. */
2584
+ waitingList?: WaitingList;
2585
+ /** Indicators for booking policy violations for the slot. */
2586
+ bookingPolicyViolations?: BookingPolicyViolations;
2587
+ /** Indicates whether this slot is locked. */
2588
+ locked?: boolean | null;
2589
+ }
2590
+ interface WaitingList {
2591
+ /**
2592
+ * Total number of spots and open spots for this waiting list.
2593
+ * For example, a Yoga class of 10 waiting list spots with 3 registered on the waiting list has `total_spots`: 10 and `open_spots`: 7.
2594
+ */
2595
+ totalSpots?: number | null;
2596
+ openSpots?: number | null;
2597
+ }
1238
2598
  interface BookingPolicyViolations {
1239
2599
  /** Booking policy violation: Too early to book this slot. */
1240
2600
  tooEarlyToBook?: boolean | null;
@@ -1247,6 +2607,40 @@ interface BookingPolicySettings {
1247
2607
  /** Booking policy settings for a given slot or schedule. */
1248
2608
  maxParticipantsPerBooking?: number | null;
1249
2609
  }
2610
+ interface AvailableResources {
2611
+ /**
2612
+ * Resource type ID.
2613
+ * @format GUID
2614
+ */
2615
+ resourceTypeId?: string | null;
2616
+ /**
2617
+ * Available resources for the slot.
2618
+ * `maxSize` is defined by 135 staff members + 3 resource types and 50 resources per type.
2619
+ * `Availability-2` currently has no `maxSize` defined.
2620
+ * @format GUID
2621
+ * @maxSize 275
2622
+ */
2623
+ resourceIds?: string[];
2624
+ }
2625
+ interface GetScheduleAvailabilityRequest {
2626
+ /**
2627
+ * ID of the schedule for which to check availability.
2628
+ * @format GUID
2629
+ */
2630
+ scheduleId?: string;
2631
+ }
2632
+ interface GetScheduleAvailabilityResponse {
2633
+ availability?: ScheduleAvailability;
2634
+ bookingPolicySettings?: BookingPolicySettings;
2635
+ }
2636
+ interface ScheduleAvailability {
2637
+ /** Total number of spots. */
2638
+ totalSpots?: number | null;
2639
+ /** Number of remaining open spots. */
2640
+ openSpots?: number | null;
2641
+ /** Indicators of booking policy violations for the specified schedule. */
2642
+ bookingPolicyViolations?: BookingPolicyViolations;
2643
+ }
1250
2644
  interface MarkBookingAsPendingRequest {
1251
2645
  /**
1252
2646
  * ID of the booking to mark as `PENDING`.
@@ -1306,6 +2700,57 @@ interface MarkBookingAsPendingResponse {
1306
2700
  /** Updated booking. */
1307
2701
  booking?: Booking;
1308
2702
  }
2703
+ interface BookingMarkedAsPending {
2704
+ /** The booking object that was marked as pending. */
2705
+ booking?: Booking;
2706
+ /** Information about whether to notify the customer upon manual confirmation of the pending booking and the message to send. */
2707
+ participantNotification?: ParticipantNotification;
2708
+ /**
2709
+ * Whether to send an SMS reminder to the customer 24 hours before the session starts.
2710
+ * The phone number is taken from `contactDetails.phone`.
2711
+ */
2712
+ sendSmsReminder?: boolean | null;
2713
+ /** Whether this booking overlaps with another existing confirmed booking. */
2714
+ doubleBooked?: boolean | null;
2715
+ /** ID of the mark as pending initiator. */
2716
+ initiatedBy?: IdentificationData;
2717
+ /** The previous status of the booking. */
2718
+ previousStatus?: BookingStatusWithLiterals;
2719
+ /** The previous payment status of the booking. */
2720
+ previousPaymentStatus?: PaymentStatusWithLiterals;
2721
+ }
2722
+ interface MigrationCheckIfClashesWithBlockedTimeRequest {
2723
+ msidAndBookingIds?: MsidAndBookingId[];
2724
+ }
2725
+ interface MsidAndBookingId {
2726
+ msid?: string;
2727
+ bookingId?: string;
2728
+ }
2729
+ interface MigrationCheckIfClashesWithBlockedTimeResponse {
2730
+ clashes?: Clash[];
2731
+ }
2732
+ interface Clash {
2733
+ msid?: string;
2734
+ bookingId?: string;
2735
+ sessionId?: string;
2736
+ resourceName?: string;
2737
+ contactName?: string;
2738
+ }
2739
+ interface CountBookingsRequest {
2740
+ /**
2741
+ * Filter object in the following format:
2742
+ * `"filter" : {
2743
+ * "fieldName1": "value1",
2744
+ * "fieldName2":{"$operator":"value2"}
2745
+ * }`
2746
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
2747
+ */
2748
+ filter?: Record<string, any> | null;
2749
+ }
2750
+ interface CountBookingsResponse {
2751
+ /** Number of bookings matching the specified filter. */
2752
+ count?: number;
2753
+ }
1309
2754
  interface CreateMultiServiceBookingRequest {
1310
2755
  /**
1311
2756
  * Between 2 to 8 new single-service booking specifications to create and combine in a multi-service booking.
@@ -1676,6 +3121,584 @@ interface RemoveBookingsFromMultiServiceBookingResponse {
1676
3121
  /** Single-service bookings that were removed from the multi-service booking. */
1677
3122
  bookings?: BookingResult[];
1678
3123
  }
3124
+ /** @docsIgnore */
3125
+ type ConfirmOrDeclineBookingApplicationErrors = {
3126
+ code?: 'INVALID_BOOKING_STATUS';
3127
+ description?: string;
3128
+ data?: Record<string, any>;
3129
+ } | {
3130
+ code?: 'BOOKING_NOT_FOUND';
3131
+ description?: string;
3132
+ data?: Record<string, any>;
3133
+ };
3134
+ /** @docsIgnore */
3135
+ type BulkConfirmOrDeclineBookingApplicationErrors = {
3136
+ code?: 'DUPLICATED_BOOKINGS';
3137
+ description?: string;
3138
+ data?: Record<string, any>;
3139
+ };
3140
+ /** @docsIgnore */
3141
+ type CreateBookingApplicationErrors = {
3142
+ code?: 'SESSION_NOT_FOUND';
3143
+ description?: string;
3144
+ data?: Record<string, any>;
3145
+ } | {
3146
+ code?: 'SCHEDULE_NOT_FOUND';
3147
+ description?: string;
3148
+ data?: Record<string, any>;
3149
+ } | {
3150
+ code?: 'FAILED_RESOLVING_CUSTOM_CHOICES';
3151
+ description?: string;
3152
+ data?: Record<string, any>;
3153
+ } | {
3154
+ code?: 'INVALID_CHOICES';
3155
+ description?: string;
3156
+ data?: Record<string, any>;
3157
+ } | {
3158
+ code?: 'VALIDATION_FAILURE';
3159
+ description?: string;
3160
+ data?: Record<string, any>;
3161
+ } | {
3162
+ code?: 'SESSION_CAPACITY_EXCEEDED';
3163
+ description?: string;
3164
+ data?: Record<string, any>;
3165
+ } | {
3166
+ code?: 'SCHEDULE_CAPACITY_EXCEEDED';
3167
+ description?: string;
3168
+ data?: Record<string, any>;
3169
+ } | {
3170
+ code?: 'SLOT_NOT_AVAILABLE';
3171
+ description?: string;
3172
+ data?: Record<string, any>;
3173
+ } | {
3174
+ code?: 'FAILED_VALIDATING_AVAILABILITY';
3175
+ description?: string;
3176
+ data?: Record<string, any>;
3177
+ } | {
3178
+ code?: 'BOOKING_POLICY_VIOLATION';
3179
+ description?: string;
3180
+ data?: Record<string, any>;
3181
+ } | {
3182
+ code?: 'UNAUTHORIZED_OPERATION';
3183
+ description?: string;
3184
+ data?: Record<string, any>;
3185
+ } | {
3186
+ code?: 'INVALID_SERVICE_CHOICES';
3187
+ description?: string;
3188
+ data?: Record<string, any>;
3189
+ } | {
3190
+ code?: 'INVALID_FLOW_SELECTED_RESOURCES';
3191
+ description?: string;
3192
+ data?: Record<string, any>;
3193
+ } | {
3194
+ code?: 'CAN_NOT_CREATE_BOOKING_WITH_MULTI_SERVICE_BOOKING_INFO';
3195
+ description?: string;
3196
+ data?: Record<string, any>;
3197
+ } | {
3198
+ code?: 'CAN_NOT_SKIP_AVAILABILITY_VALIDATION_IF_RESOURCE_NOT_PROVIDED';
3199
+ description?: string;
3200
+ data?: Record<string, any>;
3201
+ } | {
3202
+ code?: 'INVALID_DATE_FORMAT';
3203
+ description?: string;
3204
+ data?: Record<string, any>;
3205
+ } | {
3206
+ code?: 'INVALID_TIME_ZONE';
3207
+ description?: string;
3208
+ data?: Record<string, any>;
3209
+ } | {
3210
+ code?: 'CONTACT_DETAILS_CONFLICT';
3211
+ description?: string;
3212
+ data?: Record<string, any>;
3213
+ };
3214
+ /** @docsIgnore */
3215
+ type BulkCreateBookingApplicationErrors = {
3216
+ code?: 'SESSION_NOT_FOUND';
3217
+ description?: string;
3218
+ data?: Record<string, any>;
3219
+ } | {
3220
+ code?: 'SCHEDULE_NOT_FOUND';
3221
+ description?: string;
3222
+ data?: Record<string, any>;
3223
+ } | {
3224
+ code?: 'RESOURCE_NOT_FOUND';
3225
+ description?: string;
3226
+ data?: Record<string, any>;
3227
+ } | {
3228
+ code?: 'FAILED_RESOLVING_CUSTOM_CHOICES';
3229
+ description?: string;
3230
+ data?: Record<string, any>;
3231
+ } | {
3232
+ code?: 'INVALID_CHOICES';
3233
+ description?: string;
3234
+ data?: Record<string, any>;
3235
+ } | {
3236
+ code?: 'VALIDATION_FAILURE';
3237
+ description?: string;
3238
+ data?: Record<string, any>;
3239
+ } | {
3240
+ code?: 'SLOT_NOT_AVAILABLE';
3241
+ description?: string;
3242
+ data?: Record<string, any>;
3243
+ } | {
3244
+ code?: 'EMPTY_FORM_INFO';
3245
+ description?: string;
3246
+ data?: Record<string, any>;
3247
+ } | {
3248
+ code?: 'UNAUTHORIZED_OPERATION';
3249
+ description?: string;
3250
+ data?: Record<string, any>;
3251
+ } | {
3252
+ code?: 'CAN_NOT_SKIP_AVAILABILITY_VALIDATION_IF_RESOURCE_NOT_PROVIDED';
3253
+ description?: string;
3254
+ data?: Record<string, any>;
3255
+ };
3256
+ /** @docsIgnore */
3257
+ type RescheduleBookingApplicationErrors = {
3258
+ code?: 'BOOKING_NOT_FOUND';
3259
+ description?: string;
3260
+ data?: Record<string, any>;
3261
+ } | {
3262
+ code?: 'BOOKING_POLICY_VIOLATION';
3263
+ description?: string;
3264
+ data?: Record<string, any>;
3265
+ } | {
3266
+ code?: 'UNAUTHORIZED_OPERATION';
3267
+ description?: string;
3268
+ data?: Record<string, any>;
3269
+ } | {
3270
+ code?: 'SESSION_CAPACITY_EXCEEDED';
3271
+ description?: string;
3272
+ data?: Record<string, any>;
3273
+ } | {
3274
+ code?: 'SCHEDULE_CAPACITY_EXCEEDED';
3275
+ description?: string;
3276
+ data?: Record<string, any>;
3277
+ } | {
3278
+ code?: 'SLOT_NOT_AVAILABLE';
3279
+ description?: string;
3280
+ data?: Record<string, any>;
3281
+ } | {
3282
+ code?: 'VALIDATION_FAILURE';
3283
+ description?: string;
3284
+ data?: Record<string, any>;
3285
+ } | {
3286
+ code?: 'EMPTY_FORM_INFO';
3287
+ description?: string;
3288
+ data?: Record<string, any>;
3289
+ } | {
3290
+ code?: 'SESSION_NOT_FOUND';
3291
+ description?: string;
3292
+ data?: Record<string, any>;
3293
+ } | {
3294
+ code?: 'SCHEDULE_NOT_FOUND';
3295
+ description?: string;
3296
+ data?: Record<string, any>;
3297
+ } | {
3298
+ code?: 'RESOURCE_NOT_FOUND';
3299
+ description?: string;
3300
+ data?: Record<string, any>;
3301
+ } | {
3302
+ code?: 'FAILED_VALIDATING_AVAILABILITY';
3303
+ description?: string;
3304
+ data?: Record<string, any>;
3305
+ } | {
3306
+ code?: 'FAILED_RESOLVING_SESSION';
3307
+ description?: string;
3308
+ data?: Record<string, any>;
3309
+ } | {
3310
+ code?: 'FAILED_RESOLVING_SCHEDULE';
3311
+ description?: string;
3312
+ data?: Record<string, any>;
3313
+ } | {
3314
+ code?: 'INVALID_SERVICE_CHOICES';
3315
+ description?: string;
3316
+ data?: Record<string, any>;
3317
+ } | {
3318
+ code?: 'NOT_ALLOWED_TO_UPDATE_BOOKING_IN_MULTI_SERVICE_BOOKING';
3319
+ description?: string;
3320
+ data?: Record<string, any>;
3321
+ } | {
3322
+ code?: 'ADD_ON_NOT_FOUND';
3323
+ description?: string;
3324
+ data?: Record<string, any>;
3325
+ } | {
3326
+ code?: 'ADD_ON_CHANGES_NOT_ALLOWED';
3327
+ description?: string;
3328
+ data?: Record<string, any>;
3329
+ } | {
3330
+ code?: 'ADD_ON_GROUP_NOT_FOUND';
3331
+ description?: string;
3332
+ data?: Record<string, any>;
3333
+ } | {
3334
+ code?: 'PRICE_CHANGE_NOT_ALLOWED';
3335
+ description?: string;
3336
+ data?: Record<string, any>;
3337
+ };
3338
+ /** @docsIgnore */
3339
+ type BookingsConfirmBookingApplicationErrors = {
3340
+ code?: 'BOOKING_NOT_FOUND';
3341
+ description?: string;
3342
+ data?: Record<string, any>;
3343
+ } | {
3344
+ code?: 'FAILED_CONFIRMING_NON_PENDING_BOOKING';
3345
+ description?: string;
3346
+ data?: Record<string, any>;
3347
+ } | {
3348
+ code?: 'INVALID_BOOKING_STATUS';
3349
+ description?: string;
3350
+ data?: Record<string, any>;
3351
+ } | {
3352
+ code?: 'NO_OPEN_SPOTS';
3353
+ description?: string;
3354
+ data?: Record<string, any>;
3355
+ };
3356
+ /** @docsIgnore */
3357
+ type SetBookingSubmissionIdApplicationErrors = {
3358
+ code?: 'BOOKING_NOT_FOUND';
3359
+ description?: string;
3360
+ data?: Record<string, any>;
3361
+ };
3362
+ /** @docsIgnore */
3363
+ type UpdateExtendedFieldsApplicationErrors = {
3364
+ code?: 'BOOKING_NOT_FOUND';
3365
+ description?: string;
3366
+ data?: Record<string, any>;
3367
+ };
3368
+ /** @docsIgnore */
3369
+ type BookingsDeclineBookingApplicationErrors = {
3370
+ code?: 'BOOKING_NOT_FOUND';
3371
+ description?: string;
3372
+ data?: Record<string, any>;
3373
+ } | {
3374
+ code?: 'FAILED_DECLINE_NON_PENDING_BOOKING';
3375
+ description?: string;
3376
+ data?: Record<string, any>;
3377
+ } | {
3378
+ code?: 'INVALID_BOOKING_STATUS';
3379
+ description?: string;
3380
+ data?: Record<string, any>;
3381
+ };
3382
+ /** @docsIgnore */
3383
+ type BookingsCancelBookingApplicationErrors = {
3384
+ code?: 'BOOKING_NOT_FOUND';
3385
+ description?: string;
3386
+ data?: Record<string, any>;
3387
+ } | {
3388
+ code?: 'BOOKING_POLICY_VIOLATION';
3389
+ description?: string;
3390
+ data?: Record<string, any>;
3391
+ } | {
3392
+ code?: 'VALIDATION_FAILURE';
3393
+ description?: string;
3394
+ data?: Record<string, any>;
3395
+ } | {
3396
+ code?: 'FEATURE_LIMIT_EXCEEDED';
3397
+ description?: string;
3398
+ data?: Record<string, any>;
3399
+ } | {
3400
+ code?: 'REFUND_NOT_ALLOWED';
3401
+ description?: string;
3402
+ data?: Record<string, any>;
3403
+ } | {
3404
+ code?: 'NOT_ALLOWED_TO_UPDATE_BOOKING_IN_MULTI_SERVICE_BOOKING';
3405
+ description?: string;
3406
+ data?: Record<string, any>;
3407
+ };
3408
+ /** @docsIgnore */
3409
+ type BookingsUpdateNumberOfParticipantsApplicationErrors = {
3410
+ code?: 'BOOKING_NOT_FOUND';
3411
+ description?: string;
3412
+ data?: Record<string, any>;
3413
+ };
3414
+ /** @docsIgnore */
3415
+ type MarkBookingAsPendingApplicationErrors = {
3416
+ code?: 'BOOKING_MARK_BOOKING_AS_PENDING';
3417
+ description?: string;
3418
+ data?: Record<string, any>;
3419
+ } | {
3420
+ code?: 'BOOKING_NOT_FOUND';
3421
+ description?: string;
3422
+ data?: Record<string, any>;
3423
+ } | {
3424
+ code?: 'NO_OPEN_SPOTS';
3425
+ description?: string;
3426
+ data?: Record<string, any>;
3427
+ } | {
3428
+ code?: 'NOT_PENDING_APPROVAL_SERVICE';
3429
+ description?: string;
3430
+ data?: Record<string, any>;
3431
+ };
3432
+ /** @docsIgnore */
3433
+ type CreateMultiServiceBookingApplicationErrors = {
3434
+ code?: 'VALIDATION_FAILURE';
3435
+ description?: string;
3436
+ data?: Record<string, any>;
3437
+ } | {
3438
+ code?: 'SCHEDULE_NOT_FOUND';
3439
+ description?: string;
3440
+ data?: Record<string, any>;
3441
+ } | {
3442
+ code?: 'RESOURCE_NOT_FOUND';
3443
+ description?: string;
3444
+ data?: Record<string, any>;
3445
+ } | {
3446
+ code?: 'EMPTY_FORM_INFO';
3447
+ description?: string;
3448
+ data?: Record<string, any>;
3449
+ } | {
3450
+ code?: 'FAILED_RESOLVING_CUSTOM_CHOICES';
3451
+ description?: string;
3452
+ data?: Record<string, any>;
3453
+ } | {
3454
+ code?: 'INVALID_CHOICES';
3455
+ description?: string;
3456
+ data?: Record<string, any>;
3457
+ } | {
3458
+ code?: 'SLOT_NOT_AVAILABLE';
3459
+ description?: string;
3460
+ data?: Record<string, any>;
3461
+ } | {
3462
+ code?: 'UNAUTHORIZED_OPERATION';
3463
+ description?: string;
3464
+ data?: Record<string, any>;
3465
+ } | {
3466
+ code?: 'CAN_NOT_SKIP_AVAILABILITY_VALIDATION_IF_RESOURCE_NOT_PROVIDED';
3467
+ description?: string;
3468
+ data?: Record<string, any>;
3469
+ };
3470
+ /** @docsIgnore */
3471
+ type RescheduleMultiServiceBookingApplicationErrors = {
3472
+ code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3473
+ description?: string;
3474
+ data?: Record<string, any>;
3475
+ } | {
3476
+ code?: 'BOOKING_NOT_FOUND';
3477
+ description?: string;
3478
+ data?: Record<string, any>;
3479
+ } | {
3480
+ code?: 'REVISION_MISSING';
3481
+ description?: string;
3482
+ data?: Record<string, any>;
3483
+ } | {
3484
+ code?: 'NOT_ALL_BOOKINGS_WERE_SENT';
3485
+ description?: string;
3486
+ data?: Record<string, any>;
3487
+ } | {
3488
+ code?: 'DUPLICATE_BOOKING_INFO';
3489
+ description?: string;
3490
+ data?: Record<string, any>;
3491
+ } | {
3492
+ code?: 'SOME_BOOKINGS_UPDATES_FAILED';
3493
+ description?: string;
3494
+ data?: Record<string, any>;
3495
+ } | {
3496
+ code?: 'BOOKING_REVISION_MISMATCH';
3497
+ description?: string;
3498
+ data?: Record<string, any>;
3499
+ } | {
3500
+ code?: 'NO_OPEN_SPOTS';
3501
+ description?: string;
3502
+ data?: Record<string, any>;
3503
+ } | {
3504
+ code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
3505
+ description?: string;
3506
+ data?: Record<string, any>;
3507
+ };
3508
+ /** @docsIgnore */
3509
+ type GetMultiServiceBookingAvailabilityApplicationErrors = {
3510
+ code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3511
+ description?: string;
3512
+ data?: Record<string, any>;
3513
+ };
3514
+ /** @docsIgnore */
3515
+ type CancelMultiServiceBookingApplicationErrors = {
3516
+ code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3517
+ description?: string;
3518
+ data?: Record<string, any>;
3519
+ } | {
3520
+ code?: 'ALL_BOOKINGS_ARE_ALREADY_DECLINED';
3521
+ description?: string;
3522
+ data?: Record<string, any>;
3523
+ } | {
3524
+ code?: 'ALL_BOOKINGS_ARE_ALREADY_CANCELED';
3525
+ description?: string;
3526
+ data?: Record<string, any>;
3527
+ } | {
3528
+ code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
3529
+ description?: string;
3530
+ data?: Record<string, any>;
3531
+ };
3532
+ /** @docsIgnore */
3533
+ type MarkMultiServiceBookingAsPendingApplicationErrors = {
3534
+ code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3535
+ description?: string;
3536
+ data?: Record<string, any>;
3537
+ } | {
3538
+ code?: 'BOOKING_NOT_FOUND';
3539
+ description?: string;
3540
+ data?: Record<string, any>;
3541
+ } | {
3542
+ code?: 'REVISION_MISSING';
3543
+ description?: string;
3544
+ data?: Record<string, any>;
3545
+ } | {
3546
+ code?: 'NOT_ALL_BOOKINGS_WERE_SENT';
3547
+ description?: string;
3548
+ data?: Record<string, any>;
3549
+ } | {
3550
+ code?: 'DUPLICATE_BOOKING_INFO';
3551
+ description?: string;
3552
+ data?: Record<string, any>;
3553
+ } | {
3554
+ code?: 'SOME_BOOKINGS_UPDATES_FAILED';
3555
+ description?: string;
3556
+ data?: Record<string, any>;
3557
+ } | {
3558
+ code?: 'BOOKING_REVISION_MISMATCH';
3559
+ description?: string;
3560
+ data?: Record<string, any>;
3561
+ } | {
3562
+ code?: 'NO_OPEN_SPOTS';
3563
+ description?: string;
3564
+ data?: Record<string, any>;
3565
+ } | {
3566
+ code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
3567
+ description?: string;
3568
+ data?: Record<string, any>;
3569
+ };
3570
+ /** @docsIgnore */
3571
+ type ConfirmMultiServiceBookingApplicationErrors = {
3572
+ code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3573
+ description?: string;
3574
+ data?: Record<string, any>;
3575
+ } | {
3576
+ code?: 'BOOKING_NOT_FOUND';
3577
+ description?: string;
3578
+ data?: Record<string, any>;
3579
+ } | {
3580
+ code?: 'REVISION_MISSING';
3581
+ description?: string;
3582
+ data?: Record<string, any>;
3583
+ } | {
3584
+ code?: 'INVALID_BOOKING_STATUS';
3585
+ description?: string;
3586
+ data?: Record<string, any>;
3587
+ } | {
3588
+ code?: 'ALL_BOOKINGS_ARE_ALREADY_CONFIRMED';
3589
+ description?: string;
3590
+ data?: Record<string, any>;
3591
+ } | {
3592
+ code?: 'NOT_ALL_BOOKINGS_WERE_SENT';
3593
+ description?: string;
3594
+ data?: Record<string, any>;
3595
+ } | {
3596
+ code?: 'DUPLICATE_BOOKING_INFO';
3597
+ description?: string;
3598
+ data?: Record<string, any>;
3599
+ } | {
3600
+ code?: 'SOME_BOOKINGS_UPDATES_FAILED';
3601
+ description?: string;
3602
+ data?: Record<string, any>;
3603
+ } | {
3604
+ code?: 'BOOKING_REVISION_MISMATCH';
3605
+ description?: string;
3606
+ data?: Record<string, any>;
3607
+ } | {
3608
+ code?: 'NO_OPEN_SPOTS';
3609
+ description?: string;
3610
+ data?: Record<string, any>;
3611
+ } | {
3612
+ code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
3613
+ description?: string;
3614
+ data?: Record<string, any>;
3615
+ } | {
3616
+ code?: 'NOT_ALL_BOOKINGS_HAVE_START_AND_END_DATE';
3617
+ description?: string;
3618
+ data?: Record<string, any>;
3619
+ };
3620
+ /** @docsIgnore */
3621
+ type DeclineMultiServiceBookingApplicationErrors = {
3622
+ code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3623
+ description?: string;
3624
+ data?: Record<string, any>;
3625
+ } | {
3626
+ code?: 'BOOKING_NOT_FOUND';
3627
+ description?: string;
3628
+ data?: Record<string, any>;
3629
+ } | {
3630
+ code?: 'REVISION_MISSING';
3631
+ description?: string;
3632
+ data?: Record<string, any>;
3633
+ } | {
3634
+ code?: 'INVALID_BOOKING_STATUS';
3635
+ description?: string;
3636
+ data?: Record<string, any>;
3637
+ } | {
3638
+ code?: 'ALL_BOOKINGS_ARE_ALREADY_DECLINED';
3639
+ description?: string;
3640
+ data?: Record<string, any>;
3641
+ } | {
3642
+ code?: 'NOT_ALL_BOOKINGS_WERE_SENT';
3643
+ description?: string;
3644
+ data?: Record<string, any>;
3645
+ } | {
3646
+ code?: 'DUPLICATE_BOOKING_INFO';
3647
+ description?: string;
3648
+ data?: Record<string, any>;
3649
+ } | {
3650
+ code?: 'SOME_BOOKINGS_UPDATES_FAILED';
3651
+ description?: string;
3652
+ data?: Record<string, any>;
3653
+ } | {
3654
+ code?: 'BOOKING_REVISION_MISMATCH';
3655
+ description?: string;
3656
+ data?: Record<string, any>;
3657
+ } | {
3658
+ code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
3659
+ description?: string;
3660
+ data?: Record<string, any>;
3661
+ };
3662
+ /** @docsIgnore */
3663
+ type AddBookingsToMultiServiceBookingApplicationErrors = {
3664
+ code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3665
+ description?: string;
3666
+ data?: Record<string, any>;
3667
+ } | {
3668
+ code?: 'BOOKING_NOT_FOUND';
3669
+ description?: string;
3670
+ data?: Record<string, any>;
3671
+ } | {
3672
+ code?: 'BOOKING_REVISION_MISMATCH';
3673
+ description?: string;
3674
+ data?: Record<string, any>;
3675
+ } | {
3676
+ code?: 'BOOKING_ALREADY_PART_OF_ANOTHER_MULTI_SERVICE_BOOKING';
3677
+ description?: string;
3678
+ data?: Record<string, any>;
3679
+ } | {
3680
+ code?: 'MULTI_SERVICE_BOOKING_ALREADY_INCLUDES_BOOKING';
3681
+ description?: string;
3682
+ data?: Record<string, any>;
3683
+ } | {
3684
+ code?: 'BOOKING_TO_ADD_STATUS_NOT_VALID';
3685
+ description?: string;
3686
+ data?: Record<string, any>;
3687
+ };
3688
+ /** @docsIgnore */
3689
+ type RemoveBookingsFromMultiServiceBookingApplicationErrors = {
3690
+ code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3691
+ description?: string;
3692
+ data?: Record<string, any>;
3693
+ } | {
3694
+ code?: 'BOOKING_NOT_FOUND';
3695
+ description?: string;
3696
+ data?: Record<string, any>;
3697
+ } | {
3698
+ code?: 'BOOKING_REVISION_MISMATCH';
3699
+ description?: string;
3700
+ data?: Record<string, any>;
3701
+ };
1679
3702
 
1680
3703
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1681
3704
  getUrl: (context: any) => string;
@@ -1743,4 +3766,4 @@ declare function getMultiServiceBooking(): __PublicMethodMetaInfo<'GET', {
1743
3766
  declare function addBookingsToMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {}, AddBookingsToMultiServiceBookingRequest$1, AddBookingsToMultiServiceBookingRequest, AddBookingsToMultiServiceBookingResponse$1, AddBookingsToMultiServiceBookingResponse>;
1744
3767
  declare function removeBookingsFromMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {}, RemoveBookingsFromMultiServiceBookingRequest$1, RemoveBookingsFromMultiServiceBookingRequest, RemoveBookingsFromMultiServiceBookingResponse$1, RemoveBookingsFromMultiServiceBookingResponse>;
1745
3768
 
1746
- export { type __PublicMethodMetaInfo, addBookingsToMultiServiceBooking, bulkConfirmOrDeclineBooking, bulkCreateBooking, bulkGetMultiServiceBookingAllowedActions, cancelBooking, cancelMultiServiceBooking, confirmBooking, confirmMultiServiceBooking, confirmOrDeclineBooking, createBooking, createMultiServiceBooking, declineBooking, declineMultiServiceBooking, getMultiServiceBooking, getMultiServiceBookingAvailability, markBookingAsPending, markMultiServiceBookingAsPending, removeBookingsFromMultiServiceBooking, rescheduleBooking, rescheduleMultiServiceBooking, setBookingSubmissionId, updateExtendedFields, updateNumberOfParticipants };
3769
+ export { type ActionEvent as ActionEventOriginal, Actor as ActorOriginal, type ActorWithLiterals as ActorWithLiteralsOriginal, type AddBookingsToMultiServiceBookingApplicationErrors as AddBookingsToMultiServiceBookingApplicationErrorsOriginal, type AddBookingsToMultiServiceBookingRequest as AddBookingsToMultiServiceBookingRequestOriginal, type AddBookingsToMultiServiceBookingResponse as AddBookingsToMultiServiceBookingResponseOriginal, type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, type AddressStreetOneOf as AddressStreetOneOfOriginal, type AllowedActionsAnonymously as AllowedActionsAnonymouslyOriginal, type AllowedActions as AllowedActionsOriginal, type AnonymousBookingUrls as AnonymousBookingUrlsOriginal, type ApplicationError as ApplicationErrorOriginal, type AvailableResources as AvailableResourcesOriginal, type BookedAddOn as BookedAddOnOriginal, type BookedEntityItemOneOf as BookedEntityItemOneOfOriginal, type BookedEntity as BookedEntityOriginal, type BookedResource as BookedResourceOriginal, type BookedSchedule as BookedScheduleOriginal, type BookedSlot as BookedSlotOriginal, type BookingCanceled as BookingCanceledOriginal, type BookingChanged as BookingChangedOriginal, type BookingConfirmed as BookingConfirmedOriginal, type BookingDeclined as BookingDeclinedOriginal, type BookingDetails as BookingDetailsOriginal, type BookingFormFilled as BookingFormFilledOriginal, type BookingIdAndRevision as BookingIdAndRevisionOriginal, type BookingInfo as BookingInfoOriginal, type BookingMarkedAsPending as BookingMarkedAsPendingOriginal, type Booking as BookingOriginal, type BookingParticipantsInfoOneOf as BookingParticipantsInfoOneOfOriginal, type BookingPolicySettings as BookingPolicySettingsOriginal, type BookingPolicyViolations as BookingPolicyViolationsOriginal, type BookingRescheduled as BookingRescheduledOriginal, type BookingRescheduledPreviousParticipantsInfoOneOf as BookingRescheduledPreviousParticipantsInfoOneOfOriginal, type BookingResult as BookingResultOriginal, type BookingSource as BookingSourceOriginal, BookingStatus as BookingStatusOriginal, type BookingStatusWithLiterals as BookingStatusWithLiteralsOriginal, type BookingsCancelBookingApplicationErrors as BookingsCancelBookingApplicationErrorsOriginal, type BookingsConfirmBookingApplicationErrors as BookingsConfirmBookingApplicationErrorsOriginal, type BookingsDeclineBookingApplicationErrors as BookingsDeclineBookingApplicationErrorsOriginal, type BookingsUpdateNumberOfParticipantsApplicationErrors as BookingsUpdateNumberOfParticipantsApplicationErrorsOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkBookingResult as BulkBookingResultOriginal, type BulkCalculateAllowedActionsRequest as BulkCalculateAllowedActionsRequestOriginal, type BulkCalculateAllowedActionsResponse as BulkCalculateAllowedActionsResponseOriginal, type BulkCalculateAllowedActionsResult as BulkCalculateAllowedActionsResultOriginal, type BulkConfirmOrDeclineBookingApplicationErrors as BulkConfirmOrDeclineBookingApplicationErrorsOriginal, type BulkConfirmOrDeclineBookingRequestBookingDetails as BulkConfirmOrDeclineBookingRequestBookingDetailsOriginal, type BulkConfirmOrDeclineBookingRequest as BulkConfirmOrDeclineBookingRequestOriginal, type BulkConfirmOrDeclineBookingResponse as BulkConfirmOrDeclineBookingResponseOriginal, type BulkCreateBookingApplicationErrors as BulkCreateBookingApplicationErrorsOriginal, type BulkCreateBookingRequest as BulkCreateBookingRequestOriginal, type BulkCreateBookingResponse as BulkCreateBookingResponseOriginal, type BulkGetMultiServiceBookingAllowedActionsRequest as BulkGetMultiServiceBookingAllowedActionsRequestOriginal, type BulkGetMultiServiceBookingAllowedActionsResponse as BulkGetMultiServiceBookingAllowedActionsResponseOriginal, type BulkRescheduleBookingRequestBooking as BulkRescheduleBookingRequestBookingOriginal, type BulkRescheduleBookingRequest as BulkRescheduleBookingRequestOriginal, type BulkRescheduleBookingResponse as BulkRescheduleBookingResponseOriginal, type BulkUpdateBookedScheduleRequest as BulkUpdateBookedScheduleRequestOriginal, type BulkUpdateBookedScheduleResponse as BulkUpdateBookedScheduleResponseOriginal, type BulkUpdateBookingRequest as BulkUpdateBookingRequestOriginal, type BulkUpdateBookingResponse as BulkUpdateBookingResponseOriginal, type CancelBookingAnonymouslyRequest as CancelBookingAnonymouslyRequestOriginal, type CancelBookingAnonymouslyResponse as CancelBookingAnonymouslyResponseOriginal, type CancelBookingFlowControlSettings as CancelBookingFlowControlSettingsOriginal, type CancelBookingRequestFlowControlSettings as CancelBookingRequestFlowControlSettingsOriginal, type CancelBookingRequest as CancelBookingRequestOriginal, type CancelBookingResponse as CancelBookingResponseOriginal, type CancelMultiServiceBookingApplicationErrors as CancelMultiServiceBookingApplicationErrorsOriginal, type CancelMultiServiceBookingRequest as CancelMultiServiceBookingRequestOriginal, type CancelMultiServiceBookingResponse as CancelMultiServiceBookingResponseOriginal, type Clash as ClashOriginal, type CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal, type CommonIdentificationData as CommonIdentificationDataOriginal, type ConfirmBookingFlowControlSettings as ConfirmBookingFlowControlSettingsOriginal, type ConfirmBookingRequest as ConfirmBookingRequestOriginal, type ConfirmBookingResponse as ConfirmBookingResponseOriginal, type ConfirmMultiServiceBookingApplicationErrors as ConfirmMultiServiceBookingApplicationErrorsOriginal, type ConfirmMultiServiceBookingRequest as ConfirmMultiServiceBookingRequestOriginal, type ConfirmMultiServiceBookingResponse as ConfirmMultiServiceBookingResponseOriginal, type ConfirmOrDeclineBookingApplicationErrors as ConfirmOrDeclineBookingApplicationErrorsOriginal, type ConfirmOrDeclineBookingRequest as ConfirmOrDeclineBookingRequestOriginal, type ConfirmOrDeclineBookingResponse as ConfirmOrDeclineBookingResponseOriginal, type ConfirmRequest as ConfirmRequestOriginal, type ConfirmResponse as ConfirmResponseOriginal, type ConsistentQueryBookingsRequest as ConsistentQueryBookingsRequestOriginal, type ConsistentQueryBookingsResponse as ConsistentQueryBookingsResponseOriginal, type ContactDetails as ContactDetailsOriginal, type CountBookingsRequest as CountBookingsRequestOriginal, type CountBookingsResponse as CountBookingsResponseOriginal, type CreateBookingApplicationErrors as CreateBookingApplicationErrorsOriginal, type CreateBookingFlowControlSettings as CreateBookingFlowControlSettingsOriginal, type CreateBookingInfo as CreateBookingInfoOriginal, type CreateBookingRequestFlowControlSettings as CreateBookingRequestFlowControlSettingsOriginal, type CreateBookingRequest as CreateBookingRequestOriginal, type CreateBookingResponse as CreateBookingResponseOriginal, type CreateMultiServiceBookingApplicationErrors as CreateMultiServiceBookingApplicationErrorsOriginal, type CreateMultiServiceBookingRequest as CreateMultiServiceBookingRequestOriginal, type CreateMultiServiceBookingResponse as CreateMultiServiceBookingResponseOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CustomFormField as CustomFormFieldOriginal, type DeclineBookingFlowControlSettings as DeclineBookingFlowControlSettingsOriginal, type DeclineBookingRequest as DeclineBookingRequestOriginal, type DeclineBookingResponse as DeclineBookingResponseOriginal, type DeclineMultiServiceBookingApplicationErrors as DeclineMultiServiceBookingApplicationErrorsOriginal, type DeclineMultiServiceBookingRequest as DeclineMultiServiceBookingRequestOriginal, type DeclineMultiServiceBookingResponse as DeclineMultiServiceBookingResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Duration as DurationOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FlowControlSettings as FlowControlSettingsOriginal, type GetAnonymousActionDetailsRequest as GetAnonymousActionDetailsRequestOriginal, type GetAnonymousActionDetailsResponse as GetAnonymousActionDetailsResponseOriginal, type GetBookingAnonymouslyRequest as GetBookingAnonymouslyRequestOriginal, type GetBookingAnonymouslyResponse as GetBookingAnonymouslyResponseOriginal, type GetMultiServiceBookingAvailabilityApplicationErrors as GetMultiServiceBookingAvailabilityApplicationErrorsOriginal, type GetMultiServiceBookingAvailabilityRequest as GetMultiServiceBookingAvailabilityRequestOriginal, type GetMultiServiceBookingAvailabilityResponseBookingInfo as GetMultiServiceBookingAvailabilityResponseBookingInfoOriginal, type GetMultiServiceBookingAvailabilityResponse as GetMultiServiceBookingAvailabilityResponseOriginal, type GetMultiServiceBookingRequest as GetMultiServiceBookingRequestOriginal, type GetMultiServiceBookingResponse as GetMultiServiceBookingResponseOriginal, type GetScheduleAvailabilityRequest as GetScheduleAvailabilityRequestOriginal, type GetScheduleAvailabilityResponse as GetScheduleAvailabilityResponseOriginal, type GetSlotAvailabilityRequest as GetSlotAvailabilityRequestOriginal, type GetSlotAvailabilityResponse as GetSlotAvailabilityResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, IdentificationDataIdentityType as IdentificationDataIdentityTypeOriginal, type IdentificationDataIdentityTypeWithLiterals as IdentificationDataIdentityTypeWithLiteralsOriginal, type IdentificationData as IdentificationDataOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, type ItemMetadata as ItemMetadataOriginal, type LegacyCreateBookingRequest as LegacyCreateBookingRequestOriginal, type LegacyCreateBookingResponse as LegacyCreateBookingResponseOriginal, LocationLocationType as LocationLocationTypeOriginal, type LocationLocationTypeWithLiterals as LocationLocationTypeWithLiteralsOriginal, type Location as LocationOriginal, LocationType as LocationTypeOriginal, type LocationTypeWithLiterals as LocationTypeWithLiteralsOriginal, type MarkBookingAsPendingApplicationErrors as MarkBookingAsPendingApplicationErrorsOriginal, type MarkBookingAsPendingFlowControlSettings as MarkBookingAsPendingFlowControlSettingsOriginal, type MarkBookingAsPendingRequest as MarkBookingAsPendingRequestOriginal, type MarkBookingAsPendingResponse as MarkBookingAsPendingResponseOriginal, type MarkMultiServiceBookingAsPendingApplicationErrors as MarkMultiServiceBookingAsPendingApplicationErrorsOriginal, type MarkMultiServiceBookingAsPendingRequest as MarkMultiServiceBookingAsPendingRequestOriginal, type MarkMultiServiceBookingAsPendingResponse as MarkMultiServiceBookingAsPendingResponseOriginal, type MaskedBooking as MaskedBookingOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigrationCheckIfClashesWithBlockedTimeRequest as MigrationCheckIfClashesWithBlockedTimeRequestOriginal, type MigrationCheckIfClashesWithBlockedTimeResponse as MigrationCheckIfClashesWithBlockedTimeResponseOriginal, type MsidAndBookingId as MsidAndBookingIdOriginal, type MultiServiceBookingInfo as MultiServiceBookingInfoOriginal, type MultiServiceBookingMetadata as MultiServiceBookingMetadataOriginal, type MultiServiceBooking as MultiServiceBookingOriginal, MultiServiceBookingType as MultiServiceBookingTypeOriginal, type MultiServiceBookingTypeWithLiterals as MultiServiceBookingTypeWithLiteralsOriginal, type NumberOfParticipantsUpdated as NumberOfParticipantsUpdatedOriginal, type NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf as NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOfOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type ParticipantChoices as ParticipantChoicesOriginal, type ParticipantNotification as ParticipantNotificationOriginal, PaymentStatus as PaymentStatusOriginal, type PaymentStatusWithLiterals as PaymentStatusWithLiteralsOriginal, Platform as PlatformOriginal, type PlatformWithLiterals as PlatformWithLiteralsOriginal, type QueryBookingsRequest as QueryBookingsRequestOriginal, type QueryBookingsResponse as QueryBookingsResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type RemoveBookingsFromMultiServiceBookingApplicationErrors as RemoveBookingsFromMultiServiceBookingApplicationErrorsOriginal, type RemoveBookingsFromMultiServiceBookingRequest as RemoveBookingsFromMultiServiceBookingRequestOriginal, type RemoveBookingsFromMultiServiceBookingResponse as RemoveBookingsFromMultiServiceBookingResponseOriginal, type RescheduleBookingAnonymouslyRequest as RescheduleBookingAnonymouslyRequestOriginal, type RescheduleBookingAnonymouslyResponse as RescheduleBookingAnonymouslyResponseOriginal, type RescheduleBookingApplicationErrors as RescheduleBookingApplicationErrorsOriginal, type RescheduleBookingFlowControlSettings as RescheduleBookingFlowControlSettingsOriginal, type RescheduleBookingInfo as RescheduleBookingInfoOriginal, type RescheduleBookingInfoParticipantsInfoOneOf as RescheduleBookingInfoParticipantsInfoOneOfOriginal, type RescheduleBookingRequestFlowControlSettings as RescheduleBookingRequestFlowControlSettingsOriginal, type RescheduleBookingRequest as RescheduleBookingRequestOriginal, type RescheduleBookingRequestParticipantsInfoOneOf as RescheduleBookingRequestParticipantsInfoOneOfOriginal, type RescheduleBookingResponse as RescheduleBookingResponseOriginal, type RescheduleMultiServiceBookingApplicationErrors as RescheduleMultiServiceBookingApplicationErrorsOriginal, type RescheduleMultiServiceBookingRequest as RescheduleMultiServiceBookingRequestOriginal, type RescheduleMultiServiceBookingResponse as RescheduleMultiServiceBookingResponseOriginal, type ResourceSelection as ResourceSelectionOriginal, type RestoreInfo as RestoreInfoOriginal, type ScheduleAvailability as ScheduleAvailabilityOriginal, SelectedPaymentOption as SelectedPaymentOptionOriginal, type SelectedPaymentOptionWithLiterals as SelectedPaymentOptionWithLiteralsOriginal, SelectionMethod as SelectionMethodOriginal, type SelectionMethodWithLiterals as SelectionMethodWithLiteralsOriginal, type ServiceChoiceChoiceOneOf as ServiceChoiceChoiceOneOfOriginal, type ServiceChoice as ServiceChoiceOriginal, type ServiceChoices as ServiceChoicesOriginal, type SetBookingFormAndSubmissionIdRequestCreatedByOneOf as SetBookingFormAndSubmissionIdRequestCreatedByOneOfOriginal, type SetBookingFormAndSubmissionIdRequest as SetBookingFormAndSubmissionIdRequestOriginal, type SetBookingFormAndSubmissionIdResponse as SetBookingFormAndSubmissionIdResponseOriginal, type SetBookingSessionIdRequest as SetBookingSessionIdRequestOriginal, type SetBookingSessionIdResponse as SetBookingSessionIdResponseOriginal, type SetBookingSubmissionIdApplicationErrors as SetBookingSubmissionIdApplicationErrorsOriginal, type SetBookingSubmissionIdRequest as SetBookingSubmissionIdRequestOriginal, type SetBookingSubmissionIdResponse as SetBookingSubmissionIdResponseOriginal, type SlotAvailability as SlotAvailabilityOriginal, type SlotBookings as SlotBookingsOriginal, type SlotLocation as SlotLocationOriginal, type Slot as SlotOriginal, type SlotResource as SlotResourceOriginal, type SlotSlotResource as SlotSlotResourceOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type StreetAddress as StreetAddressOriginal, type Subdivision as SubdivisionOriginal, type UpdateBookingRequest as UpdateBookingRequestOriginal, type UpdateBookingResponse as UpdateBookingResponseOriginal, type UpdateExtendedFieldsApplicationErrors as UpdateExtendedFieldsApplicationErrorsOriginal, type UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal, type UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal, type UpdateNumberOfParticipantsRequest as UpdateNumberOfParticipantsRequestOriginal, type UpdateNumberOfParticipantsRequestParticipantsInfoOneOf as UpdateNumberOfParticipantsRequestParticipantsInfoOneOfOriginal, type UpdateNumberOfParticipantsResponse as UpdateNumberOfParticipantsResponseOriginal, type V2CancelBookingRequest as V2CancelBookingRequestOriginal, type V2CancelBookingResponse as V2CancelBookingResponseOriginal, type V2ConfirmBookingRequest as V2ConfirmBookingRequestOriginal, type V2ConfirmBookingResponse as V2ConfirmBookingResponseOriginal, type V2CreateBookingRequestBookableItemOneOf as V2CreateBookingRequestBookableItemOneOfOriginal, type V2CreateBookingRequest as V2CreateBookingRequestOriginal, type V2CreateBookingRequestParticipantsInfoOneOf as V2CreateBookingRequestParticipantsInfoOneOfOriginal, type V2CreateBookingResponse as V2CreateBookingResponseOriginal, type V2DeclineBookingRequest as V2DeclineBookingRequestOriginal, type V2DeclineBookingResponse as V2DeclineBookingResponseOriginal, type V2RescheduleBookingRequest as V2RescheduleBookingRequestOriginal, type V2RescheduleBookingRequestParticipantsInfoOneOf as V2RescheduleBookingRequestParticipantsInfoOneOfOriginal, type V2RescheduleBookingResponse as V2RescheduleBookingResponseOriginal, type V2Slot as V2SlotOriginal, type V2UpdateNumberOfParticipantsRequest as V2UpdateNumberOfParticipantsRequestOriginal, type V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf as V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOfOriginal, type V2UpdateNumberOfParticipantsResponse as V2UpdateNumberOfParticipantsResponseOriginal, ValueType as ValueTypeOriginal, type ValueTypeWithLiterals as ValueTypeWithLiteralsOriginal, type WaitingList as WaitingListOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WebhooksIdentificationDataIdOneOf as WebhooksIdentificationDataIdOneOfOriginal, type WebhooksIdentificationData as WebhooksIdentificationDataOriginal, type __PublicMethodMetaInfo, addBookingsToMultiServiceBooking, bulkConfirmOrDeclineBooking, bulkCreateBooking, bulkGetMultiServiceBookingAllowedActions, cancelBooking, cancelMultiServiceBooking, confirmBooking, confirmMultiServiceBooking, confirmOrDeclineBooking, createBooking, createMultiServiceBooking, declineBooking, declineMultiServiceBooking, getMultiServiceBooking, getMultiServiceBookingAvailability, markBookingAsPending, markMultiServiceBookingAsPending, removeBookingsFromMultiServiceBooking, rescheduleBooking, rescheduleMultiServiceBooking, setBookingSubmissionId, updateExtendedFields, updateNumberOfParticipants };