glitch-javascript-sdk 3.10.7 → 3.10.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/cjs/index.js +5 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/GameShows.d.ts +22 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/api/GameShows.ts +24 -0
- package/src/routes/GameShowsRoute.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -6272,6 +6272,11 @@ interface GameShowScheduleTicketRefundInput {
|
|
|
6272
6272
|
amount_cents: number;
|
|
6273
6273
|
reason?: string;
|
|
6274
6274
|
}
|
|
6275
|
+
interface GameShowTitleCandidateSearchParams {
|
|
6276
|
+
q: string;
|
|
6277
|
+
page?: number;
|
|
6278
|
+
per_page?: number;
|
|
6279
|
+
}
|
|
6275
6280
|
declare class GameShows {
|
|
6276
6281
|
/**
|
|
6277
6282
|
* List all the GameShows.
|
|
@@ -6389,6 +6394,8 @@ declare class GameShows {
|
|
|
6389
6394
|
* Add a title to a game show by admin.
|
|
6390
6395
|
*/
|
|
6391
6396
|
static addTitle<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6397
|
+
/** Search privacy-safe registered Glitch games that an organizer may attach to a festival. */
|
|
6398
|
+
static searchTitleCandidates<T>(show_id: string, params: GameShowTitleCandidateSearchParams): AxiosPromise<Response<T>>;
|
|
6392
6399
|
/** Preview CSV/TSV/TXT/ZIP registrations without writing showcase data. */
|
|
6393
6400
|
static previewExternalTitles<T>(show_id: string, file: File, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6394
6401
|
/** Import valid external registrations after organizer preview. */
|
package/package.json
CHANGED
package/src/api/GameShows.ts
CHANGED
|
@@ -37,6 +37,25 @@ export interface GameShowScheduleTicketRefundInput {
|
|
|
37
37
|
reason?: string;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
export interface GameShowTitleCandidate {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
developer?: string | null;
|
|
44
|
+
publisher?: string | null;
|
|
45
|
+
short_description?: string | null;
|
|
46
|
+
image_main?: string | null;
|
|
47
|
+
image_banner?: string | null;
|
|
48
|
+
is_live: boolean;
|
|
49
|
+
already_in_showcase: boolean;
|
|
50
|
+
community?: { id: string; name: string } | null;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface GameShowTitleCandidateSearchParams {
|
|
54
|
+
q: string;
|
|
55
|
+
page?: number;
|
|
56
|
+
per_page?: number;
|
|
57
|
+
}
|
|
58
|
+
|
|
40
59
|
class GameShows {
|
|
41
60
|
|
|
42
61
|
/**
|
|
@@ -228,6 +247,11 @@ class GameShows {
|
|
|
228
247
|
return Requests.processRoute(GameShowsRoute.routes.addTitle, data, { show_id: show_id }, params);
|
|
229
248
|
}
|
|
230
249
|
|
|
250
|
+
/** Search privacy-safe registered Glitch games that an organizer may attach to a festival. */
|
|
251
|
+
public static searchTitleCandidates<T>(show_id: string, params: GameShowTitleCandidateSearchParams): AxiosPromise<Response<T>> {
|
|
252
|
+
return Requests.processRoute(GameShowsRoute.routes.searchTitleCandidates, {}, { show_id: show_id }, params);
|
|
253
|
+
}
|
|
254
|
+
|
|
231
255
|
/** Preview CSV/TSV/TXT/ZIP registrations without writing showcase data. */
|
|
232
256
|
public static previewExternalTitles<T>(show_id: string, file: File, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
233
257
|
// Multipart helpers require the concrete URL before uploading.
|
|
@@ -26,6 +26,7 @@ class GameShowsRoute {
|
|
|
26
26
|
registrationQuestionReports: { url: '/gameshows/{show_id}/registration-form/reports', method: HTTP_METHODS.GET },
|
|
27
27
|
listTitles: { url: '/gameshows/{show_id}/titles', method: HTTP_METHODS.GET },
|
|
28
28
|
addTitle: { url: '/gameshows/{show_id}/addTitle', method: HTTP_METHODS.POST },
|
|
29
|
+
searchTitleCandidates: { url: '/gameshows/{show_id}/title-candidates', method: HTTP_METHODS.GET },
|
|
29
30
|
// External registration file preview/import endpoints.
|
|
30
31
|
previewExternalTitles: { url: '/gameshows/{show_id}/external-titles/preview', method: HTTP_METHODS.POST },
|
|
31
32
|
importExternalTitles: { url: '/gameshows/{show_id}/external-titles/import', method: HTTP_METHODS.POST },
|