@sentry/junior-plugin-api 0.109.0 → 0.111.0

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.
@@ -35,11 +35,32 @@ export interface PluginOperationalRecordSet {
35
35
  records?: PluginOperationalRecord[];
36
36
  title: string;
37
37
  }
38
+ export interface PluginOperationalChartSeries {
39
+ key: string;
40
+ label: string;
41
+ tone?: PluginOperationalTone;
42
+ }
43
+ export interface PluginOperationalChartCategory {
44
+ id: string;
45
+ label: string;
46
+ values: Record<string, number>;
47
+ }
48
+ export interface PluginOperationalBarChartWidget {
49
+ categories: PluginOperationalChartCategory[];
50
+ description?: string;
51
+ emptyText?: string;
52
+ id: string;
53
+ series: PluginOperationalChartSeries[];
54
+ timeRangeDays?: Array<7 | 30 | 90>;
55
+ title: string;
56
+ type: "bar_chart";
57
+ }
38
58
  export interface PluginOperationalReportContent {
39
59
  generatedAt?: string;
40
60
  metrics?: PluginOperationalMetric[];
41
61
  recordSets?: PluginOperationalRecordSet[];
42
62
  title?: string;
63
+ widgets?: PluginOperationalBarChartWidget[];
43
64
  }
44
65
  export interface PluginOperationalReport extends PluginOperationalReportContent {
45
66
  pluginName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-plugin-api",
3
- "version": "0.109.0",
3
+ "version": "0.111.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
package/src/operations.ts CHANGED
@@ -44,11 +44,35 @@ export interface PluginOperationalRecordSet {
44
44
  title: string;
45
45
  }
46
46
 
47
+ export interface PluginOperationalChartSeries {
48
+ key: string;
49
+ label: string;
50
+ tone?: PluginOperationalTone;
51
+ }
52
+
53
+ export interface PluginOperationalChartCategory {
54
+ id: string;
55
+ label: string;
56
+ values: Record<string, number>;
57
+ }
58
+
59
+ export interface PluginOperationalBarChartWidget {
60
+ categories: PluginOperationalChartCategory[];
61
+ description?: string;
62
+ emptyText?: string;
63
+ id: string;
64
+ series: PluginOperationalChartSeries[];
65
+ timeRangeDays?: Array<7 | 30 | 90>;
66
+ title: string;
67
+ type: "bar_chart";
68
+ }
69
+
47
70
  export interface PluginOperationalReportContent {
48
71
  generatedAt?: string;
49
72
  metrics?: PluginOperationalMetric[];
50
73
  recordSets?: PluginOperationalRecordSet[];
51
74
  title?: string;
75
+ widgets?: PluginOperationalBarChartWidget[];
52
76
  }
53
77
 
54
78
  export interface PluginOperationalReport extends PluginOperationalReportContent {