@salesforce/lds-adapters-community-info 1.296.0 → 1.297.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.
|
@@ -81,7 +81,7 @@ function createLink(ref) {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
const TTL = 3600000;
|
|
84
|
-
const VERSION = "
|
|
84
|
+
const VERSION = "a4ffd78a9a641066e050c5a37a879702";
|
|
85
85
|
function validate(obj, path = 'CommunityRepresentation') {
|
|
86
86
|
const v_error = (() => {
|
|
87
87
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -191,6 +191,32 @@ function validate(obj, path = 'CommunityRepresentation') {
|
|
|
191
191
|
message += '\n' + obj_builderUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
192
192
|
return new TypeError(message);
|
|
193
193
|
}
|
|
194
|
+
const obj_contentSpaceId = obj.contentSpaceId;
|
|
195
|
+
const path_contentSpaceId = path + '.contentSpaceId';
|
|
196
|
+
let obj_contentSpaceId_union0 = null;
|
|
197
|
+
const obj_contentSpaceId_union0_error = (() => {
|
|
198
|
+
if (typeof obj_contentSpaceId !== 'string') {
|
|
199
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contentSpaceId + '" (at "' + path_contentSpaceId + '")');
|
|
200
|
+
}
|
|
201
|
+
})();
|
|
202
|
+
if (obj_contentSpaceId_union0_error != null) {
|
|
203
|
+
obj_contentSpaceId_union0 = obj_contentSpaceId_union0_error.message;
|
|
204
|
+
}
|
|
205
|
+
let obj_contentSpaceId_union1 = null;
|
|
206
|
+
const obj_contentSpaceId_union1_error = (() => {
|
|
207
|
+
if (obj_contentSpaceId !== null) {
|
|
208
|
+
return new TypeError('Expected "null" but received "' + typeof obj_contentSpaceId + '" (at "' + path_contentSpaceId + '")');
|
|
209
|
+
}
|
|
210
|
+
})();
|
|
211
|
+
if (obj_contentSpaceId_union1_error != null) {
|
|
212
|
+
obj_contentSpaceId_union1 = obj_contentSpaceId_union1_error.message;
|
|
213
|
+
}
|
|
214
|
+
if (obj_contentSpaceId_union0 && obj_contentSpaceId_union1) {
|
|
215
|
+
let message = 'Object doesn\'t match union (at "' + path_contentSpaceId + '")';
|
|
216
|
+
message += '\n' + obj_contentSpaceId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
217
|
+
message += '\n' + obj_contentSpaceId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
218
|
+
return new TypeError(message);
|
|
219
|
+
}
|
|
194
220
|
const obj_description = obj.description;
|
|
195
221
|
const path_description = path + '.description';
|
|
196
222
|
let obj_description_union0 = null;
|
|
@@ -723,6 +749,10 @@ const select$1 = function CommunityRepresentationSelect() {
|
|
|
723
749
|
name: 'builderUrl',
|
|
724
750
|
kind: 'Scalar'
|
|
725
751
|
},
|
|
752
|
+
{
|
|
753
|
+
name: 'contentSpaceId',
|
|
754
|
+
kind: 'Scalar'
|
|
755
|
+
},
|
|
726
756
|
{
|
|
727
757
|
name: 'description',
|
|
728
758
|
kind: 'Scalar'
|
|
@@ -823,6 +853,11 @@ function equals(existing, incoming) {
|
|
|
823
853
|
if (!(existing_builderUrl === incoming_builderUrl)) {
|
|
824
854
|
return false;
|
|
825
855
|
}
|
|
856
|
+
const existing_contentSpaceId = existing.contentSpaceId;
|
|
857
|
+
const incoming_contentSpaceId = incoming.contentSpaceId;
|
|
858
|
+
if (!(existing_contentSpaceId === incoming_contentSpaceId)) {
|
|
859
|
+
return false;
|
|
860
|
+
}
|
|
826
861
|
const existing_description = existing.description;
|
|
827
862
|
const incoming_description = incoming.description;
|
|
828
863
|
if (!(existing_description === incoming_description)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
2
|
export declare const TTL = 3600000;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "a4ffd78a9a641066e050c5a37a879702";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -32,6 +32,8 @@ export interface CommunityRepresentationNormalized {
|
|
|
32
32
|
builderBasedSnaEnabled: boolean | null;
|
|
33
33
|
/** Builder URL for the Community */
|
|
34
34
|
builderUrl: string | null;
|
|
35
|
+
/** 18-character content space Id of the managed content for Enhanced Site. */
|
|
36
|
+
contentSpaceId: string | null;
|
|
35
37
|
/** Community’s description. */
|
|
36
38
|
description: string | null;
|
|
37
39
|
/** Specifies whether guest members can see other members of the community or not. */
|
|
@@ -82,6 +84,7 @@ export interface CommunityRepresentation {
|
|
|
82
84
|
allowMembersToFlag: boolean | null;
|
|
83
85
|
builderBasedSnaEnabled: boolean | null;
|
|
84
86
|
builderUrl: string | null;
|
|
87
|
+
contentSpaceId: string | null;
|
|
85
88
|
description: string | null;
|
|
86
89
|
guestMemberVisibilityEnabled: boolean | null;
|
|
87
90
|
id: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-community-info",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.297.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Gets info about the community",
|
|
6
6
|
"main": "dist/es/es2018/community-info.js",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"test:unit": "jest"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@salesforce/lds-bindings": "^1.
|
|
47
|
+
"@salesforce/lds-bindings": "^1.297.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.297.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.297.0"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -91,7 +91,7 @@ function createLink(ref) {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
const TTL = 3600000;
|
|
94
|
-
const VERSION = "
|
|
94
|
+
const VERSION = "a4ffd78a9a641066e050c5a37a879702";
|
|
95
95
|
function validate(obj, path = 'CommunityRepresentation') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -201,6 +201,32 @@ function validate(obj, path = 'CommunityRepresentation') {
|
|
|
201
201
|
message += '\n' + obj_builderUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
202
202
|
return new TypeError(message);
|
|
203
203
|
}
|
|
204
|
+
const obj_contentSpaceId = obj.contentSpaceId;
|
|
205
|
+
const path_contentSpaceId = path + '.contentSpaceId';
|
|
206
|
+
let obj_contentSpaceId_union0 = null;
|
|
207
|
+
const obj_contentSpaceId_union0_error = (() => {
|
|
208
|
+
if (typeof obj_contentSpaceId !== 'string') {
|
|
209
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contentSpaceId + '" (at "' + path_contentSpaceId + '")');
|
|
210
|
+
}
|
|
211
|
+
})();
|
|
212
|
+
if (obj_contentSpaceId_union0_error != null) {
|
|
213
|
+
obj_contentSpaceId_union0 = obj_contentSpaceId_union0_error.message;
|
|
214
|
+
}
|
|
215
|
+
let obj_contentSpaceId_union1 = null;
|
|
216
|
+
const obj_contentSpaceId_union1_error = (() => {
|
|
217
|
+
if (obj_contentSpaceId !== null) {
|
|
218
|
+
return new TypeError('Expected "null" but received "' + typeof obj_contentSpaceId + '" (at "' + path_contentSpaceId + '")');
|
|
219
|
+
}
|
|
220
|
+
})();
|
|
221
|
+
if (obj_contentSpaceId_union1_error != null) {
|
|
222
|
+
obj_contentSpaceId_union1 = obj_contentSpaceId_union1_error.message;
|
|
223
|
+
}
|
|
224
|
+
if (obj_contentSpaceId_union0 && obj_contentSpaceId_union1) {
|
|
225
|
+
let message = 'Object doesn\'t match union (at "' + path_contentSpaceId + '")';
|
|
226
|
+
message += '\n' + obj_contentSpaceId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
227
|
+
message += '\n' + obj_contentSpaceId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
228
|
+
return new TypeError(message);
|
|
229
|
+
}
|
|
204
230
|
const obj_description = obj.description;
|
|
205
231
|
const path_description = path + '.description';
|
|
206
232
|
let obj_description_union0 = null;
|
|
@@ -733,6 +759,10 @@ const select$1 = function CommunityRepresentationSelect() {
|
|
|
733
759
|
name: 'builderUrl',
|
|
734
760
|
kind: 'Scalar'
|
|
735
761
|
},
|
|
762
|
+
{
|
|
763
|
+
name: 'contentSpaceId',
|
|
764
|
+
kind: 'Scalar'
|
|
765
|
+
},
|
|
736
766
|
{
|
|
737
767
|
name: 'description',
|
|
738
768
|
kind: 'Scalar'
|
|
@@ -833,6 +863,11 @@ function equals(existing, incoming) {
|
|
|
833
863
|
if (!(existing_builderUrl === incoming_builderUrl)) {
|
|
834
864
|
return false;
|
|
835
865
|
}
|
|
866
|
+
const existing_contentSpaceId = existing.contentSpaceId;
|
|
867
|
+
const incoming_contentSpaceId = incoming.contentSpaceId;
|
|
868
|
+
if (!(existing_contentSpaceId === incoming_contentSpaceId)) {
|
|
869
|
+
return false;
|
|
870
|
+
}
|
|
836
871
|
const existing_description = existing.description;
|
|
837
872
|
const incoming_description = incoming.description;
|
|
838
873
|
if (!(existing_description === incoming_description)) {
|
|
@@ -1130,4 +1165,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1130
1165
|
});
|
|
1131
1166
|
|
|
1132
1167
|
export { getCommunity, getCommunity_imperative, notifyCommunityUpdateAvailable };
|
|
1133
|
-
// version: 1.
|
|
1168
|
+
// version: 1.297.0-e0cfbd880
|
package/src/raml/api.raml
CHANGED
|
@@ -46,6 +46,10 @@ types:
|
|
|
46
46
|
builderUrl:
|
|
47
47
|
description: Builder URL for the Community
|
|
48
48
|
type: string | nil
|
|
49
|
+
contentSpaceId:
|
|
50
|
+
description: 18-character content space Id of the managed content for Enhanced
|
|
51
|
+
Site.
|
|
52
|
+
type: string | nil
|
|
49
53
|
description:
|
|
50
54
|
description: Community’s description.
|
|
51
55
|
type: string | nil
|