washday-sdk 0.0.154 → 0.0.156

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.
@@ -118,11 +118,11 @@ export const customersAppForgotPassword = function (companyId, params) {
118
118
  }
119
119
  });
120
120
  };
121
- export const customersAppChangePassword = function (companyId, params) {
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}/${companyId}/change-password`, params, config);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "0.0.154",
3
+ "version": "0.0.156",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -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, companyId: string, params: {
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}/${companyId}/change-password`, params, config);
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;
@@ -4,6 +4,43 @@ import { IStoreImage } from "./StoreImage"
4
4
  import { IUser, IStaff } from "./User"
5
5
  import { IOrder, IOrderPaymentLines } from "./Order"
6
6
 
7
+ export interface ITimeSlot {
8
+ start: string; // Representing the start time in 24-hour format or any format you prefer
9
+ end: string; // Representing the end time in the same format as start
10
+ }
11
+
12
+ // Define the Availability type for each day
13
+ export interface IAvailability {
14
+ monday: ITimeSlot[]; // Array of time slots for Monday
15
+ tuesday: ITimeSlot[]; // Array of time slots for Tuesday
16
+ wednesday: ITimeSlot[]; // Array of time slots for Wednesday
17
+ thursday: ITimeSlot[]; // Array of time slots for Thursday
18
+ friday: ITimeSlot[]; // Array of time slots for Friday
19
+ saturday: ITimeSlot[]; // Array of time slots for Saturday
20
+ sunday: ITimeSlot[]; // Array of time slots for Sunday
21
+ }
22
+
23
+ export interface ICustomersAppConfig {
24
+ showInApp: boolean,
25
+ allowProductSelection: boolean,
26
+ notifyOrderRequestedByEmail: boolean,
27
+ notifyOrderRequestedByPushNotification: boolean,
28
+ requestedOrderNotificationEmails: string;
29
+ availability: IAvailability; // Reference the IAvailability type
30
+ homeCards: {
31
+ type: 'redirect' | 'copyText' | 'openModal',
32
+ title: string,
33
+ subTitle: string,
34
+ buttonText: string,
35
+ cardBackgroundColor: string,
36
+ buttonBackgroundColor: string,
37
+ titleTextColor: string,
38
+ subTitleTextColor: string,
39
+ buttonTextColor: string,
40
+ onButtonClick: string
41
+ }[]
42
+ }
43
+
7
44
  export interface IStore {
8
45
  name: string,
9
46
  streetAddress?: string,
@@ -26,6 +63,7 @@ export interface IStore {
26
63
  paymentConfig: IPaymentConfig,
27
64
  orderPageConfig: IOrderPageConfig,
28
65
  printingConfig: IPrintingConfig,
66
+ customersAppConfig: ICustomersAppConfig
29
67
  notificationConfig: INotificationConfig,
30
68
  schedule?: ISchedule,
31
69
  pickupDeliverySchedule?: IPickupDeliverySchedule,