From 5414f328470b2629babeffcc928194570bf3c78e Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Wed, 7 Feb 2024 16:16:50 -0700 Subject: [PATCH] BYOR: Update to use renamed CustomDeploy mutation (#1687) --- src/bin/vip-app-deploy.generated.d.ts | 8 ++++---- src/bin/vip-app-deploy.ts | 12 ++++++------ src/graphqlTypes.d.ts | 12 ++++++------ 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/bin/vip-app-deploy.generated.d.ts b/src/bin/vip-app-deploy.generated.d.ts index 1b2a6ff3a..2790e17cc 100644 --- a/src/bin/vip-app-deploy.generated.d.ts +++ b/src/bin/vip-app-deploy.generated.d.ts @@ -1,13 +1,13 @@ import * as Types from '../graphqlTypes'; -export type StartDeployMutationVariables = Types.Exact< { - input?: Types.InputMaybe< Types.AppEnvironmentDeployInput >; +export type StartCustomDeployMutationVariables = Types.Exact< { + input?: Types.InputMaybe< Types.AppEnvironmentCustomDeployInput >; } >; -export type StartDeployMutation = { +export type StartCustomDeployMutation = { __typename?: 'Mutation'; startDeploy?: { - __typename?: 'AppEnvironmentDeployPayload'; + __typename?: 'AppEnvironmentCustomDeployPayload'; message?: string | null; success?: boolean | null; app?: { __typename?: 'App'; id?: number | null; name?: string | null } | null; diff --git a/src/bin/vip-app-deploy.ts b/src/bin/vip-app-deploy.ts index a8bf665b4..55ba6cc4f 100755 --- a/src/bin/vip-app-deploy.ts +++ b/src/bin/vip-app-deploy.ts @@ -11,7 +11,7 @@ import gql from 'graphql-tag'; /** * Internal dependencies */ -import { App, AppEnvironment, AppEnvironmentDeployInput } from '../graphqlTypes'; +import { App, AppEnvironment, AppEnvironmentCustomDeployInput } from '../graphqlTypes'; import API from '../lib/api'; import command from '../lib/cli/command'; import * as exit from '../lib/cli/exit'; @@ -51,8 +51,8 @@ const appQuery = ` `; const START_DEPLOY_MUTATION = gql` - mutation StartDeploy($input: AppEnvironmentDeployInput) { - startDeploy(input: $input) { + mutation StartCustomDeploy($input: AppEnvironmentCustomDeployInput) { + startCustomDeploy(input: $input) { app { id name @@ -77,8 +77,8 @@ interface PromptToContinueParams { domain: string; } -interface StartDeployVariables { - input: AppEnvironmentDeployInput; +interface StartCustomDeployVariables { + input: AppEnvironmentCustomDeployInput; } /** @@ -198,7 +198,7 @@ Processing the file for deployment to your environment... progressCallback, hashType: 'sha256', }; - const startDeployVariables: StartDeployVariables = { input: {} }; + const startDeployVariables: StartCustomDeployVariables = { input: {} }; try { const { diff --git a/src/graphqlTypes.d.ts b/src/graphqlTypes.d.ts index 196d17d0f..898831ce2 100644 --- a/src/graphqlTypes.d.ts +++ b/src/graphqlTypes.d.ts @@ -655,7 +655,7 @@ export type AppEnvironmentIcon = { width?: Maybe< Scalars[ 'Int' ][ 'output' ] >; }; -export type AppEnvironmentDeployInput = { +export type AppEnvironmentCustomDeployInput = { basename?: InputMaybe< Scalars[ 'String' ][ 'input' ] >; environmentId?: InputMaybe< Scalars[ 'Int' ][ 'input' ] >; id?: InputMaybe< Scalars[ 'Int' ][ 'input' ] >; @@ -663,8 +663,8 @@ export type AppEnvironmentDeployInput = { deployMessage?: InputMaybe< Scalars[ 'String' ][ 'input' ] >; }; -export type AppEnvironmentDeployPayload = { - __typename?: 'AppEnvironmentDeployPayload'; +export type AppEnvironmentCustomDeployPayload = { + __typename?: 'AppEnvironmentCustomDeployPayload'; app?: Maybe< App >; message?: Maybe< Scalars[ 'String' ][ 'output' ] >; success?: Maybe< Scalars[ 'Boolean' ][ 'output' ] >; @@ -2101,7 +2101,7 @@ export type Mutation = { updateWPSiteLaunchStatus?: Maybe< WpSiteLaunchStatusPayload >; validateLogShippingConfig?: Maybe< AppEnvironmentLogShippingValidationPayload >; /** BYOR */ - startDeploy?: Maybe< AppEnvironmentDeployPayload >; + startCustomDeploy?: Maybe< AppEnvironmentCustomDeployPayload >; }; export type MutationAbortMediaImportArgs = { @@ -2308,8 +2308,8 @@ export type MutationStartImportArgs = { input?: InputMaybe< AppEnvironmentImportInput >; }; -export type MutationStartDeployArgs = { - input?: InputMaybe< AppEnvironmentDeployInput >; +export type MutationStartCustomDeployArgs = { + input?: InputMaybe< AppEnvironmentCustomDeployInput >; }; export type MutationStartMediaExportArgs = {