|
|
@@ -4734,7 +4734,7 @@ export type RefundFragment = (
|
|
|
& Pick<Refund, 'id' | 'state' | 'items' | 'shipping' | 'adjustment' | 'transactionId' | 'paymentId'>
|
|
|
);
|
|
|
|
|
|
-export type ShippingAddressFragment = (
|
|
|
+export type OrderAddressFragment = (
|
|
|
{ __typename?: 'OrderAddress' }
|
|
|
& Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'country' | 'phoneNumber'>
|
|
|
);
|
|
|
@@ -4795,7 +4795,10 @@ export type OrderDetailFragment = (
|
|
|
& Pick<ShippingMethod, 'id' | 'code' | 'description'>
|
|
|
)>, shippingAddress?: Maybe<(
|
|
|
{ __typename?: 'OrderAddress' }
|
|
|
- & ShippingAddressFragment
|
|
|
+ & OrderAddressFragment
|
|
|
+ )>, billingAddress?: Maybe<(
|
|
|
+ { __typename?: 'OrderAddress' }
|
|
|
+ & OrderAddressFragment
|
|
|
)>, payments?: Maybe<Array<(
|
|
|
{ __typename?: 'Payment' }
|
|
|
& Pick<Payment, 'id' | 'createdAt' | 'transactionId' | 'amount' | 'method' | 'state' | 'metadata'>
|
|
|
@@ -4982,6 +4985,24 @@ export type AssetFragment = (
|
|
|
)> }
|
|
|
);
|
|
|
|
|
|
+export type ProductOptionGroupFragment = (
|
|
|
+ { __typename?: 'ProductOptionGroup' }
|
|
|
+ & Pick<ProductOptionGroup, 'id' | 'code' | 'languageCode' | 'name'>
|
|
|
+ & { translations: Array<(
|
|
|
+ { __typename?: 'ProductOptionGroupTranslation' }
|
|
|
+ & Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>
|
|
|
+ )> }
|
|
|
+);
|
|
|
+
|
|
|
+export type ProductOptionFragment = (
|
|
|
+ { __typename?: 'ProductOption' }
|
|
|
+ & Pick<ProductOption, 'id' | 'code' | 'languageCode' | 'name' | 'groupId'>
|
|
|
+ & { translations: Array<(
|
|
|
+ { __typename?: 'ProductOptionTranslation' }
|
|
|
+ & Pick<ProductOptionTranslation, 'id' | 'languageCode' | 'name'>
|
|
|
+ )> }
|
|
|
+);
|
|
|
+
|
|
|
export type ProductVariantFragment = (
|
|
|
{ __typename?: 'ProductVariant' }
|
|
|
& Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'enabled' | 'languageCode' | 'name' | 'price' | 'currencyCode' | 'priceIncludesTax' | 'priceWithTax' | 'stockOnHand' | 'trackInventory' | 'sku'>
|
|
|
@@ -4993,11 +5014,7 @@ export type ProductVariantFragment = (
|
|
|
& Pick<TaxCategory, 'id' | 'name'>
|
|
|
), options: Array<(
|
|
|
{ __typename?: 'ProductOption' }
|
|
|
- & Pick<ProductOption, 'id' | 'code' | 'languageCode' | 'name' | 'groupId'>
|
|
|
- & { translations: Array<(
|
|
|
- { __typename?: 'ProductOptionTranslation' }
|
|
|
- & Pick<ProductOptionTranslation, 'id' | 'languageCode' | 'name'>
|
|
|
- )> }
|
|
|
+ & ProductOptionFragment
|
|
|
)>, facetValues: Array<(
|
|
|
{ __typename?: 'FacetValue' }
|
|
|
& Pick<FacetValue, 'id' | 'code' | 'name'>
|
|
|
@@ -5031,7 +5048,7 @@ export type ProductWithVariantsFragment = (
|
|
|
& Pick<ProductTranslation, 'id' | 'languageCode' | 'name' | 'slug' | 'description'>
|
|
|
)>, optionGroups: Array<(
|
|
|
{ __typename?: 'ProductOptionGroup' }
|
|
|
- & Pick<ProductOptionGroup, 'id' | 'languageCode' | 'code' | 'name'>
|
|
|
+ & ProductOptionGroupFragment
|
|
|
)>, variants: Array<(
|
|
|
{ __typename?: 'ProductVariant' }
|
|
|
& ProductVariantFragment
|
|
|
@@ -5048,7 +5065,7 @@ export type ProductWithVariantsFragment = (
|
|
|
)> }
|
|
|
);
|
|
|
|
|
|
-export type ProductOptionGroupFragment = (
|
|
|
+export type ProductOptionGroupWithOptionsFragment = (
|
|
|
{ __typename?: 'ProductOptionGroup' }
|
|
|
& Pick<ProductOptionGroup, 'id' | 'createdAt' | 'updatedAt' | 'languageCode' | 'code' | 'name'>
|
|
|
& { translations: Array<(
|
|
|
@@ -5138,7 +5155,7 @@ export type CreateProductOptionGroupMutation = (
|
|
|
{ __typename?: 'Mutation' }
|
|
|
& { createProductOptionGroup: (
|
|
|
{ __typename?: 'ProductOptionGroup' }
|
|
|
- & ProductOptionGroupFragment
|
|
|
+ & ProductOptionGroupWithOptionsFragment
|
|
|
) }
|
|
|
);
|
|
|
|
|
|
@@ -5151,7 +5168,7 @@ export type GetProductOptionGroupQuery = (
|
|
|
{ __typename?: 'Query' }
|
|
|
& { productOptionGroup?: Maybe<(
|
|
|
{ __typename?: 'ProductOptionGroup' }
|
|
|
- & ProductOptionGroupFragment
|
|
|
+ & ProductOptionGroupWithOptionsFragment
|
|
|
)> }
|
|
|
);
|
|
|
|
|
|
@@ -5385,7 +5402,7 @@ export type UpdateProductOptionMutation = (
|
|
|
{ __typename?: 'Mutation' }
|
|
|
& { updateProductOption: (
|
|
|
{ __typename?: 'ProductOption' }
|
|
|
- & Pick<ProductOption, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'name'>
|
|
|
+ & ProductOptionFragment
|
|
|
) }
|
|
|
);
|
|
|
|
|
|
@@ -5417,7 +5434,7 @@ export type GetProductVariantOptionsQuery = (
|
|
|
& Pick<ProductOptionGroup, 'id' | 'name' | 'code'>
|
|
|
& { options: Array<(
|
|
|
{ __typename?: 'ProductOption' }
|
|
|
- & Pick<ProductOption, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code'>
|
|
|
+ & ProductOptionFragment
|
|
|
)> }
|
|
|
)>, variants: Array<(
|
|
|
{ __typename?: 'ProductVariant' }
|
|
|
@@ -7135,8 +7152,8 @@ export namespace Refund {
|
|
|
export type Fragment = RefundFragment;
|
|
|
}
|
|
|
|
|
|
-export namespace ShippingAddress {
|
|
|
- export type Fragment = ShippingAddressFragment;
|
|
|
+export namespace OrderAddress {
|
|
|
+ export type Fragment = OrderAddressFragment;
|
|
|
}
|
|
|
|
|
|
export namespace Order {
|
|
|
@@ -7164,7 +7181,8 @@ export namespace OrderDetail {
|
|
|
export type Adjustments = AdjustmentFragment;
|
|
|
export type Promotions = (NonNullable<OrderDetailFragment['promotions'][0]>);
|
|
|
export type ShippingMethod = (NonNullable<OrderDetailFragment['shippingMethod']>);
|
|
|
- export type ShippingAddress = ShippingAddressFragment;
|
|
|
+ export type ShippingAddress = OrderAddressFragment;
|
|
|
+ export type BillingAddress = OrderAddressFragment;
|
|
|
export type Payments = (NonNullable<(NonNullable<OrderDetailFragment['payments']>)[0]>);
|
|
|
export type Refunds = (NonNullable<(NonNullable<(NonNullable<OrderDetailFragment['payments']>)[0]>)['refunds'][0]>);
|
|
|
export type OrderItems = (NonNullable<(NonNullable<(NonNullable<(NonNullable<OrderDetailFragment['payments']>)[0]>)['refunds'][0]>)['orderItems'][0]>);
|
|
|
@@ -7246,17 +7264,26 @@ export namespace Asset {
|
|
|
export type FocalPoint = (NonNullable<AssetFragment['focalPoint']>);
|
|
|
}
|
|
|
|
|
|
+export namespace ProductOptionGroup {
|
|
|
+ export type Fragment = ProductOptionGroupFragment;
|
|
|
+ export type Translations = (NonNullable<ProductOptionGroupFragment['translations'][0]>);
|
|
|
+}
|
|
|
+
|
|
|
+export namespace ProductOption {
|
|
|
+ export type Fragment = ProductOptionFragment;
|
|
|
+ export type Translations = (NonNullable<ProductOptionFragment['translations'][0]>);
|
|
|
+}
|
|
|
+
|
|
|
export namespace ProductVariant {
|
|
|
export type Fragment = ProductVariantFragment;
|
|
|
export type TaxRateApplied = ProductVariantFragment['taxRateApplied'];
|
|
|
export type TaxCategory = ProductVariantFragment['taxCategory'];
|
|
|
- export type Options = (NonNullable<ProductVariantFragment['options'][0]>);
|
|
|
- export type Translations = (NonNullable<(NonNullable<ProductVariantFragment['options'][0]>)['translations'][0]>);
|
|
|
+ export type Options = ProductOptionFragment;
|
|
|
export type FacetValues = (NonNullable<ProductVariantFragment['facetValues'][0]>);
|
|
|
export type Facet = (NonNullable<ProductVariantFragment['facetValues'][0]>)['facet'];
|
|
|
export type FeaturedAsset = AssetFragment;
|
|
|
export type Assets = AssetFragment;
|
|
|
- export type _Translations = (NonNullable<ProductVariantFragment['translations'][0]>);
|
|
|
+ export type Translations = (NonNullable<ProductVariantFragment['translations'][0]>);
|
|
|
}
|
|
|
|
|
|
export namespace ProductWithVariants {
|
|
|
@@ -7264,18 +7291,18 @@ export namespace ProductWithVariants {
|
|
|
export type FeaturedAsset = AssetFragment;
|
|
|
export type Assets = AssetFragment;
|
|
|
export type Translations = (NonNullable<ProductWithVariantsFragment['translations'][0]>);
|
|
|
- export type OptionGroups = (NonNullable<ProductWithVariantsFragment['optionGroups'][0]>);
|
|
|
+ export type OptionGroups = ProductOptionGroupFragment;
|
|
|
export type Variants = ProductVariantFragment;
|
|
|
export type FacetValues = (NonNullable<ProductWithVariantsFragment['facetValues'][0]>);
|
|
|
export type Facet = (NonNullable<ProductWithVariantsFragment['facetValues'][0]>)['facet'];
|
|
|
export type Channels = (NonNullable<ProductWithVariantsFragment['channels'][0]>);
|
|
|
}
|
|
|
|
|
|
-export namespace ProductOptionGroup {
|
|
|
- export type Fragment = ProductOptionGroupFragment;
|
|
|
- export type Translations = (NonNullable<ProductOptionGroupFragment['translations'][0]>);
|
|
|
- export type Options = (NonNullable<ProductOptionGroupFragment['options'][0]>);
|
|
|
- export type _Translations = (NonNullable<(NonNullable<ProductOptionGroupFragment['options'][0]>)['translations'][0]>);
|
|
|
+export namespace ProductOptionGroupWithOptions {
|
|
|
+ export type Fragment = ProductOptionGroupWithOptionsFragment;
|
|
|
+ export type Translations = (NonNullable<ProductOptionGroupWithOptionsFragment['translations'][0]>);
|
|
|
+ export type Options = (NonNullable<ProductOptionGroupWithOptionsFragment['options'][0]>);
|
|
|
+ export type _Translations = (NonNullable<(NonNullable<ProductOptionGroupWithOptionsFragment['options'][0]>)['translations'][0]>);
|
|
|
}
|
|
|
|
|
|
export namespace UpdateProduct {
|
|
|
@@ -7311,13 +7338,13 @@ export namespace UpdateProductVariants {
|
|
|
export namespace CreateProductOptionGroup {
|
|
|
export type Variables = CreateProductOptionGroupMutationVariables;
|
|
|
export type Mutation = CreateProductOptionGroupMutation;
|
|
|
- export type CreateProductOptionGroup = ProductOptionGroupFragment;
|
|
|
+ export type CreateProductOptionGroup = ProductOptionGroupWithOptionsFragment;
|
|
|
}
|
|
|
|
|
|
export namespace GetProductOptionGroup {
|
|
|
export type Variables = GetProductOptionGroupQueryVariables;
|
|
|
export type Query = GetProductOptionGroupQuery;
|
|
|
- export type ProductOptionGroup = ProductOptionGroupFragment;
|
|
|
+ export type ProductOptionGroup = ProductOptionGroupWithOptionsFragment;
|
|
|
}
|
|
|
|
|
|
export namespace AddOptionToGroup {
|
|
|
@@ -7411,7 +7438,7 @@ export namespace SearchProducts {
|
|
|
export namespace UpdateProductOption {
|
|
|
export type Variables = UpdateProductOptionMutationVariables;
|
|
|
export type Mutation = UpdateProductOptionMutation;
|
|
|
- export type UpdateProductOption = UpdateProductOptionMutation['updateProductOption'];
|
|
|
+ export type UpdateProductOption = ProductOptionFragment;
|
|
|
}
|
|
|
|
|
|
export namespace DeleteProductVariant {
|
|
|
@@ -7425,7 +7452,7 @@ export namespace GetProductVariantOptions {
|
|
|
export type Query = GetProductVariantOptionsQuery;
|
|
|
export type Product = (NonNullable<GetProductVariantOptionsQuery['product']>);
|
|
|
export type OptionGroups = (NonNullable<(NonNullable<GetProductVariantOptionsQuery['product']>)['optionGroups'][0]>);
|
|
|
- export type Options = (NonNullable<(NonNullable<(NonNullable<GetProductVariantOptionsQuery['product']>)['optionGroups'][0]>)['options'][0]>);
|
|
|
+ export type Options = ProductOptionFragment;
|
|
|
export type Variants = (NonNullable<(NonNullable<GetProductVariantOptionsQuery['product']>)['variants'][0]>);
|
|
|
export type _Options = (NonNullable<(NonNullable<(NonNullable<GetProductVariantOptionsQuery['product']>)['variants'][0]>)['options'][0]>);
|
|
|
}
|