@indicafix/types
Version:
useful package for type sharing in different services.
40 lines (39 loc) • 827 B
TypeScript
export interface Survey {
id: string;
uuid: string;
name: string;
participants: number;
universe: number;
sample: number;
companyId: string;
projectId: string;
dashboardUrl: string;
activeQuestionnaireId: string;
rounds: readonly Round[];
status: SurveyStatus;
createdAt: Date;
updatedAt: Date;
}
export declare enum SurveyStatus {
pending = "pending",
active = "active",
archived = "archived",
deleted = "deleted"
}
export declare enum RoundStatus {
pending = "pending",
started = "started",
paused = "paused",
finished = "finished"
}
export interface Round {
id: string;
startAt: Date;
finishAt: Date;
dashboardUrl: string;
status: RoundStatus;
}
export interface IGenericRecord<T> {
key: string;
value: T;
}