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
|
@@ -30,6 +30,26 @@ export interface GameShowScheduleTicketRefundInput {
|
|
|
30
30
|
amount_cents: number;
|
|
31
31
|
reason?: string;
|
|
32
32
|
}
|
|
33
|
+
export interface GameShowTitleCandidate {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
developer?: string | null;
|
|
37
|
+
publisher?: string | null;
|
|
38
|
+
short_description?: string | null;
|
|
39
|
+
image_main?: string | null;
|
|
40
|
+
image_banner?: string | null;
|
|
41
|
+
is_live: boolean;
|
|
42
|
+
already_in_showcase: boolean;
|
|
43
|
+
community?: {
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
} | null;
|
|
47
|
+
}
|
|
48
|
+
export interface GameShowTitleCandidateSearchParams {
|
|
49
|
+
q: string;
|
|
50
|
+
page?: number;
|
|
51
|
+
per_page?: number;
|
|
52
|
+
}
|
|
33
53
|
declare class GameShows {
|
|
34
54
|
/**
|
|
35
55
|
* List all the GameShows.
|
|
@@ -147,6 +167,8 @@ declare class GameShows {
|
|
|
147
167
|
* Add a title to a game show by admin.
|
|
148
168
|
*/
|
|
149
169
|
static addTitle<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
170
|
+
/** Search privacy-safe registered Glitch games that an organizer may attach to a festival. */
|
|
171
|
+
static searchTitleCandidates<T>(show_id: string, params: GameShowTitleCandidateSearchParams): AxiosPromise<Response<T>>;
|
|
150
172
|
/** Preview CSV/TSV/TXT/ZIP registrations without writing showcase data. */
|
|
151
173
|
static previewExternalTitles<T>(show_id: string, file: File, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
152
174
|
/** Import valid external registrations after organizer preview. */
|
package/dist/esm/index.js
CHANGED
|
@@ -15232,6 +15232,7 @@ GameShowsRoute.routes = {
|
|
|
15232
15232
|
registrationQuestionReports: { url: '/gameshows/{show_id}/registration-form/reports', method: HTTP_METHODS.GET },
|
|
15233
15233
|
listTitles: { url: '/gameshows/{show_id}/titles', method: HTTP_METHODS.GET },
|
|
15234
15234
|
addTitle: { url: '/gameshows/{show_id}/addTitle', method: HTTP_METHODS.POST },
|
|
15235
|
+
searchTitleCandidates: { url: '/gameshows/{show_id}/title-candidates', method: HTTP_METHODS.GET },
|
|
15235
15236
|
// External registration file preview/import endpoints.
|
|
15236
15237
|
previewExternalTitles: { url: '/gameshows/{show_id}/external-titles/preview', method: HTTP_METHODS.POST },
|
|
15237
15238
|
importExternalTitles: { url: '/gameshows/{show_id}/external-titles/import', method: HTTP_METHODS.POST },
|
|
@@ -15477,6 +15478,10 @@ class GameShows {
|
|
|
15477
15478
|
static addTitle(show_id, data, params) {
|
|
15478
15479
|
return Requests.processRoute(GameShowsRoute.routes.addTitle, data, { show_id: show_id }, params);
|
|
15479
15480
|
}
|
|
15481
|
+
/** Search privacy-safe registered Glitch games that an organizer may attach to a festival. */
|
|
15482
|
+
static searchTitleCandidates(show_id, params) {
|
|
15483
|
+
return Requests.processRoute(GameShowsRoute.routes.searchTitleCandidates, {}, { show_id: show_id }, params);
|
|
15484
|
+
}
|
|
15480
15485
|
/** Preview CSV/TSV/TXT/ZIP registrations without writing showcase data. */
|
|
15481
15486
|
static previewExternalTitles(show_id, file, data, params) {
|
|
15482
15487
|
// Multipart helpers require the concrete URL before uploading.
|