@fuul/sdk 4.6.2 → 4.7.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 +12 -0
- package/dist/core.d.ts.map +1 -1
- package/dist/index.mjs +271 -257
- package/dist/index.umd.js +4 -4
- package/dist/types/api.d.ts +2 -0
- package/dist/types/api.d.ts.map +1 -1
- package/dist/user/UserService.d.ts +11 -0
- package/dist/user/UserService.d.ts.map +1 -0
- package/dist/user/types/index.d.ts +11 -0
- package/dist/user/types/index.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Conversion, GetConversionsParams, GetPayoutsLeaderboardParams, GetPointsLeaderboardParams, GetUserPayoutMovementsParams, GetUserPayoutsByConversionParams, GetUserPointsByConversionParams, GetUserPointsMovementsParams, GetVolumeLeaderboardParams, LeaderboardResponse, PayoutsLeaderboard, PointsLeaderboard, UserPayoutMovementsResponse, UserPayoutsByConversionResponse, UserPointsByConversionResponse, UserPointsMovementsResponse, VolumeLeaderboard } from './types/api';
|
|
2
2
|
import { AffiliateLinkParams, EventArgs, FuulSettings, UserMetadata } from './types/sdk';
|
|
3
|
+
import { GetUserAffiliatesParams, UserAffiliate } from './user/types';
|
|
3
4
|
export declare function init(settings: FuulSettings): void;
|
|
4
5
|
/**
|
|
5
6
|
* @param {string} name Event name
|
|
@@ -183,6 +184,16 @@ export declare function getUserPointsMovements(params: GetUserPointsMovementsPar
|
|
|
183
184
|
* ```
|
|
184
185
|
**/
|
|
185
186
|
export declare function getConversions(params?: GetConversionsParams): Promise<Conversion[]>;
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @param {GetUserAffiliatesParams} params The query params
|
|
190
|
+
* @returns {Promise<UserAffiliate[]>} List of user affiliates
|
|
191
|
+
* @example
|
|
192
|
+
* ```typescript
|
|
193
|
+
* const results = await Fuul.getUserAffiliates({ user_address: '0x12345' });
|
|
194
|
+
* ```
|
|
195
|
+
*/
|
|
196
|
+
export declare function getUserAffiliates(params: GetUserAffiliatesParams): Promise<UserAffiliate[]>;
|
|
186
197
|
declare const _default: {
|
|
187
198
|
init: typeof init;
|
|
188
199
|
sendEvent: typeof sendEvent;
|
|
@@ -200,6 +211,7 @@ declare const _default: {
|
|
|
200
211
|
getUserPointsByConversion: typeof getUserPointsByConversion;
|
|
201
212
|
getUserPointsMovements: typeof getUserPointsMovements;
|
|
202
213
|
getUserPayoutMovements: typeof getUserPayoutMovements;
|
|
214
|
+
getUserAffiliates: typeof getUserAffiliates;
|
|
203
215
|
getVolumeLeaderboard: typeof getVolumeLeaderboard;
|
|
204
216
|
};
|
|
205
217
|
export default _default;
|
package/dist/core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/core.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,UAAU,EAEV,oBAAoB,EACpB,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,gCAAgC,EAChC,+BAA+B,EAC/B,4BAA4B,EAC5B,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,2BAA2B,EAC3B,+BAA+B,EAC/B,8BAA8B,EAC9B,2BAA2B,EAC3B,iBAAiB,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/core.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,UAAU,EAEV,oBAAoB,EACpB,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,gCAAgC,EAChC,+BAA+B,EAC/B,4BAA4B,EAC5B,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,2BAA2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