Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions bin/get-graphql-schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ function sleep(ms) {
* @type {Schema[]}
*/
const schemas = [
{
owner: 'Shopify',
repo: 'partners',
pathToFile: 'db/graphql/cli_schema.graphql',
localPaths: ['./packages/app/src/cli/api/graphql/partners/cli_schema.graphql'],
},
{
owner: 'shop',
repo: 'world',
Expand Down
1 change: 0 additions & 1 deletion graphql.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ function projectFactory(name: string, schemaName: string, project: string = 'app

export default {
projects: {
partners: projectFactory('partners', 'cli_schema.graphql'),
businessPlatformDestinations: projectFactory('business-platform-destinations', 'destinations_schema.graphql'),
businessPlatformOrganizations: projectFactory('business-platform-organizations', 'organizations_schema.graphql'),
appDev: projectFactory('app-dev', 'app_dev_schema.graphql'),
Expand Down
16 changes: 0 additions & 16 deletions packages/app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"dependsOn": ["graphql-codegen:postfix"],
"inputs": [{ "dependentTasksOutputFiles": "**/*.ts" }],
"outputs": [
"{projectRoot}/src/cli/api/graphql/partners/generated/**/*.ts",
"{projectRoot}/src/cli/api/graphql/business-platform-destinations/generated/**/*.ts",
"{projectRoot}/src/cli/api/graphql/business-platform-organizations/generated/**/*.ts",
"{projectRoot}/src/cli/api/graphql/app-dev/generated/**/*.ts",
Expand All @@ -62,7 +61,6 @@
],
"options": {
"commands": [
"pnpm eslint 'src/cli/api/graphql/partners/generated/**/*.{ts,tsx}' --fix",
"pnpm eslint 'src/cli/api/graphql/business-platform-destinations/generated/**/*.{ts,tsx}' --fix",
"pnpm eslint 'src/cli/api/graphql/business-platform-organizations/generated/**/*.{ts,tsx}' --fix",
"pnpm eslint 'src/cli/api/graphql/app-dev/generated/**/*.{ts,tsx}' --fix",
Expand All @@ -74,17 +72,6 @@
"cwd": "packages/app"
}
},
"graphql-codegen:generate:partners": {
"executor": "nx:run-commands",
"inputs": ["{workspaceRoot}/graphql.config.ts", "{projectRoot}/src/cli/api/graphql/partners/**/*.graphql"],
"outputs": ["{projectRoot}/src/cli/api/graphql/partners/generated/**/*.ts"],
"options": {
"commands": [
"pnpm exec graphql-codegen --project=partners"
],
"cwd": "{workspaceRoot}"
}
},
"graphql-codegen:generate:business-platform-destinations": {
"executor": "nx:run-commands",
"inputs": ["{workspaceRoot}/graphql.config.ts", "{projectRoot}/src/cli/api/graphql/business-platform-destinations/**/*.graphql"],
Expand Down Expand Up @@ -165,7 +152,6 @@
"graphql-codegen:postfix": {
"executor": "nx:run-commands",
"dependsOn": [
"graphql-codegen:generate:partners",
"graphql-codegen:generate:business-platform-destinations",
"graphql-codegen:generate:business-platform-organizations",
"graphql-codegen:generate:app-dev",
Expand All @@ -176,7 +162,6 @@
],
"inputs": [{ "dependentTasksOutputFiles": "**/*.ts" }],
"outputs": [
"{projectRoot}/src/cli/api/graphql/partners/generated/**/*.ts",
"{projectRoot}/src/cli/api/graphql/business-platform-destinations/generated/**/*.ts",
"{projectRoot}/src/cli/api/graphql/business-platform-organizations/generated/**/*.ts",
"{projectRoot}/src/cli/api/graphql/app-dev/generated/**/*.ts",
Expand All @@ -187,7 +172,6 @@
],
"options": {
"commands": [
"find ./packages/app/src/cli/api/graphql/partners/generated/ -type f -name '*.ts' -exec sh -c 'sed -i \"\" \"s|import \\* as Types from '\\''./types'\\'';|import \\* as Types from '\\''./types.js'\\'';|g; s|export const \\([A-Za-z0-9_]*\\)Document =|export const \\1 =|g\" \"$0\"' {} \\;",
"find ./packages/app/src/cli/api/graphql/business-platform-destinations/generated/ -type f -name '*.ts' -exec sh -c 'sed -i \"\" \"s|import \\* as Types from '\\''./types'\\'';|import \\* as Types from '\\''./types.js'\\'';|g; s|export const \\([A-Za-z0-9_]*\\)Document =|export const \\1 =|g\" \"$0\"' {} \\;",
"find ./packages/app/src/cli/api/graphql/business-platform-organizations/generated/ -type f -name '*.ts' -exec sh -c 'sed -i \"\" \"s|import \\* as Types from '\\''./types'\\'';|import \\* as Types from '\\''./types.js'\\'';|g; s|export const \\([A-Za-z0-9_]*\\)Document =|export const \\1 =|g\" \"$0\"' {} \\;",
"find ./packages/app/src/cli/api/graphql/app-dev/generated/ -type f -name '*.ts' -exec sh -c 'sed -i \"\" \"s|import \\* as Types from '\\''./types'\\'';|import \\* as Types from '\\''./types.js'\\'';|g; s|export const \\([A-Za-z0-9_]*\\)Document =|export const \\1 =|g\" \"$0\"' {} \\;",
Expand Down

This file was deleted.

33 changes: 0 additions & 33 deletions packages/app/src/cli/api/graphql/partners/generated/types.d.ts

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions packages/app/src/cli/models/app/app.test-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ import {
MigrateFlowExtensionVariables,
} from '../../api/graphql/extension_migrate_flow_extension.js'
import {UpdateURLsSchema, UpdateURLsVariables} from '../../api/graphql/update_urls.js'
import {CurrentAccountInfoQuery} from '../../api/graphql/partners/generated/current-account-info.js'
import {
MigrateToUiExtensionSchema,
MigrateToUiExtensionVariables,
Expand Down Expand Up @@ -1282,13 +1281,6 @@ const updateURLsResponse: UpdateURLsSchema = {
},
}

const currentAccountInfoResponse: CurrentAccountInfoQuery = {
currentAccountInfo: {
__typename: 'UserAccount',
email: 'user@example.com',
},
}

const migrateToUiExtensionResponse: MigrateToUiExtensionSchema = {
migrateToUiExtension: {
migratedToUiExtension: true,
Expand Down Expand Up @@ -1344,7 +1336,6 @@ export function testDeveloperPlatformClient(
migrateFlowExtension: (_input: MigrateFlowExtensionVariables) => Promise.resolve(migrateFlowExtensionResponse),
migrateAppModule: (_input: MigrateAppModuleVariables) => Promise.resolve(migrateAppModuleResponse),
updateURLs: (_input: UpdateURLsVariables) => Promise.resolve(updateURLsResponse),
currentAccountInfo: () => Promise.resolve(currentAccountInfoResponse),
targetSchemaDefinition: (_input: SchemaDefinitionByTargetQueryVariables & {apiKey?: string}, _orgId: string) =>
Promise.resolve('schema'),
apiSchemaDefinition: (_input: SchemaDefinitionByApiTypeQueryVariables & {apiKey?: string}, _orgId: string) =>
Expand Down
1 change: 0 additions & 1 deletion packages/app/src/cli/services/app/config/link.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ vi.mock('../../../models/app/loader.js', async () => {
vi.mock('../../local-storage')
vi.mock('@shopify/cli-kit/node/ui')
vi.mock('@shopify/cli-kit/node/system')
vi.mock('../../context/partner-account-info.js')
vi.mock('../../context.js')
vi.mock('../select-app.js')

Expand Down
1 change: 0 additions & 1 deletion packages/app/src/cli/services/context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ vi.mock('@shopify/cli-kit/node/node-package-manager.js')
vi.mock('@shopify/cli-kit/node/ui')
vi.mock('./deploy/mode.js')
vi.mock('./app/config/link.js')
vi.mock('./context/partner-account-info.js')
vi.mock('@shopify/cli-kit/node/session')
vi.mock('./generate/fetch-extension-specifications.js')
vi.mock('./app/select-app.js')
Expand Down

This file was deleted.

54 changes: 0 additions & 54 deletions packages/app/src/cli/services/context/partner-account-info.ts

This file was deleted.

Loading
Loading