@grafana/plugin-types 0.0.23 → 0.0.25

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,62 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ export interface DateTimeBuiltinFormat {
4
+ __momentBuiltinFormatBrand: any;
5
+ }
6
+ export type DateTimeInput = Date | string | number | Array<string | number> | DateTime | null;
7
+ export type FormatInput = string | DateTimeBuiltinFormat | undefined;
8
+ 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";
9
+ export interface DateTime extends Object {
10
+ add: (amount?: DateTimeInput, unit?: DurationUnit) => DateTime;
11
+ set: (unit: DurationUnit | "date", amount: DateTimeInput) => void;
12
+ diff: (amount: DateTimeInput, unit?: DurationUnit, truncate?: boolean) => number;
13
+ endOf: (unitOfTime: DurationUnit) => DateTime;
14
+ format: (formatInput?: FormatInput) => string;
15
+ fromNow: (withoutSuffix?: boolean) => string;
16
+ from: (formaInput: DateTimeInput) => string;
17
+ isSame: (input?: DateTimeInput, granularity?: DurationUnit) => boolean;
18
+ isBefore: (input?: DateTimeInput) => boolean;
19
+ isValid: () => boolean;
20
+ local: () => DateTime;
21
+ locale: (locale: string) => DateTime;
22
+ startOf: (unitOfTime: DurationUnit) => DateTime;
23
+ subtract: (amount?: DateTimeInput, unit?: DurationUnit) => DateTime;
24
+ toDate: () => Date;
25
+ toISOString: (keepOffset?: boolean) => string;
26
+ isoWeekday: (day?: number | string) => number | string;
27
+ valueOf: () => number;
28
+ unix: () => number;
29
+ utc: () => DateTime;
30
+ utcOffset: () => number;
31
+ hour?: () => number;
32
+ minute?: () => number;
33
+ }
34
+ export interface RawTimeRange {
35
+ from: DateTime | string;
36
+ to: DateTime | string;
37
+ }
38
+ export interface TimeRange {
39
+ from: DateTime;
40
+ to: DateTime;
41
+ raw: RawTimeRange;
42
+ }
43
+ export type ServiceDashboardMetadata = {
44
+ instanceId?: string;
45
+ job?: string;
46
+ account_id?: string;
47
+ region?: string;
48
+ };
49
+ export type ServiceDashboardBackButton = {
50
+ visible: boolean;
51
+ backTitle?: string;
52
+ };
53
+ export type ServiceDashboardExtensionProps = {
54
+ promDatasource?: string;
55
+ lokiDatasource?: string;
56
+ initialTimeRange: TimeRange;
57
+ onTimeRangeChange?: (timeRange: TimeRange) => void;
58
+ serviceId: string;
59
+ provider?: string;
60
+ metadata?: ServiceDashboardMetadata;
61
+ backButton?: ServiceDashboardBackButton;
62
+ };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * as grafanaAssertsApp from "./grafana-asserts-app/index";
2
+ export * as grafanaCspApp from "./grafana-csp-app/index";
2
3
  export * as grafanaExploretracesApp from "./grafana-exploretraces-app/index";
3
4
  export * as grafanaLokiexploreApp from "./grafana-lokiexplore-app/index";
4
5
  export * as grafanaPluginsplatformApp from "./grafana-pluginsplatform-app/index";
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "@grafana/plugin-types/grafana-csp-app",
3
+ "types": "../dist/grafana-csp-app/index.d.ts"
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/plugin-types",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "description": "NPM package consisting of various Grafana plugins exposed types.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Grafana Labs",
@@ -32,6 +32,9 @@
32
32
  "./grafana-asserts-app": {
33
33
  "types": "./dist/grafana-asserts-app/index.d.ts"
34
34
  },
35
+ "./grafana-csp-app": {
36
+ "types": "./dist/grafana-csp-app/index.d.ts"
37
+ },
35
38
  "./grafana-exploretraces-app": {
36
39
  "types": "./dist/grafana-exploretraces-app/index.d.ts"
37
40
  },
@@ -45,6 +48,7 @@
45
48
  "files": [
46
49
  "dist",
47
50
  "grafana-asserts-app",
51
+ "grafana-csp-app",
48
52
  "grafana-exploretraces-app",
49
53
  "grafana-lokiexplore-app",
50
54
  "grafana-pluginsplatform-app",