chore!: removes livechat:getRoutingConfig deprecated method (#36924)

This commit is contained in:
Lucas Pelegrino 2025-11-04 17:24:47 -03:00 committed by Guilherme Gazzo
parent ec0f8b435d
commit 94079f8686
3 changed files with 5 additions and 21 deletions

View File

@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": major
---
Removes deprecated Realtime API method: `livechat:getRoutingConfig`

View File

@ -15,7 +15,6 @@ import './hooks/afterUserActions';
import './hooks/afterAgentRemoved';
import './hooks/afterSaveOmnichannelMessage';
import './methods/getAnalyticsChartData';
import './methods/getRoutingConfig';
import './methods/removeAllClosedRooms';
import './methods/removeCustomField';
import './methods/removeRoom';

View File

@ -1,20 +0,0 @@
import type { OmichannelRoutingConfig } from '@rocket.chat/core-typings';
import type { ServerMethods } from '@rocket.chat/ddp-client';
import { Meteor } from 'meteor/meteor';
import { methodDeprecationLogger } from '../../../lib/server/lib/deprecationWarningLogger';
import { RoutingManager } from '../lib/RoutingManager';
declare module '@rocket.chat/ddp-client' {
// eslint-disable-next-line @typescript-eslint/naming-convention
interface ServerMethods {
'livechat:getRoutingConfig'(): OmichannelRoutingConfig | undefined;
}
}
Meteor.methods<ServerMethods>({
'livechat:getRoutingConfig'() {
methodDeprecationLogger.method('livechat:getRoutingConfig', '8.0.0', 'v1/livechat/config/routing');
return RoutingManager.getConfig();
},
});