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.
@@ -65,5 +65,13 @@ declare class Subscriptions {
65
65
  * @returns A promise
66
66
  */
67
67
  static cancelCommunityInfluencerSubscription<T>(community_id: string, stripe_subscription_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
68
+ /**
69
+ * Change the current subscription that the community is associated with.
70
+ *
71
+ * @see https://api.glitch.fun/api/documentation#/Subscriptions/createCreatorSubscription
72
+ *
73
+ * @returns A promise
74
+ */
75
+ static changeCommunityInfluencerSubscription<T>(community_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
68
76
  }
69
77
  export default Subscriptions;
package/dist/esm/index.js CHANGED
@@ -9559,6 +9559,7 @@ var SubscriptionsRoute = /** @class */ (function () {
9559
9559
  getCommunityInfluencerSubscription: { url: '/subscriptions/communities/influencers/{community_id}/{stripe_subscription_id}', method: HTTP_METHODS.GET },
9560
9560
  cancelCommunityInfluencerSubscription: { url: '/subscriptions/communities/influencers/{community_id}/{stripe_subscription_id}', method: HTTP_METHODS.DELETE },
9561
9561
  listCommunityInfluencerSubscriptions: { url: '/subscriptions/communities/influencers/{community_id}', method: HTTP_METHODS.GET },
9562
+ changeCommunityInfluencerSubscription: { url: '/subscriptions/communities/influencers/change/{community_id}', method: HTTP_METHODS.POST },
9562
9563
  };
9563
9564
  return SubscriptionsRoute;
9564
9565
  }());
@@ -9644,7 +9645,17 @@ var Subscriptions = /** @class */ (function () {
9644
9645
  * @returns A promise
9645
9646
  */
9646
9647
  Subscriptions.cancelCommunityInfluencerSubscription = function (community_id, stripe_subscription_id, data, params) {
9647
- return Requests.processRoute(SubscriptionsRoute.routes.cancelCreatorSubscription, data, { community_id: community_id, stripe_subscription_id: stripe_subscription_id }, params);
9648
+ return Requests.processRoute(SubscriptionsRoute.routes.cancelCommunityInfluencerSubscription, data, { community_id: community_id, stripe_subscription_id: stripe_subscription_id }, params);
9649
+ };
9650
+ /**
9651
+ * Change the current subscription that the community is associated with.
9652
+ *
9653
+ * @see https://api.glitch.fun/api/documentation#/Subscriptions/createCreatorSubscription
9654
+ *
9655
+ * @returns A promise
9656
+ */
9657
+ Subscriptions.changeCommunityInfluencerSubscription = function (community_id, data, params) {
9658
+ return Requests.processRoute(SubscriptionsRoute.routes.changeCommunityInfluencerSubscription, data, { community_id: community_id }, params);
9648
9659
  };
9649
9660
  return Subscriptions;
9650
9661
  }());