@wix/auto_sdk_bookings_services 1.0.254 → 1.0.255

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 (29) hide show
  1. package/build/cjs/{bookings-services-v2-service-services.universal-C4INiLoL.d.ts → bookings-services-v2-service-services.universal-eA4yFYhG.d.ts} +64 -22
  2. package/build/cjs/index.d.ts +2 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2 -2
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +52 -21
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/es/{bookings-services-v2-service-services.universal-C4INiLoL.d.mts → bookings-services-v2-service-services.universal-eA4yFYhG.d.mts} +64 -22
  9. package/build/es/index.d.mts +2 -2
  10. package/build/es/index.mjs.map +1 -1
  11. package/build/es/index.typings.d.mts +2 -2
  12. package/build/es/index.typings.mjs.map +1 -1
  13. package/build/es/meta.d.mts +52 -21
  14. package/build/es/meta.mjs.map +1 -1
  15. package/build/internal/cjs/{bookings-services-v2-service-services.universal-DoKhtzZp.d.ts → bookings-services-v2-service-services.universal-B7pWpsjJ.d.ts} +54 -28
  16. package/build/internal/cjs/index.d.ts +2 -2
  17. package/build/internal/cjs/index.js.map +1 -1
  18. package/build/internal/cjs/index.typings.d.ts +2 -2
  19. package/build/internal/cjs/index.typings.js.map +1 -1
  20. package/build/internal/cjs/meta.d.ts +52 -21
  21. package/build/internal/cjs/meta.js.map +1 -1
  22. package/build/internal/es/{bookings-services-v2-service-services.universal-DoKhtzZp.d.mts → bookings-services-v2-service-services.universal-B7pWpsjJ.d.mts} +54 -28
  23. package/build/internal/es/index.d.mts +2 -2
  24. package/build/internal/es/index.mjs.map +1 -1
  25. package/build/internal/es/index.typings.d.mts +2 -2
  26. package/build/internal/es/index.typings.mjs.map +1 -1
  27. package/build/internal/es/meta.d.mts +52 -21
  28. package/build/internal/es/meta.mjs.map +1 -1
  29. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { cO as CreateServiceRequest$1, cP as CreateServiceResponse$1, cT as BulkCreateServicesRequest$1, a as BulkCreateServicesResponse$1, cY as GetServiceRequest$1, cZ as GetServiceResponse$1, d2 as UpdateServiceRequest$1, d3 as UpdateServiceResponse$1, d4 as BulkUpdateServicesRequest$1, d as BulkUpdateServicesResponse$1, d6 as BulkUpdateServicesByFilterRequest$1, f as BulkUpdateServicesByFilterResponse$1, d7 as DeleteServiceRequest$1, d9 as DeleteServiceResponse$1, da as BulkDeleteServicesRequest$1, h as BulkDeleteServicesResponse$1, db as BulkDeleteServicesByFilterRequest$1, j as BulkDeleteServicesByFilterResponse$1, dc as QueryServicesRequest$1, di as QueryServicesResponse$1, dl as SearchServicesRequest$1, l as SearchServicesResponse$1, e0 as QueryPoliciesRequest$1, Q as QueryPoliciesResponse$1, e3 as QueryBookingFormsRequest$1, o as QueryBookingFormsResponse$1, e7 as CountServicesRequest$1, r as CountServicesResponse$1, e8 as QueryLocationsRequest$1, t as QueryLocationsResponse$1, ed as QueryCategoriesRequest$1, v as QueryCategoriesResponse$1, eh as SetServiceLocationsRequest$1, x as SetServiceLocationsResponse$1, el as EnablePricingPlansForServiceRequest$1, E as EnablePricingPlansForServiceResponse$1, eo as DisablePricingPlansForServiceRequest$1, A as DisablePricingPlansForServiceResponse$1, ep as SetCustomSlugRequest$1, I as SetCustomSlugResponse$1, eq as ValidateSlugRequest$1, L as ValidateSlugResponse$1, er as CloneServiceRequest$1, M as CloneServiceResponse$1, eS as CreateAddOnGroupRequest$1, P as CreateAddOnGroupResponse$1, eT as DeleteAddOnGroupRequest$1, eU as DeleteAddOnGroupResponse$1, eV as UpdateAddOnGroupRequest$1, Y as UpdateAddOnGroupResponse$1, eW as ListAddOnGroupsByServiceIdRequest$1, $ as ListAddOnGroupsByServiceIdResponse$1, e_ as SetAddOnsForGroupRequest$1, a1 as SetAddOnsForGroupResponse$1 } from './bookings-services-v2-service-services.universal-C4INiLoL.mjs';
