/** * Copyright (c) 2020 The Nuinalp Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ import { Model } from '@nuinalp/api-core/browser'; import Books from './books'; import Bookshelve from './bookshelves'; import Chapters from './chapters'; import Pages from './pages'; import User from './user'; export default class Search extends Model { protected static adapter: any; id: string; label: string; description: string; type: 'book' | 'bookshelve' | 'chapter' | 'page'; match_score: number; page: Pages; book: Books; chapter: Chapters; bookshelve: Bookshelve; created_at: string; updated_at: string; user: User; tags?: string[]; }