@bluefin-exchange/pro-sdk 0.1.48 → 0.1.50
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/src/api.d.ts +20 -16
- package/dist/src/api.js +14 -7
- package/package.json +1 -1
- package/src/api.ts +27 -19
- package/src/docs/RewardsApi.md +5 -1
- package/src/docs/TradeApi.md +1 -0
package/dist/src/api.d.ts
CHANGED
|
@@ -4412,73 +4412,73 @@ export interface UserCampaignRewards {
|
|
|
4412
4412
|
* @type {string}
|
|
4413
4413
|
* @memberof UserCampaignRewards
|
|
4414
4414
|
*/
|
|
4415
|
-
'
|
|
4415
|
+
'userAddress': string;
|
|
4416
4416
|
/**
|
|
4417
4417
|
* Name of the campaign.
|
|
4418
4418
|
* @type {string}
|
|
4419
4419
|
* @memberof UserCampaignRewards
|
|
4420
4420
|
*/
|
|
4421
|
-
'
|
|
4421
|
+
'campaignName': string;
|
|
4422
4422
|
/**
|
|
4423
4423
|
* Epoch number for the rewards earned data.
|
|
4424
4424
|
* @type {number}
|
|
4425
4425
|
* @memberof UserCampaignRewards
|
|
4426
4426
|
*/
|
|
4427
|
-
'
|
|
4427
|
+
'epochNumber': number;
|
|
4428
4428
|
/**
|
|
4429
4429
|
* Interval number for the rewards earned data.
|
|
4430
4430
|
* @type {number}
|
|
4431
4431
|
* @memberof UserCampaignRewards
|
|
4432
4432
|
*/
|
|
4433
|
-
'
|
|
4433
|
+
'intervalNumber': number;
|
|
4434
4434
|
/**
|
|
4435
4435
|
* Market Symbol.
|
|
4436
4436
|
* @type {string}
|
|
4437
4437
|
* @memberof UserCampaignRewards
|
|
4438
4438
|
*/
|
|
4439
|
-
'
|
|
4439
|
+
'symbol': string;
|
|
4440
4440
|
/**
|
|
4441
4441
|
*
|
|
4442
4442
|
* @type {string}
|
|
4443
4443
|
* @memberof UserCampaignRewards
|
|
4444
4444
|
*/
|
|
4445
|
-
'
|
|
4445
|
+
'status': UserCampaignRewardsStatusEnum;
|
|
4446
4446
|
/**
|
|
4447
4447
|
* Total blue-perp token rewards earned in the epoch (e9 format).
|
|
4448
4448
|
* @type {string}
|
|
4449
4449
|
* @memberof UserCampaignRewards
|
|
4450
4450
|
*/
|
|
4451
|
-
'
|
|
4451
|
+
'blueRewardsE9': string;
|
|
4452
4452
|
/**
|
|
4453
4453
|
* Total sui-perp token rewards earned in the epoch (e9 format).
|
|
4454
4454
|
* @type {string}
|
|
4455
4455
|
* @memberof UserCampaignRewards
|
|
4456
4456
|
*/
|
|
4457
|
-
'
|
|
4457
|
+
'suiRewardsE9': string;
|
|
4458
4458
|
/**
|
|
4459
4459
|
* Total wal-perp rewards earned in the epoch (e9 format).
|
|
4460
4460
|
* @type {string}
|
|
4461
4461
|
* @memberof UserCampaignRewards
|
|
4462
4462
|
*/
|
|
4463
|
-
'
|
|
4463
|
+
'walRewardsE9': string;
|
|
4464
4464
|
/**
|
|
4465
4465
|
* Total cash rewards earned in the epoch (e9 format).
|
|
4466
4466
|
* @type {string}
|
|
4467
4467
|
* @memberof UserCampaignRewards
|
|
4468
4468
|
*/
|
|
4469
|
-
'
|
|
4469
|
+
'cashRewardsE9': string;
|
|
4470
4470
|
/**
|
|
4471
4471
|
* Time in milliseconds for interval start date.
|
|
4472
4472
|
* @type {number}
|
|
4473
4473
|
* @memberof UserCampaignRewards
|
|
4474
4474
|
*/
|
|
4475
|
-
'
|
|
4475
|
+
'intervalStartDate': number;
|
|
4476
4476
|
/**
|
|
4477
4477
|
* Time in milliseconds for interval end date.
|
|
4478
4478
|
* @type {number}
|
|
4479
4479
|
* @memberof UserCampaignRewards
|
|
4480
4480
|
*/
|
|
4481
|
-
'
|
|
4481
|
+
'intervalEndDate': number;
|
|
4482
4482
|
}
|
|
4483
4483
|
export declare const UserCampaignRewardsStatusEnum: {
|
|
4484
4484
|
readonly Active: "ACTIVE";
|
|
@@ -5352,10 +5352,11 @@ export declare const RewardsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5352
5352
|
* @param {GetAffiliateOverviewSortByEnum} [sortBy] The category to sort earnings by
|
|
5353
5353
|
* @param {GetAffiliateOverviewSortOrderEnum} [sortOrder] The order to sort earnings by
|
|
5354
5354
|
* @param {string} [search] The name/address of the user to filter by
|
|
5355
|
+
* @param {string} [minEarningsE9] The minimum earnings to filter by
|
|
5355
5356
|
* @param {*} [options] Override http request option.
|
|
5356
5357
|
* @throws {RequiredError}
|
|
5357
5358
|
*/
|
|
5358
|
-
getAffiliateOverview: (userAddress: string, page?: number, limit?: number, sortBy?: GetAffiliateOverviewSortByEnum, sortOrder?: GetAffiliateOverviewSortOrderEnum, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5359
|
+
getAffiliateOverview: (userAddress: string, page?: number, limit?: number, sortBy?: GetAffiliateOverviewSortByEnum, sortOrder?: GetAffiliateOverviewSortOrderEnum, search?: string, minEarningsE9?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5359
5360
|
/**
|
|
5360
5361
|
* Returns performance summary for an affiliate including total referrals, earnings, and rankings
|
|
5361
5362
|
* @summary Get affiliate performance summary
|
|
@@ -5491,10 +5492,11 @@ export declare const RewardsApiFp: (configuration?: Configuration) => {
|
|
|
5491
5492
|
* @param {GetAffiliateOverviewSortByEnum} [sortBy] The category to sort earnings by
|
|
5492
5493
|
* @param {GetAffiliateOverviewSortOrderEnum} [sortOrder] The order to sort earnings by
|
|
5493
5494
|
* @param {string} [search] The name/address of the user to filter by
|
|
5495
|
+
* @param {string} [minEarningsE9] The minimum earnings to filter by
|
|
5494
5496
|
* @param {*} [options] Override http request option.
|
|
5495
5497
|
* @throws {RequiredError}
|
|
5496
5498
|
*/
|
|
5497
|
-
getAffiliateOverview(userAddress: string, page?: number, limit?: number, sortBy?: GetAffiliateOverviewSortByEnum, sortOrder?: GetAffiliateOverviewSortOrderEnum, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAffiliateOverview200Response>>;
|
|
5499
|
+
getAffiliateOverview(userAddress: string, page?: number, limit?: number, sortBy?: GetAffiliateOverviewSortByEnum, sortOrder?: GetAffiliateOverviewSortOrderEnum, search?: string, minEarningsE9?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAffiliateOverview200Response>>;
|
|
5498
5500
|
/**
|
|
5499
5501
|
* Returns performance summary for an affiliate including total referrals, earnings, and rankings
|
|
5500
5502
|
* @summary Get affiliate performance summary
|
|
@@ -5630,10 +5632,11 @@ export declare const RewardsApiFactory: (configuration?: Configuration, basePath
|
|
|
5630
5632
|
* @param {GetAffiliateOverviewSortByEnum} [sortBy] The category to sort earnings by
|
|
5631
5633
|
* @param {GetAffiliateOverviewSortOrderEnum} [sortOrder] The order to sort earnings by
|
|
5632
5634
|
* @param {string} [search] The name/address of the user to filter by
|
|
5635
|
+
* @param {string} [minEarningsE9] The minimum earnings to filter by
|
|
5633
5636
|
* @param {*} [options] Override http request option.
|
|
5634
5637
|
* @throws {RequiredError}
|
|
5635
5638
|
*/
|
|
5636
|
-
getAffiliateOverview(userAddress: string, page?: number, limit?: number, sortBy?: GetAffiliateOverviewSortByEnum, sortOrder?: GetAffiliateOverviewSortOrderEnum, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetAffiliateOverview200Response>;
|
|
5639
|
+
getAffiliateOverview(userAddress: string, page?: number, limit?: number, sortBy?: GetAffiliateOverviewSortByEnum, sortOrder?: GetAffiliateOverviewSortOrderEnum, search?: string, minEarningsE9?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetAffiliateOverview200Response>;
|
|
5637
5640
|
/**
|
|
5638
5641
|
* Returns performance summary for an affiliate including total referrals, earnings, and rankings
|
|
5639
5642
|
* @summary Get affiliate performance summary
|
|
@@ -5774,11 +5777,12 @@ export declare class RewardsApi extends BaseAPI {
|
|
|
5774
5777
|
* @param {GetAffiliateOverviewSortByEnum} [sortBy] The category to sort earnings by
|
|
5775
5778
|
* @param {GetAffiliateOverviewSortOrderEnum} [sortOrder] The order to sort earnings by
|
|
5776
5779
|
* @param {string} [search] The name/address of the user to filter by
|
|
5780
|
+
* @param {string} [minEarningsE9] The minimum earnings to filter by
|
|
5777
5781
|
* @param {*} [options] Override http request option.
|
|
5778
5782
|
* @throws {RequiredError}
|
|
5779
5783
|
* @memberof RewardsApi
|
|
5780
5784
|
*/
|
|
5781
|
-
getAffiliateOverview(userAddress: string, page?: number, limit?: number, sortBy?: GetAffiliateOverviewSortByEnum, sortOrder?: GetAffiliateOverviewSortOrderEnum, search?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAffiliateOverview200Response, any>>;
|
|
5785
|
+
getAffiliateOverview(userAddress: string, page?: number, limit?: number, sortBy?: GetAffiliateOverviewSortByEnum, sortOrder?: GetAffiliateOverviewSortOrderEnum, search?: string, minEarningsE9?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAffiliateOverview200Response, any>>;
|
|
5782
5786
|
/**
|
|
5783
5787
|
* Returns performance summary for an affiliate including total referrals, earnings, and rankings
|
|
5784
5788
|
* @summary Get affiliate performance summary
|
package/dist/src/api.js
CHANGED
|
@@ -2067,10 +2067,11 @@ const RewardsApiAxiosParamCreator = function (configuration) {
|
|
|
2067
2067
|
* @param {GetAffiliateOverviewSortByEnum} [sortBy] The category to sort earnings by
|
|
2068
2068
|
* @param {GetAffiliateOverviewSortOrderEnum} [sortOrder] The order to sort earnings by
|
|
2069
2069
|
* @param {string} [search] The name/address of the user to filter by
|
|
2070
|
+
* @param {string} [minEarningsE9] The minimum earnings to filter by
|
|
2070
2071
|
* @param {*} [options] Override http request option.
|
|
2071
2072
|
* @throws {RequiredError}
|
|
2072
2073
|
*/
|
|
2073
|
-
getAffiliateOverview: (userAddress_1, page_1, limit_1, sortBy_1, sortOrder_1, search_1, ...args_1) => __awaiter(this, [userAddress_1, page_1, limit_1, sortBy_1, sortOrder_1, search_1, ...args_1], void 0, function* (userAddress, page, limit, sortBy, sortOrder, search, options = {}) {
|
|
2074
|
+
getAffiliateOverview: (userAddress_1, page_1, limit_1, sortBy_1, sortOrder_1, search_1, minEarningsE9_1, ...args_1) => __awaiter(this, [userAddress_1, page_1, limit_1, sortBy_1, sortOrder_1, search_1, minEarningsE9_1, ...args_1], void 0, function* (userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options = {}) {
|
|
2074
2075
|
// verify required parameter 'userAddress' is not null or undefined
|
|
2075
2076
|
(0, common_1.assertParamExists)('getAffiliateOverview', 'userAddress', userAddress);
|
|
2076
2077
|
const localVarPath = `/v1/rewards/affiliate/overview`;
|
|
@@ -2101,6 +2102,9 @@ const RewardsApiAxiosParamCreator = function (configuration) {
|
|
|
2101
2102
|
if (userAddress !== undefined) {
|
|
2102
2103
|
localVarQueryParameter['userAddress'] = userAddress;
|
|
2103
2104
|
}
|
|
2105
|
+
if (minEarningsE9 !== undefined) {
|
|
2106
|
+
localVarQueryParameter['minEarningsE9'] = minEarningsE9;
|
|
2107
|
+
}
|
|
2104
2108
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2105
2109
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2106
2110
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2533,13 +2537,14 @@ const RewardsApiFp = function (configuration) {
|
|
|
2533
2537
|
* @param {GetAffiliateOverviewSortByEnum} [sortBy] The category to sort earnings by
|
|
2534
2538
|
* @param {GetAffiliateOverviewSortOrderEnum} [sortOrder] The order to sort earnings by
|
|
2535
2539
|
* @param {string} [search] The name/address of the user to filter by
|
|
2540
|
+
* @param {string} [minEarningsE9] The minimum earnings to filter by
|
|
2536
2541
|
* @param {*} [options] Override http request option.
|
|
2537
2542
|
* @throws {RequiredError}
|
|
2538
2543
|
*/
|
|
2539
|
-
getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, options) {
|
|
2544
|
+
getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options) {
|
|
2540
2545
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2541
2546
|
var _a, _b, _c;
|
|
2542
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, options);
|
|
2547
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options);
|
|
2543
2548
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2544
2549
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.getAffiliateOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2545
2550
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2778,11 +2783,12 @@ const RewardsApiFactory = function (configuration, basePath, axios) {
|
|
|
2778
2783
|
* @param {GetAffiliateOverviewSortByEnum} [sortBy] The category to sort earnings by
|
|
2779
2784
|
* @param {GetAffiliateOverviewSortOrderEnum} [sortOrder] The order to sort earnings by
|
|
2780
2785
|
* @param {string} [search] The name/address of the user to filter by
|
|
2786
|
+
* @param {string} [minEarningsE9] The minimum earnings to filter by
|
|
2781
2787
|
* @param {*} [options] Override http request option.
|
|
2782
2788
|
* @throws {RequiredError}
|
|
2783
2789
|
*/
|
|
2784
|
-
getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, options) {
|
|
2785
|
-
return localVarFp.getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, options).then((request) => request(axios, basePath));
|
|
2790
|
+
getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options) {
|
|
2791
|
+
return localVarFp.getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options).then((request) => request(axios, basePath));
|
|
2786
2792
|
},
|
|
2787
2793
|
/**
|
|
2788
2794
|
* Returns performance summary for an affiliate including total referrals, earnings, and rankings
|
|
@@ -2954,12 +2960,13 @@ class RewardsApi extends base_1.BaseAPI {
|
|
|
2954
2960
|
* @param {GetAffiliateOverviewSortByEnum} [sortBy] The category to sort earnings by
|
|
2955
2961
|
* @param {GetAffiliateOverviewSortOrderEnum} [sortOrder] The order to sort earnings by
|
|
2956
2962
|
* @param {string} [search] The name/address of the user to filter by
|
|
2963
|
+
* @param {string} [minEarningsE9] The minimum earnings to filter by
|
|
2957
2964
|
* @param {*} [options] Override http request option.
|
|
2958
2965
|
* @throws {RequiredError}
|
|
2959
2966
|
* @memberof RewardsApi
|
|
2960
2967
|
*/
|
|
2961
|
-
getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, options) {
|
|
2962
|
-
return (0, exports.RewardsApiFp)(this.configuration).getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, options).then((request) => request(this.axios, this.basePath));
|
|
2968
|
+
getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options) {
|
|
2969
|
+
return (0, exports.RewardsApiFp)(this.configuration).getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options).then((request) => request(this.axios, this.basePath));
|
|
2963
2970
|
}
|
|
2964
2971
|
/**
|
|
2965
2972
|
* Returns performance summary for an affiliate including total referrals, earnings, and rankings
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -4583,73 +4583,73 @@ export interface UserCampaignRewards {
|
|
|
4583
4583
|
* @type {string}
|
|
4584
4584
|
* @memberof UserCampaignRewards
|
|
4585
4585
|
*/
|
|
4586
|
-
'
|
|
4586
|
+
'userAddress': string;
|
|
4587
4587
|
/**
|
|
4588
4588
|
* Name of the campaign.
|
|
4589
4589
|
* @type {string}
|
|
4590
4590
|
* @memberof UserCampaignRewards
|
|
4591
4591
|
*/
|
|
4592
|
-
'
|
|
4592
|
+
'campaignName': string;
|
|
4593
4593
|
/**
|
|
4594
4594
|
* Epoch number for the rewards earned data.
|
|
4595
4595
|
* @type {number}
|
|
4596
4596
|
* @memberof UserCampaignRewards
|
|
4597
4597
|
*/
|
|
4598
|
-
'
|
|
4598
|
+
'epochNumber': number;
|
|
4599
4599
|
/**
|
|
4600
4600
|
* Interval number for the rewards earned data.
|
|
4601
4601
|
* @type {number}
|
|
4602
4602
|
* @memberof UserCampaignRewards
|
|
4603
4603
|
*/
|
|
4604
|
-
'
|
|
4604
|
+
'intervalNumber': number;
|
|
4605
4605
|
/**
|
|
4606
4606
|
* Market Symbol.
|
|
4607
4607
|
* @type {string}
|
|
4608
4608
|
* @memberof UserCampaignRewards
|
|
4609
4609
|
*/
|
|
4610
|
-
'
|
|
4610
|
+
'symbol': string;
|
|
4611
4611
|
/**
|
|
4612
4612
|
*
|
|
4613
4613
|
* @type {string}
|
|
4614
4614
|
* @memberof UserCampaignRewards
|
|
4615
4615
|
*/
|
|
4616
|
-
'
|
|
4616
|
+
'status': UserCampaignRewardsStatusEnum;
|
|
4617
4617
|
/**
|
|
4618
4618
|
* Total blue-perp token rewards earned in the epoch (e9 format).
|
|
4619
4619
|
* @type {string}
|
|
4620
4620
|
* @memberof UserCampaignRewards
|
|
4621
4621
|
*/
|
|
4622
|
-
'
|
|
4622
|
+
'blueRewardsE9': string;
|
|
4623
4623
|
/**
|
|
4624
4624
|
* Total sui-perp token rewards earned in the epoch (e9 format).
|
|
4625
4625
|
* @type {string}
|
|
4626
4626
|
* @memberof UserCampaignRewards
|
|
4627
4627
|
*/
|
|
4628
|
-
'
|
|
4628
|
+
'suiRewardsE9': string;
|
|
4629
4629
|
/**
|
|
4630
4630
|
* Total wal-perp rewards earned in the epoch (e9 format).
|
|
4631
4631
|
* @type {string}
|
|
4632
4632
|
* @memberof UserCampaignRewards
|
|
4633
4633
|
*/
|
|
4634
|
-
'
|
|
4634
|
+
'walRewardsE9': string;
|
|
4635
4635
|
/**
|
|
4636
4636
|
* Total cash rewards earned in the epoch (e9 format).
|
|
4637
4637
|
* @type {string}
|
|
4638
4638
|
* @memberof UserCampaignRewards
|
|
4639
4639
|
*/
|
|
4640
|
-
'
|
|
4640
|
+
'cashRewardsE9': string;
|
|
4641
4641
|
/**
|
|
4642
4642
|
* Time in milliseconds for interval start date.
|
|
4643
4643
|
* @type {number}
|
|
4644
4644
|
* @memberof UserCampaignRewards
|
|
4645
4645
|
*/
|
|
4646
|
-
'
|
|
4646
|
+
'intervalStartDate': number;
|
|
4647
4647
|
/**
|
|
4648
4648
|
* Time in milliseconds for interval end date.
|
|
4649
4649
|
* @type {number}
|
|
4650
4650
|
* @memberof UserCampaignRewards
|
|
4651
4651
|
*/
|
|
4652
|
-
'
|
|
4652
|
+
'intervalEndDate': number;
|
|
4653
4653
|
}
|
|
4654
4654
|
|
|
4655
4655
|
export const UserCampaignRewardsStatusEnum = {
|
|
@@ -6459,10 +6459,11 @@ export const RewardsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
6459
6459
|
* @param {GetAffiliateOverviewSortByEnum} [sortBy] The category to sort earnings by
|
|
6460
6460
|
* @param {GetAffiliateOverviewSortOrderEnum} [sortOrder] The order to sort earnings by
|
|
6461
6461
|
* @param {string} [search] The name/address of the user to filter by
|
|
6462
|
+
* @param {string} [minEarningsE9] The minimum earnings to filter by
|
|
6462
6463
|
* @param {*} [options] Override http request option.
|
|
6463
6464
|
* @throws {RequiredError}
|
|
6464
6465
|
*/
|
|
6465
|
-
getAffiliateOverview: async (userAddress: string, page?: number, limit?: number, sortBy?: GetAffiliateOverviewSortByEnum, sortOrder?: GetAffiliateOverviewSortOrderEnum, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6466
|
+
getAffiliateOverview: async (userAddress: string, page?: number, limit?: number, sortBy?: GetAffiliateOverviewSortByEnum, sortOrder?: GetAffiliateOverviewSortOrderEnum, search?: string, minEarningsE9?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6466
6467
|
// verify required parameter 'userAddress' is not null or undefined
|
|
6467
6468
|
assertParamExists('getAffiliateOverview', 'userAddress', userAddress)
|
|
6468
6469
|
const localVarPath = `/v1/rewards/affiliate/overview`;
|
|
@@ -6501,6 +6502,10 @@ export const RewardsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
6501
6502
|
localVarQueryParameter['userAddress'] = userAddress;
|
|
6502
6503
|
}
|
|
6503
6504
|
|
|
6505
|
+
if (minEarningsE9 !== undefined) {
|
|
6506
|
+
localVarQueryParameter['minEarningsE9'] = minEarningsE9;
|
|
6507
|
+
}
|
|
6508
|
+
|
|
6504
6509
|
|
|
6505
6510
|
|
|
6506
6511
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -7000,11 +7005,12 @@ export const RewardsApiFp = function(configuration?: Configuration) {
|
|
|
7000
7005
|
* @param {GetAffiliateOverviewSortByEnum} [sortBy] The category to sort earnings by
|
|
7001
7006
|
* @param {GetAffiliateOverviewSortOrderEnum} [sortOrder] The order to sort earnings by
|
|
7002
7007
|
* @param {string} [search] The name/address of the user to filter by
|
|
7008
|
+
* @param {string} [minEarningsE9] The minimum earnings to filter by
|
|
7003
7009
|
* @param {*} [options] Override http request option.
|
|
7004
7010
|
* @throws {RequiredError}
|
|
7005
7011
|
*/
|
|
7006
|
-
async getAffiliateOverview(userAddress: string, page?: number, limit?: number, sortBy?: GetAffiliateOverviewSortByEnum, sortOrder?: GetAffiliateOverviewSortOrderEnum, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAffiliateOverview200Response>> {
|
|
7007
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, options);
|
|
7012
|
+
async getAffiliateOverview(userAddress: string, page?: number, limit?: number, sortBy?: GetAffiliateOverviewSortByEnum, sortOrder?: GetAffiliateOverviewSortOrderEnum, search?: string, minEarningsE9?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAffiliateOverview200Response>> {
|
|
7013
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options);
|
|
7008
7014
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7009
7015
|
const localVarOperationServerBasePath = operationServerMap['RewardsApi.getAffiliateOverview']?.[localVarOperationServerIndex]?.url;
|
|
7010
7016
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7209,11 +7215,12 @@ export const RewardsApiFactory = function (configuration?: Configuration, basePa
|
|
|
7209
7215
|
* @param {GetAffiliateOverviewSortByEnum} [sortBy] The category to sort earnings by
|
|
7210
7216
|
* @param {GetAffiliateOverviewSortOrderEnum} [sortOrder] The order to sort earnings by
|
|
7211
7217
|
* @param {string} [search] The name/address of the user to filter by
|
|
7218
|
+
* @param {string} [minEarningsE9] The minimum earnings to filter by
|
|
7212
7219
|
* @param {*} [options] Override http request option.
|
|
7213
7220
|
* @throws {RequiredError}
|
|
7214
7221
|
*/
|
|
7215
|
-
getAffiliateOverview(userAddress: string, page?: number, limit?: number, sortBy?: GetAffiliateOverviewSortByEnum, sortOrder?: GetAffiliateOverviewSortOrderEnum, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetAffiliateOverview200Response> {
|
|
7216
|
-
return localVarFp.getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, options).then((request) => request(axios, basePath));
|
|
7222
|
+
getAffiliateOverview(userAddress: string, page?: number, limit?: number, sortBy?: GetAffiliateOverviewSortByEnum, sortOrder?: GetAffiliateOverviewSortOrderEnum, search?: string, minEarningsE9?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetAffiliateOverview200Response> {
|
|
7223
|
+
return localVarFp.getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options).then((request) => request(axios, basePath));
|
|
7217
7224
|
},
|
|
7218
7225
|
/**
|
|
7219
7226
|
* Returns performance summary for an affiliate including total referrals, earnings, and rankings
|
|
@@ -7388,12 +7395,13 @@ export class RewardsApi extends BaseAPI {
|
|
|
7388
7395
|
* @param {GetAffiliateOverviewSortByEnum} [sortBy] The category to sort earnings by
|
|
7389
7396
|
* @param {GetAffiliateOverviewSortOrderEnum} [sortOrder] The order to sort earnings by
|
|
7390
7397
|
* @param {string} [search] The name/address of the user to filter by
|
|
7398
|
+
* @param {string} [minEarningsE9] The minimum earnings to filter by
|
|
7391
7399
|
* @param {*} [options] Override http request option.
|
|
7392
7400
|
* @throws {RequiredError}
|
|
7393
7401
|
* @memberof RewardsApi
|
|
7394
7402
|
*/
|
|
7395
|
-
public getAffiliateOverview(userAddress: string, page?: number, limit?: number, sortBy?: GetAffiliateOverviewSortByEnum, sortOrder?: GetAffiliateOverviewSortOrderEnum, search?: string, options?: RawAxiosRequestConfig) {
|
|
7396
|
-
return RewardsApiFp(this.configuration).getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, options).then((request) => request(this.axios, this.basePath));
|
|
7403
|
+
public getAffiliateOverview(userAddress: string, page?: number, limit?: number, sortBy?: GetAffiliateOverviewSortByEnum, sortOrder?: GetAffiliateOverviewSortOrderEnum, search?: string, minEarningsE9?: string, options?: RawAxiosRequestConfig) {
|
|
7404
|
+
return RewardsApiFp(this.configuration).getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options).then((request) => request(this.axios, this.basePath));
|
|
7397
7405
|
}
|
|
7398
7406
|
|
|
7399
7407
|
/**
|
package/src/docs/RewardsApi.md
CHANGED
|
@@ -222,6 +222,7 @@ let limit: number; //The page size for pagination (optional) (default to 500)
|
|
|
222
222
|
let sortBy: 'refreeEarnings' | 'referralEarnings' | 'totalEarnings'; //The category to sort earnings by (optional) (default to 'totalEarnings')
|
|
223
223
|
let sortOrder: 'asc' | 'desc'; //The order to sort earnings by (optional) (default to undefined)
|
|
224
224
|
let search: string; //The name/address of the user to filter by (optional) (default to undefined)
|
|
225
|
+
let minEarningsE9: string; //The minimum earnings to filter by (optional) (default to undefined)
|
|
225
226
|
|
|
226
227
|
const { status, data } = await apiInstance.getAffiliateOverview(
|
|
227
228
|
userAddress,
|
|
@@ -229,7 +230,8 @@ const { status, data } = await apiInstance.getAffiliateOverview(
|
|
|
229
230
|
limit,
|
|
230
231
|
sortBy,
|
|
231
232
|
sortOrder,
|
|
232
|
-
search
|
|
233
|
+
search,
|
|
234
|
+
minEarningsE9
|
|
233
235
|
);
|
|
234
236
|
```
|
|
235
237
|
|
|
@@ -243,6 +245,7 @@ const { status, data } = await apiInstance.getAffiliateOverview(
|
|
|
243
245
|
| **sortBy** | [**'refreeEarnings' | 'referralEarnings' | 'totalEarnings'**]**Array<'refreeEarnings' | 'referralEarnings' | 'totalEarnings'>** | The category to sort earnings by | (optional) defaults to 'totalEarnings'|
|
|
244
246
|
| **sortOrder** | [**'asc' | 'desc'**]**Array<'asc' | 'desc'>** | The order to sort earnings by | (optional) defaults to undefined|
|
|
245
247
|
| **search** | [**string**] | The name/address of the user to filter by | (optional) defaults to undefined|
|
|
248
|
+
| **minEarningsE9** | [**string**] | The minimum earnings to filter by | (optional) defaults to undefined|
|
|
246
249
|
|
|
247
250
|
|
|
248
251
|
### Return type
|
|
@@ -377,6 +380,7 @@ No authorization required
|
|
|
377
380
|
| Status code | Description | Response headers |
|
|
378
381
|
|-------------|-------------|------------------|
|
|
379
382
|
|**200** | Successful response | - |
|
|
383
|
+
|**400** | request missing required parameters | - |
|
|
380
384
|
|
|
381
385
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
382
386
|
|
package/src/docs/TradeApi.md
CHANGED
|
@@ -353,6 +353,7 @@ void (empty response body)
|
|
|
353
353
|
|**401** | Unauthorized. Authentication is required or invalid. Signature is invalid | - |
|
|
354
354
|
|**403** | Forbidden. | - |
|
|
355
355
|
|**404** | Not Found. The requested resource was not found. | - |
|
|
356
|
+
|**429** | Too Many Requests. The request was rate limited. | - |
|
|
356
357
|
|**500** | Internal Server Error. An unexpected error occurred on the server. | - |
|
|
357
358
|
|**503** | Service Unavailable. The service is currently unavailable. | - |
|
|
358
359
|
|