@salesforce/plugin-devops-center 1.2.27 → 1.3.0

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 (241) hide show
  1. package/LICENSE.txt +200 -6
  2. package/README.md +515 -19
  3. package/bin/dev.js +15 -0
  4. package/bin/run.js +5 -0
  5. package/lib/commands/devops/pipeline/activate.d.ts +14 -0
  6. package/lib/commands/devops/pipeline/activate.js +82 -0
  7. package/lib/commands/devops/pipeline/activate.js.map +1 -0
  8. package/lib/commands/devops/pipeline/attach-project.d.ts +15 -0
  9. package/lib/commands/devops/pipeline/attach-project.js +82 -0
  10. package/lib/commands/devops/pipeline/attach-project.js.map +1 -0
  11. package/lib/commands/devops/pipeline/create.d.ts +23 -0
  12. package/lib/commands/devops/pipeline/create.js +136 -0
  13. package/lib/commands/devops/pipeline/create.js.map +1 -0
  14. package/lib/commands/devops/pipeline/stage/add.d.ts +16 -0
  15. package/lib/commands/devops/pipeline/stage/add.js +94 -0
  16. package/lib/commands/devops/pipeline/stage/add.js.map +1 -0
  17. package/lib/commands/devops/project/create.d.ts +15 -0
  18. package/lib/commands/devops/project/create.js +72 -0
  19. package/lib/commands/devops/project/create.js.map +1 -0
  20. package/lib/commands/devops/project/list.d.ts +20 -0
  21. package/lib/commands/devops/project/list.js +59 -0
  22. package/lib/commands/devops/project/list.js.map +1 -0
  23. package/lib/commands/devops/pull-request/create.d.ts +17 -0
  24. package/lib/commands/devops/pull-request/create.js +104 -0
  25. package/lib/commands/devops/pull-request/create.js.map +1 -0
  26. package/lib/commands/devops/stage/add-branch.d.ts +17 -0
  27. package/lib/commands/devops/stage/add-branch.js +110 -0
  28. package/lib/commands/devops/stage/add-branch.js.map +1 -0
  29. package/lib/commands/devops/stage/add-environment.d.ts +18 -0
  30. package/lib/commands/devops/stage/add-environment.js +136 -0
  31. package/lib/commands/devops/stage/add-environment.js.map +1 -0
  32. package/lib/commands/devops/work-item/create.d.ts +16 -0
  33. package/lib/commands/devops/work-item/create.js +76 -0
  34. package/lib/commands/devops/work-item/create.js.map +1 -0
  35. package/lib/commands/devops/work-item/list.d.ts +17 -0
  36. package/lib/commands/devops/work-item/list.js +72 -0
  37. package/lib/commands/devops/work-item/list.js.map +1 -0
  38. package/lib/commands/devops/work-item/status/update.d.ts +16 -0
  39. package/lib/commands/devops/work-item/status/update.js +90 -0
  40. package/lib/commands/devops/work-item/status/update.js.map +1 -0
  41. package/lib/commands/project/deploy/pipeline/quick.d.ts +2 -2
  42. package/lib/commands/project/deploy/pipeline/quick.js +24 -21
  43. package/lib/commands/project/deploy/pipeline/quick.js.map +1 -1
  44. package/lib/commands/project/deploy/pipeline/report.d.ts +4 -4
  45. package/lib/commands/project/deploy/pipeline/report.js +38 -35
  46. package/lib/commands/project/deploy/pipeline/report.js.map +1 -1
  47. package/lib/commands/project/deploy/pipeline/resume.d.ts +2 -2
  48. package/lib/commands/project/deploy/pipeline/resume.js +24 -21
  49. package/lib/commands/project/deploy/pipeline/resume.js.map +1 -1
  50. package/lib/commands/project/deploy/pipeline/start.d.ts +3 -3
  51. package/lib/commands/project/deploy/pipeline/start.js +26 -23
  52. package/lib/commands/project/deploy/pipeline/start.js.map +1 -1
  53. package/lib/commands/project/deploy/pipeline/validate.d.ts +3 -3
  54. package/lib/commands/project/deploy/pipeline/validate.js +24 -21
  55. package/lib/commands/project/deploy/pipeline/validate.js.map +1 -1
  56. package/lib/common/base/abstractAsyncOperation.d.ts +3 -3
  57. package/lib/common/base/abstractAsyncOperation.js +31 -23
  58. package/lib/common/base/abstractAsyncOperation.js.map +1 -1
  59. package/lib/common/base/abstractPromote.d.ts +5 -4
  60. package/lib/common/base/abstractPromote.js +52 -38
  61. package/lib/common/base/abstractPromote.js.map +1 -1
  62. package/lib/common/base/abstractQuick.d.ts +4 -3
  63. package/lib/common/base/abstractQuick.js +44 -43
  64. package/lib/common/base/abstractQuick.js.map +1 -1
  65. package/lib/common/base/abstractReportOnPromote.d.ts +2 -1
  66. package/lib/common/base/abstractReportOnPromote.js +31 -24
  67. package/lib/common/base/abstractReportOnPromote.js.map +1 -1
  68. package/lib/common/base/abstractResume.d.ts +3 -2
  69. package/lib/common/base/abstractResume.js +40 -33
  70. package/lib/common/base/abstractResume.js.map +1 -1
  71. package/lib/common/constants.js +19 -13
  72. package/lib/common/constants.js.map +1 -1
  73. package/lib/common/deployPipelineCache.js +20 -15
  74. package/lib/common/deployPipelineCache.js.map +1 -1
  75. package/lib/common/flags/flags.d.ts +2 -2
  76. package/lib/common/flags/flags.js +34 -29
  77. package/lib/common/flags/flags.js.map +1 -1
  78. package/lib/common/flags/promote/promoteFlags.d.ts +3 -3
  79. package/lib/common/flags/promote/promoteFlags.js +26 -20
  80. package/lib/common/flags/promote/promoteFlags.js.map +1 -1
  81. package/lib/common/index.d.ts +3 -2
  82. package/lib/common/index.js +2 -17
  83. package/lib/common/index.js.map +1 -1
  84. package/lib/common/outputColumns.d.ts +3 -13
  85. package/lib/common/outputColumns.js +23 -19
  86. package/lib/common/outputColumns.js.map +1 -1
  87. package/lib/common/outputService/aorOutputService.d.ts +4 -4
  88. package/lib/common/outputService/aorOutputService.js +27 -20
  89. package/lib/common/outputService/aorOutputService.js.map +1 -1
  90. package/lib/common/outputService/deployCommandOutputService.d.ts +2 -2
  91. package/lib/common/outputService/deployCommandOutputService.js +17 -12
  92. package/lib/common/outputService/deployCommandOutputService.js.map +1 -1
  93. package/lib/common/outputService/deploySummaryBuilder.d.ts +1 -1
  94. package/lib/common/outputService/deploySummaryBuilder.js +45 -31
  95. package/lib/common/outputService/deploySummaryBuilder.js.map +1 -1
  96. package/lib/common/outputService/deploymentResultOutputService.d.ts +4 -4
  97. package/lib/common/outputService/deploymentResultOutputService.js +16 -10
  98. package/lib/common/outputService/deploymentResultOutputService.js.map +1 -1
  99. package/lib/common/outputService/index.d.ts +8 -6
  100. package/lib/common/outputService/index.js +5 -19
  101. package/lib/common/outputService/index.js.map +1 -1
  102. package/lib/common/outputService/outputService.d.ts +6 -4
  103. package/lib/common/outputService/outputService.js +20 -14
  104. package/lib/common/outputService/outputService.js.map +1 -1
  105. package/lib/common/outputService/outputServiceFactory.d.ts +8 -8
  106. package/lib/common/outputService/outputServiceFactory.js +21 -16
  107. package/lib/common/outputService/outputServiceFactory.js.map +1 -1
  108. package/lib/common/outputService/outputUtils.d.ts +1 -1
  109. package/lib/common/outputService/outputUtils.js +24 -19
  110. package/lib/common/outputService/outputUtils.js.map +1 -1
  111. package/lib/common/outputService/promoteOutputService.d.ts +4 -5
  112. package/lib/common/outputService/promoteOutputService.js +19 -13
  113. package/lib/common/outputService/promoteOutputService.js.map +1 -1
  114. package/lib/common/outputService/reportOutputService.d.ts +5 -6
  115. package/lib/common/outputService/reportOutputService.js +32 -27
  116. package/lib/common/outputService/reportOutputService.js.map +1 -1
  117. package/lib/common/outputService/resumeCommandOutputService.d.ts +3 -3
  118. package/lib/common/outputService/resumeCommandOutputService.js +19 -13
  119. package/lib/common/outputService/resumeCommandOutputService.js.map +1 -1
  120. package/lib/common/outputService/resumeOutputService.d.ts +3 -3
  121. package/lib/common/outputService/resumeOutputService.js +23 -17
  122. package/lib/common/outputService/resumeOutputService.js.map +1 -1
  123. package/lib/common/selectors/asyncOperationResultsSelector.d.ts +1 -1
  124. package/lib/common/selectors/asyncOperationResultsSelector.js +16 -10
  125. package/lib/common/selectors/asyncOperationResultsSelector.js.map +1 -1
  126. package/lib/common/selectors/deployComponentsSelector.d.ts +1 -1
  127. package/lib/common/selectors/deployComponentsSelector.js +18 -13
  128. package/lib/common/selectors/deployComponentsSelector.js.map +1 -1
  129. package/lib/common/selectors/deployProgressSummarySelector.d.ts +2 -2
  130. package/lib/common/selectors/deployProgressSummarySelector.js +16 -10
  131. package/lib/common/selectors/deployProgressSummarySelector.js.map +1 -1
  132. package/lib/common/selectors/deploymentResultsSelector.d.ts +2 -2
  133. package/lib/common/selectors/deploymentResultsSelector.js +20 -16
  134. package/lib/common/selectors/deploymentResultsSelector.js.map +1 -1
  135. package/lib/common/selectors/environmentSelector.d.ts +2 -2
  136. package/lib/common/selectors/environmentSelector.js +16 -10
  137. package/lib/common/selectors/environmentSelector.js.map +1 -1
  138. package/lib/common/selectors/namedCredentialSelector.d.ts +1 -1
  139. package/lib/common/selectors/namedCredentialSelector.js +16 -10
  140. package/lib/common/selectors/namedCredentialSelector.js.map +1 -1
  141. package/lib/common/selectors/pipelineStageSelector.d.ts +1 -1
  142. package/lib/common/selectors/pipelineStageSelector.js +18 -13
  143. package/lib/common/selectors/pipelineStageSelector.js.map +1 -1
  144. package/lib/common/selectors/selectorUtils.d.ts +1 -1
  145. package/lib/common/selectors/selectorUtils.js +17 -11
  146. package/lib/common/selectors/selectorUtils.js.map +1 -1
  147. package/lib/common/selectors/validateDeploySelector.d.ts +1 -1
  148. package/lib/common/selectors/validateDeploySelector.js +16 -10
  149. package/lib/common/selectors/validateDeploySelector.js.map +1 -1
  150. package/lib/common/selectors/workItemSelector.d.ts +2 -2
  151. package/lib/common/selectors/workItemSelector.js +16 -10
  152. package/lib/common/selectors/workItemSelector.js.map +1 -1
  153. package/lib/common/types.d.ts +4 -4
  154. package/lib/common/types.js +4 -7
  155. package/lib/common/types.js.map +1 -1
  156. package/lib/common/utils.d.ts +4 -4
  157. package/lib/common/utils.js +42 -43
  158. package/lib/common/utils.js.map +1 -1
  159. package/lib/configMeta.js +21 -15
  160. package/lib/configMeta.js.map +1 -1
  161. package/lib/streamer/doceMonitor.d.ts +3 -2
  162. package/lib/streamer/doceMonitor.js +14 -6
  163. package/lib/streamer/doceMonitor.js.map +1 -1
  164. package/lib/streamer/doceStream.d.ts +1 -1
  165. package/lib/streamer/doceStream.js +19 -11
  166. package/lib/streamer/doceStream.js.map +1 -1
  167. package/lib/streamer/processors/asyncOpStream.d.ts +2 -2
  168. package/lib/streamer/processors/asyncOpStream.js +22 -15
  169. package/lib/streamer/processors/asyncOpStream.js.map +1 -1
  170. package/lib/streamer/sObjectStream.d.ts +1 -1
  171. package/lib/streamer/sObjectStream.js +9 -10
  172. package/lib/streamer/sObjectStream.js.map +1 -1
  173. package/lib/utils/activatePipeline.d.ts +17 -0
  174. package/lib/utils/activatePipeline.js +35 -0
  175. package/lib/utils/activatePipeline.js.map +1 -0
  176. package/lib/utils/addPipelineStage.d.ts +20 -0
  177. package/lib/utils/addPipelineStage.js +43 -0
  178. package/lib/utils/addPipelineStage.js.map +1 -0
  179. package/lib/utils/addStageBranch.d.ts +22 -0
  180. package/lib/utils/addStageBranch.js +48 -0
  181. package/lib/utils/addStageBranch.js.map +1 -0
  182. package/lib/utils/addStageEnvironment.d.ts +92 -0
  183. package/lib/utils/addStageEnvironment.js +120 -0
  184. package/lib/utils/addStageEnvironment.js.map +1 -0
  185. package/lib/utils/attachProject.d.ts +21 -0
  186. package/lib/utils/attachProject.js +44 -0
  187. package/lib/utils/attachProject.js.map +1 -0
  188. package/lib/utils/createPipeline.d.ts +34 -0
  189. package/lib/utils/createPipeline.js +77 -0
  190. package/lib/utils/createPipeline.js.map +1 -0
  191. package/lib/utils/createProject.d.ts +17 -0
  192. package/lib/utils/createProject.js +39 -0
  193. package/lib/utils/createProject.js.map +1 -0
  194. package/lib/utils/createPullRequest.d.ts +49 -0
  195. package/lib/utils/createPullRequest.js +204 -0
  196. package/lib/utils/createPullRequest.js.map +1 -0
  197. package/lib/utils/createWorkItem.d.ts +19 -0
  198. package/lib/utils/createWorkItem.js +58 -0
  199. package/lib/utils/createWorkItem.js.map +1 -0
  200. package/lib/utils/pipelineUtils.d.ts +8 -0
  201. package/lib/utils/pipelineUtils.js +51 -0
  202. package/lib/utils/pipelineUtils.js.map +1 -0
  203. package/lib/utils/types.d.ts +57 -0
  204. package/lib/utils/types.js +17 -0
  205. package/lib/utils/types.js.map +1 -0
  206. package/lib/utils/updateWorkItemStatus.d.ts +34 -0
  207. package/lib/utils/updateWorkItemStatus.js +71 -0
  208. package/lib/utils/updateWorkItemStatus.js.map +1 -0
  209. package/lib/utils/workItems.d.ts +3 -0
  210. package/lib/utils/workItems.js +181 -0
  211. package/lib/utils/workItems.js.map +1 -0
  212. package/messages/commonErrors.md +5 -1
  213. package/messages/devops.pipeline.activate.md +29 -0
  214. package/messages/devops.pipeline.attach-project.md +29 -0
  215. package/messages/devops.pipeline.create.md +81 -0
  216. package/messages/devops.pipeline.stage.add.md +37 -0
  217. package/messages/devops.project.create.md +29 -0
  218. package/messages/devops.project.list.md +17 -0
  219. package/messages/devops.pull-request.create.md +57 -0
  220. package/messages/devops.stage.add-branch.md +46 -0
  221. package/messages/devops.stage.add-environment.md +61 -0
  222. package/messages/devops.work-item.create.md +29 -0
  223. package/messages/devops.work-item.list.md +21 -0
  224. package/messages/devops.work-item.status.update.md +29 -0
  225. package/npm-shrinkwrap.json +4197 -4471
  226. package/oclif.lock +3380 -3272
  227. package/oclif.manifest.json +1056 -11
  228. package/package.json +53 -23
  229. package/schemas/devops-pipeline-activate.json +28 -0
  230. package/schemas/devops-pipeline-attach__project.json +25 -0
  231. package/schemas/devops-pipeline-create.json +50 -0
  232. package/schemas/devops-pipeline-stage-add.json +31 -0
  233. package/schemas/devops-project-create.json +28 -0
  234. package/schemas/devops-project-list.json +35 -0
  235. package/schemas/devops-pull__request-create.json +34 -0
  236. package/schemas/devops-stage-add__branch.json +34 -0
  237. package/schemas/devops-stage-add__environment.json +47 -0
  238. package/schemas/devops-work__item-create.json +28 -0
  239. package/schemas/devops-work__item-list.json +75 -0
  240. package/schemas/devops-work__item-status-update.json +28 -0
  241. package/schemas/project-deploy-pipeline-report.json +2 -2
