@salesforce/plugin-devops-center 1.0.0-beta.1 → 1.0.0-beta.3

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.
Files changed (88) hide show
  1. package/README.md +3 -1
  2. package/lib/commands/project/deploy/pipeline/quick.d.ts +23 -0
  3. package/lib/commands/project/deploy/pipeline/quick.js +45 -0
  4. package/lib/commands/project/deploy/pipeline/quick.js.map +1 -0
  5. package/lib/commands/project/deploy/pipeline/resume.d.ts +3 -2
  6. package/lib/commands/project/deploy/pipeline/resume.js +1 -0
  7. package/lib/commands/project/deploy/pipeline/resume.js.map +1 -1
  8. package/lib/commands/project/deploy/pipeline/start.d.ts +4 -2
  9. package/lib/commands/project/deploy/pipeline/start.js +1 -0
  10. package/lib/commands/project/deploy/pipeline/start.js.map +1 -1
  11. package/lib/commands/project/deploy/pipeline/validate.d.ts +19 -0
  12. package/lib/commands/project/deploy/pipeline/validate.js +37 -0
  13. package/lib/commands/project/deploy/pipeline/validate.js.map +1 -0
  14. package/lib/common/base/abstractAsyncOperation.d.ts +42 -0
  15. package/lib/common/base/abstractAsyncOperation.js +94 -0
  16. package/lib/common/base/abstractAsyncOperation.js.map +1 -0
  17. package/lib/common/base/abstractPromote.d.ts +8 -16
  18. package/lib/common/base/abstractPromote.js +19 -69
  19. package/lib/common/base/abstractPromote.js.map +1 -1
  20. package/lib/common/base/abstractQuick.d.ts +59 -0
  21. package/lib/common/base/abstractQuick.js +111 -0
  22. package/lib/common/base/abstractQuick.js.map +1 -0
  23. package/lib/common/base/abstractResume.d.ts +7 -12
  24. package/lib/common/base/abstractResume.js +9 -35
  25. package/lib/common/base/abstractResume.js.map +1 -1
  26. package/lib/common/constants.d.ts +2 -1
  27. package/lib/common/constants.js +1 -0
  28. package/lib/common/constants.js.map +1 -1
  29. package/lib/common/index.d.ts +1 -1
  30. package/lib/common/index.js.map +1 -1
  31. package/lib/common/outputColumns.d.ts +1 -0
  32. package/lib/common/outputColumns.js +1 -0
  33. package/lib/common/outputColumns.js.map +1 -1
  34. package/lib/common/outputService/aorOutputService.js +12 -6
  35. package/lib/common/outputService/aorOutputService.js.map +1 -1
  36. package/lib/common/outputService/deployCommandOutputService.d.ts +1 -1
  37. package/lib/common/outputService/deployCommandOutputService.js +2 -2
  38. package/lib/common/outputService/deployCommandOutputService.js.map +1 -1
  39. package/lib/common/outputService/deploySummaryBuilder.d.ts +12 -0
  40. package/lib/common/outputService/deploySummaryBuilder.js +59 -5
  41. package/lib/common/outputService/deploySummaryBuilder.js.map +1 -1
  42. package/lib/common/outputService/outputServiceFactory.d.ts +11 -5
  43. package/lib/common/outputService/outputServiceFactory.js +8 -2
  44. package/lib/common/outputService/outputServiceFactory.js.map +1 -1
  45. package/lib/common/outputService/promoteOutputService.d.ts +0 -6
  46. package/lib/common/outputService/promoteOutputService.js +0 -11
  47. package/lib/common/outputService/promoteOutputService.js.map +1 -1
  48. package/lib/common/outputService/resumeCommandOutputService.d.ts +7 -4
  49. package/lib/common/outputService/resumeCommandOutputService.js +8 -4
  50. package/lib/common/outputService/resumeCommandOutputService.js.map +1 -1
  51. package/lib/common/outputService/resumeOutputService.d.ts +7 -0
  52. package/lib/common/outputService/resumeOutputService.js +14 -0
  53. package/lib/common/outputService/resumeOutputService.js.map +1 -1
  54. package/lib/common/selectors/deployComponentsSelector.d.ts +1 -0
  55. package/lib/common/selectors/deployComponentsSelector.js +9 -1
  56. package/lib/common/selectors/deployComponentsSelector.js.map +1 -1
  57. package/lib/common/selectors/deploymentResultsSelector.d.ts +19 -1
  58. package/lib/common/selectors/deploymentResultsSelector.js +29 -1
  59. package/lib/common/selectors/deploymentResultsSelector.js.map +1 -1
  60. package/lib/common/selectors/pipelineStageSelector.d.ts +5 -0
  61. package/lib/common/selectors/pipelineStageSelector.js +13 -1
  62. package/lib/common/selectors/pipelineStageSelector.js.map +1 -1
  63. package/lib/common/selectors/validateDeploySelector.d.ts +6 -0
  64. package/lib/common/selectors/validateDeploySelector.js +22 -0
  65. package/lib/common/selectors/validateDeploySelector.js.map +1 -0
  66. package/lib/common/types.d.ts +10 -5
  67. package/lib/common/types.js +0 -6
  68. package/lib/common/types.js.map +1 -1
  69. package/lib/common/utils.d.ts +7 -1
  70. package/lib/common/utils.js +16 -3
  71. package/lib/common/utils.js.map +1 -1
  72. package/lib/streamer/processors/asyncOpStream.js +2 -1
  73. package/lib/streamer/processors/asyncOpStream.js.map +1 -1
  74. package/messages/commonFlags.md +2 -2
  75. package/messages/config.md +1 -1
  76. package/messages/deploy.output.md +18 -2
  77. package/messages/project.deploy.pipeline.quick.md +45 -0
  78. package/messages/project.deploy.pipeline.report.md +3 -3
  79. package/messages/project.deploy.pipeline.resume.md +1 -1
  80. package/messages/project.deploy.pipeline.start.md +5 -1
  81. package/messages/project.deploy.pipeline.validate.md +17 -0
  82. package/messages/promoteFlags.md +3 -3
  83. package/oclif.manifest.json +238 -9
  84. package/package.json +221 -115
  85. package/schemas/project-deploy-pipeline-quick.json +25 -0
  86. package/schemas/project-deploy-pipeline-resume.json +3 -3
  87. package/schemas/project-deploy-pipeline-start.json +3 -3
  88. package/schemas/project-deploy-pipeline-validate.json +25 -0
