glitch-javascript-sdk 3.2.14 → 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 +61 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Feedback.d.ts +24 -0
- package/dist/esm/api/Subscriptions.d.ts +7 -0
- package/dist/esm/index.js +61 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +31 -0
- package/package.json +1 -1
- package/src/api/Feedback.ts +52 -1
- package/src/api/Subscriptions.ts +11 -1
- package/src/routes/FeedbackRoute.ts +10 -1
- package/src/routes/SubscriptionsRoute.ts +2 -1
|
@@ -17,6 +17,30 @@ declare class Feedback {
|
|
|
17
17
|
* @returns promise
|
|
18
18
|
*/
|
|
19
19
|
static viewFeedback<T>(feedback_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
20
|
+
/**
|
|
21
|
+
* List support tickets owned by the logged-in user.
|
|
22
|
+
*/
|
|
23
|
+
static listSupportTickets<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
24
|
+
/**
|
|
25
|
+
* Create a support ticket for the logged-in user.
|
|
26
|
+
*/
|
|
27
|
+
static createSupportTicket<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
28
|
+
/**
|
|
29
|
+
* View a support ticket owned by the logged-in user.
|
|
30
|
+
*/
|
|
31
|
+
static viewSupportTicket<T>(feedback_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
32
|
+
/**
|
|
33
|
+
* Reply to a support ticket owned by the logged-in user.
|
|
34
|
+
*/
|
|
35
|
+
static replySupportTicket<T>(feedback_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
36
|
+
/**
|
|
37
|
+
* Admin support inbox covering support tickets and feedback.
|
|
38
|
+
*/
|
|
39
|
+
static adminListFeedback<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
40
|
+
static adminViewFeedback<T>(feedback_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
41
|
+
static adminUpdateFeedback<T>(feedback_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
42
|
+
static adminReplyFeedback<T>(feedback_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
43
|
+
static adminRewardFeedback<T>(feedback_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
20
44
|
/**
|
|
21
45
|
* Submit feedback.
|
|
22
46
|
*
|
|
@@ -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
|
*
|
|
@@ -14457,6 +14467,15 @@ var FeedbackRoute = /** @class */ (function () {
|
|
|
14457
14467
|
listFeedback: { url: '/feedback', method: HTTP_METHODS.GET },
|
|
14458
14468
|
sendFeedback: { url: '/feedback', method: HTTP_METHODS.POST },
|
|
14459
14469
|
viewFeedback: { url: '/feedback/{feedback_id}', method: HTTP_METHODS.GET },
|
|
14470
|
+
listSupportTickets: { url: '/support/tickets', method: HTTP_METHODS.GET },
|
|
14471
|
+
createSupportTicket: { url: '/support/tickets', method: HTTP_METHODS.POST },
|
|
14472
|
+
viewSupportTicket: { url: '/support/tickets/{feedback_id}', method: HTTP_METHODS.GET },
|
|
14473
|
+
replySupportTicket: { url: '/support/tickets/{feedback_id}/replies', method: HTTP_METHODS.POST },
|
|
14474
|
+
adminListFeedback: { url: '/admin/support/feedback', method: HTTP_METHODS.GET },
|
|
14475
|
+
adminViewFeedback: { url: '/admin/support/feedback/{feedback_id}', method: HTTP_METHODS.GET },
|
|
14476
|
+
adminUpdateFeedback: { url: '/admin/support/feedback/{feedback_id}', method: HTTP_METHODS.PUT },
|
|
14477
|
+
adminReplyFeedback: { url: '/admin/support/feedback/{feedback_id}/reply', method: HTTP_METHODS.POST },
|
|
14478
|
+
adminRewardFeedback: { url: '/admin/support/feedback/{feedback_id}/reward', method: HTTP_METHODS.POST },
|
|
14460
14479
|
};
|
|
14461
14480
|
return FeedbackRoute;
|
|
14462
14481
|
}());
|
|
@@ -14484,6 +14503,48 @@ var Feedback = /** @class */ (function () {
|
|
|
14484
14503
|
Feedback.viewFeedback = function (feedback_id, params) {
|
|
14485
14504
|
return Requests.processRoute(FeedbackRoute.routes.viewFeedback, undefined, { feedback_id: feedback_id }, params);
|
|
14486
14505
|
};
|
|
14506
|
+
/**
|
|
14507
|
+
* List support tickets owned by the logged-in user.
|
|
14508
|
+
*/
|
|
14509
|
+
Feedback.listSupportTickets = function (params) {
|
|
14510
|
+
return Requests.processRoute(FeedbackRoute.routes.listSupportTickets, undefined, undefined, params);
|
|
14511
|
+
};
|
|
14512
|
+
/**
|
|
14513
|
+
* Create a support ticket for the logged-in user.
|
|
14514
|
+
*/
|
|
14515
|
+
Feedback.createSupportTicket = function (data, params) {
|
|
14516
|
+
return Requests.processRoute(FeedbackRoute.routes.createSupportTicket, data, {}, params);
|
|
14517
|
+
};
|
|
14518
|
+
/**
|
|
14519
|
+
* View a support ticket owned by the logged-in user.
|
|
14520
|
+
*/
|
|
14521
|
+
Feedback.viewSupportTicket = function (feedback_id, params) {
|
|
14522
|
+
return Requests.processRoute(FeedbackRoute.routes.viewSupportTicket, undefined, { feedback_id: feedback_id }, params);
|
|
14523
|
+
};
|
|
14524
|
+
/**
|
|
14525
|
+
* Reply to a support ticket owned by the logged-in user.
|
|
14526
|
+
*/
|
|
14527
|
+
Feedback.replySupportTicket = function (feedback_id, data, params) {
|
|
14528
|
+
return Requests.processRoute(FeedbackRoute.routes.replySupportTicket, data, { feedback_id: feedback_id }, params);
|
|
14529
|
+
};
|
|
14530
|
+
/**
|
|
14531
|
+
* Admin support inbox covering support tickets and feedback.
|
|
14532
|
+
*/
|
|
14533
|
+
Feedback.adminListFeedback = function (params) {
|
|
14534
|
+
return Requests.processRoute(FeedbackRoute.routes.adminListFeedback, undefined, undefined, params);
|
|
14535
|
+
};
|
|
14536
|
+
Feedback.adminViewFeedback = function (feedback_id, params) {
|
|
14537
|
+
return Requests.processRoute(FeedbackRoute.routes.adminViewFeedback, undefined, { feedback_id: feedback_id }, params);
|
|
14538
|
+
};
|
|
14539
|
+
Feedback.adminUpdateFeedback = function (feedback_id, data, params) {
|
|
14540
|
+
return Requests.processRoute(FeedbackRoute.routes.adminUpdateFeedback, data, { feedback_id: feedback_id }, params);
|
|
14541
|
+
};
|
|
14542
|
+
Feedback.adminReplyFeedback = function (feedback_id, data, params) {
|
|
14543
|
+
return Requests.processRoute(FeedbackRoute.routes.adminReplyFeedback, data, { feedback_id: feedback_id }, params);
|
|
14544
|
+
};
|
|
14545
|
+
Feedback.adminRewardFeedback = function (feedback_id, data, params) {
|
|
14546
|
+
return Requests.processRoute(FeedbackRoute.routes.adminRewardFeedback, data, { feedback_id: feedback_id }, params);
|
|
14547
|
+
};
|
|
14487
14548
|
/**
|
|
14488
14549
|
* Submit feedback.
|
|
14489
14550
|
*
|