Added suffixes to integrations

This commit is contained in:
Vladyslav Matsiiako
2023-08-29 22:17:48 -07:00
parent 85e5822ece
commit f6be86a26b
10 changed files with 50 additions and 6 deletions
@@ -40,7 +40,8 @@ export const useCreateIntegration = () => {
owner,
path,
region,
secretPath
secretPath,
secretSuffix
}: {
integrationAuthId: string;
isActive: boolean;
@@ -55,6 +56,7 @@ export const useCreateIntegration = () => {
owner: string | null;
path: string | null;
region: string | null;
secretSuffix: string;
}) => {
const { data: { integration } } = await apiRequest.post("/api/v1/integration", {
integrationAuthId,
@@ -69,7 +71,8 @@ export const useCreateIntegration = () => {
owner,
path,
region,
secretPath
secretPath,
secretSuffix
});
return integration;
@@ -27,6 +27,7 @@ export type TIntegration = {
integration: string;
integrationAuth: string;
secretPath: string;
secretSuffix: string;
createdAt: string;
updatedAt: string;
__v: number;