NapCatQQ/packages/napcat-core
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
..
adapters Update onMSFSsoError signature with code and desc 2025-11-22 20:30:02 +08:00
apis feat: Support custom filename and cover image for Flash Transfer (#1544) 2026-01-25 09:51:43 +08:00
data feat: Support custom filename and cover image for Flash Transfer (#1544) 2026-01-25 09:51:43 +08:00
external Add support for version 9.9.26-44725 2026-01-16 17:25:29 +08:00
helper Refine markdown element handling in message parsing 2026-01-24 12:28:52 +08:00
listeners Add onLoginRecordUpdate method to listener 2026-01-14 18:53:31 +08:00
packet feat: 优化离线重连机制,支持通过前端实现重新登录 2026-01-17 15:38:24 +08:00
protocol Add ESLint config and update code style 2025-11-15 16:21:59 +08:00
services feat: Support custom filename and cover image for Flash Transfer (#1544) 2026-01-25 09:51:43 +08:00
types Merge branch 'main' of https://github.com/NapNeko/NapCatQQ 2026-01-22 17:45:13 +08:00
index.ts feat: Support custom filename and cover image for Flash Transfer (#1544) 2026-01-25 09:51:43 +08:00
package.json Move inversify and reflect-metadata to napcat-core 2025-11-15 16:23:03 +08:00
tsconfig.json Refactor TypeScript configs to use shared base 2025-11-15 14:00:27 +08:00
wrapper.ts feat: Support custom filename and cover image for Flash Transfer (#1544) 2026-01-25 09:51:43 +08:00