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
@@ -56,15 +56,15 @@
56
56
  "type": "object",
57
57
  "properties": {
58
58
  "tag": {
59
- "const": "ImprovisedWeapon"
59
+ "const": "Weapon"
60
60
  },
61
- "improvised_weapon": {
62
- "$ref": "./Weapon.schema.json#/$defs/ImprovisedWeapon"
61
+ "weapon": {
62
+ "$ref": "./Weapon.schema.json#/$defs/SecondaryWeapon"
63
63
  }
64
64
  },
65
65
  "required": [
66
66
  "tag",
67
- "improvised_weapon"
67
+ "weapon"
68
68
  ],
69
69
  "additionalProperties": false
70
70
  },
@@ -145,10 +145,17 @@
145
145
  "properties": {
146
146
  "tag": {
147
147
  "const": "Free"
148
+ },
149
+ "free": {
150
+ "type": "object",
151
+ "properties": {},
152
+ "required": [],
153
+ "additionalProperties": false
148
154
  }
149
155
  },
150
156
  "required": [
151
- "tag"
157
+ "tag",
158
+ "free"
152
159
  ],
153
160
  "additionalProperties": false
154
161
  },
@@ -157,10 +164,17 @@
157
164
  "properties": {
158
165
  "tag": {
159
166
  "const": "Various"
167
+ },
168
+ "various": {
169
+ "type": "object",
170
+ "properties": {},
171
+ "required": [],
172
+ "additionalProperties": false
160
173
  }
161
174
  },
162
175
  "required": [
163
- "tag"
176
+ "tag",
177
+ "various"
164
178
  ],
165
179
  "additionalProperties": false
166
180
  },
@@ -169,10 +183,17 @@
169
183
  "properties": {
170
184
  "tag": {
171
185
  "const": ""
186
+ },
187
+ "": {
188
+ "type": "object",
189
+ "properties": {},
190
+ "required": [],
191
+ "additionalProperties": false
172
192
  }
173
193
  },
174
194
  "required": [
175
- "tag"
195
+ "tag",
196
+ ""
176
197
  ],
177
198
  "additionalProperties": false
178
199
  },
@@ -181,10 +202,17 @@
181
202
  "properties": {
182
203
  "tag": {
183
204
  "const": ""
205
+ },
206
+ "": {
207
+ "type": "object",
208
+ "properties": {},
209
+ "required": [],
210
+ "additionalProperties": false
184
211
  }
185
212
  },
186
213
  "required": [
187
- "tag"
214
+ "tag",
215
+ ""
188
216
  ],
189
217
  "additionalProperties": false
190
218
  },
@@ -306,10 +334,17 @@
306
334
  "properties": {
307
335
  "tag": {
308
336
  "const": "Primitive"
337
+ },
338
+ "primitive": {
339
+ "type": "object",
340
+ "properties": {},
341
+ "required": [],
342
+ "additionalProperties": false
309
343
  }
310
344
  },
311
345
  "required": [
312
- "tag"
346
+ "tag",
347
+ "primitive"
313
348
  ],
314
349
  "additionalProperties": false
315
350
  },
@@ -318,10 +353,17 @@
318
353
  "properties": {
319
354
  "tag": {
320
355
  "const": "Simple"
356
+ },
357
+ "simple": {
358
+ "type": "object",
359
+ "properties": {},
360
+ "required": [],
361
+ "additionalProperties": false
321
362
  }
322
363
  },
323
364
  "required": [
324
- "tag"
365
+ "tag",
366
+ "simple"
325
367
  ],
326
368
  "additionalProperties": false
327
369
  },
@@ -53,10 +53,17 @@
53
53
  "properties": {
54
54
  "tag": {
55
55
  "const": "Small"
56
+ },
57
+ "small": {
58
+ "type": "object",
59
+ "properties": {},
60
+ "required": [],
61
+ "additionalProperties": false
56
62
  }
57
63
  },
