5etools-utils 0.5.10 → 0.5.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.5.10",
3
+ "version": "0.5.12",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -0,0 +1,459 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "decks.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "$defs": {
7
+ "deckData": {
8
+ "type": "object",
9
+ "properties": {
10
+ "name": {
11
+ "type": "string"
12
+ },
13
+ "source": {
14
+ "type": "string"
15
+ },
16
+ "page": {
17
+ "$ref": "util.json#/$defs/page"
18
+ },
19
+ "srd": {
20
+ "$ref": "util.json#/$defs/srd"
21
+ },
22
+ "cards": {
23
+ "type": "array",
24
+ "$comment": "Non-unique entries are permitted, to allow explicit ordering of duplicate cards.",
25
+ "items": {
26
+ "oneOf": [
27
+ {
28
+ "type": "string"
29
+ },
30
+ {
31
+ "type": "object",
32
+ "properties": {
33
+ "uid": {
34
+ "type": "string"
35
+ },
36
+ "count": {
37
+ "type": "integer"
38
+ }
39
+ },
40
+ "required": [
41
+ "uid",
42
+ "count"
43
+ ],
44
+ "additionalProperties": false
45
+ }
46
+ ]
47
+ },
48
+ "minItems": 1
49
+ },
50
+ "entries": {
51
+ "type": "array",
52
+ "items": {
53
+ "$ref": "entry.json"
54
+ }
55
+ },
56
+ "back": {
57
+ "$ref": "entry.json#/$defs/entryImage"
58
+ },
59
+ "hasCardArt": {
60
+ "description": "A hint used by filters, determining whether or not this deck should be filtered out by default.",
61
+ "type": "boolean"
62
+ }
63
+ },
64
+ "additionalProperties": false
65
+ },
66
+ "deck": {
67
+ "anyOf": [
68
+ {
69
+ "type": "object",
70
+ "properties": {
71
+ "name": {
72
+ "type": "string"
73
+ },
74
+ "source": {
75
+ "type": "string"
76
+ },
77
+ "page": {
78
+ "$ref": "util.json#/$defs/page"
79
+ },
80
+ "srd": {
81
+ "$ref": "util.json#/$defs/srd"
82
+ },
83
+ "cards": {
84
+ "type": "array",
85
+ "$comment": "Non-unique entries are permitted, to allow explicit ordering of duplicate cards.",
86
+ "items": {
87
+ "oneOf": [
88
+ {
89
+ "type": "string"
90
+ },
91
+ {
92
+ "type": "object",
93
+ "properties": {
94
+ "uid": {
95
+ "type": "string"
96
+ },
97
+ "count": {
98
+ "type": "integer"
99
+ }
100
+ },
101
+ "required": [
102
+ "uid",
103
+ "count"
104
+ ],
105
+ "additionalProperties": false
106
+ }
107
+ ]
108
+ },
109
+ "minItems": 1
110
+ },
111
+ "entries": {
112
+ "type": "array",
113
+ "items": {
114
+ "$ref": "entry.json"
115
+ }
116
+ },
117
+ "back": {
118
+ "$ref": "entry.json#/$defs/entryImage"
119
+ },
120
+ "hasCardArt": {
121
+ "description": "A hint used by filters, determining whether or not this deck should be filtered out by default.",
122
+ "type": "boolean"
123
+ }
124
+ },
125
+ "additionalProperties": false,
126
+ "required": [
127
+ "name",
128
+ "source",
129
+ "cards"
130
+ ]
131
+ },
132
+ {
133
+ "type": "object",
134
+ "properties": {
135
+ "name": {
136
+ "type": "string"
137
+ },
138
+ "source": {
139
+ "type": "string"
140
+ },
141
+ "page": {
142
+ "$ref": "util.json#/$defs/page"
143
+ },
144
+ "srd": {
145
+ "$ref": "util.json#/$defs/srd"
146
+ },
147
+ "cards": {
148
+ "type": "array",
149
+ "$comment": "Non-unique entries are permitted, to allow explicit ordering of duplicate cards.",
150
+ "items": {
151
+ "oneOf": [
152
+ {
153
+ "type": "string"
154
+ },
155
+ {
156
+ "type": "object",
157
+ "properties": {
158
+ "uid": {
159
+ "type": "string"
160
+ },
161
+ "count": {
162
+ "type": "integer"
163
+ }
164
+ },
165
+ "required": [
166
+ "uid",
167
+ "count"
168
+ ],
169
+ "additionalProperties": false
170
+ }
171
+ ]
172
+ },
173
+ "minItems": 1
174
+ },
175
+ "entries": {
176
+ "type": "array",
177
+ "items": {
178
+ "$ref": "entry.json"
179
+ }
180
+ },
181
+ "back": {
182
+ "$ref": "entry.json#/$defs/entryImage"
183
+ },
184
+ "hasCardArt": {
185
+ "description": "A hint used by filters, determining whether or not this deck should be filtered out by default.",
186
+ "type": "boolean"
187
+ },
188
+ "_copy": {
189
+ "type": "object",
190
+ "properties": {
191
+ "name": {
192
+ "type": "string"
193
+ },
194
+ "source": {
195
+ "type": "string"
196
+ },
197
+ "pantheon": {
198
+ "description": "Used in deity data",
199
+ "type": "string"
200
+ },
201
+ "shortName": {
202
+ "description": "Used in subclass data",
203
+ "type": "string"
204
+ },
205
+ "className": {
206
+ "description": "Used in subclass data",
207
+ "type": "string"
208
+ },
209
+ "classSource": {
210
+ "description": "Used in subclass data",
211
+ "type": "string"
212
+ },
213
+ "_mod": {
214
+ "$ref": "util.json#/$defs/_modObject"
215
+ },
216
+ "_trait": {
217
+ "type": "object",
218
+ "properties": {
219
+ "name": {
220
+ "type": "string"
221
+ },
222
+ "source": {
223
+ "type": "string"
224
+ }
225
+ },
226
+ "required": [
227
+ "name",
228
+ "source"
229
+ ]
230
+ },
231
+ "_preserve": {
232
+ "type": "object",
233
+ "patternProperties": {
234
+ ".*": {
235
+ "const": true
236
+ }
237
+ }
238
+ }
239
+ },
240
+ "required": [
241
+ "name",
242
+ "source"
243
+ ],
244
+ "additionalProperties": false
245
+ }
246
+ },
247
+ "additionalProperties": false,
248
+ "required": [
249
+ "_copy"
250
+ ]
251
+ }
252
+ ]
253
+ },
254
+ "cardData": {
255
+ "type": "object",
256
+ "properties": {
257
+ "name": {
258
+ "type": "string"
259
+ },
260
+ "source": {
261
+ "type": "string"
262
+ },
263
+ "set": {
264
+ "type": "string"
265
+ },
266
+ "page": {
267
+ "$ref": "util.json#/$defs/page"
268
+ },
269
+ "srd": {
270
+ "$ref": "util.json#/$defs/srd"
271
+ },
272
+ "entries": {
273
+ "type": "array",
274
+ "items": {
275
+ "$ref": "entry.json"
276
+ }
277
+ },
278
+ "face": {
279
+ "$ref": "entry.json#/$defs/entryImage"
280
+ },
281
+ "suit": {
282
+ "type": "string"
283
+ },
284
+ "value": {
285
+ "type": "integer"
286
+ }
287
+ },
288
+ "additionalProperties": false
289
+ },
290
+ "card": {
291
+ "anyOf": [
292
+ {
293
+ "type": "object",
294
+ "properties": {
295
+ "name": {
296
+ "type": "string"
297
+ },
298
+ "source": {
299
+ "type": "string"
300
+ },
301
+ "set": {
302
+ "type": "string"
303
+ },
304
+ "page": {
305
+ "$ref": "util.json#/$defs/page"
306
+ },
307
+ "srd": {
308
+ "$ref": "util.json#/$defs/srd"
309
+ },
310
+ "entries": {
311
+ "type": "array",
312
+ "items": {
313
+ "$ref": "entry.json"
314
+ }
315
+ },
316
+ "face": {
317
+ "$ref": "entry.json#/$defs/entryImage"
318
+ },
319
+ "suit": {
320
+ "type": "string"
321
+ },
322
+ "value": {
323
+ "type": "integer"
324
+ }
325
+ },
326
+ "additionalProperties": false,
327
+ "required": [
328
+ "name",
329
+ "source",
330
+ "set"
331
+ ]
332
+ },
333
+ {
334
+ "type": "object",
335
+ "properties": {
336
+ "name": {
337
+ "type": "string"
338
+ },
339
+ "source": {
340
+ "type": "string"
341
+ },
342
+ "set": {
343
+ "type": "string"
344
+ },
345
+ "page": {
346
+ "$ref": "util.json#/$defs/page"
347
+ },
348
+ "srd": {
349
+ "$ref": "util.json#/$defs/srd"
350
+ },
351
+ "entries": {
352
+ "type": "array",
353
+ "items": {
354
+ "$ref": "entry.json"
355
+ }
356
+ },
357
+ "face": {
358
+ "$ref": "entry.json#/$defs/entryImage"
359
+ },
360
+ "suit": {
361
+ "type": "string"
362
+ },
363
+ "value": {
364
+ "type": "integer"
365
+ },
366
+ "_copy": {
367
+ "type": "object",
368
+ "properties": {
369
+ "name": {
370
+ "type": "string"
371
+ },
372
+ "source": {
373
+ "type": "string"
374
+ },
375
+ "pantheon": {
376
+ "description": "Used in deity data",
377
+ "type": "string"
378
+ },
379
+ "shortName": {
380
+ "description": "Used in subclass data",
381
+ "type": "string"
382
+ },
383
+ "className": {
384
+ "description": "Used in subclass data",
385
+ "type": "string"
386
+ },
387
+ "classSource": {
388
+ "description": "Used in subclass data",
389
+ "type": "string"
390
+ },
391
+ "_mod": {
392
+ "$ref": "util.json#/$defs/_modObject"
393
+ },
394
+ "_trait": {
395
+ "type": "object",
396
+ "properties": {
397
+ "name": {
398
+ "type": "string"
399
+ },
400
+ "source": {
401
+ "type": "string"
402
+ }
403
+ },
404
+ "required": [
405
+ "name",
406
+ "source"
407
+ ]
408
+ },
409
+ "_preserve": {
410
+ "type": "object",
411
+ "patternProperties": {
412
+ ".*": {
413
+ "const": true
414
+ }
415
+ }
416
+ }
417
+ },
418
+ "required": [
419
+ "name",
420
+ "source"
421
+ ],
422
+ "additionalProperties": false
423
+ }
424
+ },
425
+ "additionalProperties": false,
426
+ "required": [
427
+ "_copy"
428
+ ]
429
+ }
430
+ ]
431
+ }
432
+ },
433
+ "properties": {
434
+ "_meta": {
435
+ "$ref": "util.json#/$defs/metaBlock"
436
+ },
437
+ "deck": {
438
+ "type": "array",
439
+ "minItems": 1,
440
+ "uniqueItems": true,
441
+ "items": {
442
+ "$ref": "#/$defs/deck"
443
+ }
444
+ },
445
+ "card": {
446
+ "type": "array",
447
+ "minItems": 1,
448
+ "uniqueItems": true,
449
+ "items": {
450
+ "$ref": "#/$defs/card"
451
+ }
452
+ }
453
+ },
454
+ "required": [
455
+ "deck",
456
+ "card"
457
+ ],
458
+ "additionalProperties": false
459
+ }
@@ -604,6 +604,12 @@
604
604
  },
