ondc-code-generator 0.0.4 → 0.0.6

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.
@@ -1,5 +1,5 @@
1
1
  import { JSONSchema7 } from "json-schema";
2
- import { BUID_TYPE } from "../types/build.js";
2
+ import { BUILD_TYPE } from "../types/build.js";
3
3
  import { ErrorDefinition } from "../types/error-codes.js";
4
4
  import { ValidationConfig } from "../types/config-types.js";
5
5
  import { SupportedLanguages } from "../types/compiler-types.js";
@@ -8,7 +8,7 @@ type CodeGeneratorConfig = {
8
8
  removeEnumsfromSchema: boolean;
9
9
  };
10
10
  export declare class ConfigCompiler {
11
- buildData: BUID_TYPE | undefined;
11
+ buildData: BUILD_TYPE | undefined;
12
12
  jsonSchemas: Record<string, JSONSchema7> | undefined;
13
13
  possibleJsonPaths: Record<string, string[]> | undefined;
14
14
  errorDefinitions: ErrorDefinition[] | undefined;
@@ -1,6 +1,6 @@
1
1
  import { JSONSchema7 } from "json-schema";
2
- import { BUID_TYPE } from "../types/build.js";
2
+ import { BUILD_TYPE } from "../types/build.js";
3
3
  export declare class SchemaExtactionService {
4
- extractSchemas: (data: BUID_TYPE, removeRequired: boolean, removeEnums: boolean) => Promise<Record<string, JSONSchema7>>;
4
+ extractSchemas: (data: BUILD_TYPE, removeRequired: boolean, removeEnums: boolean) => Promise<Record<string, JSONSchema7>>;
5
5
  extractPossiblePaths: (schemas: Record<string, JSONSchema7>) => Record<string, string[]>;
6
6
  }
@@ -38,7 +38,7 @@ export type BuildPath = {
38
38
  };
39
39
  };
40
40
  };
41
- export interface BUID_TYPE {
41
+ export interface BUILD_TYPE {
42
42
  paths: BuildPath;
43
43
  "x-enum": any;
44
44
  "x-attributes": Xattributes;
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "ondc-code-generator",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "generate code from build.yaml ",
5
5
  "main": "dist/index.js",
6
+ "type": "module",
6
7
  "scripts": {
7
8
  "build": "tsc",
8
9
  "start": "node ./dist/index.js",