@open-tender/cloud 0.1.105 → 0.1.106
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.
- package/dist/cjs/app/hooks.d.ts +1 -0
- package/dist/cjs/app/store.d.ts +3 -0
- package/dist/cjs/app/store.js +1 -0
- package/dist/cjs/slices/allergens.d.ts +1 -0
- package/dist/cjs/slices/announcements.d.ts +2 -0
- package/dist/cjs/slices/config.d.ts +1 -0
- package/dist/cjs/slices/customer/creditCards.d.ts +1 -0
- package/dist/cjs/slices/customer/loyalty.d.ts +2 -0
- package/dist/cjs/slices/customer/order.d.ts +1 -0
- package/dist/cjs/slices/customer/tpls.d.ts +3 -0
- package/dist/cjs/slices/groupOrder.d.ts +4 -0
- package/dist/cjs/slices/index.d.ts +1 -0
- package/dist/cjs/slices/index.js +1 -0
- package/dist/cjs/slices/order.d.ts +3 -0
- package/dist/cjs/slices/pushNotifications.d.ts +9 -0
- package/dist/cjs/slices/pushNotifications.js +29 -0
- package/dist/cjs/slices/quote.d.ts +1 -0
- package/dist/cjs/slices/tags.d.ts +1 -0
- package/dist/cjs/slices/types.d.ts +1 -0
- package/dist/cjs/slices/types.js +1 -0
- package/dist/esm/app/hooks.d.ts +1 -0
- package/dist/esm/app/store.d.ts +3 -0
- package/dist/esm/app/store.js +2 -1
- package/dist/esm/slices/allergens.d.ts +1 -0
- package/dist/esm/slices/announcements.d.ts +2 -0
- package/dist/esm/slices/config.d.ts +1 -0
- package/dist/esm/slices/customer/creditCards.d.ts +1 -0
- package/dist/esm/slices/customer/loyalty.d.ts +2 -0
- package/dist/esm/slices/customer/order.d.ts +1 -0
- package/dist/esm/slices/customer/tpls.d.ts +3 -0
- package/dist/esm/slices/groupOrder.d.ts +4 -0
- package/dist/esm/slices/index.d.ts +1 -0
- package/dist/esm/slices/index.js +1 -0
- package/dist/esm/slices/order.d.ts +3 -0
- package/dist/esm/slices/pushNotifications.d.ts +9 -0
- package/dist/esm/slices/pushNotifications.js +23 -0
- package/dist/esm/slices/quote.d.ts +1 -0
- package/dist/esm/slices/tags.d.ts +1 -0
- package/dist/esm/slices/types.d.ts +1 -0
- package/dist/esm/slices/types.js +1 -0
- package/package.json +1 -1
package/dist/cjs/app/hooks.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<i
|
|
|
48
48
|
orderFulfillment: import("..").OrderFulfillmentState;
|
|
49
49
|
orderRating: import("..").OrderRatingState;
|
|
50
50
|
posts: import("..").PostsSlice;
|
|
51
|
+
pushNotifications: import("..").PushNotificationsState;
|
|
51
52
|
qr: import("..").QrState;
|
|
52
53
|
quote: import("..").QuoteState;
|
|
53
54
|
resetPassword: import("..").ResetPasswordState;
|
package/dist/cjs/app/store.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare const appReducer: import("redux").Reducer<import("redux").Combine
|
|
|
47
47
|
orderFulfillment: import("../slices").OrderFulfillmentState;
|
|
48
48
|
orderRating: import("../slices").OrderRatingState;
|
|
49
49
|
posts: import("../slices").PostsSlice;
|
|
50
|
+
pushNotifications: import("../slices").PushNotificationsState;
|
|
50
51
|
qr: import("../slices").QrState;
|
|
51
52
|
quote: import("../slices").QuoteState;
|
|
52
53
|
resetPassword: import("../slices").ResetPasswordState;
|
|
@@ -108,6 +109,7 @@ declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore
|
|
|
108
109
|
orderFulfillment: import("../slices").OrderFulfillmentState;
|
|
109
110
|
orderRating: import("../slices").OrderRatingState;
|
|
110
111
|
posts: import("../slices").PostsSlice;
|
|
112
|
+
pushNotifications: import("../slices").PushNotificationsState;
|
|
111
113
|
qr: import("../slices").QrState;
|
|
112
114
|
quote: import("../slices").QuoteState;
|
|
113
115
|
resetPassword: import("../slices").ResetPasswordState;
|
|
@@ -167,6 +169,7 @@ declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore
|
|
|
167
169
|
orderFulfillment: import("../slices").OrderFulfillmentState;
|
|
168
170
|
orderRating: import("../slices").OrderRatingState;
|
|
169
171
|
posts: import("../slices").PostsSlice;
|
|
172
|
+
pushNotifications: import("../slices").PushNotificationsState;
|
|
170
173
|
qr: import("../slices").QrState;
|
|
171
174
|
quote: import("../slices").QuoteState;
|
|
172
175
|
resetPassword: import("../slices").ResetPasswordState;
|
package/dist/cjs/app/store.js
CHANGED
|
@@ -33,6 +33,7 @@ exports.appReducer = (0, toolkit_1.combineReducers)({
|
|
|
33
33
|
[types_1.ReducerType.OrderFulfillment]: slices_1.orderFulfillmentReducer,
|
|
34
34
|
[types_1.ReducerType.OrderRating]: slices_1.orderRatingReducer,
|
|
35
35
|
[types_1.ReducerType.Posts]: slices_1.postsReducer,
|
|
36
|
+
[types_1.ReducerType.PushNotifications]: slices_1.pushNotificationsReducer,
|
|
36
37
|
[types_1.ReducerType.Qr]: slices_1.qrReducer,
|
|
37
38
|
[types_1.ReducerType.Quote]: slices_1.quoteReducer,
|
|
38
39
|
[types_1.ReducerType.ResetPassword]: slices_1.resetPasswordReducer,
|
|
@@ -75,6 +75,7 @@ export declare const selectSelectedAllergenNames: ((state: import("redux").Empty
|
|
|
75
75
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
76
76
|
orderRating: import("./orderRating").OrderRatingState;
|
|
77
77
|
posts: import("./posts").PostsSlice;
|
|
78
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
78
79
|
qr: import("./qr").QrState;
|
|
79
80
|
quote: import("./quote").QuoteState;
|
|
80
81
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -72,6 +72,7 @@ export declare const selectAnnouncementsPage: (page: AnnouncementPageType) => ((
|
|
|
72
72
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
73
73
|
orderRating: import("./orderRating").OrderRatingState;
|
|
74
74
|
posts: import("./posts").PostsSlice;
|
|
75
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
75
76
|
qr: import("./qr").QrState;
|
|
76
77
|
quote: import("./quote").QuoteState;
|
|
77
78
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -150,6 +151,7 @@ export declare const selectHasAnnouncementsPage: (page: AnnouncementPageType) =>
|
|
|
150
151
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
151
152
|
orderRating: import("./orderRating").OrderRatingState;
|
|
152
153
|
posts: import("./posts").PostsSlice;
|
|
154
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
153
155
|
qr: import("./qr").QrState;
|
|
154
156
|
quote: import("./quote").QuoteState;
|
|
155
157
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -131,6 +131,7 @@ export declare const selectOptIns: ((state: import("redux").EmptyObject & {
|
|
|
131
131
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
132
132
|
orderRating: import("./orderRating").OrderRatingState;
|
|
133
133
|
posts: import("./posts").PostsSlice;
|
|
134
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
134
135
|
qr: import("./qr").QrState;
|
|
135
136
|
quote: import("./quote").QuoteState;
|
|
136
137
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -114,6 +114,7 @@ export declare const selectCustomerCreditCardsForPayment: ((state: import("redux
|
|
|
114
114
|
orderFulfillment: import("..").OrderFulfillmentState;
|
|
115
115
|
orderRating: import("..").OrderRatingState;
|
|
116
116
|
posts: import("..").PostsSlice;
|
|
117
|
+
pushNotifications: import("..").PushNotificationsState;
|
|
117
118
|
qr: import("..").QrState;
|
|
118
119
|
quote: import("..").QuoteState;
|
|
119
120
|
resetPassword: import("..").ResetPasswordState;
|
|
@@ -71,6 +71,7 @@ export declare const selectCustomerLoyaltyProgram: ((state: import("redux").Empt
|
|
|
71
71
|
orderFulfillment: import("..").OrderFulfillmentState;
|
|
72
72
|
orderRating: import("..").OrderRatingState;
|
|
73
73
|
posts: import("..").PostsSlice;
|
|
74
|
+
pushNotifications: import("..").PushNotificationsState;
|
|
74
75
|
qr: import("..").QrState;
|
|
75
76
|
quote: import("..").QuoteState;
|
|
76
77
|
resetPassword: import("..").ResetPasswordState;
|
|
@@ -147,6 +148,7 @@ export declare const selectCustomerPointsProgram: (orderType: OrderType | null)
|
|
|
147
148
|
orderFulfillment: import("..").OrderFulfillmentState;
|
|
148
149
|
orderRating: import("..").OrderRatingState;
|
|
149
150
|
posts: import("..").PostsSlice;
|
|
151
|
+
pushNotifications: import("..").PushNotificationsState;
|
|
150
152
|
qr: import("..").QrState;
|
|
151
153
|
quote: import("..").QuoteState;
|
|
152
154
|
resetPassword: import("..").ResetPasswordState;
|
|
@@ -81,6 +81,7 @@ export declare const selectCustomerOrder: ((state: import("redux").EmptyObject &
|
|
|
81
81
|
orderFulfillment: import("..").OrderFulfillmentState;
|
|
82
82
|
orderRating: import("..").OrderRatingState;
|
|
83
83
|
posts: import("..").PostsSlice;
|
|
84
|
+
pushNotifications: import("..").PushNotificationsState;
|
|
84
85
|
qr: import("..").QrState;
|
|
85
86
|
quote: import("..").QuoteState;
|
|
86
87
|
resetPassword: import("..").ResetPasswordState;
|
|
@@ -68,6 +68,7 @@ export declare const selectCustomerTplsPoints: ((state: import("redux").EmptyObj
|
|
|
68
68
|
orderFulfillment: import("..").OrderFulfillmentState;
|
|
69
69
|
orderRating: import("..").OrderRatingState;
|
|
70
70
|
posts: import("..").PostsSlice;
|
|
71
|
+
pushNotifications: import("..").PushNotificationsState;
|
|
71
72
|
qr: import("..").QrState;
|
|
72
73
|
quote: import("..").QuoteState;
|
|
73
74
|
resetPassword: import("..").ResetPasswordState;
|
|
@@ -132,6 +133,7 @@ export declare const selectCustomerTplsRewards: ((state: import("redux").EmptyOb
|
|
|
132
133
|
orderFulfillment: import("..").OrderFulfillmentState;
|
|
133
134
|
orderRating: import("..").OrderRatingState;
|
|
134
135
|
posts: import("..").PostsSlice;
|
|
136
|
+
pushNotifications: import("..").PushNotificationsState;
|
|
135
137
|
qr: import("..").QrState;
|
|
136
138
|
quote: import("..").QuoteState;
|
|
137
139
|
resetPassword: import("..").ResetPasswordState;
|
|
@@ -196,6 +198,7 @@ export declare const selectCustomerTplsProgress: ((state: import("redux").EmptyO
|
|
|
196
198
|
orderFulfillment: import("..").OrderFulfillmentState;
|
|
197
199
|
orderRating: import("..").OrderRatingState;
|
|
198
200
|
posts: import("..").PostsSlice;
|
|
201
|
+
pushNotifications: import("..").PushNotificationsState;
|
|
199
202
|
qr: import("..").QrState;
|
|
200
203
|
quote: import("..").QuoteState;
|
|
201
204
|
resetPassword: import("..").ResetPasswordState;
|
|
@@ -154,6 +154,7 @@ export declare const selectSpendingLimit: ((state: import("redux").EmptyObject &
|
|
|
154
154
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
155
155
|
orderRating: import("./orderRating").OrderRatingState;
|
|
156
156
|
posts: import("./posts").PostsSlice;
|
|
157
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
157
158
|
qr: import("./qr").QrState;
|
|
158
159
|
quote: import("./quote").QuoteState;
|
|
159
160
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -221,6 +222,7 @@ export declare const selectGroupOrderClosed: ((state: import("redux").EmptyObjec
|
|
|
221
222
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
222
223
|
orderRating: import("./orderRating").OrderRatingState;
|
|
223
224
|
posts: import("./posts").PostsSlice;
|
|
225
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
224
226
|
qr: import("./qr").QrState;
|
|
225
227
|
quote: import("./quote").QuoteState;
|
|
226
228
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -290,6 +292,7 @@ export declare const selectGroupOrderTests: ((state: import("redux").EmptyObject
|
|
|
290
292
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
291
293
|
orderRating: import("./orderRating").OrderRatingState;
|
|
292
294
|
posts: import("./posts").PostsSlice;
|
|
295
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
293
296
|
qr: import("./qr").QrState;
|
|
294
297
|
quote: import("./quote").QuoteState;
|
|
295
298
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -368,6 +371,7 @@ export declare const selectGroupOrderPrepTimes: ((state: import("redux").EmptyOb
|
|
|
368
371
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
369
372
|
orderRating: import("./orderRating").OrderRatingState;
|
|
370
373
|
posts: import("./posts").PostsSlice;
|
|
374
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
371
375
|
qr: import("./qr").QrState;
|
|
372
376
|
quote: import("./quote").QuoteState;
|
|
373
377
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
package/dist/cjs/slices/index.js
CHANGED
|
@@ -29,6 +29,7 @@ tslib_1.__exportStar(require("./order"), exports);
|
|
|
29
29
|
tslib_1.__exportStar(require("./orderFulfillment"), exports);
|
|
30
30
|
tslib_1.__exportStar(require("./orderRating"), exports);
|
|
31
31
|
tslib_1.__exportStar(require("./posts"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./pushNotifications"), exports);
|
|
32
33
|
tslib_1.__exportStar(require("./qr"), exports);
|
|
33
34
|
tslib_1.__exportStar(require("./quote"), exports);
|
|
34
35
|
tslib_1.__exportStar(require("./resetPassword"), exports);
|
|
@@ -176,6 +176,7 @@ export declare const selectOrderLimits: ((state: import("redux").EmptyObject & {
|
|
|
176
176
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
177
177
|
orderRating: import("./orderRating").OrderRatingState;
|
|
178
178
|
posts: import("./posts").PostsSlice;
|
|
179
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
179
180
|
qr: import("./qr").QrState;
|
|
180
181
|
quote: import("./quote").QuoteState;
|
|
181
182
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -251,6 +252,7 @@ export declare const selectCartIds: ((state: import("redux").EmptyObject & {
|
|
|
251
252
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
252
253
|
orderRating: import("./orderRating").OrderRatingState;
|
|
253
254
|
posts: import("./posts").PostsSlice;
|
|
255
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
254
256
|
qr: import("./qr").QrState;
|
|
255
257
|
quote: import("./quote").QuoteState;
|
|
256
258
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -321,6 +323,7 @@ export declare const selectMenuVars: ((state: import("redux").EmptyObject & {
|
|
|
321
323
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
322
324
|
orderRating: import("./orderRating").OrderRatingState;
|
|
323
325
|
posts: import("./posts").PostsSlice;
|
|
326
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
324
327
|
qr: import("./qr").QrState;
|
|
325
328
|
quote: import("./quote").QuoteState;
|
|
326
329
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AppState } from '../app';
|
|
2
|
+
export interface PushNotificationsState {
|
|
3
|
+
orderId: string | number | null;
|
|
4
|
+
fcmToken: string | null;
|
|
5
|
+
}
|
|
6
|
+
export declare const setPushNotificationsOrderId: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "pushNotifications/setPushNotificationsOrderId">, setFcmToken: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "pushNotifications/setFcmToken">;
|
|
7
|
+
export declare const selectOrderId: (state: AppState) => string | number | null;
|
|
8
|
+
export declare const selectFcmToken: (state: AppState) => string | null;
|
|
9
|
+
export declare const pushNotificationsReducer: import("redux").Reducer<PushNotificationsState, import("redux").AnyAction>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.pushNotificationsReducer = exports.selectFcmToken = exports.selectOrderId = exports.setFcmToken = exports.setPushNotificationsOrderId = void 0;
|
|
5
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
+
const initialState = {
|
|
7
|
+
orderId: null,
|
|
8
|
+
fcmToken: null
|
|
9
|
+
};
|
|
10
|
+
const pushNotificationsSlice = (0, toolkit_1.createSlice)({
|
|
11
|
+
name: 'pushNotifications',
|
|
12
|
+
initialState: initialState,
|
|
13
|
+
reducers: {
|
|
14
|
+
setPushNotificationsOrderId(state, action) {
|
|
15
|
+
const { orderId } = action.payload;
|
|
16
|
+
state.orderId = orderId;
|
|
17
|
+
},
|
|
18
|
+
setFcmToken(state, action) {
|
|
19
|
+
const { fcmToken } = action.payload;
|
|
20
|
+
state.fcmToken = fcmToken;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
_a = pushNotificationsSlice.actions, exports.setPushNotificationsOrderId = _a.setPushNotificationsOrderId, exports.setFcmToken = _a.setFcmToken;
|
|
25
|
+
const selectOrderId = (state) => state.pushNotifications.orderId;
|
|
26
|
+
exports.selectOrderId = selectOrderId;
|
|
27
|
+
const selectFcmToken = (state) => state.pushNotifications.fcmToken;
|
|
28
|
+
exports.selectFcmToken = selectFcmToken;
|
|
29
|
+
exports.pushNotificationsReducer = pushNotificationsSlice.reducer;
|
|
@@ -67,6 +67,7 @@ export declare const selectQuote: ((state: import("redux").EmptyObject & {
|
|
|
67
67
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
68
68
|
orderRating: import("./orderRating").OrderRatingState;
|
|
69
69
|
posts: import("./posts").PostsSlice;
|
|
70
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
70
71
|
qr: import("./qr").QrState;
|
|
71
72
|
quote: QuoteState;
|
|
72
73
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -75,6 +75,7 @@ export declare const selectSelectedTagNames: ((state: import("redux").EmptyObjec
|
|
|
75
75
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
76
76
|
orderRating: import("./orderRating").OrderRatingState;
|
|
77
77
|
posts: import("./posts").PostsSlice;
|
|
78
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
78
79
|
qr: import("./qr").QrState;
|
|
79
80
|
quote: import("./quote").QuoteState;
|
|
80
81
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
package/dist/cjs/slices/types.js
CHANGED
|
@@ -43,6 +43,7 @@ var ReducerType;
|
|
|
43
43
|
ReducerType["Orders"] = "orders";
|
|
44
44
|
ReducerType["Posts"] = "posts";
|
|
45
45
|
ReducerType["PointsShop"] = "pointsShop";
|
|
46
|
+
ReducerType["PushNotifications"] = "pushNotifications";
|
|
46
47
|
ReducerType["Qr"] = "qr";
|
|
47
48
|
ReducerType["QRCode"] = "qrcode";
|
|
48
49
|
ReducerType["Quote"] = "quote";
|
package/dist/esm/app/hooks.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<i
|
|
|
48
48
|
orderFulfillment: import("..").OrderFulfillmentState;
|
|
49
49
|
orderRating: import("..").OrderRatingState;
|
|
50
50
|
posts: import("..").PostsSlice;
|
|
51
|
+
pushNotifications: import("..").PushNotificationsState;
|
|
51
52
|
qr: import("..").QrState;
|
|
52
53
|
quote: import("..").QuoteState;
|
|
53
54
|
resetPassword: import("..").ResetPasswordState;
|
package/dist/esm/app/store.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare const appReducer: import("redux").Reducer<import("redux").Combine
|
|
|
47
47
|
orderFulfillment: import("../slices").OrderFulfillmentState;
|
|
48
48
|
orderRating: import("../slices").OrderRatingState;
|
|
49
49
|
posts: import("../slices").PostsSlice;
|
|
50
|
+
pushNotifications: import("../slices").PushNotificationsState;
|
|
50
51
|
qr: import("../slices").QrState;
|
|
51
52
|
quote: import("../slices").QuoteState;
|
|
52
53
|
resetPassword: import("../slices").ResetPasswordState;
|
|
@@ -108,6 +109,7 @@ declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore
|
|
|
108
109
|
orderFulfillment: import("../slices").OrderFulfillmentState;
|
|
109
110
|
orderRating: import("../slices").OrderRatingState;
|
|
110
111
|
posts: import("../slices").PostsSlice;
|
|
112
|
+
pushNotifications: import("../slices").PushNotificationsState;
|
|
111
113
|
qr: import("../slices").QrState;
|
|
112
114
|
quote: import("../slices").QuoteState;
|
|
113
115
|
resetPassword: import("../slices").ResetPasswordState;
|
|
@@ -167,6 +169,7 @@ declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore
|
|
|
167
169
|
orderFulfillment: import("../slices").OrderFulfillmentState;
|
|
168
170
|
orderRating: import("../slices").OrderRatingState;
|
|
169
171
|
posts: import("../slices").PostsSlice;
|
|
172
|
+
pushNotifications: import("../slices").PushNotificationsState;
|
|
170
173
|
qr: import("../slices").QrState;
|
|
171
174
|
quote: import("../slices").QuoteState;
|
|
172
175
|
resetPassword: import("../slices").ResetPasswordState;
|
package/dist/esm/app/store.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { combineReducers, configureStore } from '@reduxjs/toolkit';
|
|
2
|
-
import { alertsReducer, allergensReducer, announcementsReducer, checkoutReducer, completedOrdersReducer, configReducer, confirmationReducer, customerReducer, dealsReducer, donationsReducer, geolocationReducer, giftCardsReducer, groupOrderReducer, guestReducer, loaderReducer, menuDisplayReducer, menuItemsReducer, menuReducer, miscReducer, modalReducer, navReducer, navSiteReducer, notificationsReducer, oneTimePasscodeReducer, orderFulfillmentReducer, orderRatingReducer, orderReducer, postsReducer, qrReducer, quoteReducer, resetPasswordReducer, revenueCentersReducer, sidebarModalReducer, sidebarReducer, signUpReducer, tagsReducer, termsReducer, validTimesReducer, verifyAccountReducer } from '../slices';
|
|
2
|
+
import { alertsReducer, allergensReducer, announcementsReducer, checkoutReducer, completedOrdersReducer, configReducer, confirmationReducer, customerReducer, dealsReducer, donationsReducer, geolocationReducer, giftCardsReducer, groupOrderReducer, guestReducer, loaderReducer, menuDisplayReducer, menuItemsReducer, menuReducer, miscReducer, modalReducer, navReducer, navSiteReducer, notificationsReducer, oneTimePasscodeReducer, orderFulfillmentReducer, orderRatingReducer, orderReducer, postsReducer, pushNotificationsReducer, qrReducer, quoteReducer, resetPasswordReducer, revenueCentersReducer, sidebarModalReducer, sidebarReducer, signUpReducer, tagsReducer, termsReducer, validTimesReducer, verifyAccountReducer } from '../slices';
|
|
3
3
|
import { ReducerType } from '../slices/types';
|
|
4
4
|
export const appReducer = combineReducers({
|
|
5
5
|
[ReducerType.Alerts]: alertsReducer,
|
|
@@ -30,6 +30,7 @@ export const appReducer = combineReducers({
|
|
|
30
30
|
[ReducerType.OrderFulfillment]: orderFulfillmentReducer,
|
|
31
31
|
[ReducerType.OrderRating]: orderRatingReducer,
|
|
32
32
|
[ReducerType.Posts]: postsReducer,
|
|
33
|
+
[ReducerType.PushNotifications]: pushNotificationsReducer,
|
|
33
34
|
[ReducerType.Qr]: qrReducer,
|
|
34
35
|
[ReducerType.Quote]: quoteReducer,
|
|
35
36
|
[ReducerType.ResetPassword]: resetPasswordReducer,
|
|
@@ -75,6 +75,7 @@ export declare const selectSelectedAllergenNames: ((state: import("redux").Empty
|
|
|
75
75
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
76
76
|
orderRating: import("./orderRating").OrderRatingState;
|
|
77
77
|
posts: import("./posts").PostsSlice;
|
|
78
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
78
79
|
qr: import("./qr").QrState;
|
|
79
80
|
quote: import("./quote").QuoteState;
|
|
80
81
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -72,6 +72,7 @@ export declare const selectAnnouncementsPage: (page: AnnouncementPageType) => ((
|
|
|
72
72
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
73
73
|
orderRating: import("./orderRating").OrderRatingState;
|
|
74
74
|
posts: import("./posts").PostsSlice;
|
|
75
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
75
76
|
qr: import("./qr").QrState;
|
|
76
77
|
quote: import("./quote").QuoteState;
|
|
77
78
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -150,6 +151,7 @@ export declare const selectHasAnnouncementsPage: (page: AnnouncementPageType) =>
|
|
|
150
151
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
151
152
|
orderRating: import("./orderRating").OrderRatingState;
|
|
152
153
|
posts: import("./posts").PostsSlice;
|
|
154
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
153
155
|
qr: import("./qr").QrState;
|
|
154
156
|
quote: import("./quote").QuoteState;
|
|
155
157
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -131,6 +131,7 @@ export declare const selectOptIns: ((state: import("redux").EmptyObject & {
|
|
|
131
131
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
132
132
|
orderRating: import("./orderRating").OrderRatingState;
|
|
133
133
|
posts: import("./posts").PostsSlice;
|
|
134
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
134
135
|
qr: import("./qr").QrState;
|
|
135
136
|
quote: import("./quote").QuoteState;
|
|
136
137
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -114,6 +114,7 @@ export declare const selectCustomerCreditCardsForPayment: ((state: import("redux
|
|
|
114
114
|
orderFulfillment: import("..").OrderFulfillmentState;
|
|
115
115
|
orderRating: import("..").OrderRatingState;
|
|
116
116
|
posts: import("..").PostsSlice;
|
|
117
|
+
pushNotifications: import("..").PushNotificationsState;
|
|
117
118
|
qr: import("..").QrState;
|
|
118
119
|
quote: import("..").QuoteState;
|
|
119
120
|
resetPassword: import("..").ResetPasswordState;
|
|
@@ -71,6 +71,7 @@ export declare const selectCustomerLoyaltyProgram: ((state: import("redux").Empt
|
|
|
71
71
|
orderFulfillment: import("..").OrderFulfillmentState;
|
|
72
72
|
orderRating: import("..").OrderRatingState;
|
|
73
73
|
posts: import("..").PostsSlice;
|
|
74
|
+
pushNotifications: import("..").PushNotificationsState;
|
|
74
75
|
qr: import("..").QrState;
|
|
75
76
|
quote: import("..").QuoteState;
|
|
76
77
|
resetPassword: import("..").ResetPasswordState;
|
|
@@ -147,6 +148,7 @@ export declare const selectCustomerPointsProgram: (orderType: OrderType | null)
|
|
|
147
148
|
orderFulfillment: import("..").OrderFulfillmentState;
|
|
148
149
|
orderRating: import("..").OrderRatingState;
|
|
149
150
|
posts: import("..").PostsSlice;
|
|
151
|
+
pushNotifications: import("..").PushNotificationsState;
|
|
150
152
|
qr: import("..").QrState;
|
|
151
153
|
quote: import("..").QuoteState;
|
|
152
154
|
resetPassword: import("..").ResetPasswordState;
|
|
@@ -81,6 +81,7 @@ export declare const selectCustomerOrder: ((state: import("redux").EmptyObject &
|
|
|
81
81
|
orderFulfillment: import("..").OrderFulfillmentState;
|
|
82
82
|
orderRating: import("..").OrderRatingState;
|
|
83
83
|
posts: import("..").PostsSlice;
|
|
84
|
+
pushNotifications: import("..").PushNotificationsState;
|
|
84
85
|
qr: import("..").QrState;
|
|
85
86
|
quote: import("..").QuoteState;
|
|
86
87
|
resetPassword: import("..").ResetPasswordState;
|
|
@@ -68,6 +68,7 @@ export declare const selectCustomerTplsPoints: ((state: import("redux").EmptyObj
|
|
|
68
68
|
orderFulfillment: import("..").OrderFulfillmentState;
|
|
69
69
|
orderRating: import("..").OrderRatingState;
|
|
70
70
|
posts: import("..").PostsSlice;
|
|
71
|
+
pushNotifications: import("..").PushNotificationsState;
|
|
71
72
|
qr: import("..").QrState;
|
|
72
73
|
quote: import("..").QuoteState;
|
|
73
74
|
resetPassword: import("..").ResetPasswordState;
|
|
@@ -132,6 +133,7 @@ export declare const selectCustomerTplsRewards: ((state: import("redux").EmptyOb
|
|
|
132
133
|
orderFulfillment: import("..").OrderFulfillmentState;
|
|
133
134
|
orderRating: import("..").OrderRatingState;
|
|
134
135
|
posts: import("..").PostsSlice;
|
|
136
|
+
pushNotifications: import("..").PushNotificationsState;
|
|
135
137
|
qr: import("..").QrState;
|
|
136
138
|
quote: import("..").QuoteState;
|
|
137
139
|
resetPassword: import("..").ResetPasswordState;
|
|
@@ -196,6 +198,7 @@ export declare const selectCustomerTplsProgress: ((state: import("redux").EmptyO
|
|
|
196
198
|
orderFulfillment: import("..").OrderFulfillmentState;
|
|
197
199
|
orderRating: import("..").OrderRatingState;
|
|
198
200
|
posts: import("..").PostsSlice;
|
|
201
|
+
pushNotifications: import("..").PushNotificationsState;
|
|
199
202
|
qr: import("..").QrState;
|
|
200
203
|
quote: import("..").QuoteState;
|
|
201
204
|
resetPassword: import("..").ResetPasswordState;
|
|
@@ -154,6 +154,7 @@ export declare const selectSpendingLimit: ((state: import("redux").EmptyObject &
|
|
|
154
154
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
155
155
|
orderRating: import("./orderRating").OrderRatingState;
|
|
156
156
|
posts: import("./posts").PostsSlice;
|
|
157
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
157
158
|
qr: import("./qr").QrState;
|
|
158
159
|
quote: import("./quote").QuoteState;
|
|
159
160
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -221,6 +222,7 @@ export declare const selectGroupOrderClosed: ((state: import("redux").EmptyObjec
|
|
|
221
222
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
222
223
|
orderRating: import("./orderRating").OrderRatingState;
|
|
223
224
|
posts: import("./posts").PostsSlice;
|
|
225
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
224
226
|
qr: import("./qr").QrState;
|
|
225
227
|
quote: import("./quote").QuoteState;
|
|
226
228
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -290,6 +292,7 @@ export declare const selectGroupOrderTests: ((state: import("redux").EmptyObject
|
|
|
290
292
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
291
293
|
orderRating: import("./orderRating").OrderRatingState;
|
|
292
294
|
posts: import("./posts").PostsSlice;
|
|
295
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
293
296
|
qr: import("./qr").QrState;
|
|
294
297
|
quote: import("./quote").QuoteState;
|
|
295
298
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -368,6 +371,7 @@ export declare const selectGroupOrderPrepTimes: ((state: import("redux").EmptyOb
|
|
|
368
371
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
369
372
|
orderRating: import("./orderRating").OrderRatingState;
|
|
370
373
|
posts: import("./posts").PostsSlice;
|
|
374
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
371
375
|
qr: import("./qr").QrState;
|
|
372
376
|
quote: import("./quote").QuoteState;
|
|
373
377
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
package/dist/esm/slices/index.js
CHANGED
|
@@ -176,6 +176,7 @@ export declare const selectOrderLimits: ((state: import("redux").EmptyObject & {
|
|
|
176
176
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
177
177
|
orderRating: import("./orderRating").OrderRatingState;
|
|
178
178
|
posts: import("./posts").PostsSlice;
|
|
179
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
179
180
|
qr: import("./qr").QrState;
|
|
180
181
|
quote: import("./quote").QuoteState;
|
|
181
182
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -251,6 +252,7 @@ export declare const selectCartIds: ((state: import("redux").EmptyObject & {
|
|
|
251
252
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
252
253
|
orderRating: import("./orderRating").OrderRatingState;
|
|
253
254
|
posts: import("./posts").PostsSlice;
|
|
255
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
254
256
|
qr: import("./qr").QrState;
|
|
255
257
|
quote: import("./quote").QuoteState;
|
|
256
258
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -321,6 +323,7 @@ export declare const selectMenuVars: ((state: import("redux").EmptyObject & {
|
|
|
321
323
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
322
324
|
orderRating: import("./orderRating").OrderRatingState;
|
|
323
325
|
posts: import("./posts").PostsSlice;
|
|
326
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
324
327
|
qr: import("./qr").QrState;
|
|
325
328
|
quote: import("./quote").QuoteState;
|
|
326
329
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AppState } from '../app';
|
|
2
|
+
export interface PushNotificationsState {
|
|
3
|
+
orderId: string | number | null;
|
|
4
|
+
fcmToken: string | null;
|
|
5
|
+
}
|
|
6
|
+
export declare const setPushNotificationsOrderId: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "pushNotifications/setPushNotificationsOrderId">, setFcmToken: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "pushNotifications/setFcmToken">;
|
|
7
|
+
export declare const selectOrderId: (state: AppState) => string | number | null;
|
|
8
|
+
export declare const selectFcmToken: (state: AppState) => string | null;
|
|
9
|
+
export declare const pushNotificationsReducer: import("redux").Reducer<PushNotificationsState, import("redux").AnyAction>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
+
const initialState = {
|
|
3
|
+
orderId: null,
|
|
4
|
+
fcmToken: null
|
|
5
|
+
};
|
|
6
|
+
const pushNotificationsSlice = createSlice({
|
|
7
|
+
name: 'pushNotifications',
|
|
8
|
+
initialState: initialState,
|
|
9
|
+
reducers: {
|
|
10
|
+
setPushNotificationsOrderId(state, action) {
|
|
11
|
+
const { orderId } = action.payload;
|
|
12
|
+
state.orderId = orderId;
|
|
13
|
+
},
|
|
14
|
+
setFcmToken(state, action) {
|
|
15
|
+
const { fcmToken } = action.payload;
|
|
16
|
+
state.fcmToken = fcmToken;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export const { setPushNotificationsOrderId, setFcmToken } = pushNotificationsSlice.actions;
|
|
21
|
+
export const selectOrderId = (state) => state.pushNotifications.orderId;
|
|
22
|
+
export const selectFcmToken = (state) => state.pushNotifications.fcmToken;
|
|
23
|
+
export const pushNotificationsReducer = pushNotificationsSlice.reducer;
|
|
@@ -67,6 +67,7 @@ export declare const selectQuote: ((state: import("redux").EmptyObject & {
|
|
|
67
67
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
68
68
|
orderRating: import("./orderRating").OrderRatingState;
|
|
69
69
|
posts: import("./posts").PostsSlice;
|
|
70
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
70
71
|
qr: import("./qr").QrState;
|
|
71
72
|
quote: QuoteState;
|
|
72
73
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
|
@@ -75,6 +75,7 @@ export declare const selectSelectedTagNames: ((state: import("redux").EmptyObjec
|
|
|
75
75
|
orderFulfillment: import("./orderFulfillment").OrderFulfillmentState;
|
|
76
76
|
orderRating: import("./orderRating").OrderRatingState;
|
|
77
77
|
posts: import("./posts").PostsSlice;
|
|
78
|
+
pushNotifications: import("./pushNotifications").PushNotificationsState;
|
|
78
79
|
qr: import("./qr").QrState;
|
|
79
80
|
quote: import("./quote").QuoteState;
|
|
80
81
|
resetPassword: import("./resetPassword").ResetPasswordState;
|
package/dist/esm/slices/types.js
CHANGED
|
@@ -40,6 +40,7 @@ export var ReducerType;
|
|
|
40
40
|
ReducerType["Orders"] = "orders";
|
|
41
41
|
ReducerType["Posts"] = "posts";
|
|
42
42
|
ReducerType["PointsShop"] = "pointsShop";
|
|
43
|
+
ReducerType["PushNotifications"] = "pushNotifications";
|
|
43
44
|
ReducerType["Qr"] = "qr";
|
|
44
45
|
ReducerType["QRCode"] = "qrcode";
|
|
45
46
|
ReducerType["Quote"] = "quote";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/cloud",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.106",
|
|
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",
|