@salesforce/plugin-devops-center 1.2.27 → 1.2.28

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 (225) hide show
  1. package/LICENSE.txt +200 -6
  2. package/README.md +430 -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/work-item/create.d.ts +16 -0
  27. package/lib/commands/devops/work-item/create.js +76 -0
  28. package/lib/commands/devops/work-item/create.js.map +1 -0
  29. package/lib/commands/devops/work-item/list.d.ts +17 -0
  30. package/lib/commands/devops/work-item/list.js +72 -0
  31. package/lib/commands/devops/work-item/list.js.map +1 -0
  32. package/lib/commands/devops/work-item/status/update.d.ts +16 -0
  33. package/lib/commands/devops/work-item/status/update.js +90 -0
  34. package/lib/commands/devops/work-item/status/update.js.map +1 -0
  35. package/lib/commands/project/deploy/pipeline/quick.d.ts +2 -2
  36. package/lib/commands/project/deploy/pipeline/quick.js +24 -21
  37. package/lib/commands/project/deploy/pipeline/quick.js.map +1 -1
  38. package/lib/commands/project/deploy/pipeline/report.d.ts +4 -4
  39. package/lib/commands/project/deploy/pipeline/report.js +38 -35
  40. package/lib/commands/project/deploy/pipeline/report.js.map +1 -1
  41. package/lib/commands/project/deploy/pipeline/resume.d.ts +2 -2
  42. package/lib/commands/project/deploy/pipeline/resume.js +24 -21
  43. package/lib/commands/project/deploy/pipeline/resume.js.map +1 -1
  44. package/lib/commands/project/deploy/pipeline/start.d.ts +3 -3
  45. package/lib/commands/project/deploy/pipeline/start.js +26 -23
  46. package/lib/commands/project/deploy/pipeline/start.js.map +1 -1
  47. package/lib/commands/project/deploy/pipeline/validate.d.ts +3 -3
  48. package/lib/commands/project/deploy/pipeline/validate.js +24 -21
  49. package/lib/commands/project/deploy/pipeline/validate.js.map +1 -1
  50. package/lib/common/base/abstractAsyncOperation.d.ts +3 -3
  51. package/lib/common/base/abstractAsyncOperation.js +31 -23
  52. package/lib/common/base/abstractAsyncOperation.js.map +1 -1
  53. package/lib/common/base/abstractPromote.d.ts +5 -4
  54. package/lib/common/base/abstractPromote.js +52 -38
  55. package/lib/common/base/abstractPromote.js.map +1 -1
  56. package/lib/common/base/abstractQuick.d.ts +4 -3
  57. package/lib/common/base/abstractQuick.js +44 -43
  58. package/lib/common/base/abstractQuick.js.map +1 -1
  59. package/lib/common/base/abstractReportOnPromote.d.ts +2 -1
  60. package/lib/common/base/abstractReportOnPromote.js +31 -24
  61. package/lib/common/base/abstractReportOnPromote.js.map +1 -1
  62. package/lib/common/base/abstractResume.d.ts +3 -2
  63. package/lib/common/base/abstractResume.js +40 -33
  64. package/lib/common/base/abstractResume.js.map +1 -1
  65. package/lib/common/constants.js +19 -13
  66. package/lib/common/constants.js.map +1 -1
  67. package/lib/common/deployPipelineCache.js +20 -15
  68. package/lib/common/deployPipelineCache.js.map +1 -1
  69. package/lib/common/flags/flags.d.ts +2 -2
  70. package/lib/common/flags/flags.js +34 -29
  71. package/lib/common/flags/flags.js.map +1 -1
  72. package/lib/common/flags/promote/promoteFlags.d.ts +3 -3
  73. package/lib/common/flags/promote/promoteFlags.js +26 -20
  74. package/lib/common/flags/promote/promoteFlags.js.map +1 -1
  75. package/lib/common/index.d.ts +3 -2
  76. package/lib/common/index.js +2 -17
  77. package/lib/common/index.js.map +1 -1
  78. package/lib/common/outputColumns.d.ts +3 -13
  79. package/lib/common/outputColumns.js +23 -19
  80. package/lib/common/outputColumns.js.map +1 -1
  81. package/lib/common/outputService/aorOutputService.d.ts +4 -4
  82. package/lib/common/outputService/aorOutputService.js +27 -20
  83. package/lib/common/outputService/aorOutputService.js.map +1 -1
  84. package/lib/common/outputService/deployCommandOutputService.d.ts +2 -2
  85. package/lib/common/outputService/deployCommandOutputService.js +17 -12
  86. package/lib/common/outputService/deployCommandOutputService.js.map +1 -1
  87. package/lib/common/outputService/deploySummaryBuilder.d.ts +1 -1
  88. package/lib/common/outputService/deploySummaryBuilder.js +45 -31
  89. package/lib/common/outputService/deploySummaryBuilder.js.map +1 -1
  90. package/lib/common/outputService/deploymentResultOutputService.d.ts +4 -4
  91. package/lib/common/outputService/deploymentResultOutputService.js +16 -10
  92. package/lib/common/outputService/deploymentResultOutputService.js.map +1 -1
  93. package/lib/common/outputService/index.d.ts +8 -6
  94. package/lib/common/outputService/index.js +5 -19
  95. package/lib/common/outputService/index.js.map +1 -1
  96. package/lib/common/outputService/outputService.d.ts +6 -4
  97. package/lib/common/outputService/outputService.js +20 -14
  98. package/lib/common/outputService/outputService.js.map +1 -1
  99. package/lib/common/outputService/outputServiceFactory.d.ts +8 -8
  100. package/lib/common/outputService/outputServiceFactory.js +21 -16
  101. package/lib/common/outputService/outputServiceFactory.js.map +1 -1
  102. package/lib/common/outputService/outputUtils.d.ts +1 -1
  103. package/lib/common/outputService/outputUtils.js +24 -19
  104. package/lib/common/outputService/outputUtils.js.map +1 -1
  105. package/lib/common/outputService/promoteOutputService.d.ts +4 -5
  106. package/lib/common/outputService/promoteOutputService.js +19 -13
  107. package/lib/common/outputService/promoteOutputService.js.map +1 -1
  108. package/lib/common/outputService/reportOutputService.d.ts +5 -6
  109. package/lib/common/outputService/reportOutputService.js +32 -27
  110. package/lib/common/outputService/reportOutputService.js.map +1 -1
  111. package/lib/common/outputService/resumeCommandOutputService.d.ts +3 -3
  112. package/lib/common/outputService/resumeCommandOutputService.js +19 -13
  113. package/lib/common/outputService/resumeCommandOutputService.js.map +1 -1
  114. package/lib/common/outputService/resumeOutputService.d.ts +3 -3
  115. package/lib/common/outputService/resumeOutputService.js +23 -17
  116. package/lib/common/outputService/resumeOutputService.js.map +1 -1
  117. package/lib/common/selectors/asyncOperationResultsSelector.d.ts +1 -1
  118. package/lib/common/selectors/asyncOperationResultsSelector.js +16 -10
  119. package/lib/common/selectors/asyncOperationResultsSelector.js.map +1 -1
  120. package/lib/common/selectors/deployComponentsSelector.d.ts +1 -1
  121. package/lib/common/selectors/deployComponentsSelector.js +18 -13
  122. package/lib/common/selectors/deployComponentsSelector.js.map +1 -1
  123. package/lib/common/selectors/deployProgressSummarySelector.d.ts +2 -2
  124. package/lib/common/selectors/deployProgressSummarySelector.js +16 -10
  125. package/lib/common/selectors/deployProgressSummarySelector.js.map +1 -1
  126. package/lib/common/selectors/deploymentResultsSelector.d.ts +2 -2
  127. package/lib/common/selectors/deploymentResultsSelector.js +20 -16
  128. package/lib/common/selectors/deploymentResultsSelector.js.map +1 -1
  129. package/lib/common/selectors/environmentSelector.d.ts +2 -2
  130. package/lib/common/selectors/environmentSelector.js +16 -10
  131. package/lib/common/selectors/environmentSelector.js.map +1 -1
  132. package/lib/common/selectors/namedCredentialSelector.d.ts +1 -1
  133. package/lib/common/selectors/namedCredentialSelector.js +16 -10
  134. package/lib/common/selectors/namedCredentialSelector.js.map +1 -1
  135. package/lib/common/selectors/pipelineStageSelector.d.ts +1 -1
  136. package/lib/common/selectors/pipelineStageSelector.js +18 -13
  137. package/lib/common/selectors/pipelineStageSelector.js.map +1 -1
  138. package/lib/common/selectors/selectorUtils.d.ts +1 -1
  139. package/lib/common/selectors/selectorUtils.js +17 -11
  140. package/lib/common/selectors/selectorUtils.js.map +1 -1
  141. package/lib/common/selectors/validateDeploySelector.d.ts +1 -1
  142. package/lib/common/selectors/validateDeploySelector.js +16 -10
  143. package/lib/common/selectors/validateDeploySelector.js.map +1 -1
  144. package/lib/common/selectors/workItemSelector.d.ts +2 -2
  145. package/lib/common/selectors/workItemSelector.js +16 -10
  146. package/lib/common/selectors/workItemSelector.js.map +1 -1
  147. package/lib/common/types.d.ts +4 -4
  148. package/lib/common/types.js +4 -7
  149. package/lib/common/types.js.map +1 -1
  150. package/lib/common/utils.d.ts +4 -4
  151. package/lib/common/utils.js +42 -43
  152. package/lib/common/utils.js.map +1 -1
  153. package/lib/configMeta.js +21 -15
  154. package/lib/configMeta.js.map +1 -1
  155. package/lib/streamer/doceMonitor.d.ts +3 -2
  156. package/lib/streamer/doceMonitor.js +14 -6
  157. package/lib/streamer/doceMonitor.js.map +1 -1
  158. package/lib/streamer/doceStream.d.ts +1 -1
  159. package/lib/streamer/doceStream.js +19 -11
  160. package/lib/streamer/doceStream.js.map +1 -1
  161. package/lib/streamer/processors/asyncOpStream.d.ts +2 -2
  162. package/lib/streamer/processors/asyncOpStream.js +22 -15
  163. package/lib/streamer/processors/asyncOpStream.js.map +1 -1
  164. package/lib/streamer/sObjectStream.d.ts +1 -1
  165. package/lib/streamer/sObjectStream.js +9 -10
  166. package/lib/streamer/sObjectStream.js.map +1 -1
  167. package/lib/utils/activatePipeline.d.ts +17 -0
  168. package/lib/utils/activatePipeline.js +35 -0
  169. package/lib/utils/activatePipeline.js.map +1 -0
  170. package/lib/utils/addPipelineStage.d.ts +20 -0
  171. package/lib/utils/addPipelineStage.js +43 -0
  172. package/lib/utils/addPipelineStage.js.map +1 -0
  173. package/lib/utils/attachProject.d.ts +21 -0
  174. package/lib/utils/attachProject.js +44 -0
  175. package/lib/utils/attachProject.js.map +1 -0
  176. package/lib/utils/createPipeline.d.ts +34 -0
  177. package/lib/utils/createPipeline.js +77 -0
  178. package/lib/utils/createPipeline.js.map +1 -0
  179. package/lib/utils/createProject.d.ts +17 -0
  180. package/lib/utils/createProject.js +39 -0
  181. package/lib/utils/createProject.js.map +1 -0
  182. package/lib/utils/createPullRequest.d.ts +49 -0
  183. package/lib/utils/createPullRequest.js +204 -0
  184. package/lib/utils/createPullRequest.js.map +1 -0
  185. package/lib/utils/createWorkItem.d.ts +19 -0
  186. package/lib/utils/createWorkItem.js +58 -0
  187. package/lib/utils/createWorkItem.js.map +1 -0
  188. package/lib/utils/pipelineUtils.d.ts +8 -0
  189. package/lib/utils/pipelineUtils.js +51 -0
  190. package/lib/utils/pipelineUtils.js.map +1 -0
  191. package/lib/utils/types.d.ts +57 -0
  192. package/lib/utils/types.js +17 -0
  193. package/lib/utils/types.js.map +1 -0
  194. package/lib/utils/updateWorkItemStatus.d.ts +34 -0
  195. package/lib/utils/updateWorkItemStatus.js +71 -0
  196. package/lib/utils/updateWorkItemStatus.js.map +1 -0
  197. package/lib/utils/workItems.d.ts +3 -0
  198. package/lib/utils/workItems.js +181 -0
  199. package/lib/utils/workItems.js.map +1 -0
  200. package/messages/commonErrors.md +5 -1
  201. package/messages/devops.pipeline.activate.md +29 -0
  202. package/messages/devops.pipeline.attach-project.md +29 -0
  203. package/messages/devops.pipeline.create.md +81 -0
  204. package/messages/devops.pipeline.stage.add.md +37 -0
  205. package/messages/devops.project.create.md +29 -0
  206. package/messages/devops.project.list.md +17 -0
  207. package/messages/devops.pull-request.create.md +57 -0
  208. package/messages/devops.work-item.create.md +29 -0
  209. package/messages/devops.work-item.list.md +21 -0
  210. package/messages/devops.work-item.status.update.md +29 -0
  211. package/npm-shrinkwrap.json +4196 -4470
  212. package/oclif.lock +3380 -3272
  213. package/oclif.manifest.json +863 -11
  214. package/package.json +53 -23
  215. package/schemas/devops-pipeline-activate.json +28 -0
  216. package/schemas/devops-pipeline-attach__project.json +25 -0
  217. package/schemas/devops-pipeline-create.json +50 -0
  218. package/schemas/devops-pipeline-stage-add.json +31 -0
  219. package/schemas/devops-project-create.json +28 -0
  220. package/schemas/devops-project-list.json +35 -0
  221. package/schemas/devops-pull__request-create.json +34 -0
  222. package/schemas/devops-work__item-create.json +28 -0
  223. package/schemas/devops-work__item-list.json +75 -0
  224. package/schemas/devops-work__item-status-update.json +28 -0
  225. package/schemas/project-deploy-pipeline-report.json +2 -2
