@grafana/plugin-types 0.0.12 → 0.0.13
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.
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v9.5.1
|
|
2
|
+
|
|
3
|
+
import * as React$1 from 'react';
|
|
4
|
+
|
|
5
|
+
export interface DateTimeBuiltinFormat {
|
|
6
|
+
__momentBuiltinFormatBrand: any;
|
|
7
|
+
}
|
|
8
|
+
export type DateTimeInput = Date | string | number | Array<string | number> | DateTime | null;
|
|
9
|
+
export type FormatInput = string | DateTimeBuiltinFormat | undefined;
|
|
10
|
+
export type DurationUnit = "year" | "years" | "y" | "month" | "months" | "M" | "week" | "weeks" | "isoWeek" | "w" | "day" | "days" | "d" | "hour" | "hours" | "h" | "minute" | "minutes" | "m" | "second" | "seconds" | "s" | "millisecond" | "milliseconds" | "ms" | "quarter" | "quarters" | "Q";
|
|
11
|
+
export interface DateTime extends Object {
|
|
12
|
+
add: (amount?: DateTimeInput, unit?: DurationUnit) => DateTime;
|
|
13
|
+
set: (unit: DurationUnit | "date", amount: DateTimeInput) => void;
|
|
14
|
+
diff: (amount: DateTimeInput, unit?: DurationUnit, truncate?: boolean) => number;
|
|
15
|
+
endOf: (unitOfTime: DurationUnit) => DateTime;
|
|
16
|
+
format: (formatInput?: FormatInput) => string;
|
|
17
|
+
fromNow: (withoutSuffix?: boolean) => string;
|
|
18
|
+
from: (formaInput: DateTimeInput) => string;
|
|
19
|
+
isSame: (input?: DateTimeInput, granularity?: DurationUnit) => boolean;
|
|
20
|
+
isBefore: (input?: DateTimeInput) => boolean;
|
|
21
|
+
isValid: () => boolean;
|
|
22
|
+
local: () => DateTime;
|
|
23
|
+
locale: (locale: string) => DateTime;
|
|
24
|
+
startOf: (unitOfTime: DurationUnit) => DateTime;
|
|
25
|
+
subtract: (amount?: DateTimeInput, unit?: DurationUnit) => DateTime;
|
|
26
|
+
toDate: () => Date;
|
|
27
|
+
toISOString: (keepOffset?: boolean) => string;
|
|
28
|
+
isoWeekday: (day?: number | string) => number | string;
|
|
29
|
+
valueOf: () => number;
|
|
30
|
+
unix: () => number;
|
|
31
|
+
utc: () => DateTime;
|
|
32
|
+
utcOffset: () => number;
|
|
33
|
+
hour?: () => number;
|
|
34
|
+
minute?: () => number;
|
|
35
|
+
}
|
|
36
|
+
export interface RawTimeRange {
|
|
37
|
+
from: DateTime | string;
|
|
38
|
+
to: DateTime | string;
|
|
39
|
+
}
|
|
40
|
+
export interface TimeRange {
|
|
41
|
+
from: DateTime;
|
|
42
|
+
to: DateTime;
|
|
43
|
+
raw: RawTimeRange;
|
|
44
|
+
}
|
|
45
|
+
declare enum AbstractLabelOperator {
|
|
46
|
+
Equal = "Equal",
|
|
47
|
+
NotEqual = "NotEqual",
|
|
48
|
+
EqualRegEx = "EqualRegEx",
|
|
49
|
+
NotEqualRegEx = "NotEqualRegEx"
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
export type AbstractLabelMatcher = {
|
|
55
|
+
name: string;
|
|
56
|
+
value: string;
|
|
57
|
+
operator: AbstractLabelOperator;
|
|
58
|
+
};
|
|
59
|
+
export interface SceneTimeRangeStateStub {
|
|
60
|
+
from: string;
|
|
61
|
+
to: string;
|
|
62
|
+
value: TimeRange;
|
|
63
|
+
}
|
|
64
|
+
export interface EmbeddedLogsCommonProps {
|
|
65
|
+
embedderName: string;
|
|
66
|
+
onTimeRangeChange?: (timeRange: TimeRange) => void;
|
|
67
|
+
query: string;
|
|
68
|
+
timeRangeState: SceneTimeRangeStateStub;
|
|
69
|
+
}
|
|
70
|
+
export interface EmbeddedLogsExplorationFromQuery {
|
|
71
|
+
datasourceUid: string;
|
|
72
|
+
}
|
|
73
|
+
export interface EmbeddedLogsExplorationTestingRoute {
|
|
74
|
+
datasourceUid?: string;
|
|
75
|
+
}
|
|
76
|
+
export type EmbeddedLogsExplorationProps = (EmbeddedLogsExplorationFromQuery & EmbeddedLogsCommonProps) | (EmbeddedLogsExplorationTestingRoute & EmbeddedLogsCommonProps);
|
|
77
|
+
export interface OpenInLogsDrilldownButtonProps {
|
|
78
|
+
datasourceUid?: string;
|
|
79
|
+
from?: string;
|
|
80
|
+
renderButton?: (props: {
|
|
81
|
+
href: string;
|
|
82
|
+
}) => React$1.ReactElement<any>;
|
|
83
|
+
returnToPreviousSource?: string;
|
|
84
|
+
streamSelectors: AbstractLabelMatcher[];
|
|
85
|
+
to?: string;
|
|
86
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export * as grafanaAssertsApp from "./grafana-asserts-app/index";
|
|
2
2
|
export * as grafanaExploretracesApp from "./grafana-exploretraces-app/index";
|
|
3
|
+
export * as grafanaLokiexploreApp from "./grafana-lokiexplore-app/index";
|
|
3
4
|
export * as grafanaPluginsplatformApp from "./grafana-pluginsplatform-app/index";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/plugin-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "NPM package consisting of various Grafana plugins exposed types.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Grafana Labs",
|
|
@@ -35,6 +35,9 @@
|
|
|
35
35
|
"./grafana-exploretraces-app": {
|
|
36
36
|
"types": "./dist/grafana-exploretraces-app/index.d.ts"
|
|
37
37
|
},
|
|
38
|
+
"./grafana-lokiexplore-app": {
|
|
39
|
+
"types": "./dist/grafana-lokiexplore-app/index.d.ts"
|
|
40
|
+
},
|
|
38
41
|
"./grafana-pluginsplatform-app": {
|
|
39
42
|
"types": "./dist/grafana-pluginsplatform-app/index.d.ts"
|
|
40
43
|
}
|
|
@@ -43,6 +46,7 @@
|
|
|
43
46
|
"dist",
|
|
44
47
|
"grafana-asserts-app",
|
|
45
48
|
"grafana-exploretraces-app",
|
|
49
|
+
"grafana-lokiexplore-app",
|
|
46
50
|
"grafana-pluginsplatform-app",
|
|
47
51
|
"package.json",
|
|
48
52
|
"LICENSE",
|