From 053db40e30f704dfeae62382be52d49f200e00be Mon Sep 17 00:00:00 2001 From: ashit-rath Date: Mon, 27 May 2024 17:50:06 +0530 Subject: [PATCH] chore: update module constants (#33673) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Updates to module constants for easy extension in EE PR for https://github.com/appsmithorg/appsmith-ee/pull/4257 ## Automation /ok-to-test tags="@tag.Sanity" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: ca8fbda349f665207bbd1c36339a8ac01c60b43d > Cypress dashboard url: Click here! ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No --- app/client/src/ce/constants/ModuleConstants.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/client/src/ce/constants/ModuleConstants.ts b/app/client/src/ce/constants/ModuleConstants.ts index 856db60531..189b5a014a 100644 --- a/app/client/src/ce/constants/ModuleConstants.ts +++ b/app/client/src/ce/constants/ModuleConstants.ts @@ -4,8 +4,8 @@ type ID = string; export enum MODULE_TYPE { QUERY = "QUERY_MODULE", - JS = "JS", - UI = "UI", + JS = "JS_MODULE", + UI = "UI_MODULE", } export interface ModuleInput { @@ -17,7 +17,8 @@ export interface ModuleInputSection { children?: ModuleInput[]; } -export interface Module extends ModuleMetadata { +export interface Module + extends Pick { id: ID; name: string; packageId: ID;