@@ -1,42 +1,45 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  /*
4
- * Copyright (c) 2023, salesforce.com, inc.
5
- * All rights reserved.
6
- * Licensed under the BSD 3-Clause license.
7
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
2
+ * Copyright 2026, Salesforce, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
8
15
  */
9
- const core_1 = require("@salesforce/core");
10
- const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
11
- const abstractReportOnPromote_1 = require("../../../../common/base/abstractReportOnPromote");
12
- core_1.Messages.importMessagesDirectory(__dirname);
13
- const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.report');
14
- class DeployPipelineReport extends abstractReportOnPromote_1.ReportOnPromoteCommand {
15
- constructor() {
16
- super(...arguments);
17
- this.operationName = 'Deploy';
18
- }
16
+ import { Messages } from '@salesforce/core';
17
+ import { Flags } from '@salesforce/sf-plugins-core';
18
+ import { ReportOnPromoteCommand } from '../../../../common/base/abstractReportOnPromote.js';
19
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
20
+ const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.report');
21
+ export default class DeployPipelineReport extends ReportOnPromoteCommand {
22
+ static description = messages.getMessage('description');
23
+ static summary = messages.getMessage('summary');
24
+ static examples = messages.getMessages('examples');
25
+ static state = 'beta';
26
+ static flags = {
27
+ 'job-id': Flags.salesforceId({
28
+ char: 'i',
29
+ description: messages.getMessage('flags.job-id.description'),
30
+ summary: messages.getMessage('flags.job-id.summary'),
31
+ exactlyOne: ['use-most-recent', 'job-id'],
32
+ }),
33
+ 'use-most-recent': Flags.boolean({
34
+ char: 'r',
35
+ description: messages.getMessage('flags.use-most-recent.description'),
36
+ summary: messages.getMessage('flags.use-most-recent.summary'),
37
+ exactlyOne: ['use-most-recent', 'job-id'],
38
+ }),
39
+ };
40
+ operationName = 'Deploy';
19
41
  async run() {
20
42
  return this.getOperationReport();
21
43
  }
22
44
  }
23
- DeployPipelineReport.description = messages.getMessage('description');
24
- DeployPipelineReport.summary = messages.getMessage('summary');
25
- DeployPipelineReport.examples = messages.getMessages('examples');
26
- DeployPipelineReport.state = 'beta';
27
- DeployPipelineReport.flags = {
28
- 'job-id': sf_plugins_core_1.Flags.salesforceId({
29
- char: 'i',
30
- description: messages.getMessage('flags.job-id.description'),
31
- summary: messages.getMessage('flags.job-id.summary'),
32
- exactlyOne: ['use-most-recent', 'job-id'],
33
- }),
34
- 'use-most-recent': sf_plugins_core_1.Flags.boolean({
35
- char: 'r',
36
- description: messages.getMessage('flags.use-most-recent.description'),
37
- summary: messages.getMessage('flags.use-most-recent.summary'),
38
- exactlyOne: ['use-most-recent', 'job-id'],
39
- }),
40
- };
41
- exports.default = DeployPipelineReport;
42
45
  //# sourceMappingURL=report.js.map
@@ -1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AC,UAAU,CAAC,+BAA+B,CAAC;YAC7D,UAAU,EAAE,CAAC,iBAAiB,EAAE,QAAQ,CAAC;SAC1C,CAAC;KACH,CAAC;IACQ,aAAa,GAAG,QAAQ,CAAC;IAE5B,KAAK,CAAC,GAAG;QACd,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC;IACnC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { SfCommand } from '@salesforce/sf-plugins-core';
2
- import { AsyncOperationResultJson } from '../../../../common';
3
- import { ResumeCommand } from '../../../../common/base/abstractResume';
2
+ import type { AsyncOperationResultJson } from '../../../../common/index.js';
3
+ import { ResumeCommand } from '../../../../common/base/abstractResume.js';
4
4
  export default class DeployPipelineResume extends ResumeCommand<typeof SfCommand> {
5
5
  static readonly summary: string;
6
6
  static readonly description: string;
@@ -1,28 +1,31 @@
1
- "use strict";
2
1
  /*
3
- * Copyright (c) 2022, salesforce.com, inc.
4
- * All rights reserved.
5
- * Licensed under the BSD 3-Clause license.
6
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
2
+ * Copyright 2026, Salesforce, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
7
15
  */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- const core_1 = require("@salesforce/core");
10
- const abstractResume_1 = require("../../../../common/base/abstractResume");
11
- core_1.Messages.importMessagesDirectory(__dirname);
12
- const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.resume');
13
- class DeployPipelineResume extends abstractResume_1.ResumeCommand {
14
- constructor() {
15
- super(...arguments);
16
- this.operationType = 'Deployment';
17
- this.baseCommand = 'project deploy pipeline';
18
- }
16
+ import { Messages } from '@salesforce/core';
17
+ import { ResumeCommand } from '../../../../common/base/abstractResume.js';
18
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
19
+ const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.resume');
20
+ export default class DeployPipelineResume extends ResumeCommand {
21
+ static summary = messages.getMessage('summary');
22
+ static description = messages.getMessage('description');
23
+ static examples = messages.getMessages('examples');
24
+ static state = 'beta';
25
+ operationType = 'Deployment';
26
+ baseCommand = 'project deploy pipeline';
19
27
  async run() {
20
28
  return this.resumeOperation();
21
29
  }
22
30
  }
23
- DeployPipelineResume.summary = messages.getMessage('summary');
24
- DeployPipelineResume.description = messages.getMessage('description');
25
- DeployPipelineResume.examples = messages.getMessages('examples');
26
- DeployPipelineResume.state = 'beta';
27
- exports.default = DeployPipelineResume;
28
31
  //# sourceMappingURL=resume.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resume.js","sourceRoot":"","sources":["../../../../../src/commands/project/deploy/pipeline/resume.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,2CAA4C;AAG5C,2EAAuE;AAEvE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,gCAAgC,CAAC,CAAC;AAE7G,MAAqB,oBAAqB,SAAQ,8BAA+B;IAAjF;;QAMY,kBAAa,GAAG,YAAY,CAAC;QAC7B,gBAAW,GAAG,yBAAyB,CAAC;IAKpD,CAAC;IAHQ,KAAK,CAAC,GAAG;QACd,OAAO,IAAI,CAAC,eAAe,EAAE,CAAC;IAChC,CAAC;;AAVsB,4BAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,AAAjC,CAAkC;AACzC,gCAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,AAArC,CAAsC;AACjD,6BAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,AAAnC,CAAoC;AAC5C,0BAAK,GAAG,MAAM,AAAT,CAAU;kBAJnB,oBAAoB"}
1
+ {"version":3,"file":"resume.js","sourceRoot":"","sources":["../../../../../src/commands/project/deploy/pipeline/resume.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAE1E,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,gCAAgC,CAAC,CAAC;AAE7G,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,aAA+B;IACxE,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,KAAK,GAAG,MAAM,CAAC;IAE5B,aAAa,GAAG,YAAY,CAAC;IAC7B,WAAW,GAAG,yBAAyB,CAAC;IAE3C,KAAK,CAAC,GAAG;QACd,OAAO,IAAI,CAAC,eAAe,EAAE,CAAC;IAChC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { SfCommand } from '@salesforce/sf-plugins-core';
2
- import { PromoteCommand } from '../../../../common/base/abstractPromote';
3
- import { PromoteOptions } from '../../../../common';
4
- import { AsyncOperationResultJson } from '../../../../common/types';
2
+ import { PromoteCommand } from '../../../../common/base/abstractPromote.js';
3
+ import type { PromoteOptions } from '../../../../common/index.js';
4
+ import type { AsyncOperationResultJson } from '../../../../common/types.js';
5
5
  /**
6
6
  * Contains the logic to execute the sf project deploy pipeline start command.
7
7
  */
@@ -1,25 +1,33 @@
1
- "use strict";
2
1
  /*
3
- * Copyright (c) 2022, salesforce.com, inc.
4
- * All rights reserved.
5
- * Licensed under the BSD 3-Clause license.
6
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
2
+ * Copyright 2026, Salesforce, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
7
15
  */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- const core_1 = require("@salesforce/core");
10
- const abstractPromote_1 = require("../../../../common/base/abstractPromote");
11
- const constants_1 = require("../../../../common/constants");
12
- core_1.Messages.importMessagesDirectory(__dirname);
13
- const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.start');
16
+ import { Messages } from '@salesforce/core';
17
+ import { PromoteCommand } from '../../../../common/base/abstractPromote.js';
18
+ import { APPROVED } from '../../../../common/constants.js';
19
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
20
+ const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.start');
14
21
  /**
15
22
  * Contains the logic to execute the sf project deploy pipeline start command.
16
23
  */
17
- class DeployPipeline extends abstractPromote_1.PromoteCommand {
18
- constructor() {
19
- super(...arguments);
20
- this.baseCommand = 'project deploy pipeline';
21
- this.isUndeployedOnly = true;
22
- }
24
+ export default class DeployPipeline extends PromoteCommand {
25
+ static summary = messages.getMessage('summary');
26
+ static description = messages.getMessage('description');
27
+ static examples = messages.getMessages('examples');
28
+ static state = 'beta';
29
+ baseCommand = 'project deploy pipeline';
30
+ isUndeployedOnly = true;
23
31
  async run() {
24
32
  return this.executePromotion();
25
33
  }
@@ -34,7 +42,7 @@ class DeployPipeline extends abstractPromote_1.PromoteCommand {
34
42
  const targetStage = this.getTargetStage();
35
43
  return targetStage.sf_devops__Pipeline_Stages__r
36
44
  ? targetStage.sf_devops__Pipeline_Stages__r.records[0].Id
37
- : constants_1.APPROVED;
45
+ : APPROVED;
38
46
  }
39
47
  /**
40
48
  * Returns the promote option necessary to performs an undeployed only promotion
@@ -43,9 +51,4 @@ class DeployPipeline extends abstractPromote_1.PromoteCommand {
43
51
  return { undeployedOnly: this.isUndeployedOnly };
44
52
  }
45
53
  }
46
- DeployPipeline.summary = messages.getMessage('summary');
47
- DeployPipeline.description = messages.getMessage('description');
48
- DeployPipeline.examples = messages.getMessages('examples');
49
- DeployPipeline.state = 'beta';
50
- exports.default = DeployPipeline;
51
54
  //# sourceMappingURL=start.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"start.js","sourceRoot":"","sources":["../../../../../src/commands/project/deploy/pipeline/start.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,2CAA4C;AAE5C,6EAAyE;AAEzE,4DAAwD;AAGxD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,+BAA+B,CAAC,CAAC;AAE5G;;GAEG;AACH,MAAqB,cAAe,SAAQ,gCAAgC;IAA5E;;QAKY,gBAAW,GAAG,yBAAyB,CAAC;QACjC,qBAAgB,GAAG,IAAI,CAAC;IA0B3C,CAAC;IAxBQ,KAAK,CAAC,GAAG;QACd,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC;IAED;;;;;;OAMG;IACO,gBAAgB;QACxB,MAAM,WAAW,GAAkB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,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,KAAK,GAAG,MAAM,CAAC;IAC5B,WAAW,GAAG,yBAAyB,CAAC;IACjC,gBAAgB,GAAG,IAAI,CAAC;IAElC,KAAK,CAAC,GAAG;QACd,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC;IAED;;;;;;OAMG;IACO,gBAAgB;QACxB,MAAM,WAAW,GAAkB,IAAI,CAAC,cAAc,EAAE,CAAC;QACzD,OAAO,WAAW,CAAC,6BAA6B;YAC9C,CAAC,CAAC,WAAW,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;YACzD,CAAC,CAAC,QAAQ,CAAC;IACf,CAAC;IAED;;OAEG;IACO,iBAAiB;QACzB,OAAO,EAAE,cAAc,EAAE,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACnD,CAAC"}
@@ -1,6 +1,6 @@
1
- import { PromoteOptions } from '../../../../common';
2
- import { AsyncOperationResultJson } from '../../../../common/types';
3
- import DeployPipeline from './start';
1
+ import type { PromoteOptions } from '../../../../common/index.js';
2
+ import type { AsyncOperationResultJson } from '../../../../common/types.js';
3
+ import DeployPipeline from './start.js';
4
4
  /**
5
5
  * Contains the logic to execute the sf project deploy pipeline validate command.
6
6
  */
@@ -1,24 +1,32 @@
1
- "use strict";
2
1
  /*
3
- * Copyright (c) 2022, salesforce.com, inc.
4
- * All rights reserved.
5
- * Licensed under the BSD 3-Clause license.
6
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
2
+ * Copyright 2026, Salesforce, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
7
15
  */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- const core_1 = require("@salesforce/core");
10
- const start_1 = require("./start");
11
- core_1.Messages.importMessagesDirectory(__dirname);
12
- const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.validate');
16
+ import { Messages } from '@salesforce/core';
17
+ import DeployPipeline from './start.js';
18
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
19
+ const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.validate');
13
20
  /**
14
21
  * Contains the logic to execute the sf project deploy pipeline validate command.
15
22
  */
16
- class ValidateDeployPipeline extends start_1.default {
17
- constructor() {
18
- super(...arguments);
19
- this.baseCommand = 'project deploy pipeline';
20
- this.isCheckDeploy = true;
21
- }
23
+ export default class ValidateDeployPipeline extends DeployPipeline {
24
+ static summary = messages.getMessage('summary');
25
+ static description = messages.getMessage('description');
26
+ static examples = messages.getMessages('examples');
27
+ static state = 'beta';
28
+ baseCommand = 'project deploy pipeline';
29
+ isCheckDeploy = true;
22
30
  async run() {
23
31
  return this.executePromotion();
24
32
  }
@@ -29,9 +37,4 @@ class ValidateDeployPipeline extends start_1.default {
29
37
  return { ...super.getPromoteOptions(), checkDeploy: this.isCheckDeploy };
30
38
  }
31
39
  }
32
- ValidateDeployPipeline.summary = messages.getMessage('summary');
33
- ValidateDeployPipeline.description = messages.getMessage('description');
34
- ValidateDeployPipeline.examples = messages.getMessages('examples');
35
- ValidateDeployPipeline.state = 'beta';
36
- exports.default = ValidateDeployPipeline;
37
40
  //# sourceMappingURL=validate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../../../src/commands/project/deploy/pipeline/validate.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,2CAA4C;AAG5C,mCAAqC;AAErC,e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AAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,KAAK,GAAG,MAAM,CAAC;IAC5B,WAAW,GAAG,yBAAyB,CAAC;IACjC,aAAa,GAAG,IAAI,CAAC;IAE/B,KAAK,CAAC,GAAG;QACd,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC;IAED;;OAEG;IACO,iBAAiB;QACzB,OAAO,EAAE,GAAG,KAAK,CAAC,iBAAiB,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,aAAa,EAAE,CAAC;IAC3E,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { Org, SfError } from '@salesforce/core';
2
2
  import { SfCommand } from '@salesforce/sf-plugins-core';
3
3
  import { Duration } from '@salesforce/kit';
4
- import { AsyncOperationResultJson } from '../types';
5
- import { PromoteOutputService } from '../outputService';
4
+ import { type AsyncOperationResultJson } from '../types.js';
5
+ import type { PromoteOutputService } from '../outputService/index.js';
6
6
  export declare abstract class AsyncCommand extends SfCommand<AsyncOperationResultJson> {
7
7
  static readonly enableJsonFlag = true;
8
8
  protected targetOrg: Org;
@@ -23,7 +23,7 @@ export declare abstract class AsyncCommand extends SfCommand<AsyncOperationResul
23
23
  * @param error
24
24
  * @returns
25
25
  */
26
- protected catch(error: Error | SfError): Promise<SfCommand.Error>;
26
+ protected catch(error: Error | SfError): Promise<never>;
27
27
  /**
28
28
  *
29
29
  * Stores the AOR Id in cache.
@@ -1,20 +1,30 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AsyncCommand = void 0;
4
1
  /*
5
- * Copyright (c) 2023, salesforce.com, inc.
6
- * All rights reserved.
7
- * Licensed under the BSD 3-Clause license.
8
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
2
+ * Copyright 2026, Salesforce, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
9
15
  */
10
- const core_1 = require("@salesforce/core");
11
- const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
12
- const deployPipelineCache_1 = require("../deployPipelineCache");
13
- const types_1 = require("../types");
14
- const common_1 = require("../../common");
15
- core_1.Messages.importMessagesDirectory(__dirname);
16
- const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'commonErrors');
17
- class AsyncCommand extends sf_plugins_core_1.SfCommand {
16
+ import { Messages } from '@salesforce/core';
17
+ import { SfCommand } from '@salesforce/sf-plugins-core';
18
+ import { DeployPipelineCache } from '../deployPipelineCache.js';
19
+ import { AsyncOperationStatus } from '../types.js';
20
+ import { fetchAsyncOperationResult, getAsyncOperationStreamer } from '../../common/index.js';
21
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
22
+ const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'commonErrors');
23
+ export class AsyncCommand extends SfCommand {
24
+ static enableJsonFlag = true;
25
+ targetOrg;
26
+ asyncOperationId;
27
+ outputService;
18
28
  setAsyncOperationId(aorId) {
19
29
  this.asyncOperationId = aorId;
20
30
  }
@@ -35,7 +45,7 @@ class AsyncCommand extends sf_plugins_core_1.SfCommand {
35
45
  return this.getOperationState();
36
46
  }
37
47
  await this.startMonitoring(wait);
38
- if (this.outputService.getStatus() === types_1.AsyncOperationStatus.Completed) {
48
+ if (this.outputService.getStatus() === AsyncOperationStatus.Completed) {
39
49
  this.outputService.displayEndResults();
40
50
  }
41
51
  return this.getOperationState();
@@ -58,14 +68,14 @@ class AsyncCommand extends sf_plugins_core_1.SfCommand {
58
68
  * Stores the AOR Id in cache.
59
69
  */
60
70
  async cacheOperation() {
61
- await deployPipelineCache_1.DeployPipelineCache.set(this.asyncOperationId, {});
71
+ await DeployPipelineCache.set(this.asyncOperationId, {});
62
72
  }
63
73
  /**
64
74
  *
65
75
  * Executes a query to get the state of the AOR record.
66
76
  */
67
77
  async getOperationState() {
68
- const asyncJob = await (0, common_1.fetchAsyncOperationResult)(this.targetOrg.getConnection(), this.asyncOperationId);
78
+ const asyncJob = await fetchAsyncOperationResult(this.targetOrg.getConnection(), this.asyncOperationId);
69
79
  return {
70
80
  jobId: this.asyncOperationId,
71
81
  status: asyncJob.sf_devops__Status__c,
@@ -79,10 +89,10 @@ class AsyncCommand extends sf_plugins_core_1.SfCommand {
79
89
  * @param wait
80
90
  */
81
91
  async startMonitoring(wait) {
82
- const asyncJob = await (0, common_1.fetchAsyncOperationResult)(this.targetOrg.getConnection(), this.asyncOperationId);
92
+ const asyncJob = await fetchAsyncOperationResult(this.targetOrg.getConnection(), this.asyncOperationId);
83
93
  if (asyncJob.sf_devops__Status__c === undefined ||
84
- asyncJob.sf_devops__Status__c === types_1.AsyncOperationStatus.InProgress) {
85
- const streamer = (0, common_1.getAsyncOperationStreamer)(this.targetOrg, wait, this.asyncOperationId, this.outputService);
94
+ asyncJob.sf_devops__Status__c === AsyncOperationStatus.InProgress) {
95
+ const streamer = getAsyncOperationStreamer(this.targetOrg, wait, this.asyncOperationId, this.outputService);
86
96
  await streamer.monitor();
87
97
  }
88
98
  else {
@@ -90,6 +100,4 @@ class AsyncCommand extends sf_plugins_core_1.SfCommand {
90
100
  }
91
101
  }
92
102
  }
93
- exports.AsyncCommand = AsyncCommand;
94
- AsyncCommand.enableJsonFlag = true;
95
103
  //# sourceMappingURL=abstractAsyncOperation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"abstract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AAE,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;;OAGG;IACK,KAAK,CAAC,iBAAiB;QAC7B,MAAM,QAAQ,GAAyB,MAAM,yBAAyB,CACpE,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,EAC9B,IAAI,CAAC,gBAAgB,CACtB,CAAC;QACF,OAAO;YACL,KAAK,EAAE,IAAI,CAAC,gBAAgB;YAC5B,MAAM,EAAE,QAAQ,CAAC,oBAA8B;YAC/C,OAAO,EAAE,QAAQ,CAAC,qBAA+B;YACjD,YAAY,EAAE,QAAQ,CAAC,2BAAqC;SAC7D,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACK,KAAK,CAAC,eAAe,CAAC,IAAc;QAC1C,MAAM,QAAQ,GAAyB,MAAM,yBAAyB,CACpE,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,EAC9B,IAAI,CAAC,gBAAgB,CACtB,CAAC;QACF,IACE,QAAQ,CAAC,oBAAoB,KAAK,SAAS;YAC3C,QAAQ,CAAC,oBAAoB,KAAK,oBAAoB,CAAC,UAAU,EACjE,CAAC;YACD,MAAM,QAAQ,GAAgB,yBAAyB,CACrD,IAAI,CAAC,SAAS,EACd,IAAI,EACJ,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,aAAa,CACnB,CAAC;YACF,MAAM,QAAQ,CAAC,OAAO,EAAE,CAAC;QAC3B,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { SfCommand } from '@salesforce/sf-plugins-core';
2
2
  import { Interfaces } from '@oclif/core';
3
- import { PipelineStage, PromoteOptions } from '..';
4
- import { AsyncOperationResultJson } from '../../common';
5
- import { AsyncCommand } from './abstractAsyncOperation';
3
+ import { PipelineStage, PromoteOptions, TestLevel } from '../index.js';
4
+ import type { AsyncOperationResultJson } from '../../common/index.js';
5
+ import { AsyncCommand } from './abstractAsyncOperation.js';
6
6
  export type Flags<T extends typeof SfCommand> = Interfaces.InferredFlags<(typeof PromoteCommand)['baseFlags'] & T['flags']>;
7
7
  export declare abstract class PromoteCommand<T extends typeof SfCommand> extends AsyncCommand {
8
8
  static readonly enableJsonFlag = true;
@@ -13,11 +13,12 @@ export declare abstract class PromoteCommand<T extends typeof SfCommand> extends
13
13
  'devops-center-project-name': Interfaces.OptionFlag<string>;
14
14
  'devops-center-username': Interfaces.OptionFlag<import("@salesforce/core").Org, Interfaces.CustomOptions>;
15
15
  tests: Interfaces.OptionFlag<string[] | undefined>;
16
- 'test-level': Interfaces.OptionFlag<import("..").TestLevel | undefined, Interfaces.CustomOptions>;
16
+ 'test-level': Interfaces.OptionFlag<TestLevel | undefined, Interfaces.CustomOptions>;
17
17
  async: Interfaces.BooleanFlag<boolean>;
18
18
  wait: Interfaces.OptionFlag<import("@salesforce/kit").Duration>;
19
19
  verbose: Interfaces.BooleanFlag<boolean>;
20
20
  concise: Interfaces.BooleanFlag<boolean>;
21
+ 'flags-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
22
  };
22
23
  protected flags: Flags<T>;
23
24
  private targetStage;