optolith-database-schema 0.9.0 → 0.10.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.
Files changed (257) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/lib/config.d.ts +1 -1
  3. package/lib/main.d.ts +3 -3
  4. package/lib/main.js +8 -3
  5. package/lib/types/Advantage.d.ts +15 -4
  6. package/lib/types/AnimalDisease.d.ts +1 -1
  7. package/lib/types/AnimalType.d.ts +2 -2
  8. package/lib/types/ArcaneBardTradition.d.ts +1 -1
  9. package/lib/types/ArcaneDancerTradition.d.ts +1 -1
  10. package/lib/types/Aspect.d.ts +2 -2
  11. package/lib/types/Attribute.d.ts +2 -2
  12. package/lib/types/Blessing.d.ts +8 -8
  13. package/lib/types/Cantrip.d.ts +14 -14
  14. package/lib/types/Ceremony.d.ts +2 -2
  15. package/lib/types/CombatTechnique_Close.d.ts +3 -3
  16. package/lib/types/CombatTechnique_Ranged.d.ts +3 -3
  17. package/lib/types/Condition.d.ts +2 -2
  18. package/lib/types/Continent.d.ts +2 -2
  19. package/lib/types/Culture.d.ts +21 -21
  20. package/lib/types/DerivedCharacteristic.d.ts +3 -3
  21. package/lib/types/Disadvantage.d.ts +14 -4
  22. package/lib/types/Disease.d.ts +1 -1
  23. package/lib/types/Element.d.ts +2 -2
  24. package/lib/types/ExperienceLevel.d.ts +2 -2
  25. package/lib/types/EyeColor.d.ts +2 -2
  26. package/lib/types/FamiliarsTrick.d.ts +22 -22
  27. package/lib/types/HairColor.d.ts +2 -2
  28. package/lib/types/Kirchenpraegung.d.ts +1 -1
  29. package/lib/types/Lessons_Curriculum.d.ts +18 -18
  30. package/lib/types/Lessons_Guideline.d.ts +2 -2
  31. package/lib/types/LiturgicalChant.d.ts +2 -2
  32. package/lib/types/Locale.d.ts +2 -2
  33. package/lib/types/MetaCondition.d.ts +2 -2
  34. package/lib/types/PactCategory.d.ts +6 -6
  35. package/lib/types/Patron.d.ts +13 -13
  36. package/lib/types/PatronCategory.d.ts +2 -2
  37. package/lib/types/PersonalityTrait.d.ts +3 -3
  38. package/lib/types/Profession.d.ts +53 -43
  39. package/lib/types/Property.d.ts +2 -2
  40. package/lib/types/Race.d.ts +14 -14
  41. package/lib/types/Region.d.ts +2 -2
  42. package/lib/types/Ritual.d.ts +2 -2
  43. package/lib/types/Service.d.ts +2 -2
  44. package/lib/types/SexPractice.d.ts +2 -2
  45. package/lib/types/Skill.d.ts +6 -6
  46. package/lib/types/SkillGroup.d.ts +2 -2
  47. package/lib/types/SkillModificationLevel.d.ts +6 -6
  48. package/lib/types/SocialStatus.d.ts +2 -2
  49. package/lib/types/Spell.d.ts +2 -2
  50. package/lib/types/State.d.ts +2 -2
  51. package/lib/types/Talisman.d.ts +9 -9
  52. package/lib/types/TargetCategory.d.ts +3 -3
  53. package/lib/types/UI.d.ts +1 -1
  54. package/lib/types/_Activatable.d.ts +211 -103
  55. package/lib/types/_Activatable.js +4 -35
  56. package/lib/types/_ActivatableSelectOptionCategory.d.ts +55 -25
  57. package/lib/types/_ActivatableSkill.d.ts +8 -8
  58. package/lib/types/_ActivatableSkillCastingTime.d.ts +8 -8
  59. package/lib/types/_ActivatableSkillCheckResultBased.d.ts +2 -2
  60. package/lib/types/_ActivatableSkillCost.d.ts +20 -20
  61. package/lib/types/_ActivatableSkillDuration.d.ts +13 -13
  62. package/lib/types/_ActivatableSkillEffect.d.ts +4 -4
  63. package/lib/types/_ActivatableSkillRange.d.ts +6 -6
  64. package/lib/types/_ActivatableSkillTargetCategory.d.ts +4 -4
  65. package/lib/types/_AlternativeNames.d.ts +1 -1
  66. package/lib/types/_ArcaneTradition.d.ts +2 -2
  67. package/lib/types/_Blessed.d.ts +2 -2
  68. package/lib/types/_CommonnessRatedAdvantageDisadvantage.d.ts +1 -1
  69. package/lib/types/_Dice.d.ts +1 -1
  70. package/lib/types/_DiseasePoison.d.ts +4 -4
  71. package/lib/types/_Enhancements.d.ts +3 -3
  72. package/lib/types/_I18n.d.ts +1 -1
  73. package/lib/types/_Identifier.d.ts +132 -132
  74. package/lib/types/_IdentifierGroup.d.ts +20 -20
  75. package/lib/types/_Influence.d.ts +3 -3
  76. package/lib/types/_LocaleMap.d.ts +1 -1
  77. package/lib/types/_NonEmptyString.d.ts +2 -2
  78. package/lib/types/_Prerequisite.d.ts +21 -21
  79. package/lib/types/_ResponsiveText.d.ts +3 -3
  80. package/lib/types/_SimpleReferences.d.ts +44 -44
  81. package/lib/types/_SkillCheck.d.ts +1 -1
  82. package/lib/types/_Spellwork.d.ts +2 -2
  83. package/lib/types/equipment/EquipmentPackage.d.ts +3 -3
  84. package/lib/types/equipment/item/Alchemicum.d.ts +1 -1
  85. package/lib/types/equipment/item/Ammunition.d.ts +2 -2
  86. package/lib/types/equipment/item/Animal.d.ts +1 -1
  87. package/lib/types/equipment/item/AnimalCare.d.ts +5 -5
  88. package/lib/types/equipment/item/Armor.d.ts +11 -11
  89. package/lib/types/equipment/item/BandageOrRemedy.d.ts +1 -1
  90. package/lib/types/equipment/item/Book.d.ts +2 -2
  91. package/lib/types/equipment/item/CeremonialItem.d.ts +1 -1
  92. package/lib/types/equipment/item/Clothes.d.ts +1 -1
  93. package/lib/types/equipment/item/Container.d.ts +1 -1
  94. package/lib/types/equipment/item/Elixir.d.ts +2 -2
  95. package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +1 -1
  96. package/lib/types/equipment/item/GemOrPreciousStone.d.ts +2 -2
  97. package/lib/types/equipment/item/IlluminationLightSource.d.ts +3 -3
  98. package/lib/types/equipment/item/IlluminationRefillsOrSupplies.d.ts +1 -1
  99. package/lib/types/equipment/item/Jewelry.d.ts +3 -3
  100. package/lib/types/equipment/item/Liebesspielzeug.d.ts +1 -1
  101. package/lib/types/equipment/item/LuxuryGood.d.ts +1 -1
  102. package/lib/types/equipment/item/MagicalArtifact.d.ts +2 -2
  103. package/lib/types/equipment/item/MusicalInstrument.d.ts +1 -1
  104. package/lib/types/equipment/item/OrienteeringAid.d.ts +1 -1
  105. package/lib/types/equipment/item/Poison.d.ts +45 -25
  106. package/lib/types/equipment/item/Poison.js +1 -0
  107. package/lib/types/equipment/item/RopeOrChain.d.ts +1 -1
  108. package/lib/types/equipment/item/Stationary.d.ts +1 -1
  109. package/lib/types/equipment/item/ThievesTool.d.ts +1 -1
  110. package/lib/types/equipment/item/ToolOfTheTrade.d.ts +3 -3
  111. package/lib/types/equipment/item/TravelGearOrTool.d.ts +1 -1
  112. package/lib/types/equipment/item/Vehicle.d.ts +1 -1
  113. package/lib/types/equipment/item/Weapon.d.ts +12 -11
  114. package/lib/types/equipment/item/WeaponAccessory.d.ts +1 -1
  115. package/lib/types/equipment/item/_Herbary.d.ts +1 -1
  116. package/lib/types/equipment/item/_Item.d.ts +12 -12
  117. package/lib/types/equipment/item/_MeleeWeapon.d.ts +7 -7
  118. package/lib/types/equipment/item/_RangedWeapon.d.ts +6 -6
  119. package/lib/types/equipment/item/_Weapon.d.ts +5 -5
  120. package/lib/types/equipment/item/sub/ArmorType.d.ts +5 -5
  121. package/lib/types/equipment/item/sub/Reach.d.ts +2 -2
  122. package/lib/types/magicalActions/AnimistPower.d.ts +16 -16
  123. package/lib/types/magicalActions/AnimistPower_Tribe.d.ts +2 -2
  124. package/lib/types/magicalActions/Curse.d.ts +10 -10
  125. package/lib/types/magicalActions/DominationRitual.d.ts +9 -9
  126. package/lib/types/magicalActions/ElvenMagicalSong.d.ts +7 -7
  127. package/lib/types/magicalActions/GeodeRitual.d.ts +10 -10
  128. package/lib/types/magicalActions/JesterTrick.d.ts +9 -9
  129. package/lib/types/magicalActions/MagicalDance.d.ts +6 -6
  130. package/lib/types/magicalActions/MagicalMelody.d.ts +6 -6
  131. package/lib/types/magicalActions/MagicalRune.d.ts +22 -22
  132. package/lib/types/magicalActions/ZibiljaRitual.d.ts +3 -3
  133. package/lib/types/magicalActions/_MusicTradition.d.ts +3 -3
  134. package/lib/types/magicalActions/_SkillReference.d.ts +1 -1
  135. package/lib/types/prerequisites/ConditionalPrerequisites.d.ts +1 -1
  136. package/lib/types/prerequisites/DisplayOption.d.ts +16 -2
  137. package/lib/types/prerequisites/PrerequisiteGroups.d.ts +38 -16
  138. package/lib/types/prerequisites/single/ActivatablePrerequisite.d.ts +1 -1
  139. package/lib/types/prerequisites/single/AncestorBloodPrerequisite.d.ts +5 -0
  140. package/lib/types/prerequisites/single/AncestorBloodPrerequisite.js +1 -0
  141. package/lib/types/prerequisites/single/AnimistPowerPrerequisite.d.ts +1 -1
  142. package/lib/types/prerequisites/single/CulturePrerequisite.d.ts +1 -1
  143. package/lib/types/prerequisites/single/EnhancementPrerequisite.d.ts +4 -4
  144. package/lib/types/prerequisites/single/InfluencePrerequisite.d.ts +1 -1
  145. package/lib/types/prerequisites/single/PactPrerequisite.d.ts +1 -1
  146. package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.d.ts +1 -1
  147. package/lib/types/prerequisites/single/PublicationPrerequisite.d.ts +1 -1
  148. package/lib/types/prerequisites/single/RacePrerequisite.d.ts +1 -1
  149. package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.d.ts +67 -0
  150. package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.js +6 -0
  151. package/lib/types/prerequisites/single/RatedPrerequisite.d.ts +1 -56
  152. package/lib/types/prerequisites/single/RatedSumPrerequisite.d.ts +19 -0
  153. package/lib/types/prerequisites/single/RatedSumPrerequisite.js +1 -0
  154. package/lib/types/prerequisites/single/RulePrerequisite.d.ts +1 -1
  155. package/lib/types/prerequisites/single/SexPrerequisite.d.ts +1 -1
  156. package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.d.ts +11 -0
  157. package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.js +5 -0
  158. package/lib/types/prerequisites/single/SocialStatusPrerequisite.d.ts +1 -1
  159. package/lib/types/prerequisites/single/StatePrerequisite.d.ts +1 -1
  160. package/lib/types/prerequisites/single/TextPrerequisite.d.ts +31 -2
  161. package/lib/types/prerequisites/single/TextPrerequisite.js +5 -0
  162. package/lib/types/prerequisites/single/TraditionPrerequisite.d.ts +2 -2
  163. package/lib/types/rule/CoreRule.d.ts +11 -11
  164. package/lib/types/rule/FocusRule.d.ts +2 -2
  165. package/lib/types/rule/FocusRule_Subject.d.ts +2 -2
  166. package/lib/types/rule/OptionalRule.d.ts +2 -2
  167. package/lib/types/source/Publication.d.ts +2 -2
  168. package/lib/types/source/_Erratum.d.ts +2 -2
  169. package/lib/types/source/_PublicationRef.d.ts +13 -13
  170. package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +13 -2
  171. package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.d.ts +2 -2
  172. package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.d.ts +2 -2
  173. package/lib/types/specialAbility/AdvancedSkillSpecialAbility.d.ts +2 -2
  174. package/lib/types/specialAbility/AncestorGlyph.d.ts +2 -2
  175. package/lib/types/specialAbility/BlessedTradition.d.ts +8 -8
  176. package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +2 -2
  177. package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +9 -4
  178. package/lib/types/specialAbility/CombatSpecialAbility.d.ts +8 -4
  179. package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +2 -2
  180. package/lib/types/specialAbility/CommandSpecialAbility.d.ts +1 -1
  181. package/lib/types/specialAbility/FamiliarSpecialAbility.d.ts +2 -2
  182. package/lib/types/specialAbility/FatePointSexSpecialAbility.d.ts +2 -2
  183. package/lib/types/specialAbility/FatePointSpecialAbility.d.ts +7 -2
  184. package/lib/types/specialAbility/GeneralSpecialAbility.d.ts +14 -4
  185. package/lib/types/specialAbility/KarmaSpecialAbility.d.ts +9 -4
  186. package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +2 -2
  187. package/lib/types/specialAbility/LycantropicGift.d.ts +2 -2
  188. package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +2 -2
  189. package/lib/types/specialAbility/MagicalSign.d.ts +2 -2
  190. package/lib/types/specialAbility/MagicalSpecialAbility.d.ts +13 -4
  191. package/lib/types/specialAbility/MagicalTradition.d.ts +3 -3
  192. package/lib/types/specialAbility/PactGift.d.ts +9 -9
  193. package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.d.ts +2 -2
  194. package/lib/types/specialAbility/Sermon.d.ts +2 -2
  195. package/lib/types/specialAbility/SexSpecialAbility.d.ts +2 -2
  196. package/lib/types/specialAbility/SikaryanDrainSpecialAbility.d.ts +7 -2
  197. package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +2 -2
  198. package/lib/types/specialAbility/VampiricGift.d.ts +9 -4
  199. package/lib/types/specialAbility/Vision.d.ts +2 -2
  200. package/lib/types/specialAbility/_Tradition.d.ts +1 -1
  201. package/lib/types/specialAbility/sub/Language.d.ts +8 -8
  202. package/lib/types/specialAbility/sub/Script.d.ts +2 -2
  203. package/lib/types/specialAbility/sub/TradeSecret.d.ts +2 -2
  204. package/lib/types/specialAbility/sub/_LanguageScript.d.ts +1 -1
  205. package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.d.ts +4 -4
  206. package/lib/types/traditionArtifacts/AttireEnchantment.d.ts +4 -4
  207. package/lib/types/traditionArtifacts/BowlEnchantment.d.ts +4 -4
  208. package/lib/types/traditionArtifacts/CauldronEnchantment.d.ts +5 -5
  209. package/lib/types/traditionArtifacts/ChronicleEnchantment.d.ts +4 -4
  210. package/lib/types/traditionArtifacts/DaggerRitual.d.ts +8 -8
  211. package/lib/types/traditionArtifacts/FoolsHatEnchantment.d.ts +4 -4
  212. package/lib/types/traditionArtifacts/InstrumentEnchantment.d.ts +4 -4
  213. package/lib/types/traditionArtifacts/Krallenkettenzauber.d.ts +4 -4
  214. package/lib/types/traditionArtifacts/OrbEnchantment.d.ts +4 -4
  215. package/lib/types/traditionArtifacts/RingEnchantment.d.ts +4 -4
  216. package/lib/types/traditionArtifacts/SickleRitual.d.ts +4 -4
  217. package/lib/types/traditionArtifacts/SpellSwordEnchantment.d.ts +9 -4
  218. package/lib/types/traditionArtifacts/StaffEnchantment.d.ts +14 -4
  219. package/lib/types/traditionArtifacts/ToyEnchantment.d.ts +4 -4
  220. package/lib/types/traditionArtifacts/Trinkhornzauber.d.ts +4 -4
  221. package/lib/types/traditionArtifacts/WandEnchantment.d.ts +4 -4
  222. package/lib/types/traditionArtifacts/WeaponEnchantment.d.ts +4 -4
  223. package/lib/types/traditionArtifacts/sub/AnimalShape.d.ts +4 -4
  224. package/lib/types/traditionArtifacts/sub/AnimalShapePath.d.ts +2 -2
  225. package/lib/types/traditionArtifacts/sub/AnimalShapeSize.d.ts +2 -2
  226. package/lib/types/traditionArtifacts/sub/Brew.d.ts +2 -2
  227. package/lib/validation/schema.d.ts +5 -5
  228. package/lib/validation/schema.js +2 -2
  229. package/package.json +5 -5
  230. package/schema/Advantage.schema.json +11 -0
  231. package/schema/Disadvantage.schema.json +8 -0
  232. package/schema/Profession.schema.json +8 -0
  233. package/schema/Talisman.schema.json +2 -4
  234. package/schema/_Activatable.schema.json +166 -0
  235. package/schema/_ActivatableSelectOptionCategory.schema.json +141 -0
  236. package/schema/equipment/item/Poison.schema.json +55 -1
  237. package/schema/equipment/item/Weapon.schema.json +5 -1
  238. package/schema/equipment/item/sub/ArmorType.schema.json +1 -2
  239. package/schema/prerequisites/DisplayOption.schema.json +4 -0
  240. package/schema/prerequisites/PrerequisiteGroups.schema.json +98 -2
  241. package/schema/prerequisites/single/AncestorBloodPrerequisite.schema.json +14 -0
  242. package/schema/prerequisites/single/RatedMinimumNumberPrerequisite.schema.json +166 -0
  243. package/schema/prerequisites/single/RatedPrerequisite.schema.json +0 -125
  244. package/schema/prerequisites/single/RatedSumPrerequisite.schema.json +33 -0
  245. package/schema/prerequisites/single/SexualCharacteristicPrerequisite.schema.json +26 -0
  246. package/schema/prerequisites/single/TextPrerequisite.schema.json +14 -0
  247. package/schema/specialAbility/AdvancedCombatSpecialAbility.schema.json +8 -0
  248. package/schema/specialAbility/CeremonialItemSpecialAbility.schema.json +4 -0
  249. package/schema/specialAbility/CombatSpecialAbility.schema.json +4 -0
  250. package/schema/specialAbility/FatePointSpecialAbility.schema.json +4 -0
  251. package/schema/specialAbility/GeneralSpecialAbility.schema.json +8 -0
  252. package/schema/specialAbility/KarmaSpecialAbility.schema.json +4 -0
  253. package/schema/specialAbility/MagicalSpecialAbility.schema.json +8 -0
  254. package/schema/specialAbility/SikaryanDrainSpecialAbility.schema.json +4 -0
  255. package/schema/specialAbility/VampiricGift.schema.json +4 -0
  256. package/schema/traditionArtifacts/SpellSwordEnchantment.schema.json +4 -0
  257. package/schema/traditionArtifacts/StaffEnchantment.schema.json +8 -0
