@salesforce/plugin-community 1.1.3 → 2.0.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/CHANGELOG.md +26 -12
- package/LICENSE.txt +1 -1
- package/README.md +31 -54
- package/lib/commands/force/community/create.js +1 -1
- package/lib/commands/force/community/create.js.map +1 -1
- package/lib/shared/community/commands/CommunityNameValueParser.js +3 -1
- package/lib/shared/community/commands/CommunityNameValueParser.js.map +1 -1
- package/lib/shared/community/connect/CommunityCreateResource.d.ts +7 -2
- package/lib/shared/community/connect/CommunityCreateResource.js +5 -1
- package/lib/shared/community/connect/CommunityCreateResource.js.map +1 -1
- package/lib/shared/community/connect/CommunityPublishResource.d.ts +7 -2
- package/lib/shared/community/connect/CommunityPublishResource.js +11 -5
- package/lib/shared/community/connect/CommunityPublishResource.js.map +1 -1
- package/lib/shared/community/connect/CommunityTemplatesResource.d.ts +2 -1
- package/lib/shared/community/connect/CommunityTemplatesResource.js +4 -1
- package/lib/shared/community/connect/CommunityTemplatesResource.js.map +1 -1
- package/lib/shared/community/defs/CommunityPublishResponse.d.ts +1 -3
- package/lib/shared/community/defs/CommunityPublishResponse.js +6 -0
- package/lib/shared/community/defs/CommunityPublishResponse.js.map +1 -1
- package/lib/shared/community/service/CommunitiesServices.d.ts +1 -1
- package/lib/shared/community/service/CommunitiesServices.js +3 -3
- package/lib/shared/community/service/CommunitiesServices.js.map +1 -1
- package/lib/shared/connect/services/ConnectExecutor.d.ts +2 -2
- package/lib/shared/connect/services/ConnectExecutor.js +1 -1
- package/lib/shared/connect/services/ConnectExecutor.js.map +1 -1
- package/lib/shared/connect/services/ConnectResource.d.ts +3 -2
- package/messages/create.json +4 -4
- package/messages/publish.json +2 -2
- package/messages/template.list.json +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +29 -35
- package/messages/messages.json +0 -22
package/CHANGELOG.md
CHANGED
|
@@ -2,31 +2,45 @@
|
|
|
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
|
-
|
|
5
|
+
## [2.0.0](https://github.com/salesforcecli/plugin-community/compare/v1.1.5...v2.0.0) (2022-06-01)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- fix bin cmds ([a6f65fc](https://github.com/salesforcecli/plugin-community/commit/a6f65fc1bd29175a25b00eeff3bd988d18adb91d))
|
|
10
|
+
- parking orbit changes ([2f7f93e](https://github.com/salesforcecli/plugin-community/commit/2f7f93e293dbb6e1926c64afab44b38a63ac88fe))
|
|
11
|
+
|
|
12
|
+
### [1.1.5](https://github.com/salesforcecli/plugin-community/compare/v1.1.4...v1.1.5) (2022-05-23)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- add prompt to examples ([568088b](https://github.com/salesforcecli/plugin-community/commit/568088ba8c283944b17295eef4cf7d487aa2bf4a))
|
|
17
|
+
- add prompt to examples ([cf43ddb](https://github.com/salesforcecli/plugin-community/commit/cf43ddb36a2c415fc62f4b3b0051eef0c83e4947))
|
|
18
|
+
- add prompt to examples ([8a24baf](https://github.com/salesforcecli/plugin-community/commit/8a24baf990768b012a6278ba2bc9ba615f63838d))
|
|
19
|
+
|
|
20
|
+
### [1.1.4](https://github.com/salesforcecli/plugin-community/compare/v1.1.3...v1.1.4) (2022-02-10)
|
|
6
21
|
|
|
22
|
+
### [1.1.3](https://github.com/salesforcecli/plugin-community/compare/v1.1.2...v1.1.3) (2021-11-17)
|
|
7
23
|
|
|
8
24
|
### Bug Fixes
|
|
9
25
|
|
|
10
|
-
|
|
26
|
+
- update domain URLs ([0925413](https://github.com/salesforcecli/plugin-community/commit/09254130530b9d7b35cf9d97240639c49dd6545f))
|
|
11
27
|
|
|
12
28
|
### [1.1.2](https://github.com/salesforcecli/plugin-community/compare/v1.1.1...v1.1.2) (2021-10-12)
|
|
13
29
|
|
|
14
30
|
### [1.1.1](https://github.com/salesforcecli/plugin-community/compare/v1.1.0...v1.1.1) (2021-09-15)
|
|
15
31
|
|
|
16
|
-
|
|
17
32
|
### Bug Fixes
|
|
18
33
|
|
|
19
|
-
|
|
20
|
-
|
|
34
|
+
- add CTC context ([e45d58b](https://github.com/salesforcecli/plugin-community/commit/e45d58b0a27f14c2417ff73aa07f5227fe043323))
|
|
35
|
+
- dedupe release jobs ([70e6e52](https://github.com/salesforcecli/plugin-community/commit/70e6e52791f3cefffac7c509aad0d503d6515778))
|
|
21
36
|
|
|
22
37
|
## 1.1.0 (2021-09-15)
|
|
23
38
|
|
|
24
|
-
|
|
25
39
|
### Bug Fixes
|
|
26
40
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
41
|
+
- add long desc back on template:list ([2f1f5a9](https://github.com/salesforcecli/plugin-community/commit/2f1f5a97183e41d01f84d130ad36ae2df3b246d2))
|
|
42
|
+
- add long descriptions back ([41d5fba](https://github.com/salesforcecli/plugin-community/commit/41d5fbab81367e97c9f596ec1848ba4144a4cea1))
|
|
43
|
+
- circle config syntax ([02b6c83](https://github.com/salesforcecli/plugin-community/commit/02b6c83cbdac3cc6fe0f39129182ddd4d18bc20e))
|
|
44
|
+
- linting, fix tests, update messages ([48b4d78](https://github.com/salesforcecli/plugin-community/commit/48b4d78d579ec842d5264b2d77fb721d08bf11be))
|
|
45
|
+
- member-access linting updates ([3b5b35d](https://github.com/salesforcecli/plugin-community/commit/3b5b35d5e2ff60296d60f3e04b29a1edead23d67))
|
|
46
|
+
- template:list messages ([2ff4e52](https://github.com/salesforcecli/plugin-community/commit/2ff4e524c81dac04af3959a0d4f38579dc7d4f09))
|
package/LICENSE.txt
CHANGED
package/README.md
CHANGED
|
@@ -71,30 +71,18 @@ sfdx plugins
|
|
|
71
71
|
## Commands
|
|
72
72
|
|
|
73
73
|
<!-- commands -->
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
|
|
75
|
+
- [`sfdx force:community:create [name=value...] -n <string> -t <string> -p <string> [-d <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcecommunitycreate-namevalue--n-string--t-string--p-string--d-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
76
|
+
- [`sfdx force:community:publish -n <string> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcecommunitypublish--n-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
77
|
+
- [`sfdx force:community:template:list [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcecommunitytemplatelist--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
77
78
|
|
|
78
79
|
## `sfdx force:community:create [name=value...] -n <string> -t <string> -p <string> [-d <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
79
80
|
|
|
80
81
|
creates an Experience Cloud site using a template
|
|
81
82
|
|
|
82
83
|
```
|
|
83
|
-
creates an Experience Cloud site using a template
|
|
84
|
-
See 'Which Experience Cloud Template Should I Use?' in Salesforce Help for more information about the different template types available for Experience Cloud.
|
|
85
|
-
|
|
86
|
-
When creating a site with the Build Your Own (LWR) template, you must also specify the AuthenticationType value using the format templateParams.AuthenticationType=value, where value is AUTHENTICATED, UNAUTHENTICATED, or AUTHENTICATED_WITH_PUBLIC_ACCESS. Name and values are case-sensitive. See 'ExperienceBundle' in the Metadata API Developer Guide for more information.
|
|
87
|
-
|
|
88
|
-
When you execute this command, it creates the site in preview status, which means that it isn’t yet live. After you finish building your site, you can make it live.
|
|
89
|
-
|
|
90
|
-
If you have an Experience Builder site, publish the site using the sfdx force:community:publish command to make it live.
|
|
91
|
-
|
|
92
|
-
If you have a Salesforce Tabs + Visualforce site, activate the site to make it live by updating the status field of the Network type in the Metadata API. Alternatively, in Experience Workspaces, go to Administration | Settings, and click Activate.
|
|
93
|
-
|
|
94
|
-
For Experience Builder sites, activating the site just sends out a welcome email to site members.
|
|
95
|
-
|
|
96
84
|
USAGE
|
|
97
|
-
$ sfdx force:community:create [name=value...] -n <string> -t <string> -p <string> [-d <string>] [-u <string>]
|
|
85
|
+
$ sfdx force:community:create [name=value...] -n <string> -t <string> -p <string> [-d <string>] [-u <string>]
|
|
98
86
|
[--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
99
87
|
|
|
100
88
|
OPTIONS
|
|
@@ -122,53 +110,43 @@ OPTIONS
|
|
|
122
110
|
this command invocation
|
|
123
111
|
|
|
124
112
|
DESCRIPTION
|
|
125
|
-
See 'Which Experience Cloud Template Should I Use?' in Salesforce Help for more information about the different
|
|
113
|
+
See 'Which Experience Cloud Template Should I Use?' in Salesforce Help for more information about the different
|
|
126
114
|
template types available for Experience Cloud.
|
|
127
115
|
|
|
128
|
-
When creating a site with the Build Your Own (LWR) template, you must also specify the AuthenticationType value using
|
|
129
|
-
the format templateParams.AuthenticationType=value, where value is AUTHENTICATED, UNAUTHENTICATED, or
|
|
130
|
-
AUTHENTICATED_WITH_PUBLIC_ACCESS. Name and values are case-sensitive. See 'ExperienceBundle' in the Metadata API
|
|
116
|
+
When creating a site with the Build Your Own (LWR) template, you must also specify the AuthenticationType value using
|
|
117
|
+
the format templateParams.AuthenticationType=value, where value is AUTHENTICATED, UNAUTHENTICATED, or
|
|
118
|
+
AUTHENTICATED_WITH_PUBLIC_ACCESS. Name and values are case-sensitive. See 'ExperienceBundle' in the Metadata API
|
|
131
119
|
Developer Guide for more information.
|
|
132
120
|
|
|
133
|
-
When you execute this command, it creates the site in preview status, which means that it isn
|
|
121
|
+
When you execute this command, it creates the site in preview status, which means that it isn't yet live. After you
|
|
134
122
|
finish building your site, you can make it live.
|
|
135
123
|
|
|
136
|
-
If you have an Experience Builder site, publish the site using the sfdx force:community:publish command to make it
|
|
124
|
+
If you have an Experience Builder site, publish the site using the sfdx force:community:publish command to make it
|
|
137
125
|
live.
|
|
138
126
|
|
|
139
|
-
If you have a Salesforce Tabs + Visualforce site, activate the site to make it live by updating the status field of
|
|
140
|
-
the Network type in the Metadata API. Alternatively, in Experience Workspaces, go to Administration | Settings, and
|
|
127
|
+
If you have a Salesforce Tabs + Visualforce site, activate the site to make it live by updating the status field of
|
|
128
|
+
the Network type in the Metadata API. Alternatively, in Experience Workspaces, go to Administration | Settings, and
|
|
141
129
|
click Activate.
|
|
142
130
|
|
|
143
131
|
For Experience Builder sites, activating the site just sends out a welcome email to site members.
|
|
144
132
|
|
|
145
133
|
EXAMPLES
|
|
146
|
-
sfdx force:community:create --name 'My Customer Site' --templatename 'Customer Service' --urlpathprefix customers
|
|
134
|
+
$ sfdx force:community:create --name 'My Customer Site' --templatename 'Customer Service' --urlpathprefix customers
|
|
147
135
|
--description 'My customer site'
|
|
148
|
-
sfdx force:community:create -n partnercentral -t 'Partner Central' -p partners
|
|
149
|
-
sfdx force:community:create -n lwrsite -t 'Build Your Own (LWR)' -p lwrsite
|
|
136
|
+
$ sfdx force:community:create -n partnercentral -t 'Partner Central' -p partners
|
|
137
|
+
$ sfdx force:community:create -n lwrsite -t 'Build Your Own (LWR)' -p lwrsite
|
|
150
138
|
templateParams.AuthenticationType=UNAUTHENTICATED
|
|
151
139
|
```
|
|
152
140
|
|
|
153
|
-
_See code: [src/commands/force/community/create.ts](https://github.com/salesforcecli/plugin-community/blob/
|
|
141
|
+
_See code: [src/commands/force/community/create.ts](https://github.com/salesforcecli/plugin-community/blob/v2.0.0/src/commands/force/community/create.ts)_
|
|
154
142
|
|
|
155
143
|
## `sfdx force:community:publish -n <string> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
156
144
|
|
|
157
145
|
publishes an Experience Builder site to make it live
|
|
158
146
|
|
|
159
147
|
```
|
|
160
|
-
publishes an Experience Builder site to make it live
|
|
161
|
-
Each time you publish it, you update the live site with the most recent updates.
|
|
162
|
-
When you publish an Experience Builder site for the first time, you make the site’s URL live and enable login access for site members.
|
|
163
|
-
|
|
164
|
-
Additionally, to send a welcome email to all site members, you must activate the site. (Activation is also required to successfully set up SEO for Experience Builder sites.) To activate a site, update the status field of the Network type in the Metadata API. Alternatively, in Experience Workspaces, go to Administration | Settings, and click Activate.
|
|
165
|
-
|
|
166
|
-
Subsequently, each time you publish the site, you update the live site with all changes made to the site since it was last published.
|
|
167
|
-
|
|
168
|
-
An email notification informs you when your changes are live.
|
|
169
|
-
|
|
170
148
|
USAGE
|
|
171
|
-
$ sfdx force:community:publish -n <string> [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
149
|
+
$ sfdx force:community:publish -n <string> [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
172
150
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
173
151
|
|
|
174
152
|
OPTIONS
|
|
@@ -188,34 +166,32 @@ OPTIONS
|
|
|
188
166
|
|
|
189
167
|
DESCRIPTION
|
|
190
168
|
Each time you publish it, you update the live site with the most recent updates.
|
|
191
|
-
When you publish an Experience Builder site for the first time, you make the site
|
|
169
|
+
When you publish an Experience Builder site for the first time, you make the site's URL live and enable login access
|
|
192
170
|
for site members.
|
|
193
171
|
|
|
194
|
-
Additionally, to send a welcome email to all site members, you must activate the site. (Activation is also required to
|
|
195
|
-
|
|
196
|
-
in the Metadata API. Alternatively, in Experience Workspaces, go to Administration | Settings, and click
|
|
172
|
+
Additionally, to send a welcome email to all site members, you must activate the site. (Activation is also required to
|
|
173
|
+
successfully set up SEO for Experience Builder sites.) To activate a site, update the status field of the Network
|
|
174
|
+
type in the Metadata API. Alternatively, in Experience Workspaces, go to Administration | Settings, and click
|
|
175
|
+
Activate.
|
|
197
176
|
|
|
198
|
-
Subsequently, each time you publish the site, you update the live site with all changes made to the site since it was
|
|
177
|
+
Subsequently, each time you publish the site, you update the live site with all changes made to the site since it was
|
|
199
178
|
last published.
|
|
200
179
|
|
|
201
180
|
An email notification informs you when your changes are live.
|
|
202
181
|
|
|
203
182
|
EXAMPLE
|
|
204
|
-
sfdx force:community:publish --name 'My Customer Site'
|
|
183
|
+
$ sfdx force:community:publish --name 'My Customer Site'
|
|
205
184
|
```
|
|
206
185
|
|
|
207
|
-
_See code: [src/commands/force/community/publish.ts](https://github.com/salesforcecli/plugin-community/blob/
|
|
186
|
+
_See code: [src/commands/force/community/publish.ts](https://github.com/salesforcecli/plugin-community/blob/v2.0.0/src/commands/force/community/publish.ts)_
|
|
208
187
|
|
|
209
188
|
## `sfdx force:community:template:list [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
210
189
|
|
|
211
190
|
retrieves the list of templates available in your org
|
|
212
191
|
|
|
213
192
|
```
|
|
214
|
-
retrieves the list of templates available in your org
|
|
215
|
-
See 'Which Experience Cloud Template Should I Use?' in Salesforce Help for more information about the different template types available for Experience Cloud.
|
|
216
|
-
|
|
217
193
|
USAGE
|
|
218
|
-
$ sfdx force:community:template:list [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
194
|
+
$ sfdx force:community:template:list [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
219
195
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
220
196
|
|
|
221
197
|
OPTIONS
|
|
@@ -231,12 +207,13 @@ OPTIONS
|
|
|
231
207
|
this command invocation
|
|
232
208
|
|
|
233
209
|
DESCRIPTION
|
|
234
|
-
See 'Which Experience Cloud Template Should I Use?' in Salesforce Help for more information about the different
|
|
210
|
+
See 'Which Experience Cloud Template Should I Use?' in Salesforce Help for more information about the different
|
|
235
211
|
template types available for Experience Cloud.
|
|
236
212
|
|
|
237
213
|
EXAMPLE
|
|
238
|
-
sfdx force:community:template:list
|
|
214
|
+
$ sfdx force:community:template:list
|
|
239
215
|
```
|
|
240
216
|
|
|
241
|
-
_See code: [src/commands/force/community/template/list.ts](https://github.com/salesforcecli/plugin-community/blob/
|
|
217
|
+
_See code: [src/commands/force/community/template/list.ts](https://github.com/salesforcecli/plugin-community/blob/v2.0.0/src/commands/force/community/template/list.ts)_
|
|
218
|
+
|
|
242
219
|
<!-- commandsstop -->
|
|
@@ -25,7 +25,7 @@ class CommunityCreateCommand extends command_1.SfdxCommand {
|
|
|
25
25
|
return new ConnectExecutor_1.ConnectExecutor(createCommand, this.org).callConnectApi();
|
|
26
26
|
}
|
|
27
27
|
parseVarargs(args) {
|
|
28
|
-
this.logger.debug(`parseVarargs(${args})`);
|
|
28
|
+
this.logger.debug(`parseVarargs([${args.join(', ')}])`);
|
|
29
29
|
// It never looks like args is ever undefined as long as varargs is turned on for the command...
|
|
30
30
|
// But since the signature says it's optional, we should probably gate this even though it's unnecessary right now.
|
|
31
31
|
if (args === undefined) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/force/community/create.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AACzB,iDAAsE;AAEtE,2CAA4C;AAC5C,0GAAuG;AACvG,sFAAmF;AACnF,uGAAoG;AAGpG,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,QAAQ,CAAC,CAAC;AACjF;;;GAGG;AACH,MAAa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QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,+BAA+B,CAAC;QACjE,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,mCAAmC,CAAC;KAC1E,CAAC;CACH,CAAC;AAEqB,yCAAkB,GAAa;IACpD,gBAAgB;IAChB,MAAM;IACN,eAAe;IACf,cAAc;IACd,aAAa;IAEb,qFAAqF;IACrF,0BAA0B;CAC3B,CAAC"}
|
|
@@ -9,6 +9,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.CommunityNameValueParser = void 0;
|
|
10
10
|
const lodash_1 = require("lodash");
|
|
11
11
|
const core_1 = require("@salesforce/core");
|
|
12
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
13
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-community', 'create');
|
|
12
14
|
/**
|
|
13
15
|
* A parser for the CommunityCreateCommand varargs.
|
|
14
16
|
*/
|
|
@@ -59,7 +61,7 @@ class CommunityNameValueParser {
|
|
|
59
61
|
.filter(([key, value]) => !pattern.test(key))
|
|
60
62
|
.map(([key, value]) => `${key}="${value}"`);
|
|
61
63
|
if (!(0, lodash_1.isEmpty)(errors)) {
|
|
62
|
-
throw
|
|
64
|
+
throw messages.createError('error.invalidVarargs', errors);
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
67
|
buildJsonMapFromKeyValues(keyValues) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommunityNameValueParser.js","sourceRoot":"","sources":["../../../../src/shared/community/commands/CommunityNameValueParser.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,mCAAiC;AAEjC,
|
|
1
|
+
{"version":3,"file":"CommunityNameValueParser.js","sourceRoot":"","sources":["../../../../src/shared/community/commands/CommunityNameValueParser.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,mCAAiC;AAEjC,2CAA4C;AAE5C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAA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|
import { UX } from '@salesforce/command';
|
|
4
|
+
import { HttpMethods } from 'jsforce';
|
|
4
5
|
import { CommunityCreateResponse } from '../defs/CommunityCreateResponse';
|
|
5
6
|
import { ConnectResource } from '../../connect/services/ConnectResource';
|
|
7
|
+
declare const NAME_KEY = "name";
|
|
6
8
|
/**
|
|
7
9
|
* A connect api resource for creating a community
|
|
8
10
|
*/
|
|
@@ -11,9 +13,12 @@ export declare class CommunityCreateResource implements ConnectResource<Communit
|
|
|
11
13
|
private params;
|
|
12
14
|
private ux;
|
|
13
15
|
constructor(flags: OutputFlags<any>, params: AnyJson, ux: UX);
|
|
14
|
-
handleSuccess(result: JsonCollection
|
|
16
|
+
handleSuccess(result: JsonCollection & {
|
|
17
|
+
[NAME_KEY]?: string;
|
|
18
|
+
}): CommunityCreateResponse;
|
|
15
19
|
handleError(error: Error): CommunityCreateResponse;
|
|
16
20
|
fetchRelativeConnectUrl(): Promise<string>;
|
|
17
|
-
getRequestMethod():
|
|
21
|
+
getRequestMethod(): HttpMethods;
|
|
18
22
|
fetchPostParams(): Promise<string>;
|
|
19
23
|
}
|
|
24
|
+
export {};
|
|
@@ -22,7 +22,11 @@ class CommunityCreateResource {
|
|
|
22
22
|
name: result[NAME_KEY],
|
|
23
23
|
action: messages.getMessage('response.action'),
|
|
24
24
|
};
|
|
25
|
-
const columns =
|
|
25
|
+
const columns = {
|
|
26
|
+
[NAME_KEY]: { header: 'Name' },
|
|
27
|
+
[MESSAGE_KEY]: { header: 'Message' },
|
|
28
|
+
[ACTION_KEY]: { header: 'Action' },
|
|
29
|
+
};
|
|
26
30
|
this.ux.styledHeader(messages.getMessage('response.styleHeader'));
|
|
27
31
|
this.ux.table([response], columns);
|
|
28
32
|
return response;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommunityCreateResource.js","sourceRoot":"","sources":["../../../../src/shared/community/connect/CommunityCreateResource.ts"],"names":[],"mappings":";;;AASA,2CAA4C;
|
|
1
|
+
{"version":3,"file":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C;IACd,CAAC;IAED,4DAA4D;IACrD,KAAK,CAAC,uBAAuB;QAClC,OAAO,sBAAsB,CAAC;IAChC,CAAC;IAEM,gBAAgB;QACrB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,4DAA4D;IACrD,KAAK,CAAC,eAAe;QAC1B,MAAM,MAAM,GAA0B;YACpC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAc;YAC/B,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,aAAuB;YACjD,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,YAAsB;YAC/C,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAqB;YAC7C,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAY;SACzD,CAAC;QAEF,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;CACF;AA5CD,0DA4CC"}
|
|
@@ -2,6 +2,7 @@ import { OutputFlags } from '@oclif/parser';
|
|
|
2
2
|
import { UX } from '@salesforce/command';
|
|
3
3
|
import { JsonCollection } from '@salesforce/ts-types';
|
|
4
4
|
import { Org } from '@salesforce/core';
|
|
5
|
+
import { HttpMethods } from 'jsforce';
|
|
5
6
|
import { CommunityPublishResponse } from '../defs/CommunityPublishResponse';
|
|
6
7
|
import { ConnectResource } from '../../connect/services/ConnectResource';
|
|
7
8
|
/**
|
|
@@ -14,9 +15,13 @@ export declare class CommunityPublishResource implements ConnectResource<Communi
|
|
|
14
15
|
private info;
|
|
15
16
|
constructor(flags: OutputFlags<any>, org: Org, ux: UX);
|
|
16
17
|
fetchRelativeConnectUrl(): Promise<string>;
|
|
17
|
-
getRequestMethod():
|
|
18
|
+
getRequestMethod(): HttpMethods;
|
|
18
19
|
fetchPostParams(): Promise<string>;
|
|
19
|
-
handleSuccess(result: JsonCollection
|
|
20
|
+
handleSuccess(result: JsonCollection & {
|
|
21
|
+
id?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
url?: string;
|
|
24
|
+
}): CommunityPublishResponse;
|
|
20
25
|
handleError(error: Error): CommunityPublishResponse;
|
|
21
26
|
fetchCommunityId(): Promise<string>;
|
|
22
27
|
}
|
|
@@ -33,13 +33,19 @@ class CommunityPublishResource {
|
|
|
33
33
|
}
|
|
34
34
|
handleSuccess(result) {
|
|
35
35
|
const response = {
|
|
36
|
-
id: result
|
|
36
|
+
id: result.id,
|
|
37
37
|
message: messages.getMessage('response.message'),
|
|
38
|
-
name: result
|
|
38
|
+
name: result.name,
|
|
39
39
|
status: this.info.status,
|
|
40
|
-
url: new url_1.URL(result
|
|
40
|
+
url: new url_1.URL(result.url).toString(),
|
|
41
|
+
};
|
|
42
|
+
const columns = {
|
|
43
|
+
id: { header: 'Id' },
|
|
44
|
+
message: { header: 'Message' },
|
|
45
|
+
name: { header: 'Name' },
|
|
46
|
+
status: { header: 'Status' },
|
|
47
|
+
url: { header: 'Url' },
|
|
41
48
|
};
|
|
42
|
-
const columns = ['id', 'message', 'name', 'status', 'url'];
|
|
43
49
|
this.ux.styledHeader(messages.getMessage('response.styleHeader'));
|
|
44
50
|
this.ux.table([response], columns);
|
|
45
51
|
return response;
|
|
@@ -50,7 +56,7 @@ class CommunityPublishResource {
|
|
|
50
56
|
async fetchCommunityId() {
|
|
51
57
|
this.info = await CommunitiesServices_1.CommunitiesServices.fetchCommunityInfoFromName(this.org, this.flags.name);
|
|
52
58
|
if (!this.info) {
|
|
53
|
-
throw
|
|
59
|
+
throw messages.createError('error.communityNotExists', [this.flags.name]);
|
|
54
60
|
}
|
|
55
61
|
return this.info.id;
|
|
56
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommunityPublishResource.js","sourceRoot":"","sources":["../../../../src/shared/community/connect/CommunityPublishResource.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,6BAA0B;AAI1B,
|
|
1
|
+
{"version":3,"file":"CommunityPublishResource.js","sourceRoot":"","sources":["../../../../src/shared/community/connect/CommunityPubl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MAAM,EAAE,KAAK,EAAE;SACvB,CAAC;QACF,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC;QAClE,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;QACnC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEM,WAAW,CAAC,KAAY;QAC7B,MAAM,KAAK,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,gBAAgB;QAC3B,IAAI,CAAC,IAAI,GAAG,MAAM,yCAAmB,CAAC,0BAA0B,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5F,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACd,MAAM,QAAQ,CAAC,WAAW,CAAC,0BAA0B,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;SAC3E;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IACtB,CAAC;CACF;AAnDD,4DAmDC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UX } from '@salesforce/command';
|
|
2
|
+
import { HttpMethods } from 'jsforce';
|
|
2
3
|
import { ConnectResource } from '../../connect/services/ConnectResource';
|
|
3
4
|
import { CommunityTemplatesListResponse } from '../defs/CommunityTemplatesListResponse';
|
|
4
5
|
/**
|
|
@@ -9,7 +10,7 @@ export declare class CommunityTemplatesResource implements ConnectResource<Commu
|
|
|
9
10
|
constructor(ux: UX);
|
|
10
11
|
fetchRelativeConnectUrl(): Promise<string>;
|
|
11
12
|
fetchPostParams(): Promise<string>;
|
|
12
|
-
getRequestMethod():
|
|
13
|
+
getRequestMethod(): HttpMethods;
|
|
13
14
|
handleSuccess(result: CommunityTemplatesListResponse): CommunityTemplatesListResponse;
|
|
14
15
|
handleError(error: Error): CommunityTemplatesListResponse;
|
|
15
16
|
}
|
|
@@ -23,7 +23,10 @@ class CommunityTemplatesResource {
|
|
|
23
23
|
return 'GET';
|
|
24
24
|
}
|
|
25
25
|
handleSuccess(result) {
|
|
26
|
-
const columns =
|
|
26
|
+
const columns = {
|
|
27
|
+
templateName: { header: 'Template Name' },
|
|
28
|
+
publisher: { header: 'Publisher' },
|
|
29
|
+
};
|
|
27
30
|
this.ux.styledHeader(messages.getMessage('response.styledHeader'));
|
|
28
31
|
this.ux.table(result.templates, columns);
|
|
29
32
|
this.ux.log();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommunityTemplatesResource.js","sourceRoot":"","sources":["../../../../src/shared/community/connect/CommunityTemplatesResource.ts"],"names":[],"mappings":";;;AAOA,2CAA4C;
|
|
1
|
+
{"version":3,"file":"CommunityTemplatesResource.js","sourceRoot":"","sources":["../../../../src/shared/community/connect/CommunityTemplatesResource.ts"],"names":[],"mappings":";;;AAOA,2CAA4C;AAK5C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,eAAe,CAAC,CAAC;AAExF;;GAEG;AACH,MAAa,0BAA0B;IACrC,YAA2B,EAAM;QAAN,OAAE,GAAF,EAAE,CAAI;IAAG,CAAC;IAErC,4DAA4D;IACrD,KAAK,CAAC,uBAAuB;QAClC,OAAO,gCAAgC,CAAC;IAC1C,CAAC;IACD,4DAA4D;IACrD,KAAK,CAAC,eAAe;QAC1B,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAC5B,CAAC;IAEM,gBAAgB;QACrB,OAAO,KAAK,CAAC;IACf,CAAC;IAEM,aAAa,CAAC,MAAsC;QACzD,MAAM,OAAO,GAAG;YACd,YAAY,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE;YACzC,SAAS,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE;SACnC,CAAC;QACF,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC,CAAC;QACnE,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACzC,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC;QACd,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QACjF,OAAO,MAAM,CAAC;IAChB,CAAC;IAEM,WAAW,CAAC,KAAY;QAC7B,MAAM,KAAK,CAAC;IACd,CAAC;CACF;AA/BD,gEA+BC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { URL } from 'url';
|
|
3
1
|
import { CommunityStatus } from './CommunityStatusEnum';
|
|
4
2
|
/**
|
|
5
3
|
* SFDX command output when publishing a community
|
|
@@ -24,5 +22,5 @@ export declare type CommunityPublishResponse = {
|
|
|
24
22
|
/**
|
|
25
23
|
* url to access the community
|
|
26
24
|
*/
|
|
27
|
-
url:
|
|
25
|
+
url: string;
|
|
28
26
|
};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2020, salesforce.com, inc.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Licensed under the BSD 3-Clause license.
|
|
6
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
+
*/
|
|
2
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
9
|
//# sourceMappingURL=CommunityPublishResponse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommunityPublishResponse.js","sourceRoot":"","sources":["../../../../src/shared/community/defs/CommunityPublishResponse.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"CommunityPublishResponse.js","sourceRoot":"","sources":["../../../../src/shared/community/defs/CommunityPublishResponse.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -13,6 +13,6 @@ export declare class CommunitiesServices {
|
|
|
13
13
|
*
|
|
14
14
|
* @returns - the community id for the given name
|
|
15
15
|
*/
|
|
16
|
-
static fetchCommunityInfoFromName(org: Org, name: string): Promise<CommunityInfo>;
|
|
16
|
+
static fetchCommunityInfoFromName(org: Org, name: string): Promise<CommunityInfo | undefined>;
|
|
17
17
|
static runQuery<T>(org: Org, query: string): Promise<QueryResult<T>>;
|
|
18
18
|
}
|
|
@@ -15,15 +15,15 @@ class CommunitiesServices {
|
|
|
15
15
|
*/
|
|
16
16
|
static async fetchCommunityInfoFromName(org, name) {
|
|
17
17
|
if (!name) {
|
|
18
|
-
return
|
|
18
|
+
return undefined;
|
|
19
19
|
}
|
|
20
20
|
const result = await CommunitiesServices.runQuery(org, `SELECT Id, Status FROM NETWORK WHERE NAME = '${name}'`);
|
|
21
21
|
if (result.totalSize > 0) {
|
|
22
22
|
const record = result.records[0];
|
|
23
23
|
return {
|
|
24
24
|
name,
|
|
25
|
-
id: record
|
|
26
|
-
status: record
|
|
25
|
+
id: record.Id,
|
|
26
|
+
status: record.Status,
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommunitiesServices.js","sourceRoot":"","sources":["../../../../src/shared/community/service/CommunitiesServices.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CommunitiesServices.js","sourceRoot":"","sources":["../../../../src/shared/community/service/CommunitiesServices.ts"],"names":[],"mappings":";;;AAWA;;GAEG;AACH,MAAa,mBAAmB;IAC9B;;;;;;;OAOG;IACI,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,GAAQ,EAAE,IAAY;QACnE,IAAI,CAAC,IAAI,EAAE;YACT,OAAO,SAAS,CAAC;SAClB;QAED,MAAM,MAAM,GAAyD,MAAM,mBAAmB,CAAC,QAAQ,CACrG,GAAG,EACH,gDAAgD,IAAI,GAAG,CACxD,CAAC;QACF,IAAI,MAAM,CAAC,SAAS,GAAG,CAAC,EAAE;YACxB,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACjC,OAAO;gBACL,IAAI;gBACJ,EAAE,EAAE,MAAM,CAAC,EAAE;gBACb,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC;SACH;IACH,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAI,GAAQ,EAAE,KAAa;QACrD,IAAI,CAAC,KAAK,EAAE;YACV,OAAO;SACR;QACD,OAAO,GAAG,CAAC,aAAa,EAAE,CAAC,KAAK,CAAI,KAAK,CAAC,CAAC;IAC7C,CAAC;CACF;AAlCD,kDAkCC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RequestInfo } from 'jsforce';
|
|
2
1
|
import { Org } from '@salesforce/core';
|
|
2
|
+
import { HttpRequest } from 'jsforce';
|
|
3
3
|
import { ConnectResource } from './ConnectResource';
|
|
4
4
|
/**
|
|
5
5
|
* An executor which calls a connect api for the given org
|
|
@@ -12,5 +12,5 @@ export declare class ConnectExecutor<T> {
|
|
|
12
12
|
* Call the connect resource as defined by the given ConnectResource for the given org
|
|
13
13
|
*/
|
|
14
14
|
callConnectApi(): Promise<T>;
|
|
15
|
-
fetchRequestInfo(): Promise<
|
|
15
|
+
fetchRequestInfo(): Promise<HttpRequest>;
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectExecutor.js","sourceRoot":"","sources":["../../../../src/shared/connect/services/ConnectExecutor.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAGH,
|
|
1
|
+
{"version":3,"file":"ConnectExecutor.js","sourceRoot":"","sources":["../../../../src/shared/connect/services/ConnectExecutor.ts"],"names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ttpMethods } from 'jsforce';
|
|
2
3
|
/**
|
|
3
4
|
* Describe of a connect api resource
|
|
4
5
|
* T - type of return type for success/failure
|
|
@@ -9,9 +10,9 @@ export interface ConnectResource<T> {
|
|
|
9
10
|
*/
|
|
10
11
|
fetchRelativeConnectUrl(): Promise<string>;
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
+
* HttpMethods
|
|
13
14
|
*/
|
|
14
|
-
getRequestMethod():
|
|
15
|
+
getRequestMethod(): HttpMethods;
|
|
15
16
|
/**
|
|
16
17
|
* This will be called only when this#getRequestMethod() is 'POST'
|
|
17
18
|
* Return the post params in stringified version
|
package/messages/create.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "creates an Experience Cloud site using a template\nSee 'Which Experience Cloud Template Should I Use?' in Salesforce Help for more information about the different template types available for Experience Cloud.\n\nWhen creating a site with the Build Your Own (LWR) template, you must also specify the AuthenticationType value using the format templateParams.AuthenticationType=value, where value is AUTHENTICATED, UNAUTHENTICATED, or AUTHENTICATED_WITH_PUBLIC_ACCESS. Name and values are case-sensitive. See 'ExperienceBundle' in the Metadata API Developer Guide for more information.\n\nWhen you execute this command, it creates the site in preview status, which means that it isn
|
|
2
|
+
"description": "creates an Experience Cloud site using a template\nSee 'Which Experience Cloud Template Should I Use?' in Salesforce Help for more information about the different template types available for Experience Cloud.\n\nWhen creating a site with the Build Your Own (LWR) template, you must also specify the AuthenticationType value using the format templateParams.AuthenticationType=value, where value is AUTHENTICATED, UNAUTHENTICATED, or AUTHENTICATED_WITH_PUBLIC_ACCESS. Name and values are case-sensitive. See 'ExperienceBundle' in the Metadata API Developer Guide for more information.\n\nWhen you execute this command, it creates the site in preview status, which means that it isn't yet live. After you finish building your site, you can make it live.\n\nIf you have an Experience Builder site, publish the site using the sfdx force:community:publish command to make it live.\n\nIf you have a Salesforce Tabs + Visualforce site, activate the site to make it live by updating the status field of the Network type in the Metadata API. Alternatively, in Experience Workspaces, go to Administration | Settings, and click Activate.\n\nFor Experience Builder sites, activating the site just sends out a welcome email to site members.",
|
|
3
3
|
"examples": [
|
|
4
|
-
"sfdx force:community:create --name 'My Customer Site' --templatename 'Customer Service' --urlpathprefix customers --description 'My customer site'",
|
|
5
|
-
"sfdx force:community:create -n partnercentral -t 'Partner Central' -p partners",
|
|
6
|
-
"sfdx force:community:create -n lwrsite -t 'Build Your Own (LWR)' -p lwrsite templateParams.AuthenticationType=UNAUTHENTICATED"
|
|
4
|
+
"$ sfdx force:community:create --name 'My Customer Site' --templatename 'Customer Service' --urlpathprefix customers --description 'My customer site'",
|
|
5
|
+
"$ sfdx force:community:create -n partnercentral -t 'Partner Central' -p partners",
|
|
6
|
+
"$ sfdx force:community:create -n lwrsite -t 'Build Your Own (LWR)' -p lwrsite templateParams.AuthenticationType=UNAUTHENTICATED"
|
|
7
7
|
],
|
|
8
8
|
"flags": {
|
|
9
9
|
"name": {
|
package/messages/publish.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "publishes an Experience Builder site to make it live\nEach time you publish it, you update the live site with the most recent updates.\nWhen you publish an Experience Builder site for the first time, you make the site
|
|
3
|
-
"examples": ["sfdx force:community:publish --name 'My Customer Site'"],
|
|
2
|
+
"description": "publishes an Experience Builder site to make it live\nEach time you publish it, you update the live site with the most recent updates.\nWhen you publish an Experience Builder site for the first time, you make the site's URL live and enable login access for site members.\n\nAdditionally, to send a welcome email to all site members, you must activate the site. (Activation is also required to successfully set up SEO for Experience Builder sites.) To activate a site, update the status field of the Network type in the Metadata API. Alternatively, in Experience Workspaces, go to Administration | Settings, and click Activate.\n\nSubsequently, each time you publish the site, you update the live site with all changes made to the site since it was last published.\n\nAn email notification informs you when your changes are live.",
|
|
3
|
+
"examples": ["$ sfdx force:community:publish --name 'My Customer Site'"],
|
|
4
4
|
"flags": {
|
|
5
5
|
"name": {
|
|
6
6
|
"description": "name of the Experience Builder site to publish",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "retrieves the list of templates available in your org\nSee 'Which Experience Cloud Template Should I Use?' in Salesforce Help for more information about the different template types available for Experience Cloud.",
|
|
3
|
-
"examples": ["sfdx force:community:template:list"],
|
|
3
|
+
"examples": ["$ sfdx force:community:template:list"],
|
|
4
4
|
"response": {
|
|
5
5
|
"styledHeader": "Site list template result",
|
|
6
6
|
"TotalField": "Total "
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"2.0.0","commands":{"force:community:create":{"id":"force:community:create","description":"creates an Experience Cloud site using a template\nSee 'Which Experience Cloud Template Should I Use?' in Salesforce Help for more information about the different template types available for Experience Cloud.\n\nWhen creating a site with the Build Your Own (LWR) template, you must also specify the AuthenticationType value using the format templateParams.AuthenticationType=value, where value is AUTHENTICATED, UNAUTHENTICATED, or AUTHENTICATED_WITH_PUBLIC_ACCESS. Name and values are case-sensitive. See 'ExperienceBundle' in the Metadata API Developer Guide for more information.\n\nWhen you execute this command, it creates the site in preview status, which means that it isn't yet live. After you finish building your site, you can make it live.\n\nIf you have an Experience Builder site, publish the site using the sfdx force:community:publish command to make it live.\n\nIf you have a Salesforce Tabs + Visualforce site, activate the site to make it live by updating the status field of the Network type in the Metadata API. Alternatively, in Experience Workspaces, go to Administration | Settings, and click Activate.\n\nFor Experience Builder sites, activating the site just sends out a welcome email to site members.","usage":"<%= command.id %> [name=value...] -n <string> -t <string> -p <string> [-d <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-community","pluginType":"core","aliases":[],"examples":["$ sfdx force:community:create --name 'My Customer Site' --templatename 'Customer Service' --urlpathprefix customers --description 'My customer site'","$ sfdx force:community:create -n partnercentral -t 'Partner Central' -p partners","$ sfdx force:community:create -n lwrsite -t 'Build Your Own (LWR)' -p lwrsite templateParams.AuthenticationType=UNAUTHENTICATED"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"name":{"name":"name","type":"option","char":"n","description":"name of the site to create","required":true},"templatename":{"name":"templatename","type":"option","char":"t","description":"template to use to create a site","required":true},"urlpathprefix":{"name":"urlpathprefix","type":"option","char":"p","description":"URL to append to the domain created when Digital Experiences was enabled for this org","required":true},"description":{"name":"description","type":"option","char":"d","description":"description of the site"}},"args":[]},"force:community:publish":{"id":"force:community:publish","description":"publishes an Experience Builder site to make it live\nEach time you publish it, you update the live site with the most recent updates.\nWhen you publish an Experience Builder site for the first time, you make the site's URL live and enable login access for site members.\n\nAdditionally, to send a welcome email to all site members, you must activate the site. (Activation is also required to successfully set up SEO for Experience Builder sites.) To activate a site, update the status field of the Network type in the Metadata API. Alternatively, in Experience Workspaces, go to Administration | Settings, and click Activate.\n\nSubsequently, each time you publish the site, you update the live site with all changes made to the site since it was last published.\n\nAn email notification informs you when your changes are live.","usage":"<%= command.id %> -n <string> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-community","pluginType":"core","aliases":[],"examples":["$ sfdx force:community:publish --name 'My Customer Site'"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"name":{"name":"name","type":"option","char":"n","description":"name of the Experience Builder site to publish","required":true}},"args":[]},"force:community:template:list":{"id":"force:community:template:list","description":"retrieves the list of templates available in your org\nSee 'Which Experience Cloud Template Should I Use?' in Salesforce Help for more information about the different template types available for Experience Cloud.","usage":"<%= command.id %> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-community","pluginType":"core","aliases":[],"examples":["$ sfdx force:community:template:list"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"}},"args":[]}}}
|
package/package.json
CHANGED
|
@@ -1,47 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-community",
|
|
3
3
|
"description": "Community commands to create and publish an Experience Cloud site, and view a list of available templates in you org.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@oclif/
|
|
9
|
-
"@salesforce/command": "^
|
|
10
|
-
"@salesforce/core": "^
|
|
8
|
+
"@oclif/core": "^1.9.0",
|
|
9
|
+
"@salesforce/command": "^5.1.2",
|
|
10
|
+
"@salesforce/core": "^3.19.0",
|
|
11
11
|
"tslib": "^2"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@oclif/dev-cli": "^1",
|
|
15
|
-
"@oclif/plugin-command-snapshot": "^
|
|
16
|
-
"@salesforce/cli-plugins-testkit": "^1.
|
|
17
|
-
"@salesforce/dev-config": "^
|
|
18
|
-
"@salesforce/dev-scripts": "^0.
|
|
19
|
-
"@salesforce/plugin-command-reference": "^1.3.
|
|
14
|
+
"@oclif/dev-cli": "^1.26.10",
|
|
15
|
+
"@oclif/plugin-command-snapshot": "^3.1.3",
|
|
16
|
+
"@salesforce/cli-plugins-testkit": "^1.5.35",
|
|
17
|
+
"@salesforce/dev-config": "^3.0.1",
|
|
18
|
+
"@salesforce/dev-scripts": "^2.0.2",
|
|
19
|
+
"@salesforce/plugin-command-reference": "^1.3.20",
|
|
20
20
|
"@salesforce/prettier-config": "^0.0.2",
|
|
21
21
|
"@salesforce/ts-sinon": "1.3.21",
|
|
22
|
-
"@typescript-eslint/eslint-plugin": "^4.
|
|
23
|
-
"@typescript-eslint/parser": "^4.
|
|
24
|
-
"chai": "^4.3.
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
23
|
+
"@typescript-eslint/parser": "^4.33.0",
|
|
24
|
+
"chai": "^4.3.6",
|
|
25
25
|
"cz-conventional-changelog": "^3.3.0",
|
|
26
26
|
"eslint": "^7.32.0",
|
|
27
|
-
"eslint-config-prettier": "^8.
|
|
27
|
+
"eslint-config-prettier": "^8.5.0",
|
|
28
28
|
"eslint-config-salesforce": "^0.1.6",
|
|
29
29
|
"eslint-config-salesforce-license": "^0.1.6",
|
|
30
30
|
"eslint-config-salesforce-typescript": "^0.2.8",
|
|
31
31
|
"eslint-plugin-header": "^3.1.1",
|
|
32
|
-
"eslint-plugin-import": "^2.
|
|
32
|
+
"eslint-plugin-import": "^2.26.0",
|
|
33
33
|
"eslint-plugin-jsdoc": "^35.5.1",
|
|
34
34
|
"eslint-plugin-prettier": "^3.4.1",
|
|
35
|
-
"husky": "^
|
|
36
|
-
"
|
|
37
|
-
"
|
|
35
|
+
"husky": "^7.0.4",
|
|
36
|
+
"jsforce": "2.0.0-beta.10",
|
|
37
|
+
"lint-staged": "^11.2.6",
|
|
38
|
+
"mocha": "^9.2.2",
|
|
38
39
|
"nyc": "^15.1.0",
|
|
39
|
-
"prettier": "^2.
|
|
40
|
-
"pretty-quick": "^3.1.
|
|
41
|
-
"shx": "0.3.
|
|
40
|
+
"prettier": "^2.6.2",
|
|
41
|
+
"pretty-quick": "^3.1.3",
|
|
42
|
+
"shx": "0.3.4",
|
|
42
43
|
"sinon": "^11.1.2",
|
|
43
|
-
"ts-node": "^10.
|
|
44
|
-
"typescript": "^4.
|
|
44
|
+
"ts-node": "^10.8.0",
|
|
45
|
+
"typescript": "^4.7.2"
|
|
45
46
|
},
|
|
46
47
|
"config": {
|
|
47
48
|
"commitizen": {
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
}
|
|
50
51
|
},
|
|
51
52
|
"engines": {
|
|
52
|
-
"node": ">=
|
|
53
|
+
"node": ">=14.0.0"
|
|
53
54
|
},
|
|
54
55
|
"files": [
|
|
55
56
|
"/lib",
|
|
@@ -106,23 +107,16 @@
|
|
|
106
107
|
"prepare": "sf-install",
|
|
107
108
|
"pretest": "sf-compile-test",
|
|
108
109
|
"test": "sf-test",
|
|
109
|
-
"test:command-reference": "./bin/
|
|
110
|
-
"test:deprecation-policy": "./bin/
|
|
110
|
+
"test:command-reference": "./bin/dev commandreference:generate --erroronwarnings",
|
|
111
|
+
"test:deprecation-policy": "./bin/dev snapshot:compare",
|
|
111
112
|
"test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
|
|
112
113
|
"version": "oclif-dev readme"
|
|
113
114
|
},
|
|
114
115
|
"publishConfig": {
|
|
115
116
|
"access": "public"
|
|
116
117
|
},
|
|
117
|
-
"husky": {
|
|
118
|
-
"hooks": {
|
|
119
|
-
"commit-msg": "sf-husky-commit-msg",
|
|
120
|
-
"pre-commit": "sf-husky-pre-commit",
|
|
121
|
-
"pre-push": "sf-husky-pre-push"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
118
|
"sfdx": {
|
|
125
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-community/
|
|
126
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-community/
|
|
119
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-community/2.0.0.crt",
|
|
120
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-community/2.0.0.sig"
|
|
127
121
|
}
|
|
128
122
|
}
|
package/messages/messages.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"HelpDefaults": "If not supplied, the apiversion, template, and outputdir use default values.\n",
|
|
3
|
-
"HelpOutputDirRelative": "The outputdir can be an absolute path or relative to the current working directory.\n",
|
|
4
|
-
"HelpOutputDirRelativeLightning": "If you don’t specify an outputdir, we create a subfolder in your current working directory with the name of your bundle. For example, if the current working directory is force-app and your Lightning bundle is called myBundle, we create force-app/myBundle/ to store the files in the bundle.\n",
|
|
5
|
-
"HelpExamplesTitle": "\nExamples:\n",
|
|
6
|
-
"OutputDirFlagDescription": "folder for saving the created files",
|
|
7
|
-
"OutputDirFlagLongDescription": "The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
8
|
-
"TemplateFlagDescription": "template to use for file creation",
|
|
9
|
-
"TemplateFlagLongDescription": "The template to use to create the file. Supplied parameter values or default values are filled into a copy of the template.",
|
|
10
|
-
"TargetDirOutput": "target dir = %s",
|
|
11
|
-
"App": "app",
|
|
12
|
-
"Event": "event",
|
|
13
|
-
"Interface": "interface",
|
|
14
|
-
"Test": "test",
|
|
15
|
-
"Component": "component",
|
|
16
|
-
"Page": "page",
|
|
17
|
-
|
|
18
|
-
"AlphaNumericNameError": "Name must contain only alphanumeric characters.",
|
|
19
|
-
"NameMustStartWithLetterError": "Name must start with a letter.",
|
|
20
|
-
"EndWithUnderscoreError": "Name can't end with an underscore.",
|
|
21
|
-
"DoubleUnderscoreError": "Name can't contain 2 consecutive underscores."
|
|
22
|
-
}
|