glitch-javascript-sdk 1.0.9 → 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
 
@@ -22269,6 +22291,8 @@ var CampaignsRoute = /** @class */ (function () {
22269
22291
  deleteCampaign: { url: '/campaigns/{campaign_id}', method: HTTP_METHODS.DELETE },
22270
22292
  getLedger: { url: '/campaigns/{campaign_id}/ledger', method: HTTP_METHODS.GET },
22271
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 },
22272
22296
  listCampaignLinks: { url: '/campaigns/{campaign_id}/links', method: HTTP_METHODS.GET },
22273
22297
  createCampaignLink: { url: '/campaigns/{campaign_id}/links', method: HTTP_METHODS.POST },
22274
22298
  getCampaignLink: { url: '/campaigns/{campaign_id}/links/{link_id}', method: HTTP_METHODS.GET },
@@ -22392,6 +22416,26 @@ var Campaigns = /** @class */ (function () {
22392
22416
  Campaigns.getPosts = function (campaign_id, params) {
22393
22417
  return Requests.processRoute(CampaignsRoute.routes.getPosts, undefined, { campaign_id: campaign_id }, params);
22394
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
+ };
22395
22439
  /**
22396
22440
  * Retrieve recommended influencers for a campaign.
22397
22441
  *