feat: enhance purchase intentions with chat integration and offer tracking

- Added MongoDB chat/message integration for seller responses
- Improved seller response validation and default messaging
- Integrated automatic chat creation/update when responding to intentions
- Added highest custom offer fields to listing queries and models
- Enhanced listing data with top offer information for buyers
This commit is contained in:
Evandro Fonseca Junior committed 2025-11-08 11:51:21 -03:00
1 parent d27526e026
commit d8e7d5d7e6
19 files changed
+806 -58

No files matched your search

+2
View File
@@ -31,6 +31,8 @@ function extractToken(request: NextRequest): string | null {
}
/**
* Converte payload de token em objeto AuthenticatedUser.
*/
function toAuthenticatedUser(payload: {
userId: number;
username: string;