glitch-javascript-sdk 1.2.6 → 1.2.8

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/esm/index.js CHANGED
@@ -6582,6 +6582,31 @@ var CommunitiesRoute = /** @class */ (function () {
6582
6582
  updateEmailTemplate: { url: '/communities/{community_id}/emails/templates/{template_id}', method: HTTP_METHODS.PUT },
6583
6583
  deleteEmailTemplate: { url: '/communities/{community_id}/emails/templates/{template_id}', method: HTTP_METHODS.DELETE },
6584
6584
  populateEmailTemplate: { url: '/communities/{community_id}/emails/templates/{template_id}/populate', method: HTTP_METHODS.POST },
6585
+ // Newsletters
6586
+ listNewsletters: { url: '/communities/{community_id}/newsletters', method: HTTP_METHODS.GET },
6587
+ createNewsletter: { url: '/communities/{community_id}/newsletters', method: HTTP_METHODS.POST },
6588
+ viewNewsletter: { url: '/communities/{community_id}/newsletters/{newsletter_id}', method: HTTP_METHODS.GET },
6589
+ updateNewsletter: { url: '/communities/{community_id}/newsletters/{newsletter_id}', method: HTTP_METHODS.PUT },
6590
+ deleteNewsletter: { url: '/communities/{community_id}/newsletters/{newsletter_id}', method: HTTP_METHODS.DELETE },
6591
+ importNewsletterSubscribers: { url: '/communities/{community_id}/newsletters/{newsletter_id}/subscribers/import', method: HTTP_METHODS.POST },
6592
+ uploadNewsletterBannerImage: { url: '/communities/{community_id}/newsletters/{newsletter_id}/uploadBannerImage', method: HTTP_METHODS.POST },
6593
+ // Campaigns
6594
+ listCampaigns: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns', method: HTTP_METHODS.GET },
6595
+ createCampaign: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns', method: HTTP_METHODS.POST },
6596
+ viewCampaign: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns/{campaign_id}', method: HTTP_METHODS.GET },
6597
+ updateCampaign: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns/{campaign_id}', method: HTTP_METHODS.PUT },
6598
+ deleteCampaign: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns/{campaign_id}', method: HTTP_METHODS.DELETE },
6599
+ sendCampaign: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns/{campaign_id}/send', method: HTTP_METHODS.POST },
6600
+ scheduleCampaign: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns/{campaign_id}/schedule', method: HTTP_METHODS.POST },
6601
+ // Emails
6602
+ listCampaignEmails: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns/{campaign_id}/emails', method: HTTP_METHODS.GET },
6603
+ // Subscribers (admin routes)
6604
+ listNewsletterSubscribers: { url: '/communities/{community_id}/newsletters/{newsletter_id}/subscribers', method: HTTP_METHODS.GET },
6605
+ viewNewsletterSubscriber: { url: '/communities/{community_id}/newsletters/{newsletter_id}/subscribers/{subscriber_id}', method: HTTP_METHODS.GET },
6606
+ updateNewsletterSubscriber: { url: '/communities/{community_id}/newsletters/{newsletter_id}/subscribers/{subscriber_id}', method: HTTP_METHODS.PUT },
6607
+ deleteNewsletterSubscriber: { url: '/communities/{community_id}/newsletters/{newsletter_id}/subscribers/{subscriber_id}', method: HTTP_METHODS.DELETE },
6608
+ // Subscriber registration (open route)
6609
+ registerNewsletterSubscriber: { url: '/communities/{community_id}/newsletters/{newsletter_id}/subscribers', method: HTTP_METHODS.POST },
6585
6610
  };
6586
6611
  return CommunitiesRoute;
6587
6612
  }());
