@stoker-platform/types 0.5.19 → 0.5.21
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 +3 -3
- package/src/types/schema.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoker-platform/types",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"main": "src/main.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@fullcalendar/core": "^6.1.20",
|
|
26
26
|
"@google-cloud/storage": "^7.19.0",
|
|
27
|
-
"firebase": "^12.
|
|
28
|
-
"firebase-admin": "^13.
|
|
27
|
+
"firebase": "^12.10.0",
|
|
28
|
+
"firebase-admin": "^13.7.0"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/types/schema.ts
CHANGED
|
@@ -661,6 +661,13 @@ export interface CustomRecordPage {
|
|
|
661
661
|
condition?: (record: StokerRecord | undefined) => boolean
|
|
662
662
|
icon?: React.FC<{ className?: string }>
|
|
663
663
|
}
|
|
664
|
+
|
|
665
|
+
export interface Assignable {
|
|
666
|
+
collection: string
|
|
667
|
+
isAvailable: (record: StokerRecord) => boolean
|
|
668
|
+
unavailableField?: string
|
|
669
|
+
}
|
|
670
|
+
|
|
664
671
|
export interface CollectionAdmin {
|
|
665
672
|
hidden?: boolean | (() => boolean | Promise<boolean>)
|
|
666
673
|
navbarPosition?: number | (() => number)
|
|
@@ -746,6 +753,7 @@ export interface CollectionAdmin {
|
|
|
746
753
|
disableRangeSelector?: boolean | (() => boolean)
|
|
747
754
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
748
755
|
retriever?: () => any | Promise<any>
|
|
756
|
+
assignable?: Assignable[] | (() => Assignable[] | Promise<Assignable[]>)
|
|
749
757
|
}
|
|
750
758
|
export interface CollectionAdminCache {
|
|
751
759
|
navbarPosition?: number
|