@gdacm/grafana-items 0.1.20 → 0.1.21

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.
Files changed (59) hide show
  1. package/dist/index.js +1 -0
  2. package/dist/index.js.map +1 -1
  3. package/dist/items/Annotation.d.ts +6 -0
  4. package/dist/items/Color.d.ts +1 -0
  5. package/dist/items/Dashboard.d.ts +11 -0
  6. package/dist/items/Datasource.d.ts +2 -0
  7. package/dist/items/FieldConfigCustomBarChart.d.ts +12 -0
  8. package/dist/items/FieldConfigCustomTable.d.ts +2 -0
  9. package/dist/items/FieldConfigCustomTableCellOptions.d.ts +1 -0
  10. package/dist/items/FieldConfigCustomTimeSerie.d.ts +26 -0
  11. package/dist/items/FieldConfigDefault.d.ts +5 -0
  12. package/dist/items/FieldConfigOverride.d.ts +1 -0
  13. package/dist/items/GridPos.d.ts +4 -0
  14. package/dist/items/HideFrom.d.ts +4 -0
  15. package/dist/items/LineStyle.d.ts +1 -0
  16. package/dist/items/Link.d.ts +9 -0
  17. package/dist/items/OverrideMatcher.d.ts +1 -0
  18. package/dist/items/OverrideMatcherOptionsByNames.d.ts +3 -0
  19. package/dist/items/OverrideProperty.d.ts +2 -0
  20. package/dist/items/Panel.d.ts +15 -0
  21. package/dist/items/PanelOptionsBarChart.d.ts +12 -0
  22. package/dist/items/PanelOptionsGauge.d.ts +14 -0
  23. package/dist/items/PanelOptionsGaugeEffect.d.ts +3 -0
  24. package/dist/items/PanelOptionsGaugeReduceOptions.d.ts +3 -0
  25. package/dist/items/PanelOptionsGeomapBasemap.d.ts +3 -0
  26. package/dist/items/PanelOptionsGeomapControls.d.ts +6 -0
  27. package/dist/items/PanelOptionsGeomapLayer.d.ts +3 -0
  28. package/dist/items/PanelOptionsGeomapLayerConfig.d.ts +1 -0
  29. package/dist/items/PanelOptionsGeomapLayerConfigStyle.d.ts +1 -0
  30. package/dist/items/PanelOptionsGeomapLayerLocation.d.ts +1 -0
  31. package/dist/items/PanelOptionsGeomapTooltip.d.ts +1 -0
  32. package/dist/items/PanelOptionsGeomapView.d.ts +7 -0
  33. package/dist/items/PanelOptionsPieChart.d.ts +2 -0
  34. package/dist/items/PanelOptionsTable.d.ts +2 -0
  35. package/dist/items/PanelOptionsTableSortBy.d.ts +2 -0
  36. package/dist/items/PanelOptionsText.d.ts +2 -0
  37. package/dist/items/PanelOptionsTextCode.d.ts +3 -0
  38. package/dist/items/PanelOptionsTimeSeries.d.ts +2 -0
  39. package/dist/items/ScaleDistribution.d.ts +1 -0
  40. package/dist/items/Stacking.d.ts +2 -0
  41. package/dist/items/StyleColor.d.ts +1 -0
  42. package/dist/items/StyleRotation.d.ts +4 -0
  43. package/dist/items/StyleSize.d.ts +3 -0
  44. package/dist/items/StyleSymbol.d.ts +3 -0
  45. package/dist/items/StyleSymbolAlign.d.ts +2 -0
  46. package/dist/items/StyleTextConfig.d.ts +5 -0
  47. package/dist/items/Target.d.ts +6 -0
  48. package/dist/items/TargetInfinity.d.ts +7 -0
  49. package/dist/items/Template.d.ts +12 -0
  50. package/dist/items/TemplateCurrent.d.ts +2 -0
  51. package/dist/items/TemplateOption.d.ts +3 -0
  52. package/dist/items/ThresholdStyle.d.ts +1 -0
  53. package/dist/items/Thresholds.d.ts +1 -0
  54. package/dist/items/ThresholdsStep.d.ts +2 -0
  55. package/dist/items/TimeRange.d.ts +2 -0
  56. package/dist/items/VizLegendOptions.d.ts +10 -0
  57. package/dist/items/VizTextDisplayOptions.d.ts +3 -0
  58. package/dist/items/VizTooltipOptions.d.ts +5 -0
  59. package/package.json +2 -2
