@optolith/database-schema 0.92.0 → 0.93.0

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 (45) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/gen/types.d.ts +34 -33
  3. package/lib/cache/activatableSelectOptions.d.ts +1 -1
  4. package/lib/cache/activatableSelectOptions.js +39 -0
  5. package/lib/types/Advantage.d.ts +3 -0
  6. package/lib/types/Disadvantage.d.ts +3 -0
  7. package/lib/types/Profession.d.ts +252 -161
  8. package/lib/types/Profession.js +18 -21
  9. package/lib/types/_ActivatableSelectOptionCategory.d.ts +3 -0
  10. package/lib/types/_ActivatableSelectOptionCategory.js +13 -1
  11. package/lib/types/_ActivatableSelectOptions.d.ts +6 -0
  12. package/lib/types/equipment/item/Poison.d.ts +0 -6
  13. package/lib/types/equipment/item/Poison.js +0 -6
  14. package/lib/types/equipment/item/Weapon.d.ts +2 -2
  15. package/lib/types/equipment/item/Weapon.js +2 -2
  16. package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +3 -0
  17. package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.d.ts +3 -0
  18. package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.d.ts +3 -0
  19. package/lib/types/specialAbility/AdvancedSkillSpecialAbility.d.ts +3 -0
  20. package/lib/types/specialAbility/AncestorGlyph.d.ts +3 -0
  21. package/lib/types/specialAbility/BlessedTradition.d.ts +3 -0
  22. package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +3 -0
  23. package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +3 -0
  24. package/lib/types/specialAbility/CombatSpecialAbility.d.ts +3 -0
  25. package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +3 -0
  26. package/lib/types/specialAbility/CommandSpecialAbility.d.ts +3 -0
  27. package/lib/types/specialAbility/FamiliarSpecialAbility.d.ts +3 -0
  28. package/lib/types/specialAbility/FatePointSexSpecialAbility.d.ts +3 -0
  29. package/lib/types/specialAbility/FatePointSpecialAbility.d.ts +3 -0
  30. package/lib/types/specialAbility/GeneralSpecialAbility.d.ts +3 -0
  31. package/lib/types/specialAbility/KarmaSpecialAbility.d.ts +3 -0
  32. package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +3 -0
  33. package/lib/types/specialAbility/LycantropicGift.d.ts +3 -0
  34. package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +3 -0
  35. package/lib/types/specialAbility/MagicalSpecialAbility.d.ts +3 -0
  36. package/lib/types/specialAbility/MagicalTradition.d.ts +3 -0
  37. package/lib/types/specialAbility/PactGift.d.ts +3 -0
  38. package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.d.ts +3 -0
  39. package/lib/types/specialAbility/Sermon.d.ts +3 -0
  40. package/lib/types/specialAbility/SexSpecialAbility.d.ts +3 -0
  41. package/lib/types/specialAbility/SikaryanDrainSpecialAbility.d.ts +3 -0
  42. package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +3 -0
  43. package/lib/types/specialAbility/VampiricGift.d.ts +3 -0
  44. package/lib/types/specialAbility/Vision.d.ts +3 -0
  45. package/package.json +1 -1
