Skip to content

Commit 4803ccc

Browse files
authored
Merge pull request #450 from Shopify/update-order-routing-templates
Update order routing templates for API version 2024-01
2 parents 777d59f + bdb56ca commit 4803ccc

File tree

35 files changed

+304
-13842
lines changed

35 files changed

+304
-13842
lines changed

Cargo.lock

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

order-routing/javascript/fulfillment-constraints/default/schema.graphql

Lines changed: 18 additions & 108 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
"""
@@ -2681,83 +2691,13 @@ input FunctionRunResult {
26812691
operations: [Operation!]!
26822692
}
26832693

2684-
"""
2685-
Represents a gate configuration.
2686-
"""
2687-
type GateConfiguration implements HasMetafields {
2688-
"""
2689-
An optional string identifier.
2690-
"""
2691-
appId: String
2692-
2693-
"""
2694-
A non-unique string used to group gate configurations.
2695-
"""
2696-
handle: String
2697-
2698-
"""
2699-
The ID of the gate configuration.
2700-
"""
2701-
id: ID!
2702-
2703-
"""
2704-
Returns a metafield by namespace and key that belongs to the resource.
2705-
"""
2706-
metafield(
2707-
"""
2708-
The key for the metafield.
2709-
"""
2710-
key: String!
2711-
2712-
"""
2713-
The container the metafield belongs to. If omitted, the app-reserved namespace will be used.
2714-
"""
2715-
namespace: String
2716-
): Metafield
2717-
}
2718-
2719-
"""
2720-
Represents a connection from a subject to a gate configuration.
2721-
"""
2722-
type GateSubject {
2723-
"""
2724-
The bound gate configuration.
2725-
"""
2726-
configuration(
2727-
"""
2728-
The appId of the gate configurations to search for.
2729-
"""
2730-
appId: String @deprecated(reason: "Use GateSubject.handle to filter gates instead.")
2731-
): GateConfiguration!
2732-
2733-
"""
2734-
The ID of the gate subject.
2735-
"""
2736-
id: ID!
2737-
}
2738-
27392694
"""
27402695
A function-scoped handle to a refer a resource.
27412696
The Handle type appears in a JSON response as a String, but it is not intended to be human-readable.
27422697
Example value: `"10079785100"`
27432698
"""
27442699
scalar Handle
27452700

2746-
"""
2747-
Gate subjects associated to the specified resource.
2748-
"""
2749-
interface HasGates {
2750-
"""
2751-
Returns active gate subjects bound to the resource.
2752-
"""
2753-
gates(
2754-
"""
2755-
The handle of the gate configurations to search for.
2756-
"""
2757-
handle: String
2758-
): [GateSubject!]!
2759-
}
2760-
27612701
"""
27622702
Represents information about the metafields associated to the specified resource.
27632703
"""
@@ -2825,7 +2765,7 @@ type Input {
28252765
"""
28262766
locations(
28272767
"""
2828-
The list of location identifiers to search for.
2768+
The list of location GIDs to search for.
28292769
"""
28302770
identifiers: [String!]
28312771

@@ -2935,11 +2875,6 @@ enum LanguageCode {
29352875
"""
29362876
CE
29372877

2938-
"""
2939-
Central Kurdish.
2940-
"""
2941-
CKB
2942-
29432878
"""
29442879
Czech.
29452880
"""
@@ -3020,11 +2955,6 @@ enum LanguageCode {
30202955
"""
30212956
FI
30222957

3023-
"""
3024-
Filipino.
3025-
"""
3026-
FIL
3027-
30282958
"""
30292959
Faroese.
30302960
"""
@@ -3375,16 +3305,6 @@ enum LanguageCode {
33753305
"""
33763306
RW
33773307

3378-
"""
3379-
Sanskrit.
3380-
"""
3381-
SA
3382-
3383-
"""
3384-
Sardinian.
3385-
"""
3386-
SC
3387-
33883308
"""
33893309
Sindhi.
33903310
"""
@@ -3858,7 +3778,7 @@ type Market implements HasMetafields {
38583778
"""
38593779
A human-readable unique string for the market automatically generated from its title.
38603780
"""
3861-
handle: String!
3781+
handle: Handle!
38623782

38633783
"""
38643784
A globally-unique identifier.
@@ -4028,21 +3948,11 @@ input Operation @oneOf {
40283948
"""
40293949
Represents a product.
40303950
"""
4031-
type Product implements HasGates & HasMetafields {
4032-
"""
4033-
Returns active gate subjects bound to the resource.
4034-
"""
4035-
gates(
4036-
"""
4037-
The handle of the gate configurations to search for.
4038-
"""
4039-
handle: String
4040-
): [GateSubject!]!
4041-
3951+
type Product implements HasMetafields {
40423952
"""
40433953
A unique human-friendly string of the product's title.
40443954
"""
4045-
handle: String!
3955+
handle: Handle!
40463956

40473957
"""
40483958
Whether the product has any of the given tags.
@@ -4328,4 +4238,4 @@ enum WeightUnit {
43284238
1 pound equals 16 ounces.
43294239
"""
43304240
POUNDS
4331-
}
4241+
}

order-routing/javascript/fulfillment-constraints/default/shopify.extension.toml.liquid

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

33
[[extensions]]
44
handle = "{{handle}}"

0 commit comments

Comments
 (0)