@budibase/types 2.8.32-alpha.4 → 2.8.32-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/types",
|
|
3
|
-
"version": "2.8.32-alpha.
|
|
3
|
+
"version": "2.8.32-alpha.6",
|
|
4
4
|
"description": "Budibase types",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"scim-patch": "^0.7.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "bb28dd02114319b7973361bc8aa9fb7056ecdba0"
|
|
39
39
|
}
|
package/src/api/web/app/rows.ts
CHANGED
|
@@ -12,7 +12,10 @@ export interface PatchRowResponse extends Row {}
|
|
|
12
12
|
export interface SearchRowRequest extends Omit<SearchParams, "tableId"> {}
|
|
13
13
|
|
|
14
14
|
export interface SearchViewRowRequest
|
|
15
|
-
extends Pick<
|
|
15
|
+
extends Pick<
|
|
16
|
+
SearchRowRequest,
|
|
17
|
+
"sort" | "sortOrder" | "sortType" | "limit" | "bookmark" | "paginate"
|
|
18
|
+
> {}
|
|
16
19
|
|
|
17
20
|
export interface SearchRowResponse {
|
|
18
21
|
rows: any[]
|
package/src/api/web/index.ts
CHANGED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { FieldType } from "../../documents"
|
|
2
|
+
|
|
3
|
+
export type SearchFilter = {
|
|
4
|
+
operator: keyof SearchQuery
|
|
5
|
+
field: string
|
|
6
|
+
type?: FieldType
|
|
7
|
+
value: any
|
|
8
|
+
externalType?: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type SearchQuery = {
|
|
12
|
+
allOr?: boolean
|
|
13
|
+
string?: {
|
|
14
|
+
[key: string]: string
|
|
15
|
+
}
|
|
16
|
+
fuzzy?: {
|
|
17
|
+
[key: string]: string
|
|
18
|
+
}
|
|
19
|
+
range?: {
|
|
20
|
+
[key: string]: {
|
|
21
|
+
high: number | string
|
|
22
|
+
low: number | string
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
equal?: {
|
|
26
|
+
[key: string]: any
|
|
27
|
+
}
|
|
28
|
+
notEqual?: {
|
|
29
|
+
[key: string]: any
|
|
30
|
+
}
|
|
31
|
+
empty?: {
|
|
32
|
+
[key: string]: any
|
|
33
|
+
}
|
|
34
|
+
notEmpty?: {
|
|
35
|
+
[key: string]: any
|
|
36
|
+
}
|
|
37
|
+
oneOf?: {
|
|
38
|
+
[key: string]: any[]
|
|
39
|
+
}
|
|
40
|
+
contains?: {
|
|
41
|
+
[key: string]: any[]
|
|
42
|
+
}
|
|
43
|
+
notContains?: {
|
|
44
|
+
[key: string]: any[]
|
|
45
|
+
}
|
|
46
|
+
containsAny?: {
|
|
47
|
+
[key: string]: any[]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type SearchQueryFields = Omit<SearchQuery, "allOr">
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { SortOrder, SortType } from "../../api"
|
|
2
|
-
import {
|
|
3
|
-
import { TableSchema, UIFieldMetadata } from "./table"
|
|
1
|
+
import { SearchFilter, SortOrder, SortType } from "../../api"
|
|
2
|
+
import { UIFieldMetadata } from "./table"
|
|
4
3
|
|
|
5
4
|
export interface View {
|
|
6
5
|
name: string
|
|
@@ -20,7 +19,7 @@ export interface ViewV2 {
|
|
|
20
19
|
name: string
|
|
21
20
|
primaryDisplay?: string
|
|
22
21
|
tableId: string
|
|
23
|
-
query?:
|
|
22
|
+
query?: SearchFilter[]
|
|
24
23
|
sort?: {
|
|
25
24
|
field: string
|
|
26
25
|
order?: SortOrder
|