refactor: convert modules enum to a const (#9486)
This commit is contained in:
@@ -1,29 +1,33 @@
|
|||||||
export enum Modules {
|
export const Modules = {
|
||||||
AUTH = "Auth",
|
AUTH: "Auth",
|
||||||
CACHE = "Cache",
|
CACHE: "Cache",
|
||||||
CART = "Cart",
|
CART: "Cart",
|
||||||
CUSTOMER = "Customer",
|
CUSTOMER: "Customer",
|
||||||
EVENT_BUS = "EventBus",
|
EVENT_BUS: "EventBus",
|
||||||
INVENTORY = "Inventory",
|
INVENTORY: "Inventory",
|
||||||
LINK = "LinkModules",
|
LINK: "LinkModules",
|
||||||
PAYMENT = "Payment",
|
PAYMENT: "Payment",
|
||||||
PRICING = "Pricing",
|
PRICING: "Pricing",
|
||||||
PRODUCT = "Product",
|
PRODUCT: "Product",
|
||||||
PROMOTION = "Promotion",
|
PROMOTION: "Promotion",
|
||||||
SALES_CHANNEL = "SalesChannel",
|
SALES_CHANNEL: "SalesChannel",
|
||||||
TAX = "Tax",
|
TAX: "Tax",
|
||||||
FULFILLMENT = "Fulfillment",
|
FULFILLMENT: "Fulfillment",
|
||||||
STOCK_LOCATION = "StockLocation",
|
STOCK_LOCATION: "StockLocation",
|
||||||
USER = "User",
|
USER: "User",
|
||||||
WORKFLOW_ENGINE = "Workflows",
|
WORKFLOW_ENGINE: "Workflows",
|
||||||
REGION = "Region",
|
REGION: "Region",
|
||||||
ORDER = "Order",
|
ORDER: "Order",
|
||||||
API_KEY = "ApiKey",
|
API_KEY: "ApiKey",
|
||||||
STORE = "Store",
|
STORE: "Store",
|
||||||
CURRENCY = "Currency",
|
CURRENCY: "Currency",
|
||||||
FILE = "File",
|
FILE: "File",
|
||||||
NOTIFICATION = "Notification",
|
NOTIFICATION: "Notification",
|
||||||
INDEX = "Index",
|
INDEX: "Index",
|
||||||
}
|
} as const
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Making modules be referenced as a type as well.
|
||||||
|
*/
|
||||||
|
export type Modules = (typeof Modules)[keyof typeof Modules]
|
||||||
export const ModuleRegistrationName = Modules
|
export const ModuleRegistrationName = Modules
|
||||||
|
|||||||
Reference in New Issue
Block a user