linter fixes

This commit is contained in:
Your Name
2025-10-22 11:06:53 -03:00
parent c3899a0e81
commit 9eec95b427
7 changed files with 9 additions and 6 deletions
@@ -3,4 +3,3 @@ export * from "./northflank-connection-fns";
export * from "./northflank-connection-schemas"; export * from "./northflank-connection-schemas";
export * from "./northflank-connection-service"; export * from "./northflank-connection-service";
export * from "./northflank-connection-types"; export * from "./northflank-connection-types";
@@ -1,4 +1,3 @@
export enum NorthflankConnectionMethod { export enum NorthflankConnectionMethod {
ApiToken = "api-token" ApiToken = "api-token"
} }
@@ -28,4 +28,3 @@ export type TNorthflankProject = {
id: string; id: string;
name: string; name: string;
}; };
@@ -1,18 +1,22 @@
import { logger } from "@app/lib/logger";
import { TSecretMap, TSecretSyncWithCredentials } from "@app/services/secret-sync/secret-sync-types"; import { TSecretMap, TSecretSyncWithCredentials } from "@app/services/secret-sync/secret-sync-types";
export const NorthflankSyncFns = { export const NorthflankSyncFns = {
syncSecrets: async (secretSync: TSecretSyncWithCredentials, secretMap: TSecretMap): Promise<void> => { syncSecrets: async (secretSync: TSecretSyncWithCredentials, secretMap: TSecretMap): Promise<void> => {
// TODO: Will be implemented in the follow up PR // TODO: Will be implemented in the follow up PR
logger.error({ secretSync, secretMap }, "Northflank secret sync not yet implemented");
throw new Error("Northflank secret sync not yet implemented"); throw new Error("Northflank secret sync not yet implemented");
}, },
getSecrets: async (secretSync: TSecretSyncWithCredentials): Promise<TSecretMap> => { getSecrets: async (secretSync: TSecretSyncWithCredentials): Promise<TSecretMap> => {
// TODO: Will be implemented in the follow up PR // TODO: Will be implemented in the follow up PR
logger.error({ secretSync }, "Northflank secret retrieval not yet implemented");
throw new Error("Northflank secret retrieval not yet implemented"); throw new Error("Northflank secret retrieval not yet implemented");
}, },
removeSecrets: async (secretSync: TSecretSyncWithCredentials, secretMap: TSecretMap): Promise<void> => { removeSecrets: async (secretSync: TSecretSyncWithCredentials, secretMap: TSecretMap): Promise<void> => {
// TODO: Will be implemented in the follow up PR // TODO: Will be implemented in the follow up PR
logger.error({ secretSync, secretMap }, "Northflank secret removal not yet implemented");
throw new Error("Northflank secret removal not yet implemented"); throw new Error("Northflank secret removal not yet implemented");
} }
}; };
@@ -1,6 +1,5 @@
import { z } from "zod"; import { z } from "zod";
import { SecretSyncs } from "@app/lib/api-docs";
import { AppConnection } from "@app/services/app-connection/app-connection-enums"; import { AppConnection } from "@app/services/app-connection/app-connection-enums";
import { SecretSync } from "@app/services/secret-sync/secret-sync-enums"; import { SecretSync } from "@app/services/secret-sync/secret-sync-enums";
import { import {
@@ -2,7 +2,11 @@ import { z } from "zod";
import { TNorthflankConnection } from "@app/services/app-connection/northflank"; import { TNorthflankConnection } from "@app/services/app-connection/northflank";
import { CreateNorthflankSyncSchema, NorthflankSyncListItemSchema, NorthflankSyncSchema } from "./northflank-sync-schemas"; import {
CreateNorthflankSyncSchema,
NorthflankSyncListItemSchema,
NorthflankSyncSchema
} from "./northflank-sync-schemas";
export type TNorthflankSyncListItem = z.infer<typeof NorthflankSyncListItemSchema>; export type TNorthflankSyncListItem = z.infer<typeof NorthflankSyncListItemSchema>;
@@ -11,4 +11,3 @@ export type TNorthflankConnection = TRootAppConnection & { app: AppConnection.No
apiToken: string; apiToken: string;
}; };
}; };