@wix/auto_sdk_bookings_services 1.0.136 → 1.0.138
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-C5HZaI8N.d.ts → bookings-services-v2-service-services.universal-CUaT-E45.d.ts} +85 -63
- package/build/cjs/index.d.ts +43 -21
- 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 +39 -39
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-C5HZaI8N.d.mts → bookings-services-v2-service-services.universal-CUaT-E45.d.mts} +85 -63
- package/build/es/index.d.mts +43 -21
- 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 +39 -39
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-C5HZaI8N.d.ts → bookings-services-v2-service-services.universal-CUaT-E45.d.ts} +85 -63
- package/build/internal/cjs/index.d.ts +43 -21
- 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 +39 -39
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-C5HZaI8N.d.mts → bookings-services-v2-service-services.universal-CUaT-E45.d.mts} +85 -63
- package/build/internal/es/index.d.mts +43 -21
- 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 +39 -39
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -914,8 +914,8 @@ declare enum SortingMethodType {
|
|
|
914
914
|
/** Staff members are selected based on their priority ranking. */
|
|
915
915
|
RANKING = "RANKING",
|
|
916
916
|
/**
|
|
917
|
-
* Staff members are selected using a custom
|
|
918
|
-
* This allows third-party apps to implement custom staff
|
|
917
|
+
* Staff members are selected using a custom implementation provided by SortStaffSPI.
|
|
918
|
+
* This allows third-party apps to implement custom staff sorting logic.
|
|
919
919
|
*/
|
|
920
920
|
CUSTOM = "CUSTOM"
|
|
921
921
|
}
|
|
@@ -939,13 +939,13 @@ interface RankingOptions {
|
|
|
939
939
|
*/
|
|
940
940
|
interface CustomOptions {
|
|
941
941
|
/**
|
|
942
|
-
* ID of the custom
|
|
942
|
+
* ID of the custom sorting method implemented in SortStaffSPI.
|
|
943
943
|
* This identifies which custom sorting algorithm to use.
|
|
944
944
|
* @format GUID
|
|
945
945
|
*/
|
|
946
|
-
|
|
946
|
+
implementationId?: string;
|
|
947
947
|
/**
|
|
948
|
-
* ID of the app that provides the custom
|
|
948
|
+
* ID of the app that provides the custom sorting method.
|
|
949
949
|
* @format GUID
|
|
950
950
|
*/
|
|
951
951
|
appId?: string;
|
|
@@ -1234,29 +1234,29 @@ interface Settings {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
interface AddOnGroup {
|
|
1236
1236
|
/**
|
|
1237
|
-
*
|
|
1237
|
+
* Add-on group ID.
|
|
1238
1238
|
* @readonly
|
|
1239
1239
|
* @format GUID
|
|
1240
1240
|
*/
|
|
1241
1241
|
_id?: string | null;
|
|
1242
1242
|
/**
|
|
1243
|
-
*
|
|
1243
|
+
* Group name displayed to customers.
|
|
1244
1244
|
* @maxLength 100
|
|
1245
1245
|
*/
|
|
1246
1246
|
name?: string | null;
|
|
1247
1247
|
/**
|
|
1248
|
-
*
|
|
1249
|
-
* If not set,
|
|
1248
|
+
* Maximum number of add-ons customers can select from this group.
|
|
1249
|
+
* If not set, customers can select unlimited add-ons from the group.
|
|
1250
1250
|
*/
|
|
1251
1251
|
maxNumberOfAddOns?: number | null;
|
|
1252
1252
|
/**
|
|
1253
|
-
* List of
|
|
1253
|
+
* List of add-on IDs in this group, ordered by display sequence.
|
|
1254
1254
|
* @format GUID
|
|
1255
1255
|
* @maxSize 7
|
|
1256
1256
|
*/
|
|
1257
1257
|
addOnIds?: string[] | null;
|
|
1258
1258
|
/**
|
|
1259
|
-
*
|
|
1259
|
+
* Instructional prompt displayed to customers for this group.
|
|
1260
1260
|
* @maxLength 200
|
|
1261
1261
|
*/
|
|
1262
1262
|
prompt?: string | null;
|
|
@@ -1455,26 +1455,26 @@ declare enum WebhookIdentityType {
|
|
|
1455
1455
|
/** @enumType */
|
|
1456
1456
|
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1457
1457
|
interface CreateAddOnGroupRequest {
|
|
1458
|
-
/**
|
|
1458
|
+
/** Add-on group to create. */
|
|
1459
1459
|
addOnGroup: AddOnGroup;
|
|
1460
1460
|
/**
|
|
1461
|
-
* ID of the service to create the
|
|
1461
|
+
* ID of the service to create the add-on group for.
|
|
1462
1462
|
* @format GUID
|
|
1463
1463
|
*/
|
|
1464
1464
|
serviceId?: string | null;
|
|
1465
1465
|
}
|
|
1466
1466
|
interface CreateAddOnGroupResponse {
|
|
1467
|
-
/** Created
|
|
1467
|
+
/** Created add-on group. */
|
|
1468
1468
|
addOnGroup?: AddOnGroup;
|
|
1469
1469
|
}
|
|
1470
1470
|
interface DeleteAddOnGroupRequest {
|
|
1471
1471
|
/**
|
|
1472
|
-
* ID of the
|
|
1472
|
+
* ID of the add-on group to delete.
|
|
1473
1473
|
* @format GUID
|
|
1474
1474
|
*/
|
|
1475
1475
|
addOnGroupId: string | null;
|
|
1476
1476
|
/**
|
|
1477
|
-
* ID of the service from which to delete the
|
|
1477
|
+
* ID of the service from which to delete the add-on group.
|
|
1478
1478
|
* @format GUID
|
|
1479
1479
|
*/
|
|
1480
1480
|
serviceId: string | null;
|
|
@@ -1482,26 +1482,26 @@ interface DeleteAddOnGroupRequest {
|
|
|
1482
1482
|
interface DeleteAddOnGroupResponse {
|
|
1483
1483
|
}
|
|
1484
1484
|
interface UpdateAddOnGroupRequest {
|
|
1485
|
-
/**
|
|
1485
|
+
/** Add-on group to update. */
|
|
1486
1486
|
addOnGroup: AddOnGroup;
|
|
1487
1487
|
/**
|
|
1488
|
-
* ID of the service that contains the
|
|
1488
|
+
* ID of the service that contains the add-on group.
|
|
1489
1489
|
* @format GUID
|
|
1490
1490
|
*/
|
|
1491
1491
|
serviceId: string | null;
|
|
1492
1492
|
}
|
|
1493
1493
|
interface UpdateAddOnGroupResponse {
|
|
1494
|
-
/** Updated
|
|
1494
|
+
/** Updated add-on group. */
|
|
1495
1495
|
addOnGroup?: AddOnGroup;
|
|
1496
1496
|
}
|
|
1497
1497
|
interface ListAddOnGroupsByServiceIdRequest {
|
|
1498
1498
|
/**
|
|
1499
|
-
* ID of the service to retrieve
|
|
1499
|
+
* ID of the service to retrieve add-on groups for.
|
|
1500
1500
|
* @format GUID
|
|
1501
1501
|
*/
|
|
1502
1502
|
serviceId: string | null;
|
|
1503
1503
|
/**
|
|
1504
|
-
* List of group
|
|
1504
|
+
* List of group IDs to return. By default, all groups are returned.
|
|
1505
1505
|
* @format GUID
|
|
1506
1506
|
* @maxSize 3
|
|
1507
1507
|
*/
|
|
@@ -1509,73 +1509,73 @@ interface ListAddOnGroupsByServiceIdRequest {
|
|
|
1509
1509
|
}
|
|
1510
1510
|
interface ListAddOnGroupsByServiceIdResponse {
|
|
1511
1511
|
/**
|
|
1512
|
-
* List of group
|
|
1512
|
+
* List of group details with their linked add-ons.
|
|
1513
1513
|
* @maxSize 3
|
|
1514
1514
|
*/
|
|
1515
1515
|
addOnGroupsDetails?: AddOnGroupDetail[];
|
|
1516
1516
|
}
|
|
1517
1517
|
interface AddOn extends AddOnAddOnInfoOneOf {
|
|
1518
|
-
/**
|
|
1518
|
+
/** Duration in minutes for duration-based add-ons that extend booking service time. */
|
|
1519
1519
|
durationInMinutes?: number;
|
|
1520
|
-
/**
|
|
1520
|
+
/** Maximum quantity customers can purchase for quantity-based add-ons. */
|
|
1521
1521
|
maxQuantity?: number;
|
|
1522
1522
|
/**
|
|
1523
|
-
*
|
|
1523
|
+
* Add-on ID.
|
|
1524
1524
|
* @format GUID
|
|
1525
1525
|
*/
|
|
1526
1526
|
addOnId?: string | null;
|
|
1527
1527
|
/**
|
|
1528
|
-
*
|
|
1528
|
+
* Add-on name displayed to customers.
|
|
1529
1529
|
* @maxLength 100
|
|
1530
1530
|
*/
|
|
1531
1531
|
name?: string | null;
|
|
1532
|
-
/**
|
|
1532
|
+
/** Add-on price. */
|
|
1533
1533
|
price?: Money;
|
|
1534
1534
|
}
|
|
1535
1535
|
/** @oneof */
|
|
1536
1536
|
interface AddOnAddOnInfoOneOf {
|
|
1537
|
-
/**
|
|
1537
|
+
/** Duration in minutes for duration-based add-ons that extend booking service time. */
|
|
1538
1538
|
durationInMinutes?: number;
|
|
1539
|
-
/**
|
|
1539
|
+
/** Maximum quantity customers can purchase for quantity-based add-ons. */
|
|
1540
1540
|
maxQuantity?: number;
|
|
1541
1541
|
}
|
|
1542
1542
|
interface AddOnGroupDetail {
|
|
1543
1543
|
/**
|
|
1544
|
-
*
|
|
1544
|
+
* Group ID.
|
|
1545
1545
|
* @format GUID
|
|
1546
1546
|
*/
|
|
1547
1547
|
groupId?: string | null;
|
|
1548
|
-
/**
|
|
1548
|
+
/** Maximum number of add-ons customers can select from this group. */
|
|
1549
1549
|
maxNumberOfAddOns?: number | null;
|
|
1550
1550
|
/**
|
|
1551
|
-
*
|
|
1551
|
+
* Group name displayed to customers.
|
|
1552
1552
|
* @maxLength 100
|
|
1553
1553
|
*/
|
|
1554
1554
|
groupName?: string | null;
|
|
1555
1555
|
/**
|
|
1556
|
-
*
|
|
1556
|
+
* Add-ons linked to this group in display order.
|
|
1557
1557
|
* @maxSize 7
|
|
1558
1558
|
*/
|
|
1559
1559
|
addOns?: AddOn[];
|
|
1560
1560
|
/**
|
|
1561
|
-
*
|
|
1561
|
+
* Instructional prompt displayed to customers. For example, `Choose up to 2 relaxing spa treatments to enhance your experience`. You can also use this field as a group description. For example, `Beginner-friendly rental equipment`.
|
|
1562
1562
|
* @maxLength 200
|
|
1563
1563
|
*/
|
|
1564
1564
|
prompt?: string | null;
|
|
1565
1565
|
}
|
|
1566
1566
|
interface SetAddOnsForGroupRequest {
|
|
1567
1567
|
/**
|
|
1568
|
-
*
|
|
1568
|
+
* Service ID containing the group.
|
|
1569
1569
|
* @format GUID
|
|
1570
1570
|
*/
|
|
1571
1571
|
serviceId: string | null;
|
|
1572
1572
|
/**
|
|
1573
|
-
*
|
|
1573
|
+
* Group ID to set add-ons for.
|
|
1574
1574
|
* @format GUID
|
|
1575
1575
|
*/
|
|
1576
1576
|
groupId: string | null;
|
|
1577
1577
|
/**
|
|
1578
|
-
*
|
|
1578
|
+
* IDs of add-ons to set for the group in display order.
|
|
1579
1579
|
* @format GUID
|
|
1580
1580
|
* @minSize 1
|
|
1581
1581
|
* @maxSize 7
|
|
@@ -1583,7 +1583,7 @@ interface SetAddOnsForGroupRequest {
|
|
|
1583
1583
|
addOnIds: string[] | null;
|
|
1584
1584
|
}
|
|
1585
1585
|
interface SetAddOnsForGroupResponse {
|
|
1586
|
-
/**
|
|
1586
|
+
/** Updated add-on group. */
|
|
1587
1587
|
addOnGroup?: AddOnGroup;
|
|
1588
1588
|
}
|
|
1589
1589
|
interface CreateServiceRequest {
|
|
@@ -3757,10 +3757,8 @@ interface ServiceUpdatedEnvelope {
|
|
|
3757
3757
|
*/
|
|
3758
3758
|
declare function onServiceUpdated(handler: (event: ServiceUpdatedEnvelope) => void | Promise<void>): void;
|
|
3759
3759
|
/**
|
|
3760
|
-
*
|
|
3761
|
-
*
|
|
3762
|
-
* with constraints such as minimum and maximum selections.
|
|
3763
|
-
* @param addOnGroup - AddOnGroup to create.
|
|
3760
|
+
* Creates a new add-on group for a service and updates the service's `addOnGroups` array.
|
|
3761
|
+
* @param addOnGroup - Add-on group to create.
|
|
3764
3762
|
* @public
|
|
3765
3763
|
* @documentationMaturity preview
|
|
3766
3764
|
* @requiredField addOnGroup
|
|
@@ -3772,15 +3770,17 @@ declare function onServiceUpdated(handler: (event: ServiceUpdatedEnvelope) => vo
|
|
|
3772
3770
|
declare function createAddOnGroup(addOnGroup: NonNullablePaths<AddOnGroup, `name`, 2>, options?: CreateAddOnGroupOptions): Promise<NonNullablePaths<CreateAddOnGroupResponse, `addOnGroup.addOnIds`, 3>>;
|
|
3773
3771
|
interface CreateAddOnGroupOptions {
|
|
3774
3772
|
/**
|
|
3775
|
-
* ID of the service to create the
|
|
3773
|
+
* ID of the service to create the add-on group for.
|
|
3776
3774
|
* @format GUID
|
|
3777
3775
|
*/
|
|
3778
3776
|
serviceId?: string | null;
|
|
3779
3777
|
}
|
|
3780
3778
|
/**
|
|
3781
|
-
*
|
|
3782
|
-
*
|
|
3783
|
-
*
|
|
3779
|
+
* Deletes an add-on group.
|
|
3780
|
+
*
|
|
3781
|
+
*
|
|
3782
|
+
* Deleting the group unlinks all associated add-ons but doesn't delete the individual add-ons.
|
|
3783
|
+
* @param addOnGroupId - ID of the add-on group to delete.
|
|
3784
3784
|
* @public
|
|
3785
3785
|
* @documentationMaturity preview
|
|
3786
3786
|
* @requiredField addOnGroupId
|
|
@@ -3795,15 +3795,17 @@ declare function deleteAddOnGroup(addOnGroupId: string, options: NonNullablePath
|
|
|
3795
3795
|
}>;
|
|
3796
3796
|
interface DeleteAddOnGroupOptions {
|
|
3797
3797
|
/**
|
|
3798
|
-
* ID of the service from which to delete the
|
|
3798
|
+
* ID of the service from which to delete the add-on group.
|
|
3799
3799
|
* @format GUID
|
|
3800
3800
|
*/
|
|
3801
3801
|
serviceId: string | null;
|
|
3802
3802
|
}
|
|
3803
3803
|
/**
|
|
3804
|
-
*
|
|
3805
|
-
*
|
|
3806
|
-
*
|
|
3804
|
+
* Updates an add-on group.
|
|
3805
|
+
*
|
|
3806
|
+
*
|
|
3807
|
+
* To update only the display order, consider calling [Set Add-Ons For Group](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/set-add-ons-for-group) instead.
|
|
3808
|
+
* @param addOnGroup - Add-on group to update.
|
|
3807
3809
|
* @public
|
|
3808
3810
|
* @documentationMaturity preview
|
|
3809
3811
|
* @requiredField addOnGroup
|
|
@@ -3819,16 +3821,20 @@ declare function updateAddOnGroup(addOnGroup: NonNullablePaths<AddOnGroup, `_id`
|
|
|
3819
3821
|
}>;
|
|
3820
3822
|
interface UpdateAddOnGroupOptions {
|
|
3821
3823
|
/**
|
|
3822
|
-
* ID of the service that contains the
|
|
3824
|
+
* ID of the service that contains the add-on group.
|
|
3823
3825
|
* @format GUID
|
|
3824
3826
|
*/
|
|
3825
3827
|
serviceId: string | null;
|
|
3826
3828
|
}
|
|
3827
3829
|
/**
|
|
3828
|
-
* Retrieves
|
|
3829
|
-
*
|
|
3830
|
-
*
|
|
3831
|
-
*
|
|
3830
|
+
* Retrieves add-on groups for a service with enriched add-on details.
|
|
3831
|
+
*
|
|
3832
|
+
*
|
|
3833
|
+
* Add-on details are returned based on their display order.
|
|
3834
|
+
*
|
|
3835
|
+
* If you specify `groupIds`, only those groups are returned.
|
|
3836
|
+
* By default, all groups associated with the service are returned.
|
|
3837
|
+
* @param serviceId - ID of the service to retrieve add-on groups for.
|
|
3832
3838
|
* @public
|
|
3833
3839
|
* @documentationMaturity preview
|
|
3834
3840
|
* @requiredField serviceId
|
|
@@ -3839,16 +3845,26 @@ interface UpdateAddOnGroupOptions {
|
|
|
3839
3845
|
declare function listAddOnGroupsByServiceId(serviceId: string, options?: ListAddOnGroupsByServiceIdOptions): Promise<NonNullablePaths<ListAddOnGroupsByServiceIdResponse, `addOnGroupsDetails`, 2>>;
|
|
3840
3846
|
interface ListAddOnGroupsByServiceIdOptions {
|
|
3841
3847
|
/**
|
|
3842
|
-
* List of group
|
|
3848
|
+
* List of group IDs to return. By default, all groups are returned.
|
|
3843
3849
|
* @format GUID
|
|
3844
3850
|
* @maxSize 3
|
|
3845
3851
|
*/
|
|
3846
3852
|
groupIds?: string[] | null;
|
|
3847
3853
|
}
|
|
3848
3854
|
/**
|
|
3849
|
-
* Sets the
|
|
3850
|
-
*
|
|
3851
|
-
*
|
|
3855
|
+
* Sets the add-ons for a specific group, replacing any existing add-ons in the group.
|
|
3856
|
+
*
|
|
3857
|
+
*
|
|
3858
|
+
* Call this method when you want to:
|
|
3859
|
+
* - Add new add-ons to a group.
|
|
3860
|
+
* - Remove add-ons from a group.
|
|
3861
|
+
* - Reorder existing add-ons for optimal customer presentation.
|
|
3862
|
+
*
|
|
3863
|
+
* The order of add-ons in the request determines their display sequence to customers.
|
|
3864
|
+
* All specified add-ons must already exist before adding them to a group.
|
|
3865
|
+
*
|
|
3866
|
+
* For updating other add-on group properties, for example `name`, `prompt`, or `constraints`, call [Update Add-On Group](https://dev.wix.com/docs/rest/business-solutions/bookings/services/add-on-services-v2/update-add-on-group) instead.
|
|
3867
|
+
* @param serviceId - Service ID containing the group.
|
|
3852
3868
|
* @public
|
|
3853
3869
|
* @documentationMaturity preview
|
|
3854
3870
|
* @requiredField options
|
|
@@ -3864,12 +3880,12 @@ declare function setAddOnsForGroup(serviceId: string, options: NonNullablePaths<
|
|
|
3864
3880
|
}>;
|
|
3865
3881
|
interface SetAddOnsForGroupOptions {
|
|
3866
3882
|
/**
|
|
3867
|
-
*
|
|
3883
|
+
* Group ID to set add-ons for.
|
|
3868
3884
|
* @format GUID
|
|
3869
3885
|
*/
|
|
3870
3886
|
groupId: string | null;
|
|
3871
3887
|
/**
|
|
3872
|
-
*
|
|
3888
|
+
* IDs of add-ons to set for the group in display order.
|
|
3873
3889
|
* @format GUID
|
|
3874
3890
|
* @minSize 1
|
|
3875
3891
|
* @maxSize 7
|
|
@@ -3979,9 +3995,15 @@ declare function getService(serviceId: string): Promise<NonNullablePaths<Service
|
|
|
3979
3995
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/create-service#session-durations) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/create-service#session-durations))
|
|
3980
3996
|
* for more details.
|
|
3981
3997
|
*
|
|
3982
|
-
*
|
|
3998
|
+
* ### Service locations
|
|
3999
|
+
*
|
|
4000
|
+
* Don't use Update Service to modify service locations. Instead, use Set Service Locations ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/set-service-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/set-service-locations)), which provides options for handling existing sessions when locations are changed.
|
|
4001
|
+
*
|
|
4002
|
+
* ### Add-on groups
|
|
3983
4003
|
*
|
|
3984
|
-
* Don't
|
|
4004
|
+
* Don't use Update Service to modify service add-on groups. Use these dedicated methods instead:
|
|
4005
|
+
* - **Update add-on group properties**: Call Update Add On Group ([SDK](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/update-add-on-group?apiView=SDK) | [REST](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/update-add-on-group)).
|
|
4006
|
+
* - **Update add-on display order**: Call Set Add Ons For Group ([SDK](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/set-add-ons-for-group?apiView=SDK) | [REST](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/set-add-ons-for-group)).
|
|
3985
4007
|
* @param _id - Service ID.
|
|
3986
4008
|
* @public
|
|
3987
4009
|
* @requiredField _id
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { A as AddOnGroup, C as CreateAddOnGroupOptions, a as CreateAddOnGroupResponse, D as DeleteAddOnGroupOptions, b as DeleteAddOnGroupApplicationErrors, U as UpdateAddOnGroupOptions, c as UpdateAddOnGroupResponse, d as UpdateAddOnGroupApplicationErrors, L as ListAddOnGroupsByServiceIdOptions, e as ListAddOnGroupsByServiceIdResponse, S as SetAddOnsForGroupOptions, f as SetAddOnsForGroupResponse, g as SetAddOnsForGroupApplicationErrors, h as Service, i as CreateServiceValidationErrors, B as BulkCreateServicesOptions, j as BulkCreateServicesResponse, k as UpdateService, l as UpdateServiceValidationErrors, m as BulkUpdateServicesOptions, n as BulkUpdateServicesResponse, o as BulkUpdateServicesByFilterOptions, p as BulkUpdateServicesByFilterResponse, q as DeleteServiceOptions, r as BulkDeleteServicesOptions, s as BulkDeleteServicesResponse, t as BulkDeleteServicesByFilterOptions, u as BulkDeleteServicesByFilterResponse, v as ServicesQueryBuilder, w as ServiceSearch, x as SearchServicesResponse, y as CursorQuery, Q as QueryPoliciesResponse, z as QueryBookingFormsOptions, E as QueryBookingFormsResponse, F as QueryBookingFormsApplicationErrors, G as CountServicesOptions, H as CountServicesResponse, I as QueryLocationsOptions, J as QueryLocationsResponse, K as QueryCategoriesOptions, M as QueryCategoriesResponse, N as Location, O as SetServiceLocationsOptions, P as SetServiceLocationsResponse, R as EnablePricingPlansForServiceResponse, T as EnablePricingPlansForServiceApplicationErrors, V as DisablePricingPlansForServiceOptions, W as DisablePricingPlansForServiceResponse, X as DisablePricingPlansForServiceApplicationErrors, Y as SetCustomSlugOptions, Z as SetCustomSlugResponse, _ as SetCustomSlugApplicationErrors, $ as SetCustomSlugValidationErrors, a0 as ValidateSlugOptions, a1 as ValidateSlugResponse, a2 as CloneServiceResponse, a3 as ServiceCreatedEnvelope, a4 as ServiceDeletedEnvelope, a5 as ServiceUpdatedEnvelope } from './bookings-services-v2-service-services.universal-
|
|
3
|
-
export { ap as Action, bL as ActionEvent, er as ActionWithLiterals, bU as AddOn, bV as AddOnAddOnInfoOneOf, bw as AddOnDetails, bW as AddOnGroupDetail, a8 as AddOnPaymentOptions, ea as AddOnPaymentOptionsWithLiterals, dR as Address, dS as AddressHint, aT as AddressLocation, cy as Aggregation, cO as AggregationData, cz as AggregationKindOneOf, d5 as AggregationResults, d6 as AggregationResultsResultOneOf, cV as AggregationResultsScalarResult, am as AggregationType, eo as AggregationTypeWithLiterals, c4 as ApplicationError, be as AvailabilityConstraints, e4 as BaseEventMetadata, dH as Behavior, dI as BehaviorBehaviorOneOf, dD as Benefit, dC as BenefitNotification, au as BenefitType, ew as BenefitTypeWithLiterals, a_ as BookAfterStartPolicy, db as BookingForm, aW as BookingPolicy, d9 as BookingPolicyWithServices, c5 as BulkActionMetadata, c1 as BulkCreateServicesRequest, cl as BulkDeleteServicesByFilterRequest, ck as BulkDeleteServicesRequest, c2 as BulkServiceResult, cg as BulkUpdateServicesByFilterRequest, ce as BulkUpdateServicesRequest, aU as BusinessLocationOptions, dh as BusinessLocations, dU as BusinessSchedule, b4 as CancellationFeePolicy, a$ as CancellationPolicy, b5 as CancellationWindow, b6 as CancellationWindowFeeOneOf, dP as Categories, dA as Category, dz as CategoryNotification, at as CategoryNotificationEvent, ev as CategoryNotificationEventWithLiterals, d$ as ChangeContext, e0 as ChangeContextPayloadOneOf, ar as CloneErrors, et as CloneErrorsWithLiterals, dy as CloneServiceRequest, aQ as CommonAddress, aR as CommonAddressStreetOneOf, eC as CommonSearchWithEntityContext, aO as Conferencing, dd as ConnectedService, dZ as ConsentPolicy, de as CountServicesRequest, bP as CreateAddOnGroupRequest, bY as CreateServiceRequest, bZ as CreateServiceResponse, aw as CrudType, ey as CrudTypeWithLiterals, cr as CursorPaging, cN as CursorPagingMetadata, d8 as CursorQueryPagingMethodOneOf, cw as CursorSearch, cx as CursorSearchPagingMethodOneOf, cu as Cursors, aV as CustomLocationOptions, di as CustomLocations, bb as CustomOptions, aK as CustomPayment, dj as CustomerLocations, cG as DateHistogramAggregation, d1 as DateHistogramResult, d3 as DateHistogramResults, ay as DayOfWeek, eA as DayOfWeekWithLiterals, bB as Delete, bQ as DeleteAddOnGroupRequest, bR as DeleteAddOnGroupResponse, ch as DeleteServiceRequest, cj as DeleteServiceResponse, dv as DisablePricingPlansForServiceRequest, dF as Discount, dG as DiscountDiscountOneOf, bF as DomainEvent, bG as DomainEventBodyOneOf, bf as Duration, dB as Empty, dt as EnablePricingPlansForServiceRequest, bH as EntityCreatedEvent, bK as EntityDeletedEvent, bJ as EntityUpdatedEvent, dE as EntryPass, av as Event, e5 as EventMetadata, ex as EventWithLiterals, br as ExtendedFields, c0 as FieldViolation, aI as FixedPayment, aE as Form, dc as FormDetails, aF as FormSettings, dT as GeoCoordinates, c8 as GetServiceAvailabilityConstraintsRequest, c9 as GetServiceAvailabilityConstraintsResponse, c6 as GetServiceRequest, c7 as GetServiceResponse, cK as GroupByAggregation, cL as GroupByAggregationKindOneOf, d2 as GroupByValueResults, dK as HtmlSitePublished, bN as IdentificationData, bO as IdentificationDataIdOneOf, cB as IncludeMissingValuesOptions, bc as IntakeFormPolicy, al as Interval, en as IntervalWithLiterals, du as InvalidPricingPlan, aq as InvalidSlugError, es as InvalidSlugErrorWithLiterals, c3 as ItemMetadata, bt as Keyword, aY as LimitEarlyBookingPolicy, aZ as LimitLateBookingPolicy, bT as ListAddOnGroupsByServiceIdRequest, dQ as Locale, aP as LocationOptionsOneOf, a9 as LocationType, eb as LocationTypeWithLiterals, cf as MaskedService, aA as Media, aB as MediaItem, aC as MediaItemItemOneOf, bM as MessageEnvelope, ai as MissingValues, ek as MissingValuesWithLiterals, an as Mode, ep as ModeWithLiterals, aJ as Money, ds as MoveToNewLocationsOptions, dX as Multilingual, cJ as NestedAggregation, cH as NestedAggregationItem, cI as NestedAggregationItemKindOneOf, cR as NestedAggregationResults, cS as NestedAggregationResultsResultOneOf, ak as NestedAggregationType, em as NestedAggregationTypeWithLiterals, c_ as NestedResultValue, c$ as NestedResultValueResultOneOf, d4 as NestedResults, cW as NestedValueAggregationResult, aN as OnlineBooking, dL as Page, cq as Paging, ct as PagingMetadataV2, ci as ParticipantNotification, b2 as ParticipantsPolicy, aG as Payment, aM as PaymentOptions, aH as PaymentRateOneOf, ax as PlacementType, ez as PlacementTypeWithLiterals, aX as PolicyDescription, dO as Properties, e1 as PropertiesChange, da as QueryBookingFormsRequest, dl as QueryCategoriesFilter, dk as QueryCategoriesRequest, dg as QueryLocationsFilter, df as QueryLocationsRequest, d7 as QueryPoliciesRequest, dm as QueryServicesMultiLanguageRequest, dn as QueryServicesMultiLanguageResponse, cm as QueryServicesRequest, cs as QueryServicesResponse, cn as QueryV2, co as QueryV2PagingMethodOneOf, cE as RangeAggregation, cQ as RangeAggregationResult, cA as RangeBucket, cY as RangeResult, cU as RangeResults, ba as RankingOptions, aa as RankingOrder, ec as RankingOrderWithLiterals, a7 as RateType, e9 as RateTypeWithLiterals, by as ReindexMessage, bz as ReindexMessageActionOneOf, dq as RemovedLocationSessionsAction, dr as RemovedLocationSessionsActionActionOptionsOneOf, ao as RequestedFields, eq as RequestedFieldsWithLiterals, b0 as ReschedulePolicy, az as ResolutionMethod, eB as ResolutionMethodWithLiterals, bk as ResourceGroup, bl as ResourceIds, bo as ResourceType, b3 as ResourcesPolicy, bI as RestoreInfo, d0 as Results, b7 as SaveCreditCardPolicy, cF as ScalarAggregation, cZ as ScalarResult, aj as ScalarType, el as ScalarTypeWithLiterals, bd as Schedule, bC as Schema, cM as SearchDetails, cv as SearchServicesRequest, bs as SeoSchema, ca as ServiceAvailabilityConstraints, bm as ServiceResource, bn as ServiceResourceSelectionOneOf, e7 as ServiceSearchSpec, a6 as ServiceType, e8 as ServiceTypeWithLiterals, e6 as ServicesQueryResult, bE as ServicesUrlsChanged, bX as SetAddOnsForGroupRequest, bD as SetCustomSlugEvent, dw as SetCustomSlugRequest, dp as SetServiceLocationsRequest, bv as Settings, e3 as SiteCloned, e2 as SiteCreated, dN as SitePropertiesEvent, dM as SitePropertiesNotification, bp as Slug, ah as SortDirection, ej as SortDirectionWithLiterals, af as SortOrder, eh as SortOrderWithLiterals, ag as SortType, ei as SortTypeWithLiterals, cp as Sorting, ab as SortingMethodType, ed as SortingMethodTypeWithLiterals, dW as SpecialHourPeriod, cb as SplitInterval, bh as StaffMediaItem, bi as StaffMediaItemItemOneOf, bg as StaffMember, bj as StaffMemberDetails, b8 as StaffSortingPolicy, b9 as StaffSortingPolicyOptionsOneOf, as as Status, eu as StatusWithLiterals, aS as StreetAddress, dY as SupportedLanguage, bu as Tag, bx as TaxableAddress, ac as TaxableAddressType, ee as TaxableAddressTypeWithLiterals, dV as TimePeriod, d_ as Translation, bq as URLs, bS as UpdateAddOnGroupRequest, cc as UpdateServiceRequest, cd as UpdateServiceResponse, bA as Upsert, dJ as UserDomainInfoChangedEvent, aD as V2Category, ae as V2RequestedFields, eg as V2RequestedFieldsWithLiterals, b_ as ValidateServiceRequest, b$ as ValidateServiceResponse, dx as ValidateSlugRequest, cC as ValueAggregation, cD as ValueAggregationOptionsOneOf, cP as ValueAggregationResult, cX as ValueResult, cT as ValueResults, aL as VariedPayment, b1 as WaitlistPolicy, ad as WebhookIdentityType, ef as WebhookIdentityTypeWithLiterals } from './bookings-services-v2-service-services.universal-
|
|
2
|
+
import { A as AddOnGroup, C as CreateAddOnGroupOptions, a as CreateAddOnGroupResponse, D as DeleteAddOnGroupOptions, b as DeleteAddOnGroupApplicationErrors, U as UpdateAddOnGroupOptions, c as UpdateAddOnGroupResponse, d as UpdateAddOnGroupApplicationErrors, L as ListAddOnGroupsByServiceIdOptions, e as ListAddOnGroupsByServiceIdResponse, S as SetAddOnsForGroupOptions, f as SetAddOnsForGroupResponse, g as SetAddOnsForGroupApplicationErrors, h as Service, i as CreateServiceValidationErrors, B as BulkCreateServicesOptions, j as BulkCreateServicesResponse, k as UpdateService, l as UpdateServiceValidationErrors, m as BulkUpdateServicesOptions, n as BulkUpdateServicesResponse, o as BulkUpdateServicesByFilterOptions, p as BulkUpdateServicesByFilterResponse, q as DeleteServiceOptions, r as BulkDeleteServicesOptions, s as BulkDeleteServicesResponse, t as BulkDeleteServicesByFilterOptions, u as BulkDeleteServicesByFilterResponse, v as ServicesQueryBuilder, w as ServiceSearch, x as SearchServicesResponse, y as CursorQuery, Q as QueryPoliciesResponse, z as QueryBookingFormsOptions, E as QueryBookingFormsResponse, F as QueryBookingFormsApplicationErrors, G as CountServicesOptions, H as CountServicesResponse, I as QueryLocationsOptions, J as QueryLocationsResponse, K as QueryCategoriesOptions, M as QueryCategoriesResponse, N as Location, O as SetServiceLocationsOptions, P as SetServiceLocationsResponse, R as EnablePricingPlansForServiceResponse, T as EnablePricingPlansForServiceApplicationErrors, V as DisablePricingPlansForServiceOptions, W as DisablePricingPlansForServiceResponse, X as DisablePricingPlansForServiceApplicationErrors, Y as SetCustomSlugOptions, Z as SetCustomSlugResponse, _ as SetCustomSlugApplicationErrors, $ as SetCustomSlugValidationErrors, a0 as ValidateSlugOptions, a1 as ValidateSlugResponse, a2 as CloneServiceResponse, a3 as ServiceCreatedEnvelope, a4 as ServiceDeletedEnvelope, a5 as ServiceUpdatedEnvelope } from './bookings-services-v2-service-services.universal-CUaT-E45.mjs';
|
|
3
|
+
export { ap as Action, bL as ActionEvent, er as ActionWithLiterals, bU as AddOn, bV as AddOnAddOnInfoOneOf, bw as AddOnDetails, bW as AddOnGroupDetail, a8 as AddOnPaymentOptions, ea as AddOnPaymentOptionsWithLiterals, dR as Address, dS as AddressHint, aT as AddressLocation, cy as Aggregation, cO as AggregationData, cz as AggregationKindOneOf, d5 as AggregationResults, d6 as AggregationResultsResultOneOf, cV as AggregationResultsScalarResult, am as AggregationType, eo as AggregationTypeWithLiterals, c4 as ApplicationError, be as AvailabilityConstraints, e4 as BaseEventMetadata, dH as Behavior, dI as BehaviorBehaviorOneOf, dD as Benefit, dC as BenefitNotification, au as BenefitType, ew as BenefitTypeWithLiterals, a_ as BookAfterStartPolicy, db as BookingForm, aW as BookingPolicy, d9 as BookingPolicyWithServices, c5 as BulkActionMetadata, c1 as BulkCreateServicesRequest, cl as BulkDeleteServicesByFilterRequest, ck as BulkDeleteServicesRequest, c2 as BulkServiceResult, cg as BulkUpdateServicesByFilterRequest, ce as BulkUpdateServicesRequest, aU as BusinessLocationOptions, dh as BusinessLocations, dU as BusinessSchedule, b4 as CancellationFeePolicy, a$ as CancellationPolicy, b5 as CancellationWindow, b6 as CancellationWindowFeeOneOf, dP as Categories, dA as Category, dz as CategoryNotification, at as CategoryNotificationEvent, ev as CategoryNotificationEventWithLiterals, d$ as ChangeContext, e0 as ChangeContextPayloadOneOf, ar as CloneErrors, et as CloneErrorsWithLiterals, dy as CloneServiceRequest, aQ as CommonAddress, aR as CommonAddressStreetOneOf, eC as CommonSearchWithEntityContext, aO as Conferencing, dd as ConnectedService, dZ as ConsentPolicy, de as CountServicesRequest, bP as CreateAddOnGroupRequest, bY as CreateServiceRequest, bZ as CreateServiceResponse, aw as CrudType, ey as CrudTypeWithLiterals, cr as CursorPaging, cN as CursorPagingMetadata, d8 as CursorQueryPagingMethodOneOf, cw as CursorSearch, cx as CursorSearchPagingMethodOneOf, cu as Cursors, aV as CustomLocationOptions, di as CustomLocations, bb as CustomOptions, aK as CustomPayment, dj as CustomerLocations, cG as DateHistogramAggregation, d1 as DateHistogramResult, d3 as DateHistogramResults, ay as DayOfWeek, eA as DayOfWeekWithLiterals, bB as Delete, bQ as DeleteAddOnGroupRequest, bR as DeleteAddOnGroupResponse, ch as DeleteServiceRequest, cj as DeleteServiceResponse, dv as DisablePricingPlansForServiceRequest, dF as Discount, dG as DiscountDiscountOneOf, bF as DomainEvent, bG as DomainEventBodyOneOf, bf as Duration, dB as Empty, dt as EnablePricingPlansForServiceRequest, bH as EntityCreatedEvent, bK as EntityDeletedEvent, bJ as EntityUpdatedEvent, dE as EntryPass, av as Event, e5 as EventMetadata, ex as EventWithLiterals, br as ExtendedFields, c0 as FieldViolation, aI as FixedPayment, aE as Form, dc as FormDetails, aF as FormSettings, dT as GeoCoordinates, c8 as GetServiceAvailabilityConstraintsRequest, c9 as GetServiceAvailabilityConstraintsResponse, c6 as GetServiceRequest, c7 as GetServiceResponse, cK as GroupByAggregation, cL as GroupByAggregationKindOneOf, d2 as GroupByValueResults, dK as HtmlSitePublished, bN as IdentificationData, bO as IdentificationDataIdOneOf, cB as IncludeMissingValuesOptions, bc as IntakeFormPolicy, al as Interval, en as IntervalWithLiterals, du as InvalidPricingPlan, aq as InvalidSlugError, es as InvalidSlugErrorWithLiterals, c3 as ItemMetadata, bt as Keyword, aY as LimitEarlyBookingPolicy, aZ as LimitLateBookingPolicy, bT as ListAddOnGroupsByServiceIdRequest, dQ as Locale, aP as LocationOptionsOneOf, a9 as LocationType, eb as LocationTypeWithLiterals, cf as MaskedService, aA as Media, aB as MediaItem, aC as MediaItemItemOneOf, bM as MessageEnvelope, ai as MissingValues, ek as MissingValuesWithLiterals, an as Mode, ep as ModeWithLiterals, aJ as Money, ds as MoveToNewLocationsOptions, dX as Multilingual, cJ as NestedAggregation, cH as NestedAggregationItem, cI as NestedAggregationItemKindOneOf, cR as NestedAggregationResults, cS as NestedAggregationResultsResultOneOf, ak as NestedAggregationType, em as NestedAggregationTypeWithLiterals, c_ as NestedResultValue, c$ as NestedResultValueResultOneOf, d4 as NestedResults, cW as NestedValueAggregationResult, aN as OnlineBooking, dL as Page, cq as Paging, ct as PagingMetadataV2, ci as ParticipantNotification, b2 as ParticipantsPolicy, aG as Payment, aM as PaymentOptions, aH as PaymentRateOneOf, ax as PlacementType, ez as PlacementTypeWithLiterals, aX as PolicyDescription, dO as Properties, e1 as PropertiesChange, da as QueryBookingFormsRequest, dl as QueryCategoriesFilter, dk as QueryCategoriesRequest, dg as QueryLocationsFilter, df as QueryLocationsRequest, d7 as QueryPoliciesRequest, dm as QueryServicesMultiLanguageRequest, dn as QueryServicesMultiLanguageResponse, cm as QueryServicesRequest, cs as QueryServicesResponse, cn as QueryV2, co as QueryV2PagingMethodOneOf, cE as RangeAggregation, cQ as RangeAggregationResult, cA as RangeBucket, cY as RangeResult, cU as RangeResults, ba as RankingOptions, aa as RankingOrder, ec as RankingOrderWithLiterals, a7 as RateType, e9 as RateTypeWithLiterals, by as ReindexMessage, bz as ReindexMessageActionOneOf, dq as RemovedLocationSessionsAction, dr as RemovedLocationSessionsActionActionOptionsOneOf, ao as RequestedFields, eq as RequestedFieldsWithLiterals, b0 as ReschedulePolicy, az as ResolutionMethod, eB as ResolutionMethodWithLiterals, bk as ResourceGroup, bl as ResourceIds, bo as ResourceType, b3 as ResourcesPolicy, bI as RestoreInfo, d0 as Results, b7 as SaveCreditCardPolicy, cF as ScalarAggregation, cZ as ScalarResult, aj as ScalarType, el as ScalarTypeWithLiterals, bd as Schedule, bC as Schema, cM as SearchDetails, cv as SearchServicesRequest, bs as SeoSchema, ca as ServiceAvailabilityConstraints, bm as ServiceResource, bn as ServiceResourceSelectionOneOf, e7 as ServiceSearchSpec, a6 as ServiceType, e8 as ServiceTypeWithLiterals, e6 as ServicesQueryResult, bE as ServicesUrlsChanged, bX as SetAddOnsForGroupRequest, bD as SetCustomSlugEvent, dw as SetCustomSlugRequest, dp as SetServiceLocationsRequest, bv as Settings, e3 as SiteCloned, e2 as SiteCreated, dN as SitePropertiesEvent, dM as SitePropertiesNotification, bp as Slug, ah as SortDirection, ej as SortDirectionWithLiterals, af as SortOrder, eh as SortOrderWithLiterals, ag as SortType, ei as SortTypeWithLiterals, cp as Sorting, ab as SortingMethodType, ed as SortingMethodTypeWithLiterals, dW as SpecialHourPeriod, cb as SplitInterval, bh as StaffMediaItem, bi as StaffMediaItemItemOneOf, bg as StaffMember, bj as StaffMemberDetails, b8 as StaffSortingPolicy, b9 as StaffSortingPolicyOptionsOneOf, as as Status, eu as StatusWithLiterals, aS as StreetAddress, dY as SupportedLanguage, bu as Tag, bx as TaxableAddress, ac as TaxableAddressType, ee as TaxableAddressTypeWithLiterals, dV as TimePeriod, d_ as Translation, bq as URLs, bS as UpdateAddOnGroupRequest, cc as UpdateServiceRequest, cd as UpdateServiceResponse, bA as Upsert, dJ as UserDomainInfoChangedEvent, aD as V2Category, ae as V2RequestedFields, eg as V2RequestedFieldsWithLiterals, b_ as ValidateServiceRequest, b$ as ValidateServiceResponse, dx as ValidateSlugRequest, cC as ValueAggregation, cD as ValueAggregationOptionsOneOf, cP as ValueAggregationResult, cX as ValueResult, cT as ValueResults, aL as VariedPayment, b1 as WaitlistPolicy, ad as WebhookIdentityType, ef as WebhookIdentityTypeWithLiterals } from './bookings-services-v2-service-services.universal-CUaT-E45.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createAddOnGroup$1(httpClient: HttpClient): CreateAddOnGroupSignature;
|
|
6
6
|
interface CreateAddOnGroupSignature {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* with constraints such as minimum and maximum selections.
|
|
11
|
-
* @param - AddOnGroup to create.
|
|
8
|
+
* Creates a new add-on group for a service and updates the service's `addOnGroups` array.
|
|
9
|
+
* @param - Add-on group to create.
|
|
12
10
|
*/
|
|
13
11
|
(addOnGroup: NonNullablePaths<AddOnGroup, `name`, 2>, options?: CreateAddOnGroupOptions): Promise<NonNullablePaths<CreateAddOnGroupResponse, `addOnGroup.addOnIds`, 3>>;
|
|
14
12
|
}
|
|
15
13
|
declare function deleteAddOnGroup$1(httpClient: HttpClient): DeleteAddOnGroupSignature;
|
|
16
14
|
interface DeleteAddOnGroupSignature {
|
|
17
15
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
16
|
+
* Deletes an add-on group.
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* Deleting the group unlinks all associated add-ons but doesn't delete the individual add-ons.
|
|
20
|
+
* @param - ID of the add-on group to delete.
|
|
21
21
|
*/
|
|
22
22
|
(addOnGroupId: string, options: NonNullablePaths<DeleteAddOnGroupOptions, `serviceId`, 2>): Promise<void & {
|
|
23
23
|
__applicationErrorsType?: DeleteAddOnGroupApplicationErrors;
|
|
@@ -26,9 +26,11 @@ interface DeleteAddOnGroupSignature {
|
|
|
26
26
|
declare function updateAddOnGroup$1(httpClient: HttpClient): UpdateAddOnGroupSignature;
|
|
27
27
|
interface UpdateAddOnGroupSignature {
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
29
|
+
* Updates an add-on group.
|
|
30
|
+
*
|
|
31
|
+
*
|
|
32
|
+
* To update only the display order, consider calling [Set Add-Ons For Group](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/set-add-ons-for-group) instead.
|
|
33
|
+
* @param - Add-on group to update.
|
|
32
34
|
*/
|
|
33
35
|
(addOnGroup: NonNullablePaths<AddOnGroup, `_id`, 2>, options: NonNullablePaths<UpdateAddOnGroupOptions, `serviceId`, 2>): Promise<NonNullablePaths<UpdateAddOnGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
34
36
|
__applicationErrorsType?: UpdateAddOnGroupApplicationErrors;
|
|
@@ -37,19 +39,33 @@ interface UpdateAddOnGroupSignature {
|
|
|
37
39
|
declare function listAddOnGroupsByServiceId$1(httpClient: HttpClient): ListAddOnGroupsByServiceIdSignature;
|
|
38
40
|
interface ListAddOnGroupsByServiceIdSignature {
|
|
39
41
|
/**
|
|
40
|
-
* Retrieves
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
42
|
+
* Retrieves add-on groups for a service with enriched add-on details.
|
|
43
|
+
*
|
|
44
|
+
*
|
|
45
|
+
* Add-on details are returned based on their display order.
|
|
46
|
+
*
|
|
47
|
+
* If you specify `groupIds`, only those groups are returned.
|
|
48
|
+
* By default, all groups associated with the service are returned.
|
|
49
|
+
* @param - ID of the service to retrieve add-on groups for.
|
|
44
50
|
*/
|
|
45
51
|
(serviceId: string, options?: ListAddOnGroupsByServiceIdOptions): Promise<NonNullablePaths<ListAddOnGroupsByServiceIdResponse, `addOnGroupsDetails`, 2>>;
|
|
46
52
|
}
|
|
47
53
|
declare function setAddOnsForGroup$1(httpClient: HttpClient): SetAddOnsForGroupSignature;
|
|
48
54
|
interface SetAddOnsForGroupSignature {
|
|
49
55
|
/**
|
|
50
|
-
* Sets the
|
|
51
|
-
*
|
|
52
|
-
*
|
|
56
|
+
* Sets the add-ons for a specific group, replacing any existing add-ons in the group.
|
|
57
|
+
*
|
|
58
|
+
*
|
|
59
|
+
* Call this method when you want to:
|
|
60
|
+
* - Add new add-ons to a group.
|
|
61
|
+
* - Remove add-ons from a group.
|
|
62
|
+
* - Reorder existing add-ons for optimal customer presentation.
|
|
63
|
+
*
|
|
64
|
+
* The order of add-ons in the request determines their display sequence to customers.
|
|
65
|
+
* All specified add-ons must already exist before adding them to a group.
|
|
66
|
+
*
|
|
67
|
+
* For updating other add-on group properties, for example `name`, `prompt`, or `constraints`, call [Update Add-On Group](https://dev.wix.com/docs/rest/business-solutions/bookings/services/add-on-services-v2/update-add-on-group) instead.
|
|
68
|
+
* @param - Service ID containing the group.
|
|
53
69
|
*/
|
|
54
70
|
(serviceId: string, options: NonNullablePaths<SetAddOnsForGroupOptions, `addOnIds` | `groupId`, 2>): Promise<NonNullablePaths<SetAddOnsForGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
55
71
|
__applicationErrorsType?: SetAddOnsForGroupApplicationErrors;
|
|
@@ -150,9 +166,15 @@ interface UpdateServiceSignature {
|
|
|
150
166
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/create-service#session-durations) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/create-service#session-durations))
|
|
151
167
|
* for more details.
|
|
152
168
|
*
|
|
153
|
-
*
|
|
169
|
+
* ### Service locations
|
|
170
|
+
*
|
|
171
|
+
* Don't use Update Service to modify service locations. Instead, use Set Service Locations ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/set-service-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/set-service-locations)), which provides options for handling existing sessions when locations are changed.
|
|
172
|
+
*
|
|
173
|
+
* ### Add-on groups
|
|
154
174
|
*
|
|
155
|
-
* Don't
|
|
175
|
+
* Don't use Update Service to modify service add-on groups. Use these dedicated methods instead:
|
|
176
|
+
* - **Update add-on group properties**: Call Update Add On Group ([SDK](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/update-add-on-group?apiView=SDK) | [REST](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/update-add-on-group)).
|
|
177
|
+
* - **Update add-on display order**: Call Set Add Ons For Group ([SDK](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/set-add-ons-for-group?apiView=SDK) | [REST](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/set-add-ons-for-group)).
|
|
156
178
|
* @param - Service ID.
|
|
157
179
|
* @returns Updated service.
|
|
158
180
|
*/
|