@@ -8,6 +8,8 @@ export declare class PanelOptionsText extends PanelOptions {
8
8
  setNewCode(onNewCreated: ((item: PanelOptionsTextCode) => PanelOptionsTextCode) | undefined): this;
9
9
  withCode(onWith: (item: PanelOptionsTextCode) => void): this;
10
10
  get code(): PanelOptionsTextCode;
11
+ get content(): String;
11
12
  setContent(content: String): this;
13
+ get mode(): String;
12
14
  setMode(mode: String): this;
13
15
  }
@@ -4,7 +4,10 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class PanelOptionsTextCode extends GrafanaItem {
7
+ get language(): String;
7
8
  setLanguage(language: String): this;
9
+ get showLineNumbers(): Boolean;
8
10
  setShowLineNumbers(showLineNumbers: Boolean): this;
11
+ get showMiniMap(): Boolean;
9
12
  setShowMiniMap(showMiniMap: Boolean): this;
10
13
  }
@@ -5,11 +5,13 @@ import { VizTooltipOptions } from "./VizTooltipOptions.js";
5
5
  import type { GenericMetaOptions } from "@gdacm/base-types";
6
6
 
7
7
  export declare class PanelOptionsTimeSeries extends PanelOptions {
8
+ get disableKeyboardEvents(): Boolean;
8
9
  setDisableKeyboardEvents(disableKeyboardEvents: Boolean): this;
9
10
  setLegend(legend: VizLegendOptions): this;
10
11
  setNewLegend(onNewCreated: ((item: VizLegendOptions) => VizLegendOptions) | undefined): this;
11
12
  withLegend(onWith: (item: VizLegendOptions) => void): this;
12
13
  get legend(): VizLegendOptions;
14
+ get orientation(): String;
13
15
  setOrientation(orientation: String): this;
14
16
  setTooltip(tooltip: VizTooltipOptions): this;
15
17
  setNewTooltip(onNewCreated: ((item: VizTooltipOptions) => VizTooltipOptions) | undefined): this;
@@ -4,5 +4,6 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class ScaleDistribution extends GrafanaItem {
7
+ get type(): String;
7
8
  setType(type: String): this;
8
9
  }
@@ -4,6 +4,8 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class Stacking extends GrafanaItem {
7
+ get group(): String;
7
8
  setGroup(group: String): this;
9
+ get mode(): String;
8
10
  setMode(mode: String): this;
9
11
  }
@@ -4,5 +4,6 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class StyleColor extends GrafanaItem {
7
+ get fixed(): String;
7
8
  setFixed(fixed: String): this;
8
9
  }
@@ -4,8 +4,12 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class StyleRotation extends GrafanaItem {
7
+ get fixed(): Number;
7
8
  setFixed(fixed: Number): this;
9
+ get max(): Number;
8
10
  setMax(max: Number): this;
11
+ get min(): Number;
9
12
  setMin(min: Number): this;
13
+ get mode(): String;
10
14
  setMode(mode: String): this;
11
15
  }
@@ -4,7 +4,10 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class StyleSize extends GrafanaItem {
7
+ get fixed(): Number;
7
8
  setFixed(fixed: Number): this;
9
+ get max(): Number;
8
10
  setMax(max: Number): this;
11
+ get min(): Number;
9
12
  setMin(min: Number): this;
10
13
  }
@@ -4,7 +4,10 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class StyleSymbol extends GrafanaItem {
7
+ get field(): String;
7
8
  setField(field: String): this;
9
+ get fixed(): String;
8
10
  setFixed(fixed: String): this;
11
+ get mode(): String;
9
12
  setMode(mode: String): this;
10
13
  }
@@ -4,6 +4,8 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class StyleSymbolAlign extends GrafanaItem {
7
+ get horizontal(): String;
7
8
  setHorizontal(horizontal: String): this;
9
+ get vertical(): String;
8
10
  setVertical(vertical: String): this;
9
11
  }
@@ -4,9 +4,14 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class StyleTextConfig extends GrafanaItem {
7
+ get fontSize(): Number;
7
8
  setFontSize(fontSize: Number): this;
9
+ get offsetX(): Number;
8
10
  setOffsetX(offsetX: Number): this;
11
+ get offsetY(): Number;
9
12
  setOffsetY(offsetY: Number): this;
13
+ get textAlign(): String;
10
14
  setTextAlign(textAlign: String): this;
15
+ get textBaseline(): String;
11
16
  setTextBaseline(textBaseline: String): this;
12
17
  }
@@ -4,14 +4,20 @@ import { Datasource } from "./Datasource.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class Target extends GrafanaItem {
7
+ get alias(): String;
7
8
  setAlias(alias: String): this;
9
+ get refId(): String;
8
10
  setRefId(refId: String): this;
11
+ get query(): String;
9
12
  setQuery(query: String): this;
10
13
  setDatasource(datasource: Datasource): this;
11
14
  setNewDatasource(onNewCreated: ((item: Datasource) => Datasource) | undefined): this;
12
15
  withDatasource(onWith: (item: Datasource) => void): this;
13
16
  get datasource(): Datasource;
17
+ get seriesCount(): Number;
14
18
  setSeriesCount(seriesCount: Number): this;
19
+ get scenarioId(): String;
15
20
  setScenarioId(scenarioId: String): this;
21
+ get stringInput(): String;
16
22
  setStringInput(stringInput: String): this;
17
23
  }
