@wix/auto_sdk_bookings_services 1.0.321 → 1.0.323
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.
- package/build/cjs/{bookings-services-v2-service-services.universal-BOiUvdZR.d.ts → bookings-services-v2-service-services.universal-DW95Ep5o.d.ts} +72 -15
- package/build/cjs/index.d.ts +12 -12
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +55 -6
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-BOiUvdZR.d.mts → bookings-services-v2-service-services.universal-DW95Ep5o.d.mts} +72 -15
- package/build/es/index.d.mts +12 -12
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +55 -6
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal--_3hbJpT.d.ts → bookings-services-v2-service-services.universal-D6rmLi0b.d.ts} +33 -34
- package/build/internal/cjs/index.d.ts +12 -12
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +16 -25
- package/build/internal/es/{bookings-services-v2-service-services.universal--_3hbJpT.d.mts → bookings-services-v2-service-services.universal-D6rmLi0b.d.mts} +33 -34
- package/build/internal/es/index.d.mts +12 -12
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +16 -25
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d6 as CreateServiceRequest$1, d7 as CreateServiceResponse$1, db as BulkCreateServicesRequest$1, a as BulkCreateServicesResponse$1, dg as GetServiceRequest$1, dh as GetServiceResponse$1, dm as UpdateServiceRequest$1, dn as UpdateServiceResponse$1, dp as BulkUpdateServicesRequest$1, e as BulkUpdateServicesResponse$1, dr as BulkUpdateServicesByFilterRequest$1, h as BulkUpdateServicesByFilterResponse$1, ds as DeleteServiceRequest$1, du as DeleteServiceResponse$1, dv as BulkDeleteServicesRequest$1, j as BulkDeleteServicesResponse$1, dw as BulkDeleteServicesByFilterRequest$1, l as BulkDeleteServicesByFilterResponse$1, dx as QueryServicesRequest$1, dD as QueryServicesResponse$1, dG as SearchServicesRequest$1, n as SearchServicesResponse$1, ek as QueryPoliciesRequest$1, Q as QueryPoliciesResponse$1, en as QueryBookingFormsRequest$1, q as QueryBookingFormsResponse$1, er as CountServicesRequest$1, t as CountServicesResponse$1, es as QueryLocationsRequest$1, v as QueryLocationsResponse$1, ex as QueryCategoriesRequest$1, x as QueryCategoriesResponse$1, eB as SetServiceLocationsRequest$1, z as SetServiceLocationsResponse$1, eF as EnablePricingPlansForServiceRequest$1, E as EnablePricingPlansForServiceResponse$1, eI as DisablePricingPlansForServiceRequest$1, H as DisablePricingPlansForServiceResponse$1, eJ as SetCustomSlugRequest$1, K as SetCustomSlugResponse$1, eK as ValidateSlugRequest$1, N as ValidateSlugResponse$1, eL as CloneServiceRequest$1, O as CloneServiceResponse$1, fa as CreateAddOnGroupRequest$1, T as CreateAddOnGroupResponse$1, fb as DeleteAddOnGroupRequest$1, fc as DeleteAddOnGroupResponse$1, fd as UpdateAddOnGroupRequest$1, _ as UpdateAddOnGroupResponse$1, fe as ListAddOnGroupsByServiceIdRequest$1, a1 as ListAddOnGroupsByServiceIdResponse$1, fi as SetAddOnsForGroupRequest$1, a3 as SetAddOnsForGroupResponse$1 } from './bookings-services-v2-service-services.universal-
|
|
1
|
+
import { d6 as CreateServiceRequest$1, d7 as CreateServiceResponse$1, db as BulkCreateServicesRequest$1, a as BulkCreateServicesResponse$1, dg as GetServiceRequest$1, dh as GetServiceResponse$1, dm as UpdateServiceRequest$1, dn as UpdateServiceResponse$1, dp as BulkUpdateServicesRequest$1, e as BulkUpdateServicesResponse$1, dr as BulkUpdateServicesByFilterRequest$1, h as BulkUpdateServicesByFilterResponse$1, ds as DeleteServiceRequest$1, du as DeleteServiceResponse$1, dv as BulkDeleteServicesRequest$1, j as BulkDeleteServicesResponse$1, dw as BulkDeleteServicesByFilterRequest$1, l as BulkDeleteServicesByFilterResponse$1, dx as QueryServicesRequest$1, dD as QueryServicesResponse$1, dG as SearchServicesRequest$1, n as SearchServicesResponse$1, ek as QueryPoliciesRequest$1, Q as QueryPoliciesResponse$1, en as QueryBookingFormsRequest$1, q as QueryBookingFormsResponse$1, er as CountServicesRequest$1, t as CountServicesResponse$1, es as QueryLocationsRequest$1, v as QueryLocationsResponse$1, ex as QueryCategoriesRequest$1, x as QueryCategoriesResponse$1, eB as SetServiceLocationsRequest$1, z as SetServiceLocationsResponse$1, eF as EnablePricingPlansForServiceRequest$1, E as EnablePricingPlansForServiceResponse$1, eI as DisablePricingPlansForServiceRequest$1, H as DisablePricingPlansForServiceResponse$1, eJ as SetCustomSlugRequest$1, K as SetCustomSlugResponse$1, eK as ValidateSlugRequest$1, N as ValidateSlugResponse$1, eL as CloneServiceRequest$1, O as CloneServiceResponse$1, fa as CreateAddOnGroupRequest$1, T as CreateAddOnGroupResponse$1, fb as DeleteAddOnGroupRequest$1, fc as DeleteAddOnGroupResponse$1, fd as UpdateAddOnGroupRequest$1, _ as UpdateAddOnGroupResponse$1, fe as ListAddOnGroupsByServiceIdRequest$1, a1 as ListAddOnGroupsByServiceIdResponse$1, fi as SetAddOnsForGroupRequest$1, a3 as SetAddOnsForGroupResponse$1 } from './bookings-services-v2-service-services.universal-DW95Ep5o.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/** The `service` object represents an offering that a business provides to its customers. */
|
|
@@ -338,6 +338,17 @@ interface Payment extends PaymentRateOneOf {
|
|
|
338
338
|
* @readonly
|
|
339
339
|
*/
|
|
340
340
|
discountInfo?: DiscountInfo;
|
|
341
|
+
/**
|
|
342
|
+
* Mandatory fees the customer pays in addition to the service price, for example a cleaning fee.
|
|
343
|
+
* Fees aren't part of the deposit.
|
|
344
|
+
*
|
|
345
|
+
* When you update `additionalFees`, the list you send replaces the existing fees. Fees you leave out are removed.
|
|
346
|
+
* To keep a fee, including when you rename it, send it with its existing `id`.
|
|
347
|
+
*
|
|
348
|
+
* Each fee's `amount.currency` is set to the service currency.
|
|
349
|
+
* @maxSize 5
|
|
350
|
+
*/
|
|
351
|
+
additionalFees?: AdditionalFee[];
|
|
341
352
|
}
|
|
342
353
|
/** @oneof */
|
|
343
354
|
interface PaymentRateOneOf {
|
|
@@ -658,7 +669,7 @@ interface AdditionalFee {
|
|
|
658
669
|
*/
|
|
659
670
|
name?: string;
|
|
660
671
|
/**
|
|
661
|
-
* Fee amount in the service currency. For a `PER_UNIT` fee, the amount charged for each unit.
|
|
672
|
+
* Fee amount in the service currency. Must be greater than `0`. For a `PER_UNIT` fee, the amount charged for each unit.
|
|
662
673
|
*
|
|
663
674
|
* Required for each fee you send.
|
|
664
675
|
*/
|
|
@@ -675,7 +686,7 @@ declare enum ChargeType {
|
|
|
675
686
|
PER_RESERVATION = "PER_RESERVATION",
|
|
676
687
|
/**
|
|
677
688
|
* Charged for each duration unit of the reservation, as set in `schedule.availabilityConstraints.durationRange.unitType`.
|
|
678
|
-
* For example, for each
|
|
689
|
+
* For example, for each hour or day. For an overnight service, each day counts as 1 night, from the check-in time to the check-out time on the next day.
|
|
679
690
|
* Charged once when the service has no duration range.
|
|
680
691
|
*/
|
|
681
692
|
PER_UNIT = "PER_UNIT"
|
|
@@ -1535,34 +1546,72 @@ interface HourlyConfig {
|
|
|
1535
1546
|
interface DailyConfig {
|
|
1536
1547
|
/**
|
|
1537
1548
|
* Minimum bookable duration in days. The customer can't book for less than this number of days.
|
|
1549
|
+
* For an overnight service, each day counts as 1 night, from the check-in time to the check-out time on the next day.
|
|
1538
1550
|
* @min 1
|
|
1539
1551
|
* @max 40
|
|
1540
1552
|
*/
|
|
1541
1553
|
minDurationInDays?: number;
|
|
1542
1554
|
/**
|
|
1543
1555
|
* Maximum bookable duration in days. The customer can't book for more than this number of days.
|
|
1556
|
+
* For an overnight service, each day counts as 1 night, from the check-in time to the check-out time on the next day.
|
|
1544
1557
|
*
|
|
1545
1558
|
* Must be greater than or equal to `minDurationInDays`.
|
|
1546
1559
|
* @min 1
|
|
1547
1560
|
* @max 40
|
|
1548
1561
|
*/
|
|
1549
1562
|
maxDurationInDays?: number;
|
|
1563
|
+
/**
|
|
1564
|
+
* Times of day at which each bookable day starts and ends.
|
|
1565
|
+
* For example, check-in at 15:00 and check-out at 11:00 for a vacation house.
|
|
1566
|
+
*
|
|
1567
|
+
* When not set, each bookable day runs from midnight to midnight, the same as `FULL_DAY`.
|
|
1568
|
+
*/
|
|
1569
|
+
timeBoundaries?: TimeBoundaries;
|
|
1550
1570
|
}
|
|
1551
1571
|
/** Times of day at which each bookable day of a daily service starts and ends. */
|
|
1552
1572
|
interface TimeBoundaries extends TimeBoundariesOptionsOneOf {
|
|
1573
|
+
/** Check-in and check-out times, applied to every day of the week. Required when `type` is `OVERNIGHT`. */
|
|
1574
|
+
overnightTimes?: OvernightTimes;
|
|
1575
|
+
/** How the start and end times of each bookable day are set. */
|
|
1576
|
+
type?: TimeBoundariesTypeWithLiterals;
|
|
1553
1577
|
}
|
|
1554
1578
|
/** @oneof */
|
|
1555
1579
|
interface TimeBoundariesOptionsOneOf {
|
|
1580
|
+
/** Check-in and check-out times, applied to every day of the week. Required when `type` is `OVERNIGHT`. */
|
|
1581
|
+
overnightTimes?: OvernightTimes;
|
|
1556
1582
|
}
|
|
1557
1583
|
/** How the start and end times of each bookable day are set. */
|
|
1558
1584
|
declare enum TimeBoundariesType {
|
|
1559
1585
|
/** Each bookable day runs from midnight to midnight. */
|
|
1560
|
-
FULL_DAY = "FULL_DAY"
|
|
1586
|
+
FULL_DAY = "FULL_DAY",
|
|
1587
|
+
/**
|
|
1588
|
+
* Each booking checks in at `overnightTimes.checkInTime` and checks out on a later day
|
|
1589
|
+
* at `overnightTimes.checkOutTime`. Each day counts as 1 night, from the check-in time to the check-out time on the next day.
|
|
1590
|
+
* @documentationMaturity preview
|
|
1591
|
+
*/
|
|
1592
|
+
OVERNIGHT = "OVERNIGHT"
|
|
1561
1593
|
}
|
|
1562
1594
|
/** @enumType */
|
|
1563
|
-
type TimeBoundariesTypeWithLiterals = TimeBoundariesType | 'FULL_DAY';
|
|
1564
|
-
/**
|
|
1595
|
+
type TimeBoundariesTypeWithLiterals = TimeBoundariesType | 'FULL_DAY' | 'OVERNIGHT';
|
|
1596
|
+
/**
|
|
1597
|
+
* Check-in and check-out times of a daily service whose bookings run overnight.
|
|
1598
|
+
*
|
|
1599
|
+
* Neither time can be `00:00`. `checkOutTime` must be earlier than or the same as `checkInTime`.
|
|
1600
|
+
* If they're the same, each night lasts 24 hours. If a time breaks these rules, the call fails with `INVALID_OVERNIGHT_TIMES`.
|
|
1601
|
+
*/
|
|
1565
1602
|
interface OvernightTimes {
|
|
1603
|
+
/**
|
|
1604
|
+
* Check-in time in `HH:mm` format, on the hour or half hour.
|
|
1605
|
+
* Evaluated in the business time zone. For example, `15:00`.
|
|
1606
|
+
* @format LOCAL_TIME
|
|
1607
|
+
*/
|
|
1608
|
+
checkInTime?: string;
|
|
1609
|
+
/**
|
|
1610
|
+
* Check-out time on the day after the last booked night, in `HH:mm` format, on the hour or half hour.
|
|
1611
|
+
* Evaluated in the business time zone. For example, `11:00`.
|
|
1612
|
+
* @format LOCAL_TIME
|
|
1613
|
+
*/
|
|
1614
|
+
checkOutTime?: string;
|
|
1566
1615
|
}
|
|
1567
1616
|
/**
|
|
1568
1617
|
* Controls how a service's own working hours combine with the working hours of its assigned
|