@open-tender/cloud 0.0.135 → 0.0.137
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.
|
@@ -70,6 +70,8 @@ export declare const selectAccountConfig: (state: AppState) => {
|
|
|
70
70
|
subtitle: string;
|
|
71
71
|
thanx: import("@open-tender/types").ConfigContentField;
|
|
72
72
|
title: string;
|
|
73
|
+
videoUrl: string;
|
|
74
|
+
videoUrlMobile: string;
|
|
73
75
|
} | undefined;
|
|
74
76
|
export declare const selectDisplaySettings: (state: AppState) => import("@open-tender/types").ConfigDisplaySetting | undefined;
|
|
75
77
|
export declare const selectConfigRetries: (state: AppState) => number;
|
|
@@ -36,7 +36,7 @@ var GroupOrderActionType;
|
|
|
36
36
|
GroupOrderActionType["AddCustomerGroupOrder"] = "customer/addCustomerGroupOrder";
|
|
37
37
|
})(GroupOrderActionType = exports.GroupOrderActionType || (exports.GroupOrderActionType = {}));
|
|
38
38
|
const makeCartPayload = (response, cartGuestId) => {
|
|
39
|
-
const { customer = null, closed, cart_id: cartId, token, cart, revenue_center_id: revenueCenterId, service_type: serviceType, requested_at: requestedAt, cutoff_at: cutoffAt, spending_limit: spendingLimit, guest_limit: guestLimit, guest_count: guestCount, cart_guests: cartGuests } = response;
|
|
39
|
+
const { customer = null, closed, cart_id: cartId, token, cart, revenue_center_id: revenueCenterId, service_type: serviceType, requested_at: requestedAt, cutoff_at: cutoffAt, spending_limit: spendingLimit, guest_limit: guestLimit, guest_count: guestCount, cart_guests: cartGuests, } = response;
|
|
40
40
|
const filteredCart = cartGuestId
|
|
41
41
|
? cart.filter(i => i.cart_guest_id === cartGuestId)
|
|
42
42
|
: cart;
|
|
@@ -53,7 +53,7 @@ const makeCartPayload = (response, cartGuestId) => {
|
|
|
53
53
|
closed,
|
|
54
54
|
cartOwner: customer,
|
|
55
55
|
cart: filteredCart,
|
|
56
|
-
cartGuests: cartGuests || []
|
|
56
|
+
cartGuests: cartGuests || [],
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
exports.makeCartPayload = makeCartPayload;
|
|
@@ -70,6 +70,8 @@ export declare const selectAccountConfig: (state: AppState) => {
|
|
|
70
70
|
subtitle: string;
|
|
71
71
|
thanx: import("@open-tender/types").ConfigContentField;
|
|
72
72
|
title: string;
|
|
73
|
+
videoUrl: string;
|
|
74
|
+
videoUrlMobile: string;
|
|
73
75
|
} | undefined;
|
|
74
76
|
export declare const selectDisplaySettings: (state: AppState) => import("@open-tender/types").ConfigDisplaySetting | undefined;
|
|
75
77
|
export declare const selectConfigRetries: (state: AppState) => number;
|
|
@@ -36,7 +36,7 @@ export var GroupOrderActionType;
|
|
|
36
36
|
GroupOrderActionType["AddCustomerGroupOrder"] = "customer/addCustomerGroupOrder";
|
|
37
37
|
})(GroupOrderActionType || (GroupOrderActionType = {}));
|
|
38
38
|
export const makeCartPayload = (response, cartGuestId) => {
|
|
39
|
-
const { customer = null, closed, cart_id: cartId, token, cart, revenue_center_id: revenueCenterId, service_type: serviceType, requested_at: requestedAt, cutoff_at: cutoffAt, spending_limit: spendingLimit, guest_limit: guestLimit, guest_count: guestCount, cart_guests: cartGuests } = response;
|
|
39
|
+
const { customer = null, closed, cart_id: cartId, token, cart, revenue_center_id: revenueCenterId, service_type: serviceType, requested_at: requestedAt, cutoff_at: cutoffAt, spending_limit: spendingLimit, guest_limit: guestLimit, guest_count: guestCount, cart_guests: cartGuests, } = response;
|
|
40
40
|
const filteredCart = cartGuestId
|
|
41
41
|
? cart.filter(i => i.cart_guest_id === cartGuestId)
|
|
42
42
|
: cart;
|
|
@@ -53,7 +53,7 @@ export const makeCartPayload = (response, cartGuestId) => {
|
|
|
53
53
|
closed,
|
|
54
54
|
cartOwner: customer,
|
|
55
55
|
cart: filteredCart,
|
|
56
|
-
cartGuests: cartGuests || []
|
|
56
|
+
cartGuests: cartGuests || [],
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
export const joinGroupOrder = createAsyncThunk(GroupOrderActionType.JoinGroupOrder, (requestData, { dispatch, getState, rejectWithValue }) => __awaiter(void 0, void 0, void 0, function* () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/cloud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.137",
|
|
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",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"react": "^18.2.0"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@open-tender/types": "^0.0.
|
|
59
|
-
"@open-tender/utils": "^0.0.
|
|
58
|
+
"@open-tender/types": "^0.0.133",
|
|
59
|
+
"@open-tender/utils": "^0.0.65"
|
|
60
60
|
}
|
|
61
61
|
}
|