|
|
@@ -1,4 +1,4 @@
|
|
|
-import { Model } from '@vuex-orm/core'
|
|
|
+import { Model, Query } from '@vuex-orm/core'
|
|
|
import { Ability } from '@casl/ability'
|
|
|
import { Store } from 'vuex'
|
|
|
import { Context } from '@nuxt/types/app'
|
|
|
@@ -154,7 +154,8 @@ interface UrlArgs {
|
|
|
readonly idTemp?: any,
|
|
|
readonly rootId?: number,
|
|
|
readonly showProgress?: boolean,
|
|
|
- readonly hook?: string
|
|
|
+ readonly hook?: string,
|
|
|
+ readonly params?: AnyJson
|
|
|
}
|
|
|
|
|
|
interface ImageArgs {
|
|
|
@@ -163,9 +164,15 @@ interface ImageArgs {
|
|
|
readonly width: number
|
|
|
}
|
|
|
|
|
|
+interface Filter{
|
|
|
+ readonly key: string,
|
|
|
+ readonly value: string|boolean|number
|
|
|
+}
|
|
|
+
|
|
|
interface ListArgs {
|
|
|
- readonly itemsPerPage: number,
|
|
|
- readonly page: number
|
|
|
+ readonly itemsPerPage?: number,
|
|
|
+ readonly page?: number
|
|
|
+ readonly filters?: Array<Filter>
|
|
|
}
|
|
|
|
|
|
interface DataProviderArgs extends UrlArgs {
|
|
|
@@ -173,7 +180,8 @@ interface DataProviderArgs extends UrlArgs {
|
|
|
listArgs?: ListArgs,
|
|
|
}
|
|
|
interface DataPersisterArgs extends UrlArgs {
|
|
|
- data?: AnyJson
|
|
|
+ data?: AnyJson,
|
|
|
+ query?: Query
|
|
|
}
|
|
|
interface DataDeleterArgs extends UrlArgs {}
|
|
|
|