forked from cerc-io/snowballtools-base
Update methods in gql client
This commit is contained in:
@@ -47,7 +47,7 @@ export class Project {
|
||||
description!: string;
|
||||
|
||||
@Column('varchar', { nullable: true })
|
||||
applicationDeploymentAuctionId?: string | null;
|
||||
auctionId?: string | null;
|
||||
|
||||
@Column('varchar', { nullable: true })
|
||||
deployerLrn?: string[] | null;
|
||||
|
||||
@@ -65,8 +65,8 @@ type Project {
|
||||
repository: String!
|
||||
prodBranch: String!
|
||||
description: String
|
||||
lrn: string[]
|
||||
auctionId: string
|
||||
deployerLrn: [String]
|
||||
auctionId: String
|
||||
template: String
|
||||
framework: String
|
||||
webhooks: [String!]
|
||||
@@ -185,8 +185,8 @@ input FilterDomainsInput {
|
||||
}
|
||||
|
||||
input AuctionData {
|
||||
maxPrice: string,
|
||||
numProviders: number,
|
||||
maxPrice: String,
|
||||
numProviders: Int,
|
||||
}
|
||||
|
||||
type Query {
|
||||
@@ -222,13 +222,13 @@ type Mutation {
|
||||
addProjectFromTemplate(
|
||||
organizationSlug: String!
|
||||
data: AddProjectFromTemplateInput
|
||||
lrn: string
|
||||
lrn: [String]
|
||||
auctionData: AuctionData
|
||||
): Project!
|
||||
addProject(
|
||||
organizationSlug: String!,
|
||||
data: AddProjectInput,
|
||||
lrn: string,
|
||||
organizationSlug: String!
|
||||
data: AddProjectInput
|
||||
lrn: [String]
|
||||
auctionData: AuctionData
|
||||
): Project!
|
||||
updateProject(projectId: String!, data: UpdateProjectInput): Boolean!
|
||||
|
||||
@@ -785,6 +785,7 @@ export class Service {
|
||||
user: User,
|
||||
organizationSlug: string,
|
||||
data: AddProjectFromTemplateInput,
|
||||
lrn?: string,
|
||||
auctionData?: AuctionData
|
||||
): Promise<Project | undefined> {
|
||||
try {
|
||||
@@ -816,7 +817,7 @@ export class Service {
|
||||
repository: gitRepo.data.full_name,
|
||||
// TODO: Set selected template
|
||||
template: 'webapp',
|
||||
}, '', auctionData);
|
||||
}, lrn, auctionData);
|
||||
|
||||
if (!project || !project.id) {
|
||||
throw new Error('Failed to create project from template');
|
||||
|
||||
Reference in New Issue
Block a user