Fix connection class imports
This commit is contained in:
@@ -22,9 +22,9 @@ import {
|
||||
ConnectionCallbackSchema,
|
||||
ConnectionLoader,
|
||||
DiscordApiErrors,
|
||||
Connection,
|
||||
} from "@spacebar/util";
|
||||
import wretch from "wretch";
|
||||
import Connection from "../../util/connections/Connection";
|
||||
import { BattleNetSettings } from "./BattleNetSettings";
|
||||
|
||||
interface BattleNetConnectionUser {
|
||||
@@ -33,10 +33,10 @@ interface BattleNetConnectionUser {
|
||||
battletag: string;
|
||||
}
|
||||
|
||||
interface BattleNetErrorResponse {
|
||||
error: string;
|
||||
error_description: string;
|
||||
}
|
||||
// interface BattleNetErrorResponse {
|
||||
// error: string;
|
||||
// error_description: string;
|
||||
// }
|
||||
|
||||
export default class BattleNetConnection extends Connection {
|
||||
public readonly id = "battlenet";
|
||||
|
||||
@@ -22,9 +22,9 @@ import {
|
||||
ConnectionCallbackSchema,
|
||||
ConnectionLoader,
|
||||
DiscordApiErrors,
|
||||
Connection,
|
||||
} from "@spacebar/util";
|
||||
import wretch from "wretch";
|
||||
import Connection from "../../util/connections/Connection";
|
||||
import { DiscordSettings } from "./DiscordSettings";
|
||||
|
||||
interface UserResponse {
|
||||
|
||||
@@ -22,9 +22,9 @@ import {
|
||||
ConnectionCallbackSchema,
|
||||
ConnectionLoader,
|
||||
DiscordApiErrors,
|
||||
Connection,
|
||||
} from "@spacebar/util";
|
||||
import wretch from "wretch";
|
||||
import Connection from "../../util/connections/Connection";
|
||||
import { EpicGamesSettings } from "./EpicGamesSettings";
|
||||
|
||||
export interface UserResponse {
|
||||
|
||||
@@ -22,9 +22,9 @@ import {
|
||||
ConnectionCallbackSchema,
|
||||
ConnectionLoader,
|
||||
DiscordApiErrors,
|
||||
Connection,
|
||||
} from "@spacebar/util";
|
||||
import wretch from "wretch";
|
||||
import Connection from "../../util/connections/Connection";
|
||||
import { FacebookSettings } from "./FacebookSettings";
|
||||
|
||||
export interface FacebookErrorResponse {
|
||||
|
||||
@@ -22,9 +22,9 @@ import {
|
||||
ConnectionCallbackSchema,
|
||||
ConnectionLoader,
|
||||
DiscordApiErrors,
|
||||
Connection,
|
||||
} from "@spacebar/util";
|
||||
import wretch from "wretch";
|
||||
import Connection from "../../util/connections/Connection";
|
||||
import { GitHubSettings } from "./GitHubSettings";
|
||||
|
||||
interface UserResponse {
|
||||
|
||||
@@ -22,9 +22,9 @@ import {
|
||||
ConnectionCallbackSchema,
|
||||
ConnectionLoader,
|
||||
DiscordApiErrors,
|
||||
Connection,
|
||||
} from "@spacebar/util";
|
||||
import wretch from "wretch";
|
||||
import Connection from "../../util/connections/Connection";
|
||||
import { RedditSettings } from "./RedditSettings";
|
||||
|
||||
export interface UserResponse {
|
||||
|
||||
@@ -22,9 +22,9 @@ import {
|
||||
ConnectionCallbackSchema,
|
||||
ConnectionLoader,
|
||||
DiscordApiErrors,
|
||||
RefreshableConnection,
|
||||
} from "@spacebar/util";
|
||||
import wretch from "wretch";
|
||||
import RefreshableConnection from "../../util/connections/RefreshableConnection";
|
||||
import { SpotifySettings } from "./SpotifySettings";
|
||||
|
||||
export interface UserResponse {
|
||||
|
||||
@@ -22,9 +22,9 @@ import {
|
||||
ConnectionCallbackSchema,
|
||||
ConnectionLoader,
|
||||
DiscordApiErrors,
|
||||
RefreshableConnection,
|
||||
} from "@spacebar/util";
|
||||
import wretch from "wretch";
|
||||
import RefreshableConnection from "../../util/connections/RefreshableConnection";
|
||||
import { TwitchSettings } from "./TwitchSettings";
|
||||
|
||||
interface TwitchConnectionUserResponse {
|
||||
|
||||
@@ -22,9 +22,9 @@ import {
|
||||
ConnectionCallbackSchema,
|
||||
ConnectionLoader,
|
||||
DiscordApiErrors,
|
||||
RefreshableConnection,
|
||||
} from "@spacebar/util";
|
||||
import wretch from "wretch";
|
||||
import RefreshableConnection from "../../util/connections/RefreshableConnection";
|
||||
import { TwitterSettings } from "./TwitterSettings";
|
||||
|
||||
interface TwitterUserResponse {
|
||||
@@ -40,10 +40,10 @@ interface TwitterUserResponse {
|
||||
};
|
||||
}
|
||||
|
||||
interface TwitterErrorResponse {
|
||||
error: string;
|
||||
error_description: string;
|
||||
}
|
||||
// interface TwitterErrorResponse {
|
||||
// error: string;
|
||||
// error_description: string;
|
||||
// }
|
||||
|
||||
export default class TwitterConnection extends RefreshableConnection {
|
||||
public readonly id = "twitter";
|
||||
|
||||
@@ -22,9 +22,9 @@ import {
|
||||
ConnectionCallbackSchema,
|
||||
ConnectionLoader,
|
||||
DiscordApiErrors,
|
||||
Connection,
|
||||
} from "@spacebar/util";
|
||||
import wretch from "wretch";
|
||||
import Connection from "../../util/connections/Connection";
|
||||
import { XboxSettings } from "./XboxSettings";
|
||||
|
||||
interface XboxUserResponse {
|
||||
@@ -44,10 +44,10 @@ interface XboxUserResponse {
|
||||
};
|
||||
}
|
||||
|
||||
interface XboxErrorResponse {
|
||||
error: string;
|
||||
error_description: string;
|
||||
}
|
||||
// interface XboxErrorResponse {
|
||||
// error: string;
|
||||
// error_description: string;
|
||||
// }
|
||||
|
||||
export default class XboxConnection extends Connection {
|
||||
public readonly id = "xbox";
|
||||
|
||||
@@ -22,9 +22,9 @@ import {
|
||||
ConnectionCallbackSchema,
|
||||
ConnectionLoader,
|
||||
DiscordApiErrors,
|
||||
Connection,
|
||||
} from "@spacebar/util";
|
||||
import wretch from "wretch";
|
||||
import Connection from "../../util/connections/Connection";
|
||||
import { YoutubeSettings } from "./YoutubeSettings";
|
||||
|
||||
interface YouTubeConnectionChannelListResult {
|
||||
|
||||
Reference in New Issue
Block a user