@wix/auto_sdk_bookings_services 1.0.304 → 1.0.305

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-CO9BnWWs.js';
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-oLBaHt-W.js';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /** The `service` object represents an offering that a business provides to its customers. */
@@ -1574,6 +1574,14 @@ interface StaffMember {
1574
1574
  * @readonly
1575
1575
  */
1576
1576
  mainMedia?: StaffMediaItem;
1577
+ /**
1578
+ * Business locations where the staff member is available, based on their working hours.
1579
+ * Returned only when both `STAFF_MEMBER_DETAILS` and `STAFF_WORKING_HOURS_LOCATIONS` are passed in `conditionalFields`.
1580
+ * 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`.
1581
+ * When the working hours data can't be retrieved, the entire request fails.
1582
+ * @readonly
1583
+ */
1584
+ workingHoursLocationCoverage?: WorkingHoursLocationCoverage;
1577
1585
  }
1578
1586
  interface StaffMediaItem extends StaffMediaItemItemOneOf {
1579
1587
  /** Details of the image associated with the staff, such as URL and size. */
@@ -1585,25 +1593,28 @@ interface StaffMediaItemItemOneOf {
1585
1593
  image?: Image;
1586
1594
  }
1587
1595
  /**
1588
- * Working hours location coverage derived from Calendar v3 WORKING_HOURS events
1589
- * (`NONE` and `MASTER` recurrence types). The server paginates through Calendar results
1590
- * (100 events per page) until all matching events are collected.
1591
- *
1592
- * Coverage states when enrichment is requested:
1593
- * + `available_at_all_locations = true`: Staff applies to every business location. Set when the staff
1594
- * uses default business working hours, or has any WORKING_HOURS event without a location ID
1595
- * (including when mixed with location-specific events).
1596
- * + `available_at_all_locations = false` with non-empty `location_ids`: Staff has location-specific
1597
- * WORKING_HOURS only. Show the staff member only when the selected location is in `location_ids`.
1598
- * + `available_at_all_locations = false` with empty `location_ids`: Staff has working-hours schedules
1599
- * but no applicable location coverage was found.
1596
+ * Business locations where a staff member is available, based on their current and upcoming working hours.
1600
1597
  *
1601
- * Recommended client filter:
1602
- * `availableAtAllLocations || locationIds.includes(selectedLocationId)`
1603
- *
1604
- * Omitted when `STAFF_WORKING_HOURS_LOCATIONS` is not requested.
1598
+ * Coverage has 3 possible states:
1599
+ * + `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.
1600
+ * + `availableAtAllLocations` is `false` and `locationIds` isn't empty: The staff member is available at the business locations listed in `locationIds`.
1601
+ * + `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.
1602
+ * To check whether a staff member is available at a specific location, use `availableAtAllLocations || locationIds.includes(locationId)`.
1605
1603
  */
1606
1604
  interface WorkingHoursLocationCoverage {
1605
+ /**
1606
+ * Whether the staff member is available at every business location.
1607
+ * @readonly
1608
+ */
1609
+ availableAtAllLocations?: boolean | null;
1610
+ /**
1611
+ * IDs of the business locations where the staff member has location-specific working hours.
1612
+ * Empty when `availableAtAllLocations` is `true`.
1613
+ * @format GUID
1614
+ * @readonly
1615
+ * @maxSize 100
1616
+ */
1617
+ locationIds?: string[];
1607
1618
  }
1608
1619
  interface StaffMemberDetails {
1609
1620
  /**
@@ -3303,6 +3314,13 @@ declare enum V2RequestedFields {
3303
3314
  RESOURCE_TYPE_DETAILS = "RESOURCE_TYPE_DETAILS",
3304
3315
  /** When passed, `service.payment.discountInfo` is returned. */
3305
3316
  DISCOUNT_INFO_DETAILS = "DISCOUNT_INFO_DETAILS",
3317
+ /**
3318
+ * Returns each staff member's working hours location coverage. See `staffMemberDetails.staffMembers.workingHoursLocationCoverage`.
3319
+ * Used only when `STAFF_MEMBER_DETAILS` is also passed. Otherwise, it has no effect.
3320
+ * When the working hours data can't be retrieved, the entire request fails.
3321
+ * @documentationMaturity preview
3322
+ */
3323
+ STAFF_WORKING_HOURS_LOCATIONS = "STAFF_WORKING_HOURS_LOCATIONS",
3306
3324
  /**
3307
3325
  * Returns details about each individual resource assigned to a service resource, including the resource name. See `serviceResources.resourceDetails`.
3308
3326
  * @documentationMaturity preview
@@ -3310,7 +3328,7 @@ declare enum V2RequestedFields {
3310
3328
  RESOURCE_DETAILS = "RESOURCE_DETAILS"
3311
3329
  }
3312
3330
  /** @enumType */
3313
- type V2RequestedFieldsWithLiterals = V2RequestedFields | 'STAFF_MEMBER_DETAILS' | 'RESOURCE_TYPE_DETAILS' | 'DISCOUNT_INFO_DETAILS' | 'RESOURCE_DETAILS';
3331
+ type V2RequestedFieldsWithLiterals = V2RequestedFields | 'STAFF_MEMBER_DETAILS' | 'RESOURCE_TYPE_DETAILS' | 'DISCOUNT_INFO_DETAILS' | 'STAFF_WORKING_HOURS_LOCATIONS' | 'RESOURCE_DETAILS';
3314
3332
  interface GetServiceResponse {
3315
3333
  /** Retrieved service. */
3316
3334
  service?: Service;