@@ -1,15 +1,15 @@
1
1
  /**
2
2
  * @main OrbEnchantment
3
3
  */
4
- import { Errata } from "../source/_Erratum.js";
5
- import { PublicationRefs } from "../source/_PublicationRef.js";
6
4
  import * as Activatable from "../_Activatable.js";
7
5
  import { LocaleMap } from "../_LocaleMap.js";
8
6
  import { GeneralPrerequisites } from "../_Prerequisite.js";
7
+ import { Errata } from "../source/_Erratum.js";
8
+ import { PublicationRefs } from "../source/_PublicationRef.js";
9
9
  /**
10
10
  * @title Orb Enchantment
11
11
  */
12
- export declare type OrbEnchantment = {
12
+ export type OrbEnchantment = {
13
13
  id: Activatable.Id;
14
14
  levels?: Activatable.Levels;
15
15
  select_options?: Activatable.SelectOptions;
@@ -25,7 +25,7 @@ export declare type OrbEnchantment = {
25
25
  */
26
26
  translations: LocaleMap<OrbEnchantmentTranslation>;
27
27
  };
28
- export declare type OrbEnchantmentTranslation = {
28
+ export type OrbEnchantmentTranslation = {
29
29
  name: Activatable.Name;
30
30
  name_in_library?: Activatable.NameInLibrary;
31
31
  effect: Activatable.Effect;
@@ -1,15 +1,15 @@
1
1
  /**
2
2
  * @main RingEnchantment
3
3
  */
4
- import { Errata } from "../source/_Erratum.js";
5
- import { PublicationRefs } from "../source/_PublicationRef.js";
6
4
  import * as Activatable from "../_Activatable.js";
7
5
  import { LocaleMap } from "../_LocaleMap.js";
8
6
  import { GeneralPrerequisites } from "../_Prerequisite.js";
7
+ import { Errata } from "../source/_Erratum.js";
8
+ import { PublicationRefs } from "../source/_PublicationRef.js";
9
9
  /**
10
10
  * @title Ring Enchantment
11
11
  */
12
- export declare type RingEnchantment = {
12
+ export type RingEnchantment = {
13
13
  id: Activatable.Id;
14
14
  levels?: Activatable.Levels;
15
15
  select_options?: Activatable.SelectOptions;
@@ -25,7 +25,7 @@ export declare type RingEnchantment = {
25
25
  */
26
26
  translations: LocaleMap<RingEnchantmentTranslation>;
27
27
  };
28
- export declare type RingEnchantmentTranslation = {
28
+ export type RingEnchantmentTranslation = {
29
29
  name: Activatable.Name;
30
30
  name_in_library?: Activatable.NameInLibrary;
31
31
  effect: Activatable.Effect;
@@ -1,15 +1,15 @@
1
1
  /**
2
2
  * @main SickleRitual
3
3
  */
4
- import { Errata } from "../source/_Erratum.js";
5
- import { PublicationRefs } from "../source/_PublicationRef.js";
6
4
  import * as Activatable from "../_Activatable.js";
7
5
  import { LocaleMap } from "../_LocaleMap.js";
8
6
  import { GeneralPrerequisites } from "../_Prerequisite.js";
7
+ import { Errata } from "../source/_Erratum.js";
8
+ import { PublicationRefs } from "../source/_PublicationRef.js";
9
9
  /**
10
10
  * @title Sickle Ritual
11
11
  */
12
- export declare type SickleRitual = {
12
+ export type SickleRitual = {
13
13
  id: Activatable.Id;
14
14
  levels?: Activatable.Levels;
15
15
  select_options?: Activatable.SelectOptions;
@@ -25,7 +25,7 @@ export declare type SickleRitual = {
25
25
  */
26
26
  translations: LocaleMap<SickleRitualTranslation>;
27
27
  };
28
- export declare type SickleRitualTranslation = {
28
+ export type SickleRitualTranslation = {
29
29
  name: Activatable.Name;
30
30
  name_in_library?: Activatable.NameInLibrary;
31
31
  effect: Activatable.Effect;
@@ -1,15 +1,15 @@
1
1
  /**
2
2
  * @main SpellSwordEnchantment
3
3
  */
4
- import { Errata } from "../source/_Erratum.js";
5
- import { PublicationRefs } from "../source/_PublicationRef.js";
6
4
  import * as Activatable from "../_Activatable.js";
7
5
  import { LocaleMap } from "../_LocaleMap.js";
8
6
  import { GeneralPrerequisites } from "../_Prerequisite.js";
7
+ import { Errata } from "../source/_Erratum.js";
8
+ import { PublicationRefs } from "../source/_PublicationRef.js";
9
9
  /**
10
10
  * @title Spell-Sword Enchantment
11
11
  */
12
- export declare type SpellSwordEnchantment = {
12
+ export type SpellSwordEnchantment = {
13
13
  id: Activatable.Id;
14
14
  levels?: Activatable.Levels;
15
15
  select_options?: Activatable.SelectOptions;
@@ -25,7 +25,7 @@ export declare type SpellSwordEnchantment = {
25
25
  */
26
26
  translations: LocaleMap<SpellSwordEnchantmentTranslation>;
27
27
  };
28
- export declare type SpellSwordEnchantmentTranslation = {
28
+ export type SpellSwordEnchantmentTranslation = {
29
29
  name: Activatable.Name;
30
30
  name_in_library?: Activatable.NameInLibrary;
31
31
  effect: Activatable.Effect;
@@ -41,6 +41,11 @@ export declare type SpellSwordEnchantmentTranslation = {
41
41
  * @deprecated
42
42
  */
43
43
  bindingCost?: string;
44
+ /**
45
+ * The AP value. It is only used if the text cannot be generated from the
46
+ * given information.
47
+ */
48
+ ap_value?: Activatable.AdventurePointsValueReplacement;
44
49
  errata?: Errata;
45
50
  };
46
51
  export declare const validateSchema: import("../../validation/schema.js").TypeValidator<SpellSwordEnchantment>;
@@ -1,15 +1,16 @@
1
1
  /**
2
2
  * @main StaffEnchantment
3
3
  */
4
- import { Errata } from "../source/_Erratum.js";
5
- import { PublicationRefs } from "../source/_PublicationRef.js";
6
4
  import * as Activatable from "../_Activatable.js";
7
5
  import { LocaleMap } from "../_LocaleMap.js";
8
6
  import { GeneralPrerequisites } from "../_Prerequisite.js";
7
+ import { ResponsiveTextOptional } from "../_ResponsiveText.js";
8
+ import { Errata } from "../source/_Erratum.js";
9
+ import { PublicationRefs } from "../source/_PublicationRef.js";
9
10
  /**
10
11
  * @title Staff Enchantment
11
12
  */
12
- export declare type StaffEnchantment = {
13
+ export type StaffEnchantment = {
13
14
  id: Activatable.Id;
14
15
  levels?: Activatable.Levels;
15
16
  select_options?: Activatable.SelectOptions;
@@ -25,7 +26,7 @@ export declare type StaffEnchantment = {
25
26
  */
26
27
  translations: LocaleMap<StaffEnchantmentTranslation>;
27
28
  };
28
- export declare type StaffEnchantmentTranslation = {
29
+ export type StaffEnchantmentTranslation = {
29
30
  name: Activatable.Name;
30
31
  name_in_library?: Activatable.NameInLibrary;
31
32
  effect: Activatable.Effect;
@@ -37,10 +38,19 @@ export declare type StaffEnchantmentTranslation = {
37
38
  * @deprecated
38
39
  */
39
40
  aeCost?: string;
41
+ /**
42
+ * A note, appended to the generated cost string in parenthesis.
43
+ */
44
+ cost_note?: ResponsiveTextOptional;
40
45
  /**
41
46
  * @deprecated
42
47
  */
43
48
  bindingCost?: string;
49
+ /**
50
+ * The AP value. It is only used if the text cannot be generated from the
51
+ * given information.
52
+ */
53
+ ap_value?: Activatable.AdventurePointsValueReplacement;
44
54
  errata?: Errata;
45
55
  };
46
56
  export declare const validateSchema: import("../../validation/schema.js").TypeValidator<StaffEnchantment>;
@@ -1,15 +1,15 @@
1
1
  /**
2
2
  * @main ToyEnchantment
3
3
  */
4
- import { Errata } from "../source/_Erratum.js";
5
- import { PublicationRefs } from "../source/_PublicationRef.js";
6
4
  import * as Activatable from "../_Activatable.js";
7
5
  import { LocaleMap } from "../_LocaleMap.js";
8
6
  import { GeneralPrerequisites } from "../_Prerequisite.js";
7
+ import { Errata } from "../source/_Erratum.js";
8
+ import { PublicationRefs } from "../source/_PublicationRef.js";
9
9
  /**
10
10
  * @title Toy Enchantment
11
11
  */
12
- export declare type ToyEnchantment = {
12
+ export type ToyEnchantment = {
13
13
  id: Activatable.Id;
14
14
  levels?: Activatable.Levels;
15
15
  select_options?: Activatable.SelectOptions;
@@ -25,7 +25,7 @@ export declare type ToyEnchantment = {
25
25
  */
26
26
  translations: LocaleMap<ToyEnchantmentTranslation>;
27
27
  };
28
- export declare type ToyEnchantmentTranslation = {
28
+ export type ToyEnchantmentTranslation = {
29
29
  name: Activatable.Name;
30
30
  name_in_library?: Activatable.NameInLibrary;
31
31
  effect: Activatable.Effect;
@@ -1,15 +1,15 @@
1
1
  /**
2
2
  * @main Trinkhornzauber
3
3
  */
4
- import { Errata } from "../source/_Erratum.js";
5
- import { PublicationRefs } from "../source/_PublicationRef.js";
6
4
  import * as Activatable from "../_Activatable.js";
7
5
  import { LocaleMap } from "../_LocaleMap.js";
8
6
  import { GeneralPrerequisites } from "../_Prerequisite.js";
7
+ import { Errata } from "../source/_Erratum.js";
8
+ import { PublicationRefs } from "../source/_PublicationRef.js";
9
9
  /**
10
10
  * @title Trinkhornzauber
11
11
  */
12
- export declare type Trinkhornzauber = {
12
+ export type Trinkhornzauber = {
13
13
  id: Activatable.Id;
14
14
  levels?: Activatable.Levels;
15
15
  select_options?: Activatable.SelectOptions;
@@ -25,7 +25,7 @@ export declare type Trinkhornzauber = {
25
25
  */
26
26
  translations: LocaleMap<TrinkhornzauberTranslation>;
27
27
  };
28
- export declare type TrinkhornzauberTranslation = {
28
+ export type TrinkhornzauberTranslation = {
29
29
  name: Activatable.Name;
30
30
  name_in_library?: Activatable.NameInLibrary;
31
31
  effect: Activatable.Effect;
@@ -1,15 +1,15 @@
1
1
  /**
2
2
  * @main WandEnchantment
3
3
  */
4
- import { Errata } from "../source/_Erratum.js";
5
- import { PublicationRefs } from "../source/_PublicationRef.js";
6
4
  import * as Activatable from "../_Activatable.js";
7
5
  import { LocaleMap } from "../_LocaleMap.js";
8
6
  import { GeneralPrerequisites } from "../_Prerequisite.js";
7
+ import { Errata } from "../source/_Erratum.js";
8
+ import { PublicationRefs } from "../source/_PublicationRef.js";
9
9
  /**
10
10
  * @title Wand Enchantment
11
11
  */
12
- export declare type WandEnchantment = {
12
+ export type WandEnchantment = {
13
13
  id: Activatable.Id;
14
14
  levels?: Activatable.Levels;
15
15
  select_options?: Activatable.SelectOptions;
@@ -24,7 +24,7 @@ export declare type WandEnchantment = {
24
24
  */
25
25
  translations: LocaleMap<WandEnchantmentTranslation>;
26
26
  };
27
- export declare type WandEnchantmentTranslation = {
27
+ export type WandEnchantmentTranslation = {
28
28
  name: Activatable.Name;
29
29
  name_in_library?: Activatable.NameInLibrary;
30
30
  effect: Activatable.Effect;
@@ -1,15 +1,15 @@
1
1
  /**
2
2
  * @main WeaponEnchantment
3
3
  */
4
- import { Errata } from "../source/_Erratum.js";
5
- import { PublicationRefs } from "../source/_PublicationRef.js";
6
4
  import * as Activatable from "../_Activatable.js";
7
5
  import { LocaleMap } from "../_LocaleMap.js";
8
6
  import { GeneralPrerequisites } from "../_Prerequisite.js";
7
+ import { Errata } from "../source/_Erratum.js";
8
+ import { PublicationRefs } from "../source/_PublicationRef.js";
9
9
  /**
10
10
  * @title Weapon Enchantment
11
11
  */
12
- export declare type WeaponEnchantment = {
12
+ export type WeaponEnchantment = {
13
13
  id: Activatable.Id;
14
14
  levels?: Activatable.Levels;
15
15
  select_options?: Activatable.SelectOptions;
@@ -25,7 +25,7 @@ export declare type WeaponEnchantment = {
25
25
  */
26
26
  translations: LocaleMap<WeaponEnchantmentTranslation>;
27
27
  };
28
- export declare type WeaponEnchantmentTranslation = {
28
+ export type WeaponEnchantmentTranslation = {
29
29
  name: Activatable.Name;
30
30
  name_in_library?: Activatable.NameInLibrary;
31
31
  effect: Activatable.Effect;
@@ -6,7 +6,7 @@ import { NonEmptyString } from "../../_NonEmptyString.js";
6
6
  /**
7
7
  * @title Animal Shape
8
8
  */
9
- export declare type AnimalShape = {
9
+ export type AnimalShape = {
10
10
  /**
11
11
  * The animal shape's identifier. An unique, increasing integer.
12
12
  * @integer
@@ -26,7 +26,7 @@ export declare type AnimalShape = {
26
26
  */
27
27
  translations: LocaleMap<AnimalShapeTranslation>;
28
28
  };
29
- export declare type AnimalShapePathReference = {
29
+ export type AnimalShapePathReference = {
30
30
  /**
31
31
  * The identifier of the animal shape's path.
32
32
  * @integer
@@ -34,7 +34,7 @@ export declare type AnimalShapePathReference = {
34
34
  */
35
35
  id: number;
36
36
  };
37
- export declare type AnimalShapeSizeReference = {
37
+ export type AnimalShapeSizeReference = {
38
38
  /**
39
39
  * The identifier of the animal shape's size.
40
40
  * @integer
@@ -42,7 +42,7 @@ export declare type AnimalShapeSizeReference = {
42
42
  */
43
43
  id: number;
44
44
  };
45
- export declare type AnimalShapeTranslation = {
45
+ export type AnimalShapeTranslation = {
46
46
  /**
47
47
  * The animal shape name.
48
48
  */
@@ -6,7 +6,7 @@ import { NonEmptyString } from "../../_NonEmptyString.js";
6
6
  /**
7
7
  * @title Animal Shape Path
8
8
  */
9
- export declare type AnimalShapePath = {
9
+ export type AnimalShapePath = {
10
10
  /**
11
11
  * The animal shape path's identifier. An unique, increasing integer.
12
12
  * @integer
@@ -18,7 +18,7 @@ export declare type AnimalShapePath = {
18
18
  */
19
19
  translations: LocaleMap<AnimalShapePathTranslation>;
20
20
  };
21
- export declare type AnimalShapePathTranslation = {
21
+ export type AnimalShapePathTranslation = {
22
22
  /**
23
23
  * The animal shape path's name.
24
24
  */
@@ -6,7 +6,7 @@ import { NonEmptyString } from "../../_NonEmptyString.js";
6
6
  /**
7
7
  * @title Animal Shape Size
8
8
  */
9
- export declare type AnimalShapeSize = {
9
+ export type AnimalShapeSize = {
10
10
  /**
11
11
  * The animal shape's identifier. An unique, increasing integer.
12
12
  * @integer
@@ -30,7 +30,7 @@ export declare type AnimalShapeSize = {
30
30
  */
31
31
  translations: LocaleMap<AnimalShapeSizeTranslation>;
32
32
  };
33
- export declare type AnimalShapeSizeTranslation = {
33
+ export type AnimalShapeSizeTranslation = {
34
34
  /**
35
35
  * The animal shape size name.
36
36
  */
@@ -6,7 +6,7 @@ import { NonEmptyString } from "../../_NonEmptyString.js";
6
6
  /**
7
7
  * @title Brew
8
8
  */
9
- export declare type Brew = {
9
+ export type Brew = {
10
10
  /**
11
11
  * The brew's identifier. An unique, increasing integer.
12
12
  * @integer
@@ -18,7 +18,7 @@ export declare type Brew = {
18
18
  */
19
19
  translations: LocaleMap<BrewTranslation>;
20
20
  };
21
- export declare type BrewTranslation = {
21
+ export type BrewTranslation = {
22
22
  /**
23
23
  * The brew name.
24
24
  */
@@ -1,22 +1,22 @@
1
1
  import Ajv, { DefinedError } from "ajv";
2
- export declare type FileNameError = {
2
+ export type FileNameError = {
3
3
  keyword: "filename";
4
4
  instancePath: string;
5
5
  message: string;
6
6
  };
7
- export declare type TypeValidationResult<T> = {
7
+ export type TypeValidationResult<T> = {
8
8
  tag: "Ok";
9
9
  value: T;
10
10
  } | {
11
11
  tag: "Error";
12
12
  errors: TypeValidationResultErrors;
13
13
  };
14
- export declare type TypeValidationResultErrors = {
14
+ export type TypeValidationResultErrors = {
15
15
  fileNameError?: FileNameError;
16
16
  schemaErrors: DefinedError[];
17
17
  };
18
- export declare type TypeValidator<T> = (validator: Ajv, data: unknown, filePath: string) => TypeValidationResult<T>;
19
- export declare type TypeValidatorOptions = {
18
+ export type TypeValidator<T> = (validator: Ajv, data: unknown, filePath: string) => TypeValidationResult<T>;
19
+ export type TypeValidatorOptions = {
20
20
  ignoreFileNamePattern?: boolean;
21
21
  };
22
22
  export declare const validateSchemaCreator: <T>(importMetaUrl: string, { ignoreFileNamePattern }?: TypeValidatorOptions) => TypeValidator<T>;
@@ -1,12 +1,12 @@
1
1
  import { basename, dirname, extname, join, relative, sep } from "path";
2
2
  import { fileURLToPath } from "url";
3
3
  import { libDir } from "../../config/directories.js";
4
+ const baseNamePattern = /^(?:0|[1-9][0-9]*)_(?:[A-Z][a-zA-Z]*|[1-9][0-9]*)(?:-(?:[a-zA-Z]+|[1-9][0-9]*))*\.yml$/;
4
5
  const fileNameError = (fileName) => ({
5
6
  keyword: "filename",
6
7
  instancePath: "",
7
- message: `the file name "${fileName}" does not match the pattern ^[1-9][0-9]*_[A-Z][a-z]*(?:-[a-zA-Z][a-z]*)\\.yml$`
8
+ message: `the file name "${fileName}" does not match the pattern ${baseNamePattern.source}`
8
9
  });
9
- const baseNamePattern = /^[1-9][0-9]*_[A-Z][a-z]*(?:-[a-zA-Z][a-z]*)*\.yml$/;
10
10
  const changeFileExtension = (path, ext) => join(dirname(path), basename(path, extname(path)) + ext);
11
11
  const schemaIdFromSourcePath = (sourcePath) => {
12
12
  const relativePathOfType = relative(libDir, fileURLToPath(sourcePath));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optolith-database-schema",
3
- "version": "0.9.0",
3
+ "version": "0.10.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",
@@ -22,15 +22,15 @@
22
22
  "author": "Lukas Obermann",
23
23
  "license": "MPL-2.0",
24
24
  "dependencies": {
25
- "ajv": "^8.11.0",
25
+ "ajv": "^8.12.0",
26
26
  "ajv-formats": "^2.1.1",
27
- "yaml": "^2.1.1"
27
+ "yaml": "^2.2.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@types/node": "^18.0.0",
30
+ "@types/node": "^18.16.3",
31
31
  "optolith-tsjsonschemamd": "^0.5.20",
32
32
  "standard-version": "^9.5.0",
33
- "typescript": "^4.7.4"
33
+ "typescript": "^5.0.4"
34
34
  },
35
35
  "repository": "github:elyukai/optolith-database-schema",
36
36
  "bugs": {
@@ -75,6 +75,10 @@
75
75
  "name_in_library": {
76
76
  "$ref": "./_Activatable.schema.json#/$defs/NameInLibrary"
77
77
  },
78
+ "input": {
79
+ "description": "A string that is used as a label for an input field.",
80
+ "$ref": "./_Activatable.schema.json#/$defs/Input"
81
+ },
78
82
  "rules": {
79
83
  "$ref": "./_Activatable.schema.json#/$defs/Rules"
80
84
  },
@@ -83,6 +87,13 @@
83
87
  "type": "string",
84
88
  "minLength": 1
85
89
  },
90
+ "ap_value": {
91
+ "$ref": "./_Activatable.schema.json#/$defs/AdventurePointsValueReplacement"
92
+ },
93
+ "ap_value_append": {
94
+ "description": "A string that gets appended to the default AP Value text with a preceding\nspace. This always happens if present, even if the generated AP Value text\nis replaced.",
95
+ "$ref": "./_Activatable.schema.json#/$defs/AdventurePointsValueAppend"
96
+ },
86
97
  "errata": {
87
98
  "$ref": "./source/_Erratum.schema.json#/$defs/Errata"
88
99
  }
@@ -67,6 +67,10 @@
67
67
  "name_in_library": {
68
68
  "$ref": "./_Activatable.schema.json#/$defs/NameInLibrary"
69
69
  },
70
+ "input": {
71
+ "description": "A string that is used as a label for an input field.",
72
+ "$ref": "./_Activatable.schema.json#/$defs/Input"
73
+ },
70
74
  "rules": {
71
75
  "$ref": "./_Activatable.schema.json#/$defs/Rules"
72
76
  },
@@ -75,6 +79,10 @@
75
79
  "type": "string",
76
80
  "minLength": 1
77
81
  },
82
+ "ap_value_append": {
83
+ "description": "A string that gets appended to the default AP Value text with a preceding\nspace. This always happens if present, even if the generated AP Value text\nis replaced.",
84
+ "$ref": "./_Activatable.schema.json#/$defs/AdventurePointsValueAppend"
85
+ },
78
86
  "errata": {
79
87
  "$ref": "./source/_Erratum.schema.json#/$defs/Errata"
80
88
  }
@@ -509,6 +509,14 @@
509
509
  "name": {
510
510
  "description": "Name of the profession variant.",
511
511
  "$ref": "#/$defs/ProfessionName"
512
+ },
513
+ "full_text": {
514
+ "description": "A text that replaces the generated text for the profession variant.",
515
+ "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
516
+ },
517
+ "concluding_text": {
518
+ "description": "A text that is appended to the generated text for the profession variant.\n\nHas no effect when `full_text` is set.",
519
+ "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
512
520
  }
513
521
  },
514
522
  "required": [
@@ -21,11 +21,11 @@
21
21
  "minItems": 1
22
22
  },
23
23
  "type": {
24
- "description": "The talisman type.",
24
+ "description": "The talisman type, if any.",
25
25
  "$ref": "#/$defs/TalismanType"
26
26
  },
27
27
  "ap_value": {
28
- "description": "The AP value for the required trade secret.",
28
+ "description": "The AP value for the required trade secret, if possible.",
29
29
  "type": "integer",
30
30
  "minimum": 5,
31
31
  "multipleOf": 5
@@ -48,8 +48,6 @@
48
48
  "required": [
49
49
  "id",
50
50
  "tradition",
51
- "type",
52
- "ap_value",
53
51
  "src",
54
52
  "translations"
55
53
  ],