@wix/auto_sdk_bookings_services 1.0.59 → 1.0.61
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-CblVMEM-.d.ts → bookings-services-v2-service-services.universal-DD93tnK_.d.ts} +167 -169
- package/build/cjs/index.d.ts +4 -4
- package/build/cjs/index.js +5 -9
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-CblVMEM-.d.mts → bookings-services-v2-service-services.universal-DD93tnK_.d.mts} +167 -169
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +5 -9
- package/build/es/index.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-CblVMEM-.d.ts → bookings-services-v2-service-services.universal-DD93tnK_.d.ts} +167 -169
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js +5 -9
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-CblVMEM-.d.mts → bookings-services-v2-service-services.universal-DD93tnK_.d.mts} +167 -169
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs +5 -9
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bm as CreateServiceRequest$1, bn as CreateServiceResponse$1, br as BulkCreateServicesRequest$1, a as BulkCreateServicesResponse$1, bw as GetServiceRequest$1, bx as GetServiceResponse$1, bC as UpdateServiceRequest$1, bD as UpdateServiceResponse$1, bE as BulkUpdateServicesRequest$1, c as BulkUpdateServicesResponse$1, bG as BulkUpdateServicesByFilterRequest$1, e as BulkUpdateServicesByFilterResponse$1, bH as DeleteServiceRequest$1, bJ as DeleteServiceResponse$1, bK as BulkDeleteServicesRequest$1, g as BulkDeleteServicesResponse$1, bL as BulkDeleteServicesByFilterRequest$1, i as BulkDeleteServicesByFilterResponse$1, bM as QueryServicesRequest$1, bS as QueryServicesResponse$1, bV as SearchServicesRequest$1, l as SearchServicesResponse$1, cx as QueryPoliciesRequest$1, Q as QueryPoliciesResponse$1, cA as QueryBookingFormsRequest$1, n as QueryBookingFormsResponse$1, cE as CountServicesRequest$1, p as CountServicesResponse$1, cF as QueryLocationsRequest$1, r as QueryLocationsResponse$1, cK as QueryCategoriesRequest$1, t as QueryCategoriesResponse$1, cO as SetServiceLocationsRequest$1, v as SetServiceLocationsResponse$1, cS as EnablePricingPlansForServiceRequest$1, E as EnablePricingPlansForServiceResponse$1, cU as DisablePricingPlansForServiceRequest$1, x as DisablePricingPlansForServiceResponse$1, cV as SetCustomSlugRequest$1, z as SetCustomSlugResponse$1, cW as ValidateSlugRequest$1, A as ValidateSlugResponse$1, cX as CloneServiceRequest$1, F as CloneServiceResponse$1 } from './bookings-services-v2-service-services.universal-DD93tnK_.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/** The `service` object represents an offering that a business provides to its customers. */
|
|
@@ -1338,172 +1338,6 @@ declare enum WebhookIdentityType {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
/** @enumType */
|
|
1340
1340
|
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1341
|
-
interface CreateAddOnGroupRequest {
|
|
1342
|
-
/** AddOnGroup to create. */
|
|
1343
|
-
addOnGroup?: AddOnGroup;
|
|
1344
|
-
/**
|
|
1345
|
-
* ID of the service to create the AddOnGroup for.
|
|
1346
|
-
* @format GUID
|
|
1347
|
-
*/
|
|
1348
|
-
serviceId?: string | null;
|
|
1349
|
-
}
|
|
1350
|
-
interface CreateAddOnGroupResponse {
|
|
1351
|
-
/** Created AddOnGroup. */
|
|
1352
|
-
addOnGroup?: AddOnGroup;
|
|
1353
|
-
}
|
|
1354
|
-
interface DeleteAddOnGroupRequest {
|
|
1355
|
-
/**
|
|
1356
|
-
* ID of the AddOnGroup to delete.
|
|
1357
|
-
* @format GUID
|
|
1358
|
-
*/
|
|
1359
|
-
addOnGroupId?: string | null;
|
|
1360
|
-
/**
|
|
1361
|
-
* ID of the service from which to delete the AddOnGroup.
|
|
1362
|
-
* @format GUID
|
|
1363
|
-
*/
|
|
1364
|
-
serviceId?: string | null;
|
|
1365
|
-
}
|
|
1366
|
-
interface DeleteAddOnGroupResponse {
|
|
1367
|
-
}
|
|
1368
|
-
interface UpdateAddOnGroupRequest {
|
|
1369
|
-
/** AddOnGroup to update. */
|
|
1370
|
-
addOnGroup?: AddOnGroup;
|
|
1371
|
-
/**
|
|
1372
|
-
* ID of the service that contains the AddOnGroup.
|
|
1373
|
-
* @format GUID
|
|
1374
|
-
*/
|
|
1375
|
-
serviceId?: string | null;
|
|
1376
|
-
}
|
|
1377
|
-
interface UpdateAddOnGroupResponse {
|
|
1378
|
-
/** Updated AddOnGroup */
|
|
1379
|
-
addOnGroup?: AddOnGroup;
|
|
1380
|
-
}
|
|
1381
|
-
interface ListAddOnGroupsByServiceIdRequest {
|
|
1382
|
-
/**
|
|
1383
|
-
* ID of the service to retrieve AddOnGroups for.
|
|
1384
|
-
* @format GUID
|
|
1385
|
-
*/
|
|
1386
|
-
serviceId?: string | null;
|
|
1387
|
-
/**
|
|
1388
|
-
* List of group ids to return. If not provided, all groups are returned.
|
|
1389
|
-
* @format GUID
|
|
1390
|
-
* @maxSize 3
|
|
1391
|
-
*/
|
|
1392
|
-
groupIds?: string[] | null;
|
|
1393
|
-
}
|
|
1394
|
-
interface ListAddOnGroupsByServiceIdResponse {
|
|
1395
|
-
/**
|
|
1396
|
-
* List of group IDs and their linked AddOns.
|
|
1397
|
-
* @maxSize 3
|
|
1398
|
-
*/
|
|
1399
|
-
addOnGroupsDetails?: AddOnGroupDetail[];
|
|
1400
|
-
}
|
|
1401
|
-
interface AddOn extends AddOnAddOnInfoOneOf {
|
|
1402
|
-
/** The AddOn description. */
|
|
1403
|
-
durationInMinutes?: number;
|
|
1404
|
-
/** The AddOn max quantity. */
|
|
1405
|
-
maxQuantity?: number;
|
|
1406
|
-
/**
|
|
1407
|
-
* The AddOn ID.
|
|
1408
|
-
* @format GUID
|
|
1409
|
-
*/
|
|
1410
|
-
addOnId?: string | null;
|
|
1411
|
-
/**
|
|
1412
|
-
* The AddOn name.
|
|
1413
|
-
* @maxLength 100
|
|
1414
|
-
*/
|
|
1415
|
-
name?: string | null;
|
|
1416
|
-
/** The AddOn price. */
|
|
1417
|
-
price?: Money;
|
|
1418
|
-
}
|
|
1419
|
-
/** @oneof */
|
|
1420
|
-
interface AddOnAddOnInfoOneOf {
|
|
1421
|
-
/** The AddOn description. */
|
|
1422
|
-
durationInMinutes?: number;
|
|
1423
|
-
/** The AddOn max quantity. */
|
|
1424
|
-
maxQuantity?: number;
|
|
1425
|
-
}
|
|
1426
|
-
interface AddOnGroupDetail {
|
|
1427
|
-
/**
|
|
1428
|
-
* The group ID.
|
|
1429
|
-
* @format GUID
|
|
1430
|
-
*/
|
|
1431
|
-
groupId?: string | null;
|
|
1432
|
-
/** The group max number of AddOns. */
|
|
1433
|
-
maxNumberOfAddOns?: number | null;
|
|
1434
|
-
/**
|
|
1435
|
-
* The group name.
|
|
1436
|
-
* @maxLength 100
|
|
1437
|
-
*/
|
|
1438
|
-
groupName?: string | null;
|
|
1439
|
-
/**
|
|
1440
|
-
* The AddOns information linked to the group.
|
|
1441
|
-
* @maxSize 7
|
|
1442
|
-
*/
|
|
1443
|
-
addOns?: AddOn[];
|
|
1444
|
-
/**
|
|
1445
|
-
* The group prompt.
|
|
1446
|
-
* @maxLength 200
|
|
1447
|
-
*/
|
|
1448
|
-
prompt?: string | null;
|
|
1449
|
-
}
|
|
1450
|
-
interface SetAddOnsForGroupRequest {
|
|
1451
|
-
/**
|
|
1452
|
-
* The service ID to set AddOns for.
|
|
1453
|
-
* @format GUID
|
|
1454
|
-
*/
|
|
1455
|
-
serviceId?: string | null;
|
|
1456
|
-
/**
|
|
1457
|
-
* The group ID to set AddOns for.
|
|
1458
|
-
* @format GUID
|
|
1459
|
-
*/
|
|
1460
|
-
groupId?: string | null;
|
|
1461
|
-
/**
|
|
1462
|
-
* The IDs of AddOns to set.
|
|
1463
|
-
* @format GUID
|
|
1464
|
-
* @minSize 1
|
|
1465
|
-
* @maxSize 7
|
|
1466
|
-
*/
|
|
1467
|
-
addOnIds?: string[] | null;
|
|
1468
|
-
}
|
|
1469
|
-
interface SetAddOnsForGroupResponse {
|
|
1470
|
-
/** The updated AddOnGroup. */
|
|
1471
|
-
addOnGroup?: AddOnGroup;
|
|
1472
|
-
}
|
|
1473
|
-
interface ValidateAddOnsSelectionRequest {
|
|
1474
|
-
/**
|
|
1475
|
-
* The service ID to validate AddOns against.
|
|
1476
|
-
* @format GUID
|
|
1477
|
-
*/
|
|
1478
|
-
serviceId?: string | null;
|
|
1479
|
-
/**
|
|
1480
|
-
* The group ID to validate AddOns against.
|
|
1481
|
-
* @format GUID
|
|
1482
|
-
*/
|
|
1483
|
-
groupId?: string | null;
|
|
1484
|
-
/**
|
|
1485
|
-
* The IDs of AddOns to validate.
|
|
1486
|
-
* @format GUID
|
|
1487
|
-
* @minSize 1
|
|
1488
|
-
* @maxSize 7
|
|
1489
|
-
*/
|
|
1490
|
-
addOnIds?: string[] | null;
|
|
1491
|
-
}
|
|
1492
|
-
interface ValidateAddOnsSelectionResponse {
|
|
1493
|
-
/** The validation result. */
|
|
1494
|
-
result?: ValidationResult;
|
|
1495
|
-
}
|
|
1496
|
-
interface ValidationResult {
|
|
1497
|
-
/** Whether the AddOns selection is valid. */
|
|
1498
|
-
valid?: boolean | null;
|
|
1499
|
-
/**
|
|
1500
|
-
* A validation error message.
|
|
1501
|
-
* This field should populated when `valid` is `false`.
|
|
1502
|
-
* @minLength 1
|
|
1503
|
-
* @maxLength 300
|
|
1504
|
-
*/
|
|
1505
|
-
message?: string | null;
|
|
1506
|
-
}
|
|
1507
1341
|
interface CreateServiceRequest {
|
|
1508
1342
|
/** Service to create. */
|
|
1509
1343
|
service: Service;
|
|
@@ -3342,6 +3176,172 @@ interface SiteCloned {
|
|
|
3342
3176
|
/** Origin site id. */
|
|
3343
3177
|
originMetaSiteId?: string;
|
|
3344
3178
|
}
|
|
3179
|
+
interface CreateAddOnGroupRequest {
|
|
3180
|
+
/** AddOnGroup to create. */
|
|
3181
|
+
addOnGroup?: AddOnGroup;
|
|
3182
|
+
/**
|
|
3183
|
+
* ID of the service to create the AddOnGroup for.
|
|
3184
|
+
* @format GUID
|
|
3185
|
+
*/
|
|
3186
|
+
serviceId?: string | null;
|
|
3187
|
+
}
|
|
3188
|
+
interface CreateAddOnGroupResponse {
|
|
3189
|
+
/** Created AddOnGroup. */
|
|
3190
|
+
addOnGroup?: AddOnGroup;
|
|
3191
|
+
}
|
|
3192
|
+
interface DeleteAddOnGroupRequest {
|
|
3193
|
+
/**
|
|
3194
|
+
* ID of the AddOnGroup to delete.
|
|
3195
|
+
* @format GUID
|
|
3196
|
+
*/
|
|
3197
|
+
addOnGroupId?: string | null;
|
|
3198
|
+
/**
|
|
3199
|
+
* ID of the service from which to delete the AddOnGroup.
|
|
3200
|
+
* @format GUID
|
|
3201
|
+
*/
|
|
3202
|
+
serviceId?: string | null;
|
|
3203
|
+
}
|
|
3204
|
+
interface DeleteAddOnGroupResponse {
|
|
3205
|
+
}
|
|
3206
|
+
interface UpdateAddOnGroupRequest {
|
|
3207
|
+
/** AddOnGroup to update. */
|
|
3208
|
+
addOnGroup?: AddOnGroup;
|
|
3209
|
+
/**
|
|
3210
|
+
* ID of the service that contains the AddOnGroup.
|
|
3211
|
+
* @format GUID
|
|
3212
|
+
*/
|
|
3213
|
+
serviceId?: string | null;
|
|
3214
|
+
}
|
|
3215
|
+
interface UpdateAddOnGroupResponse {
|
|
3216
|
+
/** Updated AddOnGroup */
|
|
3217
|
+
addOnGroup?: AddOnGroup;
|
|
3218
|
+
}
|
|
3219
|
+
interface ListAddOnGroupsByServiceIdRequest {
|
|
3220
|
+
/**
|
|
3221
|
+
* ID of the service to retrieve AddOnGroups for.
|
|
3222
|
+
* @format GUID
|
|
3223
|
+
*/
|
|
3224
|
+
serviceId?: string | null;
|
|
3225
|
+
/**
|
|
3226
|
+
* List of group ids to return. If not provided, all groups are returned.
|
|
3227
|
+
* @format GUID
|
|
3228
|
+
* @maxSize 3
|
|
3229
|
+
*/
|
|
3230
|
+
groupIds?: string[] | null;
|
|
3231
|
+
}
|
|
3232
|
+
interface ListAddOnGroupsByServiceIdResponse {
|
|
3233
|
+
/**
|
|
3234
|
+
* List of group IDs and their linked AddOns.
|
|
3235
|
+
* @maxSize 3
|
|
3236
|
+
*/
|
|
3237
|
+
addOnGroupsDetails?: AddOnGroupDetail[];
|
|
3238
|
+
}
|
|
3239
|
+
interface AddOn extends AddOnAddOnInfoOneOf {
|
|
3240
|
+
/** The AddOn description. */
|
|
3241
|
+
durationInMinutes?: number;
|
|
3242
|
+
/** The AddOn max quantity. */
|
|
3243
|
+
maxQuantity?: number;
|
|
3244
|
+
/**
|
|
3245
|
+
* The AddOn ID.
|
|
3246
|
+
* @format GUID
|
|
3247
|
+
*/
|
|
3248
|
+
addOnId?: string | null;
|
|
3249
|
+
/**
|
|
3250
|
+
* The AddOn name.
|
|
3251
|
+
* @maxLength 100
|
|
3252
|
+
*/
|
|
3253
|
+
name?: string | null;
|
|
3254
|
+
/** The AddOn price. */
|
|
3255
|
+
price?: Money;
|
|
3256
|
+
}
|
|
3257
|
+
/** @oneof */
|
|
3258
|
+
interface AddOnAddOnInfoOneOf {
|
|
3259
|
+
/** The AddOn description. */
|
|
3260
|
+
durationInMinutes?: number;
|
|
3261
|
+
/** The AddOn max quantity. */
|
|
3262
|
+
maxQuantity?: number;
|
|
3263
|
+
}
|
|
3264
|
+
interface AddOnGroupDetail {
|
|
3265
|
+
/**
|
|
3266
|
+
* The group ID.
|
|
3267
|
+
* @format GUID
|
|
3268
|
+
*/
|
|
3269
|
+
groupId?: string | null;
|
|
3270
|
+
/** The group max number of AddOns. */
|
|
3271
|
+
maxNumberOfAddOns?: number | null;
|
|
3272
|
+
/**
|
|
3273
|
+
* The group name.
|
|
3274
|
+
* @maxLength 100
|
|
3275
|
+
*/
|
|
3276
|
+
groupName?: string | null;
|
|
3277
|
+
/**
|
|
3278
|
+
* The AddOns information linked to the group.
|
|
3279
|
+
* @maxSize 7
|
|
3280
|
+
*/
|
|
3281
|
+
addOns?: AddOn[];
|
|
3282
|
+
/**
|
|
3283
|
+
* The group prompt.
|
|
3284
|
+
* @maxLength 200
|
|
3285
|
+
*/
|
|
3286
|
+
prompt?: string | null;
|
|
3287
|
+
}
|
|
3288
|
+
interface SetAddOnsForGroupRequest {
|
|
3289
|
+
/**
|
|
3290
|
+
* The service ID to set AddOns for.
|
|
3291
|
+
* @format GUID
|
|
3292
|
+
*/
|
|
3293
|
+
serviceId?: string | null;
|
|
3294
|
+
/**
|
|
3295
|
+
* The group ID to set AddOns for.
|
|
3296
|
+
* @format GUID
|
|
3297
|
+
*/
|
|
3298
|
+
groupId?: string | null;
|
|
3299
|
+
/**
|
|
3300
|
+
* The IDs of AddOns to set.
|
|
3301
|
+
* @format GUID
|
|
3302
|
+
* @minSize 1
|
|
3303
|
+
* @maxSize 7
|
|
3304
|
+
*/
|
|
3305
|
+
addOnIds?: string[] | null;
|
|
3306
|
+
}
|
|
3307
|
+
interface SetAddOnsForGroupResponse {
|
|
3308
|
+
/** The updated AddOnGroup. */
|
|
3309
|
+
addOnGroup?: AddOnGroup;
|
|
3310
|
+
}
|
|
3311
|
+
interface ValidateAddOnsSelectionRequest {
|
|
3312
|
+
/**
|
|
3313
|
+
* The service ID to validate AddOns against.
|
|
3314
|
+
* @format GUID
|
|
3315
|
+
*/
|
|
3316
|
+
serviceId?: string | null;
|
|
3317
|
+
/**
|
|
3318
|
+
* The group ID to validate AddOns against.
|
|
3319
|
+
* @format GUID
|
|
3320
|
+
*/
|
|
3321
|
+
groupId?: string | null;
|
|
3322
|
+
/**
|
|
3323
|
+
* The IDs of AddOns to validate.
|
|
3324
|
+
* @format GUID
|
|
3325
|
+
* @minSize 1
|
|
3326
|
+
* @maxSize 7
|
|
3327
|
+
*/
|
|
3328
|
+
addOnIds?: string[] | null;
|
|
3329
|
+
}
|
|
3330
|
+
interface ValidateAddOnsSelectionResponse {
|
|
3331
|
+
/** The validation result. */
|
|
3332
|
+
result?: ValidationResult;
|
|
3333
|
+
}
|
|
3334
|
+
interface ValidationResult {
|
|
3335
|
+
/** Whether the AddOns selection is valid. */
|
|
3336
|
+
valid?: boolean | null;
|
|
3337
|
+
/**
|
|
3338
|
+
* A validation error message.
|
|
3339
|
+
* This field should populated when `valid` is `false`.
|
|
3340
|
+
* @minLength 1
|
|
3341
|
+
* @maxLength 300
|
|
3342
|
+
*/
|
|
3343
|
+
message?: string | null;
|
|
3344
|
+
}
|
|
3345
3345
|
interface BaseEventMetadata {
|
|
3346
3346
|
/**
|
|
3347
3347
|
* App instance ID.
|
|
@@ -3588,8 +3588,6 @@ interface BulkDeleteServicesByFilterOptions {
|
|
|
3588
3588
|
/** Whether to notify participants about the change and an optional custom message. */
|
|
3589
3589
|
participantNotification?: ParticipantNotification;
|
|
3590
3590
|
}
|
|
3591
|
-
interface QueryServicesOptions {
|
|
3592
|
-
}
|
|
3593
3591
|
interface QueryOffsetResult {
|
|
3594
3592
|
currentPage: number | undefined;
|
|
3595
3593
|
totalPages: number | undefined;
|
|
@@ -3905,4 +3903,4 @@ interface ValidateSlugOptions {
|
|
|
3905
3903
|
slug?: string;
|
|
3906
3904
|
}
|
|
3907
3905
|
|
|
3908
|
-
export {
|
|
3906
|
+
export { Mode as $, type ValidateSlugResponse as A, type BulkCreateServicesOptions as B, type CursorQuery as C, type DeleteServiceOptions as D, type EnablePricingPlansForServiceResponse as E, type CloneServiceResponse as F, type ServiceCreatedEnvelope as G, type ServiceDeletedEnvelope as H, type ServiceUpdatedEnvelope as I, ServiceType as J, LocationType as K, type Location as L, V2RequestedFields as M, SortOrder as N, SortType as O, SortDirection as P, type QueryPoliciesResponse as Q, RateType as R, type Service as S, MissingValues as T, type UpdateService as U, type ValidateSlugOptions as V, WebhookIdentityType as W, ScalarType as X, NestedAggregationType as Y, Interval as Z, AggregationType as _, type BulkCreateServicesResponse as a, type SeoSchema as a$, RequestedFields as a0, Action as a1, InvalidSlugError as a2, CloneErrors as a3, Status as a4, CategoryNotificationEvent as a5, BenefitType as a6, Event as a7, CrudType as a8, PlacementType as a9, type LimitEarlyBookingPolicy as aA, type LimitLateBookingPolicy as aB, type BookAfterStartPolicy as aC, type CancellationPolicy as aD, type ReschedulePolicy as aE, type WaitlistPolicy as aF, type ParticipantsPolicy as aG, type ResourcesPolicy as aH, type CancellationFeePolicy as aI, type CancellationWindow as aJ, type CancellationWindowFeeOneOf as aK, type SaveCreditCardPolicy as aL, type Schedule as aM, type AvailabilityConstraints as aN, type Duration as aO, type StaffMember as aP, type StaffMediaItem as aQ, type StaffMediaItemItemOneOf as aR, type StaffMemberDetails as aS, type ResourceGroup as aT, type ResourceIds as aU, type ServiceResource as aV, type ServiceResourceSelectionOneOf as aW, type ResourceType as aX, type Slug as aY, type URLs as aZ, type ExtendedFields as a_, DayOfWeek as aa, ResolutionMethod as ab, type Media as ac, type MediaItem as ad, type MediaItemItemOneOf as ae, type V2Category as af, type Form as ag, type FormSettings as ah, type Payment as ai, type PaymentRateOneOf as aj, type FixedPayment as ak, type Money as al, type CustomPayment as am, type VariedPayment as an, type PaymentOptions as ao, type OnlineBooking as ap, type Conferencing as aq, type LocationOptionsOneOf as ar, type CommonAddress as as, type CommonAddressStreetOneOf as at, type StreetAddress as au, type AddressLocation as av, type BusinessLocationOptions as aw, type CustomLocationOptions as ax, type BookingPolicy as ay, type PolicyDescription as az, type BulkUpdateServicesOptions as b, type IncludeMissingValuesOptions as b$, type Keyword as b0, type Tag as b1, type Settings as b2, type AddOnGroup as b3, type AddOnDetails as b4, type ReindexMessage as b5, type ReindexMessageActionOneOf as b6, type Upsert as b7, type Delete as b8, type Schema as b9, type ServiceAvailabilityConstraints as bA, type SplitInterval as bB, type UpdateServiceRequest as bC, type UpdateServiceResponse as bD, type BulkUpdateServicesRequest as bE, type MaskedService as bF, type BulkUpdateServicesByFilterRequest as bG, type DeleteServiceRequest as bH, type ParticipantNotification as bI, type DeleteServiceResponse as bJ, type BulkDeleteServicesRequest as bK, type BulkDeleteServicesByFilterRequest as bL, type QueryServicesRequest as bM, type QueryV2 as bN, type QueryV2PagingMethodOneOf as bO, type Sorting as bP, type Paging as bQ, type CursorPaging as bR, type QueryServicesResponse as bS, type PagingMetadataV2 as bT, type Cursors as bU, type SearchServicesRequest as bV, type CursorSearch as bW, type CursorSearchPagingMethodOneOf as bX, type Aggregation as bY, type AggregationKindOneOf as bZ, type RangeBucket as b_, type SetCustomSlugEvent as ba, type ServicesUrlsChanged as bb, type DomainEvent as bc, type DomainEventBodyOneOf as bd, type EntityCreatedEvent as be, type RestoreInfo as bf, type EntityUpdatedEvent as bg, type EntityDeletedEvent as bh, type ActionEvent as bi, type MessageEnvelope as bj, type IdentificationData as bk, type IdentificationDataIdOneOf as bl, type CreateServiceRequest as bm, type CreateServiceResponse as bn, type ValidateServiceRequest as bo, type ValidateServiceResponse as bp, type FieldViolation as bq, type BulkCreateServicesRequest as br, type BulkServiceResult as bs, type ItemMetadata as bt, type ApplicationError as bu, type BulkActionMetadata as bv, type GetServiceRequest as bw, type GetServiceResponse as bx, type GetServiceAvailabilityConstraintsRequest as by, type GetServiceAvailabilityConstraintsResponse as bz, type BulkUpdateServicesResponse as c, type BenefitNotification as c$, type ValueAggregation as c0, type ValueAggregationOptionsOneOf as c1, type RangeAggregation as c2, type ScalarAggregation as c3, type DateHistogramAggregation as c4, type NestedAggregationItem as c5, type NestedAggregationItemKindOneOf as c6, type NestedAggregation as c7, type GroupByAggregation as c8, type GroupByAggregationKindOneOf as c9, type QueryBookingFormsRequest as cA, type BookingForm as cB, type FormDetails as cC, type ConnectedService as cD, type CountServicesRequest as cE, type QueryLocationsRequest as cF, type QueryLocationsFilter as cG, type BusinessLocations as cH, type CustomLocations as cI, type CustomerLocations as cJ, type QueryCategoriesRequest as cK, type QueryCategoriesFilter as cL, type QueryServicesMultiLanguageRequest as cM, type QueryServicesMultiLanguageResponse as cN, type SetServiceLocationsRequest as cO, type RemovedLocationSessionsAction as cP, type RemovedLocationSessionsActionActionOptionsOneOf as cQ, type MoveToNewLocationsOptions as cR, type EnablePricingPlansForServiceRequest as cS, type InvalidPricingPlan as cT, type DisablePricingPlansForServiceRequest as cU, type SetCustomSlugRequest as cV, type ValidateSlugRequest as cW, type CloneServiceRequest as cX, type CategoryNotification as cY, type Category as cZ, type Empty as c_, type SearchDetails as ca, type CursorPagingMetadata as cb, type AggregationData as cc, type ValueAggregationResult as cd, type RangeAggregationResult as ce, type NestedAggregationResults as cf, type NestedAggregationResultsResultOneOf as cg, type ValueResults as ch, type RangeResults as ci, type AggregationResultsScalarResult as cj, type NestedValueAggregationResult as ck, type ValueResult as cl, type RangeResult as cm, type ScalarResult as cn, type NestedResultValue as co, type NestedResultValueResultOneOf as cp, type Results as cq, type DateHistogramResult as cr, type GroupByValueResults as cs, type DateHistogramResults as ct, type NestedResults as cu, type AggregationResults as cv, type AggregationResultsResultOneOf as cw, type QueryPoliciesRequest as cx, type CursorQueryPagingMethodOneOf as cy, type BookingPolicyWithServices as cz, type BulkUpdateServicesByFilterOptions as d, type Benefit as d0, type EntryPass as d1, type Discount as d2, type DiscountDiscountOneOf as d3, type Behavior as d4, type BehaviorBehaviorOneOf as d5, type UserDomainInfoChangedEvent as d6, type HtmlSitePublished as d7, type Page as d8, type SitePropertiesNotification as d9, type ListAddOnGroupsByServiceIdRequest as dA, type ListAddOnGroupsByServiceIdResponse as dB, type AddOn as dC, type AddOnAddOnInfoOneOf as dD, type AddOnGroupDetail as dE, type SetAddOnsForGroupRequest as dF, type SetAddOnsForGroupResponse as dG, type ValidateAddOnsSelectionRequest as dH, type ValidateAddOnsSelectionResponse as dI, type ValidationResult as dJ, type BaseEventMetadata as dK, type EventMetadata as dL, type ServicesQueryResult as dM, type ServiceSearchSpec as dN, type SitePropertiesEvent as da, type Properties as db, type Categories as dc, type Locale as dd, type Address as de, type AddressHint as df, type GeoCoordinates as dg, type BusinessSchedule as dh, type TimePeriod as di, type SpecialHourPeriod as dj, type Multilingual as dk, type SupportedLanguage as dl, type ConsentPolicy as dm, type Translation as dn, type ChangeContext as dp, type ChangeContextPayloadOneOf as dq, type PropertiesChange as dr, type SiteCreated as ds, type SiteCloned as dt, type CreateAddOnGroupRequest as du, type CreateAddOnGroupResponse as dv, type DeleteAddOnGroupRequest as dw, type DeleteAddOnGroupResponse as dx, type UpdateAddOnGroupRequest as dy, type UpdateAddOnGroupResponse as dz, type BulkUpdateServicesByFilterResponse as e, type BulkDeleteServicesOptions as f, type BulkDeleteServicesResponse as g, type BulkDeleteServicesByFilterOptions as h, type BulkDeleteServicesByFilterResponse as i, type ServicesQueryBuilder as j, type ServiceSearch as k, type SearchServicesResponse as l, type QueryBookingFormsOptions as m, type QueryBookingFormsResponse as n, type CountServicesOptions as o, type CountServicesResponse as p, type QueryLocationsOptions as q, type QueryLocationsResponse as r, type QueryCategoriesOptions as s, type QueryCategoriesResponse as t, type SetServiceLocationsOptions as u, type SetServiceLocationsResponse as v, type DisablePricingPlansForServiceOptions as w, type DisablePricingPlansForServiceResponse as x, type SetCustomSlugOptions as y, type SetCustomSlugResponse as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { S as Service, B as BulkCreateServicesOptions, a as BulkCreateServicesResponse, U as UpdateService, b as BulkUpdateServicesOptions, c as BulkUpdateServicesResponse, d as BulkUpdateServicesByFilterOptions, e as BulkUpdateServicesByFilterResponse, D as DeleteServiceOptions, f as BulkDeleteServicesOptions, g as BulkDeleteServicesResponse, h as BulkDeleteServicesByFilterOptions, i as BulkDeleteServicesByFilterResponse,
|
|
3
|
-
export {
|
|
2
|
+
import { S as Service, B as BulkCreateServicesOptions, a as BulkCreateServicesResponse, U as UpdateService, b as BulkUpdateServicesOptions, c as BulkUpdateServicesResponse, d as BulkUpdateServicesByFilterOptions, e as BulkUpdateServicesByFilterResponse, D as DeleteServiceOptions, f as BulkDeleteServicesOptions, g as BulkDeleteServicesResponse, h as BulkDeleteServicesByFilterOptions, i as BulkDeleteServicesByFilterResponse, j as ServicesQueryBuilder, k as ServiceSearch, l as SearchServicesResponse, C as CursorQuery, Q as QueryPoliciesResponse, m as QueryBookingFormsOptions, n as QueryBookingFormsResponse, o as CountServicesOptions, p as CountServicesResponse, q as QueryLocationsOptions, r as QueryLocationsResponse, s as QueryCategoriesOptions, t as QueryCategoriesResponse, L as Location, u as SetServiceLocationsOptions, v as SetServiceLocationsResponse, E as EnablePricingPlansForServiceResponse, w as DisablePricingPlansForServiceOptions, x as DisablePricingPlansForServiceResponse, y as SetCustomSlugOptions, z as SetCustomSlugResponse, V as ValidateSlugOptions, A as ValidateSlugResponse, F as CloneServiceResponse, G as ServiceCreatedEnvelope, H as ServiceDeletedEnvelope, I as ServiceUpdatedEnvelope } from './bookings-services-v2-service-services.universal-DD93tnK_.mjs';
|
|
3
|
+
export { a1 as Action, bi as ActionEvent, dC as AddOn, dD as AddOnAddOnInfoOneOf, b4 as AddOnDetails, b3 as AddOnGroup, dE as AddOnGroupDetail, de as Address, df as AddressHint, av as AddressLocation, bY as Aggregation, cc as AggregationData, bZ as AggregationKindOneOf, cv as AggregationResults, cw as AggregationResultsResultOneOf, cj as AggregationResultsScalarResult, _ as AggregationType, bu as ApplicationError, aN as AvailabilityConstraints, dK as BaseEventMetadata, d4 as Behavior, d5 as BehaviorBehaviorOneOf, d0 as Benefit, c$ as BenefitNotification, a6 as BenefitType, aC as BookAfterStartPolicy, cB as BookingForm, ay as BookingPolicy, cz as BookingPolicyWithServices, bv as BulkActionMetadata, br as BulkCreateServicesRequest, bL as BulkDeleteServicesByFilterRequest, bK as BulkDeleteServicesRequest, bs as BulkServiceResult, bG as BulkUpdateServicesByFilterRequest, bE as BulkUpdateServicesRequest, aw as BusinessLocationOptions, cH as BusinessLocations, dh as BusinessSchedule, aI as CancellationFeePolicy, aD as CancellationPolicy, aJ as CancellationWindow, aK as CancellationWindowFeeOneOf, dc as Categories, cZ as Category, cY as CategoryNotification, a5 as CategoryNotificationEvent, dp as ChangeContext, dq as ChangeContextPayloadOneOf, a3 as CloneErrors, cX as CloneServiceRequest, as as CommonAddress, at as CommonAddressStreetOneOf, aq as Conferencing, cD as ConnectedService, dm as ConsentPolicy, cE as CountServicesRequest, du as CreateAddOnGroupRequest, dv as CreateAddOnGroupResponse, bm as CreateServiceRequest, bn as CreateServiceResponse, a8 as CrudType, bR as CursorPaging, cb as CursorPagingMetadata, cy as CursorQueryPagingMethodOneOf, bW as CursorSearch, bX as CursorSearchPagingMethodOneOf, bU as Cursors, ax as CustomLocationOptions, cI as CustomLocations, am as CustomPayment, cJ as CustomerLocations, c4 as DateHistogramAggregation, cr as DateHistogramResult, ct as DateHistogramResults, aa as DayOfWeek, b8 as Delete, dw as DeleteAddOnGroupRequest, dx as DeleteAddOnGroupResponse, bH as DeleteServiceRequest, bJ as DeleteServiceResponse, cU as DisablePricingPlansForServiceRequest, d2 as Discount, d3 as DiscountDiscountOneOf, bc as DomainEvent, bd as DomainEventBodyOneOf, aO as Duration, c_ as Empty, cS as EnablePricingPlansForServiceRequest, be as EntityCreatedEvent, bh as EntityDeletedEvent, bg as EntityUpdatedEvent, d1 as EntryPass, a7 as Event, dL as EventMetadata, a_ as ExtendedFields, bq as FieldViolation, ak as FixedPayment, ag as Form, cC as FormDetails, ah as FormSettings, dg as GeoCoordinates, by as GetServiceAvailabilityConstraintsRequest, bz as GetServiceAvailabilityConstraintsResponse, bw as GetServiceRequest, bx as GetServiceResponse, c8 as GroupByAggregation, c9 as GroupByAggregationKindOneOf, cs as GroupByValueResults, d7 as HtmlSitePublished, bk as IdentificationData, bl as IdentificationDataIdOneOf, b$ as IncludeMissingValuesOptions, Z as Interval, cT as InvalidPricingPlan, a2 as InvalidSlugError, bt as ItemMetadata, b0 as Keyword, aA as LimitEarlyBookingPolicy, aB as LimitLateBookingPolicy, dA as ListAddOnGroupsByServiceIdRequest, dB as ListAddOnGroupsByServiceIdResponse, dd as Locale, ar as LocationOptionsOneOf, K as LocationType, bF as MaskedService, ac as Media, ad as MediaItem, ae as MediaItemItemOneOf, bj as MessageEnvelope, T as MissingValues, $ as Mode, al as Money, cR as MoveToNewLocationsOptions, dk as Multilingual, c7 as NestedAggregation, c5 as NestedAggregationItem, c6 as NestedAggregationItemKindOneOf, cf as NestedAggregationResults, cg as NestedAggregationResultsResultOneOf, Y as NestedAggregationType, co as NestedResultValue, cp as NestedResultValueResultOneOf, cu as NestedResults, ck as NestedValueAggregationResult, ap as OnlineBooking, d8 as Page, bQ as Paging, bT as PagingMetadataV2, bI as ParticipantNotification, aG as ParticipantsPolicy, ai as Payment, ao as PaymentOptions, aj as PaymentRateOneOf, a9 as PlacementType, az as PolicyDescription, db as Properties, dr as PropertiesChange, cA as QueryBookingFormsRequest, cL as QueryCategoriesFilter, cK as QueryCategoriesRequest, cG as QueryLocationsFilter, cF as QueryLocationsRequest, cx as QueryPoliciesRequest, cM as QueryServicesMultiLanguageRequest, cN as QueryServicesMultiLanguageResponse, bM as QueryServicesRequest, bS as QueryServicesResponse, bN as QueryV2, bO as QueryV2PagingMethodOneOf, c2 as RangeAggregation, ce as RangeAggregationResult, b_ as RangeBucket, cm as RangeResult, ci as RangeResults, R as RateType, b5 as ReindexMessage, b6 as ReindexMessageActionOneOf, cP as RemovedLocationSessionsAction, cQ as RemovedLocationSessionsActionActionOptionsOneOf, a0 as RequestedFields, aE as ReschedulePolicy, ab as ResolutionMethod, aT as ResourceGroup, aU as ResourceIds, aX as ResourceType, aH as ResourcesPolicy, bf as RestoreInfo, cq as Results, aL as SaveCreditCardPolicy, c3 as ScalarAggregation, cn as ScalarResult, X as ScalarType, aM as Schedule, b9 as Schema, ca as SearchDetails, bV as SearchServicesRequest, a$ as SeoSchema, bA as ServiceAvailabilityConstraints, aV as ServiceResource, aW as ServiceResourceSelectionOneOf, dN as ServiceSearchSpec, J as ServiceType, dM as ServicesQueryResult, bb as ServicesUrlsChanged, dF as SetAddOnsForGroupRequest, dG as SetAddOnsForGroupResponse, ba as SetCustomSlugEvent, cV as SetCustomSlugRequest, cO as SetServiceLocationsRequest, b2 as Settings, dt as SiteCloned, ds as SiteCreated, da as SitePropertiesEvent, d9 as SitePropertiesNotification, aY as Slug, P as SortDirection, N as SortOrder, O as SortType, bP as Sorting, dj as SpecialHourPeriod, bB as SplitInterval, aQ as StaffMediaItem, aR as StaffMediaItemItemOneOf, aP as StaffMember, aS as StaffMemberDetails, a4 as Status, au as StreetAddress, dl as SupportedLanguage, b1 as Tag, di as TimePeriod, dn as Translation, aZ as URLs, dy as UpdateAddOnGroupRequest, dz as UpdateAddOnGroupResponse, bC as UpdateServiceRequest, bD as UpdateServiceResponse, b7 as Upsert, d6 as UserDomainInfoChangedEvent, af as V2Category, M as V2RequestedFields, dH as ValidateAddOnsSelectionRequest, dI as ValidateAddOnsSelectionResponse, bo as ValidateServiceRequest, bp as ValidateServiceResponse, cW as ValidateSlugRequest, dJ as ValidationResult, c0 as ValueAggregation, c1 as ValueAggregationOptionsOneOf, cd as ValueAggregationResult, cl as ValueResult, ch as ValueResults, an as VariedPayment, aF as WaitlistPolicy, W as WebhookIdentityType } from './bookings-services-v2-service-services.universal-DD93tnK_.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createService$1(httpClient: HttpClient): CreateServiceSignature;
|
|
6
6
|
interface CreateServiceSignature {
|
|
@@ -205,7 +205,7 @@ interface QueryServicesSignature {
|
|
|
205
205
|
*
|
|
206
206
|
* The following `ServicesQueryBuilder` functions are supported for the `queryServices()` function. For a full description of the `service` object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/services-query-result/items) property in `ServicesQueryResult`.
|
|
207
207
|
*/
|
|
208
|
-
(
|
|
208
|
+
(): ServicesQueryBuilder;
|
|
209
209
|
}
|
|
210
210
|
declare function searchServices$1(httpClient: HttpClient): SearchServicesSignature;
|
|
211
211
|
interface SearchServicesSignature {
|
|
@@ -636,4 +636,4 @@ declare const onServiceDeleted: BuildEventDefinition<typeof onServiceDeleted$1>;
|
|
|
636
636
|
*/
|
|
637
637
|
declare const onServiceUpdated: BuildEventDefinition<typeof onServiceUpdated$1>;
|
|
638
638
|
|
|
639
|
-
export { BulkCreateServicesOptions, BulkCreateServicesResponse, BulkDeleteServicesByFilterOptions, BulkDeleteServicesByFilterResponse, BulkDeleteServicesOptions, BulkDeleteServicesResponse, BulkUpdateServicesByFilterOptions, BulkUpdateServicesByFilterResponse, BulkUpdateServicesOptions, BulkUpdateServicesResponse, CloneServiceResponse, CountServicesOptions, CountServicesResponse, CursorQuery, DeleteServiceOptions, DisablePricingPlansForServiceOptions, DisablePricingPlansForServiceResponse, EnablePricingPlansForServiceResponse, Location, QueryBookingFormsOptions, QueryBookingFormsResponse, QueryCategoriesOptions, QueryCategoriesResponse, QueryLocationsOptions, QueryLocationsResponse, QueryPoliciesResponse,
|
|
639
|
+
export { BulkCreateServicesOptions, BulkCreateServicesResponse, BulkDeleteServicesByFilterOptions, BulkDeleteServicesByFilterResponse, BulkDeleteServicesOptions, BulkDeleteServicesResponse, BulkUpdateServicesByFilterOptions, BulkUpdateServicesByFilterResponse, BulkUpdateServicesOptions, BulkUpdateServicesResponse, CloneServiceResponse, CountServicesOptions, CountServicesResponse, CursorQuery, DeleteServiceOptions, DisablePricingPlansForServiceOptions, DisablePricingPlansForServiceResponse, EnablePricingPlansForServiceResponse, Location, QueryBookingFormsOptions, QueryBookingFormsResponse, QueryCategoriesOptions, QueryCategoriesResponse, QueryLocationsOptions, QueryLocationsResponse, QueryPoliciesResponse, SearchServicesResponse, Service, ServiceCreatedEnvelope, ServiceDeletedEnvelope, ServiceUpdatedEnvelope, ServicesQueryBuilder, SetCustomSlugOptions, SetCustomSlugResponse, SetServiceLocationsOptions, SetServiceLocationsResponse, UpdateService, ValidateSlugOptions, ValidateSlugResponse, bulkCreateServices, bulkDeleteServices, bulkDeleteServicesByFilter, bulkUpdateServices, bulkUpdateServicesByFilter, cloneService, countServices, createService, deleteService, disablePricingPlansForService, enablePricingPlansForService, getService, onServiceCreated, onServiceDeleted, onServiceUpdated, queryBookingForms, queryCategories, queryLocations, queryPolicies, queryServices, searchServices, setCustomSlug, setServiceLocations, updateService, validateSlug };
|
|
@@ -2178,14 +2178,11 @@ async function bulkDeleteServicesByFilter2(filter, options) {
|
|
|
2178
2178
|
throw transformedError;
|
|
2179
2179
|
}
|
|
2180
2180
|
}
|
|
2181
|
-
function queryServices2(
|
|
2182
|
-
const { httpClient, sideEffects } = arguments[
|
|
2181
|
+
function queryServices2() {
|
|
2182
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
2183
2183
|
return queryBuilder({
|
|
2184
2184
|
func: async (payload) => {
|
|
2185
|
-
const reqOpts = queryServices(
|
|
2186
|
-
...payload,
|
|
2187
|
-
...options ?? {}
|
|
2188
|
-
});
|
|
2185
|
+
const reqOpts = queryServices(payload);
|
|
2189
2186
|
sideEffects?.onSiteCall?.();
|
|
2190
2187
|
try {
|
|
2191
2188
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2197,7 +2194,7 @@ function queryServices2(options) {
|
|
|
2197
2194
|
}
|
|
2198
2195
|
},
|
|
2199
2196
|
requestTransformer: (query) => {
|
|
2200
|
-
const args = [query,
|
|
2197
|
+
const args = [query, {}];
|
|
2201
2198
|
return renameKeysFromSDKRequestToRESTRequest({
|
|
2202
2199
|
...args?.[1],
|
|
2203
2200
|
query: args?.[0]
|
|
@@ -2906,8 +2903,7 @@ function bulkDeleteServicesByFilter3(httpClient) {
|
|
|
2906
2903
|
);
|
|
2907
2904
|
}
|
|
2908
2905
|
function queryServices3(httpClient) {
|
|
2909
|
-
return (
|
|
2910
|
-
options,
|
|
2906
|
+
return () => queryServices2(
|
|
2911
2907
|
// @ts-ignore
|
|
2912
2908
|
{ httpClient }
|
|
2913
2909
|
);
|