PromucFlow_constructor/app/client/src/actions/queryPaneActions.ts
Ankita Kinger c1e48f7486
feat: Refactor code for SAML integration (#12700)
* Implemented code splitting of some files for SAML integration

* Implemented code splitting of some more files for SAML integration

* updated redirect url component

* fixed an import statement

* fixed a unit test

* updated restart banner tooltip logic

* updated an import statement
2022-04-12 16:20:01 +05:30

40 lines
826 B
TypeScript

import {
ReduxActionTypes,
ReduxAction,
} from "@appsmith/constants/ReduxActionConstants";
import { Action } from "entities/Action";
export const createQueryRequest = (payload: Partial<Action>) => {
return {
type: ReduxActionTypes.CREATE_QUERY_INIT,
payload,
};
};
export const initQueryPane = (
pluginType: string,
urlId?: string,
): ReduxAction<{ pluginType: string; id?: string }> => {
return {
type: ReduxActionTypes.INIT_QUERY_PANE,
payload: { id: urlId, pluginType },
};
};
export const changeQuery = (
id: string,
isSaas: boolean,
newQuery?: boolean,
action?: Action,
): ReduxAction<{
id: string;
isSaas: boolean;
newQuery?: boolean;
action?: any;
}> => {
return {
type: ReduxActionTypes.QUERY_PANE_CHANGE,
payload: { id, newQuery, action, isSaas },
};
};