@wix/bookings 1.0.1755 → 1.0.1756
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/_sdk-exports/context-booking-checkout/runtime.d.ts +42 -1
- package/_sdk-exports/context-booking-checkout/runtime.js +3 -2
- package/_sdk-exports/context-categories/runtime.d.ts +1 -1
- package/_sdk-exports/context-categories/runtime.js +2 -1
- package/_sdk-exports/context-locations/runtime.d.ts +1 -1
- package/_sdk-exports/context-locations/runtime.js +2 -1
- package/_sdk-exports/context-service/runtime.d.ts +42 -1
- package/_sdk-exports/context-service/runtime.js +3 -2
- package/_sdk-exports/context-service-addons/runtime.d.ts +1 -1
- package/_sdk-exports/context-service-addons/runtime.js +2 -1
- package/_sdk-exports/context-services/runtime.d.ts +42 -1
- package/_sdk-exports/context-services/runtime.js +3 -2
- package/_sdk-exports/context-time-slots/runtime.d.ts +22 -9
- package/_sdk-exports/context-time-slots/runtime.js +3 -2
- package/build/cjs/context-booking-checkout.d.ts +42 -1
- package/build/cjs/context-booking-checkout.js +1346 -1344
- package/build/cjs/context-booking-checkout.js.map +1 -1
- package/build/cjs/context-categories.d.ts +1 -1
- package/build/cjs/context-categories.js +116 -114
- package/build/cjs/context-categories.js.map +1 -1
- package/build/cjs/context-locations.d.ts +1 -1
- package/build/cjs/context-locations.js +126 -124
- package/build/cjs/context-locations.js.map +1 -1
- package/build/cjs/context-service-addons.d.ts +1 -1
- package/build/cjs/context-service-addons.js +323 -321
- package/build/cjs/context-service-addons.js.map +1 -1
- package/build/cjs/context-service.d.ts +42 -1
- package/build/cjs/context-service.js +1517 -1515
- package/build/cjs/context-service.js.map +1 -1
- package/build/cjs/context-services.d.ts +42 -1
- package/build/cjs/context-services.js +460 -458
- package/build/cjs/context-services.js.map +1 -1
- package/build/cjs/context-time-slots.d.ts +22 -9
- package/build/cjs/context-time-slots.js +1033 -1000
- package/build/cjs/context-time-slots.js.map +1 -1
- package/build/es/context-booking-checkout.d.mts +42 -1
- package/build/es/context-booking-checkout.mjs +1346 -1344
- package/build/es/context-booking-checkout.mjs.map +1 -1
- package/build/es/context-categories.d.mts +1 -1
- package/build/es/context-categories.mjs +116 -114
- package/build/es/context-categories.mjs.map +1 -1
- package/build/es/context-locations.d.mts +1 -1
- package/build/es/context-locations.mjs +126 -124
- package/build/es/context-locations.mjs.map +1 -1
- package/build/es/context-service-addons.d.mts +1 -1
- package/build/es/context-service-addons.mjs +323 -321
- package/build/es/context-service-addons.mjs.map +1 -1
- package/build/es/context-service.d.mts +42 -1
- package/build/es/context-service.mjs +1517 -1515
- package/build/es/context-service.mjs.map +1 -1
- package/build/es/context-services.d.mts +42 -1
- package/build/es/context-services.mjs +460 -458
- package/build/es/context-services.mjs.map +1 -1
- package/build/es/context-time-slots.d.mts +22 -9
- package/build/es/context-time-slots.mjs +1033 -1000
- package/build/es/context-time-slots.mjs.map +1 -1
- package/build/internal/cjs/context-booking-checkout.d.ts +42 -1
- package/build/internal/cjs/context-categories.d.ts +1 -1
- package/build/internal/cjs/context-locations.d.ts +1 -1
- package/build/internal/cjs/context-service-addons.d.ts +1 -1
- package/build/internal/cjs/context-service.d.ts +42 -1
- package/build/internal/cjs/context-services.d.ts +42 -1
- package/build/internal/cjs/context-time-slots.d.ts +22 -9
- package/build/internal/es/context-booking-checkout.d.mts +42 -1
- package/build/internal/es/context-categories.d.mts +1 -1
- package/build/internal/es/context-locations.d.mts +1 -1
- package/build/internal/es/context-service-addons.d.mts +1 -1
- package/build/internal/es/context-service.d.mts +42 -1
- package/build/internal/es/context-services.d.mts +42 -1
- package/build/internal/es/context-time-slots.d.mts +22 -9
- package/package.json +2 -2
|
@@ -524,7 +524,7 @@ interface ExtendedFields$1 {
|
|
|
524
524
|
namespaces?: Record<string, Record<string, any>>;
|
|
525
525
|
}
|
|
526
526
|
//#endregion
|
|
527
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-
|
|
527
|
+
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-p5eQUd5f.d.mts
|
|
528
528
|
/** The `service` object represents an offering that a business provides to its customers. */
|
|
529
529
|
interface Service {
|
|
530
530
|
/**
|
|
@@ -899,6 +899,12 @@ interface FixedPayment {
|
|
|
899
899
|
* Default: `false`.
|
|
900
900
|
*/
|
|
901
901
|
fullUpfrontPaymentAllowed?: boolean | null;
|
|
902
|
+
/**
|
|
903
|
+
* The deposit required to book the service, expressed as either a fixed amount or a percentage of the price.
|
|
904
|
+
*
|
|
905
|
+
* Used only when `paymentOptions.deposit` is `true`.
|
|
906
|
+
*/
|
|
907
|
+
depositDetails?: DepositDetails;
|
|
902
908
|
}
|
|
903
909
|
/**
|
|
904
910
|
* Money.
|
|
@@ -927,6 +933,35 @@ interface Money$1 {
|
|
|
927
933
|
* A deposit expressed as exactly one of a fixed monetary amount or a percentage of the full service price.
|
|
928
934
|
* Structurally exclusive: at most one of `amount` or `percentage` may be set.
|
|
929
935
|
*/
|
|
936
|
+
interface DepositDetails extends DepositDetailsValueOneOf {
|
|
937
|
+
/** The deposit as a fixed monetary amount. */
|
|
938
|
+
amount?: Money$1;
|
|
939
|
+
/**
|
|
940
|
+
* The deposit as a percentage of the full service price, for example `20` for 20% or `20.5` for 20.5%.
|
|
941
|
+
* Resolved to a concrete amount when the customer books.
|
|
942
|
+
*
|
|
943
|
+
* Min: `0.01` percent
|
|
944
|
+
* Max: `99.99` percent
|
|
945
|
+
* @format DECIMAL_VALUE
|
|
946
|
+
* @decimalValue options { gte:0.01, lte:99.99, maxScale:2 }
|
|
947
|
+
*/
|
|
948
|
+
percentage?: string | null;
|
|
949
|
+
}
|
|
950
|
+
/** @oneof */
|
|
951
|
+
interface DepositDetailsValueOneOf {
|
|
952
|
+
/** The deposit as a fixed monetary amount. */
|
|
953
|
+
amount?: Money$1;
|
|
954
|
+
/**
|
|
955
|
+
* The deposit as a percentage of the full service price, for example `20` for 20% or `20.5` for 20.5%.
|
|
956
|
+
* Resolved to a concrete amount when the customer books.
|
|
957
|
+
*
|
|
958
|
+
* Min: `0.01` percent
|
|
959
|
+
* Max: `99.99` percent
|
|
960
|
+
* @format DECIMAL_VALUE
|
|
961
|
+
* @decimalValue options { gte:0.01, lte:99.99, maxScale:2 }
|
|
962
|
+
*/
|
|
963
|
+
percentage?: string | null;
|
|
964
|
+
}
|
|
930
965
|
interface CustomPayment {
|
|
931
966
|
/**
|
|
932
967
|
* A custom description explaining to the customer how to pay for the service.
|
|
@@ -961,6 +996,12 @@ interface VariedPayment {
|
|
|
961
996
|
* Default: `false`.
|
|
962
997
|
*/
|
|
963
998
|
fullUpfrontPaymentAllowed?: boolean | null;
|
|
999
|
+
/**
|
|
1000
|
+
* The deposit required to book the service, expressed as either a fixed amount or a percentage of the price.
|
|
1001
|
+
*
|
|
1002
|
+
* Used only when `paymentOptions.deposit` is `true`.
|
|
1003
|
+
*/
|
|
1004
|
+
depositDetails?: DepositDetails;
|
|
964
1005
|
}
|
|
965
1006
|
interface SubscriptionPayment {
|
|
966
1007
|
/**
|
|
@@ -65,7 +65,7 @@ declare global {
|
|
|
65
65
|
interface SDKTypeMode {}
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-
|
|
68
|
+
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-p5eQUd5f.d.mts
|
|
69
69
|
interface V2Category {
|
|
70
70
|
/**
|
|
71
71
|
* Category ID.
|
|
@@ -65,7 +65,7 @@ declare global {
|
|
|
65
65
|
interface SDKTypeMode {}
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-
|
|
68
|
+
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-p5eQUd5f.d.mts
|
|
69
69
|
interface V2Location extends V2LocationOptionsOneOf {
|
|
70
70
|
/** Information about business locations. Required when `type` is `BUSINESS`. */
|
|
71
71
|
business?: BusinessLocationOptions;
|
|
@@ -65,7 +65,7 @@ declare global {
|
|
|
65
65
|
interface SDKTypeMode {}
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-
|
|
68
|
+
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-p5eQUd5f.d.mts
|
|
69
69
|
/**
|
|
70
70
|
* Money.
|
|
71
71
|
* Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
|
|
@@ -731,7 +731,7 @@ interface ExtendedFields$2 {
|
|
|
731
731
|
namespaces?: Record<string, Record<string, any>>;
|
|
732
732
|
}
|
|
733
733
|
//#endregion
|
|
734
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-
|
|
734
|
+
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-p5eQUd5f.d.mts
|
|
735
735
|
/** The `service` object represents an offering that a business provides to its customers. */
|
|
736
736
|
interface Service {
|
|
737
737
|
/**
|
|
@@ -1106,6 +1106,12 @@ interface FixedPayment {
|
|
|
1106
1106
|
* Default: `false`.
|
|
1107
1107
|
*/
|
|
1108
1108
|
fullUpfrontPaymentAllowed?: boolean | null;
|
|
1109
|
+
/**
|
|
1110
|
+
* The deposit required to book the service, expressed as either a fixed amount or a percentage of the price.
|
|
1111
|
+
*
|
|
1112
|
+
* Used only when `paymentOptions.deposit` is `true`.
|
|
1113
|
+
*/
|
|
1114
|
+
depositDetails?: DepositDetails;
|
|
1109
1115
|
}
|
|
1110
1116
|
/**
|
|
1111
1117
|
* Money.
|
|
@@ -1134,6 +1140,35 @@ interface Money {
|
|
|
1134
1140
|
* A deposit expressed as exactly one of a fixed monetary amount or a percentage of the full service price.
|
|
1135
1141
|
* Structurally exclusive: at most one of `amount` or `percentage` may be set.
|
|
1136
1142
|
*/
|
|
1143
|
+
interface DepositDetails extends DepositDetailsValueOneOf {
|
|
1144
|
+
/** The deposit as a fixed monetary amount. */
|
|
1145
|
+
amount?: Money;
|
|
1146
|
+
/**
|
|
1147
|
+
* The deposit as a percentage of the full service price, for example `20` for 20% or `20.5` for 20.5%.
|
|
1148
|
+
* Resolved to a concrete amount when the customer books.
|
|
1149
|
+
*
|
|
1150
|
+
* Min: `0.01` percent
|
|
1151
|
+
* Max: `99.99` percent
|
|
1152
|
+
* @format DECIMAL_VALUE
|
|
1153
|
+
* @decimalValue options { gte:0.01, lte:99.99, maxScale:2 }
|
|
1154
|
+
*/
|
|
1155
|
+
percentage?: string | null;
|
|
1156
|
+
}
|
|
1157
|
+
/** @oneof */
|
|
1158
|
+
interface DepositDetailsValueOneOf {
|
|
1159
|
+
/** The deposit as a fixed monetary amount. */
|
|
1160
|
+
amount?: Money;
|
|
1161
|
+
/**
|
|
1162
|
+
* The deposit as a percentage of the full service price, for example `20` for 20% or `20.5` for 20.5%.
|
|
1163
|
+
* Resolved to a concrete amount when the customer books.
|
|
1164
|
+
*
|
|
1165
|
+
* Min: `0.01` percent
|
|
1166
|
+
* Max: `99.99` percent
|
|
1167
|
+
* @format DECIMAL_VALUE
|
|
1168
|
+
* @decimalValue options { gte:0.01, lte:99.99, maxScale:2 }
|
|
1169
|
+
*/
|
|
1170
|
+
percentage?: string | null;
|
|
1171
|
+
}
|
|
1137
1172
|
interface CustomPayment {
|
|
1138
1173
|
/**
|
|
1139
1174
|
* A custom description explaining to the customer how to pay for the service.
|
|
@@ -1168,6 +1203,12 @@ interface VariedPayment {
|
|
|
1168
1203
|
* Default: `false`.
|
|
1169
1204
|
*/
|
|
1170
1205
|
fullUpfrontPaymentAllowed?: boolean | null;
|
|
1206
|
+
/**
|
|
1207
|
+
* The deposit required to book the service, expressed as either a fixed amount or a percentage of the price.
|
|
1208
|
+
*
|
|
1209
|
+
* Used only when `paymentOptions.deposit` is `true`.
|
|
1210
|
+
*/
|
|
1211
|
+
depositDetails?: DepositDetails;
|
|
1171
1212
|
}
|
|
1172
1213
|
interface SubscriptionPayment {
|
|
1173
1214
|
/**
|
|
@@ -1226,7 +1226,7 @@ interface ExtendedFields$1 {
|
|
|
1226
1226
|
namespaces?: Record<string, Record<string, any>>;
|
|
1227
1227
|
}
|
|
1228
1228
|
//#endregion
|
|
1229
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-
|
|
1229
|
+
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-p5eQUd5f.d.mts
|
|
1230
1230
|
/** The `service` object represents an offering that a business provides to its customers. */
|
|
1231
1231
|
interface Service {
|
|
1232
1232
|
/**
|
|
@@ -1601,6 +1601,12 @@ interface FixedPayment {
|
|
|
1601
1601
|
* Default: `false`.
|
|
1602
1602
|
*/
|
|
1603
1603
|
fullUpfrontPaymentAllowed?: boolean | null;
|
|
1604
|
+
/**
|
|
1605
|
+
* The deposit required to book the service, expressed as either a fixed amount or a percentage of the price.
|
|
1606
|
+
*
|
|
1607
|
+
* Used only when `paymentOptions.deposit` is `true`.
|
|
1608
|
+
*/
|
|
1609
|
+
depositDetails?: DepositDetails;
|
|
1604
1610
|
}
|
|
1605
1611
|
/**
|
|
1606
1612
|
* Money.
|
|
@@ -1629,6 +1635,35 @@ interface Money {
|
|
|
1629
1635
|
* A deposit expressed as exactly one of a fixed monetary amount or a percentage of the full service price.
|
|
1630
1636
|
* Structurally exclusive: at most one of `amount` or `percentage` may be set.
|
|
1631
1637
|
*/
|
|
1638
|
+
interface DepositDetails extends DepositDetailsValueOneOf {
|
|
1639
|
+
/** The deposit as a fixed monetary amount. */
|
|
1640
|
+
amount?: Money;
|
|
1641
|
+
/**
|
|
1642
|
+
* The deposit as a percentage of the full service price, for example `20` for 20% or `20.5` for 20.5%.
|
|
1643
|
+
* Resolved to a concrete amount when the customer books.
|
|
1644
|
+
*
|
|
1645
|
+
* Min: `0.01` percent
|
|
1646
|
+
* Max: `99.99` percent
|
|
1647
|
+
* @format DECIMAL_VALUE
|
|
1648
|
+
* @decimalValue options { gte:0.01, lte:99.99, maxScale:2 }
|
|
1649
|
+
*/
|
|
1650
|
+
percentage?: string | null;
|
|
1651
|
+
}
|
|
1652
|
+
/** @oneof */
|
|
1653
|
+
interface DepositDetailsValueOneOf {
|
|
1654
|
+
/** The deposit as a fixed monetary amount. */
|
|
1655
|
+
amount?: Money;
|
|
1656
|
+
/**
|
|
1657
|
+
* The deposit as a percentage of the full service price, for example `20` for 20% or `20.5` for 20.5%.
|
|
1658
|
+
* Resolved to a concrete amount when the customer books.
|
|
1659
|
+
*
|
|
1660
|
+
* Min: `0.01` percent
|
|
1661
|
+
* Max: `99.99` percent
|
|
1662
|
+
* @format DECIMAL_VALUE
|
|
1663
|
+
* @decimalValue options { gte:0.01, lte:99.99, maxScale:2 }
|
|
1664
|
+
*/
|
|
1665
|
+
percentage?: string | null;
|
|
1666
|
+
}
|
|
1632
1667
|
interface CustomPayment {
|
|
1633
1668
|
/**
|
|
1634
1669
|
* A custom description explaining to the customer how to pay for the service.
|
|
@@ -1663,6 +1698,12 @@ interface VariedPayment {
|
|
|
1663
1698
|
* Default: `false`.
|
|
1664
1699
|
*/
|
|
1665
1700
|
fullUpfrontPaymentAllowed?: boolean | null;
|
|
1701
|
+
/**
|
|
1702
|
+
* The deposit required to book the service, expressed as either a fixed amount or a percentage of the price.
|
|
1703
|
+
*
|
|
1704
|
+
* Used only when `paymentOptions.deposit` is `true`.
|
|
1705
|
+
*/
|
|
1706
|
+
depositDetails?: DepositDetails;
|
|
1666
1707
|
}
|
|
1667
1708
|
interface SubscriptionPayment {
|
|
1668
1709
|
/**
|
|
@@ -1219,8 +1219,13 @@ interface TimeSlotsContextFields {
|
|
|
1219
1219
|
* - Any female or any male staff member, with `id` and `gender` both `'ANY_FEMALE'` or
|
|
1220
1220
|
* `'ANY_MALE'`, and no name. Label these options in your own words.
|
|
1221
1221
|
*
|
|
1222
|
-
*
|
|
1223
|
-
*
|
|
1222
|
+
* While a location is selected in the location filter, the staff members are only those whose
|
|
1223
|
+
* working hours include that location. A staff member whose working hours aren't known is
|
|
1224
|
+
* always included.
|
|
1225
|
+
*
|
|
1226
|
+
* The 2 gender options come first, when the business offers them and the service has 2 or more
|
|
1227
|
+
* staff members. They're counted before the location narrows them, so the gender options stay
|
|
1228
|
+
* when 1 or no staff member works at the selected location.
|
|
1224
1229
|
*
|
|
1225
1230
|
* Empty when:
|
|
1226
1231
|
* - The business assigns the staff member for an appointment itself.
|
|
@@ -1230,9 +1235,12 @@ interface TimeSlotsContextFields {
|
|
|
1230
1235
|
*/
|
|
1231
1236
|
readonly staffFilterOptions: ReadonlyArray<StaffFilterOption>;
|
|
1232
1237
|
/**
|
|
1233
|
-
* Options for a location filter, which are the business locations the service is offered at
|
|
1234
|
-
* sorted by name, each with its `id` and `name`.
|
|
1235
|
-
*
|
|
1238
|
+
* Options for a location filter, which are the business locations the service is offered at
|
|
1239
|
+
* and at least 1 of its staff members works at, sorted by name, each with its `id` and `name`.
|
|
1240
|
+
* When the visitor selected a staff member before reaching the page, only the locations that
|
|
1241
|
+
* staff member works at. All the service's locations when none would be left. When
|
|
1242
|
+
* rescheduling, the booking's location is included whoever works there, as long as the service
|
|
1243
|
+
* is still offered there. To get a location's details, use the [Locations
|
|
1236
1244
|
* API](https://dev.wix.com/docs/api-reference/business-management/locations/introduction).
|
|
1237
1245
|
*
|
|
1238
1246
|
* Empty when the service is offered at no business location, when the visitor selected a
|
|
@@ -1247,7 +1255,11 @@ interface TimeSlotsContextFields {
|
|
|
1247
1255
|
*
|
|
1248
1256
|
* It starts from the location the visitor selected before reaching the page, the page URL's
|
|
1249
1257
|
* `location` query parameter, or, when rescheduling, the booking's location, when the service
|
|
1250
|
-
* is offered there.
|
|
1258
|
+
* is offered there. The URL's location is also ignored when it isn't in
|
|
1259
|
+
* `locationFilterOptions`, such as a location none of the service's staff members works at.
|
|
1260
|
+
*
|
|
1261
|
+
* When the service is offered at 2 or more locations and its staff members work at only 1 of
|
|
1262
|
+
* them, it's that location, even when the visitor didn't select it.
|
|
1251
1263
|
*/
|
|
1252
1264
|
readonly selectedLocationFilter: string | null;
|
|
1253
1265
|
/**
|
|
@@ -1315,10 +1327,11 @@ interface TimeSlotsContextFields {
|
|
|
1315
1327
|
* Filters the time slots and the day availability to 1 of the business locations the service
|
|
1316
1328
|
* is offered at.
|
|
1317
1329
|
*
|
|
1318
|
-
* Specify `null` to show the time slots at every location. Ignored for
|
|
1319
|
-
*
|
|
1330
|
+
* Specify `null` to show the time slots at every location. Ignored for an ID that isn't in
|
|
1331
|
+
* `locationFilterOptions`, and while `locationFilterOptions` is empty.
|
|
1320
1332
|
*
|
|
1321
|
-
* Changing the filter reloads the time slots, and clears the selected time slot.
|
|
1333
|
+
* Changing the filter reloads the time slots, and clears the selected time slot. It also clears
|
|
1334
|
+
* a staff filter set to a staff member who doesn't work at the new location.
|
|
1322
1335
|
*
|
|
1323
1336
|
* @param id - ID of the location, from `locationFilterOptions`. `null` to clear the filter.
|
|
1324
1337
|
* @example Add a location filter
|
|
@@ -524,7 +524,7 @@ interface ExtendedFields$1 {
|
|
|
524
524
|
namespaces?: Record<string, Record<string, any>>;
|
|
525
525
|
}
|
|
526
526
|
//#endregion
|
|
527
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-
|
|
527
|
+
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-p5eQUd5f.d.mts
|
|
528
528
|
/** The `service` object represents an offering that a business provides to its customers. */
|
|
529
529
|
interface Service {
|
|
530
530
|
/**
|
|
@@ -899,6 +899,12 @@ interface FixedPayment {
|
|
|
899
899
|
* Default: `false`.
|
|
900
900
|
*/
|
|
901
901
|
fullUpfrontPaymentAllowed?: boolean | null;
|
|
902
|
+
/**
|
|
903
|
+
* The deposit required to book the service, expressed as either a fixed amount or a percentage of the price.
|
|
904
|
+
*
|
|
905
|
+
* Used only when `paymentOptions.deposit` is `true`.
|
|
906
|
+
*/
|
|
907
|
+
depositDetails?: DepositDetails;
|
|
902
908
|
}
|
|
903
909
|
/**
|
|
904
910
|
* Money.
|
|
@@ -927,6 +933,35 @@ interface Money$1 {
|
|
|
927
933
|
* A deposit expressed as exactly one of a fixed monetary amount or a percentage of the full service price.
|
|
928
934
|
* Structurally exclusive: at most one of `amount` or `percentage` may be set.
|
|
929
935
|
*/
|
|
936
|
+
interface DepositDetails extends DepositDetailsValueOneOf {
|
|
937
|
+
/** The deposit as a fixed monetary amount. */
|
|
938
|
+
amount?: Money$1;
|
|
939
|
+
/**
|
|
940
|
+
* The deposit as a percentage of the full service price, for example `20` for 20% or `20.5` for 20.5%.
|
|
941
|
+
* Resolved to a concrete amount when the customer books.
|
|
942
|
+
*
|
|
943
|
+
* Min: `0.01` percent
|
|
944
|
+
* Max: `99.99` percent
|
|
945
|
+
* @format DECIMAL_VALUE
|
|
946
|
+
* @decimalValue options { gte:0.01, lte:99.99, maxScale:2 }
|
|
947
|
+
*/
|
|
948
|
+
percentage?: string | null;
|
|
949
|
+
}
|
|
950
|
+
/** @oneof */
|
|
951
|
+
interface DepositDetailsValueOneOf {
|
|
952
|
+
/** The deposit as a fixed monetary amount. */
|
|
953
|
+
amount?: Money$1;
|
|
954
|
+
/**
|
|
955
|
+
* The deposit as a percentage of the full service price, for example `20` for 20% or `20.5` for 20.5%.
|
|
956
|
+
* Resolved to a concrete amount when the customer books.
|
|
957
|
+
*
|
|
958
|
+
* Min: `0.01` percent
|
|
959
|
+
* Max: `99.99` percent
|
|
960
|
+
* @format DECIMAL_VALUE
|
|
961
|
+
* @decimalValue options { gte:0.01, lte:99.99, maxScale:2 }
|
|
962
|
+
*/
|
|
963
|
+
percentage?: string | null;
|
|
964
|
+
}
|
|
930
965
|
interface CustomPayment {
|
|
931
966
|
/**
|
|
932
967
|
* A custom description explaining to the customer how to pay for the service.
|
|
@@ -961,6 +996,12 @@ interface VariedPayment {
|
|
|
961
996
|
* Default: `false`.
|
|
962
997
|
*/
|
|
963
998
|
fullUpfrontPaymentAllowed?: boolean | null;
|
|
999
|
+
/**
|
|
1000
|
+
* The deposit required to book the service, expressed as either a fixed amount or a percentage of the price.
|
|
1001
|
+
*
|
|
1002
|
+
* Used only when `paymentOptions.deposit` is `true`.
|
|
1003
|
+
*/
|
|
1004
|
+
depositDetails?: DepositDetails;
|
|
964
1005
|
}
|
|
965
1006
|
interface SubscriptionPayment {
|
|
966
1007
|
/**
|
|
@@ -65,7 +65,7 @@ declare global {
|
|
|
65
65
|
interface SDKTypeMode {}
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-
|
|
68
|
+
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-p5eQUd5f.d.mts
|
|
69
69
|
interface V2Category {
|
|
70
70
|
/**
|
|
71
71
|
* Category ID.
|
|
@@ -65,7 +65,7 @@ declare global {
|
|
|
65
65
|
interface SDKTypeMode {}
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-
|
|
68
|
+
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-p5eQUd5f.d.mts
|
|
69
69
|
interface V2Location extends V2LocationOptionsOneOf {
|
|
70
70
|
/** Information about business locations. Required when `type` is `BUSINESS`. */
|
|
71
71
|
business?: BusinessLocationOptions;
|
|
@@ -65,7 +65,7 @@ declare global {
|
|
|
65
65
|
interface SDKTypeMode {}
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-
|
|
68
|
+
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-p5eQUd5f.d.mts
|
|
69
69
|
/**
|
|
70
70
|
* Money.
|
|
71
71
|
* Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
|
|
@@ -731,7 +731,7 @@ interface ExtendedFields$2 {
|
|
|
731
731
|
namespaces?: Record<string, Record<string, any>>;
|
|
732
732
|
}
|
|
733
733
|
//#endregion
|
|
734
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-
|
|
734
|
+
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-p5eQUd5f.d.mts
|
|
735
735
|
/** The `service` object represents an offering that a business provides to its customers. */
|
|
736
736
|
interface Service {
|
|
737
737
|
/**
|
|
@@ -1106,6 +1106,12 @@ interface FixedPayment {
|
|
|
1106
1106
|
* Default: `false`.
|
|
1107
1107
|
*/
|
|
1108
1108
|
fullUpfrontPaymentAllowed?: boolean | null;
|
|
1109
|
+
/**
|
|
1110
|
+
* The deposit required to book the service, expressed as either a fixed amount or a percentage of the price.
|
|
1111
|
+
*
|
|
1112
|
+
* Used only when `paymentOptions.deposit` is `true`.
|
|
1113
|
+
*/
|
|
1114
|
+
depositDetails?: DepositDetails;
|
|
1109
1115
|
}
|
|
1110
1116
|
/**
|
|
1111
1117
|
* Money.
|
|
@@ -1134,6 +1140,35 @@ interface Money {
|
|
|
1134
1140
|
* A deposit expressed as exactly one of a fixed monetary amount or a percentage of the full service price.
|
|
1135
1141
|
* Structurally exclusive: at most one of `amount` or `percentage` may be set.
|
|
1136
1142
|
*/
|
|
1143
|
+
interface DepositDetails extends DepositDetailsValueOneOf {
|
|
1144
|
+
/** The deposit as a fixed monetary amount. */
|
|
1145
|
+
amount?: Money;
|
|
1146
|
+
/**
|
|
1147
|
+
* The deposit as a percentage of the full service price, for example `20` for 20% or `20.5` for 20.5%.
|
|
1148
|
+
* Resolved to a concrete amount when the customer books.
|
|
1149
|
+
*
|
|
1150
|
+
* Min: `0.01` percent
|
|
1151
|
+
* Max: `99.99` percent
|
|
1152
|
+
* @format DECIMAL_VALUE
|
|
1153
|
+
* @decimalValue options { gte:0.01, lte:99.99, maxScale:2 }
|
|
1154
|
+
*/
|
|
1155
|
+
percentage?: string | null;
|
|
1156
|
+
}
|
|
1157
|
+
/** @oneof */
|
|
1158
|
+
interface DepositDetailsValueOneOf {
|
|
1159
|
+
/** The deposit as a fixed monetary amount. */
|
|
1160
|
+
amount?: Money;
|
|
1161
|
+
/**
|
|
1162
|
+
* The deposit as a percentage of the full service price, for example `20` for 20% or `20.5` for 20.5%.
|
|
1163
|
+
* Resolved to a concrete amount when the customer books.
|
|
1164
|
+
*
|
|
1165
|
+
* Min: `0.01` percent
|
|
1166
|
+
* Max: `99.99` percent
|
|
1167
|
+
* @format DECIMAL_VALUE
|
|
1168
|
+
* @decimalValue options { gte:0.01, lte:99.99, maxScale:2 }
|
|
1169
|
+
*/
|
|
1170
|
+
percentage?: string | null;
|
|
1171
|
+
}
|
|
1137
1172
|
interface CustomPayment {
|
|
1138
1173
|
/**
|
|
1139
1174
|
* A custom description explaining to the customer how to pay for the service.
|
|
@@ -1168,6 +1203,12 @@ interface VariedPayment {
|
|
|
1168
1203
|
* Default: `false`.
|
|
1169
1204
|
*/
|
|
1170
1205
|
fullUpfrontPaymentAllowed?: boolean | null;
|
|
1206
|
+
/**
|
|
1207
|
+
* The deposit required to book the service, expressed as either a fixed amount or a percentage of the price.
|
|
1208
|
+
*
|
|
1209
|
+
* Used only when `paymentOptions.deposit` is `true`.
|
|
1210
|
+
*/
|
|
1211
|
+
depositDetails?: DepositDetails;
|
|
1171
1212
|
}
|
|
1172
1213
|
interface SubscriptionPayment {
|
|
1173
1214
|
/**
|
|
@@ -1226,7 +1226,7 @@ interface ExtendedFields$1 {
|
|
|
1226
1226
|
namespaces?: Record<string, Record<string, any>>;
|
|
1227
1227
|
}
|
|
1228
1228
|
//#endregion
|
|
1229
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-
|
|
1229
|
+
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-p5eQUd5f.d.mts
|
|
1230
1230
|
/** The `service` object represents an offering that a business provides to its customers. */
|
|
1231
1231
|
interface Service {
|
|
1232
1232
|
/**
|
|
@@ -1601,6 +1601,12 @@ interface FixedPayment {
|
|
|
1601
1601
|
* Default: `false`.
|
|
1602
1602
|
*/
|
|
1603
1603
|
fullUpfrontPaymentAllowed?: boolean | null;
|
|
1604
|
+
/**
|
|
1605
|
+
* The deposit required to book the service, expressed as either a fixed amount or a percentage of the price.
|
|
1606
|
+
*
|
|
1607
|
+
* Used only when `paymentOptions.deposit` is `true`.
|
|
1608
|
+
*/
|
|
1609
|
+
depositDetails?: DepositDetails;
|
|
1604
1610
|
}
|
|
1605
1611
|
/**
|
|
1606
1612
|
* Money.
|
|
@@ -1629,6 +1635,35 @@ interface Money {
|
|
|
1629
1635
|
* A deposit expressed as exactly one of a fixed monetary amount or a percentage of the full service price.
|
|
1630
1636
|
* Structurally exclusive: at most one of `amount` or `percentage` may be set.
|
|
1631
1637
|
*/
|
|
1638
|
+
interface DepositDetails extends DepositDetailsValueOneOf {
|
|
1639
|
+
/** The deposit as a fixed monetary amount. */
|
|
1640
|
+
amount?: Money;
|
|
1641
|
+
/**
|
|
1642
|
+
* The deposit as a percentage of the full service price, for example `20` for 20% or `20.5` for 20.5%.
|
|
1643
|
+
* Resolved to a concrete amount when the customer books.
|
|
1644
|
+
*
|
|
1645
|
+
* Min: `0.01` percent
|
|
1646
|
+
* Max: `99.99` percent
|
|
1647
|
+
* @format DECIMAL_VALUE
|
|
1648
|
+
* @decimalValue options { gte:0.01, lte:99.99, maxScale:2 }
|
|
1649
|
+
*/
|
|
1650
|
+
percentage?: string | null;
|
|
1651
|
+
}
|
|
1652
|
+
/** @oneof */
|
|
1653
|
+
interface DepositDetailsValueOneOf {
|
|
1654
|
+
/** The deposit as a fixed monetary amount. */
|
|
1655
|
+
amount?: Money;
|
|
1656
|
+
/**
|
|
1657
|
+
* The deposit as a percentage of the full service price, for example `20` for 20% or `20.5` for 20.5%.
|
|
1658
|
+
* Resolved to a concrete amount when the customer books.
|
|
1659
|
+
*
|
|
1660
|
+
* Min: `0.01` percent
|
|
1661
|
+
* Max: `99.99` percent
|
|
1662
|
+
* @format DECIMAL_VALUE
|
|
1663
|
+
* @decimalValue options { gte:0.01, lte:99.99, maxScale:2 }
|
|
1664
|
+
*/
|
|
1665
|
+
percentage?: string | null;
|
|
1666
|
+
}
|
|
1632
1667
|
interface CustomPayment {
|
|
1633
1668
|
/**
|
|
1634
1669
|
* A custom description explaining to the customer how to pay for the service.
|
|
@@ -1663,6 +1698,12 @@ interface VariedPayment {
|
|
|
1663
1698
|
* Default: `false`.
|
|
1664
1699
|
*/
|
|
1665
1700
|
fullUpfrontPaymentAllowed?: boolean | null;
|
|
1701
|
+
/**
|
|
1702
|
+
* The deposit required to book the service, expressed as either a fixed amount or a percentage of the price.
|
|
1703
|
+
*
|
|
1704
|
+
* Used only when `paymentOptions.deposit` is `true`.
|
|
1705
|
+
*/
|
|
1706
|
+
depositDetails?: DepositDetails;
|
|
1666
1707
|
}
|
|
1667
1708
|
interface SubscriptionPayment {
|
|
1668
1709
|
/**
|
|
@@ -1219,8 +1219,13 @@ interface TimeSlotsContextFields {
|
|
|
1219
1219
|
* - Any female or any male staff member, with `id` and `gender` both `'ANY_FEMALE'` or
|
|
1220
1220
|
* `'ANY_MALE'`, and no name. Label these options in your own words.
|
|
1221
1221
|
*
|
|
1222
|
-
*
|
|
1223
|
-
*
|
|
1222
|
+
* While a location is selected in the location filter, the staff members are only those whose
|
|
1223
|
+
* working hours include that location. A staff member whose working hours aren't known is
|
|
1224
|
+
* always included.
|
|
1225
|
+
*
|
|
1226
|
+
* The 2 gender options come first, when the business offers them and the service has 2 or more
|
|
1227
|
+
* staff members. They're counted before the location narrows them, so the gender options stay
|
|
1228
|
+
* when 1 or no staff member works at the selected location.
|
|
1224
1229
|
*
|
|
1225
1230
|
* Empty when:
|
|
1226
1231
|
* - The business assigns the staff member for an appointment itself.
|
|
@@ -1230,9 +1235,12 @@ interface TimeSlotsContextFields {
|
|
|
1230
1235
|
*/
|
|
1231
1236
|
readonly staffFilterOptions: ReadonlyArray<StaffFilterOption>;
|
|
1232
1237
|
/**
|
|
1233
|
-
* Options for a location filter, which are the business locations the service is offered at
|
|
1234
|
-
* sorted by name, each with its `id` and `name`.
|
|
1235
|
-
*
|
|
1238
|
+
* Options for a location filter, which are the business locations the service is offered at
|
|
1239
|
+
* and at least 1 of its staff members works at, sorted by name, each with its `id` and `name`.
|
|
1240
|
+
* When the visitor selected a staff member before reaching the page, only the locations that
|
|
1241
|
+
* staff member works at. All the service's locations when none would be left. When
|
|
1242
|
+
* rescheduling, the booking's location is included whoever works there, as long as the service
|
|
1243
|
+
* is still offered there. To get a location's details, use the [Locations
|
|
1236
1244
|
* API](https://dev.wix.com/docs/api-reference/business-management/locations/introduction).
|
|
1237
1245
|
*
|
|
1238
1246
|
* Empty when the service is offered at no business location, when the visitor selected a
|
|
@@ -1247,7 +1255,11 @@ interface TimeSlotsContextFields {
|
|
|
1247
1255
|
*
|
|
1248
1256
|
* It starts from the location the visitor selected before reaching the page, the page URL's
|
|
1249
1257
|
* `location` query parameter, or, when rescheduling, the booking's location, when the service
|
|
1250
|
-
* is offered there.
|
|
1258
|
+
* is offered there. The URL's location is also ignored when it isn't in
|
|
1259
|
+
* `locationFilterOptions`, such as a location none of the service's staff members works at.
|
|
1260
|
+
*
|
|
1261
|
+
* When the service is offered at 2 or more locations and its staff members work at only 1 of
|
|
1262
|
+
* them, it's that location, even when the visitor didn't select it.
|
|
1251
1263
|
*/
|
|
1252
1264
|
readonly selectedLocationFilter: string | null;
|
|
1253
1265
|
/**
|
|
@@ -1315,10 +1327,11 @@ interface TimeSlotsContextFields {
|
|
|
1315
1327
|
* Filters the time slots and the day availability to 1 of the business locations the service
|
|
1316
1328
|
* is offered at.
|
|
1317
1329
|
*
|
|
1318
|
-
* Specify `null` to show the time slots at every location. Ignored for
|
|
1319
|
-
*
|
|
1330
|
+
* Specify `null` to show the time slots at every location. Ignored for an ID that isn't in
|
|
1331
|
+
* `locationFilterOptions`, and while `locationFilterOptions` is empty.
|
|
1320
1332
|
*
|
|
1321
|
-
* Changing the filter reloads the time slots, and clears the selected time slot.
|
|
1333
|
+
* Changing the filter reloads the time slots, and clears the selected time slot. It also clears
|
|
1334
|
+
* a staff filter set to a staff member who doesn't work at the new location.
|
|
1322
1335
|
*
|
|
1323
1336
|
* @param id - ID of the location, from `locationFilterOptions`. `null` to clear the filter.
|
|
1324
1337
|
* @example Add a location filter
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/bookings",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1756",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -180,5 +180,5 @@
|
|
|
180
180
|
"optional": true
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
|
-
"falconPackageHash": "
|
|
183
|
+
"falconPackageHash": "3142fd90e5f29ca3bd2cda6e993e89a0cdd713ba474baf64dd3cf94d"
|
|
184
184
|
}
|