glitch-javascript-sdk 1.0.7 → 1.0.9

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;
@@ -27,5 +27,15 @@ declare class SocialPosts {
27
27
  * @returns promise
28
28
  */
29
29
  static view<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
30
+ /**
31
+ * Dispute a post as being fraudulent.,s
32
+ *
33
+ * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/disputePost
34
+ *
35
+ * @param post_id The id fo the post to retrieve.
36
+ *
37
+ * @returns promise
38
+ */
39
+ static dispute<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
30
40
  }
31
41
  export default SocialPosts;
package/dist/esm/index.js CHANGED
@@ -8832,6 +8832,7 @@ var SocialPostsRoute = /** @class */ (function () {
8832
8832
  getPosts: { url: '/socialposts', method: HTTP_METHODS.GET },
8833
8833
  createPost: { url: '/socialposts', method: HTTP_METHODS.POST },
8834
8834
  retrievePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.GET },
8835
+ dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST },
8835
8836
  };
8836
8837
  return SocialPostsRoute;
8837
8838
  }());
@@ -8871,6 +8872,18 @@ var SocialPosts = /** @class */ (function () {
8871
8872
  SocialPosts.view = function (post_id, params) {
8872
8873
  return Requests.processRoute(SocialPostsRoute.routes.retrievePost, {}, { post_id: post_id }, params);
8873
8874
  };
8875
+ /**
8876
+ * Dispute a post as being fraudulent.,s
8877
+ *
8878
+ * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/disputePost
8879
+ *
8880
+ * @param post_id The id fo the post to retrieve.
8881
+ *
8882
+ * @returns promise
8883
+ */
8884
+ SocialPosts.dispute = function (post_id, data, params) {
8885
+ return Requests.processRoute(SocialPostsRoute.routes.dispute, data, { post_id: post_id }, params);
8886
+ };
8874
8887
  return SocialPosts;
8875
8888
  }());
8876
8889
 
@@ -9109,6 +9122,7 @@ var CampaignsRoute = /** @class */ (function () {
9109
9122
  declineInfluencerRequest: { url: '/campaigns/{campaign_id}/influencers/{user_id}/deny', method: HTTP_METHODS.POST },
9110
9123
  reviewInfluencerRequest: { url: '/campaigns/{campaign_id}/influencers/{user_id}/review', method: HTTP_METHODS.POST },
9111
9124
  getRecommendedInfluencers: { url: '/campaigns/{campaign_id}/recommendInfluencers', method: HTTP_METHODS.GET },
9125
+ generateContentForInfluencer: { url: '/campaigns/{campaign_id}/influencers/{user_id}/generatePostContent', method: HTTP_METHODS.POST },
9112
9126
  };
9113
9127
  return CampaignsRoute;
9114
9128
  }());
@@ -9619,6 +9633,18 @@ var Campaigns = /** @class */ (function () {
9619
9633
  Campaigns.reviewInfluencerRequest = function (campaign_id, user_id, data, params) {
9620
9634
  return Requests.processRoute(CampaignsRoute.routes.reviewInfluencerRequest, data, { campaign_id: campaign_id, user_id: user_id }, params);
9621
9635
  };
9636
+ /**
9637
+ * Generate post content for the influencer to help them with their content creation.
9638
+ *
9639
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/generatePostContent
9640
+ *
9641
+ * @param campaign_id The id fo the campaign to retrieve.
9642
+ *
9643
+ * @returns promise
9644
+ */
9645
+ Campaigns.generateContentForInfluencer = function (campaign_id, user_id, data, params) {
9646
+ return Requests.processRoute(CampaignsRoute.routes.generateContentForInfluencer, data, { campaign_id: campaign_id, user_id: user_id }, params);
9647
+ };
9622
9648
  return Campaigns;
9623
9649
  }());
9624
9650