@blizzard-api/wow 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -40,10 +40,10 @@ type AchievementResponse = ExtractResourceType<typeof achievement>;
40
40
  While this package is made to function on it's own, it performs even better when combined with `@blizzard-api/client` where you can easily request data combining the two libraries.
41
41
 
42
42
  ```ts
43
- import { BlizzardApiClient } from '@blizzard-api/client';
43
+ import { createBlizzardApiClient } from '@blizzard-api/client';
44
44
  import { wow } from '@blizzard-api/wow';
45
45
 
46
- const client = new BlizzardApiClient({
46
+ const client = await createBlizzardApiClient({
47
47
  key: 'environment.blizzardClientId',
48
48
  secret: 'environment.blizzardClientSecret',
49
49
  origin: 'eu',
package/dist/index.d.cts CHANGED
@@ -576,18 +576,18 @@ interface Mode {
576
576
  type: string;
577
577
  name: string;
578
578
  }
579
- interface PurpleSection {
579
+ interface JournalSection {
580
580
  id: number;
581
581
  title: string;
582
582
  body_text: string;
583
- sections: Array<JournalEncounterResponseSection>;
584
- creature_display: CreatureDisplay$1;
583
+ sections?: Array<JournalEncounterResponseSection>;
584
+ creature_display?: CreatureDisplay$1;
585
585
  }
586
586
  interface JournalEncounterResponseSection {
587
587
  id: number;
588
588
  title: string;
589
- body_text: string;
590
- sections?: Array<PurpleSection>;
589
+ body_text?: string;
590
+ sections?: Array<JournalSection>;
591
591
  }
592
592
  interface JournalExpansionIndexResponse extends ResponseBase {
593
593
  tiers: Array<NameIdKey>;
package/dist/index.d.ts CHANGED
@@ -576,18 +576,18 @@ interface Mode {
576
576
  type: string;
577
577
  name: string;
578
578
  }
579
- interface PurpleSection {
579
+ interface JournalSection {
580
580
  id: number;
581
581
  title: string;
582
582
  body_text: string;
583
- sections: Array<JournalEncounterResponseSection>;
584
- creature_display: CreatureDisplay$1;
583
+ sections?: Array<JournalEncounterResponseSection>;
584
+ creature_display?: CreatureDisplay$1;
585
585
  }
586
586
  interface JournalEncounterResponseSection {
587
587
  id: number;
588
588
  title: string;
589
- body_text: string;
590
- sections?: Array<PurpleSection>;
589
+ body_text?: string;
590
+ sections?: Array<JournalSection>;
591
591
  }
592
592
  interface JournalExpansionIndexResponse extends ResponseBase {
593
593
  tiers: Array<NameIdKey>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blizzard-api/wow",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "MIT",
5
5
  "author": "Putro",
6
6
  "description": "A series of helpers to interact with the World of Warcraft Blizzard API",