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 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
  *
@@ -26455,6 +26465,15 @@ var FeedbackRoute = /** @class */ (function () {
26455
26465
  listFeedback: { url: '/feedback', method: HTTP_METHODS.GET },
26456
26466
  sendFeedback: { url: '/feedback', method: HTTP_METHODS.POST },
26457
26467
  viewFeedback: { url: '/feedback/{feedback_id}', method: HTTP_METHODS.GET },
26468
+ listSupportTickets: { url: '/support/tickets', method: HTTP_METHODS.GET },
26469
+ createSupportTicket: { url: '/support/tickets', method: HTTP_METHODS.POST },
26470
+ viewSupportTicket: { url: '/support/tickets/{feedback_id}', method: HTTP_METHODS.GET },
26471
+ replySupportTicket: { url: '/support/tickets/{feedback_id}/replies', method: HTTP_METHODS.POST },
26472
+ adminListFeedback: { url: '/admin/support/feedback', method: HTTP_METHODS.GET },
26473
+ adminViewFeedback: { url: '/admin/support/feedback/{feedback_id}', method: HTTP_METHODS.GET },
26474
+ adminUpdateFeedback: { url: '/admin/support/feedback/{feedback_id}', method: HTTP_METHODS.PUT },
26475
+ adminReplyFeedback: { url: '/admin/support/feedback/{feedback_id}/reply', method: HTTP_METHODS.POST },
26476
+ adminRewardFeedback: { url: '/admin/support/feedback/{feedback_id}/reward', method: HTTP_METHODS.POST },
26458
26477
  };
26459
26478
  return FeedbackRoute;
26460
26479
  }());
@@ -26482,6 +26501,48 @@ var Feedback = /** @class */ (function () {
26482
26501
  Feedback.viewFeedback = function (feedback_id, params) {
26483
26502
  return Requests.processRoute(FeedbackRoute.routes.viewFeedback, undefined, { feedback_id: feedback_id }, params);
26484
26503
  };
26504
+ /**
26505
+ * List support tickets owned by the logged-in user.
26506
+ */
26507
+ Feedback.listSupportTickets = function (params) {
26508
+ return Requests.processRoute(FeedbackRoute.routes.listSupportTickets, undefined, undefined, params);
26509
+ };
26510
+ /**
26511
+ * Create a support ticket for the logged-in user.
26512
+ */
26513
+ Feedback.createSupportTicket = function (data, params) {
26514
+ return Requests.processRoute(FeedbackRoute.routes.createSupportTicket, data, {}, params);
26515
+ };
26516
+ /**
26517
+ * View a support ticket owned by the logged-in user.
26518
+ */
26519
+ Feedback.viewSupportTicket = function (feedback_id, params) {
26520
+ return Requests.processRoute(FeedbackRoute.routes.viewSupportTicket, undefined, { feedback_id: feedback_id }, params);
26521
+ };
26522
+ /**
26523
+ * Reply to a support ticket owned by the logged-in user.
26524
+ */
26525
+ Feedback.replySupportTicket = function (feedback_id, data, params) {
26526
+ return Requests.processRoute(FeedbackRoute.routes.replySupportTicket, data, { feedback_id: feedback_id }, params);
26527
+ };
26528
+ /**
26529
+ * Admin support inbox covering support tickets and feedback.
26530
+ */
26531
+ Feedback.adminListFeedback = function (params) {
26532
+ return Requests.processRoute(FeedbackRoute.routes.adminListFeedback, undefined, undefined, params);
26533
+ };
26534
+ Feedback.adminViewFeedback = function (feedback_id, params) {
26535
+ return Requests.processRoute(FeedbackRoute.routes.adminViewFeedback, undefined, { feedback_id: feedback_id }, params);
26536
+ };
26537
+ Feedback.adminUpdateFeedback = function (feedback_id, data, params) {
26538
+ return Requests.processRoute(FeedbackRoute.routes.adminUpdateFeedback, data, { feedback_id: feedback_id }, params);
26539
+ };
26540
+ Feedback.adminReplyFeedback = function (feedback_id, data, params) {
26541
+ return Requests.processRoute(FeedbackRoute.routes.adminReplyFeedback, data, { feedback_id: feedback_id }, params);
26542
+ };
26543
+ Feedback.adminRewardFeedback = function (feedback_id, data, params) {
26544
+ return Requests.processRoute(FeedbackRoute.routes.adminRewardFeedback, data, { feedback_id: feedback_id }, params);
26545
+ };
26485
26546
  /**
26486
26547
  * Submit feedback.
26487
26548
  *