Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/thick-kings-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
'@rocket.chat/tools': minor
'@rocket.chat/omnichannel-services': patch
'rocketchat-services': patch
'@rocket.chat/authorization-service': patch
'@rocket.chat/presence-service': patch
'@rocket.chat/account-service': patch
'@rocket.chat/ddp-streamer': patch
'@rocket.chat/ui-client': patch
'@rocket.chat/abac': patch
'@rocket.chat/models': patch
'@rocket.chat/meteor': patch
---

Drops `@rocket.chat/string-helpers` in favor of `@rocket.chat/tools`
2 changes: 1 addition & 1 deletion apps/meteor/app/emoji-native/lib/getEmojiConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { asciiList } from '@rocket.chat/message-parser';
import { escapeHTML, escapeRegExp, unescapeHTML } from '@rocket.chat/string-helpers';
import { escapeHTML, escapeRegExp, unescapeHTML } from '@rocket.chat/tools';

import type { EmojiEntry } from './generateEmojiData';
import { getEmojiData } from './generateEmojiData';
Expand Down
4 changes: 2 additions & 2 deletions apps/meteor/app/emoji/client/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';
import type { TranslationKey } from '@rocket.chat/ui-contexts';

import type { EmojiCategory, EmojiItem } from '.';
Expand Down Expand Up @@ -217,7 +217,7 @@ export const getEmojisBySearchTerm = (

export const removeFromRecent = (emoji: string, recentEmojis: string[], setRecentEmojis?: (emojis: string[]) => void) => {
const _emoji = emoji.replace(/(^:|:$)/g, '');
const pos = recentEmojis.indexOf(_emoji as never);
const pos = recentEmojis.indexOf(_emoji);

if (pos === -1) {
return;
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/highlight-words/client/helper.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';

const checkHighlightedWordsInUrls = (msg: string, urlRegex: RegExp) => msg.match(urlRegex);

Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/markdown/lib/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Markdown is a named function that will parse markdown syntax
* @param {Object} message - The message object
*/
import { escapeHTML } from '@rocket.chat/string-helpers';
import { escapeHTML } from '@rocket.chat/tools';
import { Meteor } from 'meteor/meteor';

import { filtered } from './parser/filtered/filtered';
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/markdown/lib/parser/original/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* code() is a named function that will parse `inline code` and ```codeblock``` syntaxes
* @param {Object} message - The message object
*/
import { unescapeHTML } from '@rocket.chat/string-helpers';
import { unescapeHTML } from '@rocket.chat/tools';

import { addAsToken } from './token';
import hljs, { register } from '../../hljs';
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/mentions/lib/MentionsParser.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { IMessage } from '@rocket.chat/core-typings';
import { escapeHTML } from '@rocket.chat/string-helpers';
import { escapeHTML } from '@rocket.chat/tools';

export type MentionsParserArgs = {
pattern: () => string;
Expand Down
3 changes: 1 addition & 2 deletions apps/meteor/app/utils/lib/getURL.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { isAbsoluteURL } from '@rocket.chat/tools';
import { escapeRegExp, isAbsoluteURL } from '@rocket.chat/tools';

import { ltrim, rtrim, trim } from '../../../lib/utils/stringUtils';

Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/components/GazzodownText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { IRoom } from '@rocket.chat/core-typings';
import { useLocalStorage } from '@rocket.chat/fuselage-hooks';
import type { ChannelMention, UserMention } from '@rocket.chat/gazzodown';
import { MarkupInteractionContext } from '@rocket.chat/gazzodown';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';
import { useLayout, useRouter, useUserPreference, useUserId, useUserCard } from '@rocket.chat/ui-contexts';
import type { UIEvent, ReactNode } from 'react';
import { useCallback, memo, useMemo } from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type RoomType, isDirectMessageRoom } from '@rocket.chat/core-typings';
import { AutoComplete, Box, Option, OptionAvatar, OptionContent, Chip } from '@rocket.chat/fuselage';
import { useDebouncedValue } from '@rocket.chat/fuselage-hooks';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';
import { RoomAvatar } from '@rocket.chat/ui-avatar';
import { useUser, useUserSubscriptions } from '@rocket.chat/ui-contexts';
import type { ComponentProps } from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { IMessage, SlashCommand } from '@rocket.chat/core-typings';
import { Random } from '@rocket.chat/random';
import { escapeHTML } from '@rocket.chat/string-helpers';
import { escapeHTML } from '@rocket.chat/tools';

import { hasAtLeastOnePermission } from '../../../../app/authorization/client';
import { slashCommands } from '../../../../app/utils/client';
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/lib/customEmoji.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { IEmoji } from '@rocket.chat/core-typings';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';

import { emoji, removeFromRecent, replaceEmojiInRecent } from '../../app/emoji/client';
import { getURL } from '../../app/utils/client';
Expand Down
7 changes: 3 additions & 4 deletions apps/meteor/client/lib/customOAuth/CustomOAuth.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import type { OAuthConfiguration, OauthConfig } from '@rocket.chat/core-typings';
import { Random } from '@rocket.chat/random';
import { capitalize } from '@rocket.chat/string-helpers';
import { isAbsoluteURL } from '@rocket.chat/tools';
import { capitalize, isAbsoluteURL } from '@rocket.chat/tools';
import { Accounts } from 'meteor/accounts-base';
import { Meteor } from 'meteor/meteor';
import { OAuth } from 'meteor/oauth';

import { CustomOAuthError } from './CustomOAuthError';
import type { IOAuthProvider } from '../../definitions/IOAuthProvider';
import { createOAuthTotpLoginMethod } from '../../meteor/login/oauth';
import { overrideLoginMethod, type LoginCallback } from '../2fa/overrideLoginMethod';
import { loginServices } from '../loginServices';
import { CustomOAuthError } from './CustomOAuthError';

const configuredOAuthServices = new Map<string, CustomOAuth>();

Expand Down Expand Up @@ -54,7 +53,7 @@ export class CustomOAuth<TServiceName extends string = string> implements IOAuth
}

configureLogin() {
const loginWithService = `loginWith${capitalize(this.name) as Capitalize<TServiceName>}` as const;
const loginWithService = `loginWith${capitalize(this.name)}` as const;

const loginWithOAuthTokenAndTOTP = createOAuthTotpLoginMethod(this);

Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/lib/loginServices.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { LoginServiceConfiguration } from '@rocket.chat/core-typings';
import { Emitter } from '@rocket.chat/emitter';
import { capitalize } from '@rocket.chat/string-helpers';
import { capitalize } from '@rocket.chat/tools';
import type { LoginService } from '@rocket.chat/ui-contexts';

import { sdk } from '../../app/utils/client/lib/SDKClient';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { IMessage } from '@rocket.chat/core-typings';
import { isDirectMessageRoom, isE2EEMessage, isMultipleDirectMessageRoom, isVideoConfMessage } from '@rocket.chat/core-typings';
import { escapeHTML } from '@rocket.chat/string-helpers';
import { escapeHTML } from '@rocket.chat/tools';
import type { SubscriptionWithRoom } from '@rocket.chat/ui-contexts';
import type { TFunction } from 'i18next';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { IMessage } from '@rocket.chat/core-typings';
import { escapeHTML } from '@rocket.chat/string-helpers';
import { escapeHTML } from '@rocket.chat/tools';
import type { TFunction } from 'i18next';

import { shortnameToUnicode } from '../../../../app/emoji-native/lib/shortnameToUnicode';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useDebouncedValue } from '@rocket.chat/fuselage-hooks';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { isTruthy } from '@rocket.chat/tools';
import { escapeRegExp, isTruthy } from '@rocket.chat/tools';
import type { SubscriptionWithRoom } from '@rocket.chat/ui-contexts';
import { useEndpoint, useUserSubscriptions } from '@rocket.chat/ui-contexts';
import { useQuery } from '@tanstack/react-query';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useDebouncedValue } from '@rocket.chat/fuselage-hooks';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';
import type { SubscriptionWithRoom } from '@rocket.chat/ui-contexts';
import { useEndpoint, useUserSubscriptions } from '@rocket.chat/ui-contexts';
import { useQuery } from '@tanstack/react-query';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { LoginServiceConfiguration } from '@rocket.chat/core-typings';
import { capitalize } from '@rocket.chat/string-helpers';
import { capitalize } from '@rocket.chat/tools';
import { AuthenticationContext, useSetting } from '@rocket.chat/ui-contexts';
import { Accounts } from 'meteor/accounts-base';
import { Meteor } from 'meteor/meteor';
Expand Down
3 changes: 1 addition & 2 deletions apps/meteor/client/providers/TranslationProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import {
} from '@rocket.chat/i18n';
import languages from '@rocket.chat/i18n/dist/languages';
import en from '@rocket.chat/i18n/dist/resources/en.i18n.json';
import { capitalize } from '@rocket.chat/string-helpers';
import { normalizeLanguage } from '@rocket.chat/tools';
import { capitalize, normalizeLanguage } from '@rocket.chat/tools';
import type { TranslationContextValue } from '@rocket.chat/ui-contexts';
import { useSetting, TranslationContext } from '@rocket.chat/ui-contexts';
import type i18next from 'i18next';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Pagination } from '@rocket.chat/fuselage';
import { useDebouncedValue } from '@rocket.chat/fuselage-hooks';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';
import {
GenericTable,
GenericTableHeader,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Pagination, States, StatesActions, StatesAction, StatesIcon, StatesTitle } from '@rocket.chat/fuselage';
import { useDebouncedValue } from '@rocket.chat/fuselage-hooks';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';
import {
GenericTable,
GenericTableBody,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { IPermission } from '@rocket.chat/core-typings';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';
import type { TFunction } from 'i18next';

export const mapPermissionKeys = ({ t, permissions }: { t: TFunction; permissions: IPermission[] }) =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ISetting } from '@rocket.chat/core-typings';
import { Button } from '@rocket.chat/fuselage';
import { capitalize } from '@rocket.chat/string-helpers';
import { capitalize } from '@rocket.chat/tools';
import { GenericModal } from '@rocket.chat/ui-client';
import { useToastMessageDispatch, useAbsoluteUrl, useEndpoint, useTranslation, useSetModal } from '@rocket.chat/ui-contexts';
import DOMPurify from 'dompurify';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { IOutboundProviderTemplate } from '@rocket.chat/apps-engine/definition/outboundCommunication';
import { capitalize } from '@rocket.chat/string-helpers';
import { capitalize } from '@rocket.chat/tools';

