@fuul/sdk 3.3.2 → 3.4.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.
package/dist/core.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Conversion } from './types/api';
1
+ import { Conversion, GetProjectPayoutsLeaderboardParams, GetUserPayoutsParams, ProjectPayoutsLeaderboardResponse, UserPayoutsResponse } from './types/api';
2
2
  import { AffiliateLinkParams, EventArgs, FuulSettings, UserMetadata } from './types/sdk';
3
3
  export declare function init(settings: FuulSettings): void;
4
4
  /**
@@ -94,6 +94,26 @@ export declare function isAffiliateCodeFree(code: string): Promise<boolean>;
94
94
  * @see https://docs.fuul.xyz/technical-guide-for-projects/creating-partners-tracking-links-using-the-fuul-sdk
95
95
  **/
96
96
  export declare function generateTrackingLink(baseUrl: string, affiliateAddress: string, params?: AffiliateLinkParams): Promise<string>;
97
+ /**
98
+ * Gets the project payouts leaderboard
99
+ * @param {GetProjectPayoutsLeaderboardParams} params The search params
100
+ * @returns {ProjectPayoutsLeaderboardResponse} Project payouts leaderboard
101
+ * @example
102
+ * ```typescript
103
+ * const results = await Fuul.getProjectPayoutsLeaderboard({ currency_address: '0x12345' }});
104
+ * ```
105
+ **/
106
+ export declare function getProjectPayoutsLeaderboard(params: GetProjectPayoutsLeaderboardParams): Promise<ProjectPayoutsLeaderboardResponse>;
107
+ /**
108
+ * Gets the project payouts leaderboard
109
+ * @param {GetUserPayoutsParams} params The search params
110
+ * @returns {UserPayoutsResponse} Project payouts leaderboard
111
+ * @example
112
+ * ```typescript
113
+ * const results = await Fuul.getUserPayouts({ user_address: '0x12345' }});
114
+ * ```
115
+ **/
116
+ export declare function getUserPayouts(params: GetUserPayoutsParams): Promise<UserPayoutsResponse>;
97
117
  export declare function getConversions(): Promise<Conversion[]>;
98
118
  declare const _default: {
99
119
  init: typeof init;
@@ -106,6 +126,8 @@ declare const _default: {
106
126
  updateAffiliateCode: typeof updateAffiliateCode;
107
127
  getAffiliateCode: typeof getAffiliateCode;
108
128
  isAffiliateCodeFree: typeof isAffiliateCodeFree;
129
+ getUserPayouts: typeof getUserPayouts;
130
+ getProjectPayoutsLeaderboard: typeof getProjectPayoutsLeaderboard;
109
131
  };
110
132
  export default _default;
111
133
  //# sourceMappingURL=core.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/core.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,UAAU,EAAa,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAYzF,wBAAgB,IAAI,CAAC,QAAQ,EAAE,YAAY,QAqB1C;AAQD;;;;;;;;GAQG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAa7E;AAED;;;;;;;;;GASG;AACH,wBAAsB,YAAY,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBnE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,iBAAiB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAsBjF;AAED;;;;;;;;;IASI;AACJ,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGzG;AAED;;;;;;;;;IASI;AACJ,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGzG;AAED;;;;;;;;IAQI;AACJ,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAG9E;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