optolith-database-schema 0.3.0 → 0.4.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 (129) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/lib/config.d.ts +4 -4
  3. package/lib/config.js +4 -4
  4. package/lib/types/Blessing.d.ts +3 -0
  5. package/lib/types/Cantrip.d.ts +3 -0
  6. package/lib/types/Culture.d.ts +18 -22
  7. package/lib/types/Culture.js +38 -0
  8. package/lib/types/Lessons_Curriculum.d.ts +4 -0
  9. package/lib/types/Patron.d.ts +12 -18
  10. package/lib/types/Patron.js +20 -0
  11. package/lib/types/Profession.d.ts +8 -11
  12. package/lib/types/Profession.js +6 -0
  13. package/lib/types/Race.d.ts +5 -7
  14. package/lib/types/Race.js +11 -0
  15. package/lib/types/Service.d.ts +4 -5
  16. package/lib/types/Service.js +5 -0
  17. package/lib/types/Skill.d.ts +10 -14
  18. package/lib/types/Skill.js +19 -0
  19. package/lib/types/Talisman.d.ts +7 -11
  20. package/lib/types/Talisman.js +8 -0
  21. package/lib/types/_Activatable.d.ts +41 -25
  22. package/lib/types/_Activatable.js +44 -1
  23. package/lib/types/_ActivatableSelectOptionCategory.d.ts +21 -18
  24. package/lib/types/_ActivatableSelectOptionCategory.js +8 -1
  25. package/lib/types/_ActivatableSkillCheckResultBased.d.ts +8 -10
  26. package/lib/types/_ActivatableSkillCheckResultBased.js +16 -1
  27. package/lib/types/_ActivatableSkillRange.d.ts +8 -4
  28. package/lib/types/_ActivatableSkillTargetCategory.d.ts +4 -0
  29. package/lib/types/_DiseasePoison.d.ts +5 -7
  30. package/lib/types/_DiseasePoison.js +11 -1
  31. package/lib/types/_Sex.d.ts +4 -5
  32. package/lib/types/_Sex.js +8 -1
  33. package/lib/types/_SkillCheck.d.ts +6 -9
  34. package/lib/types/_SkillCheck.js +11 -1
  35. package/lib/types/_Spellwork.d.ts +1 -0
  36. package/lib/types/equipment/item/Armor.d.ts +4 -4
  37. package/lib/types/equipment/item/BandageOrRemedy.d.ts +33 -3
  38. package/lib/types/equipment/item/CeremonialItem.d.ts +38 -3
  39. package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +1 -14
  40. package/lib/types/equipment/item/IlluminationLightSource.d.ts +62 -0
  41. package/lib/types/equipment/item/IlluminationLightSource.js +9 -0
  42. package/lib/types/equipment/item/{HealingHerb.d.ts → IlluminationRefillsOrSupplies.d.ts} +2 -2
  43. package/lib/types/equipment/item/{HealingHerb.js → IlluminationRefillsOrSupplies.js} +1 -1
  44. package/lib/types/equipment/item/LuxuryGood.d.ts +33 -3
  45. package/lib/types/equipment/item/MusicalInstrument.d.ts +3 -8
  46. package/lib/types/equipment/item/Poison.d.ts +11 -9
  47. package/lib/types/equipment/item/Poison.js +7 -0
  48. package/lib/types/equipment/item/ToolOfTheTrade.d.ts +1 -1
  49. package/lib/types/equipment/item/Weapon.d.ts +1 -1
  50. package/lib/types/equipment/item/_Item.d.ts +9 -3
  51. package/lib/types/equipment/item/_MeleeWeapon.d.ts +2 -0
  52. package/lib/types/equipment/item/_RangedWeapon.d.ts +2 -0
  53. package/lib/types/magicalActions/AnimistPower.d.ts +2 -0
  54. package/lib/types/magicalActions/Curse.d.ts +1 -0
  55. package/lib/types/magicalActions/GeodeRitual.d.ts +2 -0
  56. package/lib/types/magicalActions/JesterTrick.d.ts +3 -0
  57. package/lib/types/magicalActions/_MusicTradition.d.ts +8 -10
  58. package/lib/types/magicalActions/_MusicTradition.js +10 -1
  59. package/lib/types/prerequisites/DisplayOption.d.ts +1 -0
  60. package/lib/types/prerequisites/PrerequisiteGroups.d.ts +1 -0
  61. package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.d.ts +4 -5
  62. package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.js +5 -1
  63. package/lib/types/prerequisites/single/TextPrerequisite.d.ts +4 -5
  64. package/lib/types/prerequisites/single/TextPrerequisite.js +5 -1
  65. package/lib/types/prerequisites/single/TraditionPrerequisite.d.ts +8 -10
  66. package/lib/types/prerequisites/single/TraditionPrerequisite.js +18 -1
  67. package/lib/types/rule/CoreRule.d.ts +63 -5
  68. package/lib/types/rule/CoreRule.js +5 -0
  69. package/lib/types/rule/_Rule.d.ts +1 -0
  70. package/lib/types/source/Publication.d.ts +6 -9
  71. package/lib/types/source/Publication.js +10 -0
  72. package/lib/types/source/_PublicationRef.d.ts +2 -0
  73. package/lib/types/specialAbility/BlessedTradition.d.ts +3 -0
  74. package/lib/types/specialAbility/PactGift.d.ts +8 -10
  75. package/lib/types/specialAbility/PactGift.js +10 -0
  76. package/package.json +2 -2
  77. package/schema/Blessing.schema.json +24 -3
  78. package/schema/Cantrip.schema.json +24 -3
  79. package/schema/Culture.schema.json +21 -113
  80. package/schema/Lessons_Curriculum.schema.json +32 -4
  81. package/schema/Patron.schema.json +10 -98
  82. package/schema/Profession.schema.json +70 -47
  83. package/schema/Race.schema.json +4 -37
  84. package/schema/Service.schema.json +3 -25
  85. package/schema/Skill.schema.json +8 -74
  86. package/schema/Talisman.schema.json +6 -61
  87. package/schema/_Activatable.schema.json +183 -146
  88. package/schema/_ActivatableSelectOptionCategory.schema.json +97 -49
  89. package/schema/_ActivatableSkillCheckResultBased.schema.json +6 -50
  90. package/schema/_ActivatableSkillRange.schema.json +24 -4
  91. package/schema/_ActivatableSkillTargetCategory.schema.json +32 -4
  92. package/schema/_DiseasePoison.schema.json +4 -37
  93. package/schema/_Sex.schema.json +3 -25
  94. package/schema/_SkillCheck.schema.json +5 -49
  95. package/schema/_Spellwork.schema.json +8 -1
  96. package/schema/equipment/item/Armor.schema.json +26 -5
  97. package/schema/equipment/item/BandageOrRemedy.schema.json +44 -1
  98. package/schema/equipment/item/CeremonialItem.schema.json +50 -1
  99. package/schema/equipment/item/EquipmentOfBlessedOnes.schema.json +0 -13
  100. package/schema/equipment/item/IlluminationLightSource.schema.json +122 -0
  101. package/schema/equipment/item/IlluminationRefillsOrSupplies.schema.json +10 -0
  102. package/schema/equipment/item/LuxuryGood.schema.json +44 -1
  103. package/schema/equipment/item/MusicalInstrument.schema.json +4 -9
  104. package/schema/equipment/item/Poison.schema.json +45 -54
  105. package/schema/equipment/item/ToolOfTheTrade.schema.json +0 -1
  106. package/schema/equipment/item/Weapon.schema.json +1 -1
  107. package/schema/equipment/item/_Item.schema.json +52 -10
  108. package/schema/equipment/item/_MeleeWeapon.schema.json +16 -2
  109. package/schema/equipment/item/_RangedWeapon.schema.json +16 -2
  110. package/schema/magicalActions/AnimistPower.schema.json +16 -2
  111. package/schema/magicalActions/Curse.schema.json +8 -1
  112. package/schema/magicalActions/GeodeRitual.schema.json +16 -2
  113. package/schema/magicalActions/JesterTrick.schema.json +24 -3
  114. package/schema/magicalActions/_MusicTradition.schema.json +6 -50
  115. package/schema/prerequisites/DisplayOption.schema.json +8 -1
  116. package/schema/prerequisites/PrerequisiteGroups.schema.json +8 -1
  117. package/schema/prerequisites/single/PrimaryAttributePrerequisite.schema.json +3 -25
  118. package/schema/prerequisites/single/TextPrerequisite.schema.json +3 -25
  119. package/schema/prerequisites/single/TraditionPrerequisite.schema.json +6 -50
  120. package/schema/rule/CoreRule.schema.json +475 -84
  121. package/schema/rule/_Rule.schema.json +8 -1
  122. package/schema/source/Publication.schema.json +5 -49
  123. package/schema/source/_PublicationRef.schema.json +16 -2
  124. package/schema/specialAbility/BlessedTradition.schema.json +24 -3
  125. package/schema/specialAbility/PactGift.schema.json +6 -50
  126. package/lib/types/equipment/item/Illumination.d.ts +0 -6
  127. package/lib/types/equipment/item/Illumination.js +0 -5
  128. package/schema/equipment/item/HealingHerb.schema.json +0 -10
  129. package/schema/equipment/item/Illumination.schema.json +0 -10
