@mframework/layer-commerce 0.0.3
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/README.md +101 -0
- package/app/cart/useCart.ts +1 -0
- package/app/components/ChevronIcon/ChevronIcon.config.ts +17 -0
- package/app/components/DateSelect/DateSelect.config.ts +15 -0
- package/app/components/Field/Field.config.ts +14 -0
- package/app/components/FieldDate/FieldDate.config.ts +16 -0
- package/app/components/Form/Form.type.ts +8 -0
- package/app/components/Product/Product.config.ts +19 -0
- package/app/components/Product/Stock.config.ts +15 -0
- package/app/components/ProductCustomizableOption/ProductCustomizableOption.config.ts +5 -0
- package/app/components/ProductGallery/ProductGallery.config.ts +15 -0
- package/app/components/ProductReviews/ProductReviews.config.ts +8 -0
- package/app/composables/_types.ts +18 -0
- package/app/composables/adapters/abstract/cartAdapter.ts +0 -0
- package/app/composables/adapters/abstract/categoryAdapter.ts +0 -0
- package/app/composables/adapters/abstract/customerAdapter.ts +0 -0
- package/app/composables/adapters/abstract/inventoryAdapter.ts +0 -0
- package/app/composables/adapters/abstract/orderAdapter.ts +0 -0
- package/app/composables/adapters/abstract/productAdapter.ts +7 -0
- package/app/composables/cart/registry.ts +20 -0
- package/app/composables/cart/types.ts +18 -0
- package/app/composables/cart/useCart.ts +15 -0
- package/app/composables/config.ts +19 -0
- package/app/composables/defs/apiDefinitions.ts +55 -0
- package/app/composables/defs/extension.feature +40 -0
- package/app/composables/defs/extension.mocks.ts +39 -0
- package/app/composables/defs/extension.test.ts +280 -0
- package/app/composables/defs/extension.ts +236 -0
- package/app/composables/defs/index.ts +3 -0
- package/app/composables/defs/typeHelpers.ts +8 -0
- package/app/composables/defs/types.ts +136 -0
- package/app/composables/domain/product.ts +12 -0
- package/app/composables/featured-products.ts +20 -0
- package/app/composables/helpers/contextualizedNormalizers.feature +14 -0
- package/app/composables/helpers/contextualizedNormalizers.test.ts +85 -0
- package/app/composables/helpers/contextualizedNormalizers.ts +20 -0
- package/app/composables/helpers/index.ts +1 -0
- package/app/composables/index.ts +9 -0
- package/app/composables/methods/auth.ts +83 -0
- package/app/composables/methods/cart.ts +119 -0
- package/app/composables/methods/category.ts +27 -0
- package/app/composables/methods/checkout.ts +54 -0
- package/app/composables/methods/customer.ts +52 -0
- package/app/composables/methods/helpers.ts +5 -0
- package/app/composables/methods/index.ts +75 -0
- package/app/composables/methods/order.ts +39 -0
- package/app/composables/methods/product.ts +95 -0
- package/app/composables/methods/settings.ts +16 -0
- package/app/composables/models/cart.ts +95 -0
- package/app/composables/models/category.ts +13 -0
- package/app/composables/models/checkout.ts +17 -0
- package/app/composables/models/customer.ts +16 -0
- package/app/composables/models/facets.ts +25 -0
- package/app/composables/models/index.ts +94 -0
- package/app/composables/models/order.ts +43 -0
- package/app/composables/models/product.ts +73 -0
- package/app/composables/models/shared.ts +75 -0
- package/app/composables/orders.ts +69 -0
- package/app/composables/products/registry.ts +86 -0
- package/app/composables/products/types.ts +8 -0
- package/app/composables/products/useEvents.ts +26 -0
- package/app/composables/products/useGiftCards.ts +29 -0
- package/app/composables/products/useProducts.ts +12 -0
- package/app/composables/products/useSubscriptions.ts +29 -0
- package/app/composables/products.ts +30 -0
- package/app/composables/registry.ts +24 -0
- package/app/composables/useAuth.ts +43 -0
- package/app/composables/useBreakpoints/index.ts +1 -0
- package/app/composables/useBreakpoints/useBreakpoints.ts +28 -0
- package/app/composables/useCache.ts +38 -0
- package/app/composables/useCart/__tests__/useCart.spec.ts +11 -0
- package/app/composables/useCart/index.ts +1 -0
- package/app/composables/useCart/types.ts +17 -0
- package/app/composables/useCart/useCart.ts +46 -0
- package/app/composables/useCartShippingMethods/__tests__/useCartShippingMethods.spec.ts +11 -0
- package/app/composables/useCartShippingMethods/index.ts +1 -0
- package/app/composables/useCartShippingMethods/types.ts +17 -0
- package/app/composables/useCartShippingMethods/useCartShippingMethods.ts +47 -0
- package/app/composables/useCatalog.ts +26 -0
- package/app/composables/useContent.ts +26 -0
- package/app/composables/useCustomer/__tests__/useCustomer.spec.ts +25 -0
- package/app/composables/useCustomer/index.ts +2 -0
- package/app/composables/useCustomer/types.ts +17 -0
- package/app/composables/useCustomer/useCustomer.ts +40 -0
- package/app/composables/useCustomerAddress/__tests__/useCustomerAddress.spec.ts +11 -0
- package/app/composables/useCustomerAddress/index.ts +2 -0
- package/app/composables/useCustomerAddress/types.ts +17 -0
- package/app/composables/useCustomerAddress/useCustomerAddress.ts +55 -0
- package/app/composables/useCustomerOrder/__tests__/useCustomerOrder.spec.ts +11 -0
- package/app/composables/useCustomerOrder/adress.ts +10 -0
- package/app/composables/useCustomerOrder/index.ts +2 -0
- package/app/composables/useCustomerOrder/product.ts +37 -0
- package/app/composables/useCustomerOrder/types.ts +40 -0
- package/app/composables/useCustomerOrder/useCustomerOrder.ts +63 -0
- package/app/composables/useCustomerOrders/__tests__/useCustomerOrders.spec.ts +11 -0
- package/app/composables/useCustomerOrders/index.ts +2 -0
- package/app/composables/useCustomerOrders/types.ts +20 -0
- package/app/composables/useCustomerOrders/useCustomerOrders.ts +56 -0
- package/app/composables/useCustomerReturns/__tests__/useCustomerReturns.spec.ts +11 -0
- package/app/composables/useCustomerReturns/index.ts +2 -0
- package/app/composables/useCustomerReturns/types.ts +17 -0
- package/app/composables/useCustomerReturns/useCustomerReturns.ts +41 -0
- package/app/composables/useHandleError/index.ts +1 -0
- package/app/composables/useHandleError/types.ts +11 -0
- package/app/composables/useHandleError/useHandleError.ts +27 -0
- package/app/composables/useInventory.ts +29 -0
- package/app/composables/useLoading.ts +21 -0
- package/app/composables/useNotification.ts +21 -0
- package/app/composables/usePageTitle.ts +20 -0
- package/app/composables/useProduct/index.ts +2 -0
- package/app/composables/useProduct/types.ts +17 -0
- package/app/composables/useProduct/useProduct.ts +42 -0
- package/app/composables/useProductAttribute/__tests__/useProduct.mock.ts +31 -0
- package/app/composables/useProductAttribute/__tests__/useProductAttribute.spec.ts +14 -0
- package/app/composables/useProductAttribute/index.ts +1 -0
- package/app/composables/useProductAttribute/useProductAttribute.ts +37 -0
- package/app/composables/useProductRecommended/__tests__/useProductRecommended.spec.ts +12 -0
- package/app/composables/useProductRecommended/index.ts +1 -0
- package/app/composables/useProductRecommended/types.ts +17 -0
- package/app/composables/useProductRecommended/useProductRecommended.ts +43 -0
- package/app/composables/useProductReviews/__tests__/productReviews.mock.ts +20 -0
- package/app/composables/useProductReviews/__tests__/useProductReviews.spec.ts +22 -0
- package/app/composables/useProductReviews/index.ts +2 -0
- package/app/composables/useProductReviews/types.ts +17 -0
- package/app/composables/useProductReviews/useProductReviews.ts +46 -0
- package/app/composables/useProducts/__tests__/useProducts.spec.ts +11 -0
- package/app/composables/useProducts/types.ts +22 -0
- package/app/composables/useProducts/useProducts.ts +41 -0
- package/app/composables/useTax.ts +27 -0
- package/app/composables/validationRules/index.ts +1 -0
- package/app/composables/validationRules/password.feature +67 -0
- package/app/composables/validationRules/password.test.ts +89 -0
- package/app/composables/validationRules/password.ts +25 -0
- package/app/normalizers/Cart.query.ts +729 -0
- package/app/normalizers/Cart.type.ts +285 -0
- package/app/normalizers/Category.query.ts +146 -0
- package/app/normalizers/Category.type.ts +55 -0
- package/app/normalizers/CheckEmail.query.ts +28 -0
- package/app/normalizers/Checkout.query.ts +253 -0
- package/app/normalizers/Checkout.type.ts +77 -0
- package/app/normalizers/CmsBlock.query.ts +57 -0
- package/app/normalizers/CmsBlock.type.ts +25 -0
- package/app/normalizers/CmsPage.query.ts +59 -0
- package/app/normalizers/CmsPage.type.ts +26 -0
- package/app/normalizers/Config.query.ts +224 -0
- package/app/normalizers/Config.type.ts +196 -0
- package/app/normalizers/ContactForm.query.ts +49 -0
- package/app/normalizers/CreditMemo.type.ts +49 -0
- package/app/normalizers/GiftCard.type.ts +24 -0
- package/app/normalizers/Invoice.type.ts +58 -0
- package/app/normalizers/Menu.query.ts +54 -0
- package/app/normalizers/Menu.type.ts +22 -0
- package/app/normalizers/MyAccount.query.ts +268 -0
- package/app/normalizers/MyAccount.type.ts +129 -0
- package/app/normalizers/NewsletterSubscription.query.ts +38 -0
- package/app/normalizers/Order.query.ts +741 -0
- package/app/normalizers/Order.type.ts +268 -0
- package/app/normalizers/Payment.type.ts +28 -0
- package/app/normalizers/ProductAlerts.query.ts +23 -0
- package/app/normalizers/ProductCompare.query.ts +226 -0
- package/app/normalizers/ProductCompare.type.ts +90 -0
- package/app/normalizers/ProductList.query.ts +1620 -0
- package/app/normalizers/ProductList.type.ts +726 -0
- package/app/normalizers/Region.query.ts +58 -0
- package/app/normalizers/Region.type.ts +23 -0
- package/app/normalizers/Return.type.ts +50 -0
- package/app/normalizers/Review.query.ts +81 -0
- package/app/normalizers/Review.type.ts +42 -0
- package/app/normalizers/Slider.query.ts +72 -0
- package/app/normalizers/Slider.type.ts +26 -0
- package/app/normalizers/StoreInPickUp.query.ts +54 -0
- package/app/normalizers/StoreInPickUp.type.ts +59 -0
- package/app/normalizers/Subscription.type.ts +25 -0
- package/app/normalizers/Transaction.type.ts +20 -0
- package/app/normalizers/UrlRewrites.query.ts +55 -0
- package/app/normalizers/UrlRewrites.type.ts +25 -0
- package/app/normalizers/Wishlist.query.ts +202 -0
- package/app/normalizers/Wishlist.type.ts +42 -0
- package/app/pages/brand/[...slug].vue +76 -0
- package/app/pages/brands.vue +67 -0
- package/app/pages/cart.vue +142 -0
- package/app/pages/compare.vue +166 -0
- package/app/pages/departments/[...slug].vue +353 -0
- package/app/pages/departments/category/[...slug].vue +114 -0
- package/app/pages/incentive/[...id].vue +66 -0
- package/app/pages/invoice/[id].vue +309 -0
- package/app/pages/order/[id].vue +327 -0
- package/app/pages/product/[...id].vue +309 -0
- package/app/pages/product/showcases/index.vue +86 -0
- package/app/pages/shipment/[...id].vue +176 -0
- package/app/pages/shop/[...slug].vue +158 -0
- package/app/pages/shops.vue +76 -0
- package/app/pages/subscription/[...id].vue +147 -0
- package/app/pages/transaction/[...id].vue +74 -0
- package/app/routes/CategoryPage/CategoryPage.config.ts +28 -0
- package/app/routes/CategoryPage/CategoryPage.type.ts +8 -0
- package/app/routes/Checkout/Checkout.config.ts +3 -0
- package/app/routes/Checkout/Checkout.type.ts +14 -0
- package/app/routes/MyAccount/MyAccount.config.ts +1 -0
- package/app/routes/SearchPage/SearchPage.config.ts +1 -0
- package/app/routes/UrlRewrites/UrlRewrites.config.ts +5 -0
- package/app/stores/Cart/Cart.type.ts +26 -0
- package/app/stores/MyAccount/MyAccount.action.ts +7 -0
- package/app/stores/Notification/Notification.action.ts +40 -0
- package/app/stores/Notification/Notification.type.ts +16 -0
- package/app/stores/Popup/Popup.action.ts +30 -0
- package/app/stores/Product/Product.dispatcher.ts +53 -0
- package/app/stores/Product/Product.reducer.ts +12 -0
- package/app/stores/ProductList/ProductList.dispatcher.ts +35 -0
- package/app/stores/ProductList/ProductList.reducer.ts +13 -0
- package/app/stores/Store.type.ts +31 -0
- package/app/stores/Wishlist/Wishlist.type.ts +12 -0
- package/app/stores/cart.ts +218 -0
- package/app/stores/cartStore.ts +224 -0
- package/app/stores/checkout.ts +18 -0
- package/app/stores/compare.ts +65 -0
- package/app/stores/currency.js +29 -0
- package/app/stores/digital-products.js +11 -0
- package/app/stores/orders.ts +172 -0
- package/app/stores/product.ts +34 -0
- package/app/stores/productList.ts +35 -0
- package/app/stores/productListInfo.ts +0 -0
- package/app/stores/products.ts +118 -0
- package/app/stores/recentlyViewedProducts.ts +56 -0
- package/app/stores/review.ts +33 -0
- package/app/stores/storeInPickUp.ts +21 -0
- package/app/stores/user.ts +20 -0
- package/app/stores/wishlist.ts +46 -0
- package/app/types/Account.type.ts +141 -0
- package/app/types/Breadcrumbs.type.ts +23 -0
- package/app/types/CMS.type.ts +33 -0
- package/app/types/Category.type.ts +67 -0
- package/app/types/Checkout.type.ts +58 -0
- package/app/types/Common.type.ts +77 -0
- package/app/types/Config.type.ts +47 -0
- package/app/types/Device.type.ts +37 -0
- package/app/types/Direction.type.ts +23 -0
- package/app/types/Downloadable.type.ts +24 -0
- package/app/types/Error.type.ts +22 -0
- package/app/types/Field.type.ts +151 -0
- package/app/types/Global.type.ts +156 -0
- package/app/types/Graphql.type.ts +4497 -0
- package/app/types/Layout.type.ts +18 -0
- package/app/types/Menu.type.ts +39 -0
- package/app/types/MiniCart.type.ts +61 -0
- package/app/types/NotificationList.type.ts +34 -0
- package/app/types/Order.type.ts +174 -0
- package/app/types/Price.type.ts +72 -0
- package/app/types/ProductCompare.type.ts +24 -0
- package/app/types/ProductList.type.ts +351 -0
- package/app/types/Rating.type.ts +42 -0
- package/app/types/Router.type.ts +67 -0
- package/app/types/Slider.type.ts +25 -0
- package/app/types/StockStatus.type.ts +21 -0
- package/app/types/domain/index.ts +94 -0
- package/app/types/index.ts +33 -0
- package/app/types/shims.d.ts +52 -0
- package/app/types/tilework-opus.d.ts +48 -0
- package/app/utils/Address/Address.type.ts +28 -0
- package/app/utils/Address/index.ts +325 -0
- package/app/utils/Auth/IsSignedIn.ts +4 -0
- package/app/utils/Auth/Token.ts +9 -0
- package/app/utils/Base64/Base64.ts +16 -0
- package/app/utils/Base64/index.ts +12 -0
- package/app/utils/Browser/Browser.ts +29 -0
- package/app/utils/Browser/index.ts +12 -0
- package/app/utils/BrowserDatabase/BrowserDatabase.ts +70 -0
- package/app/utils/BrowserDatabase/index.ts +12 -0
- package/app/utils/CSS/CSS.ts +65 -0
- package/app/utils/CSS/index.ts +12 -0
- package/app/utils/Cache/Cache.ts +99 -0
- package/app/utils/Cart/Cart.ts +300 -0
- package/app/utils/Cart/Cart.type.ts +76 -0
- package/app/utils/Cart/Token.ts +59 -0
- package/app/utils/Cart/index.ts +13 -0
- package/app/utils/Category/Filters.ts +39 -0
- package/app/utils/Category/index.ts +12 -0
- package/app/utils/Common/index.ts +32 -0
- package/app/utils/Compare/Compare.ts +89 -0
- package/app/utils/Compare/index.ts +12 -0
- package/app/utils/Currency/Currency.ts +84 -0
- package/app/utils/Currency/index.ts +12 -0
- package/app/utils/DynamicReducer/DynamicReducer.type.ts +14 -0
- package/app/utils/DynamicReducer/Helper.ts +30 -0
- package/app/utils/DynamicReducer/index.tsx +35 -0
- package/app/utils/ElementTransition/ElementTransition.ts +100 -0
- package/app/utils/Form/Extract.ts +316 -0
- package/app/utils/Form/Form.ts +46 -0
- package/app/utils/Form/Form.type.ts +60 -0
- package/app/utils/Form/Transform.ts +33 -0
- package/app/utils/FormPortalCollector/index.ts +45 -0
- package/app/utils/History/History.type.ts +31 -0
- package/app/utils/History/index.ts +17 -0
- package/app/utils/Manipulations/Array.ts +18 -0
- package/app/utils/Manipulations/Date.ts +36 -0
- package/app/utils/Manipulations/index.ts +14 -0
- package/app/utils/Media/Media.ts +27 -0
- package/app/utils/Media/index.ts +13 -0
- package/app/utils/Menu/Menu.ts +116 -0
- package/app/utils/Menu/Menu.type.ts +37 -0
- package/app/utils/Menu/index.ts +12 -0
- package/app/utils/Mobile/index.ts +13 -0
- package/app/utils/Mobile/isMobile.ts +34 -0
- package/app/utils/Orders/Orders.ts +71 -0
- package/app/utils/Orders/Orders.type.ts +19 -0
- package/app/utils/Orders/index.ts +13 -0
- package/app/utils/Polyfill/index.ts +336 -0
- package/app/utils/Preload/CategoryPreload.ts +74 -0
- package/app/utils/Preload/ProductPreload.ts +28 -0
- package/app/utils/Preload/index.ts +75 -0
- package/app/utils/Price/Price.config.ts +189 -0
- package/app/utils/Price/Price.ts +63 -0
- package/app/utils/Price/index.ts +12 -0
- package/app/utils/Product/Extract.ts +652 -0
- package/app/utils/Product/Product.ts +575 -0
- package/app/utils/Product/Product.type.ts +260 -0
- package/app/utils/Product/Transform.ts +382 -0
- package/app/utils/Product/index.ts +12 -0
- package/app/utils/Promise/MakeCancelable.ts +44 -0
- package/app/utils/Promise/Promise.type.ts +15 -0
- package/app/utils/Promise/index.ts +13 -0
- package/app/utils/Query/Field.ts +71 -0
- package/app/utils/Query/Fragment.ts +22 -0
- package/app/utils/Query/PrepareDocument.ts +119 -0
- package/app/utils/Query/Query.type.ts +26 -0
- package/app/utils/Query/index.ts +15 -0
- package/app/utils/Request/Config.ts +21 -0
- package/app/utils/Request/DataContainer.ts +102 -0
- package/app/utils/Request/Debounce.ts +48 -0
- package/app/utils/Request/Error.ts +31 -0
- package/app/utils/Request/Hash.ts +88 -0
- package/app/utils/Request/LowPriorityLoad.ts +32 -0
- package/app/utils/Request/LowPriorityRender.ts +55 -0
- package/app/utils/Request/Mutation.ts +25 -0
- package/app/utils/Request/Query.ts +25 -0
- package/app/utils/Request/QueryDispatcher.ts +135 -0
- package/app/utils/Request/Request.ts +310 -0
- package/app/utils/Store/Store.type.ts +26 -0
- package/app/utils/Store/index.ts +71 -0
- package/app/utils/Url/Url.ts +297 -0
- package/app/utils/Url/index.ts +12 -0
- package/app/utils/Validator/Config.ts +96 -0
- package/app/utils/Validator/Validator.ts +268 -0
- package/app/utils/Validator/Validator.type.ts +47 -0
- package/app/utils/Validator/index.ts +12 -0
- package/app/utils/Wishlist/Wishlist.ts +65 -0
- package/app/utils/Wishlist/index.ts +12 -0
- package/app/utils/client.ts +280 -0
- package/app/utils/index.ts +53 -0
- package/app/utils/normalizer.ts +23 -0
- package/app/utils/normalizers/magento.ts +29 -0
- package/app/utils/normalizers/shopify.ts +29 -0
- package/nuxt.config.ts +11 -0
- package/package.json +43 -0
- package/tsconfig.json +45 -0
|
@@ -0,0 +1,4497 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* M Framework - Flexible backend agnostic framework.
|
|
3
|
+
*
|
|
4
|
+
* Copyright © Meeovi, LTD. All rights reserved.
|
|
5
|
+
* See LICENSE for license details.
|
|
6
|
+
*
|
|
7
|
+
* @license OSL-3.0 (Open Software License ("OSL") v. 3.0)
|
|
8
|
+
* @package mframework/mframework
|
|
9
|
+
* @link https://github.com/meeovi/mframework
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export interface GQLSelectedBundleOptionValue {
|
|
13
|
+
id: number;
|
|
14
|
+
label: string;
|
|
15
|
+
price: number;
|
|
16
|
+
quantity: number;
|
|
17
|
+
uid: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface GQLSelectedCustomizableOption {
|
|
21
|
+
customizable_option_uid: string;
|
|
22
|
+
id: number;
|
|
23
|
+
is_required: boolean;
|
|
24
|
+
label: string;
|
|
25
|
+
sort_order: number;
|
|
26
|
+
type: string;
|
|
27
|
+
values: Array<GQLSelectedCustomizableOptionValue | null>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface GQLSelectedCustomizableOptionValue {
|
|
31
|
+
customizable_option_value_uid: string;
|
|
32
|
+
id: number;
|
|
33
|
+
label: string;
|
|
34
|
+
price: GQLCartItemSelectedOptionValuePrice;
|
|
35
|
+
value: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface GQLCartItemSelectedOptionValuePrice {
|
|
39
|
+
type: GQLPriceTypeEnum;
|
|
40
|
+
units: string;
|
|
41
|
+
value: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export enum GQLPriceTypeEnum {
|
|
45
|
+
FIXED = 'FIXED',
|
|
46
|
+
PERCENT = 'PERCENT',
|
|
47
|
+
DYNAMIC = 'DYNAMIC',
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface GQLSelectedDownloadableLinks {
|
|
51
|
+
id?: number;
|
|
52
|
+
label?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export enum GQLCurrencyEnum {
|
|
56
|
+
AFN = 'AFN',
|
|
57
|
+
ALL = 'ALL',
|
|
58
|
+
AZN = 'AZN',
|
|
59
|
+
DZD = 'DZD',
|
|
60
|
+
AOA = 'AOA',
|
|
61
|
+
ARS = 'ARS',
|
|
62
|
+
AMD = 'AMD',
|
|
63
|
+
AWG = 'AWG',
|
|
64
|
+
AUD = 'AUD',
|
|
65
|
+
BSD = 'BSD',
|
|
66
|
+
BHD = 'BHD',
|
|
67
|
+
BDT = 'BDT',
|
|
68
|
+
BBD = 'BBD',
|
|
69
|
+
BYN = 'BYN',
|
|
70
|
+
BZD = 'BZD',
|
|
71
|
+
BMD = 'BMD',
|
|
72
|
+
BTN = 'BTN',
|
|
73
|
+
BOB = 'BOB',
|
|
74
|
+
BAM = 'BAM',
|
|
75
|
+
BWP = 'BWP',
|
|
76
|
+
BRL = 'BRL',
|
|
77
|
+
GBP = 'GBP',
|
|
78
|
+
BND = 'BND',
|
|
79
|
+
BGN = 'BGN',
|
|
80
|
+
BUK = 'BUK',
|
|
81
|
+
BIF = 'BIF',
|
|
82
|
+
KHR = 'KHR',
|
|
83
|
+
CAD = 'CAD',
|
|
84
|
+
CVE = 'CVE',
|
|
85
|
+
CZK = 'CZK',
|
|
86
|
+
KYD = 'KYD',
|
|
87
|
+
GQE = 'GQE',
|
|
88
|
+
CLP = 'CLP',
|
|
89
|
+
CNY = 'CNY',
|
|
90
|
+
COP = 'COP',
|
|
91
|
+
KMF = 'KMF',
|
|
92
|
+
CDF = 'CDF',
|
|
93
|
+
CRC = 'CRC',
|
|
94
|
+
HRK = 'HRK',
|
|
95
|
+
CUP = 'CUP',
|
|
96
|
+
DKK = 'DKK',
|
|
97
|
+
DJF = 'DJF',
|
|
98
|
+
DOP = 'DOP',
|
|
99
|
+
XCD = 'XCD',
|
|
100
|
+
EGP = 'EGP',
|
|
101
|
+
SVC = 'SVC',
|
|
102
|
+
ERN = 'ERN',
|
|
103
|
+
EEK = 'EEK',
|
|
104
|
+
ETB = 'ETB',
|
|
105
|
+
EUR = 'EUR',
|
|
106
|
+
FKP = 'FKP',
|
|
107
|
+
FJD = 'FJD',
|
|
108
|
+
GMD = 'GMD',
|
|
109
|
+
GEK = 'GEK',
|
|
110
|
+
GEL = 'GEL',
|
|
111
|
+
GHS = 'GHS',
|
|
112
|
+
GIP = 'GIP',
|
|
113
|
+
GTQ = 'GTQ',
|
|
114
|
+
GNF = 'GNF',
|
|
115
|
+
GYD = 'GYD',
|
|
116
|
+
HTG = 'HTG',
|
|
117
|
+
HNL = 'HNL',
|
|
118
|
+
HKD = 'HKD',
|
|
119
|
+
HUF = 'HUF',
|
|
120
|
+
ISK = 'ISK',
|
|
121
|
+
INR = 'INR',
|
|
122
|
+
IDR = 'IDR',
|
|
123
|
+
IRR = 'IRR',
|
|
124
|
+
IQD = 'IQD',
|
|
125
|
+
ILS = 'ILS',
|
|
126
|
+
JMD = 'JMD',
|
|
127
|
+
JPY = 'JPY',
|
|
128
|
+
JOD = 'JOD',
|
|
129
|
+
KZT = 'KZT',
|
|
130
|
+
KES = 'KES',
|
|
131
|
+
KWD = 'KWD',
|
|
132
|
+
KGS = 'KGS',
|
|
133
|
+
LAK = 'LAK',
|
|
134
|
+
LVL = 'LVL',
|
|
135
|
+
LBP = 'LBP',
|
|
136
|
+
LSL = 'LSL',
|
|
137
|
+
LRD = 'LRD',
|
|
138
|
+
LYD = 'LYD',
|
|
139
|
+
LTL = 'LTL',
|
|
140
|
+
MOP = 'MOP',
|
|
141
|
+
MKD = 'MKD',
|
|
142
|
+
MGA = 'MGA',
|
|
143
|
+
MWK = 'MWK',
|
|
144
|
+
MYR = 'MYR',
|
|
145
|
+
MVR = 'MVR',
|
|
146
|
+
LSM = 'LSM',
|
|
147
|
+
MRO = 'MRO',
|
|
148
|
+
MUR = 'MUR',
|
|
149
|
+
MXN = 'MXN',
|
|
150
|
+
MDL = 'MDL',
|
|
151
|
+
MNT = 'MNT',
|
|
152
|
+
MAD = 'MAD',
|
|
153
|
+
MZN = 'MZN',
|
|
154
|
+
MMK = 'MMK',
|
|
155
|
+
NAD = 'NAD',
|
|
156
|
+
NPR = 'NPR',
|
|
157
|
+
ANG = 'ANG',
|
|
158
|
+
YTL = 'YTL',
|
|
159
|
+
NZD = 'NZD',
|
|
160
|
+
NIC = 'NIC',
|
|
161
|
+
NGN = 'NGN',
|
|
162
|
+
KPW = 'KPW',
|
|
163
|
+
NOK = 'NOK',
|
|
164
|
+
OMR = 'OMR',
|
|
165
|
+
PKR = 'PKR',
|
|
166
|
+
PAB = 'PAB',
|
|
167
|
+
PGK = 'PGK',
|
|
168
|
+
PYG = 'PYG',
|
|
169
|
+
PEN = 'PEN',
|
|
170
|
+
PHP = 'PHP',
|
|
171
|
+
PLN = 'PLN',
|
|
172
|
+
QAR = 'QAR',
|
|
173
|
+
RHD = 'RHD',
|
|
174
|
+
RON = 'RON',
|
|
175
|
+
RUB = 'RUB',
|
|
176
|
+
RWF = 'RWF',
|
|
177
|
+
SHP = 'SHP',
|
|
178
|
+
STD = 'STD',
|
|
179
|
+
SAR = 'SAR',
|
|
180
|
+
RSD = 'RSD',
|
|
181
|
+
SCR = 'SCR',
|
|
182
|
+
SLL = 'SLL',
|
|
183
|
+
SGD = 'SGD',
|
|
184
|
+
SKK = 'SKK',
|
|
185
|
+
SBD = 'SBD',
|
|
186
|
+
SOS = 'SOS',
|
|
187
|
+
ZAR = 'ZAR',
|
|
188
|
+
KRW = 'KRW',
|
|
189
|
+
LKR = 'LKR',
|
|
190
|
+
SDG = 'SDG',
|
|
191
|
+
SRD = 'SRD',
|
|
192
|
+
SZL = 'SZL',
|
|
193
|
+
SEK = 'SEK',
|
|
194
|
+
CHF = 'CHF',
|
|
195
|
+
SYP = 'SYP',
|
|
196
|
+
TWD = 'TWD',
|
|
197
|
+
TJS = 'TJS',
|
|
198
|
+
TZS = 'TZS',
|
|
199
|
+
THB = 'THB',
|
|
200
|
+
TOP = 'TOP',
|
|
201
|
+
TTD = 'TTD',
|
|
202
|
+
TND = 'TND',
|
|
203
|
+
TMM = 'TMM',
|
|
204
|
+
USD = 'USD',
|
|
205
|
+
UGX = 'UGX',
|
|
206
|
+
UAH = 'UAH',
|
|
207
|
+
AED = 'AED',
|
|
208
|
+
UYU = 'UYU',
|
|
209
|
+
UZS = 'UZS',
|
|
210
|
+
VUV = 'VUV',
|
|
211
|
+
VEB = 'VEB',
|
|
212
|
+
VEF = 'VEF',
|
|
213
|
+
VND = 'VND',
|
|
214
|
+
CHE = 'CHE',
|
|
215
|
+
CHW = 'CHW',
|
|
216
|
+
XOF = 'XOF',
|
|
217
|
+
WST = 'WST',
|
|
218
|
+
YER = 'YER',
|
|
219
|
+
ZMK = 'ZMK',
|
|
220
|
+
ZWD = 'ZWD',
|
|
221
|
+
TRY = 'TRY',
|
|
222
|
+
AZM = 'AZM',
|
|
223
|
+
ROL = 'ROL',
|
|
224
|
+
TRL = 'TRL',
|
|
225
|
+
XPF = 'XPF',
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface GQLEstimateShippingCostsAddress {
|
|
229
|
+
city?: string;
|
|
230
|
+
country_id?: string;
|
|
231
|
+
customer_id?: number;
|
|
232
|
+
email?: string;
|
|
233
|
+
firstname?: string;
|
|
234
|
+
lastname?: string;
|
|
235
|
+
postcode?: string;
|
|
236
|
+
region?: string;
|
|
237
|
+
region_code?: string;
|
|
238
|
+
region_id?: number;
|
|
239
|
+
same_as_billing?: number;
|
|
240
|
+
street?: Array<string | null>;
|
|
241
|
+
telephone?: string;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export interface GQLCustomerAddressInput {
|
|
245
|
+
city?: string;
|
|
246
|
+
company?: string;
|
|
247
|
+
country_code?: GQLCountryCodeEnum;
|
|
248
|
+
country_id?: GQLCountryCodeEnum;
|
|
249
|
+
custom_attributes?: Array<GQLCustomerAddressAttributeInput | null>;
|
|
250
|
+
default_billing?: boolean;
|
|
251
|
+
default_shipping?: boolean;
|
|
252
|
+
fax?: string;
|
|
253
|
+
firstname?: string;
|
|
254
|
+
lastname?: string;
|
|
255
|
+
middlename?: string;
|
|
256
|
+
postcode?: string;
|
|
257
|
+
prefix?: string;
|
|
258
|
+
region?: GQLCustomerAddressRegionInput;
|
|
259
|
+
street?: Array<string | null>;
|
|
260
|
+
suffix?: string;
|
|
261
|
+
telephone?: string;
|
|
262
|
+
vat_id?: string;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export enum GQLCountryCodeEnum {
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Afghanistan
|
|
269
|
+
*/
|
|
270
|
+
AF = 'AF',
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Åland Islands
|
|
274
|
+
*/
|
|
275
|
+
AX = 'AX',
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Albania
|
|
279
|
+
*/
|
|
280
|
+
AL = 'AL',
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Algeria
|
|
284
|
+
*/
|
|
285
|
+
DZ = 'DZ',
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* American Samoa
|
|
289
|
+
*/
|
|
290
|
+
AS = 'AS',
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Andorra
|
|
294
|
+
*/
|
|
295
|
+
AD = 'AD',
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Angola
|
|
299
|
+
*/
|
|
300
|
+
AO = 'AO',
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Anguilla
|
|
304
|
+
*/
|
|
305
|
+
AI = 'AI',
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Antarctica
|
|
309
|
+
*/
|
|
310
|
+
AQ = 'AQ',
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Antigua & Barbuda
|
|
314
|
+
*/
|
|
315
|
+
AG = 'AG',
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Argentina
|
|
319
|
+
*/
|
|
320
|
+
AR = 'AR',
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Armenia
|
|
324
|
+
*/
|
|
325
|
+
AM = 'AM',
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Aruba
|
|
329
|
+
*/
|
|
330
|
+
AW = 'AW',
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Australia
|
|
334
|
+
*/
|
|
335
|
+
AU = 'AU',
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Austria
|
|
339
|
+
*/
|
|
340
|
+
AT = 'AT',
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Azerbaijan
|
|
344
|
+
*/
|
|
345
|
+
AZ = 'AZ',
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Bahamas
|
|
349
|
+
*/
|
|
350
|
+
BS = 'BS',
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Bahrain
|
|
354
|
+
*/
|
|
355
|
+
BH = 'BH',
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Bangladesh
|
|
359
|
+
*/
|
|
360
|
+
BD = 'BD',
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Barbados
|
|
364
|
+
*/
|
|
365
|
+
BB = 'BB',
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Belarus
|
|
369
|
+
*/
|
|
370
|
+
BY = 'BY',
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Belgium
|
|
374
|
+
*/
|
|
375
|
+
BE = 'BE',
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Belize
|
|
379
|
+
*/
|
|
380
|
+
BZ = 'BZ',
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Benin
|
|
384
|
+
*/
|
|
385
|
+
BJ = 'BJ',
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Bermuda
|
|
389
|
+
*/
|
|
390
|
+
BM = 'BM',
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Bhutan
|
|
394
|
+
*/
|
|
395
|
+
BT = 'BT',
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Bolivia
|
|
399
|
+
*/
|
|
400
|
+
BO = 'BO',
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Bosnia & Herzegovina
|
|
404
|
+
*/
|
|
405
|
+
BA = 'BA',
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Botswana
|
|
409
|
+
*/
|
|
410
|
+
BW = 'BW',
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Bouvet Island
|
|
414
|
+
*/
|
|
415
|
+
BV = 'BV',
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Brazil
|
|
419
|
+
*/
|
|
420
|
+
BR = 'BR',
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* British Indian Ocean Territory
|
|
424
|
+
*/
|
|
425
|
+
IO = 'IO',
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* British Virgin Islands
|
|
429
|
+
*/
|
|
430
|
+
VG = 'VG',
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Brunei
|
|
434
|
+
*/
|
|
435
|
+
BN = 'BN',
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Bulgaria
|
|
439
|
+
*/
|
|
440
|
+
BG = 'BG',
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Burkina Faso
|
|
444
|
+
*/
|
|
445
|
+
BF = 'BF',
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Burundi
|
|
449
|
+
*/
|
|
450
|
+
BI = 'BI',
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Cambodia
|
|
454
|
+
*/
|
|
455
|
+
KH = 'KH',
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Cameroon
|
|
459
|
+
*/
|
|
460
|
+
CM = 'CM',
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Canada
|
|
464
|
+
*/
|
|
465
|
+
CA = 'CA',
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Cape Verde
|
|
469
|
+
*/
|
|
470
|
+
CV = 'CV',
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Cayman Islands
|
|
474
|
+
*/
|
|
475
|
+
KY = 'KY',
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Central African Republic
|
|
479
|
+
*/
|
|
480
|
+
CF = 'CF',
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Chad
|
|
484
|
+
*/
|
|
485
|
+
TD = 'TD',
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Chile
|
|
489
|
+
*/
|
|
490
|
+
CL = 'CL',
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* China
|
|
494
|
+
*/
|
|
495
|
+
CN = 'CN',
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Christmas Island
|
|
499
|
+
*/
|
|
500
|
+
CX = 'CX',
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Cocos (Keeling) Islands
|
|
504
|
+
*/
|
|
505
|
+
CC = 'CC',
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Colombia
|
|
509
|
+
*/
|
|
510
|
+
CO = 'CO',
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Comoros
|
|
514
|
+
*/
|
|
515
|
+
KM = 'KM',
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Congo-Brazzaville
|
|
519
|
+
*/
|
|
520
|
+
CG = 'CG',
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Congo-Kinshasa
|
|
524
|
+
*/
|
|
525
|
+
CD = 'CD',
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Cook Islands
|
|
529
|
+
*/
|
|
530
|
+
CK = 'CK',
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Costa Rica
|
|
534
|
+
*/
|
|
535
|
+
CR = 'CR',
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Côte d’Ivoire
|
|
539
|
+
*/
|
|
540
|
+
CI = 'CI',
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Croatia
|
|
544
|
+
*/
|
|
545
|
+
HR = 'HR',
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Cuba
|
|
549
|
+
*/
|
|
550
|
+
CU = 'CU',
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Cyprus
|
|
554
|
+
*/
|
|
555
|
+
CY = 'CY',
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Czech Republic
|
|
559
|
+
*/
|
|
560
|
+
CZ = 'CZ',
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Denmark
|
|
564
|
+
*/
|
|
565
|
+
DK = 'DK',
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Djibouti
|
|
569
|
+
*/
|
|
570
|
+
DJ = 'DJ',
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Dominica
|
|
574
|
+
*/
|
|
575
|
+
DM = 'DM',
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Dominican Republic
|
|
579
|
+
*/
|
|
580
|
+
DO = 'DO',
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Ecuador
|
|
584
|
+
*/
|
|
585
|
+
EC = 'EC',
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Egypt
|
|
589
|
+
*/
|
|
590
|
+
EG = 'EG',
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* El Salvador
|
|
594
|
+
*/
|
|
595
|
+
SV = 'SV',
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Equatorial Guinea
|
|
599
|
+
*/
|
|
600
|
+
GQ = 'GQ',
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Eritrea
|
|
604
|
+
*/
|
|
605
|
+
ER = 'ER',
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* Estonia
|
|
609
|
+
*/
|
|
610
|
+
EE = 'EE',
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* Ethiopia
|
|
614
|
+
*/
|
|
615
|
+
ET = 'ET',
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Falkland Islands
|
|
619
|
+
*/
|
|
620
|
+
FK = 'FK',
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Faroe Islands
|
|
624
|
+
*/
|
|
625
|
+
FO = 'FO',
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Fiji
|
|
629
|
+
*/
|
|
630
|
+
FJ = 'FJ',
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Finland
|
|
634
|
+
*/
|
|
635
|
+
FI = 'FI',
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* France
|
|
639
|
+
*/
|
|
640
|
+
FR = 'FR',
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* French Guiana
|
|
644
|
+
*/
|
|
645
|
+
GF = 'GF',
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* French Polynesia
|
|
649
|
+
*/
|
|
650
|
+
PF = 'PF',
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* French Southern Territories
|
|
654
|
+
*/
|
|
655
|
+
TF = 'TF',
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Gabon
|
|
659
|
+
*/
|
|
660
|
+
GA = 'GA',
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Gambia
|
|
664
|
+
*/
|
|
665
|
+
GM = 'GM',
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* Georgia
|
|
669
|
+
*/
|
|
670
|
+
GE = 'GE',
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Germany
|
|
674
|
+
*/
|
|
675
|
+
DE = 'DE',
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* Ghana
|
|
679
|
+
*/
|
|
680
|
+
GH = 'GH',
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Gibraltar
|
|
684
|
+
*/
|
|
685
|
+
GI = 'GI',
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Greece
|
|
689
|
+
*/
|
|
690
|
+
GR = 'GR',
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Greenland
|
|
694
|
+
*/
|
|
695
|
+
GL = 'GL',
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Grenada
|
|
699
|
+
*/
|
|
700
|
+
GD = 'GD',
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* Guadeloupe
|
|
704
|
+
*/
|
|
705
|
+
GP = 'GP',
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Guam
|
|
709
|
+
*/
|
|
710
|
+
GU = 'GU',
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Guatemala
|
|
714
|
+
*/
|
|
715
|
+
GT = 'GT',
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Guernsey
|
|
719
|
+
*/
|
|
720
|
+
GG = 'GG',
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Guinea
|
|
724
|
+
*/
|
|
725
|
+
GN = 'GN',
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Guinea-Bissau
|
|
729
|
+
*/
|
|
730
|
+
GW = 'GW',
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Guyana
|
|
734
|
+
*/
|
|
735
|
+
GY = 'GY',
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Haiti
|
|
739
|
+
*/
|
|
740
|
+
HT = 'HT',
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Heard & McDonald Islands
|
|
744
|
+
*/
|
|
745
|
+
HM = 'HM',
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* Honduras
|
|
749
|
+
*/
|
|
750
|
+
HN = 'HN',
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Hong Kong SAR China
|
|
754
|
+
*/
|
|
755
|
+
HK = 'HK',
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Hungary
|
|
759
|
+
*/
|
|
760
|
+
HU = 'HU',
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* Iceland
|
|
764
|
+
*/
|
|
765
|
+
IS = 'IS',
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* India
|
|
769
|
+
*/
|
|
770
|
+
IN = 'IN',
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Indonesia
|
|
774
|
+
*/
|
|
775
|
+
ID = 'ID',
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Iran
|
|
779
|
+
*/
|
|
780
|
+
IR = 'IR',
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Iraq
|
|
784
|
+
*/
|
|
785
|
+
IQ = 'IQ',
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* Ireland
|
|
789
|
+
*/
|
|
790
|
+
IE = 'IE',
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Isle of Man
|
|
794
|
+
*/
|
|
795
|
+
IM = 'IM',
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* Israel
|
|
799
|
+
*/
|
|
800
|
+
IL = 'IL',
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Italy
|
|
804
|
+
*/
|
|
805
|
+
IT = 'IT',
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* Jamaica
|
|
809
|
+
*/
|
|
810
|
+
JM = 'JM',
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Japan
|
|
814
|
+
*/
|
|
815
|
+
JP = 'JP',
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* Jersey
|
|
819
|
+
*/
|
|
820
|
+
JE = 'JE',
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Jordan
|
|
824
|
+
*/
|
|
825
|
+
JO = 'JO',
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Kazakhstan
|
|
829
|
+
*/
|
|
830
|
+
KZ = 'KZ',
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* Kenya
|
|
834
|
+
*/
|
|
835
|
+
KE = 'KE',
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* Kiribati
|
|
839
|
+
*/
|
|
840
|
+
KI = 'KI',
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Kuwait
|
|
844
|
+
*/
|
|
845
|
+
KW = 'KW',
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* Kyrgyzstan
|
|
849
|
+
*/
|
|
850
|
+
KG = 'KG',
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* Laos
|
|
854
|
+
*/
|
|
855
|
+
LA = 'LA',
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* Latvia
|
|
859
|
+
*/
|
|
860
|
+
LV = 'LV',
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* Lebanon
|
|
864
|
+
*/
|
|
865
|
+
LB = 'LB',
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Lesotho
|
|
869
|
+
*/
|
|
870
|
+
LS = 'LS',
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* Liberia
|
|
874
|
+
*/
|
|
875
|
+
LR = 'LR',
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
* Libya
|
|
879
|
+
*/
|
|
880
|
+
LY = 'LY',
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* Liechtenstein
|
|
884
|
+
*/
|
|
885
|
+
LI = 'LI',
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* Lithuania
|
|
889
|
+
*/
|
|
890
|
+
LT = 'LT',
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* Luxembourg
|
|
894
|
+
*/
|
|
895
|
+
LU = 'LU',
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* Macau SAR China
|
|
899
|
+
*/
|
|
900
|
+
MO = 'MO',
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* Macedonia
|
|
904
|
+
*/
|
|
905
|
+
MK = 'MK',
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Madagascar
|
|
909
|
+
*/
|
|
910
|
+
MG = 'MG',
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* Malawi
|
|
914
|
+
*/
|
|
915
|
+
MW = 'MW',
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Malaysia
|
|
919
|
+
*/
|
|
920
|
+
MY = 'MY',
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* Maldives
|
|
924
|
+
*/
|
|
925
|
+
MV = 'MV',
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* Mali
|
|
929
|
+
*/
|
|
930
|
+
ML = 'ML',
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* Malta
|
|
934
|
+
*/
|
|
935
|
+
MT = 'MT',
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* Marshall Islands
|
|
939
|
+
*/
|
|
940
|
+
MH = 'MH',
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* Martinique
|
|
944
|
+
*/
|
|
945
|
+
MQ = 'MQ',
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* Mauritania
|
|
949
|
+
*/
|
|
950
|
+
MR = 'MR',
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* Mauritius
|
|
954
|
+
*/
|
|
955
|
+
MU = 'MU',
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* Mayotte
|
|
959
|
+
*/
|
|
960
|
+
YT = 'YT',
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* Mexico
|
|
964
|
+
*/
|
|
965
|
+
MX = 'MX',
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* Micronesia
|
|
969
|
+
*/
|
|
970
|
+
FM = 'FM',
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* Moldova
|
|
974
|
+
*/
|
|
975
|
+
MD = 'MD',
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* Monaco
|
|
979
|
+
*/
|
|
980
|
+
MC = 'MC',
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* Mongolia
|
|
984
|
+
*/
|
|
985
|
+
MN = 'MN',
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Montenegro
|
|
989
|
+
*/
|
|
990
|
+
ME = 'ME',
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* Montserrat
|
|
994
|
+
*/
|
|
995
|
+
MS = 'MS',
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* Morocco
|
|
999
|
+
*/
|
|
1000
|
+
MA = 'MA',
|
|
1001
|
+
|
|
1002
|
+
/**
|
|
1003
|
+
* Mozambique
|
|
1004
|
+
*/
|
|
1005
|
+
MZ = 'MZ',
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Myanmar (Burma)
|
|
1009
|
+
*/
|
|
1010
|
+
MM = 'MM',
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Namibia
|
|
1014
|
+
*/
|
|
1015
|
+
NA = 'NA',
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* Nauru
|
|
1019
|
+
*/
|
|
1020
|
+
NR = 'NR',
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Nepal
|
|
1024
|
+
*/
|
|
1025
|
+
NP = 'NP',
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Netherlands
|
|
1029
|
+
*/
|
|
1030
|
+
NL = 'NL',
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Netherlands Antilles
|
|
1034
|
+
*/
|
|
1035
|
+
AN = 'AN',
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* New Caledonia
|
|
1039
|
+
*/
|
|
1040
|
+
NC = 'NC',
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* New Zealand
|
|
1044
|
+
*/
|
|
1045
|
+
NZ = 'NZ',
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* Nicaragua
|
|
1049
|
+
*/
|
|
1050
|
+
NI = 'NI',
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* Niger
|
|
1054
|
+
*/
|
|
1055
|
+
NE = 'NE',
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* Nigeria
|
|
1059
|
+
*/
|
|
1060
|
+
NG = 'NG',
|
|
1061
|
+
|
|
1062
|
+
/**
|
|
1063
|
+
* Niue
|
|
1064
|
+
*/
|
|
1065
|
+
NU = 'NU',
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* Norfolk Island
|
|
1069
|
+
*/
|
|
1070
|
+
NF = 'NF',
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Northern Mariana Islands
|
|
1074
|
+
*/
|
|
1075
|
+
MP = 'MP',
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* North Korea
|
|
1079
|
+
*/
|
|
1080
|
+
KP = 'KP',
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* Norway
|
|
1084
|
+
*/
|
|
1085
|
+
NO = 'NO',
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* Oman
|
|
1089
|
+
*/
|
|
1090
|
+
OM = 'OM',
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* Pakistan
|
|
1094
|
+
*/
|
|
1095
|
+
PK = 'PK',
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Palau
|
|
1099
|
+
*/
|
|
1100
|
+
PW = 'PW',
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* Palestinian Territories
|
|
1104
|
+
*/
|
|
1105
|
+
PS = 'PS',
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* Panama
|
|
1109
|
+
*/
|
|
1110
|
+
PA = 'PA',
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* Papua New Guinea
|
|
1114
|
+
*/
|
|
1115
|
+
PG = 'PG',
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* Paraguay
|
|
1119
|
+
*/
|
|
1120
|
+
PY = 'PY',
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* Peru
|
|
1124
|
+
*/
|
|
1125
|
+
PE = 'PE',
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* Philippines
|
|
1129
|
+
*/
|
|
1130
|
+
PH = 'PH',
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* Pitcairn Islands
|
|
1134
|
+
*/
|
|
1135
|
+
PN = 'PN',
|
|
1136
|
+
|
|
1137
|
+
/**
|
|
1138
|
+
* Poland
|
|
1139
|
+
*/
|
|
1140
|
+
PL = 'PL',
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Portugal
|
|
1144
|
+
*/
|
|
1145
|
+
PT = 'PT',
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* Qatar
|
|
1149
|
+
*/
|
|
1150
|
+
QA = 'QA',
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* Réunion
|
|
1154
|
+
*/
|
|
1155
|
+
RE = 'RE',
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* Romania
|
|
1159
|
+
*/
|
|
1160
|
+
RO = 'RO',
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Russia
|
|
1164
|
+
*/
|
|
1165
|
+
RU = 'RU',
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* Rwanda
|
|
1169
|
+
*/
|
|
1170
|
+
RW = 'RW',
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* Samoa
|
|
1174
|
+
*/
|
|
1175
|
+
WS = 'WS',
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* San Marino
|
|
1179
|
+
*/
|
|
1180
|
+
SM = 'SM',
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* São Tomé & Príncipe
|
|
1184
|
+
*/
|
|
1185
|
+
ST = 'ST',
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* Saudi Arabia
|
|
1189
|
+
*/
|
|
1190
|
+
SA = 'SA',
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* Senegal
|
|
1194
|
+
*/
|
|
1195
|
+
SN = 'SN',
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* Serbia
|
|
1199
|
+
*/
|
|
1200
|
+
RS = 'RS',
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Seychelles
|
|
1204
|
+
*/
|
|
1205
|
+
SC = 'SC',
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* Sierra Leone
|
|
1209
|
+
*/
|
|
1210
|
+
SL = 'SL',
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* Singapore
|
|
1214
|
+
*/
|
|
1215
|
+
SG = 'SG',
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* Slovakia
|
|
1219
|
+
*/
|
|
1220
|
+
SK = 'SK',
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* Slovenia
|
|
1224
|
+
*/
|
|
1225
|
+
SI = 'SI',
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* Solomon Islands
|
|
1229
|
+
*/
|
|
1230
|
+
SB = 'SB',
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* Somalia
|
|
1234
|
+
*/
|
|
1235
|
+
SO = 'SO',
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* South Africa
|
|
1239
|
+
*/
|
|
1240
|
+
ZA = 'ZA',
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* South Georgia & South Sandwich Islands
|
|
1244
|
+
*/
|
|
1245
|
+
GS = 'GS',
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* South Korea
|
|
1249
|
+
*/
|
|
1250
|
+
KR = 'KR',
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
* Spain
|
|
1254
|
+
*/
|
|
1255
|
+
ES = 'ES',
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* Sri Lanka
|
|
1259
|
+
*/
|
|
1260
|
+
LK = 'LK',
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* St. Barthélemy
|
|
1264
|
+
*/
|
|
1265
|
+
BL = 'BL',
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* St. Helena
|
|
1269
|
+
*/
|
|
1270
|
+
SH = 'SH',
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* St. Kitts & Nevis
|
|
1274
|
+
*/
|
|
1275
|
+
KN = 'KN',
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* St. Lucia
|
|
1279
|
+
*/
|
|
1280
|
+
LC = 'LC',
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* St. Martin
|
|
1284
|
+
*/
|
|
1285
|
+
MF = 'MF',
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* St. Pierre & Miquelon
|
|
1289
|
+
*/
|
|
1290
|
+
PM = 'PM',
|
|
1291
|
+
|
|
1292
|
+
/**
|
|
1293
|
+
* St. Vincent & Grenadines
|
|
1294
|
+
*/
|
|
1295
|
+
VC = 'VC',
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* Sudan
|
|
1299
|
+
*/
|
|
1300
|
+
SD = 'SD',
|
|
1301
|
+
|
|
1302
|
+
/**
|
|
1303
|
+
* Suriname
|
|
1304
|
+
*/
|
|
1305
|
+
SR = 'SR',
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* Svalbard & Jan Mayen
|
|
1309
|
+
*/
|
|
1310
|
+
SJ = 'SJ',
|
|
1311
|
+
|
|
1312
|
+
/**
|
|
1313
|
+
* Swaziland
|
|
1314
|
+
*/
|
|
1315
|
+
SZ = 'SZ',
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
* Sweden
|
|
1319
|
+
*/
|
|
1320
|
+
SE = 'SE',
|
|
1321
|
+
|
|
1322
|
+
/**
|
|
1323
|
+
* Switzerland
|
|
1324
|
+
*/
|
|
1325
|
+
CH = 'CH',
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* Syria
|
|
1329
|
+
*/
|
|
1330
|
+
SY = 'SY',
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Taiwan
|
|
1334
|
+
*/
|
|
1335
|
+
TW = 'TW',
|
|
1336
|
+
|
|
1337
|
+
/**
|
|
1338
|
+
* Tajikistan
|
|
1339
|
+
*/
|
|
1340
|
+
TJ = 'TJ',
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* Tanzania
|
|
1344
|
+
*/
|
|
1345
|
+
TZ = 'TZ',
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* Thailand
|
|
1349
|
+
*/
|
|
1350
|
+
TH = 'TH',
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* Timor-Leste
|
|
1354
|
+
*/
|
|
1355
|
+
TL = 'TL',
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* Togo
|
|
1359
|
+
*/
|
|
1360
|
+
TG = 'TG',
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* Tokelau
|
|
1364
|
+
*/
|
|
1365
|
+
TK = 'TK',
|
|
1366
|
+
|
|
1367
|
+
/**
|
|
1368
|
+
* Tonga
|
|
1369
|
+
*/
|
|
1370
|
+
TO = 'TO',
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* Trinidad & Tobago
|
|
1374
|
+
*/
|
|
1375
|
+
TT = 'TT',
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
* Tunisia
|
|
1379
|
+
*/
|
|
1380
|
+
TN = 'TN',
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* Turkey
|
|
1384
|
+
*/
|
|
1385
|
+
TR = 'TR',
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* Turkmenistan
|
|
1389
|
+
*/
|
|
1390
|
+
TM = 'TM',
|
|
1391
|
+
|
|
1392
|
+
/**
|
|
1393
|
+
* Turks & Caicos Islands
|
|
1394
|
+
*/
|
|
1395
|
+
TC = 'TC',
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* Tuvalu
|
|
1399
|
+
*/
|
|
1400
|
+
TV = 'TV',
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* Uganda
|
|
1404
|
+
*/
|
|
1405
|
+
UG = 'UG',
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* Ukraine
|
|
1409
|
+
*/
|
|
1410
|
+
UA = 'UA',
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* United Arab Emirates
|
|
1414
|
+
*/
|
|
1415
|
+
AE = 'AE',
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
* United Kingdom
|
|
1419
|
+
*/
|
|
1420
|
+
GB = 'GB',
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* United States
|
|
1424
|
+
*/
|
|
1425
|
+
US = 'US',
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
* Uruguay
|
|
1429
|
+
*/
|
|
1430
|
+
UY = 'UY',
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* U.S. Outlying Islands
|
|
1434
|
+
*/
|
|
1435
|
+
UM = 'UM',
|
|
1436
|
+
|
|
1437
|
+
/**
|
|
1438
|
+
* U.S. Virgin Islands
|
|
1439
|
+
*/
|
|
1440
|
+
VI = 'VI',
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* Uzbekistan
|
|
1444
|
+
*/
|
|
1445
|
+
UZ = 'UZ',
|
|
1446
|
+
|
|
1447
|
+
/**
|
|
1448
|
+
* Vanuatu
|
|
1449
|
+
*/
|
|
1450
|
+
VU = 'VU',
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
* Vatican City
|
|
1454
|
+
*/
|
|
1455
|
+
VA = 'VA',
|
|
1456
|
+
|
|
1457
|
+
/**
|
|
1458
|
+
* Venezuela
|
|
1459
|
+
*/
|
|
1460
|
+
VE = 'VE',
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* Vietnam
|
|
1464
|
+
*/
|
|
1465
|
+
VN = 'VN',
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* Wallis & Futuna
|
|
1469
|
+
*/
|
|
1470
|
+
WF = 'WF',
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* Western Sahara
|
|
1474
|
+
*/
|
|
1475
|
+
EH = 'EH',
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* Yemen
|
|
1479
|
+
*/
|
|
1480
|
+
YE = 'YE',
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* Zambia
|
|
1484
|
+
*/
|
|
1485
|
+
ZM = 'ZM',
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* Zimbabwe
|
|
1489
|
+
*/
|
|
1490
|
+
ZW = 'ZW',
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
export interface GQLCustomerAddressAttributeInput {
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* Attribute code
|
|
1497
|
+
*/
|
|
1498
|
+
attribute_code: string;
|
|
1499
|
+
|
|
1500
|
+
/**
|
|
1501
|
+
* Attribute value
|
|
1502
|
+
*/
|
|
1503
|
+
value: string;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
export interface GQLCustomerAddressRegionInput {
|
|
1507
|
+
|
|
1508
|
+
/**
|
|
1509
|
+
* The state or province name
|
|
1510
|
+
*/
|
|
1511
|
+
region?: string;
|
|
1512
|
+
|
|
1513
|
+
/**
|
|
1514
|
+
* The address region code
|
|
1515
|
+
*/
|
|
1516
|
+
region_code?: string;
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* The unique ID for a pre-defined region
|
|
1520
|
+
*/
|
|
1521
|
+
region_id?: number;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
export interface GQLCustomerUpdateInput {
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* Indicates whether the customer has enabled remote shopping assistance
|
|
1528
|
+
*/
|
|
1529
|
+
allow_remote_shopping_assistance?: boolean;
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* The customer's date of birth
|
|
1533
|
+
*/
|
|
1534
|
+
date_of_birth?: string;
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* Deprecated: Use `date_of_birth` instead
|
|
1538
|
+
*/
|
|
1539
|
+
dob?: string;
|
|
1540
|
+
|
|
1541
|
+
/**
|
|
1542
|
+
* The customer's first name
|
|
1543
|
+
*/
|
|
1544
|
+
firstname?: string;
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* The customer's gender (Male - 1, Female - 2)
|
|
1548
|
+
*/
|
|
1549
|
+
gender?: number;
|
|
1550
|
+
|
|
1551
|
+
/**
|
|
1552
|
+
* Indicates whether the customer is subscribed to the company's newsletter
|
|
1553
|
+
*/
|
|
1554
|
+
is_subscribed?: boolean;
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* The customer's family name
|
|
1558
|
+
*/
|
|
1559
|
+
lastname?: string;
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* The customer's middle name
|
|
1563
|
+
*/
|
|
1564
|
+
middlename?: string;
|
|
1565
|
+
|
|
1566
|
+
/**
|
|
1567
|
+
* An honorific, such as Dr., Mr., or Mrs.
|
|
1568
|
+
*/
|
|
1569
|
+
prefix?: string;
|
|
1570
|
+
|
|
1571
|
+
/**
|
|
1572
|
+
* A value such as Sr., Jr., or III
|
|
1573
|
+
*/
|
|
1574
|
+
suffix?: string;
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* The customer's Tax/VAT number (for corporate customers)
|
|
1578
|
+
*/
|
|
1579
|
+
taxvat?: string;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
export enum GQLProductStockStatus {
|
|
1583
|
+
IN_STOCK = 'IN_STOCK',
|
|
1584
|
+
OUT_OF_STOCK = 'OUT_OF_STOCK',
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
export interface GQLWishlistItemInput {
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* User description of wish list item
|
|
1591
|
+
*/
|
|
1592
|
+
description?: string;
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* An array of options that the customer entered
|
|
1596
|
+
*/
|
|
1597
|
+
entered_options?: Array<GQLEnteredOptionInput | null>;
|
|
1598
|
+
|
|
1599
|
+
/**
|
|
1600
|
+
* Id of the wishlist item
|
|
1601
|
+
*/
|
|
1602
|
+
item_id?: string;
|
|
1603
|
+
|
|
1604
|
+
/**
|
|
1605
|
+
* For complex product types, the SKU of the parent product
|
|
1606
|
+
*/
|
|
1607
|
+
parent_sku?: string;
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* Configurable product options
|
|
1611
|
+
*/
|
|
1612
|
+
product_option?: GQLProductOptionInput;
|
|
1613
|
+
|
|
1614
|
+
/**
|
|
1615
|
+
* Quantity of the product
|
|
1616
|
+
*/
|
|
1617
|
+
quantity?: number;
|
|
1618
|
+
|
|
1619
|
+
/**
|
|
1620
|
+
* An array of strings corresponding to options the customer selected
|
|
1621
|
+
*/
|
|
1622
|
+
selected_options?: Array<string | null>;
|
|
1623
|
+
|
|
1624
|
+
/**
|
|
1625
|
+
* Sku of the product
|
|
1626
|
+
*/
|
|
1627
|
+
sku?: string;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
export interface GQLEnteredOptionInput {
|
|
1631
|
+
|
|
1632
|
+
/**
|
|
1633
|
+
* The unique ID for a `CustomizableFieldOption`, `CustomizableFileOption`,
|
|
1634
|
+
* `CustomizableAreaOption`, etc. of `CustomizableOptionInterface` objects
|
|
1635
|
+
*/
|
|
1636
|
+
uid: string;
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
* Text the customer entered
|
|
1640
|
+
*/
|
|
1641
|
+
value: string;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
export interface GQLProductOptionInput {
|
|
1645
|
+
buy_request?: string;
|
|
1646
|
+
extension_attributes?: GQLExtensionsAttributeInput;
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
export interface GQLExtensionsAttributeInput {
|
|
1650
|
+
bundle_options?: Array<GQLBundleOptionInput | null>;
|
|
1651
|
+
configurable_item_options?: Array<GQLConfigurableItemOptionsInput | null>;
|
|
1652
|
+
customizable_options?: Array<GQLCustomizableOptionsInput | null>;
|
|
1653
|
+
customizable_options_multi?: Array<GQLCustomizableOptionsInput | null>;
|
|
1654
|
+
downloadable_product_links?: Array<GQLDownloadableProductLinksInput | null>;
|
|
1655
|
+
grouped_product_options?: Array<GQLCustomizableOptionsInput | null>;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
export interface GQLConfigurableItemOptionsInput {
|
|
1659
|
+
option_id?: string;
|
|
1660
|
+
option_value?: number;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
export interface GQLBundleOptionInput {
|
|
1664
|
+
id: number;
|
|
1665
|
+
quantity: number;
|
|
1666
|
+
value: Array<string | null>;
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
export interface GQLCustomizableOptionsInput {
|
|
1670
|
+
option_filename?: string;
|
|
1671
|
+
option_id: string;
|
|
1672
|
+
option_value?: string;
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
export interface GQLDownloadableProductLinksInput {
|
|
1676
|
+
link_id?: number;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
export interface GQLShareWishlistInput {
|
|
1680
|
+
|
|
1681
|
+
/**
|
|
1682
|
+
* Receiver emails
|
|
1683
|
+
*/
|
|
1684
|
+
emails: Array<string | null>;
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* Sharing message
|
|
1688
|
+
*/
|
|
1689
|
+
message?: string;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
export interface GQLWishlistItemUpdateInput {
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* Customer-entered comments about the item
|
|
1696
|
+
*/
|
|
1697
|
+
description?: string;
|
|
1698
|
+
|
|
1699
|
+
/**
|
|
1700
|
+
* An array of options that the customer entered
|
|
1701
|
+
*/
|
|
1702
|
+
entered_options?: Array<GQLEnteredOptionInput | null>;
|
|
1703
|
+
|
|
1704
|
+
/**
|
|
1705
|
+
* The new amount or number of this item
|
|
1706
|
+
*/
|
|
1707
|
+
quantity?: number;
|
|
1708
|
+
|
|
1709
|
+
/**
|
|
1710
|
+
* An array of strings corresponding to options the customer selected
|
|
1711
|
+
*/
|
|
1712
|
+
selected_options?: Array<string | null>;
|
|
1713
|
+
|
|
1714
|
+
/**
|
|
1715
|
+
* The unique ID for a `WishlistItemInterface` object
|
|
1716
|
+
*/
|
|
1717
|
+
wishlist_item_id: string;
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
export interface GQLCartItemInput {
|
|
1721
|
+
|
|
1722
|
+
/**
|
|
1723
|
+
* An array of entered options for the base product, such as personalization text
|
|
1724
|
+
*/
|
|
1725
|
+
entered_options?: Array<GQLEnteredOptionInput | null>;
|
|
1726
|
+
id?: GQLCartItemId;
|
|
1727
|
+
item_id?: number;
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* For child products, the SKU of its parent product
|
|
1731
|
+
*/
|
|
1732
|
+
parent_sku?: string;
|
|
1733
|
+
product_option?: GQLProductOptionInput;
|
|
1734
|
+
product_type?: string;
|
|
1735
|
+
quantity: number;
|
|
1736
|
+
quote_id?: string;
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* The selected options for the base product, such as color or size with unique
|
|
1740
|
+
* ID for a `CustomizableRadioOption`, `CustomizableDropDownOption`,
|
|
1741
|
+
* `ConfigurableProductOptionsValues`, etc. objects
|
|
1742
|
+
*/
|
|
1743
|
+
selected_options?: Array<string | null>;
|
|
1744
|
+
sku?: string;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
export interface GQLCartItemId {
|
|
1748
|
+
item_id?: number;
|
|
1749
|
+
sku?: string;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
export enum GQLCartUserInputErrorType {
|
|
1753
|
+
PRODUCT_NOT_FOUND = 'PRODUCT_NOT_FOUND',
|
|
1754
|
+
NOT_SALABLE = 'NOT_SALABLE',
|
|
1755
|
+
INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK',
|
|
1756
|
+
UNDEFINED = 'UNDEFINED',
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
export interface GQLUpdateCartItemsInput {
|
|
1760
|
+
cart_id: string;
|
|
1761
|
+
cart_items: Array<GQLCartItemUpdateInput | null>;
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
export interface GQLCartItemUpdateInput {
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
* Deprecated. Use `cart_item_uid` instead.
|
|
1768
|
+
*/
|
|
1769
|
+
cart_item_id?: number;
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* The unique ID for a `CartItemInterface` object
|
|
1773
|
+
*/
|
|
1774
|
+
cart_item_uid?: string;
|
|
1775
|
+
customizable_options?: Array<GQLCustomizableOptionInput | null>;
|
|
1776
|
+
|
|
1777
|
+
/**
|
|
1778
|
+
* Gift message details for the cart item
|
|
1779
|
+
*/
|
|
1780
|
+
gift_message?: GQLGiftMessageInput;
|
|
1781
|
+
quantity?: number;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
export interface GQLCustomizableOptionInput {
|
|
1785
|
+
|
|
1786
|
+
/**
|
|
1787
|
+
* The customizable option id of the product
|
|
1788
|
+
*/
|
|
1789
|
+
id?: number;
|
|
1790
|
+
|
|
1791
|
+
/**
|
|
1792
|
+
* The string value of the option
|
|
1793
|
+
*/
|
|
1794
|
+
value_string: string;
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
export interface GQLGiftMessageInput {
|
|
1798
|
+
|
|
1799
|
+
/**
|
|
1800
|
+
* Sender name
|
|
1801
|
+
*/
|
|
1802
|
+
from: string;
|
|
1803
|
+
|
|
1804
|
+
/**
|
|
1805
|
+
* Gift message text
|
|
1806
|
+
*/
|
|
1807
|
+
message: string;
|
|
1808
|
+
|
|
1809
|
+
/**
|
|
1810
|
+
* Recipient name
|
|
1811
|
+
*/
|
|
1812
|
+
to: string;
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
export interface GQLSSetBillingAddressOnCartInput {
|
|
1816
|
+
billing_address: GQLBillingAddressInput;
|
|
1817
|
+
cart_id?: string;
|
|
1818
|
+
same_as_shipping?: boolean;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
export interface GQLBillingAddressInput {
|
|
1822
|
+
address?: GQLCartAddressInput;
|
|
1823
|
+
customer_address_id?: number;
|
|
1824
|
+
|
|
1825
|
+
/**
|
|
1826
|
+
* Set billing address same as shipping
|
|
1827
|
+
*/
|
|
1828
|
+
same_as_shipping?: boolean;
|
|
1829
|
+
|
|
1830
|
+
/**
|
|
1831
|
+
* Deprecated: use `same_as_shipping` field instead
|
|
1832
|
+
*/
|
|
1833
|
+
use_for_shipping?: boolean;
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
export interface GQLCartAddressInput {
|
|
1837
|
+
city: string;
|
|
1838
|
+
company?: string;
|
|
1839
|
+
country_code: string;
|
|
1840
|
+
firstname: string;
|
|
1841
|
+
lastname: string;
|
|
1842
|
+
postcode?: string;
|
|
1843
|
+
region?: string;
|
|
1844
|
+
region_id?: number;
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* Determines whether to save the address in the customer's address book. The default value is true
|
|
1848
|
+
*/
|
|
1849
|
+
save_in_address_book?: boolean;
|
|
1850
|
+
street: Array<string | null>;
|
|
1851
|
+
telephone: string;
|
|
1852
|
+
vat_id?: string;
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
export interface GQLSSetPaymentMethodOnCartInput {
|
|
1856
|
+
cart_id?: string;
|
|
1857
|
+
payment_method: GQLPaymentMethodInput;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
export interface GQLPaymentMethodInput {
|
|
1861
|
+
additional_data?: GQLPaymentMethodAdditionalData;
|
|
1862
|
+
braintree?: GQLBraintreeInput;
|
|
1863
|
+
braintree_cc_vault?: GQLBraintreeCcVaultInput;
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
* Payment method code
|
|
1867
|
+
*/
|
|
1868
|
+
code: string;
|
|
1869
|
+
|
|
1870
|
+
/**
|
|
1871
|
+
* Required input for PayPal Hosted pro payments
|
|
1872
|
+
*/
|
|
1873
|
+
hosted_pro?: GQLHostedProInput;
|
|
1874
|
+
klarna?: GQLKlarnaInput;
|
|
1875
|
+
klarna_kp?: GQLKlarnaInput;
|
|
1876
|
+
method?: string;
|
|
1877
|
+
|
|
1878
|
+
/**
|
|
1879
|
+
* Required input for Payflow Express Checkout payments
|
|
1880
|
+
*/
|
|
1881
|
+
payflow_express?: GQLPayflowExpressInput;
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* Required input for PayPal Payflow Link and Payments Advanced payments
|
|
1885
|
+
*/
|
|
1886
|
+
payflow_link?: GQLPayflowLinkInput;
|
|
1887
|
+
|
|
1888
|
+
/**
|
|
1889
|
+
* Required input type for PayPal Payflow Pro and Payment Pro payments
|
|
1890
|
+
*/
|
|
1891
|
+
payflowpro?: GQLPayflowProInput;
|
|
1892
|
+
|
|
1893
|
+
/**
|
|
1894
|
+
* Required input type for PayPal Payflow Pro vault payments
|
|
1895
|
+
*/
|
|
1896
|
+
payflowpro_cc_vault?: GQLVaultTokenInput;
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* Required input for Express Checkout and Payments Standard payments
|
|
1900
|
+
*/
|
|
1901
|
+
paypal_express?: GQLPaypalExpressInput;
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* Purchase order number
|
|
1905
|
+
*/
|
|
1906
|
+
purchase_order_number?: string;
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
export interface GQLPaymentMethodAdditionalData {
|
|
1910
|
+
cc_save?: boolean;
|
|
1911
|
+
cc_stripejs_token?: string;
|
|
1912
|
+
payment_method_nonce?: string;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
export interface GQLBraintreeInput {
|
|
1916
|
+
|
|
1917
|
+
/**
|
|
1918
|
+
* Contains a fingerprint provided by Braintree JS SDK and should be sent with
|
|
1919
|
+
* sale transaction details to the Braintree payment gateway. Should be specified
|
|
1920
|
+
* only in a case if Kount (advanced fraud protection) is enabled for Braintree
|
|
1921
|
+
* payment integration.
|
|
1922
|
+
*/
|
|
1923
|
+
device_data?: string;
|
|
1924
|
+
|
|
1925
|
+
/**
|
|
1926
|
+
* States whether an entered by a customer credit/debit card should be tokenized
|
|
1927
|
+
* for later usage. Required only if Vault is enabled for Braintree payment integration.
|
|
1928
|
+
*/
|
|
1929
|
+
is_active_payment_token_enabler: boolean;
|
|
1930
|
+
|
|
1931
|
+
/**
|
|
1932
|
+
* The one-time payment token generated by Braintree payment gateway based on
|
|
1933
|
+
* card details. Required field to make sale transaction.
|
|
1934
|
+
*/
|
|
1935
|
+
payment_method_nonce: string;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
export interface GQLBraintreeCcVaultInput {
|
|
1939
|
+
device_data?: string;
|
|
1940
|
+
public_hash: string;
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
export interface GQLHostedProInput {
|
|
1944
|
+
|
|
1945
|
+
/**
|
|
1946
|
+
* The relative URL of the page that PayPal will redirect to when the buyer
|
|
1947
|
+
* cancels the transaction in order to choose a different payment method. If the
|
|
1948
|
+
* full URL to this page is https://www.example.com/paypal/action/cancel.html,
|
|
1949
|
+
* the relative URL is paypal/action/cancel.html.
|
|
1950
|
+
*/
|
|
1951
|
+
cancel_url: string;
|
|
1952
|
+
|
|
1953
|
+
/**
|
|
1954
|
+
* The relative URL of the final confirmation page that PayPal will redirect to
|
|
1955
|
+
* upon payment success. If the full URL to this page is
|
|
1956
|
+
* https://www.example.com/paypal/action/return.html, the relative URL is
|
|
1957
|
+
* paypal/action/return.html.
|
|
1958
|
+
*/
|
|
1959
|
+
return_url: string;
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
export interface GQLKlarnaInput {
|
|
1963
|
+
|
|
1964
|
+
/**
|
|
1965
|
+
* The authorization token must be provided to set any Klarna Payments method
|
|
1966
|
+
*/
|
|
1967
|
+
authorization_token: string;
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
export interface GQLPayflowExpressInput {
|
|
1971
|
+
|
|
1972
|
+
/**
|
|
1973
|
+
* The unique ID of the PayPal user
|
|
1974
|
+
*/
|
|
1975
|
+
payer_id: string;
|
|
1976
|
+
|
|
1977
|
+
/**
|
|
1978
|
+
* The token returned by the createPaypalExpressToken mutation
|
|
1979
|
+
*/
|
|
1980
|
+
token: string;
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
/**
|
|
1984
|
+
* A set of relative URLs that PayPal will use in response to various actions
|
|
1985
|
+
* during the authorization process. Magento prepends the base URL to this value to
|
|
1986
|
+
* create a full URL. For example, if the full URL is
|
|
1987
|
+
* https://www.example.com/path/to/page.html, the relative URL is
|
|
1988
|
+
* path/to/page.html. Use this input for Payflow Link and Payments Advanced payment methods.
|
|
1989
|
+
*/
|
|
1990
|
+
export interface GQLPayflowLinkInput {
|
|
1991
|
+
|
|
1992
|
+
/**
|
|
1993
|
+
* The relative URL of the page that PayPal will redirect to when the buyer
|
|
1994
|
+
* cancels the transaction in order to choose a different payment method. If the
|
|
1995
|
+
* full URL to this page is https://www.example.com/paypal/action/cancel.html,
|
|
1996
|
+
* the relative URL is paypal/action/cancel.html.
|
|
1997
|
+
*/
|
|
1998
|
+
cancel_url: string;
|
|
1999
|
+
|
|
2000
|
+
/**
|
|
2001
|
+
* The relative URL of the transaction error page that PayPal will redirect to
|
|
2002
|
+
* upon payment error. If the full URL to this page is
|
|
2003
|
+
* https://www.example.com/paypal/action/error.html, the relative URL is
|
|
2004
|
+
* paypal/action/error.html.
|
|
2005
|
+
*/
|
|
2006
|
+
error_url: string;
|
|
2007
|
+
|
|
2008
|
+
/**
|
|
2009
|
+
* The relative URL of the order confirmation page that PayPal will redirect to
|
|
2010
|
+
* when the payment is successful and additional confirmation is not needed. If
|
|
2011
|
+
* the full URL to this page is
|
|
2012
|
+
* https://www.example.com/paypal/action/return.html, the relative URL is
|
|
2013
|
+
* paypal/action/return.html.
|
|
2014
|
+
*/
|
|
2015
|
+
return_url: string;
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
/**
|
|
2019
|
+
* Required input for Payflow Pro and Payments Pro payment methods.
|
|
2020
|
+
*/
|
|
2021
|
+
export interface GQLPayflowProInput {
|
|
2022
|
+
|
|
2023
|
+
/**
|
|
2024
|
+
* Required input for credit card related information
|
|
2025
|
+
*/
|
|
2026
|
+
cc_details: GQLCreditCardDetailsInput;
|
|
2027
|
+
|
|
2028
|
+
/**
|
|
2029
|
+
* States whether details about the customer's credit/debit card should be
|
|
2030
|
+
* tokenized for later usage. Required only if Vault is enabled for PayPal
|
|
2031
|
+
* Payflow Pro payment integration.
|
|
2032
|
+
*/
|
|
2033
|
+
is_active_payment_token_enabler?: boolean;
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
/**
|
|
2037
|
+
* Required fields for Payflow Pro and Payments Pro credit card payments
|
|
2038
|
+
*/
|
|
2039
|
+
export interface GQLCreditCardDetailsInput {
|
|
2040
|
+
|
|
2041
|
+
/**
|
|
2042
|
+
* Credit card expiration month
|
|
2043
|
+
*/
|
|
2044
|
+
cc_exp_month: number;
|
|
2045
|
+
|
|
2046
|
+
/**
|
|
2047
|
+
* Credit card expiration year
|
|
2048
|
+
*/
|
|
2049
|
+
cc_exp_year: number;
|
|
2050
|
+
|
|
2051
|
+
/**
|
|
2052
|
+
* Last 4 digits of the credit card
|
|
2053
|
+
*/
|
|
2054
|
+
cc_last_4: number;
|
|
2055
|
+
|
|
2056
|
+
/**
|
|
2057
|
+
* Credit card type
|
|
2058
|
+
*/
|
|
2059
|
+
cc_type: string;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
/**
|
|
2063
|
+
* Required input for payment methods with Vault support.
|
|
2064
|
+
*/
|
|
2065
|
+
export interface GQLVaultTokenInput {
|
|
2066
|
+
|
|
2067
|
+
/**
|
|
2068
|
+
* The public hash of the payment token
|
|
2069
|
+
*/
|
|
2070
|
+
public_hash: string;
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2073
|
+
export interface GQLPaypalExpressInput {
|
|
2074
|
+
|
|
2075
|
+
/**
|
|
2076
|
+
* The unique ID of the PayPal user
|
|
2077
|
+
*/
|
|
2078
|
+
payer_id: string;
|
|
2079
|
+
|
|
2080
|
+
/**
|
|
2081
|
+
* The token returned by the createPaypalExpressToken mutation
|
|
2082
|
+
*/
|
|
2083
|
+
token: string;
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
export interface GQLSaveAddressInformation {
|
|
2087
|
+
billing_address: GQLAddressInput;
|
|
2088
|
+
shipping_address: GQLAddressInput;
|
|
2089
|
+
shipping_carrier_code?: string;
|
|
2090
|
+
shipping_method_code?: string;
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
export interface GQLAddressInput {
|
|
2094
|
+
city?: string;
|
|
2095
|
+
company?: string;
|
|
2096
|
+
country_id?: string;
|
|
2097
|
+
email?: string;
|
|
2098
|
+
extension_attributes?: Array<GQLAddressExtensionAttributes | null>;
|
|
2099
|
+
firstname?: string;
|
|
2100
|
+
lastname?: string;
|
|
2101
|
+
method?: string;
|
|
2102
|
+
postcode?: string;
|
|
2103
|
+
region?: string;
|
|
2104
|
+
region_code?: string;
|
|
2105
|
+
region_id?: number;
|
|
2106
|
+
street?: Array<string | null>;
|
|
2107
|
+
telephone?: string;
|
|
2108
|
+
vat_id?: string;
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
export interface GQLAddressExtensionAttributes {
|
|
2112
|
+
attribute_code?: string;
|
|
2113
|
+
value?: string;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
export enum GQLCheckoutAgreementMode {
|
|
2117
|
+
AUTO = 'AUTO',
|
|
2118
|
+
MANUAL = 'MANUAL',
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
export interface GQLContactForm {
|
|
2122
|
+
email?: string;
|
|
2123
|
+
message?: string;
|
|
2124
|
+
name?: string;
|
|
2125
|
+
telephone?: string;
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
export interface GQLKlarnaTokenInput {
|
|
2129
|
+
|
|
2130
|
+
/**
|
|
2131
|
+
* The unique ID that identifies the guest customer's cart
|
|
2132
|
+
*/
|
|
2133
|
+
guest_cart_id?: string;
|
|
2134
|
+
}
|
|
2135
|
+
|
|
2136
|
+
export interface GQLCustomerInput {
|
|
2137
|
+
|
|
2138
|
+
/**
|
|
2139
|
+
* The customer's date of birth
|
|
2140
|
+
*/
|
|
2141
|
+
date_of_birth?: string;
|
|
2142
|
+
|
|
2143
|
+
/**
|
|
2144
|
+
* Deprecated: Use `date_of_birth` instead
|
|
2145
|
+
*/
|
|
2146
|
+
dob?: string;
|
|
2147
|
+
|
|
2148
|
+
/**
|
|
2149
|
+
* The customer's email address. Required for customer creation
|
|
2150
|
+
*/
|
|
2151
|
+
email?: string;
|
|
2152
|
+
|
|
2153
|
+
/**
|
|
2154
|
+
* The customer's first name
|
|
2155
|
+
*/
|
|
2156
|
+
firstname?: string;
|
|
2157
|
+
|
|
2158
|
+
/**
|
|
2159
|
+
* The customer's gender (Male - 1, Female - 2)
|
|
2160
|
+
*/
|
|
2161
|
+
gender?: number;
|
|
2162
|
+
|
|
2163
|
+
/**
|
|
2164
|
+
* Indicates whether the customer is subscribed to the company's newsletter
|
|
2165
|
+
*/
|
|
2166
|
+
is_subscribed?: boolean;
|
|
2167
|
+
|
|
2168
|
+
/**
|
|
2169
|
+
* The customer's family name
|
|
2170
|
+
*/
|
|
2171
|
+
lastname?: string;
|
|
2172
|
+
|
|
2173
|
+
/**
|
|
2174
|
+
* The customer's middle name
|
|
2175
|
+
*/
|
|
2176
|
+
middlename?: string;
|
|
2177
|
+
|
|
2178
|
+
/**
|
|
2179
|
+
* The customer's password
|
|
2180
|
+
*/
|
|
2181
|
+
password?: string;
|
|
2182
|
+
|
|
2183
|
+
/**
|
|
2184
|
+
* An honorific, such as Dr., Mr., or Mrs.
|
|
2185
|
+
*/
|
|
2186
|
+
prefix?: string;
|
|
2187
|
+
|
|
2188
|
+
/**
|
|
2189
|
+
* A value such as Sr., Jr., or III
|
|
2190
|
+
*/
|
|
2191
|
+
suffix?: string;
|
|
2192
|
+
|
|
2193
|
+
/**
|
|
2194
|
+
* The customer's Tax/VAT number (for corporate customers)
|
|
2195
|
+
*/
|
|
2196
|
+
taxvat?: string;
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
export enum GQLSubscriptionStatusesEnum {
|
|
2200
|
+
NOT_ACTIVE = 'NOT_ACTIVE',
|
|
2201
|
+
SUBSCRIBED = 'SUBSCRIBED',
|
|
2202
|
+
UNSUBSCRIBED = 'UNSUBSCRIBED',
|
|
2203
|
+
UNCONFIRMED = 'UNCONFIRMED',
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
export enum GQLShipBundleItemsEnum {
|
|
2207
|
+
TOGETHER = 'TOGETHER',
|
|
2208
|
+
SEPARATELY = 'SEPARATELY',
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
export interface GQLCreateProductReviewInput {
|
|
2212
|
+
|
|
2213
|
+
/**
|
|
2214
|
+
* The customer's nickname. Defaults to the customer name, if logged in
|
|
2215
|
+
*/
|
|
2216
|
+
nickname: string;
|
|
2217
|
+
|
|
2218
|
+
/**
|
|
2219
|
+
* Ratings details by category. e.g price: 5, quality: 4 etc
|
|
2220
|
+
*/
|
|
2221
|
+
ratings: Array<GQLProductReviewRatingInput | null>;
|
|
2222
|
+
|
|
2223
|
+
/**
|
|
2224
|
+
* The SKU of the reviewed product
|
|
2225
|
+
*/
|
|
2226
|
+
sku: string;
|
|
2227
|
+
|
|
2228
|
+
/**
|
|
2229
|
+
* The summary (title) of the review
|
|
2230
|
+
*/
|
|
2231
|
+
summary: string;
|
|
2232
|
+
|
|
2233
|
+
/**
|
|
2234
|
+
* The review text.
|
|
2235
|
+
*/
|
|
2236
|
+
text: string;
|
|
2237
|
+
}
|
|
2238
|
+
|
|
2239
|
+
export interface GQLProductReviewRatingInput {
|
|
2240
|
+
|
|
2241
|
+
/**
|
|
2242
|
+
* An encoded rating ID.
|
|
2243
|
+
*/
|
|
2244
|
+
id: string;
|
|
2245
|
+
|
|
2246
|
+
/**
|
|
2247
|
+
* An encoded rating value id.
|
|
2248
|
+
*/
|
|
2249
|
+
value_id: string;
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2252
|
+
export interface GQLProductInfoInput {
|
|
2253
|
+
|
|
2254
|
+
/**
|
|
2255
|
+
* Product SKU.
|
|
2256
|
+
*/
|
|
2257
|
+
sku: string;
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
export enum GQLUrlRewriteEntityTypeEnum {
|
|
2261
|
+
CMS_PAGE = 'CMS_PAGE',
|
|
2262
|
+
PRODUCT = 'PRODUCT',
|
|
2263
|
+
CATEGORY = 'CATEGORY',
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
export interface GQLCartDisplayConfig {
|
|
2267
|
+
display_full_tax_summary?: boolean;
|
|
2268
|
+
display_tax_in_price?: string;
|
|
2269
|
+
display_tax_in_shipping_amount?: string;
|
|
2270
|
+
display_tax_in_subtotal?: string;
|
|
2271
|
+
display_zero_tax_subtotal?: boolean;
|
|
2272
|
+
include_tax_in_order_total?: boolean;
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
export interface GQLConfigurableProduct extends
|
|
2276
|
+
GQLProductInterface,
|
|
2277
|
+
GQLRoutableInterface,
|
|
2278
|
+
GQLPhysicalProductInterface,
|
|
2279
|
+
GQLCustomizableProductInterface {
|
|
2280
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2281
|
+
New_attribute_size?: number;
|
|
2282
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2283
|
+
New_multiple_attribute?: string;
|
|
2284
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2285
|
+
Test_Ainars?: number;
|
|
2286
|
+
attribute_allows_html?: string;
|
|
2287
|
+
|
|
2288
|
+
/**
|
|
2289
|
+
* The attribute set assigned to the product.
|
|
2290
|
+
* @deprecated The field should not be used on the storefront.
|
|
2291
|
+
*/
|
|
2292
|
+
attribute_set_id?: number;
|
|
2293
|
+
brand?: string;
|
|
2294
|
+
|
|
2295
|
+
/**
|
|
2296
|
+
* Relative canonical URL. This value is returned only if the system setting 'Use
|
|
2297
|
+
* Canonical Link Meta Tag For Products' is enabled
|
|
2298
|
+
*/
|
|
2299
|
+
canonical_url?: string;
|
|
2300
|
+
|
|
2301
|
+
/**
|
|
2302
|
+
* The categories assigned to a product.
|
|
2303
|
+
*/
|
|
2304
|
+
categories?: Array<GQLCategoryInterface | null>;
|
|
2305
|
+
clothing_colour?: number;
|
|
2306
|
+
clothing_gender?: number;
|
|
2307
|
+
clothing_size?: number;
|
|
2308
|
+
clothing_type?: number;
|
|
2309
|
+
color?: number;
|
|
2310
|
+
color_elena?: number;
|
|
2311
|
+
colors_with_images?: number;
|
|
2312
|
+
|
|
2313
|
+
/**
|
|
2314
|
+
* An array of linked simple product items
|
|
2315
|
+
*/
|
|
2316
|
+
configurable_options?: Array<GQLConfigurableProductOptions | null>;
|
|
2317
|
+
|
|
2318
|
+
/**
|
|
2319
|
+
* Specified configurable product options selection
|
|
2320
|
+
*/
|
|
2321
|
+
configurable_product_options_selection?: GQLConfigurableProductOptionsSelection;
|
|
2322
|
+
|
|
2323
|
+
/**
|
|
2324
|
+
* The product's country of origin.
|
|
2325
|
+
*/
|
|
2326
|
+
country_of_manufacture?: string;
|
|
2327
|
+
|
|
2328
|
+
/**
|
|
2329
|
+
* Timestamp indicating when the product was created.
|
|
2330
|
+
* @deprecated The field should not be used on the storefront.
|
|
2331
|
+
*/
|
|
2332
|
+
created_at?: string;
|
|
2333
|
+
|
|
2334
|
+
/**
|
|
2335
|
+
* Crosssell Products
|
|
2336
|
+
*/
|
|
2337
|
+
crosssell_products?: Array<GQLProductInterface | null>;
|
|
2338
|
+
|
|
2339
|
+
/**
|
|
2340
|
+
* Detailed information about the product. The value can include simple HTML tags.
|
|
2341
|
+
*/
|
|
2342
|
+
description?: GQLComplexTextValue;
|
|
2343
|
+
fit?: number;
|
|
2344
|
+
|
|
2345
|
+
/**
|
|
2346
|
+
* Indicates whether a gift message is available.
|
|
2347
|
+
*/
|
|
2348
|
+
gift_message_available?: string;
|
|
2349
|
+
|
|
2350
|
+
/**
|
|
2351
|
+
* The ID number assigned to the product.
|
|
2352
|
+
* @deprecated Use the `uid` field instead.
|
|
2353
|
+
*/
|
|
2354
|
+
id?: number;
|
|
2355
|
+
|
|
2356
|
+
/**
|
|
2357
|
+
* The relative path to the main image on the product page.
|
|
2358
|
+
*/
|
|
2359
|
+
image?: GQLOptimizedProductImage;
|
|
2360
|
+
images_type_map?: number;
|
|
2361
|
+
license_key?: string;
|
|
2362
|
+
|
|
2363
|
+
/**
|
|
2364
|
+
* A number representing the product's manufacturer.
|
|
2365
|
+
*/
|
|
2366
|
+
manufacturer?: number;
|
|
2367
|
+
material?: string;
|
|
2368
|
+
|
|
2369
|
+
/**
|
|
2370
|
+
* An array of Media Gallery objects.
|
|
2371
|
+
*/
|
|
2372
|
+
media_gallery?: Array<GQLMediaGalleryInterface | null>;
|
|
2373
|
+
|
|
2374
|
+
/**
|
|
2375
|
+
* An array of MediaGalleryEntry objects.
|
|
2376
|
+
* @deprecated Use product's `media_gallery` instead
|
|
2377
|
+
*/
|
|
2378
|
+
media_gallery_entries?: Array<GQLMediaGalleryEntry | null>;
|
|
2379
|
+
memory?: number;
|
|
2380
|
+
|
|
2381
|
+
/**
|
|
2382
|
+
* A brief overview of the product for search results listings, maximum 255 characters.
|
|
2383
|
+
*/
|
|
2384
|
+
meta_description?: string;
|
|
2385
|
+
|
|
2386
|
+
/**
|
|
2387
|
+
* A comma-separated list of keywords that are visible only to search engines.
|
|
2388
|
+
*/
|
|
2389
|
+
meta_keyword?: string;
|
|
2390
|
+
|
|
2391
|
+
/**
|
|
2392
|
+
* A string that is displayed in the title bar and tab of the browser and in search results lists.
|
|
2393
|
+
*/
|
|
2394
|
+
meta_title?: string;
|
|
2395
|
+
multiple_attribute?: string;
|
|
2396
|
+
|
|
2397
|
+
/**
|
|
2398
|
+
* The product name. Customers use this name to identify the product.
|
|
2399
|
+
*/
|
|
2400
|
+
name?: string;
|
|
2401
|
+
|
|
2402
|
+
/**
|
|
2403
|
+
* The beginning date for new product listings, and determines if the product is featured as a new product.
|
|
2404
|
+
* @deprecated The field should not be used on the storefront.
|
|
2405
|
+
*/
|
|
2406
|
+
new_from_date?: string;
|
|
2407
|
+
|
|
2408
|
+
/**
|
|
2409
|
+
* The end date for new product listings.
|
|
2410
|
+
* @deprecated The field should not be used on the storefront.
|
|
2411
|
+
*/
|
|
2412
|
+
new_to_date?: string;
|
|
2413
|
+
|
|
2414
|
+
/**
|
|
2415
|
+
* Product stock only x left count
|
|
2416
|
+
*/
|
|
2417
|
+
only_x_left_in_stock?: number;
|
|
2418
|
+
|
|
2419
|
+
/**
|
|
2420
|
+
* An array of options for a customizable product.
|
|
2421
|
+
*/
|
|
2422
|
+
options?: Array<GQLCustomizableOptionInterface | null>;
|
|
2423
|
+
|
|
2424
|
+
/**
|
|
2425
|
+
* If the product has multiple options, determines where they appear on the product page.
|
|
2426
|
+
*/
|
|
2427
|
+
options_container?: string;
|
|
2428
|
+
original_price?: number;
|
|
2429
|
+
|
|
2430
|
+
/**
|
|
2431
|
+
* A ProductPrices object, indicating the price of an item.
|
|
2432
|
+
* @deprecated Use price_range for product price information.
|
|
2433
|
+
*/
|
|
2434
|
+
price?: GQLProductPrices;
|
|
2435
|
+
|
|
2436
|
+
/**
|
|
2437
|
+
* A PriceRange object, indicating the range of prices for the product
|
|
2438
|
+
*/
|
|
2439
|
+
price_range: GQLPriceRange;
|
|
2440
|
+
|
|
2441
|
+
/**
|
|
2442
|
+
* An array of TierPrice objects.
|
|
2443
|
+
*/
|
|
2444
|
+
price_tiers?: Array<GQLTierPrice | null>;
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
* An array of ProductLinks objects.
|
|
2448
|
+
*/
|
|
2449
|
+
product_links?: Array<GQLProductLinksInterface | null>;
|
|
2450
|
+
|
|
2451
|
+
/**
|
|
2452
|
+
* Qty field for checkout order view
|
|
2453
|
+
*/
|
|
2454
|
+
qty?: number;
|
|
2455
|
+
quantity?: number;
|
|
2456
|
+
ranking?: number;
|
|
2457
|
+
|
|
2458
|
+
/**
|
|
2459
|
+
* The average of all the ratings given to the product.
|
|
2460
|
+
*/
|
|
2461
|
+
rating_summary: number;
|
|
2462
|
+
|
|
2463
|
+
/**
|
|
2464
|
+
* Contains 0 when there is no redirect error. A value of 301 indicates the URL
|
|
2465
|
+
* of the requested resource has been changed permanently, while a value of 302
|
|
2466
|
+
* indicates a temporary redirect
|
|
2467
|
+
*/
|
|
2468
|
+
redirect_code: number;
|
|
2469
|
+
|
|
2470
|
+
/**
|
|
2471
|
+
* Related Products
|
|
2472
|
+
*/
|
|
2473
|
+
related_products?: Array<GQLProductInterface | null>;
|
|
2474
|
+
|
|
2475
|
+
/**
|
|
2476
|
+
* The internal relative URL. If the specified URL is a redirect, the query returns the redirected URL, not the original
|
|
2477
|
+
*/
|
|
2478
|
+
relative_url?: string;
|
|
2479
|
+
|
|
2480
|
+
/**
|
|
2481
|
+
* The total count of all the reviews given to the product.
|
|
2482
|
+
*/
|
|
2483
|
+
review_count: number;
|
|
2484
|
+
|
|
2485
|
+
/**
|
|
2486
|
+
* The list of products reviews.
|
|
2487
|
+
*/
|
|
2488
|
+
reviews: GQLProductReviews;
|
|
2489
|
+
row_total?: number;
|
|
2490
|
+
s_attributes?: Array<GQLAttributeWithValue | null>;
|
|
2491
|
+
salable_qty?: number;
|
|
2492
|
+
shoes_size?: number;
|
|
2493
|
+
|
|
2494
|
+
/**
|
|
2495
|
+
* A short description of the product. Its use depends on the theme.
|
|
2496
|
+
*/
|
|
2497
|
+
short_description?: GQLComplexTextValue;
|
|
2498
|
+
size?: number;
|
|
2499
|
+
|
|
2500
|
+
/**
|
|
2501
|
+
* A number or code assigned to a product to identify the product, options, price, and manufacturer.
|
|
2502
|
+
*/
|
|
2503
|
+
sku?: string;
|
|
2504
|
+
|
|
2505
|
+
/**
|
|
2506
|
+
* The relative path to the small image, which is used on catalog pages.
|
|
2507
|
+
*/
|
|
2508
|
+
small_image?: GQLOptimizedProductImage;
|
|
2509
|
+
|
|
2510
|
+
/**
|
|
2511
|
+
* The beginning date that a product has a special price.
|
|
2512
|
+
* @deprecated The field should not be used on the storefront.
|
|
2513
|
+
*/
|
|
2514
|
+
special_from_date?: string;
|
|
2515
|
+
|
|
2516
|
+
/**
|
|
2517
|
+
* The discounted price of the product.
|
|
2518
|
+
*/
|
|
2519
|
+
special_price?: number;
|
|
2520
|
+
|
|
2521
|
+
/**
|
|
2522
|
+
* The end date that a product has a special price.
|
|
2523
|
+
*/
|
|
2524
|
+
special_to_date?: string;
|
|
2525
|
+
stock_item?: GQLProductStockItem;
|
|
2526
|
+
|
|
2527
|
+
/**
|
|
2528
|
+
* Stock status of the product
|
|
2529
|
+
*/
|
|
2530
|
+
stock_status?: GQLProductStockStatus;
|
|
2531
|
+
|
|
2532
|
+
/**
|
|
2533
|
+
* The file name of a swatch image
|
|
2534
|
+
*/
|
|
2535
|
+
swatch_image?: string;
|
|
2536
|
+
test?: number;
|
|
2537
|
+
texture?: number;
|
|
2538
|
+
|
|
2539
|
+
/**
|
|
2540
|
+
* The relative path to the product's thumbnail image.
|
|
2541
|
+
*/
|
|
2542
|
+
thumbnail?: GQLOptimizedProductImage;
|
|
2543
|
+
|
|
2544
|
+
/**
|
|
2545
|
+
* The price when tier pricing is in effect and the items purchased threshold has been reached.
|
|
2546
|
+
* @deprecated Use price_tiers for product tier price information.
|
|
2547
|
+
*/
|
|
2548
|
+
tier_price?: number;
|
|
2549
|
+
|
|
2550
|
+
/**
|
|
2551
|
+
* An array of ProductTierPrices objects.
|
|
2552
|
+
* @deprecated Use price_tiers for product tier price information.
|
|
2553
|
+
*/
|
|
2554
|
+
tier_prices?: Array<GQLProductTierPrices | null>;
|
|
2555
|
+
|
|
2556
|
+
/**
|
|
2557
|
+
* One of PRODUCT, CATEGORY, or CMS_PAGE.
|
|
2558
|
+
*/
|
|
2559
|
+
type?: GQLUrlRewriteEntityTypeEnum;
|
|
2560
|
+
|
|
2561
|
+
/**
|
|
2562
|
+
* One of simple, virtual, bundle, downloadable, grouped, or configurable.
|
|
2563
|
+
* @deprecated Use __typename instead.
|
|
2564
|
+
*/
|
|
2565
|
+
type_id?: string;
|
|
2566
|
+
|
|
2567
|
+
/**
|
|
2568
|
+
* The unique ID for a `ProductInterface` object.
|
|
2569
|
+
*/
|
|
2570
|
+
uid: string;
|
|
2571
|
+
|
|
2572
|
+
/**
|
|
2573
|
+
* Timestamp indicating when the product was updated.
|
|
2574
|
+
* @deprecated The field should not be used on the storefront.
|
|
2575
|
+
*/
|
|
2576
|
+
updated_at?: string;
|
|
2577
|
+
|
|
2578
|
+
/**
|
|
2579
|
+
* Upsell Products
|
|
2580
|
+
*/
|
|
2581
|
+
upsell_products?: Array<GQLProductInterface | null>;
|
|
2582
|
+
url?: string;
|
|
2583
|
+
|
|
2584
|
+
/**
|
|
2585
|
+
* The part of the URL that identifies the product
|
|
2586
|
+
*/
|
|
2587
|
+
url_key?: string;
|
|
2588
|
+
|
|
2589
|
+
/**
|
|
2590
|
+
*
|
|
2591
|
+
* @deprecated Use product's `canonical_url` or url rewrites instead
|
|
2592
|
+
*/
|
|
2593
|
+
url_path?: string;
|
|
2594
|
+
|
|
2595
|
+
/**
|
|
2596
|
+
* URL rewrites list
|
|
2597
|
+
*/
|
|
2598
|
+
url_rewrites?: Array<GQLUrlRewrite | null>;
|
|
2599
|
+
|
|
2600
|
+
/**
|
|
2601
|
+
* The part of the product URL that is appended after the url key
|
|
2602
|
+
*/
|
|
2603
|
+
url_suffix?: string;
|
|
2604
|
+
valuesss?: number;
|
|
2605
|
+
|
|
2606
|
+
/**
|
|
2607
|
+
* An array of variants of products
|
|
2608
|
+
*/
|
|
2609
|
+
variants?: Array<GQLConfigurableVariant | null>;
|
|
2610
|
+
|
|
2611
|
+
/**
|
|
2612
|
+
* An array of variants of products, optimized version for PLP
|
|
2613
|
+
*/
|
|
2614
|
+
variants_plp?: Array<GQLConfigurableVariant | null>;
|
|
2615
|
+
|
|
2616
|
+
/**
|
|
2617
|
+
* An array of websites in which the product is available.
|
|
2618
|
+
* @deprecated The field should not be used on the storefront.
|
|
2619
|
+
*/
|
|
2620
|
+
websites?: Array<GQLWebsite | null>;
|
|
2621
|
+
|
|
2622
|
+
/**
|
|
2623
|
+
* The weight of the item, in units defined by the store.
|
|
2624
|
+
*/
|
|
2625
|
+
weight?: number;
|
|
2626
|
+
yes_no?: number;
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
export interface GQLProductInterface {
|
|
2630
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2631
|
+
New_attribute_size?: number;
|
|
2632
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2633
|
+
New_multiple_attribute?: string;
|
|
2634
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2635
|
+
Test_Ainars?: number;
|
|
2636
|
+
attribute_allows_html?: string;
|
|
2637
|
+
|
|
2638
|
+
/**
|
|
2639
|
+
* The attribute set assigned to the product.
|
|
2640
|
+
* @deprecated The field should not be used on the storefront.
|
|
2641
|
+
*/
|
|
2642
|
+
attribute_set_id?: number;
|
|
2643
|
+
brand?: string;
|
|
2644
|
+
|
|
2645
|
+
/**
|
|
2646
|
+
* Relative canonical URL. This value is returned only if the system setting 'Use
|
|
2647
|
+
* Canonical Link Meta Tag For Products' is enabled
|
|
2648
|
+
*/
|
|
2649
|
+
canonical_url?: string;
|
|
2650
|
+
|
|
2651
|
+
/**
|
|
2652
|
+
* The categories assigned to a product.
|
|
2653
|
+
*/
|
|
2654
|
+
categories?: Array<GQLCategoryInterface | null>;
|
|
2655
|
+
clothing_colour?: number;
|
|
2656
|
+
clothing_gender?: number;
|
|
2657
|
+
clothing_size?: number;
|
|
2658
|
+
clothing_type?: number;
|
|
2659
|
+
color?: number;
|
|
2660
|
+
color_elena?: number;
|
|
2661
|
+
colors_with_images?: number;
|
|
2662
|
+
|
|
2663
|
+
/**
|
|
2664
|
+
* The product's country of origin.
|
|
2665
|
+
*/
|
|
2666
|
+
country_of_manufacture?: string;
|
|
2667
|
+
|
|
2668
|
+
/**
|
|
2669
|
+
* Timestamp indicating when the product was created.
|
|
2670
|
+
* @deprecated The field should not be used on the storefront.
|
|
2671
|
+
*/
|
|
2672
|
+
created_at?: string;
|
|
2673
|
+
|
|
2674
|
+
/**
|
|
2675
|
+
* Crosssell Products
|
|
2676
|
+
*/
|
|
2677
|
+
crosssell_products?: Array<GQLProductInterface | null>;
|
|
2678
|
+
|
|
2679
|
+
/**
|
|
2680
|
+
* Detailed information about the product. The value can include simple HTML tags.
|
|
2681
|
+
*/
|
|
2682
|
+
description?: GQLComplexTextValue;
|
|
2683
|
+
fit?: number;
|
|
2684
|
+
|
|
2685
|
+
/**
|
|
2686
|
+
* Indicates whether a gift message is available.
|
|
2687
|
+
*/
|
|
2688
|
+
gift_message_available?: string;
|
|
2689
|
+
|
|
2690
|
+
/**
|
|
2691
|
+
* The ID number assigned to the product.
|
|
2692
|
+
* @deprecated Use the `uid` field instead.
|
|
2693
|
+
*/
|
|
2694
|
+
id?: number;
|
|
2695
|
+
|
|
2696
|
+
/**
|
|
2697
|
+
* The relative path to the main image on the product page.
|
|
2698
|
+
*/
|
|
2699
|
+
image?: GQLOptimizedProductImage;
|
|
2700
|
+
images_type_map?: number;
|
|
2701
|
+
license_key?: string;
|
|
2702
|
+
|
|
2703
|
+
/**
|
|
2704
|
+
* A number representing the product's manufacturer.
|
|
2705
|
+
*/
|
|
2706
|
+
manufacturer?: number;
|
|
2707
|
+
material?: string;
|
|
2708
|
+
|
|
2709
|
+
/**
|
|
2710
|
+
* An array of Media Gallery objects.
|
|
2711
|
+
*/
|
|
2712
|
+
media_gallery?: Array<GQLMediaGalleryInterface | null>;
|
|
2713
|
+
|
|
2714
|
+
/**
|
|
2715
|
+
* An array of MediaGalleryEntry objects.
|
|
2716
|
+
* @deprecated Use product's `media_gallery` instead
|
|
2717
|
+
*/
|
|
2718
|
+
media_gallery_entries?: Array<GQLMediaGalleryEntry | null>;
|
|
2719
|
+
memory?: number;
|
|
2720
|
+
|
|
2721
|
+
/**
|
|
2722
|
+
* A brief overview of the product for search results listings, maximum 255 characters.
|
|
2723
|
+
*/
|
|
2724
|
+
meta_description?: string;
|
|
2725
|
+
|
|
2726
|
+
/**
|
|
2727
|
+
* A comma-separated list of keywords that are visible only to search engines.
|
|
2728
|
+
*/
|
|
2729
|
+
meta_keyword?: string;
|
|
2730
|
+
|
|
2731
|
+
/**
|
|
2732
|
+
* A string that is displayed in the title bar and tab of the browser and in search results lists.
|
|
2733
|
+
*/
|
|
2734
|
+
meta_title?: string;
|
|
2735
|
+
multiple_attribute?: string;
|
|
2736
|
+
|
|
2737
|
+
/**
|
|
2738
|
+
* The product name. Customers use this name to identify the product.
|
|
2739
|
+
*/
|
|
2740
|
+
name?: string;
|
|
2741
|
+
|
|
2742
|
+
/**
|
|
2743
|
+
* The beginning date for new product listings, and determines if the product is featured as a new product.
|
|
2744
|
+
* @deprecated The field should not be used on the storefront.
|
|
2745
|
+
*/
|
|
2746
|
+
new_from_date?: string;
|
|
2747
|
+
|
|
2748
|
+
/**
|
|
2749
|
+
* The end date for new product listings.
|
|
2750
|
+
* @deprecated The field should not be used on the storefront.
|
|
2751
|
+
*/
|
|
2752
|
+
new_to_date?: string;
|
|
2753
|
+
|
|
2754
|
+
/**
|
|
2755
|
+
* Product stock only x left count
|
|
2756
|
+
*/
|
|
2757
|
+
only_x_left_in_stock?: number;
|
|
2758
|
+
|
|
2759
|
+
/**
|
|
2760
|
+
* If the product has multiple options, determines where they appear on the product page.
|
|
2761
|
+
*/
|
|
2762
|
+
options_container?: string;
|
|
2763
|
+
original_price?: number;
|
|
2764
|
+
|
|
2765
|
+
/**
|
|
2766
|
+
* A ProductPrices object, indicating the price of an item.
|
|
2767
|
+
* @deprecated Use price_range for product price information.
|
|
2768
|
+
*/
|
|
2769
|
+
price?: GQLProductPrices;
|
|
2770
|
+
|
|
2771
|
+
/**
|
|
2772
|
+
* A PriceRange object, indicating the range of prices for the product
|
|
2773
|
+
*/
|
|
2774
|
+
price_range: GQLPriceRange;
|
|
2775
|
+
|
|
2776
|
+
/**
|
|
2777
|
+
* An array of TierPrice objects.
|
|
2778
|
+
*/
|
|
2779
|
+
price_tiers?: Array<GQLTierPrice | null>;
|
|
2780
|
+
|
|
2781
|
+
/**
|
|
2782
|
+
* An array of ProductLinks objects.
|
|
2783
|
+
*/
|
|
2784
|
+
product_links?: Array<GQLProductLinksInterface | null>;
|
|
2785
|
+
|
|
2786
|
+
/**
|
|
2787
|
+
* Qty field for checkout order view
|
|
2788
|
+
*/
|
|
2789
|
+
qty?: number;
|
|
2790
|
+
quantity?: number;
|
|
2791
|
+
ranking?: number;
|
|
2792
|
+
|
|
2793
|
+
/**
|
|
2794
|
+
* The average of all the ratings given to the product.
|
|
2795
|
+
*/
|
|
2796
|
+
rating_summary: number;
|
|
2797
|
+
|
|
2798
|
+
/**
|
|
2799
|
+
* Related Products
|
|
2800
|
+
*/
|
|
2801
|
+
related_products?: Array<GQLProductInterface | null>;
|
|
2802
|
+
|
|
2803
|
+
/**
|
|
2804
|
+
* The total count of all the reviews given to the product.
|
|
2805
|
+
*/
|
|
2806
|
+
review_count: number;
|
|
2807
|
+
|
|
2808
|
+
/**
|
|
2809
|
+
* The list of products reviews.
|
|
2810
|
+
*/
|
|
2811
|
+
reviews: GQLProductReviews;
|
|
2812
|
+
row_total?: number;
|
|
2813
|
+
s_attributes?: Array<GQLAttributeWithValue | null>;
|
|
2814
|
+
salable_qty?: number;
|
|
2815
|
+
shoes_size?: number;
|
|
2816
|
+
|
|
2817
|
+
/**
|
|
2818
|
+
* A short description of the product. Its use depends on the theme.
|
|
2819
|
+
*/
|
|
2820
|
+
short_description?: GQLComplexTextValue;
|
|
2821
|
+
size?: number;
|
|
2822
|
+
|
|
2823
|
+
/**
|
|
2824
|
+
* A number or code assigned to a product to identify the product, options, price, and manufacturer.
|
|
2825
|
+
*/
|
|
2826
|
+
sku?: string;
|
|
2827
|
+
|
|
2828
|
+
/**
|
|
2829
|
+
* The relative path to the small image, which is used on catalog pages.
|
|
2830
|
+
*/
|
|
2831
|
+
small_image?: GQLOptimizedProductImage;
|
|
2832
|
+
|
|
2833
|
+
/**
|
|
2834
|
+
* The beginning date that a product has a special price.
|
|
2835
|
+
* @deprecated The field should not be used on the storefront.
|
|
2836
|
+
*/
|
|
2837
|
+
special_from_date?: string;
|
|
2838
|
+
|
|
2839
|
+
/**
|
|
2840
|
+
* The discounted price of the product.
|
|
2841
|
+
*/
|
|
2842
|
+
special_price?: number;
|
|
2843
|
+
|
|
2844
|
+
/**
|
|
2845
|
+
* The end date that a product has a special price.
|
|
2846
|
+
*/
|
|
2847
|
+
special_to_date?: string;
|
|
2848
|
+
stock_item?: GQLProductStockItem;
|
|
2849
|
+
|
|
2850
|
+
/**
|
|
2851
|
+
* Stock status of the product
|
|
2852
|
+
*/
|
|
2853
|
+
stock_status?: GQLProductStockStatus;
|
|
2854
|
+
|
|
2855
|
+
/**
|
|
2856
|
+
* The file name of a swatch image
|
|
2857
|
+
*/
|
|
2858
|
+
swatch_image?: string;
|
|
2859
|
+
test?: number;
|
|
2860
|
+
texture?: number;
|
|
2861
|
+
|
|
2862
|
+
/**
|
|
2863
|
+
* The relative path to the product's thumbnail image.
|
|
2864
|
+
*/
|
|
2865
|
+
thumbnail?: GQLOptimizedProductImage;
|
|
2866
|
+
|
|
2867
|
+
/**
|
|
2868
|
+
* The price when tier pricing is in effect and the items purchased threshold has been reached.
|
|
2869
|
+
* @deprecated Use price_tiers for product tier price information.
|
|
2870
|
+
*/
|
|
2871
|
+
tier_price?: number;
|
|
2872
|
+
|
|
2873
|
+
/**
|
|
2874
|
+
* An array of ProductTierPrices objects.
|
|
2875
|
+
* @deprecated Use price_tiers for product tier price information.
|
|
2876
|
+
*/
|
|
2877
|
+
tier_prices?: Array<GQLProductTierPrices | null>;
|
|
2878
|
+
|
|
2879
|
+
/**
|
|
2880
|
+
* One of simple, virtual, bundle, downloadable, grouped, or configurable.
|
|
2881
|
+
* @deprecated Use __typename instead.
|
|
2882
|
+
*/
|
|
2883
|
+
type_id?: string;
|
|
2884
|
+
|
|
2885
|
+
/**
|
|
2886
|
+
* The unique ID for a `ProductInterface` object.
|
|
2887
|
+
*/
|
|
2888
|
+
uid: string;
|
|
2889
|
+
|
|
2890
|
+
/**
|
|
2891
|
+
* Timestamp indicating when the product was updated.
|
|
2892
|
+
* @deprecated The field should not be used on the storefront.
|
|
2893
|
+
*/
|
|
2894
|
+
updated_at?: string;
|
|
2895
|
+
|
|
2896
|
+
/**
|
|
2897
|
+
* Upsell Products
|
|
2898
|
+
*/
|
|
2899
|
+
upsell_products?: Array<GQLProductInterface | null>;
|
|
2900
|
+
url?: string;
|
|
2901
|
+
|
|
2902
|
+
/**
|
|
2903
|
+
* The part of the URL that identifies the product
|
|
2904
|
+
*/
|
|
2905
|
+
url_key?: string;
|
|
2906
|
+
|
|
2907
|
+
/**
|
|
2908
|
+
*
|
|
2909
|
+
* @deprecated Use product's `canonical_url` or url rewrites instead
|
|
2910
|
+
*/
|
|
2911
|
+
url_path?: string;
|
|
2912
|
+
|
|
2913
|
+
/**
|
|
2914
|
+
* URL rewrites list
|
|
2915
|
+
*/
|
|
2916
|
+
url_rewrites?: Array<GQLUrlRewrite | null>;
|
|
2917
|
+
|
|
2918
|
+
/**
|
|
2919
|
+
* The part of the product URL that is appended after the url key
|
|
2920
|
+
*/
|
|
2921
|
+
url_suffix?: string;
|
|
2922
|
+
valuesss?: number;
|
|
2923
|
+
|
|
2924
|
+
/**
|
|
2925
|
+
* An array of websites in which the product is available.
|
|
2926
|
+
* @deprecated The field should not be used on the storefront.
|
|
2927
|
+
*/
|
|
2928
|
+
websites?: Array<GQLWebsite | null>;
|
|
2929
|
+
yes_no?: number;
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
export interface GQLRoutableInterface {
|
|
2933
|
+
|
|
2934
|
+
/**
|
|
2935
|
+
* Contains 0 when there is no redirect error. A value of 301 indicates the URL
|
|
2936
|
+
* of the requested resource has been changed permanently, while a value of 302
|
|
2937
|
+
* indicates a temporary redirect
|
|
2938
|
+
*/
|
|
2939
|
+
redirect_code: number;
|
|
2940
|
+
|
|
2941
|
+
/**
|
|
2942
|
+
* The internal relative URL. If the specified URL is a redirect, the query returns the redirected URL, not the original
|
|
2943
|
+
*/
|
|
2944
|
+
relative_url?: string;
|
|
2945
|
+
|
|
2946
|
+
/**
|
|
2947
|
+
* One of PRODUCT, CATEGORY, or CMS_PAGE.
|
|
2948
|
+
*/
|
|
2949
|
+
type?: GQLUrlRewriteEntityTypeEnum;
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
export interface GQLPhysicalProductInterface {
|
|
2953
|
+
|
|
2954
|
+
/**
|
|
2955
|
+
* The weight of the item, in units defined by the store.
|
|
2956
|
+
*/
|
|
2957
|
+
weight?: number;
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2960
|
+
export interface GQLCustomizableProductInterface {
|
|
2961
|
+
|
|
2962
|
+
/**
|
|
2963
|
+
* An array of options for a customizable product.
|
|
2964
|
+
*/
|
|
2965
|
+
options?: Array<GQLCustomizableOptionInterface | null>;
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
export interface GQLCategoryInterface {
|
|
2969
|
+
available_sort_by?: Array<string | null>;
|
|
2970
|
+
|
|
2971
|
+
/**
|
|
2972
|
+
* Breadcrumbs, parent categories info.
|
|
2973
|
+
*/
|
|
2974
|
+
breadcrumbs?: Array<GQLBreadcrumb | null>;
|
|
2975
|
+
|
|
2976
|
+
/**
|
|
2977
|
+
* Relative canonical URL. This value is returned only if the system setting 'Use
|
|
2978
|
+
* Canonical Link Meta Tag For Categories' is enabled
|
|
2979
|
+
*/
|
|
2980
|
+
canonical_url?: string;
|
|
2981
|
+
children_count?: string;
|
|
2982
|
+
|
|
2983
|
+
/**
|
|
2984
|
+
* Category CMS Block.
|
|
2985
|
+
*/
|
|
2986
|
+
cms_block?: GQLCmsBlock;
|
|
2987
|
+
|
|
2988
|
+
/**
|
|
2989
|
+
* Timestamp indicating when the category was created.
|
|
2990
|
+
* @deprecated The field should not be used on the storefront.
|
|
2991
|
+
*/
|
|
2992
|
+
created_at?: string;
|
|
2993
|
+
custom_layout_update_file?: string;
|
|
2994
|
+
|
|
2995
|
+
/**
|
|
2996
|
+
* The attribute to use for sorting.
|
|
2997
|
+
*/
|
|
2998
|
+
default_sort_by?: string;
|
|
2999
|
+
|
|
3000
|
+
/**
|
|
3001
|
+
* An optional description of the category.
|
|
3002
|
+
*/
|
|
3003
|
+
description?: string;
|
|
3004
|
+
|
|
3005
|
+
/**
|
|
3006
|
+
* Category display mode (products only, static block only, both)
|
|
3007
|
+
*/
|
|
3008
|
+
display_mode?: string;
|
|
3009
|
+
filter_price_range?: number;
|
|
3010
|
+
|
|
3011
|
+
/**
|
|
3012
|
+
* An ID that uniquely identifies the category.
|
|
3013
|
+
* @deprecated Use the `uid` argument instead.
|
|
3014
|
+
*/
|
|
3015
|
+
id?: number;
|
|
3016
|
+
image?: string;
|
|
3017
|
+
include_in_menu?: number;
|
|
3018
|
+
is_anchor?: number;
|
|
3019
|
+
landing_page?: number;
|
|
3020
|
+
|
|
3021
|
+
/**
|
|
3022
|
+
* Indicates the depth of the category within the tree.
|
|
3023
|
+
*/
|
|
3024
|
+
level?: number;
|
|
3025
|
+
meta_description?: string;
|
|
3026
|
+
meta_keywords?: string;
|
|
3027
|
+
meta_title?: string;
|
|
3028
|
+
|
|
3029
|
+
/**
|
|
3030
|
+
* The display name of the category.
|
|
3031
|
+
*/
|
|
3032
|
+
name?: string;
|
|
3033
|
+
|
|
3034
|
+
/**
|
|
3035
|
+
* Category Path.
|
|
3036
|
+
*/
|
|
3037
|
+
path?: string;
|
|
3038
|
+
|
|
3039
|
+
/**
|
|
3040
|
+
* Category path in store.
|
|
3041
|
+
*/
|
|
3042
|
+
path_in_store?: string;
|
|
3043
|
+
|
|
3044
|
+
/**
|
|
3045
|
+
* The position of the category relative to other categories at the same level in tree.
|
|
3046
|
+
*/
|
|
3047
|
+
position?: number;
|
|
3048
|
+
|
|
3049
|
+
/**
|
|
3050
|
+
* The number of products in the category that are marked as visible. By default,
|
|
3051
|
+
* in complex products, parent products are visible, but their child products are not.
|
|
3052
|
+
*/
|
|
3053
|
+
product_count?: number;
|
|
3054
|
+
|
|
3055
|
+
/**
|
|
3056
|
+
* The list of products assigned to the category.
|
|
3057
|
+
*/
|
|
3058
|
+
products?: GQLCategoryProducts;
|
|
3059
|
+
|
|
3060
|
+
/**
|
|
3061
|
+
* The unique ID for a `CategoryInterface` object.
|
|
3062
|
+
*/
|
|
3063
|
+
uid: string;
|
|
3064
|
+
|
|
3065
|
+
/**
|
|
3066
|
+
* Timestamp indicating when the category was updated.
|
|
3067
|
+
* @deprecated The field should not be used on the storefront.
|
|
3068
|
+
*/
|
|
3069
|
+
updated_at?: string;
|
|
3070
|
+
url?: string;
|
|
3071
|
+
|
|
3072
|
+
/**
|
|
3073
|
+
* The url key assigned to the category.
|
|
3074
|
+
*/
|
|
3075
|
+
url_key?: string;
|
|
3076
|
+
|
|
3077
|
+
/**
|
|
3078
|
+
* The url path assigned to the category.
|
|
3079
|
+
*/
|
|
3080
|
+
url_path?: string;
|
|
3081
|
+
|
|
3082
|
+
/**
|
|
3083
|
+
* The part of the category URL that is appended after the url key
|
|
3084
|
+
*/
|
|
3085
|
+
url_suffix?: string;
|
|
3086
|
+
}
|
|
3087
|
+
|
|
3088
|
+
export interface GQLConfigurableProductOptions {
|
|
3089
|
+
|
|
3090
|
+
/**
|
|
3091
|
+
* A string that identifies the attribute
|
|
3092
|
+
*/
|
|
3093
|
+
attribute_code?: string;
|
|
3094
|
+
|
|
3095
|
+
/**
|
|
3096
|
+
* The ID assigned to the attribute
|
|
3097
|
+
* @deprecated Use attribute_uid instead
|
|
3098
|
+
*/
|
|
3099
|
+
attribute_id?: string;
|
|
3100
|
+
|
|
3101
|
+
/**
|
|
3102
|
+
* The ID assigned to the attribute
|
|
3103
|
+
* @deprecated Use attribute_uid instead
|
|
3104
|
+
*/
|
|
3105
|
+
attribute_id_v2?: number;
|
|
3106
|
+
|
|
3107
|
+
/**
|
|
3108
|
+
* The unique ID for a `Attribute` object
|
|
3109
|
+
*/
|
|
3110
|
+
attribute_uid: string;
|
|
3111
|
+
|
|
3112
|
+
/**
|
|
3113
|
+
* The configurable option ID number assigned by the system
|
|
3114
|
+
* @deprecated Use uid instead
|
|
3115
|
+
*/
|
|
3116
|
+
id?: number;
|
|
3117
|
+
|
|
3118
|
+
/**
|
|
3119
|
+
* A string that describes the configurable product option, which is displayed on the UI
|
|
3120
|
+
*/
|
|
3121
|
+
label?: string;
|
|
3122
|
+
|
|
3123
|
+
/**
|
|
3124
|
+
* A number that indicates the order in which the attribute is displayed
|
|
3125
|
+
*/
|
|
3126
|
+
position?: number;
|
|
3127
|
+
|
|
3128
|
+
/**
|
|
3129
|
+
* This is the same as a product's id field
|
|
3130
|
+
* @deprecated `product_id` is not needed and can be obtained from it's parent
|
|
3131
|
+
*/
|
|
3132
|
+
product_id?: number;
|
|
3133
|
+
|
|
3134
|
+
/**
|
|
3135
|
+
* The unique ID for a `ConfigurableProductOptions` object
|
|
3136
|
+
*/
|
|
3137
|
+
uid: string;
|
|
3138
|
+
|
|
3139
|
+
/**
|
|
3140
|
+
* Indicates whether the option is the default
|
|
3141
|
+
*/
|
|
3142
|
+
use_default?: boolean;
|
|
3143
|
+
|
|
3144
|
+
/**
|
|
3145
|
+
* An array that defines the value_index codes assigned to the configurable product
|
|
3146
|
+
*/
|
|
3147
|
+
values?: Array<GQLConfigurableProductOptionsValues | null>;
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3150
|
+
export interface GQLConfigurableProductOptionsSelection {
|
|
3151
|
+
|
|
3152
|
+
/**
|
|
3153
|
+
* Configurable options available for further selection based on current selection.
|
|
3154
|
+
*/
|
|
3155
|
+
configurable_options?: Array<GQLConfigurableProductOption | null>;
|
|
3156
|
+
|
|
3157
|
+
/**
|
|
3158
|
+
* Product images and videos corresponding to the specified configurable options selection.
|
|
3159
|
+
*/
|
|
3160
|
+
media_gallery?: Array<GQLMediaGalleryInterface | null>;
|
|
3161
|
+
|
|
3162
|
+
/**
|
|
3163
|
+
* Configurable options available for further selection based on current selection.
|
|
3164
|
+
*/
|
|
3165
|
+
options_available_for_selection?: Array<GQLConfigurableOptionAvailableForSelection | null>;
|
|
3166
|
+
|
|
3167
|
+
/**
|
|
3168
|
+
* Variant represented by the specified configurable options selection. It is
|
|
3169
|
+
* expected to be null, until selections are made for each configurable option.
|
|
3170
|
+
*/
|
|
3171
|
+
variant?: GQLSimpleProduct;
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
export interface GQLComplexTextValue {
|
|
3175
|
+
|
|
3176
|
+
/**
|
|
3177
|
+
* HTML format
|
|
3178
|
+
*/
|
|
3179
|
+
html: string;
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
export interface GQLOptimizedProductImage {
|
|
3183
|
+
label?: string;
|
|
3184
|
+
path?: string;
|
|
3185
|
+
url?: string;
|
|
3186
|
+
}
|
|
3187
|
+
|
|
3188
|
+
export interface GQLMediaGalleryInterface {
|
|
3189
|
+
|
|
3190
|
+
/**
|
|
3191
|
+
* Whether the image is hidden from view.
|
|
3192
|
+
*/
|
|
3193
|
+
disabled?: boolean;
|
|
3194
|
+
|
|
3195
|
+
/**
|
|
3196
|
+
* The label of the product image or video.
|
|
3197
|
+
*/
|
|
3198
|
+
label?: string;
|
|
3199
|
+
|
|
3200
|
+
/**
|
|
3201
|
+
* The media item's position after it has been sorted.
|
|
3202
|
+
*/
|
|
3203
|
+
position?: number;
|
|
3204
|
+
|
|
3205
|
+
/**
|
|
3206
|
+
* The URL of the product image or video.
|
|
3207
|
+
*/
|
|
3208
|
+
url?: string;
|
|
3209
|
+
}
|
|
3210
|
+
|
|
3211
|
+
export interface GQLMediaGalleryEntry {
|
|
3212
|
+
|
|
3213
|
+
/**
|
|
3214
|
+
* The path of the base image on the server
|
|
3215
|
+
*/
|
|
3216
|
+
base?: GQLMediaGalleryImageOfType;
|
|
3217
|
+
|
|
3218
|
+
/**
|
|
3219
|
+
* Contains a ProductMediaGalleryEntriesContent object.
|
|
3220
|
+
*/
|
|
3221
|
+
content?: GQLProductMediaGalleryEntriesContent;
|
|
3222
|
+
|
|
3223
|
+
/**
|
|
3224
|
+
* Whether the image is hidden from view.
|
|
3225
|
+
*/
|
|
3226
|
+
disabled?: boolean;
|
|
3227
|
+
|
|
3228
|
+
/**
|
|
3229
|
+
* The path of the image on the server.
|
|
3230
|
+
*/
|
|
3231
|
+
file?: string;
|
|
3232
|
+
|
|
3233
|
+
/**
|
|
3234
|
+
* The identifier assigned to the object.
|
|
3235
|
+
* @deprecated Use `uid` instead.
|
|
3236
|
+
*/
|
|
3237
|
+
id?: number;
|
|
3238
|
+
|
|
3239
|
+
/**
|
|
3240
|
+
* The alt text displayed on the UI when the user points to the image.
|
|
3241
|
+
*/
|
|
3242
|
+
label?: string;
|
|
3243
|
+
|
|
3244
|
+
/**
|
|
3245
|
+
* The path of the large image on the server
|
|
3246
|
+
*/
|
|
3247
|
+
large?: GQLMediaGalleryImageOfType;
|
|
3248
|
+
|
|
3249
|
+
/**
|
|
3250
|
+
* image or video.
|
|
3251
|
+
*/
|
|
3252
|
+
media_type?: string;
|
|
3253
|
+
|
|
3254
|
+
/**
|
|
3255
|
+
* The media item's position after it has been sorted.
|
|
3256
|
+
*/
|
|
3257
|
+
position?: number;
|
|
3258
|
+
|
|
3259
|
+
/**
|
|
3260
|
+
* The path of the thumbnail image on the server
|
|
3261
|
+
*/
|
|
3262
|
+
thumbnail?: GQLMediaGalleryImageOfType;
|
|
3263
|
+
|
|
3264
|
+
/**
|
|
3265
|
+
* Array of image types. It can have the following values: image, small_image, thumbnail.
|
|
3266
|
+
*/
|
|
3267
|
+
types?: Array<string | null>;
|
|
3268
|
+
|
|
3269
|
+
/**
|
|
3270
|
+
* The unique ID for a `MediaGalleryEntry` object.
|
|
3271
|
+
*/
|
|
3272
|
+
uid: string;
|
|
3273
|
+
|
|
3274
|
+
/**
|
|
3275
|
+
* Contains a ProductMediaGalleryEntriesVideoContent object.
|
|
3276
|
+
*/
|
|
3277
|
+
video_content?: GQLProductMediaGalleryEntriesVideoContent;
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
export interface GQLCustomizableOptionInterface {
|
|
3281
|
+
|
|
3282
|
+
/**
|
|
3283
|
+
* Option ID.
|
|
3284
|
+
* @deprecated Use `uid` instead
|
|
3285
|
+
*/
|
|
3286
|
+
option_id?: number;
|
|
3287
|
+
|
|
3288
|
+
/**
|
|
3289
|
+
* Indicates whether the option is required.
|
|
3290
|
+
*/
|
|
3291
|
+
required?: boolean;
|
|
3292
|
+
|
|
3293
|
+
/**
|
|
3294
|
+
* The order in which the option is displayed.
|
|
3295
|
+
*/
|
|
3296
|
+
sort_order?: number;
|
|
3297
|
+
|
|
3298
|
+
/**
|
|
3299
|
+
* The display name for this option.
|
|
3300
|
+
*/
|
|
3301
|
+
title?: string;
|
|
3302
|
+
type?: string;
|
|
3303
|
+
|
|
3304
|
+
/**
|
|
3305
|
+
* The unique ID for a `CustomizableOptionInterface` object.
|
|
3306
|
+
*/
|
|
3307
|
+
uid: string;
|
|
3308
|
+
}
|
|
3309
|
+
|
|
3310
|
+
export interface GQLProductPrices {
|
|
3311
|
+
|
|
3312
|
+
/**
|
|
3313
|
+
* The highest possible final price for all the options defined within a
|
|
3314
|
+
* composite product. If you are specifying a price range, this would be the to value.
|
|
3315
|
+
* @deprecated Use PriceRange.maximum_price.
|
|
3316
|
+
*/
|
|
3317
|
+
maximalPrice?: GQLPrice;
|
|
3318
|
+
|
|
3319
|
+
/**
|
|
3320
|
+
* The lowest possible final price for all the options defined within a composite
|
|
3321
|
+
* product. If you are specifying a price range, this would be the from value.
|
|
3322
|
+
* @deprecated Use PriceRange.minimum_price.
|
|
3323
|
+
*/
|
|
3324
|
+
minimalPrice?: GQLPrice;
|
|
3325
|
+
|
|
3326
|
+
/**
|
|
3327
|
+
* The base price of a product.
|
|
3328
|
+
* @deprecated Use regular_price from PriceRange.minimum_price or PriceRange.maximum_price.
|
|
3329
|
+
*/
|
|
3330
|
+
regularPrice?: GQLPrice;
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3333
|
+
export interface GQLPriceRange {
|
|
3334
|
+
|
|
3335
|
+
/**
|
|
3336
|
+
* The highest possible price for the product.
|
|
3337
|
+
*/
|
|
3338
|
+
maximum_price?: GQLProductPrice;
|
|
3339
|
+
|
|
3340
|
+
/**
|
|
3341
|
+
* The lowest possible price for the product.
|
|
3342
|
+
*/
|
|
3343
|
+
minimum_price: GQLProductPrice;
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
export interface GQLTierPrice {
|
|
3347
|
+
|
|
3348
|
+
/**
|
|
3349
|
+
* The price discount that this tier represents.
|
|
3350
|
+
*/
|
|
3351
|
+
discount?: GQLProductDiscount;
|
|
3352
|
+
final_price?: GQLMoney;
|
|
3353
|
+
|
|
3354
|
+
/**
|
|
3355
|
+
* The minimum number of items that must be purchased to qualify for this price tier.
|
|
3356
|
+
*/
|
|
3357
|
+
quantity?: number;
|
|
3358
|
+
}
|
|
3359
|
+
|
|
3360
|
+
export interface GQLProductLinksInterface {
|
|
3361
|
+
|
|
3362
|
+
/**
|
|
3363
|
+
* One of related, associated, upsell, or crosssell.
|
|
3364
|
+
*/
|
|
3365
|
+
link_type?: string;
|
|
3366
|
+
|
|
3367
|
+
/**
|
|
3368
|
+
* The SKU of the linked product.
|
|
3369
|
+
*/
|
|
3370
|
+
linked_product_sku?: string;
|
|
3371
|
+
|
|
3372
|
+
/**
|
|
3373
|
+
* The type of linked product (simple, virtual, bundle, downloadable, grouped, configurable).
|
|
3374
|
+
*/
|
|
3375
|
+
linked_product_type?: string;
|
|
3376
|
+
|
|
3377
|
+
/**
|
|
3378
|
+
* The position within the list of product links.
|
|
3379
|
+
*/
|
|
3380
|
+
position?: number;
|
|
3381
|
+
|
|
3382
|
+
/**
|
|
3383
|
+
* The identifier of the linked product.
|
|
3384
|
+
*/
|
|
3385
|
+
sku?: string;
|
|
3386
|
+
}
|
|
3387
|
+
|
|
3388
|
+
export interface GQLProductReviews {
|
|
3389
|
+
|
|
3390
|
+
/**
|
|
3391
|
+
* An array of product reviews.
|
|
3392
|
+
*/
|
|
3393
|
+
items: Array<GQLProductReview | null>;
|
|
3394
|
+
|
|
3395
|
+
/**
|
|
3396
|
+
* Metadata for pagination rendering.
|
|
3397
|
+
*/
|
|
3398
|
+
page_info: GQLSearchResultPageInfo;
|
|
3399
|
+
}
|
|
3400
|
+
|
|
3401
|
+
export interface GQLAttributeWithValue {
|
|
3402
|
+
attribute_code?: string;
|
|
3403
|
+
attribute_group_code?: string;
|
|
3404
|
+
attribute_group_id?: string;
|
|
3405
|
+
attribute_group_name?: string;
|
|
3406
|
+
attribute_id?: number;
|
|
3407
|
+
attribute_label?: string;
|
|
3408
|
+
attribute_options?: Array<GQLAttributeWithValueOption | null>;
|
|
3409
|
+
attribute_type?: string;
|
|
3410
|
+
attribute_value?: string;
|
|
3411
|
+
entity_type?: string;
|
|
3412
|
+
used_in_product_listing?: boolean;
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
export interface GQLProductStockItem {
|
|
3416
|
+
|
|
3417
|
+
/**
|
|
3418
|
+
* Product in stock status
|
|
3419
|
+
*/
|
|
3420
|
+
in_stock?: boolean;
|
|
3421
|
+
|
|
3422
|
+
/**
|
|
3423
|
+
* Maximal amount of item that can be bought
|
|
3424
|
+
*/
|
|
3425
|
+
max_sale_qty?: number;
|
|
3426
|
+
|
|
3427
|
+
/**
|
|
3428
|
+
* Minimal amount of item that can be bought
|
|
3429
|
+
*/
|
|
3430
|
+
min_sale_qty?: number;
|
|
3431
|
+
|
|
3432
|
+
/**
|
|
3433
|
+
* Product quantity available in stock
|
|
3434
|
+
*/
|
|
3435
|
+
qty?: number;
|
|
3436
|
+
|
|
3437
|
+
/**
|
|
3438
|
+
* Increment for number of items that can be bought
|
|
3439
|
+
*/
|
|
3440
|
+
qty_increments?: number;
|
|
3441
|
+
}
|
|
3442
|
+
|
|
3443
|
+
export interface GQLProductTierPrices {
|
|
3444
|
+
|
|
3445
|
+
/**
|
|
3446
|
+
* The ID of the customer group.
|
|
3447
|
+
* @deprecated customer_group_id is not relevant for storefront.
|
|
3448
|
+
*/
|
|
3449
|
+
customer_group_id?: string;
|
|
3450
|
+
|
|
3451
|
+
/**
|
|
3452
|
+
* The percentage discount of the item.
|
|
3453
|
+
* @deprecated ProductTierPrices is deprecated. Use TierPrice.discount.
|
|
3454
|
+
*/
|
|
3455
|
+
percentage_value?: number;
|
|
3456
|
+
|
|
3457
|
+
/**
|
|
3458
|
+
* The number of items that must be purchased to qualify for tier pricing.
|
|
3459
|
+
* @deprecated ProductTierPrices is deprecated, use TierPrice.quantity.
|
|
3460
|
+
*/
|
|
3461
|
+
qty?: number;
|
|
3462
|
+
|
|
3463
|
+
/**
|
|
3464
|
+
* The price of the fixed price item.
|
|
3465
|
+
* @deprecated ProductTierPrices is deprecated. Use TierPrice.final_price
|
|
3466
|
+
*/
|
|
3467
|
+
value?: number;
|
|
3468
|
+
|
|
3469
|
+
/**
|
|
3470
|
+
* The ID assigned to the website.
|
|
3471
|
+
* @deprecated website_id is not relevant for storefront.
|
|
3472
|
+
*/
|
|
3473
|
+
website_id?: number;
|
|
3474
|
+
}
|
|
3475
|
+
|
|
3476
|
+
export interface GQLUrlRewrite {
|
|
3477
|
+
|
|
3478
|
+
/**
|
|
3479
|
+
* Request parameters
|
|
3480
|
+
*/
|
|
3481
|
+
parameters?: Array<GQLHttpQueryParameter | null>;
|
|
3482
|
+
|
|
3483
|
+
/**
|
|
3484
|
+
* Request URL
|
|
3485
|
+
*/
|
|
3486
|
+
url?: string;
|
|
3487
|
+
}
|
|
3488
|
+
|
|
3489
|
+
export interface GQLConfigurableVariant {
|
|
3490
|
+
attributes?: Array<GQLConfigurableAttributeOption | null>;
|
|
3491
|
+
product?: GQLSimpleProduct;
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3494
|
+
export interface GQLWebsite {
|
|
3495
|
+
|
|
3496
|
+
/**
|
|
3497
|
+
* A code assigned to the website to identify it
|
|
3498
|
+
* @deprecated The field should not be used on the storefront.
|
|
3499
|
+
*/
|
|
3500
|
+
code?: string;
|
|
3501
|
+
|
|
3502
|
+
/**
|
|
3503
|
+
* The default group ID that the website has
|
|
3504
|
+
* @deprecated The field should not be used on the storefront.
|
|
3505
|
+
*/
|
|
3506
|
+
default_group_id?: string;
|
|
3507
|
+
|
|
3508
|
+
/**
|
|
3509
|
+
* The ID number assigned to the website
|
|
3510
|
+
* @deprecated The field should not be used on the storefront.
|
|
3511
|
+
*/
|
|
3512
|
+
id?: number;
|
|
3513
|
+
|
|
3514
|
+
/**
|
|
3515
|
+
* Specifies if this is the default website
|
|
3516
|
+
* @deprecated The field should not be used on the storefront.
|
|
3517
|
+
*/
|
|
3518
|
+
is_default?: boolean;
|
|
3519
|
+
|
|
3520
|
+
/**
|
|
3521
|
+
* The website name. Websites use this name to identify it easier.
|
|
3522
|
+
* @deprecated The field should not be used on the storefront.
|
|
3523
|
+
*/
|
|
3524
|
+
name?: string;
|
|
3525
|
+
|
|
3526
|
+
/**
|
|
3527
|
+
* The attribute to use for sorting websites
|
|
3528
|
+
* @deprecated The field should not be used on the storefront.
|
|
3529
|
+
*/
|
|
3530
|
+
sort_order?: number;
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
export interface GQLBreadcrumb {
|
|
3534
|
+
|
|
3535
|
+
/**
|
|
3536
|
+
* Category ID.
|
|
3537
|
+
* @deprecated Use the `category_uid` argument instead.
|
|
3538
|
+
*/
|
|
3539
|
+
category_id?: number;
|
|
3540
|
+
|
|
3541
|
+
/**
|
|
3542
|
+
* Is category active
|
|
3543
|
+
*/
|
|
3544
|
+
category_is_active?: boolean;
|
|
3545
|
+
|
|
3546
|
+
/**
|
|
3547
|
+
* Category level.
|
|
3548
|
+
*/
|
|
3549
|
+
category_level?: number;
|
|
3550
|
+
|
|
3551
|
+
/**
|
|
3552
|
+
* Category name.
|
|
3553
|
+
*/
|
|
3554
|
+
category_name?: string;
|
|
3555
|
+
|
|
3556
|
+
/**
|
|
3557
|
+
* The unique ID for a `Breadcrumb` object.
|
|
3558
|
+
*/
|
|
3559
|
+
category_uid: string;
|
|
3560
|
+
|
|
3561
|
+
/**
|
|
3562
|
+
* Trimmed URL rewrite
|
|
3563
|
+
*/
|
|
3564
|
+
category_url?: string;
|
|
3565
|
+
|
|
3566
|
+
/**
|
|
3567
|
+
* Category URL key.
|
|
3568
|
+
*/
|
|
3569
|
+
category_url_key?: string;
|
|
3570
|
+
|
|
3571
|
+
/**
|
|
3572
|
+
* Category URL path.
|
|
3573
|
+
*/
|
|
3574
|
+
category_url_path?: string;
|
|
3575
|
+
}
|
|
3576
|
+
|
|
3577
|
+
export interface GQLCmsBlock {
|
|
3578
|
+
|
|
3579
|
+
/**
|
|
3580
|
+
* CMS block content
|
|
3581
|
+
*/
|
|
3582
|
+
content?: string;
|
|
3583
|
+
|
|
3584
|
+
/**
|
|
3585
|
+
* CMS block is disabled
|
|
3586
|
+
*/
|
|
3587
|
+
disabled?: boolean;
|
|
3588
|
+
|
|
3589
|
+
/**
|
|
3590
|
+
* CMS block identifier
|
|
3591
|
+
*/
|
|
3592
|
+
identifier?: string;
|
|
3593
|
+
|
|
3594
|
+
/**
|
|
3595
|
+
* CMS block title
|
|
3596
|
+
*/
|
|
3597
|
+
title?: string;
|
|
3598
|
+
}
|
|
3599
|
+
|
|
3600
|
+
export interface GQLCategoryProducts {
|
|
3601
|
+
|
|
3602
|
+
/**
|
|
3603
|
+
* An array of products that are assigned to the category.
|
|
3604
|
+
*/
|
|
3605
|
+
items?: Array<GQLProductInterface | null>;
|
|
3606
|
+
|
|
3607
|
+
/**
|
|
3608
|
+
* An object that includes the page_info and currentPage values specified in the query.
|
|
3609
|
+
*/
|
|
3610
|
+
page_info?: GQLSearchResultPageInfo;
|
|
3611
|
+
|
|
3612
|
+
/**
|
|
3613
|
+
* The number of products in the category that are marked as visible. By default,
|
|
3614
|
+
* in complex products, parent products are visible, but their child products are not.
|
|
3615
|
+
*/
|
|
3616
|
+
total_count?: number;
|
|
3617
|
+
}
|
|
3618
|
+
|
|
3619
|
+
export interface GQLConfigurableProductOptionsValues {
|
|
3620
|
+
|
|
3621
|
+
/**
|
|
3622
|
+
* The label of the product on the default store
|
|
3623
|
+
*/
|
|
3624
|
+
default_label?: string;
|
|
3625
|
+
|
|
3626
|
+
/**
|
|
3627
|
+
* The label of the product
|
|
3628
|
+
*/
|
|
3629
|
+
label?: string;
|
|
3630
|
+
|
|
3631
|
+
/**
|
|
3632
|
+
* The label of the product on the current store
|
|
3633
|
+
*/
|
|
3634
|
+
store_label?: string;
|
|
3635
|
+
|
|
3636
|
+
/**
|
|
3637
|
+
* Swatch data for configurable product option
|
|
3638
|
+
*/
|
|
3639
|
+
swatch_data?: GQLSwatchDataInterface;
|
|
3640
|
+
|
|
3641
|
+
/**
|
|
3642
|
+
* The unique ID for a `ConfigurableProductOptionsValues` object
|
|
3643
|
+
*/
|
|
3644
|
+
uid?: string;
|
|
3645
|
+
|
|
3646
|
+
/**
|
|
3647
|
+
* Indicates whether to use the default_label
|
|
3648
|
+
*/
|
|
3649
|
+
use_default_value?: boolean;
|
|
3650
|
+
|
|
3651
|
+
/**
|
|
3652
|
+
* A unique index number assigned to the configurable product option
|
|
3653
|
+
* @deprecated Use `uid` instead
|
|
3654
|
+
*/
|
|
3655
|
+
value_index?: number;
|
|
3656
|
+
}
|
|
3657
|
+
|
|
3658
|
+
export interface GQLConfigurableProductOption {
|
|
3659
|
+
attribute_code: string;
|
|
3660
|
+
label: string;
|
|
3661
|
+
uid: string;
|
|
3662
|
+
values?: Array<GQLConfigurableProductOptionValue | null>;
|
|
3663
|
+
}
|
|
3664
|
+
|
|
3665
|
+
export interface GQLConfigurableOptionAvailableForSelection {
|
|
3666
|
+
|
|
3667
|
+
/**
|
|
3668
|
+
* Attribute code that uniquely identifies configurable option.
|
|
3669
|
+
*/
|
|
3670
|
+
attribute_code: string;
|
|
3671
|
+
|
|
3672
|
+
/**
|
|
3673
|
+
* Configurable option values available for further selection.
|
|
3674
|
+
*/
|
|
3675
|
+
option_value_uids: Array<string | null>;
|
|
3676
|
+
}
|
|
3677
|
+
|
|
3678
|
+
export interface GQLSimpleProduct extends
|
|
3679
|
+
GQLProductInterface,
|
|
3680
|
+
GQLRoutableInterface,
|
|
3681
|
+
GQLPhysicalProductInterface,
|
|
3682
|
+
GQLCustomizableProductInterface {
|
|
3683
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3684
|
+
New_attribute_size?: number;
|
|
3685
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3686
|
+
New_multiple_attribute?: string;
|
|
3687
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3688
|
+
Test_Ainars?: number;
|
|
3689
|
+
attribute_allows_html?: string;
|
|
3690
|
+
|
|
3691
|
+
/**
|
|
3692
|
+
* The attribute set assigned to the product.
|
|
3693
|
+
* @deprecated The field should not be used on the storefront.
|
|
3694
|
+
*/
|
|
3695
|
+
attribute_set_id?: number;
|
|
3696
|
+
brand?: string;
|
|
3697
|
+
|
|
3698
|
+
/**
|
|
3699
|
+
* Relative canonical URL. This value is returned only if the system setting 'Use
|
|
3700
|
+
* Canonical Link Meta Tag For Products' is enabled
|
|
3701
|
+
*/
|
|
3702
|
+
canonical_url?: string;
|
|
3703
|
+
|
|
3704
|
+
/**
|
|
3705
|
+
* The categories assigned to a product.
|
|
3706
|
+
*/
|
|
3707
|
+
categories?: Array<GQLCategoryInterface | null>;
|
|
3708
|
+
clothing_colour?: number;
|
|
3709
|
+
clothing_gender?: number;
|
|
3710
|
+
clothing_size?: number;
|
|
3711
|
+
clothing_type?: number;
|
|
3712
|
+
color?: number;
|
|
3713
|
+
color_elena?: number;
|
|
3714
|
+
colors_with_images?: number;
|
|
3715
|
+
|
|
3716
|
+
/**
|
|
3717
|
+
* The product's country of origin.
|
|
3718
|
+
*/
|
|
3719
|
+
country_of_manufacture?: string;
|
|
3720
|
+
|
|
3721
|
+
/**
|
|
3722
|
+
* Timestamp indicating when the product was created.
|
|
3723
|
+
* @deprecated The field should not be used on the storefront.
|
|
3724
|
+
*/
|
|
3725
|
+
created_at?: string;
|
|
3726
|
+
|
|
3727
|
+
/**
|
|
3728
|
+
* Crosssell Products
|
|
3729
|
+
*/
|
|
3730
|
+
crosssell_products?: Array<GQLProductInterface | null>;
|
|
3731
|
+
|
|
3732
|
+
/**
|
|
3733
|
+
* Detailed information about the product. The value can include simple HTML tags.
|
|
3734
|
+
*/
|
|
3735
|
+
description?: GQLComplexTextValue;
|
|
3736
|
+
fit?: number;
|
|
3737
|
+
|
|
3738
|
+
/**
|
|
3739
|
+
* Indicates whether a gift message is available.
|
|
3740
|
+
*/
|
|
3741
|
+
gift_message_available?: string;
|
|
3742
|
+
|
|
3743
|
+
/**
|
|
3744
|
+
* The ID number assigned to the product.
|
|
3745
|
+
* @deprecated Use the `uid` field instead.
|
|
3746
|
+
*/
|
|
3747
|
+
id?: number;
|
|
3748
|
+
|
|
3749
|
+
/**
|
|
3750
|
+
* The relative path to the main image on the product page.
|
|
3751
|
+
*/
|
|
3752
|
+
image?: GQLOptimizedProductImage;
|
|
3753
|
+
images_type_map?: number;
|
|
3754
|
+
license_key?: string;
|
|
3755
|
+
|
|
3756
|
+
/**
|
|
3757
|
+
* A number representing the product's manufacturer.
|
|
3758
|
+
*/
|
|
3759
|
+
manufacturer?: number;
|
|
3760
|
+
material?: string;
|
|
3761
|
+
|
|
3762
|
+
/**
|
|
3763
|
+
* An array of Media Gallery objects.
|
|
3764
|
+
*/
|
|
3765
|
+
media_gallery?: Array<GQLMediaGalleryInterface | null>;
|
|
3766
|
+
|
|
3767
|
+
/**
|
|
3768
|
+
* An array of MediaGalleryEntry objects.
|
|
3769
|
+
* @deprecated Use product's `media_gallery` instead
|
|
3770
|
+
*/
|
|
3771
|
+
media_gallery_entries?: Array<GQLMediaGalleryEntry | null>;
|
|
3772
|
+
memory?: number;
|
|
3773
|
+
|
|
3774
|
+
/**
|
|
3775
|
+
* A brief overview of the product for search results listings, maximum 255 characters.
|
|
3776
|
+
*/
|
|
3777
|
+
meta_description?: string;
|
|
3778
|
+
|
|
3779
|
+
/**
|
|
3780
|
+
* A comma-separated list of keywords that are visible only to search engines.
|
|
3781
|
+
*/
|
|
3782
|
+
meta_keyword?: string;
|
|
3783
|
+
|
|
3784
|
+
/**
|
|
3785
|
+
* A string that is displayed in the title bar and tab of the browser and in search results lists.
|
|
3786
|
+
*/
|
|
3787
|
+
meta_title?: string;
|
|
3788
|
+
multiple_attribute?: string;
|
|
3789
|
+
|
|
3790
|
+
/**
|
|
3791
|
+
* The product name. Customers use this name to identify the product.
|
|
3792
|
+
*/
|
|
3793
|
+
name?: string;
|
|
3794
|
+
|
|
3795
|
+
/**
|
|
3796
|
+
* The beginning date for new product listings, and determines if the product is featured as a new product.
|
|
3797
|
+
* @deprecated The field should not be used on the storefront.
|
|
3798
|
+
*/
|
|
3799
|
+
new_from_date?: string;
|
|
3800
|
+
|
|
3801
|
+
/**
|
|
3802
|
+
* The end date for new product listings.
|
|
3803
|
+
* @deprecated The field should not be used on the storefront.
|
|
3804
|
+
*/
|
|
3805
|
+
new_to_date?: string;
|
|
3806
|
+
|
|
3807
|
+
/**
|
|
3808
|
+
* Product stock only x left count
|
|
3809
|
+
*/
|
|
3810
|
+
only_x_left_in_stock?: number;
|
|
3811
|
+
|
|
3812
|
+
/**
|
|
3813
|
+
* An array of options for a customizable product.
|
|
3814
|
+
*/
|
|
3815
|
+
options?: Array<GQLCustomizableOptionInterface | null>;
|
|
3816
|
+
|
|
3817
|
+
/**
|
|
3818
|
+
* If the product has multiple options, determines where they appear on the product page.
|
|
3819
|
+
*/
|
|
3820
|
+
options_container?: string;
|
|
3821
|
+
original_price?: number;
|
|
3822
|
+
|
|
3823
|
+
/**
|
|
3824
|
+
* A ProductPrices object, indicating the price of an item.
|
|
3825
|
+
* @deprecated Use price_range for product price information.
|
|
3826
|
+
*/
|
|
3827
|
+
price?: GQLProductPrices;
|
|
3828
|
+
|
|
3829
|
+
/**
|
|
3830
|
+
* A PriceRange object, indicating the range of prices for the product
|
|
3831
|
+
*/
|
|
3832
|
+
price_range: GQLPriceRange;
|
|
3833
|
+
|
|
3834
|
+
/**
|
|
3835
|
+
* An array of TierPrice objects.
|
|
3836
|
+
*/
|
|
3837
|
+
price_tiers?: Array<GQLTierPrice | null>;
|
|
3838
|
+
|
|
3839
|
+
/**
|
|
3840
|
+
* An array of ProductLinks objects.
|
|
3841
|
+
*/
|
|
3842
|
+
product_links?: Array<GQLProductLinksInterface | null>;
|
|
3843
|
+
|
|
3844
|
+
/**
|
|
3845
|
+
* Qty field for checkout order view
|
|
3846
|
+
*/
|
|
3847
|
+
qty?: number;
|
|
3848
|
+
quantity?: number;
|
|
3849
|
+
ranking?: number;
|
|
3850
|
+
|
|
3851
|
+
/**
|
|
3852
|
+
* The average of all the ratings given to the product.
|
|
3853
|
+
*/
|
|
3854
|
+
rating_summary: number;
|
|
3855
|
+
|
|
3856
|
+
/**
|
|
3857
|
+
* Contains 0 when there is no redirect error. A value of 301 indicates the URL
|
|
3858
|
+
* of the requested resource has been changed permanently, while a value of 302
|
|
3859
|
+
* indicates a temporary redirect
|
|
3860
|
+
*/
|
|
3861
|
+
redirect_code: number;
|
|
3862
|
+
|
|
3863
|
+
/**
|
|
3864
|
+
* Related Products
|
|
3865
|
+
*/
|
|
3866
|
+
related_products?: Array<GQLProductInterface | null>;
|
|
3867
|
+
|
|
3868
|
+
/**
|
|
3869
|
+
* The internal relative URL. If the specified URL is a redirect, the query returns the redirected URL, not the original
|
|
3870
|
+
*/
|
|
3871
|
+
relative_url?: string;
|
|
3872
|
+
|
|
3873
|
+
/**
|
|
3874
|
+
* The total count of all the reviews given to the product.
|
|
3875
|
+
*/
|
|
3876
|
+
review_count: number;
|
|
3877
|
+
|
|
3878
|
+
/**
|
|
3879
|
+
* The list of products reviews.
|
|
3880
|
+
*/
|
|
3881
|
+
reviews: GQLProductReviews;
|
|
3882
|
+
row_total?: number;
|
|
3883
|
+
s_attributes?: Array<GQLAttributeWithValue | null>;
|
|
3884
|
+
salable_qty?: number;
|
|
3885
|
+
shoes_size?: number;
|
|
3886
|
+
|
|
3887
|
+
/**
|
|
3888
|
+
* A short description of the product. Its use depends on the theme.
|
|
3889
|
+
*/
|
|
3890
|
+
short_description?: GQLComplexTextValue;
|
|
3891
|
+
size?: number;
|
|
3892
|
+
|
|
3893
|
+
/**
|
|
3894
|
+
* A number or code assigned to a product to identify the product, options, price, and manufacturer.
|
|
3895
|
+
*/
|
|
3896
|
+
sku?: string;
|
|
3897
|
+
|
|
3898
|
+
/**
|
|
3899
|
+
* The relative path to the small image, which is used on catalog pages.
|
|
3900
|
+
*/
|
|
3901
|
+
small_image?: GQLOptimizedProductImage;
|
|
3902
|
+
|
|
3903
|
+
/**
|
|
3904
|
+
* The beginning date that a product has a special price.
|
|
3905
|
+
* @deprecated The field should not be used on the storefront.
|
|
3906
|
+
*/
|
|
3907
|
+
special_from_date?: string;
|
|
3908
|
+
|
|
3909
|
+
/**
|
|
3910
|
+
* The discounted price of the product.
|
|
3911
|
+
*/
|
|
3912
|
+
special_price?: number;
|
|
3913
|
+
|
|
3914
|
+
/**
|
|
3915
|
+
* The end date that a product has a special price.
|
|
3916
|
+
*/
|
|
3917
|
+
special_to_date?: string;
|
|
3918
|
+
stock_item?: GQLProductStockItem;
|
|
3919
|
+
|
|
3920
|
+
/**
|
|
3921
|
+
* Stock status of the product
|
|
3922
|
+
*/
|
|
3923
|
+
stock_status?: GQLProductStockStatus;
|
|
3924
|
+
|
|
3925
|
+
/**
|
|
3926
|
+
* The file name of a swatch image
|
|
3927
|
+
*/
|
|
3928
|
+
swatch_image?: string;
|
|
3929
|
+
test?: number;
|
|
3930
|
+
texture?: number;
|
|
3931
|
+
|
|
3932
|
+
/**
|
|
3933
|
+
* The relative path to the product's thumbnail image.
|
|
3934
|
+
*/
|
|
3935
|
+
thumbnail?: GQLOptimizedProductImage;
|
|
3936
|
+
|
|
3937
|
+
/**
|
|
3938
|
+
* The price when tier pricing is in effect and the items purchased threshold has been reached.
|
|
3939
|
+
* @deprecated Use price_tiers for product tier price information.
|
|
3940
|
+
*/
|
|
3941
|
+
tier_price?: number;
|
|
3942
|
+
|
|
3943
|
+
/**
|
|
3944
|
+
* An array of ProductTierPrices objects.
|
|
3945
|
+
* @deprecated Use price_tiers for product tier price information.
|
|
3946
|
+
*/
|
|
3947
|
+
tier_prices?: Array<GQLProductTierPrices | null>;
|
|
3948
|
+
|
|
3949
|
+
/**
|
|
3950
|
+
* One of PRODUCT, CATEGORY, or CMS_PAGE.
|
|
3951
|
+
*/
|
|
3952
|
+
type?: GQLUrlRewriteEntityTypeEnum;
|
|
3953
|
+
|
|
3954
|
+
/**
|
|
3955
|
+
* One of simple, virtual, bundle, downloadable, grouped, or configurable.
|
|
3956
|
+
* @deprecated Use __typename instead.
|
|
3957
|
+
*/
|
|
3958
|
+
type_id?: string;
|
|
3959
|
+
|
|
3960
|
+
/**
|
|
3961
|
+
* The unique ID for a `ProductInterface` object.
|
|
3962
|
+
*/
|
|
3963
|
+
uid: string;
|
|
3964
|
+
|
|
3965
|
+
/**
|
|
3966
|
+
* Timestamp indicating when the product was updated.
|
|
3967
|
+
* @deprecated The field should not be used on the storefront.
|
|
3968
|
+
*/
|
|
3969
|
+
updated_at?: string;
|
|
3970
|
+
|
|
3971
|
+
/**
|
|
3972
|
+
* Upsell Products
|
|
3973
|
+
*/
|
|
3974
|
+
upsell_products?: Array<GQLProductInterface | null>;
|
|
3975
|
+
url?: string;
|
|
3976
|
+
|
|
3977
|
+
/**
|
|
3978
|
+
* The part of the URL that identifies the product
|
|
3979
|
+
*/
|
|
3980
|
+
url_key?: string;
|
|
3981
|
+
|
|
3982
|
+
/**
|
|
3983
|
+
*
|
|
3984
|
+
* @deprecated Use product's `canonical_url` or url rewrites instead
|
|
3985
|
+
*/
|
|
3986
|
+
url_path?: string;
|
|
3987
|
+
|
|
3988
|
+
/**
|
|
3989
|
+
* URL rewrites list
|
|
3990
|
+
*/
|
|
3991
|
+
url_rewrites?: Array<GQLUrlRewrite | null>;
|
|
3992
|
+
|
|
3993
|
+
/**
|
|
3994
|
+
* The part of the product URL that is appended after the url key
|
|
3995
|
+
*/
|
|
3996
|
+
url_suffix?: string;
|
|
3997
|
+
valuesss?: number;
|
|
3998
|
+
|
|
3999
|
+
/**
|
|
4000
|
+
* An array of websites in which the product is available.
|
|
4001
|
+
* @deprecated The field should not be used on the storefront.
|
|
4002
|
+
*/
|
|
4003
|
+
websites?: Array<GQLWebsite | null>;
|
|
4004
|
+
|
|
4005
|
+
/**
|
|
4006
|
+
* The weight of the item, in units defined by the store.
|
|
4007
|
+
*/
|
|
4008
|
+
weight?: number;
|
|
4009
|
+
yes_no?: number;
|
|
4010
|
+
}
|
|
4011
|
+
|
|
4012
|
+
export interface GQLMediaGalleryImageOfType {
|
|
4013
|
+
|
|
4014
|
+
/**
|
|
4015
|
+
* Product image type
|
|
4016
|
+
*/
|
|
4017
|
+
type?: string;
|
|
4018
|
+
|
|
4019
|
+
/**
|
|
4020
|
+
* Product image url
|
|
4021
|
+
*/
|
|
4022
|
+
url?: string;
|
|
4023
|
+
}
|
|
4024
|
+
|
|
4025
|
+
export interface GQLProductMediaGalleryEntriesContent {
|
|
4026
|
+
|
|
4027
|
+
/**
|
|
4028
|
+
* The image in base64 format.
|
|
4029
|
+
*/
|
|
4030
|
+
base64_encoded_data?: string;
|
|
4031
|
+
|
|
4032
|
+
/**
|
|
4033
|
+
* The file name of the image.
|
|
4034
|
+
*/
|
|
4035
|
+
name?: string;
|
|
4036
|
+
|
|
4037
|
+
/**
|
|
4038
|
+
* The MIME type of the file, such as image/png.
|
|
4039
|
+
*/
|
|
4040
|
+
type?: string;
|
|
4041
|
+
}
|
|
4042
|
+
|
|
4043
|
+
export interface GQLProductMediaGalleryEntriesVideoContent {
|
|
4044
|
+
|
|
4045
|
+
/**
|
|
4046
|
+
* Must be external-video.
|
|
4047
|
+
*/
|
|
4048
|
+
media_type?: string;
|
|
4049
|
+
|
|
4050
|
+
/**
|
|
4051
|
+
* A description of the video.
|
|
4052
|
+
*/
|
|
4053
|
+
video_description?: string;
|
|
4054
|
+
|
|
4055
|
+
/**
|
|
4056
|
+
* Optional data about the video.
|
|
4057
|
+
*/
|
|
4058
|
+
video_metadata?: string;
|
|
4059
|
+
|
|
4060
|
+
/**
|
|
4061
|
+
* Describes the video source.
|
|
4062
|
+
*/
|
|
4063
|
+
video_provider?: string;
|
|
4064
|
+
|
|
4065
|
+
/**
|
|
4066
|
+
* The title of the video.
|
|
4067
|
+
*/
|
|
4068
|
+
video_title?: string;
|
|
4069
|
+
|
|
4070
|
+
/**
|
|
4071
|
+
* The URL to the video.
|
|
4072
|
+
*/
|
|
4073
|
+
video_url?: string;
|
|
4074
|
+
}
|
|
4075
|
+
|
|
4076
|
+
export interface GQLPrice {
|
|
4077
|
+
|
|
4078
|
+
/**
|
|
4079
|
+
* An array that provides information about tax, weee, or weee_tax adjustments.
|
|
4080
|
+
* @deprecated Price is deprecated, use ProductPrice.
|
|
4081
|
+
*/
|
|
4082
|
+
adjustments?: Array<GQLPriceAdjustment | null>;
|
|
4083
|
+
|
|
4084
|
+
/**
|
|
4085
|
+
* The price of a product plus a three-letter currency code.
|
|
4086
|
+
* @deprecated Price is deprecated, use ProductPrice.
|
|
4087
|
+
*/
|
|
4088
|
+
amount?: GQLMoney;
|
|
4089
|
+
}
|
|
4090
|
+
|
|
4091
|
+
export interface GQLPriceAdjustment {
|
|
4092
|
+
|
|
4093
|
+
/**
|
|
4094
|
+
* The amount of the price adjustment and its currency code.
|
|
4095
|
+
*/
|
|
4096
|
+
amount?: GQLMoney;
|
|
4097
|
+
|
|
4098
|
+
/**
|
|
4099
|
+
* Indicates whether the adjustment involves tax, weee, or weee_tax.
|
|
4100
|
+
* @deprecated PriceAdjustment is deprecated.
|
|
4101
|
+
*/
|
|
4102
|
+
code?: GQLPriceAdjustmentCodesEnum;
|
|
4103
|
+
|
|
4104
|
+
/**
|
|
4105
|
+
* Indicates whether the entity described by the code attribute is included or excluded from the adjustment.
|
|
4106
|
+
* @deprecated PriceAdjustment is deprecated.
|
|
4107
|
+
*/
|
|
4108
|
+
description?: GQLPriceAdjustmentDescriptionEnum;
|
|
4109
|
+
}
|
|
4110
|
+
|
|
4111
|
+
export interface GQLMoney {
|
|
4112
|
+
|
|
4113
|
+
/**
|
|
4114
|
+
* A three-letter currency code, such as USD or EUR
|
|
4115
|
+
*/
|
|
4116
|
+
currency?: GQLCurrencyEnum;
|
|
4117
|
+
|
|
4118
|
+
/**
|
|
4119
|
+
* A number expressing a monetary value
|
|
4120
|
+
*/
|
|
4121
|
+
value?: number;
|
|
4122
|
+
}
|
|
4123
|
+
|
|
4124
|
+
export interface GQLProductPrice {
|
|
4125
|
+
|
|
4126
|
+
/**
|
|
4127
|
+
* The base price of the product after discounts applied.
|
|
4128
|
+
*/
|
|
4129
|
+
default_final_price: GQLMoney;
|
|
4130
|
+
|
|
4131
|
+
/**
|
|
4132
|
+
* The base price of the product after discounts applied excluding taxes.
|
|
4133
|
+
*/
|
|
4134
|
+
default_final_price_excl_tax: GQLMoney;
|
|
4135
|
+
|
|
4136
|
+
/**
|
|
4137
|
+
* The base price of the product.
|
|
4138
|
+
*/
|
|
4139
|
+
default_price: GQLMoney;
|
|
4140
|
+
|
|
4141
|
+
/**
|
|
4142
|
+
* The price discount. Represents the difference between the regular and final price.
|
|
4143
|
+
*/
|
|
4144
|
+
discount?: GQLProductDiscount;
|
|
4145
|
+
|
|
4146
|
+
/**
|
|
4147
|
+
* The final price of the product after discounts applied.
|
|
4148
|
+
*/
|
|
4149
|
+
final_price: GQLMoney;
|
|
4150
|
+
|
|
4151
|
+
/**
|
|
4152
|
+
* The final price of the product after discounts applied excluding taxes.
|
|
4153
|
+
*/
|
|
4154
|
+
final_price_excl_tax: GQLMoney;
|
|
4155
|
+
|
|
4156
|
+
/**
|
|
4157
|
+
* The multiple FPTs that can be applied to a product price.
|
|
4158
|
+
*/
|
|
4159
|
+
fixed_product_taxes?: Array<GQLFixedProductTax | null>;
|
|
4160
|
+
|
|
4161
|
+
/**
|
|
4162
|
+
* The regular price of the product.
|
|
4163
|
+
*/
|
|
4164
|
+
regular_price: GQLMoney;
|
|
4165
|
+
|
|
4166
|
+
/**
|
|
4167
|
+
* The regular price of the product excluding taxes.
|
|
4168
|
+
*/
|
|
4169
|
+
regular_price_excl_tax: GQLMoney;
|
|
4170
|
+
}
|
|
4171
|
+
|
|
4172
|
+
export interface GQLProductDiscount {
|
|
4173
|
+
|
|
4174
|
+
/**
|
|
4175
|
+
* The actual value of the discount.
|
|
4176
|
+
*/
|
|
4177
|
+
amount_off?: number;
|
|
4178
|
+
|
|
4179
|
+
/**
|
|
4180
|
+
* The discount expressed a percentage.
|
|
4181
|
+
*/
|
|
4182
|
+
percent_off?: number;
|
|
4183
|
+
}
|
|
4184
|
+
|
|
4185
|
+
export interface GQLProductReview {
|
|
4186
|
+
|
|
4187
|
+
/**
|
|
4188
|
+
* The average rating for product review.
|
|
4189
|
+
*/
|
|
4190
|
+
average_rating: number;
|
|
4191
|
+
|
|
4192
|
+
/**
|
|
4193
|
+
* Date indicating when the review was created.
|
|
4194
|
+
*/
|
|
4195
|
+
created_at: string;
|
|
4196
|
+
|
|
4197
|
+
/**
|
|
4198
|
+
* The customer's nickname. Defaults to the customer name, if logged in
|
|
4199
|
+
*/
|
|
4200
|
+
nickname: string;
|
|
4201
|
+
|
|
4202
|
+
/**
|
|
4203
|
+
* Contains details about the reviewed product
|
|
4204
|
+
*/
|
|
4205
|
+
product: GQLProductInterface;
|
|
4206
|
+
|
|
4207
|
+
/**
|
|
4208
|
+
* An array of ratings by rating category, such as quality, price, and value
|
|
4209
|
+
*/
|
|
4210
|
+
ratings_breakdown: Array<GQLProductReviewRating | null>;
|
|
4211
|
+
|
|
4212
|
+
/**
|
|
4213
|
+
* The summary (title) of the review
|
|
4214
|
+
*/
|
|
4215
|
+
summary: string;
|
|
4216
|
+
|
|
4217
|
+
/**
|
|
4218
|
+
* The review text.
|
|
4219
|
+
*/
|
|
4220
|
+
text: string;
|
|
4221
|
+
}
|
|
4222
|
+
|
|
4223
|
+
export enum GQLPriceAdjustmentCodesEnum {
|
|
4224
|
+
|
|
4225
|
+
/**
|
|
4226
|
+
*
|
|
4227
|
+
* @deprecated PriceAdjustmentCodesEnum is deprecated. Tax is included or excluded in price. Tax is not shown separtely in Catalog
|
|
4228
|
+
*/
|
|
4229
|
+
TAX = 'TAX',
|
|
4230
|
+
|
|
4231
|
+
/**
|
|
4232
|
+
*
|
|
4233
|
+
* @deprecated WEEE code is deprecated, use fixed_product_taxes.label
|
|
4234
|
+
*/
|
|
4235
|
+
WEEE = 'WEEE',
|
|
4236
|
+
|
|
4237
|
+
/**
|
|
4238
|
+
*
|
|
4239
|
+
* @deprecated Use fixed_product_taxes. PriceAdjustmentCodesEnum is deprecated. Tax is included or excluded in price. Tax is not shown separtely in Catalog
|
|
4240
|
+
*/
|
|
4241
|
+
WEEE_TAX = 'WEEE_TAX',
|
|
4242
|
+
}
|
|
4243
|
+
|
|
4244
|
+
export interface GQLSearchResultPageInfo {
|
|
4245
|
+
|
|
4246
|
+
/**
|
|
4247
|
+
* Specifies which page of results to return
|
|
4248
|
+
*/
|
|
4249
|
+
current_page?: number;
|
|
4250
|
+
|
|
4251
|
+
/**
|
|
4252
|
+
* Specifies the maximum number of items to return
|
|
4253
|
+
*/
|
|
4254
|
+
page_size?: number;
|
|
4255
|
+
|
|
4256
|
+
/**
|
|
4257
|
+
* Total pages
|
|
4258
|
+
*/
|
|
4259
|
+
total_pages?: number;
|
|
4260
|
+
}
|
|
4261
|
+
|
|
4262
|
+
export interface GQLAttributeWithValueOption {
|
|
4263
|
+
label?: string;
|
|
4264
|
+
swatch_data?: GQLAttributeWithValueSwatchData;
|
|
4265
|
+
value?: string;
|
|
4266
|
+
}
|
|
4267
|
+
|
|
4268
|
+
export interface GQLHttpQueryParameter {
|
|
4269
|
+
|
|
4270
|
+
/**
|
|
4271
|
+
* Parameter name
|
|
4272
|
+
*/
|
|
4273
|
+
name?: string;
|
|
4274
|
+
|
|
4275
|
+
/**
|
|
4276
|
+
* Parameter value
|
|
4277
|
+
*/
|
|
4278
|
+
value?: string;
|
|
4279
|
+
}
|
|
4280
|
+
|
|
4281
|
+
export interface GQLConfigurableAttributeOption {
|
|
4282
|
+
|
|
4283
|
+
/**
|
|
4284
|
+
* The ID assigned to the attribute
|
|
4285
|
+
*/
|
|
4286
|
+
code?: string;
|
|
4287
|
+
|
|
4288
|
+
/**
|
|
4289
|
+
* A string that describes the configurable attribute option
|
|
4290
|
+
*/
|
|
4291
|
+
label?: string;
|
|
4292
|
+
|
|
4293
|
+
/**
|
|
4294
|
+
* The unique ID for a `ConfigurableAttributeOption` object
|
|
4295
|
+
*/
|
|
4296
|
+
uid: string;
|
|
4297
|
+
|
|
4298
|
+
/**
|
|
4299
|
+
* A unique index number assigned to the configurable product option
|
|
4300
|
+
*/
|
|
4301
|
+
value_index?: number;
|
|
4302
|
+
}
|
|
4303
|
+
|
|
4304
|
+
export interface GQLSwatchDataInterface {
|
|
4305
|
+
|
|
4306
|
+
/**
|
|
4307
|
+
* Value of swatch item (HEX color code, image link or textual value)
|
|
4308
|
+
*/
|
|
4309
|
+
value?: string;
|
|
4310
|
+
}
|
|
4311
|
+
|
|
4312
|
+
export interface GQLConfigurableProductOptionValue {
|
|
4313
|
+
is_available: boolean;
|
|
4314
|
+
is_use_default: boolean;
|
|
4315
|
+
label: string;
|
|
4316
|
+
swatch?: GQLSwatchDataInterface;
|
|
4317
|
+
uid: string;
|
|
4318
|
+
}
|
|
4319
|
+
|
|
4320
|
+
export enum GQLPriceAdjustmentDescriptionEnum {
|
|
4321
|
+
INCLUDED = 'INCLUDED',
|
|
4322
|
+
EXCLUDED = 'EXCLUDED',
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
export interface GQLFixedProductTax {
|
|
4326
|
+
|
|
4327
|
+
/**
|
|
4328
|
+
* Amount of the FPT as a money object.
|
|
4329
|
+
*/
|
|
4330
|
+
amount?: GQLMoney;
|
|
4331
|
+
|
|
4332
|
+
/**
|
|
4333
|
+
* The label assigned to the FPT to be displayed on the frontend.
|
|
4334
|
+
*/
|
|
4335
|
+
label?: string;
|
|
4336
|
+
}
|
|
4337
|
+
|
|
4338
|
+
export interface GQLProductReviewRating {
|
|
4339
|
+
|
|
4340
|
+
/**
|
|
4341
|
+
* The label assigned to an aspect of a product that is being rated, such as quality or price
|
|
4342
|
+
*/
|
|
4343
|
+
name: string;
|
|
4344
|
+
|
|
4345
|
+
/**
|
|
4346
|
+
* The rating value given by customer. By default, possible values range from 1 to 5.
|
|
4347
|
+
*/
|
|
4348
|
+
value: string;
|
|
4349
|
+
}
|
|
4350
|
+
|
|
4351
|
+
export interface GQLAttributeWithValueSwatchData {
|
|
4352
|
+
type?: string;
|
|
4353
|
+
value?: string;
|
|
4354
|
+
}
|
|
4355
|
+
|
|
4356
|
+
export interface GQLPriceTaxDisplay {
|
|
4357
|
+
|
|
4358
|
+
/**
|
|
4359
|
+
* Defines if product price will include/exclude tax or both in catalog
|
|
4360
|
+
*/
|
|
4361
|
+
product_price_display_type?: string;
|
|
4362
|
+
|
|
4363
|
+
/**
|
|
4364
|
+
* Defines if shipping price will include/exclude tax or both
|
|
4365
|
+
*/
|
|
4366
|
+
shipping_price_display_type?: string;
|
|
4367
|
+
}
|
|
4368
|
+
|
|
4369
|
+
export interface GQLQuoteData extends GQLTotalsObject {
|
|
4370
|
+
applied_rule_ids?: string;
|
|
4371
|
+
applied_taxes?: Array<GQLAppliedTaxItem | null>;
|
|
4372
|
+
base_currency_code?: string;
|
|
4373
|
+
base_discount_amount?: number;
|
|
4374
|
+
base_grand_total?: number;
|
|
4375
|
+
base_shipping_amount?: number;
|
|
4376
|
+
base_shipping_discount_amount?: number;
|
|
4377
|
+
base_shipping_incl_tax?: number;
|
|
4378
|
+
base_shipping_tax_amount?: number;
|
|
4379
|
+
base_subtotal?: number;
|
|
4380
|
+
base_subtotal_with_discount?: number;
|
|
4381
|
+
base_tax_amount?: number;
|
|
4382
|
+
coupon_code?: string;
|
|
4383
|
+
customer_is_guest?: boolean;
|
|
4384
|
+
customer_tax_class_id?: number;
|
|
4385
|
+
discount_amount?: number;
|
|
4386
|
+
grand_total?: number;
|
|
4387
|
+
id?: string;
|
|
4388
|
+
is_in_store_pickup_available?: boolean;
|
|
4389
|
+
is_virtual?: boolean;
|
|
4390
|
+
items?: Array<GQLTotalsItem | null>;
|
|
4391
|
+
items_count?: number;
|
|
4392
|
+
items_qty?: number;
|
|
4393
|
+
quote_currency_code?: string;
|
|
4394
|
+
shipping_amount?: number;
|
|
4395
|
+
shipping_discount_amount?: number;
|
|
4396
|
+
shipping_incl_tax?: number;
|
|
4397
|
+
shipping_method?: string;
|
|
4398
|
+
shipping_tax_amount?: number;
|
|
4399
|
+
store_id?: number;
|
|
4400
|
+
subtotal?: number;
|
|
4401
|
+
subtotal_incl_tax?: number;
|
|
4402
|
+
subtotal_with_discount?: number;
|
|
4403
|
+
tax_amount?: number;
|
|
4404
|
+
weee_tax_applied_amount?: number;
|
|
4405
|
+
}
|
|
4406
|
+
|
|
4407
|
+
export interface GQLTotalsObject {
|
|
4408
|
+
applied_rule_ids?: string;
|
|
4409
|
+
base_currency_code?: string;
|
|
4410
|
+
base_discount_amount?: number;
|
|
4411
|
+
base_grand_total?: number;
|
|
4412
|
+
base_shipping_amount?: number;
|
|
4413
|
+
base_shipping_discount_amount?: number;
|
|
4414
|
+
base_shipping_incl_tax?: number;
|
|
4415
|
+
base_shipping_tax_amount?: number;
|
|
4416
|
+
base_subtotal?: number;
|
|
4417
|
+
base_subtotal_with_discount?: number;
|
|
4418
|
+
base_tax_amount?: number;
|
|
4419
|
+
coupon_code?: string;
|
|
4420
|
+
customer_is_guest?: boolean;
|
|
4421
|
+
customer_tax_class_id?: number;
|
|
4422
|
+
discount_amount?: number;
|
|
4423
|
+
grand_total?: number;
|
|
4424
|
+
is_in_store_pickup_available?: boolean;
|
|
4425
|
+
items?: Array<GQLTotalsItem | null>;
|
|
4426
|
+
items_count?: number;
|
|
4427
|
+
items_qty?: number;
|
|
4428
|
+
quote_currency_code?: string;
|
|
4429
|
+
shipping_amount?: number;
|
|
4430
|
+
shipping_discount_amount?: number;
|
|
4431
|
+
shipping_incl_tax?: number;
|
|
4432
|
+
shipping_method?: string;
|
|
4433
|
+
shipping_tax_amount?: number;
|
|
4434
|
+
store_id?: number;
|
|
4435
|
+
subtotal?: number;
|
|
4436
|
+
subtotal_incl_tax?: number;
|
|
4437
|
+
subtotal_with_discount?: number;
|
|
4438
|
+
tax_amount?: number;
|
|
4439
|
+
weee_tax_applied_amount?: number;
|
|
4440
|
+
}
|
|
4441
|
+
|
|
4442
|
+
export interface GQLAppliedTaxItem {
|
|
4443
|
+
amount?: number;
|
|
4444
|
+
percent?: number;
|
|
4445
|
+
rates?: Array<GQLAppliedTaxItemRate | null>;
|
|
4446
|
+
}
|
|
4447
|
+
|
|
4448
|
+
export interface GQLAppliedTaxItemRate {
|
|
4449
|
+
percent?: number;
|
|
4450
|
+
title?: string;
|
|
4451
|
+
}
|
|
4452
|
+
|
|
4453
|
+
export interface GQLTotalsItem {
|
|
4454
|
+
base_discount_amount?: number;
|
|
4455
|
+
base_price?: number;
|
|
4456
|
+
base_price_incl_tax?: number;
|
|
4457
|
+
base_row_total?: number;
|
|
4458
|
+
base_row_total_incl_tax?: number;
|
|
4459
|
+
base_tax_amount?: number;
|
|
4460
|
+
bundle_options?: Array<GQLSelectedBundleOption | null>;
|
|
4461
|
+
customizable_options?: Array<GQLSelectedCustomizableOption | null>;
|
|
4462
|
+
discount_amount?: number;
|
|
4463
|
+
discount_percent?: number;
|
|
4464
|
+
downloadable_links?: Array<GQLSelectedDownloadableLinks | null>;
|
|
4465
|
+
item_id?: number;
|
|
4466
|
+
name?: string;
|
|
4467
|
+
options?: string;
|
|
4468
|
+
price?: number;
|
|
4469
|
+
price_incl_tax?: number;
|
|
4470
|
+
product?: GQLProductInterface;
|
|
4471
|
+
qty?: number;
|
|
4472
|
+
row_total?: number;
|
|
4473
|
+
row_total_incl_tax?: number;
|
|
4474
|
+
row_total_with_discount?: number;
|
|
4475
|
+
sku?: string;
|
|
4476
|
+
tax_amount?: number;
|
|
4477
|
+
tax_percent?: number;
|
|
4478
|
+
weee_tax_applied?: number;
|
|
4479
|
+
weee_tax_applied_amount?: number;
|
|
4480
|
+
}
|
|
4481
|
+
|
|
4482
|
+
export interface GQLSelectedBundleOption {
|
|
4483
|
+
|
|
4484
|
+
/**
|
|
4485
|
+
*
|
|
4486
|
+
* @deprecated Use `uid` instead
|
|
4487
|
+
*/
|
|
4488
|
+
id: number;
|
|
4489
|
+
label: string;
|
|
4490
|
+
type: string;
|
|
4491
|
+
|
|
4492
|
+
/**
|
|
4493
|
+
* The unique ID for a `SelectedBundleOption` object
|
|
4494
|
+
*/
|
|
4495
|
+
uid: string;
|
|
4496
|
+
values: Array<GQLSelectedBundleOptionValue | null>;
|
|
4497
|
+
}
|