washday-sdk 0.0.148 → 0.0.149

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "0.0.148",
3
+ "version": "0.0.149",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -56,14 +56,14 @@ export const createProductSupply = async function (this: WashdayClientInstance,
56
56
  export const bulkCreate = async function (this: WashdayClientInstance, data: {
57
57
  section: string;
58
58
  store: string;
59
- file: any;
59
+ csvFile: any;
60
60
  }): Promise<any> {
61
61
  try {
62
62
  const config = {
63
63
  headers: { Authorization: `Bearer ${this.apiToken}`, 'Content-Type': false }
64
64
  };
65
65
  const response = await axiosInstance.post(`${GET_SET_PRODUCTS}/${data.store}/bulk`, data, config);
66
- return response.data || {}
66
+ return response.data || {};
67
67
  } catch (error) {
68
68
  console.error('Error fetching products bulkCreate:', error);
69
69
  throw error;