@salesforce/plugin-deploy-retrieve 1.20.3 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -67
- package/lib/commands/deploy.d.ts +1 -1
- package/lib/commands/deploy.js +48 -51
- package/lib/commands/deploy.js.map +1 -1
- package/lib/commands/project/convert/mdapi.d.ts +8 -8
- package/lib/commands/project/convert/mdapi.js +63 -63
- package/lib/commands/project/convert/mdapi.js.map +1 -1
- package/lib/commands/project/convert/source.d.ts +16 -40
- package/lib/commands/project/convert/source.js +71 -72
- package/lib/commands/project/convert/source.js.map +1 -1
- package/lib/commands/project/delete/source.d.ts +9 -61
- package/lib/commands/project/delete/source.js +182 -180
- package/lib/commands/project/delete/source.js.map +1 -1
- package/lib/commands/project/delete/tracking.d.ts +4 -4
- package/lib/commands/project/delete/tracking.js +27 -29
- package/lib/commands/project/delete/tracking.js.map +1 -1
- package/lib/commands/project/deploy/cancel.d.ts +5 -5
- package/lib/commands/project/deploy/cancel.js +58 -59
- package/lib/commands/project/deploy/cancel.js.map +1 -1
- package/lib/commands/project/deploy/preview.d.ts +6 -6
- package/lib/commands/project/deploy/preview.js +57 -58
- package/lib/commands/project/deploy/preview.js.map +1 -1
- package/lib/commands/project/deploy/quick.d.ts +9 -9
- package/lib/commands/project/deploy/quick.js +85 -86
- package/lib/commands/project/deploy/quick.js.map +1 -1
- package/lib/commands/project/deploy/report.d.ts +8 -60
- package/lib/commands/project/deploy/report.js +72 -73
- package/lib/commands/project/deploy/report.js.map +1 -1
- package/lib/commands/project/deploy/resume.d.ts +9 -61
- package/lib/commands/project/deploy/resume.js +82 -83
- package/lib/commands/project/deploy/resume.js.map +1 -1
- package/lib/commands/project/deploy/start.d.ts +24 -128
- package/lib/commands/project/deploy/start.js +168 -169
- package/lib/commands/project/deploy/start.js.map +1 -1
- package/lib/commands/project/deploy/validate.d.ts +21 -125
- package/lib/commands/project/deploy/validate.js +149 -149
- package/lib/commands/project/deploy/validate.js.map +1 -1
- package/lib/commands/project/generate/manifest.d.ts +9 -9
- package/lib/commands/project/generate/manifest.js +73 -78
- package/lib/commands/project/generate/manifest.js.map +1 -1
- package/lib/commands/project/list/ignored.d.ts +1 -1
- package/lib/commands/project/list/ignored.js +27 -29
- package/lib/commands/project/list/ignored.js.map +1 -1
- package/lib/commands/project/reset/tracking.d.ts +5 -5
- package/lib/commands/project/reset/tracking.js +33 -35
- package/lib/commands/project/reset/tracking.js.map +1 -1
- package/lib/commands/project/retrieve/preview.d.ts +3 -3
- package/lib/commands/project/retrieve/preview.js +35 -36
- package/lib/commands/project/retrieve/preview.js.map +1 -1
- package/lib/commands/project/retrieve/start.d.ts +11 -11
- package/lib/commands/project/retrieve/start.js +148 -149
- package/lib/commands/project/retrieve/start.js.map +1 -1
- package/lib/configMeta.js +8 -9
- package/lib/configMeta.js.map +1 -1
- package/lib/formatters/asyncDeployCancelResultFormatter.d.ts +1 -1
- package/lib/formatters/asyncDeployCancelResultFormatter.js +12 -12
- package/lib/formatters/asyncDeployCancelResultFormatter.js.map +1 -1
- package/lib/formatters/asyncDeployResultFormatter.d.ts +1 -1
- package/lib/formatters/asyncDeployResultFormatter.js +14 -14
- package/lib/formatters/asyncDeployResultFormatter.js.map +1 -1
- package/lib/formatters/deleteResultFormatter.d.ts +2 -2
- package/lib/formatters/deleteResultFormatter.js +21 -23
- package/lib/formatters/deleteResultFormatter.js.map +1 -1
- package/lib/formatters/deployCancelResultFormatter.d.ts +1 -1
- package/lib/formatters/deployCancelResultFormatter.js +7 -10
- package/lib/formatters/deployCancelResultFormatter.js.map +1 -1
- package/lib/formatters/deployReportResultFormatter.d.ts +1 -1
- package/lib/formatters/deployReportResultFormatter.js +18 -22
- package/lib/formatters/deployReportResultFormatter.js.map +1 -1
- package/lib/formatters/deployResultFormatter.d.ts +2 -2
- package/lib/formatters/deployResultFormatter.js +53 -50
- package/lib/formatters/deployResultFormatter.js.map +1 -1
- package/lib/formatters/metadataConvertResultFormatter.d.ts +1 -1
- package/lib/formatters/metadataConvertResultFormatter.js +7 -9
- package/lib/formatters/metadataConvertResultFormatter.js.map +1 -1
- package/lib/formatters/metadataRetrieveResultFormatter.d.ts +1 -1
- package/lib/formatters/metadataRetrieveResultFormatter.js +17 -16
- package/lib/formatters/metadataRetrieveResultFormatter.js.map +1 -1
- package/lib/formatters/retrieveResultFormatter.d.ts +1 -1
- package/lib/formatters/retrieveResultFormatter.js +17 -17
- package/lib/formatters/retrieveResultFormatter.js.map +1 -1
- package/lib/formatters/sourceConvertResultFormatter.d.ts +1 -1
- package/lib/formatters/sourceConvertResultFormatter.js +12 -14
- package/lib/formatters/sourceConvertResultFormatter.js.map +1 -1
- package/lib/formatters/testResultsFormatter.d.ts +1 -1
- package/lib/formatters/testResultsFormatter.js +38 -38
- package/lib/formatters/testResultsFormatter.js.map +1 -1
- package/lib/hooks/deploy.d.ts +1 -1
- package/lib/hooks/deploy.js +5 -7
- package/lib/hooks/deploy.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -2
- package/lib/index.js.map +1 -1
- package/lib/utils/conflicts.js +3 -7
- package/lib/utils/conflicts.js.map +1 -1
- package/lib/utils/coverage.js +20 -30
- package/lib/utils/coverage.js.map +1 -1
- package/lib/utils/deploy.d.ts +1 -1
- package/lib/utils/deploy.js +55 -64
- package/lib/utils/deploy.js.map +1 -1
- package/lib/utils/deployCache.d.ts +1 -1
- package/lib/utils/deployCache.js +12 -16
- package/lib/utils/deployCache.js.map +1 -1
- package/lib/utils/errorCodes.js +15 -16
- package/lib/utils/errorCodes.js.map +1 -1
- package/lib/utils/flags.d.ts +25 -7
- package/lib/utils/flags.js +25 -28
- package/lib/utils/flags.js.map +1 -1
- package/lib/utils/manifestCache.js +9 -14
- package/lib/utils/manifestCache.js.map +1 -1
- package/lib/utils/metadataDeployer.d.ts +1 -1
- package/lib/utils/metadataDeployer.js +40 -39
- package/lib/utils/metadataDeployer.js.map +1 -1
- package/lib/utils/output.js +13 -22
- package/lib/utils/output.js.map +1 -1
- package/lib/utils/previewOutput.js +46 -52
- package/lib/utils/previewOutput.js.map +1 -1
- package/lib/utils/progressBar.js +19 -21
- package/lib/utils/progressBar.js.map +1 -1
- package/lib/utils/project.js +7 -13
- package/lib/utils/project.js.map +1 -1
- package/lib/utils/promiseQueue.js +3 -7
- package/lib/utils/promiseQueue.js.map +1 -1
- package/lib/utils/types.js +12 -19
- package/lib/utils/types.js.map +1 -1
- package/oclif.lock +8667 -0
- package/oclif.manifest.json +1432 -941
- package/package.json +37 -35
- package/schemas/project-retrieve-start.json +14 -11
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AsyncDeployResultFormatter = exports.deployAsyncMessages = void 0;
|
|
4
1
|
/*
|
|
5
2
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
6
3
|
* All rights reserved.
|
|
7
4
|
* Licensed under the BSD 3-Clause license.
|
|
8
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
9
6
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
import { dirname } from 'node:path';
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
import { ux } from '@oclif/core';
|
|
10
|
+
import { Messages } from '@salesforce/core';
|
|
11
|
+
Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
|
|
12
|
+
export const deployAsyncMessages = Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'deploy.async');
|
|
13
|
+
export class AsyncDeployResultFormatter {
|
|
14
|
+
id;
|
|
15
|
+
bin;
|
|
15
16
|
constructor(id, bin) {
|
|
16
17
|
this.id = id;
|
|
17
18
|
this.bin = bin;
|
|
@@ -21,12 +22,11 @@ class AsyncDeployResultFormatter {
|
|
|
21
22
|
return { id: this.id, done: false, status: 'Queued', files: [] };
|
|
22
23
|
}
|
|
23
24
|
display() {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
ux.log(deployAsyncMessages.getMessage('info.AsyncDeployQueued'));
|
|
26
|
+
ux.log();
|
|
27
|
+
ux.log(deployAsyncMessages.getMessage('info.AsyncDeployResume', [this.bin, this.id]));
|
|
28
|
+
ux.log(deployAsyncMessages.getMessage('info.AsyncDeployStatus', [this.bin, this.id]));
|
|
29
|
+
ux.log(deployAsyncMessages.getMessage('info.AsyncDeployCancel', [this.bin, this.id]));
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
|
-
exports.AsyncDeployResultFormatter = AsyncDeployResultFormatter;
|
|
32
32
|
//# sourceMappingURL=asyncDeployResultFormatter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncDeployResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/asyncDeployResultFormatter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"asyncDeployResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/asyncDeployResultFormatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,QAAQ,CAAC,uBAAuB,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC1E,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,cAAc,CAAC,CAAC;AAE/G,MAAM,OAAO,0BAA0B;IACV;IAAoB;IAA/C,YAA2B,EAAU,EAAU,GAAW;QAA/B,OAAE,GAAF,EAAE,CAAQ;QAAU,QAAG,GAAH,GAAG,CAAQ;IAAG,CAAC;IAE9D,4DAA4D;IACrD,KAAK,CAAC,OAAO;QAClB,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IACnE,CAAC;IAEM,OAAO;QACZ,EAAE,CAAC,GAAG,CAAC,mBAAmB,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC,CAAC;QACjE,EAAE,CAAC,GAAG,EAAE,CAAC;QACT,EAAE,CAAC,GAAG,CAAC,mBAAmB,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACtF,EAAE,CAAC,GAAG,CAAC,mBAAmB,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACtF,EAAE,CAAC,GAAG,CAAC,mBAAmB,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACxF,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeployResult } from '@salesforce/source-deploy-retrieve';
|
|
2
|
-
import { DeleteSourceJson, Formatter, TestLevel } from '../utils/types';
|
|
3
|
-
import { TestResultsFormatter } from '../formatters/testResultsFormatter';
|
|
2
|
+
import { DeleteSourceJson, Formatter, TestLevel } from '../utils/types.js';
|
|
3
|
+
import { TestResultsFormatter } from '../formatters/testResultsFormatter.js';
|
|
4
4
|
export declare class DeleteResultFormatter extends TestResultsFormatter implements Formatter<DeleteSourceJson> {
|
|
5
5
|
protected result: DeployResult;
|
|
6
6
|
protected flags: Partial<{
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteResultFormatter = void 0;
|
|
4
1
|
/*
|
|
5
2
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
6
3
|
* All rights reserved.
|
|
7
4
|
* Licensed under the BSD 3-Clause license.
|
|
8
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
9
6
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class DeleteResultFormatter extends
|
|
7
|
+
import { ux } from '@oclif/core';
|
|
8
|
+
import { RequestStatus } from '@salesforce/source-deploy-retrieve';
|
|
9
|
+
import { ensureArray } from '@salesforce/kit';
|
|
10
|
+
import chalk from 'chalk';
|
|
11
|
+
import { StandardColors } from '@salesforce/sf-plugins-core';
|
|
12
|
+
import { sortFileResponses, asRelativePaths } from '../utils/output.js';
|
|
13
|
+
import { TestResultsFormatter } from '../formatters/testResultsFormatter.js';
|
|
14
|
+
export class DeleteResultFormatter extends TestResultsFormatter {
|
|
15
|
+
result;
|
|
16
|
+
flags;
|
|
18
17
|
constructor(result, flags) {
|
|
19
18
|
super(result, flags);
|
|
20
19
|
this.result = result;
|
|
@@ -48,11 +47,11 @@ class DeleteResultFormatter extends testResultsFormatter_1.TestResultsFormatter
|
|
|
48
47
|
fileResponses.push(f);
|
|
49
48
|
fileResponseSuccesses.set(`${f.type}#${f.fullName}`, f);
|
|
50
49
|
});
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
sortFileResponses(fileResponses);
|
|
51
|
+
asRelativePaths(fileResponses);
|
|
53
52
|
successes.push(...fileResponses);
|
|
54
53
|
}
|
|
55
|
-
const deployMessages =
|
|
54
|
+
const deployMessages = ensureArray(this.result?.response?.details?.componentSuccesses).filter((item) => !item.fileName.includes('package.xml'));
|
|
56
55
|
if (deployMessages.length >= successes.length) {
|
|
57
56
|
// if there's additional successes in the API response, find the success and add it to the output
|
|
58
57
|
deployMessages.map((deployMessage) => {
|
|
@@ -63,9 +62,9 @@ class DeleteResultFormatter extends testResultsFormatter_1.TestResultsFormatter
|
|
|
63
62
|
}
|
|
64
63
|
});
|
|
65
64
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
ux.log('');
|
|
66
|
+
ux.styledHeader(chalk.blue('Deleted Source'));
|
|
67
|
+
ux.table(successes.map((entry) => ({
|
|
69
68
|
fullName: entry.fullName,
|
|
70
69
|
type: entry.type,
|
|
71
70
|
filePath: entry.filePath,
|
|
@@ -80,9 +79,9 @@ class DeleteResultFormatter extends testResultsFormatter_1.TestResultsFormatter
|
|
|
80
79
|
}
|
|
81
80
|
}
|
|
82
81
|
displayFailures() {
|
|
83
|
-
if (this.result.response.status ===
|
|
82
|
+
if (this.result.response.status === RequestStatus.Succeeded)
|
|
84
83
|
return;
|
|
85
|
-
const failures =
|
|
84
|
+
const failures = ensureArray(this.result.response.details.componentFailures);
|
|
86
85
|
if (!failures.length)
|
|
87
86
|
return;
|
|
88
87
|
const columns = {
|
|
@@ -91,12 +90,11 @@ class DeleteResultFormatter extends testResultsFormatter_1.TestResultsFormatter
|
|
|
91
90
|
error: { header: 'Problem' },
|
|
92
91
|
};
|
|
93
92
|
const options = {
|
|
94
|
-
title:
|
|
93
|
+
title: StandardColors.error(chalk.bold(`Component Failures [${failures.length}]`)),
|
|
95
94
|
'no-truncate': true,
|
|
96
95
|
};
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
ux.log();
|
|
97
|
+
ux.table(failures.map((f) => ({ problemType: f.problemType, fullName: f.fullName, error: f.problem })), columns, options);
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
|
-
exports.DeleteResultFormatter = DeleteResultFormatter;
|
|
102
100
|
//# sourceMappingURL=deleteResultFormatter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/deleteResultFormatter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deleteResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/deleteResultFormatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAA8B,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,MAAM,OAAO,qBAAsB,SAAQ,oBAAoB;IAEjD;IACA;IAFZ,YACY,MAAoB,EACpB,KAGR;QAEF,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QANX,WAAM,GAAN,MAAM,CAAc;QACpB,UAAK,GAAL,KAAK,CAGb;QAGF,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC;QACrC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC7C,CAAC;IACD;;;;OAIG;IACH,4DAA4D;IACrD,KAAK,CAAC,OAAO;QAClB,OAAO;YACL,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ;YACvB,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,IAAI,EAAE;YACnD,aAAa,EAAE,EAAE;YACjB,cAAc,EAAE,EAAE;YAClB,OAAO,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;SACpD,CAAC;IACJ,CAAC;IAEM,O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ACF,MAAM,OAAO,GAA2B;YACtC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;YAClF,aAAa,EAAE,IAAI;SACpB,CAAC;QACF,EAAE,CAAC,GAAG,EAAE,CAAC;QACT,EAAE,CAAC,KAAK,CACN,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,WAAW,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,EAC7F,OAAO,EACP,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeployResult } from '@salesforce/source-deploy-retrieve';
|
|
2
|
-
import { DeployResultJson, Formatter } from '../utils/types';
|
|
2
|
+
import { DeployResultJson, Formatter } from '../utils/types.js';
|
|
3
3
|
export declare class DeployCancelResultFormatter implements Formatter<DeployResultJson> {
|
|
4
4
|
protected result: DeployResult;
|
|
5
5
|
constructor(result: DeployResult);
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeployCancelResultFormatter = void 0;
|
|
4
1
|
/*
|
|
5
2
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
6
3
|
* All rights reserved.
|
|
7
4
|
* Licensed under the BSD 3-Clause license.
|
|
8
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
9
6
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class DeployCancelResultFormatter {
|
|
7
|
+
import { ux } from '@oclif/core';
|
|
8
|
+
import { RequestStatus } from '@salesforce/source-deploy-retrieve';
|
|
9
|
+
export class DeployCancelResultFormatter {
|
|
10
|
+
result;
|
|
13
11
|
constructor(result) {
|
|
14
12
|
this.result = result;
|
|
15
13
|
}
|
|
@@ -18,13 +16,12 @@ class DeployCancelResultFormatter {
|
|
|
18
16
|
return { ...this.result.response, files: this.result.getFileResponses() ?? [] };
|
|
19
17
|
}
|
|
20
18
|
display() {
|
|
21
|
-
if (this.result.response.status ===
|
|
22
|
-
|
|
19
|
+
if (this.result.response.status === RequestStatus.Canceled) {
|
|
20
|
+
ux.log(`Successfully canceled ${this.result.response.id}`);
|
|
23
21
|
}
|
|
24
22
|
else {
|
|
25
|
-
|
|
23
|
+
ux.error(`Could not cancel ${this.result.response.id}`);
|
|
26
24
|
}
|
|
27
25
|
}
|
|
28
26
|
}
|
|
29
|
-
exports.DeployCancelResultFormatter = DeployCancelResultFormatter;
|
|
30
27
|
//# sourceMappingURL=deployCancelResultFormatter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployCancelResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/deployCancelResultFormatter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deployCancelResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/deployCancelResultFormatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAgB,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAGjF,MAAM,OAAO,2BAA2B;IACT;IAA7B,YAA6B,MAAoB;QAApB,WAAM,GAAN,MAAM,CAAc;IAAG,CAAC;IAErD,4DAA4D;IACrD,KAAK,CAAC,OAAO;QAClB,OAAO,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,IAAI,EAAE,EAAE,CAAC;IAClF,CAAC;IAEM,OAAO;QACZ,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,KAAK,aAAa,CAAC,QAAQ,EAAE;YAC1D,EAAE,CAAC,GAAG,CAAC,yBAAyB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;SAC5D;aAAM;YACL,EAAE,CAAC,KAAK,CAAC,oBAAoB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;SACzD;IACH,CAAC;CACF"}
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeployReportResultFormatter = void 0;
|
|
4
1
|
/*
|
|
5
2
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
6
3
|
* All rights reserved.
|
|
7
4
|
* Licensed under the BSD 3-Clause license.
|
|
8
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
9
6
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
class DeployReportResultFormatter extends
|
|
7
|
+
import { ux } from '@oclif/core';
|
|
8
|
+
import { RequestStatus } from '@salesforce/source-deploy-retrieve';
|
|
9
|
+
import { StandardColors } from '@salesforce/sf-plugins-core';
|
|
10
|
+
import { Duration } from '@salesforce/kit';
|
|
11
|
+
import { tableHeader } from '../utils/output.js';
|
|
12
|
+
import { DeployResultFormatter } from './deployResultFormatter.js';
|
|
13
|
+
export class DeployReportResultFormatter extends DeployResultFormatter {
|
|
17
14
|
display() {
|
|
18
|
-
|
|
15
|
+
ux.log(`${this.result.response.id}... ${this.result.response.status}`);
|
|
19
16
|
const response = Object.entries(this.result.response).reduce((result, [key, value]) => {
|
|
20
17
|
if (['number', 'boolean', 'string'].includes(typeof value)) {
|
|
21
18
|
if (key === 'status') {
|
|
@@ -27,8 +24,8 @@ class DeployReportResultFormatter extends deployResultFormatter_1.DeployResultFo
|
|
|
27
24
|
}
|
|
28
25
|
return result;
|
|
29
26
|
}, []);
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
ux.log();
|
|
28
|
+
ux.table(response, { key: {}, value: {} }, { title: tableHeader('Deploy Info'), 'no-truncate': true });
|
|
32
29
|
const opts = Object.entries(this.flags).reduce((result, [key, value]) => {
|
|
33
30
|
if (key === 'timestamp') {
|
|
34
31
|
return result;
|
|
@@ -37,23 +34,22 @@ class DeployReportResultFormatter extends deployResultFormatter_1.DeployResultFo
|
|
|
37
34
|
return result.concat({ key: 'target-org', value: this.flags['target-org']?.getUsername() });
|
|
38
35
|
}
|
|
39
36
|
if (key === 'wait' && this.flags['wait']) {
|
|
40
|
-
const wait = this.flags['wait'] instanceof
|
|
37
|
+
const wait = this.flags['wait'] instanceof Duration ? this.flags['wait'].quantity : this.flags['wait'];
|
|
41
38
|
return result.concat({ key: 'wait', value: `${wait} minutes` });
|
|
42
39
|
}
|
|
43
40
|
return result.concat({ key, value });
|
|
44
41
|
}, []);
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
ux.log();
|
|
43
|
+
ux.table(opts, { key: {}, value: {} }, { title: tableHeader('Deploy Options'), 'no-truncate': true });
|
|
47
44
|
super.display();
|
|
48
45
|
}
|
|
49
46
|
}
|
|
50
|
-
exports.DeployReportResultFormatter = DeployReportResultFormatter;
|
|
51
47
|
function colorStatus(status) {
|
|
52
|
-
if (status ===
|
|
53
|
-
return
|
|
54
|
-
if (status ===
|
|
55
|
-
return
|
|
48
|
+
if (status === RequestStatus.Succeeded)
|
|
49
|
+
return StandardColors.success(status);
|
|
50
|
+
if (status === RequestStatus.Failed)
|
|
51
|
+
return StandardColors.error(status);
|
|
56
52
|
else
|
|
57
|
-
return
|
|
53
|
+
return StandardColors.warning(status);
|
|
58
54
|
}
|
|
59
55
|
//# sourceMappingURL=deployReportResultFormatter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployReportResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/deployReportResultFormatter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deployReportResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/deployReportResultFormatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,OAAO,2BAA4B,SAAQ,qBAAqB;IAC7D,OAAO;QACZ,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;QAEvE,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAC1D,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YACvB,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,KAAK,CAAC,EAAE;gBAC1D,IAAI,GAAG,KAAK,QAAQ,EAAE;oBACpB,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,CAAC,KAAsB,CAAC,EAAE,CAAC,CAAC;iBAC3E;qBAAM;oBACL,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,KAAkC,EAAE,CAAC,CAAC;iBAC1E;aACF;YACD,OAAO,MAAM,CAAC;QAChB,CAAC,EACD,EAAE,CACH,CAAC;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GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;QACtG,KAAK,CAAC,OAAO,EAAE,CAAC;IAClB,CAAC;CACF;AAED,SAAS,WAAW,CAAC,MAAqB;IACxC,IAAI,MAAM,KAAK,aAAa,CAAC,SAAS;QAAE,OAAO,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9E,IAAI,MAAM,KAAK,aAAa,CAAC,MAAM;QAAE,OAAO,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;;QACpE,OAAO,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DeployResult } from '@salesforce/source-deploy-retrieve';
|
|
2
2
|
import { Org } from '@salesforce/core';
|
|
3
3
|
import { Duration } from '@salesforce/kit';
|
|
4
|
-
import { DeployResultJson, TestLevel, Verbosity, Formatter } from '../utils/types';
|
|
5
|
-
import { TestResultsFormatter } from '../formatters/testResultsFormatter';
|
|
4
|
+
import { DeployResultJson, TestLevel, Verbosity, Formatter } from '../utils/types.js';
|
|
5
|
+
import { TestResultsFormatter } from '../formatters/testResultsFormatter.js';
|
|
6
6
|
export declare class DeployResultFormatter extends TestResultsFormatter implements Formatter<DeployResultJson> {
|
|
7
7
|
protected result: DeployResult;
|
|
8
8
|
protected flags: Partial<{
|
|
@@ -1,41 +1,45 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeployResultFormatter = void 0;
|
|
4
1
|
/*
|
|
5
2
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
6
3
|
* All rights reserved.
|
|
7
4
|
* Licensed under the BSD 3-Clause license.
|
|
8
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
9
6
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class DeployResultFormatter extends
|
|
7
|
+
import * as path from 'node:path';
|
|
8
|
+
import { EOL } from 'node:os';
|
|
9
|
+
import * as fs from 'node:fs';
|
|
10
|
+
import { ux } from '@oclif/core';
|
|
11
|
+
import { ComponentStatus, RequestStatus } from '@salesforce/source-deploy-retrieve';
|
|
12
|
+
import { SfError, Lifecycle } from '@salesforce/core';
|
|
13
|
+
import { ensureArray, sortBy } from '@salesforce/kit';
|
|
14
|
+
import { CoverageReporter, JUnitReporter, } from '@salesforce/apex-node';
|
|
15
|
+
import { isSdrFailure, isSdrSuccess, TestLevel } from '../utils/types.js';
|
|
16
|
+
import { generateCoveredLines, getCoverageFormattersOptions, getCoverageNumbers, mapTestResults, transformCoverageToApexCoverage, } from '../utils/coverage.js';
|
|
17
|
+
import { sortFileResponses, asRelativePaths, tableHeader, getFileResponseSuccessProps, error, } from '../utils/output.js';
|
|
18
|
+
import { TestResultsFormatter } from '../formatters/testResultsFormatter.js';
|
|
19
|
+
export class DeployResultFormatter extends TestResultsFormatter {
|
|
20
|
+
result;
|
|
21
|
+
flags;
|
|
22
|
+
relativeFiles;
|
|
23
|
+
absoluteFiles;
|
|
24
|
+
coverageOptions;
|
|
25
|
+
resultsDir;
|
|
26
|
+
junit;
|
|
23
27
|
constructor(result, flags) {
|
|
24
28
|
super(result, flags);
|
|
25
29
|
this.result = result;
|
|
26
30
|
this.flags = flags;
|
|
27
|
-
this.absoluteFiles =
|
|
28
|
-
this.relativeFiles =
|
|
31
|
+
this.absoluteFiles = sortFileResponses(this.result.getFileResponses() ?? []);
|
|
32
|
+
this.relativeFiles = asRelativePaths(this.absoluteFiles);
|
|
29
33
|
this.testLevel = this.flags['test-level'];
|
|
30
34
|
this.verbosity = this.determineVerbosity();
|
|
31
35
|
this.resultsDir = this.flags['results-dir'] ?? 'coverage';
|
|
32
|
-
this.coverageOptions =
|
|
36
|
+
this.coverageOptions = getCoverageFormattersOptions(this.flags['coverage-formatters']);
|
|
33
37
|
this.junit = this.flags.junit;
|
|
34
38
|
}
|
|
35
39
|
async getJson() {
|
|
36
40
|
// only generate reports if test results are presented
|
|
37
41
|
if ((!this.result.response?.numberTestsTotal && !this.flags['test-level']) ||
|
|
38
|
-
this.flags['test-level'] ===
|
|
42
|
+
this.flags['test-level'] === TestLevel['NoTestRun']) {
|
|
39
43
|
const testsWarn = (this.coverageOptions.reportFormats?.length ? ['`--coverage-formatters` was specified but no tests ran.'] : [])
|
|
40
44
|
.concat(this.junit ? ['`--junit` was specified but no tests ran.'] : [])
|
|
41
45
|
.concat([
|
|
@@ -43,7 +47,7 @@ class DeployResultFormatter extends testResultsFormatter_1.TestResultsFormatter
|
|
|
43
47
|
]);
|
|
44
48
|
// only emit warning if --coverage-formatters or --junit flags were passed
|
|
45
49
|
if (testsWarn.length > 1) {
|
|
46
|
-
await
|
|
50
|
+
await Lifecycle.getInstance().emitWarning(testsWarn.join(EOL));
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
53
|
if (this.coverageOptions.reportFormats?.length) {
|
|
@@ -59,7 +63,7 @@ class DeployResultFormatter extends testResultsFormatter_1.TestResultsFormatter
|
|
|
59
63
|
componentFailures: this.result.response.details.componentFailures,
|
|
60
64
|
runTestResult: this.result.response.details.runTestResult,
|
|
61
65
|
},
|
|
62
|
-
files: this.absoluteFiles.filter(
|
|
66
|
+
files: this.absoluteFiles.filter(isSdrFailure),
|
|
63
67
|
};
|
|
64
68
|
}
|
|
65
69
|
else {
|
|
@@ -94,18 +98,18 @@ class DeployResultFormatter extends testResultsFormatter_1.TestResultsFormatter
|
|
|
94
98
|
maybeCreateRequestedReports() {
|
|
95
99
|
// only generate reports if test results are presented
|
|
96
100
|
if (this.coverageOptions.reportFormats?.length) {
|
|
97
|
-
|
|
101
|
+
ux.log(`Code Coverage formats, [${this.flags['coverage-formatters']?.join(', ')}], written to ${this.resultsDir}/`);
|
|
98
102
|
this.createCoverageReport('no-map');
|
|
99
103
|
}
|
|
100
104
|
if (this.junit) {
|
|
101
|
-
|
|
105
|
+
ux.log(`Junit results written to ${this.resultsDir}/junit/junit.xml`);
|
|
102
106
|
this.createJunitResults();
|
|
103
107
|
}
|
|
104
108
|
}
|
|
105
109
|
createJunitResults() {
|
|
106
110
|
const testResult = this.transformDeployTestsResultsToTestResult();
|
|
107
111
|
if (testResult.summary.testsRan > 0) {
|
|
108
|
-
const jUnitReporter = new
|
|
112
|
+
const jUnitReporter = new JUnitReporter();
|
|
109
113
|
const junitResults = jUnitReporter.format(testResult);
|
|
110
114
|
const junitReportPath = path.join(this.resultsDir ?? '', 'junit');
|
|
111
115
|
fs.mkdirSync(junitReportPath, { recursive: true });
|
|
@@ -114,7 +118,7 @@ class DeployResultFormatter extends testResultsFormatter_1.TestResultsFormatter
|
|
|
114
118
|
}
|
|
115
119
|
transformDeployTestsResultsToTestResult() {
|
|
116
120
|
if (!this.result.response?.details?.runTestResult) {
|
|
117
|
-
throw new
|
|
121
|
+
throw new SfError('No test results found');
|
|
118
122
|
}
|
|
119
123
|
const runTestResult = this.result.response?.details?.runTestResult;
|
|
120
124
|
const numTestsRun = parseInt(runTestResult.numTestsRun, 10);
|
|
@@ -140,12 +144,12 @@ class DeployResultFormatter extends testResultsFormatter_1.TestResultsFormatter
|
|
|
140
144
|
username: this.flags['target-org']?.getConnection().getUsername(),
|
|
141
145
|
},
|
|
142
146
|
tests: [
|
|
143
|
-
...
|
|
144
|
-
...
|
|
147
|
+
...mapTestResults(ensureArray(runTestResult.successes)),
|
|
148
|
+
...mapTestResults(ensureArray(runTestResult.failures)),
|
|
145
149
|
],
|
|
146
|
-
codecoverage:
|
|
147
|
-
const [uncoveredLines, coveredLines] =
|
|
148
|
-
const [numLocationsNum, numLinesUncovered] =
|
|
150
|
+
codecoverage: ensureArray(runTestResult?.codeCoverage).map((cov) => {
|
|
151
|
+
const [uncoveredLines, coveredLines] = generateCoveredLines(cov);
|
|
152
|
+
const [numLocationsNum, numLinesUncovered] = getCoverageNumbers(cov);
|
|
149
153
|
return {
|
|
150
154
|
// TODO: fix this type in SDR?
|
|
151
155
|
type: cov.type,
|
|
@@ -164,9 +168,9 @@ class DeployResultFormatter extends testResultsFormatter_1.TestResultsFormatter
|
|
|
164
168
|
}
|
|
165
169
|
createCoverageReport(sourceDir) {
|
|
166
170
|
if (this.resultsDir) {
|
|
167
|
-
const apexCoverage =
|
|
171
|
+
const apexCoverage = transformCoverageToApexCoverage(ensureArray(this.result.response?.details?.runTestResult?.codeCoverage));
|
|
168
172
|
fs.mkdirSync(this.resultsDir, { recursive: true });
|
|
169
|
-
const coverageReport = new
|
|
173
|
+
const coverageReport = new CoverageReporter(apexCoverage, this.resultsDir, sourceDir, this.coverageOptions);
|
|
170
174
|
coverageReport.generateReports();
|
|
171
175
|
}
|
|
172
176
|
}
|
|
@@ -176,18 +180,18 @@ class DeployResultFormatter extends testResultsFormatter_1.TestResultsFormatter
|
|
|
176
180
|
filePath: path.relative(process.cwd(), filepath),
|
|
177
181
|
replaced,
|
|
178
182
|
})));
|
|
179
|
-
|
|
183
|
+
ux.table(replacements, {
|
|
180
184
|
filePath: { header: 'PROJECT PATH' },
|
|
181
185
|
replaced: { header: 'TEXT REPLACED' },
|
|
182
186
|
}, {
|
|
183
|
-
title:
|
|
187
|
+
title: tableHeader('Metadata Replacements'),
|
|
184
188
|
'no-truncate': true,
|
|
185
189
|
});
|
|
186
190
|
}
|
|
187
191
|
}
|
|
188
192
|
displaySuccesses() {
|
|
189
|
-
const successes = this.relativeFiles.filter(
|
|
190
|
-
if (!successes.length || this.result.response.status ===
|
|
193
|
+
const successes = this.relativeFiles.filter(isSdrSuccess);
|
|
194
|
+
if (!successes.length || this.result.response.status === RequestStatus.Failed)
|
|
191
195
|
return;
|
|
192
196
|
const columns = {
|
|
193
197
|
state: { header: 'State' },
|
|
@@ -196,14 +200,14 @@ class DeployResultFormatter extends testResultsFormatter_1.TestResultsFormatter
|
|
|
196
200
|
filePath: { header: 'Path' },
|
|
197
201
|
};
|
|
198
202
|
const title = this.result.response.checkOnly ? 'Validated Source' : 'Deployed Source';
|
|
199
|
-
const options = { title:
|
|
200
|
-
|
|
201
|
-
|
|
203
|
+
const options = { title: tableHeader(title), 'no-truncate': true };
|
|
204
|
+
ux.log();
|
|
205
|
+
ux.table(successes.map((s) => ({ filePath: s.filePath, fullName: s.fullName, type: s.type, state: s.state })), columns, options);
|
|
202
206
|
}
|
|
203
207
|
displayFailures() {
|
|
204
|
-
if (this.result.response.status ===
|
|
208
|
+
if (this.result.response.status === RequestStatus.Succeeded)
|
|
205
209
|
return;
|
|
206
|
-
const failures = this.relativeFiles.filter(
|
|
210
|
+
const failures = this.relativeFiles.filter(isSdrFailure);
|
|
207
211
|
if (!failures.length)
|
|
208
212
|
return;
|
|
209
213
|
const columns = {
|
|
@@ -212,9 +216,9 @@ class DeployResultFormatter extends testResultsFormatter_1.TestResultsFormatter
|
|
|
212
216
|
error: { header: 'Problem' },
|
|
213
217
|
loc: { header: 'Line:Column' },
|
|
214
218
|
};
|
|
215
|
-
const options = { title:
|
|
216
|
-
|
|
217
|
-
|
|
219
|
+
const options = { title: error(`Component Failures [${failures.length}]`), 'no-truncate': true };
|
|
220
|
+
ux.log();
|
|
221
|
+
ux.table(sortBy(failures, ['problemType', 'fullName', 'lineNumber', 'columnNumber', 'error']).map((f) => ({
|
|
218
222
|
problemType: f.problemType,
|
|
219
223
|
fullName: f.fullName,
|
|
220
224
|
error: f.error,
|
|
@@ -222,7 +226,7 @@ class DeployResultFormatter extends testResultsFormatter_1.TestResultsFormatter
|
|
|
222
226
|
})), columns, options);
|
|
223
227
|
}
|
|
224
228
|
displayDeletes() {
|
|
225
|
-
const deletions = this.relativeFiles.filter(
|
|
229
|
+
const deletions = this.relativeFiles.filter(isSdrSuccess).filter((f) => f.state === ComponentStatus['Deleted']);
|
|
226
230
|
if (!deletions.length)
|
|
227
231
|
return;
|
|
228
232
|
const columns = {
|
|
@@ -230,10 +234,9 @@ class DeployResultFormatter extends testResultsFormatter_1.TestResultsFormatter
|
|
|
230
234
|
type: { header: 'Type' },
|
|
231
235
|
filePath: { header: 'Path' },
|
|
232
236
|
};
|
|
233
|
-
const options = { title:
|
|
234
|
-
|
|
235
|
-
|
|
237
|
+
const options = { title: tableHeader('Deleted Source'), 'no-truncate': true };
|
|
238
|
+
ux.log();
|
|
239
|
+
ux.table(getFileResponseSuccessProps(deletions), columns, options);
|
|
236
240
|
}
|
|
237
241
|
}
|
|
238
|
-
exports.DeployResultFormatter = DeployResultFormatter;
|
|
239
242
|
//# sourceMappingURL=deployResultFormatter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/deployResultFormatter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deployResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/deployResultFormatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,eAAe,EAA8B,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAChH,OAAO,EAAO,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAY,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAEL,gBAAgB,EAEhB,aAAa,GAEd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAoB,YAAY,EAAE,YAAY,EAAE,SAAS,EAAwB,MA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,EAAE,CAAC,CAAC,KAAK;YACd,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE;SAC7D,CAAC,CAAC,EACH,OAAO,EACP,OAAO,CACR,CAAC;IACJ,CAAC;IAEO,cAAc;QACpB,MAAM,SAAS,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC;QAEhH,IAAI,CAAC,SAAS,CAAC,MAAM;YAAE,OAAO;QAE9B,MAAM,OAAO,GAAG;YACd,QAAQ,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;YAC5B,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;YACxB,QAAQ,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;SAC7B,CAAC;QAEF,MAAM,OAAO,GAAG,EAAE,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;QAC9E,EAAE,CAAC,GAAG,EAAE,CAAC;QAET,EAAE,CAAC,KAAK,CAAC,2BAA2B,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConvertResult } from '@salesforce/source-deploy-retrieve';
|
|
2
|
-
import { Formatter, ConvertMdapiJson } from '../utils/types';
|
|
2
|
+
import { Formatter, ConvertMdapiJson } from '../utils/types.js';
|
|
3
3
|
export declare class MetadataConvertResultFormatter implements Formatter<ConvertMdapiJson> {
|
|
4
4
|
private result;
|
|
5
5
|
private convertResults;
|