glitch-javascript-sdk 3.5.2 → 3.6.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
@@ -27046,6 +27046,7 @@ var GameShowsRoute = /** @class */ (function () {
27046
27046
  deleteBlock: { url: '/gameshows/{show_id}/blocks/{block_id}', method: HTTP_METHODS.DELETE },
27047
27047
  reorderBlocks: { url: '/gameshows/{show_id}/blocks/reorder', method: HTTP_METHODS.POST },
27048
27048
  listSchedule: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.GET },
27049
+ getScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.GET },
27049
27050
  createScheduleItem: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.POST },
27050
27051
  updateScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.PUT },
27051
27052
  deleteScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.DELETE },
@@ -27310,6 +27311,10 @@ var GameShows = /** @class */ (function () {
27310
27311
  GameShows.listSchedule = function (show_id, params) {
27311
27312
  return Requests.processRoute(GameShowsRoute.routes.listSchedule, {}, { show_id: show_id }, params);
27312
27313
  };
27314
+ /** Fetch one public or organizer-visible festival schedule item. */
27315
+ GameShows.getScheduleItem = function (show_id, schedule_id, params) {
27316
+ return Requests.processRoute(GameShowsRoute.routes.getScheduleItem, {}, { show_id: show_id, schedule_id: schedule_id }, params);
27317
+ };
27313
27318
  /**
27314
27319
  * Create a schedule item for a game show. Requires organizer permissions.
27315
27320
  */
@@ -32951,6 +32956,52 @@ var MarketResearch = /** @class */ (function () {
32951
32956
  return MarketResearch;
32952
32957
  }());
32953
32958
 
32959
+ var GameAdvertisingRoute = /** @class */ (function () {
32960
+ function GameAdvertisingRoute() {
32961
+ }
32962
+ GameAdvertisingRoute.routes = {
32963
+ settings: { url: '/titles/{title_id}/advertising/settings', method: HTTP_METHODS.GET },
32964
+ updateSettings: { url: '/titles/{title_id}/advertising/settings', method: HTTP_METHODS.PUT },
32965
+ createSession: { url: '/titles/{title_id}/advertising/sessions', method: HTTP_METHODS.POST },
32966
+ storeEvent: { url: '/titles/{title_id}/advertising/sessions/{session_id}/events', method: HTTP_METHODS.POST },
32967
+ revenueSummary: { url: '/titles/{title_id}/advertising/revenue-summary', method: HTTP_METHODS.GET },
32968
+ adminDashboard: { url: '/admin/game-advertising', method: HTTP_METHODS.GET },
32969
+ adminUpdateSettings: { url: '/admin/game-advertising/settings', method: HTTP_METHODS.PUT },
32970
+ adminStoreRevenue: { url: '/admin/game-advertising/revenue', method: HTTP_METHODS.POST },
32971
+ };
32972
+ return GameAdvertisingRoute;
32973
+ }());
32974
+
32975
+ var GameAdvertising = /** @class */ (function () {
32976
+ function GameAdvertising() {
32977
+ }
32978
+ GameAdvertising.settings = function (title_id) {
32979
+ return Requests.processRoute(GameAdvertisingRoute.routes.settings, undefined, { title_id: title_id });
32980
+ };
32981
+ GameAdvertising.updateSettings = function (title_id, data) {
32982
+ return Requests.processRoute(GameAdvertisingRoute.routes.updateSettings, data, { title_id: title_id });
32983
+ };
32984
+ GameAdvertising.createSession = function (title_id, data) {
32985
+ return Requests.processRoute(GameAdvertisingRoute.routes.createSession, data, { title_id: title_id });
32986
+ };
32987
+ GameAdvertising.storeEvent = function (title_id, session_id, data) {
32988
+ return Requests.processRoute(GameAdvertisingRoute.routes.storeEvent, data, { title_id: title_id, session_id: session_id });
32989
+ };
32990
+ GameAdvertising.revenueSummary = function (title_id, params) {
32991
+ return Requests.processRoute(GameAdvertisingRoute.routes.revenueSummary, undefined, { title_id: title_id }, params);
32992
+ };
32993
+ GameAdvertising.adminDashboard = function () {
32994
+ return Requests.processRoute(GameAdvertisingRoute.routes.adminDashboard);
32995
+ };
32996
+ GameAdvertising.adminUpdateSettings = function (data) {
32997
+ return Requests.processRoute(GameAdvertisingRoute.routes.adminUpdateSettings, data);
32998
+ };
32999
+ GameAdvertising.adminStoreRevenue = function (data) {
33000
+ return Requests.processRoute(GameAdvertisingRoute.routes.adminStoreRevenue, data);
33001
+ };
33002
+ return GameAdvertising;
33003
+ }());
33004
+
32954
33005
  var Parser = /** @class */ (function () {
32955
33006
  function Parser() {
32956
33007
  }
@@ -33500,6 +33551,7 @@ var Glitch = /** @class */ (function () {
33500
33551
  AdminReports: AdminReports,
33501
33552
  AdminUsers: AdminUsers,
33502
33553
  MarketResearch: MarketResearch,
33554
+ GameAdvertising: GameAdvertising,
33503
33555
  };
33504
33556
  Glitch.util = {
33505
33557
  Requests: Requests,