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/cjs/index.js CHANGED
@@ -22743,6 +22743,7 @@ var SubscriptionsRoute = /** @class */ (function () {
22743
22743
  getCommunityInfluencerSubscription: { url: '/subscriptions/communities/influencers/{community_id}/{stripe_subscription_id}', method: HTTP_METHODS.GET },
22744
22744
  cancelCommunityInfluencerSubscription: { url: '/subscriptions/communities/influencers/{community_id}/{stripe_subscription_id}', method: HTTP_METHODS.DELETE },
22745
22745
  listCommunityInfluencerSubscriptions: { url: '/subscriptions/communities/influencers/{community_id}', method: HTTP_METHODS.GET },
22746
+ changeCommunityInfluencerSubscription: { url: '/subscriptions/communities/influencers/change/{community_id}', method: HTTP_METHODS.POST },
22746
22747
  };
22747
22748
  return SubscriptionsRoute;
22748
22749
  }());
@@ -22828,7 +22829,17 @@ var Subscriptions = /** @class */ (function () {
22828
22829
  * @returns A promise
22829
22830
  */
22830
22831
  Subscriptions.cancelCommunityInfluencerSubscription = function (community_id, stripe_subscription_id, data, params) {
22831
- return Requests.processRoute(SubscriptionsRoute.routes.cancelCreatorSubscription, data, { community_id: community_id, stripe_subscription_id: stripe_subscription_id }, params);
22832
+ return Requests.processRoute(SubscriptionsRoute.routes.cancelCommunityInfluencerSubscription, data, { community_id: community_id, stripe_subscription_id: stripe_subscription_id }, params);
22833
+ };
22834
+ /**
22835
+ * Change the current subscription that the community is associated with.
22836
+ *
22837
+ * @see https://api.glitch.fun/api/documentation#/Subscriptions/createCreatorSubscription
22838
+ *
22839
+ * @returns A promise
22840
+ */
22841
+ Subscriptions.changeCommunityInfluencerSubscription = function (community_id, data, params) {
22842
+ return Requests.processRoute(SubscriptionsRoute.routes.changeCommunityInfluencerSubscription, data, { community_id: community_id }, params);
22832
22843
  };
22833
22844
  return Subscriptions;
22834
22845
  }());