NapCatQQ/packages/napcat-onebot
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
..
action feat: Support custom filename and cover image for Flash Transfer (#1544) 2026-01-25 09:51:43 +08:00
api Refactor markdownElement flash transfer check 2026-01-24 12:31:03 +08:00
config Refactor network adapter activation and message handling 2026-01-14 18:53:31 +08:00
event Feat/Implement QQ Online File/Folder and Flash Transfer support (#1541) 2026-01-22 17:44:09 +08:00
helper refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
network Add plugin enable/disable config and status management 2026-01-17 16:24:46 +08:00
types Feat/Implement QQ Online File/Folder and Flash Transfer support (#1541) 2026-01-22 17:44:09 +08:00
index.ts Feat/Implement QQ Online File/Folder and Flash Transfer support (#1541) 2026-01-22 17:44:09 +08:00
package.json feat: 所有的类型检查 2025-11-15 12:57:19 +08:00
tsconfig.json Refactor TypeScript configs to use shared base 2025-11-15 14:00:27 +08:00