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

39 lines
822 B
TypeScript
Raw Normal View History

type FrpcDesktopProxy = FrpcProxyConfig & {};
interface BaseEntity {
_id: string;
}
2025-02-21 18:30:13 +08:00
interface FrpcSystemConfiguration {
launchAtStartup: boolean;
silentStartup: boolean;
autoConnectOnStartup: boolean;
}
type FrpcDesktopServer = BaseEntity &
FrpcCommonConfig & {
frpcVersion: number;
// system: any;
};
2025-02-21 18:30:13 +08:00
type FrpcVersion = BaseEntity & {
2025-02-21 18:30:13 +08:00
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
2025-02-21 18:30:13 +08:00
};