@salesforce/plugin-deploy-retrieve 1.20.2 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -64
- 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 +24 -27
- 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 +1442 -942
- package/package.json +38 -36
- package/schemas/project-retrieve-start.json +14 -11
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MetadataConvertResultFormatter = 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 MetadataConvertResultFormatter {
|
|
7
|
+
import * as path from 'node:path';
|
|
8
|
+
import { ux } from '@oclif/core';
|
|
9
|
+
export class MetadataConvertResultFormatter {
|
|
10
|
+
result;
|
|
11
|
+
convertResults;
|
|
13
12
|
constructor(result) {
|
|
14
13
|
this.result = result;
|
|
15
14
|
}
|
|
@@ -39,7 +38,7 @@ class MetadataConvertResultFormatter {
|
|
|
39
38
|
async display() {
|
|
40
39
|
const convertData = await this.getJson();
|
|
41
40
|
if (convertData?.length) {
|
|
42
|
-
|
|
41
|
+
ux.table(convertData.map((entry) => ({
|
|
43
42
|
state: entry.state,
|
|
44
43
|
fullName: entry.fullName,
|
|
45
44
|
type: entry.type,
|
|
@@ -52,9 +51,8 @@ class MetadataConvertResultFormatter {
|
|
|
52
51
|
}, { 'no-truncate': true });
|
|
53
52
|
}
|
|
54
53
|
else {
|
|
55
|
-
|
|
54
|
+
ux.log('No metadata found to convert');
|
|
56
55
|
}
|
|
57
56
|
}
|
|
58
57
|
}
|
|
59
|
-
exports.MetadataConvertResultFormatter = MetadataConvertResultFormatter;
|
|
60
58
|
//# sourceMappingURL=metadataConvertResultFormatter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadataConvertResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/metadataConvertResultFormatter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"metadataConvertResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/metadataConvertResultFormatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAIjC,MAAM,OAAO,8BAA8B;IAEd;IADnB,cAAc,CAAoB;IAC1C,YAA2B,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAEpD,4DAA4D;IACrD,KAAK,CAAC,OAAO;QAClB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YAC5C,IAAI,SAAS,CAAC,GAAG,EAAE;gBACjB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;oBACvB,QAAQ,EAAE,SAAS,CAAC,QAAQ;oBAC5B,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI;oBACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC;oBAC3C,KAAK,EAAE,KAAK;iBACb,CAAC,CAAC;aACJ;YACD,IAAI,SAAS,CAAC,OAAO,EAAE;gBACrB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;oBACvB,QAAQ,EAAE,SAAS,CAAC,QAAQ;oBAC5B,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI;oBACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC,OAAO,CAAC;oBAC/C,KAAK,EAAE,KAAK;iBACb,CAAC,CAAC;aACJ;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAEM,KAAK,CAAC,OAAO;QAClB,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;QACzC,IAAI,WAAW,EAAE,MAAM,EAAE;YACvB,EAAE,CAAC,KAAK,CACN,WAAW,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;gBAC1B,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ;gBACxB,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,QAAQ,EAAE,KAAK,CAAC,QAAQ;aACzB,CAAC,CAAC,EACH;gBACE,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;gBAC1B,QAAQ,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE;gBACjC,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;gBACxB,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE;aACrC,EACD,EAAE,aAAa,EAAE,IAAI,EAAE,CACxB,CAAC;SACH;aAAM;YACL,EAAE,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;SACxC;IACH,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RetrieveResult } from '@salesforce/source-deploy-retrieve';
|
|
2
2
|
import { Messages } from '@salesforce/core';
|
|
3
|
-
import { Formatter, MetadataRetrieveResultJson } from '../utils/types';
|
|
3
|
+
import { Formatter, MetadataRetrieveResultJson } from '../utils/types.js';
|
|
4
4
|
export declare const retrieveMessages: Messages<string>;
|
|
5
5
|
export declare class MetadataRetrieveResultFormatter implements Formatter<MetadataRetrieveResultJson> {
|
|
6
6
|
private result;
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MetadataRetrieveResultFormatter = exports.retrieveMessages = 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
|
-
|
|
7
|
+
import { join, parse, dirname } from 'node:path';
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
import { ux } from '@oclif/core';
|
|
10
|
+
import { Messages } from '@salesforce/core';
|
|
11
|
+
import { sortFileResponses, asRelativePaths } from '../utils/output.js';
|
|
12
|
+
Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
|
|
13
|
+
export const retrieveMessages = Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'retrieve.start');
|
|
14
|
+
export class MetadataRetrieveResultFormatter {
|
|
15
|
+
result;
|
|
16
|
+
opts;
|
|
17
|
+
zipFilePath;
|
|
18
|
+
files;
|
|
17
19
|
constructor(result, opts) {
|
|
18
20
|
this.result = result;
|
|
19
21
|
this.opts = opts;
|
|
20
|
-
this.zipFilePath =
|
|
21
|
-
this.files =
|
|
22
|
+
this.zipFilePath = join(opts['target-metadata-dir'], opts['zip-file-name']);
|
|
23
|
+
this.files = sortFileResponses(asRelativePaths(this.result.getFileResponses() ?? []));
|
|
22
24
|
}
|
|
23
25
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
24
26
|
async getJson() {
|
|
@@ -28,12 +30,11 @@ class MetadataRetrieveResultFormatter {
|
|
|
28
30
|
}
|
|
29
31
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
30
32
|
async display() {
|
|
31
|
-
|
|
33
|
+
ux.log(retrieveMessages.getMessage('info.WroteZipFile', [this.zipFilePath]));
|
|
32
34
|
if (this.opts.unzip) {
|
|
33
|
-
const extractPath =
|
|
34
|
-
|
|
35
|
+
const extractPath = join(this.opts['target-metadata-dir'], parse(this.opts['zip-file-name']).name);
|
|
36
|
+
ux.log(retrieveMessages.getMessage('info.ExtractedZipFile', [this.zipFilePath, extractPath]));
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
|
-
exports.MetadataRetrieveResultFormatter = MetadataRetrieveResultFormatter;
|
|
39
40
|
//# sourceMappingURL=metadataRetrieveResultFormatter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadataRetrieveResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/metadataRetrieveResultFormatter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"metadataRetrieveResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/metadataRetrieveResultFormatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAExE,QAAQ,CAAC,uBAAuB,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC1E,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,YAAY,CAAC,oCAAoC,E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AAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ux } from '@salesforce/sf-plugins-core';
|
|
2
2
|
import { FileResponse, RetrieveResult } from '@salesforce/source-deploy-retrieve';
|
|
3
|
-
import { Formatter, RetrieveResultJson } from '../utils/types';
|
|
3
|
+
import { Formatter, RetrieveResultJson } from '../utils/types.js';
|
|
4
4
|
export declare class RetrieveResultFormatter implements Formatter<RetrieveResultJson> {
|
|
5
5
|
private ux;
|
|
6
6
|
private result;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RetrieveResultFormatter = 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
|
-
class RetrieveResultFormatter {
|
|
7
|
+
import * as path from 'node:path';
|
|
8
|
+
import { SfProject } from '@salesforce/core';
|
|
9
|
+
import { ensureArray } from '@salesforce/kit';
|
|
10
|
+
import { isSdrSuccess } from '../utils/types.js';
|
|
11
|
+
import { sortFileResponses, asRelativePaths, tableHeader, getFileResponseSuccessProps } from '../utils/output.js';
|
|
12
|
+
export class RetrieveResultFormatter {
|
|
13
|
+
ux;
|
|
14
|
+
result;
|
|
15
|
+
packageNames;
|
|
16
|
+
files;
|
|
16
17
|
constructor(ux, result, packageNames = [], deleteResponses = []) {
|
|
17
18
|
this.ux = ux;
|
|
18
19
|
this.result = result;
|
|
@@ -29,7 +30,7 @@ class RetrieveResultFormatter {
|
|
|
29
30
|
await this.displayPackages();
|
|
30
31
|
}
|
|
31
32
|
displaySuccesses() {
|
|
32
|
-
const successes =
|
|
33
|
+
const successes = sortFileResponses(asRelativePaths(this.files.filter(isSdrSuccess)));
|
|
33
34
|
if (!successes.length) {
|
|
34
35
|
// a retrieve happened, but nothing was retrieved
|
|
35
36
|
if (this.result.response.status) {
|
|
@@ -47,14 +48,14 @@ class RetrieveResultFormatter {
|
|
|
47
48
|
type: { header: 'Type' },
|
|
48
49
|
filePath: { header: 'Path' },
|
|
49
50
|
};
|
|
50
|
-
const options = { title:
|
|
51
|
+
const options = { title: tableHeader('Retrieved Source'), 'no-truncate': true };
|
|
51
52
|
this.ux.log();
|
|
52
|
-
this.ux.table(
|
|
53
|
+
this.ux.table(getFileResponseSuccessProps(successes), columns, options);
|
|
53
54
|
}
|
|
54
55
|
const warnings = getWarnings(this.result);
|
|
55
56
|
if (warnings.length) {
|
|
56
57
|
this.ux.log();
|
|
57
|
-
this.ux.table(warnings, { fileName: { header: 'File' }, problem: { header: 'Problem' } }, { 'no-truncate': true, title:
|
|
58
|
+
this.ux.table(warnings, { fileName: { header: 'File' }, problem: { header: 'Problem' } }, { 'no-truncate': true, title: tableHeader('Warnings') });
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
async displayPackages() {
|
|
@@ -65,19 +66,18 @@ class RetrieveResultFormatter {
|
|
|
65
66
|
fullPath: { header: 'Converted Location' },
|
|
66
67
|
};
|
|
67
68
|
const title = 'Retrieved Packages';
|
|
68
|
-
const options = { title:
|
|
69
|
+
const options = { title: tableHeader(title), 'no-truncate': true };
|
|
69
70
|
this.ux.log();
|
|
70
71
|
this.ux.table(packages, columns, options);
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
async getPackages() {
|
|
74
|
-
const projectPath = await
|
|
75
|
+
const projectPath = await SfProject.resolveProjectPath();
|
|
75
76
|
return this.packageNames.map((name) => {
|
|
76
77
|
const packagePath = path.join(projectPath, name);
|
|
77
78
|
return { name, path: packagePath, fullPath: path.resolve(packagePath) };
|
|
78
79
|
});
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
|
-
|
|
82
|
-
const getWarnings = (result) => (0, kit_1.ensureArray)(result?.response?.messages ?? []);
|
|
82
|
+
const getWarnings = (result) => ensureArray(result?.response?.messages ?? []);
|
|
83
83
|
//# sourceMappingURL=retrieveResultFormatter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieveResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/retrieveResultFormatter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieveResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/retrieveResultFormatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAGlC,OAAO,EAAmB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAa,YAAY,EAAsB,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAElH,MAAM,OAAO,uBAAuB;IAGxB;IACA;IACA;IAJF,KAAK,CAAiB;IAC9B,YACU,EAAM,EACN,MAAsB,EACtB,eAAyB,EAAE,EACnC,kBAAkC,EAAE;QAH5B,OAAE,GAAF,EAAE,CAAI;QACN,WAAM,GAAN,MAAM,CAAgB;QACtB,iBAAY,GAAZ,YAAY,CAAe;QAGnC,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IAC9E,CAAC;IAED,4DAA4D;IACrD,KAAK,CAAC,OAAO;QAClB,MAAM,EAAE,OAAO,EAAE,GAAG,kBAAkB,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;QAChE,OAAO,EAAE,GAAG,kBAAkB,EAAE,KAAK,EA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GAAG,CAAC,MAAsB,EAAqB,EAAE,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConvertResult } from '@salesforce/source-deploy-retrieve';
|
|
2
2
|
import { Messages } from '@salesforce/core';
|
|
3
|
-
import { ConvertResultJson, Formatter } from '../utils/types';
|
|
3
|
+
import { ConvertResultJson, Formatter } from '../utils/types.js';
|
|
4
4
|
export declare const convertMessages: Messages<string>;
|
|
5
5
|
export declare class SourceConvertResultFormatter implements Formatter<ConvertResultJson> {
|
|
6
6
|
private result;
|
|
@@ -1,38 +1,36 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SourceConvertResultFormatter = exports.convertMessages = 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
|
-
|
|
7
|
+
import { resolve, dirname } from 'node:path';
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
import { ux } from '@oclif/core';
|
|
10
|
+
import { SfError, Messages } from '@salesforce/core';
|
|
11
|
+
Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
|
|
12
|
+
export const convertMessages = Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'convert.source');
|
|
13
|
+
export class SourceConvertResultFormatter {
|
|
14
|
+
result;
|
|
16
15
|
constructor(result) {
|
|
17
16
|
this.result = result;
|
|
18
17
|
}
|
|
19
18
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
20
19
|
async getJson() {
|
|
21
20
|
if (!this.result.packagePath) {
|
|
22
|
-
throw new
|
|
21
|
+
throw new SfError('Convert result contains no packagePath');
|
|
23
22
|
}
|
|
24
23
|
return {
|
|
25
|
-
location:
|
|
24
|
+
location: resolve(this.result.packagePath),
|
|
26
25
|
};
|
|
27
26
|
}
|
|
28
27
|
display() {
|
|
29
28
|
if ([0, 69].includes(process.exitCode ?? 0)) {
|
|
30
|
-
|
|
29
|
+
ux.log(convertMessages.getMessage('success', [this.result.packagePath]));
|
|
31
30
|
}
|
|
32
31
|
else {
|
|
33
|
-
throw new
|
|
32
|
+
throw new SfError(convertMessages.getMessage('convertFailed'), 'ConvertFailed');
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
|
-
exports.SourceConvertResultFormatter = SourceConvertResultFormatter;
|
|
38
36
|
//# sourceMappingURL=sourceConvertResultFormatter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sourceConvertResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/sourceConvertResultFormatter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sourceConvertResultFormatter.js","sourceRoot":"","sources":["../../src/formatters/sourceConvertResultFormatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGrD,QAAQ,CAAC,uBAAuB,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC1E,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,gBAAgB,CAAC,CAAC;AAE7G,MAAM,OAAO,4BAA4B;IACZ;IAA3B,YAA2B,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IACpD,4DAA4D;IACrD,KAAK,CAAC,OAAO;QAClB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;YAC5B,MAAM,IAAI,OAAO,CAAC,wCAAwC,CAAC,CAAC;SAC7D;QACD,OAAO;YACL,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;SAC3C,CAAC;IACJ,CAAC;IAEM,OAAO;QACZ,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,CAAC,EAAE;YAC3C,EAAE,CAAC,GAAG,CAAC,eAAe,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;SAC1E;aAAM;YACL,MAAM,IAAI,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC,CAAC;SACjF;IACH,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeployResult } from '@salesforce/source-deploy-retrieve';
|
|
2
|
-
import { TestLevel, Verbosity } from '../utils/types';
|
|
2
|
+
import { TestLevel, Verbosity } from '../utils/types.js';
|
|
3
3
|
export declare class TestResultsFormatter {
|
|
4
4
|
protected result: DeployResult;
|
|
5
5
|
protected flags: Partial<{
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TestResultsFormatter = void 0;
|
|
4
1
|
/*
|
|
5
2
|
* Copyright (c) 2023, 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 TestResultsFormatter {
|
|
7
|
+
import * as os from 'node:os';
|
|
8
|
+
import { ux } from '@oclif/core';
|
|
9
|
+
import chalk from 'chalk';
|
|
10
|
+
import { ensureArray } from '@salesforce/kit';
|
|
11
|
+
import { TestLevel } from '../utils/types.js';
|
|
12
|
+
import { tableHeader, error, success, check } from '../utils/output.js';
|
|
13
|
+
import { coverageOutput } from '../utils/coverage.js';
|
|
14
|
+
export class TestResultsFormatter {
|
|
15
|
+
result;
|
|
16
|
+
flags;
|
|
17
|
+
testLevel;
|
|
18
|
+
verbosity;
|
|
18
19
|
constructor(result, flags) {
|
|
19
20
|
this.result = result;
|
|
20
21
|
this.flags = flags;
|
|
@@ -22,8 +23,8 @@ class TestResultsFormatter {
|
|
|
22
23
|
this.verbosity = this.determineVerbosity();
|
|
23
24
|
}
|
|
24
25
|
displayTestResults() {
|
|
25
|
-
if (this.testLevel ===
|
|
26
|
-
|
|
26
|
+
if (this.testLevel === TestLevel.NoTestRun || !this.result.response.runTestsEnabled) {
|
|
27
|
+
ux.log();
|
|
27
28
|
return;
|
|
28
29
|
}
|
|
29
30
|
displayVerboseTestFailures(this.result.response);
|
|
@@ -31,16 +32,16 @@ class TestResultsFormatter {
|
|
|
31
32
|
displayVerboseTestSuccesses(this.result.response.details.runTestResult?.successes);
|
|
32
33
|
displayVerboseTestCoverage(this.result.response.details.runTestResult?.codeCoverage);
|
|
33
34
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
ux.log();
|
|
36
|
+
ux.log(tableHeader('Test Results Summary'));
|
|
37
|
+
ux.log(`Passing: ${this.result.response.numberTestsCompleted ?? 0}`);
|
|
38
|
+
ux.log(`Failing: ${this.result.response.numberTestErrors ?? 0}`);
|
|
39
|
+
ux.log(`Total: ${this.result.response.numberTestsTotal ?? 0}`);
|
|
39
40
|
const time = this.result.response.details.runTestResult?.totalTime ?? 0;
|
|
40
41
|
if (time)
|
|
41
|
-
|
|
42
|
+
ux.log(`Time: ${time}`);
|
|
42
43
|
// I think the type might be wrong in SDR
|
|
43
|
-
|
|
44
|
+
ensureArray(this.result.response.details.runTestResult?.codeCoverageWarnings).map((warning) => ux.warn(`${warning.name ? `${warning.name} - ` : ''}${warning.message}`));
|
|
44
45
|
}
|
|
45
46
|
determineVerbosity() {
|
|
46
47
|
if (this.flags.verbose)
|
|
@@ -48,15 +49,14 @@ class TestResultsFormatter {
|
|
|
48
49
|
return 'normal';
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
|
-
exports.TestResultsFormatter = TestResultsFormatter;
|
|
52
52
|
const displayVerboseTestSuccesses = (resultSuccesses) => {
|
|
53
|
-
const successes =
|
|
53
|
+
const successes = ensureArray(resultSuccesses).sort(testResultSort);
|
|
54
54
|
if (successes.length > 0) {
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
ux.log();
|
|
56
|
+
ux.log(success(`Test Success [${successes.length}]`));
|
|
57
57
|
for (const test of successes) {
|
|
58
|
-
const testName =
|
|
59
|
-
|
|
58
|
+
const testName = chalk.underline(`${test.name}.${test.methodName}`);
|
|
59
|
+
ux.log(`${check} ${testName}`);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
};
|
|
@@ -64,30 +64,30 @@ const displayVerboseTestSuccesses = (resultSuccesses) => {
|
|
|
64
64
|
const displayVerboseTestFailures = (response) => {
|
|
65
65
|
if (!response.numberTestErrors)
|
|
66
66
|
return;
|
|
67
|
-
const failures =
|
|
67
|
+
const failures = ensureArray(response.details.runTestResult?.failures).sort(testResultSort);
|
|
68
68
|
const failureCount = response.details.runTestResult?.numFailures;
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
ux.log();
|
|
70
|
+
ux.log(error(`Test Failures [${failureCount}]`));
|
|
71
71
|
for (const test of failures) {
|
|
72
|
-
const testName =
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
const testName = chalk.underline(`${test.name}.${test.methodName}`);
|
|
73
|
+
ux.log(`• ${testName}`);
|
|
74
|
+
ux.log(` ${chalk.dim('message')}: ${test.message}`);
|
|
75
75
|
if (test.stackTrace) {
|
|
76
76
|
const stackTrace = test.stackTrace.replace(/\n/g, `${os.EOL} `);
|
|
77
|
-
|
|
77
|
+
ux.log(` ${chalk.dim('stacktrace')}: ${os.EOL} ${stackTrace}`);
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
ux.log();
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
/**
|
|
83
83
|
* Display the table if there is at least one coverage item in the result
|
|
84
84
|
*/
|
|
85
85
|
const displayVerboseTestCoverage = (coverage) => {
|
|
86
|
-
const codeCoverage =
|
|
86
|
+
const codeCoverage = ensureArray(coverage);
|
|
87
87
|
if (codeCoverage.length) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
ux.log();
|
|
89
|
+
ux.log(tableHeader('Apex Code Coverage'));
|
|
90
|
+
ux.table(codeCoverage.sort(coverageSort).map(coverageOutput), {
|
|
91
91
|
name: { header: 'Name' },
|
|
92
92
|
coveragePercent: { header: '% Covered' },
|
|
93
93
|
linesNotCovered: { header: 'Uncovered Lines' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testResultsFormatter.js","sourceRoot":"","sources":["../../src/formatters/testResultsFormatter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"testResultsFormatter.js","sourceRoot":"","sources":["../../src/formatters/testResultsFormatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAA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|
* Copyright (c) 2021, salesforce.com, inc.
|
|
4
3
|
* All rights reserved.
|
|
5
4
|
* Licensed under the BSD 3-Clause license.
|
|
6
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
6
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const metadataDeployer_1 = require("../utils/metadataDeployer");
|
|
7
|
+
import { SfProject } from '@salesforce/core';
|
|
8
|
+
import { MetadataDeployer } from '../utils/metadataDeployer.js';
|
|
11
9
|
const hook = async function () {
|
|
12
|
-
const project = await
|
|
10
|
+
const project = await SfProject.resolve();
|
|
13
11
|
const packageDirectories = project.getPackageDirectories();
|
|
14
|
-
return [new
|
|
12
|
+
return [new MetadataDeployer(packageDirectories)];
|
|
15
13
|
};
|
|
16
|
-
|
|
14
|
+
export default hook;
|
|
17
15
|
//# sourceMappingURL=deploy.js.map
|
package/lib/hooks/deploy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../src/hooks/deploy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../src/hooks/deploy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,MAAM,IAAI,GAAoC,KAAK;IACjD,MAAM,OAAO,GAAG,MAAM,SAAS,CAAC,OAAO,EAAE,CAAC;IAC1C,MAAM,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAC3D,OAAO,CAAC,IAAI,gBAAgB,CAAC,kBAAkB,CAAC,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
declare const _default: {};
|
|
2
|
-
export
|
|
2
|
+
export default _default;
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/*
|
|
3
2
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
4
3
|
* All rights reserved.
|
|
5
4
|
* Licensed under the BSD 3-Clause license.
|
|
6
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
6
|
*/
|
|
8
|
-
|
|
7
|
+
export default {};
|
|
9
8
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAe,EAAE,CAAC"}
|
package/lib/utils/conflicts.js
CHANGED
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/*
|
|
3
2
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
4
3
|
* All rights reserved.
|
|
5
4
|
* Licensed under the BSD 3-Clause license.
|
|
6
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
6
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const core_1 = require("@oclif/core");
|
|
11
|
-
const writeConflictTable = (conflicts) => {
|
|
7
|
+
import { ux } from '@oclif/core';
|
|
8
|
+
export const writeConflictTable = (conflicts) => {
|
|
12
9
|
// Interfaces cannot be casted to Record<string, unknown> so we have to cast to unknown first
|
|
13
10
|
// See https://github.com/microsoft/TypeScript/issues/15300
|
|
14
|
-
|
|
11
|
+
ux.table(conflicts.map((c) => ({ state: c.state, fullName: c.fullName, type: c.type, filePath: c.filePath })), {
|
|
15
12
|
state: { header: 'STATE' },
|
|
16
13
|
fullName: { header: 'FULL NAME' },
|
|
17
14
|
type: { header: 'TYPE' },
|
|
18
15
|
filePath: { header: 'FILE PATH' },
|
|
19
16
|
}, { 'no-truncate': true });
|
|
20
17
|
};
|
|
21
|
-
exports.writeConflictTable = writeConflictTable;
|
|
22
18
|
//# sourceMappingURL=conflicts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conflicts.js","sourceRoot":"","sources":["../../src/utils/conflicts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conflicts.js","sourceRoot":"","sources":["../../src/utils/conflicts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGjC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,SAA6B,EAAQ,EAAE;IACxE,6FAA6F;IAC7F,2DAA2D;IAC3D,EAAE,CAAC,KAAK,CACN,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,EACpG;QACE,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;QAC1B,QAAQ,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE;QACjC,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;QACxB,QAAQ,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE;KAClC,EACD,EAAE,aAAa,EAAE,IAAI,EAAE,CACxB,CAAC;AACJ,CAAC,CAAC"}
|