@stoker-platform/types 0.5.56 → 0.5.58

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/types",
3
- "version": "0.5.56",
3
+ "version": "0.5.58",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "src/main.ts",
@@ -594,11 +594,16 @@ export type SelectFilter = {
594
594
  field: string
595
595
  title?: string | (() => string)
596
596
  roles?: StokerRole[]
597
- condition?: (value: boolean | string | number | undefined) => boolean
597
+ filterValues?: (value: boolean | string | number | undefined) => boolean
598
598
  defaultValue?:
599
599
  | string
600
600
  | number
601
- | ((parentCollection: CollectionSchema, parentRecord?: StokerRecord) => string | number | undefined)
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
  }
@@ -699,6 +704,12 @@ export interface Assignable {
699
704
  collection: string
700
705
  isAvailable: (record: StokerRecord) => boolean
701
706
  unavailableField?: string
707
+ includeAssignedInFilters?: string[]
708
+ includeValueInFilters?: {
709
+ field: string
710
+ values: unknown[]
711
+ includeValue: unknown
712
+ }[]
702
713
  }
703
714
 
704
715
  export interface CustomListAction {