import { extractParameterMetadata, processTemplatePreviewText } from './template';
import type { TemplateMediaParameter, TemplateComponent, TemplateParameterMetadata } from '../types/template';
Expand Down Expand Up @@ -55,7 +55,7 @@ describe('processTemplatePreviewText', () => {
expect(text).toBe('Hello World');
});

it('it should keep the placeholder in case the parameter is an empty string', () => {
it('should keep the placeholder in case the parameter is an empty string', () => {
const text = processTemplatePreviewText('Hello {{1}}', [{ type: 'text', value: '', format: 'text' }]);

expect(text).toBe('Hello {{1}}');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { IOutboundProviderTemplate } from '@rocket.chat/core-typings';
import { capitalize } from '@rocket.chat/string-helpers';
import { capitalize } from '@rocket.chat/tools';

import type { ComponentType, TemplateParameterMetadata, TemplateParameter } from '../types/template';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { IMessage } from '@rocket.chat/core-typings';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';
import { useEndpoint } from '@rocket.chat/ui-contexts';
import { useInfiniteQuery } from '@tanstack/react-query';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { capitalize } from '@rocket.chat/string-helpers';
import { capitalize } from '@rocket.chat/tools';
import type { TranslationKey } from '@rocket.chat/ui-contexts';
import { useEndpoint } from '@rocket.chat/ui-contexts';
import { useQuery } from '@tanstack/react-query';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { IDiscussionMessage, IMessage } from '@rocket.chat/core-typings';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';
import { useEndpoint } from '@rocket.chat/ui-contexts';
import { useInfiniteQuery } from '@tanstack/react-query';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Document, Font, Image, Page, pdf, StyleSheet, Text, View } from '@react-pdf/renderer';
import type { IMessage, MessageAttachmentDefault } from '@rocket.chat/core-typings';
import { MessageTypes } from '@rocket.chat/message-types';
import { escapeHTML } from '@rocket.chat/string-helpers';
import { escapeHTML } from '@rocket.chat/tools';
import { useSetting, useToastMessageDispatch, useAbsoluteUrl } from '@rocket.chat/ui-contexts';
import { useMutation } from '@tanstack/react-query';
import { useEffect } from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type IThreadMainMessage } from '@rocket.chat/core-typings';
import { MessageTypes } from '@rocket.chat/message-types';
import { escapeHTML } from '@rocket.chat/string-helpers';
import { escapeHTML } from '@rocket.chat/tools';
import { useUser, useSetting } from '@rocket.chat/ui-contexts';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { IThreadMainMessage, IMessage, ISubscription } from '@rocket.chat/core-typings';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';
import { useEndpoint, useUserId } from '@rocket.chat/ui-contexts';
import { useInfiniteQuery } from '@tanstack/react-query';

Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/views/room/hooks/useBanUser.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { escapeHTML } from '@rocket.chat/string-helpers';
import { escapeHTML } from '@rocket.chat/tools';
import { GenericModal } from '@rocket.chat/ui-client';
import { useSetModal, useToastMessageDispatch, useUserRoom, useEndpoint } from '@rocket.chat/ui-contexts';
import { useMutation, useQueryClient } from '@tanstack/react-query';
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/views/room/hooks/useUnbanUser.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { escapeHTML } from '@rocket.chat/string-helpers';
import { escapeHTML } from '@rocket.chat/tools';
import { GenericModal } from '@rocket.chat/ui-client';
import { useEndpoint, useSetModal, useToastMessageDispatch, useUserRoom } from '@rocket.chat/ui-contexts';
import { useMutation, useQueryClient } from '@tanstack/react-query';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { IRoom, IUser } from '@rocket.chat/core-typings';
import { isRoomFederated, isRoomNativeFederated } from '@rocket.chat/core-typings';
import { useStableCallback } from '@rocket.chat/fuselage-hooks';
import { escapeHTML } from '@rocket.chat/string-helpers';
import { escapeHTML } from '@rocket.chat/tools';
import { GenericModal } from '@rocket.chat/ui-client';
import {
useTranslation,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { IRoom, IUser } from '@rocket.chat/core-typings';
import { isRoomFederated, isRoomNativeFederated } from '@rocket.chat/core-typings';
import { useStableCallback } from '@rocket.chat/fuselage-hooks';
import { escapeHTML } from '@rocket.chat/string-helpers';
import { escapeHTML } from '@rocket.chat/tools';
import { GenericModal } from '@rocket.chat/ui-client';
import {
useTranslation,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { IRoom, IUser } from '@rocket.chat/core-typings';
import { useStableCallback } from '@rocket.chat/fuselage-hooks';
import { escapeHTML } from '@rocket.chat/string-helpers';
import { escapeHTML } from '@rocket.chat/tools';
import { GenericModal } from '@rocket.chat/ui-client';
import {
useAllPermissions,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { IRoom, IUser, Serialized } from '@rocket.chat/core-typings';
import { isRoomFederated, isRoomNativeFederated } from '@rocket.chat/core-typings';
import { useStableCallback } from '@rocket.chat/fuselage-hooks';
import { escapeHTML } from '@rocket.chat/string-helpers';
import { escapeHTML } from '@rocket.chat/tools';
import { GenericModal } from '@rocket.chat/ui-client';
import {
usePermission,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type { IRoom } from '@rocket.chat/core-typings';
import { isOmnichannelRoom } from '@rocket.chat/core-typings';
import { useLocalStorage } from '@rocket.chat/fuselage-hooks';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { isTruthy } from '@rocket.chat/tools';
import { escapeRegExp, isTruthy } from '@rocket.chat/tools';
import type { SubscriptionWithRoom } from '@rocket.chat/ui-contexts';
import { useEndpoint, useSetting, useUserId, useUserPreference } from '@rocket.chat/ui-contexts';
import { useQueryClient } from '@tanstack/react-query';
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/views/root/hooks/useIframeCommands.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { UserStatus } from '@rocket.chat/core-typings';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';
import { type LocationPathname, UserContext, useLoginWithCustomOauth, useLoginWithToken, useSetting } from '@rocket.chat/ui-contexts';
import { useContext, useEffect } from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';
import { type LocationPathname, useLoginWithToken, useSetting } from '@rocket.chat/ui-contexts';
import { useEffect } from 'react';

Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/ee/server/api/lib/canned-responses.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CannedResponse } from '@rocket.chat/models';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';

import { hasPermissionAsync } from '../../../../server/lib/authorization/hasPermission';
import { getDepartmentsWhichUserCanAccess } from '../v1/omnichannel/lib/departments';
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/ee/server/api/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
validateNotFoundErrorResponse,
validateUnauthorizedErrorResponse,
} from '@rocket.chat/rest-typings';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';

import { API } from '../../../server/api/api';
import { getPaginationItems } from '../../../server/api/lib/getPaginationItems';
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/ee/server/api/v1/omnichannel/lib/monitors.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ILivechatMonitor, IUser } from '@rocket.chat/core-typings';
import { Users } from '@rocket.chat/models';
import type { PaginatedResult } from '@rocket.chat/rest-typings';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';

export async function findMonitors({
text,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Message } from '@rocket.chat/core-services';
import type { ILivechatPriority, IOmnichannelRoom, IUser } from '@rocket.chat/core-typings';
import { LivechatInquiry, LivechatPriority, LivechatRooms } from '@rocket.chat/models';
import type { PaginatedResult } from '@rocket.chat/rest-typings';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { escapeRegExp } from '@rocket.chat/tools';
import type { FindOptions } from 'mongodb';

import { notifyOnLivechatInquiryChangedByRoom, notifyOnRoomChanged } from '../../../../../../server/lib/notifyListener';
Expand Down
Loading
Loading