@graphcommerce/magento-graphql 2.103.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,100 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [2.103.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-graphql@2.103.0...@graphcommerce/magento-graphql@2.103.1) (2021-09-27)
7
+
8
+ **Note:** Version bump only for package @graphcommerce/magento-graphql
9
+
10
+
11
+
12
+
13
+
14
+ # 2.103.0 (2021-09-27)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **cart:** invariant violation value_id not found ([c6db986](https://github.com/ho-nl/m2-pwa/commit/c6db986aa411915f344006d16c222b3621e2f4fc))
20
+ * category children and swatch renderer ([1ee008d](https://github.com/ho-nl/m2-pwa/commit/1ee008d9ecf3bf5ec4b2d82243e4bcbbec384411))
21
+ * ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
22
+ * review pagination and sign in using type policies ([ab16659](https://github.com/ho-nl/m2-pwa/commit/ab16659caaa846d6728a3f3f6bcf5d7cb2f55b18))
23
+ * yarn workspace packages hot reload ([d03fc9f](https://github.com/ho-nl/m2-pwa/commit/d03fc9fdda3486476761786f2b56a934cc92befc))
24
+
25
+
26
+ ### Features
27
+
28
+ * apollo error full page component ([fc1e695](https://github.com/ho-nl/m2-pwa/commit/fc1e695251a8792abaec5b9382e8301d3794cb6d))
29
+ * better 404 handling and simplified getStaticProps ([321ace1](https://github.com/ho-nl/m2-pwa/commit/321ace1850642ee3eddfa674c37e6fca8adcdb74))
30
+ * better sign in form handling ([6ac339f](https://github.com/ho-nl/m2-pwa/commit/6ac339fdfa1ece959cc8548e5bfadfca7c1f5cf6))
31
+ * created stacked-pages package ([d86008e](https://github.com/ho-nl/m2-pwa/commit/d86008ee659ccb25b194a41d624b394a1ddbd088))
32
+ * **graphql:** introduced new graphql package that holds all generated files ([a3e7aa0](https://github.com/ho-nl/m2-pwa/commit/a3e7aa05540540533b5ced9a95f1f802ecbe499f))
33
+ * i18n routing added (/ and /fr for demo) ([bb3b339](https://github.com/ho-nl/m2-pwa/commit/bb3b339fbc9fceddd264a891ad81f00327a241ae))
34
+ * implemented checkmo payment method ([18525b2](https://github.com/ho-nl/m2-pwa/commit/18525b2f4efe9bd0eea12a7a992d284f341e0c68))
35
+ * improved drawer stacking and stable layoutId support ([b5b0406](https://github.com/ho-nl/m2-pwa/commit/b5b040635993eb3da819606e94d3cd6fdaddb05c))
36
+ * **magento-customer:** introduced ApolloCustomerErrorAlert ([e5406d9](https://github.com/ho-nl/m2-pwa/commit/e5406d91f914de290c5f097955e312312e567972))
37
+ * **magento-graphql:** added core magentoTypePolicies ([bdf15d0](https://github.com/ho-nl/m2-pwa/commit/bdf15d0d3c04e88339a8385d76f3b1ab9589fde3))
38
+ * major performance refactor ([03f8e2f](https://github.com/ho-nl/m2-pwa/commit/03f8e2fa16ef919bd6bd6eadd36922d0245ed960))
39
+ * next.js 11 ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
40
+ * **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
41
+ * product page review pagination ([4e18395](https://github.com/ho-nl/m2-pwa/commit/4e18395944c08e195fd09192086301c695d044ed))
42
+ * renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of [@reachdigital](https://github.com/reachdigital) ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
43
+ * support vscode graphql extension ([9324507](https://github.com/ho-nl/m2-pwa/commit/9324507c3c149fbcb7cd51ac41250a8637521ceb))
44
+ * upgrade to node 14 ([d079a75](https://github.com/ho-nl/m2-pwa/commit/d079a751e9bfd8dc7f5009d2c9f31c336a0c96ab))
45
+ * upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
46
+ * working on EmailForm ([f16141f](https://github.com/ho-nl/m2-pwa/commit/f16141f8cc0dfeaef8dee2a3e635bda898550a51))
47
+
48
+
49
+ ### Reverts
50
+
51
+ * Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
52
+
53
+
54
+
55
+ ## 2.0.8 (2020-10-28)
56
+
57
+
58
+ ### Bug Fixes
59
+
60
+ * exclusively use Magento endpoint for magento codegen packages ([deafc42](https://github.com/ho-nl/m2-pwa/commit/deafc423ca0831853ac070e947b900ece565fa65))
61
+
62
+
63
+ ### Features
64
+
65
+ * added generated graphql.ts files ([3e44415](https://github.com/ho-nl/m2-pwa/commit/3e44415b018e74b502e9e98479aa5e84041f337d))
66
+
67
+
68
+
69
+
70
+
71
+ # Change Log
72
+
73
+ All notable changes to this project will be documented in this file. See
74
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
75
+
76
+ # [2.102.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-graphql@2.101.3...@graphcommerce/magento-graphql@2.102.0) (2021-08-12)
77
+
78
+ ### Features
79
+
80
+ - upgraded to nextjs 11
81
+ ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
82
+
83
+ ## [2.101.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-graphql@2.101.2...@graphcommerce/magento-graphql@2.101.3) (2021-08-09)
84
+
85
+ ### Reverts
86
+
87
+ - Revert "chore: upgrade @apollo/client"
88
+ ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
89
+
90
+ # [2.101.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-graphql@2.100.10...@graphcommerce/magento-graphql@2.101.0) (2021-07-26)
91
+
92
+ ### Bug Fixes
93
+
94
+ - ignore md files from triggering version updates
95
+ ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
96
+
97
+ ### Features
98
+
99
+ - **playwright:** added new playwright package to enable browser testing
100
+ ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
@@ -0,0 +1,15 @@
1
+ /* eslint-disable no-empty-pattern */
2
+ import { ApolloClient, InMemoryCache, NormalizedCacheObject } from '@apollo/client'
3
+ import { test as base } from '@playwright/test'
4
+
5
+ const testGraphQl = base.extend<{ apolloClient: ApolloClient<NormalizedCacheObject> }>({
6
+ apolloClient: async ({}, use) => {
7
+ const client = new ApolloClient({
8
+ uri: 'http://localhost:3001/api/graphql',
9
+ cache: new InMemoryCache({}),
10
+ })
11
+ await use(client)
12
+ },
13
+ })
14
+
15
+ export { testGraphQl as testApollo }
@@ -0,0 +1,46 @@
1
+ import { ApolloError } from '@apollo/client'
2
+ import { GraphQLError } from 'graphql'
3
+
4
+ export type ErrorCategory =
5
+ | 'internal'
6
+ | 'graphql-already-exists'
7
+ | 'graphql-authentication'
8
+ | 'graphql-authorization'
9
+ | 'graphql-input'
10
+ | 'graphql-no-such-entity'
11
+
12
+ export type GraphQLErrorByCategoryProps = {
13
+ category: ErrorCategory
14
+ error?: ApolloError
15
+ extract?: boolean
16
+ mask?: string
17
+ }
18
+
19
+ /**
20
+ * Extract Magento specific erros from the error object.
21
+ *
22
+ * It recognizes the errors specified here:
23
+ * https://devdocs.magento.com/guides/v2.4/graphql/develop/exceptions.html
24
+ */
25
+ export function graphqlErrorByCategory({
26
+ category,
27
+ error,
28
+ extract = true,
29
+ mask,
30
+ }: GraphQLErrorByCategoryProps): [ApolloError | undefined, GraphQLError | undefined] {
31
+ if (!error) return [error, undefined]
32
+
33
+ const newError = new ApolloError({
34
+ ...error,
35
+ graphQLErrors: error.graphQLErrors.filter(
36
+ (err) => !extract || err?.extensions?.category !== category,
37
+ ),
38
+ })
39
+
40
+ const graphqlError = error.graphQLErrors.find((err) => err?.extensions?.category === category)
41
+ if (mask && graphqlError) graphqlError.message = mask
42
+
43
+ return newError.graphQLErrors.length === 0 && !newError.networkError
44
+ ? [undefined, graphqlError]
45
+ : [newError, graphqlError]
46
+ }
package/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './typePolicies'
2
+ export * from './graphqlErrorByCategory'
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@graphcommerce/magento-graphql",
3
+ "version": "2.103.1",
4
+ "sideEffects": false,
5
+ "main": "index.ts",
6
+ "prettier": "@graphcommerce/prettier-config-pwa",
7
+ "browserslist": [
8
+ "extends @graphcommerce/browserslist-config-pwa"
9
+ ],
10
+ "eslintConfig": {
11
+ "extends": "@graphcommerce/eslint-config-pwa",
12
+ "parserOptions": {
13
+ "project": "./tsconfig.json"
14
+ }
15
+ },
16
+ "devDependencies": {
17
+ "@graphcommerce/browserslist-config-pwa": "^3.0.1",
18
+ "@graphcommerce/eslint-config-pwa": "^3.0.1",
19
+ "@graphcommerce/prettier-config-pwa": "^3.0.1",
20
+ "@graphcommerce/typescript-config-pwa": "^3.0.1",
21
+ "@playwright/test": "^1.14.1"
22
+ },
23
+ "dependencies": {
24
+ "@apollo/client": "^3.3.21",
25
+ "@graphcommerce/graphql": "^2.103.1",
26
+ "graphql": "^15.5.2",
27
+ "next": "^11.1.2",
28
+ "react": "^17.0.2",
29
+ "react-dom": "^17.0.2"
30
+ }
31
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "exclude": ["**/node_modules", "**/.*/"],
3
+ "include": ["**/*.ts", "**/*.tsx"],
4
+ "extends": "@graphcommerce/typescript-config-pwa/nextjs.json"
5
+ }
@@ -0,0 +1,255 @@
1
+ import { TypedTypePolicies } from '@graphcommerce/graphql'
2
+
3
+ /**
4
+ * By default we don't need to do anything for types with an `id` or without anything to identify.
5
+ *
6
+ * - https://www.apollographql.com/docs/react/caching/cache-configuration/#default-identifier-generation
7
+ */
8
+ export const magentoTypePolicies: TypedTypePolicies = {
9
+ // AddBundleProductsToCartOutput: { keyFields: false },
10
+ // AddConfigurableProductsToCartOutput: { keyFields: false },
11
+ // AddDownloadableProductsToCartOutput: { keyFields: false },
12
+ // AddProductsToCartOutput: { keyFields: false },
13
+ // AddProductsToWishlistOutput: { keyFields: false },
14
+ // AddSimpleProductsToCartOutput: { keyFields: false },
15
+ // AddVirtualProductsToCartOutput: { keyFields: false },
16
+ // Aggregate: { keyFields: false },
17
+ // Aggregation: { keyFields: false },
18
+ // AggregationOption: { keyFields: false },
19
+ // AggregationOptionInterface: { keyFields: false },
20
+ // AbortController: { keyFields: false },
21
+ // AppliedCoupon: { keyFields: false },
22
+ // ApplyCouponToCartOutput: { keyFields: false },
23
+ // Assets: { keyFields: false },
24
+ // AssignCompareListToCustomerOutput: { keyFields: false },
25
+ // Attribute: { keyFields: false },
26
+ // AttributeOption: { keyFields: false },
27
+ AvailablePaymentMethod: { keyFields: ['code'] },
28
+ AvailableShippingMethod: { keyFields: ['carrier_code', 'method_code'] },
29
+ // BillingCartAddress: { keyFields: false },
30
+ Breadcrumb: { keyFields: ['category_uid'] },
31
+ BundleCartItem: { keyFields: ['uid'] },
32
+ // BundleCreditMemoItem: { keyFields: ['id'] },
33
+ // BundleInvoiceItem: { keyFields: ['id'] },
34
+ BundleItem: { keyFields: ['uid'] },
35
+ BundleItemOption: { keyFields: ['uid'] },
36
+ // BundleOrderItem: { keyFields: ['id'] },
37
+ BundleProduct: { keyFields: ['uid'] },
38
+ // BundleShipmentItem: { keyFields: ['id'] },
39
+ // BundleWishlistItem: { keyFields: ['id'] },
40
+ // Cart: { keyFields: ['id'] },
41
+ CartAddressCountry: { keyFields: ['code'] },
42
+ // CartAddressInterface: { keyFields: false },
43
+ // CartAddressRegion: { keyFields: false },
44
+ // CartDiscount: { keyFields: false },
45
+ CartItemInterface: { keyFields: ['uid'] },
46
+ // CartItemPrices: { keyFields: false },
47
+ CartItemQuantity: { keyFields: ['cart_item_id'] },
48
+ // CartItemSelectedOptionValuePrice: { keyFields: false },
49
+ // CartPrices: { keyFields: false },
50
+ // CartTaxItem: { keyFields: false },
51
+ // CartUserInputError: { keyFields: false },
52
+ Categories: { keyFields: ['identifier'] },
53
+ CategoryInterface: { keyFields: ['uid'] },
54
+ // CategoryProducts: { keyFields: false },
55
+ // CategoryResult: { keyFields: false },
56
+ CategoryTree: { keyFields: ['uid'] },
57
+ CheckoutAgreement: { keyFields: ['agreement_id'] },
58
+ // CheckoutUserInputError: { keyFields: false },
59
+ CmsBlock: { keyFields: ['identifier'] },
60
+ // CmsBlocks: { keyFields: false },
61
+ CmsPage: { keyFields: ['identifier'] },
62
+ // ColorSwatchData: { keyFields: false },
63
+ // ComparableAttribute: { keyFields: false },
64
+ ComparableItem: { keyFields: ['uid'] },
65
+ CompareList: { keyFields: ['uid'] },
66
+ // ComplexTextValue: { keyFields: false },
67
+ ConfigurableAttributeOption: { keyFields: ['uid'] },
68
+ ConfigurableCartItem: { keyFields: ['uid'] },
69
+ // ConfigurableOptionAvailableForSelection: { keyFields: false },
70
+ ConfigurableProduct: { keyFields: ['uid'] },
71
+ ConfigurableProductOptions: { keyFields: ['uid'] },
72
+ // ConfigurableProductOptionsSelection: { keyFields: false },
73
+ ConfigurableProductOptionsValues: { keyFields: ['uid'] },
74
+ // ConfigurableVariant: { keyFields: false },
75
+ // ConfigurableWishlistItem: { keyFields: ['id'] },
76
+ // Country: { keyFields: ['id'] },
77
+ // CreatePayflowProTokenOutput: { keyFields: false },
78
+ // CreateProductReviewOutput: { keyFields: false },
79
+ // CreditMemo: { keyFields: ['id'] },
80
+ // CreditMemoItem: { keyFields: ['id'] },
81
+ // CreditMemoItemInterface: { keyFields: ['id'] },
82
+ // CreditMemoTotal: { keyFields: false },
83
+ // Currency: { keyFields: [] },
84
+ // CustomAttributeMetadata: { keyFields: [] },
85
+ Customer: { keyFields: [] },
86
+ // CustomerAddress: { keyFields: ['id'] },
87
+ // CustomerAddressAttribute: { keyFields: false },
88
+ // CustomerAddressRegion: { keyFields: false },
89
+ // CustomerDownloadableProduct: { keyFields: false },
90
+ // CustomerDownloadableProducts: { keyFields: false },
91
+ // CustomerOrder: { keyFields: ['id'] },
92
+ // CustomerOrders: { keyFields: [] },
93
+ // CustomerOutput: { keyFields: false },
94
+ // CustomerPaymentTokens: { keyFields: false },
95
+ CustomerToken: { keyFields: [] },
96
+ CustomizableAreaOption: { keyFields: ['uid'] },
97
+ CustomizableAreaValue: { keyFields: ['uid'] },
98
+ CustomizableCheckboxOption: { keyFields: ['uid'] },
99
+ CustomizableCheckboxValue: { keyFields: ['uid'] },
100
+ CustomizableDateOption: { keyFields: ['uid'] },
101
+ CustomizableDateValue: { keyFields: ['uid'] },
102
+ CustomizableDropDownOption: { keyFields: ['uid'] },
103
+ CustomizableDropDownValue: { keyFields: ['uid'] },
104
+ CustomizableFieldOption: { keyFields: ['uid'] },
105
+ CustomizableFieldValue: { keyFields: ['uid'] },
106
+ CustomizableFileOption: { keyFields: ['uid'] },
107
+ CustomizableFileValue: { keyFields: ['uid'] },
108
+ CustomizableMultipleOption: { keyFields: ['uid'] },
109
+ CustomizableMultipleValue: { keyFields: ['uid'] },
110
+ CustomizableOptionInterface: { keyFields: ['uid'] },
111
+ // CustomizableProductInterface: { keyFields: false },
112
+ CustomizableRadioOption: { keyFields: ['uid'] },
113
+ CustomizableRadioValue: { keyFields: ['uid'] },
114
+ // DeleteCompareListOutput: { keyFields: false },
115
+ // DeletePaymentTokenOutput: { keyFields: false },
116
+ // Discount: { keyFields: false },
117
+ DownloadableCartItem: { keyFields: ['uid'] },
118
+ // DownloadableCreditMemoItem: { keyFields: ['id'] },
119
+ // DownloadableInvoiceItem: { keyFields: ['id'] },
120
+ DownloadableItemsLinks: { keyFields: ['uid'] },
121
+ // DownloadableOrderItem: { keyFields: ['id'] },
122
+ DownloadableProduct: { keyFields: ['uid'] },
123
+ DownloadableProductLinks: { keyFields: ['uid'] },
124
+ // DownloadableProductSamples: { keyFields: ['id'] },
125
+ // DownloadableWishlistItem: { keyFields: ['id'] },
126
+ // EntityUrl: { keyFields: ['id'] },
127
+ // ExchangeRate: { keyFields: false },
128
+ // FixedProductTax: { keyFields: false },
129
+ // GenerateCustomerTokenAsAdminOutput: { keyFields: false },
130
+ // GiftMessage: { keyFields: false },
131
+ GroupedProduct: { keyFields: ['uid'] },
132
+ // GroupedProductItem: { keyFields: false },
133
+ // GroupedProductWishlistItem: { keyFields: ['id'] },
134
+ // HostedProUrl: { keyFields: false },
135
+ // HttpQueryParameter: { keyFields: false },
136
+ // ImageSwatchData: { keyFields: false },
137
+ // Invoice: { keyFields: ['id'] },
138
+ // InvoiceItem: { keyFields: ['id'] },
139
+ // InvoiceItemInterface: { keyFields: ['id'] },
140
+ // InvoiceTotal: { keyFields: false },
141
+ // IsEmailAvailableOutput: { keyFields: false },
142
+ ItemSelectedBundleOption: { keyFields: ['uid'] },
143
+ ItemSelectedBundleOptionValue: { keyFields: ['uid'] },
144
+ // KeyValue: { keyFields: false },
145
+ // LayerFilter: { keyFields: false },
146
+ // LayerFilterItem: { keyFields: false },
147
+ // LayerFilterItemInterface: { keyFields: false },
148
+ MediaGalleryEntry: { keyFields: ['uid'] },
149
+ // MediaGalleryInterface: { keyFields: false },
150
+ MollieIssuer: { keyFields: ['code'] },
151
+ // MolliePaymentMethodMeta: { keyFields: false },
152
+ // MollieTransactionOutput: { keyFields: false },
153
+ // Money: { keyFields: false },
154
+ Order: { keyFields: ['order_number'] },
155
+ // OrderAddress: { keyFields: false },
156
+ // OrderItem: { keyFields: ['id'] },
157
+ // OrderItemInterface: { keyFields: ['id'] },
158
+ // OrderItemOption: { keyFields: false },
159
+ // OrderPaymentMethod: { keyFields: false },
160
+ // OrderShipment: { keyFields: ['id'] },
161
+ // OrderTotal: { keyFields: false },
162
+ // PayflowLinkToken: { keyFields: false },
163
+ // PayflowProResponseOutput: { keyFields: false },
164
+ // PayflowProToken: { keyFields: false },
165
+ // PaymentToken: { keyFields: false },
166
+ // PaypalExpressToken: { keyFields: false },
167
+ // PaypalExpressTokenOutput: { keyFields: false },
168
+ // PaypalExpressUrlList: { keyFields: false },
169
+ // PhysicalProductInterface: { keyFields: false },
170
+ // PickupLocation: { keyFields: false },
171
+ // PickupLocations: { keyFields: false },
172
+ // PlaceOrderOutput: { keyFields: false },
173
+ // Price: { keyFields: false },
174
+ // PriceAdjustment: { keyFields: false },
175
+ // PriceRange: { keyFields: false },
176
+ // ProductAttribute: { keyFields: false },
177
+ // ProductDiscount: { keyFields: false },
178
+ // ProductImage: { keyFields: false },
179
+ ProductInterface: { keyFields: ['uid'] },
180
+ // ProductLinks: { keyFields: false },
181
+ // ProductLinksInterface: { keyFields: false },
182
+ // ProductMediaGalleryEntriesContent: { keyFields: false },
183
+ // ProductMediaGalleryEntriesVideoContent: { keyFields: false },
184
+ // ProductPrice: { keyFields: false },
185
+ // ProductPrices: { keyFields: false },
186
+ // ProductReview: { keyFields: false },
187
+ // ProductReviewRating: { keyFields: false },
188
+ // ProductReviewRatingMetadata: { keyFields: ['id'] },
189
+ // ProductReviewRatingValueMetadata: { keyFields: false },
190
+ // ProductReviewRatingsMetadata: { keyFields: false },
191
+ // ProductReviews: { keyFields: [] },
192
+ // ProductTierPrices: { keyFields: false },
193
+ // ProductVideo: { keyFields: false },
194
+ // Products: { keyFields: false },
195
+ // Region: { keyFields: false },
196
+ // RemoveCouponFromCartOutput: { keyFields: false },
197
+ // RemoveItemFromCartOutput: { keyFields: false },
198
+ // RemoveProductsFromWishlistOutput: { keyFields: false },
199
+ // ReorderItemsOutput: { keyFields: false },
200
+ // RevokeCustomerTokenOutput: { keyFields: false },
201
+ // SalesCommentItem: { keyFields: false },
202
+ // SalesItemInterface: { keyFields: false },
203
+ // SearchResultPageInfo: { keyFields: false },
204
+ SelectedBundleOption: { keyFields: ['uid'] },
205
+ SelectedBundleOptionValue: { keyFields: ['uid'] },
206
+ SelectedConfigurableOption: { keyFields: ['configurable_product_option_value_uid'] },
207
+ SelectedCustomizableOption: { keyFields: ['customizable_option_uid'] },
208
+ SelectedCustomizableOptionValue: { keyFields: ['customizable_option_value_uid'] },
209
+ SelectedPaymentMethod: { keyFields: ['code'] },
210
+ SelectedShippingMethod: { keyFields: ['carrier_code', 'method_code'] },
211
+ // SendEmailToFriendOutput: { keyFields: false },
212
+ // SendEmailToFriendRecipient: { keyFields: false },
213
+ // SendEmailToFriendSender: { keyFields: false },
214
+ // SendFriendConfiguration: { keyFields: false },
215
+ // SetBillingAddressOnCartOutput: { keyFields: false },
216
+ // SetGuestEmailOnCartOutput: { keyFields: false },
217
+ // SetPaymentMethodOnCartOutput: { keyFields: false },
218
+ // SetShippingAddressesOnCartOutput: { keyFields: false },
219
+ // SetShippingMethodsOnCartOutput: { keyFields: false },
220
+ // ShipmentItem: { keyFields: ['id'] },
221
+ // ShipmentItemInterface: { keyFields: ['id'] },
222
+ // ShipmentTracking: { keyFields: false },
223
+ // ShippingCartAddress: { keyFields: false },
224
+ // ShippingDiscount: { keyFields: false },
225
+ // ShippingHandling: { keyFields: false },
226
+ // SimpleCartItem: { keyFields: ['id'] },
227
+ SimpleProduct: { keyFields: ['uid'] },
228
+ // SimpleWishlistItem: { keyFields: ['id'] },
229
+ // SortField: { keyFields: false },
230
+ // SortFields: { keyFields: false },
231
+ StoreConfig: { keyFields: ['store_code'] },
232
+ // SubscribeEmailToNewsletterOutput: { keyFields: false },
233
+ // SwatchData: { keyFields: false },
234
+ // SwatchDataInterface: { keyFields: false },
235
+ // SwatchLayerFilterItem: { keyFields: false },
236
+ // SwatchLayerFilterItemInterface: { keyFields: false },
237
+ // TaxItem: { keyFields: false },
238
+ // TextSwatchData: { keyFields: false },
239
+ // TierPrice: { keyFields: false },
240
+ // UpdateCartItemsOutput: { keyFields: false },
241
+ // UpdateProductsInWishlistOutput: { keyFields: false },
242
+ // UrlRewrite: { keyFields: false },
243
+ VirtualCartItem: { keyFields: ['uid'] },
244
+ VirtualProduct: { keyFields: ['uid'] },
245
+ // VirtualWishlistItem: { keyFields: ['id'] },
246
+ // Website: { keyFields: ['id'] },
247
+ // WishListUserInputError: { keyFields: false },
248
+ // Wishlist: { keyFields: ['id'] },
249
+ // WishlistItem: { keyFields: ['id'] },
250
+ // WishlistItemInterface: { keyFields: ['id'] },
251
+ // WishlistItems: { keyFields: false },
252
+ // WishlistOutput: { keyFields: false },
253
+ // createKlarnaPaymentsSessionOutput: { keyFields: false },
254
+ // Mutation: { keyFields: false },
255
+ }