NapCatQQ/packages/napcat-core/apis
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
..
collection.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
file.ts Add upload_file option for file upload actions 2026-01-03 16:25:38 +08:00
flash.ts feat: Support custom filename and cover image for Flash Transfer (#1544) 2026-01-25 09:51:43 +08:00
friend.ts feat: 所有的类型检查 2025-11-15 12:57:19 +08:00
group.ts feat: 大规模去耦合 2025-11-15 13:36:33 +08:00
index.ts Feat/Implement QQ Online File/Folder and Flash Transfer support (#1541) 2026-01-22 17:44:09 +08:00
msg.ts fix #1515 & Add cookie parameter to getMsgEmojiLikesList API 2026-01-23 21:41:28 +08:00
online.ts Refactor message API types and add elementId to file element 2026-01-22 17:59:11 +08:00
packet.ts Fix version tag formatting and error handling 2025-11-25 23:03:55 +08:00
system.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
user.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
webapi.ts Refactor type annotations and router initialization 2026-01-22 17:35:54 +08:00