optolith-database-schema 0.36.0 → 0.36.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,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.36.1](https://github.com/elyukai/optolith-database-schema/compare/v0.36.0...v0.36.1) (2026-03-13)
6
+
7
+
8
+ ### Features
9
+
10
+ * cost map style ([127cc6c](https://github.com/elyukai/optolith-database-schema/commit/127cc6cc48ea1c77ab4e31eb424ddc92c2cb248e))
11
+
5
12
  ## [0.36.0](https://github.com/elyukai/optolith-database-schema/compare/v0.35.0...v0.36.0) (2026-03-13)
6
13
 
7
14
 
package/gen/types.d.ts CHANGED
@@ -325,6 +325,7 @@ export type EnumMap = {
325
325
  MagicalSignCost: MagicalSignCost
326
326
  MagicalTraditionPrerequisiteRestriction: MagicalTraditionPrerequisiteRestriction
327
327
  MagicCommonProfessionConstraint: MagicCommonProfessionConstraint
328
+ MapStyle: MapStyle
328
329
  MathOperation: MathOperation<unknown>
329
330
  MaximumIndefiniteCurseDuration: MaximumIndefiniteCurseDuration
330
331
  MaximumIndefiniteDominationRitualDuration: MaximumIndefiniteDominationRitualDuration
@@ -5839,6 +5840,11 @@ export interface OneTimeCostMap {
5839
5840
  */
5840
5841
  options: OneTimeCostMapOption[]
5841
5842
 
5843
+ /**
5844
+ * The style of the generated string. It may either be displayed in a compressed way (e.g. `1/2/3 AE for a small/medium/large object`) or in a verbose way (e.g. `1 AE for a small object, 2 AE for a medium object, 3 AE for a large object`). The default is `compressed`.
5845
+ */
5846
+ style?: MapStyle
5847
+
5842
5848
  /**
5843
5849
  * All translations for the entry, identified by IETF language tag (BCP47).
5844
5850
  */
@@ -5895,6 +5901,17 @@ export interface OneTimeCostMapOptionTranslation {
5895
5901
  label_standalone?: ResponsiveTextOptional
5896
5902
  }
5897
5903
 
5904
+ /**
5905
+ * The style of the generated string. It may either be displayed in a compressed way (e.g. `1/2/3 AE for a small/medium/large object`) or in a verbose way (e.g. `1 AE for a small object, 2 AE for a medium object, 3 AE for a large object`).
5906
+ */
5907
+ export type MapStyle =
5908
+ | {
5909
+ kind: "Compressed"
5910
+ }
5911
+ | {
5912
+ kind: "Verbose"
5913
+ }
5914
+
5898
5915
  export interface Range {
5899
5916
  /**
5900
5917
  * The range value.
@@ -149,6 +149,10 @@ export declare const Ceremony: DB.Entity<"Ceremony", {
149
149
  }>, []>>, false>;
150
150
  }>, false>;
151
151
  }>, []>>>, true>;
152
+ style: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"MapStyle", {
153
+ Compressed: DB.EnumCase<null>;
154
+ Verbose: DB.EnumCase<null>;
155
+ }, []>>, false>;
152
156
  translations: DB.MemberDecl<DB.NestedEntityMap<"OneTimeCostMapTranslation", {
153
157
  list_prepend: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
154
158
  full: DB.MemberDecl<DB.String, true>;
@@ -149,6 +149,10 @@ export declare const LiturgicalChant: DB.Entity<"LiturgicalChant", {
149
149
  }>, []>>, false>;
150
150
  }>, false>;
151
151
  }>, []>>>, true>;
152
+ style: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"MapStyle", {
153
+ Compressed: DB.EnumCase<null>;
154
+ Verbose: DB.EnumCase<null>;
155
+ }, []>>, false>;
152
156
  translations: DB.MemberDecl<DB.NestedEntityMap<"OneTimeCostMapTranslation", {
153
157
  list_prepend: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
154
158
  full: DB.MemberDecl<DB.String, true>;
@@ -149,6 +149,10 @@ export declare const Ritual: DB.Entity<"Ritual", {
149
149
  }>, []>>, false>;
150
150
  }>, false>;
151
151
  }>, []>>>, true>;
152
+ style: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"MapStyle", {
153
+ Compressed: DB.EnumCase<null>;
154
+ Verbose: DB.EnumCase<null>;
155
+ }, []>>, false>;
152
156
  translations: DB.MemberDecl<DB.NestedEntityMap<"OneTimeCostMapTranslation", {
153
157
  list_prepend: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
154
158
  full: DB.MemberDecl<DB.String, true>;
@@ -149,6 +149,10 @@ export declare const Spell: DB.Entity<"Spell", {
149
149
  }>, []>>, false>;
150
150
  }>, false>;
151
151
  }>, []>>>, true>;
152
+ style: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"MapStyle", {
153
+ Compressed: DB.EnumCase<null>;
154
+ Verbose: DB.EnumCase<null>;
155
+ }, []>>, false>;
152
156
  translations: DB.MemberDecl<DB.NestedEntityMap<"OneTimeCostMapTranslation", {
153
157
  list_prepend: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
154
158
  full: DB.MemberDecl<DB.String, true>;
@@ -140,6 +140,10 @@ export declare const OneTimePerformanceParameters: DB.TypeAlias<"OneTimePerforma
140
140
  }>, []>>, false>;
141
141
  }>, false>;
142
142
  }>, []>>>, true>;
143
+ style: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"MapStyle", {
144
+ Compressed: DB.EnumCase<null>;
145
+ Verbose: DB.EnumCase<null>;
146
+ }, []>>, false>;
143
147
  translations: DB.MemberDecl<DB.NestedEntityMap<"OneTimeCostMapTranslation", {
144
148
  list_prepend: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
145
149
  full: DB.MemberDecl<DB.String, true>;
@@ -442,6 +446,10 @@ export declare const FastPerformanceParameters: DB.Enum<"FastPerformanceParamete
442
446
  }>, []>>, false>;
443
447
  }>, false>;
444
448
  }>, []>>>, true>;
449
+ style: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"MapStyle", {
450
+ Compressed: DB.EnumCase<null>;
451
+ Verbose: DB.EnumCase<null>;
452
+ }, []>>, false>;
445
453
  translations: DB.MemberDecl<DB.NestedEntityMap<"OneTimeCostMapTranslation", {
446
454
  list_prepend: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
447
455
  full: DB.MemberDecl<DB.String, true>;
@@ -893,6 +901,10 @@ export declare const SlowPerformanceParameters: DB.Enum<"SlowPerformanceParamete
893
901
  }>, []>>, false>;
894
902
  }>, false>;
895
903
  }>, []>>>, true>;
904
+ style: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"MapStyle", {
905
+ Compressed: DB.EnumCase<null>;
906
+ Verbose: DB.EnumCase<null>;
907
+ }, []>>, false>;
896
908
  translations: DB.MemberDecl<DB.NestedEntityMap<"OneTimeCostMapTranslation", {
897
909
  list_prepend: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
898
910
  full: DB.MemberDecl<DB.String, true>;
@@ -135,6 +135,10 @@ export declare const OneTimeCost: DB.Enum<"OneTimeCost", {
135
135
  }>, []>>, false>;
136
136
  }>, false>;
137
137
  }>, []>>>, true>;
138
+ style: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"MapStyle", {
139
+ Compressed: DB.EnumCase<null>;
140
+ Verbose: DB.EnumCase<null>;
141
+ }, []>>, false>;
138
142
  translations: DB.MemberDecl<DB.NestedEntityMap<"OneTimeCostMapTranslation", {
139
143
  list_prepend: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
140
144
  full: DB.MemberDecl<DB.String, true>;
@@ -183,6 +187,10 @@ export declare const OneTimeCostMap: DB.TypeAlias<"OneTimeCostMap", DB.Object<{
183
187
  }>, []>>, false>;
184
188
  }>, false>;
185
189
  }>, []>>>, true>;
190
+ style: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"MapStyle", {
191
+ Compressed: DB.EnumCase<null>;
192
+ Verbose: DB.EnumCase<null>;
193
+ }, []>>, false>;
186
194
  translations: DB.MemberDecl<DB.NestedEntityMap<"OneTimeCostMapTranslation", {
187
195
  list_prepend: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
188
196
  full: DB.MemberDecl<DB.String, true>;
@@ -198,6 +206,10 @@ export declare const OneTimeCostMap: DB.TypeAlias<"OneTimeCostMap", DB.Object<{
198
206
  }>, []>>, false>;
199
207
  }>, false>;
200
208
  }>, []>;
209
+ export declare const MapStyle: DB.Enum<"MapStyle", {
210
+ Compressed: DB.EnumCase<null>;
211
+ Verbose: DB.EnumCase<null>;
212
+ }, []>;
201
213
  export declare const SustainedCost: DB.Enum<"SustainedCost", {
202
214
  Modifiable: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ModifiableSustainedCost", DB.Object<{
203
215
  initial_modification_level: DB.MemberDecl<DB.ReferenceIdentifier, true>;
@@ -123,6 +123,10 @@ This will generate the exact same string as seen above – given it is set for a
123
123
  minItems: 2,
124
124
  }),
125
125
  }),
126
+ style: DB.Optional({
127
+ comment: "The style of the generated string. It may either be displayed in a compressed way (e.g. `1/2/3 AE for a small/medium/large object`) or in a verbose way (e.g. `1 AE for a small object, 2 AE for a medium object, 3 AE for a large object`). The default is `compressed`.",
128
+ type: DB.IncludeIdentifier(MapStyle),
129
+ }),
126
130
  translations: NestedTranslationMap(DB.Optional, "OneTimeCostMap", DB.Object({
127
131
  list_prepend: DB.Optional({
128
132
  comment: "Place a string between the `for` and the grouped map option labels.",
@@ -162,6 +166,14 @@ const OneTimeCostMapOption = DB.TypeAlias(import.meta.url, {
162
166
  })),
163
167
  }),
164
168
  });
169
+ export const MapStyle = DB.Enum(import.meta.url, {
170
+ name: "MapStyle",
171
+ comment: "The style of the generated string. It may either be displayed in a compressed way (e.g. `1/2/3 AE for a small/medium/large object`) or in a verbose way (e.g. `1 AE for a small object, 2 AE for a medium object, 3 AE for a large object`).",
172
+ values: () => ({
173
+ Compressed: DB.EnumCase({ type: null }),
174
+ Verbose: DB.EnumCase({ type: null }),
175
+ }),
176
+ });
165
177
  export const SustainedCost = DB.Enum(import.meta.url, {
166
178
  name: "SustainedCost",
167
179
  values: () => ({
@@ -28,6 +28,10 @@ export declare const GeodeRitual: DB.Entity<"GeodeRitual", {
28
28
  }>, []>>, false>;
29
29
  }>, false>;
30
30
  }>, []>>>, true>;
31
+ style: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"MapStyle", {
32
+ Compressed: DB.EnumCase<null>;
33
+ Verbose: DB.EnumCase<null>;
34
+ }, []>>, false>;
31
35
  translations: DB.MemberDecl<DB.NestedEntityMap<"OneTimeCostMapTranslation", {
32
36
  list_prepend: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
33
37
  full: DB.MemberDecl<DB.String, true>;
@@ -148,6 +148,10 @@ export declare const ZibiljaRitual: DB.Entity<"ZibiljaRitual", {
148
148
  }>, []>>, false>;
149
149
  }>, false>;
150
150
  }>, []>>>, true>;
151
+ style: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"MapStyle", {
152
+ Compressed: DB.EnumCase<null>;
153
+ Verbose: DB.EnumCase<null>;
154
+ }, []>>, false>;
151
155
  translations: DB.MemberDecl<DB.NestedEntityMap<"OneTimeCostMapTranslation", {
152
156
  list_prepend: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
153
157
  full: DB.MemberDecl<DB.String, true>;
@@ -47,6 +47,10 @@ export declare const MagicalSign: DB.Entity<"MagicalSign", {
47
47
  }>, []>>, false>;
48
48
  }>, false>;
49
49
  }>, []>>>, true>;
50
+ style: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"MapStyle", {
51
+ Compressed: DB.EnumCase<null>;
52
+ Verbose: DB.EnumCase<null>;
53
+ }, []>>, false>;
50
54
  translations: DB.MemberDecl<DB.NestedEntityMap<"OneTimeCostMapTranslation", {
51
55
  list_prepend: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
52
56
  full: DB.MemberDecl<DB.String, true>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optolith-database-schema",
3
- "version": "0.36.0",
3
+ "version": "0.36.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",