optolith-database-schema 0.23.0 → 0.23.2

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,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [0.23.2](https://github.com/elyukai/optolith-database-schema/compare/v0.23.1...v0.23.2) (2025-12-04)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * use correct identifiers in restrictions ([9392990](https://github.com/elyukai/optolith-database-schema/commit/9392990109296bc4cfbc5116c8fa5360efd4a02d))
11
+
12
+ ## [0.23.1](https://github.com/elyukai/optolith-database-schema/compare/v0.23.0...v0.23.1) (2025-12-04)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * restore removed magical artifact translation properties ([d4b8ad3](https://github.com/elyukai/optolith-database-schema/commit/d4b8ad3bd854b32d2a6b05d1e79837c210910d4b))
18
+
5
19
  ## [0.23.0](https://github.com/elyukai/optolith-database-schema/compare/v0.22.0...v0.23.0) (2025-12-04)
6
20
 
7
21
 
package/gen/types.d.ts CHANGED
@@ -10130,7 +10130,7 @@ export interface RestrictedToRaces {
10130
10130
  /**
10131
10131
  * The item is restricted to one of a list of races. If only one race is allowed, the list may only have a single element.
10132
10132
  */
10133
- scope: MagicalTradition_ID[]
10133
+ scope: Race_ID[]
10134
10134
  }
10135
10135
 
10136
10136
  /**
@@ -10140,7 +10140,7 @@ export interface RestrictedToCultures {
10140
10140
  /**
10141
10141
  * The item is restricted to one of a list of cultures. If only one culture is allowed, the list may only have a single element.
10142
10142
  */
10143
- scope: MagicalTradition_ID[]
10143
+ scope: Culture_ID[]
10144
10144
  }
10145
10145
 
10146
10146
  /**
@@ -10150,7 +10150,7 @@ export interface RestrictedToProfessions {
10150
10150
  /**
10151
10151
  * The item is restricted to one of a list of professions. If only one profession is allowed, the list may only have a single element.
10152
10152
  */
10153
- scope: MagicalTradition_ID[]
10153
+ scope: Profession_ID[]
10154
10154
  }
10155
10155
 
10156
10156
  /**
@@ -20358,6 +20358,16 @@ export interface MagicalArtifactTranslation {
20358
20358
  */
20359
20359
  description?: string
20360
20360
 
20361
+ /**
20362
+ * A note.
20363
+ */
20364
+ note?: string
20365
+
20366
+ /**
20367
+ * Rules text.
20368
+ */
20369
+ rules?: string
20370
+
20361
20371
  /**
20362
20372
  * Effect text.
20363
20373
  */
@@ -204,6 +204,8 @@ export declare const MagicalArtifact: Entity<"MagicalArtifact", {
204
204
  name: import("tsondb/schema/def").MemberDecl<String, true>;
205
205
  secondary_name: import("tsondb/schema/def").MemberDecl<String, false>;
206
206
  description: import("tsondb/schema/def").MemberDecl<String, false>;
207
+ note: import("tsondb/schema/def").MemberDecl<String, false>;
208
+ rules: import("tsondb/schema/def").MemberDecl<String, false>;
207
209
  effect: import("tsondb/schema/def").MemberDecl<String, false>;
208
210
  cost: import("tsondb/schema/def").MemberDecl<String, false>;
209
211
  errata: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], import("tsondb/schema/def").TypeAliasDecl<"Errata", import("tsondb/schema/def").ArrayType<IncludeIdentifier<[], import("tsondb/schema/def").TypeAliasDecl<"Erratum", Object<{
@@ -41,6 +41,14 @@ export const MagicalArtifact = Entity(import.meta.url, {
41
41
  comment: "Description text.",
42
42
  type: String({ minLength: 1, isMarkdown: true }),
43
43
  }),
44
+ note: Optional({
45
+ comment: "A note.",
46
+ type: String({ minLength: 1, isMarkdown: true }),
47
+ }),
48
+ rules: Optional({
49
+ comment: "Rules text.",
50
+ type: String({ minLength: 1, isMarkdown: true }),
51
+ }),
44
52
  effect: Optional({
45
53
  comment: "Effect text.",
46
54
  type: String({ minLength: 1, isMarkdown: true }),
@@ -1,5 +1,5 @@
1
1
  import { Array, Boolean, Entity, Enum, EnumCase, Float, IncludeIdentifier, Integer, Object, Optional, Required, String, TypeAlias, } from "tsondb/schema/def";
2
- import { BlessedTraditionIdentifier, MagicalTraditionIdentifier } from "../../_Identifier.js";
2
+ import { BlessedTraditionIdentifier, CultureIdentifier, MagicalTraditionIdentifier, ProfessionIdentifier, RaceIdentifier, } from "../../_Identifier.js";
3
3
  import { NestedTranslationMap } from "../../Locale.js";
4
4
  import { Errata } from "../../source/_Erratum.js";
5
5
  import { src } from "../../source/_PublicationRef.js";
@@ -175,7 +175,7 @@ export const RestrictedToRaces = TypeAlias(import.meta.url, {
175
175
  type: () => Object({
176
176
  scope: Required({
177
177
  comment: "The item is restricted to one of a list of races. If only one race is allowed, the list may only have a single element.",
178
- type: Array(MagicalTraditionIdentifier(), { minItems: 1, uniqueItems: true }),
178
+ type: Array(RaceIdentifier(), { minItems: 1, uniqueItems: true }),
179
179
  }),
180
180
  }),
181
181
  });
@@ -185,7 +185,7 @@ export const RestrictedToCultures = TypeAlias(import.meta.url, {
185
185
  type: () => Object({
186
186
  scope: Required({
187
187
  comment: "The item is restricted to one of a list of cultures. If only one culture is allowed, the list may only have a single element.",
188
- type: Array(MagicalTraditionIdentifier(), { minItems: 1, uniqueItems: true }),
188
+ type: Array(CultureIdentifier(), { minItems: 1, uniqueItems: true }),
189
189
  }),
190
190
  }),
191
191
  });
@@ -195,7 +195,7 @@ export const RestrictedToProfessions = TypeAlias(import.meta.url, {
195
195
  type: () => Object({
196
196
  scope: Required({
197
197
  comment: "The item is restricted to one of a list of professions. If only one profession is allowed, the list may only have a single element.",
198
- type: Array(MagicalTraditionIdentifier(), { minItems: 1, uniqueItems: true }),
198
+ type: Array(ProfessionIdentifier(), { minItems: 1, uniqueItems: true }),
199
199
  }),
200
200
  }),
201
201
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optolith-database-schema",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
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",