@satisfactory-dev/docs.json.ts 0.14.1 → 0.14.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.
package/README.md CHANGED
@@ -77,7 +77,7 @@
77
77
  export const docs = new DocsTsGenerator({
78
78
  ajv,
79
79
  docs_versions: {
80
- version_1_0_1_0: new DocsTsGeneratorVersion({
80
+ version_1_0_1_2: new DocsTsGeneratorVersion({
81
81
  docs_path: `${__dirname}/../data/1.0/en-US.json`,
82
82
  cache_path: `${__dirname}/../data/1.0/`,
83
83
  UnrealEngineString_quote_mode: 'double',
@@ -1,6 +1,6 @@
1
1
  import { UnrealEngineString, StringStartsWith } from '../../utils/validators';
2
2
  import { boolean__type, decimal_string__type, integer_string__type } from '../../common/scalar';
3
- import { Texture2D__type, color__type, mForm__type, UnrealEngineString__array__type, class__type } from '../../common/unassigned';
3
+ import { Texture2D__type, color__type, mForm__type, UnrealEngineString__array__type, empty_object__type, class__type } from '../../common/unassigned';
4
4
  export type common_base__FGItemDescriptor__FGBuildingDescriptor__FGResourceDescriptor__type = class__type & {
5
5
  mAbbreviatedDisplayName: string;
6
6
  mStackSize: 'SS_ONE' | 'SS_FLUID' | 'SS_SMALL' | 'SS_MEDIUM' | 'SS_BIG' | 'SS_HUGE';
@@ -18,6 +18,9 @@ export type common_base__FGItemDescriptor__FGBuildingDescriptor__FGResourceDescr
18
18
  ...{
19
19
  Value: integer_string__type;
20
20
  }[]
21
+ ] | [
22
+ empty_object__type,
23
+ ...empty_object__type[]
21
24
  ];
22
25
  mMenuPriority: decimal_string__type;
23
26
  mFluidColor: color__type;
@@ -1,4 +1,4 @@
1
- import version_1_0_1_0_schema from '../schema/1.0.schema.json';
1
+ import version_1_0_1_2_schema from '../schema/1.0.schema.json';
2
2
  import update8_schema from '../schema/update8.schema.json';
3
3
  import common_schema from '../schema/common.schema.json';
4
4
  export declare class DocsSchema<schema> {
@@ -16,7 +16,7 @@ declare class DocsSchemaByLanguageCode<en_US> {
16
16
  export declare class DocsSchemaByVersion {
17
17
  readonly common: DocsSchemaByLanguageCode<typeof common_schema>;
18
18
  readonly update8: DocsSchemaByLanguageCode<typeof update8_schema>;
19
- readonly version_1_0_1_0: DocsSchemaByLanguageCode<typeof version_1_0_1_0_schema>;
19
+ readonly version_1_0_1_2: DocsSchemaByLanguageCode<typeof version_1_0_1_2_schema>;
20
20
  constructor();
21
21
  }
22
22
  export {};
package/lib/DocsSchema.js CHANGED
@@ -1,4 +1,4 @@
1
- import version_1_0_1_0_schema from '../schema/1.0.schema.json' with {
1
+ import version_1_0_1_2_schema from '../schema/1.0.schema.json' with {
2
2
  type: 'json'
3
3
  };
4
4
  import update8_schema from '../schema/update8.schema.json' with {
@@ -22,13 +22,13 @@ class DocsSchemaByLanguageCode {
22
22
  export class DocsSchemaByVersion {
23
23
  common;
24
24
  update8;
25
- version_1_0_1_0;
25
+ version_1_0_1_2;
26
26
  constructor() {
27
27
  this.common = new DocsSchemaByLanguageCode({
28
28
  en_US: common_schema,
29
29
  });
30
- this.version_1_0_1_0 = new DocsSchemaByLanguageCode({
31
- en_US: version_1_0_1_0_schema,
30
+ this.version_1_0_1_2 = new DocsSchemaByLanguageCode({
31
+ en_US: version_1_0_1_2_schema,
32
32
  });
33
33
  this.update8 = new DocsSchemaByLanguageCode({
34
34
  en_US: update8_schema,
@@ -33,7 +33,7 @@ export declare class DocsTsGeneratorVersion {
33
33
  });
34
34
  }
35
35
  export type docs_versions = {
36
- version_1_0_1_0?: DocsTsGeneratorVersion;
36
+ version_1_0_1_2?: DocsTsGeneratorVersion;
37
37
  update8?: DocsTsGeneratorVersion;
38
38
  common: DocsTsGeneratorVersion;
39
39
  };
@@ -8971,6 +8971,20 @@ export declare class DocsTsGenerator {
8971
8971
  };
8972
8972
  };
8973
8973
  };
8974
+ $ref?: undefined;
8975
+ };
8976
+ };
8977
+ const?: undefined;
8978
+ } | {
8979
+ type: string;
8980
+ minLength: number;
8981
+ typed_string: {
8982
+ minItems: number;
8983
+ items: {
8984
+ $ref: string;
8985
+ type?: undefined;
8986
+ minLength?: undefined;
8987
+ typed_string?: undefined;
8974
8988
  };
8975
8989
  };
8976
8990
  const?: undefined;
@@ -14543,7 +14557,7 @@ export declare class DocsTsGenerator {
14543
14557
  }>;
14544
14558
  schema_common(): Promise<DocsSchemaByVersion['common']['en_US']['schema']>;
14545
14559
  schema_update8(): Promise<DocsSchemaByVersion['update8']['en_US']['schema']>;
14546
- schema_version_1_0_1_0(): Promise<DocsSchemaByVersion['version_1_0_1_0']['en_US']['schema']>;
14560
+ schema_version_1_0_1_2(): Promise<DocsSchemaByVersion['version_1_0_1_2']['en_US']['schema']>;
14547
14561
  private load;
14548
14562
  private load_from_file;
14549
14563
  private validate;
@@ -91,8 +91,8 @@ export class DocsTsGenerator {
91
91
  if ('update8' === version) {
92
92
  return this.schema_update8();
93
93
  }
94
- else if ('version_1_0_1_0' === version) {
95
- return this.schema_version_1_0_1_0();
94
+ else if ('version_1_0_1_2' === version) {
95
+ return this.schema_version_1_0_1_2();
96
96
  }
97
97
  else if ('common' === version) {
98
98
  return this.schema_common();
@@ -114,10 +114,10 @@ export class DocsTsGenerator {
114
114
  return schema;
115
115
  }
116
116
  // eslint-disable-next-line max-len
117
- async schema_version_1_0_1_0() {
118
- const schema = this.schema_data.version_1_0_1_0.en_US.schema;
117
+ async schema_version_1_0_1_2() {
118
+ const schema = this.schema_data.version_1_0_1_2.en_US.schema;
119
119
  // eslint-disable-next-line max-len
120
- await this.validate_schema('version_1_0_1_0', schema);
120
+ await this.validate_schema('version_1_0_1_2', schema);
121
121
  return schema;
122
122
  }
123
123
  async load(version) {
package/lib/helpers.js CHANGED
@@ -24,7 +24,7 @@ export const docs = new DocsTsGenerator({
24
24
  cache_path: `${__dirname}/../data/common/`,
25
25
  UnrealEngineString_quote_mode: 'original',
26
26
  }),
27
- version_1_0_1_0: new DocsTsGeneratorVersion({
27
+ version_1_0_1_2: new DocsTsGeneratorVersion({
28
28
  docs_path: `${__dirname}/../data/1.0/en-US.json`,
29
29
  cache_path: `${__dirname}/../data/1.0/`,
30
30
  UnrealEngineString_quote_mode: 'double',
package/package.json CHANGED
@@ -38,5 +38,5 @@
38
38
  "typescript": "~5.5.2",
39
39
  "typescript-eslint": "^8.2.0"
40
40
  },
41
- "version": "0.14.1"
41
+ "version": "0.14.3"
42
42
  }
@@ -447,6 +447,16 @@
447
447
  }
448
448
  }
449
449
  }
450
+ },
451
+ {
452
+ "type": "string",
453
+ "minLength": 1,
454
+ "typed_string": {
455
+ "minItems": 1,
456
+ "items": {
457
+ "$ref": "common.schema.json#/$defs/empty-object"
458
+ }
459
+ }
450
460
  }
451
461
  ]
452
462
  },