@open-tender/cloud 0.1.58 → 0.1.60
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 +0 -2
- package/dist/cjs/app/store.d.ts +0 -6
- package/dist/cjs/app/store.js +0 -1
- package/dist/cjs/services/api.d.ts +2 -7
- package/dist/cjs/services/api.js +6 -19
- package/dist/cjs/slices/allergens.d.ts +0 -2
- package/dist/cjs/slices/customer/account.d.ts +3 -2
- package/dist/cjs/slices/customer/account.js +15 -16
- package/dist/cjs/slices/customer/index.d.ts +0 -2
- package/dist/cjs/slices/customer/index.js +1 -4
- package/dist/cjs/slices/guest.d.ts +1 -0
- package/dist/cjs/slices/guest.js +1 -1
- package/dist/cjs/slices/index.d.ts +0 -1
- package/dist/cjs/slices/index.js +0 -1
- package/dist/cjs/slices/order.d.ts +0 -6
- package/dist/cjs/slices/tags.d.ts +0 -2
- package/dist/cjs/slices/types.d.ts +0 -1
- package/dist/cjs/slices/types.js +0 -1
- package/dist/esm/app/hooks.d.ts +0 -2
- package/dist/esm/app/store.d.ts +0 -6
- package/dist/esm/app/store.js +1 -2
- package/dist/esm/services/api.d.ts +2 -7
- package/dist/esm/services/api.js +6 -19
- package/dist/esm/slices/allergens.d.ts +0 -2
- package/dist/esm/slices/customer/account.d.ts +3 -2
- package/dist/esm/slices/customer/account.js +14 -15
- package/dist/esm/slices/customer/index.d.ts +0 -2
- package/dist/esm/slices/customer/index.js +1 -4
- package/dist/esm/slices/guest.d.ts +1 -0
- package/dist/esm/slices/guest.js +1 -1
- package/dist/esm/slices/index.d.ts +0 -1
- package/dist/esm/slices/index.js +0 -1
- package/dist/esm/slices/order.d.ts +0 -6
- package/dist/esm/slices/tags.d.ts +0 -2
- package/dist/esm/slices/types.d.ts +0 -1
- package/dist/esm/slices/types.js +0 -1
- package/package.json +3 -3
- package/dist/.DS_Store +0 -0
- package/dist/cjs/slices/customer/levelup.d.ts +0 -81
- package/dist/cjs/slices/customer/levelup.js +0 -184
- package/dist/cjs/slices/levelup.d.ts +0 -25
- package/dist/cjs/slices/levelup.js +0 -55
- package/dist/esm/slices/customer/levelup.d.ts +0 -81
- package/dist/esm/slices/customer/levelup.js +0 -177
- package/dist/esm/slices/levelup.d.ts +0 -25
- package/dist/esm/slices/levelup.js +0 -50
package/dist/cjs/app/hooks.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<i
|
|
|
22
22
|
rewards: import("..").CustomerRewardsState;
|
|
23
23
|
qrcode: import("..").CustomerQRCodeState;
|
|
24
24
|
thanx: import("..").CustomerThanxState;
|
|
25
|
-
levelup: import("..").CustomerLevelUpState;
|
|
26
25
|
}>;
|
|
27
26
|
signUp: import("..").SignUpState;
|
|
28
27
|
revenueCenters: import("..").RevenueCentersState;
|
|
@@ -43,7 +42,6 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<i
|
|
|
43
42
|
menuDisplay: import("..").MenuDisplayState;
|
|
44
43
|
giftCards: import("..").GiftCardsState;
|
|
45
44
|
groupOrder: import("..").GroupOrderState;
|
|
46
|
-
levelup: import("..").LevelupState;
|
|
47
45
|
config: import("..").ConfigState;
|
|
48
46
|
geolocation: import("..").GeoLocationState;
|
|
49
47
|
loader: import("..").LoaderState;
|
package/dist/cjs/app/store.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ export declare const appReducer: import("redux").Reducer<import("redux").Combine
|
|
|
21
21
|
rewards: import("../slices").CustomerRewardsState;
|
|
22
22
|
qrcode: import("../slices").CustomerQRCodeState;
|
|
23
23
|
thanx: import("../slices").CustomerThanxState;
|
|
24
|
-
levelup: import("../slices").CustomerLevelUpState;
|
|
25
24
|
}>;
|
|
26
25
|
signUp: import("../slices").SignUpState;
|
|
27
26
|
revenueCenters: import("../slices").RevenueCentersState;
|
|
@@ -42,7 +41,6 @@ export declare const appReducer: import("redux").Reducer<import("redux").Combine
|
|
|
42
41
|
menuDisplay: import("../slices").MenuDisplayState;
|
|
43
42
|
giftCards: import("../slices").GiftCardsState;
|
|
44
43
|
groupOrder: import("../slices").GroupOrderState;
|
|
45
|
-
levelup: import("../slices").LevelupState;
|
|
46
44
|
config: import("../slices").ConfigState;
|
|
47
45
|
geolocation: import("../slices").GeoLocationState;
|
|
48
46
|
loader: import("../slices").LoaderState;
|
|
@@ -79,7 +77,6 @@ declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore
|
|
|
79
77
|
rewards: import("../slices").CustomerRewardsState;
|
|
80
78
|
qrcode: import("../slices").CustomerQRCodeState;
|
|
81
79
|
thanx: import("../slices").CustomerThanxState;
|
|
82
|
-
levelup: import("../slices").CustomerLevelUpState;
|
|
83
80
|
}>;
|
|
84
81
|
signUp: import("../slices").SignUpState;
|
|
85
82
|
revenueCenters: import("../slices").RevenueCentersState;
|
|
@@ -100,7 +97,6 @@ declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore
|
|
|
100
97
|
menuDisplay: import("../slices").MenuDisplayState;
|
|
101
98
|
giftCards: import("../slices").GiftCardsState;
|
|
102
99
|
groupOrder: import("../slices").GroupOrderState;
|
|
103
|
-
levelup: import("../slices").LevelupState;
|
|
104
100
|
config: import("../slices").ConfigState;
|
|
105
101
|
geolocation: import("../slices").GeoLocationState;
|
|
106
102
|
loader: import("../slices").LoaderState;
|
|
@@ -135,7 +131,6 @@ declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore
|
|
|
135
131
|
rewards: import("../slices").CustomerRewardsState;
|
|
136
132
|
qrcode: import("../slices").CustomerQRCodeState;
|
|
137
133
|
thanx: import("../slices").CustomerThanxState;
|
|
138
|
-
levelup: import("../slices").CustomerLevelUpState;
|
|
139
134
|
}>;
|
|
140
135
|
signUp: import("../slices").SignUpState;
|
|
141
136
|
revenueCenters: import("../slices").RevenueCentersState;
|
|
@@ -156,7 +151,6 @@ declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore
|
|
|
156
151
|
menuDisplay: import("../slices").MenuDisplayState;
|
|
157
152
|
giftCards: import("../slices").GiftCardsState;
|
|
158
153
|
groupOrder: import("../slices").GroupOrderState;
|
|
159
|
-
levelup: import("../slices").LevelupState;
|
|
160
154
|
config: import("../slices").ConfigState;
|
|
161
155
|
geolocation: import("../slices").GeoLocationState;
|
|
162
156
|
loader: import("../slices").LoaderState;
|
package/dist/cjs/app/store.js
CHANGED
|
@@ -29,7 +29,6 @@ exports.appReducer = (0, toolkit_1.combineReducers)({
|
|
|
29
29
|
[types_1.ReducerType.MenuDisplay]: slices_1.menuDisplayReducer,
|
|
30
30
|
[types_1.ReducerType.GiftCards]: slices_1.giftCardsReducer,
|
|
31
31
|
[types_1.ReducerType.GroupOrder]: slices_1.groupOrderReducer,
|
|
32
|
-
[types_1.ReducerType.Levelup]: slices_1.levelupReducer,
|
|
33
32
|
[types_1.ReducerType.Config]: slices_1.configReducer,
|
|
34
33
|
[types_1.ReducerType.Geolocation]: slices_1.geolocationReducer,
|
|
35
34
|
[types_1.ReducerType.Loader]: slices_1.loaderReducer,
|
|
@@ -11,7 +11,6 @@ declare class OpenTenderAPI {
|
|
|
11
11
|
getHttpResponse(code: string): Promise<unknown>;
|
|
12
12
|
postSettings(entityType: string): Promise<unknown>;
|
|
13
13
|
getConfig(): Promise<unknown>;
|
|
14
|
-
getLevelUpSettings(): Promise<unknown>;
|
|
15
14
|
postChipDNATender(orderId: number, data: any): Promise<unknown>;
|
|
16
15
|
postChipDNACancel(): Promise<unknown>;
|
|
17
16
|
postChipDNATmsUpdate(): Promise<unknown>;
|
|
@@ -103,9 +102,8 @@ declare class OpenTenderAPI {
|
|
|
103
102
|
getSubscriber(email: string): Promise<unknown>;
|
|
104
103
|
postSubscriber(email: string): Promise<unknown>;
|
|
105
104
|
postSignUp(data: CustomerCreate): Promise<Customer | null | undefined>;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
postThanxAuth(code: string, path: string): Promise<unknown>;
|
|
105
|
+
postThanxLogin(email: string, origin?: string): Promise<unknown>;
|
|
106
|
+
postThanxAuth(code: string, path: string, origin?: string): Promise<unknown>;
|
|
109
107
|
postLogin(email: string, password: string): Promise<unknown>;
|
|
110
108
|
postLogout(token: string): Promise<unknown>;
|
|
111
109
|
postSendPasswordResetEmail(email: string, link_url: string): Promise<unknown>;
|
|
@@ -152,11 +150,8 @@ declare class OpenTenderAPI {
|
|
|
152
150
|
getCustomerFcmToken(token: string): Promise<unknown>;
|
|
153
151
|
deleteCustomerFcmToken(token: string): Promise<unknown>;
|
|
154
152
|
getCustomerLoyalty(token: string): Promise<unknown>;
|
|
155
|
-
getCustomerLevelUp(token: string): Promise<unknown>;
|
|
156
153
|
getCustomerThanx(token: string): Promise<unknown>;
|
|
157
154
|
getThanxCardSignature(token: string, acct: string): Promise<unknown>;
|
|
158
|
-
postCustomerLevelUp(token: string, data: any): Promise<unknown>;
|
|
159
|
-
deleteCustomerLevelUp(token: string, levelupConnectId: number): Promise<unknown>;
|
|
160
155
|
getCustomerHouseAccounts(token: string): Promise<unknown>;
|
|
161
156
|
putCustomerOrderRating(token: string, orderId: number, data: any): Promise<unknown>;
|
|
162
157
|
}
|
package/dist/cjs/services/api.js
CHANGED
|
@@ -137,9 +137,6 @@ class OpenTenderAPI {
|
|
|
137
137
|
getConfig() {
|
|
138
138
|
return this.request(`/config`);
|
|
139
139
|
}
|
|
140
|
-
getLevelUpSettings() {
|
|
141
|
-
return this.request(`/levelup`);
|
|
142
|
-
}
|
|
143
140
|
postChipDNATender(orderId, data) {
|
|
144
141
|
return this.request(`/orders/${orderId}/tenders/chipdna`, 'POST', data);
|
|
145
142
|
}
|
|
@@ -501,15 +498,14 @@ class OpenTenderAPI {
|
|
|
501
498
|
postSignUp(data) {
|
|
502
499
|
return this.request(`/customer`, 'POST', data);
|
|
503
500
|
}
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
postThanxLogin(email) {
|
|
508
|
-
return this.request('/thanx-login', 'POST', { email });
|
|
501
|
+
postThanxLogin(email, origin) {
|
|
502
|
+
const data = origin ? { email, origin } : { email };
|
|
503
|
+
return this.request('/thanx-login', 'POST', data);
|
|
509
504
|
}
|
|
510
|
-
postThanxAuth(code, path) {
|
|
505
|
+
postThanxAuth(code, path, origin) {
|
|
511
506
|
const data = path ? { code, path } : { code };
|
|
512
|
-
|
|
507
|
+
const withOrigin = origin ? Object.assign(Object.assign({}, data), { origin }) : data;
|
|
508
|
+
return this.request('/thanx-auth', 'POST', withOrigin);
|
|
513
509
|
}
|
|
514
510
|
postLogin(email, password) {
|
|
515
511
|
const data = {
|
|
@@ -670,21 +666,12 @@ class OpenTenderAPI {
|
|
|
670
666
|
getCustomerLoyalty(token) {
|
|
671
667
|
return this.request(`/customer/loyalty`, 'GET', null, null, token);
|
|
672
668
|
}
|
|
673
|
-
getCustomerLevelUp(token) {
|
|
674
|
-
return this.request(`/customer/levelup`, 'GET', null, null, token);
|
|
675
|
-
}
|
|
676
669
|
getCustomerThanx(token) {
|
|
677
670
|
return this.request(`/customer/thanx`, 'GET', null, null, token);
|
|
678
671
|
}
|
|
679
672
|
getThanxCardSignature(token, acct) {
|
|
680
673
|
return this.request(`/customer/thanx-card-signature?acct=${acct}`, 'GET', null, null, token);
|
|
681
674
|
}
|
|
682
|
-
postCustomerLevelUp(token, data) {
|
|
683
|
-
return this.request(`/customer/levelup`, 'POST', data, null, token);
|
|
684
|
-
}
|
|
685
|
-
deleteCustomerLevelUp(token, levelupConnectId) {
|
|
686
|
-
return this.request(`/customer/levelup/${levelupConnectId}`, 'DELETE', null, null, token);
|
|
687
|
-
}
|
|
688
675
|
getCustomerHouseAccounts(token) {
|
|
689
676
|
return this.request(`/customer/house-accounts`, 'GET', null, null, token);
|
|
690
677
|
}
|
|
@@ -49,7 +49,6 @@ export declare const selectSelectedAllergenNames: ((state: import("redux").Empty
|
|
|
49
49
|
rewards: import("./customer").CustomerRewardsState;
|
|
50
50
|
qrcode: import("./customer").CustomerQRCodeState;
|
|
51
51
|
thanx: import("./customer").CustomerThanxState;
|
|
52
|
-
levelup: import("./customer").CustomerLevelUpState;
|
|
53
52
|
}>;
|
|
54
53
|
signUp: import("./signUp").SignUpState;
|
|
55
54
|
revenueCenters: import("./revenueCenters").RevenueCentersState;
|
|
@@ -70,7 +69,6 @@ export declare const selectSelectedAllergenNames: ((state: import("redux").Empty
|
|
|
70
69
|
menuDisplay: import("./menuDisplay").MenuDisplayState;
|
|
71
70
|
giftCards: import("./giftCards").GiftCardsState;
|
|
72
71
|
groupOrder: import("./groupOrder").GroupOrderState;
|
|
73
|
-
levelup: import("./levelup").LevelupState;
|
|
74
72
|
config: import("./config").ConfigState;
|
|
75
73
|
geolocation: import("./geolocation").GeoLocationState;
|
|
76
74
|
loader: import("./loader").LoaderState;
|
|
@@ -27,7 +27,7 @@ export declare const fetchCustomer: import("@reduxjs/toolkit").AsyncThunk<Custom
|
|
|
27
27
|
fulfilledMeta?: unknown;
|
|
28
28
|
rejectedMeta?: unknown;
|
|
29
29
|
}>;
|
|
30
|
-
export declare const loginCustomer: import("@reduxjs/toolkit").AsyncThunk<
|
|
30
|
+
export declare const loginCustomer: import("@reduxjs/toolkit").AsyncThunk<void, LoginData, {
|
|
31
31
|
state: AppState;
|
|
32
32
|
rejectValue: RequestError;
|
|
33
33
|
dispatch?: import("redux").Dispatch<AnyAction> | undefined;
|
|
@@ -82,6 +82,7 @@ export declare const sendCustomerVerificationEmail: import("@reduxjs/toolkit").A
|
|
|
82
82
|
}>;
|
|
83
83
|
export declare const loginCustomerThanx: import("@reduxjs/toolkit").AsyncThunk<null, {
|
|
84
84
|
email: string;
|
|
85
|
+
origin?: string | undefined;
|
|
85
86
|
}, {
|
|
86
87
|
state: AppState;
|
|
87
88
|
rejectValue: RequestError;
|
|
@@ -119,7 +120,7 @@ export declare const deleteCustomer: import("@reduxjs/toolkit").AsyncThunk<void,
|
|
|
119
120
|
fulfilledMeta?: unknown;
|
|
120
121
|
rejectedMeta?: unknown;
|
|
121
122
|
}>;
|
|
122
|
-
export declare const resetCustomer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"account/resetCustomer">, resetLoginError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"account/resetLoginError">,
|
|
123
|
+
export declare const resetCustomer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"account/resetCustomer">, resetLoginError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"account/resetLoginError">, setCustomerAuth: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "account/setCustomerAuth">;
|
|
123
124
|
export declare const selectToken: (state: AppState) => string | null;
|
|
124
125
|
export declare const selectCustomer: (state: AppState) => AccountState;
|
|
125
126
|
export declare const accountReducer: import("redux").Reducer<AccountState, AnyAction>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.accountReducer = exports.selectCustomer = exports.selectToken = exports.
|
|
4
|
+
exports.accountReducer = exports.selectCustomer = exports.selectToken = exports.setCustomerAuth = exports.resetLoginError = exports.resetCustomer = exports.deleteCustomer = exports.authCustomerThanx = exports.loginCustomerThanx = exports.sendCustomerVerificationEmail = exports.updateCustomer = exports.linkPosToken = exports.logoutCustomer = exports.loginCustomer = exports.fetchCustomer = exports.checkAuth = exports.AccountActionType = void 0;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
7
7
|
const types_1 = require("../types");
|
|
@@ -20,7 +20,6 @@ const orders_1 = require("./orders");
|
|
|
20
20
|
const rewards_1 = require("./rewards");
|
|
21
21
|
const communicationPreferences_1 = require("./communicationPreferences");
|
|
22
22
|
const giftCards_1 = require("./giftCards");
|
|
23
|
-
const levelup_1 = require("./levelup");
|
|
24
23
|
const order_2 = require("../order");
|
|
25
24
|
const checkout_1 = require("../checkout");
|
|
26
25
|
const groupOrder_1 = require("../groupOrder");
|
|
@@ -61,12 +60,11 @@ exports.fetchCustomer = (0, toolkit_1.createAsyncThunk)(AccountActionType.FetchC
|
|
|
61
60
|
if (!token)
|
|
62
61
|
throw new Error(types_2.MISSING_CUSTOMER);
|
|
63
62
|
const customer = yield api.getCustomer(token);
|
|
64
|
-
const { allergens, gift_cards, favorites
|
|
63
|
+
const { allergens, gift_cards, favorites } = customer;
|
|
65
64
|
dispatch((0, allergens_1.setCustomerAllergens)(allergens || []));
|
|
66
65
|
dispatch((0, allergens_2.setSelectedAllergens)(allergens || []));
|
|
67
66
|
dispatch((0, giftCards_1.setCustomerGiftCards)(gift_cards || []));
|
|
68
67
|
dispatch((0, favorites_1.setCustomerFavorites)(favorites || []));
|
|
69
|
-
dispatch((0, levelup_1.setCustomerLevelUp)(levelup || []));
|
|
70
68
|
const lookup = (0, utils_1.makeFavoritesLookup)(favorites);
|
|
71
69
|
dispatch((0, favorites_1.setCustomerFavoritesLookup)(lookup || {}));
|
|
72
70
|
const profile = (0, utils_1.makeCustomerProfile)(customer);
|
|
@@ -77,10 +75,13 @@ exports.fetchCustomer = (0, toolkit_1.createAsyncThunk)(AccountActionType.FetchC
|
|
|
77
75
|
return (0, exports.checkAuth)(error, dispatch, () => rejectWithValue(error));
|
|
78
76
|
}
|
|
79
77
|
}));
|
|
80
|
-
exports.loginCustomer = (0, toolkit_1.createAsyncThunk)(AccountActionType.LoginCustomer, ({ email, password }, { getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
78
|
+
exports.loginCustomer = (0, toolkit_1.createAsyncThunk)(AccountActionType.LoginCustomer, ({ email, password }, { dispatch, getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
81
79
|
try {
|
|
82
80
|
const api = getState().config.api;
|
|
83
|
-
|
|
81
|
+
const auth = yield api.postLogin(email, password);
|
|
82
|
+
dispatch((0, exports.setCustomerAuth)(auth));
|
|
83
|
+
dispatch((0, exports.fetchCustomer)());
|
|
84
|
+
return;
|
|
84
85
|
}
|
|
85
86
|
catch (err) {
|
|
86
87
|
return rejectWithValue(err);
|
|
@@ -103,7 +104,6 @@ exports.logoutCustomer = (0, toolkit_1.createAsyncThunk)(AccountActionType.Logou
|
|
|
103
104
|
dispatch((0, allergens_1.resetCustomerAllergens)());
|
|
104
105
|
dispatch((0, creditCards_1.resetCustomerCreditCards)());
|
|
105
106
|
dispatch((0, favorites_1.resetCustomerFavorites)());
|
|
106
|
-
dispatch((0, levelup_1.resetCustomerLevelUp)());
|
|
107
107
|
dispatch((0, giftCards_1.resetCustomerGiftCards)());
|
|
108
108
|
dispatch((0, houseAccounts_1.resetCustomerHouseAccounts)());
|
|
109
109
|
dispatch((0, loyalty_1.resetCustomerLoyalty)());
|
|
@@ -171,10 +171,10 @@ exports.sendCustomerVerificationEmail = (0, toolkit_1.createAsyncThunk)(AccountA
|
|
|
171
171
|
return rejectWithValue(err);
|
|
172
172
|
}
|
|
173
173
|
}));
|
|
174
|
-
exports.loginCustomerThanx = (0, toolkit_1.createAsyncThunk)(AccountActionType.LoginCustomer, ({ email }, { dispatch, getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
174
|
+
exports.loginCustomerThanx = (0, toolkit_1.createAsyncThunk)(AccountActionType.LoginCustomer, ({ email, origin }, { dispatch, getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
175
175
|
try {
|
|
176
176
|
const api = getState().config.api;
|
|
177
|
-
yield api.postThanxLogin(email);
|
|
177
|
+
yield api.postThanxLogin(email, origin);
|
|
178
178
|
dispatch((0, order_2.setAlert)({ type: 'close' }));
|
|
179
179
|
dispatch((0, order_2.addMessage)('Thanks! Please check your email on this device.'));
|
|
180
180
|
return null;
|
|
@@ -214,7 +214,6 @@ exports.deleteCustomer = (0, toolkit_1.createAsyncThunk)(AccountActionType.Delet
|
|
|
214
214
|
dispatch((0, allergens_1.resetCustomerAllergens)());
|
|
215
215
|
dispatch((0, creditCards_1.resetCustomerCreditCards)());
|
|
216
216
|
dispatch((0, favorites_1.resetCustomerFavorites)());
|
|
217
|
-
dispatch((0, levelup_1.resetCustomerLevelUp)());
|
|
218
217
|
dispatch((0, giftCards_1.resetCustomerGiftCards)());
|
|
219
218
|
dispatch((0, houseAccounts_1.resetCustomerHouseAccounts)());
|
|
220
219
|
dispatch((0, loyalty_1.resetCustomerLoyalty)());
|
|
@@ -243,16 +242,16 @@ const accountSlice = (0, toolkit_1.createSlice)({
|
|
|
243
242
|
state.loading = 'idle';
|
|
244
243
|
state.error = null;
|
|
245
244
|
},
|
|
246
|
-
|
|
245
|
+
setCustomerAuth: (state, action) => {
|
|
247
246
|
state.auth = action.payload;
|
|
248
|
-
state.loading = 'idle'
|
|
249
|
-
state.error = null
|
|
247
|
+
// state.loading = 'idle'
|
|
248
|
+
// state.error = null
|
|
250
249
|
}
|
|
251
250
|
},
|
|
252
251
|
extraReducers: builder => {
|
|
253
252
|
builder
|
|
254
|
-
.addCase(exports.loginCustomer.fulfilled,
|
|
255
|
-
state.auth = action.payload
|
|
253
|
+
.addCase(exports.loginCustomer.fulfilled, state => {
|
|
254
|
+
// state.auth = action.payload
|
|
256
255
|
state.loading = 'idle';
|
|
257
256
|
state.error = null;
|
|
258
257
|
})
|
|
@@ -317,7 +316,7 @@ const accountSlice = (0, toolkit_1.createSlice)({
|
|
|
317
316
|
.addCase(exports.deleteCustomer.rejected, () => initialState);
|
|
318
317
|
}
|
|
319
318
|
});
|
|
320
|
-
_a = accountSlice.actions, exports.resetCustomer = _a.resetCustomer, exports.resetLoginError = _a.resetLoginError, exports.
|
|
319
|
+
_a = accountSlice.actions, exports.resetCustomer = _a.resetCustomer, exports.resetLoginError = _a.resetLoginError, exports.setCustomerAuth = _a.setCustomerAuth;
|
|
321
320
|
const selectToken = (state) => state.customer.account.auth ? state.customer.account.auth.access_token : null;
|
|
322
321
|
exports.selectToken = selectToken;
|
|
323
322
|
const selectCustomer = (state) => state.customer.account;
|
|
@@ -15,7 +15,6 @@ export declare const customerReducer: import("redux").Reducer<import("redux").Co
|
|
|
15
15
|
rewards: import("./rewards").CustomerRewardsState;
|
|
16
16
|
qrcode: import("./qrCode").CustomerQRCodeState;
|
|
17
17
|
thanx: import("./thanx").CustomerThanxState;
|
|
18
|
-
levelup: import("./levelup").CustomerLevelUpState;
|
|
19
18
|
}>, import("redux").AnyAction>;
|
|
20
19
|
export * from './account';
|
|
21
20
|
export * from './allergens';
|
|
@@ -33,4 +32,3 @@ export * from './thanx';
|
|
|
33
32
|
export * from './order';
|
|
34
33
|
export * from './houseAccounts';
|
|
35
34
|
export * from './qrCode';
|
|
36
|
-
export * from './levelup';
|
|
@@ -14,7 +14,6 @@ const fcmToken_1 = require("./fcmToken");
|
|
|
14
14
|
const giftCards_1 = require("./giftCards");
|
|
15
15
|
const groupOrders_1 = require("./groupOrders");
|
|
16
16
|
const houseAccounts_1 = require("./houseAccounts");
|
|
17
|
-
const levelup_1 = require("./levelup");
|
|
18
17
|
const loyalty_1 = require("./loyalty");
|
|
19
18
|
const order_1 = require("./order");
|
|
20
19
|
const orders_1 = require("./orders");
|
|
@@ -37,8 +36,7 @@ exports.customerReducer = (0, redux_1.combineReducers)({
|
|
|
37
36
|
[types_1.ReducerType.HouseAccounts]: houseAccounts_1.customerHouseAccountsReducer,
|
|
38
37
|
[types_1.ReducerType.Rewards]: rewards_1.customerRewardsReducer,
|
|
39
38
|
[types_1.ReducerType.QRCode]: qrCode_1.customerQRCodeReducer,
|
|
40
|
-
[types_1.ReducerType.Thanx]: thanx_1.customerThanxReducer
|
|
41
|
-
[types_1.ReducerType.Levelup]: levelup_1.customerLevelUpReducer
|
|
39
|
+
[types_1.ReducerType.Thanx]: thanx_1.customerThanxReducer
|
|
42
40
|
});
|
|
43
41
|
tslib_1.__exportStar(require("./account"), exports);
|
|
44
42
|
tslib_1.__exportStar(require("./allergens"), exports);
|
|
@@ -56,4 +54,3 @@ tslib_1.__exportStar(require("./thanx"), exports);
|
|
|
56
54
|
tslib_1.__exportStar(require("./order"), exports);
|
|
57
55
|
tslib_1.__exportStar(require("./houseAccounts"), exports);
|
|
58
56
|
tslib_1.__exportStar(require("./qrCode"), exports);
|
|
59
|
-
tslib_1.__exportStar(require("./levelup"), exports);
|
package/dist/cjs/slices/guest.js
CHANGED
package/dist/cjs/slices/index.js
CHANGED
|
@@ -15,7 +15,6 @@ tslib_1.__exportStar(require("./geolocation"), exports);
|
|
|
15
15
|
tslib_1.__exportStar(require("./giftCards"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./groupOrder"), exports);
|
|
17
17
|
tslib_1.__exportStar(require("./guest"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./levelup"), exports);
|
|
19
18
|
tslib_1.__exportStar(require("./loader"), exports);
|
|
20
19
|
tslib_1.__exportStar(require("./menu"), exports);
|
|
21
20
|
tslib_1.__exportStar(require("./menuDisplay"), exports);
|
|
@@ -140,7 +140,6 @@ export declare const selectOrderLimits: ((state: import("redux").EmptyObject & {
|
|
|
140
140
|
rewards: import("./customer").CustomerRewardsState;
|
|
141
141
|
qrcode: import("./customer").CustomerQRCodeState;
|
|
142
142
|
thanx: import("./customer").CustomerThanxState;
|
|
143
|
-
levelup: import("./customer").CustomerLevelUpState;
|
|
144
143
|
}>;
|
|
145
144
|
signUp: import("./signUp").SignUpState;
|
|
146
145
|
revenueCenters: import("./revenueCenters").RevenueCentersState;
|
|
@@ -161,7 +160,6 @@ export declare const selectOrderLimits: ((state: import("redux").EmptyObject & {
|
|
|
161
160
|
menuDisplay: import("./menuDisplay").MenuDisplayState;
|
|
162
161
|
giftCards: import("./giftCards").GiftCardsState;
|
|
163
162
|
groupOrder: import("./groupOrder").GroupOrderState;
|
|
164
|
-
levelup: import("./levelup").LevelupState;
|
|
165
163
|
config: import("./config").ConfigState;
|
|
166
164
|
geolocation: import("./geolocation").GeoLocationState;
|
|
167
165
|
loader: import("./loader").LoaderState;
|
|
@@ -212,7 +210,6 @@ export declare const selectCartIds: ((state: import("redux").EmptyObject & {
|
|
|
212
210
|
rewards: import("./customer").CustomerRewardsState;
|
|
213
211
|
qrcode: import("./customer").CustomerQRCodeState;
|
|
214
212
|
thanx: import("./customer").CustomerThanxState;
|
|
215
|
-
levelup: import("./customer").CustomerLevelUpState;
|
|
216
213
|
}>;
|
|
217
214
|
signUp: import("./signUp").SignUpState;
|
|
218
215
|
revenueCenters: import("./revenueCenters").RevenueCentersState;
|
|
@@ -233,7 +230,6 @@ export declare const selectCartIds: ((state: import("redux").EmptyObject & {
|
|
|
233
230
|
menuDisplay: import("./menuDisplay").MenuDisplayState;
|
|
234
231
|
giftCards: import("./giftCards").GiftCardsState;
|
|
235
232
|
groupOrder: import("./groupOrder").GroupOrderState;
|
|
236
|
-
levelup: import("./levelup").LevelupState;
|
|
237
233
|
config: import("./config").ConfigState;
|
|
238
234
|
geolocation: import("./geolocation").GeoLocationState;
|
|
239
235
|
loader: import("./loader").LoaderState;
|
|
@@ -279,7 +275,6 @@ export declare const selectMenuVars: ((state: import("redux").EmptyObject & {
|
|
|
279
275
|
rewards: import("./customer").CustomerRewardsState;
|
|
280
276
|
qrcode: import("./customer").CustomerQRCodeState;
|
|
281
277
|
thanx: import("./customer").CustomerThanxState;
|
|
282
|
-
levelup: import("./customer").CustomerLevelUpState;
|
|
283
278
|
}>;
|
|
284
279
|
signUp: import("./signUp").SignUpState;
|
|
285
280
|
revenueCenters: import("./revenueCenters").RevenueCentersState;
|
|
@@ -300,7 +295,6 @@ export declare const selectMenuVars: ((state: import("redux").EmptyObject & {
|
|
|
300
295
|
menuDisplay: import("./menuDisplay").MenuDisplayState;
|
|
301
296
|
giftCards: import("./giftCards").GiftCardsState;
|
|
302
297
|
groupOrder: import("./groupOrder").GroupOrderState;
|
|
303
|
-
levelup: import("./levelup").LevelupState;
|
|
304
298
|
config: import("./config").ConfigState;
|
|
305
299
|
geolocation: import("./geolocation").GeoLocationState;
|
|
306
300
|
loader: import("./loader").LoaderState;
|
|
@@ -49,7 +49,6 @@ export declare const selectSelectedTagNames: ((state: import("redux").EmptyObjec
|
|
|
49
49
|
rewards: import("./customer").CustomerRewardsState;
|
|
50
50
|
qrcode: import("./customer").CustomerQRCodeState;
|
|
51
51
|
thanx: import("./customer").CustomerThanxState;
|
|
52
|
-
levelup: import("./customer").CustomerLevelUpState;
|
|
53
52
|
}>;
|
|
54
53
|
signUp: import("./signUp").SignUpState;
|
|
55
54
|
revenueCenters: import("./revenueCenters").RevenueCentersState;
|
|
@@ -70,7 +69,6 @@ export declare const selectSelectedTagNames: ((state: import("redux").EmptyObjec
|
|
|
70
69
|
menuDisplay: import("./menuDisplay").MenuDisplayState;
|
|
71
70
|
giftCards: import("./giftCards").GiftCardsState;
|
|
72
71
|
groupOrder: import("./groupOrder").GroupOrderState;
|
|
73
|
-
levelup: import("./levelup").LevelupState;
|
|
74
72
|
config: import("./config").ConfigState;
|
|
75
73
|
geolocation: import("./geolocation").GeoLocationState;
|
|
76
74
|
loader: import("./loader").LoaderState;
|
package/dist/cjs/slices/types.js
CHANGED
|
@@ -26,7 +26,6 @@ var ReducerType;
|
|
|
26
26
|
ReducerType["GroupOrders"] = "groupOrders";
|
|
27
27
|
ReducerType["Guest"] = "guest";
|
|
28
28
|
ReducerType["HouseAccounts"] = "houseAccounts";
|
|
29
|
-
ReducerType["Levelup"] = "levelup";
|
|
30
29
|
ReducerType["Loader"] = "loader";
|
|
31
30
|
ReducerType["Loyalty"] = "loyalty";
|
|
32
31
|
ReducerType["Menu"] = "menu";
|
package/dist/esm/app/hooks.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<i
|
|
|
22
22
|
rewards: import("..").CustomerRewardsState;
|
|
23
23
|
qrcode: import("..").CustomerQRCodeState;
|
|
24
24
|
thanx: import("..").CustomerThanxState;
|
|
25
|
-
levelup: import("..").CustomerLevelUpState;
|
|
26
25
|
}>;
|
|
27
26
|
signUp: import("..").SignUpState;
|
|
28
27
|
revenueCenters: import("..").RevenueCentersState;
|
|
@@ -43,7 +42,6 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<i
|
|
|
43
42
|
menuDisplay: import("..").MenuDisplayState;
|
|
44
43
|
giftCards: import("..").GiftCardsState;
|
|
45
44
|
groupOrder: import("..").GroupOrderState;
|
|
46
|
-
levelup: import("..").LevelupState;
|
|
47
45
|
config: import("..").ConfigState;
|
|
48
46
|
geolocation: import("..").GeoLocationState;
|
|
49
47
|
loader: import("..").LoaderState;
|
package/dist/esm/app/store.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ export declare const appReducer: import("redux").Reducer<import("redux").Combine
|
|
|
21
21
|
rewards: import("../slices").CustomerRewardsState;
|
|
22
22
|
qrcode: import("../slices").CustomerQRCodeState;
|
|
23
23
|
thanx: import("../slices").CustomerThanxState;
|
|
24
|
-
levelup: import("../slices").CustomerLevelUpState;
|
|
25
24
|
}>;
|
|
26
25
|
signUp: import("../slices").SignUpState;
|
|
27
26
|
revenueCenters: import("../slices").RevenueCentersState;
|
|
@@ -42,7 +41,6 @@ export declare const appReducer: import("redux").Reducer<import("redux").Combine
|
|
|
42
41
|
menuDisplay: import("../slices").MenuDisplayState;
|
|
43
42
|
giftCards: import("../slices").GiftCardsState;
|
|
44
43
|
groupOrder: import("../slices").GroupOrderState;
|
|
45
|
-
levelup: import("../slices").LevelupState;
|
|
46
44
|
config: import("../slices").ConfigState;
|
|
47
45
|
geolocation: import("../slices").GeoLocationState;
|
|
48
46
|
loader: import("../slices").LoaderState;
|
|
@@ -79,7 +77,6 @@ declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore
|
|
|
79
77
|
rewards: import("../slices").CustomerRewardsState;
|
|
80
78
|
qrcode: import("../slices").CustomerQRCodeState;
|
|
81
79
|
thanx: import("../slices").CustomerThanxState;
|
|
82
|
-
levelup: import("../slices").CustomerLevelUpState;
|
|
83
80
|
}>;
|
|
84
81
|
signUp: import("../slices").SignUpState;
|
|
85
82
|
revenueCenters: import("../slices").RevenueCentersState;
|
|
@@ -100,7 +97,6 @@ declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore
|
|
|
100
97
|
menuDisplay: import("../slices").MenuDisplayState;
|
|
101
98
|
giftCards: import("../slices").GiftCardsState;
|
|
102
99
|
groupOrder: import("../slices").GroupOrderState;
|
|
103
|
-
levelup: import("../slices").LevelupState;
|
|
104
100
|
config: import("../slices").ConfigState;
|
|
105
101
|
geolocation: import("../slices").GeoLocationState;
|
|
106
102
|
loader: import("../slices").LoaderState;
|
|
@@ -135,7 +131,6 @@ declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore
|
|
|
135
131
|
rewards: import("../slices").CustomerRewardsState;
|
|
136
132
|
qrcode: import("../slices").CustomerQRCodeState;
|
|
137
133
|
thanx: import("../slices").CustomerThanxState;
|
|
138
|
-
levelup: import("../slices").CustomerLevelUpState;
|
|
139
134
|
}>;
|
|
140
135
|
signUp: import("../slices").SignUpState;
|
|
141
136
|
revenueCenters: import("../slices").RevenueCentersState;
|
|
@@ -156,7 +151,6 @@ declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore
|
|
|
156
151
|
menuDisplay: import("../slices").MenuDisplayState;
|
|
157
152
|
giftCards: import("../slices").GiftCardsState;
|
|
158
153
|
groupOrder: import("../slices").GroupOrderState;
|
|
159
|
-
levelup: import("../slices").LevelupState;
|
|
160
154
|
config: import("../slices").ConfigState;
|
|
161
155
|
geolocation: import("../slices").GeoLocationState;
|
|
162
156
|
loader: import("../slices").LoaderState;
|
package/dist/esm/app/store.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { combineReducers, configureStore } from '@reduxjs/toolkit';
|
|
2
|
-
import { alertsReducer, notificationsReducer, allergensReducer, announcementsReducer, customerReducer, signUpReducer, revenueCentersReducer, checkoutReducer, completedOrdersReducer, orderReducer, orderFulfillmentReducer, orderRatingReducer, dealsReducer, confirmationReducer, donationsReducer, guestReducer, verifyAccountReducer, menuReducer, resetPasswordReducer, validTimesReducer, menuItemsReducer, menuDisplayReducer, giftCardsReducer, groupOrderReducer,
|
|
2
|
+
import { alertsReducer, notificationsReducer, allergensReducer, announcementsReducer, customerReducer, signUpReducer, revenueCentersReducer, checkoutReducer, completedOrdersReducer, orderReducer, orderFulfillmentReducer, orderRatingReducer, dealsReducer, confirmationReducer, donationsReducer, guestReducer, verifyAccountReducer, menuReducer, resetPasswordReducer, validTimesReducer, menuItemsReducer, menuDisplayReducer, giftCardsReducer, groupOrderReducer, configReducer, geolocationReducer, loaderReducer, qrReducer, miscReducer, modalReducer, navSiteReducer, navReducer, postsReducer, sidebarModalReducer, sidebarReducer, tagsReducer } from '../slices';
|
|
3
3
|
import { ReducerType } from '../slices/types';
|
|
4
4
|
export const appReducer = combineReducers({
|
|
5
5
|
[ReducerType.Alerts]: alertsReducer,
|
|
@@ -26,7 +26,6 @@ export const appReducer = combineReducers({
|
|
|
26
26
|
[ReducerType.MenuDisplay]: menuDisplayReducer,
|
|
27
27
|
[ReducerType.GiftCards]: giftCardsReducer,
|
|
28
28
|
[ReducerType.GroupOrder]: groupOrderReducer,
|
|
29
|
-
[ReducerType.Levelup]: levelupReducer,
|
|
30
29
|
[ReducerType.Config]: configReducer,
|
|
31
30
|
[ReducerType.Geolocation]: geolocationReducer,
|
|
32
31
|
[ReducerType.Loader]: loaderReducer,
|
|
@@ -11,7 +11,6 @@ declare class OpenTenderAPI {
|
|
|
11
11
|
getHttpResponse(code: string): Promise<unknown>;
|
|
12
12
|
postSettings(entityType: string): Promise<unknown>;
|
|
13
13
|
getConfig(): Promise<unknown>;
|
|
14
|
-
getLevelUpSettings(): Promise<unknown>;
|
|
15
14
|
postChipDNATender(orderId: number, data: any): Promise<unknown>;
|
|
16
15
|
postChipDNACancel(): Promise<unknown>;
|
|
17
16
|
postChipDNATmsUpdate(): Promise<unknown>;
|
|
@@ -103,9 +102,8 @@ declare class OpenTenderAPI {
|
|
|
103
102
|
getSubscriber(email: string): Promise<unknown>;
|
|
104
103
|
postSubscriber(email: string): Promise<unknown>;
|
|
105
104
|
postSignUp(data: CustomerCreate): Promise<Customer | null | undefined>;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
postThanxAuth(code: string, path: string): Promise<unknown>;
|
|
105
|
+
postThanxLogin(email: string, origin?: string): Promise<unknown>;
|
|
106
|
+
postThanxAuth(code: string, path: string, origin?: string): Promise<unknown>;
|
|
109
107
|
postLogin(email: string, password: string): Promise<unknown>;
|
|
110
108
|
postLogout(token: string): Promise<unknown>;
|
|
111
109
|
postSendPasswordResetEmail(email: string, link_url: string): Promise<unknown>;
|
|
@@ -152,11 +150,8 @@ declare class OpenTenderAPI {
|
|
|
152
150
|
getCustomerFcmToken(token: string): Promise<unknown>;
|
|
153
151
|
deleteCustomerFcmToken(token: string): Promise<unknown>;
|
|
154
152
|
getCustomerLoyalty(token: string): Promise<unknown>;
|
|
155
|
-
getCustomerLevelUp(token: string): Promise<unknown>;
|
|
156
153
|
getCustomerThanx(token: string): Promise<unknown>;
|
|
157
154
|
getThanxCardSignature(token: string, acct: string): Promise<unknown>;
|
|
158
|
-
postCustomerLevelUp(token: string, data: any): Promise<unknown>;
|
|
159
|
-
deleteCustomerLevelUp(token: string, levelupConnectId: number): Promise<unknown>;
|
|
160
155
|
getCustomerHouseAccounts(token: string): Promise<unknown>;
|
|
161
156
|
putCustomerOrderRating(token: string, orderId: number, data: any): Promise<unknown>;
|
|
162
157
|
}
|
package/dist/esm/services/api.js
CHANGED
|
@@ -135,9 +135,6 @@ class OpenTenderAPI {
|
|
|
135
135
|
getConfig() {
|
|
136
136
|
return this.request(`/config`);
|
|
137
137
|
}
|
|
138
|
-
getLevelUpSettings() {
|
|
139
|
-
return this.request(`/levelup`);
|
|
140
|
-
}
|
|
141
138
|
postChipDNATender(orderId, data) {
|
|
142
139
|
return this.request(`/orders/${orderId}/tenders/chipdna`, 'POST', data);
|
|
143
140
|
}
|
|
@@ -499,15 +496,14 @@ class OpenTenderAPI {
|
|
|
499
496
|
postSignUp(data) {
|
|
500
497
|
return this.request(`/customer`, 'POST', data);
|
|
501
498
|
}
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
postThanxLogin(email) {
|
|
506
|
-
return this.request('/thanx-login', 'POST', { email });
|
|
499
|
+
postThanxLogin(email, origin) {
|
|
500
|
+
const data = origin ? { email, origin } : { email };
|
|
501
|
+
return this.request('/thanx-login', 'POST', data);
|
|
507
502
|
}
|
|
508
|
-
postThanxAuth(code, path) {
|
|
503
|
+
postThanxAuth(code, path, origin) {
|
|
509
504
|
const data = path ? { code, path } : { code };
|
|
510
|
-
|
|
505
|
+
const withOrigin = origin ? Object.assign(Object.assign({}, data), { origin }) : data;
|
|
506
|
+
return this.request('/thanx-auth', 'POST', withOrigin);
|
|
511
507
|
}
|
|
512
508
|
postLogin(email, password) {
|
|
513
509
|
const data = {
|
|
@@ -668,21 +664,12 @@ class OpenTenderAPI {
|
|
|
668
664
|
getCustomerLoyalty(token) {
|
|
669
665
|
return this.request(`/customer/loyalty`, 'GET', null, null, token);
|
|
670
666
|
}
|
|
671
|
-
getCustomerLevelUp(token) {
|
|
672
|
-
return this.request(`/customer/levelup`, 'GET', null, null, token);
|
|
673
|
-
}
|
|
674
667
|
getCustomerThanx(token) {
|
|
675
668
|
return this.request(`/customer/thanx`, 'GET', null, null, token);
|
|
676
669
|
}
|
|
677
670
|
getThanxCardSignature(token, acct) {
|
|
678
671
|
return this.request(`/customer/thanx-card-signature?acct=${acct}`, 'GET', null, null, token);
|
|
679
672
|
}
|
|
680
|
-
postCustomerLevelUp(token, data) {
|
|
681
|
-
return this.request(`/customer/levelup`, 'POST', data, null, token);
|
|
682
|
-
}
|
|
683
|
-
deleteCustomerLevelUp(token, levelupConnectId) {
|
|
684
|
-
return this.request(`/customer/levelup/${levelupConnectId}`, 'DELETE', null, null, token);
|
|
685
|
-
}
|
|
686
673
|
getCustomerHouseAccounts(token) {
|
|
687
674
|
return this.request(`/customer/house-accounts`, 'GET', null, null, token);
|
|
688
675
|
}
|