glitch-javascript-sdk 3.2.23 → 3.2.25

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.
@@ -117,6 +117,54 @@ declare class GameShows {
117
117
  * Delete a specific title from a game show.
118
118
  */
119
119
  static deleteTitle<T>(show_id: string, title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
120
+ /**
121
+ * List public page-builder blocks for a game show.
122
+ */
123
+ static listBlocks<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
124
+ /**
125
+ * Create a page-builder block for a game show. Requires organizer permissions.
126
+ */
127
+ static createBlock<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
128
+ /**
129
+ * Update a page-builder block for a game show. Requires organizer permissions.
130
+ */
131
+ static updateBlock<T>(show_id: string, block_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
132
+ /**
133
+ * Delete a page-builder block from a game show. Requires organizer permissions.
134
+ */
135
+ static deleteBlock<T>(show_id: string, block_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
136
+ /**
137
+ * Reorder page-builder blocks for a game show. Requires organizer permissions.
138
+ */
139
+ static reorderBlocks<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
140
+ /**
141
+ * List livestream and programming schedule items for a game show.
142
+ */
143
+ static listSchedule<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
144
+ /**
145
+ * Create a schedule item for a game show. Requires organizer permissions.
146
+ */
147
+ static createScheduleItem<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
148
+ /**
149
+ * Update a schedule item for a game show. Requires organizer permissions.
150
+ */
151
+ static updateScheduleItem<T>(show_id: string, schedule_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
152
+ /**
153
+ * Delete a schedule item from a game show. Requires organizer permissions.
154
+ */
155
+ static deleteScheduleItem<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
156
+ /**
157
+ * Get the game show discovery queue.
158
+ */
159
+ static discoveryQueue<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
160
+ /**
161
+ * Track public game show analytics events.
162
+ */
163
+ static trackAnalytics<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
164
+ /**
165
+ * Get organizer analytics for a game show.
166
+ */
167
+ static analyticsReport<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
120
168
  /**
121
169
  * Join or update a public notification signup for a game show.
122
170
  */
@@ -125,5 +173,9 @@ declare class GameShows {
125
173
  * List notification signups for a game show. Requires organizer permissions.
126
174
  */
127
175
  static listWishlist<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
176
+ /**
177
+ * List public game shows that include a title. Useful for game-page festival banners.
178
+ */
179
+ static listForTitle<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
128
180
  }
129
181
  export default GameShows;
package/dist/esm/index.js CHANGED
@@ -14909,8 +14909,21 @@ var GameShowsRoute = /** @class */ (function () {
14909
14909
  viewTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.GET },
14910
14910
  updateTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.PUT },
14911
14911
  deleteTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.DELETE },
14912
+ listBlocks: { url: '/gameshows/{show_id}/blocks', method: HTTP_METHODS.GET },
14913
+ createBlock: { url: '/gameshows/{show_id}/blocks', method: HTTP_METHODS.POST },
14914
+ updateBlock: { url: '/gameshows/{show_id}/blocks/{block_id}', method: HTTP_METHODS.PUT },
14915
+ deleteBlock: { url: '/gameshows/{show_id}/blocks/{block_id}', method: HTTP_METHODS.DELETE },
14916
+ reorderBlocks: { url: '/gameshows/{show_id}/blocks/reorder', method: HTTP_METHODS.POST },
14917
+ listSchedule: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.GET },
14918
+ createScheduleItem: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.POST },
14919
+ updateScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.PUT },
14920
+ deleteScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.DELETE },
14921
+ discoveryQueue: { url: '/gameshows/{show_id}/discovery', method: HTTP_METHODS.GET },
14922
+ trackAnalytics: { url: '/gameshows/{show_id}/analytics', method: HTTP_METHODS.POST },
14923
+ analyticsReport: { url: '/gameshows/{show_id}/analytics/report', method: HTTP_METHODS.GET },
14912
14924
  joinWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.POST },
14913
14925
  listWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.GET },
14926
+ listForTitle: { url: '/titles/{title_id}/gameshows', method: HTTP_METHODS.GET },
14914
14927
  };
14915
14928
  return GameShowsRoute;
14916
14929
  }());
