@stoker-platform/types 0.5.49 → 0.5.50
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 +1 -1
- package/src/types/schema.ts +3 -1
package/package.json
CHANGED
package/src/types/schema.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Timestamp as AdminTimestamp, FieldValue } from "firebase-admin/firestor
|
|
|
2
2
|
import { Timestamp, WhereFilterOp, WriteBatch } from "firebase/firestore"
|
|
3
3
|
import { NodeUtilities, WebUtilities } from "./app"
|
|
4
4
|
import { CalendarOptions } from "@fullcalendar/core"
|
|
5
|
+
import { SearchOptions } from "minisearch"
|
|
5
6
|
|
|
6
7
|
export type StokerRole = string
|
|
7
8
|
export type StokerCollection = string
|
|
@@ -770,6 +771,7 @@ export interface CollectionAdmin {
|
|
|
770
771
|
direction?: "asc" | "desc"
|
|
771
772
|
}>)
|
|
772
773
|
itemsPerPage?: number | (() => number | Promise<number>)
|
|
774
|
+
searchOptions?: SearchOptions
|
|
773
775
|
list?: ListConfig | (() => ListConfig | Promise<ListConfig>)
|
|
774
776
|
cards?: CardsConfig | (() => CardsConfig | Promise<CardsConfig>)
|
|
775
777
|
images?: ImagesConfig | (() => ImagesConfig | Promise<ImagesConfig>)
|
|
@@ -841,6 +843,7 @@ export interface CollectionAdminCache {
|
|
|
841
843
|
field: string
|
|
842
844
|
direction?: "asc" | "desc"
|
|
843
845
|
}
|
|
846
|
+
searchOptions?: SearchOptions
|
|
844
847
|
itemsPerPage?: number
|
|
845
848
|
list?: ListConfig
|
|
846
849
|
cards?: CardsConfig
|
|
@@ -1127,7 +1130,6 @@ export interface CollectionSchema {
|
|
|
1127
1130
|
enableWriteLog?: boolean
|
|
1128
1131
|
preserveWriteLog?: boolean
|
|
1129
1132
|
fullTextSearch?: string[]
|
|
1130
|
-
searchOptions?: Record<string, unknown>
|
|
1131
1133
|
ttl?: string
|
|
1132
1134
|
indexExemption?: boolean
|
|
1133
1135
|
roleSystemFields?: RoleSystemField[]
|