@epilot/app-client 0.12.6 → 0.12.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 +20 -2
- package/dist/openapi.json +1 -1
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -1519,10 +1519,19 @@ declare namespace Components {
|
|
|
1519
1519
|
* Hook that returns runtime metadata describing how a visualization (consumption / price / cost chart) should be rendered for a given portal context (meter, contract, etc). It is invoked by the portal before fetching data, with the same context the data hook would receive, so that the discovery shape can vary per meter/contract. The expected response to the call is:
|
|
1520
1520
|
* - 200 with a JSON body of shape:
|
|
1521
1521
|
* {
|
|
1522
|
-
* "type_options": [
|
|
1522
|
+
* "type_options": [
|
|
1523
|
+
* { "id": "feed-out", "label": { "en": "Grid import" }, "aggregation_group": "grid", "statistical_method": "sum", "direction": "out", "unit": "kWh" },
|
|
1524
|
+
* { "id": "feed-in", "label": { "en": "Feed-in" }, "aggregation_group": "grid", "statistical_method": "sum", "direction": "in", "unit": "kWh" },
|
|
1525
|
+
* ...
|
|
1526
|
+
* ],
|
|
1523
1527
|
* "intervals": ["PT15M", "PT1H", "P1D", "P1M"],
|
|
1524
1528
|
* "data_range": { "from": "2024-01-01T00:00:00Z", "to": "2026-05-01T00:00:00Z" }
|
|
1525
1529
|
* }
|
|
1530
|
+
* Each type option carries its own `statistical_method`, which describes the method already applied to that type's data and dictates the chart shape: `sum` is rendered as a bar chart; `min`, `average`, and `max` are rendered as a line chart. A single visualization can therefore mix bar-shaped types with line-shaped types. Defaults to `sum` when omitted.
|
|
1531
|
+
* `direction` declares whether a type adds to or subtracts from the period total: `out` is grid-to-consumer (consumption, additive); `in` is consumer-to-grid (export, subtractive). With both present in a prosumer setup the chart computes a *net* consumption per period and can flip its label to "Total production" when the result is negative. Defaults to `out` when omitted.
|
|
1532
|
+
* `aggregation_group` controls how types within a group are visually combined (depends on the per-type `statistical_method`):
|
|
1533
|
+
* - bar chart (`sum`): same-group types are stacked into a single bar (e.g. ht/nt summed into total consumption); different-group types render side-by-side.
|
|
1534
|
+
* - line chart (`min` / `average` / `max`): same-group types are rendered as an area chart; different-group types render as separate lines.
|
|
1526
1535
|
* All fields are optional; the consumer falls back to its defaults for whatever the hook does not return.
|
|
1527
1536
|
* The portal looks up this hook implicitly per extension (one `visualizationMetadata` hook per extension) — there is no need for a data-retrieval hook to reference it explicitly.
|
|
1528
1537
|
*
|
|
@@ -2035,10 +2044,19 @@ declare namespace Components {
|
|
|
2035
2044
|
* Hook that returns runtime metadata describing how a visualization (consumption / price / cost chart) should be rendered for a given portal context (meter, contract, etc). It is invoked by the portal before fetching data, with the same context the data hook would receive, so that the discovery shape can vary per meter/contract. The expected response to the call is:
|
|
2036
2045
|
* - 200 with a JSON body of shape:
|
|
2037
2046
|
* {
|
|
2038
|
-
* "type_options": [
|
|
2047
|
+
* "type_options": [
|
|
2048
|
+
* { "id": "feed-out", "label": { "en": "Grid import" }, "aggregation_group": "grid", "statistical_method": "sum", "direction": "out", "unit": "kWh" },
|
|
2049
|
+
* { "id": "feed-in", "label": { "en": "Feed-in" }, "aggregation_group": "grid", "statistical_method": "sum", "direction": "in", "unit": "kWh" },
|
|
2050
|
+
* ...
|
|
2051
|
+
* ],
|
|
2039
2052
|
* "intervals": ["PT15M", "PT1H", "P1D", "P1M"],
|
|
2040
2053
|
* "data_range": { "from": "2024-01-01T00:00:00Z", "to": "2026-05-01T00:00:00Z" }
|
|
2041
2054
|
* }
|
|
2055
|
+
* Each type option carries its own `statistical_method`, which describes the method already applied to that type's data and dictates the chart shape: `sum` is rendered as a bar chart; `min`, `average`, and `max` are rendered as a line chart. A single visualization can therefore mix bar-shaped types with line-shaped types. Defaults to `sum` when omitted.
|
|
2056
|
+
* `direction` declares whether a type adds to or subtracts from the period total: `out` is grid-to-consumer (consumption, additive); `in` is consumer-to-grid (export, subtractive). With both present in a prosumer setup the chart computes a *net* consumption per period and can flip its label to "Total production" when the result is negative. Defaults to `out` when omitted.
|
|
2057
|
+
* `aggregation_group` controls how types within a group are visually combined (depends on the per-type `statistical_method`):
|
|
2058
|
+
* - bar chart (`sum`): same-group types are stacked into a single bar (e.g. ht/nt summed into total consumption); different-group types render side-by-side.
|
|
2059
|
+
* - line chart (`min` / `average` / `max`): same-group types are rendered as an area chart; different-group types render as separate lines.
|
|
2042
2060
|
* All fields are optional; the consumer falls back to its defaults for whatever the hook does not return.
|
|
2043
2061
|
* The portal looks up this hook implicitly per extension (one `visualizationMetadata` hook per extension) — there is no need for a data-retrieval hook to reference it explicitly.
|
|
2044
2062
|
*
|
package/dist/openapi.json
CHANGED
|
@@ -3252,7 +3252,7 @@
|
|
|
3252
3252
|
"additionalProperties": false
|
|
3253
3253
|
},
|
|
3254
3254
|
"PortalExtensionHookVisualizationMetadata": {
|
|
3255
|
-
"description": "Hook that returns runtime metadata describing how a visualization (consumption / price / cost chart) should be rendered for a given portal context (meter, contract, etc). It is invoked by the portal before fetching data, with the same context the data hook would receive, so that the discovery shape can vary per meter/contract. The expected response to the call is:\n - 200 with a JSON body of shape:\n {\n \"type_options\": [{ \"id\": \"
|
|
3255
|
+
"description": "Hook that returns runtime metadata describing how a visualization (consumption / price / cost chart) should be rendered for a given portal context (meter, contract, etc). It is invoked by the portal before fetching data, with the same context the data hook would receive, so that the discovery shape can vary per meter/contract. The expected response to the call is:\n - 200 with a JSON body of shape:\n {\n \"type_options\": [\n { \"id\": \"feed-out\", \"label\": { \"en\": \"Grid import\" }, \"aggregation_group\": \"grid\", \"statistical_method\": \"sum\", \"direction\": \"out\", \"unit\": \"kWh\" },\n { \"id\": \"feed-in\", \"label\": { \"en\": \"Feed-in\" }, \"aggregation_group\": \"grid\", \"statistical_method\": \"sum\", \"direction\": \"in\", \"unit\": \"kWh\" },\n ...\n ],\n \"intervals\": [\"PT15M\", \"PT1H\", \"P1D\", \"P1M\"],\n \"data_range\": { \"from\": \"2024-01-01T00:00:00Z\", \"to\": \"2026-05-01T00:00:00Z\" }\n }\n Each type option carries its own `statistical_method`, which describes the method already applied to that type's data and dictates the chart shape: `sum` is rendered as a bar chart; `min`, `average`, and `max` are rendered as a line chart. A single visualization can therefore mix bar-shaped types with line-shaped types. Defaults to `sum` when omitted.\n `direction` declares whether a type adds to or subtracts from the period total: `out` is grid-to-consumer (consumption, additive); `in` is consumer-to-grid (export, subtractive). With both present in a prosumer setup the chart computes a *net* consumption per period and can flip its label to \"Total production\" when the result is negative. Defaults to `out` when omitted.\n `aggregation_group` controls how types within a group are visually combined (depends on the per-type `statistical_method`):\n - bar chart (`sum`): same-group types are stacked into a single bar (e.g. ht/nt summed into total consumption); different-group types render side-by-side.\n - line chart (`min` / `average` / `max`): same-group types are rendered as an area chart; different-group types render as separate lines.\n All fields are optional; the consumer falls back to its defaults for whatever the hook does not return.\nThe portal looks up this hook implicitly per extension (one `visualizationMetadata` hook per extension) — there is no need for a data-retrieval hook to reference it explicitly.\n",
|
|
3256
3256
|
"type": "object",
|
|
3257
3257
|
"properties": {
|
|
3258
3258
|
"id": {
|