@graphcommerce/magento-graphql 9.1.0-canary.18 → 9.1.0-canary.19

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.1.0-canary.19
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2499](https://github.com/graphcommerce-org/graphcommerce/pull/2499) [`2794efe`](https://github.com/graphcommerce-org/graphcommerce/commit/2794efe3251934b9621371b94481eee11b4fb40c) - Magento <= 2.4.6: Solve issue where GraphCommerce's schema compatibility layer would define fields to be always return a value while they would never causing runtime errors which are hard to catch. ([@paales](https://github.com/paales))
8
+
3
9
  ## 9.1.0-canary.18
4
10
 
5
11
  ## 9.1.0-canary.17
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-graphql",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.1.0-canary.18",
5
+ "version": "9.1.0-canary.19",
6
6
  "sideEffects": false,
7
7
  "main": "index.ts",
8
8
  "prettier": "@graphcommerce/prettier-config-pwa",
@@ -13,10 +13,10 @@
13
13
  }
14
14
  },
15
15
  "peerDependencies": {
16
- "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.18",
17
- "@graphcommerce/graphql": "^9.1.0-canary.18",
18
- "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.18",
19
- "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.18",
16
+ "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.19",
17
+ "@graphcommerce/graphql": "^9.1.0-canary.19",
18
+ "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.19",
19
+ "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.19",
20
20
  "graphql": "^16.0.0",
21
21
  "next": "*",
22
22
  "react": "^18.2.0",
@@ -51,7 +51,7 @@ type CustomerAddress {
51
51
  """
52
52
  Custom attributes assigned to the customer address.
53
53
  """
54
- custom_attributesV2(attributeCodes: [ID!]): [AttributeValueInterface]!
54
+ custom_attributesV2(attributeCodes: [ID!]): [AttributeValueInterface]
55
55
  @deprecated(reason: "Magento >= 2.4.7")
56
56
  }
57
57
 
@@ -0,0 +1,3 @@
1
+ type CustomerOrder {
2
+ applied_coupons: [AppliedCoupon]
3
+ }
@@ -17,5 +17,5 @@ type Mutation {
17
17
  An input object that specifies details for cart totals estimation
18
18
  """
19
19
  input: EstimateTotalsInput!
20
- ): EstimateTotalsOutput! @deprecated(reason: "Magento >= 2.4.7")
20
+ ): EstimateTotalsOutput @deprecated(reason: "Magento >= 2.4.7")
21
21
  }
@@ -28,7 +28,7 @@ type PlaceOrderOutput {
28
28
  """
29
29
  An array of place order errors.
30
30
  """
31
- errors: [PlaceOrderError]! @deprecated(reason: "Magento >= 2.4.7")
31
+ errors: [PlaceOrderError] @deprecated(reason: "Magento >= 2.4.7")
32
32
 
33
33
  """
34
34
  Full order information.
@@ -7,7 +7,7 @@ type Query {
7
7
  Form code.
8
8
  """
9
9
  formCode: String!
10
- ): AttributesFormOutput!
10
+ ): AttributesFormOutput @deprecated(reason: "Magento >= 2.4.7")
11
11
  """
12
12
  Returns a list of attributes metadata for a given entity type.
13
13
  """
@@ -20,7 +20,7 @@ type Query {
20
20
  Identifies which filter inputs to search for and return.
21
21
  """
22
22
  filters: AttributeFilterInput
23
- ): AttributesMetadataOutput
23
+ ): AttributesMetadataOutput @deprecated(reason: "Magento >= 2.4.7")
24
24
  }
25
25
 
26
26
  """
@@ -2,6 +2,6 @@ type Query {
2
2
  """
3
3
  Retrieve EAV attributes metadata.
4
4
  """
5
- customAttributeMetadataV2(attributes: [AttributeInput!]): AttributesMetadataOutput!
5
+ customAttributeMetadataV2(attributes: [AttributeInput!]): AttributesMetadataOutput
6
6
  @deprecated(reason: "Magento >= 2.4.7")
7
7
  }
@@ -27,5 +27,5 @@ type Query {
27
27
  """
28
28
  Retrieve guest order details based on number, email and postcode.
29
29
  """
30
- guestOrder(input: OrderInformationInput!): CustomerOrder! @deprecated(reason: "Magento >= 2.4.7")
30
+ guestOrder(input: OrderInformationInput!): CustomerOrder @deprecated(reason: "Magento >= 2.4.7")
31
31
  }
@@ -26,5 +26,5 @@ type Query {
26
26
  """
27
27
  Retrieve guest order details based on token.
28
28
  """
29
- guestOrderByToken(input: OrderTokenInput!): CustomerOrder! @deprecated(reason: "Magento >= 2.4.7")
29
+ guestOrderByToken(input: OrderTokenInput!): CustomerOrder @deprecated(reason: "Magento >= 2.4.7")
30
30
  }
@@ -0,0 +1,3 @@
1
+ type StoreConfig {
2
+ contact_enabled: Boolean @deprecated(reason: "Magento >= 2.4.7")
3
+ }
package/typePolicies.ts CHANGED
@@ -82,7 +82,12 @@ export const magentoTypePolicies: TypedTypePolicies = {
82
82
  // CreditMemoTotal: { keyFields: false },
83
83
  // Currency: { keyFields: [] },
84
84
  // CustomAttributeMetadata: { keyFields: [] },
85
- Customer: { keyFields: [] },
85
+ Customer: {
86
+ keyFields: [],
87
+ fields: {
88
+ custom_attributes: { merge: (_, incoming) => incoming },
89
+ },
90
+ },
86
91
  // CustomerAddress: { keyFields: ['id'] },
87
92
  // CustomerAddressAttribute: { keyFields: false },
88
93
  // CustomerAddressRegion: { keyFields: false },