glitch-javascript-sdk 3.8.6 → 3.8.7
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 +118 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/GameShows.d.ts +46 -0
- package/dist/esm/api/ServerOperations.d.ts +29 -0
- package/dist/esm/index.js +118 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +75 -0
- package/package.json +2 -2
- package/src/api/GameShows.ts +82 -0
- package/src/api/ServerOperations.ts +45 -0
- package/src/routes/GameShowsRoute.ts +11 -0
- package/src/routes/ServerOperationsRoute.ts +24 -0
package/dist/cjs/index.js
CHANGED
|
@@ -27074,6 +27074,7 @@ var GameShowsRoute = /** @class */ (function () {
|
|
|
27074
27074
|
updateTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.PUT },
|
|
27075
27075
|
deleteTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.DELETE },
|
|
27076
27076
|
listBlocks: { url: '/gameshows/{show_id}/blocks', method: HTTP_METHODS.GET },
|
|
27077
|
+
listBlockTitles: { url: '/gameshows/{show_id}/blocks/{block_id}/titles', method: HTTP_METHODS.GET },
|
|
27077
27078
|
createBlock: { url: '/gameshows/{show_id}/blocks', method: HTTP_METHODS.POST },
|
|
27078
27079
|
updateBlock: { url: '/gameshows/{show_id}/blocks/{block_id}', method: HTTP_METHODS.PUT },
|
|
27079
27080
|
deleteBlock: { url: '/gameshows/{show_id}/blocks/{block_id}', method: HTTP_METHODS.DELETE },
|
|
@@ -27083,6 +27084,16 @@ var GameShowsRoute = /** @class */ (function () {
|
|
|
27083
27084
|
createScheduleItem: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.POST },
|
|
27084
27085
|
updateScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.PUT },
|
|
27085
27086
|
deleteScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.DELETE },
|
|
27087
|
+
listScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.GET },
|
|
27088
|
+
manageScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types/manage', method: HTTP_METHODS.GET },
|
|
27089
|
+
createScheduleTicketType: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.POST },
|
|
27090
|
+
updateScheduleTicketType: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.PUT },
|
|
27091
|
+
deleteScheduleTicketType: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.DELETE },
|
|
27092
|
+
purchaseScheduleTickets: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-purchases', method: HTTP_METHODS.POST },
|
|
27093
|
+
confirmScheduleTicketPurchase: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-purchases/{purchase_id}/confirm', method: HTTP_METHODS.POST },
|
|
27094
|
+
getScheduleTicketReceipt: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-purchases/{purchase_id}/receipt', method: HTTP_METHODS.GET },
|
|
27095
|
+
listScheduleTicketPurchases: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-purchases', method: HTTP_METHODS.GET },
|
|
27096
|
+
refundScheduleTicketPurchase: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-purchases/{purchase_id}/refund', method: HTTP_METHODS.POST },
|
|
27086
27097
|
discoveryQueue: { url: '/gameshows/{show_id}/discovery', method: HTTP_METHODS.GET },
|
|
27087
27098
|
trackAnalytics: { url: '/gameshows/{show_id}/analytics', method: HTTP_METHODS.POST },
|
|
27088
27099
|
analyticsReport: { url: '/gameshows/{show_id}/analytics/report', method: HTTP_METHODS.GET },
|
|
@@ -27331,6 +27342,10 @@ var GameShows = /** @class */ (function () {
|
|
|
27331
27342
|
GameShows.listBlocks = function (show_id, params) {
|
|
27332
27343
|
return Requests.processRoute(GameShowsRoute.routes.listBlocks, {}, { show_id: show_id }, params);
|
|
27333
27344
|
};
|
|
27345
|
+
/** Paginate one Page Builder game section without downloading its full catalog. */
|
|
27346
|
+
GameShows.listBlockTitles = function (show_id, block_id, params) {
|
|
27347
|
+
return Requests.processRoute(GameShowsRoute.routes.listBlockTitles, {}, { show_id: show_id, block_id: block_id }, params);
|
|
27348
|
+
};
|
|
27334
27349
|
/**
|
|
27335
27350
|
* Create a page-builder block for a game show. Requires organizer permissions.
|
|
27336
27351
|
*/
|
|
@@ -27383,6 +27398,46 @@ var GameShows = /** @class */ (function () {
|
|
|
27383
27398
|
GameShows.deleteScheduleItem = function (show_id, schedule_id, params) {
|
|
27384
27399
|
return Requests.processRoute(GameShowsRoute.routes.deleteScheduleItem, {}, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
27385
27400
|
};
|
|
27401
|
+
/** List public early-bird, regular, and other ticket tiers for one session. */
|
|
27402
|
+
GameShows.listScheduleTicketTypes = function (show_id, schedule_id, params) {
|
|
27403
|
+
return Requests.processRoute(GameShowsRoute.routes.listScheduleTicketTypes, {}, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
27404
|
+
};
|
|
27405
|
+
/** List every ticket tier, including archived tiers, for festival organizers. */
|
|
27406
|
+
GameShows.manageScheduleTicketTypes = function (show_id, schedule_id, params) {
|
|
27407
|
+
return Requests.processRoute(GameShowsRoute.routes.manageScheduleTicketTypes, {}, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
27408
|
+
};
|
|
27409
|
+
/** Create one session ticket price tier. */
|
|
27410
|
+
GameShows.createScheduleTicketType = function (show_id, schedule_id, data, params) {
|
|
27411
|
+
return Requests.processRoute(GameShowsRoute.routes.createScheduleTicketType, data, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
27412
|
+
};
|
|
27413
|
+
/** Update ticket price, inventory, availability window, or publication state. */
|
|
27414
|
+
GameShows.updateScheduleTicketType = function (show_id, schedule_id, ticket_type_id, data, params) {
|
|
27415
|
+
return Requests.processRoute(GameShowsRoute.routes.updateScheduleTicketType, data, { show_id: show_id, schedule_id: schedule_id, ticket_type_id: ticket_type_id }, params);
|
|
27416
|
+
};
|
|
27417
|
+
/** Archive a ticket tier while retaining historical purchases. */
|
|
27418
|
+
GameShows.deleteScheduleTicketType = function (show_id, schedule_id, ticket_type_id, params) {
|
|
27419
|
+
return Requests.processRoute(GameShowsRoute.routes.deleteScheduleTicketType, {}, { show_id: show_id, schedule_id: schedule_id, ticket_type_id: ticket_type_id }, params);
|
|
27420
|
+
};
|
|
27421
|
+
/** Reserve inventory and create/confirm the session ticket PaymentIntent. */
|
|
27422
|
+
GameShows.purchaseScheduleTickets = function (show_id, schedule_id, data, params) {
|
|
27423
|
+
return Requests.processRoute(GameShowsRoute.routes.purchaseScheduleTickets, data, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
27424
|
+
};
|
|
27425
|
+
/** Synchronize the same ticket PaymentIntent after Stripe.js completes 3DS. */
|
|
27426
|
+
GameShows.confirmScheduleTicketPurchase = function (show_id, schedule_id, purchase_id, access_token, params) {
|
|
27427
|
+
return Requests.processRoute(GameShowsRoute.routes.confirmScheduleTicketPurchase, { access_token: access_token }, { show_id: show_id, schedule_id: schedule_id, purchase_id: purchase_id }, params);
|
|
27428
|
+
};
|
|
27429
|
+
/** Retrieve a token-protected customer receipt. */
|
|
27430
|
+
GameShows.getScheduleTicketReceipt = function (show_id, schedule_id, purchase_id, access_token, params) {
|
|
27431
|
+
return Requests.processRoute(GameShowsRoute.routes.getScheduleTicketReceipt, {}, { show_id: show_id, schedule_id: schedule_id, purchase_id: purchase_id }, __assign(__assign({}, params), { access_token: access_token }));
|
|
27432
|
+
};
|
|
27433
|
+
/** List ticket purchasers and refund state for festival organizers. */
|
|
27434
|
+
GameShows.listScheduleTicketPurchases = function (show_id, schedule_id, params) {
|
|
27435
|
+
return Requests.processRoute(GameShowsRoute.routes.listScheduleTicketPurchases, {}, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
27436
|
+
};
|
|
27437
|
+
/** Issue a partial or full destination-charge refund at organizer discretion. */
|
|
27438
|
+
GameShows.refundScheduleTicketPurchase = function (show_id, schedule_id, purchase_id, data, params) {
|
|
27439
|
+
return Requests.processRoute(GameShowsRoute.routes.refundScheduleTicketPurchase, data, { show_id: show_id, schedule_id: schedule_id, purchase_id: purchase_id }, params);
|
|
27440
|
+
};
|
|
27386
27441
|
/**
|
|
27387
27442
|
* Get the game show discovery queue.
|
|
27388
27443
|
*/
|
|
@@ -32223,6 +32278,30 @@ var ServerOperationsRoute = /** @class */ (function () {
|
|
|
32223
32278
|
url: '/admin/server-operations/titles/{title_id}/builds/{build_id}/policy',
|
|
32224
32279
|
method: HTTP_METHODS.PUT
|
|
32225
32280
|
},
|
|
32281
|
+
updateContainerAppResources: {
|
|
32282
|
+
url: '/admin/server-operations/titles/{title_id}/builds/{build_id}/container-app',
|
|
32283
|
+
method: HTTP_METHODS.PUT
|
|
32284
|
+
},
|
|
32285
|
+
updateCapacityModel: {
|
|
32286
|
+
url: '/admin/server-operations/titles/{title_id}/builds/{build_id}/capacity-model',
|
|
32287
|
+
method: HTTP_METHODS.PUT
|
|
32288
|
+
},
|
|
32289
|
+
listRealms: {
|
|
32290
|
+
url: '/admin/server-operations/titles/{title_id}/realms',
|
|
32291
|
+
method: HTTP_METHODS.GET
|
|
32292
|
+
},
|
|
32293
|
+
createRealm: {
|
|
32294
|
+
url: '/admin/server-operations/titles/{title_id}/realms',
|
|
32295
|
+
method: HTTP_METHODS.POST
|
|
32296
|
+
},
|
|
32297
|
+
updateRealm: {
|
|
32298
|
+
url: '/admin/server-operations/titles/{title_id}/realms/{realm_id}',
|
|
32299
|
+
method: HTTP_METHODS.PUT
|
|
32300
|
+
},
|
|
32301
|
+
deleteRealm: {
|
|
32302
|
+
url: '/admin/server-operations/titles/{title_id}/realms/{realm_id}',
|
|
32303
|
+
method: HTTP_METHODS.DELETE
|
|
32304
|
+
},
|
|
32226
32305
|
};
|
|
32227
32306
|
return ServerOperationsRoute;
|
|
32228
32307
|
}());
|
|
@@ -32233,9 +32312,48 @@ var ServerOperations = /** @class */ (function () {
|
|
|
32233
32312
|
ServerOperations.listDeployments = function (params) {
|
|
32234
32313
|
return Requests.processRoute(ServerOperationsRoute.routes.listDeployments, undefined, undefined, params);
|
|
32235
32314
|
};
|
|
32315
|
+
/**
|
|
32316
|
+
* Update the warm/spare/ceiling shape of a matchmaker managed instance pool.
|
|
32317
|
+
* Rejected for any build whose capacity model is not "pooled".
|
|
32318
|
+
*/
|
|
32236
32319
|
ServerOperations.updatePolicy = function (title_id, build_id, data) {
|
|
32237
32320
|
return Requests.processRoute(ServerOperationsRoute.routes.updatePolicy, data, { title_id: title_id, build_id: build_id });
|
|
32238
32321
|
};
|
|
32322
|
+
/**
|
|
32323
|
+
* Resize the Container App behind a build. Replica bounds are enforced
|
|
32324
|
+
* server side against the build's capacity model, so a singleton world
|
|
32325
|
+
* cannot be given a second replica. Pass acknowledge_outage when
|
|
32326
|
+
* deliberately setting min replicas to 0 on a singleton or replicated
|
|
32327
|
+
* deployment, which takes the game offline.
|
|
32328
|
+
*/
|
|
32329
|
+
ServerOperations.updateContainerAppResources = function (title_id, build_id, data) {
|
|
32330
|
+
return Requests.processRoute(ServerOperationsRoute.routes.updateContainerAppResources, data, { title_id: title_id, build_id: build_id });
|
|
32331
|
+
};
|
|
32332
|
+
/**
|
|
32333
|
+
* Declare how many server processes a build may run at once: singleton,
|
|
32334
|
+
* replicated, pooled, serverless, or static. Re-clamps the stored replica
|
|
32335
|
+
* shape and is honored by the next deployment.
|
|
32336
|
+
*/
|
|
32337
|
+
ServerOperations.updateCapacityModel = function (title_id, build_id, data) {
|
|
32338
|
+
return Requests.processRoute(ServerOperationsRoute.routes.updateCapacityModel, data, { title_id: title_id, build_id: build_id });
|
|
32339
|
+
};
|
|
32340
|
+
/**
|
|
32341
|
+
* Realms are how a singleton world scales: one process per realm, all
|
|
32342
|
+
* sharing a database. These are the site-admin views of the multiplayer
|
|
32343
|
+
* realm records.
|
|
32344
|
+
*/
|
|
32345
|
+
ServerOperations.listRealms = function (title_id, params) {
|
|
32346
|
+
return Requests.processRoute(ServerOperationsRoute.routes.listRealms, undefined, { title_id: title_id }, params);
|
|
32347
|
+
};
|
|
32348
|
+
ServerOperations.createRealm = function (title_id, data) {
|
|
32349
|
+
return Requests.processRoute(ServerOperationsRoute.routes.createRealm, data, { title_id: title_id });
|
|
32350
|
+
};
|
|
32351
|
+
ServerOperations.updateRealm = function (title_id, realm_id, data) {
|
|
32352
|
+
return Requests.processRoute(ServerOperationsRoute.routes.updateRealm, data, { title_id: title_id, realm_id: realm_id });
|
|
32353
|
+
};
|
|
32354
|
+
ServerOperations.deleteRealm = function (title_id, realm_id) {
|
|
32355
|
+
return Requests.processRoute(ServerOperationsRoute.routes.deleteRealm, undefined, { title_id: title_id, realm_id: realm_id });
|
|
32356
|
+
};
|
|
32239
32357
|
return ServerOperations;
|
|
32240
32358
|
}());
|
|
32241
32359
|
|