package/package.json CHANGED
@@ -1,120 +1,226 @@
1
1
  {
2
- "name": "@salesforce/plugin-devops-center",
3
- "description": "The DevOps Center CLI plugin provides a command-line alternative to performing equivalent actions in the DevOps Center graphical UI",
4
- "version": "1.0.0-beta.1",
5
- "author": "Salesforce",
6
- "bugs": "https://github.com/forcedotcom/cli/issues",
7
- "dependencies": {
8
- "@oclif/core": "^2.4.0",
9
- "@salesforce/core": "^3.34.4",
10
- "@salesforce/kit": "^1.8.2",
11
- "@salesforce/sf-plugins-core": "^2.2.5",
12
- "tslib": "^2"
13
- },
14
- "devDependencies": {
15
- "@oclif/plugin-command-snapshot": "^3.3.9",
16
- "@oclif/test": "^2.3.7",
17
- "@salesforce/cli-plugins-testkit": "^3.2.25",
18
- "@salesforce/dev-config": "^3.1.0",
19
- "@salesforce/dev-scripts": "^3.1.1",
20
- "@salesforce/plugin-command-reference": "^2.3.1",
21
- "@salesforce/prettier-config": "^0.0.2",
22
- "@salesforce/ts-sinon": "1.4.6",
23
- "@swc/cli": "^0.1.62",
24
- "@swc/core": "1.3.39",
25
- "@typescript-eslint/eslint-plugin": "^5.54.0",
26
- "@typescript-eslint/parser": "^5.54.1",
27
- "chai": "^4.3.7",
28
- "eslint": "^8.35.0",
29
- "eslint-config-prettier": "^8.8.0",
30
- "eslint-config-salesforce": "^1.1.1",
31
- "eslint-config-salesforce-license": "^0.2.0",
32
- "eslint-config-salesforce-typescript": "^1.1.1",
33
- "eslint-plugin-header": "^3.0.0",
34
- "eslint-plugin-import": "2.27.5",
35
- "eslint-plugin-jsdoc": "^39.6.4",
36
- "eslint-plugin-sf-plugin": "^1.14.0",
37
- "husky": "^7.0.4",
38
- "mocha": "^9.2.2",
39
- "nyc": "^15.1.0",
40
- "oclif": "^3.7.0",
41
- "prettier": "^2.8.7",
42
- "pretty-quick": "^3.1.3",
43
- "shx": "0.3.4",
44
- "sinon": "10.0.0",
45
- "ts-node": "^10.9.1",
46
- "typescript": "^4.9.4"
47
- },
48
- "engines": {
49
- "node": ">=14.0.0"
50
- },
51
- "files": [
52
- "/lib",
53
- "/messages",
54
- "/oclif.manifest.json",
55
- "/schemas"
56
- ],
57
- "homepage": "https://github.com/salesforcecli/plugin-devops-center",
58
- "keywords": [
59
- "force",
60
- "salesforce",
61
- "sfdx",
62
- "salesforcedx",
63
- "sfdx-plugin",
64
- "sf-plugin",
65
- "sf"
66
- ],
67
- "license": "BSD-3-Clause",
68
- "main": "lib/index.js",
69
- "oclif": {
70
- "commands": "./lib/commands",
71
- "bin": "sf",
72
- "configMeta": "./lib/configMeta",
73
- "topicSeparator": " ",
74
- "devPlugins": [
75
- "@oclif/plugin-help",
76
- "@oclif/plugin-command-snapshot",
77
- "@salesforce/plugin-command-reference"
2
+ "name": "@salesforce/plugin-devops-center",
3
+ "description": "The DevOps Center CLI plugin provides a command-line alternative to performing equivalent actions in the DevOps Center graphical UI",
4
+ "version": "1.0.0-beta.3",
5
+ "author": "Salesforce",
6
+ "bugs": "https://github.com/forcedotcom/cli/issues",
7
+ "dependencies": {
8
+ "@oclif/core": "2.11.8",
9
+ "@salesforce/core": "^5.1.4",
10
+ "@salesforce/kit": "^3.0.7",
11
+ "@salesforce/sf-plugins-core": "^3.1.14",
12
+ "tslib": "^2"
13
+ },
14
+ "devDependencies": {
15
+ "@oclif/plugin-command-snapshot": "^4.0.2",
16
+ "@oclif/test": "^2.4.2",
17
+ "@salesforce/cli-plugins-testkit": "^4.3.1",
18
+ "@salesforce/dev-config": "^4.0.1",
19
+ "@salesforce/dev-scripts": "^5.4.3",
20
+ "@salesforce/plugin-command-reference": "^3.0.25",
21
+ "@salesforce/prettier-config": "^0.0.3",
22
+ "@salesforce/ts-sinon": "^1.4.13",
23
+ "@swc/cli": "^0.1.62",
24
+ "@swc/core": "1.3.39",
25
+ "@typescript-eslint/eslint-plugin": "^6.4.0",
26
+ "@typescript-eslint/parser": "^6.2.1",
27
+ "chai": "^4.3.7",
28
+ "eslint": "^8.48.0",
29
+ "eslint-config-prettier": "^8.9.0",
30
+ "eslint-config-salesforce": "^2.0.1",
31
+ "eslint-config-salesforce-license": "^0.2.0",
32
+ "eslint-config-salesforce-typescript": "^1.1.2",
33
+ "eslint-plugin-header": "^3.1.1",
34
+ "eslint-plugin-import": "^2.28.0",
35
+ "eslint-plugin-jsdoc": "^46.4.5",
36
+ "eslint-plugin-sf-plugin": "^1.15.6",
37
+ "husky": "^7.0.4",
38
+ "mocha": "^9.2.2",
39
+ "nyc": "^15.1.0",
40
+ "oclif": "^3.9.0",
41
+ "prettier": "^2.8.7",
42
+ "pretty-quick": "^3.1.3",
43
+ "shx": "0.3.4",
44
+ "sinon": "10.0.0",
45
+ "ts-node": "^10.9.1",
46
+ "typescript": "^4.9.5",
47
+ "wireit": "^0.9.5"
48
+ },
49
+ "engines": {
50
+ "node": ">=16.0.0"
51
+ },
52
+ "files": [
53
+ "/lib",
54
+ "/messages",
55
+ "/oclif.manifest.json",
56
+ "/schemas"
78
57
  ],
79
- "topics": {
80
- "project": {
81
- "external": true,
82
- "subtopics": {
83
- "deploy": {
84
- "description": "Commands to deploy artifacts to an environment.",
85
- "subtopics": {
86
- "pipeline": {
87
- "description": "Commands to deploy metadata from a pipeline stage to a Salesforce org."
88
- }
58
+ "homepage": "https://github.com/salesforcecli/plugin-devops-center",
59
+ "keywords": [
60
+ "force",
61
+ "salesforce",
62
+ "sfdx",
63
+ "salesforcedx",
64
+ "sfdx-plugin",
65
+ "sf-plugin",
66
+ "sf"
67
+ ],
68
+ "license": "BSD-3-Clause",
69
+ "main": "lib/index.js",
70
+ "oclif": {
71
+ "commands": "./lib/commands",
72
+ "bin": "sf",
73
+ "configMeta": "./lib/configMeta",
74
+ "topicSeparator": " ",
75
+ "devPlugins": [
76
+ "@oclif/plugin-help",
77
+ "@oclif/plugin-command-snapshot",
78
+ "@salesforce/plugin-command-reference"
79
+ ],
80
+ "topics": {
81
+ "project": {
82
+ "external": true,
83
+ "subtopics": {
84
+ "deploy": {
85
+ "description": "Commands to deploy artifacts to an environment.",
86
+ "subtopics": {
87
+ "pipeline": {
88
+ "description": "Commands to deploy metadata from a pipeline stage to a Salesforce org."
89
+ }
90
+ }
91
+ }
92
+ }
89
93
  }
90
- }
91
94
  }
92
- }
95
+ },
96
+ "repository": "salesforcecli/plugin-devops-center",
97
+ "scripts": {
98
+ "build": "wireit",
99
+ "clean": "sf-clean",
100
+ "clean-all": "sf-clean all",
101
+ "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
102
+ "compile": "wireit",
103
+ "docs": "sf-docs",
104
+ "format": "wireit",
105
+ "lint": "wireit",
106
+ "postpack": "shx rm -f oclif.manifest.json",
107
+ "prepack": "sf-prepack",
108
+ "prepare": "sf-install",
109
+ "test": "wireit",
110
+ "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
111
+ "test:only": "wireit",
112
+ "version": "oclif readme"
113
+ },
114
+ "publishConfig": {
115
+ "access": "public"
116
+ },
117
+ "wireit": {
118
+ "build": {
119
+ "dependencies": [
120
+ "compile",
121
+ "lint"
122
+ ]
123
+ },
124
+ "compile": {
125
+ "command": "tsc -p . --pretty --incremental",
126
+ "files": [
127
+ "src/**/*.ts",
128
+ "**/tsconfig.json",
129
+ "messages/**"
130
+ ],
131
+ "output": [
132
+ "lib/**",
133
+ "*.tsbuildinfo"
134
+ ],
135
+ "clean": "if-file-deleted"
136
+ },
137
+ "format": {
138
+ "command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
139
+ "files": [
140
+ "src/**/*.ts",
141
+ "test/**/*.ts",
142
+ "schemas/**/*.json",
143
+ "command-snapshot.json",
144
+ ".prettier*"
145
+ ],
146
+ "output": []
147
+ },
148
+ "lint": {
149
+ "command": "eslint src test --color --cache --cache-location .eslintcache",
150
+ "files": [
151
+ "src/**/*.ts",
152
+ "test/**/*.ts",
153
+ "messages/**",
154
+ "**/.eslint*",
155
+ "**/tsconfig.json"
156
+ ],
157
+ "output": []
158
+ },
159
+ "test:compile": {
160
+ "command": "tsc -p \"./test\" --pretty",
161
+ "files": [
162
+ "test/**/*.ts",
163
+ "**/tsconfig.json"
164
+ ],
165
+ "output": []
166
+ },
167
+ "test": {
168
+ "dependencies": [
169
+ "test:compile",
170
+ "test:only",
171
+ "test:command-reference",
172
+ "test:deprecation-policy",
173
+ "lint",
174
+ "test:json-schema"
175
+ ]
176
+ },
177
+ "test:only": {
178
+ "command": "nyc mocha \"test/**/*.test.ts\"",
179
+ "env": {
180
+ "FORCE_COLOR": "2"
181
+ },
182
+ "files": [
183
+ "test/**/*.ts",
184
+ "src/**/*.ts",
185
+ "**/tsconfig.json",
186
+ ".mocha*",
187
+ "!*.nut.ts",
188
+ ".nycrc"
189
+ ],
190
+ "output": []
191
+ },
192
+ "test:command-reference": {
193
+ "command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
194
+ "files": [
195
+ "src/**/*.ts",
196
+ "messages/**",
197
+ "package.json"
198
+ ],
199
+ "output": [
200
+ "tmp/root"
201
+ ]
202
+ },
203
+ "test:deprecation-policy": {
204
+ "command": "\"./bin/dev\" snapshot:compare",
205
+ "files": [
206
+ "src/**/*.ts"
207
+ ],
208
+ "output": [],
209
+ "dependencies": [
210
+ "compile"
211
+ ]
212
+ },
213
+ "test:json-schema": {
214
+ "command": "\"./bin/dev\" schema:compare",
215
+ "files": [
216
+ "src/**/*.ts",
217
+ "schemas"
218
+ ],
219
+ "output": []
220
+ }
221
+ },
222
+ "sfdx": {
223
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/1.0.0-beta.3.crt",
224
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/1.0.0-beta.3.sig"
93
225
  }
94
- },
95
- "repository": "salesforcecli/plugin-devops-center",
96
- "scripts": {
97
- "build": "sf-build",
98
- "clean": "sf-clean",
99
- "clean-all": "sf-clean all",
100
- "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
101
- "compile": "sf-compile",
102
- "docs": "sf-docs",
103
- "format": "sf-format",
104
- "lint": "sf-lint",
105
- "postpack": "shx rm -f oclif.manifest.json",
106
- "posttest": "yarn lint && yarn test:deprecation-policy && yarn test:json-schema && yarn test:command-reference",
107
- "prepack": "sf-prepack",
108
- "prepare": "sf-install",
109
- "pretest": "sf-compile-test",
110
- "test": "sf-test",
111
- "test:command-reference": "./bin/dev commandreference:generate --erroronwarnings",
112
- "test:deprecation-policy": "./bin/dev snapshot:compare",
113
- "test:json-schema": "./bin/dev schema:compare",
114
- "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
115
- "version": "oclif readme"
116
- },
117
- "publishConfig": {
118
- "access": "public"
119
- }
120
- }
226
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AsyncOperationResultJson",
4
+ "definitions": {
5
+ "AsyncOperationResultJson": {
6
+ "type": "object",
7
+ "properties": {
8
+ "jobId": {
9
+ "type": "string"
10
+ },
11
+ "status": {
12
+ "type": "string"
13
+ },
14
+ "message": {
15
+ "type": "string"
16
+ },
17
+ "errorDetails": {
18
+ "type": "string"
19
+ }
20
+ },
21
+ "required": ["jobId", "status", "message", "errorDetails"],
22
+ "additionalProperties": false
23
+ }
24
+ }
25
+ }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$ref": "#/definitions/PromotePipelineResult",
3
+ "$ref": "#/definitions/AsyncOperationResultJson",
4
4
  "definitions": {
5
- "PromotePipelineResult": {
5
+ "AsyncOperationResultJson": {
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "jobId": {
@@ -18,7 +18,7 @@
18
18
  "type": "string"
19
19
  }
20
20
  },
21
- "required": ["jobId"],
21
+ "required": ["jobId", "status", "message", "errorDetails"],
22
22
  "additionalProperties": false
23
23
  }
24
24
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$ref": "#/definitions/PromotePipelineResult",
3
+ "$ref": "#/definitions/AsyncOperationResultJson",
4
4
  "definitions": {
5
- "PromotePipelineResult": {
5
+ "AsyncOperationResultJson": {
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "jobId": {
@@ -18,7 +18,7 @@
18
18
  "type": "string"
19
19
  }
20
20
  },
21
- "required": ["jobId"],
21
+ "required": ["jobId", "status", "message", "errorDetails"],
22
22
  "additionalProperties": false
23
23
  }
24
24
  }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AsyncOperationResultJson",
4
+ "definitions": {
5
+ "AsyncOperationResultJson": {
6
+ "type": "object",
7
+ "properties": {
8
+ "jobId": {
9
+ "type": "string"
10
+ },
11
+ "status": {
12
+ "type": "string"
13
+ },
14
+ "message": {
15
+ "type": "string"
16
+ },
17
+ "errorDetails": {
18
+ "type": "string"
19
+ }
20
+ },
21
+ "required": ["jobId", "status", "message", "errorDetails"],
22
+ "additionalProperties": false
23
+ }
24
+ }
25
+ }