washday-sdk 0.0.41 → 0.0.42

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.
@@ -22,7 +22,7 @@ const updateUserById = function (userId, data) {
22
22
  return __awaiter(this, void 0, void 0, function* () {
23
23
  try {
24
24
  const config = {
25
- headers: { Authorization: `Bearer ${this.apiToken}`, 'Content-Type': false }
25
+ headers: { Authorization: `Bearer ${this.apiToken}` }
26
26
  };
27
27
  const response = yield axiosInstance_1.default.put(`${GET_SET_USER}/${userId}`, 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.41",
3
+ "version": "0.0.42",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -7,7 +7,7 @@ const REQUEST_PARAMS = {
7
7
  };
8
8
 
9
9
 
10
- export const bulkUpdate = async function (this: WashdayClientInstance, storeId: string, data: IStore): Promise<any> {
10
+ export const bulkUpdate = async function (this: WashdayClientInstance, storeId: string, data: any): Promise<any> {
11
11
  try {
12
12
  const config = {
13
13
  headers: { Authorization: `Bearer ${this.apiToken}`, 'Content-Type': false }
@@ -1,5 +1,6 @@
1
1
  import { WashdayClientInstance } from "../../interfaces/Api";
2
2
  import { IStore } from "../../interfaces/Store";
3
+ import { IUser } from "../../interfaces/User";
3
4
  import axiosInstance from "../axiosInstance";
4
5
  const GET_SET_USER = 'api/user';
5
6
  const REQUEST_PARAMS = {
@@ -7,10 +8,10 @@ const REQUEST_PARAMS = {
7
8
  };
8
9
 
9
10
 
10
- export const updateUserById = async function (this: WashdayClientInstance, userId: string, data: IStore): Promise<any> {
11
+ export const updateUserById = async function (this: WashdayClientInstance, userId: string, data: IUser): Promise<any> {
11
12
  try {
12
13
  const config = {
13
- headers: { Authorization: `Bearer ${this.apiToken}`, 'Content-Type': false }
14
+ headers: { Authorization: `Bearer ${this.apiToken}`}
14
15
  };
15
16
  const response = await axiosInstance.put(`${GET_SET_USER}/${userId}`, data, config);
16
17
  return response.data || {}