@fuul/sdk 7.7.1 → 7.8.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/README.md +55 -0
- package/dist/affiliates/AffiliateService.d.ts +2 -2
- package/dist/affiliates/AffiliateService.d.ts.map +1 -1
- package/dist/claim-checks/ClaimCheckService.d.ts +31 -0
- package/dist/claim-checks/ClaimCheckService.d.ts.map +1 -0
- package/dist/claim-checks/types/index.d.ts +62 -0
- package/dist/claim-checks/types/index.d.ts.map +1 -0
- package/dist/core.d.ts +42 -2
- package/dist/core.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1039 -991
- package/dist/index.umd.js +6 -6
- package/dist/release.json.d.ts +1 -1
- package/dist/types/api.d.ts +2 -1
- package/dist/types/api.d.ts.map +1 -1
- package/dist/types/sdk.d.ts +1 -1
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/user/types/index.d.ts +1 -1
- package/dist/user/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,3 +62,58 @@ await Fuul.identifyUser({
|
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
NOTE: Make sure to send the event when connecting a wallet for the first time as well as when changing wallets during the session.
|
|
65
|
+
|
|
66
|
+
## Claim Checks
|
|
67
|
+
|
|
68
|
+
The SDK provides methods to retrieve claim checks for users - these are claimable rewards that users can redeem on-chain.
|
|
69
|
+
|
|
70
|
+
### Get Claimable Checks
|
|
71
|
+
|
|
72
|
+
Retrieve all claimable claim checks for a user. This returns only unclaimed checks with valid (non-expired) deadlines.
|
|
73
|
+
|
|
74
|
+
```tsx
|
|
75
|
+
import { Fuul, UserIdentifierType } from '@fuul/sdk';
|
|
76
|
+
|
|
77
|
+
const claimableChecks = await Fuul.getClaimableChecks({
|
|
78
|
+
user_identifier: '0xe06099DbbF626892397f9A74C7f42F16748292Db',
|
|
79
|
+
user_identifier_type: UserIdentifierType.EvmAddress
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
// Process each claimable check
|
|
83
|
+
claimableChecks.forEach(check => {
|
|
84
|
+
console.log(`Amount: ${check.amount}`);
|
|
85
|
+
console.log(`Currency: ${check.currency}`);
|
|
86
|
+
console.log(`Deadline: ${new Date(check.deadline * 1000).toISOString()}`);
|
|
87
|
+
console.log(`Proof: ${check.proof}`);
|
|
88
|
+
console.log(`Signatures:`, check.signatures);
|
|
89
|
+
});
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
The response includes all the data needed for on-chain claim verification including cryptographic proofs and signatures.
|
|
93
|
+
|
|
94
|
+
### Get Claim Check Totals
|
|
95
|
+
|
|
96
|
+
Get aggregated totals of claimed and unclaimed claim checks for a user, grouped by currency.
|
|
97
|
+
|
|
98
|
+
```tsx
|
|
99
|
+
import { Fuul, UserIdentifierType } from '@fuul/sdk';
|
|
100
|
+
|
|
101
|
+
const totals = await Fuul.getClaimCheckTotals({
|
|
102
|
+
user_identifier: '0xe06099DbbF626892397f9A74C7f42F16748292Db',
|
|
103
|
+
user_identifier_type: UserIdentifierType.EvmAddress
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
// Display claimed totals
|
|
107
|
+
console.log('Claimed:');
|
|
108
|
+
totals.claimed.forEach(item => {
|
|
109
|
+
console.log(` ${item.currency_name}: ${item.amount} (${item.currency_address})`);
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
// Display unclaimed totals
|
|
113
|
+
console.log('Unclaimed:');
|
|
114
|
+
totals.unclaimed.forEach(item => {
|
|
115
|
+
console.log(` ${item.currency_name}: ${item.amount} (${item.currency_address})`);
|
|
116
|
+
});
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
This endpoint includes both expired and non-expired claims, providing a complete view of all historical and current claim checks.
|
|
@@ -9,8 +9,8 @@ export declare class AffiliateService {
|
|
|
9
9
|
private readonly httpClient;
|
|
10
10
|
private readonly _debug;
|
|
11
11
|
constructor(settings: AffiliateServiceSettings);
|
|
12
|
-
create(address: string, identifier_type: UserIdentifierType, code: string, signature: string, signaturePublicKey?: string, accountChainId?: number,
|
|
13
|
-
update(user_identifier: string, identifier_type: UserIdentifierType, code: string, signature: string, signaturePublicKey?: string, accountChainId?: number,
|
|
12
|
+
create(address: string, identifier_type: UserIdentifierType, code: string, signature: string, signaturePublicKey?: string, accountChainId?: number, userRebateRate?: number): Promise<void>;
|
|
13
|
+
update(user_identifier: string, identifier_type: UserIdentifierType, code: string, signature: string, signaturePublicKey?: string, accountChainId?: number, userRebateRate?: number): Promise<void>;
|
|
14
14
|
isCodeFree(code: string): Promise<boolean>;
|
|
15
15
|
getCode(address: string, identifier_type: UserIdentifierType): Promise<Affiliate | null>;
|
|
16
16
|
}
|
|
@@ -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;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,
|
|
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,cAAc,CAAC,EAAE,MAAM,GACtB,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,EACvB,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,IAAI,CAAC;IAsCH,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"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { HttpClient } from '../HttpClient';
|
|
2
|
+
import { GetClaimableChecksParams, GetClaimableChecksResponse, GetClaimCheckTotalsParams, GetClaimCheckTotalsResponse } from './types';
|
|
3
|
+
export type ClaimCheckServiceSettings = {
|
|
4
|
+
httpClient: HttpClient;
|
|
5
|
+
debug?: boolean;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Service for managing claim checks
|
|
9
|
+
*/
|
|
10
|
+
export declare class ClaimCheckService {
|
|
11
|
+
private readonly httpClient;
|
|
12
|
+
private readonly _debug;
|
|
13
|
+
constructor(settings: ClaimCheckServiceSettings);
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves all claimable claim checks for a user
|
|
16
|
+
* Returns only unclaimed checks with valid (non-expired) deadlines
|
|
17
|
+
*
|
|
18
|
+
* @param {GetClaimableChecksParams} params - User identifier parameters
|
|
19
|
+
* @returns {Promise<GetClaimableChecksResponse>} Array of claimable claim checks
|
|
20
|
+
*/
|
|
21
|
+
getClaimableChecks(params: GetClaimableChecksParams): Promise<GetClaimableChecksResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Gets aggregated totals of claimed and unclaimed claim checks for a user
|
|
24
|
+
* Includes both expired and non-expired claims, grouped by currency
|
|
25
|
+
*
|
|
26
|
+
* @param {GetClaimCheckTotalsParams} params - User identifier parameters
|
|
27
|
+
* @returns {Promise<GetClaimCheckTotalsResponse>} Totals grouped by status and currency
|
|
28
|
+
*/
|
|
29
|
+
getClaimCheckTotals(params: GetClaimCheckTotalsParams): Promise<GetClaimCheckTotalsResponse>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=ClaimCheckService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClaimCheckService.d.ts","sourceRoot":"","sources":["../../src/claim-checks/ClaimCheckService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAEvI,MAAM,MAAM,yBAAyB,GAAG;IACtC,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAIF;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;IACxC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;gBAEjC,QAAQ,EAAE,yBAAyB;IAK/C;;;;;;OAMG;IACU,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAWtG;;;;;;OAMG;IACU,mBAAmB,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAU1G"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { UserIdentifierType } from '../../types/user';
|
|
2
|
+
export interface GetClaimableChecksParams {
|
|
3
|
+
user_identifier: string;
|
|
4
|
+
user_identifier_type: UserIdentifierType;
|
|
5
|
+
}
|
|
6
|
+
export declare enum ClaimCheckReason {
|
|
7
|
+
AffiliatePayout = 0,
|
|
8
|
+
EndUserPayout = 1
|
|
9
|
+
}
|
|
10
|
+
export interface ClaimResponse {
|
|
11
|
+
project_address: string;
|
|
12
|
+
/**
|
|
13
|
+
* User's identifier (normalized/lowercased)
|
|
14
|
+
*/
|
|
15
|
+
to: string;
|
|
16
|
+
currency: string;
|
|
17
|
+
/**
|
|
18
|
+
* Currency type (always 1 for ERC20-type tokens)
|
|
19
|
+
*/
|
|
20
|
+
currency_type: number;
|
|
21
|
+
/**
|
|
22
|
+
* Token amount as string (with decimals)
|
|
23
|
+
*/
|
|
24
|
+
amount: string;
|
|
25
|
+
/**
|
|
26
|
+
* Reason for the payout (0 = AffiliatePayout, 1 = EndUserPayout)
|
|
27
|
+
*/
|
|
28
|
+
reason: ClaimCheckReason;
|
|
29
|
+
/**
|
|
30
|
+
* Token ID (always "0" for fungible tokens)
|
|
31
|
+
*/
|
|
32
|
+
token_id: string;
|
|
33
|
+
/**
|
|
34
|
+
* Claim deadline as Unix timestamp in seconds
|
|
35
|
+
*/
|
|
36
|
+
deadline: number;
|
|
37
|
+
proof: string;
|
|
38
|
+
signatures: string[];
|
|
39
|
+
}
|
|
40
|
+
export type GetClaimableChecksResponse = ClaimResponse[];
|
|
41
|
+
export interface GetClaimCheckTotalsParams {
|
|
42
|
+
user_identifier: string;
|
|
43
|
+
user_identifier_type: UserIdentifierType;
|
|
44
|
+
}
|
|
45
|
+
export interface ClaimCheckTotalItem {
|
|
46
|
+
currency_address: string;
|
|
47
|
+
currency_chain_id: string;
|
|
48
|
+
currency_name: string;
|
|
49
|
+
/**
|
|
50
|
+
* Number of decimal places for the token
|
|
51
|
+
*/
|
|
52
|
+
currency_decimals: number;
|
|
53
|
+
/**
|
|
54
|
+
* Total amount as string (summed across all claim checks)
|
|
55
|
+
*/
|
|
56
|
+
amount: string;
|
|
57
|
+
}
|
|
58
|
+
export interface GetClaimCheckTotalsResponse {
|
|
59
|
+
claimed: ClaimCheckTotalItem[];
|
|
60
|
+
unclaimed: ClaimCheckTotalItem[];
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/claim-checks/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,MAAM,WAAW,wBAAwB;IACvC,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,kBAAkB,CAAC;CAC1C;AAED,oBAAY,gBAAgB;IAC1B,eAAe,IAAI;IACnB,aAAa,IAAI;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,gBAAgB,CAAC;IAEzB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,MAAM,0BAA0B,GAAG,aAAa,EAAE,CAAC;AAEzD,MAAM,WAAW,yBAAyB;IACxC,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,kBAAkB,CAAC;CAC1C;AAED,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,SAAS,EAAE,mBAAmB,EAAE,CAAC;CAClC"}
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UserIdentifierType } from '.';
|
|
2
2
|
import { GetAffiliateStatsParams, GetAffiliateStatsResponse, GetNewTradersParams, NewTraderResponse } from './affiliate-portal/types';
|
|
3
|
+
import { GetClaimableChecksParams, GetClaimableChecksResponse, GetClaimCheckTotalsParams, GetClaimCheckTotalsResponse } from './claim-checks/types';
|
|
3
4
|
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';
|
|
4
5
|
import { AffiliateCodeParams, AffiliateLinkParams, EventArgs, FuulSettings, IdentifyUserParams } from './types/sdk';
|
|
5
6
|
import { GetUserReferrerParams, GetUserReferrerResponse } from './user/types';
|
|
@@ -61,7 +62,7 @@ export declare function identifyUser(params: IdentifyUserParams, projectIds?: st
|
|
|
61
62
|
* @param {string} params.signature Signed message authenticating address ownership. Message to be signed: `I confirm that I am creating the ${code} code on Fuul`
|
|
62
63
|
* @param {string} [params.signaturePublicKey] Public key used for signature verification
|
|
63
64
|
* @param {number} [params.accountChainId] Account chain id (required for EIP-1271 signature validation)
|
|
64
|
-
* @param {number} [params.
|
|
65
|
+
* @param {number} [params.userRebateRate] Percentage of rewards split to the user
|
|
65
66
|
* @example
|
|
66
67
|
* ```typescript
|
|
67
68
|
* await Fuul.createAffiliateCode({
|
|
@@ -83,7 +84,7 @@ export declare function createAffiliateCode(params: AffiliateCodeParams): Promis
|
|
|
83
84
|
* @param {string} params.signature Signed message authenticating code update. Message to be signed: `I confirm that I am updating my code to ${code} on Fuul`
|
|
84
85
|
* @param {string} [params.signaturePublicKey] Public key used for signature verification
|
|
85
86
|
* @param {number} [params.accountChainId] Account chain id (required for EIP-1271 signature validation)
|
|
86
|
-
* @param {number} [params.
|
|
87
|
+
* @param {number} [params.userRebateRate] Percentage of rewards split to the user
|
|
87
88
|
* @example
|
|
88
89
|
* ```typescript
|
|
89
90
|
* await Fuul.updateAffiliateCode({
|
|
@@ -387,6 +388,43 @@ export declare function getAffiliateStats(params: GetAffiliateStatsParams): Prom
|
|
|
387
388
|
* ```
|
|
388
389
|
*/
|
|
389
390
|
export declare function getAffiliateNewTraders(params: GetNewTradersParams): Promise<NewTraderResponse[]>;
|
|
391
|
+
/**
|
|
392
|
+
* Gets all claimable claim checks for a user within a project
|
|
393
|
+
* Returns only unclaimed checks with valid (non-expired) deadlines
|
|
394
|
+
* @param {GetClaimableChecksParams} params Get claimable checks parameters
|
|
395
|
+
* @returns {Promise<GetClaimableChecksResponse>} Array of claimable claim checks
|
|
396
|
+
* @example
|
|
397
|
+
* ```typescript
|
|
398
|
+
* const claimableChecks = await Fuul.getClaimableChecks({
|
|
399
|
+
* user_identifier: '0x12345',
|
|
400
|
+
* user_identifier_type: UserIdentifierType.EvmAddress
|
|
401
|
+
* });
|
|
402
|
+
* console.log('Claimable checks:', claimableChecks.length);
|
|
403
|
+
* claimableChecks.forEach(check => {
|
|
404
|
+
* console.log(`Amount: ${check.amount}, Currency: ${check.currency}, Deadline: ${check.deadline}`);
|
|
405
|
+
* });
|
|
406
|
+
* ```
|
|
407
|
+
*/
|
|
408
|
+
export declare function getClaimableChecks(params: GetClaimableChecksParams): Promise<GetClaimableChecksResponse>;
|
|
409
|
+
/**
|
|
410
|
+
* Gets totals of claimed and unclaimed claim checks for a user
|
|
411
|
+
* Includes both expired and non-expired claims, aggregated by currency
|
|
412
|
+
* @param {GetClaimCheckTotalsParams} params Get claim check totals parameters
|
|
413
|
+
* @returns {Promise<GetClaimCheckTotalsResponse>} Claim check totals grouped by status and currency
|
|
414
|
+
* @example
|
|
415
|
+
* ```typescript
|
|
416
|
+
* const totals = await Fuul.getClaimCheckTotals({
|
|
417
|
+
* user_identifier: '0x12345',
|
|
418
|
+
* user_identifier_type: UserIdentifierType.EvmAddress
|
|
419
|
+
* });
|
|
420
|
+
* console.log('Claimed totals:', totals.claimed);
|
|
421
|
+
* console.log('Unclaimed totals:', totals.unclaimed);
|
|
422
|
+
* totals.unclaimed.forEach(item => {
|
|
423
|
+
* console.log(`${item.currency_name}: ${item.amount} (${item.currency_address})`);
|
|
424
|
+
* });
|
|
425
|
+
* ```
|
|
426
|
+
*/
|
|
427
|
+
export declare function getClaimCheckTotals(params: GetClaimCheckTotalsParams): Promise<GetClaimCheckTotalsResponse>;
|
|
390
428
|
declare const _default: {
|
|
391
429
|
init: typeof init;
|
|
392
430
|
sendEvent: typeof sendEvent;
|
|
@@ -417,6 +455,8 @@ declare const _default: {
|
|
|
417
455
|
updateReferralCode: typeof updateReferralCode;
|
|
418
456
|
getAffiliateStats: typeof getAffiliateStats;
|
|
419
457
|
getAffiliateNewTraders: typeof getAffiliateNewTraders;
|
|
458
|
+
getClaimableChecks: typeof getClaimableChecks;
|
|
459
|
+
getClaimCheckTotals: typeof getClaimCheckTotals;
|
|
420
460
|
};
|
|
421
461
|
export default _default;
|
|
422
462
|
//# 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;AAEvC,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,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;AAItI,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAQpJ,OAAO,EACL,SAAS,EACT,UAAU,EAEV,2BAA2B,EAC3B,6BAA6B,EAC7B,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EACrB,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;;;;;;;;;;;;;;;;;;;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;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAG9G;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAGjH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BD,wBAgCE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as Fuul } from './core';
|
|
2
2
|
export type { AffiliateEarning, GetAffiliateStatsParams, GetAffiliateStatsResponse, GetNewTradersParams, NewTraderResponse, } from './affiliate-portal/types';
|
|
3
3
|
export * from './affiliates/errors';
|
|
4
|
+
export type { ClaimCheckReason, ClaimCheckTotalItem, ClaimResponse, GetClaimableChecksParams, GetClaimableChecksResponse, GetClaimCheckTotalsParams, GetClaimCheckTotalsResponse, } from './claim-checks/types';
|
|
4
5
|
export type { Affiliate, Conversion, EarningItem, GenerateReferralCodesParams, GenerateReferralCodesResponse, GetPayoutsByReferrerParams, GetReferralCodeParams, GetReferralCodeResponse, GetReferralStatusParams, GetReferralStatusResponse, ListUserReferralCodesParams, ListUserReferralCodesResponse, PayoutsByReferrerResponse, ReferrerPayoutData, UpdateReferralCodeParams, UseReferralCodeParams, UserReferralCode, } from './types/api';
|
|
5
6
|
export type { EventArgs, FuulSettings, IdentifyUserParams } from './types/sdk';
|
|
6
7
|
export { UserIdentifierType } from './types/user';
|
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,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,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;AAEnF,OAAO,EAAE,IAAI,EAAE,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,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,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