optolith-database-schema 0.26.1 → 0.26.3

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,25 @@
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.26.3](https://github.com/elyukai/optolith-database-schema/compare/v0.26.2...v0.26.3) (2025-12-28)
6
+
7
+
8
+ ### Features
9
+
10
+ * add spellworks as target category option ([13413e2](https://github.com/elyukai/optolith-database-schema/commit/13413e236f73832c7ef625f57778ccff483a7ecd)), closes [#100](https://github.com/elyukai/optolith-database-schema/issues/100)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * general select option display name ([498014a](https://github.com/elyukai/optolith-database-schema/commit/498014a55afecf91fa1bac6ada00a35402b0837a))
16
+
17
+ ## [0.26.2](https://github.com/elyukai/optolith-database-schema/compare/v0.26.1...v0.26.2) (2025-12-23)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * add homunculus type to schema ([59a6d41](https://github.com/elyukai/optolith-database-schema/commit/59a6d4119dc8a7ea5b76bdd79ddb6a856ad64897))
23
+
5
24
  ## [0.26.1](https://github.com/elyukai/optolith-database-schema/compare/v0.26.0...v0.26.1) (2025-12-23)
6
25
 
7
26
 
package/gen/types.d.ts CHANGED
@@ -78,6 +78,7 @@ export type EntityMap = {
78
78
  Guideline: Guideline
79
79
  HairColor: HairColor
80
80
  Haubenzauber: Haubenzauber
81
+ HomunculusType: HomunculusType
81
82
  IlluminationLightSource: IlluminationLightSource
82
83
  IlluminationRefillOrSupply: IlluminationRefillOrSupply
83
84
  Influence: Influence
@@ -5364,6 +5365,9 @@ export type SpecificAffectedTargetCategoryIdentifier =
5364
5365
  | {
5365
5366
  kind: "Cantrips"
5366
5367
  }
5368
+ | {
5369
+ kind: "Spellworks"
5370
+ }
5367
5371
  | {
5368
5372
  kind: "Predefined"
5369
5373
  Predefined: TargetCategory_ID
@@ -22329,6 +22333,27 @@ export interface IndefiniteFamiliarsTrickPropertyTranslation {
22329
22333
  description: ResponsiveText
22330
22334
  }
22331
22335
 
22336
+ export interface HomunculusType {
22337
+ /**
22338
+ * All translations for the entry, identified by IETF language tag (BCP47).
22339
+ */
22340
+ translations: {
22341
+ [localeId: string]: HomunculusTypeTranslation
22342
+ }
22343
+ }
22344
+
22345
+ /**
22346
+ * The entity’s identifier. A UUID or a locale code if it is registered as the locale entity.
22347
+ */
22348
+ export type HomunculusType_ID = string
22349
+
22350
+ export interface HomunculusTypeTranslation {
22351
+ /**
22352
+ * The homunculus type’s name.
22353
+ */
22354
+ name: string
22355
+ }
22356
+
22332
22357
  /**
22333
22358
  * Meta Conditions are rule elements that work like conditions in the sense that they have four levels with different effects, but which are not explicitly listed as conditions.
22334
22359
  */
package/lib/main.js CHANGED
@@ -76,6 +76,7 @@ export const schema = Schema([
76
76
  Types.Guideline,
77
77
  Types.HairColor,
78
78
  Types.Haubenzauber,
79
+ Types.HomunculusType,
79
80
  Types.IlluminationLightSource,
80
81
  Types.IlluminationRefillOrSupply,
81
82
  Types.InstrumentEnchantment,
@@ -44,6 +44,7 @@ export declare const Blessing: Entity<"Blessing", {
44
44
  Zone: EnumCase<null>;
45
45
  LiturgicalChantsAndCeremonies: EnumCase<null>;
46
46
  Cantrips: EnumCase<null>;
47
+ Spellworks: EnumCase<null>;
47
48
  Predefined: EnumCase<import("tsondb/schema/def").ReferenceIdentifierType>;
48
49
  }, []>>, true>;
49
50
  translations: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<"SpecificAffectedTargetCategoryTranslation", {
@@ -55,6 +55,7 @@ export declare const Cantrip: Entity<"Cantrip", {
55
55
  Zone: EnumCase<null>;
56
56
  LiturgicalChantsAndCeremonies: EnumCase<null>;
57
57
  Cantrips: EnumCase<null>;
58
+ Spellworks: EnumCase<null>;
58
59
  Predefined: EnumCase<import("tsondb/schema/def").ReferenceIdentifierType>;
59
60
  }, []>>, true>;
60
61
  translations: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<"SpecificAffectedTargetCategoryTranslation", {
@@ -437,6 +437,7 @@ export declare const Ceremony: Entity<"Ceremony", {
437
437
  Zone: import("tsondb/schema/def").EnumCaseDecl<null>;
438
438
  LiturgicalChantsAndCeremonies: import("tsondb/schema/def").EnumCaseDecl<null>;
439
439
  Cantrips: import("tsondb/schema/def").EnumCaseDecl<null>;
440
+ Spellworks: import("tsondb/schema/def").EnumCaseDecl<null>;
440
441
  Predefined: import("tsondb/schema/def").EnumCaseDecl<import("tsondb/schema/def").ReferenceIdentifierType>;
441
442
  }, []>>, true>;
442
443
  translations: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<"SpecificAffectedTargetCategoryTranslation", {
@@ -437,6 +437,7 @@ export declare const LiturgicalChant: Entity<"LiturgicalChant", {
437
437
  Zone: import("tsondb/schema/def").EnumCaseDecl<null>;
438
438
  LiturgicalChantsAndCeremonies: import("tsondb/schema/def").EnumCaseDecl<null>;
439
439
  Cantrips: import("tsondb/schema/def").EnumCaseDecl<null>;
440
+ Spellworks: import("tsondb/schema/def").EnumCaseDecl<null>;
440
441
  Predefined: import("tsondb/schema/def").EnumCaseDecl<import("tsondb/schema/def").ReferenceIdentifierType>;
441
442
  }, []>>, true>;
442
443
  translations: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<"SpecificAffectedTargetCategoryTranslation", {
@@ -437,6 +437,7 @@ export declare const Ritual: Entity<"Ritual", {
437
437
  Zone: import("tsondb/schema/def").EnumCaseDecl<null>;
438
438
  LiturgicalChantsAndCeremonies: import("tsondb/schema/def").EnumCaseDecl<null>;
439
439
  Cantrips: import("tsondb/schema/def").EnumCaseDecl<null>;
440
+ Spellworks: import("tsondb/schema/def").EnumCaseDecl<null>;
440
441
  Predefined: import("tsondb/schema/def").EnumCaseDecl<import("tsondb/schema/def").ReferenceIdentifierType>;
441
442
  }, []>>, true>;
442
443
  translations: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<"SpecificAffectedTargetCategoryTranslation", {
@@ -437,6 +437,7 @@ export declare const Spell: Entity<"Spell", {
437
437
  Zone: import("tsondb/schema/def").EnumCaseDecl<null>;
438
438
  LiturgicalChantsAndCeremonies: import("tsondb/schema/def").EnumCaseDecl<null>;
439
439
  Cantrips: import("tsondb/schema/def").EnumCaseDecl<null>;
440
+ Spellworks: import("tsondb/schema/def").EnumCaseDecl<null>;
440
441
  Predefined: import("tsondb/schema/def").EnumCaseDecl<import("tsondb/schema/def").ReferenceIdentifierType>;
441
442
  }, []>>, true>;
442
443
  translations: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<"SpecificAffectedTargetCategoryTranslation", {
@@ -87,9 +87,7 @@ export const GeneralSelectOption = Entity(import.meta.url, {
87
87
  parentReferenceKey: "parent",
88
88
  displayName: {},
89
89
  displayNameCustomizer: ({ instance, instanceDisplayName, instanceDisplayNameLocaleId, getDisplayNameForInstanceId, }) => ({
90
- name: `${instanceDisplayName.length > 0
91
- ? instanceDisplayName
92
- : (getDisplayNameForInstanceId(getAnyEnumCaseValue(instance.parent))?.name ?? "")} — ${instanceDisplayName}`,
90
+ name: `${getDisplayNameForInstanceId(getAnyEnumCaseValue(instance.parent))?.name ?? "[unknown parent]"} — ${instanceDisplayName}`,
93
91
  localeId: instanceDisplayNameLocaleId,
94
92
  }),
95
93
  uniqueConstraints: [
@@ -5,6 +5,7 @@ export declare const AffectedTargetCategories: TypeAlias<"AffectedTargetCategori
5
5
  Zone: EnumCase<null>;
6
6
  LiturgicalChantsAndCeremonies: EnumCase<null>;
7
7
  Cantrips: EnumCase<null>;
8
+ Spellworks: EnumCase<null>;
8
9
  Predefined: EnumCase<import("tsondb/schema/def").ReferenceIdentifierType>;
9
10
  }, []>>, true>;
10
11
  translations: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<"SpecificAffectedTargetCategoryTranslation", {
@@ -24,6 +24,7 @@ const SpecificAffectedTargetCategoryIdentifier = Enum(import.meta.url, {
24
24
  Zone: EnumCase({ type: null }),
25
25
  LiturgicalChantsAndCeremonies: EnumCase({ type: null }),
26
26
  Cantrips: EnumCase({ type: null }),
27
+ Spellworks: EnumCase({ type: null }),
27
28
  Predefined: EnumCase({ type: TargetCategoryIdentifier() }),
28
29
  }),
29
30
  });
@@ -71,6 +71,7 @@ export { MagicalRune } from "./magicalActions/MagicalRune.js";
71
71
  export { ZibiljaRitual } from "./magicalActions/ZibiljaRitual.js";
72
72
  export { MetaCondition } from "./MetaCondition.js";
73
73
  export { PactCategory } from "./PactCategory.js";
74
+ export { HomunculusType } from "./HomunculusType.js";
74
75
  export { Patron } from "./Patron.js";
75
76
  export { PatronCategory } from "./PatronCategory.js";
76
77
  export { PersonalityTrait } from "./PersonalityTrait.js";
@@ -71,6 +71,7 @@ export { MagicalRune } from "./magicalActions/MagicalRune.js";
71
71
  export { ZibiljaRitual } from "./magicalActions/ZibiljaRitual.js";
72
72
  export { MetaCondition } from "./MetaCondition.js";
73
73
  export { PactCategory } from "./PactCategory.js";
74
+ export { HomunculusType } from "./HomunculusType.js";
74
75
  export { Patron } from "./Patron.js";
75
76
  export { PatronCategory } from "./PatronCategory.js";
76
77
  export { PersonalityTrait } from "./PersonalityTrait.js";
@@ -107,6 +107,7 @@ export declare const GeodeRitual: Entity<"GeodeRitual", {
107
107
  Zone: EnumCase<null>;
108
108
  LiturgicalChantsAndCeremonies: EnumCase<null>;
109
109
  Cantrips: EnumCase<null>;
110
+ Spellworks: EnumCase<null>;
110
111
  Predefined: EnumCase<import("tsondb/schema/def").ReferenceIdentifierType>;
111
112
  }, []>>, true>;
112
113
  translations: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<"SpecificAffectedTargetCategoryTranslation", {
@@ -80,6 +80,7 @@ export declare const JesterTrick: Entity<"JesterTrick", {
80
80
  Zone: EnumCase<null>;
81
81
  LiturgicalChantsAndCeremonies: EnumCase<null>;
82
82
  Cantrips: EnumCase<null>;
83
+ Spellworks: EnumCase<null>;
83
84
  Predefined: EnumCase<import("tsondb/schema/def").ReferenceIdentifierType>;
84
85
  }, []>>, true>;
85
86
  translations: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<"SpecificAffectedTargetCategoryTranslation", {
@@ -316,6 +316,7 @@ export declare const ZibiljaRitual: Entity<"ZibiljaRitual", {
316
316
  Zone: import("tsondb/schema/def").EnumCaseDecl<null>;
317
317
  LiturgicalChantsAndCeremonies: import("tsondb/schema/def").EnumCaseDecl<null>;
318
318
  Cantrips: import("tsondb/schema/def").EnumCaseDecl<null>;
319
+ Spellworks: import("tsondb/schema/def").EnumCaseDecl<null>;
319
320
  Predefined: import("tsondb/schema/def").EnumCaseDecl<import("tsondb/schema/def").ReferenceIdentifierType>;
320
321
  }, []>>, true>;
321
322
  translations: import("tsondb/schema/def").MemberDecl<import("tsondb/schema/def").NestedEntityMapType<"SpecificAffectedTargetCategoryTranslation", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optolith-database-schema",
3
- "version": "0.26.1",
3
+ "version": "0.26.3",
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",