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
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.10.1](https://github.com/elyukai/optolith-database-schema/compare/v0.10.0...v0.10.1) (2023-05-01)
|
|
6
|
+
|
|
7
|
+
## [0.10.0](https://github.com/elyukai/optolith-database-schema/compare/v0.9.0...v0.10.0) (2023-05-01)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
|
|
12
|
+
* finish schema
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* finish schema ([0ea6a83](https://github.com/elyukai/optolith-database-schema/commit/0ea6a838e22651b0e24708dcb10143db3c4300ca))
|
|
17
|
+
* sort errors by file path, with numbers in ascending order ([abc0bb1](https://github.com/elyukai/optolith-database-schema/commit/abc0bb13fd1d8d72237725ea37031c5697adaab9))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* allow numbers in names ([4f6b2ae](https://github.com/elyukai/optolith-database-schema/commit/4f6b2aea2dba9a92a77b2667ed98617c233bbef1))
|
|
23
|
+
* ignore hidden files ([230326f](https://github.com/elyukai/optolith-database-schema/commit/230326ff25c3faee88f614c3380396070efb1516))
|
|
24
|
+
* the file name id may be 0 for custom entries ([8b1144e](https://github.com/elyukai/optolith-database-schema/commit/8b1144e6f13b46a9ef5aa1824d987ab70cfb8a95))
|
|
25
|
+
* uppercase letters should be allowed after the first letter ([50b2020](https://github.com/elyukai/optolith-database-schema/commit/50b2020bd6ed81c44d944cb8048b966c72b8fb38))
|
|
26
|
+
|
|
5
27
|
## [0.9.0](https://github.com/elyukai/optolith-database-schema/compare/v0.8.1...v0.9.0) (2023-01-14)
|
|
6
28
|
|
|
7
29
|
|
package/lib/config.d.ts
CHANGED
|
@@ -152,7 +152,7 @@ import * as WandEnchantment from "./types/traditionArtifacts/WandEnchantment.js"
|
|
|
152
152
|
import * as WeaponEnchantment from "./types/traditionArtifacts/WeaponEnchantment.js";
|
|
153
153
|
import * as UI from "./types/UI.js";
|
|
154
154
|
import { TypeValidator } from "./validation/schema.js";
|
|
155
|
-
export
|
|
155
|
+
export type TypeMap = {
|
|
156
156
|
advancedCombatSpecialAbilities: AdvancedCombatSpecialAbility.AdvancedCombatSpecialAbility;
|
|
157
157
|
advancedKarmaSpecialAbilities: AdvancedKarmaSpecialAbility.AdvancedKarmaSpecialAbility;
|
|
158
158
|
advancedMagicalSpecialAbilities: AdvancedMagicalSpecialAbility.AdvancedMagicalSpecialAbility;
|
package/lib/main.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TypeMap } from "./config.js";
|
|
2
2
|
import { TypeValidationResultErrors } from "./validation/schema.js";
|
|
3
|
-
|
|
3
|
+
type Result = {
|
|
4
4
|
tag: "Ok";
|
|
5
5
|
value: {
|
|
6
6
|
[K in keyof TypeMap]: TypeMap[K][];
|
|
@@ -9,12 +9,12 @@ declare type Result = {
|
|
|
9
9
|
tag: "Error";
|
|
10
10
|
errors: Record<string, TypeValidationResultErrors>;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type EntityDirectoryPaths = {
|
|
13
13
|
[K in keyof TypeMap]: string;
|
|
14
14
|
};
|
|
15
15
|
export declare const validate: (entityDirPaths: EntityDirectoryPaths, checkIntegrity: boolean) => Promise<Result>;
|
|
16
16
|
export declare const printErrors: (errorsByFile: Record<string, TypeValidationResultErrors>, printOptions?: PrintOptions) => string;
|
|
17
|
-
export
|
|
17
|
+
export type PrintOptions = {
|
|
18
18
|
verbose?: boolean;
|
|
19
19
|
};
|
|
20
20
|
export {};
|
package/lib/main.js
CHANGED
|
@@ -8,10 +8,12 @@ import { jsonSchemaDir } from "../config/directories.js";
|
|
|
8
8
|
import { typeValidatorMap } from "./config.js";
|
|
9
9
|
const readdirRecursive = async (dirPath) => {
|
|
10
10
|
const directoryEntries = await readdir(dirPath, { withFileTypes: true });
|
|
11
|
-
const flattenedRecursivePaths = await Promise.all(directoryEntries
|
|
11
|
+
const flattenedRecursivePaths = await Promise.all(directoryEntries
|
|
12
|
+
.filter(dirEntry => !dirEntry.name.startsWith("."))
|
|
13
|
+
.map(async (dirEntry) => {
|
|
12
14
|
const absoluteEntryPath = join(dirPath, dirEntry.name);
|
|
13
15
|
if (dirEntry.isDirectory()) {
|
|
14
|
-
return await readdirRecursive(absoluteEntryPath);
|
|
16
|
+
return (await readdirRecursive(absoluteEntryPath));
|
|
15
17
|
}
|
|
16
18
|
else if (dirEntry.isFile()) {
|
|
17
19
|
return [absoluteEntryPath];
|
|
@@ -39,7 +41,9 @@ const collator = Intl.Collator(undefined, { numeric: true });
|
|
|
39
41
|
const readDataFileAssocsFromDirectory = async (dirPath) => {
|
|
40
42
|
const filenames = await readdir(dirPath);
|
|
41
43
|
filenames.sort(collator.compare);
|
|
42
|
-
return await Promise.all(filenames
|
|
44
|
+
return await Promise.all(filenames
|
|
45
|
+
.filter(fileName => !fileName.startsWith("."))
|
|
46
|
+
.map(async (fileName) => {
|
|
43
47
|
const filePath = join(dirPath, fileName);
|
|
44
48
|
try {
|
|
45
49
|
const fileContent = YAML.parse(await readFile(join(dirPath, fileName), "utf-8"));
|
|
@@ -111,6 +115,7 @@ export const validate = async (entityDirPaths, checkIntegrity) => {
|
|
|
111
115
|
export const printErrors = (errorsByFile, printOptions = {}) => {
|
|
112
116
|
const { verbose = false } = printOptions;
|
|
113
117
|
return Object.entries(errorsByFile)
|
|
118
|
+
.sort(([filePathA], [filePathB]) => collator.compare(filePathA, filePathB))
|
|
114
119
|
.flatMap(([filePath, errors]) => {
|
|
115
120
|
if (verbose) {
|
|
116
121
|
return filterNullable([
|
package/lib/types/Advantage.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @main Advantage
|
|
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 { AdvantageDisadvantagePrerequisites } from "./_Prerequisite.js";
|
|
7
|
+
import { Errata } from "./source/_Erratum.js";
|
|
8
|
+
import { PublicationRefs } from "./source/_PublicationRef.js";
|
|
9
9
|
/**
|
|
10
10
|
* @title Advantage
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export type Advantage = {
|
|
13
13
|
id: Activatable.Id;
|
|
14
14
|
levels?: Activatable.Levels;
|
|
15
15
|
select_options?: Activatable.SelectOptions;
|
|
@@ -36,9 +36,13 @@ export declare type Advantage = {
|
|
|
36
36
|
*/
|
|
37
37
|
translations: LocaleMap<AdvantageTranslation>;
|
|
38
38
|
};
|
|
39
|
-
export
|
|
39
|
+
export type AdvantageTranslation = {
|
|
40
40
|
name: Activatable.Name;
|
|
41
41
|
name_in_library?: Activatable.NameInLibrary;
|
|
42
|
+
/**
|
|
43
|
+
* A string that is used as a label for an input field.
|
|
44
|
+
*/
|
|
45
|
+
input?: Activatable.Input;
|
|
42
46
|
rules: Activatable.Rules;
|
|
43
47
|
/**
|
|
44
48
|
* The range.
|
|
@@ -46,6 +50,13 @@ export declare type AdvantageTranslation = {
|
|
|
46
50
|
* @minLength 1
|
|
47
51
|
*/
|
|
48
52
|
range?: string;
|
|
53
|
+
ap_value?: Activatable.AdventurePointsValueReplacement;
|
|
54
|
+
/**
|
|
55
|
+
* A string that gets appended to the default AP Value text with a preceding
|
|
56
|
+
* space. This always happens if present, even if the generated AP Value text
|
|
57
|
+
* is replaced.
|
|
58
|
+
*/
|
|
59
|
+
ap_value_append?: Activatable.AdventurePointsValueAppend;
|
|
49
60
|
errata?: Errata;
|
|
50
61
|
};
|
|
51
62
|
export declare const validateSchema: import("../validation/schema.js").TypeValidator<Advantage>;
|
|
@@ -6,7 +6,7 @@ import { NonEmptyString } from "./_NonEmptyString.js";
|
|
|
6
6
|
/**
|
|
7
7
|
* @title Animal Type
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type AnimalType = {
|
|
10
10
|
/**
|
|
11
11
|
* The animal type's identifier. An unique, increasing integer.
|
|
12
12
|
* @integer
|
|
@@ -18,7 +18,7 @@ export declare type AnimalType = {
|
|
|
18
18
|
*/
|
|
19
19
|
translations: LocaleMap<AnimalTypeTranslation>;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type AnimalTypeTranslation = {
|
|
22
22
|
/**
|
|
23
23
|
* The animal type name.
|
|
24
24
|
*/
|
|
@@ -5,5 +5,5 @@ import { ArcaneTradition } from "./_ArcaneTradition.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @title Arcane Bard Tradition
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type ArcaneBardTradition = ArcaneTradition;
|
|
9
9
|
export declare const validateSchema: import("../validation/schema.js").TypeValidator<ArcaneTradition>;
|
|
@@ -5,5 +5,5 @@ import { ArcaneTradition } from "./_ArcaneTradition.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @title Arcane Dancer Tradition
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type ArcaneDancerTradition = ArcaneTradition;
|
|
9
9
|
export declare const validateSchema: import("../validation/schema.js").TypeValidator<ArcaneTradition>;
|
package/lib/types/Aspect.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { NonEmptyString } from "./_NonEmptyString.js";
|
|
|
6
6
|
/**
|
|
7
7
|
* @title Aspect
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type Aspect = {
|
|
10
10
|
/**
|
|
11
11
|
* The aspect's identifier. An unique, increasing integer.
|
|
12
12
|
* @integer
|
|
@@ -18,7 +18,7 @@ export declare type Aspect = {
|
|
|
18
18
|
*/
|
|
19
19
|
translations: LocaleMap<AspectTranslation>;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type AspectTranslation = {
|
|
22
22
|
/**
|
|
23
23
|
* The aspect name.
|
|
24
24
|
*/
|
package/lib/types/Attribute.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { NonEmptyString } from "./_NonEmptyString.js";
|
|
|
7
7
|
/**
|
|
8
8
|
* @title Attribute
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export type Attribute = {
|
|
11
11
|
/**
|
|
12
12
|
* The attribute's identifier. An unique, increasing integer.
|
|
13
13
|
* @integer
|
|
@@ -19,7 +19,7 @@ export declare type Attribute = {
|
|
|
19
19
|
*/
|
|
20
20
|
translations: LocaleMap<AttributeTranslation>;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type AttributeTranslation = {
|
|
23
23
|
/**
|
|
24
24
|
* The attribute's name.
|
|
25
25
|
*/
|
package/lib/types/Blessing.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { LocaleMap } from "./_LocaleMap.js";
|
|
|
10
10
|
/**
|
|
11
11
|
* @title Blessing
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export type Blessing = {
|
|
14
14
|
/**
|
|
15
15
|
* The blessing's identifier. An unique, increasing integer.
|
|
16
16
|
* @integer
|
|
@@ -31,7 +31,7 @@ export declare type Blessing = {
|
|
|
31
31
|
*/
|
|
32
32
|
translations: LocaleMap<BlessingTranslation>;
|
|
33
33
|
};
|
|
34
|
-
export
|
|
34
|
+
export type BlessingTranslation = {
|
|
35
35
|
/**
|
|
36
36
|
* The name of the blessing.
|
|
37
37
|
* @minLength 1
|
|
@@ -60,11 +60,11 @@ export declare type BlessingTranslation = {
|
|
|
60
60
|
/**
|
|
61
61
|
* Measurable parameters of a blessing.
|
|
62
62
|
*/
|
|
63
|
-
export
|
|
63
|
+
export type BlessingPerformanceParameters = {
|
|
64
64
|
range: BlessingRange;
|
|
65
65
|
duration: BlessingDuration;
|
|
66
66
|
};
|
|
67
|
-
export
|
|
67
|
+
export type BlessingRange = {
|
|
68
68
|
tag: "Self";
|
|
69
69
|
self: {};
|
|
70
70
|
} | {
|
|
@@ -74,7 +74,7 @@ export declare type BlessingRange = {
|
|
|
74
74
|
tag: "Fixed";
|
|
75
75
|
fixed: FixedRange;
|
|
76
76
|
};
|
|
77
|
-
export
|
|
77
|
+
export type BlessingDuration = {
|
|
78
78
|
tag: "Immediate";
|
|
79
79
|
immediate: {};
|
|
80
80
|
} | {
|
|
@@ -84,7 +84,7 @@ export declare type BlessingDuration = {
|
|
|
84
84
|
tag: "Indefinite";
|
|
85
85
|
indefinite: IndefiniteBlessingDuration;
|
|
86
86
|
};
|
|
87
|
-
export
|
|
87
|
+
export type FixedBlessingDuration = {
|
|
88
88
|
/**
|
|
89
89
|
* The (unitless) duration.
|
|
90
90
|
* @integer
|
|
@@ -96,13 +96,13 @@ export declare type FixedBlessingDuration = {
|
|
|
96
96
|
*/
|
|
97
97
|
unit: DurationUnit;
|
|
98
98
|
};
|
|
99
|
-
export
|
|
99
|
+
export type IndefiniteBlessingDuration = {
|
|
100
100
|
/**
|
|
101
101
|
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
102
102
|
*/
|
|
103
103
|
translations: LocaleMap<IndefiniteDurationTranslation>;
|
|
104
104
|
};
|
|
105
|
-
export
|
|
105
|
+
export type IndefiniteDurationTranslation = {
|
|
106
106
|
/**
|
|
107
107
|
* A description of the duration.
|
|
108
108
|
* @minLength 1
|
package/lib/types/Cantrip.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { CurriculumReference, MagicalTraditionReference, PropertyReference } fro
|
|
|
15
15
|
/**
|
|
16
16
|
* @title Cantrip
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export type Cantrip = {
|
|
19
19
|
/**
|
|
20
20
|
* The cantrip's identifier. An unique, increasing integer.
|
|
21
21
|
* @integer
|
|
@@ -48,14 +48,14 @@ export declare type Cantrip = {
|
|
|
48
48
|
translations: LocaleMap<CantripTranslation>;
|
|
49
49
|
enhancements?: Enhancements;
|
|
50
50
|
};
|
|
51
|
-
export
|
|
51
|
+
export type CantripNote = {
|
|
52
52
|
tag: "Exclusive";
|
|
53
53
|
exclusive: ExclusiveCantripNote;
|
|
54
54
|
} | {
|
|
55
55
|
tag: "Common";
|
|
56
56
|
common: CommonCantripNotes;
|
|
57
57
|
};
|
|
58
|
-
export
|
|
58
|
+
export type ExclusiveCantripNote = {
|
|
59
59
|
/**
|
|
60
60
|
* The traditions the cantrip is exclusively available to.
|
|
61
61
|
* @minItems 1
|
|
@@ -63,7 +63,7 @@ export declare type ExclusiveCantripNote = {
|
|
|
63
63
|
*/
|
|
64
64
|
traditions: MagicalTraditionReference[];
|
|
65
65
|
};
|
|
66
|
-
export
|
|
66
|
+
export type CommonCantripNotes = {
|
|
67
67
|
/**
|
|
68
68
|
* The academies and traditions the cantrip is commonly teached in.
|
|
69
69
|
* @minItems 1
|
|
@@ -71,14 +71,14 @@ export declare type CommonCantripNotes = {
|
|
|
71
71
|
*/
|
|
72
72
|
list: CommonCantripNote[];
|
|
73
73
|
};
|
|
74
|
-
export
|
|
74
|
+
export type CommonCantripNote = {
|
|
75
75
|
tag: "Academy";
|
|
76
76
|
academy: CurriculumReference;
|
|
77
77
|
} | {
|
|
78
78
|
tag: "Tradition";
|
|
79
79
|
tradition: CommonCantripTraditionNote;
|
|
80
80
|
};
|
|
81
|
-
export
|
|
81
|
+
export type CommonCantripTraditionNote = {
|
|
82
82
|
/**
|
|
83
83
|
* The magical tradition's identifier.
|
|
84
84
|
*/
|
|
@@ -88,14 +88,14 @@ export declare type CommonCantripTraditionNote = {
|
|
|
88
88
|
*/
|
|
89
89
|
translations?: LocaleMap<CommonCantripTraditionNoteTranslation>;
|
|
90
90
|
};
|
|
91
|
-
export
|
|
91
|
+
export type CommonCantripTraditionNoteTranslation = {
|
|
92
92
|
/**
|
|
93
93
|
* A note, appended to the generated string in parenthesis.
|
|
94
94
|
* @minLength 1
|
|
95
95
|
*/
|
|
96
96
|
note: string;
|
|
97
97
|
};
|
|
98
|
-
export
|
|
98
|
+
export type CantripTranslation = {
|
|
99
99
|
/**
|
|
100
100
|
* The name of the spell.
|
|
101
101
|
* @minLength 1
|
|
@@ -124,11 +124,11 @@ export declare type CantripTranslation = {
|
|
|
124
124
|
/**
|
|
125
125
|
* Measurable parameters of a blessing.
|
|
126
126
|
*/
|
|
127
|
-
export
|
|
127
|
+
export type CantripPerformanceParameters = {
|
|
128
128
|
range: CantripRange;
|
|
129
129
|
duration: CantripDuration;
|
|
130
130
|
};
|
|
131
|
-
export
|
|
131
|
+
export type CantripRange = {
|
|
132
132
|
tag: "Self";
|
|
133
133
|
self: {};
|
|
134
134
|
} | {
|
|
@@ -138,7 +138,7 @@ export declare type CantripRange = {
|
|
|
138
138
|
tag: "Fixed";
|
|
139
139
|
fixed: FixedRange;
|
|
140
140
|
};
|
|
141
|
-
export
|
|
141
|
+
export type CantripDuration = {
|
|
142
142
|
tag: "Immediate";
|
|
143
143
|
immediate: {};
|
|
144
144
|
} | {
|
|
@@ -151,7 +151,7 @@ export declare type CantripDuration = {
|
|
|
151
151
|
tag: "Indefinite";
|
|
152
152
|
indefinite: IndefiniteCantripDuration;
|
|
153
153
|
};
|
|
154
|
-
export
|
|
154
|
+
export type FixedCantripDuration = {
|
|
155
155
|
/**
|
|
156
156
|
* If `true`, the duration is a maximum duration.
|
|
157
157
|
*/
|
|
@@ -167,13 +167,13 @@ export declare type FixedCantripDuration = {
|
|
|
167
167
|
*/
|
|
168
168
|
unit: DurationUnit;
|
|
169
169
|
};
|
|
170
|
-
export
|
|
170
|
+
export type IndefiniteCantripDuration = {
|
|
171
171
|
/**
|
|
172
172
|
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
173
173
|
*/
|
|
174
174
|
translations: LocaleMap<IndefiniteDurationTranslation>;
|
|
175
175
|
};
|
|
176
|
-
export
|
|
176
|
+
export type IndefiniteDurationTranslation = {
|
|
177
177
|
/**
|
|
178
178
|
* A description of the duration.
|
|
179
179
|
*/
|
package/lib/types/Ceremony.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { SkillCheck, SkillCheckPenalty } from "./_SkillCheck.js";
|
|
|
16
16
|
/**
|
|
17
17
|
* @title Ceremony
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export type Ceremony = {
|
|
20
20
|
/**
|
|
21
21
|
* The ceremony's identifier. An unique, increasing integer.
|
|
22
22
|
* @integer
|
|
@@ -58,7 +58,7 @@ export declare type Ceremony = {
|
|
|
58
58
|
translations: LocaleMap<CeremonyTranslation>;
|
|
59
59
|
enhancements?: Enhancements;
|
|
60
60
|
};
|
|
61
|
-
export
|
|
61
|
+
export type CeremonyTranslation = {
|
|
62
62
|
/**
|
|
63
63
|
* The name of the ceremony.
|
|
64
64
|
*/
|
|
@@ -9,7 +9,7 @@ import { AttributeReference } from "./_SimpleReferences.js";
|
|
|
9
9
|
/**
|
|
10
10
|
* @title Close Combat Technique
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export type CloseCombatTechnique = {
|
|
13
13
|
/**
|
|
14
14
|
* The close combat technique's identifier. An unique, increasing integer.
|
|
15
15
|
* @integer
|
|
@@ -45,7 +45,7 @@ export declare type CloseCombatTechnique = {
|
|
|
45
45
|
* Special rules for the combat technique that apply to all weapons in this
|
|
46
46
|
* category.
|
|
47
47
|
*/
|
|
48
|
-
export
|
|
48
|
+
export type CloseCombatTechniqueSpecialRules = {
|
|
49
49
|
/**
|
|
50
50
|
* Is parrying possible with this combat technique?
|
|
51
51
|
*/
|
|
@@ -55,7 +55,7 @@ export declare type CloseCombatTechniqueSpecialRules = {
|
|
|
55
55
|
has_length: boolean;
|
|
56
56
|
has_shield_size: boolean;
|
|
57
57
|
};
|
|
58
|
-
export
|
|
58
|
+
export type CloseCombatTechniqueTranslation = {
|
|
59
59
|
/**
|
|
60
60
|
* The name of the condition.
|
|
61
61
|
* @minLength 1
|
|
@@ -9,7 +9,7 @@ import { AttributeReference } from "./_SimpleReferences.js";
|
|
|
9
9
|
/**
|
|
10
10
|
* @title Ranged Combat Technique
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export type RangedCombatTechnique = {
|
|
13
13
|
/**
|
|
14
14
|
* The ranged combat technique's identifier. An unique, increasing integer.
|
|
15
15
|
* @integer
|
|
@@ -45,10 +45,10 @@ export declare type RangedCombatTechnique = {
|
|
|
45
45
|
* Special rules for the combat technique that apply to all weapons in this
|
|
46
46
|
* category.
|
|
47
47
|
*/
|
|
48
|
-
export
|
|
48
|
+
export type RangedCombatTechniqueSpecialRules = {
|
|
49
49
|
has_ammunition: boolean;
|
|
50
50
|
};
|
|
51
|
-
export
|
|
51
|
+
export type RangedCombatTechniqueTranslation = {
|
|
52
52
|
/**
|
|
53
53
|
* The name of the condition.
|
|
54
54
|
* @minLength 1
|
package/lib/types/Condition.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { NonEmptyMarkdown, NonEmptyString } from "./_NonEmptyString.js";
|
|
|
8
8
|
/**
|
|
9
9
|
* @title Condition
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export type Condition = {
|
|
12
12
|
/**
|
|
13
13
|
* The condition's identifier. An unique, increasing integer.
|
|
14
14
|
* @integer
|
|
@@ -21,7 +21,7 @@ export declare type Condition = {
|
|
|
21
21
|
*/
|
|
22
22
|
translations: LocaleMap<ConditionTranslation>;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type ConditionTranslation = {
|
|
25
25
|
/**
|
|
26
26
|
* The condition's name.
|
|
27
27
|
*/
|
package/lib/types/Continent.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { LocaleMap } from "./_LocaleMap.js";
|
|
|
7
7
|
* specific continent.
|
|
8
8
|
* @title Continent
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export type Continent = {
|
|
11
11
|
/**
|
|
12
12
|
* The continent's identifier. An unique, increasing integer.
|
|
13
13
|
* @integer
|
|
@@ -19,7 +19,7 @@ export declare type Continent = {
|
|
|
19
19
|
*/
|
|
20
20
|
translations: LocaleMap<ContinentTranslation>;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type ContinentTranslation = {
|
|
23
23
|
/**
|
|
24
24
|
* The continent name.
|
|
25
25
|
* @minLength 1
|
package/lib/types/Culture.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { LanguageReference, ProfessionReference, ProfessionVariantReference, Scr
|
|
|
12
12
|
/**
|
|
13
13
|
* @title Culture
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export type Culture = {
|
|
16
16
|
/**
|
|
17
17
|
* An unique, increasing integer.
|
|
18
18
|
* @integer
|
|
@@ -90,7 +90,7 @@ export declare type Culture = {
|
|
|
90
90
|
/**
|
|
91
91
|
* If the area knowledge has a fixed value or can be adjusted.
|
|
92
92
|
*/
|
|
93
|
-
export
|
|
93
|
+
export type AreaKnowledge = {
|
|
94
94
|
/**
|
|
95
95
|
* `true` if the area knowledge has a fixed value, `false` if it can be
|
|
96
96
|
* adjusted.
|
|
@@ -111,7 +111,7 @@ export declare enum Weight {
|
|
|
111
111
|
* may be cultures where some professions or profession variants are not
|
|
112
112
|
* represented at all.
|
|
113
113
|
*/
|
|
114
|
-
export
|
|
114
|
+
export type Weighted<ProfessionOrVariant> = {
|
|
115
115
|
/**
|
|
116
116
|
* The list of more common professions or profession variants.
|
|
117
117
|
* @minItems 1
|
|
@@ -138,7 +138,7 @@ export declare enum CommonProfessionConstraintsOperation {
|
|
|
138
138
|
* A list of professions. The filter specifies how the list is applied to
|
|
139
139
|
* all mundane professions.
|
|
140
140
|
*/
|
|
141
|
-
export
|
|
141
|
+
export type CommonProfessionConstraints<Constraint> = {
|
|
142
142
|
/**
|
|
143
143
|
* The list of constraints.
|
|
144
144
|
* @minItems 1
|
|
@@ -159,7 +159,7 @@ export declare enum Rarity {
|
|
|
159
159
|
Rare = "Rare",
|
|
160
160
|
VeryRare = "VeryRare"
|
|
161
161
|
}
|
|
162
|
-
export
|
|
162
|
+
export type ProfessionConstraint = {
|
|
163
163
|
/**
|
|
164
164
|
* The profession's identifier.
|
|
165
165
|
*/
|
|
@@ -183,7 +183,7 @@ export declare enum MundaneProfessionSubgroupConstraint {
|
|
|
183
183
|
Fighter = "Fighter",
|
|
184
184
|
Religious = "Religious"
|
|
185
185
|
}
|
|
186
|
-
export
|
|
186
|
+
export type MagicalTraditionConstraint = {
|
|
187
187
|
/**
|
|
188
188
|
* The magical tradition's identifier.
|
|
189
189
|
*/
|
|
@@ -198,7 +198,7 @@ export declare type MagicalTraditionConstraint = {
|
|
|
198
198
|
*/
|
|
199
199
|
rarity?: Rarity;
|
|
200
200
|
};
|
|
201
|
-
export
|
|
201
|
+
export type BlessedTraditionConstraint = {
|
|
202
202
|
/**
|
|
203
203
|
* The magical tradition's identifier.
|
|
204
204
|
*/
|
|
@@ -213,14 +213,14 @@ export declare type BlessedTraditionConstraint = {
|
|
|
213
213
|
*/
|
|
214
214
|
rarity?: Rarity;
|
|
215
215
|
};
|
|
216
|
-
export
|
|
216
|
+
export type MundaneCommonProfessionConstraint = {
|
|
217
217
|
tag: "Profession";
|
|
218
218
|
profession: ProfessionConstraint;
|
|
219
219
|
} | {
|
|
220
220
|
tag: "ProfessionSubgroup";
|
|
221
221
|
profession_subgroup: MundaneProfessionSubgroupConstraint;
|
|
222
222
|
};
|
|
223
|
-
export
|
|
223
|
+
export type MagicCommonProfessionConstraint = {
|
|
224
224
|
tag: "Tradition";
|
|
225
225
|
tradition: MagicalTraditionConstraint;
|
|
226
226
|
} | {
|
|
@@ -230,16 +230,16 @@ export declare type MagicCommonProfessionConstraint = {
|
|
|
230
230
|
tag: "Profession";
|
|
231
231
|
profession: ProfessionConstraint;
|
|
232
232
|
};
|
|
233
|
-
export
|
|
233
|
+
export type BlessedCommonProfessionConstraint = {
|
|
234
234
|
tag: "Tradition";
|
|
235
235
|
tradition: BlessedTraditionConstraint;
|
|
236
236
|
};
|
|
237
|
-
export
|
|
237
|
+
export type PlainCommonProfessions = CommonProfessionConstraints<ProfessionReference>;
|
|
238
238
|
/**
|
|
239
239
|
* Lists of professions by group.
|
|
240
240
|
* @minProperties 1
|
|
241
241
|
*/
|
|
242
|
-
export
|
|
242
|
+
export type GroupedCommonProfessions = {
|
|
243
243
|
mundane?: CommonProfessionConstraints<MundaneCommonProfessionConstraint>;
|
|
244
244
|
magic?: CommonProfessionConstraints<MagicCommonProfessionConstraint>;
|
|
245
245
|
blessed?: CommonProfessionConstraints<BlessedCommonProfessionConstraint>;
|
|
@@ -250,15 +250,15 @@ export declare type GroupedCommonProfessions = {
|
|
|
250
250
|
* list is either defined by group (as multiple lists) or plain (as a single
|
|
251
251
|
* list).
|
|
252
252
|
*/
|
|
253
|
-
export
|
|
253
|
+
export type CommonProfessions = {
|
|
254
254
|
tag: "Plain";
|
|
255
255
|
plain: PlainCommonProfessions;
|
|
256
256
|
} | {
|
|
257
257
|
tag: "Grouped";
|
|
258
258
|
grouped: GroupedCommonProfessions;
|
|
259
259
|
};
|
|
260
|
-
export
|
|
261
|
-
export
|
|
260
|
+
export type CommonnessRatedSkill = SkillReference;
|
|
261
|
+
export type CulturalPackageItem = {
|
|
262
262
|
/**
|
|
263
263
|
* The skill's identifier.
|
|
264
264
|
* @integer
|
|
@@ -274,7 +274,7 @@ export declare type CulturalPackageItem = {
|
|
|
274
274
|
*/
|
|
275
275
|
points: number;
|
|
276
276
|
};
|
|
277
|
-
export
|
|
277
|
+
export type CultureTranslation = {
|
|
278
278
|
/**
|
|
279
279
|
* The name of the state.
|
|
280
280
|
* @minLength 1
|
|
@@ -309,7 +309,7 @@ export declare type CultureTranslation = {
|
|
|
309
309
|
/**
|
|
310
310
|
* Description and examples of the area knowledge.
|
|
311
311
|
*/
|
|
312
|
-
|
|
312
|
+
type AreaKnowledgeTranslation = {
|
|
313
313
|
/**
|
|
314
314
|
* The full description without examples in parenthesis.
|
|
315
315
|
* @minLength 1
|
|
@@ -327,7 +327,7 @@ declare type AreaKnowledgeTranslation = {
|
|
|
327
327
|
*/
|
|
328
328
|
examples?: AreaKnowledgeExample[];
|
|
329
329
|
};
|
|
330
|
-
export
|
|
330
|
+
export type AreaKnowledgeExample = {
|
|
331
331
|
/**
|
|
332
332
|
* @minLength 1
|
|
333
333
|
*/
|
|
@@ -337,7 +337,7 @@ export declare type AreaKnowledgeExample = {
|
|
|
337
337
|
* Structured description of common names.
|
|
338
338
|
* @minProperties 1
|
|
339
339
|
*/
|
|
340
|
-
export
|
|
340
|
+
export type CommonNames = {
|
|
341
341
|
/**
|
|
342
342
|
* First names can be gender-neutral, but they can also be for a specific
|
|
343
343
|
* binary sex. They are sorted into groups.
|
|
@@ -355,7 +355,7 @@ export declare type CommonNames = {
|
|
|
355
355
|
*/
|
|
356
356
|
naming_rules?: NonEmptyString;
|
|
357
357
|
};
|
|
358
|
-
export
|
|
358
|
+
export type NameGroup = {
|
|
359
359
|
/**
|
|
360
360
|
* The group label.
|
|
361
361
|
*/
|
|
@@ -370,7 +370,7 @@ export declare type NameGroup = {
|
|
|
370
370
|
*/
|
|
371
371
|
names: Name[];
|
|
372
372
|
};
|
|
373
|
-
export
|
|
373
|
+
export type Name = {
|
|
374
374
|
name: NonEmptyString;
|
|
375
375
|
/**
|
|
376
376
|
* Additional information about the name, appended in parenthesis.
|