NapCatQQ/packages/napcat-onebot/action/file/flash
H3CoF6 246269b519
feat: Support custom filename and cover image for Flash Transfer (#1544)
* feat: support thumbnail for flash-transfer

* fix: fix get thumbnail path unknown type error

* Refactor flash module types and enums

Standardized TypeScript interface property formatting in flash.ts, flash data, and wrapper files. Introduced the UploadSceneType enum for upload scene types, replacing hardcoded numeric values. Improved type annotations and consistency across the flash API and related data structures.

* Update arg type in NodeQQNTWrapperUtil interface

Changed the type of the 'arg' parameter in the NodeQQNTWrapperUtil interface from optional number to 'number | null | undefined' for improved type clarity.

* Refactor flash scene type and update method params

Introduced BusiScene enum for sceneType in FileListInfoRequests to improve type safety. Renamed parameters in getFileThumbSavePathForSend for better clarity.

* Refactor downloadSceneType to use enum type

Replaced numeric downloadSceneType fields with the DownloadSceneType enum in relevant interfaces. Updated NodeIKernelFlashTransferService method signatures to use DownloadSceneType for download operations, improving type safety and code clarity.

* refactor: remove thumbnail dependency for QQ resource icons

* fix: remove useless console.log

---------

Co-authored-by: 手瓜一十雪 <nanaeonn@outlook.com>
2026-01-25 09:51:43 +08:00
..
CreateFlashTask.ts feat: Support custom filename and cover image for Flash Transfer (#1544) 2026-01-25 09:51:43 +08:00
DownloadFileset.ts Feat/Implement QQ Online File/Folder and Flash Transfer support (#1541) 2026-01-22 17:44:09 +08:00
GetFilesetIdByCode.ts Feat/Implement QQ Online File/Folder and Flash Transfer support (#1541) 2026-01-22 17:44:09 +08:00
GetFilesetInfo.ts Feat/Implement QQ Online File/Folder and Flash Transfer support (#1541) 2026-01-22 17:44:09 +08:00
GetFlashFileList.ts Feat/Implement QQ Online File/Folder and Flash Transfer support (#1541) 2026-01-22 17:44:09 +08:00
GetFlashFileUrl.ts Feat/Implement QQ Online File/Folder and Flash Transfer support (#1541) 2026-01-22 17:44:09 +08:00
GetShareLink.ts Feat/Implement QQ Online File/Folder and Flash Transfer support (#1541) 2026-01-22 17:44:09 +08:00
SendFlashMsg.ts Feat/Implement QQ Online File/Folder and Flash Transfer support (#1541) 2026-01-22 17:44:09 +08:00