@optolith/database-schema 0.94.0 → 0.96.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.
- package/CHANGELOG.md +22 -0
- package/gen/types.d.ts +168 -17
- package/lib/cache/tradeSecrets.js +1 -0
- package/lib/main.js +1 -0
- package/lib/types/Locale.d.ts +1 -0
- package/lib/types/Locale.js +1 -0
- package/lib/types/Settings.d.ts +1 -0
- package/lib/types/Settings.js +5 -1
- package/lib/types/_Identifier.d.ts +1 -0
- package/lib/types/_Identifier.js +2 -0
- package/lib/types/_IdentifierGroup.d.ts +1 -0
- package/lib/types/_IdentifierGroup.js +2 -1
- package/lib/types/_Prerequisite.d.ts +24 -0
- package/lib/types/_Prerequisite.js +5 -1
- package/lib/types/equipment/EquipmentPackage.d.ts +1 -0
- package/lib/types/equipment/item/ArmorAccessory.d.ts +281 -0
- package/lib/types/equipment/item/ArmorAccessory.js +48 -0
- package/lib/types/equipment/item/Book.d.ts +74 -20
- package/lib/types/equipment/item/Book.js +60 -45
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +1 -0
- package/lib/types/prerequisites/PrerequisiteGroups.d.ts +9 -0
- package/lib/types/prerequisites/PrerequisiteGroups.js +9 -0
- package/lib/types/prerequisites/single/LanguagePrerequisite.d.ts +5 -0
- package/lib/types/prerequisites/single/LanguagePrerequisite.js +15 -0
- package/lib/types/prerequisites/single/ScriptPrerequisite.d.ts +4 -0
- package/lib/types/prerequisites/single/ScriptPrerequisite.js +11 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ import { CulturePrerequisite } from "./single/CulturePrerequisite.js";
|
|
|
7
7
|
import { EnergyPrerequisite } from "./single/EnergyPrerequisite.js";
|
|
8
8
|
import { EnhancementPrerequisite } from "./single/EnhancementPrerequisite.js";
|
|
9
9
|
import { InfluencePrerequisite } from "./single/InfluencePrerequisite.js";
|
|
10
|
+
import { LanguagePrerequisite } from "./single/LanguagePrerequisite.js";
|
|
10
11
|
import { PactPrerequisite } from "./single/PactPrerequisite.js";
|
|
11
12
|
import { PersonalityTraitPrerequisite } from "./single/PersonalityTraitPrerequisite.js";
|
|
12
13
|
import { PrimaryAttributePrerequisite } from "./single/PrimaryAttributePrerequisite.js";
|
|
@@ -17,6 +18,7 @@ import { RatedMinimumNumberPrerequisite } from "./single/RatedMinimumNumberPrere
|
|
|
17
18
|
import { RatedPrerequisite } from "./single/RatedPrerequisite.js";
|
|
18
19
|
import { RatedSumPrerequisite } from "./single/RatedSumPrerequisite.js";
|
|
19
20
|
import { RulePrerequisite } from "./single/RulePrerequisite.js";
|
|
21
|
+
import { ScriptPrerequisite } from "./single/ScriptPrerequisite.js";
|
|
20
22
|
import { SexPrerequisite } from "./single/SexPrerequisite.js";
|
|
21
23
|
import { SexualCharacteristicPrerequisite } from "./single/SexualCharacteristicPrerequisite.js";
|
|
22
24
|
import { SocialStatusPrerequisite } from "./single/SocialStatusPrerequisite.js";
|
|
@@ -176,6 +178,13 @@ export const EnhancementPrerequisiteGroup = DB.Enum(import.meta.url, {
|
|
|
176
178
|
Rated: DB.EnumCase({ type: DB.IncludeIdentifier(RatedPrerequisite) }),
|
|
177
179
|
}),
|
|
178
180
|
});
|
|
181
|
+
export const BookPrerequisiteGroup = DB.Enum(import.meta.url, {
|
|
182
|
+
name: "BookPrerequisiteGroup",
|
|
183
|
+
values: () => ({
|
|
184
|
+
Language: DB.EnumCase({ type: DB.IncludeIdentifier(LanguagePrerequisite) }),
|
|
185
|
+
Script: DB.EnumCase({ type: DB.IncludeIdentifier(ScriptPrerequisite) }),
|
|
186
|
+
}),
|
|
187
|
+
});
|
|
179
188
|
export const PreconditionGroup = DB.Enum(import.meta.url, {
|
|
180
189
|
name: "PreconditionGroup",
|
|
181
190
|
values: () => ({
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as DB from "tsondb/schema/dsl";
|
|
2
|
+
import { LanguageIdentifier } from "../../_Identifier.js";
|
|
3
|
+
export const LanguagePrerequisite = DB.TypeAlias(import.meta.url, {
|
|
4
|
+
name: "LanguagePrerequisite",
|
|
5
|
+
type: () => DB.Object({
|
|
6
|
+
id: DB.Required({
|
|
7
|
+
comment: "The language’s identifier.",
|
|
8
|
+
type: LanguageIdentifier(),
|
|
9
|
+
}),
|
|
10
|
+
level: DB.Required({
|
|
11
|
+
comment: "The required minimum level of the language.",
|
|
12
|
+
type: DB.Integer({ minimum: 1 }),
|
|
13
|
+
}),
|
|
14
|
+
}),
|
|
15
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as DB from "tsondb/schema/dsl";
|
|
2
|
+
import { ScriptIdentifier } from "../../_Identifier.js";
|
|
3
|
+
export const ScriptPrerequisite = DB.TypeAlias(import.meta.url, {
|
|
4
|
+
name: "ScriptPrerequisite",
|
|
5
|
+
type: () => DB.Object({
|
|
6
|
+
id: DB.Required({
|
|
7
|
+
comment: "The script’s identifier.",
|
|
8
|
+
type: ScriptIdentifier(),
|
|
9
|
+
}),
|
|
10
|
+
}),
|
|
11
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optolith/database-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.96.0",
|
|
4
4
|
"description": "Definitions and utilities for the flat-file database of Optolith, a character creation tool for the Pen and Paper RPG “The Dark Eye 5”, and its external integrations into other software.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tde",
|