Skip to content

Commit 4966c81

Browse files
committed
Update schema
1 parent 6686e78 commit 4966c81

File tree

1 file changed

+14
-48
lines changed

1 file changed

+14
-48
lines changed

discounts/rust/network/default/schema.graphql

+14-48
Original file line numberDiff line numberDiff line change
@@ -1889,10 +1889,7 @@ enum CurrencyCode {
18891889
"""
18901890
Belarusian Ruble (BYR).
18911891
"""
1892-
BYR
1893-
@deprecated(
1894-
reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead."
1895-
)
1892+
BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.")
18961893

18971894
"""
18981895
Belize Dollar (BZD).
@@ -2417,10 +2414,7 @@ enum CurrencyCode {
24172414
"""
24182415
Sao Tome And Principe Dobra (STD).
24192416
"""
2420-
STD
2421-
@deprecated(
2422-
reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead."
2423-
)
2417+
STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.")
24242418

24252419
"""
24262420
Sao Tome And Principe Dobra (STN).
@@ -2515,10 +2509,7 @@ enum CurrencyCode {
25152509
"""
25162510
Venezuelan Bolivares (VEF).
25172511
"""
2518-
VEF
2519-
@deprecated(
2520-
reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead."
2521-
)
2512+
VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.")
25222513

25232514
"""
25242515
Venezuelan Bolivares Soberanos (VES).
@@ -3051,8 +3042,7 @@ type GateSubject {
30513042
"""
30523043
The appId of the gate configurations to search for.
30533044
"""
3054-
appId: String
3055-
@deprecated(reason: "Use GateSubject.handle to filter gates instead.")
3045+
appId: String @deprecated(reason: "Use GateSubject.handle to filter gates instead.")
30563046
): GateConfiguration!
30573047

30583048
"""
@@ -3080,7 +3070,7 @@ interface HasGates {
30803070
The handle of the gate configurations to search for.
30813071
"""
30823072
handle: Handle
3083-
): [GateSubject!]!
3073+
): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.")
30843074
}
30853075

30863076
"""
@@ -3226,9 +3216,9 @@ type HttpResponse {
32263216
headers: [HttpResponseHeader!]! @deprecated(reason: "Use `header` instead.")
32273217

32283218
"""
3229-
The HTTP response body parsed as JSON.
3230-
If the body is valid JSON, it will be parsed and returned as a JSON object.
3231-
If parsing fails, then raw body is returned as a string.
3219+
The HTTP response body parsed as JSON.
3220+
If the body is valid JSON, it will be parsed and returned as a JSON object.
3221+
If parsing fails, then raw body is returned as a string.
32323222
Use this field when you expect the response to be JSON, or when you're dealing
32333223
with mixed response types, meaning both JSON and non-JSON.
32343224
Using this field reduces function instruction consumption and ensures that the data is formatted in logs.
@@ -3284,25 +3274,13 @@ type Input {
32843274
Discount codes entered by the buyer as an array of strings, excluding gift cards.
32853275
Codes are not validated in any way other than gift card filtering.
32863276
"""
3287-
enteredDiscountCodes: [String!]!
3288-
@restrictTarget(
3289-
only: [
3290-
"cart.lines.discounts.generate.fetch"
3291-
"cart.delivery-options.discounts.generate.fetch"
3292-
]
3293-
)
3277+
enteredDiscountCodes: [String!]! @restrictTarget(only: ["cart.lines.discounts.generate.fetch", "cart.delivery-options.discounts.generate.fetch"])
32943278

32953279
"""
32963280
The result of the fetch target. Refer to [network access](https://shopify.dev/apps/build/functions/input-output/network-access/graphql)
32973281
for Shopify Functions.
32983282
"""
3299-
fetchResult: HttpResponse
3300-
@restrictTarget(
3301-
only: [
3302-
"cart.lines.discounts.generate.run"
3303-
"cart.delivery-options.discounts.generate.run"
3304-
]
3305-
)
3283+
fetchResult: HttpResponse @restrictTarget(only: ["cart.lines.discounts.generate.run", "cart.delivery-options.discounts.generate.run"])
33063284

33073285
"""
33083286
The localization of the Function execution context.
@@ -3324,13 +3302,7 @@ type Input {
33243302
This input is only available in the cart.lines.discounts.generate.run
33253303
and cart.delivery-options.discounts.generate.run extension targets.
33263304
"""
3327-
triggeringDiscountCode: String
3328-
@restrictTarget(
3329-
only: [
3330-
"cart.lines.discounts.generate.run"
3331-
"cart.delivery-options.discounts.generate.run"
3332-
]
3333-
)
3305+
triggeringDiscountCode: String @restrictTarget(only: ["cart.lines.discounts.generate.run", "cart.delivery-options.discounts.generate.run"])
33343306
}
33353307

33363308
"""
@@ -4167,10 +4139,7 @@ type Localization {
41674139
"""
41684140
The market of the active localized experience.
41694141
"""
4170-
market: Market!
4171-
@deprecated(
4172-
reason: "This `market` field will be removed in a future version of the API."
4173-
)
4142+
market: Market! @deprecated(reason: "This `market` field will be removed in a future version of the API.")
41744143
}
41754144

41764145
"""
@@ -4438,10 +4407,7 @@ type MailingAddress {
44384407
"""
44394408
The market of the address.
44404409
"""
4441-
market: Market
4442-
@deprecated(
4443-
reason: "This `market` field will be removed in a future version of the API."
4444-
)
4410+
market: Market @deprecated(reason: "This `market` field will be removed in a future version of the API.")
44454411

44464412
"""
44474413
The full name of the customer, based on firstName and lastName.
@@ -4755,7 +4721,7 @@ type Product implements HasGates & HasMetafields {
47554721
The handle of the gate configurations to search for.
47564722
"""
47574723
handle: Handle
4758-
): [GateSubject!]!
4724+
): [GateSubject!]! @deprecated(reason: "Gates API is being sunset and will be removed in a future version. Use `metafields` instead for gate configuration.")
47594725

47604726
"""
47614727
A unique human-friendly string of the product's title.

0 commit comments

Comments
 (0)