diff --git a/apps/meteor/ee/app/livechat-enterprise/server/services/voipService.ts b/apps/meteor/ee/app/livechat-enterprise/server/services/voipService.ts index 427b6f2846db..77ba89dc25cb 100644 --- a/apps/meteor/ee/app/livechat-enterprise/server/services/voipService.ts +++ b/apps/meteor/ee/app/livechat-enterprise/server/services/voipService.ts @@ -1,5 +1,6 @@ -import { IRoomClosingInfo, IOmniRoomClosingMessage } from '@rocket.chat/core-typings'; +import { IRoomClosingInfo } from '@rocket.chat/core-typings'; +import { IOmniRoomClosingMessage } from '../../../../../server/services/omnichannel-voip/internalTypes'; import { OmnichannelVoipService } from '../../../../../server/services/omnichannel-voip/service'; import { overwriteClassOnLicense } from '../../../license/server'; diff --git a/apps/meteor/server/services/omnichannel-voip/internalTypes.ts b/apps/meteor/server/services/omnichannel-voip/internalTypes.ts index 008020f2cce2..e4fadd52c208 100644 --- a/apps/meteor/server/services/omnichannel-voip/internalTypes.ts +++ b/apps/meteor/server/services/omnichannel-voip/internalTypes.ts @@ -1,3 +1,5 @@ +import { IMessage } from '@rocket.chat/core-typings'; + export type FindVoipRoomsParams = { agents?: string[]; open?: boolean; @@ -13,3 +15,5 @@ export type FindVoipRoomsParams = { offset?: number; }; }; + +export type IOmniRoomClosingMessage = Pick & Partial>; diff --git a/apps/meteor/server/services/omnichannel-voip/service.ts b/apps/meteor/server/services/omnichannel-voip/service.ts index 0ea4fc43cc6c..a7eb74f1c055 100644 --- a/apps/meteor/server/services/omnichannel-voip/service.ts +++ b/apps/meteor/server/services/omnichannel-voip/service.ts @@ -7,7 +7,6 @@ import type { IRoomCreationResponse, IUser, ILivechatAgent, - IOmniRoomClosingMessage, } from '@rocket.chat/core-typings'; import { ILivechatVisitor, @@ -28,7 +27,7 @@ import { UsersRaw } from '../../../app/models/server/raw/Users'; import { VoipRoomsRaw } from '../../../app/models/server/raw/VoipRooms'; import { PbxEventsRaw } from '../../../app/models/server/raw/PbxEvents'; import { sendMessage } from '../../../app/lib/server/functions/sendMessage'; -import { FindVoipRoomsParams } from './internalTypes'; +import { FindVoipRoomsParams, IOmniRoomClosingMessage } from './internalTypes'; import { api } from '../../sdk/api'; import { calculateOnHoldTimeForRoom } from './helper'; diff --git a/packages/core-typings/src/IMessage/IMessage.ts b/packages/core-typings/src/IMessage/IMessage.ts index 135176fe9031..f473d4e093a1 100644 --- a/packages/core-typings/src/IMessage/IMessage.ts +++ b/packages/core-typings/src/IMessage/IMessage.ts @@ -252,5 +252,3 @@ export type IMessageInbox = IMessage & { export const isIMessageInbox = (message: IMessage): message is IMessageInbox => 'email' in message; export const isVoipMessage = (message: IMessage): message is IVoipMessage => 'voipData' in message; - -export type IOmniRoomClosingMessage = Pick & Partial>;