@stoker-platform/types 0.5.52 → 0.5.54
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 +1 -1
- package/src/types/schema.ts +2 -1
package/package.json
CHANGED
package/src/types/schema.ts
CHANGED
|
@@ -789,6 +789,7 @@ export interface CollectionAdmin {
|
|
|
789
789
|
| (() => "range" | "week" | "month" | ("range" | "week" | "month")[])
|
|
790
790
|
defaultRangeSelector?: "range" | "week" | "month" | (() => "range" | "week" | "month")
|
|
791
791
|
restrictExport?: StokerRole[] | (() => StokerRole[] | Promise<StokerRole[]>)
|
|
792
|
+
titleCount?: boolean | (() => boolean | Promise<boolean>)
|
|
792
793
|
metrics?: (Metric | Chart)[] | (() => (Metric | Chart)[] | Promise<(Metric | Chart)[]>)
|
|
793
794
|
meta?: CollectionMeta | (() => CollectionMeta | Promise<CollectionMeta>)
|
|
794
795
|
rowHighlight?: RowHighlight[] | (() => RowHighlight[])
|
|
@@ -908,7 +909,7 @@ export interface FieldAdmin {
|
|
|
908
909
|
icon?: FormFieldIcon | (() => FormFieldIcon | Promise<FormFieldIcon>)
|
|
909
910
|
condition?: {
|
|
910
911
|
list?: boolean | ((parentCollection?: CollectionSchema, parentRecord?: StokerRecord) => boolean)
|
|
911
|
-
form?: boolean | ((operation?: "create" | "update", record?: StokerRecord) => boolean)
|
|
912
|
+
form?: boolean | ((operation?: "create" | "update", record?: StokerRecord, isExport?: boolean) => boolean)
|
|
912
913
|
}
|
|
913
914
|
readOnly?: boolean | ((operation?: "create" | "update", record?: StokerRecord) => boolean)
|
|
914
915
|
description?: FieldDescription
|