Skip to content

Commit f4a60f8

Browse files
authored
Merge pull request #148 from fireflyprotocol/andre/bfs-1786-update-pro-sdk-with-minEarningsE9
update SDK to handle minEarningsE9 in affiliate overview endpoint
2 parents ea29d6c + a4643f8 commit f4a60f8

File tree

8 files changed

+81
-26
lines changed

8 files changed

+81
-26
lines changed

python/sdk/src/openapi_client/api/rewards_api.py

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/sdk/src/openapi_client/docs/RewardsApi.md

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/rewards-data-api.yaml

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ components:
2626
$ref: './common.yaml#/components/schemas/Error'
2727

2828
CampaignRewards:
29-
$ref: "#/components/schemas/UserCampaignRewards"
29+
$ref:
30+
"#/components/schemas/UserCampaignRewards"
3031
# Add other campaign data types as needed
3132

3233
# Campaign rewards schema can be extended to have custom fields for the campaign once start adding more campaign specific data
@@ -316,7 +317,7 @@ components:
316317
example: "20"
317318
referralSpotLPFee:
318319
type: string
319-
description: Earnings from referral spot LP fees
320+
description: Earnings from referral spot LP fees
320321
example: "15"
321322
referralLendingRewards:
322323
type: string
@@ -741,6 +742,12 @@ paths:
741742
type: array
742743
items:
743744
$ref: "#/components/schemas/CampaignRewards"
745+
"400":
746+
description: "request missing required parameters"
747+
content:
748+
application/json:
749+
schema:
750+
$ref: "#/components/schemas/Error"
744751
/v1/rewards/summary:
745752
# Get rewards information for all time
746753
get:
@@ -1045,17 +1052,17 @@ paths:
10451052
schema:
10461053
$ref: "#/components/schemas/Error"
10471054
"400":
1048-
description: "request missing required parameters"
1049-
content:
1050-
application/json:
1051-
schema:
1052-
$ref: "#/components/schemas/Error"
1055+
description: "request missing required parameters"
1056+
content:
1057+
application/json:
1058+
schema:
1059+
$ref: "#/components/schemas/Error"
10531060
"500":
1054-
description: "internal server error"
1055-
content:
1056-
application/json:
1057-
schema:
1058-
$ref: "#/components/schemas/Error"
1061+
description: "internal server error"
1062+
content:
1063+
application/json:
1064+
schema:
1065+
$ref: "#/components/schemas/Error"
10591066

10601067
/v1/rewards/affiliate/onboard/referee:
10611068
post:
@@ -1221,6 +1228,14 @@ paths:
12211228
schema:
12221229
type: string
12231230
example: "0x1234567890abcdef"
1231+
- name: minEarningsE9
1232+
in: query
1233+
required: false
1234+
description: The minimum earnings to filter by
1235+
schema:
1236+
type: string
1237+
example: "1000000"
1238+
default: "0"
12241239
responses:
12251240
"200":
12261241
description: Successful response array of affiliate overview objects
@@ -1440,4 +1455,3 @@ paths:
14401455
schema:
14411456
$ref: "#/components/schemas/Error"
14421457

1443-

rust/gen/bluefin_api/docs/RewardsApi.md

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/gen/bluefin_api/src/apis/rewards_api.rs

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bluefin-exchange/pro-sdk",
3-
"version": "0.1.49",
3+
"version": "0.1.50",
44
"description": "OpenAPI client for @bluefin-exchange/pro-sdk",
55
"author": "Bluefin",
66
"repository": {

0 commit comments

Comments
 (0)