@salesforce/plugin-deploy-retrieve 1.1.2 → 1.2.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/CHANGELOG.md +14 -0
- package/README.md +35 -7
- package/lib/commands/deploy/metadata.d.ts +14 -12
- package/lib/commands/deploy/metadata.js +78 -70
- package/lib/commands/deploy/metadata.js.map +1 -1
- package/lib/commands/retrieve/metadata.d.ts +4 -3
- package/lib/commands/retrieve/metadata.js +48 -47
- package/lib/commands/retrieve/metadata.js.map +1 -1
- package/lib/hooks/deploy.js +1 -1
- package/lib/hooks/deploy.js.map +1 -1
- package/lib/utils/deploy.d.ts +29 -0
- package/lib/utils/deploy.js +81 -0
- package/lib/utils/deploy.js.map +1 -0
- package/lib/utils/metadataDeployer.d.ts +1 -1
- package/lib/utils/metadataDeployer.js +50 -17
- package/lib/utils/metadataDeployer.js.map +1 -1
- package/lib/utils/output.d.ts +8 -9
- package/lib/utils/output.js +127 -29
- package/lib/utils/output.js.map +1 -1
- package/lib/utils/progressBar.d.ts +1 -1
- package/lib/utils/progressBar.js +4 -4
- package/lib/utils/progressBar.js.map +1 -1
- package/lib/utils/project.d.ts +3 -0
- package/lib/utils/project.js +22 -0
- package/lib/utils/project.js.map +1 -0
- package/lib/utils/{testLevel.d.ts → types.d.ts} +10 -0
- package/lib/utils/{testLevel.js → types.js} +7 -2
- package/lib/utils/types.js.map +1 -0
- package/messages/deploy.md +8 -3
- package/messages/deploy.metadata.md +54 -2
- package/messages/retrieve.metadata.md +10 -2
- package/oclif.manifest.json +1 -1
- package/package.json +31 -16
- package/schemas/deploy-metadata.json +5 -2
- package/lib/utils/componentSetBuilder.d.ts +0 -28
- package/lib/utils/componentSetBuilder.js +0 -124
- package/lib/utils/componentSetBuilder.js.map +0 -1
- package/lib/utils/config.d.ts +0 -1
- package/lib/utils/config.js +0 -18
- package/lib/utils/config.js.map +0 -1
- package/lib/utils/orgs.d.ts +0 -4
- package/lib/utils/orgs.js +0 -39
- package/lib/utils/orgs.js.map +0 -1
- package/lib/utils/requiredFlagValidator.d.ts +0 -3
- package/lib/utils/requiredFlagValidator.js +0 -19
- package/lib/utils/requiredFlagValidator.js.map +0 -1
- package/lib/utils/testLevel.js.map +0 -1
- package/messages/required.flag.md +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.2.1](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v1.2.0...v1.2.1) (2022-03-31)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- remove default value for tests ([#236](https://github.com/salesforcecli/plugin-deploy-retrieve/issues/236)) ([024d6b6](https://github.com/salesforcecli/plugin-deploy-retrieve/commit/024d6b6af467ec16715a49438885ece7f0a911d1))
|
|
10
|
+
|
|
11
|
+
## [1.2.0](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v1.1.3...v1.2.0) (2022-03-23)
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- deploy parity ([#219](https://github.com/salesforcecli/plugin-deploy-retrieve/issues/219)) ([9a3a1ce](https://github.com/salesforcecli/plugin-deploy-retrieve/commit/9a3a1cedd58c2ac39de5770998d30bc33cb63c66)), closes [#221](https://github.com/salesforcecli/plugin-deploy-retrieve/issues/221) [#223](https://github.com/salesforcecli/plugin-deploy-retrieve/issues/223)
|
|
16
|
+
|
|
17
|
+
### [1.1.3](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v1.1.2...v1.1.3) (2022-03-16)
|
|
18
|
+
|
|
5
19
|
### [1.1.2](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v1.1.1...v1.1.2) (2022-03-16)
|
|
6
20
|
|
|
7
21
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -108,7 +108,7 @@ EXAMPLES
|
|
|
108
108
|
$ sf deploy --interactive
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
_See code: [src/commands/deploy.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/v1.
|
|
111
|
+
_See code: [src/commands/deploy.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/v1.2.0/src/commands/deploy.ts)_
|
|
112
112
|
|
|
113
113
|
## `sf deploy metadata`
|
|
114
114
|
|
|
@@ -116,17 +116,24 @@ Deploy metadata in source format to an org from your local project.
|
|
|
116
116
|
|
|
117
117
|
```
|
|
118
118
|
USAGE
|
|
119
|
-
$ sf deploy metadata [--json] [-
|
|
120
|
-
NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg] [-w <value>]
|
|
119
|
+
$ sf deploy metadata [--json] [-a <value>] [--dry-run] [-r] [-g] [-x <value>] [-m <value>] [-d <value>] [-o
|
|
120
|
+
<value>] [-t <value>] [-l NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg] [--verbose] [-w <value>]
|
|
121
121
|
|
|
122
122
|
FLAGS
|
|
123
|
+
-a, --api-version=<value> Target API version for the deploy.
|
|
123
124
|
-d, --source-dir=<value>... Path to the local source files to deploy.
|
|
125
|
+
-g, --ignore-warnings Ignore warnings and allow a deployment to complete successfully.
|
|
124
126
|
-l, --test-level=<option> [default: NoTestRun] Deployment Apex testing level.
|
|
125
127
|
<options: NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg>
|
|
126
128
|
-m, --metadata=<value>... Metadata component names to deploy.
|
|
127
129
|
-o, --target-org=<value> Login username or alias for the target org.
|
|
128
|
-
-
|
|
130
|
+
-r, --ignore-errors Ignore any errors and don’t roll back deployment.
|
|
131
|
+
-t, --tests=<value>... Apex tests to run when --test-level is RunSpecifiedTests.
|
|
132
|
+
-w, --wait=<minutes> [default: 33 minutes] Number of minutes to wait for command to complete and display
|
|
133
|
+
results.
|
|
129
134
|
-x, --manifest=<value> Full file path for manifest (package.xml) of components to deploy.
|
|
135
|
+
--dry-run Validate deploy and run Apex tests but don’t save to the org.
|
|
136
|
+
--verbose Show verbose output of the deploy result.
|
|
130
137
|
|
|
131
138
|
GLOBAL FLAGS
|
|
132
139
|
--json Format output as json.
|
|
@@ -182,6 +189,11 @@ EXAMPLES
|
|
|
182
189
|
$ sf deploy metadata --metadata ApexClass --test-level RunLocalTests
|
|
183
190
|
|
|
184
191
|
FLAG DESCRIPTIONS
|
|
192
|
+
-a, --api-version=<value> Target API version for the deploy.
|
|
193
|
+
|
|
194
|
+
Use this flag to override the default API version, which is the latest version supported the CLI, with the API
|
|
195
|
+
version of your package.xml file.
|
|
196
|
+
|
|
185
197
|
-d, --source-dir=<value>... Path to the local source files to deploy.
|
|
186
198
|
|
|
187
199
|
The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder
|
|
@@ -189,6 +201,11 @@ FLAG DESCRIPTIONS
|
|
|
189
201
|
|
|
190
202
|
If you specify this flag, don’t specify --metadata or --manifest.
|
|
191
203
|
|
|
204
|
+
-g, --ignore-warnings Ignore warnings and allow a deployment to complete successfully.
|
|
205
|
+
|
|
206
|
+
If a warning occurs and this flag is set to true, the success status of the deployment is set to true. When this
|
|
207
|
+
flag is set to false, success is set to false, and the warning is treated like an error.
|
|
208
|
+
|
|
192
209
|
-l, --test-level=NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg Deployment Apex testing level.
|
|
193
210
|
|
|
194
211
|
Valid values are:
|
|
@@ -215,7 +232,18 @@ FLAG DESCRIPTIONS
|
|
|
215
232
|
|
|
216
233
|
Overrides your default org.
|
|
217
234
|
|
|
218
|
-
-
|
|
235
|
+
-r, --ignore-errors Ignore any errors and don’t roll back deployment.
|
|
236
|
+
|
|
237
|
+
When deploying to a production org, keep this flag set to false (default value). When set to true, components
|
|
238
|
+
without errors are deployed and components with errors are skipped, and could result in an inconsistent production
|
|
239
|
+
org.
|
|
240
|
+
|
|
241
|
+
-t, --tests=<value>... Apex tests to run when --test-level is RunSpecifiedTests.
|
|
242
|
+
|
|
243
|
+
Separate multiple test names with commas, and enclose the entire flag value in double quotes if a test contains a
|
|
244
|
+
space.
|
|
245
|
+
|
|
246
|
+
-w, --wait=<minutes> Number of minutes to wait for command to complete and display results.
|
|
219
247
|
|
|
220
248
|
If the command continues to run after the wait period, the CLI returns control of the terminal window to you.
|
|
221
249
|
|
|
@@ -239,8 +267,8 @@ FLAGS
|
|
|
239
267
|
-m, --metadata=<value>... Metadata component names to retrieve.
|
|
240
268
|
-n, --package-name=<value>... Package names to retrieve.
|
|
241
269
|
-o, --target-org=<value> Login username or alias for the target org.
|
|
242
|
-
-w, --wait=<value> [default: 33] Number of minutes to wait for the command to complete and display
|
|
243
|
-
to the terminal window.
|
|
270
|
+
-w, --wait=<value> [default: 33 minutes] Number of minutes to wait for the command to complete and display
|
|
271
|
+
results to the terminal window.
|
|
244
272
|
-x, --manifest=<value> File path for the manifest (package.xml) that specifies the components to retrieve.
|
|
245
273
|
|
|
246
274
|
GLOBAL FLAGS
|
|
@@ -1,30 +1,32 @@
|
|
|
1
|
-
import { FileResponse } from '@
|
|
1
|
+
import { FileResponse } from '@salesforce/source-deploy-retrieve';
|
|
2
2
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
|
-
|
|
4
|
-
passing: number;
|
|
5
|
-
failing: number;
|
|
6
|
-
total: number;
|
|
7
|
-
time?: number;
|
|
8
|
-
};
|
|
3
|
+
import { TestLevel, TestResults } from '../../utils/types';
|
|
9
4
|
export declare type DeployMetadataResult = {
|
|
10
5
|
files: FileResponse[];
|
|
6
|
+
jobId: string;
|
|
11
7
|
tests?: TestResults;
|
|
12
8
|
};
|
|
13
9
|
export default class DeployMetadata extends SfCommand<DeployMetadataResult> {
|
|
14
10
|
static readonly description: string;
|
|
15
11
|
static readonly summary: string;
|
|
16
12
|
static readonly examples: string[];
|
|
13
|
+
static readonly requiresProject = true;
|
|
17
14
|
static flags: {
|
|
18
|
-
|
|
15
|
+
'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
16
|
+
'dry-run': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
|
+
'ignore-errors': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
18
|
+
'ignore-warnings': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
19
19
|
manifest: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
20
|
+
metadata: import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
20
21
|
'source-dir': import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
21
|
-
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org>;
|
|
23
|
+
tests: import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
24
|
+
'test-level': import("@oclif/core/lib/interfaces").OptionFlag<TestLevel>;
|
|
25
|
+
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
26
|
+
wait: import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/kit").Duration>;
|
|
24
27
|
};
|
|
25
28
|
static configurationVariablesSection: import("@salesforce/sf-plugins-core/lib/util").HelpSection;
|
|
26
29
|
static envVariablesSection: import("@salesforce/sf-plugins-core/lib/util").HelpSection;
|
|
27
30
|
run(): Promise<DeployMetadataResult>;
|
|
28
31
|
private setExitCode;
|
|
29
|
-
private getTestResults;
|
|
30
32
|
}
|
|
@@ -1,123 +1,131 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
3
|
/*
|
|
3
4
|
* Copyright (c) 2021, salesforce.com, inc.
|
|
4
5
|
* All rights reserved.
|
|
5
6
|
* Licensed under the BSD 3-Clause license.
|
|
6
7
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const core_1 = require("@oclif/core");
|
|
11
|
-
const core_2 = require("@salesforce/core");
|
|
12
|
-
const kit_1 = require("@salesforce/kit");
|
|
13
|
-
const ts_types_1 = require("@salesforce/ts-types");
|
|
14
|
-
const types_1 = require("@sf/sdr/lib/src/client/types");
|
|
9
|
+
const core_1 = require("@salesforce/core");
|
|
10
|
+
const source_deploy_retrieve_1 = require("@salesforce/source-deploy-retrieve");
|
|
15
11
|
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
16
|
-
const orgs_1 = require("../../utils/orgs");
|
|
17
|
-
const componentSetBuilder_1 = require("../../utils/componentSetBuilder");
|
|
18
12
|
const output_1 = require("../../utils/output");
|
|
19
|
-
const testLevel_1 = require("../../utils/testLevel");
|
|
20
13
|
const progressBar_1 = require("../../utils/progressBar");
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
const messages =
|
|
25
|
-
// One of these flags must be specified for a valid deploy.
|
|
26
|
-
const requiredFlags = ['manifest', 'metadata', 'source-dir'];
|
|
14
|
+
const types_1 = require("../../utils/types");
|
|
15
|
+
const deploy_1 = require("../../utils/deploy");
|
|
16
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
17
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'deploy.metadata');
|
|
27
18
|
class DeployMetadata extends sf_plugins_core_1.SfCommand {
|
|
28
19
|
async run() {
|
|
29
|
-
const flags =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}),
|
|
39
|
-
metadata: flags.metadata && {
|
|
40
|
-
metadataEntries: flags.metadata,
|
|
41
|
-
directoryPaths: await (0, orgs_1.getPackageDirs)(),
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
const targetOrg = await (0, orgs_1.resolveTargetOrg)(flags['target-org']);
|
|
45
|
-
this.log(`${os_1.EOL}${messages.getMessage('deploy.metadata.api', [targetOrg, (0, config_1.resolveRestDeploy)()])}${os_1.EOL}`);
|
|
46
|
-
const deploy = await componentSet.deploy({
|
|
47
|
-
usernameOrConnection: targetOrg,
|
|
48
|
-
apiOptions: { testLevel },
|
|
20
|
+
const { flags } = await this.parse(DeployMetadata);
|
|
21
|
+
if (!(0, deploy_1.validateTests)(flags['test-level'], flags.tests)) {
|
|
22
|
+
throw messages.createError('error.NoTestsSpecified');
|
|
23
|
+
}
|
|
24
|
+
const api = (0, deploy_1.resolveRestDeploy)();
|
|
25
|
+
const { deploy, componentSet } = await (0, deploy_1.executeDeploy)({
|
|
26
|
+
...flags,
|
|
27
|
+
'target-org': flags['target-org'].getUsername(),
|
|
28
|
+
api,
|
|
49
29
|
});
|
|
30
|
+
const action = flags['dry-run'] ? 'Deploying (dry-run)' : 'Deploying';
|
|
31
|
+
this.log((0, output_1.getVersionMessage)(action, componentSet, api));
|
|
32
|
+
this.log(`Deploy ID: ${deploy.id}`);
|
|
50
33
|
new progressBar_1.DeployProgress(deploy, this.jsonEnabled()).start();
|
|
51
|
-
const result = await deploy.pollStatus(500,
|
|
34
|
+
const result = await deploy.pollStatus(500, flags.wait.seconds);
|
|
52
35
|
this.setExitCode(result);
|
|
53
36
|
if (!this.jsonEnabled()) {
|
|
54
|
-
(0, output_1.
|
|
55
|
-
|
|
56
|
-
|
|
37
|
+
(0, output_1.displayDeployResults)(result, flags['test-level'], flags.verbose);
|
|
38
|
+
if (flags['dry-run'])
|
|
39
|
+
this.log('Dry-run complete.');
|
|
57
40
|
}
|
|
58
41
|
return {
|
|
59
|
-
|
|
60
|
-
|
|
42
|
+
jobId: result.response.id,
|
|
43
|
+
files: result.getFileResponses() || [],
|
|
44
|
+
tests: (0, deploy_1.getTestResults)(result),
|
|
61
45
|
};
|
|
62
46
|
}
|
|
63
47
|
setExitCode(result) {
|
|
64
|
-
|
|
65
|
-
if (status !== types_1.RequestStatus.Succeeded) {
|
|
48
|
+
if (result.response.status !== source_deploy_retrieve_1.RequestStatus.Succeeded) {
|
|
66
49
|
process.exitCode = 1;
|
|
67
50
|
}
|
|
68
51
|
}
|
|
69
|
-
getTestResults(result) {
|
|
70
|
-
const passing = (0, ts_types_1.get)(result, 'response.numberTestsCompleted', 0);
|
|
71
|
-
const failing = (0, ts_types_1.get)(result, 'response.numberTestErrors', 0);
|
|
72
|
-
const total = (0, ts_types_1.get)(result, 'response.numberTestsTotal', 0);
|
|
73
|
-
const testResults = { passing, failing, total };
|
|
74
|
-
const time = (0, ts_types_1.get)(result, 'response.details.runTestResult.totalTime', 0);
|
|
75
|
-
return time ? { ...testResults, time } : testResults;
|
|
76
|
-
}
|
|
77
52
|
}
|
|
78
53
|
exports.default = DeployMetadata;
|
|
79
54
|
DeployMetadata.description = messages.getMessage('description');
|
|
80
55
|
DeployMetadata.summary = messages.getMessage('summary');
|
|
81
56
|
DeployMetadata.examples = messages.getMessages('examples');
|
|
57
|
+
DeployMetadata.requiresProject = true;
|
|
82
58
|
DeployMetadata.flags = {
|
|
83
|
-
|
|
84
|
-
char: '
|
|
85
|
-
summary: messages.getMessage('flags.
|
|
86
|
-
|
|
87
|
-
|
|
59
|
+
'api-version': sf_plugins_core_1.Flags.orgApiVersion({
|
|
60
|
+
char: 'a',
|
|
61
|
+
summary: messages.getMessage('flags.api-version.summary'),
|
|
62
|
+
description: messages.getMessage('flags.api-version.description'),
|
|
63
|
+
}),
|
|
64
|
+
'dry-run': sf_plugins_core_1.Flags.boolean({
|
|
65
|
+
summary: messages.getMessage('flags.dry-run.summary'),
|
|
66
|
+
default: false,
|
|
88
67
|
}),
|
|
89
|
-
|
|
68
|
+
'ignore-errors': sf_plugins_core_1.Flags.boolean({
|
|
69
|
+
char: 'r',
|
|
70
|
+
summary: messages.getMessage('flags.ignore-errors.summary'),
|
|
71
|
+
description: messages.getMessage('flags.ignore-errors.description'),
|
|
72
|
+
default: false,
|
|
73
|
+
}),
|
|
74
|
+
'ignore-warnings': sf_plugins_core_1.Flags.boolean({
|
|
75
|
+
char: 'g',
|
|
76
|
+
summary: messages.getMessage('flags.ignore-warnings.summary'),
|
|
77
|
+
description: messages.getMessage('flags.ignore-warnings.description'),
|
|
78
|
+
default: false,
|
|
79
|
+
}),
|
|
80
|
+
manifest: sf_plugins_core_1.Flags.file({
|
|
90
81
|
char: 'x',
|
|
91
82
|
description: messages.getMessage('flags.manifest.description'),
|
|
92
83
|
summary: messages.getMessage('flags.manifest.summary'),
|
|
93
|
-
|
|
84
|
+
exactlyOne: ['manifest', 'source-dir', 'metadata'],
|
|
85
|
+
exists: true,
|
|
94
86
|
}),
|
|
95
|
-
|
|
87
|
+
metadata: sf_plugins_core_1.Flags.string({
|
|
88
|
+
char: 'm',
|
|
89
|
+
summary: messages.getMessage('flags.metadata.summary'),
|
|
90
|
+
multiple: true,
|
|
91
|
+
exactlyOne: ['manifest', 'source-dir', 'metadata'],
|
|
92
|
+
}),
|
|
93
|
+
'source-dir': sf_plugins_core_1.Flags.string({
|
|
96
94
|
char: 'd',
|
|
97
95
|
description: messages.getMessage('flags.source-dir.description'),
|
|
98
96
|
summary: messages.getMessage('flags.source-dir.summary'),
|
|
99
97
|
multiple: true,
|
|
100
|
-
|
|
98
|
+
exactlyOne: ['manifest', 'source-dir', 'metadata'],
|
|
101
99
|
}),
|
|
102
|
-
'target-org':
|
|
100
|
+
'target-org': sf_plugins_core_1.Flags.requiredOrg({
|
|
103
101
|
char: 'o',
|
|
104
102
|
description: messages.getMessage('flags.target-org.description'),
|
|
105
103
|
summary: messages.getMessage('flags.target-org.summary'),
|
|
106
104
|
}),
|
|
107
|
-
|
|
108
|
-
char: '
|
|
105
|
+
tests: sf_plugins_core_1.Flags.string({
|
|
106
|
+
char: 't',
|
|
107
|
+
multiple: true,
|
|
108
|
+
summary: messages.getMessage('flags.tests.summary'),
|
|
109
|
+
description: messages.getMessage('flags.tests.description'),
|
|
110
|
+
}),
|
|
111
|
+
'test-level': (0, deploy_1.testLevelFlag)({
|
|
112
|
+
default: types_1.TestLevel.NoTestRun,
|
|
109
113
|
description: messages.getMessage('flags.test-level.description'),
|
|
110
114
|
summary: messages.getMessage('flags.test-level.summary'),
|
|
111
|
-
options: Object.values(testLevel_1.TestLevel),
|
|
112
|
-
default: testLevel_1.TestLevel.NoTestRun,
|
|
113
115
|
}),
|
|
114
|
-
|
|
116
|
+
verbose: sf_plugins_core_1.Flags.boolean({
|
|
117
|
+
summary: messages.getMessage('flags.verbose.summary'),
|
|
118
|
+
}),
|
|
119
|
+
wait: sf_plugins_core_1.Flags.duration({
|
|
115
120
|
char: 'w',
|
|
116
121
|
summary: messages.getMessage('flags.wait.summary'),
|
|
117
122
|
description: messages.getMessage('flags.wait.description'),
|
|
118
|
-
|
|
123
|
+
unit: 'minutes',
|
|
124
|
+
defaultValue: 33,
|
|
125
|
+
helpValue: '<minutes>',
|
|
126
|
+
min: 1,
|
|
119
127
|
}),
|
|
120
128
|
};
|
|
121
|
-
DeployMetadata.configurationVariablesSection = (0, sf_plugins_core_1.toHelpSection)('CONFIGURATION VARIABLES',
|
|
122
|
-
DeployMetadata.envVariablesSection = (0, sf_plugins_core_1.toHelpSection)('ENVIRONMENT VARIABLES',
|
|
129
|
+
DeployMetadata.configurationVariablesSection = (0, sf_plugins_core_1.toHelpSection)('CONFIGURATION VARIABLES', core_1.OrgConfigProperties.TARGET_ORG, core_1.SfdxPropertyKeys.API_VERSION);
|
|
130
|
+
DeployMetadata.envVariablesSection = (0, sf_plugins_core_1.toHelpSection)('ENVIRONMENT VARIABLES', core_1.EnvironmentVariable.SF_TARGET_ORG, core_1.EnvironmentVariable.SF_USE_PROGRESS_BAR);
|
|
123
131
|
//# sourceMappingURL=metadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../src/commands/deploy/metadata.ts"],"names":[],"mappings":"
|
|
1
|
+
{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AC;AAEY,kCAAmB,GAAG,IAAA,+BAAa,EAC/C,uBAAuB,EACvB,0BAAmB,CAAC,aAAa,EACjC,0BAAmB,CAAC,mBAAmB,CACxC,CAAC"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { FileResponse, RetrieveResult } from '@
|
|
1
|
+
import { FileResponse, RetrieveResult } from '@salesforce/source-deploy-retrieve';
|
|
2
2
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
3
|
export declare type RetrieveMetadataResult = FileResponse[];
|
|
4
4
|
export default class RetrieveMetadata extends SfCommand<RetrieveMetadataResult> {
|
|
5
5
|
static readonly summary: string;
|
|
6
6
|
static readonly description: string;
|
|
7
7
|
static readonly examples: string[];
|
|
8
|
+
static readonly requiresProject = true;
|
|
8
9
|
static flags: {
|
|
9
10
|
'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
10
11
|
manifest: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
11
12
|
metadata: import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
12
13
|
'package-name': import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
13
14
|
'source-dir': import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
14
|
-
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<
|
|
15
|
-
wait: import("@oclif/core/lib/interfaces").OptionFlag<
|
|
15
|
+
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org>;
|
|
16
|
+
wait: import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/kit").Duration>;
|
|
16
17
|
};
|
|
17
18
|
static configurationVariablesSection: import("@salesforce/sf-plugins-core/lib/util").HelpSection;
|
|
18
19
|
static envVariablesSection: import("@salesforce/sf-plugins-core/lib/util").HelpSection;
|
|
@@ -1,50 +1,48 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2022, salesforce.com, inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the BSD 3-Clause license.
|
|
6
6
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
const path = require("path");
|
|
10
|
-
const core_1 = require("@
|
|
11
|
-
const
|
|
12
|
-
const kit_1 = require("@salesforce/kit");
|
|
10
|
+
const core_1 = require("@salesforce/core");
|
|
11
|
+
const source_deploy_retrieve_1 = require("@salesforce/source-deploy-retrieve");
|
|
13
12
|
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
14
13
|
const ts_types_1 = require("@salesforce/ts-types");
|
|
15
|
-
const orgs_1 = require("../../utils/orgs");
|
|
16
|
-
const componentSetBuilder_1 = require("../../utils/componentSetBuilder");
|
|
17
14
|
const output_1 = require("../../utils/output");
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
const messages =
|
|
21
|
-
const mdTrasferMessages =
|
|
22
|
-
// One of these flags must be specified for a valid deploy.
|
|
23
|
-
const requiredFlags = ['manifest', 'metadata', 'package-name', 'source-dir'];
|
|
15
|
+
const project_1 = require("../../utils/project");
|
|
16
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
17
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'retrieve.metadata');
|
|
18
|
+
const mdTrasferMessages = core_1.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'metadata.transfer');
|
|
24
19
|
class RetrieveMetadata extends sf_plugins_core_1.SfCommand {
|
|
25
20
|
async run() {
|
|
26
21
|
const flags = (await this.parse(RetrieveMetadata)).flags;
|
|
27
|
-
(
|
|
28
|
-
const componentSet = await
|
|
22
|
+
this.spinner.start(messages.getMessage('spinner.start'));
|
|
23
|
+
const componentSet = await source_deploy_retrieve_1.ComponentSetBuilder.build({
|
|
29
24
|
apiversion: flags['api-version'],
|
|
30
25
|
sourcepath: flags['source-dir'],
|
|
31
26
|
packagenames: flags['package-name'],
|
|
32
|
-
manifest:
|
|
27
|
+
manifest: flags.manifest && {
|
|
33
28
|
manifestPath: flags.manifest,
|
|
34
|
-
directoryPaths: await (0,
|
|
35
|
-
}
|
|
29
|
+
directoryPaths: await (0, project_1.getPackageDirs)(),
|
|
30
|
+
},
|
|
36
31
|
metadata: flags.metadata && {
|
|
37
32
|
metadataEntries: flags.metadata,
|
|
38
|
-
directoryPaths: await (0,
|
|
33
|
+
directoryPaths: await (0, project_1.getPackageDirs)(),
|
|
39
34
|
},
|
|
40
35
|
});
|
|
41
|
-
|
|
36
|
+
this.spinner.status = messages.getMessage('spinner.sending', [
|
|
37
|
+
componentSet.sourceApiVersion || componentSet.apiVersion,
|
|
38
|
+
]);
|
|
42
39
|
const retrieve = await componentSet.retrieve({
|
|
43
|
-
usernameOrConnection:
|
|
40
|
+
usernameOrConnection: flags['target-org'].getUsername(),
|
|
44
41
|
merge: true,
|
|
45
|
-
output: project.getDefaultPackage().fullPath,
|
|
42
|
+
output: this.project.getDefaultPackage().fullPath,
|
|
46
43
|
packageOptions: flags['package-name'],
|
|
47
44
|
});
|
|
45
|
+
this.spinner.status = messages.getMessage('spinner.polling');
|
|
48
46
|
retrieve.onUpdate((data) => {
|
|
49
47
|
this.spinner.status = mdTrasferMessages.getMessage(data.status);
|
|
50
48
|
});
|
|
@@ -55,30 +53,30 @@ class RetrieveMetadata extends sf_plugins_core_1.SfCommand {
|
|
|
55
53
|
this.spinner.stop(error.name);
|
|
56
54
|
throw error;
|
|
57
55
|
});
|
|
58
|
-
this.spinner.start(messages.getMessage('RetrieveTitle'));
|
|
59
56
|
await retrieve.start();
|
|
60
|
-
const result = await retrieve.pollStatus(500,
|
|
57
|
+
const result = await retrieve.pollStatus(500, flags.wait.seconds);
|
|
58
|
+
this.spinner.stop();
|
|
61
59
|
const fileResponses = (result === null || result === void 0 ? void 0 : result.getFileResponses()) || [];
|
|
62
|
-
|
|
60
|
+
if (!this.jsonEnabled()) {
|
|
61
|
+
await this.displayResults(result, flags['package-name']);
|
|
62
|
+
}
|
|
63
63
|
return fileResponses;
|
|
64
64
|
}
|
|
65
|
-
async displayResults(result,
|
|
66
|
-
if (
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
throw new core_2.SfdxError((0, ts_types_1.getString)(result.response, 'errorMessage', result.response.status), (0, ts_types_1.getString)(result.response, 'errorStatusCode', 'unknown'));
|
|
73
|
-
}
|
|
65
|
+
async displayResults(result, packageNames = []) {
|
|
66
|
+
if (result.response.status === 'Succeeded') {
|
|
67
|
+
(0, output_1.displaySuccesses)(result);
|
|
68
|
+
(0, output_1.displayPackages)(result, await this.getPackages(result, packageNames));
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
throw new core_1.SfError((0, ts_types_1.getString)(result.response, 'errorMessage', result.response.status), (0, ts_types_1.getString)(result.response, 'errorStatusCode', 'unknown'));
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
|
-
async getPackages(result,
|
|
74
|
+
async getPackages(result, packageNames = []) {
|
|
77
75
|
const packages = [];
|
|
78
|
-
const projectPath = await
|
|
79
|
-
const packageNames = (0, ts_types_1.getArray)(flags, 'package-name', []);
|
|
76
|
+
const projectPath = await core_1.SfProject.resolveProjectPath();
|
|
80
77
|
packageNames.forEach((name) => {
|
|
81
|
-
|
|
78
|
+
const packagePath = path.join(projectPath, name);
|
|
79
|
+
packages.push({ name, path: packagePath, fullPath: path.resolve(packagePath) });
|
|
82
80
|
});
|
|
83
81
|
return packages;
|
|
84
82
|
}
|
|
@@ -87,48 +85,51 @@ exports.default = RetrieveMetadata;
|
|
|
87
85
|
RetrieveMetadata.summary = messages.getMessage('summary');
|
|
88
86
|
RetrieveMetadata.description = messages.getMessage('description');
|
|
89
87
|
RetrieveMetadata.examples = messages.getMessages('examples');
|
|
88
|
+
RetrieveMetadata.requiresProject = true;
|
|
90
89
|
RetrieveMetadata.flags = {
|
|
91
|
-
'api-version':
|
|
90
|
+
'api-version': sf_plugins_core_1.Flags.orgApiVersion({
|
|
92
91
|
char: 'a',
|
|
93
92
|
summary: messages.getMessage('flags.api-version.summary'),
|
|
94
93
|
description: messages.getMessage('flags.api-version.description'),
|
|
95
94
|
}),
|
|
96
|
-
manifest:
|
|
95
|
+
manifest: sf_plugins_core_1.Flags.file({
|
|
97
96
|
char: 'x',
|
|
98
97
|
summary: messages.getMessage('flags.manifest.summary'),
|
|
99
98
|
description: messages.getMessage('flags.manifest.description'),
|
|
100
99
|
exclusive: ['metadata', 'source-dir'],
|
|
100
|
+
exists: true,
|
|
101
101
|
}),
|
|
102
|
-
metadata:
|
|
102
|
+
metadata: sf_plugins_core_1.Flags.string({
|
|
103
103
|
char: 'm',
|
|
104
104
|
summary: messages.getMessage('flags.metadata.summary'),
|
|
105
105
|
multiple: true,
|
|
106
106
|
exclusive: ['manifest', 'source-dir'],
|
|
107
107
|
}),
|
|
108
|
-
'package-name':
|
|
108
|
+
'package-name': sf_plugins_core_1.Flags.string({
|
|
109
109
|
char: 'n',
|
|
110
110
|
summary: messages.getMessage('flags.package-name.summary'),
|
|
111
111
|
multiple: true,
|
|
112
112
|
}),
|
|
113
|
-
'source-dir':
|
|
113
|
+
'source-dir': sf_plugins_core_1.Flags.string({
|
|
114
114
|
char: 'd',
|
|
115
115
|
summary: messages.getMessage('flags.source-dir.summary'),
|
|
116
116
|
description: messages.getMessage('flags.source-dir.description'),
|
|
117
117
|
multiple: true,
|
|
118
118
|
exclusive: ['manifest', 'metadata'],
|
|
119
119
|
}),
|
|
120
|
-
'target-org':
|
|
120
|
+
'target-org': sf_plugins_core_1.Flags.requiredOrg({
|
|
121
121
|
char: 'o',
|
|
122
122
|
summary: messages.getMessage('flags.target-org.summary'),
|
|
123
123
|
description: messages.getMessage('flags.target-org.description'),
|
|
124
124
|
}),
|
|
125
|
-
wait:
|
|
125
|
+
wait: sf_plugins_core_1.Flags.duration({
|
|
126
126
|
char: 'w',
|
|
127
|
-
|
|
127
|
+
defaultValue: 33,
|
|
128
|
+
unit: 'minutes',
|
|
128
129
|
summary: messages.getMessage('flags.wait.summary'),
|
|
129
130
|
description: messages.getMessage('flags.wait.description'),
|
|
130
131
|
}),
|
|
131
132
|
};
|
|
132
|
-
RetrieveMetadata.configurationVariablesSection = (0, sf_plugins_core_1.toHelpSection)('CONFIGURATION VARIABLES',
|
|
133
|
-
RetrieveMetadata.envVariablesSection = (0, sf_plugins_core_1.toHelpSection)('ENVIRONMENT VARIABLES',
|
|
133
|
+
RetrieveMetadata.configurationVariablesSection = (0, sf_plugins_core_1.toHelpSection)('CONFIGURATION VARIABLES', core_1.OrgConfigProperties.TARGET_ORG, core_1.SfdxPropertyKeys.API_VERSION);
|
|
134
|
+
RetrieveMetadata.envVariablesSection = (0, sf_plugins_core_1.toHelpSection)('ENVIRONMENT VARIABLES', core_1.EnvironmentVariable.SF_TARGET_ORG, core_1.EnvironmentVariable.SFDX_DEFAULTUSERNAME, core_1.EnvironmentVariable.SFDX_USE_PROGRESS_BAR);
|
|
134
135
|
//# sourceMappingURL=metadata.js.map
|