glitch-javascript-sdk 0.9.9 → 1.0.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/dist/index.d.ts CHANGED
@@ -2445,7 +2445,7 @@ declare class Campaigns {
2445
2445
  *
2446
2446
  * @returns promise
2447
2447
  */
2448
- static getLedger<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
2448
+ static getLedger<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
2449
2449
  /**
2450
2450
  * List all the campaign links.
2451
2451
  *
@@ -2461,7 +2461,7 @@ declare class Campaigns {
2461
2461
  *
2462
2462
  * @returns promise
2463
2463
  */
2464
- static listCampaignLinkClicks<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
2464
+ static listInfluencerCampaignLinkClicks<T>(campaign_id: string, user_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
2465
2465
  /**
2466
2466
  * Create a new campaign link.
2467
2467
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "0.9.9",
3
+ "version": "1.0.1",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -79,8 +79,8 @@ class Campaigns {
79
79
  *
80
80
  * @returns promise
81
81
  */
82
- public static getLedger<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
83
- return Requests.processRoute(CampaignsRoute.routes.getLedger, undefined, undefined, params);
82
+ public static getLedger<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
83
+ return Requests.processRoute(CampaignsRoute.routes.getLedger, undefined, { campaign_id: campaign_id }, params);
84
84
  }
85
85
 
86
86
 
@@ -102,8 +102,8 @@ class Campaigns {
102
102
  *
103
103
  * @returns promise
104
104
  */
105
- public static listCampaignLinkClicks<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
106
- return Requests.processRoute(CampaignsRoute.routes.listCampaignLinkClicks, undefined, { campaign_id: campaign_id }, params);
105
+ public static listInfluencerCampaignLinkClicks<T>(campaign_id: string, user_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
106
+ return Requests.processRoute(CampaignsRoute.routes.listInfluencerCampaignLinkClicks, undefined, { campaign_id: campaign_id, user_id : user_id }, params);
107
107
  }
108
108
 
109
109