@wix/bookings 1.0.105 → 1.0.106

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 (81) hide show
  1. package/build/cjs/src/bookings-availability-v1-slot-availability.types.d.ts +2 -2
  2. package/build/cjs/src/bookings-availability-v1-slot-availability.universal.d.ts +2 -2
  3. package/build/cjs/src/bookings-calendar-v1-session.types.d.ts +13 -15
  4. package/build/cjs/src/bookings-calendar-v1-session.types.js.map +1 -1
  5. package/build/cjs/src/bookings-calendar-v1-session.universal.d.ts +13 -17
  6. package/build/cjs/src/bookings-calendar-v1-session.universal.js +0 -1
  7. package/build/cjs/src/bookings-calendar-v1-session.universal.js.map +1 -1
  8. package/build/cjs/src/bookings-calendar-v2-external-calendar.public.d.ts +3 -3
  9. package/build/cjs/src/bookings-calendar-v2-external-calendar.public.js +1 -1
  10. package/build/cjs/src/bookings-calendar-v2-external-calendar.public.js.map +1 -1
  11. package/build/cjs/src/bookings-calendar-v2-external-calendar.types.d.ts +14 -16
  12. package/build/cjs/src/bookings-calendar-v2-external-calendar.types.js.map +1 -1
  13. package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.d.ts +15 -21
  14. package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js +4 -9
  15. package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
  16. package/build/cjs/src/bookings-calendar-v2-session-view.types.d.ts +11 -11
  17. package/build/cjs/src/bookings-calendar-v2-session-view.universal.d.ts +11 -11
  18. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +3 -3
  19. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.js +1 -1
  20. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.js.map +1 -1
  21. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +24 -26
  22. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -1
  23. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +25 -31
  24. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js +3 -9
  25. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
  26. package/build/cjs/src/bookings-reader-v2-extended-booking.types.d.ts +31 -31
  27. package/build/cjs/src/bookings-reader-v2-extended-booking.universal.d.ts +31 -31
  28. package/build/cjs/src/bookings-services-v2-service.http.js +1 -1
  29. package/build/cjs/src/bookings-services-v2-service.http.js.map +1 -1
  30. package/build/cjs/src/bookings-services-v2-service.public.d.ts +1 -1
  31. package/build/cjs/src/bookings-services-v2-service.types.d.ts +96 -48
  32. package/build/cjs/src/bookings-services-v2-service.types.js.map +1 -1
  33. package/build/cjs/src/bookings-services-v2-service.universal.d.ts +96 -48
  34. package/build/cjs/src/bookings-services-v2-service.universal.js.map +1 -1
  35. package/build/cjs/src/bookings-v2-booking.types.d.ts +72 -72
  36. package/build/cjs/src/bookings-v2-booking.universal.d.ts +72 -72
  37. package/build/cjs/src/bookings-v2-price-info.http.js +1 -1
  38. package/build/cjs/src/bookings-v2-price-info.http.js.map +1 -1
  39. package/build/cjs/src/bookings-v2-price-info.types.d.ts +31 -31
  40. package/build/cjs/src/bookings-v2-price-info.universal.d.ts +31 -31
  41. package/build/es/src/bookings-availability-v1-slot-availability.types.d.ts +2 -2
  42. package/build/es/src/bookings-availability-v1-slot-availability.universal.d.ts +2 -2
  43. package/build/es/src/bookings-calendar-v1-session.types.d.ts +13 -15
  44. package/build/es/src/bookings-calendar-v1-session.types.js.map +1 -1
  45. package/build/es/src/bookings-calendar-v1-session.universal.d.ts +13 -17
  46. package/build/es/src/bookings-calendar-v1-session.universal.js +0 -1
  47. package/build/es/src/bookings-calendar-v1-session.universal.js.map +1 -1
  48. package/build/es/src/bookings-calendar-v2-external-calendar.public.d.ts +3 -3
  49. package/build/es/src/bookings-calendar-v2-external-calendar.public.js +1 -1
  50. package/build/es/src/bookings-calendar-v2-external-calendar.public.js.map +1 -1
  51. package/build/es/src/bookings-calendar-v2-external-calendar.types.d.ts +14 -16
  52. package/build/es/src/bookings-calendar-v2-external-calendar.types.js.map +1 -1
  53. package/build/es/src/bookings-calendar-v2-external-calendar.universal.d.ts +15 -21
  54. package/build/es/src/bookings-calendar-v2-external-calendar.universal.js +4 -9
  55. package/build/es/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
  56. package/build/es/src/bookings-calendar-v2-session-view.types.d.ts +11 -11
  57. package/build/es/src/bookings-calendar-v2-session-view.universal.d.ts +11 -11
  58. package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +3 -3
  59. package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.js +1 -1
  60. package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.js.map +1 -1
  61. package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +24 -26
  62. package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -1
  63. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +25 -31
  64. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js +3 -9
  65. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
  66. package/build/es/src/bookings-reader-v2-extended-booking.types.d.ts +31 -31
  67. package/build/es/src/bookings-reader-v2-extended-booking.universal.d.ts +31 -31
  68. package/build/es/src/bookings-services-v2-service.http.js +1 -1
  69. package/build/es/src/bookings-services-v2-service.http.js.map +1 -1
  70. package/build/es/src/bookings-services-v2-service.public.d.ts +1 -1
  71. package/build/es/src/bookings-services-v2-service.types.d.ts +96 -48
  72. package/build/es/src/bookings-services-v2-service.types.js.map +1 -1
  73. package/build/es/src/bookings-services-v2-service.universal.d.ts +96 -48
  74. package/build/es/src/bookings-services-v2-service.universal.js.map +1 -1
  75. package/build/es/src/bookings-v2-booking.types.d.ts +72 -72
  76. package/build/es/src/bookings-v2-booking.universal.d.ts +72 -72
  77. package/build/es/src/bookings-v2-price-info.http.js +1 -1
  78. package/build/es/src/bookings-v2-price-info.http.js.map +1 -1
  79. package/build/es/src/bookings-v2-price-info.types.d.ts +31 -31
  80. package/build/es/src/bookings-v2-price-info.universal.d.ts +31 -31
  81. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-v2-price-info.http.js","sourceRoot":"","sources":["../../../src/bookings-v2-price-info.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAUhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,QAAQ,GAAG;IACf,WAAW,EAAE,2BAA2B;IACxC,SAAS,EAAE,2BAA2B;IACtC,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,2BAA2B;IACxC,cAAc,EAAE,iBAAiB;CAClC,CAAC;AACF,MAAM,gBAAgB,GAAG,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,CAAC;AAChF,MAAM,sBAAsB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACvD,MAAM,uBAAuB,GAAG,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAC5D,MAAM,eAAe,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AACpD,MAAM,oBAAoB,GAAG,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,CAAC;AACtE,MAAM,qBAAqB,GAAG,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAC1D,MAAM,UAAU,GAAG;IACjB,OAAO,EAAE,6BAA6B;IACtC,eAAe,EAAE,QAAQ;IACzB,gBAAgB,EAAE,kBAAkB;CACrC,CAAC;AAEF,SAAS,0DAA0D,CACjE,IAA8C;IAE9C,MAAM,gBAAgB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QAChE,gBAAgB;QAChB,UAAU;KACX,CAAC,CAAC;IAEH,SAAS,gBAAgB,CAAC,EAAE,IAAI,EAAO;QACrC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,MAAa;YACrB,GAAG,EAAE,0DAA0D,CAAC;gBAC9D,SAAS,EAAE,uBAAuB;gBAClC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,gBAAgB,CAAC,OAAO,GAAG,OAAO,CAAC;IAEnC,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
