@salesforce/plugin-devops-center 0.1.0-beta.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.
- package/LICENSE.txt +12 -0
- package/README.md +245 -0
- package/lib/commands/deploy/pipeline/report.d.ts +15 -0
- package/lib/commands/deploy/pipeline/report.js +42 -0
- package/lib/commands/deploy/pipeline/report.js.map +1 -0
- package/lib/commands/deploy/pipeline/resume.d.ts +12 -0
- package/lib/commands/deploy/pipeline/resume.js +28 -0
- package/lib/commands/deploy/pipeline/resume.js.map +1 -0
- package/lib/commands/deploy/pipeline.d.ts +26 -0
- package/lib/commands/deploy/pipeline.js +50 -0
- package/lib/commands/deploy/pipeline.js.map +1 -0
- package/lib/common/base/abstractPromote.d.ts +69 -0
- package/lib/common/base/abstractPromote.js +173 -0
- package/lib/common/base/abstractPromote.js.map +1 -0
- package/lib/common/base/abstractReportOnPromote.d.ts +17 -0
- package/lib/common/base/abstractReportOnPromote.js +64 -0
- package/lib/common/base/abstractReportOnPromote.js.map +1 -0
- package/lib/common/base/abstractResume.d.ts +37 -0
- package/lib/common/base/abstractResume.js +90 -0
- package/lib/common/base/abstractResume.js.map +1 -0
- package/lib/common/constants.d.ts +9 -0
- package/lib/common/constants.js +20 -0
- package/lib/common/constants.js.map +1 -0
- package/lib/common/deployPipelineCache.d.ts +39 -0
- package/lib/common/deployPipelineCache.js +81 -0
- package/lib/common/deployPipelineCache.js.map +1 -0
- package/lib/common/flags/flags.d.ts +19 -0
- package/lib/common/flags/flags.js +84 -0
- package/lib/common/flags/flags.js.map +1 -0
- package/lib/common/flags/promote/promoteFlags.d.ts +12 -0
- package/lib/common/flags/promote/promoteFlags.js +52 -0
- package/lib/common/flags/promote/promoteFlags.js.map +1 -0
- package/lib/common/index.d.ts +2 -0
- package/lib/common/index.js +18 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/outputColumns.d.ts +17 -0
- package/lib/common/outputColumns.js +24 -0
- package/lib/common/outputColumns.js.map +1 -0
- package/lib/common/outputService/aorOutputService.d.ts +43 -0
- package/lib/common/outputService/aorOutputService.js +50 -0
- package/lib/common/outputService/aorOutputService.js.map +1 -0
- package/lib/common/outputService/deployCommandOutputService.d.ts +12 -0
- package/lib/common/outputService/deployCommandOutputService.js +28 -0
- package/lib/common/outputService/deployCommandOutputService.js.map +1 -0
- package/lib/common/outputService/deploySummaryBuilder.d.ts +32 -0
- package/lib/common/outputService/deploySummaryBuilder.js +185 -0
- package/lib/common/outputService/deploySummaryBuilder.js.map +1 -0
- package/lib/common/outputService/deploymentResultOutputService.d.ts +23 -0
- package/lib/common/outputService/deploymentResultOutputService.js +18 -0
- package/lib/common/outputService/deploymentResultOutputService.js.map +1 -0
- package/lib/common/outputService/index.d.ts +6 -0
- package/lib/common/outputService/index.js +20 -0
- package/lib/common/outputService/index.js.map +1 -0
- package/lib/common/outputService/outputService.d.ts +27 -0
- package/lib/common/outputService/outputService.js +30 -0
- package/lib/common/outputService/outputService.js.map +1 -0
- package/lib/common/outputService/outputServiceFactory.d.ts +27 -0
- package/lib/common/outputService/outputServiceFactory.js +39 -0
- package/lib/common/outputService/outputServiceFactory.js.map +1 -0
- package/lib/common/outputService/outputUtils.d.ts +3 -0
- package/lib/common/outputService/outputUtils.js +26 -0
- package/lib/common/outputService/outputUtils.js.map +1 -0
- package/lib/common/outputService/promoteOutputService.d.ts +30 -0
- package/lib/common/outputService/promoteOutputService.js +55 -0
- package/lib/common/outputService/promoteOutputService.js.map +1 -0
- package/lib/common/outputService/reportOutputService.d.ts +21 -0
- package/lib/common/outputService/reportOutputService.js +54 -0
- package/lib/common/outputService/reportOutputService.js.map +1 -0
- package/lib/common/outputService/resumeCommandOutputService.d.ts +12 -0
- package/lib/common/outputService/resumeCommandOutputService.js +30 -0
- package/lib/common/outputService/resumeCommandOutputService.js.map +1 -0
- package/lib/common/outputService/resumeOutputService.d.ts +15 -0
- package/lib/common/outputService/resumeOutputService.js +19 -0
- package/lib/common/outputService/resumeOutputService.js.map +1 -0
- package/lib/common/selectors/asyncOperationResultsSelector.d.ts +7 -0
- package/lib/common/selectors/asyncOperationResultsSelector.js +21 -0
- package/lib/common/selectors/asyncOperationResultsSelector.js.map +1 -0
- package/lib/common/selectors/deployComponentsSelector.d.ts +3 -0
- package/lib/common/selectors/deployComponentsSelector.js +18 -0
- package/lib/common/selectors/deployComponentsSelector.js.map +1 -0
- package/lib/common/selectors/deployProgressSummarySelector.d.ts +13 -0
- package/lib/common/selectors/deployProgressSummarySelector.js +24 -0
- package/lib/common/selectors/deployProgressSummarySelector.js.map +1 -0
- package/lib/common/selectors/deploymentResultsSelector.d.ts +7 -0
- package/lib/common/selectors/deploymentResultsSelector.js +24 -0
- package/lib/common/selectors/deploymentResultsSelector.js.map +1 -0
- package/lib/common/selectors/environmentSelector.d.ts +11 -0
- package/lib/common/selectors/environmentSelector.js +22 -0
- package/lib/common/selectors/environmentSelector.js.map +1 -0
- package/lib/common/selectors/namedCredentialSelector.d.ts +6 -0
- package/lib/common/selectors/namedCredentialSelector.js +24 -0
- package/lib/common/selectors/namedCredentialSelector.js.map +1 -0
- package/lib/common/selectors/pipelineStageSelector.d.ts +7 -0
- package/lib/common/selectors/pipelineStageSelector.js +22 -0
- package/lib/common/selectors/pipelineStageSelector.js.map +1 -0
- package/lib/common/selectors/workItemSelector.d.ts +11 -0
- package/lib/common/selectors/workItemSelector.js +22 -0
- package/lib/common/selectors/workItemSelector.js.map +1 -0
- package/lib/common/types.d.ts +98 -0
- package/lib/common/types.js +24 -0
- package/lib/common/types.js.map +1 -0
- package/lib/common/utils.d.ts +75 -0
- package/lib/common/utils.js +176 -0
- package/lib/common/utils.js.map +1 -0
- package/lib/configMeta.d.ts +13 -0
- package/lib/configMeta.js +28 -0
- package/lib/configMeta.js.map +1 -0
- package/lib/streamer/doceMonitor.d.ts +7 -0
- package/lib/streamer/doceMonitor.js +9 -0
- package/lib/streamer/doceMonitor.js.map +1 -0
- package/lib/streamer/doceStream.d.ts +20 -0
- package/lib/streamer/doceStream.js +33 -0
- package/lib/streamer/doceStream.js.map +1 -0
- package/lib/streamer/processors/asyncOpStream.d.ts +20 -0
- package/lib/streamer/processors/asyncOpStream.js +48 -0
- package/lib/streamer/processors/asyncOpStream.js.map +1 -0
- package/lib/streamer/sObjectStream.d.ts +22 -0
- package/lib/streamer/sObjectStream.js +40 -0
- package/lib/streamer/sObjectStream.js.map +1 -0
- package/messages/aorOperations.output.md +8 -0
- package/messages/cache.md +3 -0
- package/messages/commonErrors.md +31 -0
- package/messages/commonFlags.md +53 -0
- package/messages/config.md +3 -0
- package/messages/deploy.output.md +31 -0
- package/messages/deploy.pipeline.md +37 -0
- package/messages/deploy.pipeline.report.md +49 -0
- package/messages/deploy.pipeline.resume.md +23 -0
- package/messages/promoteFlags.md +53 -0
- package/messages/resume.output.md +4 -0
- package/oclif.manifest.json +247 -0
- package/package.json +115 -0
- package/schemas/deploy-pipeline-report.json +25 -0
- package/schemas/deploy-pipeline-resume.json +25 -0
- package/schemas/deploy-pipeline.json +25 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
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
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.AbstractDeploymentResultOutputService = void 0;
|
|
10
|
+
const outputService_1 = require("./outputService");
|
|
11
|
+
class AbstractDeploymentResultOutputService extends outputService_1.AbstractOutputService {
|
|
12
|
+
constructor(flags, deploymentResult) {
|
|
13
|
+
super(flags);
|
|
14
|
+
this.deploymentResult = deploymentResult;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.AbstractDeploymentResultOutputService = AbstractDeploymentResultOutputService;
|
|
18
|
+
//# sourceMappingURL=deploymentResultOutputService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploymentResultOutputService.js","sourceRoot":"","sources":["../../../src/common/outputService/deploymentResultOutputService.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAIH,mDAAoF;AAYpF,MAAsB,qCACpB,SAAQ,qCAAwB;IAKhC,YAAmB,KAAQ,EAAE,gBAAkC;QAC7D,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC3C,CAAC;CAWF;AApBD,sFAoBC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { AorOutputFlags, AorOutputService, AbstractAorOutputService } from './aorOutputService';
|
|
2
|
+
export { DeployCommandOutputService } from './deployCommandOutputService';
|
|
3
|
+
export { DeploySummaryBuilder } from './deploySummaryBuilder';
|
|
4
|
+
export { OutputServiceFactory } from './outputServiceFactory';
|
|
5
|
+
export { PromoteOutputService, AbstractPromoteOutputService } from './promoteOutputService';
|
|
6
|
+
export { ResumeOutputService } from './resumeOutputService';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AbstractPromoteOutputService = exports.OutputServiceFactory = exports.DeploySummaryBuilder = exports.DeployCommandOutputService = exports.AbstractAorOutputService = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* Copyright (c) 2022, 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
|
|
9
|
+
*/
|
|
10
|
+
var aorOutputService_1 = require("./aorOutputService");
|
|
11
|
+
Object.defineProperty(exports, "AbstractAorOutputService", { enumerable: true, get: function () { return aorOutputService_1.AbstractAorOutputService; } });
|
|
12
|
+
var deployCommandOutputService_1 = require("./deployCommandOutputService");
|
|
13
|
+
Object.defineProperty(exports, "DeployCommandOutputService", { enumerable: true, get: function () { return deployCommandOutputService_1.DeployCommandOutputService; } });
|
|
14
|
+
var deploySummaryBuilder_1 = require("./deploySummaryBuilder");
|
|
15
|
+
Object.defineProperty(exports, "DeploySummaryBuilder", { enumerable: true, get: function () { return deploySummaryBuilder_1.DeploySummaryBuilder; } });
|
|
16
|
+
var outputServiceFactory_1 = require("./outputServiceFactory");
|
|
17
|
+
Object.defineProperty(exports, "OutputServiceFactory", { enumerable: true, get: function () { return outputServiceFactory_1.OutputServiceFactory; } });
|
|
18
|
+
var promoteOutputService_1 = require("./promoteOutputService");
|
|
19
|
+
Object.defineProperty(exports, "AbstractPromoteOutputService", { enumerable: true, get: function () { return promoteOutputService_1.AbstractPromoteOutputService; } });
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/outputService/index.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,uDAAgG;AAArD,4HAAA,wBAAwB,OAAA;AAEnE,2EAA0E;AAAjE,wIAAA,0BAA0B,OAAA;AAEnC,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAE7B,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAE7B,+DAA4F;AAA7D,oIAAA,4BAA4B,OAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ux } from '@oclif/core';
|
|
2
|
+
export type OutputFlags = {
|
|
3
|
+
verbose?: boolean;
|
|
4
|
+
concise?: boolean;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Service interface to print the output
|
|
8
|
+
*
|
|
9
|
+
* @author JuanStenghele-sf
|
|
10
|
+
*/
|
|
11
|
+
export interface OutputService {
|
|
12
|
+
/**
|
|
13
|
+
* Prints a summary of the operation being done
|
|
14
|
+
*/
|
|
15
|
+
printOpSummary(): void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Abstract class that implements OutputService interface
|
|
19
|
+
*
|
|
20
|
+
* @author JuanStenghele-sf
|
|
21
|
+
*/
|
|
22
|
+
export declare abstract class AbstractOutputService<T extends OutputFlags> implements OutputService {
|
|
23
|
+
protected flags: T;
|
|
24
|
+
constructor(flags: T);
|
|
25
|
+
displayTable(rows: any[], title: string, columns: ux.Table.table.Columns<any>): void;
|
|
26
|
+
abstract printOpSummary(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
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
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.AbstractOutputService = void 0;
|
|
10
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
11
|
+
const core_1 = require("@oclif/core");
|
|
12
|
+
/**
|
|
13
|
+
* Abstract class that implements OutputService interface
|
|
14
|
+
*
|
|
15
|
+
* @author JuanStenghele-sf
|
|
16
|
+
*/
|
|
17
|
+
class AbstractOutputService {
|
|
18
|
+
constructor(flags) {
|
|
19
|
+
this.flags = flags;
|
|
20
|
+
}
|
|
21
|
+
// eslint-disable-next-line class-methods-use-this
|
|
22
|
+
displayTable(rows, title, columns) {
|
|
23
|
+
core_1.ux.log();
|
|
24
|
+
core_1.ux.styledHeader(title);
|
|
25
|
+
core_1.ux.table(rows, columns);
|
|
26
|
+
core_1.ux.log();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.AbstractOutputService = AbstractOutputService;
|
|
30
|
+
//# sourceMappingURL=outputService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outputService.js","sourceRoot":"","sources":["../../../src/common/outputService/outputService.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,uDAAuD;AAEvD,sCAAiC;AAmBjC;;;;GAIG;AACH,MAAsB,qBAAqB;IAIzC,YAAmB,KAAQ;QACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,kDAAkD;IAC3C,YAAY,CAAC,IAAW,EAAE,KAAa,EAAE,OAAoC;QAClF,SAAE,CAAC,GAAG,EAAE,CAAC;QACT,SAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QACvB,SAAE,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACxB,SAAE,CAAC,GAAG,EAAE,CAAC;IACX,CAAC;CAGF;AAjBD,sDAiBC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Connection } from '@salesforce/core';
|
|
2
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
|
+
import * as Promote from '../base/abstractPromote';
|
|
4
|
+
import { DeploymentResult } from '../types';
|
|
5
|
+
import { Flags } from '../base/abstractReportOnPromote';
|
|
6
|
+
import { DeployCommandOutputService } from './deployCommandOutputService';
|
|
7
|
+
import { PromoteReportOutputService } from './reportOutputService';
|
|
8
|
+
import { ResumeCommandOutputService } from './resumeCommandOutputService';
|
|
9
|
+
/**
|
|
10
|
+
* Factory service for creating output services
|
|
11
|
+
*
|
|
12
|
+
* @author JuanStenghele-sf
|
|
13
|
+
*/
|
|
14
|
+
export declare class OutputServiceFactory {
|
|
15
|
+
/**
|
|
16
|
+
* Create a service to print the deployment info.
|
|
17
|
+
*/
|
|
18
|
+
forDeployment(flags: Promote.Flags<typeof SfCommand>, con: Connection): DeployCommandOutputService;
|
|
19
|
+
/**
|
|
20
|
+
* Create a service to print the resume info.
|
|
21
|
+
*/
|
|
22
|
+
forResume(operationType: string): ResumeCommandOutputService;
|
|
23
|
+
/**
|
|
24
|
+
* Create a service to print the report info.
|
|
25
|
+
*/
|
|
26
|
+
forPromotionReport(flags: Flags<typeof SfCommand>, operationResult: DeploymentResult, operationName: string): PromoteReportOutputService;
|
|
27
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
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
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.OutputServiceFactory = void 0;
|
|
10
|
+
const deployCommandOutputService_1 = require("./deployCommandOutputService");
|
|
11
|
+
const reportOutputService_1 = require("./reportOutputService");
|
|
12
|
+
const resumeCommandOutputService_1 = require("./resumeCommandOutputService");
|
|
13
|
+
/**
|
|
14
|
+
* Factory service for creating output services
|
|
15
|
+
*
|
|
16
|
+
* @author JuanStenghele-sf
|
|
17
|
+
*/
|
|
18
|
+
class OutputServiceFactory {
|
|
19
|
+
/**
|
|
20
|
+
* Create a service to print the deployment info.
|
|
21
|
+
*/
|
|
22
|
+
forDeployment(flags, con) {
|
|
23
|
+
return new deployCommandOutputService_1.DeployCommandOutputService(flags, con);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Create a service to print the resume info.
|
|
27
|
+
*/
|
|
28
|
+
forResume(operationType) {
|
|
29
|
+
return new resumeCommandOutputService_1.ResumeCommandOutputService(operationType);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Create a service to print the report info.
|
|
33
|
+
*/
|
|
34
|
+
forPromotionReport(flags, operationResult, operationName) {
|
|
35
|
+
return new reportOutputService_1.PromoteReportOutputService(flags, operationResult, operationName);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.OutputServiceFactory = OutputServiceFactory;
|
|
39
|
+
//# sourceMappingURL=outputServiceFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outputServiceFactory.js","sourceRoot":"","sources":["../../../src/common/outputService/outputServiceFactory.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AASH,6EAA0E;AAC1E,+DAAmE;AACnE,6EAA0E;AAE1E;;;;GAIG;AACH,MAAa,oBAAoB;IAC/B;;OAEG;IACI,aAAa,CAAC,KAAsC,EAAE,GAAe;QAC1E,OAAO,IAAI,uDAA0B,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACI,SAAS,CAAC,aAAqB;QACpC,OAAO,IAAI,uDAA0B,CAAC,aAAa,CAAC,CAAC;IACvD,CAAC;IAED;;OAEG;IACI,kBAAkB,CACvB,KAA8B,EAC9B,eAAiC,EACjC,aAAqB;QAErB,OAAO,IAAI,gDAA0B,CAAC,KAAK,EAAE,eAAe,EAAE,aAAa,CAAC,CAAC;IAC/E,CAAC;CACF;AAzBD,oDAyBC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.colorStatus = exports.tableHeader = void 0;
|
|
4
|
+
/*
|
|
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
|
|
9
|
+
*/
|
|
10
|
+
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
11
|
+
const chalk_1 = require("chalk");
|
|
12
|
+
const types_1 = require("../types");
|
|
13
|
+
function tableHeader(message) {
|
|
14
|
+
return (0, chalk_1.blue)((0, chalk_1.bold)(message));
|
|
15
|
+
}
|
|
16
|
+
exports.tableHeader = tableHeader;
|
|
17
|
+
function colorStatus(status) {
|
|
18
|
+
if (status === types_1.AsyncOperationStatus.Completed)
|
|
19
|
+
return sf_plugins_core_1.StandardColors.success(status);
|
|
20
|
+
if (status === types_1.AsyncOperationStatus.Error)
|
|
21
|
+
return sf_plugins_core_1.StandardColors.error(status);
|
|
22
|
+
else
|
|
23
|
+
return sf_plugins_core_1.StandardColors.warning(status);
|
|
24
|
+
}
|
|
25
|
+
exports.colorStatus = colorStatus;
|
|
26
|
+
//# sourceMappingURL=outputUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outputUtils.js","sourceRoot":"","sources":["../../../src/common/outputService/outputUtils.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,iEAA6D;AAC7D,iCAAmC;AACnC,oCAAgD;AAEhD,SAAgB,WAAW,CAAC,OAAe;IACzC,OAAO,IAAA,YAAI,EAAC,IAAA,YAAI,EAAC,OAAO,CAAC,CAAC,CAAC;AAC7B,CAAC;AAFD,kCAEC;AACD,SAAgB,WAAW,CAAC,MAA4B;IACtD,IAAI,MAAM,KAAK,4BAAoB,CAAC,SAAS;QAAE,OAAO,gCAAc,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACrF,IAAI,MAAM,KAAK,4BAAoB,CAAC,KAAK;QAAE,OAAO,gCAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;;QAC1E,OAAO,gCAAc,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC;AAJD,kCAIC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Connection } from '@salesforce/core';
|
|
2
|
+
import { AorOutputFlags } from './aorOutputService';
|
|
3
|
+
import { DeploySummaryBuilder } from './deploySummaryBuilder';
|
|
4
|
+
import { ResumeOutputService, AbstractResumeOutputService } from './resumeOutputService';
|
|
5
|
+
export type PromoteOutputFlags = {
|
|
6
|
+
branch: string;
|
|
7
|
+
} & AorOutputFlags;
|
|
8
|
+
/**
|
|
9
|
+
* Interface for output methods for promote (and only deploy) operations
|
|
10
|
+
*
|
|
11
|
+
* @author JuanStenghele-sf
|
|
12
|
+
*/
|
|
13
|
+
export interface PromoteOutputService extends ResumeOutputService {
|
|
14
|
+
displayEndResults(): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Abstract class that implements PromoteOutputService interface
|
|
18
|
+
*
|
|
19
|
+
* @author JuanStenghele-sf
|
|
20
|
+
*/
|
|
21
|
+
export declare abstract class AbstractPromoteOutputService extends AbstractResumeOutputService<PromoteOutputFlags> implements PromoteOutputService {
|
|
22
|
+
private summaryBuilder;
|
|
23
|
+
private con;
|
|
24
|
+
constructor(flags: PromoteOutputFlags, summaryBuilder: DeploySummaryBuilder, con: Connection);
|
|
25
|
+
printOpSummary(): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* This method will print a table of the deployed components for the current AOR
|
|
28
|
+
*/
|
|
29
|
+
displayEndResults(): Promise<void>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
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
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.AbstractPromoteOutputService = void 0;
|
|
10
|
+
const core_1 = require("@salesforce/core");
|
|
11
|
+
const outputColumns_1 = require("../outputColumns");
|
|
12
|
+
const utils_1 = require("../utils");
|
|
13
|
+
const resumeOutputService_1 = require("./resumeOutputService");
|
|
14
|
+
/* eslint-disable @typescript-eslint/no-empty-interface, no-console */
|
|
15
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
16
|
+
const output = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'deploy.output');
|
|
17
|
+
/**
|
|
18
|
+
* Abstract class that implements PromoteOutputService interface
|
|
19
|
+
*
|
|
20
|
+
* @author JuanStenghele-sf
|
|
21
|
+
*/
|
|
22
|
+
class AbstractPromoteOutputService extends resumeOutputService_1.AbstractResumeOutputService {
|
|
23
|
+
constructor(flags, summaryBuilder, con) {
|
|
24
|
+
super(flags, '');
|
|
25
|
+
this.summaryBuilder = summaryBuilder;
|
|
26
|
+
this.con = con;
|
|
27
|
+
}
|
|
28
|
+
async printOpSummary() {
|
|
29
|
+
if (this.flags.async) {
|
|
30
|
+
// If the async flag is used we print an specific message
|
|
31
|
+
console.log(output.getMessage('output.async-run-info', [this.aorId, this.aorId]));
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
// We build a summary output service
|
|
35
|
+
const deploySummaryOutputService = await this.summaryBuilder.build(this.flags.branch, this.aorId, this.flags);
|
|
36
|
+
if (deploySummaryOutputService === undefined) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
// We print the summary
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/await-thenable
|
|
41
|
+
await deploySummaryOutputService.printOpSummary();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* This method will print a table of the deployed components for the current AOR
|
|
46
|
+
*/
|
|
47
|
+
async displayEndResults() {
|
|
48
|
+
if (this.flags.verbose) {
|
|
49
|
+
const components = await (0, utils_1.getFormattedDeployComponentsByAyncOpId)(this.con, this.aorId);
|
|
50
|
+
this.displayTable(components, outputColumns_1.DeployComponentsTable.title, outputColumns_1.DeployComponentsTable.columns);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.AbstractPromoteOutputService = AbstractPromoteOutputService;
|
|
55
|
+
//# sourceMappingURL=promoteOutputService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promoteOutputService.js","sourceRoot":"","sources":["../../../src/common/outputService/promoteOutputService.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAAwD;AACxD,oDAAyD;AAEzD,oCAAkE;AAIlE,+DAAyF;AAEzF,sEAAsE;AAEtE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,MAAM,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,eAAe,CAAC,CAAC;AAe1F;;;;GAIG;AACH,MAAsB,4BACpB,SAAQ,iDAA+C;IAMvD,YAAmB,KAAyB,EAAE,cAAoC,EAAE,GAAe;QACjG,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACjB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAEM,KAAK,CAAC,cAAc;QACzB,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;YACpB,yDAAyD;YACzD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SACnF;aAAM;YACL,oCAAoC;YACpC,MAAM,0BAA0B,GAA8B,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,CAC3F,IAAI,CAAC,KAAK,CAAC,MAAM,EACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,KAAK,CACX,CAAC;YACF,IAAI,0BAA0B,KAAK,SAAS,EAAE;gBAC5C,OAAO;aACR;YAED,uBAAuB;YACvB,6DAA6D;YAC7D,MAAM,0BAA0B,CAAC,cAAc,EAAE,CAAC;SACnD;IACH,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,iBAAiB;QAC5B,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE;YACtB,MAAM,UAAU,GAAsB,MAAM,IAAA,8CAAsC,EAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;YACzG,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,qCAAqB,CAAC,KAAK,EAAE,qCAAqB,CAAC,OAAO,CAAC,CAAC;SAC3F;IACH,CAAC;CACF;AA3CD,oEA2CC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
import { Flags } from '../base/abstractReportOnPromote';
|
|
3
|
+
import { DeploymentResult } from '../types';
|
|
4
|
+
import { AbstractDeploymentResultOutputService, DeploymentResultOutputService } from './deploymentResultOutputService';
|
|
5
|
+
import { OutputFlags } from './outputService';
|
|
6
|
+
/**
|
|
7
|
+
* Interface for output methods for report operations.
|
|
8
|
+
*/
|
|
9
|
+
export interface ReportOutputService extends DeploymentResultOutputService {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Base class.
|
|
13
|
+
*/
|
|
14
|
+
export declare abstract class AbstractReportOutputService<T extends OutputFlags> extends AbstractDeploymentResultOutputService<T> implements ReportOutputService {
|
|
15
|
+
}
|
|
16
|
+
export declare class PromoteReportOutputService extends AbstractReportOutputService<OutputFlags> {
|
|
17
|
+
private operationName;
|
|
18
|
+
constructor(flags: Flags<typeof SfCommand>, deploymentResult: DeploymentResult, operationName: string);
|
|
19
|
+
printOpSummary(): void;
|
|
20
|
+
printDeploymentResult(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
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
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.PromoteReportOutputService = exports.AbstractReportOutputService = void 0;
|
|
10
|
+
const core_1 = require("@salesforce/core");
|
|
11
|
+
const utils_1 = require("../utils");
|
|
12
|
+
const outputUtils_1 = require("./outputUtils");
|
|
13
|
+
const deploymentResultOutputService_1 = require("./deploymentResultOutputService");
|
|
14
|
+
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
15
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
16
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'deploy.pipeline.report');
|
|
17
|
+
/**
|
|
18
|
+
* Base class.
|
|
19
|
+
*/
|
|
20
|
+
class AbstractReportOutputService extends deploymentResultOutputService_1.AbstractDeploymentResultOutputService {
|
|
21
|
+
}
|
|
22
|
+
exports.AbstractReportOutputService = AbstractReportOutputService;
|
|
23
|
+
class PromoteReportOutputService extends AbstractReportOutputService {
|
|
24
|
+
constructor(flags, deploymentResult, operationName) {
|
|
25
|
+
super({
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
27
|
+
verbose: flags['verbose'],
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
29
|
+
concise: flags['concise'],
|
|
30
|
+
}, deploymentResult);
|
|
31
|
+
this.operationName = operationName;
|
|
32
|
+
}
|
|
33
|
+
printOpSummary() {
|
|
34
|
+
this.printDeploymentResult();
|
|
35
|
+
}
|
|
36
|
+
printDeploymentResult() {
|
|
37
|
+
// convert every field of the deployment result record into a key:value pair.
|
|
38
|
+
const formattedDeploymentResult = (0, utils_1.sObjectToArrayOfKeyValue)(this.deploymentResult)
|
|
39
|
+
// rename User.Name field.
|
|
40
|
+
.map((x) => {
|
|
41
|
+
x.key = x.key === 'Name' ? messages.getMessage('report.key.created-by-name') : x.key;
|
|
42
|
+
return x;
|
|
43
|
+
})
|
|
44
|
+
// sort by key.
|
|
45
|
+
.sort((a, b) => (a.key < b.key ? -1 : 1));
|
|
46
|
+
const columns = {
|
|
47
|
+
key: { header: messages.getMessage('report.key.column') },
|
|
48
|
+
value: { header: messages.getMessage('report.value.column') },
|
|
49
|
+
};
|
|
50
|
+
this.displayTable(formattedDeploymentResult, (0, outputUtils_1.tableHeader)(`${this.operationName} ${messages.getMessage('report.info.header')}`), columns);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.PromoteReportOutputService = PromoteReportOutputService;
|
|
54
|
+
//# sourceMappingURL=reportOutputService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reportOutputService.js","sourceRoot":"","sources":["../../../src/common/outputService/reportOutputService.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAGH,2CAA4C;AAE5C,oCAAoD;AAEpD,+CAA4C;AAC5C,mFAAuH;AAGvH,0DAA0D;AAE1D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,wBAAwB,CAAC,CAAC;AAOrG;;GAEG;AACH,MAAsB,2BACpB,SAAQ,qEAAwC;CACf;AAFnC,kEAEmC;AAEnC,MAAa,0BAA2B,SAAQ,2BAAwC;IAGtF,YAAmB,KAA8B,EAAE,gBAAkC,EAAE,aAAqB;QAC1G,KAAK,CACH;YACE,mEAAmE;YACnE,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;YACzB,mEAAmE;YACnE,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;SAC1B,EACD,gBAAgB,CACjB,CAAC;QACF,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAEM,cAAc;QACnB,IAAI,CAAC,qBAAqB,EAAE,CAAC;IAC/B,CAAC;IAEM,qBAAqB;QAC1B,6EAA6E;QAC7E,MAAM,yBAAyB,GAAG,IAAA,gCAAwB,EAAC,IAAI,CAAC,gBAAgB,CAAC;YAC/E,0BAA0B;aACzB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACT,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;YACrF,OAAO,CAAC,CAAC;QACX,CAAC,CAAC;YACF,eAAe;aACd,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAE5C,MAAM,OAAO,GAAG;YACd,GAAG,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC,EAAE;YACzD,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC,EAAE;SAC9D,CAAC;QAEF,IAAI,CAAC,YAAY,CACf,yBAAyB,EACzB,IAAA,yBAAW,EAAC,GAAG,IAAI,CAAC,aAAa,IAAI,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,EAAE,CAAC,EACjF,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AA1CD,gEA0CC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AbstractAorOutputService, AorOutputFlags } from './aorOutputService';
|
|
2
|
+
import { ResumeOutputService } from './resumeOutputService';
|
|
3
|
+
/**
|
|
4
|
+
* Service class to print the resume output
|
|
5
|
+
*
|
|
6
|
+
* @author JuanStenghele-sf
|
|
7
|
+
*/
|
|
8
|
+
export declare class ResumeCommandOutputService extends AbstractAorOutputService<AorOutputFlags> implements ResumeOutputService {
|
|
9
|
+
private operationType;
|
|
10
|
+
constructor(operationType: string);
|
|
11
|
+
printOpSummary(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
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
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.ResumeCommandOutputService = void 0;
|
|
10
|
+
/* eslint-disable no-console, @typescript-eslint/require-await */
|
|
11
|
+
const core_1 = require("@salesforce/core");
|
|
12
|
+
const aorOutputService_1 = require("./aorOutputService");
|
|
13
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
14
|
+
const output = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'resume.output');
|
|
15
|
+
/**
|
|
16
|
+
* Service class to print the resume output
|
|
17
|
+
*
|
|
18
|
+
* @author JuanStenghele-sf
|
|
19
|
+
*/
|
|
20
|
+
class ResumeCommandOutputService extends aorOutputService_1.AbstractAorOutputService {
|
|
21
|
+
constructor(operationType) {
|
|
22
|
+
super({}, '');
|
|
23
|
+
this.operationType = operationType;
|
|
24
|
+
}
|
|
25
|
+
printOpSummary() {
|
|
26
|
+
console.log(output.getMessage('output.summary', [this.operationType]));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.ResumeCommandOutputService = ResumeCommandOutputService;
|
|
30
|
+
//# sourceMappingURL=resumeCommandOutputService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resumeCommandOutputService.js","sourceRoot":"","sources":["../../../src/common/outputService/resumeCommandOutputService.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iEAAiE;AAEjE,2CAA4C;AAC5C,yDAA8E;AAG9E,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,MAAM,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,eAAe,CAAC,CAAC;AAE1F;;;;GAIG;AACH,MAAa,0BACX,SAAQ,2CAAwC;IAKhD,YAAmB,aAAqB;QACtC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACd,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAEM,cAAc;QACnB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC;CACF;AAdD,gEAcC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AorOutputService, AorOutputFlags, AbstractAorOutputService } from './aorOutputService';
|
|
2
|
+
/**
|
|
3
|
+
* Interface for output methods for resume operations
|
|
4
|
+
*
|
|
5
|
+
* @author JuanStenghele-sf
|
|
6
|
+
*/
|
|
7
|
+
export interface ResumeOutputService extends AorOutputService {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Abstract class that implements ResumeOutputService interface
|
|
11
|
+
*
|
|
12
|
+
* @author JuanStenghele-sf
|
|
13
|
+
*/
|
|
14
|
+
export declare abstract class AbstractResumeOutputService<T extends AorOutputFlags> extends AbstractAorOutputService<T> implements ResumeOutputService {
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
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
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.AbstractResumeOutputService = void 0;
|
|
10
|
+
const aorOutputService_1 = require("./aorOutputService");
|
|
11
|
+
/**
|
|
12
|
+
* Abstract class that implements ResumeOutputService interface
|
|
13
|
+
*
|
|
14
|
+
* @author JuanStenghele-sf
|
|
15
|
+
*/
|
|
16
|
+
class AbstractResumeOutputService extends aorOutputService_1.AbstractAorOutputService {
|
|
17
|
+
}
|
|
18
|
+
exports.AbstractResumeOutputService = AbstractResumeOutputService;
|
|
19
|
+
//# sourceMappingURL=resumeOutputService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resumeOutputService.js","sourceRoot":"","sources":["../../../src/common/outputService/resumeOutputService.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yDAAgG;AAWhG;;;;GAIG;AACH,MAAsB,2BACpB,SAAQ,2CAA2B;CACF;AAFnC,kEAEmC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Connection } from '@salesforce/core';
|
|
2
|
+
import { AsyncOperationResult } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* Returns an Async Operation Result record filtering by project name.
|
|
6
|
+
*/
|
|
7
|
+
export declare function selectAsyncOperationResultById(con: Connection, aorId: string): Promise<AsyncOperationResult>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
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
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.selectAsyncOperationResultById = void 0;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* Returns an Async Operation Result record filtering by project name.
|
|
13
|
+
*/
|
|
14
|
+
async function selectAsyncOperationResultById(con, aorId) {
|
|
15
|
+
const queryStr = `SELECT sf_devops__Status__c, sf_devops__Message__c, sf_devops__Error_Details__c
|
|
16
|
+
FROM sf_devops__Async_Operation_Result__c
|
|
17
|
+
WHERE Id = '${aorId}'`;
|
|
18
|
+
return con.singleRecordQuery(queryStr);
|
|
19
|
+
}
|
|
20
|
+
exports.selectAsyncOperationResultById = selectAsyncOperationResultById;
|
|
21
|
+
//# sourceMappingURL=asyncOperationResultsSelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncOperationResultsSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/asyncOperationResultsSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH;;;GAGG;AACI,KAAK,UAAU,8BAA8B,CAAC,GAAe,EAAE,KAAa;IACjF,MAAM,QAAQ,GAAG;;kCAEe,KAAK,GAAG,CAAC;IACzC,OAAO,GAAG,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AACzC,CAAC;AALD,wEAKC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
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
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.selectDeployComponentsByAsyncOpId = void 0;
|
|
10
|
+
async function selectDeployComponentsByAsyncOpId(con, asyncOpId) {
|
|
11
|
+
const queryStr = `SELECT sf_devops__Source_Component__c, sf_devops__Operation__c, sf_devops__File_Path__c
|
|
12
|
+
FROM sf_devops__Deploy_Component__c
|
|
13
|
+
WHERE sf_devops__Deployment_Result__r.sf_devops__Status__c = '${asyncOpId}'`;
|
|
14
|
+
const resp = await con.query(queryStr);
|
|
15
|
+
return resp.records;
|
|
16
|
+
}
|
|
17
|
+
exports.selectDeployComponentsByAsyncOpId = selectDeployComponentsByAsyncOpId;
|
|
18
|
+
//# sourceMappingURL=deployComponentsSelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployComponentsSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/deployComponentsSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAMI,KAAK,UAAU,iCAAiC,CACrD,GAAe,EACf,SAAiB;IAEjB,MAAM,QAAQ,GAAG;;oFAEiE,SAAS,GAAG,CAAC;IAC/F,MAAM,IAAI,GAAiC,MAAM,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACrE,OAAO,IAAI,CAAC,OAAO,CAAC;AACtB,CAAC;AATD,8EASC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { QueryResult } from 'jsforce';
|
|
2
|
+
import { Connection } from '@salesforce/core';
|
|
3
|
+
import { ChangeBundleInstall, WorkItemPromote, WorkItem } from '../types';
|
|
4
|
+
export type DeploySummaryQueryResult = {
|
|
5
|
+
sf_devops__Work_Item_Promotes__r: QueryResult<WorkItemPromote> | null;
|
|
6
|
+
sf_devops__Change_Bundle_Installs__r: QueryResult<ChangeBundleInstall> | null;
|
|
7
|
+
sf_devops__Work_Items__r: QueryResult<WorkItem> | null;
|
|
8
|
+
sf_devops__Operation__c: string | null;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Returns the data necessary to create the deploy summary (or part of it).
|
|
12
|
+
*/
|
|
13
|
+
export declare function selectDeployAORSummaryDataById(con: Connection, aorId: string): Promise<DeploySummaryQueryResult>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
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
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.selectDeployAORSummaryDataById = void 0;
|
|
10
|
+
/**
|
|
11
|
+
* Returns the data necessary to create the deploy summary (or part of it).
|
|
12
|
+
*/
|
|
13
|
+
async function selectDeployAORSummaryDataById(con, aorId) {
|
|
14
|
+
const queryStr = `SELECT Id, sf_devops__Operation__c,
|
|
15
|
+
(SELECT sf_devops__Pipeline_Stage__r.Name, sf_devops__Pipeline_Stage__r.sf_devops__Environment__r.sf_devops__Named_Credential__c, sf_devops__Work_Item__r.Name FROM sf_devops__Work_Item_Promotes__r),
|
|
16
|
+
(SELECT sf_devops__Change_Bundle__r.Id, sf_devops__Change_Bundle__r.sf_devops__Version_Name__c, sf_devops__Environment__r.Id FROM sf_devops__Change_Bundle_Installs__r),
|
|
17
|
+
(SELECT Name FROM sf_devops__Work_Items__r)
|
|
18
|
+
FROM sf_devops__Async_Operation_Result__c
|
|
19
|
+
WHERE Id = '${aorId}'`;
|
|
20
|
+
const resp = await con.query(queryStr);
|
|
21
|
+
return resp.records[0];
|
|
22
|
+
}
|
|
23
|
+
exports.selectDeployAORSummaryDataById = selectDeployAORSummaryDataById;
|
|
24
|
+
//# sourceMappingURL=deployProgressSummarySelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployProgressSummarySelector.js","sourceRoot":"","sources":["../../../src/common/selectors/deployProgressSummarySelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAcH;;GAEG;AACI,KAAK,UAAU,8BAA8B,CAClD,GAAe,EACf,KAAa;IAEb,MAAM,QAAQ,GAAG;;;;;kCAKe,KAAK,GAAG,CAAC;IACzC,MAAM,IAAI,GAA0C,MAAM,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC;AAZD,wEAYC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Connection } from '@salesforce/core';
|
|
2
|
+
import { DeploymentResult } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* Returns deployment result record filtering by async job id.
|
|
6
|
+
*/
|
|
7
|
+
export declare function selectOneDeploymentResultByAsyncJobId(con: Connection, asyncJobId: string): Promise<DeploymentResult>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
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
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.selectOneDeploymentResultByAsyncJobId = void 0;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* Returns deployment result record filtering by async job id.
|
|
13
|
+
*/
|
|
14
|
+
async function selectOneDeploymentResultByAsyncJobId(con, asyncJobId) {
|
|
15
|
+
const queryStr = `SELECT sf_devops__Full_Deploy__c, sf_devops__Check_Deploy__c, sf_devops__Test_Level__c, sf_devops__Run_Tests__c, sf_devops__Completion_Date__c,
|
|
16
|
+
sf_devops__Status__r.Id, sf_devops__Status__r.CreatedDate, sf_devops__Status__r.CreatedById,
|
|
17
|
+
sf_devops__Status__r.CreatedBy.Name, sf_devops__Status__r.sf_devops__Message__c,
|
|
18
|
+
sf_devops__Status__r.sf_devops__Status__c, sf_devops__Status__r.sf_devops__Error_Details__c
|
|
19
|
+
FROM sf_devops__Deployment_Result__c
|
|
20
|
+
WHERE sf_devops__Status__r.Id = '${asyncJobId}'`;
|
|
21
|
+
return con.singleRecordQuery(queryStr);
|
|
22
|
+
}
|
|
23
|
+
exports.selectOneDeploymentResultByAsyncJobId = selectOneDeploymentResultByAsyncJobId;
|
|
24
|
+
//# sourceMappingURL=deploymentResultsSelector.js.map
|