@@ -10,11 +10,18 @@ export declare class TargetInfinity extends Target {
10
10
  setComputedColumns(computedColumns: Object): this;
11
11
  withComputedColumns(onWith: (item: Object) => void): this;
12
12
  get computedColumns(): Object;
13
+ get format(): String;
13
14
  setFormat(format: String): this;
15
+ get parser(): String;
14
16
  setParser(parser: String): this;
17
+ get source(): String;
15
18
  setSource(source: String): this;
19
+ get type(): String;
16
20
  setType(type: String): this;
21
+ get uql(): String;
17
22
  setUql(uql: String): this;
23
+ get url(): String;
18
24
  setUrl(url: String): this;
25
+ get urlOptions(): Object;
19
26
  setUrlOptions(urlOptions: Object): this;
20
27
  }
@@ -9,21 +9,33 @@ export declare class Template extends GrafanaItem {
9
9
  setNewCurrent(onNewCreated: ((item: TemplateCurrent) => TemplateCurrent) | undefined): this;
10
10
  withCurrent(onWith: (item: TemplateCurrent) => void): this;
11
11
  get current(): TemplateCurrent;
12
+ get definition(): String;
12
13
  setDefinition(definition: String): this;
14
+ get description(): String;
13
15
  setDescription(description: String): this;
16
+ get hide(): Number;
14
17
  setHide(hide: Number): this;
18
+ get label(): String;
15
19
  setLabel(label: String): this;
20
+ get multi(): Boolean;
16
21
  setMulti(multi: Boolean): this;
22
+ get name(): String;
17
23
  setName(name: String): this;
18
24
  initOptions(): this;
19
25
  get options(): TemplateOption[];
20
26
  addOption(option: TemplateOption): this;
21
27
  addNewOption(onNewCreated: (item: TemplateOption) => TemplateOption): this;
22
28
  withOptions(onWith: (options: TemplateOption[]) => void): this;
29
+ get query(): Object;
23
30
  setQuery(query: Object): this;
31
+ get refresh(): Number;
24
32
  setRefresh(refresh: Number): this;
33
+ get regex(): String;
25
34
  setRegex(regex: String): this;
35
+ get sort(): Number;
26
36
  setSort(sort: Number): this;
37
+ get type(): String;
27
38
  setType(type: String): this;
39
+ get useTags(): Boolean;
28
40
  setUseTags(useTags: Boolean): this;
29
41
  }
