optolith-database-schema 0.0.3 → 0.0.4

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,14 @@
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.0.4](https://github.com/elyukai/optolith-database-schema/compare/v0.0.3...v0.0.4) (2022-03-06)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * broken markdown newlines ([87c5ff2](https://github.com/elyukai/optolith-database-schema/commit/87c5ff243c6df1a9dd966167c85dd41b45c36369))
11
+ * cost map should allow different translations ([f65683f](https://github.com/elyukai/optolith-database-schema/commit/f65683fc45f2c9f16d1571ec9fcbc449eee042b1))
12
+
5
13
  ### [0.0.3](https://github.com/elyukai/optolith-database-schema/compare/v0.0.2...v0.0.3) (2022-03-05)
6
14
 
7
15
 
@@ -370,20 +370,31 @@ export declare namespace Cost {
370
370
  */
371
371
  options: MapOption[];
372
372
  /**
373
- * Place a string between the `for` and the grouped map option labels.
374
- */
375
- list_prepend?: string;
376
- /**
377
- * Place a string after the grouped map option labels.
378
- */
379
- list_append?: string;
380
- /**
381
- * If the string from the book cannot be generated using the default
382
- * generation technique, use this string. All options still need to be
383
- * inserted propertly, since it may be used by in-game tools to provide a
384
- * selection to players.
373
+ * All translations for the entry, identified by IETF language tag (BCP47).
374
+ * @minProperties 1
385
375
  */
386
- replacement?: string;
376
+ translations?: {
377
+ /**
378
+ * @patternProperties ^[a-z]{2}-[A-Z]{2}$
379
+ */
380
+ [localeId: string]: {
381
+ /**
382
+ * Place a string between the `for` and the grouped map option labels.
383
+ */
384
+ list_prepend?: string;
385
+ /**
386
+ * Place a string after the grouped map option labels.
387
+ */
388
+ list_append?: string;
389
+ /**
390
+ * If the string from the book cannot be generated using the default
391
+ * generation technique, use this string. All options still need to be
392
+ * inserted propertly, since it may be used by in-game tools to provide a
393
+ * selection to players.
394
+ */
395
+ replacement?: string;
396
+ };
397
+ };
387
398
  };
388
399
  type MapOption = {
389
400
  /**
@@ -399,16 +410,27 @@ export declare namespace Cost {
399
410
  */
400
411
  permanent_value?: number;
401
412
  /**
402
- * The description of the option for cost string generation.
403
- * @minLength 1
404
- */
405
- label: string;
406
- /**
407
- * The description of the option if used standalone. Only used if
408
- * different from `label`.
409
- * @minLength 1
413
+ * All translations for the entry, identified by IETF language tag (BCP47).
414
+ * @minProperties 1
410
415
  */
411
- label_standalone?: string;
416
+ translations?: {
417
+ /**
418
+ * @patternProperties ^[a-z]{2}-[A-Z]{2}$
419
+ */
420
+ [localeId: string]: {
421
+ /**
422
+ * The description of the option for cost string generation.
423
+ * @minLength 1
424
+ */
425
+ label: string;
426
+ /**
427
+ * The description of the option if used standalone. Only used if
428
+ * different from `label`.
429
+ * @minLength 1
430
+ */
431
+ label_standalone?: string;
432
+ };
433
+ };
412
434
  };
413
435
  }
414
436
  namespace Sustained {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optolith-database-schema",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
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",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^17.0.21",
28
- "optolith-tsjsonschemamd": "^0.5.1",
28
+ "optolith-tsjsonschemamd": "^0.5.2",
29
29
  "standard-version": "^9.3.2",
30
30
  "typescript": "^4.6.2"
31
31
  },
@@ -716,17 +716,32 @@
716
716
  },
717
717
  "minItems": 2
718
718
  },
719
- "list_prepend": {
720
- "description": "Place a string between the `for` and the grouped map option labels.",
721
- "type": "string"
722
- },
723
- "list_append": {
724
- "description": "Place a string after the grouped map option labels.",
725
- "type": "string"
726
- },
727
- "replacement": {
728
- "description": "If the string from the book cannot be generated using the default\ngeneration technique, use this string. All options still need to be\ninserted propertly, since it may be used by in-game tools to provide a\nselection to players.",
729
- "type": "string"
719
+ "translations": {
720
+ "description": "All translations for the entry, identified by IETF language tag (BCP47).",
721
+ "type": "object",
722
+ "patternProperties": {
723
+ "^[a-z]{2}-[A-Z]{2}$": {
724
+ "type": "object",
725
+ "properties": {
726
+ "list_prepend": {
727
+ "description": "Place a string between the `for` and the grouped map option labels.",
728
+ "type": "string"
729
+ },
730
+ "list_append": {
731
+ "description": "Place a string after the grouped map option labels.",
732
+ "type": "string"
733
+ },
734
+ "replacement": {
735
+ "description": "If the string from the book cannot be generated using the default\ngeneration technique, use this string. All options still need to be\ninserted propertly, since it may be used by in-game tools to provide a\nselection to players.",
736
+ "type": "string"
737
+ }
738
+ },
739
+ "required": [],
740
+ "additionalProperties": false
741
+ }
742
+ },
743
+ "minProperties": 1,
744
+ "additionalProperties": false
730
745
  }
731
746
  },
732
747
  "required": [
@@ -747,20 +762,36 @@
747
762
  "type": "integer",
748
763
  "minimum": 0
749
764
  },
750
- "label": {
751
- "description": "The description of the option for cost string generation.",
752
- "type": "string",
753
- "minLength": 1
754
- },
755
- "label_standalone": {
756
- "description": "The description of the option if used standalone. Only used if\ndifferent from `label`.",
757
- "type": "string",
758
- "minLength": 1
765
+ "translations": {
766
+ "description": "All translations for the entry, identified by IETF language tag (BCP47).",
767
+ "type": "object",
768
+ "patternProperties": {
769
+ "^[a-z]{2}-[A-Z]{2}$": {
770
+ "type": "object",
771
+ "properties": {
772
+ "label": {
773
+ "description": "The description of the option for cost string generation.",
774
+ "type": "string",
775
+ "minLength": 1
776
+ },
777
+ "label_standalone": {
778
+ "description": "The description of the option if used standalone. Only used if\ndifferent from `label`.",
779
+ "type": "string",
780
+ "minLength": 1
781
+ }
782
+ },
783
+ "required": [
784
+ "label"
785
+ ],
786
+ "additionalProperties": false
787
+ }
788
+ },
789
+ "minProperties": 1,
790
+ "additionalProperties": false
759
791
  }
760
792
  },
761
793
  "required": [
762
- "value",
763
- "label"
794
+ "value"
764
795
  ],
765
796
  "additionalProperties": false
766
797
  }