@binance/simple-earn 3.0.0 → 5.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 +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3231,6 +3231,12 @@ interface GetFlexibleRedemptionRecordRequest {
|
|
|
3231
3231
|
* @memberof HistoryApiGetFlexibleRedemptionRecord
|
|
3232
3232
|
*/
|
|
3233
3233
|
readonly size?: number;
|
|
3234
|
+
/**
|
|
3235
|
+
*
|
|
3236
|
+
* @type {number}
|
|
3237
|
+
* @memberof HistoryApiGetFlexibleRedemptionRecord
|
|
3238
|
+
*/
|
|
3239
|
+
readonly recvWindow?: number;
|
|
3234
3240
|
}
|
|
3235
3241
|
/**
|
|
3236
3242
|
* Request parameters for getFlexibleRewardsHistory operation in HistoryApi.
|
package/dist/index.d.ts
CHANGED
|
@@ -3231,6 +3231,12 @@ interface GetFlexibleRedemptionRecordRequest {
|
|
|
3231
3231
|
* @memberof HistoryApiGetFlexibleRedemptionRecord
|
|
3232
3232
|
*/
|
|
3233
3233
|
readonly size?: number;
|
|
3234
|
+
/**
|
|
3235
|
+
*
|
|
3236
|
+
* @type {number}
|
|
3237
|
+
* @memberof HistoryApiGetFlexibleRedemptionRecord
|
|
3238
|
+
*/
|
|
3239
|
+
readonly recvWindow?: number;
|
|
3234
3240
|
}
|
|
3235
3241
|
/**
|
|
3236
3242
|
* Request parameters for getFlexibleRewardsHistory 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 = "5.0.0";
|
|
46
46
|
|
|
47
47
|
// src/rest-api/index.ts
|
|
48
48
|
var rest_api_exports = {};
|
|
@@ -412,7 +412,7 @@ var AccountApi = class {
|
|
|
412
412
|
localVarAxiosArgs.method,
|
|
413
413
|
localVarAxiosArgs.params,
|
|
414
414
|
localVarAxiosArgs?.timeUnit,
|
|
415
|
-
{ isSigned:
|
|
415
|
+
{ isSigned: true }
|
|
416
416
|
);
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
@@ -1182,10 +1182,11 @@ var HistoryApiAxiosParamCreator = function(configuration) {
|
|
|
1182
1182
|
* @param {number} [endTime]
|
|
1183
1183
|
* @param {number} [current] Currently querying the page. Start from 1. Default:1
|
|
1184
1184
|
* @param {number} [size] Default:10, Max:100
|
|
1185
|
+
* @param {number} [recvWindow]
|
|
1185
1186
|
*
|
|
1186
1187
|
* @throws {RequiredError}
|
|
1187
1188
|
*/
|
|
1188
|
-
getFlexibleRedemptionRecord: async (productId, redeemId, asset, startTime, endTime, current, size) => {
|
|
1189
|
+
getFlexibleRedemptionRecord: async (productId, redeemId, asset, startTime, endTime, current, size, recvWindow) => {
|
|
1189
1190
|
const localVarQueryParameter = {};
|
|
1190
1191
|
if (productId !== void 0 && productId !== null) {
|
|
1191
1192
|
localVarQueryParameter["productId"] = productId;
|
|
@@ -1208,6 +1209,9 @@ var HistoryApiAxiosParamCreator = function(configuration) {
|
|
|
1208
1209
|
if (size !== void 0 && size !== null) {
|
|
1209
1210
|
localVarQueryParameter["size"] = size;
|
|
1210
1211
|
}
|
|
1212
|
+
if (recvWindow !== void 0 && recvWindow !== null) {
|
|
1213
|
+
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1214
|
+
}
|
|
1211
1215
|
let _timeUnit;
|
|
1212
1216
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1213
1217
|
return {
|
|
@@ -1616,7 +1620,8 @@ var HistoryApi = class {
|
|
|
1616
1620
|
requestParameters?.startTime,
|
|
1617
1621
|
requestParameters?.endTime,
|
|
1618
1622
|
requestParameters?.current,
|
|
1619
|
-
requestParameters?.size
|
|
1623
|
+
requestParameters?.size,
|
|
1624
|
+
requestParameters?.recvWindow
|
|
1620
1625
|
);
|
|
1621
1626
|
return (0, import_common3.sendRequest)(
|
|
1622
1627
|
this.configuration,
|