@salesforce/plugin-org 2.10.12 → 2.11.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 CHANGED
@@ -160,7 +160,7 @@ FLAG DESCRIPTIONS
160
160
  for a number of minutes, the client exits. Specify a longer wait time if timeouts occur frequently.
161
161
  ```
162
162
 
163
- _See code: [src/commands/force/org/clone.ts](https://github.com/salesforcecli/plugin-org/blob/2.10.12/src/commands/force/org/clone.ts)_
163
+ _See code: [src/commands/force/org/clone.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.0/src/commands/force/org/clone.ts)_
164
164
 
165
165
  ## `sf force:org:create`
166
166
 
@@ -208,7 +208,7 @@ EXAMPLES
208
208
  $ sf force:org:create -t sandbox -f config/dev-sandbox-def.json -a MyDevSandbox -u prodOrg
209
209
  ```
210
210
 
211
- _See code: [src/commands/force/org/create.ts](https://github.com/salesforcecli/plugin-org/blob/2.10.12/src/commands/force/org/create.ts)_
211
+ _See code: [src/commands/force/org/create.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.0/src/commands/force/org/create.ts)_
212
212
 
213
213
  ## `sf force:org:delete`
214
214
 
@@ -240,7 +240,7 @@ EXAMPLES
240
240
  $ sf force:org:delete -u MyOrgAlias -p
241
241
  ```
242
242
 
243
- _See code: [src/commands/force/org/delete.ts](https://github.com/salesforcecli/plugin-org/blob/2.10.12/src/commands/force/org/delete.ts)_
243
+ _See code: [src/commands/force/org/delete.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.0/src/commands/force/org/delete.ts)_
244
244
 
245
245
  ## `sf force:org:status`
246
246
 
@@ -278,7 +278,7 @@ EXAMPLES
278
278
  $ sf force:org:status --sandboxname DevSbx1 --wait 45 --setdefaultusername -u prodOrg
279
279
  ```
280
280
 
281
- _See code: [src/commands/force/org/status.ts](https://github.com/salesforcecli/plugin-org/blob/2.10.12/src/commands/force/org/status.ts)_
281
+ _See code: [src/commands/force/org/status.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.0/src/commands/force/org/status.ts)_
282
282
 
283
283
  ## `sf org:create:sandbox`
284
284
 
@@ -383,7 +383,7 @@ FLAG DESCRIPTIONS
383
383
  sandbox.
384
384
  ```
385
385
 
386
- _See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/2.10.12/src/commands/org/create/sandbox.ts)_
386
+ _See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.0/src/commands/org/create/sandbox.ts)_
387
387
 
388
388
  ## `sf org:create:scratch`
389
389
 
@@ -536,7 +536,7 @@ FLAG DESCRIPTIONS
536
536
  Omit this flag to have Salesforce generate a unique username for your org.
537
537
  ```
538
538
 
539
- _See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/2.10.12/src/commands/org/create/scratch.ts)_
539
+ _See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.0/src/commands/org/create/scratch.ts)_
540
540
 
541
541
  ## `sf org:delete:sandbox`
542
542
 
@@ -578,7 +578,7 @@ EXAMPLES
578
578
  $ sf org:delete:sandbox --target-org my-sandbox --no-prompt
579
579
  ```
580
580
 
581
- _See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/2.10.12/src/commands/org/delete/sandbox.ts)_
581
+ _See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.0/src/commands/org/delete/sandbox.ts)_
582
582
 
583
583
  ## `sf org:delete:scratch`
584
584
 
@@ -620,7 +620,7 @@ EXAMPLES
620
620
  $ sf org:delete:scratch --target-org my-scratch-org --no-prompt
621
621
  ```
622
622
 
623
- _See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/2.10.12/src/commands/org/delete/scratch.ts)_
623
+ _See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.0/src/commands/org/delete/scratch.ts)_
624
624
 
625
625
  ## `sf org:display`
626
626
 
@@ -663,7 +663,7 @@ EXAMPLES
663
663
  $ sf org:display --target-org TestOrg1 --verbose
664
664
  ```
665
665
 
666
- _See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/2.10.12/src/commands/org/display.ts)_
666
+ _See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.0/src/commands/org/display.ts)_
667
667
 
668
668
  ## `sf org:list`
669
669
 
@@ -701,7 +701,7 @@ EXAMPLES
701
701
  $ sf org:list --clean
702
702
  ```
