chore: enable no-explicit-any rule (#35321)

## Description
-  Enabled the rule `@typescript-eslint/no-explicit-any`
- Suppressed errors with comment
```
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
```

Fixes #35308 

## Automation

/ok-to-test tags="@tag.All"

### 🔍 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/10181176984>
> Commit: 7fc604e24fa234da7ab2ff56e0b1c715268796ee
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=10181176984&attempt=2"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.All`
> Spec:
> <hr>Wed, 31 Jul 2024 15:00:45 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No
This commit is contained in:
Valera Melnikov 2024-07-31 18:41:28 +03:00 committed by GitHub
parent b59498c896
commit a2bfe450b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
970 changed files with 6408 additions and 142 deletions

View File

@ -21,7 +21,6 @@ const eslintConfig = {
"testing-library/no-unnecessary-act": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-explicit-any": "off",
"react/display-name": "off",
"react/prop-types": "off",
// `no-restricted-imports` is disabled, as recommended in https://typescript-eslint.io/rules/no-restricted-imports/.

View File

@ -23,6 +23,8 @@ const SwitchTrigger = styled.div<{ active: boolean }>`
`;
const HeaderEditorSwitcher = React.forwardRef(
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(props: HeaderEditorSwitcherProps, ref: any) => {
const { active, className, prefix, title, titleTestId, ...rest } = props;

View File

@ -295,6 +295,8 @@ export class PageLoadInstrumentation extends InstrumentationBase {
encodedBodySize,
entryType,
fetchStart,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
firstInterimResponseStart: (entry as any).firstInterimResponseStart,
initiatorType,
nextHopProtocol,
@ -308,6 +310,8 @@ export class PageLoadInstrumentation extends InstrumentationBase {
transferSize,
url,
workerStart,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
renderBlockingStatus: (entry as any).renderBlockingStatus,
},
entry.startTime,

View File

@ -109,6 +109,8 @@ export const startAndEndSpanForFn = <T>(
return res;
};
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function wrapFnWithParentTraceContext(parentSpan: Span, fn: () => any) {
const parentContext = trace.setSpan(context.active(), parentSpan);
return context.with(parentContext, fn);

View File

@ -29,6 +29,8 @@ import type {
export interface WidgetSizeConfig {
viewportMinWidth: number;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
configuration: (props: any) => Record<string, string | number>;
}
@ -36,13 +38,16 @@ interface ResizableValues {
vertical?: boolean;
horizontal?: boolean;
}
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type ResizableOptions = ResizableValues | ((props: any) => ResizableValues);
export interface AutoDimensionValues {
width?: boolean;
height?: boolean;
}
export type AutoDimensionOptions =
| AutoDimensionValues
| AutoDimensionValues // TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
| ((props: any) => AutoDimensionValues);
export interface AutoLayoutConfig {
@ -70,7 +75,8 @@ export interface AnvilConfig {
isLargeWidget: boolean;
// min/max sizes for the widget
widgetSize?:
| SizeConfig
| SizeConfig // TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
| ((props: any, isPreviewMode: boolean) => SizeConfig);
}
@ -115,11 +121,15 @@ export interface WidgetConfiguration extends WidgetBaseConfiguration {
contentConfig?: PropertyPaneConfig[];
styleConfig?: PropertyPaneConfig[];
default: Record<string, string>;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
meta: Record<string, any>;
derived: DerivedPropertiesMap;
loadingProperties?: Array<RegExp>;
stylesheetConfig?: Stylesheet;
autocompleteDefinitions?: AutocompletionDefinitions;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
setterConfig?: Record<string, any>;
};
methods?: Record<string, WidgetMethods>;
@ -217,11 +227,14 @@ export type AutocompleteDefinitionFunction = (
widgetProps: WidgetProps,
extraDefsToDefine?: ExtraDef,
configTree?: WidgetEntityConfig,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
) => Record<string, any>;
export type AutocompletionDefinitions =
| Record<string, any>
| AutocompleteDefinitionFunction;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Record<string, any> | AutocompleteDefinitionFunction;
const staticProps = omit(
WIDGET_STATIC_PROPS,
@ -471,8 +484,12 @@ export interface WidgetBlueprint {
type: string;
size?: { rows: number; cols: number };
position: { top?: number; left?: number };
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
props: Record<string, any>;
}>;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
operations?: any;
}

View File

@ -17,6 +17,8 @@ export function freeze(
) {
const originalFunction = descriptor.value;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
descriptor.value = (...args: any[]) => {
const result = originalFunction.apply(target, args);

View File

@ -43,6 +43,8 @@ import type {
} from "layoutSystems/anvil/utils/paste/types";
import { call } from "redux-saga/effects";
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type WidgetDerivedPropertyType = any;
export type DerivedPropertiesMap = Record<string, string>;
export type WidgetType = (typeof WidgetFactory.widgetTypes)[number];
@ -60,6 +62,8 @@ class WidgetFactory {
static widgetsMap: Map<WidgetType, typeof BaseWidget> = new Map();
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
static widgetBuilderMap: Map<WidgetType, any> = new Map();
static initialize(
@ -655,6 +659,8 @@ export type WidgetTypeConfigMap = Record<
string,
{
defaultProperties: Record<string, string>;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
metaProperties: Record<string, any>;
derivedProperties: WidgetDerivedPropertyType;
}

View File

@ -15,6 +15,8 @@ export const registerWidgets = (widgets: (typeof BaseWidget)[]) => {
const widgetAndBuilders = widgets.map((widget) => {
const { eagerRender = false, needsMeta = false } = widget.getConfig();
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const ProfiledWidget: any = withBaseWidgetHOC(
widget,
needsMeta,

View File

@ -57,6 +57,8 @@ export default abstract class GSheets extends BaseQueryGenerator {
const { select } = widgetConfig;
if (select && formConfig.sheetName) {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const queryPayload: any = {
type: QUERY_TYPE.SELECT,
name: `Find_${removeSpecialChars(formConfig.sheetName)}`,

View File

@ -30,6 +30,8 @@ export default abstract class MongoDB extends BaseQueryGenerator {
const { select } = widgetConfig;
if (select) {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const queryPayload: any = {
type: QUERY_TYPE.SELECT,
name: `Find_${removeSpecialChars(formConfig.tableName)}`,

View File

@ -13,6 +13,8 @@ export const setEvaluatedActionSelectorField = (payload: {
id: string;
evaluatedValue: {
value: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
errors: any[];
};
}) => ({

View File

@ -19,6 +19,8 @@ export const collabStopEditingAppEvent = (appId: string) =>
});
// App Editor presence Redux actions
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const collabSetAppEditors = (payload: any) => ({
type: ReduxActionTypes.APP_COLLAB_LIST_EDITORS,
payload,
@ -41,6 +43,8 @@ export const collabStopSharingPointerEvent = (pageId?: string) =>
payload: pageId,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const collabShareUserPointerEvent = (payload: any) =>
pageLevelWebsocketWriteEvent({
type: PAGE_LEVEL_SOCKET_EVENTS.SHARE_USER_POINTER,
@ -48,11 +52,15 @@ export const collabShareUserPointerEvent = (payload: any) =>
});
// Pointer Sharing Redux actions
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const collabSetEditorsPointersData = (payload: any) => ({
type: ReduxActionTypes.APP_COLLAB_SET_EDITORS_POINTER_DATA,
payload,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const collabUnsetEditorsPointersData = (payload: any) => ({
type: ReduxActionTypes.APP_COLLAB_UNSET_EDITORS_POINTER_DATA,
payload,
@ -62,6 +70,8 @@ export const collabResetEditorsPointersData = () => ({
type: ReduxActionTypes.APP_COLLAB_RESET_EDITORS_POINTER_DATA,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const collabConcurrentPageEditorsData = (payload: any) => ({
type: ReduxActionTypes.APP_COLLAB_SET_CONCURRENT_PAGE_EDITORS,
payload,

View File

@ -4,6 +4,8 @@ import type {
} from "@appsmith/constants/ReduxActionConstants";
import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants";
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const batchAction = (action: EvaluationReduxAction<any>) => ({
type: ReduxActionTypes.BATCHED_UPDATE,
payload: action,
@ -11,6 +13,8 @@ export const batchAction = (action: EvaluationReduxAction<any>) => ({
export type BatchAction<T> = ReduxAction<EvaluationReduxAction<T>>;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const batchActionSuccess = (actions: ReduxAction<any>[]) => ({
type: ReduxActionTypes.BATCH_UPDATES_SUCCESS,
payload: actions,

View File

@ -40,6 +40,8 @@ export const selectAllWidgetsInAreaAction = (
snapColumnSpace: number;
snapRowSpace: number;
},
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): ReduxAction<any> => {
return {
type: ReduxActionTypes.SELECT_WIDGETS_IN_AREA,

View File

@ -9,6 +9,8 @@ import type { DynamicPath } from "utils/DynamicBindingUtils";
export const updateWidgetPropertyRequest = (
widgetId: string,
propertyPath: string,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
propertyValue: any,
): ReduxAction<UpdateWidgetPropertyRequestPayload> => {
return {
@ -113,6 +115,8 @@ export const updateMultipleMetaWidgetPropertiesAction = (
export interface UpdateWidgetPropertyRequestPayload {
widgetId: string;
propertyPath: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
propertyValue: any;
}

View File

@ -305,6 +305,8 @@ export interface addMockRequest
isGeneratePageMode?: string;
skipRedirection?: boolean;
}> {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
extraParams?: any;
}
@ -360,7 +362,11 @@ type errorPayload = string;
export interface executeDatasourceReduxActionPayload {
datasourceId: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
template?: Record<string, any>;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
data?: Record<string, any>;
isGeneratePage: boolean;
}
@ -378,9 +384,13 @@ export const executeDatasourceQuery = ({
}: {
onErrorCallback?: (payload: errorPayload) => void;
onSuccessCallback?: (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
payload: executeDatasourceQuerySuccessPayload<any>,
) => void;
payload: executeDatasourceReduxActionPayload;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
}): executeDatasourceQueryReduxAction<any> => {
return {
type: ReduxActionTypes.EXECUTE_DATASOURCE_QUERY_INIT,

View File

@ -76,7 +76,11 @@ export const setDependencyMap = (
// Called when a form is being setup, for setting up the base condition evaluations for the form
export const initFormEvaluations = (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
editorConfig: any,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
settingConfig: any,
formId: string,
) => {

View File

@ -20,7 +20,11 @@ import type { ResponseMeta } from "api/ApiResponses";
export interface GitStatusParams {
compareRemote?: boolean;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
onSuccessCallback?: (data: any) => void;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
onErrorCallback?: (error: Error, response?: any) => void;
}
@ -73,12 +77,16 @@ export interface ConnectToGitResponse {
interface ConnectToGitRequestParams {
payload: ConnectToGitPayload;
onSuccessCallback?: (payload: ConnectToGitResponse) => void;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
onErrorCallback?: (error: any, response?: any) => void;
}
export interface ConnectToGitReduxAction
extends ReduxAction<ConnectToGitPayload> {
onSuccessCallback?: (response: ConnectToGitResponse) => void;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
onErrorCallback?: (error: Error, response?: any) => void;
}
@ -151,6 +159,8 @@ export const fetchBranchesInit = (payload?: { pruneBranches: boolean }) => ({
payload,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const fetchBranchesSuccess = (payload: any) => ({
type: ReduxActionTypes.FETCH_BRANCHES_SUCCESS,
payload,
@ -193,11 +203,15 @@ export const discardChanges = (
payload,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const discardChangesSuccess = (payload: any) => ({
type: ReduxActionTypes.GIT_DISCARD_CHANGES_SUCCESS,
payload,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const discardChangesFailure = (payload: any) => ({
type: ReduxActionErrorTypes.GIT_DISCARD_CHANGES_ERROR,
payload: { error: payload.error, show: false },
@ -420,6 +434,8 @@ export const importAppViaGitStatusReset = () => ({
});
// todo define type
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const importAppViaGitError = (error: any) => ({
type: ReduxActionTypes.IMPORT_APPLICATION_FROM_GIT_ERROR,
payload: error,
@ -429,26 +445,36 @@ export const resetSSHKeys = () => ({
type: ReduxActionTypes.RESET_SSH_KEY_PAIR,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const deleteBranchInit = (payload: any) => ({
type: ReduxActionTypes.DELETE_BRANCH_INIT,
payload,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const deleteBranchSuccess = (payload: any) => ({
type: ReduxActionTypes.DELETE_BRANCH_SUCCESS,
payload,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const deleteBranchError = (payload: any) => ({
type: ReduxActionErrorTypes.DELETE_BRANCH_ERROR,
payload,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const deleteBranchWarning = (payload: any) => ({
type: ReduxActionErrorTypes.DELETE_BRANCH_WARNING,
payload,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const deletingBranch = (payload: any) => ({
type: ReduxActionTypes.DELETING_BRANCH,
payload,
@ -502,6 +528,8 @@ export const triggerAutocommitSuccessAction = () => ({
});
export interface TriggerAutocommitErrorActionPayload {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
error: any;
show: boolean;
}
@ -535,6 +563,8 @@ export const resetAutocommitProgressAction = () => ({
});
export interface AutocommitProgressErrorActionPayload {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
error: any;
show: boolean;
}

View File

@ -24,6 +24,8 @@ export const setGlobalSearchCategory = (
payload: category,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const setGlobalSearchFilterContext = (payload: any) => ({
type: ReduxActionTypes.SET_SEARCH_FILTER_CONTEXT,
payload,

View File

@ -321,6 +321,8 @@ export interface WidgetAddChild {
parentColumnSpace: number;
newWidgetId: string;
tabId: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
props?: Record<string, any>;
dynamicBindingPathList?: DynamicPath[];
}
@ -384,12 +386,16 @@ export interface WidgetAddChildren {
export interface WidgetUpdateProperty {
widgetId: string;
propertyPath: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
propertyValue: any;
}
export const updateWidget = (
operation: WidgetOperation,
widgetId: string,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
payload: any,
): ReduxAction<
| WidgetAddChild
@ -430,11 +436,15 @@ export const updateAppStore = (
};
export interface ReduxActionWithExtraParams<T> extends ReduxAction<T> {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
extraParams: Record<any, any>;
}
export interface GenerateCRUDSuccess {
page: {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
layouts: Array<any>;
id: string;
baseId: string;
@ -467,6 +477,8 @@ export interface GenerateTemplatePageActionPayload {
columns?: string[];
searchColumn?: string;
mode?: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
pluginSpecificParams?: Record<any, any>;
}
@ -590,6 +602,8 @@ export const resetApplicationWidgets = () => ({
type: ReduxActionTypes.RESET_APPLICATION_WIDGET_STATE_REQUEST,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const fetchPageDSLs = (payload?: any) => ({
type: ReduxActionTypes.POPULATE_PAGEDSLS_INIT,
payload,

View File

@ -287,6 +287,8 @@ export const saveActionName = (payload: { id: string; name: string }) => ({
export interface SetActionPropertyPayload {
actionId: string;
propertyName: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
value: any;
skipSave?: boolean;
}
@ -303,6 +305,8 @@ export const setActionProperty = (
export interface UpdateActionPropertyActionPayload {
id: string;
field: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
value: any;
}

View File

@ -29,8 +29,14 @@ export const fetchPluginFormConfigs = (
});
export interface PluginFormsPayload {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
formConfigs: Record<string, any[]>;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
editorConfigs: Record<string, any[]>;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
settingConfigs: Record<string, any[]>;
dependencies: Record<string, DependencyMap>;
datasourceFormButtonConfigs: Record<string, string[]>;

View File

@ -26,6 +26,8 @@ export const logoutUserSuccess = (isEmptyInstance: boolean) => ({
payload: isEmptyInstance,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const logoutUserError = (error: any) => ({
type: ReduxActionErrorTypes.LOGOUT_USER_ERROR,
payload: {
@ -46,12 +48,16 @@ export const verifyInvite = (payload: VerifyTokenRequest) => ({
payload,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const verifyInviteError = (error: any) => ({
type: ReduxActionErrorTypes.VERIFY_INVITE_ERROR,
payload: { error },
});
export const invitedUserSignup = (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
payload: TokenPasswordUpdateRequest & { resolve: any; reject: any },
) => ({
type: ReduxActionTypes.INVITED_USER_SIGNUP_INIT,
@ -62,6 +68,8 @@ export const invitedUserSignupSuccess = () => ({
type: ReduxActionTypes.INVITED_USER_SIGNUP_SUCCESS,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const invitedUserSignupError = (error: any) => ({
type: ReduxActionErrorTypes.INVITED_USER_SIGNUP_ERROR,
payload: {
@ -119,6 +127,8 @@ export const fetchFeatureFlagsSuccess = (payload: FeatureFlags) => ({
payload,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const fetchFeatureFlagsError = (error: any) => ({
type: ReduxActionErrorTypes.FETCH_FEATURE_FLAGS_ERROR,
payload: { error, show: false },
@ -138,6 +148,8 @@ export const fetchProductAlertSuccess = (productAlert: ProductAlertState) => ({
payload: productAlert,
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const fetchProductAlertFailure = (error: any) => ({
type: ReduxActionErrorTypes.FETCH_PRODUCT_ALERT_FAILED,
payload: { error, show: false },

View File

@ -15,6 +15,8 @@ export const setIsPageLevelWebsocketConnected = (payload: boolean) => ({
export const appLevelWebsocketWriteEvent = (payload: {
type: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
payload?: any;
}) => ({
type: ReduxSagaChannels.WEBSOCKET_APP_LEVEL_WRITE_CHANNEL,
@ -22,6 +24,8 @@ export const appLevelWebsocketWriteEvent = (payload: {
});
export const pageLevelWebsocketWriteEvent = (payload: {
type: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
payload?: any;
}) => ({
type: ReduxSagaChannels.WEBSOCKET_PAGE_LEVEL_WRITE_CHANNEL,

View File

@ -10,6 +10,8 @@ export const fetchWidgetCards = () => {
};
};
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const errorFetchingWidgetCards = (error: any) => {
return {
type: ReduxActionErrorTypes.FETCH_WIDGET_CARDS_ERROR,

View File

@ -58,6 +58,8 @@ export type ActionExecutionResponse = ApiResponse<{
isExecutionSuccess: boolean;
request: ActionApiResponseReq;
errorType?: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
dataTypes: any[];
}> & {
clientMeta: {
@ -180,6 +182,8 @@ class ActionAPI extends API {
...apiConfig.actionConfiguration,
autoGeneratedHeaders:
apiConfig.actionConfiguration.autoGeneratedHeaders?.map(
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(header: any) => ({
...header,
isInvalid: undefined,
@ -187,6 +191,8 @@ class ActionAPI extends API {
) ?? undefined,
},
datasource: apiConfig.datasource && {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
...(apiConfig as any).datasource,
datasourceStorages: undefined,
isValid: undefined,

View File

@ -26,6 +26,8 @@ const requestInterceptors = [
apiRequestInterceptor,
];
requestInterceptors.forEach((interceptor) => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
axiosInstance.interceptors.request.use(interceptor as any);
});
@ -37,6 +39,8 @@ axiosInstance.interceptors.response.use(
class Api {
static async get(
url: string,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
queryParams?: any,
config: AxiosRequestConfig = {},
) {
@ -48,7 +52,11 @@ class Api {
static async post(
url: string,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
body?: any,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
queryParams?: any,
config: AxiosRequestConfig = {},
) {
@ -64,7 +72,11 @@ class Api {
static async put(
url: string,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
body?: any,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
queryParams?: any,
config: AxiosRequestConfig = {},
) {
@ -80,7 +92,11 @@ class Api {
static async patch(
url: string,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
body?: any,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
queryParams?: any,
config: AxiosRequestConfig = {},
) {
@ -96,6 +112,8 @@ class Api {
static async delete(
url: string,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
queryParams?: any,
config: AxiosRequestConfig = {},
) {

View File

@ -15,6 +15,8 @@ export interface CreateDatasourceConfig {
}
// type executeQueryData = Array<{ key?: string; value?: string }>;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type executeQueryData = Record<string, any>;
interface executeDatasourceQueryRequest {
@ -33,6 +35,8 @@ class DatasourcesApi extends API {
static async createDatasource(
datasourceConfig: Partial<Datasource>,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): Promise<any> {
// This here abomination is to remove several fields that are not accepted by the server.
for (const [name, storage] of Object.entries(
@ -61,6 +65,8 @@ class DatasourcesApi extends API {
},
},
},
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any;
}
@ -68,11 +74,15 @@ class DatasourcesApi extends API {
}
// Need for when we add strict type checking back on server
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
static cleanAuthenticationObject(authentication: any): any {
if (!authentication) {
return undefined;
}
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const clean: any = {
authenticationType: authentication.authenticationType ?? "dbAuth",
};
@ -133,6 +143,8 @@ class DatasourcesApi extends API {
datasourceConfig: Partial<DatasourceStorage>,
pluginId: string,
workspaceId: string,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): Promise<any> {
const payload = {
...datasourceConfig,
@ -160,6 +172,8 @@ class DatasourcesApi extends API {
static async updateDatasource(
datasourceConfig: Partial<Datasource>,
id: string,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): Promise<any> {
return API.put(DatasourcesApi.url + `/${id}`, datasourceConfig);
}
@ -167,6 +181,8 @@ class DatasourcesApi extends API {
// Api to update specific datasource storage/environment configuration
static async updateDatasourceStorage(
datasourceStorage: Partial<DatasourceStorage>,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): Promise<any> {
const payload = {
...datasourceStorage,
@ -187,6 +203,8 @@ class DatasourcesApi extends API {
return API.put(DatasourcesApi.url + `/datasource-storages`, payload);
}
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
static async deleteDatasource(id: string): Promise<any> {
return API.delete(DatasourcesApi.url + `/${id}`);
}
@ -194,6 +212,8 @@ class DatasourcesApi extends API {
static async fetchDatasourceStructure(
id: string,
ignoreCache = false,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): Promise<any> {
return API.get(
DatasourcesApi.url + `/${id}/structure?ignoreCache=${ignoreCache}`,
@ -211,6 +231,8 @@ class DatasourcesApi extends API {
workspaceId: string,
pluginId: string,
packageName: string,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): Promise<any> {
return API.post(DatasourcesApi.url + `/mocks`, {
name,

View File

@ -147,6 +147,8 @@ export interface GenerateTemplatePageRequest {
columns?: string[];
searchColumn?: string;
mode?: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
pluginSpecificParams?: Record<any, any>;
}

View File

@ -37,8 +37,14 @@ export interface Plugin {
}
export interface PluginFormPayload {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
form: any[];
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
editor: any[];
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
setting: any[];
dependencies: DependencyMap;
formButton: string[];
@ -75,6 +81,8 @@ class PluginsApi extends Api {
// Definition to fetch the dynamic data via the URL passed in the config
static async fetchDynamicFormValues(
url: string,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
body: Record<string, any>,
): Promise<AxiosPromise<ApiResponse>> {
return Api.post(url, body);
@ -89,6 +97,8 @@ class PluginsApi extends Api {
static async uploadFiles(
pluginId: string,
files: File[],
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
params?: Record<string, any>,
): Promise<AxiosPromise<ApiResponse>> {
const url = this.dynamicTriggerURLForInternalPlugins(pluginId);

View File

@ -12,6 +12,8 @@ import type {
import urlBuilder from "@appsmith/entities/URLRedirect/URLAssembly";
import type { Middleware } from "redux";
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const handler = (action: ReduxAction<any>) => {
let appParams: ApplicationURLParams = {};
let pageParams: PageURLParams[] = [];
@ -124,6 +126,8 @@ export const handler = (action: ReduxAction<any>) => {
};
const routeParamsMiddleware: Middleware =
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
() => (next: any) => (action: ReduxAction<any>) => {
handler(action);
return next(action);

View File

@ -71,6 +71,8 @@ export const createNewApiActionBasedOnEditorType = (
parentEntityId: string,
parentEntityType: ActionParentEntityTypeInterface,
apiType: string,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): any => {
if (parentEntityId) {
return createNewAPIBasedOnParentEntity(

View File

@ -1,5 +1,7 @@
import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants";
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const saveSettings = (settings: any, needsRestart = true) => ({
type: ReduxActionTypes.SAVE_ADMIN_SETTINGS,
payload: {

View File

@ -60,6 +60,8 @@ export const ENV_ENABLED_ROUTES_REGEX = new RegExp(
`^(${ENV_ENABLED_ROUTES.join("|")})($|/)`,
);
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const makeExecuteActionResponse = (response: any): ActionExecutionResponse => ({
...response.data,
clientMeta: {
@ -146,6 +148,8 @@ export const apiSuccessResponseInterceptor = (
};
// Handle different api failure scenarios
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const apiFailureResponseInterceptor = async (error: any) => {
// this can be extended to other errors we want to catch.
// in this case it is 413.

View File

@ -166,6 +166,8 @@ export interface FetchUsersApplicationsWorkspacesResponse extends ApiResponse {
workspaceApplications: Array<WorkspaceApplicationObject>;
user: string;
newReleasesCount?: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
releaseItems?: Array<Record<string, any>>;
};
}
@ -175,6 +177,8 @@ export interface FetchApplicationsOfWorkspaceResponse extends ApiResponse {
export interface FetchReleaseItemsResponse extends ApiResponse {
data: {
newReleasesCount: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
releaseItems: Array<Record<string, any>>;
};
}
@ -308,6 +312,8 @@ export class ApplicationApi extends Api {
static async fetchAllApplicationsOfWorkspace(
workspaceId: string,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): Promise<any> {
return Api.get(ApplicationApi.baseURL + "/home?workspaceId=" + workspaceId);
}

View File

@ -43,6 +43,8 @@ export interface CreateJSCollectionRequest {
export interface SetFunctionPropertyPayload {
action: JSAction;
propertyName: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
value: any;
}
export interface RefactorAction {
@ -81,7 +83,11 @@ class JSActionAPI extends API {
jsConfig.actions?.map((action) => ({
...action,
entityReferenceType: undefined,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
datasource: (action as any).datasource && {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
...(action as any).datasource,
isValid: undefined,
new: undefined,
@ -100,7 +106,11 @@ class JSActionAPI extends API {
jsConfig.actions?.map((action) => ({
...action,
entityReferenceType: undefined,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
datasource: (action as any).datasource && {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
...(action as any).datasource,
isValid: undefined,
new: undefined,
@ -128,7 +138,11 @@ class JSActionAPI extends API {
jsConfig.actions?.map((action) => ({
...action,
entityReferenceType: undefined,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
datasource: (action as any).datasource && {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
...(action as any).datasource,
isValid: undefined,
new: undefined,
@ -176,7 +190,11 @@ class JSActionAPI extends API {
(action) => ({
...action,
entityReferenceType: undefined,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
datasource: (action as any).datasource && {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
...(action as any).datasource,
isValid: undefined,
new: undefined,

View File

@ -3,6 +3,8 @@ import { renderDatasourceSection } from "pages/Editor/DataSourceEditor/Datasourc
export interface Props {
currentEnv: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
config: any;
datasource: Datasource;
viewMode: boolean | undefined;

View File

@ -1,3 +1,5 @@
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export default function JSRemoteExecutionView({}: any) {
return null;
}

View File

@ -1,3 +1,5 @@
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export default function RunHistory({}: any) {
return null;
}

View File

@ -53,6 +53,8 @@ export interface Props {
viewMode?: boolean;
editorId: string;
onChangeEnv?: () => void;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
startSwitchEnvMessage: (...strArgs: any[]) => string;
}

View File

@ -104,6 +104,8 @@ export const WorkspaceSettingsTabs = ({
const MemberSettingsComponent = (
<SentryRoute
component={useCallback(
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(props: any) => (
<MemberSettings {...props} searchValue={searchValue} />
),

View File

@ -24,6 +24,8 @@ export interface TAIWrapperProps {
children?: React.ReactNode;
isOpen: boolean;
currentValue: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
update?: (...args: any) => void;
triggerContext?: CodeEditorExpected;
enableAIAssistance: boolean;

View File

@ -13,6 +13,8 @@ export interface AppsmithUIConfigs {
dsn: string;
release: string;
environment: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
integrations: any[];
normalizeDepth: number;
tracesSampleRate: number;

View File

@ -1205,7 +1205,11 @@ export interface EvaluationReduxAction<T> extends ReduxAction<T> {
}
export interface PromisePayload {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
reject: any;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
resolve: any;
}
@ -1302,6 +1306,8 @@ export interface ApplicationPayload {
export interface WorkspaceDetails {
workspace: Workspace;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
applications: any[];
}

View File

@ -1,9 +1,8 @@
import type { PageErrorMessageProps } from "pages/common/ErrorPages/Components/PageErrorMessage";
export function createMessage(
format: (...strArgs: any[]) => string,
...args: any[]
) {
export // TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function createMessage(format: (...strArgs: any[]) => string, ...args: any[]) {
return format(...args);
}

View File

@ -124,6 +124,8 @@ export type ClearStoreActionDescription = ActionDescriptionInterface<
export type DownloadActionDescription = ActionDescriptionInterface<
{
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
data: any;
name: string;
type: string;
@ -191,6 +193,8 @@ export type StopWatchingCurrentLocationDescription = ActionDescriptionInterface<
>;
export type ConfirmationModalDescription = ActionDescriptionInterface<
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Record<string, any> | undefined,
"CONFIRMATION_MODAL"
>;

View File

@ -12,6 +12,8 @@ import type {
export const generateDataTreeAction = (
action: ActionData,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
editorConfig: any[],
dependencyConfig: DependencyMap = {},
): {

View File

@ -19,6 +19,8 @@ export const generateDataTreeJSAction = (
const meta: Record<string, MetaArgs> = {};
const dynamicBindingPathList = [];
const bindingPaths: Record<string, EvaluationSubstitutionType> = {};
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const variableList: Record<string, any> = {};
const variables = js.config?.variables;
const listVariables: Array<string> = [];
@ -40,6 +42,8 @@ export const generateDataTreeJSAction = (
const dependencyMap: DependencyMap = {};
dependencyMap["body"] = [];
const actions = js.config.actions;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const actionsData: Record<string, any> = {};
if (actions) {
for (let i = 0; i < actions.length; i++) {

View File

@ -3,7 +3,8 @@ import type { ModuleInstance } from "@appsmith/constants/ModuleInstanceConstants
export const generateModuleInstance = (
// eslint-disable-next-line @typescript-eslint/no-unused-vars
moduleInstance: ModuleInstance,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
moduleInstanceEntities: any,
) => {
return {

View File

@ -20,6 +20,8 @@ import type { LayoutSystemTypes } from "layoutSystems/types";
import type { Module } from "@appsmith/constants/ModuleConstants";
import type { ModuleInstance } from "@appsmith/constants/ModuleInstanceConstants";
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type ActionDispatcher = (...args: any[]) => ActionDescription;
export const ENTITY_TYPE = {
@ -97,6 +99,8 @@ export interface JSActionEntityConfig extends EntityConfig {
}
export interface JSActionEntity {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[propName: string]: any;
body?: string;
ENTITY_TYPE: typeof ENTITY_TYPE.JSACTION;
@ -176,6 +180,8 @@ export interface WidgetEntityConfig
widgetId: string;
defaultMetaProps: Array<string>;
type: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
__setters?: Record<string, any>;
}
@ -187,6 +193,8 @@ export interface AppsmithEntity extends Omit<AppDataState, "store"> {
export interface DataTreeSeed {
actions: ActionDataState;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
editorConfigs: Record<string, any[]>;
pluginDependencyConfig: Record<string, DependencyMap>;
widgets: CanvasWidgetsReduxState;
@ -199,6 +207,8 @@ export interface DataTreeSeed {
isMobile: boolean;
moduleInputs: Module["inputsForm"];
moduleInstances: Record<string, ModuleInstance> | null;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
moduleInstanceEntities: any;
layoutSystemType: LayoutSystemTypes;
loadingEntities: LoadingEntitiesState;

View File

@ -126,6 +126,8 @@ export interface EntityItem {
export type UseRoutes = Array<{
key: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
component: ComponentType<any>;
path: string[];
exact: boolean;

View File

@ -141,6 +141,8 @@ describe(".getQueryStringfromObject", () => {
test.each(cases.map((x) => [x.index, x.input, x.expected]))(
"test case %d",
(_, input, expected) => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const result = getQueryStringfromObject(input as any);
expect(result).toStrictEqual(expected);
},

View File

@ -18,6 +18,8 @@ export interface URLBuilderParams {
suffix?: string;
branch?: string;
hash?: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
params?: Record<string, any>;
basePageId?: string | null;
persistExistingParams?: boolean;
@ -86,9 +88,13 @@ const fetchQueryParamsToPersist = (persistExistingParams: boolean) => {
if (persistExistingParams) {
params = { ...existingParams };
} else {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
params = { branch, embed } as any;
}
// test param to make sure a query param is present in the URL during dev and tests
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
if ((window as any).Cypress) {
params = { a: "b", ...params };
}

View File

@ -123,6 +123,8 @@ export const useHeaderActions = (
className={"t--generate-template"}
isDisabled={!canGeneratePage}
kind="secondary"
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
onClick={(e: any) => {
e.stopPropagation();
e.preventDefault();

View File

@ -147,6 +147,8 @@ export const APPSMITH_ALLOWED_FRAME_ANCESTORS_SETTING: Setting = {
],
},
format: formatEmbedSettings,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
parse: (value: { value: string; additionalData?: any }) => {
// Retrieve values from local storage while switching to limit by url option
const sources = isUndefined(value.additionalData)

View File

@ -55,7 +55,11 @@ export type Setting = ControlType & {
id: string;
category?: string;
controlSubType?: SettingSubtype;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
format?: (value: any) => any;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
parse?: (value: any) => any;
helpText?: string;
label?: React.ReactNode;
@ -63,20 +67,32 @@ export type Setting = ControlType & {
placeholder?: string;
validate?: (value: string, setting?: Setting) => string | void;
url?: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
children?: any;
subCategory?: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
value?: any;
text?: string;
textSuffix?: React.ReactElement;
action?: (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
dispatch: Dispatch<ReduxAction<any>>,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
settings?: Record<string, any>,
) => void;
sortOrder?: number;
subText?: string;
toggleText?: (value: boolean) => string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
isVisible?: (values?: Record<string, any>) => boolean;
isHidden?: boolean;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
isDisabled?: (values?: Record<string, any>) => boolean;
calloutType?: CalloutKind;
advanced?: Setting[];

View File

@ -75,6 +75,8 @@ const defaultStoreState = {
};
const mockStore = configureStore([]);
describe("CreateNewAppsOption", () => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let store: any;
it("Should not render skip button if no application is present", () => {
store = mockStore(defaultStoreState);

View File

@ -1,4 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
export const PrivateEmbedSettings = (props: any) => {
return null;
};

View File

@ -20,6 +20,8 @@ function ResourceListLoader({ isMobile, resources }: ResourcesLoaderProps) {
const resourcesToUse = resources?.length ? resources : DEAFULT_RESOURCES;
return (
<CardList isLoading isMobile={isMobile} title="Apps">
{/* TODO: Fix this the next time the file is edited */}
{/* eslint-disable-next-line @typescript-eslint/no-explicit-any */}
{resourcesToUse.map((resource: any) => {
return (
<PaddingWrapper isMobile={isMobile} key={resource.id}>

View File

@ -278,6 +278,8 @@ const AnvilTitleTag = (
export function LeftPaneSection(props: {
heading: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
children?: any;
isFetchingWorkspaces: boolean;
isBannerVisible?: boolean;
@ -297,6 +299,8 @@ export function LeftPaneSection(props: {
{
name: getNextEntityName(
"Untitled workspace ",
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
fetchedWorkspaces.map((el: any) => el.name),
),
},
@ -370,7 +374,8 @@ export const textIconStyles = (props: { color: string; hover: string }) => {
export function WorkspaceMenuItem({
isFetchingWorkspaces,
selected,
workspace,
workspace, // TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
}: any) {
const history = useHistory();
const location = useLocation();
@ -400,6 +405,8 @@ export function WorkspaceMenuItem({
);
}
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const submitCreateWorkspaceForm = async (data: any, dispatch: any) => {
const result = await createWorkspaceSubmitHandler(data, dispatch);
return result;
@ -512,6 +519,8 @@ export const WorkspaceSelectorWrapper = styled.div`
padding: 24px 10px 0;
`;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function ApplicationsSection(props: any) {
const { activeWorkspaceId, applications, packages, workflows, workspaces } =
props;
@ -739,6 +748,8 @@ export function ApplicationsSection(props: any) {
createNewApplication(
getNextEntityName(
"Untitled application ",
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
applications.map((el: any) => el.name),
),
workspaceId,
@ -946,6 +957,8 @@ export function ApplicationsSection(props: any) {
);
}
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const ApplictionsMainPage = (props: any) => {
const { searchKeyword } = props;
const location = useLocation();
@ -964,12 +977,16 @@ export const ApplictionsMainPage = (props: any) => {
const isLicensePage = useRouteMatch("/license")?.isExact;
const isBannerVisible = showBanner && (isHomePage || isLicensePage);
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let workspaces: any;
if (!isFetchingWorkspaces) {
workspaces = fetchedWorkspaces;
} else {
workspaces = loadingUserWorkspaces.map(
(loadingWorkspaces) => loadingWorkspaces.workspace,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
) as any;
}
@ -1075,6 +1092,8 @@ export interface ApplicationProps {
fetchEntities: boolean;
workspaceId: string | null;
}) => void;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
workspaces: any;
currentUser?: User;
searchKeyword: string | undefined;
@ -1161,6 +1180,8 @@ export const mapStateToProps = (state: AppState) => ({
isReconnectModalOpen: getIsReconnectingDatasourcesModalOpen(state),
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const mapDispatchToProps = (dispatch: any) => ({
getAllWorkspaces: ({
fetchEntities,

View File

@ -84,11 +84,15 @@ enum ActionEntityPublicProperties {
}
const getActionBindings = (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
entity: any,
entityProperties: EntityProperty[],
entityType: string,
entityName: string,
) => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const config = (entityDefinitions.ACTION as any)(entity as any);
entityProperties = Object.keys(config || {})
@ -165,6 +169,8 @@ export const getEntityPropertiesMap: Record<
string,
(
entity: DataTreeEntityObject,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
entityProperties: any,
entityType: string,
entityName: string,

View File

@ -1,5 +1,7 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const ExplorerModuleInstanceEntity = (props: any) => {
return null;
};

View File

@ -13,6 +13,8 @@ export interface CarouselTrigger {
export interface Carousel {
triggers: CarouselTrigger[];
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
targets: any[];
design:
| "split-left-trigger"

View File

@ -1,4 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
function ConvertEntityNotification(props: any) {
return null;
}

View File

@ -1,4 +1,6 @@
interface Props {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
searchedPackages: any;
}

View File

@ -167,7 +167,11 @@ const validateFormValues = (values: {
}
};
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const validate = (values: any) => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const errors: any = {};
if (!(values.users && values.users.length > 0)) {
errors["users"] = createMessage(INVITE_USERS_VALIDATION_EMAILS_EMPTY);
@ -225,6 +229,8 @@ export function InviteUserText({
}
export function CustomRolesRamp() {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const [dynamicProps, setDynamicProps] = useState<any>({});
const rampLinkSelector = getRampLink({
section: RampSection.WorkspaceShare,
@ -271,8 +277,12 @@ export function CustomRolesRamp() {
);
}
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function InviteUsersForm(props: any) {
const [emailError, setEmailError] = useState("");
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const [selectedOption, setSelectedOption] = useState<any[]>([]);
const showRampSelector = showProductRamps(RAMP_NAME.CUSTOM_ROLES);
const canShowRamp = useSelector(showRampSelector);
@ -344,7 +354,9 @@ function InviteUsersForm(props: any) {
const styledRoles =
props.options && props.options.length > 0
? props.options
: props.roles.map((role: any) => {
: // TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
props.roles.map((role: any) => {
return {
key: role.id,
value: role.name?.split(" - ")[0],
@ -373,7 +385,11 @@ function InviteUsersForm(props: any) {
};
const inviteUsersSubmitHandler = async (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
values: any,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
dispatch: any,
recaptchaToken?: string,
) => {
@ -410,6 +426,8 @@ function InviteUsersForm(props: any) {
};
const captchaWrappedInviteUsersSubmitHandler = handleSubmit(
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
async (values: any, dispatch: any) => {
try {
if (
@ -539,6 +557,8 @@ export const mapStateToProps = (
};
};
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const mapDispatchToProps = (dispatch: any) => ({
fetchAllRoles: (workspaceId: string) =>
dispatch(fetchRolesForWorkspace(workspaceId)),

View File

@ -236,6 +236,8 @@ export default function MemberSettings(props: PageProps) {
onOpenConfirmationModal();
};
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const onDeleteMember = (data?: any) => {
if (!userToBeDeleted && !data) return null;
dispatch(
@ -327,6 +329,8 @@ export default function MemberSettings(props: PageProps) {
MEMBERS_TAB_TITLE(filteredData?.length, !isGACEnabled),
),
accessor: "users",
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Cell: function UserCell(props: any) {
const member = props.cell.row.original;
return (
@ -352,6 +356,8 @@ export default function MemberSettings(props: PageProps) {
{
Header: "Resource",
accessor: "resource",
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Cell: function ResourceCell(cellProps: any) {
return (
<RowWrapper>
@ -366,11 +372,15 @@ export default function MemberSettings(props: PageProps) {
{
Header: "Role",
accessor: "permissionGroupName",
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Cell: function DropdownCell(cellProps: any) {
const data = cellProps.cell.row.original;
const allRoles = useSelector(getAllRoles);
const roles = allRoles
? allRoles.map((role: any) => {
? // TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
allRoles.map((role: any) => {
return {
key: role.id,
value: role.name?.split(" - ")[0],
@ -400,6 +410,8 @@ export default function MemberSettings(props: PageProps) {
roleChangingUserInfo.username === data.username
}
listHeight={400}
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
onSelect={(_value: string, option: any) => {
dispatch(
changeWorkspaceUserRole(workspaceId, option.key, data.username),
@ -435,6 +447,8 @@ export default function MemberSettings(props: PageProps) {
{
Header: "Actions",
accessor: "actions",
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Cell: function DeleteCell(cellProps: any) {
return (
<Button
@ -462,7 +476,9 @@ export default function MemberSettings(props: PageProps) {
];
const isMobile: boolean = useMediaQuery({ maxWidth: 767 });
const roles = allRoles
? allRoles.map((role: any) => {
? // TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
allRoles.map((role: any) => {
return {
key: role.id,
value: role.name?.split(" - ")[0],
@ -471,6 +487,8 @@ export default function MemberSettings(props: PageProps) {
})
: [];
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const selectRole = (option: any, username: any) => {
dispatch(changeWorkspaceUserRole(workspaceId, option, username));
};
@ -500,6 +518,8 @@ export default function MemberSettings(props: PageProps) {
{filteredData.map((member, index) => {
const role =
roles.find(
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(role: any) =>
role.value === member.permissionGroupName.split(" - ")[0],
) || roles[0];
@ -547,6 +567,8 @@ export default function MemberSettings(props: PageProps) {
roleChangingUserInfo &&
roleChangingUserInfo.username === member.username
}
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
onSelect={(_value: string, option: any) => {
selectRole(option.key, member.username);
}}

View File

@ -7,6 +7,8 @@ export interface InviteUsersToWorkspaceByRoleValues {
users?: string;
permissionGroupId?: string;
permissionGroupName?: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
roles?: any[];
}
export interface InviteUsersToWorkspaceFormValues {
@ -19,8 +21,14 @@ export interface InviteUsersProps {
workspaceId?: string;
isApplicationPage?: boolean;
placeholder?: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
customProps?: any;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
selected?: any;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
options?: any;
isMultiSelectDropdown?: boolean;
checkIfInvitedUsersFromDifferentDomain?: () => void;
@ -32,7 +40,11 @@ export interface CreateWorkspaceFormValues {
export const createWorkspaceSubmitHandler = async (
values: CreateWorkspaceFormValues,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
dispatch: any,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): Promise<any> => {
return new Promise((resolve, reject) => {
dispatch({
@ -50,7 +62,10 @@ export const createWorkspaceSubmitHandler = async (
export const inviteUsersToWorkspaceSubmitHandler = async (
values: InviteUsersToWorkspaceFormValues,
dispatch: any,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
dispatch: any, // TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): Promise<any> => {
const data = values.usersByRole.map((value) => ({
permissionGroupId: value.permissionGroupId,
@ -71,8 +86,14 @@ export const inviteUsersToWorkspaceSubmitHandler = async (
};
export const inviteUsersToWorkspace = async (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
values: any,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
dispatch: any,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): Promise<any> => {
const data = {
permissionGroupId: values.permissionGroupId,

View File

@ -33,7 +33,7 @@ export const entityReducerObject = {
autoHeightLayoutTree: autoHeightLayoutTreeReducer,
canvasLevels: canvasLevelsReducer,
layoutElementPositions: layoutElementPositionsReducer,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
moduleInstanceEntities: (state: AppState, action: ReduxAction<any>) => {
return {};
},

View File

@ -161,6 +161,8 @@ export interface AppState {
autoHeightLayoutTree: AutoHeightLayoutTreeReduxState;
canvasLevels: CanvasLevelsReduxState;
layoutElementPositions: LayoutElementPositionsReduxState;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
moduleInstanceEntities: any;
};
evaluations: {
@ -174,8 +176,12 @@ export interface AppState {
errors: LintErrorsStore;
};
form: {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[key: string]: any;
};
settings: SettingsReduxState;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
tenant: TenantReduxState<any>;
}

View File

@ -44,9 +44,15 @@ export const handlers = {
},
}),
[ReduxActionTypes.FETCH_CURRENT_TENANT_CONFIG_SUCCESS]: (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
state: SettingsReduxState & TenantReduxState<any>,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
action: ReduxAction<TenantReduxState<any>>,
) => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const configs: any = {};
tenantConfigConnection.forEach((key: string) => {
if (action.payload?.tenantConfiguration?.hasOwnProperty(key)) {
@ -63,9 +69,15 @@ export const handlers = {
};
},
[ReduxActionTypes.UPDATE_TENANT_CONFIG_SUCCESS]: (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
state: SettingsReduxState & TenantReduxState<any>,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
action: ReduxAction<TenantReduxState<any>>,
) => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const configs: any = {};
tenantConfigConnection.forEach((key: string) => {
if (action.payload?.tenantConfiguration?.hasOwnProperty(key)) {

View File

@ -27,6 +27,8 @@ export const defaultBrandingConfig = {
brandLogoUrl: APPSMITH_BRAND_LOGO_URL,
};
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const initialState: TenantReduxState<any> = {
userPermissions: [],
tenantConfiguration: {
@ -39,6 +41,8 @@ export const initialState: TenantReduxState<any> = {
export const handlers = {
[ReduxActionTypes.FETCH_CURRENT_TENANT_CONFIG]: (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
state: TenantReduxState<any>,
action: ReduxAction<{ isBackgroundRequest: boolean }>,
) => ({
@ -46,7 +50,11 @@ export const handlers = {
isLoading: !action.payload.isBackgroundRequest,
}),
[ReduxActionTypes.FETCH_CURRENT_TENANT_CONFIG_SUCCESS]: (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
state: TenantReduxState<any>,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
action: ReduxAction<TenantReduxState<any>>,
) => ({
...state,
@ -64,13 +72,19 @@ export const handlers = {
instanceId: action.payload.instanceId,
}),
[ReduxActionErrorTypes.FETCH_CURRENT_TENANT_CONFIG_ERROR]: (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
state: TenantReduxState<any>,
) => ({
...state,
isLoading: false,
}),
[ReduxActionTypes.UPDATE_TENANT_CONFIG_SUCCESS]: (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
state: TenantReduxState<any>,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
action: ReduxAction<TenantReduxState<any>>,
) => ({
...state,
@ -82,6 +96,8 @@ export const handlers = {
isLoading: false,
}),
[ReduxActionErrorTypes.UPDATE_TENANT_CONFIG_ERROR]: (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
state: TenantReduxState<any>,
) => ({
...state,

View File

@ -34,6 +34,8 @@ export interface ApiPaneReduxState {
isSaving: Record<string, boolean>; // RN
isDeleting: Record<string, boolean>;
isDirty: Record<string, boolean>;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
extraformData: Record<string, any>;
selectedConfigTabIndex: number;
selectedRightPaneTab?: string;
@ -87,6 +89,8 @@ export const handlers = {
}),
[ReduxActionTypes.RUN_ACTION_SUCCESS]: (
state: ApiPaneReduxState,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
action: ReduxAction<{ [id: string]: any }>,
) => {
const actionId = Object.keys(action.payload)[0];

View File

@ -232,6 +232,8 @@ export const handlers = {
}),
[ReduxActionTypes.IMPORT_APPLICATION_SUCCESS]: (
state: ApplicationsReduxState,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
action: ReduxAction<{ importedApplication: any }>,
) => {
const importedApplication = action.payload;
@ -384,8 +386,12 @@ export const handlers = {
}), // updating default branch when git sync on branch list
[ReduxActionTypes.FETCH_BRANCHES_SUCCESS]: (
state: ApplicationsReduxState,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
action: ReduxAction<any[]>,
) => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const defaultBranch = action.payload.find((branch: any) => branch.default);
if (defaultBranch) {
return {
@ -754,6 +760,8 @@ export interface ApplicationsReduxState {
importingApplication: boolean;
importedApplication: unknown;
isImportAppModalOpen: boolean;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
workspaceIdForImport: any;
pageIdForImport: string;
isDatasourceConfigForImportFetched?: boolean;

View File

@ -124,6 +124,8 @@ export const handlers = {
},
}),
[ReduxActionTypes.RUN_ACTION_REQUEST]: (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
state: any,
action: ReduxAction<{ id: string }>,
): QueryPaneReduxState => {
@ -142,6 +144,8 @@ export const handlers = {
},
[ReduxActionTypes.RUN_ACTION_CANCELLED]: (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
state: any,
action: ReduxAction<{ id: string }>,
) => {
@ -155,6 +159,8 @@ export const handlers = {
},
[ReduxActionTypes.RUN_ACTION_SUCCESS]: (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
state: any,
action: ReduxAction<{ [id: string]: ActionResponse }>,
) => {
@ -169,6 +175,8 @@ export const handlers = {
};
},
[ReduxActionErrorTypes.RUN_ACTION_ERROR]: (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
state: any,
action: ReduxAction<{ id: string; error: Error }>,
) => {

View File

@ -19,7 +19,11 @@ export interface WorkspaceReduxState {
isFetchingEntities: boolean;
isDeletingWorkspace: boolean;
};
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
workspaceRoles: any;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
searchEntities: any;
}
@ -125,6 +129,8 @@ export const handlers = {
},
[ReduxActionTypes.SEARCH_WORKSPACE_ENTITIES_SUCCESS]: (
state: WorkspaceReduxState,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
action: ReduxAction<any>,
) => {
return {

View File

@ -62,6 +62,8 @@ export function* executeActionTriggers(
trigger: ActionDescription,
eventType: EventType,
triggerMeta: TriggerMeta,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): any {
// when called via a promise, a trigger can return some value to be used in .then
let response: unknown[] = [];
@ -132,6 +134,8 @@ export function* executeActionTriggers(
}
// This function gets called when a user clicks on a button on the canvas UI
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function* executeAppAction(payload: ExecuteTriggerPayload): any {
const {
callbackData,

View File

@ -17,6 +17,8 @@ import {
jest.mock("ce/api/JSActionAPI");
jest.mock("api/ActionAPI");
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const successResponse = <T = any>(data: T) => {
return {
responseMeta: {
@ -34,6 +36,8 @@ describe("updateActionAPICall", () => {
});
it("should call ActionAPI.updateAction and return the response", async () => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const dispatchedActions: any[] = [];
const action = PostgresFactory.build();
@ -54,6 +58,8 @@ describe("updateActionAPICall", () => {
});
it("should throw an error when ActionAPI.updateAction fails", async () => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const dispatchedActions: any[] = [];
const action = PostgresFactory.build();
const error = new Error("Some error");
@ -82,6 +88,8 @@ describe("updateJSCollectionAPICall", () => {
});
it("should call JSActionAPI.updateJSCollection and return the response", async () => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const dispatchedActions: any[] = [];
const jsCollection = JSObjectFactory.build();
const response = successResponse(jsCollection);
@ -101,6 +109,8 @@ describe("updateJSCollectionAPICall", () => {
});
it("should throw an error when JSActionAPI.updateJSCollection fails", async () => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const dispatchedActions: any[] = [];
const jsCollection = JSObjectFactory.build();
const error = new Error("Some error");

View File

@ -308,6 +308,8 @@ export function* fetchAppAndPagesSaga(
}
}
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function* handleFetchApplicationError(error: any) {
const currentUser: User = yield select(getCurrentUser);
if (
@ -526,7 +528,11 @@ export function* createApplicationSaga(
icon: IconNames;
color: AppColorCode;
workspaceId: string;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
resolve: any;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
reject: any;
}>,
) {

View File

@ -516,6 +516,8 @@ export function* fetchStoredTestPayloadsSaga(collections: JSCollection[]) {
yield getAllActionTestPayloads();
if (!!storedPayloads && collections.length > 0) {
for (const collection of collections) {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const testPayloadForCollection: Record<string, any> = {};
let hasStoredPayload = false;
for (const action of collection.actions) {

View File

@ -438,7 +438,8 @@ export function* savePageSaga(action: ReduxAction<{ isRetry?: boolean }>) {
applicationId: string;
pageId: string;
layoutId: string;
}
} // TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
| undefined = yield select(getEditorConfigs) as any;
if (!editorConfigs) return;
@ -599,6 +600,8 @@ export function getLayoutSavePayload(
widgets: {
[widgetId: string]: FlattenedWidgetProps;
},
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
editorConfigs: any,
) {
const nestedDSL = nestDSL(widgets, Object.keys(widgets)[0]);
@ -961,6 +964,8 @@ export function* updateWidgetNameSaga(
// If we're trying to update the name of a tab in the TABS_WIDGET
if (tabsObj !== undefined) {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const tabs: any = Object.values(tabsObj);
// Get all canvas widgets
const stateWidgets: CanvasWidgetsReduxState = yield select(getWidgets);
@ -978,6 +983,8 @@ export function* updateWidgetNameSaga(
const parent = { ...widgets[parentId] };
// Update the tabs property of the parent tabs widget
const tabToChange = tabs.find(
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(each: any) => each.widgetId === action.payload.id,
);
const updatedTab = {
@ -1164,6 +1171,8 @@ export function* populatePageDSLsSaga(action?: {
return call(fetchPageDSLSaga, pageId);
}
const { data } = pagesWithMigratedDsl;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const v1PageDSL = data?.find?.((v: any) => v?.id === pageId);
return call(fetchPageDSLSaga, pageId, {
...pagesWithMigratedDsl,
@ -1226,6 +1235,8 @@ export function* generateTemplatePageSaga(
const request: GenerateTemplatePageRequest = action.payload;
// if pageId is available in request, it will just update that page else it will generate new page.
const response: ApiResponse<{
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
page: any;
successImageUrl: string;
successMessage: string;

View File

@ -73,6 +73,8 @@ export function* FetchAdminSettingsErrorSaga() {
export function* SaveAdminSettingsSaga(
action: ReduxAction<{
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
settings: Record<string, any>;
needsRestart: boolean;
}>,

View File

@ -401,6 +401,8 @@ export function* deleteWorkspaceLogoSaga(action: ReduxAction<{ id: string }>) {
}
}
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function* searchWorkspaceEntitiesSaga(action: ReduxAction<any>) {
try {
const response: SearchApiResponse = yield call(

View File

@ -29,6 +29,8 @@ export function* fetchCurrentTenantConfigSaga(action?: {
const isValidResponse: boolean = yield validateResponse(response);
if (isValidResponse) {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const data: any = response.data;
yield put({
type: ReduxActionTypes.FETCH_CURRENT_TENANT_CONFIG_SUCCESS,
@ -71,6 +73,8 @@ export function* updateTenantConfigSaga(
const isValidResponse: boolean = yield validateResponse(response);
if (isValidResponse) {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const payload = response.data as any;
if (hasSingleSessionUserSetting || hasShowRolesAndGroupsSetting) {

View File

@ -337,6 +337,8 @@ interface InviteUserPayload {
permissionGroupId: string;
}
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function* inviteUser(payload: InviteUserPayload, reject: any) {
const response: ApiResponse = yield callAPI(UserApi.inviteUser, payload);
const isValidResponse: boolean = yield validateResponse(response);
@ -533,6 +535,8 @@ export function* updatePhoto(
show: true,
error: {
message:
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(error as any).message ??
createMessage(USER_PROFILE_PICTURE_UPLOAD_FAILED),
},

View File

@ -379,6 +379,8 @@ export const getPluginTypeFromDatasourceId = (
return plugin.type;
};
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const getPluginForm = (state: AppState, pluginId: string): any[] => {
return state.entities.plugins.formConfigs[pluginId];
};
@ -397,10 +399,14 @@ export const getIsDatasourceTesting = (state: AppState): boolean => {
return state.entities.datasources.isTesting;
};
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const getEditorConfig = (state: AppState, pluginId: string): any[] => {
return state.entities.plugins.editorConfigs[pluginId];
};
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const getSettingConfig = (state: AppState, pluginId: string): any[] => {
return state.entities.plugins.settingConfigs[pluginId];
};
@ -569,6 +575,8 @@ export const getPluginNames = createSelector(getPlugins, (plugins) => {
});
export const getPluginTemplates = createSelector(getPlugins, (plugins) => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const pluginTemplates: Record<string, any> = {};
plugins.forEach((plugin) => {
@ -579,6 +587,8 @@ export const getPluginTemplates = createSelector(getPlugins, (plugins) => {
});
export const getPluginResponseTypes = createSelector(getPlugins, (plugins) => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const pluginResponseTypes: Record<string, any> = {};
plugins.forEach((plugin) => {
@ -858,7 +868,11 @@ export const getCurrentPageWidgets = createSelector(
);
export const getParentModalId = (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
widget: any,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
pageWidgets: Record<string, any>,
) => {
let parentModalId;
@ -879,6 +893,8 @@ export const getCanvasWidgetsWithParentId = createSelector(
getCanvasWidgets,
(canvasWidgets: CanvasWidgetsReduxState) => {
return Object.entries(canvasWidgets).reduce(
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(res, [widgetId, widget]: any) => {
const parentModalId = getParentModalId(widget, canvasWidgets);
@ -896,8 +912,12 @@ export const getAllWidgetsMap = createSelector(
getPageWidgets,
(widgetsByPage) => {
return Object.entries(widgetsByPage).reduce(
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(res: any, [pageId, pageWidgets]: any) => {
const widgetsMap = Object.entries(pageWidgets.dsl).reduce(
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(res, [widgetId, widget]: any) => {
const parentModalId = getParentModalId(widget, pageWidgets);
@ -922,6 +942,8 @@ export const getAllWidgetsMap = createSelector(
export const getAllPageWidgets = createSelector(
getAllWidgetsMap,
(widgetsMap) => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return Object.entries(widgetsMap).reduce((res: any[], [, widget]: any) => {
res.push(widget);
return res;
@ -1128,7 +1150,11 @@ export const selectFilesForExplorer = createSelector(
return acc;
},
{
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
group: "" as any,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
files: [] as any,
},
);
@ -1136,6 +1162,8 @@ export const selectFilesForExplorer = createSelector(
},
);
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const getActionValidationConfig = (state: AppState, action: any) => {
const pluginId = action.pluginId;
return getActionValidationConfigFromPlugin(
@ -1162,6 +1190,8 @@ export const getAllActionValidationConfig = (state: AppState) => {
};
function getActionValidationConfigFromPlugin(
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
editorConfigs: any,
validationConfig: ActionValidationConfigMap,
): ActionValidationConfigMap {
@ -1380,9 +1410,13 @@ export const getDatasourceScopeValue = (
const configProperty = "datasourceConfiguration.authentication.scopeString";
const scopeValue = get(formData, configProperty);
const options = formConfig[0]?.children?.find(
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(child: any) => child?.configProperty === configProperty,
)?.options;
const label = options?.find(
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(option: any) => option.value === scopeValue,
)?.label;
return label;

View File

@ -4,6 +4,8 @@ import type { Module } from "@appsmith/constants/ModuleConstants";
export const getAllModules = (
state: AppState,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): Record<string, Module> | any => {};
export const getCurrentModuleId = (state: AppState) => "";

View File

@ -60,6 +60,8 @@ export const showProductRamps = (
const workspaceUsers = ui?.selectedWorkspace?.users;
if (workspaceUsers?.length) {
const workspaceUser = workspaceUsers.find(
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(user: any) => user?.username === currentUser?.username,
);
if (workspaceUser?.roles?.length) {

View File

@ -50,7 +50,11 @@ export const getRoles = createSelector(
},
);
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const getRolesForField = createSelector(getAllRoles, (roles?: any) => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return roles.map((role: any) => {
return {
id: role.id,

View File

@ -74,6 +74,8 @@ class AnalyticsUtil {
static async initializeSegment(key: string) {
const initPromise = new Promise<boolean>((resolve) => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(function init(window: any) {
const analytics = (window.analytics = window.analytics || []);
if (!analytics.initialize) {
@ -99,6 +101,8 @@ class AnalyticsUtil {
"off",
"on",
];
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
analytics.factory = function (t: any) {
return function () {
const e = Array.prototype.slice.call(arguments); //eslint-disable-line prefer-rest-params
@ -108,16 +112,22 @@ class AnalyticsUtil {
};
};
}
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
for (let t: any = 0; t < analytics.methods.length; t++) {
const e = analytics.methods[t];
analytics[e] = analytics.factory(e);
}
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
analytics.load = function (t: any, e: any) {
const n = document.createElement("script");
n.type = "text/javascript";
n.async = !0;
// Ref: https://www.notion.so/appsmith/530051a2083040b5bcec15a46121aea3
n.src = "https://a.appsmith.com/reroute/" + t + "/main.js";
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const a: any = document.getElementsByTagName("script")[0];
a.parentNode.insertBefore(n, a);
analytics._loadOptions = e;
@ -154,6 +164,8 @@ class AnalyticsUtil {
static logEvent(
eventName: EventName,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
eventData: any = {},
eventType?: AnalyticsEventType,
) {
@ -167,6 +179,8 @@ class AnalyticsUtil {
return;
}
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const windowDoc: any = window;
let finalEventData = eventData;
const userData = AnalyticsUtil.user;
@ -176,6 +190,8 @@ class AnalyticsUtil {
const { appVersion, segment } = getAppsmithConfigs();
if (userData) {
const source = getUserSource();
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let user: any = {};
if (segment.apiKey) {
user = {
@ -216,6 +232,8 @@ class AnalyticsUtil {
static identifyUser(userData: User, sendAdditionalData?: boolean) {
const { appVersion, segment, sentry, smartLook } = getAppsmithConfigs();
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const windowDoc: any = window;
const userId = userData.username;
if (windowDoc.analytics) {
@ -290,6 +308,8 @@ class AnalyticsUtil {
}
static getAnonymousId() {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const windowDoc: any = window;
const { segment } = getAppsmithConfigs();
if (windowDoc.analytics && windowDoc.analytics.user) {
@ -300,6 +320,8 @@ class AnalyticsUtil {
}
static reset() {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const windowDoc: any = window;
if (windowDoc.Intercom) {
windowDoc.Intercom("shutdown");
@ -311,6 +333,8 @@ class AnalyticsUtil {
static removeAnalytics() {
AnalyticsUtil.blockTrackEvent = false;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(window as any).analytics = undefined;
}
static setBlockErrorLogs(value: boolean) {

View File

@ -89,7 +89,7 @@ export function getActionExecutionAnalytics(
* Function to check if the browser execution is allowed for the action
* This is just for code splitting, main feature is in EE
* */
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
export function isBrowserExecutionAllowed(..._args: any[]) {
return true;
}

View File

@ -8,6 +8,8 @@ import type { User } from "constants/userConstants";
/* settings is the updated & unsaved settings on Admin settings page */
export const saveAllowed = (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
settings: any,
isFormLoginEnabled: boolean,
socialLoginList: string[],
@ -32,7 +34,8 @@ export const saveAllowed = (
/* get default admin settings path */
export const getDefaultAdminSettingsPath = (
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
{ isSuperUser, tenantPermissions: any = [] }: Record<string, any>,
): string => {
return ADMIN_SETTINGS_CATEGORY_DEFAULT_PATH;

View File

@ -278,6 +278,8 @@ export const GLOBAL_FUNCTIONS = {
},
};
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const ternDocsInfo: Record<string, any> = {
showAlert: {
exampleArgs: [

View File

@ -12,7 +12,11 @@ import {
import { Mutex } from "async-mutex";
import { Request as NFRequest, Response as NFResponse } from "node-fetch";
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(global as any).fetch = jest.fn() as jest.Mock;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(global as any).caches = {
open: jest.fn(),
delete: jest.fn(),
@ -304,6 +308,8 @@ describe("serviceWorkerUtils", () => {
describe("getConsolidatedApiPrefetchRequest", () => {
beforeAll(() => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(global as any).Request = NFRequest;
});
@ -421,6 +427,8 @@ describe("serviceWorkerUtils", () => {
describe("PrefetchApiService", () => {
let prefetchApiService: PrefetchApiService;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let mockCache: any;
beforeEach(() => {
@ -430,8 +438,14 @@ describe("serviceWorkerUtils", () => {
match: jest.fn(),
delete: jest.fn(),
};
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(global as any).caches.open.mockResolvedValue(mockCache);
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(global as any).Request = NFRequest;
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(global as any).Response = NFResponse;
});
@ -546,6 +560,8 @@ describe("serviceWorkerUtils", () => {
statusText: "OK",
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(global as any).fetch.mockResolvedValue(response);
const acquireSpy = jest.spyOn(Mutex.prototype, "acquire");
@ -554,6 +570,8 @@ describe("serviceWorkerUtils", () => {
await prefetchApiService.cacheApi(request);
expect(acquireSpy).toHaveBeenCalled();
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
expect((global as any).fetch).toHaveBeenCalledWith(request);
expect(mockCache.put).toHaveBeenCalledWith(
request,
@ -569,6 +587,8 @@ describe("serviceWorkerUtils", () => {
const request = new Request("https://app.appsmith.com", {
method: "GET",
});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(global as any).fetch.mockRejectedValue(new Error("Fetch error"));
const acquireSpy = jest.spyOn(Mutex.prototype, "acquire");

View File

@ -24,8 +24,12 @@ export const redirectUserAfterSignup = (
redirectUrl: string,
shouldEnableFirstTimeUserOnboarding: string | null,
_validLicense?: boolean,
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
dispatch?: any,
isEnabledForCreateNew?: boolean, // is Enabled for only non-invited users
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): any => {
if (redirectUrl) {
try {

View File

@ -118,6 +118,8 @@ export const addEntityFunctionsToEvalContext = (
}
};
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const addPlatformFunctionsToEvalContext = (context: any) => {
for (const fnDef of getPlatformFunctions()) {
addFn(context, fnDef.name, fnDef.fn.bind(context));

View File

@ -10,6 +10,8 @@ export type ActionDescriptionWithExecutionType = ActionDescription & {
};
export type ActionDispatcherWithExecutionType = (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
...args: any[]
) => ActionDescriptionWithExecutionType;

View File

@ -344,6 +344,8 @@ describe("3. makeParentsDependOnChildren", () => {
describe("4. translateDiffEvent", () => {
it("1. noop when diff path does not exist", () => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const noDiffPath: Diff<any, any> = {
kind: "E",
lhs: undefined,
@ -359,6 +361,8 @@ describe("4. translateDiffEvent", () => {
});
});
it("2. translates new and delete events", () => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const diffs: Diff<any, any>[] = [
{
kind: "N",
@ -430,6 +434,8 @@ describe("4. translateDiffEvent", () => {
});
it("3. properly categorises the edit events", () => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const diffs: Diff<any, any>[] = [
{
kind: "E",
@ -459,6 +465,8 @@ describe("4. translateDiffEvent", () => {
// cyclic dependency case
const lhs = new String("() => {}");
_.set(lhs, "data", {});
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const diffs: Diff<any, any>[] = [
{
kind: "E",
@ -492,6 +500,8 @@ describe("4. translateDiffEvent", () => {
});
it("5. lists array accessors when object is replaced by an array", () => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const diffs: Diff<any, any>[] = [
{
kind: "E",
@ -524,6 +534,8 @@ describe("4. translateDiffEvent", () => {
});
it("6. lists array accessors when array is replaced by an object", () => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const diffs: Diff<any, any>[] = [
{
kind: "E",
@ -556,6 +568,8 @@ describe("4. translateDiffEvent", () => {
});
it("7. deletes member expressions when Array changes to string", () => {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const diffs: Diff<any, any>[] = [
{
kind: "E",

View File

@ -135,6 +135,8 @@ const isUninterestingChangeForDependencyUpdate = (path: string) => {
};
export const translateDiffEventToDataTreeDiffEvent = (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
difference: Diff<any, any>,
unEvalDataTree: DataTree,
): DataTreeDiff | DataTreeDiff[] => {
@ -427,13 +429,19 @@ export function isDataTreeEntity(entity: unknown) {
return !!entity && typeof entity === "object" && "ENTITY_TYPE" in entity;
}
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const serialiseToBigInt = (value: any) =>
JSON.stringify(value, (_, v) => (typeof v === "bigint" ? v.toString() : v));
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const removeFunctionsAndSerialzeBigInt = (value: any) =>
JSON.parse(serialiseToBigInt(value));
// We need to remove functions from data tree to avoid any unexpected identifier while JSON parsing
// Check issue https://github.com/appsmithorg/appsmith/issues/719
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const removeFunctions = (value: any) => {
if (_.isFunction(value)) {
return "Function call";
@ -506,6 +514,8 @@ export const getImmediateParentsOfPropertyPaths = (
};
export const getAllPaths = (
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
records: any,
curKey = "",
result: Record<string, true> = {},

View File

@ -10,6 +10,8 @@ function getJSFunctionsForEntity({
jsObjectName: string;
jsObject: JSActionEntity;
}) {
// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const jsObjectFunction: Record<string, any> = {};
const resolvedFunctions = JSObjectCollection.getResolvedFunctions();
const resolvedObject = Object.assign({}, resolvedFunctions[jsObjectName]);

Some files were not shown because too many files have changed in this diff Show More