optolith-database-schema 0.1.19 → 0.1.22

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,27 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.22](https://github.com/elyukai/optolith-database-schema/compare/v0.1.21...v0.1.22) (2022-03-23)
6
+
7
+
8
+ ### Features
9
+
10
+ * professions ([0b6ec67](https://github.com/elyukai/optolith-database-schema/commit/0b6ec6718daae4d09ad0ce562ca69fe55cca5d4c))
11
+
12
+ ### [0.1.21](https://github.com/elyukai/optolith-database-schema/compare/v0.1.20...v0.1.21) (2022-03-22)
13
+
14
+
15
+ ### Features
16
+
17
+ * personality traits ([d800133](https://github.com/elyukai/optolith-database-schema/commit/d80013327924376a13fdee0efcc7efdf6d84e616))
18
+
19
+ ### [0.1.20](https://github.com/elyukai/optolith-database-schema/compare/v0.1.19...v0.1.20) (2022-03-22)
20
+
21
+
22
+ ### Features
23
+
24
+ * services can be for multiple creature types ([1853485](https://github.com/elyukai/optolith-database-schema/commit/1853485aea88c38339b5ad5d3396aef7dc263888))
25
+
5
26
  ### [0.1.19](https://github.com/elyukai/optolith-database-schema/compare/v0.1.18...v0.1.19) (2022-03-21)
6
27
 
7
28
 
package/lib/config.d.ts CHANGED
@@ -38,6 +38,7 @@ import { MetaCondition } from "./types/MetaCondition.js";
38
38
  import { PactCategory } from "./types/PactCategory.js";
39
39
  import { Patron } from "./types/Patron.js";
40
40
  import { PatronCategory } from "./types/PatronCategory.js";
41
+ import { PersonalityTrait } from "./types/PersonalityTrait.js";
41
42
  import { Property } from "./types/Property.js";
42
43
  import { Race } from "./types/Race.js";
43
44
  import { Region } from "./types/Region.js";
@@ -189,6 +190,7 @@ export declare type TypeMap = {
189
190
  pactGifts: PactGift;
190
191
  patronCategories: PatronCategory;
191
192
  patrons: Patron;
193
+ personalityTraits: PersonalityTrait;
192
194
  properties: Property;
193
195
  protectiveWardingCircleSpecialAbilities: ProtectiveWardingCircleSpecialAbility;
194
196
  publications: Publication;
package/lib/config.js CHANGED
@@ -38,6 +38,7 @@ import { validateSchema as validateMetaConditionSchema } from "./types/MetaCondi
38
38
  import { validateSchema as validatePactCategorySchema } from "./types/PactCategory.js";
39
39
  import { validateSchema as validatePatronSchema } from "./types/Patron.js";
40
40
  import { validateSchema as validatePatronCategorySchema } from "./types/PatronCategory.js";
41
+ import { validateSchema as validatePersonalityTraitSchema } from "./types/PersonalityTrait.js";
41
42
  import { validateSchema as validatePropertySchema } from "./types/Property.js";
42
43
  import { validateSchema as validateRaceSchema } from "./types/Race.js";
43
44
  import { validateSchema as validateRegionSchema } from "./types/Region.js";
@@ -188,6 +189,7 @@ export const typeValidatorMap = {
188
189
  pactGifts: validatePactGiftSchema,
189
190
  patronCategories: validatePatronCategorySchema,
190
191
  patrons: validatePatronSchema,
192
+ personalityTraits: validatePersonalityTraitSchema,
191
193
  properties: validatePropertySchema,
192
194
  protectiveWardingCircleSpecialAbilities: validateProtectiveWardingCircleSpecialAbilitySchema,
193
195
  publications: validatePublicationSchema,
@@ -0,0 +1,74 @@
1
+ /**
2
+ * @main PersonalityTrait
3
+ */
4
+ import { Errata } from "./source/_Erratum.js";
5
+ import { PublicationRefs } from "./source/_PublicationRef.js";
6
+ import { PersonalityTraitPrerequisites } from "./_Prerequisite.js";
7
+ /**
8
+ * @title Personality Trait
9
+ */
10
+ export declare type PersonalityTrait = {
11
+ /**
12
+ * The personality trait's identifier. An unique, increasing integer.
13
+ * @integer
14
+ * @minimum 1
15
+ */
16
+ id: number;
17
+ /**
18
+ * The personality trait's level.
19
+ * @integer
20
+ * @minimum 1
21
+ * @maximum 3
22
+ */
23
+ level: number;
24
+ prerequisites?: PersonalityTraitPrerequisites;
25
+ /**
26
+ * The lower-level personality trait(s) this trait can be combined with.
27
+ * @minItems 1
28
+ * @uniqueItems
29
+ */
30
+ combination_options?: {
31
+ /**
32
+ * The referenced personality trait's identifier.
33
+ * @integer
34
+ * @minimum 1
35
+ */
36
+ id: number;
37
+ }[];
38
+ src: PublicationRefs;
39
+ /**
40
+ * All translations for the entry, identified by IETF language tag (BCP47).
41
+ * @minProperties 1
42
+ */
43
+ translations: {
44
+ /**
45
+ * @patternProperties ^[a-z]{2}-[A-Z]{2}$
46
+ */
47
+ [localeId: string]: {
48
+ /**
49
+ * The name of the personality trait.
50
+ * @minLength 1
51
+ */
52
+ name: string;
53
+ /**
54
+ * The effects of the personality trait. They should be sorted like they
55
+ * are in the book.
56
+ * @minItems 1
57
+ */
58
+ effects: {
59
+ /**
60
+ * A label that is displayed and placed before the actual text.
61
+ * @minLength 1
62
+ */
63
+ label?: string;
64
+ /**
65
+ * The effect text.
66
+ * @minLength 1
67
+ */
68
+ text: string;
69
+ }[];
70
+ errata?: Errata;
71
+ };
72
+ };
73
+ };
74
+ export declare const validateSchema: import("../validation/schema.js").TypeValidator<PersonalityTrait>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @main PersonalityTrait
3
+ */
4
+ import { validateSchemaCreator } from "../validation/schema.js";
5
+ export const validateSchema = validateSchemaCreator(import.meta.url);