@amplication/code-gen-types
Advanced tools
Comparing version 2.0.18 to 2.0.19
{ | ||
"name": "@amplication/code-gen-types", | ||
"version": "2.0.18", | ||
"version": "2.0.19", | ||
"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", |
@@ -293,1 +293,12 @@ import type { namedTypes } from "ast-types"; | ||
} | ||
export interface CreateServerSecretsManagerParams extends EventParams { | ||
/** | ||
* Array of secretsName secrectKey pairs that will generate the SecretsNameKey enum. | ||
* SecrectKey is used by the Secrets Manager Service to retrieve the secret value | ||
*/ | ||
secretsNameKey: SecretsNameKey[]; | ||
} | ||
export interface SecretsNameKey { | ||
name: string; | ||
key: string; | ||
} |
@@ -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, CreateEntityGrpcControllerToManyRelationMethodsParams, CreateEntityGrpcControllerParams, CreateEntityGrpcControllerBaseParams } from "./plugin-events-params.types"; | ||
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, CreateEntityGrpcControllerToManyRelationMethodsParams, CreateEntityGrpcControllerParams, CreateEntityGrpcControllerBaseParams, CreateServerSecretsManagerParams } from "./plugin-events-params.types"; | ||
import { EventNames, PluginEventType } from "./plugins.types"; | ||
@@ -45,2 +45,3 @@ export type Events = { | ||
[EventNames.LoadStaticFiles]?: PluginEventType<LoadStaticFilesParams>; | ||
[EventNames.CreateServerSecretsManager]?: PluginEventType<CreateServerSecretsManagerParams>; | ||
}; |
@@ -93,3 +93,7 @@ import type { Promisable } from "type-fest"; | ||
LoadStaticFiles = "LoadStaticFiles", | ||
CreateConnectMicroservices = "CreateConnectMicroservices" | ||
CreateConnectMicroservices = "CreateConnectMicroservices", | ||
/** | ||
* Event that will allow plugins to add secrets references to the SecretsKeyNames enum | ||
*/ | ||
CreateServerSecretsManager = "CreateServerSecretsManager" | ||
} | ||
@@ -96,0 +100,0 @@ export interface AmplicationPlugin { |
@@ -47,3 +47,7 @@ "use strict"; | ||
EventNames["CreateConnectMicroservices"] = "CreateConnectMicroservices"; | ||
/** | ||
* Event that will allow plugins to add secrets references to the SecretsKeyNames enum | ||
*/ | ||
EventNames["CreateServerSecretsManager"] = "CreateServerSecretsManager"; | ||
})(EventNames || (exports.EventNames = EventNames = {})); | ||
//# sourceMappingURL=plugins.types.js.map |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
160550
3767