@optolith/database-schema 0.47.1 → 0.47.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.
Files changed (55) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/gen/types.d.ts +216 -96
  3. package/lib/types/Profession.js +1 -1
  4. package/lib/types/Race.d.ts +100 -52
  5. package/lib/types/Race.js +13 -4
  6. package/lib/types/Skill.d.ts +123 -0
  7. package/lib/types/Skill.js +2 -1
  8. package/lib/types/_ActivatableNonMundane.d.ts +4 -0
  9. package/lib/types/_ActivatableNonMundane.js +4 -0
  10. package/lib/types/magicalActions/AnimistPower.d.ts +13 -0
  11. package/lib/types/magicalActions/AnimistPower.js +5 -0
  12. package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.d.ts +4 -0
  13. package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.js +5 -18
  14. package/lib/types/traditionArtifacts/AttireEnchantment.d.ts +4 -0
  15. package/lib/types/traditionArtifacts/AttireEnchantment.js +5 -18
  16. package/lib/types/traditionArtifacts/Beutelzauber.d.ts +4 -0
  17. package/lib/types/traditionArtifacts/Beutelzauber.js +5 -18
  18. package/lib/types/traditionArtifacts/BowlEnchantment.d.ts +4 -0
  19. package/lib/types/traditionArtifacts/BowlEnchantment.js +5 -18
  20. package/lib/types/traditionArtifacts/CauldronEnchantment.d.ts +4 -0
  21. package/lib/types/traditionArtifacts/CauldronEnchantment.js +5 -18
  22. package/lib/types/traditionArtifacts/ChronicleEnchantment.d.ts +4 -0
  23. package/lib/types/traditionArtifacts/ChronicleEnchantment.js +5 -18
  24. package/lib/types/traditionArtifacts/DaggerRitual.d.ts +4 -0
  25. package/lib/types/traditionArtifacts/DaggerRitual.js +5 -18
  26. package/lib/types/traditionArtifacts/FoolsHatEnchantment.d.ts +4 -0
  27. package/lib/types/traditionArtifacts/FoolsHatEnchantment.js +5 -18
  28. package/lib/types/traditionArtifacts/Haubenzauber.d.ts +4 -0
  29. package/lib/types/traditionArtifacts/Haubenzauber.js +5 -18
  30. package/lib/types/traditionArtifacts/InstrumentEnchantment.d.ts +4 -0
  31. package/lib/types/traditionArtifacts/InstrumentEnchantment.js +5 -18
  32. package/lib/types/traditionArtifacts/Krallenkettenzauber.d.ts +4 -0
  33. package/lib/types/traditionArtifacts/Krallenkettenzauber.js +5 -18
  34. package/lib/types/traditionArtifacts/Kristallkugelzauber.d.ts +4 -0
  35. package/lib/types/traditionArtifacts/Kristallkugelzauber.js +5 -18
  36. package/lib/types/traditionArtifacts/OrbEnchantment.d.ts +4 -0
  37. package/lib/types/traditionArtifacts/OrbEnchantment.js +5 -18
  38. package/lib/types/traditionArtifacts/RingEnchantment.d.ts +4 -0
  39. package/lib/types/traditionArtifacts/RingEnchantment.js +5 -18
  40. package/lib/types/traditionArtifacts/SickleRitual.d.ts +4 -0
  41. package/lib/types/traditionArtifacts/SickleRitual.js +5 -18
  42. package/lib/types/traditionArtifacts/SpellSwordEnchantment.d.ts +4 -0
  43. package/lib/types/traditionArtifacts/SpellSwordEnchantment.js +5 -18
  44. package/lib/types/traditionArtifacts/StaffEnchantment.js +5 -23
  45. package/lib/types/traditionArtifacts/ToyEnchantment.d.ts +4 -0
  46. package/lib/types/traditionArtifacts/ToyEnchantment.js +5 -18
  47. package/lib/types/traditionArtifacts/Trinkhornzauber.d.ts +4 -0
  48. package/lib/types/traditionArtifacts/Trinkhornzauber.js +5 -18
  49. package/lib/types/traditionArtifacts/WandEnchantment.d.ts +4 -0
  50. package/lib/types/traditionArtifacts/WandEnchantment.js +5 -18
  51. package/lib/types/traditionArtifacts/WeaponEnchantment.d.ts +4 -0
  52. package/lib/types/traditionArtifacts/WeaponEnchantment.js +5 -18
  53. package/lib/types/traditionArtifacts/_shared.d.ts +19 -0
  54. package/lib/types/traditionArtifacts/_shared.js +20 -0
  55. package/package.json +1 -1