@@ -315,7 +315,7 @@ const VariantSpecialAbilityAction = DB.Enum(import.meta.url, {
315
315
  const ProfessionSpecialAbility = DB.Enum(import.meta.url, {
316
316
  name: "ProfessionSpecialAbility",
317
317
  values: () => ({
318
- Constant: DB.EnumCase({ type: DB.IncludeIdentifier(ConstantProfessionSpecialAbility) }),
318
+ Constant: DB.EnumCase({ type: DB.IncludeIdentifier(SingleProfessionSpecialAbility) }),
319
319
  Selection: DB.EnumCase({ type: DB.IncludeIdentifier(ProfessionSpecialAbilitySelection) }),
320
320
  }),
321
321
  });
@@ -323,35 +323,32 @@ const ProfessionSpecialAbilityOption = DB.Enum(import.meta.url, {
323
323
  name: "ProfessionSpecialAbilityOption",
324
324
  values: () => ({
325
325
  Identifier: DB.EnumCase({
326
- comment: "The option is defined by the profession.",
326
+ comment: "The option is a option specified in the database.",
327
327
  type: DB.IncludeIdentifier(RequirableSelectOptionIdentifier),
328
328
  }),
329
+ Text: DB.EnumCase({
330
+ comment: "The option is a text.",
331
+ type: DB.IncludeIdentifier(ProfessionSpecialAbilityTextOption),
332
+ }),
329
333
  Select: DB.EnumCase({
330
334
  comment: "The option has to be chosen when applying the profession.",
331
335
  type: null,
332
336
  }),
333
337
  }),
334
338
  });
335
- const ConstantProfessionSpecialAbility = DB.TypeAlias(import.meta.url, {
336
- name: "ConstantProfessionSpecialAbility",
339
+ const ProfessionSpecialAbilityTextOption = DB.TypeAlias(import.meta.url, {
340
+ name: "ProfessionSpecialAbilityTextOption",
337
341
  type: () => DB.Object({
338
- id: DB.Required({
339
- comment: "The identifier of the special ability to grant.",
340
- type: DB.IncludeIdentifier(ProfessionSpecialAbilityIdentifier),
341
- }),
342
- level: DB.Optional({
343
- comment: "The level of the received special ability. If not specified and the special ability has levels, level 1 is used automatically.",
344
- type: DB.Integer({ minimum: 1 }),
345
- }),
346
- options: DB.Optional({
347
- comment: "Received select options. Order is important. Typically, you only need the first array index, though.",
348
- type: DB.Array(DB.IncludeIdentifier(ProfessionSpecialAbilityOption), { minItems: 1 }),
349
- }),
342
+ translations: NestedTranslationMap(DB.Required, "ProfessionSpecialAbilityTextOption", DB.Object({
343
+ text: DB.Required({
344
+ comment: "The text of the option.",
345
+ type: DB.String({ minLength: 1 }),
346
+ }),
347
+ })),
350
348
  }),
351
- customConstraints: ({ instanceContent, getInstanceById, getAllChildInstancesForParent }) => verifyOptionsForActivatableEntry(instanceContent, getInstanceById, getAllChildInstancesForParent),
352
349
  });
353
- const ProfessionSpecialAbilitySelectionItem = DB.TypeAlias(import.meta.url, {
354
- name: "ProfessionSpecialAbilitySelectionItem",
350
+ const SingleProfessionSpecialAbility = DB.TypeAlias(import.meta.url, {
351
+ name: "SingleProfessionSpecialAbility",
355
352
  type: () => DB.Object({
356
353
  id: DB.Required({
357
354
  comment: "The identifier of the special ability to grant.",
@@ -363,7 +360,7 @@ const ProfessionSpecialAbilitySelectionItem = DB.TypeAlias(import.meta.url, {
363
360
  }),
364
361
  options: DB.Optional({
365
362
  comment: "Received select options. Order is important. Typically, you only need the first array index, though.",
366
- type: DB.Array(DB.IncludeIdentifier(RequirableSelectOptionIdentifier), { minItems: 1 }),
363
+ type: DB.Array(DB.IncludeIdentifier(ProfessionSpecialAbilityOption), { minItems: 1 }),
367
364
  }),
368
365
  }),
369
366
  customConstraints: ({ instanceContent, getInstanceById, getAllChildInstancesForParent }) => verifyOptionsForActivatableEntry(instanceContent, getInstanceById, getAllChildInstancesForParent),
@@ -373,7 +370,7 @@ const ProfessionSpecialAbilitySelection = DB.TypeAlias(import.meta.url, {
373
370
  type: () => DB.Object({
374
371
  options: DB.Required({
375
372
  comment: `The list of special abilities to choose from. Must contain at least two entries.`,
376
- type: DB.Array(DB.IncludeIdentifier(ProfessionSpecialAbilitySelectionItem), {
373
+ type: DB.Array(DB.IncludeIdentifier(SingleProfessionSpecialAbility), {
377
374
  minItems: 2,
378
375
  }),
379
376
  }),
@@ -830,6 +830,9 @@ export declare const SelectOptionCategory: DB.Enum<"SelectOptionCategory", {
830
830
  volume: DB.MemberDecl<DB.Integer, false>;
831
831
  }>, []>>>, true>;
832
832
  }>, []>>>;
833
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
834
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
835
+ }>, []>>>;
833
836
  }, []>;
834
837
  export declare const TradeSecretSelectOptionCategory: DB.Enum<"TradeSecretSelectOptionCategory", {
835
838
  Blessings: DB.EnumCase<null>;
@@ -1,5 +1,5 @@
1
1
  import * as DB from "tsondb/schema/dsl";
2
- import { CeremonyIdentifier, CloseCombatTechniqueIdentifier, ElementIdentifier, LiturgicalChantIdentifier, PropertyIdentifier, RangedCombatTechniqueIdentifier, RitualIdentifier, SkillGroupIdentifier, SkillIdentifier, SpellIdentifier, TargetCategoryIdentifier, } from "./_Identifier.js";
2
+ import { AdvantageIdentifier, CeremonyIdentifier, CloseCombatTechniqueIdentifier, ElementIdentifier, LiturgicalChantIdentifier, PropertyIdentifier, RangedCombatTechniqueIdentifier, RitualIdentifier, SkillGroupIdentifier, SkillIdentifier, SpellIdentifier, TargetCategoryIdentifier, } from "./_Identifier.js";
3
3
  import { ActivatableIdentifier, CombatTechniqueIdentifier, SkillishIdentifier, } from "./_IdentifierGroup.js";
4
4
  import { NestedTranslationMap } from "./Locale.js";
5
5
  export const SelectOptionCategory = DB.Enum(import.meta.url, {
@@ -33,6 +33,9 @@ export const SelectOptionCategory = DB.Enum(import.meta.url, {
33
33
  TargetCategories: DB.EnumCase({
34
34
  type: DB.IncludeIdentifier(TargetCategoriesSelectOptionCategory),
35
35
  }),
36
+ Advantages: DB.EnumCase({
37
+ type: DB.IncludeIdentifier(AdvantagesSelectOptionCategory),
38
+ }),
36
39
  }),
37
40
  });
38
41
  export const TradeSecretSelectOptionCategory = DB.Enum(import.meta.url, {
@@ -504,3 +507,12 @@ const SpecificTargetCategory = DB.TypeAlias(import.meta.url, {
504
507
  }),
505
508
  }),
506
509
  });
510
+ const AdvantagesSelectOptionCategory = DB.TypeAlias(import.meta.url, {
511
+ name: "AdvantagesSelectOptionCategory",
512
+ type: () => DB.Object({
513
+ dependingOn: DB.Required({
514
+ comment: "A list of advantages of which the generated advantages must depend on at least one of them each.",
515
+ type: DB.Array(AdvantageIdentifier(), { minItems: 1, uniqueItems: true }),
516
+ }),
517
+ }),
518
+ });
@@ -833,6 +833,9 @@ declare const SelectOptions: DB.TypeAlias<"SelectOptions", DB.Object<{
833
833
  volume: DB.MemberDecl<DB.Integer, false>;
834
834
  }>, []>>>, true>;
835
835
  }>, []>>>;
836
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
837
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
838
+ }>, []>>>;
836
839
  }, []>>, false>;
837
840
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
838
841
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -1696,6 +1699,9 @@ export declare const select_options: DB.MemberDecl<DB.IncludeIdentifier<[], DB.T
1696
1699
  volume: DB.MemberDecl<DB.Integer, false>;
1697
1700
  }>, []>>>, true>;
1698
1701
  }>, []>>>;
1702
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
1703
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
1704
+ }>, []>>>;
1699
1705
  }, []>>, false>;
1700
1706
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
1701
1707
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -283,9 +283,6 @@ export declare const Poison: DB.Entity<"Poison", {
283
283
  value: DB.MemberDecl<DB.Integer, true>;
284
284
  }>, []>>>;
285
285
  }, []>>, true>;
286
- translations: DB.MemberDecl<DB.NestedEntityMap<"DemonicPoisonTranslation", {
287
- note: DB.MemberDecl<DB.String, false>;
288
- }>, false>;
289
286
  }>, []>>>;
290
287
  }, []>>, true>;
291
288
  resistance: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Resistance", {
@@ -712,9 +709,6 @@ export declare const DemonicPoison: DB.TypeAlias<"DemonicPoison", DB.Object<{
712
709
  value: DB.MemberDecl<DB.Integer, true>;
713
710
  }>, []>>>;
714
711
  }, []>>, true>;
715
- translations: DB.MemberDecl<DB.NestedEntityMap<"DemonicPoisonTranslation", {
716
- note: DB.MemberDecl<DB.String, false>;
717
- }>, false>;
718
712
  }>, []>;