@@ -15068,6 +15081,78 @@ var GameShows = /** @class */ (function () {
15068
15081
  GameShows.deleteTitle = function (show_id, title_id, params) {
15069
15082
  return Requests.processRoute(GameShowsRoute.routes.deleteTitle, {}, { show_id: show_id, title_id: title_id }, params);
15070
15083
  };
15084
+ /**
15085
+ * List public page-builder blocks for a game show.
15086
+ */
15087
+ GameShows.listBlocks = function (show_id, params) {
15088
+ return Requests.processRoute(GameShowsRoute.routes.listBlocks, {}, { show_id: show_id }, params);
15089
+ };
15090
+ /**
15091
+ * Create a page-builder block for a game show. Requires organizer permissions.
15092
+ */
15093
+ GameShows.createBlock = function (show_id, data, params) {
15094
+ return Requests.processRoute(GameShowsRoute.routes.createBlock, data, { show_id: show_id }, params);
15095
+ };
15096
+ /**
15097
+ * Update a page-builder block for a game show. Requires organizer permissions.
15098
+ */
15099
+ GameShows.updateBlock = function (show_id, block_id, data, params) {
15100
+ return Requests.processRoute(GameShowsRoute.routes.updateBlock, data, { show_id: show_id, block_id: block_id }, params);
15101
+ };
15102
+ /**
15103
+ * Delete a page-builder block from a game show. Requires organizer permissions.
15104
+ */
15105
+ GameShows.deleteBlock = function (show_id, block_id, params) {
15106
+ return Requests.processRoute(GameShowsRoute.routes.deleteBlock, {}, { show_id: show_id, block_id: block_id }, params);
15107
+ };
15108
+ /**
15109
+ * Reorder page-builder blocks for a game show. Requires organizer permissions.
15110
+ */
15111
+ GameShows.reorderBlocks = function (show_id, data, params) {
15112
+ return Requests.processRoute(GameShowsRoute.routes.reorderBlocks, data, { show_id: show_id }, params);
15113
+ };
15114
+ /**
15115
+ * List livestream and programming schedule items for a game show.
15116
+ */
15117
+ GameShows.listSchedule = function (show_id, params) {
15118
+ return Requests.processRoute(GameShowsRoute.routes.listSchedule, {}, { show_id: show_id }, params);
15119
+ };
15120
+ /**
15121
+ * Create a schedule item for a game show. Requires organizer permissions.
15122
+ */
15123
+ GameShows.createScheduleItem = function (show_id, data, params) {
15124
+ return Requests.processRoute(GameShowsRoute.routes.createScheduleItem, data, { show_id: show_id }, params);
15125
+ };
15126
+ /**
15127
+ * Update a schedule item for a game show. Requires organizer permissions.
15128
+ */
15129
+ GameShows.updateScheduleItem = function (show_id, schedule_id, data, params) {
15130
+ return Requests.processRoute(GameShowsRoute.routes.updateScheduleItem, data, { show_id: show_id, schedule_id: schedule_id }, params);
15131
+ };
15132
+ /**
15133
+ * Delete a schedule item from a game show. Requires organizer permissions.
15134
+ */
15135
+ GameShows.deleteScheduleItem = function (show_id, schedule_id, params) {
15136
+ return Requests.processRoute(GameShowsRoute.routes.deleteScheduleItem, {}, { show_id: show_id, schedule_id: schedule_id }, params);
15137
+ };
15138
+ /**
15139
+ * Get the game show discovery queue.
15140
+ */
15141
+ GameShows.discoveryQueue = function (show_id, params) {
15142
+ return Requests.processRoute(GameShowsRoute.routes.discoveryQueue, {}, { show_id: show_id }, params);
15143
+ };
15144
+ /**
15145
+ * Track public game show analytics events.
15146
+ */
15147
+ GameShows.trackAnalytics = function (show_id, data, params) {
15148
+ return Requests.processRoute(GameShowsRoute.routes.trackAnalytics, data, { show_id: show_id }, params);
15149
+ };
15150
+ /**
15151
+ * Get organizer analytics for a game show.
15152
+ */
15153
+ GameShows.analyticsReport = function (show_id, params) {
15154
+ return Requests.processRoute(GameShowsRoute.routes.analyticsReport, {}, { show_id: show_id }, params);
15155
+ };
15071
15156
  /**
15072
15157
  * Join or update a public notification signup for a game show.
15073
15158
  */
@@ -15080,6 +15165,12 @@ var GameShows = /** @class */ (function () {
15080
15165
  GameShows.listWishlist = function (show_id, params) {
15081
15166
  return Requests.processRoute(GameShowsRoute.routes.listWishlist, {}, { show_id: show_id }, params);
15082
15167
  };
15168
+ /**
15169
+ * List public game shows that include a title. Useful for game-page festival banners.
15170
+ */
15171
+ GameShows.listForTitle = function (title_id, params) {
15172
+ return Requests.processRoute(GameShowsRoute.routes.listForTitle, {}, { title_id: title_id }, params);
15173
+ };
15083
15174
  return GameShows;
15084
15175
  }());
15085
15176