Skip to content

Commit bdb56ca

Browse files
committed
Bump GQL schema version in delivery-customizations sample app
1 parent f3deb77 commit bdb56ca

File tree

4 files changed

+55
-21
lines changed

4 files changed

+55
-21
lines changed

sample-apps/delivery-customizations/extensions/delivery-customization-js/schema.graphql

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema {
44
}
55

66
"""
7-
Exactly one field of input must be provided, and all others omitted.
7+
Requires that exactly one field must be supplied and that field must not be `null`.
88
"""
99
directive @oneOf on INPUT_OBJECT
1010

@@ -175,7 +175,7 @@ type CartDeliveryOption {
175175
"""
176176
The unique identifier of the delivery option.
177177
"""
178-
handle: String!
178+
handle: Handle!
179179

180180
"""
181181
The title of the delivery option.
@@ -1508,7 +1508,7 @@ enum CountryCode {
15081508
TO
15091509

15101510
"""
1511-
Turkey.
1511+
Türkiye.
15121512
"""
15131513
TR
15141514

@@ -2500,6 +2500,11 @@ type Customer implements HasMetafields {
25002500
"""
25012501
email: String
25022502

2503+
"""
2504+
The customer's first name.
2505+
"""
2506+
firstName: String
2507+
25032508
"""
25042509
Whether the customer has any of the given tags.
25052510
"""
@@ -2525,6 +2530,11 @@ type Customer implements HasMetafields {
25252530
"""
25262531
id: ID!
25272532

2533+
"""
2534+
The customer's last name.
2535+
"""
2536+
lastName: String
2537+
25282538
"""
25292539
Returns a metafield by namespace and key that belongs to the resource.
25302540
"""
@@ -2682,6 +2692,13 @@ input FunctionRunResult {
26822692
operations: [Operation!]!
26832693
}
26842694

2695+
"""
2696+
A function-scoped handle to a refer a resource.
2697+
The Handle type appears in a JSON response as a String, but it is not intended to be human-readable.
2698+
Example value: `"10079785100"`
2699+
"""
2700+
scalar Handle
2701+
26852702
"""
26862703
Represents information about the metafields associated to the specified resource.
26872704
"""
@@ -2724,7 +2741,7 @@ input HideOperation {
27242741
"""
27252742
The handle of the delivery option to hide.
27262743
"""
2727-
deliveryOptionHandle: String!
2744+
deliveryOptionHandle: Handle!
27282745
}
27292746

27302747
"""
@@ -3649,7 +3666,7 @@ type Market implements HasMetafields {
36493666
"""
36503667
A human-readable unique string for the market automatically generated from its title.
36513668
"""
3652-
handle: String!
3669+
handle: Handle!
36533670

36543671
"""
36553672
A globally-unique identifier.
@@ -3750,7 +3767,7 @@ input MoveOperation {
37503767
"""
37513768
The handle of the delivery option to move.
37523769
"""
3753-
deliveryOptionHandle: String!
3770+
deliveryOptionHandle: Handle!
37543771

37553772
"""
37563773
The index to move the delivery option to.
@@ -3810,7 +3827,7 @@ type Product implements HasMetafields {
38103827
"""
38113828
A unique human-friendly string of the product's title.
38123829
"""
3813-
handle: String!
3830+
handle: Handle!
38143831

38153832
"""
38163833
Whether the product has any of the given tags.
@@ -3975,7 +3992,7 @@ input RenameOperation {
39753992
"""
39763993
The handle of the delivery option to rename.
39773994
"""
3978-
deliveryOptionHandle: String!
3995+
deliveryOptionHandle: Handle!
39793996

39803997
"""
39813998
The new name for the delivery option.
@@ -4111,4 +4128,4 @@ enum WeightUnit {
41114128
1 pound equals 16 ounces.
41124129
"""
41134130
POUNDS
4114-
}
4131+
}

sample-apps/delivery-customizations/extensions/delivery-customization-js/shopify.extension.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
api_version = "2023-10"
1+
api_version = "2024-01"
22

33
[[extensions]]
44
handle = "delivery-customization-js"

sample-apps/delivery-customizations/extensions/delivery-customization-rust/schema.graphql

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema {
44
}
55

66
"""
7-
Exactly one field of input must be provided, and all others omitted.
7+
Requires that exactly one field must be supplied and that field must not be `null`.
88
"""
99
directive @oneOf on INPUT_OBJECT
1010

@@ -175,7 +175,7 @@ type CartDeliveryOption {
175175
"""
176176
The unique identifier of the delivery option.
177177
"""
178-
handle: String!
178+
handle: Handle!
179179

180180
"""
181181
The title of the delivery option.
@@ -1508,7 +1508,7 @@ enum CountryCode {
15081508
TO
15091509

15101510
"""
1511-
Turkey.
1511+
Türkiye.
15121512
"""
15131513
TR
15141514

@@ -2500,6 +2500,11 @@ type Customer implements HasMetafields {
25002500
"""
25012501
email: String
25022502

2503+
"""
2504+
The customer's first name.
2505+
"""
2506+
firstName: String
2507+
25032508
"""
25042509
Whether the customer has any of the given tags.
25052510
"""
@@ -2525,6 +2530,11 @@ type Customer implements HasMetafields {
25252530
"""
25262531
id: ID!
25272532

2533+
"""
2534+
The customer's last name.
2535+
"""
2536+
lastName: String
2537+
25282538
"""
25292539
Returns a metafield by namespace and key that belongs to the resource.
25302540
"""
@@ -2682,6 +2692,13 @@ input FunctionRunResult {
26822692
operations: [Operation!]!
26832693
}
26842694

2695+
"""
2696+
A function-scoped handle to a refer a resource.
2697+
The Handle type appears in a JSON response as a String, but it is not intended to be human-readable.
2698+
Example value: `"10079785100"`
2699+
"""
2700+
scalar Handle
2701+
26852702
"""
26862703
Represents information about the metafields associated to the specified resource.
26872704
"""
@@ -2724,7 +2741,7 @@ input HideOperation {
27242741
"""
27252742
The handle of the delivery option to hide.
27262743
"""
2727-
deliveryOptionHandle: String!
2744+
deliveryOptionHandle: Handle!
27282745
}
27292746

27302747
"""
@@ -3649,7 +3666,7 @@ type Market implements HasMetafields {
36493666
"""
36503667
A human-readable unique string for the market automatically generated from its title.
36513668
"""
3652-
handle: String!
3669+
handle: Handle!
36533670

36543671
"""
36553672
A globally-unique identifier.
@@ -3750,7 +3767,7 @@ input MoveOperation {
37503767
"""
37513768
The handle of the delivery option to move.
37523769
"""
3753-
deliveryOptionHandle: String!
3770+
deliveryOptionHandle: Handle!
37543771

37553772
"""
37563773
The index to move the delivery option to.
@@ -3810,7 +3827,7 @@ type Product implements HasMetafields {
38103827
"""
38113828
A unique human-friendly string of the product's title.
38123829
"""
3813-
handle: String!
3830+
handle: Handle!
38143831

38153832
"""
38163833
Whether the product has any of the given tags.
@@ -3975,7 +3992,7 @@ input RenameOperation {
39753992
"""
39763993
The handle of the delivery option to rename.
39773994
"""
3978-
deliveryOptionHandle: String!
3995+
deliveryOptionHandle: Handle!
39793996

39803997
"""
39813998
The new name for the delivery option.
@@ -4111,4 +4128,4 @@ enum WeightUnit {
41114128
1 pound equals 16 ounces.
41124129
"""
41134130
POUNDS
4114-
}
4131+
}

sample-apps/delivery-customizations/extensions/delivery-customization-rust/shopify.extension.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
api_version = "2023-10"
1+
api_version = "2024-01"
22

33
[[extensions]]
44
handle = "delivery-customization-rust"
@@ -18,4 +18,4 @@ type = "function"
1818

1919
[extensions.ui.paths]
2020
create = "/app/delivery-customization/:functionId/new"
21-
details = "/app/delivery-customization/:functionId/:id"
21+
details = "/app/delivery-customization/:functionId/:id"

0 commit comments

Comments
 (0)