605
605
  "spellList": {
606
606
  "$ref": "#/$defs/spellList"
607
+ },
608
+ "deck": {
609
+ "$ref": "decks.json#/properties/deck"
610
+ },
611
+ "card": {
612
+ "$ref": "decks.json#/properties/card"
607
613
  }
608
614
  },
609
615
  "additionalProperties": false,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "items.json",
4
- "version": "1.13.0",
4
+ "version": "1.13.1",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "itemData": {
@@ -505,6 +505,13 @@
505
505
  "spellScrollLevel": {
506
506
  "type": "integer"
507
507
  },
508
+ "seeAlsoDeck": {
509
+ "type": "array",
510
+ "items": {
511
+ "type": "string",
512
+ "description": "UIDs of \"deck\"s to be linked in a \"See Also\" footnote.\nEx.: \"deck of many things|dmg\"."
513
+ }
514
+ },
508
515
  "seeAlsoVehicle": {
509
516
  "type": "array",
510
517
  "items": {
@@ -1091,6 +1098,13 @@
1091
1098
  "spellScrollLevel": {
1092
1099
  "type": "integer"
1093
1100
  },
1101
+ "seeAlsoDeck": {
1102
+ "type": "array",
1103
+ "items": {
1104
+ "type": "string",
1105
+ "description": "UIDs of \"deck\"s to be linked in a \"See Also\" footnote.\nEx.: \"deck of many things|dmg\"."
1106
+ }
1107
+ },
1094
1108
  "seeAlsoVehicle": {
1095
1109
  "type": "array",
1096
1110
  "items": {
@@ -1680,6 +1694,13 @@
1680
1694
  "spellScrollLevel": {
1681
1695
  "type": "integer"
1682
1696
  },
1697
+ "seeAlsoDeck": {
1698
+ "type": "array",
1699
+ "items": {
1700
+ "type": "string",
1701
+ "description": "UIDs of \"deck\"s to be linked in a \"See Also\" footnote.\nEx.: \"deck of many things|dmg\"."
1702
+ }
1703
+ },
1683
1704
  "seeAlsoVehicle": {
1684
1705
  "type": "array",
1685
1706
  "items": {
@@ -3,7 +3,7 @@
3
3
  "$id": "util.json",
4
4
  "title": "Util",
5
5
  "description": "Utility definitions to be used in other schemas.",
6
- "version": "1.13.6",
6
+ "version": "1.13.7",
7
7
  "$defs": {
8
8
  "metaBlock": {
9
9
  "type": "object",
@@ -175,6 +175,7 @@
175
175
  "dwarvish",
176
176
  "elvish",
177
177
  "giant",
178
+ "gith",
178
179
  "gnomish",
179
180
  "goblin",
180
181
  "halfling",