@yaelouuu/fortnite-api 4.1.0 → 4.3.0

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.
Files changed (40) hide show
  1. package/README.md +491 -16
  2. package/dist/client.d.ts +10 -0
  3. package/dist/client.js +10 -0
  4. package/dist/errors.d.ts +0 -0
  5. package/dist/errors.js +0 -0
  6. package/dist/index.d.ts +0 -0
  7. package/dist/index.js +0 -0
  8. package/dist/resources/account.d.ts +54 -0
  9. package/dist/resources/account.js +103 -0
  10. package/dist/resources/battlepass.d.ts +0 -0
  11. package/dist/resources/battlepass.js +0 -0
  12. package/dist/resources/bundles.d.ts +0 -0
  13. package/dist/resources/bundles.js +0 -0
  14. package/dist/resources/calendar.d.ts +0 -0
  15. package/dist/resources/calendar.js +0 -0
  16. package/dist/resources/events.d.ts +83 -0
  17. package/dist/resources/events.js +138 -0
  18. package/dist/resources/fn.d.ts +56 -0
  19. package/dist/resources/fn.js +104 -0
  20. package/dist/resources/friends.d.ts +68 -0
  21. package/dist/resources/friends.js +119 -0
  22. package/dist/resources/oauth.d.ts +0 -0
  23. package/dist/resources/oauth.js +0 -0
  24. package/dist/resources/parsing.d.ts +0 -0
  25. package/dist/resources/parsing.js +0 -0
  26. package/dist/resources/profiles.d.ts +0 -0
  27. package/dist/resources/profiles.js +0 -0
  28. package/dist/resources/quests.d.ts +43 -4
  29. package/dist/resources/quests.js +43 -4
  30. package/dist/resources/shop.d.ts +0 -0
  31. package/dist/resources/shop.js +0 -0
  32. package/dist/resources/stats.d.ts +40 -0
  33. package/dist/resources/stats.js +85 -0
  34. package/dist/resources/tournaments.d.ts +67 -5
  35. package/dist/resources/tournaments.js +67 -5
  36. package/dist/resources/weapons.d.ts +0 -0
  37. package/dist/resources/weapons.js +0 -0
  38. package/dist/types/index.d.ts +205 -0
  39. package/dist/types/index.js +0 -0
  40. package/package.json +1 -1
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,14 +1,53 @@
1
1
  import { FortniteAPI } from "../client";
2
2
  import { QuestsResponse } from "../types";
3
+ /**
4
+ * QuestsResource provides access to Fortnite quests and account progression data
5
+ *
6
+ * This resource allows you to fetch player quest progress, XP, playtime, and account level.
7
+ * All methods require the user's personal Fortnite OAuth token obtained through the OAuth flow.
8
+ *
9
+ * @example
10
+ * ```typescript
11
+ * // Get quests for an account
12
+ * const quests = await client.quests.getQuests(
13
+ * "account-id-here",
14
+ * "user-fortnite-token-here"
15
+ * );
16
+ * ```
17
+ */
3
18
  export declare class QuestsResource {
4
19
  private client;
5
20
  constructor(client: FortniteAPI);
6
21
  /**
7
22
  * Get account quests and level information
8
- * Requires user's own Fortnite token
9
- * @param accountId - Epic Games Account ID
10
- * @param fortniteToken - User's Fortnite access token (from OAuth flow)
11
- * @returns Quest progress, XP, playtime, and account level data
23
+ *
24
+ * Retrieves comprehensive quest data including:
25
+ * - Active quest progress and completion status
26
+ * - Account XP and level information
27
+ * - Total playtime statistics
28
+ * - Quest rewards and milestones
29
+ *
30
+ * **Authentication**: Requires user's personal Fortnite OAuth token
31
+ *
32
+ * **API Version**: v3
33
+ *
34
+ * **Rate Limit**: Standard API rate limits apply
35
+ *
36
+ * @param accountId - Epic Games Account ID (32 character hexadecimal string)
37
+ * @param fortniteToken - User's Fortnite access token obtained from OAuth flow
38
+ *
39
+ * @returns Promise resolving to quest progress, XP, playtime, and account level data
40
+ *
41
+ * @throws {FortniteAPIError} When the request fails (invalid token, account not found, etc.)
42
+ *
43
+ * @example
44
+ * ```typescript
45
+ * const accountId = "a1b2c3d4e5f6..."; // 32 character account ID
46
+ * const token = "eg1~..."; // User's Fortnite OAuth token
47
+ *
48
+ * const questData = await client.quests.getQuests(accountId, token);
49
+ * console.log(questData);
50
+ * ```
12
51
  */
13
52
  getQuests(accountId: string, fortniteToken: string): Promise<QuestsResponse>;
14
53
  }
