5etools-utils 0.5.11 → 0.5.13

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.11",
3
+ "version": "0.5.13",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -0,0 +1,477 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "decks.json",
4
+ "version": "1.0.1",
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
+ "replacement": {
40
+ "const": true
41
+ }
42
+ },
43
+ "required": [
44
+ "uid"
45
+ ],
46
+ "minProperties": 2,
47
+ "additionalProperties": false
48
+ }
49
+ ]
50
+ },
51
+ "minItems": 1
52
+ },
53
+ "entries": {
54
+ "type": "array",
55
+ "items": {
56
+ "$ref": "entry.json"
57
+ }
58
+ },
59
+ "back": {
60
+ "$ref": "entry.json#/$defs/entryImage"
61
+ },
62
+ "hasCardArt": {
63
+ "description": "A hint used by filters, determining whether or not this deck should be filtered out by default.",
64
+ "type": "boolean"
65
+ }
66
+ },
67
+ "additionalProperties": false
68
+ },
69
+ "deck": {
70
+ "anyOf": [
71
+ {
72
+ "type": "object",
73
+ "properties": {
74
+ "name": {
75
+ "type": "string"
76
+ },
77
+ "source": {
78
+ "type": "string"
79
+ },
80
+ "page": {
81
+ "$ref": "util.json#/$defs/page"
82
+ },
83
+ "srd": {
84
+ "$ref": "util.json#/$defs/srd"
85
+ },
86
+ "cards": {
87
+ "type": "array",
88
+ "$comment": "Non-unique entries are permitted, to allow explicit ordering of duplicate cards.",
89
+ "items": {
90
+ "oneOf": [
91
+ {
92
+ "type": "string"
93
+ },
94
+ {
95
+ "type": "object",
96
+ "properties": {
97
+ "uid": {
98
+ "type": "string"
99
+ },
100
+ "count": {
101
+ "type": "integer"
102
+ },
103
+ "replacement": {
104
+ "const": true
105
+ }
106
+ },
107
+ "required": [
108
+ "uid"
109
+ ],
110
+ "minProperties": 2,
111
+ "additionalProperties": false
112
+ }
113
+ ]
114
+ },
115
+ "minItems": 1
116
+ },
117
+ "entries": {
118
+ "type": "array",
119
+ "items": {
120
+ "$ref": "entry.json"
121
+ }
122
+ },
123
+ "back": {
124
+ "$ref": "entry.json#/$defs/entryImage"
125
+ },
126
+ "hasCardArt": {
127
+ "description": "A hint used by filters, determining whether or not this deck should be filtered out by default.",
128
+ "type": "boolean"
129
+ }
130
+ },
131
+ "additionalProperties": false,
132
+ "required": [
133
+ "name",
134
+ "source",
135
+ "cards"
136
+ ]
137
+ },
138
+ {
139
+ "type": "object",
140
+ "properties": {
141
+ "name": {
142
+ "type": "string"
143
+ },
144
+ "source": {
145
+ "type": "string"
146
+ },
147
+ "page": {
148
+ "$ref": "util.json#/$defs/page"
149
+ },
150
+ "srd": {
151
+ "$ref": "util.json#/$defs/srd"
152
+ },
153
+ "cards": {
154
+ "type": "array",
155
+ "$comment": "Non-unique entries are permitted, to allow explicit ordering of duplicate cards.",
156
+ "items": {
157
+ "oneOf": [
158
+ {
159
+ "type": "string"
160
+ },
161
+ {
162
+ "type": "object",
163
+ "properties": {
164
+ "uid": {
165
+ "type": "string"
166
+ },
167
+ "count": {
168
+ "type": "integer"
169
+ },
170
+ "replacement": {
171
+ "const": true
172
+ }
173
+ },
174
+ "required": [
175
+ "uid"
176
+ ],
177
+ "minProperties": 2,
178
+ "additionalProperties": false
179
+ }
180
+ ]
181
+ },
182
+ "minItems": 1
183
+ },
184
+ "entries": {
185
+ "type": "array",
186
+ "items": {
187
+ "$ref": "entry.json"
188
+ }
189
+ },
190
+ "back": {
191
+ "$ref": "entry.json#/$defs/entryImage"
192
+ },
193
+ "hasCardArt": {
194
+ "description": "A hint used by filters, determining whether or not this deck should be filtered out by default.",
195
+ "type": "boolean"
196
+ },
197
+ "_copy": {
198
+ "type": "object",
199
+ "properties": {
200
+ "name": {
201
+ "type": "string"
202
+ },
203
+ "source": {
204
+ "type": "string"
205
+ },
206
+ "pantheon": {
207
+ "description": "Used in deity data",
208
+ "type": "string"
209
+ },
210
+ "shortName": {
211
+ "description": "Used in subclass data",
212
+ "type": "string"
213
+ },
214
+ "className": {
215
+ "description": "Used in subclass data",
216
+ "type": "string"
217
+ },
218
+ "classSource": {
219
+ "description": "Used in subclass data",
220
+ "type": "string"
221
+ },
222
+ "_mod": {
223
+ "$ref": "util.json#/$defs/_modObject"
224
+ },
225
+ "_trait": {
226
+ "type": "object",
227
+ "properties": {
228
+ "name": {
229
+ "type": "string"
230
+ },
231
+ "source": {
232
+ "type": "string"
233
+ }
234
+ },
235
+ "required": [
236
+ "name",
237
+ "source"
238
+ ]
239
+ },
240
+ "_preserve": {
241
+ "type": "object",
242
+ "patternProperties": {
243
+ ".*": {
244
+ "const": true
245
+ }
246
+ }
247
+ }
248
+ },
249
+ "required": [
250
+ "name",
251
+ "source"
252
+ ],
253
+ "additionalProperties": false
254
+ }
255
+ },
256
+ "additionalProperties": false,
257
+ "required": [
258
+ "_copy"
259
+ ]
260
+ }
261
+ ]
262
+ },
263
+ "cardData": {
264
+ "type": "object",
265
+ "properties": {
266
+ "name": {
267
+ "type": "string"
268
+ },
269
+ "source": {
270
+ "type": "string"
271
+ },
272
+ "set": {
273
+ "type": "string"
274
+ },
275
+ "page": {
276
+ "$ref": "util.json#/$defs/page"
277
+ },
278
+ "srd": {
279
+ "$ref": "util.json#/$defs/srd"
280
+ },
281
+ "entries": {
282
+ "type": "array",
283
+ "items": {
284
+ "$ref": "entry.json"
285
+ }
286
+ },
287
+ "face": {
288
+ "$ref": "entry.json#/$defs/entryImage"
289
+ },
290
+ "back": {
291
+ "$ref": "entry.json#/$defs/entryImage"
292
+ },
293
+ "suit": {
294
+ "type": "string"
295
+ },
296
+ "value": {
297
+ "type": "integer"
298
+ }
299
+ },
300
+ "additionalProperties": false
301
+ },
302
+ "card": {
303
+ "anyOf": [
304
+ {
305
+ "type": "object",
306
+ "properties": {
307
+ "name": {
308
+ "type": "string"
309
+ },
310
+ "source": {
311
+ "type": "string"
312
+ },
313
+ "set": {
314
+ "type": "string"
315
+ },
316
+ "page": {
317
+ "$ref": "util.json#/$defs/page"
318
+ },
319
+ "srd": {
320
+ "$ref": "util.json#/$defs/srd"
321
+ },
322
+ "entries": {
323
+ "type": "array",
324
+ "items": {
325
+ "$ref": "entry.json"
326
+ }
327
+ },
328
+ "face": {
329
+ "$ref": "entry.json#/$defs/entryImage"
330
+ },
331
+ "back": {
332
+ "$ref": "entry.json#/$defs/entryImage"
333
+ },
334
+ "suit": {
335
+ "type": "string"
336
+ },
337
+ "value": {
338
+ "type": "integer"
339
+ }
340
+ },
341
+ "additionalProperties": false,
342
+ "required": [
343
+ "name",
344
+ "source",
345
+ "set"
346
+ ]
347
+ },
348
+ {
349
+ "type": "object",
350
+ "properties": {
351
+ "name": {
352
+ "type": "string"
353
+ },
354
+ "source": {
355
+ "type": "string"
356
+ },
357
+ "set": {
358
+ "type": "string"
359
+ },
360
+ "page": {
361
+ "$ref": "util.json#/$defs/page"
362
+ },
363
+ "srd": {
364
+ "$ref": "util.json#/$defs/srd"
365
+ },
366
+ "entries": {
367
+ "type": "array",
368
+ "items": {
369
+ "$ref": "entry.json"
370
+ }
371
+ },
372
+ "face": {
373
+ "$ref": "entry.json#/$defs/entryImage"
374
+ },
375
+ "back": {
376
+ "$ref": "entry.json#/$defs/entryImage"
377
+ },
378
+ "suit": {
379
+ "type": "string"
380
+ },
381
+ "value": {
382
+ "type": "integer"
383
+ },
384
+ "_copy": {
385
+ "type": "object",
386
+ "properties": {
387
+ "name": {
388
+ "type": "string"
389
+ },
390
+ "source": {
391
+ "type": "string"
392
+ },
393
+ "pantheon": {
394
+ "description": "Used in deity data",
395
+ "type": "string"
396
+ },
397
+ "shortName": {
398
+ "description": "Used in subclass data",
399
+ "type": "string"
400
+ },
401
+ "className": {
402
+ "description": "Used in subclass data",
403
+ "type": "string"
404
+ },
405
+ "classSource": {
406
+ "description": "Used in subclass data",
407
+ "type": "string"
408
+ },
409
+ "_mod": {
410
+ "$ref": "util.json#/$defs/_modObject"
411
+ },
412
+ "_trait": {
413
+ "type": "object",
414
+ "properties": {
415
+ "name": {
416
+ "type": "string"
417
+ },
418
+ "source": {
419
+ "type": "string"
420
+ }
421
+ },
422
+ "required": [
423
+ "name",
424
+ "source"
425
+ ]
426
+ },
427
+ "_preserve": {
428
+ "type": "object",
429
+ "patternProperties": {
430
+ ".*": {
431
+ "const": true
432
+ }
433
+ }
434
+ }
435
+ },
436
+ "required": [
437
+ "name",
438
+ "source"
439
+ ],
440
+ "additionalProperties": false
441
+ }
442
+ },
443
+ "additionalProperties": false,
444
+ "required": [
445
+ "_copy"
446
+ ]
447
+ }
448
+ ]
449
+ }
450
+ },
451
+ "properties": {
452
+ "_meta": {
453
+ "$ref": "util.json#/$defs/metaBlock"
454
+ },
455
+ "deck": {
456
+ "type": "array",
457
+ "minItems": 1,
458
+ "uniqueItems": true,
459
+ "items": {
460
+ "$ref": "#/$defs/deck"
461
+ }
462
+ },
463
+ "card": {
464
+ "type": "array",
465
+ "minItems": 1,
466
+ "uniqueItems": true,
467
+ "items": {
468
+ "$ref": "#/$defs/card"
469
+ }
470
+ }
471
+ },
472
+ "required": [
473
+ "deck",
474
+ "card"
475
+ ],
476
+ "additionalProperties": false
477
+ }
@@ -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": {