From 88e609cb661ae65d0a4b1adad264e0039cd334e0 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard <62331820+DanielHougaard@users.noreply.github.com> Date: Wed, 20 Mar 2024 12:55:40 +0100 Subject: [PATCH] Feat: New types for imported folders --- frontend/src/hooks/api/secretFolders/types.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/frontend/src/hooks/api/secretFolders/types.ts b/frontend/src/hooks/api/secretFolders/types.ts index eac202389..e676fcc8e 100644 --- a/frontend/src/hooks/api/secretFolders/types.ts +++ b/frontend/src/hooks/api/secretFolders/types.ts @@ -3,6 +3,24 @@ export type TSecretFolder = { name: string; }; +export type TImportedSecretFolder = { + id: string; + folderId: string; + importEnv: { + id: string; + name: string; + slug: string; + }; + importPath: string; + + // ... It got more fields, but we won't need them. +}; + +export type TFetchProjectFoldersResponse = { + folders: TSecretFolder[]; + importedFolders: TImportedSecretFolder[]; +}; + export type TGetProjectFoldersDTO = { projectId: string; environment: string;