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

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.
@@ -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
+ }
@@ -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
+ }