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.
@@ -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 { //TODO add platform, TODO this is probably inacurate i think the users are much less detailed + more
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[];