package/package.json CHANGED
@@ -1,37 +1,38 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-devops-center",
3
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.2.27",
4
+ "version": "1.3.0",
5
+ "type": "module",
5
6
  "author": "Salesforce",
6
7
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
8
  "dependencies": {
8
- "@oclif/core": "^3",
9
- "@salesforce/core": "^6.7.6",
9
+ "@jsforce/jsforce-node": "^3",
10
+ "@oclif/core": "^4",
11
+ "@salesforce/core": "^8.2.7",
10
12
  "@salesforce/kit": "^3.2.3",
11
- "@salesforce/sf-plugins-core": "^5.0.1",
12
- "@salesforce/ts-types": "^2.0.10",
13
- "chalk": "^4",
14
- "jsforce": "^2.0.0-beta.29",
15
- "tslib": "^2"
13
+ "@salesforce/sf-plugins-core": "^12",
14
+ "@salesforce/ts-types": "^2.0.11",
15
+ "chalk": "^5"
16
16
  },
17
17
  "devDependencies": {
18
- "@oclif/plugin-command-snapshot": "^5",
18
+ "@oclif/plugin-command-snapshot": "^5.2.3",
19
19
  "@oclif/test": "^3",
20
- "@salesforce/cli-plugins-testkit": "^5",
21
- "@salesforce/dev-scripts": "^8",
22
- "@salesforce/plugin-command-reference": "^3.1.37",
20
+ "@salesforce/cli-plugins-testkit": "^5.3.20",
21
+ "@salesforce/dev-scripts": "^11",
22
+ "@salesforce/plugin-command-reference": "^3.1.38",
23
23
  "@salesforce/ts-sinon": "^1.4.30",
24
- "@swc/cli": "^0.5.2",
25
- "@swc/core": "^1.10.1",
26
24
  "eslint-plugin-sf-plugin": "^1.20.13",
25
+ "esmock": "^2.7.6",
27
26
  "oclif": "^4",
28
- "ts-node": "^10.9.2",
27
+ "tsx": "^4",
29
28
  "typescript": "^5.7.2"
30
29
  },
