@wix/auto_sdk_bookings_bookings 1.0.18 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/bookings-v2-booking-bookings.context.d.ts +61 -0
  11. package/build/cjs/src/bookings-v2-booking-bookings.context.js +77 -0
  12. package/build/cjs/src/bookings-v2-booking-bookings.context.js.map +1 -0
  13. package/build/cjs/src/bookings-v2-booking-bookings.http.d.ts +510 -0
  14. package/build/cjs/src/bookings-v2-booking-bookings.http.js +1579 -0
  15. package/build/cjs/src/bookings-v2-booking-bookings.http.js.map +1 -0
  16. package/build/cjs/src/bookings-v2-booking-bookings.meta.d.ts +61 -0
  17. package/build/cjs/src/bookings-v2-booking-bookings.meta.js +427 -0
  18. package/build/cjs/src/bookings-v2-booking-bookings.meta.js.map +1 -0
  19. package/build/{internal/index.d.ts → cjs/src/bookings-v2-booking-bookings.public.d.ts} +34 -78
  20. package/build/cjs/src/bookings-v2-booking-bookings.public.js +313 -0
  21. package/build/cjs/src/bookings-v2-booking-bookings.public.js.map +1 -0
  22. package/build/{bookings-v2-booking-bookings.universal-CI-yMoXr.d.mts → cjs/src/bookings-v2-booking-bookings.types.d.ts} +234 -644
  23. package/build/cjs/src/bookings-v2-booking-bookings.types.js +165 -0
  24. package/build/cjs/src/bookings-v2-booking-bookings.types.js.map +1 -0
  25. package/build/cjs/src/bookings-v2-booking-bookings.universal.d.ts +4335 -0
  26. package/build/cjs/src/bookings-v2-booking-bookings.universal.js +1652 -0
  27. package/build/cjs/src/bookings-v2-booking-bookings.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/bookings-v2-booking-bookings.context.d.ts +61 -0
  39. package/build/es/src/bookings-v2-booking-bookings.context.js +61 -0
  40. package/build/es/src/bookings-v2-booking-bookings.context.js.map +1 -0
  41. package/build/es/src/bookings-v2-booking-bookings.http.d.ts +510 -0
  42. package/build/es/src/bookings-v2-booking-bookings.http.js +1555 -0
  43. package/build/es/src/bookings-v2-booking-bookings.http.js.map +1 -0
  44. package/build/es/src/bookings-v2-booking-bookings.meta.d.ts +61 -0
  45. package/build/es/src/bookings-v2-booking-bookings.meta.js +380 -0
  46. package/build/es/src/bookings-v2-booking-bookings.meta.js.map +1 -0
  47. package/build/{index.d.ts → es/src/bookings-v2-booking-bookings.public.d.ts} +34 -78
  48. package/build/es/src/bookings-v2-booking-bookings.public.js +276 -0
  49. package/build/es/src/bookings-v2-booking-bookings.public.js.map +1 -0
  50. package/build/{bookings-v2-booking-bookings.universal-CI-yMoXr.d.ts → es/src/bookings-v2-booking-bookings.types.d.ts} +234 -644
  51. package/build/es/src/bookings-v2-booking-bookings.types.js +162 -0
  52. package/build/es/src/bookings-v2-booking-bookings.types.js.map +1 -0
  53. package/build/es/src/bookings-v2-booking-bookings.universal.d.ts +4335 -0
  54. package/build/es/src/bookings-v2-booking-bookings.universal.js +1605 -0
  55. package/build/es/src/bookings-v2-booking-bookings.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/bookings-v2-booking-bookings.context.d.ts +61 -0
  66. package/build/internal/cjs/src/bookings-v2-booking-bookings.context.js +77 -0
  67. package/build/internal/cjs/src/bookings-v2-booking-bookings.context.js.map +1 -0
  68. package/build/internal/cjs/src/bookings-v2-booking-bookings.http.d.ts +510 -0
  69. package/build/internal/cjs/src/bookings-v2-booking-bookings.http.js +1579 -0
  70. package/build/internal/cjs/src/bookings-v2-booking-bookings.http.js.map +1 -0
  71. package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.d.ts +61 -0
  72. package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.js +427 -0
  73. package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.js.map +1 -0
  74. package/build/internal/{index.d.mts → cjs/src/bookings-v2-booking-bookings.public.d.ts} +34 -78
  75. package/build/internal/cjs/src/bookings-v2-booking-bookings.public.js +313 -0
  76. package/build/internal/cjs/src/bookings-v2-booking-bookings.public.js.map +1 -0
  77. package/build/internal/{bookings-v2-booking-bookings.universal-CI-yMoXr.d.ts → cjs/src/bookings-v2-booking-bookings.types.d.ts} +234 -644
  78. package/build/internal/cjs/src/bookings-v2-booking-bookings.types.js +165 -0
  79. package/build/internal/cjs/src/bookings-v2-booking-bookings.types.js.map +1 -0
  80. package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.d.ts +4335 -0
  81. package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.js +1652 -0
  82. package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/bookings-v2-booking-bookings.context.d.ts +61 -0
  93. package/build/internal/es/src/bookings-v2-booking-bookings.context.js +61 -0
  94. package/build/internal/es/src/bookings-v2-booking-bookings.context.js.map +1 -0
  95. package/build/internal/es/src/bookings-v2-booking-bookings.http.d.ts +510 -0
  96. package/build/internal/es/src/bookings-v2-booking-bookings.http.js +1555 -0
  97. package/build/internal/es/src/bookings-v2-booking-bookings.http.js.map +1 -0
  98. package/build/internal/es/src/bookings-v2-booking-bookings.meta.d.ts +61 -0
  99. package/build/internal/es/src/bookings-v2-booking-bookings.meta.js +380 -0
  100. package/build/internal/es/src/bookings-v2-booking-bookings.meta.js.map +1 -0
  101. package/build/{index.d.mts → internal/es/src/bookings-v2-booking-bookings.public.d.ts} +34 -78
  102. package/build/internal/es/src/bookings-v2-booking-bookings.public.js +276 -0
  103. package/build/internal/es/src/bookings-v2-booking-bookings.public.js.map +1 -0
  104. package/build/internal/{bookings-v2-booking-bookings.universal-CI-yMoXr.d.mts → es/src/bookings-v2-booking-bookings.types.d.ts} +234 -644
  105. package/build/internal/es/src/bookings-v2-booking-bookings.types.js +162 -0
  106. package/build/internal/es/src/bookings-v2-booking-bookings.types.js.map +1 -0
  107. package/build/internal/es/src/bookings-v2-booking-bookings.universal.d.ts +4335 -0
  108. package/build/internal/es/src/bookings-v2-booking-bookings.universal.js +1605 -0
  109. package/build/internal/es/src/bookings-v2-booking-bookings.universal.js.map +1 -0
  110. package/package.json +11 -12
  111. package/build/index.js +0 -2387
  112. package/build/index.js.map +0 -1
  113. package/build/index.mjs +0 -2323
  114. package/build/index.mjs.map +0 -1
  115. package/build/internal/index.js +0 -2387
  116. package/build/internal/index.js.map +0 -1
  117. package/build/internal/index.mjs +0 -2323
  118. package/build/internal/index.mjs.map +0 -1
  119. package/build/internal/meta.d.mts +0 -1652
  120. package/build/internal/meta.d.ts +0 -1652
  121. package/build/internal/meta.js +0 -1522
  122. package/build/internal/meta.js.map +0 -1
  123. package/build/internal/meta.mjs +0 -1475
  124. package/build/internal/meta.mjs.map +0 -1
  125. package/build/meta.d.mts +0 -1652
  126. package/build/meta.d.ts +0 -1652
  127. package/build/meta.js +0 -1522
  128. package/build/meta.js.map +0 -1
  129. package/build/meta.mjs +0 -1475
  130. package/build/meta.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /** An entity representing a scheduled appointment, class session, or course. */
