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.
Files changed (143) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/gen/types.d.ts +5 -0
  3. package/lib/types/Advantage.d.ts +2 -0
  4. package/lib/types/AnimalDisease.d.ts +1 -0
  5. package/lib/types/Blessing.d.ts +1 -0
  6. package/lib/types/Cantrip.d.ts +1 -0
  7. package/lib/types/Ceremony.d.ts +2 -0
  8. package/lib/types/CombatTechnique.d.ts +2 -0
  9. package/lib/types/Condition.d.ts +1 -0
  10. package/lib/types/Culture.d.ts +1 -0
  11. package/lib/types/DerivedCharacteristic.d.ts +1 -0
  12. package/lib/types/Disadvantage.d.ts +2 -0
  13. package/lib/types/Disease.d.ts +1 -0
  14. package/lib/types/FamiliarsTrick.d.ts +1 -0
  15. package/lib/types/Lessons.d.ts +1 -0
  16. package/lib/types/LiturgicalChant.d.ts +2 -0
  17. package/lib/types/Locale.js +1 -0
  18. package/lib/types/MetaCondition.d.ts +1 -0
  19. package/lib/types/PactCategory.d.ts +1 -0
  20. package/lib/types/Patron.d.ts +1 -0
  21. package/lib/types/PersonalityTrait.d.ts +1 -0
  22. package/lib/types/Profession.d.ts +2 -0
  23. package/lib/types/Race.d.ts +1 -0
  24. package/lib/types/Race.js +1 -0
  25. package/lib/types/Ritual.d.ts +2 -0
  26. package/lib/types/Service.d.ts +1 -0
  27. package/lib/types/SexPractice.d.ts +1 -0
  28. package/lib/types/Skill.d.ts +1 -0
  29. package/lib/types/Spell.d.ts +2 -0
  30. package/lib/types/State.d.ts +1 -0
  31. package/lib/types/Talisman.d.ts +1 -0
  32. package/lib/types/Talisman.js +2 -0
  33. package/lib/types/_ActivatableSelectOptions.d.ts +2 -0
  34. package/lib/types/_Enhancements.d.ts +2 -0
  35. package/lib/types/_Influence.d.ts +1 -0
  36. package/lib/types/equipment/EquipmentPackage.d.ts +1 -0
  37. package/lib/types/equipment/item/Ammunition.d.ts +1 -0
  38. package/lib/types/equipment/item/Animal.d.ts +1 -0
  39. package/lib/types/equipment/item/AnimalCare.d.ts +1 -0
  40. package/lib/types/equipment/item/Armor.d.ts +1 -0
  41. package/lib/types/equipment/item/BandageOrRemedy.d.ts +1 -0
  42. package/lib/types/equipment/item/Book.d.ts +1 -0
  43. package/lib/types/equipment/item/CeremonialItem.d.ts +1 -0
  44. package/lib/types/equipment/item/Clothes.d.ts +1 -0
  45. package/lib/types/equipment/item/ClothingPackage.d.ts +1 -0
  46. package/lib/types/equipment/item/Container.d.ts +1 -0
  47. package/lib/types/equipment/item/Elixir.d.ts +1 -0
  48. package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +1 -0
  49. package/lib/types/equipment/item/GemOrPreciousStone.d.ts +1 -0
  50. package/lib/types/equipment/item/IlluminationLightSource.d.ts +1 -0
  51. package/lib/types/equipment/item/IlluminationRefillOrSupply.d.ts +1 -0
  52. package/lib/types/equipment/item/Jewelry.d.ts +1 -0
  53. package/lib/types/equipment/item/Laboratory.d.ts +1 -0
  54. package/lib/types/equipment/item/Liebesspielzeug.d.ts +1 -0
  55. package/lib/types/equipment/item/LuxuryGood.d.ts +1 -0
  56. package/lib/types/equipment/item/MagicalArtifact.d.ts +1 -0
  57. package/lib/types/equipment/item/MusicalInstrument.d.ts +1 -0
  58. package/lib/types/equipment/item/Newspaper.d.ts +1 -0
  59. package/lib/types/equipment/item/OrienteeringAid.d.ts +1 -0
  60. package/lib/types/equipment/item/Poison.d.ts +1 -0
  61. package/lib/types/equipment/item/RopeOrChain.d.ts +1 -0
  62. package/lib/types/equipment/item/Stationery.d.ts +1 -0
  63. package/lib/types/equipment/item/ThievesTool.d.ts +1 -0
  64. package/lib/types/equipment/item/ToolOfTheTrade.d.ts +1 -0
  65. package/lib/types/equipment/item/TravelGearOrTool.d.ts +1 -0
  66. package/lib/types/equipment/item/Vehicle.d.ts +1 -0
  67. package/lib/types/equipment/item/Weapon.d.ts +1 -0
  68. package/lib/types/equipment/item/Weapon.js +4 -0
  69. package/lib/types/equipment/item/WeaponAccessory.d.ts +1 -0
  70. package/lib/types/equipment/item/_Item.d.ts +1 -0
  71. package/lib/types/magicalActions/AnimistPower.d.ts +2 -0
  72. package/lib/types/magicalActions/Curse.d.ts +1 -0
  73. package/lib/types/magicalActions/DominationRitual.d.ts +1 -0
  74. package/lib/types/magicalActions/ElvenMagicalSong.d.ts +1 -0
  75. package/lib/types/magicalActions/GeodeRitual.d.ts +1 -0
  76. package/lib/types/magicalActions/JesterTrick.d.ts +1 -0
  77. package/lib/types/magicalActions/MagicalDance.d.ts +1 -0
  78. package/lib/types/magicalActions/MagicalMelody.d.ts +1 -0
  79. package/lib/types/magicalActions/MagicalRune.d.ts +1 -0
  80. package/lib/types/magicalActions/ZibiljaRitual.d.ts +1 -0
  81. package/lib/types/rule/AlternativeRule.d.ts +1 -0
  82. package/lib/types/rule/CoreRule.d.ts +1 -0
  83. package/lib/types/rule/FocusRule.d.ts +1 -0
  84. package/lib/types/rule/OptionalRule.d.ts +1 -0
  85. package/lib/types/source/_PublicationRef.d.ts +4 -0
  86. package/lib/types/source/_PublicationRef.js +6 -2
  87. package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +2 -0
  88. package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.d.ts +2 -0
  89. package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.d.ts +2 -0
  90. package/lib/types/specialAbility/AdvancedSkillSpecialAbility.d.ts +2 -0
  91. package/lib/types/specialAbility/AncestorGlyph.d.ts +2 -0
  92. package/lib/types/specialAbility/BlessedTradition.d.ts +2 -0
  93. package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +2 -0
  94. package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +2 -0
  95. package/lib/types/specialAbility/CombatSpecialAbility.d.ts +2 -0
  96. package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +2 -0
  97. package/lib/types/specialAbility/CommandSpecialAbility.d.ts +2 -0
  98. package/lib/types/specialAbility/FamiliarSpecialAbility.d.ts +2 -0
  99. package/lib/types/specialAbility/FatePointSexSpecialAbility.d.ts +2 -0
  100. package/lib/types/specialAbility/FatePointSpecialAbility.d.ts +2 -0
  101. package/lib/types/specialAbility/GeneralSpecialAbility.d.ts +2 -0
  102. package/lib/types/specialAbility/KarmaSpecialAbility.d.ts +2 -0
  103. package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +2 -0
  104. package/lib/types/specialAbility/LycantropicGift.d.ts +2 -0
  105. package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +2 -0
  106. package/lib/types/specialAbility/MagicalSign.d.ts +1 -0
  107. package/lib/types/specialAbility/MagicalSpecialAbility.d.ts +2 -0
  108. package/lib/types/specialAbility/MagicalTradition.d.ts +2 -0
  109. package/lib/types/specialAbility/PactGift.d.ts +2 -0
  110. package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.d.ts +2 -0
  111. package/lib/types/specialAbility/Sermon.d.ts +2 -0
  112. package/lib/types/specialAbility/SexSpecialAbility.d.ts +2 -0
  113. package/lib/types/specialAbility/SikaryanDrainSpecialAbility.d.ts +2 -0
  114. package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +2 -0
  115. package/lib/types/specialAbility/VampiricGift.d.ts +2 -0
  116. package/lib/types/specialAbility/Vision.d.ts +2 -0
  117. package/lib/types/specialAbility/sub/Language.d.ts +1 -0
  118. package/lib/types/specialAbility/sub/Script.d.ts +1 -0
  119. package/lib/types/specialAbility/sub/TradeSecret.d.ts +2 -0
  120. package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.d.ts +2 -0
  121. package/lib/types/traditionArtifacts/AttireEnchantment.d.ts +2 -0
  122. package/lib/types/traditionArtifacts/Beutelzauber.d.ts +2 -0
  123. package/lib/types/traditionArtifacts/BowlEnchantment.d.ts +2 -0
  124. package/lib/types/traditionArtifacts/CauldronEnchantment.d.ts +2 -0
  125. package/lib/types/traditionArtifacts/ChronicleEnchantment.d.ts +2 -0
  126. package/lib/types/traditionArtifacts/DaggerRitual.d.ts +2 -0
  127. package/lib/types/traditionArtifacts/FoolsHatEnchantment.d.ts +2 -0
  128. package/lib/types/traditionArtifacts/Haubenzauber.d.ts +2 -0
  129. package/lib/types/traditionArtifacts/InstrumentEnchantment.d.ts +2 -0
  130. package/lib/types/traditionArtifacts/Krallenkettenzauber.d.ts +2 -0
  131. package/lib/types/traditionArtifacts/Kristallkugelzauber.d.ts +2 -0
  132. package/lib/types/traditionArtifacts/OrbEnchantment.d.ts +2 -0
  133. package/lib/types/traditionArtifacts/RingEnchantment.d.ts +2 -0
  134. package/lib/types/traditionArtifacts/SickleRitual.d.ts +2 -0
  135. package/lib/types/traditionArtifacts/SpellSwordEnchantment.d.ts +2 -0
  136. package/lib/types/traditionArtifacts/StaffEnchantment.d.ts +2 -0
  137. package/lib/types/traditionArtifacts/ToyEnchantment.d.ts +2 -0
  138. package/lib/types/traditionArtifacts/Trinkhornzauber.d.ts +2 -0
  139. package/lib/types/traditionArtifacts/WandEnchantment.d.ts +2 -0
  140. package/lib/types/traditionArtifacts/WeaponEnchantment.d.ts +2 -0
  141. package/package.json +4 -4
  142. package/lib/types/_I18n.d.ts +0 -14
  143. 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.1",
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.1.6",
44
- "tsondb": "^0.19.0",
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.0",
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",
@@ -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
- }>, []>;
@@ -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
- });