@kiminix/tp-client 2.3.0 → 2.4.0
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cashback } from "./types/resp-get-cashback";
|
|
1
|
+
import { Cashback, CashbackSettings } from "./types/resp-get-cashback";
|
|
2
2
|
export declare class CashbackUserAPIs {
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
@@ -9,4 +9,11 @@ export declare class CashbackUserAPIs {
|
|
|
9
9
|
static get(props: {
|
|
10
10
|
token: string | undefined;
|
|
11
11
|
}): Promise<Cashback>;
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @param props
|
|
15
|
+
* @throws unauthorized, internal_error
|
|
16
|
+
* @returns default cashback settings
|
|
17
|
+
*/
|
|
18
|
+
static getSettings(): Promise<CashbackSettings>;
|
|
12
19
|
}
|
|
@@ -60,6 +60,22 @@ var CashbackUserAPIs = /** @class */ (function () {
|
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @param props
|
|
66
|
+
* @throws unauthorized, internal_error
|
|
67
|
+
* @returns default cashback settings
|
|
68
|
+
*/
|
|
69
|
+
CashbackUserAPIs.getSettings = function () {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
71
|
+
return __generator(this, function (_a) {
|
|
72
|
+
return [2 /*return*/, RequestUtils.send(function () {
|
|
73
|
+
return axios.get(base + "/cashback/settings")
|
|
74
|
+
.then(function (response) { return response.data; });
|
|
75
|
+
})];
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
};
|
|
63
79
|
return CashbackUserAPIs;
|
|
64
80
|
}());
|
|
65
81
|
export { CashbackUserAPIs };
|