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.
package/dist/index.d.ts CHANGED
@@ -2263,6 +2263,16 @@ declare class SocialPosts {
2263
2263
  * @returns promise
2264
2264
  */
2265
2265
  static view<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
2266
+ /**
2267
+ * Dispute a post as being fraudulent.,s
2268
+ *
2269
+ * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/disputePost
2270
+ *
2271
+ * @param post_id The id fo the post to retrieve.
2272
+ *
2273
+ * @returns promise
2274
+ */
2275
+ static dispute<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
2266
2276
  }
2267
2277
 
2268
2278
  declare class Titles {
@@ -2816,6 +2826,16 @@ declare class Campaigns {
2816
2826
  * @returns promise
2817
2827
  */
2818
2828
  static reviewInfluencerRequest<T>(campaign_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
2829
+ /**
2830
+ * Generate post content for the influencer to help them with their content creation.
2831
+ *
2832
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/generatePostContent
2833
+ *
2834
+ * @param campaign_id The id fo the campaign to retrieve.
2835
+ *
2836
+ * @returns promise
2837
+ */
2838
+ static generateContentForInfluencer<T>(campaign_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
2819
2839
  }
2820
2840
 
2821
2841
  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.9",
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
 
@@ -41,6 +41,20 @@ class SocialPosts {
41
41
  return Requests.processRoute(SocialPostsRoute.routes.retrievePost, {}, { post_id: post_id }, params);
42
42
  }
43
43
 
44
+ /**
45
+ * Dispute a post as being fraudulent.,s
46
+ *
47
+ * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/disputePost
48
+ *
49
+ * @param post_id The id fo the post to retrieve.
50
+ *
51
+ * @returns promise
52
+ */
53
+ public static dispute<T>(post_id: string, data? : object, params?: Record<string, any>): AxiosPromise<Response<T>> {
54
+
55
+ return Requests.processRoute(SocialPostsRoute.routes.dispute, data, { post_id: post_id }, params);
56
+ }
57
+
44
58
  }
45
59
 
46
60
  export default SocialPosts;
@@ -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
  }
@@ -7,6 +7,7 @@ class SocialPostsRoute {
7
7
  getPosts: { url: '/socialposts', method: HTTP_METHODS.GET },
8
8
  createPost: { url: '/socialposts', method: HTTP_METHODS.POST },
9
9
  retrievePost : { url: '/socialposts/{post_id}', method: HTTP_METHODS.GET },
10
+ dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST },
10
11
  };
11
12
 
12
13
  }