Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amplication/code-gen-types

Package Overview
Dependencies
Maintainers
8
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplication/code-gen-types - npm Package Compare versions

Comparing version 2.0.23 to 2.0.24

2

package.json
{
"name": "@amplication/code-gen-types",
"version": "2.0.23",
"version": "2.0.24",
"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",

@@ -6,2 +6,3 @@ import type { namedTypes } from "ast-types";

import { BuildLogger } from "./build-logger";
import { EnumModuleDtoDecoratorType } from "./models";
export { EnumDataType, EnumEntityAction, EnumEntityPermissionType, EnumMessagePatternConnectionOptions, EnumModuleActionType, EnumModuleDtoType, EnumModuleActionGqlOperation, EnumModuleActionRestVerb, EnumModuleDtoPropertyType, EnumModuleActionRestInputSource, } from "./models";

@@ -173,2 +174,3 @@ export type ServiceSettings = Omit<BlockOmittedFields<models.ServiceSettings>, "id">;

properties?: ModuleDtoProperty[];
decorators?: EnumModuleDtoDecoratorType[];
};

@@ -175,0 +177,0 @@ export type ModuleActionDefaultTypesNestedOnly = Extract<models.EnumModuleActionType, models.EnumModuleActionType.ChildrenConnect | models.EnumModuleActionType.ChildrenDisconnect | models.EnumModuleActionType.ChildrenFind | models.EnumModuleActionType.ChildrenUpdate | models.EnumModuleActionType.ParentGet>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SortOrder = exports.Role = exports.QueryMode = exports.EnumWorkspaceMemberType = exports.EnumUserActionType = exports.EnumUserActionStatus = 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.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.EnumModuleDtoDecoratorType = 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.EnumActionStepStatus = exports.EnumActionLogLevel = exports.CodeGeneratorVersionStrategy = void 0;
var CodeGeneratorVersionStrategy;

@@ -141,2 +141,8 @@ (function (CodeGeneratorVersionStrategy) {

})(EnumModuleActionType || (exports.EnumModuleActionType = EnumModuleActionType = {}));
var EnumModuleDtoDecoratorType;
(function (EnumModuleDtoDecoratorType) {
EnumModuleDtoDecoratorType["ObjectType"] = "ObjectType";
EnumModuleDtoDecoratorType["InputType"] = "InputType";
EnumModuleDtoDecoratorType["ArgsType"] = "ArgsType";
})(EnumModuleDtoDecoratorType || (exports.EnumModuleDtoDecoratorType = EnumModuleDtoDecoratorType = {}));
var EnumModuleDtoPropertyType;

@@ -191,2 +197,3 @@ (function (EnumModuleDtoPropertyType) {

EnumPreviewAccountType["None"] = "None";
EnumPreviewAccountType["PreviewOnboarding"] = "PreviewOnboarding";
})(EnumPreviewAccountType || (exports.EnumPreviewAccountType = EnumPreviewAccountType = {}));

@@ -221,2 +228,9 @@ var EnumResourceType;

})(EnumSubscriptionStatus || (exports.EnumSubscriptionStatus = EnumSubscriptionStatus = {}));
var EnumTimeGroup;
(function (EnumTimeGroup) {
EnumTimeGroup["Day"] = "Day";
EnumTimeGroup["Month"] = "Month";
EnumTimeGroup["Week"] = "Week";
EnumTimeGroup["Year"] = "Year";
})(EnumTimeGroup || (exports.EnumTimeGroup = EnumTimeGroup = {}));
var EnumUserActionStatus;

@@ -223,0 +237,0 @@ (function (EnumUserActionStatus) {

import type { namedTypes } from "ast-types";
import { DTOs, Entity, EntityComponents, EntityField, EntityLookupField, EnumDataType, ModuleMap, NamedClassDeclaration, entityActions, ModuleContainer } from "./code-gen-types";
import { DTOs, Entity, EntityComponents, EntityField, EntityLookupField, EnumDataType, ModuleMap, NamedClassDeclaration, entityActions, ModuleContainer, ModuleAction } from "./code-gen-types";
import { EventParams } from "./plugins.types";

@@ -32,2 +32,12 @@ import type { Generator, DataSource, ScalarField, ObjectField } from "prisma-schema-dsl-types";

}
export interface CreateCustomModuleServiceParams extends EventParams {
customModuleName: string;
templateMapping: {
[key: string]: any;
};
serviceId: namedTypes.Identifier;
template: namedTypes.File;
moduleActions: ModuleAction[];
dtoNameToPath: Record<string, string>;
}
export interface CreateEntityControllerParams extends EventParams {

@@ -44,2 +54,14 @@ template: namedTypes.File;

}
export interface CreateCustomModuleControllerParams extends EventParams {
template: namedTypes.File;
customModuleName: string;
templateMapping: {
[key: string]: any;
};
controllerId: namedTypes.Identifier;
serviceId: namedTypes.Identifier;
moduleActions: ModuleAction[];
customModuleServiceModule: string;
dtoNameToPath: Record<string, string>;
}
export interface CreateEntityControllerBaseParams extends EventParams {

@@ -250,2 +272,15 @@ template: namedTypes.File;

}
export interface CreateCustomModuleModuleParams extends EventParams {
customModuleName: string;
entityServiceModule: string;
entityControllerModule: string | undefined;
entityResolverModule: string | undefined;
controllerId: namedTypes.Identifier;
serviceId: namedTypes.Identifier;
resolverId: namedTypes.Identifier;
template: namedTypes.File;
templateMapping: {
[key: string]: any;
};
}
export interface CreateEntityModuleBaseParams extends EventParams {

@@ -271,2 +306,14 @@ entityName: string;

}
export interface CreateCustomModuleResolverParams extends EventParams {
template: namedTypes.File;
customModuleName: string;
resolverId: namedTypes.Identifier;
serviceId: namedTypes.Identifier;
templateMapping: {
[key: string]: any;
};
moduleActions: ModuleAction[];
customModuleServiceModule: string;
dtoNameToPath: Record<string, string>;
}
export interface CreateEntityResolverBaseParams extends EventParams {

@@ -273,0 +320,0 @@ template: namedTypes.File;

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc