@amplication/code-gen-types
Advanced tools
Comparing version 1.3.2 to 1.3.3
{ | ||
"name": "@amplication/code-gen-types", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"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,3 @@ "main": "src/index.js", | ||
"lodash": "^4.17.21", | ||
"prisma-schema-dsl-types": "^1.0.5", | ||
"prisma-schema-dsl-types": "^1.1.0", | ||
"type-fest": "0.11.0", | ||
@@ -19,0 +19,0 @@ "winston": "3.8.2" |
# amplication-code-gen-types | ||
This library was generated with [Nx](https://nx.dev). | ||
This library supplies all the contracts for Amplication Code Generation. | ||
The purpose is to make the contracts available for inclusion in plugins. | ||
@@ -5,0 +6,0 @@ ## Running unit tests |
@@ -9,1 +9,2 @@ export { getSchemaForDataType } from "./get-schema-for-data-type"; | ||
export * from "./dsg-resource-data"; | ||
export * from "./build-logger"; |
@@ -13,2 +13,3 @@ "use strict"; | ||
tslib_1.__exportStar(require("./dsg-resource-data"), exports); | ||
tslib_1.__exportStar(require("./build-logger"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -253,12 +253,25 @@ export type Maybe<T> = T | null; | ||
gitOrganizationId: Scalars['String']; | ||
/** Name of the git provider repository group. It is mandatory when GitOrganisation.useGroupingForRepositories is true */ | ||
groupName?: InputMaybe<Scalars['String']>; | ||
isOverrideGitRepository?: InputMaybe<Scalars['Boolean']>; | ||
name: Scalars['String']; | ||
resourceId: Scalars['String']; | ||
}; | ||
export type CreateGitRepositoryBaseInput = { | ||
gitOrganizationId: Scalars['String']; | ||
gitOrganizationType: EnumGitOrganizationType; | ||
gitProvider: EnumGitProvider; | ||
/** Name of the git provider repository group. It is mandatory when GitOrganisation.useGroupingForRepositories is true */ | ||
groupName?: InputMaybe<Scalars['String']>; | ||
isPublic: Scalars['Boolean']; | ||
name: Scalars['String']; | ||
}; | ||
export type CreateGitRepositoryInput = { | ||
gitGroupName?: InputMaybe<Scalars['String']>; | ||
gitOrganizationId: Scalars['String']; | ||
gitOrganizationType: EnumGitOrganizationType; | ||
gitProvider: EnumGitProvider; | ||
/** Name of the git provider repository group. It is mandatory when GitOrganisation.useGroupingForRepositories is true */ | ||
groupName?: InputMaybe<Scalars['String']>; | ||
isPublic: Scalars['Boolean']; | ||
name: Scalars['String']; | ||
public: Scalars['Boolean']; | ||
resourceId: Scalars['String']; | ||
@@ -645,6 +658,7 @@ }; | ||
}; | ||
/** Group of Repositories */ | ||
export type GitGroup = { | ||
displayName: Scalars['String']; | ||
id: Scalars['String']; | ||
name: Scalars['String']; | ||
slug: Scalars['String']; | ||
}; | ||
@@ -666,2 +680,3 @@ export type GitGroupInput = { | ||
updatedAt: Scalars['DateTime']; | ||
/** Defines if a git organisation needs defined repository groups */ | ||
useGroupingForRepositories: Scalars['Boolean']; | ||
@@ -680,2 +695,3 @@ }; | ||
gitOrganizationId: Scalars['String']; | ||
groupName?: Maybe<Scalars['String']>; | ||
id: Scalars['String']; | ||
@@ -749,2 +765,3 @@ name: Scalars['String']; | ||
createOneEntity: Entity; | ||
/** Only for GitHub integrations */ | ||
createOrganization: GitOrganization; | ||
@@ -754,6 +771,7 @@ createPluginInstallation: PluginInstallation; | ||
createProject: Project; | ||
createRemoteGitRepository: Scalars['Boolean']; | ||
createResourceRole: ResourceRole; | ||
createService: Resource; | ||
createServiceTopics: ServiceTopics; | ||
createServiceWithEntities: Resource; | ||
createServiceWithEntities: ResourceCreateWithEntitiesResult; | ||
createTopic: Topic; | ||
@@ -865,2 +883,5 @@ createWorkspace?: Maybe<Workspace>; | ||
}; | ||
export type MutationCreateRemoteGitRepositoryArgs = { | ||
data: CreateGitRepositoryBaseInput; | ||
}; | ||
export type MutationCreateResourceRoleArgs = { | ||
@@ -1023,10 +1044,16 @@ data: ResourceRoleCreateInput; | ||
}; | ||
/** Returns a paginated list of repository groups available to select. */ | ||
export type PaginatedGitGroup = { | ||
groups?: Maybe<Array<GitGroup>>; | ||
next?: Maybe<Scalars['String']>; | ||
/** Page number */ | ||
page: Scalars['Float']; | ||
pagelen: Scalars['Float']; | ||
previous?: Maybe<Scalars['String']>; | ||
size: Scalars['Float']; | ||
/** Number of groups per page */ | ||
pageSize: Scalars['Float']; | ||
/** Total number of groups */ | ||
total: Scalars['Float']; | ||
}; | ||
export type Pagination = { | ||
page: Scalars['Float']; | ||
perPage: Scalars['Float']; | ||
}; | ||
export type PendingChange = { | ||
@@ -1366,13 +1393,14 @@ action: EnumPendingChangeAction; | ||
export type RemoteGitRepos = { | ||
currentPage: Scalars['Float']; | ||
pageSize: Scalars['Float']; | ||
pagination: Pagination; | ||
repos: Array<RemoteGitRepository>; | ||
totalRepos: Scalars['Float']; | ||
total: Scalars['Float']; | ||
}; | ||
export type RemoteGitRepositoriesWhereUniqueInput = { | ||
gitGroupName?: InputMaybe<Scalars['String']>; | ||
gitOrganizationId: Scalars['String']; | ||
gitProvider: EnumGitProvider; | ||
limit: Scalars['Float']; | ||
page: Scalars['Float']; | ||
groupName?: InputMaybe<Scalars['String']>; | ||
/** The page number. One-based indexing */ | ||
page?: Scalars['Float']; | ||
/** The number of items to return per page */ | ||
perPage?: Scalars['Float']; | ||
}; | ||
@@ -1383,2 +1411,3 @@ export type RemoteGitRepository = { | ||
fullName: Scalars['String']; | ||
groupName?: Maybe<Scalars['String']>; | ||
name: Scalars['String']; | ||
@@ -1420,5 +1449,7 @@ private: Scalars['Boolean']; | ||
description: Scalars['String']; | ||
gitRepository?: InputMaybe<ConnectGitRepositoryInput>; | ||
name: Scalars['String']; | ||
project: WhereParentIdInput; | ||
resourceType: EnumResourceType; | ||
serviceSettings?: InputMaybe<ServiceSettingsUpdateInput>; | ||
}; | ||
@@ -1435,11 +1466,14 @@ export type ResourceCreateWithEntitiesEntityInput = { | ||
export type ResourceCreateWithEntitiesInput = { | ||
authType: Scalars['String']; | ||
commitMessage: Scalars['String']; | ||
dbType: Scalars['String']; | ||
entities: Array<ResourceCreateWithEntitiesEntityInput>; | ||
generationSettings: ResourceGenSettingsCreateInput; | ||
plugins?: InputMaybe<PluginInstallationsCreateInput>; | ||
repoType: Scalars['String']; | ||
resource: ResourceCreateInput; | ||
wizardType: Scalars['String']; | ||
}; | ||
export type ResourceGenSettingsCreateInput = { | ||
generateAdminUI: Scalars['Boolean']; | ||
generateGraphQL: Scalars['Boolean']; | ||
generateRestApi: Scalars['Boolean']; | ||
export type ResourceCreateWithEntitiesResult = { | ||
build?: Maybe<Build>; | ||
resource: Resource; | ||
}; | ||
@@ -1446,0 +1480,0 @@ export type ResourceListRelationFilter = { |
import type { Promisable } from "type-fest"; | ||
import { BuildLogger } from "./build-logger"; | ||
import { clientDirectories, DTOs, Module, serverDirectories } from "./code-gen-types"; | ||
import { DSGResourceData } from "./dsg-resource-data"; | ||
import { Events } from "./plugin-events"; | ||
export interface BuildLogger { | ||
/** | ||
* Log an info message | ||
* @param message Log message | ||
* @param params Additional application internal log params. Not diplayed in the build log. | ||
* @param userFriendlyMessage User facing log message. It will be displayed in the build log. Default: @param message | ||
* @returns | ||
*/ | ||
info: (message: string, params?: Record<string, unknown>, userFriendlyMessage?: string) => Promise<void>; | ||
/** | ||
* Log a warning message | ||
* @param message Log message | ||
* @param params Additional application internal log params. Not diplayed in the build log. | ||
* @param userFriendlyMessage User facing log message. It will be displayed in the build log. Default: @param message | ||
* @returns | ||
*/ | ||
warn: (message: string, params?: Record<string, unknown>, userFriendlyMessage?: string) => Promise<void>; | ||
/** | ||
* Log an error message | ||
* @param message Log message | ||
* @param params Additional application internal log params. Not diplayed in the build log. | ||
* @param userFriendlyMessage User facing log message. It will be displayed in the build log. Default: @param message | ||
* @param error Error | ||
* @returns | ||
*/ | ||
error: (message: string, params?: Record<string, unknown>, userFriendlyMessage?: string, error?: Error) => Promise<void>; | ||
} | ||
export interface EventParams { | ||
@@ -33,0 +7,0 @@ } |
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
135544
110
3290
13