@epilot/cli 0.1.68 → 0.1.69
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
|
@@ -484,25 +484,75 @@
|
|
|
484
484
|
"post": {
|
|
485
485
|
"operationId": "createExport",
|
|
486
486
|
"summary": "createExport",
|
|
487
|
-
"description": "Request an asynchronous CSV export of the portal user's
|
|
487
|
+
"description": "Request an asynchronous CSV export of the portal user's entities for one schema. Columns come from the request Returns a job id to poll.\n",
|
|
488
488
|
"tags": [
|
|
489
489
|
"ECP"
|
|
490
490
|
],
|
|
491
|
-
"
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
"
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
491
|
+
"requestBody": {
|
|
492
|
+
"required": true,
|
|
493
|
+
"content": {
|
|
494
|
+
"application/json": {
|
|
495
|
+
"schema": {
|
|
496
|
+
"type": "object",
|
|
497
|
+
"required": [
|
|
498
|
+
"schema",
|
|
499
|
+
"columns"
|
|
500
|
+
],
|
|
501
|
+
"properties": {
|
|
502
|
+
"schema": {
|
|
503
|
+
"type": "string",
|
|
504
|
+
"description": "Entity schema to export (must be an allowed portal entity)."
|
|
505
|
+
},
|
|
506
|
+
"search": {
|
|
507
|
+
"type": "object",
|
|
508
|
+
"description": "Search parameters, same shape the entity list queries with.",
|
|
509
|
+
"properties": {
|
|
510
|
+
"q": {
|
|
511
|
+
"type": "string"
|
|
512
|
+
},
|
|
513
|
+
"q_fields": {
|
|
514
|
+
"type": "array",
|
|
515
|
+
"items": {
|
|
516
|
+
"type": "string"
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"filters": {
|
|
520
|
+
"type": "array",
|
|
521
|
+
"items": {
|
|
522
|
+
"type": "object"
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"filters_context": {
|
|
526
|
+
"type": "array",
|
|
527
|
+
"items": {
|
|
528
|
+
"type": "object"
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
"sort": {}
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
"columns": {
|
|
535
|
+
"type": "array",
|
|
536
|
+
"description": "Ordered column definitions; order is the CSV column order.",
|
|
537
|
+
"items": {
|
|
538
|
+
"$ref": "#/components/schemas/PortalDataExportColumn"
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
"expand_over": {
|
|
542
|
+
"type": "string"
|
|
543
|
+
},
|
|
544
|
+
"language": {
|
|
545
|
+
"type": "string",
|
|
546
|
+
"enum": [
|
|
547
|
+
"de",
|
|
548
|
+
"en"
|
|
549
|
+
]
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
504
554
|
}
|
|
505
|
-
|
|
555
|
+
},
|
|
506
556
|
"security": [
|
|
507
557
|
{
|
|
508
558
|
"PortalAuth": []
|
|
@@ -540,7 +590,7 @@
|
|
|
540
590
|
"$ref": "#/components/responses/Forbidden"
|
|
541
591
|
},
|
|
542
592
|
"404": {
|
|
543
|
-
"description": "
|
|
593
|
+
"description": "Missing or invalid export columns."
|
|
544
594
|
},
|
|
545
595
|
"500": {
|
|
546
596
|
"$ref": "#/components/responses/InternalServerError"
|
|
@@ -12013,6 +12063,13 @@
|
|
|
12013
12063
|
"type": "boolean",
|
|
12014
12064
|
"example": true,
|
|
12015
12065
|
"description": "Require symbols"
|
|
12066
|
+
},
|
|
12067
|
+
"password_history_size": {
|
|
12068
|
+
"type": "integer",
|
|
12069
|
+
"minimum": 0,
|
|
12070
|
+
"maximum": 24,
|
|
12071
|
+
"example": 3,
|
|
12072
|
+
"description": "Number of previous passwords a user is prevented from reusing. Set to 0 to disable reuse prevention. Maps to Cognito's PasswordHistorySize and requires the user pool to be on the Essentials or Plus feature plan."
|
|
12016
12073
|
}
|
|
12017
12074
|
}
|
|
12018
12075
|
}
|
|
@@ -18207,6 +18264,13 @@
|
|
|
18207
18264
|
"type": "boolean",
|
|
18208
18265
|
"example": true,
|
|
18209
18266
|
"description": "Require symbols"
|
|
18267
|
+
},
|
|
18268
|
+
"password_history_size": {
|
|
18269
|
+
"type": "integer",
|
|
18270
|
+
"minimum": 0,
|
|
18271
|
+
"maximum": 24,
|
|
18272
|
+
"example": 3,
|
|
18273
|
+
"description": "Number of previous passwords a user is prevented from reusing. Set to 0 to disable reuse prevention. Maps to Cognito's PasswordHistorySize and requires the user pool to be on the Essentials or Plus feature plan."
|
|
18210
18274
|
}
|
|
18211
18275
|
}
|
|
18212
18276
|
}
|
|
@@ -18523,6 +18587,90 @@
|
|
|
18523
18587
|
"description": "ID of the portal",
|
|
18524
18588
|
"example": "453ad7bf-86d5-46c8-8252-bcc868df5e3c"
|
|
18525
18589
|
},
|
|
18590
|
+
"PortalDataExportColumn": {
|
|
18591
|
+
"type": "object",
|
|
18592
|
+
"description": "One column of the portal data export CSV.",
|
|
18593
|
+
"required": [
|
|
18594
|
+
"key",
|
|
18595
|
+
"header",
|
|
18596
|
+
"source"
|
|
18597
|
+
],
|
|
18598
|
+
"properties": {
|
|
18599
|
+
"key": {
|
|
18600
|
+
"type": "string",
|
|
18601
|
+
"description": "Stable, immutable column id (snake_case). Append-only contract: never rename, reorder semantics, or remove an existing key; new columns are appended.\n",
|
|
18602
|
+
"example": "vertragsnummer"
|
|
18603
|
+
},
|
|
18604
|
+
"header": {
|
|
18605
|
+
"type": "object",
|
|
18606
|
+
"description": "Localized header label, keyed by language (de, en).",
|
|
18607
|
+
"additionalProperties": {
|
|
18608
|
+
"type": "string"
|
|
18609
|
+
},
|
|
18610
|
+
"example": {
|
|
18611
|
+
"de": "Vertragsnummer",
|
|
18612
|
+
"en": "Contract number"
|
|
18613
|
+
}
|
|
18614
|
+
},
|
|
18615
|
+
"source": {
|
|
18616
|
+
"type": "object",
|
|
18617
|
+
"description": "Where the value comes from: relation hops from the anchor entity plus the attribute to read on the resolved entity. An empty path means the anchor itself.\n",
|
|
18618
|
+
"required": [
|
|
18619
|
+
"attribute"
|
|
18620
|
+
],
|
|
18621
|
+
"properties": {
|
|
18622
|
+
"path": {
|
|
18623
|
+
"type": "array",
|
|
18624
|
+
"description": "Relation hops from the anchor entity (max 3).",
|
|
18625
|
+
"items": {
|
|
18626
|
+
"type": "string"
|
|
18627
|
+
},
|
|
18628
|
+
"example": [
|
|
18629
|
+
"customer"
|
|
18630
|
+
]
|
|
18631
|
+
},
|
|
18632
|
+
"attribute": {
|
|
18633
|
+
"type": "string",
|
|
18634
|
+
"description": "Attribute to read on the resolved entity.",
|
|
18635
|
+
"example": "customer_number"
|
|
18636
|
+
},
|
|
18637
|
+
"address_field": {
|
|
18638
|
+
"type": "string",
|
|
18639
|
+
"description": "Which part of an address-typed attribute to render.",
|
|
18640
|
+
"enum": [
|
|
18641
|
+
"full",
|
|
18642
|
+
"street",
|
|
18643
|
+
"street_number",
|
|
18644
|
+
"postal_code",
|
|
18645
|
+
"city",
|
|
18646
|
+
"additional_info",
|
|
18647
|
+
"country"
|
|
18648
|
+
]
|
|
18649
|
+
}
|
|
18650
|
+
}
|
|
18651
|
+
},
|
|
18652
|
+
"formatter": {
|
|
18653
|
+
"type": "string",
|
|
18654
|
+
"enum": [
|
|
18655
|
+
"text",
|
|
18656
|
+
"date",
|
|
18657
|
+
"money_cents",
|
|
18658
|
+
"enum",
|
|
18659
|
+
"address"
|
|
18660
|
+
]
|
|
18661
|
+
},
|
|
18662
|
+
"enum_labels": {
|
|
18663
|
+
"type": "object",
|
|
18664
|
+
"description": "Localized value maps for the enum formatter, keyed by language then raw value.\n",
|
|
18665
|
+
"additionalProperties": {
|
|
18666
|
+
"type": "object",
|
|
18667
|
+
"additionalProperties": {
|
|
18668
|
+
"type": "string"
|
|
18669
|
+
}
|
|
18670
|
+
}
|
|
18671
|
+
}
|
|
18672
|
+
}
|
|
18673
|
+
},
|
|
18526
18674
|
"UpsertPortalConfigV3": {
|
|
18527
18675
|
"allOf": [
|
|
18528
18676
|
{
|
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.69",
|
|
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-7FZ4RKFG.js").then((m) => m.default),
|
|
34
|
-
upgrade: () => import("../upgrade-
|
|
34
|
+
upgrade: () => import("../upgrade-A3WU36B4.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.69" : (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.69";
|
|
76
76
|
try {
|
|
77
77
|
const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
|
|
78
78
|
encoding: "utf-8",
|