@@ -4,6 +4,8 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class TemplateCurrent extends GrafanaItem {
7
+ get text(): Object;
7
8
  setText(text: Object): this;
9
+ get value(): Object;
8
10
  setValue(value: Object): this;
9
11
  }
@@ -4,7 +4,10 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class TemplateOption extends GrafanaItem {
7
+ get selected(): Boolean;
7
8
  setSelected(selected: Boolean): this;
9
+ get text(): String;
8
10
  setText(text: String): this;
11
+ get value(): String;
9
12
  setValue(value: String): this;
10
13
  }
@@ -4,5 +4,6 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class ThresholdStyle extends GrafanaItem {
7
+ get mode(): String;
7
8
  setMode(mode: String): this;
8
9
  }
@@ -4,6 +4,7 @@ import { ThresholdsStep } from "./ThresholdsStep.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class Thresholds extends GrafanaItem {
7
+ get mode(): String;
7
8
  setMode(mode: String): this;
8
9
  initSteps(): this;
9
10
  get steps(): ThresholdsStep[];
@@ -4,6 +4,8 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class ThresholdsStep extends GrafanaItem {
7
+ get value(): Number;
7
8
  setValue(value: Number): this;
9
+ get color(): String;
8
10
  setColor(color: String): this;
9
11
  }
@@ -4,7 +4,9 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class TimeRange extends GrafanaItem {
7
+ get from(): String;
7
8
  setFrom(from: String): this;
9
+ get to(): String;
8
10
  setTo(to: String): this;
9
11
  setRange(from: string, to: string): this;
10
12
  }
@@ -4,18 +4,28 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class VizLegendOptions extends GrafanaItem {
7
+ get asTable(): Boolean;
7
8
  setAsTable(asTable: Boolean): this;
8
9
  initCalcs(): this;
9
10
  get calcs(): String[];
10
11
  addCalc(calc: String): this;
11
12
  withCalcs(onWith: (calcs: String[]) => void): this;
13
+ get displayMode(): String;
12
14
  setDisplayMode(displayMode: String): this;
15
+ get isVisible(): Boolean;
13
16
  setIsVisible(isVisible: Boolean): this;
17
+ get limit(): Number;
14
18
  setLimit(limit: Number): this;
19
+ get overflow(): String;
15
20
  setOverflow(overflow: String): this;
21
+ get placement(): String;
16
22
  setPlacement(placement: String): this;
23
+ get showLegend(): Boolean;
17
24
  setShowLegend(showLegend: Boolean): this;
25
+ get sortBy(): String;
18
26
  setSortBy(sortBy: String): this;
27
+ get sortDesc(): Boolean;
19
28
  setSortDesc(sortDesc: Boolean): this;
29
+ get width(): Number;
20
30
  setWidth(width: Number): this;
21
31
  }
@@ -4,7 +4,10 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class VizTextDisplayOptions extends GrafanaItem {
7
+ get percentSize(): Number;
7
8
  setPercentSize(percentSize: Number): this;
9
+ get titleSize(): Number;
8
10
  setTitleSize(titleSize: Number): this;
11
+ get valueSize(): Number;
9
12
  setValueSize(valueSize: Number): this;
10
13
  }
@@ -4,9 +4,14 @@ import { GrafanaItem } from "./GrafanaItem.js";
4
4
  import type { GenericMetaOptions } from "@gdacm/base-types";
5
5
 
6
6
  export declare class VizTooltipOptions extends GrafanaItem {
7
+ get hideZeros(): Boolean;
7
8
  setHideZeros(hideZeros: Boolean): this;
9
+ get maxHeight(): Number;
8
10
  setMaxHeight(maxHeight: Number): this;
11
+ get maxWidth(): Number;
9
12
  setMaxWidth(maxWidth: Number): this;
13
+ get mode(): String;
10
14
  setMode(mode: String): this;
15
+ get sort(): String;
11
16
  setSort(sort: String): this;
12
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gdacm/grafana-items",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
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.20"
33
+ "@gdacm/base-types": "^0.1.21"
34
34
  },
35
35
  "devDependencies": {
36
36
  "chokidar-cli": "^3.0.0",