5etools-utils 0.14.13 → 0.14.15

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.14.13",
3
+ "version": "0.14.15",
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": "adventures.json",
4
- "version": "1.10.30",
4
+ "version": "1.10.32",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "adventure": {
@@ -46,79 +46,7 @@
46
46
  "type": "string"
47
47
  },
48
48
  "contents": {
49
- "description": "The linked Table of Contents of the adventure.",
50
- "type": "array",
51
- "minItems": 1,
52
- "items": {
53
- "type": "object",
54
- "properties": {
55
- "name": {
56
- "type": "string"
57
- },
58
- "headers": {
59
- "type": "array",
60
- "minItems": 1,
61
- "items": {
62
- "oneOf": [
63
- {
64
- "type": "string"
65
- },
66
- {
67
- "type": "object",
68
- "properties": {
69
- "depth": {
70
- "type": "integer"
71
- },
72
- "header": {
73
- "type": "string"
74
- },
75
- "index": {
76
- "description": "The relative index of this header in the current chapter, i.e. if \"Treasure\" appears twice and you wish the contents entry to link to the second instance, set the \"index\" to 1.",
77
- "type": "integer",
78
- "markdownDescription": "The relative index of this header in the current chapter, i.e. if "Treasure" appears twice and you wish the contents entry to link to the second instance, set the "index" to 1."
79
- }
80
- },
81
- "required": [
82
- "header"
83
- ]
84
- }
85
- ]
86
- }
87
- },
88
- "ordinal": {
89
- "type": "object",
90
- "properties": {
91
- "type": {
92
- "type": "string",
93
- "enum": [
94
- "chapter",
95
- "appendix",
96
- "part",
97
- "episode",
98
- "level",
99
- "section"
100
- ]
101
- },
102
- "identifier": {
103
- "type": [
104
- "integer",
105
- "string"
106
- ]
107
- }
108
- },
109
- "additionalProperties": false,
110
- "required": [
111
- "type",
112
- "identifier"
113
- ]
114
- }
115
- },
116
- "additionalProperties": false,
117
- "required": [
118
- "name"
119
- ]
120
- },
121
- "markdownDescription": "The linked Table of Contents of the adventure."
49
+ "$ref": "corpus-shared.json#/$defs/corpusContents"
122
50
  },
123
51
  "level": {
124
52
  "description": "The character levels that the adventure ranges across.",
@@ -155,10 +83,7 @@
155
83
  "markdownDescription": "The character levels that the adventure ranges across."
156
84
  },
157
85
  "published": {
158
- "type": "string",
159
- "format": "date",
160
- "description": "The date of publication of the adventure, in the format YYYY-MM-DD (RFC3339).",
161
- "markdownDescription": "The date of publication of the adventure, in the format YYYY-MM-DD (RFC3339)."
86
+ "$ref": "corpus-shared.json#/$defs/corpusPublished"
162
87
  },
163
88
  "publishedOrder": {
164
89
  "description": "A sorting order for adventures within a single source.",
@@ -166,9 +91,7 @@
166
91
  "markdownDescription": "A sorting order for adventures within a single source."
167
92
  },
168
93
  "cover": {
169
- "description": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
170
- "$ref": "entry.json#/$defs/mediaHref",
171
- "markdownDescription": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped."
94
+ "$ref": "corpus-shared.json#/$defs/corpusCover"
172
95
  },
173
96
  "storyline": {
174
97
  "type": "string",
@@ -217,6 +140,7 @@
217
140
  "Shadow Realm",
218
141
  "Animated Series",
219
142
  "Dragon Delves",
143
+ "Forgotten Realms",
220
144
  "Miscellaneous"
221
145
  ]
222
146
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "books.json",
4
- "version": "1.2.16",
4
+ "version": "1.2.17",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "book": {
@@ -48,89 +48,13 @@
48
48
  "type": "string"
49
49
  },
