@fuul/sdk 6.1.1 → 7.0.0-beta.1
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 +7 -7
- package/dist/EventService.d.ts.map +1 -1
- package/dist/affiliates/AffiliateService.d.ts +4 -4
- package/dist/affiliates/AffiliateService.d.ts.map +1 -1
- package/dist/core.d.ts +33 -33
- package/dist/core.d.ts.map +1 -1
- package/dist/index.d.ts +2 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +155 -141
- package/dist/index.umd.js +3 -3
- package/dist/release.json.d.ts +1 -1
- package/dist/types/api.d.ts +21 -10
- package/dist/types/api.d.ts.map +1 -1
- package/dist/types/sdk.d.ts +6 -6
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/types/user.d.ts +6 -0
- package/dist/types/user.d.ts.map +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ Now you can start sending events.
|
|
|
34
34
|
|
|
35
35
|
### 3. Sending events
|
|
36
36
|
|
|
37
|
-
For Fuul to attribute conversion events you'll need to report the
|
|
37
|
+
For Fuul to attribute conversion events you'll need to report the following tracking events
|
|
38
38
|
|
|
39
39
|
#### Page view event
|
|
40
40
|
|
|
@@ -46,19 +46,19 @@ import { Fuul } from ('@fuul/sdk');
|
|
|
46
46
|
await Fuul.sendPageview();
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
####
|
|
49
|
+
#### Identify user
|
|
50
50
|
|
|
51
51
|
Projects must send this event every time users connect a wallet to their website.
|
|
52
52
|
|
|
53
|
-
NOTE: Make sure to send the event when connecting a wallet for the first time as well as when changing wallets during the session.
|
|
54
|
-
|
|
55
53
|
```tsx
|
|
56
54
|
import { Fuul } from ('@fuul/sdk');
|
|
57
55
|
|
|
58
|
-
await Fuul.
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
await Fuul.identifyUser({
|
|
57
|
+
userIdentifier: "0xe06099DbbF626892397f9A74C7f42F16748292Db",
|
|
58
|
+
identifierType: UserIdentifierType.EvmAddress,
|
|
61
59
|
signature: "0xb823038d78e541470946e5125b74878c226a84f891671946f18fbe7e5995171731b92f569c3e83f1c9fb89c5351245494c5d2ce6273f74c853a2cace6073f09c1c",
|
|
62
60
|
message: "Connect wallet"
|
|
63
61
|
});
|
|
64
62
|
```
|
|
63
|
+
|
|
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.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventService.d.ts","sourceRoot":"","sources":["../src/EventService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,kCAAkC,KAAK,CAAC;AACrD,eAAO,MAAM,6BAA6B,mBAAmB,CAAC;AAC9D,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAU;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;gBAE5B,QAAQ,EAAE,oBAAoB;IAK7B,SAAS,CAAC,KAAK,EAAE,SAAS,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBvE,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO;
|
|
1
|
+
{"version":3,"file":"EventService.d.ts","sourceRoot":"","sources":["../src/EventService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,kCAAkC,KAAK,CAAC;AACrD,eAAO,MAAM,6BAA6B,mBAAmB,CAAC;AAC9D,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAU;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;gBAE5B,QAAQ,EAAE,oBAAoB;IAK7B,SAAS,CAAC,KAAK,EAAE,SAAS,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBvE,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO;IA2CjD,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,aAAa;CAwCtB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserIdentifierType } from '..';
|
|
2
2
|
import { HttpClient } from '../HttpClient';
|
|
3
3
|
export type AffiliateServiceSettings = {
|
|
4
4
|
httpClient: HttpClient;
|
|
@@ -8,9 +8,9 @@ export declare class AffiliateService {
|
|
|
8
8
|
private readonly httpClient;
|
|
9
9
|
private readonly _debug;
|
|
10
10
|
constructor(settings: AffiliateServiceSettings);
|
|
11
|
-
create(address: string,
|
|
12
|
-
update(
|
|
11
|
+
create(address: string, identifier_type: UserIdentifierType, code: string, signature: string, accountChainId?: number): Promise<void>;
|
|
12
|
+
update(user_identifier: string, identifier_type: UserIdentifierType, code: string, signature: string, accountChainId?: number): Promise<void>;
|
|
13
13
|
isCodeFree(code: string): Promise<boolean>;
|
|
14
|
-
getCode(address: string,
|
|
14
|
+
getCode(address: string, identifier_type: UserIdentifierType): Promise<string | null>;
|
|
15
15
|
}
|
|
16
16
|
//# 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,
|
|
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;AAI3C,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,CAAC,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAqCrI,MAAM,CACjB,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,kBAAkB,EACnC,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,IAAI,CAAC;IAoCH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAe1C,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAcnG"}
|
package/dist/core.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserIdentifierType } from '.';
|
|
2
2
|
import { Conversion, GetConversionsParams, GetPayoutsLeaderboardParams, GetPointsLeaderboardParams, GetReferredUsersLeaderboardParams, GetUserAudiencesParams, GetUserAudiencesResponse, GetUserPayoutMovementsParams, GetUserPayoutsByConversionParams, GetUserPointsByConversionParams, GetUserPointsMovementsParams, GetVolumeLeaderboardParams, LeaderboardResponse, PayoutsLeaderboard, PointsLeaderboard, ReferredUsersLeaderboard, UserPayoutMovementsResponse, UserPayoutsByConversionResponse, UserPointsByConversionResponse, UserPointsMovementsResponse, VolumeLeaderboard } from './types/api';
|
|
3
|
-
import { AffiliateCodeParams, AffiliateLinkParams,
|
|
3
|
+
import { AffiliateCodeParams, AffiliateLinkParams, EventArgs, FuulSettings, IdentifyUserParams } from './types/sdk';
|
|
4
4
|
import { GetUserAffiliatesParams, UserAffiliate } from './user/types';
|
|
5
5
|
export declare function init(settings: FuulSettings): void;
|
|
6
6
|
/**
|
|
@@ -25,43 +25,43 @@ export declare function sendEvent(name: string, args?: EventArgs): Promise<void>
|
|
|
25
25
|
*/
|
|
26
26
|
export declare function sendPageview(pageName?: string, projectIds?: string[]): Promise<void>;
|
|
27
27
|
/**
|
|
28
|
-
* @param {
|
|
28
|
+
* @param {IdentifyUserParams} IdentifyUserParams Identify user params
|
|
29
29
|
* @see https://docs.fuul.xyz/for-devs/tracking-referrals-in-your-app#connect-wallet-event
|
|
30
30
|
* @returns {Promise<void>}
|
|
31
31
|
* @example
|
|
32
32
|
* ```typescript
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
33
|
+
* identifyUser({
|
|
34
|
+
* identifier: '0x12345',
|
|
35
|
+
* identifierType: UserIdentifierType.EvmAddress,
|
|
36
36
|
* signature: '0xaad9a0b62f87c15a248cb99ca926785b828b5',
|
|
37
37
|
* signatureMessage: 'Accept referral from Fuul'
|
|
38
38
|
* })
|
|
39
39
|
*
|
|
40
40
|
*
|
|
41
41
|
* // You can also send the account chain id if you are using a smart contract account (EIP-1271)
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
42
|
+
* identifyUser({
|
|
43
|
+
* identifier: '0x12345',
|
|
44
|
+
* identifierType: UserIdentifierType.EvmAddress,
|
|
45
45
|
* signature: '0xaad9a0b62f87c15a248cb99ca926785b828b5',
|
|
46
46
|
* signatureMessage: 'Accept referral from Fuul'
|
|
47
47
|
* accountChainId: 8453,
|
|
48
48
|
* })
|
|
49
49
|
* ```
|
|
50
50
|
*/
|
|
51
|
-
export declare function
|
|
51
|
+
export declare function identifyUser(params: IdentifyUserParams, projectIds?: string[]): Promise<void>;
|
|
52
52
|
/**
|
|
53
53
|
* Creates a code registered to an affiliate address
|
|
54
54
|
* @param {object} params Create affiliate code parameters
|
|
55
|
-
* @param {string} params.
|
|
56
|
-
* @param {
|
|
55
|
+
* @param {string} params.userIdentifier The affiliate identifier
|
|
56
|
+
* @param {UserIdentifierType} params.identifierType The affiliate identifier type
|
|
57
57
|
* @param {string} params.code Affiliate code to map address to
|
|
58
58
|
* @param {string} params.signature Signed message authenticating address ownership. Message to be signed: `I confirm that I am creating the ${code} code on Fuul`
|
|
59
59
|
* @param {number} [params.accountChainId] Account chain id (required for EIP-1271 signature validation)
|
|
60
60
|
* @example
|
|
61
61
|
* ```typescript
|
|
62
62
|
* await Fuul.createAffiliateCode({
|
|
63
|
-
*
|
|
64
|
-
*
|
|
63
|
+
* userIdentifier: '0x12345',
|
|
64
|
+
* identifierType: UserIdentifierType.EvmAddress,
|
|
65
65
|
* code: 'my-cool-code',
|
|
66
66
|
* signature: '<signature>'
|
|
67
67
|
* })
|
|
@@ -71,16 +71,16 @@ export declare function createAffiliateCode(params: AffiliateCodeParams): Promis
|
|
|
71
71
|
/**
|
|
72
72
|
* Updates the code registered to an affiliate address
|
|
73
73
|
* @param {object} params Update affiliate code parameters
|
|
74
|
-
* @param {string} params.
|
|
75
|
-
* @param {
|
|
74
|
+
* @param {string} params.userIdentifier Affiliate identifier
|
|
75
|
+
* @param {UserIdentifierType} params.identifierType Affiliate identifier type
|
|
76
76
|
* @param {string} params.code New affiliate code
|
|
77
77
|
* @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`
|
|
78
78
|
* @param {number} [params.accountChainId] Account chain id (required for EIP-1271 signature validation)
|
|
79
79
|
* @example
|
|
80
80
|
* ```typescript
|
|
81
81
|
* await Fuul.updateAffiliateCode({
|
|
82
|
-
*
|
|
83
|
-
*
|
|
82
|
+
* userIdentifier: '0x12345',
|
|
83
|
+
* identifierType: UserIdentifierType.EvmAddress,
|
|
84
84
|
* code: 'my-new-cool-code',
|
|
85
85
|
* signature: '<signature>'
|
|
86
86
|
* })
|
|
@@ -88,16 +88,16 @@ export declare function createAffiliateCode(params: AffiliateCodeParams): Promis
|
|
|
88
88
|
**/
|
|
89
89
|
export declare function updateAffiliateCode(params: AffiliateCodeParams): Promise<void>;
|
|
90
90
|
/**
|
|
91
|
-
* Gets the code registered to an affiliate
|
|
92
|
-
* @param {string}
|
|
93
|
-
* @param {
|
|
91
|
+
* Gets the code registered to an affiliate
|
|
92
|
+
* @param {string} userIdentifier Affiliate identifier
|
|
93
|
+
* @param {UserIdentifierType} identifierType Affiliate identifier type
|
|
94
94
|
* @returns {string} Affiliate code
|
|
95
95
|
* @example
|
|
96
96
|
* ```typescript
|
|
97
|
-
* const code = await Fuul.getAffiliateCode('0x12345');
|
|
97
|
+
* const code = await Fuul.getAffiliateCode('0x12345', UserIdentifierType.EvmAddress);
|
|
98
98
|
* ```
|
|
99
99
|
**/
|
|
100
|
-
export declare function getAffiliateCode(
|
|
100
|
+
export declare function getAffiliateCode(userIdentifier: string, identifierType: UserIdentifierType): Promise<string | null>;
|
|
101
101
|
/**
|
|
102
102
|
* Checks if an affiliate code is free to use
|
|
103
103
|
* @param {string} code Affiliate code to check
|
|
@@ -113,8 +113,8 @@ export declare function isAffiliateCodeFree(code: string): Promise<boolean>;
|
|
|
113
113
|
/**
|
|
114
114
|
* Generates a tracking link for an affiliate
|
|
115
115
|
* @param {string} baseUrl Base url of the project
|
|
116
|
-
* @param {string} affiliateAddress Affiliate
|
|
117
|
-
* @param {
|
|
116
|
+
* @param {string} affiliateAddress Affiliate identifier
|
|
117
|
+
* @param {UserIdentifierType} identifierType The affiliate identifier type
|
|
118
118
|
* @param {AffiliateLinkParams} params Optional tracking parameters
|
|
119
119
|
* @returns {string} Tracking link
|
|
120
120
|
* @example
|
|
@@ -124,7 +124,7 @@ export declare function isAffiliateCodeFree(code: string): Promise<boolean>;
|
|
|
124
124
|
* ```
|
|
125
125
|
* @see https://docs.fuul.xyz/for-devs/building-your-incentives-hub-in-your-app-white-label/creating-affiliate-links-or-codes
|
|
126
126
|
**/
|
|
127
|
-
export declare function generateTrackingLink(baseUrl: string,
|
|
127
|
+
export declare function generateTrackingLink(baseUrl: string, userIdentifier: string, identifierType: UserIdentifierType, params?: AffiliateLinkParams): Promise<string>;
|
|
128
128
|
/**
|
|
129
129
|
* Gets the project payouts leaderboard
|
|
130
130
|
* @param {GetPayoutsLeaderboardParams} params The search params
|
|
@@ -161,7 +161,7 @@ export declare function getReferredUsersLeaderboard(params: GetReferredUsersLead
|
|
|
161
161
|
* @returns {LeaderboardResponse<VolumeLeaderboard>} Value leaderboard response
|
|
162
162
|
* @example
|
|
163
163
|
* ```typescript
|
|
164
|
-
* const results = await Fuul.getVolumeLeaderboard({
|
|
164
|
+
* const results = await Fuul.getVolumeLeaderboard({ user_identifier: '0x12345', identifier_type: UserIdentifierType.EvmAddress });})
|
|
165
165
|
* ```
|
|
166
166
|
**/
|
|
167
167
|
export declare function getVolumeLeaderboard(params: GetVolumeLeaderboardParams): Promise<LeaderboardResponse<VolumeLeaderboard>>;
|
|
@@ -171,7 +171,7 @@ export declare function getVolumeLeaderboard(params: GetVolumeLeaderboardParams)
|
|
|
171
171
|
* @returns {UserPayoutsByConversionResponse} User payouts by conversion
|
|
172
172
|
* @example
|
|
173
173
|
* ```typescript
|
|
174
|
-
* const results = await Fuul.getUserPayoutsByConversion({
|
|
174
|
+
* const results = await Fuul.getUserPayoutsByConversion({ user_identifier: '0x12345', identifier_type: UserIdentifierType.EvmAddress }});
|
|
175
175
|
* ```
|
|
176
176
|
**/
|
|
177
177
|
export declare function getUserPayoutsByConversion(params: GetUserPayoutsByConversionParams): Promise<UserPayoutsByConversionResponse>;
|
|
@@ -181,7 +181,7 @@ export declare function getUserPayoutsByConversion(params: GetUserPayoutsByConve
|
|
|
181
181
|
* @returns {UserPointsByConversionResponse} User points by conversion
|
|
182
182
|
* @example
|
|
183
183
|
* ```typescript
|
|
184
|
-
* const results = await Fuul.getUserPointsByConversion({
|
|
184
|
+
* const results = await Fuul.getUserPointsByConversion({ user_identifier: '0x12345', identifier_type: UserIdentifierType.EvmAddress }});
|
|
185
185
|
* ```
|
|
186
186
|
**/
|
|
187
187
|
export declare function getUserPointsByConversion(params: GetUserPointsByConversionParams): Promise<UserPointsByConversionResponse>;
|
|
@@ -191,7 +191,7 @@ export declare function getUserPointsByConversion(params: GetUserPointsByConvers
|
|
|
191
191
|
* @returns {UserPayoutMovementsResponse} User payout movements
|
|
192
192
|
* @example
|
|
193
193
|
* ```typescript
|
|
194
|
-
* const results = await Fuul.getUserPayoutMovements({
|
|
194
|
+
* const results = await Fuul.getUserPayoutMovements({ user_identifier: '0x12345', identifier_type: UserIdentifierType.EvmAddress }});
|
|
195
195
|
* ```
|
|
196
196
|
**/
|
|
197
197
|
export declare function getUserPayoutMovements(params: GetUserPayoutMovementsParams): Promise<UserPayoutMovementsResponse>;
|
|
@@ -201,7 +201,7 @@ export declare function getUserPayoutMovements(params: GetUserPayoutMovementsPar
|
|
|
201
201
|
* @returns {UserPointsMovementsResponse} User payout movements
|
|
202
202
|
* @example
|
|
203
203
|
* ```typescript
|
|
204
|
-
* const results = await Fuul.getUserPointsMovements({
|
|
204
|
+
* const results = await Fuul.getUserPointsMovements({ user_identifier: '0x12345', identifier_type: UserIdentifierType.EvmAddress }});
|
|
205
205
|
* ```
|
|
206
206
|
**/
|
|
207
207
|
export declare function getUserPointsMovements(params: GetUserPointsMovementsParams): Promise<UserPointsMovementsResponse>;
|
|
@@ -211,7 +211,7 @@ export declare function getUserPointsMovements(params: GetUserPointsMovementsPar
|
|
|
211
211
|
* @returns {Conversion[]} List of conversions
|
|
212
212
|
* @example
|
|
213
213
|
* ```typescript
|
|
214
|
-
* const results = await Fuul.getConversions({
|
|
214
|
+
* const results = await Fuul.getConversions({ user_identifier: '0x12345', identifier_type: UserIdentifierType.EvmAddress });});
|
|
215
215
|
* ```
|
|
216
216
|
**/
|
|
217
217
|
export declare function getConversions(params?: GetConversionsParams): Promise<Conversion[]>;
|
|
@@ -239,7 +239,7 @@ declare const _default: {
|
|
|
239
239
|
init: typeof init;
|
|
240
240
|
sendEvent: typeof sendEvent;
|
|
241
241
|
sendPageview: typeof sendPageview;
|
|
242
|
-
|
|
242
|
+
identifyUser: typeof identifyUser;
|
|
243
243
|
generateTrackingLink: typeof generateTrackingLink;
|
|
244
244
|
getConversions: typeof getConversions;
|
|
245
245
|
createAffiliateCode: typeof createAffiliateCode;
|
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,
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAC;AASvC,OAAO,EACL,UAAU,EAEV,oBAAoB,EACpB,2BAA2B,EAC3B,0BAA0B,EAC1B,iCAAiC,EACjC,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,EAC5B,gCAAgC,EAChC,+BAA+B,EAC/B,4BAA4B,EAC5B,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EACxB,2BAA2B,EAC3B,+BAA+B,EAC/B,8BAA8B,EAC9B,2BAA2B,EAC3B,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iB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAGjG;AAED;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAGxG;;;;;;;;;;;;;;;;;;;;;;;AA6BD,wBAqBE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { default as Fuul } from './core';
|
|
2
2
|
export * from './affiliates/errors';
|
|
3
3
|
export type { Conversion } from './types/api';
|
|
4
|
-
export type {
|
|
5
|
-
export
|
|
6
|
-
Ethereum = "ethereum",
|
|
7
|
-
Solana = "solana"
|
|
8
|
-
}
|
|
4
|
+
export type { EventArgs, FuulSettings, IdentifyUserParams } from './types/sdk';
|
|
5
|
+
export { UserIdentifierType } from './types/user';
|
|
9
6
|
export { Fuul };
|
|
10
7
|
//# 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,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EAAE,
|
|
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,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,IAAI,EAAE,CAAC"}
|