58
64
  "required": [
59
- "tag"
65
+ "tag",
66
+ "small"
60
67
  ],
61
68
  "additionalProperties": false
62
69
  },
@@ -65,10 +72,17 @@
65
72
  "properties": {
66
73
  "tag": {
67
74
  "const": "Medium"
75
+ },
76
+ "medium": {
77
+ "type": "object",
78
+ "properties": {},
79
+ "required": [],
80
+ "additionalProperties": false
68
81
  }
69
82
  },
70
83
  "required": [
71
- "tag"
84
+ "tag",
85
+ "medium"
72
86
  ],
73
87
  "additionalProperties": false
74
88
  },
@@ -26,10 +26,17 @@
26
26
  "properties": {
27
27
  "tag": {
28
28
  "const": "NotApplicable"
29
+ },
30
+ "not_applicable": {
31
+ "type": "object",
32
+ "properties": {},
33
+ "required": [],
34
+ "additionalProperties": false
29
35
  }
30
36
  },
31
37
  "required": [
32
- "tag"
38
+ "tag",
39
+ "not_applicable"
33
40
  ],
34
41
  "additionalProperties": false
35
42
  },
@@ -38,10 +45,17 @@
38
45
  "properties": {
39
46
  "tag": {
40
47
  "const": "Special"
48
+ },
49
+ "special": {
50
+ "type": "object",
51
+ "properties": {},
52
+ "required": [],
53
+ "additionalProperties": false
41
54
  }
42
55
  },
43
56
  "required": [
44
- "tag"
57
+ "tag",
58
+ "special"
45
59
  ],
46
60
  "additionalProperties": false
47
61
  }
@@ -319,10 +319,17 @@
319
319
  "properties": {
320
320
  "tag": {
321
321
  "const": "Immediate"
322
+ },
323
+ "immediate": {
324
+ "type": "object",
325
+ "properties": {},
326
+ "required": [],
327
+ "additionalProperties": false
322
328
  }
323
329
  },
324
330
  "required": [
325
- "tag"
331
+ "tag",
332
+ "immediate"
326
333
  ],
327
334
  "additionalProperties": false
328
335
  },
@@ -488,10 +495,17 @@
488
495
  "properties": {
489
496
  "tag": {
490
497
  "const": "ByPrimaryPatron"
498
+ },
499
+ "by_primary_patron": {
500
+ "type": "object",
501
+ "properties": {},
502
+ "required": [],
503
+ "additionalProperties": false
491
504
  }
492
505
  },
493
506
  "required": [
494
- "tag"
507
+ "tag",
508
+ "by_primary_patron"
495
509
  ],
496
510
  "additionalProperties": false
497
511
  }
@@ -211,10 +211,17 @@
211
211
  "properties": {
212
212
  "tag": {
213
213
  "const": "Immediate"
214
+ },
215
+ "immediate": {
216
+ "type": "object",
217
+ "properties": {},
218
+ "required": [],
219
+ "additionalProperties": false
214
220
  }
215
221
  },
216
222
  "required": [
217
- "tag"
223
+ "tag",
224
+ "immediate"
218
225
  ],
219
226
  "additionalProperties": false
220
227
  },
@@ -255,10 +255,17 @@
255
255
  "properties": {
256
256
  "tag": {
257
257
  "const": "Self"
258
+ },
259
+ "self": {
260
+ "type": "object",
261
+ "properties": {},
262
+ "required": [],
263
+ "additionalProperties": false
258
264
  }
259
265
  },
260
266
  "required": [
261
- "tag"
267
+ "tag",
268
+ "self"
262
269
  ],
263
270
  "additionalProperties": false
264
271
  },
@@ -301,10 +308,17 @@
301
308
  "properties": {
302
309
  "tag": {
303
310
  "const": "Immediate"
311
+ },
312
+ "immediate": {
313
+ "type": "object",
314
+ "properties": {},
315
+ "required": [],
316
+ "additionalProperties": false
304
317
  }
305
318
  },
