@salesforce/plugin-community 2.0.3 → 2.0.5

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.
@@ -28,8 +28,5 @@ export declare class CommunityNameValueParser {
28
28
  */
29
29
  constructor(patterns?: string[]);
30
30
  parse(args: string[]): JsonMap;
31
- private parseKeyValuePairs;
32
31
  private validate;
33
- private buildJsonMapFromKeyValues;
34
- private setValue;
35
32
  }
@@ -41,19 +41,11 @@ class CommunityNameValueParser {
41
41
  this.patterns = patterns;
42
42
  }
43
43
  parse(args) {
44
- const mappings = this.parseKeyValuePairs(args);
44
+ const mappings = parseKeyValuePairs(args);
45
45
  this.validate(mappings);
46
- const values = this.buildJsonMapFromKeyValues(mappings);
46
+ const values = buildJsonMapFromKeyValues(mappings);
47
47
  return values;
48
48
  }
49
- parseKeyValuePairs(args) {
50
- const keyValues = args.reduce(function (collection, terms) {
51
- const [key, value] = terms.split(/=(.*)/);
52
- collection.push([key, value]);
53
- return collection;
54
- }, []);
55
- return keyValues;
56
- }
57
49
  validate(parsedArgs) {
58
50
  const pattern = new RegExp('^(' + this.patterns.join('|') + ')$');
59
51
  const errors = parsedArgs
@@ -61,25 +53,34 @@ class CommunityNameValueParser {
61
53
  .filter(([key, value]) => !pattern.test(key))
62
54
  .map(([key, value]) => `${key}="${value}"`);
63
55
  if (!(0, lodash_1.isEmpty)(errors)) {
56
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call
64
57
  throw messages.createError('error.invalidVarargs', errors);
65
58
  }
66
59
  }
67
- buildJsonMapFromKeyValues(keyValues) {
68
- let results = {};
69
- keyValues.forEach(([key, value]) => {
70
- results = this.setValue(key, value, results);
71
- });
72
- return results;
73
- }
74
- setValue(hyperKey, value, json = {}) {
75
- const keys = hyperKey.split('.');
76
- const lastKey = keys[keys.length - 1];
77
- const last = keys
78
- .slice(0, -1)
79
- .reduce((map, index) => (map[index] = map[index] === undefined ? {} : map[index]), json);
80
- last[lastKey] = value;
81
- return json;
82
- }
83
60
  }
84
61
  exports.CommunityNameValueParser = CommunityNameValueParser;
62
+ const parseKeyValuePairs = (args) => {
63
+ const keyValues = args.reduce((collection, terms) => {
64
+ const [key, value] = terms.split(/=(.*)/);
65
+ collection.push([key, value]);
66
+ return collection;
67
+ }, []);
68
+ return keyValues;
69
+ };
70
+ const setValue = (hyperKey, value, json = {}) => {
71
+ const keys = hyperKey.split('.');
72
+ const lastKey = keys[keys.length - 1];
73
+ const last = keys
74
+ .slice(0, -1)
75
+ .reduce((map, index) => (map[index] = map[index] === undefined ? {} : map[index]), json);
76
+ last[lastKey] = value;
77
+ return json;
78
+ };
79
+ const buildJsonMapFromKeyValues = (keyValues) => {
80
+ let results = {};
81
+ keyValues.forEach(([key, value]) => {
82
+ results = setValue(key, value, results);
83
+ });
84
+ return results;
85
+ };
85
86
  //# sourceMappingURL=CommunityNameValueParser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommunityNameValueParser.js","sourceRoot":"","sources":["../../../../src/shared/community/commands/CommunityNameValueParser.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,mCAAiC;AAEjC,2CAA4C;AAE5C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,QAAQ,CAAC,CAAC;AAEjF;;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;QAE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AC,GAAG,CAAC,CAAC;IAC3C,MAAM,OAAO,GAAW,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAE9C,MAAM,IAAI,GAAG,IAAI;SACd,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;SACZ,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,GAAG,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;IAC3F,IAAI,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;IAEtB,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,yBAAyB,GAAG,CAAC,SAAkC,EAAW,EAAE;IAChF,IAAI,OAAO,GAAY,EAAE,CAAC;IAC1B,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACjC,OAAO,GAAG,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IACH,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
