@prismatic-io/prism 5.2.3 → 5.2.5

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.
@@ -0,0 +1,35 @@
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 DeleteCommand extends core_1.Command {
6
+ async run() {
7
+ const { args: { resource }, } = await this.parse(DeleteCommand);
8
+ await (0, graphql_1.gqlRequest)({
9
+ document: (0, graphql_1.gql) `
10
+ mutation deleteOnPremiseResource($id: ID!) {
11
+ deleteOnPremiseResource(input: { id: $id }) {
12
+ onPremiseResource {
13
+ id
14
+ }
15
+ errors {
16
+ field
17
+ messages
18
+ }
19
+ }
20
+ }
21
+ `,
22
+ variables: {
23
+ id: resource,
24
+ },
25
+ });
26
+ }
27
+ }
28
+ exports.default = DeleteCommand;
29
+ DeleteCommand.description = "Delete an On-Premise Resource";
30
+ DeleteCommand.args = {
31
+ resource: core_1.Args.string({
32
+ required: true,
33
+ description: "ID of the On-Premise Resource to delete",
34
+ }),
35
+ };
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.2.3",
2
+ "version": "5.2.5",
3
3
  "commands": {
4
4
  "login": {
5
5
  "id": "login",
@@ -1156,6 +1156,23 @@
1156
1156
  },
1157
1157
  "args": {}
1158
1158
  },
1159
+ "on-prem-resources:delete": {
1160
+ "id": "on-prem-resources:delete",
1161
+ "description": "Delete an On-Premise Resource",
1162
+ "strict": true,
1163
+ "pluginName": "@prismatic-io/prism",
1164
+ "pluginAlias": "@prismatic-io/prism",
1165
+ "pluginType": "core",
1166
+ "aliases": [],
1167
+ "flags": {},
1168
+ "args": {
1169
+ "resource": {
1170
+ "name": "resource",
1171
+ "description": "ID of the On-Premise Resource to delete",
1172
+ "required": true
1173
+ }
1174
+ }
1175
+ },
1159
1176
  "on-prem-resources:list": {
1160
1177
  "id": "on-prem-resources:list",
1161
1178
  "description": "List On-Premise Resources",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/prism",
3
- "version": "5.2.3",
3
+ "version": "5.2.5",
4
4
  "description": "Build, deploy, and support integrations in Prismatic from the comfort of your command line",
5
5
  "keywords": [
6
6
  "prismatic",
@@ -46,7 +46,7 @@
46
46
  "@oclif/plugin-help": "5.2.17",
47
47
  "@oclif/plugin-warn-if-update-available": "2.0.48",
48
48
  "@prismatic-io/generator-spectral": "3.0.1",
49
- "@prismatic-io/spectral": "8.0.1",
49
+ "@prismatic-io/spectral": "^8.0.5",
50
50
  "archiver": "6.0.1",
51
51
  "axios": "1.6.2",
52
52
  "camelcase": "6.2.0",