@stoker-platform/types 0.5.4 → 0.5.5

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.4",
3
+ "version": "0.5.5",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "src/main.ts",
@@ -721,6 +721,8 @@ export interface CollectionAdmin {
721
721
  ) => Partial<StokerRecord> | void | Promise<Partial<StokerRecord> | void>
722
722
  addRecordButtonOverride?: (record?: StokerRecord) => void | Promise<void>
723
723
  disableRangeSelector?: boolean | (() => boolean)
724
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
725
+ retriever?: () => any | Promise<any>
724
726
  }
725
727
  export interface CollectionAdminCache {
726
728
  navbarPosition?: number
@@ -943,7 +945,8 @@ export interface EmbeddingField extends StandardField {
943
945
  }
944
946
  export interface ComputedField extends StandardField {
945
947
  type: "Computed"
946
- formula: (record: StokerRecord) => string | number | Promise<string | number>
948
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
949
+ formula: (record: StokerRecord, retrieverData?: any) => string | number | Promise<string | number>
947
950
  }
948
951
  export type CollectionField =
949
952
  | BooleanField