@epilot/cli 0.1.116 → 0.1.117
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.18.0",
|
|
6
6
|
"description": "API for integrating with external systems in a standardised way."
|
|
7
7
|
},
|
|
8
8
|
"tags": [
|
|
@@ -3977,7 +3977,7 @@
|
|
|
3977
3977
|
"post": {
|
|
3978
3978
|
"operationId": "createErpImport",
|
|
3979
3979
|
"summary": "createErpImport",
|
|
3980
|
-
"description": "Register an already-uploaded file (S3 ref) as a pricing-file import job. Returns the job and a file preview. Nothing runs yet: no use case is chosen and no validation starts here. Optionally rank candidates with POST /v2/erp/imports/{importId}:suggest-use-cases, then start validation with POST /v2/erp/imports/{importId}:validate.",
|
|
3980
|
+
"description": "Register an already-uploaded file (S3 ref) as a pricing-file import job. Returns the job and a file preview. Nothing runs yet: no use case is chosen and no validation starts here. Optionally rank candidates with POST /v2/erp/imports/{importId}:suggest-use-cases, then start validation with POST /v2/erp/imports/{importId}:validate.\nPass `import_id` to repoint an existing PENDING import at a different file instead, keeping its id and its place in the history.",
|
|
3981
3981
|
"tags": [
|
|
3982
3982
|
"erp-imports"
|
|
3983
3983
|
],
|
|
@@ -3992,8 +3992,18 @@
|
|
|
3992
3992
|
}
|
|
3993
3993
|
},
|
|
3994
3994
|
"responses": {
|
|
3995
|
+
"200": {
|
|
3996
|
+
"description": "The named import now points at this file. Returned only when `import_id` was supplied — no `Location`, because nothing was created.",
|
|
3997
|
+
"content": {
|
|
3998
|
+
"application/json": {
|
|
3999
|
+
"schema": {
|
|
4000
|
+
"$ref": "#/components/schemas/CreateErpImportResponse"
|
|
4001
|
+
}
|
|
4002
|
+
}
|
|
4003
|
+
}
|
|
4004
|
+
},
|
|
3995
4005
|
"201": {
|
|
3996
|
-
"description": "Import job created",
|
|
4006
|
+
"description": "Import job created. Returned only when `import_id` was omitted.",
|
|
3997
4007
|
"headers": {
|
|
3998
4008
|
"Location": {
|
|
3999
4009
|
"description": "URL of the created job (`/v2/erp/imports/{importId}`).",
|
|
@@ -4016,6 +4026,12 @@
|
|
|
4016
4026
|
"403": {
|
|
4017
4027
|
"$ref": "#/components/responses/Forbidden"
|
|
4018
4028
|
},
|
|
4029
|
+
"404": {
|
|
4030
|
+
"$ref": "#/components/responses/NotFound"
|
|
4031
|
+
},
|
|
4032
|
+
"409": {
|
|
4033
|
+
"$ref": "#/components/responses/Conflict"
|
|
4034
|
+
},
|
|
4019
4035
|
"500": {
|
|
4020
4036
|
"$ref": "#/components/responses/InternalServerError"
|
|
4021
4037
|
}
|
|
@@ -4403,6 +4419,10 @@
|
|
|
4403
4419
|
"type": "boolean",
|
|
4404
4420
|
"default": false,
|
|
4405
4421
|
"description": "Return a sample of the file's first rows in `preview`. Only controls whether the sample comes BACK — the head is read either way, because that read is how an unreadable file gets refused."
|
|
4422
|
+
},
|
|
4423
|
+
"import_id": {
|
|
4424
|
+
"type": "string",
|
|
4425
|
+
"description": "Repoint an EXISTING import at this file instead of registering a new one — same row, same id, so iterating on which file to import leaves one entry in the history rather than one per attempt.\nOnly a PENDING import may be repointed; any other status returns 409 with code `IMPORT_NOT_REPLACEABLE`. Past the first check the previous verdict is what tells the user what to fix, and a job that reached the execute phase may already have published rows under `correlation_id`.\nAn id that names nothing returns 404. It never falls back to registering a new import: a stale id must fail loudly rather than quietly produce a second one."
|
|
4406
4426
|
}
|
|
4407
4427
|
}
|
|
4408
4428
|
},
|
|
@@ -8473,7 +8493,7 @@
|
|
|
8473
8493
|
},
|
|
8474
8494
|
"FileProxyUploadConfig": {
|
|
8475
8495
|
"type": "object",
|
|
8476
|
-
"description": "Upload-side settings for a file_proxy use case with `direction: upload`.\
|
|
8496
|
+
"description": "Upload-side settings for a file_proxy use case with `direction: upload`.\nThe surrounding file_proxy configuration owns WHAT and HOW to send: `fan_out`,\n`file_source`, `params_mapping`, lookups, constants, auth, and steps. This nested object\ngoverns upload-specific limits and how the final external response is judged. The\noutbound mapping remains a pure pointer to the recipe (see `FileProxyDeliveryConfig`).\n",
|
|
8477
8497
|
"properties": {
|
|
8478
8498
|
"max_file_bytes": {
|
|
8479
8499
|
"type": "integer",
|
|
@@ -8486,7 +8506,7 @@
|
|
|
8486
8506
|
"minimum": 1,
|
|
8487
8507
|
"maximum": 100,
|
|
8488
8508
|
"default": 8,
|
|
8489
|
-
"description": "Maximum delivery attempts per item before the delivery is marked failed
|
|
8509
|
+
"description": "Maximum delivery attempts per item before the delivery is marked failed. Attempts\nare spaced by an exponential, jittered backoff. The default 8 attempts schedule at\nmost 7 delays, totaling about 7 hours 40 minutes before jitter, so a normal ERP\nmaintenance window does not immediately exhaust them.\n\nLives here rather than on the outbound delivery because how hard to retry is a\nproperty of the transport — the same judgement as `max_file_bytes` — and the outbound\ndelivery is a pure pointer.\n"
|
|
8490
8510
|
},
|
|
8491
8511
|
"success_when": {
|
|
8492
8512
|
"type": "string",
|
|
@@ -9025,7 +9045,7 @@
|
|
|
9025
9045
|
"id": {
|
|
9026
9046
|
"type": "string",
|
|
9027
9047
|
"format": "uuid",
|
|
9028
|
-
"description": "Unique identifier for this mapping"
|
|
9048
|
+
"description": "Unique identifier for this mapping; generated by the API when omitted"
|
|
9029
9049
|
},
|
|
9030
9050
|
"name": {
|
|
9031
9051
|
"type": "string",
|
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.117",
|
|
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-YY2UW6SA.js").then((m) => m.default),
|
|
34
|
-
upgrade: () => import("../upgrade-
|
|
34
|
+
upgrade: () => import("../upgrade-YQ6STVES.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.117" : (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.117";
|
|
76
76
|
try {
|
|
77
77
|
const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
|
|
78
78
|
encoding: "utf-8",
|