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 CHANGED
@@ -1,5 +1,41 @@
1
- export { default as Widget } from './components/Widget';
2
- export declare const getDisplayName: (lang: "en" | "pl") => "PromQL chart" | "Wykres PromQL" | "prometheus-widget";
3
- export declare const requiredFeatures: string[];
4
- export declare const extraPermissions: string[];
5
- export { LIBRARY_VERSION as version } from './version';
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