@binance/simple-earn 2.0.0 → 3.0.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.
- package/dist/index.d.mts +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3267,6 +3267,24 @@ interface GetFlexibleRewardsHistoryRequest {
|
|
|
3267
3267
|
* @memberof HistoryApiGetFlexibleRewardsHistory
|
|
3268
3268
|
*/
|
|
3269
3269
|
readonly endTime?: number;
|
|
3270
|
+
/**
|
|
3271
|
+
* Currently querying the page. Start from 1. Default:1
|
|
3272
|
+
* @type {number}
|
|
3273
|
+
* @memberof HistoryApiGetFlexibleRewardsHistory
|
|
3274
|
+
*/
|
|
3275
|
+
readonly current?: number;
|
|
3276
|
+
/**
|
|
3277
|
+
* Default:10, Max:100
|
|
3278
|
+
* @type {number}
|
|
3279
|
+
* @memberof HistoryApiGetFlexibleRewardsHistory
|
|
3280
|
+
*/
|
|
3281
|
+
readonly size?: number;
|
|
3282
|
+
/**
|
|
3283
|
+
*
|
|
3284
|
+
* @type {number}
|
|
3285
|
+
* @memberof HistoryApiGetFlexibleRewardsHistory
|
|
3286
|
+
*/
|
|
3287
|
+
readonly recvWindow?: number;
|
|
3270
3288
|
}
|
|
3271
3289
|
/**
|
|
3272
3290
|
* Request parameters for getFlexibleSubscriptionRecord operation in HistoryApi.
|
package/dist/index.d.ts
CHANGED
|
@@ -3267,6 +3267,24 @@ interface GetFlexibleRewardsHistoryRequest {
|
|
|
3267
3267
|
* @memberof HistoryApiGetFlexibleRewardsHistory
|
|
3268
3268
|
*/
|
|
3269
3269
|
readonly endTime?: number;
|
|
3270
|
+
/**
|
|
3271
|
+
* Currently querying the page. Start from 1. Default:1
|
|
3272
|
+
* @type {number}
|
|
3273
|
+
* @memberof HistoryApiGetFlexibleRewardsHistory
|
|
3274
|
+
*/
|
|
3275
|
+
readonly current?: number;
|
|
3276
|
+
/**
|
|
3277
|
+
* Default:10, Max:100
|
|
3278
|
+
* @type {number}
|
|
3279
|
+
* @memberof HistoryApiGetFlexibleRewardsHistory
|
|
3280
|
+
*/
|
|
3281
|
+
readonly size?: number;
|
|
3282
|
+
/**
|
|
3283
|
+
*
|
|
3284
|
+
* @type {number}
|
|
3285
|
+
* @memberof HistoryApiGetFlexibleRewardsHistory
|
|
3286
|
+
*/
|
|
3287
|
+
readonly recvWindow?: number;
|
|
3270
3288
|
}
|
|
3271
3289
|
/**
|
|
3272
3290
|
* Request parameters for getFlexibleSubscriptionRecord operation in HistoryApi.
|
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ var import_common5 = require("@binance/common");
|
|
|
42
42
|
|
|
43
43
|
// package.json
|
|
44
44
|
var name = "@binance/simple-earn";
|
|
45
|
-
var version = "
|
|
45
|
+
var version = "3.0.0";
|
|
46
46
|
|
|
47
47
|
// src/rest-api/index.ts
|
|
48
48
|
var rest_api_exports = {};
|
|
@@ -1233,10 +1233,13 @@ var HistoryApiAxiosParamCreator = function(configuration) {
|
|
|
1233
1233
|
* @param {string} [asset]
|
|
1234
1234
|
* @param {number} [startTime]
|
|
1235
1235
|
* @param {number} [endTime]
|
|
1236
|
+
* @param {number} [current] Currently querying the page. Start from 1. Default:1
|
|
1237
|
+
* @param {number} [size] Default:10, Max:100
|
|
1238
|
+
* @param {number} [recvWindow]
|
|
1236
1239
|
*
|
|
1237
1240
|
* @throws {RequiredError}
|
|
1238
1241
|
*/
|
|
1239
|
-
getFlexibleRewardsHistory: async (type, productId, asset, startTime, endTime) => {
|
|
1242
|
+
getFlexibleRewardsHistory: async (type, productId, asset, startTime, endTime, current, size, recvWindow) => {
|
|
1240
1243
|
(0, import_common3.assertParamExists)("getFlexibleRewardsHistory", "type", type);
|
|
1241
1244
|
const localVarQueryParameter = {};
|
|
1242
1245
|
if (productId !== void 0 && productId !== null) {
|
|
@@ -1254,6 +1257,15 @@ var HistoryApiAxiosParamCreator = function(configuration) {
|
|
|
1254
1257
|
if (type !== void 0 && type !== null) {
|
|
1255
1258
|
localVarQueryParameter["type"] = type;
|
|
1256
1259
|
}
|
|
1260
|
+
if (current !== void 0 && current !== null) {
|
|
1261
|
+
localVarQueryParameter["current"] = current;
|
|
1262
|
+
}
|
|
1263
|
+
if (size !== void 0 && size !== null) {
|
|
1264
|
+
localVarQueryParameter["size"] = size;
|
|
1265
|
+
}
|
|
1266
|
+
if (recvWindow !== void 0 && recvWindow !== null) {
|
|
1267
|
+
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1268
|
+
}
|
|
1257
1269
|
let _timeUnit;
|
|
1258
1270
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1259
1271
|
return {
|
|
@@ -1638,7 +1650,10 @@ var HistoryApi = class {
|
|
|
1638
1650
|
requestParameters?.productId,
|
|
1639
1651
|
requestParameters?.asset,
|
|
1640
1652
|
requestParameters?.startTime,
|
|
1641
|
-
requestParameters?.endTime
|
|
1653
|
+
requestParameters?.endTime,
|
|
1654
|
+
requestParameters?.current,
|
|
1655
|
+
requestParameters?.size,
|
|
1656
|
+
requestParameters?.recvWindow
|
|
1642
1657
|
);
|
|
1643
1658
|
return (0, import_common3.sendRequest)(
|
|
1644
1659
|
this.configuration,
|