optolith-database-schema 0.2.3 → 0.2.4
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 +17 -0
- package/lib/types/Blessing.d.ts +2 -13
- package/lib/types/Cantrip.d.ts +17 -1
- package/lib/types/_ActivatableSkill.d.ts +3 -0
- package/lib/types/_ActivatableSkill.js +1 -0
- package/lib/types/specialAbility/BlessedTradition.d.ts +1 -1
- package/lib/types/traditionArtifacts/AttireEnchantment.d.ts +1 -1
- package/package.json +1 -1
- package/schema/Blessing.schema.json +2 -18
- package/schema/Cantrip.schema.json +23 -1
- package/schema/_ActivatableSkill.schema.json +13 -0
- package/schema/specialAbility/BlessedTradition.schema.json +0 -1
- package/schema/traditionArtifacts/AttireEnchantment.schema.json +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
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.2.4](https://github.com/elyukai/optolith-database-schema/compare/v0.2.3...v0.2.4) (2022-03-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add actions as duration unit ([5e64e38](https://github.com/elyukai/optolith-database-schema/commit/5e64e38dbbcda2980bb70a2b1c1b8d01b3a31324))
|
|
11
|
+
* add cantrips as target category ([ac4cf38](https://github.com/elyukai/optolith-database-schema/commit/ac4cf380bc96ea20c214938fd96eca1af28b3952))
|
|
12
|
+
* add notes to tradition notes of cantrips ([7b37327](https://github.com/elyukai/optolith-database-schema/commit/7b373271312324064b0bac824511248d07f4ffbe))
|
|
13
|
+
* guild mages tradition can be noted as common for in general ([df175d1](https://github.com/elyukai/optolith-database-schema/commit/df175d1f523fb9f09c0e672b4bc71437763f34b1))
|
|
14
|
+
* remove compressed paramater description option ([7897b72](https://github.com/elyukai/optolith-database-schema/commit/7897b723258d97c1c71dcfef422821657c8efea2))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* compressed name should be optional ([7281f6a](https://github.com/elyukai/optolith-database-schema/commit/7281f6ae055588511dfdb4ebc186f5e492e823c8))
|
|
20
|
+
* cost needs to be required ([05fd208](https://github.com/elyukai/optolith-database-schema/commit/05fd2086642ee8781f1a33021f98333685234b50))
|
|
21
|
+
|
|
5
22
|
### [0.2.3](https://github.com/elyukai/optolith-database-schema/compare/v0.2.2...v0.2.3) (2022-03-29)
|
|
6
23
|
|
|
7
24
|
|
package/lib/types/Blessing.d.ts
CHANGED
|
@@ -103,20 +103,9 @@ declare type PerformanceParameters = {
|
|
|
103
103
|
[localeId: string]: {
|
|
104
104
|
/**
|
|
105
105
|
* A description of the duration.
|
|
106
|
+
* @minLength 1
|
|
106
107
|
*/
|
|
107
|
-
description:
|
|
108
|
-
/**
|
|
109
|
-
* The full description of the duration.
|
|
110
|
-
* @minLength 1
|
|
111
|
-
*/
|
|
112
|
-
default: string;
|
|
113
|
-
/**
|
|
114
|
-
* A compressed description of the duration for use in small areas
|
|
115
|
-
* (e.g. on character sheet).
|
|
116
|
-
* @minLength 1
|
|
117
|
-
*/
|
|
118
|
-
compressed: string;
|
|
119
|
-
};
|
|
108
|
+
description: string;
|
|
120
109
|
};
|
|
121
110
|
};
|
|
122
111
|
};
|
package/lib/types/Cantrip.d.ts
CHANGED
|
@@ -188,9 +188,25 @@ export declare type CommonNote = {
|
|
|
188
188
|
/**
|
|
189
189
|
* The magical tradition's identifier.
|
|
190
190
|
* @integer
|
|
191
|
-
* @minimum
|
|
191
|
+
* @minimum 1
|
|
192
192
|
*/
|
|
193
193
|
id: number;
|
|
194
|
+
/**
|
|
195
|
+
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
196
|
+
* @minProperties 1
|
|
197
|
+
*/
|
|
198
|
+
translations?: {
|
|
199
|
+
/**
|
|
200
|
+
* @patternProperties ^[a-z]{2}-[A-Z]{2}$
|
|
201
|
+
*/
|
|
202
|
+
[localeId: string]: {
|
|
203
|
+
/**
|
|
204
|
+
* A note, appended to the generated string in parenthesis.
|
|
205
|
+
* @minLength 1
|
|
206
|
+
*/
|
|
207
|
+
note: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
194
210
|
};
|
|
195
211
|
export declare const validateSchema: import("../validation/schema.js").TypeValidator<Cantrip>;
|
|
196
212
|
export {};
|
|
@@ -963,6 +963,7 @@ export declare namespace Duration {
|
|
|
963
963
|
Months = "Months",
|
|
964
964
|
Years = "Years",
|
|
965
965
|
Centuries = "Centuries",
|
|
966
|
+
Actions = "Actions",
|
|
966
967
|
CombatRounds = "CombatRounds"
|
|
967
968
|
}
|
|
968
969
|
type UnitValue = {
|
|
@@ -1012,6 +1013,8 @@ export declare namespace TargetCategory {
|
|
|
1012
1013
|
tag: "Zone";
|
|
1013
1014
|
} | {
|
|
1014
1015
|
tag: "LiturgicalChantsAndCeremonies";
|
|
1016
|
+
} | {
|
|
1017
|
+
tag: "Cantrips";
|
|
1015
1018
|
} | {
|
|
1016
1019
|
tag: "Predefined";
|
|
1017
1020
|
/**
|
|
@@ -29,6 +29,7 @@ export var Duration;
|
|
|
29
29
|
Unit["Months"] = "Months";
|
|
30
30
|
Unit["Years"] = "Years";
|
|
31
31
|
Unit["Centuries"] = "Centuries";
|
|
32
|
+
Unit["Actions"] = "Actions";
|
|
32
33
|
Unit["CombatRounds"] = "CombatRounds";
|
|
33
34
|
})(Unit = Duration.Unit || (Duration.Unit = {}));
|
|
34
35
|
})(Duration || (Duration = {}));
|
|
@@ -147,7 +147,7 @@ export declare type BlessedTradition = {
|
|
|
147
147
|
* descriptions.
|
|
148
148
|
* @minLength 1
|
|
149
149
|
*/
|
|
150
|
-
name_compressed
|
|
150
|
+
name_compressed?: string;
|
|
151
151
|
name_in_library?: Activatable.NameInLibrary;
|
|
152
152
|
/**
|
|
153
153
|
* The special rules of the tradition. They should be sorted like they are
|
|
@@ -15,7 +15,7 @@ export declare type AttireEnchantment = {
|
|
|
15
15
|
maximum?: Activatable.Maximum;
|
|
16
16
|
prerequisites?: GeneralPrerequisites;
|
|
17
17
|
volume: Activatable.Volume;
|
|
18
|
-
cost
|
|
18
|
+
cost: Activatable.EnchantmentCost;
|
|
19
19
|
property: Activatable.Property;
|
|
20
20
|
ap_value: Activatable.AdventurePointsValue;
|
|
21
21
|
src: PublicationRefs;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "optolith-database-schema",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
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",
|
|
@@ -178,24 +178,8 @@
|
|
|
178
178
|
"properties": {
|
|
179
179
|
"description": {
|
|
180
180
|
"description": "A description of the duration.",
|
|
181
|
-
"type": "
|
|
182
|
-
"
|
|
183
|
-
"default": {
|
|
184
|
-
"description": "The full description of the duration.",
|
|
185
|
-
"type": "string",
|
|
186
|
-
"minLength": 1
|
|
187
|
-
},
|
|
188
|
-
"compressed": {
|
|
189
|
-
"description": "A compressed description of the duration for use in small areas\n(e.g. on character sheet).",
|
|
190
|
-
"type": "string",
|
|
191
|
-
"minLength": 1
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
"required": [
|
|
195
|
-
"default",
|
|
196
|
-
"compressed"
|
|
197
|
-
],
|
|
198
|
-
"additionalProperties": false
|
|
181
|
+
"type": "string",
|
|
182
|
+
"minLength": 1
|
|
199
183
|
}
|
|
200
184
|
},
|
|
201
185
|
"required": [
|
|
@@ -347,7 +347,29 @@
|
|
|
347
347
|
"id": {
|
|
348
348
|
"description": "The magical tradition's identifier.",
|
|
349
349
|
"type": "integer",
|
|
350
|
-
"minimum":
|
|
350
|
+
"minimum": 1
|
|
351
|
+
},
|
|
352
|
+
"translations": {
|
|
353
|
+
"description": "All translations for the entry, identified by IETF language tag (BCP47).",
|
|
354
|
+
"type": "object",
|
|
355
|
+
"patternProperties": {
|
|
356
|
+
"^[a-z]{2}-[A-Z]{2}$": {
|
|
357
|
+
"type": "object",
|
|
358
|
+
"properties": {
|
|
359
|
+
"note": {
|
|
360
|
+
"description": "A note, appended to the generated string in parenthesis.",
|
|
361
|
+
"type": "string",
|
|
362
|
+
"minLength": 1
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"required": [
|
|
366
|
+
"note"
|
|
367
|
+
],
|
|
368
|
+
"additionalProperties": false
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
"minProperties": 1,
|
|
372
|
+
"additionalProperties": false
|
|
351
373
|
}
|
|
352
374
|
},
|
|
353
375
|
"required": [
|
|
@@ -1600,6 +1600,7 @@
|
|
|
1600
1600
|
"Months",
|
|
1601
1601
|
"Years",
|
|
1602
1602
|
"Centuries",
|
|
1603
|
+
"Actions",
|
|
1603
1604
|
"CombatRounds"
|
|
1604
1605
|
]
|
|
1605
1606
|
},
|
|
@@ -1729,6 +1730,18 @@
|
|
|
1729
1730
|
],
|
|
1730
1731
|
"additionalProperties": false
|
|
1731
1732
|
},
|
|
1733
|
+
{
|
|
1734
|
+
"type": "object",
|
|
1735
|
+
"properties": {
|
|
1736
|
+
"tag": {
|
|
1737
|
+
"const": "Cantrips"
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
"required": [
|
|
1741
|
+
"tag"
|
|
1742
|
+
],
|
|
1743
|
+
"additionalProperties": false
|
|
1744
|
+
},
|
|
1732
1745
|
{
|
|
1733
1746
|
"type": "object",
|
|
1734
1747
|
"properties": {
|