2
- interface Booking extends BookingParticipantsInfoOneOf {
2
+ export interface Booking extends BookingParticipantsInfoOneOf {
3
3
  /**
4
4
  * Total number of participants. Available only when the relevant service
5
5
  * doesn't have _variants and options_
@@ -18,7 +18,7 @@ interface Booking extends BookingParticipantsInfoOneOf {
18
18
  * @format GUID
19
19
  * @readonly
20
20
  */
21
- _id?: string | null;
21
+ id?: string | null;
22
22
  /**
23
23
  * An object describing the *slot*
24
24
  * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings-and-time-slots/time-slots/availability-calendar/query-availability))
@@ -63,7 +63,7 @@ interface Booking extends BookingParticipantsInfoOneOf {
63
63
  * Date and time the booking was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.
64
64
  * @readonly
65
65
  */
66
- _createdDate?: Date | null;
66
+ createdDate?: Date | null;
67
67
  /** External user ID that you can provide. */
68
68
  externalUserId?: string | null;
69
69
  /**
@@ -95,7 +95,7 @@ interface Booking extends BookingParticipantsInfoOneOf {
95
95
  * Date and time the booking was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.
96
96
  * @readonly
97
97
  */
98
- _updatedDate?: Date | null;
98
+ updatedDate?: Date | null;
99
99
  /**
100
100
  * Custom field data for this object.
101
101
  * Extended fields must be configured in the app dashboard before they can be accessed with API calls.
@@ -109,7 +109,7 @@ interface Booking extends BookingParticipantsInfoOneOf {
109
109
  doubleBooked?: boolean | null;
110
110
  }
111
111
  /** @oneof */
112
- interface BookingParticipantsInfoOneOf {
112
+ export interface BookingParticipantsInfoOneOf {
113
113
  /**
114
114
  * Total number of participants. Available only when the relevant service
115
115
  * doesn't have _variants and options_
@@ -130,12 +130,12 @@ interface BookingParticipantsInfoOneOf {
130
130
  * Multi-service booking is available if each of its bookings is available separately.
131
131
  * For `SEQUENTIAL_BOOKINGS`, see `List Multi Service Availability Time Slots` documentation.
132
132
  */
133
- declare enum MultiServiceBookingType {
133
+ export declare enum MultiServiceBookingType {
134
134
  SEQUENTIAL_BOOKINGS = "SEQUENTIAL_BOOKINGS",
135
135
  SEPARATE_BOOKINGS = "SEPARATE_BOOKINGS",
136
136
  PARALLEL_BOOKINGS = "PARALLEL_BOOKINGS"
137
137
  }
138
- interface BookedEntity extends BookedEntityItemOneOf {
138
+ export interface BookedEntity extends BookedEntityItemOneOf {
139
139
  /**
140
140
  * Booked *slot*
141
141
  * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings-and-time-slots/time-slots/availability-calendar/query-availability)).
@@ -167,7 +167,7 @@ interface BookedEntity extends BookedEntityItemOneOf {
167
167
  tags?: string[] | null;
168
168
  }
169
169
  /** @oneof */
170
- interface BookedEntityItemOneOf {
170
+ export interface BookedEntityItemOneOf {
171
171
  /**
172
172
  * Booked *slot*
173
173
  * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings-and-time-slots/time-slots/availability-calendar/query-availability)).
@@ -183,7 +183,7 @@ interface BookedEntityItemOneOf {
183
183
  */
184
184
  schedule?: BookedSchedule;
185
185
  }
186
- interface BookedSlot {
186
+ export interface BookedSlot {
187
187
  /** Session ID. */
188
188
  sessionId?: string | null;
189
189
  /** Service ID. */
@@ -225,12 +225,12 @@ interface BookedSlot {
225
225
  /** Location where the session takes place. */
226
226
  location?: Location;
227
227
  }
228
- interface BookedResource {
228
+ export interface BookedResource {
229
229
  /**
230
230
  * ID of the booking's primary resource.
231
231
  * @format GUID
232
232
  */
233
- _id?: string;
233
+ id?: string;
234
234
  /**
235
235
  * Resource's name at the time of booking.
236
236
  * @maxLength 40
@@ -247,13 +247,13 @@ interface BookedResource {
247
247
  */
248
248
  scheduleId?: string | null;
249
249
  }
250
- interface Location {
250
+ export interface Location {
251
251
  /**
252
252
  * Business location ID. Available only for locations that are business locations,
253
253
  * meaning the `location_type` is `"OWNER_BUSINESS"`.
254
254
  * @format GUID
255
255
  */
256
- _id?: string | null;
256
+ id?: string | null;
257
257
  /** Location name. */
258
258
  name?: string | null;
259
259
  /** The full address of this location. */
@@ -272,13 +272,13 @@ interface Location {
272
272
  */
273
273
  locationType?: LocationType;
274
274
  }
275
- declare enum LocationType {
275
+ export declare enum LocationType {
276
276
  UNDEFINED = "UNDEFINED",
277
277
  OWNER_BUSINESS = "OWNER_BUSINESS",
278
278
  OWNER_CUSTOM = "OWNER_CUSTOM",
279
279
  CUSTOM = "CUSTOM"
280
280
  }
281
- interface BookedSchedule {
281
+ export interface BookedSchedule {
282
282
  /**
283
283
  * _Schedule ID_
284
284
  * ([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)).
@@ -314,7 +314,7 @@ interface BookedSchedule {
314
314
  */
315
315
  lastSessionEnd?: string | null;
316
316
  }
317
- interface ContactDetails {
317
+ export interface ContactDetails {
318
318
  /**
319
319
  * Contact ID.
320
320
  * @format GUID
@@ -353,7 +353,7 @@ interface ContactDetails {
353
353
  countryCode?: string | null;
354
354
  }
355
355
  /** Physical address */
356
- interface Address extends AddressStreetOneOf {
356
+ export interface Address extends AddressStreetOneOf {
357
357
  /** Street name, number and apartment number. */
358
358
  streetAddress?: StreetAddress;
359
359
  /** Main address line, usually street and number, as free text. */
@@ -383,13 +383,13 @@ interface Address extends AddressStreetOneOf {
383
383
  subdivisions?: Subdivision[];
384
384
  }
385
385
  /** @oneof */
386
- interface AddressStreetOneOf {
386
+ export interface AddressStreetOneOf {
387
387
  /** Street name, number and apartment number. */
388
388
  streetAddress?: StreetAddress;
389
389
  /** Main address line, usually street and number, as free text. */
390
390
  addressLine?: string | null;
391
391
  }
392
- interface StreetAddress {
392
+ export interface StreetAddress {
393
393
  /** Street number. */
394
394
  number?: string;
395
395
  /** Street name. */
@@ -397,24 +397,24 @@ interface StreetAddress {
397
397
  /** Apartment number. */
398
398
  apt?: string;
399
399
  }
400
- interface AddressLocation {
400
+ export interface AddressLocation {
401
401
  /** Address latitude. */
402
402
  latitude?: number | null;
403
403
  /** Address longitude. */
404
404
  longitude?: number | null;
405
405
  }
406
- interface Subdivision {
406
+ export interface Subdivision {
407
407
  /** Subdivision code. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
408
408
  code?: string;
409
409
  /** Subdivision full name. */
410
410
  name?: string;
411
411
  }
412
- interface CustomFormField {
412
+ export interface CustomFormField {
413
413
  /**
414
414
  * ID of the form field as defined in the form.
415
415
  * @format GUID
416
416
  */
417
- _id?: string;
417
+ id?: string;
418
418
  /** Value that was submitted for this field. */
419
419
  value?: string | null;
420
420
  /**
@@ -424,7 +424,7 @@ interface CustomFormField {
424
424
  label?: string | null;
425
425
  valueType?: ValueType;
426
426
  }
427
- declare enum ValueType {
427
+ export declare enum ValueType {
428
428
  /** Short text. This is the default value type. */
429
429
  SHORT_TEXT = "SHORT_TEXT",
430
430
  /** Long text. */
@@ -433,7 +433,7 @@ declare enum ValueType {
433
433
  CHECK_BOX = "CHECK_BOX"
434
434
  }
435
435
  /** Booking status. */
436
- declare enum BookingStatus {
436
+ export declare enum BookingStatus {
437
437
  /**
438
438
  * The booking was created, but the customer hasn't completed the related
439
439
  * eCommerce order yet.
@@ -474,7 +474,7 @@ declare enum BookingStatus {
474
474
  * Payment status.
475
475
  * Automatically updated when using eCommerce checkout APIs.
476
476
  */
477
- declare enum PaymentStatus {
477
+ export declare enum PaymentStatus {
478
478
  /** Undefined payment status. */
479
479
  UNDEFINED = "UNDEFINED",
480
480
  /** The booking isn't paid. */
@@ -495,7 +495,7 @@ declare enum PaymentStatus {
495
495
  * This field is set when the user selects an option during booking.
496
496
  * If left undefined, the payment option is resolved by the service configuration on checkout.
497
497
  */
498
- declare enum SelectedPaymentOption {
498
+ export declare enum SelectedPaymentOption {
499
499
  /** Undefined payment option. */
500
500
  UNDEFINED = "UNDEFINED",
501
501
  /** Offline payment. */
@@ -510,7 +510,7 @@ declare enum SelectedPaymentOption {
510
510
  */
511
511
  MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE"
512
512
  }
513
- interface BookingSource {
513
+ export interface BookingSource {
514
514
  /** Platform from which a booking was created. */
515
515
  platform?: Platform;
516
516
  /** Actor that created this booking. */
@@ -527,17 +527,17 @@ interface BookingSource {
527
527
  */
528
528
  appName?: string | null;
529
529
  }
530
- declare enum Platform {
530
+ export declare enum Platform {
531
531
  UNDEFINED_PLATFORM = "UNDEFINED_PLATFORM",
532
532
  WEB = "WEB",
533
533
  MOBILE_APP = "MOBILE_APP"
534
534
  }
535
- declare enum Actor {
535
+ export declare enum Actor {
536
536
  UNDEFINED_ACTOR = "UNDEFINED_ACTOR",
537
537
  BUSINESS = "BUSINESS",
538
538
  CUSTOMER = "CUSTOMER"
539
539
  }
540
- interface ParticipantNotification {
540
+ export interface ParticipantNotification {
541
541
  /**
542
542
  * Whether to send the message about the changes to the customer.
543
543
  *
@@ -547,7 +547,7 @@ interface ParticipantNotification {
547
547
  /** Custom message to send to the participants about the changes to the booking. */
548
548
  message?: string | null;
549
549
  }
550
- interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
550
+ export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
551
551
  /**
552
552
  * ID of a site visitor that has not logged in to the site.
553
553
  * @format GUID
@@ -575,7 +575,7 @@ interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
575
575
  contactId?: string | null;
576
576
  }
577
577
  /** @oneof */
578
- interface CommonIdentificationDataIdOneOf {
578
+ export interface CommonIdentificationDataIdOneOf {
579
579
  /**
580
580
  * ID of a site visitor that has not logged in to the site.
581
581
  * @format GUID
@@ -597,14 +597,14 @@ interface CommonIdentificationDataIdOneOf {
597
597
  */
598
598
  appId?: string;
599
599
  }
600
- declare enum IdentificationDataIdentityType {
600
+ export declare enum IdentificationDataIdentityType {
601
601
  UNKNOWN = "UNKNOWN",
602
602
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
603
603
  MEMBER = "MEMBER",
604
604
  WIX_USER = "WIX_USER",
605
605
  APP = "APP"
606
606
  }
607
- interface FlowControlSettings {
607
+ export interface FlowControlSettings {
608
608
  /** Whether availability is checked when creating or confirming the booking. */
609
609
  skipAvailabilityValidation?: boolean;
610
610
  /**
@@ -626,7 +626,7 @@ interface FlowControlSettings {
626
626
  */
627
627
  withRefund?: boolean | null;
628
628
  }
629
- interface ExtendedFields {
629
+ export interface ExtendedFields {
630
630
  /**
631
631
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
632
632
  * The value of each key is structured according to the schema defined when the extended fields were configured.
@@ -637,7 +637,7 @@ interface ExtendedFields {
637
637
  */
638
638
  namespaces?: Record<string, Record<string, any>>;
639
639
  }
640
- interface ParticipantChoices {
640
+ export interface ParticipantChoices {
641
641
  /**
642
642
  * Information about the booked service choices. Includes the number of participants.
643
643
  * @minSize 1
@@ -645,7 +645,7 @@ interface ParticipantChoices {
645
645
  */
646
646
  serviceChoices?: ServiceChoices[];
647
647
  }
648
- interface ServiceChoices {
648
+ export interface ServiceChoices {
649
649
  /**
650
650
  * Number of participants for this _variant_
651
651
  * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)).
@@ -658,7 +658,7 @@ interface ServiceChoices {
658
658
  */
659
659
  choices?: ServiceChoice[];
660
660
  }
661
- interface ServiceChoice extends ServiceChoiceChoiceOneOf {
661
+ export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
662
662
  /**
663
663
  * Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.
664
664
  * Choices are specific values for an option the customer can choose to book. For example,
@@ -676,7 +676,7 @@ interface ServiceChoice extends ServiceChoiceChoiceOneOf {
676
676
  optionId?: string;
677
677
  }
678
678
  /** @oneof */
679
- interface ServiceChoiceChoiceOneOf {
679
+ export interface ServiceChoiceChoiceOneOf {
680
680
  /**
681
681
  * Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.
682
682
  * Choices are specific values for an option the customer can choose to book. For example,
@@ -686,7 +686,7 @@ interface ServiceChoiceChoiceOneOf {
686
686
  custom?: string;
687
687
  duration?: Duration;
688
688
  }
689
- interface Duration {
689
+ export interface Duration {
690
690
  /**
691
691
  * Duration of the service in minutes.
692
692
  * Min: 1 minute, Max: 30 days, 23 hours, and 59 minutes
@@ -701,58 +701,42 @@ interface Duration {
701
701
  */
702
702
  name?: string | null;
703
703
  }
704
- interface MultiServiceBookingInfo {
704
+ export interface MultiServiceBookingInfo {
705
705
  /**
706
706
  * Multi-service booking ID.
707
707
  * @format GUID
708
708
  * @readonly
709
709
  */
710
- _id?: string | null;
710
+ id?: string | null;
711
711
  /** Type of the multi-service booking. */
712
712
  type?: MultiServiceBookingType;
713
713
  }
714
- interface BookedAddOn extends BookedAddOnAddOnInfoOneOf {
715
- /**
716
- * The Add-On duration in minutes at the time of Booking.
717
- * @min 1
718
- * @max 1440
719
- * @readonly
720
- */
721
- durationInMinutes?: number;
722
- /**
723
- * The quantity of booked Add-Ons.
724
- * @min 1
725
- * @max 1000
726
- */
727
- quantity?: number;
714
+ export interface BookedAddOn {
728
715
  /**
729
716
  * The ID of the Add-On.
730
717
  * @format GUID
731
718
  */
732
- _id?: string;
719
+ id?: string;
733
720
  /**
734
721
  * The ID of the Add-Ons group.
735
722
  * @format GUID
736
723
  */
737
724
  groupId?: string;
738
- }
739
- /** @oneof */
740
- interface BookedAddOnAddOnInfoOneOf {
741
725
  /**
742
726
  * The Add-On duration in minutes at the time of Booking.
743
727
  * @min 1
744
728
  * @max 1440
745
729
  * @readonly
746
730
  */
747
- durationInMinutes?: number;
731
+ durationInMinutes?: number | null;
748
732
  /**
749
733
  * The quantity of booked Add-Ons.
750
734
  * @min 1
751
735
  * @max 1000
752
736
  */
753
- quantity?: number;
737
+ quantity?: number | null;
754
738
  }
755
- interface BookingFormFilled {
739
+ export interface BookingFormFilled {
756
740
  /** The booking object that form was filled for. */
757
741
  booking?: Booking;
758
742
  /**
@@ -768,7 +752,7 @@ interface BookingFormFilled {
768
752
  */
769
753
  formId?: string | null;
770
754
  }
771
- interface SetBookingFormAndSubmissionIdRequest extends SetBookingFormAndSubmissionIdRequestCreatedByOneOf {
755
+ export interface SetBookingFormAndSubmissionIdRequest extends SetBookingFormAndSubmissionIdRequestCreatedByOneOf {
772
756
  /**
773
757
  * The visitor who created the booking.
774
758
  * @format GUID
@@ -811,7 +795,7 @@ interface SetBookingFormAndSubmissionIdRequest extends SetBookingFormAndSubmissi
811
795
  instanceId?: string | null;
812
796
  }
813
797
  /** @oneof */
814
- interface SetBookingFormAndSubmissionIdRequestCreatedByOneOf {
798
+ export interface SetBookingFormAndSubmissionIdRequestCreatedByOneOf {
815
799
  /**
816
800
  * The visitor who created the booking.
817
801
  * @format GUID
@@ -828,11 +812,11 @@ interface SetBookingFormAndSubmissionIdRequestCreatedByOneOf {
828
812
  */
829
813
  appId?: string | null;
830
814
  }
831
- interface SetBookingFormAndSubmissionIdResponse {
815
+ export interface SetBookingFormAndSubmissionIdResponse {
832
816
  /** Updated booking. */
833
817
  booking?: Booking;
834
818
  }
835
- interface DomainEvent extends DomainEventBodyOneOf {
819
+ export interface DomainEvent extends DomainEventBodyOneOf {
836
820
  createdEvent?: EntityCreatedEvent;
837
821
  updatedEvent?: EntityUpdatedEvent;
838
822
  deletedEvent?: EntityDeletedEvent;
@@ -841,7 +825,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
841
825
  * Unique event ID.
842
826
  * Allows clients to ignore duplicate webhooks.
843
827
  */
844
- _id?: string;
828
+ id?: string;
845
829
  /**
846
830
  * Assumes actions are also always typed to an entity_type
847
831
  * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
@@ -875,34 +859,36 @@ interface DomainEvent extends DomainEventBodyOneOf {
875
859
  entityEventSequence?: string | null;
876
860
  }
877
861
  /** @oneof */
878
- interface DomainEventBodyOneOf {
862
+ export interface DomainEventBodyOneOf {
879
863
  createdEvent?: EntityCreatedEvent;
880
864
  updatedEvent?: EntityUpdatedEvent;
881
865
  deletedEvent?: EntityDeletedEvent;
882
866
  actionEvent?: ActionEvent;
883
867
  }
884
- interface EntityCreatedEvent {
885
- entity?: string;
868
+ export interface EntityCreatedEvent {
869
+ entityAsJson?: string;
870
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
871
+ restoreInfo?: RestoreInfo;
886
872
  }
887
- interface RestoreInfo {
873
+ export interface RestoreInfo {
888
874
  deletedDate?: Date | null;
889
875
  }
890
- interface EntityUpdatedEvent {
876
+ export interface EntityUpdatedEvent {
891
877
  /**
892
878
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
893
879
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
894
880
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
895
881
  */
896
- currentEntity?: string;
882
+ currentEntityAsJson?: string;
897
883
  }
898
- interface EntityDeletedEvent {
884
+ export interface EntityDeletedEvent {
899
885
  /** Entity that was deleted */
900
- deletedEntity?: string | null;
886
+ deletedEntityAsJson?: string | null;
901
887
  }
902
- interface ActionEvent {
903
- body?: string;
888
+ export interface ActionEvent {
889
+ bodyAsJson?: string;
904
890
  }
905
- interface MessageEnvelope {
891
+ export interface MessageEnvelope {
906
892
  /**
907
893
  * App instance ID.
908
894
  * @format GUID
@@ -918,7 +904,7 @@ interface MessageEnvelope {
918
904
  /** Stringify payload. */
919
905
  data?: string;
920
906
  }
921
- interface WebhooksIdentificationData extends WebhooksIdentificationDataIdOneOf {
907
+ export interface WebhooksIdentificationData extends WebhooksIdentificationDataIdOneOf {
922
908
  /**
923
909
  * ID of a site visitor that has not logged in to the site.
924
910
  * @format GUID
@@ -943,7 +929,7 @@ interface WebhooksIdentificationData extends WebhooksIdentificationDataIdOneOf {
943
929
  identityType?: WebhookIdentityType;
944
930
  }
945
931
  /** @oneof */
946
- interface WebhooksIdentificationDataIdOneOf {
932
+ export interface WebhooksIdentificationDataIdOneOf {
947
933
  /**
948
934
  * ID of a site visitor that has not logged in to the site.
949
935
  * @format GUID
@@ -965,14 +951,14 @@ interface WebhooksIdentificationDataIdOneOf {
965
951
  */
966
952
  appId?: string;
967
953
  }
968
- declare enum WebhookIdentityType {
954
+ export declare enum WebhookIdentityType {
969
955
  UNKNOWN = "UNKNOWN",
970
956
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
971
957
  MEMBER = "MEMBER",
972
958
  WIX_USER = "WIX_USER",
973
959
  APP = "APP"
974
960
  }
975
- interface V2CreateBookingRequest extends V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf {
961
+ export interface V2CreateBookingRequest extends V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf {
976
962
  /**
977
963
  * Information about the slot to create a booking for.
978
964
  * If you set `slot.location.locationType` to `CUSTOM`, the created slot's
@@ -1068,7 +1054,7 @@ interface V2CreateBookingRequest extends V2CreateBookingRequestBookableItemOneOf
1068
1054
  flowControlSettings?: CreateBookingRequestFlowControlSettings;
1069
1055
  }
1070
1056
  /** @oneof */
1071
- interface V2CreateBookingRequestBookableItemOneOf {
1057
+ export interface V2CreateBookingRequestBookableItemOneOf {
1072
1058
  /**
1073
1059
  * Information about the slot to create a booking for.
1074
1060
  * If you set `slot.location.locationType` to `CUSTOM`, the created slot's
@@ -1080,9 +1066,9 @@ interface V2CreateBookingRequestBookableItemOneOf {
1080
1066
  schedule?: BookedSchedule;
1081
1067
  }
1082
1068
  /** @oneof */
1083
- interface V2CreateBookingRequestParticipantsInfoOneOf {
1069
+ export interface V2CreateBookingRequestParticipantsInfoOneOf {
1084
1070
  }
1085
- interface Slot {
1071
+ export interface Slot {
1086
1072
  /**
1087
1073
  * ID for the slot's corresponding session, when the session is either a single session
1088
1074
  * or a specific session generated from a recurring session.
@@ -1140,20 +1126,20 @@ interface Slot {
1140
1126
  */
1141
1127
  eventId?: string | null;
1142
1128
  }
1143
- interface SlotResource {
1129
+ export interface SlotResource {
1144
1130
  /**
1145
1131
  * Resource ID.
1146
1132
  * @format GUID
1147
1133
  * @readonly
1148
1134
  */
1149
- _id?: string | null;
1135
+ id?: string | null;
1150
1136
  /**
1151
1137
  * Resource name. Read only.
1152
1138
  * @maxLength 1200
1153
1139
  */
1154
1140
  name?: string | null;
1155
1141
  }
1156
- interface CreateBookingRequestFlowControlSettings {
1142
+ export interface CreateBookingRequestFlowControlSettings {
1157
1143
  /**
1158
1144
  * Whether the availability is checked before creating the booking. When
1159
1145
  * passing `false` a booking is only created when the slot or schedule is
@@ -1182,11 +1168,11 @@ interface CreateBookingRequestFlowControlSettings {
1182
1168
  */
1183
1169
  skipSelectedPaymentOptionValidation?: boolean;
1184
1170
  }
1185
- interface V2CreateBookingResponse {
1171
+ export interface V2CreateBookingResponse {
1186
1172
  /** Created booking. */
1187
1173
  booking?: Booking;
1188
1174
  }
1189
- interface V2CancelBookingRequest {
1175
+ export interface V2CancelBookingRequest {
1190
1176
  /**
1191
1177
  * ID of the booking to cancel.
1192
1178
  * @format GUID
@@ -1204,7 +1190,7 @@ interface V2CancelBookingRequest {
1204
1190
  */
1205
1191
  revision?: string | null;
1206
1192
  }
1207
- interface CancelBookingRequestFlowControlSettings {
1193
+ export interface CancelBookingRequestFlowControlSettings {
1208
1194
  /**
1209
1195
  * Whether the cancellation policy applies when canceling the booking. When
1210
1196
  * passing `false` you can only cancel a booking if the cancellation policy
@@ -1226,11 +1212,11 @@ interface CancelBookingRequestFlowControlSettings {
1226
1212
  */
1227
1213
  withRefund?: boolean | null;
1228
1214
  }
1229
- interface V2CancelBookingResponse {
1215
+ export interface V2CancelBookingResponse {
1230
1216
  /** Canceled booking. */
1231
1217
  booking?: Booking;
1232
1218
  }
1233
- interface V2RescheduleBookingRequest extends V2RescheduleBookingRequestParticipantsInfoOneOf {
1219
+ export interface V2RescheduleBookingRequest extends V2RescheduleBookingRequestParticipantsInfoOneOf {
1234
1220
  /**
1235
1221
  * Id of the booking to reschedule.
1236
1222
  * @format GUID
@@ -1251,9 +1237,9 @@ interface V2RescheduleBookingRequest extends V2RescheduleBookingRequestParticipa
1251
1237
  participantNotification?: ParticipantNotification;
1252
1238
  }
1253
1239
  /** @oneof */
1254
- interface V2RescheduleBookingRequestParticipantsInfoOneOf {
1240
+ export interface V2RescheduleBookingRequestParticipantsInfoOneOf {
1255
1241
  }
1256
- interface RescheduleBookingRequestFlowControlSettings {
1242
+ export interface RescheduleBookingRequestFlowControlSettings {
1257
1243
  /**
1258
1244
  * Whether the rescheduling policy applies when rescheduling the booking.
1259
1245
  * When passing `false` you can only cancel a booking if the rescheduling
@@ -1282,11 +1268,11 @@ interface RescheduleBookingRequestFlowControlSettings {
1282
1268
  */
1283
1269
  skipBusinessConfirmation?: boolean;
1284
1270
  }
1285
- interface V2RescheduleBookingResponse {
1271
+ export interface V2RescheduleBookingResponse {
1286
1272
  /** Rescheduled booking. */
1287
1273
  booking?: Booking;
1288
1274
  }
1289
- interface V2ConfirmBookingRequest {
1275
+ export interface V2ConfirmBookingRequest {
1290
1276
  /**
1291
1277
  * ID of the booking to confirm.
1292
1278
  * @format GUID
@@ -1304,10 +1290,10 @@ interface V2ConfirmBookingRequest {
1304
1290
  */
1305
1291
  participantNotification?: ParticipantNotification;
1306
1292
  }
1307
- interface V2ConfirmBookingResponse {
1293
+ export interface V2ConfirmBookingResponse {
1308
1294
  booking?: Booking;
1309
1295
  }
1310
- interface V2DeclineBookingRequest {
1296
+ export interface V2DeclineBookingRequest {
1311
1297
  /**
1312
1298
  * ID of the booking to decline.
1313
1299
  * @format GUID
@@ -1325,11 +1311,11 @@ interface V2DeclineBookingRequest {
1325
1311
  */
1326
1312
  participantNotification?: ParticipantNotification;
1327
1313
  }
1328
- interface V2DeclineBookingResponse {
1314
+ export interface V2DeclineBookingResponse {
1329
1315
  /** Declined booking. */
1330
1316
  booking?: Booking;
1331
1317
  }
1332
- interface V2UpdateNumberOfParticipantsRequest extends V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
1318
+ export interface V2UpdateNumberOfParticipantsRequest extends V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
1333
1319
  /**
1334
1320
  * ID of the booking to update the number of participants for.
1335
1321
  * @format GUID
@@ -1345,13 +1331,13 @@ interface V2UpdateNumberOfParticipantsRequest extends V2UpdateNumberOfParticipan
1345
1331
  revision?: string | null;
1346
1332
  }
1347
1333
  /** @oneof */
1348
- interface V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
1334
+ export interface V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
1349
1335
  }
1350
- interface V2UpdateNumberOfParticipantsResponse {
1336
+ export interface V2UpdateNumberOfParticipantsResponse {
1351
1337
  /** Booking with updated number of participants. */
1352
1338
  booking?: Booking;
1353
1339
  }
1354
- interface ConfirmOrDeclineBookingRequest {
1340
+ export interface ConfirmOrDeclineBookingRequest {
1355
1341
  /**
1356
1342
  * ID of the booking to confirm or decline.
1357
1343
  * @format GUID
@@ -1367,11 +1353,11 @@ interface ConfirmOrDeclineBookingRequest {
1367
1353
  */
1368
1354
  paymentStatus?: PaymentStatus;
1369
1355
  }
1370
- interface ConfirmOrDeclineBookingResponse {
1356
+ export interface ConfirmOrDeclineBookingResponse {
1371
1357
  /** Updated booking. */
1372
1358
  booking?: Booking;
1373
1359
  }
1374
- interface BulkConfirmOrDeclineBookingRequest {
1360
+ export interface BulkConfirmOrDeclineBookingRequest {
1375
1361
  /**
1376
1362
  * Bookings to confirm or decline.
1377
1363
  * @minSize 1
@@ -1381,7 +1367,7 @@ interface BulkConfirmOrDeclineBookingRequest {
1381
1367
  /** Whether to return the confirmed or declined booking objects. */
1382
1368
  returnEntity?: boolean;
1383
1369
  }
1384
- interface BulkConfirmOrDeclineBookingRequestBookingDetails {
1370
+ export interface BulkConfirmOrDeclineBookingRequestBookingDetails {
1385
1371
  /**
1386
1372
  * ID of the booking to confirm or decline.
1387
1373
  * @format GUID
@@ -1397,13 +1383,13 @@ interface BulkConfirmOrDeclineBookingRequestBookingDetails {
1397
1383
  */
1398
1384
  paymentStatus?: PaymentStatus;
1399
1385
  }
1400
- interface BulkConfirmOrDeclineBookingResponse {
1386
+ export interface BulkConfirmOrDeclineBookingResponse {
1401
1387
  /** List of confirmed or declined bookings, including metadata. */
1402
1388
  results?: BulkBookingResult[];
1403
1389
  /** Total successes and failures of the Bulk Confirm Or Decline call. */
1404
1390
  bulkActionMetadata?: BulkActionMetadata;
1405
1391
  }
1406
- interface BulkBookingResult {
1392
+ export interface BulkBookingResult {
1407
1393
  /**
1408
1394
  * Information about the booking that was created or updated.
1409
1395
  * Including its ID, index in the bulk request and whether it was
@@ -1416,9 +1402,9 @@ interface BulkBookingResult {
1416
1402
  */
1417
1403
  item?: Booking;
1418
1404
  }
1419
- interface ItemMetadata {
1405
+ export interface ItemMetadata {
1420
1406
  /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
1421
- _id?: string | null;
1407
+ id?: string | null;
1422
1408
  /** Index of the item within the request array. Allows for correlation between request and response items. */
1423
1409
  originalIndex?: number;
1424
1410
  /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
@@ -1426,7 +1412,7 @@ interface ItemMetadata {
1426
1412
  /** Details about the error in case of failure. */
1427
1413
  error?: ApplicationError;
1428
1414
  }
1429
- interface ApplicationError {
1415
+ export interface ApplicationError {
1430
1416
  /** Error code. */
1431
1417
  code?: string;
1432
1418
  /** Description of the error. */
@@ -1434,7 +1420,7 @@ interface ApplicationError {
1434
1420
  /** Data related to the error. */
1435
1421
  data?: Record<string, any> | null;
1436
1422
  }
1437
- interface BulkActionMetadata {
1423
+ export interface BulkActionMetadata {
1438
1424
  /** Number of items that were successfully processed. */
1439
1425
  totalSuccesses?: number;
1440
1426
  /** Number of items that couldn't be processed. */
@@ -1442,13 +1428,13 @@ interface BulkActionMetadata {
1442
1428
  /** Number of failures without details because detailed failure threshold was exceeded. */
1443
1429
  undetailedFailures?: number;
1444
1430
  }
1445
- interface BookingChanged {
1431
+ export interface BookingChanged {
1446
1432
  /** The booking before the changes. */
1447
1433
  previousBooking?: Booking;
1448
1434
  /** The booking after the changes. */
1449
1435
  currentBooking?: Booking;
1450
1436
  }
1451
- interface CreateBookingRequest {
1437
+ export interface CreateBookingRequest {
1452
1438
  /** The booking to create. */
1453
1439
  booking: Booking;
1454
1440
  /**
@@ -1468,7 +1454,7 @@ interface CreateBookingRequest {
1468
1454
  */
1469
1455
  flowControlSettings?: CreateBookingFlowControlSettings;
1470
1456
  }
1471
- interface CreateBookingFlowControlSettings {
1457
+ export interface CreateBookingFlowControlSettings {
1472
1458
  /**
1473
1459
  * Whether the availability is checked before creating the booking.
1474
1460
  *
@@ -1495,7 +1481,7 @@ interface CreateBookingFlowControlSettings {
1495
1481
  */
1496
1482
  skipSelectedPaymentOptionValidation?: boolean;
1497
1483
  }
1498
- interface CreateBookingResponse {
1484
+ export interface CreateBookingResponse {
1499
1485
  /** Created booking. */
1500
1486
  booking?: Booking;
1501
1487
  }
@@ -1503,30 +1489,30 @@ interface CreateBookingResponse {
1503
1489
  * The `fieldMask` should not include both the `numberOfParticipants` and `participantsInfo` paths. Including both results
1504
1490
  * in an error. `participantsInfo` is preferred over `numberOfParticipants`.
1505
1491
  */
1506
- interface UpdateBookingRequest {
1492
+ export interface UpdateBookingRequest {
1507
1493
  booking?: Booking;
1508
1494
  }
1509
- interface UpdateBookingResponse {
1495
+ export interface UpdateBookingResponse {
1510
1496
  booking?: Booking;
1511
1497
  }
1512
- interface LegacyCreateBookingRequest {
1498
+ export interface LegacyCreateBookingRequest {
1513
1499
  booking?: Booking;
1514
1500
  }
1515
- interface LegacyCreateBookingResponse {
1501
+ export interface LegacyCreateBookingResponse {
1516
1502
  booking?: Booking;
1517
1503
  }
1518
1504
  /**
1519
1505
  * The `fieldMask` for each booking should not include both the `numberOfParticipants` and `participantsInfo` paths. Including both results
1520
1506
  * in an error. `participantsInfo` is preferred over `numberOfParticipants`.
1521
1507
  */
1522
- interface BulkUpdateBookingRequest {
1508
+ export interface BulkUpdateBookingRequest {
1523
1509
  bookings?: MaskedBooking[];
1524
1510
  }
1525
- interface MaskedBooking {
1511
+ export interface MaskedBooking {
1526
1512
  booking?: Booking;
1527
1513
  mask?: string[];
1528
1514
  }
1529
- interface BulkUpdateBookingResponse {
1515
+ export interface BulkUpdateBookingResponse {
1530
1516
  /**
1531
1517
  * Information about the booking that was updated.
1532
1518
  * Including its ID, index in the bulk request and whether it was
@@ -1536,7 +1522,7 @@ interface BulkUpdateBookingResponse {
1536
1522
  /** Total number of successes and failures for Bulk Update Bookings. */
1537
1523
  bulkActionMetadata?: BulkActionMetadata;
1538
1524
  }
1539
- interface BulkCreateBookingRequest {
1525
+ export interface BulkCreateBookingRequest {
1540
1526
  /**
1541
1527
  * Bookings to create.
1542
1528
  *
@@ -1548,7 +1534,7 @@ interface BulkCreateBookingRequest {
1548
1534
  /** Whether to return the created bookings. */
1549
1535
  returnFullEntity?: boolean;
1550
1536
  }
1551
- interface CreateBookingInfo {
1537
+ export interface CreateBookingInfo {
1552
1538
  /** Booking to create. */
1553
1539
  booking?: Booking;
1554
1540
  /**
@@ -1568,13 +1554,13 @@ interface CreateBookingInfo {
1568
1554
  */
1569
1555
  flowControlSettings?: CreateBookingFlowControlSettings;
1570
1556
  }
1571
- interface BulkCreateBookingResponse {
1557
+ export interface BulkCreateBookingResponse {
1572
1558
  /** List of individual Bulk Create Bookings results. */
1573
1559
  results?: BulkBookingResult[];
1574
1560
  /** Total number of successes and failures for Bulk Create Bookings. */
1575
1561
  bulkActionMetadata?: BulkActionMetadata;
1576
1562
  }
1577
- interface RescheduleBookingRequest extends RescheduleBookingRequestParticipantsInfoOneOf {
1563
+ export interface RescheduleBookingRequest extends RescheduleBookingRequestParticipantsInfoOneOf {
1578
1564
  /**
1579
1565
  * Total number of participants. Specify when all participants have booked the
1580
1566
  * same service variant.
@@ -1610,7 +1596,7 @@ interface RescheduleBookingRequest extends RescheduleBookingRequestParticipantsI
1610
1596
  flowControlSettings?: RescheduleBookingFlowControlSettings;
1611
1597
  }
1612
1598
  /** @oneof */
1613
- interface RescheduleBookingRequestParticipantsInfoOneOf {
1599
+ export interface RescheduleBookingRequestParticipantsInfoOneOf {
1614
1600
  /**
1615
1601
  * Total number of participants. Specify when all participants have booked the
1616
1602
  * same service variant.
@@ -1622,7 +1608,7 @@ interface RescheduleBookingRequestParticipantsInfoOneOf {
1622
1608
  */
1623
1609
  participantsChoices?: ParticipantChoices;
1624
1610
  }
1625
- interface V2Slot {
1611
+ export interface V2Slot {
1626
1612
  /** Identifier for the underlying session when the session is a single session or generated from a recurring session. */
1627
1613
  sessionId?: string | null;
1628
1614
  /** Service identifier. Required. */
@@ -1654,7 +1640,7 @@ interface V2Slot {
1654
1640
  */
1655
1641
  eventId?: string | null;
1656
1642
  }
1657
- declare enum LocationLocationType {
1643
+ export declare enum LocationLocationType {
1658
1644
  /** Undefined location type. */
1659
1645
  UNDEFINED = "UNDEFINED",
1660
1646
  /** The business address as set in the site’s general settings. */
@@ -1664,25 +1650,25 @@ declare enum LocationLocationType {
1664
1650
  /** The address set for the individual session. */
1665
1651
  CUSTOM = "CUSTOM"
1666
1652
  }
1667
- interface SlotSlotResource {
1653
+ export interface SlotSlotResource {
1668
1654
  /**
1669
1655
  * Resource ID.
1670
1656
  * @format GUID
1671
1657
  * @readonly
1672
1658
  */
1673
- _id?: string | null;
1659
+ id?: string | null;
1674
1660
  /**
1675
1661
  * Resource name.
1676
1662
  * @maxLength 1200
1677
1663
  */
1678
1664
  name?: string | null;
1679
1665
  }
1680
- interface SlotLocation {
1666
+ export interface SlotLocation {
1681
1667
  /**
1682
1668
  * Business Location ID. Present if the location is a business location.
1683
1669
  * @format GUID
1684
1670
  */
1685
- _id?: string | null;
1671
+ id?: string | null;
1686
1672
  /** Location name. */
1687
1673
  name?: string | null;
1688
1674
  /** A string containing the full address of this location. */
@@ -1690,7 +1676,7 @@ interface SlotLocation {
1690
1676
  /** Location type. */
1691
1677
  locationType?: LocationLocationType;
1692
1678
  }
1693
- interface RescheduleBookingFlowControlSettings {
1679
+ export interface RescheduleBookingFlowControlSettings {
1694
1680
  /**
1695
1681
  * Whether the rescheduling policy applies when rescheduling the booking.
1696
1682
  *
@@ -1715,11 +1701,11 @@ interface RescheduleBookingFlowControlSettings {
1715
1701
  */
1716
1702
  skipBusinessConfirmation?: boolean;
1717
1703
  }
1718
- interface RescheduleBookingResponse {
1704
+ export interface RescheduleBookingResponse {
1719
1705
  /** Rescheduled booking. */
1720
1706
  booking?: Booking;
1721
1707
  }
1722
- interface BookingRescheduled extends BookingRescheduledPreviousParticipantsInfoOneOf {
1708
+ export interface BookingRescheduled extends BookingRescheduledPreviousParticipantsInfoOneOf {
1723
1709
  /**
1724
1710
  * The previous total number of participants. Available only when the booking includes
1725
1711
  * a single service variant.
@@ -1761,7 +1747,7 @@ interface BookingRescheduled extends BookingRescheduledPreviousParticipantsInfoO
1761
1747
  previousEndDate?: Date | null;
1762
1748
  }
1763
1749
  /** @oneof */
1764
- interface BookingRescheduledPreviousParticipantsInfoOneOf {
1750
+ export interface BookingRescheduledPreviousParticipantsInfoOneOf {
1765
1751
  /**
1766
1752
  * The previous total number of participants. Available only when the booking includes
1767
1753
  * a single service variant.
@@ -1773,7 +1759,7 @@ interface BookingRescheduledPreviousParticipantsInfoOneOf {
1773
1759
  */
1774
1760
  previousParticipantsChoices?: ParticipantChoices;
1775
1761
  }
1776
- interface IdentificationData extends IdentificationDataIdOneOf {
1762
+ export interface IdentificationData extends IdentificationDataIdOneOf {
1777
1763
  /**
1778
1764
  * ID of a site visitor that has not logged in to the site.
1779
1765
  * @format GUID
@@ -1802,7 +1788,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
1802
1788
  contactId?: string | null;
1803
1789
  }
1804
1790
  /** @oneof */
1805
- interface IdentificationDataIdOneOf {
1791
+ export interface IdentificationDataIdOneOf {
1806
1792
  /**
1807
1793
  * ID of a site visitor that has not logged in to the site.
1808
1794
  * @format GUID
@@ -1824,14 +1810,14 @@ interface IdentificationDataIdOneOf {
1824
1810
  */
1825
1811
  appId?: string;
1826
1812
  }
1827
- declare enum IdentityType {
1813
+ export declare enum IdentityType {
1828
1814
  UNKNOWN = "UNKNOWN",
1829
1815
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1830
1816
  MEMBER = "MEMBER",
1831
1817
  WIX_USER = "WIX_USER",
1832
1818
  APP = "APP"
1833
1819
  }
1834
- interface BulkRescheduleBookingRequest {
1820
+ export interface BulkRescheduleBookingRequest {
1835
1821
  /**
1836
1822
  * Reschedule multiple bookings to multiple slots.
1837
1823
  * @minSize 1
@@ -1843,12 +1829,12 @@ interface BulkRescheduleBookingRequest {
1843
1829
  */
1844
1830
  participantNotification?: ParticipantNotification;
1845
1831
  }
1846
- interface BulkRescheduleBookingRequestBooking {
1832
+ export interface BulkRescheduleBookingRequestBooking {
1847
1833
  /**
1848
1834
  * ID of the booking to reschedule.
1849
1835
  * @format GUID
1850
1836
  */
1851
- _id?: string;
1837
+ id?: string;
1852
1838
  /**
1853
1839
  * Revision number, which increments by 1 each time the booking is rescheduled.
1854
1840
  * To prevent conflicting changes,
@@ -1857,7 +1843,7 @@ interface BulkRescheduleBookingRequestBooking {
1857
1843
  revision?: string | null;
1858
1844
  }
1859
1845
  /** Bookings to be rescheduled to the given slot. */
1860
- interface SlotBookings {
1846
+ export interface SlotBookings {
1861
1847
  /**
1862
1848
  * The bookings details.
1863
1849
  * @minSize 1
@@ -1869,7 +1855,7 @@ interface SlotBookings {
1869
1855
  */
1870
1856
  slot?: BookedSlot;
1871
1857
  }
1872
- interface BulkRescheduleBookingResponse {
1858
+ export interface BulkRescheduleBookingResponse {
1873
1859
  /**
1874
1860
  * Information about the booking that was rescheduled.
1875
1861
  * Including its ID, index in the bulk request and whether it was
@@ -1880,7 +1866,7 @@ interface BulkRescheduleBookingResponse {
1880
1866
  bulkActionMetadata?: BulkActionMetadata;
1881
1867
  }
1882
1868
  /** Update the booked schedule of multiple bookings to the given schedule. */
1883
- interface BulkUpdateBookedScheduleRequest {
1869
+ export interface BulkUpdateBookedScheduleRequest {
1884
1870
  /**
1885
1871
  * The bookings whose booked schedule is to be updated to the given schedule.
1886
1872
  * @minSize 1
@@ -1894,15 +1880,15 @@ interface BulkUpdateBookedScheduleRequest {
1894
1880
  */
1895
1881
  participantNotification?: ParticipantNotification;
1896
1882
  }
1897
- interface BookingDetails {
1883
+ export interface BookingDetails {
1898
1884
  /**
1899
1885
  * ID of the bookings to be updated.
1900
1886
  * @format GUID
1901
1887
  */
1902
- _id?: string;
1888
+ id?: string;
1903
1889
  revision?: string | null;
1904
1890
  }
1905
- interface BulkUpdateBookedScheduleResponse {
1891
+ export interface BulkUpdateBookedScheduleResponse {
1906
1892
  /**
1907
1893
  * Information about the schedule that was updated.
1908
1894
  * Including its ID, index in the bulk request and whether it was
@@ -1912,11 +1898,11 @@ interface BulkUpdateBookedScheduleResponse {
1912
1898
  /** Total number of successes and failures for Bulk Updated Booked Schedules. */
1913
1899
  bulkActionMetadata?: BulkActionMetadata;
1914
1900
  }
1915
- interface QueryBookingsRequest {
1901
+ export interface QueryBookingsRequest {
1916
1902
  /** Information about filters, paging, and sorting. */
1917
1903
  query?: QueryV2;
1918
1904
  }
1919
- interface QueryV2 extends QueryV2PagingMethodOneOf {
1905
+ export interface QueryV2 extends QueryV2PagingMethodOneOf {
1920
1906
  /** Paging options to limit and skip the number of items. */
1921
1907
  paging?: Paging;
1922
1908
  /**
@@ -1946,7 +1932,7 @@ interface QueryV2 extends QueryV2PagingMethodOneOf {
1946
1932
  fieldsets?: string[];
1947
1933
  }
1948
1934
  /** @oneof */
1949
- interface QueryV2PagingMethodOneOf {
1935
+ export interface QueryV2PagingMethodOneOf {
1950
1936
  /** Paging options to limit and skip the number of items. */
1951
1937
  paging?: Paging;
1952
1938
  /**
@@ -1957,7 +1943,7 @@ interface QueryV2PagingMethodOneOf {
1957
1943
  */
1958
1944
  cursorPaging?: CursorPaging;
1959
1945
  }
1960
- interface Sorting {
1946
+ export interface Sorting {
1961
1947
  /**
1962
1948
  * Name of the field to sort by.
1963
1949
  * @maxLength 512
@@ -1966,17 +1952,17 @@ interface Sorting {
1966
1952
  /** Sort order. */
1967
1953
  order?: SortOrder;
1968
1954
  }
1969
- declare enum SortOrder {
1955
+ export declare enum SortOrder {
1970
1956
  ASC = "ASC",
1971
1957
  DESC = "DESC"
1972
1958
  }
1973
- interface Paging {
1959
+ export interface Paging {
1974
1960
  /** Number of items to load. */
1975
1961
  limit?: number | null;
1976
1962
  /** Number of items to skip in the current sort order. */
1977
1963
  offset?: number | null;
1978
1964
  }
1979
- interface CursorPaging {
1965
+ export interface CursorPaging {
1980
1966
  /**
1981
1967
  * Maximum number of items to return in the results.
1982
1968
  * @max 100
@@ -1991,13 +1977,13 @@ interface CursorPaging {
1991
1977
  */
1992
1978
  cursor?: string | null;
1993
1979
  }
1994
- interface QueryBookingsResponse {
1980
+ export interface QueryBookingsResponse {
1995
1981
  /** Retrieved bookings. */
1996
1982
  bookings?: Booking[];
1997
1983
  /** Paging metadata. */
1998
1984
  pagingMetadata?: PagingMetadataV2;
1999
1985
  }
2000
- interface PagingMetadataV2 {
1986
+ export interface PagingMetadataV2 {
2001
1987
  /** Number of items returned in the response. */
2002
1988
  count?: number | null;
2003
1989
  /** Offset that was requested. */
@@ -2009,7 +1995,7 @@ interface PagingMetadataV2 {
2009
1995
  /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
2010
1996
  cursors?: Cursors;
2011
1997
  }
2012
- interface Cursors {
1998
+ export interface Cursors {
2013
1999
  /**
2014
2000
  * Cursor string pointing to the next page in the list of results.
2015
2001
  * @maxLength 16000
@@ -2021,25 +2007,25 @@ interface Cursors {
2021
2007
  */
2022
2008
  prev?: string | null;
2023
2009
  }
2024
- interface ConfirmRequest {
2010
+ export interface ConfirmRequest {
2025
2011
  /**
2026
2012
  * ID of the booking to confirm.
2027
2013
  * @format GUID
2028
2014
  */
2029
- _id?: string;
2015
+ id?: string;
2030
2016
  /**
2031
2017
  * Information about whether to notify the customer about the confirmation and
2032
2018
  * the message to send.
2033
2019
  */
2034
2020
  participantNotification?: ParticipantNotification;
2035
2021
  }
2036
- interface ConfirmResponse {
2022
+ export interface ConfirmResponse {
2037
2023
  /** Confirmed booking. */
2038
2024
  booking?: Booking;
2039
2025
  /** Whether this booking has a conflict with at least 1 other confirmed booking. */
2040
2026
  doubleBooked?: boolean | null;
2041
2027
  }
2042
- interface ConfirmBookingRequest {
2028
+ export interface ConfirmBookingRequest {
2043
2029
  /**
2044
2030
  * ID of the booking to confirm.
2045
2031
  * @format GUID
@@ -2071,7 +2057,7 @@ interface ConfirmBookingRequest {
2071
2057
  */
2072
2058
  flowControlSettings?: ConfirmBookingFlowControlSettings;
2073
2059
  }
2074
- interface ConfirmBookingFlowControlSettings {
2060
+ export interface ConfirmBookingFlowControlSettings {
2075
2061
  /**
2076
2062
  * Whether the availability is checked before confirming the booking.
2077
2063
  *
@@ -2080,11 +2066,11 @@ interface ConfirmBookingFlowControlSettings {
2080
2066
  */
2081
2067
  checkAvailabilityValidation?: boolean;
2082
2068
  }
2083
- interface ConfirmBookingResponse {
2069
+ export interface ConfirmBookingResponse {
2084
2070
  /** Confirmed booking. */
2085
2071
  booking?: Booking;
2086
2072
  }
2087
- interface BookingConfirmed {
2073
+ export interface BookingConfirmed {
2088
2074
  /** The confirmed booking object. */
2089
2075
  booking?: Booking;
2090
2076
  /** Information about whether to notify the customer about the confirmation and the message to send. */
@@ -2103,30 +2089,30 @@ interface BookingConfirmed {
2103
2089
  /** The previous payment status of the booking. */
2104
2090
  previousPaymentStatus?: PaymentStatus;
2105
2091
  }
2106
- interface ConsistentQueryBookingsRequest {
2092
+ export interface ConsistentQueryBookingsRequest {
2107
2093
  /** Information about filters, paging, and sorting. */
2108
2094
  query?: QueryV2;
2109
2095
  }
2110
- interface ConsistentQueryBookingsResponse {
2096
+ export interface ConsistentQueryBookingsResponse {
2111
2097
  /** Retrieved bookings. */
2112
2098
  bookings?: Booking[];
2113
2099
  /** Paging metadata. */
2114
2100
  pagingMetadata?: PagingMetadataV2;
2115
2101
  }
2116
- interface SetBookingSessionIdRequest {
2102
+ export interface SetBookingSessionIdRequest {
2117
2103
  /**
2118
2104
  * ID of the booking to set `sessionId` for.
2119
2105
  * @format GUID
2120
2106
  */
2121
- _id?: string;
2107
+ id?: string;
2122
2108
  /** ID of the session to set on the booking. */
2123
2109
  sessionId?: string;
2124
2110
  }
2125
- interface SetBookingSessionIdResponse {
2111
+ export interface SetBookingSessionIdResponse {
2126
2112
  /** Updated booking. */
2127
2113
  booking?: Booking;
2128
2114
  }
2129
- interface SetBookingSubmissionIdRequest {
2115
+ export interface SetBookingSubmissionIdRequest {
2130
2116
  /**
2131
2117
  * ID of the booking to set `submissionId` for.
2132
2118
  * @format GUID
@@ -2138,19 +2124,19 @@ interface SetBookingSubmissionIdRequest {
2138
2124
  */
2139
2125
  submissionId?: string;
2140
2126
  }
2141
- interface SetBookingSubmissionIdResponse {
2127
+ export interface SetBookingSubmissionIdResponse {
2142
2128
  /** Updated booking. */
2143
2129
  booking?: Booking;
2144
2130
  }
2145
- interface UpdateExtendedFieldsRequest {
2131
+ export interface UpdateExtendedFieldsRequest {
2146
2132
  /** ID of the entity to update. */
2147
- _id: string;
2133
+ id: string;
2148
2134
  /** Identifier for the app whose extended fields are being updated. */
2149
2135
  namespace: string;
2150
2136
  /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
2151
2137
  namespaceData: Record<string, any> | null;
2152
2138
  }
2153
- interface UpdateExtendedFieldsResponse {
2139
+ export interface UpdateExtendedFieldsResponse {
2154
2140
  /**
2155
2141
  * Updated namespace.
2156
2142
  * @maxLength 164
@@ -2159,7 +2145,7 @@ interface UpdateExtendedFieldsResponse {
2159
2145
  /** Updated data. */
2160
2146
  namespaceData?: Record<string, any> | null;
2161
2147
  }
2162
- interface DeclineBookingRequest {
2148
+ export interface DeclineBookingRequest {
2163
2149
  /**
2164
2150
  * ID of the booking to decline.
2165
2151
  * @format GUID
@@ -2188,7 +2174,7 @@ interface DeclineBookingRequest {
2188
2174
  */
2189
2175
  flowControlSettings?: DeclineBookingFlowControlSettings;
2190
2176
  }
2191
- interface DeclineBookingFlowControlSettings {
2177
+ export interface DeclineBookingFlowControlSettings {
2192
2178
  /**
2193
2179
  * Whether to issue a refund when declining the booking.
2194
2180
  *
@@ -2202,11 +2188,11 @@ interface DeclineBookingFlowControlSettings {
2202
2188
  */
2203
2189
  withRefund?: boolean | null;
2204
2190
  }
2205
- interface DeclineBookingResponse {
2191
+ export interface DeclineBookingResponse {
2206
2192
  /** Declined booking. */
2207
2193
  booking?: Booking;
2208
2194
  }
2209
- interface BookingDeclined {
2195
+ export interface BookingDeclined {
2210
2196
  /** The declined booking object. */
2211
2197
  booking?: Booking;
2212
2198
  /** Information about whether to notify the customer about the decline and the message to send. */
@@ -2225,7 +2211,7 @@ interface BookingDeclined {
2225
2211
  */
2226
2212
  flowControlSettings?: DeclineBookingFlowControlSettings;
2227
2213
  }
2228
- interface CancelBookingRequest {
2214
+ export interface CancelBookingRequest {
2229
2215
  /**
2230
2216
  * ID of the booking to cancel.
2231
2217
  * @format GUID
@@ -2250,7 +2236,7 @@ interface CancelBookingRequest {
2250
2236
  */
2251
2237
  revision: string | null;
2252
2238
  }
2253
- interface CancelBookingFlowControlSettings {
2239
+ export interface CancelBookingFlowControlSettings {
2254
2240
  /**
2255
2241
  * Whether the cancellation policy applies when canceling the booking.
2256
2242
  *
@@ -2271,11 +2257,11 @@ interface CancelBookingFlowControlSettings {
2271
2257
  */
2272
2258
  withRefund?: boolean | null;
2273
2259
  }
2274
- interface CancelBookingResponse {
2260
+ export interface CancelBookingResponse {
2275
2261
  /** Canceled booking. */
2276
2262
  booking?: Booking;
2277
2263
  }
2278
- interface BookingCanceled {
2264
+ export interface BookingCanceled {
2279
2265
  /** The canceled booking object. */
2280
2266
  booking?: Booking;
2281
2267
  /** Information about whether to notify the customer about the cancellation and the message to send. */
@@ -2292,7 +2278,7 @@ interface BookingCanceled {
2292
2278
  /** The previous status of the booking. */
2293
2279
  previousStatus?: BookingStatus;
2294
2280
  }
2295
- interface UpdateNumberOfParticipantsRequest extends UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
2281
+ export interface UpdateNumberOfParticipantsRequest extends UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
2296
2282
  /**
2297
2283
  * Total number of participants. Specify when all participants have booked the
2298
2284
  * same service variant.
@@ -2317,7 +2303,7 @@ interface UpdateNumberOfParticipantsRequest extends UpdateNumberOfParticipantsRe
2317
2303
  revision: string | null;
2318
2304
  }
2319
2305
  /** @oneof */
2320
- interface UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
2306
+ export interface UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
2321
2307
  /**
2322
2308
  * Total number of participants. Specify when all participants have booked the
2323
2309
  * same service variant.
@@ -2329,11 +2315,11 @@ interface UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
2329
2315
  */
2330
2316
  participantsChoices?: ParticipantChoices;
2331
2317
  }
2332
- interface UpdateNumberOfParticipantsResponse {
2318
+ export interface UpdateNumberOfParticipantsResponse {
2333
2319
  /** Updated booking. */
2334
2320
  booking?: Booking;
2335
2321
  }
2336
- interface NumberOfParticipantsUpdated extends NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf {
2322
+ export interface NumberOfParticipantsUpdated extends NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf {
2337
2323
  /**
2338
2324
  * The previous total number of participants. Available only when the booking includes
2339
2325
  * a single service variant.
@@ -2350,7 +2336,7 @@ interface NumberOfParticipantsUpdated extends NumberOfParticipantsUpdatedPreviou
2350
2336
  initiatedBy?: IdentificationData;
2351
2337
  }
2352
2338
  /** @oneof */
2353
- interface NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf {
2339
+ export interface NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf {
2354
2340
  /**
2355
2341
  * The previous total number of participants. Available only when the booking includes
2356
2342
  * a single service variant.
@@ -2362,42 +2348,42 @@ interface NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf {
2362
2348
  */
2363
2349
  previousParticipantsChoices?: ParticipantChoices;
2364
2350
  }
2365
- interface BulkCalculateAllowedActionsRequest {
2351
+ export interface BulkCalculateAllowedActionsRequest {
2366
2352
  /**
2367
2353
  * The booking IDs for which we want to calculate the allowed actions.
2368
2354
  * @minSize 1
2369
2355
  */
2370
2356
  bookingIds?: string[] | null;
2371
2357
  }
2372
- interface BulkCalculateAllowedActionsResponse {
2358
+ export interface BulkCalculateAllowedActionsResponse {
2373
2359
  results?: BulkCalculateAllowedActionsResult[];
2374
2360
  /** Total number of successes and failures for Bulk Calculate Allowed Actions. */
2375
2361
  bulkActionMetadata?: BulkActionMetadata;
2376
2362
  }
2377
- interface BulkCalculateAllowedActionsResult {
2363
+ export interface BulkCalculateAllowedActionsResult {
2378
2364
  /** Metadata for the booking. Including ID, index in the provided sequence, success status, and error. */
2379
2365
  itemMetadata?: ItemMetadata;
2380
2366
  /** Booking entity. */
2381
2367
  item?: AllowedActions;
2382
2368
  }
2383
2369
  /** Possible actions allowed for the booking. */
2384
- interface AllowedActions {
2370
+ export interface AllowedActions {
2385
2371
  /** Whether canceling the booking is allowed. */
2386
2372
  cancel?: boolean;
2387
2373
  /** Whether rescheduling the booking is allowed. */
2388
2374
  reschedule?: boolean;
2389
2375
  }
2390
- interface GetSlotAvailabilityRequest {
2376
+ export interface GetSlotAvailabilityRequest {
2391
2377
  /** The slot for which the availability is checked. */
2392
2378
  slot?: V2Slot;
2393
2379
  /** The timezone for which availability is to be calculated. */
2394
2380
  timezone?: string | null;
2395
2381
  }
2396
- interface GetSlotAvailabilityResponse {
2382
+ export interface GetSlotAvailabilityResponse {
2397
2383
  availability?: SlotAvailability;
2398
2384
  bookingPolicySettings?: BookingPolicySettings;
2399
2385
  }
2400
- interface SlotAvailability {
2386
+ export interface SlotAvailability {
2401
2387
  /** Identifier for the underlying session when the session is a single session or generated from a recurring session. Required. */
2402
2388
  slot?: V2Slot;
2403
2389
  /** Whether this available slot is bookable. */
@@ -2419,7 +2405,7 @@ interface SlotAvailability {
2419
2405
  /** Indicates whether this slot is locked. */
2420
2406
  locked?: boolean | null;
2421
2407
  }
2422
- interface WaitingList {
2408
+ export interface WaitingList {
2423
2409
  /**
2424
2410
  * Total number of spots and open spots for this waiting list.
2425
2411
  * 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.
@@ -2427,7 +2413,7 @@ interface WaitingList {
2427
2413
  totalSpots?: number | null;
2428
2414
  openSpots?: number | null;
2429
2415
  }
2430
- interface BookingPolicyViolations {
2416
+ export interface BookingPolicyViolations {
2431
2417
  /** Booking policy violation: Too early to book this slot. */
2432
2418
  tooEarlyToBook?: boolean | null;
2433
2419
  /** Booking policy violation: Too late to book this slot. */
@@ -2435,11 +2421,11 @@ interface BookingPolicyViolations {
2435
2421
  /** Booking policy violation: Online booking is disabled for this slot. */
2436
2422
  bookOnlineDisabled?: boolean | null;
2437
2423
  }
2438
- interface BookingPolicySettings {
2424
+ export interface BookingPolicySettings {
2439
2425
  /** Booking policy settings for a given slot or schedule. */
2440
2426
  maxParticipantsPerBooking?: number | null;
2441
2427
  }
2442
- interface AvailableResources {
2428
+ export interface AvailableResources {
2443
2429
  /**
2444
2430
  * Resource type ID.
2445
2431
  * @format GUID
@@ -2454,18 +2440,18 @@ interface AvailableResources {
2454
2440
  */
2455
2441
  resourceIds?: string[];
2456
2442
  }
2457
- interface GetScheduleAvailabilityRequest {
2443
+ export interface GetScheduleAvailabilityRequest {
2458
2444
  /**
2459
2445
  * ID of the schedule for which to check availability.
2460
2446
  * @format GUID
2461
2447
  */
2462
2448
  scheduleId?: string;
2463
2449
  }
2464
- interface GetScheduleAvailabilityResponse {
2450
+ export interface GetScheduleAvailabilityResponse {
2465
2451
  availability?: ScheduleAvailability;
2466
2452
  bookingPolicySettings?: BookingPolicySettings;
2467
2453
  }
2468
- interface ScheduleAvailability {
2454
+ export interface ScheduleAvailability {
2469
2455
  /** Total number of spots. */
2470
2456
  totalSpots?: number | null;
2471
2457
  /** Number of remaining open spots. */
@@ -2473,7 +2459,7 @@ interface ScheduleAvailability {
2473
2459
  /** Indicators of booking policy violations for the specified schedule. */
2474
2460
  bookingPolicyViolations?: BookingPolicyViolations;
2475
2461
  }
2476
- interface MarkBookingAsPendingRequest {
2462
+ export interface MarkBookingAsPendingRequest {
2477
2463
  /**
2478
2464
  * ID of the booking to mark as `PENDING`.
2479
2465
  * @format GUID
@@ -2506,7 +2492,7 @@ interface MarkBookingAsPendingRequest {
2506
2492
  */
2507
2493
  flowControlSettings?: MarkBookingAsPendingFlowControlSettings;
2508
2494
  }
2509
- interface MarkBookingAsPendingFlowControlSettings {
2495
+ export interface MarkBookingAsPendingFlowControlSettings {
2510
2496
  /**
2511
2497
  * Whether to check for double bookings before updating the booking as pending.
2512
2498
  *
@@ -2522,11 +2508,11 @@ interface MarkBookingAsPendingFlowControlSettings {
2522
2508
  */
2523
2509
  skipPendingApprovalServiceValidation?: boolean;
2524
2510
  }
2525
- interface MarkBookingAsPendingResponse {
2511
+ export interface MarkBookingAsPendingResponse {
2526
2512
  /** Updated booking. */
2527
2513
  booking?: Booking;
2528
2514
  }
2529
- interface BookingMarkedAsPending {
2515
+ export interface BookingMarkedAsPending {
2530
2516
  /** The booking object that was marked as pending. */
2531
2517
  booking?: Booking;
2532
2518
  /** Information about whether to notify the customer upon manual confirmation of the pending booking and the message to send. */
@@ -2545,24 +2531,24 @@ interface BookingMarkedAsPending {
2545
2531
  /** The previous payment status of the booking. */
2546
2532
  previousPaymentStatus?: PaymentStatus;
2547
2533
  }
2548
- interface MigrationCheckIfClashesWithBlockedTimeRequest {
2534
+ export interface MigrationCheckIfClashesWithBlockedTimeRequest {
2549
2535
  msidAndBookingIds?: MsidAndBookingId[];
2550
2536
  }
2551
- interface MsidAndBookingId {
2537
+ export interface MsidAndBookingId {
2552
2538
  msid?: string;
2553
2539
  bookingId?: string;
2554
2540
  }
2555
- interface MigrationCheckIfClashesWithBlockedTimeResponse {
2541
+ export interface MigrationCheckIfClashesWithBlockedTimeResponse {
2556
2542
  clashes?: Clash[];
2557
2543
  }
2558
- interface Clash {
2544
+ export interface Clash {
2559
2545
  msid?: string;
2560
2546
  bookingId?: string;
2561
2547
  sessionId?: string;
2562
2548
  resourceName?: string;
2563
2549
  contactName?: string;
2564
2550
  }
2565
- interface CountBookingsRequest {
2551
+ export interface CountBookingsRequest {
2566
2552
  /**
2567
2553
  * Filter object in the following format:
2568
2554
  * `"filter" : {
@@ -2573,11 +2559,11 @@ interface CountBookingsRequest {
2573
2559
  */
2574
2560
  filter?: Record<string, any> | null;
2575
2561
  }
2576
- interface CountBookingsResponse {
2562
+ export interface CountBookingsResponse {
2577
2563
  /** Number of bookings matching the specified filter. */
2578
2564
  count?: number;
2579
2565
  }
2580
- interface CreateMultiServiceBookingRequest {
2566
+ export interface CreateMultiServiceBookingRequest {
2581
2567
  /**
2582
2568
  * Single-service bookings to combine in a multi-service booking.
2583
2569
  * @minSize 2
@@ -2606,23 +2592,23 @@ interface CreateMultiServiceBookingRequest {
2606
2592
  /** Multi service booking type. */
2607
2593
  multiServiceBookingType?: MultiServiceBookingType;
2608
2594
  }
2609
- interface CreateMultiServiceBookingResponse {
2595
+ export interface CreateMultiServiceBookingResponse {
2610
2596
  /**
2611
2597
  * Created multi service booking.
2612
2598
  * Contains the booking results in the same order as specified in the request.
2613
2599
  */
2614
2600
  multiServiceBooking?: MultiServiceBooking;
2615
2601
  }
2616
- interface MultiServiceBooking {
2602
+ export interface MultiServiceBooking {
2617
2603
  /**
2618
2604
  * Multi-service booking ID.
2619
2605
  * @format GUID
2620
2606
  */
2621
- _id?: string | null;
2607
+ id?: string | null;
2622
2608
  /** The created bookings that are part of the multi-service booking. */
2623
2609
  bookings?: BookingResult[];
2624
2610
  }
2625
- interface BookingResult {
2611
+ export interface BookingResult {
2626
2612
  /**
2627
2613
  * Booking ID.
2628
2614
  * @format GUID
@@ -2631,7 +2617,7 @@ interface BookingResult {
2631
2617
  /** Booking entity. */
2632
2618
  booking?: Booking;
2633
2619
  }
2634
- interface RescheduleMultiServiceBookingRequest {
2620
+ export interface RescheduleMultiServiceBookingRequest {
2635
2621
  /**
2636
2622
  * ID of the multi service booking to reschedule.
2637
2623
  * @format GUID
@@ -2654,7 +2640,7 @@ interface RescheduleMultiServiceBookingRequest {
2654
2640
  /** Whether to return the rescheduled bookings entities. */
2655
2641
  returnFullEntity?: boolean;
2656
2642
  }
2657
- interface RescheduleBookingInfo extends RescheduleBookingInfoParticipantsInfoOneOf {
2643
+ export interface RescheduleBookingInfo extends RescheduleBookingInfoParticipantsInfoOneOf {
2658
2644
  /**
2659
2645
  * Total number of participants. Available only for services with variants.
2660
2646
  * Specify when all participants book the same variant.
@@ -2681,7 +2667,7 @@ interface RescheduleBookingInfo extends RescheduleBookingInfoParticipantsInfoOne
2681
2667
  revision?: string | null;
2682
2668
  }
2683
2669
  /** @oneof */
2684
- interface RescheduleBookingInfoParticipantsInfoOneOf {
2670
+ export interface RescheduleBookingInfoParticipantsInfoOneOf {
2685
2671
  /**
2686
2672
  * Total number of participants. Available only for services with variants.
2687
2673
  * Specify when all participants book the same variant.
@@ -2694,18 +2680,18 @@ interface RescheduleBookingInfoParticipantsInfoOneOf {
2694
2680
  */
2695
2681
  participantsChoices?: ParticipantChoices;
2696
2682
  }
2697
- interface RescheduleMultiServiceBookingResponse {
2683
+ export interface RescheduleMultiServiceBookingResponse {
2698
2684
  /** Rescheduled multi-service booking. */
2699
2685
  multiServiceBooking?: MultiServiceBooking;
2700
2686
  }
2701
- interface GetMultiServiceBookingAvailabilityRequest {
2687
+ export interface GetMultiServiceBookingAvailabilityRequest {
2702
2688
  /**
2703
2689
  * ID of the multi-service booking to retrieve.
2704
2690
  * @format GUID
2705
2691
  */
2706
2692
  multiServiceBookingId: string | null;
2707
2693
  }
2708
- interface GetMultiServiceBookingAvailabilityResponse {
2694
+ export interface GetMultiServiceBookingAvailabilityResponse {
2709
2695
  /** Whether all contained single-service bookings are bookable. */
2710
2696
  bookable?: boolean;
2711
2697
  /** Total number of spots. */
@@ -2719,14 +2705,14 @@ interface GetMultiServiceBookingAvailabilityResponse {
2719
2705
  /** Info of the bookings this availability was calculated for. */
2720
2706
  multiServiceBookingInfo?: GetMultiServiceBookingAvailabilityResponseBookingInfo[];
2721
2707
  }
2722
- interface GetMultiServiceBookingAvailabilityResponseBookingInfo {
2708
+ export interface GetMultiServiceBookingAvailabilityResponseBookingInfo {
2723
2709
  /**
2724
2710
  * Booking ID.
2725
2711
  * @format GUID
2726
2712
  */
2727
2713
  bookingId?: string | null;
2728
2714
  }
2729
- interface CancelMultiServiceBookingRequest {
2715
+ export interface CancelMultiServiceBookingRequest {
2730
2716
  /**
2731
2717
  * ID of the multi-service booking to cancel.
2732
2718
  * @format GUID
@@ -2747,11 +2733,11 @@ interface CancelMultiServiceBookingRequest {
2747
2733
  /** Whether to return the canceled single-service bookings. */
2748
2734
  returnFullEntity?: boolean;
2749
2735
  }
2750
- interface CancelMultiServiceBookingResponse {
2736
+ export interface CancelMultiServiceBookingResponse {
2751
2737
  /** Canceled multi-service booking. */
2752
2738
  multiServiceBooking?: MultiServiceBooking;
2753
2739
  }
2754
- interface MarkMultiServiceBookingAsPendingRequest {
2740
+ export interface MarkMultiServiceBookingAsPendingRequest {
2755
2741
  /**
2756
2742
  * ID of the multi-service booking to mark as `PENDING`.
2757
2743
  * @format GUID
@@ -2782,7 +2768,7 @@ interface MarkMultiServiceBookingAsPendingRequest {
2782
2768
  */
2783
2769
  flowControlSettings?: MarkBookingAsPendingFlowControlSettings;
2784
2770
  }
2785
- interface BookingInfo {
2771
+ export interface BookingInfo {
2786
2772
  /**
2787
2773
  * ID of the single-service booking.
2788
2774
  * @format GUID
@@ -2797,11 +2783,11 @@ interface BookingInfo {
2797
2783
  /** Payment status to set for the single-service booking. */
2798
2784
  paymentStatus?: PaymentStatus;
2799
2785
  }
2800
- interface MarkMultiServiceBookingAsPendingResponse {
2786
+ export interface MarkMultiServiceBookingAsPendingResponse {
2801
2787
  /** Updated multi-service booking. */
2802
2788
  multiServiceBooking?: MultiServiceBooking;
2803
2789
  }
2804
- interface ConfirmMultiServiceBookingRequest {
2790
+ export interface ConfirmMultiServiceBookingRequest {
2805
2791
  /**
2806
2792
  * ID of the multi-service booking to confirm its related bookings.
2807
2793
  * @format GUID
@@ -2832,11 +2818,11 @@ interface ConfirmMultiServiceBookingRequest {
2832
2818
  */
2833
2819
  flowControlSettings?: ConfirmBookingFlowControlSettings;
2834
2820
  }
2835
- interface ConfirmMultiServiceBookingResponse {
2821
+ export interface ConfirmMultiServiceBookingResponse {
2836
2822
  /** Confirmed multi service booking. */
2837
2823
  multiServiceBooking?: MultiServiceBooking;
2838
2824
  }
2839
- interface DeclineMultiServiceBookingRequest {
2825
+ export interface DeclineMultiServiceBookingRequest {
2840
2826
  /**
2841
2827
  * ID of the multi service booking to decline.
2842
2828
  * @format GUID
@@ -2859,11 +2845,11 @@ interface DeclineMultiServiceBookingRequest {
2859
2845
  */
2860
2846
  flowControlSettings?: DeclineBookingFlowControlSettings;
2861
2847
  }
2862
- interface DeclineMultiServiceBookingResponse {
2848
+ export interface DeclineMultiServiceBookingResponse {
2863
2849
  /** Declined multi-service booking. */
2864
2850
  multiServiceBooking?: MultiServiceBooking;
2865
2851
  }
2866
- interface BulkGetMultiServiceBookingAllowedActionsRequest {
2852
+ export interface BulkGetMultiServiceBookingAllowedActionsRequest {
2867
2853
  /**
2868
2854
  * IDs of the multi-service bookings to retrieve allowed actions for.
2869
2855
  * @format GUID
@@ -2872,7 +2858,7 @@ interface BulkGetMultiServiceBookingAllowedActionsRequest {
2872
2858
  */
2873
2859
  multiServiceBookingIds: string[] | null;
2874
2860
  }
2875
- interface BulkGetMultiServiceBookingAllowedActionsResponse {
2861
+ export interface BulkGetMultiServiceBookingAllowedActionsResponse {
2876
2862
  /**
2877
2863
  * Information about the multi-service bookings that were retrieved.
2878
2864
  * Including their ID, index in the bulk request and whether they were
@@ -2882,20 +2868,20 @@ interface BulkGetMultiServiceBookingAllowedActionsResponse {
2882
2868
  /** Total number of successes and failures for Bulk Update Bookings. */
2883
2869
  bulkActionMetadata?: BulkActionMetadata;
2884
2870
  }
2885
- interface GetMultiServiceBookingRequest {
2871
+ export interface GetMultiServiceBookingRequest {
2886
2872
  /**
2887
2873
  * ID of the multi-service booking.
2888
2874
  * @format GUID
2889
2875
  */
2890
2876
  multiServiceBookingId: string | null;
2891
2877
  }
2892
- interface GetMultiServiceBookingResponse {
2878
+ export interface GetMultiServiceBookingResponse {
2893
2879
  /** Retrieved multi-service booking. */
2894
2880
  multiServiceBooking?: MultiServiceBooking;
2895
2881
  /** Details about how many single-service bookings belong to the multi-service booking. */
2896
2882
  metadata?: MultiServiceBookingMetadata;
2897
2883
  }
2898
- interface MultiServiceBookingMetadata {
2884
+ export interface MultiServiceBookingMetadata {
2899
2885
  /**
2900
2886
  * Total number of `CONFIRMED` and `PENDING` single-service bookings belonging
2901
2887
  * to the multi-service booking. The total includes the number of single-service
@@ -2903,7 +2889,7 @@ interface MultiServiceBookingMetadata {
2903
2889
  */
2904
2890
  totalNumberOfScheduledBookings?: number | null;
2905
2891
  }
2906
- interface AddBookingsToMultiServiceBookingRequest {
2892
+ export interface AddBookingsToMultiServiceBookingRequest {
2907
2893
  /**
2908
2894
  * ID of the multi-service booking.
2909
2895
  * @format GUID
@@ -2917,7 +2903,7 @@ interface AddBookingsToMultiServiceBookingRequest {
2917
2903
  /** Whether to return the single-service bookings that were added to the multi-service booking. */
2918
2904
  returnFullEntity?: boolean;
2919
2905
  }
2920
- interface BookingIdAndRevision {
2906
+ export interface BookingIdAndRevision {
2921
2907
  /**
2922
2908
  * ID of the booking.
2923
2909
  * @format GUID
@@ -2930,11 +2916,11 @@ interface BookingIdAndRevision {
2930
2916
  */
2931
2917
  revision?: string | null;
2932
2918
  }
2933
- interface AddBookingsToMultiServiceBookingResponse {
2919
+ export interface AddBookingsToMultiServiceBookingResponse {
2934
2920
  /** Single-service bookings that were added to the multi-service booking. */
2935
2921
  bookings?: BookingResult[];
2936
2922
  }
2937
- interface RemoveBookingsFromMultiServiceBookingRequest {
2923
+ export interface RemoveBookingsFromMultiServiceBookingRequest {
2938
2924
  /**
2939
2925
  * ID of the multi-service booking.
2940
2926
  * @format GUID
@@ -2948,403 +2934,7 @@ interface RemoveBookingsFromMultiServiceBookingRequest {
2948
2934
  /** Whether to return the single-service bookings. */
2949
2935
  returnFullEntity?: boolean;
2950
2936
  }
2951
- interface RemoveBookingsFromMultiServiceBookingResponse {
2937
+ export interface RemoveBookingsFromMultiServiceBookingResponse {
2952
2938
  /** Single-service bookings that were removed from the multi-service booking. */
2953
2939
  bookings?: BookingResult[];
2954
2940
  }
2955
- interface BaseEventMetadata {
2956
- /**
2957
- * App instance ID.
2958
- * @format GUID
2959
- */
2960
- instanceId?: string | null;
2961
- /**
2962
- * Event type.
2963
- * @maxLength 150
2964
- */
2965
- eventType?: string;
2966
- /** The identification type and identity data. */
2967
- identity?: WebhooksIdentificationData;
2968
- }
2969
- interface EventMetadata extends BaseEventMetadata {
2970
- /**
2971
- * Unique event ID.
2972
- * Allows clients to ignore duplicate webhooks.
2973
- */
2974
- _id?: string;
2975
- /**
2976
- * Assumes actions are also always typed to an entity_type
2977
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
2978
- */
2979
- entityFqdn?: string;
2980
- /**
2981
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
2982
- * This is although the created/updated/deleted notion is duplication of the oneof types
2983
- * Example: created/updated/deleted/started/completed/email_opened
2984
- */
2985
- slug?: string;
2986
- /** ID of the entity associated with the event. */
2987
- entityId?: string;
2988
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2989
- eventTime?: Date | null;
2990
- /**
2991
- * Whether the event was triggered as a result of a privacy regulation application
2992
- * (for example, GDPR).
2993
- */
2994
- triggeredByAnonymizeRequest?: boolean | null;
2995
- /** If present, indicates the action that triggered the event. */
2996
- originatedFrom?: string | null;
2997
- /**
2998
- * A sequence number defining the order of updates to the underlying entity.
2999
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
3000
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
3001
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
3002
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
3003
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
3004
- */
3005
- entityEventSequence?: string | null;
3006
- }
3007
- interface BookingCanceledEnvelope {
3008
- data: BookingCanceled;
3009
- metadata: EventMetadata;
3010
- }
3011
- interface BookingConfirmedEnvelope {
3012
- data: BookingConfirmed;
3013
- metadata: EventMetadata;
3014
- }
3015
- interface BookingCreatedEnvelope {
3016
- entity: Booking;
3017
- metadata: EventMetadata;
3018
- }
3019
- interface BookingDeclinedEnvelope {
3020
- data: BookingDeclined;
3021
- metadata: EventMetadata;
3022
- }
3023
- interface BookingNumberOfParticipantsUpdatedEnvelope {
3024
- data: NumberOfParticipantsUpdated;
3025
- metadata: EventMetadata;
3026
- }
3027
- interface BookingRescheduledEnvelope {
3028
- data: BookingRescheduled;
3029
- metadata: EventMetadata;
3030
- }
3031
- interface BookingUpdatedEnvelope {
3032
- entity: Booking;
3033
- metadata: EventMetadata;
3034
- }
3035
- interface ConfirmOrDeclineBookingOptions {
3036
- /**
3037
- * Current payment status of the booking when using a custom checkout page and
3038
- * not the *eCommerce checkout*
3039
- * ([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)).
3040
- *
3041
- * The booking is declined if there is a double booking conflict and you provide
3042
- * one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
3043
- */
3044
- paymentStatus?: PaymentStatus;
3045
- }
3046
- interface BulkConfirmOrDeclineBookingOptions {
3047
- /** Whether to return the confirmed or declined booking objects. */
3048
- returnEntity?: boolean;
3049
- }
3050
- interface CreateBookingOptions {
3051
- /**
3052
- * Information about whether to notify the customer and
3053
- * the message to send.
3054
- */
3055
- participantNotification?: ParticipantNotification;
3056
- /**
3057
- * Whether to send an SMS reminder to the customer 24 hours before the
3058
- * session starts. The phone number is taken from `contactDetails.phone`.
3059
- * Default: `true`.
3060
- */
3061
- sendSmsReminder?: boolean | null;
3062
- /**
3063
- * Whether to ignore specific standard procedures of the Wix Bookings flow.
3064
- * For example, whether to check availability when creating a booking.
3065
- */
3066
- flowControlSettings?: CreateBookingFlowControlSettings;
3067
- }
3068
- interface BulkCreateBookingOptions {
3069
- /** Whether to return the created bookings. */
3070
- returnFullEntity?: boolean;
3071
- }
3072
- interface RescheduleBookingOptions extends RescheduleBookingOptionsParticipantsInfoOneOf {
3073
- /**
3074
- * Revision number, which increments by 1 each time the booking is rescheduled.
3075
- * To prevent conflicting changes, the current revision must be passed when
3076
- * rescheduling the booking.
3077
- */
3078
- revision: string | null;
3079
- /**
3080
- * Information about whether to notify the customer about the rescheduling and
3081
- * the message to send.
3082
- */
3083
- participantNotification?: ParticipantNotification;
3084
- /**
3085
- * Whether to ignore specific standard procedures of the Wix Bookings flow.
3086
- * For example, whether to check availability when rescheduling a booking.
3087
- */
3088
- flowControlSettings?: RescheduleBookingFlowControlSettings;
3089
- /**
3090
- * Total number of participants. Specify when all participants have booked the
3091
- * same service variant.
3092
- */
3093
- totalParticipants?: number;
3094
- /**
3095
- * Information about the service choices to book. Specify when not all
3096
- * participants have booked the same service variant.
3097
- */
3098
- participantsChoices?: ParticipantChoices;
3099
- }
3100
- /** @oneof */
3101
- interface RescheduleBookingOptionsParticipantsInfoOneOf {
3102
- /**
3103
- * Total number of participants. Specify when all participants have booked the
3104
- * same service variant.
3105
- */
3106
- totalParticipants?: number;
3107
- /**
3108
- * Information about the service choices to book. Specify when not all
3109
- * participants have booked the same service variant.
3110
- */
3111
- participantsChoices?: ParticipantChoices;
3112
- }
3113
- interface ConfirmBookingOptions {
3114
- /**
3115
- * Information about whether to notify the customer about the confirmation and
3116
- * the message to send.
3117
- */
3118
- participantNotification?: ParticipantNotification;
3119
- /**
3120
- * Whether to send an SMS reminder to the customer 24 hours before the
3121
- * session starts. The phone number is taken from `contactDetails.phone`.
3122
- */
3123
- sendSmsReminder?: boolean | null;
3124
- /** Payment status to set for the booking. */
3125
- paymentStatus?: PaymentStatus;
3126
- /** Whether this booking has a conflict with at least 1 other confirmed booking. */
3127
- doubleBooked?: boolean | null;
3128
- /**
3129
- * Whether to ignore specific standard procedures of the Wix Bookings flow.
3130
- * For example, whether to check availability when confirming a booking.
3131
- */
3132
- flowControlSettings?: ConfirmBookingFlowControlSettings;
3133
- }
3134
- interface UpdateExtendedFieldsOptions {
3135
- /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
3136
- namespaceData: Record<string, any> | null;
3137
- }
3138
- interface DeclineBookingOptions {
3139
- /**
3140
- * Information about whether to notify the customer and
3141
- * the message to send.
3142
- */
3143
- participantNotification?: ParticipantNotification;
3144
- /** Payment status to set for the booking. */
3145
- paymentStatus?: PaymentStatus;
3146
- /** Whether this booking has a conflict with at least 1 other confirmed booking. */
3147
- doubleBooked?: boolean | null;
3148
- /**
3149
- * Whether to ignore specific standard procedures of the Wix Bookings flow.
3150
- * For example, whether to refund a declined booking.
3151
- */
3152
- flowControlSettings?: DeclineBookingFlowControlSettings;
3153
- }
3154
- interface CancelBookingOptions {
3155
- /**
3156
- * Information about whether to notify the customer about the cancellation and
3157
- * the message to send.
3158
- */
3159
- participantNotification?: ParticipantNotification;
3160
- /**
3161
- * Whether to ignore specific standard procedures of the Wix Bookings flow.
3162
- * For example, whether to allow a cancellation even though the service's
3163
- * policy doesn't allow it.
3164
- */
3165
- flowControlSettings?: CancelBookingFlowControlSettings;
3166
- /**
3167
- * Revision number, which increments by 1 each time the booking is updated.
3168
- *
3169
- * To prevent conflicting changes, the current revision must be specified when
3170
- * managing the booking.
3171
- */
3172
- revision: string | null;
3173
- }
3174
- interface UpdateNumberOfParticipantsOptions extends UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf {
3175
- /**
3176
- * Revision number, which increments by 1 each time the booking is updated.
3177
- *
3178
- * To prevent conflicting changes, the current revision must be specified
3179
- * when updating the booking.
3180
- */
3181
- revision: string | null;
3182
- /**
3183
- * Total number of participants. Specify when all participants have booked the
3184
- * same service variant.
3185
- */
3186
- totalParticipants?: number;
3187
- /**
3188
- * Information about the service choices the participants have booked. Specify
3189
- * when not all participants have booked the same service variant.
3190
- */
3191
- participantsChoices?: ParticipantChoices;
3192
- }
3193
- /** @oneof */
3194
- interface UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf {
3195
- /**
3196
- * Total number of participants. Specify when all participants have booked the
3197
- * same service variant.
3198
- */
3199
- totalParticipants?: number;
3200
- /**
3201
- * Information about the service choices the participants have booked. Specify
3202
- * when not all participants have booked the same service variant.
3203
- */
3204
- participantsChoices?: ParticipantChoices;
3205
- }
3206
- interface CreateMultiServiceBookingOptions {
3207
- /**
3208
- * Information about whether to notify the customer and
3209
- * the message to send.
3210
- */
3211
- participantNotification?: ParticipantNotification;
3212
- /**
3213
- * Whether to send an SMS reminder to the customer 24 hours before the
3214
- * session starts. The phone number is taken from `contactDetails.phone`.
3215
- *
3216
- * Default: `true`
3217
- */
3218
- sendSmsReminder?: boolean | null;
3219
- /**
3220
- * Whether to ignore specific standard procedures of the Wix Bookings flow.
3221
- * For example, whether to check availability before updating the status.
3222
- */
3223
- flowControlSettings?: CreateBookingFlowControlSettings;
3224
- /** Whether to return the created single-service bookings. */
3225
- returnFullEntity?: boolean;
3226
- /** Multi service booking type. */
3227
- multiServiceBookingType?: MultiServiceBookingType;
3228
- }
3229
- interface RescheduleMultiServiceBookingOptions {
3230
- /**
3231
- * Information about whether to notify the customer and
3232
- * the message to send.
3233
- */
3234
- participantNotification?: ParticipantNotification;
3235
- /**
3236
- * Information about whether specific procedures of the standard Wix Bookings
3237
- * rescheduling flow are changed. For example, whether the availability of
3238
- * the new slot is checked before rescheduling the booking or if you can
3239
- * reschedule the booking even though the rescheduling policy doesn't allow it.
3240
- */
3241
- flowControlSettings?: RescheduleBookingFlowControlSettings;
3242
- /** Whether to return the rescheduled bookings entities. */
3243
- returnFullEntity?: boolean;
3244
- }
3245
- interface CancelMultiServiceBookingOptions {
3246
- /**
3247
- * Information about whether to notify the customer and
3248
- * the message to send.
3249
- */
3250
- participantNotification?: ParticipantNotification;
3251
- /**
3252
- * Information about whether specific procedures of the standard Wix Bookings
3253
- * cancellation flow are changed. For example, whether you can cancel
3254
- * a booking even though the cancellation policy doesn't allow it or whether
3255
- * to issue a refund.
3256
- */
3257
- flowControlSettings?: CancelBookingFlowControlSettings;
3258
- /** Whether to return the canceled single-service bookings. */
3259
- returnFullEntity?: boolean;
3260
- }
3261
- interface MarkMultiServiceBookingAsPendingOptions {
3262
- /** Information about the single-service bookings to mark as `PENDING`. */
3263
- markAsPendingBookingsInfo?: BookingInfo[];
3264
- /**
3265
- * Information about whether to notify the customer and
3266
- * the message to send.
3267
- */
3268
- participantNotification?: ParticipantNotification;
3269
- /**
3270
- * Whether to send an SMS reminder to the customer 24 hours before the
3271
- * session starts. The phone number is taken from `contactDetails.phone`.
3272
- *
3273
- * Default: `true`
3274
- */
3275
- sendSmsReminder?: boolean | null;
3276
- /** Whether this booking has a conflict with at least 1 other confirmed booking. */
3277
- doubleBooked?: boolean | null;
3278
- /** Whether to return the single-service bookings that were marked as `PENDING`. */
3279
- returnFullEntity?: boolean;
3280
- /**
3281
- * Information about whether specific procedures of the standard Wix Bookings
3282
- * creation flow are changed. For example, whether the availability is checked
3283
- * before updating the booking.
3284
- */
3285
- flowControlSettings?: MarkBookingAsPendingFlowControlSettings;
3286
- }
3287
- interface ConfirmMultiServiceBookingOptions {
3288
- /** Information about the single-service bookings to confirm. */
3289
- confirmBookingsInfo?: BookingInfo[];
3290
- /**
3291
- * Information about whether to notify the customer and
3292
- * the message to send.
3293
- */
3294
- participantNotification?: ParticipantNotification;
3295
- /**
3296
- * Whether to send an SMS reminder to the customer 24 hours before the
3297
- * session starts. The phone number is taken from `contactDetails.phone`.
3298
- *
3299
- * Default: `true`
3300
- */
3301
- sendSmsReminder?: boolean | null;
3302
- /** Whether this booking has a conflict with at least 1 other confirmed booking. */
3303
- doubleBooked?: boolean | null;
3304
- /** Whether to return the confirmed single-service bookings. */
3305
- returnFullEntity?: boolean;
3306
- /**
3307
- * Information about whether specific procedures of the standard Wix Bookings
3308
- * confirmation flow are changed. For example, whether the availability is
3309
- * checked before confirming the booking.
3310
- */
3311
- flowControlSettings?: ConfirmBookingFlowControlSettings;
3312
- }
3313
- interface DeclineMultiServiceBookingOptions {
3314
- /** Information about the single-service bookings to decline. */
3315
- declineBookingsInfo?: BookingInfo[];
3316
- /**
3317
- * Information about whether to notify the customer and
3318
- * the message to send.
3319
- */
3320
- participantNotification?: ParticipantNotification;
3321
- /** Whether this booking has a conflict with at least 1 other confirmed booking. */
3322
- doubleBooked?: boolean | null;
3323
- /** Whether to return the declined single-service bookings. */
3324
- returnFullEntity?: boolean;
3325
- /**
3326
- * Information about whether specific procedures of the standard Wix Bookings
3327
- * declining flow are changed. For example, whether to issue a refund.
3328
- */
3329
- flowControlSettings?: DeclineBookingFlowControlSettings;
3330
- }
3331
- interface AddBookingsToMultiServiceBookingOptions {
3332
- /**
3333
- * List of single-service booking IDs and their revision.
3334
- * @maxSize 8
3335
- */
3336
- bookings: BookingIdAndRevision[];
3337
- /** Whether to return the single-service bookings that were added to the multi-service booking. */
3338
- returnFullEntity?: boolean;
3339
- }
3340
- interface RemoveBookingsFromMultiServiceBookingOptions {
3341
- /**
3342
- * List of single-service booking IDs and their revision.
3343
- * @maxSize 8
3344
- */
3345
- bookings?: BookingIdAndRevision[];
3346
- /** Whether to return the single-service bookings. */
3347
- returnFullEntity?: boolean;
3348
- }
3349
-
3350
- export { WebhookIdentityType as $, type ConfirmMultiServiceBookingOptions as A, type BulkConfirmOrDeclineBookingRequestBookingDetails as B, type ConfirmOrDeclineBookingOptions as C, type DeclineBookingOptions as D, type ConfirmMultiServiceBookingResponse as E, type DeclineMultiServiceBookingOptions as F, type GetMultiServiceBookingAvailabilityResponse as G, type DeclineMultiServiceBookingResponse as H, type BulkGetMultiServiceBookingAllowedActionsResponse as I, type MultiServiceBooking as J, type AddBookingsToMultiServiceBookingOptions as K, type AddBookingsToMultiServiceBookingResponse as L, type MarkMultiServiceBookingAsPendingOptions as M, type RemoveBookingsFromMultiServiceBookingOptions as N, type RemoveBookingsFromMultiServiceBookingResponse as O, MultiServiceBookingType as P, LocationType as Q, type RescheduleBookingOptions as R, ValueType as S, BookingStatus as T, type UpdateExtendedFieldsOptions as U, type V2Slot as V, PaymentStatus as W, SelectedPaymentOption as X, Platform as Y, Actor as Z, IdentificationDataIdentityType as _, type ConfirmOrDeclineBookingResponse as a, type V2UpdateNumberOfParticipantsRequest as a$, LocationLocationType as a0, IdentityType as a1, SortOrder as a2, type BookingParticipantsInfoOneOf as a3, type BookedEntity as a4, type BookedEntityItemOneOf as a5, type BookedSlot as a6, type BookedResource as a7, type Location as a8, type BookedSchedule as a9, type DomainEventBodyOneOf as aA, type EntityCreatedEvent as aB, type RestoreInfo as aC, type EntityUpdatedEvent as aD, type EntityDeletedEvent as aE, type ActionEvent as aF, type MessageEnvelope as aG, type WebhooksIdentificationData as aH, type WebhooksIdentificationDataIdOneOf as aI, type V2CreateBookingRequest as aJ, type V2CreateBookingRequestBookableItemOneOf as aK, type V2CreateBookingRequestParticipantsInfoOneOf as aL, type Slot as aM, type SlotResource as aN, type CreateBookingRequestFlowControlSettings as aO, type V2CreateBookingResponse as aP, type V2CancelBookingRequest as aQ, type CancelBookingRequestFlowControlSettings as aR, type V2CancelBookingResponse as aS, type V2RescheduleBookingRequest as aT, type V2RescheduleBookingRequestParticipantsInfoOneOf as aU, type RescheduleBookingRequestFlowControlSettings as aV, type V2RescheduleBookingResponse as aW, type V2ConfirmBookingRequest as aX, type V2ConfirmBookingResponse as aY, type V2DeclineBookingRequest as aZ, type V2DeclineBookingResponse as a_, type ContactDetails as aa, type Address as ab, type AddressStreetOneOf as ac, type StreetAddress as ad, type AddressLocation as ae, type Subdivision as af, type CustomFormField as ag, type BookingSource as ah, type ParticipantNotification as ai, type CommonIdentificationData as aj, type CommonIdentificationDataIdOneOf as ak, type FlowControlSettings as al, type ExtendedFields as am, type ParticipantChoices as an, type ServiceChoices as ao, type ServiceChoice as ap, type ServiceChoiceChoiceOneOf as aq, type Duration as ar, type MultiServiceBookingInfo as as, type BookedAddOn as at, type BookedAddOnAddOnInfoOneOf as au, type BookingFormFilled as av, type SetBookingFormAndSubmissionIdRequest as aw, type SetBookingFormAndSubmissionIdRequestCreatedByOneOf as ax, type SetBookingFormAndSubmissionIdResponse as ay, type DomainEvent as az, type BulkConfirmOrDeclineBookingOptions as b, type UpdateNumberOfParticipantsRequestParticipantsInfoOneOf as b$, type V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf as b0, type V2UpdateNumberOfParticipantsResponse as b1, type ConfirmOrDeclineBookingRequest as b2, type BulkConfirmOrDeclineBookingRequest as b3, type BulkBookingResult as b4, type ItemMetadata as b5, type ApplicationError as b6, type BulkActionMetadata as b7, type BookingChanged as b8, type CreateBookingRequest as b9, type QueryV2 as bA, type QueryV2PagingMethodOneOf as bB, type Sorting as bC, type Paging as bD, type CursorPaging as bE, type QueryBookingsResponse as bF, type PagingMetadataV2 as bG, type Cursors as bH, type ConfirmRequest as bI, type ConfirmResponse as bJ, type ConfirmBookingRequest as bK, type ConfirmBookingFlowControlSettings as bL, type BookingConfirmed as bM, type ConsistentQueryBookingsRequest as bN, type ConsistentQueryBookingsResponse as bO, type SetBookingSessionIdRequest as bP, type SetBookingSessionIdResponse as bQ, type SetBookingSubmissionIdRequest as bR, type SetBookingSubmissionIdResponse as bS, type UpdateExtendedFieldsRequest as bT, type DeclineBookingRequest as bU, type DeclineBookingFlowControlSettings as bV, type BookingDeclined as bW, type CancelBookingRequest as bX, type CancelBookingFlowControlSettings as bY, type BookingCanceled as bZ, type UpdateNumberOfParticipantsRequest as b_, type CreateBookingFlowControlSettings as ba, type UpdateBookingRequest as bb, type UpdateBookingResponse as bc, type LegacyCreateBookingRequest as bd, type LegacyCreateBookingResponse as be, type BulkUpdateBookingRequest as bf, type MaskedBooking as bg, type BulkUpdateBookingResponse as bh, type BulkCreateBookingRequest as bi, type RescheduleBookingRequest as bj, type RescheduleBookingRequestParticipantsInfoOneOf as bk, type SlotSlotResource as bl, type SlotLocation as bm, type RescheduleBookingFlowControlSettings as bn, type BookingRescheduled as bo, type BookingRescheduledPreviousParticipantsInfoOneOf as bp, type IdentificationData as bq, type IdentificationDataIdOneOf as br, type BulkRescheduleBookingRequest as bs, type BulkRescheduleBookingRequestBooking as bt, type SlotBookings as bu, type BulkRescheduleBookingResponse as bv, type BulkUpdateBookedScheduleRequest as bw, type BookingDetails as bx, type BulkUpdateBookedScheduleResponse as by, type QueryBookingsRequest as bz, type BulkConfirmOrDeclineBookingResponse as c, type NumberOfParticipantsUpdated as c0, type NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf as c1, type BulkCalculateAllowedActionsRequest as c2, type BulkCalculateAllowedActionsResponse as c3, type BulkCalculateAllowedActionsResult as c4, type AllowedActions as c5, type GetSlotAvailabilityRequest as c6, type GetSlotAvailabilityResponse as c7, type SlotAvailability as c8, type WaitingList as c9, type DeclineMultiServiceBookingRequest as cA, type BulkGetMultiServiceBookingAllowedActionsRequest as cB, type GetMultiServiceBookingRequest as cC, type GetMultiServiceBookingResponse as cD, type MultiServiceBookingMetadata as cE, type AddBookingsToMultiServiceBookingRequest as cF, type BookingIdAndRevision as cG, type RemoveBookingsFromMultiServiceBookingRequest as cH, type BaseEventMetadata as cI, type EventMetadata as cJ, type BookingCanceledEnvelope as cK, type BookingConfirmedEnvelope as cL, type BookingCreatedEnvelope as cM, type BookingDeclinedEnvelope as cN, type BookingNumberOfParticipantsUpdatedEnvelope as cO, type BookingRescheduledEnvelope as cP, type BookingUpdatedEnvelope as cQ, type RescheduleBookingOptionsParticipantsInfoOneOf as cR, type UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf as cS, type BookingPolicyViolations as ca, type BookingPolicySettings as cb, type AvailableResources as cc, type GetScheduleAvailabilityRequest as cd, type GetScheduleAvailabilityResponse as ce, type ScheduleAvailability as cf, type MarkBookingAsPendingRequest as cg, type MarkBookingAsPendingFlowControlSettings as ch, type MarkBookingAsPendingResponse as ci, type BookingMarkedAsPending as cj, type MigrationCheckIfClashesWithBlockedTimeRequest as ck, type MsidAndBookingId as cl, type MigrationCheckIfClashesWithBlockedTimeResponse as cm, type Clash as cn, type CountBookingsRequest as co, type CountBookingsResponse as cp, type CreateMultiServiceBookingRequest as cq, type BookingResult as cr, type RescheduleMultiServiceBookingRequest as cs, type RescheduleBookingInfoParticipantsInfoOneOf as ct, type GetMultiServiceBookingAvailabilityRequest as cu, type GetMultiServiceBookingAvailabilityResponseBookingInfo as cv, type CancelMultiServiceBookingRequest as cw, type MarkMultiServiceBookingAsPendingRequest as cx, type BookingInfo as cy, type ConfirmMultiServiceBookingRequest as cz, type Booking as d, type CreateBookingOptions as e, type CreateBookingResponse as f, type CreateBookingInfo as g, type BulkCreateBookingOptions as h, type BulkCreateBookingResponse as i, type RescheduleBookingResponse as j, type ConfirmBookingOptions as k, type ConfirmBookingResponse as l, type UpdateExtendedFieldsResponse as m, type DeclineBookingResponse as n, type CancelBookingOptions as o, type CancelBookingResponse as p, type UpdateNumberOfParticipantsOptions as q, type UpdateNumberOfParticipantsResponse as r, type CreateMultiServiceBookingOptions as s, type CreateMultiServiceBookingResponse as t, type RescheduleBookingInfo as u, type RescheduleMultiServiceBookingOptions as v, type RescheduleMultiServiceBookingResponse as w, type CancelMultiServiceBookingOptions as x, type CancelMultiServiceBookingResponse as y, type MarkMultiServiceBookingAsPendingResponse as z };