31
30
  "engines": {
32
- "node": ">=16.0.0"
31
+ "node": ">=18.0.0"
33
32
  },
34
33
  "files": [
34
+ "/bin/dev.js",
35
+ "/bin/run.js",
35
36
  "/lib",
36
37
  "/messages",
37
38
  "/npm-shrinkwrap.json",
@@ -49,7 +50,7 @@
49
50
  "sf-plugin",
50
51
  "sf"
51
52
  ],
52
- "license": "BSD-3-Clause",
53
+ "license": "Apache-2.0",
53
54
  "main": "lib/index.js",
54
55
  "oclif": {
55
56
  "commands": "./lib/commands",
@@ -74,6 +75,33 @@
74
75
  }
75
76
  }
76
77
  }
78
+ },
79
+ "devops": {
80
+ "description": "Commands for DevOps and Application Lifecycle Management.",
81
+ "subtopics": {
82
+ "project": {
83
+ "description": "Commands for managing DevOps Center projects."
84
+ },
85
+ "work-item": {
86
+ "description": "Commands for managing DevOps Center work items.",
87
+ "subtopics": {
88
+ "status": {
89
+ "description": "Commands for managing DevOps Center work item statuses."
90
+ }
91
+ }
92
+ },
93
+ "pull-request": {
94
+ "description": "Commands for managing DevOps Center pull requests."
95
+ },
96
+ "pipeline": {
97
+ "description": "Commands for managing DevOps Center pipelines.",
98
+ "subtopics": {
99
+ "stage": {
100
+ "description": "Commands for managing pipeline stages."
101
+ }
102
+ }
103
+ }
104
+ }
77
105
  }
