@open-tender/cloud 0.0.4 → 0.0.5
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 -1
- package/dist/cjs/app/store.d.ts +3 -3
- package/dist/cjs/slices/config.d.ts +202 -0
- package/dist/cjs/slices/config.js +3 -1
- package/dist/cjs/slices/customer/index.d.ts +1 -0
- package/dist/cjs/slices/customer/index.js +1 -0
- package/dist/esm/app/hooks.d.ts +1 -1
- package/dist/esm/app/store.d.ts +3 -3
- package/dist/esm/slices/config.d.ts +202 -0
- package/dist/esm/slices/config.js +1 -0
- package/dist/esm/slices/customer/index.d.ts +1 -0
- package/dist/esm/slices/customer/index.js +1 -0
- package/package.json +1 -1
package/dist/cjs/app/hooks.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<i
|
|
|
17
17
|
orders: import("..").CustomerOrdersState;
|
|
18
18
|
order: import("../slices/customer/order").CustomerOrderState;
|
|
19
19
|
loyalty: import("..").CustomerLoyaltyState;
|
|
20
|
-
groupOrders: import("
|
|
20
|
+
groupOrders: import("..").CustomerGroupOrdersState;
|
|
21
21
|
houseAccounts: import("../slices/customer/houseAccounts").CustomerHouseAccountsState;
|
|
22
22
|
rewards: import("../slices/customer/rewards").CustomerRewardsState;
|
|
23
23
|
qrcode: import("../slices/customer/qrCode").CustomerQRCodeState;
|
package/dist/cjs/app/store.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const appReducer: import("redux").Reducer<import("redux").Combine
|
|
|
16
16
|
orders: import("../slices").CustomerOrdersState;
|
|
17
17
|
order: import("../slices/customer/order").CustomerOrderState;
|
|
18
18
|
loyalty: import("../slices").CustomerLoyaltyState;
|
|
19
|
-
groupOrders: import("../slices
|
|
19
|
+
groupOrders: import("../slices").CustomerGroupOrdersState;
|
|
20
20
|
houseAccounts: import("../slices/customer/houseAccounts").CustomerHouseAccountsState;
|
|
21
21
|
rewards: import("../slices/customer/rewards").CustomerRewardsState;
|
|
22
22
|
qrcode: import("../slices/customer/qrCode").CustomerQRCodeState;
|
|
@@ -68,7 +68,7 @@ declare const store: import("@reduxjs/toolkit").EnhancedStore<import("redux").Co
|
|
|
68
68
|
orders: import("../slices").CustomerOrdersState;
|
|
69
69
|
order: import("../slices/customer/order").CustomerOrderState;
|
|
70
70
|
loyalty: import("../slices").CustomerLoyaltyState;
|
|
71
|
-
groupOrders: import("../slices
|
|
71
|
+
groupOrders: import("../slices").CustomerGroupOrdersState;
|
|
72
72
|
houseAccounts: import("../slices/customer/houseAccounts").CustomerHouseAccountsState;
|
|
73
73
|
rewards: import("../slices/customer/rewards").CustomerRewardsState;
|
|
74
74
|
qrcode: import("../slices/customer/qrCode").CustomerQRCodeState;
|
|
@@ -118,7 +118,7 @@ declare const store: import("@reduxjs/toolkit").EnhancedStore<import("redux").Co
|
|
|
118
118
|
orders: import("../slices").CustomerOrdersState;
|
|
119
119
|
order: import("../slices/customer/order").CustomerOrderState;
|
|
120
120
|
loyalty: import("../slices").CustomerLoyaltyState;
|
|
121
|
-
groupOrders: import("../slices
|
|
121
|
+
groupOrders: import("../slices").CustomerGroupOrdersState;
|
|
122
122
|
houseAccounts: import("../slices/customer/houseAccounts").CustomerHouseAccountsState;
|
|
123
123
|
rewards: import("../slices/customer/rewards").CustomerRewardsState;
|
|
124
124
|
qrcode: import("../slices/customer/qrCode").CustomerQRCodeState;
|
|
@@ -83,5 +83,207 @@ export declare const selectRecaptcha: (state: AppState) => {
|
|
|
83
83
|
donations: boolean;
|
|
84
84
|
giftCards: boolean;
|
|
85
85
|
} | undefined;
|
|
86
|
+
export declare const selectContentSection: (page: keyof ConfigContent) => (state: AppState) => {
|
|
87
|
+
addresses: import("@open-tender/types").ConfigContentField;
|
|
88
|
+
allergens: import("@open-tender/types").ConfigContentField;
|
|
89
|
+
background: string;
|
|
90
|
+
content: string;
|
|
91
|
+
creditCards: import("@open-tender/types").ConfigContentField;
|
|
92
|
+
deals: import("@open-tender/types").ConfigContentField;
|
|
93
|
+
displayLogo: boolean;
|
|
94
|
+
displayLogoApp: boolean;
|
|
95
|
+
displayLogoMobile: boolean;
|
|
96
|
+
displayed: string[];
|
|
97
|
+
displayedMobile: string[];
|
|
98
|
+
favorites: import("@open-tender/types").ConfigContentField;
|
|
99
|
+
giftCards: import("@open-tender/types").ConfigContentField;
|
|
100
|
+
greeting: string;
|
|
101
|
+
groupOrders: import("@open-tender/types").ConfigContentField;
|
|
102
|
+
houseAccounts: import("@open-tender/types").ConfigContentField;
|
|
103
|
+
levelup: import("@open-tender/types").ConfigContentField;
|
|
104
|
+
loyalty: {
|
|
105
|
+
signUp: string;
|
|
106
|
+
title: string;
|
|
107
|
+
subtitle: string;
|
|
108
|
+
skip: string;
|
|
109
|
+
};
|
|
110
|
+
mobile: string;
|
|
111
|
+
profile: import("@open-tender/types").ConfigContentField;
|
|
112
|
+
punctuation: string;
|
|
113
|
+
recentItems: import("@open-tender/types").ConfigContentField;
|
|
114
|
+
recentOrders: import("@open-tender/types").ConfigContentField;
|
|
115
|
+
rewards: import("@open-tender/types").ConfigContentField;
|
|
116
|
+
showFirstName: boolean;
|
|
117
|
+
showHero: boolean;
|
|
118
|
+
subtitle: string;
|
|
119
|
+
thanx: import("@open-tender/types").ConfigContentField;
|
|
120
|
+
title: string;
|
|
121
|
+
} | {
|
|
122
|
+
background: string;
|
|
123
|
+
cartErrors: import("@open-tender/types").ConfigContentField;
|
|
124
|
+
displayed: string[];
|
|
125
|
+
displayedMobile: string[];
|
|
126
|
+
loadingMessage: string;
|
|
127
|
+
mobile: string;
|
|
128
|
+
soldOutMessage: string;
|
|
129
|
+
} | import("@open-tender/types").ConfigContentField | {
|
|
130
|
+
background: string;
|
|
131
|
+
content: string;
|
|
132
|
+
mobile: string;
|
|
133
|
+
subtitle: string;
|
|
134
|
+
title: string;
|
|
135
|
+
} | {
|
|
136
|
+
background: string;
|
|
137
|
+
content: string[];
|
|
138
|
+
subtitle: string;
|
|
139
|
+
title: string;
|
|
140
|
+
} | {
|
|
141
|
+
background: string;
|
|
142
|
+
content: string;
|
|
143
|
+
mobile: string;
|
|
144
|
+
subtitle: string;
|
|
145
|
+
title: string;
|
|
146
|
+
policy: {
|
|
147
|
+
content: string[];
|
|
148
|
+
subtitle: string;
|
|
149
|
+
title: string;
|
|
150
|
+
};
|
|
151
|
+
} | {
|
|
152
|
+
background: string;
|
|
153
|
+
content: string;
|
|
154
|
+
mobile: string;
|
|
155
|
+
subtitle: string;
|
|
156
|
+
title: string;
|
|
157
|
+
} | {
|
|
158
|
+
account: import("@open-tender/types").ConfigContentField;
|
|
159
|
+
address: import("@open-tender/types").ConfigContentField;
|
|
160
|
+
background: string;
|
|
161
|
+
checkTitle: string;
|
|
162
|
+
details: import("@open-tender/types").ConfigContentField;
|
|
163
|
+
discounts: import("@open-tender/types").ConfigContentField;
|
|
164
|
+
giftCards: import("@open-tender/types").ConfigContentField;
|
|
165
|
+
guest: import("@open-tender/types").ConfigContentField;
|
|
166
|
+
promoCodes: import("@open-tender/types").ConfigContentField;
|
|
167
|
+
signUp: import("@open-tender/types").ConfigContentField;
|
|
168
|
+
subtitle: string;
|
|
169
|
+
surcharges: import("@open-tender/types").ConfigContentField;
|
|
170
|
+
tenders: import("@open-tender/types").ConfigContentField;
|
|
171
|
+
title: string;
|
|
172
|
+
} | {
|
|
173
|
+
sections: {
|
|
174
|
+
email: import("@open-tender/types").ConfigContentField;
|
|
175
|
+
magicLink: {
|
|
176
|
+
changeEmail: string;
|
|
177
|
+
resend: string;
|
|
178
|
+
subtitle: string;
|
|
179
|
+
title: string;
|
|
180
|
+
};
|
|
181
|
+
name: import("@open-tender/types").ConfigContentField;
|
|
182
|
+
signIn: import("@open-tender/types").ConfigContentField;
|
|
183
|
+
signUp: import("@open-tender/types").ConfigContentField & {
|
|
184
|
+
showGuest: boolean;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
} | (import("@open-tender/types").ConfigContentField & {
|
|
188
|
+
background: string;
|
|
189
|
+
error: string;
|
|
190
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
191
|
+
background: string;
|
|
192
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
193
|
+
background: string;
|
|
194
|
+
}) | {
|
|
195
|
+
background: string;
|
|
196
|
+
} | (import("@open-tender/types").ConfigContentField & {
|
|
197
|
+
background: string;
|
|
198
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
199
|
+
background: string;
|
|
200
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
201
|
+
background: string;
|
|
202
|
+
content: string;
|
|
203
|
+
displayLogo: boolean;
|
|
204
|
+
displayLogoApp: boolean;
|
|
205
|
+
displayLogoMobile: boolean;
|
|
206
|
+
displayed: string[];
|
|
207
|
+
displayedMobile: string[];
|
|
208
|
+
mobile: string;
|
|
209
|
+
showGuest: boolean;
|
|
210
|
+
subtitle: string;
|
|
211
|
+
title: string;
|
|
212
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
213
|
+
background: string;
|
|
214
|
+
content: string;
|
|
215
|
+
mobile: string;
|
|
216
|
+
orderTypes: {
|
|
217
|
+
CATERING: import("@open-tender/types").ConfigContentField;
|
|
218
|
+
MERCH: import("@open-tender/types").ConfigContentField;
|
|
219
|
+
WALKIN: import("@open-tender/types").ConfigContentField;
|
|
220
|
+
PICKUP: import("@open-tender/types").ConfigContentField;
|
|
221
|
+
DELIVERY: import("@open-tender/types").ConfigContentField;
|
|
222
|
+
OUTPOST: import("@open-tender/types").ConfigContentField;
|
|
223
|
+
DONATIONS: import("@open-tender/types").ConfigContentField;
|
|
224
|
+
GIFT_CARDS: import("@open-tender/types").ConfigContentField;
|
|
225
|
+
GROUP: import("@open-tender/types").ConfigContentField;
|
|
226
|
+
};
|
|
227
|
+
showHero: boolean;
|
|
228
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
229
|
+
background: string;
|
|
230
|
+
content: string;
|
|
231
|
+
mobile: string;
|
|
232
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
233
|
+
back: string;
|
|
234
|
+
background: string;
|
|
235
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
236
|
+
background: string;
|
|
237
|
+
content: string;
|
|
238
|
+
mobile: string;
|
|
239
|
+
orderTypes: {
|
|
240
|
+
CATERING: import("@open-tender/types").ConfigContentField;
|
|
241
|
+
MERCH: import("@open-tender/types").ConfigContentField;
|
|
242
|
+
WALKIN: import("@open-tender/types").ConfigContentField;
|
|
243
|
+
PICKUP: import("@open-tender/types").ConfigContentField;
|
|
244
|
+
DELIVERY: import("@open-tender/types").ConfigContentField;
|
|
245
|
+
OUTPOST: import("@open-tender/types").ConfigContentField;
|
|
246
|
+
DONATIONS: import("@open-tender/types").ConfigContentField;
|
|
247
|
+
GIFT_CARDS: import("@open-tender/types").ConfigContentField;
|
|
248
|
+
GROUP: import("@open-tender/types").ConfigContentField;
|
|
249
|
+
};
|
|
250
|
+
showDescriptions: boolean;
|
|
251
|
+
showDescriptionsMobile: boolean;
|
|
252
|
+
showHero: boolean;
|
|
253
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
254
|
+
background: string;
|
|
255
|
+
content: string[];
|
|
256
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
257
|
+
back: string;
|
|
258
|
+
background: string;
|
|
259
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
260
|
+
background: string;
|
|
261
|
+
mobile: string;
|
|
262
|
+
statusMessages: {
|
|
263
|
+
CLOSED: import("@open-tender/types").ConfigContentField;
|
|
264
|
+
CLOSED_TEMPORARILY: import("@open-tender/types").ConfigContentField;
|
|
265
|
+
COMING_SOON: import("@open-tender/types").ConfigContentField;
|
|
266
|
+
};
|
|
267
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
268
|
+
loyalty: import("@open-tender/types").ConfigContentField;
|
|
269
|
+
rewards: import("@open-tender/types").ConfigContentField;
|
|
270
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
271
|
+
back: string;
|
|
272
|
+
background: string;
|
|
273
|
+
}) | {
|
|
274
|
+
cart: import("@open-tender/types").ConfigContentField & {
|
|
275
|
+
decline: string;
|
|
276
|
+
show: boolean;
|
|
277
|
+
};
|
|
278
|
+
checkout: import("@open-tender/types").ConfigContentField & {
|
|
279
|
+
decline: string;
|
|
280
|
+
proceed: string;
|
|
281
|
+
show: boolean;
|
|
282
|
+
};
|
|
283
|
+
item: import("@open-tender/types").ConfigContentField & {
|
|
284
|
+
decline: string;
|
|
285
|
+
show: boolean;
|
|
286
|
+
};
|
|
287
|
+
} | null;
|
|
86
288
|
export declare const selectSoldOutMsg: (state: AppState) => string;
|
|
87
289
|
export declare const configReducer: import("redux").Reducer<ConfigState, import("redux").AnyAction>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.configReducer = exports.selectSoldOutMsg = exports.selectRecaptcha = exports.selectFulfillment = exports.selectOptIns = exports.selectLightColor = exports.selectConfigRetries = exports.selectDisplaySettings = exports.selectAccountConfig = exports.selectApi = exports.selectSettings = exports.selectContent = exports.selectTheme = exports.selectBrand = exports.selectConfig = exports.selectCateringOnly = exports.incrementRetries = exports.resetRetries = exports.resetConfig = exports.fetchConfig = exports.ConfigActionType = void 0;
|
|
4
|
+
exports.configReducer = exports.selectSoldOutMsg = exports.selectContentSection = exports.selectRecaptcha = exports.selectFulfillment = exports.selectOptIns = exports.selectLightColor = exports.selectConfigRetries = exports.selectDisplaySettings = exports.selectAccountConfig = exports.selectApi = exports.selectSettings = exports.selectContent = exports.selectTheme = exports.selectBrand = exports.selectConfig = exports.selectCateringOnly = exports.incrementRetries = exports.resetRetries = exports.resetConfig = exports.fetchConfig = exports.ConfigActionType = void 0;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
7
7
|
const utils_1 = require("@open-tender/utils");
|
|
@@ -112,6 +112,8 @@ const selectFulfillment = (state) => { var _a; return (_a = state.config.brand)
|
|
|
112
112
|
exports.selectFulfillment = selectFulfillment;
|
|
113
113
|
const selectRecaptcha = (state) => { var _a; return (_a = state.config.settings) === null || _a === void 0 ? void 0 : _a.recaptcha; };
|
|
114
114
|
exports.selectRecaptcha = selectRecaptcha;
|
|
115
|
+
const selectContentSection = (page) => (state) => state.config.content && state.config.content[page];
|
|
116
|
+
exports.selectContentSection = selectContentSection;
|
|
115
117
|
const selectSoldOutMsg = (state) => {
|
|
116
118
|
var _a;
|
|
117
119
|
const { soldOutMessage } = ((_a = state.config.content) === null || _a === void 0 ? void 0 : _a.menu) || {};
|
|
@@ -50,3 +50,4 @@ tslib_1.__exportStar(require("./fcmToken"), exports);
|
|
|
50
50
|
tslib_1.__exportStar(require("./giftCards"), exports);
|
|
51
51
|
tslib_1.__exportStar(require("./orders"), exports);
|
|
52
52
|
tslib_1.__exportStar(require("./loyalty"), exports);
|
|
53
|
+
tslib_1.__exportStar(require("./groupOrders"), exports);
|
package/dist/esm/app/hooks.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<i
|
|
|
17
17
|
orders: import("..").CustomerOrdersState;
|
|
18
18
|
order: import("../slices/customer/order").CustomerOrderState;
|
|
19
19
|
loyalty: import("..").CustomerLoyaltyState;
|
|
20
|
-
groupOrders: import("
|
|
20
|
+
groupOrders: import("..").CustomerGroupOrdersState;
|
|
21
21
|
houseAccounts: import("../slices/customer/houseAccounts").CustomerHouseAccountsState;
|
|
22
22
|
rewards: import("../slices/customer/rewards").CustomerRewardsState;
|
|
23
23
|
qrcode: import("../slices/customer/qrCode").CustomerQRCodeState;
|
package/dist/esm/app/store.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const appReducer: import("redux").Reducer<import("redux").Combine
|
|
|
16
16
|
orders: import("../slices").CustomerOrdersState;
|
|
17
17
|
order: import("../slices/customer/order").CustomerOrderState;
|
|
18
18
|
loyalty: import("../slices").CustomerLoyaltyState;
|
|
19
|
-
groupOrders: import("../slices
|
|
19
|
+
groupOrders: import("../slices").CustomerGroupOrdersState;
|
|
20
20
|
houseAccounts: import("../slices/customer/houseAccounts").CustomerHouseAccountsState;
|
|
21
21
|
rewards: import("../slices/customer/rewards").CustomerRewardsState;
|
|
22
22
|
qrcode: import("../slices/customer/qrCode").CustomerQRCodeState;
|
|
@@ -68,7 +68,7 @@ declare const store: import("@reduxjs/toolkit").EnhancedStore<import("redux").Co
|
|
|
68
68
|
orders: import("../slices").CustomerOrdersState;
|
|
69
69
|
order: import("../slices/customer/order").CustomerOrderState;
|
|
70
70
|
loyalty: import("../slices").CustomerLoyaltyState;
|
|
71
|
-
groupOrders: import("../slices
|
|
71
|
+
groupOrders: import("../slices").CustomerGroupOrdersState;
|
|
72
72
|
houseAccounts: import("../slices/customer/houseAccounts").CustomerHouseAccountsState;
|
|
73
73
|
rewards: import("../slices/customer/rewards").CustomerRewardsState;
|
|
74
74
|
qrcode: import("../slices/customer/qrCode").CustomerQRCodeState;
|
|
@@ -118,7 +118,7 @@ declare const store: import("@reduxjs/toolkit").EnhancedStore<import("redux").Co
|
|
|
118
118
|
orders: import("../slices").CustomerOrdersState;
|
|
119
119
|
order: import("../slices/customer/order").CustomerOrderState;
|
|
120
120
|
loyalty: import("../slices").CustomerLoyaltyState;
|
|
121
|
-
groupOrders: import("../slices
|
|
121
|
+
groupOrders: import("../slices").CustomerGroupOrdersState;
|
|
122
122
|
houseAccounts: import("../slices/customer/houseAccounts").CustomerHouseAccountsState;
|
|
123
123
|
rewards: import("../slices/customer/rewards").CustomerRewardsState;
|
|
124
124
|
qrcode: import("../slices/customer/qrCode").CustomerQRCodeState;
|
|
@@ -83,5 +83,207 @@ export declare const selectRecaptcha: (state: AppState) => {
|
|
|
83
83
|
donations: boolean;
|
|
84
84
|
giftCards: boolean;
|
|
85
85
|
} | undefined;
|
|
86
|
+
export declare const selectContentSection: (page: keyof ConfigContent) => (state: AppState) => {
|
|
87
|
+
addresses: import("@open-tender/types").ConfigContentField;
|
|
88
|
+
allergens: import("@open-tender/types").ConfigContentField;
|
|
89
|
+
background: string;
|
|
90
|
+
content: string;
|
|
91
|
+
creditCards: import("@open-tender/types").ConfigContentField;
|
|
92
|
+
deals: import("@open-tender/types").ConfigContentField;
|
|
93
|
+
displayLogo: boolean;
|
|
94
|
+
displayLogoApp: boolean;
|
|
95
|
+
displayLogoMobile: boolean;
|
|
96
|
+
displayed: string[];
|
|
97
|
+
displayedMobile: string[];
|
|
98
|
+
favorites: import("@open-tender/types").ConfigContentField;
|
|
99
|
+
giftCards: import("@open-tender/types").ConfigContentField;
|
|
100
|
+
greeting: string;
|
|
101
|
+
groupOrders: import("@open-tender/types").ConfigContentField;
|
|
102
|
+
houseAccounts: import("@open-tender/types").ConfigContentField;
|
|
103
|
+
levelup: import("@open-tender/types").ConfigContentField;
|
|
104
|
+
loyalty: {
|
|
105
|
+
signUp: string;
|
|
106
|
+
title: string;
|
|
107
|
+
subtitle: string;
|
|
108
|
+
skip: string;
|
|
109
|
+
};
|
|
110
|
+
mobile: string;
|
|
111
|
+
profile: import("@open-tender/types").ConfigContentField;
|
|
112
|
+
punctuation: string;
|
|
113
|
+
recentItems: import("@open-tender/types").ConfigContentField;
|
|
114
|
+
recentOrders: import("@open-tender/types").ConfigContentField;
|
|
115
|
+
rewards: import("@open-tender/types").ConfigContentField;
|
|
116
|
+
showFirstName: boolean;
|
|
117
|
+
showHero: boolean;
|
|
118
|
+
subtitle: string;
|
|
119
|
+
thanx: import("@open-tender/types").ConfigContentField;
|
|
120
|
+
title: string;
|
|
121
|
+
} | {
|
|
122
|
+
background: string;
|
|
123
|
+
cartErrors: import("@open-tender/types").ConfigContentField;
|
|
124
|
+
displayed: string[];
|
|
125
|
+
displayedMobile: string[];
|
|
126
|
+
loadingMessage: string;
|
|
127
|
+
mobile: string;
|
|
128
|
+
soldOutMessage: string;
|
|
129
|
+
} | import("@open-tender/types").ConfigContentField | {
|
|
130
|
+
background: string;
|
|
131
|
+
content: string;
|
|
132
|
+
mobile: string;
|
|
133
|
+
subtitle: string;
|
|
134
|
+
title: string;
|
|
135
|
+
} | {
|
|
136
|
+
background: string;
|
|
137
|
+
content: string[];
|
|
138
|
+
subtitle: string;
|
|
139
|
+
title: string;
|
|
140
|
+
} | {
|
|
141
|
+
background: string;
|
|
142
|
+
content: string;
|
|
143
|
+
mobile: string;
|
|
144
|
+
subtitle: string;
|
|
145
|
+
title: string;
|
|
146
|
+
policy: {
|
|
147
|
+
content: string[];
|
|
148
|
+
subtitle: string;
|
|
149
|
+
title: string;
|
|
150
|
+
};
|
|
151
|
+
} | {
|
|
152
|
+
background: string;
|
|
153
|
+
content: string;
|
|
154
|
+
mobile: string;
|
|
155
|
+
subtitle: string;
|
|
156
|
+
title: string;
|
|
157
|
+
} | {
|
|
158
|
+
account: import("@open-tender/types").ConfigContentField;
|
|
159
|
+
address: import("@open-tender/types").ConfigContentField;
|
|
160
|
+
background: string;
|
|
161
|
+
checkTitle: string;
|
|
162
|
+
details: import("@open-tender/types").ConfigContentField;
|
|
163
|
+
discounts: import("@open-tender/types").ConfigContentField;
|
|
164
|
+
giftCards: import("@open-tender/types").ConfigContentField;
|
|
165
|
+
guest: import("@open-tender/types").ConfigContentField;
|
|
166
|
+
promoCodes: import("@open-tender/types").ConfigContentField;
|
|
167
|
+
signUp: import("@open-tender/types").ConfigContentField;
|
|
168
|
+
subtitle: string;
|
|
169
|
+
surcharges: import("@open-tender/types").ConfigContentField;
|
|
170
|
+
tenders: import("@open-tender/types").ConfigContentField;
|
|
171
|
+
title: string;
|
|
172
|
+
} | {
|
|
173
|
+
sections: {
|
|
174
|
+
email: import("@open-tender/types").ConfigContentField;
|
|
175
|
+
magicLink: {
|
|
176
|
+
changeEmail: string;
|
|
177
|
+
resend: string;
|
|
178
|
+
subtitle: string;
|
|
179
|
+
title: string;
|
|
180
|
+
};
|
|
181
|
+
name: import("@open-tender/types").ConfigContentField;
|
|
182
|
+
signIn: import("@open-tender/types").ConfigContentField;
|
|
183
|
+
signUp: import("@open-tender/types").ConfigContentField & {
|
|
184
|
+
showGuest: boolean;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
} | (import("@open-tender/types").ConfigContentField & {
|
|
188
|
+
background: string;
|
|
189
|
+
error: string;
|
|
190
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
191
|
+
background: string;
|
|
192
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
193
|
+
background: string;
|
|
194
|
+
}) | {
|
|
195
|
+
background: string;
|
|
196
|
+
} | (import("@open-tender/types").ConfigContentField & {
|
|
197
|
+
background: string;
|
|
198
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
199
|
+
background: string;
|
|
200
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
201
|
+
background: string;
|
|
202
|
+
content: string;
|
|
203
|
+
displayLogo: boolean;
|
|
204
|
+
displayLogoApp: boolean;
|
|
205
|
+
displayLogoMobile: boolean;
|
|
206
|
+
displayed: string[];
|
|
207
|
+
displayedMobile: string[];
|
|
208
|
+
mobile: string;
|
|
209
|
+
showGuest: boolean;
|
|
210
|
+
subtitle: string;
|
|
211
|
+
title: string;
|
|
212
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
213
|
+
background: string;
|
|
214
|
+
content: string;
|
|
215
|
+
mobile: string;
|
|
216
|
+
orderTypes: {
|
|
217
|
+
CATERING: import("@open-tender/types").ConfigContentField;
|
|
218
|
+
MERCH: import("@open-tender/types").ConfigContentField;
|
|
219
|
+
WALKIN: import("@open-tender/types").ConfigContentField;
|
|
220
|
+
PICKUP: import("@open-tender/types").ConfigContentField;
|
|
221
|
+
DELIVERY: import("@open-tender/types").ConfigContentField;
|
|
222
|
+
OUTPOST: import("@open-tender/types").ConfigContentField;
|
|
223
|
+
DONATIONS: import("@open-tender/types").ConfigContentField;
|
|
224
|
+
GIFT_CARDS: import("@open-tender/types").ConfigContentField;
|
|
225
|
+
GROUP: import("@open-tender/types").ConfigContentField;
|
|
226
|
+
};
|
|
227
|
+
showHero: boolean;
|
|
228
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
229
|
+
background: string;
|
|
230
|
+
content: string;
|
|
231
|
+
mobile: string;
|
|
232
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
233
|
+
back: string;
|
|
234
|
+
background: string;
|
|
235
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
236
|
+
background: string;
|
|
237
|
+
content: string;
|
|
238
|
+
mobile: string;
|
|
239
|
+
orderTypes: {
|
|
240
|
+
CATERING: import("@open-tender/types").ConfigContentField;
|
|
241
|
+
MERCH: import("@open-tender/types").ConfigContentField;
|
|
242
|
+
WALKIN: import("@open-tender/types").ConfigContentField;
|
|
243
|
+
PICKUP: import("@open-tender/types").ConfigContentField;
|
|
244
|
+
DELIVERY: import("@open-tender/types").ConfigContentField;
|
|
245
|
+
OUTPOST: import("@open-tender/types").ConfigContentField;
|
|
246
|
+
DONATIONS: import("@open-tender/types").ConfigContentField;
|
|
247
|
+
GIFT_CARDS: import("@open-tender/types").ConfigContentField;
|
|
248
|
+
GROUP: import("@open-tender/types").ConfigContentField;
|
|
249
|
+
};
|
|
250
|
+
showDescriptions: boolean;
|
|
251
|
+
showDescriptionsMobile: boolean;
|
|
252
|
+
showHero: boolean;
|
|
253
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
254
|
+
background: string;
|
|
255
|
+
content: string[];
|
|
256
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
257
|
+
back: string;
|
|
258
|
+
background: string;
|
|
259
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
260
|
+
background: string;
|
|
261
|
+
mobile: string;
|
|
262
|
+
statusMessages: {
|
|
263
|
+
CLOSED: import("@open-tender/types").ConfigContentField;
|
|
264
|
+
CLOSED_TEMPORARILY: import("@open-tender/types").ConfigContentField;
|
|
265
|
+
COMING_SOON: import("@open-tender/types").ConfigContentField;
|
|
266
|
+
};
|
|
267
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
268
|
+
loyalty: import("@open-tender/types").ConfigContentField;
|
|
269
|
+
rewards: import("@open-tender/types").ConfigContentField;
|
|
270
|
+
}) | (import("@open-tender/types").ConfigContentField & {
|
|
271
|
+
back: string;
|
|
272
|
+
background: string;
|
|
273
|
+
}) | {
|
|
274
|
+
cart: import("@open-tender/types").ConfigContentField & {
|
|
275
|
+
decline: string;
|
|
276
|
+
show: boolean;
|
|
277
|
+
};
|
|
278
|
+
checkout: import("@open-tender/types").ConfigContentField & {
|
|
279
|
+
decline: string;
|
|
280
|
+
proceed: string;
|
|
281
|
+
show: boolean;
|
|
282
|
+
};
|
|
283
|
+
item: import("@open-tender/types").ConfigContentField & {
|
|
284
|
+
decline: string;
|
|
285
|
+
show: boolean;
|
|
286
|
+
};
|
|
287
|
+
} | null;
|
|
86
288
|
export declare const selectSoldOutMsg: (state: AppState) => string;
|
|
87
289
|
export declare const configReducer: import("redux").Reducer<ConfigState, import("redux").AnyAction>;
|
|
@@ -94,6 +94,7 @@ export const selectOptIns = (state) => {
|
|
|
94
94
|
};
|
|
95
95
|
export const selectFulfillment = (state) => { var _a; return (_a = state.config.brand) === null || _a === void 0 ? void 0 : _a.fulfillment; };
|
|
96
96
|
export const selectRecaptcha = (state) => { var _a; return (_a = state.config.settings) === null || _a === void 0 ? void 0 : _a.recaptcha; };
|
|
97
|
+
export const selectContentSection = (page) => (state) => state.config.content && state.config.content[page];
|
|
97
98
|
export const selectSoldOutMsg = (state) => {
|
|
98
99
|
var _a;
|
|
99
100
|
const { soldOutMessage } = ((_a = state.config.content) === null || _a === void 0 ? void 0 : _a.menu) || {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/cloud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
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",
|