|
|
@@ -2887,6 +2887,8 @@ export type Query = {
|
|
|
products: ProductList;
|
|
|
/** Get a Product either by id or slug. If neither id nor slug is speicified, an error will result. */
|
|
|
product?: Maybe<Product>;
|
|
|
+ /** Get a ProductVariant by id */
|
|
|
+ productVariant?: Maybe<ProductVariant>;
|
|
|
promotion?: Maybe<Promotion>;
|
|
|
promotions: PromotionList;
|
|
|
promotionConditions: Array<ConfigurableOperationDefinition>;
|
|
|
@@ -3017,6 +3019,10 @@ export type QueryProductArgs = {
|
|
|
slug?: Maybe<Scalars['String']>;
|
|
|
};
|
|
|
|
|
|
+export type QueryProductVariantArgs = {
|
|
|
+ id: Scalars['ID'];
|
|
|
+};
|
|
|
+
|
|
|
export type QueryPromotionArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
@@ -5370,6 +5376,14 @@ export type GetOptionGroupQuery = { __typename?: 'Query' } & {
|
|
|
>;
|
|
|
};
|
|
|
|
|
|
+export type GetProductVariantQueryVariables = {
|
|
|
+ id: Scalars['ID'];
|
|
|
+};
|
|
|
+
|
|
|
+export type GetProductVariantQuery = { __typename?: 'Query' } & {
|
|
|
+ productVariant?: Maybe<{ __typename?: 'ProductVariant' } & Pick<ProductVariant, 'id' | 'name'>>;
|
|
|
+};
|
|
|
+
|
|
|
export type DeletePromotionMutationVariables = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
@@ -6955,6 +6969,12 @@ export namespace GetOptionGroup {
|
|
|
export type Options = NonNullable<NonNullable<GetOptionGroupQuery['productOptionGroup']>['options'][0]>;
|
|
|
}
|
|
|
|
|
|
+export namespace GetProductVariant {
|
|
|
+ export type Variables = GetProductVariantQueryVariables;
|
|
|
+ export type Query = GetProductVariantQuery;
|
|
|
+ export type ProductVariant = NonNullable<GetProductVariantQuery['productVariant']>;
|
|
|
+}
|
|
|
+
|
|
|
export namespace DeletePromotion {
|
|
|
export type Variables = DeletePromotionMutationVariables;
|
|
|
export type Mutation = DeletePromotionMutation;
|