703
703
 
704
- _See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/2.10.12/src/commands/org/list.ts)_
704
+ _See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.0/src/commands/org/list.ts)_
705
705
 
706
706
  ## `sf org:list:metadata`
707
707
 
@@ -765,7 +765,7 @@ FLAG DESCRIPTIONS
765
765
  Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
766
766
  ```
767
767
 
768
- _See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/2.10.12/src/commands/org/list/metadata.ts)_
768
+ _See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.0/src/commands/org/list/metadata.ts)_
769
769
 
770
770
  ## `sf org:list:metadata-types`
771
771
 
@@ -818,7 +818,7 @@ FLAG DESCRIPTIONS
818
818
  Override the api version used for api requests made by this command
819
819
  ```
820
820
 
821
- _See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/2.10.12/src/commands/org/list/metadata-types.ts)_
821
+ _See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.0/src/commands/org/list/metadata-types.ts)_
822
822
 
823
823
  ## `sf org:open`
824
824
 
@@ -877,9 +877,13 @@ EXAMPLES
877
877
  Open a local Lightning page in your default org's Lightning App Builder:
878
878
 
879
879
  $ sf org:open --source-path force-app/main/default/flexipages/Hello.flexipage-meta.xml
880
+
881
+ Open a local Flow in Flow Builder:
882
+
883
+ $ sf org:open --source-path force-app/main/default/flows/Hello.flow-meta.xml
880
884
  ```
881
885
 
882
- _See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/2.10.12/src/commands/org/open.ts)_
886
+ _See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.0/src/commands/org/open.ts)_
883
887
 
884
888
  ## `sf org:resume:sandbox`
885
889
 
@@ -941,7 +945,7 @@ FLAG DESCRIPTIONS
941
945
  returns the job ID. To resume checking the sandbox creation, rerun this command.
942
946
  ```
943
947
 
944
- _See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/2.10.12/src/commands/org/resume/sandbox.ts)_
948
+ _See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.0/src/commands/org/resume/sandbox.ts)_
945
949
 
946
950
  ## `sf org:resume:scratch`
947
951
 
@@ -987,6 +991,6 @@ FLAG DESCRIPTIONS
987
991
  The job ID is valid for 24 hours after you start the scratch org creation.
