glitch-javascript-sdk 0.9.6 → 0.9.7

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
@@ -2830,6 +2830,14 @@ declare class Subscriptions {
2830
2830
  * @returns A promise
2831
2831
  */
2832
2832
  static cancelCommunityInfluencerSubscription<T>(community_id: string, stripe_subscription_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
2833
+ /**
2834
+ * Change the current subscription that the community is associated with.
2835
+ *
2836
+ * @see https://api.glitch.fun/api/documentation#/Subscriptions/createCreatorSubscription
2837
+ *
2838
+ * @returns A promise
2839
+ */
2840
+ static changeCommunityInfluencerSubscription<T>(community_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
2833
2841
  }
2834
2842
 
2835
2843
  declare class Messages {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -90,7 +90,18 @@ class Subscriptions {
90
90
  * @returns A promise
91
91
  */
92
92
  public static cancelCommunityInfluencerSubscription<T>(community_id : string, stripe_subscription_id: string, data? : object, params?: Record<string, any>) : AxiosPromise<Response<T>> {
93
- return Requests.processRoute(SubscriptionsRoute.routes.cancelCreatorSubscription, data, {community_id: community_id, stripe_subscription_id : stripe_subscription_id}, params);
93
+ return Requests.processRoute(SubscriptionsRoute.routes.cancelCommunityInfluencerSubscription, data, {community_id: community_id, stripe_subscription_id : stripe_subscription_id}, params);
94
+ }
95
+
96
+ /**
97
+ * Change the current subscription that the community is associated with.
98
+ *
99
+ * @see https://api.glitch.fun/api/documentation#/Subscriptions/createCreatorSubscription
100
+ *
101
+ * @returns A promise
102
+ */
103
+ public static changeCommunityInfluencerSubscription<T>(community_id : string, data? : object, params?: Record<string, any>) : AxiosPromise<Response<T>> {
104
+ return Requests.processRoute(SubscriptionsRoute.routes.changeCommunityInfluencerSubscription, data, {community_id: community_id}, params);
94
105
  }
95
106
 
96
107
 
@@ -13,6 +13,7 @@ class SubscriptionsRoute {
13
13
  getCommunityInfluencerSubscription: { url: '/subscriptions/communities/influencers/{community_id}/{stripe_subscription_id}', method: HTTP_METHODS.GET },
14
14
  cancelCommunityInfluencerSubscription: { url: '/subscriptions/communities/influencers/{community_id}/{stripe_subscription_id}', method: HTTP_METHODS.DELETE },
15
15
  listCommunityInfluencerSubscriptions: { url: '/subscriptions/communities/influencers/{community_id}', method: HTTP_METHODS.GET },
16
+ changeCommunityInfluencerSubscription: { url: '/subscriptions/communities/influencers/change/{community_id}', method: HTTP_METHODS.POST },
16
17
  };
17
18
 
18
19
  }