306
319
  "required": [
307
- "tag"
320
+ "tag",
321
+ "immediate"
308
322
  ],
309
323
  "additionalProperties": false
310
324
  },
@@ -220,10 +220,17 @@
220
220
  "properties": {
221
221
  "tag": {
222
222
  "const": "Touch"
223
+ },
224
+ "touch": {
225
+ "type": "object",
226
+ "properties": {},
227
+ "required": [],
228
+ "additionalProperties": false
223
229
  }
224
230
  },
225
231
  "required": [
226
- "tag"
232
+ "tag",
233
+ "touch"
227
234
  ],
228
235
  "additionalProperties": false
229
236
  },
@@ -232,10 +239,17 @@
232
239
  "properties": {
233
240
  "tag": {
234
241
  "const": "Self"
242
+ },
243
+ "self": {
244
+ "type": "object",
245
+ "properties": {},
246
+ "required": [],
247
+ "additionalProperties": false
235
248
  }
236
249
  },
237
250
  "required": [
238
- "tag"
251
+ "tag",
252
+ "self"
239
253
  ],
240
254
  "additionalProperties": false
241
255
  },
@@ -278,10 +292,17 @@
278
292
  "properties": {
279
293
  "tag": {
280
294
  "const": "Immediate"
295
+ },
296
+ "immediate": {
297
+ "type": "object",
298
+ "properties": {},
299
+ "required": [],
300
+ "additionalProperties": false
281
301
  }
282
302
  },
283
303
  "required": [
284
- "tag"
304
+ "tag",
305
+ "immediate"
285
306
  ],
286
307
  "additionalProperties": false
287
308
  },
@@ -59,59 +59,15 @@
59
59
  "additionalProperties": false
60
60
  },
61
61
  "MusicLength": {
62
- "oneOf": [
63
- {
64
- "type": "object",
65
- "properties": {
66
- "tag": {
67
- "const": "Long"
68
- }
69
- },
70
- "required": [
71
- "tag"
72
- ],
73
- "additionalProperties": false
74
- },
75
- {
76
- "type": "object",
77
- "properties": {
78
- "tag": {
79
- "const": "Short"
80
- }
81
- },
82
- "required": [
83
- "tag"
84
- ],
85
- "additionalProperties": false
86
- }
62
+ "enum": [
63
+ "Long",
64
+ "Short"
87
65
  ]
88
66
  },
89
67
  "MusicReusability": {
90
- "oneOf": [
91
- {
92
- "type": "object",
93
- "properties": {
94
- "tag": {
95
- "const": "OneTime"
96
- }
97
- },
98
- "required": [
99
- "tag"
100
- ],
101
- "additionalProperties": false
102
- },
103
- {
104
- "type": "object",
105
- "properties": {
106
- "tag": {
107
- "const": "Sustainable"
108
- }
109
- },
110
- "required": [
111
- "tag"
112
- ],
113
- "additionalProperties": false
114
- }
68
+ "enum": [
69
+ "OneTime",
70
+ "Sustainable"
115
71
  ]
116
72
  }
117
73
  }
@@ -10,10 +10,17 @@
10
10
  "properties": {
11
11
  "tag": {
12
12
  "const": "Hide"
13
+ },
14
+ "hide": {
15
+ "type": "object",
16
+ "properties": {},
17
+ "required": [],
18
+ "additionalProperties": false
13
19
  }
14
20
  },
15
21
  "required": [
16
- "tag"
22
+ "tag",
23
+ "hide"
17
24
  ],
18
25
  "additionalProperties": false
19
26
  },
