From 8d3d3e6f99a18bcfac1cf7585e6fd21297cec018 Mon Sep 17 00:00:00 2001 From: jorgemasta Date: Wed, 20 Oct 2021 16:07:18 +0100 Subject: [PATCH] feat: add common properties --- src/api/fragments/product.ts | 2 ++ src/schema.d.ts | 35 ++++++++++++++++++++++++++++------- 2 files changed, 30 insertions(+), 7 deletions(-) diff --git a/src/api/fragments/product.ts b/src/api/fragments/product.ts index b589c45..129ff4f 100644 --- a/src/api/fragments/product.ts +++ b/src/api/fragments/product.ts @@ -100,6 +100,8 @@ export const productInfoFragment = /* GraphQL */ ` __typename entityId displayName + isVariantOption + isRequired ...multipleChoiceOption ...checkboxOption } diff --git a/src/schema.d.ts b/src/schema.d.ts index 9d3c0b0..c07c49b 100644 --- a/src/schema.d.ts +++ b/src/schema.d.ts @@ -2781,33 +2781,54 @@ export type ProductInfoFragment = { __typename?: 'Product' } & Pick< node: | ({ __typename: 'CheckboxOption' } & Pick< CheckboxOption, - 'entityId' | 'displayName' + | 'entityId' + | 'displayName' + | 'isVariantOption' + | 'isRequired' > & CheckboxOptionFragment) | ({ __typename: 'DateFieldOption' } & Pick< DateFieldOption, - 'entityId' | 'displayName' + | 'entityId' + | 'displayName' + | 'isVariantOption' + | 'isRequired' >) | ({ __typename: 'FileUploadFieldOption' } & Pick< FileUploadFieldOption, - 'entityId' | 'displayName' + | 'entityId' + | 'displayName' + | 'isVariantOption' + | 'isRequired' >) | ({ __typename: 'MultiLineTextFieldOption' } & Pick< MultiLineTextFieldOption, - 'entityId' | 'displayName' + | 'entityId' + | 'displayName' + | 'isVariantOption' + | 'isRequired' >) | ({ __typename: 'MultipleChoiceOption' } & Pick< MultipleChoiceOption, - 'entityId' | 'displayName' + | 'entityId' + | 'displayName' + | 'isVariantOption' + | 'isRequired' > & MultipleChoiceOptionFragment) | ({ __typename: 'NumberFieldOption' } & Pick< NumberFieldOption, - 'entityId' | 'displayName' + | 'entityId' + | 'displayName' + | 'isVariantOption' + | 'isRequired' >) | ({ __typename: 'TextFieldOption' } & Pick< TextFieldOption, - 'entityId' | 'displayName' + | 'entityId' + | 'displayName' + | 'isVariantOption' + | 'isRequired' >) } >