From c22ed0473336dbfd7fb07876a0d13291ca17f9e2 Mon Sep 17 00:00:00 2001 From: Scott Wilson Date: Wed, 18 Dec 2024 21:30:36 -0800 Subject: [PATCH] fix: correct imports to use alias --- .../app-connection-routers/app-connection-router.ts | 4 ++-- .../apps/aws-connection-router.ts | 5 ++--- .../apps/github-connection-router.ts | 5 ++--- .../src/services/app-connection/app-connection-fns.ts | 11 +++++------ 4 files changed, 11 insertions(+), 14 deletions(-) diff --git a/backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts b/backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts index 63cfaafcd..d18639786 100644 --- a/backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts +++ b/backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts @@ -1,10 +1,10 @@ -import { AwsConnectionListItemSchema, SanitizedAwsConnectionSchema } from "src/services/app-connection/aws"; -import { GitHubConnectionListItemSchema, SanitizedGitHubConnectionSchema } from "src/services/app-connection/github"; import { z } from "zod"; import { EventType } from "@app/ee/services/audit-log/audit-log-types"; import { readLimit } from "@app/server/config/rateLimiter"; import { verifyAuth } from "@app/server/plugins/auth/verify-auth"; +import { AwsConnectionListItemSchema, SanitizedAwsConnectionSchema } from "@app/services/app-connection/aws"; +import { GitHubConnectionListItemSchema, SanitizedGitHubConnectionSchema } from "@app/services/app-connection/github"; import { AuthMode } from "@app/services/auth/auth-type"; // can't use discriminated due to multiple schemas for certain apps diff --git a/backend/src/server/routes/v1/app-connection-routers/apps/aws-connection-router.ts b/backend/src/server/routes/v1/app-connection-routers/apps/aws-connection-router.ts index 4bd232afb..189ca4fbd 100644 --- a/backend/src/server/routes/v1/app-connection-routers/apps/aws-connection-router.ts +++ b/backend/src/server/routes/v1/app-connection-routers/apps/aws-connection-router.ts @@ -1,10 +1,9 @@ +import { AppConnection } from "@app/services/app-connection/app-connection-enums"; import { CreateAwsConnectionSchema, SanitizedAwsConnectionSchema, UpdateAwsConnectionSchema -} from "src/services/app-connection/aws"; - -import { AppConnection } from "@app/services/app-connection/app-connection-enums"; +} from "@app/services/app-connection/aws"; import { registerAppConnectionEndpoints } from "./app-connection-endpoints"; diff --git a/backend/src/server/routes/v1/app-connection-routers/apps/github-connection-router.ts b/backend/src/server/routes/v1/app-connection-routers/apps/github-connection-router.ts index 71de42427..273d4b9e1 100644 --- a/backend/src/server/routes/v1/app-connection-routers/apps/github-connection-router.ts +++ b/backend/src/server/routes/v1/app-connection-routers/apps/github-connection-router.ts @@ -1,10 +1,9 @@ +import { AppConnection } from "@app/services/app-connection/app-connection-enums"; import { CreateGitHubConnectionSchema, SanitizedGitHubConnectionSchema, UpdateGitHubConnectionSchema -} from "src/services/app-connection/github"; - -import { AppConnection } from "@app/services/app-connection/app-connection-enums"; +} from "@app/services/app-connection/github"; import { registerAppConnectionEndpoints } from "./app-connection-endpoints"; diff --git a/backend/src/services/app-connection/app-connection-fns.ts b/backend/src/services/app-connection/app-connection-fns.ts index 4e0a7e3fa..787839cf7 100644 --- a/backend/src/services/app-connection/app-connection-fns.ts +++ b/backend/src/services/app-connection/app-connection-fns.ts @@ -1,17 +1,16 @@ +import { AppConnection } from "@app/services/app-connection/app-connection-enums"; +import { TAppConnectionServiceFactoryDep } from "@app/services/app-connection/app-connection-service"; +import { TAppConnection, TAppConnectionConfig } from "@app/services/app-connection/app-connection-types"; import { AwsConnectionMethod, getAwsAppConnectionListItem, validateAwsConnectionCredentials -} from "src/services/app-connection/aws"; +} from "@app/services/app-connection/aws"; import { getGitHubConnectionListItem, GitHubConnectionMethod, validateGitHubConnectionCredentials -} from "src/services/app-connection/github"; - -import { AppConnection } from "@app/services/app-connection/app-connection-enums"; -import { TAppConnectionServiceFactoryDep } from "@app/services/app-connection/app-connection-service"; -import { TAppConnection, TAppConnectionConfig } from "@app/services/app-connection/app-connection-types"; +} from "@app/services/app-connection/github"; import { KmsDataKey } from "@app/services/kms/kms-types"; export const listAppConnectionOptions = () => {