78
106
  }
79
107
  },
@@ -84,6 +112,7 @@
84
112
  "clean-all": "sf-clean all",
85
113
  "compile": "wireit",
86
114
  "docs": "sf-docs",
115
+ "fix-license": "eslint src test --fix --rule \"header/header: [2]\"",
87
116
  "format": "wireit",
88
117
  "link-check": "wireit",
89
118
  "lint": "wireit",
@@ -95,6 +124,7 @@
95
124
  "test:only": "wireit",
96
125
  "version": "oclif readme"
97
126
  },
127
+ "exports": "./lib/index.js",
98
128
  "publishConfig": {
99
129
  "access": "public"
100
130
  },
@@ -175,7 +205,7 @@
175
205
  "output": []
176
206
  },
177
207
  "test:command-reference": {
178
- "command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
208
+ "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" commandreference:generate --erroronwarnings",
179
209
  "files": [
180
210
  "src/**/*.ts",
181
211
  "messages/**",
@@ -186,7 +216,7 @@
186
216
  ]
187
217
  },
188
218
  "test:deprecation-policy": {
189
- "command": "\"./bin/dev\" snapshot:compare",
219
+ "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" snapshot:compare",
190
220
  "files": [
191
221
  "src/**/*.ts"
192
222
  ],
@@ -196,7 +226,7 @@
196
226
  ]
