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/cjs/index.js CHANGED
@@ -22332,6 +22332,7 @@ var CampaignsRoute = /** @class */ (function () {
22332
22332
  reviewInfluencerRequest: { url: '/campaigns/{campaign_id}/influencers/{user_id}/review', method: HTTP_METHODS.POST },
22333
22333
  getRecommendedInfluencers: { url: '/campaigns/{campaign_id}/recommendInfluencers', method: HTTP_METHODS.GET },
22334
22334
  generateContentForInfluencer: { url: '/campaigns/{campaign_id}/influencers/{user_id}/generatePostContent', method: HTTP_METHODS.POST },
22335
+ getActiveCampaignLinks: { url: '/campaigns/active', method: HTTP_METHODS.GET },
22335
22336
  };
22336
22337
  return CampaignsRoute;
22337
22338
  }());
@@ -22886,6 +22887,16 @@ var Campaigns = /** @class */ (function () {
22886
22887
  Campaigns.generateContentForInfluencer = function (campaign_id, user_id, data, params) {
22887
22888
  return Requests.processRoute(CampaignsRoute.routes.generateContentForInfluencer, data, { campaign_id: campaign_id, user_id: user_id }, params);
22888
22889
  };
22890
+ /**
22891
+ * Get a list of all active campaigns.
22892
+ *
22893
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/getActiveCampaignLinks
22894
+ *
22895
+ * @returns promise
22896
+ */
22897
+ Campaigns.getActiveCampaignLinks = function (params) {
22898
+ return Requests.processRoute(CampaignsRoute.routes.getActiveCampaignLinks, undefined, undefined, params);
22899
+ };
22889
22900
  return Campaigns;
22890
22901
  }());
22891
22902