@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,24 +1,40 @@
|
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const messages =
|
|
16
|
-
class DeleteTracking extends
|
|
7
|
+
import { dirname } from 'node:path';
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
import { Messages } from '@salesforce/core';
|
|
10
|
+
import chalk from 'chalk';
|
|
11
|
+
import { SourceTracking } from '@salesforce/source-tracking';
|
|
12
|
+
import { Flags, loglevel, orgApiVersionFlagWithDeprecations, requiredOrgFlagWithDeprecations, SfCommand, } from '@salesforce/sf-plugins-core';
|
|
13
|
+
Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
|
|
14
|
+
const messages = Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'delete.tracking');
|
|
15
|
+
export class DeleteTracking extends SfCommand {
|
|
16
|
+
static deprecateAliases = true;
|
|
17
|
+
static aliases = ['force:source:tracking:clear'];
|
|
18
|
+
static summary = messages.getMessage('deleteSummary');
|
|
19
|
+
static description = messages.getMessage('deleteDescription');
|
|
20
|
+
static requiresProject = true;
|
|
21
|
+
static examples = messages.getMessages('deleteExample');
|
|
22
|
+
static flags = {
|
|
23
|
+
'api-version': orgApiVersionFlagWithDeprecations,
|
|
24
|
+
loglevel,
|
|
25
|
+
'target-org': requiredOrgFlagWithDeprecations,
|
|
26
|
+
'no-prompt': Flags.boolean({
|
|
27
|
+
char: 'p',
|
|
28
|
+
summary: messages.getMessage('flags.no-prompt.summary'),
|
|
29
|
+
aliases: ['noprompt'],
|
|
30
|
+
deprecateAliases: true,
|
|
31
|
+
}),
|
|
32
|
+
};
|
|
17
33
|
async run() {
|
|
18
34
|
const { flags } = await this.parse(DeleteTracking);
|
|
19
35
|
let clearedFiles = [];
|
|
20
36
|
if (flags['no-prompt'] || (await this.confirm(chalk.dim(messages.getMessage('promptMessage'))))) {
|
|
21
|
-
const sourceTracking = await
|
|
37
|
+
const sourceTracking = await SourceTracking.create({
|
|
22
38
|
project: this.project,
|
|
23
39
|
org: flags['target-org'],
|
|
24
40
|
});
|
|
@@ -28,22 +44,4 @@ class DeleteTracking extends sf_plugins_core_1.SfCommand {
|
|
|
28
44
|
return { clearedFiles };
|
|
29
45
|
}
|
|
30
46
|
}
|
|
31
|
-
exports.DeleteTracking = DeleteTracking;
|
|
32
|
-
DeleteTracking.deprecateAliases = true;
|
|
33
|
-
DeleteTracking.aliases = ['force:source:tracking:clear'];
|
|
34
|
-
DeleteTracking.summary = messages.getMessage('deleteSummary');
|
|
35
|
-
DeleteTracking.description = messages.getMessage('deleteDescription');
|
|
36
|
-
DeleteTracking.requiresProject = true;
|
|
37
|
-
DeleteTracking.examples = messages.getMessages('deleteExample');
|
|
38
|
-
DeleteTracking.flags = {
|
|
39
|
-
'api-version': sf_plugins_core_1.orgApiVersionFlagWithDeprecations,
|
|
40
|
-
loglevel: sf_plugins_core_1.loglevel,
|
|
41
|
-
'target-org': sf_plugins_core_1.requiredOrgFlagWithDeprecations,
|
|
42
|
-
'no-prompt': sf_plugins_core_1.Flags.boolean({
|
|
43
|
-
char: 'p',
|
|
44
|
-
summary: messages.getMessage('flags.no-prompt.summary'),
|
|
45
|
-
aliases: ['noprompt'],
|
|
46
|
-
deprecateAliases: true,
|
|
47
|
-
}),
|
|
48
|
-
};
|
|
49
47
|
//# sourceMappingURL=tracking.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracking.js","sourceRoot":"","sources":["../../../../src/commands/project/delete/tracking.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tracking.js","sourceRoot":"","sources":["../../../../src/commands/project/delete/tracking.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EACL,KAAK,EACL,QAAQ,EACR,iCAAiC,EACjC,+BAA+B,EAC/B,SAAS,GACV,MAAM,6BAA6B,CAAC;AAErC,QAAQ,CAAC,uBAAuB,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC1E,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,iBAAiB,CAAC,CAAC;AAMhG,MAAM,OAAO,cAAe,SAAQ,SAA+B;IAC1D,MAAM,CAAU,gBAAgB,GAAG,IAAI,CAAC;IACxC,MAAM,CAAU,OAAO,GAAG,CAAC,6BAA6B,CAAC,CAAC;IAC1D,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;IAC/D,MAAM,CAAU,WAAW,G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';
|
|
2
2
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
|
-
import { DeployResultJson } from '../../../utils/types';
|
|
3
|
+
import { DeployResultJson } from '../../../utils/types.js';
|
|
4
4
|
export default class DeployMetadataCancel extends SfCommand<DeployResultJson> {
|
|
5
5
|
static readonly description: string;
|
|
6
6
|
static readonly summary: string;
|
|
@@ -8,10 +8,10 @@ export default class DeployMetadataCancel extends SfCommand<DeployResultJson> {
|
|
|
8
8
|
static readonly aliases: string[];
|
|
9
9
|
static readonly deprecateAliases = true;
|
|
10
10
|
static readonly flags: {
|
|
11
|
-
async: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
|
-
'job-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
13
|
-
'use-most-recent': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
|
-
wait: import("@oclif/core/lib/interfaces").OptionFlag<Duration
|
|
11
|
+
async: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
12
|
+
'job-id': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
13
|
+
'use-most-recent': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
14
|
+
wait: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<Duration, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
15
15
|
};
|
|
16
16
|
run(): Promise<DeployResultJson>;
|
|
17
17
|
protected catch(error: SfCommand.Error): Promise<SfCommand.Error>;
|
|
@@ -1,48 +1,85 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/*
|
|
3
2
|
* Copyright (c) 2022, 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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
import { dirname } from 'node:path';
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
import { Messages } from '@salesforce/core';
|
|
10
|
+
import { Duration } from '@salesforce/kit';
|
|
11
|
+
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
|
|
12
|
+
import { RequestStatus } from '@salesforce/source-deploy-retrieve';
|
|
13
|
+
import { cancelDeploy, cancelDeployAsync } from '../../../utils/deploy.js';
|
|
14
|
+
import { DeployCache } from '../../../utils/deployCache.js';
|
|
15
|
+
import { AsyncDeployCancelResultFormatter } from '../../../formatters/asyncDeployCancelResultFormatter.js';
|
|
16
|
+
import { DeployCancelResultFormatter } from '../../../formatters/deployCancelResultFormatter.js';
|
|
17
|
+
Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
|
|
18
|
+
const messages = Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'deploy.metadata.cancel');
|
|
19
|
+
export default class DeployMetadataCancel extends SfCommand {
|
|
20
|
+
static description = messages.getMessage('description');
|
|
21
|
+
static summary = messages.getMessage('summary');
|
|
22
|
+
static examples = messages.getMessages('examples');
|
|
23
|
+
static aliases = ['deploy:metadata:cancel'];
|
|
24
|
+
static deprecateAliases = true;
|
|
25
|
+
static flags = {
|
|
26
|
+
async: Flags.boolean({
|
|
27
|
+
summary: messages.getMessage('flags.async.summary'),
|
|
28
|
+
description: messages.getMessage('flags.async.description'),
|
|
29
|
+
exclusive: ['wait'],
|
|
30
|
+
}),
|
|
31
|
+
'job-id': Flags.salesforceId({
|
|
32
|
+
char: 'i',
|
|
33
|
+
startsWith: '0Af',
|
|
34
|
+
length: 'both',
|
|
35
|
+
description: messages.getMessage('flags.job-id.description'),
|
|
36
|
+
summary: messages.getMessage('flags.job-id.summary'),
|
|
37
|
+
exactlyOne: ['use-most-recent', 'job-id'],
|
|
38
|
+
}),
|
|
39
|
+
'use-most-recent': Flags.boolean({
|
|
40
|
+
char: 'r',
|
|
41
|
+
description: messages.getMessage('flags.use-most-recent.description'),
|
|
42
|
+
summary: messages.getMessage('flags.use-most-recent.summary'),
|
|
43
|
+
exactlyOne: ['use-most-recent', 'job-id'],
|
|
44
|
+
}),
|
|
45
|
+
// we want to allow undefined to use the value from the cache
|
|
46
|
+
// eslint-disable-next-line sf-plugin/flag-min-max-default
|
|
47
|
+
wait: Flags.duration({
|
|
48
|
+
char: 'w',
|
|
49
|
+
summary: messages.getMessage('flags.wait.summary'),
|
|
50
|
+
description: messages.getMessage('flags.wait.description'),
|
|
51
|
+
unit: 'minutes',
|
|
52
|
+
helpValue: '<minutes>',
|
|
53
|
+
min: 1,
|
|
54
|
+
exclusive: ['async'],
|
|
55
|
+
}),
|
|
56
|
+
};
|
|
20
57
|
async run() {
|
|
21
|
-
const [{ flags }, cache] = await Promise.all([this.parse(DeployMetadataCancel),
|
|
58
|
+
const [{ flags }, cache] = await Promise.all([this.parse(DeployMetadataCancel), DeployCache.create()]);
|
|
22
59
|
const jobId = cache.resolveLatest(flags['use-most-recent'], flags['job-id']);
|
|
23
60
|
// cancel don't care about your tracking conflicts
|
|
24
61
|
const deployOpts = { ...cache.get(jobId), 'ignore-conflicts': true };
|
|
25
62
|
// we may already know the job finished
|
|
26
63
|
if (deployOpts.status &&
|
|
27
|
-
[
|
|
64
|
+
[RequestStatus.Canceled, RequestStatus.Failed, RequestStatus.Succeeded, RequestStatus.SucceededPartial].includes(deployOpts.status)) {
|
|
28
65
|
messages.createError('error.CannotCancelDeployPre', [jobId, deployOpts.status]);
|
|
29
66
|
}
|
|
30
67
|
if (flags.async) {
|
|
31
|
-
const asyncResult = await
|
|
32
|
-
const formatter = new
|
|
68
|
+
const asyncResult = await cancelDeployAsync({ 'target-org': deployOpts['target-org'] }, jobId);
|
|
69
|
+
const formatter = new AsyncDeployCancelResultFormatter(asyncResult.id, this.config.bin);
|
|
33
70
|
if (!this.jsonEnabled())
|
|
34
71
|
formatter.display();
|
|
35
72
|
return formatter.getJson();
|
|
36
73
|
}
|
|
37
74
|
else {
|
|
38
|
-
const wait = flags.wait ??
|
|
39
|
-
const result = await
|
|
40
|
-
const formatter = new
|
|
75
|
+
const wait = flags.wait ?? Duration.minutes(deployOpts.wait);
|
|
76
|
+
const result = await cancelDeploy({ ...deployOpts, wait }, jobId);
|
|
77
|
+
const formatter = new DeployCancelResultFormatter(result);
|
|
41
78
|
if (!this.jsonEnabled())
|
|
42
79
|
formatter.display();
|
|
43
80
|
cache.update(result.response.id, { status: result.response.status });
|
|
44
81
|
await cache.write();
|
|
45
|
-
if ([
|
|
82
|
+
if ([RequestStatus.Succeeded, RequestStatus.SucceededPartial].includes(result.response.status)) {
|
|
46
83
|
throw messages.createError('error.CannotCancelDeploy');
|
|
47
84
|
}
|
|
48
85
|
return formatter.getJson();
|
|
@@ -61,42 +98,4 @@ class DeployMetadataCancel extends sf_plugins_core_1.SfCommand {
|
|
|
61
98
|
return super.catch(error);
|
|
62
99
|
}
|
|
63
100
|
}
|
|
64
|
-
DeployMetadataCancel.description = messages.getMessage('description');
|
|
65
|
-
DeployMetadataCancel.summary = messages.getMessage('summary');
|
|
66
|
-
DeployMetadataCancel.examples = messages.getMessages('examples');
|
|
67
|
-
DeployMetadataCancel.aliases = ['deploy:metadata:cancel'];
|
|
68
|
-
DeployMetadataCancel.deprecateAliases = true;
|
|
69
|
-
DeployMetadataCancel.flags = {
|
|
70
|
-
async: sf_plugins_core_1.Flags.boolean({
|
|
71
|
-
summary: messages.getMessage('flags.async.summary'),
|
|
72
|
-
description: messages.getMessage('flags.async.description'),
|
|
73
|
-
exclusive: ['wait'],
|
|
74
|
-
}),
|
|
75
|
-
'job-id': sf_plugins_core_1.Flags.salesforceId({
|
|
76
|
-
char: 'i',
|
|
77
|
-
startsWith: '0Af',
|
|
78
|
-
length: 'both',
|
|
79
|
-
description: messages.getMessage('flags.job-id.description'),
|
|
80
|
-
summary: messages.getMessage('flags.job-id.summary'),
|
|
81
|
-
exactlyOne: ['use-most-recent', 'job-id'],
|
|
82
|
-
}),
|
|
83
|
-
'use-most-recent': sf_plugins_core_1.Flags.boolean({
|
|
84
|
-
char: 'r',
|
|
85
|
-
description: messages.getMessage('flags.use-most-recent.description'),
|
|
86
|
-
summary: messages.getMessage('flags.use-most-recent.summary'),
|
|
87
|
-
exactlyOne: ['use-most-recent', 'job-id'],
|
|
88
|
-
}),
|
|
89
|
-
// we want to allow undefined to use the value from the cache
|
|
90
|
-
// eslint-disable-next-line sf-plugin/flag-min-max-default
|
|
91
|
-
wait: sf_plugins_core_1.Flags.duration({
|
|
92
|
-
char: 'w',
|
|
93
|
-
summary: messages.getMessage('flags.wait.summary'),
|
|
94
|
-
description: messages.getMessage('flags.wait.description'),
|
|
95
|
-
unit: 'minutes',
|
|
96
|
-
helpValue: '<minutes>',
|
|
97
|
-
min: 1,
|
|
98
|
-
exclusive: ['async'],
|
|
99
|
-
}),
|
|
100
|
-
};
|
|
101
|
-
exports.default = DeployMetadataCancel;
|
|
102
101
|
//# sourceMappingURL=cancel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel.js","sourceRoot":"","sources":["../../../../src/commands/project/deploy/cancel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cancel.js","sourceRoot":"","sources":["../../../../src/commands/project/deploy/cancel.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,KAA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,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;gBAC9F,MAAM,QAAQ,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAAC;aACxD;YACD,OAAO,SAAS,CAAC,OAAO,EAAE,CAAC;SAC5B;IACH,CAAC;IAES,KAAK,CAAC,KAAsB;QACpC,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE;YAC3C,MAAM,GAAG,GAAG,QAAQ,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAAC;YAC7D,OAAO,KAAK,CAAC,KAAK,CAAC;gBACjB,GAAG,KAAK;gBACR,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,OAAO,EAAE,GAAG,CAAC,OAAO;gBACpB,GAAG,CAAC,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAC5F,CAAC,CAAC;SACJ;QACD,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { PreviewResult } from '../../../utils/previewOutput';
|
|
2
|
+
import { PreviewResult } from '../../../utils/previewOutput.js';
|
|
3
3
|
export default class DeployMetadataPreview extends SfCommand<PreviewResult> {
|
|
4
4
|
static readonly description: string;
|
|
5
5
|
static readonly summary: string;
|
|
@@ -8,11 +8,11 @@ export default class DeployMetadataPreview extends SfCommand<PreviewResult> {
|
|
|
8
8
|
static readonly aliases: string[];
|
|
9
9
|
static readonly deprecateAliases = true;
|
|
10
10
|
static readonly flags: {
|
|
11
|
-
'ignore-conflicts': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
|
-
manifest: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
13
|
-
metadata: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
14
|
-
'source-dir': import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
15
|
-
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
11
|
+
'ignore-conflicts': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
12
|
+
manifest: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
13
|
+
metadata: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
14
|
+
'source-dir': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
15
|
+
'target-org': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
16
16
|
};
|
|
17
17
|
run(): Promise<PreviewResult>;
|
|
18
18
|
}
|
|
@@ -1,37 +1,77 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
1
|
/*
|
|
4
2
|
* Copyright (c) 2022, salesforce.com, inc.
|
|
5
3
|
* All rights reserved.
|
|
6
4
|
* Licensed under the BSD 3-Clause license.
|
|
7
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
8
6
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
import { dirname } from 'node:path';
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
import { Messages } from '@salesforce/core';
|
|
10
|
+
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
|
|
11
|
+
import { SourceTracking } from '@salesforce/source-tracking';
|
|
12
|
+
import { ForceIgnore } from '@salesforce/source-deploy-retrieve';
|
|
13
|
+
import { buildComponentSet } from '../../../utils/deploy.js';
|
|
14
|
+
import { printTables, compileResults, getConflictFiles } from '../../../utils/previewOutput.js';
|
|
15
|
+
Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
|
|
16
|
+
const messages = Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'deploy.metadata.preview');
|
|
17
17
|
const exclusiveFlags = ['manifest', 'source-dir', 'metadata'];
|
|
18
|
-
class DeployMetadataPreview extends
|
|
18
|
+
export default class DeployMetadataPreview extends SfCommand {
|
|
19
|
+
static description = messages.getMessage('description');
|
|
20
|
+
static summary = messages.getMessage('summary');
|
|
21
|
+
static examples = messages.getMessages('examples');
|
|
22
|
+
static requiresProject = true;
|
|
23
|
+
static aliases = ['deploy:metadata:preview'];
|
|
24
|
+
static deprecateAliases = true;
|
|
25
|
+
static flags = {
|
|
26
|
+
'ignore-conflicts': Flags.boolean({
|
|
27
|
+
char: 'c',
|
|
28
|
+
summary: messages.getMessage('flags.ignore-conflicts.summary'),
|
|
29
|
+
description: messages.getMessage('flags.ignore-conflicts.description'),
|
|
30
|
+
default: false,
|
|
31
|
+
}),
|
|
32
|
+
manifest: Flags.file({
|
|
33
|
+
char: 'x',
|
|
34
|
+
description: messages.getMessage('flags.manifest.description'),
|
|
35
|
+
summary: messages.getMessage('flags.manifest.summary'),
|
|
36
|
+
exclusive: exclusiveFlags.filter((f) => f !== 'manifest'),
|
|
37
|
+
exists: true,
|
|
38
|
+
}),
|
|
39
|
+
metadata: Flags.string({
|
|
40
|
+
char: 'm',
|
|
41
|
+
summary: messages.getMessage('flags.metadata.summary'),
|
|
42
|
+
multiple: true,
|
|
43
|
+
exclusive: exclusiveFlags.filter((f) => f !== 'metadata'),
|
|
44
|
+
}),
|
|
45
|
+
'source-dir': Flags.string({
|
|
46
|
+
char: 'd',
|
|
47
|
+
description: messages.getMessage('flags.source-dir.description'),
|
|
48
|
+
summary: messages.getMessage('flags.source-dir.summary'),
|
|
49
|
+
multiple: true,
|
|
50
|
+
exclusive: exclusiveFlags.filter((f) => f !== 'source-dir'),
|
|
51
|
+
}),
|
|
52
|
+
'target-org': Flags.requiredOrg({
|
|
53
|
+
char: 'o',
|
|
54
|
+
description: messages.getMessage('flags.target-org.description'),
|
|
55
|
+
summary: messages.getMessage('flags.target-org.summary'),
|
|
56
|
+
required: true,
|
|
57
|
+
}),
|
|
58
|
+
};
|
|
19
59
|
async run() {
|
|
20
60
|
const { flags } = await this.parse(DeployMetadataPreview);
|
|
21
61
|
const deploySpecified = [flags.manifest, flags.metadata, flags['source-dir']].some((f) => f !== undefined);
|
|
22
|
-
const forceIgnore =
|
|
62
|
+
const forceIgnore = ForceIgnore.findAndCreate(this.project.getDefaultPackage().path);
|
|
23
63
|
// we'll need STL both to check conflicts and to get the list of local changes if no flags are provided
|
|
24
64
|
const stl = flags['ignore-conflicts'] && deploySpecified
|
|
25
65
|
? undefined
|
|
26
|
-
: await
|
|
66
|
+
: await SourceTracking.create({
|
|
27
67
|
org: flags['target-org'],
|
|
28
68
|
project: this.project,
|
|
29
69
|
});
|
|
30
70
|
const [componentSet, filesWithConflicts] = await Promise.all([
|
|
31
|
-
|
|
32
|
-
|
|
71
|
+
buildComponentSet({ ...flags, 'target-org': flags['target-org'].getUsername() }, stl),
|
|
72
|
+
getConflictFiles(stl, flags['ignore-conflicts']),
|
|
33
73
|
]);
|
|
34
|
-
const output =
|
|
74
|
+
const output = compileResults({
|
|
35
75
|
componentSet,
|
|
36
76
|
projectPath: this.project.getPath(),
|
|
37
77
|
filesWithConflicts,
|
|
@@ -39,50 +79,9 @@ class DeployMetadataPreview extends sf_plugins_core_1.SfCommand {
|
|
|
39
79
|
baseOperation: 'deploy',
|
|
40
80
|
});
|
|
41
81
|
if (!this.jsonEnabled()) {
|
|
42
|
-
|
|
82
|
+
printTables(output, 'deploy');
|
|
43
83
|
}
|
|
44
84
|
return output;
|
|
45
85
|
}
|
|
46
86
|
}
|
|
47
|
-
DeployMetadataPreview.description = messages.getMessage('description');
|
|
48
|
-
DeployMetadataPreview.summary = messages.getMessage('summary');
|
|
49
|
-
DeployMetadataPreview.examples = messages.getMessages('examples');
|
|
50
|
-
DeployMetadataPreview.requiresProject = true;
|
|
51
|
-
DeployMetadataPreview.aliases = ['deploy:metadata:preview'];
|
|
52
|
-
DeployMetadataPreview.deprecateAliases = true;
|
|
53
|
-
DeployMetadataPreview.flags = {
|
|
54
|
-
'ignore-conflicts': sf_plugins_core_1.Flags.boolean({
|
|
55
|
-
char: 'c',
|
|
56
|
-
summary: messages.getMessage('flags.ignore-conflicts.summary'),
|
|
57
|
-
description: messages.getMessage('flags.ignore-conflicts.description'),
|
|
58
|
-
default: false,
|
|
59
|
-
}),
|
|
60
|
-
manifest: sf_plugins_core_1.Flags.file({
|
|
61
|
-
char: 'x',
|
|
62
|
-
description: messages.getMessage('flags.manifest.description'),
|
|
63
|
-
summary: messages.getMessage('flags.manifest.summary'),
|
|
64
|
-
exclusive: exclusiveFlags.filter((f) => f !== 'manifest'),
|
|
65
|
-
exists: true,
|
|
66
|
-
}),
|
|
67
|
-
metadata: sf_plugins_core_1.Flags.string({
|
|
68
|
-
char: 'm',
|
|
69
|
-
summary: messages.getMessage('flags.metadata.summary'),
|
|
70
|
-
multiple: true,
|
|
71
|
-
exclusive: exclusiveFlags.filter((f) => f !== 'metadata'),
|
|
72
|
-
}),
|
|
73
|
-
'source-dir': sf_plugins_core_1.Flags.string({
|
|
74
|
-
char: 'd',
|
|
75
|
-
description: messages.getMessage('flags.source-dir.description'),
|
|
76
|
-
summary: messages.getMessage('flags.source-dir.summary'),
|
|
77
|
-
multiple: true,
|
|
78
|
-
exclusive: exclusiveFlags.filter((f) => f !== 'source-dir'),
|
|
79
|
-
}),
|
|
80
|
-
'target-org': sf_plugins_core_1.Flags.requiredOrg({
|
|
81
|
-
char: 'o',
|
|
82
|
-
description: messages.getMessage('flags.target-org.description'),
|
|
83
|
-
summary: messages.getMessage('flags.target-org.summary'),
|
|
84
|
-
required: true,
|
|
85
|
-
}),
|
|
86
|
-
};
|
|
87
|
-
exports.default = DeployMetadataPreview;
|
|
88
87
|
//# sourceMappingURL=preview.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../../../../src/commands/project/deploy/preview.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../../../../src/commands/project/deploy/preview.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAiB,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAE/G,QAAQ,CAAC,uBAAuB,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC1E,MAAM,QAAQ,GAAG,QAAQ,CAAC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1B,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC;gBACxB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC,CAAC;QAET,MAAM,CAAC,YAAY,EAAE,kBAAkB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAC3D,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,EAAE,EAAE,GAAG,CAAC;YACrF,gBAAgB,CAAC,GAAG,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;SACjD,CAAC,CAAC;QAEH,MAAM,MAAM,GAAG,cAAc,CAAC;YAC5B,YAAY;YACZ,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YACnC,kBAAkB;YAClB,WAAW;YACX,aAAa,EAAE,QAAQ;SACxB,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE;YACvB,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;SAC/B;QACD,OAAO,MAAM,CAAC;IAChB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Org } from '@salesforce/core';
|
|
2
2
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
3
|
import { Duration } from '@salesforce/kit';
|
|
4
|
-
import { DeployResultJson } from '../../../utils/types';
|
|
4
|
+
import { DeployResultJson } from '../../../utils/types.js';
|
|
5
5
|
export default class DeployMetadataQuick extends SfCommand<DeployResultJson> {
|
|
6
6
|
static readonly description: string;
|
|
7
7
|
static readonly summary: string;
|
|
@@ -9,14 +9,14 @@ export default class DeployMetadataQuick extends SfCommand<DeployResultJson> {
|
|
|
9
9
|
static readonly aliases: string[];
|
|
10
10
|
static readonly deprecateAliases = true;
|
|
11
11
|
static readonly flags: {
|
|
12
|
-
async: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
13
|
-
concise: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
|
-
'job-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
15
|
-
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<Org
|
|
16
|
-
'use-most-recent': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
|
-
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
18
|
-
wait: import("@oclif/core/lib/interfaces").OptionFlag<Duration, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
19
|
-
'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
12
|
+
async: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
13
|
+
concise: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
14
|
+
'job-id': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
15
|
+
'target-org': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<Org, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
16
|
+
'use-most-recent': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
17
|
+
verbose: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
18
|
+
wait: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<Duration, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
19
|
+
'api-version': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
20
20
|
};
|
|
21
21
|
static errorCodes: import("@oclif/core").HelpSection;
|
|
22
22
|
run(): Promise<DeployResultJson>;
|