optolith-database-schema 0.12.0 → 0.13.0
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 +33 -0
- package/lib/cache/newApplicationsAndUses.d.ts +17 -0
- package/lib/cache/newApplicationsAndUses.js +67 -0
- package/lib/cacheConfig.d.ts +4 -0
- package/lib/cacheConfig.js +1 -0
- package/lib/config/cache.d.ts +7 -0
- package/lib/config/cache.js +4 -0
- package/lib/main.d.ts +42 -0
- package/lib/main.js +44 -0
- package/lib/typeConfig.d.ts +2 -0
- package/lib/types/Advantage.js +4 -2
- package/lib/types/AnimalDisease.js +4 -2
- package/lib/types/AnimalType.js +4 -2
- package/lib/types/ArcaneBardTradition.js +4 -2
- package/lib/types/ArcaneDancerTradition.js +4 -2
- package/lib/types/Aspect.js +4 -2
- package/lib/types/Attribute.js +5 -3
- package/lib/types/Blessing.js +4 -2
- package/lib/types/Cantrip.js +4 -2
- package/lib/types/Ceremony.js +4 -2
- package/lib/types/CombatTechnique_Close.js +4 -2
- package/lib/types/CombatTechnique_Ranged.js +4 -2
- package/lib/types/Condition.js +4 -2
- package/lib/types/Continent.js +4 -2
- package/lib/types/Culture.d.ts +4 -17
- package/lib/types/Culture.js +4 -40
- package/lib/types/DerivedCharacteristic.js +4 -2
- package/lib/types/Disadvantage.js +4 -2
- package/lib/types/Disease.js +4 -2
- package/lib/types/Element.js +4 -2
- package/lib/types/ExperienceLevel.js +4 -2
- package/lib/types/EyeColor.js +4 -2
- package/lib/types/FamiliarsTrick.js +4 -2
- package/lib/types/HairColor.js +4 -2
- package/lib/types/Kirchenpraegung.js +4 -2
- package/lib/types/Lessons_Curriculum.js +4 -2
- package/lib/types/Lessons_Guideline.js +4 -2
- package/lib/types/LiturgicalChant.js +4 -2
- package/lib/types/Locale.js +3 -1
- package/lib/types/MetaCondition.js +4 -2
- package/lib/types/PactCategory.js +4 -2
- package/lib/types/Patron.d.ts +2 -12
- package/lib/types/Patron.js +4 -22
- package/lib/types/PatronCategory.js +4 -2
- package/lib/types/PersonalityTrait.js +4 -2
- package/lib/types/Profession.d.ts +1 -5
- package/lib/types/Profession.js +4 -8
- package/lib/types/Property.js +4 -2
- package/lib/types/Race.d.ts +68 -134
- package/lib/types/Race.js +4 -13
- package/lib/types/Region.js +4 -2
- package/lib/types/Ritual.js +4 -2
- package/lib/types/Service.d.ts +1 -4
- package/lib/types/Service.js +4 -7
- package/lib/types/SexPractice.js +4 -2
- package/lib/types/Skill.d.ts +2 -10
- package/lib/types/Skill.js +4 -21
- package/lib/types/SkillGroup.js +4 -2
- package/lib/types/SkillModificationLevel.d.ts +1 -4
- package/lib/types/SkillModificationLevel.js +4 -7
- package/lib/types/SocialStatus.js +4 -2
- package/lib/types/Spell.js +4 -2
- package/lib/types/State.js +4 -2
- package/lib/types/Talisman.d.ts +1 -7
- package/lib/types/Talisman.js +4 -10
- package/lib/types/TargetCategory.js +4 -2
- package/lib/types/UI.d.ts +171 -128
- package/lib/types/UI.js +2 -0
- package/lib/types/_Activatable.d.ts +5 -19
- package/lib/types/_Activatable.js +1 -40
- package/lib/types/_ActivatableSelectOptionCategory.d.ts +1 -4
- package/lib/types/_ActivatableSelectOptionCategory.js +1 -8
- package/lib/types/_ActivatableSkillCastingTime.d.ts +1 -4
- package/lib/types/_ActivatableSkillCastingTime.js +1 -5
- package/lib/types/_ActivatableSkillCheckResultBased.d.ts +2 -8
- package/lib/types/_ActivatableSkillCheckResultBased.js +1 -16
- package/lib/types/_ActivatableSkillDuration.d.ts +1 -12
- package/lib/types/_ActivatableSkillDuration.js +1 -13
- package/lib/types/_ActivatableSkillRange.d.ts +1 -4
- package/lib/types/_ActivatableSkillRange.js +1 -5
- package/lib/types/_Dice.d.ts +1 -5
- package/lib/types/_Dice.js +1 -9
- package/lib/types/_DiseasePoison.d.ts +2 -6
- package/lib/types/_DiseasePoison.js +1 -11
- package/lib/types/_ImprovementCost.d.ts +1 -6
- package/lib/types/_ImprovementCost.js +1 -10
- package/lib/types/_Sex.d.ts +1 -4
- package/lib/types/_Sex.js +1 -8
- package/lib/types/_SkillCheck.d.ts +1 -8
- package/lib/types/_SkillCheck.js +1 -13
- package/lib/types/equipment/EquipmentPackage.js +4 -2
- package/lib/types/equipment/item/Alchemicum.js +4 -2
- package/lib/types/equipment/item/Ammunition.js +4 -2
- package/lib/types/equipment/item/Animal.js +4 -2
- package/lib/types/equipment/item/AnimalCare.js +4 -2
- package/lib/types/equipment/item/Armor.js +4 -2
- package/lib/types/equipment/item/BandageOrRemedy.js +4 -2
- package/lib/types/equipment/item/Book.js +4 -2
- package/lib/types/equipment/item/CeremonialItem.js +4 -2
- package/lib/types/equipment/item/Clothes.js +4 -2
- package/lib/types/equipment/item/Container.js +4 -2
- package/lib/types/equipment/item/Elixir.js +4 -2
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.js +4 -2
- package/lib/types/equipment/item/GemOrPreciousStone.js +4 -2
- package/lib/types/equipment/item/IlluminationLightSource.d.ts +1 -3
- package/lib/types/equipment/item/IlluminationLightSource.js +4 -6
- package/lib/types/equipment/item/IlluminationRefillsOrSupplies.js +4 -2
- package/lib/types/equipment/item/Jewelry.js +4 -2
- package/lib/types/equipment/item/Liebesspielzeug.js +4 -2
- package/lib/types/equipment/item/LuxuryGood.js +4 -2
- package/lib/types/equipment/item/MagicalArtifact.js +4 -2
- package/lib/types/equipment/item/MusicalInstrument.js +4 -2
- package/lib/types/equipment/item/OrienteeringAid.js +4 -2
- package/lib/types/equipment/item/Poison.d.ts +3 -15
- package/lib/types/equipment/item/Poison.js +4 -20
- package/lib/types/equipment/item/RopeOrChain.js +4 -2
- package/lib/types/equipment/item/Stationary.js +4 -2
- package/lib/types/equipment/item/ThievesTool.js +4 -2
- package/lib/types/equipment/item/ToolOfTheTrade.js +4 -2
- package/lib/types/equipment/item/TravelGearOrTool.js +4 -2
- package/lib/types/equipment/item/Vehicle.js +4 -2
- package/lib/types/equipment/item/Weapon.js +4 -2
- package/lib/types/equipment/item/WeaponAccessory.js +4 -2
- package/lib/types/equipment/item/_Herbary.d.ts +2 -14
- package/lib/types/equipment/item/_Herbary.js +1 -19
- package/lib/types/equipment/item/sub/ArmorType.js +4 -2
- package/lib/types/equipment/item/sub/Reach.js +4 -2
- package/lib/types/magicalActions/AnimistPower.js +4 -2
- package/lib/types/magicalActions/AnimistPower_Tribe.js +4 -2
- package/lib/types/magicalActions/Curse.js +4 -2
- package/lib/types/magicalActions/DominationRitual.js +4 -2
- package/lib/types/magicalActions/ElvenMagicalSong.js +4 -2
- package/lib/types/magicalActions/GeodeRitual.js +4 -2
- package/lib/types/magicalActions/JesterTrick.js +4 -2
- package/lib/types/magicalActions/MagicalDance.js +4 -2
- package/lib/types/magicalActions/MagicalMelody.js +4 -2
- package/lib/types/magicalActions/MagicalRune.js +4 -2
- package/lib/types/magicalActions/ZibiljaRitual.js +4 -2
- package/lib/types/magicalActions/_MusicTradition.d.ts +2 -8
- package/lib/types/magicalActions/_MusicTradition.js +1 -10
- package/lib/types/magicalActions/_SkillReference.d.ts +1 -4
- package/lib/types/magicalActions/_SkillReference.js +1 -5
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.d.ts +1 -4
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.js +1 -5
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.d.ts +1 -5
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.js +1 -6
- package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.d.ts +1 -4
- package/lib/types/prerequisites/single/SexualCharacteristicPrerequisite.js +1 -5
- package/lib/types/prerequisites/single/TextPrerequisite.d.ts +2 -8
- package/lib/types/prerequisites/single/TextPrerequisite.js +1 -10
- package/lib/types/prerequisites/single/TraditionPrerequisite.d.ts +2 -8
- package/lib/types/prerequisites/single/TraditionPrerequisite.js +1 -18
- package/lib/types/rule/CoreRule.d.ts +1 -4
- package/lib/types/rule/CoreRule.js +4 -7
- package/lib/types/rule/FocusRule.js +4 -2
- package/lib/types/rule/FocusRule_Subject.js +4 -2
- package/lib/types/rule/OptionalRule.js +4 -2
- package/lib/types/source/Publication.d.ts +1 -6
- package/lib/types/source/Publication.js +4 -12
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.js +4 -2
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.js +4 -2
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.js +4 -2
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.js +4 -2
- package/lib/types/specialAbility/AncestorGlyph.js +4 -2
- package/lib/types/specialAbility/BlessedTradition.js +4 -2
- package/lib/types/specialAbility/BrawlingSpecialAbility.js +4 -2
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.js +4 -2
- package/lib/types/specialAbility/CombatSpecialAbility.js +4 -2
- package/lib/types/specialAbility/CombatStyleSpecialAbility.js +4 -2
- package/lib/types/specialAbility/CommandSpecialAbility.js +4 -2
- package/lib/types/specialAbility/FamiliarSpecialAbility.js +4 -2
- package/lib/types/specialAbility/FatePointSexSpecialAbility.js +4 -2
- package/lib/types/specialAbility/FatePointSpecialAbility.js +4 -2
- package/lib/types/specialAbility/GeneralSpecialAbility.js +4 -2
- package/lib/types/specialAbility/KarmaSpecialAbility.js +4 -2
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.js +4 -2
- package/lib/types/specialAbility/LycantropicGift.js +4 -2
- package/lib/types/specialAbility/MagicStyleSpecialAbility.js +4 -2
- package/lib/types/specialAbility/MagicalSign.js +4 -2
- package/lib/types/specialAbility/MagicalSpecialAbility.js +4 -2
- package/lib/types/specialAbility/MagicalTradition.js +4 -2
- package/lib/types/specialAbility/PactGift.d.ts +2 -8
- package/lib/types/specialAbility/PactGift.js +4 -12
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.js +4 -2
- package/lib/types/specialAbility/Sermon.js +4 -2
- package/lib/types/specialAbility/SexSpecialAbility.js +4 -2
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.js +4 -2
- package/lib/types/specialAbility/SkillStyleSpecialAbility.js +4 -2
- package/lib/types/specialAbility/VampiricGift.js +4 -2
- package/lib/types/specialAbility/Vision.js +4 -2
- package/lib/types/specialAbility/sub/Language.js +4 -2
- package/lib/types/specialAbility/sub/Script.js +4 -2
- package/lib/types/specialAbility/sub/TradeSecret.js +4 -2
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.js +4 -2
- package/lib/types/traditionArtifacts/AttireEnchantment.js +4 -2
- package/lib/types/traditionArtifacts/BowlEnchantment.js +4 -2
- package/lib/types/traditionArtifacts/CauldronEnchantment.js +4 -2
- package/lib/types/traditionArtifacts/ChronicleEnchantment.js +4 -2
- package/lib/types/traditionArtifacts/DaggerRitual.js +4 -2
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.js +4 -2
- package/lib/types/traditionArtifacts/InstrumentEnchantment.js +4 -2
- package/lib/types/traditionArtifacts/Krallenkettenzauber.js +4 -2
- package/lib/types/traditionArtifacts/OrbEnchantment.js +4 -2
- package/lib/types/traditionArtifacts/RingEnchantment.js +4 -2
- package/lib/types/traditionArtifacts/SickleRitual.js +4 -2
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.js +4 -2
- package/lib/types/traditionArtifacts/StaffEnchantment.js +4 -2
- package/lib/types/traditionArtifacts/ToyEnchantment.js +4 -2
- package/lib/types/traditionArtifacts/Trinkhornzauber.js +4 -2
- package/lib/types/traditionArtifacts/WandEnchantment.js +4 -2
- package/lib/types/traditionArtifacts/WeaponEnchantment.js +4 -2
- package/lib/types/traditionArtifacts/sub/AnimalShape.js +4 -2
- package/lib/types/traditionArtifacts/sub/AnimalShapePath.js +4 -2
- package/lib/types/traditionArtifacts/sub/AnimalShapeSize.js +4 -2
- package/lib/types/traditionArtifacts/sub/Brew.js +4 -2
- package/lib/validation/builders/naming.d.ts +3 -1
- package/lib/validation/builders/naming.js +9 -6
- package/lib/validation/filename.d.ts +1 -1
- package/lib/validation/filename.js +1 -1
- package/lib/validation/raw.d.ts +1 -1
- package/lib/validation/raw.js +3 -4
- package/package.json +2 -2
- package/schema/Culture.schema.json +31 -13
- package/schema/Patron.schema.json +26 -10
- package/schema/Profession.schema.json +10 -4
- package/schema/Race.schema.json +79 -208
- package/schema/Service.schema.json +7 -3
- package/schema/Skill.schema.json +20 -8
- package/schema/SkillModificationLevel.schema.json +7 -3
- package/schema/Talisman.schema.json +16 -6
- package/schema/UI.schema.json +502 -304
- package/schema/_Activatable.schema.json +32 -14
- package/schema/_ActivatableSelectOptionCategory.schema.json +7 -3
- package/schema/_ActivatableSkillCastingTime.schema.json +7 -3
- package/schema/_ActivatableSkillCheckResultBased.schema.json +14 -6
- package/schema/_ActivatableSkillDuration.schema.json +31 -11
- package/schema/_ActivatableSkillRange.schema.json +7 -3
- package/schema/_Dice.schema.json +10 -4
- package/schema/_DiseasePoison.schema.json +10 -4
- package/schema/_ImprovementCost.schema.json +13 -5
- package/schema/_Sex.schema.json +7 -3
- package/schema/_SkillCheck.schema.json +19 -7
- package/schema/equipment/item/IlluminationLightSource.schema.json +4 -2
- package/schema/equipment/item/Poison.schema.json +30 -12
- package/schema/equipment/item/_Herbary.schema.json +32 -12
- package/schema/magicalActions/_MusicTradition.schema.json +14 -6
- package/schema/magicalActions/_SkillReference.schema.json +7 -3
- package/schema/prerequisites/single/PrimaryAttributePrerequisite.schema.json +7 -3
- package/schema/prerequisites/single/RatedMinimumNumberPrerequisite.schema.json +10 -4
- package/schema/prerequisites/single/SexualCharacteristicPrerequisite.schema.json +7 -3
- package/schema/prerequisites/single/TextPrerequisite.schema.json +14 -6
- package/schema/prerequisites/single/TraditionPrerequisite.schema.json +14 -6
- package/schema/rule/CoreRule.schema.json +7 -3
- package/schema/source/Publication.schema.json +13 -5
- package/schema/specialAbility/PactGift.schema.json +14 -6
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main Disadvantage
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "Disadvantage",
|
|
9
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
10
11
|
integrityValidator: todo("Disadvantage"),
|
|
11
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
12
14
|
};
|
package/lib/types/Disease.js
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main Disease
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "Disease",
|
|
9
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
10
11
|
integrityValidator: todo("Disease"),
|
|
11
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
12
14
|
};
|
package/lib/types/Element.js
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main Element
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "Element",
|
|
9
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
10
11
|
integrityValidator: todo("Element"),
|
|
11
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
12
14
|
};
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main ExperienceLevel
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "ExperienceLevel",
|
|
9
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
10
11
|
integrityValidator: todo("ExperienceLevel"),
|
|
11
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
12
14
|
};
|
package/lib/types/EyeColor.js
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main EyeColor
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "EyeColor",
|
|
9
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
10
11
|
integrityValidator: todo("EyeColor"),
|
|
11
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
12
14
|
};
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main FamiliarsTrick
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "FamiliarsTrick",
|
|
9
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
10
11
|
integrityValidator: todo("FamiliarsTrick"),
|
|
11
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
12
14
|
};
|
package/lib/types/HairColor.js
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main HairColor
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "HairColor",
|
|
9
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
10
11
|
integrityValidator: todo("HairColor"),
|
|
11
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
12
14
|
};
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main Kirchenpraegung
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "Kirchenpraegung",
|
|
9
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
10
11
|
integrityValidator: todo("Kirchenpraegung"),
|
|
11
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
12
14
|
};
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main Curriculum
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "Curriculum",
|
|
9
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
10
11
|
integrityValidator: todo("Curriculum"),
|
|
11
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
12
14
|
};
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main Guideline
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "Guideline",
|
|
9
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
10
11
|
integrityValidator: todo("Guideline"),
|
|
11
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
12
14
|
};
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main LiturgicalChant
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "LiturgicalChant",
|
|
9
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
10
11
|
integrityValidator: todo("LiturgicalChant"),
|
|
11
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
12
14
|
};
|
package/lib/types/Locale.js
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main Locale
|
|
3
3
|
*/
|
|
4
4
|
import { Result } from "../helpers/result.js";
|
|
5
|
+
import { validateLanguageFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
7
|
import { getFilenameAsStringId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "Locale",
|
|
9
10
|
id: getFilenameAsStringId,
|
|
10
11
|
integrityValidator: () => Result.ok(undefined),
|
|
11
|
-
schemaValidator: createSchemaValidator(import.meta.url, { ignoreFileNamePattern: true })
|
|
12
|
+
schemaValidator: createSchemaValidator(import.meta.url, { ignoreFileNamePattern: true }),
|
|
13
|
+
fileNameValidator: validateLanguageFileName,
|
|
12
14
|
};
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main MetaCondition
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "MetaCondition",
|
|
9
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
10
11
|
integrityValidator: todo("MetaCondition"),
|
|
11
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
12
14
|
};
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main PactCategory
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "PactCategory",
|
|
9
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
10
11
|
integrityValidator: todo("PactCategory"),
|
|
11
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
12
14
|
};
|
package/lib/types/Patron.d.ts
CHANGED
|
@@ -105,10 +105,7 @@ export type PatronCulture = {
|
|
|
105
105
|
* only part of the given cultures. If they should differ, the patron is only
|
|
106
106
|
* part of the cultures that are not given.
|
|
107
107
|
*/
|
|
108
|
-
export
|
|
109
|
-
Intersection = "Intersection",
|
|
110
|
-
Difference = "Difference"
|
|
111
|
-
}
|
|
108
|
+
export type PatronCultureOperation = "Intersection" | "Difference";
|
|
112
109
|
export type AdvantageAnimalPower = {
|
|
113
110
|
/**
|
|
114
111
|
* The advantage's identifier.
|
|
@@ -166,14 +163,7 @@ export type CombatAnimalPower = {
|
|
|
166
163
|
*/
|
|
167
164
|
value: number;
|
|
168
165
|
};
|
|
169
|
-
export
|
|
170
|
-
Attack = "Attack",
|
|
171
|
-
Parry = "Parry",
|
|
172
|
-
RangedCombat = "RangedCombat",
|
|
173
|
-
Dodge = "Dodge",
|
|
174
|
-
DamagePoints = "DamagePoints",
|
|
175
|
-
Protection = "Protection"
|
|
176
|
-
}
|
|
166
|
+
export type CombatAnimalPowerType = "Attack" | "Parry" | "RangedCombat" | "Dodge" | "DamagePoints" | "Protection";
|
|
177
167
|
export type AnimalPowerLevel2 = {
|
|
178
168
|
tag: "Combat";
|
|
179
169
|
combat: CombatAnimalPower;
|
package/lib/types/Patron.js
CHANGED
|
@@ -2,31 +2,13 @@
|
|
|
2
2
|
* @main Patron
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
-
/**
|
|
8
|
-
* The set operation to combine the set of all patron cultures with the
|
|
9
|
-
* specified set of patron cultures: If they should intersect, the patron is
|
|
10
|
-
* only part of the given cultures. If they should differ, the patron is only
|
|
11
|
-
* part of the cultures that are not given.
|
|
12
|
-
*/
|
|
13
|
-
export var PatronCultureOperation;
|
|
14
|
-
(function (PatronCultureOperation) {
|
|
15
|
-
PatronCultureOperation["Intersection"] = "Intersection";
|
|
16
|
-
PatronCultureOperation["Difference"] = "Difference";
|
|
17
|
-
})(PatronCultureOperation = PatronCultureOperation || (PatronCultureOperation = {}));
|
|
18
|
-
export var CombatAnimalPowerType;
|
|
19
|
-
(function (CombatAnimalPowerType) {
|
|
20
|
-
CombatAnimalPowerType["Attack"] = "Attack";
|
|
21
|
-
CombatAnimalPowerType["Parry"] = "Parry";
|
|
22
|
-
CombatAnimalPowerType["RangedCombat"] = "RangedCombat";
|
|
23
|
-
CombatAnimalPowerType["Dodge"] = "Dodge";
|
|
24
|
-
CombatAnimalPowerType["DamagePoints"] = "DamagePoints";
|
|
25
|
-
CombatAnimalPowerType["Protection"] = "Protection";
|
|
26
|
-
})(CombatAnimalPowerType = CombatAnimalPowerType || (CombatAnimalPowerType = {}));
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
27
8
|
export const config = {
|
|
28
9
|
name: "Patron",
|
|
29
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
30
11
|
integrityValidator: todo("Patron"),
|
|
31
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
32
14
|
};
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main PatronCategory
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "PatronCategory",
|
|
9
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
10
11
|
integrityValidator: todo("PatronCategory"),
|
|
11
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
12
14
|
};
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main PersonalityTrait
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "PersonalityTrait",
|
|
9
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
10
11
|
integrityValidator: todo("PersonalityTrait"),
|
|
11
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
12
14
|
};
|
|
@@ -51,11 +51,7 @@ export type ProfessionGroup = {
|
|
|
51
51
|
tag: "Blessed";
|
|
52
52
|
blessed: {};
|
|
53
53
|
};
|
|
54
|
-
export
|
|
55
|
-
Profane = "Profane",
|
|
56
|
-
Fighter = "Fighter",
|
|
57
|
-
Religious = "Religious"
|
|
58
|
-
}
|
|
54
|
+
export type MundaneProfessionGroup = "Profane" | "Fighter" | "Religious";
|
|
59
55
|
export type MagicalProfessionGroup = {
|
|
60
56
|
/**
|
|
61
57
|
* The curriculum/academy associated with this magical profession, if any.
|
package/lib/types/Profession.js
CHANGED
|
@@ -2,17 +2,13 @@
|
|
|
2
2
|
* @main Profession
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
-
export var MundaneProfessionGroup;
|
|
8
|
-
(function (MundaneProfessionGroup) {
|
|
9
|
-
MundaneProfessionGroup["Profane"] = "Profane";
|
|
10
|
-
MundaneProfessionGroup["Fighter"] = "Fighter";
|
|
11
|
-
MundaneProfessionGroup["Religious"] = "Religious";
|
|
12
|
-
})(MundaneProfessionGroup = MundaneProfessionGroup || (MundaneProfessionGroup = {}));
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
13
8
|
export const config = {
|
|
14
9
|
name: "Profession",
|
|
15
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
16
11
|
integrityValidator: todo("Profession"),
|
|
17
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
18
14
|
};
|
package/lib/types/Property.js
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @main Property
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
+
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
5
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
8
|
export const config = {
|
|
8
9
|
name: "Property",
|
|
9
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
10
11
|
integrityValidator: todo("Property"),
|
|
11
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
|
+
fileNameValidator: validateEntityFileName,
|
|
12
14
|
};
|