@amplication/code-gen-types
Advanced tools
Comparing version 2.0.0-beta.2 to 2.0.0-beta.3
{ | ||
"name": "@amplication/code-gen-types", | ||
"version": "2.0.0-beta.2", | ||
"version": "2.0.0-beta.3", | ||
"description": "This library supplies all the contracts for Amplication Code Generation. The purpose is to make the contracts available for inclusion in plugins.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -88,3 +88,3 @@ import { namedTypes } from "ast-types"; | ||
*/ | ||
values(): Module[]; | ||
modules(): Module[]; | ||
} | ||
@@ -91,0 +91,0 @@ export type ClassDeclaration = namedTypes.ClassDeclaration & { |
@@ -22,8 +22,8 @@ "use strict"; | ||
try { | ||
for (var _d = true, _e = tslib_1.__asyncValues(Object.entries(anotherMap)), _f; _f = yield _e.next(), _a = _f.done, !_a;) { | ||
for (var _d = true, _e = tslib_1.__asyncValues(anotherMap.modules()), _f; _f = yield _e.next(), _a = _f.done, !_a;) { | ||
_c = _f.value; | ||
_d = false; | ||
try { | ||
const [path, module] = _c; | ||
yield this.set(path, module); | ||
const module = _c; | ||
yield this.set(module.path, module); | ||
} | ||
@@ -151,3 +151,3 @@ finally { | ||
*/ | ||
values() { | ||
modules() { | ||
return Object.values(this.map); | ||
@@ -154,0 +154,0 @@ } |
import { namedTypes } from "ast-types"; | ||
import { DTOs, Entity, EntityField, EntityLookupField, EnumDataType, Module, NamedClassDeclaration } from "./code-gen-types"; | ||
import { DTOs, Entity, EntityField, EntityLookupField, EnumDataType, ModuleMap, NamedClassDeclaration } from "./code-gen-types"; | ||
import { EventParams } from "./plugins-types"; | ||
@@ -102,3 +102,3 @@ import { Generator, DataSource, ScalarField, ObjectField } from "prisma-schema-dsl-types"; | ||
[variable: string]: string; | ||
}[]; | ||
}; | ||
export interface CreateServerDotEnvParams extends EventParams { | ||
@@ -117,3 +117,3 @@ envVariables: VariableDictionary; | ||
[key: string]: any; | ||
}[]; | ||
}; | ||
outputFileName: string; | ||
@@ -125,3 +125,3 @@ } | ||
[key: string]: any; | ||
}[]; | ||
}; | ||
outputFileName: string; | ||
@@ -165,3 +165,3 @@ } | ||
export interface CreateServerAppModuleParams extends EventParams { | ||
modulesFiles: Module[]; | ||
modulesFiles: ModuleMap; | ||
template: namedTypes.File; | ||
@@ -168,0 +168,0 @@ templateMapping: { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
142497