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

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +194 -0
  2. package/Config.graphqls +7 -0
  3. package/graphqlErrorByCategory.ts +7 -7
  4. package/mesh/attributeValueResolver.ts +31 -0
  5. package/mesh/customAttributeMetadataV2.ts +68 -0
  6. package/mesh/customAttributeV2Resolver.ts +47 -0
  7. package/package.json +6 -5
  8. package/plugins/magentoGraphqlConfig.ts +7 -7
  9. package/plugins/meshConfigAttrValue.ts +24 -0
  10. package/schema/AttributeValueInterface-attribute.graphqls +9 -0
  11. package/schema/ProductInterface-custom_attribute.graphqls +49 -0
  12. package/schema-246/CartAddressInput-vat_id.graphqls +15 -0
  13. package/schema-246/Mutation-deleteCustomer.graphqls +6 -0
  14. package/schema-246/OrderItem-gift_message.graphqls +27 -0
  15. package/schema-246/SelectedShippingMethod.graphqls +4 -0
  16. package/schema-247/Cart-itemsV2.graphqls +72 -0
  17. package/schema-247/CartAddress.graphqls +56 -0
  18. package/schema-247/CustomAttributesV2.graphqls +266 -0
  19. package/schema-247/Mutation-cancelOrder.graphqls +49 -0
  20. package/schema-247/Mutation-confirmEmail.graphqls +55 -0
  21. package/schema-247/Mutation-contactUs.graphqls +40 -0
  22. package/schema-247/Mutation-createGuestCart.graphqls +21 -0
  23. package/schema-247/Mutation-estimateShippingMethods.graphqls +44 -0
  24. package/schema-247/Mutation-estimateTotals.graphqls +21 -0
  25. package/schema-247/Mutation-placeOrder.graphqls +10 -0
  26. package/schema-247/ProductAttributeFilterInput-category_url_path.graphqls +3 -0
  27. package/schema-247/Query-attributesList.graphqls +450 -0
  28. package/schema-247/Query-customAttributeMetadataV2.graphqls +7 -0
  29. package/schema-247/Query-guestOrder.graphqls +31 -0
  30. package/schema-247/Query-guestOrderByToken.graphqls +30 -0
  31. package/schema-247/Query-recaptchaV3Config.graphqls +53 -0
  32. package/typePolicies.ts +5 -5
  33. package/schema/Magento243to245.graphqls +0 -52
@@ -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,49 @@
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
+ }
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
+ }
@@ -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
+ }
@@ -0,0 +1,40 @@
1
+ input ContactUsInput {
2
+ """
3
+ The shopper's comment to the merchant.
4
+ """
5
+ comment: String!
6
+ """
7
+ The email address of the shopper.
8
+ """
9
+ email: String!
10
+ """
11
+ The full name of the shopper.
12
+ """
13
+ name: String!
14
+ """
15
+ The shopper's telephone number.
16
+ """
17
+ telephone: String
18
+ }
19
+
20
+ """
21
+ Contains the status of the request.
22
+ """
23
+ type ContactUsOutput {
24
+ """
25
+ Indicates whether the request was successful.
26
+ """
27
+ status: Boolean!
28
+ }
29
+
30
+ type Mutation {
31
+ """
32
+ Send a 'Contact Us' email to the merchant.
33
+ """
34
+ contactUs(
35
+ """
36
+ An input object that defines shopper information.
37
+ """
38
+ input: ContactUsInput!
39
+ ): ContactUsOutput @deprecated(reason: "Magento >= 2.4.7")
40
+ }
@@ -0,0 +1,21 @@
1
+ input CreateGuestCartInput {
2
+ """
3
+ Optional client-generated ID
4
+ """
5
+ cart_uid: ID
6
+ }
7
+
8
+ type CreateGuestCartOutput {
9
+ """
10
+ The newly created cart.
11
+ """
12
+ cart: Cart
13
+ }
14
+
15
+ type Mutation {
16
+ """
17
+ Create a new shopping cart
18
+ """
19
+ createGuestCart(input: CreateGuestCartInput): CreateGuestCartOutput
20
+ @deprecated(reason: "Magento >= 2.4.7")
21
+ }
@@ -0,0 +1,44 @@
1
+ """
2
+ Contains details about an address.
3
+ """
4
+ input EstimateAddressInput {
5
+ """
6
+ The two-letter code representing the customer's country.
7
+ """
8
+ country_code: CountryCodeEnum!
9
+ """
10
+ The customer's ZIP or postal code.
11
+ """
12
+ postcode: String
13
+ """
14
+ An object containing the region name, region code, and region ID.
15
+ """
16
+ region: CustomerAddressRegionInput
17
+ }
18
+
19
+ input EstimateTotalsInput {
20
+ """
21
+ Customer's address to estimate totals.
22
+ """
23
+ address: EstimateAddressInput!
24
+ """
25
+ The unique ID of the cart to query.
26
+ """
27
+ cart_id: String!
28
+ """
29
+ Selected shipping method to estimate totals.
30
+ """
31
+ shipping_method: ShippingMethodInput
32
+ }
33
+
34
+ type Mutation {
35
+ """
36
+ Estimate shipping method(s) for cart based on address
37
+ """
38
+ estimateShippingMethods(
39
+ """
40
+ An input object that specifies details for estimation of available shipping methods
41
+ """
42
+ input: EstimateTotalsInput!
43
+ ): [AvailableShippingMethod] @deprecated(reason: "Magento >= 2.4.7")
44
+ }
@@ -0,0 +1,21 @@
1
+ """
2
+ Estimate totals output.
3
+ """
4
+ type EstimateTotalsOutput {
5
+ """
6
+ Cart after totals estimation
7
+ """
8
+ cart: Cart
9
+ }
10
+
11
+ type Mutation {
12
+ """
13
+ Estimate totals for cart based on the address
14
+ """
15
+ estimateTotals(
16
+ """
17
+ An input object that specifies details for cart totals estimation
18
+ """
19
+ input: EstimateTotalsInput!
20
+ ): EstimateTotalsOutput! @deprecated(reason: "Magento >= 2.4.7")
21
+ }
@@ -0,0 +1,10 @@
1
+ type PlaceOrderOutput {
2
+ """
3
+ The ID of the order.
4
+ """
5
+ order: Order
6
+ """
7
+ Full order information.
8
+ """
9
+ orderV2: CustomerOrder @deprecated(reason: "Magento >= 2.4.7")
10
+ }
@@ -0,0 +1,3 @@
1
+ input ProductAttributeFilterInput {
2
+ category_url_path: FilterEqualTypeInput @deprecated(reason: "Magento >= 2.4.7")
3
+ }