@stoker-platform/types 0.5.57 → 0.5.59
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 +13 -2
package/package.json
CHANGED
package/src/types/schema.ts
CHANGED
|
@@ -594,11 +594,16 @@ export type SelectFilter = {
|
|
|
594
594
|
field: string
|
|
595
595
|
title?: string | (() => string)
|
|
596
596
|
roles?: StokerRole[]
|
|
597
|
-
|
|
597
|
+
filterValues?: (value: boolean | string | number | undefined) => boolean
|
|
598
598
|
defaultValue?:
|
|
599
599
|
| string
|
|
600
600
|
| number
|
|
601
|
-
| ((
|
|
601
|
+
| ((
|
|
602
|
+
parentCollection?: CollectionSchema,
|
|
603
|
+
parentRecord?: StokerRecord,
|
|
604
|
+
isAssigning?: boolean,
|
|
605
|
+
) => string | number | undefined)
|
|
606
|
+
condition?: (parentCollection?: CollectionSchema, parentRecord?: StokerRecord, isAssigning?: boolean) => boolean
|
|
602
607
|
value?: string | number
|
|
603
608
|
style?: "select" | "radio" | "buttons"
|
|
604
609
|
}
|
|
@@ -700,6 +705,11 @@ export interface Assignable {
|
|
|
700
705
|
isAvailable: (record: StokerRecord) => boolean
|
|
701
706
|
unavailableField?: string
|
|
702
707
|
includeAssignedInFilters?: string[]
|
|
708
|
+
includeValueInFilters?: {
|
|
709
|
+
field: string
|
|
710
|
+
values: unknown[]
|
|
711
|
+
includeValue: unknown
|
|
712
|
+
}[]
|
|
703
713
|
}
|
|
704
714
|
|
|
705
715
|
export interface CustomListAction {
|
|
@@ -1111,6 +1121,7 @@ export interface RelationList {
|
|
|
1111
1121
|
constraints?: [string, "==" | "in", unknown][]
|
|
1112
1122
|
loadAll?: boolean
|
|
1113
1123
|
showMetrics?: boolean
|
|
1124
|
+
showFilters?: string[]
|
|
1114
1125
|
}
|
|
1115
1126
|
|
|
1116
1127
|
export interface CollectionSchema {
|