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.
package/dist/index.d.ts CHANGED
@@ -2816,6 +2816,16 @@ declare class Campaigns {
2816
2816
  * @returns promise
2817
2817
  */
2818
2818
  static reviewInfluencerRequest<T>(campaign_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
2819
+ /**
2820
+ * Generate post content for the influencer to help them with their content creation.
2821
+ *
2822
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/generatePostContent
2823
+ *
2824
+ * @param campaign_id The id fo the campaign to retrieve.
2825
+ *
2826
+ * @returns promise
2827
+ */
2828
+ static generateContentForInfluencer<T>(campaign_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
2819
2829
  }
2820
2830
 
2821
2831
  declare class Subscriptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -594,6 +594,20 @@ class Campaigns {
594
594
  return Requests.processRoute(CampaignsRoute.routes.reviewInfluencerRequest, data, { campaign_id: campaign_id, user_id: user_id }, params);
595
595
  }
596
596
 
597
+ /**
598
+ * Generate post content for the influencer to help them with their content creation.
599
+ *
600
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/generatePostContent
601
+ *
602
+ * @param campaign_id The id fo the campaign to retrieve.
603
+ *
604
+ * @returns promise
605
+ */
606
+ public static generateContentForInfluencer<T>(campaign_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
607
+
608
+ return Requests.processRoute(CampaignsRoute.routes.generateContentForInfluencer, data, { campaign_id: campaign_id, user_id: user_id }, params);
609
+ }
610
+
597
611
 
598
612
  }
599
613
 
@@ -47,7 +47,8 @@ class CampaignsRoute {
47
47
  acceptInfluencerRequest : { url: '/campaigns/{campaign_id}/influencers/{user_id}/accept', method: HTTP_METHODS.POST },
48
48
  declineInfluencerRequest : { url: '/campaigns/{campaign_id}/influencers/{user_id}/deny', method: HTTP_METHODS.POST },
49
49
  reviewInfluencerRequest : { url: '/campaigns/{campaign_id}/influencers/{user_id}/review', method: HTTP_METHODS.POST },
50
- getRecommendedInfluencers : { url: '/campaigns/{campaign_id}/recommendInfluencers', method: HTTP_METHODS.GET },
50
+ getRecommendedInfluencers : { url: '/campaigns/{campaign_id}/recommendInfluencers', method: HTTP_METHODS.GET },
51
+ generateContentForInfluencer : { url: '/campaigns/{campaign_id}/influencers/{user_id}/generatePostContent', method: HTTP_METHODS.POST },
51
52
  };
52
53
 
53
54
  }