mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
linter fixes
This commit is contained in:
@@ -3,4 +3,3 @@ export * from "./northflank-connection-fns";
|
||||
export * from "./northflank-connection-schemas";
|
||||
export * from "./northflank-connection-service";
|
||||
export * from "./northflank-connection-types";
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
export enum NorthflankConnectionMethod {
|
||||
ApiToken = "api-token"
|
||||
}
|
||||
|
||||
|
||||
@@ -28,4 +28,3 @@ export type TNorthflankProject = {
|
||||
id: string;
|
||||
name: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -1,18 +1,22 @@
|
||||
import { logger } from "@app/lib/logger";
|
||||
import { TSecretMap, TSecretSyncWithCredentials } from "@app/services/secret-sync/secret-sync-types";
|
||||
|
||||
export const NorthflankSyncFns = {
|
||||
syncSecrets: async (secretSync: TSecretSyncWithCredentials, secretMap: TSecretMap): Promise<void> => {
|
||||
// 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");
|
||||
},
|
||||
|
||||
getSecrets: async (secretSync: TSecretSyncWithCredentials): Promise<TSecretMap> => {
|
||||
// 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");
|
||||
},
|
||||
|
||||
removeSecrets: async (secretSync: TSecretSyncWithCredentials, secretMap: TSecretMap): Promise<void> => {
|
||||
// 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");
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { SecretSyncs } from "@app/lib/api-docs";
|
||||
import { AppConnection } from "@app/services/app-connection/app-connection-enums";
|
||||
import { SecretSync } from "@app/services/secret-sync/secret-sync-enums";
|
||||
import {
|
||||
|
||||
@@ -2,7 +2,11 @@ import { z } from "zod";
|
||||
|
||||
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>;
|
||||
|
||||
|
||||
@@ -11,4 +11,3 @@ export type TNorthflankConnection = TRootAppConnection & { app: AppConnection.No
|
||||
apiToken: string;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user