@stoker-platform/types 0.5.43 → 0.5.45

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.43",
3
+ "version": "0.5.45",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "src/main.ts",
@@ -2,7 +2,6 @@ import { Timestamp as AdminTimestamp, FieldValue } from "firebase-admin/firestor
2
2
  import { Timestamp, WhereFilterOp, WriteBatch } from "firebase/firestore"
3
3
  import { NodeUtilities, WebUtilities } from "./app"
4
4
  import { CalendarOptions } from "@fullcalendar/core"
5
- import { SearchResult } from "minisearch"
6
5
 
7
6
  export type StokerRole = string
8
7
  export type StokerCollection = string
@@ -755,6 +754,20 @@ export interface CollectionAdmin {
755
754
  field: string
756
755
  direction?: "asc" | "desc"
757
756
  }>)
757
+ secondarySort?:
758
+ | {
759
+ field: string
760
+ direction?: "asc" | "desc"
761
+ }
762
+ | (() =>
763
+ | {
764
+ field: string
765
+ direction?: "asc" | "desc"
766
+ }
767
+ | Promise<{
768
+ field: string
769
+ direction?: "asc" | "desc"
770
+ }>)
758
771
  itemsPerPage?: number | (() => number | Promise<number>)
759
772
  list?: ListConfig | (() => ListConfig | Promise<ListConfig>)
760
773
  cards?: CardsConfig | (() => CardsConfig | Promise<CardsConfig>)
@@ -823,6 +836,10 @@ export interface CollectionAdminCache {
823
836
  field: string
824
837
  direction?: "asc" | "desc"
825
838
  }
839
+ secondarySort?: {
840
+ field: string
841
+ direction?: "asc" | "desc"
842
+ }
826
843
  itemsPerPage?: number
827
844
  list?: ListConfig
828
845
  cards?: CardsConfig
@@ -911,7 +928,7 @@ export interface FieldAdmin {
911
928
  skipFormRequiredValidation?: boolean | (() => boolean)
912
929
  overrideFormRequiredValidation?: (operation: "create" | "update", record?: StokerRecord) => boolean
913
930
  filterValues?: (value: string | number, parentCollection: CollectionSchema, parentRecord?: StokerRecord) => boolean
914
- filterResults?: (result: SearchResult, parentCollection: CollectionSchema, parentRecord?: StokerRecord) => boolean
931
+ filterResults?: (result: StokerRecord, parentCollection: CollectionSchema, parentRecord?: StokerRecord) => boolean
915
932
  modifyResultTitle?: (
916
933
  record: StokerRecord,
917
934
  parentCollection: CollectionSchema,