@salesforce/lds-adapters-platform-sharing 1.296.1 → 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.
- package/dist/es/es2018/platform-sharing.js +181 -29
- package/dist/es/es2018/types/src/generated/types/PublicGroupMembersInPublicGroupRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/PublicGroupMembershipDetailsRepresentation.d.ts +5 -1
- package/package.json +3 -3
- package/sfdc/index.js +202 -50
- package/src/raml/api.raml +30 -0
|
@@ -91,8 +91,8 @@ function createLink(ref) {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
const VERSION$
|
|
95
|
-
function validate$
|
|
94
|
+
const VERSION$g = "7d75e40a9fde9f60ae02b6dde36257ce";
|
|
95
|
+
function validate$g(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 + '")');
|
|
@@ -120,10 +120,10 @@ function validate$f(obj, path = 'PublicGroupRepresentation') {
|
|
|
120
120
|
})();
|
|
121
121
|
return v_error === undefined ? null : v_error;
|
|
122
122
|
}
|
|
123
|
-
const select$
|
|
123
|
+
const select$l = function PublicGroupRepresentationSelect() {
|
|
124
124
|
return {
|
|
125
125
|
kind: 'Fragment',
|
|
126
|
-
version: VERSION$
|
|
126
|
+
version: VERSION$g,
|
|
127
127
|
private: [],
|
|
128
128
|
selections: [
|
|
129
129
|
{
|
|
@@ -145,7 +145,7 @@ const select$k = function PublicGroupRepresentationSelect() {
|
|
|
145
145
|
]
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
|
-
function equals$
|
|
148
|
+
function equals$g(existing, incoming) {
|
|
149
149
|
const existing_includeBosses = existing.includeBosses;
|
|
150
150
|
const incoming_includeBosses = incoming.includeBosses;
|
|
151
151
|
if (!(existing_includeBosses === incoming_includeBosses)) {
|
|
@@ -169,8 +169,8 @@ function equals$f(existing, incoming) {
|
|
|
169
169
|
return true;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
const VERSION$
|
|
173
|
-
function validate$
|
|
172
|
+
const VERSION$f = "89ae3fce0ad09282e80bd77a9c483003";
|
|
173
|
+
function validate$f(obj, path = 'QueueRepresentation') {
|
|
174
174
|
const v_error = (() => {
|
|
175
175
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
176
176
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -193,10 +193,10 @@ function validate$e(obj, path = 'QueueRepresentation') {
|
|
|
193
193
|
})();
|
|
194
194
|
return v_error === undefined ? null : v_error;
|
|
195
195
|
}
|
|
196
|
-
const select$
|
|
196
|
+
const select$k = function QueueRepresentationSelect() {
|
|
197
197
|
return {
|
|
198
198
|
kind: 'Fragment',
|
|
199
|
-
version: VERSION$
|
|
199
|
+
version: VERSION$f,
|
|
200
200
|
private: [],
|
|
201
201
|
selections: [
|
|
202
202
|
{
|
|
@@ -214,7 +214,7 @@ const select$j = function QueueRepresentationSelect() {
|
|
|
214
214
|
]
|
|
215
215
|
};
|
|
216
216
|
};
|
|
217
|
-
function equals$
|
|
217
|
+
function equals$f(existing, incoming) {
|
|
218
218
|
const existing_developerName = existing.developerName;
|
|
219
219
|
const incoming_developerName = incoming.developerName;
|
|
220
220
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -234,8 +234,8 @@ function equals$e(existing, incoming) {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
const TTL$4 = 300;
|
|
237
|
-
const VERSION$
|
|
238
|
-
function validate$
|
|
237
|
+
const VERSION$e = "3659c4a4f46957a3a2b5cb2d2383180d";
|
|
238
|
+
function validate$e(obj, path = 'GroupCollectionRepresentation') {
|
|
239
239
|
const v_error = (() => {
|
|
240
240
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
241
241
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -248,7 +248,7 @@ function validate$d(obj, path = 'GroupCollectionRepresentation') {
|
|
|
248
248
|
for (let i = 0; i < obj_publicGroupRepresentations.length; i++) {
|
|
249
249
|
const obj_publicGroupRepresentations_item = obj_publicGroupRepresentations[i];
|
|
250
250
|
const path_publicGroupRepresentations_item = path_publicGroupRepresentations + '[' + i + ']';
|
|
251
|
-
const referencepath_publicGroupRepresentations_itemValidationError = validate$
|
|
251
|
+
const referencepath_publicGroupRepresentations_itemValidationError = validate$g(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
|
|
252
252
|
if (referencepath_publicGroupRepresentations_itemValidationError !== null) {
|
|
253
253
|
let message = 'Object doesn\'t match PublicGroupRepresentation (at "' + path_publicGroupRepresentations_item + '")\n';
|
|
254
254
|
message += referencepath_publicGroupRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -263,7 +263,7 @@ function validate$d(obj, path = 'GroupCollectionRepresentation') {
|
|
|
263
263
|
for (let i = 0; i < obj_queueRepresentations.length; i++) {
|
|
264
264
|
const obj_queueRepresentations_item = obj_queueRepresentations[i];
|
|
265
265
|
const path_queueRepresentations_item = path_queueRepresentations + '[' + i + ']';
|
|
266
|
-
const referencepath_queueRepresentations_itemValidationError = validate$
|
|
266
|
+
const referencepath_queueRepresentations_itemValidationError = validate$f(obj_queueRepresentations_item, path_queueRepresentations_item);
|
|
267
267
|
if (referencepath_queueRepresentations_itemValidationError !== null) {
|
|
268
268
|
let message = 'Object doesn\'t match QueueRepresentation (at "' + path_queueRepresentations_item + '")\n';
|
|
269
269
|
message += referencepath_queueRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -277,12 +277,12 @@ const RepresentationType$4 = 'GroupCollectionRepresentation';
|
|
|
277
277
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
278
278
|
return input;
|
|
279
279
|
}
|
|
280
|
-
const select$
|
|
281
|
-
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$
|
|
282
|
-
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$
|
|
280
|
+
const select$j = function GroupCollectionRepresentationSelect() {
|
|
281
|
+
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$l();
|
|
282
|
+
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$k();
|
|
283
283
|
return {
|
|
284
284
|
kind: 'Fragment',
|
|
285
|
-
version: VERSION$
|
|
285
|
+
version: VERSION$e,
|
|
286
286
|
private: [],
|
|
287
287
|
selections: [
|
|
288
288
|
{
|
|
@@ -300,11 +300,11 @@ const select$i = function GroupCollectionRepresentationSelect() {
|
|
|
300
300
|
]
|
|
301
301
|
};
|
|
302
302
|
};
|
|
303
|
-
function equals$
|
|
303
|
+
function equals$e(existing, incoming) {
|
|
304
304
|
const existing_publicGroupRepresentations = existing.publicGroupRepresentations;
|
|
305
305
|
const incoming_publicGroupRepresentations = incoming.publicGroupRepresentations;
|
|
306
306
|
const equals_publicGroupRepresentations_items = equalsArray(existing_publicGroupRepresentations, incoming_publicGroupRepresentations, (existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item) => {
|
|
307
|
-
if (!(equals$
|
|
307
|
+
if (!(equals$g(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
|
|
308
308
|
return false;
|
|
309
309
|
}
|
|
310
310
|
});
|
|
@@ -314,7 +314,7 @@ function equals$d(existing, incoming) {
|
|
|
314
314
|
const existing_queueRepresentations = existing.queueRepresentations;
|
|
315
315
|
const incoming_queueRepresentations = incoming.queueRepresentations;
|
|
316
316
|
const equals_queueRepresentations_items = equalsArray(existing_queueRepresentations, incoming_queueRepresentations, (existing_queueRepresentations_item, incoming_queueRepresentations_item) => {
|
|
317
|
-
if (!(equals$
|
|
317
|
+
if (!(equals$f(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
|
|
318
318
|
return false;
|
|
319
319
|
}
|
|
320
320
|
});
|
|
@@ -325,14 +325,14 @@ function equals$d(existing, incoming) {
|
|
|
325
325
|
}
|
|
326
326
|
const ingest$4 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
327
327
|
if (process.env.NODE_ENV !== 'production') {
|
|
328
|
-
const validateError = validate$
|
|
328
|
+
const validateError = validate$e(input);
|
|
329
329
|
if (validateError !== null) {
|
|
330
330
|
throw validateError;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
const key = path.fullPath;
|
|
334
334
|
const ttlToUse = TTL$4;
|
|
335
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "sharing", VERSION$
|
|
335
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "sharing", VERSION$e, RepresentationType$4, equals$e);
|
|
336
336
|
return createLink(key);
|
|
337
337
|
};
|
|
338
338
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -345,8 +345,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
function select$
|
|
349
|
-
return select$
|
|
348
|
+
function select$i(luvio, params) {
|
|
349
|
+
return select$j();
|
|
350
350
|
}
|
|
351
351
|
function keyBuilder$9(luvio, params) {
|
|
352
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 + ')';
|
|
@@ -360,7 +360,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
360
360
|
luvio.storeIngest(key, ingest$4, body);
|
|
361
361
|
const snapshot = luvio.storeLookup({
|
|
362
362
|
recordId: key,
|
|
363
|
-
node: select$
|
|
363
|
+
node: select$i(),
|
|
364
364
|
variables: {},
|
|
365
365
|
}, snapshotRefresh);
|
|
366
366
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -377,7 +377,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
377
377
|
const storeMetadataParams = {
|
|
378
378
|
ttl: TTL$4,
|
|
379
379
|
namespace: keyPrefix,
|
|
380
|
-
version: VERSION$
|
|
380
|
+
version: VERSION$e,
|
|
381
381
|
representationName: RepresentationType$4
|
|
382
382
|
};
|
|
383
383
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -432,7 +432,7 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
|
432
432
|
}
|
|
433
433
|
function adapterFragment$4(luvio, config) {
|
|
434
434
|
createResourceParams$4(config);
|
|
435
|
-
return select$
|
|
435
|
+
return select$i();
|
|
436
436
|
}
|
|
437
437
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
438
438
|
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
@@ -488,6 +488,126 @@ const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsFor
|
|
|
488
488
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
489
489
|
};
|
|
490
490
|
|
|
491
|
+
const VERSION$d = "10400ecb443c1cd1f8fa280e9f89ded8";
|
|
492
|
+
function validate$d(obj, path = 'PublicGroupMembersInPublicGroupRepresentation') {
|
|
493
|
+
const v_error = (() => {
|
|
494
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
495
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
496
|
+
}
|
|
497
|
+
const obj_createdBy = obj.createdBy;
|
|
498
|
+
const path_createdBy = path + '.createdBy';
|
|
499
|
+
if (typeof obj_createdBy !== 'string') {
|
|
500
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdBy + '" (at "' + path_createdBy + '")');
|
|
501
|
+
}
|
|
502
|
+
const obj_createdDate = obj.createdDate;
|
|
503
|
+
const path_createdDate = path + '.createdDate';
|
|
504
|
+
if (typeof obj_createdDate !== 'string') {
|
|
505
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
506
|
+
}
|
|
507
|
+
const obj_dataId = obj.dataId;
|
|
508
|
+
const path_dataId = path + '.dataId';
|
|
509
|
+
if (typeof obj_dataId !== 'string') {
|
|
510
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataId + '" (at "' + path_dataId + '")');
|
|
511
|
+
}
|
|
512
|
+
const obj_developerName = obj.developerName;
|
|
513
|
+
const path_developerName = path + '.developerName';
|
|
514
|
+
if (typeof obj_developerName !== 'string') {
|
|
515
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
516
|
+
}
|
|
517
|
+
const obj_groupName = obj.groupName;
|
|
518
|
+
const path_groupName = path + '.groupName';
|
|
519
|
+
if (typeof obj_groupName !== 'string') {
|
|
520
|
+
return new TypeError('Expected "string" but received "' + typeof obj_groupName + '" (at "' + path_groupName + '")');
|
|
521
|
+
}
|
|
522
|
+
const obj_groupType = obj.groupType;
|
|
523
|
+
const path_groupType = path + '.groupType';
|
|
524
|
+
if (typeof obj_groupType !== 'string') {
|
|
525
|
+
return new TypeError('Expected "string" but received "' + typeof obj_groupType + '" (at "' + path_groupType + '")');
|
|
526
|
+
}
|
|
527
|
+
const obj_includeBosses = obj.includeBosses;
|
|
528
|
+
const path_includeBosses = path + '.includeBosses';
|
|
529
|
+
if (typeof obj_includeBosses !== 'boolean') {
|
|
530
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_includeBosses + '" (at "' + path_includeBosses + '")');
|
|
531
|
+
}
|
|
532
|
+
})();
|
|
533
|
+
return v_error === undefined ? null : v_error;
|
|
534
|
+
}
|
|
535
|
+
const select$h = function PublicGroupMembersInPublicGroupRepresentationSelect() {
|
|
536
|
+
return {
|
|
537
|
+
kind: 'Fragment',
|
|
538
|
+
version: VERSION$d,
|
|
539
|
+
private: [],
|
|
540
|
+
selections: [
|
|
541
|
+
{
|
|
542
|
+
name: 'createdBy',
|
|
543
|
+
kind: 'Scalar'
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
name: 'createdDate',
|
|
547
|
+
kind: 'Scalar'
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
name: 'dataId',
|
|
551
|
+
kind: 'Scalar'
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
name: 'developerName',
|
|
555
|
+
kind: 'Scalar'
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
name: 'groupName',
|
|
559
|
+
kind: 'Scalar'
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
name: 'groupType',
|
|
563
|
+
kind: 'Scalar'
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
name: 'includeBosses',
|
|
567
|
+
kind: 'Scalar'
|
|
568
|
+
}
|
|
569
|
+
]
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
function equals$d(existing, incoming) {
|
|
573
|
+
const existing_includeBosses = existing.includeBosses;
|
|
574
|
+
const incoming_includeBosses = incoming.includeBosses;
|
|
575
|
+
if (!(existing_includeBosses === incoming_includeBosses)) {
|
|
576
|
+
return false;
|
|
577
|
+
}
|
|
578
|
+
const existing_createdBy = existing.createdBy;
|
|
579
|
+
const incoming_createdBy = incoming.createdBy;
|
|
580
|
+
if (!(existing_createdBy === incoming_createdBy)) {
|
|
581
|
+
return false;
|
|
582
|
+
}
|
|
583
|
+
const existing_createdDate = existing.createdDate;
|
|
584
|
+
const incoming_createdDate = incoming.createdDate;
|
|
585
|
+
if (!(existing_createdDate === incoming_createdDate)) {
|
|
586
|
+
return false;
|
|
587
|
+
}
|
|
588
|
+
const existing_dataId = existing.dataId;
|
|
589
|
+
const incoming_dataId = incoming.dataId;
|
|
590
|
+
if (!(existing_dataId === incoming_dataId)) {
|
|
591
|
+
return false;
|
|
592
|
+
}
|
|
593
|
+
const existing_developerName = existing.developerName;
|
|
594
|
+
const incoming_developerName = incoming.developerName;
|
|
595
|
+
if (!(existing_developerName === incoming_developerName)) {
|
|
596
|
+
return false;
|
|
597
|
+
}
|
|
598
|
+
const existing_groupName = existing.groupName;
|
|
599
|
+
const incoming_groupName = incoming.groupName;
|
|
600
|
+
if (!(existing_groupName === incoming_groupName)) {
|
|
601
|
+
return false;
|
|
602
|
+
}
|
|
603
|
+
const existing_groupType = existing.groupType;
|
|
604
|
+
const incoming_groupType = incoming.groupType;
|
|
605
|
+
if (!(existing_groupType === incoming_groupType)) {
|
|
606
|
+
return false;
|
|
607
|
+
}
|
|
608
|
+
return true;
|
|
609
|
+
}
|
|
610
|
+
|
|
491
611
|
const VERSION$c = "23a331717bb19992d3c37b818fc7008a";
|
|
492
612
|
function validate$c(obj, path = 'RolesInGroupRepresentation') {
|
|
493
613
|
const v_error = (() => {
|
|
@@ -743,12 +863,27 @@ function equals$b(existing, incoming) {
|
|
|
743
863
|
}
|
|
744
864
|
|
|
745
865
|
const TTL$3 = 300;
|
|
746
|
-
const VERSION$a = "
|
|
866
|
+
const VERSION$a = "6a8d0622a50d89a1e72e229d6a15956b";
|
|
747
867
|
function validate$a(obj, path = 'PublicGroupMembershipDetailsRepresentation') {
|
|
748
868
|
const v_error = (() => {
|
|
749
869
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
750
870
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
751
871
|
}
|
|
872
|
+
const obj_listPublicGroups = obj.listPublicGroups;
|
|
873
|
+
const path_listPublicGroups = path + '.listPublicGroups';
|
|
874
|
+
if (!ArrayIsArray(obj_listPublicGroups)) {
|
|
875
|
+
return new TypeError('Expected "array" but received "' + typeof obj_listPublicGroups + '" (at "' + path_listPublicGroups + '")');
|
|
876
|
+
}
|
|
877
|
+
for (let i = 0; i < obj_listPublicGroups.length; i++) {
|
|
878
|
+
const obj_listPublicGroups_item = obj_listPublicGroups[i];
|
|
879
|
+
const path_listPublicGroups_item = path_listPublicGroups + '[' + i + ']';
|
|
880
|
+
const referencepath_listPublicGroups_itemValidationError = validate$d(obj_listPublicGroups_item, path_listPublicGroups_item);
|
|
881
|
+
if (referencepath_listPublicGroups_itemValidationError !== null) {
|
|
882
|
+
let message = 'Object doesn\'t match PublicGroupMembersInPublicGroupRepresentation (at "' + path_listPublicGroups_item + '")\n';
|
|
883
|
+
message += referencepath_listPublicGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
884
|
+
return new TypeError(message);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
752
887
|
const obj_listRoles = obj.listRoles;
|
|
753
888
|
const path_listRoles = path + '.listRoles';
|
|
754
889
|
if (!ArrayIsArray(obj_listRoles)) {
|
|
@@ -817,6 +952,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
817
952
|
return input;
|
|
818
953
|
}
|
|
819
954
|
const select$e = function PublicGroupMembershipDetailsRepresentationSelect() {
|
|
955
|
+
const { selections: PublicGroupMembersInPublicGroupRepresentation__selections, opaque: PublicGroupMembersInPublicGroupRepresentation__opaque, } = select$h();
|
|
820
956
|
const { selections: RolesInGroupRepresentation__selections, opaque: RolesInGroupRepresentation__opaque, } = select$g();
|
|
821
957
|
const { selections: UserMembersInPublicGroupRepresentation__selections, opaque: UserMembersInPublicGroupRepresentation__opaque, } = select$f();
|
|
822
958
|
return {
|
|
@@ -824,6 +960,12 @@ const select$e = function PublicGroupMembershipDetailsRepresentationSelect() {
|
|
|
824
960
|
version: VERSION$a,
|
|
825
961
|
private: [],
|
|
826
962
|
selections: [
|
|
963
|
+
{
|
|
964
|
+
name: 'listPublicGroups',
|
|
965
|
+
kind: 'Object',
|
|
966
|
+
plural: true,
|
|
967
|
+
selections: PublicGroupMembersInPublicGroupRepresentation__selections
|
|
968
|
+
},
|
|
827
969
|
{
|
|
828
970
|
name: 'listRoles',
|
|
829
971
|
kind: 'Object',
|
|
@@ -852,6 +994,16 @@ const select$e = function PublicGroupMembershipDetailsRepresentationSelect() {
|
|
|
852
994
|
};
|
|
853
995
|
};
|
|
854
996
|
function equals$a(existing, incoming) {
|
|
997
|
+
const existing_listPublicGroups = existing.listPublicGroups;
|
|
998
|
+
const incoming_listPublicGroups = incoming.listPublicGroups;
|
|
999
|
+
const equals_listPublicGroups_items = equalsArray(existing_listPublicGroups, incoming_listPublicGroups, (existing_listPublicGroups_item, incoming_listPublicGroups_item) => {
|
|
1000
|
+
if (!(equals$d(existing_listPublicGroups_item, incoming_listPublicGroups_item))) {
|
|
1001
|
+
return false;
|
|
1002
|
+
}
|
|
1003
|
+
});
|
|
1004
|
+
if (equals_listPublicGroups_items === false) {
|
|
1005
|
+
return false;
|
|
1006
|
+
}
|
|
855
1007
|
const existing_listRoles = existing.listRoles;
|
|
856
1008
|
const incoming_listRoles = incoming.listRoles;
|
|
857
1009
|
const equals_listRoles_items = equalsArray(existing_listRoles, incoming_listRoles, (existing_listRoles_item, incoming_listRoles_item) => {
|
package/dist/es/es2018/types/src/generated/types/PublicGroupMembersInPublicGroupRepresentation.d.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
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 = "10400ecb443c1cd1f8fa280e9f89ded8";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: PublicGroupMembersInPublicGroupRepresentation, existing: PublicGroupMembersInPublicGroupRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PublicGroupMembersInPublicGroupRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: PublicGroupMembersInPublicGroupRepresentationNormalized, incoming: PublicGroupMembersInPublicGroupRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: PublicGroupMembersInPublicGroupRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Public Group Members in Public Group Representation
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface PublicGroupMembersInPublicGroupRepresentationNormalized {
|
|
17
|
+
/** Group Member Created By */
|
|
18
|
+
createdBy: string;
|
|
19
|
+
/** Group Member Created Date */
|
|
20
|
+
createdDate: string;
|
|
21
|
+
/** Group Member dataId */
|
|
22
|
+
dataId: string;
|
|
23
|
+
/** Group Member Developer Name */
|
|
24
|
+
developerName: string;
|
|
25
|
+
/** Group Member Label */
|
|
26
|
+
groupName: string;
|
|
27
|
+
/** Group Member Type */
|
|
28
|
+
groupType: string;
|
|
29
|
+
/** Group Member Grant Access Using Hierarchies */
|
|
30
|
+
includeBosses: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Public Group Members in Public Group Representation
|
|
34
|
+
*
|
|
35
|
+
* Keys:
|
|
36
|
+
* (none)
|
|
37
|
+
*/
|
|
38
|
+
export interface PublicGroupMembersInPublicGroupRepresentation {
|
|
39
|
+
createdBy: string;
|
|
40
|
+
createdDate: string;
|
|
41
|
+
dataId: string;
|
|
42
|
+
developerName: string;
|
|
43
|
+
groupName: string;
|
|
44
|
+
groupType: string;
|
|
45
|
+
includeBosses: boolean;
|
|
46
|
+
}
|
package/dist/es/es2018/types/src/generated/types/PublicGroupMembershipDetailsRepresentation.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { PublicGroupMembersInPublicGroupRepresentation as PublicGroupMembersInPublicGroupRepresentation_PublicGroupMembersInPublicGroupRepresentation } from './PublicGroupMembersInPublicGroupRepresentation';
|
|
1
2
|
import { RolesInGroupRepresentation as RolesInGroupRepresentation_RolesInGroupRepresentation } from './RolesInGroupRepresentation';
|
|
2
3
|
import { UserMembersInPublicGroupRepresentation as UserMembersInPublicGroupRepresentation_UserMembersInPublicGroupRepresentation } from './UserMembersInPublicGroupRepresentation';
|
|
3
4
|
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';
|
|
4
5
|
export declare const TTL = 300;
|
|
5
|
-
export declare const VERSION = "
|
|
6
|
+
export declare const VERSION = "6a8d0622a50d89a1e72e229d6a15956b";
|
|
6
7
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
8
|
export declare const RepresentationType: string;
|
|
8
9
|
export declare function normalize(input: PublicGroupMembershipDetailsRepresentation, existing: PublicGroupMembershipDetailsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PublicGroupMembershipDetailsRepresentationNormalized;
|
|
@@ -17,6 +18,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
17
18
|
* (none)
|
|
18
19
|
*/
|
|
19
20
|
export interface PublicGroupMembershipDetailsRepresentationNormalized {
|
|
21
|
+
/** Output response data for Public Groups */
|
|
22
|
+
listPublicGroups: Array<PublicGroupMembersInPublicGroupRepresentation_PublicGroupMembersInPublicGroupRepresentation>;
|
|
20
23
|
/** Output response data for Roles */
|
|
21
24
|
listRoles: Array<RolesInGroupRepresentation_RolesInGroupRepresentation>;
|
|
22
25
|
/** Output response data for Roles and Internal Subordinates */
|
|
@@ -33,6 +36,7 @@ export interface PublicGroupMembershipDetailsRepresentationNormalized {
|
|
|
33
36
|
* (none)
|
|
34
37
|
*/
|
|
35
38
|
export interface PublicGroupMembershipDetailsRepresentation {
|
|
39
|
+
listPublicGroups: Array<PublicGroupMembersInPublicGroupRepresentation_PublicGroupMembersInPublicGroupRepresentation>;
|
|
36
40
|
listRoles: Array<RolesInGroupRepresentation_RolesInGroupRepresentation>;
|
|
37
41
|
listRolesAndInternalSubordinates: Array<RolesInGroupRepresentation_RolesInGroupRepresentation>;
|
|
38
42
|
listRolesInternalAndPortalSubordinates: Array<RolesInGroupRepresentation_RolesInGroupRepresentation>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-sharing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.297.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.297.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.297.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -101,8 +101,8 @@ function createLink(ref) {
|
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
const VERSION$
|
|
105
|
-
function validate$
|
|
104
|
+
const VERSION$g = "8f1b312aa04c8869624b95b9e3f3cd4e";
|
|
105
|
+
function validate$g(obj, path = 'SobjectOutputSharingRepresentation') {
|
|
106
106
|
const v_error = (() => {
|
|
107
107
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
108
108
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -130,10 +130,10 @@ function validate$f(obj, path = 'SobjectOutputSharingRepresentation') {
|
|
|
130
130
|
})();
|
|
131
131
|
return v_error === undefined ? null : v_error;
|
|
132
132
|
}
|
|
133
|
-
const select$
|
|
133
|
+
const select$l = function SobjectOutputSharingRepresentationSelect() {
|
|
134
134
|
return {
|
|
135
135
|
kind: 'Fragment',
|
|
136
|
-
version: VERSION$
|
|
136
|
+
version: VERSION$g,
|
|
137
137
|
private: [],
|
|
138
138
|
selections: [
|
|
139
139
|
{
|
|
@@ -155,7 +155,7 @@ const select$k = function SobjectOutputSharingRepresentationSelect() {
|
|
|
155
155
|
]
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
|
-
function equals$
|
|
158
|
+
function equals$g(existing, incoming) {
|
|
159
159
|
const existing_apiName = existing.apiName;
|
|
160
160
|
const incoming_apiName = incoming.apiName;
|
|
161
161
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -180,8 +180,8 @@ function equals$f(existing, incoming) {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
const TTL$4 = 900000;
|
|
183
|
-
const VERSION$
|
|
184
|
-
function validate$
|
|
183
|
+
const VERSION$f = "891459dfe3e992adddad156c898d3aef";
|
|
184
|
+
function validate$f(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
185
185
|
const v_error = (() => {
|
|
186
186
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
187
187
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -199,7 +199,7 @@ function validate$e(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
|
199
199
|
for (let i = 0; i < obj_sobjects.length; i++) {
|
|
200
200
|
const obj_sobjects_item = obj_sobjects[i];
|
|
201
201
|
const path_sobjects_item = path_sobjects + '[' + i + ']';
|
|
202
|
-
const referencepath_sobjects_itemValidationError = validate$
|
|
202
|
+
const referencepath_sobjects_itemValidationError = validate$g(obj_sobjects_item, path_sobjects_item);
|
|
203
203
|
if (referencepath_sobjects_itemValidationError !== null) {
|
|
204
204
|
let message = 'Object doesn\'t match SobjectOutputSharingRepresentation (at "' + path_sobjects_item + '")\n';
|
|
205
205
|
message += referencepath_sobjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -213,11 +213,11 @@ const RepresentationType$4 = 'SobjectsOutputSharingRepresentation';
|
|
|
213
213
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
214
214
|
return input;
|
|
215
215
|
}
|
|
216
|
-
const select$
|
|
217
|
-
const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$
|
|
216
|
+
const select$k = function SobjectsOutputSharingRepresentationSelect() {
|
|
217
|
+
const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$l();
|
|
218
218
|
return {
|
|
219
219
|
kind: 'Fragment',
|
|
220
|
-
version: VERSION$
|
|
220
|
+
version: VERSION$f,
|
|
221
221
|
private: [],
|
|
222
222
|
selections: [
|
|
223
223
|
{
|
|
@@ -233,7 +233,7 @@ const select$j = function SobjectsOutputSharingRepresentationSelect() {
|
|
|
233
233
|
]
|
|
234
234
|
};
|
|
235
235
|
};
|
|
236
|
-
function equals$
|
|
236
|
+
function equals$f(existing, incoming) {
|
|
237
237
|
const existing_size = existing.size;
|
|
238
238
|
const incoming_size = incoming.size;
|
|
239
239
|
if (!(existing_size === incoming_size)) {
|
|
@@ -242,7 +242,7 @@ function equals$e(existing, incoming) {
|
|
|
242
242
|
const existing_sobjects = existing.sobjects;
|
|
243
243
|
const incoming_sobjects = incoming.sobjects;
|
|
244
244
|
const equals_sobjects_items = equalsArray(existing_sobjects, incoming_sobjects, (existing_sobjects_item, incoming_sobjects_item) => {
|
|
245
|
-
if (!(equals$
|
|
245
|
+
if (!(equals$g(existing_sobjects_item, incoming_sobjects_item))) {
|
|
246
246
|
return false;
|
|
247
247
|
}
|
|
248
248
|
});
|
|
@@ -253,14 +253,14 @@ function equals$e(existing, incoming) {
|
|
|
253
253
|
}
|
|
254
254
|
const ingest$4 = function SobjectsOutputSharingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
255
255
|
if (process.env.NODE_ENV !== 'production') {
|
|
256
|
-
const validateError = validate$
|
|
256
|
+
const validateError = validate$f(input);
|
|
257
257
|
if (validateError !== null) {
|
|
258
258
|
throw validateError;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
const key = path.fullPath;
|
|
262
262
|
const ttlToUse = TTL$4;
|
|
263
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "sharing", VERSION$
|
|
263
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "sharing", VERSION$f, RepresentationType$4, equals$f);
|
|
264
264
|
return createLink(key);
|
|
265
265
|
};
|
|
266
266
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -273,8 +273,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
function select$
|
|
277
|
-
return select$
|
|
276
|
+
function select$j(luvio, params) {
|
|
277
|
+
return select$k();
|
|
278
278
|
}
|
|
279
279
|
function keyBuilder$9(luvio, params) {
|
|
280
280
|
return keyPrefix + '::SobjectsOutputSharingRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'searchText:' + params.queryParams.searchText + ')';
|
|
@@ -288,7 +288,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
288
288
|
luvio.storeIngest(key, ingest$4, body);
|
|
289
289
|
const snapshot = luvio.storeLookup({
|
|
290
290
|
recordId: key,
|
|
291
|
-
node: select$
|
|
291
|
+
node: select$j(),
|
|
292
292
|
variables: {},
|
|
293
293
|
}, snapshotRefresh);
|
|
294
294
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -305,7 +305,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
305
305
|
const storeMetadataParams = {
|
|
306
306
|
ttl: TTL$4,
|
|
307
307
|
namespace: keyPrefix,
|
|
308
|
-
version: VERSION$
|
|
308
|
+
version: VERSION$f,
|
|
309
309
|
representationName: RepresentationType$4
|
|
310
310
|
};
|
|
311
311
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -357,7 +357,7 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
|
357
357
|
}
|
|
358
358
|
function adapterFragment$4(luvio, config) {
|
|
359
359
|
createResourceParams$4(config);
|
|
360
|
-
return select$
|
|
360
|
+
return select$j();
|
|
361
361
|
}
|
|
362
362
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
363
363
|
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
@@ -413,8 +413,8 @@ const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects
|
|
|
413
413
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
414
414
|
};
|
|
415
415
|
|
|
416
|
-
const VERSION$
|
|
417
|
-
function validate$
|
|
416
|
+
const VERSION$e = "7d75e40a9fde9f60ae02b6dde36257ce";
|
|
417
|
+
function validate$e(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 + '")');
|
|
@@ -442,10 +442,10 @@ function validate$d(obj, path = 'PublicGroupRepresentation') {
|
|
|
442
442
|
})();
|
|
443
443
|
return v_error === undefined ? null : v_error;
|
|
444
444
|
}
|
|
445
|
-
const select$
|
|
445
|
+
const select$i = function PublicGroupRepresentationSelect() {
|
|
446
446
|
return {
|
|
447
447
|
kind: 'Fragment',
|
|
448
|
-
version: VERSION$
|
|
448
|
+
version: VERSION$e,
|
|
449
449
|
private: [],
|
|
450
450
|
selections: [
|
|
451
451
|
{
|
|
@@ -467,7 +467,7 @@ const select$h = function PublicGroupRepresentationSelect() {
|
|
|
467
467
|
]
|
|
468
468
|
};
|
|
469
469
|
};
|
|
470
|
-
function equals$
|
|
470
|
+
function equals$e(existing, incoming) {
|
|
471
471
|
const existing_includeBosses = existing.includeBosses;
|
|
472
472
|
const incoming_includeBosses = incoming.includeBosses;
|
|
473
473
|
if (!(existing_includeBosses === incoming_includeBosses)) {
|
|
@@ -491,8 +491,8 @@ function equals$d(existing, incoming) {
|
|
|
491
491
|
return true;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
const VERSION$
|
|
495
|
-
function validate$
|
|
494
|
+
const VERSION$d = "89ae3fce0ad09282e80bd77a9c483003";
|
|
495
|
+
function validate$d(obj, path = 'QueueRepresentation') {
|
|
496
496
|
const v_error = (() => {
|
|
497
497
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
498
498
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -515,10 +515,10 @@ function validate$c(obj, path = 'QueueRepresentation') {
|
|
|
515
515
|
})();
|
|
516
516
|
return v_error === undefined ? null : v_error;
|
|
517
517
|
}
|
|
518
|
-
const select$
|
|
518
|
+
const select$h = function QueueRepresentationSelect() {
|
|
519
519
|
return {
|
|
520
520
|
kind: 'Fragment',
|
|
521
|
-
version: VERSION$
|
|
521
|
+
version: VERSION$d,
|
|
522
522
|
private: [],
|
|
523
523
|
selections: [
|
|
524
524
|
{
|
|
@@ -536,7 +536,7 @@ const select$g = function QueueRepresentationSelect() {
|
|
|
536
536
|
]
|
|
537
537
|
};
|
|
538
538
|
};
|
|
539
|
-
function equals$
|
|
539
|
+
function equals$d(existing, incoming) {
|
|
540
540
|
const existing_developerName = existing.developerName;
|
|
541
541
|
const incoming_developerName = incoming.developerName;
|
|
542
542
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -556,8 +556,8 @@ function equals$c(existing, incoming) {
|
|
|
556
556
|
}
|
|
557
557
|
|
|
558
558
|
const TTL$3 = 300;
|
|
559
|
-
const VERSION$
|
|
560
|
-
function validate$
|
|
559
|
+
const VERSION$c = "3659c4a4f46957a3a2b5cb2d2383180d";
|
|
560
|
+
function validate$c(obj, path = 'GroupCollectionRepresentation') {
|
|
561
561
|
const v_error = (() => {
|
|
562
562
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
563
563
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -570,7 +570,7 @@ function validate$b(obj, path = 'GroupCollectionRepresentation') {
|
|
|
570
570
|
for (let i = 0; i < obj_publicGroupRepresentations.length; i++) {
|
|
571
571
|
const obj_publicGroupRepresentations_item = obj_publicGroupRepresentations[i];
|
|
572
572
|
const path_publicGroupRepresentations_item = path_publicGroupRepresentations + '[' + i + ']';
|
|
573
|
-
const referencepath_publicGroupRepresentations_itemValidationError = validate$
|
|
573
|
+
const referencepath_publicGroupRepresentations_itemValidationError = validate$e(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
|
|
574
574
|
if (referencepath_publicGroupRepresentations_itemValidationError !== null) {
|
|
575
575
|
let message = 'Object doesn\'t match PublicGroupRepresentation (at "' + path_publicGroupRepresentations_item + '")\n';
|
|
576
576
|
message += referencepath_publicGroupRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -585,7 +585,7 @@ function validate$b(obj, path = 'GroupCollectionRepresentation') {
|
|
|
585
585
|
for (let i = 0; i < obj_queueRepresentations.length; i++) {
|
|
586
586
|
const obj_queueRepresentations_item = obj_queueRepresentations[i];
|
|
587
587
|
const path_queueRepresentations_item = path_queueRepresentations + '[' + i + ']';
|
|
588
|
-
const referencepath_queueRepresentations_itemValidationError = validate$
|
|
588
|
+
const referencepath_queueRepresentations_itemValidationError = validate$d(obj_queueRepresentations_item, path_queueRepresentations_item);
|
|
589
589
|
if (referencepath_queueRepresentations_itemValidationError !== null) {
|
|
590
590
|
let message = 'Object doesn\'t match QueueRepresentation (at "' + path_queueRepresentations_item + '")\n';
|
|
591
591
|
message += referencepath_queueRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -599,12 +599,12 @@ const RepresentationType$3 = 'GroupCollectionRepresentation';
|
|
|
599
599
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
600
600
|
return input;
|
|
601
601
|
}
|
|
602
|
-
const select$
|
|
603
|
-
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$
|
|
604
|
-
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$
|
|
602
|
+
const select$g = function GroupCollectionRepresentationSelect() {
|
|
603
|
+
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$i();
|
|
604
|
+
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$h();
|
|
605
605
|
return {
|
|
606
606
|
kind: 'Fragment',
|
|
607
|
-
version: VERSION$
|
|
607
|
+
version: VERSION$c,
|
|
608
608
|
private: [],
|
|
609
609
|
selections: [
|
|
610
610
|
{
|
|
@@ -622,11 +622,11 @@ const select$f = function GroupCollectionRepresentationSelect() {
|
|
|
622
622
|
]
|
|
623
623
|
};
|
|
624
624
|
};
|
|
625
|
-
function equals$
|
|
625
|
+
function equals$c(existing, incoming) {
|
|
626
626
|
const existing_publicGroupRepresentations = existing.publicGroupRepresentations;
|
|
627
627
|
const incoming_publicGroupRepresentations = incoming.publicGroupRepresentations;
|
|
628
628
|
const equals_publicGroupRepresentations_items = equalsArray(existing_publicGroupRepresentations, incoming_publicGroupRepresentations, (existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item) => {
|
|
629
|
-
if (!(equals$
|
|
629
|
+
if (!(equals$e(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
|
|
630
630
|
return false;
|
|
631
631
|
}
|
|
632
632
|
});
|
|
@@ -636,7 +636,7 @@ function equals$b(existing, incoming) {
|
|
|
636
636
|
const existing_queueRepresentations = existing.queueRepresentations;
|
|
637
637
|
const incoming_queueRepresentations = incoming.queueRepresentations;
|
|
638
638
|
const equals_queueRepresentations_items = equalsArray(existing_queueRepresentations, incoming_queueRepresentations, (existing_queueRepresentations_item, incoming_queueRepresentations_item) => {
|
|
639
|
-
if (!(equals$
|
|
639
|
+
if (!(equals$d(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
|
|
640
640
|
return false;
|
|
641
641
|
}
|
|
642
642
|
});
|
|
@@ -647,14 +647,14 @@ function equals$b(existing, incoming) {
|
|
|
647
647
|
}
|
|
648
648
|
const ingest$3 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
649
649
|
if (process.env.NODE_ENV !== 'production') {
|
|
650
|
-
const validateError = validate$
|
|
650
|
+
const validateError = validate$c(input);
|
|
651
651
|
if (validateError !== null) {
|
|
652
652
|
throw validateError;
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
const key = path.fullPath;
|
|
656
656
|
const ttlToUse = TTL$3;
|
|
657
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "sharing", VERSION$
|
|
657
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "sharing", VERSION$c, RepresentationType$3, equals$c);
|
|
658
658
|
return createLink(key);
|
|
659
659
|
};
|
|
660
660
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -667,8 +667,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
667
667
|
});
|
|
668
668
|
}
|
|
669
669
|
|
|
670
|
-
function select$
|
|
671
|
-
return select$
|
|
670
|
+
function select$f(luvio, params) {
|
|
671
|
+
return select$g();
|
|
672
672
|
}
|
|
673
673
|
function keyBuilder$7(luvio, params) {
|
|
674
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 + ')';
|
|
@@ -682,7 +682,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
682
682
|
luvio.storeIngest(key, ingest$3, body);
|
|
683
683
|
const snapshot = luvio.storeLookup({
|
|
684
684
|
recordId: key,
|
|
685
|
-
node: select$
|
|
685
|
+
node: select$f(),
|
|
686
686
|
variables: {},
|
|
687
687
|
}, snapshotRefresh);
|
|
688
688
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -699,7 +699,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
699
699
|
const storeMetadataParams = {
|
|
700
700
|
ttl: TTL$3,
|
|
701
701
|
namespace: keyPrefix,
|
|
702
|
-
version: VERSION$
|
|
702
|
+
version: VERSION$c,
|
|
703
703
|
representationName: RepresentationType$3
|
|
704
704
|
};
|
|
705
705
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -754,7 +754,7 @@ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
|
754
754
|
}
|
|
755
755
|
function adapterFragment$3(luvio, config) {
|
|
756
756
|
createResourceParams$3(config);
|
|
757
|
-
return select$
|
|
757
|
+
return select$f();
|
|
758
758
|
}
|
|
759
759
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
760
760
|
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
@@ -810,6 +810,126 @@ const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsFor
|
|
|
810
810
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
811
811
|
};
|
|
812
812
|
|
|
813
|
+
const VERSION$b = "10400ecb443c1cd1f8fa280e9f89ded8";
|
|
814
|
+
function validate$b(obj, path = 'PublicGroupMembersInPublicGroupRepresentation') {
|
|
815
|
+
const v_error = (() => {
|
|
816
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
817
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
818
|
+
}
|
|
819
|
+
const obj_createdBy = obj.createdBy;
|
|
820
|
+
const path_createdBy = path + '.createdBy';
|
|
821
|
+
if (typeof obj_createdBy !== 'string') {
|
|
822
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdBy + '" (at "' + path_createdBy + '")');
|
|
823
|
+
}
|
|
824
|
+
const obj_createdDate = obj.createdDate;
|
|
825
|
+
const path_createdDate = path + '.createdDate';
|
|
826
|
+
if (typeof obj_createdDate !== 'string') {
|
|
827
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
828
|
+
}
|
|
829
|
+
const obj_dataId = obj.dataId;
|
|
830
|
+
const path_dataId = path + '.dataId';
|
|
831
|
+
if (typeof obj_dataId !== 'string') {
|
|
832
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataId + '" (at "' + path_dataId + '")');
|
|
833
|
+
}
|
|
834
|
+
const obj_developerName = obj.developerName;
|
|
835
|
+
const path_developerName = path + '.developerName';
|
|
836
|
+
if (typeof obj_developerName !== 'string') {
|
|
837
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
838
|
+
}
|
|
839
|
+
const obj_groupName = obj.groupName;
|
|
840
|
+
const path_groupName = path + '.groupName';
|
|
841
|
+
if (typeof obj_groupName !== 'string') {
|
|
842
|
+
return new TypeError('Expected "string" but received "' + typeof obj_groupName + '" (at "' + path_groupName + '")');
|
|
843
|
+
}
|
|
844
|
+
const obj_groupType = obj.groupType;
|
|
845
|
+
const path_groupType = path + '.groupType';
|
|
846
|
+
if (typeof obj_groupType !== 'string') {
|
|
847
|
+
return new TypeError('Expected "string" but received "' + typeof obj_groupType + '" (at "' + path_groupType + '")');
|
|
848
|
+
}
|
|
849
|
+
const obj_includeBosses = obj.includeBosses;
|
|
850
|
+
const path_includeBosses = path + '.includeBosses';
|
|
851
|
+
if (typeof obj_includeBosses !== 'boolean') {
|
|
852
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_includeBosses + '" (at "' + path_includeBosses + '")');
|
|
853
|
+
}
|
|
854
|
+
})();
|
|
855
|
+
return v_error === undefined ? null : v_error;
|
|
856
|
+
}
|
|
857
|
+
const select$e = function PublicGroupMembersInPublicGroupRepresentationSelect() {
|
|
858
|
+
return {
|
|
859
|
+
kind: 'Fragment',
|
|
860
|
+
version: VERSION$b,
|
|
861
|
+
private: [],
|
|
862
|
+
selections: [
|
|
863
|
+
{
|
|
864
|
+
name: 'createdBy',
|
|
865
|
+
kind: 'Scalar'
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
name: 'createdDate',
|
|
869
|
+
kind: 'Scalar'
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
name: 'dataId',
|
|
873
|
+
kind: 'Scalar'
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
name: 'developerName',
|
|
877
|
+
kind: 'Scalar'
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
name: 'groupName',
|
|
881
|
+
kind: 'Scalar'
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
name: 'groupType',
|
|
885
|
+
kind: 'Scalar'
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
name: 'includeBosses',
|
|
889
|
+
kind: 'Scalar'
|
|
890
|
+
}
|
|
891
|
+
]
|
|
892
|
+
};
|
|
893
|
+
};
|
|
894
|
+
function equals$b(existing, incoming) {
|
|
895
|
+
const existing_includeBosses = existing.includeBosses;
|
|
896
|
+
const incoming_includeBosses = incoming.includeBosses;
|
|
897
|
+
if (!(existing_includeBosses === incoming_includeBosses)) {
|
|
898
|
+
return false;
|
|
899
|
+
}
|
|
900
|
+
const existing_createdBy = existing.createdBy;
|
|
901
|
+
const incoming_createdBy = incoming.createdBy;
|
|
902
|
+
if (!(existing_createdBy === incoming_createdBy)) {
|
|
903
|
+
return false;
|
|
904
|
+
}
|
|
905
|
+
const existing_createdDate = existing.createdDate;
|
|
906
|
+
const incoming_createdDate = incoming.createdDate;
|
|
907
|
+
if (!(existing_createdDate === incoming_createdDate)) {
|
|
908
|
+
return false;
|
|
909
|
+
}
|
|
910
|
+
const existing_dataId = existing.dataId;
|
|
911
|
+
const incoming_dataId = incoming.dataId;
|
|
912
|
+
if (!(existing_dataId === incoming_dataId)) {
|
|
913
|
+
return false;
|
|
914
|
+
}
|
|
915
|
+
const existing_developerName = existing.developerName;
|
|
916
|
+
const incoming_developerName = incoming.developerName;
|
|
917
|
+
if (!(existing_developerName === incoming_developerName)) {
|
|
918
|
+
return false;
|
|
919
|
+
}
|
|
920
|
+
const existing_groupName = existing.groupName;
|
|
921
|
+
const incoming_groupName = incoming.groupName;
|
|
922
|
+
if (!(existing_groupName === incoming_groupName)) {
|
|
923
|
+
return false;
|
|
924
|
+
}
|
|
925
|
+
const existing_groupType = existing.groupType;
|
|
926
|
+
const incoming_groupType = incoming.groupType;
|
|
927
|
+
if (!(existing_groupType === incoming_groupType)) {
|
|
928
|
+
return false;
|
|
929
|
+
}
|
|
930
|
+
return true;
|
|
931
|
+
}
|
|
932
|
+
|
|
813
933
|
const VERSION$a = "23a331717bb19992d3c37b818fc7008a";
|
|
814
934
|
function validate$a(obj, path = 'RolesInGroupRepresentation') {
|
|
815
935
|
const v_error = (() => {
|
|
@@ -1065,12 +1185,27 @@ function equals$9(existing, incoming) {
|
|
|
1065
1185
|
}
|
|
1066
1186
|
|
|
1067
1187
|
const TTL$2 = 300;
|
|
1068
|
-
const VERSION$8 = "
|
|
1188
|
+
const VERSION$8 = "6a8d0622a50d89a1e72e229d6a15956b";
|
|
1069
1189
|
function validate$8(obj, path = 'PublicGroupMembershipDetailsRepresentation') {
|
|
1070
1190
|
const v_error = (() => {
|
|
1071
1191
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1072
1192
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1073
1193
|
}
|
|
1194
|
+
const obj_listPublicGroups = obj.listPublicGroups;
|
|
1195
|
+
const path_listPublicGroups = path + '.listPublicGroups';
|
|
1196
|
+
if (!ArrayIsArray(obj_listPublicGroups)) {
|
|
1197
|
+
return new TypeError('Expected "array" but received "' + typeof obj_listPublicGroups + '" (at "' + path_listPublicGroups + '")');
|
|
1198
|
+
}
|
|
1199
|
+
for (let i = 0; i < obj_listPublicGroups.length; i++) {
|
|
1200
|
+
const obj_listPublicGroups_item = obj_listPublicGroups[i];
|
|
1201
|
+
const path_listPublicGroups_item = path_listPublicGroups + '[' + i + ']';
|
|
1202
|
+
const referencepath_listPublicGroups_itemValidationError = validate$b(obj_listPublicGroups_item, path_listPublicGroups_item);
|
|
1203
|
+
if (referencepath_listPublicGroups_itemValidationError !== null) {
|
|
1204
|
+
let message = 'Object doesn\'t match PublicGroupMembersInPublicGroupRepresentation (at "' + path_listPublicGroups_item + '")\n';
|
|
1205
|
+
message += referencepath_listPublicGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1206
|
+
return new TypeError(message);
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1074
1209
|
const obj_listRoles = obj.listRoles;
|
|
1075
1210
|
const path_listRoles = path + '.listRoles';
|
|
1076
1211
|
if (!ArrayIsArray(obj_listRoles)) {
|
|
@@ -1139,6 +1274,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
1139
1274
|
return input;
|
|
1140
1275
|
}
|
|
1141
1276
|
const select$b = function PublicGroupMembershipDetailsRepresentationSelect() {
|
|
1277
|
+
const { selections: PublicGroupMembersInPublicGroupRepresentation__selections, opaque: PublicGroupMembersInPublicGroupRepresentation__opaque, } = select$e();
|
|
1142
1278
|
const { selections: RolesInGroupRepresentation__selections, opaque: RolesInGroupRepresentation__opaque, } = select$d();
|
|
1143
1279
|
const { selections: UserMembersInPublicGroupRepresentation__selections, opaque: UserMembersInPublicGroupRepresentation__opaque, } = select$c();
|
|
1144
1280
|
return {
|
|
@@ -1146,6 +1282,12 @@ const select$b = function PublicGroupMembershipDetailsRepresentationSelect() {
|
|
|
1146
1282
|
version: VERSION$8,
|
|
1147
1283
|
private: [],
|
|
1148
1284
|
selections: [
|
|
1285
|
+
{
|
|
1286
|
+
name: 'listPublicGroups',
|
|
1287
|
+
kind: 'Object',
|
|
1288
|
+
plural: true,
|
|
1289
|
+
selections: PublicGroupMembersInPublicGroupRepresentation__selections
|
|
1290
|
+
},
|
|
1149
1291
|
{
|
|
1150
1292
|
name: 'listRoles',
|
|
1151
1293
|
kind: 'Object',
|
|
@@ -1174,6 +1316,16 @@ const select$b = function PublicGroupMembershipDetailsRepresentationSelect() {
|
|
|
1174
1316
|
};
|
|
1175
1317
|
};
|
|
1176
1318
|
function equals$8(existing, incoming) {
|
|
1319
|
+
const existing_listPublicGroups = existing.listPublicGroups;
|
|
1320
|
+
const incoming_listPublicGroups = incoming.listPublicGroups;
|
|
1321
|
+
const equals_listPublicGroups_items = equalsArray(existing_listPublicGroups, incoming_listPublicGroups, (existing_listPublicGroups_item, incoming_listPublicGroups_item) => {
|
|
1322
|
+
if (!(equals$b(existing_listPublicGroups_item, incoming_listPublicGroups_item))) {
|
|
1323
|
+
return false;
|
|
1324
|
+
}
|
|
1325
|
+
});
|
|
1326
|
+
if (equals_listPublicGroups_items === false) {
|
|
1327
|
+
return false;
|
|
1328
|
+
}
|
|
1177
1329
|
const existing_listRoles = existing.listRoles;
|
|
1178
1330
|
const incoming_listRoles = incoming.listRoles;
|
|
1179
1331
|
const equals_listRoles_items = equalsArray(existing_listRoles, incoming_listRoles, (existing_listRoles_item, incoming_listRoles_item) => {
|
|
@@ -2501,4 +2653,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2501
2653
|
});
|
|
2502
2654
|
|
|
2503
2655
|
export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupMembershipDetails, getPublicGroupMembershipDetails_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative, getUserPermissions, getUserPermissions_imperative };
|
|
2504
|
-
// version: 1.
|
|
2656
|
+
// version: 1.297.0-e0cfbd880
|
package/src/raml/api.raml
CHANGED
|
@@ -113,6 +113,31 @@ types:
|
|
|
113
113
|
label:
|
|
114
114
|
description: List view label.
|
|
115
115
|
type: string
|
|
116
|
+
PublicGroupMembersInPublicGroupRepresentation:
|
|
117
|
+
description: Public Group Members in Public Group Representation
|
|
118
|
+
type: object
|
|
119
|
+
properties:
|
|
120
|
+
createdBy:
|
|
121
|
+
description: Group Member Created By
|
|
122
|
+
type: string
|
|
123
|
+
createdDate:
|
|
124
|
+
description: Group Member Created Date
|
|
125
|
+
type: string
|
|
126
|
+
dataId:
|
|
127
|
+
description: Group Member dataId
|
|
128
|
+
type: string
|
|
129
|
+
developerName:
|
|
130
|
+
description: Group Member Developer Name
|
|
131
|
+
type: string
|
|
132
|
+
groupName:
|
|
133
|
+
description: Group Member Label
|
|
134
|
+
type: string
|
|
135
|
+
groupType:
|
|
136
|
+
description: Group Member Type
|
|
137
|
+
type: string
|
|
138
|
+
includeBosses:
|
|
139
|
+
description: Group Member Grant Access Using Hierarchies
|
|
140
|
+
type: boolean
|
|
116
141
|
PublicGroupMembershipDetailsInputRepresentation:
|
|
117
142
|
description: Input representation for public group membership details.
|
|
118
143
|
type: object
|
|
@@ -148,6 +173,11 @@ types:
|
|
|
148
173
|
API
|
|
149
174
|
type: object
|
|
150
175
|
properties:
|
|
176
|
+
listPublicGroups:
|
|
177
|
+
description: Output response data for Public Groups
|
|
178
|
+
type: array
|
|
179
|
+
items:
|
|
180
|
+
type: PublicGroupMembersInPublicGroupRepresentation
|
|
151
181
|
listRoles:
|
|
152
182
|
description: Output response data for Roles
|
|
153
183
|
type: array
|