glitch-javascript-sdk 1.0.8 → 1.1.0

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
@@ -20546,6 +20546,8 @@ var EventsRoutes = /** @class */ (function () {
20546
20546
  setAIAccent: { url: '/events/{event_id}/setAIAccent', method: HTTP_METHODS.POST },
20547
20547
  setAIAvatarRespondToChat: { url: '/events/{event_id}/setAIAvatarRespondToChat', method: HTTP_METHODS.POST },
20548
20548
  setAIAvatarRespondToMe: { url: '/events/{event_id}/setAIAvatarRespondToMe', method: HTTP_METHODS.POST },
20549
+ statistics: { url: '/events/{event_id}/statistics', method: HTTP_METHODS.GET },
20550
+ streamViewCounts: { url: '/events/{event_id}/streamViewCounts', method: HTTP_METHODS.GET },
20549
20551
  };
20550
20552
  return EventsRoutes;
20551
20553
  }());
@@ -21025,6 +21027,26 @@ var Events = /** @class */ (function () {
21025
21027
  Events.setAIAvatarRespondToMe = function (event_id, data, params) {
21026
21028
  return Requests.processRoute(EventsRoutes.routes.setAIAvatarRespondToMe, data, { event_id: event_id }, params);
21027
21029
  };
21030
+ /**
21031
+ * Get the associated statistics for the campaign.
21032
+ *
21033
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/getStreamStatistics
21034
+ *
21035
+ * @returns promise
21036
+ */
21037
+ Events.statistics = function (event_id, params) {
21038
+ return Requests.processRoute(EventsRoutes.routes.statistics, undefined, { event_id: event_id }, params);
21039
+ };
21040
+ /**
21041
+ * Get the stream view counts for the campaign.
21042
+ *
21043
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/getEventStreamViewCounts
21044
+ *
21045
+ * @returns promise
21046
+ */
21047
+ Events.getStreamViewCounts = function (event_id, params) {
21048
+ return Requests.processRoute(EventsRoutes.routes.getStreamViewCounts, undefined, { event_id: event_id }, params);
21049
+ };
21028
21050
  return Events;
21029
21051
  }());
21030
21052
 
@@ -22016,6 +22038,7 @@ var SocialPostsRoute = /** @class */ (function () {
22016
22038
  getPosts: { url: '/socialposts', method: HTTP_METHODS.GET },
22017
22039
  createPost: { url: '/socialposts', method: HTTP_METHODS.POST },
22018
22040
  retrievePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.GET },
22041
+ dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST },
22019
22042
  };
22020
22043
  return SocialPostsRoute;
22021
22044
  }());
@@ -22055,6 +22078,18 @@ var SocialPosts = /** @class */ (function () {
22055
22078
  SocialPosts.view = function (post_id, params) {
22056
22079
  return Requests.processRoute(SocialPostsRoute.routes.retrievePost, {}, { post_id: post_id }, params);
22057
22080
  };
22081
+ /**
22082
+ * Dispute a post as being fraudulent.,s
22083
+ *
22084
+ * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/disputePost
22085
+ *
22086
+ * @param post_id The id fo the post to retrieve.
22087
+ *
22088
+ * @returns promise
22089
+ */
22090
+ SocialPosts.dispute = function (post_id, data, params) {
22091
+ return Requests.processRoute(SocialPostsRoute.routes.dispute, data, { post_id: post_id }, params);
22092
+ };
22058
22093
  return SocialPosts;
22059
22094
  }());
22060
22095
 
@@ -22256,6 +22291,8 @@ var CampaignsRoute = /** @class */ (function () {
22256
22291
  deleteCampaign: { url: '/campaigns/{campaign_id}', method: HTTP_METHODS.DELETE },
22257
22292
  getLedger: { url: '/campaigns/{campaign_id}/ledger', method: HTTP_METHODS.GET },
22258
22293
  getPosts: { url: '/campaigns/{campaign_id}/posts', method: HTTP_METHODS.GET },
22294
+ statistics: { url: '/campaigns/{campaign_id}/statistics', method: HTTP_METHODS.GET },
22295
+ streamViewCounts: { url: '/campaigns/{campaign_id}/streamViewCounts', method: HTTP_METHODS.GET },
22259
22296
  listCampaignLinks: { url: '/campaigns/{campaign_id}/links', method: HTTP_METHODS.GET },
22260
22297
  createCampaignLink: { url: '/campaigns/{campaign_id}/links', method: HTTP_METHODS.POST },
22261
22298
  getCampaignLink: { url: '/campaigns/{campaign_id}/links/{link_id}', method: HTTP_METHODS.GET },
@@ -22379,6 +22416,26 @@ var Campaigns = /** @class */ (function () {
22379
22416
  Campaigns.getPosts = function (campaign_id, params) {
22380
22417
  return Requests.processRoute(CampaignsRoute.routes.getPosts, undefined, { campaign_id: campaign_id }, params);
22381
22418
  };
22419
+ /**
22420
+ * Get the associated statistics for the campaign.
22421
+ *
22422
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/campaignStatistics
22423
+ *
22424
+ * @returns promise
22425
+ */
22426
+ Campaigns.statistics = function (campaign_id, params) {
22427
+ return Requests.processRoute(CampaignsRoute.routes.statistics, undefined, { campaign_id: campaign_id }, params);
22428
+ };
22429
+ /**
22430
+ * Get the stream view counts for the campaign.
22431
+ *
22432
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/getCampaignStreamViewCounts
22433
+ *
22434
+ * @returns promise
22435
+ */
22436
+ Campaigns.getStreamViewCounts = function (campaign_id, params) {
22437
+ return Requests.processRoute(CampaignsRoute.routes.getStreamViewCounts, undefined, { campaign_id: campaign_id }, params);
22438
+ };
22382
22439
  /**
22383
22440
  * Retrieve recommended influencers for a campaign.
22384
22441
  *