@graphcommerce/magento-graphql 8.1.0-canary.9 → 9.0.0-canary.55

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,102 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.55
4
+
5
+ ## 9.0.0-canary.54
6
+
7
+ ## 8.1.0-canary.53
8
+
9
+ ## 8.1.0-canary.52
10
+
11
+ ## 8.1.0-canary.51
12
+
13
+ ## 8.1.0-canary.50
14
+
15
+ ## 8.1.0-canary.49
16
+
17
+ ## 8.1.0-canary.48
18
+
19
+ ## 8.1.0-canary.47
20
+
21
+ ## 8.1.0-canary.46
22
+
23
+ ## 8.1.0-canary.45
24
+
25
+ ## 8.1.0-canary.44
26
+
27
+ ## 8.1.0-canary.43
28
+
29
+ ## 8.1.0-canary.42
30
+
31
+ ## 8.1.0-canary.41
32
+
33
+ ## 8.1.0-canary.40
34
+
35
+ ## 8.1.0-canary.39
36
+
37
+ ## 8.1.0-canary.38
38
+
39
+ ## 8.1.0-canary.37
40
+
41
+ ## 8.1.0-canary.36
42
+
43
+ ## 8.1.0-canary.35
44
+
45
+ ## 8.1.0-canary.34
46
+
47
+ ## 8.1.0-canary.33
48
+
49
+ ## 8.1.0-canary.32
50
+
51
+ ### Patch Changes
52
+
53
+ - [#2299](https://github.com/graphcommerce-org/graphcommerce/pull/2299) [`c6ac45b`](https://github.com/graphcommerce-org/graphcommerce/commit/c6ac45b8ff41dcaa47f1e5d40d04e120990870aa) - Added a magentoVersion configuration value to be able to differentiate features based on the Magento version
54
+ ([@paales](https://github.com/paales))
55
+
56
+ ## 8.1.0-canary.31
57
+
58
+ ## 8.1.0-canary.30
59
+
60
+ ## 8.1.0-canary.29
61
+
62
+ ## 8.1.0-canary.28
63
+
64
+ ## 8.1.0-canary.27
65
+
66
+ ## 8.1.0-canary.26
67
+
68
+ ## 8.1.0-canary.25
69
+
70
+ ## 8.1.0-canary.24
71
+
72
+ ## 8.1.0-canary.23
73
+
74
+ ## 8.1.0-canary.22
75
+
76
+ ## 8.1.0-canary.21
77
+
78
+ ## 8.1.0-canary.20
79
+
80
+ ## 8.1.0-canary.19
81
+
82
+ ## 8.1.0-canary.18
83
+
84
+ ## 8.1.0-canary.17
85
+
86
+ ## 8.1.0-canary.16
87
+
88
+ ## 8.1.0-canary.15
89
+
90
+ ## 8.1.0-canary.14
91
+
92
+ ## 8.1.0-canary.13
93
+
94
+ ## 8.1.0-canary.12
95
+
96
+ ## 8.1.0-canary.11
97
+
98
+ ## 8.1.0-canary.10
99
+
3
100
  ## 8.1.0-canary.9
4
101
 
5
102
  ## 8.1.0-canary.8
package/Config.graphqls CHANGED
@@ -6,6 +6,13 @@ extend input GraphCommerceConfig {
6
6
  - https://magento2.test/graphql
7
7
  """
8
8
  magentoEndpoint: String!
9
+
10
+ """
11
+ Version of the Magento backend.
12
+
13
+ Values: 245, 246, 247 for Magento 2.4.5, 2.4.6, 2.4.7 respectively.
14
+ """
15
+ magentoVersion: Int!
9
16
  }
10
17
 
11
18
  extend input GraphCommerceStorefrontConfig {
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": "8.1.0-canary.9",
5
+ "version": "9.0.0-canary.55",
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": "^8.1.0-canary.9",
17
- "@graphcommerce/graphql": "^8.1.0-canary.9",
18
- "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.9",
19
- "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.9",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.55",
17
+ "@graphcommerce/graphql": "^9.0.0-canary.55",
18
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.55",
19
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.55",
20
20
  "next": "*",
21
21
  "react": "^18.2.0",
22
22
  "react-dom": "^18.2.0"
@@ -0,0 +1,15 @@
1
+ input CartAddressInput {
2
+ vat_id: String @deprecated(reason: "Magento >= 2.4.6")
3
+ }
4
+
5
+ interface CartAddressInterface {
6
+ vat_id: String @deprecated(reason: "Magento >= 2.4.6")
7
+ }
8
+
9
+ type ShippingCartAddress implements CartAddressInterface {
10
+ vat_id: String @deprecated(reason: "Magento >= 2.4.6")
11
+ }
12
+
13
+ type BillingCartAddress {
14
+ vat_id: String @deprecated(reason: "Magento >= 2.4.6")
15
+ }
@@ -0,0 +1,6 @@
1
+ type Mutation {
2
+ """
3
+ Delete customer account
4
+ """
5
+ deleteCustomer: Boolean @deprecated(reason: "Magento >= 2.4.6")
6
+ }
@@ -0,0 +1,27 @@
1
+ interface OrderItemInterface {
2
+ """
3
+ The selected gift message for the order item
4
+ """
5
+ gift_message: GiftMessage @deprecated(reason: "Magento >= 2.4.6")
6
+ }
7
+
8
+ type OrderItem {
9
+ """
10
+ The selected gift message for the order item
11
+ """
12
+ gift_message: GiftMessage @deprecated(reason: "Magento >= 2.4.6")
13
+ }
14
+
15
+ type BundleOrderItem {
16
+ """
17
+ The selected gift message for the order item
18
+ """
19
+ gift_message: GiftMessage @deprecated(reason: "Magento >= 2.4.6")
20
+ }
21
+
22
+ type DownloadableOrderItem {
23
+ """
24
+ The selected gift message for the order item
25
+ """
26
+ gift_message: GiftMessage @deprecated(reason: "Magento >= 2.4.6")
27
+ }
@@ -0,0 +1,4 @@
1
+ type SelectedShippingMethod {
2
+ price_excl_tax: Money @deprecated(reason: "Magento >= 2.4.6")
3
+ price_incl_tax: Money @deprecated(reason: "Magento >= 2.4.6")
4
+ }
@@ -0,0 +1,72 @@
1
+ type CartItems {
2
+ """
3
+ An array of products that have been added to the cart.
4
+ """
5
+ items: [CartItemInterface]!
6
+ """
7
+ Metadata for pagination rendering.
8
+ """
9
+ page_info: SearchResultPageInfo
10
+ """
11
+ The number of returned cart items.
12
+ """
13
+ total_count: Int!
14
+ }
15
+
16
+ """
17
+ Specifies the field to use for sorting quote items
18
+ """
19
+ enum SortQuoteItemsEnum {
20
+ ITEM_ID
21
+ CREATED_AT
22
+ UPDATED_AT
23
+ PRODUCT_ID
24
+ SKU
25
+ NAME
26
+ DESCRIPTION
27
+ WEIGHT
28
+ QTY
29
+ PRICE
30
+ BASE_PRICE
31
+ CUSTOM_PRICE
32
+ DISCOUNT_PERCENT
33
+ DISCOUNT_AMOUNT
34
+ BASE_DISCOUNT_AMOUNT
35
+ TAX_PERCENT
36
+ TAX_AMOUNT
37
+ BASE_TAX_AMOUNT
38
+ ROW_TOTAL
39
+ BASE_ROW_TOTAL
40
+ ROW_TOTAL_WITH_DISCOUNT
41
+ ROW_WEIGHT
42
+ PRODUCT_TYPE
43
+ BASE_TAX_BEFORE_DISCOUNT
44
+ TAX_BEFORE_DISCOUNT
45
+ ORIGINAL_CUSTOM_PRICE
46
+ PRICE_INC_TAX
47
+ BASE_PRICE_INC_TAX
48
+ ROW_TOTAL_INC_TAX
49
+ BASE_ROW_TOTAL_INC_TAX
50
+ DISCOUNT_TAX_COMPENSATION_AMOUNT
51
+ BASE_DISCOUNT_TAX_COMPENSATION_AMOUNT
52
+ FREE_SHIPPING
53
+ }
54
+
55
+ """
56
+ Specifies the field to use for sorting quote items
57
+ """
58
+ input QuoteItemsSortInput {
59
+ """
60
+ Specifies the quote items field to sort by
61
+ """
62
+ field: SortQuoteItemsEnum!
63
+ """
64
+ Specifies the order of quote items' sorting
65
+ """
66
+ order: SortEnum!
67
+ }
68
+
69
+ type Cart {
70
+ itemsV2(pageSize: Int = 20, currentPage: Int = 1, sort: QuoteItemsSortInput): CartItems
71
+ @deprecated(reason: "Magento >= 2.4.7")
72
+ }
@@ -0,0 +1,56 @@
1
+ input CartAddressInput {
2
+ """
3
+ The customer's fax number.
4
+ """
5
+ fax: String @deprecated(reason: "Magento >= 2.4.7")
6
+ """
7
+ The middle name of the person associated with the billing/shipping address.
8
+ """
9
+ middlename: String @deprecated(reason: "Magento >= 2.4.7")
10
+ """
11
+ An honorific, such as Dr., Mr., or Mrs.
12
+ """
13
+ prefix: String @deprecated(reason: "Magento >= 2.4.7")
14
+ """
15
+ A value such as Sr., Jr., or III.
16
+ """
17
+ suffix: String @deprecated(reason: "Magento >= 2.4.7")
18
+ }
19
+
20
+ type BillingCartAdress {
21
+ """
22
+ The customer's fax number.
23
+ """
24
+ fax: String @deprecated(reason: "Magento >= 2.4.7")
25
+ """
26
+ The middle name of the person associated with the billing/shipping address.
27
+ """
28
+ middlename: String @deprecated(reason: "Magento >= 2.4.7")
29
+ """
30
+ An honorific, such as Dr., Mr., or Mrs.
31
+ """
32
+ prefix: String @deprecated(reason: "Magento >= 2.4.7")
33
+ """
34
+ A value such as Sr., Jr., or III.
35
+ """
36
+ suffix: String @deprecated(reason: "Magento >= 2.4.7")
37
+ }
38
+
39
+ type ShippingCartAddress {
40
+ """
41
+ The customer's fax number.
42
+ """
43
+ fax: String @deprecated(reason: "Magento >= 2.4.7")
44
+ """
45
+ The middle name of the person associated with the billing/shipping address.
46
+ """
47
+ middlename: String @deprecated(reason: "Magento >= 2.4.7")
48
+ """
49
+ An honorific, such as Dr., Mr., or Mrs.
50
+ """
51
+ prefix: String @deprecated(reason: "Magento >= 2.4.7")
52
+ """
53
+ A value such as Sr., Jr., or III.
54
+ """
55
+ suffix: String @deprecated(reason: "Magento >= 2.4.7")
56
+ }
@@ -0,0 +1,266 @@
1
+ """
2
+ Specifies the value for attribute.
3
+ """
4
+ input AttributeValueInput {
5
+ """
6
+ The code of the attribute.
7
+ """
8
+ attribute_code: String!
9
+ """
10
+ An array containing selected options for a select or multiselect attribute.
11
+ """
12
+ selected_options: [AttributeInputSelectedOption]
13
+ """
14
+ The value assigned to the attribute.
15
+ """
16
+ value: String
17
+ }
18
+
19
+ """
20
+ Specifies selected option for a select or multiselect attribute value.
21
+ """
22
+ input AttributeInputSelectedOption {
23
+ """
24
+ The attribute option value.
25
+ """
26
+ value: String!
27
+ }
28
+
29
+ input CustomerCreateInput {
30
+ """
31
+ The customer's custom attributes.
32
+ """
33
+ custom_attributes: [AttributeValueInput]
34
+ }
35
+
36
+ input CustomerUpdateInput {
37
+ """
38
+ The customer's custom attributes.
39
+ """
40
+ custom_attributes: [AttributeValueInput]
41
+ }
42
+
43
+ input CustomerAddressInput {
44
+ """
45
+ Custom attributes assigned to the customer address.
46
+ """
47
+ custom_attributesV2: [AttributeValueInput]
48
+ }
49
+
50
+ type CustomerAddress {
51
+ """
52
+ Custom attributes assigned to the customer address.
53
+ """
54
+ custom_attributesV2(attributeCodes: [ID!]): [AttributeValueInterface]!
55
+ @deprecated(reason: "Magento >= 2.4.7")
56
+ }
57
+
58
+ type Customer {
59
+ """
60
+ Customer's custom attributes.
61
+ """
62
+ custom_attributes(attributeCodes: [ID!]): [AttributeValueInterface]
63
+ @deprecated(reason: "Magento >= 2.4.7")
64
+ }
65
+
66
+ """
67
+ An input object that specifies the filters used for attributes.
68
+ """
69
+ input AttributeFilterInput {
70
+ """
71
+ Whether a product or category attribute can be compared against another or not.
72
+ """
73
+ is_comparable: Boolean
74
+ """
75
+ Whether a product or category attribute can be filtered or not.
76
+ """
77
+ is_filterable: Boolean
78
+ """
79
+ Whether a product or category attribute can be filtered in search or not.
80
+ """
81
+ is_filterable_in_search: Boolean
82
+ """
83
+ Whether a product or category attribute can use HTML on front or not.
84
+ """
85
+ is_html_allowed_on_front: Boolean
86
+ """
87
+ Whether a product or category attribute can be searched or not.
88
+ """
89
+ is_searchable: Boolean
90
+ """
91
+ Whether a product or category attribute can be used for price rules or not.
92
+ """
93
+ is_used_for_price_rules: Boolean
94
+ """
95
+ Whether a product or category attribute is used for promo rules or not.
96
+ """
97
+ is_used_for_promo_rules: Boolean
98
+ """
99
+ Whether a product or category attribute is visible in advanced search or not.
100
+ """
101
+ is_visible_in_advanced_search: Boolean
102
+ """
103
+ Whether a product or category attribute is visible on front or not.
104
+ """
105
+ is_visible_on_front: Boolean
106
+ """
107
+ Whether a product or category attribute has WYSIWYG enabled or not.
108
+ """
109
+ is_wysiwyg_enabled: Boolean
110
+ """
111
+ Whether a product or category attribute is used in product listing or not.
112
+ """
113
+ used_in_product_listing: Boolean
114
+ }
115
+
116
+ interface ProductInterface {
117
+ """
118
+ Product custom attributes.
119
+ """
120
+ custom_attributesV2(filters: AttributeFilterInput): ProductCustomAttributes
121
+ @deprecated(reason: "Magento >= 2.4.7")
122
+ }
123
+
124
+ type VirtualProduct {
125
+ """
126
+ Product custom attributes.
127
+ """
128
+ custom_attributesV2(filters: AttributeFilterInput): ProductCustomAttributes
129
+ @deprecated(reason: "Magento >= 2.4.7")
130
+ }
131
+
132
+ type SimpleProduct {
133
+ """
134
+ Product custom attributes.
135
+ """
136
+ custom_attributesV2(filters: AttributeFilterInput): ProductCustomAttributes
137
+ @deprecated(reason: "Magento >= 2.4.7")
138
+ }
139
+
140
+ type ConfigurableProduct {
141
+ """
142
+ Product custom attributes.
143
+ """
144
+ custom_attributesV2(filters: AttributeFilterInput): ProductCustomAttributes
145
+ @deprecated(reason: "Magento >= 2.4.7")
146
+ }
147
+
148
+ type GroupedProduct {
149
+ """
150
+ Product custom attributes.
151
+ """
152
+ custom_attributesV2(filters: AttributeFilterInput): ProductCustomAttributes
153
+ @deprecated(reason: "Magento >= 2.4.7")
154
+ }
155
+
156
+ type BundleProduct {
157
+ """
158
+ Product custom attributes.
159
+ """
160
+ custom_attributesV2(filters: AttributeFilterInput): ProductCustomAttributes
161
+ @deprecated(reason: "Magento >= 2.4.7")
162
+ }
163
+ type DownloadableProduct {
164
+ """
165
+ Product custom attributes.
166
+ """
167
+ custom_attributesV2(filters: AttributeFilterInput): ProductCustomAttributes
168
+ @deprecated(reason: "Magento >= 2.4.7")
169
+ }
170
+ """
171
+ Product custom attributes
172
+ """
173
+ type ProductCustomAttributes {
174
+ """
175
+ Errors when retrieving custom attributes metadata.
176
+ """
177
+ errors: [AttributeMetadataError]!
178
+ """
179
+ Requested custom attributes
180
+ """
181
+ items: [AttributeValueInterface]!
182
+ }
183
+
184
+ """
185
+ Attribute metadata retrieval error.
186
+ """
187
+ type AttributeMetadataError {
188
+ """
189
+ Attribute metadata retrieval error message.
190
+ """
191
+ message: String!
192
+ """
193
+ Attribute metadata retrieval error type.
194
+ """
195
+ type: AttributeMetadataErrorType!
196
+ }
197
+
198
+ """
199
+ Attribute metadata retrieval error types.
200
+ """
201
+ enum AttributeMetadataErrorType {
202
+ """
203
+ The requested entity was not found.
204
+ """
205
+ ENTITY_NOT_FOUND
206
+ """
207
+ The requested attribute was not found.
208
+ """
209
+ ATTRIBUTE_NOT_FOUND
210
+ """
211
+ The filter cannot be applied as it does not belong to the entity
212
+ """
213
+ FILTER_NOT_FOUND
214
+ """
215
+ Not categorized error, see the error message.
216
+ """
217
+ UNDEFINED
218
+ }
219
+
220
+ interface AttributeValueInterface {
221
+ """
222
+ The attribute code.
223
+ """
224
+ code: ID!
225
+ }
226
+
227
+ type AttributeValue implements AttributeValueInterface {
228
+ """
229
+ The attribute code.
230
+ """
231
+ code: ID!
232
+ """
233
+ The attribute value.
234
+ """
235
+ value: String!
236
+ }
237
+
238
+ type AttributeSelectedOptions implements AttributeValueInterface {
239
+ """
240
+ The attribute code.
241
+ """
242
+ code: ID!
243
+ selected_options: [AttributeSelectedOptionInterface]!
244
+ }
245
+
246
+ interface AttributeSelectedOptionInterface {
247
+ """
248
+ The attribute selected option label.
249
+ """
250
+ label: String!
251
+ """
252
+ The attribute selected option value.
253
+ """
254
+ value: String!
255
+ }
256
+
257
+ type AttributeSelectedOption implements AttributeSelectedOptionInterface {
258
+ """
259
+ The attribute selected option label.
260
+ """
261
+ label: String!
262
+ """
263
+ The attribute selected option value.
264
+ """
265
+ value: String!
266
+ }
@@ -0,0 +1,34 @@
1
+ """
2
+ Defines the order to cancel.
3
+ """
4
+ input CancelOrderInput {
5
+ """
6
+ Order ID.
7
+ """
8
+ order_id: ID!
9
+ """
10
+ Cancellation reason.
11
+ """
12
+ reason: String!
13
+ }
14
+
15
+ """
16
+ Contains the updated customer order and error message if any.
17
+ """
18
+ type CancelOrderOutput {
19
+ """
20
+ Error encountered while cancelling the order.
21
+ """
22
+ error: String
23
+ """
24
+ Updated customer order.
25
+ """
26
+ order: CustomerOrder
27
+ }
28
+
29
+ type Mutation {
30
+ """
31
+ Cancel the specified customer order.
32
+ """
33
+ cancelOrder(input: CancelOrderInput!): CancelOrderOutput @deprecated(reason: "Magento >= 2.4.7")
34
+ }
@@ -0,0 +1,55 @@
1
+ # This is a commpatibility file: This does not implement any working functionality and only serves as a way to make the schema compatible with Magento 2.4.7
2
+
3
+ type StoreConfig {
4
+ """
5
+ Indicates if the new accounts need confirmation.
6
+ """
7
+ create_account_confirmation: Boolean
8
+ }
9
+
10
+ """
11
+ List of account confirmation statuses.
12
+ """
13
+ enum ConfirmationStatusEnum {
14
+ """
15
+ Account confirmed
16
+ """
17
+ ACCOUNT_CONFIRMED
18
+ """
19
+ Account confirmation not required
20
+ """
21
+ ACCOUNT_CONFIRMATION_NOT_REQUIRED
22
+ }
23
+
24
+ type Customer {
25
+ """
26
+ The customer's confirmation status.
27
+ """
28
+ confirmation_status: ConfirmationStatusEnum!
29
+ }
30
+
31
+ """
32
+ Contains details about a customer email address to confirm.
33
+ """
34
+ input ConfirmEmailInput {
35
+ """
36
+ The key to confirm the email address.
37
+ """
38
+ confirmation_key: String!
39
+ """
40
+ The email address to be confirmed.
41
+ """
42
+ email: String!
43
+ }
44
+
45
+ type Mutation @doc(description: "Jajaj") {
46
+ """
47
+ Confirms the email address for a customer.
48
+ """
49
+ confirmEmail(
50
+ """
51
+ An input object to identify the customer to confirm the email.
52
+ """
53
+ input: ConfirmEmailInput!
54
+ ): CustomerOutput @deprecated(reason: "Magento >= 2.4.7")
55
+ }