washday-sdk 0.0.154 → 0.0.155
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/auth/post.js +2 -2
- package/package.json +1 -1
- package/src/api/auth/post.ts +2 -2
package/dist/api/auth/post.js
CHANGED
|
@@ -118,11 +118,11 @@ export const customersAppForgotPassword = function (companyId, params) {
|
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
120
|
};
|
|
121
|
-
export const customersAppChangePassword = function (
|
|
121
|
+
export const customersAppChangePassword = function (params) {
|
|
122
122
|
return __awaiter(this, void 0, void 0, function* () {
|
|
123
123
|
try {
|
|
124
124
|
const config = {};
|
|
125
|
-
return yield axiosInstance.post(`${CUSTOMERSAPP_GET_AUTH}
|
|
125
|
+
return yield axiosInstance.post(`${CUSTOMERSAPP_GET_AUTH}/change-password`, params, config);
|
|
126
126
|
}
|
|
127
127
|
catch (error) {
|
|
128
128
|
console.error('Error fetching customerSignUp:', error);
|
package/package.json
CHANGED
package/src/api/auth/post.ts
CHANGED
|
@@ -135,13 +135,13 @@ export const customersAppForgotPassword = async function (this: WashdayClientIns
|
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
137
|
|
|
138
|
-
export const customersAppChangePassword = async function (this: WashdayClientInstance,
|
|
138
|
+
export const customersAppChangePassword = async function (this: WashdayClientInstance, params: {
|
|
139
139
|
password: string
|
|
140
140
|
token: string | null
|
|
141
141
|
}): Promise<any> {
|
|
142
142
|
try {
|
|
143
143
|
const config = {};
|
|
144
|
-
return await axiosInstance.post(`${CUSTOMERSAPP_GET_AUTH}
|
|
144
|
+
return await axiosInstance.post(`${CUSTOMERSAPP_GET_AUTH}/change-password`, params, config);
|
|
145
145
|
} catch (error) {
|
|
146
146
|
console.error('Error fetching customerSignUp:', error);
|
|
147
147
|
throw error;
|