@open-tender/cloud 0.0.31 → 0.0.32

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.
@@ -51,6 +51,7 @@ export declare const loginCustomerThanx: import("@reduxjs/toolkit").AsyncThunk<n
51
51
  export declare const authCustomerThanx: import("@reduxjs/toolkit").AsyncThunk<Auth, {
52
52
  code: any;
53
53
  path: string | null;
54
+ origin: string | null;
54
55
  }, {
55
56
  state: AppState;
56
57
  rejectValue: RequestError;
@@ -197,7 +197,7 @@ exports.loginCustomerThanx = (0, toolkit_1.createAsyncThunk)(AccountActionType.L
197
197
  exports.authCustomerThanx = (0, toolkit_1.createAsyncThunk)(AccountActionType.LoginCustomer, (data, { dispatch, getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
198
198
  try {
199
199
  const api = getState().config.api;
200
- const auth = yield api.postThanxAuth(data.code, data.path);
200
+ const auth = yield api.postThanxAuth(data.code, data.path, data.origin);
201
201
  dispatch((0, exports.fetchCustomer)());
202
202
  return auth;
203
203
  }
@@ -51,6 +51,7 @@ export declare const loginCustomerThanx: import("@reduxjs/toolkit").AsyncThunk<n
51
51
  export declare const authCustomerThanx: import("@reduxjs/toolkit").AsyncThunk<Auth, {
52
52
  code: any;
53
53
  path: string | null;
54
+ origin: string | null;
54
55
  }, {
55
56
  state: AppState;
56
57
  rejectValue: RequestError;
@@ -192,7 +192,7 @@ export const loginCustomerThanx = createAsyncThunk(AccountActionType.LoginCustom
192
192
  export const authCustomerThanx = createAsyncThunk(AccountActionType.LoginCustomer, (data, { dispatch, getState, rejectWithValue }) => __awaiter(void 0, void 0, void 0, function* () {
193
193
  try {
194
194
  const api = getState().config.api;
195
- const auth = yield api.postThanxAuth(data.code, data.path);
195
+ const auth = yield api.postThanxAuth(data.code, data.path, data.origin);
196
196
  dispatch(fetchCustomer());
197
197
  return auth;
198
198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/cloud",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
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",