diff --git a/packages/app/src/cli/api/graphql/admin/generated/metafield_definitions.ts b/packages/app/src/cli/api/graphql/admin/generated/metafield_definitions.ts index d020d31e914..3faf635ddf8 100644 --- a/packages/app/src/cli/api/graphql/admin/generated/metafield_definitions.ts +++ b/packages/app/src/cli/api/graphql/admin/generated/metafield_definitions.ts @@ -1,253 +1,17 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' - -export type MetafieldForImportFragment = { - key: string - name: string - namespace: string - description?: string | null - type: {category: string; name: string} - access: { - admin?: Types.MetafieldAdminAccess | null - storefront?: Types.MetafieldStorefrontAccess | null - customerAccount: Types.MetafieldCustomerAccountAccess - } - capabilities: {adminFilterable: {enabled: boolean}} - validations: {name: string; value?: string | null}[] -} +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; +export type MetafieldForImportFragment = { key: string, name: string, namespace: string, description?: string | null, type: { category: string, name: string }, access: { admin?: Types.MetafieldAdminAccess | null, storefront?: Types.MetafieldStorefrontAccess | null, customerAccount: Types.MetafieldCustomerAccountAccess }, capabilities: { adminFilterable: { enabled: boolean } }, validations: Array<{ name: string, value?: string | null }> }; export type MetafieldDefinitionsQueryVariables = Types.Exact<{ - ownerType: Types.MetafieldOwnerType - after?: Types.InputMaybe -}> + ownerType: Types.MetafieldOwnerType; + after?: Types.InputMaybe; +}>; + -export type MetafieldDefinitionsQuery = { - metafieldDefinitions: { - pageInfo: {hasNextPage: boolean; endCursor?: string | null} - nodes: { - key: string - name: string - namespace: string - description?: string | null - type: {category: string; name: string} - access: { - admin?: Types.MetafieldAdminAccess | null - storefront?: Types.MetafieldStorefrontAccess | null - customerAccount: Types.MetafieldCustomerAccountAccess - } - capabilities: {adminFilterable: {enabled: boolean}} - validations: {name: string; value?: string | null}[] - }[] - } -} +export type MetafieldDefinitionsQuery = { metafieldDefinitions: { pageInfo: { hasNextPage: boolean, endCursor?: string | null }, nodes: Array<{ key: string, name: string, namespace: string, description?: string | null, type: { category: string, name: string }, access: { admin?: Types.MetafieldAdminAccess | null, storefront?: Types.MetafieldStorefrontAccess | null, customerAccount: Types.MetafieldCustomerAccountAccess }, capabilities: { adminFilterable: { enabled: boolean } }, validations: Array<{ name: string, value?: string | null }> }> } }; -export const MetafieldForImportFragmentDoc = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: {kind: 'Name', value: 'MetafieldForImport'}, - typeCondition: {kind: 'NamedType', name: {kind: 'Name', value: 'MetafieldDefinition'}}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'key'}}, - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - {kind: 'Field', name: {kind: 'Name', value: 'namespace'}}, - {kind: 'Field', name: {kind: 'Name', value: 'description'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'type'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'category'}}, - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'access'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'admin'}}, - {kind: 'Field', name: {kind: 'Name', value: 'storefront'}}, - {kind: 'Field', name: {kind: 'Name', value: 'customerAccount'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'capabilities'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'adminFilterable'}, - selectionSet: { - kind: 'SelectionSet', - selections: [{kind: 'Field', name: {kind: 'Name', value: 'enabled'}}], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'validations'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - {kind: 'Field', name: {kind: 'Name', value: 'value'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const MetafieldDefinitions = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'metafieldDefinitions'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'ownerType'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'MetafieldOwnerType'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'after'}}, - type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'metafieldDefinitions'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'ownerType'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'ownerType'}}, - }, - {kind: 'Argument', name: {kind: 'Name', value: 'first'}, value: {kind: 'IntValue', value: '30'}}, - { - kind: 'Argument', - name: {kind: 'Name', value: 'after'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'after'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'pageInfo'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'hasNextPage'}}, - {kind: 'Field', name: {kind: 'Name', value: 'endCursor'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'nodes'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'FragmentSpread', name: {kind: 'Name', value: 'MetafieldForImport'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: {kind: 'Name', value: 'MetafieldForImport'}, - typeCondition: {kind: 'NamedType', name: {kind: 'Name', value: 'MetafieldDefinition'}}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'key'}}, - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - {kind: 'Field', name: {kind: 'Name', value: 'namespace'}}, - {kind: 'Field', name: {kind: 'Name', value: 'description'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'type'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'category'}}, - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'access'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'admin'}}, - {kind: 'Field', name: {kind: 'Name', value: 'storefront'}}, - {kind: 'Field', name: {kind: 'Name', value: 'customerAccount'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'capabilities'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'adminFilterable'}, - selectionSet: { - kind: 'SelectionSet', - selections: [{kind: 'Field', name: {kind: 'Name', value: 'enabled'}}], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'validations'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - {kind: 'Field', name: {kind: 'Name', value: 'value'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const MetafieldForImportFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MetafieldForImport"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MetafieldDefinition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namespace"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"type"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"access"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"admin"}},{"kind":"Field","name":{"kind":"Name","value":"storefront"}},{"kind":"Field","name":{"kind":"Name","value":"customerAccount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"capabilities"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"adminFilterable"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"enabled"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"validations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]} as unknown as DocumentNode; +export const MetafieldDefinitionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"metafieldDefinitions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ownerType"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"MetafieldOwnerType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"after"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"metafieldDefinitions"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ownerType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ownerType"}}},{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"30"}},{"kind":"Argument","name":{"kind":"Name","value":"after"},"value":{"kind":"Variable","name":{"kind":"Name","value":"after"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetafieldForImport"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MetafieldForImport"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MetafieldDefinition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namespace"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"type"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"access"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"admin"}},{"kind":"Field","name":{"kind":"Name","value":"storefront"}},{"kind":"Field","name":{"kind":"Name","value":"customerAccount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"capabilities"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"adminFilterable"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"enabled"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"validations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/admin/generated/metaobject_definitions.ts b/packages/app/src/cli/api/graphql/admin/generated/metaobject_definitions.ts index 8b77fd8e4aa..10fa757413e 100644 --- a/packages/app/src/cli/api/graphql/admin/generated/metaobject_definitions.ts +++ b/packages/app/src/cli/api/graphql/admin/generated/metaobject_definitions.ts @@ -1,342 +1,16 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' - -export type MetaobjectForImportFragment = { - type: string - name: string - description?: string | null - displayNameKey?: string | null - access: {admin: Types.MetaobjectAdminAccess; storefront: Types.MetaobjectStorefrontAccess} - capabilities: { - publishable: {enabled: boolean} - translatable: {enabled: boolean} - renderable?: { - enabled: boolean - data?: {metaTitleKey?: string | null; metaDescriptionKey?: string | null} | null - } | null - } - fieldDefinitions: { - key: string - name: string - description?: string | null - required: boolean - type: {category: string; name: string} - validations: {name: string; value?: string | null}[] - }[] -} +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; +export type MetaobjectForImportFragment = { type: string, name: string, description?: string | null, displayNameKey?: string | null, access: { admin: Types.MetaobjectAdminAccess, storefront: Types.MetaobjectStorefrontAccess }, capabilities: { publishable: { enabled: boolean }, translatable: { enabled: boolean }, renderable?: { enabled: boolean, data?: { metaTitleKey?: string | null, metaDescriptionKey?: string | null } | null } | null }, fieldDefinitions: Array<{ key: string, name: string, description?: string | null, required: boolean, type: { category: string, name: string }, validations: Array<{ name: string, value?: string | null }> }> }; export type MetaobjectDefinitionsQueryVariables = Types.Exact<{ - after?: Types.InputMaybe -}> + after?: Types.InputMaybe; +}>; + -export type MetaobjectDefinitionsQuery = { - metaobjectDefinitions: { - pageInfo: {hasNextPage: boolean; endCursor?: string | null} - nodes: { - type: string - name: string - description?: string | null - displayNameKey?: string | null - access: {admin: Types.MetaobjectAdminAccess; storefront: Types.MetaobjectStorefrontAccess} - capabilities: { - publishable: {enabled: boolean} - translatable: {enabled: boolean} - renderable?: { - enabled: boolean - data?: {metaTitleKey?: string | null; metaDescriptionKey?: string | null} | null - } | null - } - fieldDefinitions: { - key: string - name: string - description?: string | null - required: boolean - type: {category: string; name: string} - validations: {name: string; value?: string | null}[] - }[] - }[] - } -} +export type MetaobjectDefinitionsQuery = { metaobjectDefinitions: { pageInfo: { hasNextPage: boolean, endCursor?: string | null }, nodes: Array<{ type: string, name: string, description?: string | null, displayNameKey?: string | null, access: { admin: Types.MetaobjectAdminAccess, storefront: Types.MetaobjectStorefrontAccess }, capabilities: { publishable: { enabled: boolean }, translatable: { enabled: boolean }, renderable?: { enabled: boolean, data?: { metaTitleKey?: string | null, metaDescriptionKey?: string | null } | null } | null }, fieldDefinitions: Array<{ key: string, name: string, description?: string | null, required: boolean, type: { category: string, name: string }, validations: Array<{ name: string, value?: string | null }> }> }> } }; -export const MetaobjectForImportFragmentDoc = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: {kind: 'Name', value: 'MetaobjectForImport'}, - typeCondition: {kind: 'NamedType', name: {kind: 'Name', value: 'MetaobjectDefinition'}}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'type'}}, - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - {kind: 'Field', name: {kind: 'Name', value: 'description'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'access'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'admin'}}, - {kind: 'Field', name: {kind: 'Name', value: 'storefront'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: 'displayNameKey'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'capabilities'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'publishable'}, - selectionSet: { - kind: 'SelectionSet', - selections: [{kind: 'Field', name: {kind: 'Name', value: 'enabled'}}], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'translatable'}, - selectionSet: { - kind: 'SelectionSet', - selections: [{kind: 'Field', name: {kind: 'Name', value: 'enabled'}}], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'renderable'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'enabled'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'data'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'metaTitleKey'}}, - {kind: 'Field', name: {kind: 'Name', value: 'metaDescriptionKey'}}, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'fieldDefinitions'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'key'}}, - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'type'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'category'}}, - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: 'description'}}, - {kind: 'Field', name: {kind: 'Name', value: 'required'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'validations'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - {kind: 'Field', name: {kind: 'Name', value: 'value'}}, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const MetaobjectDefinitions = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'metaobjectDefinitions'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'after'}}, - type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'metaobjectDefinitions'}, - arguments: [ - {kind: 'Argument', name: {kind: 'Name', value: 'first'}, value: {kind: 'IntValue', value: '10'}}, - { - kind: 'Argument', - name: {kind: 'Name', value: 'after'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'after'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'pageInfo'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'hasNextPage'}}, - {kind: 'Field', name: {kind: 'Name', value: 'endCursor'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'nodes'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'FragmentSpread', name: {kind: 'Name', value: 'MetaobjectForImport'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: {kind: 'Name', value: 'MetaobjectForImport'}, - typeCondition: {kind: 'NamedType', name: {kind: 'Name', value: 'MetaobjectDefinition'}}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'type'}}, - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - {kind: 'Field', name: {kind: 'Name', value: 'description'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'access'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'admin'}}, - {kind: 'Field', name: {kind: 'Name', value: 'storefront'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: 'displayNameKey'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'capabilities'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'publishable'}, - selectionSet: { - kind: 'SelectionSet', - selections: [{kind: 'Field', name: {kind: 'Name', value: 'enabled'}}], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'translatable'}, - selectionSet: { - kind: 'SelectionSet', - selections: [{kind: 'Field', name: {kind: 'Name', value: 'enabled'}}], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'renderable'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'enabled'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'data'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'metaTitleKey'}}, - {kind: 'Field', name: {kind: 'Name', value: 'metaDescriptionKey'}}, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'fieldDefinitions'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'key'}}, - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'type'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'category'}}, - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: 'description'}}, - {kind: 'Field', name: {kind: 'Name', value: 'required'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'validations'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - {kind: 'Field', name: {kind: 'Name', value: 'value'}}, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const MetaobjectForImportFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MetaobjectForImport"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MetaobjectDefinition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"access"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"admin"}},{"kind":"Field","name":{"kind":"Name","value":"storefront"}}]}},{"kind":"Field","name":{"kind":"Name","value":"displayNameKey"}},{"kind":"Field","name":{"kind":"Name","value":"capabilities"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"publishable"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"enabled"}}]}},{"kind":"Field","name":{"kind":"Name","value":"translatable"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"enabled"}}]}},{"kind":"Field","name":{"kind":"Name","value":"renderable"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"enabled"}},{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"metaTitleKey"}},{"kind":"Field","name":{"kind":"Name","value":"metaDescriptionKey"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldDefinitions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"required"}},{"kind":"Field","name":{"kind":"Name","value":"validations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}}]} as unknown as DocumentNode; +export const MetaobjectDefinitionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"metaobjectDefinitions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"after"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"metaobjectDefinitions"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"10"}},{"kind":"Argument","name":{"kind":"Name","value":"after"},"value":{"kind":"Variable","name":{"kind":"Name","value":"after"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MetaobjectForImport"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MetaobjectForImport"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MetaobjectDefinition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"access"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"admin"}},{"kind":"Field","name":{"kind":"Name","value":"storefront"}}]}},{"kind":"Field","name":{"kind":"Name","value":"displayNameKey"}},{"kind":"Field","name":{"kind":"Name","value":"capabilities"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"publishable"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"enabled"}}]}},{"kind":"Field","name":{"kind":"Name","value":"translatable"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"enabled"}}]}},{"kind":"Field","name":{"kind":"Name","value":"renderable"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"enabled"}},{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"metaTitleKey"}},{"kind":"Field","name":{"kind":"Name","value":"metaDescriptionKey"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldDefinitions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"required"}},{"kind":"Field","name":{"kind":"Name","value":"validations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/app-dev/generated/dev-session-create.ts b/packages/app/src/cli/api/graphql/app-dev/generated/dev-session-create.ts index fc7b96cdd62..eac065810e1 100644 --- a/packages/app/src/cli/api/graphql/app-dev/generated/dev-session-create.ts +++ b/packages/app/src/cli/api/graphql/app-dev/generated/dev-session-create.ts @@ -1,146 +1,16 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' - +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type DevSessionCreateMutationVariables = Types.Exact<{ - appId: Types.Scalars['String']['input'] - assetsUrl: Types.Scalars['String']['input'] - websocketUrl?: Types.InputMaybe -}> + appId: Types.Scalars['String']['input']; + assetsUrl: Types.Scalars['String']['input']; + websocketUrl?: Types.InputMaybe; +}>; + + +export type DevSessionCreateMutation = { devSessionCreate?: { devSession?: { websocketUrl?: string | null, updatedAt: string, user?: { id: string, email?: string | null } | null, app: { id: string, key: string } } | null, warnings?: Array<{ message: string, code: Types.DevSessionWarningCode }> | null, userErrors: Array<{ message: string, on: JsonMapType, field?: Array | null, category: string }> } | null }; -export type DevSessionCreateMutation = { - devSessionCreate?: { - devSession?: { - websocketUrl?: string | null - updatedAt: unknown - user?: {id: string; email?: string | null} | null - app: {id: string; key: string} - } | null - warnings?: {message: string; code: Types.DevSessionWarningCode}[] | null - userErrors: {message: string; on: JsonMapType; field?: string[] | null; category: string}[] - } | null -} -export const DevSessionCreate = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: {kind: 'Name', value: 'DevSessionCreate'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'appId'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'assetsUrl'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'websocketUrl'}}, - type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'devSessionCreate'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'appId'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'appId'}}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'assetsUrl'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'assetsUrl'}}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'websocketUrl'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'websocketUrl'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'devSession'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'websocketUrl'}}, - {kind: 'Field', name: {kind: 'Name', value: 'updatedAt'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'user'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - {kind: 'Field', name: {kind: 'Name', value: 'email'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'app'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - {kind: 'Field', name: {kind: 'Name', value: 'key'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'warnings'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'message'}}, - {kind: 'Field', name: {kind: 'Name', value: 'code'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'userErrors'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'message'}}, - {kind: 'Field', name: {kind: 'Name', value: 'on'}}, - {kind: 'Field', name: {kind: 'Name', value: 'field'}}, - {kind: 'Field', name: {kind: 'Name', value: 'category'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const DevSessionCreateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DevSessionCreate"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"assetsUrl"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"websocketUrl"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"devSessionCreate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId"}}},{"kind":"Argument","name":{"kind":"Name","value":"assetsUrl"},"value":{"kind":"Variable","name":{"kind":"Name","value":"assetsUrl"}}},{"kind":"Argument","name":{"kind":"Name","value":"websocketUrl"},"value":{"kind":"Variable","name":{"kind":"Name","value":"websocketUrl"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"devSession"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"websocketUrl"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"app"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"warnings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userErrors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"on"}},{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/app-dev/generated/dev-session-delete.ts b/packages/app/src/cli/api/graphql/app-dev/generated/dev-session-delete.ts index 3f6ccb87cae..63a0a46e066 100644 --- a/packages/app/src/cli/api/graphql/app-dev/generated/dev-session-delete.ts +++ b/packages/app/src/cli/api/graphql/app-dev/generated/dev-session-delete.ts @@ -1,61 +1,14 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type DevSessionDeleteMutationVariables = Types.Exact<{ - appId: Types.Scalars['String']['input'] -}> + appId: Types.Scalars['String']['input']; +}>; + + +export type DevSessionDeleteMutation = { devSessionDelete?: { userErrors: Array<{ message: string }> } | null }; -export type DevSessionDeleteMutation = {devSessionDelete?: {userErrors: {message: string}[]} | null} -export const DevSessionDelete = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: {kind: 'Name', value: 'DevSessionDelete'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'appId'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'devSessionDelete'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'appId'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'appId'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'userErrors'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'message'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const DevSessionDeleteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DevSessionDelete"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"devSessionDelete"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userErrors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/app-dev/generated/dev-session-update.ts b/packages/app/src/cli/api/graphql/app-dev/generated/dev-session-update.ts index 84b86c7c51d..a5f05885a0d 100644 --- a/packages/app/src/cli/api/graphql/app-dev/generated/dev-session-update.ts +++ b/packages/app/src/cli/api/graphql/app-dev/generated/dev-session-update.ts @@ -1,150 +1,17 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' - +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type DevSessionUpdateMutationVariables = Types.Exact<{ - appId: Types.Scalars['String']['input'] - assetsUrl?: Types.InputMaybe - manifest?: Types.InputMaybe - inheritedModuleUids: Types.Scalars['String']['input'][] | Types.Scalars['String']['input'] -}> + appId: Types.Scalars['String']['input']; + assetsUrl?: Types.InputMaybe; + manifest?: Types.InputMaybe; + inheritedModuleUids: Array | Types.Scalars['String']['input']; +}>; + + +export type DevSessionUpdateMutation = { devSessionUpdate?: { devSession?: { websocketUrl?: string | null, updatedAt: string, user?: { id: string, email?: string | null } | null, app: { id: string, key: string } } | null, userErrors: Array<{ message: string, on: JsonMapType, field?: Array | null, category: string }> } | null }; -export type DevSessionUpdateMutation = { - devSessionUpdate?: { - devSession?: { - websocketUrl?: string | null - updatedAt: unknown - user?: {id: string; email?: string | null} | null - app: {id: string; key: string} - } | null - userErrors: {message: string; on: JsonMapType; field?: string[] | null; category: string}[] - } | null -} -export const DevSessionUpdate = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: {kind: 'Name', value: 'DevSessionUpdate'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'appId'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'assetsUrl'}}, - type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'manifest'}}, - type: {kind: 'NamedType', name: {kind: 'Name', value: 'JSON'}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'inheritedModuleUids'}}, - type: { - kind: 'NonNullType', - type: { - kind: 'ListType', - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'devSessionUpdate'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'appId'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'appId'}}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'assetsUrl'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'assetsUrl'}}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'manifest'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'manifest'}}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'inheritedModuleUids'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'inheritedModuleUids'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'devSession'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'websocketUrl'}}, - {kind: 'Field', name: {kind: 'Name', value: 'updatedAt'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'user'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - {kind: 'Field', name: {kind: 'Name', value: 'email'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'app'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - {kind: 'Field', name: {kind: 'Name', value: 'key'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'userErrors'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'message'}}, - {kind: 'Field', name: {kind: 'Name', value: 'on'}}, - {kind: 'Field', name: {kind: 'Name', value: 'field'}}, - {kind: 'Field', name: {kind: 'Name', value: 'category'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const DevSessionUpdateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DevSessionUpdate"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"assetsUrl"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"manifest"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inheritedModuleUids"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"devSessionUpdate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"appId"}}},{"kind":"Argument","name":{"kind":"Name","value":"assetsUrl"},"value":{"kind":"Variable","name":{"kind":"Name","value":"assetsUrl"}}},{"kind":"Argument","name":{"kind":"Name","value":"manifest"},"value":{"kind":"Variable","name":{"kind":"Name","value":"manifest"}}},{"kind":"Argument","name":{"kind":"Name","value":"inheritedModuleUids"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inheritedModuleUids"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"devSession"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"websocketUrl"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"app"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userErrors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"on"}},{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-cancel.ts b/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-cancel.ts index d5cd5a967fb..436e181f3cb 100644 --- a/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-cancel.ts +++ b/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-cancel.ts @@ -1,102 +1,14 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type BulkOperationCancelMutationVariables = Types.Exact<{ - id: Types.Scalars['ID']['input'] -}> + id: Types.Scalars['ID']['input']; +}>; + + +export type BulkOperationCancelMutation = { bulkOperationCancel?: { bulkOperation?: { completedAt?: any | null, createdAt: any, errorCode?: Types.BulkOperationErrorCode | null, fileSize?: any | null, id: string, objectCount: any, partialDataUrl?: string | null, query: string, rootObjectCount: any, status: Types.BulkOperationStatus, type: Types.BulkOperationType, url?: string | null } | null, userErrors: Array<{ field?: Array | null, message: string }> } | null }; -export type BulkOperationCancelMutation = { - bulkOperationCancel?: { - bulkOperation?: { - completedAt?: unknown | null - createdAt: unknown - errorCode?: Types.BulkOperationErrorCode | null - fileSize?: unknown | null - id: string - objectCount: unknown - partialDataUrl?: string | null - query: string - rootObjectCount: unknown - status: Types.BulkOperationStatus - type: Types.BulkOperationType - url?: string | null - } | null - userErrors: {field?: string[] | null; message: string}[] - } | null -} -export const BulkOperationCancel = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: {kind: 'Name', value: 'BulkOperationCancel'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'id'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'ID'}}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'bulkOperationCancel'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'id'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'id'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'bulkOperation'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'completedAt'}}, - {kind: 'Field', name: {kind: 'Name', value: 'createdAt'}}, - {kind: 'Field', name: {kind: 'Name', value: 'errorCode'}}, - {kind: 'Field', name: {kind: 'Name', value: 'fileSize'}}, - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - {kind: 'Field', name: {kind: 'Name', value: 'objectCount'}}, - {kind: 'Field', name: {kind: 'Name', value: 'partialDataUrl'}}, - {kind: 'Field', name: {kind: 'Name', value: 'query'}}, - {kind: 'Field', name: {kind: 'Name', value: 'rootObjectCount'}}, - {kind: 'Field', name: {kind: 'Name', value: 'status'}}, - {kind: 'Field', name: {kind: 'Name', value: 'type'}}, - {kind: 'Field', name: {kind: 'Name', value: 'url'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'userErrors'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'field'}}, - {kind: 'Field', name: {kind: 'Name', value: 'message'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const BulkOperationCancelDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"BulkOperationCancel"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bulkOperationCancel"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bulkOperation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"completedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"errorCode"}},{"kind":"Field","name":{"kind":"Name","value":"fileSize"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"objectCount"}},{"kind":"Field","name":{"kind":"Name","value":"partialDataUrl"}},{"kind":"Field","name":{"kind":"Name","value":"query"}},{"kind":"Field","name":{"kind":"Name","value":"rootObjectCount"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userErrors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-mutation.ts b/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-mutation.ts index 55f70a8154a..6a674436cb1 100644 --- a/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-mutation.ts +++ b/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-mutation.ts @@ -1,119 +1,16 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type BulkOperationRunMutationMutationVariables = Types.Exact<{ - mutation: Types.Scalars['String']['input'] - stagedUploadPath: Types.Scalars['String']['input'] - clientIdentifier?: Types.InputMaybe -}> + mutation: Types.Scalars['String']['input']; + stagedUploadPath: Types.Scalars['String']['input']; + clientIdentifier?: Types.InputMaybe; +}>; + + +export type BulkOperationRunMutationMutation = { bulkOperationRunMutation?: { bulkOperation?: { type: Types.BulkOperationType, completedAt?: any | null, createdAt: any, errorCode?: Types.BulkOperationErrorCode | null, id: string, objectCount: any, partialDataUrl?: string | null, status: Types.BulkOperationStatus, url?: string | null } | null, userErrors: Array<{ code?: Types.BulkMutationErrorCode | null, field?: Array | null, message: string }> } | null }; -export type BulkOperationRunMutationMutation = { - bulkOperationRunMutation?: { - bulkOperation?: { - type: Types.BulkOperationType - completedAt?: unknown | null - createdAt: unknown - errorCode?: Types.BulkOperationErrorCode | null - id: string - objectCount: unknown - partialDataUrl?: string | null - status: Types.BulkOperationStatus - url?: string | null - } | null - userErrors: {code?: Types.BulkMutationErrorCode | null; field?: string[] | null; message: string}[] - } | null -} -export const BulkOperationRunMutation = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: {kind: 'Name', value: 'BulkOperationRunMutation'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'mutation'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'stagedUploadPath'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'clientIdentifier'}}, - type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'bulkOperationRunMutation'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'mutation'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'mutation'}}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'stagedUploadPath'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'stagedUploadPath'}}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'clientIdentifier'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'clientIdentifier'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'bulkOperation'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'type'}}, - {kind: 'Field', name: {kind: 'Name', value: 'completedAt'}}, - {kind: 'Field', name: {kind: 'Name', value: 'createdAt'}}, - {kind: 'Field', name: {kind: 'Name', value: 'errorCode'}}, - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - {kind: 'Field', name: {kind: 'Name', value: 'objectCount'}}, - {kind: 'Field', name: {kind: 'Name', value: 'partialDataUrl'}}, - {kind: 'Field', name: {kind: 'Name', value: 'status'}}, - {kind: 'Field', name: {kind: 'Name', value: 'url'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'userErrors'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'code'}}, - {kind: 'Field', name: {kind: 'Name', value: 'field'}}, - {kind: 'Field', name: {kind: 'Name', value: 'message'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const BulkOperationRunMutationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"BulkOperationRunMutation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"mutation"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"stagedUploadPath"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientIdentifier"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bulkOperationRunMutation"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"mutation"},"value":{"kind":"Variable","name":{"kind":"Name","value":"mutation"}}},{"kind":"Argument","name":{"kind":"Name","value":"stagedUploadPath"},"value":{"kind":"Variable","name":{"kind":"Name","value":"stagedUploadPath"}}},{"kind":"Argument","name":{"kind":"Name","value":"clientIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bulkOperation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"completedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"errorCode"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"objectCount"}},{"kind":"Field","name":{"kind":"Name","value":"partialDataUrl"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userErrors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-query.ts b/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-query.ts index 5547c46b8a8..d59469c4b5d 100644 --- a/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-query.ts +++ b/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-query.ts @@ -1,97 +1,14 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type BulkOperationRunQueryMutationVariables = Types.Exact<{ - query: Types.Scalars['String']['input'] -}> + query: Types.Scalars['String']['input']; +}>; + + +export type BulkOperationRunQueryMutation = { bulkOperationRunQuery?: { bulkOperation?: { type: Types.BulkOperationType, completedAt?: any | null, createdAt: any, errorCode?: Types.BulkOperationErrorCode | null, id: string, objectCount: any, partialDataUrl?: string | null, status: Types.BulkOperationStatus, url?: string | null } | null, userErrors: Array<{ code?: Types.BulkOperationUserErrorCode | null, field?: Array | null, message: string }> } | null }; -export type BulkOperationRunQueryMutation = { - bulkOperationRunQuery?: { - bulkOperation?: { - type: Types.BulkOperationType - completedAt?: unknown | null - createdAt: unknown - errorCode?: Types.BulkOperationErrorCode | null - id: string - objectCount: unknown - partialDataUrl?: string | null - status: Types.BulkOperationStatus - url?: string | null - } | null - userErrors: {code?: Types.BulkOperationUserErrorCode | null; field?: string[] | null; message: string}[] - } | null -} -export const BulkOperationRunQuery = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: {kind: 'Name', value: 'BulkOperationRunQuery'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'query'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'bulkOperationRunQuery'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'query'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'query'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'bulkOperation'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'type'}}, - {kind: 'Field', name: {kind: 'Name', value: 'completedAt'}}, - {kind: 'Field', name: {kind: 'Name', value: 'createdAt'}}, - {kind: 'Field', name: {kind: 'Name', value: 'errorCode'}}, - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - {kind: 'Field', name: {kind: 'Name', value: 'objectCount'}}, - {kind: 'Field', name: {kind: 'Name', value: 'partialDataUrl'}}, - {kind: 'Field', name: {kind: 'Name', value: 'status'}}, - {kind: 'Field', name: {kind: 'Name', value: 'url'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'userErrors'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'code'}}, - {kind: 'Field', name: {kind: 'Name', value: 'field'}}, - {kind: 'Field', name: {kind: 'Name', value: 'message'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const BulkOperationRunQueryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"BulkOperationRunQuery"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bulkOperationRunQuery"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"query"},"value":{"kind":"Variable","name":{"kind":"Name","value":"query"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bulkOperation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"completedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"errorCode"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"objectCount"}},{"kind":"Field","name":{"kind":"Name","value":"partialDataUrl"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userErrors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/bulk-operations/generated/get-bulk-operation-by-id.ts b/packages/app/src/cli/api/graphql/bulk-operations/generated/get-bulk-operation-by-id.ts index 84d1ab97191..f5594b9e8c0 100644 --- a/packages/app/src/cli/api/graphql/bulk-operations/generated/get-bulk-operation-by-id.ts +++ b/packages/app/src/cli/api/graphql/bulk-operations/generated/get-bulk-operation-by-id.ts @@ -1,71 +1,14 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type GetBulkOperationByIdQueryVariables = Types.Exact<{ - id: Types.Scalars['ID']['input'] -}> + id: Types.Scalars['ID']['input']; +}>; + + +export type GetBulkOperationByIdQuery = { bulkOperation?: { type: Types.BulkOperationType, completedAt?: any | null, createdAt: any, errorCode?: Types.BulkOperationErrorCode | null, id: string, objectCount: any, partialDataUrl?: string | null, status: Types.BulkOperationStatus, url?: string | null } | null }; -export type GetBulkOperationByIdQuery = { - bulkOperation?: { - type: Types.BulkOperationType - completedAt?: unknown | null - createdAt: unknown - errorCode?: Types.BulkOperationErrorCode | null - id: string - objectCount: unknown - partialDataUrl?: string | null - status: Types.BulkOperationStatus - url?: string | null - } | null -} -export const GetBulkOperationById = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'GetBulkOperationById'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'id'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'ID'}}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'bulkOperation'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'id'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'id'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'type'}}, - {kind: 'Field', name: {kind: 'Name', value: 'completedAt'}}, - {kind: 'Field', name: {kind: 'Name', value: 'createdAt'}}, - {kind: 'Field', name: {kind: 'Name', value: 'errorCode'}}, - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - {kind: 'Field', name: {kind: 'Name', value: 'objectCount'}}, - {kind: 'Field', name: {kind: 'Name', value: 'partialDataUrl'}}, - {kind: 'Field', name: {kind: 'Name', value: 'status'}}, - {kind: 'Field', name: {kind: 'Name', value: 'url'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const GetBulkOperationByIdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetBulkOperationById"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bulkOperation"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"completedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"errorCode"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"objectCount"}},{"kind":"Field","name":{"kind":"Name","value":"partialDataUrl"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/bulk-operations/generated/list-bulk-operations.ts b/packages/app/src/cli/api/graphql/bulk-operations/generated/list-bulk-operations.ts index a8e32522efe..42d9053b1ac 100644 --- a/packages/app/src/cli/api/graphql/bulk-operations/generated/list-bulk-operations.ts +++ b/packages/app/src/cli/api/graphql/bulk-operations/generated/list-bulk-operations.ts @@ -1,103 +1,16 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type ListBulkOperationsQueryVariables = Types.Exact<{ - query?: Types.InputMaybe - first: Types.Scalars['Int']['input'] - sortKey: Types.BulkOperationsSortKeys -}> + query?: Types.InputMaybe; + first: Types.Scalars['Int']['input']; + sortKey: Types.BulkOperationsSortKeys; +}>; + + +export type ListBulkOperationsQuery = { bulkOperations: { nodes: Array<{ id: string, status: Types.BulkOperationStatus, errorCode?: Types.BulkOperationErrorCode | null, objectCount: any, createdAt: any, completedAt?: any | null, url?: string | null, partialDataUrl?: string | null }> } }; -export type ListBulkOperationsQuery = { - bulkOperations: { - nodes: { - id: string - status: Types.BulkOperationStatus - errorCode?: Types.BulkOperationErrorCode | null - objectCount: unknown - createdAt: unknown - completedAt?: unknown | null - url?: string | null - partialDataUrl?: string | null - }[] - } -} -export const ListBulkOperations = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'ListBulkOperations'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'query'}}, - type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'first'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'Int'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'sortKey'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'BulkOperationsSortKeys'}}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'bulkOperations'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'first'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'first'}}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'query'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'query'}}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'sortKey'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'sortKey'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'nodes'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - {kind: 'Field', name: {kind: 'Name', value: 'status'}}, - {kind: 'Field', name: {kind: 'Name', value: 'errorCode'}}, - {kind: 'Field', name: {kind: 'Name', value: 'objectCount'}}, - {kind: 'Field', name: {kind: 'Name', value: 'createdAt'}}, - {kind: 'Field', name: {kind: 'Name', value: 'completedAt'}}, - {kind: 'Field', name: {kind: 'Name', value: 'url'}}, - {kind: 'Field', name: {kind: 'Name', value: 'partialDataUrl'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const ListBulkOperationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListBulkOperations"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"first"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sortKey"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"BulkOperationsSortKeys"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bulkOperations"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"Variable","name":{"kind":"Name","value":"first"}}},{"kind":"Argument","name":{"kind":"Name","value":"query"},"value":{"kind":"Variable","name":{"kind":"Name","value":"query"}}},{"kind":"Argument","name":{"kind":"Name","value":"sortKey"},"value":{"kind":"Variable","name":{"kind":"Name","value":"sortKey"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"errorCode"}},{"kind":"Field","name":{"kind":"Name","value":"objectCount"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"completedAt"}},{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"partialDataUrl"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/bulk-operations/generated/staged-uploads-create.ts b/packages/app/src/cli/api/graphql/bulk-operations/generated/staged-uploads-create.ts index c6d15becc46..c8142f82b78 100644 --- a/packages/app/src/cli/api/graphql/bulk-operations/generated/staged-uploads-create.ts +++ b/packages/app/src/cli/api/graphql/bulk-operations/generated/staged-uploads-create.ts @@ -1,103 +1,14 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type StagedUploadsCreateMutationVariables = Types.Exact<{ - input: Types.StagedUploadInput[] | Types.StagedUploadInput -}> + input: Array | Types.StagedUploadInput; +}>; + + +export type StagedUploadsCreateMutation = { stagedUploadsCreate?: { stagedTargets?: Array<{ url?: string | null, resourceUrl?: string | null, parameters: Array<{ name: string, value: string }> }> | null, userErrors: Array<{ field?: Array | null, message: string }> } | null }; -export type StagedUploadsCreateMutation = { - stagedUploadsCreate?: { - stagedTargets?: - | { - url?: string | null - resourceUrl?: string | null - parameters: {name: string; value: string}[] - }[] - | null - userErrors: {field?: string[] | null; message: string}[] - } | null -} -export const StagedUploadsCreate = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: {kind: 'Name', value: 'StagedUploadsCreate'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'input'}}, - type: { - kind: 'NonNullType', - type: { - kind: 'ListType', - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'StagedUploadInput'}}}, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'stagedUploadsCreate'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'input'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'input'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'stagedTargets'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'url'}}, - {kind: 'Field', name: {kind: 'Name', value: 'resourceUrl'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'parameters'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - {kind: 'Field', name: {kind: 'Name', value: 'value'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'userErrors'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'field'}}, - {kind: 'Field', name: {kind: 'Name', value: 'message'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const StagedUploadsCreateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"StagedUploadsCreate"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"StagedUploadInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stagedUploadsCreate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stagedTargets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"resourceUrl"}},{"kind":"Field","name":{"kind":"Name","value":"parameters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userErrors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/bulk-operations/generated/types.d.ts b/packages/app/src/cli/api/graphql/bulk-operations/generated/types.d.ts index 911c90858e9..c8dc91c4962 100644 --- a/packages/app/src/cli/api/graphql/bulk-operations/generated/types.d.ts +++ b/packages/app/src/cli/api/graphql/bulk-operations/generated/types.d.ts @@ -182,7 +182,7 @@ export type BulkOperationStatus = * [BulkOperation.errorCode](https://shopify.dev/api/admin-graphql/latest/enums/bulkoperationerrorcode). */ | 'FAILED' - /** The bulk operation is running. */ + /** The bulk operation is runnning. */ | 'RUNNING'; /** The valid values for the bulk operation's type. */ diff --git a/packages/app/src/cli/api/graphql/business-platform-destinations/generated/find-organizations.ts b/packages/app/src/cli/api/graphql/business-platform-destinations/generated/find-organizations.ts index 70c948f0e2c..054c72414d7 100644 --- a/packages/app/src/cli/api/graphql/business-platform-destinations/generated/find-organizations.ts +++ b/packages/app/src/cli/api/graphql/business-platform-destinations/generated/find-organizations.ts @@ -1,62 +1,14 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type FindOrganizationsQueryVariables = Types.Exact<{ - organizationId: Types.Scalars['OrganizationID']['input'] -}> + organizationId: Types.Scalars['OrganizationID']['input']; +}>; + + +export type FindOrganizationsQuery = { currentUserAccount?: { organization?: { id: string, name: string } | null } | null }; -export type FindOrganizationsQuery = {currentUserAccount?: {organization?: {id: string; name: string} | null} | null} -export const FindOrganizations = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'FindOrganizations'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'organizationId'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'OrganizationID'}}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'currentUserAccount'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'organization'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'id'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'organizationId'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const FindOrganizationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOrganizations"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"organizationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentUserAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"organization"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"organizationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/business-platform-destinations/generated/organizations.ts b/packages/app/src/cli/api/graphql/business-platform-destinations/generated/organizations.ts index fffb8744b01..1be03ee1013 100644 --- a/packages/app/src/cli/api/graphql/business-platform-destinations/generated/organizations.ts +++ b/packages/app/src/cli/api/graphql/business-platform-destinations/generated/organizations.ts @@ -1,69 +1,12 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; +export type ListOrganizationsQueryVariables = Types.Exact<{ [key: string]: never; }>; -export type ListOrganizationsQueryVariables = Types.Exact<{[key: string]: never}> -export type ListOrganizationsQuery = { - currentUserAccount?: { - uuid: string - organizationsWithAccessToDestination: {nodes: {id: string; name: string}[]} - } | null -} +export type ListOrganizationsQuery = { currentUserAccount?: { uuid: string, organizationsWithAccessToDestination: { nodes: Array<{ id: string, name: string }> } } | null }; -export const ListOrganizations = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'ListOrganizations'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'currentUserAccount'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'uuid'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'organizationsWithAccessToDestination'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'destination'}, - value: {kind: 'EnumValue', value: 'APPS_CLI'}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'nodes'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode + +export const ListOrganizationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListOrganizations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentUserAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"organizationsWithAccessToDestination"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"destination"},"value":{"kind":"EnumValue","value":"APPS_CLI"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/business-platform-destinations/generated/user-info.ts b/packages/app/src/cli/api/graphql/business-platform-destinations/generated/user-info.ts index af4e8d9e0b8..8496108e8bd 100644 --- a/packages/app/src/cli/api/graphql/business-platform-destinations/generated/user-info.ts +++ b/packages/app/src/cli/api/graphql/business-platform-destinations/generated/user-info.ts @@ -1,62 +1,12 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; +export type UserInfoQueryVariables = Types.Exact<{ [key: string]: never; }>; -export type UserInfoQueryVariables = Types.Exact<{[key: string]: never}> -export type UserInfoQuery = { - currentUserAccount?: {uuid: string; email: string; organizations: {nodes: {name: string}[]}} | null -} +export type UserInfoQuery = { currentUserAccount?: { uuid: string, email: string, organizations: { nodes: Array<{ name: string }> } } | null }; -export const UserInfo = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'UserInfo'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'currentUserAccount'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'uuid'}}, - {kind: 'Field', name: {kind: 'Name', value: 'email'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'organizations'}, - arguments: [ - {kind: 'Argument', name: {kind: 'Name', value: 'first'}, value: {kind: 'IntValue', value: '2'}}, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'nodes'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode + +export const UserInfoDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UserInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentUserAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"organizations"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"2"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/business-platform-organizations/generated/fetch_store_by_domain.ts b/packages/app/src/cli/api/graphql/business-platform-organizations/generated/fetch_store_by_domain.ts index afb16badd61..6ac10f47bd0 100644 --- a/packages/app/src/cli/api/graphql/business-platform-organizations/generated/fetch_store_by_domain.ts +++ b/packages/app/src/cli/api/graphql/business-platform-organizations/generated/fetch_store_by_domain.ts @@ -1,133 +1,18 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type FetchStoreByDomainQueryVariables = Types.Exact<{ - domain?: Types.InputMaybe - filters?: Types.InputMaybe -}> + domain?: Types.InputMaybe; + filters?: Types.InputMaybe | Types.ShopFilterInput>; +}>; + + +export type FetchStoreByDomainQuery = { organization?: { id: string, name: string, accessibleShops?: { edges: Array<{ node: { id: string, externalId?: string | null, name: string, storeType?: Types.Store | null, primaryDomain?: string | null, shortName?: string | null, url?: string | null } }> } | null, currentUser?: + | { organizationPermissions: Array } + | { organizationPermissions: Array } + | null } | null }; -export type FetchStoreByDomainQuery = { - organization?: { - id: string - name: string - accessibleShops?: { - edges: { - node: { - id: string - externalId?: string | null - name: string - storeType?: Types.Store | null - primaryDomain?: string | null - shortName?: string | null - url?: string | null - } - }[] - } | null - currentUser?: {organizationPermissions: string[]} | {organizationPermissions: string[]} | null - } | null -} -export const FetchStoreByDomain = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'FetchStoreByDomain'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'domain'}}, - type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'filters'}}, - type: { - kind: 'ListType', - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'ShopFilterInput'}}}, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'organization'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'accessibleShops'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'filters'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'filters'}}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'search'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'domain'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'edges'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'node'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - {kind: 'Field', name: {kind: 'Name', value: 'externalId'}}, - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - {kind: 'Field', name: {kind: 'Name', value: 'storeType'}}, - {kind: 'Field', name: {kind: 'Name', value: 'primaryDomain'}}, - {kind: 'Field', name: {kind: 'Name', value: 'shortName'}}, - {kind: 'Field', name: {kind: 'Name', value: 'url'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'currentUser'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'organizationPermissions'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const FetchStoreByDomainDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FetchStoreByDomain"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"domain"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ShopFilterInput"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"accessibleShops"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}},{"kind":"Argument","name":{"kind":"Name","value":"search"},"value":{"kind":"Variable","name":{"kind":"Name","value":"domain"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"externalId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"storeType"}},{"kind":"Field","name":{"kind":"Name","value":"primaryDomain"}},{"kind":"Field","name":{"kind":"Name","value":"shortName"}},{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"organizationPermissions"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/business-platform-organizations/generated/list_app_dev_stores.ts b/packages/app/src/cli/api/graphql/business-platform-organizations/generated/list_app_dev_stores.ts index aa76f2a7f06..70a86146e39 100644 --- a/packages/app/src/cli/api/graphql/business-platform-organizations/generated/list_app_dev_stores.ts +++ b/packages/app/src/cli/api/graphql/business-platform-organizations/generated/list_app_dev_stores.ts @@ -1,155 +1,17 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type ListAppDevStoresQueryVariables = Types.Exact<{ - searchTerm?: Types.InputMaybe -}> + searchTerm?: Types.InputMaybe; +}>; + + +export type ListAppDevStoresQuery = { organization?: { id: string, name: string, accessibleShops?: { edges: Array<{ node: { id: string, externalId?: string | null, name: string, storeType?: Types.Store | null, primaryDomain?: string | null, shortName?: string | null, url?: string | null } }>, pageInfo: { hasNextPage: boolean } } | null, currentUser?: + | { organizationPermissions: Array } + | { organizationPermissions: Array } + | null } | null }; -export type ListAppDevStoresQuery = { - organization?: { - id: string - name: string - accessibleShops?: { - edges: { - node: { - id: string - externalId?: string | null - name: string - storeType?: Types.Store | null - primaryDomain?: string | null - shortName?: string | null - url?: string | null - } - }[] - pageInfo: {hasNextPage: boolean} - } | null - currentUser?: {organizationPermissions: string[]} | {organizationPermissions: string[]} | null - } | null -} -export const ListAppDevStores = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'ListAppDevStores'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'searchTerm'}}, - type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'organization'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'accessibleShops'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'filters'}, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: {kind: 'Name', value: 'field'}, - value: {kind: 'EnumValue', value: 'STORE_TYPE'}, - }, - { - kind: 'ObjectField', - name: {kind: 'Name', value: 'operator'}, - value: {kind: 'EnumValue', value: 'EQUALS'}, - }, - { - kind: 'ObjectField', - name: {kind: 'Name', value: 'value'}, - value: {kind: 'StringValue', value: 'app_development', block: false}, - }, - ], - }, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'search'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'searchTerm'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'edges'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'node'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - {kind: 'Field', name: {kind: 'Name', value: 'externalId'}}, - {kind: 'Field', name: {kind: 'Name', value: 'name'}}, - {kind: 'Field', name: {kind: 'Name', value: 'storeType'}}, - {kind: 'Field', name: {kind: 'Name', value: 'primaryDomain'}}, - {kind: 'Field', name: {kind: 'Name', value: 'shortName'}}, - {kind: 'Field', name: {kind: 'Name', value: 'url'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'pageInfo'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'hasNextPage'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - { - kind: 'Field', - name: {kind: 'Name', value: 'currentUser'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'organizationPermissions'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const ListAppDevStoresDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListAppDevStores"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"searchTerm"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"organization"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"accessibleShops"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"field"},"value":{"kind":"EnumValue","value":"STORE_TYPE"}},{"kind":"ObjectField","name":{"kind":"Name","value":"operator"},"value":{"kind":"EnumValue","value":"EQUALS"}},{"kind":"ObjectField","name":{"kind":"Name","value":"value"},"value":{"kind":"StringValue","value":"app_development","block":false}}]}},{"kind":"Argument","name":{"kind":"Name","value":"search"},"value":{"kind":"Variable","name":{"kind":"Name","value":"searchTerm"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"externalId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"storeType"}},{"kind":"Field","name":{"kind":"Name","value":"primaryDomain"}},{"kind":"Field","name":{"kind":"Name","value":"shortName"}},{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"organizationPermissions"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/business-platform-organizations/generated/organization_exp_flags.ts b/packages/app/src/cli/api/graphql/business-platform-organizations/generated/organization_exp_flags.ts index c953c83d465..283e3048118 100644 --- a/packages/app/src/cli/api/graphql/business-platform-organizations/generated/organization_exp_flags.ts +++ b/packages/app/src/cli/api/graphql/business-platform-organizations/generated/organization_exp_flags.ts @@ -1,74 +1,15 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type OrganizationExpFlagsQueryVariables = Types.Exact<{ - organizationId: Types.Scalars['OrganizationID']['input'] - flagHandles: Types.Scalars['String']['input'][] | Types.Scalars['String']['input'] -}> + organizationId: Types.Scalars['OrganizationID']['input']; + flagHandles: Array | Types.Scalars['String']['input']; +}>; + + +export type OrganizationExpFlagsQuery = { organization?: { id: string, enabledFlags: Array } | null }; -export type OrganizationExpFlagsQuery = {organization?: {id: string; enabledFlags: boolean[]} | null} -export const OrganizationExpFlags = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'OrganizationExpFlags'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'organizationId'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'OrganizationID'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'flagHandles'}}, - type: { - kind: 'NonNullType', - type: { - kind: 'ListType', - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'organization'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'organizationId'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'organizationId'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'enabledFlags'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'flagHandles'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'flagHandles'}}, - }, - ], - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const OrganizationExpFlagsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"OrganizationExpFlags"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"organizationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"flagHandles"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"organization"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"organizationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"organizationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"enabledFlags"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"flagHandles"},"value":{"kind":"Variable","name":{"kind":"Name","value":"flagHandles"}}}]},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/business-platform-organizations/generated/provision_shop_access.ts b/packages/app/src/cli/api/graphql/business-platform-organizations/generated/provision_shop_access.ts index b9682596b4f..c445b5130ae 100644 --- a/packages/app/src/cli/api/graphql/business-platform-organizations/generated/provision_shop_access.ts +++ b/packages/app/src/cli/api/graphql/business-platform-organizations/generated/provision_shop_access.ts @@ -1,67 +1,14 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type ProvisionShopAccessMutationVariables = Types.Exact<{ - input: Types.OrganizationUserProvisionShopAccessInput -}> + input: Types.OrganizationUserProvisionShopAccessInput; +}>; + + +export type ProvisionShopAccessMutation = { organizationUserProvisionShopAccess: { success?: boolean | null, userErrors?: Array<{ message: string }> | null } }; -export type ProvisionShopAccessMutation = { - organizationUserProvisionShopAccess: {success?: boolean | null; userErrors?: {message: string}[] | null} -} -export const ProvisionShopAccess = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: {kind: 'Name', value: 'ProvisionShopAccess'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'input'}}, - type: { - kind: 'NonNullType', - type: {kind: 'NamedType', name: {kind: 'Name', value: 'OrganizationUserProvisionShopAccessInput'}}, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'organizationUserProvisionShopAccess'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'organizationUserProvisionShopAccessInput'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'input'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'success'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'userErrors'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'message'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const ProvisionShopAccessDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ProvisionShopAccess"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"OrganizationUserProvisionShopAccessInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"organizationUserProvisionShopAccess"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"organizationUserProvisionShopAccessInput"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}},{"kind":"Field","name":{"kind":"Name","value":"userErrors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/business-platform-organizations/generated/types.d.ts b/packages/app/src/cli/api/graphql/business-platform-organizations/generated/types.d.ts index 200b94d9837..a400788e936 100644 --- a/packages/app/src/cli/api/graphql/business-platform-organizations/generated/types.d.ts +++ b/packages/app/src/cli/api/graphql/business-platform-organizations/generated/types.d.ts @@ -26,8 +26,6 @@ export type Scalars = { BulkDataOperationID: { input: any; output: any; } /** The ID for a BusinessUser. */ BusinessUserID: { input: any; output: any; } - /** The ID for a BusinessUsersImport. */ - BusinessUsersImportID: { input: any; output: any; } /** A signed decimal number, which supports arbitrary precision and is serialized as a string. */ Decimal: { input: any; output: any; } /** The ID for a DocumentAttachment. */ @@ -96,31 +94,9 @@ export type OrganizationUserProvisionShopAccessInput = { /** Field options for filtering shop queries. */ export type ShopFilterField = - /** - * The phase of the client transfer process. Requires - * `store_type=client_transfer`. Values: `in_development`, `pending`, `completed`. - */ - | 'CLIENT_TRANSFER_PHASE' - /** - * The status of the collaborator relationship. Requires - * `store_type=collaborator`. Values: `active`, `access_pending`, `expired`. - */ - | 'COLLABORATOR_RELATIONSHIP_STATUS' - /** The GID of the counterpart organization. Requires `store_type=client_transfer` or `store_type=collaborator`. */ - | 'COUNTERPART_ORGANIZATION_ID' - /** - * The plan of the shop. Values: `basic`, `grow`, `plus`, `frozen`, `advanced`, - * `inactive`, `cancelled`, `client_transfer`, `plus_client_transfer`, - * `development_legacy`, `custom`, `fraudulent`, `staff`, `trial`, - * `plus_development`, `retail`, `shop_pay_commerce_components`, `non_profit`. - */ - | 'SHOP_PLAN' - /** The active/inactive status of the shop. Values: `active`, `inactive`. */ + /** The active/inactive status of the shop. */ | 'STORE_STATUS' - /** - * The type of the shop. Values: `development`, `production`, `app_development`, - * `development_superset`, `client_transfer`, `collaborator`. - */ + /** The type of the shop. */ | 'STORE_TYPE'; /** Represents a single filter option for shop queries. */ @@ -133,7 +109,6 @@ export type ShopFilterInput = { export type Store = | 'APP_DEVELOPMENT' | 'CLIENT_TRANSFER' - | 'COLLABORATOR' | 'DEVELOPMENT' | 'DEVELOPMENT_SUPERSET' | 'PRODUCTION'; diff --git a/packages/app/src/cli/api/graphql/functions/generated/schema-definition-by-api-type.ts b/packages/app/src/cli/api/graphql/functions/generated/schema-definition-by-api-type.ts index 59d66f3461a..79cb7e0cfc7 100644 --- a/packages/app/src/cli/api/graphql/functions/generated/schema-definition-by-api-type.ts +++ b/packages/app/src/cli/api/graphql/functions/generated/schema-definition-by-api-type.ts @@ -1,74 +1,15 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type SchemaDefinitionByApiTypeQueryVariables = Types.Exact<{ - type: Types.Scalars['String']['input'] - version: Types.Scalars['String']['input'] -}> + type: Types.Scalars['String']['input']; + version: Types.Scalars['String']['input']; +}>; + + +export type SchemaDefinitionByApiTypeQuery = { api?: { schema?: { definition: string } | null } | null }; -export type SchemaDefinitionByApiTypeQuery = {api?: {schema?: {definition: string} | null} | null} -export const SchemaDefinitionByApiType = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'SchemaDefinitionByApiType'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'type'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'version'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'api'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'type'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'type'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'schema'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'version'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'version'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'definition'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const SchemaDefinitionByApiTypeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SchemaDefinitionByApiType"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"type"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"version"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"api"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"type"},"value":{"kind":"Variable","name":{"kind":"Name","value":"type"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"schema"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"version"},"value":{"kind":"Variable","name":{"kind":"Name","value":"version"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"definition"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/functions/generated/schema-definition-by-target.ts b/packages/app/src/cli/api/graphql/functions/generated/schema-definition-by-target.ts index f7dadf4593a..1b8617d0403 100644 --- a/packages/app/src/cli/api/graphql/functions/generated/schema-definition-by-target.ts +++ b/packages/app/src/cli/api/graphql/functions/generated/schema-definition-by-target.ts @@ -1,84 +1,15 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type SchemaDefinitionByTargetQueryVariables = Types.Exact<{ - handle: Types.Scalars['String']['input'] - version: Types.Scalars['String']['input'] -}> + handle: Types.Scalars['String']['input']; + version: Types.Scalars['String']['input']; +}>; + + +export type SchemaDefinitionByTargetQuery = { target?: { api: { schema?: { definition: string } | null } } | null }; -export type SchemaDefinitionByTargetQuery = {target?: {api: {schema?: {definition: string} | null}} | null} -export const SchemaDefinitionByTarget = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'SchemaDefinitionByTarget'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'handle'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'version'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'target'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'handle'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'handle'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'api'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'schema'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'version'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'version'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'definition'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const SchemaDefinitionByTargetDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SchemaDefinitionByTarget"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"handle"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"version"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"target"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"handle"},"value":{"kind":"Variable","name":{"kind":"Name","value":"handle"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"api"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"schema"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"version"},"value":{"kind":"Variable","name":{"kind":"Name","value":"version"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"definition"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/partners/generated/all-orgs.ts b/packages/app/src/cli/api/graphql/partners/generated/all-orgs.ts index a0e4c8c245e..fbf480b7384 100644 --- a/packages/app/src/cli/api/graphql/partners/generated/all-orgs.ts +++ b/packages/app/src/cli/api/graphql/partners/generated/all-orgs.ts @@ -1,49 +1,12 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; +export type AllOrgsQueryVariables = Types.Exact<{ [key: string]: never; }>; -export type AllOrgsQueryVariables = Types.Exact<{[key: string]: never}> -export type AllOrgsQuery = {organizations: {nodes?: ({id: string; businessName: string} | null)[] | null}} +export type AllOrgsQuery = { organizations: { nodes?: Array<{ id: string, businessName: string } | null> | null } }; -export const AllOrgs = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'AllOrgs'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'organizations'}, - arguments: [ - {kind: 'Argument', name: {kind: 'Name', value: 'first'}, value: {kind: 'IntValue', value: '200'}}, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'nodes'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - {kind: 'Field', name: {kind: 'Name', value: 'businessName'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode + +export const AllOrgsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllOrgs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"organizations"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"200"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"businessName"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/partners/generated/current-account-info.ts b/packages/app/src/cli/api/graphql/partners/generated/current-account-info.ts index ebbce6a1785..6fac34c6e91 100644 --- a/packages/app/src/cli/api/graphql/partners/generated/current-account-info.ts +++ b/packages/app/src/cli/api/graphql/partners/generated/current-account-info.ts @@ -1,58 +1,15 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; +export type CurrentAccountInfoQueryVariables = Types.Exact<{ [key: string]: never; }>; -export type CurrentAccountInfoQueryVariables = Types.Exact<{[key: string]: never}> -export type CurrentAccountInfoQuery = { - currentAccountInfo: {__typename: 'ServiceAccount'; orgName: string} | {__typename: 'UserAccount'; email: string} -} +export type CurrentAccountInfoQuery = { currentAccountInfo: + | { __typename: 'ServiceAccount', orgName: string } + | { __typename: 'UserAccount', email: string } + }; -export const CurrentAccountInfo = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'currentAccountInfo'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'currentAccountInfo'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - { - kind: 'InlineFragment', - typeCondition: {kind: 'NamedType', name: {kind: 'Name', value: 'ServiceAccount'}}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'orgName'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: {kind: 'NamedType', name: {kind: 'Name', value: 'UserAccount'}}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'email'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode + +export const CurrentAccountInfoDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"currentAccountInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentAccountInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServiceAccount"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"orgName"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserAccount"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/partners/generated/dev-stores-by-org.ts b/packages/app/src/cli/api/graphql/partners/generated/dev-stores-by-org.ts index 12381011f62..843e310b87e 100644 --- a/packages/app/src/cli/api/graphql/partners/generated/dev-stores-by-org.ts +++ b/packages/app/src/cli/api/graphql/partners/generated/dev-stores-by-org.ts @@ -1,132 +1,14 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type DevStoresByOrgQueryVariables = Types.Exact<{ - id: Types.Scalars['ID']['input'] -}> + id: Types.Scalars['ID']['input']; +}>; + + +export type DevStoresByOrgQuery = { organizations: { nodes?: Array<{ id: string, stores: { nodes?: Array<{ shopId?: string | null, link: any, shopDomain: string, shopName: string, transferDisabled: boolean, convertableToPartnerTest: boolean } | null> | null } } | null> | null } }; -export type DevStoresByOrgQuery = { - organizations: { - nodes?: - | ({ - id: string - stores: { - nodes?: - | ({ - shopId?: string | null - link: unknown - shopDomain: string - shopName: string - transferDisabled: boolean - convertableToPartnerTest: boolean - } | null)[] - | null - } - } | null)[] - | null - } -} -export const DevStoresByOrg = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'DevStoresByOrg'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'id'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'ID'}}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'organizations'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'id'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'id'}}, - }, - {kind: 'Argument', name: {kind: 'Name', value: 'first'}, value: {kind: 'IntValue', value: '1'}}, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'nodes'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'id'}}, - { - kind: 'Field', - name: {kind: 'Name', value: 'stores'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'first'}, - value: {kind: 'IntValue', value: '500'}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'archived'}, - value: {kind: 'BooleanValue', value: false}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'type'}, - value: { - kind: 'ListValue', - values: [ - {kind: 'EnumValue', value: 'DEVELOPMENT'}, - {kind: 'EnumValue', value: 'MANAGED'}, - {kind: 'EnumValue', value: 'PLUS_SANDBOX'}, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'nodes'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'shopId'}}, - {kind: 'Field', name: {kind: 'Name', value: 'link'}}, - {kind: 'Field', name: {kind: 'Name', value: 'shopDomain'}}, - {kind: 'Field', name: {kind: 'Name', value: 'shopName'}}, - {kind: 'Field', name: {kind: 'Name', value: 'transferDisabled'}}, - {kind: 'Field', name: {kind: 'Name', value: 'convertableToPartnerTest'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const DevStoresByOrgDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"DevStoresByOrg"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"organizations"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"stores"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"500"}},{"kind":"Argument","name":{"kind":"Name","value":"archived"},"value":{"kind":"BooleanValue","value":false}},{"kind":"Argument","name":{"kind":"Name","value":"type"},"value":{"kind":"ListValue","values":[{"kind":"EnumValue","value":"DEVELOPMENT"},{"kind":"EnumValue","value":"MANAGED"},{"kind":"EnumValue","value":"PLUS_SANDBOX"}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"shopId"}},{"kind":"Field","name":{"kind":"Name","value":"link"}},{"kind":"Field","name":{"kind":"Name","value":"shopDomain"}},{"kind":"Field","name":{"kind":"Name","value":"shopName"}},{"kind":"Field","name":{"kind":"Name","value":"transferDisabled"}},{"kind":"Field","name":{"kind":"Name","value":"convertableToPartnerTest"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/partners/generated/update-draft.ts b/packages/app/src/cli/api/graphql/partners/generated/update-draft.ts index 0d4f2e9302a..742e3647753 100644 --- a/packages/app/src/cli/api/graphql/partners/generated/update-draft.ts +++ b/packages/app/src/cli/api/graphql/partners/generated/update-draft.ts @@ -1,117 +1,18 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type ExtensionUpdateDraftMutationVariables = Types.Exact<{ - apiKey: Types.Scalars['String']['input'] - registrationId: Types.Scalars['ID']['input'] - config: Types.Scalars['JSON']['input'] - context?: Types.InputMaybe - handle?: Types.InputMaybe -}> + apiKey: Types.Scalars['String']['input']; + registrationId: Types.Scalars['ID']['input']; + config: Types.Scalars['JSON']['input']; + context?: Types.InputMaybe; + handle?: Types.InputMaybe; +}>; + + +export type ExtensionUpdateDraftMutation = { extensionUpdateDraft?: { userErrors?: Array<{ field?: Array | null, message: string }> | null } | null }; -export type ExtensionUpdateDraftMutation = { - extensionUpdateDraft?: {userErrors?: {field?: string[] | null; message: string}[] | null} | null -} -export const ExtensionUpdateDraft = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: {kind: 'Name', value: 'ExtensionUpdateDraft'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'apiKey'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'registrationId'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'ID'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'config'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'JSON'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'context'}}, - type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'handle'}}, - type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'extensionUpdateDraft'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'input'}, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: {kind: 'Name', value: 'apiKey'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'apiKey'}}, - }, - { - kind: 'ObjectField', - name: {kind: 'Name', value: 'registrationId'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'registrationId'}}, - }, - { - kind: 'ObjectField', - name: {kind: 'Name', value: 'config'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'config'}}, - }, - { - kind: 'ObjectField', - name: {kind: 'Name', value: 'context'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'context'}}, - }, - { - kind: 'ObjectField', - name: {kind: 'Name', value: 'handle'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'handle'}}, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'userErrors'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'field'}}, - {kind: 'Field', name: {kind: 'Name', value: 'message'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const ExtensionUpdateDraftDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ExtensionUpdateDraft"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"apiKey"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"registrationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"config"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"context"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"handle"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"extensionUpdateDraft"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"apiKey"},"value":{"kind":"Variable","name":{"kind":"Name","value":"apiKey"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"registrationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"registrationId"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"config"},"value":{"kind":"Variable","name":{"kind":"Name","value":"config"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"context"},"value":{"kind":"Variable","name":{"kind":"Name","value":"context"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"handle"},"value":{"kind":"Variable","name":{"kind":"Name","value":"handle"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userErrors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/webhooks/generated/available-topics.ts b/packages/app/src/cli/api/graphql/webhooks/generated/available-topics.ts index 5d800b5bdf6..39c0a6227a5 100644 --- a/packages/app/src/cli/api/graphql/webhooks/generated/available-topics.ts +++ b/packages/app/src/cli/api/graphql/webhooks/generated/available-topics.ts @@ -1,44 +1,14 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type AvailableTopicsQueryVariables = Types.Exact<{ - apiVersion: Types.Scalars['String']['input'] -}> + apiVersion: Types.Scalars['String']['input']; +}>; + + +export type AvailableTopicsQuery = { availableTopics?: Array | null }; -export type AvailableTopicsQuery = {availableTopics?: string[] | null} -export const AvailableTopics = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'availableTopics'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'apiVersion'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'availableTopics'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'apiVersion'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'apiVersion'}}, - }, - ], - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const AvailableTopicsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"availableTopics"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"apiVersion"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableTopics"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"apiVersion"},"value":{"kind":"Variable","name":{"kind":"Name","value":"apiVersion"}}}]}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/webhooks/generated/cli-testing.ts b/packages/app/src/cli/api/graphql/webhooks/generated/cli-testing.ts index a15253d2cc6..59081fff85c 100644 --- a/packages/app/src/cli/api/graphql/webhooks/generated/cli-testing.ts +++ b/packages/app/src/cli/api/graphql/webhooks/generated/cli-testing.ts @@ -1,111 +1,19 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' - -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type CliTestingMutationVariables = Types.Exact<{ - address: Types.Scalars['String']['input'] - apiKey?: Types.InputMaybe - apiVersion: Types.Scalars['String']['input'] - deliveryMethod: Types.Scalars['String']['input'] - sharedSecret: Types.Scalars['String']['input'] - topic: Types.Scalars['String']['input'] -}> + address: Types.Scalars['String']['input']; + apiKey?: Types.InputMaybe; + apiVersion: Types.Scalars['String']['input']; + deliveryMethod: Types.Scalars['String']['input']; + sharedSecret: Types.Scalars['String']['input']; + topic: Types.Scalars['String']['input']; +}>; + + +export type CliTestingMutation = { cliTesting?: { headers?: string | null, samplePayload?: string | null, success: boolean, errors: Array } | null }; -export type CliTestingMutation = { - cliTesting?: {headers?: string | null; samplePayload?: string | null; success: boolean; errors: string[]} | null -} -export const CliTesting = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: {kind: 'Name', value: 'CliTesting'}, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'address'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'apiKey'}}, - type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'apiVersion'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'deliveryMethod'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'sharedSecret'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - { - kind: 'VariableDefinition', - variable: {kind: 'Variable', name: {kind: 'Name', value: 'topic'}}, - type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'cliTesting'}, - arguments: [ - { - kind: 'Argument', - name: {kind: 'Name', value: 'address'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'address'}}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'apiKey'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'apiKey'}}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'apiVersion'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'apiVersion'}}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'deliveryMethod'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'deliveryMethod'}}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'sharedSecret'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'sharedSecret'}}, - }, - { - kind: 'Argument', - name: {kind: 'Name', value: 'topic'}, - value: {kind: 'Variable', name: {kind: 'Name', value: 'topic'}}, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'headers'}}, - {kind: 'Field', name: {kind: 'Name', value: 'samplePayload'}}, - {kind: 'Field', name: {kind: 'Name', value: 'success'}}, - {kind: 'Field', name: {kind: 'Name', value: 'errors'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode +export const CliTestingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CliTesting"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"address"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"apiKey"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"apiVersion"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"deliveryMethod"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sharedSecret"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"topic"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cliTesting"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"address"},"value":{"kind":"Variable","name":{"kind":"Name","value":"address"}}},{"kind":"Argument","name":{"kind":"Name","value":"apiKey"},"value":{"kind":"Variable","name":{"kind":"Name","value":"apiKey"}}},{"kind":"Argument","name":{"kind":"Name","value":"apiVersion"},"value":{"kind":"Variable","name":{"kind":"Name","value":"apiVersion"}}},{"kind":"Argument","name":{"kind":"Name","value":"deliveryMethod"},"value":{"kind":"Variable","name":{"kind":"Name","value":"deliveryMethod"}}},{"kind":"Argument","name":{"kind":"Name","value":"sharedSecret"},"value":{"kind":"Variable","name":{"kind":"Name","value":"sharedSecret"}}},{"kind":"Argument","name":{"kind":"Name","value":"topic"},"value":{"kind":"Variable","name":{"kind":"Name","value":"topic"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"headers"}},{"kind":"Field","name":{"kind":"Name","value":"samplePayload"}},{"kind":"Field","name":{"kind":"Name","value":"success"}},{"kind":"Field","name":{"kind":"Name","value":"errors"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/app/src/cli/api/graphql/webhooks/generated/public-api-versions.ts b/packages/app/src/cli/api/graphql/webhooks/generated/public-api-versions.ts index c5cc702cd1f..cc1aa3d5cc5 100644 --- a/packages/app/src/cli/api/graphql/webhooks/generated/public-api-versions.ts +++ b/packages/app/src/cli/api/graphql/webhooks/generated/public-api-versions.ts @@ -1,35 +1,12 @@ -/* eslint-disable @typescript-eslint/consistent-type-definitions */ -import * as Types from './types.js' +/* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/naming-convention, @typescript-eslint/no-duplicate-type-constituents, @typescript-eslint/no-redundant-type-constituents, @nx/enforce-module-boundaries */ +import {JsonMapType} from '@shopify/cli-kit/node/toml' +import * as Types from './types'; -import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; +export type PublicApiVersionsQueryVariables = Types.Exact<{ [key: string]: never; }>; -export type PublicApiVersionsQueryVariables = Types.Exact<{[key: string]: never}> -export type PublicApiVersionsQuery = {publicApiVersions: {handle: string}[]} +export type PublicApiVersionsQuery = { publicApiVersions: Array<{ handle: string }> }; -export const PublicApiVersions = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: {kind: 'Name', value: 'publicApiVersions'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: {kind: 'Name', value: 'publicApiVersions'}, - selectionSet: { - kind: 'SelectionSet', - selections: [ - {kind: 'Field', name: {kind: 'Name', value: 'handle'}}, - {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode + +export const PublicApiVersionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"publicApiVersions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"publicApiVersions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"handle"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file