@stoker-platform/types 0.5.9 → 0.5.10
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
|
@@ -579,7 +579,7 @@ export type RelationFilter = {
|
|
|
579
579
|
export type Filter = StatusFilter | RangeFilter | SelectFilter | RelationFilter
|
|
580
580
|
|
|
581
581
|
export interface Metric {
|
|
582
|
-
type: "sum" | "average" | "count"
|
|
582
|
+
type: "sum" | "average" | "count" | "custom"
|
|
583
583
|
field?: string
|
|
584
584
|
roles?: StokerRole[]
|
|
585
585
|
title?: string
|
|
@@ -587,6 +587,7 @@ export interface Metric {
|
|
|
587
587
|
prefix?: string
|
|
588
588
|
suffix?: string
|
|
589
589
|
textSize?: "text-xl" | "text-2xl" | "text-3xl"
|
|
590
|
+
formula?: (records: StokerRecord[]) => number | string
|
|
590
591
|
}
|
|
591
592
|
export interface Chart {
|
|
592
593
|
type: "area"
|