@wix/auto_sdk_bookings_services 1.0.32 → 1.0.34

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/{es/src/bookings-services-v2-service-services.types.d.ts → bookings-services-v2-service-services.universal-Dn8Flkdi.d.mts} +729 -424
  2. package/build/{cjs/src/bookings-services-v2-service-services.types.d.ts → bookings-services-v2-service-services.universal-Dn8Flkdi.d.ts} +729 -424
  3. package/build/{internal/cjs/src/bookings-services-v2-service-services.public.d.ts → index.d.mts} +62 -30
  4. package/build/{cjs/src/bookings-services-v2-service-services.public.d.ts → index.d.ts} +62 -30
  5. package/build/index.js +3208 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +3124 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{cjs/src/bookings-services-v2-service-services.types.d.ts → bookings-services-v2-service-services.universal-Dn8Flkdi.d.mts} +729 -424
  10. package/build/internal/{es/src/bookings-services-v2-service-services.types.d.ts → bookings-services-v2-service-services.universal-Dn8Flkdi.d.ts} +729 -424
  11. package/build/{es/src/bookings-services-v2-service-services.public.d.ts → internal/index.d.mts} +62 -30
  12. package/build/internal/{es/src/bookings-services-v2-service-services.public.d.ts → index.d.ts} +62 -30
  13. package/build/internal/index.js +3208 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +3124 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +2302 -0
  18. package/build/internal/meta.d.ts +2302 -0
  19. package/build/internal/meta.js +1761 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +1714 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +2302 -0
  24. package/build/meta.d.ts +2302 -0
  25. package/build/meta.js +1761 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +1714 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/bookings-services-v2-service-services.context.d.ts +0 -41
  40. package/build/cjs/src/bookings-services-v2-service-services.context.js +0 -82
  41. package/build/cjs/src/bookings-services-v2-service-services.context.js.map +0 -1
  42. package/build/cjs/src/bookings-services-v2-service-services.http.d.ts +0 -489
  43. package/build/cjs/src/bookings-services-v2-service-services.http.js +0 -1797
  44. package/build/cjs/src/bookings-services-v2-service-services.http.js.map +0 -1
  45. package/build/cjs/src/bookings-services-v2-service-services.meta.d.ts +0 -47
  46. package/build/cjs/src/bookings-services-v2-service-services.meta.js +0 -427
  47. package/build/cjs/src/bookings-services-v2-service-services.meta.js.map +0 -1
  48. package/build/cjs/src/bookings-services-v2-service-services.public.js +0 -304
  49. package/build/cjs/src/bookings-services-v2-service-services.public.js.map +0 -1
  50. package/build/cjs/src/bookings-services-v2-service-services.types.js +0 -349
  51. package/build/cjs/src/bookings-services-v2-service-services.types.js.map +0 -1
  52. package/build/cjs/src/bookings-services-v2-service-services.universal.d.ts +0 -5240
  53. package/build/cjs/src/bookings-services-v2-service-services.universal.js +0 -2252
  54. package/build/cjs/src/bookings-services-v2-service-services.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/bookings-services-v2-service-services.context.d.ts +0 -41
  66. package/build/es/src/bookings-services-v2-service-services.context.js +0 -41
  67. package/build/es/src/bookings-services-v2-service-services.context.js.map +0 -1
  68. package/build/es/src/bookings-services-v2-service-services.http.d.ts +0 -489
  69. package/build/es/src/bookings-services-v2-service-services.http.js +0 -1773
  70. package/build/es/src/bookings-services-v2-service-services.http.js.map +0 -1
  71. package/build/es/src/bookings-services-v2-service-services.meta.d.ts +0 -47
  72. package/build/es/src/bookings-services-v2-service-services.meta.js +0 -380
  73. package/build/es/src/bookings-services-v2-service-services.meta.js.map +0 -1
  74. package/build/es/src/bookings-services-v2-service-services.public.js +0 -242
  75. package/build/es/src/bookings-services-v2-service-services.public.js.map +0 -1
  76. package/build/es/src/bookings-services-v2-service-services.types.js +0 -346
  77. package/build/es/src/bookings-services-v2-service-services.types.js.map +0 -1
  78. package/build/es/src/bookings-services-v2-service-services.universal.d.ts +0 -5240
  79. package/build/es/src/bookings-services-v2-service-services.universal.js +0 -2204
  80. package/build/es/src/bookings-services-v2-service-services.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/bookings-services-v2-service-services.context.d.ts +0 -41
  91. package/build/internal/cjs/src/bookings-services-v2-service-services.context.js +0 -82
  92. package/build/internal/cjs/src/bookings-services-v2-service-services.context.js.map +0 -1
  93. package/build/internal/cjs/src/bookings-services-v2-service-services.http.d.ts +0 -489
  94. package/build/internal/cjs/src/bookings-services-v2-service-services.http.js +0 -1797
  95. package/build/internal/cjs/src/bookings-services-v2-service-services.http.js.map +0 -1
  96. package/build/internal/cjs/src/bookings-services-v2-service-services.meta.d.ts +0 -47
  97. package/build/internal/cjs/src/bookings-services-v2-service-services.meta.js +0 -427
  98. package/build/internal/cjs/src/bookings-services-v2-service-services.meta.js.map +0 -1
  99. package/build/internal/cjs/src/bookings-services-v2-service-services.public.js +0 -304
  100. package/build/internal/cjs/src/bookings-services-v2-service-services.public.js.map +0 -1
  101. package/build/internal/cjs/src/bookings-services-v2-service-services.types.js +0 -349
  102. package/build/internal/cjs/src/bookings-services-v2-service-services.types.js.map +0 -1
  103. package/build/internal/cjs/src/bookings-services-v2-service-services.universal.d.ts +0 -5240
  104. package/build/internal/cjs/src/bookings-services-v2-service-services.universal.js +0 -2252
  105. package/build/internal/cjs/src/bookings-services-v2-service-services.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/bookings-services-v2-service-services.context.d.ts +0 -41
  116. package/build/internal/es/src/bookings-services-v2-service-services.context.js +0 -41
  117. package/build/internal/es/src/bookings-services-v2-service-services.context.js.map +0 -1
  118. package/build/internal/es/src/bookings-services-v2-service-services.http.d.ts +0 -489
  119. package/build/internal/es/src/bookings-services-v2-service-services.http.js +0 -1773
  120. package/build/internal/es/src/bookings-services-v2-service-services.http.js.map +0 -1
  121. package/build/internal/es/src/bookings-services-v2-service-services.meta.d.ts +0 -47
  122. package/build/internal/es/src/bookings-services-v2-service-services.meta.js +0 -380
  123. package/build/internal/es/src/bookings-services-v2-service-services.meta.js.map +0 -1
  124. package/build/internal/es/src/bookings-services-v2-service-services.public.js +0 -242
  125. package/build/internal/es/src/bookings-services-v2-service-services.public.js.map +0 -1
  126. package/build/internal/es/src/bookings-services-v2-service-services.types.js +0 -346
  127. package/build/internal/es/src/bookings-services-v2-service-services.types.js.map +0 -1
  128. package/build/internal/es/src/bookings-services-v2-service-services.universal.d.ts +0 -5240
  129. package/build/internal/es/src/bookings-services-v2-service-services.universal.js +0 -2204
  130. package/build/internal/es/src/bookings-services-v2-service-services.universal.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  /** The `service` object represents an offering that a business provides to its customers. */
