arkham-investigator-data 2.6.3 → 2.8.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.
@@ -0,0 +1,27 @@
1
+ export type ArkhamCardsCampaign = {
2
+ campaign: ArkhamCardsCampaignInfo;
3
+ scenarios: ArkhamCardsScenario[];
4
+ };
5
+ export type ArkhamCardsCampaignInfo = {
6
+ id: string;
7
+ name: string;
8
+ steps: ArkhamCardsCampaignStep[];
9
+ };
10
+ export type ArkhamCardsCampaignStep = {
11
+ id: string;
12
+ input?: ArkhamCardsCampaignStepInput;
13
+ };
14
+ export type ArkhamCardsCampaignStepInput = {
15
+ choices?: ArkhamCardsCampaignDifficulty[];
16
+ };
17
+ export type ArkhamCardsCampaignDifficulty = {
18
+ id: string;
19
+ text: string;
20
+ tokens: string[];
21
+ };
22
+ export type ArkhamCardsScenario = {
23
+ id: string;
24
+ scenario_name: string;
25
+ full_name: string;
26
+ steps: ArkhamCardsCampaignStep[];
27
+ };
@@ -2,3 +2,4 @@ export * from "./common";
2
2
  export * from "./investigator";
3
3
  export * from "./reference";
4
4
  export * from "./rules";
5
+ export * from "./campaign";
@@ -3,3 +3,4 @@ export * from "./loadArkhamCardsReferenceCards";
3
3
  export * from "./loadArkhamCardsPacks";
4
4
  export * from "./loadArkhamCardsCycles";
5
5
  export * from "./loadArkhamCardsRules";
6
+ export * from "./loadArkhamCardsCampaigns";
@@ -0,0 +1,2 @@
1
+ import type { ArkhamCardsCampaign } from "../model";
2
+ export declare const loadArkhamCardsCampaigns: () => Promise<ArkhamCardsCampaign[]>;
@@ -1,4 +1,5 @@
1
- import type { ArkhamCardsCycle, ArkhamCardsPack, ArkhamCardsReference } from "../../api/arkhamCards";
1
+ import type { ArkhamCardsCampaign, ArkhamCardsCycle, ArkhamCardsPack, ArkhamCardsReference } from "../../api/arkhamCards";
2
2
  export declare const getArkhamCardsCycles: () => ArkhamCardsCycle[];
3
3
  export declare const getArkhamCardsPacks: () => ArkhamCardsPack[];
4
4
  export declare const getArkhamCardsReferenceCards: () => ArkhamCardsReference[];
5
+ export declare const getArkhamCardsCampaigns: () => ArkhamCardsCampaign[];
@@ -1,5 +1,5 @@
1
1
  import type { ArkhamCardsInvestigator } from "../../api/arkhamCards";
2
- import { InvestigatorSignatureGender } from "../../model";
2
+ import type { InvestigatorSignatureGender } from "../../model";
3
3
  export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
4
4
  gender: InvestigatorSignatureGender;
5
5
  taboo: boolean;
@@ -29,6 +29,7 @@ export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
29
29
  multiselect?: boolean;
30
30
  abilities?: import("../../model").InvestigatorAbility[];
31
31
  roles?: import("../../model").InvestigatorFaction[];
32
+ nameless?: boolean;
32
33
  id: string;
33
34
  alternate_of_code: string | null;
34
35
  faction_code: import("../../model").InvestigatorFaction;
@@ -23,6 +23,7 @@ export declare const getCardSpecial: (card: ArkhamCardsInvestigator) => {
23
23
  multiselect?: boolean;
24
24
  abilities?: import("../../../model").InvestigatorAbility[];
25
25
  roles?: import("../../../model").InvestigatorFaction[];
26
+ nameless?: boolean;
26
27
  } | {
27
28
  image: {
28
29
  id: string;
@@ -0,0 +1,9 @@
1
+ import type { ChaosBagToken } from "../../model/game/chaosBag";
2
+ import type { ArkhamDivider } from "arkham-divider-data";
3
+ type ArkhamDividerStory = ArkhamDivider.Core["stories"][number];
4
+ export declare const getStoryDifficultyLevels: (story: ArkhamDividerStory) => {
5
+ id: string;
6
+ text: string;
7
+ tokens: ChaosBagToken[];
8
+ }[];
9
+ export {};
@@ -13,6 +13,7 @@ export type Investigator = InvestigatorStats & {
13
13
  abilities?: InvestigatorAbility[];
14
14
  roles?: InvestigatorFaction[];
15
15
  spoiler?: boolean;
16
+ nameless?: boolean;
16
17
  };
17
18
  export type InvestigatorStats = {
18
19
  health?: number;
@@ -1,3 +1,4 @@
1
+ import type { ChaosBagToken } from "../chaosBag";
1
2
  import type { ReferenceCard } from "./reference";
2
3
  export type Story = {
3
4
  locale: string;
@@ -7,4 +8,10 @@ export type Story = {
7
8
  type: string;
8
9
  official: boolean;
9
10
  referenceCards: ReferenceCard[];
11
+ difficultyLevels: StoryDifficulty[];
12
+ };
13
+ export type StoryDifficulty = {
14
+ id: string;
15
+ text: string;
16
+ tokens: ChaosBagToken[];
10
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkham-investigator-data",
3
- "version": "2.6.3",
3
+ "version": "2.8.0",
4
4
  "main": "index.js",
5
5
  "types": "build/src/types.d.ts",
6
6
  "scripts": {