@@ -1,12 +1,4 @@
1
1
  export interface PriceInfo extends PriceInfoTotalPriceOneOf {
2
- /** List of line items, including the number of participants and the price per participant. */
3
- bookingLineItems?: BookingLineItem[];
4
- /**
5
- * Total deposit the customer must pay when booking the service.
6
- *
7
- * Available when: The service includes a deposit.
8
- */
9
- deposit?: number | null;
10
2
  /**
11
3
  * Calculated total price. Available only when the
12
4
  * [service](https://dev.wix.com/api/rest/wix-bookings/services/service/create-service)'s
@@ -21,6 +13,14 @@ export interface PriceInfo extends PriceInfoTotalPriceOneOf {
21
13
  * [`schedule.rate.priceText`](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/schedule/schedule-object) property.
22
14
  */
23
15
  priceDescription?: string;
16
+ /** List of line items, including the number of participants and the price per participant. */
17
+ bookingLineItems?: BookingLineItem[];
18
+ /**
19
+ * Total deposit the customer must pay when booking the service.
20
+ *
21
+ * Available when: The service includes a deposit.
22
+ */
23
+ deposit?: number | null;
24
24
  }
25
25
  /** @oneof */
26
26
  export interface PriceInfoTotalPriceOneOf {
@@ -66,12 +66,6 @@ export interface BookingLineItem {
66
66
  pricePerParticipant?: number | null;
67
67
  }
68
68
  export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
69
- /**
70
- * ID of the corresponding option for the choice. For example, the choice `child`
71
- * could correspond to the option `ageGroup`. In this case, `optionId` is the ID
72
- * for the `ageGroup` option.
73
- */
74
- optionId?: string;
75
69
  /**
76
70
  * Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.
77
71
  * Choices are specific values for an option the customer can choose to book. For example,
@@ -79,6 +73,12 @@ export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
79
73
  * Each choice may have a different price.
80
74
  */
81
75
  custom?: string;
76
+ /**
77
+ * ID of the corresponding option for the choice. For example, the choice `child`
78
+ * could correspond to the option `ageGroup`. In this case, `optionId` is the ID
79
+ * for the `ageGroup` option.
80
+ */
81
+ optionId?: string;
82
82
  }
