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.
@@ -56,7 +56,7 @@ declare class Campaigns {
56
56
  *
57
57
  * @returns promise
58
58
  */
59
- static getLedger<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
59
+ static getLedger<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
60
60
  /**
61
61
  * List all the campaign links.
62
62
  *
@@ -72,7 +72,7 @@ declare class Campaigns {
72
72
  *
73
73
  * @returns promise
74
74
  */
75
- static listCampaignLinkClicks<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
75
+ static listInfluencerCampaignLinkClicks<T>(campaign_id: string, user_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
76
76
  /**
77
77
  * Create a new campaign link.
78
78
  *
package/dist/esm/index.js CHANGED
@@ -9160,8 +9160,8 @@ var Campaigns = /** @class */ (function () {
9160
9160
  *
9161
9161
  * @returns promise
9162
9162
  */
9163
- Campaigns.getLedger = function (params) {
9164
- return Requests.processRoute(CampaignsRoute.routes.getLedger, undefined, undefined, params);
9163
+ Campaigns.getLedger = function (campaign_id, params) {
9164
+ return Requests.processRoute(CampaignsRoute.routes.getLedger, undefined, { campaign_id: campaign_id }, params);
9165
9165
  };
9166
9166
  /**
9167
9167
  * List all the campaign links.
@@ -9180,8 +9180,8 @@ var Campaigns = /** @class */ (function () {
9180
9180
  *
9181
9181
  * @returns promise
9182
9182
  */
9183
- Campaigns.listCampaignLinkClicks = function (campaign_id, params) {
9184
- return Requests.processRoute(CampaignsRoute.routes.listCampaignLinkClicks, undefined, { campaign_id: campaign_id }, params);
9183
+ Campaigns.listInfluencerCampaignLinkClicks = function (campaign_id, user_id, params) {
9184
+ return Requests.processRoute(CampaignsRoute.routes.listInfluencerCampaignLinkClicks, undefined, { campaign_id: campaign_id, user_id: user_id }, params);
9185
9185
  };
9186
9186
  /**
9187
9187
  * Create a new campaign link.