arkham-investigator-data 1.0.2
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 +7 -0
- package/build/App.d.ts +4 -0
- package/build/config/app.d.ts +6 -0
- package/build/config/googleDrive.d.ts +4 -0
- package/build/config/index.d.ts +2 -0
- package/build/data/campaigns/core/AgnesBaker.d.ts +2 -0
- package/build/data/campaigns/core/DaisyWalker.d.ts +2 -0
- package/build/data/campaigns/core/RolandBanks.d.ts +2 -0
- package/build/data/campaigns/core/SkidsOToole.d.ts +2 -0
- package/build/data/campaigns/core/WendyAdams.d.ts +2 -0
- package/build/data/campaigns/core/index.d.ts +2 -0
- package/build/data/campaigns/dwl/AshcanPete.d.ts +2 -0
- package/build/data/campaigns/dwl/JennyBarnes.d.ts +2 -0
- package/build/data/campaigns/dwl/JimCulver.d.ts +2 -0
- package/build/data/campaigns/dwl/RexMurphy.d.ts +2 -0
- package/build/data/campaigns/dwl/ZoeySamaras.d.ts +2 -0
- package/build/data/campaigns/dwl/index.d.ts +2 -0
- package/build/data/campaigns/eoe/BobJenkins.d.ts +2 -0
- package/build/data/campaigns/eoe/DanielaReyes.d.ts +2 -0
- package/build/data/campaigns/eoe/LilyChen.d.ts +2 -0
- package/build/data/campaigns/eoe/MontereyJack.d.ts +2 -0
- package/build/data/campaigns/eoe/NormanWithers.d.ts +2 -0
- package/build/data/campaigns/eoe/index.d.ts +2 -0
- package/build/data/campaigns/fhv/AlessandraZorzi.d.ts +2 -0
- package/build/data/campaigns/fhv/HankSamson.d.ts +2 -0
- package/build/data/campaigns/fhv/KateWinthrop.d.ts +2 -0
- package/build/data/campaigns/fhv/KohakuNarukami.d.ts +2 -0
- package/build/data/campaigns/fhv/ShatteredSelf.d.ts +2 -0
- package/build/data/campaigns/fhv/WilsonRichards.d.ts +2 -0
- package/build/data/campaigns/fhv/index.d.ts +2 -0
- package/build/data/campaigns/index.d.ts +2 -0
- package/build/data/campaigns/ptc/AkachiOnyele.d.ts +2 -0
- package/build/data/campaigns/ptc/LolaHayes.d.ts +2 -0
- package/build/data/campaigns/ptc/MarkHarrigan.d.ts +2 -0
- package/build/data/campaigns/ptc/MinhThiPhan.d.ts +2 -0
- package/build/data/campaigns/ptc/SefinaRousseau.d.ts +2 -0
- package/build/data/campaigns/ptc/WilliamYorick.d.ts +2 -0
- package/build/data/campaigns/ptc/index.d.ts +2 -0
- package/build/data/campaigns/tcu/CarolynFern.d.ts +2 -0
- package/build/data/campaigns/tcu/DianaStanley.d.ts +2 -0
- package/build/data/campaigns/tcu/GavriellaMizrah.d.ts +2 -0
- package/build/data/campaigns/tcu/JeromeDavids.d.ts +2 -0
- package/build/data/campaigns/tcu/JoeDiamond.d.ts +2 -0
- package/build/data/campaigns/tcu/MarieLambeau.d.ts +2 -0
- package/build/data/campaigns/tcu/PennyWhite.d.ts +2 -0
- package/build/data/campaigns/tcu/PrestonFairmont.d.ts +2 -0
- package/build/data/campaigns/tcu/RitaYoung.d.ts +2 -0
- package/build/data/campaigns/tcu/ValentinoRivas.d.ts +2 -0
- package/build/data/campaigns/tcu/index.d.ts +2 -0
- package/build/data/campaigns/tdc/GloriaGoldberg.d.ts +2 -0
- package/build/data/campaigns/tdc/index.d.ts +2 -0
- package/build/data/campaigns/tde/LukeRobinson.d.ts +2 -0
- package/build/data/campaigns/tde/MandyThompson.d.ts +2 -0
- package/build/data/campaigns/tde/PatriceHathaway.d.ts +2 -0
- package/build/data/campaigns/tde/TommyMuldoon.d.ts +2 -0
- package/build/data/campaigns/tde/TonyMorgan.d.ts +2 -0
- package/build/data/campaigns/tde/index.d.ts +2 -0
- package/build/data/campaigns/tfa/CalvinWright.d.ts +2 -0
- package/build/data/campaigns/tfa/FatherMateo.d.ts +2 -0
- package/build/data/campaigns/tfa/FinnEdwards.d.ts +2 -0
- package/build/data/campaigns/tfa/LeoAnderson.d.ts +2 -0
- package/build/data/campaigns/tfa/UrsulaDowns.d.ts +2 -0
- package/build/data/campaigns/tfa/YithianBody.d.ts +2 -0
- package/build/data/campaigns/tfa/index.d.ts +2 -0
- package/build/data/campaigns/tic/AmandaSharpe.d.ts +2 -0
- package/build/data/campaigns/tic/DexterDrake.d.ts +2 -0
- package/build/data/campaigns/tic/SilasMarsh.d.ts +2 -0
- package/build/data/campaigns/tic/SisterMary.d.ts +2 -0
- package/build/data/campaigns/tic/TrishScarborough.d.ts +2 -0
- package/build/data/campaigns/tic/index.d.ts +2 -0
- package/build/data/campaigns/tsk/AminaZidane.d.ts +2 -0
- package/build/data/campaigns/tsk/CarsonSinclair.d.ts +2 -0
- package/build/data/campaigns/tsk/CharlieKane.d.ts +2 -0
- package/build/data/campaigns/tsk/DarrellSimmons.d.ts +2 -0
- package/build/data/campaigns/tsk/KymaniJones.d.ts +2 -0
- package/build/data/campaigns/tsk/VincentLee.d.ts +2 -0
- package/build/data/campaigns/tsk/index.d.ts +2 -0
- package/build/data/custom/campaigns/index.d.ts +2 -0
- package/build/data/custom/campaigns/zaw/AliceLiddell.d.ts +5 -0
- package/build/data/custom/campaigns/zaw/index.d.ts +2 -0
- package/build/data/custom/campaigns/zgoo/AkiraArisato.d.ts +3 -0
- package/build/data/custom/campaigns/zgoo/HidekiHonda.d.ts +2 -0
- package/build/data/custom/campaigns/zgoo/MakotoMiyazaki.d.ts +2 -0
- package/build/data/custom/campaigns/zgoo/SakuraSanada.d.ts +2 -0
- package/build/data/custom/campaigns/zgoo/YukiYagami.d.ts +2 -0
- package/build/data/custom/campaigns/zgoo/index.d.ts +2 -0
- package/build/data/custom/campaigns/zhod/JulianHerbert.d.ts +2 -0
- package/build/data/custom/campaigns/zhod/index.d.ts +2 -0
- package/build/data/custom/index.d.ts +2 -0
- package/build/data/custom/side/index.d.ts +2 -0
- package/build/data/custom/side/zez/IsabelLaFratta.d.ts +2 -0
- package/build/data/custom/side/zez/index.d.ts +2 -0
- package/build/data/custom/side/zinv/index.d.ts +2 -0
- package/build/data/custom/side/zinv/zci/TheInsane.d.ts +2 -0
- package/build/data/custom/side/zinv/zci/index.d.ts +2 -0
- package/build/data/custom/side/zinv/zoc/LuciaDeveraux.d.ts +2 -0
- package/build/data/custom/side/zinv/zoc/MelissaSwanson.d.ts +2 -0
- package/build/data/custom/side/zinv/zoc/RichardCarlisle.d.ts +2 -0
- package/build/data/custom/side/zinv/zoc/RodneyDorman.d.ts +2 -0
- package/build/data/custom/side/zinv/zoc/SampsonWelch.d.ts +2 -0
- package/build/data/custom/side/zinv/zoc/WalterCrankovitch.d.ts +2 -0
- package/build/data/custom/side/zinv/zoc/index.d.ts +2 -0
- package/build/data/custom/side/zinv/zsti/AnnaAnderson.d.ts +2 -0
- package/build/data/custom/side/zinv/zsti/AntonPavel.d.ts +2 -0
- package/build/data/custom/side/zinv/zsti/AstridLee.d.ts +2 -0
- package/build/data/custom/side/zinv/zsti/EdmundMoore.d.ts +2 -0
- package/build/data/custom/side/zinv/zsti/EuniceGolding.d.ts +2 -0
- package/build/data/custom/side/zinv/zsti/HoseaMayhew.d.ts +2 -0
- package/build/data/custom/side/zinv/zsti/ObiLaveau.d.ts +2 -0
- package/build/data/custom/side/zinv/zsti/SadieGodfrey.d.ts +2 -0
- package/build/data/custom/side/zinv/zsti/index.d.ts +2 -0
- package/build/data/custom/side/zjc/IsabelleBarnes.d.ts +2 -0
- package/build/data/custom/side/zjc/index.d.ts +2 -0
- package/build/data/decks/HarveyWalters.d.ts +2 -0
- package/build/data/decks/JacquelineFine.d.ts +2 -0
- package/build/data/decks/NathanielCho.d.ts +2 -0
- package/build/data/decks/StellaClark.d.ts +2 -0
- package/build/data/decks/WinifredHabbamock.d.ts +2 -0
- package/build/data/decks/index.d.ts +2 -0
- package/build/data/index.d.ts +2 -0
- package/build/data/side/blbe/Subject5U21.d.ts +2 -0
- package/build/data/side/blbe/index.d.ts +2 -0
- package/build/data/side/index.d.ts +2 -0
- package/build/data/side/zbh/BarkHarrigan.d.ts +2 -0
- package/build/data/side/zbh/Duke.d.ts +2 -0
- package/build/data/side/zbh/JacquelineCanine.d.ts +2 -0
- package/build/data/side/zbh/KateWinthpup.d.ts +2 -0
- package/build/data/side/zbh/SkidsODrool.d.ts +2 -0
- package/build/data/side/zbh/index.d.ts +2 -0
- package/build/environment.d.ts +1 -0
- package/build/features/googleDrive/getGoogleDriveFile.d.ts +7 -0
- package/build/features/googleDrive/getGoogleDriveFolderContents.d.ts +2 -0
- package/build/features/googleDrive/getGoogleDriveService.d.ts +2 -0
- package/build/features/googleDrive/index.d.ts +2 -0
- package/build/features/index.d.ts +2 -0
- package/build/features/util/fs.d.ts +21 -0
- package/build/features/util/index.d.ts +2 -0
- package/build/features/util/promise.d.ts +2 -0
- package/build/index.d.ts +1 -0
- package/build/model/common.d.ts +7 -0
- package/build/model/dimensions.d.ts +4 -0
- package/build/model/game.d.ts +52 -0
- package/build/model/index.d.ts +3 -0
- package/build/tasks/createImageCache.d.ts +3 -0
- package/build/tasks/createInvestigatorsCache.d.ts +1 -0
- package/build/tasks/index.d.ts +2 -0
- package/build/tasks/prepareDirectories.d.ts +1 -0
- package/build/types.d.ts +1 -0
- package/package.json +36 -0
- package/tsconfig.json +24 -0
package/.env.local
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
GOOGLE_DRIVE_FOLDER_ID="1tuUf1GSmKPAxxQcLFwSdhhwvVUALeLoz"
|
2
|
+
|
3
|
+
GOOGLE_SERVICE_ACCOUNT_CLIENT_EMAIL="arkhamesque-divider-downloader@arkhamesque-divider-data.iam.gserviceaccount.com"
|
4
|
+
GOOGLE_SERVICE_ACCOUNT_CLIENT_ID="116479079441559147073"
|
5
|
+
GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCXkC+trcEvLIAp\nOOW8vsMUoDvKR+1Q1vAVBfGdKuF9z6TsQS58N1l1Phiss/tgDQrrNZ5quTXeeNJQ\niaC1mChyMc/dC8uCqrUmPqjXZexI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gxQF\nFXJ7bbwSXJUjLeI7pWt/fE9Q81JdA9AN1iZO7iMcEm2d8OxeOgV9NkDIfQKBgFZZ\neK1twTUfUez542LBIX3/rM+dgVQ9sRx+AQMT8SWHqRgckuB3WIu41PN0ptAGVgXk\nOIQ/48vGqRsobub+cV0g6NYC2IYCxhv+KF6ZQG9Ln6sKPzlZhpkMyNkckzbDhxZT\nR5ctfno+7M6t+XcYKbgGEebbhgWXLwPqJwu9xDj7AoGAE2MME8AOWYUNV4gNycAG\nKs8wYm67Gm3LTLi7O5LET+ZXEbYwtnCIZSzoamwryFmP8MpRbcTWuulEaO7cbZax\nmIMVRVoZ3LIkQFXArFcPy3xChFer+VE3pF1lCSRiwu3eFToRD8E3gjb+8nQHW6js\n/DmYc/RFxMTSn5SK6KsgNyE=\n-----END PRIVATE KEY-----\n"
|
6
|
+
|
7
|
+
NODE_ENV=development
|
package/build/App.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import type { drive_v3 } from "@googleapis/drive";
|
3
|
+
import type { WriteStream } from "node:fs";
|
4
|
+
export declare type IGetGoogleDriveFileOptions = drive_v3.Schema$File & {
|
5
|
+
stream: WriteStream;
|
6
|
+
};
|
7
|
+
export declare const getGoogleDriveFile: ({ id, name, stream }: IGetGoogleDriveFileOptions) => Promise<unknown>;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export declare const createExistsChecker: ({ dir, extension, }: {
|
2
|
+
dir: string;
|
3
|
+
extension?: string;
|
4
|
+
}) => (name: string) => boolean;
|
5
|
+
export declare const createWriter: <T = string, D = string>({ dir, extension, serialize }: {
|
6
|
+
dir: string;
|
7
|
+
extension?: string;
|
8
|
+
serialize?: (data: D) => string;
|
9
|
+
}) => (name: T, data: D) => void;
|
10
|
+
export declare const createJSONWriter: (dir: string) => (name: string, data: object) => void;
|
11
|
+
export declare const createReader: <T = string, D = string>({ dir, extension, unserialize }: {
|
12
|
+
dir: string;
|
13
|
+
extension: string;
|
14
|
+
unserialize?: (data: string) => D;
|
15
|
+
}) => <R extends D>(name: T, defaultValue?: R) => R;
|
16
|
+
export declare const createJSONReader: (dir: string) => <R extends any>(name: string, defaultValue?: R) => R;
|
17
|
+
export declare const createFilenameResolver: (dir: string, extension: string) => (name: string) => string;
|
18
|
+
export declare const createJSONResolver: (dir: string) => (name: string) => string;
|
19
|
+
export declare const mkDir: (dir: string) => void;
|
20
|
+
export declare const rmDir: (dir: string) => void;
|
21
|
+
export declare const flattenDir: (dir: string, moveToDir?: string) => void;
|
package/build/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
import './environment';
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import type { Box } from "./dimensions";
|
2
|
+
export declare type Investigator = {
|
3
|
+
code: string;
|
4
|
+
previewId?: string;
|
5
|
+
variantName?: string;
|
6
|
+
image?: InvestigatorImage;
|
7
|
+
variants?: InvestigatorVariant[];
|
8
|
+
skins?: InvestigatorSkin[];
|
9
|
+
};
|
10
|
+
export declare type InvestigatorImageBox = Box & {
|
11
|
+
top: number;
|
12
|
+
left: number;
|
13
|
+
};
|
14
|
+
export declare type InvestigatorImageSource = Box & {
|
15
|
+
type: 'mini' | 'full';
|
16
|
+
id: string;
|
17
|
+
};
|
18
|
+
export declare type InvestigatorImageMedia = InvestigatorImageBox & {
|
19
|
+
source?: InvestigatorImageSource;
|
20
|
+
};
|
21
|
+
export declare type InvestigatorImage = Box & {
|
22
|
+
id?: string;
|
23
|
+
media?: InvestigatorImageMedia[];
|
24
|
+
};
|
25
|
+
export declare type InvestigatorSkin = {
|
26
|
+
id: string;
|
27
|
+
name: string;
|
28
|
+
image: InvestigatorImage;
|
29
|
+
};
|
30
|
+
export declare type InvestigatorVariant = InvestigatorVariantIdentity & {
|
31
|
+
name: string;
|
32
|
+
};
|
33
|
+
export declare type InvestigatorVariantIdentity = InvestigatorVariantWithPack | InvestigatorCustomVariant;
|
34
|
+
export declare type InvestigatorCustomVariant = {
|
35
|
+
type: 'custom';
|
36
|
+
} & ({
|
37
|
+
code: string;
|
38
|
+
image?: InvestigatorImage;
|
39
|
+
} | {
|
40
|
+
id: string;
|
41
|
+
image: InvestigatorImage;
|
42
|
+
} | {
|
43
|
+
image: InvestigatorImage;
|
44
|
+
});
|
45
|
+
export declare type InvestigatorVariantWithPack = {
|
46
|
+
code: string;
|
47
|
+
} & ({
|
48
|
+
type: 'parallel';
|
49
|
+
} | {
|
50
|
+
type: 'book';
|
51
|
+
image: InvestigatorImage;
|
52
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const createInvestigatorsCache: () => Promise<void>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const prepareDirectories: () => Promise<void>;
|
package/build/types.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './model';
|
package/package.json
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
{
|
2
|
+
"name": "arkham-investigator-data",
|
3
|
+
"version": "1.0.2",
|
4
|
+
"main": "index.js",
|
5
|
+
"types": "build/types.d.ts",
|
6
|
+
"scripts": {
|
7
|
+
"start": "tsx ./src/index.ts",
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
9
|
+
"lint": "npx @biomejs/biome format --write ./src",
|
10
|
+
"build": "tsc && tsc-alias"
|
11
|
+
},
|
12
|
+
"repository": {
|
13
|
+
"type": "git",
|
14
|
+
"url": "git+https://github.com/neizerth/ArkhamInvestigatorData.git"
|
15
|
+
},
|
16
|
+
"author": "",
|
17
|
+
"license": "ISC",
|
18
|
+
"bugs": {
|
19
|
+
"url": "https://github.com/neizerth/ArkhamInvestigatorData/issues"
|
20
|
+
},
|
21
|
+
"homepage": "https://github.com/neizerth/ArkhamInvestigatorData#readme",
|
22
|
+
"description": "",
|
23
|
+
"devDependencies": {
|
24
|
+
"@biomejs/biome": "^1.9.4",
|
25
|
+
"@types/decompress": "^4.2.7",
|
26
|
+
"@types/node": "^22.13.1",
|
27
|
+
"http-server": "^14.1.1",
|
28
|
+
"tsx": "^4.19.2"
|
29
|
+
},
|
30
|
+
"dependencies": {
|
31
|
+
"@googleapis/drive": "^8.14.0",
|
32
|
+
"decompress": "^4.2.1",
|
33
|
+
"dotenv": "^16.4.7",
|
34
|
+
"tsc-alias": "^1.8.10"
|
35
|
+
}
|
36
|
+
}
|
package/tsconfig.json
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"target": "ESNext",
|
4
|
+
"module": "ESNext",
|
5
|
+
"declaration": true,
|
6
|
+
// "skipLibCheck": true,
|
7
|
+
"moduleResolution": "Node",
|
8
|
+
// "allowImportingTsExtensions": true,
|
9
|
+
"emitDeclarationOnly": true,
|
10
|
+
// "noEmit": true,
|
11
|
+
"resolveJsonModule": true,
|
12
|
+
"esModuleInterop": true,
|
13
|
+
"paths": {
|
14
|
+
"@/*": [
|
15
|
+
"./src/*"
|
16
|
+
]
|
17
|
+
},
|
18
|
+
"outDir": "./build"
|
19
|
+
},
|
20
|
+
"exclude": [ "node_modules" ],
|
21
|
+
"include": [
|
22
|
+
"./src/**/*"
|
23
|
+
],
|
24
|
+
}
|