arkham-investigator-data 2.4.4 → 2.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.
package/.env CHANGED
@@ -1,2 +1,3 @@
1
1
  ARKHAM_CARDS_GRAPHQL_URL="https://gapi.arkhamcards.com/v1/graphql"
2
- ARKHAM_DIVIDER_CORE_URL="http://neizerth.github.io/ArkhamDividerData/core.json"
2
+ ARKHAM_CARDS_REPO_RAW_URL="https://raw.githubusercontent.com/zzorba/ArkhamCards/master"
3
+ ARKHAM_DIVIDER_CORE_URL="http://neizerth.github.io/ArkhamDividerData/core.json"
@@ -1,3 +1,4 @@
1
1
  export * from "./common";
2
2
  export * from "./investigator";
3
3
  export * from "./reference";
4
+ export * from "./rules";
@@ -0,0 +1,16 @@
1
+ export type ArkhamCardsRulesItem = {
2
+ id: string;
3
+ title: string;
4
+ text: string;
5
+ cycle?: string[];
6
+ scenarios?: string[];
7
+ rules?: ArkhamCardsRulesItem[];
8
+ table?: ArkhamCardsRulesItemTableRow[];
9
+ };
10
+ export type ArkhamCardsRulesItemTableRow = {
11
+ row: ArkhamCardsRulesItemTableCell[];
12
+ };
13
+ export type ArkhamCardsRulesItemTableCell = {
14
+ text: string;
15
+ color?: string;
16
+ };
@@ -2,3 +2,4 @@ export * from "./loadArkhamCardsInvestigators";
2
2
  export * from "./loadArkhamCardsReferenceCards";
3
3
  export * from "./loadArkhamCardsPacks";
4
4
  export * from "./loadArkhamCardsCycles";
5
+ export * from "./loadArkhamCardsRules";
@@ -0,0 +1,2 @@
1
+ import { ArkhamCardsRulesItem } from "../model";
2
+ export declare const loadArkhamCardsRules: (language?: string) => Promise<ArkhamCardsRulesItem[]>;
@@ -1,2 +1,3 @@
1
1
  export declare const ARKHAM_CARDS_GRAPHQL_URL: string;
2
2
  export declare const ARKHAM_DIVIDER_CORE_URL: string;
3
+ export declare const ARKHAM_CARDS_REPO_RAW_URL: string;
@@ -1,6 +1,7 @@
1
1
  import type { ArkhamDivider } from "arkham-divider-data";
2
2
  import type { Investigator, SignatureCollection } from "./game";
3
3
  import type { Story } from "./game/story";
4
+ import { ArkhamCardsRulesItem } from "../api/arkhamCards";
4
5
  export type Build = {
5
6
  version: string;
6
7
  minClientVersion: string;
@@ -10,4 +11,5 @@ export type Build = {
10
11
  };
11
12
  export type LocaleBuild = SignatureCollection & {
12
13
  stories: Story[];
14
+ rules: ArkhamCardsRulesItem[];
13
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkham-investigator-data",
3
- "version": "2.4.4",
3
+ "version": "2.5.0",
4
4
  "main": "index.js",
5
5
  "types": "build/src/types.d.ts",
6
6
  "scripts": {