@epilot/cli 0.1.98 → 0.1.99
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.10.0",
|
|
6
6
|
"description": "API for integrating with external systems in a standardised way."
|
|
7
7
|
},
|
|
8
8
|
"tags": [
|
|
@@ -3891,6 +3891,16 @@
|
|
|
3891
3891
|
}
|
|
3892
3892
|
}
|
|
3893
3893
|
],
|
|
3894
|
+
"requestBody": {
|
|
3895
|
+
"required": false,
|
|
3896
|
+
"content": {
|
|
3897
|
+
"application/json": {
|
|
3898
|
+
"schema": {
|
|
3899
|
+
"$ref": "#/components/schemas/ExecuteErpImportRequest"
|
|
3900
|
+
}
|
|
3901
|
+
}
|
|
3902
|
+
}
|
|
3903
|
+
},
|
|
3894
3904
|
"responses": {
|
|
3895
3905
|
"200": {
|
|
3896
3906
|
"description": "Execution started",
|
|
@@ -3911,6 +3921,16 @@
|
|
|
3911
3921
|
"409": {
|
|
3912
3922
|
"$ref": "#/components/responses/Conflict"
|
|
3913
3923
|
},
|
|
3924
|
+
"422": {
|
|
3925
|
+
"description": "The verdict carries warnings and `ack_warnings` was not true",
|
|
3926
|
+
"content": {
|
|
3927
|
+
"application/json": {
|
|
3928
|
+
"schema": {
|
|
3929
|
+
"$ref": "#/components/schemas/ErrorResponseBase"
|
|
3930
|
+
}
|
|
3931
|
+
}
|
|
3932
|
+
}
|
|
3933
|
+
},
|
|
3914
3934
|
"500": {
|
|
3915
3935
|
"$ref": "#/components/responses/InternalServerError"
|
|
3916
3936
|
}
|
|
@@ -4005,6 +4025,57 @@
|
|
|
4005
4025
|
}
|
|
4006
4026
|
}
|
|
4007
4027
|
},
|
|
4028
|
+
"ExecuteErpImportRequest": {
|
|
4029
|
+
"type": "object",
|
|
4030
|
+
"description": "Confirmation options. Required only when the verdict carries warnings — a clean import needs no body at all.",
|
|
4031
|
+
"properties": {
|
|
4032
|
+
"ack_warnings": {
|
|
4033
|
+
"type": "boolean",
|
|
4034
|
+
"description": "The caller has seen `validation.issues` and accepts them. Required when `validation.warnings` is greater than 0; ignored otherwise."
|
|
4035
|
+
}
|
|
4036
|
+
}
|
|
4037
|
+
},
|
|
4038
|
+
"ErpImportIssue": {
|
|
4039
|
+
"type": "object",
|
|
4040
|
+
"description": "A problem found during validation, scoped to the file as a whole rather than to individual rows. See `code` for the kinds reported.",
|
|
4041
|
+
"required": [
|
|
4042
|
+
"code",
|
|
4043
|
+
"severity",
|
|
4044
|
+
"message"
|
|
4045
|
+
],
|
|
4046
|
+
"properties": {
|
|
4047
|
+
"code": {
|
|
4048
|
+
"type": "string",
|
|
4049
|
+
"description": "Enum of possible issue codes.\n",
|
|
4050
|
+
"enum": [
|
|
4051
|
+
"UNIQUE_ID_COLUMN_MISSING",
|
|
4052
|
+
"MAPPED_COLUMN_MISSING",
|
|
4053
|
+
"MALFORMED_ROW",
|
|
4054
|
+
"INVALID_ENCODING",
|
|
4055
|
+
"EMPTY_FILE",
|
|
4056
|
+
"TOO_MANY_ROWS"
|
|
4057
|
+
]
|
|
4058
|
+
},
|
|
4059
|
+
"severity": {
|
|
4060
|
+
"type": "string",
|
|
4061
|
+
"enum": [
|
|
4062
|
+
"warning",
|
|
4063
|
+
"blocking"
|
|
4064
|
+
]
|
|
4065
|
+
},
|
|
4066
|
+
"message": {
|
|
4067
|
+
"type": "string",
|
|
4068
|
+
"description": "User-facing explanation. Lists at most 10 column names; `columns` has all of them."
|
|
4069
|
+
},
|
|
4070
|
+
"columns": {
|
|
4071
|
+
"type": "array",
|
|
4072
|
+
"description": "The columns this issue is about, so clients render names rather than parsing the message.",
|
|
4073
|
+
"items": {
|
|
4074
|
+
"type": "string"
|
|
4075
|
+
}
|
|
4076
|
+
}
|
|
4077
|
+
}
|
|
4078
|
+
},
|
|
4008
4079
|
"ErpImportValidation": {
|
|
4009
4080
|
"type": "object",
|
|
4010
4081
|
"description": "Validate-phase summary: what the file will create, and whether it may be confirmed. Absent until the validate phase completes. No per-row detail is kept — a rejected file is corrected and imported again.",
|
|
@@ -4031,6 +4102,13 @@
|
|
|
4031
4102
|
"type": "integer"
|
|
4032
4103
|
},
|
|
4033
4104
|
"description": "Distinct entities the file expresses, keyed by entity slug."
|
|
4105
|
+
},
|
|
4106
|
+
"issues": {
|
|
4107
|
+
"type": "array",
|
|
4108
|
+
"description": "Whole-file issues. At most 20 are kept; the count of everything found is in blocking and warnings. Warnings here are what `ack_warnings` on `:execute` acknowledges.",
|
|
4109
|
+
"items": {
|
|
4110
|
+
"$ref": "#/components/schemas/ErpImportIssue"
|
|
4111
|
+
}
|
|
4034
4112
|
}
|
|
4035
4113
|
}
|
|
4036
4114
|
},
|
|
@@ -4055,16 +4133,21 @@
|
|
|
4055
4133
|
"type": "object",
|
|
4056
4134
|
"description": "Why the import failed — present if and only if status = FAILED.",
|
|
4057
4135
|
"required": [
|
|
4058
|
-
"
|
|
4136
|
+
"code",
|
|
4059
4137
|
"message"
|
|
4060
4138
|
],
|
|
4061
4139
|
"properties": {
|
|
4062
|
-
"
|
|
4140
|
+
"code": {
|
|
4063
4141
|
"type": "string",
|
|
4064
|
-
"description": "
|
|
4142
|
+
"description": "Enum of possible error codes.\n",
|
|
4065
4143
|
"enum": [
|
|
4066
4144
|
"VALIDATION_BLOCKED",
|
|
4067
|
-
"
|
|
4145
|
+
"FILE_FORMAT_UNSUPPORTED",
|
|
4146
|
+
"FILE_UNAVAILABLE",
|
|
4147
|
+
"VALIDATE_TIMEOUT",
|
|
4148
|
+
"IMPORT_TIMEOUT",
|
|
4149
|
+
"USE_CASE_NOT_USABLE",
|
|
4150
|
+
"IMPORT_NO_PROGRESS",
|
|
4068
4151
|
"INTERNAL_ERROR"
|
|
4069
4152
|
]
|
|
4070
4153
|
},
|
|
@@ -4125,7 +4208,7 @@
|
|
|
4125
4208
|
},
|
|
4126
4209
|
"status": {
|
|
4127
4210
|
"type": "string",
|
|
4128
|
-
"description": "PENDING → VALIDATING → READY → PROCESSING → IMPORTED, with FAILED reachable from any working status, and CANCELLING → CANCELLED reachable from VALIDATING or PROCESSING via :abort. IMPORTED, FAILED and CANCELLED are terminal and final.\nIMPORTED means every row was handed to the platform, not that the platform finished — per-row outcomes live in monitoring, filtered by correlation_id. A file that fails validation is FAILED with error.
|
|
4211
|
+
"description": "PENDING → VALIDATING → READY → PROCESSING → IMPORTED, with FAILED reachable from any working status, and CANCELLING → CANCELLED reachable from VALIDATING or PROCESSING via :abort. IMPORTED, FAILED and CANCELLED are terminal and final.\nIMPORTED means every row was handed to the platform, not that the platform finished — per-row outcomes live in monitoring, filtered by correlation_id. A file that fails validation is FAILED with error.code = VALIDATION_BLOCKED.\nREADY is legitimately idle for as long as the user takes to confirm, so it carries no running work and never goes stale.\nCANCELLING is transient and cooperative: the abort has been recorded but the worker only notices at its next batch boundary. Rows already published stay published — a stop is not a rollback.",
|
|
4129
4212
|
"enum": [
|
|
4130
4213
|
"PENDING",
|
|
4131
4214
|
"VALIDATING",
|
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.99",
|
|
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-W5V6EYUZ.js").then((m) => m.default),
|
|
34
|
-
upgrade: () => import("../upgrade-
|
|
34
|
+
upgrade: () => import("../upgrade-T2AWIWQL.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.99" : (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.99";
|
|
76
76
|
try {
|
|
77
77
|
const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
|
|
78
78
|
encoding: "utf-8",
|