988
992
  ```
989
993
 
990
- _See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/2.10.12/src/commands/org/resume/scratch.ts)_
994
+ _See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.0/src/commands/org/resume/scratch.ts)_
991
995
 
992
996
  <!-- commandsstop -->
@@ -97,11 +97,17 @@ class OrgOpenCommand extends sf_plugins_core_1.SfCommand {
97
97
  else if (typeName === 'ApexPage') {
98
98
  return `/apex/${path.basename(file).replace('.page-meta.xml', '').replace('.page', '')}`;
99
99
  }
100
+ else if (typeName === 'Flow') {
101
+ return `/builder_platform_interaction/flowBuilder.app?flowId=${await flowFileNameToId(this.conn, file)}`;
102
+ }
100
103
  else {
101
104
  return 'lightning/setup/FlexiPageList/home';
102
105
  }
103
106
  }
104
107
  catch (error) {
108
+ if (error instanceof Error && error.name === 'FlowIdNotFoundError') {
109
+ this.error(error);
110
+ }
105
111
  return 'lightning/setup/FlexiPageList/home';
106
112
  }
107
113
  }
@@ -143,4 +149,17 @@ OrgOpenCommand.flags = {
143
149
  summary: messages.getMessage('flags.source-file.summary'),
144
150
  }),
145
151
  };
152
+ /** query the tooling API to turn a flow's filepath into a FlowId (starts with 301) */
153
+ const flowFileNameToId = async (conn, filePath) => {
154
+ const result = await conn.tooling.query('select id, MasterLabel, FullName from Flow');
155
+ const fullName = path.basename(filePath).replace('.flow-meta.xml', '');
156
+ // https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_flow.htm
157
+ // unfortunately, you can't query based on the fullname because `field 'FullName' can not be filtered in a query call`
158
+ // so we get all the flows and then filter.
159
+ const match = (result.records ?? []).find((r) => r.FullName === fullName)?.Id;
160
+ if (match) {
161
+ return match;
162
+ }
163
+ throw messages.createError('FlowIdNotFound', [filePath]);
164
+ };
146
165
  //# sourceMappingURL=open.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"open.js","sourceRoot":"","sources":["../../../src/commands/org/open.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,6BAA6B;AAC7B,iEAMqC;AACrC,2CAAuF;AACvF,yCAAgD;AAChD,+EAAsE;AACtE,6BAA8B;AAC9B,8CAA6C;AAE7C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;AACzE,MAAM,cAAc,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,UAAU,CAAC,CAAC;AAEnF,MAAa,cAAe,SAAQ,2BAAwB;IA0CnD,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAEnD,IAAI,C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G,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,EAAE,EAAE,CAAC;IAC9E,IAAI,KAAK,EAAE;QACT,OAAO,KAAK,CAAC;KACd;IACD,MAAM,QAAQ,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC3D,CAAC,CAAC"}
package/messages/open.md CHANGED
@@ -30,6 +30,10 @@ To open in a specific browser, use the --browser flag. Supported browsers are "c
30
30
 
31
31
  $ <%= config.bin %> <%= command.id %> --source-path force-app/main/default/flexipages/Hello.flexipage-meta.xml
32
32
 
33
+ - Open a local Flow in Flow Builder:
34
+
35
+ $ <%= config.bin %> <%= command.id %> --source-path force-app/main/default/flows/Hello.flow-meta.xml
36
+
33
37
  # flags.browser.summary
34
38
 
35
39
  Browser where the org opens.
@@ -67,3 +71,12 @@ Waiting to resolve the Lightning Experience-enabled custom domain...
67
71
  # domainTimeoutError
68
72
 
69
73
  The Lightning Experience-enabled custom domain is unavailable.
74
+
75
+ # FlowIdNotFound
76
+
77
+ No ID not found for Flow %s.
78
+
79
+ # FlowIdNotFound.actions
80
+
81
+ - Check that the Flow you want to open is deployed to the org.
82
+ - Run `sf org open -p lightning/setup/Flows/home` to open the list of Flows
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.10.12",
2
+ "version": "2.11.0",
3
3
  "commands": {
4
4
  "org:display": {
5
5
  "id": "org:display",
@@ -169,7 +169,8 @@
169
169
  "Open your default org in your default browser:\n$ <%= config.bin %> <%= command.id %>",
170
170
  "Open the org with alias MyTestOrg1 in the Firefox browser:\n$ <%= config.bin %> <%= command.id %> --target-org MyTestOrg1 --browser firefox",
171
171
  "Display the navigation URL for the Lightning Experience page for your default org, but don't open the page in a browser:\n$ <%= config.bin %> <%= command.id %> --url-only --path lightning",
172
- "Open a local Lightning page in your default org's Lightning App Builder:\n$ <%= config.bin %> <%= command.id %> --source-path force-app/main/default/flexipages/Hello.flexipage-meta.xml"
172
+ "Open a local Lightning page in your default org's Lightning App Builder:\n$ <%= config.bin %> <%= command.id %> --source-path force-app/main/default/flexipages/Hello.flexipage-meta.xml",
173
+ "Open a local Flow in Flow Builder:\n$ <%= config.bin %> <%= command.id %> --source-path force-app/main/default/flows/Hello.flow-meta.xml"
173
174
  ],
174
175
  "deprecateAliases": true,
175
176
  "flags": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-org",
3
3
  "description": "Commands to interact with Salesforce orgs",
4
- "version": "2.10.12",
4
+ "version": "2.11.0",
5
5
  "author": "Salesforce",
6
6
  "main": "lib/index.js",
7
7
  "bugs": "https://github.com/forcedotcom/cli/issues",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "devDependencies": {
18
18
  "@oclif/plugin-command-snapshot": "^4.0.14",
19
- "@salesforce/cli-plugins-testkit": "^4.3.6",
19
+ "@salesforce/cli-plugins-testkit": "^4.4.6",
20
20
  "@salesforce/dev-config": "^4.0.1",
21
21
  "@salesforce/dev-scripts": "^5.10.0",
22
22
  "@salesforce/plugin-command-reference": "^3.0.38",
@@ -236,7 +236,7 @@
236
236
  }
237
237
  },
238
238
  "sfdx": {
239
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.10.12.crt",
240
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.10.12.sig"
239
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.11.0.crt",
240
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.11.0.sig"
241
241
  }
242
242
  }