Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

lint issues

Matheus Nogueiraba4a6fb4b46c
diff --git a/backend/src/ee/services/dynamic-secret/dynamic-secret-service.ts b/backend/src/ee/services/dynamic-secret/dynamic-secret-service.ts
index ba399f9097..19ebff01b8 100644
--- a/backend/src/ee/services/dynamic-secret/dynamic-secret-service.ts
+++ b/backend/src/ee/services/dynamic-secret/dynamic-secret-service.ts
@@ -956,10 +956,7 @@ export const dynamicSecretServiceFactory = ({
clientSecret,
orgId
}) => {
- return IbmApiConnectProvider().fetchOrganizationCatalogs(
- { instanceUrl, apiKey, clientId, clientSecret },
- orgId
- );
+ return IbmApiConnectProvider().fetchOrganizationCatalogs({ instanceUrl, apiKey, clientId, clientSecret }, orgId);
};
const fetchIbmApiConnectOrgApps: TDynamicSecretServiceFactory["fetchIbmApiConnectOrgApps"] = async ({
diff --git a/backend/src/ee/services/dynamic-secret/providers/ibm-api-connect.ts b/backend/src/ee/services/dynamic-secret/providers/ibm-api-connect.ts
index 84e143b8f6..1a15470f6f 100644
--- a/backend/src/ee/services/dynamic-secret/providers/ibm-api-connect.ts
+++ b/backend/src/ee/services/dynamic-secret/providers/ibm-api-connect.ts
@@ -1,5 +1,4 @@
import { request } from "@app/lib/config/request";
-
import { blockLocalAndPrivateIpAddresses } from "@app/lib/validator/validate-url";
import { DynamicSecretIbmApiConnectSchema, TDynamicProviderFns } from "./models";
@@ -9,30 +8,30 @@ export type TIbmApiConnectBaseCredentials = {
clientSecret: string;
instanceUrl: string;
apiKey: string;
-}
+};
type TIbmApiConnectProviderInputs = TIbmApiConnectBaseCredentials & {
orgId: string;
catalogId: string;
consumerOrgId: string;
appId: string;
-}
+};
export type TApiConnectResource = {
name: string;
title: string;
id: string;
-}
+};
export type TApiConnectApp = TApiConnectResource & {
consumerOrgId: string;
-}
+};
type TIbmApiConnectApplicationCredential = {
id: string;
clientId: string;
clientSecret: string;
-}
+};
const $getAccessToken = async (credentials: TIbmApiConnectBaseCredentials): Promise<string> => {
const response = await request.post<{ access_token: string }>(
@@ -53,9 +52,7 @@ const $getAccessToken = async (credentials: TIbmApiConnectBaseCredentials): Prom
return response.data.access_token;
};
-const $fetchOrganizations = async (
- credentials: TIbmApiConnectBaseCredentials
-): Promise<TApiConnectResource[]> => {
+const $fetchOrganizations = async (credentials: TIbmApiConnectBaseCredentials): Promise<TApiConnectResource[]> => {
const accessToken = await $getAccessToken(credentials);
const url = `${credentials.instanceUrl}/api/orgs`;
const response = await request.get<{
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/IbmApiConnectInputForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/IbmApiConnectInputForm.tsx
index 4e611a346c..3e0aaea413 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/IbmApiConnectInputForm.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/IbmApiConnectInputForm.tsx
@@ -1,4 +1,5 @@
import { Controller, useForm } from "react-hook-form";
+import { SingleValue } from "react-select";
import {
faCheckCircle,
faCircleNotch,
@@ -11,8 +12,6 @@ import { z } from "zod";
import { TtlFormLabel } from "@app/components/features";
import { OrgPermissionCan } from "@app/components/permissions";
-import { SingleValue } from "react-select";
-
import { Button, FilterableSelect, FormControl, Input, SecretInput } from "@app/components/v2";
import { Tooltip } from "@app/components/v2/Tooltip";
import { GatewayPicker } from "@app/components/v3/platform/GatewayPicker";