@epilot/customer-portal-client 0.36.0 → 0.38.1
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/LICENSE +21 -0
- package/dist/definition.js +1 -1
- package/dist/openapi-runtime.json +71 -0
- package/dist/openapi.d.ts +633 -5
- package/package.json +14 -15
- package/src/openapi-runtime.json +71 -0
- package/src/openapi.d.ts +16729 -0
- package/src/openapi.json +373 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/customer-portal-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.1",
|
|
4
4
|
"description": "API Client for epilot portal API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,18 +18,6 @@
|
|
|
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
|
-
},
|
|
33
21
|
"files": [
|
|
34
22
|
"*.js",
|
|
35
23
|
"*.d.ts",
|
|
@@ -61,11 +49,22 @@
|
|
|
61
49
|
"axios": "^1.11.0",
|
|
62
50
|
"copy-webpack-plugin": "^7.0.0",
|
|
63
51
|
"json-loader": "^0.5.7",
|
|
64
|
-
"openapicmd": "^2.
|
|
52
|
+
"openapicmd": "^2.9.2",
|
|
65
53
|
"ts-loader": "^8.0.14",
|
|
66
54
|
"ts-node": "^10.9.1",
|
|
67
55
|
"typescript": "^4.1.3",
|
|
68
56
|
"webpack": "^5.18.0",
|
|
69
57
|
"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"
|
|
70
69
|
}
|
|
71
|
-
}
|
|
70
|
+
}
|
package/src/openapi-runtime.json
CHANGED
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"/v2/portal/public/user": {
|
|
33
33
|
"post": {
|
|
34
34
|
"operationId": "createUser",
|
|
35
|
+
"deprecated": true,
|
|
35
36
|
"parameters": [
|
|
36
37
|
{
|
|
37
38
|
"in": "query",
|
|
@@ -600,6 +601,29 @@
|
|
|
600
601
|
"responses": {}
|
|
601
602
|
}
|
|
602
603
|
},
|
|
604
|
+
"/v3/portal/public/widgets": {
|
|
605
|
+
"get": {
|
|
606
|
+
"operationId": "getPublicPortalWidgetsV3",
|
|
607
|
+
"parameters": [
|
|
608
|
+
{
|
|
609
|
+
"in": "query",
|
|
610
|
+
"name": "org_id",
|
|
611
|
+
"required": false
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"in": "query",
|
|
615
|
+
"name": "portal_id",
|
|
616
|
+
"required": false
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"in": "query",
|
|
620
|
+
"name": "domain",
|
|
621
|
+
"required": false
|
|
622
|
+
}
|
|
623
|
+
],
|
|
624
|
+
"responses": {}
|
|
625
|
+
}
|
|
626
|
+
},
|
|
603
627
|
"/v2/portal/widgets": {
|
|
604
628
|
"post": {
|
|
605
629
|
"operationId": "upsertPortalWidget",
|
|
@@ -728,6 +752,29 @@
|
|
|
728
752
|
"responses": {}
|
|
729
753
|
}
|
|
730
754
|
},
|
|
755
|
+
"/v3/portal/public/schemas": {
|
|
756
|
+
"get": {
|
|
757
|
+
"operationId": "getPublicSchemasV3",
|
|
758
|
+
"parameters": [
|
|
759
|
+
{
|
|
760
|
+
"in": "query",
|
|
761
|
+
"name": "org_id",
|
|
762
|
+
"required": false
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"in": "query",
|
|
766
|
+
"name": "portal_id",
|
|
767
|
+
"required": false
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"in": "query",
|
|
771
|
+
"name": "domain",
|
|
772
|
+
"required": false
|
|
773
|
+
}
|
|
774
|
+
],
|
|
775
|
+
"responses": {}
|
|
776
|
+
}
|
|
777
|
+
},
|
|
731
778
|
"/v2/portal/public/org/settings": {
|
|
732
779
|
"get": {
|
|
733
780
|
"operationId": "getOrganizationSettingsByDomain",
|
|
@@ -1782,6 +1829,18 @@
|
|
|
1782
1829
|
"responses": {}
|
|
1783
1830
|
}
|
|
1784
1831
|
},
|
|
1832
|
+
"/v2/portal/metering/readings": {
|
|
1833
|
+
"post": {
|
|
1834
|
+
"operationId": "getMeterReadings",
|
|
1835
|
+
"requestBody": {
|
|
1836
|
+
"required": true,
|
|
1837
|
+
"content": {
|
|
1838
|
+
"application/json": {}
|
|
1839
|
+
}
|
|
1840
|
+
},
|
|
1841
|
+
"responses": {}
|
|
1842
|
+
}
|
|
1843
|
+
},
|
|
1785
1844
|
"/v2/portal/public/sso/login": {
|
|
1786
1845
|
"post": {
|
|
1787
1846
|
"operationId": "ssoLogin",
|
|
@@ -2211,6 +2270,18 @@
|
|
|
2211
2270
|
"responses": {}
|
|
2212
2271
|
}
|
|
2213
2272
|
},
|
|
2273
|
+
"/v3/portal/config/clone": {
|
|
2274
|
+
"post": {
|
|
2275
|
+
"operationId": "clonePortalConfig",
|
|
2276
|
+
"requestBody": {
|
|
2277
|
+
"required": true,
|
|
2278
|
+
"content": {
|
|
2279
|
+
"application/json": {}
|
|
2280
|
+
}
|
|
2281
|
+
},
|
|
2282
|
+
"responses": {}
|
|
2283
|
+
}
|
|
2284
|
+
},
|
|
2214
2285
|
"/v3/portal/partner/invite": {
|
|
2215
2286
|
"post": {
|
|
2216
2287
|
"operationId": "invitePartner",
|