@prismatic-io/prism 4.6.9 → 4.7.1
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/lib/auth.js +3 -3
- package/lib/commands/alerts/events/list.js +6 -7
- package/lib/commands/alerts/groups/delete.js +4 -5
- package/lib/commands/alerts/groups/list.js +2 -2
- package/lib/commands/alerts/monitors/clear.js +4 -5
- package/lib/commands/alerts/monitors/delete.js +4 -5
- package/lib/commands/alerts/monitors/list.js +2 -2
- package/lib/commands/alerts/triggers/list.js +2 -2
- package/lib/commands/alerts/webhooks/delete.js +4 -5
- package/lib/commands/alerts/webhooks/list.js +2 -2
- package/lib/commands/authorization-methods/list.js +2 -2
- package/lib/commands/components/actions/list.js +7 -7
- package/lib/commands/components/data-sources/list.js +7 -7
- package/lib/commands/components/delete.js +4 -5
- package/lib/commands/components/dev/run.js +1 -1
- package/lib/commands/components/dev/test.js +22 -21
- package/lib/commands/components/init/index.js +4 -5
- package/lib/commands/components/list.js +19 -2
- package/lib/commands/components/publish.js +9 -5
- package/lib/commands/components/triggers/list.js +7 -7
- package/lib/commands/customers/credentials/delete.js +4 -5
- package/lib/commands/customers/credentials/list.js +2 -2
- package/lib/commands/customers/credentials/update.js +4 -5
- package/lib/commands/customers/delete.js +4 -5
- package/lib/commands/customers/list.js +2 -2
- package/lib/commands/customers/update.js +4 -5
- package/lib/commands/customers/users/delete.js +4 -5
- package/lib/commands/customers/users/list.js +6 -7
- package/lib/commands/customers/users/roles.js +2 -2
- package/lib/commands/customers/users/update.js +4 -5
- package/lib/commands/instances/config-vars/list.js +5 -9
- package/lib/commands/instances/delete.js +4 -5
- package/lib/commands/instances/deploy.js +4 -5
- package/lib/commands/instances/disable.js +4 -5
- package/lib/commands/instances/enable.js +4 -5
- package/lib/commands/instances/flow-configs/list.js +5 -5
- package/lib/commands/instances/flow-configs/test.js +7 -8
- package/lib/commands/instances/list.js +2 -2
- package/lib/commands/instances/update.js +32 -9
- package/lib/commands/integrations/available.js +4 -5
- package/lib/commands/integrations/delete.js +4 -5
- package/lib/commands/integrations/export.js +4 -5
- package/lib/commands/integrations/flows/list.js +6 -7
- package/lib/commands/integrations/flows/test.js +6 -6
- package/lib/commands/integrations/fork.js +4 -5
- package/lib/commands/integrations/list.js +2 -2
- package/lib/commands/integrations/marketplace.js +4 -5
- package/lib/commands/integrations/publish.js +4 -5
- package/lib/commands/integrations/update.js +4 -5
- package/lib/commands/integrations/versions/index.js +6 -7
- package/lib/commands/login.js +1 -1
- package/lib/commands/logs/severities/list.js +2 -2
- package/lib/commands/organization/credentials/delete.js +4 -5
- package/lib/commands/organization/credentials/list.js +2 -2
- package/lib/commands/organization/credentials/update.js +4 -5
- package/lib/commands/organization/signingkeys/delete.js +4 -5
- package/lib/commands/organization/signingkeys/list.js +2 -2
- package/lib/commands/organization/users/delete.js +4 -5
- package/lib/commands/organization/users/list.js +2 -2
- package/lib/commands/organization/users/roles.js +2 -2
- package/lib/commands/organization/users/update.js +4 -5
- package/lib/utils/component/publish.js +18 -14
- package/lib/utils/execution/logs.js +1 -1
- package/lib/utils/user/query.js +2 -0
- package/oclif.manifest.json +4062 -1
- package/package.json +8 -7
|
@@ -27,10 +27,9 @@ class DeleteCommand extends core_1.Command {
|
|
|
27
27
|
}
|
|
28
28
|
exports.default = DeleteCommand;
|
|
29
29
|
DeleteCommand.description = "Delete a Customer User";
|
|
30
|
-
DeleteCommand.args =
|
|
31
|
-
{
|
|
32
|
-
name: "user",
|
|
30
|
+
DeleteCommand.args = {
|
|
31
|
+
user: core_1.Args.string({
|
|
33
32
|
required: true,
|
|
34
33
|
description: "ID of the user to delete",
|
|
35
|
-
},
|
|
36
|
-
|
|
34
|
+
}),
|
|
35
|
+
};
|
|
@@ -37,7 +37,7 @@ class ListCommand extends core_1.Command {
|
|
|
37
37
|
cursor = pageInfo.endCursor;
|
|
38
38
|
hasNextPage = pageInfo.hasNextPage;
|
|
39
39
|
}
|
|
40
|
-
core_1.
|
|
40
|
+
core_1.ux.table(customerUsers, {
|
|
41
41
|
id: {
|
|
42
42
|
minWidth: 8,
|
|
43
43
|
extended: true,
|
|
@@ -54,13 +54,12 @@ class ListCommand extends core_1.Command {
|
|
|
54
54
|
}
|
|
55
55
|
exports.default = ListCommand;
|
|
56
56
|
ListCommand.description = "List Customer Users";
|
|
57
|
-
ListCommand.args =
|
|
58
|
-
{
|
|
59
|
-
name: "customer",
|
|
57
|
+
ListCommand.args = {
|
|
58
|
+
customer: core_1.Args.string({
|
|
60
59
|
description: "ID of the customer",
|
|
61
60
|
required: true,
|
|
62
|
-
},
|
|
63
|
-
|
|
61
|
+
}),
|
|
62
|
+
};
|
|
64
63
|
ListCommand.flags = {
|
|
65
|
-
...core_1.
|
|
64
|
+
...core_1.ux.table.flags(),
|
|
66
65
|
};
|
|
@@ -16,7 +16,7 @@ class ListCommand extends core_1.Command {
|
|
|
16
16
|
}
|
|
17
17
|
`,
|
|
18
18
|
});
|
|
19
|
-
core_1.
|
|
19
|
+
core_1.ux.table(result.customerRoles, {
|
|
20
20
|
id: {
|
|
21
21
|
minWidth: 8,
|
|
22
22
|
extended: true,
|
|
@@ -29,5 +29,5 @@ class ListCommand extends core_1.Command {
|
|
|
29
29
|
exports.default = ListCommand;
|
|
30
30
|
ListCommand.description = "List Roles you can grant to Customer Users";
|
|
31
31
|
ListCommand.flags = {
|
|
32
|
-
...core_1.
|
|
32
|
+
...core_1.ux.table.flags(),
|
|
33
33
|
};
|
|
@@ -46,13 +46,12 @@ class UpdateCommand extends core_1.Command {
|
|
|
46
46
|
}
|
|
47
47
|
exports.default = UpdateCommand;
|
|
48
48
|
UpdateCommand.description = "Update a User";
|
|
49
|
-
UpdateCommand.args =
|
|
50
|
-
{
|
|
51
|
-
name: "user",
|
|
49
|
+
UpdateCommand.args = {
|
|
50
|
+
user: core_1.Args.string({
|
|
52
51
|
required: true,
|
|
53
52
|
description: "ID of a user",
|
|
54
|
-
},
|
|
55
|
-
|
|
53
|
+
}),
|
|
54
|
+
};
|
|
56
55
|
UpdateCommand.flags = {
|
|
57
56
|
name: core_1.Flags.string({
|
|
58
57
|
char: "n",
|
|
@@ -48,7 +48,7 @@ class ListCommand extends core_1.Command {
|
|
|
48
48
|
cursor = pageInfo.endCursor;
|
|
49
49
|
hasNextPage = pageInfo.hasNextPage;
|
|
50
50
|
}
|
|
51
|
-
core_1.
|
|
51
|
+
core_1.ux.table(configVariables, {
|
|
52
52
|
id: {
|
|
53
53
|
minWidth: 8,
|
|
54
54
|
extended: true,
|
|
@@ -75,13 +75,9 @@ class ListCommand extends core_1.Command {
|
|
|
75
75
|
}
|
|
76
76
|
exports.default = ListCommand;
|
|
77
77
|
ListCommand.description = "List Config Variables used on an Instance";
|
|
78
|
-
ListCommand.args =
|
|
79
|
-
{
|
|
80
|
-
|
|
81
|
-
description: "ID of an instance",
|
|
82
|
-
required: true,
|
|
83
|
-
},
|
|
84
|
-
];
|
|
78
|
+
ListCommand.args = {
|
|
79
|
+
instance: core_1.Args.string({ description: "ID of an instance", required: true }),
|
|
80
|
+
};
|
|
85
81
|
ListCommand.flags = {
|
|
86
|
-
...core_1.
|
|
82
|
+
...core_1.ux.table.flags(),
|
|
87
83
|
};
|
|
@@ -27,10 +27,9 @@ class DeleteCommand extends core_1.Command {
|
|
|
27
27
|
}
|
|
28
28
|
exports.default = DeleteCommand;
|
|
29
29
|
DeleteCommand.description = "Delete an Instance";
|
|
30
|
-
DeleteCommand.args =
|
|
31
|
-
{
|
|
32
|
-
name: "instance",
|
|
30
|
+
DeleteCommand.args = {
|
|
31
|
+
instance: core_1.Args.string({
|
|
33
32
|
required: true,
|
|
34
33
|
description: "ID of the instance to delete",
|
|
35
|
-
},
|
|
36
|
-
|
|
34
|
+
}),
|
|
35
|
+
};
|
|
@@ -29,13 +29,12 @@ class DeployCommand extends core_1.Command {
|
|
|
29
29
|
}
|
|
30
30
|
exports.default = DeployCommand;
|
|
31
31
|
DeployCommand.description = "Deploy an Instance";
|
|
32
|
-
DeployCommand.args =
|
|
33
|
-
{
|
|
34
|
-
name: "instance",
|
|
32
|
+
DeployCommand.args = {
|
|
33
|
+
instance: core_1.Args.string({
|
|
35
34
|
required: true,
|
|
36
35
|
description: "ID of an instance",
|
|
37
|
-
},
|
|
38
|
-
|
|
36
|
+
}),
|
|
37
|
+
};
|
|
39
38
|
DeployCommand.flags = {
|
|
40
39
|
force: core_1.Flags.boolean({
|
|
41
40
|
char: "f",
|
|
@@ -28,10 +28,9 @@ class DisableCommand extends core_1.Command {
|
|
|
28
28
|
}
|
|
29
29
|
exports.default = DisableCommand;
|
|
30
30
|
DisableCommand.description = "Disable an Instance";
|
|
31
|
-
DisableCommand.args =
|
|
32
|
-
{
|
|
33
|
-
name: "instance",
|
|
31
|
+
DisableCommand.args = {
|
|
32
|
+
instance: core_1.Args.string({
|
|
34
33
|
required: true,
|
|
35
34
|
description: "ID of an instance",
|
|
36
|
-
},
|
|
37
|
-
|
|
35
|
+
}),
|
|
36
|
+
};
|
|
@@ -28,10 +28,9 @@ class EnableCommand extends core_1.Command {
|
|
|
28
28
|
}
|
|
29
29
|
exports.default = EnableCommand;
|
|
30
30
|
EnableCommand.description = "Enable an Instance";
|
|
31
|
-
EnableCommand.args =
|
|
32
|
-
{
|
|
33
|
-
name: "instance",
|
|
31
|
+
EnableCommand.args = {
|
|
32
|
+
instance: core_1.Args.string({
|
|
34
33
|
required: true,
|
|
35
34
|
description: "ID of an instance",
|
|
36
|
-
},
|
|
37
|
-
|
|
35
|
+
}),
|
|
36
|
+
};
|
|
@@ -38,7 +38,7 @@ class ListCommand extends core_1.Command {
|
|
|
38
38
|
cursor = pageInfo.endCursor;
|
|
39
39
|
hasNextPage = pageInfo.hasNextPage;
|
|
40
40
|
}
|
|
41
|
-
core_1.
|
|
41
|
+
core_1.ux.table(flowConfigs, {
|
|
42
42
|
id: {
|
|
43
43
|
minWidth: 8,
|
|
44
44
|
extended: true,
|
|
@@ -54,9 +54,9 @@ class ListCommand extends core_1.Command {
|
|
|
54
54
|
}
|
|
55
55
|
exports.default = ListCommand;
|
|
56
56
|
ListCommand.description = "List Instance Flow Configs";
|
|
57
|
-
ListCommand.args =
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
ListCommand.args = {
|
|
58
|
+
instance: core_1.Args.string({ description: "ID of an Instance", required: true }),
|
|
59
|
+
};
|
|
60
60
|
ListCommand.flags = {
|
|
61
|
-
...core_1.
|
|
61
|
+
...core_1.ux.table.flags(),
|
|
62
62
|
};
|
|
@@ -47,13 +47,13 @@ class TestCommand extends core_1.Command {
|
|
|
47
47
|
let nextCursor = undefined;
|
|
48
48
|
// eslint-disable-next-line no-constant-condition
|
|
49
49
|
while (true) {
|
|
50
|
-
await core_1.
|
|
50
|
+
await core_1.ux.wait(500);
|
|
51
51
|
const result = await this.fetchLogs(executionId, nextCursor);
|
|
52
52
|
if (result === undefined)
|
|
53
53
|
continue;
|
|
54
54
|
const { logs, cursor, executionComplete } = result;
|
|
55
55
|
nextCursor = cursor;
|
|
56
|
-
core_1.
|
|
56
|
+
core_1.ux.table(logs, {
|
|
57
57
|
timestamp: {},
|
|
58
58
|
severity: {
|
|
59
59
|
minWidth: 12,
|
|
@@ -101,15 +101,14 @@ class TestCommand extends core_1.Command {
|
|
|
101
101
|
}
|
|
102
102
|
exports.default = TestCommand;
|
|
103
103
|
TestCommand.description = "Test a Flow Config of an Instance";
|
|
104
|
-
TestCommand.args =
|
|
105
|
-
{
|
|
106
|
-
name: "flowConfig",
|
|
104
|
+
TestCommand.args = {
|
|
105
|
+
flowConfig: core_1.Args.string({
|
|
107
106
|
description: "ID of a Flow Config to test",
|
|
108
107
|
required: true,
|
|
109
|
-
},
|
|
110
|
-
|
|
108
|
+
}),
|
|
109
|
+
};
|
|
111
110
|
TestCommand.flags = {
|
|
112
|
-
...core_1.
|
|
111
|
+
...core_1.ux.table.flags({ only: ["extended", "columns"] }),
|
|
113
112
|
tail: core_1.Flags.boolean({
|
|
114
113
|
required: false,
|
|
115
114
|
char: "t",
|
|
@@ -47,7 +47,7 @@ class ListCommand extends core_1.Command {
|
|
|
47
47
|
cursor = pageInfo.endCursor;
|
|
48
48
|
hasNextPage = pageInfo.hasNextPage;
|
|
49
49
|
}
|
|
50
|
-
core_1.
|
|
50
|
+
core_1.ux.table(instances, {
|
|
51
51
|
id: {
|
|
52
52
|
minWidth: 8,
|
|
53
53
|
extended: true,
|
|
@@ -82,5 +82,5 @@ ListCommand.flags = {
|
|
|
82
82
|
required: false,
|
|
83
83
|
description: "ID of an integration",
|
|
84
84
|
}),
|
|
85
|
-
...core_1.
|
|
85
|
+
...core_1.ux.table.flags(),
|
|
86
86
|
};
|
|
@@ -4,14 +4,14 @@ const core_1 = require("@oclif/core");
|
|
|
4
4
|
const graphql_1 = require("../../graphql");
|
|
5
5
|
class UpdateCommand extends core_1.Command {
|
|
6
6
|
async run() {
|
|
7
|
-
const { args: { instance }, flags: { name, description, version }, } = await this.parse(UpdateCommand);
|
|
7
|
+
const { args: { instance }, flags: { name, description, version, deploy }, } = await this.parse(UpdateCommand);
|
|
8
8
|
const result = await (0, graphql_1.gqlRequest)({
|
|
9
9
|
document: (0, graphql_1.gql) `
|
|
10
10
|
mutation updateInstance(
|
|
11
11
|
$id: ID!
|
|
12
12
|
$name: String
|
|
13
13
|
$description: String
|
|
14
|
-
$version: ID
|
|
14
|
+
$version: ID
|
|
15
15
|
) {
|
|
16
16
|
updateInstance(
|
|
17
17
|
input: {
|
|
@@ -38,19 +38,40 @@ class UpdateCommand extends core_1.Command {
|
|
|
38
38
|
version,
|
|
39
39
|
},
|
|
40
40
|
});
|
|
41
|
-
|
|
41
|
+
if (!deploy) {
|
|
42
|
+
this.log(result.updateInstance.instance.id);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const deployResult = await (0, graphql_1.gqlRequest)({
|
|
46
|
+
document: (0, graphql_1.gql) `
|
|
47
|
+
mutation deployInstance($id: ID!) {
|
|
48
|
+
deployInstance(input: { id: $id }) {
|
|
49
|
+
instance {
|
|
50
|
+
id
|
|
51
|
+
}
|
|
52
|
+
errors {
|
|
53
|
+
field
|
|
54
|
+
messages
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
`,
|
|
59
|
+
variables: {
|
|
60
|
+
id: instance,
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
this.log(deployResult.deployInstance.instance.id);
|
|
42
64
|
}
|
|
43
65
|
}
|
|
44
66
|
exports.default = UpdateCommand;
|
|
45
67
|
// TODO: Add more flags once optional updates are implemented
|
|
46
68
|
UpdateCommand.description = "Update an Instance";
|
|
47
|
-
UpdateCommand.args =
|
|
48
|
-
{
|
|
49
|
-
name: "instance",
|
|
69
|
+
UpdateCommand.args = {
|
|
70
|
+
instance: core_1.Args.string({
|
|
50
71
|
required: true,
|
|
51
72
|
description: "ID of an instance",
|
|
52
|
-
},
|
|
53
|
-
|
|
73
|
+
}),
|
|
74
|
+
};
|
|
54
75
|
UpdateCommand.flags = {
|
|
55
76
|
name: core_1.Flags.string({
|
|
56
77
|
char: "n",
|
|
@@ -63,6 +84,8 @@ UpdateCommand.flags = {
|
|
|
63
84
|
version: core_1.Flags.string({
|
|
64
85
|
char: "v",
|
|
65
86
|
description: "ID of integration version",
|
|
66
|
-
|
|
87
|
+
}),
|
|
88
|
+
deploy: core_1.Flags.boolean({
|
|
89
|
+
description: "Deploy the instance after updating",
|
|
67
90
|
}),
|
|
68
91
|
};
|
|
@@ -31,13 +31,12 @@ class AvailableCommand extends core_1.Command {
|
|
|
31
31
|
}
|
|
32
32
|
exports.default = AvailableCommand;
|
|
33
33
|
AvailableCommand.description = "Mark an Integration version as available or unavailable";
|
|
34
|
-
AvailableCommand.args =
|
|
35
|
-
{
|
|
36
|
-
name: "integration",
|
|
34
|
+
AvailableCommand.args = {
|
|
35
|
+
integration: core_1.Args.string({
|
|
37
36
|
required: true,
|
|
38
37
|
description: "ID of an integration version",
|
|
39
|
-
},
|
|
40
|
-
|
|
38
|
+
}),
|
|
39
|
+
};
|
|
41
40
|
AvailableCommand.flags = {
|
|
42
41
|
available: core_1.Flags.boolean({
|
|
43
42
|
required: true,
|
|
@@ -27,10 +27,9 @@ class DeleteCommand extends core_1.Command {
|
|
|
27
27
|
}
|
|
28
28
|
exports.default = DeleteCommand;
|
|
29
29
|
DeleteCommand.description = "Delete an Integration";
|
|
30
|
-
DeleteCommand.args =
|
|
31
|
-
{
|
|
32
|
-
name: "integration",
|
|
30
|
+
DeleteCommand.args = {
|
|
31
|
+
integration: core_1.Args.string({
|
|
33
32
|
required: true,
|
|
34
33
|
description: "ID of the integration to delete",
|
|
35
|
-
},
|
|
36
|
-
|
|
34
|
+
}),
|
|
35
|
+
};
|
|
@@ -15,13 +15,12 @@ class ExportCommand extends core_1.Command {
|
|
|
15
15
|
}
|
|
16
16
|
exports.default = ExportCommand;
|
|
17
17
|
ExportCommand.description = "Export an integration to YAML definition";
|
|
18
|
-
ExportCommand.args =
|
|
19
|
-
{
|
|
20
|
-
name: "integration",
|
|
18
|
+
ExportCommand.args = {
|
|
19
|
+
integration: core_1.Args.string({
|
|
21
20
|
required: true,
|
|
22
21
|
description: "ID of an integration to export",
|
|
23
|
-
},
|
|
24
|
-
|
|
22
|
+
}),
|
|
23
|
+
};
|
|
25
24
|
ExportCommand.flags = {
|
|
26
25
|
"latest-components": core_1.Flags.boolean({
|
|
27
26
|
char: "l",
|
|
@@ -37,7 +37,7 @@ class ListCommand extends core_1.Command {
|
|
|
37
37
|
cursor = pageInfo.endCursor;
|
|
38
38
|
hasNextPage = pageInfo.hasNextPage;
|
|
39
39
|
}
|
|
40
|
-
core_1.
|
|
40
|
+
core_1.ux.table(flows, {
|
|
41
41
|
id: {
|
|
42
42
|
minWidth: 8,
|
|
43
43
|
extended: true,
|
|
@@ -50,13 +50,12 @@ class ListCommand extends core_1.Command {
|
|
|
50
50
|
}
|
|
51
51
|
exports.default = ListCommand;
|
|
52
52
|
ListCommand.description = "List Integration Flows";
|
|
53
|
-
ListCommand.args =
|
|
54
|
-
{
|
|
55
|
-
name: "integration",
|
|
53
|
+
ListCommand.args = {
|
|
54
|
+
integration: core_1.Args.string({
|
|
56
55
|
description: "ID of an Integration",
|
|
57
56
|
required: true,
|
|
58
|
-
},
|
|
59
|
-
|
|
57
|
+
}),
|
|
58
|
+
};
|
|
60
59
|
ListCommand.flags = {
|
|
61
|
-
...core_1.
|
|
60
|
+
...core_1.ux.table.flags(),
|
|
62
61
|
};
|
|
@@ -47,13 +47,13 @@ class TestCommand extends core_1.Command {
|
|
|
47
47
|
let nextCursor = undefined;
|
|
48
48
|
// eslint-disable-next-line no-constant-condition
|
|
49
49
|
while (true) {
|
|
50
|
-
await core_1.
|
|
50
|
+
await core_1.ux.wait(500);
|
|
51
51
|
const result = await this.fetchLogs(executionId, nextCursor);
|
|
52
52
|
if (result === undefined)
|
|
53
53
|
continue;
|
|
54
54
|
const { logs, cursor, executionComplete } = result;
|
|
55
55
|
nextCursor = cursor;
|
|
56
|
-
core_1.
|
|
56
|
+
core_1.ux.table(logs, {
|
|
57
57
|
timestamp: {},
|
|
58
58
|
severity: {
|
|
59
59
|
minWidth: 12,
|
|
@@ -101,11 +101,11 @@ class TestCommand extends core_1.Command {
|
|
|
101
101
|
}
|
|
102
102
|
exports.default = TestCommand;
|
|
103
103
|
TestCommand.description = "Run a test of an Integration Flow";
|
|
104
|
-
TestCommand.args =
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
TestCommand.args = {
|
|
105
|
+
flow: core_1.Args.string({ description: "ID of a flow to test", required: true }),
|
|
106
|
+
};
|
|
107
107
|
TestCommand.flags = {
|
|
108
|
-
...core_1.
|
|
108
|
+
...core_1.ux.table.flags({ only: ["extended", "columns"] }),
|
|
109
109
|
tail: core_1.Flags.boolean({
|
|
110
110
|
char: "t",
|
|
111
111
|
description: "Tail logs of the integration test run",
|
|
@@ -48,10 +48,9 @@ ForkCommand.flags = {
|
|
|
48
48
|
description: "longer description of the forked integration",
|
|
49
49
|
}),
|
|
50
50
|
};
|
|
51
|
-
ForkCommand.args =
|
|
52
|
-
{
|
|
53
|
-
name: "parent",
|
|
51
|
+
ForkCommand.args = {
|
|
52
|
+
parent: core_1.Args.string({
|
|
54
53
|
required: true,
|
|
55
54
|
description: "ID of the Integration to fork",
|
|
56
|
-
},
|
|
57
|
-
|
|
55
|
+
}),
|
|
56
|
+
};
|
|
@@ -55,7 +55,7 @@ class ListCommand extends core_1.Command {
|
|
|
55
55
|
cursor = pageInfo.endCursor;
|
|
56
56
|
hasNextPage = pageInfo.hasNextPage;
|
|
57
57
|
}
|
|
58
|
-
core_1.
|
|
58
|
+
core_1.ux.table(integrations, {
|
|
59
59
|
id: {
|
|
60
60
|
minWidth: 8,
|
|
61
61
|
extended: true,
|
|
@@ -80,7 +80,7 @@ class ListCommand extends core_1.Command {
|
|
|
80
80
|
exports.default = ListCommand;
|
|
81
81
|
ListCommand.description = "List Integrations";
|
|
82
82
|
ListCommand.flags = {
|
|
83
|
-
...core_1.
|
|
83
|
+
...core_1.ux.table.flags(),
|
|
84
84
|
showAllVersions: core_1.Flags.boolean({
|
|
85
85
|
char: "a",
|
|
86
86
|
description: "If specified this command returns all versions of all integrations rather than only the latest version",
|
|
@@ -45,13 +45,12 @@ class MarketplaceCommand extends core_1.Command {
|
|
|
45
45
|
}
|
|
46
46
|
exports.default = MarketplaceCommand;
|
|
47
47
|
MarketplaceCommand.description = "Make a version of an Integration available in the Marketplace";
|
|
48
|
-
MarketplaceCommand.args =
|
|
49
|
-
{
|
|
50
|
-
name: "integration",
|
|
48
|
+
MarketplaceCommand.args = {
|
|
49
|
+
integration: core_1.Args.string({
|
|
51
50
|
required: true,
|
|
52
51
|
description: "ID of an integration version to make marketplace available",
|
|
53
|
-
},
|
|
54
|
-
|
|
52
|
+
}),
|
|
53
|
+
};
|
|
55
54
|
MarketplaceCommand.flags = {
|
|
56
55
|
available: core_1.Flags.boolean({
|
|
57
56
|
char: "a",
|
|
@@ -29,13 +29,12 @@ class PublishCommand extends core_1.Command {
|
|
|
29
29
|
}
|
|
30
30
|
exports.default = PublishCommand;
|
|
31
31
|
PublishCommand.description = "Publish a version of an Integration for use in Instances";
|
|
32
|
-
PublishCommand.args =
|
|
33
|
-
{
|
|
34
|
-
name: "integration",
|
|
32
|
+
PublishCommand.args = {
|
|
33
|
+
integration: core_1.Args.string({
|
|
35
34
|
required: true,
|
|
36
35
|
description: "ID of an integration to publish",
|
|
37
|
-
},
|
|
38
|
-
|
|
36
|
+
}),
|
|
37
|
+
};
|
|
39
38
|
PublishCommand.flags = {
|
|
40
39
|
comment: core_1.Flags.string({
|
|
41
40
|
char: "c",
|
|
@@ -47,13 +47,12 @@ class UpdateCommand extends core_1.Command {
|
|
|
47
47
|
}
|
|
48
48
|
exports.default = UpdateCommand;
|
|
49
49
|
UpdateCommand.description = "Update an Integration's name or description";
|
|
50
|
-
UpdateCommand.args =
|
|
51
|
-
{
|
|
52
|
-
name: "integration",
|
|
50
|
+
UpdateCommand.args = {
|
|
51
|
+
integration: core_1.Args.string({
|
|
53
52
|
required: true,
|
|
54
53
|
description: "ID of an integration",
|
|
55
|
-
},
|
|
56
|
-
|
|
54
|
+
}),
|
|
55
|
+
};
|
|
57
56
|
UpdateCommand.flags = {
|
|
58
57
|
name: core_1.Flags.string({
|
|
59
58
|
char: "n",
|
|
@@ -38,7 +38,7 @@ class ListCommand extends core_1.Command {
|
|
|
38
38
|
onlyShowOne: flags["latest-available"] ? 1 : null,
|
|
39
39
|
},
|
|
40
40
|
});
|
|
41
|
-
core_1.
|
|
41
|
+
core_1.ux.table(result.integration.versionSequence.nodes, {
|
|
42
42
|
versionNumber: {
|
|
43
43
|
header: "Version",
|
|
44
44
|
},
|
|
@@ -69,16 +69,15 @@ class ListCommand extends core_1.Command {
|
|
|
69
69
|
exports.default = ListCommand;
|
|
70
70
|
ListCommand.description = "List Integration versions";
|
|
71
71
|
ListCommand.flags = {
|
|
72
|
-
...core_1.
|
|
72
|
+
...core_1.ux.table.flags(),
|
|
73
73
|
"latest-available": core_1.Flags.boolean({
|
|
74
74
|
char: "l",
|
|
75
75
|
description: "Show only the latest available version",
|
|
76
76
|
}),
|
|
77
77
|
};
|
|
78
|
-
ListCommand.args =
|
|
79
|
-
{
|
|
80
|
-
name: "integration",
|
|
78
|
+
ListCommand.args = {
|
|
79
|
+
integration: core_1.Args.string({
|
|
81
80
|
required: true,
|
|
82
81
|
description: "ID of an integration",
|
|
83
|
-
},
|
|
84
|
-
|
|
82
|
+
}),
|
|
83
|
+
};
|
package/lib/commands/login.js
CHANGED
|
@@ -10,7 +10,7 @@ class LoginCommand extends core_1.Command {
|
|
|
10
10
|
return;
|
|
11
11
|
}
|
|
12
12
|
if (!url) {
|
|
13
|
-
await core_1.
|
|
13
|
+
await core_1.ux.anykey("Press any key to open prismatic.io in your default browser");
|
|
14
14
|
}
|
|
15
15
|
await (0, auth_1.login)({ url });
|
|
16
16
|
this.log("Login complete!");
|
|
@@ -15,7 +15,7 @@ class ListCommand extends core_1.Command {
|
|
|
15
15
|
}
|
|
16
16
|
`,
|
|
17
17
|
});
|
|
18
|
-
core_1.
|
|
18
|
+
core_1.ux.table(result.logSeverityLevels, {
|
|
19
19
|
id: {
|
|
20
20
|
minWidth: 8,
|
|
21
21
|
extended: true,
|
|
@@ -26,4 +26,4 @@ class ListCommand extends core_1.Command {
|
|
|
26
26
|
}
|
|
27
27
|
exports.default = ListCommand;
|
|
28
28
|
ListCommand.description = "List Log Severities for use by Alert Triggers";
|
|
29
|
-
ListCommand.flags = { ...core_1.
|
|
29
|
+
ListCommand.flags = { ...core_1.ux.table.flags() };
|
|
@@ -27,10 +27,9 @@ class DeleteCommand extends core_1.Command {
|
|
|
27
27
|
}
|
|
28
28
|
exports.default = DeleteCommand;
|
|
29
29
|
DeleteCommand.description = "Delete an Organization Credential";
|
|
30
|
-
DeleteCommand.args =
|
|
31
|
-
{
|
|
32
|
-
name: "credential",
|
|
30
|
+
DeleteCommand.args = {
|
|
31
|
+
credential: core_1.Args.string({
|
|
33
32
|
required: true,
|
|
34
33
|
description: "ID of the credential to delete",
|
|
35
|
-
},
|
|
36
|
-
|
|
34
|
+
}),
|
|
35
|
+
};
|
|
@@ -24,7 +24,7 @@ class ListCommand extends core_1.Command {
|
|
|
24
24
|
}
|
|
25
25
|
`,
|
|
26
26
|
});
|
|
27
|
-
core_1.
|
|
27
|
+
core_1.ux.table(result.organization.credentials.nodes, {
|
|
28
28
|
id: {
|
|
29
29
|
minWidth: 8,
|
|
30
30
|
extended: true,
|
|
@@ -42,4 +42,4 @@ class ListCommand extends core_1.Command {
|
|
|
42
42
|
}
|
|
43
43
|
exports.default = ListCommand;
|
|
44
44
|
ListCommand.description = "List Credentials available to the entire Organization";
|
|
45
|
-
ListCommand.flags = { ...core_1.
|
|
45
|
+
ListCommand.flags = { ...core_1.ux.table.flags() };
|
|
@@ -38,13 +38,12 @@ class UpdateCommand extends core_1.Command {
|
|
|
38
38
|
}
|
|
39
39
|
exports.default = UpdateCommand;
|
|
40
40
|
UpdateCommand.description = "Update a Customer-specific Credential for use by Instance Actions";
|
|
41
|
-
UpdateCommand.args =
|
|
42
|
-
{
|
|
43
|
-
name: "credential",
|
|
41
|
+
UpdateCommand.args = {
|
|
42
|
+
credential: core_1.Args.string({
|
|
44
43
|
required: true,
|
|
45
44
|
description: "ID of a credential",
|
|
46
|
-
},
|
|
47
|
-
|
|
45
|
+
}),
|
|
46
|
+
};
|
|
48
47
|
UpdateCommand.flags = {
|
|
49
48
|
label: core_1.Flags.string({
|
|
50
49
|
char: "l",
|
|
@@ -27,10 +27,9 @@ class DeleteCommand extends core_1.Command {
|
|
|
27
27
|
}
|
|
28
28
|
exports.default = DeleteCommand;
|
|
29
29
|
DeleteCommand.description = "Delete an embedded marketplace signing key";
|
|
30
|
-
DeleteCommand.args =
|
|
31
|
-
{
|
|
32
|
-
name: "signingKeyId",
|
|
30
|
+
DeleteCommand.args = {
|
|
31
|
+
signingKeyId: core_1.Args.string({
|
|
33
32
|
required: true,
|
|
34
33
|
description: "ID of the signing key to delete",
|
|
35
|
-
},
|
|
36
|
-
|
|
34
|
+
}),
|
|
35
|
+
};
|