@shopify/hydrogen 0.11.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +199 -0
- package/dist/esnext/components/AddToCartButton/AddToCartButton.client.d.ts +3 -4
- package/dist/esnext/components/AddToCartButton/AddToCartButton.client.js +9 -22
- package/dist/esnext/components/AddToCartButton/index.d.ts +1 -1
- package/dist/esnext/components/BuyNowButton/BuyNowButton.client.d.ts +4 -5
- package/dist/esnext/components/BuyNowButton/index.d.ts +1 -1
- package/dist/esnext/components/BuyNowButton/index.js +1 -1
- package/dist/esnext/components/CartCheckoutButton/CartCheckoutButton.client.d.ts +2 -3
- package/dist/esnext/components/CartEstimatedCost/CartEstimatedCost.client.d.ts +3 -3
- package/dist/esnext/components/CartLineImage/CartLineImage.client.d.ts +5 -3
- package/dist/esnext/components/CartLinePrice/CartLinePrice.client.d.ts +5 -5
- package/dist/esnext/components/CartLinePrice/CartLinePrice.client.js +1 -1
- package/dist/esnext/components/CartLineProductTitle/CartLineProductTitle.client.d.ts +1 -3
- package/dist/esnext/components/CartLineProvider/context.d.ts +0 -6
- package/dist/esnext/components/CartLineQuantity/CartLineQuantity.client.d.ts +1 -3
- package/dist/esnext/components/CartProvider/CartProvider.client.js +6 -1
- package/dist/esnext/components/CartProvider/graphql/CartAttributesUpdateMutation.d.ts +71 -4
- package/dist/esnext/components/CartProvider/graphql/CartBuyerIdentityUpdateMutation.d.ts +71 -4
- package/dist/esnext/components/CartProvider/graphql/CartCreateMutation.d.ts +71 -4
- package/dist/esnext/components/CartProvider/graphql/CartDiscountCodesUpdateMutation.d.ts +72 -5
- package/dist/esnext/components/CartProvider/graphql/CartFragment.d.ts +12 -10
- package/dist/esnext/components/CartProvider/graphql/CartLineAddMutation.d.ts +71 -4
- package/dist/esnext/components/CartProvider/graphql/CartLineRemoveMutation.d.ts +71 -4
- package/dist/esnext/components/CartProvider/graphql/CartLineUpdateMutation.d.ts +71 -4
- package/dist/esnext/components/CartProvider/graphql/CartNoteUpdateMutation.d.ts +72 -5
- package/dist/esnext/components/CartProvider/graphql/CartQuery.d.ts +71 -4
- package/dist/esnext/components/CartShopPayButton/CartShopPayButton.client.d.ts +3 -2
- package/dist/esnext/components/ExternalVideo/ExternalVideo.d.ts +5 -11
- package/dist/esnext/components/ExternalVideo/ExternalVideo.js +2 -5
- package/dist/esnext/components/ExternalVideo/ExternalVideoFragment.d.ts +5 -1
- package/dist/esnext/components/ExternalVideo/index.d.ts +1 -1
- package/dist/esnext/components/ExternalVideo/index.js +1 -1
- package/dist/esnext/components/Image/Image.d.ts +5 -9
- package/dist/esnext/components/Image/Image.js +0 -3
- package/dist/esnext/components/Image/ImageFragment.d.ts +4 -0
- package/dist/esnext/components/Image/index.d.ts +1 -1
- package/dist/esnext/components/Image/index.js +1 -1
- package/dist/esnext/components/Link/Link.client.js +1 -1
- package/dist/esnext/components/LocalizationProvider/LocalizationProvider.server.d.ts +2 -3
- package/dist/esnext/components/LocalizationProvider/LocalizationQuery.d.ts +4 -0
- package/dist/esnext/components/MediaFile/MediaFile.d.ts +8 -20
- package/dist/esnext/components/MediaFile/MediaFile.js +7 -5
- package/dist/esnext/components/MediaFile/MediaFileFragment.d.ts +22 -8
- package/dist/esnext/components/MediaFile/index.d.ts +1 -1
- package/dist/esnext/components/MediaFile/index.js +1 -1
- package/dist/esnext/components/Metafield/Metafield.client.d.ts +0 -4
- package/dist/esnext/components/Metafield/Metafield.client.js +0 -3
- package/dist/esnext/components/Metafield/MetafieldFragment.d.ts +5 -2
- package/dist/esnext/components/Metafield/components/StarRating/StarRating.d.ts +1 -3
- package/dist/esnext/components/Metafield/index.d.ts +1 -2
- package/dist/esnext/components/Metafield/index.js +1 -1
- package/dist/esnext/components/ModelViewer/Model3DFragment.d.ts +4 -0
- package/dist/esnext/components/ModelViewer/ModelViewer.client.d.ts +3 -12
- package/dist/esnext/components/ModelViewer/ModelViewer.client.js +0 -3
- package/dist/esnext/components/ModelViewer/index.d.ts +1 -1
- package/dist/esnext/components/Money/Money.client.d.ts +5 -10
- package/dist/esnext/components/Money/Money.client.js +0 -3
- package/dist/esnext/components/Money/MoneyFragment.d.ts +4 -0
- package/dist/esnext/components/Money/index.d.ts +1 -1
- package/dist/esnext/components/Money/index.js +1 -1
- package/dist/esnext/components/ProductDescription/ProductDescription.client.d.ts +3 -3
- package/dist/esnext/components/ProductPrice/ProductPrice.client.d.ts +5 -5
- package/dist/esnext/components/ProductProvider/ProductProvider.client.d.ts +5 -6
- package/dist/esnext/components/ProductProvider/ProductProvider.client.js +1 -4
- package/dist/esnext/components/ProductProvider/ProductProviderFragment.d.ts +183 -16
- package/dist/esnext/components/ProductProvider/index.d.ts +1 -1
- package/dist/esnext/components/ProductProvider/index.js +1 -1
- package/dist/esnext/components/RawHtml/RawHtml.d.ts +1 -3
- package/dist/esnext/components/RawHtml/index.d.ts +1 -1
- package/dist/esnext/components/Seo/CollectionSeo.client.d.ts +2 -2
- package/dist/esnext/components/Seo/CollectionSeo.client.js +1 -1
- package/dist/esnext/components/Seo/DefaultPageSeo.client.js +2 -2
- package/dist/esnext/components/Seo/DescriptionSeo.client.d.ts +3 -3
- package/dist/esnext/components/Seo/DescriptionSeo.client.js +1 -1
- package/dist/esnext/components/Seo/ImageSeo.client.d.ts +2 -2
- package/dist/esnext/components/Seo/ImageSeo.client.js +1 -1
- package/dist/esnext/components/Seo/PageSeo.client.d.ts +2 -2
- package/dist/esnext/components/Seo/PageSeo.client.js +2 -2
- package/dist/esnext/components/Seo/ProductSeo.client.d.ts +5 -2
- package/dist/esnext/components/Seo/Seo.client.d.ts +8 -7
- package/dist/esnext/components/Seo/Seo.client.js +8 -14
- package/dist/esnext/components/Seo/SeoFragment.d.ts +66 -0
- package/dist/esnext/components/Seo/SeoFragment.js +1 -0
- package/dist/esnext/components/Seo/TitleSeo.client.d.ts +2 -2
- package/dist/esnext/components/Seo/types.d.ts +8 -60
- package/dist/esnext/components/ShopPayButton/ShopPayButton.client.d.ts +2 -1
- package/dist/esnext/components/ShopPayButton/ShopPayButton.client.js +1 -9
- package/dist/esnext/components/ShopPayButton/index.d.ts +1 -1
- package/dist/esnext/components/UnitPrice/UnitPrice.client.d.ts +4 -10
- package/dist/esnext/components/UnitPrice/UnitPrice.client.js +8 -3
- package/dist/esnext/components/UnitPrice/UnitPriceFragment.d.ts +5 -2
- package/dist/esnext/components/UnitPrice/index.d.ts +1 -1
- package/dist/esnext/components/UnitPrice/index.js +1 -1
- package/dist/esnext/components/Video/Video.d.ts +5 -14
- package/dist/esnext/components/Video/Video.js +1 -4
- package/dist/esnext/components/Video/VideoFragment.d.ts +4 -0
- package/dist/esnext/components/Video/index.d.ts +1 -2
- package/dist/esnext/components/Video/index.js +1 -1
- package/dist/esnext/components/index.d.ts +3 -13
- package/dist/esnext/components/index.js +2 -2
- package/dist/esnext/entry-client.js +19 -5
- package/dist/esnext/entry-server.d.ts +1 -1
- package/dist/esnext/entry-server.js +27 -73
- package/dist/esnext/foundation/Boomerang/Boomerang.client.d.ts +3 -1
- package/dist/esnext/foundation/Boomerang/Boomerang.client.js +17 -3
- package/dist/esnext/foundation/Router/FileRoutes.d.ts +18 -0
- package/dist/esnext/foundation/Router/{DefaultRoutes.js → FileRoutes.js} +9 -18
- package/dist/esnext/foundation/Router/Route.server.d.ts +9 -0
- package/dist/esnext/foundation/Router/Route.server.js +6 -0
- package/dist/esnext/foundation/Router/{Router.client.d.ts → Router.d.ts} +0 -0
- package/dist/esnext/foundation/Router/{Router.client.js → Router.js} +4 -2
- package/dist/esnext/foundation/Router/Router.server.d.ts +8 -0
- package/dist/esnext/foundation/Router/Router.server.js +23 -0
- package/dist/esnext/foundation/Router/useParams.d.ts +1 -0
- package/dist/esnext/foundation/Router/useParams.js +5 -0
- package/dist/esnext/foundation/ServerStateProvider/{ServerStateProvider.client.d.ts → ServerStateProvider.d.ts} +0 -0
- package/dist/esnext/foundation/ServerStateProvider/{ServerStateProvider.client.js → ServerStateProvider.js} +0 -0
- package/dist/esnext/foundation/ServerStateProvider/index.d.ts +2 -2
- package/dist/esnext/foundation/ServerStateProvider/index.js +1 -1
- package/dist/esnext/foundation/ShopifyProvider/ShopifyProvider.client.js +3 -0
- package/dist/esnext/foundation/ShopifyProvider/ShopifyProvider.server.js +3 -0
- package/dist/esnext/foundation/index.d.ts +0 -1
- package/dist/esnext/foundation/index.js +0 -1
- package/dist/esnext/fragments.d.ts +20 -0
- package/dist/esnext/fragments.js +10 -0
- package/dist/esnext/framework/Hydration/Html.d.ts +2 -0
- package/dist/esnext/framework/Hydration/Html.js +71 -2
- package/dist/esnext/framework/Hydration/rsc.js +1 -1
- package/dist/esnext/framework/plugins/vite-plugin-hydrogen-config.js +15 -17
- package/dist/esnext/graphql/graphql-constants.d.ts +11 -6
- package/dist/esnext/graphql/graphql-constants.js +89 -6
- package/dist/esnext/graphql/types/types.d.ts +1645 -1579
- package/dist/esnext/graphql/types/types.js +699 -702
- package/dist/esnext/hooks/useCartLine/useCartLine.d.ts +0 -8
- package/dist/esnext/hooks/useNavigate/useNavigate.js +1 -1
- package/dist/esnext/hooks/useProduct/useProduct.d.ts +7 -47
- package/dist/esnext/hooks/useProductOptions/SellingPlanFragment.d.ts +6 -3
- package/dist/esnext/hooks/useProductOptions/SellingPlanGroupsFragment.d.ts +28 -2
- package/dist/esnext/hooks/useProductOptions/VariantFragment.d.ts +57 -15
- package/dist/esnext/hooks/useShopQuery/hooks.js +16 -7
- package/dist/esnext/index.d.ts +4 -0
- package/dist/esnext/index.js +4 -0
- package/dist/esnext/streaming.server.d.ts +0 -1
- package/dist/esnext/streaming.server.js +0 -9
- package/dist/esnext/types.d.ts +2 -2
- package/dist/esnext/utilities/apiRoutes.d.ts +15 -3
- package/dist/esnext/utilities/apiRoutes.js +25 -4
- package/dist/esnext/utilities/fetch.js +0 -8
- package/dist/esnext/utilities/video_parameters.js +0 -4
- package/dist/esnext/version.d.ts +1 -1
- package/dist/esnext/version.js +1 -1
- package/dist/node/entry-server.d.ts +1 -1
- package/dist/node/entry-server.js +24 -70
- package/dist/node/foundation/ServerStateProvider/{ServerStateProvider.client.d.ts → ServerStateProvider.d.ts} +0 -0
- package/dist/node/foundation/ServerStateProvider/{ServerStateProvider.client.js → ServerStateProvider.js} +0 -0
- package/dist/node/foundation/ServerStateProvider/index.d.ts +2 -2
- package/dist/node/foundation/ServerStateProvider/index.js +3 -3
- package/dist/node/framework/Hydration/Html.d.ts +2 -0
- package/dist/node/framework/Hydration/Html.js +73 -3
- package/dist/node/framework/Hydration/rsc.js +1 -1
- package/dist/node/framework/plugins/vite-plugin-hydrogen-config.js +15 -17
- package/dist/node/graphql/types/types.d.ts +1645 -1579
- package/dist/node/graphql/types/types.js +700 -703
- package/dist/node/streaming.server.d.ts +0 -1
- package/dist/node/streaming.server.js +1 -11
- package/dist/node/types.d.ts +2 -2
- package/dist/node/utilities/apiRoutes.d.ts +15 -3
- package/dist/node/utilities/apiRoutes.js +27 -6
- package/dist/node/utilities/fetch.d.ts +4 -0
- package/dist/node/utilities/fetch.js +40 -0
- package/dist/node/version.d.ts +1 -0
- package/dist/node/version.js +4 -0
- package/fragments.d.ts +1 -0
- package/fragments.js +1 -0
- package/package.json +15 -12
- package/vendor/react-server-dom-vite/esm/react-server-dom-vite-client-proxy.js +3 -3
- package/dist/esnext/components/Router/index.d.ts +0 -1
- package/dist/esnext/components/Router/index.js +0 -1
- package/dist/esnext/foundation/Boomerang/BoomerangPageTemplate.client.d.ts +0 -3
- package/dist/esnext/foundation/Boomerang/BoomerangPageTemplate.client.js +0 -14
- package/dist/esnext/foundation/Router/DefaultRoutes.d.ts +0 -22
- package/dist/esnext/foundation/Router/index.d.ts +0 -1
- package/dist/esnext/foundation/Router/index.js +0 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED, DO NOT EDIT.
|
|
3
|
+
* Instead, you can edit the associated .graphql file to query for additional fields and this file will be updated when you run `yarn graphql-types`
|
|
4
|
+
*/
|
|
1
5
|
import * as Types from '../../../graphql/types/types';
|
|
2
|
-
import { CartFragmentFragment } from './CartFragment';
|
|
3
6
|
export declare type CartCreateMutationVariables = Types.Exact<{
|
|
4
7
|
input: Types.CartInput;
|
|
5
|
-
numCartLines?: Types.
|
|
6
|
-
country?: Types.
|
|
8
|
+
numCartLines?: Types.InputMaybe<Types.Scalars['Int']>;
|
|
9
|
+
country?: Types.InputMaybe<Types.CountryCode>;
|
|
7
10
|
}>;
|
|
8
11
|
export declare type CartCreateMutation = {
|
|
9
12
|
__typename?: 'Mutation';
|
|
@@ -13,6 +16,70 @@ export declare type CartCreateMutation = {
|
|
|
13
16
|
} & {
|
|
14
17
|
cart?: Types.Maybe<{
|
|
15
18
|
__typename?: 'Cart';
|
|
16
|
-
} &
|
|
19
|
+
} & Pick<Types.Cart, 'id' | 'checkoutUrl' | 'note'> & {
|
|
20
|
+
buyerIdentity: {
|
|
21
|
+
__typename?: 'CartBuyerIdentity';
|
|
22
|
+
} & Pick<Types.CartBuyerIdentity, 'countryCode' | 'email' | 'phone'> & {
|
|
23
|
+
customer?: Types.Maybe<{
|
|
24
|
+
__typename?: 'Customer';
|
|
25
|
+
} & Pick<Types.Customer, 'id' | 'email' | 'firstName' | 'lastName' | 'displayName'>>;
|
|
26
|
+
};
|
|
27
|
+
lines: {
|
|
28
|
+
__typename?: 'CartLineConnection';
|
|
29
|
+
} & {
|
|
30
|
+
edges: Array<{
|
|
31
|
+
__typename?: 'CartLineEdge';
|
|
32
|
+
} & {
|
|
33
|
+
node: {
|
|
34
|
+
__typename?: 'CartLine';
|
|
35
|
+
} & Pick<Types.CartLine, 'id' | 'quantity'> & {
|
|
36
|
+
attributes: Array<{
|
|
37
|
+
__typename?: 'Attribute';
|
|
38
|
+
} & Pick<Types.Attribute, 'key' | 'value'>>;
|
|
39
|
+
merchandise: {
|
|
40
|
+
__typename?: 'ProductVariant';
|
|
41
|
+
} & Pick<Types.ProductVariant, 'id' | 'availableForSale' | 'requiresShipping' | 'title'> & {
|
|
42
|
+
compareAtPriceV2?: Types.Maybe<{
|
|
43
|
+
__typename?: 'MoneyV2';
|
|
44
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
45
|
+
priceV2: {
|
|
46
|
+
__typename?: 'MoneyV2';
|
|
47
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
48
|
+
image?: Types.Maybe<{
|
|
49
|
+
__typename?: 'Image';
|
|
50
|
+
} & Pick<Types.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>>;
|
|
51
|
+
product: {
|
|
52
|
+
__typename?: 'Product';
|
|
53
|
+
} & Pick<Types.Product, 'handle' | 'title'>;
|
|
54
|
+
selectedOptions: Array<{
|
|
55
|
+
__typename?: 'SelectedOption';
|
|
56
|
+
} & Pick<Types.SelectedOption, 'name' | 'value'>>;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}>;
|
|
60
|
+
};
|
|
61
|
+
estimatedCost: {
|
|
62
|
+
__typename?: 'CartEstimatedCost';
|
|
63
|
+
} & {
|
|
64
|
+
subtotalAmount: {
|
|
65
|
+
__typename?: 'MoneyV2';
|
|
66
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
67
|
+
totalAmount: {
|
|
68
|
+
__typename?: 'MoneyV2';
|
|
69
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
70
|
+
totalDutyAmount?: Types.Maybe<{
|
|
71
|
+
__typename?: 'MoneyV2';
|
|
72
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
73
|
+
totalTaxAmount?: Types.Maybe<{
|
|
74
|
+
__typename?: 'MoneyV2';
|
|
75
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
76
|
+
};
|
|
77
|
+
attributes: Array<{
|
|
78
|
+
__typename?: 'Attribute';
|
|
79
|
+
} & Pick<Types.Attribute, 'key' | 'value'>>;
|
|
80
|
+
discountCodes: Array<{
|
|
81
|
+
__typename?: 'CartDiscountCode';
|
|
82
|
+
} & Pick<Types.CartDiscountCode, 'code' | 'applicable'>>;
|
|
83
|
+
}>;
|
|
17
84
|
}>;
|
|
18
85
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED, DO NOT EDIT.
|
|
3
|
+
* Instead, you can edit the associated .graphql file to query for additional fields and this file will be updated when you run `yarn graphql-types`
|
|
4
|
+
*/
|
|
1
5
|
import * as Types from '../../../graphql/types/types';
|
|
2
|
-
import { CartFragmentFragment } from './CartFragment';
|
|
3
6
|
export declare type CartDiscountCodesUpdateMutationVariables = Types.Exact<{
|
|
4
7
|
cartId: Types.Scalars['ID'];
|
|
5
|
-
discountCodes?: Types.
|
|
6
|
-
numCartLines?: Types.
|
|
7
|
-
country?: Types.
|
|
8
|
+
discountCodes?: Types.InputMaybe<Array<Types.Scalars['String']> | Types.Scalars['String']>;
|
|
9
|
+
numCartLines?: Types.InputMaybe<Types.Scalars['Int']>;
|
|
10
|
+
country?: Types.InputMaybe<Types.CountryCode>;
|
|
8
11
|
}>;
|
|
9
12
|
export declare type CartDiscountCodesUpdateMutation = {
|
|
10
13
|
__typename?: 'Mutation';
|
|
@@ -14,6 +17,70 @@ export declare type CartDiscountCodesUpdateMutation = {
|
|
|
14
17
|
} & {
|
|
15
18
|
cart?: Types.Maybe<{
|
|
16
19
|
__typename?: 'Cart';
|
|
17
|
-
} &
|
|
20
|
+
} & Pick<Types.Cart, 'id' | 'checkoutUrl' | 'note'> & {
|
|
21
|
+
buyerIdentity: {
|
|
22
|
+
__typename?: 'CartBuyerIdentity';
|
|
23
|
+
} & Pick<Types.CartBuyerIdentity, 'countryCode' | 'email' | 'phone'> & {
|
|
24
|
+
customer?: Types.Maybe<{
|
|
25
|
+
__typename?: 'Customer';
|
|
26
|
+
} & Pick<Types.Customer, 'id' | 'email' | 'firstName' | 'lastName' | 'displayName'>>;
|
|
27
|
+
};
|
|
28
|
+
lines: {
|
|
29
|
+
__typename?: 'CartLineConnection';
|
|
30
|
+
} & {
|
|
31
|
+
edges: Array<{
|
|
32
|
+
__typename?: 'CartLineEdge';
|
|
33
|
+
} & {
|
|
34
|
+
node: {
|
|
35
|
+
__typename?: 'CartLine';
|
|
36
|
+
} & Pick<Types.CartLine, 'id' | 'quantity'> & {
|
|
37
|
+
attributes: Array<{
|
|
38
|
+
__typename?: 'Attribute';
|
|
39
|
+
} & Pick<Types.Attribute, 'key' | 'value'>>;
|
|
40
|
+
merchandise: {
|
|
41
|
+
__typename?: 'ProductVariant';
|
|
42
|
+
} & Pick<Types.ProductVariant, 'id' | 'availableForSale' | 'requiresShipping' | 'title'> & {
|
|
43
|
+
compareAtPriceV2?: Types.Maybe<{
|
|
44
|
+
__typename?: 'MoneyV2';
|
|
45
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
46
|
+
priceV2: {
|
|
47
|
+
__typename?: 'MoneyV2';
|
|
48
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
49
|
+
image?: Types.Maybe<{
|
|
50
|
+
__typename?: 'Image';
|
|
51
|
+
} & Pick<Types.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>>;
|
|
52
|
+
product: {
|
|
53
|
+
__typename?: 'Product';
|
|
54
|
+
} & Pick<Types.Product, 'handle' | 'title'>;
|
|
55
|
+
selectedOptions: Array<{
|
|
56
|
+
__typename?: 'SelectedOption';
|
|
57
|
+
} & Pick<Types.SelectedOption, 'name' | 'value'>>;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
};
|
|
62
|
+
estimatedCost: {
|
|
63
|
+
__typename?: 'CartEstimatedCost';
|
|
64
|
+
} & {
|
|
65
|
+
subtotalAmount: {
|
|
66
|
+
__typename?: 'MoneyV2';
|
|
67
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
68
|
+
totalAmount: {
|
|
69
|
+
__typename?: 'MoneyV2';
|
|
70
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
71
|
+
totalDutyAmount?: Types.Maybe<{
|
|
72
|
+
__typename?: 'MoneyV2';
|
|
73
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
74
|
+
totalTaxAmount?: Types.Maybe<{
|
|
75
|
+
__typename?: 'MoneyV2';
|
|
76
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
77
|
+
};
|
|
78
|
+
attributes: Array<{
|
|
79
|
+
__typename?: 'Attribute';
|
|
80
|
+
} & Pick<Types.Attribute, 'key' | 'value'>>;
|
|
81
|
+
discountCodes: Array<{
|
|
82
|
+
__typename?: 'CartDiscountCode';
|
|
83
|
+
} & Pick<Types.CartDiscountCode, 'code' | 'applicable'>>;
|
|
84
|
+
}>;
|
|
18
85
|
}>;
|
|
19
86
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED, DO NOT EDIT.
|
|
3
|
+
* Instead, you can edit the associated .graphql file to query for additional fields and this file will be updated when you run `yarn graphql-types`
|
|
4
|
+
*/
|
|
1
5
|
import * as Types from '../../../graphql/types/types';
|
|
2
|
-
import { MoneyFragmentFragment } from '../../Money/MoneyFragment';
|
|
3
|
-
import { ImageFragmentFragment } from '../../Image/ImageFragment';
|
|
4
6
|
export declare type CartFragmentFragment = {
|
|
5
7
|
__typename?: 'Cart';
|
|
6
8
|
} & Pick<Types.Cart, 'id' | 'checkoutUrl' | 'note'> & {
|
|
@@ -28,13 +30,13 @@ export declare type CartFragmentFragment = {
|
|
|
28
30
|
} & Pick<Types.ProductVariant, 'id' | 'availableForSale' | 'requiresShipping' | 'title'> & {
|
|
29
31
|
compareAtPriceV2?: Types.Maybe<{
|
|
30
32
|
__typename?: 'MoneyV2';
|
|
31
|
-
} &
|
|
33
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
32
34
|
priceV2: {
|
|
33
35
|
__typename?: 'MoneyV2';
|
|
34
|
-
} &
|
|
36
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
35
37
|
image?: Types.Maybe<{
|
|
36
38
|
__typename?: 'Image';
|
|
37
|
-
} &
|
|
39
|
+
} & Pick<Types.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>>;
|
|
38
40
|
product: {
|
|
39
41
|
__typename?: 'Product';
|
|
40
42
|
} & Pick<Types.Product, 'handle' | 'title'>;
|
|
@@ -50,21 +52,21 @@ export declare type CartFragmentFragment = {
|
|
|
50
52
|
} & {
|
|
51
53
|
subtotalAmount: {
|
|
52
54
|
__typename?: 'MoneyV2';
|
|
53
|
-
} &
|
|
55
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
54
56
|
totalAmount: {
|
|
55
57
|
__typename?: 'MoneyV2';
|
|
56
|
-
} &
|
|
58
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
57
59
|
totalDutyAmount?: Types.Maybe<{
|
|
58
60
|
__typename?: 'MoneyV2';
|
|
59
|
-
} &
|
|
61
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
60
62
|
totalTaxAmount?: Types.Maybe<{
|
|
61
63
|
__typename?: 'MoneyV2';
|
|
62
|
-
} &
|
|
64
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
63
65
|
};
|
|
64
66
|
attributes: Array<{
|
|
65
67
|
__typename?: 'Attribute';
|
|
66
68
|
} & Pick<Types.Attribute, 'key' | 'value'>>;
|
|
67
69
|
discountCodes: Array<{
|
|
68
70
|
__typename?: 'CartDiscountCode';
|
|
69
|
-
} & Pick<Types.CartDiscountCode, 'code'>>;
|
|
71
|
+
} & Pick<Types.CartDiscountCode, 'code' | 'applicable'>>;
|
|
70
72
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED, DO NOT EDIT.
|
|
3
|
+
* Instead, you can edit the associated .graphql file to query for additional fields and this file will be updated when you run `yarn graphql-types`
|
|
4
|
+
*/
|
|
1
5
|
import * as Types from '../../../graphql/types/types';
|
|
2
|
-
import { CartFragmentFragment } from './CartFragment';
|
|
3
6
|
export declare type CartLineAddMutationVariables = Types.Exact<{
|
|
4
7
|
cartId: Types.Scalars['ID'];
|
|
5
8
|
lines: Array<Types.CartLineInput> | Types.CartLineInput;
|
|
6
|
-
numCartLines?: Types.
|
|
7
|
-
country?: Types.
|
|
9
|
+
numCartLines?: Types.InputMaybe<Types.Scalars['Int']>;
|
|
10
|
+
country?: Types.InputMaybe<Types.CountryCode>;
|
|
8
11
|
}>;
|
|
9
12
|
export declare type CartLineAddMutation = {
|
|
10
13
|
__typename?: 'Mutation';
|
|
@@ -14,6 +17,70 @@ export declare type CartLineAddMutation = {
|
|
|
14
17
|
} & {
|
|
15
18
|
cart?: Types.Maybe<{
|
|
16
19
|
__typename?: 'Cart';
|
|
17
|
-
} &
|
|
20
|
+
} & Pick<Types.Cart, 'id' | 'checkoutUrl' | 'note'> & {
|
|
21
|
+
buyerIdentity: {
|
|
22
|
+
__typename?: 'CartBuyerIdentity';
|
|
23
|
+
} & Pick<Types.CartBuyerIdentity, 'countryCode' | 'email' | 'phone'> & {
|
|
24
|
+
customer?: Types.Maybe<{
|
|
25
|
+
__typename?: 'Customer';
|
|
26
|
+
} & Pick<Types.Customer, 'id' | 'email' | 'firstName' | 'lastName' | 'displayName'>>;
|
|
27
|
+
};
|
|
28
|
+
lines: {
|
|
29
|
+
__typename?: 'CartLineConnection';
|
|
30
|
+
} & {
|
|
31
|
+
edges: Array<{
|
|
32
|
+
__typename?: 'CartLineEdge';
|
|
33
|
+
} & {
|
|
34
|
+
node: {
|
|
35
|
+
__typename?: 'CartLine';
|
|
36
|
+
} & Pick<Types.CartLine, 'id' | 'quantity'> & {
|
|
37
|
+
attributes: Array<{
|
|
38
|
+
__typename?: 'Attribute';
|
|
39
|
+
} & Pick<Types.Attribute, 'key' | 'value'>>;
|
|
40
|
+
merchandise: {
|
|
41
|
+
__typename?: 'ProductVariant';
|
|
42
|
+
} & Pick<Types.ProductVariant, 'id' | 'availableForSale' | 'requiresShipping' | 'title'> & {
|
|
43
|
+
compareAtPriceV2?: Types.Maybe<{
|
|
44
|
+
__typename?: 'MoneyV2';
|
|
45
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
46
|
+
priceV2: {
|
|
47
|
+
__typename?: 'MoneyV2';
|
|
48
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
49
|
+
image?: Types.Maybe<{
|
|
50
|
+
__typename?: 'Image';
|
|
51
|
+
} & Pick<Types.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>>;
|
|
52
|
+
product: {
|
|
53
|
+
__typename?: 'Product';
|
|
54
|
+
} & Pick<Types.Product, 'handle' | 'title'>;
|
|
55
|
+
selectedOptions: Array<{
|
|
56
|
+
__typename?: 'SelectedOption';
|
|
57
|
+
} & Pick<Types.SelectedOption, 'name' | 'value'>>;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
};
|
|
62
|
+
estimatedCost: {
|
|
63
|
+
__typename?: 'CartEstimatedCost';
|
|
64
|
+
} & {
|
|
65
|
+
subtotalAmount: {
|
|
66
|
+
__typename?: 'MoneyV2';
|
|
67
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
68
|
+
totalAmount: {
|
|
69
|
+
__typename?: 'MoneyV2';
|
|
70
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
71
|
+
totalDutyAmount?: Types.Maybe<{
|
|
72
|
+
__typename?: 'MoneyV2';
|
|
73
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
74
|
+
totalTaxAmount?: Types.Maybe<{
|
|
75
|
+
__typename?: 'MoneyV2';
|
|
76
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
77
|
+
};
|
|
78
|
+
attributes: Array<{
|
|
79
|
+
__typename?: 'Attribute';
|
|
80
|
+
} & Pick<Types.Attribute, 'key' | 'value'>>;
|
|
81
|
+
discountCodes: Array<{
|
|
82
|
+
__typename?: 'CartDiscountCode';
|
|
83
|
+
} & Pick<Types.CartDiscountCode, 'code' | 'applicable'>>;
|
|
84
|
+
}>;
|
|
18
85
|
}>;
|
|
19
86
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED, DO NOT EDIT.
|
|
3
|
+
* Instead, you can edit the associated .graphql file to query for additional fields and this file will be updated when you run `yarn graphql-types`
|
|
4
|
+
*/
|
|
1
5
|
import * as Types from '../../../graphql/types/types';
|
|
2
|
-
import { CartFragmentFragment } from './CartFragment';
|
|
3
6
|
export declare type CartLineRemoveMutationVariables = Types.Exact<{
|
|
4
7
|
cartId: Types.Scalars['ID'];
|
|
5
8
|
lines: Array<Types.Scalars['ID']> | Types.Scalars['ID'];
|
|
6
|
-
numCartLines?: Types.
|
|
7
|
-
country?: Types.
|
|
9
|
+
numCartLines?: Types.InputMaybe<Types.Scalars['Int']>;
|
|
10
|
+
country?: Types.InputMaybe<Types.CountryCode>;
|
|
8
11
|
}>;
|
|
9
12
|
export declare type CartLineRemoveMutation = {
|
|
10
13
|
__typename?: 'Mutation';
|
|
@@ -14,6 +17,70 @@ export declare type CartLineRemoveMutation = {
|
|
|
14
17
|
} & {
|
|
15
18
|
cart?: Types.Maybe<{
|
|
16
19
|
__typename?: 'Cart';
|
|
17
|
-
} &
|
|
20
|
+
} & Pick<Types.Cart, 'id' | 'checkoutUrl' | 'note'> & {
|
|
21
|
+
buyerIdentity: {
|
|
22
|
+
__typename?: 'CartBuyerIdentity';
|
|
23
|
+
} & Pick<Types.CartBuyerIdentity, 'countryCode' | 'email' | 'phone'> & {
|
|
24
|
+
customer?: Types.Maybe<{
|
|
25
|
+
__typename?: 'Customer';
|
|
26
|
+
} & Pick<Types.Customer, 'id' | 'email' | 'firstName' | 'lastName' | 'displayName'>>;
|
|
27
|
+
};
|
|
28
|
+
lines: {
|
|
29
|
+
__typename?: 'CartLineConnection';
|
|
30
|
+
} & {
|
|
31
|
+
edges: Array<{
|
|
32
|
+
__typename?: 'CartLineEdge';
|
|
33
|
+
} & {
|
|
34
|
+
node: {
|
|
35
|
+
__typename?: 'CartLine';
|
|
36
|
+
} & Pick<Types.CartLine, 'id' | 'quantity'> & {
|
|
37
|
+
attributes: Array<{
|
|
38
|
+
__typename?: 'Attribute';
|
|
39
|
+
} & Pick<Types.Attribute, 'key' | 'value'>>;
|
|
40
|
+
merchandise: {
|
|
41
|
+
__typename?: 'ProductVariant';
|
|
42
|
+
} & Pick<Types.ProductVariant, 'id' | 'availableForSale' | 'requiresShipping' | 'title'> & {
|
|
43
|
+
compareAtPriceV2?: Types.Maybe<{
|
|
44
|
+
__typename?: 'MoneyV2';
|
|
45
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
46
|
+
priceV2: {
|
|
47
|
+
__typename?: 'MoneyV2';
|
|
48
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
49
|
+
image?: Types.Maybe<{
|
|
50
|
+
__typename?: 'Image';
|
|
51
|
+
} & Pick<Types.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>>;
|
|
52
|
+
product: {
|
|
53
|
+
__typename?: 'Product';
|
|
54
|
+
} & Pick<Types.Product, 'handle' | 'title'>;
|
|
55
|
+
selectedOptions: Array<{
|
|
56
|
+
__typename?: 'SelectedOption';
|
|
57
|
+
} & Pick<Types.SelectedOption, 'name' | 'value'>>;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
};
|
|
62
|
+
estimatedCost: {
|
|
63
|
+
__typename?: 'CartEstimatedCost';
|
|
64
|
+
} & {
|
|
65
|
+
subtotalAmount: {
|
|
66
|
+
__typename?: 'MoneyV2';
|
|
67
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
68
|
+
totalAmount: {
|
|
69
|
+
__typename?: 'MoneyV2';
|
|
70
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
71
|
+
totalDutyAmount?: Types.Maybe<{
|
|
72
|
+
__typename?: 'MoneyV2';
|
|
73
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
74
|
+
totalTaxAmount?: Types.Maybe<{
|
|
75
|
+
__typename?: 'MoneyV2';
|
|
76
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
77
|
+
};
|
|
78
|
+
attributes: Array<{
|
|
79
|
+
__typename?: 'Attribute';
|
|
80
|
+
} & Pick<Types.Attribute, 'key' | 'value'>>;
|
|
81
|
+
discountCodes: Array<{
|
|
82
|
+
__typename?: 'CartDiscountCode';
|
|
83
|
+
} & Pick<Types.CartDiscountCode, 'code' | 'applicable'>>;
|
|
84
|
+
}>;
|
|
18
85
|
}>;
|
|
19
86
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED, DO NOT EDIT.
|
|
3
|
+
* Instead, you can edit the associated .graphql file to query for additional fields and this file will be updated when you run `yarn graphql-types`
|
|
4
|
+
*/
|
|
1
5
|
import * as Types from '../../../graphql/types/types';
|
|
2
|
-
import { CartFragmentFragment } from './CartFragment';
|
|
3
6
|
export declare type CartLineUpdateMutationVariables = Types.Exact<{
|
|
4
7
|
cartId: Types.Scalars['ID'];
|
|
5
8
|
lines: Array<Types.CartLineUpdateInput> | Types.CartLineUpdateInput;
|
|
6
|
-
numCartLines?: Types.
|
|
7
|
-
country?: Types.
|
|
9
|
+
numCartLines?: Types.InputMaybe<Types.Scalars['Int']>;
|
|
10
|
+
country?: Types.InputMaybe<Types.CountryCode>;
|
|
8
11
|
}>;
|
|
9
12
|
export declare type CartLineUpdateMutation = {
|
|
10
13
|
__typename?: 'Mutation';
|
|
@@ -14,6 +17,70 @@ export declare type CartLineUpdateMutation = {
|
|
|
14
17
|
} & {
|
|
15
18
|
cart?: Types.Maybe<{
|
|
16
19
|
__typename?: 'Cart';
|
|
17
|
-
} &
|
|
20
|
+
} & Pick<Types.Cart, 'id' | 'checkoutUrl' | 'note'> & {
|
|
21
|
+
buyerIdentity: {
|
|
22
|
+
__typename?: 'CartBuyerIdentity';
|
|
23
|
+
} & Pick<Types.CartBuyerIdentity, 'countryCode' | 'email' | 'phone'> & {
|
|
24
|
+
customer?: Types.Maybe<{
|
|
25
|
+
__typename?: 'Customer';
|
|
26
|
+
} & Pick<Types.Customer, 'id' | 'email' | 'firstName' | 'lastName' | 'displayName'>>;
|
|
27
|
+
};
|
|
28
|
+
lines: {
|
|
29
|
+
__typename?: 'CartLineConnection';
|
|
30
|
+
} & {
|
|
31
|
+
edges: Array<{
|
|
32
|
+
__typename?: 'CartLineEdge';
|
|
33
|
+
} & {
|
|
34
|
+
node: {
|
|
35
|
+
__typename?: 'CartLine';
|
|
36
|
+
} & Pick<Types.CartLine, 'id' | 'quantity'> & {
|
|
37
|
+
attributes: Array<{
|
|
38
|
+
__typename?: 'Attribute';
|
|
39
|
+
} & Pick<Types.Attribute, 'key' | 'value'>>;
|
|
40
|
+
merchandise: {
|
|
41
|
+
__typename?: 'ProductVariant';
|
|
42
|
+
} & Pick<Types.ProductVariant, 'id' | 'availableForSale' | 'requiresShipping' | 'title'> & {
|
|
43
|
+
compareAtPriceV2?: Types.Maybe<{
|
|
44
|
+
__typename?: 'MoneyV2';
|
|
45
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
46
|
+
priceV2: {
|
|
47
|
+
__typename?: 'MoneyV2';
|
|
48
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
49
|
+
image?: Types.Maybe<{
|
|
50
|
+
__typename?: 'Image';
|
|
51
|
+
} & Pick<Types.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>>;
|
|
52
|
+
product: {
|
|
53
|
+
__typename?: 'Product';
|
|
54
|
+
} & Pick<Types.Product, 'handle' | 'title'>;
|
|
55
|
+
selectedOptions: Array<{
|
|
56
|
+
__typename?: 'SelectedOption';
|
|
57
|
+
} & Pick<Types.SelectedOption, 'name' | 'value'>>;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
};
|
|
62
|
+
estimatedCost: {
|
|
63
|
+
__typename?: 'CartEstimatedCost';
|
|
64
|
+
} & {
|
|
65
|
+
subtotalAmount: {
|
|
66
|
+
__typename?: 'MoneyV2';
|
|
67
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
68
|
+
totalAmount: {
|
|
69
|
+
__typename?: 'MoneyV2';
|
|
70
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
71
|
+
totalDutyAmount?: Types.Maybe<{
|
|
72
|
+
__typename?: 'MoneyV2';
|
|
73
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
74
|
+
totalTaxAmount?: Types.Maybe<{
|
|
75
|
+
__typename?: 'MoneyV2';
|
|
76
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
77
|
+
};
|
|
78
|
+
attributes: Array<{
|
|
79
|
+
__typename?: 'Attribute';
|
|
80
|
+
} & Pick<Types.Attribute, 'key' | 'value'>>;
|
|
81
|
+
discountCodes: Array<{
|
|
82
|
+
__typename?: 'CartDiscountCode';
|
|
83
|
+
} & Pick<Types.CartDiscountCode, 'code' | 'applicable'>>;
|
|
84
|
+
}>;
|
|
18
85
|
}>;
|
|
19
86
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED, DO NOT EDIT.
|
|
3
|
+
* Instead, you can edit the associated .graphql file to query for additional fields and this file will be updated when you run `yarn graphql-types`
|
|
4
|
+
*/
|
|
1
5
|
import * as Types from '../../../graphql/types/types';
|
|
2
|
-
import { CartFragmentFragment } from './CartFragment';
|
|
3
6
|
export declare type CartNoteUpdateMutationVariables = Types.Exact<{
|
|
4
7
|
cartId: Types.Scalars['ID'];
|
|
5
|
-
note?: Types.
|
|
6
|
-
numCartLines?: Types.
|
|
7
|
-
country?: Types.
|
|
8
|
+
note?: Types.InputMaybe<Types.Scalars['String']>;
|
|
9
|
+
numCartLines?: Types.InputMaybe<Types.Scalars['Int']>;
|
|
10
|
+
country?: Types.InputMaybe<Types.CountryCode>;
|
|
8
11
|
}>;
|
|
9
12
|
export declare type CartNoteUpdateMutation = {
|
|
10
13
|
__typename?: 'Mutation';
|
|
@@ -14,6 +17,70 @@ export declare type CartNoteUpdateMutation = {
|
|
|
14
17
|
} & {
|
|
15
18
|
cart?: Types.Maybe<{
|
|
16
19
|
__typename?: 'Cart';
|
|
17
|
-
} &
|
|
20
|
+
} & Pick<Types.Cart, 'id' | 'checkoutUrl' | 'note'> & {
|
|
21
|
+
buyerIdentity: {
|
|
22
|
+
__typename?: 'CartBuyerIdentity';
|
|
23
|
+
} & Pick<Types.CartBuyerIdentity, 'countryCode' | 'email' | 'phone'> & {
|
|
24
|
+
customer?: Types.Maybe<{
|
|
25
|
+
__typename?: 'Customer';
|
|
26
|
+
} & Pick<Types.Customer, 'id' | 'email' | 'firstName' | 'lastName' | 'displayName'>>;
|
|
27
|
+
};
|
|
28
|
+
lines: {
|
|
29
|
+
__typename?: 'CartLineConnection';
|
|
30
|
+
} & {
|
|
31
|
+
edges: Array<{
|
|
32
|
+
__typename?: 'CartLineEdge';
|
|
33
|
+
} & {
|
|
34
|
+
node: {
|
|
35
|
+
__typename?: 'CartLine';
|
|
36
|
+
} & Pick<Types.CartLine, 'id' | 'quantity'> & {
|
|
37
|
+
attributes: Array<{
|
|
38
|
+
__typename?: 'Attribute';
|
|
39
|
+
} & Pick<Types.Attribute, 'key' | 'value'>>;
|
|
40
|
+
merchandise: {
|
|
41
|
+
__typename?: 'ProductVariant';
|
|
42
|
+
} & Pick<Types.ProductVariant, 'id' | 'availableForSale' | 'requiresShipping' | 'title'> & {
|
|
43
|
+
compareAtPriceV2?: Types.Maybe<{
|
|
44
|
+
__typename?: 'MoneyV2';
|
|
45
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
46
|
+
priceV2: {
|
|
47
|
+
__typename?: 'MoneyV2';
|
|
48
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
49
|
+
image?: Types.Maybe<{
|
|
50
|
+
__typename?: 'Image';
|
|
51
|
+
} & Pick<Types.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>>;
|
|
52
|
+
product: {
|
|
53
|
+
__typename?: 'Product';
|
|
54
|
+
} & Pick<Types.Product, 'handle' | 'title'>;
|
|
55
|
+
selectedOptions: Array<{
|
|
56
|
+
__typename?: 'SelectedOption';
|
|
57
|
+
} & Pick<Types.SelectedOption, 'name' | 'value'>>;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
};
|
|
62
|
+
estimatedCost: {
|
|
63
|
+
__typename?: 'CartEstimatedCost';
|
|
64
|
+
} & {
|
|
65
|
+
subtotalAmount: {
|
|
66
|
+
__typename?: 'MoneyV2';
|
|
67
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
68
|
+
totalAmount: {
|
|
69
|
+
__typename?: 'MoneyV2';
|
|
70
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
71
|
+
totalDutyAmount?: Types.Maybe<{
|
|
72
|
+
__typename?: 'MoneyV2';
|
|
73
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
74
|
+
totalTaxAmount?: Types.Maybe<{
|
|
75
|
+
__typename?: 'MoneyV2';
|
|
76
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
77
|
+
};
|
|
78
|
+
attributes: Array<{
|
|
79
|
+
__typename?: 'Attribute';
|
|
80
|
+
} & Pick<Types.Attribute, 'key' | 'value'>>;
|
|
81
|
+
discountCodes: Array<{
|
|
82
|
+
__typename?: 'CartDiscountCode';
|
|
83
|
+
} & Pick<Types.CartDiscountCode, 'code' | 'applicable'>>;
|
|
84
|
+
}>;
|
|
18
85
|
}>;
|
|
19
86
|
};
|