washday-sdk 0.0.38 → 0.0.40

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/api/index.js CHANGED
@@ -9,7 +9,7 @@ const WashdayClient = function WashdayClient(apiToken) {
9
9
  this.apiToken = apiToken;
10
10
  WashdayClient.prototype.customers.apiToken = apiToken;
11
11
  WashdayClient.prototype.stores.apiToken = apiToken;
12
- WashdayClient.prototype.stores.products = apiToken;
12
+ WashdayClient.prototype.products.apiToken = apiToken;
13
13
  };
14
14
  WashdayClient.prototype.customers = {
15
15
  getCustomerById: get_1.getCustomerById,
@@ -22,7 +22,7 @@ const bulkUpdate = function (storeId, data) {
22
22
  return __awaiter(this, void 0, void 0, function* () {
23
23
  try {
24
24
  const config = {
25
- headers: { Authorization: `Bearer ${this.apiToken}` }
25
+ headers: { Authorization: `Bearer ${this.apiToken}`, 'Content-Type': false }
26
26
  };
27
27
  const response = yield axiosInstance_1.default.put(`${GET_SET_PRODUCTS}/${storeId}/bulk`, data, config);
28
28
  return response.data || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "0.0.38",
3
+ "version": "0.0.40",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/api/index.ts CHANGED
@@ -15,7 +15,7 @@ const WashdayClient: WashdayClientConstructor = function WashdayClient(this: Was
15
15
  this.apiToken = apiToken;
16
16
  WashdayClient.prototype.customers.apiToken = apiToken;
17
17
  WashdayClient.prototype.stores.apiToken = apiToken;
18
- WashdayClient.prototype.stores.products = apiToken;
18
+ WashdayClient.prototype.products.apiToken = apiToken;
19
19
  } as any;
20
20
 
21
21
  WashdayClient.prototype.customers = {
@@ -10,7 +10,7 @@ const REQUEST_PARAMS = {
10
10
  export const bulkUpdate = async function (this: WashdayClientInstance, storeId: string, data: IStore): Promise<any> {
11
11
  try {
12
12
  const config = {
13
- headers: { Authorization: `Bearer ${this.apiToken}` }
13
+ headers: { Authorization: `Bearer ${this.apiToken}`, 'Content-Type': false }
14
14
  };
15
15
  const response = await axiosInstance.put(`${GET_SET_PRODUCTS}/${storeId}/bulk`, data, config);
16
16
  return response.data || {}