@grafana/plugin-types 0.0.46 → 0.0.47

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.
@@ -1,7 +1,7 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
3
  /**
4
- * Generated by orval v7.9.0 🍺
4
+ * Generated by orval v8.0.0-rc.2 🍺
5
5
  * Do not edit manually.
6
6
  * Entity Graph API
7
7
  * OpenAPI spec version: 1.0.0
@@ -11,14 +11,14 @@
11
11
  */
12
12
  export type EntityId = string;
13
13
  /**
14
- * Generated by orval v7.9.0 🍺
14
+ * Generated by orval v8.0.0-rc.2 🍺
15
15
  * Do not edit manually.
16
16
  * Entity Graph API
17
17
  * OpenAPI spec version: 1.0.0
18
18
  */
19
19
  export type EntityProperty = string | number;
20
20
  /**
21
- * Generated by orval v7.9.0 🍺
21
+ * Generated by orval v8.0.0-rc.2 🍺
22
22
  * Do not edit manually.
23
23
  * Entity Graph API
24
24
  * OpenAPI spec version: 1.0.0
@@ -27,7 +27,7 @@ export type EntitySummaryScope = {
27
27
  [key: string]: string;
28
28
  };
29
29
  /**
30
- * Generated by orval v7.9.0 🍺
30
+ * Generated by orval v8.0.0-rc.2 🍺
31
31
  * Do not edit manually.
32
32
  * Entity Graph API
33
33
  * OpenAPI spec version: 1.0.0
@@ -61,6 +61,20 @@ export interface ScopeCriteria {
61
61
  site?: EntityFilterParameter[];
62
62
  namespace?: EntityFilterParameter[];
63
63
  }
64
+ export interface EntityPropertyInfo {
65
+ propertyId: string;
66
+ op: EntityFilterOperation;
67
+ }
68
+ export type ConnectedEntityThrough = {
69
+ type: string;
70
+ scopeCriteria?: ScopeCriteria;
71
+ propertyLinks?: EntityPropertyInfo[];
72
+ };
73
+ export type ConnectedEntityType = {
74
+ type: string;
75
+ scopeCriteria?: ScopeCriteria;
76
+ through?: ConnectedEntityThrough;
77
+ };
64
78
  export declare enum StringRules {
65
79
  EQUALS = "=",
66
80
  NOT_EQUALS = "<>",
@@ -91,11 +105,58 @@ export interface EntityFilterPropertyMatcher {
91
105
  type: EntityPropertyTypes;
92
106
  uom?: string | null;
93
107
  }
108
+ export interface EntityAssertion {
109
+ severity?: AssertionSeverity;
110
+ amend?: boolean;
111
+ assertions?: {
112
+ assertionName: string;
113
+ severity: AssertionSeverity;
114
+ category: string;
115
+ entityType: string;
116
+ }[];
117
+ }
118
+ export type EntityProperties = Partial<Record<string, string | number>> & {
119
+ _created?: number;
120
+ _updated?: number;
121
+ };
122
+ export interface Edge {
123
+ destination: number;
124
+ id: number;
125
+ active?: boolean;
126
+ properties: {
127
+ _rel_source?: string;
128
+ _created: number;
129
+ _updated: number;
130
+ cardinality: string;
131
+ };
132
+ source: number;
133
+ type: string;
134
+ trafficPresent: boolean;
135
+ callsPerMinute: number | undefined;
136
+ }
137
+ interface Entity$1 {
138
+ id: number;
139
+ name: string;
140
+ type: string;
141
+ assertion: EntityAssertion | undefined;
142
+ connectedAssertion: EntityAssertion | undefined;
143
+ properties: EntityProperties;
144
+ connectedEntityTypes?: Record<string, number>;
145
+ scope: Scope | undefined;
146
+ parentEntityId?: number;
147
+ edgeWithActiveElement?: Edge;
148
+ }
94
149
  export interface EntityAssertionsWidgetProps {
95
150
  query: useMultipleEntitiesProps;
96
151
  size?: "xs" | "sm" | "md" | "lg";
97
152
  source?: string;
98
153
  returnToPrevious?: boolean;
154
+ additionalClickHandlers?: {
155
+ onOpenPopoverClick?: () => void;
156
+ onClosePopoverClick?: () => void;
157
+ onConnectedEntitiesClick?: (entity: Entity$1) => void;
158
+ onOpenInRCAWorkbenchClick?: (entities: Entity$1[]) => void;
159
+ };
99
160
  }
100
161
  export interface useMultipleEntitiesProps extends UseMultiEntityTypeParams {
101
162
  additionalMatchers?: EntityFilterPropertyMatcher[];
@@ -138,10 +199,6 @@ export type DrawerViewProps = {
138
199
  end: string;
139
200
  };
140
201
  export type DrawerSize = "sm" | "md" | "lg";
141
- export type ConnectedEntityType = {
142
- type: string;
143
- scopeCriteria?: ScopeCriteria;
144
- };
145
202
  export interface EntityCrossLinkWidgetProps {
146
203
  entityName?: string;
147
204
  entityType: string;
@@ -165,3 +222,7 @@ export interface RelatedEntitiesWidgetProps {
165
222
  start: number | string;
166
223
  end: number | string;
167
224
  }
225
+
226
+ export {
227
+ Entity$1 as Entity,
228
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/plugin-types",
3
- "version": "0.0.46",
3
+ "version": "0.0.47",
4
4
  "description": "NPM package consisting of various Grafana plugins exposed types.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Grafana Labs",