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/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +2 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/api/Campaigns.ts +4 -4
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
|
|
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
package/src/api/Campaigns.ts
CHANGED
|
@@ -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,
|
|
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
|
|
106
|
-
return Requests.processRoute(CampaignsRoute.routes.
|
|
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
|
|