Skip to content

Commit

Permalink
Rename for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
amcaplan committed Nov 26, 2024
1 parent 0359188 commit 313769a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import {JsonMapType} from '@shopify/cli-kit/node/toml'

import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core'

export type AppFromApiKeyQueryVariables = Types.Exact<{
export type ActiveAppReleaseFromApiKeyQueryVariables = Types.Exact<{
apiKey: Types.Scalars['String']['input']
}>

export type AppFromApiKeyQuery = {
export type ActiveAppReleaseFromApiKeyQuery = {
app: {
id: string
key: string
Expand All @@ -29,13 +29,13 @@ export type AppFromApiKeyQuery = {
}
}

export const AppFromApiKey = {
export const ActiveAppReleaseFromApiKey = {
kind: 'Document',
definitions: [
{
kind: 'OperationDefinition',
operation: 'query',
name: {kind: 'Name', value: 'AppFromApiKey'},
name: {kind: 'Name', value: 'ActiveAppReleaseFromApiKey'},
variableDefinitions: [
{
kind: 'VariableDefinition',
Expand Down Expand Up @@ -161,4 +161,4 @@ export const AppFromApiKey = {
},
},
],
} as unknown as DocumentNode<AppFromApiKeyQuery, AppFromApiKeyQueryVariables>
} as unknown as DocumentNode<ActiveAppReleaseFromApiKeyQuery, ActiveAppReleaseFromApiKeyQueryVariables>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
query AppFromApiKey($apiKey: String!) {
query ActiveAppReleaseFromApiKey($apiKey: String!) {
app: appByKey(key: $apiKey) {
...AppVersionInfo
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ import {
ActiveAppReleaseQuery,
ReleasedAppModuleFragment,
} from '../../api/graphql/app-management/generated/active-app-release.js'
import {AppFromApiKey} from '../../api/graphql/app-management/generated/app-from-api-key.js'
import {ActiveAppReleaseFromApiKey} from '../../api/graphql/app-management/generated/active-app-release-from-api-key.js'
import {ReleaseVersion} from '../../api/graphql/app-management/generated/release-version.js'
import {CreateAppVersion} from '../../api/graphql/app-management/generated/create-app-version.js'
import {CreateAssetUrl} from '../../api/graphql/app-management/generated/create-asset-url.js'
Expand Down Expand Up @@ -800,7 +800,7 @@ export class AppManagementClient implements DeveloperPlatformClient {
if (id) {
return appManagementRequestDoc(organizationId, ActiveAppRelease, await this.token(), {appId: id})
} else {
return appManagementRequestDoc(organizationId, AppFromApiKey, await this.token(), {apiKey})
return appManagementRequestDoc(organizationId, ActiveAppReleaseFromApiKey, await this.token(), {apiKey})
}
}

Expand Down

0 comments on commit 313769a

Please sign in to comment.