@amplication/code-gen-types
Advanced tools
Comparing version 2.0.33 to 2.0.34
{ | ||
"name": "@amplication/code-gen-types", | ||
"version": "2.0.33", | ||
"version": "2.0.34", | ||
"description": "This library supplies all the contracts for Amplication Code Generation. The purpose is to make the contracts available for inclusion in plugins.", | ||
@@ -16,3 +16,5 @@ "main": "./src/index.js", | ||
"tslib": "^2.6.2", | ||
"type-fest": "^3.11.0", | ||
"type-fest": "^3.11.0" | ||
}, | ||
"peerDependencies": { | ||
"@amplication/csharp-ast": "*" | ||
@@ -19,0 +21,0 @@ }, |
@@ -22,7 +22,7 @@ # amplication-code-gen-types | ||
npx nx build amplication-code-gen-types | ||
npx nx build code-gen-types | ||
cd ./dist/packages/amplication-code-gen-types | ||
cd ./dist/libs/util/code-gen-types | ||
npm publish --access public .... | ||
``` |
@@ -1,2 +0,3 @@ | ||
import { Entity, EntityLookupField, ModuleContainer, ModuleAction, entityActions } from "./code-gen-types"; | ||
import { CodeBlock } from "@amplication/csharp-ast"; | ||
import { Entity, EntityLookupField, ModuleContainer, ModuleAction, entityActions, ModuleActionsAndDtos } from "./code-gen-types"; | ||
import { EventParams } from "./plugins.types"; | ||
@@ -7,3 +8,2 @@ export interface CreateEntityServiceBaseParams extends EventParams { | ||
apisDir: string; | ||
moduleContainers: ModuleContainer[]; | ||
moduleActions: ModuleAction[]; | ||
@@ -28,5 +28,30 @@ entities: Entity[]; | ||
apisDir: string; | ||
moduleContainers: ModuleContainer[]; | ||
entityActions: entityActions; | ||
moduleActions: ModuleAction[]; | ||
entities: Entity[]; | ||
} | ||
export interface CreateControllerModuleFileParams extends EventParams { | ||
moduleActionsAndDtos: ModuleActionsAndDtos; | ||
resourceName: string; | ||
controllerModuleBasePath: string; | ||
} | ||
export interface CreateControllerBaseModuleFileParams extends EventParams { | ||
moduleActionsAndDtos: ModuleActionsAndDtos; | ||
resourceName: string; | ||
controllerBaseModuleBasePath: string; | ||
} | ||
export interface CreateEntityModelParams extends EventParams { | ||
entity: Entity; | ||
entities: Entity[]; | ||
resourceName: string; | ||
apisDir: string; | ||
} | ||
export interface CreateResourceDbContextFileParams extends EventParams { | ||
entities: Entity[]; | ||
resourceName: string; | ||
resourceDbContextPath: string; | ||
} | ||
export interface CreateSeedDevelopmentDataFileParams extends EventParams { | ||
seedFilePath: string; | ||
resourceName: string; | ||
} | ||
export interface CreateEntityGrpcControllerParams extends EventParams { | ||
@@ -57,5 +82,2 @@ entity: Entity; | ||
}[]; | ||
export interface CreateServerDotEnvParams extends EventParams { | ||
envVariables: VariableDictionary; | ||
} | ||
export interface CreateServerGitIgnoreParams extends EventParams { | ||
@@ -71,8 +93,15 @@ gitignorePaths: string[]; | ||
} | ||
export interface CreateServerDockerComposeDBParams extends EventParams { | ||
fileContent: string; | ||
export interface CreateServerCsprojParams extends EventParams { | ||
propertyGroup: Record<string, string>; | ||
packageReferences: { | ||
include: string; | ||
version: string; | ||
includeAssets?: string; | ||
privateAssets?: string; | ||
}[]; | ||
} | ||
export interface CreateServerAppsettingsParams extends EventParams { | ||
updateProperties: { | ||
[key: string]: any; | ||
}[]; | ||
outputFileName: string; | ||
}; | ||
} | ||
@@ -89,3 +118,17 @@ export interface CreateMessageBrokerParams extends EventParams { | ||
} | ||
export interface CreateMainFileParams extends EventParams { | ||
export interface CreateProgramFileParams extends EventParams { | ||
/** | ||
* List of code blocks that will be added to the program file. | ||
* The code blocks will be added to the `builder` object, before builder.Build() gets called. | ||
* i.e. `builder.services.AddControllers();` | ||
* @type {CodeBlock[]} | ||
*/ | ||
builderServicesBlocks: CodeBlock[]; | ||
/** | ||
* List of code blocks that will be added to the program file. | ||
* The code blocks will be added to the `app` object after builder.Build() gets called. | ||
* i.e. `app.UseCors();` | ||
* @type {CodeBlock[]} | ||
*/ | ||
appBlocks: CodeBlock[]; | ||
} | ||
@@ -117,2 +160,7 @@ export interface CreateSwaggerParams extends EventParams { | ||
} | ||
export interface CreateEntityExtensionsParams extends EventParams { | ||
entity: Entity; | ||
resourceName: string; | ||
apisDir: string; | ||
} | ||
export interface SecretsNameKey { | ||
@@ -119,0 +167,0 @@ name: string; |
@@ -1,2 +0,2 @@ | ||
import { CreateDTOsParams, CreateEntityControllerBaseParams, CreateEntityControllerParams, CreateEntityControllerToManyRelationMethodsParams, CreateEntityGrpcControllerBaseParams, CreateEntityGrpcControllerParams, CreateEntityInterfaceParams, CreateEntityServiceBaseParams, CreateEntityServiceParams, CreateMainFileParams, CreateMessageBrokerClientOptionsFactoryParams, CreateMessageBrokerParams, CreateMessageBrokerServiceBaseParams, CreateMessageBrokerServiceParams, CreateMessageBrokerTopicsEnumParams, CreateSeedParams, CreateServerAuthParams, CreateServerDockerComposeDBParams, CreateServerDockerComposeParams, CreateServerDotEnvParams, CreateServerGitIgnoreParams, CreateServerParams, CreateServerSecretsManagerParams, CreateSwaggerParams, LoadStaticFilesParams } from "./dotnet-plugin-events-params.types"; | ||
import { CreateDTOsParams, CreateEntityControllerBaseParams, CreateEntityControllerParams, CreateEntityControllerToManyRelationMethodsParams, CreateEntityExtensionsParams, CreateEntityGrpcControllerBaseParams, CreateEntityGrpcControllerParams, CreateEntityInterfaceParams, CreateEntityModelParams, CreateEntityServiceBaseParams, CreateEntityServiceParams, CreateMessageBrokerClientOptionsFactoryParams, CreateMessageBrokerParams, CreateMessageBrokerServiceBaseParams, CreateMessageBrokerServiceParams, CreateMessageBrokerTopicsEnumParams, CreateProgramFileParams, CreateSeedParams, CreateServerAppsettingsParams, CreateServerAuthParams, CreateServerCsprojParams, CreateServerDockerComposeParams, CreateServerGitIgnoreParams, CreateServerParams, CreateServerSecretsManagerParams, CreateSwaggerParams, LoadStaticFilesParams, CreateResourceDbContextFileParams, CreateSeedDevelopmentDataFileParams, CreateControllerModuleFileParams, CreateControllerBaseModuleFileParams } from "./dotnet-plugin-events-params.types"; | ||
import { DotnetEventNames, PluginEventType } from "./dotnet-plugins.types"; | ||
@@ -7,4 +7,5 @@ import { CodeBlock, Interface } from "@amplication/csharp-ast"; | ||
[DotnetEventNames.CreateServer]?: PluginEventType<CreateServerParams>; | ||
[DotnetEventNames.CreateServerDotEnv]?: PluginEventType<CreateServerDotEnvParams, CodeBlock>; | ||
[DotnetEventNames.CreateServerGitIgnore]?: PluginEventType<CreateServerGitIgnoreParams, CodeBlock>; | ||
[DotnetEventNames.CreateServerCsproj]?: PluginEventType<CreateServerCsprojParams, CodeBlock>; | ||
[DotnetEventNames.CreateServerAppsettings]?: PluginEventType<CreateServerAppsettingsParams, CodeBlock>; | ||
[DotnetEventNames.CreateEntityService]?: PluginEventType<CreateEntityServiceParams>; | ||
@@ -17,3 +18,2 @@ [DotnetEventNames.CreateEntityServiceBase]?: PluginEventType<CreateEntityServiceBaseParams>; | ||
[DotnetEventNames.CreateServerDockerCompose]?: PluginEventType<CreateServerDockerComposeParams, CodeBlock>; | ||
[DotnetEventNames.CreateServerDockerComposeDB]?: PluginEventType<CreateServerDockerComposeDBParams, CodeBlock>; | ||
[DotnetEventNames.CreateMessageBroker]?: PluginEventType<CreateMessageBrokerParams>; | ||
@@ -24,3 +24,3 @@ [DotnetEventNames.CreateMessageBrokerTopicsEnum]?: PluginEventType<CreateMessageBrokerTopicsEnumParams>; | ||
[DotnetEventNames.CreateMessageBrokerServiceBase]?: PluginEventType<CreateMessageBrokerServiceBaseParams>; | ||
[DotnetEventNames.CreateMainFile]?: PluginEventType<CreateMainFileParams>; | ||
[DotnetEventNames.CreateProgramFile]?: PluginEventType<CreateProgramFileParams, CodeBlock>; | ||
[DotnetEventNames.CreateSwagger]?: PluginEventType<CreateSwaggerParams>; | ||
@@ -30,5 +30,11 @@ [DotnetEventNames.CreateSeed]?: PluginEventType<CreateSeedParams>; | ||
[DotnetEventNames.CreateDTOs]?: PluginEventType<CreateDTOsParams>; | ||
[DotnetEventNames.LoadStaticFiles]?: PluginEventType<LoadStaticFilesParams>; | ||
[DotnetEventNames.LoadStaticFiles]?: PluginEventType<LoadStaticFilesParams, CodeBlock>; | ||
[DotnetEventNames.CreateServerSecretsManager]?: PluginEventType<CreateServerSecretsManagerParams>; | ||
[DotnetEventNames.CreateEntityInterface]?: PluginEventType<CreateEntityInterfaceParams, Interface>; | ||
[DotnetEventNames.CreateEntityExtensions]?: PluginEventType<CreateEntityExtensionsParams>; | ||
[DotnetEventNames.CreateEntityModel]?: PluginEventType<CreateEntityModelParams>; | ||
[DotnetEventNames.CreateResourceDbContextFile]?: PluginEventType<CreateResourceDbContextFileParams>; | ||
[DotnetEventNames.CreateSeedDevelopmentDataFile]?: PluginEventType<CreateSeedDevelopmentDataFileParams>; | ||
[DotnetEventNames.CreateControllerModuleFile]?: PluginEventType<CreateControllerModuleFileParams>; | ||
[DotnetEventNames.CreateControllerBaseModuleFile]?: PluginEventType<CreateControllerBaseModuleFileParams>; | ||
}; |
@@ -67,4 +67,3 @@ import type { Promisable } from "type-fest"; | ||
CreateServerAppModule = "CreateServerAppModule", | ||
CreateMainFile = "CreateMainFile", | ||
CreateServerDotEnv = "CreateServerDotEnv", | ||
CreateProgramFile = "CreateProgramFile", | ||
CreateServerGitIgnore = "CreateServerGitIgnore", | ||
@@ -81,6 +80,5 @@ CreateAdminGitIgnore = "CreateAdminGitIgnore", | ||
CreateServerDockerCompose = "CreateServerDockerCompose", | ||
CreateServerDockerComposeDB = "CreateServerDockerComposeDB", | ||
CreateServerDockerComposeDev = "CreateServerDockerComposeDev", | ||
CreatePrismaSchema = "CreatePrismaSchema", | ||
CreateServerPackageJson = "CreateServerPackageJson", | ||
CreateServerCsproj = "CreateServerCsproj", | ||
CreateServerAppsettings = "CreateServerAppsettings", | ||
CreateAdminUIPackageJson = "CreateAdminUIPackageJson", | ||
@@ -104,3 +102,9 @@ CreateEntityModule = "CreateEntityModule", | ||
CreateServerSecretsManager = "CreateServerSecretsManager", | ||
CreateEntityInterface = "CreateEntityInterface" | ||
CreateEntityInterface = "CreateEntityInterface", | ||
CreateEntityExtensions = "CreateEntityExtensions", | ||
CreateEntityModel = "CreateEntityModel", | ||
CreateResourceDbContextFile = "CreateResourceDbContextFile", | ||
CreateSeedDevelopmentDataFile = "CreateSeedDevelopmentDataFile", | ||
CreateControllerModuleFile = "CreateControllerModuleFile", | ||
CreateControllerBaseModuleFile = "CreateControllerBaseModuleFile" | ||
} | ||
@@ -107,0 +111,0 @@ export interface AmplicationPlugin { |
@@ -16,4 +16,3 @@ "use strict"; | ||
DotnetEventNames["CreateServerAppModule"] = "CreateServerAppModule"; | ||
DotnetEventNames["CreateMainFile"] = "CreateMainFile"; | ||
DotnetEventNames["CreateServerDotEnv"] = "CreateServerDotEnv"; | ||
DotnetEventNames["CreateProgramFile"] = "CreateProgramFile"; | ||
DotnetEventNames["CreateServerGitIgnore"] = "CreateServerGitIgnore"; | ||
@@ -30,6 +29,5 @@ DotnetEventNames["CreateAdminGitIgnore"] = "CreateAdminGitIgnore"; | ||
DotnetEventNames["CreateServerDockerCompose"] = "CreateServerDockerCompose"; | ||
DotnetEventNames["CreateServerDockerComposeDB"] = "CreateServerDockerComposeDB"; | ||
DotnetEventNames["CreateServerDockerComposeDev"] = "CreateServerDockerComposeDev"; | ||
DotnetEventNames["CreatePrismaSchema"] = "CreatePrismaSchema"; | ||
DotnetEventNames["CreateServerPackageJson"] = "CreateServerPackageJson"; | ||
DotnetEventNames["CreateServerCsproj"] = "CreateServerCsproj"; | ||
DotnetEventNames["CreateServerAppsettings"] = "CreateServerAppsettings"; | ||
DotnetEventNames["CreateAdminUIPackageJson"] = "CreateAdminUIPackageJson"; | ||
@@ -54,3 +52,9 @@ DotnetEventNames["CreateEntityModule"] = "CreateEntityModule"; | ||
DotnetEventNames["CreateEntityInterface"] = "CreateEntityInterface"; | ||
DotnetEventNames["CreateEntityExtensions"] = "CreateEntityExtensions"; | ||
DotnetEventNames["CreateEntityModel"] = "CreateEntityModel"; | ||
DotnetEventNames["CreateResourceDbContextFile"] = "CreateResourceDbContextFile"; | ||
DotnetEventNames["CreateSeedDevelopmentDataFile"] = "CreateSeedDevelopmentDataFile"; | ||
DotnetEventNames["CreateControllerModuleFile"] = "CreateControllerModuleFile"; | ||
DotnetEventNames["CreateControllerBaseModuleFile"] = "CreateControllerBaseModuleFile"; | ||
})(DotnetEventNames || (exports.DotnetEventNames = DotnetEventNames = {})); | ||
//# sourceMappingURL=dotnet-plugins.types.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SortOrder = exports.Role = exports.QueryMode = exports.EnumWorkspaceMemberType = exports.EnumUserActionType = exports.EnumUserActionStatus = exports.EnumTimeGroup = exports.EnumSubscriptionStatus = exports.EnumSubscriptionPlan = exports.EnumSchemaNames = exports.EnumResourceType = exports.EnumPreviewAccountType = exports.EnumPendingChangeOriginType = exports.EnumPendingChangeAction = exports.EnumModuleDtoType = exports.EnumModuleDtoPropertyType = exports.EnumModuleActionType = exports.EnumModuleActionRestVerb = exports.EnumModuleActionRestInputSource = exports.EnumModuleActionGqlOperation = exports.EnumMessagePatternConnectionOptions = exports.EnumGitProvider = exports.EnumGitOrganizationType = exports.EnumEntityPermissionType = exports.EnumEntityAction = exports.EnumDataType = exports.EnumBuildStatus = exports.EnumBlockType = exports.EnumAuthProviderType = exports.EnumAssistantMessageRole = exports.EnumAssistantFunctions = exports.EnumActionStepStatus = exports.EnumActionLogLevel = exports.CodeGeneratorVersionStrategy = void 0; | ||
exports.SortOrder = exports.Role = exports.QueryMode = exports.EnumWorkspaceMemberType = exports.EnumUserActionType = exports.EnumUserActionStatus = exports.EnumTimeGroup = exports.EnumSubscriptionStatus = exports.EnumSubscriptionPlan = exports.EnumSchemaNames = exports.EnumResourceType = exports.EnumPreviewAccountType = exports.EnumPendingChangeOriginType = exports.EnumPendingChangeAction = exports.EnumModuleDtoType = exports.EnumModuleDtoPropertyType = exports.EnumModuleActionType = exports.EnumModuleActionRestVerb = exports.EnumModuleActionRestInputSource = exports.EnumModuleActionGqlOperation = exports.EnumMessagePatternConnectionOptions = exports.EnumGitProvider = exports.EnumGitOrganizationType = exports.EnumEntityPermissionType = exports.EnumEntityAction = exports.EnumDataType = exports.EnumCodeGenerator = exports.EnumBuildStatus = exports.EnumBlockType = exports.EnumAuthProviderType = exports.EnumAssistantMessageType = exports.EnumAssistantMessageRole = exports.EnumAssistantFunctions = exports.EnumActionStepStatus = exports.EnumActionLogLevel = exports.CodeGeneratorVersionStrategy = void 0; | ||
var CodeGeneratorVersionStrategy; | ||
@@ -49,2 +49,7 @@ (function (CodeGeneratorVersionStrategy) { | ||
})(EnumAssistantMessageRole || (exports.EnumAssistantMessageRole = EnumAssistantMessageRole = {})); | ||
var EnumAssistantMessageType; | ||
(function (EnumAssistantMessageType) { | ||
EnumAssistantMessageType["Default"] = "Default"; | ||
EnumAssistantMessageType["Onboarding"] = "Onboarding"; | ||
})(EnumAssistantMessageType || (exports.EnumAssistantMessageType = EnumAssistantMessageType = {})); | ||
var EnumAuthProviderType; | ||
@@ -75,2 +80,7 @@ (function (EnumAuthProviderType) { | ||
})(EnumBuildStatus || (exports.EnumBuildStatus = EnumBuildStatus = {})); | ||
var EnumCodeGenerator; | ||
(function (EnumCodeGenerator) { | ||
EnumCodeGenerator["DotNet"] = "DotNet"; | ||
EnumCodeGenerator["NodeJs"] = "NodeJs"; | ||
})(EnumCodeGenerator || (exports.EnumCodeGenerator = EnumCodeGenerator = {})); | ||
var EnumDataType; | ||
@@ -77,0 +87,0 @@ (function (EnumDataType) { |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
@@ -8,4 +8,7 @@ /** | ||
maxFileSize?: number; | ||
/** | ||
* @minItems 0 | ||
*/ | ||
allowedMimeTypes?: string[]; | ||
containerPath?: string; | ||
} |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
@@ -7,2 +7,5 @@ /** | ||
export interface MultiSelectOptionSet { | ||
/** | ||
* @minItems 1 | ||
*/ | ||
options: [ | ||
@@ -9,0 +12,0 @@ { |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
@@ -7,2 +7,5 @@ /** | ||
export interface OptionSet { | ||
/** | ||
* @minItems 1 | ||
*/ | ||
options: [ | ||
@@ -9,0 +12,0 @@ { |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
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 too big to display
Sorry, the diff of this file is not supported yet
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
233821
5304
1
- Removed@amplication/csharp-ast@*