@epilot/customer-portal-client 0.38.1 → 0.38.3
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/definition.js +1 -1
- package/dist/openapi-runtime.json +12 -0
- package/dist/openapi.d.ts +178 -0
- package/package.json +14 -13
- package/src/openapi-runtime.json +12 -0
- package/src/openapi.json +224 -6
- package/tsconfig.json +1 -0
- package/LICENSE +0 -21
- package/src/openapi.d.ts +0 -16729
package/src/openapi.json
CHANGED
|
@@ -828,6 +828,11 @@
|
|
|
828
828
|
"min"
|
|
829
829
|
],
|
|
830
830
|
"example": "sum"
|
|
831
|
+
},
|
|
832
|
+
"unit": {
|
|
833
|
+
"type": "string",
|
|
834
|
+
"description": "Optional unit of the consumption value. Defaults to unit present on the relevant Meter Counter.",
|
|
835
|
+
"example": "kWh"
|
|
831
836
|
}
|
|
832
837
|
},
|
|
833
838
|
"required": [
|
|
@@ -856,6 +861,111 @@
|
|
|
856
861
|
}
|
|
857
862
|
}
|
|
858
863
|
},
|
|
864
|
+
"/v2/portal/visualization:export": {
|
|
865
|
+
"post": {
|
|
866
|
+
"operationId": "prepareVisualizationExport",
|
|
867
|
+
"summary": "Prepare Visualization Export",
|
|
868
|
+
"description": "Asks an installed App to prepare a downloadable export of a visualization (consumption chart, dynamic tariff chart, etc.). The export is produced by the third-party App via a configured portal extension hook of type `dataExport` — this endpoint does not generate the file itself, it forwards the request to the configured hook and returns the descriptor the App provides (typically a `download_url`).\n",
|
|
869
|
+
"tags": [
|
|
870
|
+
"ECP"
|
|
871
|
+
],
|
|
872
|
+
"security": [
|
|
873
|
+
{
|
|
874
|
+
"PortalAuth": []
|
|
875
|
+
}
|
|
876
|
+
],
|
|
877
|
+
"requestBody": {
|
|
878
|
+
"required": true,
|
|
879
|
+
"content": {
|
|
880
|
+
"application/json": {
|
|
881
|
+
"schema": {
|
|
882
|
+
"type": "object",
|
|
883
|
+
"properties": {
|
|
884
|
+
"app_id": {
|
|
885
|
+
"type": "string",
|
|
886
|
+
"description": "App ID providing the dataExport hook."
|
|
887
|
+
},
|
|
888
|
+
"extension_id": {
|
|
889
|
+
"type": "string",
|
|
890
|
+
"description": "Extension ID providing the dataExport hook."
|
|
891
|
+
},
|
|
892
|
+
"hook_id": {
|
|
893
|
+
"type": "string",
|
|
894
|
+
"description": "Hook ID for the export."
|
|
895
|
+
},
|
|
896
|
+
"from": {
|
|
897
|
+
"type": "string",
|
|
898
|
+
"format": "date-time",
|
|
899
|
+
"description": "Optional start date for the export window (ISO 8601 format)."
|
|
900
|
+
},
|
|
901
|
+
"to": {
|
|
902
|
+
"type": "string",
|
|
903
|
+
"format": "date-time",
|
|
904
|
+
"description": "Optional end date for the export window (ISO 8601 format)."
|
|
905
|
+
},
|
|
906
|
+
"context_entities": {
|
|
907
|
+
"$ref": "#/components/schemas/ContextEntities"
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
"required": [
|
|
911
|
+
"app_id",
|
|
912
|
+
"extension_id",
|
|
913
|
+
"hook_id"
|
|
914
|
+
],
|
|
915
|
+
"additionalProperties": false
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
"responses": {
|
|
921
|
+
"200": {
|
|
922
|
+
"description": "Export descriptor returned by the App.",
|
|
923
|
+
"content": {
|
|
924
|
+
"application/json": {
|
|
925
|
+
"schema": {
|
|
926
|
+
"type": "object",
|
|
927
|
+
"properties": {
|
|
928
|
+
"download_url": {
|
|
929
|
+
"type": "string",
|
|
930
|
+
"description": "URL the client can use to download the exported file. May be a pre-signed or short-lived URL."
|
|
931
|
+
},
|
|
932
|
+
"filename": {
|
|
933
|
+
"type": "string",
|
|
934
|
+
"description": "Suggested filename for the exported file."
|
|
935
|
+
},
|
|
936
|
+
"content_type": {
|
|
937
|
+
"type": "string",
|
|
938
|
+
"description": "MIME type of the exported file.",
|
|
939
|
+
"example": "text/csv"
|
|
940
|
+
},
|
|
941
|
+
"expires_at": {
|
|
942
|
+
"type": "string",
|
|
943
|
+
"format": "date-time",
|
|
944
|
+
"description": "Optional expiration timestamp for the download URL."
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
"required": [
|
|
948
|
+
"download_url"
|
|
949
|
+
]
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
"401": {
|
|
955
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
956
|
+
},
|
|
957
|
+
"403": {
|
|
958
|
+
"$ref": "#/components/responses/Forbidden"
|
|
959
|
+
},
|
|
960
|
+
"404": {
|
|
961
|
+
"$ref": "#/components/responses/NotFound"
|
|
962
|
+
},
|
|
963
|
+
"500": {
|
|
964
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
},
|
|
859
969
|
"/v2/portal/costs": {
|
|
860
970
|
"get": {
|
|
861
971
|
"operationId": "getCosts",
|
|
@@ -10804,6 +10914,14 @@
|
|
|
10804
10914
|
"widgets"
|
|
10805
10915
|
],
|
|
10806
10916
|
"properties": {
|
|
10917
|
+
"portal_sk_v3": {
|
|
10918
|
+
"type": "string",
|
|
10919
|
+
"description": "V3 portal-scoped storage key for the widget configuration"
|
|
10920
|
+
},
|
|
10921
|
+
"is_v3_item": {
|
|
10922
|
+
"type": "boolean",
|
|
10923
|
+
"description": "Indicates whether the widget configuration is stored as a V3 portal-scoped item"
|
|
10924
|
+
},
|
|
10807
10925
|
"widgets": {
|
|
10808
10926
|
"type": "array",
|
|
10809
10927
|
"items": {
|
|
@@ -13479,6 +13597,12 @@
|
|
|
13479
13597
|
"$ref": "#/components/schemas/DataRetrievalItem"
|
|
13480
13598
|
}
|
|
13481
13599
|
},
|
|
13600
|
+
"dataExport": {
|
|
13601
|
+
"type": "array",
|
|
13602
|
+
"items": {
|
|
13603
|
+
"$ref": "#/components/schemas/DataRetrievalItem"
|
|
13604
|
+
}
|
|
13605
|
+
},
|
|
13482
13606
|
"priceDataRetrieval": {
|
|
13483
13607
|
"type": "array",
|
|
13484
13608
|
"items": {
|
|
@@ -13774,6 +13898,9 @@
|
|
|
13774
13898
|
{
|
|
13775
13899
|
"$ref": "#/components/schemas/ExtensionHookConsumptionDataRetrieval"
|
|
13776
13900
|
},
|
|
13901
|
+
{
|
|
13902
|
+
"$ref": "#/components/schemas/ExtensionHookDataExport"
|
|
13903
|
+
},
|
|
13777
13904
|
{
|
|
13778
13905
|
"$ref": "#/components/schemas/ExtensionHookCostDataRetrieval"
|
|
13779
13906
|
},
|
|
@@ -13937,7 +14064,8 @@
|
|
|
13937
14064
|
},
|
|
13938
14065
|
"use_static_ips": {
|
|
13939
14066
|
"type": "boolean",
|
|
13940
|
-
"
|
|
14067
|
+
"deprecated": true,
|
|
14068
|
+
"description": "Deprecated. Prefer `secure_proxy` instead.\nIf 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.\n",
|
|
13941
14069
|
"default": false
|
|
13942
14070
|
},
|
|
13943
14071
|
"secure_proxy": {
|
|
@@ -14039,7 +14167,8 @@
|
|
|
14039
14167
|
},
|
|
14040
14168
|
"use_static_ips": {
|
|
14041
14169
|
"type": "boolean",
|
|
14042
|
-
"
|
|
14170
|
+
"deprecated": true,
|
|
14171
|
+
"description": "Deprecated. Prefer `secure_proxy` instead.\nIf 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.\n",
|
|
14043
14172
|
"default": false
|
|
14044
14173
|
},
|
|
14045
14174
|
"secure_proxy": {
|
|
@@ -14149,7 +14278,8 @@
|
|
|
14149
14278
|
},
|
|
14150
14279
|
"use_static_ips": {
|
|
14151
14280
|
"type": "boolean",
|
|
14152
|
-
"
|
|
14281
|
+
"deprecated": true,
|
|
14282
|
+
"description": "Deprecated. Prefer `secure_proxy` instead.\nIf 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.\n",
|
|
14153
14283
|
"default": false
|
|
14154
14284
|
},
|
|
14155
14285
|
"secure_proxy": {
|
|
@@ -14227,7 +14357,8 @@
|
|
|
14227
14357
|
},
|
|
14228
14358
|
"use_static_ips": {
|
|
14229
14359
|
"type": "boolean",
|
|
14230
|
-
"
|
|
14360
|
+
"deprecated": true,
|
|
14361
|
+
"description": "Deprecated. Prefer `secure_proxy` instead.\nIf 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.\n",
|
|
14231
14362
|
"default": false
|
|
14232
14363
|
},
|
|
14233
14364
|
"secure_proxy": {
|
|
@@ -14304,7 +14435,77 @@
|
|
|
14304
14435
|
},
|
|
14305
14436
|
"use_static_ips": {
|
|
14306
14437
|
"type": "boolean",
|
|
14307
|
-
"
|
|
14438
|
+
"deprecated": true,
|
|
14439
|
+
"description": "Deprecated. Prefer `secure_proxy` instead.\nIf 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.\n",
|
|
14440
|
+
"default": false
|
|
14441
|
+
},
|
|
14442
|
+
"secure_proxy": {
|
|
14443
|
+
"$ref": "#/components/schemas/SecureProxyConfig"
|
|
14444
|
+
}
|
|
14445
|
+
},
|
|
14446
|
+
"required": [
|
|
14447
|
+
"type",
|
|
14448
|
+
"call"
|
|
14449
|
+
]
|
|
14450
|
+
},
|
|
14451
|
+
"ExtensionHookDataExport": {
|
|
14452
|
+
"description": "Generic data export hook. When configured on a visualization block, 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",
|
|
14453
|
+
"type": "object",
|
|
14454
|
+
"properties": {
|
|
14455
|
+
"type": {
|
|
14456
|
+
"type": "string",
|
|
14457
|
+
"enum": [
|
|
14458
|
+
"dataExport"
|
|
14459
|
+
]
|
|
14460
|
+
},
|
|
14461
|
+
"auth": {
|
|
14462
|
+
"$ref": "#/components/schemas/ExtensionAuthBlock"
|
|
14463
|
+
},
|
|
14464
|
+
"call": {
|
|
14465
|
+
"type": "object",
|
|
14466
|
+
"properties": {
|
|
14467
|
+
"method": {
|
|
14468
|
+
"type": "string",
|
|
14469
|
+
"description": "HTTP method to use for the call",
|
|
14470
|
+
"default": "GET"
|
|
14471
|
+
},
|
|
14472
|
+
"url": {
|
|
14473
|
+
"type": "string",
|
|
14474
|
+
"description": "URL to call. Supports variable interpolation."
|
|
14475
|
+
},
|
|
14476
|
+
"params": {
|
|
14477
|
+
"type": "object",
|
|
14478
|
+
"description": "Parameters to append to the URL. Supports variable interpolation.",
|
|
14479
|
+
"additionalProperties": {
|
|
14480
|
+
"type": "string"
|
|
14481
|
+
},
|
|
14482
|
+
"default": {}
|
|
14483
|
+
},
|
|
14484
|
+
"headers": {
|
|
14485
|
+
"type": "object",
|
|
14486
|
+
"description": "Headers to use. Supports variable interpolation.",
|
|
14487
|
+
"additionalProperties": {
|
|
14488
|
+
"type": "string"
|
|
14489
|
+
},
|
|
14490
|
+
"default": {}
|
|
14491
|
+
},
|
|
14492
|
+
"body": {
|
|
14493
|
+
"type": "object",
|
|
14494
|
+
"description": "Request body to send. Supports variable interpolation. Content format is determined by Content-Type header.",
|
|
14495
|
+
"additionalProperties": {
|
|
14496
|
+
"type": "string"
|
|
14497
|
+
},
|
|
14498
|
+
"default": {}
|
|
14499
|
+
}
|
|
14500
|
+
},
|
|
14501
|
+
"required": [
|
|
14502
|
+
"url"
|
|
14503
|
+
]
|
|
14504
|
+
},
|
|
14505
|
+
"use_static_ips": {
|
|
14506
|
+
"type": "boolean",
|
|
14507
|
+
"deprecated": true,
|
|
14508
|
+
"description": "Deprecated. Prefer `secure_proxy` instead.\nIf 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.\n",
|
|
14308
14509
|
"default": false
|
|
14309
14510
|
},
|
|
14310
14511
|
"secure_proxy": {
|
|
@@ -14381,7 +14582,8 @@
|
|
|
14381
14582
|
},
|
|
14382
14583
|
"use_static_ips": {
|
|
14383
14584
|
"type": "boolean",
|
|
14384
|
-
"
|
|
14585
|
+
"deprecated": true,
|
|
14586
|
+
"description": "Deprecated. Prefer `secure_proxy` instead.\nIf 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.\n",
|
|
14385
14587
|
"default": false
|
|
14386
14588
|
},
|
|
14387
14589
|
"secure_proxy": {
|
|
@@ -14672,6 +14874,11 @@
|
|
|
14672
14874
|
"example": [
|
|
14673
14875
|
"00123456"
|
|
14674
14876
|
]
|
|
14877
|
+
},
|
|
14878
|
+
"file_id": {
|
|
14879
|
+
"type": "string",
|
|
14880
|
+
"description": "ID of the created file entity for the uploaded photo.",
|
|
14881
|
+
"example": "abc123def456"
|
|
14675
14882
|
}
|
|
14676
14883
|
}
|
|
14677
14884
|
},
|
|
@@ -15397,6 +15604,17 @@
|
|
|
15397
15604
|
"type": "string",
|
|
15398
15605
|
"description": "The id of the portal",
|
|
15399
15606
|
"example": "453ad7bf-86d5-46c8-8252-bcc868df5e3c"
|
|
15607
|
+
},
|
|
15608
|
+
"past_routes": {
|
|
15609
|
+
"type": "array",
|
|
15610
|
+
"description": "Slugs that previously belonged to this page. The portal redirects requests for these slugs to the current slug. Managed by the server: when a page's slug changes, the old slug is appended here, and when another page claims one of these slugs it is removed from this list.\n",
|
|
15611
|
+
"items": {
|
|
15612
|
+
"type": "string"
|
|
15613
|
+
},
|
|
15614
|
+
"example": [
|
|
15615
|
+
"old-dashboard",
|
|
15616
|
+
"home"
|
|
15617
|
+
]
|
|
15400
15618
|
}
|
|
15401
15619
|
}
|
|
15402
15620
|
}
|
package/tsconfig.json
CHANGED
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 epilot GmbH
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|