@@ -10,10 +10,17 @@
10
10
  "properties": {
11
11
  "tag": {
12
12
  "const": "Extraneous"
13
+ },
14
+ "extraneous": {
15
+ "type": "object",
16
+ "properties": {},
17
+ "required": [],
18
+ "additionalProperties": false
13
19
  }
14
20
  },
15
21
  "required": [
16
- "tag"
22
+ "tag",
23
+ "extraneous"
17
24
  ],
18
25
  "additionalProperties": false
19
26
  },
@@ -84,55 +84,11 @@
84
84
  },
85
85
  "Category": {
86
86
  "description": "The publication category.",
87
- "oneOf": [
88
- {
89
- "type": "object",
90
- "properties": {
91
- "tag": {
92
- "const": "CoreRules"
93
- }
94
- },
95
- "required": [
96
- "tag"
97
- ],
98
- "additionalProperties": false
99
- },
100
- {
101
- "type": "object",
102
- "properties": {
103
- "tag": {
104
- "const": "ExpansionRules"
105
- }
106
- },
107
- "required": [
108
- "tag"
109
- ],
110
- "additionalProperties": false
111
- },
112
- {
113
- "type": "object",
114
- "properties": {
115
- "tag": {
116
- "const": "Sourcebook"
117
- }
118
- },
119
- "required": [
120
- "tag"
121
- ],
122
- "additionalProperties": false
123
- },
124
- {
125
- "type": "object",
126
- "properties": {
127
- "tag": {
128
- "const": "RegionalSourcebook"
129
- }
130
- },
131
- "required": [
132
- "tag"
133
- ],
134
- "additionalProperties": false
135
- }
87
+ "enum": [
88
+ "CoreRules",
89
+ "ExpansionRules",
90
+ "Sourcebook",
91
+ "RegionalSourcebook"
136
92
  ]
137
93
  }
138
94
  }
