@open-tender/cloud 0.0.53 → 0.0.54

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.
@@ -44,7 +44,10 @@ export declare const sendCustomerVerificationEmail: import("@reduxjs/toolkit").A
44
44
  state: AppState;
45
45
  rejectValue: RequestError;
46
46
  }>;
47
- export declare const loginCustomerThanx: import("@reduxjs/toolkit").AsyncThunk<null, string, {
47
+ export declare const loginCustomerThanx: import("@reduxjs/toolkit").AsyncThunk<null, {
48
+ email: string;
49
+ origin: any;
50
+ }, {
48
51
  state: AppState;
49
52
  rejectValue: RequestError;
50
53
  }>;
@@ -175,10 +175,10 @@ exports.sendCustomerVerificationEmail = (0, toolkit_1.createAsyncThunk)(AccountA
175
175
  return rejectWithValue(err);
176
176
  }
177
177
  }));
178
- exports.loginCustomerThanx = (0, toolkit_1.createAsyncThunk)(AccountActionType.LoginCustomer, (email, { dispatch, getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
178
+ exports.loginCustomerThanx = (0, toolkit_1.createAsyncThunk)(AccountActionType.LoginCustomer, (requestData, { dispatch, getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
179
179
  try {
180
180
  const api = getState().config.api;
181
- yield api.postThanxLogin(email);
181
+ yield api.postThanxLogin(requestData.email, requestData.origin);
182
182
  dispatch((0, order_2.setAlert)({ type: 'close' }));
183
183
  dispatch((0, order_2.addMessage)('Thanks! Please check your email on this device.'));
184
184
  return null;
@@ -44,7 +44,10 @@ export declare const sendCustomerVerificationEmail: import("@reduxjs/toolkit").A
44
44
  state: AppState;
45
45
  rejectValue: RequestError;
46
46
  }>;
47
- export declare const loginCustomerThanx: import("@reduxjs/toolkit").AsyncThunk<null, string, {
47
+ export declare const loginCustomerThanx: import("@reduxjs/toolkit").AsyncThunk<null, {
48
+ email: string;
49
+ origin: any;
50
+ }, {
48
51
  state: AppState;
49
52
  rejectValue: RequestError;
50
53
  }>;
@@ -170,10 +170,10 @@ export const sendCustomerVerificationEmail = createAsyncThunk(AccountActionType.
170
170
  return rejectWithValue(err);
171
171
  }
172
172
  }));
173
- export const loginCustomerThanx = createAsyncThunk(AccountActionType.LoginCustomer, (email, { dispatch, getState, rejectWithValue }) => __awaiter(void 0, void 0, void 0, function* () {
173
+ export const loginCustomerThanx = createAsyncThunk(AccountActionType.LoginCustomer, (requestData, { dispatch, getState, rejectWithValue }) => __awaiter(void 0, void 0, void 0, function* () {
174
174
  try {
175
175
  const api = getState().config.api;
176
- yield api.postThanxLogin(email);
176
+ yield api.postThanxLogin(requestData.email, requestData.origin);
177
177
  dispatch(setAlert({ type: 'close' }));
178
178
  dispatch(addMessage('Thanks! Please check your email on this device.'));
179
179
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/cloud",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",