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.
- package/CHANGELOG.md +22 -0
- package/lib/config.d.ts +1 -1
- package/lib/main.d.ts +3 -3
- package/lib/main.js +8 -3
- package/lib/types/Advantage.d.ts +15 -4
- package/lib/types/AnimalDisease.d.ts +1 -1
- package/lib/types/AnimalType.d.ts +2 -2
- package/lib/types/ArcaneBardTradition.d.ts +1 -1
- package/lib/types/ArcaneDancerTradition.d.ts +1 -1
- package/lib/types/Aspect.d.ts +2 -2
- package/lib/types/Attribute.d.ts +2 -2
- package/lib/types/Blessing.d.ts +8 -8
- package/lib/types/Cantrip.d.ts +14 -14
- package/lib/types/Ceremony.d.ts +2 -2
- package/lib/types/CombatTechnique_Close.d.ts +3 -3
- package/lib/types/CombatTechnique_Ranged.d.ts +3 -3
- package/lib/types/Condition.d.ts +2 -2
- package/lib/types/Continent.d.ts +2 -2
- package/lib/types/Culture.d.ts +21 -21
- package/lib/types/DerivedCharacteristic.d.ts +3 -3
- package/lib/types/Disadvantage.d.ts +14 -4
- package/lib/types/Disease.d.ts +1 -1
- package/lib/types/Element.d.ts +2 -2
- package/lib/types/ExperienceLevel.d.ts +2 -2
- package/lib/types/EyeColor.d.ts +2 -2
- package/lib/types/FamiliarsTrick.d.ts +22 -22
- package/lib/types/HairColor.d.ts +2 -2
- package/lib/types/Kirchenpraegung.d.ts +1 -1
- package/lib/types/Lessons_Curriculum.d.ts +18 -18
- package/lib/types/Lessons_Guideline.d.ts +2 -2
- package/lib/types/LiturgicalChant.d.ts +2 -2
- package/lib/types/Locale.d.ts +2 -2
- package/lib/types/MetaCondition.d.ts +2 -2
- package/lib/types/PactCategory.d.ts +6 -6
- package/lib/types/Patron.d.ts +13 -13
- package/lib/types/PatronCategory.d.ts +2 -2
- package/lib/types/PersonalityTrait.d.ts +3 -3
- package/lib/types/Profession.d.ts +53 -43
- package/lib/types/Property.d.ts +2 -2
- package/lib/types/Race.d.ts +14 -14
- package/lib/types/Region.d.ts +2 -2
- package/lib/types/Ritual.d.ts +2 -2
- package/lib/types/Service.d.ts +2 -2
- package/lib/types/SexPractice.d.ts +2 -2
- package/lib/types/Skill.d.ts +6 -6
- package/lib/types/SkillGroup.d.ts +2 -2
- package/lib/types/SkillModificationLevel.d.ts +6 -6
- package/lib/types/SocialStatus.d.ts +2 -2
- package/lib/types/Spell.d.ts +2 -2
- package/lib/types/State.d.ts +2 -2
- package/lib/types/Talisman.d.ts +9 -9
- package/lib/types/TargetCategory.d.ts +3 -3
- package/lib/types/UI.d.ts +1 -1
- package/lib/types/_Activatable.d.ts +211 -103
- package/lib/types/_Activatable.js +4 -35
- package/lib/types/_ActivatableSelectOptionCategory.d.ts +55 -25
- package/lib/types/_ActivatableSkill.d.ts +8 -8
- package/lib/types/_ActivatableSkillCastingTime.d.ts +8 -8
- package/lib/types/_ActivatableSkillCheckResultBased.d.ts +2 -2
- package/lib/types/_ActivatableSkillCost.d.ts +20 -20
- package/lib/types/_ActivatableSkillDuration.d.ts +13 -13
- package/lib/types/_ActivatableSkillEffect.d.ts +4 -4
- package/lib/types/_ActivatableSkillRange.d.ts +6 -6
- package/lib/types/_ActivatableSkillTargetCategory.d.ts +4 -4
- package/lib/types/_AlternativeNames.d.ts +1 -1
- package/lib/types/_ArcaneTradition.d.ts +2 -2
- package/lib/types/_Blessed.d.ts +2 -2
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.d.ts +1 -1
- package/lib/types/_Dice.d.ts +1 -1
- package/lib/types/_DiseasePoison.d.ts +4 -4
- package/lib/types/_Enhancements.d.ts +3 -3
- package/lib/types/_I18n.d.ts +1 -1
- package/lib/types/_Identifier.d.ts +132 -132
- package/lib/types/_IdentifierGroup.d.ts +20 -20
- package/lib/types/_Influence.d.ts +3 -3
- package/lib/types/_LocaleMap.d.ts +1 -1
- package/lib/types/_NonEmptyString.d.ts +2 -2
- package/lib/types/_Prerequisite.d.ts +21 -21
- package/lib/types/_ResponsiveText.d.ts +3 -3
- package/lib/types/_SimpleReferences.d.ts +44 -44
- package/lib/types/_SkillCheck.d.ts +1 -1
- package/lib/types/_Spellwork.d.ts +2 -2
- package/lib/types/equipment/EquipmentPackage.d.ts +3 -3
- package/lib/types/equipment/item/Alchemicum.d.ts +1 -1
- package/lib/types/equipment/item/Ammunition.d.ts +2 -2
- package/lib/types/equipment/item/Animal.d.ts +1 -1
- package/lib/types/equipment/item/AnimalCare.d.ts +5 -5
- package/lib/types/equipment/item/Armor.d.ts +11 -11
- package/lib/types/equipment/item/BandageOrRemedy.d.ts +1 -1
- package/lib/types/equipment/item/Book.d.ts +2 -2
- package/lib/types/equipment/item/CeremonialItem.d.ts +1 -1
- package/lib/types/equipment/item/Clothes.d.ts +1 -1
- package/lib/types/equipment/item/Container.d.ts +1 -1
- package/lib/types/equipment/item/Elixir.d.ts +2 -2
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +1 -1
- package/lib/types/equipment/item/GemOrPreciousStone.d.ts +2 -2
- package/lib/types/equipment/item/IlluminationLightSource.d.ts +3 -3
- package/lib/types/equipment/item/IlluminationRefillsOrSupplies.d.ts +1 -1
- package/lib/types/equipment/item/Jewelry.d.ts +3 -3
- package/lib/types/equipment/item/Liebesspielzeug.d.ts +1 -1
- package/lib/types/equipment/item/LuxuryGood.d.ts +1 -1
- package/lib/types/equipment/item/MagicalArtifact.d.ts +2 -2
- package/lib/types/equipment/item/MusicalInstrument.d.ts +1 -1
- package/lib/types/equipment/item/OrienteeringAid.d.ts +1 -1
- package/lib/types/equipment/item/Poison.d.ts +45 -25
- package/lib/types/equipment/item/Poison.js +1 -0
- package/lib/types/equipment/item/RopeOrChain.d.ts +1 -1
- package/lib/types/equipment/item/Stationary.d.ts +1 -1
- package/lib/types/equipment/item/ThievesTool.d.ts +1 -1
- package/lib/types/equipment/item/ToolOfTheTrade.d.ts +3 -3
- package/lib/types/equipment/item/TravelGearOrTool.d.ts +1 -1
- package/lib/types/equipment/item/Vehicle.d.ts +1 -1
- package/lib/types/equipment/item/Weapon.d.ts +12 -11
- package/lib/types/equipment/item/WeaponAccessory.d.ts +1 -1
- package/lib/types/equipment/item/_Herbary.d.ts +1 -1
- package/lib/types/equipment/item/_Item.d.ts +12 -12
- package/lib/types/equipment/item/_MeleeWeapon.d.ts +7 -7
- package/lib/types/equipment/item/_RangedWeapon.d.ts +6 -6
- package/lib/types/equipment/item/_Weapon.d.ts +5 -5
- package/lib/types/equipment/item/sub/ArmorType.d.ts +5 -5
- package/lib/types/equipment/item/sub/Reach.d.ts +2 -2
- package/lib/types/magicalActions/AnimistPower.d.ts +16 -16
- package/lib/types/magicalActions/AnimistPower_Tribe.d.ts +2 -2
- package/lib/types/magicalActions/Curse.d.ts +10 -10
- package/lib/types/magicalActions/DominationRitual.d.ts +9 -9
- package/lib/types/magicalActions/ElvenMagicalSong.d.ts +7 -7
- package/lib/types/magicalActions/GeodeRitual.d.ts +10 -10
- package/lib/types/magicalActions/JesterTrick.d.ts +9 -9
- package/lib/types/magicalActions/MagicalDance.d.ts +6 -6
- package/lib/types/magicalActions/MagicalMelody.d.ts +6 -6
- package/lib/types/magicalActions/MagicalRune.d.ts +22 -22
- package/lib/types/magicalActions/ZibiljaRitual.d.ts +3 -3
- package/lib/types/magicalActions/_MusicTradition.d.ts +3 -3
- package/lib/types/magicalActions/_SkillReference.d.ts +1 -1
- package/lib/types/prerequisites/ConditionalPrerequisites.d.ts +1 -1
- package/lib/types/prerequisites/DisplayOption.d.ts +16 -2
- package/lib/types/prerequisites/PrerequisiteGroups.d.ts +38 -16
- package/lib/types/prerequisites/single/ActivatablePrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/AncestorBloodPrerequisite.d.ts +5 -0
- package/lib/types/prerequisites/single/AncestorBloodPrerequisite.js +1 -0
- package/lib/types/prerequisites/single/AnimistPowerPrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/CulturePrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/EnhancementPrerequisite.d.ts +4 -4
- package/lib/types/prerequisites/single/InfluencePrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/PactPrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/PublicationPrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/RacePrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.d.ts +67 -0
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.js +6 -0
- package/lib/types/prerequisites/single/RatedPrerequisite.d.ts +1 -56
- package/lib/types/prerequisites/single/RatedSumPrerequisite.d.ts +19 -0
- package/lib/types/prerequisites/single/RatedSumPrerequisite.js +1 -0
- package/lib/types/prerequisites/single/RulePrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/SexPrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.d.ts +11 -0
- package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.js +5 -0
- package/lib/types/prerequisites/single/SocialStatusPrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/StatePrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/TextPrerequisite.d.ts +31 -2
- package/lib/types/prerequisites/single/TextPrerequisite.js +5 -0
- package/lib/types/prerequisites/single/TraditionPrerequisite.d.ts +2 -2
- package/lib/types/rule/CoreRule.d.ts +11 -11
- package/lib/types/rule/FocusRule.d.ts +2 -2
- package/lib/types/rule/FocusRule_Subject.d.ts +2 -2
- package/lib/types/rule/OptionalRule.d.ts +2 -2
- package/lib/types/source/Publication.d.ts +2 -2
- package/lib/types/source/_Erratum.d.ts +2 -2
- package/lib/types/source/_PublicationRef.d.ts +13 -13
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +13 -2
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.d.ts +2 -2
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.d.ts +2 -2
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.d.ts +2 -2
- package/lib/types/specialAbility/AncestorGlyph.d.ts +2 -2
- package/lib/types/specialAbility/BlessedTradition.d.ts +8 -8
- package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +2 -2
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +9 -4
- package/lib/types/specialAbility/CombatSpecialAbility.d.ts +8 -4
- package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +2 -2
- package/lib/types/specialAbility/CommandSpecialAbility.d.ts +1 -1
- package/lib/types/specialAbility/FamiliarSpecialAbility.d.ts +2 -2
- package/lib/types/specialAbility/FatePointSexSpecialAbility.d.ts +2 -2
- package/lib/types/specialAbility/FatePointSpecialAbility.d.ts +7 -2
- package/lib/types/specialAbility/GeneralSpecialAbility.d.ts +14 -4
- package/lib/types/specialAbility/KarmaSpecialAbility.d.ts +9 -4
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +2 -2
- package/lib/types/specialAbility/LycantropicGift.d.ts +2 -2
- package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +2 -2
- package/lib/types/specialAbility/MagicalSign.d.ts +2 -2
- package/lib/types/specialAbility/MagicalSpecialAbility.d.ts +13 -4
- package/lib/types/specialAbility/MagicalTradition.d.ts +3 -3
- package/lib/types/specialAbility/PactGift.d.ts +9 -9
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.d.ts +2 -2
- package/lib/types/specialAbility/Sermon.d.ts +2 -2
- package/lib/types/specialAbility/SexSpecialAbility.d.ts +2 -2
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.d.ts +7 -2
- package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +2 -2
- package/lib/types/specialAbility/VampiricGift.d.ts +9 -4
- package/lib/types/specialAbility/Vision.d.ts +2 -2
- package/lib/types/specialAbility/_Tradition.d.ts +1 -1
- package/lib/types/specialAbility/sub/Language.d.ts +8 -8
- package/lib/types/specialAbility/sub/Script.d.ts +2 -2
- package/lib/types/specialAbility/sub/TradeSecret.d.ts +2 -2
- package/lib/types/specialAbility/sub/_LanguageScript.d.ts +1 -1
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.d.ts +4 -4
- package/lib/types/traditionArtifacts/AttireEnchantment.d.ts +4 -4
- package/lib/types/traditionArtifacts/BowlEnchantment.d.ts +4 -4
- package/lib/types/traditionArtifacts/CauldronEnchantment.d.ts +5 -5
- package/lib/types/traditionArtifacts/ChronicleEnchantment.d.ts +4 -4
- package/lib/types/traditionArtifacts/DaggerRitual.d.ts +8 -8
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.d.ts +4 -4
- package/lib/types/traditionArtifacts/InstrumentEnchantment.d.ts +4 -4
- package/lib/types/traditionArtifacts/Krallenkettenzauber.d.ts +4 -4
- package/lib/types/traditionArtifacts/OrbEnchantment.d.ts +4 -4
- package/lib/types/traditionArtifacts/RingEnchantment.d.ts +4 -4
- package/lib/types/traditionArtifacts/SickleRitual.d.ts +4 -4
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.d.ts +9 -4
- package/lib/types/traditionArtifacts/StaffEnchantment.d.ts +14 -4
- package/lib/types/traditionArtifacts/ToyEnchantment.d.ts +4 -4
- package/lib/types/traditionArtifacts/Trinkhornzauber.d.ts +4 -4
- package/lib/types/traditionArtifacts/WandEnchantment.d.ts +4 -4
- package/lib/types/traditionArtifacts/WeaponEnchantment.d.ts +4 -4
- package/lib/types/traditionArtifacts/sub/AnimalShape.d.ts +4 -4
- package/lib/types/traditionArtifacts/sub/AnimalShapePath.d.ts +2 -2
- package/lib/types/traditionArtifacts/sub/AnimalShapeSize.d.ts +2 -2
- package/lib/types/traditionArtifacts/sub/Brew.d.ts +2 -2
- package/lib/validation/schema.d.ts +5 -5
- package/lib/validation/schema.js +2 -2
- package/package.json +5 -5
- package/schema/Advantage.schema.json +11 -0
- package/schema/Disadvantage.schema.json +8 -0
- package/schema/Profession.schema.json +8 -0
- package/schema/Talisman.schema.json +2 -4
- package/schema/_Activatable.schema.json +166 -0
- package/schema/_ActivatableSelectOptionCategory.schema.json +141 -0
- package/schema/equipment/item/Poison.schema.json +55 -1
- package/schema/equipment/item/Weapon.schema.json +5 -1
- package/schema/equipment/item/sub/ArmorType.schema.json +1 -2
- package/schema/prerequisites/DisplayOption.schema.json +4 -0
- package/schema/prerequisites/PrerequisiteGroups.schema.json +98 -2
- package/schema/prerequisites/single/AncestorBloodPrerequisite.schema.json +14 -0
- package/schema/prerequisites/single/RatedMinimumNumberPrerequisite.schema.json +166 -0
- package/schema/prerequisites/single/RatedPrerequisite.schema.json +0 -125
- package/schema/prerequisites/single/RatedSumPrerequisite.schema.json +33 -0
- package/schema/prerequisites/single/SexualCharacteristicPrerequisite.schema.json +26 -0
- package/schema/prerequisites/single/TextPrerequisite.schema.json +14 -0
- package/schema/specialAbility/AdvancedCombatSpecialAbility.schema.json +8 -0
- package/schema/specialAbility/CeremonialItemSpecialAbility.schema.json +4 -0
- package/schema/specialAbility/CombatSpecialAbility.schema.json +4 -0
- package/schema/specialAbility/FatePointSpecialAbility.schema.json +4 -0
- package/schema/specialAbility/GeneralSpecialAbility.schema.json +8 -0
- package/schema/specialAbility/KarmaSpecialAbility.schema.json +4 -0
- package/schema/specialAbility/MagicalSpecialAbility.schema.json +8 -0
- package/schema/specialAbility/SikaryanDrainSpecialAbility.schema.json +4 -0
- package/schema/specialAbility/VampiricGift.schema.json +4 -0
- package/schema/traditionArtifacts/SpellSwordEnchantment.schema.json +4 -0
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2
|
+
export type FileNameError = {
|
|
3
3
|
keyword: "filename";
|
|
4
4
|
instancePath: string;
|
|
5
5
|
message: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
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
|
|
14
|
+
export type TypeValidationResultErrors = {
|
|
15
15
|
fileNameError?: FileNameError;
|
|
16
16
|
schemaErrors: DefinedError[];
|
|
17
17
|
};
|
|
18
|
-
export
|
|
19
|
-
export
|
|
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>;
|
package/lib/validation/schema.js
CHANGED
|
@@ -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
|
|
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.
|
|
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.
|
|
25
|
+
"ajv": "^8.12.0",
|
|
26
26
|
"ajv-formats": "^2.1.1",
|
|
27
|
-
"yaml": "^2.
|
|
27
|
+
"yaml": "^2.2.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@types/node": "^18.
|
|
30
|
+
"@types/node": "^18.16.3",
|
|
31
31
|
"optolith-tsjsonschemamd": "^0.5.20",
|
|
32
32
|
"standard-version": "^9.5.0",
|
|
33
|
-
"typescript": "^
|
|
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
|
],
|