@salesforce/plugin-community 2.0.27 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/LICENSE.txt +1 -1
  2. package/lib/commands/community/create.d.ts +28 -0
  3. package/lib/commands/community/create.js +110 -0
  4. package/lib/commands/community/create.js.map +1 -0
  5. package/lib/commands/community/list/template.d.ts +19 -0
  6. package/lib/commands/community/list/template.js +53 -0
  7. package/lib/commands/community/list/template.js.map +1 -0
  8. package/lib/commands/community/publish.d.ts +20 -0
  9. package/lib/commands/community/publish.js +62 -0
  10. package/lib/commands/community/publish.js.map +1 -0
  11. package/lib/shared/community/commands/CommunityNameValueParser.d.ts +1 -1
  12. package/lib/shared/community/commands/CommunityNameValueParser.js +4 -6
  13. package/lib/shared/community/commands/CommunityNameValueParser.js.map +1 -1
  14. package/lib/shared/community/connect/CommunityCreateResource.d.ts +4 -7
  15. package/lib/shared/community/connect/CommunityCreateResource.js +11 -21
  16. package/lib/shared/community/connect/CommunityCreateResource.js.map +1 -1
  17. package/lib/shared/community/connect/CommunityPublishResource.d.ts +6 -6
  18. package/lib/shared/community/connect/CommunityPublishResource.js +8 -25
  19. package/lib/shared/community/connect/CommunityPublishResource.js.map +1 -1
  20. package/lib/shared/community/connect/CommunityTemplatesResource.d.ts +0 -3
  21. package/lib/shared/community/connect/CommunityTemplatesResource.js +7 -20
  22. package/lib/shared/community/connect/CommunityTemplatesResource.js.map +1 -1
  23. package/lib/shared/community/defs/CommunityTemplatesListResponse.d.ts +1 -1
  24. package/lib/shared/connect/services/ConnectExecutor.js +3 -5
  25. package/lib/shared/connect/services/ConnectExecutor.js.map +1 -1
  26. package/lib/shared/utils.d.ts +2 -0
  27. package/lib/shared/utils.js +13 -0
  28. package/lib/shared/utils.js.map +1 -0
  29. package/messages/connect-executor.md +3 -0
  30. package/messages/create.md +77 -0
  31. package/messages/publish.md +35 -0
  32. package/messages/template.list.md +21 -0
  33. package/oclif.manifest.json +1 -1
  34. package/package.json +21 -21
  35. package/lib/commands/force/community/create.d.ts +0 -17
  36. package/lib/commands/force/community/create.js +0 -79
  37. package/lib/commands/force/community/create.js.map +0 -1
  38. package/lib/commands/force/community/publish.d.ts +0 -13
  39. package/lib/commands/force/community/publish.js +0 -39
  40. package/lib/commands/force/community/publish.js.map +0 -1
  41. package/lib/commands/force/community/template/list.d.ts +0 -12
  42. package/lib/commands/force/community/template/list.js +0 -31
  43. package/lib/commands/force/community/template/list.js.map +0 -1
  44. package/messages/create.json +0 -34
  45. package/messages/publish.json +0 -17
  46. package/messages/template.list.json +0 -8
@@ -1,31 +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.CommunityListTemplatesCommand = void 0;
10
- const os = require("os");
11
- const command_1 = require("@salesforce/command");
12
- const core_1 = require("@salesforce/core");
13
- const CommunityTemplatesResource_1 = require("../../../../shared/community/connect/CommunityTemplatesResource");
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', 'template.list');
17
- /**
18
- * A command to fetch available community templates a community. This is just an sfdx wrapper around
19
- * the get available community templates connect endpoint
20
- */
21
- class CommunityListTemplatesCommand extends command_1.SfdxCommand {
22
- async run() {
23
- const listTemplateCommand = new CommunityTemplatesResource_1.CommunityTemplatesResource(this.ux);
24
- return new ConnectExecutor_1.ConnectExecutor(listTemplateCommand, this.org).callConnectApi();
25
- }
26
- }
27
- exports.CommunityListTemplatesCommand = CommunityListTemplatesCommand;
28
- CommunityListTemplatesCommand.requiresUsername = true;
29
- CommunityListTemplatesCommand.description = messages.getMessage('description');
30
- CommunityListTemplatesCommand.examples = messages.getMessage('examples').split(os.EOL);
31
- //# sourceMappingURL=list.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/commands/force/community/template/list.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AACzB,iDAAkD;AAClD,2CAA4C;AAC5C,gHAA6G;AAC7G,yFAAsF;AAGtF,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,eAAe,CAAC,CAAC;AAExF;;;GAGG;AACH,MAAa,6BAA8B,SAAQ,qBAAW;IAKrD,KAAK,CAAC,GAAG;QACd,MAAM,mBAAmB,GAAG,IAAI,uDAA0B,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACpE,OAAO,IAAI,iCAAe,CAAC,mBAAmB,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,cAAc,EAAE,CAAC;IAC7E,CAAC;;AARH,sEASC;AARwB,8CAAgB,GAAG,IAAI,CAAC;AACxB,yCAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,sCAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC"}
@@ -1,34 +0,0 @@
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'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
- "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"
7
- ],
8
- "flags": {
9
- "name": {
10
- "description": "name of the site to create",
11
- "longDescription": "The name of the site to create."
12
- },
13
- "templateName": {
14
- "description": "template to use to create a site",
15
- "longDescription": "The template to use to create the site, such as the Customer Service template. Run force:community:template:list to see which templates are available in your org."
16
- },
17
- "urlPathPrefix": {
18
- "description": "URL to append to the domain created when Digital Experiences was enabled for this org",
19
- "longDescription": "The URL to append to the domain that you created when you enabled Digital Experiences for this org. For example, if your domain name is https://MyDomainName.my.site.com and you’re creating a customer site, enter 'customers' to create the unique URL \nhttps://MyDomainName.my.site.com/customers."
20
- },
21
- "description": {
22
- "description": "description of the site",
23
- "longDescription": "The description of the site. The description displays in Digital Experiences - All Sites in Setup and helps with site identification."
24
- }
25
- },
26
- "response": {
27
- "action": "We’re creating your site. Run sfdx force:org:open -p _ui/networks/setup/SetupNetworksPage to view a list of your sites, and to confirm when this site is ready.",
28
- "styleHeader": "Create Site Result",
29
- "createMessage": "Your Site is being created."
30
- },
31
- "error": {
32
- "invalidVarargs": "The following varargs were invalid or unsupported: %s"
33
- }
34
- }
@@ -1,17 +0,0 @@
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'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
- "flags": {
5
- "name": {
6
- "description": "name of the Experience Builder site to publish",
7
- "longDescription": "The name of the Experience Builder site that you want to publish."
8
- }
9
- },
10
- "response": {
11
- "styleHeader": "Publish Site Result",
12
- "message": "We’re publishing your changes now. You’ll receive an email confirmation when your changes are live."
13
- },
14
- "error": {
15
- "communityNotExists": "The %s site doesn't exist. Verify the site name and try publishing it again."
16
- }
17
- }
@@ -1,8 +0,0 @@
1
- {
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"],
4
- "response": {
5
- "styledHeader": "Site list template result",
6
- "TotalField": "Total "
7
- }
8
- }