This repository has been archived on 2024-04-27. You can view files and clone it, but cannot push or open issues or pull requests.
riplog-view/frontend/src/gql-types.ts

44 lines
654 B
TypeScript
Raw Normal View History

2020-01-27 11:56:06 +00:00
export interface GQLMessageList {
messages: GQLMessage[];
next?: string;
}
export interface GQLMessage {
time: Date;
content: string;
username: string;
userRealname: string;
channelName: string;
messageId: string;
}
export interface GQLWorkspace {
name: string;
icon: string;
channels: GQLChannel[];
}
export interface GQLChannel {
name: string;
isPrivate: boolean;
}
export interface GQLPagination {
after?: string;
first?: number;
}
export interface GQLMessageFilter {
channel?: string;
}
export enum GQLSortOrder {
DateAsc,
DateDesc
}
export interface GQLChatInfo {
workspace: string;
channel: string;
}