@salesforce/plugin-community 3.1.0 → 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 +3 -3
- 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/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/ConnectResource.d.ts +3 -3
- package/npm-shrinkwrap.json +689 -389
- package/oclif.lock +281 -129
- package/oclif.manifest.json +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -165,7 +165,7 @@ FLAG DESCRIPTIONS
|
|
|
165
165
|
available in your org.
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
-
_See code: [src/commands/community/create.ts](https://github.com/salesforcecli/plugin-community/blob/3.
|
|
168
|
+
_See code: [src/commands/community/create.ts](https://github.com/salesforcecli/plugin-community/blob/3.2.0/src/commands/community/create.ts)_
|
|
169
169
|
|
|
170
170
|
## `sf community list template`
|
|
171
171
|
|
|
@@ -200,7 +200,7 @@ EXAMPLES
|
|
|
200
200
|
$ sf community list template --target-org my-scratch-org
|
|
201
201
|
```
|
|
202
202
|
|
|
203
|
-
_See code: [src/commands/community/list/template.ts](https://github.com/salesforcecli/plugin-community/blob/3.
|
|
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
204
|
|
|
205
205
|
## `sf community publish`
|
|
206
206
|
|
|
@@ -249,6 +249,6 @@ EXAMPLES
|
|
|
249
249
|
$ sf community publish --name 'My Customer Site'
|
|
250
250
|
```
|
|
251
251
|
|
|
252
|
-
_See code: [src/commands/community/publish.ts](https://github.com/salesforcecli/plugin-community/blob/3.
|
|
252
|
+
_See code: [src/commands/community/publish.ts](https://github.com/salesforcecli/plugin-community/blob/3.2.0/src/commands/community/publish.ts)_
|
|
253
253
|
|
|
254
254
|
<!-- commandsstop -->
|
|
@@ -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;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CommunityCreateResource.js","sourceRoot":"","sources":["../../../../src/shared/community/connect/CommunityCreateResource.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAMrD,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D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AC;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,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,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
|
+
};
|