@optolith/database-schema 0.106.1 → 0.107.1

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,22 @@
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.107.1](https://github.com/Optolith/database-schema/compare/v0.107.0...v0.107.1) (2026-10-16)
6
+
7
+ ### Features
8
+
9
+ * add trigger and type fields to magical artifacts ([e9cf0c7](https://github.com/Optolith/database-schema/commit/e9cf0c713c684e9248a8aa4d435c6739aaebcd6b))
10
+
11
+ ## [0.107.0](https://github.com/Optolith/database-schema/compare/v0.106.1...v0.107.0) (2026-10-16)
12
+
13
+ ### ⚠ BREAKING CHANGES
14
+
15
+ * optional animal care weight
16
+
17
+ ### Features
18
+
19
+ * optional animal care weight ([8b1b1a4](https://github.com/Optolith/database-schema/commit/8b1b1a4195016b6606ebae13862674b7455bc956))
20
+
5
21
  ## [0.106.1](https://github.com/Optolith/database-schema/compare/v0.106.0...v0.106.1) (2026-10-16)
6
22
 
7
23
  ### Features
package/gen/types.d.ts CHANGED
@@ -23877,7 +23877,7 @@ export interface GeneralAnimalCare {
23877
23877
  /**
23878
23878
  * The weight in kg.
23879
23879
  */
23880
- weight: Weight
23880
+ weight?: Weight
23881
23881
  }
23882
23882
 
23883
23883
  export interface AnimalFeed {
@@ -27112,6 +27112,16 @@ export interface MagicalArtifactTranslation {
27112
27112
  */
27113
27113
  cost?: string
27114
27114
 
27115
+ /**
27116
+ * How to trigger the effect of the artifact.
27117
+ */
27118
+ trigger?: string
27119
+
27120
+ /**
27121
+ * The type of artifact.
27122
+ */
27123
+ type?: string
27124
+
27115
27125
  errata?: Errata
27116
27126
  }
27117
27127
 
@@ -24,7 +24,7 @@ export declare const AnimalCare: DB.Entity<"AnimalCare", {
24
24
  }>, false>;
25
25
  }>, []>>>;
26
26
  }, []>>, true>;
27
- weight: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Weight", DB.Float, []>>, true>;
27
+ weight: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Weight", DB.Float, []>>, false>;
28
28
  }>, []>>>;
29
29
  Feed: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AnimalFeed", DB.Object<{
30
30
  cost: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"AnimalFeedCost", {
@@ -44,7 +44,7 @@ const GeneralAnimalCare = DB.TypeAlias(import.meta.url, {
44
44
  comment: "The cost in silverthalers.",
45
45
  type: DB.IncludeIdentifier(Cost),
46
46
  }),
47
- weight: DB.Required({
47
+ weight: DB.Optional({
48
48
  comment: "The weight in kg.",
49
49
  type: DB.IncludeIdentifier(Weight),
50
50
  }),
@@ -344,6 +344,8 @@ export declare const MagicalArtifact: DB.Entity<"MagicalArtifact", {
344
344
  rules: DB.MemberDecl<DB.String, false>;
345
345
  effect: DB.MemberDecl<DB.String, false>;
346
346
  cost: DB.MemberDecl<DB.String, false>;
347
+ trigger: DB.MemberDecl<DB.String, false>;
348
+ type: DB.MemberDecl<DB.String, false>;
347
349
  errata: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Errata", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"Erratum", DB.Object<{
348
350
  date: DB.MemberDecl<DB.Date, true>;
349
351
  description: DB.MemberDecl<DB.String, true>;
@@ -63,6 +63,14 @@ export const MagicalArtifact = DB.Entity(import.meta.url, {
63
63
  comment: "Cost text.",
64
64
  type: DB.String({ minLength: 1, markdown: "block" }),
65
65
  }),
66
+ trigger: DB.Optional({
67
+ comment: "How to trigger the effect of the artifact.",
68
+ type: DB.String({ minLength: 1, markdown: "block" }),
69
+ }),
70
+ type: DB.Optional({
71
+ comment: "The type of artifact.",
72
+ type: DB.String({ minLength: 1, markdown: "block" }),
73
+ }),
66
74
  errata: DB.Optional({
67
75
  type: DB.IncludeIdentifier(Errata),
68
76
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optolith/database-schema",
3
- "version": "0.106.1",
3
+ "version": "0.107.1",
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",