
- Complete NestJS TypeScript implementation with WebSocket support - Direct messaging (DM) and group chat functionality - End-to-end encryption with AES encryption and key pairs - Media file support (images, videos, audio, documents) up to 100MB - Push notifications with Firebase Cloud Messaging integration - Mention alerts and real-time typing indicators - User authentication with JWT and Passport - SQLite database with TypeORM entities and relationships - Comprehensive API documentation with Swagger/OpenAPI - File upload handling with secure access control - Online/offline status tracking and presence management - Message editing, deletion, and reply functionality - Notification management with automatic cleanup - Health check endpoint for monitoring - CORS configuration for cross-origin requests - Environment-based configuration management - Structured for Flutter SDK integration Features implemented: ✅ Real-time messaging with Socket.IO ✅ User registration and authentication ✅ Direct messages and group chats ✅ Media file uploads and management ✅ End-to-end encryption ✅ Push notifications ✅ Mention alerts ✅ Typing indicators ✅ Message read receipts ✅ Online status tracking ✅ File access control ✅ Comprehensive API documentation Ready for Flutter SDK development and production deployment.
27 lines
1.7 KiB
JavaScript
27 lines
1.7 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.HttpErrorByCode = void 0;
|
|
const enums_1 = require("../enums");
|
|
const exceptions_1 = require("../exceptions");
|
|
exports.HttpErrorByCode = {
|
|
[enums_1.HttpStatus.BAD_GATEWAY]: exceptions_1.BadGatewayException,
|
|
[enums_1.HttpStatus.BAD_REQUEST]: exceptions_1.BadRequestException,
|
|
[enums_1.HttpStatus.CONFLICT]: exceptions_1.ConflictException,
|
|
[enums_1.HttpStatus.FORBIDDEN]: exceptions_1.ForbiddenException,
|
|
[enums_1.HttpStatus.GATEWAY_TIMEOUT]: exceptions_1.GatewayTimeoutException,
|
|
[enums_1.HttpStatus.GONE]: exceptions_1.GoneException,
|
|
[enums_1.HttpStatus.I_AM_A_TEAPOT]: exceptions_1.ImATeapotException,
|
|
[enums_1.HttpStatus.INTERNAL_SERVER_ERROR]: exceptions_1.InternalServerErrorException,
|
|
[enums_1.HttpStatus.METHOD_NOT_ALLOWED]: exceptions_1.MethodNotAllowedException,
|
|
[enums_1.HttpStatus.NOT_ACCEPTABLE]: exceptions_1.NotAcceptableException,
|
|
[enums_1.HttpStatus.NOT_FOUND]: exceptions_1.NotFoundException,
|
|
[enums_1.HttpStatus.NOT_IMPLEMENTED]: exceptions_1.NotImplementedException,
|
|
[enums_1.HttpStatus.PAYLOAD_TOO_LARGE]: exceptions_1.PayloadTooLargeException,
|
|
[enums_1.HttpStatus.PRECONDITION_FAILED]: exceptions_1.PreconditionFailedException,
|
|
[enums_1.HttpStatus.REQUEST_TIMEOUT]: exceptions_1.RequestTimeoutException,
|
|
[enums_1.HttpStatus.SERVICE_UNAVAILABLE]: exceptions_1.ServiceUnavailableException,
|
|
[enums_1.HttpStatus.UNAUTHORIZED]: exceptions_1.UnauthorizedException,
|
|
[enums_1.HttpStatus.UNPROCESSABLE_ENTITY]: exceptions_1.UnprocessableEntityException,
|
|
[enums_1.HttpStatus.UNSUPPORTED_MEDIA_TYPE]: exceptions_1.UnsupportedMediaTypeException,
|
|
};
|