optolith-database-schema 0.4.0 → 0.5.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.
Files changed (119) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/lib/config.d.ts +2 -0
  3. package/lib/config.js +2 -0
  4. package/lib/main.d.ts +1 -1
  5. package/lib/main.js +28 -19
  6. package/lib/types/Cantrip.d.ts +2 -3
  7. package/lib/types/Culture.d.ts +8 -11
  8. package/lib/types/Lessons_Curriculum.d.ts +5 -4
  9. package/lib/types/Lessons_Guideline.d.ts +1 -1
  10. package/lib/types/Patron.d.ts +28 -4
  11. package/lib/types/Profession.d.ts +7 -6
  12. package/lib/types/Race.d.ts +12 -14
  13. package/lib/types/TargetCategory.d.ts +2 -3
  14. package/lib/types/_Activatable.d.ts +22 -26
  15. package/lib/types/_ActivatableSelectOptionCategory.d.ts +1 -1
  16. package/lib/types/_ActivatableSkillCost.d.ts +28 -1
  17. package/lib/types/_ActivatableSkillDuration.d.ts +1 -1
  18. package/lib/types/_ActivatableSkillRange.d.ts +3 -0
  19. package/lib/types/_CommonnessRatedAdvantageDisadvantage.d.ts +2 -4
  20. package/lib/types/_DiseasePoison.d.ts +3 -3
  21. package/lib/types/_Identifier.d.ts +1175 -247
  22. package/lib/types/_Identifier.js +0 -228
  23. package/lib/types/_IdentifierGroup.d.ts +27 -0
  24. package/lib/types/_IdentifierGroup.js +1 -0
  25. package/lib/types/_Prerequisite.d.ts +38 -36
  26. package/lib/types/_ResponsiveText.d.ts +1 -1
  27. package/lib/types/_SimpleReferences.d.ts +50 -253
  28. package/lib/types/equipment/EquipmentPackage.d.ts +1 -1
  29. package/lib/types/equipment/item/Elixir.d.ts +75 -0
  30. package/lib/types/equipment/item/Elixir.js +5 -0
  31. package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +1 -1
  32. package/lib/types/equipment/item/Poison.d.ts +220 -47
  33. package/lib/types/equipment/item/Poison.js +10 -0
  34. package/lib/types/equipment/item/ToolOfTheTrade.d.ts +6 -2
  35. package/lib/types/equipment/item/_Herbary.d.ts +31 -0
  36. package/lib/types/equipment/item/_Herbary.js +22 -0
  37. package/lib/types/equipment/item/_MeleeWeapon.d.ts +2 -9
  38. package/lib/types/equipment/item/_RangedWeapon.d.ts +2 -3
  39. package/lib/types/magicalActions/AnimistPower.d.ts +0 -1
  40. package/lib/types/magicalActions/MagicalRune.d.ts +22 -3
  41. package/lib/types/magicalActions/_SkillReference.d.ts +3 -2
  42. package/lib/types/magicalActions/_SkillReference.js +5 -5
  43. package/lib/types/prerequisites/PrerequisiteGroups.d.ts +2 -20
  44. package/lib/types/prerequisites/single/ActivatablePrerequisite.d.ts +1 -62
  45. package/lib/types/prerequisites/single/AnimistPowerPrerequisite.d.ts +2 -3
  46. package/lib/types/prerequisites/single/CulturePrerequisite.d.ts +5 -2
  47. package/lib/types/prerequisites/single/EnhancementPrerequisite.d.ts +1 -1
  48. package/lib/types/prerequisites/single/InfluencePrerequisite.d.ts +2 -3
  49. package/lib/types/prerequisites/single/RacePrerequisite.d.ts +5 -2
  50. package/lib/types/prerequisites/single/RatedPrerequisite.d.ts +1 -18
  51. package/lib/types/prerequisites/single/RulePrerequisite.d.ts +1 -1
  52. package/lib/types/prerequisites/single/SocialStatusPrerequisite.d.ts +2 -4
  53. package/lib/types/prerequisites/single/StatePrerequisite.d.ts +2 -2
  54. package/lib/types/rule/CoreRule.d.ts +4 -7
  55. package/lib/types/source/_PublicationRef.d.ts +2 -3
  56. package/lib/types/specialAbility/BlessedTradition.d.ts +1 -1
  57. package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +1 -1
  58. package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +2 -1
  59. package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +2 -1
  60. package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +2 -1
  61. package/lib/types/specialAbility/MagicalTradition.d.ts +2 -3
  62. package/lib/types/specialAbility/PactGift.d.ts +1 -1
  63. package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +2 -1
  64. package/lib/types/specialAbility/sub/_LanguageScript.d.ts +2 -4
  65. package/lib/validation/schema.js +1 -1
  66. package/package.json +2 -2
  67. package/schema/Cantrip.schema.json +1 -2
  68. package/schema/Culture.schema.json +51 -10
  69. package/schema/Lessons_Curriculum.schema.json +8 -12
  70. package/schema/Lessons_Guideline.schema.json +1 -1
  71. package/schema/Patron.schema.json +24 -6
  72. package/schema/Profession.schema.json +57 -15
  73. package/schema/Race.schema.json +121 -13
  74. package/schema/TargetCategory.schema.json +1 -2
  75. package/schema/_Activatable.schema.json +7 -183
  76. package/schema/_ActivatableSelectOptionCategory.schema.json +4 -4
  77. package/schema/_ActivatableSkillCost.schema.json +61 -0
  78. package/schema/_ActivatableSkillDuration.schema.json +1 -3
  79. package/schema/_ActivatableSkillRange.schema.json +19 -0
  80. package/schema/_DiseasePoison.schema.json +0 -2
  81. package/schema/_Identifier.schema.json +2099 -347
  82. package/schema/_IdentifierGroup.schema.json +601 -0
  83. package/schema/_Prerequisite.schema.json +1298 -1072
  84. package/schema/_ResponsiveText.schema.json +2 -2
  85. package/schema/_SimpleReferences.schema.json +54 -130
  86. package/schema/equipment/EquipmentPackage.schema.json +1 -1
  87. package/schema/equipment/item/Elixir.schema.json +123 -0
  88. package/schema/equipment/item/EquipmentOfBlessedOnes.schema.json +4 -1
  89. package/schema/equipment/item/Poison.schema.json +431 -68
  90. package/schema/equipment/item/ToolOfTheTrade.schema.json +15 -4
  91. package/schema/equipment/item/_Herbary.schema.json +42 -0
  92. package/schema/equipment/item/_MeleeWeapon.schema.json +1 -13
  93. package/schema/equipment/item/_RangedWeapon.schema.json +1 -2
  94. package/schema/magicalActions/AnimistPower.schema.json +0 -1
  95. package/schema/magicalActions/MagicalRune.schema.json +38 -3
  96. package/schema/magicalActions/_SkillReference.schema.json +15 -3
  97. package/schema/prerequisites/PrerequisiteGroups.schema.json +0 -96
  98. package/schema/prerequisites/single/ActivatablePrerequisite.schema.json +2 -87
  99. package/schema/prerequisites/single/AnimistPowerPrerequisite.schema.json +1 -2
  100. package/schema/prerequisites/single/CulturePrerequisite.schema.json +2 -1
  101. package/schema/prerequisites/single/EnhancementPrerequisite.schema.json +1 -1
  102. package/schema/prerequisites/single/InfluencePrerequisite.schema.json +1 -2
  103. package/schema/prerequisites/single/RacePrerequisite.schema.json +2 -1
  104. package/schema/prerequisites/single/RatedPrerequisite.schema.json +1 -28
  105. package/schema/prerequisites/single/RulePrerequisite.schema.json +1 -1
  106. package/schema/prerequisites/single/SocialStatusPrerequisite.schema.json +1 -3
  107. package/schema/prerequisites/single/StatePrerequisite.schema.json +1 -1
  108. package/schema/rule/CoreRule.schema.json +3 -5
  109. package/schema/source/_PublicationRef.schema.json +1 -2
  110. package/schema/specialAbility/BlessedTradition.schema.json +2 -2
  111. package/schema/specialAbility/CeremonialItemSpecialAbility.schema.json +0 -1
  112. package/schema/specialAbility/CombatStyleSpecialAbility.schema.json +511 -1
  113. package/schema/specialAbility/LiturgicalStyleSpecialAbility.schema.json +511 -1
  114. package/schema/specialAbility/MagicStyleSpecialAbility.schema.json +511 -1
  115. package/schema/specialAbility/MagicalTradition.schema.json +1 -2
  116. package/schema/specialAbility/PactGift.schema.json +1 -1
  117. package/schema/specialAbility/SkillStyleSpecialAbility.schema.json +511 -1
  118. package/schema/specialAbility/sub/_LanguageScript.schema.json +1 -3
  119. package/schema/_CommonnessRatedAdvantageDisadvantage.schema.json +0 -22
@@ -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: LocaleMap<PermanentDurationTranslation>;
40
+ translations?: LocaleMap<PermanentDurationTranslation>;
41
41
  };
42
42
  export declare type PermanentDurationTranslation = {
43
43
  /**
@@ -24,6 +24,9 @@ export declare type RangeValue = {
24
24
  | {
25
25
  tag: "Global";
26
26
  global: {};
27
+ } | {
28
+ tag: "Touch";
29
+ touch: {};
27
30
  } | {
28
31
  tag: "Fixed";
29
32
  fixed: FixedRange;
@@ -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: number;
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: NonEmptyMarkdown;
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?: NonEmptyMarkdown;
113
+ reduced?: Content;
114
114
  };