@arbol-ai/cli 3.24.0 → 3.25.0
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 +4 -1
- package/dist/index.js +25 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -116,7 +116,10 @@ ARBOL_API_KEY="$(cat /secure/path/arbol-key)" arbol visoft connections list
|
|
|
116
116
|
arbol sura appointments lookup --api-key-stdin < /secure/path/arbol-key
|
|
117
117
|
```
|
|
118
118
|
|
|
119
|
-
Commands are `arbol <service> <resource> <verb> [id]`, the operation's public name.
|
|
119
|
+
Commands are `arbol <service> <resource> <verb> [id]`, the operation's public name. A service is one
|
|
120
|
+
word: its published id without hyphens, so `salud-total.affiliations.lookup` is
|
|
121
|
+
`arbol saludtotal affiliations lookup` (and `policia-colombia` is `policiacolombia`). The published id
|
|
122
|
+
still works where you typed it before (`arbol salud-total …`). `arbol <service>`
|
|
120
123
|
lists a service's commands; `--help` after one prints its fields, the values each accepts, their
|
|
121
124
|
defaults and an example. `--dry-run` prints the request a command would send (method, URL and body)
|
|
122
125
|
without reading a credential or sending anything. A deletion asks for confirmation on a terminal; a
|
package/dist/index.js
CHANGED
|
@@ -12276,7 +12276,7 @@ var commands = {
|
|
|
12276
12276
|
confirmation: null,
|
|
12277
12277
|
hidden: false
|
|
12278
12278
|
},
|
|
12279
|
-
"
|
|
12279
|
+
"nuevaeps affiliations lookup": {
|
|
12280
12280
|
operation: "nueva-eps.affiliations.lookup",
|
|
12281
12281
|
sdkPath: [
|
|
12282
12282
|
"nuevaEps",
|
|
@@ -12520,7 +12520,7 @@ var commands = {
|
|
|
12520
12520
|
confirmation: null,
|
|
12521
12521
|
hidden: false
|
|
12522
12522
|
},
|
|
12523
|
-
"
|
|
12523
|
+
"nuevaeps connections delete": {
|
|
12524
12524
|
operation: "nueva-eps.connections.delete",
|
|
12525
12525
|
sdkPath: [
|
|
12526
12526
|
"nuevaEps",
|
|
@@ -12549,7 +12549,7 @@ var commands = {
|
|
|
12549
12549
|
confirmation: "Remove a provider connection. This cannot be undone.",
|
|
12550
12550
|
hidden: false
|
|
12551
12551
|
},
|
|
12552
|
-
"
|
|
12552
|
+
"nuevaeps connections get": {
|
|
12553
12553
|
operation: "nueva-eps.connections.get",
|
|
12554
12554
|
sdkPath: [
|
|
12555
12555
|
"nuevaEps",
|
|
@@ -12578,7 +12578,7 @@ var commands = {
|
|
|
12578
12578
|
confirmation: null,
|
|
12579
12579
|
hidden: false
|
|
12580
12580
|
},
|
|
12581
|
-
"
|
|
12581
|
+
"nuevaeps connections list": {
|
|
12582
12582
|
operation: "nueva-eps.connections.list",
|
|
12583
12583
|
sdkPath: [
|
|
12584
12584
|
"nuevaEps",
|
|
@@ -12652,7 +12652,7 @@ var commands = {
|
|
|
12652
12652
|
confirmation: null,
|
|
12653
12653
|
hidden: false
|
|
12654
12654
|
},
|
|
12655
|
-
"
|
|
12655
|
+
"nuevaeps connections verify": {
|
|
12656
12656
|
operation: "nueva-eps.connections.verify",
|
|
12657
12657
|
sdkPath: [
|
|
12658
12658
|
"nuevaEps",
|
|
@@ -14366,7 +14366,7 @@ var commands = {
|
|
|
14366
14366
|
confirmation: null,
|
|
14367
14367
|
hidden: false
|
|
14368
14368
|
},
|
|
14369
|
-
"
|
|
14369
|
+
"policiacolombia judicial-records lookup": {
|
|
14370
14370
|
operation: "policia-colombia.judicialRecords.lookup",
|
|
14371
14371
|
sdkPath: [
|
|
14372
14372
|
"policiaColombia",
|
|
@@ -23275,7 +23275,7 @@ var commands = {
|
|
|
23275
23275
|
confirmation: null,
|
|
23276
23276
|
hidden: false
|
|
23277
23277
|
},
|
|
23278
|
-
"
|
|
23278
|
+
"saludtotal affiliations lookup": {
|
|
23279
23279
|
operation: "salud-total.affiliations.lookup",
|
|
23280
23280
|
sdkPath: [
|
|
23281
23281
|
"saludTotal",
|
|
@@ -23341,7 +23341,7 @@ var commands = {
|
|
|
23341
23341
|
confirmation: null,
|
|
23342
23342
|
hidden: false
|
|
23343
23343
|
},
|
|
23344
|
-
"
|
|
23344
|
+
"saludtotal authorizations lookup": {
|
|
23345
23345
|
operation: "salud-total.authorizations.lookup",
|
|
23346
23346
|
sdkPath: [
|
|
23347
23347
|
"saludTotal",
|
|
@@ -23457,7 +23457,7 @@ var commands = {
|
|
|
23457
23457
|
confirmation: null,
|
|
23458
23458
|
hidden: false
|
|
23459
23459
|
},
|
|
23460
|
-
"
|
|
23460
|
+
"saludtotal filings lookup": {
|
|
23461
23461
|
operation: "salud-total.filings.lookup",
|
|
23462
23462
|
sdkPath: [
|
|
23463
23463
|
"saludTotal",
|
|
@@ -23573,7 +23573,7 @@ var commands = {
|
|
|
23573
23573
|
confirmation: null,
|
|
23574
23574
|
hidden: false
|
|
23575
23575
|
},
|
|
23576
|
-
"
|
|
23576
|
+
"saludtotal invoices lookup": {
|
|
23577
23577
|
operation: "salud-total.invoices.lookup",
|
|
23578
23578
|
sdkPath: [
|
|
23579
23579
|
"saludTotal",
|
|
@@ -23635,7 +23635,7 @@ var commands = {
|
|
|
23635
23635
|
confirmation: null,
|
|
23636
23636
|
hidden: false
|
|
23637
23637
|
},
|
|
23638
|
-
"
|
|
23638
|
+
"saludtotal notices count": {
|
|
23639
23639
|
operation: "salud-total.notices.count",
|
|
23640
23640
|
sdkPath: [
|
|
23641
23641
|
"saludTotal",
|
|
@@ -118552,7 +118552,7 @@ var generation_default = {
|
|
|
118552
118552
|
outputs: [
|
|
118553
118553
|
{
|
|
118554
118554
|
path: "src/generated/commands.ts",
|
|
118555
|
-
sha256: "
|
|
118555
|
+
sha256: "8a2743d6daadceddc6436c7df70ffeb94ae53fc351ebce56b4717938555b24a7"
|
|
118556
118556
|
}
|
|
118557
118557
|
]
|
|
118558
118558
|
};
|
|
@@ -118907,10 +118907,19 @@ ${name}`);
|
|
|
118907
118907
|
}
|
|
118908
118908
|
|
|
118909
118909
|
// src/index.ts
|
|
118910
|
-
var VERSION = "3.
|
|
118910
|
+
var VERSION = "3.25.0";
|
|
118911
118911
|
var RELEASE = generation_default.release;
|
|
118912
118912
|
var SDK_PATHS = new Map(Object.values(commands).map((command) => [command.operation, command.sdkPath]));
|
|
118913
118913
|
var SERVICES = [...new Set(Object.keys(commands).map((name) => name.split(" ")[0]))].toSorted();
|
|
118914
|
+
var SERVICE_IDS = new Map(Object.entries(commands).map(([name, command]) => [
|
|
118915
|
+
command.operation.split(".")[0] ?? "",
|
|
118916
|
+
name.split(" ")[0] ?? ""
|
|
118917
|
+
]));
|
|
118918
|
+
function commandWords(words) {
|
|
118919
|
+
const [first, ...rest] = words;
|
|
118920
|
+
const service = first === undefined ? undefined : SERVICE_IDS.get(first);
|
|
118921
|
+
return service === undefined ? words : [service, ...rest];
|
|
118922
|
+
}
|
|
118914
118923
|
var HELP = `Arbol CLI ${VERSION} (Arbol API ${RELEASE}): the Arbol platform from your terminal.
|
|
118915
118924
|
|
|
118916
118925
|
Usage
|
|
@@ -119091,7 +119100,7 @@ Run one with --help to see its fields.
|
|
|
119091
119100
|
`;
|
|
119092
119101
|
}
|
|
119093
119102
|
async function main(argv, { root, keys } = {}) {
|
|
119094
|
-
const words = parseArgs({ args: argv, allowPositionals: true, strict: false, options: GLOBAL }).positionals;
|
|
119103
|
+
const words = commandWords(parseArgs({ args: argv, allowPositionals: true, strict: false, options: GLOBAL }).positionals);
|
|
119095
119104
|
const found = words[0] === "auth" ? null : findCommand(words);
|
|
119096
119105
|
const fieldOptions = Object.fromEntries((found?.command.fields ?? []).map((field) => [field.flag, { type: "string" }]));
|
|
119097
119106
|
let parsed;
|
|
@@ -119106,7 +119115,8 @@ async function main(argv, { root, keys } = {}) {
|
|
|
119106
119115
|
throw new UsageError(`${error instanceof Error ? error.message : String(error)}
|
|
119107
119116
|
Run arbol --help.`);
|
|
119108
119117
|
}
|
|
119109
|
-
const {
|
|
119118
|
+
const { values } = parsed;
|
|
119119
|
+
const positionals = commandWords(parsed.positionals);
|
|
119110
119120
|
if (values.version) {
|
|
119111
119121
|
process.stdout.write(`arbol ${VERSION} (Arbol API ${RELEASE})
|
|
119112
119122
|
`);
|
package/package.json
CHANGED