@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,22 +1,28 @@
1
- "use strict";
2
1
  /*
3
- * Copyright (c) 2023, 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
- exports.selectPipelineStageByEnvironment = selectPipelineStageByEnvironment;
10
- const selectorUtils_1 = require("./selectorUtils");
16
+ import { runSafeQuery } from './selectorUtils.js';
11
17
  /**
12
18
  * Returns the named credential and pipeline stage name associated with the envId sent
13
19
  */
14
- async function selectPipelineStageByEnvironment(con, envId) {
20
+ export async function selectPipelineStageByEnvironment(con, envId) {
15
21
  const queryStr = `SELECT Name,
16
22
  (SELECT Name FROM sf_devops__Pipeline_Stages__r)
17
23
  FROM sf_devops__Environment__c
18
24
  WHERE Id = '${envId}'`;
19
- const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
25
+ const resp = await runSafeQuery(con, queryStr);
20
26
  return resp.records[0];
21
27
  }
22
28
  //# sourceMappingURL=environmentSelector.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"environmentSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/environmentSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAgBH,4EAQC;AAnBD,mDAA+C;AAQ/C;;GAEG;AACI,KAAK,UAAU,gCAAgC,CAAC,GAAe,EAAE,KAAa;IACnF,MAAM,QAAQ,GAAG;;;kCAGe,KAAK,GAAG,CAAC;IAEzC,MAAM,IAAI,GAAgC,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC"}
1
+ {"version":3,"file":"environmentSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/environmentSelector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAQlD;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,gCAAgC,CAAC,GAAe,EAAE,KAAa;IACnF,MAAM,QAAQ,GAAG;;;kCAGe,KAAK,GAAG,CAAC;IAEzC,MAAM,IAAI,GAAgC,MAAM,YAAY,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Connection } from '@salesforce/core';
2
- import { NamedCredential } from '../types';
2
+ import { NamedCredential } from '../types.js';
3
3
  /**
4
4
  * Given a named credential it returns the org url (endpoint) associated with it
5
5
  */
@@ -1,24 +1,30 @@
1
- "use strict";
2
1
  /*
3
- * Copyright (c) 2023, 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
- exports.selectNamedCredentialByName = selectNamedCredentialByName;
10
- const selectorUtils_1 = require("./selectorUtils");
16
+ import { runSafeQuery } from './selectorUtils.js';
11
17
  /**
12
18
  * Given a named credential it returns the org url (endpoint) associated with it
13
19
  */
14
- async function selectNamedCredentialByName(con, name) {
20
+ export async function selectNamedCredentialByName(con, name) {
15
21
  const queryStr = `
16
22
  SELECT Endpoint
17
23
  FROM NamedCredential
18
24
  WHERE DeveloperName = '${name}'
19
25
  AND NamespacePrefix = 'sf_devops'
20
26
  LIMIT 1`;
21
- const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
27
+ const resp = await runSafeQuery(con, queryStr);
22
28
  return resp.records[0];
23
29
  }
24
30
  //# sourceMappingURL=namedCredentialSelector.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"namedCredentialSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/namedCredentialSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAUH,kEAUC;AAfD,mDAA+C;AAE/C;;GAEG;AACI,KAAK,UAAU,2BAA2B,CAAC,GAAe,EAAE,IAAY;IAC7E,MAAM,QAAQ,GAAG;;;6BAGU,IAAI;;YAErB,CAAC;IAEX,MAAM,IAAI,GAAiC,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC"}
1
+ {"version":3,"file":"namedCredentialSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/namedCredentialSelector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,GAAe,EAAE,IAAY;IAC7E,MAAM,QAAQ,GAAG;;;6BAGU,IAAI;;YAErB,CAAC;IAEX,MAAM,IAAI,GAAiC,MAAM,YAAY,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Connection } from '@salesforce/core';
2
- import { PipelineStage } from '../types';
2
+ import { PipelineStage } from '../types.js';
3
3
  /**
4
4
  *
5
5
  * Returns an array of a pipeline stages filtering by project name.
@@ -1,34 +1,39 @@
1
- "use strict";
2
1
  /*
3
- * Copyright (c) 2023, 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
- exports.selectPipelineStagesByProject = selectPipelineStagesByProject;
10
- exports.selectOnePipelineStageByEnvironmentId = selectOnePipelineStageByEnvironmentId;
11
- const selectorUtils_1 = require("./selectorUtils");
16
+ import { runSafeQuery } from './selectorUtils.js';
12
17
  /**
13
18
  *
14
19
  * Returns an array of a pipeline stages filtering by project name.
15
20
  */
16
- async function selectPipelineStagesByProject(con, projectName) {
21
+ export async function selectPipelineStagesByProject(con, projectName) {
17
22
  const queryStr = `SELECT Id, sf_devops__Pipeline__r.sf_devops__Project__c, sf_devops__Branch__r.sf_devops__Name__c, (SELECT Id FROM sf_devops__Pipeline_Stages__r)
18
23
  FROM sf_devops__Pipeline_Stage__c
19
24
  WHERE sf_devops__Pipeline__r.sf_devops__Project__r.Name = '${projectName}'`;
20
- const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
25
+ const resp = await runSafeQuery(con, queryStr);
21
26
  return resp.records;
22
27
  }
23
28
  /**
24
29
  *
25
30
  * Returns an array of a pipeline stages filtering by environment Id.
26
31
  */
27
- async function selectOnePipelineStageByEnvironmentId(con, envId) {
32
+ export async function selectOnePipelineStageByEnvironmentId(con, envId) {
28
33
  const queryStr = `SELECT Id, sf_devops__Pipeline__r.sf_devops__Project__c, sf_devops__Branch__r.sf_devops__Name__c, (SELECT Id FROM sf_devops__Pipeline_Stages__r)
29
34
  FROM sf_devops__Pipeline_Stage__c
30
35
  WHERE sf_devops__Environment__c = '${envId}'`;
31
- const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
36
+ const resp = await runSafeQuery(con, queryStr);
32
37
  return resp.records[0];
33
38
  }
34
39
  //# sourceMappingURL=pipelineStageSelector.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pipelineStageSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/pipelineStageSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAWH,sEAOC;AAMD,sFAUC;AA7BD,mDAA+C;AAE/C;;;GAGG;AACI,KAAK,UAAU,6BAA6B,CAAC,GAAe,EAAE,WAAmB;IACtF,MAAM,QAAQ,GAAG;;iFAE8D,WAAW,GAAG,CAAC;IAE9F,MAAM,IAAI,GAA+B,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC3E,OAAO,IAAI,CAAC,OAAO,CAAC;AACtB,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,qCAAqC,CACzD,GAAe,EACf,KAAa;IAEb,MAAM,QAAQ,GAAG;;yDAEsC,KAAK,GAAG,CAAC;IAEhE,MAAM,IAAI,GAA+B,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC"}
1
+ {"version":3,"file":"pipelineStageSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/pipelineStageSelector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,6BAA6B,CAAC,GAAe,EAAE,WAAmB;IACtF,MAAM,QAAQ,GAAG;;iFAE8D,WAAW,GAAG,CAAC;IAE9F,MAAM,IAAI,GAA+B,MAAM,YAAY,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC3E,OAAO,IAAI,CAAC,OAAO,CAAC;AACtB,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,qCAAqC,CACzD,GAAe,EACf,KAAa;IAEb,MAAM,QAAQ,GAAG;;yDAEsC,KAAK,GAAG,CAAC;IAEhE,MAAM,IAAI,GAA+B,MAAM,YAAY,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { Connection } from '@salesforce/core';
2
- import { QueryResult, Record } from 'jsforce';
2
+ import { QueryResult, Record } from '@jsforce/jsforce-node';
3
3
  export declare function runSafeQuery<T extends Record>(con: Connection, queryStr: string, allowNullResults?: boolean): Promise<QueryResult<T>>;
@@ -1,16 +1,22 @@
1
- "use strict";
2
1
  /*
3
- * Copyright (c) 2023, 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
- exports.runSafeQuery = runSafeQuery;
10
- const core_1 = require("@salesforce/core");
11
- core_1.Messages.importMessagesDirectory(__dirname);
12
- const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'commonErrors');
13
- async function runSafeQuery(con, queryStr, allowNullResults = false) {
16
+ import { Messages } from '@salesforce/core';
17
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
18
+ const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'commonErrors');
19
+ export async function runSafeQuery(con, queryStr, allowNullResults = false) {
14
20
  // Parameters verification
15
21
  if (!con) {
16
22
  throw messages.createError('error.connection-required');
@@ -1 +1 @@
1
- {"version":3,"file":"selectorUtils.js","sourceRoot":"","sources":["../../../src/common/selectors/selectorUtils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAQH,oCA0BC;AAhCD,2CAAwD;AAGxD,eAAQ,CAAC,u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leInstall } from '../types';
2
+ import { ChangeBundleInstall } from '../types.js';
3
3
  /**
4
4
  * Returns the data necessary to create the deploy summary (or part of it).
5
5
  */
@@ -1,21 +1,27 @@
1
- "use strict";
2
1
  /*
3
- * Copyright (c) 2023, 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
- exports.selectValidateDeployAORSummaryDataById = selectValidateDeployAORSummaryDataById;
10
- const selectorUtils_1 = require("./selectorUtils");
16
+ import { runSafeQuery } from './selectorUtils.js';
11
17
  /**
12
18
  * Returns the data necessary to create the deploy summary (or part of it).
13
19
  */
14
- async function selectValidateDeployAORSummaryDataById(con, aorId) {
20
+ export async function selectValidateDeployAORSummaryDataById(con, aorId) {
15
21
  const queryStr = `SELECT sf_devops__Change_Bundle__r.Id, sf_devops__Change_Bundle__r.sf_devops__Version_Name__c, sf_devops__Environment__r.Id
16
22
  FROM sf_devops__Change_Bundle_Install__c
17
23
  WHERE sf_devops__Deployment_Result__r.sf_devops__Check_Deploy_Status__c = '${aorId}'`;
18
- const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
24
+ const resp = await runSafeQuery(con, queryStr);
19
25
  return resp.records;
20
26
  }
21
27
  //# sourceMappingURL=validateDeploySelector.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"validateDeploySelector.js","sourceRoot":"","sources":["../../../src/common/selectors/validateDeploySelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAUH,wFAUC;AAfD,mDAA+C;AAE/C;;GAEG;AACI,KAAK,UAAU,sCAAsC,CAC1D,GAAe,EACf,KAAa;IAEb,MAAM,QAAQ,GAAG;;iGAE8E,KAAK,GAAG,CAAC;IAExG,MAAM,IAAI,GAAqC,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IACjF,OAAO,IAAI,CAAC,OAAO,CAAC;AACtB,CAAC"}
1
+ {"version":3,"file":"validateDeploySelector.js","sourceRoot":"","sources":["../../../src/common/selectors/validateDeploySelector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,sCAAsC,CAC1D,GAAe,EACf,KAAa;IAEb,MAAM,QAAQ,GAAG;;iGAE8E,KAAK,GAAG,CAAC;IAExG,MAAM,IAAI,GAAqC,MAAM,YAAY,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IACjF,OAAO,IAAI,CAAC,OAAO,CAAC;AACtB,CAAC"}
@@ -1,6 +1,6 @@
1
- import { QueryResult } from 'jsforce';
1
+ import { QueryResult } from '@jsforce/jsforce-node';
2
2
  import { Connection } from '@salesforce/core';
3
- import { WorkItem } from '../types';
3
+ import { WorkItem } from '../types.js';
4
4
  export type WorkItemsQueryResult = {
5
5
  Id: string;
6
6
  sf_devops__Work_Items__r: QueryResult<WorkItem>;
@@ -1,22 +1,28 @@
1
- "use strict";
2
1
  /*
3
- * Copyright (c) 2023, 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
- exports.selectWorkItemsByChangeBundles = selectWorkItemsByChangeBundles;
10
- const selectorUtils_1 = require("./selectorUtils");
16
+ import { runSafeQuery } from './selectorUtils.js';
11
17
  /**
12
18
  * Returns the work items included in the change bundles sent
13
19
  */
14
- async function selectWorkItemsByChangeBundles(con, changeBundles) {
20
+ export async function selectWorkItemsByChangeBundles(con, changeBundles) {
15
21
  const queryStr = `SELECT Id,
16
22
  (SELECT Name FROM sf_devops__Work_Items__r)
17
23
  FROM sf_devops__Change_Bundle__c
18
24
  WHERE Id IN (${changeBundles.map((id) => "'" + id + "'").join(', ')})`;
19
- const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
25
+ const resp = await runSafeQuery(con, queryStr);
20
26
  return resp.records;
21
27
  }
22
28
  //# sourceMappingURL=workItemSelector.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"workItemSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/workItemSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAgBH,wEAWC;AAtBD,mDAA+C;AAQ/C;;GAEG;AACI,KAAK,UAAU,8BAA8B,CAClD,GAAe,EACf,aAAuB;IAEvB,MAAM,QAAQ,GAAG;;;mCAGgB,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;IAEzF,MAAM,IAAI,GAAsC,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAClF,OAAO,IAAI,CAAC,OAAO,CAAC;AACtB,CAAC"}
1
+ {"version":3,"file":"workItemSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/workItemSelector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAQlD;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,GAAe,EACf,aAAuB;IAEvB,MAAM,QAAQ,GAAG;;;mCAGgB,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;IAEzF,MAAM,IAAI,GAAsC,MAAM,YAAY,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAClF,OAAO,IAAI,CAAC,OAAO,CAAC;AACtB,CAAC"}
@@ -28,12 +28,12 @@ export declare enum TestLevel {
28
28
  RunLocalTests = "RunLocalTests",
29
29
  RunAllTestsInOrg = "RunAllTestsInOrg"
30
30
  }
31
- export interface ApiError extends Error {
31
+ export type ApiError = Error & {
32
32
  errorCode: string;
33
- }
34
- export interface ApiPromoteResponse {
33
+ };
34
+ export type ApiPromoteResponse = {
35
35
  jobId: string;
36
- }
36
+ };
37
37
  export type WorkItem = {
38
38
  Name: string;
39
39
  };
@@ -1,18 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AsyncOperationStatus = exports.TestLevel = void 0;
4
- var TestLevel;
1
+ export var TestLevel;
5
2
  (function (TestLevel) {
6
3
  TestLevel["NoTestRun"] = "NoTestRun";
7
4
  TestLevel["RunSpecifiedTests"] = "RunSpecifiedTests";
8
5
  TestLevel["RunLocalTests"] = "RunLocalTests";
9
6
  TestLevel["RunAllTestsInOrg"] = "RunAllTestsInOrg";
10
- })(TestLevel || (exports.TestLevel = TestLevel = {}));
11
- var AsyncOperationStatus;
7
+ })(TestLevel || (TestLevel = {}));
8
+ export var AsyncOperationStatus;
12
9
  (function (AsyncOperationStatus) {
13
10
  AsyncOperationStatus["Error"] = "Error";
14
11
  AsyncOperationStatus["Completed"] = "Completed";
15
12
  AsyncOperationStatus["Ignored"] = "Ignored";
16
13
  AsyncOperationStatus["InProgress"] = "In Progress";
17
- })(AsyncOperationStatus || (exports.AsyncOperationStatus = AsyncOperationStatus = {}));
14
+ })(AsyncOperationStatus || (AsyncOperationStatus = {}));
18
15
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/common/types.ts"],"names":[],"mappings":";;;AAoCA,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oDAAuC,CAAA;IACvC,4CAA+B,CAAA;IAC/B,kDAAqC,CAAA;AACvC,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAuED,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,uCAAe,CAAA;IACf,+CAAuB,CAAA;IACvB,2CAAmB,CAAA;IACnB,kDAA0B,CAAA;AAC5B,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/common/types.ts"],"names":[],"mappings":"AA6CA,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oDAAuC,CAAA;IACvC,4CAA+B,CAAA;IAC/B,kDAAqC,CAAA;AACvC,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AAuED,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,uCAAe,CAAA;IACf,+CAAuB,CAAA;IACvB,2CAAmB,CAAA;IACnB,kDAA0B,CAAA;AAC5B,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B"}
@@ -1,10 +1,10 @@
1
1
  import { Connection, Org } from '@salesforce/core';
2
2
  import { Duration } from '@salesforce/kit';
3
3
  import { Nullable } from '@salesforce/ts-types';
4
- import { PipelineStage, TestLevel } from '../common';
5
- import AsyncOpStreaming from '../streamer/processors/asyncOpStream';
6
- import { AorOutputService } from './outputService/aorOutputService';
7
- import { AsyncOperationResult, DeployComponent } from './types';
4
+ import { type PipelineStage, TestLevel } from '../common/index.js';
5
+ import AsyncOpStreaming from '../streamer/processors/asyncOpStream.js';
6
+ import { AorOutputService } from './outputService/aorOutputService.js';
7
+ import { AsyncOperationResult, DeployComponent } from './types.js';
8
8
  /**
9
9
  * @description validates the following:
10
10
  * - if RunSpecifiedTests is specified, then it needs to indicate tests to run.
@@ -1,30 +1,27 @@
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
- exports.validateTestFlags = validateTestFlags;
10
- exports.fetchAndValidatePipelineStage = fetchAndValidatePipelineStage;
11
- exports.fetchAsyncOperationResult = fetchAsyncOperationResult;
12
- exports.getAsyncOperationStreamer = getAsyncOperationStreamer;
13
- exports.containsSfId = containsSfId;
14
- exports.matchesSfId = matchesSfId;
15
- exports.sObjectToArrayOfKeyValue = sObjectToArrayOfKeyValue;
16
- exports.formatFieldName = formatFieldName;
17
- exports.getFormattedDeployComponentsByAyncOpId = getFormattedDeployComponentsByAyncOpId;
18
- exports.sleep = sleep;
19
- const core_1 = require("@salesforce/core");
20
- const common_1 = require("../common");
21
- const pipelineStageSelector_1 = require("../common/selectors/pipelineStageSelector");
22
- const asyncOpStream_1 = require("../streamer/processors/asyncOpStream");
23
- const outputUtils_1 = require("./outputService/outputUtils");
24
- const asyncOperationResultsSelector_1 = require("./selectors/asyncOperationResultsSelector");
25
- const deployComponentsSelector_1 = require("./selectors/deployComponentsSelector");
26
- core_1.Messages.importMessagesDirectory(__dirname);
27
- const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'commonErrors');
16
+ import { Messages } from '@salesforce/core';
17
+ import { TestLevel } from '../common/index.js';
18
+ import { selectPipelineStagesByProject } from '../common/selectors/pipelineStageSelector.js';
19
+ import AsyncOpStreaming from '../streamer/processors/asyncOpStream.js';
20
+ import { colorStatus } from './outputService/outputUtils.js';
21
+ import { selectAsyncOperationResultById } from './selectors/asyncOperationResultsSelector.js';
22
+ import { selectDeployComponentsByAsyncOpId, selectDeployComponentsForCheckDeployByAsynchOpId, } from './selectors/deployComponentsSelector.js';
23
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
24
+ const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'commonErrors');
28
25
  /**
29
26
  * @description validates the following:
30
27
  * - if RunSpecifiedTests is specified, then it needs to indicate tests to run.
@@ -32,11 +29,11 @@ const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center'
32
29
  * @param testLevel specified test level
33
30
  * @param tests specific tests to run
34
31
  */
35
- function validateTestFlags(testLevel, tests) {
36
- if (testLevel === common_1.TestLevel.RunSpecifiedTests && (tests ?? []).length === 0) {
32
+ export function validateTestFlags(testLevel, tests) {
33
+ if (testLevel === TestLevel.RunSpecifiedTests && (tests ?? []).length === 0) {
37
34
  throw messages.createError('error.NoTestsSpecified');
38
35
  }
39
- else if (testLevel !== common_1.TestLevel.RunSpecifiedTests && tests) {
36
+ else if (testLevel !== TestLevel.RunSpecifiedTests && tests) {
40
37
  throw messages.createError('error.InvalidRunTests');
41
38
  }
42
39
  }
@@ -52,10 +49,10 @@ function validateTestFlags(testLevel, tests) {
52
49
  * @throws if it cant' find the given project.
53
50
  * @throws if it cant' find the a pipeline stge that matches the given branch.
54
51
  */
55
- async function fetchAndValidatePipelineStage(targetOrg, projectName, branchName) {
52
+ export async function fetchAndValidatePipelineStage(targetOrg, projectName, branchName) {
56
53
  let stages;
57
54
  try {
58
- stages = await (0, pipelineStageSelector_1.selectPipelineStagesByProject)(targetOrg.getConnection(), projectName);
55
+ stages = await selectPipelineStagesByProject(targetOrg.getConnection(), projectName);
59
56
  }
60
57
  catch (err) {
61
58
  const error = err;
@@ -74,10 +71,10 @@ async function fetchAndValidatePipelineStage(targetOrg, projectName, branchName)
74
71
  }
75
72
  return stage;
76
73
  }
77
- async function fetchAsyncOperationResult(con, aorId) {
74
+ export async function fetchAsyncOperationResult(con, aorId) {
78
75
  let aor;
79
76
  try {
80
- aor = await (0, asyncOperationResultsSelector_1.selectAsyncOperationResultById)(con, aorId);
77
+ aor = await selectAsyncOperationResultById(con, aorId);
81
78
  }
82
79
  catch (err) {
83
80
  const error = err;
@@ -88,8 +85,8 @@ async function fetchAsyncOperationResult(con, aorId) {
88
85
  }
89
86
  return aor;
90
87
  }
91
- function getAsyncOperationStreamer(org, waitTime, idToInspect, outputService) {
92
- return new asyncOpStream_1.default(org, waitTime, idToInspect, outputService);
88
+ export function getAsyncOperationStreamer(org, waitTime, idToInspect, outputService) {
89
+ return new AsyncOpStreaming(org, waitTime, idToInspect, outputService);
93
90
  }
94
91
  /**
95
92
  *
@@ -100,7 +97,7 @@ function getAsyncOperationStreamer(org, waitTime, idToInspect, outputService) {
100
97
  * @param idToFind id to look for
101
98
  * @returns true is the array contains the given id
102
99
  */
103
- function containsSfId(idsToInspect, idToFind) {
100
+ export function containsSfId(idsToInspect, idToFind) {
104
101
  let shortId;
105
102
  if (idToFind.length === 18) {
106
103
  shortId = idToFind.substring(0, 15);
@@ -121,7 +118,7 @@ function containsSfId(idsToInspect, idToFind) {
121
118
  * @param secondId
122
119
  * @returns true is the Ids match
123
120
  */
124
- function matchesSfId(firstId, secondId) {
121
+ export function matchesSfId(firstId, secondId) {
125
122
  return containsSfId([firstId], secondId);
126
123
  }
127
124
  /**
@@ -131,7 +128,7 @@ function matchesSfId(firstId, secondId) {
131
128
  * @param sObj sObject to convert.
132
129
  * @returns an array of {key : value}
133
130
  */
134
- function sObjectToArrayOfKeyValue(sObj) {
131
+ export function sObjectToArrayOfKeyValue(sObj) {
135
132
  const acumulator = [];
136
133
  return Object.entries(sObj).reduce((res, [key, value]) => {
137
134
  if (key !== 'attributes') {
@@ -139,7 +136,7 @@ function sObjectToArrayOfKeyValue(sObj) {
139
136
  return res.concat(sObjectToArrayOfKeyValue(value));
140
137
  }
141
138
  else if (key === 'sf_devops__Status__c') {
142
- return res.concat({ key: formatFieldName(key), value: (0, outputUtils_1.colorStatus)(value) });
139
+ return res.concat({ key: formatFieldName(key), value: colorStatus(value) });
143
140
  }
144
141
  else {
145
142
  return res.concat({ key: formatFieldName(key), value: value });
@@ -154,7 +151,7 @@ function sObjectToArrayOfKeyValue(sObj) {
154
151
  * @param fieldName DOCe field name.
155
152
  * @returns formatted field name.
156
153
  */
157
- function formatFieldName(fieldName) {
154
+ export function formatFieldName(fieldName) {
158
155
  return fieldName.replace('sf_devops__', '').replace('__c', '').replace('_', '');
159
156
  }
160
157
  /**
@@ -164,12 +161,14 @@ function formatFieldName(fieldName) {
164
161
  * @param asyncOpId The Id of the AsyncOperation
165
162
  * @returns A list of DeployComponent
166
163
  */
167
- async function getFormattedDeployComponentsByAyncOpId(con, asyncOpId, isValidateDeploy) {
164
+ export async function getFormattedDeployComponentsByAyncOpId(con, asyncOpId, isValidateDeploy) {
168
165
  const components = isValidateDeploy
169
- ? await (0, deployComponentsSelector_1.selectDeployComponentsForCheckDeployByAsynchOpId)(con, asyncOpId)
170
- : await (0, deployComponentsSelector_1.selectDeployComponentsByAsyncOpId)(con, asyncOpId);
166
+ ? await selectDeployComponentsForCheckDeployByAsynchOpId(con, asyncOpId)
167
+ : await selectDeployComponentsByAsyncOpId(con, asyncOpId);
171
168
  components.forEach((component) => {
169
+ // eslint-disable-next-line no-param-reassign
172
170
  component.Type = component.sf_devops__Source_Component__c.split(':')[0];
171
+ // eslint-disable-next-line no-param-reassign
173
172
  component.Name = component.sf_devops__Source_Component__c.split(':')[1];
174
173
  });
175
174
  return components;
@@ -179,7 +178,7 @@ async function getFormattedDeployComponentsByAyncOpId(con, asyncOpId, isValidate
179
178
  *
180
179
  * @param ms Number of miliseconds to sleep thread
181
180
  */
182
- async function sleep(ms) {
181
+ export async function sleep(ms) {
183
182
  return new Promise((resolve) => {
184
183
  setTimeout(resolve, ms);
185
184
  });
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/common/utils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AA2BH,8CAMC;AAcD,sEAyBC;AAED,8DAYC;AAED,8DAOC;AAWD,oCAUC;AAUD,kCAEC;AASD,4DAcC;AAQD,0CAEC;AASD,wFAeC;AAOD,sBAIC;AAlMD,2CAA6D;AAG7D,sCAAqD;AACrD,qFAA0F;AAC1F,wEAAoE;AACpE,6DAA0D;AAE1D,6FAA2F;AAE3F,mFAG8C;AAE9C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,cAAc,CAAC,CAAC;AAE3F;;;;;;GAMG;AACH,SAAgB,iBAAiB,CAAC,SAA8B,EAAE,KAAyB;IACzF,IAAI,SAAS,KAAK,kBAAS,CAAC,iBAAiB,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC5E,MAAM,QAAQ,CAAC,WAA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