@salesforce/plugin-devops-center 1.4.1 → 2.0.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.
Files changed (51) hide show
  1. package/README.md +150 -31
  2. package/lib/commands/devops/pipeline/stage/update.d.ts +19 -0
  3. package/lib/commands/devops/pipeline/stage/update.js +66 -0
  4. package/lib/commands/devops/pipeline/stage/update.js.map +1 -0
  5. package/lib/commands/devops/promote.d.ts +5 -0
  6. package/lib/commands/devops/promote.js +49 -3
  7. package/lib/commands/devops/promote.js.map +1 -1
  8. package/lib/commands/devops/promotion/complete.d.ts +1 -1
  9. package/lib/commands/devops/promotion/complete.js +1 -1
  10. package/lib/commands/devops/promotion/complete.js.map +1 -1
  11. package/lib/commands/devops/promotion/validate.d.ts +21 -0
  12. package/lib/commands/devops/promotion/validate.js +137 -0
  13. package/lib/commands/devops/promotion/validate.js.map +1 -0
  14. package/lib/commands/devops/stage/branch/delete.d.ts +15 -0
  15. package/lib/commands/devops/stage/branch/delete.js +107 -0
  16. package/lib/commands/devops/stage/branch/delete.js.map +1 -0
  17. package/lib/commands/devops/work-item/prepare.js +0 -3
  18. package/lib/commands/devops/work-item/prepare.js.map +1 -1
  19. package/lib/utils/addPipelineStage.js +1 -0
  20. package/lib/utils/addPipelineStage.js.map +1 -1
  21. package/lib/utils/createPipeline.js +24 -12
  22. package/lib/utils/createPipeline.js.map +1 -1
  23. package/lib/utils/deleteStageBranch.d.ts +22 -0
  24. package/lib/utils/deleteStageBranch.js +44 -0
  25. package/lib/utils/deleteStageBranch.js.map +1 -0
  26. package/lib/utils/pipelineUtils.d.ts +9 -0
  27. package/lib/utils/pipelineUtils.js +32 -0
  28. package/lib/utils/pipelineUtils.js.map +1 -1
  29. package/lib/utils/prepareWorkItem.d.ts +1 -1
  30. package/lib/utils/prepareWorkItem.js +4 -5
  31. package/lib/utils/prepareWorkItem.js.map +1 -1
  32. package/lib/utils/{deployStage.d.ts → promotionUtils.d.ts} +24 -0
  33. package/lib/utils/{deployStage.js → promotionUtils.js} +65 -1
  34. package/lib/utils/promotionUtils.js.map +1 -0
  35. package/lib/utils/soqlUtils.d.ts +5 -0
  36. package/lib/utils/soqlUtils.js +7 -0
  37. package/lib/utils/soqlUtils.js.map +1 -1
  38. package/messages/devops.pipeline.stage.update.md +25 -0
  39. package/messages/devops.promote.md +16 -0
  40. package/messages/devops.promotion.complete.md +3 -3
  41. package/messages/devops.promotion.validate.md +64 -0
  42. package/messages/devops.stage.branch.delete.md +37 -0
  43. package/npm-shrinkwrap.json +263 -108
  44. package/oclif.lock +80 -23
  45. package/oclif.manifest.json +398 -160
  46. package/package.json +7 -7
  47. package/schemas/devops-pipeline-stage-update.json +22 -0
  48. package/schemas/devops-promote.json +38 -0
  49. package/schemas/devops-promotion-validate.json +66 -0
  50. package/schemas/devops-stage-branch-delete.json +47 -0
  51. package/lib/utils/deployStage.js.map +0 -1
package/package.json CHANGED
@@ -1,17 +1,17 @@
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.4.1",
4
+ "version": "2.0.1",
5
5
  "type": "module",
6
6
  "author": "Salesforce",
7
7
  "bugs": "https://github.com/forcedotcom/cli/issues",
8
8
  "dependencies": {
9
9
  "@jsforce/jsforce-node": "^3",
10
10
  "@oclif/core": "^4",
11
- "@salesforce/core": "^8.2.7",
12
- "@salesforce/kit": "^3.2.3",
13
- "@salesforce/sf-plugins-core": "^12",
14
- "@salesforce/ts-types": "^2.0.11"
11
+ "@salesforce/core": "^9.0.0",
12
+ "@salesforce/kit": "^4.0.0",
13
+ "@salesforce/sf-plugins-core": "^13.0.0",
14
+ "@salesforce/ts-types": "^3.0.0"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@oclif/plugin-command-snapshot": "^5.2.3",
@@ -256,7 +256,7 @@
256
256
  }
257
257
  },
258
258
  "sfdx": {
259
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/1.4.1.crt",
260
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/1.4.1.sig"
259
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.0.1.crt",
260
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.0.1.sig"
261
261
  }
262
262
  }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/PipelineStageUpdateResult",
4
+ "definitions": {
5
+ "PipelineStageUpdateResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "success": {
9
+ "type": "boolean"
10
+ },
11
+ "stageId": {
12
+ "type": "string"
13
+ },
14
+ "name": {
15
+ "type": "string"
16
+ }
17
+ },
18
+ "required": ["success", "stageId", "name"],
19
+ "additionalProperties": false
20
+ }
21
+ }
22
+ }
@@ -19,10 +19,48 @@
19
19
  "items": {
20
20
  "type": "string"
21
21
  }