@@ -11,6 +11,7 @@ const ACTION_KEY = 'action';
11
11
  * A connect api resource for creating a community
12
12
  */
13
13
  class CommunityCreateResource {
14
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
14
15
  constructor(flags, params, ux) {
15
16
  this.flags = flags;
16
17
  this.params = params;
@@ -31,13 +32,15 @@ class CommunityCreateResource {
31
32
  this.ux.table([response], columns);
32
33
  return response;
33
34
  }
35
+ // eslint-disable-next-line class-methods-use-this
34
36
  handleError(error) {
35
37
  throw error;
36
38
  }
37
- // eslint-disable-next-line @typescript-eslint/require-await
39
+ // eslint-disable-next-line @typescript-eslint/require-await, class-methods-use-this
38
40
  async fetchRelativeConnectUrl() {
39
41
  return '/connect/communities';
40
42
  }
43
+ // eslint-disable-next-line class-methods-use-this
41
44
  getRequestMethod() {
42
45
  return 'POST';
43
46
  }
@@ -1 +1 @@
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"}
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,8DAA8D;IAC9D,YAA2B,KAAuB,EAAU,MAAe,EAAU,EAAM;QAAhE,UAAK,GAAL,KAAK,CAAkB;QAAU,WAAM,GAAN,MAAM,CAAS;QAAU,OAAE,GAAF,EAAE,CA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AO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;CACF;AA/CD,0DA+CC"}
@@ -16,6 +16,7 @@ const messages = core_1.Messages.loadMessages('@salesforce/plugin-community', 'p
16
16
  * A connect api resource for publishing a community
17
17
  */
18
18
  class CommunityPublishResource {
19
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19
20
  constructor(flags, org, ux) {
20
21
  this.flags = flags;
21
22
  this.org = org;
@@ -24,10 +25,11 @@ class CommunityPublishResource {
24
25
  async fetchRelativeConnectUrl() {
25
26
  return `/connect/communities/${await this.fetchCommunityId()}/publish`;
26
27
  }
28
+ // eslint-disable-next-line class-methods-use-this
27
29
  getRequestMethod() {
28
30
  return 'POST';
29
31
  }
30
- // eslint-disable-next-line @typescript-eslint/require-await
32
+ // eslint-disable-next-line @typescript-eslint/require-await, class-methods-use-this
31
33
  async fetchPostParams() {
32
34
  return JSON.stringify({});
33
35
  }
@@ -50,12 +52,14 @@ class CommunityPublishResource {
50
52
  this.ux.table([response], columns);
51
53
  return response;
52
54
  }
55
+ // eslint-disable-next-line class-methods-use-this
53
56
  handleError(error) {
54
57
  throw error;
55
58
  }
56
59
  async fetchCommunityId() {
57
60
  this.info = await CommunitiesServices_1.CommunitiesServices.fetchCommunityInfoFromName(this.org, this.flags.name);
58
61
  if (!this.info) {
62
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call
59
63
  throw messages.createError('error.communityNotExists', [this.flags.name]);
60
64
  }
61
65
  return this.info.id;
@@ -1 +1 @@
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,C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;QACnC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEM,WAAW,CAAC,KAAY;QAC7B,MAAM,KAAK,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,gBAAgB;QAC3B,IAAI,CAAC,IAAI,GAAG,MAAM,yCAAmB,CAAC,0BAA0B,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5F,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACd,MAAM,QAAQ,CAAC,WAAW,CAAC,0BAA0B,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;SAC3E;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IACtB,CAAC;CACF;AAnDD,4DAmDC"}
1
+ {"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,8DAA8D;IAC9D,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;IAED,kDAAkD;IAC3C,gBAAgB;QACrB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,oFAAoF;IAC7E,KAAK,CAAC,eAAe;QAC1B,OAAO,IAAI,CAAC,SAAS,CA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CAAC,CAAC;SACrF;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IACtB,CAAC;CACF;AAvDD,4DAuDC"}
@@ -11,14 +11,15 @@ class CommunityTemplatesResource {
11
11
  constructor(ux) {
12
12
  this.ux = ux;
13
13
  }
14
- // eslint-disable-next-line @typescript-eslint/require-await
14
+ // eslint-disable-next-line @typescript-eslint/require-await, class-methods-use-this
15
15
  async fetchRelativeConnectUrl() {
16
16
  return '/connect/communities/templates';
17
17
  }
18
- // eslint-disable-next-line @typescript-eslint/require-await
18
+ // eslint-disable-next-line @typescript-eslint/require-await, class-methods-use-this
19
19
  async fetchPostParams() {
20
20
  return JSON.stringify({});
21
21
  }
22
+ // eslint-disable-next-line class-methods-use-this
22
23
  getRequestMethod() {
23
24
  return 'GET';
24
25
  }
@@ -33,6 +34,7 @@ class CommunityTemplatesResource {
33
34
  this.ux.log(messages.getMessage('response.TotalField'), result.total.toString());
34
35
  return result;
35
36
  }
37
+ // eslint-disable-next-line class-methods-use-this
36
38
  handleError(error) {
37
39
  throw error;
38
40
  }
@@ -1 +1 @@
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
+ {"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,oFAAoF;IAC7E,KAAK,CAAC,uBAAuB;QAClC,OAAO,gCAAgC,CAAC;IAC1C,CAAC;IACD,oFAAoF;IAC7E,KAAK,CAAC,eAAe;QAC1B,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAC5B,CAAC;IAED,kDAAkD;IAC3C,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;IAED,kDAAkD;IAC3C,WAAW,CAAC,KAAY;QAC7B,MAAM,KAAK,CAAC;IACd,CAAC;CACF;AAjCD,gEAiCC"}
@@ -1,10 +1,4 @@
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
- */
8
2
  Object.defineProperty(exports, "__esModule", { value: true });
9
3
  exports.ConnectExecutor = void 0;
10
4
  const core_1 = require("@salesforce/core");
@@ -28,10 +22,12 @@ class ConnectExecutor {
28
22
  }
29
23
  async fetchRequestInfo() {
30
24
  const connectUrl = encodeURI(await this.connectService.fetchRelativeConnectUrl());
25
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
31
26
  const method = this.connectService.getRequestMethod();
32
27
  if (method === 'GET') {
33
28
  return {
34
29
  url: connectUrl,
30
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
35
31
  method,
36
32
  body: null,
37
33
  };
@@ -39,11 +35,13 @@ class ConnectExecutor {
39
35
  else if (method === 'POST') {
40
36
  return {
41
37
  url: connectUrl,
38
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
42
39
  method,
43
40
  body: await this.connectService.fetchPostParams(),
44
41
  };
45
42
  }
46
43
  else {
44
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/restrict-template-expressions
47
45
  throw new core_1.SfError(`Unsupported method is given: ${method}`, 'UNSUPPORTED_OPERATION');
48
46
  }
49
47
  }
@@ -1 +1 @@
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
+ {"version":3,"file":"ConnectExecutor.js","sourceRoot":"","sources":["../../../../src/shared/connect/services/ConnectExecutor.ts"],"names":[],"mappings":";;;AAOA,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,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,mEAAmE;QACnE,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,gBAAgB,EAAE,CAAC;QACtD,IAAI,MAAM,KAAK,KAAK,EAAE;YACpB,OAAO;gBACL,GAAG,EAAE,UAAU;gBACf,mEAAmE;gBACnE,MAAM;gBACN,IAAI,EAAE,IAAI;aACX,CAAC;SACH;aAAM,IAAI,MAAM,KAAK,MAAM,EAAE;YAC5B,OAAO;gBACL,GAAG,EAAE,UAAU;gBACf,mEAAmE;gBACnE,MAAM;gBACN,IAAI,EAAE,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE;aAClD,CAAC;SACH;aAAM;YACL,+GAA+G;YAC/G,MAAM,IAAI,cAAO,CAAC,gCAAgC,MAAM,EAAE,EAAE,uBAAuB,CAAC,CAAC;SACtF;IACH,CAAC;CACF;AArCD,0CAqCC"}
@@ -1 +1 @@
1
- {"version":"2.0.3","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":[]}}}
1
+ {"version":"2.0.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 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,54 +1,47 @@
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.3",
4
+ "version": "2.0.5",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
8
8
  "@oclif/core": "^1.16.4",
9
- "@salesforce/command": "^5.1.2",
10
- "@salesforce/core": "^3.19.0",
9
+ "@salesforce/command": "^5.2.11",
10
+ "@salesforce/core": "^3.30.10",
11
11
  "tslib": "^2"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@oclif/dev-cli": "^1.26.10",
15
- "@oclif/plugin-command-snapshot": "^3.1.3",
16
- "@salesforce/cli-plugins-testkit": "^1.5.35",
15
+ "@oclif/plugin-command-snapshot": "^3.2.0",
16
+ "@salesforce/cli-plugins-testkit": "^3.0.3",
17
17
  "@salesforce/dev-config": "^3.0.1",
18
- "@salesforce/dev-scripts": "^2.0.2",
18
+ "@salesforce/dev-scripts": "^3.1.0",
19
19
  "@salesforce/plugin-command-reference": "^1.3.20",
20
20
  "@salesforce/prettier-config": "^0.0.2",
21
21
  "@salesforce/ts-sinon": "1.4.0",
22
- "@typescript-eslint/eslint-plugin": "^4.33.0",
23
- "@typescript-eslint/parser": "^4.33.0",
22
+ "@typescript-eslint/eslint-plugin": "^5.33.0",
23
+ "@typescript-eslint/parser": "^5.33.0",
24
24
  "chai": "^4.3.6",
25
- "cz-conventional-changelog": "^3.3.0",
26
- "eslint": "^7.32.0",
25
+ "eslint": "^8.21.0",
27
26
  "eslint-config-prettier": "^8.5.0",
28
- "eslint-config-salesforce": "^0.1.6",
27
+ "eslint-config-salesforce": "^1.1.0",
29
28
  "eslint-config-salesforce-license": "^0.1.6",
30
- "eslint-config-salesforce-typescript": "^0.2.8",
29
+ "eslint-config-salesforce-typescript": "^1.1.1",
31
30
  "eslint-plugin-header": "^3.1.1",
32
31
  "eslint-plugin-import": "^2.26.0",
33
- "eslint-plugin-jsdoc": "^35.5.1",
34
- "eslint-plugin-prettier": "^3.4.1",
32
+ "eslint-plugin-jsdoc": "^39.3.6",
35
33
  "husky": "^7.0.4",
36
- "jsforce": "2.0.0-beta.10",
37
- "lint-staged": "^11.2.6",
34
+ "jsforce": "^2.0.0-beta.18",
38
35
  "mocha": "^9.2.2",
39
36
  "nyc": "^15.1.0",
40
- "prettier": "^2.6.2",
37
+ "prettier": "^2.7.1",
41
38
  "pretty-quick": "^3.1.3",
42
39
  "shx": "0.3.4",
43
40
  "sinon": "^11.1.2",
44
41
  "ts-node": "^10.8.0",
45
- "typescript": "^4.8.3"
46
- },
47
- "config": {
48
- "commitizen": {
49
- "path": "cz-conventional-changelog"
50
- }
42
+ "typescript": "^4.8.4"
51
43
  },
44
+ "config": {},
52
45
  "engines": {
53
46
  "node": ">=14.0.0"
54
47
  },
@@ -116,7 +109,7 @@
116
109
  "access": "public"
117
110
  },
118
111
  "sfdx": {
119
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-community/2.0.3.crt",
120
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-community/2.0.3.sig"
112
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-community/2.0.5.crt",
113
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-community/2.0.5.sig"
121
114
  }
122
115
  }