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 {
|
|
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:
|
|
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 {
|
|
2
|
+
import { BUILD_TYPE } from "../types/build.js";
|
|
3
3
|
export declare class SchemaExtactionService {
|
|
4
|
-
extractSchemas: (data:
|
|
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
|
}
|
package/dist/types/build.d.ts
CHANGED
package/package.json
CHANGED