optolith-database-schema 0.22.0 → 0.23.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/CHANGELOG.md +38 -0
- package/gen/types.d.ts +1303 -1180
- package/lib/types/Locale.d.ts +97 -133
- package/lib/types/Locale.js +147 -134
- package/lib/types/equipment/item/Animal.d.ts +1 -1
- package/lib/types/equipment/item/AnimalCare.d.ts +1 -1
- package/lib/types/equipment/item/Armor.d.ts +44 -0
- package/lib/types/equipment/item/Armor.js +9 -1
- package/lib/types/equipment/item/BandageOrRemedy.d.ts +45 -9
- package/lib/types/equipment/item/CeremonialItem.d.ts +45 -9
- package/lib/types/equipment/item/Clothes.d.ts +45 -9
- package/lib/types/equipment/item/Container.d.ts +45 -9
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +77 -20
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.js +5 -6
- package/lib/types/equipment/item/IlluminationLightSource.d.ts +45 -9
- package/lib/types/equipment/item/IlluminationRefillOrSupply.d.ts +45 -9
- package/lib/types/equipment/item/Jewelry.d.ts +1 -1
- package/lib/types/equipment/item/Laboratory.d.ts +1 -1
- package/lib/types/equipment/item/Liebesspielzeug.d.ts +45 -9
- package/lib/types/equipment/item/LuxuryGood.d.ts +45 -9
- package/lib/types/equipment/item/MagicalArtifact.d.ts +63 -21
- package/lib/types/equipment/item/MagicalArtifact.js +41 -3
- package/lib/types/equipment/item/MusicalInstrument.d.ts +48 -9
- package/lib/types/equipment/item/MusicalInstrument.js +5 -1
- package/lib/types/equipment/item/OrienteeringAid.d.ts +45 -9
- package/lib/types/equipment/item/Poison.d.ts +41 -5
- package/lib/types/equipment/item/Poison.js +33 -1
- package/lib/types/equipment/item/RopeOrChain.d.ts +45 -9
- package/lib/types/equipment/item/Stationery.d.ts +45 -9
- package/lib/types/equipment/item/ThievesTool.d.ts +45 -9
- package/lib/types/equipment/item/ToolOfTheTrade.d.ts +1 -1
- package/lib/types/equipment/item/TravelGearOrTool.d.ts +45 -9
- package/lib/types/equipment/item/Vehicle.d.ts +1 -1
- package/lib/types/equipment/item/Weapon.d.ts +105 -78
- package/lib/types/equipment/item/Weapon.js +8 -46
- package/lib/types/equipment/item/WeaponAccessory.d.ts +45 -9
- package/lib/types/equipment/item/_Item.d.ts +148 -29
- package/lib/types/equipment/item/_Item.js +94 -2
- package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +52 -0
- package/lib/types/specialAbility/CombatStyleSpecialAbility.js +2 -1
- package/lib/types/specialAbility/MagicalSign.d.ts +75 -40
- package/lib/types/specialAbility/MagicalSign.js +23 -2
- package/package.json +2 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Entity, IncludeIdentifier, Integer, Object } from "tsondb/schema/def";
|
|
1
|
+
import { Entity, Enum, EnumCase, IncludeIdentifier, Integer, Object, TypeAlias } from "tsondb/schema/def";
|
|
2
2
|
export declare const MagicalSign: Entity<"MagicalSign", {
|
|
3
|
-
prerequisites: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[],
|
|
3
|
+
prerequisites: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], TypeAlias<"GeneralPrerequisites", IncludeIdentifier<import("tsondb/schema/def").TypeParameter<string, import("tsondb/schema/def").Type>[], TypeAlias<"PrerequisitesForLevels", import("tsondb/schema/def").ArrayType<IncludeIdentifier<import("tsondb/schema/def").TypeParameter<string, import("tsondb/schema/def").Type>[], TypeAlias<"PrerequisiteForLevel", Object<{
|
|
4
4
|
level: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
5
|
-
prerequisite: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<import("tsondb/schema/def").TypeParameter<string, import("tsondb/schema/def").Type>[],
|
|
6
|
-
Single:
|
|
7
|
-
Disjunction:
|
|
5
|
+
prerequisite: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<import("tsondb/schema/def").TypeParameter<string, import("tsondb/schema/def").Type>[], Enum<"PrerequisitesElement", {
|
|
6
|
+
Single: EnumCase<import("tsondb/schema/def").TypeArgumentType<import("tsondb/schema/def").TypeParameter<"T", import("tsondb/schema/def").Type>>>;
|
|
7
|
+
Disjunction: EnumCase<IncludeIdentifier<import("tsondb/schema/def").TypeParameter<string, import("tsondb/schema/def").Type>[], TypeAlias<"PrerequisitesDisjunction", Object<{
|
|
8
8
|
list: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").ArrayType<import("tsondb/schema/def").TypeArgumentType<import("tsondb/schema/def").TypeParameter<"T", import("tsondb/schema/def").Type>>>, true>;
|
|
9
|
-
display_option: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[],
|
|
10
|
-
Hide:
|
|
11
|
-
ReplaceWith:
|
|
12
|
-
sentence_type: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[],
|
|
13
|
-
Standalone:
|
|
14
|
-
Connected:
|
|
9
|
+
display_option: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"DisplayOption", {
|
|
10
|
+
Hide: EnumCase<null>;
|
|
11
|
+
ReplaceWith: EnumCase<IncludeIdentifier<[], TypeAlias<"ReplacementDisplayOption", Object<{
|
|
12
|
+
sentence_type: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"SentenceType", {
|
|
13
|
+
Standalone: EnumCase<null>;
|
|
14
|
+
Connected: EnumCase<null>;
|
|
15
15
|
}, []>>, false>;
|
|
16
16
|
translations: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<"ReplacementDisplayOptionTranslation", {
|
|
17
17
|
replacement: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, true>;
|
|
@@ -19,7 +19,7 @@ export declare const MagicalSign: Entity<"MagicalSign", {
|
|
|
19
19
|
}>, []>>>;
|
|
20
20
|
}, []>>, false>;
|
|
21
21
|
}>, [T: import("tsondb/schema/def").TypeParameter<"T", import("tsondb/schema/def").Type>]>>>;
|
|
22
|
-
Group:
|
|
22
|
+
Group: EnumCase<IncludeIdentifier<import("tsondb/schema/def").TypeParameter<string, import("tsondb/schema/def").Type>[], TypeAlias<"PrerequisiteGroup", Object<{
|
|
23
23
|
list: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").ArrayType<import("tsondb/schema/def").TypeArgumentType<import("tsondb/schema/def").TypeParameter<"T", import("tsondb/schema/def").Type>>>, true>;
|
|
24
24
|
translations: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<"PrerequisiteGroupTranslation", {
|
|
25
25
|
text: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, true>;
|
|
@@ -27,47 +27,82 @@ export declare const MagicalSign: Entity<"MagicalSign", {
|
|
|
27
27
|
}>, [T: import("tsondb/schema/def").TypeParameter<"T", import("tsondb/schema/def").Type>]>>>;
|
|
28
28
|
}, [T: import("tsondb/schema/def").TypeParameter<"T", import("tsondb/schema/def").Type>]>>, true>;
|
|
29
29
|
}>, [T: import("tsondb/schema/def").TypeParameter<"T", import("tsondb/schema/def").Type>]>>>, [T: import("tsondb/schema/def").TypeParameter<"T", import("tsondb/schema/def").Type>]>>, []>>, false>;
|
|
30
|
-
cost: import("tsondb/schema/def").MemberDecl<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
cost: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"MagicalSignCost", {
|
|
31
|
+
Constant: EnumCase<IncludeIdentifier<[], TypeAlias<"ConstantMagicalSignCost", Object<{
|
|
32
|
+
value: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
33
|
+
permanent_value: import("tsondb/schema/def").MemberDecl<Integer, false>;
|
|
34
|
+
}>, []>>>;
|
|
35
|
+
Map: EnumCase<IncludeIdentifier<[], TypeAlias<"CostMap", Object<{
|
|
36
|
+
options: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").ArrayType<IncludeIdentifier<[], TypeAlias<"CostMapOption", Object<{
|
|
37
|
+
value: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
38
|
+
permanent_value: import("tsondb/schema/def").MemberDecl<Integer, false>;
|
|
39
|
+
translations: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<"CostMapOptionTranslation", {
|
|
40
|
+
label: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], TypeAlias<"ResponsiveTextOptional", Object<{
|
|
41
|
+
full: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, true>;
|
|
42
|
+
compressed: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, false>;
|
|
43
|
+
}>, []>>, true>;
|
|
44
|
+
label_standalone: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], TypeAlias<"ResponsiveTextOptional", Object<{
|
|
45
|
+
full: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, true>;
|
|
46
|
+
compressed: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, false>;
|
|
47
|
+
}>, []>>, false>;
|
|
48
|
+
}>, false>;
|
|
49
|
+
}>, []>>>, true>;
|
|
50
|
+
translations: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<"CostMapTranslation", {
|
|
51
|
+
list_prepend: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], TypeAlias<"ResponsiveTextOptional", Object<{
|
|
52
|
+
full: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, true>;
|
|
53
|
+
compressed: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, false>;
|
|
54
|
+
}>, []>>, false>;
|
|
55
|
+
list_append: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], TypeAlias<"ResponsiveTextOptional", Object<{
|
|
56
|
+
full: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, true>;
|
|
57
|
+
compressed: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, false>;
|
|
58
|
+
}>, []>>, false>;
|
|
59
|
+
replacement: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], TypeAlias<"ResponsiveTextOptional", Object<{
|
|
60
|
+
full: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, true>;
|
|
61
|
+
compressed: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, false>;
|
|
62
|
+
}>, []>>, false>;
|
|
63
|
+
}>, false>;
|
|
64
|
+
}>, []>>>;
|
|
65
|
+
}, []>>, false>;
|
|
66
|
+
property: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"PropertyDeclaration", {
|
|
67
|
+
DependingOnSelection: EnumCase<null>;
|
|
68
|
+
Fixed: EnumCase<import("tsondb/schema/def").ReferenceIdentifierType>;
|
|
34
69
|
}, []>>, false>;
|
|
35
70
|
ap_value: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
36
|
-
src: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[],
|
|
71
|
+
src: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], TypeAlias<"PublicationRefs", import("tsondb/schema/def").ArrayType<IncludeIdentifier<[], TypeAlias<"PublicationRef", Object<{
|
|
37
72
|
id: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").ReferenceIdentifierType, true>;
|
|
38
73
|
occurrences: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<string, {
|
|
39
|
-
initial: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[],
|
|
74
|
+
initial: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], TypeAlias<"InitialOccurrence", Object<{
|
|
40
75
|
printing: import("tsondb/schema/def").MemberDecl<Integer, false>;
|
|
41
|
-
pages: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").ArrayType<IncludeIdentifier<[],
|
|
42
|
-
first_page: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[],
|
|
43
|
-
InsideCoverFront:
|
|
44
|
-
InsideCoverBack:
|
|
45
|
-
Numbered:
|
|
76
|
+
pages: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").ArrayType<IncludeIdentifier<[], TypeAlias<"PageRange", Object<{
|
|
77
|
+
first_page: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"Page", {
|
|
78
|
+
InsideCoverFront: EnumCase<null>;
|
|
79
|
+
InsideCoverBack: EnumCase<null>;
|
|
80
|
+
Numbered: EnumCase<Integer>;
|
|
46
81
|
}, []>>, true>;
|
|
47
|
-
last_page: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[],
|
|
48
|
-
InsideCoverFront:
|
|
49
|
-
InsideCoverBack:
|
|
50
|
-
Numbered:
|
|
82
|
+
last_page: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"Page", {
|
|
83
|
+
InsideCoverFront: EnumCase<null>;
|
|
84
|
+
InsideCoverBack: EnumCase<null>;
|
|
85
|
+
Numbered: EnumCase<Integer>;
|
|
51
86
|
}, []>>, false>;
|
|
52
87
|
}>, []>>>, true>;
|
|
53
88
|
}>, []>>, true>;
|
|
54
|
-
revisions: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").ArrayType<IncludeIdentifier<[],
|
|
55
|
-
Since:
|
|
89
|
+
revisions: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").ArrayType<IncludeIdentifier<[], Enum<"Revision", {
|
|
90
|
+
Since: EnumCase<IncludeIdentifier<[], TypeAlias<"Since", Object<{
|
|
56
91
|
printing: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
57
|
-
pages: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").ArrayType<IncludeIdentifier<[],
|
|
58
|
-
first_page: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[],
|
|
59
|
-
InsideCoverFront:
|
|
60
|
-
InsideCoverBack:
|
|
61
|
-
Numbered:
|
|
92
|
+
pages: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").ArrayType<IncludeIdentifier<[], TypeAlias<"PageRange", Object<{
|
|
93
|
+
first_page: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"Page", {
|
|
94
|
+
InsideCoverFront: EnumCase<null>;
|
|
95
|
+
InsideCoverBack: EnumCase<null>;
|
|
96
|
+
Numbered: EnumCase<Integer>;
|
|
62
97
|
}, []>>, true>;
|
|
63
|
-
last_page: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[],
|
|
64
|
-
InsideCoverFront:
|
|
65
|
-
InsideCoverBack:
|
|
66
|
-
Numbered:
|
|
98
|
+
last_page: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"Page", {
|
|
99
|
+
InsideCoverFront: EnumCase<null>;
|
|
100
|
+
InsideCoverBack: EnumCase<null>;
|
|
101
|
+
Numbered: EnumCase<Integer>;
|
|
67
102
|
}, []>>, false>;
|
|
68
103
|
}>, []>>>, true>;
|
|
69
104
|
}>, []>>>;
|
|
70
|
-
Deprecated:
|
|
105
|
+
Deprecated: EnumCase<IncludeIdentifier<[], TypeAlias<"Deprecation", Object<{
|
|
71
106
|
printing: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
72
107
|
}>, []>>>;
|
|
73
108
|
}, []>>>, false>;
|
|
@@ -79,7 +114,7 @@ export declare const MagicalSign: Entity<"MagicalSign", {
|
|
|
79
114
|
effect: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, true>;
|
|
80
115
|
ap_value_append: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, false>;
|
|
81
116
|
ap_value: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, false>;
|
|
82
|
-
errata: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[],
|
|
117
|
+
errata: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], TypeAlias<"Errata", import("tsondb/schema/def").ArrayType<IncludeIdentifier<[], TypeAlias<"Erratum", Object<{
|
|
83
118
|
date: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").DateType, true>;
|
|
84
119
|
description: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").StringType, true>;
|
|
85
120
|
}>, []>>>, []>>, false>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Entity, IncludeIdentifier, Integer, Object, Optional, Required } from "tsondb/schema/def";
|
|
1
|
+
import { Entity, Enum, EnumCase, IncludeIdentifier, Integer, Object, Optional, Required, TypeAlias, } from "tsondb/schema/def";
|
|
2
2
|
import { effect, name, name_in_library } from "../_Activatable.js";
|
|
3
3
|
import { ap_value_append, ap_value_l10n } from "../_ActivatableAdventurePointsValue.js";
|
|
4
4
|
import { propertyOptional } from "../_ActivatableNonMundane.js";
|
|
5
|
+
import { CostMap } from "../_ActivatableSkillCost.js";
|
|
5
6
|
import { GeneralPrerequisites } from "../_Prerequisite.js";
|
|
6
7
|
import { NestedTranslationMap } from "../Locale.js";
|
|
7
8
|
import { Errata } from "../source/_Erratum.js";
|
|
@@ -15,7 +16,7 @@ export const MagicalSign = Entity(import.meta.url, {
|
|
|
15
16
|
}),
|
|
16
17
|
cost: Optional({
|
|
17
18
|
comment: "The cost in AE.",
|
|
18
|
-
type:
|
|
19
|
+
type: IncludeIdentifier(MagicalSignCost),
|
|
19
20
|
}),
|
|
20
21
|
property: propertyOptional(),
|
|
21
22
|
ap_value: Required({
|
|
@@ -36,3 +37,23 @@ export const MagicalSign = Entity(import.meta.url, {
|
|
|
36
37
|
}),
|
|
37
38
|
displayName: {},
|
|
38
39
|
});
|
|
40
|
+
const MagicalSignCost = Enum(import.meta.url, {
|
|
41
|
+
name: "MagicalSignCost",
|
|
42
|
+
values: () => ({
|
|
43
|
+
Constant: EnumCase({ type: IncludeIdentifier(ConstantMagicalSignCost) }),
|
|
44
|
+
Map: EnumCase({ type: IncludeIdentifier(CostMap) }),
|
|
45
|
+
}),
|
|
46
|
+
});
|
|
47
|
+
const ConstantMagicalSignCost = TypeAlias(import.meta.url, {
|
|
48
|
+
name: "ConstantMagicalSignCost",
|
|
49
|
+
type: () => Object({
|
|
50
|
+
value: Required({
|
|
51
|
+
comment: "The AE cost value.",
|
|
52
|
+
type: Integer({ minimum: 1 }),
|
|
53
|
+
}),
|
|
54
|
+
permanent_value: Optional({
|
|
55
|
+
comment: "The part of the cost value that has to be spent permanently.",
|
|
56
|
+
type: Integer({ minimum: 1 }),
|
|
57
|
+
}),
|
|
58
|
+
}),
|
|
59
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "optolith-database-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.1",
|
|
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",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"license": "MPL-2.0",
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@optolith/helpers": "^0.2.2",
|
|
44
|
-
"tsondb": "^0.12.
|
|
44
|
+
"tsondb": "^0.12.9",
|
|
45
45
|
"yaml": "^2.8.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|