@budibase/types 2.8.13 → 2.8.16-alpha.4

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.
@@ -1,4 +1,5 @@
1
1
  import { User, Document } from "../"
2
+ import { SocketSession } from "../../sdk"
2
3
 
3
4
  export type AppMetadataErrors = { [key: string]: string[] }
4
5
 
@@ -17,6 +18,7 @@ export interface App extends Document {
17
18
  customTheme?: AppCustomTheme
18
19
  revertableVersion?: string
19
20
  lockedBy?: User
21
+ sessions?: SocketSession[]
20
22
  navigation?: AppNavigation
21
23
  automationErrors?: AppMetadataErrors
22
24
  icon?: AppIcon
package/src/sdk/db.ts CHANGED
@@ -89,7 +89,7 @@ export interface Database {
89
89
 
90
90
  exists(): Promise<boolean>
91
91
  checkSetup(): Promise<Nano.DocumentScope<any>>
92
- get<T>(id?: string): Promise<T | any>
92
+ get<T>(id?: string): Promise<T>
93
93
  remove(
94
94
  id: string | Document,
95
95
  rev?: string
package/src/sdk/search.ts CHANGED
@@ -32,7 +32,7 @@ export interface SearchFilters {
32
32
  [key: string]: any[]
33
33
  }
34
34
  contains?: {
35
- [key: string]: any[]
35
+ [key: string]: any[] | any
36
36
  }
37
37
  notContains?: {
38
38
  [key: string]: any[]