@stoker-platform/types 0.5.48 → 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 +4 -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
|
|
@@ -687,6 +688,7 @@ export interface CustomRecordPage {
|
|
|
687
688
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
688
689
|
utils: any
|
|
689
690
|
}>
|
|
691
|
+
props?: Record<string, unknown>
|
|
690
692
|
condition?: (record: StokerRecord | undefined) => boolean
|
|
691
693
|
icon?: React.FC<{ className?: string }>
|
|
692
694
|
}
|
|
@@ -769,6 +771,7 @@ export interface CollectionAdmin {
|
|
|
769
771
|
direction?: "asc" | "desc"
|
|
770
772
|
}>)
|
|
771
773
|
itemsPerPage?: number | (() => number | Promise<number>)
|
|
774
|
+
searchOptions?: SearchOptions
|
|
772
775
|
list?: ListConfig | (() => ListConfig | Promise<ListConfig>)
|
|
773
776
|
cards?: CardsConfig | (() => CardsConfig | Promise<CardsConfig>)
|
|
774
777
|
images?: ImagesConfig | (() => ImagesConfig | Promise<ImagesConfig>)
|
|
@@ -840,6 +843,7 @@ export interface CollectionAdminCache {
|
|
|
840
843
|
field: string
|
|
841
844
|
direction?: "asc" | "desc"
|
|
842
845
|
}
|
|
846
|
+
searchOptions?: SearchOptions
|
|
843
847
|
itemsPerPage?: number
|
|
844
848
|
list?: ListConfig
|
|
845
849
|
cards?: CardsConfig
|
|
@@ -1126,7 +1130,6 @@ export interface CollectionSchema {
|
|
|
1126
1130
|
enableWriteLog?: boolean
|
|
1127
1131
|
preserveWriteLog?: boolean
|
|
1128
1132
|
fullTextSearch?: string[]
|
|
1129
|
-
searchOptions?: Record<string, unknown>
|
|
1130
1133
|
ttl?: string
|
|
1131
1134
|
indexExemption?: boolean
|
|
1132
1135
|
roleSystemFields?: RoleSystemField[]
|