@prismatic-io/prism 5.0.0 → 5.0.2

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.
@@ -4,7 +4,7 @@ const core_1 = require("@oclif/core");
4
4
  const graphql_1 = require("../../graphql");
5
5
  class MarketplaceCommand extends core_1.Command {
6
6
  async run() {
7
- const { args: { integration }, flags: { available, deployable, overview }, } = await this.parse(MarketplaceCommand);
7
+ const { args: { integration }, flags: { available, deployable, overview, "allow-multiple-instances": multipleInstances, }, } = await this.parse(MarketplaceCommand);
8
8
  const marketplaceConfiguration = available
9
9
  ? deployable
10
10
  ? "AVAILABLE_AND_DEPLOYABLE"
@@ -16,12 +16,14 @@ class MarketplaceCommand extends core_1.Command {
16
16
  $id: ID
17
17
  $marketplaceConfiguration: String!
18
18
  $overview: String!
19
+ $multipleInstances: Boolean
19
20
  ) {
20
21
  updateIntegrationMarketplaceConfiguration(
21
22
  input: {
22
23
  id: $id
23
24
  marketplaceConfiguration: $marketplaceConfiguration
24
25
  overview: $overview
26
+ allowMultipleMarketplaceInstances: $multipleInstances
25
27
  }
26
28
  ) {
27
29
  integration {
@@ -38,6 +40,7 @@ class MarketplaceCommand extends core_1.Command {
38
40
  id: integration,
39
41
  marketplaceConfiguration,
40
42
  overview,
43
+ multipleInstances,
41
44
  },
42
45
  });
43
46
  this.log(result.updateIntegrationMarketplaceConfiguration.integration.id);
@@ -64,6 +67,11 @@ MarketplaceCommand.flags = {
64
67
  allowNo: true,
65
68
  default: true,
66
69
  }),
70
+ "allow-multiple-instances": core_1.Flags.boolean({
71
+ char: "m",
72
+ description: "Allow a customer to deploy multiple instances of this integration",
73
+ allowNo: true,
74
+ }),
67
75
  overview: core_1.Flags.string({
68
76
  char: "o",
69
77
  required: true,
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.0.0",
2
+ "version": "5.0.2",
3
3
  "commands": {
4
4
  "login": {
5
5
  "id": "login",
@@ -46,91 +46,6 @@
46
46
  },
47
47
  "args": {}
48
48
  },
49
- "authorization-methods:list": {
50
- "id": "authorization-methods:list",
51
- "description": "List Authorization Methods that Components can use",
52
- "strict": true,
53
- "pluginName": "@prismatic-io/prism",
54
- "pluginAlias": "@prismatic-io/prism",
55
- "pluginType": "core",
56
- "aliases": [],
57
- "flags": {
58
- "columns": {
59
- "name": "columns",
60
- "type": "option",
61
- "description": "only show provided columns (comma-separated)",
62
- "multiple": false,
63
- "exclusive": [
64
- "extended"
65
- ]
66
- },
67
- "sort": {
68
- "name": "sort",
69
- "type": "option",
70
- "description": "property to sort by (prepend '-' for descending)",
71
- "multiple": false
72
- },
73
- "filter": {
74
- "name": "filter",
75
- "type": "option",
76
- "description": "filter property by partial string matching, ex: name=foo",
77
- "multiple": false
78
- },
79
- "csv": {
80
- "name": "csv",
81
- "type": "boolean",
82
- "description": "output is csv format [alias: --output=csv]",
83
- "allowNo": false,
84
- "exclusive": [
85
- "no-truncate"
86
- ]
87
- },
88
- "output": {
89
- "name": "output",
90
- "type": "option",
91
- "description": "output in a more machine friendly format",
92
- "multiple": false,
93
- "options": [
94
- "csv",
95
- "json",
96
- "yaml"
97
- ],
98
- "exclusive": [
99
- "no-truncate",
100
- "csv"
101
- ]
102
- },
103
- "extended": {
104
- "name": "extended",
105
- "type": "boolean",
106
- "char": "x",
107
- "description": "show extra columns",
108
- "allowNo": false,
109
- "exclusive": [
110
- "columns"
111
- ]
112
- },
113
- "no-truncate": {
114
- "name": "no-truncate",
115
- "type": "boolean",
116
- "description": "do not truncate output to fit screen",
117
- "allowNo": false,
118
- "exclusive": [
119
- "csv"
120
- ]
121
- },
122
- "no-header": {
123
- "name": "no-header",
124
- "type": "boolean",
125
- "description": "hide table header from output",
126
- "allowNo": false,
127
- "exclusive": [
128
- "csv"
129
- ]
130
- }
131
- },
132
- "args": {}
133
- },
134
49
  "components:delete": {
135
50
  "id": "components:delete",
136
51
  "description": "Delete a Component",
@@ -1074,6 +989,13 @@
1074
989
  "description": "Mark this Integration version as deployable in the marketplace; does not apply if not also marked available",
1075
990
  "allowNo": true
1076
991
  },
992
+ "allow-multiple-instances": {
993
+ "name": "allow-multiple-instances",
994
+ "type": "boolean",
995
+ "char": "m",
996
+ "description": "Allow a customer to deploy multiple instances of this integration",
997
+ "allowNo": true
998
+ },
1077
999
  "overview": {
1078
1000
  "name": "overview",
1079
1001
  "type": "option",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/prism",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "description": "Build, deploy, and support integrations in Prismatic from the comfort of your command line",
5
5
  "keywords": [
6
6
  "prismatic",
@@ -45,8 +45,8 @@
45
45
  "@oclif/plugin-autocomplete": "2.3.6",
46
46
  "@oclif/plugin-help": "5.2.17",
47
47
  "@oclif/plugin-warn-if-update-available": "2.0.48",
48
- "@prismatic-io/generator-spectral": "3.0.0",
49
- "@prismatic-io/spectral": "8.0.0",
48
+ "@prismatic-io/generator-spectral": "3.0.1",
49
+ "@prismatic-io/spectral": "8.0.1",
50
50
  "archiver": "3.1.1",
51
51
  "axios": "1.6.2",
52
52
  "camelcase": "6.2.0",
@@ -1,42 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const core_1 = require("@oclif/core");
4
- const graphql_1 = require("../../graphql");
5
- class ListCommand extends core_1.Command {
6
- async run() {
7
- const { flags } = await this.parse(ListCommand);
8
- const result = await (0, graphql_1.gqlRequest)({
9
- document: (0, graphql_1.gql) `
10
- query listAuthorizationMethods {
11
- authorizationMethods {
12
- nodes {
13
- id
14
- key
15
- label
16
- fields {
17
- nodes {
18
- key
19
- }
20
- }
21
- }
22
- }
23
- }
24
- `,
25
- });
26
- const authMethods = result.authorizationMethods.nodes;
27
- core_1.ux.table(authMethods, {
28
- id: {
29
- minWidth: 8,
30
- extended: true,
31
- },
32
- key: {},
33
- label: {},
34
- fields: {
35
- get: ({ fields }) => fields.nodes.map((field) => field.key).join(" "),
36
- },
37
- }, { ...flags });
38
- }
39
- }
40
- exports.default = ListCommand;
41
- ListCommand.description = "List Authorization Methods that Components can use";
42
- ListCommand.flags = { ...core_1.ux.table.flags() };