@wix/auto_sdk_bookings_services 1.0.120 → 1.0.121
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-DKi7EvxV.d.ts → bookings-services-v2-service-services.universal-eHS1PlTD.d.ts} +344 -271
- package/build/cjs/index.d.ts +60 -60
- package/build/cjs/index.js +352 -335
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +262 -245
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +138 -138
- package/build/cjs/meta.js +185 -185
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-DKi7EvxV.d.mts → bookings-services-v2-service-services.universal-eHS1PlTD.d.mts} +344 -271
- package/build/es/index.d.mts +60 -60
- package/build/es/index.mjs +350 -335
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +260 -245
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +138 -138
- package/build/es/meta.mjs +185 -185
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-DKi7EvxV.d.ts → bookings-services-v2-service-services.universal-eHS1PlTD.d.ts} +344 -271
- package/build/internal/cjs/index.d.ts +60 -60
- package/build/internal/cjs/index.js +352 -335
- 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 +262 -245
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +138 -138
- package/build/internal/cjs/meta.js +185 -185
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-DKi7EvxV.d.mts → bookings-services-v2-service-services.universal-eHS1PlTD.d.mts} +344 -271
- package/build/internal/es/index.d.mts +60 -60
- package/build/internal/es/index.mjs +350 -335
- 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 +260 -245
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +138 -138
- package/build/internal/es/meta.mjs +185 -185
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
7
7
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
8
8
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
9
9
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
10
|
-
function
|
|
10
|
+
function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
11
11
|
const domainToMappings = {
|
|
12
12
|
"*.dev.wix-code.com": [
|
|
13
13
|
{
|
|
@@ -122,7 +122,7 @@ function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
|
122
122
|
};
|
|
123
123
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
126
126
|
const domainToMappings = {
|
|
127
127
|
"*.dev.wix-code.com": [
|
|
128
128
|
{
|
|
@@ -238,6 +238,102 @@ function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
|
238
238
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
239
239
|
}
|
|
240
240
|
var PACKAGE_NAME = "@wix/auto_sdk_bookings_services";
|
|
241
|
+
function createAddOnGroup(payload) {
|
|
242
|
+
function __createAddOnGroup({ host }) {
|
|
243
|
+
const metadata = {
|
|
244
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
245
|
+
method: "POST",
|
|
246
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
|
|
247
|
+
packageName: PACKAGE_NAME,
|
|
248
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
249
|
+
protoPath: "/v2/services/add-on-groups/create",
|
|
250
|
+
data: payload,
|
|
251
|
+
host
|
|
252
|
+
}),
|
|
253
|
+
data: payload
|
|
254
|
+
};
|
|
255
|
+
return metadata;
|
|
256
|
+
}
|
|
257
|
+
return __createAddOnGroup;
|
|
258
|
+
}
|
|
259
|
+
function deleteAddOnGroup(payload) {
|
|
260
|
+
function __deleteAddOnGroup({ host }) {
|
|
261
|
+
const metadata = {
|
|
262
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
263
|
+
method: "POST",
|
|
264
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
|
|
265
|
+
packageName: PACKAGE_NAME,
|
|
266
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
267
|
+
protoPath: "/v2/services/add-on-groups/delete",
|
|
268
|
+
data: payload,
|
|
269
|
+
host
|
|
270
|
+
}),
|
|
271
|
+
data: payload
|
|
272
|
+
};
|
|
273
|
+
return metadata;
|
|
274
|
+
}
|
|
275
|
+
return __deleteAddOnGroup;
|
|
276
|
+
}
|
|
277
|
+
function updateAddOnGroup(payload) {
|
|
278
|
+
function __updateAddOnGroup({ host }) {
|
|
279
|
+
const serializedData = transformPaths(payload, [
|
|
280
|
+
{
|
|
281
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
282
|
+
paths: [{ path: "mask" }]
|
|
283
|
+
}
|
|
284
|
+
]);
|
|
285
|
+
const metadata = {
|
|
286
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
287
|
+
method: "POST",
|
|
288
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
|
|
289
|
+
packageName: PACKAGE_NAME,
|
|
290
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
291
|
+
protoPath: "/v2/services/add-on-groups/update",
|
|
292
|
+
data: serializedData,
|
|
293
|
+
host
|
|
294
|
+
}),
|
|
295
|
+
data: serializedData
|
|
296
|
+
};
|
|
297
|
+
return metadata;
|
|
298
|
+
}
|
|
299
|
+
return __updateAddOnGroup;
|
|
300
|
+
}
|
|
301
|
+
function listAddOnGroupsByServiceId(payload) {
|
|
302
|
+
function __listAddOnGroupsByServiceId({ host }) {
|
|
303
|
+
const metadata = {
|
|
304
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
305
|
+
method: "POST",
|
|
306
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
|
|
307
|
+
packageName: PACKAGE_NAME,
|
|
308
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
309
|
+
protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
|
|
310
|
+
data: payload,
|
|
311
|
+
host
|
|
312
|
+
}),
|
|
313
|
+
data: payload
|
|
314
|
+
};
|
|
315
|
+
return metadata;
|
|
316
|
+
}
|
|
317
|
+
return __listAddOnGroupsByServiceId;
|
|
318
|
+
}
|
|
319
|
+
function setAddOnsForGroup(payload) {
|
|
320
|
+
function __setAddOnsForGroup({ host }) {
|
|
321
|
+
const metadata = {
|
|
322
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
323
|
+
method: "POST",
|
|
324
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
|
|
325
|
+
packageName: PACKAGE_NAME,
|
|
326
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
327
|
+
protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
|
|
328
|
+
data: payload,
|
|
329
|
+
host
|
|
330
|
+
}),
|
|
331
|
+
data: payload
|
|
332
|
+
};
|
|
333
|
+
return metadata;
|
|
334
|
+
}
|
|
335
|
+
return __setAddOnsForGroup;
|
|
336
|
+
}
|
|
241
337
|
function createService(payload) {
|
|
242
338
|
function __createService({ host }) {
|
|
243
339
|
const serializedData = transformPaths(payload, [
|
|
@@ -1521,104 +1617,98 @@ function cloneService(payload) {
|
|
|
1521
1617
|
}
|
|
1522
1618
|
return __cloneService;
|
|
1523
1619
|
}
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1620
|
+
|
|
1621
|
+
// src/bookings-services-v2-service-services.meta.ts
|
|
1622
|
+
function createAddOnGroup2() {
|
|
1623
|
+
const payload = {};
|
|
1624
|
+
const getRequestOptions = createAddOnGroup(payload);
|
|
1625
|
+
const getUrl = (context) => {
|
|
1626
|
+
const { url } = getRequestOptions(context);
|
|
1627
|
+
return url;
|
|
1628
|
+
};
|
|
1629
|
+
return {
|
|
1630
|
+
getUrl,
|
|
1631
|
+
httpMethod: "POST",
|
|
1632
|
+
path: "/v2/services/add-on-groups/create",
|
|
1633
|
+
pathParams: {},
|
|
1634
|
+
__requestType: null,
|
|
1635
|
+
__originalRequestType: null,
|
|
1636
|
+
__responseType: null,
|
|
1637
|
+
__originalResponseType: null
|
|
1638
|
+
};
|
|
1541
1639
|
}
|
|
1542
|
-
function
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1640
|
+
function deleteAddOnGroup2() {
|
|
1641
|
+
const payload = {};
|
|
1642
|
+
const getRequestOptions = deleteAddOnGroup(payload);
|
|
1643
|
+
const getUrl = (context) => {
|
|
1644
|
+
const { url } = getRequestOptions(context);
|
|
1645
|
+
return url;
|
|
1646
|
+
};
|
|
1647
|
+
return {
|
|
1648
|
+
getUrl,
|
|
1649
|
+
httpMethod: "POST",
|
|
1650
|
+
path: "/v2/services/add-on-groups/delete",
|
|
1651
|
+
pathParams: {},
|
|
1652
|
+
__requestType: null,
|
|
1653
|
+
__originalRequestType: null,
|
|
1654
|
+
__responseType: null,
|
|
1655
|
+
__originalResponseType: null
|
|
1656
|
+
};
|
|
1559
1657
|
}
|
|
1560
|
-
function
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
}),
|
|
1578
|
-
data: serializedData
|
|
1579
|
-
};
|
|
1580
|
-
return metadata;
|
|
1581
|
-
}
|
|
1582
|
-
return __updateAddOnGroup;
|
|
1658
|
+
function updateAddOnGroup2() {
|
|
1659
|
+
const payload = {};
|
|
1660
|
+
const getRequestOptions = updateAddOnGroup(payload);
|
|
1661
|
+
const getUrl = (context) => {
|
|
1662
|
+
const { url } = getRequestOptions(context);
|
|
1663
|
+
return url;
|
|
1664
|
+
};
|
|
1665
|
+
return {
|
|
1666
|
+
getUrl,
|
|
1667
|
+
httpMethod: "POST",
|
|
1668
|
+
path: "/v2/services/add-on-groups/update",
|
|
1669
|
+
pathParams: {},
|
|
1670
|
+
__requestType: null,
|
|
1671
|
+
__originalRequestType: null,
|
|
1672
|
+
__responseType: null,
|
|
1673
|
+
__originalResponseType: null
|
|
1674
|
+
};
|
|
1583
1675
|
}
|
|
1584
|
-
function
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1676
|
+
function listAddOnGroupsByServiceId2() {
|
|
1677
|
+
const payload = {};
|
|
1678
|
+
const getRequestOptions = listAddOnGroupsByServiceId(payload);
|
|
1679
|
+
const getUrl = (context) => {
|
|
1680
|
+
const { url } = getRequestOptions(context);
|
|
1681
|
+
return url;
|
|
1682
|
+
};
|
|
1683
|
+
return {
|
|
1684
|
+
getUrl,
|
|
1685
|
+
httpMethod: "POST",
|
|
1686
|
+
path: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
|
|
1687
|
+
pathParams: {},
|
|
1688
|
+
__requestType: null,
|
|
1689
|
+
__originalRequestType: null,
|
|
1690
|
+
__responseType: null,
|
|
1691
|
+
__originalResponseType: null
|
|
1692
|
+
};
|
|
1601
1693
|
}
|
|
1602
|
-
function
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1694
|
+
function setAddOnsForGroup2() {
|
|
1695
|
+
const payload = {};
|
|
1696
|
+
const getRequestOptions = setAddOnsForGroup(payload);
|
|
1697
|
+
const getUrl = (context) => {
|
|
1698
|
+
const { url } = getRequestOptions(context);
|
|
1699
|
+
return url;
|
|
1700
|
+
};
|
|
1701
|
+
return {
|
|
1702
|
+
getUrl,
|
|
1703
|
+
httpMethod: "POST",
|
|
1704
|
+
path: "/v2/services/add-on-groups/set-add-ons-for-group",
|
|
1705
|
+
pathParams: {},
|
|
1706
|
+
__requestType: null,
|
|
1707
|
+
__originalRequestType: null,
|
|
1708
|
+
__responseType: null,
|
|
1709
|
+
__originalResponseType: null
|
|
1710
|
+
};
|
|
1619
1711
|
}
|
|
1620
|
-
|
|
1621
|
-
// src/bookings-services-v2-service-services.meta.ts
|
|
1622
1712
|
function createService2() {
|
|
1623
1713
|
const payload = {};
|
|
1624
1714
|
const getRequestOptions = createService(payload);
|
|
@@ -2019,96 +2109,6 @@ function cloneService2() {
|
|
|
2019
2109
|
__originalResponseType: null
|
|
2020
2110
|
};
|
|
2021
2111
|
}
|
|
2022
|
-
function createAddOnGroup2() {
|
|
2023
|
-
const payload = {};
|
|
2024
|
-
const getRequestOptions = createAddOnGroup(payload);
|
|
2025
|
-
const getUrl = (context) => {
|
|
2026
|
-
const { url } = getRequestOptions(context);
|
|
2027
|
-
return url;
|
|
2028
|
-
};
|
|
2029
|
-
return {
|
|
2030
|
-
getUrl,
|
|
2031
|
-
httpMethod: "POST",
|
|
2032
|
-
path: "/v2/services/add-on-groups/create",
|
|
2033
|
-
pathParams: {},
|
|
2034
|
-
__requestType: null,
|
|
2035
|
-
__originalRequestType: null,
|
|
2036
|
-
__responseType: null,
|
|
2037
|
-
__originalResponseType: null
|
|
2038
|
-
};
|
|
2039
|
-
}
|
|
2040
|
-
function deleteAddOnGroup2() {
|
|
2041
|
-
const payload = {};
|
|
2042
|
-
const getRequestOptions = deleteAddOnGroup(payload);
|
|
2043
|
-
const getUrl = (context) => {
|
|
2044
|
-
const { url } = getRequestOptions(context);
|
|
2045
|
-
return url;
|
|
2046
|
-
};
|
|
2047
|
-
return {
|
|
2048
|
-
getUrl,
|
|
2049
|
-
httpMethod: "POST",
|
|
2050
|
-
path: "/v2/services/add-on-groups/delete",
|
|
2051
|
-
pathParams: {},
|
|
2052
|
-
__requestType: null,
|
|
2053
|
-
__originalRequestType: null,
|
|
2054
|
-
__responseType: null,
|
|
2055
|
-
__originalResponseType: null
|
|
2056
|
-
};
|
|
2057
|
-
}
|
|
2058
|
-
function updateAddOnGroup2() {
|
|
2059
|
-
const payload = {};
|
|
2060
|
-
const getRequestOptions = updateAddOnGroup(payload);
|
|
2061
|
-
const getUrl = (context) => {
|
|
2062
|
-
const { url } = getRequestOptions(context);
|
|
2063
|
-
return url;
|
|
2064
|
-
};
|
|
2065
|
-
return {
|
|
2066
|
-
getUrl,
|
|
2067
|
-
httpMethod: "POST",
|
|
2068
|
-
path: "/v2/services/add-on-groups/update",
|
|
2069
|
-
pathParams: {},
|
|
2070
|
-
__requestType: null,
|
|
2071
|
-
__originalRequestType: null,
|
|
2072
|
-
__responseType: null,
|
|
2073
|
-
__originalResponseType: null
|
|
2074
|
-
};
|
|
2075
|
-
}
|
|
2076
|
-
function listAddOnGroupsByServiceId2() {
|
|
2077
|
-
const payload = {};
|
|
2078
|
-
const getRequestOptions = listAddOnGroupsByServiceId(payload);
|
|
2079
|
-
const getUrl = (context) => {
|
|
2080
|
-
const { url } = getRequestOptions(context);
|
|
2081
|
-
return url;
|
|
2082
|
-
};
|
|
2083
|
-
return {
|
|
2084
|
-
getUrl,
|
|
2085
|
-
httpMethod: "POST",
|
|
2086
|
-
path: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
|
|
2087
|
-
pathParams: {},
|
|
2088
|
-
__requestType: null,
|
|
2089
|
-
__originalRequestType: null,
|
|
2090
|
-
__responseType: null,
|
|
2091
|
-
__originalResponseType: null
|
|
2092
|
-
};
|
|
2093
|
-
}
|
|
2094
|
-
function setAddOnsForGroup2() {
|
|
2095
|
-
const payload = {};
|
|
2096
|
-
const getRequestOptions = setAddOnsForGroup(payload);
|
|
2097
|
-
const getUrl = (context) => {
|
|
2098
|
-
const { url } = getRequestOptions(context);
|
|
2099
|
-
return url;
|
|
2100
|
-
};
|
|
2101
|
-
return {
|
|
2102
|
-
getUrl,
|
|
2103
|
-
httpMethod: "POST",
|
|
2104
|
-
path: "/v2/services/add-on-groups/set-add-ons-for-group",
|
|
2105
|
-
pathParams: {},
|
|
2106
|
-
__requestType: null,
|
|
2107
|
-
__originalRequestType: null,
|
|
2108
|
-
__responseType: null,
|
|
2109
|
-
__originalResponseType: null
|
|
2110
|
-
};
|
|
2111
|
-
}
|
|
2112
2112
|
export {
|
|
2113
2113
|
bulkCreateServices2 as bulkCreateServices,
|
|
2114
2114
|
bulkDeleteServices2 as bulkDeleteServices,
|