@@ -7012,6 +7037,258 @@ var Communities = /** @class */ (function () {
7012
7037
  Communities.populateEmailTemplate = function (community_id, template_id, data, params) {
7013
7038
  return Requests.processRoute(CommunitiesRoute.routes.populateEmailTemplate, data, { community_id: community_id, template_id: template_id }, params);
7014
7039
  };
7040
+ /**
7041
+ * List all newsletters for a community.
7042
+ *
7043
+ * @param community_id The ID of the community.
7044
+ * @param params Query parameters.
7045
+ * @returns Promise
7046
+ */
7047
+ Communities.listNewsletters = function (community_id, params) {
7048
+ return Requests.processRoute(CommunitiesRoute.routes.listNewsletters, undefined, { community_id: community_id }, params);
7049
+ };
7050
+ /**
7051
+ * Create a new newsletter for a community.
7052
+ *
7053
+ * @param community_id The ID of the community.
7054
+ * @param data The data for the new newsletter.
7055
+ * @returns Promise
7056
+ */
7057
+ Communities.createNewsletter = function (community_id, data, params) {
7058
+ return Requests.processRoute(CommunitiesRoute.routes.createNewsletter, data, { community_id: community_id }, params);
7059
+ };
7060
+ /**
7061
+ * Get a specific newsletter.
7062
+ *
7063
+ * @param community_id The ID of the community.
7064
+ * @param newsletter_id The ID of the newsletter.
7065
+ * @param params Query parameters.
7066
+ * @returns Promise
7067
+ */
7068
+ Communities.viewNewsletter = function (community_id, newsletter_id, params) {
7069
+ return Requests.processRoute(CommunitiesRoute.routes.viewNewsletter, undefined, { community_id: community_id, newsletter_id: newsletter_id }, params);
7070
+ };
7071
+ /**
7072
+ * Update a specific newsletter.
7073
+ *
7074
+ * @param community_id The ID of the community.
7075
+ * @param newsletter_id The ID of the newsletter.
7076
+ * @param data The data to update.
7077
+ * @returns Promise
7078
+ */
7079
+ Communities.updateNewsletter = function (community_id, newsletter_id, data, params) {
7080
+ return Requests.processRoute(CommunitiesRoute.routes.updateNewsletter, data, { community_id: community_id, newsletter_id: newsletter_id }, params);
7081
+ };
7082
+ /**
7083
+ * Delete a specific newsletter.
7084
+ *
7085
+ * @param community_id The ID of the community.
7086
+ * @param newsletter_id The ID of the newsletter.
7087
+ * @returns Promise
7088
+ */
7089
+ Communities.deleteNewsletter = function (community_id, newsletter_id, params) {
7090
+ return Requests.processRoute(CommunitiesRoute.routes.deleteNewsletter, undefined, { community_id: community_id, newsletter_id: newsletter_id }, params);
7091
+ };
7092
+ /**
7093
+ * Import subscribers from a CSV or XLS file into a newsletter.
7094
+ *
7095
+ * @param community_id The ID of the community.
7096
+ * @param newsletter_id The ID of the newsletter.
7097
+ * @param file The CSV or XLS file.
7098
+ * @param params Additional parameters.
7099
+ * @returns Promise
7100
+ */
7101
+ Communities.importNewsletterSubscribers = function (community_id, newsletter_id, file, data, params) {
7102
+ var url = CommunitiesRoute.routes.importNewsletterSubscribers.url
7103
+ .replace('{community_id}', community_id)
7104
+ .replace('{newsletter_id}', newsletter_id);
7105
+ return Requests.uploadFile(url, 'file', file, data, params);
7106
+ };
7107
+ /**
7108
+ * Updates the banner image for the game show using a File object.
7109
+ *
7110
+ * @see https://api.glitch.fun/api/documentation#/GameShows/uploadGameShowBannerImage
7111
+ *
7112
+ * @param file The file object to upload.
7113
+ * @param data Any additional data to pass along to the upload.
7114
+ *
7115
+ * @returns promise
7116
+ */
7117
+ Communities.uploadNewsletterBannerImageFile = function (community_id, newsletter_id, file, data, params) {
7118
+ var url = CommunitiesRoute.routes.uploadNewsletterBannerImage.url
7119
+ .replace('{community_id}', community_id)
7120
+ .replace('{newsletter_id}', newsletter_id);
7121
+ return Requests.uploadFile(url, 'image', file, data);
7122
+ };
7123
+ /**
7124
+ * Updates the banner image for the game show using a Blob.
7125
+ *
7126
+ * @see https://api.glitch.fun/api/documentation#/GameShows/uploadGameShowBannerImage
7127
+ *
7128
+ * @param blob The blob to upload.
7129
+ * @param data Any additional data to pass along to the upload
7130
+ *
7131
+ * @returns promise
7132
+ */
7133
+ Communities.uploadNewsletterBannerImageBlob = function (community_id, newsletter_id, blob, data, params) {
7134
+ var url = CommunitiesRoute.routes.uploadNewsletterBannerImage.url
7135
+ .replace('{community_id}', community_id)
7136
+ .replace('{newsletter_id}', newsletter_id);
7137
+ return Requests.uploadBlob(url, 'image', blob, data);
7138
+ };
7139
+ // Campaigns
7140
+ /**
7141
+ * List all campaigns for a newsletter.
7142
+ *
7143
+ * @param community_id The ID of the community.
7144
+ * @param newsletter_id The ID of the newsletter.
7145
+ * @param params Query parameters.
7146
+ * @returns Promise
7147
+ */
7148
+ Communities.listCampaigns = function (community_id, newsletter_id, params) {
7149
+ return Requests.processRoute(CommunitiesRoute.routes.listCampaigns, undefined, { community_id: community_id, newsletter_id: newsletter_id }, params);
7150
+ };
7151
+ /**
7152
+ * Create a new campaign for a newsletter.
7153
+ *
7154
+ * @param community_id The ID of the community.
7155
+ * @param newsletter_id The ID of the newsletter.
7156
+ * @param data The data for the new campaign.
7157
+ * @returns Promise
7158
+ */
7159
+ Communities.createCampaign = function (community_id, newsletter_id, data, params) {
7160
+ return Requests.processRoute(CommunitiesRoute.routes.createCampaign, data, { community_id: community_id, newsletter_id: newsletter_id }, params);
7161
+ };
7162
+ /**
7163
+ * Get a specific campaign.
7164
+ *
7165
+ * @param community_id The ID of the community.
7166
+ * @param newsletter_id The ID of the newsletter.
7167
+ * @param campaign_id The ID of the campaign.
7168
+ * @param params Query parameters.
7169
+ * @returns Promise
7170
+ */
7171
+ Communities.viewCampaign = function (community_id, newsletter_id, campaign_id, params) {
7172
+ return Requests.processRoute(CommunitiesRoute.routes.viewCampaign, undefined, { community_id: community_id, newsletter_id: newsletter_id, campaign_id: campaign_id }, params);
7173
+ };
7174
+ /**
7175
+ * Update a specific campaign.
7176
+ *
7177
+ * @param community_id The ID of the community.
7178
+ * @param newsletter_id The ID of the newsletter.
7179
+ * @param campaign_id The ID of the campaign.
7180
+ * @param data The data to update.
7181
+ * @returns Promise
7182
+ */
7183
+ Communities.updateCampaign = function (community_id, newsletter_id, campaign_id, data, params) {
7184
+ return Requests.processRoute(CommunitiesRoute.routes.updateCampaign, data, { community_id: community_id, newsletter_id: newsletter_id, campaign_id: campaign_id }, params);
7185
+ };
7186
+ /**
7187
+ * Delete a specific campaign.
7188
+ *
7189
+ * @param community_id The ID of the community.
7190
+ * @param newsletter_id The ID of the newsletter.
7191
+ * @param campaign_id The ID of the campaign.
7192
+ * @returns Promise
7193
+ */
7194
+ Communities.deleteCampaign = function (community_id, newsletter_id, campaign_id, params) {
7195
+ return Requests.processRoute(CommunitiesRoute.routes.deleteCampaign, undefined, { community_id: community_id, newsletter_id: newsletter_id, campaign_id: campaign_id }, params);
7196
+ };
7197
+ /**
7198
+ * Send a campaign immediately.
7199
+ *
7200
+ * @param community_id The ID of the community.
7201
+ * @param newsletter_id The ID of the newsletter.
7202
+ * @param campaign_id The ID of the campaign.
7203
+ * @returns Promise
7204
+ */
7205
+ Communities.sendCampaign = function (community_id, newsletter_id, campaign_id, params) {
7206
+ return Requests.processRoute(CommunitiesRoute.routes.sendCampaign, undefined, { community_id: community_id, newsletter_id: newsletter_id, campaign_id: campaign_id }, params);
7207
+ };
7208
+ /**
7209
+ * Schedule a campaign to be sent later.
7210
+ *
7211
+ * @param community_id The ID of the community.
7212
+ * @param newsletter_id The ID of the newsletter.
7213
+ * @param campaign_id The ID of the campaign.
7214
+ * @param data The scheduling data (e.g., scheduled_at).
7215
+ * @returns Promise
7216
+ */
7217
+ Communities.scheduleCampaign = function (community_id, newsletter_id, campaign_id, data, params) {
7218
+ return Requests.processRoute(CommunitiesRoute.routes.scheduleCampaign, data, { community_id: community_id, newsletter_id: newsletter_id, campaign_id: campaign_id }, params);
7219
+ };
7220
+ // Emails
7221
+ /**
7222
+ * List all emails sent in a campaign.
7223
+ *
7224
+ * @param community_id The ID of the community.
7225
+ * @param newsletter_id The ID of the newsletter.
7226
+ * @param campaign_id The ID of the campaign.
7227
+ * @param params Query parameters.
7228
+ * @returns Promise
7229
+ */
7230
+ Communities.listCampaignEmails = function (community_id, newsletter_id, campaign_id, params) {
7231
+ return Requests.processRoute(CommunitiesRoute.routes.listCampaignEmails, undefined, { community_id: community_id, newsletter_id: newsletter_id, campaign_id: campaign_id }, params);
7232
+ };
7233
+ // Subscribers (admin routes)
7234
+ /**
7235
+ * List all subscribers of a newsletter (admin only).
7236
+ *
7237
+ * @param community_id The ID of the community.
7238
+ * @param newsletter_id The ID of the newsletter.
7239
+ * @param params Query parameters.
7240
+ * @returns Promise
7241
+ */
7242
+ Communities.listNewsletterSubscribers = function (community_id, newsletter_id, params) {
7243
+ return Requests.processRoute(CommunitiesRoute.routes.listNewsletterSubscribers, undefined, { community_id: community_id, newsletter_id: newsletter_id }, params);
7244
+ };
7245
+ /**
7246
+ * Get a specific subscriber of a newsletter (admin only).
7247
+ *
7248
+ * @param community_id The ID of the community.
7249
+ * @param newsletter_id The ID of the newsletter.
7250
+ * @param subscriber_id The ID of the subscriber.
7251
+ * @param params Query parameters.
7252
+ * @returns Promise
7253
+ */
7254
+ Communities.viewNewsletterSubscriber = function (community_id, newsletter_id, subscriber_id, params) {
7255
+ return Requests.processRoute(CommunitiesRoute.routes.viewNewsletterSubscriber, undefined, { community_id: community_id, newsletter_id: newsletter_id, subscriber_id: subscriber_id }, params);
7256
+ };
7257
+ /**
7258
+ * Update a specific subscriber of a newsletter (admin only).
7259
+ *
7260
+ * @param community_id The ID of the community.
7261
+ * @param newsletter_id The ID of the newsletter.
7262
+ * @param subscriber_id The ID of the subscriber.
7263
+ * @param data The data to update.
7264
+ * @returns Promise
7265
+ */
7266
+ Communities.updateNewsletterSubscriber = function (community_id, newsletter_id, subscriber_id, data, params) {
7267
+ return Requests.processRoute(CommunitiesRoute.routes.updateNewsletterSubscriber, data, { community_id: community_id, newsletter_id: newsletter_id, subscriber_id: subscriber_id }, params);
7268
+ };
7269
+ /**
7270
+ * Delete a specific subscriber from a newsletter (admin only).
7271
+ *
7272
+ * @param community_id The ID of the community.
7273
+ * @param newsletter_id The ID of the newsletter.
7274
+ * @param subscriber_id The ID of the subscriber.
7275
+ * @returns Promise
7276
+ */
7277
+ Communities.deleteNewsletterSubscriber = function (community_id, newsletter_id, subscriber_id, params) {
7278
+ return Requests.processRoute(CommunitiesRoute.routes.deleteNewsletterSubscriber, undefined, { community_id: community_id, newsletter_id: newsletter_id, subscriber_id: subscriber_id }, params);
7279
+ };
7280
+ // Subscriber registration (open route)
7281
+ /**
7282
+ * Register a new subscriber to a newsletter.
7283
+ *
7284
+ * @param community_id The ID of the community.
7285
+ * @param newsletter_id The ID of the newsletter.
7286
+ * @param data The subscriber data.
7287
+ * @returns Promise
7288
+ */
7289
+ Communities.registerNewsletterSubscriber = function (community_id, newsletter_id, data, params) {
7290
+ return Requests.processRoute(CommunitiesRoute.routes.registerNewsletterSubscriber, data, { community_id: community_id, newsletter_id: newsletter_id }, params);
7291
+ };
7015
7292
  return Communities;
7016
7293
  }());
