arky-sdk 0.3.121 → 0.3.122

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 CHANGED
@@ -849,21 +849,10 @@ var createEshopApi = (apiConfig) => {
849
849
  },
850
850
  async getProduct(params, options) {
851
851
  const formattedId = formatIdOrSlug(params.id, apiConfig);
852
- const response = await apiConfig.httpClient.get(
852
+ return apiConfig.httpClient.get(
853
853
  `/v1/businesses/${apiConfig.businessId}/products/${formattedId}`,
854
854
  options
855
855
  );
856
- return {
857
- ...response,
858
- getName() {
859
- const locale = apiConfig.locale;
860
- return response.name?.[locale] || response.name?.en || response.name || "";
861
- },
862
- getDescription() {
863
- const locale = apiConfig.locale;
864
- return response.description?.[locale] || response.description?.en || response.description || "";
865
- }
866
- };
867
856
  },
868
857
  async getProducts(params, options) {
869
858
  return apiConfig.httpClient.get(
@@ -1043,21 +1032,10 @@ var createReservationApi = (apiConfig) => {
1043
1032
  },
1044
1033
  async getService(params, options) {
1045
1034
  const formattedId = formatIdOrSlug(params.id, apiConfig);
1046
- const response = await apiConfig.httpClient.get(
1035
+ return apiConfig.httpClient.get(
1047
1036
  `/v1/businesses/${apiConfig.businessId}/services/${formattedId}`,
1048
1037
  options
1049
1038
  );
1050
- return {
1051
- ...response,
1052
- getName() {
1053
- const locale = apiConfig.locale;
1054
- return response.name?.[locale] || response.name?.en || response.name || "";
1055
- },
1056
- getDescription() {
1057
- const locale = apiConfig.locale;
1058
- return response.description?.[locale] || response.description?.en || response.description || "";
1059
- }
1060
- };
1061
1039
  },
1062
1040
  async getServices(params, options) {
1063
1041
  return apiConfig.httpClient.get(