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
7
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 1.1.17 to 1.1.18

2

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

@@ -1347,2 +1347,3 @@ export type Maybe<T> = T | null;

admin: Scalars['Boolean'];
defaultBranch: Scalars['String'];
fullName: Scalars['String'];

@@ -1349,0 +1350,0 @@ name: Scalars['String'];

import { namedTypes } from "ast-types";
import { Entity, EntityField, EntityLookupField, EnumDataType, Module, NamedClassDeclaration } from "./code-gen-types";
import { Entity, EntityField, EnumDataType, Module, NamedClassDeclaration } from "./code-gen-types";
import { EventParams } from "./plugins-types";

@@ -49,34 +49,2 @@ import { Generator, DataSource, ScalarField, ObjectField } from "prisma-schema-dsl-types";

}
export interface CreateEntityControllerToManyRelationMethodsParams extends EventParams {
field: EntityLookupField;
entity: Entity;
entityType: string;
whereUniqueInput: NamedClassDeclaration;
serviceId: namedTypes.Identifier;
methods: namedTypes.ClassMethod[];
toManyFile: namedTypes.File;
toManyMapping: {
[key: string]: any;
};
}
export interface CreateEntityResolverToManyRelationMethodsParams extends EventParams {
field: EntityLookupField;
entityType: string;
serviceId: namedTypes.Identifier;
methods: namedTypes.ClassMethod[];
toManyFile: namedTypes.File;
toManyMapping: {
[key: string]: any;
};
}
export interface CreateEntityResolverToOneRelationMethodsParams extends EventParams {
field: EntityLookupField;
entityType: string;
serviceId: namedTypes.Identifier;
methods: namedTypes.ClassMethod[];
toOneFile: namedTypes.File;
toOneMapping: {
[key: string]: any;
};
}
export interface CreateEntityControllerSpecParams extends EventParams {

@@ -110,2 +78,3 @@ entity: Entity;

export interface CreateServerAuthParams extends EventParams {
srcDir: string;
}

@@ -122,2 +91,6 @@ export interface CreateAdminUIParams extends EventParams {

}
export interface CreateServerGitIgnoreParams extends EventParams {
}
export interface CreateAdminGitIgnoreParams extends EventParams {
}
export interface CreateServerDockerComposeParams extends EventParams {

@@ -124,0 +97,0 @@ fileContent: 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, CreateUserInfoParams, CreateTokenPayloadInterfaceParams, CreateAdminUIPackageJsonParams, CreateEntityControllerToManyRelationMethodsParams, CreateEntityResolverToManyRelationMethodsParams, CreateEntityResolverToOneRelationMethodsParams } 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, CreateServerGitIgnoreParams, CreateAdminGitIgnoreParams } from "./plugin-events-params";
import { EventNames, PluginEventType } from "./plugins-types";

@@ -10,2 +10,4 @@ export type Events = {

[EventNames.CreateServerDotEnv]?: PluginEventType<CreateServerDotEnvParams>;
[EventNames.CreateServerGitIgnore]?: PluginEventType<CreateServerGitIgnoreParams>;
[EventNames.CreateAdminGitIgnore]?: PluginEventType<CreateAdminGitIgnoreParams>;
[EventNames.CreateEntityService]?: PluginEventType<CreateEntityServiceParams>;

@@ -34,5 +36,2 @@ [EventNames.CreateEntityServiceBase]?: PluginEventType<CreateEntityServiceBaseParams>;

[EventNames.CreateEntityControllerSpec]?: PluginEventType<CreateEntityControllerSpecParams>;
[EventNames.CreateEntityControllerToManyRelationMethods]?: PluginEventType<CreateEntityControllerToManyRelationMethodsParams>;
[EventNames.CreateEntityResolverToManyRelationMethods]?: PluginEventType<CreateEntityResolverToManyRelationMethodsParams>;
[EventNames.CreateEntityResolverToOneRelationMethods]?: PluginEventType<CreateEntityResolverToOneRelationMethodsParams>;
};

@@ -57,2 +57,4 @@ import type { Promisable } from "type-fest";

CreateServerDotEnv = "CreateServerDotEnv",
CreateServerGitIgnore = "CreateServerGitIgnore",
CreateAdminGitIgnore = "CreateAdminGitIgnore",
CreateMessageBroker = "CreateMessageBroker",

@@ -76,6 +78,3 @@ CreateMessageBrokerTopicsEnum = "CreateMessageBrokerTopicsEnum",

CreateSwagger = "CreateSwagger",
CreateSeed = "CreateSeed",
CreateEntityControllerToManyRelationMethods = "CreateEntityControllerToManyRelationMethods",
CreateEntityResolverToManyRelationMethods = "CreateEntityResolverToManyRelationMethods",
CreateEntityResolverToOneRelationMethods = "CreateEntityResolverToOneRelationMethods"
CreateSeed = "CreateSeed"
}

@@ -82,0 +81,0 @@ export interface AmplicationPlugin {

@@ -16,2 +16,4 @@ "use strict";

EventNames["CreateServerDotEnv"] = "CreateServerDotEnv";
EventNames["CreateServerGitIgnore"] = "CreateServerGitIgnore";
EventNames["CreateAdminGitIgnore"] = "CreateAdminGitIgnore";
EventNames["CreateMessageBroker"] = "CreateMessageBroker";

@@ -36,6 +38,3 @@ EventNames["CreateMessageBrokerTopicsEnum"] = "CreateMessageBrokerTopicsEnum";

EventNames["CreateSeed"] = "CreateSeed";
EventNames["CreateEntityControllerToManyRelationMethods"] = "CreateEntityControllerToManyRelationMethods";
EventNames["CreateEntityResolverToManyRelationMethods"] = "CreateEntityResolverToManyRelationMethods";
EventNames["CreateEntityResolverToOneRelationMethods"] = "CreateEntityResolverToOneRelationMethods";
})(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

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