Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update types

Pacu22650d61293c4
diff --git a/saleor/graphql/shipping/types.py b/saleor/graphql/shipping/types.py
index ca651627fc..c08563c4cb 100644
--- a/saleor/graphql/shipping/types.py
+++ b/saleor/graphql/shipping/types.py
@@ -17,8 +17,7 @@ ShippingMethodTypeEnum = graphene.Enum(
class ShippingMethod(DjangoObjectType):
- type = ShippingMethodTypeEnum(
- required=True, description='Type of the shipping method.')
+ type = ShippingMethodTypeEnum(description='Type of the shipping method.')
class Meta:
description = """
diff --git a/saleor/static/dashboard-next/orders/queries.ts b/saleor/static/dashboard-next/orders/queries.ts
index f731072083..133e279c0d 100644
--- a/saleor/static/dashboard-next/orders/queries.ts
+++ b/saleor/static/dashboard-next/orders/queries.ts
@@ -196,12 +196,8 @@ export const orderShippingMethodsQuery = gql`
edges {
node {
shippingMethods {
- edges {
- node {
- id
- name
- }
- }
+ id
+ name
}
}
}
diff --git a/saleor/static/dashboard-next/orders/types/OrderShippingMethods.ts b/saleor/static/dashboard-next/orders/types/OrderShippingMethods.ts
index 634861b18d..818adf9161 100644
--- a/saleor/static/dashboard-next/orders/types/OrderShippingMethods.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderShippingMethods.ts
@@ -5,25 +5,15 @@
// GraphQL query operation: OrderShippingMethods
// ====================================================
-export interface OrderShippingMethods_shippingZones_edges_node_shippingMethods_edges_node {
+export interface OrderShippingMethods_shippingZones_edges_node_shippingMethods {
__typename: "ShippingMethod";
id: string;
name: string;
}
-export interface OrderShippingMethods_shippingZones_edges_node_shippingMethods_edges {
- __typename: "ShippingMethodEdge";
- node: OrderShippingMethods_shippingZones_edges_node_shippingMethods_edges_node | null;
-}
-
-export interface OrderShippingMethods_shippingZones_edges_node_shippingMethods {
- __typename: "ShippingMethodConnection";
- edges: (OrderShippingMethods_shippingZones_edges_node_shippingMethods_edges | null)[];
-}
-
export interface OrderShippingMethods_shippingZones_edges_node {
__typename: "ShippingZone";
- shippingMethods: OrderShippingMethods_shippingZones_edges_node_shippingMethods | null;
+ shippingMethods: (OrderShippingMethods_shippingZones_edges_node_shippingMethods | null)[] | null;
}
export interface OrderShippingMethods_shippingZones_edges {