Skip to content

Commit

Permalink
Merge pull request #450 from Shopify/update-order-routing-templates
Browse files Browse the repository at this point in the history
Update order routing templates for API version 2024-01
  • Loading branch information
beth92 authored Feb 14, 2024
2 parents 777d59f + bdb56ca commit 4803ccc
Show file tree
Hide file tree
Showing 35 changed files with 304 additions and 13,842 deletions.
10 changes: 0 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

126 changes: 18 additions & 108 deletions order-routing/javascript/fulfillment-constraints/default/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schema {
}

"""
Exactly one field of input must be provided, and all others omitted.
Requires that exactly one field must be supplied and that field must not be `null`.
"""
directive @oneOf on INPUT_OBJECT

Expand Down Expand Up @@ -175,7 +175,7 @@ type CartDeliveryOption {
"""
The unique identifier of the delivery option.
"""
handle: String!
handle: Handle!

"""
The title of the delivery option.
Expand Down Expand Up @@ -1508,7 +1508,7 @@ enum CountryCode {
TO

"""
Turkey.
Türkiye.
"""
TR

Expand Down Expand Up @@ -2500,6 +2500,11 @@ type Customer implements HasMetafields {
"""
email: String

"""
The customer's first name.
"""
firstName: String

"""
Whether the customer has any of the given tags.
"""
Expand All @@ -2525,6 +2530,11 @@ type Customer implements HasMetafields {
"""
id: ID!

"""
The customer's last name.
"""
lastName: String

"""
Returns a metafield by namespace and key that belongs to the resource.
"""
Expand Down Expand Up @@ -2681,83 +2691,13 @@ input FunctionRunResult {
operations: [Operation!]!
}

"""
Represents a gate configuration.
"""
type GateConfiguration implements HasMetafields {
"""
An optional string identifier.
"""
appId: String

"""
A non-unique string used to group gate configurations.
"""
handle: String

"""
The ID of the gate configuration.
"""
id: ID!

"""
Returns a metafield by namespace and key that belongs to the resource.
"""
metafield(
"""
The key for the metafield.
"""
key: String!

"""
The container the metafield belongs to. If omitted, the app-reserved namespace will be used.
"""
namespace: String
): Metafield
}

"""
Represents a connection from a subject to a gate configuration.
"""
type GateSubject {
"""
The bound gate configuration.
"""
configuration(
"""
The appId of the gate configurations to search for.
"""
appId: String @deprecated(reason: "Use GateSubject.handle to filter gates instead.")
): GateConfiguration!

"""
The ID of the gate subject.
"""
id: ID!
}

"""
A function-scoped handle to a refer a resource.
The Handle type appears in a JSON response as a String, but it is not intended to be human-readable.
Example value: `"10079785100"`
"""
scalar Handle

"""
Gate subjects associated to the specified resource.
"""
interface HasGates {
"""
Returns active gate subjects bound to the resource.
"""
gates(
"""
The handle of the gate configurations to search for.
"""
handle: String
): [GateSubject!]!
}

"""
Represents information about the metafields associated to the specified resource.
"""
Expand Down Expand Up @@ -2825,7 +2765,7 @@ type Input {
"""
locations(
"""
The list of location identifiers to search for.
The list of location GIDs to search for.
"""
identifiers: [String!]

Expand Down Expand Up @@ -2935,11 +2875,6 @@ enum LanguageCode {
"""
CE

"""
Central Kurdish.
"""
CKB

"""
Czech.
"""
Expand Down Expand Up @@ -3020,11 +2955,6 @@ enum LanguageCode {
"""
FI

"""
Filipino.
"""
FIL

"""
Faroese.
"""
Expand Down Expand Up @@ -3375,16 +3305,6 @@ enum LanguageCode {
"""
RW

"""
Sanskrit.
"""
SA

"""
Sardinian.
"""
SC

"""
Sindhi.
"""
Expand Down Expand Up @@ -3858,7 +3778,7 @@ type Market implements HasMetafields {
"""
A human-readable unique string for the market automatically generated from its title.
"""
handle: String!
handle: Handle!

"""
A globally-unique identifier.
Expand Down Expand Up @@ -4028,21 +3948,11 @@ input Operation @oneOf {
"""
Represents a product.
"""
type Product implements HasGates & HasMetafields {
"""
Returns active gate subjects bound to the resource.
"""
gates(
"""
The handle of the gate configurations to search for.
"""
handle: String
): [GateSubject!]!

type Product implements HasMetafields {
"""
A unique human-friendly string of the product's title.
"""
handle: String!
handle: Handle!

"""
Whether the product has any of the given tags.
Expand Down Expand Up @@ -4328,4 +4238,4 @@ enum WeightUnit {
1 pound equals 16 ounces.
"""
POUNDS
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_version = "unstable"
api_version = "2024-01"

[[extensions]]
handle = "{{handle}}"
Expand Down
Loading

0 comments on commit 4803ccc

Please sign in to comment.