chore: update module constants (#33673)

## 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"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/9218704577>
> Commit: ca8fbda349f665207bbd1c36339a8ac01c60b43d
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9218704577&attempt=1"
target="_blank">Click here!</a>

<!-- end of auto-generated comment: Cypress test results  -->






## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No
This commit is contained in:
ashit-rath 2024-05-27 17:50:06 +05:30 committed by GitHub
parent 8f3b60cd9c
commit 053db40e30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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<ModuleMetadata, "pluginId" | "pluginType" | "datasourceId"> {
id: ID;
name: string;
packageId: ID;