arky-sdk 0.3.121 → 0.3.123
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/dist/index.cjs +2 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -24
- package/dist/index.js.map +1 -1
- package/dist/types.cjs +3 -3
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +37 -29
- package/dist/types.d.ts +37 -29
- package/dist/types.js +3 -3
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -847,21 +847,10 @@ var createEshopApi = (apiConfig) => {
|
|
|
847
847
|
},
|
|
848
848
|
async getProduct(params, options) {
|
|
849
849
|
const formattedId = formatIdOrSlug(params.id, apiConfig);
|
|
850
|
-
|
|
850
|
+
return apiConfig.httpClient.get(
|
|
851
851
|
`/v1/businesses/${apiConfig.businessId}/products/${formattedId}`,
|
|
852
852
|
options
|
|
853
853
|
);
|
|
854
|
-
return {
|
|
855
|
-
...response,
|
|
856
|
-
getName() {
|
|
857
|
-
const locale = apiConfig.locale;
|
|
858
|
-
return response.name?.[locale] || response.name?.en || response.name || "";
|
|
859
|
-
},
|
|
860
|
-
getDescription() {
|
|
861
|
-
const locale = apiConfig.locale;
|
|
862
|
-
return response.description?.[locale] || response.description?.en || response.description || "";
|
|
863
|
-
}
|
|
864
|
-
};
|
|
865
854
|
},
|
|
866
855
|
async getProducts(params, options) {
|
|
867
856
|
return apiConfig.httpClient.get(
|
|
@@ -1041,21 +1030,10 @@ var createReservationApi = (apiConfig) => {
|
|
|
1041
1030
|
},
|
|
1042
1031
|
async getService(params, options) {
|
|
1043
1032
|
const formattedId = formatIdOrSlug(params.id, apiConfig);
|
|
1044
|
-
|
|
1033
|
+
return apiConfig.httpClient.get(
|
|
1045
1034
|
`/v1/businesses/${apiConfig.businessId}/services/${formattedId}`,
|
|
1046
1035
|
options
|
|
1047
1036
|
);
|
|
1048
|
-
return {
|
|
1049
|
-
...response,
|
|
1050
|
-
getName() {
|
|
1051
|
-
const locale = apiConfig.locale;
|
|
1052
|
-
return response.name?.[locale] || response.name?.en || response.name || "";
|
|
1053
|
-
},
|
|
1054
|
-
getDescription() {
|
|
1055
|
-
const locale = apiConfig.locale;
|
|
1056
|
-
return response.description?.[locale] || response.description?.en || response.description || "";
|
|
1057
|
-
}
|
|
1058
|
-
};
|
|
1059
1037
|
},
|
|
1060
1038
|
async getServices(params, options) {
|
|
1061
1039
|
return apiConfig.httpClient.get(
|