UNPKG

@vuex-orm/core

Version:

The Vuex plugin to enable Object-Relational Mapping access to the Vuex Store.

36 lines (35 loc) 961 B
import { Record } from '../../data'; import Predicate from '../../query/contracts/Predicate'; import PersistOptions from '../../query/options/PersistOptions'; export declare type Condition = (record: Record) => boolean; export interface New { entity: string; } export interface Create extends PersistOptions { entity: string; data: Record | Record[]; } export interface Insert extends PersistOptions { entity: string; data: Record | Record[]; } export interface Update extends PersistOptions { entity: string; data: Record | Record[]; where?: string | number | Condition; } export interface InsertOrUpdate extends PersistOptions { entity: string; data: Record | Record[]; } export interface DeleteById { entity: string; where: string | number; } export interface DeleteByCondition { entity: string; where: Predicate; } export interface DeleteAll { entity: string; }