7017
7294
 
@@ -10247,6 +10524,7 @@ var InfluencerRoutes = /** @class */ (function () {
10247
10524
  updateNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.PUT },
10248
10525
  deleteNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.DELETE },
10249
10526
  listContracts: { url: '/influencers/contracts', method: HTTP_METHODS.GET },
10527
+ workbook: { url: '/influencers/workbook', method: HTTP_METHODS.POST },
10250
10528
  };
10251
10529
  return InfluencerRoutes;
10252
10530
  }());
@@ -10354,6 +10632,16 @@ var Influencers = /** @class */ (function () {
10354
10632
  Influencers.listContracts = function (params) {
10355
10633
  return Requests.processRoute(InfluencerRoutes.routes.listContracts, undefined, undefined, params);
10356
10634
  };
10635
+ /**
10636
+ * Download the influencer work
10637
+ *
10638
+ * @see https://api.glitch.fun/api/documentation#/Influencers/downloadInfluencersWorkbook
10639
+ *
10640
+ * @returns promise
10641
+ */
10642
+ Influencers.workbook = function (data, params) {
10643
+ return Requests.processRoute(InfluencerRoutes.routes.workbook, data, {}, params);
10644
+ };
10357
10645
  return Influencers;
10358
10646
  }());
10359
10647
 
