@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.
- package/CHANGELOG.md +194 -0
- package/Config.graphqls +7 -0
- package/graphqlErrorByCategory.ts +7 -7
- package/mesh/attributeValueResolver.ts +31 -0
- package/mesh/customAttributeMetadataV2.ts +68 -0
- package/mesh/customAttributeV2Resolver.ts +47 -0
- package/package.json +6 -5
- package/plugins/magentoGraphqlConfig.ts +7 -7
- package/plugins/meshConfigAttrValue.ts +24 -0
- package/schema/AttributeValueInterface-attribute.graphqls +9 -0
- package/schema/ProductInterface-custom_attribute.graphqls +49 -0
- package/schema-246/CartAddressInput-vat_id.graphqls +15 -0
- package/schema-246/Mutation-deleteCustomer.graphqls +6 -0
- package/schema-246/OrderItem-gift_message.graphqls +27 -0
- package/schema-246/SelectedShippingMethod.graphqls +4 -0
- package/schema-247/Cart-itemsV2.graphqls +72 -0
- package/schema-247/CartAddress.graphqls +56 -0
- package/schema-247/CustomAttributesV2.graphqls +266 -0
- package/schema-247/Mutation-cancelOrder.graphqls +49 -0
- package/schema-247/Mutation-confirmEmail.graphqls +55 -0
- package/schema-247/Mutation-contactUs.graphqls +40 -0
- package/schema-247/Mutation-createGuestCart.graphqls +21 -0
- package/schema-247/Mutation-estimateShippingMethods.graphqls +44 -0
- package/schema-247/Mutation-estimateTotals.graphqls +21 -0
- package/schema-247/Mutation-placeOrder.graphqls +10 -0
- package/schema-247/ProductAttributeFilterInput-category_url_path.graphqls +3 -0
- package/schema-247/Query-attributesList.graphqls +450 -0
- package/schema-247/Query-customAttributeMetadataV2.graphqls +7 -0
- package/schema-247/Query-guestOrder.graphqls +31 -0
- package/schema-247/Query-guestOrderByToken.graphqls +30 -0
- package/schema-247/Query-recaptchaV3Config.graphqls +53 -0
- package/typePolicies.ts +5 -5
- package/schema/Magento243to245.graphqls +0 -52
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
type Query {
|
|
2
|
+
"""
|
|
3
|
+
Retrieve EAV attributes associated to a frontend form. Use countries query provided by DirectoryGraphQl module to retrieve region_id and country_id attribute options.
|
|
4
|
+
"""
|
|
5
|
+
attributesForm(
|
|
6
|
+
"""
|
|
7
|
+
Form code.
|
|
8
|
+
"""
|
|
9
|
+
formCode: String!
|
|
10
|
+
): AttributesFormOutput!
|
|
11
|
+
"""
|
|
12
|
+
Returns a list of attributes metadata for a given entity type.
|
|
13
|
+
"""
|
|
14
|
+
attributesList(
|
|
15
|
+
"""
|
|
16
|
+
Entity type.
|
|
17
|
+
"""
|
|
18
|
+
entityType: AttributeEntityTypeEnum!
|
|
19
|
+
"""
|
|
20
|
+
Identifies which filter inputs to search for and return.
|
|
21
|
+
"""
|
|
22
|
+
filters: AttributeFilterInput
|
|
23
|
+
): AttributesMetadataOutput
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
Metadata of EAV attributes associated to form
|
|
28
|
+
"""
|
|
29
|
+
type AttributesFormOutput {
|
|
30
|
+
"""
|
|
31
|
+
Errors of retrieving certain attributes metadata.
|
|
32
|
+
"""
|
|
33
|
+
errors: [AttributeMetadataError]!
|
|
34
|
+
"""
|
|
35
|
+
Requested attributes metadata.
|
|
36
|
+
"""
|
|
37
|
+
items: [CustomAttributeMetadataInterface]!
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
"""
|
|
41
|
+
Metadata of EAV attributes.
|
|
42
|
+
"""
|
|
43
|
+
type AttributesMetadataOutput {
|
|
44
|
+
"""
|
|
45
|
+
Errors of retrieving certain attributes metadata.
|
|
46
|
+
"""
|
|
47
|
+
errors: [AttributeMetadataError]!
|
|
48
|
+
"""
|
|
49
|
+
Requested attributes metadata.
|
|
50
|
+
"""
|
|
51
|
+
items: [CustomAttributeMetadataInterface]!
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
enum CatalogAttributeApplyToEnum {
|
|
55
|
+
SIMPLE
|
|
56
|
+
VIRTUAL
|
|
57
|
+
BUNDLE
|
|
58
|
+
DOWNLOADABLE
|
|
59
|
+
CONFIGURABLE
|
|
60
|
+
GROUPED
|
|
61
|
+
CATEGORY
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
"""
|
|
65
|
+
List of all entity types. Populated by the modules introducing EAV entities.
|
|
66
|
+
"""
|
|
67
|
+
enum AttributeEntityTypeEnum {
|
|
68
|
+
CATALOG_PRODUCT
|
|
69
|
+
CATALOG_CATEGORY
|
|
70
|
+
CUSTOMER
|
|
71
|
+
CUSTOMER_ADDRESS
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
"""
|
|
75
|
+
An interface containing fields that define the EAV attribute.
|
|
76
|
+
"""
|
|
77
|
+
interface CustomAttributeMetadataInterface {
|
|
78
|
+
"""
|
|
79
|
+
The unique identifier for an attribute code. This value should be in lowercase letters without spaces.
|
|
80
|
+
"""
|
|
81
|
+
code: ID!
|
|
82
|
+
"""
|
|
83
|
+
Default attribute value.
|
|
84
|
+
"""
|
|
85
|
+
default_value: String
|
|
86
|
+
"""
|
|
87
|
+
The type of entity that defines the attribute.
|
|
88
|
+
"""
|
|
89
|
+
entity_type: AttributeEntityTypeEnum!
|
|
90
|
+
"""
|
|
91
|
+
The frontend class of the attribute.
|
|
92
|
+
"""
|
|
93
|
+
frontend_class: String
|
|
94
|
+
"""
|
|
95
|
+
The frontend input type of the attribute.
|
|
96
|
+
"""
|
|
97
|
+
frontend_input: AttributeFrontendInputEnum
|
|
98
|
+
"""
|
|
99
|
+
Whether the attribute value is required.
|
|
100
|
+
"""
|
|
101
|
+
is_required: Boolean!
|
|
102
|
+
"""
|
|
103
|
+
Whether the attribute value must be unique.
|
|
104
|
+
"""
|
|
105
|
+
is_unique: Boolean!
|
|
106
|
+
"""
|
|
107
|
+
The label assigned to the attribute.
|
|
108
|
+
"""
|
|
109
|
+
label: String
|
|
110
|
+
"""
|
|
111
|
+
Attribute options.
|
|
112
|
+
"""
|
|
113
|
+
options: [CustomAttributeOptionInterface]!
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
"""
|
|
117
|
+
Base EAV implementation of CustomAttributeMetadataInterface.
|
|
118
|
+
"""
|
|
119
|
+
type AttributeMetadata implements CustomAttributeMetadataInterface {
|
|
120
|
+
"""
|
|
121
|
+
The unique identifier for an attribute code. This value should be in lowercase letters without spaces.
|
|
122
|
+
"""
|
|
123
|
+
code: ID!
|
|
124
|
+
"""
|
|
125
|
+
Default attribute value.
|
|
126
|
+
"""
|
|
127
|
+
default_value: String
|
|
128
|
+
"""
|
|
129
|
+
The type of entity that defines the attribute.
|
|
130
|
+
"""
|
|
131
|
+
entity_type: AttributeEntityTypeEnum!
|
|
132
|
+
"""
|
|
133
|
+
The frontend class of the attribute.
|
|
134
|
+
"""
|
|
135
|
+
frontend_class: String
|
|
136
|
+
"""
|
|
137
|
+
The frontend input type of the attribute.
|
|
138
|
+
"""
|
|
139
|
+
frontend_input: AttributeFrontendInputEnum
|
|
140
|
+
"""
|
|
141
|
+
Whether the attribute value is required.
|
|
142
|
+
"""
|
|
143
|
+
is_required: Boolean!
|
|
144
|
+
"""
|
|
145
|
+
Whether the attribute value must be unique.
|
|
146
|
+
"""
|
|
147
|
+
is_unique: Boolean!
|
|
148
|
+
"""
|
|
149
|
+
The label assigned to the attribute.
|
|
150
|
+
"""
|
|
151
|
+
label: String
|
|
152
|
+
"""
|
|
153
|
+
Attribute options.
|
|
154
|
+
"""
|
|
155
|
+
options: [CustomAttributeOptionInterface]!
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
"""
|
|
159
|
+
Swatch attribute metadata.
|
|
160
|
+
"""
|
|
161
|
+
type CatalogAttributeMetadata implements CustomAttributeMetadataInterface {
|
|
162
|
+
"""
|
|
163
|
+
To which catalog types an attribute can be applied.
|
|
164
|
+
"""
|
|
165
|
+
apply_to: [CatalogAttributeApplyToEnum]
|
|
166
|
+
"""
|
|
167
|
+
The unique identifier for an attribute code. This value should be in lowercase letters without spaces.
|
|
168
|
+
"""
|
|
169
|
+
code: ID!
|
|
170
|
+
"""
|
|
171
|
+
Default attribute value.
|
|
172
|
+
"""
|
|
173
|
+
default_value: String
|
|
174
|
+
"""
|
|
175
|
+
The type of entity that defines the attribute.
|
|
176
|
+
"""
|
|
177
|
+
entity_type: AttributeEntityTypeEnum!
|
|
178
|
+
"""
|
|
179
|
+
The frontend class of the attribute.
|
|
180
|
+
"""
|
|
181
|
+
frontend_class: String
|
|
182
|
+
"""
|
|
183
|
+
The frontend input type of the attribute.
|
|
184
|
+
"""
|
|
185
|
+
frontend_input: AttributeFrontendInputEnum
|
|
186
|
+
"""
|
|
187
|
+
Whether a product or category attribute can be compared against another or not.
|
|
188
|
+
"""
|
|
189
|
+
is_comparable: Boolean
|
|
190
|
+
"""
|
|
191
|
+
Whether a product or category attribute can be filtered or not.
|
|
192
|
+
"""
|
|
193
|
+
is_filterable: Boolean
|
|
194
|
+
"""
|
|
195
|
+
Whether a product or category attribute can be filtered in search or not.
|
|
196
|
+
"""
|
|
197
|
+
is_filterable_in_search: Boolean
|
|
198
|
+
"""
|
|
199
|
+
Whether a product or category attribute can use HTML on front or not.
|
|
200
|
+
"""
|
|
201
|
+
is_html_allowed_on_front: Boolean
|
|
202
|
+
"""
|
|
203
|
+
Whether the attribute value is required.
|
|
204
|
+
"""
|
|
205
|
+
is_required: Boolean!
|
|
206
|
+
"""
|
|
207
|
+
Whether a product or category attribute can be searched or not.
|
|
208
|
+
"""
|
|
209
|
+
is_searchable: Boolean
|
|
210
|
+
"""
|
|
211
|
+
Whether the attribute value must be unique.
|
|
212
|
+
"""
|
|
213
|
+
is_unique: Boolean!
|
|
214
|
+
"""
|
|
215
|
+
Whether a product or category attribute can be used for price rules or not.
|
|
216
|
+
"""
|
|
217
|
+
is_used_for_price_rules: Boolean
|
|
218
|
+
"""
|
|
219
|
+
Whether a product or category attribute is used for promo rules or not.
|
|
220
|
+
"""
|
|
221
|
+
is_used_for_promo_rules: Boolean
|
|
222
|
+
"""
|
|
223
|
+
Whether a product or category attribute is visible in advanced search or not.
|
|
224
|
+
"""
|
|
225
|
+
is_visible_in_advanced_search: Boolean
|
|
226
|
+
"""
|
|
227
|
+
Whether a product or category attribute is visible on front or not.
|
|
228
|
+
"""
|
|
229
|
+
is_visible_on_front: Boolean
|
|
230
|
+
"""
|
|
231
|
+
Whether a product or category attribute has WYSIWYG enabled or not.
|
|
232
|
+
"""
|
|
233
|
+
is_wysiwyg_enabled: Boolean
|
|
234
|
+
"""
|
|
235
|
+
The label assigned to the attribute.
|
|
236
|
+
"""
|
|
237
|
+
label: String
|
|
238
|
+
"""
|
|
239
|
+
Attribute options.
|
|
240
|
+
"""
|
|
241
|
+
options: [CustomAttributeOptionInterface]!
|
|
242
|
+
"""
|
|
243
|
+
Input type of the swatch attribute option.
|
|
244
|
+
"""
|
|
245
|
+
swatch_input_type: SwatchInputTypeEnum
|
|
246
|
+
"""
|
|
247
|
+
Whether update product preview image or not.
|
|
248
|
+
"""
|
|
249
|
+
update_product_preview_image: Boolean
|
|
250
|
+
"""
|
|
251
|
+
Whether use product image for swatch or not.
|
|
252
|
+
"""
|
|
253
|
+
use_product_image_for_swatch: Boolean
|
|
254
|
+
"""
|
|
255
|
+
Whether a product or category attribute is used in product listing or not.
|
|
256
|
+
"""
|
|
257
|
+
used_in_product_listing: Boolean
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
"""
|
|
261
|
+
EAV attribute frontend input types.
|
|
262
|
+
"""
|
|
263
|
+
enum AttributeFrontendInputEnum {
|
|
264
|
+
BOOLEAN
|
|
265
|
+
DATE
|
|
266
|
+
DATETIME
|
|
267
|
+
FILE
|
|
268
|
+
GALLERY
|
|
269
|
+
HIDDEN
|
|
270
|
+
IMAGE
|
|
271
|
+
MEDIA_IMAGE
|
|
272
|
+
MULTILINE
|
|
273
|
+
MULTISELECT
|
|
274
|
+
PRICE
|
|
275
|
+
SELECT
|
|
276
|
+
TEXT
|
|
277
|
+
TEXTAREA
|
|
278
|
+
WEIGHT
|
|
279
|
+
UNDEFINED
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
"""
|
|
283
|
+
Customer attribute metadata.
|
|
284
|
+
"""
|
|
285
|
+
type CustomerAttributeMetadata implements CustomAttributeMetadataInterface {
|
|
286
|
+
"""
|
|
287
|
+
The unique identifier for an attribute code. This value should be in lowercase letters without spaces.
|
|
288
|
+
"""
|
|
289
|
+
code: ID!
|
|
290
|
+
"""
|
|
291
|
+
Default attribute value.
|
|
292
|
+
"""
|
|
293
|
+
default_value: String
|
|
294
|
+
"""
|
|
295
|
+
The type of entity that defines the attribute.
|
|
296
|
+
"""
|
|
297
|
+
entity_type: AttributeEntityTypeEnum!
|
|
298
|
+
"""
|
|
299
|
+
The frontend class of the attribute.
|
|
300
|
+
"""
|
|
301
|
+
frontend_class: String
|
|
302
|
+
"""
|
|
303
|
+
The frontend input type of the attribute.
|
|
304
|
+
"""
|
|
305
|
+
frontend_input: AttributeFrontendInputEnum
|
|
306
|
+
"""
|
|
307
|
+
The template used for the input of the attribute (e.g., 'date').
|
|
308
|
+
"""
|
|
309
|
+
input_filter: InputFilterEnum
|
|
310
|
+
"""
|
|
311
|
+
Whether the attribute value is required.
|
|
312
|
+
"""
|
|
313
|
+
is_required: Boolean!
|
|
314
|
+
"""
|
|
315
|
+
Whether the attribute value must be unique.
|
|
316
|
+
"""
|
|
317
|
+
is_unique: Boolean!
|
|
318
|
+
"""
|
|
319
|
+
The label assigned to the attribute.
|
|
320
|
+
"""
|
|
321
|
+
label: String
|
|
322
|
+
"""
|
|
323
|
+
The number of lines of the attribute value.
|
|
324
|
+
"""
|
|
325
|
+
multiline_count: Int
|
|
326
|
+
"""
|
|
327
|
+
Attribute options.
|
|
328
|
+
"""
|
|
329
|
+
options: [CustomAttributeOptionInterface]!
|
|
330
|
+
"""
|
|
331
|
+
The position of the attribute in the form.
|
|
332
|
+
"""
|
|
333
|
+
sort_order: Int
|
|
334
|
+
"""
|
|
335
|
+
The validation rules of the attribute value.
|
|
336
|
+
"""
|
|
337
|
+
validate_rules: [ValidationRule]
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
"""
|
|
341
|
+
Defines a customer attribute validation rule.
|
|
342
|
+
"""
|
|
343
|
+
type ValidationRule {
|
|
344
|
+
"""
|
|
345
|
+
Validation rule name applied to a customer attribute.
|
|
346
|
+
"""
|
|
347
|
+
name: ValidationRuleEnum
|
|
348
|
+
"""
|
|
349
|
+
Validation rule value.
|
|
350
|
+
"""
|
|
351
|
+
value: String
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
"""
|
|
355
|
+
List of validation rule names applied to a customer attribute.
|
|
356
|
+
"""
|
|
357
|
+
enum ValidationRuleEnum {
|
|
358
|
+
DATE_RANGE_MAX
|
|
359
|
+
DATE_RANGE_MIN
|
|
360
|
+
FILE_EXTENSIONS
|
|
361
|
+
INPUT_VALIDATION
|
|
362
|
+
MAX_TEXT_LENGTH
|
|
363
|
+
MIN_TEXT_LENGTH
|
|
364
|
+
MAX_FILE_SIZE
|
|
365
|
+
MAX_IMAGE_HEIGHT
|
|
366
|
+
MAX_IMAGE_WIDTH
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
interface CustomAttributeOptionInterface {
|
|
370
|
+
"""
|
|
371
|
+
Is the option value default.
|
|
372
|
+
"""
|
|
373
|
+
is_default: Boolean!
|
|
374
|
+
"""
|
|
375
|
+
The label assigned to the attribute option.
|
|
376
|
+
"""
|
|
377
|
+
label: String!
|
|
378
|
+
"""
|
|
379
|
+
The attribute option value.
|
|
380
|
+
"""
|
|
381
|
+
value: String!
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
"""
|
|
385
|
+
Base EAV implementation of CustomAttributeOptionInterface.
|
|
386
|
+
"""
|
|
387
|
+
type AttributeOptionMetadata implements CustomAttributeOptionInterface {
|
|
388
|
+
"""
|
|
389
|
+
Is the option value default.
|
|
390
|
+
"""
|
|
391
|
+
is_default: Boolean!
|
|
392
|
+
"""
|
|
393
|
+
The label assigned to the attribute option.
|
|
394
|
+
"""
|
|
395
|
+
label: String!
|
|
396
|
+
"""
|
|
397
|
+
The attribute option value.
|
|
398
|
+
"""
|
|
399
|
+
value: String!
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
"""
|
|
403
|
+
Swatch attribute metadata input types.
|
|
404
|
+
"""
|
|
405
|
+
enum SwatchInputTypeEnum {
|
|
406
|
+
BOOLEAN
|
|
407
|
+
DATE
|
|
408
|
+
DATETIME
|
|
409
|
+
DROPDOWN
|
|
410
|
+
FILE
|
|
411
|
+
GALLERY
|
|
412
|
+
HIDDEN
|
|
413
|
+
IMAGE
|
|
414
|
+
MEDIA_IMAGE
|
|
415
|
+
MULTILINE
|
|
416
|
+
MULTISELECT
|
|
417
|
+
PRICE
|
|
418
|
+
SELECT
|
|
419
|
+
TEXT
|
|
420
|
+
TEXTAREA
|
|
421
|
+
UNDEFINED
|
|
422
|
+
VISUAL
|
|
423
|
+
WEIGHT
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
"""
|
|
427
|
+
List of templates/filters applied to customer attribute input.
|
|
428
|
+
"""
|
|
429
|
+
enum InputFilterEnum {
|
|
430
|
+
"""
|
|
431
|
+
There are no templates or filters to be applied.
|
|
432
|
+
"""
|
|
433
|
+
NONE
|
|
434
|
+
"""
|
|
435
|
+
Forces attribute input to follow the date format.
|
|
436
|
+
"""
|
|
437
|
+
DATE
|
|
438
|
+
"""
|
|
439
|
+
Strip whitespace (or other characters) from the beginning and end of the input.
|
|
440
|
+
"""
|
|
441
|
+
TRIM
|
|
442
|
+
"""
|
|
443
|
+
Strip HTML Tags.
|
|
444
|
+
"""
|
|
445
|
+
STRIPTAGS
|
|
446
|
+
"""
|
|
447
|
+
Escape HTML Entities.
|
|
448
|
+
"""
|
|
449
|
+
ESCAPEHTML
|
|
450
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
type CustomerOrder {
|
|
2
|
+
"""
|
|
3
|
+
Order customer email.
|
|
4
|
+
"""
|
|
5
|
+
email: String
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Input to retrieve an order based on details.
|
|
10
|
+
"""
|
|
11
|
+
input OrderInformationInput {
|
|
12
|
+
"""
|
|
13
|
+
Order billing address email.
|
|
14
|
+
"""
|
|
15
|
+
email: String!
|
|
16
|
+
"""
|
|
17
|
+
Order number.
|
|
18
|
+
"""
|
|
19
|
+
number: String!
|
|
20
|
+
"""
|
|
21
|
+
Order billing address postcode.
|
|
22
|
+
"""
|
|
23
|
+
postcode: String!
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
type Query {
|
|
27
|
+
"""
|
|
28
|
+
Retrieve guest order details based on number, email and postcode.
|
|
29
|
+
"""
|
|
30
|
+
guestOrder(input: OrderInformationInput!): CustomerOrder! @deprecated(reason: "Magento >= 2.4.7")
|
|
31
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type PlaceOrderOutput {
|
|
2
|
+
"""
|
|
3
|
+
Full order information.
|
|
4
|
+
"""
|
|
5
|
+
orderV2: CustomerOrder
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
type CustomerOrder {
|
|
9
|
+
"""
|
|
10
|
+
The token that can be used to retrieve the order using order query.
|
|
11
|
+
"""
|
|
12
|
+
token: String!
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
"""
|
|
16
|
+
Input to retrieve an order based on token.
|
|
17
|
+
"""
|
|
18
|
+
input OrderTokenInput {
|
|
19
|
+
"""
|
|
20
|
+
Order token.
|
|
21
|
+
"""
|
|
22
|
+
token: String!
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
type Query {
|
|
26
|
+
"""
|
|
27
|
+
Retrieve guest order details based on token.
|
|
28
|
+
"""
|
|
29
|
+
guestOrderByToken(input: OrderTokenInput!): CustomerOrder! @deprecated(reason: "Magento >= 2.4.7")
|
|
30
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Contains reCAPTCHA V3-Invisible configuration details.
|
|
3
|
+
"""
|
|
4
|
+
type ReCaptchaConfigurationV3 {
|
|
5
|
+
"""
|
|
6
|
+
The position of the invisible reCAPTCHA badge on each page.
|
|
7
|
+
"""
|
|
8
|
+
badge_position: String!
|
|
9
|
+
"""
|
|
10
|
+
The message that appears to the user if validation fails.
|
|
11
|
+
"""
|
|
12
|
+
failure_message: String!
|
|
13
|
+
"""
|
|
14
|
+
A list of forms on the storefront that have been configured to use reCAPTCHA V3.
|
|
15
|
+
"""
|
|
16
|
+
forms: [ReCaptchaFormEnum]!
|
|
17
|
+
"""
|
|
18
|
+
Return whether recaptcha is enabled or not
|
|
19
|
+
"""
|
|
20
|
+
is_enabled: Boolean!
|
|
21
|
+
"""
|
|
22
|
+
A two-character code that specifies the language that is used for Google reCAPTCHA text and messaging.
|
|
23
|
+
"""
|
|
24
|
+
language_code: String
|
|
25
|
+
"""
|
|
26
|
+
The minimum score that identifies a user interaction as a potential risk.
|
|
27
|
+
"""
|
|
28
|
+
minimum_score: Float!
|
|
29
|
+
"""
|
|
30
|
+
The website key generated when the Google reCAPTCHA account was registered.
|
|
31
|
+
"""
|
|
32
|
+
website_key: String!
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
enum ReCaptchaFormEnum {
|
|
36
|
+
PLACE_ORDER
|
|
37
|
+
CONTACT
|
|
38
|
+
CUSTOMER_LOGIN
|
|
39
|
+
CUSTOMER_FORGOT_PASSWORD
|
|
40
|
+
CUSTOMER_CREATE
|
|
41
|
+
CUSTOMER_EDIT
|
|
42
|
+
NEWSLETTER
|
|
43
|
+
PRODUCT_REVIEW
|
|
44
|
+
SENDFRIEND
|
|
45
|
+
BRAINTREE
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
type Query {
|
|
49
|
+
"""
|
|
50
|
+
Returns details about Google reCAPTCHA V3-Invisible configuration.
|
|
51
|
+
"""
|
|
52
|
+
recaptchaV3Config: ReCaptchaConfigurationV3 @deprecated(reason: "Magento >= 2.4.7")
|
|
53
|
+
}
|
package/typePolicies.ts
CHANGED
|
@@ -28,7 +28,7 @@ export const magentoTypePolicies: TypedTypePolicies = {
|
|
|
28
28
|
AvailablePaymentMethod: { keyFields: ['code'] },
|
|
29
29
|
AvailableShippingMethod: { keyFields: ['carrier_code', 'method_code'] },
|
|
30
30
|
// BillingCartAddress: { keyFields: false },
|
|
31
|
-
Breadcrumb: { keyFields: ['category_uid'] },
|
|
31
|
+
// Breadcrumb: { keyFields: ['category_uid'] },
|
|
32
32
|
BundleCartItem: { keyFields: ['uid'] },
|
|
33
33
|
// BundleCreditMemoItem: { keyFields: ['id'] },
|
|
34
34
|
// BundleInvoiceItem: { keyFields: ['id'] },
|
|
@@ -139,8 +139,8 @@ export const magentoTypePolicies: TypedTypePolicies = {
|
|
|
139
139
|
// InvoiceItemInterface: { keyFields: ['id'] },
|
|
140
140
|
// InvoiceTotal: { keyFields: false },
|
|
141
141
|
// IsEmailAvailableOutput: { keyFields: false },
|
|
142
|
-
ItemSelectedBundleOption: { keyFields: ['uid'] },
|
|
143
|
-
ItemSelectedBundleOptionValue: { keyFields: ['uid'] },
|
|
142
|
+
// ItemSelectedBundleOption: { keyFields: ['uid'] },
|
|
143
|
+
// ItemSelectedBundleOptionValue: { keyFields: ['uid'] },
|
|
144
144
|
// KeyValue: { keyFields: false },
|
|
145
145
|
// LayerFilter: { keyFields: false },
|
|
146
146
|
// LayerFilterItem: { keyFields: false },
|
|
@@ -198,8 +198,8 @@ export const magentoTypePolicies: TypedTypePolicies = {
|
|
|
198
198
|
// SalesCommentItem: { keyFields: false },
|
|
199
199
|
// SalesItemInterface: { keyFields: false },
|
|
200
200
|
// SearchResultPageInfo: { keyFields: false },
|
|
201
|
-
SelectedBundleOption: { keyFields: ['uid'] },
|
|
202
|
-
SelectedBundleOptionValue: { keyFields: ['uid'] },
|
|
201
|
+
// SelectedBundleOption: { keyFields: ['uid'] },
|
|
202
|
+
// SelectedBundleOptionValue: { keyFields: ['uid'] },
|
|
203
203
|
// SelectedConfigurableOption: { keyFields: ['configurable_product_option_value_uid'] },
|
|
204
204
|
// SelectedCustomizableOption: { keyFields: ['customizable_option_uid'] },
|
|
205
205
|
// SelectedCustomizableOptionValue: { keyFields: ['customizable_option_value_uid'] },
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# GraphCommerce 2.4.3 forward compatibility with 2.4.5
|
|
2
|
-
# TODO: Remove forward compatibility layer when dropping support for 2.4.3
|
|
3
|
-
|
|
4
|
-
# Why does this exist? To fix and issue with a nasty bug in 2.4.3:
|
|
5
|
-
# When a product becomes out of stock it will return null for the cart line.
|
|
6
|
-
|
|
7
|
-
interface CartItemInterface {
|
|
8
|
-
"An array of errors encountered while loading the cart item"
|
|
9
|
-
errors: [CartItemError]
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
type BundleCartItem {
|
|
13
|
-
"An array of errors encountered while loading the cart item"
|
|
14
|
-
errors: [CartItemError]
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
type ConfigurableCartItem {
|
|
18
|
-
"An array of errors encountered while loading the cart item"
|
|
19
|
-
errors: [CartItemError]
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
type DownloadableCartItem {
|
|
23
|
-
"An array of errors encountered while loading the cart item"
|
|
24
|
-
errors: [CartItemError]
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
type SimpleCartItem {
|
|
28
|
-
"An array of errors encountered while loading the cart item"
|
|
29
|
-
errors: [CartItemError]
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
type VirtualCartItem {
|
|
33
|
-
"An array of errors encountered while loading the cart item"
|
|
34
|
-
errors: [CartItemError]
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
type CartItemError {
|
|
38
|
-
"An error code that describes the error encountered"
|
|
39
|
-
code: CartItemErrorType!
|
|
40
|
-
"A localized error message"
|
|
41
|
-
message: String!
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
type CartItemPrices {
|
|
45
|
-
price_including_tax: Money
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
enum CartItemErrorType {
|
|
49
|
-
UNDEFINED
|
|
50
|
-
ITEM_QTY
|
|
51
|
-
ITEM_INCREMENTS
|
|
52
|
-
}
|