新增: SFTP直连+网站预览+OSS区域嗅探+热键+BGM播放
This commit is contained in:
@@ -21,12 +21,28 @@ import * as filesystem$0 from "./internal/filesystem/models.js";
|
||||
// @ts-ignore: Unused imports
|
||||
import * as $models from "./models.js";
|
||||
|
||||
/**
|
||||
* BgmGetPlaylist 获取播放列表
|
||||
*/
|
||||
export function BgmGetPlaylist(): $CancellablePromise<$models.BgmPlaylistItem[]> {
|
||||
return $Call.ByID(3200870077).then(($result: any) => {
|
||||
return $$createType1($result);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* BgmSavePlaylist 全量保存播放列表(前端调用时传完整列表)
|
||||
*/
|
||||
export function BgmSavePlaylist(items: $models.BgmPlaylistItem[]): $CancellablePromise<void> {
|
||||
return $Call.ByID(2929660002, items);
|
||||
}
|
||||
|
||||
/**
|
||||
* CheckUpdate 检查更新
|
||||
*/
|
||||
export function CheckUpdate(): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(586574094).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -42,7 +58,7 @@ export function ClearCache(): $CancellablePromise<void> {
|
||||
*/
|
||||
export function CreateDir(path: string): $CancellablePromise<filesystem$0.FileOperationResult | null> {
|
||||
return $Call.ByID(632035444, path).then(($result: any) => {
|
||||
return $$createType2($result);
|
||||
return $$createType4($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -51,7 +67,7 @@ export function CreateDir(path: string): $CancellablePromise<filesystem$0.FileOp
|
||||
*/
|
||||
export function CreateFile(path: string): $CancellablePromise<filesystem$0.FileOperationResult | null> {
|
||||
return $Call.ByID(3418645411, path).then(($result: any) => {
|
||||
return $$createType2($result);
|
||||
return $$createType4($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -64,7 +80,7 @@ export function DeleteConnectionProfile(id: number): $CancellablePromise<void> {
|
||||
*/
|
||||
export function DeletePath(path: string): $CancellablePromise<filesystem$0.FileOperationResult | null> {
|
||||
return $Call.ByID(1564637217, path).then(($result: any) => {
|
||||
return $$createType2($result);
|
||||
return $$createType4($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -80,7 +96,7 @@ export function DeletePermanently(recyclePath: string): $CancellablePromise<void
|
||||
*/
|
||||
export function DetectFileTypeByContent(path: string): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(3067282982, path).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -89,7 +105,7 @@ export function DetectFileTypeByContent(path: string): $CancellablePromise<{ [_
|
||||
*/
|
||||
export function DownloadUpdate(downloadURL: string): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(115027584, downloadURL).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -105,7 +121,7 @@ export function EmptyRecycleBin(): $CancellablePromise<void> {
|
||||
*/
|
||||
export function ExportPDF(content: string, title: string, fileName: string, fontSize: number, pageWidth: number, pageHeight: number): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(1770450987, content, title, fileName, fontSize, pageWidth, pageHeight).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -128,7 +144,7 @@ export function ExtractFileFromZipToTemp(zipPath: string, filePath: string): $Ca
|
||||
*/
|
||||
export function GetAppConfig(): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(2006534548).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -137,7 +153,7 @@ export function GetAppConfig(): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
*/
|
||||
export function GetAuditLogs(limit: number): $CancellablePromise<{ [_ in string]?: any }[]> {
|
||||
return $Call.ByID(3554903517, limit).then(($result: any) => {
|
||||
return $$createType3($result);
|
||||
return $$createType5($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -146,7 +162,7 @@ export function GetAuditLogs(limit: number): $CancellablePromise<{ [_ in string]
|
||||
*/
|
||||
export function GetCPUInfo(): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(2509681007).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -155,7 +171,7 @@ export function GetCPUInfo(): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
*/
|
||||
export function GetCommonPaths(): $CancellablePromise<{ [_ in string]?: string }> {
|
||||
return $Call.ByID(3953343786).then(($result: any) => {
|
||||
return $$createType4($result);
|
||||
return $$createType6($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -164,7 +180,7 @@ export function GetCommonPaths(): $CancellablePromise<{ [_ in string]?: string }
|
||||
*/
|
||||
export function GetCurrentVersion(): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(1827245900).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -173,7 +189,7 @@ export function GetCurrentVersion(): $CancellablePromise<{ [_ in string]?: any }
|
||||
*/
|
||||
export function GetDiskInfo(): $CancellablePromise<{ [_ in string]?: any }[]> {
|
||||
return $Call.ByID(3756377758).then(($result: any) => {
|
||||
return $$createType3($result);
|
||||
return $$createType5($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -182,7 +198,7 @@ export function GetDiskInfo(): $CancellablePromise<{ [_ in string]?: any }[]> {
|
||||
*/
|
||||
export function GetEnvVars(): $CancellablePromise<{ [_ in string]?: string }> {
|
||||
return $Call.ByID(363814436).then(($result: any) => {
|
||||
return $$createType4($result);
|
||||
return $$createType6($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -191,7 +207,7 @@ export function GetEnvVars(): $CancellablePromise<{ [_ in string]?: string }> {
|
||||
*/
|
||||
export function GetFileInfo(path: string): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(2071650585, path).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -204,7 +220,7 @@ export function GetFileServerURL(): $CancellablePromise<string> {
|
||||
|
||||
export function GetLocalSystemInfo(): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(2203542363).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -213,7 +229,7 @@ export function GetLocalSystemInfo(): $CancellablePromise<{ [_ in string]?: any
|
||||
*/
|
||||
export function GetMemoryInfo(): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(2096905876).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -222,7 +238,7 @@ export function GetMemoryInfo(): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
*/
|
||||
export function GetRecycleBinEntries(): $CancellablePromise<{ [_ in string]?: any }[]> {
|
||||
return $Call.ByID(2312855399).then(($result: any) => {
|
||||
return $$createType3($result);
|
||||
return $$createType5($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -231,7 +247,7 @@ export function GetRecycleBinEntries(): $CancellablePromise<{ [_ in string]?: an
|
||||
*/
|
||||
export function GetSystemInfo(): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(1347250254).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -240,7 +256,7 @@ export function GetSystemInfo(): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
*/
|
||||
export function GetUpdateConfig(): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(680804904).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -249,16 +265,23 @@ export function GetUpdateConfig(): $CancellablePromise<{ [_ in string]?: any }>
|
||||
*/
|
||||
export function GetZipFileInfo(zipPath: string, filePath: string): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(2031617692, zipPath, filePath).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* HandleHotkey 处理全局热键回调:切换 BgmBar 显示/隐藏
|
||||
*/
|
||||
export function HandleHotkey(): $CancellablePromise<void> {
|
||||
return $Call.ByID(420101833);
|
||||
}
|
||||
|
||||
/**
|
||||
* InstallUpdate 安装更新包
|
||||
*/
|
||||
export function InstallUpdate(installerPath: string, autoRestart: boolean): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(2443992793, installerPath, autoRestart).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -267,7 +290,7 @@ export function InstallUpdate(installerPath: string, autoRestart: boolean): $Can
|
||||
*/
|
||||
export function InstallUpdateWithHash(installerPath: string, autoRestart: boolean, expectedHash: string, hashType: string): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(3787276601, installerPath, autoRestart, expectedHash, hashType).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -276,7 +299,7 @@ export function InstallUpdateWithHash(installerPath: string, autoRestart: boolea
|
||||
*/
|
||||
export function ListDir(path: string): $CancellablePromise<{ [_ in string]?: any }[]> {
|
||||
return $Call.ByID(2120475736, path).then(($result: any) => {
|
||||
return $$createType3($result);
|
||||
return $$createType5($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -285,13 +308,13 @@ export function ListDir(path: string): $CancellablePromise<{ [_ in string]?: any
|
||||
*/
|
||||
export function ListZipContents(zipPath: string): $CancellablePromise<{ [_ in string]?: any }[]> {
|
||||
return $Call.ByID(3013109042, zipPath).then(($result: any) => {
|
||||
return $$createType3($result);
|
||||
return $$createType5($result);
|
||||
});
|
||||
}
|
||||
|
||||
export function LoadConnectionProfiles(): $CancellablePromise<{ [_ in string]?: any }[]> {
|
||||
return $Call.ByID(454364767).then(($result: any) => {
|
||||
return $$createType3($result);
|
||||
return $$createType5($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -311,7 +334,7 @@ export function OssConnect(req: $models.OssConnectRequest): $CancellablePromise<
|
||||
*/
|
||||
export function OssCreateDir(connID: string, dirPath: string): $CancellablePromise<filesystem$0.FileOperationResult | null> {
|
||||
return $Call.ByID(605668951, connID, dirPath).then(($result: any) => {
|
||||
return $$createType2($result);
|
||||
return $$createType4($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -320,7 +343,7 @@ export function OssCreateDir(connID: string, dirPath: string): $CancellablePromi
|
||||
*/
|
||||
export function OssCreateFile(connID: string, filePath: string): $CancellablePromise<filesystem$0.FileOperationResult | null> {
|
||||
return $Call.ByID(4148593430, connID, filePath).then(($result: any) => {
|
||||
return $$createType2($result);
|
||||
return $$createType4($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -329,7 +352,7 @@ export function OssCreateFile(connID: string, filePath: string): $CancellablePro
|
||||
*/
|
||||
export function OssDeletePath(connID: string, key: string): $CancellablePromise<filesystem$0.FileOperationResult | null> {
|
||||
return $Call.ByID(4285234744, connID, key).then(($result: any) => {
|
||||
return $$createType2($result);
|
||||
return $$createType4($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -340,6 +363,13 @@ export function OssDisconnect(connID: string): $CancellablePromise<void> {
|
||||
return $Call.ByID(3427288622, connID);
|
||||
}
|
||||
|
||||
/**
|
||||
* OssDownloadSiteForPreview OSS 下载 HTML 及其引用的资源到临时目录
|
||||
*/
|
||||
export function OssDownloadSiteForPreview(connID: string, key: string): $CancellablePromise<string> {
|
||||
return $Call.ByID(1387550222, connID, key);
|
||||
}
|
||||
|
||||
/**
|
||||
* OssDownloadToTemp OSS 下载到临时文件
|
||||
*/
|
||||
@@ -347,12 +377,19 @@ export function OssDownloadToTemp(connID: string, key: string): $CancellableProm
|
||||
return $Call.ByID(370656471, connID, key);
|
||||
}
|
||||
|
||||
/**
|
||||
* OssDownloadToTempCached 带缓存的 OSS 下载(命中缓存直接返回本地路径)
|
||||
*/
|
||||
export function OssDownloadToTempCached(connID: string, key: string, fileSize: number, modTime: string): $CancellablePromise<string> {
|
||||
return $Call.ByID(1312098141, connID, key, fileSize, modTime);
|
||||
}
|
||||
|
||||
/**
|
||||
* OssGetCommonPaths OSS 获取常用路径
|
||||
*/
|
||||
export function OssGetCommonPaths(connID: string): $CancellablePromise<{ [_ in string]?: string }> {
|
||||
return $Call.ByID(3525024115, connID).then(($result: any) => {
|
||||
return $$createType4($result);
|
||||
return $$createType6($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -361,7 +398,7 @@ export function OssGetCommonPaths(connID: string): $CancellablePromise<{ [_ in s
|
||||
*/
|
||||
export function OssGetFileInfo(connID: string, key: string): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(852430614, connID, key).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -377,7 +414,7 @@ export function OssGetSignedURL(connID: string, key: string): $CancellablePromis
|
||||
*/
|
||||
export function OssListDir(connID: string, prefix: string): $CancellablePromise<{ [_ in string]?: any }[]> {
|
||||
return $Call.ByID(3013212019, connID, prefix).then(($result: any) => {
|
||||
return $$createType3($result);
|
||||
return $$createType5($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -393,7 +430,7 @@ export function OssReadFile(connID: string, key: string): $CancellablePromise<st
|
||||
*/
|
||||
export function OssRenamePath(req: $models.OssRenamePathRequest): $CancellablePromise<filesystem$0.FileOperationResult | null> {
|
||||
return $Call.ByID(4218061693, req).then(($result: any) => {
|
||||
return $$createType2($result);
|
||||
return $$createType4($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -418,6 +455,13 @@ export function ReadFile(path: string): $CancellablePromise<string> {
|
||||
return $Call.ByID(1160596971, path);
|
||||
}
|
||||
|
||||
/**
|
||||
* RegisterGlobalHotkey 注册 Ctrl+Shift+B 全局热键(需在窗口创建后调用)
|
||||
*/
|
||||
export function RegisterGlobalHotkey(): $CancellablePromise<void> {
|
||||
return $Call.ByID(2089930789);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reload 重新加载窗口(用于菜单项)
|
||||
*/
|
||||
@@ -430,7 +474,7 @@ export function Reload(): $CancellablePromise<void> {
|
||||
*/
|
||||
export function RenamePath(req: $models.RenamePathRequest): $CancellablePromise<filesystem$0.FileOperationResult | null> {
|
||||
return $Call.ByID(1959759948, req).then(($result: any) => {
|
||||
return $$createType2($result);
|
||||
return $$createType4($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -439,7 +483,7 @@ export function RenamePath(req: $models.RenamePathRequest): $CancellablePromise<
|
||||
*/
|
||||
export function ResolveShortcut(lnkPath: string): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(4051288361, lnkPath).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -455,7 +499,7 @@ export function RestoreFromRecycleBin(recyclePath: string): $CancellablePromise<
|
||||
*/
|
||||
export function SaveAppConfig(req: $models.SaveAppConfigRequest): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(1942219977, req).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -468,7 +512,7 @@ export function SaveBase64File(req: $models.SaveBase64FileRequest): $Cancellable
|
||||
|
||||
export function SaveConnectionProfile(req: $models.SaveProfileRequest): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(3622685069, req).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -491,7 +535,7 @@ export function SetMainWindow(w: application$0.WebviewWindow | null): $Cancellab
|
||||
*/
|
||||
export function SetUpdateConfig(autoCheckEnabled: boolean, checkIntervalMinutes: number, checkURL: string): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(4271731092, autoCheckEnabled, checkIntervalMinutes, checkURL).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -514,7 +558,7 @@ export function SftpConnect(req: $models.SftpConnectRequest): $CancellablePromis
|
||||
*/
|
||||
export function SftpCreateDir(connID: string, dirPath: string): $CancellablePromise<filesystem$0.FileOperationResult | null> {
|
||||
return $Call.ByID(586600875, connID, dirPath).then(($result: any) => {
|
||||
return $$createType2($result);
|
||||
return $$createType4($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -523,7 +567,7 @@ export function SftpCreateDir(connID: string, dirPath: string): $CancellableProm
|
||||
*/
|
||||
export function SftpCreateFile(connID: string, filePath: string): $CancellablePromise<filesystem$0.FileOperationResult | null> {
|
||||
return $Call.ByID(623026146, connID, filePath).then(($result: any) => {
|
||||
return $$createType2($result);
|
||||
return $$createType4($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -532,7 +576,7 @@ export function SftpCreateFile(connID: string, filePath: string): $CancellablePr
|
||||
*/
|
||||
export function SftpDeletePath(connID: string, filePath: string): $CancellablePromise<filesystem$0.FileOperationResult | null> {
|
||||
return $Call.ByID(1833619836, connID, filePath).then(($result: any) => {
|
||||
return $$createType2($result);
|
||||
return $$createType4($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -543,6 +587,13 @@ export function SftpDisconnect(connID: string): $CancellablePromise<void> {
|
||||
return $Call.ByID(597628874, connID);
|
||||
}
|
||||
|
||||
/**
|
||||
* SftpDownloadSiteForPreview 下载 HTML 及其网站资源到本地临时目录
|
||||
*/
|
||||
export function SftpDownloadSiteForPreview(connID: string, remotePath: string): $CancellablePromise<string> {
|
||||
return $Call.ByID(1591575570, connID, remotePath);
|
||||
}
|
||||
|
||||
/**
|
||||
* SftpDownloadToTemp 下载远程文件到本地临时目录(用于预览)
|
||||
*/
|
||||
@@ -550,12 +601,19 @@ export function SftpDownloadToTemp(connID: string, remotePath: string): $Cancell
|
||||
return $Call.ByID(1159267603, connID, remotePath);
|
||||
}
|
||||
|
||||
/**
|
||||
* SftpDownloadToTempCached 带缓存的 SFTP 下载(命中缓存直接返回本地路径)
|
||||
*/
|
||||
export function SftpDownloadToTempCached(connID: string, remotePath: string, fileSize: number, modTime: string): $CancellablePromise<string> {
|
||||
return $Call.ByID(3935472409, connID, remotePath, fileSize, modTime);
|
||||
}
|
||||
|
||||
/**
|
||||
* SftpGetCommonPaths 获取 SFTP 远程主机常用路径
|
||||
*/
|
||||
export function SftpGetCommonPaths(connID: string): $CancellablePromise<{ [_ in string]?: string }> {
|
||||
return $Call.ByID(2874386183, connID).then(($result: any) => {
|
||||
return $$createType4($result);
|
||||
return $$createType6($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -564,7 +622,7 @@ export function SftpGetCommonPaths(connID: string): $CancellablePromise<{ [_ in
|
||||
*/
|
||||
export function SftpGetFileInfo(connID: string, filePath: string): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(1959840482, connID, filePath).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -573,7 +631,7 @@ export function SftpGetFileInfo(connID: string, filePath: string): $CancellableP
|
||||
*/
|
||||
export function SftpGetSystemInfo(connID: string): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(1950143653, connID).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -582,7 +640,7 @@ export function SftpGetSystemInfo(connID: string): $CancellablePromise<{ [_ in s
|
||||
*/
|
||||
export function SftpListDir(connID: string, dirPath: string): $CancellablePromise<{ [_ in string]?: any }[]> {
|
||||
return $Call.ByID(2061863855, connID, dirPath).then(($result: any) => {
|
||||
return $$createType3($result);
|
||||
return $$createType5($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -598,7 +656,7 @@ export function SftpReadFile(connID: string, filePath: string): $CancellableProm
|
||||
*/
|
||||
export function SftpRenamePath(req: $models.SftpRenamePathRequest): $CancellablePromise<filesystem$0.FileOperationResult | null> {
|
||||
return $Call.ByID(183173937, req).then(($result: any) => {
|
||||
return $$createType2($result);
|
||||
return $$createType4($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -621,7 +679,7 @@ export function SftpWriteFile(req: $models.SftpWriteFileRequest): $CancellablePr
|
||||
*/
|
||||
export function VerifyUpdateFile(filePath: string, expectedHash: string, hashType: string): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(2181909867, filePath, expectedHash, hashType).then(($result: any) => {
|
||||
return $$createType0($result);
|
||||
return $$createType2($result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -668,8 +726,10 @@ export function WriteFile(req: $models.WriteFileRequest): $CancellablePromise<vo
|
||||
}
|
||||
|
||||
// Private type creation functions
|
||||
const $$createType0 = $Create.Map($Create.Any, $Create.Any);
|
||||
const $$createType1 = filesystem$0.FileOperationResult.createFrom;
|
||||
const $$createType2 = $Create.Nullable($$createType1);
|
||||
const $$createType3 = $Create.Array($$createType0);
|
||||
const $$createType4 = $Create.Map($Create.Any, $Create.Any);
|
||||
const $$createType0 = $models.BgmPlaylistItem.createFrom;
|
||||
const $$createType1 = $Create.Array($$createType0);
|
||||
const $$createType2 = $Create.Map($Create.Any, $Create.Any);
|
||||
const $$createType3 = filesystem$0.FileOperationResult.createFrom;
|
||||
const $$createType4 = $Create.Nullable($$createType3);
|
||||
const $$createType5 = $Create.Array($$createType2);
|
||||
const $$createType6 = $Create.Map($Create.Any, $Create.Any);
|
||||
|
||||
@@ -7,6 +7,7 @@ export {
|
||||
};
|
||||
|
||||
export {
|
||||
BgmPlaylistItem,
|
||||
OssConnectRequest,
|
||||
OssRenamePathRequest,
|
||||
RenamePathRequest,
|
||||
|
||||
@@ -9,6 +9,38 @@ import { Create as $Create } from "@wailsio/runtime";
|
||||
// @ts-ignore: Unused imports
|
||||
import * as api$0 from "./internal/api/models.js";
|
||||
|
||||
/**
|
||||
* BgmPlaylistItem 播放列表条目
|
||||
*/
|
||||
export class BgmPlaylistItem {
|
||||
"name": string;
|
||||
"path": string;
|
||||
"profile_id": string;
|
||||
|
||||
/** Creates a new BgmPlaylistItem instance. */
|
||||
constructor($$source: Partial<BgmPlaylistItem> = {}) {
|
||||
if (!("name" in $$source)) {
|
||||
this["name"] = "";
|
||||
}
|
||||
if (!("path" in $$source)) {
|
||||
this["path"] = "";
|
||||
}
|
||||
if (!("profile_id" in $$source)) {
|
||||
this["profile_id"] = "";
|
||||
}
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new BgmPlaylistItem instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): BgmPlaylistItem {
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
return new BgmPlaylistItem($$parsedSource as Partial<BgmPlaylistItem>);
|
||||
}
|
||||
}
|
||||
|
||||
export class OssConnectRequest {
|
||||
"provider": string;
|
||||
"access_key": string;
|
||||
@@ -183,6 +215,7 @@ export class SaveProfileRequest {
|
||||
"password": string;
|
||||
"key_path": string;
|
||||
"type": string;
|
||||
"provider": string;
|
||||
"token": string;
|
||||
"access_key": string;
|
||||
"secret_key": string;
|
||||
@@ -217,6 +250,9 @@ export class SaveProfileRequest {
|
||||
if (!("type" in $$source)) {
|
||||
this["type"] = "";
|
||||
}
|
||||
if (!("provider" in $$source)) {
|
||||
this["provider"] = "";
|
||||
}
|
||||
if (!("token" in $$source)) {
|
||||
this["token"] = "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user