feat(infisical-pg): completed secrets fetching from imports based on priority

This commit is contained in:
Akhil Mohan
2024-01-27 12:38:23 +05:30
parent b5aa6c0000
commit 6e6a1c87f2
8 changed files with 208 additions and 17 deletions
@@ -66,9 +66,9 @@ const fetchImportedSecrets = async (
"/api/v1/secret-imports/secrets",
{
params: {
workspaceId,
projectId: workspaceId,
environment,
directory
path: directory
}
}
);
@@ -1,22 +1,19 @@
import { UserWsKeyPair } from "../keys/types";
import { EncryptedSecret } from "../secrets/types";
import { WorkspaceEnv } from "../workspace/types";
export type TSecretImport = {
id: string;
folderId: string;
importPath: string;
importEnv: {
name: string;
slug: string;
id: string;
};
importEnv: WorkspaceEnv;
position: string;
createdAt: string;
updatedAt: string;
};
export type TImportedSecrets = {
environment: string;
environment: WorkspaceEnv;
secretPath: string;
folderId: string;
secrets: EncryptedSecret[];