|
|
@@ -56,6 +56,8 @@ export type Query = {
|
|
|
/** 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 */
|
|
|
+ productVariants: ProductVariantList;
|
|
|
+ /** Get a ProductVariant by id */
|
|
|
productVariant?: Maybe<ProductVariant>;
|
|
|
promotion?: Maybe<Promotion>;
|
|
|
promotions: PromotionList;
|
|
|
@@ -188,6 +190,10 @@ export type QueryProductArgs = {
|
|
|
slug?: Maybe<Scalars['String']>;
|
|
|
};
|
|
|
|
|
|
+export type QueryProductVariantsArgs = {
|
|
|
+ options?: Maybe<ProductVariantListOptions>;
|
|
|
+};
|
|
|
+
|
|
|
export type QueryProductVariantArgs = {
|
|
|
id: Scalars['ID'];
|
|
|
};
|
|
|
@@ -3948,6 +3954,13 @@ export type ProductListOptions = {
|
|
|
filter?: Maybe<ProductFilterParameter>;
|
|
|
};
|
|
|
|
|
|
+export type ProductVariantListOptions = {
|
|
|
+ skip?: Maybe<Scalars['Int']>;
|
|
|
+ take?: Maybe<Scalars['Int']>;
|
|
|
+ sort?: Maybe<ProductVariantSortParameter>;
|
|
|
+ filter?: Maybe<ProductVariantFilterParameter>;
|
|
|
+};
|
|
|
+
|
|
|
export type PromotionListOptions = {
|
|
|
skip?: Maybe<Scalars['Int']>;
|
|
|
take?: Maybe<Scalars['Int']>;
|
|
|
@@ -3976,13 +3989,6 @@ export type TaxRateListOptions = {
|
|
|
filter?: Maybe<TaxRateFilterParameter>;
|
|
|
};
|
|
|
|
|
|
-export type ProductVariantListOptions = {
|
|
|
- skip?: Maybe<Scalars['Int']>;
|
|
|
- take?: Maybe<Scalars['Int']>;
|
|
|
- sort?: Maybe<ProductVariantSortParameter>;
|
|
|
- filter?: Maybe<ProductVariantFilterParameter>;
|
|
|
-};
|
|
|
-
|
|
|
export type HistoryEntryListOptions = {
|
|
|
skip?: Maybe<Scalars['Int']>;
|
|
|
take?: Maybe<Scalars['Int']>;
|
|
|
@@ -4209,6 +4215,38 @@ export type ProductSortParameter = {
|
|
|
description?: Maybe<SortOrder>;
|
|
|
};
|
|
|
|
|
|
+export type ProductVariantFilterParameter = {
|
|
|
+ enabled?: Maybe<BooleanOperators>;
|
|
|
+ trackInventory?: Maybe<StringOperators>;
|
|
|
+ stockOnHand?: Maybe<NumberOperators>;
|
|
|
+ stockAllocated?: Maybe<NumberOperators>;
|
|
|
+ outOfStockThreshold?: Maybe<NumberOperators>;
|
|
|
+ useGlobalOutOfStockThreshold?: Maybe<BooleanOperators>;
|
|
|
+ createdAt?: Maybe<DateOperators>;
|
|
|
+ updatedAt?: Maybe<DateOperators>;
|
|
|
+ languageCode?: Maybe<StringOperators>;
|
|
|
+ sku?: Maybe<StringOperators>;
|
|
|
+ name?: Maybe<StringOperators>;
|
|
|
+ price?: Maybe<NumberOperators>;
|
|
|
+ currencyCode?: Maybe<StringOperators>;
|
|
|
+ priceIncludesTax?: Maybe<BooleanOperators>;
|
|
|
+ priceWithTax?: Maybe<NumberOperators>;
|
|
|
+};
|
|
|
+
|
|
|
+export type ProductVariantSortParameter = {
|
|
|
+ stockOnHand?: Maybe<SortOrder>;
|
|
|
+ stockAllocated?: Maybe<SortOrder>;
|
|
|
+ outOfStockThreshold?: Maybe<SortOrder>;
|
|
|
+ id?: Maybe<SortOrder>;
|
|
|
+ productId?: Maybe<SortOrder>;
|
|
|
+ createdAt?: Maybe<SortOrder>;
|
|
|
+ updatedAt?: Maybe<SortOrder>;
|
|
|
+ sku?: Maybe<SortOrder>;
|
|
|
+ name?: Maybe<SortOrder>;
|
|
|
+ price?: Maybe<SortOrder>;
|
|
|
+ priceWithTax?: Maybe<SortOrder>;
|
|
|
+};
|
|
|
+
|
|
|
export type PromotionFilterParameter = {
|
|
|
createdAt?: Maybe<DateOperators>;
|
|
|
updatedAt?: Maybe<DateOperators>;
|
|
|
@@ -4281,38 +4319,6 @@ export type TaxRateSortParameter = {
|
|
|
value?: Maybe<SortOrder>;
|
|
|
};
|
|
|
|
|
|
-export type ProductVariantFilterParameter = {
|
|
|
- enabled?: Maybe<BooleanOperators>;
|
|
|
- trackInventory?: Maybe<StringOperators>;
|
|
|
- stockOnHand?: Maybe<NumberOperators>;
|
|
|
- stockAllocated?: Maybe<NumberOperators>;
|
|
|
- outOfStockThreshold?: Maybe<NumberOperators>;
|
|
|
- useGlobalOutOfStockThreshold?: Maybe<BooleanOperators>;
|
|
|
- createdAt?: Maybe<DateOperators>;
|
|
|
- updatedAt?: Maybe<DateOperators>;
|
|
|
- languageCode?: Maybe<StringOperators>;
|
|
|
- sku?: Maybe<StringOperators>;
|
|
|
- name?: Maybe<StringOperators>;
|
|
|
- price?: Maybe<NumberOperators>;
|
|
|
- currencyCode?: Maybe<StringOperators>;
|
|
|
- priceIncludesTax?: Maybe<BooleanOperators>;
|
|
|
- priceWithTax?: Maybe<NumberOperators>;
|
|
|
-};
|
|
|
-
|
|
|
-export type ProductVariantSortParameter = {
|
|
|
- stockOnHand?: Maybe<SortOrder>;
|
|
|
- stockAllocated?: Maybe<SortOrder>;
|
|
|
- outOfStockThreshold?: Maybe<SortOrder>;
|
|
|
- id?: Maybe<SortOrder>;
|
|
|
- productId?: Maybe<SortOrder>;
|
|
|
- createdAt?: Maybe<SortOrder>;
|
|
|
- updatedAt?: Maybe<SortOrder>;
|
|
|
- sku?: Maybe<SortOrder>;
|
|
|
- name?: Maybe<SortOrder>;
|
|
|
- price?: Maybe<SortOrder>;
|
|
|
- priceWithTax?: Maybe<SortOrder>;
|
|
|
-};
|
|
|
-
|
|
|
export type HistoryEntryFilterParameter = {
|
|
|
isPublic?: Maybe<BooleanOperators>;
|
|
|
createdAt?: Maybe<DateOperators>;
|
|
|
@@ -5946,6 +5952,16 @@ export type GetProductVariantQueryVariables = Exact<{
|
|
|
|
|
|
export type GetProductVariantQuery = { productVariant?: Maybe<Pick<ProductVariant, 'id' | 'name'>> };
|
|
|
|
|
|
+export type GetProductVariantListQueryVariables = Exact<{
|
|
|
+ options?: Maybe<ProductVariantListOptions>;
|
|
|
+}>;
|
|
|
+
|
|
|
+export type GetProductVariantListQuery = {
|
|
|
+ productVariants: Pick<ProductVariantList, 'totalItems'> & {
|
|
|
+ items: Array<Pick<ProductVariant, 'id' | 'name' | 'sku' | 'price'>>;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
export type DeletePromotionMutationVariables = Exact<{
|
|
|
id: Scalars['ID'];
|
|
|
}>;
|
|
|
@@ -7970,6 +7986,15 @@ export namespace GetProductVariant {
|
|
|
export type ProductVariant = NonNullable<GetProductVariantQuery['productVariant']>;
|
|
|
}
|
|
|
|
|
|
+export namespace GetProductVariantList {
|
|
|
+ export type Variables = GetProductVariantListQueryVariables;
|
|
|
+ export type Query = GetProductVariantListQuery;
|
|
|
+ export type ProductVariants = NonNullable<GetProductVariantListQuery['productVariants']>;
|
|
|
+ export type Items = NonNullable<
|
|
|
+ NonNullable<NonNullable<GetProductVariantListQuery['productVariants']>['items']>[number]
|
|
|
+ >;
|
|
|
+}
|
|
|
+
|
|
|
export namespace DeletePromotion {
|
|
|
export type Variables = DeletePromotionMutationVariables;
|
|
|
export type Mutation = DeletePromotionMutation;
|