-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
218 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
packages/cli-kit/src/cli/api/graphql/admin/generated/theme_create.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
/* eslint-disable @typescript-eslint/consistent-type-definitions */ | ||
import * as Types from './types.js' | ||
|
||
import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core' | ||
|
||
export type ThemeCreateMutationVariables = Types.Exact<{ | ||
name: Types.Scalars['String']['input'] | ||
source: Types.Scalars['URL']['input'] | ||
role: Types.ThemeRole | ||
}> | ||
|
||
export type ThemeCreateMutation = { | ||
themeCreate?: { | ||
theme?: {id: string; name: string; role: Types.ThemeRole} | null | ||
userErrors: {field?: string[] | null; message: string}[] | ||
} | null | ||
} | ||
|
||
export const ThemeCreate = { | ||
kind: 'Document', | ||
definitions: [ | ||
{ | ||
kind: 'OperationDefinition', | ||
operation: 'mutation', | ||
name: {kind: 'Name', value: 'themeCreate'}, | ||
variableDefinitions: [ | ||
{ | ||
kind: 'VariableDefinition', | ||
variable: {kind: 'Variable', name: {kind: 'Name', value: 'name'}}, | ||
type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'String'}}}, | ||
}, | ||
{ | ||
kind: 'VariableDefinition', | ||
variable: {kind: 'Variable', name: {kind: 'Name', value: 'source'}}, | ||
type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'URL'}}}, | ||
}, | ||
{ | ||
kind: 'VariableDefinition', | ||
variable: {kind: 'Variable', name: {kind: 'Name', value: 'role'}}, | ||
type: {kind: 'NonNullType', type: {kind: 'NamedType', name: {kind: 'Name', value: 'ThemeRole'}}}, | ||
}, | ||
], | ||
selectionSet: { | ||
kind: 'SelectionSet', | ||
selections: [ | ||
{ | ||
kind: 'Field', | ||
name: {kind: 'Name', value: 'themeCreate'}, | ||
arguments: [ | ||
{ | ||
kind: 'Argument', | ||
name: {kind: 'Name', value: 'name'}, | ||
value: {kind: 'Variable', name: {kind: 'Name', value: 'name'}}, | ||
}, | ||
{ | ||
kind: 'Argument', | ||
name: {kind: 'Name', value: 'source'}, | ||
value: {kind: 'Variable', name: {kind: 'Name', value: 'source'}}, | ||
}, | ||
{ | ||
kind: 'Argument', | ||
name: {kind: 'Name', value: 'role'}, | ||
value: {kind: 'Variable', name: {kind: 'Name', value: 'role'}}, | ||
}, | ||
], | ||
selectionSet: { | ||
kind: 'SelectionSet', | ||
selections: [ | ||
{ | ||
kind: 'Field', | ||
name: {kind: 'Name', value: 'theme'}, | ||
selectionSet: { | ||
kind: 'SelectionSet', | ||
selections: [ | ||
{kind: 'Field', name: {kind: 'Name', value: 'id'}}, | ||
{kind: 'Field', name: {kind: 'Name', value: 'name'}}, | ||
{kind: 'Field', name: {kind: 'Name', value: 'role'}}, | ||
{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<ThemeCreateMutation, ThemeCreateMutationVariables> |
13 changes: 13 additions & 0 deletions
13
packages/cli-kit/src/cli/api/graphql/admin/mutations/theme_create.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
mutation themeCreate($name: String!, $source: URL!, $role: ThemeRole!) { | ||
themeCreate(name: $name, source: $source, role: $role) { | ||
theme { | ||
id | ||
name | ||
role | ||
} | ||
userErrors { | ||
field | ||
message | ||
} | ||
} | ||
} |
Oops, something went wrong.