andoncloud-prometheus-widget 1.3.3 → 1.3.5
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.
- package/dist/index.d.ts +41 -5
- package/dist/index.js +590 -2
- package/dist/index.js.map +1 -1
- package/package.json +35 -31
- package/dist/components/Loading/index.d.ts +0 -3
- package/dist/components/PrometheusChart/GradientPlugin.d.ts +0 -6
- package/dist/components/PrometheusChart/index.d.ts +0 -4
- package/dist/components/SettingsForm/index.d.ts +0 -4
- package/dist/components/SettingsFormContent/index.d.ts +0 -5
- package/dist/components/Widget/index.d.ts +0 -5
- package/dist/components/Widget/utils.d.ts +0 -43
- package/dist/components/WidgetSettings/index.d.ts +0 -4
- package/dist/components/WidgetView/index.d.ts +0 -4
- package/dist/helpers.d.ts +0 -5
- package/dist/i18n.d.ts +0 -2
- package/dist/locales/index.d.ts +0 -33
- package/dist/stories/Widget.stories.d.ts +0 -5
- package/dist/types.d.ts +0 -34
- package/dist/utils/graphql-sdk.d.ts +0 -142
- package/dist/version.d.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { BaseWidgetData, BaseWidgetSettings, FilterValues, ListShifts_Shift, WidgetProps } from "andoncloud-dashboard-toolkit";
|
|
2
|
+
//#region src/types.d.ts
|
|
3
|
+
interface WidgetSettingsData {
|
|
4
|
+
shifts: ListShifts_Shift[];
|
|
5
|
+
}
|
|
6
|
+
interface WidgetData extends BaseWidgetData, WidgetSettingsData {}
|
|
7
|
+
interface PrometheusQuery {
|
|
8
|
+
query: string;
|
|
9
|
+
displayName?: string;
|
|
10
|
+
}
|
|
11
|
+
interface WidgetSettings extends BaseWidgetSettings {
|
|
12
|
+
customTitle: string;
|
|
13
|
+
endpointUrl: string;
|
|
14
|
+
queriesPeriod: QueriesPeriod;
|
|
15
|
+
prometheusQueries: PrometheusQuery[];
|
|
16
|
+
displayedQueryParams: string[];
|
|
17
|
+
xAxisUnit: string;
|
|
18
|
+
yAxisUnit: string;
|
|
19
|
+
}
|
|
20
|
+
declare enum QueriesPeriod {
|
|
21
|
+
CURRENT_SHIFT = "CURRENT_SHIFT",
|
|
22
|
+
PREVIOUS_SHIFT = "PREVIOUS_SHIFT"
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/Widget/index.d.ts
|
|
26
|
+
declare const Widget: React.FC<WidgetProps<WidgetData, WidgetSettings>>;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/core/title.d.ts
|
|
29
|
+
declare const getDisplayName: (lang: string) => string;
|
|
30
|
+
declare const getTitle: (_data: WidgetData | undefined, settings: WidgetSettings | undefined, _filters: FilterValues | undefined, lang: string) => string;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/version.d.ts
|
|
33
|
+
declare const LIBRARY_VERSION = "1.3.5";
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/index.d.ts
|
|
36
|
+
declare const thumbnail: string | undefined;
|
|
37
|
+
declare const requiredFeatures: string[];
|
|
38
|
+
declare const extraPermissions: string[];
|
|
39
|
+
//#endregion
|
|
40
|
+
export { Widget, extraPermissions, getDisplayName, getTitle, requiredFeatures, thumbnail, LIBRARY_VERSION as version };
|
|
41
|
+
//# sourceMappingURL=index.d.ts.map
|