@epilot/cli 0.1.71 → 0.1.72
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/README.md +1 -1
- package/definitions/customer-portal.json +68 -66
- package/dist/bin/epilot.js +6 -6
- package/dist/{completion-L6M2AUJF.js → completion-KSW2KXMX.js} +1 -1
- package/dist/{upgrade-ZLQXCBG5.js → upgrade-DFLGAVOY.js} +1 -1
- package/package.json +1 -1
- package/dist/{chunk-HMUFGWB3.js → chunk-PTYOPMM3.js} +1 -1
package/README.md
CHANGED
|
@@ -5929,10 +5929,77 @@
|
|
|
5929
5929
|
}
|
|
5930
5930
|
}
|
|
5931
5931
|
},
|
|
5932
|
+
"patch": {
|
|
5933
|
+
"operationId": "updateContract",
|
|
5934
|
+
"summary": "updateContract",
|
|
5935
|
+
"description": "Update a contract by id. Use getPortalUserEntity instead.",
|
|
5936
|
+
"deprecated": true,
|
|
5937
|
+
"tags": [
|
|
5938
|
+
"ECP"
|
|
5939
|
+
],
|
|
5940
|
+
"security": [
|
|
5941
|
+
{
|
|
5942
|
+
"PortalAuth": []
|
|
5943
|
+
}
|
|
5944
|
+
],
|
|
5945
|
+
"parameters": [
|
|
5946
|
+
{
|
|
5947
|
+
"in": "path",
|
|
5948
|
+
"name": "id",
|
|
5949
|
+
"schema": {
|
|
5950
|
+
"$ref": "#/components/schemas/EntityId"
|
|
5951
|
+
},
|
|
5952
|
+
"required": true,
|
|
5953
|
+
"description": "The ID of the contract"
|
|
5954
|
+
}
|
|
5955
|
+
],
|
|
5956
|
+
"requestBody": {
|
|
5957
|
+
"description": "Requested contract body to update",
|
|
5958
|
+
"required": true,
|
|
5959
|
+
"content": {
|
|
5960
|
+
"application/json": {
|
|
5961
|
+
"schema": {
|
|
5962
|
+
"$ref": "#/components/schemas/Entity"
|
|
5963
|
+
}
|
|
5964
|
+
}
|
|
5965
|
+
}
|
|
5966
|
+
},
|
|
5967
|
+
"responses": {
|
|
5968
|
+
"200": {
|
|
5969
|
+
"description": "Updated the contract successfully.",
|
|
5970
|
+
"content": {
|
|
5971
|
+
"application/json": {
|
|
5972
|
+
"schema": {
|
|
5973
|
+
"type": "object",
|
|
5974
|
+
"properties": {
|
|
5975
|
+
"data": {
|
|
5976
|
+
"$ref": "#/components/schemas/Contract"
|
|
5977
|
+
}
|
|
5978
|
+
}
|
|
5979
|
+
}
|
|
5980
|
+
}
|
|
5981
|
+
}
|
|
5982
|
+
},
|
|
5983
|
+
"401": {
|
|
5984
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
5985
|
+
},
|
|
5986
|
+
"403": {
|
|
5987
|
+
"$ref": "#/components/responses/ForbiddenByRule"
|
|
5988
|
+
},
|
|
5989
|
+
"404": {
|
|
5990
|
+
"$ref": "#/components/responses/NotFound"
|
|
5991
|
+
},
|
|
5992
|
+
"500": {
|
|
5993
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
5994
|
+
}
|
|
5995
|
+
}
|
|
5996
|
+
}
|
|
5997
|
+
},
|
|
5998
|
+
"/v2/portal/contract/{id}/resolve-templates": {
|
|
5932
5999
|
"post": {
|
|
5933
6000
|
"operationId": "getContractWithTemplates",
|
|
5934
6001
|
"summary": "getContractWithTemplates",
|
|
5935
|
-
"description": "
|
|
6002
|
+
"description": "Resolve Handlebars templates against a contract's related meters and return the contract with templates_output populated per meter. This is a read-only operation — it does not modify the contract. It uses POST only so the templates can be passed in the request body. Prefer getPortalUserEntity / getContract for reads that don't need templates.",
|
|
5936
6003
|
"tags": [
|
|
5937
6004
|
"ECP"
|
|
5938
6005
|
],
|
|
@@ -6047,71 +6114,6 @@
|
|
|
6047
6114
|
"$ref": "#/components/responses/InternalServerError"
|
|
6048
6115
|
}
|
|
6049
6116
|
}
|
|
6050
|
-
},
|
|
6051
|
-
"patch": {
|
|
6052
|
-
"operationId": "updateContract",
|
|
6053
|
-
"summary": "updateContract",
|
|
6054
|
-
"description": "Update a contract by id. Use getPortalUserEntity instead.",
|
|
6055
|
-
"deprecated": true,
|
|
6056
|
-
"tags": [
|
|
6057
|
-
"ECP"
|
|
6058
|
-
],
|
|
6059
|
-
"security": [
|
|
6060
|
-
{
|
|
6061
|
-
"PortalAuth": []
|
|
6062
|
-
}
|
|
6063
|
-
],
|
|
6064
|
-
"parameters": [
|
|
6065
|
-
{
|
|
6066
|
-
"in": "path",
|
|
6067
|
-
"name": "id",
|
|
6068
|
-
"schema": {
|
|
6069
|
-
"$ref": "#/components/schemas/EntityId"
|
|
6070
|
-
},
|
|
6071
|
-
"required": true,
|
|
6072
|
-
"description": "The ID of the contract"
|
|
6073
|
-
}
|
|
6074
|
-
],
|
|
6075
|
-
"requestBody": {
|
|
6076
|
-
"description": "Requested contract body to update",
|
|
6077
|
-
"required": true,
|
|
6078
|
-
"content": {
|
|
6079
|
-
"application/json": {
|
|
6080
|
-
"schema": {
|
|
6081
|
-
"$ref": "#/components/schemas/Entity"
|
|
6082
|
-
}
|
|
6083
|
-
}
|
|
6084
|
-
}
|
|
6085
|
-
},
|
|
6086
|
-
"responses": {
|
|
6087
|
-
"200": {
|
|
6088
|
-
"description": "Updated the contract successfully.",
|
|
6089
|
-
"content": {
|
|
6090
|
-
"application/json": {
|
|
6091
|
-
"schema": {
|
|
6092
|
-
"type": "object",
|
|
6093
|
-
"properties": {
|
|
6094
|
-
"data": {
|
|
6095
|
-
"$ref": "#/components/schemas/Contract"
|
|
6096
|
-
}
|
|
6097
|
-
}
|
|
6098
|
-
}
|
|
6099
|
-
}
|
|
6100
|
-
}
|
|
6101
|
-
},
|
|
6102
|
-
"401": {
|
|
6103
|
-
"$ref": "#/components/responses/Unauthorized"
|
|
6104
|
-
},
|
|
6105
|
-
"403": {
|
|
6106
|
-
"$ref": "#/components/responses/ForbiddenByRule"
|
|
6107
|
-
},
|
|
6108
|
-
"404": {
|
|
6109
|
-
"$ref": "#/components/responses/NotFound"
|
|
6110
|
-
},
|
|
6111
|
-
"500": {
|
|
6112
|
-
"$ref": "#/components/responses/InternalServerError"
|
|
6113
|
-
}
|
|
6114
|
-
}
|
|
6115
6117
|
}
|
|
6116
6118
|
},
|
|
6117
6119
|
"/v2/portal/contract/by-identifiers": {
|
package/dist/bin/epilot.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
API_LIST
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-PTYOPMM3.js";
|
|
5
5
|
|
|
6
6
|
// bin/epilot.ts
|
|
7
7
|
import { runMain } from "citty";
|
|
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
|
|
|
11
11
|
var main = defineCommand({
|
|
12
12
|
meta: {
|
|
13
13
|
name: "epilot",
|
|
14
|
-
version: "0.1.
|
|
14
|
+
version: "0.1.72",
|
|
15
15
|
description: "CLI for epilot APIs"
|
|
16
16
|
},
|
|
17
17
|
args: {
|
|
@@ -30,8 +30,8 @@ var main = defineCommand({
|
|
|
30
30
|
auth: () => import("../auth-4HG7B2GC.js").then((m) => m.default),
|
|
31
31
|
profile: () => import("../profile-OZJL5ZPT.js").then((m) => m.default),
|
|
32
32
|
config: () => import("../config-DGZIMLZK.js").then((m) => m.default),
|
|
33
|
-
completion: () => import("../completion-
|
|
34
|
-
upgrade: () => import("../upgrade-
|
|
33
|
+
completion: () => import("../completion-KSW2KXMX.js").then((m) => m.default),
|
|
34
|
+
upgrade: () => import("../upgrade-DFLGAVOY.js").then((m) => m.default),
|
|
35
35
|
"access-token": () => import("../access-token-WWE6BDJH.js").then((m) => m.default),
|
|
36
36
|
address: () => import("../address-EH3C4CVB.js").then((m) => m.default),
|
|
37
37
|
"address-suggestions": () => import("../address-suggestions-RRSLOBFW.js").then((m) => m.default),
|
|
@@ -134,13 +134,13 @@ process.stderr.on("error", (err) => {
|
|
|
134
134
|
if (err.code === "EPIPE") process.exit(0);
|
|
135
135
|
throw err;
|
|
136
136
|
});
|
|
137
|
-
var VERSION = true ? "0.1.
|
|
137
|
+
var VERSION = true ? "0.1.72" : (await null).default.version;
|
|
138
138
|
var reorderedArgv = hoistFlagsAfterSubcommand(process.argv.slice(2));
|
|
139
139
|
process.argv = [process.argv[0], process.argv[1], ...reorderedArgv];
|
|
140
140
|
var args = process.argv.slice(2);
|
|
141
141
|
var completionsIdx = args.indexOf("--_completions");
|
|
142
142
|
if (completionsIdx >= 0) {
|
|
143
|
-
const { handleCompletions } = await import("../completion-
|
|
143
|
+
const { handleCompletions } = await import("../completion-KSW2KXMX.js");
|
|
144
144
|
handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
|
|
145
145
|
process.exit(0);
|
|
146
146
|
}
|
|
@@ -72,7 +72,7 @@ ${GREEN}${BOLD}Upgraded to @epilot/cli@${latest}${RESET}
|
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
var getCurrentVersion = () => {
|
|
75
|
-
if (true) return "0.1.
|
|
75
|
+
if (true) return "0.1.72";
|
|
76
76
|
try {
|
|
77
77
|
const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
|
|
78
78
|
encoding: "utf-8",
|
package/package.json
CHANGED
|
@@ -363,8 +363,8 @@ var API_LIST = [
|
|
|
363
363
|
"getAllRequests",
|
|
364
364
|
"getAllContracts",
|
|
365
365
|
"getContract",
|
|
366
|
-
"getContractWithTemplates",
|
|
367
366
|
"updateContract",
|
|
367
|
+
"getContractWithTemplates",
|
|
368
368
|
"addContractByIdentifiers",
|
|
369
369
|
"getEntityIdentifiers",
|
|
370
370
|
"getEntityActivityFeed",
|