arkham-investigator-data 2.0.5 → 2.0.8

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.
@@ -1,2 +1,24 @@
1
- import type { ArkhamCardsInvestigator } from "./arkhamCards.types";
2
- export declare const loadArkhamCardsInvestigators: () => Promise<ArkhamCardsInvestigator[]>;
1
+ export declare const loadArkhamCardsInvestigators: () => Promise<{
2
+ linked_code: string;
3
+ id: string;
4
+ alternate_of_code: string | null;
5
+ code: string;
6
+ real_text: string;
7
+ real_name: string;
8
+ real_subname: string;
9
+ real_flavor: string;
10
+ real_traits: string;
11
+ real_taboo_original_text: string | null;
12
+ real_taboo_text_change: string | null;
13
+ faction_code: import("../../model").InvestigatorFaction;
14
+ sanity: number;
15
+ health: number;
16
+ skill_agility: number;
17
+ skill_combat: number;
18
+ skill_intellect: number;
19
+ skill_willpower: number;
20
+ translations: import("./arkhamCards.types").ArkhamCardsInvestigatorTranslation[];
21
+ taboo_set: import("./arkhamCards.types").ArkhamCardsTabooSet | null;
22
+ pack: import("./arkhamCards.types").ArkhamCardsPack;
23
+ spoiler: boolean;
24
+ }[]>;
@@ -2,6 +2,7 @@ import type { InvestigatorFaction } from "../../model";
2
2
  export type ArkhamCardsInvestigator = {
3
3
  id: string;
4
4
  alternate_of_code: string | null;
5
+ linked_code: string | null;
5
6
  code: string;
6
7
  real_text: string;
7
8
  real_name: string;
@@ -0,0 +1,2 @@
1
+ export * from "./mapLinkedCode";
2
+ export * from "./keepLastTabooSignature";
@@ -0,0 +1,2 @@
1
+ import { ArkhamCardsInvestigator } from "../arkhamCards.types";
2
+ export declare const keepLastTabooSignature: (data: ArkhamCardsInvestigator[]) => ArkhamCardsInvestigator[];
@@ -0,0 +1,26 @@
1
+ import type { ArkhamCardsInvestigator } from "../arkhamCards.types";
2
+ export declare const mapLinkedCode: (card: ArkhamCardsInvestigator, _: number, cards: ArkhamCardsInvestigator[]) => {
3
+ linked_code: string;
4
+ id: string;
5
+ alternate_of_code: string | null;
6
+ code: string;
7
+ real_text: string;
8
+ real_name: string;
9
+ real_subname: string;
10
+ real_flavor: string;
11
+ real_traits: string;
12
+ real_taboo_original_text: string | null;
13
+ real_taboo_text_change: string | null;
14
+ faction_code: import("../../../model").InvestigatorFaction;
15
+ sanity: number;
16
+ health: number;
17
+ skill_agility: number;
18
+ skill_combat: number;
19
+ skill_intellect: number;
20
+ skill_willpower: number;
21
+ translations: import("../arkhamCards.types").ArkhamCardsInvestigatorTranslation[];
22
+ taboo_set: import("../arkhamCards.types").ArkhamCardsTabooSet | null;
23
+ pack: import("../arkhamCards.types").ArkhamCardsPack;
24
+ spoiler: boolean;
25
+ };
26
+ export declare const getLinkedCode: ({ alternate_of_code, real_name, code, faction_code }: ArkhamCardsInvestigator, cards: ArkhamCardsInvestigator[]) => string;
@@ -1,5 +1,7 @@
1
1
  import type { ArkhamCardsInvestigator } from "../../api/arkhamCards";
2
2
  export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
3
+ taboo: boolean;
4
+ canonical: boolean;
3
5
  official: boolean;
4
6
  type: "default";
5
7
  code: string;
@@ -16,12 +18,15 @@ export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
16
18
  sanity: number;
17
19
  alternate_of_code: string | null;
18
20
  faction_code: import("../../model").InvestigatorFaction;
21
+ linked_code: string | null;
22
+ taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
19
23
  skill_agility: number;
20
24
  skill_combat: number;
21
25
  skill_intellect: number;
22
26
  skill_willpower: number;
23
- taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
24
27
  } | {
28
+ taboo: boolean;
29
+ canonical: boolean;
25
30
  official: boolean;
26
31
  image: import("../../model").InvestigatorImage;
27
32
  code: string;
@@ -29,19 +34,21 @@ export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
29
34
  name: string;
30
35
  additionalAction?: boolean;
31
36
  abilities?: import("../../model").InvestigatorAbility[];
32
- taboo?: boolean;
33
37
  id: string;
34
38
  health: number;
35
39
  sanity: number;
36
40
  alternate_of_code: string | null;
37
41
  faction_code: import("../../model").InvestigatorFaction;
42
+ linked_code: string | null;
43
+ taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
38
44
  skill_agility: number;
39
45
  skill_combat: number;
40
46
  skill_intellect: number;
41
47
  skill_willpower: number;
42
- taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
43
48
  spoiler: boolean;
44
49
  } | {
50
+ taboo: boolean;
51
+ canonical: boolean;
45
52
  official: boolean;
46
53
  image: import("../../model").InvestigatorImage;
47
54
  code: string;
@@ -49,19 +56,21 @@ export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
49
56
  name: string;
50
57
  additionalAction?: boolean;
51
58
  abilities?: import("../../model").InvestigatorAbility[];
52
- taboo?: boolean;
53
59
  id: string;
54
60
  health: number;
55
61
  sanity: number;
56
62
  alternate_of_code: string | null;
57
63
  faction_code: import("../../model").InvestigatorFaction;
64
+ linked_code: string | null;
65
+ taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
58
66
  skill_agility: number;
59
67
  skill_combat: number;
60
68
  skill_intellect: number;
61
69
  skill_willpower: number;
62
- taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
63
70
  spoiler: boolean;
64
71
  } | {
72
+ taboo: boolean;
73
+ canonical: boolean;
65
74
  official: boolean;
66
75
  image: import("../../model").InvestigatorImage;
67
76
  type: "custom";
@@ -69,16 +78,38 @@ export declare const getSignatureBase: (card: ArkhamCardsInvestigator) => {
69
78
  name: string;
70
79
  additionalAction?: boolean;
71
80
  abilities?: import("../../model").InvestigatorAbility[];
72
- taboo?: boolean;
73
81
  id: string;
74
82
  health: number;
75
83
  sanity: number;
76
84
  alternate_of_code: string | null;
77
85
  faction_code: import("../../model").InvestigatorFaction;
86
+ linked_code: string | null;
87
+ taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
78
88
  skill_agility: number;
79
89
  skill_combat: number;
80
90
  skill_intellect: number;
81
91
  skill_willpower: number;
92
+ spoiler: boolean;
93
+ } | {
94
+ taboo: boolean;
95
+ canonical: boolean;
96
+ official: boolean;
97
+ image: import("../../model").InvestigatorImage;
98
+ type: "taboo";
99
+ code: string;
100
+ name: string;
101
+ additionalAction?: boolean;
102
+ abilities?: import("../../model").InvestigatorAbility[];
103
+ id: string;
104
+ health: number;
105
+ sanity: number;
106
+ alternate_of_code: string | null;
107
+ faction_code: import("../../model").InvestigatorFaction;
108
+ linked_code: string | null;
82
109
  taboo_set: import("../../api/arkhamCards").ArkhamCardsTabooSet | null;
110
+ skill_agility: number;
111
+ skill_combat: number;
112
+ skill_intellect: number;
113
+ skill_willpower: number;
83
114
  spoiler: boolean;
84
115
  };
@@ -17,7 +17,6 @@ export declare const getCardSpecial: (card: ArkhamCardsInvestigator) => {
17
17
  name: string;
18
18
  additionalAction?: boolean;
19
19
  abilities?: import("../../../model").InvestigatorAbility[];
20
- taboo?: boolean;
21
20
  } | {
22
21
  image: import("../../../model").InvestigatorImage;
23
22
  code: string;
@@ -25,7 +24,6 @@ export declare const getCardSpecial: (card: ArkhamCardsInvestigator) => {
25
24
  name: string;
26
25
  additionalAction?: boolean;
27
26
  abilities?: import("../../../model").InvestigatorAbility[];
28
- taboo?: boolean;
29
27
  } | {
30
28
  image: import("../../../model").InvestigatorImage;
31
29
  type: "custom";
@@ -33,5 +31,11 @@ export declare const getCardSpecial: (card: ArkhamCardsInvestigator) => {
33
31
  name: string;
34
32
  additionalAction?: boolean;
35
33
  abilities?: import("../../../model").InvestigatorAbility[];
36
- taboo?: boolean;
34
+ } | {
35
+ image: import("../../../model").InvestigatorImage;
36
+ type: "taboo";
37
+ code: string;
38
+ name: string;
39
+ additionalAction?: boolean;
40
+ abilities?: import("../../../model").InvestigatorAbility[];
37
41
  };
@@ -9,9 +9,13 @@ export type InvestigatorVariant = InvestigatorVariantIdentity & {
9
9
  name: string;
10
10
  additionalAction?: boolean;
11
11
  abilities?: InvestigatorAbility[];
12
- taboo?: boolean;
13
12
  };
14
- export type InvestigatorVariantIdentity = InvestigatorVariantWithPack | InvestigatorCustomVariant;
13
+ export type InvestigatorVariantIdentity = InvestigatorVariantWithPack | InvestigatorCustomVariant | InvestigatorDefaultVariant;
14
+ export type InvestigatorDefaultVariant = {
15
+ type: "taboo";
16
+ code: string;
17
+ image?: InvestigatorImage;
18
+ };
15
19
  export type InvestigatorCustomVariant = {
16
20
  type: "custom";
17
21
  code: string;
@@ -2,6 +2,7 @@ import type { ArkhamCardsInvestigator } from "../../api/arkhamCards";
2
2
  import type { Investigator, InvestigatorFaction } from "./common";
3
3
  import type { InvestigatorSkin } from "./options";
4
4
  export type InvestigatorSignature = Omit<ArkhamCardsInvestigator, "real_name" | "real_subname" | "real_text" | "real_flavor" | "real_traits" | "real_taboo_original_text" | "real_taboo_text_change" | "translations" | "pack"> & Omit<Investigator, "variants" | "skins"> & {
5
+ icon: string;
5
6
  type: InvestigatorSignatureType;
6
7
  locale: string;
7
8
  text: string;
@@ -9,13 +10,15 @@ export type InvestigatorSignature = Omit<ArkhamCardsInvestigator, "real_name" |
9
10
  subname: string;
10
11
  flavor: string;
11
12
  traits: string;
13
+ taboo: boolean;
12
14
  taboo_original_text: string | null;
13
15
  taboo_text_change: string | null;
14
16
  official: boolean;
17
+ canonical: boolean;
15
18
  pack: InvestigatorSignaturePack;
16
19
  cycle: InvestigatorSignatureCycle;
17
20
  };
18
- export type InvestigatorSignatureType = "default" | "custom" | "parallel" | "book";
21
+ export type InvestigatorSignatureType = "default" | "custom" | "parallel" | "book" | "taboo";
19
22
  export type InvestigatorSignaturePack = {
20
23
  locale: string;
21
24
  code: string;
@@ -39,6 +42,7 @@ export type InvestigatorSignatureGroup = {
39
42
  signatures: InvestigatorSignature[];
40
43
  skins: InvestigatorSkin[];
41
44
  official: boolean;
45
+ canonical: boolean;
42
46
  spoiler: boolean;
43
47
  faction_code: InvestigatorFaction;
44
48
  multiselect: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkham-investigator-data",
3
- "version": "2.0.5",
3
+ "version": "2.0.8",
4
4
  "main": "index.js",
5
5
  "types": "build/src/types.d.ts",
6
6
  "scripts": {