21 lines
374 B
TypeScript
21 lines
374 B
TypeScript
import { IApi } from '../api/models';
|
|
|
|
export interface IDocument {
|
|
id?: string;
|
|
name?: string;
|
|
type: 'API' | 'TEXT';
|
|
title?: string;
|
|
content?: string;
|
|
rank?: number;
|
|
api?: IApi;
|
|
created_at?: string;
|
|
updated_at?: string;
|
|
}
|
|
|
|
export interface IDocumentListResponse {
|
|
count: number;
|
|
items: IDocument[];
|
|
}
|
|
|
|
export type IDocumentDetailResponse = IDocument;
|