@amplication/code-gen-types
Advanced tools
Comparing version 2.0.15 to 2.0.16
{ | ||
"name": "@amplication/code-gen-types", | ||
"version": "2.0.15", | ||
"version": "2.0.16", | ||
"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", |
@@ -49,3 +49,3 @@ import type { namedTypes } from "ast-types"; | ||
} | ||
export interface CreateEntityControllerGrpcParams extends EventParams { | ||
export interface CreateEntityGrpcControllerParams extends EventParams { | ||
template: namedTypes.File; | ||
@@ -60,3 +60,3 @@ entityName: string; | ||
} | ||
export interface CreateEntityControllerGrpcBaseParams extends EventParams { | ||
export interface CreateEntityGrpcControllerBaseParams extends EventParams { | ||
template: namedTypes.File; | ||
@@ -85,3 +85,3 @@ entity: Entity; | ||
} | ||
export interface CreateEntityControllerGrpcToManyRelationMethodsParams extends EventParams { | ||
export interface CreateEntityGrpcControllerToManyRelationMethodsParams extends EventParams { | ||
field: EntityLookupField; | ||
@@ -131,2 +131,15 @@ entity: Entity; | ||
} | ||
export interface CreateEntityGrpcControllerSpecParams extends EventParams { | ||
entity: Entity; | ||
entityType: string; | ||
template: namedTypes.File; | ||
templateMapping: { | ||
[key: string]: any; | ||
}; | ||
entityServiceModulePath: string; | ||
entityControllerModulePath: string; | ||
entityControllerBaseModulePath: string; | ||
controllerId: namedTypes.Identifier; | ||
serviceId: namedTypes.Identifier; | ||
} | ||
export interface CreateServerAuthParams extends EventParams { | ||
@@ -133,0 +146,0 @@ } |
@@ -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, CreateEntityControllerGrpcParams, CreateEntityControllerGrpcBaseParams, CreateEntityControllerGrpcToManyRelationMethodsParams } 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, CreateEntityGrpcControllerSpecParams, CreateEntityGrpcControllerToManyRelationMethodsParams, CreateEntityGrpcControllerParams, CreateEntityGrpcControllerBaseParams } from "./plugin-events-params"; | ||
import { EventNames, PluginEventType } from "./plugins-types"; | ||
@@ -15,4 +15,4 @@ export type Events = { | ||
[EventNames.CreateEntityControllerBase]?: PluginEventType<CreateEntityControllerBaseParams>; | ||
[EventNames.CreateEntityControllerGrpc]?: PluginEventType<CreateEntityControllerGrpcParams>; | ||
[EventNames.CreateEntityControllerGrpcBase]?: PluginEventType<CreateEntityControllerGrpcBaseParams>; | ||
[EventNames.CreateEntityGrpcController]?: PluginEventType<CreateEntityGrpcControllerParams>; | ||
[EventNames.CreateEntityGrpcControllerBase]?: PluginEventType<CreateEntityGrpcControllerBaseParams>; | ||
[EventNames.CreateServerDockerCompose]?: PluginEventType<CreateServerDockerComposeParams>; | ||
@@ -40,4 +40,5 @@ [EventNames.CreateServerDockerComposeDB]?: PluginEventType<CreateServerDockerComposeDBParams>; | ||
[EventNames.CreateEntityControllerSpec]?: PluginEventType<CreateEntityControllerSpecParams>; | ||
[EventNames.CreateEntityGrpcControllerSpec]?: PluginEventType<CreateEntityGrpcControllerSpecParams>; | ||
[EventNames.CreateEntityControllerToManyRelationMethods]?: PluginEventType<CreateEntityControllerToManyRelationMethodsParams>; | ||
[EventNames.CreateEntityControllerGrpcToManyRelationMethods]?: PluginEventType<CreateEntityControllerGrpcToManyRelationMethodsParams>; | ||
[EventNames.CreateEntityGrpcControllerToManyRelationMethods]?: PluginEventType<CreateEntityGrpcControllerToManyRelationMethodsParams>; | ||
[EventNames.CreateEntityResolverToManyRelationMethods]?: PluginEventType<CreateEntityResolverToManyRelationMethodsParams>; | ||
@@ -44,0 +45,0 @@ [EventNames.CreateEntityResolverToOneRelationMethods]?: PluginEventType<CreateEntityResolverToOneRelationMethodsParams>; |
@@ -55,5 +55,6 @@ import type { Promisable } from "type-fest"; | ||
CreateEntityControllerBase = "CreateEntityControllerBase", | ||
CreateEntityControllerGrpc = "CreateEntityControllerGrpc", | ||
CreateEntityControllerGrpcBase = "CreateEntityControllerGrpcBase", | ||
CreateEntityGrpcController = "CreateEntityGrpcController", | ||
CreateEntityGrpcControllerBase = "CreateEntityGrpcControllerBase", | ||
CreateEntityControllerSpec = "CreateEntityControllerSpec", | ||
CreateEntityGrpcControllerSpec = "CreateEntityGrpcControllerSpec", | ||
CreateServerAuth = "CreateServerAuth", | ||
@@ -89,3 +90,3 @@ CreateAdminAppModule = "CreateAdminAppModule", | ||
CreateEntityControllerToManyRelationMethods = "CreateEntityControllerToManyRelationMethods", | ||
CreateEntityControllerGrpcToManyRelationMethods = "createEntityControllerGrpcToManyRelationMethods", | ||
CreateEntityGrpcControllerToManyRelationMethods = "createEntityGrpcControllerToManyRelationMethods", | ||
CreateEntityResolverToManyRelationMethods = "CreateEntityResolverToManyRelationMethods", | ||
@@ -92,0 +93,0 @@ CreateEntityResolverToOneRelationMethods = "CreateEntityResolverToOneRelationMethods", |
@@ -8,5 +8,6 @@ "use strict"; | ||
EventNames["CreateEntityControllerBase"] = "CreateEntityControllerBase"; | ||
EventNames["CreateEntityControllerGrpc"] = "CreateEntityControllerGrpc"; | ||
EventNames["CreateEntityControllerGrpcBase"] = "CreateEntityControllerGrpcBase"; | ||
EventNames["CreateEntityGrpcController"] = "CreateEntityGrpcController"; | ||
EventNames["CreateEntityGrpcControllerBase"] = "CreateEntityGrpcControllerBase"; | ||
EventNames["CreateEntityControllerSpec"] = "CreateEntityControllerSpec"; | ||
EventNames["CreateEntityGrpcControllerSpec"] = "CreateEntityGrpcControllerSpec"; | ||
EventNames["CreateServerAuth"] = "CreateServerAuth"; | ||
@@ -42,3 +43,3 @@ EventNames["CreateAdminAppModule"] = "CreateAdminAppModule"; | ||
EventNames["CreateEntityControllerToManyRelationMethods"] = "CreateEntityControllerToManyRelationMethods"; | ||
EventNames["CreateEntityControllerGrpcToManyRelationMethods"] = "createEntityControllerGrpcToManyRelationMethods"; | ||
EventNames["CreateEntityGrpcControllerToManyRelationMethods"] = "createEntityGrpcControllerToManyRelationMethods"; | ||
EventNames["CreateEntityResolverToManyRelationMethods"] = "CreateEntityResolverToManyRelationMethods"; | ||
@@ -45,0 +46,0 @@ EventNames["CreateEntityResolverToOneRelationMethods"] = "CreateEntityResolverToOneRelationMethods"; |
Sorry, the diff of this file is not supported yet
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
160286
3763