@@ -227,10 +227,17 @@
227
227
  "properties": {
228
228
  "tag": {
229
229
  "const": "InsideCoverFront"
230
+ },
231
+ "inside_cover_front": {
232
+ "type": "object",
233
+ "properties": {},
234
+ "required": [],
235
+ "additionalProperties": false
230
236
  }
231
237
  },
232
238
  "required": [
233
- "tag"
239
+ "tag",
240
+ "inside_cover_front"
234
241
  ],
235
242
  "additionalProperties": false
236
243
  },
@@ -239,10 +246,17 @@
239
246
  "properties": {
240
247
  "tag": {
241
248
  "const": "InsideCoverBack"
249
+ },
250
+ "inside_cover_back": {
251
+ "type": "object",
252
+ "properties": {},
253
+ "required": [],
254
+ "additionalProperties": false
242
255
  }
243
256
  },
244
257
  "required": [
245
- "tag"
258
+ "tag",
259
+ "inside_cover_back"
246
260
  ],
247
261
  "additionalProperties": false
248
262
  },
@@ -184,10 +184,17 @@
184
184
  "properties": {
185
185
  "tag": {
186
186
  "const": "All"
187
+ },
188
+ "all": {
189
+ "type": "object",
190
+ "properties": {},
191
+ "required": [],
192
+ "additionalProperties": false
187
193
  }
188
194
  },
