@open-tender/cloud 0.4.17 → 0.4.19
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/services/api.js +1 -1
- package/dist/cjs/slices/customer/pointsShop.d.ts +2 -2
- package/dist/cjs/slices/customer/pointsShop.js +2 -2
- package/dist/esm/services/api.js +1 -1
- package/dist/esm/slices/customer/pointsShop.d.ts +2 -2
- package/dist/esm/slices/customer/pointsShop.js +2 -2
- package/package.json +1 -1
package/dist/cjs/services/api.js
CHANGED
|
@@ -563,7 +563,7 @@ class OpenTenderAPI {
|
|
|
563
563
|
return this.request(`/customer/rewards?with_related=true`, 'GET', null, null, token);
|
|
564
564
|
}
|
|
565
565
|
getPointsShop(token) {
|
|
566
|
-
return this.request(`/points-shop`, 'GET', null, null, token);
|
|
566
|
+
return this.request(`/points-shop?with_related=true`, 'GET', null, null, token);
|
|
567
567
|
}
|
|
568
568
|
postPointsShopReward(token, rewardId) {
|
|
569
569
|
return this.request(`/points-shop/${rewardId}/exchange`, 'POST', null, null, token);
|
|
@@ -7,8 +7,8 @@ export interface PointsShopState {
|
|
|
7
7
|
loading: RequestStatus;
|
|
8
8
|
}
|
|
9
9
|
export declare enum PointsShopActionType {
|
|
10
|
-
FetchPointsShop = "
|
|
11
|
-
ExchangePointsShopReward = "
|
|
10
|
+
FetchPointsShop = "pointsShop/fetchPointsShop",
|
|
11
|
+
ExchangePointsShopReward = "pointsShop/exchangePointsShopReward"
|
|
12
12
|
}
|
|
13
13
|
export declare const fetchPointsShop: import("@reduxjs/toolkit").AsyncThunk<Discounts, void, {
|
|
14
14
|
state: AppState;
|
|
@@ -14,8 +14,8 @@ const initialState = {
|
|
|
14
14
|
};
|
|
15
15
|
var PointsShopActionType;
|
|
16
16
|
(function (PointsShopActionType) {
|
|
17
|
-
PointsShopActionType["FetchPointsShop"] = "
|
|
18
|
-
PointsShopActionType["ExchangePointsShopReward"] = "
|
|
17
|
+
PointsShopActionType["FetchPointsShop"] = "pointsShop/fetchPointsShop";
|
|
18
|
+
PointsShopActionType["ExchangePointsShopReward"] = "pointsShop/exchangePointsShopReward";
|
|
19
19
|
})(PointsShopActionType = exports.PointsShopActionType || (exports.PointsShopActionType = {}));
|
|
20
20
|
exports.fetchPointsShop = (0, toolkit_1.createAsyncThunk)(PointsShopActionType.FetchPointsShop, (_, { getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
21
21
|
try {
|
package/dist/esm/services/api.js
CHANGED
|
@@ -561,7 +561,7 @@ class OpenTenderAPI {
|
|
|
561
561
|
return this.request(`/customer/rewards?with_related=true`, 'GET', null, null, token);
|
|
562
562
|
}
|
|
563
563
|
getPointsShop(token) {
|
|
564
|
-
return this.request(`/points-shop`, 'GET', null, null, token);
|
|
564
|
+
return this.request(`/points-shop?with_related=true`, 'GET', null, null, token);
|
|
565
565
|
}
|
|
566
566
|
postPointsShopReward(token, rewardId) {
|
|
567
567
|
return this.request(`/points-shop/${rewardId}/exchange`, 'POST', null, null, token);
|
|
@@ -7,8 +7,8 @@ export interface PointsShopState {
|
|
|
7
7
|
loading: RequestStatus;
|
|
8
8
|
}
|
|
9
9
|
export declare enum PointsShopActionType {
|
|
10
|
-
FetchPointsShop = "
|
|
11
|
-
ExchangePointsShopReward = "
|
|
10
|
+
FetchPointsShop = "pointsShop/fetchPointsShop",
|
|
11
|
+
ExchangePointsShopReward = "pointsShop/exchangePointsShopReward"
|
|
12
12
|
}
|
|
13
13
|
export declare const fetchPointsShop: import("@reduxjs/toolkit").AsyncThunk<Discounts, void, {
|
|
14
14
|
state: AppState;
|
|
@@ -11,8 +11,8 @@ const initialState = {
|
|
|
11
11
|
};
|
|
12
12
|
export var PointsShopActionType;
|
|
13
13
|
(function (PointsShopActionType) {
|
|
14
|
-
PointsShopActionType["FetchPointsShop"] = "
|
|
15
|
-
PointsShopActionType["ExchangePointsShopReward"] = "
|
|
14
|
+
PointsShopActionType["FetchPointsShop"] = "pointsShop/fetchPointsShop";
|
|
15
|
+
PointsShopActionType["ExchangePointsShopReward"] = "pointsShop/exchangePointsShopReward";
|
|
16
16
|
})(PointsShopActionType || (PointsShopActionType = {}));
|
|
17
17
|
export const fetchPointsShop = createAsyncThunk(PointsShopActionType.FetchPointsShop, (_, { getState, rejectWithValue }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
18
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/cloud",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.19",
|
|
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",
|