@pear-protocol/core-sdk 1.13.0 → 1.14.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.
@@ -187,7 +187,7 @@ declare class Core {
187
187
  get: (query?: HttpTypes.QuoteFeeParamsInput, headers?: ClientHeaders) => Promise<{
188
188
  baseBps: string;
189
189
  discounts: {
190
- scope: "user" | "connector" | "all" | "client_id";
190
+ scope: "connector" | "all" | "user" | "client_id";
191
191
  rate: string;
192
192
  }[];
193
193
  finalBps: string;
@@ -2618,7 +2618,18 @@ declare class Core {
2618
2618
  /** Return referral codes owned by the authenticated user and their referrer. */
2619
2619
  status: (headers?: ClientHeaders) => Promise<{
2620
2620
  ownedCodes: string[];
2621
- referrerUserId?: string | undefined;
2621
+ referrerCode?: string | undefined;
2622
+ }>;
2623
+ /** List users permanently bound to the authenticated referrer. */
2624
+ referees: (query?: HttpTypes.ReferralRefereeListParamsInput, headers?: ClientHeaders) => Promise<{
2625
+ limit: number;
2626
+ count: number;
2627
+ referees: {
2628
+ tradeCount: number;
2629
+ address?: `0x${string}` | undefined;
2630
+ referredAt?: number | undefined;
2631
+ }[];
2632
+ nextCursor?: string | undefined;
2622
2633
  }>;
2623
2634
  };
2624
2635
  savedBaskets: {
@@ -375,6 +375,14 @@ class Core {
375
375
  method: "GET",
376
376
  headers
377
377
  });
378
+ },
379
+ /** List users permanently bound to the authenticated referrer. */
380
+ referees: async (query, headers) => {
381
+ return await this.client.fetch(`/referrals/referees`, {
382
+ method: "GET",
383
+ headers,
384
+ query
385
+ });
378
386
  }
379
387
  };
380
388
  savedBaskets = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pear-protocol/core-sdk",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "Pear Protocol Core SDK",
5
5
  "private": false,
6
6
  "type": "module",
@@ -25,7 +25,7 @@
25
25
  "typecheck": "tsc --noEmit"
26
26
  },
27
27
  "dependencies": {
28
- "@pear-protocol/types": "^1.17.0",
28
+ "@pear-protocol/types": "^1.19.0",
29
29
  "@pear-protocol/utils": "^0.5.0",
30
30
  "qs": "^6.14.0"
31
31
  },