@gdacm/grafana-items 0.1.19 → 0.1.20

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.
@@ -8,8 +8,9 @@ export declare class BarChart extends Panel {
8
8
  constructor(metaOptions: GenericMetaOptions)
9
9
  get custom(): FieldConfigCustomBarChart;
10
10
  withCustom(code: (custom: FieldConfigCustomBarChart) => void): this
11
+ setOptions(options: PanelOptionsBarChart): this;
11
12
  setNewOptions(onNewCreated: ((item: PanelOptionsBarChart) => PanelOptionsBarChart) | undefined): this;
12
13
  withOptions(onWith: (item: PanelOptionsBarChart) => void): this;
13
14
  get options(): PanelOptionsBarChart;
14
- setThresholdsStyleArea(): this
15
+ setThresholdsStyleMode(mode: string): this
15
16
  }
@@ -22,9 +22,9 @@ export declare class Dashboard extends GrafanaItem {
22
22
  addNewLink(onNewCreated: (item: Link) => Link): this;
23
23
  withLinks(onWith: (links: Link[]) => void): this;
24
24
  setLiveNow(liveNow: Boolean): this;
25
- addPanel(panel: Panel): this;
26
25
  initPanels(): this;
27
26
  get panels(): Panel[];
27
+ addPanel(panel: Panel): this;
28
28
  addNewPanel(onNewCreated: (item: Panel) => Panel): this;
29
29
  withPanels(onWith: (panels: Panel[]) => void): this;
30
30
  setPreload(preload: Boolean): this;
@@ -16,6 +16,7 @@ export declare class FieldConfigCustomBarChart extends FieldConfigCustom {
16
16
  setAxisSoftMin(axisSoftMin: Number): this;
17
17
  setAxisWidth(axisWidth: Number): this;
18
18
  setScaleDistribution(scaleDistribution: ScaleDistribution): this;
19
+ setNewScaleDistribution(onNewCreated: ((item: ScaleDistribution) => ScaleDistribution) | undefined): this;
19
20
  withScaleDistribution(onWith: (item: ScaleDistribution) => void): this;
20
21
  get scaleDistribution(): ScaleDistribution;
21
22
  setFillOpacity(fillOpacity: Number): this;
@@ -7,6 +7,5 @@ export declare class FieldConfigCustomTableFooter extends GrafanaItem {
7
7
  initReducers(): this;
8
8
  get reducers(): String[];
9
9
  addReducer(reducer: String): this;
10
- addNewReducer(onNewCreated: (item: String) => String): this;
11
10
  withReducers(onWith: (reducers: String[]) => void): this;
12
11
  }
@@ -18,6 +18,7 @@ export declare class FieldConfigCustomTimeSerie extends FieldConfigCustom {
18
18
  setAxisSoftMin(axisSoftMin: Number): this;
19
19
  setAxisWidth(axisWidth: Number): this;
20
20
  setScaleDistribution(scaleDistribution: ScaleDistribution): this;
21
+ setNewScaleDistribution(onNewCreated: ((item: ScaleDistribution) => ScaleDistribution) | undefined): this;
21
22
  withScaleDistribution(onWith: (item: ScaleDistribution) => void): this;
22
23
  get scaleDistribution(): ScaleDistribution;
23
24
  setBarAlignment(barAlignment: Number): this;
@@ -8,6 +8,7 @@ export declare class Gauge extends Panel {
8
8
  constructor(metaOptions: GenericMetaOptions)
9
9
  get custom(): FieldConfigCustomGauge;
10
10
  withCustom(code: (custom: FieldConfigCustomGauge) => void): this
11
+ setOptions(options: PanelOptionsGauge): this;
11
12
  setNewOptions(onNewCreated: ((item: PanelOptionsGauge) => PanelOptionsGauge) | undefined): this;
12
13
  withOptions(onWith: (item: PanelOptionsGauge) => void): this;
13
14
  get options(): PanelOptionsGauge;
@@ -8,6 +8,7 @@ export declare class Geomap extends Panel {
8
8
  constructor(metaOptions: GenericMetaOptions)
9
9
  get custom(): FieldConfigCustomGeomap;
10
10
  withCustom(code: (custom: FieldConfigCustomGeomap) => void): this
11
+ setOptions(options: PanelOptionsGeomap): this;
11
12
  setNewOptions(onNewCreated: ((item: PanelOptionsGeomap) => PanelOptionsGeomap) | undefined): this;
12
13
  withOptions(onWith: (item: PanelOptionsGeomap) => void): this;
13
14
  get options(): PanelOptionsGeomap;
@@ -12,7 +12,6 @@ export declare class Link extends GrafanaItem {
12
12
  initTags(): this;
13
13
  get tags(): String[];
14
14
  addTag(tag: String): this;
15
- addNewTag(onNewCreated: (item: String) => String): this;
16
15
  withTags(onWith: (tags: String[]) => void): this;
17
16
  setTargetBlank(targetBlank: Boolean): this;
18
17
  setTitle(title: String): this;
@@ -8,7 +8,6 @@ export declare class OverrideMatcherOptionsByNames extends GrafanaItem {
8
8
  initNames(): this;
9
9
  get names(): String[];
10
10
  addName(name: String): this;
11
- addNewName(onNewCreated: (item: String) => String): this;
12
11
  withNames(onWith: (names: String[]) => void): this;
13
12
  setPrefix(prefix: String): this;
14
13
  setReadOnly(readOnly: Boolean): this;
@@ -7,7 +7,6 @@ export declare class PanelOptionsGaugeReduceOptions extends GrafanaItem {
7
7
  initCalcs(): this;
8
8
  get calcs(): String[];
9
9
  addCalc(calc: String): this;
10
- addNewCalc(onNewCreated: (item: String) => String): this;
11
10
  withCalcs(onWith: (calcs: String[]) => void): this;
12
11
  setFields(fields: String): this;
13
12
  setLimit(limit: Number): this;
@@ -8,7 +8,6 @@ export declare class PanelOptionsPieChart extends PanelOptions {
8
8
  initDisplayLabels(): this;
9
9
  get displayLabels(): String[];
10
10
  addDisplayLabel(displayLabel: String): this;
11
- addNewDisplayLabel(onNewCreated: (item: String) => String): this;
12
11
  withDisplayLabels(onWith: (displayLabels: String[]) => void): this;
13
12
  setLegend(legend: PieChartLegendOptions): this;
14
13
  setNewLegend(onNewCreated: ((item: PieChartLegendOptions) => PieChartLegendOptions) | undefined): this;
@@ -8,6 +8,7 @@ export declare class PieChart extends Panel {
8
8
  constructor(metaOptions: GenericMetaOptions)
9
9
  get custom(): FieldConfigCustomPieChart;
10
10
  withCustom(code: (custom: FieldConfigCustomPieChart) => void): this
11
+ setOptions(options: PanelOptionsPieChart): this;
11
12
  setNewOptions(onNewCreated: ((item: PanelOptionsPieChart) => PanelOptionsPieChart) | undefined): this;
12
13
  withOptions(onWith: (item: PanelOptionsPieChart) => void): this;
13
14
  get options(): PanelOptionsPieChart;
@@ -7,6 +7,5 @@ export declare class PieChartLegendOptions extends VizLegendOptions {
7
7
  initValues(): this;
8
8
  get values(): String[];
9
9
  addValue(value: String): this;
10
- addNewValue(onNewCreated: (item: String) => String): this;
11
10
  withValues(onWith: (values: String[]) => void): this;
12
11
  }
@@ -8,6 +8,7 @@ export declare class Stat extends Panel {
8
8
  constructor(metaOptions: GenericMetaOptions)
9
9
  get custom(): FieldConfigCustomStat;
10
10
  withCustom(code: (custom: FieldConfigCustomStat) => void): this
11
+ setOptions(options: PanelOptionsStat): this;
11
12
  setNewOptions(onNewCreated: ((item: PanelOptionsStat) => PanelOptionsStat) | undefined): this;
12
13
  withOptions(onWith: (item: PanelOptionsStat) => void): this;
13
14
  get options(): PanelOptionsStat;
@@ -8,6 +8,7 @@ export declare class Table extends Panel {
8
8
  constructor(metaOptions: GenericMetaOptions)
9
9
  get custom(): FieldConfigCustomTable;
10
10
  withCustom(code: (custom: FieldConfigCustomTable) => void): this
11
+ setOptions(options: PanelOptionsTable): this;
11
12
  setNewOptions(onNewCreated: ((item: PanelOptionsTable) => PanelOptionsTable) | undefined): this;
12
13
  withOptions(onWith: (item: PanelOptionsTable) => void): this;
13
14
  get options(): PanelOptionsTable;
@@ -8,6 +8,7 @@ export declare class TextPanel extends Panel {
8
8
  constructor(metaOptions: GenericMetaOptions)
9
9
  get custom(): FieldConfigCustomText;
10
10
  withCustom(code: (custom: FieldConfigCustomText) => void): this
11
+ setOptions(options: PanelOptionsText): this;
11
12
  setNewOptions(onNewCreated: ((item: PanelOptionsText) => PanelOptionsText) | undefined): this;
12
13
  withOptions(onWith: (item: PanelOptionsText) => void): this;
13
14
  get options(): PanelOptionsText;
@@ -7,6 +7,5 @@ export declare class TimePicker extends GrafanaItem {
7
7
  initRefresh_intervals(): this;
8
8
  get refresh_intervals(): String[];
9
9
  addRefreshInterval(refreshInterval: String): this;
10
- addNewRefreshInterval(onNewCreated: (item: String) => String): this;
11
10
  withRefresh_intervals(onWith: (refresh_intervals: String[]) => void): this;
12
11
  }
@@ -8,8 +8,9 @@ export declare class TimeSeries extends Panel {
8
8
  constructor(metaOptions: GenericMetaOptions)
9
9
  get custom(): FieldConfigCustomTimeSerie;
10
10
  withCustom(code: (custom: FieldConfigCustomTimeSerie) => void): this
11
+ setOptions(options: PanelOptionsTimeSeries): this;
11
12
  setNewOptions(onNewCreated: ((item: PanelOptionsTimeSeries) => PanelOptionsTimeSeries) | undefined): this;
12
13
  withOptions(onWith: (item: PanelOptionsTimeSeries) => void): this;
13
14
  get options(): PanelOptionsTimeSeries;
14
- setThresholdsStyleArea(): this
15
+ setThresholdsStyleMode(mode: string): this
15
16
  }
@@ -8,7 +8,6 @@ export declare class VizLegendOptions extends GrafanaItem {
8
8
  initCalcs(): this;
9
9
  get calcs(): String[];
10
10
  addCalc(calc: String): this;
11
- addNewCalc(onNewCreated: (item: String) => String): this;
12
11
  withCalcs(onWith: (calcs: String[]) => void): this;
13
12
  setDisplayMode(displayMode: String): this;
14
13
  setIsVisible(isVisible: Boolean): this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gdacm/grafana-items",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "author": "gissehel",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "update": "node updateTypes.js"
31
31
  },
32
32
  "dependencies": {
33
- "@gdacm/base-types": "^0.1.19"
33
+ "@gdacm/base-types": "^0.1.20"
34
34
  },
35
35
  "devDependencies": {
36
36
  "chokidar-cli": "^3.0.0",