@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/types",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "src/main.ts",
@@ -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"