@wix/auto_sdk_bookings_services 1.0.254 → 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-C4INiLoL.d.ts → bookings-services-v2-service-services.universal-CxQEooHC.d.ts} +145 -70
- 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 +123 -58
- 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-C4INiLoL.d.mts → bookings-services-v2-service-services.universal-CxQEooHC.d.mts} +145 -70
- 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 +123 -58
- 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-DoKhtzZp.d.ts → bookings-services-v2-service-services.universal-BqFU1N2_.d.ts} +108 -101
- 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 +123 -58
- 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-DoKhtzZp.d.mts → bookings-services-v2-service-services.universal-BqFU1N2_.d.mts} +108 -101
- 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 +123 -58
- 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
|
@@ -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-BqFU1N2_.js';
|
|
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. */
|
|
@@ -1213,6 +1223,26 @@ declare enum CompletionRequirement {
|
|
|
1213
1223
|
}
|
|
1214
1224
|
/** @enumType */
|
|
1215
1225
|
type CompletionRequirementWithLiterals = CompletionRequirement | 'OPTIONAL' | 'REQUIRED_BEFORE_BOOKING';
|
|
1226
|
+
/** Rule restricting how frequently a customer can rebook the same service. */
|
|
1227
|
+
interface RebookingFrequencyPolicy {
|
|
1228
|
+
/**
|
|
1229
|
+
* Whether rebooking restrictions are enabled for the service. When `false`, customers can rebook immediately.
|
|
1230
|
+
*
|
|
1231
|
+
* Default: `false`
|
|
1232
|
+
*/
|
|
1233
|
+
enabled?: boolean;
|
|
1234
|
+
/**
|
|
1235
|
+
* Whether customers can never rebook the same service. Only evaluated when `enabled` is `true`.
|
|
1236
|
+
*
|
|
1237
|
+
* Default: `false`
|
|
1238
|
+
*/
|
|
1239
|
+
permanentBlock?: boolean;
|
|
1240
|
+
/**
|
|
1241
|
+
* Minimum number of minutes between the start times of bookings for the same service by the same customer.
|
|
1242
|
+
* Only enforced when `enabled` is `true` and `permanent_block` is `false`.
|
|
1243
|
+
*/
|
|
1244
|
+
minTimeBetweenRebookingsMinutes?: number | null;
|
|
1245
|
+
}
|
|
1216
1246
|
interface Schedule {
|
|
1217
1247
|
/**
|
|
1218
1248
|
* ID of the [schedule](https://dev.wix.com/docs/api-reference/business-management/calendar/schedules-v3/introduction)
|
|
@@ -1254,9 +1284,6 @@ interface AvailabilityConstraints {
|
|
|
1254
1284
|
* - For appointment-based services, specify `sessionDurations` when creating a service.
|
|
1255
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).
|
|
1256
1286
|
* - For classes or courses, don't specify `sessionDurations` when creating a service.
|
|
1257
|
-
*
|
|
1258
|
-
* Min: `1` minute
|
|
1259
|
-
* Max: `44639` minutes (30 days, 23 hours, and 59 minutes)
|
|
1260
1287
|
* @min 1
|
|
1261
1288
|
* @max 44639
|
|
1262
1289
|
* @maxSize 50
|
|
@@ -1264,83 +1291,89 @@ interface AvailabilityConstraints {
|
|
|
1264
1291
|
sessionDurations?: number[];
|
|
1265
1292
|
/**
|
|
1266
1293
|
* The number of minutes between the end of a session and the start of the next.
|
|
1267
|
-
*
|
|
1268
|
-
*
|
|
1269
|
-
* Min: `0` minutes
|
|
1270
|
-
* Max: `720` minutes
|
|
1271
1294
|
* @max 720
|
|
1272
1295
|
*/
|
|
1273
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;
|
|
1274
1308
|
}
|
|
1275
1309
|
interface V2Duration {
|
|
1276
1310
|
/**
|
|
1277
1311
|
* The duration of the service in minutes.
|
|
1278
|
-
*
|
|
1279
|
-
* Min: `1` minute
|
|
1280
|
-
* Max: `44639` minutes (30 days, 23 hours, and 59 minutes)
|
|
1281
1312
|
* @min 1
|
|
1282
1313
|
* @max 44639
|
|
1283
1314
|
*/
|
|
1284
1315
|
minutes?: number;
|
|
1285
1316
|
}
|
|
1286
|
-
/**
|
|
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
|
+
*/
|
|
1287
1324
|
interface DurationRange extends DurationRangeConfigOneOf {
|
|
1288
|
-
/** Configuration for hourly duration. Set when `
|
|
1325
|
+
/** Configuration for hourly duration ranges. Set when `unitType` is `HOUR`. */
|
|
1289
1326
|
hourOptions?: HourlyConfig;
|
|
1290
|
-
/** Configuration for daily duration. Set when `
|
|
1327
|
+
/** Configuration for daily duration ranges. Set when `unitType` is `DAY`. */
|
|
1291
1328
|
dayOptions?: DailyConfig;
|
|
1292
|
-
/** The unit type for this duration range. */
|
|
1329
|
+
/** The unit type for this duration range. Determines which configuration to use in the `config` union. */
|
|
1293
1330
|
unitType?: UnitTypeWithLiterals;
|
|
1294
1331
|
}
|
|
1295
1332
|
/** @oneof */
|
|
1296
1333
|
interface DurationRangeConfigOneOf {
|
|
1297
|
-
/** Configuration for hourly duration. Set when `
|
|
1334
|
+
/** Configuration for hourly duration ranges. Set when `unitType` is `HOUR`. */
|
|
1298
1335
|
hourOptions?: HourlyConfig;
|
|
1299
|
-
/** Configuration for daily duration. Set when `
|
|
1336
|
+
/** Configuration for daily duration ranges. Set when `unitType` is `DAY`. */
|
|
1300
1337
|
dayOptions?: DailyConfig;
|
|
1301
1338
|
}
|
|
1302
1339
|
/** The booking unit for the duration range. */
|
|
1303
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"
|
|
1304
1345
|
}
|
|
1305
1346
|
/** @enumType */
|
|
1306
|
-
type UnitTypeWithLiterals = UnitType;
|
|
1307
|
-
/** Hourly duration configuration.
|
|
1347
|
+
type UnitTypeWithLiterals = UnitType | 'HOUR' | 'DAY';
|
|
1348
|
+
/** Hourly duration configuration. Durations are specified in minutes. */
|
|
1308
1349
|
interface HourlyConfig {
|
|
1309
1350
|
/**
|
|
1310
|
-
* Minimum bookable duration in minutes.
|
|
1311
|
-
*
|
|
1312
|
-
* Min: `30` minutes
|
|
1313
|
-
* Max: `1440` minutes (24 hours)
|
|
1351
|
+
* Minimum bookable duration in minutes. The customer can't book for less than this duration.
|
|
1314
1352
|
* @min 30
|
|
1315
1353
|
* @max 1440
|
|
1316
1354
|
*/
|
|
1317
1355
|
minDurationInMinutes?: number;
|
|
1318
1356
|
/**
|
|
1319
|
-
* Maximum bookable duration in minutes.
|
|
1357
|
+
* Maximum bookable duration in minutes. The customer can't book for more than this duration.
|
|
1320
1358
|
*
|
|
1321
|
-
*
|
|
1322
|
-
* Max: `1440` minutes (24 hours)
|
|
1359
|
+
* Must be greater than or equal to `minDurationInMinutes`.
|
|
1323
1360
|
* @min 30
|
|
1324
1361
|
* @max 1440
|
|
1325
1362
|
*/
|
|
1326
1363
|
maxDurationInMinutes?: number;
|
|
1327
1364
|
}
|
|
1328
|
-
/** Daily duration configuration.
|
|
1365
|
+
/** Daily duration configuration. Durations are specified in days. */
|
|
1329
1366
|
interface DailyConfig {
|
|
1330
1367
|
/**
|
|
1331
|
-
* Minimum bookable duration in days.
|
|
1332
|
-
*
|
|
1333
|
-
* Min: `1` day
|
|
1334
|
-
* Max: `8` days
|
|
1368
|
+
* Minimum bookable duration in days. The customer can't book for less than this number of days.
|
|
1335
1369
|
* @min 1
|
|
1336
1370
|
* @max 8
|
|
1337
1371
|
*/
|
|
1338
1372
|
minDurationInDays?: number;
|
|
1339
1373
|
/**
|
|
1340
|
-
* Maximum bookable duration in days.
|
|
1374
|
+
* Maximum bookable duration in days. The customer can't book for more than this number of days.
|
|
1341
1375
|
*
|
|
1342
|
-
*
|
|
1343
|
-
* Max: `8` days
|
|
1376
|
+
* Must be greater than or equal to `minDurationInDays`.
|
|
1344
1377
|
* @min 1
|
|
1345
1378
|
* @max 8
|
|
1346
1379
|
*/
|
|
@@ -1454,11 +1487,27 @@ interface ResourceIds {
|
|
|
1454
1487
|
values?: string[];
|
|
1455
1488
|
}
|
|
1456
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;
|
|
1457
1498
|
/** Details about the required [resource type](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction). */
|
|
1458
1499
|
resourceType?: ResourceType;
|
|
1459
1500
|
}
|
|
1460
1501
|
/** @oneof */
|
|
1461
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;
|
|
1462
1511
|
}
|
|
1463
1512
|
interface ResourceType {
|
|
1464
1513
|
/**
|
|
@@ -2036,6 +2085,35 @@ interface BookedSlot {
|
|
|
2036
2085
|
* @maxSize 3
|
|
2037
2086
|
*/
|
|
2038
2087
|
resourceSelections?: ResourceSelection[];
|
|
2088
|
+
/**
|
|
2089
|
+
* Whether the booked slot spans one or more full days.
|
|
2090
|
+
* For class bookings, this value is synced from the linked calendar event.
|
|
2091
|
+
* For appointment bookings, this value is derived from the availability slot at booking creation or reschedule time.
|
|
2092
|
+
*
|
|
2093
|
+
* When `true`, `startDate` is set to `00:00:00` of the first day and `endDate` is set to `00:00:00` of the day after the last day (exclusive). Midnight boundaries are interpreted in the slot's `timezone`.
|
|
2094
|
+
*
|
|
2095
|
+
* Default: `false`
|
|
2096
|
+
*/
|
|
2097
|
+
allDay?: boolean | null;
|
|
2098
|
+
/**
|
|
2099
|
+
* Duration unit type for the booking. Populated only for bookings of [services](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/service-object) configured with a duration range, such as hourly or daily duration-range services. Use together with `durationUnitCount` to determine the booked duration.
|
|
2100
|
+
*
|
|
2101
|
+
* Returned only when the service has a `schedule.availabilityConstraints.durationRange`.
|
|
2102
|
+
* @readonly
|
|
2103
|
+
*/
|
|
2104
|
+
durationUnitType?: DurationUnitTypeWithLiterals;
|
|
2105
|
+
/**
|
|
2106
|
+
* Number of booked duration units. Populated only for bookings of [services](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/service-object) configured with a duration range.
|
|
2107
|
+
* The meaning depends on `durationUnitType`:
|
|
2108
|
+
* - `HOUR`: Duration in minutes. For example, `120` for a 2-hour booking.
|
|
2109
|
+
* - `DAY`: Duration in days. For example, `3` for a 3-day booking.
|
|
2110
|
+
*
|
|
2111
|
+
* Returned only when the service has a `schedule.availabilityConstraints.durationRange`.
|
|
2112
|
+
* @min 1
|
|
2113
|
+
* @max 1440
|
|
2114
|
+
* @readonly
|
|
2115
|
+
*/
|
|
2116
|
+
durationUnitCount?: number | null;
|
|
2039
2117
|
}
|
|
2040
2118
|
interface BookedResource {
|
|
2041
2119
|
/**
|
|
@@ -2128,7 +2206,9 @@ declare enum SelectionMethod {
|
|
|
2128
2206
|
/** @enumType */
|
|
2129
2207
|
type SelectionMethodWithLiterals = SelectionMethod | 'SPECIFIC_RESOURCE' | 'ANY_RESOURCE' | 'NO_SELECTION';
|
|
2130
2208
|
declare enum DurationUnitType {
|
|
2209
|
+
/** Hourly duration. When `durationUnitType` is `HOUR`, `durationUnitCount` represents the booked duration in minutes. */
|
|
2131
2210
|
HOUR = "HOUR",
|
|
2211
|
+
/** Daily duration. When `durationUnitType` is `DAY`, `durationUnitCount` represents the booked duration in days. */
|
|
2132
2212
|
DAY = "DAY"
|
|
2133
2213
|
}
|
|
2134
2214
|
/** @enumType */
|
|
@@ -2798,26 +2878,6 @@ interface AccountInfo {
|
|
|
2798
2878
|
*/
|
|
2799
2879
|
siteId?: string | null;
|
|
2800
2880
|
}
|
|
2801
|
-
/** Rule restricting how frequently a customer can rebook the same service. */
|
|
2802
|
-
interface RebookingFrequencyPolicy {
|
|
2803
|
-
/**
|
|
2804
|
-
* Whether rebooking restrictions are enabled for the service. When `false`, customers can rebook immediately.
|
|
2805
|
-
*
|
|
2806
|
-
* Default: `false`
|
|
2807
|
-
*/
|
|
2808
|
-
enabled?: boolean;
|
|
2809
|
-
/**
|
|
2810
|
-
* Whether customers can never rebook the same service. Only evaluated when `enabled` is `true`.
|
|
2811
|
-
*
|
|
2812
|
-
* Default: `false`
|
|
2813
|
-
*/
|
|
2814
|
-
permanentBlock?: boolean;
|
|
2815
|
-
/**
|
|
2816
|
-
* Minimum number of minutes between the start times of bookings for the same service by the same customer.
|
|
2817
|
-
* Only enforced when `enabled` is `true` and `permanent_block` is `false`.
|
|
2818
|
-
*/
|
|
2819
|
-
minTimeBetweenRebookingsMinutes?: number | null;
|
|
2820
|
-
}
|
|
2821
2881
|
interface CreateServiceRequest {
|
|
2822
2882
|
/** Service to create. */
|
|
2823
2883
|
service: Service;
|
|
@@ -2921,10 +2981,15 @@ declare enum V2RequestedFields {
|
|
|
2921
2981
|
/** Returns the name of each service resource's resource type (for example, `'Meeting rooms'` or `'Equipment'`). See `serviceResources.resourceType.name`. */
|
|
2922
2982
|
RESOURCE_TYPE_DETAILS = "RESOURCE_TYPE_DETAILS",
|
|
2923
2983
|
/** When passed, `service.payment.discountInfo` is returned. */
|
|
2924
|
-
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"
|
|
2925
2990
|
}
|
|
2926
2991
|
/** @enumType */
|
|
2927
|
-
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';
|
|
2928
2993
|
interface GetServiceResponse {
|
|
2929
2994
|
/** Retrieved service. */
|
|
2930
2995
|
service?: Service;
|
|
@@ -1878,6 +1878,8 @@ var CompletionRequirement = /* @__PURE__ */ ((CompletionRequirement2) => {
|
|
|
1878
1878
|
return CompletionRequirement2;
|
|
1879
1879
|
})(CompletionRequirement || {});
|
|
1880
1880
|
var UnitType = /* @__PURE__ */ ((UnitType2) => {
|
|
1881
|
+
UnitType2["HOUR"] = "HOUR";
|
|
1882
|
+
UnitType2["DAY"] = "DAY";
|
|
1881
1883
|
return UnitType2;
|
|
1882
1884
|
})(UnitType || {});
|
|
1883
1885
|
var WorkingHoursMode = /* @__PURE__ */ ((WorkingHoursMode2) => {
|
|
@@ -1982,6 +1984,7 @@ var V2RequestedFields = /* @__PURE__ */ ((V2RequestedFields2) => {
|
|
|
1982
1984
|
V2RequestedFields2["STAFF_MEMBER_DETAILS"] = "STAFF_MEMBER_DETAILS";
|
|
1983
1985
|
V2RequestedFields2["RESOURCE_TYPE_DETAILS"] = "RESOURCE_TYPE_DETAILS";
|
|
1984
1986
|
V2RequestedFields2["DISCOUNT_INFO_DETAILS"] = "DISCOUNT_INFO_DETAILS";
|
|
1987
|
+
V2RequestedFields2["RESOURCE_DETAILS"] = "RESOURCE_DETAILS";
|
|
1985
1988
|
return V2RequestedFields2;
|
|
1986
1989
|
})(V2RequestedFields || {});
|
|
1987
1990
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|