22
+ },
23
+ "combineDetails": {
24
+ "anyOf": [
25
+ {
26
+ "$ref": "#/definitions/CombineDetails"
27
+ },
28
+ {
29
+ "type": "null"
30
+ }
31
+ ]
22
32
  }
23
33
  },
24
34
  "required": ["requestId", "status", "message", "promotedWorkitemIds"],
25
35
  "additionalProperties": false
36
+ },
37
+ "CombineDetails": {
38
+ "type": "object",
39
+ "additionalProperties": {},
40
+ "properties": {
41
+ "childWorkitemsId": {
42
+ "type": "array",
43
+ "items": {
44
+ "type": "string"
45
+ }
46
+ },
47
+ "parentWorkitemId": {
48
+ "type": "string"
49
+ },
50
+ "sharedComponentsList": {
51
+ "$ref": "#/definitions/SharedComponentsList"
52
+ }
53
+ }
54
+ },
55
+ "SharedComponentsList": {
56
+ "type": "object",
57
+ "additionalProperties": {
58
+ "type": "array",
59
+ "items": {
60
+ "type": "string"
61
+ }
62
+ },
63
+ "description": "Maps a comma-separated list of work item names to the components they share."
26
64
  }
27
65
  }
28
66
  }
@@ -0,0 +1,66 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/PromotionValidateResult",
4
+ "definitions": {
5
+ "PromotionValidateResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "success": {
9
+ "type": "boolean"
10
+ },
11
+ "errorType": {
12
+ "type": ["string", "null"]
13
+ },
14
+ "errorDetails": {
15
+ "type": ["string", "null"]
16
+ },
17
+ "combineDetails": {
18
+ "anyOf": [
19
+ {
20
+ "$ref": "#/definitions/CombineDetails"
21
+ },
22
+ {
23
+ "type": "null"
24
+ }
25
+ ]
26
+ },
27
+ "suggestions": {
28
+ "type": "array",
29
+ "items": {
30
+ "type": "string"
31
+ }
32
+ }
33
+ },
34
+ "required": ["success", "errorType", "errorDetails", "combineDetails", "suggestions"],
35
+ "additionalProperties": false
36
+ },
37
+ "CombineDetails": {
38
+ "type": "object",
39
+ "additionalProperties": {},
40
+ "properties": {
41
+ "childWorkitemsId": {
42
+ "type": "array",
43
+ "items": {
44
+ "type": "string"
45
+ }
46
+ },
47
+ "parentWorkitemId": {
48
+ "type": "string"
49
+ },
50
+ "sharedComponentsList": {
51
+ "$ref": "#/definitions/SharedComponentsList"
52
+ }
53
+ }
54
+ },
55
+ "SharedComponentsList": {
56
+ "type": "object",
57
+ "additionalProperties": {
58
+ "type": "array",
59
+ "items": {
60
+ "type": "string"
61
+ }
62
+ },
63
+ "description": "Maps a comma-separated list of work item names to the components they share."
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/DeleteStageBranchResult",
4
+ "definitions": {
5
+ "DeleteStageBranchResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "success": {
9
+ "type": "boolean"
10
+ },
11
+ "stageId": {
12
+ "type": "string"
13
+ },
14
+ "branchName": {
15
+ "type": "string"
16
+ },
17
+ "clearedStages": {
18
+ "type": "array",
19
+ "items": {
20
+ "$ref": "#/definitions/ClearedStage"
21
+ }
22
+ },
23
+ "error": {
24
+ "type": "string"
25
+ }
26
+ },
27
+ "required": ["success", "stageId"],
28
+ "additionalProperties": false
29
+ },
30
+ "ClearedStage": {
31
+ "type": "object",
32
+ "properties": {
33
+ "stageId": {
34
+ "type": "string"
35
+ },
36
+ "stageName": {
37
+ "type": "string"
38
+ },
39
+ "branchName": {
40
+ "type": "string"
41
+ }
42
+ },
43
+ "required": ["stageId"],
44
+ "additionalProperties": false
45
+ }
46
+ }
47
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"deployStage.js","sourceRoot":"","sources":["../../src/utils/deployStage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAsCH;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,UAAsB,EACtB,UAAkB,EAClB,OAAe;IAEf,MAAM,IAAI,GAAG,mBAAmB,UAAU,CAAC,aAAa,EAAE,6BAA6B,UAAU,WAAW,OAAO,sBAAsB,CAAC;IAC1I,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,OAAO,CAA8B,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;IACrG,OAAO,EAAE,qBAAqB,EAAE,QAAQ,CAAC,qBAAqB,IAAI,EAAE,EAAE,CAAC;AACzE,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,UAAsB,EACtB,UAAkB,EAClB,WAAqB,EACrB,aAAqB;IAErB,MAAM,IAAI,GAAG,mBAAmB,UAAU,CAAC,aAAa,EAAE,6BAA6B,UAAU,kBAAkB,CAAC;IACpH,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,OAAO,CAAyB;QAChE,MAAM,EAAE,MAAM;QACd,GAAG,EAAE,IAAI;QACT,IAAI,EAAE,IAAI,CAA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