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 CHANGED
@@ -1,3 +1,5 @@
1
+ IMAGES_ASSETS_URL="https://assets.arkham-divider.com/arkham-investigator/images.zip"
2
+
1
3
  GOOGLE_DRIVE_FOLDER_ID="1tuUf1GSmKPAxxQcLFwSdhhwvVUALeLoz"
2
4
 
3
5
  GOOGLE_SERVICE_ACCOUNT_CLIENT_EMAIL="arkhamesque-divider-downloader@arkhamesque-divider-data.iam.gserviceaccount.com"
@@ -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>[];
@@ -0,0 +1,2 @@
1
+ import type { ReferencePart } from "../../model";
2
+ export declare const getReferencePartTokens: (item: ReferencePart) => import("../../model/game/chaosBag").ChaosBagToken[];
@@ -0,0 +1,6 @@
1
+ type Options = {
2
+ code: string;
3
+ text: string;
4
+ };
5
+ export declare const getSignatureTokenReference: ({ code, text }: Options) => import("../../model").ReferencePart[];
6
+ export {};
@@ -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;
@@ -6,3 +6,4 @@ export declare const CACHED_IMAGES_DIR: string;
6
6
  export declare const DEVELOPMENT_MODE: boolean;
7
7
  export declare const APP_VERSION: string;
8
8
  export declare const MIN_CLIENT_VERSION = "1.4.0";
9
+ export declare const IMAGES_ASSETS_URL: string;
@@ -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[];
@@ -0,0 +1,6 @@
1
+ export declare const InvestigatorCode: {
2
+ JimCulver: {
3
+ base: string;
4
+ parallel: string;
5
+ };
6
+ };
@@ -1,4 +1,3 @@
1
1
  export * from "./app";
2
- export * from "./googleDrive";
3
2
  export * from "./api";
4
3
  export * from "./chaosBag";
@@ -1,2 +1 @@
1
1
  export * from "./util";
2
- export * from "./googleDrive";
@@ -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;
@@ -1,3 +1 @@
1
- import type { drive_v3 } from "@googleapis/drive";
2
1
  export declare const createImageCache: () => Promise<void>;
3
- export declare const downloadSingle: (file: drive_v3.Schema$File) => Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkham-investigator-data",
3
- "version": "2.9.5",
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,4 +0,0 @@
1
- export declare const GOOGLE_DRIVE_FOLDER_ID: string;
2
- export declare const GOOGLE_SERVICE_ACCOUNT_CLIENT_EMAIL: string;
3
- export declare const GOOGLE_SERVICE_ACCOUNT_CLIENT_ID: string;
4
- export declare const GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY: string;
@@ -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>;
@@ -1,2 +0,0 @@
1
- import type { drive_v3 } from "@googleapis/drive";
2
- export declare const getGoogleDriveFolderContents: (parentId: string) => Promise<drive_v3.Schema$File[]>;
@@ -1,2 +0,0 @@
1
- import * as google from "@googleapis/drive";
2
- export declare const getGoogleDriveService: () => Promise<google.drive_v3.Drive>;
@@ -1,2 +0,0 @@
1
- export * from "./getGoogleDriveFile";
2
- export * from "./getGoogleDriveFolderContents";