arkham-investigator-data 2.9.5 → 2.11.4
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.local +2 -0
- package/build/src/api/arkhamCards/config/chaosBag.d.ts +1 -1
- package/build/src/components/chaos-bag/effects/appendTokenEffect.d.ts +12 -0
- package/build/src/components/chaos-bag/effects/index.d.ts +1 -0
- package/build/src/components/chaos-bag/getChaosBagTokenReference.d.ts +1 -1
- package/build/src/components/chaos-bag/getReferencePartTokens.d.ts +2 -0
- package/build/src/components/chaos-bag/getSignatureTokenReference.d.ts +6 -0
- package/build/src/components/stories/reference/getChaosBagTokenReferenceValues.d.ts +1 -1
- package/build/src/config/app.d.ts +1 -0
- package/build/src/config/chaosBag.d.ts +1 -1
- package/build/src/config/codes.d.ts +6 -0
- package/build/src/config/index.d.ts +0 -1
- package/build/src/features/index.d.ts +0 -1
- package/build/src/model/game/investigator/abilities.d.ts +3 -0
- package/build/src/model/game/investigator/signature.d.ts +1 -1
- package/build/src/tasks/createImageCache.d.ts +0 -2
- package/package.json +1 -2
- package/build/src/config/googleDrive.d.ts +0 -4
- package/build/src/features/googleDrive/getGoogleDriveFile.d.ts +0 -6
- package/build/src/features/googleDrive/getGoogleDriveFolderContents.d.ts +0 -2
- package/build/src/features/googleDrive/getGoogleDriveService.d.ts +0 -2
- package/build/src/features/googleDrive/index.d.ts +0 -2
package/.env.local
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ArkhamCardsChaosToken } from "../model";
|
1
|
+
import type { ArkhamCardsChaosToken } from "../model";
|
2
2
|
export declare const arkhamCardsSymbolTokens: ArkhamCardsChaosToken[];
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { ReferencePart } from "../../../model";
|
2
|
+
import type { ChaosBagToken } from "../../../model/game/chaosBag";
|
3
|
+
type Item = {
|
4
|
+
token: ChaosBagToken;
|
5
|
+
effect: string;
|
6
|
+
};
|
7
|
+
type Options = {
|
8
|
+
items: Item[];
|
9
|
+
data: ReferencePart[];
|
10
|
+
};
|
11
|
+
export declare const appendTokenEffect: ({ data, items }: Options) => ReferencePart[];
|
12
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./appendTokenEffect";
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ReferencePart } from "../../model";
|
1
|
+
import type { ReferencePart } from "../../model";
|
2
2
|
export declare const getChaosBagTokenReference: (sources: string[]) => NonNullable<ReferencePart>[];
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { ReferenceCardToken } from "../../../model";
|
1
|
+
import type { ReferenceCardToken } from "../../../model";
|
2
2
|
export declare const getChaosBagTokenReferenceValues: (text: string) => ReferenceCardToken[];
|
3
3
|
export declare const parseEffectValue: (text: string) => number;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ChaosBagToken } from "../model/game/chaosBag";
|
1
|
+
import type { ChaosBagToken } from "../model/game/chaosBag";
|
2
2
|
export declare const chaosBagSymbolTokens: ChaosBagToken[];
|
@@ -9,6 +9,8 @@ export type InvestigatorAbilityType = {
|
|
9
9
|
} | {
|
10
10
|
type: "action" | "special-action";
|
11
11
|
icon: string;
|
12
|
+
effectType?: "permanent" | "instant";
|
13
|
+
effect?: string;
|
12
14
|
} | {
|
13
15
|
type: "counter";
|
14
16
|
direction: "increase" | "decrease";
|
@@ -20,6 +22,7 @@ export type InvestigatorAbilityType = {
|
|
20
22
|
};
|
21
23
|
export type InvestigatorAbility = InvestigatorAbilityType & {
|
22
24
|
id: string;
|
25
|
+
toggle?: boolean;
|
23
26
|
limitPer?: LimitType | LimitType[];
|
24
27
|
perInvestigator?: boolean;
|
25
28
|
additionalAction?: boolean;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { ArkhamCardsInvestigator } from "../../../api/arkhamCards";
|
2
|
+
import type { ReferenceCardToken, ReferencePart } from "../story";
|
2
3
|
import type { Investigator, InvestigatorFaction } from "./common";
|
3
4
|
import type { InvestigatorSkin } from "./options";
|
4
|
-
import { ReferenceCardToken, ReferencePart } from "../story";
|
5
5
|
export type InvestigatorSignatureGender = "male" | "female" | "non-binary";
|
6
6
|
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" | "gender"> & Omit<Investigator, "variants" | "skins" | "image"> & {
|
7
7
|
icon: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "arkham-investigator-data",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.11.4",
|
4
4
|
"main": "index.js",
|
5
5
|
"types": "build/src/types.d.ts",
|
6
6
|
"scripts": {
|
@@ -27,7 +27,6 @@
|
|
27
27
|
"description": "",
|
28
28
|
"devDependencies": {
|
29
29
|
"@biomejs/biome": "^1.9.4",
|
30
|
-
"@googleapis/drive": "^8.14.0",
|
31
30
|
"@types/decompress": "^4.2.7",
|
32
31
|
"@types/node": "^22.13.1",
|
33
32
|
"@types/ramda": "^0.30.2",
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import type { WriteStream } from "node:fs";
|
2
|
-
import type { drive_v3 } from "@googleapis/drive";
|
3
|
-
export type IGetGoogleDriveFileOptions = drive_v3.Schema$File & {
|
4
|
-
stream: WriteStream;
|
5
|
-
};
|
6
|
-
export declare const getGoogleDriveFile: ({ id, name, stream, }: IGetGoogleDriveFileOptions) => Promise<unknown>;
|