glitch-javascript-sdk 3.2.15 → 3.2.16
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 +10 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Subscriptions.d.ts +7 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/api/Subscriptions.ts +11 -1
- package/src/routes/SubscriptionsRoute.ts +2 -1
package/dist/cjs/index.js
CHANGED
|
@@ -26185,6 +26185,7 @@ var SubscriptionsRoute = /** @class */ (function () {
|
|
|
26185
26185
|
cancelCommunityInfluencerSubscription: { url: '/subscriptions/communities/influencers/{community_id}/{stripe_subscription_id}', method: HTTP_METHODS.DELETE },
|
|
26186
26186
|
listCommunityInfluencerSubscriptions: { url: '/subscriptions/communities/influencers/{community_id}', method: HTTP_METHODS.GET },
|
|
26187
26187
|
changeCommunityInfluencerSubscription: { url: '/subscriptions/communities/influencers/change/{community_id}', method: HTTP_METHODS.POST },
|
|
26188
|
+
getDeveloperToolAccess: { url: '/subscriptions/developer-tools/access', method: HTTP_METHODS.GET },
|
|
26188
26189
|
createCustomCommunitySubscription: {
|
|
26189
26190
|
url: '/subscriptions/communities/custom/{community_id}',
|
|
26190
26191
|
method: HTTP_METHODS.POST
|
|
@@ -26243,6 +26244,15 @@ var Subscriptions = /** @class */ (function () {
|
|
|
26243
26244
|
Subscriptions.listCommunityInfluencerSubscriptions = function (community_id, params) {
|
|
26244
26245
|
return Requests.processRoute(SubscriptionsRoute.routes.listCommunityInfluencerSubscriptions, undefined, { community_id: community_id }, params);
|
|
26245
26246
|
};
|
|
26247
|
+
/**
|
|
26248
|
+
* Check whether the current user can access developer tool creation for a feature.
|
|
26249
|
+
*
|
|
26250
|
+
* @param params { feature: 'social_media'|'influencers'|'ads', community_id?: string, title_id?: string, scheduler_id?: string }
|
|
26251
|
+
* @returns promise
|
|
26252
|
+
*/
|
|
26253
|
+
Subscriptions.getDeveloperToolAccess = function (params) {
|
|
26254
|
+
return Requests.processRoute(SubscriptionsRoute.routes.getDeveloperToolAccess, undefined, undefined, params);
|
|
26255
|
+
};
|
|
26246
26256
|
/**
|
|
26247
26257
|
* Create a new subscription of a content creator
|
|
26248
26258
|
*
|