@epilot/customer-portal-client 0.38.1 → 0.38.2

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
@@ -4326,6 +4326,12 @@ declare namespace Components {
4326
4326
  * ]
4327
4327
  */
4328
4328
  meter_numbers?: string[];
4329
+ /**
4330
+ * ID of the created file entity for the uploaded photo.
4331
+ * example:
4332
+ * abc123def456
4333
+ */
4334
+ file_id?: string;
4329
4335
  }
4330
4336
  export interface MeterReadingWidget {
4331
4337
  id: string;
@@ -4843,6 +4849,16 @@ declare namespace Components {
4843
4849
  * 453ad7bf-86d5-46c8-8252-bcc868df5e3c
4844
4850
  */
4845
4851
  portal_id?: string;
4852
+ /**
4853
+ * 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.
4854
+ *
4855
+ * example:
4856
+ * [
4857
+ * "old-dashboard",
4858
+ * "home"
4859
+ * ]
4860
+ */
4861
+ past_routes?: string[];
4846
4862
  }
4847
4863
  export interface PageRequest {
4848
4864
  [name: string]: any;
@@ -7581,6 +7597,14 @@ declare namespace Components {
7581
7597
  pages?: PageRequest[];
7582
7598
  }
7583
7599
  export interface UpsertPortalWidget {
7600
+ /**
7601
+ * V3 portal-scoped storage key for the widget configuration
7602
+ */
7603
+ portal_sk_v3?: string;
7604
+ /**
7605
+ * Indicates whether the widget configuration is stored as a V3 portal-scoped item
7606
+ */
7607
+ is_v3_item?: boolean;
7584
7608
  widgets: PortalWidget[];
7585
7609
  }
7586
7610
  export interface UserRequest {
@@ -9144,6 +9168,12 @@ declare namespace Paths {
9144
9168
  * sum
9145
9169
  */
9146
9170
  aggregation_method?: "sum" | "average" | "max" | "min";
9171
+ /**
9172
+ * Optional unit of the consumption value. Defaults to unit present on the relevant Meter Counter.
9173
+ * example:
9174
+ * kWh
9175
+ */
9176
+ unit?: string;
9147
9177
  }[];
9148
9178
  }
9149
9179
  export type $401 = Components.Responses.Unauthorized;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/customer-portal-client",
3
- "version": "0.38.1",
3
+ "version": "0.38.2",
4
4
  "description": "API Client for epilot portal API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,6 +18,18 @@
18
18
  "sdk",
19
19
  "customer-portal"
20
20
  ],
21
+ "scripts": {
22
+ "test": "vitest",
23
+ "typescript": "tsc",
24
+ "bundle-definition": "webpack",
25
+ "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/customer-portal.yaml",
26
+ "typegen": "openapi typegen src/openapi.json --client > src/openapi.d.ts",
27
+ "build": "tsc && npm run build:patch && npm run bundle-definition",
28
+ "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
29
+ "build:watch": "npm run build && tsc -w",
30
+ "prepublishOnly": "npm run typegen && npm run build",
31
+ "lint": "biome check src"
32
+ },
21
33
  "files": [
22
34
  "*.js",
23
35
  "*.d.ts",
@@ -55,16 +67,5 @@
55
67
  "typescript": "^4.1.3",
56
68
  "webpack": "^5.18.0",
57
69
  "webpack-cli": "^4.4.0"
58
- },
59
- "scripts": {
60
- "test": "vitest",
61
- "typescript": "tsc",
62
- "bundle-definition": "webpack",
63
- "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/customer-portal.yaml",
64
- "typegen": "openapi typegen src/openapi.json --client > src/openapi.d.ts",
65
- "build": "tsc && npm run build:patch && npm run bundle-definition",
66
- "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
67
- "build:watch": "npm run build && tsc -w",
68
- "lint": "biome check src"
69
70
  }
70
- }
71
+ }
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": [
@@ -10804,6 +10809,14 @@
10804
10809
  "widgets"
10805
10810
  ],
10806
10811
  "properties": {
10812
+ "portal_sk_v3": {
10813
+ "type": "string",
10814
+ "description": "V3 portal-scoped storage key for the widget configuration"
10815
+ },
10816
+ "is_v3_item": {
10817
+ "type": "boolean",
10818
+ "description": "Indicates whether the widget configuration is stored as a V3 portal-scoped item"
10819
+ },
10807
10820
  "widgets": {
10808
10821
  "type": "array",
10809
10822
  "items": {
@@ -14672,6 +14685,11 @@
14672
14685
  "example": [
14673
14686
  "00123456"
14674
14687
  ]
14688
+ },
14689
+ "file_id": {
14690
+ "type": "string",
14691
+ "description": "ID of the created file entity for the uploaded photo.",
14692
+ "example": "abc123def456"
14675
14693
  }
14676
14694
  }
14677
14695
  },
@@ -15397,6 +15415,17 @@
15397
15415
  "type": "string",
15398
15416
  "description": "The id of the portal",
15399
15417
  "example": "453ad7bf-86d5-46c8-8252-bcc868df5e3c"
15418
+ },
15419
+ "past_routes": {
15420
+ "type": "array",
15421
+ "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",
15422
+ "items": {
15423
+ "type": "string"
15424
+ },
15425
+ "example": [
15426
+ "old-dashboard",
15427
+ "home"
15428
+ ]
15400
15429
  }
15401
15430
  }
15402
15431
  }
package/tsconfig.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "strict": true,
4
+ "skipLibCheck": true,
4
5
  "target": "es5",
5
6
  "module": "commonjs",
6
7
  "moduleResolution": "node",
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.