@salesforce/plugin-community 2.0.26 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +1 -1
- package/lib/commands/community/create.d.ts +28 -0
- package/lib/commands/community/create.js +110 -0
- package/lib/commands/community/create.js.map +1 -0
- package/lib/commands/community/list/template.d.ts +19 -0
- package/lib/commands/community/list/template.js +53 -0
- package/lib/commands/community/list/template.js.map +1 -0
- package/lib/commands/community/publish.d.ts +20 -0
- package/lib/commands/community/publish.js +62 -0
- package/lib/commands/community/publish.js.map +1 -0
- package/lib/shared/community/commands/CommunityNameValueParser.d.ts +1 -1
- package/lib/shared/community/commands/CommunityNameValueParser.js +4 -6
- package/lib/shared/community/commands/CommunityNameValueParser.js.map +1 -1
- package/lib/shared/community/connect/CommunityCreateResource.d.ts +4 -7
- package/lib/shared/community/connect/CommunityCreateResource.js +11 -21
- package/lib/shared/community/connect/CommunityCreateResource.js.map +1 -1
- package/lib/shared/community/connect/CommunityPublishResource.d.ts +6 -6
- package/lib/shared/community/connect/CommunityPublishResource.js +8 -25
- package/lib/shared/community/connect/CommunityPublishResource.js.map +1 -1
- package/lib/shared/community/connect/CommunityTemplatesResource.d.ts +0 -3
- package/lib/shared/community/connect/CommunityTemplatesResource.js +7 -20
- package/lib/shared/community/connect/CommunityTemplatesResource.js.map +1 -1
- package/lib/shared/community/defs/CommunityTemplatesListResponse.d.ts +1 -1
- package/lib/shared/connect/services/ConnectExecutor.js +3 -5
- package/lib/shared/connect/services/ConnectExecutor.js.map +1 -1
- package/lib/shared/utils.d.ts +2 -0
- package/lib/shared/utils.js +13 -0
- package/lib/shared/utils.js.map +1 -0
- package/messages/connect-executor.md +3 -0
- package/messages/create.md +77 -0
- package/messages/publish.md +35 -0
- package/messages/template.list.md +21 -0
- package/oclif.manifest.json +1 -1
- package/package.json +22 -22
- package/lib/commands/force/community/create.d.ts +0 -17
- package/lib/commands/force/community/create.js +0 -79
- package/lib/commands/force/community/create.js.map +0 -1
- package/lib/commands/force/community/publish.d.ts +0 -13
- package/lib/commands/force/community/publish.js +0 -39
- package/lib/commands/force/community/publish.js.map +0 -1
- package/lib/commands/force/community/template/list.d.ts +0 -12
- package/lib/commands/force/community/template/list.js +0 -31
- package/lib/commands/force/community/template/list.js.map +0 -1
- package/messages/create.json +0 -34
- package/messages/publish.json +0 -17
- package/messages/template.list.json +0 -8
|
@@ -1,37 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CommunityTemplatesResource = void 0;
|
|
4
|
-
const core_1 = require("@salesforce/core");
|
|
5
|
-
core_1.Messages.importMessagesDirectory(__dirname);
|
|
6
|
-
const messages = core_1.Messages.loadMessages('@salesforce/plugin-community', 'template.list');
|
|
7
4
|
/**
|
|
8
5
|
* A connect api resource for fetching community templates available to context user
|
|
9
6
|
*/
|
|
10
7
|
class CommunityTemplatesResource {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/require-await, class-methods-use-this
|
|
15
|
-
async fetchRelativeConnectUrl() {
|
|
16
|
-
return '/connect/communities/templates';
|
|
8
|
+
// eslint-disable-next-line class-methods-use-this
|
|
9
|
+
fetchRelativeConnectUrl() {
|
|
10
|
+
return Promise.resolve('/connect/communities/templates');
|
|
17
11
|
}
|
|
18
|
-
// eslint-disable-next-line
|
|
19
|
-
|
|
20
|
-
return JSON.stringify({});
|
|
12
|
+
// eslint-disable-next-line class-methods-use-this
|
|
13
|
+
fetchPostParams() {
|
|
14
|
+
return Promise.resolve(JSON.stringify({}));
|
|
21
15
|
}
|
|
22
16
|
// eslint-disable-next-line class-methods-use-this
|
|
23
17
|
getRequestMethod() {
|
|
24
18
|
return 'GET';
|
|
25
19
|
}
|
|
20
|
+
// eslint-disable-next-line class-methods-use-this
|
|
26
21
|
handleSuccess(result) {
|
|
27
|
-
const columns = {
|
|
28
|
-
templateName: { header: 'Template Name' },
|
|
29
|
-
publisher: { header: 'Publisher' },
|
|
30
|
-
};
|
|
31
|
-
this.ux.styledHeader(messages.getMessage('response.styledHeader'));
|
|
32
|
-
this.ux.table(result.templates, columns);
|
|
33
|
-
this.ux.log();
|
|
34
|
-
this.ux.log(messages.getMessage('response.TotalField'), result.total.toString());
|
|
35
22
|
return result;
|
|
36
23
|
}
|
|
37
24
|
// eslint-disable-next-line class-methods-use-this
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommunityTemplatesResource.js","sourceRoot":"","sources":["../../../../src/shared/community/connect/CommunityTemplatesResource.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CommunityTemplatesResource.js","sourceRoot":"","sources":["../../../../src/shared/community/connect/CommunityTemplatesResource.ts"],"names":[],"mappings":";;;AAUA;;GAEG;AACH,MAAa,0BAA0B;IACrC,kDAAkD;IAC3C,uBAAuB;QAC5B,OAAO,OAAO,CAAC,OAAO,CAAC,gCAAgC,CAAC,CAAC;IAC3D,CAAC;IAED,kDAAkD;IAC3C,eAAe;QACpB,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7C,CAAC;IAED,kDAAkD;IAC3C,gBAAgB;QACrB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,kDAAkD;IAC3C,aAAa,CAAC,MAAsC;QACzD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,kDAAkD;IAC3C,WAAW,CAAC,KAAY;QAC7B,MAAM,KAAK,CAAC;IACd,CAAC;CACF;AAzBD,gEAyBC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* SFDX command output when listing available community templates
|
|
3
3
|
*/
|
|
4
|
-
import { CommunityTemplates } from '
|
|
4
|
+
import { CommunityTemplates } from './CommunityTemplates';
|
|
5
5
|
export type CommunityTemplatesListResponse = {
|
|
6
6
|
/**
|
|
7
7
|
* list of templates
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConnectExecutor = void 0;
|
|
4
4
|
const core_1 = require("@salesforce/core");
|
|
5
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
6
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-community', 'connect-executor');
|
|
5
7
|
/**
|
|
6
8
|
* An executor which calls a connect api for the given org
|
|
7
9
|
*/
|
|
@@ -22,12 +24,10 @@ class ConnectExecutor {
|
|
|
22
24
|
}
|
|
23
25
|
async fetchRequestInfo() {
|
|
24
26
|
const connectUrl = encodeURI(await this.connectService.fetchRelativeConnectUrl());
|
|
25
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
26
27
|
const method = this.connectService.getRequestMethod();
|
|
27
28
|
if (method === 'GET') {
|
|
28
29
|
return {
|
|
29
30
|
url: connectUrl,
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
31
31
|
method,
|
|
32
32
|
body: null,
|
|
33
33
|
};
|
|
@@ -35,14 +35,12 @@ class ConnectExecutor {
|
|
|
35
35
|
else if (method === 'POST') {
|
|
36
36
|
return {
|
|
37
37
|
url: connectUrl,
|
|
38
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
39
38
|
method,
|
|
40
39
|
body: await this.connectService.fetchPostParams(),
|
|
41
40
|
};
|
|
42
41
|
}
|
|
43
42
|
else {
|
|
44
|
-
|
|
45
|
-
throw new core_1.SfError(`Unsupported method is given: ${method}`, 'UNSUPPORTED_OPERATION');
|
|
43
|
+
throw new core_1.SfError(messages.getMessage('unsupportedOperation', [method]), 'UNSUPPORTED_OPERATION');
|
|
46
44
|
}
|
|
47
45
|
}
|
|
48
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectExecutor.js","sourceRoot":"","sources":["../../../../src/shared/connect/services/ConnectExecutor.ts"],"names":[],"mappings":";;;AAOA,
|
|
1
|
+
{"version":3,"file":"ConnectExecutor.js","sourceRoot":"","sources":["../../../../src/shared/connect/services/ConnectExecutor.ts"],"names":[],"mappings":";;;AAOA,2CAA0D;AAI1D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,kBAAkB,CAAC,CAAC;AAE3F;;GAEG;AACH,MAAa,eAAe;IAC1B,YAA2B,cAAkC,EAAU,GAAQ;QAApD,mBAAc,GAAd,cAAc,CAAoB;QAAU,QAAG,GAAH,GAAG,CAAK;IAAG,CAAC;IAEnF;;OAEG;IACI,KAAK,CAAC,cAAc;QACzB,OAAO,IAAI,CAAC,GAAG;aACZ,aAAa,EAAE;aACf,OAAO,CAAC,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;aACtC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,MAAwB,CAAC,CAAC;aAC7E,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,GAAY,CAAC,CAAC,CAAC;IACnE,CAAC;IAEM,KAAK,CAAC,gBAAgB;QAC3B,MAAM,UAAU,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,uBAAuB,EAAE,CAAC,CAAC;QAClF,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,gBAAgB,EAAE,CAAC;QACtD,IAAI,MAAM,KAAK,KAAK,EAAE;YACpB,OAAO;gBACL,GAAG,EAAE,UAAU;gBACf,MAAM;gBACN,IAAI,EAAE,IAAI;aACX,CAAC;SACH;aAAM,IAAI,MAAM,KAAK,MAAM,EAAE;YAC5B,OAAO;gBACL,GAAG,EAAE,UAAU;gBACf,MAAM;gBACN,IAAI,EAAE,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE;aAClD,CAAC;SACH;aAAM;YACL,MAAM,IAAI,cAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,uBAAuB,CAAC,CAAC;SACnG;IACH,CAAC;CACF;AAjCD,0CAiCC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.applyApiVersionToOrg = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* Copyright (c) 2020, salesforce.com, inc.
|
|
6
|
+
* All rights reserved.
|
|
7
|
+
* Licensed under the BSD 3-Clause license.
|
|
8
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
9
|
+
*/
|
|
10
|
+
const core_1 = require("@salesforce/core");
|
|
11
|
+
const applyApiVersionToOrg = (org, apiVersion) => core_1.Org.create({ connection: org.getConnection(apiVersion) });
|
|
12
|
+
exports.applyApiVersionToOrg = applyApiVersionToOrg;
|
|
13
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/shared/utils.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2CAAuC;AAEhC,MAAM,oBAAoB,GAAG,CAAC,GAAQ,EAAE,UAAkB,EAAgB,EAAE,CACjF,UAAG,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;AAD/C,QAAA,oBAAoB,wBAC2B"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Create an Experience Cloud site using a template.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
See 'Which Experience Cloud Template Should I Use?' (https://help.salesforce.com/s/articleView?id=sf.siteforce_commtemp_intro.htm&type=5) in Salesforce Help for more information about the different template
|
|
8
|
+
types available for Experience Cloud.
|
|
9
|
+
|
|
10
|
+
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. (https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_experiencebundle.htm)
|
|
11
|
+
|
|
12
|
+
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.
|
|
13
|
+
|
|
14
|
+
If you have an Experience Builder site, publish the site using the "community publish" command to make it live.
|
|
15
|
+
|
|
16
|
+
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.
|
|
17
|
+
|
|
18
|
+
For Experience Builder sites, activating the site just sends out a welcome email to site members.
|
|
19
|
+
|
|
20
|
+
# examples
|
|
21
|
+
|
|
22
|
+
- Create an Experience Cloud site using template 'Customer Service' and URL path prefix 'customers':
|
|
23
|
+
|
|
24
|
+
<%= config.bin %> <%= command.id %> --name 'My Customer Site' --template-name 'Customer Service' --url-path-prefix customers --description 'My customer site'
|
|
25
|
+
|
|
26
|
+
- Create a site using 'Partner Central' template:
|
|
27
|
+
|
|
28
|
+
<%= config.bin %> <%= command.id %> --name partnercentral --template-name 'Partner Central' --url-path-prefix partners
|
|
29
|
+
|
|
30
|
+
- Create a site using the 'Build Your Own (LWR)' template with authentication type of UNAUTHENTICATED:
|
|
31
|
+
|
|
32
|
+
<%= config.bin %> <%= command.id %> --name lwrsite --template-name 'Build Your Own (LWR)' --url-path-prefix lwrsite templateParams.AuthenticationType=UNAUTHENTICATED
|
|
33
|
+
|
|
34
|
+
# flags.name.summary
|
|
35
|
+
|
|
36
|
+
Name of the site to create.
|
|
37
|
+
|
|
38
|
+
# flags.templateName.summary
|
|
39
|
+
|
|
40
|
+
Template to use to create a site.
|
|
41
|
+
|
|
42
|
+
# flags.templateName.description
|
|
43
|
+
|
|
44
|
+
An example of a template is Customer Service. Run the "community template list" command to see which templates are available in your org.
|
|
45
|
+
|
|
46
|
+
# flags.urlPathPrefix.summary
|
|
47
|
+
|
|
48
|
+
URL to append to the domain created when Digital Experiences was enabled for this org.
|
|
49
|
+
|
|
50
|
+
# flags.urlPathPrefix.description
|
|
51
|
+
|
|
52
|
+
For example, if your domain name is https://MyDomainName.my.site.com and you create a customer site, enter 'customers' to create the unique URL https://MyDomainName.my.site.com/customers.
|
|
53
|
+
|
|
54
|
+
# flags.description.summary
|
|
55
|
+
|
|
56
|
+
Description of the site.
|
|
57
|
+
|
|
58
|
+
# flags.description.description
|
|
59
|
+
|
|
60
|
+
The description displays in Digital Experiences - All Sites in Setup and helps with site identification.
|
|
61
|
+
|
|
62
|
+
# response.action
|
|
63
|
+
|
|
64
|
+
We’re creating your site. Run sfdx force:org:open -p \_ui/networks/setup/SetupNetworksPage to view a list of your sites,
|
|
65
|
+
and to confirm when this site is ready.
|
|
66
|
+
|
|
67
|
+
# response.styleHeader
|
|
68
|
+
|
|
69
|
+
Create Site Result
|
|
70
|
+
|
|
71
|
+
# response.createMessage
|
|
72
|
+
|
|
73
|
+
Your Site is being created.
|
|
74
|
+
|
|
75
|
+
# error.invalidVarargs
|
|
76
|
+
|
|
77
|
+
The following varargs were invalid or unsupported: %s
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Publish an Experience Builder site to make it live.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Each time you publish it, you update the live site with the most recent updates. 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.
|
|
8
|
+
|
|
9
|
+
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.
|
|
10
|
+
|
|
11
|
+
Subsequently, each time you publish the site, you update the live site with all changes made to the site since it was last published.
|
|
12
|
+
|
|
13
|
+
An email notification informs you when your changes are live.
|
|
14
|
+
|
|
15
|
+
# examples
|
|
16
|
+
|
|
17
|
+
- Publish the Experience Builder site with name "My Customer Site':
|
|
18
|
+
|
|
19
|
+
<%= config.bin %> <%= command.id %> --name 'My Customer Site'
|
|
20
|
+
|
|
21
|
+
# flags.name.summary
|
|
22
|
+
|
|
23
|
+
Name of the Experience Builder site to publish.
|
|
24
|
+
|
|
25
|
+
# response.styleHeader
|
|
26
|
+
|
|
27
|
+
Publish Site Result
|
|
28
|
+
|
|
29
|
+
# response.message
|
|
30
|
+
|
|
31
|
+
We’re publishing your changes now. You’ll receive an email confirmation when your changes are live.
|
|
32
|
+
|
|
33
|
+
# error.communityNotExists
|
|
34
|
+
|
|
35
|
+
The %s site doesn't exist. Verify the site name and try publishing it again.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Retrieve the list of templates available in your org.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
See 'Which Experience Cloud Template Should I Use?' (https://help.salesforce.com/s/articleView?id=sf.siteforce_commtemp_intro.htm&type=5) in Salesforce Help for more information about the different template types available for Experience Cloud.
|
|
8
|
+
|
|
9
|
+
# examples
|
|
10
|
+
|
|
11
|
+
- Retrieve the template list from an org with alias my-scratch-org:
|
|
12
|
+
|
|
13
|
+
<%= config.bin %> <%= command.id %> --target-org my-scratch-org
|
|
14
|
+
|
|
15
|
+
# response.styledHeader
|
|
16
|
+
|
|
17
|
+
Site list template result
|
|
18
|
+
|
|
19
|
+
# response.TotalField
|
|
20
|
+
|
|
21
|
+
Total
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"2.0
|
|
1
|
+
{"version":"2.1.0","commands":{"community:create":{"id":"community:create","summary":"Create an Experience Cloud site using a template.","description":"See 'Which Experience Cloud Template Should I Use?' (https://help.salesforce.com/s/articleView?id=sf.siteforce_commtemp_intro.htm&type=5) in Salesforce Help for more information about the different template\ntypes 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. (https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_experiencebundle.htm)\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 \"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.","strict":false,"pluginName":"@salesforce/plugin-community","pluginAlias":"@salesforce/plugin-community","pluginType":"core","aliases":["force:community:create"],"examples":["Create an Experience Cloud site using template 'Customer Service' and URL path prefix 'customers':\n<%= config.bin %> <%= command.id %> --name 'My Customer Site' --template-name 'Customer Service' --url-path-prefix customers --description 'My customer site'","Create a site using 'Partner Central' template:\n<%= config.bin %> <%= command.id %> --name partnercentral --template-name 'Partner Central' --url-path-prefix partners","Create a site using the 'Build Your Own (LWR)' template with authentication type of UNAUTHENTICATED:\n<%= config.bin %> <%= command.id %> --name lwrsite --template-name 'Build Your Own (LWR)' --url-path-prefix lwrsite templateParams.AuthenticationType=UNAUTHENTICATED"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"name":{"name":"name","type":"option","char":"n","summary":"Name of the site to create.","required":true,"multiple":false},"template-name":{"name":"template-name","type":"option","char":"t","summary":"Template to use to create a site.","description":"An example of a template is Customer Service. Run the \"community template list\" command to see which templates are available in your org.","required":true,"multiple":false,"aliases":["templatename"]},"url-path-prefix":{"name":"url-path-prefix","type":"option","char":"p","summary":"URL to append to the domain created when Digital Experiences was enabled for this org.","description":"For example, if your domain name is https://MyDomainName.my.site.com and you create a customer site, enter 'customers' to create the unique URL https://MyDomainName.my.site.com/customers.","required":true,"multiple":false,"aliases":["urlpathprefix"]},"description":{"name":"description","type":"option","char":"d","summary":"Description of the site.","description":"The description displays in Digital Experiences - All Sites in Setup and helps with site identification.","multiple":false},"target-org":{"name":"target-org","type":"option","char":"o","summary":"Username or alias of the target org.","required":true,"multiple":false,"aliases":["targetusername","u"]},"loglevel":{"name":"loglevel","type":"option","hidden":true,"multiple":false,"deprecated":{"message":"The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."}},"api-version":{"name":"api-version","type":"option","description":"Override the api version used for api requests made by this command","multiple":false,"aliases":["apiversion"]}},"args":[],"validationPatterns":["name","urlPathPrefix","templateName","description","templateParams(\\.\\w+)+"],"hasDynamicHelp":true},"community:publish":{"id":"community:publish","summary":"Publish an Experience Builder site to make it live.","description":"Each time you publish it, you update the live site with the most recent updates. 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.\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.","strict":true,"pluginName":"@salesforce/plugin-community","pluginAlias":"@salesforce/plugin-community","pluginType":"core","aliases":["force:community:publish"],"examples":["Publish the Experience Builder site with name \"My Customer Site':\n<%= config.bin %> <%= command.id %> --name 'My Customer Site'"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"name":{"name":"name","type":"option","char":"n","summary":"Name of the Experience Builder site to publish.","required":true,"multiple":false},"target-org":{"name":"target-org","type":"option","char":"o","summary":"Username or alias of the target org.","required":true,"multiple":false,"aliases":["targetusername","u"]},"api-version":{"name":"api-version","type":"option","description":"Override the api version used for api requests made by this command","multiple":false,"aliases":["apiversion"]},"loglevel":{"name":"loglevel","type":"option","hidden":true,"multiple":false,"deprecated":{"message":"The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."}}},"args":[],"hasDynamicHelp":true},"community:list:template":{"id":"community:list:template","summary":"Retrieve the list of templates available in your org.","description":"See 'Which Experience Cloud Template Should I Use?' (https://help.salesforce.com/s/articleView?id=sf.siteforce_commtemp_intro.htm&type=5) in Salesforce Help for more information about the different template types available for Experience Cloud.","strict":true,"pluginName":"@salesforce/plugin-community","pluginAlias":"@salesforce/plugin-community","pluginType":"core","aliases":["force:community:template:list"],"examples":["Retrieve the template list from an org with alias my-scratch-org:\n<%= config.bin %> <%= command.id %> --target-org my-scratch-org"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"target-org":{"name":"target-org","type":"option","char":"o","summary":"Username or alias of the target org.","required":true,"multiple":false,"aliases":["targetusername","u"]},"api-version":{"name":"api-version","type":"option","description":"Override the api version used for api requests made by this command","multiple":false,"aliases":["apiversion"]},"loglevel":{"name":"loglevel","type":"option","hidden":true,"multiple":false,"deprecated":{"message":"The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."}}},"args":[],"hasDynamicHelp":true}}}
|
package/package.json
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
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": "2.0
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@oclif/core": "^1.23.0",
|
|
9
|
-
"@
|
|
9
|
+
"@oclif/parser": "^3.8.9",
|
|
10
10
|
"@salesforce/core": "^3.32.9",
|
|
11
|
+
"@salesforce/kit": "^1.8.0",
|
|
12
|
+
"@salesforce/sf-plugins-core": "^1.21.3",
|
|
11
13
|
"tslib": "^2"
|
|
12
14
|
},
|
|
13
15
|
"devDependencies": {
|
|
14
|
-
"@oclif/plugin-command-snapshot": "^3.2.
|
|
15
|
-
"@salesforce/cli-plugins-testkit": "^3.2.
|
|
16
|
+
"@oclif/plugin-command-snapshot": "^3.2.15",
|
|
17
|
+
"@salesforce/cli-plugins-testkit": "^3.2.15",
|
|
16
18
|
"@salesforce/dev-config": "^3.0.1",
|
|
17
19
|
"@salesforce/dev-scripts": "^3.1.0",
|
|
18
|
-
"@salesforce/plugin-command-reference": "^
|
|
20
|
+
"@salesforce/plugin-command-reference": "^2.2.8",
|
|
19
21
|
"@salesforce/prettier-config": "^0.0.2",
|
|
20
22
|
"@salesforce/ts-sinon": "1.4.2",
|
|
23
|
+
"@salesforce/ts-types": "^1.7.1",
|
|
21
24
|
"@swc/core": "^1.3.24",
|
|
22
|
-
"@typescript-eslint/eslint-plugin": "
|
|
23
|
-
"@typescript-eslint/parser": "^5.
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "5.44.0",
|
|
26
|
+
"@typescript-eslint/parser": "^5.47.1",
|
|
24
27
|
"chai": "^4.3.7",
|
|
25
28
|
"eslint": "^8.30.0",
|
|
26
29
|
"eslint-config-prettier": "^8.5.0",
|
|
@@ -30,11 +33,12 @@
|
|
|
30
33
|
"eslint-plugin-header": "^3.1.1",
|
|
31
34
|
"eslint-plugin-import": "^2.26.0",
|
|
32
35
|
"eslint-plugin-jsdoc": "^39.6.4",
|
|
36
|
+
"eslint-plugin-sf-plugin": "^1.3.1",
|
|
33
37
|
"husky": "^7.0.4",
|
|
34
38
|
"jsforce": "^2.0.0-beta.18",
|
|
35
39
|
"mocha": "^9.2.2",
|
|
36
40
|
"nyc": "^15.1.0",
|
|
37
|
-
"oclif": "^3.4.
|
|
41
|
+
"oclif": "^3.4.3",
|
|
38
42
|
"prettier": "^2.8.1",
|
|
39
43
|
"pretty-quick": "^3.1.3",
|
|
40
44
|
"shx": "0.3.4",
|
|
@@ -69,17 +73,12 @@
|
|
|
69
73
|
"@salesforce/plugin-command-reference"
|
|
70
74
|
],
|
|
71
75
|
"topics": {
|
|
72
|
-
"
|
|
73
|
-
"description": "
|
|
76
|
+
"community": {
|
|
77
|
+
"description": "create and publish an Experience Cloud site",
|
|
78
|
+
"longDescription": "Use the community commands to create and publish an Experience Cloud site, and view a list of available templates in you org.",
|
|
74
79
|
"subtopics": {
|
|
75
|
-
"
|
|
76
|
-
"description": "
|
|
77
|
-
"longDescription": "Use the community commands to create and publish an Experience Cloud site, and view a list of available templates in you org.",
|
|
78
|
-
"subtopics": {
|
|
79
|
-
"template": {
|
|
80
|
-
"description": "fetch available community templates"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
80
|
+
"list": {
|
|
81
|
+
"description": "list components in a community"
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
84
|
}
|
|
@@ -96,21 +95,22 @@
|
|
|
96
95
|
"format": "sf-format",
|
|
97
96
|
"lint": "sf-lint",
|
|
98
97
|
"postpack": "shx rm -f oclif.manifest.json",
|
|
99
|
-
"posttest": "yarn lint && yarn test:deprecation-policy && yarn test:command-reference",
|
|
98
|
+
"posttest": "yarn lint && yarn test:deprecation-policy && yarn test:command-reference && yarn test:json-schema",
|
|
100
99
|
"prepack": "sf-prepack",
|
|
101
100
|
"prepare": "sf-install",
|
|
102
101
|
"pretest": "sf-compile-test",
|
|
103
102
|
"test": "sf-test",
|
|
104
103
|
"test:command-reference": "./bin/dev commandreference:generate --erroronwarnings",
|
|
105
104
|
"test:deprecation-policy": "./bin/dev snapshot:compare",
|
|
106
|
-
"test:
|
|
105
|
+
"test:json-schema": "./bin/dev schema:compare",
|
|
106
|
+
"test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000",
|
|
107
107
|
"version": "oclif-dev readme"
|
|
108
108
|
},
|
|
109
109
|
"publishConfig": {
|
|
110
110
|
"access": "public"
|
|
111
111
|
},
|
|
112
112
|
"sfdx": {
|
|
113
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-community/2.0.
|
|
114
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-community/2.0.
|
|
113
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-community/2.1.0.crt",
|
|
114
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-community/2.1.0.sig"
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FlagsConfig, SfdxCommand } from '@salesforce/command';
|
|
2
|
-
import { JsonMap } from '@salesforce/ts-types';
|
|
3
|
-
import { CommunityCreateResponse } from '../../../shared/community/defs/CommunityCreateResponse';
|
|
4
|
-
/**
|
|
5
|
-
* A command to create a community.
|
|
6
|
-
* This is just an sfdx wrapper around the community create connect endpoint
|
|
7
|
-
*/
|
|
8
|
-
export declare class CommunityCreateCommand extends SfdxCommand {
|
|
9
|
-
static readonly requiresUsername = true;
|
|
10
|
-
static readonly varargs = true;
|
|
11
|
-
static readonly description: string;
|
|
12
|
-
static readonly examples: string[];
|
|
13
|
-
static readonly flagsConfig: FlagsConfig;
|
|
14
|
-
static readonly validationPatterns: string[];
|
|
15
|
-
run(): Promise<CommunityCreateResponse | Error>;
|
|
16
|
-
protected parseVarargs(args?: string[]): JsonMap;
|
|
17
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
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
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.CommunityCreateCommand = void 0;
|
|
10
|
-
const os = require("os");
|
|
11
|
-
const command_1 = require("@salesforce/command");
|
|
12
|
-
const core_1 = require("@salesforce/core");
|
|
13
|
-
const CommunityNameValueParser_1 = require("../../../shared/community/commands/CommunityNameValueParser");
|
|
14
|
-
const ConnectExecutor_1 = require("../../../shared/connect/services/ConnectExecutor");
|
|
15
|
-
const CommunityCreateResource_1 = require("../../../shared/community/connect/CommunityCreateResource");
|
|
16
|
-
core_1.Messages.importMessagesDirectory(__dirname);
|
|
17
|
-
const messages = core_1.Messages.loadMessages('@salesforce/plugin-community', 'create');
|
|
18
|
-
/**
|
|
19
|
-
* A command to create a community.
|
|
20
|
-
* This is just an sfdx wrapper around the community create connect endpoint
|
|
21
|
-
*/
|
|
22
|
-
class CommunityCreateCommand extends command_1.SfdxCommand {
|
|
23
|
-
async run() {
|
|
24
|
-
const createCommand = new CommunityCreateResource_1.CommunityCreateResource(this.flags, this.varargs, this.ux);
|
|
25
|
-
return new ConnectExecutor_1.ConnectExecutor(createCommand, this.org).callConnectApi();
|
|
26
|
-
}
|
|
27
|
-
parseVarargs(args) {
|
|
28
|
-
this.logger.debug(`parseVarargs([${args.join(', ')}])`);
|
|
29
|
-
// It never looks like args is ever undefined as long as varargs is turned on for the command...
|
|
30
|
-
// But since the signature says it's optional, we should probably gate this even though it's unnecessary right now.
|
|
31
|
-
if (args === undefined) {
|
|
32
|
-
return {};
|
|
33
|
-
}
|
|
34
|
-
const parser = new CommunityNameValueParser_1.CommunityNameValueParser(CommunityCreateCommand.validationPatterns);
|
|
35
|
-
const values = parser.parse(args);
|
|
36
|
-
this.logger.debug('parseVarargs result:' + JSON.stringify(values));
|
|
37
|
-
return values;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.CommunityCreateCommand = CommunityCreateCommand;
|
|
41
|
-
CommunityCreateCommand.requiresUsername = true;
|
|
42
|
-
CommunityCreateCommand.varargs = true;
|
|
43
|
-
CommunityCreateCommand.description = messages.getMessage('description');
|
|
44
|
-
CommunityCreateCommand.examples = messages.getMessage('examples').split(os.EOL);
|
|
45
|
-
CommunityCreateCommand.flagsConfig = {
|
|
46
|
-
name: command_1.flags.string({
|
|
47
|
-
char: 'n',
|
|
48
|
-
description: messages.getMessage('flags.name.description'),
|
|
49
|
-
longDescription: messages.getMessage('flags.name.longDescription'),
|
|
50
|
-
required: true,
|
|
51
|
-
}),
|
|
52
|
-
templatename: command_1.flags.string({
|
|
53
|
-
char: 't',
|
|
54
|
-
description: messages.getMessage('flags.templateName.description'),
|
|
55
|
-
longDescription: messages.getMessage('flags.templateName.longDescription'),
|
|
56
|
-
required: true,
|
|
57
|
-
}),
|
|
58
|
-
urlpathprefix: command_1.flags.string({
|
|
59
|
-
char: 'p',
|
|
60
|
-
description: messages.getMessage('flags.urlPathPrefix.description'),
|
|
61
|
-
longDescription: messages.getMessage('flags.urlPathPrefix.longDescription'),
|
|
62
|
-
required: true,
|
|
63
|
-
}),
|
|
64
|
-
description: command_1.flags.string({
|
|
65
|
-
char: 'd',
|
|
66
|
-
description: messages.getMessage('flags.description.description'),
|
|
67
|
-
longDescription: messages.getMessage('flags.description.longDescription'),
|
|
68
|
-
}),
|
|
69
|
-
};
|
|
70
|
-
CommunityCreateCommand.validationPatterns = [
|
|
71
|
-
// Exact matches
|
|
72
|
-
'name',
|
|
73
|
-
'urlPathPrefix',
|
|
74
|
-
'templateName',
|
|
75
|
-
'description',
|
|
76
|
-
// templateParams.*, but must be only word characters (e.g. no spaces, special chars)
|
|
77
|
-
'templateParams(\\.\\w+)+',
|
|
78
|
-
];
|
|
79
|
-
//# sourceMappingURL=create.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,sBAAuB,SAAQ,qBAAW;IA0C9C,KAAK,CAAC,GAAG;QACd,MAAM,aAAa,GAAG,IAAI,iDAAuB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;QACrF,OAAO,IAAI,iCAAe,CAAC,aAAa,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,cAAc,EAAE,CAAC;IACvE,CAAC;IAES,YAAY,CAAC,IAAe;QACpC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,iBAAiB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAExD,gGAAgG;QAChG,mHAAmH;QACnH,IAAI,IAAI,KAAK,SAAS,EAAE;YACtB,OAAO,EAAE,CAAC;SACX;QAED,MAAM,MAAM,GAAG,IAAI,mDAAwB,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,CAAC;QACvF,MAAM,MAAM,GAAY,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAE3C,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QACnE,OAAO,MAAM,CAAC;IAChB,CAAC;;AA7DH,wDA8DC;AA7DwB,uCAAgB,GAAG,IAAI,CAAC;AACxB,8BAAO,GAAG,IAAI,CAAC;AACf,kCAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,+BAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AACzD,kCAAW,GAAgB;IAChD,IAAI,EAAE,eAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;QAC1D,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,4BAA4B,CAAC;QAClE,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,YAAY,EAAE,eAAK,CAAC,MAAM,CAAC;QACzB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,gCAAgC,CAAC;QAClE,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,oCAAoC,CAAC;QAC1E,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,aAAa,EAAE,eAAK,CAAC,MAAM,CAAC;QAC1B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,iCAAiC,CAAC;QACnE,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,qCAAqC,CAAC;QAC3E,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,WAAW,EAAE,eAAK,CAAC,MAAM,CAAC;QACxB,IAAI,EAAE,GAAG;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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FlagsConfig, SfdxCommand } from '@salesforce/command';
|
|
2
|
-
import { CommunityPublishResponse } from '../../../shared/community/defs/CommunityPublishResponse';
|
|
3
|
-
/**
|
|
4
|
-
* A command to publish a community. This is just an sfdx wrapper around
|
|
5
|
-
* the community publish connect endpoint
|
|
6
|
-
*/
|
|
7
|
-
export declare class CommunityPublishCommand extends SfdxCommand {
|
|
8
|
-
static readonly requiresUsername = true;
|
|
9
|
-
static readonly description: string;
|
|
10
|
-
static readonly examples: string[];
|
|
11
|
-
static readonly flagsConfig: FlagsConfig;
|
|
12
|
-
run(): Promise<CommunityPublishResponse | Error>;
|
|
13
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.CommunityPublishCommand = void 0;
|
|
10
|
-
const os = require("os");
|
|
11
|
-
const command_1 = require("@salesforce/command");
|
|
12
|
-
const core_1 = require("@salesforce/core");
|
|
13
|
-
const CommunityPublishResource_1 = require("../../../shared/community/connect/CommunityPublishResource");
|
|
14
|
-
const ConnectExecutor_1 = require("../../../shared/connect/services/ConnectExecutor");
|
|
15
|
-
core_1.Messages.importMessagesDirectory(__dirname);
|
|
16
|
-
const messages = core_1.Messages.loadMessages('@salesforce/plugin-community', 'publish');
|
|
17
|
-
/**
|
|
18
|
-
* A command to publish a community. This is just an sfdx wrapper around
|
|
19
|
-
* the community publish connect endpoint
|
|
20
|
-
*/
|
|
21
|
-
class CommunityPublishCommand extends command_1.SfdxCommand {
|
|
22
|
-
async run() {
|
|
23
|
-
const publishCommand = new CommunityPublishResource_1.CommunityPublishResource(this.flags, this.org, this.ux);
|
|
24
|
-
return new ConnectExecutor_1.ConnectExecutor(publishCommand, this.org).callConnectApi();
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.CommunityPublishCommand = CommunityPublishCommand;
|
|
28
|
-
CommunityPublishCommand.requiresUsername = true;
|
|
29
|
-
CommunityPublishCommand.description = messages.getMessage('description');
|
|
30
|
-
CommunityPublishCommand.examples = messages.getMessage('examples').split(os.EOL);
|
|
31
|
-
CommunityPublishCommand.flagsConfig = {
|
|
32
|
-
name: command_1.flags.string({
|
|
33
|
-
char: 'n',
|
|
34
|
-
description: messages.getMessage('flags.name.description'),
|
|
35
|
-
longDescription: messages.getMessage('flags.name.longDescription'),
|
|
36
|
-
required: true,
|
|
37
|
-
}),
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=publish.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../src/commands/force/community/publish.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AACzB,iDAAsE;AACtE,2CAA4C;AAC5C,yGAAsG;AACtG,sFAAmF;AAGnF,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,SAAS,CAAC,CAAC;AAElF;;;GAGG;AACH,MAAa,uBAAwB,SAAQ,qBAAW;IAa/C,KAAK,CAAC,GAAG;QACd,MAAM,cAAc,GAAG,IAAI,mDAAwB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;QACnF,OAAO,IAAI,iCAAe,CAAC,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,cAAc,EAAE,CAAC;IACxE,CAAC;;AAhBH,0DAiBC;AAhBwB,wCAAgB,GAAG,IAAI,CAAC;AACxB,mCAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,gCAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AACzD,mCAAW,GAAgB;IAChD,IAAI,EAAE,eAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;QAC1D,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,4BAA4B,CAAC;QAClE,QAAQ,EAAE,IAAI;KACf,CAAC;CACH,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SfdxCommand } from '@salesforce/command';
|
|
2
|
-
import { CommunityTemplatesListResponse } from '../../../../shared/community/defs/CommunityTemplatesListResponse';
|
|
3
|
-
/**
|
|
4
|
-
* A command to fetch available community templates a community. This is just an sfdx wrapper around
|
|
5
|
-
* the get available community templates connect endpoint
|
|
6
|
-
*/
|
|
7
|
-
export declare class CommunityListTemplatesCommand extends SfdxCommand {
|
|
8
|
-
static readonly requiresUsername = true;
|
|
9
|
-
static readonly description: string;
|
|
10
|
-
static readonly examples: string[];
|
|
11
|
-
run(): Promise<CommunityTemplatesListResponse | Error>;
|
|
12
|
-
}
|