Update methods in gql client

This commit is contained in:
IshaVenikar
2024-10-16 15:37:09 +05:30
committed by nabarun
parent 9931bc74d1
commit ee9bf2de1c
13 changed files with 88 additions and 40 deletions
+1 -1
View File
@@ -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;
+8 -8
View File
@@ -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!
+2 -1
View File
@@ -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');