optolith-database-schema 0.12.1 → 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 +21 -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 +27 -0
- package/lib/main.js +33 -0
- package/lib/types/Advantage.js +2 -2
- package/lib/types/AnimalDisease.js +2 -2
- package/lib/types/AnimalType.js +2 -2
- package/lib/types/ArcaneBardTradition.js +2 -2
- package/lib/types/ArcaneDancerTradition.js +2 -2
- package/lib/types/Aspect.js +2 -2
- package/lib/types/Attribute.js +3 -3
- package/lib/types/Blessing.js +2 -2
- package/lib/types/Cantrip.js +2 -2
- package/lib/types/Ceremony.js +2 -2
- package/lib/types/CombatTechnique_Close.js +2 -2
- package/lib/types/CombatTechnique_Ranged.js +2 -2
- package/lib/types/Condition.js +2 -2
- package/lib/types/Continent.js +2 -2
- package/lib/types/Culture.d.ts +4 -17
- package/lib/types/Culture.js +2 -40
- package/lib/types/DerivedCharacteristic.js +2 -2
- package/lib/types/Disadvantage.js +2 -2
- package/lib/types/Disease.js +2 -2
- package/lib/types/Element.js +2 -2
- package/lib/types/ExperienceLevel.js +2 -2
- package/lib/types/EyeColor.js +2 -2
- package/lib/types/FamiliarsTrick.js +2 -2
- package/lib/types/HairColor.js +2 -2
- package/lib/types/Kirchenpraegung.js +2 -2
- package/lib/types/Lessons_Curriculum.js +2 -2
- package/lib/types/Lessons_Guideline.js +2 -2
- package/lib/types/LiturgicalChant.js +2 -2
- package/lib/types/MetaCondition.js +2 -2
- package/lib/types/PactCategory.js +2 -2
- package/lib/types/Patron.d.ts +2 -12
- package/lib/types/Patron.js +2 -22
- package/lib/types/PatronCategory.js +2 -2
- package/lib/types/PersonalityTrait.js +2 -2
- package/lib/types/Profession.d.ts +1 -5
- package/lib/types/Profession.js +2 -8
- package/lib/types/Property.js +2 -2
- package/lib/types/Race.d.ts +68 -134
- package/lib/types/Race.js +2 -13
- package/lib/types/Region.js +2 -2
- package/lib/types/Ritual.js +2 -2
- package/lib/types/Service.d.ts +1 -4
- package/lib/types/Service.js +2 -7
- package/lib/types/SexPractice.js +2 -2
- package/lib/types/Skill.d.ts +2 -10
- package/lib/types/Skill.js +2 -21
- package/lib/types/SkillGroup.js +2 -2
- package/lib/types/SkillModificationLevel.d.ts +1 -4
- package/lib/types/SkillModificationLevel.js +2 -7
- package/lib/types/SocialStatus.js +2 -2
- package/lib/types/Spell.js +2 -2
- package/lib/types/State.js +2 -2
- package/lib/types/Talisman.d.ts +1 -7
- package/lib/types/Talisman.js +3 -11
- package/lib/types/TargetCategory.js +3 -3
- package/lib/types/UI.d.ts +171 -128
- 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 +2 -2
- package/lib/types/equipment/item/Alchemicum.js +2 -2
- package/lib/types/equipment/item/Ammunition.js +2 -2
- package/lib/types/equipment/item/Animal.js +2 -2
- package/lib/types/equipment/item/AnimalCare.js +2 -2
- package/lib/types/equipment/item/Armor.js +2 -2
- package/lib/types/equipment/item/BandageOrRemedy.js +2 -2
- package/lib/types/equipment/item/Book.js +2 -2
- package/lib/types/equipment/item/CeremonialItem.js +2 -2
- package/lib/types/equipment/item/Clothes.js +2 -2
- package/lib/types/equipment/item/Container.js +2 -2
- package/lib/types/equipment/item/Elixir.js +2 -2
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.js +2 -2
- package/lib/types/equipment/item/GemOrPreciousStone.js +2 -2
- package/lib/types/equipment/item/IlluminationLightSource.d.ts +1 -3
- package/lib/types/equipment/item/IlluminationLightSource.js +2 -6
- package/lib/types/equipment/item/IlluminationRefillsOrSupplies.js +2 -2
- package/lib/types/equipment/item/Jewelry.js +2 -2
- package/lib/types/equipment/item/Liebesspielzeug.js +2 -2
- package/lib/types/equipment/item/LuxuryGood.js +2 -2
- package/lib/types/equipment/item/MagicalArtifact.js +2 -2
- package/lib/types/equipment/item/MusicalInstrument.js +2 -2
- package/lib/types/equipment/item/OrienteeringAid.js +2 -2
- package/lib/types/equipment/item/Poison.d.ts +3 -15
- package/lib/types/equipment/item/Poison.js +2 -20
- package/lib/types/equipment/item/RopeOrChain.js +2 -2
- package/lib/types/equipment/item/Stationary.js +2 -2
- package/lib/types/equipment/item/ThievesTool.js +2 -2
- package/lib/types/equipment/item/ToolOfTheTrade.js +2 -2
- package/lib/types/equipment/item/TravelGearOrTool.js +2 -2
- package/lib/types/equipment/item/Vehicle.js +2 -2
- package/lib/types/equipment/item/Weapon.js +2 -2
- package/lib/types/equipment/item/WeaponAccessory.js +2 -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 +2 -2
- package/lib/types/equipment/item/sub/Reach.js +2 -2
- package/lib/types/magicalActions/AnimistPower.js +2 -2
- package/lib/types/magicalActions/AnimistPower_Tribe.js +2 -2
- package/lib/types/magicalActions/Curse.js +2 -2
- package/lib/types/magicalActions/DominationRitual.js +2 -2
- package/lib/types/magicalActions/ElvenMagicalSong.js +2 -2
- package/lib/types/magicalActions/GeodeRitual.js +2 -2
- package/lib/types/magicalActions/JesterTrick.js +2 -2
- package/lib/types/magicalActions/MagicalDance.js +2 -2
- package/lib/types/magicalActions/MagicalMelody.js +2 -2
- package/lib/types/magicalActions/MagicalRune.js +2 -2
- package/lib/types/magicalActions/ZibiljaRitual.js +2 -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 +2 -7
- package/lib/types/rule/FocusRule.js +2 -2
- package/lib/types/rule/FocusRule_Subject.js +2 -2
- package/lib/types/rule/OptionalRule.js +2 -2
- package/lib/types/source/Publication.d.ts +1 -6
- package/lib/types/source/Publication.js +2 -12
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.js +2 -2
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.js +2 -2
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.js +2 -2
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.js +2 -2
- package/lib/types/specialAbility/AncestorGlyph.js +2 -2
- package/lib/types/specialAbility/BlessedTradition.js +2 -2
- package/lib/types/specialAbility/BrawlingSpecialAbility.js +2 -2
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.js +2 -2
- package/lib/types/specialAbility/CombatSpecialAbility.js +2 -2
- package/lib/types/specialAbility/CombatStyleSpecialAbility.js +2 -2
- package/lib/types/specialAbility/CommandSpecialAbility.js +2 -2
- package/lib/types/specialAbility/FamiliarSpecialAbility.js +2 -2
- package/lib/types/specialAbility/FatePointSexSpecialAbility.js +2 -2
- package/lib/types/specialAbility/FatePointSpecialAbility.js +2 -2
- package/lib/types/specialAbility/GeneralSpecialAbility.js +2 -2
- package/lib/types/specialAbility/KarmaSpecialAbility.js +2 -2
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.js +2 -2
- package/lib/types/specialAbility/LycantropicGift.js +2 -2
- package/lib/types/specialAbility/MagicStyleSpecialAbility.js +2 -2
- package/lib/types/specialAbility/MagicalSign.js +2 -2
- package/lib/types/specialAbility/MagicalSpecialAbility.js +2 -2
- package/lib/types/specialAbility/MagicalTradition.js +2 -2
- package/lib/types/specialAbility/PactGift.d.ts +2 -8
- package/lib/types/specialAbility/PactGift.js +2 -12
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.js +2 -2
- package/lib/types/specialAbility/Sermon.js +2 -2
- package/lib/types/specialAbility/SexSpecialAbility.js +2 -2
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.js +2 -2
- package/lib/types/specialAbility/SkillStyleSpecialAbility.js +2 -2
- package/lib/types/specialAbility/VampiricGift.js +2 -2
- package/lib/types/specialAbility/Vision.js +2 -2
- package/lib/types/specialAbility/sub/Language.js +2 -2
- package/lib/types/specialAbility/sub/Script.js +2 -2
- package/lib/types/specialAbility/sub/TradeSecret.js +2 -2
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.js +2 -2
- package/lib/types/traditionArtifacts/AttireEnchantment.js +2 -2
- package/lib/types/traditionArtifacts/BowlEnchantment.js +2 -2
- package/lib/types/traditionArtifacts/CauldronEnchantment.js +2 -2
- package/lib/types/traditionArtifacts/ChronicleEnchantment.js +2 -2
- package/lib/types/traditionArtifacts/DaggerRitual.js +2 -2
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.js +2 -2
- package/lib/types/traditionArtifacts/InstrumentEnchantment.js +2 -2
- package/lib/types/traditionArtifacts/Krallenkettenzauber.js +2 -2
- package/lib/types/traditionArtifacts/OrbEnchantment.js +2 -2
- package/lib/types/traditionArtifacts/RingEnchantment.js +2 -2
- package/lib/types/traditionArtifacts/SickleRitual.js +2 -2
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.js +2 -2
- package/lib/types/traditionArtifacts/StaffEnchantment.js +2 -2
- package/lib/types/traditionArtifacts/ToyEnchantment.js +2 -2
- package/lib/types/traditionArtifacts/Trinkhornzauber.js +2 -2
- package/lib/types/traditionArtifacts/WandEnchantment.js +2 -2
- package/lib/types/traditionArtifacts/WeaponEnchantment.js +2 -2
- package/lib/types/traditionArtifacts/sub/AnimalShape.js +2 -2
- package/lib/types/traditionArtifacts/sub/AnimalShapePath.js +2 -2
- package/lib/types/traditionArtifacts/sub/AnimalShapeSize.js +2 -2
- package/lib/types/traditionArtifacts/sub/Brew.js +2 -2
- package/lib/validation/filename.d.ts +1 -1
- package/lib/validation/filename.js +1 -1
- 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
package/lib/types/Skill.d.ts
CHANGED
|
@@ -91,11 +91,7 @@ export type SkillTranslation = {
|
|
|
91
91
|
* A category. All available entries from the specified category will be
|
|
92
92
|
* included as separate applications.
|
|
93
93
|
*/
|
|
94
|
-
export
|
|
95
|
-
BlessedTraditions = "BlessedTraditions",
|
|
96
|
-
Diseases = "Diseases",
|
|
97
|
-
Regions = "Regions"
|
|
98
|
-
}
|
|
94
|
+
export type ApplicationCategory = "BlessedTraditions" | "Diseases" | "Regions";
|
|
99
95
|
/**
|
|
100
96
|
* The skill's applications.
|
|
101
97
|
*/
|
|
@@ -134,9 +130,5 @@ export type ApplicationTranslation = {
|
|
|
134
130
|
/**
|
|
135
131
|
* Indicates whether encumbrance gives a penalty for checks with the skill.
|
|
136
132
|
*/
|
|
137
|
-
export
|
|
138
|
-
True = "True",
|
|
139
|
-
False = "False",
|
|
140
|
-
Maybe = "Maybe"
|
|
141
|
-
}
|
|
133
|
+
export type Encumbrance = "True" | "False" | "Maybe";
|
|
142
134
|
export declare const config: TypeConfig<Skill>;
|
package/lib/types/Skill.js
CHANGED
|
@@ -4,29 +4,10 @@
|
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
5
|
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
6
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
7
|
-
import {
|
|
8
|
-
/**
|
|
9
|
-
* A category. All available entries from the specified category will be
|
|
10
|
-
* included as separate applications.
|
|
11
|
-
*/
|
|
12
|
-
export var ApplicationCategory;
|
|
13
|
-
(function (ApplicationCategory) {
|
|
14
|
-
ApplicationCategory["BlessedTraditions"] = "BlessedTraditions";
|
|
15
|
-
ApplicationCategory["Diseases"] = "Diseases";
|
|
16
|
-
ApplicationCategory["Regions"] = "Regions";
|
|
17
|
-
})(ApplicationCategory = ApplicationCategory || (ApplicationCategory = {}));
|
|
18
|
-
/**
|
|
19
|
-
* Indicates whether encumbrance gives a penalty for checks with the skill.
|
|
20
|
-
*/
|
|
21
|
-
export var Encumbrance;
|
|
22
|
-
(function (Encumbrance) {
|
|
23
|
-
Encumbrance["True"] = "True";
|
|
24
|
-
Encumbrance["False"] = "False";
|
|
25
|
-
Encumbrance["Maybe"] = "Maybe";
|
|
26
|
-
})(Encumbrance = Encumbrance || (Encumbrance = {}));
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
27
8
|
export const config = {
|
|
28
9
|
name: "Skill",
|
|
29
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
30
11
|
integrityValidator: todo("Skill"),
|
|
31
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
32
13
|
fileNameValidator: validateEntityFileName,
|
package/lib/types/SkillGroup.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
5
|
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
6
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
7
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
8
8
|
export const config = {
|
|
9
9
|
name: "SkillGroup",
|
|
10
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
11
11
|
integrityValidator: todo("SkillGroup"),
|
|
12
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
13
|
fileNameValidator: validateEntityFileName,
|
|
@@ -78,10 +78,7 @@ export type SlowSkillCastingTime = {
|
|
|
78
78
|
*/
|
|
79
79
|
unit: SlowSkillCastingTimeUnit;
|
|
80
80
|
};
|
|
81
|
-
export
|
|
82
|
-
Minutes = "Minutes",
|
|
83
|
-
Hours = "Hours"
|
|
84
|
-
}
|
|
81
|
+
export type SlowSkillCastingTimeUnit = "Minutes" | "Hours";
|
|
85
82
|
/**
|
|
86
83
|
* @minProperties 1
|
|
87
84
|
*/
|
|
@@ -4,15 +4,10 @@
|
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
5
|
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
6
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
7
|
-
import {
|
|
8
|
-
export var SlowSkillCastingTimeUnit;
|
|
9
|
-
(function (SlowSkillCastingTimeUnit) {
|
|
10
|
-
SlowSkillCastingTimeUnit["Minutes"] = "Minutes";
|
|
11
|
-
SlowSkillCastingTimeUnit["Hours"] = "Hours";
|
|
12
|
-
})(SlowSkillCastingTimeUnit = SlowSkillCastingTimeUnit || (SlowSkillCastingTimeUnit = {}));
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
13
8
|
export const config = {
|
|
14
9
|
name: "SkillModificationLevel",
|
|
15
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
16
11
|
integrityValidator: todo("SkillModificationLevel"),
|
|
17
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
18
13
|
fileNameValidator: validateEntityFileName,
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
5
|
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
6
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
7
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
8
8
|
export const config = {
|
|
9
9
|
name: "SocialStatus",
|
|
10
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
11
11
|
integrityValidator: todo("SocialStatus"),
|
|
12
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
13
|
fileNameValidator: validateEntityFileName,
|
package/lib/types/Spell.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
5
|
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
6
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
7
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
8
8
|
export const config = {
|
|
9
9
|
name: "Spell",
|
|
10
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
11
11
|
integrityValidator: todo("Spell"),
|
|
12
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
13
|
fileNameValidator: validateEntityFileName,
|
package/lib/types/State.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
5
|
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
6
6
|
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
7
|
-
import {
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
8
8
|
export const config = {
|
|
9
9
|
name: "State",
|
|
10
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
11
11
|
integrityValidator: todo("State"),
|
|
12
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
13
|
fileNameValidator: validateEntityFileName,
|
package/lib/types/Talisman.d.ts
CHANGED
|
@@ -39,13 +39,7 @@ export type Talisman = {
|
|
|
39
39
|
*/
|
|
40
40
|
translations: LocaleMap<TalismanTranslation>;
|
|
41
41
|
};
|
|
42
|
-
export
|
|
43
|
-
MainTalisman = "MainTalisman",
|
|
44
|
-
Talisman = "Talisman",
|
|
45
|
-
MinorTalisman = "MinorTalisman",
|
|
46
|
-
Regalia = "Regalia",
|
|
47
|
-
PowerfulTalisman = "PowerfulTalisman"
|
|
48
|
-
}
|
|
42
|
+
export type TalismanType = "MainTalisman" | "Talisman" | "MinorTalisman" | "Regalia" | "PowerfulTalisman";
|
|
49
43
|
export type TalismanTranslation = {
|
|
50
44
|
/**
|
|
51
45
|
* The name of the talisman.
|
package/lib/types/Talisman.js
CHANGED
|
@@ -2,20 +2,12 @@
|
|
|
2
2
|
* @main Talisman
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
-
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import { getFIlenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
5
|
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
TalismanType["MainTalisman"] = "MainTalisman";
|
|
11
|
-
TalismanType["Talisman"] = "Talisman";
|
|
12
|
-
TalismanType["MinorTalisman"] = "MinorTalisman";
|
|
13
|
-
TalismanType["Regalia"] = "Regalia";
|
|
14
|
-
TalismanType["PowerfulTalisman"] = "PowerfulTalisman";
|
|
15
|
-
})(TalismanType = TalismanType || (TalismanType = {}));
|
|
6
|
+
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
16
8
|
export const config = {
|
|
17
9
|
name: "Talisman",
|
|
18
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
19
11
|
integrityValidator: todo("Talisman"),
|
|
20
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
21
13
|
fileNameValidator: validateEntityFileName,
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* @main TargetCategory
|
|
3
3
|
*/
|
|
4
4
|
import { todo } from "../validation/builders/integrity.js";
|
|
5
|
-
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
6
|
-
import { getFIlenamePrefixAsNumericId } from "../validation/filename.js";
|
|
7
5
|
import { validateEntityFileName } from "../validation/builders/naming.js";
|
|
6
|
+
import { createSchemaValidator } from "../validation/builders/schema.js";
|
|
7
|
+
import { getFilenamePrefixAsNumericId } from "../validation/filename.js";
|
|
8
8
|
export const config = {
|
|
9
9
|
name: "TargetCategory",
|
|
10
|
-
id:
|
|
10
|
+
id: getFilenamePrefixAsNumericId,
|
|
11
11
|
integrityValidator: todo("TargetCategory"),
|
|
12
12
|
schemaValidator: createSchemaValidator(import.meta.url),
|
|
13
13
|
fileNameValidator: validateEntityFileName,
|