@stoker-platform/types 0.5.54 → 0.5.56

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.54",
3
+ "version": "0.5.56",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "src/main.ts",
package/src/types/app.ts CHANGED
@@ -113,6 +113,7 @@ export interface DashboardMetric {
113
113
  suffix?: string
114
114
  textSize?: "text-xl" | "text-2xl" | "text-3xl"
115
115
  constraints?: [string, WhereFilterOp, unknown][]
116
+ forceServer?: boolean
116
117
  }
117
118
  export interface DashboardChart {
118
119
  kind: "chart"
@@ -133,6 +134,7 @@ export interface DashboardChart {
133
134
  numberOfIntervals?: number
134
135
  offset?: number
135
136
  animate?: boolean
137
+ currency?: string | (() => string)
136
138
  }
137
139
 
138
140
  export interface DashboardReminder {
@@ -146,6 +148,8 @@ export interface DashboardReminder {
146
148
  field: string
147
149
  direction: "asc" | "desc"
148
150
  }
151
+ forceServer?: boolean
152
+ filter?: (record: StokerRecord) => boolean
149
153
  }
150
154
 
151
155
  export type DashboardItem = DashboardMetric | DashboardChart | DashboardReminder
@@ -634,6 +634,7 @@ export interface Chart {
634
634
  defaultRange: "90d" | "30d" | "7d"
635
635
  roles?: StokerRole[]
636
636
  title?: string
637
+ currency?: string | (() => string)
637
638
  }
638
639
  export interface CollectionMeta {
639
640
  title?: string