189
195
  "required": [
190
- "tag"
196
+ "tag",
197
+ "all"
191
198
  ],
192
199
  "additionalProperties": false
193
200
  },
@@ -196,10 +203,17 @@
196
203
  "properties": {
197
204
  "tag": {
198
205
  "const": "AllClose"
206
+ },
207
+ "all_close": {
208
+ "type": "object",
209
+ "properties": {},
210
+ "required": [],
211
+ "additionalProperties": false
199
212
  }
200
213
  },
201
214
  "required": [
202
- "tag"
215
+ "tag",
216
+ "all_close"
203
217
  ],
204
218
  "additionalProperties": false
205
219
  },
@@ -208,10 +222,17 @@
208
222
  "properties": {
209
223
  "tag": {
210
224
  "const": "AllUsedInHunting"
225
+ },
226
+ "all_used_in_hunting": {
227
+ "type": "object",
228
+ "properties": {},
229
+ "required": [],
230
+ "additionalProperties": false
211
231
  }
212
232
  },
213
233
  "required": [
214
- "tag"
234
+ "tag",
235
+ "all_used_in_hunting"
215
236
  ],
216
237
  "additionalProperties": false
217
238
  },
@@ -149,31 +149,9 @@
149
149
  "additionalProperties": false
150
150
  },
151
151
  "AutomaticEntryAction": {
152
- "oneOf": [
153
- {
154
- "type": "object",
155
- "properties": {
156
- "tag": {
157
- "const": "Add"
158
- }
159
- },
160
- "required": [
161
- "tag"
162
- ],
163
- "additionalProperties": false
164
- },
165
- {
166
- "type": "object",
167
- "properties": {
168
- "tag": {
169
- "const": "Remove"
170
- }
171
- },
172
- "required": [
173
- "tag"
174
- ],
175
- "additionalProperties": false
176
- }
152
+ "enum": [
153
+ "Add",
154
+ "Remove"
177
155
  ]
178
156
  },
179
157
  "AutomaticEntryTarget": {
@@ -225,31 +203,9 @@
225
203
  "additionalProperties": false
226
204
  },
227
205
  "AutomaticEntryTargetSelectionList": {
228
- "oneOf": [
229
- {
230
- "type": "object",
231
- "properties": {
232
- "tag": {
233
- "const": "MagicalTraditions"
234
- }
235
- },
236
- "required": [
237
- "tag"
238
- ],
239
- "additionalProperties": false
240
- },
241
- {
242
- "type": "object",
243
- "properties": {
244
- "tag": {
245
- "const": "MagicalDilettanteTraditions"
246
- }
247
- },
248
- "required": [
249
- "tag"
250
- ],
251
- "additionalProperties": false
252
- }
206
+ "enum": [
207
+ "MagicalTraditions",
208
+ "MagicalDilettanteTraditions"
253
209
  ]
254
210
  },
255
211
  "FixedAutomaticEntryTarget": {
@@ -1,6 +0,0 @@
1
- /**
2
- * @main Illumination
3
- */
4
- import { DefaultItem } from "./_Item.js";
5
- export declare type Illumination = DefaultItem;
6
- export declare const validateSchema: import("../../../validation/schema.js").TypeValidator<DefaultItem>;
@@ -1,5 +0,0 @@
1
- /**
2
- * @main Illumination
3
- */
4
- import { validateSchemaCreator } from "../../../validation/schema.js";
5
- export const validateSchema = validateSchemaCreator(import.meta.url);
@@ -1,10 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2019-09/schema",
3
- "$id": "/equipment/item/HealingHerb.schema.json",
4
- "$ref": "#/$defs/HealingHerb",
5
- "$defs": {
6
- "HealingHerb": {
7
- "$ref": "./_Item.schema.json#/$defs/DefaultItem"
8
- }
9
- }
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2019-09/schema",
3
- "$id": "/equipment/item/Illumination.schema.json",
4
- "$ref": "#/$defs/Illumination",
5
- "$defs": {
6
- "Illumination": {
7
- "$ref": "./_Item.schema.json#/$defs/DefaultItem"
8
- }
9
- }
10
- }