50
50
  "published": {
51
- "type": "string",
52
- "format": "date",
53
- "description": "The date of publication of the book, in the format YYYY-MM-DD (RFC3339).",
54
- "markdownDescription": "The date of publication of the book, in the format YYYY-MM-DD (RFC3339)."
51
+ "$ref": "corpus-shared.json#/$defs/corpusPublished"
55
52
  },
56
53
  "cover": {
57
- "description": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
58
- "$ref": "entry.json#/$defs/mediaHref",
59
- "markdownDescription": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped."
54
+ "$ref": "corpus-shared.json#/$defs/corpusCover"
60
55
  },
61
56
  "contents": {
62
- "description": "The linked Table of Contents of the rulebook.",
63
- "type": "array",
64
- "minItems": 1,
65
- "items": {
66
- "type": "object",
67
- "properties": {
68
- "name": {
69
- "type": "string"
70
- },
71
- "headers": {
72
- "type": "array",
73
- "minItems": 1,
74
- "items": {
75
- "oneOf": [
76
- {
77
- "type": "string"
78
- },
79
- {
80
- "type": "object",
81
- "properties": {
82
- "depth": {
83
- "type": "integer"
84
- },
85
- "header": {
86
- "type": "string"
87
- },
88
- "index": {
89
- "description": "The relative index of this header in the current chapter, i.e. if \"Treasure\" appears twice and you wish the contents entry to link to the second instance, set the \"index\" to 1.",
90
- "type": "integer",
91
- "markdownDescription": "The relative index of this header in the current chapter, i.e. if "Treasure" appears twice and you wish the contents entry to link to the second instance, set the "index" to 1."
92
- }
93
- },
94
- "required": [
95
- "header"
96
- ]
97
- }
98
- ]
99
- }
100
- },
101
- "ordinal": {
102
- "type": "object",
103
- "properties": {
104
- "type": {
105
- "type": "string",
106
- "enum": [
107
- "chapter",
108
- "appendix",
109
- "part",
110
- "episode",
111
- "level",
112
- "section"
113
- ]
114
- },
115
- "identifier": {
116
- "type": [
117
- "integer",
118
- "string"
119
- ]
120
- }
121
- },
122
- "additionalProperties": false,
123
- "required": [
124
- "type"
125
- ]
126
- }
127
- },
128
- "additionalProperties": false,
129
- "required": [
130
- "name"
131
- ]
132
- },
133
- "markdownDescription": "The linked Table of Contents of the rulebook."
57
+ "$ref": "corpus-shared.json#/$defs/corpusContents"
134
58
  }
135
59
  },
136
60
  "additionalProperties": false,
