@salesforce/plugin-community 1.1.5 → 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.
Files changed (30) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +5 -5
  3. package/lib/commands/force/community/create.js +1 -1
  4. package/lib/commands/force/community/create.js.map +1 -1
  5. package/lib/shared/community/commands/CommunityNameValueParser.js +3 -1
  6. package/lib/shared/community/commands/CommunityNameValueParser.js.map +1 -1
  7. package/lib/shared/community/connect/CommunityCreateResource.d.ts +7 -2
  8. package/lib/shared/community/connect/CommunityCreateResource.js +5 -1
  9. package/lib/shared/community/connect/CommunityCreateResource.js.map +1 -1
  10. package/lib/shared/community/connect/CommunityPublishResource.d.ts +7 -2
  11. package/lib/shared/community/connect/CommunityPublishResource.js +11 -5
  12. package/lib/shared/community/connect/CommunityPublishResource.js.map +1 -1
  13. package/lib/shared/community/connect/CommunityTemplatesResource.d.ts +2 -1
  14. package/lib/shared/community/connect/CommunityTemplatesResource.js +4 -1
  15. package/lib/shared/community/connect/CommunityTemplatesResource.js.map +1 -1
  16. package/lib/shared/community/defs/CommunityPublishResponse.d.ts +1 -3
  17. package/lib/shared/community/defs/CommunityPublishResponse.js +6 -0
  18. package/lib/shared/community/defs/CommunityPublishResponse.js.map +1 -1
  19. package/lib/shared/community/service/CommunitiesServices.d.ts +1 -1
  20. package/lib/shared/community/service/CommunitiesServices.js +3 -3
  21. package/lib/shared/community/service/CommunitiesServices.js.map +1 -1
  22. package/lib/shared/connect/services/ConnectExecutor.d.ts +2 -2
  23. package/lib/shared/connect/services/ConnectExecutor.js +1 -1
  24. package/lib/shared/connect/services/ConnectExecutor.js.map +1 -1
  25. package/lib/shared/connect/services/ConnectResource.d.ts +3 -2
  26. package/messages/create.json +1 -1
  27. package/messages/publish.json +1 -1
  28. package/oclif.manifest.json +1 -1
  29. package/package.json +26 -25
  30. package/messages/messages.json +0 -22
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
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
+ ## [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
+
5
12
  ### [1.1.5](https://github.com/salesforcecli/plugin-community/compare/v1.1.4...v1.1.5) (2022-05-23)
6
13
 
7
14
  ### Bug Fixes
package/README.md CHANGED
@@ -118,7 +118,7 @@ DESCRIPTION
118
118
  AUTHENTICATED_WITH_PUBLIC_ACCESS. Name and values are case-sensitive. See 'ExperienceBundle' in the Metadata API
119
119
  Developer Guide for more information.
120
120
 
121
- When you execute this command, it creates the site in preview status, which means that it isnt yet live. After you
121
+ When you execute this command, it creates the site in preview status, which means that it isn't yet live. After you
122
122
  finish building your site, you can make it live.
123
123
 
124
124
  If you have an Experience Builder site, publish the site using the sfdx force:community:publish command to make it
@@ -138,7 +138,7 @@ EXAMPLES
138
138
  templateParams.AuthenticationType=UNAUTHENTICATED
139
139
  ```
140
140
 
141
- _See code: [src/commands/force/community/create.ts](https://github.com/salesforcecli/plugin-community/blob/v1.1.4/src/commands/force/community/create.ts)_
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)_
142
142
 
143
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]`
144
144
 
@@ -166,7 +166,7 @@ OPTIONS
166
166
 
167
167
  DESCRIPTION
168
168
  Each time you publish it, you update the live site with the most recent updates.
169
- When you publish an Experience Builder site for the first time, you make the sites URL live and enable login access
169
+ When you publish an Experience Builder site for the first time, you make the site's URL live and enable login access
170
170
  for site members.
171
171
 
