glitch-javascript-sdk 3.4.0 → 3.4.1

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
@@ -27005,6 +27005,10 @@ var Publications = /** @class */ (function () {
27005
27005
  var GameShowsRoute = /** @class */ (function () {
27006
27006
  function GameShowsRoute() {
27007
27007
  }
27008
+ /**
27009
+ * Canonical API route templates. JSON routes are substituted by
27010
+ * Requests.processRoute; multipart methods replace tokens before upload.
27011
+ */
27008
27012
  GameShowsRoute.routes = {
27009
27013
  list: { url: '/gameshows', method: HTTP_METHODS.GET },
27010
27014
  create: { url: '/gameshows', method: HTTP_METHODS.POST },
@@ -27016,6 +27020,7 @@ var GameShowsRoute = /** @class */ (function () {
27016
27020
  registerTitle: { url: '/gameshows/{show_id}/registerTitle', method: HTTP_METHODS.POST },
27017
27021
  listTitles: { url: '/gameshows/{show_id}/titles', method: HTTP_METHODS.GET },
27018
27022
  addTitle: { url: '/gameshows/{show_id}/addTitle', method: HTTP_METHODS.POST },
27023
+ // External registration file preview/import endpoints.
27019
27024
  previewExternalTitles: { url: '/gameshows/{show_id}/external-titles/preview', method: HTTP_METHODS.POST },
27020
27025
  importExternalTitles: { url: '/gameshows/{show_id}/external-titles/import', method: HTTP_METHODS.POST },
27021
27026
  viewTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.GET },
@@ -27036,6 +27041,7 @@ var GameShowsRoute = /** @class */ (function () {
27036
27041
  joinWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.POST },
27037
27042
  listWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.GET },
27038
27043
  listForTitle: { url: '/titles/{title_id}/gameshows', method: HTTP_METHODS.GET },
27044
+ // Organizer sponsor lifecycle and placement administration.
27039
27045
  listSponsors: { url: '/gameshows/{show_id}/sponsors', method: HTTP_METHODS.GET },
27040
27046
  createSponsor: { url: '/gameshows/{show_id}/sponsors', method: HTTP_METHODS.POST },
27041
27047
  getSponsor: { url: '/gameshows/{show_id}/sponsors/{sponsor_id}', method: HTTP_METHODS.GET },
@@ -27045,7 +27051,9 @@ var GameShowsRoute = /** @class */ (function () {
27045
27051
  createSponsorPlacement: { url: '/gameshows/{show_id}/sponsors/{sponsor_id}/placements', method: HTTP_METHODS.POST },
27046
27052
  updateSponsorPlacement: { url: '/gameshows/{show_id}/sponsors/{sponsor_id}/placements/{placement_id}', method: HTTP_METHODS.PUT },
27047
27053
  deleteSponsorPlacement: { url: '/gameshows/{show_id}/sponsors/{sponsor_id}/placements/{placement_id}', method: HTTP_METHODS.DELETE },
27054
+ // Privacy-limited anonymous sponsor inventory.
27048
27055
  listPublicSponsors: { url: '/gameshows/{show_id}/sponsors/public', method: HTTP_METHODS.GET },
27056
+ // Token-protected sponsor self-service; backend applies per-route limits.
27049
27057
  sponsorInvitation: { url: '/gameshow-sponsor-invitations/{token}', method: HTTP_METHODS.GET },
27050
27058
  sponsorInvitationUpload: { url: '/gameshow-sponsor-invitations/{token}/media', method: HTTP_METHODS.POST },
27051
27059
  sponsorInvitationSubmit: { url: '/gameshow-sponsor-invitations/{token}/submit', method: HTTP_METHODS.POST },
@@ -27184,10 +27192,13 @@ var GameShows = /** @class */ (function () {
27184
27192
  GameShows.addTitle = function (show_id, data, params) {
27185
27193
  return Requests.processRoute(GameShowsRoute.routes.addTitle, data, { show_id: show_id }, params);
27186
27194
  };
27195
+ /** Preview CSV/TSV/TXT/ZIP registrations without writing showcase data. */
27187
27196
  GameShows.previewExternalTitles = function (show_id, file, data, params) {
27197
+ // Multipart helpers require the concrete URL before uploading.
27188
27198
  var url = GameShowsRoute.routes.previewExternalTitles.url.replace('{show_id}', show_id);
27189
27199
  return Requests.uploadFile(url, 'file', file, data, params);
27190
27200
  };
27201
+ /** Import valid external registrations after organizer preview. */
27191
27202
  GameShows.importExternalTitles = function (show_id, file, data, params) {
27192
27203
  var url = GameShowsRoute.routes.importExternalTitles.url.replace('{show_id}', show_id);
27193
27204
  return Requests.uploadFile(url, 'file', file, data, params);
@@ -27306,49 +27317,65 @@ var GameShows = /** @class */ (function () {
27306
27317
  GameShows.listForTitle = function (title_id, params) {
27307
27318
  return Requests.processRoute(GameShowsRoute.routes.listForTitle, {}, { title_id: title_id }, params);
27308
27319
  };
27320
+ /** List private sponsor workflow, contact, billing, media, and placements. */
27309
27321
  GameShows.listSponsors = function (show_id, params) {
27310
27322
  return Requests.processRoute(GameShowsRoute.routes.listSponsors, {}, { show_id: show_id }, params);
27311
27323
  };
27324
+ /** Create a manual sponsor or send a self-service invitation. */
27312
27325
  GameShows.createSponsor = function (show_id, data, params) {
27313
27326
  return Requests.processRoute(GameShowsRoute.routes.createSponsor, data, { show_id: show_id }, params);
27314
27327
  };
27328
+ /** Retrieve one organizer-authorized festival sponsor. */
27315
27329
  GameShows.getSponsor = function (show_id, sponsor_id, params) {
27316
27330
  return Requests.processRoute(GameShowsRoute.routes.getSponsor, {}, { show_id: show_id, sponsor_id: sponsor_id }, params);
27317
27331
  };
27332
+ /** Update sponsor workflow, creative metadata, schedule, or billing terms. */
27318
27333
  GameShows.updateSponsor = function (show_id, sponsor_id, data, params) {
27319
27334
  return Requests.processRoute(GameShowsRoute.routes.updateSponsor, data, { show_id: show_id, sponsor_id: sponsor_id }, params);
27320
27335
  };
27336
+ /** Delete an unpaid sponsor and its placements. */
27321
27337
  GameShows.deleteSponsor = function (show_id, sponsor_id, params) {
27322
27338
  return Requests.processRoute(GameShowsRoute.routes.deleteSponsor, {}, { show_id: show_id, sponsor_id: sponsor_id }, params);
27323
27339
  };
27340
+ /** Replace the private token and resend the sponsor invitation. */
27324
27341
  GameShows.resendSponsorInvitation = function (show_id, sponsor_id, params) {
27325
27342
  return Requests.processRoute(GameShowsRoute.routes.resendSponsorInvitation, {}, { show_id: show_id, sponsor_id: sponsor_id }, params);
27326
27343
  };
27344
+ /** Add another festival, game, session, or event placement. */
27327
27345
  GameShows.createSponsorPlacement = function (show_id, sponsor_id, data, params) {
27328
27346
  return Requests.processRoute(GameShowsRoute.routes.createSponsorPlacement, data, { show_id: show_id, sponsor_id: sponsor_id }, params);
27329
27347
  };
27348
+ /** Partially update an existing sponsor placement. */
27330
27349
  GameShows.updateSponsorPlacement = function (show_id, sponsor_id, placement_id, data, params) {
27331
27350
  return Requests.processRoute(GameShowsRoute.routes.updateSponsorPlacement, data, { show_id: show_id, sponsor_id: sponsor_id, placement_id: placement_id }, params);
27332
27351
  };
27352
+ /** Delete one placement without deleting the sponsor creative. */
27333
27353
  GameShows.deleteSponsorPlacement = function (show_id, sponsor_id, placement_id, params) {
27334
27354
  return Requests.processRoute(GameShowsRoute.routes.deleteSponsorPlacement, {}, { show_id: show_id, sponsor_id: sponsor_id, placement_id: placement_id }, params);
27335
27355
  };
27356
+ /** List privacy-limited, publicly eligible creatives and placements. */
27336
27357
  GameShows.listPublicSponsors = function (show_id, params) {
27337
27358
  return Requests.processRoute(GameShowsRoute.routes.listPublicSponsors, {}, { show_id: show_id }, params);
27338
27359
  };
27360
+ /** Open a token-protected sponsor portal without a user session. */
27339
27361
  GameShows.sponsorInvitation = function (token, params) {
27340
27362
  return Requests.processRoute(GameShowsRoute.routes.sponsorInvitation, {}, { token: token }, params);
27341
27363
  };
27364
+ /** Upload sponsor image/video through the shared Media pipeline. */
27342
27365
  GameShows.uploadSponsorInvitationMedia = function (token, file, data, params) {
27366
+ // Sponsor uploads use the `media` multipart field documented by API.
27343
27367
  var url = GameShowsRoute.routes.sponsorInvitationUpload.url.replace('{token}', token);
27344
27368
  return Requests.uploadFile(url, 'media', file, data, params);
27345
27369
  };
27370
+ /** Submit sponsor identity, destination, and accessibility metadata. */
27346
27371
  GameShows.submitSponsorInvitation = function (token, data, params) {
27347
27372
  return Requests.processRoute(GameShowsRoute.routes.sponsorInvitationSubmit, data, { token: token }, params);
27348
27373
  };
27374
+ /** Create/confirm a destination PaymentIntent from a PaymentMethod ID. */
27349
27375
  GameShows.paySponsorInvitation = function (token, data, params) {
27350
27376
  return Requests.processRoute(GameShowsRoute.routes.sponsorInvitationPayment, data, { token: token }, params);
27351
27377
  };
27378
+ /** Synchronize the same intent after Stripe.js completes required 3DS. */
27352
27379
  GameShows.confirmSponsorInvitationPayment = function (token, params) {
27353
27380
  return Requests.processRoute(GameShowsRoute.routes.sponsorInvitationConfirmPayment, {}, { token: token }, params);
27354
27381
  };