|
@@ -3015,6 +3015,8 @@ export type Query = {
|
|
|
product?: Maybe<Product>;
|
|
product?: Maybe<Product>;
|
|
|
productOptionGroup?: Maybe<ProductOptionGroup>;
|
|
productOptionGroup?: Maybe<ProductOptionGroup>;
|
|
|
productOptionGroups: Array<ProductOptionGroup>;
|
|
productOptionGroups: Array<ProductOptionGroup>;
|
|
|
|
|
+ /** Get a ProductVariant by id */
|
|
|
|
|
+ productVariant?: Maybe<ProductVariant>;
|
|
|
products: ProductList;
|
|
products: ProductList;
|
|
|
promotion?: Maybe<Promotion>;
|
|
promotion?: Maybe<Promotion>;
|
|
|
promotionActions: Array<ConfigurableOperationDefinition>;
|
|
promotionActions: Array<ConfigurableOperationDefinition>;
|
|
@@ -3167,6 +3169,11 @@ export type QueryProductOptionGroupsArgs = {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+export type QueryProductVariantArgs = {
|
|
|
|
|
+ id: Scalars['ID'];
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
export type QueryProductsArgs = {
|
|
export type QueryProductsArgs = {
|
|
|
options?: Maybe<ProductListOptions>;
|
|
options?: Maybe<ProductListOptions>;
|
|
|
};
|
|
};
|
|
@@ -5505,7 +5512,14 @@ export type ProductSelectorSearchQuery = (
|
|
|
& { items: Array<(
|
|
& { items: Array<(
|
|
|
{ __typename?: 'SearchResult' }
|
|
{ __typename?: 'SearchResult' }
|
|
|
& Pick<SearchResult, 'productVariantId' | 'productVariantName' | 'productPreview' | 'sku'>
|
|
& Pick<SearchResult, 'productVariantId' | 'productVariantName' | 'productPreview' | 'sku'>
|
|
|
- & { price: { __typename?: 'PriceRange' } | (
|
|
|
|
|
|
|
+ & { productAsset?: Maybe<(
|
|
|
|
|
+ { __typename?: 'SearchResultAsset' }
|
|
|
|
|
+ & Pick<SearchResultAsset, 'id' | 'preview'>
|
|
|
|
|
+ & { focalPoint?: Maybe<(
|
|
|
|
|
+ { __typename?: 'Coordinate' }
|
|
|
|
|
+ & Pick<Coordinate, 'x' | 'y'>
|
|
|
|
|
+ )> }
|
|
|
|
|
+ )>, price: { __typename?: 'PriceRange' } | (
|
|
|
{ __typename?: 'SinglePrice' }
|
|
{ __typename?: 'SinglePrice' }
|
|
|
& Pick<SinglePrice, 'value'>
|
|
& Pick<SinglePrice, 'value'>
|
|
|
), priceWithTax: { __typename?: 'PriceRange' } | (
|
|
), priceWithTax: { __typename?: 'PriceRange' } | (
|
|
@@ -5604,6 +5618,31 @@ export type RemoveProductsFromChannelMutation = (
|
|
|
)> }
|
|
)> }
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
|
|
+export type GetProductVariantQueryVariables = {
|
|
|
|
|
+ id: Scalars['ID'];
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type GetProductVariantQuery = (
|
|
|
|
|
+ { __typename?: 'Query' }
|
|
|
|
|
+ & { productVariant?: Maybe<(
|
|
|
|
|
+ { __typename?: 'ProductVariant' }
|
|
|
|
|
+ & Pick<ProductVariant, 'id' | 'name' | 'sku'>
|
|
|
|
|
+ & { product: (
|
|
|
|
|
+ { __typename?: 'Product' }
|
|
|
|
|
+ & Pick<Product, 'id'>
|
|
|
|
|
+ & { featuredAsset?: Maybe<(
|
|
|
|
|
+ { __typename?: 'Asset' }
|
|
|
|
|
+ & Pick<Asset, 'id' | 'preview'>
|
|
|
|
|
+ & { focalPoint?: Maybe<(
|
|
|
|
|
+ { __typename?: 'Coordinate' }
|
|
|
|
|
+ & Pick<Coordinate, 'x' | 'y'>
|
|
|
|
|
+ )> }
|
|
|
|
|
+ )> }
|
|
|
|
|
+ ) }
|
|
|
|
|
+ )> }
|
|
|
|
|
+);
|
|
|
|
|
+
|
|
|
export type PromotionFragment = (
|
|
export type PromotionFragment = (
|
|
|
{ __typename?: 'Promotion' }
|
|
{ __typename?: 'Promotion' }
|
|
|
& Pick<Promotion, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'enabled' | 'couponCode' | 'perCustomerUsageLimit' | 'startsAt' | 'endsAt'>
|
|
& Pick<Promotion, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'enabled' | 'couponCode' | 'perCustomerUsageLimit' | 'startsAt' | 'endsAt'>
|
|
@@ -6722,7 +6761,7 @@ export type ConfigurableOperationDefFragment = (
|
|
|
& Pick<ConfigurableOperationDefinition, 'code' | 'description'>
|
|
& Pick<ConfigurableOperationDefinition, 'code' | 'description'>
|
|
|
& { args: Array<(
|
|
& { args: Array<(
|
|
|
{ __typename?: 'ConfigArgDefinition' }
|
|
{ __typename?: 'ConfigArgDefinition' }
|
|
|
- & Pick<ConfigArgDefinition, 'name' | 'type' | 'list' | 'ui'>
|
|
|
|
|
|
|
+ & Pick<ConfigArgDefinition, 'name' | 'type' | 'list' | 'ui' | 'label'>
|
|
|
)> }
|
|
)> }
|
|
|
);
|
|
);
|
|
|
|
|
|
|
@@ -7581,6 +7620,8 @@ export namespace ProductSelectorSearch {
|
|
|
export type Query = ProductSelectorSearchQuery;
|
|
export type Query = ProductSelectorSearchQuery;
|
|
|
export type Search = ProductSelectorSearchQuery['search'];
|
|
export type Search = ProductSelectorSearchQuery['search'];
|
|
|
export type Items = (NonNullable<ProductSelectorSearchQuery['search']['items'][0]>);
|
|
export type Items = (NonNullable<ProductSelectorSearchQuery['search']['items'][0]>);
|
|
|
|
|
+ export type ProductAsset = (NonNullable<(NonNullable<ProductSelectorSearchQuery['search']['items'][0]>)['productAsset']>);
|
|
|
|
|
+ export type FocalPoint = (NonNullable<(NonNullable<(NonNullable<ProductSelectorSearchQuery['search']['items'][0]>)['productAsset']>)['focalPoint']>);
|
|
|
export type Price = (NonNullable<ProductSelectorSearchQuery['search']['items'][0]>)['price'];
|
|
export type Price = (NonNullable<ProductSelectorSearchQuery['search']['items'][0]>)['price'];
|
|
|
export type SinglePriceInlineFragment = (DiscriminateUnion<RequireField<(NonNullable<ProductSelectorSearchQuery['search']['items'][0]>)['price'], '__typename'>, { __typename: 'SinglePrice' }>);
|
|
export type SinglePriceInlineFragment = (DiscriminateUnion<RequireField<(NonNullable<ProductSelectorSearchQuery['search']['items'][0]>)['price'], '__typename'>, { __typename: 'SinglePrice' }>);
|
|
|
export type PriceWithTax = (NonNullable<ProductSelectorSearchQuery['search']['items'][0]>)['priceWithTax'];
|
|
export type PriceWithTax = (NonNullable<ProductSelectorSearchQuery['search']['items'][0]>)['priceWithTax'];
|
|
@@ -7623,6 +7664,15 @@ export namespace RemoveProductsFromChannel {
|
|
|
export type Channels = (NonNullable<(NonNullable<RemoveProductsFromChannelMutation['removeProductsFromChannel'][0]>)['channels'][0]>);
|
|
export type Channels = (NonNullable<(NonNullable<RemoveProductsFromChannelMutation['removeProductsFromChannel'][0]>)['channels'][0]>);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export namespace GetProductVariant {
|
|
|
|
|
+ export type Variables = GetProductVariantQueryVariables;
|
|
|
|
|
+ export type Query = GetProductVariantQuery;
|
|
|
|
|
+ export type ProductVariant = (NonNullable<GetProductVariantQuery['productVariant']>);
|
|
|
|
|
+ export type Product = (NonNullable<GetProductVariantQuery['productVariant']>)['product'];
|
|
|
|
|
+ export type FeaturedAsset = (NonNullable<(NonNullable<GetProductVariantQuery['productVariant']>)['product']['featuredAsset']>);
|
|
|
|
|
+ export type FocalPoint = (NonNullable<(NonNullable<(NonNullable<GetProductVariantQuery['productVariant']>)['product']['featuredAsset']>)['focalPoint']>);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export namespace Promotion {
|
|
export namespace Promotion {
|
|
|
export type Fragment = PromotionFragment;
|
|
export type Fragment = PromotionFragment;
|
|
|
export type Conditions = ConfigurableOperationFragment;
|
|
export type Conditions = ConfigurableOperationFragment;
|