ani-client 2.0.1 → 2.0.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/index.d.mts CHANGED
@@ -603,7 +603,7 @@ declare enum MediaRelationType {
603
603
  }
604
604
  interface MediaEdge {
605
605
  relationType: MediaRelationType;
606
- node: Pick<Media, "id" | "title" | "type" | "format" | "status" | "startDate" | "endDate" | "season" | "seasonYear" | "episodes" | "chapters" | "volumes" | "coverImage" | "genres" | "averageScore" | "studios" | "siteUrl">;
606
+ node: Pick<Media, "id" | "title" | "type" | "format" | "status" | "startDate" | "endDate" | "season" | "seasonYear" | "episodes" | "chapters" | "volumes" | "coverImage" | "genres" | "averageScore" | "studios" | "siteUrl" | "nextAiringEpisode">;
607
607
  }
608
608
  interface MediaConnection {
609
609
  edges: MediaEdge[];
package/dist/index.d.ts CHANGED
@@ -603,7 +603,7 @@ declare enum MediaRelationType {
603
603
  }
604
604
  interface MediaEdge {
605
605
  relationType: MediaRelationType;
606
- node: Pick<Media, "id" | "title" | "type" | "format" | "status" | "startDate" | "endDate" | "season" | "seasonYear" | "episodes" | "chapters" | "volumes" | "coverImage" | "genres" | "averageScore" | "studios" | "siteUrl">;
606
+ node: Pick<Media, "id" | "title" | "type" | "format" | "status" | "startDate" | "endDate" | "season" | "seasonYear" | "episodes" | "chapters" | "volumes" | "coverImage" | "genres" | "averageScore" | "studios" | "siteUrl" | "nextAiringEpisode">;
607
607
  }
608
608
  interface MediaConnection {
609
609
  edges: MediaEdge[];
package/dist/index.js CHANGED
@@ -448,6 +448,13 @@ var RELATIONS_FIELDS = `
448
448
  averageScore
449
449
  studios { nodes { id name isAnimationStudio siteUrl } }
450
450
  siteUrl
451
+ nextAiringEpisode {
452
+ id
453
+ airingAt
454
+ episode
455
+ mediaId
456
+ timeUntilAiring
457
+ }
451
458
  }
452
459
  }
453
460
  }
@@ -1903,7 +1910,7 @@ function mapFavorites(fav) {
1903
1910
 
1904
1911
  // src/client/index.ts
1905
1912
  var DEFAULT_API_URL = "https://graphql.anilist.co";
1906
- var LIB_VERSION = "2.0.1" ;
1913
+ var LIB_VERSION = "2.0.2" ;
1907
1914
  var AniListClient = class {
1908
1915
  apiUrl;
1909
1916
  headers;