speedruncom.js 1.2.9 → 1.2.10

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/src/enums.ts CHANGED
@@ -1,404 +1,404 @@
1
- export enum TimeDirection {
2
- Ascending,
3
- Descending
4
- }
5
-
6
- export enum PlayerMatchMode {
7
- AllPlayersInOrder,
8
- AllPlayersAnyOrder,
9
- AnyPlayersInOrder,
10
- AnyPlayersAnyOrder
11
- }
12
-
13
- /**The type of the item this object is referencing (eg. a comment on either a run or a thread)*/
14
- export enum ItemType {
15
- Unknown,
16
- Comment,
17
- Run,
18
- Game,
19
- Guide,
20
- Resource,
21
- User,
22
- Thread,
23
- GameMod,
24
- Category,
25
- Level,
26
- GameRequest,
27
- Ticket = 22,
28
- TicketNote,
29
- News = 27,
30
- GameBoostToken,
31
- GameBoost,
32
- Article,
33
- UserFollower,
34
- Challenge,
35
- ChallengeRun
36
- }
37
-
38
- export enum ForumType {
39
- FrontPage = 1,
40
- Supporter,
41
- Game
42
- }
43
-
44
- export enum DefaultViewType {
45
- FullGame,
46
- Levels
47
- }
48
-
49
- export enum GameOrderType {
50
- Name = 1,
51
- NewestReleased,
52
- OldestReleased,
53
- MostActive,
54
- LeastActive,
55
- MostPlayers,
56
- LeastPlayers,
57
- MostRuns,
58
- LeastRuns,
59
- NewestAdded,
60
- OldestAdded
61
- }
62
-
63
-
64
- export enum SitePowerLevel {
65
- Banned,
66
- User,
67
- /**@deprecated Unused power level for users that can moderate 'content'.*/
68
- ContentMod,
69
- /**@deprecated Unused power level for users that had more limited version of SiteAdmin.*/
70
- SiteMod,
71
- SiteAdmin
72
- }
73
-
74
- export enum EventType {
75
- None = "",
76
- CategoryCreated = "category-created",
77
- CategoryRemoved = "category-removed",
78
- CategoryRestored = "category-restored",
79
- CategoryUpdated = "category-updated",
80
- CommentCreated = "comment-created",
81
- CommentDeleted = "comment-deleted",
82
- /**
83
- * New comment updates are not recognized as events as of a few years ago.
84
- */
85
- CommentUpdated = "comment-updated",
86
- GameCoversUpdated = "game-covers-updated",
87
- GameCreated = "game-created",
88
- GameModeratorCreated = "game-moderator-created",
89
- GameModeratorRemoved = "game-moderator-removed",
90
- GameModeratorUpdated = "game-moderator-updated",
91
- GameNewsPostCreated = "game-news-post-created",
92
- GameNewsPostEdited = "game-news-post-edited",
93
- GameNewsPostRemoved = "game-news-post-removed",
94
- GameRestored = "game-restored",
95
- GameUpdated = "game-updated",
96
- GameRequestReviewed = "gamerequest-reviewed",
97
- LevelCreated = "level-created"
98
- }
99
-
100
- export enum ChallengeState {
101
- Draft,
102
- Published,
103
- Finalized
104
- }
105
-
106
- /**
107
- * Who is allowed to perform an action (posting comments, guides or resources).
108
- */
109
- export enum ItemPermissionType {
110
- All,
111
- Disabled,
112
- VerifiedHere,
113
- VerifiedAny,
114
- ModsOnly
115
- }
116
-
117
- export enum ObsoleteFilter {
118
- Hidden,
119
- Shown,
120
- Exclusive
121
- }
122
-
123
- export enum EmulatorFilter {
124
- Hidden,
125
- Shown,
126
- Exclusive
127
- }
128
-
129
- export enum VideoFilter {
130
- Optional,
131
- Required,
132
- Missing
133
- }
134
-
135
- export enum TimingMethod {
136
- /**LRT if present, otherwise RTA.*/
137
- LRTThenRTA,
138
- /**RTA if LRT is present.*/
139
- RTAIfLRT,
140
- InGameTime
141
- }
142
-
143
- /**Classifiers for games, provided in `Game.gameTypeIds`.*/
144
- export enum GameType {
145
- RomHack = 1,
146
- Modification,
147
- FanGame,
148
- WebGame,
149
- PrereleaseGame,
150
- MobileGame,
151
- Expansion,
152
- CategoryExtensions,
153
- MultipleGames,
154
- MiniGame,
155
- ServerMap,
156
- HomebrewGame
157
- }
158
-
159
- export enum ResourceType {
160
- Tool = 1,
161
- Save,
162
- Splits,
163
- Patch
164
- }
165
-
166
- export enum GamePowerLevel {
167
- Verifier = -1,
168
- Moderator,
169
- SuperModerator,
170
- }
171
-
172
- export enum EmulatorType {
173
- Banned = -1,
174
- Hidden,
175
- Shown
176
- }
177
-
178
- export enum RunStatus {
179
- Pending,
180
- Verified,
181
- Rejected
182
- }
183
-
184
- /**
185
- * Video at-risk status for Twitch Highlights and the like.
186
- */
187
- export enum VideoState {
188
- Unknown,
189
- AtRisk,
190
- Safe,
191
- Abandoned
192
- }
193
-
194
- export enum SupportPlanPeriod {
195
- Monthly = "monthly",
196
- Yearly = "yearly"
197
- }
198
-
199
- export enum NavbarColorType {
200
- Primary,
201
- Panel
202
- }
203
-
204
- export enum ScrollType {
205
- None,
206
- Slow,
207
- Medium,
208
- Fast
209
- }
210
-
211
- export enum PositionType {
212
- TopLeft,
213
- Top,
214
- TopRight,
215
- Left,
216
- Center,
217
- Right,
218
- BottomLeft,
219
- Bottom,
220
- BottomRight
221
- }
222
-
223
- export enum RepeatType {
224
- None,
225
- Horizontal,
226
- Vertical,
227
- Both
228
- }
229
-
230
- export enum FitType {
231
- Original,
232
- Fit
233
- }
234
-
235
- export enum TicketQueueType {
236
- GameRequests = 1,
237
- SeriesRequests,
238
- ModReports,
239
- MarathonRequests,
240
- ContentReports,
241
- UserReports,
242
- BugReports,
243
- FrontPageRequests,
244
- Feedback,
245
- StaffApplications,
246
- Support,
247
- ContentRequests,
248
- Supporter
249
- }
250
-
251
- export enum TicketType {
252
- GameRequest = 1,
253
- SeriesRequest,
254
- ModRequest,
255
- MarathonRequest,
256
- ContentReport,
257
- UserReport,
258
- BugReport,
259
- FrontPageRequest,
260
- Feedback,
261
- StaffApplication,
262
- OtherSupport,
263
- GameTypeUpdate,
264
- AddToSeriesRequest,
265
- AddPlatformRequest,
266
- OtherGameRequest,
267
- SupporterHelp
268
- }
269
-
270
- export enum TicketStatus {
271
- Pending,
272
- Approved,
273
- Denied,
274
- Reviewing,
275
- Withdrawn
276
- }
277
-
278
- export enum IconType {
279
- None,
280
- Default,
281
- Custom
282
- }
283
-
284
- export enum IconPosition {
285
- Before,
286
- After
287
- }
288
-
289
- export enum HomepageStreamType {
290
- Muted,
291
- Paused,
292
- Hidden
293
- }
294
-
295
- export enum GameSortType {
296
- Alphabetical,
297
- Chronological,
298
- Custom
299
- }
300
-
301
- export enum TimeDisplayUnits {
302
- Explicit,
303
- Colon
304
- }
305
-
306
- export enum TimeReference {
307
- Absolute,
308
- Relative
309
- }
310
-
311
- export enum DateFormat {
312
- YYYY_MM_DD,
313
- DD_MM_YYYY,
314
- MM_DD_YYYY
315
- }
316
-
317
- export enum TimeFormat {
318
- HH_MM,
319
- HH_MM_SS,
320
- HH_MM_12h,
321
- HH_MM_SS_12h
322
- }
323
-
324
- /**
325
- * Depricated values are still accessible by the API, but not settable.
326
- */
327
- export enum SocialConnection {
328
- /**@deprecated*/
329
- ASKfm = 1,
330
- /**@deprecated*/
331
- BattleNet,
332
- BiliBili,
333
- /**@deprecated*/
334
- DeviantArt,
335
- Discord,
336
- /**@deprecated*/
337
- DouYu,
338
- /**@deprecated*/
339
- Duolingo,
340
- Facebook,
341
- /**@deprecated*/
342
- GooglePlus,
343
- /**@deprecated*/
344
- GooglePodcasts,
345
- Instagram,
346
- /**@deprecated*/
347
- ITunes,
348
- /**@deprecated*/
349
- Mixer,
350
- /**@deprecated*/
351
- MMRTA,
352
- Niconico,
353
- /**@deprecated*/
354
- Patreon,
355
- /**@deprecated*/
356
- Pinterest,
357
- Reddit,
358
- /**@deprecated*/
359
- Smashcast,
360
- /**@deprecated*/
361
- Snapchat,
362
- /**@deprecated*/
363
- SoundCloud,
364
- /**@deprecated*/
365
- SplitsIO,
366
- /**@deprecated*/
367
- Spotify,
368
- /**@deprecated*/
369
- SpotifyShow,
370
- /**@deprecated*/
371
- SRL,
372
- /**@deprecated*/
373
- Steam,
374
- /**@deprecated*/
375
- Stitcher,
376
- /**@deprecated*/
377
- Tumblr,
378
- Twitch,
379
- Twitter,
380
- Website,
381
- Youtube,
382
- /**@deprecated*/
383
- ZSR,
384
- Bluesky,
385
- Threads,
386
- }
387
-
388
- export enum VarCategoryScope {
389
- All = -1,
390
- Single = 1
391
- }
392
-
393
- export enum VarLevelScope {
394
- All = -2,
395
- Levels,
396
- FullGame,
397
- SingleLevel
398
- }
399
-
400
- export enum VarDisplayMode {
401
- Auto,
402
- Dropdown,
403
- Buttons
404
- }
1
+ export enum TimeDirection {
2
+ Ascending,
3
+ Descending
4
+ }
5
+
6
+ export enum PlayerMatchMode {
7
+ AllPlayersInOrder,
8
+ AllPlayersAnyOrder,
9
+ AnyPlayersInOrder,
10
+ AnyPlayersAnyOrder
11
+ }
12
+
13
+ /**The type of the item this object is referencing (eg. a comment on either a run or a thread)*/
14
+ export enum ItemType {
15
+ Unknown,
16
+ Comment,
17
+ Run,
18
+ Game,
19
+ Guide,
20
+ Resource,
21
+ User,
22
+ Thread,
23
+ GameMod,
24
+ Category,
25
+ Level,
26
+ GameRequest,
27
+ Ticket = 22,
28
+ TicketNote,
29
+ News = 27,
30
+ GameBoostToken,
31
+ GameBoost,
32
+ Article,
33
+ UserFollower,
34
+ Challenge,
35
+ ChallengeRun
36
+ }
37
+
38
+ export enum ForumType {
39
+ FrontPage = 1,
40
+ Supporter,
41
+ Game
42
+ }
43
+
44
+ export enum DefaultViewType {
45
+ FullGame,
46
+ Levels
47
+ }
48
+
49
+ export enum GameOrderType {
50
+ Name = 1,
51
+ NewestReleased,
52
+ OldestReleased,
53
+ MostActive,
54
+ LeastActive,
55
+ MostPlayers,
56
+ LeastPlayers,
57
+ MostRuns,
58
+ LeastRuns,
59
+ NewestAdded,
60
+ OldestAdded
61
+ }
62
+
63
+
64
+ export enum SitePowerLevel {
65
+ Banned,
66
+ User,
67
+ /**@deprecated Unused power level for users that can moderate 'content'.*/
68
+ ContentMod,
69
+ /**@deprecated Unused power level for users that had more limited version of SiteAdmin.*/
70
+ SiteMod,
71
+ SiteAdmin
72
+ }
73
+
74
+ export enum EventType {
75
+ None = "",
76
+ CategoryCreated = "category-created",
77
+ CategoryRemoved = "category-removed",
78
+ CategoryRestored = "category-restored",
79
+ CategoryUpdated = "category-updated",
80
+ CommentCreated = "comment-created",
81
+ CommentDeleted = "comment-deleted",
82
+ /**
83
+ * New comment updates are not recognized as events as of a few years ago.
84
+ */
85
+ CommentUpdated = "comment-updated",
86
+ GameCoversUpdated = "game-covers-updated",
87
+ GameCreated = "game-created",
88
+ GameModeratorCreated = "game-moderator-created",
89
+ GameModeratorRemoved = "game-moderator-removed",
90
+ GameModeratorUpdated = "game-moderator-updated",
91
+ GameNewsPostCreated = "game-news-post-created",
92
+ GameNewsPostEdited = "game-news-post-edited",
93
+ GameNewsPostRemoved = "game-news-post-removed",
94
+ GameRestored = "game-restored",
95
+ GameUpdated = "game-updated",
96
+ GameRequestReviewed = "gamerequest-reviewed",
97
+ LevelCreated = "level-created"
98
+ }
99
+
100
+ export enum ChallengeState {
101
+ Draft,
102
+ Published,
103
+ Finalized
104
+ }
105
+
106
+ /**
107
+ * Who is allowed to perform an action (posting comments, guides or resources).
108
+ */
109
+ export enum ItemPermissionType {
110
+ All,
111
+ Disabled,
112
+ VerifiedHere,
113
+ VerifiedAny,
114
+ ModsOnly
115
+ }
116
+
117
+ export enum ObsoleteFilter {
118
+ Hidden,
119
+ Shown,
120
+ Exclusive
121
+ }
122
+
123
+ export enum EmulatorFilter {
124
+ Hidden,
125
+ Shown,
126
+ Exclusive
127
+ }
128
+
129
+ export enum VideoFilter {
130
+ Optional,
131
+ Required,
132
+ Missing
133
+ }
134
+
135
+ export enum TimingMethod {
136
+ /**LRT if present, otherwise RTA.*/
137
+ LRTThenRTA,
138
+ /**RTA if LRT is present.*/
139
+ RTAIfLRT,
140
+ InGameTime
141
+ }
142
+
143
+ /**Classifiers for games, provided in `Game.gameTypeIds`.*/
144
+ export enum GameType {
145
+ RomHack = 1,
146
+ Modification,
147
+ FanGame,
148
+ WebGame,
149
+ PrereleaseGame,
150
+ MobileGame,
151
+ Expansion,
152
+ CategoryExtensions,
153
+ MultipleGames,
154
+ MiniGame,
155
+ ServerMap,
156
+ HomebrewGame
157
+ }
158
+
159
+ export enum ResourceType {
160
+ Tool = 1,
161
+ Save,
162
+ Splits,
163
+ Patch
164
+ }
165
+
166
+ export enum GamePowerLevel {
167
+ Verifier = -1,
168
+ Moderator,
169
+ SuperModerator,
170
+ }
171
+
172
+ export enum EmulatorType {
173
+ Banned = -1,
174
+ Hidden,
175
+ Shown
176
+ }
177
+
178
+ export enum RunStatus {
179
+ Pending,
180
+ Verified,
181
+ Rejected
182
+ }
183
+
184
+ /**
185
+ * Video at-risk status for Twitch Highlights and the like.
186
+ */
187
+ export enum VideoState {
188
+ Unknown,
189
+ AtRisk,
190
+ Safe,
191
+ Abandoned
192
+ }
193
+
194
+ export enum SupportPlanPeriod {
195
+ Monthly = "monthly",
196
+ Yearly = "yearly"
197
+ }
198
+
199
+ export enum NavbarColorType {
200
+ Primary,
201
+ Panel
202
+ }
203
+
204
+ export enum ScrollType {
205
+ None,
206
+ Slow,
207
+ Medium,
208
+ Fast
209
+ }
210
+
211
+ export enum PositionType {
212
+ TopLeft,
213
+ Top,
214
+ TopRight,
215
+ Left,
216
+ Center,
217
+ Right,
218
+ BottomLeft,
219
+ Bottom,
220
+ BottomRight
221
+ }
222
+
223
+ export enum RepeatType {
224
+ None,
225
+ Horizontal,
226
+ Vertical,
227
+ Both
228
+ }
229
+
230
+ export enum FitType {
231
+ Original,
232
+ Fit
233
+ }
234
+
235
+ export enum TicketQueueType {
236
+ GameRequests = 1,
237
+ SeriesRequests,
238
+ ModReports,
239
+ MarathonRequests,
240
+ ContentReports,
241
+ UserReports,
242
+ BugReports,
243
+ FrontPageRequests,
244
+ Feedback,
245
+ StaffApplications,
246
+ Support,
247
+ ContentRequests,
248
+ Supporter
249
+ }
250
+
251
+ export enum TicketType {
252
+ GameRequest = 1,
253
+ SeriesRequest,
254
+ ModRequest,
255
+ MarathonRequest,
256
+ ContentReport,
257
+ UserReport,
258
+ BugReport,
259
+ FrontPageRequest,
260
+ Feedback,
261
+ StaffApplication,
262
+ OtherSupport,
263
+ GameTypeUpdate,
264
+ AddToSeriesRequest,
265
+ AddPlatformRequest,
266
+ OtherGameRequest,
267
+ SupporterHelp
268
+ }
269
+
270
+ export enum TicketStatus {
271
+ Pending,
272
+ Approved,
273
+ Denied,
274
+ Reviewing,
275
+ Withdrawn
276
+ }
277
+
278
+ export enum IconType {
279
+ None,
280
+ Default,
281
+ Custom
282
+ }
283
+
284
+ export enum IconPosition {
285
+ Before,
286
+ After
287
+ }
288
+
289
+ export enum HomepageStreamType {
290
+ Muted,
291
+ Paused,
292
+ Hidden
293
+ }
294
+
295
+ export enum GameSortType {
296
+ Alphabetical,
297
+ Chronological,
298
+ Custom
299
+ }
300
+
301
+ export enum TimeDisplayUnits {
302
+ Explicit,
303
+ Colon
304
+ }
305
+
306
+ export enum TimeReference {
307
+ Absolute,
308
+ Relative
309
+ }
310
+
311
+ export enum DateFormat {
312
+ YYYY_MM_DD,
313
+ DD_MM_YYYY,
314
+ MM_DD_YYYY
315
+ }
316
+
317
+ export enum TimeFormat {
318
+ HH_MM,
319
+ HH_MM_SS,
320
+ HH_MM_12h,
321
+ HH_MM_SS_12h
322
+ }
323
+
324
+ /**
325
+ * Depricated values are still accessible by the API, but not settable.
326
+ */
327
+ export enum SocialConnection {
328
+ /**@deprecated*/
329
+ ASKfm = 1,
330
+ /**@deprecated*/
331
+ BattleNet,
332
+ BiliBili,
333
+ /**@deprecated*/
334
+ DeviantArt,
335
+ Discord,
336
+ /**@deprecated*/
337
+ DouYu,
338
+ /**@deprecated*/
339
+ Duolingo,
340
+ Facebook,
341
+ /**@deprecated*/
342
+ GooglePlus,
343
+ /**@deprecated*/
344
+ GooglePodcasts,
345
+ Instagram,
346
+ /**@deprecated*/
347
+ ITunes,
348
+ /**@deprecated*/
349
+ Mixer,
350
+ /**@deprecated*/
351
+ MMRTA,
352
+ Niconico,
353
+ /**@deprecated*/
354
+ Patreon,
355
+ /**@deprecated*/
356
+ Pinterest,
357
+ Reddit,
358
+ /**@deprecated*/
359
+ Smashcast,
360
+ /**@deprecated*/
361
+ Snapchat,
362
+ /**@deprecated*/
363
+ SoundCloud,
364
+ /**@deprecated*/
365
+ SplitsIO,
366
+ /**@deprecated*/
367
+ Spotify,
368
+ /**@deprecated*/
369
+ SpotifyShow,
370
+ /**@deprecated*/
371
+ SRL,
372
+ /**@deprecated*/
373
+ Steam,
374
+ /**@deprecated*/
375
+ Stitcher,
376
+ /**@deprecated*/
377
+ Tumblr,
378
+ Twitch,
379
+ Twitter,
380
+ Website,
381
+ Youtube,
382
+ /**@deprecated*/
383
+ ZSR,
384
+ Bluesky,
385
+ Threads,
386
+ }
387
+
388
+ export enum VarCategoryScope {
389
+ All = -1,
390
+ Single = 1
391
+ }
392
+
393
+ export enum VarLevelScope {
394
+ All = -2,
395
+ Levels,
396
+ FullGame,
397
+ SingleLevel
398
+ }
399
+
400
+ export enum VarDisplayMode {
401
+ Auto,
402
+ Dropdown,
403
+ Buttons
404
+ }