optolith-database-schema 0.34.6 → 0.34.8

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.34.8](https://github.com/elyukai/optolith-database-schema/compare/v0.34.7...v0.34.8) (2026-03-09)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **cache:** handle added poison source type ([17d46f1](https://github.com/elyukai/optolith-database-schema/commit/17d46f17b45efe20e154e15a526a370e7b73a5c2))
11
+
12
+ ## [0.34.7](https://github.com/elyukai/optolith-database-schema/compare/v0.34.6...v0.34.7) (2026-03-09)
13
+
14
+
15
+ ### Features
16
+
17
+ * add alchemical pact gift poison source type and make cost optional ([c32cb59](https://github.com/elyukai/optolith-database-schema/commit/c32cb594aa0cb7802511adb7ed13327e51620999)), closes [#88](https://github.com/elyukai/optolith-database-schema/issues/88)
18
+
5
19
  ## [0.34.6](https://github.com/elyukai/optolith-database-schema/compare/v0.34.5...v0.34.6) (2026-03-09)
6
20
 
7
21
 
package/gen/types.d.ts CHANGED
@@ -22221,7 +22221,7 @@ export interface Poison {
22221
22221
  /**
22222
22222
  * Price for one dose, in silverthalers.
22223
22223
  */
22224
- cost: PoisonCost
22224
+ cost?: PoisonCost
22225
22225
 
22226
22226
  /**
22227
22227
  * References to where in which publications this entry has been defined. Entries may also be added or removed in later printings.
@@ -22288,6 +22288,9 @@ export type PoisonSourceType =
22288
22288
  kind: "AlchemicalPoison"
22289
22289
  AlchemicalPoison: AlchemicalPoison
22290
22290
  }
22291
+ | {
22292
+ kind: "AlchemicalPactGiftPoison"
22293
+ }
22291
22294
  | {
22292
22295
  kind: "MineralPoison"
22293
22296
  MineralPoison: MineralPoison
@@ -553,6 +553,7 @@ const getDerivedSelectOptions = (selectOptionCategory, entryId, database, idMap)
553
553
  return assertExhaustive(poison.source_type.AnimalVenom.level);
554
554
  }
555
555
  case "AlchemicalPoison":
556
+ case "AlchemicalPactGiftPoison":
556
557
  return 6;
557
558
  case "MineralPoison":
558
559
  return poison.source_type.MineralPoison.level;
@@ -133,6 +133,7 @@ export declare const Poison: DB.Entity<"Poison", {
133
133
  brewing_process_prerequisites: DB.MemberDecl<DB.String, false>;
134
134
  }>, true>;
135
135
  }>, []>>>;
136
+ AlchemicalPactGiftPoison: DB.EnumCase<null>;
136
137
  MineralPoison: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"MineralPoison", DB.Object<{
137
138
  level: DB.MemberDecl<DB.Integer, true>;
138
139
  }>, []>>>;
@@ -253,7 +254,7 @@ export declare const Poison: DB.Entity<"Poison", {
253
254
  description: DB.MemberDecl<DB.String, true>;
254
255
  }>, true>;
255
256
  }>, []>>>;
256
- }, []>>, true>;
257
+ }, []>>, false>;
257
258
  src: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationRefs", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"PublicationRef", DB.Object<{
258
259
  id: DB.MemberDecl<DB.ReferenceIdentifier, true>;
259
260
  occurrences: DB.MemberDecl<DB.NestedEntityMap<string, {
@@ -39,7 +39,7 @@ export const Poison = DB.Entity(import.meta.url, {
39
39
  comment: "The raw (ingredients) value per level, in silverthalers.",
40
40
  type: DB.Integer({ minimum: 1 }),
41
41
  }),
42
- cost: DB.Required({
42
+ cost: DB.Optional({
43
43
  comment: "Price for one dose, in silverthalers.",
44
44
  type: DB.IncludeIdentifier(PoisonCost),
45
45
  }),
@@ -210,6 +210,10 @@ const PoisonSourceType = DB.Enum(import.meta.url, {
210
210
  values: () => ({
211
211
  AnimalVenom: DB.EnumCase({ type: DB.IncludeIdentifier(AnimalVenom) }),
212
212
  AlchemicalPoison: DB.EnumCase({ type: DB.IncludeIdentifier(AlchemicalPoison) }),
213
+ AlchemicalPactGiftPoison: DB.EnumCase({
214
+ comment: "An alchemical poison that is part of a pact gift and cannot be obtained or brewed by means typical for an alchemical poison.",
215
+ type: null,
216
+ }),
213
217
  MineralPoison: DB.EnumCase({ type: DB.IncludeIdentifier(MineralPoison) }),
214
218
  PlantPoison: DB.EnumCase({ type: DB.IncludeIdentifier(PlantPoison) }),
215
219
  DemonicPoison: DB.EnumCase({ type: DB.IncludeIdentifier(DemonicPoison) }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optolith-database-schema",
3
- "version": "0.34.6",
3
+ "version": "0.34.8",
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",