@epilot/cli 0.1.129 → 0.1.130
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
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Integration Toolkit API",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.22.0",
|
|
6
6
|
"description": "API for integrating with external systems in a standardised way."
|
|
7
7
|
},
|
|
8
8
|
"tags": [
|
|
@@ -5500,6 +5500,13 @@
|
|
|
5500
5500
|
"description": "Optional per-event ordering group. Overrides the request-level `group_id` for THIS event; when absent, the event inherits the request-level `group_id` (or the default strict per-integration ordering). Use it when a single batch carries events for unrelated business objects that may be processed in parallel. See the request-level `group_id` for semantics.\n",
|
|
5501
5501
|
"maxLength": 128,
|
|
5502
5502
|
"example": "customer-42"
|
|
5503
|
+
},
|
|
5504
|
+
"correlation_id": {
|
|
5505
|
+
"type": "string",
|
|
5506
|
+
"minLength": 1,
|
|
5507
|
+
"maxLength": 255,
|
|
5508
|
+
"description": "Optional per-event trace id. Overrides the request-level `correlation_id` for THIS event, so a batch carrying several distinct business operations keeps its traces segregated in monitoring instead of merged under one request-level id. When absent, the event inherits the request-level `correlation_id`.\n",
|
|
5509
|
+
"example": "customer-42-sync-2026-08-26"
|
|
5503
5510
|
}
|
|
5504
5511
|
}
|
|
5505
5512
|
},
|
|
@@ -8888,16 +8895,11 @@
|
|
|
8888
8895
|
"properties": {
|
|
8889
8896
|
"version": {
|
|
8890
8897
|
"type": "string",
|
|
8891
|
-
"
|
|
8892
|
-
"1"
|
|
8893
|
-
],
|
|
8894
|
-
"description": "Version of the direct payload contract. Currently only `\"1\"` is supported; an\nunsupported version is rejected with `DIRECT_VERSION_UNSUPPORTED`.\n"
|
|
8898
|
+
"description": "Version of the direct payload contract. Currently only `\"1\"` is supported; an\nunsupported version is rejected with `DIRECT_VERSION_UNSUPPORTED`. Deliberately not\nan enum: the constraint is enforced by the handler so the dry-run endpoint returns\na structured `valid: false` verdict instead of a schema-level 400.\n"
|
|
8895
8899
|
},
|
|
8896
8900
|
"operations": {
|
|
8897
8901
|
"type": "array",
|
|
8898
|
-
"
|
|
8899
|
-
"maxItems": 100,
|
|
8900
|
-
"description": "The operations to apply, in order. At most 100 operations per event. Each item is\neither an entity operation (`type` omitted or `\"entity\"`) or a meter reading\noperation (`type: \"meter_reading\"`).\n",
|
|
8902
|
+
"description": "The operations to apply, in order. At most 100 operations per event (enforced by\nthe handler, with a structured error naming the limit). Each item is either an\nentity operation (`type` omitted or `\"entity\"`) or a meter reading operation\n(`type: \"meter_reading\"`).\n",
|
|
8901
8903
|
"items": {
|
|
8902
8904
|
"anyOf": [
|
|
8903
8905
|
{
|
|
@@ -9996,12 +9998,11 @@
|
|
|
9996
9998
|
},
|
|
9997
9999
|
"EntitySyncState": {
|
|
9998
10000
|
"type": "object",
|
|
10001
|
+
"description": "Inbound sync state of one entity for one integration. Carries two\nindependent groups: the entity-level fields (`last_synced_at`, …) and,\non meter/meter_counter entities, the readings-level fields\n(`readings_last_synced_at`, …). Either group can be present alone — a\nmeter whose readings sync via the ERP but whose entity was never\nitself inbound-mapped carries only the readings group.\n",
|
|
9999
10002
|
"required": [
|
|
10000
10003
|
"entity_id",
|
|
10001
10004
|
"integration_id",
|
|
10002
|
-
"entity_slug"
|
|
10003
|
-
"last_synced_at",
|
|
10004
|
-
"last_operation"
|
|
10005
|
+
"entity_slug"
|
|
10005
10006
|
],
|
|
10006
10007
|
"properties": {
|
|
10007
10008
|
"entity_id": {
|
|
@@ -10046,6 +10047,23 @@
|
|
|
10046
10047
|
"last_event_id": {
|
|
10047
10048
|
"type": "string",
|
|
10048
10049
|
"description": "The event ID of the most recent inbound sync check"
|
|
10050
|
+
},
|
|
10051
|
+
"readings_last_synced_at": {
|
|
10052
|
+
"type": "string",
|
|
10053
|
+
"format": "date-time",
|
|
10054
|
+
"description": "Last time meter readings for this meter/meter_counter entity were\nreceived and processed from the ERP. Only present on meter and\nmeter_counter entities. The metering path cannot detect no-ops,\nso there is no separate readings changed-at.\n"
|
|
10055
|
+
},
|
|
10056
|
+
"readings_last_operation": {
|
|
10057
|
+
"type": "string",
|
|
10058
|
+
"enum": [
|
|
10059
|
+
"upsert",
|
|
10060
|
+
"delete"
|
|
10061
|
+
],
|
|
10062
|
+
"description": "Outcome of the most recent inbound readings sync"
|
|
10063
|
+
},
|
|
10064
|
+
"readings_last_event_id": {
|
|
10065
|
+
"type": "string",
|
|
10066
|
+
"description": "The event ID of the most recent inbound readings sync"
|
|
10049
10067
|
}
|
|
10050
10068
|
}
|
|
10051
10069
|
},
|
package/dist/bin/epilot.js
CHANGED
|
@@ -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.130",
|
|
15
15
|
description: "CLI for epilot APIs"
|
|
16
16
|
},
|
|
17
17
|
args: {
|
|
@@ -31,7 +31,7 @@ var main = defineCommand({
|
|
|
31
31
|
profile: () => import("../profile-OZJL5ZPT.js").then((m) => m.default),
|
|
32
32
|
config: () => import("../config-DGZIMLZK.js").then((m) => m.default),
|
|
33
33
|
completion: () => import("../completion-GFINH6YJ.js").then((m) => m.default),
|
|
34
|
-
upgrade: () => import("../upgrade-
|
|
34
|
+
upgrade: () => import("../upgrade-QPOYGFSB.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,7 +134,7 @@ 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.130" : (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);
|
|
@@ -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.130";
|
|
76
76
|
try {
|
|
77
77
|
const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
|
|
78
78
|
encoding: "utf-8",
|