@graphcommerce/magento-graphql 9.0.0-canary.59 → 9.0.0-canary.61

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,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.61
4
+
5
+ ## 9.0.0-canary.60
6
+
3
7
  ## 9.0.0-canary.59
4
8
 
5
9
  ## 9.0.0-canary.58
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.0.0-canary.59",
5
+ "version": "9.0.0-canary.61",
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.0.0-canary.59",
17
- "@graphcommerce/graphql": "^9.0.0-canary.59",
18
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.59",
19
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.59",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.61",
17
+ "@graphcommerce/graphql": "^9.0.0-canary.61",
18
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.61",
19
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.61",
20
20
  "next": "*",
21
21
  "react": "^18.2.0",
22
22
  "react-dom": "^18.2.0"
@@ -1,13 +1,13 @@
1
- import { graphqlConfig } from '@graphcommerce/graphql'
2
- import type { FunctionPlugin } from '@graphcommerce/next-config'
1
+ import { graphqlConfig as graphqlConfigType } from '@graphcommerce/graphql'
2
+ import type { FunctionPlugin, PluginConfig } from '@graphcommerce/next-config'
3
3
  import { magentoTypePolicies } from '../typePolicies'
4
4
 
5
- export const func = 'graphqlConfig'
6
- export const exported = '@graphcommerce/graphql/config'
5
+ export const config: PluginConfig = {
6
+ type: 'function',
7
+ module: '@graphcommerce/graphql',
8
+ }
7
9
 
8
- const magentoGraphqlConfig: FunctionPlugin<typeof graphqlConfig> = (prev, config) => {
10
+ export const graphqlConfig: FunctionPlugin<typeof graphqlConfigType> = (prev, config) => {
9
11
  const results = prev(config)
10
12
  return { ...results, policies: [magentoTypePolicies, ...results.policies] }
11
13
  }
12
-
13
- export const plugin = magentoGraphqlConfig
@@ -32,3 +32,18 @@ type Mutation {
32
32
  """
33
33
  cancelOrder(input: CancelOrderInput!): CancelOrderOutput @deprecated(reason: "Magento >= 2.4.7")
34
34
  }
35
+
36
+ type CancellationReason {
37
+ description: String!
38
+ }
39
+
40
+ type StoreConfig {
41
+ """
42
+ Indicates whether orders can be cancelled by customers or not.
43
+ """
44
+ order_cancellation_enabled: Boolean
45
+ """
46
+ An array containing available cancellation reasons.
47
+ """
48
+ order_cancellation_reasons: [CancellationReason]
49
+ }