washday-sdk 0.0.159 → 0.0.160

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.
@@ -94,6 +94,18 @@ export const regularUserLogin = function (params) {
94
94
  }
95
95
  });
96
96
  };
97
+ export const companySignUp = function (params) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ try {
100
+ const config = {};
101
+ return yield axiosInstance.post(`${REGULAR_USER_AUTH}/register`, params, config);
102
+ }
103
+ catch (error) {
104
+ console.error('Error fetching companySignUp:', error);
105
+ throw error;
106
+ }
107
+ });
108
+ };
97
109
  export const regularUserTokenLogin = function (params) {
98
110
  return __awaiter(this, void 0, void 0, function* () {
99
111
  try {
package/dist/api/index.js CHANGED
@@ -86,6 +86,7 @@ const WashdayClient = function WashdayClient(apiToken) {
86
86
  forgotPassword: authEndpoints.postModule.customersAppForgotPassword,
87
87
  customersAppForgotPassword: authEndpoints.postModule.customersAppForgotPassword,
88
88
  customersAppChangePassword: authEndpoints.postModule.customersAppChangePassword,
89
+ companySignUp: authEndpoints.postModule.companySignUp,
89
90
  });
90
91
  this.orders = bindMethods(this, {
91
92
  getList: ordersEndpoints.getModule.getList,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "0.0.159",
3
+ "version": "0.0.160",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -111,6 +111,26 @@ export const regularUserLogin = async function (this: WashdayClientInstance, par
111
111
  }
112
112
  };
113
113
 
114
+ export const companySignUp = async function (this: WashdayClientInstance, params: {
115
+ email: string,
116
+ password: string,
117
+ companyName: string,
118
+ name: string,
119
+ phoneNumber: string,
120
+ country: string,
121
+ city: string,
122
+ languagePreference: string,
123
+ isActive: boolean
124
+ }): Promise<any> {
125
+ try {
126
+ const config = {};
127
+ return await axiosInstance.post(`${REGULAR_USER_AUTH}/register`, params, config);
128
+ } catch (error) {
129
+ console.error('Error fetching companySignUp:', error);
130
+ throw error;
131
+ }
132
+ };
133
+
114
134
 
115
135
  export const regularUserTokenLogin = async function (this: WashdayClientInstance, params: {
116
136
  token: string
package/src/api/index.ts CHANGED
@@ -93,6 +93,7 @@ const WashdayClient: WashdayClientConstructor = function WashdayClient(this: Was
93
93
  forgotPassword: authEndpoints.postModule.customersAppForgotPassword,
94
94
  customersAppForgotPassword: authEndpoints.postModule.customersAppForgotPassword,
95
95
  customersAppChangePassword: authEndpoints.postModule.customersAppChangePassword,
96
+ companySignUp: authEndpoints.postModule.companySignUp,
96
97
  });
97
98
  this.orders = bindMethods(this, {
98
99
  getList: ordersEndpoints.getModule.getList,
@@ -68,6 +68,7 @@ export interface WashdayClientInstance {
68
68
  forgotPassword: typeof authEndpoints.postModule.forgotPassword;
69
69
  customersAppForgotPassword: typeof authEndpoints.postModule.customersAppForgotPassword;
70
70
  customersAppChangePassword: typeof authEndpoints.postModule.customersAppChangePassword;
71
+ companySignUp: typeof authEndpoints.postModule.companySignUp;
71
72
  }
72
73
  review: {
73
74
  getList: typeof reviewsEndpoints.getModule.getList;