@lycoristech/azurdata 0.0.1
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/LICENSE +25 -0
- package/README.md +123 -0
- package/data/.gitkeep +0 -0
- package/data/id-map.json +3530 -0
- package/data/ship-list.json +4478 -0
- package/data/ships.json +143282 -0
- package/data/version.json +5 -0
- package/dist/cjs/client/AzurData.js +69 -0
- package/dist/cjs/client/fetcher.js +121 -0
- package/dist/cjs/client/index.js +7 -0
- package/dist/cjs/client/ships.js +80 -0
- package/dist/cjs/config.js +14 -0
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/ingest/files.js +134 -0
- package/dist/cjs/ingest/index.js +18 -0
- package/dist/cjs/ingest/upstream.js +12 -0
- package/dist/cjs/normalize/construction.js +186 -0
- package/dist/cjs/normalize/identity.js +131 -0
- package/dist/cjs/normalize/index.js +25 -0
- package/dist/cjs/normalize/misc.js +31 -0
- package/dist/cjs/normalize/retrofit.js +21 -0
- package/dist/cjs/normalize/ship.js +406 -0
- package/dist/cjs/normalize/skills.js +194 -0
- package/dist/cjs/normalize/skins.js +141 -0
- package/dist/cjs/normalize/slots.js +35 -0
- package/dist/cjs/normalize/stats.js +182 -0
- package/dist/cjs/output/index.js +20 -0
- package/dist/cjs/output/writeIdMap.js +52 -0
- package/dist/cjs/output/writeShipList.js +31 -0
- package/dist/cjs/output/writeShips.js +33 -0
- package/dist/cjs/output/writeVersion.js +23 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/schema/output/index.js +17 -0
- package/dist/cjs/schema/output/ship.js +169 -0
- package/dist/cjs/schema/raw/attributeInfoByType.js +11 -0
- package/dist/cjs/schema/raw/equipDataByType.js +12 -0
- package/dist/cjs/schema/raw/fleetTechGroup.js +10 -0
- package/dist/cjs/schema/raw/fleetTechShipClass.js +15 -0
- package/dist/cjs/schema/raw/fleetTechShipTemplate.js +20 -0
- package/dist/cjs/schema/raw/index.js +38 -0
- package/dist/cjs/schema/raw/shipDataBlueprint.js +11 -0
- package/dist/cjs/schema/raw/shipDataBreakout.js +17 -0
- package/dist/cjs/schema/raw/shipDataByStar.js +10 -0
- package/dist/cjs/schema/raw/shipDataByType.js +13 -0
- package/dist/cjs/schema/raw/shipDataCreateExchange.js +10 -0
- package/dist/cjs/schema/raw/shipDataGroup.js +22 -0
- package/dist/cjs/schema/raw/shipDataStatistics.js +24 -0
- package/dist/cjs/schema/raw/shipDataStrengthen.js +12 -0
- package/dist/cjs/schema/raw/shipDataTemplate.js +26 -0
- package/dist/cjs/schema/raw/shipDataTrans.js +13 -0
- package/dist/cjs/schema/raw/shipSkinTemplate.js +23 -0
- package/dist/cjs/schema/raw/shipSkinWords.js +11 -0
- package/dist/cjs/schema/raw/shopTemplate.js +14 -0
- package/dist/cjs/schema/raw/skillDataDisplay.js +11 -0
- package/dist/cjs/schema/raw/skillDataTemplate.js +17 -0
- package/dist/cjs/schema/raw/transformDataTemplate.js +18 -0
- package/dist/cjs/schema/raw/voiceActorCn.js +11 -0
- package/dist/cjs/translate/enums.js +131 -0
- package/dist/cjs/translate/index.js +19 -0
- package/dist/cjs/translate/lookups.js +63 -0
- package/dist/cjs/translate/strings.js +98 -0
- package/dist/client/AzurData.d.ts +25 -0
- package/dist/client/AzurData.d.ts.map +1 -0
- package/dist/client/AzurData.js +63 -0
- package/dist/client/AzurData.js.map +1 -0
- package/dist/client/fetcher.d.ts +25 -0
- package/dist/client/fetcher.d.ts.map +1 -0
- package/dist/client/fetcher.js +116 -0
- package/dist/client/fetcher.js.map +1 -0
- package/dist/client/index.d.ts +4 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +3 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/ships.d.ts +20 -0
- package/dist/client/ships.d.ts.map +1 -0
- package/dist/client/ships.js +74 -0
- package/dist/client/ships.js.map +1 -0
- package/dist/config.d.ts +5 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +12 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/ingest/files.d.ts +25 -0
- package/dist/ingest/files.d.ts.map +1 -0
- package/dist/ingest/files.js +108 -0
- package/dist/ingest/files.js.map +1 -0
- package/dist/ingest/index.d.ts +3 -0
- package/dist/ingest/index.d.ts.map +1 -0
- package/dist/ingest/index.js +3 -0
- package/dist/ingest/index.js.map +1 -0
- package/dist/ingest/upstream.d.ts +4 -0
- package/dist/ingest/upstream.d.ts.map +1 -0
- package/dist/ingest/upstream.js +6 -0
- package/dist/ingest/upstream.js.map +1 -0
- package/dist/normalize/construction.d.ts +30 -0
- package/dist/normalize/construction.d.ts.map +1 -0
- package/dist/normalize/construction.js +184 -0
- package/dist/normalize/construction.js.map +1 -0
- package/dist/normalize/identity.d.ts +47 -0
- package/dist/normalize/identity.d.ts.map +1 -0
- package/dist/normalize/identity.js +129 -0
- package/dist/normalize/identity.js.map +1 -0
- package/dist/normalize/index.d.ts +10 -0
- package/dist/normalize/index.d.ts.map +1 -0
- package/dist/normalize/index.js +10 -0
- package/dist/normalize/index.js.map +1 -0
- package/dist/normalize/misc.d.ts +15 -0
- package/dist/normalize/misc.d.ts.map +1 -0
- package/dist/normalize/misc.js +29 -0
- package/dist/normalize/misc.js.map +1 -0
- package/dist/normalize/retrofit.d.ts +14 -0
- package/dist/normalize/retrofit.d.ts.map +1 -0
- package/dist/normalize/retrofit.js +19 -0
- package/dist/normalize/retrofit.js.map +1 -0
- package/dist/normalize/ship.d.ts +67 -0
- package/dist/normalize/ship.d.ts.map +1 -0
- package/dist/normalize/ship.js +369 -0
- package/dist/normalize/ship.js.map +1 -0
- package/dist/normalize/skills.d.ts +20 -0
- package/dist/normalize/skills.d.ts.map +1 -0
- package/dist/normalize/skills.js +192 -0
- package/dist/normalize/skills.js.map +1 -0
- package/dist/normalize/skins.d.ts +14 -0
- package/dist/normalize/skins.d.ts.map +1 -0
- package/dist/normalize/skins.js +139 -0
- package/dist/normalize/skins.js.map +1 -0
- package/dist/normalize/slots.d.ts +14 -0
- package/dist/normalize/slots.d.ts.map +1 -0
- package/dist/normalize/slots.js +33 -0
- package/dist/normalize/slots.js.map +1 -0
- package/dist/normalize/stats.d.ts +19 -0
- package/dist/normalize/stats.d.ts.map +1 -0
- package/dist/normalize/stats.js +180 -0
- package/dist/normalize/stats.js.map +1 -0
- package/dist/output/index.d.ts +5 -0
- package/dist/output/index.d.ts.map +1 -0
- package/dist/output/index.js +5 -0
- package/dist/output/index.js.map +1 -0
- package/dist/output/writeIdMap.d.ts +16 -0
- package/dist/output/writeIdMap.d.ts.map +1 -0
- package/dist/output/writeIdMap.js +47 -0
- package/dist/output/writeIdMap.js.map +1 -0
- package/dist/output/writeShipList.d.ts +9 -0
- package/dist/output/writeShipList.d.ts.map +1 -0
- package/dist/output/writeShipList.js +26 -0
- package/dist/output/writeShipList.js.map +1 -0
- package/dist/output/writeShips.d.ts +15 -0
- package/dist/output/writeShips.d.ts.map +1 -0
- package/dist/output/writeShips.js +28 -0
- package/dist/output/writeShips.js.map +1 -0
- package/dist/output/writeVersion.d.ts +11 -0
- package/dist/output/writeVersion.d.ts.map +1 -0
- package/dist/output/writeVersion.js +18 -0
- package/dist/output/writeVersion.js.map +1 -0
- package/dist/schema/output/index.d.ts +2 -0
- package/dist/schema/output/index.d.ts.map +1 -0
- package/dist/schema/output/index.js +2 -0
- package/dist/schema/output/index.js.map +1 -0
- package/dist/schema/output/ship.d.ts +977 -0
- package/dist/schema/output/ship.d.ts.map +1 -0
- package/dist/schema/output/ship.js +167 -0
- package/dist/schema/output/ship.js.map +1 -0
- package/dist/schema/raw/attributeInfoByType.d.ts +25 -0
- package/dist/schema/raw/attributeInfoByType.d.ts.map +1 -0
- package/dist/schema/raw/attributeInfoByType.js +9 -0
- package/dist/schema/raw/attributeInfoByType.js.map +1 -0
- package/dist/schema/raw/equipDataByType.d.ts +31 -0
- package/dist/schema/raw/equipDataByType.d.ts.map +1 -0
- package/dist/schema/raw/equipDataByType.js +10 -0
- package/dist/schema/raw/equipDataByType.js.map +1 -0
- package/dist/schema/raw/fleetTechGroup.d.ts +19 -0
- package/dist/schema/raw/fleetTechGroup.d.ts.map +1 -0
- package/dist/schema/raw/fleetTechGroup.js +8 -0
- package/dist/schema/raw/fleetTechGroup.js.map +1 -0
- package/dist/schema/raw/fleetTechShipClass.d.ts +49 -0
- package/dist/schema/raw/fleetTechShipClass.d.ts.map +1 -0
- package/dist/schema/raw/fleetTechShipClass.js +13 -0
- package/dist/schema/raw/fleetTechShipClass.js.map +1 -0
- package/dist/schema/raw/fleetTechShipTemplate.d.ts +79 -0
- package/dist/schema/raw/fleetTechShipTemplate.d.ts.map +1 -0
- package/dist/schema/raw/fleetTechShipTemplate.js +18 -0
- package/dist/schema/raw/fleetTechShipTemplate.js.map +1 -0
- package/dist/schema/raw/index.d.ts +23 -0
- package/dist/schema/raw/index.d.ts.map +1 -0
- package/dist/schema/raw/index.js +23 -0
- package/dist/schema/raw/index.js.map +1 -0
- package/dist/schema/raw/shipDataBlueprint.d.ts +25 -0
- package/dist/schema/raw/shipDataBlueprint.d.ts.map +1 -0
- package/dist/schema/raw/shipDataBlueprint.js +9 -0
- package/dist/schema/raw/shipDataBlueprint.js.map +1 -0
- package/dist/schema/raw/shipDataBreakout.d.ts +61 -0
- package/dist/schema/raw/shipDataBreakout.d.ts.map +1 -0
- package/dist/schema/raw/shipDataBreakout.js +15 -0
- package/dist/schema/raw/shipDataBreakout.js.map +1 -0
- package/dist/schema/raw/shipDataByStar.d.ts +19 -0
- package/dist/schema/raw/shipDataByStar.d.ts.map +1 -0
- package/dist/schema/raw/shipDataByStar.js +8 -0
- package/dist/schema/raw/shipDataByStar.js.map +1 -0
- package/dist/schema/raw/shipDataByType.d.ts +37 -0
- package/dist/schema/raw/shipDataByType.d.ts.map +1 -0
- package/dist/schema/raw/shipDataByType.js +11 -0
- package/dist/schema/raw/shipDataByType.js.map +1 -0
- package/dist/schema/raw/shipDataCreateExchange.d.ts +19 -0
- package/dist/schema/raw/shipDataCreateExchange.d.ts.map +1 -0
- package/dist/schema/raw/shipDataCreateExchange.js +8 -0
- package/dist/schema/raw/shipDataCreateExchange.js.map +1 -0
- package/dist/schema/raw/shipDataGroup.d.ts +79 -0
- package/dist/schema/raw/shipDataGroup.d.ts.map +1 -0
- package/dist/schema/raw/shipDataGroup.js +20 -0
- package/dist/schema/raw/shipDataGroup.js.map +1 -0
- package/dist/schema/raw/shipDataStatistics.d.ts +103 -0
- package/dist/schema/raw/shipDataStatistics.d.ts.map +1 -0
- package/dist/schema/raw/shipDataStatistics.js +22 -0
- package/dist/schema/raw/shipDataStatistics.js.map +1 -0
- package/dist/schema/raw/shipDataStrengthen.d.ts +31 -0
- package/dist/schema/raw/shipDataStrengthen.d.ts.map +1 -0
- package/dist/schema/raw/shipDataStrengthen.js +10 -0
- package/dist/schema/raw/shipDataStrengthen.js.map +1 -0
- package/dist/schema/raw/shipDataTemplate.d.ts +115 -0
- package/dist/schema/raw/shipDataTemplate.d.ts.map +1 -0
- package/dist/schema/raw/shipDataTemplate.js +24 -0
- package/dist/schema/raw/shipDataTemplate.js.map +1 -0
- package/dist/schema/raw/shipDataTrans.d.ts +37 -0
- package/dist/schema/raw/shipDataTrans.d.ts.map +1 -0
- package/dist/schema/raw/shipDataTrans.js +11 -0
- package/dist/schema/raw/shipDataTrans.js.map +1 -0
- package/dist/schema/raw/shipSkinTemplate.d.ts +97 -0
- package/dist/schema/raw/shipSkinTemplate.d.ts.map +1 -0
- package/dist/schema/raw/shipSkinTemplate.js +21 -0
- package/dist/schema/raw/shipSkinTemplate.js.map +1 -0
- package/dist/schema/raw/shipSkinWords.d.ts +25 -0
- package/dist/schema/raw/shipSkinWords.d.ts.map +1 -0
- package/dist/schema/raw/shipSkinWords.js +9 -0
- package/dist/schema/raw/shipSkinWords.js.map +1 -0
- package/dist/schema/raw/shopTemplate.d.ts +43 -0
- package/dist/schema/raw/shopTemplate.d.ts.map +1 -0
- package/dist/schema/raw/shopTemplate.js +12 -0
- package/dist/schema/raw/shopTemplate.js.map +1 -0
- package/dist/schema/raw/skillDataDisplay.d.ts +25 -0
- package/dist/schema/raw/skillDataDisplay.d.ts.map +1 -0
- package/dist/schema/raw/skillDataDisplay.js +9 -0
- package/dist/schema/raw/skillDataDisplay.js.map +1 -0
- package/dist/schema/raw/skillDataTemplate.d.ts +61 -0
- package/dist/schema/raw/skillDataTemplate.d.ts.map +1 -0
- package/dist/schema/raw/skillDataTemplate.js +15 -0
- package/dist/schema/raw/skillDataTemplate.js.map +1 -0
- package/dist/schema/raw/transformDataTemplate.d.ts +67 -0
- package/dist/schema/raw/transformDataTemplate.d.ts.map +1 -0
- package/dist/schema/raw/transformDataTemplate.js +16 -0
- package/dist/schema/raw/transformDataTemplate.js.map +1 -0
- package/dist/schema/raw/voiceActorCn.d.ts +25 -0
- package/dist/schema/raw/voiceActorCn.d.ts.map +1 -0
- package/dist/schema/raw/voiceActorCn.js +9 -0
- package/dist/schema/raw/voiceActorCn.js.map +1 -0
- package/dist/translate/enums.d.ts +34 -0
- package/dist/translate/enums.d.ts.map +1 -0
- package/dist/translate/enums.js +126 -0
- package/dist/translate/enums.js.map +1 -0
- package/dist/translate/index.d.ts +4 -0
- package/dist/translate/index.d.ts.map +1 -0
- package/dist/translate/index.js +4 -0
- package/dist/translate/index.js.map +1 -0
- package/dist/translate/lookups.d.ts +37 -0
- package/dist/translate/lookups.d.ts.map +1 -0
- package/dist/translate/lookups.js +61 -0
- package/dist/translate/lookups.js.map +1 -0
- package/dist/translate/strings.d.ts +40 -0
- package/dist/translate/strings.d.ts.map +1 -0
- package/dist/translate/strings.js +92 -0
- package/dist/translate/strings.js.map +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.writeShips = writeShips;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
// writeShips
|
|
11
|
+
// ---------------------------------------------------------------------------
|
|
12
|
+
/**
|
|
13
|
+
* Serialize a Ship array to the historical AzurAPI dict format:
|
|
14
|
+
* { "077": {...Belfast...}, "20212": {...}, ... }
|
|
15
|
+
*
|
|
16
|
+
* Keyed by ship.id, sorted numerically for deterministic output.
|
|
17
|
+
*/
|
|
18
|
+
function writeShips(ships, options) {
|
|
19
|
+
const outputPath = options?.outputPath ?? "data/ships.json";
|
|
20
|
+
const pretty = options?.pretty !== false; // default true
|
|
21
|
+
// Convert array to dict keyed by id, sorted by id numerically
|
|
22
|
+
const sorted = [...ships].sort((a, b) => Number(a.id) - Number(b.id));
|
|
23
|
+
const dict = {};
|
|
24
|
+
for (const ship of sorted) {
|
|
25
|
+
dict[ship.id] = ship;
|
|
26
|
+
}
|
|
27
|
+
const json = pretty
|
|
28
|
+
? JSON.stringify(dict, null, 2)
|
|
29
|
+
: JSON.stringify(dict);
|
|
30
|
+
const dir = path_1.default.dirname(path_1.default.resolve(outputPath));
|
|
31
|
+
fs_1.default.mkdirSync(dir, { recursive: true });
|
|
32
|
+
fs_1.default.writeFileSync(outputPath, json, "utf-8");
|
|
33
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.writeVersion = writeVersion;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
/**
|
|
10
|
+
* Write a small version metadata file.
|
|
11
|
+
* Shape: { generatedAt: ISO8601, shipCount: number, schemaVersion: string }
|
|
12
|
+
*/
|
|
13
|
+
function writeVersion(shipCount, outputPath = "data/version.json") {
|
|
14
|
+
const info = {
|
|
15
|
+
generatedAt: new Date().toISOString(),
|
|
16
|
+
shipCount,
|
|
17
|
+
schemaVersion: "0.0.1",
|
|
18
|
+
};
|
|
19
|
+
const json = JSON.stringify(info, null, 2);
|
|
20
|
+
const dir = path_1.default.dirname(path_1.default.resolve(outputPath));
|
|
21
|
+
fs_1.default.mkdirSync(dir, { recursive: true });
|
|
22
|
+
fs_1.default.writeFileSync(outputPath, json, "utf-8");
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ship.js"), exports);
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdMapSchema = exports.ShipListEntrySchema = exports.ShipSchema = exports.StatBlockSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// ---------------------------------------------------------------------------
|
|
6
|
+
// StatBlock
|
|
7
|
+
// NOTE: "antiwar" is the AzurAPI field name for anti-air — preserve the typo
|
|
8
|
+
// for drop-in compatibility.
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
exports.StatBlockSchema = zod_1.z.object({
|
|
11
|
+
health: zod_1.z.number(),
|
|
12
|
+
firepower: zod_1.z.number(),
|
|
13
|
+
torpedo: zod_1.z.number(),
|
|
14
|
+
evasion: zod_1.z.number(),
|
|
15
|
+
antiwar: zod_1.z.number(), // anti-air; AzurAPI named it antiwar — kept for compat
|
|
16
|
+
aviation: zod_1.z.number(),
|
|
17
|
+
reload: zod_1.z.number(),
|
|
18
|
+
speed: zod_1.z.number(),
|
|
19
|
+
luck: zod_1.z.number(),
|
|
20
|
+
accuracy: zod_1.z.number(),
|
|
21
|
+
});
|
|
22
|
+
// ---------------------------------------------------------------------------
|
|
23
|
+
// Ship
|
|
24
|
+
// ---------------------------------------------------------------------------
|
|
25
|
+
exports.ShipSchema = zod_1.z.object({
|
|
26
|
+
id: zod_1.z.string(),
|
|
27
|
+
names: zod_1.z.object({
|
|
28
|
+
en: zod_1.z.string().optional(),
|
|
29
|
+
jp: zod_1.z.string().optional(),
|
|
30
|
+
cn: zod_1.z.string().optional(),
|
|
31
|
+
code: zod_1.z.string().optional(),
|
|
32
|
+
}),
|
|
33
|
+
rarity: zod_1.z.enum([
|
|
34
|
+
"Normal",
|
|
35
|
+
"Rare",
|
|
36
|
+
"Elite",
|
|
37
|
+
"Super Rare",
|
|
38
|
+
"Ultra Rare",
|
|
39
|
+
"Priority",
|
|
40
|
+
"Decisive",
|
|
41
|
+
]),
|
|
42
|
+
stars: zod_1.z.object({
|
|
43
|
+
stars: zod_1.z.string(),
|
|
44
|
+
value: zod_1.z.number(),
|
|
45
|
+
}),
|
|
46
|
+
thumbnail: zod_1.z.string(),
|
|
47
|
+
wikiUrl: zod_1.z.string().optional(),
|
|
48
|
+
class: zod_1.z.string(),
|
|
49
|
+
hullType: zod_1.z.string(),
|
|
50
|
+
nationality: zod_1.z.string(),
|
|
51
|
+
stats: zod_1.z.object({
|
|
52
|
+
level100: exports.StatBlockSchema,
|
|
53
|
+
level120: exports.StatBlockSchema,
|
|
54
|
+
level100Retrofit: exports.StatBlockSchema.optional(),
|
|
55
|
+
level120Retrofit: exports.StatBlockSchema.optional(),
|
|
56
|
+
}),
|
|
57
|
+
enhanceValue: zod_1.z.object({
|
|
58
|
+
firepower: zod_1.z.number(),
|
|
59
|
+
torpedo: zod_1.z.number(),
|
|
60
|
+
aviation: zod_1.z.number(),
|
|
61
|
+
reload: zod_1.z.number(),
|
|
62
|
+
}),
|
|
63
|
+
slots: zod_1.z.array(zod_1.z.object({
|
|
64
|
+
type: zod_1.z.string(),
|
|
65
|
+
minEfficiency: zod_1.z.number(),
|
|
66
|
+
maxEfficiency: zod_1.z.number(),
|
|
67
|
+
})),
|
|
68
|
+
skills: zod_1.z.array(zod_1.z.object({
|
|
69
|
+
color: zod_1.z.enum(["red", "pink", "gold", "yellow", "blue"]),
|
|
70
|
+
// `en` is required; additional language keys are allowed as strings
|
|
71
|
+
names: zod_1.z.object({ en: zod_1.z.string() }).catchall(zod_1.z.string()),
|
|
72
|
+
description: zod_1.z.string(),
|
|
73
|
+
})),
|
|
74
|
+
limitBreaks: zod_1.z.array(zod_1.z.array(zod_1.z.string())).optional(),
|
|
75
|
+
construction: zod_1.z
|
|
76
|
+
.object({
|
|
77
|
+
constructionTime: zod_1.z.string().optional(),
|
|
78
|
+
availableIn: zod_1.z
|
|
79
|
+
.object({
|
|
80
|
+
light: zod_1.z.boolean(),
|
|
81
|
+
heavy: zod_1.z.boolean(),
|
|
82
|
+
aviation: zod_1.z.boolean(),
|
|
83
|
+
limited: zod_1.z.boolean(),
|
|
84
|
+
exchange: zod_1.z.boolean(),
|
|
85
|
+
})
|
|
86
|
+
.optional(),
|
|
87
|
+
})
|
|
88
|
+
.optional(),
|
|
89
|
+
scrapValue: zod_1.z
|
|
90
|
+
.object({
|
|
91
|
+
coin: zod_1.z.number(),
|
|
92
|
+
oil: zod_1.z.number(),
|
|
93
|
+
medal: zod_1.z.number(),
|
|
94
|
+
})
|
|
95
|
+
.optional(),
|
|
96
|
+
fleetTech: zod_1.z
|
|
97
|
+
.object({
|
|
98
|
+
techPoints: zod_1.z.object({
|
|
99
|
+
collection: zod_1.z.number(),
|
|
100
|
+
maxLimitBreak: zod_1.z.number(),
|
|
101
|
+
maxLevel: zod_1.z.number(),
|
|
102
|
+
total: zod_1.z.number(),
|
|
103
|
+
}),
|
|
104
|
+
statsBonus: zod_1.z.object({
|
|
105
|
+
collection: zod_1.z
|
|
106
|
+
.object({
|
|
107
|
+
stat: zod_1.z.string(),
|
|
108
|
+
bonus: zod_1.z.number(),
|
|
109
|
+
applicable: zod_1.z.array(zod_1.z.string()),
|
|
110
|
+
})
|
|
111
|
+
.optional(),
|
|
112
|
+
maxLevel: zod_1.z
|
|
113
|
+
.object({
|
|
114
|
+
stat: zod_1.z.string(),
|
|
115
|
+
bonus: zod_1.z.number(),
|
|
116
|
+
applicable: zod_1.z.array(zod_1.z.string()),
|
|
117
|
+
})
|
|
118
|
+
.optional(),
|
|
119
|
+
}),
|
|
120
|
+
})
|
|
121
|
+
.optional(),
|
|
122
|
+
obtainedFrom: zod_1.z
|
|
123
|
+
.object({
|
|
124
|
+
fromMaps: zod_1.z.array(zod_1.z.string()).optional(),
|
|
125
|
+
obtainedFrom: zod_1.z.string().optional(),
|
|
126
|
+
})
|
|
127
|
+
.optional(),
|
|
128
|
+
retrofit: zod_1.z.boolean(),
|
|
129
|
+
retrofitHullType: zod_1.z.string().optional(),
|
|
130
|
+
misc: zod_1.z
|
|
131
|
+
.object({
|
|
132
|
+
artist: zod_1.z.object({ name: zod_1.z.string() }).optional(),
|
|
133
|
+
voice: zod_1.z.object({ name: zod_1.z.string() }).optional(),
|
|
134
|
+
})
|
|
135
|
+
.optional(),
|
|
136
|
+
skins: zod_1.z.array(zod_1.z.object({
|
|
137
|
+
name: zod_1.z.string(),
|
|
138
|
+
image: zod_1.z.string(),
|
|
139
|
+
images: zod_1.z.object({
|
|
140
|
+
default: zod_1.z.string().optional(),
|
|
141
|
+
censored: zod_1.z.string().optional(),
|
|
142
|
+
censored_nobg: zod_1.z.string().optional(),
|
|
143
|
+
uncensored: zod_1.z.string().optional(),
|
|
144
|
+
uncensored_nobg: zod_1.z.string().optional(),
|
|
145
|
+
background: zod_1.z.string().optional(),
|
|
146
|
+
}).optional(),
|
|
147
|
+
info: zod_1.z.object({
|
|
148
|
+
cost: zod_1.z.number().optional(),
|
|
149
|
+
obtainedFrom: zod_1.z.string().optional(),
|
|
150
|
+
live2dModel: zod_1.z.boolean().optional(),
|
|
151
|
+
enClient: zod_1.z.string().optional(),
|
|
152
|
+
}),
|
|
153
|
+
})),
|
|
154
|
+
// azurdata extension — optional so AzurAPI consumers can ignore it
|
|
155
|
+
isEnReleased: zod_1.z.boolean().optional(),
|
|
156
|
+
});
|
|
157
|
+
// ---------------------------------------------------------------------------
|
|
158
|
+
// ShipListEntry — minimal shape written to ship-list.json
|
|
159
|
+
// ---------------------------------------------------------------------------
|
|
160
|
+
exports.ShipListEntrySchema = zod_1.z.object({
|
|
161
|
+
id: zod_1.z.string(),
|
|
162
|
+
name: zod_1.z.string(),
|
|
163
|
+
hullType: zod_1.z.string(),
|
|
164
|
+
rarity: zod_1.z.string(),
|
|
165
|
+
});
|
|
166
|
+
// ---------------------------------------------------------------------------
|
|
167
|
+
// IdMapSchema — shape of id-map.json: { "Belfast": "077", "077": "077", … }
|
|
168
|
+
// ---------------------------------------------------------------------------
|
|
169
|
+
exports.IdMapSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.string());
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttributeInfoByTypeSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const attributeInfoByTypeValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
name: zod_1.z.string().optional(),
|
|
8
|
+
condition: zod_1.z.string().optional(),
|
|
9
|
+
})
|
|
10
|
+
.passthrough();
|
|
11
|
+
exports.AttributeInfoByTypeSchema = zod_1.z.record(zod_1.z.string(), attributeInfoByTypeValueSchema);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EquipDataByTypeSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const equipDataByTypeValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
type_name: zod_1.z.string(),
|
|
8
|
+
type_name2: zod_1.z.string().optional(),
|
|
9
|
+
compare_group: zod_1.z.unknown().optional(),
|
|
10
|
+
})
|
|
11
|
+
.passthrough();
|
|
12
|
+
exports.EquipDataByTypeSchema = zod_1.z.record(zod_1.z.string(), equipDataByTypeValueSchema);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FleetTechGroupSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const fleetTechGroupValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
name: zod_1.z.string(),
|
|
8
|
+
})
|
|
9
|
+
.passthrough();
|
|
10
|
+
exports.FleetTechGroupSchema = zod_1.z.record(zod_1.z.string(), fleetTechGroupValueSchema);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FleetTechShipClassSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const fleetTechShipClassValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
name: zod_1.z.string(),
|
|
8
|
+
nation: zod_1.z.number().optional(),
|
|
9
|
+
ships: zod_1.z.array(zod_1.z.number()).optional(),
|
|
10
|
+
shiptype: zod_1.z.number().optional(),
|
|
11
|
+
t_level: zod_1.z.number().optional(),
|
|
12
|
+
t_level_1: zod_1.z.number().optional(),
|
|
13
|
+
})
|
|
14
|
+
.passthrough();
|
|
15
|
+
exports.FleetTechShipClassSchema = zod_1.z.record(zod_1.z.string(), fleetTechShipClassValueSchema);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FleetTechShipTemplateSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const fleetTechShipTemplateValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
pt_get: zod_1.z.number(),
|
|
8
|
+
pt_level: zod_1.z.number(),
|
|
9
|
+
pt_upgrage: zod_1.z.number(),
|
|
10
|
+
add_get_attr: zod_1.z.number(),
|
|
11
|
+
add_get_shiptype: zod_1.z.array(zod_1.z.number()),
|
|
12
|
+
add_get_value: zod_1.z.number(),
|
|
13
|
+
add_level_attr: zod_1.z.number(),
|
|
14
|
+
add_level_shiptype: zod_1.z.array(zod_1.z.number()),
|
|
15
|
+
add_level_value: zod_1.z.number(),
|
|
16
|
+
class: zod_1.z.number(),
|
|
17
|
+
max_star: zod_1.z.number().optional(),
|
|
18
|
+
})
|
|
19
|
+
.passthrough();
|
|
20
|
+
exports.FleetTechShipTemplateSchema = zod_1.z.record(zod_1.z.string(), fleetTechShipTemplateValueSchema);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./shipDataTemplate.js"), exports);
|
|
18
|
+
__exportStar(require("./shipDataStatistics.js"), exports);
|
|
19
|
+
__exportStar(require("./shipDataBreakout.js"), exports);
|
|
20
|
+
__exportStar(require("./shipSkinWords.js"), exports);
|
|
21
|
+
__exportStar(require("./shipDataStrengthen.js"), exports);
|
|
22
|
+
__exportStar(require("./shipDataBlueprint.js"), exports);
|
|
23
|
+
__exportStar(require("./shipDataTrans.js"), exports);
|
|
24
|
+
__exportStar(require("./shipDataGroup.js"), exports);
|
|
25
|
+
__exportStar(require("./shipSkinTemplate.js"), exports);
|
|
26
|
+
__exportStar(require("./transformDataTemplate.js"), exports);
|
|
27
|
+
__exportStar(require("./fleetTechShipTemplate.js"), exports);
|
|
28
|
+
__exportStar(require("./fleetTechShipClass.js"), exports);
|
|
29
|
+
__exportStar(require("./fleetTechGroup.js"), exports);
|
|
30
|
+
__exportStar(require("./shipDataByType.js"), exports);
|
|
31
|
+
__exportStar(require("./shipDataByStar.js"), exports);
|
|
32
|
+
__exportStar(require("./skillDataTemplate.js"), exports);
|
|
33
|
+
__exportStar(require("./skillDataDisplay.js"), exports);
|
|
34
|
+
__exportStar(require("./shopTemplate.js"), exports);
|
|
35
|
+
__exportStar(require("./voiceActorCn.js"), exports);
|
|
36
|
+
__exportStar(require("./equipDataByType.js"), exports);
|
|
37
|
+
__exportStar(require("./shipDataCreateExchange.js"), exports);
|
|
38
|
+
__exportStar(require("./attributeInfoByType.js"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShipDataBlueprintSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shipDataBlueprintValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
name: zod_1.z.string().optional(),
|
|
8
|
+
blueprint_version: zod_1.z.number().optional(),
|
|
9
|
+
})
|
|
10
|
+
.passthrough();
|
|
11
|
+
exports.ShipDataBlueprintSchema = zod_1.z.record(zod_1.z.string(), shipDataBlueprintValueSchema);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShipDataBreakoutSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shipDataBreakoutValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
id: zod_1.z.number(),
|
|
8
|
+
breakout_id: zod_1.z.number(),
|
|
9
|
+
pre_id: zod_1.z.number(),
|
|
10
|
+
breakout_view: zod_1.z.string(),
|
|
11
|
+
level: zod_1.z.number(),
|
|
12
|
+
use_char: zod_1.z.union([zod_1.z.array(zod_1.z.number()), zod_1.z.number()]).optional(),
|
|
13
|
+
use_char_num: zod_1.z.union([zod_1.z.array(zod_1.z.number()), zod_1.z.number()]).optional(),
|
|
14
|
+
weapon_ids: zod_1.z.array(zod_1.z.number()).optional(),
|
|
15
|
+
})
|
|
16
|
+
.passthrough();
|
|
17
|
+
exports.ShipDataBreakoutSchema = zod_1.z.record(zod_1.z.string(), shipDataBreakoutValueSchema);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShipDataByStarSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shipDataByStarValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
destory_item: zod_1.z.array(zod_1.z.tuple([zod_1.z.number(), zod_1.z.number(), zod_1.z.number()])).optional(),
|
|
8
|
+
})
|
|
9
|
+
.passthrough();
|
|
10
|
+
exports.ShipDataByStarSchema = zod_1.z.record(zod_1.z.string(), shipDataByStarValueSchema);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShipDataByTypeSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shipDataByTypeValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
type_name: zod_1.z.string(),
|
|
8
|
+
team_type: zod_1.z.union([zod_1.z.number(), zod_1.z.string()]).optional(),
|
|
9
|
+
distory_resource_gold_ratio: zod_1.z.number().optional(),
|
|
10
|
+
fix_resource_gold: zod_1.z.number().optional(),
|
|
11
|
+
})
|
|
12
|
+
.passthrough();
|
|
13
|
+
exports.ShipDataByTypeSchema = zod_1.z.record(zod_1.z.string(), shipDataByTypeValueSchema);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShipDataCreateExchangeSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shipDataCreateExchangeValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
exchange_ship_id: zod_1.z.array(zod_1.z.number()).optional(),
|
|
8
|
+
})
|
|
9
|
+
.passthrough();
|
|
10
|
+
exports.ShipDataCreateExchangeSchema = zod_1.z.record(zod_1.z.string(), shipDataCreateExchangeValueSchema);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShipDataGroupSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shipDataGroupValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
code: zod_1.z.number(),
|
|
8
|
+
group_type: zod_1.z.number(),
|
|
9
|
+
type: zod_1.z.number(),
|
|
10
|
+
nationality: zod_1.z.number(),
|
|
11
|
+
description: zod_1.z
|
|
12
|
+
.array(zod_1.z.tuple([zod_1.z.string(), zod_1.z.unknown(), zod_1.z.number().optional()]))
|
|
13
|
+
.catch([]),
|
|
14
|
+
index_id: zod_1.z.number().optional(),
|
|
15
|
+
handbook_type: zod_1.z.number().optional(),
|
|
16
|
+
trans_type: zod_1.z.number().optional(),
|
|
17
|
+
trans_skin: zod_1.z.number().optional(),
|
|
18
|
+
trans_skill: zod_1.z.unknown().optional(),
|
|
19
|
+
trans_radar_chart: zod_1.z.unknown().optional(),
|
|
20
|
+
})
|
|
21
|
+
.passthrough();
|
|
22
|
+
exports.ShipDataGroupSchema = zod_1.z.record(zod_1.z.string(), shipDataGroupValueSchema);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShipDataStatisticsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shipDataStatisticsValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
name: zod_1.z.string(),
|
|
8
|
+
english_name: zod_1.z.string().optional(),
|
|
9
|
+
nationality: zod_1.z.number(),
|
|
10
|
+
rarity: zod_1.z.number(),
|
|
11
|
+
type: zod_1.z.number(),
|
|
12
|
+
star: zod_1.z.number(),
|
|
13
|
+
tag_list: zod_1.z.array(zod_1.z.string()).optional(),
|
|
14
|
+
attrs: zod_1.z.array(zod_1.z.number()),
|
|
15
|
+
attrs_growth: zod_1.z.array(zod_1.z.number()),
|
|
16
|
+
attrs_growth_extra: zod_1.z.array(zod_1.z.number()).optional(),
|
|
17
|
+
equipment_proficiency: zod_1.z.array(zod_1.z.number()),
|
|
18
|
+
skin_id: zod_1.z.number(),
|
|
19
|
+
armor_type: zod_1.z.number().optional(),
|
|
20
|
+
default_equip_list: zod_1.z.array(zod_1.z.number()).optional(),
|
|
21
|
+
fix_equip_list: zod_1.z.array(zod_1.z.number()).optional(),
|
|
22
|
+
})
|
|
23
|
+
.passthrough();
|
|
24
|
+
exports.ShipDataStatisticsSchema = zod_1.z.record(zod_1.z.string(), shipDataStatisticsValueSchema);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShipDataStrengthenSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shipDataStrengthenValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
durability: zod_1.z.array(zod_1.z.number()),
|
|
8
|
+
attr_exp: zod_1.z.array(zod_1.z.number()).optional(),
|
|
9
|
+
level_exp: zod_1.z.array(zod_1.z.number()).optional(),
|
|
10
|
+
})
|
|
11
|
+
.passthrough();
|
|
12
|
+
exports.ShipDataStrengthenSchema = zod_1.z.record(zod_1.z.string(), shipDataStrengthenValueSchema);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShipDataTemplateSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shipDataTemplateValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
id: zod_1.z.number(),
|
|
8
|
+
group_type: zod_1.z.number(),
|
|
9
|
+
strengthen_id: zod_1.z.number(),
|
|
10
|
+
type: zod_1.z.number(),
|
|
11
|
+
max_level: zod_1.z.number(),
|
|
12
|
+
star: zod_1.z.number(),
|
|
13
|
+
star_max: zod_1.z.number(),
|
|
14
|
+
equip_1: zod_1.z.array(zod_1.z.number()),
|
|
15
|
+
equip_2: zod_1.z.array(zod_1.z.number()),
|
|
16
|
+
equip_3: zod_1.z.array(zod_1.z.number()),
|
|
17
|
+
equip_4: zod_1.z.array(zod_1.z.number()).optional(),
|
|
18
|
+
equip_5: zod_1.z.array(zod_1.z.number()).optional(),
|
|
19
|
+
buff_list: zod_1.z.array(zod_1.z.number()),
|
|
20
|
+
buff_list_display: zod_1.z.array(zod_1.z.number()),
|
|
21
|
+
oil_at_start: zod_1.z.number().optional(),
|
|
22
|
+
oil_at_end: zod_1.z.number().optional(),
|
|
23
|
+
specific_type: zod_1.z.unknown().optional(),
|
|
24
|
+
})
|
|
25
|
+
.passthrough();
|
|
26
|
+
exports.ShipDataTemplateSchema = zod_1.z.record(zod_1.z.string(), shipDataTemplateValueSchema);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShipDataTransSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shipDataTransValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
group_id: zod_1.z.number(),
|
|
8
|
+
skill_id: zod_1.z.union([zod_1.z.number(), zod_1.z.array(zod_1.z.number())]),
|
|
9
|
+
skin_id: zod_1.z.union([zod_1.z.number(), zod_1.z.array(zod_1.z.number())]).optional(),
|
|
10
|
+
transform_list: zod_1.z.array(zod_1.z.array(zod_1.z.tuple([zod_1.z.number(), zod_1.z.number()]))),
|
|
11
|
+
})
|
|
12
|
+
.passthrough();
|
|
13
|
+
exports.ShipDataTransSchema = zod_1.z.record(zod_1.z.string(), shipDataTransValueSchema);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShipSkinTemplateSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shipSkinTemplateValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
name: zod_1.z.string(),
|
|
8
|
+
painting: zod_1.z.string(),
|
|
9
|
+
prefab: zod_1.z.string().optional(),
|
|
10
|
+
ship_group: zod_1.z.number(),
|
|
11
|
+
skin_type: zod_1.z.number(),
|
|
12
|
+
shop_id: zod_1.z.number().optional(),
|
|
13
|
+
illustrator: zod_1.z.number().optional(),
|
|
14
|
+
illustrator2: zod_1.z.number().optional(),
|
|
15
|
+
voice_actor: zod_1.z.number().optional(),
|
|
16
|
+
voice_actor_2: zod_1.z.number().optional(),
|
|
17
|
+
desc: zod_1.z.string().optional(),
|
|
18
|
+
tag: zod_1.z.unknown().optional(),
|
|
19
|
+
l2d_animations: zod_1.z.unknown().optional(),
|
|
20
|
+
group_index: zod_1.z.number().optional(),
|
|
21
|
+
})
|
|
22
|
+
.passthrough();
|
|
23
|
+
exports.ShipSkinTemplateSchema = zod_1.z.record(zod_1.z.string(), shipSkinTemplateValueSchema);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShipSkinWordsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shipSkinWordsValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
detail: zod_1.z.string().optional(),
|
|
8
|
+
drop_descrip: zod_1.z.string().optional(),
|
|
9
|
+
})
|
|
10
|
+
.passthrough();
|
|
11
|
+
exports.ShipSkinWordsSchema = zod_1.z.record(zod_1.z.string(), shipSkinWordsValueSchema);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShopTemplateSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shopTemplateValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
genre: zod_1.z.string().optional(),
|
|
8
|
+
effect_args: zod_1.z.unknown().optional(),
|
|
9
|
+
resource_num: zod_1.z.number().optional(),
|
|
10
|
+
resource_type: zod_1.z.number().optional(),
|
|
11
|
+
time: zod_1.z.union([zod_1.z.string(), zod_1.z.unknown()]).optional(),
|
|
12
|
+
})
|
|
13
|
+
.passthrough();
|
|
14
|
+
exports.ShopTemplateSchema = zod_1.z.record(zod_1.z.string(), shopTemplateValueSchema);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SkillDataDisplaySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const skillDataDisplayValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
name: zod_1.z.string().optional(),
|
|
8
|
+
id: zod_1.z.number().optional(),
|
|
9
|
+
})
|
|
10
|
+
.passthrough();
|
|
11
|
+
exports.SkillDataDisplaySchema = zod_1.z.record(zod_1.z.string(), skillDataDisplayValueSchema);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SkillDataTemplateSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const skillDataTemplateValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
name: zod_1.z.string().optional(),
|
|
8
|
+
desc: zod_1.z.string().optional(),
|
|
9
|
+
desc_add: zod_1.z.unknown().optional(),
|
|
10
|
+
desc_get: zod_1.z.string().optional(),
|
|
11
|
+
desc_get_add: zod_1.z.unknown().optional(),
|
|
12
|
+
max_level: zod_1.z.number().optional(),
|
|
13
|
+
type: zod_1.z.number().optional(),
|
|
14
|
+
world_death_mark: zod_1.z.unknown().optional(),
|
|
15
|
+
})
|
|
16
|
+
.passthrough();
|
|
17
|
+
exports.SkillDataTemplateSchema = zod_1.z.record(zod_1.z.string(), skillDataTemplateValueSchema);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransformDataTemplateSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const transformDataTemplateValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
name: zod_1.z.string().optional(),
|
|
8
|
+
icon: zod_1.z.string().optional(),
|
|
9
|
+
level_limit: zod_1.z.number().optional(),
|
|
10
|
+
star_limit: zod_1.z.number().optional(),
|
|
11
|
+
effect: zod_1.z.array(zod_1.z.record(zod_1.z.string(), zod_1.z.number())),
|
|
12
|
+
skill_id: zod_1.z.union([zod_1.z.number(), zod_1.z.array(zod_1.z.number())]).optional(),
|
|
13
|
+
use_gold: zod_1.z.number().optional(),
|
|
14
|
+
use_item: zod_1.z.unknown().optional(),
|
|
15
|
+
condition_id: zod_1.z.union([zod_1.z.number(), zod_1.z.array(zod_1.z.number())]).optional(),
|
|
16
|
+
})
|
|
17
|
+
.passthrough();
|
|
18
|
+
exports.TransformDataTemplateSchema = zod_1.z.record(zod_1.z.string(), transformDataTemplateValueSchema);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceActorCnSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const voiceActorCnValueSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
actor_name: zod_1.z.string().optional(),
|
|
8
|
+
code: zod_1.z.number().optional(),
|
|
9
|
+
})
|
|
10
|
+
.passthrough();
|
|
11
|
+
exports.VoiceActorCnSchema = zod_1.z.record(zod_1.z.string(), voiceActorCnValueSchema);
|