@@ -0,0 +1,92 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "corpus-shared.json",
4
+ "version": "1.0.0",
5
+ "$defs": {
6
+ "corpusCover": {
7
+ "description": "A link to an image. Preferred sizes are 300 x 300px or 600 x 600px.",
8
+ "$ref": "entry.json#/$defs/mediaHref",
9
+ "markdownDescription": "A link to an image. Preferred sizes are 300 x 300px or 600 x 600px."
10
+ },
11
+ "corpusContents": {
12
+ "description": "The linked Table of Contents of the corpus.",
13
+ "type": "array",
14
+ "minItems": 1,
15
+ "items": {
16
+ "type": "object",
17
+ "properties": {
18
+ "name": {
19
+ "type": "string"
20
+ },
21
+ "headers": {
22
+ "type": "array",
23
+ "minItems": 1,
24
+ "items": {
25
+ "oneOf": [
26
+ {
27
+ "type": "string"
28
+ },
29
+ {
30
+ "type": "object",
31
+ "properties": {
32
+ "depth": {
33
+ "type": "integer"
34
+ },
35
+ "header": {
36
+ "type": "string"
37
+ },
38
+ "index": {
39
+ "description": "The relative index of this header in the current chapter, i.e. if \"Treasure\" appears twice and you wish the contents entry to link to the second instance, set the \"index\" to 1.",
40
+ "type": "integer",
41
+ "markdownDescription": "The relative index of this header in the current chapter, i.e. if "Treasure" appears twice and you wish the contents entry to link to the second instance, set the "index" to 1."
42
+ }
43
+ },
44
+ "required": [
45
+ "header"
46
+ ]
47
+ }
48
+ ]
49
+ }
50
+ },
51
+ "ordinal": {
52
+ "type": "object",
53
+ "properties": {
54
+ "type": {
55
+ "type": "string",
56
+ "enum": [
57
+ "chapter",
58
+ "appendix",
59
+ "part",
60
+ "episode",
61
+ "level",
62
+ "section"
63
+ ]
64
+ },
65
+ "identifier": {
66
+ "type": [
67
+ "integer",
68
+ "string"
69
+ ]
70
+ }
71
+ },
72
+ "additionalProperties": false,
73
+ "required": [
74
+ "type"
75
+ ]
76
+ }
77
+ },
78
+ "additionalProperties": false,
79
+ "required": [
80
+ "name"
81
+ ]
82
+ },
83
+ "markdownDescription": "The linked Table of Contents of the corpus."
84
+ },
85
+ "corpusPublished": {
86
+ "type": "string",
87
+ "format": "date",
88
+ "description": "The date of publication of the book, in the format YYYY-MM-DD (RFC3339).",
89
+ "markdownDescription": "The date of publication of the book, in the format YYYY-MM-DD (RFC3339)."
90
+ }
91
+ }
92
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "gendata-spell-source-lookup.json",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "type": "object",
6
6
  "description": "Keys are lowercase'd source identifiers.",
