@grafana/plugin-types 0.0.33 → 0.0.35
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,6 +1,5 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
-
export type ComponentSize = "xs" | "sm" | "md" | "lg";
|
|
4
3
|
/**
|
|
5
4
|
* Generated by orval v7.9.0 🍺
|
|
6
5
|
* Do not edit manually.
|
|
@@ -52,13 +51,7 @@ export interface Entity {
|
|
|
52
51
|
parentEntity?: EntityParent;
|
|
53
52
|
connectedEntities?: Entity[];
|
|
54
53
|
}
|
|
55
|
-
export
|
|
56
|
-
EQUALS = "eq",
|
|
57
|
-
NOT_EQUALS = "neq",
|
|
58
|
-
STARTS_WITH = "starts_with",
|
|
59
|
-
CONTAINS = "contains",
|
|
60
|
-
IsNull = "is_null"
|
|
61
|
-
}
|
|
54
|
+
export type EntityFilterOperation = "eq" | "neq" | "starts_with" | "contains" | "is_null";
|
|
62
55
|
export interface EntityFilterParameter {
|
|
63
56
|
op: EntityFilterOperation;
|
|
64
57
|
value: string | true | false;
|
|
@@ -100,8 +93,9 @@ export interface EntityFilterPropertyMatcher {
|
|
|
100
93
|
}
|
|
101
94
|
export interface EntityAssertionsWidgetProps {
|
|
102
95
|
query: useMultipleEntitiesProps;
|
|
103
|
-
size?:
|
|
96
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
104
97
|
source?: string;
|
|
98
|
+
returnToPrevious?: boolean;
|
|
105
99
|
}
|
|
106
100
|
export interface useMultipleEntitiesProps extends UseEntityParams {
|
|
107
101
|
additionalMatchers?: EntityFilterPropertyMatcher[];
|
|
@@ -121,18 +115,12 @@ export interface Scope {
|
|
|
121
115
|
namespace?: string;
|
|
122
116
|
}
|
|
123
117
|
/********************** Entity Cross Link ***********/
|
|
124
|
-
export declare enum EntityCrossLinkType {
|
|
125
|
-
K8S_NODE = "k8s_node",
|
|
126
|
-
EC2_INSTANCE = "ec2_instance",
|
|
127
|
-
RDS_INSTANCE = "rds_instance",
|
|
128
|
-
MYSQL_INSTANCE = "mysql_instance",
|
|
129
|
-
UNKNOWN = "unknown"
|
|
130
|
-
}
|
|
131
118
|
export type DrawerViewProps = {
|
|
132
119
|
entity: Entity;
|
|
133
120
|
start: string;
|
|
134
121
|
end: string;
|
|
135
122
|
};
|
|
123
|
+
export type DrawerSize = "sm" | "md" | "lg";
|
|
136
124
|
export type ConnectedEntityType = {
|
|
137
125
|
type: string;
|
|
138
126
|
scopeCriteria?: ScopeCriteria;
|
|
@@ -146,5 +134,12 @@ export interface EntityCrossLinkWidgetProps {
|
|
|
146
134
|
scopeCriteria?: ScopeCriteria;
|
|
147
135
|
backTo?: string;
|
|
148
136
|
onConnectedEntityClick?: (entity: Entity) => void;
|
|
137
|
+
drawerTitle?: string | JSX.Element;
|
|
149
138
|
drawerView?: (props: DrawerViewProps) => JSX.Element;
|
|
139
|
+
drawerSize?: DrawerSize;
|
|
140
|
+
}
|
|
141
|
+
export interface RelatedEntitiesWidgetProps {
|
|
142
|
+
labels: Record<string, string | number>;
|
|
143
|
+
start: number | string;
|
|
144
|
+
end: number | string;
|
|
150
145
|
}
|