Optimize imports

This commit is contained in:
Travis Ralston 2021-12-02 16:20:56 -07:00
parent 0c65acedd3
commit ca7f1fbbe6
4 changed files with 5 additions and 31 deletions

View File

@ -1,15 +1,8 @@
import { Context, DELETE, GET, Path, PathParam, POST, Security, ServiceContext } from "typescript-rest";
import { ApiError } from "../ApiError";
import { LogService } from "matrix-bot-sdk";
import { BridgedChannel, SlackBridge } from "../../bridges/SlackBridge";
import { SlackChannel, SlackTeam } from "../../bridges/models/slack";
import { ROLE_USER } from "../security/MatrixSecurity";
import {
HookshotConnection, HookshotGithubOrg, HookshotGithubRepo,
HookshotJiraInstance,
HookshotJiraProject,
HookshotJiraRoomConfig
} from "../../bridges/models/hookshot";
import { HookshotGithubOrg, HookshotGithubRepo, HookshotGithubRoomConfig } from "../../bridges/models/hookshot";
import { HookshotGithubBridge } from "../../bridges/HookshotGithubBridge";
interface BridgeRoomRequest {
@ -70,7 +63,7 @@ export class DimensionHookshotGithubService {
@POST
@Path("room/:roomId/connect")
@Security(ROLE_USER)
public async bridgeRoom(@PathParam("roomId") roomId: string, request: BridgeRoomRequest): Promise<HookshotJiraRoomConfig> {
public async bridgeRoom(@PathParam("roomId") roomId: string, request: BridgeRoomRequest): Promise<HookshotGithubRoomConfig> {
const userId = this.context.request.user.userId;
try {

View File

@ -1,16 +1,9 @@
import { Context, DELETE, GET, Path, PathParam, POST, Security, ServiceContext } from "typescript-rest";
import { ApiError } from "../ApiError";
import { LogService } from "matrix-bot-sdk";
import { BridgedChannel, SlackBridge } from "../../bridges/SlackBridge";
import { SlackChannel, SlackTeam } from "../../bridges/models/slack";
import { ROLE_USER } from "../security/MatrixSecurity";
import { HookshotJiraBridge } from "../../bridges/HookshotJiraBridge";
import {
HookshotConnection,
HookshotJiraInstance,
HookshotJiraProject,
HookshotJiraRoomConfig
} from "../../bridges/models/hookshot";
import { HookshotJiraInstance, HookshotJiraProject, HookshotJiraRoomConfig } from "../../bridges/models/hookshot";
interface BridgeRoomRequest {
instanceName: string;

View File

@ -1,11 +1,5 @@
import HookshotGithubBridgeRecord from "../db/models/HookshotGithubBridgeRecord";
import {
HookshotConnection, HookshotGithubRepo,
HookshotGithubRoomConfig,
HookshotGithubUserInfo,
HookshotJiraUserInfo,
HookshotTypes
} from "./models/hookshot";
import { HookshotGithubRepo, HookshotGithubRoomConfig, HookshotGithubUserInfo, HookshotTypes } from "./models/hookshot";
import { HookshotBridge } from "./HookshotBridge";
export class HookshotGithubBridge extends HookshotBridge {

View File

@ -1,11 +1,5 @@
import HookshotJiraBridgeRecord from "../db/models/HookshotJiraBridgeRecord";
import {
HookshotConnection,
HookshotGithubRoomConfig, HookshotJiraProject,
HookshotJiraRoomConfig,
HookshotJiraUserInfo,
HookshotTypes
} from "./models/hookshot";
import { HookshotJiraProject, HookshotJiraRoomConfig, HookshotJiraUserInfo, HookshotTypes } from "./models/hookshot";
import { HookshotBridge } from "./HookshotBridge";
export class HookshotJiraBridge extends HookshotBridge {