1
+ import { cO as CreateServiceRequest$1, cP as CreateServiceResponse$1, cT as BulkCreateServicesRequest$1, a as BulkCreateServicesResponse$1, cY as GetServiceRequest$1, cZ as GetServiceResponse$1, d2 as UpdateServiceRequest$1, d3 as UpdateServiceResponse$1, d4 as BulkUpdateServicesRequest$1, d as BulkUpdateServicesResponse$1, d6 as BulkUpdateServicesByFilterRequest$1, f as BulkUpdateServicesByFilterResponse$1, d7 as DeleteServiceRequest$1, d9 as DeleteServiceResponse$1, da as BulkDeleteServicesRequest$1, h as BulkDeleteServicesResponse$1, db as BulkDeleteServicesByFilterRequest$1, j as BulkDeleteServicesByFilterResponse$1, dc as QueryServicesRequest$1, di as QueryServicesResponse$1, dl as SearchServicesRequest$1, l as SearchServicesResponse$1, e0 as QueryPoliciesRequest$1, Q as QueryPoliciesResponse$1, e3 as QueryBookingFormsRequest$1, o as QueryBookingFormsResponse$1, e7 as CountServicesRequest$1, r as CountServicesResponse$1, e8 as QueryLocationsRequest$1, t as QueryLocationsResponse$1, ed as QueryCategoriesRequest$1, v as QueryCategoriesResponse$1, eh as SetServiceLocationsRequest$1, x as SetServiceLocationsResponse$1, el as EnablePricingPlansForServiceRequest$1, E as EnablePricingPlansForServiceResponse$1, eo as DisablePricingPlansForServiceRequest$1, A as DisablePricingPlansForServiceResponse$1, ep as SetCustomSlugRequest$1, I as SetCustomSlugResponse$1, eq as ValidateSlugRequest$1, L as ValidateSlugResponse$1, er as CloneServiceRequest$1, M as CloneServiceResponse$1, eS as CreateAddOnGroupRequest$1, P as CreateAddOnGroupResponse$1, eT as DeleteAddOnGroupRequest$1, eU as DeleteAddOnGroupResponse$1, eV as UpdateAddOnGroupRequest$1, Y as UpdateAddOnGroupResponse$1, eW as ListAddOnGroupsByServiceIdRequest$1, $ as ListAddOnGroupsByServiceIdResponse$1, e_ as SetAddOnsForGroupRequest$1, a1 as SetAddOnsForGroupResponse$1 } from './bookings-services-v2-service-services.universal-eA4yFYhG.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /** The `service` object represents an offering that a business provides to its customers. */
@@ -1213,6 +1213,26 @@ declare enum CompletionRequirement {
1213
1213
  }
1214
1214
  /** @enumType */
1215
1215
  type CompletionRequirementWithLiterals = CompletionRequirement | 'OPTIONAL' | 'REQUIRED_BEFORE_BOOKING';
