optolith-database-schema 0.4.1 → 0.5.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 +25 -0
- package/lib/config.d.ts +2 -0
- package/lib/config.js +2 -0
- package/lib/main.d.ts +6 -3
- package/lib/main.js +55 -28
- package/lib/types/Cantrip.d.ts +2 -3
- package/lib/types/Culture.d.ts +8 -11
- package/lib/types/Lessons_Curriculum.d.ts +5 -4
- package/lib/types/Lessons_Guideline.d.ts +1 -1
- package/lib/types/Patron.d.ts +28 -4
- package/lib/types/Profession.d.ts +7 -6
- package/lib/types/Race.d.ts +12 -14
- package/lib/types/TargetCategory.d.ts +2 -3
- package/lib/types/_Activatable.d.ts +21 -22
- package/lib/types/_ActivatableSelectOptionCategory.d.ts +1 -1
- package/lib/types/_ActivatableSkillCost.d.ts +28 -1
- package/lib/types/_ActivatableSkillDuration.d.ts +1 -1
- package/lib/types/_ActivatableSkillRange.d.ts +3 -0
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.d.ts +2 -4
- package/lib/types/_DiseasePoison.d.ts +3 -3
- package/lib/types/_Identifier.d.ts +1175 -247
- package/lib/types/_Identifier.js +0 -228
- package/lib/types/_IdentifierGroup.d.ts +27 -0
- package/lib/types/_IdentifierGroup.js +1 -0
- package/lib/types/_Prerequisite.d.ts +38 -36
- package/lib/types/_ResponsiveText.d.ts +1 -1
- package/lib/types/_SimpleReferences.d.ts +50 -253
- package/lib/types/equipment/EquipmentPackage.d.ts +1 -1
- package/lib/types/equipment/item/Elixir.d.ts +75 -0
- package/lib/types/equipment/item/Elixir.js +5 -0
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +1 -1
- package/lib/types/equipment/item/Poison.d.ts +220 -47
- package/lib/types/equipment/item/Poison.js +10 -0
- package/lib/types/equipment/item/ToolOfTheTrade.d.ts +6 -2
- package/lib/types/equipment/item/_Herbary.d.ts +31 -0
- package/lib/types/equipment/item/_Herbary.js +22 -0
- package/lib/types/equipment/item/_MeleeWeapon.d.ts +2 -9
- package/lib/types/equipment/item/_RangedWeapon.d.ts +2 -3
- package/lib/types/magicalActions/AnimistPower.d.ts +0 -1
- package/lib/types/magicalActions/MagicalRune.d.ts +22 -3
- package/lib/types/magicalActions/_SkillReference.d.ts +3 -2
- package/lib/types/magicalActions/_SkillReference.js +5 -5
- package/lib/types/prerequisites/PrerequisiteGroups.d.ts +2 -20
- package/lib/types/prerequisites/single/ActivatablePrerequisite.d.ts +1 -62
- package/lib/types/prerequisites/single/AnimistPowerPrerequisite.d.ts +2 -3
- package/lib/types/prerequisites/single/CulturePrerequisite.d.ts +5 -2
- package/lib/types/prerequisites/single/EnhancementPrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/InfluencePrerequisite.d.ts +2 -3
- package/lib/types/prerequisites/single/RacePrerequisite.d.ts +5 -2
- package/lib/types/prerequisites/single/RatedPrerequisite.d.ts +1 -18
- package/lib/types/prerequisites/single/RulePrerequisite.d.ts +1 -1
- package/lib/types/prerequisites/single/SocialStatusPrerequisite.d.ts +2 -4
- package/lib/types/prerequisites/single/StatePrerequisite.d.ts +2 -2
- package/lib/types/rule/CoreRule.d.ts +4 -7
- package/lib/types/source/_PublicationRef.d.ts +2 -3
- package/lib/types/specialAbility/BlessedTradition.d.ts +1 -1
- package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +2 -1
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +2 -1
- package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +2 -1
- package/lib/types/specialAbility/MagicalTradition.d.ts +2 -3
- package/lib/types/specialAbility/PactGift.d.ts +1 -1
- package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +2 -1
- package/lib/types/specialAbility/sub/_LanguageScript.d.ts +2 -4
- package/lib/validation/schema.d.ts +5 -2
- package/lib/validation/schema.js +8 -6
- package/package.json +2 -2
- package/schema/Cantrip.schema.json +1 -2
- package/schema/Culture.schema.json +51 -10
- package/schema/Lessons_Curriculum.schema.json +8 -12
- package/schema/Lessons_Guideline.schema.json +1 -1
- package/schema/Patron.schema.json +24 -6
- package/schema/Profession.schema.json +57 -15
- package/schema/Race.schema.json +121 -13
- package/schema/TargetCategory.schema.json +1 -2
- package/schema/_Activatable.schema.json +5 -181
- package/schema/_ActivatableSelectOptionCategory.schema.json +4 -4
- package/schema/_ActivatableSkillCost.schema.json +61 -0
- package/schema/_ActivatableSkillDuration.schema.json +1 -3
- package/schema/_ActivatableSkillRange.schema.json +19 -0
- package/schema/_DiseasePoison.schema.json +0 -2
- package/schema/_Identifier.schema.json +2099 -347
- package/schema/_IdentifierGroup.schema.json +601 -0
- package/schema/_Prerequisite.schema.json +1284 -1049
- package/schema/_ResponsiveText.schema.json +2 -2
- package/schema/_SimpleReferences.schema.json +54 -130
- package/schema/equipment/EquipmentPackage.schema.json +1 -1
- package/schema/equipment/item/Elixir.schema.json +123 -0
- package/schema/equipment/item/EquipmentOfBlessedOnes.schema.json +4 -1
- package/schema/equipment/item/Poison.schema.json +431 -68
- package/schema/equipment/item/ToolOfTheTrade.schema.json +15 -4
- package/schema/equipment/item/_Herbary.schema.json +42 -0
- package/schema/equipment/item/_MeleeWeapon.schema.json +1 -13
- package/schema/equipment/item/_RangedWeapon.schema.json +1 -2
- package/schema/magicalActions/AnimistPower.schema.json +0 -1
- package/schema/magicalActions/MagicalRune.schema.json +38 -3
- package/schema/magicalActions/_SkillReference.schema.json +15 -3
- package/schema/prerequisites/PrerequisiteGroups.schema.json +0 -96
- package/schema/prerequisites/single/ActivatablePrerequisite.schema.json +2 -87
- package/schema/prerequisites/single/AnimistPowerPrerequisite.schema.json +1 -2
- package/schema/prerequisites/single/CulturePrerequisite.schema.json +2 -1
- package/schema/prerequisites/single/EnhancementPrerequisite.schema.json +1 -1
- package/schema/prerequisites/single/InfluencePrerequisite.schema.json +1 -2
- package/schema/prerequisites/single/RacePrerequisite.schema.json +2 -1
- package/schema/prerequisites/single/RatedPrerequisite.schema.json +1 -28
- package/schema/prerequisites/single/RulePrerequisite.schema.json +1 -1
- package/schema/prerequisites/single/SocialStatusPrerequisite.schema.json +1 -3
- package/schema/prerequisites/single/StatePrerequisite.schema.json +1 -1
- package/schema/rule/CoreRule.schema.json +3 -5
- package/schema/source/_PublicationRef.schema.json +1 -2
- package/schema/specialAbility/BlessedTradition.schema.json +2 -2
- package/schema/specialAbility/CombatStyleSpecialAbility.schema.json +511 -1
- package/schema/specialAbility/LiturgicalStyleSpecialAbility.schema.json +511 -1
- package/schema/specialAbility/MagicStyleSpecialAbility.schema.json +511 -1
- package/schema/specialAbility/MagicalTradition.schema.json +1 -2
- package/schema/specialAbility/PactGift.schema.json +1 -1
- package/schema/specialAbility/SkillStyleSpecialAbility.schema.json +511 -1
- package/schema/specialAbility/sub/_LanguageScript.schema.json +1 -3
- package/schema/_CommonnessRatedAdvantageDisadvantage.schema.json +0 -22
|
@@ -7,7 +7,8 @@ import { Errata } from "./source/_Erratum.js";
|
|
|
7
7
|
import { PublicationRefs } from "./source/_PublicationRef.js";
|
|
8
8
|
import { SelectOptionCategory, SkillApplicationOrUse } from "./_ActivatableSelectOptionCategory.js";
|
|
9
9
|
import { DurationUnitValue } from "./_ActivatableSkillDuration.js";
|
|
10
|
-
import {
|
|
10
|
+
import { MagicalTraditionIdentifier, PatronIdentifier, SkillIdentifier } from "./_Identifier.js";
|
|
11
|
+
import { AdvancedSpecialAbilityRestrictedOptionIdentifier, CombatRelatedSpecialAbilityIdentifier, CombatTechniqueIdentifier, VolumePointsOptionReferenceIdentifier } from "./_IdentifierGroup.js";
|
|
11
12
|
import { LocaleMap } from "./_LocaleMap.js";
|
|
12
13
|
import { NonEmptyMarkdown, NonEmptyString } from "./_NonEmptyString.js";
|
|
13
14
|
import { GeneralPrerequisites } from "./_Prerequisite.js";
|
|
@@ -162,7 +163,7 @@ export declare type ExplicitSkillSelectOption = {
|
|
|
162
163
|
* @integer
|
|
163
164
|
* @minimum 1
|
|
164
165
|
*/
|
|
165
|
-
id:
|
|
166
|
+
id: SkillIdentifier;
|
|
166
167
|
/**
|
|
167
168
|
* Registers new applications, which get enabled once this entry is
|
|
168
169
|
* activated with its respective select option. It specifies an entry-unique
|
|
@@ -1026,26 +1027,24 @@ export declare type Aspect = AspectReference;
|
|
|
1026
1027
|
/**
|
|
1027
1028
|
* A reference to an advanced special ability.
|
|
1028
1029
|
*/
|
|
1029
|
-
export declare type AdvancedSpecialAbility = {
|
|
1030
|
+
export declare type AdvancedSpecialAbility<Identifier> = {
|
|
1030
1031
|
tag: "General";
|
|
1031
|
-
general: AdvancedSpecialAbilityReference
|
|
1032
|
+
general: AdvancedSpecialAbilityReference<Identifier>;
|
|
1032
1033
|
} | {
|
|
1033
1034
|
tag: "RestrictOptions";
|
|
1034
|
-
restrict_options: RestrictAdvancedSpecialAbilityOptions
|
|
1035
|
+
restrict_options: RestrictAdvancedSpecialAbilityOptions<Identifier>;
|
|
1035
1036
|
} | {
|
|
1036
1037
|
tag: "OneOf";
|
|
1037
|
-
one_of: OneOfAdvancedSpecialAbilityOptions
|
|
1038
|
+
one_of: OneOfAdvancedSpecialAbilityOptions<Identifier>;
|
|
1038
1039
|
} | {
|
|
1039
1040
|
tag: "DeriveFromExternalOption";
|
|
1040
|
-
derive_from_external_option: AdvancedSpecialAbilityDerivedFromExternalOption
|
|
1041
|
+
derive_from_external_option: AdvancedSpecialAbilityDerivedFromExternalOption<Identifier>;
|
|
1041
1042
|
};
|
|
1042
|
-
export declare type RestrictAdvancedSpecialAbilityOptions = {
|
|
1043
|
+
export declare type RestrictAdvancedSpecialAbilityOptions<Identifier> = {
|
|
1043
1044
|
/**
|
|
1044
|
-
* The advanced special ability
|
|
1045
|
-
* @integer
|
|
1046
|
-
* @minimum 1
|
|
1045
|
+
* The advanced special ability’s identifier.
|
|
1047
1046
|
*/
|
|
1048
|
-
id:
|
|
1047
|
+
id: Identifier;
|
|
1049
1048
|
/**
|
|
1050
1049
|
* Specify the select option(s) that only are allowed for the referenced
|
|
1051
1050
|
* advanced special ability; others are disallowed.
|
|
@@ -1053,11 +1052,11 @@ export declare type RestrictAdvancedSpecialAbilityOptions = {
|
|
|
1053
1052
|
*/
|
|
1054
1053
|
option: AdvancedSpecialAbilityRestrictedOptionIdentifier[];
|
|
1055
1054
|
};
|
|
1056
|
-
export declare type OneOfAdvancedSpecialAbilityOptions = {
|
|
1055
|
+
export declare type OneOfAdvancedSpecialAbilityOptions<Identifier> = {
|
|
1057
1056
|
/**
|
|
1058
1057
|
* The possible advanced special abilities.
|
|
1059
1058
|
*/
|
|
1060
|
-
options: AdvancedSpecialAbilityReference
|
|
1059
|
+
options: AdvancedSpecialAbilityReference<Identifier>;
|
|
1061
1060
|
/**
|
|
1062
1061
|
* Do have to choose the advanced special ability when buying the style
|
|
1063
1062
|
* special ability? Otherwise the decision can be made later.
|
|
@@ -1065,7 +1064,7 @@ export declare type OneOfAdvancedSpecialAbilityOptions = {
|
|
|
1065
1064
|
is_selection_required_on_purchase: boolean;
|
|
1066
1065
|
display_option?: DisplayOption;
|
|
1067
1066
|
};
|
|
1068
|
-
export declare type AdvancedSpecialAbilityDerivedFromExternalOption = {
|
|
1067
|
+
export declare type AdvancedSpecialAbilityDerivedFromExternalOption<Identifier> = {
|
|
1069
1068
|
/**
|
|
1070
1069
|
* The possible advanced special abilities.
|
|
1071
1070
|
*/
|
|
@@ -1074,7 +1073,7 @@ export declare type AdvancedSpecialAbilityDerivedFromExternalOption = {
|
|
|
1074
1073
|
* Map options from the external entry to allowed advanced special abilities.
|
|
1075
1074
|
* @minItems 1
|
|
1076
1075
|
*/
|
|
1077
|
-
map: AdvancedSpecialAbilityDerivedFromExternalOptionMapping[];
|
|
1076
|
+
map: AdvancedSpecialAbilityDerivedFromExternalOptionMapping<Identifier>[];
|
|
1078
1077
|
display_option?: DisplayOption;
|
|
1079
1078
|
};
|
|
1080
1079
|
/**
|
|
@@ -1082,7 +1081,7 @@ export declare type AdvancedSpecialAbilityDerivedFromExternalOption = {
|
|
|
1082
1081
|
* ability.
|
|
1083
1082
|
* @minItems 1
|
|
1084
1083
|
*/
|
|
1085
|
-
export declare type AdvancedSpecialAbilityDerivedFromExternalOptionMapping = {
|
|
1084
|
+
export declare type AdvancedSpecialAbilityDerivedFromExternalOptionMapping<Identifier> = {
|
|
1086
1085
|
/**
|
|
1087
1086
|
* The select option's identifier.
|
|
1088
1087
|
*/
|
|
@@ -1090,7 +1089,7 @@ export declare type AdvancedSpecialAbilityDerivedFromExternalOptionMapping = {
|
|
|
1090
1089
|
/**
|
|
1091
1090
|
* The advanced special ability's identifier.
|
|
1092
1091
|
*/
|
|
1093
|
-
to_advanced: AdvancedSpecialAbilityReference
|
|
1092
|
+
to_advanced: AdvancedSpecialAbilityReference<Identifier>;
|
|
1094
1093
|
};
|
|
1095
1094
|
export declare type AdvancedSpecialAbilityDerivedExternalEntryId = MagicalTraditionIdentifier;
|
|
1096
1095
|
export declare type AdvancedSpecialAbilityDerivedExternalEntryOptionId = PatronIdentifier;
|
|
@@ -1101,10 +1100,10 @@ export declare type AdvancedSpecialAbilityDerivedExternalEntryOptionId = PatronI
|
|
|
1101
1100
|
* be that you can choose from a set of special abilities, but then you can't
|
|
1102
1101
|
* specify an option.
|
|
1103
1102
|
*/
|
|
1104
|
-
export declare type AdvancedSpecialAbilities = [
|
|
1105
|
-
AdvancedSpecialAbility
|
|
1106
|
-
AdvancedSpecialAbility
|
|
1107
|
-
AdvancedSpecialAbility
|
|
1103
|
+
export declare type AdvancedSpecialAbilities<Identifier> = [
|
|
1104
|
+
AdvancedSpecialAbility<Identifier>,
|
|
1105
|
+
AdvancedSpecialAbility<Identifier>,
|
|
1106
|
+
AdvancedSpecialAbility<Identifier>
|
|
1108
1107
|
];
|
|
1109
1108
|
export declare type ApplicableCombatTechniques = {
|
|
1110
1109
|
tag: "None";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActivatableIdentifier, CombatTechniqueIdentifier, SkillIdentifier } from "./
|
|
1
|
+
import { ActivatableIdentifier, CombatTechniqueIdentifier, SkillIdentifier } from "./_IdentifierGroup.js";
|
|
2
2
|
import { LocaleMap } from "./_LocaleMap.js";
|
|
3
3
|
import { CeremonyReference, CloseCombatTechniqueReference, ElementReference, LiturgicalChantReference, RangedCombatTechniqueReference, RitualReference, SkillGroupReference, SpellReference } from "./_SimpleReferences.js";
|
|
4
4
|
export declare type SelectOptionCategory = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DurationUnitValue } from "./_ActivatableSkillDuration.js";
|
|
2
2
|
import { LocaleMap } from "./_LocaleMap.js";
|
|
3
3
|
import { NonEmptyString } from "./_NonEmptyString.js";
|
|
4
|
-
import { ResponsiveText, ResponsiveTextOptional } from "./_ResponsiveText.js";
|
|
4
|
+
import { ResponsiveText, ResponsiveTextOptional, ResponsiveTextReplace } from "./_ResponsiveText.js";
|
|
5
5
|
export declare type OneTimeCost = {
|
|
6
6
|
tag: "Single";
|
|
7
7
|
single: SingleOneTimeCost;
|
|
@@ -43,6 +43,16 @@ export declare type ModifiableOneTimeCost = {
|
|
|
43
43
|
* @minimum 1
|
|
44
44
|
*/
|
|
45
45
|
permanent_value?: number;
|
|
46
|
+
/**
|
|
47
|
+
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
48
|
+
*/
|
|
49
|
+
translations?: LocaleMap<ModifiableOneTimeCostTranslation>;
|
|
50
|
+
};
|
|
51
|
+
export declare type ModifiableOneTimeCostTranslation = {
|
|
52
|
+
/**
|
|
53
|
+
* A replacement string.
|
|
54
|
+
*/
|
|
55
|
+
replacement: ResponsiveTextReplace;
|
|
46
56
|
};
|
|
47
57
|
export declare type NonModifiableOneTimeCost = {
|
|
48
58
|
/**
|
|
@@ -216,8 +226,25 @@ export declare type NonModifiableSustainedCost = {
|
|
|
216
226
|
* @minimum 1
|
|
217
227
|
*/
|
|
218
228
|
value: number;
|
|
229
|
+
/**
|
|
230
|
+
* The cost have to be per a specific countable entity, e.g. `8 KP per
|
|
231
|
+
* person per 5 minutes`.
|
|
232
|
+
*/
|
|
233
|
+
per?: NonModifiableSustainedCostPerCountable;
|
|
219
234
|
/**
|
|
220
235
|
* The sustain interval.
|
|
221
236
|
*/
|
|
222
237
|
interval: DurationUnitValue;
|
|
223
238
|
};
|
|
239
|
+
export declare type NonModifiableSustainedCostPerCountable = {
|
|
240
|
+
/**
|
|
241
|
+
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
242
|
+
*/
|
|
243
|
+
translations: LocaleMap<NonModifiableSustainedCostPerCountableTranslation>;
|
|
244
|
+
};
|
|
245
|
+
export declare type NonModifiableSustainedCostPerCountableTranslation = {
|
|
246
|
+
/**
|
|
247
|
+
* The countable entity name.
|
|
248
|
+
*/
|
|
249
|
+
countable: ResponsiveText;
|
|
250
|
+
};
|
|
@@ -37,7 +37,7 @@ export declare type PermanentDuration = {
|
|
|
37
37
|
/**
|
|
38
38
|
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
39
39
|
*/
|
|
40
|
-
translations
|
|
40
|
+
translations?: LocaleMap<PermanentDurationTranslation>;
|
|
41
41
|
};
|
|
42
42
|
export declare type PermanentDurationTranslation = {
|
|
43
43
|
/**
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
* Reference to a commonness-rated advantage or disadvantage. Commonness-rating terms used in the source books are strongly recommended, common, uncommon, suggested and unsuitable.
|
|
3
3
|
* @title Commonness-rated Advantage/Disadvantage
|
|
4
4
|
*/
|
|
5
|
-
export declare type CommonnessRatedAdvantageDisadvantage = {
|
|
5
|
+
export declare type CommonnessRatedAdvantageDisadvantage<Identifier> = {
|
|
6
6
|
/**
|
|
7
7
|
* The advantage's or disadvantage's identifier.
|
|
8
|
-
* @integer
|
|
9
|
-
* @minimum 1
|
|
10
8
|
*/
|
|
11
|
-
id:
|
|
9
|
+
id: Identifier;
|
|
12
10
|
};
|
|
@@ -101,14 +101,14 @@ export declare type DiseaseTranslation = {
|
|
|
101
101
|
* This streamlines the wording for diseases and poison by using a unified
|
|
102
102
|
* wording for *lessened* (disease) and *degraded* (poison).
|
|
103
103
|
*/
|
|
104
|
-
export declare type Reduceable = {
|
|
104
|
+
export declare type Reduceable<Content = NonEmptyMarkdown> = {
|
|
105
105
|
/**
|
|
106
106
|
* The default value. In the source, it's the text before the slash.
|
|
107
107
|
*/
|
|
108
|
-
default:
|
|
108
|
+
default: Content;
|
|
109
109
|
/**
|
|
110
110
|
* The reduced value. In the source, it's the text after the slash. Some
|
|
111
111
|
* entries may not have a reduced value.
|
|
112
112
|
*/
|
|
113
|
-
reduced?:
|
|
113
|
+
reduced?: Content;
|
|
114
114
|
};
|