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
|
@@ -33,6 +33,13 @@ declare class Subscriptions {
|
|
|
33
33
|
* @returns promise
|
|
34
34
|
*/
|
|
35
35
|
static listCommunityInfluencerSubscriptions<T>(community_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
36
|
+
/**
|
|
37
|
+
* Check whether the current user can access developer tool creation for a feature.
|
|
38
|
+
*
|
|
39
|
+
* @param params { feature: 'social_media'|'influencers'|'ads', community_id?: string, title_id?: string, scheduler_id?: string }
|
|
40
|
+
* @returns promise
|
|
41
|
+
*/
|
|
42
|
+
static getDeveloperToolAccess<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
36
43
|
/**
|
|
37
44
|
* Create a new subscription of a content creator
|
|
38
45
|
*
|
package/dist/esm/index.js
CHANGED
|
@@ -14187,6 +14187,7 @@ var SubscriptionsRoute = /** @class */ (function () {
|
|
|
14187
14187
|
cancelCommunityInfluencerSubscription: { url: '/subscriptions/communities/influencers/{community_id}/{stripe_subscription_id}', method: HTTP_METHODS.DELETE },
|
|
14188
14188
|
listCommunityInfluencerSubscriptions: { url: '/subscriptions/communities/influencers/{community_id}', method: HTTP_METHODS.GET },
|
|
14189
14189
|
changeCommunityInfluencerSubscription: { url: '/subscriptions/communities/influencers/change/{community_id}', method: HTTP_METHODS.POST },
|
|
14190
|
+
getDeveloperToolAccess: { url: '/subscriptions/developer-tools/access', method: HTTP_METHODS.GET },
|
|
14190
14191
|
createCustomCommunitySubscription: {
|
|
14191
14192
|
url: '/subscriptions/communities/custom/{community_id}',
|
|
14192
14193
|
method: HTTP_METHODS.POST
|
|
@@ -14245,6 +14246,15 @@ var Subscriptions = /** @class */ (function () {
|
|
|
14245
14246
|
Subscriptions.listCommunityInfluencerSubscriptions = function (community_id, params) {
|
|
14246
14247
|
return Requests.processRoute(SubscriptionsRoute.routes.listCommunityInfluencerSubscriptions, undefined, { community_id: community_id }, params);
|
|
14247
14248
|
};
|
|
14249
|
+
/**
|
|
14250
|
+
* Check whether the current user can access developer tool creation for a feature.
|
|
14251
|
+
*
|
|
14252
|
+
* @param params { feature: 'social_media'|'influencers'|'ads', community_id?: string, title_id?: string, scheduler_id?: string }
|
|
14253
|
+
* @returns promise
|
|
14254
|
+
*/
|
|
14255
|
+
Subscriptions.getDeveloperToolAccess = function (params) {
|
|
14256
|
+
return Requests.processRoute(SubscriptionsRoute.routes.getDeveloperToolAccess, undefined, undefined, params);
|
|
14257
|
+
};
|
|
14248
14258
|
/**
|
|
14249
14259
|
* Create a new subscription of a content creator
|
|
14250
14260
|
*
|