83
83
  /** @oneof */
84
84
  export interface ServiceChoiceChoiceOneOf {
@@ -104,6 +104,13 @@ export interface CalculatePriceRequest {
104
104
  }
105
105
  /** The booking object, version 2. */
106
106
  export interface Booking extends BookingParticipantsInfoOneOf {
107
+ /** Total number of participants. Available only when the booking includes a single service variant. */
108
+ totalParticipants?: number;
109
+ /**
110
+ * Information about the booked service choices and participants.
111
+ * Available only when the booking includes multiple service variants.
112
+ */
113
+ participantsChoices?: ParticipantChoices;
107
114
  /**
108
115
  * Booking ID.
109
116
  * @readonly
@@ -197,13 +204,6 @@ export interface Booking extends BookingParticipantsInfoOneOf {
197
204
  * @readonly
198
205
  */
199
206
  doubleBooked?: boolean | null;
200
- /** Total number of participants. Available only when the booking includes a single service variant. */
201
- totalParticipants?: number;
202
- /**
203
- * Information about the booked service choices and participants.
204
- * Available only when the booking includes multiple service variants.
205
- */
206
- participantsChoices?: ParticipantChoices;
207
207
  }
208
208
  /** @oneof */
209
209
  export interface BookingParticipantsInfoOneOf {
@@ -216,6 +216,10 @@ export interface BookingParticipantsInfoOneOf {
216
216
  participantsChoices?: ParticipantChoices;
217
217
  }
218
218
  export interface BookedEntity extends BookedEntityItemOneOf {
219
+ /** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
220
+ slot?: BookedSlot;
221
+ /** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
222
+ schedule?: BookedSchedule;
219
223
  /** Session title at the time of booking. */
220
224
  title?: string | null;
221
225
  /**
@@ -226,10 +230,6 @@ export interface BookedEntity extends BookedEntityItemOneOf {
226
230
  * + "COURSE" Courses.
227
231
  */
228
232
  tags?: string[] | null;
229
- /** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
230
- slot?: BookedSlot;
231
- /** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
232
- schedule?: BookedSchedule;
233
233
  }
234
234
  /** @oneof */
235
235
  export interface BookedEntityItemOneOf {
@@ -345,6 +345,10 @@ export interface ContactDetails {
345
345
  }
346
346
  /** Physical address */
347
347
  export interface Address extends AddressStreetOneOf {
348
+ /** Street name, number and apartment number. */
349
+ streetAddress?: StreetAddress;
350
+ /** Main address line, usually street and number, as free text. */
351
+ addressLine?: string | null;
348
352
  /** Country code. */
349
353
  country?: string | null;
350
354
  /** Subdivision. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
@@ -365,10 +369,6 @@ export interface Address extends AddressStreetOneOf {
365
369
  countryFullname?: string | null;
366
370
  /** Multi-level subdivisions from top to bottom. */
367
371
  subdivisions?: Subdivision[];
368
- /** Street name, number and apartment number. */
369
- streetAddress?: StreetAddress;
370
- /** Main address line, usually street and number, as free text. */
371
- addressLine?: string | null;
372
372
  }
373
373
  /** @oneof */
374
374
  export interface AddressStreetOneOf {
@@ -513,8 +513,6 @@ export interface ParticipantNotification {
513
513
  message?: string | null;
514
514
  }
515
515
  export interface IdentificationData extends IdentificationDataIdOneOf {
516
- /** ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system. */
517
- contactId?: string | null;
518
516
  /** ID of a site visitor that has not logged in to the site. */
519
517
  anonymousVisitorId?: string;
520
518
  /** ID of a site visitor that has logged in to the site. */
@@ -523,6 +521,8 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
523
521
  wixUserId?: string;
524
522
  /** ID of an app. */
525
523
  appId?: string;
524
+ /** ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system. */
525
+ contactId?: string | null;
526
526
  }
527
527
  /** @oneof */
528
528
  export interface IdentificationDataIdOneOf {
@@ -5,14 +5,6 @@ export declare const __debug: {
5
5
  };
6
6
  };
7
7
  export interface PriceInfo extends PriceInfoTotalPriceOneOf {
8
- /** List of line items, including the number of participants and the price per participant. */
9
- bookingLineItems?: BookingLineItem[];
10
- /**
11
- * Total deposit the customer must pay when booking the service.
12
- *
13
- * Available when: The service includes a deposit.
14
- */
15
- deposit?: number | null;
16
8
  /**
17
9
  * Calculated total price. Available only when the
18
10
  * service's
@@ -27,6 +19,14 @@ export interface PriceInfo extends PriceInfoTotalPriceOneOf {
27
19
  * `schedule.rate.priceText` property.
28
20
  */
29
21
  priceDescription?: string;
22
+ /** List of line items, including the number of participants and the price per participant. */
23
+ bookingLineItems?: BookingLineItem[];
24
+ /**
25
+ * Total deposit the customer must pay when booking the service.
26
+ *
27
+ * Available when: The service includes a deposit.
28
+ */
29
+ deposit?: number | null;
30
30
  }
31
31
  /** @oneof */
32
32
  export interface PriceInfoTotalPriceOneOf {
@@ -69,12 +69,6 @@ export interface BookingLineItem {
69
69
  pricePerParticipant?: number | null;
70
70
  }
71
71
  export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
72
- /**
73
- * ID of the corresponding option for the choice. For example, the choice `child`
74
- * could correspond to the option `ageGroup`. In this case, `optionId` is the ID
75
- * for the `ageGroup` option.
76
- */
77
- optionId?: string;
78
72
  /**
79
73
  * Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.
80
74
  * Choices are specific values for an option the customer can choose to book. For example,
@@ -82,6 +76,12 @@ export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
82
76
  * Each choice may have a different price.
83
77
  */
84
78
  custom?: string;
79
+ /**
80
+ * ID of the corresponding option for the choice. For example, the choice `child`
81
+ * could correspond to the option `ageGroup`. In this case, `optionId` is the ID
82
+ * for the `ageGroup` option.
83
+ */
84
+ optionId?: string;
85
85
  }
86
86
  /** @oneof */
87
87
  export interface ServiceChoiceChoiceOneOf {
@@ -107,6 +107,13 @@ export interface CalculatePriceRequest {
107
107
  }
108
108
  /** The booking object, version 2. */
109
109
  export interface Booking extends BookingParticipantsInfoOneOf {
110
+ /** Total number of participants. Available only when the booking includes a single service variant. */
111
+ totalParticipants?: number;
112
+ /**
113
+ * Information about the booked service choices and participants.
114
+ * Available only when the booking includes multiple service variants.
115
+ */
116
+ participantsChoices?: ParticipantChoices;
110
117
  /**
111
118
  * Booking ID.
112
119
  * @readonly
@@ -199,13 +206,6 @@ export interface Booking extends BookingParticipantsInfoOneOf {
199
206
  * @readonly
200
207
  */
201
208
  doubleBooked?: boolean | null;
202
- /** Total number of participants. Available only when the booking includes a single service variant. */
203
- totalParticipants?: number;
204
- /**
205
- * Information about the booked service choices and participants.
206
- * Available only when the booking includes multiple service variants.
207
- */
208
- participantsChoices?: ParticipantChoices;
209
209
  }
210
210
  /** @oneof */
211
211
  export interface BookingParticipantsInfoOneOf {
@@ -218,6 +218,10 @@ export interface BookingParticipantsInfoOneOf {
218
218
  participantsChoices?: ParticipantChoices;
219
219
  }
220
220
  export interface BookedEntity extends BookedEntityItemOneOf {
221
+ /** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
222
+ slot?: BookedSlot;
223
+ /** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
224
+ schedule?: BookedSchedule;
221
225
  /** Session title at the time of booking. */
222
226
  title?: string | null;
223
227
  /**
@@ -228,10 +232,6 @@ export interface BookedEntity extends BookedEntityItemOneOf {
228
232
  * + "COURSE" Courses.
229
233
  */
230
234
  tags?: string[] | null;
231
- /** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
232
- slot?: BookedSlot;
233
- /** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
234
- schedule?: BookedSchedule;
235
235
  }
236
236
  /** @oneof */
237
237
  export interface BookedEntityItemOneOf {
@@ -347,6 +347,10 @@ export interface ContactDetails {
347
347
  }
348
348
  /** Physical address */
349
349
  export interface Address extends AddressStreetOneOf {
350
+ /** Street name, number and apartment number. */
351
+ streetAddress?: StreetAddress;
352
+ /** Main address line, usually street and number, as free text. */
353
+ addressLine?: string | null;
350
354
  /** Country code. */
351
355
  country?: string | null;
352
356
  /** Subdivision. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
@@ -367,10 +371,6 @@ export interface Address extends AddressStreetOneOf {
367
371
  countryFullname?: string | null;
368
372
  /** Multi-level subdivisions from top to bottom. */
369
373
  subdivisions?: Subdivision[];
370
- /** Street name, number and apartment number. */
371
- streetAddress?: StreetAddress;
372
- /** Main address line, usually street and number, as free text. */
373
- addressLine?: string | null;
374
374
  }
375
375
  /** @oneof */
376
376
  export interface AddressStreetOneOf {
@@ -512,8 +512,6 @@ export interface ParticipantNotification {
512
512
  message?: string | null;
513
513
  }
514
514
  export interface IdentificationData extends IdentificationDataIdOneOf {
515
- /** ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system. */
516
- contactId?: string | null;
517
515
  /** ID of a site visitor that has not logged in to the site. */
518
516
  anonymousVisitorId?: string;
519
517
  /** ID of a site visitor that has logged in to the site. */
@@ -522,6 +520,8 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
522
520
  wixUserId?: string;
523
521
  /** ID of an app. */
524
522
  appId?: string;
523
+ /** ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system. */
524
+ contactId?: string | null;
525
525
  }
526
526
  /** @oneof */
527
527
  export interface IdentificationDataIdOneOf {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/bookings",
3
- "version": "1.0.105",
3
+ "version": "1.0.106",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -33,5 +33,5 @@
33
33
  "groupId": "com.wixpress.public-sdk-autogen"
34
34
  }
35
35
  },
36
- "falconPackageHash": "9e3cc5f6e935f1329697ab5f83d229fbe86840f75f45296f99e839c6"
36
+ "falconPackageHash": "4d49d9a6ce73cb76aee604c69eecfb0e008806b418acb40c428e9a93"
37
37
  }