* migration from organization to workspace on code level * updated a few more files * fixed runtime errors * update org settings URL * Renamed organizationId in domain objects * changed field named from organization to workspace * Reverted AppsmithRole changes * fixed migrations * recreating indexes * migration update * seed data runs before migration, undo changes * mock commit * seedmongo to populate upgraded data, datasource upgrade * fixed two test cases * updated migrations * updated prop name * Upgraded AclPermission * comment * migrated AppsmithRole * more changes * final set of changes * variable name changes * update cypress variable name * Update app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ApplicationControllerCE.java * Update app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/Datasource.java Co-authored-by: Trisha Anand <trisha@appsmith.com> * reverting encryption handler change * migrated a few missed out org to workspace * migrated a few missed out org to workspace * migration changes * Removed Permission import * fixed AppsmithRole * mongodb version update * fixed compile error * fixed compile issue * fixed some tests * simplified embedded mongodb config * updated a cypress test Co-authored-by: Sidhant Goel <sidhant@appsmith.com> Co-authored-by: Trisha Anand <trisha@appsmith.com> Co-authored-by: Sidhant Goel <sidhant@hexcod.in>
71 lines
1.9 KiB
TypeScript
71 lines
1.9 KiB
TypeScript
import {
|
|
ReduxAction,
|
|
ReduxActionTypes,
|
|
ReduxActionErrorTypes,
|
|
ReduxActionWithoutPayload,
|
|
} from "@appsmith/constants/ReduxActionConstants";
|
|
import { PluginFormPayload } from "api/PluginApi";
|
|
import { DependencyMap } from "utils/DynamicBindingUtils";
|
|
|
|
export const fetchPlugins = (payload?: {
|
|
workspaceId?: string;
|
|
}): ReduxAction<{ workspaceId?: string } | undefined> => ({
|
|
type: ReduxActionTypes.FETCH_PLUGINS_REQUEST,
|
|
payload,
|
|
});
|
|
|
|
export const fetchPluginFormConfigs = (): ReduxActionWithoutPayload => ({
|
|
type: ReduxActionTypes.FETCH_PLUGIN_FORM_CONFIGS_REQUEST,
|
|
});
|
|
|
|
export type PluginFormsPayload = {
|
|
formConfigs: Record<string, any[]>;
|
|
editorConfigs: Record<string, any[]>;
|
|
settingConfigs: Record<string, any[]>;
|
|
dependencies: Record<string, DependencyMap>;
|
|
datasourceFormButtonConfigs: Record<string, string[]>;
|
|
};
|
|
|
|
export const fetchPluginFormConfigsSuccess = (
|
|
payload: PluginFormsPayload,
|
|
): ReduxAction<PluginFormsPayload> => ({
|
|
type: ReduxActionTypes.FETCH_PLUGIN_FORM_CONFIGS_SUCCESS,
|
|
payload,
|
|
});
|
|
|
|
export interface PluginFormPayloadWithId extends PluginFormPayload {
|
|
id: string;
|
|
}
|
|
|
|
export const fetchPluginFormConfigSuccess = (
|
|
payload: PluginFormPayloadWithId,
|
|
): ReduxAction<PluginFormPayloadWithId> => ({
|
|
type: ReduxActionTypes.FETCH_PLUGIN_FORM_SUCCESS,
|
|
payload,
|
|
});
|
|
|
|
export const fetchPluginFormConfigError = (
|
|
payload: GetPluginFormConfigRequest,
|
|
): ReduxAction<GetPluginFormConfigRequest> => ({
|
|
type: ReduxActionErrorTypes.FETCH_PLUGIN_FORM_ERROR,
|
|
payload,
|
|
});
|
|
|
|
export interface GetPluginFormConfigRequest {
|
|
id: string;
|
|
}
|
|
|
|
// To fetch plugin form config for individual plugin
|
|
export const fetchPluginFormConfig = ({
|
|
pluginId: id,
|
|
}: {
|
|
pluginId: GetPluginFormConfigRequest;
|
|
}) => ({
|
|
type: ReduxActionTypes.GET_PLUGIN_FORM_CONFIG_INIT,
|
|
payload: id,
|
|
});
|
|
|
|
export const fetchDefaultPlugins = (): ReduxActionWithoutPayload => ({
|
|
type: ReduxActionTypes.GET_DEFAULT_PLUGINS_REQUEST,
|
|
});
|