719
713
  export declare const QualityLevelDemonicPoisonLevel: DB.TypeAlias<"QualityLevelDemonicPoisonLevel", DB.Object<{
720
714
  source: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"QualityLevelDemonicPoisonLevelSource", {
@@ -329,12 +329,6 @@ export const DemonicPoison = DB.TypeAlias(import.meta.url, {
329
329
  comment: "The poison’s level.",
330
330
  type: DB.IncludeIdentifier(DemonicPoisonLevel),
331
331
  }),
332
- translations: NestedTranslationMap(DB.Optional, "DemonicPoison", DB.Object({
333
- note: DB.Optional({
334
- comment: "A note, if any.",
335
- type: DB.String({ minLength: 1, markdown: "block" }),
336
- }),
337
- }, { minProperties: 1 })),
338
332
  }),
339
333
  });
340
334
  const DemonicPoisonLevel = DB.Enum(import.meta.url, {
@@ -21,8 +21,8 @@ export declare const Weapon: DB.Entity<"Weapon", {
21
21
  wrap_in_text: DB.MemberDecl<DB.String, true>;
22
22
  }>, false>;
23
23
  }>, []>>>;
24
- }, []>>, true>;
25
- weight: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Weight", DB.Float, []>>, true>;
24
+ }, []>>, false>;
25
+ weight: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Weight", DB.Float, []>>, false>;
26
26
  complexity: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"Complexity", {
27
27
  Primitive: DB.EnumCase<null>;
28
28
  Simple: DB.EnumCase<null>;
@@ -11,11 +11,11 @@ export const Weapon = DB.Entity(import.meta.url, {
11
11
  name: "Weapon",
12
12
  namePlural: "Weapons",
13
13
  type: () => DB.Object({
14
- cost: DB.Required({
14
+ cost: DB.Optional({
15
15
  comment: "The cost in silverthalers.",
16
16
  type: DB.IncludeIdentifier(Cost),
17
17
  }),
18
- weight: DB.Required({
18
+ weight: DB.Optional({
19
19
  comment: "The weight in kg.",
20
20
  type: DB.IncludeIdentifier(Weight),
21
21
  }),
@@ -849,6 +849,9 @@ export declare const AdvancedCombatSpecialAbility: DB.Entity<"AdvancedCombatSpec
849
849
  volume: DB.MemberDecl<DB.Integer, false>;
850
850
  }>, []>>>, true>;
851
851
  }>, []>>>;
852
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
853
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
854
+ }>, []>>>;
852
855
  }, []>>, false>;
853
856
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
854
857
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const AdvancedKarmaSpecialAbility: DB.Entity<"AdvancedKarmaSpecia
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const AdvancedMagicalSpecialAbility: DB.Entity<"AdvancedMagicalSp
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const AdvancedSkillSpecialAbility: DB.Entity<"AdvancedSkillSpecia
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const AncestorGlyph: DB.Entity<"AncestorGlyph", {
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -833,6 +833,9 @@ export declare const BlessedTradition: DB.Entity<"BlessedTradition", {
833
833
  volume: DB.MemberDecl<DB.Integer, false>;
834
834
  }>, []>>>, true>;
835
835
  }>, []>>>;
836
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
837
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
838
+ }>, []>>>;
836
839
  }, []>>, false>;
837
840
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
838
841
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -845,6 +845,9 @@ export declare const BrawlingSpecialAbility: DB.Entity<"BrawlingSpecialAbility",
845
845
  volume: DB.MemberDecl<DB.Integer, false>;
846
846
  }>, []>>>, true>;
847
847
  }>, []>>>;
848
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
849
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
850
+ }>, []>>>;
848
851
  }, []>>, false>;
