mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Update gql types
This commit is contained in:
@@ -174,7 +174,7 @@ export const GET_ALL_TEMPLATES_BY_CATEGORIES_ID = gql`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const ADD_TEMPALTE = gql`
|
export const ADD_TEMPLATE = gql`
|
||||||
mutation AddTemplate($template: TemplateInput!) {
|
mutation AddTemplate($template: TemplateInput!) {
|
||||||
addTemplate(template: $template) {
|
addTemplate(template: $template) {
|
||||||
id
|
id
|
||||||
@@ -232,11 +232,11 @@ export const ADD_TEMPALTE = gql`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const UPDATE_TEMPALTE = gql`
|
export const UPDATE_TEMPLATE = gql`
|
||||||
mutation UpdateTemplate(
|
mutation UpdateTemplate(
|
||||||
$id: String!
|
$id: String!
|
||||||
$template: TemplateUpdateInput!
|
$template: TemplateUpdateInput!
|
||||||
$specification: SpecificationInput!
|
$specification: SpecificationInput
|
||||||
) {
|
) {
|
||||||
updateTemplate(
|
updateTemplate(
|
||||||
id: $id
|
id: $id
|
||||||
@@ -298,9 +298,9 @@ export const UPDATE_TEMPALTE = gql`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const UPDATE_TEMPALTE_FEATURE = gql`
|
export const UPDATE_TEMPLATE_FEATURES = gql`
|
||||||
mutation UpdateTemplateFeature($id: String!, $featuresId: [String!]!) {
|
mutation UpdateTemplateFeatures($id: String!, $featuresId: [String!]!) {
|
||||||
updateTemplateFeature(id: $id, featuresId: $featuresId) {
|
updateTemplateFeatures(id: $id, featuresId: $featuresId) {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
description
|
description
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ export type MutationRoot = {
|
|||||||
deleteCategory: CategoryOutput;
|
deleteCategory: CategoryOutput;
|
||||||
deleteFeature: FeatureOutput;
|
deleteFeature: FeatureOutput;
|
||||||
deleteTemplate: TemplateDefactoredOutput;
|
deleteTemplate: TemplateDefactoredOutput;
|
||||||
updateTemplateFeature: TemplateOutput;
|
updateTemplateFeatures: TemplateOutput;
|
||||||
addTemplateSpecification: TemplateOutput;
|
addTemplateSpecification: TemplateOutput;
|
||||||
addCategory: CategoryOutput;
|
addCategory: CategoryOutput;
|
||||||
updateCategory: CategoryOutput;
|
updateCategory: CategoryOutput;
|
||||||
@@ -233,7 +233,7 @@ export type MutationRootDeleteTemplateArgs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type MutationRootUpdateTemplateFeatureArgs = {
|
export type MutationRootUpdateTemplateFeaturesArgs = {
|
||||||
id: Scalars['String'];
|
id: Scalars['String'];
|
||||||
featuresId: Array<Scalars['String']>;
|
featuresId: Array<Scalars['String']>;
|
||||||
};
|
};
|
||||||
@@ -562,7 +562,9 @@ export type TemplateInput = {
|
|||||||
name: Scalars['String'];
|
name: Scalars['String'];
|
||||||
description: Scalars['String'];
|
description: Scalars['String'];
|
||||||
category: Scalars['String'];
|
category: Scalars['String'];
|
||||||
|
features?: Maybe<Array<Scalars['String']>>;
|
||||||
image: InputFile;
|
image: InputFile;
|
||||||
|
specification?: Maybe<SpecificationInput>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type TemplateOutput = {
|
export type TemplateOutput = {
|
||||||
@@ -1926,7 +1928,7 @@ export type AddTemplateMutation = (
|
|||||||
export type UpdateTemplateMutationVariables = Exact<{
|
export type UpdateTemplateMutationVariables = Exact<{
|
||||||
id: Scalars['String'];
|
id: Scalars['String'];
|
||||||
template: TemplateUpdateInput;
|
template: TemplateUpdateInput;
|
||||||
specification: SpecificationInput;
|
specification?: Maybe<SpecificationInput>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@@ -1965,15 +1967,15 @@ export type UpdateTemplateMutation = (
|
|||||||
) }
|
) }
|
||||||
);
|
);
|
||||||
|
|
||||||
export type UpdateTemplateFeatureMutationVariables = Exact<{
|
export type UpdateTemplateFeaturesMutationVariables = Exact<{
|
||||||
id: Scalars['String'];
|
id: Scalars['String'];
|
||||||
featuresId: Array<Scalars['String']> | Scalars['String'];
|
featuresId: Array<Scalars['String']> | Scalars['String'];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type UpdateTemplateFeatureMutation = (
|
export type UpdateTemplateFeaturesMutation = (
|
||||||
{ __typename?: 'MutationRoot' }
|
{ __typename?: 'MutationRoot' }
|
||||||
& { updateTemplateFeature: (
|
& { updateTemplateFeatures: (
|
||||||
{ __typename?: 'TemplateOutput' }
|
{ __typename?: 'TemplateOutput' }
|
||||||
& Pick<TemplateOutput, 'id' | 'name' | 'description' | 'category'>
|
& Pick<TemplateOutput, 'id' | 'name' | 'description' | 'category'>
|
||||||
& { features?: Maybe<Array<(
|
& { features?: Maybe<Array<(
|
||||||
|
|||||||
Reference in New Issue
Block a user