@@ -425,10 +425,17 @@
425
425
  "properties": {
426
426
  "tag": {
427
427
  "const": "CommonSuggestedByRCP"
428
+ },
429
+ "common_suggested_by_rcp": {
430
+ "type": "object",
431
+ "properties": {},
432
+ "required": [],
433
+ "additionalProperties": false
428
434
  }
429
435
  },
430
436
  "required": [
431
- "tag"
437
+ "tag",
438
+ "common_suggested_by_rcp"
432
439
  ],
433
440
  "additionalProperties": false
434
441
  },
@@ -26,31 +26,9 @@
26
26
  "additionalProperties": false
27
27
  },
28
28
  "PrimaryAttributeCategory": {
29
- "oneOf": [
30
- {
31
- "type": "object",
32
- "properties": {
33
- "tag": {
34
- "const": "Blessed"
35
- }
36
- },
37
- "required": [
38
- "tag"
39
- ],
40
- "additionalProperties": false
41
- },
42
- {
43
- "type": "object",
44
- "properties": {
45
- "tag": {
46
- "const": "Magical"
47
- }
48
- },
49
- "required": [
50
- "tag"
51
- ],
52
- "additionalProperties": false
53
- }
29
+ "enum": [
30
+ "Blessed",
31
+ "Magical"
54
32
  ]
55
33
  }
56
34
  }
@@ -30,31 +30,9 @@
30
30
  "additionalProperties": false
31
31
  },
32
32
  "TextVerificationRule": {
33
- "oneOf": [
34
- {
35
- "type": "object",
36
- "properties": {
37
- "tag": {
38
- "const": "Pass"
39
- }
40
- },
41
- "required": [
42
- "tag"
43
- ],
44
- "additionalProperties": false
45
- },
46
- {
47
- "type": "object",
48
- "properties": {
49
- "tag": {
50
- "const": "Deny"
51
- }
52
- },
53
- "required": [
54
- "tag"
55
- ],
56
- "additionalProperties": false
57
- }
33
+ "enum": [
34
+ "Pass",
35
+ "Deny"
58
36
  ]
59
37
  },
60
38
  "TextPrerequisiteTranslation": {
@@ -19,31 +19,9 @@
19
19
  },
20
20
  "BlessedTraditionPrerequisiteRestriction": {
21
21
  "description": "The blessed tradition prerequisite may only be satified if the blessed\ntradition is either church or shamanistic.",
22
- "oneOf": [
23
- {
24
- "type": "object",
25
- "properties": {
26
- "tag": {
27
- "const": "Church"
28
- }
29
- },
30
- "required": [
31
- "tag"
32
- ],
33
- "additionalProperties": false
34
- },
35
- {
36
- "type": "object",
37
- "properties": {
38
- "tag": {
39
- "const": "Shamanistic"
40
- }
41
- },
42
- "required": [
43
- "tag"
44
- ],
45
- "additionalProperties": false
46
- }
22
+ "enum": [
23
+ "Church",
24
+ "Shamanistic"
47
25
  ]
48
26
  },
49
27
  "MagicalTraditionPrerequisite": {
@@ -63,31 +41,9 @@
63
41
  },
64
42
  "MagicalTraditionPrerequisiteRestriction": {
65
43
  "description": "The magical tradition prerequisite may only be satified if the magical\ntradition can learn rituals or can bind familiars.",
66
- "oneOf": [
67
- {
68
- "type": "object",
69
- "properties": {
70
- "tag": {
71
- "const": "CanLearnRituals"
72
- }
73
- },
74
- "required": [
75
- "tag"
76
- ],
77
- "additionalProperties": false
78
- },
79
- {
80
- "type": "object",
81
- "properties": {
82
- "tag": {
83
- "const": "CanBindFamiliars"
84
- }
85
- },
86
- "required": [
87
- "tag"
88
- ],
89
- "additionalProperties": false
90
- }
44
+ "enum": [
45
+ "CanLearnRituals",
46
+ "CanBindFamiliars"
91
47
  ]
92
48
  }
93
49
  }