197
227
  },
198
228
  "test:json-schema": {
199
- "command": "\"./bin/dev\" schema:compare",
229
+ "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" schema:compare",
200
230
  "files": [
201
231
  "src/**/*.ts",
202
232
  "schemas"
@@ -204,7 +234,7 @@
204
234
  "output": []
205
235
  },
206
236
  "link-check": {
207
- "command": "node -e \"process.exit(process.env.CI ? 0 : 1)\" || linkinator \"**/*.md\" --skip \"CHANGELOG.md|node_modules|test/|confluence.internal.salesforce.com|my.salesforce.com|%s\" --markdown --retry --directory-listing --verbosity error",
237
+ "command": "node -e \"process.exit(process.env.CI ? 0 : 1)\" || linkinator \"**/*.md\" --skip \"CHANGELOG.md|node_modules|test/|confluence.internal.salesforce.com|my.salesforce.com|localhost|%s\" --markdown --retry --directory-listing --verbosity error",
208
238
  "files": [
209
239
  "./*.md",
210
240
  "./!(CHANGELOG).md",
@@ -214,7 +244,7 @@
214
244
  }
215
245
  },
216
246
  "sfdx": {
217
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/1.2.27.crt",
218
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/1.2.27.sig"
247
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/1.3.0.crt",
248
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/1.3.0.sig"
219
249
  }
220
250
  }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/ActivatePipelineResult",
