
- 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.
77 lines
2.5 KiB
TypeScript
77 lines
2.5 KiB
TypeScript
/**
|
|
* Options passed to validator during validation.
|
|
* @see https://github.com/typestack/class-validator
|
|
*
|
|
* class-validator@0.13.0
|
|
*
|
|
* @publicApi
|
|
*/
|
|
export interface ValidatorOptions {
|
|
/**
|
|
* If set to true then class-validator will print extra warning messages to the console when something is not right.
|
|
*/
|
|
enableDebugMessages?: boolean;
|
|
/**
|
|
* If set to true then validator will skip validation of all properties that are undefined in the validating object.
|
|
*/
|
|
skipUndefinedProperties?: boolean;
|
|
/**
|
|
* If set to true then validator will skip validation of all properties that are null in the validating object.
|
|
*/
|
|
skipNullProperties?: boolean;
|
|
/**
|
|
* If set to true then validator will skip validation of all properties that are null or undefined in the validating object.
|
|
*/
|
|
skipMissingProperties?: boolean;
|
|
/**
|
|
* If set to true validator will strip validated object of any properties that do not have any decorators.
|
|
*
|
|
* Tip: if no other decorator is suitable for your property use @Allow decorator.
|
|
*/
|
|
whitelist?: boolean;
|
|
/**
|
|
* If set to true, instead of stripping non-whitelisted properties validator will throw an error
|
|
*/
|
|
forbidNonWhitelisted?: boolean;
|
|
/**
|
|
* Groups to be used during validation of the object.
|
|
*/
|
|
groups?: string[];
|
|
/**
|
|
* Set default for `always` option of decorators. Default can be overridden in decorator options.
|
|
*/
|
|
always?: boolean;
|
|
/**
|
|
* If [groups]{@link ValidatorOptions#groups} is not given or is empty,
|
|
* ignore decorators with at least one group.
|
|
*/
|
|
strictGroups?: boolean;
|
|
/**
|
|
* If set to true, the validation will not use default messages.
|
|
* Error message always will be undefined if its not explicitly set.
|
|
*/
|
|
dismissDefaultMessages?: boolean;
|
|
/**
|
|
* ValidationError special options.
|
|
*/
|
|
validationError?: {
|
|
/**
|
|
* Indicates if target should be exposed in ValidationError.
|
|
*/
|
|
target?: boolean;
|
|
/**
|
|
* Indicates if validated value should be exposed in ValidationError.
|
|
*/
|
|
value?: boolean;
|
|
};
|
|
/**
|
|
* Settings true will cause fail validation of unknown objects.
|
|
*/
|
|
forbidUnknownValues?: boolean;
|
|
/**
|
|
* When set to true, validation of the given property will stop after encountering the first error.
|
|
* This is enabled by default.
|
|
*/
|
|
stopAtFirstError?: boolean;
|
|
}
|