washday-sdk 0.0.17 → 0.0.18

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.
@@ -23,7 +23,7 @@ const updateStoreById = function (storeId, data) {
23
23
  var _a;
24
24
  try {
25
25
  REQUEST_PARAMS.token = this.apiToken;
26
- const response = yield axiosInstance_1.default.put(`${GET_SET_STORES}/${storeId}`, data, { params: Object.assign({}, REQUEST_PARAMS) });
26
+ const response = yield axiosInstance_1.default.put(`${GET_SET_STORES}/${storeId}`, { params: Object.assign(Object.assign({}, REQUEST_PARAMS), { data }) });
27
27
  return ((_a = response.data) === null || _a === void 0 ? void 0 : _a.data) || {};
28
28
  }
29
29
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -9,7 +9,7 @@ const REQUEST_PARAMS = {
9
9
  export const updateStoreById = async function (this: WashdayClientInstance, storeId: string, data: IStore): Promise<{ store: IStore }> {
10
10
  try {
11
11
  REQUEST_PARAMS.token = this.apiToken;
12
- const response = await axiosInstance.put(`${GET_SET_STORES}/${storeId}`, data, { params: { ...REQUEST_PARAMS } });
12
+ const response = await axiosInstance.put(`${GET_SET_STORES}/${storeId}`, { params: { ...REQUEST_PARAMS, data } });
13
13
  return response.data?.data || {}
14
14
  } catch (error) {
15
15
  console.error('Error fetching getStoreById:', error);