@fuul/sdk 2.0.2 → 2.1.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
@@ -39,12 +39,17 @@ export declare function sendPageview(pageName?: string): Promise<void>;
39
39
  export declare function sendConnectWallet(userMetadata: UserMetadata): Promise<void>;
40
40
  /**
41
41
  * Generates a tracking link for an affiliate
42
- * @param {string} landingUrl - Landing URL of your project
42
+ * @param {string} baseUrl - Base url of the project
43
43
  * @param {string} affiliateAddress - Affiliate wallet address
44
- * @param {string} projectId - Project ID
45
44
  * @returns {string} Tracking link
45
+ * @example
46
+ * ```typescript
47
+ * const trackingLink = Fuul.generateTrackingLink('https://myproject.com', '0x12345')
48
+ * console.log(trackingLink) // https://myproject.com?af=0x12345
49
+ * ```
50
+ * @see https://docs.fuul.xyz/technical-guide-for-projects/creating-partners-tracking-links-using-the-fuul-sdk
46
51
  **/
47
- export declare function generateTrackingLink(landingUrl: string, affiliateAddress: string, projectId: string): string;
52
+ export declare function generateTrackingLink(baseUrl: string, affiliateAddress: string): string;
48
53
  export declare function getConversions(): Promise<Conversion[]>;
49
54
  declare const _default: {
50
55
  init: typeof init;
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/core.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,UAAU,EAAa,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAWpE,wBAAgB,IAAI,CAAC,QAAQ,EAAE,YAAY,QAoB1C;AAQD;;;;;;;;;GASG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,YAAY,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAuD1G;AAED;;;;;;;;;GASG;AACH,wBAAsB,YAAY,CAAC,QAAQ,CAAC,EA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