Skip to content

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

Rename OrderEventsEmails to OrderEventsEmailsEnum

Unknownf7702829460f
diff --git a/saleor/static/dashboard-next/orders/components/OrderHistory/OrderHistory.tsx b/saleor/static/dashboard-next/orders/components/OrderHistory/OrderHistory.tsx
index 36b15600e8..a0c9cefcd8 100644
--- a/saleor/static/dashboard-next/orders/components/OrderHistory/OrderHistory.tsx
+++ b/saleor/static/dashboard-next/orders/components/OrderHistory/OrderHistory.tsx
@@ -17,7 +17,7 @@ import {
TimelineNote
} from "../../../components/Timeline";
import i18n from "../../../i18n";
-import { OrderEventsEnum, OrderEventsEmails } from "../../../types/globalTypes";
+import { OrderEventsEnum, OrderEventsEmailsEnum } from "../../../types/globalTypes";
import { OrderDetails_order_events } from "../../types/OrderDetails";
export interface FormData {
@@ -32,19 +32,19 @@ const getEventMessage = (event: OrderDetails_order_events) => {
});
case OrderEventsEnum.EMAIL_SENT:
switch (event.emailType) {
- case OrderEventsEmails.FULFILLMENT:
+ case OrderEventsEmailsEnum.FULFILLMENT:
return i18n.t("Fulfillment confirmation has been sent to customer", {
context: "order history message"
});
- case OrderEventsEmails.ORDER:
+ case OrderEventsEmailsEnum.ORDER:
return i18n.t("Order confirmation has been sent to customer", {
context: "order history message"
});
- case OrderEventsEmails.PAYMENT:
+ case OrderEventsEmailsEnum.PAYMENT:
return i18n.t("Payment confirmation has been sent to customer", {
context: "order history message"
});
- case OrderEventsEmails.SHIPPING:
+ case OrderEventsEmailsEnum.SHIPPING:
return i18n.t("Shipping details has been sent to customer", {
context: "order history message"
});
diff --git a/saleor/static/dashboard-next/orders/types/OrderLineAdd.ts b/saleor/static/dashboard-next/orders/types/OrderLineAdd.ts
index 0dad32be04..7dbc3e915e 100644
--- a/saleor/static/dashboard-next/orders/types/OrderLineAdd.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderLineAdd.ts
@@ -1,7 +1,7 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { OrderLineCreateInput, OrderEventsEmails, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction } from "./../../types/globalTypes";
+import { OrderLineCreateInput, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: OrderLineAdd
@@ -46,7 +46,7 @@ export interface OrderLineAdd_draftOrderLinesCreate_order_events {
amount: number | null;
date: any | null;
email: string | null;
- emailType: OrderEventsEmails | null;
+ emailType: OrderEventsEmailsEnum | null;
message: string | null;
quantity: number | null;
type: OrderEventsEnum | null;
diff --git a/saleor/static/dashboard-next/orders/types/OrderRelease.ts b/saleor/static/dashboard-next/orders/types/OrderRelease.ts
index c6d1fc40fc..0fb77a66f6 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 { OrderEventsEmails, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: OrderRelease
@@ -40,7 +40,7 @@ export interface OrderRelease_orderRelease_order_events {
amount: number | null;
date: any | null;
email: string | null;
- emailType: OrderEventsEmails | null;
+ emailType: OrderEventsEmailsEnum | null;
message: string | null;
quantity: number | null;
type: OrderEventsEnum | null;