2
- export interface Service {
2
+ interface Service {
3
3
  /**
4
4
  * Service ID.
5
5
  * @format GUID
6
6
  * @readonly
7
7
  */
8
- id?: string | null;
8
+ _id?: string | null;
9
9
  /**
10
10
  * Service type.
11
11
  * Learn more about *service types*
@@ -122,12 +122,12 @@ export interface Service {
122
122
  * Date and time the service was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.
123
123
  * @readonly
124
124
  */
125
- createdDate?: Date | null;
125
+ _createdDate?: Date | null;
126
126
  /**
127
127
  * Date and time the service was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.
128
128
  * @readonly
129
129
  */
130
- updatedDate?: Date | null;
130
+ _updatedDate?: Date | null;
131
131
  /**
132
132
  * Revision number, which increments by 1 each time the service is updated. To
133
133
  * prevent conflicting changes, the existing revision must be used when updating
@@ -136,7 +136,7 @@ export interface Service {
136
136
  */
137
137
  revision?: string | null;
138
138
  }
139
- export declare enum ServiceType {
139
+ declare enum ServiceType {
140
140
  /** Appointment-based service. */
141
141
  APPOINTMENT = "APPOINTMENT",
142
142
  /** Class service. */
@@ -144,7 +144,7 @@ export declare enum ServiceType {
144
144
  /** Course service. */
145
145
  COURSE = "COURSE"
146
146
  }
147
- export interface Media {
147
+ interface Media {
148
148
  /**
149
149
  * Media items associated with the service.
150
150
  * @maxSize 100
@@ -155,48 +155,21 @@ export interface Media {
155
155
  /** Cover media associated with the service. */
156
156
  coverMedia?: MediaItem;
157
157
  }
158
- export interface MediaItem extends MediaItemItemOneOf {
158
+ interface MediaItem extends MediaItemItemOneOf {
159
159
  /** Details of the image associated with the service, such as URL and size. */
160
- image?: Image;
160
+ image?: string;
161
161
  }
162
162
  /** @oneof */
163
- export interface MediaItemItemOneOf {
163
+ interface MediaItemItemOneOf {
164
164
  /** Details of the image associated with the service, such as URL and size. */
165
- image?: Image;
165
+ image?: string;
166
166
  }
167
- export interface Image {
168
- /**
169
- * WixMedia image ID. (e.g. "4b3901ffcb8d7ad81a613779d92c9702.jpg")
170
- * @maxLength 2048
171
- */
172
- id?: string;
173
- /**
174
- * Image URL. (similar to image.id e.g. "4b3901ffcb8d7ad81a613779d92c9702.jpg")
175
- * @maxLength 2048
176
- */
177
- url?: string;
178
- /** Original image height. */
179
- height?: number;
180
- /** Original image width. */
181
- width?: number;
182
- /**
183
- * Image alt text.
184
- * @maxLength 134061
185
- */
186
- altText?: string | null;
187
- /**
188
- * Image file name.
189
- * @readonly
190
- * @maxLength 2048
191
- */
192
- filename?: string | null;
193
- }
194
- export interface V2Category {
167
+ interface V2Category {
195
168
  /**
196
169
  * Category ID.
197
170
  * @format GUID
198
171
  */
199
- id?: string;
172
+ _id?: string;
200
173
  /**
201
174
  * Category name.
202
175
  * @maxLength 500
@@ -209,20 +182,20 @@ export interface V2Category {
209
182
  */
210
183
  sortOrder?: number | null;
211
184
  }
212
- export interface Form {
185
+ interface Form {
213
186
  /**
214
187
  * ID of the form associated with the service.
215
188
  * The form information that you submit when booking includes contact details, participants, and other form fields set up for the service.
216
189
  * You can manage the service booking form fields using the Bookings Forms API.
217
190
  * @format GUID
218
191
  */
219
- id?: string;
192
+ _id?: string;
220
193
  }
221
- export interface FormSettings {
194
+ interface FormSettings {
222
195
  /** Whether the service booking form should be hidden from the site. */
223
196
  hidden?: boolean | null;
224
197
  }
225
- export interface Payment extends PaymentRateOneOf {
198
+ interface Payment extends PaymentRateOneOf {
226
199
  /**
227
200
  * The details for the fixed price of the service.
228
201
  *
@@ -255,7 +228,7 @@ export interface Payment extends PaymentRateOneOf {
255
228
  pricingPlanIds?: string[];
256
229
  }
257
230
  /** @oneof */
258
- export interface PaymentRateOneOf {
231
+ interface PaymentRateOneOf {
259
232
  /**
260
233
  * The details for the fixed price of the service.
261
234
  *
@@ -276,7 +249,7 @@ export interface PaymentRateOneOf {
276
249
  */
277
250
  varied?: VariedPayment;
278
251
  }
279
- export declare enum RateType {
252
+ declare enum RateType {
280
253
  /** Unknown rate type. */
281
254
  UNKNOWN_RATE_TYPE = "UNKNOWN_RATE_TYPE",
282
255
  /** The service has a fixed price. */
@@ -288,7 +261,7 @@ export declare enum RateType {
288
261
  /** This service is offered free of charge. */
289
262
  NO_FEE = "NO_FEE"
290
263
  }
291
- export interface FixedPayment {
264
+ interface FixedPayment {
292
265
  /**
293
266
  * The fixed price required to book the service.
294
267
  *
@@ -306,7 +279,7 @@ export interface FixedPayment {
306
279
  * Money.
307
280
  * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
308
281
  */
309
- export interface Money {
282
+ interface Money {
310
283
  /**
311
284
  * Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.
312
285
  * @format DECIMAL_VALUE
@@ -325,14 +298,14 @@ export interface Money {
325
298
  */
326
299
  formattedValue?: string | null;
327
300
  }
328
- export interface CustomPayment {
301
+ interface CustomPayment {
329
302
  /**
330
303
  * A custom description explaining to the customer how to pay for the service.
331
304
  * @maxLength 50
332
305
  */
333
306
  description?: string | null;
334
307
  }
335
- export interface VariedPayment {
308
+ interface VariedPayment {
336
309
  /** The default price for the service without any variants. It will also be used as the default price for any new variant. */
337
310
  defaultPrice?: Money;
338
311
  /**
@@ -352,7 +325,7 @@ export interface VariedPayment {
352
325
  */
353
326
  maxPrice?: Money;
354
327
  }
355
- export interface PaymentOptions {
328
+ interface PaymentOptions {
356
329
  /**
357
330
  * Customers can pay for the service online.
358
331
  * When `true`:
@@ -372,7 +345,7 @@ export interface PaymentOptions {
372
345
  /** Customers can pay for the service using a pricing plan. */
373
346
  pricingPlan?: boolean | null;
374
347
  }
375
- export interface OnlineBooking {
348
+ interface OnlineBooking {
376
349
  /**
377
350
  * Whether the service can be booked online.
378
351
  * When set to `true`, customers can book the service online. Configure the payment options via the `service.payment` property.
@@ -384,11 +357,11 @@ export interface OnlineBooking {
384
357
  /** Multiple customers can request to book the same time slot. This is relevant when `requireManualApproval` is `true`. */
385
358
  allowMultipleRequests?: boolean | null;
386
359
  }
387
- export interface Conferencing {
360
+ interface Conferencing {
388
361
  /** Whether a conference link is generated for the service's sessions. */
389
362
  enabled?: boolean | null;
390
363
  }
391
- export interface V2Location extends V2LocationOptionsOneOf {
364
+ interface V2Location extends V2LocationOptionsOneOf {
392
365
  /** Information about business locations. */
393
366
  business?: BusinessLocationOptions;
394
367
  /** Information about custom locations. */
@@ -398,7 +371,7 @@ export interface V2Location extends V2LocationOptionsOneOf {
398
371
  * @format GUID
399
372
  * @readonly
400
373
  */
401
- id?: string;
374
+ _id?: string;
402
375
  /**
403
376
  * Location type.
404
377
  *
@@ -412,13 +385,13 @@ export interface V2Location extends V2LocationOptionsOneOf {
412
385
  calculatedAddress?: CommonAddress;
413
386
  }
414
387
  /** @oneof */
415
- export interface V2LocationOptionsOneOf {
388
+ interface V2LocationOptionsOneOf {
416
389
  /** Information about business locations. */
417
390
  business?: BusinessLocationOptions;
418
391
  /** Information about custom locations. */
419
392
  custom?: CustomLocationOptions;
420
393
  }
421
- export declare enum LocationTypeEnumLocationType {
394
+ declare enum LocationTypeEnumLocationType {
422
395
  UNKNOWN_LOCATION_TYPE = "UNKNOWN_LOCATION_TYPE",
423
396
  /**
424
397
  * Location set by the business that is not a standard business *location*
@@ -436,11 +409,11 @@ export declare enum LocationTypeEnumLocationType {
436
409
  */
437
410
  CUSTOMER = "CUSTOMER"
438
411
  }
439
- export interface CommonAddress extends CommonAddressStreetOneOf {
412
+ interface CommonAddress extends CommonAddressStreetOneOf {
440
413
  /** Street name and number. */
441
414
  streetAddress?: CommonStreetAddress;
442
415
  /** @maxLength 255 */
443
- addressLine?: string | null;
416
+ addressLine1?: string | null;
444
417
  /**
445
418
  * 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
446
419
  * @format COUNTRY
@@ -465,17 +438,17 @@ export interface CommonAddress extends CommonAddressStreetOneOf {
465
438
  * Full address of the location.
466
439
  * @maxLength 512
467
440
  */
468
- formattedAddress?: string | null;
441
+ formatted?: string | null;
469
442
  }
470
443
  /** @oneof */
471
- export interface CommonAddressStreetOneOf {
444
+ interface CommonAddressStreetOneOf {
472
445
  /** Street name and number. */
473
446
  streetAddress?: CommonStreetAddress;
474
447
  /** @maxLength 255 */
475
448
  addressLine?: string | null;
476
449
  }
477
450
  /** Street address. Includes street name, number, and apartment number in separate fields. */
478
- export interface CommonStreetAddress {
451
+ interface CommonStreetAddress {
479
452
  /**
480
453
  * Street number.
481
454
  * @maxLength 255
@@ -492,20 +465,20 @@ export interface CommonStreetAddress {
492
465
  */
493
466
  apt?: string;
494
467
  }
495
- export interface CommonAddressLocation {
468
+ interface CommonAddressLocation {
496
469
  /** Address latitude. */
497
470
  latitude?: number | null;
498
471
  /** Address longitude. */
499
472
  longitude?: number | null;
500
473
  }
501
- export interface BusinessLocationOptions {
474
+ interface BusinessLocationOptions {
502
475
  /**
503
476
  * ID of the business *location*
504
477
  * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction)).
505
478
  * When setting a business location, specify only the location ID. Other location details are overwritten.
506
479
  * @format GUID
507
480
  */
508
- id?: string;
481
+ _id?: string;
509
482
  /**
510
483
  * Business location name.
511
484
  * @readonly
@@ -535,13 +508,13 @@ export interface BusinessLocationOptions {
535
508
  */
536
509
  phone?: string | null;
537
510
  }
538
- export interface CustomLocationOptions {
511
+ interface CustomLocationOptions {
539
512
  /**
540
513
  * ID of the custom location.
541
514
  * @format GUID
542
515
  * @readonly
543
516
  */
544
- id?: string;
517
+ _id?: string;
545
518
  /** Address of the custom location. */
546
519
  address?: CommonAddress;
547
520
  }
@@ -571,22 +544,22 @@ export interface CustomLocationOptions {
571
544
  *
572
545
  * Partial updates are supported on the main entity level, however in order to update a sub-policy the client needs to provide the whole sub-policy object.
573
546
  */
574
- export interface BookingPolicy {
547
+ interface BookingPolicy {
575
548
  /**
576
549
  * The ID to the policy for the booking.
577
550
  * @format GUID
578
551
  */
579
- id?: string;
552
+ _id?: string;
580
553
  /**
581
554
  * Date and time the policy was created.
582
555
  * @readonly
583
556
  */
584
- createdDate?: Date | null;
557
+ _createdDate?: Date | null;
585
558
  /**
586
559
  * Date and time the policy was updated.
587
560
  * @readonly
588
561
  */
589
- updatedDate?: Date | null;
562
+ _updatedDate?: Date | null;
590
563
  /**
591
564
  * Name of the policy.
592
565
  * @maxLength 400
@@ -655,7 +628,7 @@ export interface BookingPolicy {
655
628
  saveCreditCardPolicy?: SaveCreditCardPolicy;
656
629
  }
657
630
  /** A description of the policy to display to participants. */
658
- export interface PolicyDescription {
631
+ interface PolicyDescription {
659
632
  /**
660
633
  * Whether the description should be displayed. If `true`, the description is displayed.
661
634
  *
@@ -672,7 +645,7 @@ export interface PolicyDescription {
672
645
  description?: string;
673
646
  }
674
647
  /** The policy for limiting early bookings. */
675
- export interface LimitEarlyBookingPolicy {
648
+ interface LimitEarlyBookingPolicy {
676
649
  /**
677
650
  * Whether there is a limit on how early a customer
678
651
  * can book. When `false`, there is no limit on the earliest
@@ -697,7 +670,7 @@ export interface LimitEarlyBookingPolicy {
697
670
  * This policy and the `BookAfterStartPolicy` policy cannot be enabled at the same time. So if this policy
698
671
  * is enabled, `BookAfterStartPolicy` must be disabled.
699
672
  */
700
- export interface LimitLateBookingPolicy {
673
+ interface LimitLateBookingPolicy {
701
674
  /**
702
675
  * Whether there is a limit on how late a customer
703
676
  * can book. When `false`, there is no limit on the latest
@@ -722,7 +695,7 @@ export interface LimitLateBookingPolicy {
722
695
  * This policy and `LimitLateBookingPolicy` cannot be enabled at the same time. So if this policy
723
696
  * is enabled, the `LimitLateBookingPolicy` policy must be disabled.
724
697
  */
725
- export interface BookAfterStartPolicy {
698
+ interface BookAfterStartPolicy {
726
699
  /**
727
700
  * Whether booking is allowed after the start of the schedule. When `true`,
728
701
  * customers can book after the start of the schedule.
@@ -732,7 +705,7 @@ export interface BookAfterStartPolicy {
732
705
  enabled?: boolean;
733
706
  }
734
707
  /** The policy for canceling a booked session. */
735
- export interface CancellationPolicy {
708
+ interface CancellationPolicy {
736
709
  /**
737
710
  * Whether canceling a booking is allowed. When `true`, customers
738
711
  * can cancel the booking.
@@ -757,7 +730,7 @@ export interface CancellationPolicy {
757
730
  latestCancellationInMinutes?: number;
758
731
  }
759
732
  /** The policy for rescheduling a booked session. */
760
- export interface ReschedulePolicy {
733
+ interface ReschedulePolicy {
761
734
  /**
762
735
  * Whether rescheduling a booking is allowed. When `true`, customers
763
736
  * can reschedule the booking.
@@ -782,7 +755,7 @@ export interface ReschedulePolicy {
782
755
  latestRescheduleInMinutes?: number;
783
756
  }
784
757
  /** The policy for the waitlist. */
785
- export interface WaitlistPolicy {
758
+ interface WaitlistPolicy {
786
759
  /**
787
760
  * Whether the session has a waitlist. If `true`, there is a waitlist.
788
761
  *
@@ -807,7 +780,7 @@ export interface WaitlistPolicy {
807
780
  reservationTimeInMinutes?: number;
808
781
  }
809
782
  /** The policy for the maximum number of participants per booking. */
810
- export interface ParticipantsPolicy {
783
+ interface ParticipantsPolicy {
811
784
  /**
812
785
  * Maximum number of participants allowed.
813
786
  *
@@ -818,7 +791,7 @@ export interface ParticipantsPolicy {
818
791
  maxParticipantsPerBooking?: number;
819
792
  }
820
793
  /** The policy regarding the allocation of resources (e.g. staff members). */
821
- export interface ResourcesPolicy {
794
+ interface ResourcesPolicy {
822
795
  /**
823
796
  * `true` if this policy is enabled, `false` otherwise.
824
797
  * When `false` then the client must always select a resource when booking an appointment.
@@ -832,7 +805,7 @@ export interface ResourcesPolicy {
832
805
  */
833
806
  autoAssignAllowed?: boolean;
834
807
  }
835
- export interface CancellationFeePolicy {
808
+ interface CancellationFeePolicy {
836
809
  /**
837
810
  * Whether canceling a booking will result in a cancellation fee
838
811
  *
@@ -851,7 +824,7 @@ export interface CancellationFeePolicy {
851
824
  */
852
825
  autoCollectFeeEnabled?: boolean | null;
853
826
  }
854
- export interface CancellationWindow extends CancellationWindowFeeOneOf {
827
+ interface CancellationWindow extends CancellationWindowFeeOneOf {
855
828
  /** Amount to be charged as a cancellation fee. */
856
829
  amount?: Money;
857
830
  /**
@@ -866,7 +839,7 @@ export interface CancellationWindow extends CancellationWindowFeeOneOf {
866
839
  startInMinutes?: number | null;
867
840
  }
868
841
  /** @oneof */
869
- export interface CancellationWindowFeeOneOf {
842
+ interface CancellationWindowFeeOneOf {
870
843
  /** Amount to be charged as a cancellation fee. */
871
844
  amount?: Money;
872
845
  /**
@@ -875,11 +848,11 @@ export interface CancellationWindowFeeOneOf {
875
848
  */
876
849
  percentage?: string;
877
850
  }
878
- export interface SaveCreditCardPolicy {
851
+ interface SaveCreditCardPolicy {
879
852
  /** Default: `false` */
880
853
  enabled?: boolean;
881
854
  }
882
- export interface V2Schedule {
855
+ interface V2Schedule {
883
856
  /**
884
857
  * ID of the *schedule*
885
858
  * ([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))
@@ -887,7 +860,7 @@ export interface V2Schedule {
887
860
  * @format GUID
888
861
  * @readonly
889
862
  */
890
- id?: string | null;
863
+ _id?: string | null;
891
864
  /**
892
865
  * Start time of the first session in the schedule. For courses only.
893
866
  * @readonly
@@ -901,7 +874,7 @@ export interface V2Schedule {
901
874
  /** Limitations affecting the service availability. */
902
875
  availabilityConstraints?: V2AvailabilityConstraints;
903
876
  }
904
- export interface V2AvailabilityConstraints {
877
+ interface V2AvailabilityConstraints {
905
878
  /**
906
879
  * Calculated list of all supported session durations for the service. For
907
880
  * appointment-based services without varied pricing based on session length, it
@@ -941,7 +914,7 @@ export interface V2AvailabilityConstraints {
941
914
  */
942
915
  timeBetweenSessions?: number;
943
916
  }
944
- export interface Duration {
917
+ interface Duration {
945
918
  /**
946
919
  * The duration of the service in minutes.
947
920
  *
@@ -952,7 +925,7 @@ export interface Duration {
952
925
  */
953
926
  minutes?: number;
954
927
  }
955
- export interface StaffMember {
928
+ interface StaffMember {
956
929
  /**
957
930
  * ID of the staff member providing the service, can be used to retrieve resource information using wix-bookings-backend resources API.
958
931
  * @format GUID
@@ -971,23 +944,23 @@ export interface StaffMember {
971
944
  */
972
945
  mainMedia?: StaffMediaItem;
973
946
  }
974
- export interface StaffMediaItem extends StaffMediaItemItemOneOf {
947
+ interface StaffMediaItem extends StaffMediaItemItemOneOf {
975
948
  /** Details of the image associated with the staff, such as URL and size. */
976
- image?: Image;
949
+ image?: string;
977
950
  }
978
951
  /** @oneof */
979
- export interface StaffMediaItemItemOneOf {
952
+ interface StaffMediaItemItemOneOf {
980
953
  /** Details of the image associated with the staff, such as URL and size. */
981
- image?: Image;
954
+ image?: string;
982
955
  }
983
- export interface StaffMemberDetails {
956
+ interface StaffMemberDetails {
984
957
  /**
985
958
  * Staff members providing the service. For appointments only.
986
959
  * @maxSize 220
987
960
  */
988
961
  staffMembers?: StaffMember[];
989
962
  }
990
- export interface ResourceGroup {
963
+ interface ResourceGroup {
991
964
  /**
992
965
  * An optional resource group ID. If specified, it references a resource group in the resource groups API.
993
966
  * TODO - referenced_entity annotation
@@ -1013,7 +986,7 @@ export interface ResourceGroup {
1013
986
  */
1014
987
  selectableResource?: boolean | null;
1015
988
  }
1016
- export interface ResourceIds {
989
+ interface ResourceIds {
1017
990
  /**
1018
991
  * Values of the resource IDs.
1019
992
  * @maxSize 100
@@ -1021,7 +994,7 @@ export interface ResourceIds {
1021
994
  */
1022
995
  values?: string[];
1023
996
  }
1024
- export interface ServiceResource extends ServiceResourceSelectionOneOf {
997
+ interface ServiceResource extends ServiceResourceSelectionOneOf {
1025
998
  /**
1026
999
  * Details about the required *resource type*
1027
1000
  * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction)).
@@ -1029,14 +1002,14 @@ export interface ServiceResource extends ServiceResourceSelectionOneOf {
1029
1002
  resourceType?: ResourceType;
1030
1003
  }
1031
1004
  /** @oneof */
1032
- export interface ServiceResourceSelectionOneOf {
1005
+ interface ServiceResourceSelectionOneOf {
1033
1006
  }
1034
- export interface ResourceType {
1007
+ interface ResourceType {
1035
1008
  /**
1036
1009
  * The type of the resource.
1037
1010
  * @format GUID
1038
1011
  */
1039
- id?: string | null;
1012
+ _id?: string | null;
1040
1013
  /**
1041
1014
  * The name of the resource type.
1042
1015
  * @readonly
@@ -1045,7 +1018,7 @@ export interface ResourceType {
1045
1018
  */
1046
1019
  name?: string | null;
1047
1020
  }
1048
- export interface Slug {
1021
+ interface Slug {
1049
1022
  /**
1050
1023
  * The unique part of service's URL that identifies the service's information page. For example, `service-1` in `https:/example.com/services/service-1`.
1051
1024
  * @maxLength 500
@@ -1060,38 +1033,26 @@ export interface Slug {
1060
1033
  * Date and time the slug was created. This is a system field.
1061
1034
  * @readonly
1062
1035
  */
1063
- createdDate?: Date | null;
1036
+ _createdDate?: Date | null;
1064
1037
  }
1065
- export interface URLs {
1038
+ interface URLs {
1066
1039
  /**
1067
1040
  * The URL for the service page.
1068
1041
  * @readonly
1069
1042
  */
1070
- servicePage?: PageUrlV2;
1043
+ servicePage?: string;
1071
1044
  /**
1072
1045
  * The URL for the booking entry point. It can be either to the calendar or to the service page.
1073
1046
  * @readonly
1074
1047
  */
1075
- bookingPage?: PageUrlV2;
1048
+ bookingPage?: string;
1076
1049
  /**
1077
1050
  * The URL for the calendar. Can be empty if no calendar exists.
1078
1051
  * @readonly
1079
1052
  */
1080
- calendarPage?: PageUrlV2;
1081
- }
1082
- export interface PageUrlV2 {
1083
- /**
1084
- * The relative path for the page within the site. For example, `/product-page/a-product`.
1085
- * @maxLength 2048
1086
- */
1087
- relativePath?: string;
1088
- /**
1089
- * The page's full URL. For example, `https://mysite.com/product-page/a-product`.
1090
- * @maxLength 2048
1091
- */
1092
- url?: string | null;
1053
+ calendarPage?: string;
1093
1054
  }
1094
- export interface ExtendedFields {
1055
+ interface ExtendedFields {
1095
1056
  /**
1096
1057
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
1097
1058
  * The value of each key is structured according to the schema defined when the extended fields were configured.
@@ -1107,13 +1068,13 @@ export interface ExtendedFields {
1107
1068
  * The search engines use this information for ranking purposes, or to display snippets in the search results.
1108
1069
  * This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.
1109
1070
  */
1110
- export interface SeoSchema {
1071
+ interface SeoSchema {
1111
1072
  /** SEO tag information. */
1112
1073
  tags?: Tag[];
1113
1074
  /** SEO general settings. */
1114
1075
  settings?: Settings;
1115
1076
  }
1116
- export interface Keyword {
1077
+ interface Keyword {
1117
1078
  /** Keyword value. */
1118
1079
  term?: string;
1119
1080
  /** Whether the keyword is the main focus keyword. */
@@ -1124,7 +1085,7 @@ export interface Keyword {
1124
1085
  */
1125
1086
  origin?: string | null;
1126
1087
  }
1127
- export interface Tag {
1088
+ interface Tag {
1128
1089
  /**
1129
1090
  * SEO tag type.
1130
1091
  *
@@ -1146,7 +1107,7 @@ export interface Tag {
1146
1107
  /** Whether the tag is disabled. */
1147
1108
  disabled?: boolean;
1148
1109
  }
1149
- export interface Settings {
1110
+ interface Settings {
1150
1111
  /**
1151
1112
  * Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
1152
1113
  *
@@ -1160,13 +1121,13 @@ export interface Settings {
1160
1121
  */
1161
1122
  keywords?: Keyword[];
1162
1123
  }
1163
- export interface AddOnGroup {
1124
+ interface AddOnGroup {
1164
1125
  /**
1165
1126
  * ID of the group.
1166
1127
  * @readonly
1167
1128
  * @format GUID
1168
1129
  */
1169
- id?: string | null;
1130
+ _id?: string | null;
1170
1131
  /**
1171
1132
  * The name of the group.
1172
1133
  * @maxLength 100
@@ -1189,7 +1150,7 @@ export interface AddOnGroup {
1189
1150
  */
1190
1151
  prompt?: string | null;
1191
1152
  }
1192
- export interface AddOnDetails {
1153
+ interface AddOnDetails {
1193
1154
  /**
1194
1155
  * ID of the AddOn.
1195
1156
  * @format GUID
@@ -1205,7 +1166,7 @@ export interface AddOnDetails {
1205
1166
  * Message for reindexing search data to a given search schema. Support both upsert and delete flows as well as
1206
1167
  * performs context manipulation with adding tenant, provided in message to callscope.
1207
1168
  */
1208
- export interface ReindexMessage extends ReindexMessageActionOneOf {
1169
+ interface ReindexMessage extends ReindexMessageActionOneOf {
1209
1170
  upsert?: Upsert;
1210
1171
  delete?: Delete;
1211
1172
  entityFqdn?: string;
@@ -1215,28 +1176,28 @@ export interface ReindexMessage extends ReindexMessageActionOneOf {
1215
1176
  schema?: Schema;
1216
1177
  }
1217
1178
  /** @oneof */
1218
- export interface ReindexMessageActionOneOf {
1179
+ interface ReindexMessageActionOneOf {
1219
1180
  upsert?: Upsert;
1220
1181
  delete?: Delete;
1221
1182
  }
1222
- export interface Upsert {
1183
+ interface Upsert {
1223
1184
  entityId?: string;
1224
1185
  entityAsJson?: string;
1225
1186
  }
1226
- export interface Delete {
1187
+ interface Delete {
1227
1188
  entityId?: string;
1228
1189
  }
1229
- export interface Schema {
1190
+ interface Schema {
1230
1191
  label?: string;
1231
1192
  clusterName?: string;
1232
1193
  }
1233
- export interface SetCustomSlugEvent {
1194
+ interface SetCustomSlugEvent {
1234
1195
  /** The main slug for the service after the update */
1235
1196
  mainSlug?: Slug;
1236
1197
  }
1237
- export interface ServicesUrlsChanged {
1198
+ interface ServicesUrlsChanged {
1238
1199
  }
1239
- export interface DomainEvent extends DomainEventBodyOneOf {
1200
+ interface DomainEvent extends DomainEventBodyOneOf {
1240
1201
  createdEvent?: EntityCreatedEvent;
1241
1202
  updatedEvent?: EntityUpdatedEvent;
1242
1203
  deletedEvent?: EntityDeletedEvent;
@@ -1245,7 +1206,7 @@ export interface DomainEvent extends DomainEventBodyOneOf {
1245
1206
  * Unique event ID.
1246
1207
  * Allows clients to ignore duplicate webhooks.
1247
1208
  */
1248
- id?: string;
1209
+ _id?: string;
1249
1210
  /**
1250
1211
  * Assumes actions are also always typed to an entity_type
1251
1212
  * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
@@ -1279,36 +1240,34 @@ export interface DomainEvent extends DomainEventBodyOneOf {
1279
1240
  entityEventSequence?: string | null;
1280
1241
  }
1281
1242
  /** @oneof */
1282
- export interface DomainEventBodyOneOf {
1243
+ interface DomainEventBodyOneOf {
1283
1244
  createdEvent?: EntityCreatedEvent;
1284
1245
  updatedEvent?: EntityUpdatedEvent;
1285
1246
  deletedEvent?: EntityDeletedEvent;
1286
1247
  actionEvent?: ActionEvent;
1287
1248
  }
1288
- export interface EntityCreatedEvent {
1289
- entityAsJson?: string;
1290
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1291
- restoreInfo?: RestoreInfo;
1249
+ interface EntityCreatedEvent {
1250
+ entity?: string;
1292
1251
  }
1293
- export interface RestoreInfo {
1252
+ interface RestoreInfo {
1294
1253
  deletedDate?: Date | null;
1295
1254
  }
1296
- export interface EntityUpdatedEvent {
1255
+ interface EntityUpdatedEvent {
1297
1256
  /**
1298
1257
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1299
1258
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1300
1259
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1301
1260
  */
1302
- currentEntityAsJson?: string;
1261
+ currentEntity?: string;
1303
1262
  }
1304
- export interface EntityDeletedEvent {
1263
+ interface EntityDeletedEvent {
1305
1264
  /** Entity that was deleted */
1306
- deletedEntityAsJson?: string | null;
1265
+ deletedEntity?: string | null;
1307
1266
  }
1308
- export interface ActionEvent {
1309
- bodyAsJson?: string;
1267
+ interface ActionEvent {
1268
+ body?: string;
1310
1269
  }
1311
- export interface MessageEnvelope {
1270
+ interface MessageEnvelope {
1312
1271
  /**
1313
1272
  * App instance ID.
1314
1273
  * @format GUID
@@ -1324,7 +1283,7 @@ export interface MessageEnvelope {
1324
1283
  /** Stringify payload. */
1325
1284
  data?: string;
1326
1285
  }
1327
- export interface IdentificationData extends IdentificationDataIdOneOf {
1286
+ interface IdentificationData extends IdentificationDataIdOneOf {
1328
1287
  /**
1329
1288
  * ID of a site visitor that has not logged in to the site.
1330
1289
  * @format GUID
@@ -1349,7 +1308,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
1349
1308
  identityType?: WebhookIdentityType;
1350
1309
  }
1351
1310
  /** @oneof */
1352
- export interface IdentificationDataIdOneOf {
1311
+ interface IdentificationDataIdOneOf {
1353
1312
  /**
1354
1313
  * ID of a site visitor that has not logged in to the site.
1355
1314
  * @format GUID
@@ -1371,14 +1330,14 @@ export interface IdentificationDataIdOneOf {
1371
1330
  */
1372
1331
  appId?: string;
1373
1332
  }
1374
- export declare enum WebhookIdentityType {
1333
+ declare enum WebhookIdentityType {
1375
1334
  UNKNOWN = "UNKNOWN",
1376
1335
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1377
1336
  MEMBER = "MEMBER",
1378
1337
  WIX_USER = "WIX_USER",
1379
1338
  APP = "APP"
1380
1339
  }
1381
- export interface CreateAddOnGroupRequest {
1340
+ interface CreateAddOnGroupRequest {
1382
1341
  /** AddOnGroup to create. */
1383
1342
  addOnGroup?: AddOnGroup;
1384
1343
  /**
@@ -1387,30 +1346,30 @@ export interface CreateAddOnGroupRequest {
1387
1346
  */
1388
1347
  serviceId?: string | null;
1389
1348
  }
1390
- export interface CreateAddOnGroupResponse {
1349
+ interface CreateAddOnGroupResponse {
1391
1350
  /** Created AddOnGroup. */
1392
1351
  addOnGroup?: AddOnGroup;
1393
1352
  }
1394
- export interface DeleteAddOnGroupRequest {
1353
+ interface DeleteAddOnGroupRequest {
1395
1354
  /**
1396
1355
  * ID of the AddOnGroup to delete.
1397
1356
  * @format GUID
1398
1357
  */
1399
1358
  addOnGroupId?: string | null;
1400
1359
  }
1401
- export interface DeleteAddOnGroupResponse {
1360
+ interface DeleteAddOnGroupResponse {
1402
1361
  }
1403
- export interface UpdateAddOnGroupRequest {
1362
+ interface UpdateAddOnGroupRequest {
1404
1363
  /** AddOnGroup to update. */
1405
1364
  addOnGroup?: AddOnGroup;
1406
1365
  /** Explicit list of fields to update. */
1407
1366
  mask?: string[];
1408
1367
  }
1409
- export interface UpdateAddOnGroupResponse {
1368
+ interface UpdateAddOnGroupResponse {
1410
1369
  /** Updated AddOnGroup */
1411
1370
  addOnGroup?: AddOnGroup;
1412
1371
  }
1413
- export interface ListAddOnGroupsByServiceIdRequest {
1372
+ interface ListAddOnGroupsByServiceIdRequest {
1414
1373
  /**
1415
1374
  * ID of the service to retrieve AddOnGroups for.
1416
1375
  * @format GUID
@@ -1423,14 +1382,14 @@ export interface ListAddOnGroupsByServiceIdRequest {
1423
1382
  */
1424
1383
  groupIds?: string[] | null;
1425
1384
  }
1426
- export interface ListAddOnGroupsByServiceIdResponse {
1385
+ interface ListAddOnGroupsByServiceIdResponse {
1427
1386
  /**
1428
1387
  * List of group IDs and their linked AddOns.
1429
1388
  * @maxSize 3
1430
1389
  */
1431
1390
  addOnGroupsDetails?: AddOnGroupDetail[];
1432
1391
  }
1433
- export interface AddOn extends AddOnAddOnInfoOneOf {
1392
+ interface AddOn extends AddOnAddOnInfoOneOf {
1434
1393
  /** The AddOn description. */
1435
1394
  durationInMinutes?: number;
1436
1395
  /** The AddOn max quantity. */
@@ -1449,13 +1408,13 @@ export interface AddOn extends AddOnAddOnInfoOneOf {
1449
1408
  price?: Money;
1450
1409
  }
1451
1410
  /** @oneof */
1452
- export interface AddOnAddOnInfoOneOf {
1411
+ interface AddOnAddOnInfoOneOf {
1453
1412
  /** The AddOn description. */
1454
1413
  durationInMinutes?: number;
1455
1414
  /** The AddOn max quantity. */
1456
1415
  maxQuantity?: number;
1457
1416
  }
1458
- export interface AddOnGroupDetail {
1417
+ interface AddOnGroupDetail {
1459
1418
  /**
1460
1419
  * The group ID.
1461
1420
  * @format GUID
@@ -1479,7 +1438,7 @@ export interface AddOnGroupDetail {
1479
1438
  */
1480
1439
  prompt?: string | null;
1481
1440
  }
1482
- export interface SetAddOnsForGroupRequest {
1441
+ interface SetAddOnsForGroupRequest {
1483
1442
  /**
1484
1443
  * The service ID to set AddOns for.
1485
1444
  * @format GUID
@@ -1498,11 +1457,11 @@ export interface SetAddOnsForGroupRequest {
1498
1457
  */
1499
1458
  addOnIds?: string[] | null;
1500
1459
  }
1501
- export interface SetAddOnsForGroupResponse {
1460
+ interface SetAddOnsForGroupResponse {
1502
1461
  /** The updated AddOnGroup. */
1503
1462
  addOnGroup?: AddOnGroup;
1504
1463
  }
1505
- export interface ValidateAddOnsSelectionRequest {
1464
+ interface ValidateAddOnsSelectionRequest {
1506
1465
  /**
1507
1466
  * The service ID to validate AddOns against.
1508
1467
  * @format GUID
@@ -1521,11 +1480,11 @@ export interface ValidateAddOnsSelectionRequest {
1521
1480
  */
1522
1481
  addOnIds?: string[] | null;
1523
1482
  }
1524
- export interface ValidateAddOnsSelectionResponse {
1483
+ interface ValidateAddOnsSelectionResponse {
1525
1484
  /** The validation result. */
1526
1485
  result?: ValidationResult;
1527
1486
  }
1528
- export interface ValidationResult {
1487
+ interface ValidationResult {
1529
1488
  /** Whether the AddOns selection is valid. */
1530
1489
  valid?: boolean | null;
1531
1490
  /**
@@ -1536,25 +1495,25 @@ export interface ValidationResult {
1536
1495
  */
1537
1496
  message?: string | null;
1538
1497
  }
1539
- export interface CreateServiceRequest {
1498
+ interface CreateServiceRequest {
1540
1499
  /** Service to create. */
1541
1500
  service: Service;
1542
1501
  }
1543
- export interface CreateServiceResponse {
1502
+ interface CreateServiceResponse {
1544
1503
  /** Created service. */
1545
1504
  service?: Service;
1546
1505
  }
1547
- export interface ValidateServiceRequest {
1506
+ interface ValidateServiceRequest {
1548
1507
  /** Service to validate. */
1549
1508
  service?: Service;
1550
1509
  }
1551
- export interface ValidateServiceResponse {
1510
+ interface ValidateServiceResponse {
1552
1511
  /** Whether the service is valid. */
1553
1512
  valid?: boolean;
1554
1513
  /** Field violations. */
1555
1514
  fieldViolations?: FieldViolation[];
1556
1515
  }
1557
- export interface FieldViolation {
1516
+ interface FieldViolation {
1558
1517
  /**
1559
1518
  * Path to the invalid field.
1560
1519
  * @maxLength 2000
@@ -1571,7 +1530,7 @@ export interface FieldViolation {
1571
1530
  */
1572
1531
  ruleName?: string;
1573
1532
  }
1574
- export interface BulkCreateServicesRequest {
1533
+ interface BulkCreateServicesRequest {
1575
1534
  /**
1576
1535
  * Services to create.
1577
1536
  * @maxSize 100
@@ -1580,24 +1539,24 @@ export interface BulkCreateServicesRequest {
1580
1539
  /** Whether to return the created service objects. */
1581
1540
  returnEntity?: boolean;
1582
1541
  }
1583
- export interface BulkCreateServicesResponse {
1542
+ interface BulkCreateServicesResponse {
1584
1543
  /** The result of each service creation. */
1585
1544
  results?: BulkServiceResult[];
1586
1545
  /** Create statistics. */
1587
1546
  bulkActionMetadata?: BulkActionMetadata;
1588
1547
  }
1589
- export interface BulkServiceResult {
1548
+ interface BulkServiceResult {
1590
1549
  /** Update metadata. */
1591
1550
  itemMetadata?: ItemMetadata;
1592
1551
  /** Updated service. */
1593
1552
  item?: Service;
1594
1553
  }
1595
- export interface ItemMetadata {
1554
+ interface ItemMetadata {
1596
1555
  /**
1597
1556
  * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
1598
1557
  * @format GUID
1599
1558
  */
1600
- id?: string | null;
1559
+ _id?: string | null;
1601
1560
  /** Index of the item within the request array. Allows for correlation between request and response items. */
1602
1561
  originalIndex?: number;
1603
1562
  /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
@@ -1605,7 +1564,7 @@ export interface ItemMetadata {
1605
1564
  /** Details about the error in case of failure. */
1606
1565
  error?: ApplicationError;
1607
1566
  }
1608
- export interface ApplicationError {
1567
+ interface ApplicationError {
1609
1568
  /** Error code. */
1610
1569
  code?: string;
1611
1570
  /** Description of the error. */
@@ -1613,7 +1572,7 @@ export interface ApplicationError {
1613
1572
  /** Data related to the error. */
1614
1573
  data?: Record<string, any> | null;
1615
1574
  }
1616
- export interface BulkActionMetadata {
1575
+ interface BulkActionMetadata {
1617
1576
  /** Number of items that were successfully processed. */
1618
1577
  totalSuccesses?: number;
1619
1578
  /** Number of items that couldn't be processed. */
@@ -1621,14 +1580,14 @@ export interface BulkActionMetadata {
1621
1580
  /** Number of failures without details because detailed failure threshold was exceeded. */
1622
1581
  undetailedFailures?: number;
1623
1582
  }
1624
- export interface GetServiceRequest {
1583
+ interface GetServiceRequest {
1625
1584
  /**
1626
1585
  * ID of the service to retrieve.
1627
1586
  * @format GUID
1628
1587
  */
1629
1588
  serviceId: string;
1630
1589
  }
1631
- export declare enum V2RequestedFields {
1590
+ declare enum V2RequestedFields {
1632
1591
  /** Unknown requested field. */
1633
1592
  UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
1634
1593
  /** When passed, `service.staff_members` is returned. */
@@ -1636,22 +1595,22 @@ export declare enum V2RequestedFields {
1636
1595
  /** When passed, `service.service_resources.resource_type.name` is returned. */
1637
1596
  RESOURCE_TYPE_DETAILS = "RESOURCE_TYPE_DETAILS"
1638
1597
  }
1639
- export interface GetServiceResponse {
1598
+ interface GetServiceResponse {
1640
1599
  /** Retrieved service. */
1641
1600
  service?: Service;
1642
1601
  }
1643
- export interface GetServiceAvailabilityConstraintsRequest {
1602
+ interface GetServiceAvailabilityConstraintsRequest {
1644
1603
  /**
1645
1604
  * ID of the service to retrieve.
1646
1605
  * @format GUID
1647
1606
  */
1648
1607
  serviceId?: string;
1649
1608
  }
1650
- export interface GetServiceAvailabilityConstraintsResponse {
1609
+ interface GetServiceAvailabilityConstraintsResponse {
1651
1610
  /** The retrieved availability constraints of the service. */
1652
1611
  constraints?: ServiceAvailabilityConstraints;
1653
1612
  }
1654
- export interface ServiceAvailabilityConstraints {
1613
+ interface ServiceAvailabilityConstraints {
1655
1614
  /**
1656
1615
  * The booking policy.
1657
1616
  * @readonly
@@ -1701,7 +1660,7 @@ export interface ServiceAvailabilityConstraints {
1701
1660
  onlineBooking?: OnlineBooking;
1702
1661
  }
1703
1662
  /** The time between available slots' start times. For example, For 5 minute slots, 3:00, 3:05, 3:15 etc. For 1 hour slots, 3:00, 4:00, 5:00 etc. */
1704
- export interface V1SplitInterval {
1663
+ interface V1SplitInterval {
1705
1664
  /**
1706
1665
  * Whether the slot duration is used as the split interval value.
1707
1666
  * If `same_as_duration` is `true`, the `value_in_minutes` is the sum of the first duration in
@@ -1711,15 +1670,15 @@ export interface V1SplitInterval {
1711
1670
  /** Number of minutes between available slots' start times when `same_as_duration` is `false`. */
1712
1671
  valueInMinutes?: number | null;
1713
1672
  }
1714
- export interface UpdateServiceRequest {
1673
+ interface UpdateServiceRequest {
1715
1674
  /** Service to update. */
1716
1675
  service: Service;
1717
1676
  }
1718
- export interface UpdateServiceResponse {
1677
+ interface UpdateServiceResponse {
1719
1678
  /** Updated service. */
1720
1679
  service?: Service;
1721
1680
  }
1722
- export interface BulkUpdateServicesRequest {
1681
+ interface BulkUpdateServicesRequest {
1723
1682
  /**
1724
1683
  * Services to update.
1725
1684
  * @maxSize 100
@@ -1728,25 +1687,25 @@ export interface BulkUpdateServicesRequest {
1728
1687
  /** Whether to include the updated services in the response. Default: `false` */
1729
1688
  returnEntity?: boolean;
1730
1689
  }
1731
- export interface MaskedService {
1690
+ interface MaskedService {
1732
1691
  /** Service to update. */
1733
1692
  service?: Service;
1734
1693
  /** Explicit list of fields to update. */
1735
1694
  mask?: string[];
1736
1695
  }
1737
- export interface BulkUpdateServicesResponse {
1696
+ interface BulkUpdateServicesResponse {
1738
1697
  /** The result of each service update. */
1739
1698
  results?: BulkServiceResult[];
1740
1699
  /** Update statistics. */
1741
1700
  bulkActionMetadata?: BulkActionMetadata;
1742
1701
  }
1743
- export interface BulkUpdateServicesByFilterRequest {
1702
+ interface BulkUpdateServicesByFilterRequest {
1744
1703
  /** Filter to identify the services to update. */
1745
1704
  filter: Record<string, any> | null;
1746
1705
  /** Service to update. */
1747
1706
  service: Service;
1748
1707
  }
1749
- export interface BulkUpdateServicesByFilterResponse {
1708
+ interface BulkUpdateServicesByFilterResponse {
1750
1709
  /**
1751
1710
  * ID of the service update job.
1752
1711
  *
@@ -1755,7 +1714,7 @@ export interface BulkUpdateServicesByFilterResponse {
1755
1714
  */
1756
1715
  jobId?: string;
1757
1716
  }
1758
- export interface DeleteServiceRequest {
1717
+ interface DeleteServiceRequest {
1759
1718
  /**
1760
1719
  * ID of the service to delete.
1761
1720
  * @format GUID
@@ -1773,7 +1732,7 @@ export interface DeleteServiceRequest {
1773
1732
  */
1774
1733
  participantNotification?: ParticipantNotification;
1775
1734
  }
1776
- export interface ParticipantNotification {
1735
+ interface ParticipantNotification {
1777
1736
  /**
1778
1737
  * Whether to send the message about the changes to the customer.
1779
1738
  *
@@ -1786,9 +1745,9 @@ export interface ParticipantNotification {
1786
1745
  */
1787
1746
  message?: string | null;
1788
1747
  }
1789
- export interface DeleteServiceResponse {
1748
+ interface DeleteServiceResponse {
1790
1749
  }
1791
- export interface BulkDeleteServicesRequest {
1750
+ interface BulkDeleteServicesRequest {
1792
1751
  /**
1793
1752
  * IDs of the services to delete.
1794
1753
  * @format GUID
@@ -1807,13 +1766,13 @@ export interface BulkDeleteServicesRequest {
1807
1766
  */
1808
1767
  participantNotification?: ParticipantNotification;
1809
1768
  }
1810
- export interface BulkDeleteServicesResponse {
1769
+ interface BulkDeleteServicesResponse {
1811
1770
  /** The result of each service removal. */
1812
1771
  results?: BulkServiceResult[];
1813
1772
  /** Delete statistics. */
1814
1773
  bulkActionMetadata?: BulkActionMetadata;
1815
1774
  }
1816
- export interface BulkDeleteServicesByFilterRequest {
1775
+ interface BulkDeleteServicesByFilterRequest {
1817
1776
  /** Filter to identify the services that need to be deleted. */
1818
1777
  filter: Record<string, any> | null;
1819
1778
  /**
@@ -1825,7 +1784,7 @@ export interface BulkDeleteServicesByFilterRequest {
1825
1784
  /** Whether to notify participants about the change and an optional custom message. */
1826
1785
  participantNotification?: ParticipantNotification;
1827
1786
  }
1828
- export interface BulkDeleteServicesByFilterResponse {
1787
+ interface BulkDeleteServicesByFilterResponse {
1829
1788
  /**
1830
1789
  * ID of the service deletion job.
1831
1790
  *
@@ -1834,11 +1793,11 @@ export interface BulkDeleteServicesByFilterResponse {
1834
1793
  */
1835
1794
  jobId?: string;
1836
1795
  }
1837
- export interface QueryServicesRequest {
1796
+ interface QueryServicesRequest {
1838
1797
  /** WQL expression. */
1839
1798
  query: QueryV2;
1840
1799
  }
1841
- export interface QueryV2 extends QueryV2PagingMethodOneOf {
1800
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
1842
1801
  /** Paging options to limit and skip the number of items. */
1843
1802
  paging?: Paging;
1844
1803
  /**
@@ -1865,11 +1824,11 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
1865
1824
  sort?: Sorting[];
1866
1825
  }
1867
1826
  /** @oneof */
1868
- export interface QueryV2PagingMethodOneOf {
1827
+ interface QueryV2PagingMethodOneOf {
1869
1828
  /** Paging options to limit and skip the number of items. */
1870
1829
  paging?: Paging;
1871
1830
  }
1872
- export interface Sorting {
1831
+ interface Sorting {
1873
1832
  /**
1874
1833
  * Name of the field to sort by.
1875
1834
  * @maxLength 512
@@ -1878,17 +1837,17 @@ export interface Sorting {
1878
1837
  /** Sort order. */
1879
1838
  order?: SortOrder;
1880
1839
  }
1881
- export declare enum SortOrder {
1840
+ declare enum SortOrder {
1882
1841
  ASC = "ASC",
1883
1842
  DESC = "DESC"
1884
1843
  }
1885
- export interface Paging {
1844
+ interface Paging {
1886
1845
  /** Number of items to load. */
1887
1846
  limit?: number | null;
1888
1847
  /** Number of items to skip in the current sort order. */
1889
1848
  offset?: number | null;
1890
1849
  }
1891
- export interface CursorPaging {
1850
+ interface CursorPaging {
1892
1851
  /**
1893
1852
  * Number of items to load.
1894
1853
  * @max 100
@@ -1904,13 +1863,13 @@ export interface CursorPaging {
1904
1863
  */
1905
1864
  cursor?: string | null;
1906
1865
  }
1907
- export interface QueryServicesResponse {
1866
+ interface QueryServicesResponse {
1908
1867
  /** The retrieved services. */
1909
1868
  services?: Service[];
1910
1869
  /** Paging metadata, including offset and count. */
1911
1870
  pagingMetadata?: PagingMetadataV2;
1912
1871
  }
1913
- export interface PagingMetadataV2 {
1872
+ interface PagingMetadataV2 {
1914
1873
  /** Number of items returned in the response. */
1915
1874
  count?: number | null;
1916
1875
  /** Offset that was requested. */
@@ -1922,7 +1881,7 @@ export interface PagingMetadataV2 {
1922
1881
  /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
1923
1882
  cursors?: Cursors;
1924
1883
  }
1925
- export interface Cursors {
1884
+ interface Cursors {
1926
1885
  /**
1927
1886
  * Cursor pointing to next page in the list of results.
1928
1887
  * @maxLength 16000
@@ -1934,11 +1893,11 @@ export interface Cursors {
1934
1893
  */
1935
1894
  prev?: string | null;
1936
1895
  }
1937
- export interface SearchServicesRequest {
1896
+ interface SearchServicesRequest {
1938
1897
  /** WQL, search or aggregation expression. */
1939
1898
  search: CursorSearch;
1940
1899
  }
1941
- export interface CursorSearch extends CursorSearchPagingMethodOneOf {
1900
+ interface CursorSearch extends CursorSearchPagingMethodOneOf {
1942
1901
  /**
1943
1902
  * Cursor pointing to page of results.
1944
1903
  * When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided.
@@ -1971,14 +1930,14 @@ export interface CursorSearch extends CursorSearchPagingMethodOneOf {
1971
1930
  timeZone?: string | null;
1972
1931
  }
1973
1932
  /** @oneof */
1974
- export interface CursorSearchPagingMethodOneOf {
1933
+ interface CursorSearchPagingMethodOneOf {
1975
1934
  /**
1976
1935
  * Cursor pointing to page of results.
1977
1936
  * When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided.
1978
1937
  */
1979
1938
  cursorPaging?: CursorPaging;
1980
1939
  }
1981
- export interface Aggregation extends AggregationKindOneOf {
1940
+ interface Aggregation extends AggregationKindOneOf {
1982
1941
  /** Value aggregation */
1983
1942
  value?: ValueAggregation;
1984
1943
  /** Range aggregation */
@@ -2010,7 +1969,7 @@ export interface Aggregation extends AggregationKindOneOf {
2010
1969
  groupBy?: GroupByAggregation;
2011
1970
  }
2012
1971
  /** @oneof */
2013
- export interface AggregationKindOneOf {
1972
+ interface AggregationKindOneOf {
2014
1973
  /** Value aggregation */
2015
1974
  value?: ValueAggregation;
2016
1975
  /** Range aggregation */
@@ -2022,38 +1981,38 @@ export interface AggregationKindOneOf {
2022
1981
  /** Nested aggregation */
2023
1982
  nested?: NestedAggregation;
2024
1983
  }
2025
- export interface RangeBucket {
1984
+ interface RangeBucket {
2026
1985
  /** Inclusive lower bound of the range. Required if to is not given. */
2027
1986
  from?: number | null;
2028
1987
  /** Exclusive upper bound of the range. Required if from is not given. */
2029
1988
  to?: number | null;
2030
1989
  }
2031
- export declare enum SortType {
1990
+ declare enum SortType {
2032
1991
  COUNT = "COUNT",
2033
1992
  VALUE = "VALUE"
2034
1993
  }
2035
- export declare enum SortDirection {
1994
+ declare enum SortDirection {
2036
1995
  DESC = "DESC",
2037
1996
  ASC = "ASC"
2038
1997
  }
2039
- export declare enum MissingValues {
1998
+ declare enum MissingValues {
2040
1999
  EXCLUDE = "EXCLUDE",
2041
2000
  INCLUDE = "INCLUDE"
2042
2001
  }
2043
- export interface IncludeMissingValuesOptions {
2002
+ interface IncludeMissingValuesOptions {
2044
2003
  /**
2045
2004
  * can specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ...
2046
2005
  * @maxLength 20
2047
2006
  */
2048
2007
  addToBucket?: string;
2049
2008
  }
2050
- export declare enum ScalarType {
2009
+ declare enum ScalarType {
2051
2010
  UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
2052
2011
  COUNT_DISTINCT = "COUNT_DISTINCT",
2053
2012
  MIN = "MIN",
2054
2013
  MAX = "MAX"
2055
2014
  }
2056
- export interface ValueAggregation extends ValueAggregationOptionsOneOf {
2015
+ interface ValueAggregation extends ValueAggregationOptionsOneOf {
2057
2016
  /** options for including missing values */
2058
2017
  includeOptions?: IncludeMissingValuesOptions;
2059
2018
  /** Should sort by number of matches or value of the field */
@@ -2066,33 +2025,33 @@ export interface ValueAggregation extends ValueAggregationOptionsOneOf {
2066
2025
  missingValues?: MissingValues;
2067
2026
  }
2068
2027
  /** @oneof */
2069
- export interface ValueAggregationOptionsOneOf {
2028
+ interface ValueAggregationOptionsOneOf {
2070
2029
  /** options for including missing values */
2071
2030
  includeOptions?: IncludeMissingValuesOptions;
2072
2031
  }
2073
- export declare enum NestedAggregationType {
2032
+ declare enum NestedAggregationType {
2074
2033
  UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
2075
2034
  VALUE = "VALUE",
2076
2035
  RANGE = "RANGE",
2077
2036
  SCALAR = "SCALAR",
2078
2037
  DATE_HISTOGRAM = "DATE_HISTOGRAM"
2079
2038
  }
2080
- export interface RangeAggregation {
2039
+ interface RangeAggregation {
2081
2040
  /**
2082
2041
  * Range buckets
2083
2042
  * @maxSize 50
2084
2043
  */
2085
2044
  buckets?: RangeBucket[];
2086
2045
  }
2087
- export interface ScalarAggregation {
2046
+ interface ScalarAggregation {
2088
2047
  /** Define the operator for the scalar aggregation */
2089
2048
  type?: ScalarType;
2090
2049
  }
2091
- export interface DateHistogramAggregation {
2050
+ interface DateHistogramAggregation {
2092
2051
  /** Interval for date histogram aggregation */
2093
2052
  interval?: DateHistogramAggregationInterval;
2094
2053
  }
2095
- export declare enum DateHistogramAggregationInterval {
2054
+ declare enum DateHistogramAggregationInterval {
2096
2055
  /** Unknown interval. */
2097
2056
  UNKNOWN_INTERVAL = "UNKNOWN_INTERVAL",
2098
2057
  /** Yearly interval. */
@@ -2110,7 +2069,7 @@ export declare enum DateHistogramAggregationInterval {
2110
2069
  /** Second interval. */
2111
2070
  SECOND = "SECOND"
2112
2071
  }
2113
- export interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
2072
+ interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
2114
2073
  /** Value aggregation */
2115
2074
  value?: ValueAggregation;
2116
2075
  /** Range aggregation */
@@ -2133,7 +2092,7 @@ export interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
2133
2092
  fieldPath?: string;
2134
2093
  }
2135
2094
  /** @oneof */
2136
- export interface NestedAggregationItemKindOneOf {
2095
+ interface NestedAggregationItemKindOneOf {
2137
2096
  /** Value aggregation */
2138
2097
  value?: ValueAggregation;
2139
2098
  /** Range aggregation */
@@ -2143,7 +2102,7 @@ export interface NestedAggregationItemKindOneOf {
2143
2102
  /** Date histogram aggregation */
2144
2103
  dateHistogram?: DateHistogramAggregation;
2145
2104
  }
2146
- export declare enum AggregationType {
2105
+ declare enum AggregationType {
2147
2106
  UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
2148
2107
  VALUE = "VALUE",
2149
2108
  RANGE = "RANGE",
@@ -2152,7 +2111,7 @@ export declare enum AggregationType {
2152
2111
  NESTED = "NESTED"
2153
2112
  }
2154
2113
  /** nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */
2155
- export interface NestedAggregation {
2114
+ interface NestedAggregation {
2156
2115
  /**
2157
2116
  * Flattened list of aggregations, where each next aggregation is nested within previous one
2158
2117
  * @minSize 2
@@ -2160,7 +2119,7 @@ export interface NestedAggregation {
2160
2119
  */
2161
2120
  nestedAggregations?: NestedAggregationItem[];
2162
2121
  }
2163
- export interface GroupByAggregation extends GroupByAggregationKindOneOf {
2122
+ interface GroupByAggregation extends GroupByAggregationKindOneOf {
2164
2123
  /** Value aggregation configuration */
2165
2124
  value?: ValueAggregation;
2166
2125
  /**
@@ -2175,11 +2134,11 @@ export interface GroupByAggregation extends GroupByAggregationKindOneOf {
2175
2134
  fieldPath?: string;
2176
2135
  }
2177
2136
  /** @oneof */
2178
- export interface GroupByAggregationKindOneOf {
2137
+ interface GroupByAggregationKindOneOf {
2179
2138
  /** Value aggregation configuration */
2180
2139
  value?: ValueAggregation;
2181
2140
  }
2182
- export interface SearchDetails {
2141
+ interface SearchDetails {
2183
2142
  /** Boolean search mode */
2184
2143
  mode?: Mode;
2185
2144
  /**
@@ -2196,13 +2155,13 @@ export interface SearchDetails {
2196
2155
  /** Flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
2197
2156
  fuzzy?: boolean;
2198
2157
  }
2199
- export declare enum Mode {
2158
+ declare enum Mode {
2200
2159
  /** Any */
2201
2160
  OR = "OR",
2202
2161
  /** All */
2203
2162
  AND = "AND"
2204
2163
  }
2205
- export interface SearchServicesResponse {
2164
+ interface SearchServicesResponse {
2206
2165
  /** The retrieved services. */
2207
2166
  services?: Service[];
2208
2167
  /** Cursor paging metadata */
@@ -2210,7 +2169,7 @@ export interface SearchServicesResponse {
2210
2169
  /** Response aggregation data */
2211
2170
  aggregationData?: AggregationData;
2212
2171
  }
2213
- export interface CursorPagingMetadata {
2172
+ interface CursorPagingMetadata {
2214
2173
  /** Number of items returned in the response. */
2215
2174
  count?: number | null;
2216
2175
  /** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
@@ -2222,14 +2181,14 @@ export interface CursorPagingMetadata {
2222
2181
  */
2223
2182
  hasNext?: boolean | null;
2224
2183
  }
2225
- export interface AggregationData {
2184
+ interface AggregationData {
2226
2185
  /**
2227
2186
  * key = aggregation name (as derived from search request)
2228
2187
  * @maxSize 10000
2229
2188
  */
2230
2189
  results?: AggregationResults[];
2231
2190
  }
2232
- export interface ValueAggregationResult {
2191
+ interface ValueAggregationResult {
2233
2192
  /**
2234
2193
  * Value of the field
2235
2194
  * @maxLength 100
@@ -2238,7 +2197,7 @@ export interface ValueAggregationResult {
2238
2197
  /** Count of entities with this value */
2239
2198
  count?: number;
2240
2199
  }
2241
- export interface RangeAggregationResult {
2200
+ interface RangeAggregationResult {
2242
2201
  /** Inclusive lower bound of the range */
2243
2202
  from?: number | null;
2244
2203
  /** Exclusive upper bound of the range */
@@ -2246,7 +2205,7 @@ export interface RangeAggregationResult {
2246
2205
  /** Count of entities in this range */
2247
2206
  count?: number;
2248
2207
  }
2249
- export interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
2208
+ interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
2250
2209
  /** Value aggregation results */
2251
2210
  values?: ValueResults;
2252
2211
  /** Range aggregation results */
@@ -2267,7 +2226,7 @@ export interface NestedAggregationResults extends NestedAggregationResultsResult
2267
2226
  fieldPath?: string;
2268
2227
  }
2269
2228
  /** @oneof */
2270
- export interface NestedAggregationResultsResultOneOf {
2229
+ interface NestedAggregationResultsResultOneOf {
2271
2230
  /** Value aggregation results */
2272
2231
  values?: ValueResults;
2273
2232
  /** Range aggregation results */
@@ -2275,27 +2234,27 @@ export interface NestedAggregationResultsResultOneOf {
2275
2234
  /** Scalar aggregation results */
2276
2235
  scalar?: AggregationResultsScalarResult;
2277
2236
  }
2278
- export interface ValueResults {
2237
+ interface ValueResults {
2279
2238
  /**
2280
2239
  * List of value aggregations
2281
2240
  * @maxSize 250
2282
2241
  */
2283
2242
  results?: ValueAggregationResult[];
2284
2243
  }
2285
- export interface RangeResults {
2244
+ interface RangeResults {
2286
2245
  /**
2287
2246
  * List of ranges returned in same order as requested
2288
2247
  * @maxSize 50
2289
2248
  */
2290
2249
  results?: RangeAggregationResult[];
2291
2250
  }
2292
- export interface AggregationResultsScalarResult {
2251
+ interface AggregationResultsScalarResult {
2293
2252
  /** Type of scalar aggregation */
2294
2253
  type?: ScalarType;
2295
2254
  /** Value of the scalar aggregation */
2296
2255
  value?: number;
2297
2256
  }
2298
- export interface NestedValueAggregationResult {
2257
+ interface NestedValueAggregationResult {
2299
2258
  /**
2300
2259
  * Value of the field
2301
2260
  * @maxLength 1000
@@ -2304,7 +2263,7 @@ export interface NestedValueAggregationResult {
2304
2263
  /** Nested aggregations */
2305
2264
  nestedResults?: NestedAggregationResults;
2306
2265
  }
2307
- export interface ValueResult {
2266
+ interface ValueResult {
2308
2267
  /**
2309
2268
  * Value of the field
2310
2269
  * @maxLength 1000
@@ -2313,7 +2272,7 @@ export interface ValueResult {
2313
2272
  /** Count of entities with this value */
2314
2273
  count?: number | null;
2315
2274
  }
2316
- export interface RangeResult {
2275
+ interface RangeResult {
2317
2276
  /** Inclusive lower bound of the range */
2318
2277
  from?: number | null;
2319
2278
  /** Exclusive upper bound of the range */
@@ -2321,11 +2280,11 @@ export interface RangeResult {
2321
2280
  /** Count of entities in this range */
2322
2281
  count?: number | null;
2323
2282
  }
2324
- export interface ScalarResult {
2283
+ interface ScalarResult {
2325
2284
  /** Value of the scalar aggregation */
2326
2285
  value?: number;
2327
2286
  }
2328
- export interface NestedResultValue extends NestedResultValueResultOneOf {
2287
+ interface NestedResultValue extends NestedResultValueResultOneOf {
2329
2288
  /** Value aggregation result */
2330
2289
  value?: ValueResult;
2331
2290
  /** Range aggregation result */
@@ -2336,7 +2295,7 @@ export interface NestedResultValue extends NestedResultValueResultOneOf {
2336
2295
  dateHistogram?: ValueResult;
2337
2296
  }
2338
2297
  /** @oneof */
2339
- export interface NestedResultValueResultOneOf {
2298
+ interface NestedResultValueResultOneOf {
2340
2299
  /** Value aggregation result */
2341
2300
  value?: ValueResult;
2342
2301
  /** Range aggregation result */
@@ -2346,11 +2305,11 @@ export interface NestedResultValueResultOneOf {
2346
2305
  /** Date histogram aggregation result */
2347
2306
  dateHistogram?: ValueResult;
2348
2307
  }
2349
- export interface Results {
2308
+ interface Results {
2350
2309
  /** List of nested aggregations */
2351
2310
  results?: Record<string, NestedResultValue>;
2352
2311
  }
2353
- export interface DateHistogramResult {
2312
+ interface DateHistogramResult {
2354
2313
  /**
2355
2314
  * Date in ISO 8601 format
2356
2315
  * @maxLength 100
@@ -2359,14 +2318,14 @@ export interface DateHistogramResult {
2359
2318
  /** Count of documents in the bucket */
2360
2319
  count?: number;
2361
2320
  }
2362
- export interface GroupByValueResults {
2321
+ interface GroupByValueResults {
2363
2322
  /**
2364
2323
  * List of value aggregations
2365
2324
  * @maxSize 1000
2366
2325
  */
2367
2326
  results?: NestedValueAggregationResult[];
2368
2327
  }
2369
- export interface DateHistogramResults {
2328
+ interface DateHistogramResults {
2370
2329
  /**
2371
2330
  * List of date histogram aggregations
2372
2331
  * @maxSize 200
@@ -2377,14 +2336,14 @@ export interface DateHistogramResults {
2377
2336
  * results of `NESTED` aggregation type in a flattened form
2378
2337
  * aggregations in resulting array are keyed by requested aggregation `name`.
2379
2338
  */
2380
- export interface NestedResults {
2339
+ interface NestedResults {
2381
2340
  /**
2382
2341
  * List of nested aggregations
2383
2342
  * @maxSize 1000
2384
2343
  */
2385
2344
  results?: Results[];
2386
2345
  }
2387
- export interface AggregationResults extends AggregationResultsResultOneOf {
2346
+ interface AggregationResults extends AggregationResultsResultOneOf {
2388
2347
  /** Value aggregation results */
2389
2348
  values?: ValueResults;
2390
2349
  /** Range aggregation results */
@@ -2411,7 +2370,7 @@ export interface AggregationResults extends AggregationResultsResultOneOf {
2411
2370
  fieldPath?: string;
2412
2371
  }
2413
2372
  /** @oneof */
2414
- export interface AggregationResultsResultOneOf {
2373
+ interface AggregationResultsResultOneOf {
2415
2374
  /** Value aggregation results */
2416
2375
  values?: ValueResults;
2417
2376
  /** Range aggregation results */
@@ -2425,7 +2384,7 @@ export interface AggregationResultsResultOneOf {
2425
2384
  /** Nested aggregation results */
2426
2385
  nested?: NestedResults;
2427
2386
  }
2428
- export interface QueryPoliciesRequest {
2387
+ interface QueryPoliciesRequest {
2429
2388
  /**
2430
2389
  * Information about filters, paging, and sorting. See the article about
2431
2390
  * booking policy filters
@@ -2434,7 +2393,7 @@ export interface QueryPoliciesRequest {
2434
2393
  */
2435
2394
  query: CursorQuery;
2436
2395
  }
2437
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
2396
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
2438
2397
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
2439
2398
  cursorPaging?: CursorPaging;
2440
2399
  /**
@@ -2454,17 +2413,17 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
2454
2413
  sort?: Sorting[];
2455
2414
  }
2456
2415
  /** @oneof */
2457
- export interface CursorQueryPagingMethodOneOf {
2416
+ interface CursorQueryPagingMethodOneOf {
2458
2417
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
2459
2418
  cursorPaging?: CursorPaging;
2460
2419
  }
2461
- export interface QueryPoliciesResponse {
2420
+ interface QueryPoliciesResponse {
2462
2421
  /** Retrieved booking policies and information about the services using them. */
2463
2422
  bookingPolicies?: BookingPolicyWithServices[];
2464
2423
  /** Paging metadata. */
2465
2424
  pagingMetadata?: CursorPagingMetadata;
2466
2425
  }
2467
- export interface BookingPolicyWithServices {
2426
+ interface BookingPolicyWithServices {
2468
2427
  /** Retrieved booking policy. */
2469
2428
  bookingPolicy?: BookingPolicy;
2470
2429
  /**
@@ -2480,7 +2439,7 @@ export interface BookingPolicyWithServices {
2480
2439
  /** Total number of services connected to the booking policy. */
2481
2440
  totalServiceCount?: number;
2482
2441
  }
2483
- export interface QueryBookingFormsRequest {
2442
+ interface QueryBookingFormsRequest {
2484
2443
  /**
2485
2444
  * Information about filters, paging, and sorting. See the article about
2486
2445
  * form filters ([REST](https://dev.wix.com/docs/rest/crm/forms/forms/introduction/supported-filters))
@@ -2493,13 +2452,13 @@ export interface QueryBookingFormsRequest {
2493
2452
  */
2494
2453
  conditionalFields?: RequestedFields[];
2495
2454
  }
2496
- export declare enum RequestedFields {
2455
+ declare enum RequestedFields {
2497
2456
  /** Unknown requested conditional field. */
2498
2457
  UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
2499
2458
  /** Whether to return the site's default booking form. */
2500
2459
  DEFAULT_BOOKING_FORM = "DEFAULT_BOOKING_FORM"
2501
2460
  }
2502
- export interface QueryBookingFormsResponse {
2461
+ interface QueryBookingFormsResponse {
2503
2462
  /** Retrieved booking forms and information about connected services. */
2504
2463
  bookingForms?: BookingForm[];
2505
2464
  /** Paging metadata. */
@@ -2507,7 +2466,7 @@ export interface QueryBookingFormsResponse {
2507
2466
  /** The site's default booking form and information about connected services. */
2508
2467
  defaultBookingForm?: BookingForm;
2509
2468
  }
2510
- export interface BookingForm {
2469
+ interface BookingForm {
2511
2470
  /** Information about the retrieved booking form. */
2512
2471
  formDetails?: FormDetails;
2513
2472
  /**
@@ -2523,7 +2482,7 @@ export interface BookingForm {
2523
2482
  /** Total number of services connected to the booking form. */
2524
2483
  totalServiceCount?: number;
2525
2484
  }
2526
- export interface FormDetails {
2485
+ interface FormDetails {
2527
2486
  /**
2528
2487
  * Form ID.
2529
2488
  * @format GUID
@@ -2542,12 +2501,12 @@ export interface FormDetails {
2542
2501
  */
2543
2502
  revision?: string | null;
2544
2503
  }
2545
- export interface ConnectedService {
2504
+ interface ConnectedService {
2546
2505
  /**
2547
2506
  * ID of the service connected to the booking form.
2548
2507
  * @format GUID
2549
2508
  */
2550
- id?: string | null;
2509
+ _id?: string | null;
2551
2510
  /**
2552
2511
  * Name of the service connected to the booking form.
2553
2512
  * @maxLength 400
@@ -2555,7 +2514,7 @@ export interface ConnectedService {
2555
2514
  */
2556
2515
  name?: string | null;
2557
2516
  }
2558
- export interface CountServicesRequest {
2517
+ interface CountServicesRequest {
2559
2518
  /**
2560
2519
  * Query filter to base the count on. See supported filters
2561
2520
  * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/filtering-and-sorting#filtering))
@@ -2563,15 +2522,15 @@ export interface CountServicesRequest {
2563
2522
  */
2564
2523
  filter?: Record<string, any> | null;
2565
2524
  }
2566
- export interface CountServicesResponse {
2525
+ interface CountServicesResponse {
2567
2526
  /** Number of services matching the specified filter. */
2568
2527
  count?: number;
2569
2528
  }
2570
- export interface QueryLocationsRequest {
2529
+ interface QueryLocationsRequest {
2571
2530
  /** Filter. */
2572
2531
  filter?: QueryLocationsFilter;
2573
2532
  }
2574
- export interface QueryLocationsFilter {
2533
+ interface QueryLocationsFilter {
2575
2534
  /**
2576
2535
  * Service filter. See supported filters
2577
2536
  * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/filtering-and-sorting#filtering))
@@ -2585,7 +2544,7 @@ export interface QueryLocationsFilter {
2585
2544
  */
2586
2545
  businessLocationIds?: string[];
2587
2546
  }
2588
- export interface QueryLocationsResponse {
2547
+ interface QueryLocationsResponse {
2589
2548
  /**
2590
2549
  * Retrieved business locations and whether each location is connected to at
2591
2550
  * least one service.
@@ -2602,7 +2561,7 @@ export interface QueryLocationsResponse {
2602
2561
  */
2603
2562
  customerLocations?: CustomerLocations;
2604
2563
  }
2605
- export interface BusinessLocations {
2564
+ interface BusinessLocations {
2606
2565
  /**
2607
2566
  * Whether at least one service matching the filter is connected to any of the
2608
2567
  * retrieved business locations.
@@ -2614,25 +2573,25 @@ export interface BusinessLocations {
2614
2573
  */
2615
2574
  locations?: V2Location[];
2616
2575
  }
2617
- export interface CustomLocations {
2576
+ interface CustomLocations {
2618
2577
  /**
2619
2578
  * Whether at least one service matching the filter is connected to any of the
2620
2579
  * retrieved custom locations.
2621
2580
  */
2622
2581
  exists?: boolean;
2623
2582
  }
2624
- export interface CustomerLocations {
2583
+ interface CustomerLocations {
2625
2584
  /**
2626
2585
  * Whether at least one service matching the filter is connected to any of the
2627
2586
  * retrieved customer locations.
2628
2587
  */
2629
2588
  exists?: boolean;
2630
2589
  }
2631
- export interface QueryCategoriesRequest {
2590
+ interface QueryCategoriesRequest {
2632
2591
  /** Filter. */
2633
2592
  filter?: QueryCategoriesFilter;
2634
2593
  }
2635
- export interface QueryCategoriesFilter {
2594
+ interface QueryCategoriesFilter {
2636
2595
  /**
2637
2596
  * Service filter. See supported filters
2638
2597
  * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/filtering-and-sorting#filtering))
@@ -2646,15 +2605,15 @@ export interface QueryCategoriesFilter {
2646
2605
  */
2647
2606
  categoryIds?: string[];
2648
2607
  }
2649
- export interface QueryCategoriesResponse {
2608
+ interface QueryCategoriesResponse {
2650
2609
  /** Retrieved categories. */
2651
2610
  categories?: V2Category[];
2652
2611
  }
2653
- export interface QueryServicesMultiLanguageRequest {
2612
+ interface QueryServicesMultiLanguageRequest {
2654
2613
  /** WQL expression. */
2655
2614
  query?: QueryV2;
2656
2615
  }
2657
- export interface QueryServicesMultiLanguageResponse {
2616
+ interface QueryServicesMultiLanguageResponse {
2658
2617
  /** The retrieved services in the main language */
2659
2618
  services?: Service[];
2660
2619
  /**
@@ -2665,7 +2624,7 @@ export interface QueryServicesMultiLanguageResponse {
2665
2624
  /** Paging metadata, including offset and count. */
2666
2625
  pagingMetadata?: PagingMetadataV2;
2667
2626
  }
2668
- export interface SetServiceLocationsRequest {
2627
+ interface SetServiceLocationsRequest {
2669
2628
  /**
2670
2629
  * ID of the service.
2671
2630
  * @format GUID
@@ -2688,7 +2647,7 @@ export interface SetServiceLocationsRequest {
2688
2647
  */
2689
2648
  participantNotification?: ParticipantNotification;
2690
2649
  }
2691
- export interface RemovedLocationSessionsAction extends RemovedLocationSessionsActionActionOptionsOneOf {
2650
+ interface RemovedLocationSessionsAction extends RemovedLocationSessionsActionActionOptionsOneOf {
2692
2651
  /**
2693
2652
  * Details about the new location of future events that were scheduled to take
2694
2653
  * place at a removed location.
@@ -2698,14 +2657,14 @@ export interface RemovedLocationSessionsAction extends RemovedLocationSessionsAc
2698
2657
  action?: Action;
2699
2658
  }
2700
2659
  /** @oneof */
2701
- export interface RemovedLocationSessionsActionActionOptionsOneOf {
2660
+ interface RemovedLocationSessionsActionActionOptionsOneOf {
2702
2661
  /**
2703
2662
  * Details about the new location of future events that were scheduled to take
2704
2663
  * place at a removed location.
2705
2664
  */
2706
2665
  moveToLocationOptions?: MoveToNewLocationsOptions;
2707
2666
  }
2708
- export declare enum Action {
2667
+ declare enum Action {
2709
2668
  UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
2710
2669
  /** Retain all future sessions at their current location. This is the default. */
2711
2670
  KEEP_AT_CURRENT_LOCATION = "KEEP_AT_CURRENT_LOCATION",
@@ -2717,15 +2676,15 @@ export declare enum Action {
2717
2676
  */
2718
2677
  DELETE = "DELETE"
2719
2678
  }
2720
- export interface MoveToNewLocationsOptions {
2679
+ interface MoveToNewLocationsOptions {
2721
2680
  /** The new location to move existing sessions currently set to a removed location, used when `action` is `MOVE_TO_LOCATION`. */
2722
2681
  newLocation?: V2Location;
2723
2682
  }
2724
- export interface SetServiceLocationsResponse {
2683
+ interface SetServiceLocationsResponse {
2725
2684
  /** The updated service with the newly set locations. */
2726
2685
  service?: Service;
2727
2686
  }
2728
- export interface EnablePricingPlansForServiceRequest {
2687
+ interface EnablePricingPlansForServiceRequest {
2729
2688
  /**
2730
2689
  * ID of the service to update.
2731
2690
  * @format GUID
@@ -2740,23 +2699,23 @@ export interface EnablePricingPlansForServiceRequest {
2740
2699
  */
2741
2700
  pricingPlanIds: string[];
2742
2701
  }
2743
- export interface EnablePricingPlansForServiceResponse {
2702
+ interface EnablePricingPlansForServiceResponse {
2744
2703
  /** Updated service. */
2745
2704
  service?: Service;
2746
2705
  }
2747
- export interface InvalidPricingPlan {
2706
+ interface InvalidPricingPlan {
2748
2707
  /**
2749
2708
  * ID of the invalid pricing plan.
2750
2709
  * @format GUID
2751
2710
  */
2752
- id?: string;
2711
+ _id?: string;
2753
2712
  /**
2754
2713
  * Explanation why the pricing plan is considered invalid.
2755
2714
  * @maxLength 2000
2756
2715
  */
2757
2716
  message?: string;
2758
2717
  }
2759
- export interface DisablePricingPlansForServiceRequest {
2718
+ interface DisablePricingPlansForServiceRequest {
2760
2719
  /**
2761
2720
  * ID of the service to update.
2762
2721
  * @format GUID
@@ -2771,11 +2730,11 @@ export interface DisablePricingPlansForServiceRequest {
2771
2730
  */
2772
2731
  pricingPlanIds?: string[];
2773
2732
  }
2774
- export interface DisablePricingPlansForServiceResponse {
2733
+ interface DisablePricingPlansForServiceResponse {
2775
2734
  /** Updated service. */
2776
2735
  service?: Service;
2777
2736
  }
2778
- export interface SetCustomSlugRequest {
2737
+ interface SetCustomSlugRequest {
2779
2738
  /**
2780
2739
  * ID of the service for which to update the active slug.
2781
2740
  * @format GUID
@@ -2787,13 +2746,13 @@ export interface SetCustomSlugRequest {
2787
2746
  */
2788
2747
  slug?: string;
2789
2748
  }
2790
- export interface SetCustomSlugResponse {
2749
+ interface SetCustomSlugResponse {
2791
2750
  /** Updated active service slug. */
2792
2751
  slug?: Slug;
2793
2752
  /** Updated service. */
2794
2753
  service?: Service;
2795
2754
  }
2796
- export interface ValidateSlugRequest {
2755
+ interface ValidateSlugRequest {
2797
2756
  /**
2798
2757
  * IO of the service to check custom slug validity for.
2799
2758
  * @format GUID
@@ -2805,7 +2764,7 @@ export interface ValidateSlugRequest {
2805
2764
  */
2806
2765
  slug?: string;
2807
2766
  }
2808
- export interface ValidateSlugResponse {
2767
+ interface ValidateSlugResponse {
2809
2768
  /** Whether the slug is valid. */
2810
2769
  valid?: boolean;
2811
2770
  /**
@@ -2819,7 +2778,7 @@ export interface ValidateSlugResponse {
2819
2778
  */
2820
2779
  errors?: InvalidSlugError[];
2821
2780
  }
2822
- export declare enum InvalidSlugError {
2781
+ declare enum InvalidSlugError {
2823
2782
  /** Unknown slug error. */
2824
2783
  UNKNOWN_SLUG_ERROR = "UNKNOWN_SLUG_ERROR",
2825
2784
  /** Slug contains illegal characters. */
@@ -2827,14 +2786,14 @@ export declare enum InvalidSlugError {
2827
2786
  /** Slug is already associated with another service. */
2828
2787
  SLUG_ALREADY_EXISTS = "SLUG_ALREADY_EXISTS"
2829
2788
  }
2830
- export interface CloneServiceRequest {
2789
+ interface CloneServiceRequest {
2831
2790
  /**
2832
2791
  * ID of the service to clone.
2833
2792
  * @format GUID
2834
2793
  */
2835
2794
  sourceServiceId: string;
2836
2795
  }
2837
- export interface CloneServiceResponse {
2796
+ interface CloneServiceResponse {
2838
2797
  /** Cloned service. */
2839
2798
  service?: Service;
2840
2799
  /**
@@ -2844,7 +2803,7 @@ export interface CloneServiceResponse {
2844
2803
  */
2845
2804
  errors?: CloneErrors[];
2846
2805
  }
2847
- export declare enum CloneErrors {
2806
+ declare enum CloneErrors {
2848
2807
  /**
2849
2808
  * Failed to clone the original service's *options and variants*
2850
2809
  * ([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)).
@@ -2854,18 +2813,18 @@ export declare enum CloneErrors {
2854
2813
  FORM = "FORM"
2855
2814
  }
2856
2815
  /** An event sent every time a category entity is changed. */
2857
- export interface CategoryNotification {
2816
+ interface CategoryNotification {
2858
2817
  category?: Category;
2859
2818
  event?: CategoryNotificationEvent;
2860
2819
  }
2861
2820
  /** Categories are used to group multiple services together. A service must be associated with a category in order to be exposed in the Wix Bookings UI. */
2862
- export interface Category {
2821
+ interface Category {
2863
2822
  /**
2864
2823
  * Category ID.
2865
2824
  * @format GUID
2866
2825
  * @readonly
2867
2826
  */
2868
- id?: string | null;
2827
+ _id?: string | null;
2869
2828
  /**
2870
2829
  * Category name.
2871
2830
  * @maxLength 500
@@ -2881,13 +2840,13 @@ export interface Category {
2881
2840
  /** Sort order of the category in the live site and dashboard. */
2882
2841
  sortOrder?: number | null;
2883
2842
  }
2884
- export declare enum Status {
2843
+ declare enum Status {
2885
2844
  /** The category was created. */
2886
2845
  CREATED = "CREATED",
2887
2846
  /** The category was deleted. */
2888
2847
  DELETED = "DELETED"
2889
2848
  }
2890
- export declare enum CategoryNotificationEvent {
2849
+ declare enum CategoryNotificationEvent {
2891
2850
  /** Category was updated. */
2892
2851
  Updated = "Updated",
2893
2852
  /** Category was deleted. */
@@ -2895,9 +2854,9 @@ export declare enum CategoryNotificationEvent {
2895
2854
  /** Category was created. */
2896
2855
  Created = "Created"
2897
2856
  }
2898
- export interface Empty {
2857
+ interface Empty {
2899
2858
  }
2900
- export interface ResourceNotification {
2859
+ interface ResourceNotification {
2901
2860
  /**
2902
2861
  * Updated resource entity.
2903
2862
  * 'resource.schedules' is deprecated and will not be returned. Please use 'resource.scheduleIds' instead.
@@ -2906,13 +2865,13 @@ export interface ResourceNotification {
2906
2865
  /** Event type. */
2907
2866
  event?: ResourceNotificationEvent;
2908
2867
  }
2909
- export interface Resource {
2868
+ interface Resource {
2910
2869
  /**
2911
2870
  * Resource ID.
2912
2871
  * @format GUID
2913
2872
  * @readonly
2914
2873
  */
2915
- id?: string | null;
2874
+ _id?: string | null;
2916
2875
  /**
2917
2876
  * Resource name.
2918
2877
  * @maxLength 1200
@@ -2945,7 +2904,7 @@ export interface Resource {
2945
2904
  */
2946
2905
  tags?: string[] | null;
2947
2906
  /** Resource images. */
2948
- images?: CommonImage[];
2907
+ images?: string[];
2949
2908
  /**
2950
2909
  * Deprecated. Please use scheduleIds. List of the schedules owned by this resource. Min size 1.
2951
2910
  * @deprecated
@@ -2970,30 +2929,7 @@ export interface Resource {
2970
2929
  */
2971
2930
  wixUserId?: string | null;
2972
2931
  }
2973
- export interface CommonImage {
2974
- /** WixMedia image ID. */
2975
- id?: string;
2976
- /** Image URL. */
2977
- url?: string;
2978
- /**
2979
- * Original image height.
2980
- * @readonly
2981
- */
2982
- height?: number;
2983
- /**
2984
- * Original image width.
2985
- * @readonly
2986
- */
2987
- width?: number;
2988
- /** Image alt text. */
2989
- altText?: string | null;
2990
- /**
2991
- * Image filename.
2992
- * @readonly
2993
- */
2994
- filename?: string | null;
2995
- }
2996
- export interface FocalPoint {
2932
+ interface FocalPoint {
2997
2933
  /** X-coordinate of the focal point. */
2998
2934
  x?: number;
2999
2935
  /** Y-coordinate of the focal point. */
@@ -3003,9 +2939,9 @@ export interface FocalPoint {
3003
2939
  /** crop by width */
3004
2940
  width?: number | null;
3005
2941
  }
3006
- export interface Schedule {
2942
+ interface Schedule {
3007
2943
  /** Schedule ID. */
3008
- id?: string;
2944
+ _id?: string;
3009
2945
  /** ID of the schedule's owner entity. This may be a resource ID or a service ID. */
3010
2946
  scheduleOwnerId?: string | null;
3011
2947
  /**
@@ -3104,12 +3040,12 @@ export interface Schedule {
3104
3040
  */
3105
3041
  calendarConference?: CalendarConference;
3106
3042
  }
3107
- export interface RecurringInterval {
3043
+ interface RecurringInterval {
3108
3044
  /**
3109
3045
  * The recurring interval identifier.
3110
3046
  * @readonly
3111
3047
  */
3112
- id?: string;
3048
+ _id?: string;
3113
3049
  /** The start time of the recurring interval. Required. */
3114
3050
  start?: Date | null;
3115
3051
  /** The end time of the recurring interval. Optional. Empty value indicates that there is no end time. */
@@ -3123,7 +3059,7 @@ export interface RecurringInterval {
3123
3059
  /** The type of recurring interval. */
3124
3060
  intervalType?: RecurringIntervalType;
3125
3061
  }
3126
- export interface Interval {
3062
+ interface Interval {
3127
3063
  /** The day the interval occurs. Optional. The default is the day of the recurring interval's start time. */
3128
3064
  daysOfWeek?: Day;
3129
3065
  /**
@@ -3139,7 +3075,7 @@ export interface Interval {
3139
3075
  /** The duration of the interval in minutes. Required. Part of the session end time calculation. */
3140
3076
  duration?: number;
3141
3077
  }
3142
- export declare enum Day {
3078
+ declare enum Day {
3143
3079
  /** Undefined. */
3144
3080
  UNDEFINED = "UNDEFINED",
3145
3081
  /** Monday. */
@@ -3157,7 +3093,7 @@ export declare enum Day {
3157
3093
  /** Sunday. */
3158
3094
  SUN = "SUN"
3159
3095
  }
3160
- export interface Frequency {
3096
+ interface Frequency {
3161
3097
  /**
3162
3098
  * The frequency of the recurrence in weeks. i.e. when this value is 4, the interval occurs every 4 weeks. Optional. The default is 1. minimum: 1, maximum: 52.
3163
3099
  * @min 1
@@ -3165,7 +3101,7 @@ export interface Frequency {
3165
3101
  */
3166
3102
  repetition?: number | null;
3167
3103
  }
3168
- export interface LinkedSchedule {
3104
+ interface LinkedSchedule {
3169
3105
  /**
3170
3106
  * Schedule ID.
3171
3107
  * @format GUID
@@ -3179,14 +3115,14 @@ export interface LinkedSchedule {
3179
3115
  */
3180
3116
  scheduleOwnerId?: string;
3181
3117
  }
3182
- export declare enum Transparency {
3118
+ declare enum Transparency {
3183
3119
  UNDEFINED = "UNDEFINED",
3184
3120
  /** The schedule can have available slots during the linked schedule's sessions. */
3185
3121
  FREE = "FREE",
3186
3122
  /** The schedule can't have available slots during the linked schedule's sessions. */
3187
3123
  BUSY = "BUSY"
3188
3124
  }
3189
- export declare enum RecurringIntervalType {
3125
+ declare enum RecurringIntervalType {
3190
3126
  /** The default value. Sessions for this interval will be of type EVENT. */
3191
3127
  UNDEFINED = "UNDEFINED",
3192
3128
  /** A recurring interval of events. */
@@ -3196,7 +3132,7 @@ export declare enum RecurringIntervalType {
3196
3132
  /** A recurring interval for availability. */
3197
3133
  AVAILABILITY = "AVAILABILITY"
3198
3134
  }
3199
- export interface Location {
3135
+ interface Location {
3200
3136
  /**
3201
3137
  * Location type.
3202
3138
  * One of:
@@ -3213,14 +3149,14 @@ export interface Location {
3213
3149
  /** Custom address, used when locationType is `"OWNER_CUSTOM"`. Might be used when locationType is `"CUSTOM"` in case the owner sets a custom address for the session which is different from the default. */
3214
3150
  customAddress?: Address;
3215
3151
  }
3216
- export declare enum LocationType {
3152
+ declare enum LocationType {
3217
3153
  UNDEFINED = "UNDEFINED",
3218
3154
  OWNER_BUSINESS = "OWNER_BUSINESS",
3219
3155
  OWNER_CUSTOM = "OWNER_CUSTOM",
3220
3156
  CUSTOM = "CUSTOM"
3221
3157
  }
3222
3158
  /** Physical address */
3223
- export interface Address extends AddressStreetOneOf {
3159
+ interface Address extends AddressStreetOneOf {
3224
3160
  /** Street name, number and apartment number. */
3225
3161
  streetAddress?: StreetAddress;
3226
3162
  /** Main address line, usually street and number, as free text. */
@@ -3250,13 +3186,13 @@ export interface Address extends AddressStreetOneOf {
3250
3186
  subdivisions?: Subdivision[];
3251
3187
  }
3252
3188
  /** @oneof */
3253
- export interface AddressStreetOneOf {
3189
+ interface AddressStreetOneOf {
3254
3190
  /** Street name, number and apartment number. */
3255
3191
  streetAddress?: StreetAddress;
3256
3192
  /** Main address line, usually street and number, as free text. */
3257
3193
  addressLine?: string | null;
3258
3194
  }
3259
- export interface StreetAddress {
3195
+ interface StreetAddress {
3260
3196
  /** Street number. */
3261
3197
  number?: string;
3262
3198
  /** Street name. */
@@ -3264,25 +3200,25 @@ export interface StreetAddress {
3264
3200
  /** Apartment number. */
3265
3201
  apt?: string;
3266
3202
  }
3267
- export interface AddressLocation {
3203
+ interface AddressLocation {
3268
3204
  /** Address latitude. */
3269
3205
  latitude?: number | null;
3270
3206
  /** Address longitude. */
3271
3207
  longitude?: number | null;
3272
3208
  }
3273
- export interface Subdivision {
3209
+ interface Subdivision {
3274
3210
  /** Subdivision code. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
3275
3211
  code?: string;
3276
3212
  /** Subdivision full name. */
3277
3213
  name?: string;
3278
3214
  }
3279
- export interface LocationsLocation {
3215
+ interface LocationsLocation {
3280
3216
  /**
3281
3217
  * Location ID.
3282
3218
  * @format GUID
3283
3219
  * @readonly
3284
3220
  */
3285
- id?: string | null;
3221
+ _id?: string | null;
3286
3222
  /**
3287
3223
  * Location name.
3288
3224
  * @maxLength 150
@@ -3348,12 +3284,12 @@ export interface LocationsLocation {
3348
3284
  locationTypes?: LocationsLocationType[];
3349
3285
  }
3350
3286
  /** For future use */
3351
- export declare enum LocationStatus {
3287
+ declare enum LocationStatus {
3352
3288
  ACTIVE = "ACTIVE",
3353
3289
  INACTIVE = "INACTIVE"
3354
3290
  }
3355
3291
  /** For future use */
3356
- export declare enum LocationsLocationType {
3292
+ declare enum LocationsLocationType {
3357
3293
  UNKNOWN = "UNKNOWN",
3358
3294
  BRANCH = "BRANCH",
3359
3295
  OFFICES = "OFFICES",
@@ -3361,7 +3297,7 @@ export declare enum LocationsLocationType {
3361
3297
  HEADQUARTERS = "HEADQUARTERS",
3362
3298
  INVENTORY = "INVENTORY"
3363
3299
  }
3364
- export interface LocationsAddress {
3300
+ interface LocationsAddress {
3365
3301
  /**
3366
3302
  * 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
3367
3303
  * @format COUNTRY
@@ -3379,17 +3315,12 @@ export interface LocationsAddress {
3379
3315
  /** Street address. Includes street name, number, and apartment number in separate fields. */
3380
3316
  streetAddress?: LocationsStreetAddress;
3381
3317
  /** Full address of the location. */
3382
- formattedAddress?: string | null;
3383
- /**
3384
- * Extra information that helps finding the location.
3385
- * @maxLength 500
3386
- */
3387
- hint?: string | null;
3318
+ formatted?: string | null;
3388
3319
  /** Geographic coordinates of location. */
3389
- geocode?: LocationsAddressLocation;
3320
+ location?: LocationsAddressLocation;
3390
3321
  }
3391
3322
  /** Street address. Includes street name, number, and apartment number in separate fields. */
3392
- export interface LocationsStreetAddress {
3323
+ interface LocationsStreetAddress {
3393
3324
  /** Street number. */
3394
3325
  number?: string;
3395
3326
  /** Street name. */
@@ -3398,14 +3329,14 @@ export interface LocationsStreetAddress {
3398
3329
  apt?: string;
3399
3330
  }
3400
3331
  /** Address Geolocation */
3401
- export interface LocationsAddressLocation {
3332
+ interface LocationsAddressLocation {
3402
3333
  /** Latitude of the location. Must be between -90 and 90. */
3403
3334
  latitude?: number | null;
3404
3335
  /** Longitude of the location. Must be between -180 and 180. */
3405
3336
  longitude?: number | null;
3406
3337
  }
3407
3338
  /** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */
3408
- export interface BusinessSchedule {
3339
+ interface BusinessSchedule {
3409
3340
  /**
3410
3341
  * Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.
3411
3342
  * @maxSize 100
@@ -3418,7 +3349,7 @@ export interface BusinessSchedule {
3418
3349
  specialHourPeriod?: SpecialHourPeriod[];
3419
3350
  }
3420
3351
  /** Weekly recurring time periods when the business is regularly open or the service is available. */
3421
- export interface TimePeriod {
3352
+ interface TimePeriod {
3422
3353
  /** Day of the week the period starts on. */
3423
3354
  openDay?: DayOfWeek;
3424
3355
  /**
@@ -3437,7 +3368,7 @@ export interface TimePeriod {
3437
3368
  closeTime?: string;
3438
3369
  }
3439
3370
  /** Enumerates the days of the week. */
3440
- export declare enum DayOfWeek {
3371
+ declare enum DayOfWeek {
3441
3372
  MONDAY = "MONDAY",
3442
3373
  TUESDAY = "TUESDAY",
3443
3374
  WEDNESDAY = "WEDNESDAY",
@@ -3447,7 +3378,7 @@ export declare enum DayOfWeek {
3447
3378
  SUNDAY = "SUNDAY"
3448
3379
  }
3449
3380
  /** Exception to the business's regular hours. The business can be open or closed during the exception. */
3450
- export interface SpecialHourPeriod {
3381
+ interface SpecialHourPeriod {
3451
3382
  /** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */
3452
3383
  startDate?: string;
3453
3384
  /** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */
@@ -3461,7 +3392,7 @@ export interface SpecialHourPeriod {
3461
3392
  /** Additional info about the exception. For example, "We close earlier on New Year's Eve." */
3462
3393
  comment?: string;
3463
3394
  }
3464
- export interface Rate {
3395
+ interface Rate {
3465
3396
  /**
3466
3397
  * Mapping between a named price option, for example, adult or child prices, and the price, currency, and down payment amount.
3467
3398
  * When present in an update request, the `default_varied_price` is ignored to support backward compatibility.
@@ -3473,7 +3404,7 @@ export interface Rate {
3473
3404
  */
3474
3405
  priceText?: string | null;
3475
3406
  }
3476
- export interface Price {
3407
+ interface Price {
3477
3408
  /**
3478
3409
  * Required payment amount.
3479
3410
  * @format DECIMAL_VALUE
@@ -3495,7 +3426,7 @@ export interface Price {
3495
3426
  * Schedule's availability calculation is executed by the schedule's available intervals and this additional information.
3496
3427
  * Schedule's available intervals are recurring intervals (defined in the schedule) minus sessions that has no more spots for bookings (including time between_slots), or schedule's sessions with open spots for bookings.-->
3497
3428
  */
3498
- export interface Availability {
3429
+ interface Availability {
3499
3430
  /** Date and time the schedule starts to be available for booking. */
3500
3431
  start?: Date | null;
3501
3432
  /** Date and time the schedule stops being available for booking. No value indicates no end time. */
@@ -3506,7 +3437,7 @@ export interface Availability {
3506
3437
  constraints?: AvailabilityConstraints;
3507
3438
  }
3508
3439
  /** Describes how to calculate the specific slots that are available for booking. */
3509
- export interface AvailabilityConstraints {
3440
+ interface AvailabilityConstraints {
3510
3441
  /**
3511
3442
  * A list of duration options for slots, in minutes. Minimum value for a duration is 1.
3512
3443
  * The availability calculation generates slots with these durations, where there is no conflict with existing sessions or other availability constraints.
@@ -3534,7 +3465,7 @@ export interface AvailabilityConstraints {
3534
3465
  slotsSplitInterval?: SplitInterval;
3535
3466
  }
3536
3467
  /** The time between available slots' start times. For example, For 5 minute slots, 3:00, 3:05, 3:15 etc. For 1 hour slots, 3:00, 4:00, 5:00 etc. */
3537
- export interface SplitInterval {
3468
+ interface SplitInterval {
3538
3469
  /**
3539
3470
  * Whether the slot duration is used as the split interval value.
3540
3471
  * If `same_as_duration` is `true`, the `value_in_minutes` is the sum of the first duration in
@@ -3544,12 +3475,12 @@ export interface SplitInterval {
3544
3475
  /** Number of minutes between available slots' start times when `same_as_duration` is `false`. */
3545
3476
  valueInMinutes?: number | null;
3546
3477
  }
3547
- export interface Participant {
3478
+ interface Participant {
3548
3479
  /**
3549
3480
  * Participant ID. Currently represents the booking.id.
3550
3481
  * @format GUID
3551
3482
  */
3552
- id?: string;
3483
+ _id?: string;
3553
3484
  /**
3554
3485
  * Contact ID.
3555
3486
  * @format GUID
@@ -3574,7 +3505,7 @@ export interface Participant {
3574
3505
  */
3575
3506
  inherited?: boolean;
3576
3507
  }
3577
- export declare enum ApprovalStatus {
3508
+ declare enum ApprovalStatus {
3578
3509
  /** Default. */
3579
3510
  UNDEFINED = "UNDEFINED",
3580
3511
  /** Pending business approval. */
@@ -3584,13 +3515,13 @@ export declare enum ApprovalStatus {
3584
3515
  /** Declined by the business. */
3585
3516
  DECLINED = "DECLINED"
3586
3517
  }
3587
- export interface ExternalCalendarOverrides {
3518
+ interface ExternalCalendarOverrides {
3588
3519
  /** Synced title of the external calendar event. */
3589
3520
  title?: string | null;
3590
3521
  /** Synced description of the external calendar event. */
3591
3522
  description?: string | null;
3592
3523
  }
3593
- export declare enum ScheduleStatus {
3524
+ declare enum ScheduleStatus {
3594
3525
  /** Undefined schedule status. */
3595
3526
  UNDEFINED = "UNDEFINED",
3596
3527
  /** The schedule was created. */
@@ -3598,19 +3529,19 @@ export declare enum ScheduleStatus {
3598
3529
  /** The schedule was cancelled. */
3599
3530
  CANCELLED = "CANCELLED"
3600
3531
  }
3601
- export interface Version {
3532
+ interface Version {
3602
3533
  /** Schedule version number, updated each time the schedule is updated. */
3603
3534
  scheduleVersion?: number | null;
3604
3535
  /** Participants version number, updated each time the schedule participants are updated. */
3605
3536
  participantsVersion?: number | null;
3606
3537
  }
3607
- export interface ConferenceProvider {
3538
+ interface ConferenceProvider {
3608
3539
  /** Conferencing provider ID */
3609
3540
  providerId?: string;
3610
3541
  }
3611
- export interface CalendarConference {
3542
+ interface CalendarConference {
3612
3543
  /** Wix Calendar conference ID. */
3613
- id?: string;
3544
+ _id?: string;
3614
3545
  /** Conference meeting ID in the provider's conferencing system. */
3615
3546
  externalId?: string;
3616
3547
  /** Conference provider ID. */
@@ -3628,7 +3559,7 @@ export interface CalendarConference {
3628
3559
  /** ID of the account owner in the video conferencing service. */
3629
3560
  accountOwnerId?: string | null;
3630
3561
  }
3631
- export declare enum ConferenceType {
3562
+ declare enum ConferenceType {
3632
3563
  /** Undefined conference type. */
3633
3564
  UNDEFINED = "UNDEFINED",
3634
3565
  /** API-generated online meeting. */
@@ -3636,7 +3567,7 @@ export declare enum ConferenceType {
3636
3567
  /** User-defined meeting. */
3637
3568
  CUSTOM = "CUSTOM"
3638
3569
  }
3639
- export declare enum ResourceStatus {
3570
+ declare enum ResourceStatus {
3640
3571
  /** Undefined resource status. */
3641
3572
  UNDEFINED = "UNDEFINED",
3642
3573
  /** The resource was created. */
@@ -3646,14 +3577,14 @@ export declare enum ResourceStatus {
3646
3577
  /** The resource was updated. */
3647
3578
  UPDATED = "UPDATED"
3648
3579
  }
3649
- export interface BusinessLocation {
3580
+ interface BusinessLocation {
3650
3581
  /**
3651
3582
  * The ID of the business location. Has to be non-empty
3652
3583
  * @format GUID
3653
3584
  */
3654
3585
  locationId?: string;
3655
3586
  }
3656
- export declare enum ResourceNotificationEvent {
3587
+ declare enum ResourceNotificationEvent {
3657
3588
  /** Undefined resource event. */
3658
3589
  UNDEFINED = "UNDEFINED",
3659
3590
  /** The resource was updated. */
@@ -3665,7 +3596,7 @@ export declare enum ResourceNotificationEvent {
3665
3596
  /** The schedule was updated. */
3666
3597
  Schedule_Updated = "Schedule_Updated"
3667
3598
  }
3668
- export interface BenefitNotification {
3599
+ interface BenefitNotification {
3669
3600
  /**
3670
3601
  * Plan unique ID
3671
3602
  * @format GUID
@@ -3683,13 +3614,13 @@ export interface BenefitNotification {
3683
3614
  /** Notification event */
3684
3615
  event?: Event;
3685
3616
  }
3686
- export interface Benefit {
3617
+ interface Benefit {
3687
3618
  /**
3688
3619
  * Benefit unique ID
3689
3620
  * @format GUID
3690
3621
  * @readonly
3691
3622
  */
3692
- id?: string | null;
3623
+ _id?: string | null;
3693
3624
  /** Benefit Type */
3694
3625
  benefitType?: BenefitType;
3695
3626
  /**
@@ -3715,9 +3646,9 @@ export interface Benefit {
3715
3646
  */
3716
3647
  appDefId?: string | null;
3717
3648
  }
3718
- export interface EntryPass {
3649
+ interface EntryPass {
3719
3650
  }
3720
- export interface Discount extends DiscountDiscountOneOf {
3651
+ interface Discount extends DiscountDiscountOneOf {
3721
3652
  /**
3722
3653
  * Fixed-rate percent off discount
3723
3654
  * @decimalValue options { gt:0, lte:100, maxScale:2 }
@@ -3730,7 +3661,7 @@ export interface Discount extends DiscountDiscountOneOf {
3730
3661
  moneyOffAmount?: string;
3731
3662
  }
3732
3663
  /** @oneof */
3733
- export interface DiscountDiscountOneOf {
3664
+ interface DiscountDiscountOneOf {
3734
3665
  /**
3735
3666
  * Fixed-rate percent off discount
3736
3667
  * @decimalValue options { gt:0, lte:100, maxScale:2 }
@@ -3742,7 +3673,7 @@ export interface DiscountDiscountOneOf {
3742
3673
  */
3743
3674
  moneyOffAmount?: string;
3744
3675
  }
3745
- export declare enum BenefitType {
3676
+ declare enum BenefitType {
3746
3677
  /** Should never be used */
3747
3678
  UNDEFINED = "UNDEFINED",
3748
3679
  /** Limited benefit type */
@@ -3750,32 +3681,32 @@ export declare enum BenefitType {
3750
3681
  /** Unlimited benefit type */
3751
3682
  UNLIMITED = "UNLIMITED"
3752
3683
  }
3753
- export interface Behavior extends BehaviorBehaviorOneOf {
3684
+ interface Behavior extends BehaviorBehaviorOneOf {
3754
3685
  /** Entry pass for resources, e.g. a ticket for Bookings service or a ticket for Events. */
3755
3686
  defaultBehavior?: EntryPass;
3756
3687
  /** Discount applied to paid resources */
3757
3688
  discount?: Discount;
3758
3689
  }
3759
3690
  /** @oneof */
3760
- export interface BehaviorBehaviorOneOf {
3691
+ interface BehaviorBehaviorOneOf {
3761
3692
  /** Entry pass for resources, e.g. a ticket for Bookings service or a ticket for Events. */
3762
3693
  defaultBehavior?: EntryPass;
3763
3694
  /** Discount applied to paid resources */
3764
3695
  discount?: Discount;
3765
3696
  }
3766
- export declare enum Event {
3697
+ declare enum Event {
3767
3698
  Updated = "Updated",
3768
3699
  Deleted = "Deleted",
3769
3700
  Created = "Created"
3770
3701
  }
3771
- export interface UserDomainInfoChangedEvent {
3702
+ interface UserDomainInfoChangedEvent {
3772
3703
  domainName?: string;
3773
3704
  crudType?: CrudType;
3774
3705
  /** @format GUID */
3775
3706
  metaSiteId?: string | null;
3776
3707
  changeTime?: Date | null;
3777
3708
  }
3778
- export declare enum CrudType {
3709
+ declare enum CrudType {
3779
3710
  INVALID_CRUD_TYPE = "INVALID_CRUD_TYPE",
3780
3711
  CREATE = "CREATE",
3781
3712
  UPDATE = "UPDATE",
@@ -3783,7 +3714,7 @@ export declare enum CrudType {
3783
3714
  /** Unfortunately this action is used by hibernate save in wix-war */
3784
3715
  CREATE_OR_UPDATE = "CREATE_OR_UPDATE"
3785
3716
  }
3786
- export interface HtmlSitePublished {
3717
+ interface HtmlSitePublished {
3787
3718
  /**
3788
3719
  * Application instance ID
3789
3720
  * @maxLength 50
@@ -3813,15 +3744,15 @@ export interface HtmlSitePublished {
3813
3744
  /** Site's publish date */
3814
3745
  publishDate?: string;
3815
3746
  }
3816
- export interface Page {
3747
+ interface Page {
3817
3748
  /**
3818
3749
  * Page's Id
3819
3750
  * @maxLength 100
3820
3751
  */
3821
- id?: string;
3752
+ _id?: string;
3822
3753
  }
3823
3754
  /** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */
3824
- export interface SitePropertiesNotification {
3755
+ interface SitePropertiesNotification {
3825
3756
  /** The site ID for which this update notification applies. */
3826
3757
  metasiteId?: string;
3827
3758
  /** The actual update event. */
@@ -3835,7 +3766,7 @@ export interface SitePropertiesNotification {
3835
3766
  changeContext?: ChangeContext;
3836
3767
  }
3837
3768
  /** The actual update event for a particular notification. */
3838
- export interface SitePropertiesEvent {
3769
+ interface SitePropertiesEvent {
3839
3770
  /** Version of the site's properties represented by this update. */
3840
3771
  version?: number;
3841
3772
  /** Set of properties that were updated - corresponds to the fields in "properties". */
@@ -3843,7 +3774,7 @@ export interface SitePropertiesEvent {
3843
3774
  /** Updated properties. */
3844
3775
  properties?: Properties;
3845
3776
  }
3846
- export interface Properties {
3777
+ interface Properties {
3847
3778
  /** Site categories. */
3848
3779
  categories?: Categories;
3849
3780
  /** Site locale. */
@@ -3899,7 +3830,7 @@ export interface Properties {
3899
3830
  /** Track clicks analytics. */
3900
3831
  trackClicksAnalytics?: boolean;
3901
3832
  }
3902
- export interface Categories {
3833
+ interface Categories {
3903
3834
  /** Primary site category. */
3904
3835
  primary?: string;
3905
3836
  /**
@@ -3910,13 +3841,13 @@ export interface Categories {
3910
3841
  /** Business Term Id */
3911
3842
  businessTermId?: string | null;
3912
3843
  }
3913
- export interface Locale {
3844
+ interface Locale {
3914
3845
  /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
3915
3846
  languageCode?: string;
3916
3847
  /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
3917
3848
  country?: string;
3918
3849
  }
3919
- export interface V4Address {
3850
+ interface V4Address {
3920
3851
  /** Street name. */
3921
3852
  street?: string;
3922
3853
  /** City name. */
@@ -3948,26 +3879,26 @@ export interface V4Address {
3948
3879
  * This is used for display purposes. Used to add additional data about the address, such as "In the passage".
3949
3880
  * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.
3950
3881
  */
3951
- export interface AddressHint {
3882
+ interface AddressHint {
3952
3883
  /** Extra text displayed next to, or instead of, the actual address. */
3953
3884
  text?: string;
3954
3885
  /** Where the extra text should be displayed. */
3955
3886
  placement?: PlacementType;
3956
3887
  }
3957
3888
  /** Where the extra text should be displayed: before, after or instead of the actual address. */
3958
- export declare enum PlacementType {
3889
+ declare enum PlacementType {
3959
3890
  BEFORE = "BEFORE",
3960
3891
  AFTER = "AFTER",
3961
3892
  REPLACE = "REPLACE"
3962
3893
  }
3963
3894
  /** Geocoordinates for a particular address. */
3964
- export interface GeoCoordinates {
3895
+ interface GeoCoordinates {
3965
3896
  /** Latitude of the location. Must be between -90 and 90. */
3966
3897
  latitude?: number;
3967
3898
  /** Longitude of the location. Must be between -180 and 180. */
3968
3899
  longitude?: number;
3969
3900
  }
3970
- export interface Multilingual {
3901
+ interface Multilingual {
3971
3902
  /**
3972
3903
  * Supported languages list.
3973
3904
  * @maxSize 200
@@ -3976,7 +3907,7 @@ export interface Multilingual {
3976
3907
  /** Whether to redirect to user language. */
3977
3908
  autoRedirect?: boolean;
3978
3909
  }
3979
- export interface SupportedLanguage {
3910
+ interface SupportedLanguage {
3980
3911
  /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
3981
3912
  languageCode?: string;
3982
3913
  /** Locale. */
@@ -3988,12 +3919,12 @@ export interface SupportedLanguage {
3988
3919
  /** How the language will be resolved. For internal use. */
3989
3920
  resolutionMethod?: ResolutionMethod;
3990
3921
  }
3991
- export declare enum ResolutionMethod {
3922
+ declare enum ResolutionMethod {
3992
3923
  QUERY_PARAM = "QUERY_PARAM",
3993
3924
  SUBDOMAIN = "SUBDOMAIN",
3994
3925
  SUBDIRECTORY = "SUBDIRECTORY"
3995
3926
  }
3996
- export interface ConsentPolicy {
3927
+ interface ConsentPolicy {
3997
3928
  /** Whether the site uses cookies that are essential to site operation. Always `true`. */
3998
3929
  essential?: boolean | null;
3999
3930
  /** Whether the site uses cookies that affect site performance and other functional measurements. */
@@ -4006,7 +3937,7 @@ export interface ConsentPolicy {
4006
3937
  dataToThirdParty?: boolean | null;
4007
3938
  }
4008
3939
  /** A single mapping from the MetaSite ID to a particular service. */
4009
- export interface Translation {
3940
+ interface Translation {
4010
3941
  /** The service type. */
4011
3942
  serviceType?: string;
4012
3943
  /** The application definition ID; this only applies to services of type ThirdPartyApps. */
@@ -4014,7 +3945,7 @@ export interface Translation {
4014
3945
  /** The instance ID of the service. */
4015
3946
  instanceId?: string;
4016
3947
  }
4017
- export interface ChangeContext extends ChangeContextPayloadOneOf {
3948
+ interface ChangeContext extends ChangeContextPayloadOneOf {
4018
3949
  /** Properties were updated. */
4019
3950
  propertiesChange?: PropertiesChange;
4020
3951
  /** Default properties were created on site creation. */
@@ -4023,7 +3954,7 @@ export interface ChangeContext extends ChangeContextPayloadOneOf {
4023
3954
  siteCloned?: SiteCloned;
4024
3955
  }
4025
3956
  /** @oneof */
4026
- export interface ChangeContextPayloadOneOf {
3957
+ interface ChangeContextPayloadOneOf {
4027
3958
  /** Properties were updated. */
4028
3959
  propertiesChange?: PropertiesChange;
4029
3960
  /** Default properties were created on site creation. */
@@ -4031,13 +3962,387 @@ export interface ChangeContextPayloadOneOf {
4031
3962
  /** Properties were cloned on site cloning. */
4032
3963
  siteCloned?: SiteCloned;
4033
3964
  }
4034
- export interface PropertiesChange {
3965
+ interface PropertiesChange {
4035
3966
  }
4036
- export interface SiteCreated {
3967
+ interface SiteCreated {
4037
3968
  /** Origin template site id. */
4038
3969
  originTemplateId?: string | null;
4039
3970
  }
4040
- export interface SiteCloned {
3971
+ interface SiteCloned {
4041
3972
  /** Origin site id. */
4042
3973
  originMetaSiteId?: string;
4043
3974
  }
3975
+ interface BaseEventMetadata {
3976
+ /**
3977
+ * App instance ID.
3978
+ * @format GUID
3979
+ */
3980
+ instanceId?: string | null;
3981
+ /**
3982
+ * Event type.
3983
+ * @maxLength 150
3984
+ */
3985
+ eventType?: string;
3986
+ /** The identification type and identity data. */
3987
+ identity?: IdentificationData;
3988
+ }
3989
+ interface EventMetadata extends BaseEventMetadata {
3990
+ /**
3991
+ * Unique event ID.
3992
+ * Allows clients to ignore duplicate webhooks.
3993
+ */
3994
+ _id?: string;
3995
+ /**
3996
+ * Assumes actions are also always typed to an entity_type
3997
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
3998
+ */
3999
+ entityFqdn?: string;
4000
+ /**
4001
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
4002
+ * This is although the created/updated/deleted notion is duplication of the oneof types
4003
+ * Example: created/updated/deleted/started/completed/email_opened
4004
+ */
4005
+ slug?: string;
4006
+ /** ID of the entity associated with the event. */
4007
+ entityId?: string;
4008
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
4009
+ eventTime?: Date | null;
4010
+ /**
4011
+ * Whether the event was triggered as a result of a privacy regulation application
4012
+ * (for example, GDPR).
4013
+ */
4014
+ triggeredByAnonymizeRequest?: boolean | null;
4015
+ /** If present, indicates the action that triggered the event. */
4016
+ originatedFrom?: string | null;
4017
+ /**
4018
+ * A sequence number defining the order of updates to the underlying entity.
4019
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
4020
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
4021
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
4022
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
4023
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
4024
+ */
4025
+ entityEventSequence?: string | null;
4026
+ }
4027
+ interface ServiceCreatedEnvelope {
4028
+ entity: Service;
4029
+ metadata: EventMetadata;
4030
+ }
4031
+ interface ServiceDeletedEnvelope {
4032
+ entity: Service;
4033
+ metadata: EventMetadata;
4034
+ }
4035
+ interface ServiceUpdatedEnvelope {
4036
+ entity: Service;
4037
+ metadata: EventMetadata;
4038
+ }
4039
+ interface UpdateService {
4040
+ /**
4041
+ * Service ID.
4042
+ * @format GUID
4043
+ * @readonly
4044
+ */
4045
+ _id?: string | null;
4046
+ /**
4047
+ * Service type.
4048
+ * Learn more about *service types*
4049
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-types) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-types)).
4050
+ */
4051
+ type?: ServiceType;
4052
+ /**
4053
+ * Order of the service within a *category*
4054
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/categories/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/categories-v1/category-object)).
4055
+ */
4056
+ sortOrder?: number | null;
4057
+ /**
4058
+ * Service name.
4059
+ * @maxLength 400
4060
+ * @minLength 1
4061
+ */
4062
+ name?: string | null;
4063
+ /**
4064
+ * Service description. For example, `High-class hair styling, cuts, straightening and color`.
4065
+ * @maxLength 7000
4066
+ */
4067
+ description?: string | null;
4068
+ /**
4069
+ * Short service description, such as `Hair styling`.
4070
+ * @maxLength 6000
4071
+ */
4072
+ tagLine?: string | null;
4073
+ /**
4074
+ * Default maximum number of customers that can book the service. The service cannot be booked beyond this capacity.
4075
+ * @min 1
4076
+ * @max 1000
4077
+ */
4078
+ defaultCapacity?: number | null;
4079
+ /** Media associated with the service. */
4080
+ media?: Media;
4081
+ /** Whether the service is hidden from the site. */
4082
+ hidden?: boolean | null;
4083
+ /**
4084
+ * _Category_
4085
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/categories/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/categories-v1/category-object))
4086
+ * the service is associated with.
4087
+ */
4088
+ category?: V2Category;
4089
+ /** Form the customer filled out when booking the service. */
4090
+ form?: Form;
4091
+ /**
4092
+ * Payment options for booking the service.
4093
+ * Learn more about *service payments*
4094
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-payments) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-payments)).
4095
+ */
4096
+ payment?: Payment;
4097
+ /** Online booking settings. */
4098
+ onlineBooking?: OnlineBooking;
4099
+ /** Conferencing options for the service. */
4100
+ conferencing?: Conferencing;
4101
+ /**
4102
+ * The locations this service is offered at. Read more about *service locations*
4103
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations)).
4104
+ * @immutable
4105
+ * @maxSize 500
4106
+ */
4107
+ locations?: V2Location[];
4108
+ /**
4109
+ * _Policy_
4110
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction))
4111
+ * determining under what conditions this service can be booked. For example, whether the service can only be booked up to 30 minutes before it begins.
4112
+ */
4113
+ bookingPolicy?: BookingPolicy;
4114
+ /**
4115
+ * The service's *schedule*
4116
+ * ([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)),
4117
+ * which can be used to manage the service's *events*
4118
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)).
4119
+ */
4120
+ schedule?: V2Schedule;
4121
+ /**
4122
+ * IDs of the *staff members*
4123
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction))
4124
+ * providing the service. Available only for appointment-based services.
4125
+ * @maxSize 220
4126
+ * @format GUID
4127
+ */
4128
+ staffMemberIds?: string[];
4129
+ /**
4130
+ * Information about which resources must be available so customers can book the service.
4131
+ * For example, a meeting room or equipment.
4132
+ * @maxSize 3
4133
+ */
4134
+ serviceResources?: ServiceResource[];
4135
+ /**
4136
+ * A slug is the last part of the URL address that serves as a unique identifier of the service.
4137
+ * The list of supported slugs includes past service names for backwards compatibility, and a custom slug if one was set by the business owner.
4138
+ * @readonly
4139
+ * @maxSize 100
4140
+ */
4141
+ supportedSlugs?: Slug[];
4142
+ /**
4143
+ * Active slug for the service.
4144
+ * Learn more about *service slugs*
4145
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-slugs) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-slugs)).
4146
+ * @readonly
4147
+ */
4148
+ mainSlug?: Slug;
4149
+ /**
4150
+ * URLs to various service-related pages, such as the calendar page and the booking page.
4151
+ * @readonly
4152
+ */
4153
+ urls?: URLs;
4154
+ /** Extensions enabling users to save custom data related to the service. */
4155
+ extendedFields?: ExtendedFields;
4156
+ /** Custom SEO data for the service. */
4157
+ seoData?: SeoSchema;
4158
+ /**
4159
+ * Date and time the service was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.
4160
+ * @readonly
4161
+ */
4162
+ _createdDate?: Date | null;
4163
+ /**
4164
+ * Date and time the service was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.
4165
+ * @readonly
4166
+ */
4167
+ _updatedDate?: Date | null;
4168
+ /**
4169
+ * Revision number, which increments by 1 each time the service is updated. To
4170
+ * prevent conflicting changes, the existing revision must be used when updating
4171
+ * a service.
4172
+ * @readonly
4173
+ */
4174
+ revision?: string | null;
4175
+ }
4176
+ interface BulkUpdateServicesOptions {
4177
+ /**
4178
+ * Services to update.
4179
+ * @maxSize 100
4180
+ */
4181
+ services?: MaskedService[];
4182
+ /** Whether to include the updated services in the response. Default: `false` */
4183
+ returnEntity?: boolean;
4184
+ }
4185
+ interface BulkUpdateServicesByFilterOptions {
4186
+ /** Service to update. */
4187
+ service: Service;
4188
+ }
4189
+ interface DeleteServiceOptions {
4190
+ /**
4191
+ * Whether to preserve future sessions with participants.
4192
+ *
4193
+ * Default: `false`
4194
+ */
4195
+ preserveFutureSessionsWithParticipants?: boolean;
4196
+ /**
4197
+ * Whether to notify participants about the change and an optional
4198
+ * custom message.
4199
+ */
4200
+ participantNotification?: ParticipantNotification;
4201
+ }
4202
+ interface BulkDeleteServicesOptions {
4203
+ /**
4204
+ * Whether to preserve future sessions with participants.
4205
+ *
4206
+ * Default: `false`.
4207
+ */
4208
+ preserveFutureSessionsWithParticipants?: boolean;
4209
+ /**
4210
+ * Whether to notify participants about the change and an optional
4211
+ * custom message.
4212
+ */
4213
+ participantNotification?: ParticipantNotification;
4214
+ }
4215
+ interface BulkDeleteServicesByFilterOptions {
4216
+ /**
4217
+ * Whether to preserve future sessions with participants.
4218
+ *
4219
+ * Default: `false`.
4220
+ */
4221
+ preserveFutureSessionsWithParticipants?: boolean;
4222
+ /** Whether to notify participants about the change and an optional custom message. */
4223
+ participantNotification?: ParticipantNotification;
4224
+ }
4225
+ interface QueryServicesOptions {
4226
+ }
4227
+ interface QueryOffsetResult {
4228
+ currentPage: number | undefined;
4229
+ totalPages: number | undefined;
4230
+ totalCount: number | undefined;
4231
+ hasNext: () => boolean;
4232
+ hasPrev: () => boolean;
4233
+ length: number;
4234
+ pageSize: number;
4235
+ }
4236
+ interface ServicesQueryResult extends QueryOffsetResult {
4237
+ items: Service[];
4238
+ query: ServicesQueryBuilder;
4239
+ next: () => Promise<ServicesQueryResult>;
4240
+ prev: () => Promise<ServicesQueryResult>;
4241
+ }
4242
+ interface ServicesQueryBuilder {
4243
+ /** @param propertyName - Property whose value is compared with `value`.
4244
+ * @param value - Value to compare against.
4245
+ */
4246
+ eq: (propertyName: '_id' | 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'payment.options.online' | 'payment.options.inPerson' | 'payment.options.pricingPlan' | 'onlineBooking.enabled' | 'locations.business.id' | 'schedule.firstSessionStart' | 'schedule.lastSessionEnd' | 'staffMemberIds' | 'supportedSlugs.name' | 'mainSlug.name', value: any) => ServicesQueryBuilder;
4247
+ /** @param propertyName - Property whose value is compared with `value`.
4248
+ * @param value - Value to compare against.
4249
+ */
4250
+ ne: (propertyName: '_id' | 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'payment.options.online' | 'payment.options.inPerson' | 'payment.options.pricingPlan' | 'onlineBooking.enabled' | 'locations.business.id' | 'schedule.firstSessionStart' | 'schedule.lastSessionEnd' | 'staffMemberIds' | 'supportedSlugs.name' | 'mainSlug.name', value: any) => ServicesQueryBuilder;
4251
+ /** @param propertyName - Property whose value is compared with `value`.
4252
+ * @param value - Value to compare against.
4253
+ */
4254
+ ge: (propertyName: 'schedule.firstSessionStart' | 'schedule.lastSessionEnd', value: any) => ServicesQueryBuilder;
4255
+ /** @param propertyName - Property whose value is compared with `value`.
4256
+ * @param value - Value to compare against.
4257
+ */
4258
+ gt: (propertyName: 'schedule.firstSessionStart' | 'schedule.lastSessionEnd', value: any) => ServicesQueryBuilder;
4259
+ /** @param propertyName - Property whose value is compared with `value`.
4260
+ * @param value - Value to compare against.
4261
+ */
4262
+ le: (propertyName: 'schedule.firstSessionStart' | 'schedule.lastSessionEnd', value: any) => ServicesQueryBuilder;
4263
+ /** @param propertyName - Property whose value is compared with `value`.
4264
+ * @param value - Value to compare against.
4265
+ */
4266
+ lt: (propertyName: 'schedule.firstSessionStart' | 'schedule.lastSessionEnd', value: any) => ServicesQueryBuilder;
4267
+ /** @param propertyName - Property whose value is compared with `string`.
4268
+ * @param string - String to compare against. Case-insensitive.
4269
+ */
4270
+ startsWith: (propertyName: '_id' | 'name' | 'description' | 'tagLine' | 'category.id' | 'category.name' | 'form.id' | 'locations.business.id' | 'supportedSlugs.name' | 'mainSlug.name', value: string) => ServicesQueryBuilder;
4271
+ /** @param propertyName - Property whose value is compared with `values`.
4272
+ * @param values - List of values to compare against.
4273
+ */
4274
+ hasSome: (propertyName: '_id' | 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'payment.options.online' | 'payment.options.inPerson' | 'payment.options.pricingPlan' | 'onlineBooking.enabled' | 'locations.business.id' | 'schedule.firstSessionStart' | 'schedule.lastSessionEnd' | 'staffMemberIds' | 'supportedSlugs.name' | 'mainSlug.name', value: any[]) => ServicesQueryBuilder;
4275
+ /** @param propertyName - Property whose value is compared with `values`.
4276
+ * @param values - List of values to compare against.
4277
+ */
4278
+ hasAll: (propertyName: 'staffMemberIds', value: any[]) => ServicesQueryBuilder;
4279
+ in: (propertyName: '_id' | 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'payment.options.online' | 'payment.options.inPerson' | 'payment.options.pricingPlan' | 'onlineBooking.enabled' | 'locations.business.id' | 'schedule.firstSessionStart' | 'schedule.lastSessionEnd' | 'staffMemberIds' | 'supportedSlugs.name' | 'mainSlug.name', value: any) => ServicesQueryBuilder;
4280
+ exists: (propertyName: '_id' | 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'payment.options.online' | 'payment.options.inPerson' | 'payment.options.pricingPlan' | 'onlineBooking.enabled' | 'locations.business.id' | 'schedule.firstSessionStart' | 'schedule.lastSessionEnd' | 'staffMemberIds' | 'supportedSlugs.name' | 'mainSlug.name', value: boolean) => ServicesQueryBuilder;
4281
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
4282
+ limit: (limit: number) => ServicesQueryBuilder;
4283
+ /** @param skip - Number of items to skip in the query results before returning the results. */
4284
+ skip: (skip: number) => ServicesQueryBuilder;
4285
+ find: () => Promise<ServicesQueryResult>;
4286
+ }
4287
+ interface QueryBookingFormsOptions {
4288
+ /**
4289
+ * Conditional fields to return.
4290
+ * @maxSize 1
4291
+ */
4292
+ conditionalFields?: RequestedFields[];
4293
+ }
4294
+ interface CountServicesOptions {
4295
+ /**
4296
+ * Query filter to base the count on. See supported filters
4297
+ * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/filtering-and-sorting#filtering))
4298
+ * for more details.
4299
+ */
4300
+ filter?: Record<string, any> | null;
4301
+ }
4302
+ interface QueryLocationsOptions {
4303
+ /** Filter. */
4304
+ filter?: QueryLocationsFilter;
4305
+ }
4306
+ interface QueryCategoriesOptions {
4307
+ /** Filter. */
4308
+ filter?: QueryCategoriesFilter;
4309
+ }
4310
+ interface SetServiceLocationsOptions {
4311
+ /**
4312
+ * The action to perform on sessions currently set to a removed location. For
4313
+ * example, move existing sessions to a new specified location.
4314
+ * If not specified, sessions will not be moved to a new location.
4315
+ */
4316
+ removedLocationSessionsAction?: RemovedLocationSessionsAction;
4317
+ /**
4318
+ * Whether to notify participants about the change of location, and an
4319
+ * Optional custom message. The notification is sent only to participants of sessions that are affected by the change.
4320
+ */
4321
+ participantNotification?: ParticipantNotification;
4322
+ }
4323
+ interface DisablePricingPlansForServiceOptions {
4324
+ /**
4325
+ * IDs of the *pricing plans*
4326
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/introduction) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/plan-object))
4327
+ * to remove from the service's `payment.pricingPlanIds` array.
4328
+ * @format GUID
4329
+ * @maxSize 75
4330
+ */
4331
+ pricingPlanIds?: string[];
4332
+ }
4333
+ interface SetCustomSlugOptions {
4334
+ /**
4335
+ * Slug to set as the active service slug.
4336
+ * @maxLength 500
4337
+ */
4338
+ slug?: string;
4339
+ }
4340
+ interface ValidateSlugOptions {
4341
+ /**
4342
+ * Custom slug to validate.
4343
+ * @maxLength 500
4344
+ */
4345
+ slug?: string;
4346
+ }
4347
+
4348
+ export { CloneErrors as $, type ValidateSlugResponse as A, type BulkUpdateServicesOptions as B, type CursorSearch as C, type DeleteServiceOptions as D, type EnablePricingPlansForServiceResponse as E, type CloneServiceResponse as F, ServiceType as G, V2RequestedFields as H, SortOrder as I, SortType as J, SortDirection as K, LocationTypeEnumLocationType as L, MissingValues as M, ScalarType as N, NestedAggregationType as O, DateHistogramAggregationInterval as P, type QueryServicesOptions as Q, RateType as R, type Service as S, AggregationType as T, type UpdateService as U, type V2Location as V, WebhookIdentityType as W, Mode as X, RequestedFields as Y, Action as Z, InvalidSlugError as _, type BulkUpdateServicesResponse as a, type ResourceIds as a$, Status as a0, CategoryNotificationEvent as a1, Day as a2, Transparency as a3, RecurringIntervalType as a4, LocationType as a5, LocationStatus as a6, LocationsLocationType as a7, DayOfWeek as a8, ApprovalStatus as a9, type CommonAddressStreetOneOf as aA, type CommonStreetAddress as aB, type CommonAddressLocation as aC, type BusinessLocationOptions as aD, type CustomLocationOptions as aE, type BookingPolicy as aF, type PolicyDescription as aG, type LimitEarlyBookingPolicy as aH, type LimitLateBookingPolicy as aI, type BookAfterStartPolicy as aJ, type CancellationPolicy as aK, type ReschedulePolicy as aL, type WaitlistPolicy as aM, type ParticipantsPolicy as aN, type ResourcesPolicy as aO, type CancellationFeePolicy as aP, type CancellationWindow as aQ, type CancellationWindowFeeOneOf as aR, type SaveCreditCardPolicy as aS, type V2Schedule as aT, type V2AvailabilityConstraints as aU, type Duration as aV, type StaffMember as aW, type StaffMediaItem as aX, type StaffMediaItemItemOneOf as aY, type StaffMemberDetails as aZ, type ResourceGroup as a_, ScheduleStatus as aa, ConferenceType as ab, ResourceStatus as ac, ResourceNotificationEvent as ad, BenefitType as ae, Event as af, CrudType as ag, PlacementType as ah, ResolutionMethod as ai, type Media as aj, type MediaItem as ak, type MediaItemItemOneOf as al, type V2Category as am, type Form as an, type FormSettings as ao, type Payment as ap, type PaymentRateOneOf as aq, type FixedPayment as ar, type Money as as, type CustomPayment as at, type VariedPayment as au, type PaymentOptions as av, type OnlineBooking as aw, type Conferencing as ax, type V2LocationOptionsOneOf as ay, type CommonAddress as az, type BulkUpdateServicesByFilterOptions as b, type UpdateServiceResponse as b$, type ServiceResource as b0, type ServiceResourceSelectionOneOf as b1, type ResourceType as b2, type Slug as b3, type URLs as b4, type ExtendedFields as b5, type SeoSchema as b6, type Keyword as b7, type Tag as b8, type Settings as b9, type ListAddOnGroupsByServiceIdResponse as bA, type AddOn as bB, type AddOnAddOnInfoOneOf as bC, type AddOnGroupDetail as bD, type SetAddOnsForGroupRequest as bE, type SetAddOnsForGroupResponse as bF, type ValidateAddOnsSelectionRequest as bG, type ValidateAddOnsSelectionResponse as bH, type ValidationResult as bI, type CreateServiceRequest as bJ, type CreateServiceResponse as bK, type ValidateServiceRequest as bL, type ValidateServiceResponse as bM, type FieldViolation as bN, type BulkCreateServicesRequest as bO, type BulkCreateServicesResponse as bP, type BulkServiceResult as bQ, type ItemMetadata as bR, type ApplicationError as bS, type BulkActionMetadata as bT, type GetServiceRequest as bU, type GetServiceResponse as bV, type GetServiceAvailabilityConstraintsRequest as bW, type GetServiceAvailabilityConstraintsResponse as bX, type ServiceAvailabilityConstraints as bY, type V1SplitInterval as bZ, type UpdateServiceRequest as b_, type AddOnGroup as ba, type AddOnDetails as bb, type ReindexMessage as bc, type ReindexMessageActionOneOf as bd, type Upsert as be, type Delete as bf, type Schema as bg, type SetCustomSlugEvent as bh, type ServicesUrlsChanged as bi, type DomainEvent as bj, type DomainEventBodyOneOf as bk, type EntityCreatedEvent as bl, type RestoreInfo as bm, type EntityUpdatedEvent as bn, type EntityDeletedEvent as bo, type ActionEvent as bp, type MessageEnvelope as bq, type IdentificationData as br, type IdentificationDataIdOneOf as bs, type CreateAddOnGroupRequest as bt, type CreateAddOnGroupResponse as bu, type DeleteAddOnGroupRequest as bv, type DeleteAddOnGroupResponse as bw, type UpdateAddOnGroupRequest as bx, type UpdateAddOnGroupResponse as by, type ListAddOnGroupsByServiceIdRequest as bz, type BulkUpdateServicesByFilterResponse as c, type CountServicesRequest as c$, type BulkUpdateServicesRequest as c0, type MaskedService as c1, type BulkUpdateServicesByFilterRequest as c2, type DeleteServiceRequest as c3, type ParticipantNotification as c4, type DeleteServiceResponse as c5, type BulkDeleteServicesRequest as c6, type BulkDeleteServicesByFilterRequest as c7, type QueryServicesRequest as c8, type QueryV2 as c9, type ValueAggregationResult as cA, type RangeAggregationResult as cB, type NestedAggregationResults as cC, type NestedAggregationResultsResultOneOf as cD, type ValueResults as cE, type RangeResults as cF, type AggregationResultsScalarResult as cG, type NestedValueAggregationResult as cH, type ValueResult as cI, type RangeResult as cJ, type ScalarResult as cK, type NestedResultValue as cL, type NestedResultValueResultOneOf as cM, type Results as cN, type DateHistogramResult as cO, type GroupByValueResults as cP, type DateHistogramResults as cQ, type NestedResults as cR, type AggregationResults as cS, type AggregationResultsResultOneOf as cT, type QueryPoliciesRequest as cU, type CursorQueryPagingMethodOneOf as cV, type BookingPolicyWithServices as cW, type QueryBookingFormsRequest as cX, type BookingForm as cY, type FormDetails as cZ, type ConnectedService as c_, type QueryV2PagingMethodOneOf as ca, type Sorting as cb, type Paging as cc, type CursorPaging as cd, type QueryServicesResponse as ce, type PagingMetadataV2 as cf, type Cursors as cg, type SearchServicesRequest as ch, type CursorSearchPagingMethodOneOf as ci, type Aggregation as cj, type AggregationKindOneOf as ck, type RangeBucket as cl, type IncludeMissingValuesOptions as cm, type ValueAggregation as cn, type ValueAggregationOptionsOneOf as co, type RangeAggregation as cp, type ScalarAggregation as cq, type DateHistogramAggregation as cr, type NestedAggregationItem as cs, type NestedAggregationItemKindOneOf as ct, type NestedAggregation as cu, type GroupByAggregation as cv, type GroupByAggregationKindOneOf as cw, type SearchDetails as cx, type CursorPagingMetadata as cy, type AggregationData as cz, type BulkDeleteServicesOptions as d, type HtmlSitePublished as d$, type QueryLocationsRequest as d0, type QueryLocationsFilter as d1, type BusinessLocations as d2, type CustomLocations as d3, type CustomerLocations as d4, type QueryCategoriesRequest as d5, type QueryCategoriesFilter as d6, type QueryServicesMultiLanguageRequest as d7, type QueryServicesMultiLanguageResponse as d8, type SetServiceLocationsRequest as d9, type Subdivision as dA, type LocationsLocation as dB, type LocationsAddress as dC, type LocationsStreetAddress as dD, type LocationsAddressLocation as dE, type BusinessSchedule as dF, type TimePeriod as dG, type SpecialHourPeriod as dH, type Rate as dI, type Price as dJ, type Availability as dK, type AvailabilityConstraints as dL, type SplitInterval as dM, type Participant as dN, type ExternalCalendarOverrides as dO, type Version as dP, type ConferenceProvider as dQ, type CalendarConference as dR, type BusinessLocation as dS, type BenefitNotification as dT, type Benefit as dU, type EntryPass as dV, type Discount as dW, type DiscountDiscountOneOf as dX, type Behavior as dY, type BehaviorBehaviorOneOf as dZ, type UserDomainInfoChangedEvent as d_, type RemovedLocationSessionsAction as da, type RemovedLocationSessionsActionActionOptionsOneOf as db, type MoveToNewLocationsOptions as dc, type EnablePricingPlansForServiceRequest as dd, type InvalidPricingPlan as de, type DisablePricingPlansForServiceRequest as df, type SetCustomSlugRequest as dg, type ValidateSlugRequest as dh, type CloneServiceRequest as di, type CategoryNotification as dj, type Category as dk, type Empty as dl, type ResourceNotification as dm, type Resource as dn, type FocalPoint as dp, type Schedule as dq, type RecurringInterval as dr, type Interval as ds, type Frequency as dt, type LinkedSchedule as du, type Location as dv, type Address as dw, type AddressStreetOneOf as dx, type StreetAddress as dy, type AddressLocation as dz, type BulkDeleteServicesResponse as e, type Page as e0, type SitePropertiesNotification as e1, type SitePropertiesEvent as e2, type Properties as e3, type Categories as e4, type Locale as e5, type V4Address as e6, type AddressHint as e7, type GeoCoordinates as e8, type Multilingual as e9, type SupportedLanguage as ea, type ConsentPolicy as eb, type Translation as ec, type ChangeContext as ed, type ChangeContextPayloadOneOf as ee, type PropertiesChange as ef, type SiteCreated as eg, type SiteCloned as eh, type BaseEventMetadata as ei, type EventMetadata as ej, type ServiceCreatedEnvelope as ek, type ServiceDeletedEnvelope as el, type ServiceUpdatedEnvelope as em, type ServicesQueryResult as en, type BulkDeleteServicesByFilterOptions as f, type BulkDeleteServicesByFilterResponse as g, type ServicesQueryBuilder as h, type SearchServicesResponse as i, type CursorQuery as j, type QueryPoliciesResponse as k, type QueryBookingFormsOptions as l, type QueryBookingFormsResponse as m, type CountServicesOptions as n, type CountServicesResponse as o, type QueryLocationsOptions as p, type QueryLocationsResponse as q, type QueryCategoriesOptions as r, type QueryCategoriesResponse as s, type SetServiceLocationsOptions as t, type SetServiceLocationsResponse as u, type DisablePricingPlansForServiceOptions as v, type DisablePricingPlansForServiceResponse as w, type SetCustomSlugOptions as x, type SetCustomSlugResponse as y, type ValidateSlugOptions as z };