@budibase/types 2.9.19-alpha.0 → 2.9.19

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.9.19-alpha.0",
3
+ "version": "2.9.19",
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": "7138ad6196ea355d44b7db3340bfd1836a25ddc2"
38
+ "gitHead": "1e299bc55448c482ae317151dd4fdddefcca558c"
39
39
  }
@@ -1,4 +1,3 @@
1
- import { SearchParams } from "../../../sdk"
2
1
  import { Row } from "../../../documents"
3
2
 
4
3
  export interface PatchRowRequest extends Row {
@@ -9,14 +8,6 @@ export interface PatchRowRequest extends Row {
9
8
 
10
9
  export interface PatchRowResponse extends Row {}
11
10
 
12
- export interface SearchRowRequest extends Omit<SearchParams, "tableId"> {}
13
-
14
- export interface SearchViewRowRequest
15
- extends Pick<
16
- SearchRowRequest,
17
- "sort" | "sortOrder" | "sortType" | "limit" | "bookmark" | "paginate"
18
- > {}
19
-
20
- export interface SearchRowResponse {
11
+ export interface SearchResponse {
21
12
  rows: any[]
22
13
  }
@@ -8,4 +8,3 @@ export * from "./system"
8
8
  export * from "./app"
9
9
  export * from "./global"
10
10
  export * from "./pagination"
11
- export * from "./searchFilter"
@@ -1,5 +1,6 @@
1
- import { SearchFilter, SortOrder, SortType } from "../../api"
2
- import { UIFieldMetadata } from "./table"
1
+ import { SortOrder, SortType } from "../../api"
2
+ import { SearchFilters } from "../../sdk"
3
+ import { TableSchema, UIFieldMetadata } from "./table"
3
4
 
4
5
  export interface View {
5
6
  name: string
@@ -19,7 +20,7 @@ export interface ViewV2 {
19
20
  name: string
20
21
  primaryDisplay?: string
21
22
  tableId: string
22
- query?: SearchFilter[]
23
+ query?: SearchFilters
23
24
  sort?: {
24
25
  field: string
25
26
  order?: SortOrder
package/src/sdk/index.ts CHANGED
@@ -19,4 +19,3 @@ export * from "./user"
19
19
  export * from "./cli"
20
20
  export * from "./websocket"
21
21
  export * from "./permissions"
22
- export * from "./row"
@@ -1,51 +0,0 @@
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">
package/src/sdk/row.ts DELETED
@@ -1,16 +0,0 @@
1
- import { SortOrder, SortType } from "../api"
2
- import { SearchFilters } from "./search"
3
-
4
- export interface SearchParams {
5
- tableId: string
6
- paginate?: boolean
7
- query: SearchFilters
8
- bookmark?: string
9
- limit?: number
10
- sort?: string
11
- sortOrder?: SortOrder
12
- sortType?: SortType
13
- version?: string
14
- disableEscaping?: boolean
15
- fields?: string[]
16
- }