The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/definition/IImportRecord.ts

36 lines
845 B

import { IImportUser } from './IImportUser';
import { IImportChannel } from './IImportChannel';
import { IImportMessage } from './IImportMessage';
export type IImportRecordType = 'user' | 'channel' | 'message';
export type IImportData = IImportUser | IImportChannel | IImportMessage;
export interface IImportRecord {
data: IImportData;
dataType: IImportRecordType;
_id: string;
options?: {};
errors?: Array<{
message: string;
stack?: string;
}>;
skipped?: boolean;
}
export interface IImportUserRecord extends IImportRecord {
data: IImportUser;
dataType: 'user';
}
export interface IImportChannelRecord extends IImportRecord {
data: IImportChannel;
dataType: 'channel';
}
export interface IImportMessageRecord extends IImportRecord {
data: IImportMessage;
dataType: 'message';
options: {
useQuickInsert?: boolean;
};
}