@epilot/customer-portal-client 0.38.7 → 0.38.8

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/openapi.d.ts CHANGED
@@ -7835,19 +7835,19 @@ declare namespace Components {
7835
7835
  */
7836
7836
  statistical_method?: "sum" | "average" | "min" | "max";
7837
7837
  /**
7838
- * Direction of energy flow at the meter for this type:
7839
- * - `out`: outflow from the grid to the consumer (e.g. household consumption,
7840
- * grid import). Adds to the total consumption shown for the period.
7841
- * - `in`: inflow to the grid from the consumer (e.g. PV export, feed-in).
7842
- * Subtracts from the total consumption.
7843
- * With both directions present in a prosumer setup, the chart computes a *net* consumption per period — when production exceeds consumption the period total is negative and the chart can flip its label to "Total production" instead. Defaults to `out` when omitted (the legacy assumption that all values are consumption from the grid).
7838
+ * Unit shared by all values of this type (e.g. "kWh").
7839
+ */
7840
+ unit?: string;
7841
+ /**
7842
+ * Optional Spark color token used to render this type in the visualization. Maps onto the portal's Spark palette (`primary` is the org's primary brand color). When omitted the consumer falls back to its own per-type default.
7844
7843
  *
7845
7844
  */
7846
- direction?: "in" | "out";
7845
+ color?: "primary" | "slate" | "mauve" | "orange" | "red" | "tomato" | "amber" | "green" | "blue";
7847
7846
  /**
7848
- * Unit shared by all values of this type (e.g. "kWh").
7847
+ * Optional number of decimal places to show when rendering values of this type in the visualization (axis labels, tooltips, summaries). When omitted the consumer falls back to its own default precision.
7848
+ *
7849
7849
  */
7850
- unit?: string;
7850
+ precision?: number;
7851
7851
  }
7852
7852
  export interface WidgetAction {
7853
7853
  _id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/customer-portal-client",
3
- "version": "0.38.7",
3
+ "version": "0.38.8",
4
4
  "description": "API Client for epilot portal API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/openapi.json CHANGED
@@ -13856,17 +13856,30 @@
13856
13856
  ],
13857
13857
  "description": "Statistical method already applied to this type's data. Determines the chart shape used to render the type's values: `sum` is shown as a bar chart; `min`, `average`, and `max` are shown as a line chart. Each type advertises its own method, so a single visualization can mix bar-shaped types with line-shaped types. Defaults to `sum` when omitted.\n"
13858
13858
  },
13859
- "direction": {
13859
+ "unit": {
13860
+ "type": "string",
13861
+ "description": "Unit shared by all values of this type (e.g. \"kWh\")."
13862
+ },
13863
+ "color": {
13860
13864
  "type": "string",
13861
13865
  "enum": [
13862
- "in",
13863
- "out"
13866
+ "primary",
13867
+ "slate",
13868
+ "mauve",
13869
+ "orange",
13870
+ "red",
13871
+ "tomato",
13872
+ "amber",
13873
+ "green",
13874
+ "blue"
13864
13875
  ],
13865
- "description": "Direction of energy flow at the meter for this type:\n - `out`: outflow from the grid to the consumer (e.g. household consumption,\n grid import). Adds to the total consumption shown for the period.\n - `in`: inflow to the grid from the consumer (e.g. PV export, feed-in).\n Subtracts from the total consumption.\nWith both directions present in a prosumer setup, the chart computes a *net* consumption per period — when production exceeds consumption the period total is negative and the chart can flip its label to \"Total production\" instead. Defaults to `out` when omitted (the legacy assumption that all values are consumption from the grid).\n"
13876
+ "description": "Optional Spark color token used to render this type in the visualization. Maps onto the portal's Spark palette (`primary` is the org's primary brand color). When omitted the consumer falls back to its own per-type default.\n"
13866
13877
  },
13867
- "unit": {
13868
- "type": "string",
13869
- "description": "Unit shared by all values of this type (e.g. \"kWh\")."
13878
+ "precision": {
13879
+ "type": "integer",
13880
+ "minimum": 0,
13881
+ "maximum": 10,
13882
+ "description": "Optional number of decimal places to show when rendering values of this type in the visualization (axis labels, tooltips, summaries). When omitted the consumer falls back to its own default precision.\n"
13870
13883
  }
13871
13884
  },
13872
13885
  "required": [