@graphcommerce/magento-cart 3.8.14 → 3.8.15
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/package.json +12 -12
- package/Api/CartItemCountChanged.gql.ts +0 -4
- package/components/CartAddress/CartAddress.gql.ts +0 -8
- package/components/CartAgreementsForm/CartAgreements.gql.ts +0 -10
- package/components/CartFab/CartFab.gql.ts +0 -12
- package/components/CartFab/CartTotalQuantity.gql.ts +0 -4
- package/components/CartItemSummary/GetCartItemSummary.gql.ts +0 -12
- package/components/CartStartCheckout/CartStartCheckout.gql.ts +0 -4
- package/components/CartSummary/CartSummary.gql.ts +0 -4
- package/components/CartSummary/GetCartSummary.gql.ts +0 -12
- package/components/CartTotals/CartTotals.gql.ts +0 -4
- package/components/CartTotals/GetCartTotals.gql.ts +0 -12
- package/components/InlineAccount/InlineAccount.gql.ts +0 -12
- package/hooks/CreateEmptyCart.gql.ts +0 -10
- package/hooks/CurrentCartId.gql.ts +0 -10
- package/hooks/CustomerCart.gql.ts +0 -10
- package/hooks/UseCartRedirect.gql.ts +0 -12
- package/hooks/UseMergeCustomerCart.gql.ts +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-cart",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.15",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -21,23 +21,23 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@apollo/client": "^3.5.6",
|
|
24
|
-
"@graphcommerce/framer-next-pages": "^2.108.
|
|
25
|
-
"@graphcommerce/framer-scroller": "^1.1.
|
|
26
|
-
"@graphcommerce/graphql": "^2.105.
|
|
27
|
-
"@graphcommerce/image": "^2.105.
|
|
28
|
-
"@graphcommerce/magento-customer": "^3.6.
|
|
29
|
-
"@graphcommerce/magento-graphql": "^2.104.
|
|
30
|
-
"@graphcommerce/magento-store": "^3.3.
|
|
31
|
-
"@graphcommerce/next-ui": "^3.21.
|
|
32
|
-
"@graphcommerce/react-hook-form": "^2.104.
|
|
24
|
+
"@graphcommerce/framer-next-pages": "^2.108.6",
|
|
25
|
+
"@graphcommerce/framer-scroller": "^1.1.13",
|
|
26
|
+
"@graphcommerce/graphql": "^2.105.11",
|
|
27
|
+
"@graphcommerce/image": "^2.105.10",
|
|
28
|
+
"@graphcommerce/magento-customer": "^3.6.20",
|
|
29
|
+
"@graphcommerce/magento-graphql": "^2.104.11",
|
|
30
|
+
"@graphcommerce/magento-store": "^3.3.20",
|
|
31
|
+
"@graphcommerce/next-ui": "^3.21.3",
|
|
32
|
+
"@graphcommerce/react-hook-form": "^2.104.6",
|
|
33
33
|
"@lingui/macro": "^3.13.0",
|
|
34
34
|
"@material-ui/core": "^4.12.3",
|
|
35
35
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
36
36
|
"clsx": "^1.1.1",
|
|
37
|
-
"framer-motion": "^5.5.
|
|
37
|
+
"framer-motion": "^5.5.5",
|
|
38
38
|
"next": "^12.0.7",
|
|
39
39
|
"react": "^17.0.2",
|
|
40
40
|
"react-dom": "^17.0.2"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "7cfbdb5a042e271252c8b9729393e084002a321e"
|
|
43
43
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
export type CartItemCountChangedFragment = { __typename: 'Cart', id: string, total_quantity: number, items?: Array<{ __typename: 'BundleCartItem', uid: string, quantity: number } | { __typename: 'ConfigurableCartItem', uid: string, quantity: number } | { __typename: 'DownloadableCartItem', uid: string, quantity: number } | { __typename: 'SimpleCartItem', uid: string, quantity: number } | { __typename: 'VirtualCartItem', uid: string, quantity: number } | null | undefined> | null | undefined, prices?: { __typename: 'CartPrices', grand_total?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, applied_taxes?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, subtotal_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_including_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_with_discount_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined, shipping_addresses: Array<{ selected_shipping_method?: { carrier_code: string, method_code: string, method_title: string, carrier_title: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined, available_shipping_methods?: Array<{ carrier_code: string, method_code?: string | null | undefined, price_incl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, price_excl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined } | null | undefined> };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
export type CartAddress_BillingCartAddress_Fragment = { __typename: 'BillingCartAddress', firstname: string, lastname: string, city: string, company?: string | null | undefined, postcode?: string | null | undefined, street: Array<string | null | undefined>, telephone: string, country: { code: string, label: string }, region?: { code?: string | null | undefined, label?: string | null | undefined, region_id?: number | null | undefined } | null | undefined };
|
|
5
|
-
|
|
6
|
-
export type CartAddress_ShippingCartAddress_Fragment = { __typename: 'ShippingCartAddress', firstname: string, lastname: string, city: string, company?: string | null | undefined, postcode?: string | null | undefined, street: Array<string | null | undefined>, telephone: string, country: { code: string, label: string }, region?: { code?: string | null | undefined, label?: string | null | undefined, region_id?: number | null | undefined } | null | undefined };
|
|
7
|
-
|
|
8
|
-
export type CartAddressFragment = CartAddress_BillingCartAddress_Fragment | CartAddress_ShippingCartAddress_Fragment;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
5
|
-
|
|
6
|
-
export const CartAgreementsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CartAgreements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"checkoutAgreements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agreement_id"}},{"kind":"Field","name":{"kind":"Name","value":"checkbox_text"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"content_height"}},{"kind":"Field","name":{"kind":"Name","value":"is_html"}},{"kind":"Field","name":{"kind":"Name","value":"mode"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<CartAgreementsQuery, CartAgreementsQueryVariables>;
|
|
7
|
-
export type CartAgreementsQueryVariables = Types.Exact<{ [key: string]: never; }>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export type CartAgreementsQuery = { checkoutAgreements?: Array<{ agreement_id: number, checkbox_text: string, content: string, content_height?: string | null | undefined, is_html: boolean, mode: Types.CheckoutAgreementMode, name: string } | null | undefined> | null | undefined };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
5
|
-
|
|
6
|
-
export const CartFabDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CartFab"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"total_quantity"}}]}}]}}]} as unknown as DocumentNode<CartFabQuery, CartFabQueryVariables>;
|
|
7
|
-
export type CartFabQueryVariables = Types.Exact<{
|
|
8
|
-
cartId: Types.Scalars['String'];
|
|
9
|
-
}>;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export type CartFabQuery = { cart?: { id: string, total_quantity: number } | null | undefined };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
5
|
-
|
|
6
|
-
export const CartItemSummaryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CartItemSummary"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"url_key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"thumbnail"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"prices"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"discounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"price"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"row_total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"row_total_including_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"total_item_discount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BundleCartItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bundle_options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"values"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"price"}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ConfigurableCartItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurable_options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurable_product_option_uid"}},{"kind":"Field","name":{"kind":"Name","value":"configurable_product_option_value_uid"}},{"kind":"Field","name":{"kind":"Name","value":"option_label"}},{"kind":"Field","name":{"kind":"Name","value":"value_label"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DownloadableCartItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"links"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"sample_url"}},{"kind":"Field","name":{"kind":"Name","value":"title"}}]}},{"kind":"Field","name":{"kind":"Name","value":"samples"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sample_url"}},{"kind":"Field","name":{"kind":"Name","value":"sort_order"}},{"kind":"Field","name":{"kind":"Name","value":"title"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"shipping_addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"selected_shipping_method"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_title"}},{"kind":"Field","name":{"kind":"Name","value":"carrier_title"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"available_shipping_methods"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"price_incl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"price_excl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"prices"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"applied_taxes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"discounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"grand_total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_including_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_with_discount_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}}]}}]} as unknown as DocumentNode<CartItemSummaryQuery, CartItemSummaryQueryVariables>;
|
|
7
|
-
export type CartItemSummaryQueryVariables = Types.Exact<{
|
|
8
|
-
cartId: Types.Scalars['String'];
|
|
9
|
-
}>;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export type CartItemSummaryQuery = { cart?: { id: string, items?: Array<{ __typename: 'BundleCartItem', uid: string, quantity: number, bundle_options: Array<{ uid: string, label: string, type: string, values: Array<{ uid: string, label: string, quantity: number, price: number } | null | undefined> } | null | undefined>, product: { __typename: 'BundleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'ConfigurableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'DownloadableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'GroupedProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'SimpleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'VirtualProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined }, prices?: { discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, price: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total_including_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, total_item_discount?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } | { __typename: 'ConfigurableCartItem', uid: string, quantity: number, configurable_options: Array<{ configurable_product_option_uid: string, configurable_product_option_value_uid: string, option_label: string, value_label: string } | null | undefined>, product: { __typename: 'BundleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'ConfigurableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'DownloadableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'GroupedProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'SimpleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'VirtualProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined }, prices?: { discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, price: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total_including_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, total_item_discount?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } | { __typename: 'DownloadableCartItem', uid: string, quantity: number, links?: Array<{ uid: string, price?: number | null | undefined, sample_url?: string | null | undefined, title?: string | null | undefined } | null | undefined> | null | undefined, samples?: Array<{ sample_url?: string | null | undefined, sort_order?: number | null | undefined, title?: string | null | undefined } | null | undefined> | null | undefined, product: { __typename: 'BundleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'ConfigurableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'DownloadableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'GroupedProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'SimpleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'VirtualProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined }, prices?: { discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, price: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total_including_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, total_item_discount?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } | { __typename: 'SimpleCartItem', uid: string, quantity: number, product: { __typename: 'BundleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'ConfigurableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'DownloadableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'GroupedProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'SimpleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'VirtualProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined }, prices?: { discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, price: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total_including_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, total_item_discount?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } | { __typename: 'VirtualCartItem', uid: string, quantity: number, product: { __typename: 'BundleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'ConfigurableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'DownloadableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'GroupedProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'SimpleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'VirtualProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined }, prices?: { discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, price: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total_including_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, total_item_discount?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } | null | undefined> | null | undefined, shipping_addresses: Array<{ selected_shipping_method?: { carrier_code: string, method_code: string, method_title: string, carrier_title: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined, available_shipping_methods?: Array<{ carrier_code: string, method_code?: string | null | undefined, price_incl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, price_excl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined } | null | undefined>, prices?: { __typename: 'CartPrices', applied_taxes?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, grand_total?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_including_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_with_discount_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } | null | undefined };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
export type CartSummaryFragment = { email?: string | null | undefined, id: string, shipping_addresses: Array<{ __typename: 'ShippingCartAddress', firstname: string, lastname: string, city: string, company?: string | null | undefined, postcode?: string | null | undefined, street: Array<string | null | undefined>, telephone: string, selected_shipping_method?: { carrier_code: string, method_code: string, carrier_title: string, method_title: string } | null | undefined, available_shipping_methods?: Array<{ available: boolean, carrier_code: string, carrier_title: string, error_message?: string | null | undefined, method_code?: string | null | undefined, method_title?: string | null | undefined, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, country: { code: string, label: string }, region?: { code?: string | null | undefined, label?: string | null | undefined, region_id?: number | null | undefined } | null | undefined } | null | undefined>, billing_address?: { __typename: 'BillingCartAddress', firstname: string, lastname: string, city: string, company?: string | null | undefined, postcode?: string | null | undefined, street: Array<string | null | undefined>, telephone: string, country: { code: string, label: string }, region?: { code?: string | null | undefined, label?: string | null | undefined, region_id?: number | null | undefined } | null | undefined } | null | undefined };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
5
|
-
|
|
6
|
-
export const GetCartSummaryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetCartSummary"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"shipping_addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"selected_shipping_method"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"carrier_title"}},{"kind":"Field","name":{"kind":"Name","value":"method_title"}}]}},{"kind":"Field","name":{"kind":"Name","value":"available_shipping_methods"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"available"}},{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"carrier_title"}},{"kind":"Field","name":{"kind":"Name","value":"error_message"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_title"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CartAddressInterface"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"firstname"}},{"kind":"Field","name":{"kind":"Name","value":"lastname"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"country"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"postcode"}},{"kind":"Field","name":{"kind":"Name","value":"region"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"region_id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"street"}},{"kind":"Field","name":{"kind":"Name","value":"telephone"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"billing_address"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CartAddressInterface"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"firstname"}},{"kind":"Field","name":{"kind":"Name","value":"lastname"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"country"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"postcode"}},{"kind":"Field","name":{"kind":"Name","value":"region"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"region_id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"street"}},{"kind":"Field","name":{"kind":"Name","value":"telephone"}}]}}]}}]}}]}}]} as unknown as DocumentNode<GetCartSummaryQuery, GetCartSummaryQueryVariables>;
|
|
7
|
-
export type GetCartSummaryQueryVariables = Types.Exact<{
|
|
8
|
-
cartId: Types.Scalars['String'];
|
|
9
|
-
}>;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export type GetCartSummaryQuery = { cart?: { email?: string | null | undefined, id: string, shipping_addresses: Array<{ __typename: 'ShippingCartAddress', firstname: string, lastname: string, city: string, company?: string | null | undefined, postcode?: string | null | undefined, street: Array<string | null | undefined>, telephone: string, country: { code: string, label: string }, region?: { code?: string | null | undefined, label?: string | null | undefined, region_id?: number | null | undefined } | null | undefined, selected_shipping_method?: { carrier_code: string, method_code: string, carrier_title: string, method_title: string } | null | undefined, available_shipping_methods?: Array<{ available: boolean, carrier_code: string, carrier_title: string, error_message?: string | null | undefined, method_code?: string | null | undefined, method_title?: string | null | undefined, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined } | null | undefined>, billing_address?: { __typename: 'BillingCartAddress', firstname: string, lastname: string, city: string, company?: string | null | undefined, postcode?: string | null | undefined, street: Array<string | null | undefined>, telephone: string, country: { code: string, label: string }, region?: { code?: string | null | undefined, label?: string | null | undefined, region_id?: number | null | undefined } | null | undefined } | null | undefined } | null | undefined };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
export type CartTotalsFragment = { shipping_addresses: Array<{ selected_shipping_method?: { carrier_code: string, method_code: string, method_title: string, carrier_title: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined, available_shipping_methods?: Array<{ carrier_code: string, method_code?: string | null | undefined, price_incl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, price_excl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined } | null | undefined>, prices?: { __typename: 'CartPrices', applied_taxes?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, grand_total?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_including_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_with_discount_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
5
|
-
|
|
6
|
-
export const GetCartTotalsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetCartTotals"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"shipping_addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"selected_shipping_method"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_title"}},{"kind":"Field","name":{"kind":"Name","value":"carrier_title"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"available_shipping_methods"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"price_incl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"price_excl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"prices"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"applied_taxes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"discounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"grand_total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_including_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_with_discount_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}}]}}]} as unknown as DocumentNode<GetCartTotalsQuery, GetCartTotalsQueryVariables>;
|
|
7
|
-
export type GetCartTotalsQueryVariables = Types.Exact<{
|
|
8
|
-
cartId: Types.Scalars['String'];
|
|
9
|
-
}>;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export type GetCartTotalsQuery = { cart?: { shipping_addresses: Array<{ selected_shipping_method?: { carrier_code: string, method_code: string, method_title: string, carrier_title: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined, available_shipping_methods?: Array<{ carrier_code: string, method_code?: string | null | undefined, price_incl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, price_excl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined } | null | undefined>, prices?: { __typename: 'CartPrices', applied_taxes?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, grand_total?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_including_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_with_discount_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } | null | undefined };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
5
|
-
|
|
6
|
-
export const InlineAccountDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"InlineAccount"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shipping_addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CartAddressInterface"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"firstname"}},{"kind":"Field","name":{"kind":"Name","value":"lastname"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"country"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"postcode"}},{"kind":"Field","name":{"kind":"Name","value":"region"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"region_id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"street"}},{"kind":"Field","name":{"kind":"Name","value":"telephone"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"email"}}]}}]}}]} as unknown as DocumentNode<InlineAccountQuery, InlineAccountQueryVariables>;
|
|
7
|
-
export type InlineAccountQueryVariables = Types.Exact<{
|
|
8
|
-
cartId: Types.Scalars['String'];
|
|
9
|
-
}>;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export type InlineAccountQuery = { cart?: { __typename: 'Cart', id: string, email?: string | null | undefined, shipping_addresses: Array<{ __typename: 'ShippingCartAddress', firstname: string, lastname: string, city: string, company?: string | null | undefined, postcode?: string | null | undefined, street: Array<string | null | undefined>, telephone: string, country: { code: string, label: string }, region?: { code?: string | null | undefined, label?: string | null | undefined, region_id?: number | null | undefined } | null | undefined } | null | undefined> } | null | undefined };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
5
|
-
|
|
6
|
-
export const CreateEmptyCartDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyCart"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createEmptyCart"}}]}}]} as unknown as DocumentNode<CreateEmptyCartMutation, CreateEmptyCartMutationVariables>;
|
|
7
|
-
export type CreateEmptyCartMutationVariables = Types.Exact<{ [key: string]: never; }>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export type CreateEmptyCartMutation = { createEmptyCart?: string | null | undefined };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
5
|
-
|
|
6
|
-
export const CurrentCartIdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CurrentCartId"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentCartId"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"client"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<CurrentCartIdQuery, CurrentCartIdQueryVariables>;
|
|
7
|
-
export type CurrentCartIdQueryVariables = Types.Exact<{ [key: string]: never; }>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export type CurrentCartIdQuery = { currentCartId?: { __typename: 'CurrentCartId', id?: string | null | undefined } | null | undefined };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
5
|
-
|
|
6
|
-
export const CustomerCartDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CustomerCart"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customerCart"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}}]}},{"kind":"Field","name":{"kind":"Name","value":"total_quantity"}},{"kind":"Field","name":{"kind":"Name","value":"prices"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"grand_total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"applied_taxes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"discounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_including_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_with_discount_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"shipping_addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"selected_shipping_method"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_title"}},{"kind":"Field","name":{"kind":"Name","value":"carrier_title"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"available_shipping_methods"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"price_incl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"price_excl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<CustomerCartQuery, CustomerCartQueryVariables>;
|
|
7
|
-
export type CustomerCartQueryVariables = Types.Exact<{ [key: string]: never; }>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export type CustomerCartQuery = { customerCart: { __typename: 'Cart', id: string, total_quantity: number, items?: Array<{ __typename: 'BundleCartItem', uid: string, quantity: number } | { __typename: 'ConfigurableCartItem', uid: string, quantity: number } | { __typename: 'DownloadableCartItem', uid: string, quantity: number } | { __typename: 'SimpleCartItem', uid: string, quantity: number } | { __typename: 'VirtualCartItem', uid: string, quantity: number } | null | undefined> | null | undefined, prices?: { __typename: 'CartPrices', grand_total?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, applied_taxes?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, subtotal_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_including_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_with_discount_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined, shipping_addresses: Array<{ selected_shipping_method?: { carrier_code: string, method_code: string, method_title: string, carrier_title: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined, available_shipping_methods?: Array<{ carrier_code: string, method_code?: string | null | undefined, price_incl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, price_excl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined } | null | undefined> } };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
5
|
-
|
|
6
|
-
export const UseCartRedirectDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UseCartRedirect"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<UseCartRedirectQuery, UseCartRedirectQueryVariables>;
|
|
7
|
-
export type UseCartRedirectQueryVariables = Types.Exact<{
|
|
8
|
-
cartId: Types.Scalars['String'];
|
|
9
|
-
}>;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export type UseCartRedirectQuery = { cart?: { id: string } | null | undefined };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
5
|
-
|
|
6
|
-
export const UseMergeCustomerCartDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UseMergeCustomerCart"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sourceCartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"destinationCartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mergeCarts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"source_cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"sourceCartId"}}},{"kind":"Argument","name":{"kind":"Name","value":"destination_cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"destinationCartId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<UseMergeCustomerCartMutation, UseMergeCustomerCartMutationVariables>;
|
|
7
|
-
export type UseMergeCustomerCartMutationVariables = Types.Exact<{
|
|
8
|
-
sourceCartId: Types.Scalars['String'];
|
|
9
|
-
destinationCartId: Types.Scalars['String'];
|
|
10
|
-
}>;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export type UseMergeCustomerCartMutation = { mergeCarts: { __typename: 'Cart', id: string } };
|