optolith-database-schema 0.11.8 → 0.12.0

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 CHANGED
@@ -2,6 +2,24 @@
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.12.0](https://github.com/elyukai/optolith-database-schema/compare/v0.11.9...v0.12.0) (2023-06-03)
6
+
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * rename header tab keys and add button names
11
+
12
+ ### Features
13
+
14
+ * rename header tab keys and add button names ([79d8381](https://github.com/elyukai/optolith-database-schema/commit/79d8381c1b7dc4571edf8920a6e8db47dc560431))
15
+
16
+ ### [0.11.9](https://github.com/elyukai/optolith-database-schema/compare/v0.11.8...v0.11.9) (2023-05-31)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * move TypeId declaration to exported file ([940f567](https://github.com/elyukai/optolith-database-schema/commit/940f5674f64547c277f479e43df4d3b193e5489c))
22
+
5
23
  ### [0.11.8](https://github.com/elyukai/optolith-database-schema/compare/v0.11.7...v0.11.8) (2023-05-31)
6
24
 
7
25
 
@@ -461,3 +461,4 @@ export declare const configMap: {
461
461
  weapons: import("../typeConfig.js").TypeConfig<Weapon.Weapon>;
462
462
  zibiljaRituals: import("../typeConfig.js").TypeConfig<ZibiljaRitual.ZibiljaRitual>;
463
463
  };
464
+ export type TypeId<K extends keyof TypeMap> = ReturnType<(typeof configMap)[K]["id"]>;
package/lib/main.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import { TypeMap } from "./config/types.js";
1
+ import { TypeId, TypeMap } from "./config/types.js";
2
2
  import "./helpers/array.js";
3
3
  import { Result } from "./helpers/result.js";
4
- import { TypeId } from "./typeConfig.js";
5
4
  import { IntegrityError } from "./validation/builders/integrity.js";
6
5
  import { FileNameError } from "./validation/builders/naming.js";
7
6
  import { SchemaError } from "./validation/builders/schema.js";
@@ -1,7 +1,5 @@
1
- import { TypeMap, configMap } from "./config/types.js";
2
1
  import { IntegrityValidator } from "./validation/builders/integrity.js";
3
2
  import { SchemaValidator } from "./validation/builders/schema.js";
4
- export type TypeId<K extends keyof TypeMap> = ReturnType<(typeof configMap)[K]["id"]>;
5
3
  export type TypeConfig<T, ID extends string | number = number> = {
6
4
  name: string;
7
5
  id: (data: T, filepath: string) => ID;
package/lib/types/UI.d.ts CHANGED
@@ -17,43 +17,45 @@ export type UI = {
17
17
  "macosmenubar.edit": NonEmptyString;
18
18
  "macosmenubar.view": NonEmptyString;
19
19
  "initialization.loadtableserror": NonEmptyString;
20
- "header.tabs.heroes": NonEmptyString;
21
- "header.tabs.groups": NonEmptyString;
22
- "header.tabs.wiki": NonEmptyString;
23
- "header.tabs.faq": NonEmptyString;
24
- "header.tabs.about": NonEmptyString;
25
- "header.tabs.imprint": NonEmptyString;
26
- "header.tabs.thirdpartylicenses": NonEmptyString;
27
- "header.tabs.lastchanges": NonEmptyString;
28
- "header.tabs.profile": NonEmptyString;
29
- "header.tabs.overview": NonEmptyString;
30
- "header.tabs.personaldata": NonEmptyString;
31
- "header.tabs.charactersheet": NonEmptyString;
32
- "header.tabs.pact": NonEmptyString;
33
- "header.tabs.rules": NonEmptyString;
34
- "header.tabs.racecultureandprofession": NonEmptyString;
35
- "header.tabs.race": NonEmptyString;
36
- "header.tabs.culture": NonEmptyString;
37
- "header.tabs.profession": NonEmptyString;
38
- "header.tabs.attributes": NonEmptyString;
39
- "header.tabs.advantagesanddisadvantages": NonEmptyString;
40
- "header.tabs.advantages": NonEmptyString;
41
- "header.tabs.disadvantages": NonEmptyString;
42
- "header.tabs.abilities": NonEmptyString;
43
- "header.tabs.skills": NonEmptyString;
44
- "header.tabs.combattechniques": NonEmptyString;
45
- "header.tabs.specialabilities": NonEmptyString;
46
- "header.tabs.spells": NonEmptyString;
47
- "header.tabs.liturgicalchants": NonEmptyString;
48
- "header.tabs.belongings": NonEmptyString;
49
- "header.tabs.equipment": NonEmptyString;
50
- "header.tabs.hitzonearmor": NonEmptyString;
51
- "header.tabs.pets": NonEmptyString;
20
+ "Characters": NonEmptyString;
21
+ "Groups": NonEmptyString;
22
+ "Library": NonEmptyString;
23
+ "FAQ": NonEmptyString;
24
+ "About": NonEmptyString;
25
+ "Imprint": NonEmptyString;
26
+ "Third-Party Licenses": NonEmptyString;
27
+ "Last Changes": NonEmptyString;
28
+ "Profile": NonEmptyString;
29
+ "Overview": NonEmptyString;
30
+ "Personal Data": NonEmptyString;
31
+ "Character Sheet": NonEmptyString;
32
+ "Pact": NonEmptyString;
33
+ "Rules": NonEmptyString;
34
+ "Race, Culture & Profession": NonEmptyString;
35
+ "Race": NonEmptyString;
36
+ "Culture": NonEmptyString;
37
+ "Profession": NonEmptyString;
38
+ "Attributes": NonEmptyString;
39
+ "Advantages & Disadvantages": NonEmptyString;
40
+ "Advantages": NonEmptyString;
41
+ "Disadvantages": NonEmptyString;
42
+ "Abilities": NonEmptyString;
43
+ "Skills": NonEmptyString;
44
+ "Combat Techniques": NonEmptyString;
45
+ "Special Abilities": NonEmptyString;
46
+ "Spells": NonEmptyString;
47
+ "Liturgical Chants": NonEmptyString;
48
+ "Belongings": NonEmptyString;
49
+ "Equipment": NonEmptyString;
50
+ "Hit Zone Armor": NonEmptyString;
51
+ "Pets": NonEmptyString;
52
52
  /**
53
53
  * - `0`: AP left
54
54
  */
55
55
  "header.apleft": NonEmptyString;
56
56
  "header.savebtn": NonEmptyString;
57
+ "Show Settings": NonEmptyString;
58
+ "Toggle DevTools": NonEmptyString;
57
59
  "header.aptooltip.title": NonEmptyString;
58
60
  /**
59
61
  * - `0`: AP Total
@@ -1,7 +1,6 @@
1
- import { TypeMap } from "../../config/types.js";
1
+ import { TypeId, TypeMap } from "../../config/types.js";
2
2
  import { PathDescriptor } from "../../helpers/objectPath.js";
3
3
  import { Result } from "../../helpers/result.js";
4
- import { TypeId } from "../../typeConfig.js";
5
4
  /**
6
5
  * An error in the shape of an `Ajv` error, with `keyword` being the
7
6
  * discriminating property.
@@ -1,8 +1,7 @@
1
- import { TypeMap } from "../config/types.js";
1
+ import { TypeId, TypeMap } from "../config/types.js";
2
2
  import "../helpers/array.js";
3
3
  import { Result } from "../helpers/result.js";
4
4
  import { EntityDirectoryPaths, TypeValidationError, ValidationOptions } from "../main.js";
5
- import { TypeId } from "../typeConfig.js";
6
5
  export type TypeIdPair<K extends keyof TypeMap> = [id: TypeId<K>, data: TypeMap[K]];
7
6
  export type TypeValidationResult<K extends keyof TypeMap> = Result<TypeIdPair<K>, TypeValidationError[]>;
8
7
  export type TypeValidationResultsByType = [keyof TypeMap, [filePath: string, result: TypeValidationResult<keyof TypeMap>][]][];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optolith-database-schema",
3
- "version": "0.11.8",
3
+ "version": "0.12.0",
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",
@@ -26,100 +26,100 @@
26
26
  "initialization.loadtableserror": {
27
27
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
28
28
  },
29
- "header.tabs.heroes": {
29
+ "Characters": {
30
30
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
31
31
  },
32
- "header.tabs.groups": {
32
+ "Groups": {
33
33
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
34
34
  },
35
- "header.tabs.wiki": {
35
+ "Library": {
36
36
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
37
37
  },
38
- "header.tabs.faq": {
38
+ "FAQ": {
39
39
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
40
40
  },
41
- "header.tabs.about": {
41
+ "About": {
42
42
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
43
43
  },
44
- "header.tabs.imprint": {
44
+ "Imprint": {
45
45
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
46
46
  },
47
- "header.tabs.thirdpartylicenses": {
47
+ "Third-Party Licenses": {
48
48
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
49
49
  },
50
- "header.tabs.lastchanges": {
50
+ "Last Changes": {
51
51
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
52
52
  },
53
- "header.tabs.profile": {
53
+ "Profile": {
54
54
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
55
55
  },
56
- "header.tabs.overview": {
56
+ "Overview": {
57
57
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
58
58
  },
59
- "header.tabs.personaldata": {
59
+ "Personal Data": {
60
60
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
61
61
  },
62
- "header.tabs.charactersheet": {
62
+ "Character Sheet": {
63
63
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
64
64
  },
65
- "header.tabs.pact": {
65
+ "Pact": {
66
66
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
67
67
  },
68
- "header.tabs.rules": {
68
+ "Rules": {
69
69
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
70
70
  },
71
- "header.tabs.racecultureandprofession": {
71
+ "Race, Culture & Profession": {
72
72
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
73
73
  },
74
- "header.tabs.race": {
74
+ "Race": {
75
75
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
76
76
  },
77
- "header.tabs.culture": {
77
+ "Culture": {
78
78
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
79
79
  },
80
- "header.tabs.profession": {
80
+ "Profession": {
81
81
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
82
82
  },
83
- "header.tabs.attributes": {
83
+ "Attributes": {
84
84
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
85
85
  },
86
- "header.tabs.advantagesanddisadvantages": {
86
+ "Advantages & Disadvantages": {
87
87
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
88
88
  },
89
- "header.tabs.advantages": {
89
+ "Advantages": {
90
90
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
91
91
  },
92
- "header.tabs.disadvantages": {
92
+ "Disadvantages": {
93
93
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
94
94
  },
95
- "header.tabs.abilities": {
95
+ "Abilities": {
96
96
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
97
97
  },
98
- "header.tabs.skills": {
98
+ "Skills": {
99
99
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
100
100
  },
101
- "header.tabs.combattechniques": {
101
+ "Combat Techniques": {
102
102
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
103
103
  },
104
- "header.tabs.specialabilities": {
104
+ "Special Abilities": {
105
105
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
106
106
  },
107
- "header.tabs.spells": {
107
+ "Spells": {
108
108
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
109
109
  },
110
- "header.tabs.liturgicalchants": {
110
+ "Liturgical Chants": {
111
111
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
112
112
  },
113
- "header.tabs.belongings": {
113
+ "Belongings": {
114
114
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
115
115
  },
116
- "header.tabs.equipment": {
116
+ "Equipment": {
117
117
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
118
118
  },
119
- "header.tabs.hitzonearmor": {
119
+ "Hit Zone Armor": {
120
120
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
121
121
  },
122
- "header.tabs.pets": {
122
+ "Pets": {
123
123
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
124
124
  },
125
125
  "header.apleft": {
@@ -129,6 +129,12 @@
129
129
  "header.savebtn": {
130
130
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
131
131
  },
132
+ "Show Settings": {
133
+ "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
134
+ },
135
+ "Toggle DevTools": {
136
+ "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
137
+ },
132
138
  "header.aptooltip.title": {
133
139
  "$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
134
140
  },
@@ -2557,40 +2563,42 @@
2557
2563
  "macosmenubar.edit",
2558
2564
  "macosmenubar.view",
2559
2565
  "initialization.loadtableserror",
2560
- "header.tabs.heroes",
2561
- "header.tabs.groups",
2562
- "header.tabs.wiki",
2563
- "header.tabs.faq",
2564
- "header.tabs.about",
2565
- "header.tabs.imprint",
2566
- "header.tabs.thirdpartylicenses",
2567
- "header.tabs.lastchanges",
2568
- "header.tabs.profile",
2569
- "header.tabs.overview",
2570
- "header.tabs.personaldata",
2571
- "header.tabs.charactersheet",
2572
- "header.tabs.pact",
2573
- "header.tabs.rules",
2574
- "header.tabs.racecultureandprofession",
2575
- "header.tabs.race",
2576
- "header.tabs.culture",
2577
- "header.tabs.profession",
2578
- "header.tabs.attributes",
2579
- "header.tabs.advantagesanddisadvantages",
2580
- "header.tabs.advantages",
2581
- "header.tabs.disadvantages",
2582
- "header.tabs.abilities",
2583
- "header.tabs.skills",
2584
- "header.tabs.combattechniques",
2585
- "header.tabs.specialabilities",
2586
- "header.tabs.spells",
2587
- "header.tabs.liturgicalchants",
2588
- "header.tabs.belongings",
2589
- "header.tabs.equipment",
2590
- "header.tabs.hitzonearmor",
2591
- "header.tabs.pets",
2566
+ "Characters",
2567
+ "Groups",
2568
+ "Library",
2569
+ "FAQ",
2570
+ "About",
2571
+ "Imprint",
2572
+ "Third-Party Licenses",
2573
+ "Last Changes",
2574
+ "Profile",
2575
+ "Overview",
2576
+ "Personal Data",
2577
+ "Character Sheet",
2578
+ "Pact",
2579
+ "Rules",
2580
+ "Race, Culture & Profession",
2581
+ "Race",
2582
+ "Culture",
2583
+ "Profession",
2584
+ "Attributes",
2585
+ "Advantages & Disadvantages",
2586
+ "Advantages",
2587
+ "Disadvantages",
2588
+ "Abilities",
2589
+ "Skills",
2590
+ "Combat Techniques",
2591
+ "Special Abilities",
2592
+ "Spells",
2593
+ "Liturgical Chants",
2594
+ "Belongings",
2595
+ "Equipment",
2596
+ "Hit Zone Armor",
2597
+ "Pets",
2592
2598
  "header.apleft",
2593
2599
  "header.savebtn",
2600
+ "Show Settings",
2601
+ "Toggle DevTools",
2594
2602
  "header.aptooltip.title",
2595
2603
  "header.aptooltip.total",
2596
2604
  "header.aptooltip.spent",