
- 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.
65 lines
1.9 KiB
JavaScript
65 lines
1.9 KiB
JavaScript
/*
|
|
Copyright 2012-2015, Yahoo Inc.
|
|
Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
*/
|
|
'use strict';
|
|
|
|
/**
|
|
* istanbul-lib-coverage exports an API that allows you to create and manipulate
|
|
* file coverage, coverage maps (a set of file coverage objects) and summary
|
|
* coverage objects. File coverage for the same file can be merged as can
|
|
* entire coverage maps.
|
|
*
|
|
* @module Exports
|
|
*/
|
|
const { FileCoverage } = require('./lib/file-coverage');
|
|
const { CoverageMap } = require('./lib/coverage-map');
|
|
const { CoverageSummary } = require('./lib/coverage-summary');
|
|
|
|
module.exports = {
|
|
/**
|
|
* creates a coverage summary object
|
|
* @param {Object} obj an argument with the same semantics
|
|
* as the one passed to the `CoverageSummary` constructor
|
|
* @returns {CoverageSummary}
|
|
*/
|
|
createCoverageSummary(obj) {
|
|
if (obj && obj instanceof CoverageSummary) {
|
|
return obj;
|
|
}
|
|
return new CoverageSummary(obj);
|
|
},
|
|
/**
|
|
* creates a CoverageMap object
|
|
* @param {Object} obj optional - an argument with the same semantics
|
|
* as the one passed to the CoverageMap constructor.
|
|
* @returns {CoverageMap}
|
|
*/
|
|
createCoverageMap(obj) {
|
|
if (obj && obj instanceof CoverageMap) {
|
|
return obj;
|
|
}
|
|
return new CoverageMap(obj);
|
|
},
|
|
/**
|
|
* creates a FileCoverage object
|
|
* @param {Object} obj optional - an argument with the same semantics
|
|
* as the one passed to the FileCoverage constructor.
|
|
* @returns {FileCoverage}
|
|
*/
|
|
createFileCoverage(obj) {
|
|
if (obj && obj instanceof FileCoverage) {
|
|
return obj;
|
|
}
|
|
return new FileCoverage(obj);
|
|
}
|
|
};
|
|
|
|
/** classes exported for reuse */
|
|
module.exports.classes = {
|
|
/**
|
|
* the file coverage constructor
|
|
*/
|
|
FileCoverage
|
|
};
|