@salesforce/lds-adapters-platform-sharing 1.425.0 → 1.427.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 +577 -64
- package/dist/es/es2018/types/src/generated/adapters/compareUserAssignments.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/postSharingCompareUserAssignments.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/types/CompareUserAssignmentsInputRepresentation.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/CompareUserAssignmentsRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/PublicGroupAssignmentComparisonRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/QueueAssignmentComparisonRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/UserAssignmentRepresentation.d.ts +31 -0
- package/package.json +3 -3
- package/sfdc/index.js +566 -41
- package/src/raml/api.raml +107 -0
- package/src/raml/luvio.raml +8 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$7, typeCheckConfig as typeCheckConfig$7, StoreKeyMap, createResourceParams as createResourceParams$7 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -91,8 +91,8 @@ function createLink(ref) {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
const VERSION$
|
|
95
|
-
function validate$
|
|
94
|
+
const VERSION$o = "56d2fddc6bd67f680c2301e397df75c1";
|
|
95
|
+
function validate$o(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 + '")');
|
|
@@ -140,10 +140,10 @@ function validate$k(obj, path = 'PublicGroupRepresentation') {
|
|
|
140
140
|
})();
|
|
141
141
|
return v_error === undefined ? null : v_error;
|
|
142
142
|
}
|
|
143
|
-
const select$
|
|
143
|
+
const select$v = function PublicGroupRepresentationSelect() {
|
|
144
144
|
return {
|
|
145
145
|
kind: 'Fragment',
|
|
146
|
-
version: VERSION$
|
|
146
|
+
version: VERSION$o,
|
|
147
147
|
private: [],
|
|
148
148
|
selections: [
|
|
149
149
|
{
|
|
@@ -181,7 +181,7 @@ const select$q = function PublicGroupRepresentationSelect() {
|
|
|
181
181
|
]
|
|
182
182
|
};
|
|
183
183
|
};
|
|
184
|
-
function equals$
|
|
184
|
+
function equals$o(existing, incoming) {
|
|
185
185
|
const existing_includeBosses = existing.includeBosses;
|
|
186
186
|
const incoming_includeBosses = incoming.includeBosses;
|
|
187
187
|
if (!(existing_includeBosses === incoming_includeBosses)) {
|
|
@@ -225,8 +225,8 @@ function equals$k(existing, incoming) {
|
|
|
225
225
|
return true;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
const VERSION$
|
|
229
|
-
function validate$
|
|
228
|
+
const VERSION$n = "86395e9e3ea80502810c8109ecd94d68";
|
|
229
|
+
function validate$n(obj, path = 'QueueRepresentation') {
|
|
230
230
|
const v_error = (() => {
|
|
231
231
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
232
232
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -279,10 +279,10 @@ function validate$j(obj, path = 'QueueRepresentation') {
|
|
|
279
279
|
})();
|
|
280
280
|
return v_error === undefined ? null : v_error;
|
|
281
281
|
}
|
|
282
|
-
const select$
|
|
282
|
+
const select$u = function QueueRepresentationSelect() {
|
|
283
283
|
return {
|
|
284
284
|
kind: 'Fragment',
|
|
285
|
-
version: VERSION$
|
|
285
|
+
version: VERSION$n,
|
|
286
286
|
private: [],
|
|
287
287
|
selections: [
|
|
288
288
|
{
|
|
@@ -324,7 +324,7 @@ const select$p = function QueueRepresentationSelect() {
|
|
|
324
324
|
]
|
|
325
325
|
};
|
|
326
326
|
};
|
|
327
|
-
function equals$
|
|
327
|
+
function equals$n(existing, incoming) {
|
|
328
328
|
const existing_developerName = existing.developerName;
|
|
329
329
|
const incoming_developerName = incoming.developerName;
|
|
330
330
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -373,9 +373,9 @@ function equals$j(existing, incoming) {
|
|
|
373
373
|
return true;
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
-
const TTL$
|
|
377
|
-
const VERSION$
|
|
378
|
-
function validate$
|
|
376
|
+
const TTL$6 = 300;
|
|
377
|
+
const VERSION$m = "3659c4a4f46957a3a2b5cb2d2383180d";
|
|
378
|
+
function validate$m(obj, path = 'GroupCollectionRepresentation') {
|
|
379
379
|
const v_error = (() => {
|
|
380
380
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
381
381
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -388,7 +388,7 @@ function validate$i(obj, path = 'GroupCollectionRepresentation') {
|
|
|
388
388
|
for (let i = 0; i < obj_publicGroupRepresentations.length; i++) {
|
|
389
389
|
const obj_publicGroupRepresentations_item = obj_publicGroupRepresentations[i];
|
|
390
390
|
const path_publicGroupRepresentations_item = path_publicGroupRepresentations + '[' + i + ']';
|
|
391
|
-
const referencepath_publicGroupRepresentations_itemValidationError = validate$
|
|
391
|
+
const referencepath_publicGroupRepresentations_itemValidationError = validate$o(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
|
|
392
392
|
if (referencepath_publicGroupRepresentations_itemValidationError !== null) {
|
|
393
393
|
let message = 'Object doesn\'t match PublicGroupRepresentation (at "' + path_publicGroupRepresentations_item + '")\n';
|
|
394
394
|
message += referencepath_publicGroupRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -403,7 +403,7 @@ function validate$i(obj, path = 'GroupCollectionRepresentation') {
|
|
|
403
403
|
for (let i = 0; i < obj_queueRepresentations.length; i++) {
|
|
404
404
|
const obj_queueRepresentations_item = obj_queueRepresentations[i];
|
|
405
405
|
const path_queueRepresentations_item = path_queueRepresentations + '[' + i + ']';
|
|
406
|
-
const referencepath_queueRepresentations_itemValidationError = validate$
|
|
406
|
+
const referencepath_queueRepresentations_itemValidationError = validate$n(obj_queueRepresentations_item, path_queueRepresentations_item);
|
|
407
407
|
if (referencepath_queueRepresentations_itemValidationError !== null) {
|
|
408
408
|
let message = 'Object doesn\'t match QueueRepresentation (at "' + path_queueRepresentations_item + '")\n';
|
|
409
409
|
message += referencepath_queueRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -413,16 +413,16 @@ function validate$i(obj, path = 'GroupCollectionRepresentation') {
|
|
|
413
413
|
})();
|
|
414
414
|
return v_error === undefined ? null : v_error;
|
|
415
415
|
}
|
|
416
|
-
const RepresentationType$
|
|
417
|
-
function normalize$
|
|
416
|
+
const RepresentationType$6 = 'GroupCollectionRepresentation';
|
|
417
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
418
418
|
return input;
|
|
419
419
|
}
|
|
420
|
-
const select$
|
|
421
|
-
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$
|
|
422
|
-
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$
|
|
420
|
+
const select$t = function GroupCollectionRepresentationSelect() {
|
|
421
|
+
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$v();
|
|
422
|
+
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$u();
|
|
423
423
|
return {
|
|
424
424
|
kind: 'Fragment',
|
|
425
|
-
version: VERSION$
|
|
425
|
+
version: VERSION$m,
|
|
426
426
|
private: [],
|
|
427
427
|
selections: [
|
|
428
428
|
{
|
|
@@ -440,11 +440,11 @@ const select$o = function GroupCollectionRepresentationSelect() {
|
|
|
440
440
|
]
|
|
441
441
|
};
|
|
442
442
|
};
|
|
443
|
-
function equals$
|
|
443
|
+
function equals$m(existing, incoming) {
|
|
444
444
|
const existing_publicGroupRepresentations = existing.publicGroupRepresentations;
|
|
445
445
|
const incoming_publicGroupRepresentations = incoming.publicGroupRepresentations;
|
|
446
446
|
const equals_publicGroupRepresentations_items = equalsArray(existing_publicGroupRepresentations, incoming_publicGroupRepresentations, (existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item) => {
|
|
447
|
-
if (!(equals$
|
|
447
|
+
if (!(equals$o(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
|
|
448
448
|
return false;
|
|
449
449
|
}
|
|
450
450
|
});
|
|
@@ -454,7 +454,7 @@ function equals$i(existing, incoming) {
|
|
|
454
454
|
const existing_queueRepresentations = existing.queueRepresentations;
|
|
455
455
|
const incoming_queueRepresentations = incoming.queueRepresentations;
|
|
456
456
|
const equals_queueRepresentations_items = equalsArray(existing_queueRepresentations, incoming_queueRepresentations, (existing_queueRepresentations_item, incoming_queueRepresentations_item) => {
|
|
457
|
-
if (!(equals$
|
|
457
|
+
if (!(equals$n(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
|
|
458
458
|
return false;
|
|
459
459
|
}
|
|
460
460
|
});
|
|
@@ -463,7 +463,520 @@ function equals$i(existing, incoming) {
|
|
|
463
463
|
}
|
|
464
464
|
return true;
|
|
465
465
|
}
|
|
466
|
-
const ingest$
|
|
466
|
+
const ingest$6 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
467
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
468
|
+
const validateError = validate$m(input);
|
|
469
|
+
if (validateError !== null) {
|
|
470
|
+
throw validateError;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
const key = path.fullPath;
|
|
474
|
+
const ttlToUse = TTL$6;
|
|
475
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "sharing", VERSION$m, RepresentationType$6, equals$m);
|
|
476
|
+
return createLink(key);
|
|
477
|
+
};
|
|
478
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
479
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
480
|
+
const rootKey = fullPathFactory();
|
|
481
|
+
rootKeySet.set(rootKey, {
|
|
482
|
+
namespace: keyPrefix,
|
|
483
|
+
representationName: RepresentationType$6,
|
|
484
|
+
mergeable: false
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
function select$s(luvio, params) {
|
|
489
|
+
return select$t();
|
|
490
|
+
}
|
|
491
|
+
function keyBuilder$d(luvio, params) {
|
|
492
|
+
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 + ')';
|
|
493
|
+
}
|
|
494
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
495
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
496
|
+
}
|
|
497
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
498
|
+
const { body } = response;
|
|
499
|
+
const key = keyBuilder$d(luvio, resourceParams);
|
|
500
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
501
|
+
const snapshot = luvio.storeLookup({
|
|
502
|
+
recordId: key,
|
|
503
|
+
node: select$s(),
|
|
504
|
+
variables: {},
|
|
505
|
+
}, snapshotRefresh);
|
|
506
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
507
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
508
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
deepFreeze(snapshot.data);
|
|
512
|
+
return snapshot;
|
|
513
|
+
}
|
|
514
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
515
|
+
const key = keyBuilder$d(luvio, params);
|
|
516
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
517
|
+
const storeMetadataParams = {
|
|
518
|
+
ttl: TTL$6,
|
|
519
|
+
namespace: keyPrefix,
|
|
520
|
+
version: VERSION$m,
|
|
521
|
+
representationName: RepresentationType$6
|
|
522
|
+
};
|
|
523
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
524
|
+
return errorSnapshot;
|
|
525
|
+
}
|
|
526
|
+
function createResourceRequest$6(config) {
|
|
527
|
+
const headers = {};
|
|
528
|
+
return {
|
|
529
|
+
baseUri: '/services/data/v67.0',
|
|
530
|
+
basePath: '/sharing/groups-for-user/' + config.urlParams.userId + '/' + config.urlParams.groupType + '',
|
|
531
|
+
method: 'get',
|
|
532
|
+
body: null,
|
|
533
|
+
urlParams: config.urlParams,
|
|
534
|
+
queryParams: config.queryParams,
|
|
535
|
+
headers,
|
|
536
|
+
priority: 'normal',
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
const adapterName$6 = 'getGroupsForUser';
|
|
541
|
+
const getGroupsForUser_ConfigPropertyMetadata = [
|
|
542
|
+
generateParamConfigMetadata('groupType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
543
|
+
generateParamConfigMetadata('userId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
544
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
545
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
546
|
+
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
547
|
+
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
548
|
+
generateParamConfigMetadata('groupMembership', false, 1 /* QueryParameter */, 0 /* String */),
|
|
549
|
+
generateParamConfigMetadata('searchTerm', false, 1 /* QueryParameter */, 0 /* String */),
|
|
550
|
+
];
|
|
551
|
+
const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getGroupsForUser_ConfigPropertyMetadata);
|
|
552
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(getGroupsForUser_ConfigPropertyMetadata);
|
|
553
|
+
function keyBuilder$c(luvio, config) {
|
|
554
|
+
const resourceParams = createResourceParams$6(config);
|
|
555
|
+
return keyBuilder$d(luvio, resourceParams);
|
|
556
|
+
}
|
|
557
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
558
|
+
const config = {};
|
|
559
|
+
typeCheckConfig$7(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
|
|
560
|
+
return config;
|
|
561
|
+
}
|
|
562
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
563
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
564
|
+
return null;
|
|
565
|
+
}
|
|
566
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
567
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
568
|
+
}
|
|
569
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
570
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
571
|
+
return null;
|
|
572
|
+
}
|
|
573
|
+
return config;
|
|
574
|
+
}
|
|
575
|
+
function adapterFragment$6(luvio, config) {
|
|
576
|
+
createResourceParams$6(config);
|
|
577
|
+
return select$s();
|
|
578
|
+
}
|
|
579
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
580
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
581
|
+
config,
|
|
582
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
583
|
+
});
|
|
584
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
585
|
+
}
|
|
586
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
587
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
588
|
+
config,
|
|
589
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
590
|
+
});
|
|
591
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
592
|
+
}
|
|
593
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
594
|
+
const resourceParams = createResourceParams$6(config);
|
|
595
|
+
const request = createResourceRequest$6(resourceParams);
|
|
596
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
597
|
+
.then((response) => {
|
|
598
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
599
|
+
const cache = new StoreKeyMap();
|
|
600
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
601
|
+
return cache;
|
|
602
|
+
});
|
|
603
|
+
}, (response) => {
|
|
604
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
608
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
609
|
+
}
|
|
610
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
611
|
+
const { luvio, config } = context;
|
|
612
|
+
const selector = {
|
|
613
|
+
recordId: keyBuilder$c(luvio, config),
|
|
614
|
+
node: adapterFragment$6(luvio, config),
|
|
615
|
+
variables: {},
|
|
616
|
+
};
|
|
617
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
618
|
+
config,
|
|
619
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
620
|
+
});
|
|
621
|
+
return cacheSnapshot;
|
|
622
|
+
}
|
|
623
|
+
const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsForUser(untrustedConfig, requestContext) {
|
|
624
|
+
const config = validateAdapterConfig$6(untrustedConfig, getGroupsForUser_ConfigPropertyNames);
|
|
625
|
+
// Invalid or incomplete config
|
|
626
|
+
if (config === null) {
|
|
627
|
+
return null;
|
|
628
|
+
}
|
|
629
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
630
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
const VERSION$l = "5cbfb84642634b52469e0a010f5161bc";
|
|
634
|
+
function validate$l(obj, path = 'UserAssignmentRepresentation') {
|
|
635
|
+
const v_error = (() => {
|
|
636
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
637
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
638
|
+
}
|
|
639
|
+
const obj_assigned = obj.assigned;
|
|
640
|
+
const path_assigned = path + '.assigned';
|
|
641
|
+
if (typeof obj_assigned !== 'boolean') {
|
|
642
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_assigned + '" (at "' + path_assigned + '")');
|
|
643
|
+
}
|
|
644
|
+
const obj_userId = obj.userId;
|
|
645
|
+
const path_userId = path + '.userId';
|
|
646
|
+
if (typeof obj_userId !== 'string') {
|
|
647
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userId + '" (at "' + path_userId + '")');
|
|
648
|
+
}
|
|
649
|
+
})();
|
|
650
|
+
return v_error === undefined ? null : v_error;
|
|
651
|
+
}
|
|
652
|
+
const select$r = function UserAssignmentRepresentationSelect() {
|
|
653
|
+
return {
|
|
654
|
+
kind: 'Fragment',
|
|
655
|
+
version: VERSION$l,
|
|
656
|
+
private: [],
|
|
657
|
+
selections: [
|
|
658
|
+
{
|
|
659
|
+
name: 'assigned',
|
|
660
|
+
kind: 'Scalar'
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
name: 'userId',
|
|
664
|
+
kind: 'Scalar'
|
|
665
|
+
}
|
|
666
|
+
]
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
function equals$l(existing, incoming) {
|
|
670
|
+
const existing_assigned = existing.assigned;
|
|
671
|
+
const incoming_assigned = incoming.assigned;
|
|
672
|
+
if (!(existing_assigned === incoming_assigned)) {
|
|
673
|
+
return false;
|
|
674
|
+
}
|
|
675
|
+
const existing_userId = existing.userId;
|
|
676
|
+
const incoming_userId = incoming.userId;
|
|
677
|
+
if (!(existing_userId === incoming_userId)) {
|
|
678
|
+
return false;
|
|
679
|
+
}
|
|
680
|
+
return true;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
const VERSION$k = "62913ea2213cd909b94eaadc07213c99";
|
|
684
|
+
function validate$k(obj, path = 'PublicGroupAssignmentComparisonRepresentation') {
|
|
685
|
+
const v_error = (() => {
|
|
686
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
687
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
688
|
+
}
|
|
689
|
+
const obj_entityId = obj.entityId;
|
|
690
|
+
const path_entityId = path + '.entityId';
|
|
691
|
+
if (typeof obj_entityId !== 'string') {
|
|
692
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityId + '" (at "' + path_entityId + '")');
|
|
693
|
+
}
|
|
694
|
+
const obj_entityLabel = obj.entityLabel;
|
|
695
|
+
const path_entityLabel = path + '.entityLabel';
|
|
696
|
+
if (typeof obj_entityLabel !== 'string') {
|
|
697
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityLabel + '" (at "' + path_entityLabel + '")');
|
|
698
|
+
}
|
|
699
|
+
const obj_entityName = obj.entityName;
|
|
700
|
+
const path_entityName = path + '.entityName';
|
|
701
|
+
if (typeof obj_entityName !== 'string') {
|
|
702
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityName + '" (at "' + path_entityName + '")');
|
|
703
|
+
}
|
|
704
|
+
const obj_userAssignments = obj.userAssignments;
|
|
705
|
+
const path_userAssignments = path + '.userAssignments';
|
|
706
|
+
if (!ArrayIsArray(obj_userAssignments)) {
|
|
707
|
+
return new TypeError('Expected "array" but received "' + typeof obj_userAssignments + '" (at "' + path_userAssignments + '")');
|
|
708
|
+
}
|
|
709
|
+
for (let i = 0; i < obj_userAssignments.length; i++) {
|
|
710
|
+
const obj_userAssignments_item = obj_userAssignments[i];
|
|
711
|
+
const path_userAssignments_item = path_userAssignments + '[' + i + ']';
|
|
712
|
+
const referencepath_userAssignments_itemValidationError = validate$l(obj_userAssignments_item, path_userAssignments_item);
|
|
713
|
+
if (referencepath_userAssignments_itemValidationError !== null) {
|
|
714
|
+
let message = 'Object doesn\'t match UserAssignmentRepresentation (at "' + path_userAssignments_item + '")\n';
|
|
715
|
+
message += referencepath_userAssignments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
716
|
+
return new TypeError(message);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
})();
|
|
720
|
+
return v_error === undefined ? null : v_error;
|
|
721
|
+
}
|
|
722
|
+
const select$q = function PublicGroupAssignmentComparisonRepresentationSelect() {
|
|
723
|
+
const { selections: UserAssignmentRepresentation__selections, opaque: UserAssignmentRepresentation__opaque, } = select$r();
|
|
724
|
+
return {
|
|
725
|
+
kind: 'Fragment',
|
|
726
|
+
version: VERSION$k,
|
|
727
|
+
private: [],
|
|
728
|
+
selections: [
|
|
729
|
+
{
|
|
730
|
+
name: 'entityId',
|
|
731
|
+
kind: 'Scalar'
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
name: 'entityLabel',
|
|
735
|
+
kind: 'Scalar'
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
name: 'entityName',
|
|
739
|
+
kind: 'Scalar'
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
name: 'userAssignments',
|
|
743
|
+
kind: 'Object',
|
|
744
|
+
plural: true,
|
|
745
|
+
selections: UserAssignmentRepresentation__selections
|
|
746
|
+
}
|
|
747
|
+
]
|
|
748
|
+
};
|
|
749
|
+
};
|
|
750
|
+
function equals$k(existing, incoming) {
|
|
751
|
+
const existing_entityId = existing.entityId;
|
|
752
|
+
const incoming_entityId = incoming.entityId;
|
|
753
|
+
if (!(existing_entityId === incoming_entityId)) {
|
|
754
|
+
return false;
|
|
755
|
+
}
|
|
756
|
+
const existing_entityLabel = existing.entityLabel;
|
|
757
|
+
const incoming_entityLabel = incoming.entityLabel;
|
|
758
|
+
if (!(existing_entityLabel === incoming_entityLabel)) {
|
|
759
|
+
return false;
|
|
760
|
+
}
|
|
761
|
+
const existing_entityName = existing.entityName;
|
|
762
|
+
const incoming_entityName = incoming.entityName;
|
|
763
|
+
if (!(existing_entityName === incoming_entityName)) {
|
|
764
|
+
return false;
|
|
765
|
+
}
|
|
766
|
+
const existing_userAssignments = existing.userAssignments;
|
|
767
|
+
const incoming_userAssignments = incoming.userAssignments;
|
|
768
|
+
const equals_userAssignments_items = equalsArray(existing_userAssignments, incoming_userAssignments, (existing_userAssignments_item, incoming_userAssignments_item) => {
|
|
769
|
+
if (!(equals$l(existing_userAssignments_item, incoming_userAssignments_item))) {
|
|
770
|
+
return false;
|
|
771
|
+
}
|
|
772
|
+
});
|
|
773
|
+
if (equals_userAssignments_items === false) {
|
|
774
|
+
return false;
|
|
775
|
+
}
|
|
776
|
+
return true;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
const VERSION$j = "e395895c0b59bebdfb5cd567f72b894a";
|
|
780
|
+
function validate$j(obj, path = 'QueueAssignmentComparisonRepresentation') {
|
|
781
|
+
const v_error = (() => {
|
|
782
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
783
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
784
|
+
}
|
|
785
|
+
const obj_entityId = obj.entityId;
|
|
786
|
+
const path_entityId = path + '.entityId';
|
|
787
|
+
if (typeof obj_entityId !== 'string') {
|
|
788
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityId + '" (at "' + path_entityId + '")');
|
|
789
|
+
}
|
|
790
|
+
const obj_entityLabel = obj.entityLabel;
|
|
791
|
+
const path_entityLabel = path + '.entityLabel';
|
|
792
|
+
if (typeof obj_entityLabel !== 'string') {
|
|
793
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityLabel + '" (at "' + path_entityLabel + '")');
|
|
794
|
+
}
|
|
795
|
+
const obj_entityName = obj.entityName;
|
|
796
|
+
const path_entityName = path + '.entityName';
|
|
797
|
+
if (typeof obj_entityName !== 'string') {
|
|
798
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityName + '" (at "' + path_entityName + '")');
|
|
799
|
+
}
|
|
800
|
+
const obj_userAssignments = obj.userAssignments;
|
|
801
|
+
const path_userAssignments = path + '.userAssignments';
|
|
802
|
+
if (!ArrayIsArray(obj_userAssignments)) {
|
|
803
|
+
return new TypeError('Expected "array" but received "' + typeof obj_userAssignments + '" (at "' + path_userAssignments + '")');
|
|
804
|
+
}
|
|
805
|
+
for (let i = 0; i < obj_userAssignments.length; i++) {
|
|
806
|
+
const obj_userAssignments_item = obj_userAssignments[i];
|
|
807
|
+
const path_userAssignments_item = path_userAssignments + '[' + i + ']';
|
|
808
|
+
const referencepath_userAssignments_itemValidationError = validate$l(obj_userAssignments_item, path_userAssignments_item);
|
|
809
|
+
if (referencepath_userAssignments_itemValidationError !== null) {
|
|
810
|
+
let message = 'Object doesn\'t match UserAssignmentRepresentation (at "' + path_userAssignments_item + '")\n';
|
|
811
|
+
message += referencepath_userAssignments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
812
|
+
return new TypeError(message);
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
})();
|
|
816
|
+
return v_error === undefined ? null : v_error;
|
|
817
|
+
}
|
|
818
|
+
const select$p = function QueueAssignmentComparisonRepresentationSelect() {
|
|
819
|
+
const { selections: UserAssignmentRepresentation__selections, opaque: UserAssignmentRepresentation__opaque, } = select$r();
|
|
820
|
+
return {
|
|
821
|
+
kind: 'Fragment',
|
|
822
|
+
version: VERSION$j,
|
|
823
|
+
private: [],
|
|
824
|
+
selections: [
|
|
825
|
+
{
|
|
826
|
+
name: 'entityId',
|
|
827
|
+
kind: 'Scalar'
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
name: 'entityLabel',
|
|
831
|
+
kind: 'Scalar'
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
name: 'entityName',
|
|
835
|
+
kind: 'Scalar'
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
name: 'userAssignments',
|
|
839
|
+
kind: 'Object',
|
|
840
|
+
plural: true,
|
|
841
|
+
selections: UserAssignmentRepresentation__selections
|
|
842
|
+
}
|
|
843
|
+
]
|
|
844
|
+
};
|
|
845
|
+
};
|
|
846
|
+
function equals$j(existing, incoming) {
|
|
847
|
+
const existing_entityId = existing.entityId;
|
|
848
|
+
const incoming_entityId = incoming.entityId;
|
|
849
|
+
if (!(existing_entityId === incoming_entityId)) {
|
|
850
|
+
return false;
|
|
851
|
+
}
|
|
852
|
+
const existing_entityLabel = existing.entityLabel;
|
|
853
|
+
const incoming_entityLabel = incoming.entityLabel;
|
|
854
|
+
if (!(existing_entityLabel === incoming_entityLabel)) {
|
|
855
|
+
return false;
|
|
856
|
+
}
|
|
857
|
+
const existing_entityName = existing.entityName;
|
|
858
|
+
const incoming_entityName = incoming.entityName;
|
|
859
|
+
if (!(existing_entityName === incoming_entityName)) {
|
|
860
|
+
return false;
|
|
861
|
+
}
|
|
862
|
+
const existing_userAssignments = existing.userAssignments;
|
|
863
|
+
const incoming_userAssignments = incoming.userAssignments;
|
|
864
|
+
const equals_userAssignments_items = equalsArray(existing_userAssignments, incoming_userAssignments, (existing_userAssignments_item, incoming_userAssignments_item) => {
|
|
865
|
+
if (!(equals$l(existing_userAssignments_item, incoming_userAssignments_item))) {
|
|
866
|
+
return false;
|
|
867
|
+
}
|
|
868
|
+
});
|
|
869
|
+
if (equals_userAssignments_items === false) {
|
|
870
|
+
return false;
|
|
871
|
+
}
|
|
872
|
+
return true;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
const TTL$5 = 300;
|
|
876
|
+
const VERSION$i = "6bc69197dbd16addf30f2b16af7bb9e5";
|
|
877
|
+
function validate$i(obj, path = 'CompareUserAssignmentsRepresentation') {
|
|
878
|
+
const v_error = (() => {
|
|
879
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
880
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
881
|
+
}
|
|
882
|
+
const obj_entityType = obj.entityType;
|
|
883
|
+
const path_entityType = path + '.entityType';
|
|
884
|
+
if (typeof obj_entityType !== 'string') {
|
|
885
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityType + '" (at "' + path_entityType + '")');
|
|
886
|
+
}
|
|
887
|
+
const obj_publicGroupAssignments = obj.publicGroupAssignments;
|
|
888
|
+
const path_publicGroupAssignments = path + '.publicGroupAssignments';
|
|
889
|
+
if (!ArrayIsArray(obj_publicGroupAssignments)) {
|
|
890
|
+
return new TypeError('Expected "array" but received "' + typeof obj_publicGroupAssignments + '" (at "' + path_publicGroupAssignments + '")');
|
|
891
|
+
}
|
|
892
|
+
for (let i = 0; i < obj_publicGroupAssignments.length; i++) {
|
|
893
|
+
const obj_publicGroupAssignments_item = obj_publicGroupAssignments[i];
|
|
894
|
+
const path_publicGroupAssignments_item = path_publicGroupAssignments + '[' + i + ']';
|
|
895
|
+
const referencepath_publicGroupAssignments_itemValidationError = validate$k(obj_publicGroupAssignments_item, path_publicGroupAssignments_item);
|
|
896
|
+
if (referencepath_publicGroupAssignments_itemValidationError !== null) {
|
|
897
|
+
let message = 'Object doesn\'t match PublicGroupAssignmentComparisonRepresentation (at "' + path_publicGroupAssignments_item + '")\n';
|
|
898
|
+
message += referencepath_publicGroupAssignments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
899
|
+
return new TypeError(message);
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
const obj_queueAssignments = obj.queueAssignments;
|
|
903
|
+
const path_queueAssignments = path + '.queueAssignments';
|
|
904
|
+
if (!ArrayIsArray(obj_queueAssignments)) {
|
|
905
|
+
return new TypeError('Expected "array" but received "' + typeof obj_queueAssignments + '" (at "' + path_queueAssignments + '")');
|
|
906
|
+
}
|
|
907
|
+
for (let i = 0; i < obj_queueAssignments.length; i++) {
|
|
908
|
+
const obj_queueAssignments_item = obj_queueAssignments[i];
|
|
909
|
+
const path_queueAssignments_item = path_queueAssignments + '[' + i + ']';
|
|
910
|
+
const referencepath_queueAssignments_itemValidationError = validate$j(obj_queueAssignments_item, path_queueAssignments_item);
|
|
911
|
+
if (referencepath_queueAssignments_itemValidationError !== null) {
|
|
912
|
+
let message = 'Object doesn\'t match QueueAssignmentComparisonRepresentation (at "' + path_queueAssignments_item + '")\n';
|
|
913
|
+
message += referencepath_queueAssignments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
914
|
+
return new TypeError(message);
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
})();
|
|
918
|
+
return v_error === undefined ? null : v_error;
|
|
919
|
+
}
|
|
920
|
+
const RepresentationType$5 = 'CompareUserAssignmentsRepresentation';
|
|
921
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
922
|
+
return input;
|
|
923
|
+
}
|
|
924
|
+
const select$o = function CompareUserAssignmentsRepresentationSelect() {
|
|
925
|
+
const { selections: PublicGroupAssignmentComparisonRepresentation__selections, opaque: PublicGroupAssignmentComparisonRepresentation__opaque, } = select$q();
|
|
926
|
+
const { selections: QueueAssignmentComparisonRepresentation__selections, opaque: QueueAssignmentComparisonRepresentation__opaque, } = select$p();
|
|
927
|
+
return {
|
|
928
|
+
kind: 'Fragment',
|
|
929
|
+
version: VERSION$i,
|
|
930
|
+
private: [],
|
|
931
|
+
selections: [
|
|
932
|
+
{
|
|
933
|
+
name: 'entityType',
|
|
934
|
+
kind: 'Scalar'
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
name: 'publicGroupAssignments',
|
|
938
|
+
kind: 'Object',
|
|
939
|
+
plural: true,
|
|
940
|
+
selections: PublicGroupAssignmentComparisonRepresentation__selections
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
name: 'queueAssignments',
|
|
944
|
+
kind: 'Object',
|
|
945
|
+
plural: true,
|
|
946
|
+
selections: QueueAssignmentComparisonRepresentation__selections
|
|
947
|
+
}
|
|
948
|
+
]
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
function equals$i(existing, incoming) {
|
|
952
|
+
const existing_entityType = existing.entityType;
|
|
953
|
+
const incoming_entityType = incoming.entityType;
|
|
954
|
+
if (!(existing_entityType === incoming_entityType)) {
|
|
955
|
+
return false;
|
|
956
|
+
}
|
|
957
|
+
const existing_publicGroupAssignments = existing.publicGroupAssignments;
|
|
958
|
+
const incoming_publicGroupAssignments = incoming.publicGroupAssignments;
|
|
959
|
+
const equals_publicGroupAssignments_items = equalsArray(existing_publicGroupAssignments, incoming_publicGroupAssignments, (existing_publicGroupAssignments_item, incoming_publicGroupAssignments_item) => {
|
|
960
|
+
if (!(equals$k(existing_publicGroupAssignments_item, incoming_publicGroupAssignments_item))) {
|
|
961
|
+
return false;
|
|
962
|
+
}
|
|
963
|
+
});
|
|
964
|
+
if (equals_publicGroupAssignments_items === false) {
|
|
965
|
+
return false;
|
|
966
|
+
}
|
|
967
|
+
const existing_queueAssignments = existing.queueAssignments;
|
|
968
|
+
const incoming_queueAssignments = incoming.queueAssignments;
|
|
969
|
+
const equals_queueAssignments_items = equalsArray(existing_queueAssignments, incoming_queueAssignments, (existing_queueAssignments_item, incoming_queueAssignments_item) => {
|
|
970
|
+
if (!(equals$j(existing_queueAssignments_item, incoming_queueAssignments_item))) {
|
|
971
|
+
return false;
|
|
972
|
+
}
|
|
973
|
+
});
|
|
974
|
+
if (equals_queueAssignments_items === false) {
|
|
975
|
+
return false;
|
|
976
|
+
}
|
|
977
|
+
return true;
|
|
978
|
+
}
|
|
979
|
+
const ingest$5 = function CompareUserAssignmentsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
467
980
|
if (process.env.NODE_ENV !== 'production') {
|
|
468
981
|
const validateError = validate$i(input);
|
|
469
982
|
if (validateError !== null) {
|
|
@@ -489,7 +1002,7 @@ function select$n(luvio, params) {
|
|
|
489
1002
|
return select$o();
|
|
490
1003
|
}
|
|
491
1004
|
function keyBuilder$b(luvio, params) {
|
|
492
|
-
return keyPrefix + '::
|
|
1005
|
+
return keyPrefix + '::CompareUserAssignmentsRepresentation:(' + 'userIds:' + params.body.userIds + '::' + 'entityType:' + params.body.entityType + '::' + 'limit:' + params.body.limit + '::' + 'offset:' + params.body.offset + '::' + 'sortBy:' + params.body.sortBy + '::' + 'sortOrder:' + params.body.sortOrder + '::' + 'searchTerm:' + params.body.searchTerm + '::' + 'showOnlyDifferences:' + params.body.showOnlyDifferences + ')';
|
|
493
1006
|
}
|
|
494
1007
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
495
1008
|
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
@@ -527,36 +1040,36 @@ function createResourceRequest$5(config) {
|
|
|
527
1040
|
const headers = {};
|
|
528
1041
|
return {
|
|
529
1042
|
baseUri: '/services/data/v67.0',
|
|
530
|
-
basePath: '/sharing/
|
|
531
|
-
method: '
|
|
532
|
-
body:
|
|
533
|
-
urlParams:
|
|
534
|
-
queryParams:
|
|
1043
|
+
basePath: '/sharing/compareUserAssignments',
|
|
1044
|
+
method: 'post',
|
|
1045
|
+
body: config.body,
|
|
1046
|
+
urlParams: {},
|
|
1047
|
+
queryParams: {},
|
|
535
1048
|
headers,
|
|
536
1049
|
priority: 'normal',
|
|
537
1050
|
};
|
|
538
1051
|
}
|
|
539
1052
|
|
|
540
|
-
const adapterName$5 = '
|
|
541
|
-
const
|
|
542
|
-
generateParamConfigMetadata('
|
|
543
|
-
generateParamConfigMetadata('
|
|
544
|
-
generateParamConfigMetadata('limit',
|
|
545
|
-
generateParamConfigMetadata('offset',
|
|
546
|
-
generateParamConfigMetadata('sortBy',
|
|
547
|
-
generateParamConfigMetadata('sortOrder',
|
|
548
|
-
generateParamConfigMetadata('
|
|
549
|
-
generateParamConfigMetadata('
|
|
1053
|
+
const adapterName$5 = 'compareUserAssignments';
|
|
1054
|
+
const compareUserAssignments_ConfigPropertyMetadata = [
|
|
1055
|
+
generateParamConfigMetadata('userIds', true, 2 /* Body */, 0 /* String */, true),
|
|
1056
|
+
generateParamConfigMetadata('entityType', true, 2 /* Body */, 0 /* String */),
|
|
1057
|
+
generateParamConfigMetadata('limit', true, 2 /* Body */, 3 /* Integer */),
|
|
1058
|
+
generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
|
|
1059
|
+
generateParamConfigMetadata('sortBy', true, 2 /* Body */, 0 /* String */),
|
|
1060
|
+
generateParamConfigMetadata('sortOrder', true, 2 /* Body */, 0 /* String */),
|
|
1061
|
+
generateParamConfigMetadata('searchTerm', true, 2 /* Body */, 0 /* String */),
|
|
1062
|
+
generateParamConfigMetadata('showOnlyDifferences', true, 2 /* Body */, 1 /* Boolean */),
|
|
550
1063
|
];
|
|
551
|
-
const
|
|
552
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
1064
|
+
const compareUserAssignments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, compareUserAssignments_ConfigPropertyMetadata);
|
|
1065
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(compareUserAssignments_ConfigPropertyMetadata);
|
|
553
1066
|
function keyBuilder$a(luvio, config) {
|
|
554
1067
|
const resourceParams = createResourceParams$5(config);
|
|
555
1068
|
return keyBuilder$b(luvio, resourceParams);
|
|
556
1069
|
}
|
|
557
1070
|
function typeCheckConfig$5(untrustedConfig) {
|
|
558
1071
|
const config = {};
|
|
559
|
-
typeCheckConfig$
|
|
1072
|
+
typeCheckConfig$7(untrustedConfig, config, compareUserAssignments_ConfigPropertyMetadata);
|
|
560
1073
|
return config;
|
|
561
1074
|
}
|
|
562
1075
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -605,7 +1118,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
605
1118
|
});
|
|
606
1119
|
}
|
|
607
1120
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
608
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1121
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, 'get', false);
|
|
609
1122
|
}
|
|
610
1123
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
611
1124
|
const { luvio, config } = context;
|
|
@@ -620,8 +1133,8 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
|
620
1133
|
});
|
|
621
1134
|
return cacheSnapshot;
|
|
622
1135
|
}
|
|
623
|
-
const
|
|
624
|
-
const config = validateAdapterConfig$5(untrustedConfig,
|
|
1136
|
+
const compareUserAssignmentsAdapterFactory = (luvio) => function sharing__compareUserAssignments(untrustedConfig, requestContext) {
|
|
1137
|
+
const config = validateAdapterConfig$5(untrustedConfig, compareUserAssignments_ConfigPropertyNames);
|
|
625
1138
|
// Invalid or incomplete config
|
|
626
1139
|
if (config === null) {
|
|
627
1140
|
return null;
|
|
@@ -820,14 +1333,14 @@ const addRemoveUserToGroups_ConfigPropertyMetadata = [
|
|
|
820
1333
|
generateParamConfigMetadata('selectedGroups', true, 2 /* Body */, 0 /* String */, true),
|
|
821
1334
|
];
|
|
822
1335
|
const addRemoveUserToGroups_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, addRemoveUserToGroups_ConfigPropertyMetadata);
|
|
823
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
1336
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(addRemoveUserToGroups_ConfigPropertyMetadata);
|
|
824
1337
|
function keyBuilder$8(luvio, config) {
|
|
825
1338
|
const resourceParams = createResourceParams$4(config);
|
|
826
1339
|
return keyBuilder$9(luvio, resourceParams);
|
|
827
1340
|
}
|
|
828
1341
|
function typeCheckConfig$4(untrustedConfig) {
|
|
829
1342
|
const config = {};
|
|
830
|
-
typeCheckConfig$
|
|
1343
|
+
typeCheckConfig$7(untrustedConfig, config, addRemoveUserToGroups_ConfigPropertyMetadata);
|
|
831
1344
|
return config;
|
|
832
1345
|
}
|
|
833
1346
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -876,7 +1389,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
876
1389
|
});
|
|
877
1390
|
}
|
|
878
1391
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
879
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1392
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, 'get', false);
|
|
880
1393
|
}
|
|
881
1394
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
882
1395
|
const { luvio, config } = context;
|
|
@@ -1621,14 +2134,14 @@ const getPublicGroupMembershipDetails_ConfigPropertyMetadata = [
|
|
|
1621
2134
|
generateParamConfigMetadata('selectedMembers', true, 2 /* Body */, 0 /* String */, true),
|
|
1622
2135
|
];
|
|
1623
2136
|
const getPublicGroupMembershipDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getPublicGroupMembershipDetails_ConfigPropertyMetadata);
|
|
1624
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
2137
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(getPublicGroupMembershipDetails_ConfigPropertyMetadata);
|
|
1625
2138
|
function keyBuilder$6(luvio, config) {
|
|
1626
2139
|
const resourceParams = createResourceParams$3(config);
|
|
1627
2140
|
return keyBuilder$7(luvio, resourceParams);
|
|
1628
2141
|
}
|
|
1629
2142
|
function typeCheckConfig$3(untrustedConfig) {
|
|
1630
2143
|
const config = {};
|
|
1631
|
-
typeCheckConfig$
|
|
2144
|
+
typeCheckConfig$7(untrustedConfig, config, getPublicGroupMembershipDetails_ConfigPropertyMetadata);
|
|
1632
2145
|
const untrustedConfig_filterCriteria = untrustedConfig.filterCriteria;
|
|
1633
2146
|
config.filterCriteria = untrustedConfig_filterCriteria;
|
|
1634
2147
|
return config;
|
|
@@ -1679,7 +2192,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
1679
2192
|
});
|
|
1680
2193
|
}
|
|
1681
2194
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
1682
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2195
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, 'get', false);
|
|
1683
2196
|
}
|
|
1684
2197
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
1685
2198
|
const { luvio, config } = context;
|
|
@@ -2820,14 +3333,14 @@ const getPublicGroupShareData_ConfigPropertyMetadata = [
|
|
|
2820
3333
|
generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
|
|
2821
3334
|
];
|
|
2822
3335
|
const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
2823
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
3336
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(getPublicGroupShareData_ConfigPropertyMetadata);
|
|
2824
3337
|
function keyBuilder$4(luvio, config) {
|
|
2825
3338
|
const resourceParams = createResourceParams$2(config);
|
|
2826
3339
|
return keyBuilder$5(luvio, resourceParams);
|
|
2827
3340
|
}
|
|
2828
3341
|
function typeCheckConfig$2(untrustedConfig) {
|
|
2829
3342
|
const config = {};
|
|
2830
|
-
typeCheckConfig$
|
|
3343
|
+
typeCheckConfig$7(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
2831
3344
|
return config;
|
|
2832
3345
|
}
|
|
2833
3346
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -2876,7 +3389,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
2876
3389
|
});
|
|
2877
3390
|
}
|
|
2878
3391
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
2879
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3392
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, 'get', false);
|
|
2880
3393
|
}
|
|
2881
3394
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
2882
3395
|
const { luvio, config } = context;
|
|
@@ -3132,14 +3645,14 @@ const getAllSobjects_ConfigPropertyMetadata = [
|
|
|
3132
3645
|
generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3133
3646
|
];
|
|
3134
3647
|
const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getAllSobjects_ConfigPropertyMetadata);
|
|
3135
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
3648
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(getAllSobjects_ConfigPropertyMetadata);
|
|
3136
3649
|
function keyBuilder$2(luvio, config) {
|
|
3137
3650
|
const resourceParams = createResourceParams$1(config);
|
|
3138
3651
|
return keyBuilder$3(luvio, resourceParams);
|
|
3139
3652
|
}
|
|
3140
3653
|
function typeCheckConfig$1(untrustedConfig) {
|
|
3141
3654
|
const config = {};
|
|
3142
|
-
typeCheckConfig$
|
|
3655
|
+
typeCheckConfig$7(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
|
|
3143
3656
|
return config;
|
|
3144
3657
|
}
|
|
3145
3658
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -3188,7 +3701,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
3188
3701
|
});
|
|
3189
3702
|
}
|
|
3190
3703
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
3191
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3704
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
3192
3705
|
}
|
|
3193
3706
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
3194
3707
|
const { luvio, config } = context;
|
|
@@ -3526,14 +4039,14 @@ const getUserPermissions_ConfigPropertyMetadata = [
|
|
|
3526
4039
|
generateParamConfigMetadata('recordId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
3527
4040
|
];
|
|
3528
4041
|
const getUserPermissions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getUserPermissions_ConfigPropertyMetadata);
|
|
3529
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
4042
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$7(getUserPermissions_ConfigPropertyMetadata);
|
|
3530
4043
|
function keyBuilder(luvio, config) {
|
|
3531
4044
|
const resourceParams = createResourceParams(config);
|
|
3532
4045
|
return keyBuilder$1(luvio, resourceParams);
|
|
3533
4046
|
}
|
|
3534
4047
|
function typeCheckConfig(untrustedConfig) {
|
|
3535
4048
|
const config = {};
|
|
3536
|
-
typeCheckConfig$
|
|
4049
|
+
typeCheckConfig$7(untrustedConfig, config, getUserPermissions_ConfigPropertyMetadata);
|
|
3537
4050
|
return config;
|
|
3538
4051
|
}
|
|
3539
4052
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -3582,7 +4095,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
3582
4095
|
});
|
|
3583
4096
|
}
|
|
3584
4097
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
3585
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4098
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
3586
4099
|
}
|
|
3587
4100
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
3588
4101
|
const { luvio, config } = context;
|
|
@@ -3607,4 +4120,4 @@ const getUserPermissionsAdapterFactory = (luvio) => function sharing__getUserPer
|
|
|
3607
4120
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
3608
4121
|
};
|
|
3609
4122
|
|
|
3610
|
-
export { addRemoveUserToGroupsAdapterFactory, getAllSobjectsAdapterFactory, getGroupsForUserAdapterFactory, getPublicGroupMembershipDetailsAdapterFactory, getPublicGroupShareDataAdapterFactory, getUserPermissionsAdapterFactory };
|
|
4123
|
+
export { addRemoveUserToGroupsAdapterFactory, compareUserAssignmentsAdapterFactory, getAllSobjectsAdapterFactory, getGroupsForUserAdapterFactory, getPublicGroupMembershipDetailsAdapterFactory, getPublicGroupShareDataAdapterFactory, getUserPermissionsAdapterFactory };
|