@fuul/sdk 7.5.3 → 7.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/affiliate-portal/AffiliatePortalService.d.ts +2 -1
- package/dist/affiliate-portal/AffiliatePortalService.d.ts.map +1 -1
- package/dist/affiliate-portal/types/index.d.ts +9 -0
- package/dist/affiliate-portal/types/index.d.ts.map +1 -1
- package/dist/affiliates/AffiliateService.d.ts +2 -1
- package/dist/affiliates/AffiliateService.d.ts.map +1 -1
- package/dist/core.d.ts +21 -6
- package/dist/core.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +528 -514
- package/dist/index.umd.js +6 -6
- package/dist/release.json.d.ts +1 -1
- package/dist/types/api.d.ts +11 -0
- package/dist/types/api.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '../HttpClient';
|
|
2
|
-
import { GetAffiliateStatsParams, GetAffiliateStatsResponse } from './types';
|
|
2
|
+
import { GetAffiliateStatsParams, GetAffiliateStatsResponse, GetNewTradersParams, NewTraderResponse } from './types';
|
|
3
3
|
export type AffiliatePortalServiceSettings = {
|
|
4
4
|
httpClient: HttpClient;
|
|
5
5
|
};
|
|
@@ -7,5 +7,6 @@ export declare class AffiliatePortalService {
|
|
|
7
7
|
private readonly httpClient;
|
|
8
8
|
constructor(settings: AffiliatePortalServiceSettings);
|
|
9
9
|
getAffiliateStats(params: GetAffiliateStatsParams): Promise<GetAffiliateStatsResponse>;
|
|
10
|
+
getAffiliateNewTraders(params: GetNewTradersParams): Promise<NewTraderResponse[]>;
|
|
10
11
|
}
|
|
11
12
|
//# sourceMappingURL=AffiliatePortalService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AffiliatePortalService.d.ts","sourceRoot":"","sources":["../../src/affiliate-portal/AffiliatePortalService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"AffiliatePortalService.d.ts","sourceRoot":"","sources":["../../src/affiliate-portal/AffiliatePortalService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAErH,MAAM,MAAM,8BAA8B,GAAG;IAC3C,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC;AAIF,qBAAa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;gBAE5B,QAAQ,EAAE,8BAA8B;IAIvC,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAUtF,sBAAsB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;CAW/F"}
|
|
@@ -15,4 +15,13 @@ export interface GetAffiliateStatsResponse {
|
|
|
15
15
|
referred_revenue: number;
|
|
16
16
|
referred_users: number;
|
|
17
17
|
}
|
|
18
|
+
export interface GetNewTradersParams {
|
|
19
|
+
user_identifier: string;
|
|
20
|
+
from?: string;
|
|
21
|
+
to?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface NewTraderResponse {
|
|
24
|
+
referrer_identifier: string;
|
|
25
|
+
total_new_traders: string;
|
|
26
|
+
}
|
|
18
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/affiliate-portal/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,kBAAkB,CAAC;CAC1C;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,kBAAkB,CAAC;IACzC,cAAc,EAAE,gBAAgB,EAAE,CAAC;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;CACxB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/affiliate-portal/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,kBAAkB,CAAC;CAC1C;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,kBAAkB,CAAC;IACzC,cAAc,EAAE,gBAAgB,EAAE,CAAC;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UserIdentifierType } from '..';
|
|
2
2
|
import { HttpClient } from '../HttpClient';
|
|
3
|
+
import { Affiliate } from '../types/api';
|
|
3
4
|
export type AffiliateServiceSettings = {
|
|
4
5
|
httpClient: HttpClient;
|
|
5
6
|
debug?: boolean;
|
|
@@ -11,6 +12,6 @@ export declare class AffiliateService {
|
|
|
11
12
|
create(address: string, identifier_type: UserIdentifierType, code: string, signature: string, signaturePublicKey?: string, accountChainId?: number, userSplitPercentage?: number): Promise<void>;
|
|
12
13
|
update(user_identifier: string, identifier_type: UserIdentifierType, code: string, signature: string, signaturePublicKey?: string, accountChainId?: number): Promise<void>;
|
|
13
14
|
isCodeFree(code: string): Promise<boolean>;
|
|
14
|
-
getCode(address: string, identifier_type: UserIdentifierType): Promise<
|
|
15
|
+
getCode(address: string, identifier_type: UserIdentifierType): Promise<Affiliate | null>;
|
|
15
16
|
}
|
|
16
17
|
//# sourceMappingURL=AffiliateService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AffiliateService.d.ts","sourceRoot":"","sources":["../../src/affiliates/AffiliateService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"AffiliateService.d.ts","sourceRoot":"","sources":["../../src/affiliates/AffiliateService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,SAAS,EAA0C,MAAM,cAAc,CAAC;AAGjF,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;IACxC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;gBAEjC,QAAQ,EAAE,wBAAwB;IAKjC,MAAM,CACjB,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,kBAAkB,EACnC,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,MAAM,EAC3B,cAAc,CAAC,EAAE,MAAM,EACvB,mBAAmB,CAAC,EAAE,MAAM,GAC3B,OAAO,CAAC,IAAI,CAAC;IAuCH,MAAM,CACjB,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,kBAAkB,EACnC,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,MAAM,EAC3B,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,IAAI,CAAC;IAqCH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAU1C,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,kBAAkB,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;CActG"}
|
package/dist/core.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UserIdentifierType } from '.';
|
|
2
|
-
import {
|
|
2
|
+
import { GetAffiliateStatsParams, GetAffiliateStatsResponse, GetNewTradersParams, NewTraderResponse } from './affiliate-portal/types';
|
|
3
|
+
import { Affiliate, Conversion, GenerateReferralCodesParams, GenerateReferralCodesResponse, GetConversionsParams, GetPayoutsByReferrerParams, GetPayoutsLeaderboardParams, GetPointsLeaderboardParams, GetReferralCodeParams, GetReferralCodeResponse, GetReferralStatusParams, GetReferralStatusResponse, GetReferredUsersLeaderboardParams, GetUserAudiencesParams, GetUserAudiencesResponse, GetUserPayoutMovementsParams, GetUserPayoutsByConversionParams, GetUserPointsByConversionParams, GetUserPointsMovementsParams, GetVolumeLeaderboardParams, LeaderboardResponse, ListUserReferralCodesParams, ListUserReferralCodesResponse, PayoutsByReferrerResponse, PayoutsLeaderboard, PointsLeaderboard, ReferredUsersLeaderboard, UpdateReferralCodeParams, UseReferralCodeParams, UserPayoutMovementsResponse, UserPayoutsByConversionResponse, UserPointsByConversionResponse, UserPointsMovementsResponse, VolumeLeaderboard } from './types/api';
|
|
3
4
|
import { AffiliateCodeParams, AffiliateLinkParams, EventArgs, FuulSettings, IdentifyUserParams } from './types/sdk';
|
|
4
5
|
import { GetUserReferrerParams, GetUserReferrerResponse } from './user/types';
|
|
5
|
-
import { GetAffiliateStatsParams, GetAffiliateStatsResponse } from './affiliate-portal/types';
|
|
6
6
|
export declare function init(settings: FuulSettings): void;
|
|
7
7
|
/**
|
|
8
8
|
* @param {string} name Event name
|
|
@@ -95,16 +95,16 @@ export declare function createAffiliateCode(params: AffiliateCodeParams): Promis
|
|
|
95
95
|
**/
|
|
96
96
|
export declare function updateAffiliateCode(params: AffiliateCodeParams): Promise<void>;
|
|
97
97
|
/**
|
|
98
|
-
* Gets the code
|
|
98
|
+
* Gets the affiliate code for a given identifier
|
|
99
99
|
* @param {string} userIdentifier Affiliate identifier
|
|
100
100
|
* @param {UserIdentifierType} identifierType Affiliate identifier type
|
|
101
|
-
* @returns {
|
|
101
|
+
* @returns {Affiliate | null} Affiliate code data
|
|
102
102
|
* @example
|
|
103
103
|
* ```typescript
|
|
104
|
-
* const
|
|
104
|
+
* const affiliateCode = await Fuul.getAffiliateCode('0x12345', UserIdentifierType.EvmAddress);
|
|
105
105
|
* ```
|
|
106
106
|
**/
|
|
107
|
-
export declare function getAffiliateCode(userIdentifier: string, identifierType: UserIdentifierType): Promise<
|
|
107
|
+
export declare function getAffiliateCode(userIdentifier: string, identifierType: UserIdentifierType): Promise<Affiliate | null>;
|
|
108
108
|
/**
|
|
109
109
|
* Checks if an affiliate code is free to use
|
|
110
110
|
* @param {string} code Affiliate code to check
|
|
@@ -371,6 +371,20 @@ export declare function updateReferralCode(params: UpdateReferralCodeParams): Pr
|
|
|
371
371
|
* ```
|
|
372
372
|
*/
|
|
373
373
|
export declare function getAffiliateStats(params: GetAffiliateStatsParams): Promise<GetAffiliateStatsResponse>;
|
|
374
|
+
/**
|
|
375
|
+
* Gets new traders for an affiliate within a date range
|
|
376
|
+
* @param {GetNewTradersParams} params Get new traders parameters
|
|
377
|
+
* @returns {Promise<NewTraderResponse[]>} New traders response
|
|
378
|
+
* @example
|
|
379
|
+
* ```typescript
|
|
380
|
+
* const newTraders = await Fuul.getAffiliateNewTraders({
|
|
381
|
+
* user_identifier: '0x12345',
|
|
382
|
+
* from: '2024-01-01',
|
|
383
|
+
* to: '2024-12-31'
|
|
384
|
+
* });
|
|
385
|
+
* ```
|
|
386
|
+
*/
|
|
387
|
+
export declare function getAffiliateNewTraders(params: GetNewTradersParams): Promise<NewTraderResponse[]>;
|
|
374
388
|
declare const _default: {
|
|
375
389
|
init: typeof init;
|
|
376
390
|
sendEvent: typeof sendEvent;
|
|
@@ -400,6 +414,7 @@ declare const _default: {
|
|
|
400
414
|
useReferralCode: typeof useReferralCode;
|
|
401
415
|
updateReferralCode: typeof updateReferralCode;
|
|
402
416
|
getAffiliateStats: typeof getAffiliateStats;
|
|
417
|
+
getAffiliateNewTraders: typeof getAffiliateNewTraders;
|
|
403
418
|
};
|
|
404
419
|
export default _default;
|
|
405
420
|
//# sourceMappingURL=core.d.ts.map
|
package/dist/core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAUtI,OAAO,EACL,SAAS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rG;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAGlF;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAGxF;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAG3G;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,sBAAsB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAGtG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BD,wBA8BE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as Fuul } from './core';
|
|
2
|
+
export type { AffiliateEarning, GetAffiliateStatsParams, GetAffiliateStatsResponse, GetNewTradersParams, NewTraderResponse, } from './affiliate-portal/types';
|
|
2
3
|
export * from './affiliates/errors';
|
|
3
|
-
export type { Conversion, EarningItem, GenerateReferralCodesParams, GenerateReferralCodesResponse, GetPayoutsByReferrerParams, GetReferralCodeParams, GetReferralCodeResponse, GetReferralStatusParams, GetReferralStatusResponse, ListUserReferralCodesParams, ListUserReferralCodesResponse, PayoutsByReferrerResponse, ReferrerPayoutData, UpdateReferralCodeParams, UseReferralCodeParams, UserReferralCode, } from './types/api';
|
|
4
|
+
export type { Affiliate, Conversion, EarningItem, GenerateReferralCodesParams, GenerateReferralCodesResponse, GetPayoutsByReferrerParams, GetReferralCodeParams, GetReferralCodeResponse, GetReferralStatusParams, GetReferralStatusResponse, ListUserReferralCodesParams, ListUserReferralCodesResponse, PayoutsByReferrerResponse, ReferrerPayoutData, UpdateReferralCodeParams, UseReferralCodeParams, UserReferralCode, } from './types/api';
|
|
4
5
|
export type { EventArgs, FuulSettings, IdentifyUserParams } from './types/sdk';
|
|
5
6
|
export { UserIdentifierType } from './types/user';
|
|
6
7
|
export type { GetUserReferrerParams, GetUserReferrerResponse } from './user/types';
|
|
7
|
-
export type { AffiliateEarning, GetAffiliateStatsParams, GetAffiliateStatsResponse } from './affiliate-portal/types';
|
|
8
8
|
export { Fuul };
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,cAAc,qBAAqB,CAAC;AACpC,YAAY,EACV,UAAU,EACV,WAAW,EACX,2BAA2B,EAC3B,6BAA6B,EAC7B,0BAA0B,EAC1B,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,6BAA6B,EAC7B,yBAAyB,EACzB,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,YAAY,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,YAAY,EACV,gBAAgB,EAChB,uBAAuB,EACvB,yBAAyB,EACzB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,0BAA0B,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,YAAY,EACV,SAAS,EACT,UAAU,EACV,WAAW,EACX,2BAA2B,EAC3B,6BAA6B,EAC7B,0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