chore: Update type for run behavior for some instances (#40393)
## Description
Update type for run behavior for some instances
Fixes #
## Automation
/ok-to-test tags=""
### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results -->
> [!CAUTION]
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.
<!-- 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:
parent
f61747a597
commit
eff569945d
|
|
@ -20,7 +20,7 @@ import type { EventLocation } from "ee/utils/analyticsUtilTypes";
|
|||
import type { GenerateDestinationIdInfoReturnType } from "ee/sagas/helpers";
|
||||
import type { Span } from "instrumentation/types";
|
||||
import type { EvaluationReduxAction } from "./EvaluationReduxActionTypes";
|
||||
import type { ActionRunBehaviour } from "PluginActionEditor/constants/PluginActionConstants";
|
||||
import type { ActionRunBehaviourType } from "PluginActionEditor/constants/PluginActionConstants";
|
||||
|
||||
export const createActionRequest = (
|
||||
payload: Partial<Action>,
|
||||
|
|
@ -354,7 +354,7 @@ export const executePageLoadActions = (
|
|||
|
||||
export const setActionsRunBehavior = (
|
||||
actions: Array<{
|
||||
runBehavior: ActionRunBehaviour;
|
||||
runBehavior: ActionRunBehaviourType;
|
||||
id: string;
|
||||
name: string;
|
||||
}>,
|
||||
|
|
@ -367,7 +367,7 @@ export const setActionsRunBehavior = (
|
|||
|
||||
export const setJSActionsRunBehavior = (
|
||||
actions: Array<{
|
||||
runBehavior: ActionRunBehaviour;
|
||||
runBehavior: ActionRunBehaviourType;
|
||||
id: string;
|
||||
name: string;
|
||||
collectionId?: string;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import type {
|
|||
import type { DSLWidget } from "WidgetProvider/constants";
|
||||
import type { FetchApplicationResponse } from "ee/api/ApplicationApi";
|
||||
import type { APP_MODE } from "entities/App";
|
||||
import type { ActionRunBehaviour } from "PluginActionEditor/constants/PluginActionConstants";
|
||||
import type { ActionRunBehaviourType } from "PluginActionEditor/constants/PluginActionConstants";
|
||||
|
||||
export interface FetchPageRequest {
|
||||
pageId: string;
|
||||
|
|
@ -70,7 +70,7 @@ export interface SavePageResponseData {
|
|||
dsl: Partial<DSLWidget>;
|
||||
messages: string[];
|
||||
actionUpdates: Array<{
|
||||
runBehavior: ActionRunBehaviour;
|
||||
runBehavior: ActionRunBehaviourType;
|
||||
id: string;
|
||||
name: string;
|
||||
collectionId?: string;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import type {
|
|||
UpdateActionPropertyActionPayload,
|
||||
} from "actions/pluginActionActions";
|
||||
import { klona } from "klona";
|
||||
import type { ActionRunBehaviour } from "PluginActionEditor/constants/PluginActionConstants";
|
||||
import type { ActionRunBehaviourType } from "PluginActionEditor/constants/PluginActionConstants";
|
||||
|
||||
export interface ActionData {
|
||||
isLoading: boolean;
|
||||
|
|
@ -315,7 +315,7 @@ export const handlers = {
|
|||
draftMetaState: ActionDataState,
|
||||
action: ReduxAction<
|
||||
Array<{
|
||||
runBehavior: ActionRunBehaviour;
|
||||
runBehavior: ActionRunBehaviourType;
|
||||
id: string;
|
||||
name: string;
|
||||
}>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import {
|
|||
import { set, keyBy, findIndex, unset } from "lodash";
|
||||
import { create } from "mutative";
|
||||
import { klona } from "klona";
|
||||
import type { ActionRunBehaviour } from "PluginActionEditor/constants/PluginActionConstants";
|
||||
import type { ActionRunBehaviourType } from "PluginActionEditor/constants/PluginActionConstants";
|
||||
|
||||
export const initialState: JSCollectionDataState = [];
|
||||
|
||||
|
|
@ -366,7 +366,7 @@ export const handlers = {
|
|||
action: ReduxAction<{
|
||||
actionId: string;
|
||||
collectionId: string;
|
||||
runBehavior: ActionRunBehaviour;
|
||||
runBehavior: ActionRunBehaviourType;
|
||||
}>,
|
||||
): JSCollectionDataState =>
|
||||
state.map((a) => {
|
||||
|
|
@ -394,7 +394,7 @@ export const handlers = {
|
|||
state: JSCollectionDataState,
|
||||
action: ReduxAction<
|
||||
Array<{
|
||||
runBehavior: ActionRunBehaviour;
|
||||
runBehavior: ActionRunBehaviourType;
|
||||
id: string;
|
||||
name: string;
|
||||
collectionId: string;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
import type { JSAction } from "entities/JSCollection";
|
||||
import type { DropdownOption } from "@appsmith/ads-old";
|
||||
import type { ActionRunBehaviourType } from "PluginActionEditor/constants/PluginActionConstants";
|
||||
|
||||
export interface OnUpdateSettingsProps {
|
||||
value: boolean | number | string;
|
||||
value: ActionRunBehaviourType;
|
||||
propertyName: string;
|
||||
action: JSAction;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user