4
+ "definitions": {
5
+ "ActivatePipelineResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "success": {
9
+ "type": "boolean"
10
+ },
11
+ "pipelineId": {
12
+ "type": "string"
13
+ },
14
+ "status": {
15
+ "type": "string"
16
+ },
17
+ "stageCount": {
18
+ "type": "number"
19
+ },
20
+ "error": {
21
+ "type": "string"
22
+ }
23
+ },
24
+ "required": ["success", "pipelineId"],
25
+ "additionalProperties": false
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AttachProjectResult",
4
+ "definitions": {
5
+ "AttachProjectResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "success": {
9
+ "type": "boolean"
10
+ },
11
+ "projectId": {
12
+ "type": "string"
13
+ },
14
+ "pipelineId": {
15
+ "type": "string"
16
+ },
17
+ "error": {
18
+ "type": "string"
19
+ }
20
+ },
21
+ "required": ["success", "projectId", "pipelineId"],
22
+ "additionalProperties": false
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/CreatePipelineResult",
4
+ "definitions": {
5
+ "CreatePipelineResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "success": {
9
+ "type": "boolean"
10
+ },
11
+ "pipelineId": {
12
+ "type": "string"
13
+ },
14
+ "name": {
15
+ "type": "string"
16
+ },
17
+ "description": {
18
+ "type": "string"
19
+ },
20
+ "status": {
21
+ "type": "string"
22
+ },
23
+ "repository": {
24
+ "$ref": "#/definitions/RepoInfo"
25
+ },
26
+ "error": {
27
+ "type": "string"
28
+ }
29
+ },
30
+ "required": ["success"],
31
+ "additionalProperties": false
32
+ },
33
+ "RepoInfo": {
34
+ "type": "object",
35
+ "properties": {
36
+ "repoUrl": {
37
+ "type": "string"
38
+ },
39
+ "repoType": {
40
+ "type": "string"
41
+ },
42
+ "created": {
43
+ "type": "boolean"
44
+ }
45
+ },
46
+ "required": ["repoUrl", "repoType", "created"],
47
+ "additionalProperties": false
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AddPipelineStageResult",
4
+ "definitions": {
5
+ "AddPipelineStageResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "success": {
9
+ "type": "boolean"
10
+ },
11
+ "stageId": {
12
+ "type": "string"
13
+ },
14
+ "name": {
15
+ "type": "string"
16
+ },
17
+ "nextStageId": {
18
+ "type": "string"
19
+ },
20
+ "pipelineId": {
21
+ "type": "string"
22
+ },
23
+ "error": {
24
+ "type": "string"
25
+ }
26
+ },
27
+ "required": ["success"],
28
+ "additionalProperties": false
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/CreateProjectResult",
4
+ "definitions": {
5
+ "CreateProjectResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "success": {
9
+ "type": "boolean"
10
+ },
11
+ "projectId": {
12
+ "type": "string"
13
+ },
14
+ "name": {
15
+ "type": "string"
16
+ },
17
+ "description": {
18
+ "type": "string"
19
+ },
20
+ "error": {
21
+ "type": "string"
22
+ }
23
+ },
24
+ "required": ["success"],
25
+ "additionalProperties": false
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/DevopsProjectListResult",
4
+ "definitions": {
5
+ "DevopsProjectListResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "projects": {
9
+ "type": "array",
10
+ "items": {
11
+ "$ref": "#/definitions/DevopsProject"
12
+ }
13
+ }
14
+ },
15
+ "required": ["projects"],
16
+ "additionalProperties": false
17
+ },
18
+ "DevopsProject": {
19
+ "type": "object",
20
+ "properties": {
21
+ "Id": {
22
+ "type": "string"
23
+ },
24
+ "Name": {
25
+ "type": "string"
26
+ },
27
+ "Description": {
28
+ "type": ["string", "null"]
29
+ }
30
+ },
31
+ "required": ["Id", "Name", "Description"],
32
+ "additionalProperties": false
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/CreatePullRequestResult",
4
+ "definitions": {
5
+ "CreatePullRequestResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "success": {
9
+ "type": "boolean"
10
+ },
11
+ "workItemName": {
12
+ "type": "string"
13
+ },
14
+ "title": {
15
+ "type": "string"
16
+ },
17
+ "url": {
18
+ "type": "string"
19
+ },
20
+ "sourceBranch": {
21
+ "type": "string"
22
+ },
23
+ "targetBranch": {
24
+ "type": "string"
25
+ },
26
+ "error": {
27
+ "type": "string"
28
+ }
29
+ },
30
+ "required": ["success"],
31
+ "additionalProperties": false
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AddStageBranchResult",
4
+ "definitions": {
5
+ "AddStageBranchResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "success": {
9
+ "type": "boolean"
10
+ },
11
+ "stageId": {
12
+ "type": "string"
13
+ },
14
+ "branchName": {
15
+ "type": "string"
16
+ },
17
+ "branchCreated": {
18
+ "type": "boolean"
19
+ },
20
+ "repoBranchId": {
21
+ "type": "string"
22
+ },
23
+ "pipelineId": {
24
+ "type": "string"
25
+ },
26
+ "error": {
27
+ "type": "string"
28
+ }
29
+ },
30
+ "required": ["success", "stageId"],
31
+ "additionalProperties": false
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AddStageEnvironmentResult",
4
+ "definitions": {
5
+ "AddStageEnvironmentResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "success": {
9
+ "type": "boolean"
10
+ },
11
+ "stageId": {
12
+ "type": "string"
13
+ },
14
+ "environmentId": {
15
+ "type": "string"
16
+ },
17
+ "environmentName": {
18
+ "type": "string"
19
+ },
20
+ "orgType": {
21
+ "$ref": "#/definitions/OrgType"
22
+ },
23
+ "pipelineId": {
24
+ "type": "string"
25
+ },
26
+ "redirectUrl": {
27
+ "type": "string"
28
+ },
29
+ "namedCredential": {
30
+ "type": "string"
31
+ },
32
+ "organizationId": {
33
+ "type": "string"
34
+ },
35
+ "error": {
36
+ "type": "string"
37
+ }
38
+ },
39
+ "required": ["success", "stageId"],
40
+ "additionalProperties": false
41
+ },
42
+ "OrgType": {
43
+ "type": "string",
44
+ "enum": ["Production", "Sandbox"]
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/CreateWorkItemResult",
4
+ "definitions": {
5
+ "CreateWorkItemResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "success": {
9
+ "type": "boolean"
10
+ },
11
+ "workItemId": {
12
+ "type": "string"
13
+ },
14
+ "workItemName": {
15
+ "type": "string"
16
+ },
17
+ "subject": {
18
+ "type": "string"
19
+ },
20
+ "error": {
21
+ "type": "string"
22
+ }
23
+ },
24
+ "required": ["success"],
25
+ "additionalProperties": false
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,75 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/DevopsWorkItemListResult",
4
+ "definitions": {
5
+ "DevopsWorkItemListResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "workItems": {
9
+ "type": "array",
10
+ "items": {
11
+ "$ref": "#/definitions/WorkItem"
12
+ }
13
+ }
14
+ },
15
+ "required": ["workItems"],
16
+ "additionalProperties": false
17
+ },
18
+ "WorkItem": {
19
+ "type": "object",
20
+ "properties": {
21
+ "id": {
22
+ "type": "string"
23
+ },
24
+ "name": {
25
+ "type": "string"
26
+ },
27
+ "subject": {
28
+ "type": "string"
29
+ },
30
+ "description": {
31
+ "type": "string"
32
+ },
33
+ "status": {
34
+ "type": "string"
35
+ },
36
+ "owner": {
37
+ "type": "string"
38
+ },
39
+ "DevopsProjectId": {
40
+ "type": "string"
41
+ },
42
+ "PipelineId": {
43
+ "type": "string"
44
+ },
45
+ "PipelineStageId": {
46
+ "type": "string"
47
+ },
48
+ "SourceCodeRepository": {
49
+ "type": "object",
50
+ "properties": {
51
+ "repoUrl": {
52
+ "type": "string"
53
+ },
54
+ "repoType": {
55
+ "type": "string"
56
+ }
57
+ },
58
+ "required": ["repoUrl", "repoType"],
59
+ "additionalProperties": false
60
+ },
61
+ "WorkItemBranch": {
62
+ "type": "string"
63
+ },
64
+ "TargetStageId": {
65
+ "type": "string"
66
+ },
67
+ "TargetBranch": {
68
+ "type": "string"
69
+ }
70
+ },
71
+ "required": ["id", "name", "status", "owner", "DevopsProjectId"],
72
+ "additionalProperties": false
73
+ }
74
+ }
75
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/UpdateWorkItemStatusResult",
4
+ "definitions": {
5
+ "UpdateWorkItemStatusResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "success": {
9
+ "type": "boolean"
10
+ },
11
+ "workItemId": {
12
+ "type": "string"
13
+ },
14
+ "workItemName": {
15
+ "type": "string"
16
+ },
17
+ "status": {
18
+ "type": "string"
19
+ },
20
+ "error": {
21
+ "type": "string"
22
+ }
23
+ },
24
+ "required": ["success", "workItemId"],
25
+ "additionalProperties": false
26
+ }
27
+ }
28
+ }
@@ -4,6 +4,7 @@
4
4
  "definitions": {
5
5
  "PromotePipelineResult": {
6
6
  "type": "object",
7
+ "additionalProperties": false,
7
8
  "properties": {
8
9
  "jobId": {
9
10
  "type": "string"
@@ -18,8 +19,7 @@
18
19
  "type": "string"
19
20
  }
20
21
  },
21
- "required": ["jobId"],
22
- "additionalProperties": false
22
+ "required": ["jobId"]
23
23
  }
24
24
  }
25
25
  }