849
852
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
850
853
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -841,6 +841,9 @@ export declare const CeremonialItemSpecialAbility: DB.Entity<"CeremonialItemSpec
841
841
  volume: DB.MemberDecl<DB.Integer, false>;
842
842
  }>, []>>>, true>;
843
843
  }>, []>>>;
844
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
845
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
846
+ }>, []>>>;
844
847
  }, []>>, false>;
845
848
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
846
849
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -845,6 +845,9 @@ export declare const CombatSpecialAbility: DB.Entity<"CombatSpecialAbility", {
845
845
  volume: DB.MemberDecl<DB.Integer, false>;
846
846
  }>, []>>>, true>;
847
847
  }>, []>>>;
848
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
849
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
850
+ }>, []>>>;
848
851
  }, []>>, false>;
849
852
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
850
853
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -848,6 +848,9 @@ export declare const CombatStyleSpecialAbility: DB.Entity<"CombatStyleSpecialAbi
848
848
  volume: DB.MemberDecl<DB.Integer, false>;
849
849
  }>, []>>>, true>;
850
850
  }>, []>>>;
851
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
852
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
853
+ }>, []>>>;
851
854
  }, []>>, false>;
852
855
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
853
856
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -845,6 +845,9 @@ export declare const CommandSpecialAbility: DB.Entity<"CommandSpecialAbility", {
845
845
  volume: DB.MemberDecl<DB.Integer, false>;
846
846
  }>, []>>>, true>;
