glitch-javascript-sdk 0.9.6 → 0.9.8
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 +15 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Subscriptions.d.ts +8 -0
- package/dist/esm/index.js +15 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/Subscriptions.ts +12 -1
- package/src/routes/CommunitiesRoute.ts +3 -3
- package/src/routes/SubscriptionsRoute.ts +1 -0
package/dist/cjs/index.js
CHANGED
|
@@ -19750,9 +19750,9 @@ var CommunitiesRoute = /** @class */ (function () {
|
|
|
19750
19750
|
join: { url: '/communities/{community_id}/join', method: HTTP_METHODS.POST },
|
|
19751
19751
|
findByDomain: { url: '/communities/findByDomain/{domain}', method: HTTP_METHODS.GET },
|
|
19752
19752
|
addPaymentMethod: { url: '/communities/{community_id}/payment/methods', method: HTTP_METHODS.POST },
|
|
19753
|
-
getPaymentMethods: { url: '/communities/{
|
|
19754
|
-
setDefaultPaymentMethod: { url: '/communities/{
|
|
19755
|
-
getLedger: { url: '/communities/{
|
|
19753
|
+
getPaymentMethods: { url: '/communities/{community_id}/payment/methods', method: HTTP_METHODS.GET },
|
|
19754
|
+
setDefaultPaymentMethod: { url: '/communities/{community_id}/payment/methods/default', method: HTTP_METHODS.POST },
|
|
19755
|
+
getLedger: { url: '/communities/{community_id}/payment/ledger', method: HTTP_METHODS.GET },
|
|
19756
19756
|
};
|
|
19757
19757
|
return CommunitiesRoute;
|
|
19758
19758
|
}());
|
|
@@ -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.
|
|
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
|
}());
|