@open-tender/cloud 0.0.65 → 0.0.67
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.
|
@@ -25,7 +25,8 @@ export declare const fetchGuestThanx: import("@reduxjs/toolkit").AsyncThunk<void
|
|
|
25
25
|
email: string;
|
|
26
26
|
}, {
|
|
27
27
|
email: string;
|
|
28
|
-
callback
|
|
28
|
+
callback: (() => void) | null;
|
|
29
|
+
origin?: string | undefined;
|
|
29
30
|
}, {
|
|
30
31
|
state: AppState;
|
|
31
32
|
rejectValue: {
|
|
@@ -33,6 +34,6 @@ export declare const fetchGuestThanx: import("@reduxjs/toolkit").AsyncThunk<void
|
|
|
33
34
|
email: string;
|
|
34
35
|
};
|
|
35
36
|
}>;
|
|
36
|
-
export declare const resetGuest: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
37
|
+
export declare const resetGuest: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetGuestErrors: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setGuestEmail: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
|
|
37
38
|
export declare const selectGuest: (state: AppState) => GuestState;
|
|
38
39
|
export declare const guestReducer: import("redux").Reducer<GuestState, import("redux").AnyAction>;
|
package/dist/cjs/slices/guest.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _a;
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.guestReducer = exports.selectGuest = exports.resetGuest = exports.fetchGuestThanx = exports.fetchGuest = exports.GuestActionType = void 0;
|
|
4
|
+
exports.guestReducer = exports.selectGuest = exports.setGuestEmail = exports.resetGuestErrors = exports.resetGuest = exports.fetchGuestThanx = exports.fetchGuest = exports.GuestActionType = void 0;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
7
|
const types_1 = require("./types");
|
|
@@ -40,7 +41,7 @@ exports.fetchGuestThanx = (0, toolkit_1.createAsyncThunk)(GuestActionType.FetchG
|
|
|
40
41
|
if (!api)
|
|
41
42
|
return;
|
|
42
43
|
try {
|
|
43
|
-
yield api.postThanxLogin(requestData.email);
|
|
44
|
+
yield api.postThanxLogin(requestData.email, origin);
|
|
44
45
|
if (requestData.callback)
|
|
45
46
|
requestData.callback();
|
|
46
47
|
return { email: requestData.email };
|
|
@@ -95,7 +96,7 @@ const guestSlice = (0, toolkit_1.createSlice)({
|
|
|
95
96
|
});
|
|
96
97
|
}
|
|
97
98
|
});
|
|
98
|
-
exports.resetGuest =
|
|
99
|
+
_a = guestSlice.actions, exports.resetGuest = _a.resetGuest, exports.resetGuestErrors = _a.resetGuestErrors, exports.setGuestEmail = _a.setGuestEmail;
|
|
99
100
|
const selectGuest = (state) => state.guest;
|
|
100
101
|
exports.selectGuest = selectGuest;
|
|
101
102
|
exports.guestReducer = guestSlice.reducer;
|
|
@@ -25,7 +25,8 @@ export declare const fetchGuestThanx: import("@reduxjs/toolkit").AsyncThunk<void
|
|
|
25
25
|
email: string;
|
|
26
26
|
}, {
|
|
27
27
|
email: string;
|
|
28
|
-
callback
|
|
28
|
+
callback: (() => void) | null;
|
|
29
|
+
origin?: string | undefined;
|
|
29
30
|
}, {
|
|
30
31
|
state: AppState;
|
|
31
32
|
rejectValue: {
|
|
@@ -33,6 +34,6 @@ export declare const fetchGuestThanx: import("@reduxjs/toolkit").AsyncThunk<void
|
|
|
33
34
|
email: string;
|
|
34
35
|
};
|
|
35
36
|
}>;
|
|
36
|
-
export declare const resetGuest: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
37
|
+
export declare const resetGuest: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetGuestErrors: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setGuestEmail: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
|
|
37
38
|
export declare const selectGuest: (state: AppState) => GuestState;
|
|
38
39
|
export declare const guestReducer: import("redux").Reducer<GuestState, import("redux").AnyAction>;
|
package/dist/esm/slices/guest.js
CHANGED
|
@@ -37,7 +37,7 @@ export const fetchGuestThanx = createAsyncThunk(GuestActionType.FetchGuestThanx,
|
|
|
37
37
|
if (!api)
|
|
38
38
|
return;
|
|
39
39
|
try {
|
|
40
|
-
yield api.postThanxLogin(requestData.email);
|
|
40
|
+
yield api.postThanxLogin(requestData.email, origin);
|
|
41
41
|
if (requestData.callback)
|
|
42
42
|
requestData.callback();
|
|
43
43
|
return { email: requestData.email };
|
|
@@ -92,6 +92,6 @@ const guestSlice = createSlice({
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
|
-
export const { resetGuest } = guestSlice.actions;
|
|
95
|
+
export const { resetGuest, resetGuestErrors, setGuestEmail } = guestSlice.actions;
|
|
96
96
|
export const selectGuest = (state) => state.guest;
|
|
97
97
|
export const guestReducer = guestSlice.reducer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/cloud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.67",
|
|
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",
|