Skip to content

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

Update schema

Pacu24ea492914dbc
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 0fb0adb5ad..353546a4e9 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -953,7 +953,7 @@ type OrderEvent implements Node {
user(id: ID): User
message: String
email: String
- emailType: String
+ emailType: OrderEventsEmails
amount: Float
quantity: Int
composedId: String
@@ -977,6 +977,13 @@ enum OrderEvents {
OTHER
}
+enum OrderEventsEmails {
+ PAYMENT
+ SHIPPING
+ ORDER
+ FULFILLMENT
+}
+
type OrderLine implements Node {
id: ID!
productName: String!
@@ -987,7 +994,7 @@ type OrderLine implements Node {
quantityFulfilled: Int!
unitPrice: TaxedMoney
taxRate: Float!
- thumbnailUrl: String
+ thumbnailUrl(size: Int): String
}
type OrderLineCountableConnection {
diff --git a/saleor/static/dashboard-next/orders/types/OrderCancel.ts b/saleor/static/dashboard-next/orders/types/OrderCancel.ts
index 93a7a476d8..494cbde2a8 100644
--- a/saleor/static/dashboard-next/orders/types/OrderCancel.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderCancel.ts
@@ -1,7 +1,7 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { AddressCountry, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { AddressCountry, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: OrderCancel
@@ -34,7 +34,7 @@ export interface OrderCancel_orderCancel_order_events {
amount: number | null;
date: any | null;
email: string | null;
- emailType: string | null;
+ emailType: OrderEventsEmails | null;
message: string | null;
quantity: number | null;
type: OrderEvents | null;
diff --git a/saleor/static/dashboard-next/orders/types/OrderCapture.ts b/saleor/static/dashboard-next/orders/types/OrderCapture.ts
index 0733780a95..65310414b2 100644
--- a/saleor/static/dashboard-next/orders/types/OrderCapture.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderCapture.ts
@@ -1,7 +1,7 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { AddressCountry, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { AddressCountry, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: OrderCapture
@@ -40,7 +40,7 @@ export interface OrderCapture_orderCapture_order_events {
amount: number | null;
date: any | null;
email: string | null;
- emailType: string | null;
+ emailType: OrderEventsEmails | null;
message: string | null;
quantity: number | null;
type: OrderEvents | null;
diff --git a/saleor/static/dashboard-next/orders/types/OrderDetails.ts b/saleor/static/dashboard-next/orders/types/OrderDetails.ts
index fe0e36f2b0..1a9ae53f12 100644
--- a/saleor/static/dashboard-next/orders/types/OrderDetails.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderDetails.ts
@@ -1,7 +1,7 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { AddressCountry, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { AddressCountry, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL query operation: OrderDetails
@@ -34,7 +34,7 @@ export interface OrderDetails_order_events {
amount: number | null;
date: any | null;
email: string | null;
- emailType: string | null;
+ emailType: OrderEventsEmails | null;
message: string | null;
quantity: number | null;
type: OrderEvents | null;
diff --git a/saleor/static/dashboard-next/orders/types/OrderDetailsFragment.ts b/saleor/static/dashboard-next/orders/types/OrderDetailsFragment.ts
index 2f4ad839ea..bde9510031 100644
--- a/saleor/static/dashboard-next/orders/types/OrderDetailsFragment.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderDetailsFragment.ts
@@ -1,7 +1,7 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { AddressCountry, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { AddressCountry, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL fragment: OrderDetailsFragment
@@ -34,7 +34,7 @@ export interface OrderDetailsFragment_events {
amount: number | null;
date: any | null;
email: string | null;
- emailType: string | null;
+ emailType: OrderEventsEmails | null;
message: string | null;
quantity: number | null;
type: OrderEvents | null;
diff --git a/saleor/static/dashboard-next/orders/types/OrderRefund.ts b/saleor/static/dashboard-next/orders/types/OrderRefund.ts
index 991b73754d..d1328046e4 100644
--- a/saleor/static/dashboard-next/orders/types/OrderRefund.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderRefund.ts
@@ -1,7 +1,7 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { AddressCountry, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { AddressCountry, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: OrderRefund
@@ -40,7 +40,7 @@ export interface OrderRefund_orderRefund_order_events {
amount: number | null;
date: any | null;
email: string | null;
- emailType: string | null;
+ emailType: OrderEventsEmails | null;
message: string | null;
quantity: number | null;
type: OrderEvents | null;
diff --git a/saleor/static/dashboard-next/orders/types/OrderRelease.ts b/saleor/static/dashboard-next/orders/types/OrderRelease.ts
index 7462687d76..101966b707 100644
--- a/saleor/static/dashboard-next/orders/types/OrderRelease.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderRelease.ts
@@ -1,7 +1,7 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { AddressCountry, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { AddressCountry, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: OrderRelease
@@ -34,7 +34,7 @@ export interface OrderRelease_orderRelease_order_events {
amount: number | null;
date: any | null;
email: string | null;
- emailType: string | null;
+ emailType: OrderEventsEmails | null;
message: string | null;
quantity: number | null;
type: OrderEvents | null;
diff --git a/saleor/static/dashboard-next/types/globalTypes.ts b/saleor/static/dashboard-next/types/globalTypes.ts
index fbe31d1400..60919725e2 100644
--- a/saleor/static/dashboard-next/types/globalTypes.ts
+++ b/saleor/static/dashboard-next/types/globalTypes.ts
@@ -281,6 +281,13 @@ export enum OrderEvents {
UPDATED = "UPDATED",
}
+export enum OrderEventsEmails {
+ FULFILLMENT = "FULFILLMENT",
+ ORDER = "ORDER",
+ PAYMENT = "PAYMENT",
+ SHIPPING = "SHIPPING",
+}
+
export enum OrderStatus {
CANCELED = "CANCELED",
DRAFT = "DRAFT",