@amplication/code-gen-types
Advanced tools
Comparing version 2.0.13 to 2.0.14
{ | ||
"name": "@amplication/code-gen-types", | ||
"version": "2.0.13", | ||
"version": "2.0.14", | ||
"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", |
@@ -14,2 +14,3 @@ import type { namedTypes } from "ast-types"; | ||
url: string; | ||
generateGrpc: boolean; | ||
settings: ServiceSettings; | ||
@@ -16,0 +17,0 @@ codeGeneratorVersionOptions: models.CodeGeneratorVersionOptionsInput; |
@@ -49,2 +49,24 @@ import type { namedTypes } from "ast-types"; | ||
} | ||
export interface CreateEntityControllerGrpcParams extends EventParams { | ||
template: namedTypes.File; | ||
entityName: string; | ||
entityServiceModule: string; | ||
templateMapping: { | ||
[key: string]: any; | ||
}; | ||
controllerBaseId: namedTypes.Identifier; | ||
serviceId: namedTypes.Identifier; | ||
} | ||
export interface CreateEntityControllerGrpcBaseParams extends EventParams { | ||
template: namedTypes.File; | ||
entity: Entity; | ||
entityName: string; | ||
entityType: string; | ||
entityServiceModule: string; | ||
templateMapping: { | ||
[key: string]: any; | ||
}; | ||
controllerBaseId: namedTypes.Identifier; | ||
serviceId: namedTypes.Identifier; | ||
} | ||
export interface CreateEntityControllerToManyRelationMethodsParams extends EventParams { | ||
@@ -62,2 +84,14 @@ field: EntityLookupField; | ||
} | ||
export interface CreateEntityControllerGrpcToManyRelationMethodsParams extends EventParams { | ||
field: EntityLookupField; | ||
entity: Entity; | ||
entityType: string; | ||
whereUniqueInput: NamedClassDeclaration; | ||
serviceId: namedTypes.Identifier; | ||
methods: namedTypes.ClassMethod[]; | ||
toManyFile: namedTypes.File; | ||
toManyMapping: { | ||
[key: string]: any; | ||
}; | ||
} | ||
export interface CreateEntityResolverToManyRelationMethodsParams extends EventParams { | ||
@@ -192,5 +226,7 @@ field: EntityLookupField; | ||
entityControllerModule: string | undefined; | ||
entityControllerGrpcModule: string | undefined; | ||
entityResolverModule: string | undefined; | ||
moduleBaseId: namedTypes.Identifier; | ||
controllerId: namedTypes.Identifier; | ||
controllerGrpcId: namedTypes.Identifier; | ||
serviceId: namedTypes.Identifier; | ||
@@ -197,0 +233,0 @@ resolverId: namedTypes.Identifier; |
@@ -1,2 +0,2 @@ | ||
import { CreateAdminUIParams, CreateServerAuthParams, CreateEntityControllerBaseParams, CreateEntityControllerParams, CreateEntityServiceBaseParams, CreateEntityServiceParams, CreateEntityResolverBaseParams, CreateEntityResolverParams, CreateMessageBrokerClientOptionsFactoryParams, CreateMessageBrokerNestJSModuleParams, CreateMessageBrokerParams, CreateMessageBrokerServiceBaseParams, CreateMessageBrokerServiceParams, CreateMessageBrokerTopicsEnumParams, CreatePrismaSchemaParams, CreateServerAppModuleParams, CreateServerDockerComposeDBParams, CreateServerDockerComposeParams, CreateServerDotEnvParams, CreateServerPackageJsonParams, CreateServerParams, CreateEntityModuleParams, CreateEntityModuleBaseParams, CreateSwaggerParams, CreateSeedParams, CreateEntityControllerSpecParams, CreateAdminUIPackageJsonParams, CreateEntityControllerToManyRelationMethodsParams, CreateEntityResolverToManyRelationMethodsParams, CreateEntityResolverToOneRelationMethodsParams, CreateServerGitIgnoreParams, CreateAdminGitIgnoreParams, CreateDTOsParams, LoadStaticFilesParams, CreateServerDockerComposeDevParams, CreateConnectMicroservicesParams, CreateAdminAppModuleParams, CreateAdminDotEnvParams } from "./plugin-events-params"; | ||
import { CreateAdminUIParams, CreateServerAuthParams, CreateEntityControllerBaseParams, CreateEntityControllerParams, CreateEntityServiceBaseParams, CreateEntityServiceParams, CreateEntityResolverBaseParams, CreateEntityResolverParams, CreateMessageBrokerClientOptionsFactoryParams, CreateMessageBrokerNestJSModuleParams, CreateMessageBrokerParams, CreateMessageBrokerServiceBaseParams, CreateMessageBrokerServiceParams, CreateMessageBrokerTopicsEnumParams, CreatePrismaSchemaParams, CreateServerAppModuleParams, CreateServerDockerComposeDBParams, CreateServerDockerComposeParams, CreateServerDotEnvParams, CreateServerPackageJsonParams, CreateServerParams, CreateEntityModuleParams, CreateEntityModuleBaseParams, CreateSwaggerParams, CreateSeedParams, CreateEntityControllerSpecParams, CreateAdminUIPackageJsonParams, CreateEntityControllerToManyRelationMethodsParams, CreateEntityResolverToManyRelationMethodsParams, CreateEntityResolverToOneRelationMethodsParams, CreateServerGitIgnoreParams, CreateAdminGitIgnoreParams, CreateDTOsParams, LoadStaticFilesParams, CreateServerDockerComposeDevParams, CreateConnectMicroservicesParams, CreateAdminAppModuleParams, CreateAdminDotEnvParams, CreateEntityControllerGrpcParams, CreateEntityControllerGrpcBaseParams, CreateEntityControllerGrpcToManyRelationMethodsParams } from "./plugin-events-params"; | ||
import { EventNames, PluginEventType } from "./plugins-types"; | ||
@@ -15,2 +15,4 @@ export type Events = { | ||
[EventNames.CreateEntityControllerBase]?: PluginEventType<CreateEntityControllerBaseParams>; | ||
[EventNames.CreateEntityControllerGrpc]?: PluginEventType<CreateEntityControllerGrpcParams>; | ||
[EventNames.CreateEntityControllerGrpcBase]?: PluginEventType<CreateEntityControllerGrpcBaseParams>; | ||
[EventNames.CreateServerDockerCompose]?: PluginEventType<CreateServerDockerComposeParams>; | ||
@@ -39,2 +41,3 @@ [EventNames.CreateServerDockerComposeDB]?: PluginEventType<CreateServerDockerComposeDBParams>; | ||
[EventNames.CreateEntityControllerToManyRelationMethods]?: PluginEventType<CreateEntityControllerToManyRelationMethodsParams>; | ||
[EventNames.CreateEntityControllerGrpcToManyRelationMethods]?: PluginEventType<CreateEntityControllerGrpcToManyRelationMethodsParams>; | ||
[EventNames.CreateEntityResolverToManyRelationMethods]?: PluginEventType<CreateEntityResolverToManyRelationMethodsParams>; | ||
@@ -41,0 +44,0 @@ [EventNames.CreateEntityResolverToOneRelationMethods]?: PluginEventType<CreateEntityResolverToOneRelationMethodsParams>; |
@@ -55,2 +55,4 @@ import type { Promisable } from "type-fest"; | ||
CreateEntityControllerBase = "CreateEntityControllerBase", | ||
CreateEntityControllerGrpc = "CreateEntityControllerGrpc", | ||
CreateEntityControllerGrpcBase = "CreateEntityControllerGrpcBase", | ||
CreateEntityControllerSpec = "CreateEntityControllerSpec", | ||
@@ -87,2 +89,3 @@ CreateServerAuth = "CreateServerAuth", | ||
CreateEntityControllerToManyRelationMethods = "CreateEntityControllerToManyRelationMethods", | ||
CreateEntityControllerGrpcToManyRelationMethods = "createEntityControllerGrpcToManyRelationMethods", | ||
CreateEntityResolverToManyRelationMethods = "CreateEntityResolverToManyRelationMethods", | ||
@@ -89,0 +92,0 @@ CreateEntityResolverToOneRelationMethods = "CreateEntityResolverToOneRelationMethods", |
@@ -8,2 +8,4 @@ "use strict"; | ||
EventNames["CreateEntityControllerBase"] = "CreateEntityControllerBase"; | ||
EventNames["CreateEntityControllerGrpc"] = "CreateEntityControllerGrpc"; | ||
EventNames["CreateEntityControllerGrpcBase"] = "CreateEntityControllerGrpcBase"; | ||
EventNames["CreateEntityControllerSpec"] = "CreateEntityControllerSpec"; | ||
@@ -40,2 +42,3 @@ EventNames["CreateServerAuth"] = "CreateServerAuth"; | ||
EventNames["CreateEntityControllerToManyRelationMethods"] = "CreateEntityControllerToManyRelationMethods"; | ||
EventNames["CreateEntityControllerGrpcToManyRelationMethods"] = "createEntityControllerGrpcToManyRelationMethods"; | ||
EventNames["CreateEntityResolverToManyRelationMethods"] = "CreateEntityResolverToManyRelationMethods"; | ||
@@ -42,0 +45,0 @@ EventNames["CreateEntityResolverToOneRelationMethods"] = "CreateEntityResolverToOneRelationMethods"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
159585
3748