@stoker-platform/types 0.5.59 → 0.5.60
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/app.ts +2 -0
- package/src/types/schema.ts +12 -1
package/package.json
CHANGED
package/src/types/app.ts
CHANGED
|
@@ -182,6 +182,7 @@ export interface AdminConfig {
|
|
|
182
182
|
}
|
|
183
183
|
dashboard?: DashboardItem[]
|
|
184
184
|
homePage?: Record<StokerRole, StokerCollection> | (() => Record<StokerRole, StokerCollection>)
|
|
185
|
+
searchAll?: boolean | (() => boolean)
|
|
185
186
|
}
|
|
186
187
|
|
|
187
188
|
export interface GenerateGlobalConfigParams {
|
|
@@ -331,6 +332,7 @@ export interface GlobalConfigCache {
|
|
|
331
332
|
}
|
|
332
333
|
dashboard?: DashboardItem[]
|
|
333
334
|
homePage?: Record<StokerRole, StokerCollection>
|
|
335
|
+
searchAll?: boolean
|
|
334
336
|
}
|
|
335
337
|
}
|
|
336
338
|
|
package/src/types/schema.ts
CHANGED
|
@@ -594,7 +594,18 @@ export type SelectFilter = {
|
|
|
594
594
|
field: string
|
|
595
595
|
title?: string | (() => string)
|
|
596
596
|
roles?: StokerRole[]
|
|
597
|
-
|
|
597
|
+
titles?: (
|
|
598
|
+
value: string,
|
|
599
|
+
relationCollection?: CollectionSchema,
|
|
600
|
+
relationParent?: StokerRecord,
|
|
601
|
+
isAssigning?: boolean,
|
|
602
|
+
) => string
|
|
603
|
+
filterValues?: (
|
|
604
|
+
value: boolean | string | number | undefined,
|
|
605
|
+
relationCollection?: CollectionSchema,
|
|
606
|
+
relationParent?: StokerRecord,
|
|
607
|
+
isAssigning?: boolean,
|
|
608
|
+
) => boolean
|
|
598
609
|
defaultValue?:
|
|
599
610
|
| string
|
|
600
611
|
| number
|