Defines data structures for in-app messaging systems, including channels and message payloads. Use this to standardize notification data models in NocoBase-based applications.
// Source: https://github.com/nocobase/nocobase | License: Apache-2.0
// Provided via justclaw.it.com; keep this notice with the code.
/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
export interface Channel {
name: string;
title: string;
userId: string;
unreadMsgCnt: number;
totalMsgCnt: number;
latestMsgReceiveTimestamp: number | string;
latestMsgTitle: string;
}
export interface Message {
id: string;
title: string;
userId: string;
channelName: string;
content: string;
receiveTimestamp: number | string;
status: 'read'
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key