@salesforce/plugin-deploy-retrieve 1.8.5-beta.6 → 1.8.5-beta.7
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.
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Org } from '@salesforce/core';
|
|
2
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
2
|
import { DeployResultJson } from '../../../utils/types';
|
|
4
3
|
export default class DeployMetadataReport extends SfCommand<DeployResultJson> {
|
|
@@ -9,8 +8,6 @@ export default class DeployMetadataReport extends SfCommand<DeployResultJson> {
|
|
|
9
8
|
static readonly aliases: string[];
|
|
10
9
|
static readonly deprecateAliases = true;
|
|
11
10
|
static readonly flags: {
|
|
12
|
-
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<Org, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
13
|
-
'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
14
11
|
'job-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
15
12
|
'use-most-recent': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
16
13
|
'coverage-formatters': import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
@@ -22,12 +22,16 @@ class DeployMetadataReport extends sf_plugins_core_1.SfCommand {
|
|
|
22
22
|
const jobId = cache.resolveLatest(flags['use-most-recent'], flags['job-id']);
|
|
23
23
|
const deployOpts = cache.get(jobId);
|
|
24
24
|
const org = await core_1.Org.create({ aliasOrUsername: deployOpts['target-org'] });
|
|
25
|
-
const deployStatus = await
|
|
26
|
-
|
|
25
|
+
const [deployStatus, componentSet] = await Promise.all([
|
|
26
|
+
// we'll use whatever the org supports since we can't specify the org
|
|
27
|
+
// eslint-disable-next-line sf-plugin/get-connection-with-version
|
|
28
|
+
org.getConnection().metadata.checkDeployStatus(jobId, true),
|
|
29
|
+
(0, deploy_1.buildComponentSet)({ ...deployOpts, wait: kit_1.Duration.minutes(deployOpts.wait) }),
|
|
30
|
+
]);
|
|
27
31
|
const result = new source_deploy_retrieve_1.DeployResult(deployStatus, componentSet);
|
|
28
32
|
const formatter = new deployReportResultFormatter_1.DeployReportResultFormatter(result, {
|
|
29
33
|
...deployOpts,
|
|
30
|
-
...{ 'target-org':
|
|
34
|
+
...{ 'target-org': org },
|
|
31
35
|
});
|
|
32
36
|
if (!this.jsonEnabled())
|
|
33
37
|
formatter.display();
|
|
@@ -42,11 +46,6 @@ DeployMetadataReport.requiresProject = true;
|
|
|
42
46
|
DeployMetadataReport.aliases = ['deploy:metadata:report'];
|
|
43
47
|
DeployMetadataReport.deprecateAliases = true;
|
|
44
48
|
DeployMetadataReport.flags = {
|
|
45
|
-
'target-org': sf_plugins_core_1.Flags.requiredOrg({
|
|
46
|
-
summary: messages.getMessage('flags.target-org.summary'),
|
|
47
|
-
required: true,
|
|
48
|
-
}),
|
|
49
|
-
'api-version': sf_plugins_core_1.Flags.orgApiVersion(),
|
|
50
49
|
'job-id': sf_plugins_core_1.Flags.salesforceId({
|
|
51
50
|
char: 'i',
|
|
52
51
|
startsWith: '0Af',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../../src/commands/project/deploy/report.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,2CAAiD;AACjD,yCAA2C;AAC3C,iEAA+D;AAC/D,+EAA2F;AAC3F,kDAA0D;AAC1D,4DAAyD;AACzD,iGAA8F;AAC9F,gDAA2E;AAE3E,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,wBAAwB,CAAC,CAAC;AAEvG,MAAqB,oBAAqB,SAAQ,2BAA2B;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qBAAqB,EAAE,uBAAK,CAAC,MAAM,CAAC;QAClC,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,2BAA2B,CAAC;QACzD,OAAO,EAAE,yBAAiB;QAC1B,SAAS,EAAE,yBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC;KACvC,CAAC;IACF,KAAK,EAAE,uBAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;IACrE,aAAa,EAAE,uBAAK,CAAC,SAAS,CAAC;QAC7B,SAAS,EAAE,CAAC,OAAO,EAAE,qBAAqB,CAAC;QAC3C,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC;KAClD,CAAC;CACH,CAAC"}
|
|
@@ -18,14 +18,6 @@ Run this command by either passing it a job ID or specifying the --use-most-rece
|
|
|
18
18
|
|
|
19
19
|
<%= config.bin %> <%= command.id %> --use-most-recent
|
|
20
20
|
|
|
21
|
-
# flags.target-org.summary
|
|
22
|
-
|
|
23
|
-
Login username or alias for the target org.
|
|
24
|
-
|
|
25
|
-
# flags.api-version.summary
|
|
26
|
-
|
|
27
|
-
API version to use
|
|
28
|
-
|
|
29
21
|
# flags.job-id.summary
|
|
30
22
|
|
|
31
23
|
Job ID of the deploy operation you want to check the status of.
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.8.5-beta.
|
|
2
|
+
"version": "1.8.5-beta.7",
|
|
3
3
|
"commands": {
|
|
4
4
|
"deploy": {
|
|
5
5
|
"id": "deploy",
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
"char": "d",
|
|
204
204
|
"summary": "Output directory to store the Metadata API–formatted files in.",
|
|
205
205
|
"multiple": false,
|
|
206
|
-
"default": "
|
|
206
|
+
"default": "metadataPackage_1680031466306",
|
|
207
207
|
"deprecateAliases": true,
|
|
208
208
|
"aliases": [
|
|
209
209
|
"outputdir"
|
|
@@ -845,22 +845,6 @@
|
|
|
845
845
|
"allowNo": false,
|
|
846
846
|
"deprecateAliases": true
|
|
847
847
|
},
|
|
848
|
-
"target-org": {
|
|
849
|
-
"name": "target-org",
|
|
850
|
-
"type": "option",
|
|
851
|
-
"char": "o",
|
|
852
|
-
"summary": "Login username or alias for the target org.",
|
|
853
|
-
"required": true,
|
|
854
|
-
"multiple": false,
|
|
855
|
-
"deprecateAliases": true
|
|
856
|
-
},
|
|
857
|
-
"api-version": {
|
|
858
|
-
"name": "api-version",
|
|
859
|
-
"type": "option",
|
|
860
|
-
"description": "Override the api version used for api requests made by this command",
|
|
861
|
-
"multiple": false,
|
|
862
|
-
"deprecateAliases": true
|
|
863
|
-
},
|
|
864
848
|
"job-id": {
|
|
865
849
|
"name": "job-id",
|
|
866
850
|
"type": "option",
|
|
@@ -920,8 +904,7 @@
|
|
|
920
904
|
}
|
|
921
905
|
},
|
|
922
906
|
"args": {},
|
|
923
|
-
"requiresProject": true
|
|
924
|
-
"hasDynamicHelp": true
|
|
907
|
+
"requiresProject": true
|
|
925
908
|
},
|
|
926
909
|
"project:deploy:resume": {
|
|
927
910
|
"id": "project:deploy:resume",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-deploy-retrieve",
|
|
3
3
|
"description": "deploy and retrieve commands for sf",
|
|
4
|
-
"version": "1.8.5-beta.
|
|
4
|
+
"version": "1.8.5-beta.7",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
}
|
|
271
271
|
},
|
|
272
272
|
"sfdx": {
|
|
273
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/1.8.5-beta.
|
|
274
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/1.8.5-beta.
|
|
273
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/1.8.5-beta.7.crt",
|
|
274
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/1.8.5-beta.7.sig"
|
|
275
275
|
}
|
|
276
276
|
}
|