7
7
  "$defs": {
@@ -56,7 +56,7 @@
56
56
  "type": "object",
57
57
  "description": "Keys are lowercase'd spell names.",
58
58
  "patternProperties": {
59
- "^[-a-z0-9 '()/;]+$": {
59
+ "^[-a-zÀ-ž0-9 '()/;]+$": {
60
60
  "type": "object",
61
61
  "properties": {
62
62
  "class": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "adventures.json",
4
- "version": "1.10.30",
4
+ "version": "1.10.32",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "adventure": {
@@ -46,79 +46,7 @@
46
46
  "type": "string"
47
47
  },
48
48
  "contents": {
49
- "description": "The linked Table of Contents of the adventure.",
50
- "type": "array",
51
- "minItems": 1,
52
- "items": {
53
- "type": "object",
54
- "properties": {
55
- "name": {
56
- "type": "string"
57
- },
58
- "headers": {
59
- "type": "array",
60
- "minItems": 1,
61
- "items": {
62
- "oneOf": [
63
- {
64
- "type": "string"
65
- },
66
- {
67
- "type": "object",
68
- "properties": {
69
- "depth": {
70
- "type": "integer"
71
- },
72
- "header": {
73
- "type": "string"
74
- },
75
- "index": {
76
- "description": "The relative index of this header in the current chapter, i.e. if \"Treasure\" appears twice and you wish the contents entry to link to the second instance, set the \"index\" to 1.",
77
- "type": "integer",
78
- "markdownDescription": "The relative index of this header in the current chapter, i.e. if "Treasure" appears twice and you wish the contents entry to link to the second instance, set the "index" to 1."
79
- }
80
- },
81
- "required": [
82
- "header"
83
- ]
84
- }
85
- ]
86
- }
87
- },
88
- "ordinal": {
89
- "type": "object",
90
- "properties": {
91
- "type": {
92
- "type": "string",
93
- "enum": [
94
- "chapter",
95
- "appendix",
96
- "part",
97
- "episode",
98
- "level",
99
- "section"
100
- ]
101
- },
102
- "identifier": {
103
- "type": [
104
- "integer",
105
- "string"
106
- ]
107
- }
108
- },
109
- "additionalProperties": false,
110
- "required": [
111
- "type",
112
- "identifier"
113
- ]
114
- }
115
- },
116
- "additionalProperties": false,
117
- "required": [
118
- "name"
119
- ]
120
- },
121
- "markdownDescription": "The linked Table of Contents of the adventure."
49
+ "$ref": "corpus-shared.json#/$defs/corpusContents"
122
50
  },
123
51
  "level": {
124
52
  "description": "The character levels that the adventure ranges across.",
@@ -155,10 +83,7 @@
155
83
  "markdownDescription": "The character levels that the adventure ranges across."
156
84
  },
157
85
  "published": {
158
- "type": "string",
159
- "format": "date",
160
- "description": "The date of publication of the adventure, in the format YYYY-MM-DD (RFC3339).",
161
- "markdownDescription": "The date of publication of the adventure, in the format YYYY-MM-DD (RFC3339)."
86
+ "$ref": "corpus-shared.json#/$defs/corpusPublished"
162
87
  },
163
88
  "publishedOrder": {
164
89
  "description": "A sorting order for adventures within a single source.",
@@ -166,9 +91,7 @@
166
91
  "markdownDescription": "A sorting order for adventures within a single source."
167
92
  },
168
93
  "cover": {
169
- "description": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
170
- "$ref": "entry.json#/$defs/mediaHref",
171
- "markdownDescription": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped."
94
+ "$ref": "corpus-shared.json#/$defs/corpusCover"
172
95
  },
173
96
  "storyline": {
174
97
  "type": "string",
@@ -217,6 +140,7 @@
217
140
  "Shadow Realm",
218
141
  "Animated Series",
219
142
  "Dragon Delves",
143
+ "Forgotten Realms",
220
144
  "Miscellaneous"
221
145
  ]
222
146
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "books.json",
4
- "version": "1.2.16",
4
+ "version": "1.2.17",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "book": {
@@ -48,89 +48,13 @@
48
48
  "type": "string"
49
49
  },
50
50
  "published": {
51
- "type": "string",
52
- "format": "date",
53
- "description": "The date of publication of the book, in the format YYYY-MM-DD (RFC3339).",
54
- "markdownDescription": "The date of publication of the book, in the format YYYY-MM-DD (RFC3339)."
51
+ "$ref": "corpus-shared.json#/$defs/corpusPublished"
55
52
  },
56
53
  "cover": {
57
- "description": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
58
- "$ref": "entry.json#/$defs/mediaHref",
59
- "markdownDescription": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped."
54
+ "$ref": "corpus-shared.json#/$defs/corpusCover"
60
55
  },
61
56
  "contents": {
62
- "description": "The linked Table of Contents of the rulebook.",
63
- "type": "array",
64
- "minItems": 1,
65
- "items": {
66
- "type": "object",
67
- "properties": {
68
- "name": {
69
- "type": "string"
70
- },
71
- "headers": {
72
- "type": "array",
73
- "minItems": 1,
74
- "items": {
75
- "oneOf": [
76
- {
77
- "type": "string"
78
- },
79
- {
80
- "type": "object",
81
- "properties": {
82
- "depth": {
83
- "type": "integer"
84
- },
85
- "header": {
86
- "type": "string"
87
- },
88
- "index": {
89
- "description": "The relative index of this header in the current chapter, i.e. if \"Treasure\" appears twice and you wish the contents entry to link to the second instance, set the \"index\" to 1.",
90
- "type": "integer",
91
- "markdownDescription": "The relative index of this header in the current chapter, i.e. if "Treasure" appears twice and you wish the contents entry to link to the second instance, set the "index" to 1."
92
- }
93
- },
94
- "required": [
95
- "header"
96
- ]
97
- }
98
- ]
99
- }
100
- },
101
- "ordinal": {
102
- "type": "object",
103
- "properties": {
104
- "type": {
105
- "type": "string",
106
- "enum": [
107
- "chapter",
108
- "appendix",
109
- "part",
110
- "episode",
111
- "level",
112
- "section"
113
- ]
114
- },
115
- "identifier": {
116
- "type": [
117
- "integer",
118
- "string"
119
- ]
120
- }
121
- },
122
- "additionalProperties": false,
123
- "required": [
124
- "type"
125
- ]
126
- }
127
- },
128
- "additionalProperties": false,
129
- "required": [
130
- "name"
131
- ]
132
- },
133
- "markdownDescription": "The linked Table of Contents of the rulebook."
57
+ "$ref": "corpus-shared.json#/$defs/corpusContents"
134
58
  }
135
59
  },
136
60
  "additionalProperties": false,
@@ -0,0 +1,92 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "corpus-shared.json",
4
+ "version": "1.0.0",
5
+ "$defs": {
6
+ "corpusCover": {
7
+ "description": "A link to an image. Preferred sizes are 300 x 300px or 600 x 600px.",
8
+ "$ref": "entry.json#/$defs/mediaHref",
9
+ "markdownDescription": "A link to an image. Preferred sizes are 300 x 300px or 600 x 600px."
10
+ },
11
+ "corpusContents": {
12
+ "description": "The linked Table of Contents of the corpus.",
13
+ "type": "array",
14
+ "minItems": 1,
15
+ "items": {
16
+ "type": "object",
17
+ "properties": {
18
+ "name": {
19
+ "type": "string"
20
+ },
21
+ "headers": {
22
+ "type": "array",
23
+ "minItems": 1,
24
+ "items": {
25
+ "oneOf": [
26
+ {
27
+ "type": "string"
28
+ },
29
+ {
30
+ "type": "object",
31
+ "properties": {
32
+ "depth": {
33
+ "type": "integer"
34
+ },
35
+ "header": {
36
+ "type": "string"
37
+ },
38
+ "index": {
39
+ "description": "The relative index of this header in the current chapter, i.e. if \"Treasure\" appears twice and you wish the contents entry to link to the second instance, set the \"index\" to 1.",
40
+ "type": "integer",
41
+ "markdownDescription": "The relative index of this header in the current chapter, i.e. if "Treasure" appears twice and you wish the contents entry to link to the second instance, set the "index" to 1."
42
+ }
43
+ },
44
+ "required": [
45
+ "header"
46
+ ]
47
+ }
48
+ ]
49
+ }
50
+ },
51
+ "ordinal": {
52
+ "type": "object",
53
+ "properties": {
54
+ "type": {
55
+ "type": "string",
56
+ "enum": [
57
+ "chapter",
58
+ "appendix",
59
+ "part",
60
+ "episode",
61
+ "level",
62
+ "section"
63
+ ]
64
+ },
65
+ "identifier": {
66
+ "type": [
67
+ "integer",
68
+ "string"
69
+ ]
70
+ }
71
+ },
72
+ "additionalProperties": false,
73
+ "required": [
74
+ "type"
75
+ ]
76
+ }
77
+ },
78
+ "additionalProperties": false,
79
+ "required": [
80
+ "name"
81
+ ]
82
+ },
83
+ "markdownDescription": "The linked Table of Contents of the corpus."
84
+ },
85
+ "corpusPublished": {
86
+ "type": "string",
87
+ "format": "date",
88
+ "description": "The date of publication of the book, in the format YYYY-MM-DD (RFC3339).",
89
+ "markdownDescription": "The date of publication of the book, in the format YYYY-MM-DD (RFC3339)."
90
+ }
91
+ }
92
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "gendata-spell-source-lookup.json",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "type": "object",
6
6
  "description": "Keys are lowercase'd source identifiers.",
7
7
  "$defs": {
@@ -56,7 +56,7 @@
56
56
  "type": "object",
57
57
  "description": "Keys are lowercase'd spell names.",
58
58
  "patternProperties": {
59
- "^[-a-z0-9 '()/;]+$": {
59
+ "^[-a-zÀ-ž0-9 '()/;]+$": {
60
60
  "type": "object",
61
61
  "properties": {
62
62
  "class": {