@@ -1,16 +1,55 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.QuestsResource = void 0;
4
+ /**
5
+ * QuestsResource provides access to Fortnite quests and account progression data
6
+ *
7
+ * This resource allows you to fetch player quest progress, XP, playtime, and account level.
8
+ * All methods require the user's personal Fortnite OAuth token obtained through the OAuth flow.
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * // Get quests for an account
13
+ * const quests = await client.quests.getQuests(
14
+ * "account-id-here",
15
+ * "user-fortnite-token-here"
16
+ * );
17
+ * ```
18
+ */
4
19
  class QuestsResource {
5
20
  constructor(client) {
6
21
  this.client = client;
7
22
  }
8
23
  /**
9
24
  * Get account quests and level information
10
- * Requires user's own Fortnite token
11
- * @param accountId - Epic Games Account ID
12
- * @param fortniteToken - User's Fortnite access token (from OAuth flow)
13
- * @returns Quest progress, XP, playtime, and account level data
25
+ *
26
+ * Retrieves comprehensive quest data including:
27
+ * - Active quest progress and completion status
28
+ * - Account XP and level information
29
+ * - Total playtime statistics
30
+ * - Quest rewards and milestones
31
+ *
32
+ * **Authentication**: Requires user's personal Fortnite OAuth token
33
+ *
34
+ * **API Version**: v3
35
+ *
36
+ * **Rate Limit**: Standard API rate limits apply
37
+ *
38
+ * @param accountId - Epic Games Account ID (32 character hexadecimal string)
39
+ * @param fortniteToken - User's Fortnite access token obtained from OAuth flow
40
+ *
41
+ * @returns Promise resolving to quest progress, XP, playtime, and account level data
42
+ *
43
+ * @throws {FortniteAPIError} When the request fails (invalid token, account not found, etc.)
44
+ *
45
+ * @example
46
+ * ```typescript
47
+ * const accountId = "a1b2c3d4e5f6..."; // 32 character account ID
48
+ * const token = "eg1~..."; // User's Fortnite OAuth token
49
+ *
50
+ * const questData = await client.quests.getQuests(accountId, token);
51
+ * console.log(questData);
52
+ * ```
14
53
  */
15
54
  async getQuests(accountId, fortniteToken) {
16
55
  return this.client.request(`/quests/${accountId}`, {
File without changes
File without changes
@@ -0,0 +1,40 @@
1
+ import { FortniteAPI } from "../client";
2
+ import { PlayerStats, BulkStatsResponse, LeaderboardResponse, LeaderboardOptions } from "../types";
3
+ /**
4
+ * Stats Resource
5
+ * Handles player statistics queries
6
+ */
7
+ export declare class StatsResource {
8
+ private client;
9
+ constructor(client: FortniteAPI);
10
+ /**
11
+ * Get player stats with optional filters
12
+ * @param accountId - Account ID
13
+ * @param options - Query options
14
+ * @param fortniteToken - Optional user Fortnite token
15
+ * @returns Player statistics
16
+ */
17
+ getPlayerStats(accountId: string, options?: {
18
+ startDate?: string;
19
+ endDate?: string;
20
+ stats?: string[];
21
+ }, fortniteToken?: string): Promise<PlayerStats>;
22
+ /**
23
+ * Get bulk stats for multiple players
24
+ * @param accountIds - Array of account IDs (max 100)
25
+ * @param options - Query options
26
+ * @param fortniteToken - Optional user Fortnite token
27
+ * @returns Array of player statistics
28
+ */
29
+ getBulkStats(accountIds: string[], options?: {
30
+ stats?: string[];
31
+ }, fortniteToken?: string): Promise<BulkStatsResponse[]>;
32
+ /**
33
+ * Get leaderboard for specific stat
34
+ * @param stat - Stat name to query
35
+ * @param options - Query options
36
+ * @param fortniteToken - Optional user Fortnite token
37
+ * @returns Leaderboard data
38
+ */
39
+ getLeaderboard(stat: string, options?: LeaderboardOptions, fortniteToken?: string): Promise<LeaderboardResponse>;
40
+ }
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StatsResource = void 0;
4
+ /**
5
+ * Stats Resource
6
+ * Handles player statistics queries
7
+ */
8
+ class StatsResource {
9
+ constructor(client) {
10
+ this.client = client;
11
+ }
12
+ /**
13
+ * Get player stats with optional filters
14
+ * @param accountId - Account ID
15
+ * @param options - Query options
16
+ * @param fortniteToken - Optional user Fortnite token
17
+ * @returns Player statistics
18
+ */
19
+ async getPlayerStats(accountId, options, fortniteToken) {
20
+ const headers = {};
21
+ if (fortniteToken) {
22
+ headers["x-fortnite-token"] = fortniteToken;
23
+ }
24
+ const queryParams = new URLSearchParams();
25
+ if (options?.startDate)
26
+ queryParams.append("startDate", options.startDate);
27
+ if (options?.endDate)
28
+ queryParams.append("endDate", options.endDate);
29
+ if (options?.stats)
30
+ queryParams.append("stats", options.stats.join(","));
31
+ const query = queryParams.toString();
32
+ const url = `/stats/${accountId}${query ? `?${query}` : ""}`;
33
+ return this.client.request(url, { headers }, "v2");
34
+ }
35
+ /**
36
+ * Get bulk stats for multiple players
37
+ * @param accountIds - Array of account IDs (max 100)
38
+ * @param options - Query options
39
+ * @param fortniteToken - Optional user Fortnite token
40
+ * @returns Array of player statistics
41
+ */
42
+ async getBulkStats(accountIds, options, fortniteToken) {
43
+ const headers = {
44
+ "Content-Type": "application/json",
45
+ };
46
+ if (fortniteToken) {
47
+ headers["x-fortnite-token"] = fortniteToken;
48
+ }
49
+ const body = {
50
+ accountIds,
51
+ };
52
+ if (options?.stats) {
53
+ body.stats = options.stats;
54
+ }
55
+ return this.client.request("/stats/bulk", {
56
+ method: "POST",
57
+ headers,
58
+ body: JSON.stringify(body),
59
+ }, "v2");
60
+ }
61
+ /**
62
+ * Get leaderboard for specific stat
63
+ * @param stat - Stat name to query
64
+ * @param options - Query options
65
+ * @param fortniteToken - Optional user Fortnite token
66
+ * @returns Leaderboard data
67
+ */
68
+ async getLeaderboard(stat, options, fortniteToken) {
69
+ const headers = {};
70
+ if (fortniteToken) {
71
+ headers["x-fortnite-token"] = fortniteToken;
72
+ }
73
+ const queryParams = new URLSearchParams();
74
+ if (options?.limit)
75
+ queryParams.append("limit", options.limit.toString());
76
+ if (options?.offset)
77
+ queryParams.append("offset", options.offset.toString());
78
+ if (options?.window)
79
+ queryParams.append("window", options.window);
80
+ const query = queryParams.toString();
81
+ const url = `/stats/leaderboard/${stat}${query ? `?${query}` : ""}`;
82
+ return this.client.request(url, { headers }, "v2");
83
+ }
84
+ }
85
+ exports.StatsResource = StatsResource;
@@ -68,11 +68,73 @@ export declare class TournamentsResource {
68
68
  }): Promise<TournamentEligibilityResponse>;
69
69
  /**
70
70
  * Get tournament leaderboard using V2 endpoint (POST with teams body)
71
- * @param params.eventId - Event ID
72
- * @param params.eventWindowId - Event window ID
73
- * @param params.leaderboardDef - Optional leaderboard definition (required for Ranked Cups)
74
- * @param teams - Array of team member account ID arrays (e.g., [["accountId1"], ["accountId2"]])
75
- * @param fortniteToken - Optional user's Fortnite token for personalized view
71
+ *
72
+ * This is an enhanced version of the leaderboard endpoint that accepts a POST request
73
+ * with a teams array in the body. Use this endpoint when you need to query leaderboard
74
+ * data for multiple teams at once or for Ranked Cups that require specific team lookups.
75
+ *
76
+ * **Differences from V1**:
77
+ * - Uses POST method instead of GET
78
+ * - Accepts teams array in request body
79
+ * - Better suited for bulk team queries
80
+ * - Required for certain Ranked Cup leaderboards
81
+ *
82
+ * **Authentication**: Optional. Include fortniteToken for personalized leaderboard views
83
+ *
84
+ * **API Version**: v2
85
+ *
86
+ * **Rate Limit**: Standard API rate limits apply
87
+ *
88
+ * @param params - Leaderboard query parameters
89
+ * @param params.eventId - Event ID (e.g., "epicgames_S37_BlitzCupsAllPlatforms_BR")
90
+ * @param params.eventWindowId - Event window ID (e.g., "S37_BlitzCupsAllPlatforms_Event1_BR")
91
+ * @param params.leaderboardDef - Optional leaderboard definition ID (required for Ranked Cups with multiple leaderboards)
92
+ * @param teams - Array of team member account ID arrays. Each team is an array of account IDs.
93
+ * For solo events: [["accountId1"], ["accountId2"]]
94
+ * For duo events: [["player1Id", "player2Id"], ["player3Id", "player4Id"]]
95
+ * @param fortniteToken - Optional user's Fortnite access token for personalized leaderboard view
96
+ *
97
+ * @returns Promise resolving to leaderboard data with entries, ranks, and stats
98
+ *
99
+ * @throws {FortniteAPIError} When the request fails (invalid event, missing leaderboardDef, etc.)
100
+ *
101
+ * @example
102
+ * ```typescript
103
+ * // Get leaderboard for multiple solo players
104
+ * const leaderboard = await client.tournaments.getLeaderboardV2(
105
+ * {
106
+ * eventId: "epicgames_S37_BlitzCupsAllPlatforms_BR",
107
+ * eventWindowId: "S37_BlitzCupsAllPlatforms_Event1_BR"
108
+ * },
109
+ * [
110
+ * ["accountId1"],
111
+ * ["accountId2"],
112
+ * ["accountId3"]
113
+ * ]
114
+ * );
115
+ *
116
+ * // For duo tournament
117
+ * const duoLeaderboard = await client.tournaments.getLeaderboardV2(
118
+ * {
119
+ * eventId: "epicgames_S37_DuoCup_BR",
120
+ * eventWindowId: "S37_DuoCup_Event1_BR"
121
+ * },
122
+ * [
123
+ * ["player1Id", "player2Id"],
124
+ * ["player3Id", "player4Id"]
125
+ * ]
126
+ * );
127
+ *
128
+ * // For Ranked Cup with leaderboardDef
129
+ * const rankedLeaderboard = await client.tournaments.getLeaderboardV2(
130
+ * {
131
+ * eventId: "epicgames_S37_RankedCup_BR",
132
+ * eventWindowId: "S37_RankedCup_Event1_BR",
133
+ * leaderboardDef: "ranked_br_division_7"
134
+ * },
135
+ * [["accountId1"], ["accountId2"]]
136
+ * );
137
+ * ```
76
138
  */
77
139
  getLeaderboardV2(params: {
78
140
  eventId: string;
@@ -114,11 +114,73 @@ class TournamentsResource {
114
114
  }
115
115
  /**
116
116
  * Get tournament leaderboard using V2 endpoint (POST with teams body)
117
- * @param params.eventId - Event ID
118
- * @param params.eventWindowId - Event window ID
119
- * @param params.leaderboardDef - Optional leaderboard definition (required for Ranked Cups)
120
- * @param teams - Array of team member account ID arrays (e.g., [["accountId1"], ["accountId2"]])
121
- * @param fortniteToken - Optional user's Fortnite token for personalized view
117
+ *
118
+ * This is an enhanced version of the leaderboard endpoint that accepts a POST request
119
+ * with a teams array in the body. Use this endpoint when you need to query leaderboard
120
+ * data for multiple teams at once or for Ranked Cups that require specific team lookups.
121
+ *
122
+ * **Differences from V1**:
123
+ * - Uses POST method instead of GET
124
+ * - Accepts teams array in request body
125
+ * - Better suited for bulk team queries
126
+ * - Required for certain Ranked Cup leaderboards
127
+ *
128
+ * **Authentication**: Optional. Include fortniteToken for personalized leaderboard views
129
+ *
130
+ * **API Version**: v2
131
+ *
132
+ * **Rate Limit**: Standard API rate limits apply
133
+ *
134
+ * @param params - Leaderboard query parameters
135
+ * @param params.eventId - Event ID (e.g., "epicgames_S37_BlitzCupsAllPlatforms_BR")
136
+ * @param params.eventWindowId - Event window ID (e.g., "S37_BlitzCupsAllPlatforms_Event1_BR")
137
+ * @param params.leaderboardDef - Optional leaderboard definition ID (required for Ranked Cups with multiple leaderboards)
138
+ * @param teams - Array of team member account ID arrays. Each team is an array of account IDs.
139
+ * For solo events: [["accountId1"], ["accountId2"]]
140
+ * For duo events: [["player1Id", "player2Id"], ["player3Id", "player4Id"]]
141
+ * @param fortniteToken - Optional user's Fortnite access token for personalized leaderboard view
142
+ *
143
+ * @returns Promise resolving to leaderboard data with entries, ranks, and stats
144
+ *
145
+ * @throws {FortniteAPIError} When the request fails (invalid event, missing leaderboardDef, etc.)
146
+ *
147
+ * @example
148
+ * ```typescript
149
+ * // Get leaderboard for multiple solo players
150
+ * const leaderboard = await client.tournaments.getLeaderboardV2(
151
+ * {
152
+ * eventId: "epicgames_S37_BlitzCupsAllPlatforms_BR",
153
+ * eventWindowId: "S37_BlitzCupsAllPlatforms_Event1_BR"
154
+ * },
155
+ * [
156
+ * ["accountId1"],
157
+ * ["accountId2"],
158
+ * ["accountId3"]
159
+ * ]
160
+ * );
161
+ *
162
+ * // For duo tournament
163
+ * const duoLeaderboard = await client.tournaments.getLeaderboardV2(
164
+ * {
165
+ * eventId: "epicgames_S37_DuoCup_BR",
166
+ * eventWindowId: "S37_DuoCup_Event1_BR"
167
+ * },
168
+ * [
169
+ * ["player1Id", "player2Id"],
170
+ * ["player3Id", "player4Id"]
171
+ * ]
172
+ * );
173
+ *
174
+ * // For Ranked Cup with leaderboardDef
175
+ * const rankedLeaderboard = await client.tournaments.getLeaderboardV2(
176
+ * {
177
+ * eventId: "epicgames_S37_RankedCup_BR",
178
+ * eventWindowId: "S37_RankedCup_Event1_BR",
179
+ * leaderboardDef: "ranked_br_division_7"
180
+ * },
181
+ * [["accountId1"], ["accountId2"]]
182
+ * );
183
+ * ```
122
184
  */
123
185
  async getLeaderboardV2(params, teams, fortniteToken) {
124
186
  const query = new URLSearchParams({
File without changes
File without changes
@@ -292,3 +292,208 @@ export interface BattlePassOffers {
292
292
  export interface QuestsResponse {
293
293
  [key: string]: any;
294
294
  }
295
+ export interface Account {
296
+ id: string;
297
+ displayName: string;
298
+ externalAuths?: Record<string, ExternalAuth>;
299
+ }
300
+ export interface ExternalAuth {
301
+ accountId: string;
302
+ type: string;
303
+ externalAuthId?: string;
304
+ externalDisplayName?: string;
305
+ authIds?: Array<{
306
+ id: string;
307
+ type: string;
308
+ }>;
309
+ }
310
+ export interface BulkExternalDisplayNameRequest {
311
+ lookups: Array<{
312
+ externalAuthType: string;
313
+ displayName: string;
314
+ }>;
315
+ }
316
+ export interface BulkExternalIdRequest {
317
+ lookups: Array<{
318
+ externalAuthType: string;
319
+ externalId: string;
320
+ }>;
321
+ }
322
+ export interface BRInventory {
323
+ stash?: {
324
+ globalcash?: number;
325
+ [key: string]: any;
326
+ };
327
+ [key: string]: any;
328
+ }
329
+ export interface Keychain {
330
+ keychain?: Array<{
331
+ key: string;
332
+ [key: string]: any;
333
+ }>;
334
+ [key: string]: any;
335
+ }
336
+ export interface Receipt {
337
+ receiptId: string;
338
+ purchaseDate: string;
339
+ offerId: string;
340
+ [key: string]: any;
341
+ }
342
+ export interface EnabledFeatures {
343
+ [key: string]: any;
344
+ }
345
+ export interface VersionCheck {
346
+ type: string;
347
+ [key: string]: any;
348
+ }
349
+ export interface PrivacySettings {
350
+ accountId?: string;
351
+ optOutOfPublicLeaderboards?: boolean;
352
+ [key: string]: any;
353
+ }
354
+ export interface EntitlementCheck {
355
+ entitlement?: boolean;
356
+ [key: string]: any;
357
+ }
358
+ export interface FriendsSummary {
359
+ friends?: Friend[];
360
+ incoming?: FriendRequest[];
361
+ outgoing?: FriendRequest[];
362
+ blocklist?: BlockedUser[];
363
+ settings?: {
364
+ [key: string]: any;
365
+ };
366
+ }
367
+ export interface Friend {
368
+ accountId: string;
369
+ displayName?: string;
370
+ status: "ACCEPTED" | "PENDING";
371
+ direction: "INBOUND" | "OUTBOUND";
372
+ created: string;
373
+ favorite?: boolean;
374
+ mutual?: number;
375
+ }
376
+ export interface FriendRequest {
377
+ accountId: string;
378
+ displayName?: string;
379
+ status: string;
380
+ direction: string;
381
+ created: string;
382
+ }
383
+ export interface BlockedUser {
384
+ accountId: string;
385
+ displayName?: string;
386
+ }
387
+ export interface FriendshipInfo extends Friend {
388
+ mutual: number;
389
+ }
390
+ export interface SuggestedFriend {
391
+ accountId: string;
392
+ displayName?: string;
393
+ mutualFriends?: number;
394
+ }
395
+ export interface PlayerStats {
396
+ accountId: string;
397
+ stats: {
398
+ [key: string]: any;
399
+ };
400
+ }
401
+ export interface BulkStatsRequest {
402
+ accountIds: string[];
403
+ stats?: string[];
404
+ }
405
+ export interface BulkStatsResponse {
406
+ accountId: string;
407
+ stats: {
408
+ [key: string]: any;
409
+ };
410
+ }
411
+ export interface LeaderboardOptions {
412
+ limit?: number;
413
+ offset?: number;
414
+ window?: "alltime" | "season" | "weekly" | "daily";
415
+ }
416
+ export interface LeaderboardResponse {
417
+ stat: string;
418
+ window: string;
419
+ entries: Array<{
420
+ rank: number;
421
+ accountId: string;
422
+ displayName?: string;
423
+ value: number;
424
+ }>;
425
+ pagination?: {
426
+ limit: number;
427
+ offset: number;
428
+ total?: number;
429
+ };
430
+ }
431
+ export interface EventWindows {
432
+ eventId: string;
433
+ displayName?: string;
434
+ windows: Array<{
435
+ eventWindowId: string;
436
+ beginTime: string;
437
+ endTime: string;
438
+ round?: number;
439
+ }>;
440
+ }
441
+ export interface PlayerEventHistory {
442
+ eventId: string;
443
+ eventWindowId: string;
444
+ eventName?: string;
445
+ beginTime: string;
446
+ endTime: string;
447
+ region?: string;
448
+ }
449
+ export interface TournamentDetails {
450
+ eventId: string;
451
+ eventWindowId: string;
452
+ beginTime: string;
453
+ endTime: string;
454
+ round?: number;
455
+ payoutDelay?: number;
456
+ [key: string]: any;
457
+ }
458
+ export interface ScoringRules {
459
+ scoring: Array<{
460
+ eventName: string;
461
+ points: number;
462
+ }>;
463
+ }
464
+ export interface EventLeaderboard {
465
+ entries: Array<{
466
+ rank: number;
467
+ accountId: string;
468
+ teamId?: string;
469
+ pointsEarned: number;
470
+ score: number;
471
+ [key: string]: any;
472
+ }>;
473
+ }
474
+ export interface PlayerEventData {
475
+ accountId: string;
476
+ teamId?: string;
477
+ pointsEarned: number;
478
+ rank?: number;
479
+ percentile?: number;
480
+ sessions?: Array<any>;
481
+ }
482
+ export interface EligibilityStatus {
483
+ eligible: boolean;
484
+ reasons?: string[];
485
+ }
486
+ export interface ArenaHype {
487
+ accountId: string;
488
+ currentHype?: number;
489
+ division?: string;
490
+ divisionNumber?: number;
491
+ progress?: number;
492
+ }
493
+ export interface EventRewards {
494
+ prizes: Array<{
495
+ placement: string;
496
+ amount: number;
497
+ currency?: string;
498
+ }>;
499
+ }
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaelouuu/fortnite-api",
3
- "version": "4.1.0",
3
+ "version": "4.3.0",
4
4
  "description": "SDK for Fortnite Tournaments API by Royal Arena - Author : Yael Brinkert",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",