speedruncom.js 1.1.1 → 1.2.2
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/BaseClient.d.ts +37 -0
- package/dist/BaseClient.js +102 -0
- package/dist/Client.d.ts +227 -0
- package/dist/Client.js +664 -0
- package/dist/build-client.d.ts +1 -0
- package/dist/build-client.js +63 -0
- package/dist/endpoints/endpoints.get.d.ts +562 -0
- package/dist/endpoints/endpoints.get.js +2 -0
- package/dist/endpoints/endpoints.post.d.ts +1061 -0
- package/dist/endpoints/endpoints.post.js +2 -0
- package/dist/enums.d.ts +363 -0
- package/dist/enums.js +404 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/interfaces.d.ts +1400 -0
- package/dist/interfaces.js +1 -0
- package/dist/responses.d.ts +635 -0
- package/dist/responses.js +1 -0
- package/dist/types.d.ts +3 -0
- package/dist/types.js +1 -0
- package/package.json +1 -1
- package/src/BaseClient.ts +2 -30
- package/src/endpoints/endpoints.get.ts +18 -1
- package/src/responses.ts +1 -28
|
@@ -641,15 +641,32 @@ export interface GetUserModeration {
|
|
|
641
641
|
}
|
|
642
642
|
|
|
643
643
|
/**
|
|
644
|
-
* Get a list of comments on an item.
|
|
644
|
+
* Get a list of comments on an item, and data of the parent.
|
|
645
645
|
*/
|
|
646
646
|
export interface GetCommentList {
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* ID of the parent item to fetch.
|
|
650
|
+
*/
|
|
647
651
|
itemId: string;
|
|
648
652
|
|
|
649
653
|
/**
|
|
650
654
|
* `ItemType` of the item referenced in `itemId`.
|
|
651
655
|
*/
|
|
652
656
|
itemType: Enums.ItemType;
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* The maximum amount of `Comment`s per page.
|
|
660
|
+
*
|
|
661
|
+
* @max 100
|
|
662
|
+
* @default 100
|
|
663
|
+
*/
|
|
664
|
+
limit?: number;
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* The comment page, in relation to `limit`.
|
|
668
|
+
*/
|
|
669
|
+
page?: number;
|
|
653
670
|
}
|
|
654
671
|
|
|
655
672
|
/**
|
package/src/responses.ts
CHANGED
|
@@ -61,7 +61,7 @@ export interface GetGameRecordHistory {
|
|
|
61
61
|
runList: Interfaces.GameRun[];
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export interface GetSearch {
|
|
64
|
+
export interface GetSearch {
|
|
65
65
|
gameList: Interfaces.Game[];
|
|
66
66
|
newsList: Interfaces.GameNews[];
|
|
67
67
|
pageList: Interfaces.Article[];
|
|
@@ -302,33 +302,6 @@ export interface GetRun {
|
|
|
302
302
|
variables: Interfaces.Variable[];
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
-
export interface GetSearch {
|
|
306
|
-
gameList: Interfaces.Game[];
|
|
307
|
-
newsList: Interfaces.GameNews[];
|
|
308
|
-
pageList: Interfaces.Article[];
|
|
309
|
-
seriesList: Interfaces.Series[];
|
|
310
|
-
userList: Interfaces.User[];
|
|
311
|
-
challengeList: Interfaces.Challenge[];
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
export interface GetSeriesList {
|
|
315
|
-
seriesList: Interfaces.Series[];
|
|
316
|
-
pagination: Interfaces.Pagination;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
export interface GetSeriesSummary {
|
|
320
|
-
series: Interfaces.Series;
|
|
321
|
-
forum: Interfaces.Forum;
|
|
322
|
-
gameList: Interfaces.Game[];
|
|
323
|
-
moderatorList: Interfaces.SeriesModerator[];
|
|
324
|
-
theme: Interfaces.Theme;
|
|
325
|
-
threadList: Interfaces.Thread[];
|
|
326
|
-
userList: Interfaces.User[];
|
|
327
|
-
gameCount: number;
|
|
328
|
-
streamCount: number;
|
|
329
|
-
threadCount: number;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
305
|
export interface GetStreamList {
|
|
333
306
|
gameList: Interfaces.Game[];
|
|
334
307
|
streamList: Interfaces.Stream[];
|