Merge branch 'main' into RS-analytics

This commit is contained in:
Aleksandr Kraiz
2023-02-01 12:20:10 +04:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.16.2-rc.0",
"version": "0.16.4",
"description": "Orion Protocol SDK",
"main": "./lib/esm/index.js",
"module": "./lib/esm/index.js",

View File

@@ -25,7 +25,7 @@ class ReferralSystem {
this.apiUrl = ReferralSystem.getActualApiUrl(apiUrl, env);
this.getLink = this.getLink.bind(this);
this.getSubscribersList = this.getSubscribersList.bind(this);
this.getDistinctAnalytics = this.getDistinctAnalytics.bind(this);
this.createReferralLink = this.createReferralLink.bind(this);
this.subscribeToReferral = this.subscribeToReferral.bind(this);
this.getMyReferral = this.getMyReferral.bind(this);
@@ -60,7 +60,7 @@ class ReferralSystem {
},
);
getSubscribersList = (refererAddress: string) => fetchWithValidation(
getDistinctAnalytics = (refererAddress: string) => fetchWithValidation(
`${this.apiUrl}/referer/view/distinct-analytics`,
distinctAnalyticsSchema,
{
@@ -68,6 +68,7 @@ class ReferralSystem {
'referer-address': refererAddress,
},
},
errorSchema,
);
getGlobalAnalytics = () => fetchWithValidation(