@optolith/database-schema 0.99.0 → 0.101.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 (40) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/gen/types.d.ts +628 -123
  3. package/lib/main.js +1 -0
  4. package/lib/types/Culture.d.ts +312 -152
  5. package/lib/types/Locale.d.ts +8 -1
  6. package/lib/types/Locale.js +5 -0
  7. package/lib/types/Profession.d.ts +807 -466
  8. package/lib/types/Profession.js +20 -0
  9. package/lib/types/Race.d.ts +624 -304
  10. package/lib/types/_ActivatableAdvanced.d.ts +28 -0
  11. package/lib/types/_ActivatableAdvanced.js +57 -1
  12. package/lib/types/_ActivatableCombat.d.ts +45 -41
  13. package/lib/types/_ActivatableCombat.js +71 -77
  14. package/lib/types/_CommonnessRatedAdvantageDisadvantage.d.ts +80 -2
  15. package/lib/types/_CommonnessRatedAdvantageDisadvantage.js +58 -3
  16. package/lib/types/_Identifier.d.ts +1 -0
  17. package/lib/types/_Identifier.js +2 -0
  18. package/lib/types/_IdentifierGroup.d.ts +1 -0
  19. package/lib/types/_IdentifierGroup.js +2 -1
  20. package/lib/types/equipment/EquipmentPackage.d.ts +1 -0
  21. package/lib/types/equipment/item/ItemComponent.d.ts +128 -0
  22. package/lib/types/equipment/item/ItemComponent.js +316 -0
  23. package/lib/types/index.d.ts +1 -0
  24. package/lib/types/index.js +1 -0
  25. package/lib/types/prerequisites/PrerequisiteGroups.d.ts +80 -5
  26. package/lib/types/prerequisites/PrerequisiteGroups.js +5 -1
  27. package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.js +2 -2
  28. package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisiteForProfession.d.ts +150 -0
  29. package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisiteForProfession.js +53 -0
  30. package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +42 -41
  31. package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +42 -41
  32. package/lib/types/specialAbility/CombatSpecialAbility.d.ts +42 -41
  33. package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +70 -41
  34. package/lib/types/specialAbility/CommandSpecialAbility.d.ts +42 -41
  35. package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +28 -0
  36. package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +28 -0
  37. package/lib/types/specialAbility/MagicalTradition.d.ts +1 -0
  38. package/lib/types/specialAbility/MagicalTradition.js +5 -1
  39. package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +28 -0
  40. package/package.json +2 -2
@@ -514,6 +514,9 @@ const ProfessionPackageOptions = DB.TypeAlias(import.meta.url, {
514
514
  liturgies: DB.Optional({
515
515
  type: DB.IncludeIdentifier(LiturgiesOptions),
516
516
  }),
517
+ lockAdventurePoints: DB.Optional({
518
+ type: DB.IncludeIdentifier(LockAdventurePointsOption),
519
+ }),
517
520
  }, { minProperties: 1 }),
518
521
  });
519
522
  const ProfessionVariantPackageOptions = DB.TypeAlias(import.meta.url, {
@@ -768,6 +771,23 @@ const SpecialAbilitiesForAdventurePointsOption = DB.TypeAlias(import.meta.url, {
768
771
  }),
769
772
  }),
770
773
  });
774
+ const LockAdventurePointsOption = DB.TypeAlias(import.meta.url, {
775
+ name: "LockAdventurePointsOption",
776
+ comment: `Keep AP for use after character creation to buy or improve entries.`,
777
+ type: () => DB.Object({
778
+ apValue: DB.Required({
779
+ comment: "The AP value that is going to be locked for later use.",
780
+ type: DB.Integer({ minimum: 1 }),
781
+ }),
782
+ entries: DB.Required({
783
+ comment: "The entries the AP can be used for.",
784
+ type: DB.Array(DB.IncludeIdentifier(SpellworkIdentifier), {
785
+ minItems: 1,
786
+ uniqueItems: true,
787
+ }),
788
+ }),
789
+ }),
790
+ });
771
791
  const ProfessionName = DB.TypeAlias(import.meta.url, {
772
792
  name: "ProfessionName",
773
793
  comment: "The name of the profession that may have sex-specific names. Useful if the term in generell is different (i.e. actor/actress) or if the language uses gendered nouns. The default name is also used in case neither the male nor female name strictly applies.",