847
847
  }>, []>>>;
848
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
849
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
850
+ }>, []>>>;
848
851
  }, []>>, false>;
849
852
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
850
853
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const FamiliarSpecialAbility: DB.Entity<"FamiliarSpecialAbility",
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const FatePointSexSpecialAbility: DB.Entity<"FatePointSexSpecialA
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const FatePointSpecialAbility: DB.Entity<"FatePointSpecialAbility
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const GeneralSpecialAbility: DB.Entity<"GeneralSpecialAbility", {
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const KarmaSpecialAbility: DB.Entity<"KarmaSpecialAbility", {
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const LiturgicalStyleSpecialAbility: DB.Entity<"LiturgicalStyleSp
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const LycantropicGift: DB.Entity<"LycantropicGift", {
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const MagicStyleSpecialAbility: DB.Entity<"MagicStyleSpecialAbili
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const MagicalSpecialAbility: DB.Entity<"MagicalSpecialAbility", {
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const MagicalTradition: DB.Entity<"MagicalTradition", {
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -841,6 +841,9 @@ export declare const PactGift: DB.Entity<"PactGift", {
841
841
  volume: DB.MemberDecl<DB.Integer, false>;
842
842
  }>, []>>>, true>;
843
843
  }>, []>>>;
844
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
845
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
846
+ }>, []>>>;
844
847
  }, []>>, false>;
845
848
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
846
849
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const ProtectiveWardingCircleSpecialAbility: DB.Entity<"Protectiv
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const Sermon: DB.Entity<"Sermon", {
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const SexSpecialAbility: DB.Entity<"SexSpecialAbility", {
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const SikaryanDrainSpecialAbility: DB.Entity<"SikaryanDrainSpecia
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const SkillStyleSpecialAbility: DB.Entity<"SkillStyleSpecialAbili
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const VampiricGift: DB.Entity<"VampiricGift", {
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
@@ -840,6 +840,9 @@ export declare const Vision: DB.Entity<"Vision", {
840
840
  volume: DB.MemberDecl<DB.Integer, false>;
841
841
  }>, []>>>, true>;
842
842
  }>, []>>>;
843
+ Advantages: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"AdvantagesSelectOptionCategory", DB.Object<{
844
+ dependingOn: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, true>;
845
+ }>, []>>>;
843
846
  }, []>>, false>;
844
847
  rules: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRules", DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"SelectOptionRule", DB.Object<{
845
848
  value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"SelectOptionRuleValue", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optolith/database-schema",
3
- "version": "0.92.0",
3
+ "version": "0.93.0",
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",