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/INps.ts

35 lines
793 B

import { IRocketChatRecord } from './IRocketChatRecord';
import { IUser } from './IUser';
export enum NPSStatus {
OPEN = 'open',
SENDING = 'sending',
SENT = 'sent',
CLOSED = 'closed',
}
export interface INps extends IRocketChatRecord {
startAt: Date; // start date a banner should be presented
expireAt: Date; // date when banner should not be shown anymore
createdBy: Pick<IUser, '_id' | 'username'>;
createdAt: Date;
status: NPSStatus;
}
export enum INpsVoteStatus {
NEW = 'new',
SENDING = 'sending',
SENT = 'sent',
}
export interface INpsVote extends IRocketChatRecord {
_id: string;
npsId: INps['_id'];
ts: Date;
identifier: string; // voter identifier
roles: IUser['roles']; // voter roles
score: number;
comment: string;
status: INpsVoteStatus;
sentAt?: Date;
}