optolith-database-schema 0.23.1 → 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,13 @@
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
+
5
12
  ## [0.23.1](https://github.com/elyukai/optolith-database-schema/compare/v0.23.0...v0.23.1) (2025-12-04)
6
13
 
7
14
 
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
  /**
@@ -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.1",
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",