Skip to content

Commit

Permalink
Add api version variable to StartMediaImport call
Browse files Browse the repository at this point in the history
  • Loading branch information
ariskataoka committed May 6, 2024
1 parent e69286b commit 722ec01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bin/vip-import-media.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { MediaImportProgressTracker } from '../lib/media-import/progress';
import { mediaImportCheckStatus } from '../lib/media-import/status';
import { trackEventWithEnv } from '../lib/tracker';

const API_VERSION = 'v2';

const appQuery = `
id,
name,
Expand Down Expand Up @@ -142,6 +144,7 @@ Importing Media into your App...
archiveUrl: url,
overwriteExistingFiles,
importIntermediateImages,
apiVersion: API_VERSION,
},
},
} );
Expand Down
2 changes: 2 additions & 0 deletions src/graphqlTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,8 @@ export type AppEnvironmentStartDbBackupCopyPayload = {

/** Mutation request input to start a Media Import */
export type AppEnvironmentStartMediaImportInput = {
/** API version to be used for the media import */
apiVersion?: InputMaybe< Scalars[ 'String' ][ 'input' ] >;
/** The unique ID of the Application */
applicationId: Scalars[ 'Int' ][ 'input' ];
/** Publicly accessible URL that contains an archive of the media files to be imported */
Expand Down

0 comments on commit 722ec01

Please sign in to comment.