@@ -1,13 +1,12 @@
1
1
  import * as DB from "tsondb/schema/dsl";
2
- import { effect, levels, maximum, name, name_in_library } from "../_Activatable.js";
3
- import { ap_value, ap_value_append, ap_value_l10n } from "../_ActivatableAdventurePointsValue.js";
2
+ import { levels, maximum } from "../_Activatable.js";
3
+ import { ap_value } from "../_ActivatableAdventurePointsValue.js";
4
4
  import { nameBuilderRules } from "../_ActivatableNames.js";
5
- import { aeCost, bindingCost, cost, property, volume, volume_l10n, } from "../_ActivatableNonMundane.js";
5
+ import { cost, property, volume } from "../_ActivatableNonMundane.js";
6
6
  import { explicit_select_options, select_options } from "../_ActivatableSelectOptions.js";
7
7
  import { GeneralPrerequisites } from "../_Prerequisite.js";
8
- import { NestedTranslationMap } from "../Locale.js";
9
- import { Errata } from "../source/_Erratum.js";
10
8
  import { src } from "../source/_PublicationRef.js";
9
+ import { translations } from "./_shared.js";
11
10
  export const SickleRitual = DB.Entity(import.meta.url, {
12
11
  name: "SickleRitual",
13
12
  namePlural: "SickleRituals",
@@ -25,19 +24,7 @@ export const SickleRitual = DB.Entity(import.meta.url, {
25
24
  property: property(),
26
25
  ap_value,
27
26
  src,
28
- translations: NestedTranslationMap(DB.Required, "SickleRitual", DB.Object({
29
- name,
30
- name_in_library,
31
- effect,
32
- bindingCost,
33
- aeCost,
34
- volume: volume_l10n,
35
- ap_value_append,
36
- ap_value: ap_value_l10n,
37
- errata: DB.Optional({
38
- type: DB.IncludeIdentifier(Errata),
39
- }),
40
- })),
27
+ translations: translations("SickleRitual"),
41
28
  }),
42
29
  instanceDisplayName: {},
43
30
  uniqueConstraints: [
@@ -1269,6 +1269,10 @@ export declare const SpellSwordEnchantment: DB.Entity<"SpellSwordEnchantment", {
1269
1269
  name: DB.MemberDecl<DB.String, true>;
1270
1270
  name_in_library: DB.MemberDecl<DB.String, false>;
1271
1271
  effect: DB.MemberDecl<DB.String, true>;
1272
+ cost_note: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
1273
+ full: DB.MemberDecl<DB.String, true>;
1274
+ compressed: DB.MemberDecl<DB.String, false>;
1275
+ }>, []>>, false>;
1272
1276
  bindingCost: DB.MemberDecl<DB.String, false>;
1273
1277
  aeCost: DB.MemberDecl<DB.String, false>;
1274
1278
  volume: DB.MemberDecl<DB.String, false>;
@@ -1,13 +1,12 @@
1
1
  import * as DB from "tsondb/schema/dsl";
2
- import { effect, levels, maximum, name, name_in_library } from "../_Activatable.js";
3
- import { ap_value, ap_value_append, ap_value_l10n } from "../_ActivatableAdventurePointsValue.js";
2
+ import { levels, maximum } from "../_Activatable.js";
3
+ import { ap_value } from "../_ActivatableAdventurePointsValue.js";
4
4
  import { nameBuilderRules } from "../_ActivatableNames.js";
5
- import { aeCost, bindingCost, cost, property, volume, volume_l10n, } from "../_ActivatableNonMundane.js";
5
+ import { cost, property, volume } from "../_ActivatableNonMundane.js";
6
6
  import { explicit_select_options, select_options } from "../_ActivatableSelectOptions.js";
7
7
  import { GeneralPrerequisites } from "../_Prerequisite.js";
8
- import { NestedTranslationMap } from "../Locale.js";
9
- import { Errata } from "../source/_Erratum.js";
10
8
  import { src } from "../source/_PublicationRef.js";
9
+ import { translations } from "./_shared.js";
11
10
  export const SpellSwordEnchantment = DB.Entity(import.meta.url, {
12
11
  name: "SpellSwordEnchantment",
13
12
  namePlural: "SpellSwordEnchantments",
@@ -25,19 +24,7 @@ export const SpellSwordEnchantment = DB.Entity(import.meta.url, {
25
24
  property: property(),
26
25
  ap_value,
27
26
  src,
28
- translations: NestedTranslationMap(DB.Required, "SpellSwordEnchantment", DB.Object({
29
- name,
30
- name_in_library,
31
- effect,
32
- bindingCost,
33
- aeCost,
34
- volume: volume_l10n,
35
- ap_value_append,
36
- ap_value: ap_value_l10n,
37
- errata: DB.Optional({
38
- type: DB.IncludeIdentifier(Errata),
39
- }),
40
- })),
27
+ translations: translations("SpellSwordEnchantment"),
41
28
  }),
42
29
  instanceDisplayName: {},
43
30
  uniqueConstraints: [
@@ -1,14 +1,12 @@
1
1
  import * as DB from "tsondb/schema/dsl";
2
- import { effect, levels, maximum, name, name_in_library } from "../_Activatable.js";
3
- import { ap_value, ap_value_append, ap_value_l10n } from "../_ActivatableAdventurePointsValue.js";
2
+ import { levels, maximum } from "../_Activatable.js";
3
+ import { ap_value } from "../_ActivatableAdventurePointsValue.js";
4
4
  import { nameBuilderRules } from "../_ActivatableNames.js";
5
- import { aeCost, bindingCost, cost, property, volume, volume_l10n, } from "../_ActivatableNonMundane.js";
5
+ import { cost, property, volume } from "../_ActivatableNonMundane.js";
6
6
  import { explicit_select_options, select_options } from "../_ActivatableSelectOptions.js";
7
7
  import { GeneralPrerequisites } from "../_Prerequisite.js";
8
- import { ResponsiveTextOptional } from "../_ResponsiveText.js";
9
- import { NestedTranslationMap } from "../Locale.js";
10
- import { Errata } from "../source/_Erratum.js";
11
8
  import { src } from "../source/_PublicationRef.js";
9
+ import { translations } from "./_shared.js";
12
10
  export const StaffEnchantment = DB.Entity(import.meta.url, {
13
11
  name: "StaffEnchantment",
14
12
  namePlural: "StaffEnchantments",
@@ -26,23 +24,7 @@ export const StaffEnchantment = DB.Entity(import.meta.url, {
26
24
  property: property(),
27
25
  ap_value,
28
26
  src,
29
- translations: NestedTranslationMap(DB.Required, "StaffEnchantment", DB.Object({
30
- name,
31
- name_in_library,
32
- effect,
33
- cost_note: DB.Optional({
34
- comment: "A note, appended to the generated cost string in parenthesis.",
35
- type: DB.IncludeIdentifier(ResponsiveTextOptional),
36
- }),
37
- bindingCost,
38
- aeCost,
39
- volume: volume_l10n,
40
- ap_value_append,
41
- ap_value: ap_value_l10n,
42
- errata: DB.Optional({
43
- type: DB.IncludeIdentifier(Errata),
44
- }),
45
- })),
27
+ translations: translations("StaffEnchantment"),
46
28
  }),
47
29
  instanceDisplayName: {},
48
30
  uniqueConstraints: [
@@ -1269,6 +1269,10 @@ export declare const ToyEnchantment: DB.Entity<"ToyEnchantment", {
1269
1269
  name: DB.MemberDecl<DB.String, true>;
1270
1270
  name_in_library: DB.MemberDecl<DB.String, false>;
1271
1271
  effect: DB.MemberDecl<DB.String, true>;
1272
+ cost_note: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
1273
+ full: DB.MemberDecl<DB.String, true>;
1274
+ compressed: DB.MemberDecl<DB.String, false>;
1275
+ }>, []>>, false>;
1272
1276
  bindingCost: DB.MemberDecl<DB.String, false>;
1273
1277
  aeCost: DB.MemberDecl<DB.String, false>;
1274
1278
  volume: DB.MemberDecl<DB.String, false>;
@@ -1,13 +1,12 @@
1
1
  import * as DB from "tsondb/schema/dsl";
2
- import { effect, levels, maximum, name, name_in_library } from "../_Activatable.js";
3
- import { ap_value, ap_value_append, ap_value_l10n } from "../_ActivatableAdventurePointsValue.js";
2
+ import { levels, maximum } from "../_Activatable.js";
3
+ import { ap_value } from "../_ActivatableAdventurePointsValue.js";
4
4
  import { nameBuilderRules } from "../_ActivatableNames.js";
5
- import { aeCost, bindingCost, cost, property, volume, volume_l10n, } from "../_ActivatableNonMundane.js";
5
+ import { cost, property, volume } from "../_ActivatableNonMundane.js";
6
6
  import { explicit_select_options, select_options } from "../_ActivatableSelectOptions.js";
7
7
  import { GeneralPrerequisites } from "../_Prerequisite.js";
8
- import { NestedTranslationMap } from "../Locale.js";
9
- import { Errata } from "../source/_Erratum.js";
10
8
  import { src } from "../source/_PublicationRef.js";
9
+ import { translations } from "./_shared.js";
11
10
  export const ToyEnchantment = DB.Entity(import.meta.url, {
12
11
  name: "ToyEnchantment",
13
12
  namePlural: "ToyEnchantments",
@@ -25,19 +24,7 @@ export const ToyEnchantment = DB.Entity(import.meta.url, {
25
24
  property: property(),
26
25
  ap_value,
27
26
  src,
28
- translations: NestedTranslationMap(DB.Required, "ToyEnchantment", DB.Object({
29
- name,
30
- name_in_library,
31
- effect,
32
- bindingCost,
33
- aeCost,
34
- volume: volume_l10n,
35
- ap_value_append,
36
- ap_value: ap_value_l10n,
37
- errata: DB.Optional({
38
- type: DB.IncludeIdentifier(Errata),
39
- }),
40
- })),
27
+ translations: translations("ToyEnchantment"),
41
28
  }),
42
29
  instanceDisplayName: {},
43
30
  uniqueConstraints: [
@@ -1269,6 +1269,10 @@ export declare const Trinkhornzauber: DB.Entity<"Trinkhornzauber", {
1269
1269
  name: DB.MemberDecl<DB.String, true>;
1270
1270
  name_in_library: DB.MemberDecl<DB.String, false>;
1271
1271
  effect: DB.MemberDecl<DB.String, true>;
1272
+ cost_note: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
1273
+ full: DB.MemberDecl<DB.String, true>;
1274
+ compressed: DB.MemberDecl<DB.String, false>;
1275
+ }>, []>>, false>;
1272
1276
  bindingCost: DB.MemberDecl<DB.String, false>;
1273
1277
  aeCost: DB.MemberDecl<DB.String, false>;
1274
1278
  volume: DB.MemberDecl<DB.String, false>;
@@ -1,13 +1,12 @@
1
1
  import * as DB from "tsondb/schema/dsl";
2
- import { effect, levels, maximum, name, name_in_library } from "../_Activatable.js";
3
- import { ap_value, ap_value_append, ap_value_l10n } from "../_ActivatableAdventurePointsValue.js";
2
+ import { levels, maximum } from "../_Activatable.js";
3
+ import { ap_value } from "../_ActivatableAdventurePointsValue.js";
4
4
  import { nameBuilderRules } from "../_ActivatableNames.js";
5
- import { aeCost, bindingCost, cost, property, volume, volume_l10n, } from "../_ActivatableNonMundane.js";
5
+ import { cost, property, volume } from "../_ActivatableNonMundane.js";
6
6
  import { explicit_select_options, select_options } from "../_ActivatableSelectOptions.js";
7
7
  import { GeneralPrerequisites } from "../_Prerequisite.js";
8
- import { NestedTranslationMap } from "../Locale.js";
9
- import { Errata } from "../source/_Erratum.js";
10
8
  import { src } from "../source/_PublicationRef.js";
9
+ import { translations } from "./_shared.js";
11
10
  export const Trinkhornzauber = DB.Entity(import.meta.url, {
12
11
  name: "Trinkhornzauber",
13
12
  namePlural: "Trinkhornzauber",
@@ -25,19 +24,7 @@ export const Trinkhornzauber = DB.Entity(import.meta.url, {
25
24
  property: property(),
26
25
  ap_value,
27
26
  src,
28
- translations: NestedTranslationMap(DB.Required, "Trinkhornzauber", DB.Object({
29
- name,
30
- name_in_library,
31
- effect,
32
- bindingCost,
33
- aeCost,
34
- volume: volume_l10n,
35
- ap_value_append,
36
- ap_value: ap_value_l10n,
37
- errata: DB.Optional({
38
- type: DB.IncludeIdentifier(Errata),
39
- }),
40
- })),
27
+ translations: translations("Trinkhornzauber"),
41
28
  }),
42
29
  instanceDisplayName: {},
43
30
  uniqueConstraints: [
@@ -1218,6 +1218,10 @@ export declare const WandEnchantment: DB.Entity<"WandEnchantment", {
1218
1218
  name: DB.MemberDecl<DB.String, true>;
1219
1219
  name_in_library: DB.MemberDecl<DB.String, false>;
1220
1220
  effect: DB.MemberDecl<DB.String, true>;
1221
+ cost_note: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
1222
+ full: DB.MemberDecl<DB.String, true>;
1223
+ compressed: DB.MemberDecl<DB.String, false>;
1224
+ }>, []>>, false>;
1221
1225
  bindingCost: DB.MemberDecl<DB.String, false>;
1222
1226
  aeCost: DB.MemberDecl<DB.String, false>;
1223
1227
  volume: DB.MemberDecl<DB.String, false>;
@@ -1,13 +1,12 @@
1
1
  import * as DB from "tsondb/schema/dsl";
2
- import { effect, levels, maximum, name, name_in_library } from "../_Activatable.js";
3
- import { ap_value, ap_value_append, ap_value_l10n } from "../_ActivatableAdventurePointsValue.js";
2
+ import { levels, maximum } from "../_Activatable.js";
3
+ import { ap_value } from "../_ActivatableAdventurePointsValue.js";
4
4
  import { nameBuilderRules } from "../_ActivatableNames.js";
5
- import { aeCost, bindingCost, cost, property, volume_l10n } from "../_ActivatableNonMundane.js";
5
+ import { cost, property } from "../_ActivatableNonMundane.js";
6
6
  import { explicit_select_options, select_options } from "../_ActivatableSelectOptions.js";
7
7
  import { GeneralPrerequisites } from "../_Prerequisite.js";
8
- import { NestedTranslationMap } from "../Locale.js";
9
- import { Errata } from "../source/_Erratum.js";
10
8
  import { src } from "../source/_PublicationRef.js";
9
+ import { translations } from "./_shared.js";
11
10
  export const WandEnchantment = DB.Entity(import.meta.url, {
12
11
  name: "WandEnchantment",
13
12
  namePlural: "WandEnchantments",
@@ -24,19 +23,7 @@ export const WandEnchantment = DB.Entity(import.meta.url, {
24
23
  property: property(),
25
24
  ap_value,
26
25
  src,
27
- translations: NestedTranslationMap(DB.Required, "WandEnchantment", DB.Object({
28
- name,
29
- name_in_library,
30
- effect,
31
- bindingCost,
32
- aeCost,
33
- volume: volume_l10n,
34
- ap_value_append,
35
- ap_value: ap_value_l10n,
36
- errata: DB.Optional({
37
- type: DB.IncludeIdentifier(Errata),
38
- }),
39
- })),
26
+ translations: translations("WandEnchantment"),
40
27
  }),
41
28
  instanceDisplayName: {},
42
29
  uniqueConstraints: [
@@ -1269,6 +1269,10 @@ export declare const WeaponEnchantment: DB.Entity<"WeaponEnchantment", {
1269
1269
  name: DB.MemberDecl<DB.String, true>;
1270
1270
  name_in_library: DB.MemberDecl<DB.String, false>;
1271
1271
  effect: DB.MemberDecl<DB.String, true>;
1272
+ cost_note: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
1273
+ full: DB.MemberDecl<DB.String, true>;
1274
+ compressed: DB.MemberDecl<DB.String, false>;
1275
+ }>, []>>, false>;
1272
1276
  bindingCost: DB.MemberDecl<DB.String, false>;
1273
1277
  aeCost: DB.MemberDecl<DB.String, false>;
1274
1278
  volume: DB.MemberDecl<DB.String, false>;
@@ -1,13 +1,12 @@
1
1
  import * as DB from "tsondb/schema/dsl";
2
- import { effect, levels, maximum, name, name_in_library } from "../_Activatable.js";
3
- import { ap_value, ap_value_append, ap_value_l10n } from "../_ActivatableAdventurePointsValue.js";
2
+ import { levels, maximum } from "../_Activatable.js";
3
+ import { ap_value } from "../_ActivatableAdventurePointsValue.js";
4
4
  import { nameBuilderRules } from "../_ActivatableNames.js";
5
- import { aeCost, bindingCost, cost, property, volume, volume_l10n, } from "../_ActivatableNonMundane.js";
5
+ import { cost, property, volume } from "../_ActivatableNonMundane.js";
6
6
  import { explicit_select_options, select_options } from "../_ActivatableSelectOptions.js";
7
7
  import { GeneralPrerequisites } from "../_Prerequisite.js";
8
- import { NestedTranslationMap } from "../Locale.js";
9
- import { Errata } from "../source/_Erratum.js";
10
8
  import { src } from "../source/_PublicationRef.js";
9
+ import { translations } from "./_shared.js";
11
10
  export const WeaponEnchantment = DB.Entity(import.meta.url, {
12
11
  name: "WeaponEnchantment",
13
12
  namePlural: "WeaponEnchantments",
@@ -25,19 +24,7 @@ export const WeaponEnchantment = DB.Entity(import.meta.url, {
25
24
  property: property(),
26
25
  ap_value,
27
26
  src,
28
- translations: NestedTranslationMap(DB.Required, "WeaponEnchantment", DB.Object({
29
- name,
30
- name_in_library,
31
- effect,
32
- bindingCost,
33
- aeCost,
34
- volume: volume_l10n,
35
- ap_value_append,
36
- ap_value: ap_value_l10n,
37
- errata: DB.Optional({
38
- type: DB.IncludeIdentifier(Errata),
39
- }),
40
- })),
27
+ translations: translations("WeaponEnchantment"),
41
28
  }),
42
29
  instanceDisplayName: {},
43
30
  uniqueConstraints: [
@@ -0,0 +1,19 @@
1
+ import * as DB from "tsondb/schema/dsl";
2
+ export declare const translations: <T extends string>(entity: T) => DB.MemberDecl<DB.NestedEntityMap<`${T}Translation`, {
3
+ name: DB.MemberDecl<DB.String, true>;
4
+ name_in_library: DB.MemberDecl<DB.String, false>;
5
+ effect: DB.MemberDecl<DB.String, true>;
6
+ cost_note: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextOptional", DB.Object<{
7
+ full: DB.MemberDecl<DB.String, true>;
8
+ compressed: DB.MemberDecl<DB.String, false>;
9
+ }>, []>>, false>;
10
+ bindingCost: DB.MemberDecl<DB.String, false>;
11
+ aeCost: DB.MemberDecl<DB.String, false>;
12
+ volume: DB.MemberDecl<DB.String, false>;
13
+ ap_value_append: DB.MemberDecl<DB.String, false>;
14
+ ap_value: DB.MemberDecl<DB.String, false>;
15
+ errata: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Errata", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"Erratum", DB.Object<{
16
+ date: DB.MemberDecl<DB.Date, true>;
17
+ description: DB.MemberDecl<DB.String, true>;
18
+ }>, []>>>, []>>, false>;
19
+ }>, true>;
@@ -0,0 +1,20 @@
1
+ import * as DB from "tsondb/schema/dsl";
2
+ import { NestedTranslationMap } from "../Locale.js";
3
+ import { effect, name, name_in_library } from "../_Activatable.js";
4
+ import { ap_value_append, ap_value_l10n } from "../_ActivatableAdventurePointsValue.js";
5
+ import { aeCost, bindingCost, cost_note, volume_l10n } from "../_ActivatableNonMundane.js";
6
+ import { Errata } from "../source/_Erratum.js";
7
+ export const translations = (entity) => NestedTranslationMap(DB.Required, entity, DB.Object({
8
+ name,
9
+ name_in_library,
10
+ effect,
11
+ cost_note,
12
+ bindingCost,
13
+ aeCost,
14
+ volume: volume_l10n,
15
+ ap_value_append,
16
+ ap_value: ap_value_l10n,
17
+ errata: DB.Optional({
18
+ type: DB.IncludeIdentifier(Errata),
19
+ }),
20
+ }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optolith/database-schema",
3
- "version": "0.47.1",
3
+ "version": "0.47.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",