Skip to content

Commit

Permalink
BYOR: Update to use renamed CustomDeploy mutation (#1687)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum authored Feb 7, 2024
1 parent f5a4cb8 commit 5414f32
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/bin/vip-app-deploy.generated.d.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
12 changes: 6 additions & 6 deletions src/bin/vip-app-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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
Expand All @@ -77,8 +77,8 @@ interface PromptToContinueParams {
domain: string;
}

interface StartDeployVariables {
input: AppEnvironmentDeployInput;
interface StartCustomDeployVariables {
input: AppEnvironmentCustomDeployInput;
}

/**
Expand Down Expand Up @@ -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 {
Expand Down
12 changes: 6 additions & 6 deletions src/graphqlTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -655,16 +655,16 @@ 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' ] >;
checksum?: InputMaybe< Scalars[ 'String' ][ 'input' ] >;
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' ] >;
Expand Down Expand Up @@ -2101,7 +2101,7 @@ export type Mutation = {
updateWPSiteLaunchStatus?: Maybe< WpSiteLaunchStatusPayload >;
validateLogShippingConfig?: Maybe< AppEnvironmentLogShippingValidationPayload >;
/** BYOR */
startDeploy?: Maybe< AppEnvironmentDeployPayload >;
startCustomDeploy?: Maybe< AppEnvironmentCustomDeployPayload >;
};

export type MutationAbortMediaImportArgs = {
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit 5414f32

Please sign in to comment.