@stoker-platform/types 0.5.59 → 0.5.61

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.59",
3
+ "version": "0.5.61",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "src/main.ts",
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
 
@@ -522,6 +522,7 @@ export interface ImagesConfig {
522
522
  hooks: any
523
523
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
524
524
  utils: any
525
+ setGlobalLoading: (operation: "+" | "-", id: string, server?: boolean, cache?: boolean) => void
525
526
  }>
526
527
  height: number
527
528
  condition?: (parentCollection?: CollectionSchema, parentRecord?: StokerRecord, isAssigning?: boolean) => boolean
@@ -594,7 +595,18 @@ export type SelectFilter = {
594
595
  field: string
595
596
  title?: string | (() => string)
596
597
  roles?: StokerRole[]
597
- filterValues?: (value: boolean | string | number | undefined) => boolean
598
+ titles?: (
599
+ value: string,
600
+ relationCollection?: CollectionSchema,
601
+ relationParent?: StokerRecord,
602
+ isAssigning?: boolean,
603
+ ) => string
604
+ filterValues?: (
605
+ value: boolean | string | number | undefined,
606
+ relationCollection?: CollectionSchema,
607
+ relationParent?: StokerRecord,
608
+ isAssigning?: boolean,
609
+ ) => boolean
598
610
  defaultValue?:
599
611
  | string
600
612
  | number