diff --git a/ui/apps/platform/src/Containers/Integrations/IntegrationForm/Forms/GenericWebhookIntegrationForm.tsx b/ui/apps/platform/src/Containers/Integrations/IntegrationForm/Forms/GenericWebhookIntegrationForm.tsx index 75f11d34868c8..823a62538c1fa 100644 --- a/ui/apps/platform/src/Containers/Integrations/IntegrationForm/Forms/GenericWebhookIntegrationForm.tsx +++ b/ui/apps/platform/src/Containers/Integrations/IntegrationForm/Forms/GenericWebhookIntegrationForm.tsx @@ -15,39 +15,18 @@ import { PlusCircleIcon, TrashIcon } from '@patternfly/react-icons'; import * as yup from 'yup'; import { FieldArray, FormikProvider } from 'formik'; -import { NotifierIntegrationBase } from 'services/NotifierIntegrationsService'; - import usePageState from 'Containers/Integrations/hooks/usePageState'; import FormMessage from 'Components/PatternFly/FormMessage'; import FormTestButton from 'Components/PatternFly/FormTestButton'; import FormSaveButton from 'Components/PatternFly/FormSaveButton'; import FormCancelButton from 'Components/PatternFly/FormCancelButton'; +import { GenericNotifierIntegration as GenericWebhookIntegration } from 'types/notifier.proto'; import useIntegrationForm from '../useIntegrationForm'; import { IntegrationFormProps } from '../integrationFormTypes'; import IntegrationFormActions from '../IntegrationFormActions'; import FormLabelGroup from '../FormLabelGroup'; -export type GenericWebhookIntegration = { - generic: { - endpoint: string; - skipTlsVerify: boolean; - auditLoggingEnabled: boolean; - caCert: string; - username: string; - password: string; - headers: { - key: string; - value: string; - }[]; - extraFields: { - key: string; - value: string; - }[]; - }; - type: 'generic'; -} & NotifierIntegrationBase; - export type GenericWebhookIntegrationFormValues = { notifier: GenericWebhookIntegration; updatePassword: boolean; @@ -105,7 +84,7 @@ export const defaultValues: GenericWebhookIntegrationFormValues = { name: '', generic: { endpoint: '', - skipTlsVerify: false, + skipTLSVerify: false, auditLoggingEnabled: false, caCert: '', username: '', @@ -207,13 +186,13 @@ function GenericWebhookIntegrationForm({