@salesforce/lds-adapters-platform-sharing 1.343.0 → 1.344.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/dist/es/es2018/platform-sharing.js +46 -2
- package/dist/es/es2018/types/src/generated/adapters/getGroupsForUser.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/resources/getSharingGroupsForUserByGroupTypeAndUserId.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/types/PublicGroupRepresentation.d.ts +10 -1
- package/package.json +3 -3
- package/sfdc/index.js +47 -3
- package/src/raml/api.raml +18 -0
- package/src/raml/luvio.raml +6 -0
|
@@ -91,12 +91,27 @@ function createLink(ref) {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
const VERSION$h = "
|
|
94
|
+
const VERSION$h = "0769937b310d74bd11d5782eebfc254a";
|
|
95
95
|
function validate$h(obj, path = 'PublicGroupRepresentation') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
98
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
99
99
|
}
|
|
100
|
+
const obj_createdById = obj.createdById;
|
|
101
|
+
const path_createdById = path + '.createdById';
|
|
102
|
+
if (typeof obj_createdById !== 'string') {
|
|
103
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdById + '" (at "' + path_createdById + '")');
|
|
104
|
+
}
|
|
105
|
+
const obj_createdByName = obj.createdByName;
|
|
106
|
+
const path_createdByName = path + '.createdByName';
|
|
107
|
+
if (typeof obj_createdByName !== 'string') {
|
|
108
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdByName + '" (at "' + path_createdByName + '")');
|
|
109
|
+
}
|
|
110
|
+
const obj_createdDate = obj.createdDate;
|
|
111
|
+
const path_createdDate = path + '.createdDate';
|
|
112
|
+
if (typeof obj_createdDate !== 'string') {
|
|
113
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
114
|
+
}
|
|
100
115
|
const obj_developerName = obj.developerName;
|
|
101
116
|
const path_developerName = path + '.developerName';
|
|
102
117
|
if (typeof obj_developerName !== 'string') {
|
|
@@ -126,6 +141,18 @@ const select$m = function PublicGroupRepresentationSelect() {
|
|
|
126
141
|
version: VERSION$h,
|
|
127
142
|
private: [],
|
|
128
143
|
selections: [
|
|
144
|
+
{
|
|
145
|
+
name: 'createdById',
|
|
146
|
+
kind: 'Scalar'
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'createdByName',
|
|
150
|
+
kind: 'Scalar'
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: 'createdDate',
|
|
154
|
+
kind: 'Scalar'
|
|
155
|
+
},
|
|
129
156
|
{
|
|
130
157
|
name: 'developerName',
|
|
131
158
|
kind: 'Scalar'
|
|
@@ -151,6 +178,21 @@ function equals$h(existing, incoming) {
|
|
|
151
178
|
if (!(existing_includeBosses === incoming_includeBosses)) {
|
|
152
179
|
return false;
|
|
153
180
|
}
|
|
181
|
+
const existing_createdById = existing.createdById;
|
|
182
|
+
const incoming_createdById = incoming.createdById;
|
|
183
|
+
if (!(existing_createdById === incoming_createdById)) {
|
|
184
|
+
return false;
|
|
185
|
+
}
|
|
186
|
+
const existing_createdByName = existing.createdByName;
|
|
187
|
+
const incoming_createdByName = incoming.createdByName;
|
|
188
|
+
if (!(existing_createdByName === incoming_createdByName)) {
|
|
189
|
+
return false;
|
|
190
|
+
}
|
|
191
|
+
const existing_createdDate = existing.createdDate;
|
|
192
|
+
const incoming_createdDate = incoming.createdDate;
|
|
193
|
+
if (!(existing_createdDate === incoming_createdDate)) {
|
|
194
|
+
return false;
|
|
195
|
+
}
|
|
154
196
|
const existing_developerName = existing.developerName;
|
|
155
197
|
const incoming_developerName = incoming.developerName;
|
|
156
198
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -349,7 +391,7 @@ function select$j(luvio, params) {
|
|
|
349
391
|
return select$k();
|
|
350
392
|
}
|
|
351
393
|
function keyBuilder$9(luvio, params) {
|
|
352
|
-
return keyPrefix + '::GroupCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'groupType:' + params.urlParams.groupType + ',' + 'userId:' + params.urlParams.userId + ')';
|
|
394
|
+
return keyPrefix + '::GroupCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'groupMembership:' + params.queryParams.groupMembership + ',' + 'searchTerm:' + params.queryParams.searchTerm + ',' + 'groupType:' + params.urlParams.groupType + ',' + 'userId:' + params.urlParams.userId + ')';
|
|
353
395
|
}
|
|
354
396
|
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
355
397
|
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
@@ -405,6 +447,8 @@ const getGroupsForUser_ConfigPropertyMetadata = [
|
|
|
405
447
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
406
448
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
407
449
|
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
450
|
+
generateParamConfigMetadata('groupMembership', false, 1 /* QueryParameter */, 0 /* String */),
|
|
451
|
+
generateParamConfigMetadata('searchTerm', false, 1 /* QueryParameter */, 0 /* String */),
|
|
408
452
|
];
|
|
409
453
|
const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getGroupsForUser_ConfigPropertyMetadata);
|
|
410
454
|
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(getGroupsForUser_ConfigPropertyMetadata);
|
|
@@ -12,6 +12,8 @@ export interface GetGroupsForUserConfig {
|
|
|
12
12
|
offset?: number;
|
|
13
13
|
sortBy?: string;
|
|
14
14
|
sortOrder?: string;
|
|
15
|
+
groupMembership?: string;
|
|
16
|
+
searchTerm?: string;
|
|
15
17
|
}
|
|
16
18
|
export declare const createResourceParams: (config: GetGroupsForUserConfig) => resources_getSharingGroupsForUserByGroupTypeAndUserId_ResourceRequestConfig;
|
|
17
19
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetGroupsForUserConfig): string;
|
|
@@ -10,6 +10,8 @@ export interface ResourceRequestConfig {
|
|
|
10
10
|
offset?: number;
|
|
11
11
|
sortBy?: string;
|
|
12
12
|
sortOrder?: string;
|
|
13
|
+
groupMembership?: string;
|
|
14
|
+
searchTerm?: string;
|
|
13
15
|
};
|
|
14
16
|
}
|
|
15
17
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "0769937b310d74bd11d5782eebfc254a";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: PublicGroupRepresentation, existing: PublicGroupRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PublicGroupRepresentationNormalized;
|
|
@@ -14,6 +14,12 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
14
|
* (none)
|
|
15
15
|
*/
|
|
16
16
|
export interface PublicGroupRepresentationNormalized {
|
|
17
|
+
/** The Id of user who created the Public Group. */
|
|
18
|
+
createdById: string;
|
|
19
|
+
/** The name of user who created the Public Group. */
|
|
20
|
+
createdByName: string;
|
|
21
|
+
/** The date when the public group was created. */
|
|
22
|
+
createdDate: string;
|
|
17
23
|
/** The API name of the Public Group. */
|
|
18
24
|
developerName: string;
|
|
19
25
|
/** The Id of the Public Group. */
|
|
@@ -30,6 +36,9 @@ export interface PublicGroupRepresentationNormalized {
|
|
|
30
36
|
* (none)
|
|
31
37
|
*/
|
|
32
38
|
export interface PublicGroupRepresentation {
|
|
39
|
+
createdById: string;
|
|
40
|
+
createdByName: string;
|
|
41
|
+
createdDate: string;
|
|
33
42
|
developerName: string;
|
|
34
43
|
groupId: string;
|
|
35
44
|
includeBosses: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-sharing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.344.0",
|
|
4
4
|
"description": "Sharing",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/platform-sharing.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.344.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.344.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -413,12 +413,27 @@ const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects
|
|
|
413
413
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
414
414
|
};
|
|
415
415
|
|
|
416
|
-
const VERSION$f = "
|
|
416
|
+
const VERSION$f = "0769937b310d74bd11d5782eebfc254a";
|
|
417
417
|
function validate$f(obj, path = 'PublicGroupRepresentation') {
|
|
418
418
|
const v_error = (() => {
|
|
419
419
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
420
420
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
421
421
|
}
|
|
422
|
+
const obj_createdById = obj.createdById;
|
|
423
|
+
const path_createdById = path + '.createdById';
|
|
424
|
+
if (typeof obj_createdById !== 'string') {
|
|
425
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdById + '" (at "' + path_createdById + '")');
|
|
426
|
+
}
|
|
427
|
+
const obj_createdByName = obj.createdByName;
|
|
428
|
+
const path_createdByName = path + '.createdByName';
|
|
429
|
+
if (typeof obj_createdByName !== 'string') {
|
|
430
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdByName + '" (at "' + path_createdByName + '")');
|
|
431
|
+
}
|
|
432
|
+
const obj_createdDate = obj.createdDate;
|
|
433
|
+
const path_createdDate = path + '.createdDate';
|
|
434
|
+
if (typeof obj_createdDate !== 'string') {
|
|
435
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
436
|
+
}
|
|
422
437
|
const obj_developerName = obj.developerName;
|
|
423
438
|
const path_developerName = path + '.developerName';
|
|
424
439
|
if (typeof obj_developerName !== 'string') {
|
|
@@ -448,6 +463,18 @@ const select$j = function PublicGroupRepresentationSelect() {
|
|
|
448
463
|
version: VERSION$f,
|
|
449
464
|
private: [],
|
|
450
465
|
selections: [
|
|
466
|
+
{
|
|
467
|
+
name: 'createdById',
|
|
468
|
+
kind: 'Scalar'
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
name: 'createdByName',
|
|
472
|
+
kind: 'Scalar'
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
name: 'createdDate',
|
|
476
|
+
kind: 'Scalar'
|
|
477
|
+
},
|
|
451
478
|
{
|
|
452
479
|
name: 'developerName',
|
|
453
480
|
kind: 'Scalar'
|
|
@@ -473,6 +500,21 @@ function equals$f(existing, incoming) {
|
|
|
473
500
|
if (!(existing_includeBosses === incoming_includeBosses)) {
|
|
474
501
|
return false;
|
|
475
502
|
}
|
|
503
|
+
const existing_createdById = existing.createdById;
|
|
504
|
+
const incoming_createdById = incoming.createdById;
|
|
505
|
+
if (!(existing_createdById === incoming_createdById)) {
|
|
506
|
+
return false;
|
|
507
|
+
}
|
|
508
|
+
const existing_createdByName = existing.createdByName;
|
|
509
|
+
const incoming_createdByName = incoming.createdByName;
|
|
510
|
+
if (!(existing_createdByName === incoming_createdByName)) {
|
|
511
|
+
return false;
|
|
512
|
+
}
|
|
513
|
+
const existing_createdDate = existing.createdDate;
|
|
514
|
+
const incoming_createdDate = incoming.createdDate;
|
|
515
|
+
if (!(existing_createdDate === incoming_createdDate)) {
|
|
516
|
+
return false;
|
|
517
|
+
}
|
|
476
518
|
const existing_developerName = existing.developerName;
|
|
477
519
|
const incoming_developerName = incoming.developerName;
|
|
478
520
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -671,7 +713,7 @@ function select$g(luvio, params) {
|
|
|
671
713
|
return select$h();
|
|
672
714
|
}
|
|
673
715
|
function keyBuilder$7(luvio, params) {
|
|
674
|
-
return keyPrefix + '::GroupCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'groupType:' + params.urlParams.groupType + ',' + 'userId:' + params.urlParams.userId + ')';
|
|
716
|
+
return keyPrefix + '::GroupCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'groupMembership:' + params.queryParams.groupMembership + ',' + 'searchTerm:' + params.queryParams.searchTerm + ',' + 'groupType:' + params.urlParams.groupType + ',' + 'userId:' + params.urlParams.userId + ')';
|
|
675
717
|
}
|
|
676
718
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
677
719
|
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
@@ -727,6 +769,8 @@ const getGroupsForUser_ConfigPropertyMetadata = [
|
|
|
727
769
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
728
770
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
729
771
|
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
772
|
+
generateParamConfigMetadata('groupMembership', false, 1 /* QueryParameter */, 0 /* String */),
|
|
773
|
+
generateParamConfigMetadata('searchTerm', false, 1 /* QueryParameter */, 0 /* String */),
|
|
730
774
|
];
|
|
731
775
|
const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getGroupsForUser_ConfigPropertyMetadata);
|
|
732
776
|
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(getGroupsForUser_ConfigPropertyMetadata);
|
|
@@ -3021,4 +3065,4 @@ withDefaultLuvio((luvio) => {
|
|
|
3021
3065
|
});
|
|
3022
3066
|
|
|
3023
3067
|
export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupMembershipDetails, getPublicGroupMembershipDetails_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative, getUserPermissions, getUserPermissions_imperative };
|
|
3024
|
-
// version: 1.
|
|
3068
|
+
// version: 1.344.0-455da7ef74
|
package/src/raml/api.raml
CHANGED
|
@@ -238,6 +238,15 @@ types:
|
|
|
238
238
|
name:
|
|
239
239
|
description: The name of the Public Group.
|
|
240
240
|
type: string
|
|
241
|
+
createdByName:
|
|
242
|
+
description: The name of user who created the Public Group.
|
|
243
|
+
type: string
|
|
244
|
+
createdById:
|
|
245
|
+
description: The Id of user who created the Public Group.
|
|
246
|
+
type: string
|
|
247
|
+
createdDate:
|
|
248
|
+
description: The date when the public group was created.
|
|
249
|
+
type: string
|
|
241
250
|
PublicGroupSummaryInputRepresentation:
|
|
242
251
|
description: Input representation for public group summary.
|
|
243
252
|
type: object
|
|
@@ -804,6 +813,15 @@ types:
|
|
|
804
813
|
sortOrder:
|
|
805
814
|
type: string
|
|
806
815
|
required: false
|
|
816
|
+
groupMembership:
|
|
817
|
+
type: string
|
|
818
|
+
required: false
|
|
819
|
+
enum:
|
|
820
|
+
- Present
|
|
821
|
+
- NotPresent
|
|
822
|
+
searchTerm:
|
|
823
|
+
type: string
|
|
824
|
+
required: false
|
|
807
825
|
uriParameters:
|
|
808
826
|
groupType:
|
|
809
827
|
type: string
|