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/index.d.ts
CHANGED
|
@@ -5610,6 +5610,13 @@ declare class Subscriptions {
|
|
|
5610
5610
|
* @returns promise
|
|
5611
5611
|
*/
|
|
5612
5612
|
static listCommunityInfluencerSubscriptions<T>(community_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
5613
|
+
/**
|
|
5614
|
+
* Check whether the current user can access developer tool creation for a feature.
|
|
5615
|
+
*
|
|
5616
|
+
* @param params { feature: 'social_media'|'influencers'|'ads', community_id?: string, title_id?: string, scheduler_id?: string }
|
|
5617
|
+
* @returns promise
|
|
5618
|
+
*/
|
|
5619
|
+
static getDeveloperToolAccess<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
5613
5620
|
/**
|
|
5614
5621
|
* Create a new subscription of a content creator
|
|
5615
5622
|
*
|
package/package.json
CHANGED
package/src/api/Subscriptions.ts
CHANGED
|
@@ -49,6 +49,16 @@ class Subscriptions {
|
|
|
49
49
|
return Requests.processRoute(SubscriptionsRoute.routes.listCommunityInfluencerSubscriptions, undefined, { community_id: community_id }, params);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Check whether the current user can access developer tool creation for a feature.
|
|
54
|
+
*
|
|
55
|
+
* @param params { feature: 'social_media'|'influencers'|'ads', community_id?: string, title_id?: string, scheduler_id?: string }
|
|
56
|
+
* @returns promise
|
|
57
|
+
*/
|
|
58
|
+
public static getDeveloperToolAccess<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
59
|
+
return Requests.processRoute(SubscriptionsRoute.routes.getDeveloperToolAccess, undefined, undefined, params);
|
|
60
|
+
}
|
|
61
|
+
|
|
52
62
|
/**
|
|
53
63
|
* Create a new subscription of a content creator
|
|
54
64
|
*
|
|
@@ -185,4 +195,4 @@ class Subscriptions {
|
|
|
185
195
|
|
|
186
196
|
}
|
|
187
197
|
|
|
188
|
-
export default Subscriptions;
|
|
198
|
+
export default Subscriptions;
|
|
@@ -14,6 +14,7 @@ class SubscriptionsRoute {
|
|
|
14
14
|
cancelCommunityInfluencerSubscription: { url: '/subscriptions/communities/influencers/{community_id}/{stripe_subscription_id}', method: HTTP_METHODS.DELETE },
|
|
15
15
|
listCommunityInfluencerSubscriptions: { url: '/subscriptions/communities/influencers/{community_id}', method: HTTP_METHODS.GET },
|
|
16
16
|
changeCommunityInfluencerSubscription: { url: '/subscriptions/communities/influencers/change/{community_id}', method: HTTP_METHODS.POST },
|
|
17
|
+
getDeveloperToolAccess: { url: '/subscriptions/developer-tools/access', method: HTTP_METHODS.GET },
|
|
17
18
|
|
|
18
19
|
createCustomCommunitySubscription: {
|
|
19
20
|
url: '/subscriptions/communities/custom/{community_id}',
|
|
@@ -34,4 +35,4 @@ class SubscriptionsRoute {
|
|
|
34
35
|
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
export default SubscriptionsRoute;
|
|
38
|
+
export default SubscriptionsRoute;
|