@indicafix/types
Version:
useful package for type sharing in different services.
36 lines (35 loc) • 780 B
TypeScript
import { QuestionType, QuestionConfig } from './question';
export interface Topic {
id: string;
slug: string;
name: string;
description: string;
status: TopicStatus;
title: string;
openingDescription: string;
inputs: Inputs[];
questions: TopicQuestion[];
createdAt: Date;
updatedAt: Date;
}
export declare enum TopicStatus {
inactive = "inactive",
active = "active",
archived = "archived",
deleted = "deleted"
}
export declare type Inputs = {
article: boolean;
name: string;
};
export declare type TopicQuestion = {
id: string;
libraryId: string;
type: QuestionType;
text: string;
isEditable: boolean;
config: QuestionConfig;
createdAt: Date;
updatedAt: Date;
__v: number;
};