frpc-desktop/types/frpc-desktop.d.ts

39 lines
822 B
TypeScript

type FrpcDesktopProxy = FrpcProxyConfig & {};
interface BaseEntity {
_id: string;
}
interface FrpcSystemConfiguration {
launchAtStartup: boolean;
silentStartup: boolean;
autoConnectOnStartup: boolean;
}
type FrpcDesktopServer = BaseEntity &
FrpcCommonConfig & {
frpcVersion: number;
// system: any;
};
type FrpcVersion = BaseEntity & {
githubReleaseId: number;
githubAssetId: number;
githubCreatedAt: string;
name: string;
assetName: string;
versionDownloadCount: number;
assetDownloadCount: number;
browserDownloadUrl: string;
downloaded: boolean;
localPath: string;
size: string;
};
type OpenSourceFrpcDesktopServer = FrpcDesktopServer & {
system: FrpcSystemConfiguration;
};
type FrpcProxy = BaseEntity & FrpcProxyConfig & {
status: number; // 0: disable 1: enable
};