diff --git a/web/src/features/alerting-rule-create/ui.ts b/web/src/features/alerting-rule-create/ui.ts index b7feb8d..fc19c04 100644 --- a/web/src/features/alerting-rule-create/ui.ts +++ b/web/src/features/alerting-rule-create/ui.ts @@ -3,9 +3,8 @@ import { h, spec } from "forest"; import { $creationError, events, ruleForm } from "./model"; import { i18n } from "@/shared/lib"; import { createStore } from "effector"; -import { AlertingCondition, AlertingSeverity, Level } from "@/shared/api"; +import { AggregationType, AlertingCondition, AlertingSeverity, Level } from "@/shared/api"; import { schemaModel } from "@/entities/schema"; -import { AggregationType } from "@/shared/api/alerting-rule"; export const NewAlertingRuleForm = () => { h("form", () => { diff --git a/web/src/features/alerting-rule-edit/ui.ts b/web/src/features/alerting-rule-edit/ui.ts index 6f6c3a5..cf02dbd 100644 --- a/web/src/features/alerting-rule-edit/ui.ts +++ b/web/src/features/alerting-rule-edit/ui.ts @@ -5,7 +5,7 @@ import { i18n } from "@/shared/lib"; import { createStore } from "effector"; import { AlertingCondition, AlertingSeverity, Level } from "@/shared/api"; import { schemaModel } from "@/entities/schema"; -import { AggregationType } from "@/shared/api/alerting-rule"; +import { AggregationType } from "@/shared/api"; export const EditAlertingRuleForm = () => { h("form", () => { diff --git a/web/src/shared/api/index.ts b/web/src/shared/api/index.ts index 026be09..699fa1a 100644 --- a/web/src/shared/api/index.ts +++ b/web/src/shared/api/index.ts @@ -16,6 +16,7 @@ export { type AlertingRule, type AlertingCondition, type AlertingSeverity, + type AggregationType, type AlertingRuleToCreate, type AlertingRuleToUpdate, getRules,