Some checks failed
Create issues from TODOs / todos (push) Failing after 3s
Close inactive issues / close-issues (push) Has been cancelled
Deploy GitHub Pages / deploy-preview (push) Has been cancelled
CI / ⚙️ Variables Setup (push) Has been cancelled
CI / ⚙️ Test Guard (push) Has been cancelled
CI / 🚀 Notify external services - draft (push) Has been cancelled
CI / 📦 Build Packages (push) Has been cancelled
CI / 📦 Meteor Build (coverage) (push) Has been cancelled
CI / 📦 Meteor Build (production) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [account-service presence-service omnichannel-transcript-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [account-service presence-service omnichannel-transcript-service], fips) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [authorization-service queue-worker-service ddp-streamer-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [authorization-service queue-worker-service ddp-streamer-service], fips) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], coverage) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], fips) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [account-service presence-service omnichannel-transcript-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [authorization-service queue-worker-service ddp-streamer-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [rocketchat], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [rocketchat], coverage) (push) Has been cancelled
CI / 🚢 Publish Docker Images (ghcr.io) (push) Has been cancelled
CI / 📦 Track Image Sizes (push) Has been cancelled
CI / 🔎 Code Check - Action Lint (push) Has been cancelled
CI / 🔎 Code Check (push) Has been cancelled
CI / 🔨 Test Storybook (push) Has been cancelled
CI / 🔨 Test Unit (push) Has been cancelled
CI / 🔨 Test API (CE) (push) Has been cancelled
CI / 🔨 Test API Livechat (CE) (push) Has been cancelled
CI / 🔨 Test UI (CE) (push) Has been cancelled
CI / 🔨 Test API (EE) (push) Has been cancelled
CI / 🔨 Test API Livechat (EE) (push) Has been cancelled
CI / 🔨 Test API Apps (deno-runtime - EE) (push) Has been cancelled
CI / 🔨 Test UI (EE) (push) Has been cancelled
CI / 🔨 Test API (FIPS) (push) Has been cancelled
CI / 🔨 Test API Livechat (FIPS) (push) Has been cancelled
CI / 🔨 Test UI (FIPS) (push) Has been cancelled
CI / 🔨 Test Federation Matrix (push) Has been cancelled
CI / 📊 Report Coverage (push) Has been cancelled
CI / ✅ Tests Done (push) Has been cancelled
CI / 🚀 Publish build assets (push) Has been cancelled
CI / 🚀 Publish Docker Images (DockerHub) (push) Has been cancelled
CI / 🚀 Notify external services (push) Has been cancelled
CI / Update Version Durability (push) Has been cancelled
Release / Release (push) Has been cancelled
Code scanning - action / CodeQL-Build (push) Failing after 2s
Auto-close duplicate issues / auto-close-duplicates (push) Failing after 1s
53 lines
1.6 KiB
TypeScript
53 lines
1.6 KiB
TypeScript
import type { IUser } from '../users';
|
|
import type { ILivechatUpdater } from './ILivechatUpdater';
|
|
import type { IMessageBuilder } from './IMessageBuilder';
|
|
import type { IMessageUpdater } from './IMessageUpdater';
|
|
import type { IRoomBuilder } from './IRoomBuilder';
|
|
import type { IUserUpdater } from './IUserUpdater';
|
|
|
|
export interface IModifyUpdater {
|
|
/**
|
|
* Get the updater object responsible for the
|
|
* Livechat integrations
|
|
*/
|
|
getLivechatUpdater(): ILivechatUpdater;
|
|
|
|
/**
|
|
* Gets the update object responsible for
|
|
* methods that update users
|
|
*/
|
|
getUserUpdater(): IUserUpdater;
|
|
|
|
/**
|
|
* Get the updater object responsible for
|
|
* methods that update messages
|
|
*/
|
|
getMessageUpdater(): IMessageUpdater;
|
|
|
|
/**
|
|
* Modifies an existing message.
|
|
* Raises an exception if a non-existent messageId is supplied
|
|
*
|
|
* @param messageId the id of the existing message to modfiy and build
|
|
* @param updater the user who is updating the message
|
|
*/
|
|
message(messageId: string, updater: IUser): Promise<IMessageBuilder>;
|
|
|
|
/**
|
|
* Modifies an existing room.
|
|
* Raises an exception if a non-existent roomId is supplied
|
|
*
|
|
* @param roomId the id of the existing room to modify and build
|
|
* @param updater the user who is updating the room
|
|
*/
|
|
room(roomId: string, updater: IUser): Promise<IRoomBuilder>;
|
|
|
|
/**
|
|
* Finishes the updating process, saving the object to the database.
|
|
* Note: If there is an issue or error while updating, this will throw an error.
|
|
*
|
|
* @param builder the builder instance
|
|
*/
|
|
finish(builder: IMessageBuilder | IRoomBuilder): Promise<void>;
|
|
}
|