@wix/auto_sdk_bookings_services 1.0.304 → 1.0.306

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.
@@ -1,4 +1,4 @@
1
- import { d4 as CreateServiceRequest$1, d5 as CreateServiceResponse$1, d9 as BulkCreateServicesRequest$1, a as BulkCreateServicesResponse$1, de as GetServiceRequest$1, df as GetServiceResponse$1, dk as UpdateServiceRequest$1, dl as UpdateServiceResponse$1, dm as BulkUpdateServicesRequest$1, e as BulkUpdateServicesResponse$1, dp as BulkUpdateServicesByFilterRequest$1, h as BulkUpdateServicesByFilterResponse$1, dq as DeleteServiceRequest$1, ds as DeleteServiceResponse$1, dt as BulkDeleteServicesRequest$1, j as BulkDeleteServicesResponse$1, du as BulkDeleteServicesByFilterRequest$1, l as BulkDeleteServicesByFilterResponse$1, dv as QueryServicesRequest$1, dB as QueryServicesResponse$1, dE as SearchServicesRequest$1, n as SearchServicesResponse$1, ei as QueryPoliciesRequest$1, Q as QueryPoliciesResponse$1, el as QueryBookingFormsRequest$1, q as QueryBookingFormsResponse$1, ep as CountServicesRequest$1, t as CountServicesResponse$1, eq as QueryLocationsRequest$1, v as QueryLocationsResponse$1, ev as QueryCategoriesRequest$1, x as QueryCategoriesResponse$1, ez as SetServiceLocationsRequest$1, z as SetServiceLocationsResponse$1, eD as EnablePricingPlansForServiceRequest$1, E as EnablePricingPlansForServiceResponse$1, eG as DisablePricingPlansForServiceRequest$1, H as DisablePricingPlansForServiceResponse$1, eH as SetCustomSlugRequest$1, K as SetCustomSlugResponse$1, eI as ValidateSlugRequest$1, N as ValidateSlugResponse$1, eJ as CloneServiceRequest$1, O as CloneServiceResponse$1, f8 as CreateAddOnGroupRequest$1, T as CreateAddOnGroupResponse$1, f9 as DeleteAddOnGroupRequest$1, fa as DeleteAddOnGroupResponse$1, fb as UpdateAddOnGroupRequest$1, _ as UpdateAddOnGroupResponse$1, fc as ListAddOnGroupsByServiceIdRequest$1, a1 as ListAddOnGroupsByServiceIdResponse$1, fg as SetAddOnsForGroupRequest$1, a3 as SetAddOnsForGroupResponse$1 } from './bookings-services-v2-service-services.universal-CqFRcCnR.mjs';
1
+ import { d4 as CreateServiceRequest$1, d5 as CreateServiceResponse$1, d9 as BulkCreateServicesRequest$1, a as BulkCreateServicesResponse$1, de as GetServiceRequest$1, df as GetServiceResponse$1, dk as UpdateServiceRequest$1, dl as UpdateServiceResponse$1, dm as BulkUpdateServicesRequest$1, e as BulkUpdateServicesResponse$1, dp as BulkUpdateServicesByFilterRequest$1, h as BulkUpdateServicesByFilterResponse$1, dq as DeleteServiceRequest$1, ds as DeleteServiceResponse$1, dt as BulkDeleteServicesRequest$1, j as BulkDeleteServicesResponse$1, du as BulkDeleteServicesByFilterRequest$1, l as BulkDeleteServicesByFilterResponse$1, dv as QueryServicesRequest$1, dB as QueryServicesResponse$1, dE as SearchServicesRequest$1, n as SearchServicesResponse$1, ei as QueryPoliciesRequest$1, Q as QueryPoliciesResponse$1, el as QueryBookingFormsRequest$1, q as QueryBookingFormsResponse$1, ep as CountServicesRequest$1, t as CountServicesResponse$1, eq as QueryLocationsRequest$1, v as QueryLocationsResponse$1, ev as QueryCategoriesRequest$1, x as QueryCategoriesResponse$1, ez as SetServiceLocationsRequest$1, z as SetServiceLocationsResponse$1, eD as EnablePricingPlansForServiceRequest$1, E as EnablePricingPlansForServiceResponse$1, eG as DisablePricingPlansForServiceRequest$1, H as DisablePricingPlansForServiceResponse$1, eH as SetCustomSlugRequest$1, K as SetCustomSlugResponse$1, eI as ValidateSlugRequest$1, N as ValidateSlugResponse$1, eJ as CloneServiceRequest$1, O as CloneServiceResponse$1, f8 as CreateAddOnGroupRequest$1, T as CreateAddOnGroupResponse$1, f9 as DeleteAddOnGroupRequest$1, fa as DeleteAddOnGroupResponse$1, fb as UpdateAddOnGroupRequest$1, _ as UpdateAddOnGroupResponse$1, fc as ListAddOnGroupsByServiceIdRequest$1, a1 as ListAddOnGroupsByServiceIdResponse$1, fg as SetAddOnsForGroupRequest$1, a3 as SetAddOnsForGroupResponse$1 } from './bookings-services-v2-service-services.universal-Cx3Wl9sr.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /** The `service` object represents an offering that a business provides to its customers. */
@@ -1866,12 +1866,10 @@ interface StaffMember {
1866
1866
  */
1867
1867
  mainMedia?: StaffMediaItem;
1868
1868
  /**
1869
- * Working hours location coverage for this staff member.
1870
- * Returned on each entry in `staffMemberDetails.staff_members` when both `STAFF_MEMBER_DETAILS`
1871
- * and `STAFF_WORKING_HOURS_LOCATIONS` are in `conditional_fields`.
1872
- * Omitted when the staff member has no working-hours schedules.
1873
- * If Calendar v3 is unavailable, the entire request fails.
1874
- * @internal
1869
+ * Business locations where the staff member is available, based on their working hours.
1870
+ * Returned only when both `STAFF_MEMBER_DETAILS` and `STAFF_WORKING_HOURS_LOCATIONS` are passed in `conditionalFields`.
1871
+ * Can be omitted for a staff member who has no working hours. Treat a missing value the same as `availableAtAllLocations` set to `false` with an empty `locationIds`.
1872
+ * When the working hours data can't be retrieved, the entire request fails.
1875
1873
  * @readonly
1876
1874
  */
1877
1875
  workingHoursLocationCoverage?: WorkingHoursLocationCoverage;
@@ -1886,36 +1884,23 @@ interface StaffMediaItemItemOneOf {
1886
1884
  image?: Image;
1887
1885
  }
1888
1886
  /**
1889
- * Working hours location coverage derived from Calendar v3 WORKING_HOURS events
1890
- * (`NONE` and `MASTER` recurrence types). The server paginates through Calendar results
1891
- * (100 events per page) until all matching events are collected.
1892
- *
1893
- * Coverage states when enrichment is requested:
1894
- * + `available_at_all_locations = true`: Staff applies to every business location. Set when the staff
1895
- * uses default business working hours, or has any WORKING_HOURS event without a location ID
1896
- * (including when mixed with location-specific events).
1897
- * + `available_at_all_locations = false` with non-empty `location_ids`: Staff has location-specific
1898
- * WORKING_HOURS only. Show the staff member only when the selected location is in `location_ids`.
1899
- * + `available_at_all_locations = false` with empty `location_ids`: Staff has working-hours schedules
1900
- * but no applicable location coverage was found.
1901
- *
1902
- * Recommended client filter:
1903
- * `availableAtAllLocations || locationIds.includes(selectedLocationId)`
1887
+ * Business locations where a staff member is available, based on their current and upcoming working hours.
1904
1888
  *
1905
- * Omitted when `STAFF_WORKING_HOURS_LOCATIONS` is not requested.
1889
+ * Coverage has 3 possible states:
1890
+ * + `availableAtAllLocations` is `true`: The staff member is available at every business location. This is the case when the staff member uses the business's default working hours, or when at least one of their working hours isn't limited to a specific location.
1891
+ * + `availableAtAllLocations` is `false` and `locationIds` isn't empty: The staff member is available at the business locations listed in `locationIds`.
1892
+ * + `availableAtAllLocations` is `false` and `locationIds` is empty: The staff member has no current or upcoming working hours, so they aren't available at any business location.
1893
+ * To check whether a staff member is available at a specific location, use `availableAtAllLocations || locationIds.includes(locationId)`.
1906
1894
  */
1907
1895
  interface WorkingHoursLocationCoverage {
1908
1896
  /**
1909
- * Whether this staff member has working hours that apply to all business locations.
1910
- * Always set to `true` or `false` when enrichment is requested.
1911
- * @internal
1897
+ * Whether the staff member is available at every business location.
1912
1898
  * @readonly
1913
1899
  */
1914
1900
  availableAtAllLocations?: boolean | null;
1915
1901
  /**
1916
- * Business location IDs where this staff member has location-specific WORKING_HOURS calendar events.
1917
- * Ignored when `available_at_all_locations` is `true`.
1918
- * @internal
1902
+ * IDs of the business locations where the staff member has location-specific working hours.
1903
+ * Empty when `availableAtAllLocations` is `true`.
1919
1904
  * @format GUID
1920
1905
  * @readonly
1921
1906
  * @maxSize 100
@@ -2673,6 +2658,16 @@ interface Booking extends BookingParticipantsInfoOneOf {
2673
2658
  * @maxSize 5
2674
2659
  */
2675
2660
  additionalFees?: BookingAdditionalFee[];
2661
+ /**
2662
+ * Whether the booking is a test booking. The Wix user who owns the site creates test bookings to try the booking flow.
2663
+ * Apart from this field, Wix Bookings handles a test booking like any other booking.
2664
+ * You can set this field only when you create the booking, and only as the Wix user who owns the site or as a caller with permission to manage bookings.
2665
+ *
2666
+ * Default: `false`.
2667
+ * @internal
2668
+ * @immutable
2669
+ */
2670
+ demo?: boolean | null;
2676
2671
  }
2677
2672
  /** @oneof */
2678
2673
  interface BookingParticipantsInfoOneOf {
@@ -3922,13 +3917,10 @@ declare enum V2RequestedFields {
3922
3917
  /** When passed, `service.payment.discountInfo` is returned. */
3923
3918
  DISCOUNT_INFO_DETAILS = "DISCOUNT_INFO_DETAILS",
3924
3919
  /**
3925
- * Requires `STAFF_MEMBER_DETAILS`. Returns each staff member's working-hours location coverage at
3926
- * `staffMemberDetails.staffMembers[].workingHoursLocationCoverage` for filtering staff by business location.
3927
- * Coverage is derived from Calendar v3 WORKING_HOURS events (`NONE` and `MASTER` recurrence types),
3928
- * fetched with cursor pagination (100 events per page).
3929
- * If Calendar v3 is unavailable, the request fails.
3920
+ * Returns each staff member's working hours location coverage. See `staffMemberDetails.staffMembers.workingHoursLocationCoverage`.
3921
+ * Used only when `STAFF_MEMBER_DETAILS` is also passed. Otherwise, it has no effect.
3922
+ * When the working hours data can't be retrieved, the entire request fails.
3930
3923
  * @documentationMaturity preview
3931
- * @internal
3932
3924
  */
3933
3925
  STAFF_WORKING_HOURS_LOCATIONS = "STAFF_WORKING_HOURS_LOCATIONS",
3934
3926
  /**
@@ -3938,7 +3930,7 @@ declare enum V2RequestedFields {
3938
3930
  RESOURCE_DETAILS = "RESOURCE_DETAILS"
3939
3931
  }
3940
3932
  /** @enumType */
3941
- type V2RequestedFieldsWithLiterals = V2RequestedFields | 'STAFF_MEMBER_DETAILS' | 'RESOURCE_TYPE_DETAILS' | 'DISCOUNT_INFO_DETAILS' | 'RESOURCE_DETAILS';
3933
+ type V2RequestedFieldsWithLiterals = V2RequestedFields | 'STAFF_MEMBER_DETAILS' | 'RESOURCE_TYPE_DETAILS' | 'DISCOUNT_INFO_DETAILS' | 'STAFF_WORKING_HOURS_LOCATIONS' | 'RESOURCE_DETAILS';
3942
3934
  interface GetServiceResponse {
3943
3935
  /** Retrieved service. */
3944
3936
  service?: Service;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_bookings_services",
3
- "version": "1.0.304",
3
+ "version": "1.0.306",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.bookings.services.v2.service"
51
51
  }
52
52
  },
53
- "falconPackageHash": "b64970938399ff2c1857acb26470dc739ab5ef7f283e3239a3a0dc8f"
53
+ "falconPackageHash": "1f657eb6a8ca1a4004594c88603e8d281dbabe2d574ffade385663f2"
54
54
  }