arkham-investigator-data 1.0.15 → 1.1.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,23 @@
1
+ import type { InvestigatorImage } from "./image";
2
+ import type { InvestigatorSkin, InvestigatorVariant } from "./options";
3
+ export declare type Investigator = {
4
+ code: string;
5
+ previewId?: string;
6
+ variantName?: string;
7
+ additionalAction?: boolean;
8
+ image: InvestigatorImage;
9
+ variants?: InvestigatorVariant[];
10
+ skins?: InvestigatorSkin[];
11
+ multiselect?: boolean;
12
+ abilities?: InvestigatorAbility[];
13
+ roles?: InvestigatorFaction[];
14
+ spoiler?: boolean;
15
+ };
16
+ export declare type InvestigatorFaction = 'guardian' | 'rogue' | 'seeker' | 'mystic' | 'survivor' | 'neutral';
17
+ export declare type LimitType = 'round' | 'turn' | 'phase' | 'ability' | 'test' | 'game';
18
+ export declare type InvestigatorAbility = {
19
+ type: 'reaction' | 'fast';
20
+ limitPer?: LimitType | LimitType[];
21
+ perInvestigator?: boolean;
22
+ limitCount?: number;
23
+ };
@@ -0,0 +1,20 @@
1
+ import type { Box } from "../dimensions";
2
+ export declare type InvestigatorImageBox = Box & {
3
+ top: number;
4
+ left: number;
5
+ };
6
+ export declare type InvestigatorImageSource = Box & {
7
+ type: 'mini' | 'full';
8
+ id: string;
9
+ face: InvestigatorImageBox;
10
+ };
11
+ export declare type InvestigatorImageMedia = InvestigatorImageBox & {
12
+ source?: InvestigatorImageSource;
13
+ primary?: boolean;
14
+ type?: 'face' | 'body';
15
+ };
16
+ export declare type InvestigatorImage = Box & {
17
+ id?: string;
18
+ face?: InvestigatorImageBox;
19
+ media?: InvestigatorImageMedia[];
20
+ };
@@ -0,0 +1,3 @@
1
+ export * from './common';
2
+ export * from './options';
3
+ export * from './image';
@@ -0,0 +1,31 @@
1
+ import type { InvestigatorAbility } from "./common";
2
+ import type { InvestigatorImage } from "./image";
3
+ export declare type InvestigatorSkin = {
4
+ id: string;
5
+ name: string;
6
+ image: InvestigatorImage;
7
+ };
8
+ export declare type InvestigatorVariant = InvestigatorVariantIdentity & {
9
+ name: string;
10
+ additionalAction?: boolean;
11
+ abilities?: InvestigatorAbility[];
12
+ };
13
+ export declare type InvestigatorVariantIdentity = InvestigatorVariantWithPack | InvestigatorCustomVariant;
14
+ export declare type InvestigatorCustomVariant = {
15
+ type: 'custom';
16
+ } & ({
17
+ code: string;
18
+ image?: InvestigatorImage;
19
+ } | {
20
+ id: string;
21
+ image: InvestigatorImage;
22
+ });
23
+ export declare type InvestigatorVariantWithPack = {
24
+ code: string;
25
+ } & ({
26
+ type: 'parallel';
27
+ image?: InvestigatorImage;
28
+ } | {
29
+ type: 'book';
30
+ image: InvestigatorImage;
31
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkham-investigator-data",
3
- "version": "1.0.15",
3
+ "version": "1.1.0",
4
4
  "main": "index.js",
5
5
  "types": "build/src/types.d.ts",
6
6
  "scripts": {
@@ -1,58 +0,0 @@
1
- import type { Box } from "./dimensions";
2
- export declare type Investigator = {
3
- code: string;
4
- previewId?: string;
5
- variantName?: string;
6
- additionalAction?: boolean;
7
- image: InvestigatorImage;
8
- variants?: InvestigatorVariant[];
9
- skins?: InvestigatorSkin[];
10
- multiselect?: boolean;
11
- };
12
- export declare type InvestigatorImageBox = Box & {
13
- top: number;
14
- left: number;
15
- };
16
- export declare type InvestigatorImageSource = Box & {
17
- type: 'mini' | 'full';
18
- id: string;
19
- face: InvestigatorImageBox;
20
- };
21
- export declare type InvestigatorImageMedia = InvestigatorImageBox & {
22
- source?: InvestigatorImageSource;
23
- primary?: boolean;
24
- type?: 'face' | 'body';
25
- };
26
- export declare type InvestigatorImage = Box & {
27
- id?: string;
28
- face?: InvestigatorImageBox;
29
- media?: InvestigatorImageMedia[];
30
- };
31
- export declare type InvestigatorSkin = {
32
- id: string;
33
- name: string;
34
- image: InvestigatorImage;
35
- };
36
- export declare type InvestigatorVariant = InvestigatorVariantIdentity & {
37
- name: string;
38
- additionalAction?: boolean;
39
- };
40
- export declare type InvestigatorVariantIdentity = InvestigatorVariantWithPack | InvestigatorCustomVariant;
41
- export declare type InvestigatorCustomVariant = {
42
- type: 'custom';
43
- } & ({
44
- code: string;
45
- image?: InvestigatorImage;
46
- } | {
47
- id: string;
48
- image: InvestigatorImage;
49
- });
50
- export declare type InvestigatorVariantWithPack = {
51
- code: string;
52
- } & ({
53
- type: 'parallel';
54
- image?: InvestigatorImage;
55
- } | {
56
- type: 'book';
57
- image: InvestigatorImage;
58
- });