@@ -10436,12 +10724,189 @@ var Publications = /** @class */ (function () {
10436
10724
  *
10437
10725
  * @returns Promise
10438
10726
  */
10439
- Publications.create = function (data, params) {
10727
+ Publications.download = function (data, params) {
10440
10728
  return Requests.processRoute(PublicationsRoutes.routes.download, data, undefined, params);
10441
10729
  };
10442
10730
  return Publications;
10443
10731
  }());
10444
10732
 
10733
+ var GameShowsRoute = /** @class */ (function () {
10734
+ function GameShowsRoute() {
10735
+ }
10736
+ GameShowsRoute.routes = {
10737
+ list: { url: '/gameshows', method: HTTP_METHODS.GET },
10738
+ create: { url: '/gameshows', method: HTTP_METHODS.POST },
10739
+ view: { url: '/gameshows/{show_id}', method: HTTP_METHODS.GET },
10740
+ update: { url: '/gameshows/{show_id}', method: HTTP_METHODS.PUT },
10741
+ delete: { url: '/gameshows/{show_id}', method: HTTP_METHODS.DELETE },
10742
+ uploadLogo: { url: '/gameshows/{show_id}/uploadLogo', method: HTTP_METHODS.POST },
10743
+ uploadBannerImage: { url: '/gameshows/{show_id}/uploadBannerImage', method: HTTP_METHODS.POST },
10744
+ registerTitle: { url: '/gameshows/{show_id}/registerTitle', method: HTTP_METHODS.POST },
10745
+ listTitles: { url: '/gameshows/{show_id}/titles', method: HTTP_METHODS.GET },
10746
+ addTitle: { url: '/gameshows/{show_id}/addTitle', method: HTTP_METHODS.POST },
10747
+ viewTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.GET },
10748
+ updateTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.PUT },
10749
+ deleteTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.DELETE },
10750
+ };
10751
+ return GameShowsRoute;
10752
+ }());
10753
+
10754
+ var GameShows = /** @class */ (function () {
10755
+ function GameShows() {
10756
+ }
10757
+ /**
10758
+ * List all the GameShows.
10759
+ *
10760
+ * @see https://api.glitch.fun/api/documentation#/GameShows/getGameShows
10761
+ *
10762
+ * @returns promise
10763
+ */
10764
+ GameShows.list = function (params) {
10765
+ return Requests.processRoute(GameShowsRoute.routes.list, undefined, undefined, params);
10766
+ };
10767
+ /**
10768
+ * Create a new game show.
10769
+ *
10770
+ * @see https://api.glitch.fun/api/documentation#/GameShows/createGameShow
10771
+ *
10772
+ * @param data The data to be passed when creating a game show.
10773
+ *
10774
+ * @returns Promise
10775
+ */
10776
+ GameShows.create = function (data, params) {
10777
+ return Requests.processRoute(GameShowsRoute.routes.create, data, undefined, params);
10778
+ };
10779
+ /**
10780
+ * Update a game show.
10781
+ *
10782
+ * @see https://api.glitch.fun/api/documentation#/GameShows/updateGameShow
10783
+ *
10784
+ * @param show_id The id of the game show to update.
10785
+ * @param data The data to update.
10786
+ *
10787
+ * @returns promise
10788
+ */
10789
+ GameShows.update = function (show_id, data, params) {
10790
+ return Requests.processRoute(GameShowsRoute.routes.update, data, { show_id: show_id }, params);
10791
+ };
10792
+ /**
10793
+ * Retrieve the information for a single game show.
10794
+ *
10795
+ * @see https://api.glitch.fun/api/documentation#/GameShows/getGameShowByUuid
10796
+ *
10797
+ * @param show_id The id fo the game show to retrieve.
10798
+ *
10799
+ * @returns promise
10800
+ */
10801
+ GameShows.view = function (show_id, params) {
10802
+ return Requests.processRoute(GameShowsRoute.routes.view, {}, { show_id: show_id }, params);
10803
+ };
10804
+ /**
10805
+ * Deletes a game show.
10806
+ *
10807
+ * @see https://api.glitch.fun/api/documentation#/GameShows/deleteGameShow
10808
+ *
10809
+ * @param show_id The id of the game show to delete.
10810
+ * @returns promise
10811
+ */
10812
+ GameShows.delete = function (show_id, params) {
10813
+ return Requests.processRoute(GameShowsRoute.routes.delete, {}, { show_id: show_id }, params);
10814
+ };
10815
+ /**
10816
+ * Updates the main image for the game show using a File object.
10817
+ *
10818
+ * @see https://api.glitch.fun/api/documentation#/GameShows/uploadGameShowLogo
10819
+ *
10820
+ * @param file The file object to upload.
10821
+ * @param data Any additional data to pass along to the upload.
10822
+ *
10823
+ * @returns promise
10824
+ */
10825
+ GameShows.uploadLogoFile = function (show_id, file, data, params) {
10826
+ var url = GameShowsRoute.routes.uploadLogo.url.replace('{show_id}', show_id);
10827
+ return Requests.uploadFile(url, 'image', file, data);
10828
+ };
10829
+ /**
10830
+ * Updates the main image for the game show using a Blob.
10831
+ *
10832
+ * @see https://api.glitch.fun/api/documentation#/GameShows/uploadGameShowLogo
10833
+ *
10834
+ * @param blob The blob to upload.
10835
+ * @param data Any additional data to pass along to the upload
10836
+ *
10837
+ * @returns promise
10838
+ */
10839
+ GameShows.uploadLogoBlob = function (show_id, blob, data, params) {
10840
+ var url = GameShowsRoute.routes.uploadLogo.url.replace('{show_id}', show_id);
10841
+ return Requests.uploadBlob(url, 'image', blob, data);
10842
+ };
10843
+ /**
10844
+ * Updates the banner image for the game show using a File object.
10845
+ *
10846
+ * @see https://api.glitch.fun/api/documentation#/GameShows/uploadGameShowBannerImage
10847
+ *
10848
+ * @param file The file object to upload.
10849
+ * @param data Any additional data to pass along to the upload.
10850
+ *
10851
+ * @returns promise
10852
+ */
10853
+ GameShows.uploadBannerImageFile = function (show_id, file, data, params) {
10854
+ var url = GameShowsRoute.routes.uploadBannerImage.url.replace('{show_id}', show_id);
10855
+ return Requests.uploadFile(url, 'image', file, data);
10856
+ };
10857
+ /**
10858
+ * Updates the banner image for the game show using a Blob.
10859
+ *
10860
+ * @see https://api.glitch.fun/api/documentation#/GameShows/uploadGameShowBannerImage
10861
+ *
10862
+ * @param blob The blob to upload.
10863
+ * @param data Any additional data to pass along to the upload
10864
+ *
10865
+ * @returns promise
10866
+ */
10867
+ GameShows.uploadBannerImageBlob = function (show_id, blob, data, params) {
10868
+ var url = GameShowsRoute.routes.uploadBannerImage.url.replace('{show_id}', show_id);
10869
+ return Requests.uploadBlob(url, 'image', blob, data);
10870
+ };
10871
+ /**
10872
+ * Register a title to a game show.
10873
+ */
10874
+ GameShows.registerTitle = function (show_id, data, params) {
10875
+ return Requests.processRoute(GameShowsRoute.routes.registerTitle, data, { show_id: show_id }, params);
10876
+ };
10877
+ /**
10878
+ * Add a title to a game show by admin.
10879
+ */
10880
+ GameShows.addTitle = function (show_id, data, params) {
10881
+ return Requests.processRoute(GameShowsRoute.routes.addTitle, data, { show_id: show_id }, params);
10882
+ };
10883
+ /**
10884
+ * List all titles for a game show.
10885
+ */
10886
+ GameShows.listTitles = function (show_id, params) {
10887
+ return Requests.processRoute(GameShowsRoute.routes.listTitles, {}, { show_id: show_id }, params);
10888
+ };
10889
+ /**
10890
+ * Get details of a specific title in a game show.
10891
+ */
10892
+ GameShows.getTitle = function (show_id, title_id, params) {
10893
+ return Requests.processRoute(GameShowsRoute.routes.getTitle, {}, { show_id: show_id, title_id: title_id }, params);
10894
+ };
10895
+ /**
10896
+ * Update a specific title in a game show.
10897
+ */
10898
+ GameShows.updateTitle = function (show_id, title_id, data, params) {
10899
+ return Requests.processRoute(GameShowsRoute.routes.updateTitle, data, { show_id: show_id, title_id: title_id }, params);
10900
+ };
10901
+ /**
10902
+ * Delete a specific title from a game show.
10903
+ */
10904
+ GameShows.deleteTitle = function (show_id, title_id, params) {
10905
+ return Requests.processRoute(GameShowsRoute.routes.deleteTitle, {}, { show_id: show_id, title_id: title_id }, params);
10906
+ };
10907
+ return GameShows;
10908
+ }());
10909
+
10445
10910
  var Parser = /** @class */ (function () {
10446
10911
  function Parser() {
10447
10912
  }
@@ -10846,6 +11311,7 @@ var Glitch = /** @class */ (function () {
10846
11311
  Users: Users,
10847
11312
  Events: Events,
10848
11313
  Games: Games,
11314
+ GameShows: GameShows,
10849
11315
  Feedback: Feedback,
10850
11316
  Influencers: Influencers,
10851
11317
  Teams: Teams,