@icapps/chat-astrum
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -13,4 +13,6 @@ import { Document, Schema, Model } from 'mongoose'; | ||
export interface IConversationCreate extends IConversationBaseOperation { | ||
roomId: string; | ||
} | ||
export interface IDBConversation extends Document { | ||
roomId: string; | ||
participants: IParticipants; | ||
@@ -17,0 +19,0 @@ type: IConversationType; |
@@ -6,2 +6,3 @@ "use strict"; | ||
exports.ConversationSchema = new mongoose_1.Schema({ | ||
roomId: String, | ||
participants: { | ||
@@ -8,0 +9,0 @@ departmentId: String, |
@@ -11,2 +11,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const uuid = require("uuid"); | ||
const socket = require("../lib/socket"); | ||
@@ -26,3 +27,3 @@ const conversationRepository = require("../repositories/conversation.repository"); | ||
const type = utils_1.getConversationType(participants); | ||
const conversation = yield conversationRepository.createConversation({ participants, type }); | ||
const conversation = yield conversationRepository.createConversation({ participants, type, roomId: uuid.v4() }); | ||
socket.addNamespace(holdingId); | ||
@@ -29,0 +30,0 @@ return conversation; |
{ | ||
"name": "@icapps/chat-astrum", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Chat module ESS", | ||
@@ -27,2 +27,3 @@ "main": "build/index.js", | ||
"socket.io": "~2.2.0", | ||
"uuid": "~3.3.2", | ||
"winston": "~3.2.1" | ||
@@ -32,3 +33,2 @@ }, | ||
"@types/faker": "^4.1.5", | ||
"@types/socket.io": "~2.1.2", | ||
"@types/jest": "^24.0.13", | ||
@@ -40,2 +40,4 @@ "@types/joi": "^14.3.3", | ||
"@types/rimraf": "^2.0.2", | ||
"@types/socket.io": "~2.1.2", | ||
"@types/uuid": "~3.4.4", | ||
"@types/winston": "~2.4.4", | ||
@@ -47,6 +49,6 @@ "faker": "^4.1.0", | ||
"node-mocks-http": "^1.7.5", | ||
"np": "^5.0.2", | ||
"pre-commit": "^1.2.2", | ||
"rimraf": "^2.6.2", | ||
"ts-jest": "^24.0.2", | ||
"np": "^5.0.2", | ||
"ts-node-dev": "^1.0.0-pre.39", | ||
@@ -53,0 +55,0 @@ "tslint": "^5.15.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23766
384
5
23
+ Addeduuid@~3.3.2
+ Addeduuid@3.3.3(transitive)