glitch-javascript-sdk 1.0.7 → 1.0.8

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.
@@ -416,5 +416,15 @@ declare class Campaigns {
416
416
  * @returns promise
417
417
  */
418
418
  static reviewInfluencerRequest<T>(campaign_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
419
+ /**
420
+ * Generate post content for the influencer to help them with their content creation.
421
+ *
422
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/generatePostContent
423
+ *
424
+ * @param campaign_id The id fo the campaign to retrieve.
425
+ *
426
+ * @returns promise
427
+ */
428
+ static generateContentForInfluencer<T>(campaign_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
419
429
  }
420
430
  export default Campaigns;
package/dist/esm/index.js CHANGED
@@ -9109,6 +9109,7 @@ var CampaignsRoute = /** @class */ (function () {
9109
9109
  declineInfluencerRequest: { url: '/campaigns/{campaign_id}/influencers/{user_id}/deny', method: HTTP_METHODS.POST },
9110
9110
  reviewInfluencerRequest: { url: '/campaigns/{campaign_id}/influencers/{user_id}/review', method: HTTP_METHODS.POST },
9111
9111
  getRecommendedInfluencers: { url: '/campaigns/{campaign_id}/recommendInfluencers', method: HTTP_METHODS.GET },
9112
+ generateContentForInfluencer: { url: '/campaigns/{campaign_id}/influencers/{user_id}/generatePostContent', method: HTTP_METHODS.POST },
9112
9113
  };
9113
9114
  return CampaignsRoute;
9114
9115
  }());
@@ -9619,6 +9620,18 @@ var Campaigns = /** @class */ (function () {
9619
9620
  Campaigns.reviewInfluencerRequest = function (campaign_id, user_id, data, params) {
9620
9621
  return Requests.processRoute(CampaignsRoute.routes.reviewInfluencerRequest, data, { campaign_id: campaign_id, user_id: user_id }, params);
9621
9622
  };
9623
+ /**
9624
+ * Generate post content for the influencer to help them with their content creation.
9625
+ *
9626
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/generatePostContent
9627
+ *
9628
+ * @param campaign_id The id fo the campaign to retrieve.
9629
+ *
9630
+ * @returns promise
9631
+ */
9632
+ Campaigns.generateContentForInfluencer = function (campaign_id, user_id, data, params) {
9633
+ return Requests.processRoute(CampaignsRoute.routes.generateContentForInfluencer, data, { campaign_id: campaign_id, user_id: user_id }, params);
9634
+ };
9622
9635
  return Campaigns;
9623
9636
  }());
9624
9637