1216
+ /** Rule restricting how frequently a customer can rebook the same service. */
1217
+ interface RebookingFrequencyPolicy {
1218
+ /**
1219
+ * Whether rebooking restrictions are enabled for the service. When `false`, customers can rebook immediately.
1220
+ *
1221
+ * Default: `false`
1222
+ */
1223
+ enabled?: boolean;
1224
+ /**
1225
+ * Whether customers can never rebook the same service. Only evaluated when `enabled` is `true`.
1226
+ *
1227
+ * Default: `false`
1228
+ */
1229
+ permanentBlock?: boolean;
1230
+ /**
1231
+ * Minimum number of minutes between the start times of bookings for the same service by the same customer.
1232
+ * Only enforced when `enabled` is `true` and `permanent_block` is `false`.
1233
+ */
1234
+ minTimeBetweenRebookingsMinutes?: number | null;
1235
+ }
1216
1236
  interface Schedule {
1217
1237
  /**
1218
1238
  * ID of the [schedule](https://dev.wix.com/docs/api-reference/business-management/calendar/schedules-v3/introduction)
@@ -2036,6 +2056,35 @@ interface BookedSlot {
2036
2056
  * @maxSize 3
2037
2057
  */
2038
2058
  resourceSelections?: ResourceSelection[];
2059
+ /**
2060
+ * Whether the booked slot spans one or more full days.
2061
+ * For class bookings, this value is synced from the linked calendar event.
2062
+ * For appointment bookings, this value is derived from the availability slot at booking creation or reschedule time.
2063
+ *
2064
+ * When `true`, `startDate` is set to `00:00:00` of the first day and `endDate` is set to `00:00:00` of the day after the last day (exclusive). Midnight boundaries are interpreted in the slot's `timezone`.
2065
+ *
2066
+ * Default: `false`
2067
+ */
2068
+ allDay?: boolean | null;
2069
+ /**
2070
+ * Duration unit type for the booking. Populated only for bookings of [services](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/service-object) configured with a duration range, such as hourly or daily duration-range services. Use together with `durationUnitCount` to determine the booked duration.
2071
+ *
2072
+ * Returned only when the service has a `schedule.availabilityConstraints.durationRange`.
2073
+ * @readonly
2074
+ */
2075
+ durationUnitType?: DurationUnitTypeWithLiterals;
2076
+ /**
2077
+ * Number of booked duration units. Populated only for bookings of [services](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/service-object) configured with a duration range.
2078
+ * The meaning depends on `durationUnitType`:
2079
+ * - `HOUR`: Duration in minutes. For example, `120` for a 2-hour booking.
2080
+ * - `DAY`: Duration in days. For example, `3` for a 3-day booking.
2081
+ *
2082
+ * Returned only when the service has a `schedule.availabilityConstraints.durationRange`.
2083
+ * @min 1
2084
+ * @max 1440
2085
+ * @readonly
2086
+ */
2087
+ durationUnitCount?: number | null;
2039
2088
  }
2040
2089
  interface BookedResource {
2041
2090
  /**
@@ -2128,7 +2177,9 @@ declare enum SelectionMethod {
2128
2177
  /** @enumType */
2129
2178
  type SelectionMethodWithLiterals = SelectionMethod | 'SPECIFIC_RESOURCE' | 'ANY_RESOURCE' | 'NO_SELECTION';
2130
2179
  declare enum DurationUnitType {
2180
+ /** Hourly duration. When `durationUnitType` is `HOUR`, `durationUnitCount` represents the booked duration in minutes. */
2131
2181
  HOUR = "HOUR",
2182
+ /** Daily duration. When `durationUnitType` is `DAY`, `durationUnitCount` represents the booked duration in days. */
2132
2183
  DAY = "DAY"
2133
2184
  }
2134
2185
  /** @enumType */
@@ -2798,26 +2849,6 @@ interface AccountInfo {
2798
2849
  */
2799
2850
  siteId?: string | null;
2800
2851
  }
2801
- /** Rule restricting how frequently a customer can rebook the same service. */
2802
- interface RebookingFrequencyPolicy {
2803
- /**
2804
- * Whether rebooking restrictions are enabled for the service. When `false`, customers can rebook immediately.
2805
- *
2806
- * Default: `false`
2807
- */
2808
- enabled?: boolean;
2809
- /**
2810
- * Whether customers can never rebook the same service. Only evaluated when `enabled` is `true`.
2811
- *
2812
- * Default: `false`
2813
- */
2814
- permanentBlock?: boolean;
2815
- /**
2816
- * Minimum number of minutes between the start times of bookings for the same service by the same customer.
2817
- * Only enforced when `enabled` is `true` and `permanent_block` is `false`.
2818
- */
2819
- minTimeBetweenRebookingsMinutes?: number | null;
2820
- }
2821
2852
  interface CreateServiceRequest {
2822
2853
  /** Service to create. */
2823
2854
  service: Service;