glitch-javascript-sdk 3.10.5 → 3.10.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/browser/hosting-runtime.js +3 -3
- package/dist/browser/hosting-runtime.js.map +1 -1
- package/dist/cjs/index.js +61 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/GameShows.d.ts +26 -0
- package/dist/esm/api/Hosting.d.ts +30 -6
- package/dist/esm/api/Titles.d.ts +2 -0
- package/dist/esm/index.js +61 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +76 -6
- package/package.json +1 -1
- package/src/api/GameShows.ts +57 -0
- package/src/api/Hosting.ts +32 -6
- package/src/api/Titles.ts +5 -0
- package/src/routes/GameShowsRoute.ts +10 -0
- package/src/routes/TitlesRoute.ts +4 -0
package/dist/index.d.ts
CHANGED
|
@@ -4731,6 +4731,8 @@ declare class Titles {
|
|
|
4731
4731
|
* @param params Optional pagination parameters (?page=1&per_page=25)
|
|
4732
4732
|
*/
|
|
4733
4733
|
static myWishlists<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4734
|
+
/** Look up the current user's wishlist rows for up to 100 title UUIDs. */
|
|
4735
|
+
static lookupMyWishlists<T>(title_ids: string[]): AxiosPromise<Response<T>>;
|
|
4734
4736
|
/**
|
|
4735
4737
|
* Get Wishlist Intelligence statistics for a title.
|
|
4736
4738
|
* Includes funnel data and predictive revenue forecasting.
|
|
@@ -6252,6 +6254,12 @@ interface GameShowScheduleTicketTypeInput {
|
|
|
6252
6254
|
sort_order?: number;
|
|
6253
6255
|
is_active?: boolean;
|
|
6254
6256
|
}
|
|
6257
|
+
interface GameShowFestivalTicketTypeInput extends GameShowScheduleTicketTypeInput {
|
|
6258
|
+
scope: 'session' | 'festival' | 'track' | 'bundle';
|
|
6259
|
+
schedule_item_id?: string | null;
|
|
6260
|
+
track_block_id?: string | null;
|
|
6261
|
+
schedule_item_ids?: string[] | null;
|
|
6262
|
+
}
|
|
6255
6263
|
interface GameShowScheduleTicketPurchaseInput {
|
|
6256
6264
|
ticket_type_id: string;
|
|
6257
6265
|
email: string;
|
|
@@ -6441,6 +6449,26 @@ declare class GameShows {
|
|
|
6441
6449
|
* Delete a schedule item from a game show. Requires organizer permissions.
|
|
6442
6450
|
*/
|
|
6443
6451
|
static deleteScheduleItem<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6452
|
+
/** List public festival, track, bundle, and single-session ticket products. */
|
|
6453
|
+
static listFestivalTicketTypes<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6454
|
+
/** List all festival ticket products, including archived products, for organizers. */
|
|
6455
|
+
static manageFestivalTicketTypes<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6456
|
+
/** Create a whole-festival pass, track pass, event bundle, or session ticket. */
|
|
6457
|
+
static createFestivalTicketType<T>(show_id: string, data: GameShowFestivalTicketTypeInput, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6458
|
+
/** Update the coverage, price, inventory, sales window, or visibility of a festival ticket product. */
|
|
6459
|
+
static updateFestivalTicketType<T>(show_id: string, ticket_type_id: string, data: Partial<GameShowFestivalTicketTypeInput>, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6460
|
+
/** Archive a festival ticket product while retaining purchase history. */
|
|
6461
|
+
static deleteFestivalTicketType<T>(show_id: string, ticket_type_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6462
|
+
/** Reserve inventory and create or confirm a festival-level ticket payment. */
|
|
6463
|
+
static purchaseFestivalTickets<T>(show_id: string, data: GameShowScheduleTicketPurchaseInput, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6464
|
+
/** Synchronize a festival-level ticket purchase after Stripe.js completes 3DS. */
|
|
6465
|
+
static confirmFestivalTicketPurchase<T>(show_id: string, purchase_id: string, access_token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6466
|
+
/** Retrieve a token-protected receipt for any festival ticket scope. */
|
|
6467
|
+
static getFestivalTicketReceipt<T>(show_id: string, purchase_id: string, access_token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6468
|
+
/** List purchasers across festival, track, bundle, and session ticket products. */
|
|
6469
|
+
static listFestivalTicketPurchases<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6470
|
+
/** Issue a partial or full refund for a festival ticket purchase. */
|
|
6471
|
+
static refundFestivalTicketPurchase<T>(show_id: string, purchase_id: string, data: GameShowScheduleTicketRefundInput, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6444
6472
|
/** List public early-bird, regular, and other ticket tiers for one session. */
|
|
6445
6473
|
static listScheduleTicketTypes<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6446
6474
|
/** List every ticket tier, including archived tiers, for festival organizers. */
|
|
@@ -11556,6 +11584,28 @@ type HostingServiceRole = 'web' | 'api' | 'game' | 'realtime' | 'simulation' | '
|
|
|
11556
11584
|
type HostingServiceVisibility = 'public' | 'internal' | 'none';
|
|
11557
11585
|
type HostingCapacityModel = 'singleton' | 'replicated' | 'serverless';
|
|
11558
11586
|
type HostingBillingProvider = 'direct' | 'microsoft_marketplace' | 'aws_marketplace';
|
|
11587
|
+
interface HostingDatabase {
|
|
11588
|
+
id: string;
|
|
11589
|
+
hosting_site_id: string;
|
|
11590
|
+
name: string;
|
|
11591
|
+
engine: HostingDatabaseEngine;
|
|
11592
|
+
plan: HostingDatabasePlan;
|
|
11593
|
+
status: 'awaiting_payment' | 'requested' | 'provisioning' | 'ready' | 'resizing' | 'restoring' | 'failed' | 'deleting' | 'deleted';
|
|
11594
|
+
deployment_model: 'shared' | 'dedicated' | 'serverless' | 'managed_cache';
|
|
11595
|
+
azure_region: string;
|
|
11596
|
+
included_storage_bytes: number;
|
|
11597
|
+
current_storage_bytes: number;
|
|
11598
|
+
auto_grow_enabled: boolean;
|
|
11599
|
+
backup_retention_days: number;
|
|
11600
|
+
high_availability_enabled: boolean;
|
|
11601
|
+
endpoint?: string | null;
|
|
11602
|
+
port?: number | null;
|
|
11603
|
+
binding_name: string;
|
|
11604
|
+
billing_status: 'awaiting_payment' | 'active' | 'past_due' | 'unpaid' | 'cancelled' | 'expired' | 'failed';
|
|
11605
|
+
billing_provider: HostingBillingProvider;
|
|
11606
|
+
billing_active: boolean;
|
|
11607
|
+
last_error?: string | null;
|
|
11608
|
+
}
|
|
11559
11609
|
interface HostingDatabaseCredentials {
|
|
11560
11610
|
database_id: string;
|
|
11561
11611
|
name: string;
|
|
@@ -11698,6 +11748,26 @@ interface CreateHostingReleaseRequest {
|
|
|
11698
11748
|
source_type: 'upload' | 'cli' | 'game_build';
|
|
11699
11749
|
blob_path?: string;
|
|
11700
11750
|
game_build_id?: string;
|
|
11751
|
+
/** Proven relative path in the finished artifact. Never guess index.html or package.json. */
|
|
11752
|
+
entry_point: string;
|
|
11753
|
+
}
|
|
11754
|
+
interface HostingCheckoutResult {
|
|
11755
|
+
database?: HostingDatabase;
|
|
11756
|
+
action?: string;
|
|
11757
|
+
checkout_url?: string | null;
|
|
11758
|
+
/** Stripe Embedded Checkout client secret for same-page card collection and 3DS. */
|
|
11759
|
+
checkout_client_secret?: string | null;
|
|
11760
|
+
checkout_mode?: 'embedded' | 'hosted' | null;
|
|
11761
|
+
checkout_session_id?: string | null;
|
|
11762
|
+
billing_provider?: HostingBillingProvider;
|
|
11763
|
+
message?: string;
|
|
11764
|
+
}
|
|
11765
|
+
interface HostingAiInstructionsRequest extends HostingServiceStackRequest {
|
|
11766
|
+
framework?: string;
|
|
11767
|
+
custom_domain?: string;
|
|
11768
|
+
databases?: Array<Pick<HostingDatabase, 'name' | 'engine' | 'plan'>>;
|
|
11769
|
+
version?: string;
|
|
11770
|
+
/** Candidate only; the generated instructions require proof from the finished artifact. */
|
|
11701
11771
|
entry_point?: string;
|
|
11702
11772
|
}
|
|
11703
11773
|
interface CreateHostingDatabaseRequest {
|
|
@@ -11709,7 +11779,7 @@ interface CreateHostingDatabaseRequest {
|
|
|
11709
11779
|
high_availability_enabled?: boolean;
|
|
11710
11780
|
}
|
|
11711
11781
|
/**
|
|
11712
|
-
* Typed SDK for game website hosting,
|
|
11782
|
+
* Typed SDK for game website hosting, managed database add-ons, domains, usage,
|
|
11713
11783
|
* deployment instructions, and hosted-play attribution.
|
|
11714
11784
|
*/
|
|
11715
11785
|
declare class Hosting {
|
|
@@ -11718,7 +11788,7 @@ declare class Hosting {
|
|
|
11718
11788
|
static channelAnalytics<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
11719
11789
|
/** Start or apply a bandwidth-based Hosting plan, separate from Store distribution. */
|
|
11720
11790
|
static billingCheckout<T>(title_id: string, plan: HostingPlanKey): AxiosPromise<Response<T>>;
|
|
11721
|
-
/** Confirm a paid Stripe Checkout session before provisioning its
|
|
11791
|
+
/** Confirm a paid Stripe Checkout session before provisioning its add-on. */
|
|
11722
11792
|
static confirmBillingCheckout<T>(title_id: string, checkout_session_id: string): AxiosPromise<Response<T>>;
|
|
11723
11793
|
/** Resolve the one-hour purchase token passed to Glitch by Microsoft Marketplace. */
|
|
11724
11794
|
static resolveMarketplacePurchase<T>(token: string): AxiosPromise<Response<T>>;
|
|
@@ -11735,7 +11805,7 @@ declare class Hosting {
|
|
|
11735
11805
|
static createSite<T>(title_id: string, data: CreateHostingSiteRequest): AxiosPromise<Response<T>>;
|
|
11736
11806
|
static updateSite<T>(title_id: string, site_id: string, data: Partial<CreateHostingSiteRequest> & Record<string, any>): AxiosPromise<Response<T>>;
|
|
11737
11807
|
static createUploadUrl<T>(title_id: string, site_id: string): AxiosPromise<Response<T>>;
|
|
11738
|
-
/** Upload directly to the short-lived
|
|
11808
|
+
/** Upload directly to the short-lived signed URL returned by createUploadUrl. */
|
|
11739
11809
|
static uploadBuild(uploadUrl: string, file: Blob, requiredHeaders?: Record<string, string>, onUploadProgress?: (event: AxiosProgressEvent) => void): AxiosPromise<void>;
|
|
11740
11810
|
static releases<T>(title_id: string, site_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
11741
11811
|
static createRelease<T>(title_id: string, site_id: string, data: CreateHostingReleaseRequest): AxiosPromise<Response<T>>;
|
|
@@ -11744,7 +11814,7 @@ declare class Hosting {
|
|
|
11744
11814
|
static verifyDomain<T>(title_id: string, site_id: string, domain_id: string): AxiosPromise<Response<T>>;
|
|
11745
11815
|
static checkDomain<T>(hostname: string): AxiosPromise<Response<T>>;
|
|
11746
11816
|
static purchaseDomain<T>(title_id: string, site_id: string, data: Record<string, any>): AxiosPromise<Response<T>>;
|
|
11747
|
-
static aiInstructions<T>(title_id: string, site_id: string, data?:
|
|
11817
|
+
static aiInstructions<T>(title_id: string, site_id: string, data?: HostingAiInstructionsRequest): AxiosPromise<Response<T>>;
|
|
11748
11818
|
static services<T = HostingService[]>(title_id: string, site_id: string): AxiosPromise<Response<T>>;
|
|
11749
11819
|
/** Calculate the always-on floor without creating resources or charges. */
|
|
11750
11820
|
static estimateServices<T = HostingServiceEstimate>(title_id: string, site_id: string, data: HostingServiceStackRequest): AxiosPromise<Response<T>>;
|
|
@@ -11757,7 +11827,7 @@ declare class Hosting {
|
|
|
11757
11827
|
static startPlaySession<T>(data: Record<string, any>): AxiosPromise<Response<T>>;
|
|
11758
11828
|
static heartbeatPlaySession<T>(session_id: string, sessionToken: string): AxiosPromise<Response<T>>;
|
|
11759
11829
|
static databases<T>(title_id: string, site_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
11760
|
-
static createDatabase<T>(title_id: string, site_id: string, data: CreateHostingDatabaseRequest): AxiosPromise<Response<T>>;
|
|
11830
|
+
static createDatabase<T = HostingCheckoutResult>(title_id: string, site_id: string, data: CreateHostingDatabaseRequest): AxiosPromise<Response<T>>;
|
|
11761
11831
|
static database<T>(title_id: string, site_id: string, database_id: string): AxiosPromise<Response<T>>;
|
|
11762
11832
|
/**
|
|
11763
11833
|
* Reveal credentials to a signed-in business billing administrator after an
|
|
@@ -11765,7 +11835,7 @@ declare class Hosting {
|
|
|
11765
11835
|
*/
|
|
11766
11836
|
static databaseCredentials<T = HostingDatabaseCredentials>(title_id: string, site_id: string, database_id: string, confirmation: string): AxiosPromise<Response<T>>;
|
|
11767
11837
|
static updateDatabase<T>(title_id: string, site_id: string, database_id: string, data: Record<string, any>): AxiosPromise<Response<T>>;
|
|
11768
|
-
static retryDatabase<T>(title_id: string, site_id: string, database_id: string): AxiosPromise<Response<T>>;
|
|
11838
|
+
static retryDatabase<T = HostingCheckoutResult>(title_id: string, site_id: string, database_id: string): AxiosPromise<Response<T>>;
|
|
11769
11839
|
static deleteDatabase<T>(title_id: string, site_id: string, database_id: string, confirmation: string): AxiosPromise<Response<T>>;
|
|
11770
11840
|
}
|
|
11771
11841
|
|
package/package.json
CHANGED
package/src/api/GameShows.ts
CHANGED
|
@@ -16,6 +16,13 @@ export interface GameShowScheduleTicketTypeInput {
|
|
|
16
16
|
is_active?: boolean;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
export interface GameShowFestivalTicketTypeInput extends GameShowScheduleTicketTypeInput {
|
|
20
|
+
scope: 'session' | 'festival' | 'track' | 'bundle';
|
|
21
|
+
schedule_item_id?: string | null;
|
|
22
|
+
track_block_id?: string | null;
|
|
23
|
+
schedule_item_ids?: string[] | null;
|
|
24
|
+
}
|
|
25
|
+
|
|
19
26
|
export interface GameShowScheduleTicketPurchaseInput {
|
|
20
27
|
ticket_type_id: string;
|
|
21
28
|
email: string;
|
|
@@ -335,6 +342,56 @@ class GameShows {
|
|
|
335
342
|
return Requests.processRoute(GameShowsRoute.routes.deleteScheduleItem, {}, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
336
343
|
}
|
|
337
344
|
|
|
345
|
+
/** List public festival, track, bundle, and single-session ticket products. */
|
|
346
|
+
public static listFestivalTicketTypes<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
347
|
+
return Requests.processRoute(GameShowsRoute.routes.listFestivalTicketTypes, {}, { show_id }, params);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/** List all festival ticket products, including archived products, for organizers. */
|
|
351
|
+
public static manageFestivalTicketTypes<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
352
|
+
return Requests.processRoute(GameShowsRoute.routes.manageFestivalTicketTypes, {}, { show_id }, params);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/** Create a whole-festival pass, track pass, event bundle, or session ticket. */
|
|
356
|
+
public static createFestivalTicketType<T>(show_id: string, data: GameShowFestivalTicketTypeInput, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
357
|
+
return Requests.processRoute(GameShowsRoute.routes.createFestivalTicketType, data, { show_id }, params);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/** Update the coverage, price, inventory, sales window, or visibility of a festival ticket product. */
|
|
361
|
+
public static updateFestivalTicketType<T>(show_id: string, ticket_type_id: string, data: Partial<GameShowFestivalTicketTypeInput>, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
362
|
+
return Requests.processRoute(GameShowsRoute.routes.updateFestivalTicketType, data, { show_id, ticket_type_id }, params);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/** Archive a festival ticket product while retaining purchase history. */
|
|
366
|
+
public static deleteFestivalTicketType<T>(show_id: string, ticket_type_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
367
|
+
return Requests.processRoute(GameShowsRoute.routes.deleteFestivalTicketType, {}, { show_id, ticket_type_id }, params);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/** Reserve inventory and create or confirm a festival-level ticket payment. */
|
|
371
|
+
public static purchaseFestivalTickets<T>(show_id: string, data: GameShowScheduleTicketPurchaseInput, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
372
|
+
return Requests.processRoute(GameShowsRoute.routes.purchaseFestivalTickets, data, { show_id }, params);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/** Synchronize a festival-level ticket purchase after Stripe.js completes 3DS. */
|
|
376
|
+
public static confirmFestivalTicketPurchase<T>(show_id: string, purchase_id: string, access_token: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
377
|
+
return Requests.processRoute(GameShowsRoute.routes.confirmFestivalTicketPurchase, { access_token }, { show_id, purchase_id }, params);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/** Retrieve a token-protected receipt for any festival ticket scope. */
|
|
381
|
+
public static getFestivalTicketReceipt<T>(show_id: string, purchase_id: string, access_token: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
382
|
+
return Requests.processRoute(GameShowsRoute.routes.getFestivalTicketReceipt, {}, { show_id, purchase_id }, { ...params, access_token });
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/** List purchasers across festival, track, bundle, and session ticket products. */
|
|
386
|
+
public static listFestivalTicketPurchases<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
387
|
+
return Requests.processRoute(GameShowsRoute.routes.listFestivalTicketPurchases, {}, { show_id }, params);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/** Issue a partial or full refund for a festival ticket purchase. */
|
|
391
|
+
public static refundFestivalTicketPurchase<T>(show_id: string, purchase_id: string, data: GameShowScheduleTicketRefundInput, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
392
|
+
return Requests.processRoute(GameShowsRoute.routes.refundFestivalTicketPurchase, data, { show_id, purchase_id }, params);
|
|
393
|
+
}
|
|
394
|
+
|
|
338
395
|
/** List public early-bird, regular, and other ticket tiers for one session. */
|
|
339
396
|
public static listScheduleTicketTypes<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
340
397
|
return Requests.processRoute(GameShowsRoute.routes.listScheduleTicketTypes, {}, { show_id, schedule_id }, params);
|
package/src/api/Hosting.ts
CHANGED
|
@@ -54,6 +54,9 @@ export interface HostingDomain {
|
|
|
54
54
|
verification_record_name?: string | null;
|
|
55
55
|
verification_record_value?: string | null;
|
|
56
56
|
certificate_status?: string | null;
|
|
57
|
+
error_code?: string | null;
|
|
58
|
+
incident_id?: string | null;
|
|
59
|
+
last_error?: string | null;
|
|
57
60
|
billing_status?: 'active' | 'past_due' | 'unpaid' | 'cancelled' | null;
|
|
58
61
|
annual_price_cents?: number | null;
|
|
59
62
|
auto_renew: boolean;
|
|
@@ -118,6 +121,7 @@ export interface HostingSite {
|
|
|
118
121
|
status: 'draft' | 'provisioning' | 'live' | 'limited' | 'failed' | 'disabled';
|
|
119
122
|
server_mode_enabled: boolean;
|
|
120
123
|
azure_region?: string | null;
|
|
124
|
+
active_release_id?: string | null;
|
|
121
125
|
active_release?: HostingRelease | null;
|
|
122
126
|
domains?: HostingDomain[];
|
|
123
127
|
databases?: HostingDatabase[];
|
|
@@ -248,6 +252,28 @@ export interface CreateHostingReleaseRequest {
|
|
|
248
252
|
source_type: 'upload' | 'cli' | 'game_build';
|
|
249
253
|
blob_path?: string;
|
|
250
254
|
game_build_id?: string;
|
|
255
|
+
/** Proven relative path in the finished artifact. Never guess index.html or package.json. */
|
|
256
|
+
entry_point: string;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export interface HostingCheckoutResult {
|
|
260
|
+
database?: HostingDatabase;
|
|
261
|
+
action?: string;
|
|
262
|
+
checkout_url?: string | null;
|
|
263
|
+
/** Stripe Embedded Checkout client secret for same-page card collection and 3DS. */
|
|
264
|
+
checkout_client_secret?: string | null;
|
|
265
|
+
checkout_mode?: 'embedded' | 'hosted' | null;
|
|
266
|
+
checkout_session_id?: string | null;
|
|
267
|
+
billing_provider?: HostingBillingProvider;
|
|
268
|
+
message?: string;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export interface HostingAiInstructionsRequest extends HostingServiceStackRequest {
|
|
272
|
+
framework?: string;
|
|
273
|
+
custom_domain?: string;
|
|
274
|
+
databases?: Array<Pick<HostingDatabase, 'name' | 'engine' | 'plan'>>;
|
|
275
|
+
version?: string;
|
|
276
|
+
/** Candidate only; the generated instructions require proof from the finished artifact. */
|
|
251
277
|
entry_point?: string;
|
|
252
278
|
}
|
|
253
279
|
|
|
@@ -294,7 +320,7 @@ export interface HostingAwsMarketplaceSubscription {
|
|
|
294
320
|
}
|
|
295
321
|
|
|
296
322
|
/**
|
|
297
|
-
* Typed SDK for game website hosting,
|
|
323
|
+
* Typed SDK for game website hosting, managed database add-ons, domains, usage,
|
|
298
324
|
* deployment instructions, and hosted-play attribution.
|
|
299
325
|
*/
|
|
300
326
|
class Hosting {
|
|
@@ -315,7 +341,7 @@ class Hosting {
|
|
|
315
341
|
return Requests.processRoute(HostingRoute.routes.billingCheckout, { plan }, { title_id });
|
|
316
342
|
}
|
|
317
343
|
|
|
318
|
-
/** Confirm a paid Stripe Checkout session before provisioning its
|
|
344
|
+
/** Confirm a paid Stripe Checkout session before provisioning its add-on. */
|
|
319
345
|
public static confirmBillingCheckout<T>(title_id: string, checkout_session_id: string): AxiosPromise<Response<T>> {
|
|
320
346
|
return Requests.processRoute(HostingRoute.routes.confirmBillingCheckout, { checkout_session_id }, { title_id });
|
|
321
347
|
}
|
|
@@ -362,7 +388,7 @@ class Hosting {
|
|
|
362
388
|
return Requests.processRoute(HostingRoute.routes.uploadUrl, {}, { title_id, site_id });
|
|
363
389
|
}
|
|
364
390
|
|
|
365
|
-
/** Upload directly to the short-lived
|
|
391
|
+
/** Upload directly to the short-lived signed URL returned by createUploadUrl. */
|
|
366
392
|
public static uploadBuild(uploadUrl: string, file: Blob, requiredHeaders: Record<string, string> = {}, onUploadProgress?: (event: AxiosProgressEvent) => void): AxiosPromise<void> {
|
|
367
393
|
return axios.put(uploadUrl, file, {
|
|
368
394
|
headers: { 'x-ms-blob-type': 'BlockBlob', 'Content-Type': 'application/zip', ...requiredHeaders },
|
|
@@ -398,7 +424,7 @@ class Hosting {
|
|
|
398
424
|
return Requests.processRoute(HostingRoute.routes.purchaseDomain, data, { title_id, site_id });
|
|
399
425
|
}
|
|
400
426
|
|
|
401
|
-
public static aiInstructions<T>(title_id: string, site_id: string, data:
|
|
427
|
+
public static aiInstructions<T>(title_id: string, site_id: string, data: HostingAiInstructionsRequest = {}): AxiosPromise<Response<T>> {
|
|
402
428
|
return Requests.processRoute(HostingRoute.routes.aiInstructions, data, { title_id, site_id });
|
|
403
429
|
}
|
|
404
430
|
|
|
@@ -452,7 +478,7 @@ class Hosting {
|
|
|
452
478
|
return Requests.processRoute(HostingRoute.routes.databases, undefined, { title_id, site_id }, params);
|
|
453
479
|
}
|
|
454
480
|
|
|
455
|
-
public static createDatabase<T>(title_id: string, site_id: string, data: CreateHostingDatabaseRequest): AxiosPromise<Response<T>> {
|
|
481
|
+
public static createDatabase<T = HostingCheckoutResult>(title_id: string, site_id: string, data: CreateHostingDatabaseRequest): AxiosPromise<Response<T>> {
|
|
456
482
|
return Requests.processRoute(HostingRoute.routes.createDatabase, data, { title_id, site_id });
|
|
457
483
|
}
|
|
458
484
|
|
|
@@ -472,7 +498,7 @@ class Hosting {
|
|
|
472
498
|
return Requests.processRoute(HostingRoute.routes.updateDatabase, data, { title_id, site_id, database_id });
|
|
473
499
|
}
|
|
474
500
|
|
|
475
|
-
public static retryDatabase<T>(title_id: string, site_id: string, database_id: string): AxiosPromise<Response<T>> {
|
|
501
|
+
public static retryDatabase<T = HostingCheckoutResult>(title_id: string, site_id: string, database_id: string): AxiosPromise<Response<T>> {
|
|
476
502
|
return Requests.processRoute(HostingRoute.routes.retryDatabase, {}, { title_id, site_id, database_id });
|
|
477
503
|
}
|
|
478
504
|
|
package/src/api/Titles.ts
CHANGED
|
@@ -1148,6 +1148,11 @@ class Titles {
|
|
|
1148
1148
|
return Requests.processRoute(TitlesRoute.routes.myWishlists, undefined, undefined, params);
|
|
1149
1149
|
}
|
|
1150
1150
|
|
|
1151
|
+
/** Look up the current user's wishlist rows for up to 100 title UUIDs. */
|
|
1152
|
+
public static lookupMyWishlists<T>(title_ids: string[]): AxiosPromise<Response<T>> {
|
|
1153
|
+
return Requests.processRoute(TitlesRoute.routes.lookupMyWishlists, { title_ids });
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1151
1156
|
/**
|
|
1152
1157
|
* Get Wishlist Intelligence statistics for a title.
|
|
1153
1158
|
* Includes funnel data and predictive revenue forecasting.
|
|
@@ -48,6 +48,16 @@ class GameShowsRoute {
|
|
|
48
48
|
createScheduleItem: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.POST },
|
|
49
49
|
updateScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.PUT },
|
|
50
50
|
deleteScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.DELETE },
|
|
51
|
+
listFestivalTicketTypes: { url: '/gameshows/{show_id}/ticket-types', method: HTTP_METHODS.GET },
|
|
52
|
+
manageFestivalTicketTypes: { url: '/gameshows/{show_id}/ticket-types/manage', method: HTTP_METHODS.GET },
|
|
53
|
+
createFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types', method: HTTP_METHODS.POST },
|
|
54
|
+
updateFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.PUT },
|
|
55
|
+
deleteFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.DELETE },
|
|
56
|
+
purchaseFestivalTickets: { url: '/gameshows/{show_id}/ticket-purchases', method: HTTP_METHODS.POST },
|
|
57
|
+
confirmFestivalTicketPurchase: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/confirm', method: HTTP_METHODS.POST },
|
|
58
|
+
getFestivalTicketReceipt: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/receipt', method: HTTP_METHODS.GET },
|
|
59
|
+
listFestivalTicketPurchases: { url: '/gameshows/{show_id}/ticket-purchases', method: HTTP_METHODS.GET },
|
|
60
|
+
refundFestivalTicketPurchase: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/refund', method: HTTP_METHODS.POST },
|
|
51
61
|
listScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.GET },
|
|
52
62
|
manageScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types/manage', method: HTTP_METHODS.GET },
|
|
53
63
|
createScheduleTicketType: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.POST },
|
|
@@ -225,6 +225,10 @@ class TitlesRoute {
|
|
|
225
225
|
url: '/users/me/wishlists',
|
|
226
226
|
method: HTTP_METHODS.GET
|
|
227
227
|
},
|
|
228
|
+
lookupMyWishlists: {
|
|
229
|
+
url: '/users/me/wishlists/lookup',
|
|
230
|
+
method: HTTP_METHODS.POST
|
|
231
|
+
},
|
|
228
232
|
|
|
229
233
|
wishlistMe: {
|
|
230
234
|
url: '/titles/{title_id}/wishlist/me',
|