Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Aug 30, 2024
1 parent 9b0a650 commit 5ee3b12
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// <reference types="@kbn/ambient-ftr-types"/>

import expect from '@kbn/expect';
import { RuleResponse } from '@kbn/alerting-plugin/common/routes/rule/response/types/v1';
import type { RuleResponse } from '@kbn/alerting-plugin/server/routes/schemas/rule/response/types/v1';
import moment from 'moment';
import { apm, timerange } from '@kbn/apm-synthtrace-client';
import { MessageRole } from '@kbn/observability-ai-assistant-plugin/common';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import expect from '@kbn/expect';
import moment from 'moment';
import { apm, timerange, serviceMap } from '@kbn/apm-synthtrace-client';
import { RuleResponse } from '@kbn/alerting-plugin/common/routes/rule/response/types/v1';
import type { RuleResponse } from '@kbn/alerting-plugin/server/routes/schemas/rule/response/types/v1';
import { MessageRole } from '@kbn/observability-ai-assistant-plugin/common';
import { chatClient, kibanaClient, synthtraceEsClients } from '../../services';
import { apmErrorCountAIAssistant } from '../../alert_templates/templates';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { v4 } from 'uuid';
import type {
CreateRuleRequestBody,
CreateRuleResponse,
} from '@kbn/alerting-plugin/common/routes/rule/apis/create';
} from '@kbn/alerting-plugin/server/routes/schemas/rule/apis/create';
import { useKibana } from '../utils/kibana_react';

export function useCreateRule<Params extends RuleTypeParams = never>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import { CreateSLOInput } from '@kbn/slo-schema';
import { i18n } from '@kbn/i18n';
import { CreateRuleRequestBody } from '@kbn/alerting-plugin/common/routes/rule/apis/create';
import type { CreateRuleRequestBody } from '@kbn/alerting-plugin/server/routes/schemas/rule/apis/create';
import { BURN_RATE_DEFAULTS } from '../../../components/burn_rate_rule_editor/constants';
import { createNewWindow } from '../../../components/burn_rate_rule_editor/windows';
import { BurnRateRuleParams } from '../../../typings';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import type { ScheduleBackfillResponseBody } from '@kbn/alerting-plugin/common/routes/backfill/apis/schedule';
import type { ScheduleBackfillResponseBody } from '@kbn/alerting-plugin/server/routes/schemas/backfill/apis/schedule';
import { scheduleRuleRunMock } from '../../logic/__mocks__/mock';

import type { ScheduleBackfillProps } from '../../types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
INTERNAL_ALERTING_BACKFILL_FIND_API_PATH,
INTERNAL_ALERTING_BACKFILL_SCHEDULE_API_PATH,
} from '@kbn/alerting-plugin/common';
import type { FindBackfillResponseBody } from '@kbn/alerting-plugin/common/routes/backfill/apis/find';
import type { ScheduleBackfillResponseBody } from '@kbn/alerting-plugin/common/routes/backfill/apis/schedule';
import type { FindBackfillResponseBody } from '@kbn/alerting-plugin/server/routes/schemas/backfill/apis/find';
import type { ScheduleBackfillResponseBody } from '@kbn/alerting-plugin/server/routes/schemas/backfill/apis/schedule';
import { KibanaServices } from '../../../common/lib/kibana';
import type { ScheduleBackfillProps } from '../types';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import type { UseQueryOptions } from '@tanstack/react-query';
import { useQuery, useQueryClient } from '@tanstack/react-query';
import type { FindBackfillResponseBody } from '@kbn/alerting-plugin/common/routes/backfill/apis/find';
import type { FindBackfillResponseBody } from '@kbn/alerting-plugin/server/routes/schemas/backfill/apis/find';
import { useCallback } from 'react';
import { findBackfillsForRules } from '../api';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import type { ScheduleBackfillResponseBody } from '@kbn/alerting-plugin/common/routes/backfill/apis/schedule';
import type { ScheduleBackfillResponseBody } from '@kbn/alerting-plugin/server/routes/schemas/backfill/apis/schedule';

export const scheduleRuleRunMock: ScheduleBackfillResponseBody = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import type { FindBackfillResponseBody } from '@kbn/alerting-plugin/common/routes/backfill/apis/find';
import type { FindBackfillResponseBody } from '@kbn/alerting-plugin/server/routes/schemas/backfill/apis/find';

export type Backfill = FindBackfillResponseBody['data']['0'];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/
import { AsApiContract } from '@kbn/actions-plugin/common';
import { AggregateRulesResponseBody } from '@kbn/alerting-plugin/common/routes/rule/apis/aggregate';
import type { AggregateRulesResponseBody } from '@kbn/alerting-plugin/server/routes/schemas/rule/apis/aggregate';
import { INTERNAL_BASE_ALERTING_API_PATH } from '../../constants';
import { mapFiltersToKql } from './map_filters_to_kql';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import { HttpSetup } from '@kbn/core/public';
import { RewriteRequestCase } from '@kbn/actions-plugin/common';
import { AggregateRulesResponseBody } from '@kbn/alerting-plugin/common/routes/rule/apis/aggregate';
import type { AggregateRulesResponseBody } from '@kbn/alerting-plugin/server/routes/schemas/rule/apis/aggregate';
import { RuleStatus } from '../../../types';

export interface AggregateRulesResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { AggregateRulesResponseBody } from '@kbn/alerting-plugin/common/routes/rule/apis/aggregate';
import type { AggregateRulesResponseBody } from '@kbn/alerting-plugin/server/routes/schemas/rule/apis/aggregate';
import { INTERNAL_BASE_ALERTING_API_PATH } from '../../constants';
import {
AggregateRulesResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
import type SuperTest from 'supertest';
import { INTERNAL_BASE_ALERTING_API_PATH } from '@kbn/alerting-plugin/common';
import { ScheduleBackfillResponse } from '@kbn/alerting-plugin/common/routes/backfill/apis/schedule';
import type { ScheduleBackfillResponse } from '@kbn/alerting-plugin/server/routes/schemas/backfill/apis/schedule';
import { routeWithNamespace } from '../route_with_namespace';

const BACKFILL_RULE_URL = `${INTERNAL_BASE_ALERTING_API_PATH}/rules/backfill`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import expect from 'expect';

import moment from 'moment';
import { BackfillResponse } from '@kbn/alerting-plugin/common/routes/backfill/response';
import type { BackfillResponse } from '@kbn/alerting-plugin/server/routes/schemas/backfill/response';
import { FtrProviderContext } from '../../../../../ftr_provider_context';
import { getCustomQueryRuleParams, scheduleRuleRun } from '../../../utils';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import {
INTERNAL_ALERTING_BACKFILL_API_PATH,
INTERNAL_ALERTING_BACKFILL_FIND_API_PATH,
} from '@kbn/alerting-plugin/common';
import { ScheduleBackfillResponseBody } from '@kbn/alerting-plugin/common/routes/backfill/apis/schedule';
import { FindBackfillResponse } from '@kbn/alerting-plugin/common/routes/backfill/apis/find';
import type { ScheduleBackfillResponseBody } from '@kbn/alerting-plugin/server/routes/schemas/backfill/apis/schedule';
import type { FindBackfillResponse } from '@kbn/alerting-plugin/server/routes/schemas/backfill/apis/find';
import { waitFor } from '../../../../../common/utils/security_solution';
export interface TimeRange {
startDate: moment.Moment;
Expand Down

0 comments on commit 5ee3b12

Please sign in to comment.