@indicafix/types
Version:
useful package for type sharing in different services.
25 lines (24 loc) • 519 B
TypeScript
import { QuestionType } from './question';
export interface Answer {
id: string;
respondentId: string;
surveyId: string;
roundId: string;
questions: AnswerQuestion[];
status: AnswerStatus;
ip: string;
userAgent: string;
createdAt: Date;
updatedAt: Date;
}
declare type AnswerQuestion = {
questionId: string;
value: any;
type: QuestionType;
};
export declare enum AnswerStatus {
started = "started",
finished = "finished",
deleted = "deleted"
}
export {};