Compare commits

...
Author SHA1 Message Date
Stanisław Chmiela 3063f3e5e5 Move to non-deprecated cancelBuild mutation 2025-10-10 14:24:22 +02:00
3 changed files with 54 additions and 4 deletions

No files matched your search

+48
View File
@@ -1470,6 +1470,30 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "environmentVariableEnvironments",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "EnvironmentVariableEnvironment",
"ofType": null
}
}
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "environmentVariables",
"description": "Environment variables for an account",
@@ -8983,6 +9007,30 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "environmentVariableEnvironments",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "EnvironmentVariableEnvironment",
"ofType": null
}
}
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "environmentVariables",
"description": "Environment variables for an app",
@@ -27,8 +27,8 @@ async function cancelBuildAsync(
.mutation<CancelBuildMutation, CancelBuildMutationVariables>(
gql`
mutation CancelBuildMutation($buildId: ID!) {
build(buildId: $buildId) {
cancel {
build {
cancelBuild(buildId: $buildId) {
id
status
}
@@ -39,7 +39,7 @@ async function cancelBuildAsync(
)
.toPromise()
);
return data.build.cancel;
return data.build.cancelBuild;
}
export async function selectBuildToCancelAsync(
+3 -1
View File
@@ -124,6 +124,7 @@ export type Account = {
displayName?: Maybe<Scalars['String']['output']>;
/** Environment secrets for an account */
environmentSecrets: Array<EnvironmentSecret>;
environmentVariableEnvironments: Array<Scalars['EnvironmentVariableEnvironment']['output']>;
/** Environment variables for an account */
environmentVariables: Array<EnvironmentVariable>;
/** Environment variables for an account with decrypted secret values */
@@ -1285,6 +1286,7 @@ export type App = Project & {
devDomainName?: Maybe<AppDevDomainName>;
/** Environment secrets for an app */
environmentSecrets: Array<EnvironmentSecret>;
environmentVariableEnvironments: Array<Scalars['EnvironmentVariableEnvironment']['output']>;
/** Environment variables for an app */
environmentVariables: Array<EnvironmentVariable>;
/** Environment variables for an app with decrypted secret values */
@@ -9165,7 +9167,7 @@ export type CancelBuildMutationVariables = Exact<{
}>;
export type CancelBuildMutation = { __typename?: 'RootMutation', build: { __typename?: 'BuildMutation', cancel: { __typename?: 'Build', id: string, status: BuildStatus } } };
export type CancelBuildMutation = { __typename?: 'RootMutation', build: { __typename?: 'BuildMutation', cancelBuild: { __typename?: 'Build', id: string, status: BuildStatus } } };
export type DeleteBuildMutationVariables = Exact<{
buildId: Scalars['ID']['input'];