@salesforce/plugin-community 3.0.28 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +177 -2
- package/lib/commands/community/create.js.map +1 -1
- package/lib/commands/community/list/template.js.map +1 -1
- package/lib/commands/community/publish.js.map +1 -1
- package/lib/shared/community/connect/CommunityCreateResource.d.ts +1 -1
- package/lib/shared/community/connect/CommunityCreateResource.js +1 -1
- package/lib/shared/community/connect/CommunityCreateResource.js.map +1 -1
- package/lib/shared/community/connect/CommunityPublishResource.d.ts +1 -1
- package/lib/shared/community/connect/CommunityPublishResource.js.map +1 -1
- package/lib/shared/community/connect/CommunityTemplatesResource.d.ts +1 -1
- package/lib/shared/community/service/CommunitiesServices.d.ts +1 -1
- package/lib/shared/connect/services/ConnectExecutor.d.ts +1 -1
- package/lib/shared/connect/services/ConnectExecutor.js.map +1 -1
- package/lib/shared/connect/services/ConnectResource.d.ts +3 -3
- package/npm-shrinkwrap.json +1130 -1289
- package/oclif.lock +321 -505
- package/oclif.manifest.json +25 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -72,8 +72,183 @@ sfdx plugins
|
|
|
72
72
|
|
|
73
73
|
<!-- commands -->
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
- [`sf community create`](#sf-community-create)
|
|
76
|
+
- [`sf community list template`](#sf-community-list-template)
|
|
77
|
+
- [`sf community publish`](#sf-community-publish)
|
|
76
78
|
|
|
77
|
-
|
|
79
|
+
## `sf community create`
|
|
80
|
+
|
|
81
|
+
Create an Experience Cloud site using a template.
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
USAGE
|
|
85
|
+
$ sf community create -n <value> -t <value> -o <value> [--json] [--flags-dir <value>] [-p <value>] [-d <value>]
|
|
86
|
+
[--api-version <value>]
|
|
87
|
+
|
|
88
|
+
FLAGS
|
|
89
|
+
-d, --description=<value> Description of the site.
|
|
90
|
+
-n, --name=<value> (required) Name of the site to create.
|
|
91
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
92
|
+
configuration variable is already set.
|
|
93
|
+
-p, --url-path-prefix=<value> URL to append to the domain created when Digital Experiences was enabled for this org.
|
|
94
|
+
-t, --template-name=<value> (required) Template to use to create a site.
|
|
95
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
96
|
+
|
|
97
|
+
GLOBAL FLAGS
|
|
98
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
99
|
+
--json Format output as json.
|
|
100
|
+
|
|
101
|
+
DESCRIPTION
|
|
102
|
+
Create an Experience Cloud site using a template.
|
|
103
|
+
|
|
104
|
+
Run the "community list template" command to see the templates available in your org. See 'Which Experience Cloud
|
|
105
|
+
Template Should I Use?' in Salesforce Help for more information about the different template types available.
|
|
106
|
+
(https://help.salesforce.com/s/articleView?id=sf.siteforce_commtemp_intro.htm&type=5)
|
|
107
|
+
|
|
108
|
+
When you create a site with the Build Your Own (LWR) template, you must also specify the AuthenticationType value
|
|
109
|
+
using the format templateParams.AuthenticationType=value, where value is AUTHENTICATED or
|
|
110
|
+
AUTHENTICATED_WITH_PUBLIC_ACCESS_ENABLED. Name and values are case-sensitive. See 'DigitalExperienceBundle' in the
|
|
111
|
+
Metadata API Developer Guide for more information.
|
|
112
|
+
(https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_digitalexperiencebundle.htm)
|
|
113
|
+
|
|
114
|
+
The site creation process is an async job that generates a jobId. To check the site creation status, query the
|
|
115
|
+
BackgroundOperation object and enter the jobId as the Id. See ‘BackgroundOperation’ in the Object Reference for the
|
|
116
|
+
Salesforce Platform for more information. (https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/obj
|
|
117
|
+
ect_reference/sforce_api_objects_backgroundoperation.htm)
|
|
118
|
+
|
|
119
|
+
If the job doesn’t complete within 10 minutes, it times out. You receive an error message and must restart the site
|
|
120
|
+
creation process. Completed jobs expire after 24 hours and are removed from the database.
|
|
121
|
+
|
|
122
|
+
When you run this command, it creates the site in preview status, which means that the site isn't yet live. After you
|
|
123
|
+
finish building your site, you can make it live.
|
|
124
|
+
|
|
125
|
+
If you have an Experience Builder site, publish the site using the "community publish" command to make it live.
|
|
126
|
+
|
|
127
|
+
If you have a Salesforce Tabs + Visualforce site, to activate the site and make it live, update the status field of
|
|
128
|
+
the Network type in Metadata API.
|
|
129
|
+
(https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_network.htm) Alternatively, in
|
|
130
|
+
Experience Workspaces, go to Administration | Settings, and click Activate.
|
|
131
|
+
|
|
132
|
+
For Experience Builder sites, activating the site sends a welcome email to site members.
|
|
133
|
+
|
|
134
|
+
ALIASES
|
|
135
|
+
$ sf force community create
|
|
136
|
+
|
|
137
|
+
EXAMPLES
|
|
138
|
+
Create an Experience Cloud site using template 'Customer Service' and URL path prefix 'customers':
|
|
139
|
+
|
|
140
|
+
$ sf community create --name 'My Customer Site' --template-name 'Customer Service' --url-path-prefix customers \
|
|
141
|
+
--description 'My customer site'
|
|
142
|
+
|
|
143
|
+
Create a site using 'Partner Central' template:
|
|
144
|
+
|
|
145
|
+
$ sf community create --name partnercentral --template-name 'Partner Central' --url-path-prefix partners
|
|
146
|
+
|
|
147
|
+
Create a site using the 'Build Your Own (LWR)' template with authentication type of UNAUTHENTICATED:
|
|
148
|
+
|
|
149
|
+
$ sf community create --name lwrsite --template-name 'Build Your Own (LWR)' --url-path-prefix lwrsite \
|
|
150
|
+
templateParams.AuthenticationType=UNAUTHENTICATED
|
|
151
|
+
|
|
152
|
+
FLAG DESCRIPTIONS
|
|
153
|
+
-d, --description=<value> Description of the site.
|
|
154
|
+
|
|
155
|
+
The description displays in Digital Experiences - All Sites in Setup and helps with site identification.
|
|
156
|
+
|
|
157
|
+
-p, --url-path-prefix=<value> URL to append to the domain created when Digital Experiences was enabled for this org.
|
|
158
|
+
|
|
159
|
+
For example, if your domain name is https://MyDomainName.my.site.com and you create a customer site, enter
|
|
160
|
+
'customers' to create the unique URL https://MyDomainName.my.site.com/customers.
|
|
161
|
+
|
|
162
|
+
-t, --template-name=<value> Template to use to create a site.
|
|
163
|
+
|
|
164
|
+
An example of a template is Customer Service. Run the "community template list" command to see which templates are
|
|
165
|
+
available in your org.
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
_See code: [src/commands/community/create.ts](https://github.com/salesforcecli/plugin-community/blob/3.2.0/src/commands/community/create.ts)_
|
|
169
|
+
|
|
170
|
+
## `sf community list template`
|
|
171
|
+
|
|
172
|
+
Retrieve the list of templates available in your org.
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
USAGE
|
|
176
|
+
$ sf community list template -o <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
|
177
|
+
|
|
178
|
+
FLAGS
|
|
179
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
180
|
+
configuration variable is already set.
|
|
181
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
182
|
+
|
|
183
|
+
GLOBAL FLAGS
|
|
184
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
185
|
+
--json Format output as json.
|
|
186
|
+
|
|
187
|
+
DESCRIPTION
|
|
188
|
+
Retrieve the list of templates available in your org.
|
|
189
|
+
|
|
190
|
+
See 'Which Experience Cloud Template Should I Use?'
|
|
191
|
+
(https://help.salesforce.com/s/articleView?id=sf.siteforce_commtemp_intro.htm&type=5) in Salesforce Help for more
|
|
192
|
+
information about the different template types available for Experience Cloud.
|
|
193
|
+
|
|
194
|
+
ALIASES
|
|
195
|
+
$ sf force community template list
|
|
196
|
+
|
|
197
|
+
EXAMPLES
|
|
198
|
+
Retrieve the template list from an org with alias my-scratch-org:
|
|
199
|
+
|
|
200
|
+
$ sf community list template --target-org my-scratch-org
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
_See code: [src/commands/community/list/template.ts](https://github.com/salesforcecli/plugin-community/blob/3.2.0/src/commands/community/list/template.ts)_
|
|
204
|
+
|
|
205
|
+
## `sf community publish`
|
|
206
|
+
|
|
207
|
+
Publish an Experience Builder site to make it live.
|
|
208
|
+
|
|
209
|
+
```
|
|
210
|
+
USAGE
|
|
211
|
+
$ sf community publish -n <value> -o <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
|
212
|
+
|
|
213
|
+
FLAGS
|
|
214
|
+
-n, --name=<value> (required) Name of the Experience Builder site to publish.
|
|
215
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
216
|
+
configuration variable is already set.
|
|
217
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
218
|
+
|
|
219
|
+
GLOBAL FLAGS
|
|
220
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
221
|
+
--json Format output as json.
|
|
222
|
+
|
|
223
|
+
DESCRIPTION
|
|
224
|
+
Publish an Experience Builder site to make it live.
|
|
225
|
+
|
|
226
|
+
Each time you publish a site, you update the live site with the most recent updates. When you publish an Experience
|
|
227
|
+
Builder site for the first time, you make the site's URL live and enable login access for site members.
|
|
228
|
+
|
|
229
|
+
In addition to publishing, you must activate a site to send a welcome email to all site members. Activation is also
|
|
230
|
+
required to set up SEO for Experience Builder sites. To activate a site, update the status field of the Network type
|
|
231
|
+
in Metadata API. (https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_network.htm)
|
|
232
|
+
Alternatively, in Experience Workspaces, go to Administration | Settings, and click Activate.
|
|
233
|
+
|
|
234
|
+
An email notification informs you when your changes are live on the published site. The site publish process is an
|
|
235
|
+
async job that generates a jobId. To check the site publish status manually, query the BackgroundOperation object and
|
|
236
|
+
enter the jobId as the Id. See ‘BackgroundOperation’ in the Object Reference for the Salesforce Platform for more
|
|
237
|
+
information. (https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_obje
|
|
238
|
+
cts_backgroundoperation.htm)
|
|
239
|
+
|
|
240
|
+
If the job doesn’t complete within 15 minutes, it times out. You receive an error message and must restart the site
|
|
241
|
+
publish process. Completed jobs expire after 24 hours and are removed from the database.
|
|
242
|
+
|
|
243
|
+
ALIASES
|
|
244
|
+
$ sf force community publish
|
|
245
|
+
|
|
246
|
+
EXAMPLES
|
|
247
|
+
Publish the Experience Builder site with name "My Customer Site':
|
|
248
|
+
|
|
249
|
+
$ sf community publish --name 'My Customer Site'
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
_See code: [src/commands/community/publish.ts](https://github.com/salesforcecli/plugin-community/blob/3.2.0/src/commands/community/publish.ts)_
|
|
78
253
|
|
|
79
254
|
<!-- commandsstop -->
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/community/create.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/community/create.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EACL,KAAK,EACL,QAAQ,EACR,iCAAiC,EACjC,+BAA+B,EAC/B,SAAS,EACT,YAAY,GACb,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AAGpG,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,QAAQ,CAAC,CAAC;AAEjF,MAAM,WAAW,GAAG,SAAS,CAAC;AAC9B,MAAM,QAAQ,GAAG,MAAM,CAAC;AACxB,MAAM,SAAS,GAAG,OAAO,CAAC;AAC1B,MAAM,UAAU,GAAG,QAAQ,CAAC;AAE5B;;;GAGG;AACH,MAAM,OAAO,sBAAuB,SAAQ,SAAkC;IACrE,MAAM,CAAU,g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QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC;QAC/D,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1D,CAAC;;AAGH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,IAAwC,EAAW,EAAE;IAClG,gCAAgC;IAChC,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACrF,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;QACnB,MAAM,IAAI,OAAO,CAAC,wBAAwB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,iBAAiB,EAAE;YACjF,oGAAoG;SACrG,CAAC,CAAC;IACL,CAAC;IACD,8BAA8B;IAC9B,MAAM,cAAc,GAAG,MAAM,CAAC,WAAW,CACvC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,CACxF,CAAC;IAEF,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/commands/community/list/template.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/commands/community/list/template.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EACL,QAAQ,EACR,iCAAiC,EACjC,+BAA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AC,CAAC;IACP,CAAC;IAEO,cAAc,CAAC,OAAuC;QAC5D,MAAM,OAAO,GAAG;YACd,YAAY,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE;YACzC,SAAS,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE;SACnC,CAAC;QACF,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC,CAAC;QAChE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACvC,IAAI,CAAC,GAAG,EAAE,CAAC;QACX,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;IACjF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../src/commands/community/publish.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../src/commands/community/publish.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EACL,KAAK,EACL,QAAQ,EACR,iCAAiC,EACjC,+BAA+B,EAC/B,SAAS,GACV,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4DAA4D,CAAC;AACtG,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AAGnF,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,SAAS,CAAC,CAAC;AAElF;;;GAGG;AACH,MAAM,OAAO,uBAAwB,SAAQ,SAAmC;IACvE,MAAM,CAAU,gBAAgB,GAAG,IAAI,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EAAE;YAC9B,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;YACxB,MAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;YAC5B,GAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;YACtB,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;SAC3B,CAAC;QACF,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC;QAC/D,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;IACjC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsonCollection } from '@salesforce/ts-types';
|
|
2
|
-
import type { HttpMethods } from 'jsforce';
|
|
2
|
+
import type { HttpMethods } from '@jsforce/jsforce-node';
|
|
3
3
|
import { CommunityCreateResponse } from '../defs/CommunityCreateResponse.js';
|
|
4
4
|
import { CommunityCreateParams } from '../defs/CommunityCreateParams.js';
|
|
5
5
|
import { ConnectResource } from '../../connect/services/ConnectResource.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the BSD 3-Clause license.
|
|
5
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
import { Messages } from '@salesforce/core';
|
|
7
|
+
import { Messages } from '@salesforce/core/messages';
|
|
8
8
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
9
9
|
const messages = Messages.loadMessages('@salesforce/plugin-community', 'create');
|
|
10
10
|
const NAME_KEY = 'name';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommunityCreateResource.js","sourceRoot":"","sources":["../../../../src/shared/community/connect/CommunityCreateResource.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"CommunityCreateResource.js","sourceRoot":"","sources":["../../../../src/shared/community/connect/CommunityC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,CAAC,OAAO,CAAC,WAAW;YACrC,cAAc,EAAE,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;SAC/C,CAAC;QAEF,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IACjD,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { JsonCollection } from '@salesforce/ts-types';
|
|
2
2
|
import { Org } from '@salesforce/core';
|
|
3
|
-
import type { HttpMethods } from 'jsforce';
|
|
3
|
+
import type { HttpMethods } from '@jsforce/jsforce-node';
|
|
4
4
|
import { CommunityPublishResponse } from '../defs/CommunityPublishResponse.js';
|
|
5
5
|
import { ConnectResource } from '../../connect/services/ConnectResource.js';
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommunityPublishResource.js","sourceRoot":"","sources":["../../../../src/shared/community/connect/CommunityPublishResource.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAG/B,OAAO,EAAE,QAAQ,EAAO,MAAM,kBAAkB,CAAC;AAIjD,OAAO,mBAAmB,MAAM,mCAAmC,CAAC;AAGpE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"CommunityPublishResource.js","sourceRoot":"","sources":["../../../../src/shared/community/connect/CommunityPublishResource.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAG/B,OAAO,EAAE,QAAQ,EAAO,MAAM,kBAAkB,CAAC;AAIjD,OAAO,mBAAmB,MAAM,mCAAmC,CAAC;AAGpE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,8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,IAAI,CAAC,EAAE,CAAC;IACtB,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpMethods } from 'jsforce';
|
|
1
|
+
import type { HttpMethods } from '@jsforce/jsforce-node';
|
|
2
2
|
import { ConnectResource } from '../../connect/services/ConnectResource.js';
|
|
3
3
|
import { CommunityTemplatesListResponse } from '../defs/CommunityTemplatesListResponse.js';
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Connection } from '@salesforce/core';
|
|
2
|
-
import type { HttpRequest } from 'jsforce';
|
|
2
|
+
import type { HttpRequest } from '@jsforce/jsforce-node';
|
|
3
3
|
import { ConnectResource } from './ConnectResource.js';
|
|
4
4
|
/**
|
|
5
5
|
* An executor which calls a connect api for the given org
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectExecutor.js","sourceRoot":"","sources":["../../../../src/shared/connect/services/ConnectExecutor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"ConnectExecutor.js","sourceRoot":"","sources":["../../../../src/shared/connect/services/ConnectExecutor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAc,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAIjE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,kBAAkB,CAAC,CAAC;AAE3F;;GAEG;AACH,MAAM,OAAO,eAAe;IACC;IAA4C;IAAvE,YAA2B,cAAkC,EAAU,UAAsB;QAAlE,mBAAc,GAAd,cAAc,CAAoB;QAAU,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAEjG;;OAEG;IACI,KAAK,CAAC,cAAc;QACzB,OAAO,IAAI,CAAC,UAAU;aACnB,OAAO,CAAC,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;aACtC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,MAAwB,CAAC,CAAC;aAC7E,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,GAAY,CAAC,CAAC,CAAC;IACnE,CAAC;IAEM,KAAK,CAAC,gBAAgB;QAC3B,MAAM,UAAU,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,uBAAuB,EAAE,CAAC,CAAC;QAClF,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,gBAAgB,EAAE,CAAC;QACtD,IAAI,MAAM,KAAK,KAAK,EAAE,CAAC;YACrB,OAAO;gBACL,GAAG,EAAE,UAAU;gBACf,MAAM;gBACN,IAAI,EAAE,IAAI;aACX,CAAC;QACJ,CAAC;aAAM,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;YAC7B,OAAO;gBACL,GAAG,EAAE,UAAU;gBACf,MAAM;gBACN,IAAI,EAAE,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE;aAClD,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,uBAAuB,CAAC,CAAC;QACpG,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { JsonCollection } from '@salesforce/ts-types';
|
|
2
|
-
import type { HttpMethods } from 'jsforce';
|
|
2
|
+
import type { HttpMethods } from '@jsforce/jsforce-node';
|
|
3
3
|
/**
|
|
4
4
|
* Describe of a connect api resource
|
|
5
5
|
* T - type of return type for success/failure
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type ConnectResource<T> = {
|
|
8
8
|
/**
|
|
9
9
|
* Fetch the relative url of the connect end point
|
|
10
10
|
*/
|
|
@@ -30,4 +30,4 @@ export interface ConnectResource<T> {
|
|
|
30
30
|
* @param error - the corresponding error
|
|
31
31
|
*/
|
|
32
32
|
handleError(error: Error): T;
|
|
33
|
-
}
|
|
33
|
+
};
|