@stoker-platform/types 0.5.22 → 0.5.23

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.22",
3
+ "version": "0.5.23",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "src/main.ts",
package/src/types/app.ts CHANGED
@@ -265,8 +265,9 @@ export interface GlobalConfigCache {
265
265
  timezone?: string
266
266
  auth?: {
267
267
  enableMultiFactorAuth?: boolean | StokerRole[]
268
- autoRefreshAppCheckToken?: boolean
269
268
  authPersistenceType?: "LOCAL" | "SESSION" | "NONE"
269
+ signOutOnPermissionsChange?: boolean
270
+ clearPersistenceOnSignOut?: boolean
270
271
  offlinePersistenceType?: "ALL" | "WRITE" | "NONE"
271
272
  tabManager?: "SINGLE" | "MULTI"
272
273
  garbageCollectionStrategy?: "LRU" | "EAGER"
@@ -274,6 +275,7 @@ export interface GlobalConfigCache {
274
275
  maxWriteCacheSize?: number
275
276
  }
276
277
  firebase?: {
278
+ enableEmulators?: boolean
277
279
  disableIndividualEmulators?: ("Auth" | "Database" | "Firestore" | "Storage" | "Functions")[]
278
280
  GDPRSettings?: boolean
279
281
  enableAnalytics?: boolean
@@ -294,15 +296,18 @@ export interface GlobalConfigCache {
294
296
  }
295
297
  enableUserIDLogging?: boolean
296
298
  admin?: {
299
+ access?: StokerRole[]
300
+ background?: Background
297
301
  logo?: {
298
- small?: string
299
- large?: string
302
+ navbar?: string
303
+ login?: string
300
304
  }
301
305
  menu?: {
302
- groups?: string[]
306
+ groups?: MenuGroup[]
303
307
  }
304
308
  dateFormat?: string
305
309
  meta?: {
310
+ description?: string
306
311
  icons?: MetaIcon[]
307
312
  }
308
313
  dashboard?: DashboardItem[]
@@ -685,6 +685,13 @@ export interface Assignable {
685
685
  unavailableField?: string
686
686
  }
687
687
 
688
+ export interface CustomListAction {
689
+ title: string
690
+ icon?: React.FC<{ className?: string }>
691
+ action: () => void | Promise<void>
692
+ condition?: () => boolean
693
+ }
694
+
688
695
  export interface CollectionAdmin {
689
696
  hidden?: boolean | (() => boolean | Promise<boolean>)
690
697
  navbarPosition?: number | (() => number)
@@ -771,8 +778,10 @@ export interface CollectionAdmin {
771
778
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
772
779
  retriever?: () => any | Promise<any>
773
780
  assignable?: Assignable[] | (() => Assignable[] | Promise<Assignable[]>)
781
+ customListActions?: CustomListAction[] | (() => CustomListAction[] | Promise<CustomListAction[]>)
774
782
  }
775
783
  export interface CollectionAdminCache {
784
+ hidden?: boolean
776
785
  navbarPosition?: number
777
786
  titles?: {
778
787
  collection: string
@@ -787,6 +796,8 @@ export interface CollectionAdminCache {
787
796
  active?: unknown[]
788
797
  archived?: unknown[]
789
798
  }
799
+ defaultView?: "list" | "cards" | "images" | "map" | "calendar"
800
+ defaultRoute?: string
790
801
  defaultSort?: {
791
802
  field: string
792
803
  direction?: "asc" | "desc"
@@ -798,6 +809,8 @@ export interface CollectionAdminCache {
798
809
  map?: MapConfig
799
810
  calendar?: CalendarConfig
800
811
  filters?: Filter[]
812
+ rangeSelectorValues?: "range" | "week" | "month" | ("range" | "week" | "month")[]
813
+ defaultRangeSelector?: "range" | "week" | "month"
801
814
  restrictExport?: StokerRole[]
802
815
  metrics?: (Metric | Chart)[]
803
816
  meta?: CollectionMeta
@@ -810,6 +823,10 @@ export interface CollectionAdminCache {
810
823
  formImages?: boolean
811
824
  formLists?: FormList[]
812
825
  hideCreate?: boolean
826
+ disableUpdate?: boolean
827
+ disableRangeSelector?: boolean
828
+ assignable?: Assignable[]
829
+ customListActions?: CustomListAction[]
813
830
  }
814
831
 
815
832
  export interface FieldCustom extends Hooks {