5etools-utils 0.8.28 → 0.8.29

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.8.28",
3
+ "version": "0.8.29",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "foundry-class.json",
4
- "version": "1.4.2",
4
+ "version": "1.4.3",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "entryDataObject": {
@@ -56,6 +56,7 @@
56
56
  "type": "array",
57
57
  "items": {
58
58
  "type": "object",
59
+ "additionalProperties": false,
59
60
  "properties": {
60
61
  "name": {
61
62
  "type": "string"
@@ -63,6 +64,21 @@
63
64
  "source": {
64
65
  "$ref": "../util.json#/$defs/source"
65
66
  },
67
+ "system": {
68
+ "$ref": "../util.json#/$defs/foundrySystemObject"
69
+ },
70
+ "effects": {
71
+ "type": "array",
72
+ "items": {
73
+ "$ref": "../util.json#/$defs/foundryEffectObject"
74
+ }
75
+ },
76
+ "flags": {
77
+ "$ref": "../util.json#/$defs/foundryFlagsObject"
78
+ },
79
+ "img": {
80
+ "type": "string"
81
+ },
66
82
  "entries": {
67
83
  "type": "array",
68
84
  "items": {
@@ -72,12 +88,6 @@
72
88
  "entryData": {
73
89
  "$ref": "#/$defs/entryDataObject"
74
90
  },
75
- "system": {
76
- "$ref": "../util.json#/$defs/foundrySystemObject"
77
- },
78
- "flags": {
79
- "$ref": "../util.json#/$defs/foundryFlagsObject"
80
- },
81
91
  "advancement": {
82
92
  "$ref": "../util.json#/$defs/foundryAdvancementsArray"
83
93
  },
@@ -105,12 +115,6 @@
105
115
  "actorTokenMod": {
106
116
  "type": "object"
107
117
  },
108
- "effects": {
109
- "$ref": "../util.json#/$defs/foundryEffectsArray"
110
- },
111
- "img": {
112
- "type": "string"
113
- },
114
118
  "subEntities": {
115
119
  "$ref": "../util.json#/$defs/foundrySubEntitiesObject"
116
120
  }
@@ -118,8 +122,7 @@
118
122
  "required": [
119
123
  "name",
120
124
  "source"
121
- ],
122
- "additionalProperties": false
125
+ ]
123
126
  },
124
127
  "minItems": 1,
125
128
  "uniqueItems": true
@@ -128,6 +131,13 @@
128
131
  "type": "array",
129
132
  "items": {
130
133
  "type": "object",
134
+ "required": [
135
+ "name",
136
+ "source",
137
+ "className",
138
+ "classSource"
139
+ ],
140
+ "additionalProperties": false,
131
141
  "properties": {
132
142
  "name": {
133
143
  "type": "string"
@@ -135,6 +145,21 @@
135
145
  "source": {
136
146
  "$ref": "../util.json#/$defs/source"
137
147
  },
148
+ "system": {
149
+ "$ref": "../util.json#/$defs/foundrySystemObject"
150
+ },
151
+ "effects": {
152
+ "type": "array",
153
+ "items": {
154
+ "$ref": "../util.json#/$defs/foundryEffectObject"
155
+ }
156
+ },
157
+ "flags": {
158
+ "$ref": "../util.json#/$defs/foundryFlagsObject"
159
+ },
160
+ "img": {
161
+ "type": "string"
162
+ },
138
163
  "className": {
139
164
  "type": "string"
140
165
  },
@@ -150,12 +175,6 @@
150
175
  "entryData": {
151
176
  "$ref": "#/$defs/entryDataObject"
152
177
  },
153
- "system": {
154
- "$ref": "../util.json#/$defs/foundrySystemObject"
155
- },
156
- "flags": {
157
- "$ref": "../util.json#/$defs/foundryFlagsObject"
158
- },
159
178
  "advancement": {
160
179
  "$ref": "../util.json#/$defs/foundryAdvancementsArray"
161
180
  },
@@ -183,23 +202,10 @@
183
202
  "actorTokenMod": {
184
203
  "type": "object"
185
204
  },
186
- "effects": {
187
- "$ref": "../util.json#/$defs/foundryEffectsArray"
188
- },
189
- "img": {
190
- "type": "string"
191
- },
192
205
  "subEntities": {
193
206
  "$ref": "../util.json#/$defs/foundrySubEntitiesObject"
194
207
  }
195
- },
196
- "required": [
197
- "name",
198
- "source",
199
- "className",
200
- "classSource"
201
- ],
202
- "additionalProperties": false
208
+ }
203
209
  },
204
210
  "minItems": 1,
205
211
  "uniqueItems": true
@@ -208,6 +214,14 @@
208
214
  "type": "array",
209
215
  "items": {
210
216
  "type": "object",
217
+ "required": [
218
+ "name",
219
+ "source",
220
+ "className",
221
+ "classSource",
222
+ "level"
223
+ ],
224
+ "additionalProperties": false,
211
225
  "properties": {
212
226
  "name": {
213
227
  "type": "string"
@@ -215,6 +229,21 @@
215
229
  "source": {
216
230
  "$ref": "../util.json#/$defs/source"
217
231
  },
232
+ "system": {
233
+ "$ref": "../util.json#/$defs/foundrySystemObject"
234
+ },
235
+ "effects": {
236
+ "type": "array",
237
+ "items": {
238
+ "$ref": "../util.json#/$defs/foundryEffectObject"
239
+ }
240
+ },
241
+ "flags": {
242
+ "$ref": "../util.json#/$defs/foundryFlagsObject"
243
+ },
244
+ "img": {
245
+ "type": "string"
246
+ },
218
247
  "className": {
219
248
  "type": "string"
220
249
  },
@@ -233,12 +262,6 @@
233
262
  "entryData": {
234
263
  "$ref": "#/$defs/entryDataObject"
235
264
  },
236
- "system": {
237
- "$ref": "../util.json#/$defs/foundrySystemObject"
238
- },
239
- "flags": {
240
- "$ref": "../util.json#/$defs/foundryFlagsObject"
241
- },
242
265
  "chooseSystem": {
243
266
  "type": "array",
244
267
  "items": {
@@ -263,24 +286,10 @@
263
286
  "actorTokenMod": {
264
287
  "type": "object"
265
288
  },
266
- "effects": {
267
- "$ref": "../util.json#/$defs/foundryEffectsArray"
268
- },
269
- "img": {
270
- "type": "string"
271
- },
272
289
  "subEntities": {
273
290
  "$ref": "../util.json#/$defs/foundrySubEntitiesObject"
274
291
  }
275
- },
276
- "required": [
277
- "name",
278
- "source",
279
- "className",
280
- "classSource",
281
- "level"
282
- ],
283
- "additionalProperties": false
292
+ }
284
293
  },
285
294
  "minItems": 1,
286
295
  "uniqueItems": true
@@ -289,6 +298,16 @@
289
298
  "type": "array",
290
299
  "items": {
291
300
  "type": "object",
301
+ "required": [
302
+ "name",
303
+ "source",
304
+ "className",
305
+ "classSource",
306
+ "level",
307
+ "subclassShortName",
308
+ "subclassSource"
309
+ ],
310
+ "additionalProperties": false,
292
311
  "properties": {
293
312
  "name": {
294
313
  "type": "string"
@@ -296,6 +315,21 @@
296
315
  "source": {
297
316
  "$ref": "../util.json#/$defs/source"
298
317
  },
318
+ "system": {
319
+ "$ref": "../util.json#/$defs/foundrySystemObject"
320
+ },
321
+ "effects": {
322
+ "type": "array",
323
+ "items": {
324
+ "$ref": "../util.json#/$defs/foundryEffectObject"
325
+ }
326
+ },
327
+ "flags": {
328
+ "$ref": "../util.json#/$defs/foundryFlagsObject"
329
+ },
330
+ "img": {
331
+ "type": "string"
332
+ },
299
333
  "className": {
300
334
  "type": "string"
301
335
  },
@@ -320,12 +354,6 @@
320
354
  "entryData": {
321
355
  "$ref": "#/$defs/entryDataObject"
322
356
  },
323
- "system": {
324
- "$ref": "../util.json#/$defs/foundrySystemObject"
325
- },
326
- "flags": {
327
- "$ref": "../util.json#/$defs/foundryFlagsObject"
328
- },
329
357
  "chooseSystem": {
330
358
  "type": "array",
331
359
  "items": {
@@ -350,26 +378,10 @@
350
378
  "actorTokenMod": {
351
379
  "type": "object"
352
380
  },
353
- "effects": {
354
- "$ref": "../util.json#/$defs/foundryEffectsArray"
355
- },
356
- "img": {
357
- "type": "string"
358
- },
359
381
  "subEntities": {
360
382
  "$ref": "../util.json#/$defs/foundrySubEntitiesObject"
361
383
  }
362
- },
363
- "required": [
364
- "name",
365
- "source",
366
- "className",
367
- "classSource",
368
- "level",
369
- "subclassShortName",
370
- "subclassSource"
371
- ],
372
- "additionalProperties": false
384
+ }
373
385
  },
374
386
  "minItems": 1,
375
387
  "uniqueItems": true
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "foundry-backgrounds.json",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "backgroundFeature": {
@@ -10,6 +10,13 @@
10
10
  "uniqueItems": true,
11
11
  "items": {
12
12
  "type": "object",
13
+ "required": [
14
+ "name",
15
+ "source",
16
+ "backgroundName",
17
+ "backgroundSource"
18
+ ],
19
+ "additionalProperties": false,
13
20
  "properties": {
14
21
  "name": {
15
22
  "type": "string"
@@ -17,29 +24,28 @@
17
24
  "source": {
18
25
  "$ref": "util.json#/$defs/source"
19
26
  },
20
- "backgroundName": {
21
- "type": "string"
22
- },
23
- "backgroundSource": {
24
- "$ref": "util.json#/$defs/source"
25
- },
26
27
  "system": {
27
28
  "$ref": "util.json#/$defs/foundrySystemObject"
28
29
  },
30
+ "effects": {
31
+ "type": "array",
32
+ "items": {
33
+ "$ref": "util.json#/$defs/foundryEffectObject"
34
+ }
35
+ },
29
36
  "flags": {
30
37
  "$ref": "util.json#/$defs/foundryFlagsObject"
31
38
  },
32
- "effects": {
33
- "$ref": "util.json#/$defs/foundryEffectsArray"
39
+ "img": {
40
+ "type": "string"
41
+ },
42
+ "backgroundName": {
43
+ "type": "string"
44
+ },
45
+ "backgroundSource": {
46
+ "$ref": "util.json#/$defs/source"
34
47
  }
35
- },
36
- "required": [
37
- "name",
38
- "source",
39
- "backgroundName",
40
- "backgroundSource"
41
- ],
42
- "additionalProperties": false
48
+ }
43
49
  }
44
50
  }
45
51
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "foundry-items.json",
4
- "version": "1.2.0",
4
+ "version": "1.2.1",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "magicvariant": {
@@ -13,6 +13,7 @@
13
13
  "uniqueItems": true,
14
14
  "items": {
15
15
  "type": "object",
16
+ "additionalProperties": false,
16
17
  "properties": {
17
18
  "name": {
18
19
  "type": "string"
@@ -23,11 +24,17 @@
23
24
  "system": {
24
25
  "$ref": "util.json#/$defs/foundrySystemObject"
25
26
  },
27
+ "effects": {
28
+ "type": "array",
29
+ "items": {
30
+ "$ref": "util.json#/$defs/foundryEffectObject"
31
+ }
32
+ },
26
33
  "flags": {
27
34
  "$ref": "util.json#/$defs/foundryFlagsObject"
28
35
  },
29
- "effects": {
30
- "$ref": "util.json#/$defs/foundryEffectsArray"
36
+ "img": {
37
+ "type": "string"
31
38
  },
32
39
  "type": {
33
40
  "type": "string",
@@ -44,8 +51,7 @@
44
51
  "required": [
45
52
  "name",
46
53
  "source"
47
- ],
48
- "additionalProperties": false
54
+ ]
49
55
  }
50
56
  }
51
57
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "foundry-psionics.json",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "psionicDisciplineFocus": {
@@ -13,6 +13,13 @@
13
13
  "uniqueItems": true,
14
14
  "items": {
15
15
  "type": "object",
16
+ "required": [
17
+ "name",
18
+ "source",
19
+ "psionicName",
20
+ "psionicSource"
21
+ ],
22
+ "additionalProperties": false,
16
23
  "properties": {
17
24
  "name": {
18
25
  "type": "string"
@@ -20,29 +27,28 @@
20
27
  "source": {
21
28
  "$ref": "util.json#/$defs/source"
22
29
  },
23
- "psionicName": {
24
- "type": "string"
25
- },
26
- "psionicSource": {
27
- "$ref": "util.json#/$defs/source"
28
- },
29
30
  "system": {
30
31
  "$ref": "util.json#/$defs/foundrySystemObject"
31
32
  },
33
+ "effects": {
34
+ "type": "array",
35
+ "items": {
36
+ "$ref": "util.json#/$defs/foundryEffectObject"
37
+ }
38
+ },
32
39
  "flags": {
33
40
  "$ref": "util.json#/$defs/foundryFlagsObject"
34
41
  },
35
- "effects": {
36
- "$ref": "util.json#/$defs/foundryEffectsArray"
42
+ "img": {
43
+ "type": "string"
44
+ },
45
+ "psionicName": {
46
+ "type": "string"
47
+ },
48
+ "psionicSource": {
49
+ "$ref": "util.json#/$defs/source"
37
50
  }
38
- },
39
- "required": [
40
- "name",
41
- "source",
42
- "psionicName",
43
- "psionicSource"
44
- ],
45
- "additionalProperties": false
51
+ }
46
52
  }
47
53
  }
48
54
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "foundry-races.json",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "raceFeature": {
@@ -10,6 +10,13 @@
10
10
  "uniqueItems": true,
11
11
  "items": {
12
12
  "type": "object",
13
+ "required": [
14
+ "name",
15
+ "source",
16
+ "raceName",
17
+ "raceSource"
18
+ ],
19
+ "additionalProperties": false,
13
20
  "properties": {
14
21
  "name": {
15
22
  "type": "string"
@@ -17,6 +24,21 @@
17
24
  "source": {
18
25
  "$ref": "util.json#/$defs/source"
19
26
  },
27
+ "system": {
28
+ "$ref": "util.json#/$defs/foundrySystemObject"
29
+ },
30
+ "effects": {
31
+ "type": "array",
32
+ "items": {
33
+ "$ref": "util.json#/$defs/foundryEffectObject"
34
+ }
35
+ },
36
+ "flags": {
37
+ "$ref": "util.json#/$defs/foundryFlagsObject"
38
+ },
39
+ "img": {
40
+ "type": "string"
41
+ },
20
42
  "raceName": {
21
43
  "description": "The full name of the race, with subrace parts/etc. applied.",
22
44
  "type": "string"
@@ -24,24 +46,8 @@
24
46
  "raceSource": {
25
47
  "description": "The source of the subrace or race.",
26
48
  "$ref": "util.json#/$defs/source"
27
- },
28
- "system": {
29
- "$ref": "util.json#/$defs/foundrySystemObject"
30
- },
31
- "flags": {
32
- "$ref": "util.json#/$defs/foundryFlagsObject"
33
- },
34
- "effects": {
35
- "$ref": "util.json#/$defs/foundryEffectsArray"
36
49
  }
37
- },
38
- "required": [
39
- "name",
40
- "source",
41
- "raceName",
42
- "raceSource"
43
- ],
44
- "additionalProperties": false
50
+ }
45
51
  }
46
52
  }
47
53
  },
@@ -4283,34 +4283,43 @@
4283
4283
  "minItems": 1,
4284
4284
  "uniqueItems": true
4285
4285
  },
4286
+ "foundrySideDataGenericObject": {
4287
+ "type": "object",
4288
+ "properties": {
4289
+ "name": {
4290
+ "type": "string"
4291
+ },
4292
+ "source": {
4293
+ "$ref": "util.json#/$defs/source"
4294
+ },
4295
+ "system": {
4296
+ "$ref": "#/$defs/foundrySystemObject"
4297
+ },
4298
+ "effects": {
4299
+ "type": "array",
4300
+ "items": {
4301
+ "$ref": "#/$defs/foundryEffectObject"
4302
+ }
4303
+ },
4304
+ "flags": {
4305
+ "$ref": "util.json#/$defs/foundryFlagsObject"
4306
+ },
4307
+ "img": {
4308
+ "type": "string"
4309
+ }
4310
+ },
4311
+ "required": [
4312
+ "name",
4313
+ "source"
4314
+ ],
4315
+ "additionalProperties": false
4316
+ },
4286
4317
  "foundrySideDataGenericArray": {
4287
4318
  "type": "array",
4288
4319
  "minItems": 1,
4289
4320
  "uniqueItems": true,
4290
4321
  "items": {
4291
- "type": "object",
4292
- "properties": {
4293
- "name": {
4294
- "type": "string"
4295
- },
4296
- "source": {
4297
- "$ref": "util.json#/$defs/source"
4298
- },
4299
- "system": {
4300
- "$ref": "#/$defs/foundrySystemObject"
4301
- },
4302
- "effects": {
4303
- "type": "array",
4304
- "items": {
4305
- "$ref": "#/$defs/foundryEffectObject"
4306
- }
4307
- }
4308
- },
4309
- "required": [
4310
- "name",
4311
- "source"
4312
- ],
4313
- "additionalProperties": false
4322
+ "$ref": "#/$defs/foundrySideDataGenericObject"
4314
4323
  }
4315
4324
  },
4316
4325
  "foundrySideDataGenericFeatureArray": {