Skip to content

Commit

Permalink
move response-ops package to shared
Browse files Browse the repository at this point in the history
  • Loading branch information
adcoelho committed Jan 2, 2025
1 parent 5de214c commit 9902a63
Show file tree
Hide file tree
Showing 25 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { schema } from '@kbn/config-schema';
import { ruleParamsSchemaV1 } from '@kbn/response-ops-rule-params';
import { ruleParamsSchemaV1 } from 'src/platform/packages/shared/response-ops/rule_params';
import { adHocRunStatus } from '../../../../constants';

export const statusSchema = schema.oneOf([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { schema } from '@kbn/config-schema';
import { ruleParamsSchemaWithDefaultValueV1 } from '@kbn/response-ops-rule-params';
import { ruleParamsSchemaWithDefaultValueV1 } from 'src/platform/packages/shared/response-ops/rule_params';
import { validateDurationV1, validateHoursV1, validateTimezoneV1 } from '../../../validation';
import { notifyWhenSchemaV1, alertDelaySchemaV1 } from '../../../response';
import { alertsFilterQuerySchemaV1 } from '../../../../alerts_filter_query';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { schema } from '@kbn/config-schema';
import { ruleParamsSchemaWithDefaultValueV1 } from '@kbn/response-ops-rule-params';
import { ruleParamsSchemaWithDefaultValueV1 } from 'src/platform/packages/shared/response-ops/rule_params';
import { validateDurationV1, validateHoursV1, validateTimezoneV1 } from '../../../validation';
import { notifyWhenSchemaV1, alertDelaySchemaV1 } from '../../../response';
import { alertsFilterQuerySchemaV1 } from '../../../../alerts_filter_query';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export type {
Monitoring as MonitoringV1,
} from './types/v1';

export { ruleParamsSchemaV1 } from '@kbn/response-ops-rule-params';
export { ruleParamsSchema } from '@kbn/response-ops-rule-params';
export { ruleParamsSchemaV1 } from 'src/platform/packages/shared/response-ops/rule_params';
export { ruleParamsSchema } from 'src/platform/packages/shared/response-ops/rule_params';

export type { RuleParamsV1 } from '@kbn/response-ops-rule-params';
export type { RuleParams } from '@kbn/response-ops-rule-params';
export type { RuleParamsV1 } from 'src/platform/packages/shared/response-ops/rule_params';
export type { RuleParams } from 'src/platform/packages/shared/response-ops/rule_params';
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { schema } from '@kbn/config-schema';
import { ruleParamsSchemaV1 } from '@kbn/response-ops-rule-params';
import { ruleParamsSchemaV1 } from 'src/platform/packages/shared/response-ops/rule_params';
import { rRuleResponseSchemaV1 } from '../../../r_rule';
import { alertsFilterQuerySchemaV1 } from '../../../alerts_filter_query';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import type { TypeOf } from '@kbn/config-schema';
import { RuleParamsV1 } from '@kbn/response-ops-rule-params';
import { RuleParamsV1 } from 'src/platform/packages/shared/response-ops/rule_params';
import {
ruleResponseSchemaV1,
ruleSnoozeScheduleSchemaV1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { schema } from '@kbn/config-schema';
import { ruleParamsSchema } from '@kbn/response-ops-rule-params';
import { ruleParamsSchema } from 'src/platform/packages/shared/response-ops/rule_params';
import { adHocRunStatus } from '../../../../../common/constants';

export const statusSchema = schema.oneOf([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { schema } from '@kbn/config-schema';
import { ruleParamsSchemaWithDefaultValue } from '@kbn/response-ops-rule-params';
import { ruleParamsSchemaWithDefaultValue } from 'src/platform/packages/shared/response-ops/rule_params';
import { validateDuration } from '../../../validation';
import {
notifyWhenSchema,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { schema } from '@kbn/config-schema';
import { ruleParamsSchemaWithDefaultValue } from '@kbn/response-ops-rule-params';
import { ruleParamsSchemaWithDefaultValue } from 'src/platform/packages/shared/response-ops/rule_params';
import { validateDuration } from '../../../validation';
import {
notifyWhenSchema,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { schema } from '@kbn/config-schema';
import { ruleParamsSchema } from '@kbn/response-ops-rule-params';
import { ruleParamsSchema } from 'src/platform/packages/shared/response-ops/rule_params';
import {
ruleLastRunOutcomeValues,
ruleExecutionStatusValues,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { TypeOf } from '@kbn/config-schema';
import { ruleParamsSchema } from '@kbn/response-ops-rule-params';
import { ruleParamsSchema } from 'src/platform/packages/shared/response-ops/rule_params';
import {
ruleNotifyWhen,
ruleLastRunOutcomeValues,
Expand Down

0 comments on commit 9902a63

Please sign in to comment.