feat: updated ui to reflect secret import and approval

This commit is contained in:
Akhil Mohan
2024-05-31 23:10:01 +05:30
committed by =
parent c9d6c5c5f7
commit 51c1487ed1
17 changed files with 103 additions and 47 deletions
@@ -220,6 +220,7 @@ export const useGetSecretApprovalRequestCount = ({
}) =>
useQuery({
queryKey: secretApprovalRequestKeys.count({ workspaceId }),
refetchInterval: 5000,
queryFn: () => fetchSecretApprovalRequestCount({ workspaceId }),
enabled: Boolean(workspaceId) && (options?.enabled ?? true)
});
@@ -44,6 +44,7 @@ export type TSecretApprovalSecChange = {
export type TSecretApprovalRequest<J extends unknown = EncryptedSecret> = {
id: string;
isReplication?: boolean;
slug: string;
createdAt: string;
committerId: string;
@@ -10,6 +10,7 @@ export type TSecretImport = {
position: string;
createdAt: string;
updatedAt: string;
isReplication?: boolean;
};
export type TGetImportedFoldersByEnvDTO = {
@@ -67,6 +67,7 @@ export const decryptSecrets = (
env: encSecret.environment,
key: secretKey,
value: secretValue,
isReplicated: encSecret.isReplicated,
tags: encSecret.tags,
comment: secretComment,
reminderRepeatDays: encSecret.secretReminderRepeatDays,
+2
View File
@@ -14,6 +14,7 @@ export type EncryptedSecret = {
secretValueIV: string;
secretValueTag: string;
__v: number;
isReplicated?: boolean;
createdAt: string;
updatedAt: string;
skipMultilineEncoding?: boolean;
@@ -31,6 +32,7 @@ export type DecryptedSecret = {
key: string;
value: string;
comment: string;
isReplicated?: boolean;
reminderRepeatDays?: number | null;
reminderNote?: string | null;
tags: WsTag[];