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:
Ankita Kinger 2025-04-25 16:39:16 +05:30 committed by GitHub
parent f61747a597
commit eff569945d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 12 additions and 11 deletions

View File

@ -20,7 +20,7 @@ import type { EventLocation } from "ee/utils/analyticsUtilTypes";
import type { GenerateDestinationIdInfoReturnType } from "ee/sagas/helpers"; import type { GenerateDestinationIdInfoReturnType } from "ee/sagas/helpers";
import type { Span } from "instrumentation/types"; import type { Span } from "instrumentation/types";
import type { EvaluationReduxAction } from "./EvaluationReduxActionTypes"; import type { EvaluationReduxAction } from "./EvaluationReduxActionTypes";
import type { ActionRunBehaviour } from "PluginActionEditor/constants/PluginActionConstants"; import type { ActionRunBehaviourType } from "PluginActionEditor/constants/PluginActionConstants";
export const createActionRequest = ( export const createActionRequest = (
payload: Partial<Action>, payload: Partial<Action>,
@ -354,7 +354,7 @@ export const executePageLoadActions = (
export const setActionsRunBehavior = ( export const setActionsRunBehavior = (
actions: Array<{ actions: Array<{
runBehavior: ActionRunBehaviour; runBehavior: ActionRunBehaviourType;
id: string; id: string;
name: string; name: string;
}>, }>,
@ -367,7 +367,7 @@ export const setActionsRunBehavior = (
export const setJSActionsRunBehavior = ( export const setJSActionsRunBehavior = (
actions: Array<{ actions: Array<{
runBehavior: ActionRunBehaviour; runBehavior: ActionRunBehaviourType;
id: string; id: string;
name: string; name: string;
collectionId?: string; collectionId?: string;

View File

@ -9,7 +9,7 @@ import type {
import type { DSLWidget } from "WidgetProvider/constants"; import type { DSLWidget } from "WidgetProvider/constants";
import type { FetchApplicationResponse } from "ee/api/ApplicationApi"; import type { FetchApplicationResponse } from "ee/api/ApplicationApi";
import type { APP_MODE } from "entities/App"; import type { APP_MODE } from "entities/App";
import type { ActionRunBehaviour } from "PluginActionEditor/constants/PluginActionConstants"; import type { ActionRunBehaviourType } from "PluginActionEditor/constants/PluginActionConstants";
export interface FetchPageRequest { export interface FetchPageRequest {
pageId: string; pageId: string;
@ -70,7 +70,7 @@ export interface SavePageResponseData {
dsl: Partial<DSLWidget>; dsl: Partial<DSLWidget>;
messages: string[]; messages: string[];
actionUpdates: Array<{ actionUpdates: Array<{
runBehavior: ActionRunBehaviour; runBehavior: ActionRunBehaviourType;
id: string; id: string;
name: string; name: string;
collectionId?: string; collectionId?: string;

View File

@ -13,7 +13,7 @@ import type {
UpdateActionPropertyActionPayload, UpdateActionPropertyActionPayload,
} from "actions/pluginActionActions"; } from "actions/pluginActionActions";
import { klona } from "klona"; import { klona } from "klona";
import type { ActionRunBehaviour } from "PluginActionEditor/constants/PluginActionConstants"; import type { ActionRunBehaviourType } from "PluginActionEditor/constants/PluginActionConstants";
export interface ActionData { export interface ActionData {
isLoading: boolean; isLoading: boolean;
@ -315,7 +315,7 @@ export const handlers = {
draftMetaState: ActionDataState, draftMetaState: ActionDataState,
action: ReduxAction< action: ReduxAction<
Array<{ Array<{
runBehavior: ActionRunBehaviour; runBehavior: ActionRunBehaviourType;
id: string; id: string;
name: string; name: string;
}> }>

View File

@ -8,7 +8,7 @@ import {
import { set, keyBy, findIndex, unset } from "lodash"; import { set, keyBy, findIndex, unset } from "lodash";
import { create } from "mutative"; import { create } from "mutative";
import { klona } from "klona"; import { klona } from "klona";
import type { ActionRunBehaviour } from "PluginActionEditor/constants/PluginActionConstants"; import type { ActionRunBehaviourType } from "PluginActionEditor/constants/PluginActionConstants";
export const initialState: JSCollectionDataState = []; export const initialState: JSCollectionDataState = [];
@ -366,7 +366,7 @@ export const handlers = {
action: ReduxAction<{ action: ReduxAction<{
actionId: string; actionId: string;
collectionId: string; collectionId: string;
runBehavior: ActionRunBehaviour; runBehavior: ActionRunBehaviourType;
}>, }>,
): JSCollectionDataState => ): JSCollectionDataState =>
state.map((a) => { state.map((a) => {
@ -394,7 +394,7 @@ export const handlers = {
state: JSCollectionDataState, state: JSCollectionDataState,
action: ReduxAction< action: ReduxAction<
Array<{ Array<{
runBehavior: ActionRunBehaviour; runBehavior: ActionRunBehaviourType;
id: string; id: string;
name: string; name: string;
collectionId: string; collectionId: string;

View File

@ -1,8 +1,9 @@
import type { JSAction } from "entities/JSCollection"; import type { JSAction } from "entities/JSCollection";
import type { DropdownOption } from "@appsmith/ads-old"; import type { DropdownOption } from "@appsmith/ads-old";
import type { ActionRunBehaviourType } from "PluginActionEditor/constants/PluginActionConstants";
export interface OnUpdateSettingsProps { export interface OnUpdateSettingsProps {
value: boolean | number | string; value: ActionRunBehaviourType;
propertyName: string; propertyName: string;
action: JSAction; action: JSAction;
} }