glitch-javascript-sdk 1.1.2 → 1.1.3

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
@@ -2878,6 +2878,14 @@ declare class Campaigns {
2878
2878
  * @returns promise
2879
2879
  */
2880
2880
  static generateContentForInfluencer<T>(campaign_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
2881
+ /**
2882
+ * Get a list of all active campaigns.
2883
+ *
2884
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/getActiveCampaignLinks
2885
+ *
2886
+ * @returns promise
2887
+ */
2888
+ static getActiveCampaignLinks<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
2881
2889
  }
2882
2890
 
2883
2891
  declare class Subscriptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -645,6 +645,17 @@ class Campaigns {
645
645
  return Requests.processRoute(CampaignsRoute.routes.generateContentForInfluencer, data, { campaign_id: campaign_id, user_id: user_id }, params);
646
646
  }
647
647
 
648
+ /**
649
+ * Get a list of all active campaigns.
650
+ *
651
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/getActiveCampaignLinks
652
+ *
653
+ * @returns promise
654
+ */
655
+ public static getActiveCampaignLinks<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
656
+ return Requests.processRoute(CampaignsRoute.routes.getActiveCampaignLinks, undefined, undefined, params);
657
+ }
658
+
648
659
 
649
660
  }
650
661
 
@@ -51,7 +51,8 @@ class CampaignsRoute {
51
51
  declineInfluencerRequest : { url: '/campaigns/{campaign_id}/influencers/{user_id}/deny', method: HTTP_METHODS.POST },
52
52
  reviewInfluencerRequest : { url: '/campaigns/{campaign_id}/influencers/{user_id}/review', method: HTTP_METHODS.POST },
53
53
  getRecommendedInfluencers : { url: '/campaigns/{campaign_id}/recommendInfluencers', method: HTTP_METHODS.GET },
54
- generateContentForInfluencer : { url: '/campaigns/{campaign_id}/influencers/{user_id}/generatePostContent', method: HTTP_METHODS.POST },
54
+ generateContentForInfluencer : { url: '/campaigns/{campaign_id}/influencers/{user_id}/generatePostContent', method: HTTP_METHODS.POST },
55
+ getActiveCampaignLinks : { url: '/campaigns/active', method: HTTP_METHODS.GET },
55
56
  };
56
57
 
57
58
  }