@epilot/app-client 0.12.4 → 0.12.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/openapi.d.ts +59 -52
- package/dist/openapi.json +10 -5
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -1497,11 +1497,11 @@ declare namespace Components {
|
|
|
1497
1497
|
*
|
|
1498
1498
|
*/
|
|
1499
1499
|
PortalExtensionHookConsumptionDataRetrieval | /**
|
|
1500
|
-
*
|
|
1500
|
+
* Generic data export hook. When configured on blocks that support it, the portal delegates the export action (e.g. CSV/Excel/PDF download) to the configured external source instead of generating the file itself. Can be used by any block that supports export — consumption charts, dynamic tariff charts, etc. The expected response to the call is:
|
|
1501
1501
|
* - 200 with a JSON body describing the exported file (download_url, optional filename, content_type, expires_at)
|
|
1502
1502
|
*
|
|
1503
1503
|
*/
|
|
1504
|
-
|
|
1504
|
+
PortalExtensionHookDataExport | /**
|
|
1505
1505
|
* Hook that will allow using the specified source as data for consumption visualizations. This hook is triggered to fetch the data. Format of the request and response has to follow the following specification: TBD. The expected response to the call is:
|
|
1506
1506
|
* - 200 with the time series data
|
|
1507
1507
|
*
|
|
@@ -1624,55 +1624,6 @@ declare namespace Components {
|
|
|
1624
1624
|
use_static_ips?: boolean;
|
|
1625
1625
|
secure_proxy?: /* If set, requests are routed through the ERP Integration secure proxy. Mutually exclusive with use_static_ips. */ PortalExtensionSecureProxy;
|
|
1626
1626
|
}
|
|
1627
|
-
/**
|
|
1628
|
-
* Hook that takes over the export of consumption data from the portal. When defined, the portal delegates exporting (e.g. CSV/Excel/PDF download) to the configured external source instead of generating the export itself. This hook is triggered when an end user requests a consumption export. The expected response to the call is:
|
|
1629
|
-
* - 200 with a JSON body describing the exported file (download_url, optional filename, content_type, expires_at)
|
|
1630
|
-
*
|
|
1631
|
-
*/
|
|
1632
|
-
export interface PortalExtensionHookConsumptionExport {
|
|
1633
|
-
/**
|
|
1634
|
-
* Identifier of the hook. Should not change between updates.
|
|
1635
|
-
*/
|
|
1636
|
-
id: string; // ^[a-zA-Z0-9_-]+$
|
|
1637
|
-
name?: TranslatedString;
|
|
1638
|
-
type: "consumptionExport";
|
|
1639
|
-
auth?: PortalExtensionAuthBlock;
|
|
1640
|
-
call: {
|
|
1641
|
-
/**
|
|
1642
|
-
* HTTP method to use for the call
|
|
1643
|
-
*/
|
|
1644
|
-
method?: string;
|
|
1645
|
-
/**
|
|
1646
|
-
* URL to call. Supports variable interpolation.
|
|
1647
|
-
*/
|
|
1648
|
-
url: string;
|
|
1649
|
-
/**
|
|
1650
|
-
* Parameters to append to the URL. Supports variable interpolation.
|
|
1651
|
-
*/
|
|
1652
|
-
params?: {
|
|
1653
|
-
[name: string]: string;
|
|
1654
|
-
};
|
|
1655
|
-
/**
|
|
1656
|
-
* Headers to use. Supports variable interpolation.
|
|
1657
|
-
*/
|
|
1658
|
-
headers?: {
|
|
1659
|
-
[name: string]: string;
|
|
1660
|
-
};
|
|
1661
|
-
/**
|
|
1662
|
-
* Request body to send. Supports variable interpolation. Content format is determined by Content-Type header.
|
|
1663
|
-
*/
|
|
1664
|
-
body?: {
|
|
1665
|
-
[name: string]: any;
|
|
1666
|
-
};
|
|
1667
|
-
};
|
|
1668
|
-
/**
|
|
1669
|
-
* Deprecated. Prefer `secure_proxy` instead.
|
|
1670
|
-
* If true, requests are made from a set of static IP addresses and only allow connections to a set of allowed IP addresses. Get in touch with us to add your IP addresses.
|
|
1671
|
-
*
|
|
1672
|
-
*/
|
|
1673
|
-
use_static_ips?: boolean;
|
|
1674
|
-
secure_proxy?: /* If set, requests are routed through the ERP Integration secure proxy. Mutually exclusive with use_static_ips. */ PortalExtensionSecureProxy;
|
|
1675
|
-
}
|
|
1676
1627
|
/**
|
|
1677
1628
|
* A consumption type advertised by a consumption data retrieval hook.
|
|
1678
1629
|
*/
|
|
@@ -1682,6 +1633,13 @@ declare namespace Components {
|
|
|
1682
1633
|
*/
|
|
1683
1634
|
id: string;
|
|
1684
1635
|
label: TranslatedString;
|
|
1636
|
+
/**
|
|
1637
|
+
* Optional grouping key. Types sharing the same aggregation_group are interpreted as values that can be aggregated (e.g. ht/nt shown as a stacked bar chart - summed into total consumption per interval). Types in different groups — or types without a group — are not (e.g. feed-in vs feed-out shown as separate bars).
|
|
1638
|
+
*
|
|
1639
|
+
* example:
|
|
1640
|
+
* consumption
|
|
1641
|
+
*/
|
|
1642
|
+
aggregation_group?: string;
|
|
1685
1643
|
}
|
|
1686
1644
|
/**
|
|
1687
1645
|
* Hook that replaces the built-in Contract identification for self-assignment. This hook involves an HTTP request whenever a user is trying to self-assign Contract(s).
|
|
@@ -1826,6 +1784,55 @@ declare namespace Components {
|
|
|
1826
1784
|
use_static_ips?: boolean;
|
|
1827
1785
|
secure_proxy?: /* If set, requests are routed through the ERP Integration secure proxy. Mutually exclusive with use_static_ips. */ PortalExtensionSecureProxy;
|
|
1828
1786
|
}
|
|
1787
|
+
/**
|
|
1788
|
+
* Generic data export hook. When configured on blocks that support it, the portal delegates the export action (e.g. CSV/Excel/PDF download) to the configured external source instead of generating the file itself. Can be used by any block that supports export — consumption charts, dynamic tariff charts, etc. The expected response to the call is:
|
|
1789
|
+
* - 200 with a JSON body describing the exported file (download_url, optional filename, content_type, expires_at)
|
|
1790
|
+
*
|
|
1791
|
+
*/
|
|
1792
|
+
export interface PortalExtensionHookDataExport {
|
|
1793
|
+
/**
|
|
1794
|
+
* Identifier of the hook. Should not change between updates.
|
|
1795
|
+
*/
|
|
1796
|
+
id: string; // ^[a-zA-Z0-9_-]+$
|
|
1797
|
+
name?: TranslatedString;
|
|
1798
|
+
type: "dataExport";
|
|
1799
|
+
auth?: PortalExtensionAuthBlock;
|
|
1800
|
+
call: {
|
|
1801
|
+
/**
|
|
1802
|
+
* HTTP method to use for the call
|
|
1803
|
+
*/
|
|
1804
|
+
method?: string;
|
|
1805
|
+
/**
|
|
1806
|
+
* URL to call. Supports variable interpolation.
|
|
1807
|
+
*/
|
|
1808
|
+
url: string;
|
|
1809
|
+
/**
|
|
1810
|
+
* Parameters to append to the URL. Supports variable interpolation.
|
|
1811
|
+
*/
|
|
1812
|
+
params?: {
|
|
1813
|
+
[name: string]: string;
|
|
1814
|
+
};
|
|
1815
|
+
/**
|
|
1816
|
+
* Headers to use. Supports variable interpolation.
|
|
1817
|
+
*/
|
|
1818
|
+
headers?: {
|
|
1819
|
+
[name: string]: string;
|
|
1820
|
+
};
|
|
1821
|
+
/**
|
|
1822
|
+
* Request body to send. Supports variable interpolation. Content format is determined by Content-Type header.
|
|
1823
|
+
*/
|
|
1824
|
+
body?: {
|
|
1825
|
+
[name: string]: any;
|
|
1826
|
+
};
|
|
1827
|
+
};
|
|
1828
|
+
/**
|
|
1829
|
+
* Deprecated. Prefer `secure_proxy` instead.
|
|
1830
|
+
* If true, requests are made from a set of static IP addresses and only allow connections to a set of allowed IP addresses. Get in touch with us to add your IP addresses.
|
|
1831
|
+
*
|
|
1832
|
+
*/
|
|
1833
|
+
use_static_ips?: boolean;
|
|
1834
|
+
secure_proxy?: /* If set, requests are routed through the ERP Integration secure proxy. Mutually exclusive with use_static_ips. */ PortalExtensionSecureProxy;
|
|
1835
|
+
}
|
|
1829
1836
|
/**
|
|
1830
1837
|
* Hook that checks the plausibility of meter readings before they are saved. This hook makes a POST call whenever a user is trying to save a meter reading. The expected response to the call is:
|
|
1831
1838
|
* - 200:
|
|
@@ -3606,10 +3613,10 @@ export type PortalExtensionComponent = Components.Schemas.PortalExtensionCompone
|
|
|
3606
3613
|
export type PortalExtensionConfig = Components.Schemas.PortalExtensionConfig;
|
|
3607
3614
|
export type PortalExtensionHookConsumptionAggregationMethodOption = Components.Schemas.PortalExtensionHookConsumptionAggregationMethodOption;
|
|
3608
3615
|
export type PortalExtensionHookConsumptionDataRetrieval = Components.Schemas.PortalExtensionHookConsumptionDataRetrieval;
|
|
3609
|
-
export type PortalExtensionHookConsumptionExport = Components.Schemas.PortalExtensionHookConsumptionExport;
|
|
3610
3616
|
export type PortalExtensionHookConsumptionOption = Components.Schemas.PortalExtensionHookConsumptionOption;
|
|
3611
3617
|
export type PortalExtensionHookContractIdentification = Components.Schemas.PortalExtensionHookContractIdentification;
|
|
3612
3618
|
export type PortalExtensionHookCostDataRetrieval = Components.Schemas.PortalExtensionHookCostDataRetrieval;
|
|
3619
|
+
export type PortalExtensionHookDataExport = Components.Schemas.PortalExtensionHookDataExport;
|
|
3613
3620
|
export type PortalExtensionHookMeterReadingPlausibilityCheck = Components.Schemas.PortalExtensionHookMeterReadingPlausibilityCheck;
|
|
3614
3621
|
export type PortalExtensionHookPriceDataRetrieval = Components.Schemas.PortalExtensionHookPriceDataRetrieval;
|
|
3615
3622
|
export type PortalExtensionHookRegistrationIdentifiersCheck = Components.Schemas.PortalExtensionHookRegistrationIdentifiersCheck;
|
package/dist/openapi.json
CHANGED
|
@@ -2609,7 +2609,7 @@
|
|
|
2609
2609
|
"contractIdentification": "#/components/schemas/PortalExtensionHookContractIdentification",
|
|
2610
2610
|
"priceDataRetrieval": "#/components/schemas/PortalExtensionHookPriceDataRetrieval",
|
|
2611
2611
|
"consumptionDataRetrieval": "#/components/schemas/PortalExtensionHookConsumptionDataRetrieval",
|
|
2612
|
-
"
|
|
2612
|
+
"dataExport": "#/components/schemas/PortalExtensionHookDataExport",
|
|
2613
2613
|
"costDataRetrieval": "#/components/schemas/PortalExtensionHookCostDataRetrieval",
|
|
2614
2614
|
"meterReadingPlausibilityCheck": "#/components/schemas/PortalExtensionHookMeterReadingPlausibilityCheck"
|
|
2615
2615
|
}
|
|
@@ -2628,7 +2628,7 @@
|
|
|
2628
2628
|
"$ref": "#/components/schemas/PortalExtensionHookConsumptionDataRetrieval"
|
|
2629
2629
|
},
|
|
2630
2630
|
{
|
|
2631
|
-
"$ref": "#/components/schemas/
|
|
2631
|
+
"$ref": "#/components/schemas/PortalExtensionHookDataExport"
|
|
2632
2632
|
},
|
|
2633
2633
|
{
|
|
2634
2634
|
"$ref": "#/components/schemas/PortalExtensionHookCostDataRetrieval"
|
|
@@ -3175,8 +3175,8 @@
|
|
|
3175
3175
|
],
|
|
3176
3176
|
"additionalProperties": false
|
|
3177
3177
|
},
|
|
3178
|
-
"
|
|
3179
|
-
"description": "
|
|
3178
|
+
"PortalExtensionHookDataExport": {
|
|
3179
|
+
"description": "Generic data export hook. When configured on blocks that support it, the portal delegates the export action (e.g. CSV/Excel/PDF download) to the configured external source instead of generating the file itself. Can be used by any block that supports export — consumption charts, dynamic tariff charts, etc. The expected response to the call is:\n - 200 with a JSON body describing the exported file (download_url, optional filename, content_type, expires_at)\n",
|
|
3180
3180
|
"type": "object",
|
|
3181
3181
|
"properties": {
|
|
3182
3182
|
"id": {
|
|
@@ -3190,7 +3190,7 @@
|
|
|
3190
3190
|
"type": {
|
|
3191
3191
|
"type": "string",
|
|
3192
3192
|
"enum": [
|
|
3193
|
-
"
|
|
3193
|
+
"dataExport"
|
|
3194
3194
|
]
|
|
3195
3195
|
},
|
|
3196
3196
|
"auth": {
|
|
@@ -3262,6 +3262,11 @@
|
|
|
3262
3262
|
},
|
|
3263
3263
|
"label": {
|
|
3264
3264
|
"$ref": "#/components/schemas/TranslatedString"
|
|
3265
|
+
},
|
|
3266
|
+
"aggregation_group": {
|
|
3267
|
+
"type": "string",
|
|
3268
|
+
"description": "Optional grouping key. Types sharing the same aggregation_group are interpreted as values that can be aggregated (e.g. ht/nt shown as a stacked bar chart - summed into total consumption per interval). Types in different groups — or types without a group — are not (e.g. feed-in vs feed-out shown as separate bars).\n",
|
|
3269
|
+
"example": "consumption"
|
|
3265
3270
|
}
|
|
3266
3271
|
},
|
|
3267
3272
|
"required": [
|