@yaelouuu/fortnite-api 4.4.0 → 4.5.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.
@@ -17,6 +17,9 @@ export declare class TournamentsResource {
17
17
  * Get global events with metadata
18
18
  */
19
19
  getGlobal(): Promise<any>;
20
+ getSessions(params: {
21
+ eventId: string;
22
+ }): Promise<any>;
20
23
  /**
21
24
  * Download events for a specific account
22
25
  * Requires user's own Fortnite token
@@ -25,6 +25,10 @@ class TournamentsResource {
25
25
  async getGlobal() {
26
26
  return this.client.request("/events/global");
27
27
  }
28
+ async getSessions(params) {
29
+ const { eventId } = params;
30
+ return this.client.request(`/events/sessions?eventId=${eventId}`);
31
+ }
28
32
  /**
29
33
  * Download events for a specific account
30
34
  * Requires user's own Fortnite token
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaelouuu/fortnite-api",
3
- "version": "4.4.0",
3
+ "version": "4.5.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",