optolith-database-schema 0.11.2 → 0.11.4
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 +4 -0
- package/{folders.js → build/config.js} +9 -1
- package/lib/build/config.d.ts +8 -0
- package/lib/build/config.js +16 -0
- package/package.json +2 -2
- package/folders.d.ts +0 -4
- package/lib/config.d.ts +0 -463
- package/lib/config.js +0 -308
- package/lib/errors.d.ts +0 -20
- package/lib/errors.js +0 -33
- package/lib/helpers/array.d.ts +0 -14
- package/lib/helpers/array.js +0 -15
- package/lib/helpers/i18n.d.ts +0 -1
- package/lib/helpers/i18n.js +0 -1
- package/lib/helpers/io.d.ts +0 -29
- package/lib/helpers/io.js +0 -51
- package/lib/helpers/objectPath.d.ts +0 -13
- package/lib/helpers/objectPath.js +0 -3
- package/lib/helpers/pair.d.ts +0 -20
- package/lib/helpers/pair.js +0 -20
- package/lib/helpers/result.d.ts +0 -57
- package/lib/helpers/result.js +0 -45
- package/lib/helpers/typeSafety.d.ts +0 -6
- package/lib/helpers/typeSafety.js +0 -8
- package/lib/main.d.ts +0 -55
- package/lib/main.js +0 -55
- package/lib/typeConfig.d.ts +0 -10
- package/lib/typeConfig.js +0 -1
- package/lib/types/Advantage.d.ts +0 -63
- package/lib/types/Advantage.js +0 -12
- package/lib/types/AnimalDisease.d.ts +0 -59
- package/lib/types/AnimalDisease.js +0 -12
- package/lib/types/AnimalType.d.ts +0 -28
- package/lib/types/AnimalType.js +0 -12
- package/lib/types/ArcaneBardTradition.d.ts +0 -10
- package/lib/types/ArcaneBardTradition.js +0 -12
- package/lib/types/ArcaneDancerTradition.d.ts +0 -10
- package/lib/types/ArcaneDancerTradition.js +0 -12
- package/lib/types/Aspect.d.ts +0 -33
- package/lib/types/Aspect.js +0 -12
- package/lib/types/Attribute.d.ts +0 -36
- package/lib/types/Attribute.js +0 -12
- package/lib/types/Blessing.d.ts +0 -113
- package/lib/types/Blessing.js +0 -12
- package/lib/types/Cantrip.d.ts +0 -183
- package/lib/types/Cantrip.js +0 -12
- package/lib/types/Ceremony.d.ts +0 -113
- package/lib/types/Ceremony.js +0 -12
- package/lib/types/CombatTechnique_Close.d.ts +0 -73
- package/lib/types/CombatTechnique_Close.js +0 -12
- package/lib/types/CombatTechnique_Ranged.d.ts +0 -66
- package/lib/types/CombatTechnique_Ranged.js +0 -12
- package/lib/types/Condition.d.ts +0 -40
- package/lib/types/Condition.js +0 -12
- package/lib/types/Continent.d.ts +0 -30
- package/lib/types/Continent.js +0 -12
- package/lib/types/Culture.d.ts +0 -382
- package/lib/types/Culture.js +0 -50
- package/lib/types/DerivedCharacteristic.d.ts +0 -61
- package/lib/types/DerivedCharacteristic.js +0 -12
- package/lib/types/Disadvantage.d.ts +0 -58
- package/lib/types/Disadvantage.js +0 -12
- package/lib/types/Disease.d.ts +0 -43
- package/lib/types/Disease.js +0 -12
- package/lib/types/Element.d.ts +0 -28
- package/lib/types/Element.js +0 -12
- package/lib/types/ExperienceLevel.d.ts +0 -64
- package/lib/types/ExperienceLevel.js +0 -12
- package/lib/types/EyeColor.d.ts +0 -28
- package/lib/types/EyeColor.js +0 -12
- package/lib/types/FamiliarsTrick.d.ts +0 -266
- package/lib/types/FamiliarsTrick.js +0 -12
- package/lib/types/HairColor.d.ts +0 -28
- package/lib/types/HairColor.js +0 -12
- package/lib/types/Kirchenpraegung.d.ts +0 -10
- package/lib/types/Kirchenpraegung.js +0 -12
- package/lib/types/Lessons_Curriculum.d.ts +0 -236
- package/lib/types/Lessons_Curriculum.js +0 -12
- package/lib/types/Lessons_Guideline.d.ts +0 -34
- package/lib/types/Lessons_Guideline.js +0 -12
- package/lib/types/LiturgicalChant.d.ts +0 -113
- package/lib/types/LiturgicalChant.js +0 -12
- package/lib/types/Locale.d.ts +0 -36
- package/lib/types/Locale.js +0 -12
- package/lib/types/MetaCondition.d.ts +0 -43
- package/lib/types/MetaCondition.js +0 -12
- package/lib/types/PactCategory.d.ts +0 -78
- package/lib/types/PactCategory.js +0 -12
- package/lib/types/Patron.d.ts +0 -207
- package/lib/types/Patron.js +0 -32
- package/lib/types/PatronCategory.d.ts +0 -36
- package/lib/types/PatronCategory.js +0 -12
- package/lib/types/PersonalityTrait.d.ts +0 -67
- package/lib/types/PersonalityTrait.js +0 -12
- package/lib/types/Profession.d.ts +0 -653
- package/lib/types/Profession.js +0 -18
- package/lib/types/Property.d.ts +0 -34
- package/lib/types/Property.js +0 -12
- package/lib/types/Race.d.ts +0 -405
- package/lib/types/Race.js +0 -23
- package/lib/types/Region.d.ts +0 -28
- package/lib/types/Region.js +0 -12
- package/lib/types/Ritual.d.ts +0 -111
- package/lib/types/Ritual.js +0 -12
- package/lib/types/Service.d.ts +0 -46
- package/lib/types/Service.js +0 -17
- package/lib/types/SexPractice.d.ts +0 -47
- package/lib/types/SexPractice.js +0 -12
- package/lib/types/Skill.d.ts +0 -142
- package/lib/types/Skill.js +0 -31
- package/lib/types/SkillGroup.d.ts +0 -37
- package/lib/types/SkillGroup.js +0 -12
- package/lib/types/SkillModificationLevel.d.ts +0 -107
- package/lib/types/SkillModificationLevel.js +0 -17
- package/lib/types/SocialStatus.d.ts +0 -28
- package/lib/types/SocialStatus.js +0 -12
- package/lib/types/Spell.d.ts +0 -111
- package/lib/types/Spell.js +0 -12
- package/lib/types/State.d.ts +0 -36
- package/lib/types/State.js +0 -12
- package/lib/types/Talisman.d.ts +0 -76
- package/lib/types/Talisman.js +0 -20
- package/lib/types/TargetCategory.d.ts +0 -42
- package/lib/types/TargetCategory.js +0 -12
- package/lib/types/UI.d.ts +0 -1062
- package/lib/types/UI.js +0 -12
- package/lib/types/_Activatable.d.ts +0 -1383
- package/lib/types/_Activatable.js +0 -44
- package/lib/types/_ActivatableSelectOptionCategory.d.ts +0 -389
- package/lib/types/_ActivatableSelectOptionCategory.js +0 -8
- package/lib/types/_ActivatableSkill.d.ts +0 -37
- package/lib/types/_ActivatableSkill.js +0 -4
- package/lib/types/_ActivatableSkillCastingTime.d.ts +0 -77
- package/lib/types/_ActivatableSkillCastingTime.js +0 -5
- package/lib/types/_ActivatableSkillCheckResultBased.d.ts +0 -39
- package/lib/types/_ActivatableSkillCheckResultBased.js +0 -16
- package/lib/types/_ActivatableSkillCost.d.ts +0 -255
- package/lib/types/_ActivatableSkillCost.js +0 -1
- package/lib/types/_ActivatableSkillDuration.d.ts +0 -138
- package/lib/types/_ActivatableSkillDuration.js +0 -13
- package/lib/types/_ActivatableSkillEffect.d.ts +0 -68
- package/lib/types/_ActivatableSkillEffect.js +0 -1
- package/lib/types/_ActivatableSkillRange.d.ts +0 -110
- package/lib/types/_ActivatableSkillRange.js +0 -5
- package/lib/types/_ActivatableSkillTargetCategory.d.ts +0 -39
- package/lib/types/_ActivatableSkillTargetCategory.js +0 -1
- package/lib/types/_AlternativeNames.d.ts +0 -11
- package/lib/types/_AlternativeNames.js +0 -1
- package/lib/types/_ArcaneTradition.d.ts +0 -28
- package/lib/types/_ArcaneTradition.js +0 -4
- package/lib/types/_Blessed.d.ts +0 -22
- package/lib/types/_Blessed.js +0 -1
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.d.ts +0 -10
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.js +0 -1
- package/lib/types/_Dice.d.ts +0 -23
- package/lib/types/_Dice.js +0 -9
- package/lib/types/_DiseasePoison.d.ts +0 -114
- package/lib/types/_DiseasePoison.js +0 -15
- package/lib/types/_Enhancements.d.ts +0 -62
- package/lib/types/_Enhancements.js +0 -4
- package/lib/types/_I18n.d.ts +0 -34
- package/lib/types/_I18n.js +0 -1
- package/lib/types/_Identifier.d.ts +0 -1193
- package/lib/types/_Identifier.js +0 -1
- package/lib/types/_IdentifierGroup.d.ts +0 -28
- package/lib/types/_IdentifierGroup.js +0 -1
- package/lib/types/_ImprovementCost.d.ts +0 -9
- package/lib/types/_ImprovementCost.js +0 -10
- package/lib/types/_Influence.d.ts +0 -49
- package/lib/types/_Influence.js +0 -4
- package/lib/types/_LocaleMap.d.ts +0 -10
- package/lib/types/_LocaleMap.js +0 -1
- package/lib/types/_NonEmptyString.d.ts +0 -9
- package/lib/types/_NonEmptyString.js +0 -1
- package/lib/types/_Prerequisite.d.ts +0 -109
- package/lib/types/_Prerequisite.js +0 -4
- package/lib/types/_ResponsiveText.d.ts +0 -54
- package/lib/types/_ResponsiveText.js +0 -1
- package/lib/types/_Sex.d.ts +0 -10
- package/lib/types/_Sex.js +0 -11
- package/lib/types/_SimpleReferences.d.ts +0 -134
- package/lib/types/_SimpleReferences.js +0 -1
- package/lib/types/_SkillCheck.d.ts +0 -22
- package/lib/types/_SkillCheck.js +0 -13
- package/lib/types/_Spellwork.d.ts +0 -18
- package/lib/types/_Spellwork.js +0 -1
- package/lib/types/equipment/EquipmentPackage.d.ts +0 -51
- package/lib/types/equipment/EquipmentPackage.js +0 -12
- package/lib/types/equipment/item/Alchemicum.d.ts +0 -7
- package/lib/types/equipment/item/Alchemicum.js +0 -12
- package/lib/types/equipment/item/Ammunition.d.ts +0 -32
- package/lib/types/equipment/item/Ammunition.js +0 -12
- package/lib/types/equipment/item/Animal.d.ts +0 -19
- package/lib/types/equipment/item/Animal.js +0 -12
- package/lib/types/equipment/item/AnimalCare.d.ts +0 -49
- package/lib/types/equipment/item/AnimalCare.js +0 -12
- package/lib/types/equipment/item/Armor.d.ts +0 -186
- package/lib/types/equipment/item/Armor.js +0 -12
- package/lib/types/equipment/item/BandageOrRemedy.d.ts +0 -37
- package/lib/types/equipment/item/BandageOrRemedy.js +0 -12
- package/lib/types/equipment/item/Book.d.ts +0 -61
- package/lib/types/equipment/item/Book.js +0 -12
- package/lib/types/equipment/item/CeremonialItem.d.ts +0 -42
- package/lib/types/equipment/item/CeremonialItem.js +0 -12
- package/lib/types/equipment/item/Clothes.d.ts +0 -7
- package/lib/types/equipment/item/Clothes.js +0 -12
- package/lib/types/equipment/item/Container.d.ts +0 -7
- package/lib/types/equipment/item/Container.js +0 -12
- package/lib/types/equipment/item/Elixir.d.ts +0 -76
- package/lib/types/equipment/item/Elixir.js +0 -12
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +0 -29
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.js +0 -12
- package/lib/types/equipment/item/GemOrPreciousStone.d.ts +0 -44
- package/lib/types/equipment/item/GemOrPreciousStone.js +0 -12
- package/lib/types/equipment/item/IlluminationLightSource.d.ts +0 -63
- package/lib/types/equipment/item/IlluminationLightSource.js +0 -16
- package/lib/types/equipment/item/IlluminationRefillsOrSupplies.d.ts +0 -7
- package/lib/types/equipment/item/IlluminationRefillsOrSupplies.js +0 -12
- package/lib/types/equipment/item/Jewelry.d.ts +0 -61
- package/lib/types/equipment/item/Jewelry.js +0 -12
- package/lib/types/equipment/item/Liebesspielzeug.d.ts +0 -7
- package/lib/types/equipment/item/Liebesspielzeug.js +0 -12
- package/lib/types/equipment/item/LuxuryGood.d.ts +0 -37
- package/lib/types/equipment/item/LuxuryGood.js +0 -12
- package/lib/types/equipment/item/MagicalArtifact.d.ts +0 -40
- package/lib/types/equipment/item/MagicalArtifact.js +0 -12
- package/lib/types/equipment/item/MusicalInstrument.d.ts +0 -23
- package/lib/types/equipment/item/MusicalInstrument.js +0 -12
- package/lib/types/equipment/item/OrienteeringAid.d.ts +0 -7
- package/lib/types/equipment/item/OrienteeringAid.js +0 -12
- package/lib/types/equipment/item/Poison.d.ts +0 -359
- package/lib/types/equipment/item/Poison.js +0 -30
- package/lib/types/equipment/item/RopeOrChain.d.ts +0 -7
- package/lib/types/equipment/item/RopeOrChain.js +0 -12
- package/lib/types/equipment/item/Stationary.d.ts +0 -7
- package/lib/types/equipment/item/Stationary.js +0 -12
- package/lib/types/equipment/item/ThievesTool.d.ts +0 -7
- package/lib/types/equipment/item/ThievesTool.js +0 -12
- package/lib/types/equipment/item/ToolOfTheTrade.d.ts +0 -61
- package/lib/types/equipment/item/ToolOfTheTrade.js +0 -12
- package/lib/types/equipment/item/TravelGearOrTool.d.ts +0 -7
- package/lib/types/equipment/item/TravelGearOrTool.js +0 -12
- package/lib/types/equipment/item/Vehicle.d.ts +0 -19
- package/lib/types/equipment/item/Vehicle.js +0 -12
- package/lib/types/equipment/item/Weapon.d.ts +0 -166
- package/lib/types/equipment/item/Weapon.js +0 -12
- package/lib/types/equipment/item/WeaponAccessory.d.ts +0 -7
- package/lib/types/equipment/item/WeaponAccessory.js +0 -12
- package/lib/types/equipment/item/_Herbary.d.ts +0 -31
- package/lib/types/equipment/item/_Herbary.js +0 -22
- package/lib/types/equipment/item/_Item.d.ts +0 -160
- package/lib/types/equipment/item/_Item.js +0 -1
- package/lib/types/equipment/item/_MeleeWeapon.d.ts +0 -108
- package/lib/types/equipment/item/_MeleeWeapon.js +0 -4
- package/lib/types/equipment/item/_RangedWeapon.d.ts +0 -109
- package/lib/types/equipment/item/_RangedWeapon.js +0 -4
- package/lib/types/equipment/item/_Weapon.d.ts +0 -57
- package/lib/types/equipment/item/_Weapon.js +0 -1
- package/lib/types/equipment/item/sub/ArmorType.d.ts +0 -37
- package/lib/types/equipment/item/sub/ArmorType.js +0 -12
- package/lib/types/equipment/item/sub/Reach.d.ts +0 -28
- package/lib/types/equipment/item/sub/Reach.js +0 -12
- package/lib/types/magicalActions/AnimistPower.d.ts +0 -238
- package/lib/types/magicalActions/AnimistPower.js +0 -12
- package/lib/types/magicalActions/AnimistPower_Tribe.d.ts +0 -28
- package/lib/types/magicalActions/AnimistPower_Tribe.js +0 -12
- package/lib/types/magicalActions/Curse.d.ts +0 -162
- package/lib/types/magicalActions/Curse.js +0 -12
- package/lib/types/magicalActions/DominationRitual.d.ts +0 -145
- package/lib/types/magicalActions/DominationRitual.js +0 -12
- package/lib/types/magicalActions/ElvenMagicalSong.d.ts +0 -135
- package/lib/types/magicalActions/ElvenMagicalSong.js +0 -12
- package/lib/types/magicalActions/GeodeRitual.d.ts +0 -180
- package/lib/types/magicalActions/GeodeRitual.js +0 -12
- package/lib/types/magicalActions/JesterTrick.d.ts +0 -177
- package/lib/types/magicalActions/JesterTrick.js +0 -12
- package/lib/types/magicalActions/MagicalDance.d.ts +0 -119
- package/lib/types/magicalActions/MagicalDance.js +0 -12
- package/lib/types/magicalActions/MagicalMelody.d.ts +0 -124
- package/lib/types/magicalActions/MagicalMelody.js +0 -12
- package/lib/types/magicalActions/MagicalRune.d.ts +0 -294
- package/lib/types/magicalActions/MagicalRune.js +0 -12
- package/lib/types/magicalActions/ZibiljaRitual.d.ts +0 -102
- package/lib/types/magicalActions/ZibiljaRitual.js +0 -12
- package/lib/types/magicalActions/_MusicTradition.d.ts +0 -36
- package/lib/types/magicalActions/_MusicTradition.js +0 -10
- package/lib/types/magicalActions/_SkillReference.d.ts +0 -14
- package/lib/types/magicalActions/_SkillReference.js +0 -5
- package/lib/types/prerequisites/ConditionalPrerequisites.d.ts +0 -10
- package/lib/types/prerequisites/ConditionalPrerequisites.js +0 -1
- package/lib/types/prerequisites/DisplayOption.d.ts +0 -32
- package/lib/types/prerequisites/DisplayOption.js +0 -1
- package/lib/types/prerequisites/PrerequisiteGroups.d.ts +0 -215
- package/lib/types/prerequisites/PrerequisiteGroups.js +0 -1
- package/lib/types/prerequisites/single/ActivatablePrerequisite.d.ts +0 -31
- package/lib/types/prerequisites/single/ActivatablePrerequisite.js +0 -1
- package/lib/types/prerequisites/single/AncestorBloodPrerequisite.d.ts +0 -5
- package/lib/types/prerequisites/single/AncestorBloodPrerequisite.js +0 -1
- package/lib/types/prerequisites/single/AnimistPowerPrerequisite.d.ts +0 -26
- package/lib/types/prerequisites/single/AnimistPowerPrerequisite.js +0 -1
- package/lib/types/prerequisites/single/CulturePrerequisite.d.ts +0 -13
- package/lib/types/prerequisites/single/CulturePrerequisite.js +0 -1
- package/lib/types/prerequisites/single/EnhancementPrerequisite.d.ts +0 -39
- package/lib/types/prerequisites/single/EnhancementPrerequisite.js +0 -1
- package/lib/types/prerequisites/single/InfluencePrerequisite.d.ts +0 -16
- package/lib/types/prerequisites/single/InfluencePrerequisite.js +0 -1
- package/lib/types/prerequisites/single/PactPrerequisite.d.ts +0 -23
- package/lib/types/prerequisites/single/PactPrerequisite.js +0 -1
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.d.ts +0 -21
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.js +0 -5
- package/lib/types/prerequisites/single/PublicationPrerequisite.d.ts +0 -12
- package/lib/types/prerequisites/single/PublicationPrerequisite.js +0 -1
- package/lib/types/prerequisites/single/RacePrerequisite.d.ts +0 -16
- package/lib/types/prerequisites/single/RacePrerequisite.js +0 -1
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.d.ts +0 -67
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.js +0 -6
- package/lib/types/prerequisites/single/RatedPrerequisite.d.ts +0 -18
- package/lib/types/prerequisites/single/RatedPrerequisite.js +0 -1
- package/lib/types/prerequisites/single/RatedSumPrerequisite.d.ts +0 -19
- package/lib/types/prerequisites/single/RatedSumPrerequisite.js +0 -1
- package/lib/types/prerequisites/single/RulePrerequisite.d.ts +0 -9
- package/lib/types/prerequisites/single/RulePrerequisite.js +0 -1
- package/lib/types/prerequisites/single/SexPrerequisite.d.ts +0 -10
- package/lib/types/prerequisites/single/SexPrerequisite.js +0 -1
- package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.d.ts +0 -11
- package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.js +0 -5
- package/lib/types/prerequisites/single/SocialStatusPrerequisite.d.ts +0 -13
- package/lib/types/prerequisites/single/SocialStatusPrerequisite.js +0 -1
- package/lib/types/prerequisites/single/StatePrerequisite.d.ts +0 -10
- package/lib/types/prerequisites/single/StatePrerequisite.js +0 -1
- package/lib/types/prerequisites/single/TextPrerequisite.d.ts +0 -55
- package/lib/types/prerequisites/single/TextPrerequisite.js +0 -10
- package/lib/types/prerequisites/single/TraditionPrerequisite.d.ts +0 -39
- package/lib/types/prerequisites/single/TraditionPrerequisite.js +0 -18
- package/lib/types/rule/CoreRule.d.ts +0 -312
- package/lib/types/rule/CoreRule.js +0 -17
- package/lib/types/rule/FocusRule.d.ts +0 -53
- package/lib/types/rule/FocusRule.js +0 -12
- package/lib/types/rule/FocusRule_Subject.d.ts +0 -29
- package/lib/types/rule/FocusRule_Subject.js +0 -12
- package/lib/types/rule/OptionalRule.d.ts +0 -41
- package/lib/types/rule/OptionalRule.js +0 -12
- package/lib/types/source/Publication.d.ts +0 -75
- package/lib/types/source/Publication.js +0 -22
- package/lib/types/source/_Erratum.d.ts +0 -26
- package/lib/types/source/_Erratum.js +0 -4
- package/lib/types/source/_PublicationRef.d.ts +0 -151
- package/lib/types/source/_PublicationRef.js +0 -4
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +0 -52
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.js +0 -12
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.d.ts +0 -34
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.js +0 -12
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.d.ts +0 -34
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.js +0 -12
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.d.ts +0 -34
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.js +0 -12
- package/lib/types/specialAbility/AncestorGlyph.d.ts +0 -38
- package/lib/types/specialAbility/AncestorGlyph.js +0 -12
- package/lib/types/specialAbility/BlessedTradition.d.ts +0 -147
- package/lib/types/specialAbility/BlessedTradition.js +0 -12
- package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +0 -34
- package/lib/types/specialAbility/BrawlingSpecialAbility.js +0 -12
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +0 -40
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.js +0 -12
- package/lib/types/specialAbility/CombatSpecialAbility.d.ts +0 -45
- package/lib/types/specialAbility/CombatSpecialAbility.js +0 -12
- package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +0 -42
- package/lib/types/specialAbility/CombatStyleSpecialAbility.js +0 -12
- package/lib/types/specialAbility/CommandSpecialAbility.d.ts +0 -38
- package/lib/types/specialAbility/CommandSpecialAbility.js +0 -12
- package/lib/types/specialAbility/FamiliarSpecialAbility.d.ts +0 -32
- package/lib/types/specialAbility/FamiliarSpecialAbility.js +0 -12
- package/lib/types/specialAbility/FatePointSexSpecialAbility.d.ts +0 -32
- package/lib/types/specialAbility/FatePointSexSpecialAbility.js +0 -12
- package/lib/types/specialAbility/FatePointSpecialAbility.d.ts +0 -39
- package/lib/types/specialAbility/FatePointSpecialAbility.js +0 -12
- package/lib/types/specialAbility/GeneralSpecialAbility.d.ts +0 -44
- package/lib/types/specialAbility/GeneralSpecialAbility.js +0 -12
- package/lib/types/specialAbility/KarmaSpecialAbility.d.ts +0 -37
- package/lib/types/specialAbility/KarmaSpecialAbility.js +0 -12
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +0 -36
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.js +0 -12
- package/lib/types/specialAbility/LycantropicGift.d.ts +0 -32
- package/lib/types/specialAbility/LycantropicGift.js +0 -12
- package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +0 -36
- package/lib/types/specialAbility/MagicStyleSpecialAbility.js +0 -12
- package/lib/types/specialAbility/MagicalSign.d.ts +0 -39
- package/lib/types/specialAbility/MagicalSign.js +0 -12
- package/lib/types/specialAbility/MagicalSpecialAbility.d.ts +0 -43
- package/lib/types/specialAbility/MagicalSpecialAbility.js +0 -12
- package/lib/types/specialAbility/MagicalTradition.d.ts +0 -114
- package/lib/types/specialAbility/MagicalTradition.js +0 -12
- package/lib/types/specialAbility/PactGift.d.ts +0 -103
- package/lib/types/specialAbility/PactGift.js +0 -22
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.d.ts +0 -46
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.js +0 -12
- package/lib/types/specialAbility/Sermon.d.ts +0 -32
- package/lib/types/specialAbility/Sermon.js +0 -12
- package/lib/types/specialAbility/SexSpecialAbility.d.ts +0 -34
- package/lib/types/specialAbility/SexSpecialAbility.js +0 -12
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.d.ts +0 -37
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.js +0 -12
- package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +0 -34
- package/lib/types/specialAbility/SkillStyleSpecialAbility.js +0 -12
- package/lib/types/specialAbility/VampiricGift.d.ts +0 -37
- package/lib/types/specialAbility/VampiricGift.js +0 -12
- package/lib/types/specialAbility/Vision.d.ts +0 -32
- package/lib/types/specialAbility/Vision.js +0 -12
- package/lib/types/specialAbility/_Tradition.d.ts +0 -12
- package/lib/types/specialAbility/_Tradition.js +0 -1
- package/lib/types/specialAbility/sub/Language.d.ts +0 -117
- package/lib/types/specialAbility/sub/Language.js +0 -12
- package/lib/types/specialAbility/sub/Script.d.ts +0 -60
- package/lib/types/specialAbility/sub/Script.js +0 -12
- package/lib/types/specialAbility/sub/TradeSecret.d.ts +0 -48
- package/lib/types/specialAbility/sub/TradeSecret.js +0 -12
- package/lib/types/specialAbility/sub/_LanguageScript.d.ts +0 -11
- package/lib/types/specialAbility/sub/_LanguageScript.js +0 -1
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.d.ts +0 -47
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.js +0 -12
- package/lib/types/traditionArtifacts/AttireEnchantment.d.ts +0 -47
- package/lib/types/traditionArtifacts/AttireEnchantment.js +0 -12
- package/lib/types/traditionArtifacts/BowlEnchantment.d.ts +0 -47
- package/lib/types/traditionArtifacts/BowlEnchantment.js +0 -12
- package/lib/types/traditionArtifacts/CauldronEnchantment.d.ts +0 -61
- package/lib/types/traditionArtifacts/CauldronEnchantment.js +0 -12
- package/lib/types/traditionArtifacts/ChronicleEnchantment.d.ts +0 -47
- package/lib/types/traditionArtifacts/ChronicleEnchantment.js +0 -12
- package/lib/types/traditionArtifacts/DaggerRitual.d.ts +0 -71
- package/lib/types/traditionArtifacts/DaggerRitual.js +0 -12
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.d.ts +0 -47
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.js +0 -12
- package/lib/types/traditionArtifacts/InstrumentEnchantment.d.ts +0 -47
- package/lib/types/traditionArtifacts/InstrumentEnchantment.js +0 -12
- package/lib/types/traditionArtifacts/Krallenkettenzauber.d.ts +0 -47
- package/lib/types/traditionArtifacts/Krallenkettenzauber.js +0 -12
- package/lib/types/traditionArtifacts/OrbEnchantment.d.ts +0 -47
- package/lib/types/traditionArtifacts/OrbEnchantment.js +0 -12
- package/lib/types/traditionArtifacts/RingEnchantment.d.ts +0 -47
- package/lib/types/traditionArtifacts/RingEnchantment.js +0 -12
- package/lib/types/traditionArtifacts/SickleRitual.d.ts +0 -47
- package/lib/types/traditionArtifacts/SickleRitual.js +0 -12
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.d.ts +0 -52
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.js +0 -12
- package/lib/types/traditionArtifacts/StaffEnchantment.d.ts +0 -57
- package/lib/types/traditionArtifacts/StaffEnchantment.js +0 -12
- package/lib/types/traditionArtifacts/ToyEnchantment.d.ts +0 -47
- package/lib/types/traditionArtifacts/ToyEnchantment.js +0 -12
- package/lib/types/traditionArtifacts/Trinkhornzauber.d.ts +0 -47
- package/lib/types/traditionArtifacts/Trinkhornzauber.js +0 -12
- package/lib/types/traditionArtifacts/WandEnchantment.d.ts +0 -42
- package/lib/types/traditionArtifacts/WandEnchantment.js +0 -12
- package/lib/types/traditionArtifacts/WeaponEnchantment.d.ts +0 -47
- package/lib/types/traditionArtifacts/WeaponEnchantment.js +0 -12
- package/lib/types/traditionArtifacts/sub/AnimalShape.d.ts +0 -52
- package/lib/types/traditionArtifacts/sub/AnimalShape.js +0 -12
- package/lib/types/traditionArtifacts/sub/AnimalShapePath.d.ts +0 -28
- package/lib/types/traditionArtifacts/sub/AnimalShapePath.js +0 -12
- package/lib/types/traditionArtifacts/sub/AnimalShapeSize.d.ts +0 -40
- package/lib/types/traditionArtifacts/sub/AnimalShapeSize.js +0 -12
- package/lib/types/traditionArtifacts/sub/Brew.d.ts +0 -28
- package/lib/types/traditionArtifacts/sub/Brew.js +0 -12
- package/lib/validation/builders/integrity.d.ts +0 -57
- package/lib/validation/builders/integrity.js +0 -44
- package/lib/validation/builders/naming.d.ts +0 -13
- package/lib/validation/builders/naming.js +0 -14
- package/lib/validation/builders/schema.d.ts +0 -31
- package/lib/validation/builders/schema.js +0 -32
- package/lib/validation/filename.d.ts +0 -9
- package/lib/validation/filename.js +0 -10
- package/lib/validation/raw.d.ts +0 -9
- package/lib/validation/raw.js +0 -56
- package/lib/validation/schema.d.ts +0 -6
- package/lib/validation/schema.js +0 -33
package/lib/config.js
DELETED
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
import * as Advantage from "./types/Advantage.js";
|
|
2
|
-
import * as AnimalDisease from "./types/AnimalDisease.js";
|
|
3
|
-
import * as AnimalType from "./types/AnimalType.js";
|
|
4
|
-
import * as ArcaneBardTradition from "./types/ArcaneBardTradition.js";
|
|
5
|
-
import * as ArcaneDancerTradition from "./types/ArcaneDancerTradition.js";
|
|
6
|
-
import * as Aspect from "./types/Aspect.js";
|
|
7
|
-
import * as Attribute from "./types/Attribute.js";
|
|
8
|
-
import * as Blessing from "./types/Blessing.js";
|
|
9
|
-
import * as Cantrip from "./types/Cantrip.js";
|
|
10
|
-
import * as Ceremony from "./types/Ceremony.js";
|
|
11
|
-
import * as CloseCombatTechnique from "./types/CombatTechnique_Close.js";
|
|
12
|
-
import * as RangedCombatTechnique from "./types/CombatTechnique_Ranged.js";
|
|
13
|
-
import * as Condition from "./types/Condition.js";
|
|
14
|
-
import * as Continent from "./types/Continent.js";
|
|
15
|
-
import * as Culture from "./types/Culture.js";
|
|
16
|
-
import * as DerivedCharacteristic from "./types/DerivedCharacteristic.js";
|
|
17
|
-
import * as Disadvantage from "./types/Disadvantage.js";
|
|
18
|
-
import * as Disease from "./types/Disease.js";
|
|
19
|
-
import * as Element from "./types/Element.js";
|
|
20
|
-
import * as EquipmentPackage from "./types/equipment/EquipmentPackage.js";
|
|
21
|
-
import * as Alchemicum from "./types/equipment/item/Alchemicum.js";
|
|
22
|
-
import * as Ammunition from "./types/equipment/item/Ammunition.js";
|
|
23
|
-
import * as Animal from "./types/equipment/item/Animal.js";
|
|
24
|
-
import * as AnimalCare from "./types/equipment/item/AnimalCare.js";
|
|
25
|
-
import * as Armor from "./types/equipment/item/Armor.js";
|
|
26
|
-
import * as BandageOrRemedy from "./types/equipment/item/BandageOrRemedy.js";
|
|
27
|
-
import * as Book from "./types/equipment/item/Book.js";
|
|
28
|
-
import * as CeremonialItem from "./types/equipment/item/CeremonialItem.js";
|
|
29
|
-
import * as Clothes from "./types/equipment/item/Clothes.js";
|
|
30
|
-
import * as Container from "./types/equipment/item/Container.js";
|
|
31
|
-
import * as Elixir from "./types/equipment/item/Elixir.js";
|
|
32
|
-
import * as EquipmentOfBlessedOnes from "./types/equipment/item/EquipmentOfBlessedOnes.js";
|
|
33
|
-
import * as GemOrPreciousStone from "./types/equipment/item/GemOrPreciousStone.js";
|
|
34
|
-
import * as IlluminationLightSource from "./types/equipment/item/IlluminationLightSource.js";
|
|
35
|
-
import * as IlluminationRefillsOrSupplies from "./types/equipment/item/IlluminationRefillsOrSupplies.js";
|
|
36
|
-
import * as Jewelry from "./types/equipment/item/Jewelry.js";
|
|
37
|
-
import * as Liebesspielzeug from "./types/equipment/item/Liebesspielzeug.js";
|
|
38
|
-
import * as LuxuryGood from "./types/equipment/item/LuxuryGood.js";
|
|
39
|
-
import * as MagicalArtifact from "./types/equipment/item/MagicalArtifact.js";
|
|
40
|
-
import * as MusicalInstrument from "./types/equipment/item/MusicalInstrument.js";
|
|
41
|
-
import * as OrienteeringAid from "./types/equipment/item/OrienteeringAid.js";
|
|
42
|
-
import * as Poison from "./types/equipment/item/Poison.js";
|
|
43
|
-
import * as RopeOrChain from "./types/equipment/item/RopeOrChain.js";
|
|
44
|
-
import * as Stationary from "./types/equipment/item/Stationary.js";
|
|
45
|
-
import * as ArmorType from "./types/equipment/item/sub/ArmorType.js";
|
|
46
|
-
import * as Reach from "./types/equipment/item/sub/Reach.js";
|
|
47
|
-
import * as ThievesTool from "./types/equipment/item/ThievesTool.js";
|
|
48
|
-
import * as ToolOfTheTrade from "./types/equipment/item/ToolOfTheTrade.js";
|
|
49
|
-
import * as TravelGearOrTool from "./types/equipment/item/TravelGearOrTool.js";
|
|
50
|
-
import * as Vehicle from "./types/equipment/item/Vehicle.js";
|
|
51
|
-
import * as Weapon from "./types/equipment/item/Weapon.js";
|
|
52
|
-
import * as WeaponAccessory from "./types/equipment/item/WeaponAccessory.js";
|
|
53
|
-
import * as ExperienceLevel from "./types/ExperienceLevel.js";
|
|
54
|
-
import * as EyeColor from "./types/EyeColor.js";
|
|
55
|
-
import * as FamiliarsTrick from "./types/FamiliarsTrick.js";
|
|
56
|
-
import * as HairColor from "./types/HairColor.js";
|
|
57
|
-
import * as Kirchenpraegung from "./types/Kirchenpraegung.js";
|
|
58
|
-
import * as Curriculum from "./types/Lessons_Curriculum.js";
|
|
59
|
-
import * as Guideline from "./types/Lessons_Guideline.js";
|
|
60
|
-
import * as LiturgicalChant from "./types/LiturgicalChant.js";
|
|
61
|
-
import * as Locales from "./types/Locale.js";
|
|
62
|
-
import * as AnimistPower from "./types/magicalActions/AnimistPower.js";
|
|
63
|
-
import * as Tribe from "./types/magicalActions/AnimistPower_Tribe.js";
|
|
64
|
-
import * as Curse from "./types/magicalActions/Curse.js";
|
|
65
|
-
import * as DominationRitual from "./types/magicalActions/DominationRitual.js";
|
|
66
|
-
import * as ElvenMagicalSong from "./types/magicalActions/ElvenMagicalSong.js";
|
|
67
|
-
import * as GeodeRitual from "./types/magicalActions/GeodeRitual.js";
|
|
68
|
-
import * as JesterTrick from "./types/magicalActions/JesterTrick.js";
|
|
69
|
-
import * as MagicalDance from "./types/magicalActions/MagicalDance.js";
|
|
70
|
-
import * as MagicalMelody from "./types/magicalActions/MagicalMelody.js";
|
|
71
|
-
import * as MagicalRune from "./types/magicalActions/MagicalRune.js";
|
|
72
|
-
import * as ZibiljaRitual from "./types/magicalActions/ZibiljaRitual.js";
|
|
73
|
-
import * as MetaCondition from "./types/MetaCondition.js";
|
|
74
|
-
import * as PactCategory from "./types/PactCategory.js";
|
|
75
|
-
import * as Patron from "./types/Patron.js";
|
|
76
|
-
import * as PatronCategory from "./types/PatronCategory.js";
|
|
77
|
-
import * as PersonalityTrait from "./types/PersonalityTrait.js";
|
|
78
|
-
import * as Profession from "./types/Profession.js";
|
|
79
|
-
import * as Property from "./types/Property.js";
|
|
80
|
-
import * as Race from "./types/Race.js";
|
|
81
|
-
import * as Region from "./types/Region.js";
|
|
82
|
-
import * as Ritual from "./types/Ritual.js";
|
|
83
|
-
import * as CoreRule from "./types/rule/CoreRule.js";
|
|
84
|
-
import * as FocusRule from "./types/rule/FocusRule.js";
|
|
85
|
-
import * as Subject from "./types/rule/FocusRule_Subject.js";
|
|
86
|
-
import * as OptionalRule from "./types/rule/OptionalRule.js";
|
|
87
|
-
import * as Service from "./types/Service.js";
|
|
88
|
-
import * as SexPractice from "./types/SexPractice.js";
|
|
89
|
-
import * as Skill from "./types/Skill.js";
|
|
90
|
-
import * as SkillGroup from "./types/SkillGroup.js";
|
|
91
|
-
import * as SkillModificationLevel from "./types/SkillModificationLevel.js";
|
|
92
|
-
import * as SocialStatus from "./types/SocialStatus.js";
|
|
93
|
-
import * as Publication from "./types/source/Publication.js";
|
|
94
|
-
import * as AdvancedCombatSpecialAbility from "./types/specialAbility/AdvancedCombatSpecialAbility.js";
|
|
95
|
-
import * as AdvancedKarmaSpecialAbility from "./types/specialAbility/AdvancedKarmaSpecialAbility.js";
|
|
96
|
-
import * as AdvancedMagicalSpecialAbility from "./types/specialAbility/AdvancedMagicalSpecialAbility.js";
|
|
97
|
-
import * as AdvancedSkillSpecialAbility from "./types/specialAbility/AdvancedSkillSpecialAbility.js";
|
|
98
|
-
import * as AncestorGlyph from "./types/specialAbility/AncestorGlyph.js";
|
|
99
|
-
import * as BlessedTradition from "./types/specialAbility/BlessedTradition.js";
|
|
100
|
-
import * as BrawlingSpecialAbility from "./types/specialAbility/BrawlingSpecialAbility.js";
|
|
101
|
-
import * as CeremonialItemSpecialAbility from "./types/specialAbility/CeremonialItemSpecialAbility.js";
|
|
102
|
-
import * as CombatSpecialAbility from "./types/specialAbility/CombatSpecialAbility.js";
|
|
103
|
-
import * as CombatStyleSpecialAbility from "./types/specialAbility/CombatStyleSpecialAbility.js";
|
|
104
|
-
import * as CommandSpecialAbility from "./types/specialAbility/CommandSpecialAbility.js";
|
|
105
|
-
import * as FamiliarSpecialAbility from "./types/specialAbility/FamiliarSpecialAbility.js";
|
|
106
|
-
import * as FatePointSexSpecialAbility from "./types/specialAbility/FatePointSexSpecialAbility.js";
|
|
107
|
-
import * as FatePointSpecialAbility from "./types/specialAbility/FatePointSpecialAbility.js";
|
|
108
|
-
import * as GeneralSpecialAbility from "./types/specialAbility/GeneralSpecialAbility.js";
|
|
109
|
-
import * as KarmaSpecialAbility from "./types/specialAbility/KarmaSpecialAbility.js";
|
|
110
|
-
import * as LiturgicalStyleSpecialAbility from "./types/specialAbility/LiturgicalStyleSpecialAbility.js";
|
|
111
|
-
import * as LycantropicGift from "./types/specialAbility/LycantropicGift.js";
|
|
112
|
-
import * as MagicalSign from "./types/specialAbility/MagicalSign.js";
|
|
113
|
-
import * as MagicalSpecialAbility from "./types/specialAbility/MagicalSpecialAbility.js";
|
|
114
|
-
import * as MagicalTradition from "./types/specialAbility/MagicalTradition.js";
|
|
115
|
-
import * as MagicStyleSpecialAbility from "./types/specialAbility/MagicStyleSpecialAbility.js";
|
|
116
|
-
import * as PactGift from "./types/specialAbility/PactGift.js";
|
|
117
|
-
import * as ProtectiveWardingCircleSpecialAbility from "./types/specialAbility/ProtectiveWardingCircleSpecialAbility.js";
|
|
118
|
-
import * as Sermon from "./types/specialAbility/Sermon.js";
|
|
119
|
-
import * as SexSpecialAbility from "./types/specialAbility/SexSpecialAbility.js";
|
|
120
|
-
import * as SikaryanDrainSpecialAbility from "./types/specialAbility/SikaryanDrainSpecialAbility.js";
|
|
121
|
-
import * as SkillStyleSpecialAbility from "./types/specialAbility/SkillStyleSpecialAbility.js";
|
|
122
|
-
import * as Language from "./types/specialAbility/sub/Language.js";
|
|
123
|
-
import * as Script from "./types/specialAbility/sub/Script.js";
|
|
124
|
-
import * as TradeSecret from "./types/specialAbility/sub/TradeSecret.js";
|
|
125
|
-
import * as VampiricGift from "./types/specialAbility/VampiricGift.js";
|
|
126
|
-
import * as Vision from "./types/specialAbility/Vision.js";
|
|
127
|
-
import * as Spell from "./types/Spell.js";
|
|
128
|
-
import * as State from "./types/State.js";
|
|
129
|
-
import * as Talisman from "./types/Talisman.js";
|
|
130
|
-
import * as TargetCategory from "./types/TargetCategory.js";
|
|
131
|
-
import * as ArcaneOrbEnchantment from "./types/traditionArtifacts/ArcaneOrbEnchantment.js";
|
|
132
|
-
import * as AttireEnchantment from "./types/traditionArtifacts/AttireEnchantment.js";
|
|
133
|
-
import * as BowlEnchantment from "./types/traditionArtifacts/BowlEnchantment.js";
|
|
134
|
-
import * as CauldronEnchantment from "./types/traditionArtifacts/CauldronEnchantment.js";
|
|
135
|
-
import * as ChronicleEnchantment from "./types/traditionArtifacts/ChronicleEnchantment.js";
|
|
136
|
-
import * as DaggerRitual from "./types/traditionArtifacts/DaggerRitual.js";
|
|
137
|
-
import * as FoolsHatEnchantment from "./types/traditionArtifacts/FoolsHatEnchantment.js";
|
|
138
|
-
import * as InstrumentEnchantment from "./types/traditionArtifacts/InstrumentEnchantment.js";
|
|
139
|
-
import * as Krallenkettenzauber from "./types/traditionArtifacts/Krallenkettenzauber.js";
|
|
140
|
-
import * as OrbEnchantment from "./types/traditionArtifacts/OrbEnchantment.js";
|
|
141
|
-
import * as RingEnchantment from "./types/traditionArtifacts/RingEnchantment.js";
|
|
142
|
-
import * as SickleRitual from "./types/traditionArtifacts/SickleRitual.js";
|
|
143
|
-
import * as SpellSwordEnchantment from "./types/traditionArtifacts/SpellSwordEnchantment.js";
|
|
144
|
-
import * as StaffEnchantment from "./types/traditionArtifacts/StaffEnchantment.js";
|
|
145
|
-
import * as AnimalShape from "./types/traditionArtifacts/sub/AnimalShape.js";
|
|
146
|
-
import * as AnimalShapePath from "./types/traditionArtifacts/sub/AnimalShapePath.js";
|
|
147
|
-
import * as AnimalShapeSize from "./types/traditionArtifacts/sub/AnimalShapeSize.js";
|
|
148
|
-
import * as Brew from "./types/traditionArtifacts/sub/Brew.js";
|
|
149
|
-
import * as ToyEnchantment from "./types/traditionArtifacts/ToyEnchantment.js";
|
|
150
|
-
import * as Trinkhornzauber from "./types/traditionArtifacts/Trinkhornzauber.js";
|
|
151
|
-
import * as WandEnchantment from "./types/traditionArtifacts/WandEnchantment.js";
|
|
152
|
-
import * as WeaponEnchantment from "./types/traditionArtifacts/WeaponEnchantment.js";
|
|
153
|
-
import * as UI from "./types/UI.js";
|
|
154
|
-
export const configMap = {
|
|
155
|
-
advancedCombatSpecialAbilities: AdvancedCombatSpecialAbility.config,
|
|
156
|
-
advancedKarmaSpecialAbilities: AdvancedKarmaSpecialAbility.config,
|
|
157
|
-
advancedMagicalSpecialAbilities: AdvancedMagicalSpecialAbility.config,
|
|
158
|
-
advancedSkillSpecialAbilities: AdvancedSkillSpecialAbility.config,
|
|
159
|
-
advantages: Advantage.config,
|
|
160
|
-
alchemicae: Alchemicum.config,
|
|
161
|
-
ammunition: Ammunition.config,
|
|
162
|
-
ancestorGlyphs: AncestorGlyph.config,
|
|
163
|
-
animalCare: AnimalCare.config,
|
|
164
|
-
animalDiseases: AnimalDisease.config,
|
|
165
|
-
animals: Animal.config,
|
|
166
|
-
animalShapePaths: AnimalShapePath.config,
|
|
167
|
-
animalShapes: AnimalShape.config,
|
|
168
|
-
animalShapeSizes: AnimalShapeSize.config,
|
|
169
|
-
animalTypes: AnimalType.config,
|
|
170
|
-
animistPowers: AnimistPower.config,
|
|
171
|
-
animistPowerTribes: Tribe.config,
|
|
172
|
-
arcaneBardTraditions: ArcaneBardTradition.config,
|
|
173
|
-
arcaneDancerTraditions: ArcaneDancerTradition.config,
|
|
174
|
-
arcaneOrbEnchantments: ArcaneOrbEnchantment.config,
|
|
175
|
-
armors: Armor.config,
|
|
176
|
-
armorTypes: ArmorType.config,
|
|
177
|
-
aspects: Aspect.config,
|
|
178
|
-
attireEnchantments: AttireEnchantment.config,
|
|
179
|
-
attributes: Attribute.config,
|
|
180
|
-
bandagesAndRemedies: BandageOrRemedy.config,
|
|
181
|
-
blessedTraditions: BlessedTradition.config,
|
|
182
|
-
blessings: Blessing.config,
|
|
183
|
-
books: Book.config,
|
|
184
|
-
bowlEnchantments: BowlEnchantment.config,
|
|
185
|
-
brawlingSpecialAbilities: BrawlingSpecialAbility.config,
|
|
186
|
-
brews: Brew.config,
|
|
187
|
-
cantrips: Cantrip.config,
|
|
188
|
-
cauldronEnchantments: CauldronEnchantment.config,
|
|
189
|
-
ceremonialItems: CeremonialItem.config,
|
|
190
|
-
ceremonialItemSpecialAbilities: CeremonialItemSpecialAbility.config,
|
|
191
|
-
ceremonies: Ceremony.config,
|
|
192
|
-
chronicleEnchantments: ChronicleEnchantment.config,
|
|
193
|
-
closeCombatTechniques: CloseCombatTechnique.config,
|
|
194
|
-
clothes: Clothes.config,
|
|
195
|
-
combatSpecialAbilities: CombatSpecialAbility.config,
|
|
196
|
-
combatStyleSpecialAbilities: CombatStyleSpecialAbility.config,
|
|
197
|
-
commandSpecialAbilities: CommandSpecialAbility.config,
|
|
198
|
-
conditions: Condition.config,
|
|
199
|
-
containers: Container.config,
|
|
200
|
-
continents: Continent.config,
|
|
201
|
-
coreRules: CoreRule.config,
|
|
202
|
-
cultures: Culture.config,
|
|
203
|
-
curses: Curse.config,
|
|
204
|
-
daggerRituals: DaggerRitual.config,
|
|
205
|
-
derivedCharacteristics: DerivedCharacteristic.config,
|
|
206
|
-
disadvantages: Disadvantage.config,
|
|
207
|
-
diseases: Disease.config,
|
|
208
|
-
dominationRituals: DominationRitual.config,
|
|
209
|
-
elements: Element.config,
|
|
210
|
-
elixirs: Elixir.config,
|
|
211
|
-
elvenMagicalSongs: ElvenMagicalSong.config,
|
|
212
|
-
equipmentOfBlessedOnes: EquipmentOfBlessedOnes.config,
|
|
213
|
-
equipmentPackages: EquipmentPackage.config,
|
|
214
|
-
experienceLevels: ExperienceLevel.config,
|
|
215
|
-
eyeColors: EyeColor.config,
|
|
216
|
-
familiarSpecialAbilities: FamiliarSpecialAbility.config,
|
|
217
|
-
familiarsTricks: FamiliarsTrick.config,
|
|
218
|
-
fatePointSexSpecialAbilities: FatePointSexSpecialAbility.config,
|
|
219
|
-
fatePointSpecialAbilities: FatePointSpecialAbility.config,
|
|
220
|
-
focusRules: FocusRule.config,
|
|
221
|
-
focusRuleSubjects: Subject.config,
|
|
222
|
-
foolsHatEnchantments: FoolsHatEnchantment.config,
|
|
223
|
-
gemsAndPreciousStones: GemOrPreciousStone.config,
|
|
224
|
-
generalSpecialAbilities: GeneralSpecialAbility.config,
|
|
225
|
-
geodeRituals: GeodeRitual.config,
|
|
226
|
-
hairColors: HairColor.config,
|
|
227
|
-
illuminationLightSources: IlluminationLightSource.config,
|
|
228
|
-
illuminationRefillsAndSupplies: IlluminationRefillsOrSupplies.config,
|
|
229
|
-
instrumentEnchantments: InstrumentEnchantment.config,
|
|
230
|
-
jesterTricks: JesterTrick.config,
|
|
231
|
-
jewelry: Jewelry.config,
|
|
232
|
-
karmaSpecialAbilities: KarmaSpecialAbility.config,
|
|
233
|
-
kirchenpraegungen: Kirchenpraegung.config,
|
|
234
|
-
krallenkettenzauber: Krallenkettenzauber.config,
|
|
235
|
-
languages: Language.config,
|
|
236
|
-
lessonsCurricula: Curriculum.config,
|
|
237
|
-
lessonsGuidelines: Guideline.config,
|
|
238
|
-
liebesspielzeug: Liebesspielzeug.config,
|
|
239
|
-
liturgicalChants: LiturgicalChant.config,
|
|
240
|
-
liturgicalStyleSpecialAbilities: LiturgicalStyleSpecialAbility.config,
|
|
241
|
-
locales: Locales.config,
|
|
242
|
-
luxuryGoods: LuxuryGood.config,
|
|
243
|
-
lycantropicGifts: LycantropicGift.config,
|
|
244
|
-
magicalArtifacts: MagicalArtifact.config,
|
|
245
|
-
magicalDances: MagicalDance.config,
|
|
246
|
-
magicalMelodies: MagicalMelody.config,
|
|
247
|
-
magicalRunes: MagicalRune.config,
|
|
248
|
-
magicalSigns: MagicalSign.config,
|
|
249
|
-
magicalSpecialAbilities: MagicalSpecialAbility.config,
|
|
250
|
-
magicalTraditions: MagicalTradition.config,
|
|
251
|
-
magicStyleSpecialAbilities: MagicStyleSpecialAbility.config,
|
|
252
|
-
metaConditions: MetaCondition.config,
|
|
253
|
-
musicalInstruments: MusicalInstrument.config,
|
|
254
|
-
optionalRules: OptionalRule.config,
|
|
255
|
-
orbEnchantments: OrbEnchantment.config,
|
|
256
|
-
orienteeringAids: OrienteeringAid.config,
|
|
257
|
-
pactCategories: PactCategory.config,
|
|
258
|
-
pactGifts: PactGift.config,
|
|
259
|
-
patronCategories: PatronCategory.config,
|
|
260
|
-
patrons: Patron.config,
|
|
261
|
-
personalityTraits: PersonalityTrait.config,
|
|
262
|
-
poisons: Poison.config,
|
|
263
|
-
professions: Profession.config,
|
|
264
|
-
properties: Property.config,
|
|
265
|
-
protectiveWardingCircleSpecialAbilities: ProtectiveWardingCircleSpecialAbility.config,
|
|
266
|
-
publications: Publication.config,
|
|
267
|
-
races: Race.config,
|
|
268
|
-
rangedCombatTechniques: RangedCombatTechnique.config,
|
|
269
|
-
reaches: Reach.config,
|
|
270
|
-
regions: Region.config,
|
|
271
|
-
ringEnchantments: RingEnchantment.config,
|
|
272
|
-
rituals: Ritual.config,
|
|
273
|
-
ropesAndChains: RopeOrChain.config,
|
|
274
|
-
scripts: Script.config,
|
|
275
|
-
sermons: Sermon.config,
|
|
276
|
-
services: Service.config,
|
|
277
|
-
sexPractices: SexPractice.config,
|
|
278
|
-
sexSpecialAbilities: SexSpecialAbility.config,
|
|
279
|
-
sickleRituals: SickleRitual.config,
|
|
280
|
-
sikaryanDrainSpecialAbilities: SikaryanDrainSpecialAbility.config,
|
|
281
|
-
skillGroups: SkillGroup.config,
|
|
282
|
-
skillModificationLevels: SkillModificationLevel.config,
|
|
283
|
-
skills: Skill.config,
|
|
284
|
-
skillStyleSpecialAbilities: SkillStyleSpecialAbility.config,
|
|
285
|
-
socialStatuses: SocialStatus.config,
|
|
286
|
-
spells: Spell.config,
|
|
287
|
-
spellSwordEnchantments: SpellSwordEnchantment.config,
|
|
288
|
-
staffEnchantments: StaffEnchantment.config,
|
|
289
|
-
states: State.config,
|
|
290
|
-
stationary: Stationary.config,
|
|
291
|
-
talismans: Talisman.config,
|
|
292
|
-
targetCategories: TargetCategory.config,
|
|
293
|
-
thievesTools: ThievesTool.config,
|
|
294
|
-
toolsOfTheTrade: ToolOfTheTrade.config,
|
|
295
|
-
toyEnchantments: ToyEnchantment.config,
|
|
296
|
-
tradeSecrets: TradeSecret.config,
|
|
297
|
-
travelGearAndTools: TravelGearOrTool.config,
|
|
298
|
-
trinkhornzauber: Trinkhornzauber.config,
|
|
299
|
-
ui: UI.config,
|
|
300
|
-
vampiricGifts: VampiricGift.config,
|
|
301
|
-
vehicles: Vehicle.config,
|
|
302
|
-
visions: Vision.config,
|
|
303
|
-
wandEnchantments: WandEnchantment.config,
|
|
304
|
-
weaponAccessories: WeaponAccessory.config,
|
|
305
|
-
weaponEnchantments: WeaponEnchantment.config,
|
|
306
|
-
weapons: Weapon.config,
|
|
307
|
-
zibiljaRituals: ZibiljaRitual.config,
|
|
308
|
-
};
|
package/lib/errors.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { TypeValidationError } from "./main.js";
|
|
2
|
-
/**
|
|
3
|
-
* Options for pretty-printing errors.
|
|
4
|
-
*/
|
|
5
|
-
export type PrintOptions = {
|
|
6
|
-
/**
|
|
7
|
-
* Whether to print each error message in a file or just print that a file has
|
|
8
|
-
* errors.
|
|
9
|
-
* @default false
|
|
10
|
-
*/
|
|
11
|
-
verbose?: boolean;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Pretty-prints an error map.
|
|
15
|
-
* @param errorsByFile A map from file paths to the errors that occurred in
|
|
16
|
-
* them.
|
|
17
|
-
* @param printOptions Configuration options for the printer.
|
|
18
|
-
* @returns The pretty-printed error map.
|
|
19
|
-
*/
|
|
20
|
-
export declare const printErrors: (errorsByFile: Record<string, TypeValidationError[]>, printOptions?: PrintOptions) => string;
|
package/lib/errors.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { filterNullable } from "./helpers/array.js";
|
|
2
|
-
import { collator } from "./helpers/i18n.js";
|
|
3
|
-
/**
|
|
4
|
-
* Pretty-prints an error map.
|
|
5
|
-
* @param errorsByFile A map from file paths to the errors that occurred in
|
|
6
|
-
* them.
|
|
7
|
-
* @param printOptions Configuration options for the printer.
|
|
8
|
-
* @returns The pretty-printed error map.
|
|
9
|
-
*/
|
|
10
|
-
export const printErrors = (errorsByFile, printOptions = {}) => {
|
|
11
|
-
const { verbose = false } = printOptions;
|
|
12
|
-
return Object.entries(errorsByFile)
|
|
13
|
-
.sort(([filePathA], [filePathB]) => collator.compare(filePathA, filePathB))
|
|
14
|
-
.flatMap(verbose
|
|
15
|
-
? ([filePath, errors]) => filterNullable(errors.map(printVerboseError(filePath)))
|
|
16
|
-
: ([filePath, errors]) => [
|
|
17
|
-
...(errors
|
|
18
|
-
.filter((error) => error.keyword === "integrity" || error.keyword === "filename")
|
|
19
|
-
.map(printVerboseError(filePath))),
|
|
20
|
-
...(errors.some(error => error.keyword !== "integrity" && error.keyword !== "filename")
|
|
21
|
-
? [errorMessageBlock([filePath], "has schema errors")]
|
|
22
|
-
: []),
|
|
23
|
-
])
|
|
24
|
-
.join("\n\n");
|
|
25
|
-
};
|
|
26
|
-
const printVerboseError = (filePath) => (error) => {
|
|
27
|
-
const pathSegments = [filePath, ...error.instancePath.split("/").slice(1)];
|
|
28
|
-
return errorMessageBlock(pathSegments, error.message ?? "");
|
|
29
|
-
};
|
|
30
|
-
const errorMessageBlock = (path, message) => [
|
|
31
|
-
...path.map((segment, i) => `${" ".repeat(i * 2)}in "${segment}":`),
|
|
32
|
-
`${" ".repeat(path.length * 2)}${message}`
|
|
33
|
-
].join("\n");
|
package/lib/helpers/array.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
interface Array<T> {
|
|
3
|
-
/**
|
|
4
|
-
* Returns a `Promise` that resolves when all `Promise`s in the array
|
|
5
|
-
* resolve and rejects when any of the `Promise`s in the array rejects.
|
|
6
|
-
*/
|
|
7
|
-
promiseAll<T>(this: Promise<T>[]): Promise<T[]>;
|
|
8
|
-
/**
|
|
9
|
-
* Returns an object from an array of key-value pairs.
|
|
10
|
-
*/
|
|
11
|
-
objectFromEntries<K extends string, T>(this: [key: K, value: T][]): Record<K, T>;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export declare const filterNullable: <T>(arr: T[]) => NonNullable<T>[];
|
package/lib/helpers/array.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(Array.prototype, "promiseAll", {
|
|
2
|
-
configurable: true,
|
|
3
|
-
writable: true,
|
|
4
|
-
value: function promiseAll() {
|
|
5
|
-
return Promise.all(this);
|
|
6
|
-
}
|
|
7
|
-
});
|
|
8
|
-
Object.defineProperty(Array.prototype, "objectFromEntries", {
|
|
9
|
-
configurable: true,
|
|
10
|
-
writable: true,
|
|
11
|
-
value: function objectFromEntries() {
|
|
12
|
-
return Object.fromEntries(this);
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
export const filterNullable = (arr) => arr.filter((x) => x != null);
|
package/lib/helpers/i18n.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const collator: Intl.Collator;
|
package/lib/helpers/i18n.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const collator = Intl.Collator(undefined, { numeric: true });
|
package/lib/helpers/io.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Recursively reads all files in a directory and its subdirectories.
|
|
3
|
-
* @param dirPath The path to the directory to read.
|
|
4
|
-
*/
|
|
5
|
-
export declare function readDirectoryRec(dirPath: string, filterName?: (entryName: string) => boolean): AsyncGenerator<string>;
|
|
6
|
-
/**
|
|
7
|
-
* Reads a JSON file and parses its content.
|
|
8
|
-
* @param filePath The path to the JSON file.
|
|
9
|
-
* @returns The parsed JSON content.
|
|
10
|
-
*/
|
|
11
|
-
export declare const readJsonFile: (filePath: string) => Promise<unknown>;
|
|
12
|
-
/**
|
|
13
|
-
* Reads a YAML file and parses its content.
|
|
14
|
-
* @param filePath The path to the YAML file.
|
|
15
|
-
* @returns The parsed YAML content.
|
|
16
|
-
*/
|
|
17
|
-
export declare const readYamlFile: (filePath: string) => Promise<unknown>;
|
|
18
|
-
/**
|
|
19
|
-
* Changes the extension of a file path.
|
|
20
|
-
* @param path The path to the file.
|
|
21
|
-
* @param ext The new extension to use.
|
|
22
|
-
* @returns
|
|
23
|
-
*/
|
|
24
|
-
export declare const changeFileExtension: (path: string, ext: string) => string;
|
|
25
|
-
/**
|
|
26
|
-
* Checks if a file name represents a hidden file.
|
|
27
|
-
* @param name The file name to check.
|
|
28
|
-
*/
|
|
29
|
-
export declare const isHiddenFileName: (name: string) => boolean;
|
package/lib/helpers/io.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { readFile, readdir } from "fs/promises";
|
|
2
|
-
import { basename, dirname, extname, join } from "path";
|
|
3
|
-
import YAML from "yaml";
|
|
4
|
-
/**
|
|
5
|
-
* Recursively reads all files in a directory and its subdirectories.
|
|
6
|
-
* @param dirPath The path to the directory to read.
|
|
7
|
-
*/
|
|
8
|
-
export async function* readDirectoryRec(dirPath, filterName = () => true) {
|
|
9
|
-
const dirEntries = await readdir(dirPath, { withFileTypes: true });
|
|
10
|
-
for (const dirEntry of dirEntries) {
|
|
11
|
-
if (filterName(dirEntry.name)) {
|
|
12
|
-
const dirEntryPath = join(dirPath, dirEntry.name);
|
|
13
|
-
if (dirEntry.isDirectory()) {
|
|
14
|
-
yield* readDirectoryRec(dirEntryPath);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
yield dirEntryPath;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Reads a JSON file and parses its content.
|
|
24
|
-
* @param filePath The path to the JSON file.
|
|
25
|
-
* @returns The parsed JSON content.
|
|
26
|
-
*/
|
|
27
|
-
export const readJsonFile = async (filePath) => {
|
|
28
|
-
const fileContent = await readFile(filePath, "utf-8");
|
|
29
|
-
return JSON.parse(fileContent);
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Reads a YAML file and parses its content.
|
|
33
|
-
* @param filePath The path to the YAML file.
|
|
34
|
-
* @returns The parsed YAML content.
|
|
35
|
-
*/
|
|
36
|
-
export const readYamlFile = async (filePath) => {
|
|
37
|
-
const fileContent = await readFile(filePath, "utf-8");
|
|
38
|
-
return YAML.parse(fileContent);
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Changes the extension of a file path.
|
|
42
|
-
* @param path The path to the file.
|
|
43
|
-
* @param ext The new extension to use.
|
|
44
|
-
* @returns
|
|
45
|
-
*/
|
|
46
|
-
export const changeFileExtension = (path, ext) => join(dirname(path), basename(path, extname(path)) + ext);
|
|
47
|
-
/**
|
|
48
|
-
* Checks if a file name represents a hidden file.
|
|
49
|
-
* @param name The file name to check.
|
|
50
|
-
*/
|
|
51
|
-
export const isHiddenFileName = (name) => !name.startsWith(".");
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A path segment descriptor is either a key or an index.
|
|
3
|
-
*/
|
|
4
|
-
export type PathSegmentDescriptor = {
|
|
5
|
-
k: string;
|
|
6
|
-
} | {
|
|
7
|
-
i: number;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* A path descriptor is a list of path segment descriptors.
|
|
11
|
-
*/
|
|
12
|
-
export type PathDescriptor = PathSegmentDescriptor[];
|
|
13
|
-
export declare const printPathDescriptor: (pathDescriptor: PathDescriptor) => string;
|
package/lib/helpers/pair.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Map the second element of a pair using a function that receives both
|
|
3
|
-
* elements.
|
|
4
|
-
*/
|
|
5
|
-
export declare const mapSecond: <A, B, C>(f: (second: B, first: A) => C) => (pair: [A, B]) => [A, C];
|
|
6
|
-
/**
|
|
7
|
-
* Map the second element of a pair using a function that receives both
|
|
8
|
-
* elements and returns a `Promise`.
|
|
9
|
-
*/
|
|
10
|
-
export declare const mapSecondAsync: <A, B, C>(f: (second: B, first: A) => Promise<C>) => (pair: [A, B]) => Promise<[A, C]>;
|
|
11
|
-
/**
|
|
12
|
-
* Map a value using a function into the second value of a pair with the
|
|
13
|
-
* original value.
|
|
14
|
-
*/
|
|
15
|
-
export declare const mapToSecond: <A, B>(f: (value: A) => B) => (value: A) => [A, B];
|
|
16
|
-
/**
|
|
17
|
-
* Map a value using a function that returns a `Promise` into the second value
|
|
18
|
-
* of a pair with the original value.
|
|
19
|
-
*/
|
|
20
|
-
export declare const mapToSecondAsync: <A, B>(f: (value: A) => Promise<B>) => (value: A) => Promise<[A, B]>;
|
package/lib/helpers/pair.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Map the second element of a pair using a function that receives both
|
|
3
|
-
* elements.
|
|
4
|
-
*/
|
|
5
|
-
export const mapSecond = (f) => (pair) => [pair[0], f(pair[1], pair[0])];
|
|
6
|
-
/**
|
|
7
|
-
* Map the second element of a pair using a function that receives both
|
|
8
|
-
* elements and returns a `Promise`.
|
|
9
|
-
*/
|
|
10
|
-
export const mapSecondAsync = (f) => async (pair) => [pair[0], await f(pair[1], pair[0])];
|
|
11
|
-
/**
|
|
12
|
-
* Map a value using a function into the second value of a pair with the
|
|
13
|
-
* original value.
|
|
14
|
-
*/
|
|
15
|
-
export const mapToSecond = (f) => (value) => [value, f(value)];
|
|
16
|
-
/**
|
|
17
|
-
* Map a value using a function that returns a `Promise` into the second value
|
|
18
|
-
* of a pair with the original value.
|
|
19
|
-
*/
|
|
20
|
-
export const mapToSecondAsync = (f) => async (value) => [value, await f(value)];
|
package/lib/helpers/result.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A result is either a value or an error.
|
|
3
|
-
*/
|
|
4
|
-
export type Result<T, E> = Ok<T> | Error<E>;
|
|
5
|
-
/**
|
|
6
|
-
* A result that contains a value.
|
|
7
|
-
*/
|
|
8
|
-
export type Ok<T> = {
|
|
9
|
-
readonly tag: "Ok";
|
|
10
|
-
readonly value: T;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* A result that contains an error.
|
|
14
|
-
*/
|
|
15
|
-
export type Error<E> = {
|
|
16
|
-
readonly tag: "Error";
|
|
17
|
-
readonly error: E;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Creates a result that contains a value.
|
|
21
|
-
*/
|
|
22
|
-
export declare const ok: <T>(value: T) => Result<T, never>;
|
|
23
|
-
/**
|
|
24
|
-
* Checks if a result contains a value.
|
|
25
|
-
*/
|
|
26
|
-
export declare const isOk: <T, E>(result: Result<T, E>) => result is Ok<T>;
|
|
27
|
-
/**
|
|
28
|
-
* Creates a result that contains an error.
|
|
29
|
-
*/
|
|
30
|
-
export declare const error: <E>(error: E) => Result<never, E>;
|
|
31
|
-
/**
|
|
32
|
-
* Checks if a result contains an error.
|
|
33
|
-
*/
|
|
34
|
-
export declare const isError: <T, E>(result: Result<T, E>) => result is Error<E>;
|
|
35
|
-
/**
|
|
36
|
-
* Reduces a result to a value of a common type.
|
|
37
|
-
*/
|
|
38
|
-
export declare const reduce: <T, E, R>(result: Result<T, E>, fok: (value: T) => R, ferror: (error: E) => R) => R;
|
|
39
|
-
/**
|
|
40
|
-
* Maps the value of a result to a new value.
|
|
41
|
-
*/
|
|
42
|
-
export declare const map: <T, U, E>(result: Result<T, E>, f: (value: T) => U) => Result<U, E>;
|
|
43
|
-
/**
|
|
44
|
-
* Maps an error to a new error.
|
|
45
|
-
*/
|
|
46
|
-
export declare const mapError: <T, E, F>(result: Result<T, E>, f: (value: E) => F) => Result<T, F>;
|
|
47
|
-
export declare const combine: <T1, T2, TR, E1, E2, ER>(result1: Result<T1, E1>, result2: Result<T2, E2>, fok: (value1: T1, value2: T2) => TR, ferror: (error1: E1, error2: E2) => ER) => Result<TR, E1 | E2 | ER>;
|
|
48
|
-
export declare const Result: Readonly<{
|
|
49
|
-
ok: <T>(value: T) => Result<T, never>;
|
|
50
|
-
isOk: <T_1, E>(result: Result<T_1, E>) => result is Ok<T_1>;
|
|
51
|
-
error: <E_1>(error: E_1) => Result<never, E_1>;
|
|
52
|
-
isError: <T_2, E_2>(result: Result<T_2, E_2>) => result is Error<E_2>;
|
|
53
|
-
reduce: <T_3, E_3, R>(result: Result<T_3, E_3>, fok: (value: T_3) => R, ferror: (error: E_3) => R) => R;
|
|
54
|
-
map: <T_4, U, E_4>(result: Result<T_4, E_4>, f: (value: T_4) => U) => Result<U, E_4>;
|
|
55
|
-
mapError: <T_5, E_5, F>(result: Result<T_5, E_5>, f: (value: E_5) => F) => Result<T_5, F>;
|
|
56
|
-
combine: <T1, T2, TR, E1, E2, ER>(result1: Result<T1, E1>, result2: Result<T2, E2>, fok: (value1: T1, value2: T2) => TR, ferror: (error1: E1, error2: E2) => ER) => Result<TR, E1 | E2 | ER>;
|
|
57
|
-
}>;
|
package/lib/helpers/result.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a result that contains a value.
|
|
3
|
-
*/
|
|
4
|
-
export const ok = (value) => ({ tag: "Ok", value });
|
|
5
|
-
/**
|
|
6
|
-
* Checks if a result contains a value.
|
|
7
|
-
*/
|
|
8
|
-
export const isOk = (result) => result.tag === "Ok";
|
|
9
|
-
/**
|
|
10
|
-
* Creates a result that contains an error.
|
|
11
|
-
*/
|
|
12
|
-
export const error = (error) => ({ tag: "Error", error });
|
|
13
|
-
/**
|
|
14
|
-
* Checks if a result contains an error.
|
|
15
|
-
*/
|
|
16
|
-
export const isError = (result) => result.tag === "Error";
|
|
17
|
-
/**
|
|
18
|
-
* Reduces a result to a value of a common type.
|
|
19
|
-
*/
|
|
20
|
-
export const reduce = (result, fok, ferror) => isOk(result) ? fok(result.value) : ferror(result.error);
|
|
21
|
-
/**
|
|
22
|
-
* Maps the value of a result to a new value.
|
|
23
|
-
*/
|
|
24
|
-
export const map = (result, f) => isOk(result) ? ok(f(result.value)) : result;
|
|
25
|
-
/**
|
|
26
|
-
* Maps an error to a new error.
|
|
27
|
-
*/
|
|
28
|
-
export const mapError = (result, f) => isError(result) ? error(f(result.error)) : result;
|
|
29
|
-
export const combine = (result1, result2, fok, ferror) => isOk(result1)
|
|
30
|
-
? isOk(result2)
|
|
31
|
-
? ok(fok(result1.value, result2.value))
|
|
32
|
-
: result2
|
|
33
|
-
: isOk(result2)
|
|
34
|
-
? result1
|
|
35
|
-
: error(ferror(result1.error, result2.error));
|
|
36
|
-
export const Result = Object.freeze({
|
|
37
|
-
ok,
|
|
38
|
-
isOk,
|
|
39
|
-
error,
|
|
40
|
-
isError,
|
|
41
|
-
reduce,
|
|
42
|
-
map,
|
|
43
|
-
mapError,
|
|
44
|
-
combine,
|
|
45
|
-
});
|