Skip to content

Commit

Permalink
[Move @kbn/config-schema to server] actions
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Aug 30, 2024
1 parent 63ca436 commit e388fa7
Show file tree
Hide file tree
Showing 23 changed files with 10 additions and 13 deletions.
5 changes: 1 addition & 4 deletions x-pack/plugins/actions/server/routes/connector/get/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
*/

import { IRouter } from '@kbn/core/server';
import {
getConnectorParamsSchemaV1,
GetConnectorParamsV1,
} from '../../../../common/routes/connector/apis/get';
import { getConnectorParamsSchemaV1, GetConnectorParamsV1 } from '../schemas/apis/get';
import { transformGetConnectorResponseV1 } from './transforms';
import { ILicenseState } from '../../../lib';
import { BASE_ACTION_API_PATH } from '../../../../common';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import { ConnectorResponseV1 } from '../../../../../../common/routes/connector/response';
import { ConnectorResponseV1 } from '../../../schemas/response';
import { Connector } from '../../../../../application/connector/types';

export const transformGetConnectorResponse = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { IRouter } from '@kbn/core/server';
import { AllConnectorsResponseV1 } from '../../../../common/routes/connector/response';
import { AllConnectorsResponseV1 } from '../schemas/response';
import { transformGetAllConnectorsResponseV1 } from './transforms';
import { ActionsRequestHandlerContext } from '../../../types';
import { BASE_ACTION_API_PATH } from '../../../../common';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { ConnectorWithExtraFindData } from '../../../../../application/connector/types';
import { AllConnectorsResponseV1 } from '../../../../../../common/routes/connector/response';
import { AllConnectorsResponseV1 } from '../../../schemas/response';

export const transformGetAllConnectorsResponse = (
results: ConnectorWithExtraFindData[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { IRouter } from '@kbn/core/server';
import { AllConnectorsResponseV1 } from '../../../../common/routes/connector/response';
import { AllConnectorsResponseV1 } from '../schemas/response';
import { ActionsRequestHandlerContext } from '../../../types';
import { INTERNAL_BASE_ACTION_API_PATH } from '../../../../common';
import { ILicenseState } from '../../../lib';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
*/

import { IRouter } from '@kbn/core/server';
import { ConnectorTypesResponseV1 } from '../../../../common/routes/connector/response';
import { ConnectorTypesResponseV1 } from '../schemas/response';
import {
connectorTypesQuerySchemaV1,
ConnectorTypesRequestQueryV1,
} from '../../../../common/routes/connector/apis/connector_types';
} from '../schemas/apis/connector_types';
import { transformListTypesResponseV1 } from './transforms';
import { ActionsRequestHandlerContext } from '../../../types';
import { BASE_ACTION_API_PATH } from '../../../../common';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { ConnectorType } from '../../../../../application/connector/types';
import { ConnectorTypesResponseV1 } from '../../../../../../common/routes/connector/response';
import { ConnectorTypesResponseV1 } from '../../../schemas/response';

export const transformListTypesResponse = (
results: ConnectorType[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
*/

import { IRouter } from '@kbn/core/server';
import { ConnectorTypesResponseV1 } from '../../../../common/routes/connector/response';
import { ConnectorTypesResponseV1 } from '../schemas/response';
import {
connectorTypesQuerySchemaV1,
ConnectorTypesRequestQueryV1,
} from '../../../../common/routes/connector/apis/connector_types';
} from '../schemas/apis/connector_types';
import { ActionsRequestHandlerContext } from '../../../types';
import { INTERNAL_BASE_ACTION_API_PATH } from '../../../../common';
import { ILicenseState } from '../../../lib';
Expand Down

0 comments on commit e388fa7

Please sign in to comment.