feat: added tag support on create secret

This commit is contained in:
=
2024-11-08 19:16:19 +05:30
parent bf09fa33fa
commit 132c3080bb
6 changed files with 271 additions and 201 deletions
+4 -2
View File
@@ -31,7 +31,8 @@ export const useCreateSecretV3 = ({
secretKey,
secretValue,
secretComment,
skipMultilineEncoding
skipMultilineEncoding,
tagIds
}) => {
const { data } = await apiRequest.post(`/api/v3/secrets/raw/${secretKey}`, {
secretPath,
@@ -40,7 +41,8 @@ export const useCreateSecretV3 = ({
workspaceId,
secretValue,
secretComment,
skipMultilineEncoding
skipMultilineEncoding,
tagIds
});
return data;
},
+1
View File
@@ -132,6 +132,7 @@ export type TCreateSecretsV3DTO = {
workspaceId: string;
environment: string;
type: SecretType;
tagIds?: string[];
};
export type TUpdateSecretsV3DTO = {