@wix/auto_sdk_bookings_services 1.0.255 → 1.0.256
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-eA4yFYhG.d.ts → bookings-services-v2-service-services.universal-CxQEooHC.d.ts} +94 -61
- package/build/cjs/index.d.ts +10 -10
- 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 +72 -38
- package/build/cjs/meta.js +3 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +572 -57
- package/build/cjs/schemas.js +1459 -340
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-eA4yFYhG.d.mts → bookings-services-v2-service-services.universal-CxQEooHC.d.mts} +94 -61
- package/build/es/index.d.mts +10 -10
- 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 +72 -38
- package/build/es/meta.mjs +3 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +572 -57
- package/build/es/schemas.mjs +1465 -346
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-B7pWpsjJ.d.ts → bookings-services-v2-service-services.universal-BqFU1N2_.d.ts} +67 -86
- package/build/internal/cjs/index.d.ts +10 -10
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +72 -38
- package/build/internal/cjs/meta.js +3 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +572 -57
- package/build/internal/cjs/schemas.js +1459 -340
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-B7pWpsjJ.d.mts → bookings-services-v2-service-services.universal-BqFU1N2_.d.mts} +67 -86
- package/build/internal/es/index.d.mts +10 -10
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +72 -38
- package/build/internal/es/meta.mjs +3 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +572 -57
- package/build/internal/es/schemas.mjs +1465 -346
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -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-
|
|
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-CxQEooHC.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/** The `service` object represents an offering that a business provides to its customers. */
|
|
@@ -176,8 +176,18 @@ interface Service {
|
|
|
176
176
|
addOnDetails?: AddOnDetails[];
|
|
177
177
|
/** Taxable address used to calculate tax */
|
|
178
178
|
taxableAddress?: TaxableAddress;
|
|
179
|
-
/**
|
|
180
|
-
|
|
179
|
+
/**
|
|
180
|
+
* ID of the [resource type](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction)
|
|
181
|
+
* that serves as the primary resource for this appointment service. The primary resource type
|
|
182
|
+
* determines which resources drive slot assignment and availability resolution.
|
|
183
|
+
*
|
|
184
|
+
* For example, when set to a "Meeting Rooms" resource type, availability is calculated
|
|
185
|
+
* based on the rooms' schedules rather than staff schedules.
|
|
186
|
+
*
|
|
187
|
+
* Default: The staff resource type.
|
|
188
|
+
* @format GUID
|
|
189
|
+
*/
|
|
190
|
+
primaryResourceType?: string | null;
|
|
181
191
|
}
|
|
182
192
|
declare enum ServiceType {
|
|
183
193
|
/** Appointment-based service. */
|
|
@@ -1274,9 +1284,6 @@ interface AvailabilityConstraints {
|
|
|
1274
1284
|
* - For appointment-based services, specify `sessionDurations` when creating a service.
|
|
1275
1285
|
* - For appointment-based services with varied pricing by session length, you must still specify `sessionDurations`, but the values are ignored. Actual durations are taken from the [service variants](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/introduction).
|
|
1276
1286
|
* - For classes or courses, don't specify `sessionDurations` when creating a service.
|
|
1277
|
-
*
|
|
1278
|
-
* Min: `1` minute
|
|
1279
|
-
* Max: `44639` minutes (30 days, 23 hours, and 59 minutes)
|
|
1280
1287
|
* @min 1
|
|
1281
1288
|
* @max 44639
|
|
1282
1289
|
* @maxSize 50
|
|
@@ -1284,83 +1291,89 @@ interface AvailabilityConstraints {
|
|
|
1284
1291
|
sessionDurations?: number[];
|
|
1285
1292
|
/**
|
|
1286
1293
|
* The number of minutes between the end of a session and the start of the next.
|
|
1287
|
-
*
|
|
1288
|
-
*
|
|
1289
|
-
* Min: `0` minutes
|
|
1290
|
-
* Max: `720` minutes
|
|
1291
1294
|
* @max 720
|
|
1292
1295
|
*/
|
|
1293
1296
|
timeBetweenSessions?: number;
|
|
1297
|
+
/**
|
|
1298
|
+
* Duration range for the service. When set, the customer picks a duration
|
|
1299
|
+
* within the configured min/max range instead of a fixed session duration.
|
|
1300
|
+
* Mutually exclusive with `sessionDurations`. A service uses one or the other.
|
|
1301
|
+
* Can't be combined with `workingHours`.
|
|
1302
|
+
*
|
|
1303
|
+
* Use `durationRange` for services where the customer chooses how long to book,
|
|
1304
|
+
* such as equipment or space rentals. The `unitType` determines whether the range
|
|
1305
|
+
* is measured in hours or days.
|
|
1306
|
+
*/
|
|
1307
|
+
durationRange?: DurationRange;
|
|
1294
1308
|
}
|
|
1295
1309
|
interface V2Duration {
|
|
1296
1310
|
/**
|
|
1297
1311
|
* The duration of the service in minutes.
|
|
1298
|
-
*
|
|
1299
|
-
* Min: `1` minute
|
|
1300
|
-
* Max: `44639` minutes (30 days, 23 hours, and 59 minutes)
|
|
1301
1312
|
* @min 1
|
|
1302
1313
|
* @max 44639
|
|
1303
1314
|
*/
|
|
1304
1315
|
minutes?: number;
|
|
1305
1316
|
}
|
|
1306
|
-
/**
|
|
1317
|
+
/**
|
|
1318
|
+
* Duration range configuration for a service. Defines the minimum and maximum
|
|
1319
|
+
* booking duration a customer can select, and the unit of measurement.
|
|
1320
|
+
*
|
|
1321
|
+
* For hourly services, durations are configured in minutes via `hourOptions`.
|
|
1322
|
+
* For daily services, durations are configured in days via `dayOptions`.
|
|
1323
|
+
*/
|
|
1307
1324
|
interface DurationRange extends DurationRangeConfigOneOf {
|
|
1308
|
-
/** Configuration for hourly duration. Set when `
|
|
1325
|
+
/** Configuration for hourly duration ranges. Set when `unitType` is `HOUR`. */
|
|
1309
1326
|
hourOptions?: HourlyConfig;
|
|
1310
|
-
/** Configuration for daily duration. Set when `
|
|
1327
|
+
/** Configuration for daily duration ranges. Set when `unitType` is `DAY`. */
|
|
1311
1328
|
dayOptions?: DailyConfig;
|
|
1312
|
-
/** The unit type for this duration range. */
|
|
1329
|
+
/** The unit type for this duration range. Determines which configuration to use in the `config` union. */
|
|
1313
1330
|
unitType?: UnitTypeWithLiterals;
|
|
1314
1331
|
}
|
|
1315
1332
|
/** @oneof */
|
|
1316
1333
|
interface DurationRangeConfigOneOf {
|
|
1317
|
-
/** Configuration for hourly duration. Set when `
|
|
1334
|
+
/** Configuration for hourly duration ranges. Set when `unitType` is `HOUR`. */
|
|
1318
1335
|
hourOptions?: HourlyConfig;
|
|
1319
|
-
/** Configuration for daily duration. Set when `
|
|
1336
|
+
/** Configuration for daily duration ranges. Set when `unitType` is `DAY`. */
|
|
1320
1337
|
dayOptions?: DailyConfig;
|
|
1321
1338
|
}
|
|
1322
1339
|
/** The booking unit for the duration range. */
|
|
1323
1340
|
declare enum UnitType {
|
|
1341
|
+
/** Hourly booking unit. Durations are configured in minutes via `hourOptions`. */
|
|
1342
|
+
HOUR = "HOUR",
|
|
1343
|
+
/** Daily booking unit. Durations are configured in days via `dayOptions`. */
|
|
1344
|
+
DAY = "DAY"
|
|
1324
1345
|
}
|
|
1325
1346
|
/** @enumType */
|
|
1326
|
-
type UnitTypeWithLiterals = UnitType;
|
|
1327
|
-
/** Hourly duration configuration.
|
|
1347
|
+
type UnitTypeWithLiterals = UnitType | 'HOUR' | 'DAY';
|
|
1348
|
+
/** Hourly duration configuration. Durations are specified in minutes. */
|
|
1328
1349
|
interface HourlyConfig {
|
|
1329
1350
|
/**
|
|
1330
|
-
* Minimum bookable duration in minutes.
|
|
1331
|
-
*
|
|
1332
|
-
* Min: `30` minutes
|
|
1333
|
-
* Max: `1440` minutes (24 hours)
|
|
1351
|
+
* Minimum bookable duration in minutes. The customer can't book for less than this duration.
|
|
1334
1352
|
* @min 30
|
|
1335
1353
|
* @max 1440
|
|
1336
1354
|
*/
|
|
1337
1355
|
minDurationInMinutes?: number;
|
|
1338
1356
|
/**
|
|
1339
|
-
* Maximum bookable duration in minutes.
|
|
1357
|
+
* Maximum bookable duration in minutes. The customer can't book for more than this duration.
|
|
1340
1358
|
*
|
|
1341
|
-
*
|
|
1342
|
-
* Max: `1440` minutes (24 hours)
|
|
1359
|
+
* Must be greater than or equal to `minDurationInMinutes`.
|
|
1343
1360
|
* @min 30
|
|
1344
1361
|
* @max 1440
|
|
1345
1362
|
*/
|
|
1346
1363
|
maxDurationInMinutes?: number;
|
|
1347
1364
|
}
|
|
1348
|
-
/** Daily duration configuration.
|
|
1365
|
+
/** Daily duration configuration. Durations are specified in days. */
|
|
1349
1366
|
interface DailyConfig {
|
|
1350
1367
|
/**
|
|
1351
|
-
* Minimum bookable duration in days.
|
|
1352
|
-
*
|
|
1353
|
-
* Min: `1` day
|
|
1354
|
-
* Max: `8` days
|
|
1368
|
+
* Minimum bookable duration in days. The customer can't book for less than this number of days.
|
|
1355
1369
|
* @min 1
|
|
1356
1370
|
* @max 8
|
|
1357
1371
|
*/
|
|
1358
1372
|
minDurationInDays?: number;
|
|
1359
1373
|
/**
|
|
1360
|
-
* Maximum bookable duration in days.
|
|
1374
|
+
* Maximum bookable duration in days. The customer can't book for more than this number of days.
|
|
1361
1375
|
*
|
|
1362
|
-
*
|
|
1363
|
-
* Max: `8` days
|
|
1376
|
+
* Must be greater than or equal to `minDurationInDays`.
|
|
1364
1377
|
* @min 1
|
|
1365
1378
|
* @max 8
|
|
1366
1379
|
*/
|
|
@@ -1474,11 +1487,27 @@ interface ResourceIds {
|
|
|
1474
1487
|
values?: string[];
|
|
1475
1488
|
}
|
|
1476
1489
|
interface ServiceResource extends ServiceResourceSelectionOneOf {
|
|
1490
|
+
/**
|
|
1491
|
+
* IDs of specific [resources](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction)
|
|
1492
|
+
* assigned to this service resource. Each ID must reference a resource within the specified `resourceType`.
|
|
1493
|
+
*
|
|
1494
|
+
* When set, only these resources are considered for availability and booking.
|
|
1495
|
+
* When not set, all resources of the specified resource type are eligible.
|
|
1496
|
+
*/
|
|
1497
|
+
resourceIds?: ResourceIds;
|
|
1477
1498
|
/** Details about the required [resource type](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction). */
|
|
1478
1499
|
resourceType?: ResourceType;
|
|
1479
1500
|
}
|
|
1480
1501
|
/** @oneof */
|
|
1481
1502
|
interface ServiceResourceSelectionOneOf {
|
|
1503
|
+
/**
|
|
1504
|
+
* IDs of specific [resources](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction)
|
|
1505
|
+
* assigned to this service resource. Each ID must reference a resource within the specified `resourceType`.
|
|
1506
|
+
*
|
|
1507
|
+
* When set, only these resources are considered for availability and booking.
|
|
1508
|
+
* When not set, all resources of the specified resource type are eligible.
|
|
1509
|
+
*/
|
|
1510
|
+
resourceIds?: ResourceIds;
|
|
1482
1511
|
}
|
|
1483
1512
|
interface ResourceType {
|
|
1484
1513
|
/**
|
|
@@ -2952,10 +2981,15 @@ declare enum V2RequestedFields {
|
|
|
2952
2981
|
/** Returns the name of each service resource's resource type (for example, `'Meeting rooms'` or `'Equipment'`). See `serviceResources.resourceType.name`. */
|
|
2953
2982
|
RESOURCE_TYPE_DETAILS = "RESOURCE_TYPE_DETAILS",
|
|
2954
2983
|
/** When passed, `service.payment.discountInfo` is returned. */
|
|
2955
|
-
DISCOUNT_INFO_DETAILS = "DISCOUNT_INFO_DETAILS"
|
|
2984
|
+
DISCOUNT_INFO_DETAILS = "DISCOUNT_INFO_DETAILS",
|
|
2985
|
+
/**
|
|
2986
|
+
* Returns details about each individual resource assigned to a service resource, including the resource name. See `serviceResources.resourceDetails`.
|
|
2987
|
+
* @documentationMaturity preview
|
|
2988
|
+
*/
|
|
2989
|
+
RESOURCE_DETAILS = "RESOURCE_DETAILS"
|
|
2956
2990
|
}
|
|
2957
2991
|
/** @enumType */
|
|
2958
|
-
type V2RequestedFieldsWithLiterals = V2RequestedFields | 'STAFF_MEMBER_DETAILS' | 'RESOURCE_TYPE_DETAILS' | 'DISCOUNT_INFO_DETAILS';
|
|
2992
|
+
type V2RequestedFieldsWithLiterals = V2RequestedFields | 'STAFF_MEMBER_DETAILS' | 'RESOURCE_TYPE_DETAILS' | 'DISCOUNT_INFO_DETAILS' | 'RESOURCE_DETAILS';
|
|
2959
2993
|
interface GetServiceResponse {
|
|
2960
2994
|
/** Retrieved service. */
|
|
2961
2995
|
service?: Service;
|
package/build/es/meta.mjs
CHANGED
|
@@ -1780,6 +1780,8 @@ var CompletionRequirement = /* @__PURE__ */ ((CompletionRequirement2) => {
|
|
|
1780
1780
|
return CompletionRequirement2;
|
|
1781
1781
|
})(CompletionRequirement || {});
|
|
1782
1782
|
var UnitType = /* @__PURE__ */ ((UnitType2) => {
|
|
1783
|
+
UnitType2["HOUR"] = "HOUR";
|
|
1784
|
+
UnitType2["DAY"] = "DAY";
|
|
1783
1785
|
return UnitType2;
|
|
1784
1786
|
})(UnitType || {});
|
|
1785
1787
|
var WorkingHoursMode = /* @__PURE__ */ ((WorkingHoursMode2) => {
|
|
@@ -1884,6 +1886,7 @@ var V2RequestedFields = /* @__PURE__ */ ((V2RequestedFields2) => {
|
|
|
1884
1886
|
V2RequestedFields2["STAFF_MEMBER_DETAILS"] = "STAFF_MEMBER_DETAILS";
|
|
1885
1887
|
V2RequestedFields2["RESOURCE_TYPE_DETAILS"] = "RESOURCE_TYPE_DETAILS";
|
|
1886
1888
|
V2RequestedFields2["DISCOUNT_INFO_DETAILS"] = "DISCOUNT_INFO_DETAILS";
|
|
1889
|
+
V2RequestedFields2["RESOURCE_DETAILS"] = "RESOURCE_DETAILS";
|
|
1887
1890
|
return V2RequestedFields2;
|
|
1888
1891
|
})(V2RequestedFields || {});
|
|
1889
1892
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|