optolith-database-schema 0.1.13 → 0.1.16
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/CHANGELOG.md +26 -0
- package/lib/types/Cantrip.d.ts +3 -23
- package/lib/types/Culture.d.ts +1 -1
- package/lib/types/magicalActions/ElvenMagicalSong.d.ts +28 -0
- package/package.json +1 -1
- package/schema/Cantrip.schema.json +2 -63
- package/schema/Culture.schema.json +0 -1
- package/schema/magicalActions/ElvenMagicalSong.schema.json +37 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.16](https://github.com/elyukai/optolith-database-schema/compare/v0.1.15...v0.1.16) (2022-03-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* support countable entities for ae cost of elven magical songs ([2feb0de](https://github.com/elyukai/optolith-database-schema/commit/2feb0deed85b7e823597560fd83523556a283642))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* sex restriction of a name group from a culture should be optional ([e09f0b4](https://github.com/elyukai/optolith-database-schema/commit/e09f0b43d8b193303d67247a060fcaad8495a99f))
|
|
16
|
+
|
|
17
|
+
### [0.1.15](https://github.com/elyukai/optolith-database-schema/compare/v0.1.14...v0.1.15) (2022-03-16)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* remove fields not present in cantrip ([132f37b](https://github.com/elyukai/optolith-database-schema/commit/132f37b211732c039f784e1279ff997f998d0be7))
|
|
23
|
+
|
|
24
|
+
### [0.1.14](https://github.com/elyukai/optolith-database-schema/compare/v0.1.13...v0.1.14) (2022-03-16)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* multiple cantrip field definitions ([db26bb4](https://github.com/elyukai/optolith-database-schema/commit/db26bb4d540cc4eb497020302dde9cfdbe5c3950))
|
|
30
|
+
|
|
5
31
|
### [0.1.13](https://github.com/elyukai/optolith-database-schema/compare/v0.1.12...v0.1.13) (2022-03-16)
|
|
6
32
|
|
|
7
33
|
|
package/lib/types/Cantrip.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare type Cantrip = {
|
|
|
35
35
|
* traditions, but usually one the academies and traditions are listed the
|
|
36
36
|
* cantrip is most commonly teached in.
|
|
37
37
|
*/
|
|
38
|
-
note
|
|
38
|
+
note?: {
|
|
39
39
|
tag: "Exclusive";
|
|
40
40
|
/**
|
|
41
41
|
* The traditions the cantrip is exclusively available to.
|
|
@@ -83,31 +83,11 @@ export declare type Cantrip = {
|
|
|
83
83
|
/**
|
|
84
84
|
* @deprecated
|
|
85
85
|
*/
|
|
86
|
-
|
|
87
|
-
full: string;
|
|
88
|
-
abbr: string;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* @deprecated
|
|
92
|
-
*/
|
|
93
|
-
cost: {
|
|
94
|
-
full: string;
|
|
95
|
-
abbr: string;
|
|
96
|
-
};
|
|
86
|
+
range: string;
|
|
97
87
|
/**
|
|
98
88
|
* @deprecated
|
|
99
89
|
*/
|
|
100
|
-
|
|
101
|
-
full: string;
|
|
102
|
-
abbr: string;
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* @deprecated
|
|
106
|
-
*/
|
|
107
|
-
duration: {
|
|
108
|
-
full: string;
|
|
109
|
-
abbr: string;
|
|
110
|
-
};
|
|
90
|
+
duration: string;
|
|
111
91
|
/**
|
|
112
92
|
* @deprecated
|
|
113
93
|
*/
|
package/lib/types/Culture.d.ts
CHANGED
|
@@ -144,6 +144,34 @@ declare type PerformanceParameters = {
|
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
146
|
};
|
|
147
|
+
/**
|
|
148
|
+
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
149
|
+
* @minProperties 1
|
|
150
|
+
*/
|
|
151
|
+
translations?: {
|
|
152
|
+
/**
|
|
153
|
+
* @patternProperties ^[a-z]{2}-[A-Z]{2}$
|
|
154
|
+
* @minProperties 1
|
|
155
|
+
*/
|
|
156
|
+
[localeId: string]: {
|
|
157
|
+
/**
|
|
158
|
+
* The cost have to be per a specific countable entity, e.g. `8 AE
|
|
159
|
+
* per person`.
|
|
160
|
+
*/
|
|
161
|
+
per?: {
|
|
162
|
+
/**
|
|
163
|
+
* The full countable entity name.
|
|
164
|
+
* @minLength 1
|
|
165
|
+
*/
|
|
166
|
+
default: string;
|
|
167
|
+
/**
|
|
168
|
+
* The compressed countable entity name.
|
|
169
|
+
* @minLength 1
|
|
170
|
+
*/
|
|
171
|
+
compressed: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
147
175
|
};
|
|
148
176
|
};
|
|
149
177
|
export declare const validateSchema: import("../../validation/schema.js").TypeValidator<ElvenMagicalSong>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "optolith-database-schema",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "Definitions and utilities for the flat-file database of Optolith, a character creation tool for the Pen and Paper RPG “The Dark Eye 5”, and its external integrations into other software.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tde",
|
|
@@ -105,69 +105,11 @@
|
|
|
105
105
|
"type": "string",
|
|
106
106
|
"minLength": 1
|
|
107
107
|
},
|
|
108
|
-
"casting_time": {
|
|
109
|
-
"type": "object",
|
|
110
|
-
"properties": {
|
|
111
|
-
"full": {
|
|
112
|
-
"type": "string"
|
|
113
|
-
},
|
|
114
|
-
"abbr": {
|
|
115
|
-
"type": "string"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"required": [
|
|
119
|
-
"full",
|
|
120
|
-
"abbr"
|
|
121
|
-
],
|
|
122
|
-
"additionalProperties": false
|
|
123
|
-
},
|
|
124
|
-
"cost": {
|
|
125
|
-
"type": "object",
|
|
126
|
-
"properties": {
|
|
127
|
-
"full": {
|
|
128
|
-
"type": "string"
|
|
129
|
-
},
|
|
130
|
-
"abbr": {
|
|
131
|
-
"type": "string"
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
"required": [
|
|
135
|
-
"full",
|
|
136
|
-
"abbr"
|
|
137
|
-
],
|
|
138
|
-
"additionalProperties": false
|
|
139
|
-
},
|
|
140
108
|
"range": {
|
|
141
|
-
"type": "
|
|
142
|
-
"properties": {
|
|
143
|
-
"full": {
|
|
144
|
-
"type": "string"
|
|
145
|
-
},
|
|
146
|
-
"abbr": {
|
|
147
|
-
"type": "string"
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
"required": [
|
|
151
|
-
"full",
|
|
152
|
-
"abbr"
|
|
153
|
-
],
|
|
154
|
-
"additionalProperties": false
|
|
109
|
+
"type": "string"
|
|
155
110
|
},
|
|
156
111
|
"duration": {
|
|
157
|
-
"type": "
|
|
158
|
-
"properties": {
|
|
159
|
-
"full": {
|
|
160
|
-
"type": "string"
|
|
161
|
-
},
|
|
162
|
-
"abbr": {
|
|
163
|
-
"type": "string"
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
"required": [
|
|
167
|
-
"full",
|
|
168
|
-
"abbr"
|
|
169
|
-
],
|
|
170
|
-
"additionalProperties": false
|
|
112
|
+
"type": "string"
|
|
171
113
|
},
|
|
172
114
|
"target": {
|
|
173
115
|
"type": "string"
|
|
@@ -179,8 +121,6 @@
|
|
|
179
121
|
"required": [
|
|
180
122
|
"name",
|
|
181
123
|
"effect",
|
|
182
|
-
"casting_time",
|
|
183
|
-
"cost",
|
|
184
124
|
"range",
|
|
185
125
|
"duration",
|
|
186
126
|
"target"
|
|
@@ -200,7 +140,6 @@
|
|
|
200
140
|
"parameters",
|
|
201
141
|
"target",
|
|
202
142
|
"property_id",
|
|
203
|
-
"note",
|
|
204
143
|
"src",
|
|
205
144
|
"translations"
|
|
206
145
|
],
|
|
@@ -177,6 +177,43 @@
|
|
|
177
177
|
"value"
|
|
178
178
|
],
|
|
179
179
|
"additionalProperties": false
|
|
180
|
+
},
|
|
181
|
+
"translations": {
|
|
182
|
+
"description": "All translations for the entry, identified by IETF language tag (BCP47).",
|
|
183
|
+
"type": "object",
|
|
184
|
+
"patternProperties": {
|
|
185
|
+
"^[a-z]{2}-[A-Z]{2}$": {
|
|
186
|
+
"type": "object",
|
|
187
|
+
"properties": {
|
|
188
|
+
"per": {
|
|
189
|
+
"description": "The cost have to be per a specific countable entity, e.g. `8 AE\nper person`.",
|
|
190
|
+
"type": "object",
|
|
191
|
+
"properties": {
|
|
192
|
+
"default": {
|
|
193
|
+
"description": "The full countable entity name.",
|
|
194
|
+
"type": "string",
|
|
195
|
+
"minLength": 1
|
|
196
|
+
},
|
|
197
|
+
"compressed": {
|
|
198
|
+
"description": "The compressed countable entity name.",
|
|
199
|
+
"type": "string",
|
|
200
|
+
"minLength": 1
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"required": [
|
|
204
|
+
"default",
|
|
205
|
+
"compressed"
|
|
206
|
+
],
|
|
207
|
+
"additionalProperties": false
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"required": [],
|
|
211
|
+
"minProperties": 1,
|
|
212
|
+
"additionalProperties": false
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"minProperties": 1,
|
|
216
|
+
"additionalProperties": false
|
|
180
217
|
}
|
|
181
218
|
},
|
|
182
219
|
"required": [
|