forked from cerc-io/snowballtools-base
Update methods in gql client
This commit is contained in:
@@ -230,13 +230,17 @@ export class GQLClient {
|
||||
|
||||
async addProjectFromTemplate(
|
||||
organizationSlug: string,
|
||||
data: types.AddProjectFromTemplateInput
|
||||
data: types.AddProjectFromTemplateInput,
|
||||
lrn?: string,
|
||||
auctionData?: types.AuctionData,
|
||||
): Promise<types.AddProjectFromTemplateResponse> {
|
||||
const result = await this.client.mutate({
|
||||
mutation: mutations.addProjectFromTemplate,
|
||||
variables: {
|
||||
organizationSlug,
|
||||
data,
|
||||
lrn,
|
||||
auctionData
|
||||
},
|
||||
});
|
||||
|
||||
@@ -245,13 +249,17 @@ export class GQLClient {
|
||||
|
||||
async addProject(
|
||||
organizationSlug: string,
|
||||
data: types.AddProjectInput
|
||||
data: types.AddProjectInput,
|
||||
lrn?: string,
|
||||
auctionData?: types.AuctionData,
|
||||
): Promise<types.AddProjectResponse> {
|
||||
const result = await this.client.mutate({
|
||||
mutation: mutations.addProject,
|
||||
variables: {
|
||||
organizationSlug,
|
||||
data,
|
||||
lrn,
|
||||
auctionData
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -49,16 +49,16 @@ export const updateDeploymentToProd = gql`
|
||||
`;
|
||||
|
||||
export const addProjectFromTemplate = gql`
|
||||
mutation ($organizationSlug: String!, $data: AddProjectFromTemplateInput) {
|
||||
addProjectFromTemplate(organizationSlug: $organizationSlug, data: $data) {
|
||||
mutation ($organizationSlug: String!, $data: AddProjectFromTemplateInput, $lrn: string, $auctionData: Auctiondata) {
|
||||
addProjectFromTemplate(organizationSlug: $organizationSlug, data: $data, lrn: $lrn, auctionData: $auctionData) {
|
||||
id
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const addProject = gql`
|
||||
mutation ($organizationSlug: String!, $data: AddProjectInput) {
|
||||
addProject(organizationSlug: $organizationSlug, data: $data) {
|
||||
mutation ($organizationSlug: String!, $data: AddProjectInput, $lrn: string, $auctionData: Auctiondata) {
|
||||
addProject(organizationSlug: $organizationSlug, data: $data, lrn: $lrn, auctionData: $auctionData) {
|
||||
id
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,8 @@ query ($projectId: String!) {
|
||||
template
|
||||
updatedAt
|
||||
prodBranch
|
||||
auctionId
|
||||
deployerLrn
|
||||
framework
|
||||
repository
|
||||
webhooks
|
||||
@@ -71,6 +73,8 @@ query ($organizationSlug: String!) {
|
||||
createdAt
|
||||
description
|
||||
framework
|
||||
auctionId
|
||||
deployerLrn
|
||||
prodBranch
|
||||
webhooks
|
||||
repository
|
||||
@@ -183,6 +187,8 @@ query ($searchText: String!) {
|
||||
createdAt
|
||||
description
|
||||
framework
|
||||
auctionId
|
||||
deployerLrn
|
||||
prodBranch
|
||||
webhooks
|
||||
updatedAt
|
||||
|
||||
@@ -309,3 +309,8 @@ export type AuthenticateGitHubResponse = {
|
||||
export type UnauthenticateGitHubResponse = {
|
||||
unauthenticateGitHub: boolean;
|
||||
};
|
||||
|
||||
export type AuctionData = {
|
||||
maxPrice: string;
|
||||
numProviders: number;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user