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 +2 -1
- package/build/src/api/arkhamCards/model/index.d.ts +1 -0
- package/build/src/api/arkhamCards/model/rules.d.ts +16 -0
- package/build/src/api/arkhamCards/request/index.d.ts +1 -0
- package/build/src/api/arkhamCards/request/loadArkhamCardsRules.d.ts +2 -0
- package/build/src/config/api.d.ts +1 -0
- package/build/src/model/build.d.ts +2 -0
- package/package.json +1 -1
package/.env
CHANGED
@@ -1,2 +1,3 @@
|
|
1
1
|
ARKHAM_CARDS_GRAPHQL_URL="https://gapi.arkhamcards.com/v1/graphql"
|
2
|
-
|
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"
|
@@ -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
|
+
};
|
@@ -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
|
};
|