@amplication/code-gen-types
Advanced tools
Comparing version 1.1.15 to 1.1.16
{ | ||
"name": "@amplication/code-gen-types", | ||
"version": "1.1.15", | ||
"version": "1.1.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", |
@@ -71,2 +71,12 @@ import { namedTypes } from "ast-types"; | ||
} | ||
export interface CreateToOneRelationMethodsParams extends EventParams { | ||
field: EntityLookupField; | ||
entityType: string; | ||
serviceId: namedTypes.Identifier; | ||
methods: namedTypes.ClassMethod[]; | ||
toOneFile: namedTypes.File; | ||
toOneMapping: { | ||
[key: string]: any; | ||
}; | ||
} | ||
export interface CreateEntityControllerSpecParams extends EventParams { | ||
@@ -73,0 +83,0 @@ entity: Entity; |
@@ -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, CreateUserInfoParams, CreateTokenPayloadInterfaceParams, CreateAdminUIPackageJsonParams, CreateEntityControllerToManyRelationMethodsParams, CreateEntityResolverToManyRelationMethodsParams } 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, CreateUserInfoParams, CreateTokenPayloadInterfaceParams, CreateAdminUIPackageJsonParams, CreateEntityControllerToManyRelationMethodsParams, CreateEntityResolverToManyRelationMethodsParams, CreateToOneRelationMethodsParams } from "./plugin-events-params"; | ||
import { EventNames, PluginEventType } from "./plugins-types"; | ||
@@ -35,2 +35,3 @@ export type Events = { | ||
[EventNames.CreateEntityResolverToManyRelationMethods]?: PluginEventType<CreateEntityResolverToManyRelationMethodsParams>; | ||
[EventNames.CreateToOneRelationMethods]?: PluginEventType<CreateToOneRelationMethodsParams>; | ||
}; |
@@ -77,3 +77,4 @@ import type { Promisable } from "type-fest"; | ||
CreateEntityControllerToManyRelationMethods = "CreateEntityControllerToManyRelationMethods", | ||
CreateEntityResolverToManyRelationMethods = "CreateEntityResolverToManyRelationMethods" | ||
CreateEntityResolverToManyRelationMethods = "CreateEntityResolverToManyRelationMethods", | ||
CreateToOneRelationMethods = "CreateToOneRelationMethods" | ||
} | ||
@@ -80,0 +81,0 @@ export interface AmplicationPlugin { |
@@ -37,3 +37,4 @@ "use strict"; | ||
EventNames["CreateEntityResolverToManyRelationMethods"] = "CreateEntityResolverToManyRelationMethods"; | ||
EventNames["CreateToOneRelationMethods"] = "CreateToOneRelationMethods"; | ||
})(EventNames = exports.EventNames || (exports.EventNames = {})); | ||
//# sourceMappingURL=plugins-types.js.map |
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
130903
3192