diff --git a/package.json b/package.json index 31d5907..15642f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.16.1", + "version": "0.16.3-rc.0", "description": "Orion Protocol SDK", "main": "./lib/esm/index.js", "module": "./lib/esm/index.js", diff --git a/src/services/ReferralSystem/index.ts b/src/services/ReferralSystem/index.ts index 7473634..bc1bd3d 100644 --- a/src/services/ReferralSystem/index.ts +++ b/src/services/ReferralSystem/index.ts @@ -24,7 +24,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); @@ -59,7 +59,7 @@ class ReferralSystem { }, ); - getSubscribersList = (refererAddress: string) => fetchWithValidation( + getDistinctAnalytics = (refererAddress: string) => fetchWithValidation( `${this.apiUrl}/referer/view/distinct-analytics`, distinctAnalyticsSchema, { @@ -67,6 +67,7 @@ class ReferralSystem { 'referer-address': refererAddress, }, }, + errorSchema, ); createReferralLink = (payload: CreateLinkPayloadType, signature: SignatureType) => fetchWithValidation(