172
172
  Additionally, to send a welcome email to all site members, you must activate the site. (Activation is also required to
@@ -183,7 +183,7 @@ EXAMPLE
183
183
  $ sfdx force:community:publish --name 'My Customer Site'
184
184
  ```
185
185
 
186
- _See code: [src/commands/force/community/publish.ts](https://github.com/salesforcecli/plugin-community/blob/v1.1.4/src/commands/force/community/publish.ts)_
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)_
187
187
 
188
188
  ## `sfdx force:community:template:list [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
189
189
 
@@ -214,6 +214,6 @@ EXAMPLE
214
214
  $ sfdx force:community:template:list
215
215
  ```
216
216
 
217
- _See code: [src/commands/force/community/template/list.ts](https://github.com/salesforcecli/plugin-community/blob/v1.1.4/src/commands/force/community/template/list.ts)_
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
218
 
219
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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T,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"}
@@ -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 core_1.SfdxError.create('@salesforce/plugin-community', 'create', 'error.invalidVarargs', errors);
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,2CAA6C;AAE7C;;GAEG;AACH,MAAa,wBAAwB;IACnC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,YAA2B,WAAqB,CAAC,IAAI,CAAC;QAA3B,aAAQ,GAAR,QAAQ,CAAmB;IAAG,CAAC;IAEnD,KAAK,CAAC,IAAc;QACzB,MAAM,QAAQ,GAA4B,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACxE,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAExB,MAAM,MAAM,GAAY,IAAI,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAC;QAEjE,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,kBAAkB,CAAC,IAAc;QACvC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,UAAU,EAAE,KAAK;YACvD,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,GAAa,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACpD,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;YAC9B,OAAO,UAAU,CAAC;QACpB,CAAC,EAAE,EAA6B,CAAC,CAAC;QAClC,OAAO,SAAS,CAAC;IACnB,CAAC;IAEO,QAAQ,CAAC,UAAmC;QAClD,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,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G,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QAC3F,IAAI,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;QAEtB,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AA3ED,4DA2EC"}
@@ -1,8 +1,10 @@
1
1
  import { OutputFlags } from '@oclif/parser';
2
2
  import { JsonCollection, AnyJson } from '@salesforce/ts-types';
3
3
  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): CommunityCreateResponse;
16
+ handleSuccess(result: JsonCollection & {
17
+ [NAME_KEY]?: string;
18
+ }): CommunityCreateResponse;
15
19
  handleError(error: Error): CommunityCreateResponse;
16
20
  fetchRelativeConnectUrl(): Promise<string>;
17
- getRequestMethod(): string;
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 = [NAME_KEY, MESSAGE_KEY, ACTION_KEY];
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;AAK5C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,QAAQ,CAAC,CAAC;AAEjF,MAAM,WAAW,GAAG,SAAS,CAAC;AAC9B,MAAM,QAAQ,GAAG,MAAM,CAAC;AACxB,MAAM,UAAU,GAAG,QAAQ,CAAC;AAC5B;;GAEG;AACH,MAAa,uBAAuB;IAClC,YAA2B,KAAuB,EAAU,MAAe,EAAU,EAAM;QAAhE,UAAK,GAAL,KAAK,CAAkB;QAAU,WAAM,GAAN,MAAM,CAAS;QAAU,OAAE,GAAF,EAAE,CAAI;IAAG,CAAC;IAExF,aAAa,CAAC,MAAsB;QACzC,MAAM,QAAQ,GAA4B;YACxC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;YACtD,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC;YACtB,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,iBAAiB,CAAC;SAC/C,CAAC;QACF,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;QACpD,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;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,IAAI;YACrB,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa;YACvC,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY;YACrC,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW;YACnC,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;SAC9C,CAAC;QAEF,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;CACF;AAxCD,0DAwCC"}
1
+ {"version":3,"file":"CommunityCreateResource.js","sourceRoot":"","sources":["../../../../src/shared/community/connect/CommunityCreateResource.ts"],"names":[],"mappings":";;;AASA,2CAA4C;AAM5C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,QAAQ,CAAC,CAAC;AAEjF,MAAM,WAAW,GAAG,SAAS,CAAC;AAC9B,MAAM,QAAQ,GAAG,MAAM,CAAC;AACxB,MAAM,UAAU,GAAG,QAAQ,CAAC;AAC5B;;GAEG;AACH,MAAa,uBAAuB;IAClC,YAA2B,KAAuB,EAAU,MAAe,EAAU,EAAM;QAAhE,UAAK,GAAL,KAAK,CAAkB;QAAU,WAAM,GAAN,MAAM,CAAS;QAAU,OAAE,GAAF,EAAE,CAAI;IAAG,CAAC;IAExF,aAAa,CAAC,MAAgD;QACnE,MAAM,QAAQ,GAA4B;YACxC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;YACtD,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC;YACtB,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,iBAAiB,CAAC;SAC/C,CAAC;QACF,MAAM,OAAO,GAAG;YACd,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;YAC9B,CAAC,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;YACpC,CAAC,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;SACnC,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;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(): string;
18
+ getRequestMethod(): HttpMethods;
18
19
  fetchPostParams(): Promise<string>;
19
- handleSuccess(result: JsonCollection): CommunityPublishResponse;
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['id'],
36
+ id: result.id,
37
37
  message: messages.getMessage('response.message'),
38
- name: result['name'],
38
+ name: result.name,
39
39
  status: this.info.status,
40
- url: new url_1.URL(result['url']),
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 core_1.SfdxError.create('@salesforce/plugin-community', 'publish', 'error.communityNotExists', [this.flags.name]);
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":["../../../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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,gBAAS,CAAC,MAAM,CAAC,8BAA8B,EAAE,SAAS,EAAE,0BAA0B,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;SAClH;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IACtB,CAAC;CACF;AA3CD,4DA2CC"}
1
+ {"version":3,"file":"CommunityPublishResource.js","sourceRoot":"","sources":["../../../../src/shared/community/connect/CommunityPublishResource.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,6BAA0B;AAI1B,2CAAiD;AAIjD,wEAAqE;AAGrE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,SAAS,CAAC,CAAC;AAElF;;GAEG;AAEH,MAAa,wBAAwB;IAGnC,YAA2B,KAAuB,EAAU,GAAQ,EAAU,EAAM;QAAzD,UAAK,GAAL,KAAK,CAAkB;QAAU,QAAG,GAAH,GAAG,CAAK;QAAU,OAAE,GAAF,EAAE,CAAI;IAAG,CAAC;IAEjF,KAAK,CAAC,uBAAuB;QAClC,OAAO,wBAAwB,MAAM,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC;IACzE,CAAC;IAEM,gBAAgB;QACrB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,4DAA4D;IACrD,KAA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,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(): string;
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 = ['templateName', 'publisher'];
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;AAI5C,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,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QAC9C,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;AA5BD,gEA4BC"}
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: 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 Promise.resolve(undefined);
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['Id'],
26
- status: record['Status'],
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":";;;AAUA;;GAEG;AACH,MAAa,mBAAmB;IAC9B;;;;;;;OAOG;IACI,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,GAAQ,EAAE,IAAY;QACnE,IAAI,CAAC,IAAI,EAAE;YACT,OAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;SACnC;QACD,MAAM,MAAM,GAAqB,MAAM,mBAAmB,CAAC,QAAQ,CACjE,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,IAAI,CAAC;gBAChB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;aACzB,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;AAjCD,kDAiCC"}
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<RequestInfo>;
15
+ fetchRequestInfo(): Promise<HttpRequest>;
16
16
  }
@@ -44,7 +44,7 @@ class ConnectExecutor {
44
44
  };
45
45
  }
46
46
  else {
47
- throw new core_1.SfdxError(`Unsupported method is given: ${method}`, 'UNSUPPORTED_OPERATION');
47
+ throw new core_1.SfError(`Unsupported method is given: ${method}`, 'UNSUPPORTED_OPERATION');
48
48
  }
49
49
  }
50
50
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ConnectExecutor.js","sourceRoot":"","sources":["../../../../src/shared/connect/services/ConnectExecutor.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAGH,2CAAkD;AAGlD;;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,MAAM,CAAC,CAAC;aAC3D,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1D,CAAC;IAEM,KAAK,CAAC,gBAAgB;QAC3B,MAAM,UAAU,GAAW,SAAS,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,uBAAuB,EAAE,CAAC,CAAC;QAC1F,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,gBAAS,CAAC,gCAAgC,MAAM,EAAE,EAAE,uBAAuB,CAAC,CAAC;SACxF;IACH,CAAC;CACF;AAjCD,0CAiCC"}
1
+ {"version":3,"file":"ConnectExecutor.js","sourceRoot":"","sources":["../../../../src/shared/connect/services/ConnectExecutor.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAGH,2CAAgD;AAIhD;;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,GAAG,CAAC,CAAC,CAAC;IAC1D,CAAC;IAEM,KAAK,CAAC,gBAAgB;QAC3B,MAAM,UAAU,GAAW,SAAS,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,uBAAuB,EAAE,CAAC,CAAC;QAC1F,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,gCAAgC,MAAM,EAAE,EAAE,uBAAuB,CAAC,CAAC;SACtF;IACH,CAAC;CACF;AAjCD,0CAiCC"}
@@ -1,4 +1,5 @@
1
1
  import { JsonCollection } from '@salesforce/ts-types';
2
+ import { HttpMethods } 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
- * 'GET' or 'POST'
13
+ * HttpMethods
13
14
  */
14
- getRequestMethod(): string;
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
@@ -1,5 +1,5 @@
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 isnt 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.",
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
4
  "$ sfdx force:community:create --name 'My Customer Site' --templatename 'Customer Service' --urlpathprefix customers --description 'My customer site'",
5
5
  "$ sfdx force:community:create -n partnercentral -t 'Partner Central' -p partners",
@@ -1,5 +1,5 @@
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 sites 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.",
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
3
  "examples": ["$ sfdx force:community:publish --name 'My Customer Site'"],
4
4
  "flags": {
5
5
  "name": {
@@ -1 +1 @@
1
- {"version":"1.1.5","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 isnt 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 sites 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":[]}}}
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": "1.1.5",
4
+ "version": "2.0.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
8
- "@oclif/config": "^1",
9
- "@salesforce/command": "^4.2.2",
10
- "@salesforce/core": "^2.35.1",
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": "^2.2.2",
16
- "@salesforce/cli-plugins-testkit": "^1.5.11",
17
- "@salesforce/dev-config": "^3.0.0",
18
- "@salesforce/dev-scripts": "^2.0.0",
19
- "@salesforce/plugin-command-reference": "^1.3.18",
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.31.0",
23
- "@typescript-eslint/parser": "^4.31.0",
24
- "chai": "^4.3.4",
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.3.0",
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.24.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
35
  "husky": "^7.0.4",
36
- "lint-staged": "^11.1.2",
37
- "mocha": "^9.1.3",
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.4.0",
40
- "pretty-quick": "^3.1.1",
40
+ "prettier": "^2.6.2",
41
+ "pretty-quick": "^3.1.3",
41
42
  "shx": "0.3.4",
42
43
  "sinon": "^11.1.2",
43
- "ts-node": "^10.2.1",
44
- "typescript": "^4.4.2"
44
+ "ts-node": "^10.8.0",
45
+ "typescript": "^4.7.2"
45
46
  },
46
47
  "config": {
47
48
  "commitizen": {
@@ -106,8 +107,8 @@
106
107
  "prepare": "sf-install",
107
108
  "pretest": "sf-compile-test",
108
109
  "test": "sf-test",
109
- "test:command-reference": "./bin/run commandreference:generate --erroronwarnings",
110
- "test:deprecation-policy": "./bin/run snapshot:compare",
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
  },
@@ -115,7 +116,7 @@
115
116
  "access": "public"
116
117
  },
117
118
  "sfdx": {
118
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-community/1.1.5.crt",
119
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-community/1.1.5.sig"
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"
120
121
  }
121
122
  }
@@ -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
- }