optolith-database-schema 0.28.1 → 0.28.3
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 +10 -0
- package/gen/types.d.ts +5 -0
- package/lib/types/Advantage.d.ts +2 -0
- package/lib/types/AnimalDisease.d.ts +1 -0
- package/lib/types/Blessing.d.ts +1 -0
- package/lib/types/Cantrip.d.ts +1 -0
- package/lib/types/Ceremony.d.ts +2 -0
- package/lib/types/CombatTechnique.d.ts +2 -0
- package/lib/types/Condition.d.ts +1 -0
- package/lib/types/Culture.d.ts +1 -0
- package/lib/types/DerivedCharacteristic.d.ts +1 -0
- package/lib/types/Disadvantage.d.ts +2 -0
- package/lib/types/Disease.d.ts +1 -0
- package/lib/types/FamiliarsTrick.d.ts +1 -0
- package/lib/types/Lessons.d.ts +1 -0
- package/lib/types/LiturgicalChant.d.ts +2 -0
- package/lib/types/Locale.js +1 -0
- package/lib/types/MetaCondition.d.ts +1 -0
- package/lib/types/PactCategory.d.ts +1 -0
- package/lib/types/Patron.d.ts +1 -0
- package/lib/types/PersonalityTrait.d.ts +1 -0
- package/lib/types/Profession.d.ts +2 -0
- package/lib/types/Race.d.ts +1 -0
- package/lib/types/Race.js +1 -0
- package/lib/types/Ritual.d.ts +2 -0
- package/lib/types/Service.d.ts +1 -0
- package/lib/types/SexPractice.d.ts +1 -0
- package/lib/types/Skill.d.ts +1 -0
- package/lib/types/Spell.d.ts +2 -0
- package/lib/types/State.d.ts +1 -0
- package/lib/types/Talisman.d.ts +1 -0
- package/lib/types/Talisman.js +2 -0
- package/lib/types/_ActivatableSelectOptions.d.ts +2 -0
- package/lib/types/_Enhancements.d.ts +2 -0
- package/lib/types/_Influence.d.ts +1 -0
- package/lib/types/equipment/EquipmentPackage.d.ts +1 -0
- package/lib/types/equipment/item/Ammunition.d.ts +1 -0
- package/lib/types/equipment/item/Animal.d.ts +1 -0
- package/lib/types/equipment/item/AnimalCare.d.ts +1 -0
- package/lib/types/equipment/item/Armor.d.ts +1 -0
- package/lib/types/equipment/item/BandageOrRemedy.d.ts +1 -0
- package/lib/types/equipment/item/Book.d.ts +1 -0
- package/lib/types/equipment/item/CeremonialItem.d.ts +1 -0
- package/lib/types/equipment/item/Clothes.d.ts +1 -0
- package/lib/types/equipment/item/ClothingPackage.d.ts +1 -0
- package/lib/types/equipment/item/Container.d.ts +1 -0
- package/lib/types/equipment/item/Elixir.d.ts +1 -0
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +1 -0
- package/lib/types/equipment/item/GemOrPreciousStone.d.ts +1 -0
- package/lib/types/equipment/item/IlluminationLightSource.d.ts +1 -0
- package/lib/types/equipment/item/IlluminationRefillOrSupply.d.ts +1 -0
- package/lib/types/equipment/item/Jewelry.d.ts +1 -0
- package/lib/types/equipment/item/Laboratory.d.ts +1 -0
- package/lib/types/equipment/item/Liebesspielzeug.d.ts +1 -0
- package/lib/types/equipment/item/LuxuryGood.d.ts +1 -0
- package/lib/types/equipment/item/MagicalArtifact.d.ts +1 -0
- package/lib/types/equipment/item/MusicalInstrument.d.ts +1 -0
- package/lib/types/equipment/item/Newspaper.d.ts +1 -0
- package/lib/types/equipment/item/OrienteeringAid.d.ts +1 -0
- package/lib/types/equipment/item/Poison.d.ts +1 -0
- package/lib/types/equipment/item/RopeOrChain.d.ts +1 -0
- package/lib/types/equipment/item/Stationery.d.ts +1 -0
- package/lib/types/equipment/item/ThievesTool.d.ts +1 -0
- package/lib/types/equipment/item/ToolOfTheTrade.d.ts +1 -0
- package/lib/types/equipment/item/TravelGearOrTool.d.ts +1 -0
- package/lib/types/equipment/item/Vehicle.d.ts +1 -0
- package/lib/types/equipment/item/Weapon.d.ts +1 -0
- package/lib/types/equipment/item/Weapon.js +4 -0
- package/lib/types/equipment/item/WeaponAccessory.d.ts +1 -0
- package/lib/types/equipment/item/_Item.d.ts +1 -0
- package/lib/types/magicalActions/AnimistPower.d.ts +2 -0
- package/lib/types/magicalActions/Curse.d.ts +1 -0
- package/lib/types/magicalActions/DominationRitual.d.ts +1 -0
- package/lib/types/magicalActions/ElvenMagicalSong.d.ts +1 -0
- package/lib/types/magicalActions/GeodeRitual.d.ts +1 -0
- package/lib/types/magicalActions/JesterTrick.d.ts +1 -0
- package/lib/types/magicalActions/MagicalDance.d.ts +1 -0
- package/lib/types/magicalActions/MagicalMelody.d.ts +1 -0
- package/lib/types/magicalActions/MagicalRune.d.ts +1 -0
- package/lib/types/magicalActions/ZibiljaRitual.d.ts +1 -0
- package/lib/types/rule/AlternativeRule.d.ts +1 -0
- package/lib/types/rule/CoreRule.d.ts +1 -0
- package/lib/types/rule/FocusRule.d.ts +1 -0
- package/lib/types/rule/OptionalRule.d.ts +1 -0
- package/lib/types/source/_PublicationRef.d.ts +4 -0
- package/lib/types/source/_PublicationRef.js +6 -2
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/AncestorGlyph.d.ts +2 -0
- package/lib/types/specialAbility/BlessedTradition.d.ts +2 -0
- package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/CombatSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/CommandSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/FamiliarSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/FatePointSexSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/FatePointSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/GeneralSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/KarmaSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/LycantropicGift.d.ts +2 -0
- package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/MagicalSign.d.ts +1 -0
- package/lib/types/specialAbility/MagicalSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/MagicalTradition.d.ts +2 -0
- package/lib/types/specialAbility/PactGift.d.ts +2 -0
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/Sermon.d.ts +2 -0
- package/lib/types/specialAbility/SexSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +2 -0
- package/lib/types/specialAbility/VampiricGift.d.ts +2 -0
- package/lib/types/specialAbility/Vision.d.ts +2 -0
- package/lib/types/specialAbility/sub/Language.d.ts +1 -0
- package/lib/types/specialAbility/sub/Script.d.ts +1 -0
- package/lib/types/specialAbility/sub/TradeSecret.d.ts +2 -0
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.d.ts +2 -0
- package/lib/types/traditionArtifacts/AttireEnchantment.d.ts +2 -0
- package/lib/types/traditionArtifacts/Beutelzauber.d.ts +2 -0
- package/lib/types/traditionArtifacts/BowlEnchantment.d.ts +2 -0
- package/lib/types/traditionArtifacts/CauldronEnchantment.d.ts +2 -0
- package/lib/types/traditionArtifacts/ChronicleEnchantment.d.ts +2 -0
- package/lib/types/traditionArtifacts/DaggerRitual.d.ts +2 -0
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.d.ts +2 -0
- package/lib/types/traditionArtifacts/Haubenzauber.d.ts +2 -0
- package/lib/types/traditionArtifacts/InstrumentEnchantment.d.ts +2 -0
- package/lib/types/traditionArtifacts/Krallenkettenzauber.d.ts +2 -0
- package/lib/types/traditionArtifacts/Kristallkugelzauber.d.ts +2 -0
- package/lib/types/traditionArtifacts/OrbEnchantment.d.ts +2 -0
- package/lib/types/traditionArtifacts/RingEnchantment.d.ts +2 -0
- package/lib/types/traditionArtifacts/SickleRitual.d.ts +2 -0
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.d.ts +2 -0
- package/lib/types/traditionArtifacts/StaffEnchantment.d.ts +2 -0
- package/lib/types/traditionArtifacts/ToyEnchantment.d.ts +2 -0
- package/lib/types/traditionArtifacts/Trinkhornzauber.d.ts +2 -0
- package/lib/types/traditionArtifacts/WandEnchantment.d.ts +2 -0
- package/lib/types/traditionArtifacts/WeaponEnchantment.d.ts +2 -0
- package/package.json +4 -4
- package/lib/types/_I18n.d.ts +0 -14
- package/lib/types/_I18n.js +0 -55
|
@@ -851,6 +851,7 @@ export declare const Trinkhornzauber: DB.Entity<"Trinkhornzauber", {
|
|
|
851
851
|
Numbered: DB.EnumCase<DB.Integer>;
|
|
852
852
|
}, []>>, false>;
|
|
853
853
|
}>, []>>>, true>;
|
|
854
|
+
isRemoved: DB.MemberDecl<DB.Boolean, false>;
|
|
854
855
|
}>, []>>, false>;
|
|
855
856
|
revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
|
|
856
857
|
Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
|
|
@@ -1243,6 +1244,7 @@ export declare const Trinkhornzauber: DB.Entity<"Trinkhornzauber", {
|
|
|
1243
1244
|
Numbered: DB.EnumCase<DB.Integer>;
|
|
1244
1245
|
}, []>>, false>;
|
|
1245
1246
|
}>, []>>>, true>;
|
|
1247
|
+
isRemoved: DB.MemberDecl<DB.Boolean, false>;
|
|
1246
1248
|
}>, []>>, false>;
|
|
1247
1249
|
revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
|
|
1248
1250
|
Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
|
|
@@ -851,6 +851,7 @@ export declare const WandEnchantment: DB.Entity<"WandEnchantment", {
|
|
|
851
851
|
Numbered: DB.EnumCase<DB.Integer>;
|
|
852
852
|
}, []>>, false>;
|
|
853
853
|
}>, []>>>, true>;
|
|
854
|
+
isRemoved: DB.MemberDecl<DB.Boolean, false>;
|
|
854
855
|
}>, []>>, false>;
|
|
855
856
|
revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
|
|
856
857
|
Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
|
|
@@ -1192,6 +1193,7 @@ export declare const WandEnchantment: DB.Entity<"WandEnchantment", {
|
|
|
1192
1193
|
Numbered: DB.EnumCase<DB.Integer>;
|
|
1193
1194
|
}, []>>, false>;
|
|
1194
1195
|
}>, []>>>, true>;
|
|
1196
|
+
isRemoved: DB.MemberDecl<DB.Boolean, false>;
|
|
1195
1197
|
}>, []>>, false>;
|
|
1196
1198
|
revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
|
|
1197
1199
|
Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
|
|
@@ -851,6 +851,7 @@ export declare const WeaponEnchantment: DB.Entity<"WeaponEnchantment", {
|
|
|
851
851
|
Numbered: DB.EnumCase<DB.Integer>;
|
|
852
852
|
}, []>>, false>;
|
|
853
853
|
}>, []>>>, true>;
|
|
854
|
+
isRemoved: DB.MemberDecl<DB.Boolean, false>;
|
|
854
855
|
}>, []>>, false>;
|
|
855
856
|
revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
|
|
856
857
|
Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
|
|
@@ -1243,6 +1244,7 @@ export declare const WeaponEnchantment: DB.Entity<"WeaponEnchantment", {
|
|
|
1243
1244
|
Numbered: DB.EnumCase<DB.Integer>;
|
|
1244
1245
|
}, []>>, false>;
|
|
1245
1246
|
}>, []>>>, true>;
|
|
1247
|
+
isRemoved: DB.MemberDecl<DB.Boolean, false>;
|
|
1246
1248
|
}>, []>>, false>;
|
|
1247
1249
|
revisions: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.Enum<"Revision", {
|
|
1248
1250
|
Since: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"Since", DB.Object<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "optolith-database-schema",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.3",
|
|
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",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"author": "Lukas Obermann",
|
|
41
41
|
"license": "MPL-2.0",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@elyukai/utils": "^0.
|
|
44
|
-
"tsondb": "^0.19.
|
|
43
|
+
"@elyukai/utils": "^0.2.0",
|
|
44
|
+
"tsondb": "^0.19.3",
|
|
45
45
|
"yaml": "^2.8.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@eslint/js": "^9.39.2",
|
|
49
|
-
"@types/node": "^25.2.
|
|
49
|
+
"@types/node": "^25.2.1",
|
|
50
50
|
"commit-and-tag-version": "^12.6.1",
|
|
51
51
|
"eslint": "^9.39.2",
|
|
52
52
|
"globals": "^17.3.0",
|
package/lib/types/_I18n.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as DB from "tsondb/schema/dsl";
|
|
2
|
-
export declare const PluralizationCategories: DB.TypeAlias<"PluralizationCategories", DB.Object<{
|
|
3
|
-
zero: DB.MemberDecl<DB.String, false>;
|
|
4
|
-
one: DB.MemberDecl<DB.String, false>;
|
|
5
|
-
two: DB.MemberDecl<DB.String, false>;
|
|
6
|
-
few: DB.MemberDecl<DB.String, false>;
|
|
7
|
-
many: DB.MemberDecl<DB.String, false>;
|
|
8
|
-
other: DB.MemberDecl<DB.String, true>;
|
|
9
|
-
}>, []>;
|
|
10
|
-
export declare const VaryBySystem: DB.TypeAlias<"VaryBySystem", DB.Object<{
|
|
11
|
-
mac: DB.MemberDecl<DB.String, true>;
|
|
12
|
-
windows: DB.MemberDecl<DB.String, true>;
|
|
13
|
-
linux: DB.MemberDecl<DB.String, true>;
|
|
14
|
-
}>, []>;
|
package/lib/types/_I18n.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import * as DB from "tsondb/schema/dsl";
|
|
2
|
-
export const PluralizationCategories = DB.TypeAlias(import.meta.url, {
|
|
3
|
-
name: "PluralizationCategories",
|
|
4
|
-
comment: `The item can be present in multiple pluralization categories; this object unifies handling of them. Not all of the options must be present, however, every possible category for that language should be defined. This means, that different languages may have a different amount of properties defined here. More information on pluralization and the Intl.PluralRules API on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules, https://unicode-org.github.io/cldr/ldml/tr35-numbers.html#Language_Plural_Rules and http://cldr.unicode.org/index/cldr-spec/plural-rules.
|
|
5
|
-
|
|
6
|
-
From the third link:
|
|
7
|
-
|
|
8
|
-
> The minimal pairs are those that are required for correct grammar. So
|
|
9
|
-
> because 0 and 1 don't have to form a minimal pair (it is ok—even though
|
|
10
|
-
> often not optimal—to say '0 people') , 0 doesn't establish a separate
|
|
11
|
-
> category. However, implementations are encouraged to provide the ability to
|
|
12
|
-
> have special plural messages for 0 in particular, so that more natural
|
|
13
|
-
> language can be used:
|
|
14
|
-
>
|
|
15
|
-
> — None of your friends are online.
|
|
16
|
-
>
|
|
17
|
-
> rather than
|
|
18
|
-
>
|
|
19
|
-
> — You have 0 friends online.`,
|
|
20
|
-
type: () => DB.Object({
|
|
21
|
-
zero: DB.Optional({
|
|
22
|
-
type: DB.String({ minLength: 1 }),
|
|
23
|
-
}),
|
|
24
|
-
one: DB.Optional({
|
|
25
|
-
type: DB.String({ minLength: 1 }),
|
|
26
|
-
}),
|
|
27
|
-
two: DB.Optional({
|
|
28
|
-
type: DB.String({ minLength: 1 }),
|
|
29
|
-
}),
|
|
30
|
-
few: DB.Optional({
|
|
31
|
-
type: DB.String({ minLength: 1 }),
|
|
32
|
-
}),
|
|
33
|
-
many: DB.Optional({
|
|
34
|
-
type: DB.String({ minLength: 1 }),
|
|
35
|
-
}),
|
|
36
|
-
other: DB.Required({
|
|
37
|
-
type: DB.String({ minLength: 1 }),
|
|
38
|
-
}),
|
|
39
|
-
}),
|
|
40
|
-
});
|
|
41
|
-
export const VaryBySystem = DB.TypeAlias(import.meta.url, {
|
|
42
|
-
name: "VaryBySystem",
|
|
43
|
-
comment: "The item can be different for each operating system.",
|
|
44
|
-
type: () => DB.Object({
|
|
45
|
-
mac: DB.Required({
|
|
46
|
-
type: DB.String({ minLength: 1 }),
|
|
47
|
-
}),
|
|
48
|
-
windows: DB.Required({
|
|
49
|
-
type: DB.String({ minLength: 1 }),
|
|
50
|
-
}),
|
|
51
|
-
linux: DB.Required({
|
|
52
|
-
type: DB.String({ minLength: 1 }),
|
|
53
|
-
}),
|
|
54
|
-
}),
|
|
55
|
-
});
|