mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 16:52:38 +00:00
Move secretSuffix to separate metadata field
This commit is contained in:
@@ -41,7 +41,7 @@ export const useCreateIntegration = () => {
|
||||
path,
|
||||
region,
|
||||
secretPath,
|
||||
secretSuffix
|
||||
metadata
|
||||
}: {
|
||||
integrationAuthId: string;
|
||||
isActive: boolean;
|
||||
@@ -56,7 +56,9 @@ export const useCreateIntegration = () => {
|
||||
owner: string | null;
|
||||
path: string | null;
|
||||
region: string | null;
|
||||
secretSuffix: string;
|
||||
metadata?: {
|
||||
secretSuffix?: string;
|
||||
}
|
||||
}) => {
|
||||
const { data: { integration } } = await apiRequest.post("/api/v1/integration", {
|
||||
integrationAuthId,
|
||||
@@ -72,7 +74,7 @@ export const useCreateIntegration = () => {
|
||||
path,
|
||||
region,
|
||||
secretPath,
|
||||
secretSuffix
|
||||
metadata
|
||||
});
|
||||
|
||||
return integration;
|
||||
|
||||
@@ -27,8 +27,10 @@ export type TIntegration = {
|
||||
integration: string;
|
||||
integrationAuth: string;
|
||||
secretPath: string;
|
||||
secretSuffix: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
__v: number;
|
||||
metadata?: {
|
||||
secretSuffix?: string;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user