@salesforce/lds-adapters-platform-sharing 1.282.0 → 1.284.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.
@@ -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$3, typeCheckConfig as typeCheckConfig$3, StoreKeyMap, createResourceParams as createResourceParams$3 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckConfig as typeCheckConfig$4, StoreKeyMap, createResourceParams as createResourceParams$4 } 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$a = "252bb771341222662b0b76c855414e1f";
95
- function validate$a(obj, path = 'PublicGroupRepresentation') {
94
+ const VERSION$c = "252bb771341222662b0b76c855414e1f";
95
+ function validate$c(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 + '")');
@@ -115,10 +115,10 @@ function validate$a(obj, path = 'PublicGroupRepresentation') {
115
115
  })();
116
116
  return v_error === undefined ? null : v_error;
117
117
  }
118
- const select$d = function PublicGroupRepresentationSelect() {
118
+ const select$g = function PublicGroupRepresentationSelect() {
119
119
  return {
120
120
  kind: 'Fragment',
121
- version: VERSION$a,
121
+ version: VERSION$c,
122
122
  private: [],
123
123
  selections: [
124
124
  {
@@ -136,7 +136,7 @@ const select$d = function PublicGroupRepresentationSelect() {
136
136
  ]
137
137
  };
138
138
  };
139
- function equals$a(existing, incoming) {
139
+ function equals$c(existing, incoming) {
140
140
  const existing_includeBosses = existing.includeBosses;
141
141
  const incoming_includeBosses = incoming.includeBosses;
142
142
  if (!(existing_includeBosses === incoming_includeBosses)) {
@@ -155,8 +155,8 @@ function equals$a(existing, incoming) {
155
155
  return true;
156
156
  }
157
157
 
158
- const VERSION$9 = "9371d1d2e640f37aa01c377fc78d6ef7";
159
- function validate$9(obj, path = 'QueueRepresentation') {
158
+ const VERSION$b = "9371d1d2e640f37aa01c377fc78d6ef7";
159
+ function validate$b(obj, path = 'QueueRepresentation') {
160
160
  const v_error = (() => {
161
161
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
162
162
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -174,10 +174,10 @@ function validate$9(obj, path = 'QueueRepresentation') {
174
174
  })();
175
175
  return v_error === undefined ? null : v_error;
176
176
  }
177
- const select$c = function QueueRepresentationSelect() {
177
+ const select$f = function QueueRepresentationSelect() {
178
178
  return {
179
179
  kind: 'Fragment',
180
- version: VERSION$9,
180
+ version: VERSION$b,
181
181
  private: [],
182
182
  selections: [
183
183
  {
@@ -191,7 +191,7 @@ const select$c = function QueueRepresentationSelect() {
191
191
  ]
192
192
  };
193
193
  };
194
- function equals$9(existing, incoming) {
194
+ function equals$b(existing, incoming) {
195
195
  const existing_developerName = existing.developerName;
196
196
  const incoming_developerName = incoming.developerName;
197
197
  if (!(existing_developerName === incoming_developerName)) {
@@ -205,9 +205,9 @@ function equals$9(existing, incoming) {
205
205
  return true;
206
206
  }
207
207
 
208
- const TTL$2 = 300;
209
- const VERSION$8 = "3659c4a4f46957a3a2b5cb2d2383180d";
210
- function validate$8(obj, path = 'GroupCollectionRepresentation') {
208
+ const TTL$3 = 300;
209
+ const VERSION$a = "3659c4a4f46957a3a2b5cb2d2383180d";
210
+ function validate$a(obj, path = 'GroupCollectionRepresentation') {
211
211
  const v_error = (() => {
212
212
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
213
213
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -220,7 +220,7 @@ function validate$8(obj, path = 'GroupCollectionRepresentation') {
220
220
  for (let i = 0; i < obj_publicGroupRepresentations.length; i++) {
221
221
  const obj_publicGroupRepresentations_item = obj_publicGroupRepresentations[i];
222
222
  const path_publicGroupRepresentations_item = path_publicGroupRepresentations + '[' + i + ']';
223
- const referencepath_publicGroupRepresentations_itemValidationError = validate$a(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
223
+ const referencepath_publicGroupRepresentations_itemValidationError = validate$c(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
224
224
  if (referencepath_publicGroupRepresentations_itemValidationError !== null) {
225
225
  let message = 'Object doesn\'t match PublicGroupRepresentation (at "' + path_publicGroupRepresentations_item + '")\n';
226
226
  message += referencepath_publicGroupRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -235,7 +235,7 @@ function validate$8(obj, path = 'GroupCollectionRepresentation') {
235
235
  for (let i = 0; i < obj_queueRepresentations.length; i++) {
236
236
  const obj_queueRepresentations_item = obj_queueRepresentations[i];
237
237
  const path_queueRepresentations_item = path_queueRepresentations + '[' + i + ']';
238
- const referencepath_queueRepresentations_itemValidationError = validate$9(obj_queueRepresentations_item, path_queueRepresentations_item);
238
+ const referencepath_queueRepresentations_itemValidationError = validate$b(obj_queueRepresentations_item, path_queueRepresentations_item);
239
239
  if (referencepath_queueRepresentations_itemValidationError !== null) {
240
240
  let message = 'Object doesn\'t match QueueRepresentation (at "' + path_queueRepresentations_item + '")\n';
241
241
  message += referencepath_queueRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -245,16 +245,16 @@ function validate$8(obj, path = 'GroupCollectionRepresentation') {
245
245
  })();
246
246
  return v_error === undefined ? null : v_error;
247
247
  }
248
- const RepresentationType$2 = 'GroupCollectionRepresentation';
249
- function normalize$2(input, existing, path, luvio, store, timestamp) {
248
+ const RepresentationType$3 = 'GroupCollectionRepresentation';
249
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
250
250
  return input;
251
251
  }
252
- const select$b = function GroupCollectionRepresentationSelect() {
253
- const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$d();
254
- const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$c();
252
+ const select$e = function GroupCollectionRepresentationSelect() {
253
+ const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$g();
254
+ const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$f();
255
255
  return {
256
256
  kind: 'Fragment',
257
- version: VERSION$8,
257
+ version: VERSION$a,
258
258
  private: [],
259
259
  selections: [
260
260
  {
@@ -272,11 +272,11 @@ const select$b = function GroupCollectionRepresentationSelect() {
272
272
  ]
273
273
  };
274
274
  };
275
- function equals$8(existing, incoming) {
275
+ function equals$a(existing, incoming) {
276
276
  const existing_publicGroupRepresentations = existing.publicGroupRepresentations;
277
277
  const incoming_publicGroupRepresentations = incoming.publicGroupRepresentations;
278
278
  const equals_publicGroupRepresentations_items = equalsArray(existing_publicGroupRepresentations, incoming_publicGroupRepresentations, (existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item) => {
279
- if (!(equals$a(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
279
+ if (!(equals$c(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
280
280
  return false;
281
281
  }
282
282
  });
@@ -286,7 +286,7 @@ function equals$8(existing, incoming) {
286
286
  const existing_queueRepresentations = existing.queueRepresentations;
287
287
  const incoming_queueRepresentations = incoming.queueRepresentations;
288
288
  const equals_queueRepresentations_items = equalsArray(existing_queueRepresentations, incoming_queueRepresentations, (existing_queueRepresentations_item, incoming_queueRepresentations_item) => {
289
- if (!(equals$9(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
289
+ if (!(equals$b(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
290
290
  return false;
291
291
  }
292
292
  });
@@ -295,44 +295,44 @@ function equals$8(existing, incoming) {
295
295
  }
296
296
  return true;
297
297
  }
298
- const ingest$2 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
298
+ const ingest$3 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
299
299
  if (process.env.NODE_ENV !== 'production') {
300
- const validateError = validate$8(input);
300
+ const validateError = validate$a(input);
301
301
  if (validateError !== null) {
302
302
  throw validateError;
303
303
  }
304
304
  }
305
305
  const key = path.fullPath;
306
- const ttlToUse = TTL$2;
307
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "sharing", VERSION$8, RepresentationType$2, equals$8);
306
+ const ttlToUse = TTL$3;
307
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "sharing", VERSION$a, RepresentationType$3, equals$a);
308
308
  return createLink(key);
309
309
  };
310
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
310
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
311
311
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
312
312
  const rootKey = fullPathFactory();
313
313
  rootKeySet.set(rootKey, {
314
314
  namespace: keyPrefix,
315
- representationName: RepresentationType$2,
315
+ representationName: RepresentationType$3,
316
316
  mergeable: false
317
317
  });
318
318
  }
319
319
 
320
- function select$a(luvio, params) {
321
- return select$b();
320
+ function select$d(luvio, params) {
321
+ return select$e();
322
322
  }
323
- function keyBuilder$5(luvio, params) {
324
- return keyPrefix + '::GroupCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'groupType:' + params.urlParams.groupType + ',' + 'userId:' + params.urlParams.userId + ')';
323
+ function keyBuilder$7(luvio, params) {
324
+ 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 + ')';
325
325
  }
326
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
327
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
326
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
327
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
328
328
  }
329
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
329
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
330
330
  const { body } = response;
331
- const key = keyBuilder$5(luvio, resourceParams);
332
- luvio.storeIngest(key, ingest$2, body);
331
+ const key = keyBuilder$7(luvio, resourceParams);
332
+ luvio.storeIngest(key, ingest$3, body);
333
333
  const snapshot = luvio.storeLookup({
334
334
  recordId: key,
335
- node: select$a(),
335
+ node: select$d(),
336
336
  variables: {},
337
337
  }, snapshotRefresh);
338
338
  if (process.env.NODE_ENV !== 'production') {
@@ -343,19 +343,19 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
343
343
  deepFreeze(snapshot.data);
344
344
  return snapshot;
345
345
  }
346
- function ingestError$2(luvio, params, error, snapshotRefresh) {
347
- const key = keyBuilder$5(luvio, params);
346
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
347
+ const key = keyBuilder$7(luvio, params);
348
348
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
349
349
  const storeMetadataParams = {
350
- ttl: TTL$2,
350
+ ttl: TTL$3,
351
351
  namespace: keyPrefix,
352
- version: VERSION$8,
353
- representationName: RepresentationType$2
352
+ version: VERSION$a,
353
+ representationName: RepresentationType$3
354
354
  };
355
355
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
356
356
  return errorSnapshot;
357
357
  }
358
- function createResourceRequest$2(config) {
358
+ function createResourceRequest$3(config) {
359
359
  const headers = {};
360
360
  return {
361
361
  baseUri: '/services/data/v61.0',
@@ -369,97 +369,99 @@ function createResourceRequest$2(config) {
369
369
  };
370
370
  }
371
371
 
372
- const adapterName$2 = 'getGroupsForUser';
372
+ const adapterName$3 = 'getGroupsForUser';
373
373
  const getGroupsForUser_ConfigPropertyMetadata = [
374
374
  generateParamConfigMetadata('groupType', true, 0 /* UrlParameter */, 0 /* String */),
375
375
  generateParamConfigMetadata('userId', true, 0 /* UrlParameter */, 0 /* String */),
376
376
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
377
377
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
378
+ generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
379
+ generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
378
380
  ];
379
- const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getGroupsForUser_ConfigPropertyMetadata);
380
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(getGroupsForUser_ConfigPropertyMetadata);
381
- function keyBuilder$4(luvio, config) {
382
- const resourceParams = createResourceParams$2(config);
383
- return keyBuilder$5(luvio, resourceParams);
381
+ const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getGroupsForUser_ConfigPropertyMetadata);
382
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(getGroupsForUser_ConfigPropertyMetadata);
383
+ function keyBuilder$6(luvio, config) {
384
+ const resourceParams = createResourceParams$3(config);
385
+ return keyBuilder$7(luvio, resourceParams);
384
386
  }
385
- function typeCheckConfig$2(untrustedConfig) {
387
+ function typeCheckConfig$3(untrustedConfig) {
386
388
  const config = {};
387
- typeCheckConfig$3(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
389
+ typeCheckConfig$4(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
388
390
  return config;
389
391
  }
390
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
392
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
391
393
  if (!untrustedIsObject(untrustedConfig)) {
392
394
  return null;
393
395
  }
394
396
  if (process.env.NODE_ENV !== 'production') {
395
397
  validateConfig(untrustedConfig, configPropertyNames);
396
398
  }
397
- const config = typeCheckConfig$2(untrustedConfig);
399
+ const config = typeCheckConfig$3(untrustedConfig);
398
400
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
399
401
  return null;
400
402
  }
401
403
  return config;
402
404
  }
403
- function adapterFragment$2(luvio, config) {
404
- createResourceParams$2(config);
405
- return select$a();
405
+ function adapterFragment$3(luvio, config) {
406
+ createResourceParams$3(config);
407
+ return select$d();
406
408
  }
407
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
408
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
409
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
410
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
409
411
  config,
410
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
412
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
411
413
  });
412
414
  return luvio.storeBroadcast().then(() => snapshot);
413
415
  }
414
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
415
- const snapshot = ingestError$2(luvio, resourceParams, response, {
416
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
417
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
416
418
  config,
417
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
419
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
418
420
  });
419
421
  return luvio.storeBroadcast().then(() => snapshot);
420
422
  }
421
- function buildNetworkSnapshot$2(luvio, config, options) {
422
- const resourceParams = createResourceParams$2(config);
423
- const request = createResourceRequest$2(resourceParams);
423
+ function buildNetworkSnapshot$3(luvio, config, options) {
424
+ const resourceParams = createResourceParams$3(config);
425
+ const request = createResourceRequest$3(resourceParams);
424
426
  return luvio.dispatchResourceRequest(request, options)
425
427
  .then((response) => {
426
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
428
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
427
429
  const cache = new StoreKeyMap();
428
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
430
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
429
431
  return cache;
430
432
  });
431
433
  }, (response) => {
432
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
434
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
433
435
  });
434
436
  }
435
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
436
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
437
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
438
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
437
439
  }
438
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
440
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
439
441
  const { luvio, config } = context;
440
442
  const selector = {
441
- recordId: keyBuilder$4(luvio, config),
442
- node: adapterFragment$2(luvio, config),
443
+ recordId: keyBuilder$6(luvio, config),
444
+ node: adapterFragment$3(luvio, config),
443
445
  variables: {},
444
446
  };
445
447
  const cacheSnapshot = storeLookup(selector, {
446
448
  config,
447
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
449
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
448
450
  });
449
451
  return cacheSnapshot;
450
452
  }
451
453
  const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsForUser(untrustedConfig, requestContext) {
452
- const config = validateAdapterConfig$2(untrustedConfig, getGroupsForUser_ConfigPropertyNames);
454
+ const config = validateAdapterConfig$3(untrustedConfig, getGroupsForUser_ConfigPropertyNames);
453
455
  // Invalid or incomplete config
454
456
  if (config === null) {
455
457
  return null;
456
458
  }
457
459
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
458
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
460
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
459
461
  };
460
462
 
461
- const VERSION$7 = "11e587d0bd769c0df33d7cce4eb7210d";
462
- function validate$7(obj, path = 'IncludedGroupsSharingRepresentation') {
463
+ const VERSION$9 = "11e587d0bd769c0df33d7cce4eb7210d";
464
+ function validate$9(obj, path = 'IncludedGroupsSharingRepresentation') {
463
465
  const v_error = (() => {
464
466
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
465
467
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -492,10 +494,10 @@ function validate$7(obj, path = 'IncludedGroupsSharingRepresentation') {
492
494
  })();
493
495
  return v_error === undefined ? null : v_error;
494
496
  }
495
- const select$9 = function IncludedGroupsSharingRepresentationSelect() {
497
+ const select$c = function IncludedGroupsSharingRepresentationSelect() {
496
498
  return {
497
499
  kind: 'Fragment',
498
- version: VERSION$7,
500
+ version: VERSION$9,
499
501
  private: [],
500
502
  selections: [
501
503
  {
@@ -521,7 +523,7 @@ const select$9 = function IncludedGroupsSharingRepresentationSelect() {
521
523
  ]
522
524
  };
523
525
  };
524
- function equals$7(existing, incoming) {
526
+ function equals$9(existing, incoming) {
525
527
  const existing_grantAccessHierarchies = existing.grantAccessHierarchies;
526
528
  const incoming_grantAccessHierarchies = incoming.grantAccessHierarchies;
527
529
  if (!(existing_grantAccessHierarchies === incoming_grantAccessHierarchies)) {
@@ -550,8 +552,8 @@ function equals$7(existing, incoming) {
550
552
  return true;
551
553
  }
552
554
 
553
- const VERSION$6 = "06eef993be289c8b20b37b2ae6f4c5ee";
554
- function validate$6(obj, path = 'ListViewGroupSharingRepresentation') {
555
+ const VERSION$8 = "06eef993be289c8b20b37b2ae6f4c5ee";
556
+ function validate$8(obj, path = 'ListViewGroupSharingRepresentation') {
555
557
  const v_error = (() => {
556
558
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
557
559
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -569,10 +571,10 @@ function validate$6(obj, path = 'ListViewGroupSharingRepresentation') {
569
571
  })();
570
572
  return v_error === undefined ? null : v_error;
571
573
  }
572
- const select$8 = function ListViewGroupSharingRepresentationSelect() {
574
+ const select$b = function ListViewGroupSharingRepresentationSelect() {
573
575
  return {
574
576
  kind: 'Fragment',
575
- version: VERSION$6,
577
+ version: VERSION$8,
576
578
  private: [],
577
579
  selections: [
578
580
  {
@@ -586,7 +588,7 @@ const select$8 = function ListViewGroupSharingRepresentationSelect() {
586
588
  ]
587
589
  };
588
590
  };
589
- function equals$6(existing, incoming) {
591
+ function equals$8(existing, incoming) {
590
592
  const existing_developerName = existing.developerName;
591
593
  const incoming_developerName = incoming.developerName;
592
594
  if (!(existing_developerName === incoming_developerName)) {
@@ -600,8 +602,8 @@ function equals$6(existing, incoming) {
600
602
  return true;
601
603
  }
602
604
 
603
- const VERSION$5 = "a0ed38b40ad9886f3e05a1b65fd2e246";
604
- function validate$5(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentation') {
605
+ const VERSION$7 = "a0ed38b40ad9886f3e05a1b65fd2e246";
606
+ function validate$7(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentation') {
605
607
  const v_error = (() => {
606
608
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
607
609
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -639,10 +641,10 @@ function validate$5(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentat
639
641
  })();
640
642
  return v_error === undefined ? null : v_error;
641
643
  }
642
- const select$7 = function ReportAndDashboardFolderGroupSharingRepresentationSelect() {
644
+ const select$a = function ReportAndDashboardFolderGroupSharingRepresentationSelect() {
643
645
  return {
644
646
  kind: 'Fragment',
645
- version: VERSION$5,
647
+ version: VERSION$7,
646
648
  private: [],
647
649
  selections: [
648
650
  {
@@ -672,7 +674,7 @@ const select$7 = function ReportAndDashboardFolderGroupSharingRepresentationSele
672
674
  ]
673
675
  };
674
676
  };
675
- function equals$5(existing, incoming) {
677
+ function equals$7(existing, incoming) {
676
678
  const existing_accessLevel = existing.accessLevel;
677
679
  const incoming_accessLevel = incoming.accessLevel;
678
680
  if (!(existing_accessLevel === incoming_accessLevel)) {
@@ -706,8 +708,8 @@ function equals$5(existing, incoming) {
706
708
  return true;
707
709
  }
708
710
 
709
- const VERSION$4 = "1036a20704b51746749bb4be569e39c0";
710
- function validate$4(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation') {
711
+ const VERSION$6 = "1036a20704b51746749bb4be569e39c0";
712
+ function validate$6(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation') {
711
713
  const v_error = (() => {
712
714
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
713
715
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -735,10 +737,10 @@ function validate$4(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation'
735
737
  })();
736
738
  return v_error === undefined ? null : v_error;
737
739
  }
738
- const select$6 = function SharingRulesCriteriaGroupSharingRepresentationSelect() {
740
+ const select$9 = function SharingRulesCriteriaGroupSharingRepresentationSelect() {
739
741
  return {
740
742
  kind: 'Fragment',
741
- version: VERSION$4,
743
+ version: VERSION$6,
742
744
  private: [],
743
745
  selections: [
744
746
  {
@@ -760,7 +762,7 @@ const select$6 = function SharingRulesCriteriaGroupSharingRepresentationSelect()
760
762
  ]
761
763
  };
762
764
  };
763
- function equals$4(existing, incoming) {
765
+ function equals$6(existing, incoming) {
764
766
  const existing_accessLevel = existing.accessLevel;
765
767
  const incoming_accessLevel = incoming.accessLevel;
766
768
  if (!(existing_accessLevel === incoming_accessLevel)) {
@@ -784,8 +786,8 @@ function equals$4(existing, incoming) {
784
786
  return true;
785
787
  }
786
788
 
787
- const VERSION$3 = "8f205925d69192f91fd2c71838ed20e7";
788
- function validate$3(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
789
+ const VERSION$5 = "8f205925d69192f91fd2c71838ed20e7";
790
+ function validate$5(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
789
791
  const v_error = (() => {
790
792
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
791
793
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -813,10 +815,10 @@ function validate$3(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
813
815
  })();
814
816
  return v_error === undefined ? null : v_error;
815
817
  }
816
- const select$5 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
818
+ const select$8 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
817
819
  return {
818
820
  kind: 'Fragment',
819
- version: VERSION$3,
821
+ version: VERSION$5,
820
822
  private: [],
821
823
  selections: [
822
824
  {
@@ -838,7 +840,7 @@ const select$5 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
838
840
  ]
839
841
  };
840
842
  };
841
- function equals$3(existing, incoming) {
843
+ function equals$5(existing, incoming) {
842
844
  const existing_accessLevel = existing.accessLevel;
843
845
  const incoming_accessLevel = incoming.accessLevel;
844
846
  if (!(existing_accessLevel === incoming_accessLevel)) {
@@ -862,9 +864,9 @@ function equals$3(existing, incoming) {
862
864
  return true;
863
865
  }
864
866
 
865
- const TTL$1 = 300;
866
- const VERSION$2 = "68cd535d9b1bd32d0d42ce950115eff5";
867
- function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
867
+ const TTL$2 = 300;
868
+ const VERSION$4 = "68cd535d9b1bd32d0d42ce950115eff5";
869
+ function validate$4(obj, path = 'PublicGroupSummaryRepresentation') {
868
870
  const v_error = (() => {
869
871
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
870
872
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -877,7 +879,7 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
877
879
  for (let i = 0; i < obj_includedGroupsSharing.length; i++) {
878
880
  const obj_includedGroupsSharing_item = obj_includedGroupsSharing[i];
879
881
  const path_includedGroupsSharing_item = path_includedGroupsSharing + '[' + i + ']';
880
- const referencepath_includedGroupsSharing_itemValidationError = validate$7(obj_includedGroupsSharing_item, path_includedGroupsSharing_item);
882
+ const referencepath_includedGroupsSharing_itemValidationError = validate$9(obj_includedGroupsSharing_item, path_includedGroupsSharing_item);
881
883
  if (referencepath_includedGroupsSharing_itemValidationError !== null) {
882
884
  let message = 'Object doesn\'t match IncludedGroupsSharingRepresentation (at "' + path_includedGroupsSharing_item + '")\n';
883
885
  message += referencepath_includedGroupsSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -892,7 +894,7 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
892
894
  for (let i = 0; i < obj_listViewGroupSharing.length; i++) {
893
895
  const obj_listViewGroupSharing_item = obj_listViewGroupSharing[i];
894
896
  const path_listViewGroupSharing_item = path_listViewGroupSharing + '[' + i + ']';
895
- const referencepath_listViewGroupSharing_itemValidationError = validate$6(obj_listViewGroupSharing_item, path_listViewGroupSharing_item);
897
+ const referencepath_listViewGroupSharing_itemValidationError = validate$8(obj_listViewGroupSharing_item, path_listViewGroupSharing_item);
896
898
  if (referencepath_listViewGroupSharing_itemValidationError !== null) {
897
899
  let message = 'Object doesn\'t match ListViewGroupSharingRepresentation (at "' + path_listViewGroupSharing_item + '")\n';
898
900
  message += referencepath_listViewGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -907,7 +909,7 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
907
909
  for (let i = 0; i < obj_reportAndDashboardFolderGroupSharing.length; i++) {
908
910
  const obj_reportAndDashboardFolderGroupSharing_item = obj_reportAndDashboardFolderGroupSharing[i];
909
911
  const path_reportAndDashboardFolderGroupSharing_item = path_reportAndDashboardFolderGroupSharing + '[' + i + ']';
910
- const referencepath_reportAndDashboardFolderGroupSharing_itemValidationError = validate$5(obj_reportAndDashboardFolderGroupSharing_item, path_reportAndDashboardFolderGroupSharing_item);
912
+ const referencepath_reportAndDashboardFolderGroupSharing_itemValidationError = validate$7(obj_reportAndDashboardFolderGroupSharing_item, path_reportAndDashboardFolderGroupSharing_item);
911
913
  if (referencepath_reportAndDashboardFolderGroupSharing_itemValidationError !== null) {
912
914
  let message = 'Object doesn\'t match ReportAndDashboardFolderGroupSharingRepresentation (at "' + path_reportAndDashboardFolderGroupSharing_item + '")\n';
913
915
  message += referencepath_reportAndDashboardFolderGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -922,7 +924,7 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
922
924
  for (let i = 0; i < obj_sharingRulesCriteriaGroupSharing.length; i++) {
923
925
  const obj_sharingRulesCriteriaGroupSharing_item = obj_sharingRulesCriteriaGroupSharing[i];
924
926
  const path_sharingRulesCriteriaGroupSharing_item = path_sharingRulesCriteriaGroupSharing + '[' + i + ']';
925
- const referencepath_sharingRulesCriteriaGroupSharing_itemValidationError = validate$4(obj_sharingRulesCriteriaGroupSharing_item, path_sharingRulesCriteriaGroupSharing_item);
927
+ const referencepath_sharingRulesCriteriaGroupSharing_itemValidationError = validate$6(obj_sharingRulesCriteriaGroupSharing_item, path_sharingRulesCriteriaGroupSharing_item);
926
928
  if (referencepath_sharingRulesCriteriaGroupSharing_itemValidationError !== null) {
927
929
  let message = 'Object doesn\'t match SharingRulesCriteriaGroupSharingRepresentation (at "' + path_sharingRulesCriteriaGroupSharing_item + '")\n';
928
930
  message += referencepath_sharingRulesCriteriaGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -937,7 +939,7 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
937
939
  for (let i = 0; i < obj_sharingRulesOwnerGroupSharing.length; i++) {
938
940
  const obj_sharingRulesOwnerGroupSharing_item = obj_sharingRulesOwnerGroupSharing[i];
939
941
  const path_sharingRulesOwnerGroupSharing_item = path_sharingRulesOwnerGroupSharing + '[' + i + ']';
940
- const referencepath_sharingRulesOwnerGroupSharing_itemValidationError = validate$3(obj_sharingRulesOwnerGroupSharing_item, path_sharingRulesOwnerGroupSharing_item);
942
+ const referencepath_sharingRulesOwnerGroupSharing_itemValidationError = validate$5(obj_sharingRulesOwnerGroupSharing_item, path_sharingRulesOwnerGroupSharing_item);
941
943
  if (referencepath_sharingRulesOwnerGroupSharing_itemValidationError !== null) {
942
944
  let message = 'Object doesn\'t match SharingRulesOwnerGroupSharingRepresentation (at "' + path_sharingRulesOwnerGroupSharing_item + '")\n';
943
945
  message += referencepath_sharingRulesOwnerGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -947,19 +949,19 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
947
949
  })();
948
950
  return v_error === undefined ? null : v_error;
949
951
  }
950
- const RepresentationType$1 = 'PublicGroupSummaryRepresentation';
951
- function normalize$1(input, existing, path, luvio, store, timestamp) {
952
+ const RepresentationType$2 = 'PublicGroupSummaryRepresentation';
953
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
952
954
  return input;
953
955
  }
954
- const select$4 = function PublicGroupSummaryRepresentationSelect() {
955
- const { selections: IncludedGroupsSharingRepresentation__selections, opaque: IncludedGroupsSharingRepresentation__opaque, } = select$9();
956
- const { selections: ListViewGroupSharingRepresentation__selections, opaque: ListViewGroupSharingRepresentation__opaque, } = select$8();
957
- const { selections: ReportAndDashboardFolderGroupSharingRepresentation__selections, opaque: ReportAndDashboardFolderGroupSharingRepresentation__opaque, } = select$7();
958
- const { selections: SharingRulesCriteriaGroupSharingRepresentation__selections, opaque: SharingRulesCriteriaGroupSharingRepresentation__opaque, } = select$6();
959
- const { selections: SharingRulesOwnerGroupSharingRepresentation__selections, opaque: SharingRulesOwnerGroupSharingRepresentation__opaque, } = select$5();
956
+ const select$7 = function PublicGroupSummaryRepresentationSelect() {
957
+ const { selections: IncludedGroupsSharingRepresentation__selections, opaque: IncludedGroupsSharingRepresentation__opaque, } = select$c();
958
+ const { selections: ListViewGroupSharingRepresentation__selections, opaque: ListViewGroupSharingRepresentation__opaque, } = select$b();
959
+ const { selections: ReportAndDashboardFolderGroupSharingRepresentation__selections, opaque: ReportAndDashboardFolderGroupSharingRepresentation__opaque, } = select$a();
960
+ const { selections: SharingRulesCriteriaGroupSharingRepresentation__selections, opaque: SharingRulesCriteriaGroupSharingRepresentation__opaque, } = select$9();
961
+ const { selections: SharingRulesOwnerGroupSharingRepresentation__selections, opaque: SharingRulesOwnerGroupSharingRepresentation__opaque, } = select$8();
960
962
  return {
961
963
  kind: 'Fragment',
962
- version: VERSION$2,
964
+ version: VERSION$4,
963
965
  private: [],
964
966
  selections: [
965
967
  {
@@ -995,11 +997,11 @@ const select$4 = function PublicGroupSummaryRepresentationSelect() {
995
997
  ]
996
998
  };
997
999
  };
998
- function equals$2(existing, incoming) {
1000
+ function equals$4(existing, incoming) {
999
1001
  const existing_includedGroupsSharing = existing.includedGroupsSharing;
1000
1002
  const incoming_includedGroupsSharing = incoming.includedGroupsSharing;
1001
1003
  const equals_includedGroupsSharing_items = equalsArray(existing_includedGroupsSharing, incoming_includedGroupsSharing, (existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item) => {
1002
- if (!(equals$7(existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item))) {
1004
+ if (!(equals$9(existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item))) {
1003
1005
  return false;
1004
1006
  }
1005
1007
  });
@@ -1009,7 +1011,7 @@ function equals$2(existing, incoming) {
1009
1011
  const existing_listViewGroupSharing = existing.listViewGroupSharing;
1010
1012
  const incoming_listViewGroupSharing = incoming.listViewGroupSharing;
1011
1013
  const equals_listViewGroupSharing_items = equalsArray(existing_listViewGroupSharing, incoming_listViewGroupSharing, (existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item) => {
1012
- if (!(equals$6(existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item))) {
1014
+ if (!(equals$8(existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item))) {
1013
1015
  return false;
1014
1016
  }
1015
1017
  });
@@ -1019,7 +1021,7 @@ function equals$2(existing, incoming) {
1019
1021
  const existing_reportAndDashboardFolderGroupSharing = existing.reportAndDashboardFolderGroupSharing;
1020
1022
  const incoming_reportAndDashboardFolderGroupSharing = incoming.reportAndDashboardFolderGroupSharing;
1021
1023
  const equals_reportAndDashboardFolderGroupSharing_items = equalsArray(existing_reportAndDashboardFolderGroupSharing, incoming_reportAndDashboardFolderGroupSharing, (existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item) => {
1022
- if (!(equals$5(existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item))) {
1024
+ if (!(equals$7(existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item))) {
1023
1025
  return false;
1024
1026
  }
1025
1027
  });
@@ -1029,7 +1031,7 @@ function equals$2(existing, incoming) {
1029
1031
  const existing_sharingRulesCriteriaGroupSharing = existing.sharingRulesCriteriaGroupSharing;
1030
1032
  const incoming_sharingRulesCriteriaGroupSharing = incoming.sharingRulesCriteriaGroupSharing;
1031
1033
  const equals_sharingRulesCriteriaGroupSharing_items = equalsArray(existing_sharingRulesCriteriaGroupSharing, incoming_sharingRulesCriteriaGroupSharing, (existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item) => {
1032
- if (!(equals$4(existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item))) {
1034
+ if (!(equals$6(existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item))) {
1033
1035
  return false;
1034
1036
  }
1035
1037
  });
@@ -1039,7 +1041,7 @@ function equals$2(existing, incoming) {
1039
1041
  const existing_sharingRulesOwnerGroupSharing = existing.sharingRulesOwnerGroupSharing;
1040
1042
  const incoming_sharingRulesOwnerGroupSharing = incoming.sharingRulesOwnerGroupSharing;
1041
1043
  const equals_sharingRulesOwnerGroupSharing_items = equalsArray(existing_sharingRulesOwnerGroupSharing, incoming_sharingRulesOwnerGroupSharing, (existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item) => {
1042
- if (!(equals$3(existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item))) {
1044
+ if (!(equals$5(existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item))) {
1043
1045
  return false;
1044
1046
  }
1045
1047
  });
@@ -1048,44 +1050,44 @@ function equals$2(existing, incoming) {
1048
1050
  }
1049
1051
  return true;
1050
1052
  }
1051
- const ingest$1 = function PublicGroupSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
1053
+ const ingest$2 = function PublicGroupSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
1052
1054
  if (process.env.NODE_ENV !== 'production') {
1053
- const validateError = validate$2(input);
1055
+ const validateError = validate$4(input);
1054
1056
  if (validateError !== null) {
1055
1057
  throw validateError;
1056
1058
  }
1057
1059
  }
1058
1060
  const key = path.fullPath;
1059
- const ttlToUse = TTL$1;
1060
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "sharing", VERSION$2, RepresentationType$1, equals$2);
1061
+ const ttlToUse = TTL$2;
1062
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "sharing", VERSION$4, RepresentationType$2, equals$4);
1061
1063
  return createLink(key);
1062
1064
  };
1063
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1065
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1064
1066
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1065
1067
  const rootKey = fullPathFactory();
1066
1068
  rootKeySet.set(rootKey, {
1067
1069
  namespace: keyPrefix,
1068
- representationName: RepresentationType$1,
1070
+ representationName: RepresentationType$2,
1069
1071
  mergeable: false
1070
1072
  });
1071
1073
  }
1072
1074
 
1073
- function select$3(luvio, params) {
1074
- return select$4();
1075
+ function select$6(luvio, params) {
1076
+ return select$7();
1075
1077
  }
1076
- function keyBuilder$3(luvio, params) {
1078
+ function keyBuilder$5(luvio, params) {
1077
1079
  return keyPrefix + '::PublicGroupSummaryRepresentation:(' + 'entityKeyPrefix:' + params.body.entityKeyPrefix + '::' + 'groupId:' + params.body.groupId + '::' + 'limit:' + params.body.limit + '::' + 'offset:' + params.body.offset + '::' + 'operation:' + params.body.operation + '::' + 'orderBy:' + params.body.orderBy + '::' + 'orderType:' + params.body.orderType + ')';
1078
1080
  }
1079
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1080
- getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
1081
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1082
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
1081
1083
  }
1082
- function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1084
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
1083
1085
  const { body } = response;
1084
- const key = keyBuilder$3(luvio, resourceParams);
1085
- luvio.storeIngest(key, ingest$1, body);
1086
+ const key = keyBuilder$5(luvio, resourceParams);
1087
+ luvio.storeIngest(key, ingest$2, body);
1086
1088
  const snapshot = luvio.storeLookup({
1087
1089
  recordId: key,
1088
- node: select$3(),
1090
+ node: select$6(),
1089
1091
  variables: {},
1090
1092
  }, snapshotRefresh);
1091
1093
  if (process.env.NODE_ENV !== 'production') {
@@ -1096,19 +1098,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1096
1098
  deepFreeze(snapshot.data);
1097
1099
  return snapshot;
1098
1100
  }
1099
- function ingestError$1(luvio, params, error, snapshotRefresh) {
1100
- const key = keyBuilder$3(luvio, params);
1101
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
1102
+ const key = keyBuilder$5(luvio, params);
1101
1103
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1102
1104
  const storeMetadataParams = {
1103
- ttl: TTL$1,
1105
+ ttl: TTL$2,
1104
1106
  namespace: keyPrefix,
1105
- version: VERSION$2,
1106
- representationName: RepresentationType$1
1107
+ version: VERSION$4,
1108
+ representationName: RepresentationType$2
1107
1109
  };
1108
1110
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1109
1111
  return errorSnapshot;
1110
1112
  }
1111
- function createResourceRequest$1(config) {
1113
+ function createResourceRequest$2(config) {
1112
1114
  const headers = {};
1113
1115
  return {
1114
1116
  baseUri: '/services/data/v61.0',
@@ -1122,7 +1124,7 @@ function createResourceRequest$1(config) {
1122
1124
  };
1123
1125
  }
1124
1126
 
1125
- const adapterName$1 = 'getPublicGroupShareData';
1127
+ const adapterName$2 = 'getPublicGroupShareData';
1126
1128
  const getPublicGroupShareData_ConfigPropertyMetadata = [
1127
1129
  generateParamConfigMetadata('entityKeyPrefix', true, 2 /* Body */, 0 /* String */),
1128
1130
  generateParamConfigMetadata('groupId', true, 2 /* Body */, 0 /* String */),
@@ -1132,90 +1134,90 @@ const getPublicGroupShareData_ConfigPropertyMetadata = [
1132
1134
  generateParamConfigMetadata('orderBy', true, 2 /* Body */, 0 /* String */),
1133
1135
  generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
1134
1136
  ];
1135
- const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPublicGroupShareData_ConfigPropertyMetadata);
1136
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getPublicGroupShareData_ConfigPropertyMetadata);
1137
- function keyBuilder$2(luvio, config) {
1138
- const resourceParams = createResourceParams$1(config);
1139
- return keyBuilder$3(luvio, resourceParams);
1137
+ const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPublicGroupShareData_ConfigPropertyMetadata);
1138
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(getPublicGroupShareData_ConfigPropertyMetadata);
1139
+ function keyBuilder$4(luvio, config) {
1140
+ const resourceParams = createResourceParams$2(config);
1141
+ return keyBuilder$5(luvio, resourceParams);
1140
1142
  }
1141
- function typeCheckConfig$1(untrustedConfig) {
1143
+ function typeCheckConfig$2(untrustedConfig) {
1142
1144
  const config = {};
1143
- typeCheckConfig$3(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
1145
+ typeCheckConfig$4(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
1144
1146
  return config;
1145
1147
  }
1146
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1148
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1147
1149
  if (!untrustedIsObject(untrustedConfig)) {
1148
1150
  return null;
1149
1151
  }
1150
1152
  if (process.env.NODE_ENV !== 'production') {
1151
1153
  validateConfig(untrustedConfig, configPropertyNames);
1152
1154
  }
1153
- const config = typeCheckConfig$1(untrustedConfig);
1155
+ const config = typeCheckConfig$2(untrustedConfig);
1154
1156
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1155
1157
  return null;
1156
1158
  }
1157
1159
  return config;
1158
1160
  }
1159
- function adapterFragment$1(luvio, config) {
1160
- createResourceParams$1(config);
1161
- return select$3();
1161
+ function adapterFragment$2(luvio, config) {
1162
+ createResourceParams$2(config);
1163
+ return select$6();
1162
1164
  }
1163
- function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
1164
- const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
1165
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
1166
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
1165
1167
  config,
1166
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1168
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1167
1169
  });
1168
1170
  return luvio.storeBroadcast().then(() => snapshot);
1169
1171
  }
1170
- function onFetchResponseError$1(luvio, config, resourceParams, response) {
1171
- const snapshot = ingestError$1(luvio, resourceParams, response, {
1172
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
1173
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
1172
1174
  config,
1173
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1175
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1174
1176
  });
1175
1177
  return luvio.storeBroadcast().then(() => snapshot);
1176
1178
  }
1177
- function buildNetworkSnapshot$1(luvio, config, options) {
1178
- const resourceParams = createResourceParams$1(config);
1179
- const request = createResourceRequest$1(resourceParams);
1179
+ function buildNetworkSnapshot$2(luvio, config, options) {
1180
+ const resourceParams = createResourceParams$2(config);
1181
+ const request = createResourceRequest$2(resourceParams);
1180
1182
  return luvio.dispatchResourceRequest(request, options)
1181
1183
  .then((response) => {
1182
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
1184
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
1183
1185
  const cache = new StoreKeyMap();
1184
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1186
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1185
1187
  return cache;
1186
1188
  });
1187
1189
  }, (response) => {
1188
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
1190
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
1189
1191
  });
1190
1192
  }
1191
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1192
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, 'get', false);
1193
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
1194
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, 'get', false);
1193
1195
  }
1194
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1196
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1195
1197
  const { luvio, config } = context;
1196
1198
  const selector = {
1197
- recordId: keyBuilder$2(luvio, config),
1198
- node: adapterFragment$1(luvio, config),
1199
+ recordId: keyBuilder$4(luvio, config),
1200
+ node: adapterFragment$2(luvio, config),
1199
1201
  variables: {},
1200
1202
  };
1201
1203
  const cacheSnapshot = storeLookup(selector, {
1202
1204
  config,
1203
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1205
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1204
1206
  });
1205
1207
  return cacheSnapshot;
1206
1208
  }
1207
1209
  const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPublicGroupShareData(untrustedConfig, requestContext) {
1208
- const config = validateAdapterConfig$1(untrustedConfig, getPublicGroupShareData_ConfigPropertyNames);
1210
+ const config = validateAdapterConfig$2(untrustedConfig, getPublicGroupShareData_ConfigPropertyNames);
1209
1211
  // Invalid or incomplete config
1210
1212
  if (config === null) {
1211
1213
  return null;
1212
1214
  }
1213
1215
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1214
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
1216
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
1215
1217
  };
1216
1218
 
1217
- const VERSION$1 = "8f1b312aa04c8869624b95b9e3f3cd4e";
1218
- function validate$1(obj, path = 'SobjectOutputSharingRepresentation') {
1219
+ const VERSION$3 = "8f1b312aa04c8869624b95b9e3f3cd4e";
1220
+ function validate$3(obj, path = 'SobjectOutputSharingRepresentation') {
1219
1221
  const v_error = (() => {
1220
1222
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1221
1223
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1243,10 +1245,10 @@ function validate$1(obj, path = 'SobjectOutputSharingRepresentation') {
1243
1245
  })();
1244
1246
  return v_error === undefined ? null : v_error;
1245
1247
  }
1246
- const select$2 = function SobjectOutputSharingRepresentationSelect() {
1248
+ const select$5 = function SobjectOutputSharingRepresentationSelect() {
1247
1249
  return {
1248
1250
  kind: 'Fragment',
1249
- version: VERSION$1,
1251
+ version: VERSION$3,
1250
1252
  private: [],
1251
1253
  selections: [
1252
1254
  {
@@ -1268,7 +1270,7 @@ const select$2 = function SobjectOutputSharingRepresentationSelect() {
1268
1270
  ]
1269
1271
  };
1270
1272
  };
1271
- function equals$1(existing, incoming) {
1273
+ function equals$3(existing, incoming) {
1272
1274
  const existing_apiName = existing.apiName;
1273
1275
  const incoming_apiName = incoming.apiName;
1274
1276
  if (!(existing_apiName === incoming_apiName)) {
@@ -1292,9 +1294,9 @@ function equals$1(existing, incoming) {
1292
1294
  return true;
1293
1295
  }
1294
1296
 
1295
- const TTL = 900000;
1296
- const VERSION = "891459dfe3e992adddad156c898d3aef";
1297
- function validate(obj, path = 'SobjectsOutputSharingRepresentation') {
1297
+ const TTL$1 = 900000;
1298
+ const VERSION$2 = "891459dfe3e992adddad156c898d3aef";
1299
+ function validate$2(obj, path = 'SobjectsOutputSharingRepresentation') {
1298
1300
  const v_error = (() => {
1299
1301
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1300
1302
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1312,7 +1314,7 @@ function validate(obj, path = 'SobjectsOutputSharingRepresentation') {
1312
1314
  for (let i = 0; i < obj_sobjects.length; i++) {
1313
1315
  const obj_sobjects_item = obj_sobjects[i];
1314
1316
  const path_sobjects_item = path_sobjects + '[' + i + ']';
1315
- const referencepath_sobjects_itemValidationError = validate$1(obj_sobjects_item, path_sobjects_item);
1317
+ const referencepath_sobjects_itemValidationError = validate$3(obj_sobjects_item, path_sobjects_item);
1316
1318
  if (referencepath_sobjects_itemValidationError !== null) {
1317
1319
  let message = 'Object doesn\'t match SobjectOutputSharingRepresentation (at "' + path_sobjects_item + '")\n';
1318
1320
  message += referencepath_sobjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1322,15 +1324,15 @@ function validate(obj, path = 'SobjectsOutputSharingRepresentation') {
1322
1324
  })();
1323
1325
  return v_error === undefined ? null : v_error;
1324
1326
  }
1325
- const RepresentationType = 'SobjectsOutputSharingRepresentation';
1326
- function normalize(input, existing, path, luvio, store, timestamp) {
1327
+ const RepresentationType$1 = 'SobjectsOutputSharingRepresentation';
1328
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
1327
1329
  return input;
1328
1330
  }
1329
- const select$1 = function SobjectsOutputSharingRepresentationSelect() {
1330
- const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$2();
1331
+ const select$4 = function SobjectsOutputSharingRepresentationSelect() {
1332
+ const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$5();
1331
1333
  return {
1332
1334
  kind: 'Fragment',
1333
- version: VERSION,
1335
+ version: VERSION$2,
1334
1336
  private: [],
1335
1337
  selections: [
1336
1338
  {
@@ -1346,7 +1348,7 @@ const select$1 = function SobjectsOutputSharingRepresentationSelect() {
1346
1348
  ]
1347
1349
  };
1348
1350
  };
1349
- function equals(existing, incoming) {
1351
+ function equals$2(existing, incoming) {
1350
1352
  const existing_size = existing.size;
1351
1353
  const incoming_size = incoming.size;
1352
1354
  if (!(existing_size === incoming_size)) {
@@ -1355,7 +1357,7 @@ function equals(existing, incoming) {
1355
1357
  const existing_sobjects = existing.sobjects;
1356
1358
  const incoming_sobjects = incoming.sobjects;
1357
1359
  const equals_sobjects_items = equalsArray(existing_sobjects, incoming_sobjects, (existing_sobjects_item, incoming_sobjects_item) => {
1358
- if (!(equals$1(existing_sobjects_item, incoming_sobjects_item))) {
1360
+ if (!(equals$3(existing_sobjects_item, incoming_sobjects_item))) {
1359
1361
  return false;
1360
1362
  }
1361
1363
  });
@@ -1364,7 +1366,305 @@ function equals(existing, incoming) {
1364
1366
  }
1365
1367
  return true;
1366
1368
  }
1367
- const ingest = function SobjectsOutputSharingRepresentationIngest(input, path, luvio, store, timestamp) {
1369
+ const ingest$1 = function SobjectsOutputSharingRepresentationIngest(input, path, luvio, store, timestamp) {
1370
+ if (process.env.NODE_ENV !== 'production') {
1371
+ const validateError = validate$2(input);
1372
+ if (validateError !== null) {
1373
+ throw validateError;
1374
+ }
1375
+ }
1376
+ const key = path.fullPath;
1377
+ const ttlToUse = TTL$1;
1378
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "sharing", VERSION$2, RepresentationType$1, equals$2);
1379
+ return createLink(key);
1380
+ };
1381
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1382
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1383
+ const rootKey = fullPathFactory();
1384
+ rootKeySet.set(rootKey, {
1385
+ namespace: keyPrefix,
1386
+ representationName: RepresentationType$1,
1387
+ mergeable: false
1388
+ });
1389
+ }
1390
+
1391
+ function select$3(luvio, params) {
1392
+ return select$4();
1393
+ }
1394
+ function keyBuilder$3(luvio, params) {
1395
+ return keyPrefix + '::SobjectsOutputSharingRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'searchText:' + params.queryParams.searchText + ')';
1396
+ }
1397
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1398
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
1399
+ }
1400
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1401
+ const { body } = response;
1402
+ const key = keyBuilder$3(luvio, resourceParams);
1403
+ luvio.storeIngest(key, ingest$1, body);
1404
+ const snapshot = luvio.storeLookup({
1405
+ recordId: key,
1406
+ node: select$3(),
1407
+ variables: {},
1408
+ }, snapshotRefresh);
1409
+ if (process.env.NODE_ENV !== 'production') {
1410
+ if (snapshot.state !== 'Fulfilled') {
1411
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1412
+ }
1413
+ }
1414
+ deepFreeze(snapshot.data);
1415
+ return snapshot;
1416
+ }
1417
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
1418
+ const key = keyBuilder$3(luvio, params);
1419
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1420
+ const storeMetadataParams = {
1421
+ ttl: TTL$1,
1422
+ namespace: keyPrefix,
1423
+ version: VERSION$2,
1424
+ representationName: RepresentationType$1
1425
+ };
1426
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1427
+ return errorSnapshot;
1428
+ }
1429
+ function createResourceRequest$1(config) {
1430
+ const headers = {};
1431
+ return {
1432
+ baseUri: '/services/data/v61.0',
1433
+ basePath: '/sharing/sobjects',
1434
+ method: 'get',
1435
+ body: null,
1436
+ urlParams: {},
1437
+ queryParams: config.queryParams,
1438
+ headers,
1439
+ priority: 'normal',
1440
+ };
1441
+ }
1442
+
1443
+ const adapterName$1 = 'getAllSobjects';
1444
+ const getAllSobjects_ConfigPropertyMetadata = [
1445
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
1446
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
1447
+ generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
1448
+ ];
1449
+ const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getAllSobjects_ConfigPropertyMetadata);
1450
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(getAllSobjects_ConfigPropertyMetadata);
1451
+ function keyBuilder$2(luvio, config) {
1452
+ const resourceParams = createResourceParams$1(config);
1453
+ return keyBuilder$3(luvio, resourceParams);
1454
+ }
1455
+ function typeCheckConfig$1(untrustedConfig) {
1456
+ const config = {};
1457
+ typeCheckConfig$4(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
1458
+ return config;
1459
+ }
1460
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1461
+ if (!untrustedIsObject(untrustedConfig)) {
1462
+ return null;
1463
+ }
1464
+ if (process.env.NODE_ENV !== 'production') {
1465
+ validateConfig(untrustedConfig, configPropertyNames);
1466
+ }
1467
+ const config = typeCheckConfig$1(untrustedConfig);
1468
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1469
+ return null;
1470
+ }
1471
+ return config;
1472
+ }
1473
+ function adapterFragment$1(luvio, config) {
1474
+ createResourceParams$1(config);
1475
+ return select$3();
1476
+ }
1477
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
1478
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
1479
+ config,
1480
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1481
+ });
1482
+ return luvio.storeBroadcast().then(() => snapshot);
1483
+ }
1484
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
1485
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
1486
+ config,
1487
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1488
+ });
1489
+ return luvio.storeBroadcast().then(() => snapshot);
1490
+ }
1491
+ function buildNetworkSnapshot$1(luvio, config, options) {
1492
+ const resourceParams = createResourceParams$1(config);
1493
+ const request = createResourceRequest$1(resourceParams);
1494
+ return luvio.dispatchResourceRequest(request, options)
1495
+ .then((response) => {
1496
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
1497
+ const cache = new StoreKeyMap();
1498
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1499
+ return cache;
1500
+ });
1501
+ }, (response) => {
1502
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
1503
+ });
1504
+ }
1505
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1506
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
1507
+ }
1508
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1509
+ const { luvio, config } = context;
1510
+ const selector = {
1511
+ recordId: keyBuilder$2(luvio, config),
1512
+ node: adapterFragment$1(luvio, config),
1513
+ variables: {},
1514
+ };
1515
+ const cacheSnapshot = storeLookup(selector, {
1516
+ config,
1517
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1518
+ });
1519
+ return cacheSnapshot;
1520
+ }
1521
+ const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects(untrustedConfig, requestContext) {
1522
+ const config = validateAdapterConfig$1(untrustedConfig, getAllSobjects_ConfigPropertyNames);
1523
+ // Invalid or incomplete config
1524
+ if (config === null) {
1525
+ return null;
1526
+ }
1527
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1528
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
1529
+ };
1530
+
1531
+ const VERSION$1 = "348a7399778e8986878f81df955a8eab";
1532
+ function validate$1(obj, path = 'UserPermissionInfoRepresentation') {
1533
+ const v_error = (() => {
1534
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1535
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1536
+ }
1537
+ const obj_userPermApiName = obj.userPermApiName;
1538
+ const path_userPermApiName = path + '.userPermApiName';
1539
+ if (typeof obj_userPermApiName !== 'string') {
1540
+ return new TypeError('Expected "string" but received "' + typeof obj_userPermApiName + '" (at "' + path_userPermApiName + '")');
1541
+ }
1542
+ const obj_userPermDescription = obj.userPermDescription;
1543
+ const path_userPermDescription = path + '.userPermDescription';
1544
+ if (typeof obj_userPermDescription !== 'string') {
1545
+ return new TypeError('Expected "string" but received "' + typeof obj_userPermDescription + '" (at "' + path_userPermDescription + '")');
1546
+ }
1547
+ const obj_userPermLabel = obj.userPermLabel;
1548
+ const path_userPermLabel = path + '.userPermLabel';
1549
+ if (typeof obj_userPermLabel !== 'string') {
1550
+ return new TypeError('Expected "string" but received "' + typeof obj_userPermLabel + '" (at "' + path_userPermLabel + '")');
1551
+ }
1552
+ })();
1553
+ return v_error === undefined ? null : v_error;
1554
+ }
1555
+ const select$2 = function UserPermissionInfoRepresentationSelect() {
1556
+ return {
1557
+ kind: 'Fragment',
1558
+ version: VERSION$1,
1559
+ private: [],
1560
+ selections: [
1561
+ {
1562
+ name: 'userPermApiName',
1563
+ kind: 'Scalar'
1564
+ },
1565
+ {
1566
+ name: 'userPermDescription',
1567
+ kind: 'Scalar'
1568
+ },
1569
+ {
1570
+ name: 'userPermLabel',
1571
+ kind: 'Scalar'
1572
+ }
1573
+ ]
1574
+ };
1575
+ };
1576
+ function equals$1(existing, incoming) {
1577
+ const existing_userPermApiName = existing.userPermApiName;
1578
+ const incoming_userPermApiName = incoming.userPermApiName;
1579
+ if (!(existing_userPermApiName === incoming_userPermApiName)) {
1580
+ return false;
1581
+ }
1582
+ const existing_userPermDescription = existing.userPermDescription;
1583
+ const incoming_userPermDescription = incoming.userPermDescription;
1584
+ if (!(existing_userPermDescription === incoming_userPermDescription)) {
1585
+ return false;
1586
+ }
1587
+ const existing_userPermLabel = existing.userPermLabel;
1588
+ const incoming_userPermLabel = incoming.userPermLabel;
1589
+ if (!(existing_userPermLabel === incoming_userPermLabel)) {
1590
+ return false;
1591
+ }
1592
+ return true;
1593
+ }
1594
+
1595
+ const TTL = 600000;
1596
+ const VERSION = "627ab68dfb8c0174c1e9dc9f2701c1b2";
1597
+ function validate(obj, path = 'UserPermissionsInfoListRepresentation') {
1598
+ const v_error = (() => {
1599
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1600
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1601
+ }
1602
+ const obj_size = obj.size;
1603
+ const path_size = path + '.size';
1604
+ if (typeof obj_size !== 'number' || (typeof obj_size === 'number' && Math.floor(obj_size) !== obj_size)) {
1605
+ return new TypeError('Expected "integer" but received "' + typeof obj_size + '" (at "' + path_size + '")');
1606
+ }
1607
+ const obj_userPermissions = obj.userPermissions;
1608
+ const path_userPermissions = path + '.userPermissions';
1609
+ if (!ArrayIsArray(obj_userPermissions)) {
1610
+ return new TypeError('Expected "array" but received "' + typeof obj_userPermissions + '" (at "' + path_userPermissions + '")');
1611
+ }
1612
+ for (let i = 0; i < obj_userPermissions.length; i++) {
1613
+ const obj_userPermissions_item = obj_userPermissions[i];
1614
+ const path_userPermissions_item = path_userPermissions + '[' + i + ']';
1615
+ const referencepath_userPermissions_itemValidationError = validate$1(obj_userPermissions_item, path_userPermissions_item);
1616
+ if (referencepath_userPermissions_itemValidationError !== null) {
1617
+ let message = 'Object doesn\'t match UserPermissionInfoRepresentation (at "' + path_userPermissions_item + '")\n';
1618
+ message += referencepath_userPermissions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1619
+ return new TypeError(message);
1620
+ }
1621
+ }
1622
+ })();
1623
+ return v_error === undefined ? null : v_error;
1624
+ }
1625
+ const RepresentationType = 'UserPermissionsInfoListRepresentation';
1626
+ function normalize(input, existing, path, luvio, store, timestamp) {
1627
+ return input;
1628
+ }
1629
+ const select$1 = function UserPermissionsInfoListRepresentationSelect() {
1630
+ const { selections: UserPermissionInfoRepresentation__selections, opaque: UserPermissionInfoRepresentation__opaque, } = select$2();
1631
+ return {
1632
+ kind: 'Fragment',
1633
+ version: VERSION,
1634
+ private: [],
1635
+ selections: [
1636
+ {
1637
+ name: 'size',
1638
+ kind: 'Scalar'
1639
+ },
1640
+ {
1641
+ name: 'userPermissions',
1642
+ kind: 'Object',
1643
+ plural: true,
1644
+ selections: UserPermissionInfoRepresentation__selections
1645
+ }
1646
+ ]
1647
+ };
1648
+ };
1649
+ function equals(existing, incoming) {
1650
+ const existing_size = existing.size;
1651
+ const incoming_size = incoming.size;
1652
+ if (!(existing_size === incoming_size)) {
1653
+ return false;
1654
+ }
1655
+ const existing_userPermissions = existing.userPermissions;
1656
+ const incoming_userPermissions = incoming.userPermissions;
1657
+ const equals_userPermissions_items = equalsArray(existing_userPermissions, incoming_userPermissions, (existing_userPermissions_item, incoming_userPermissions_item) => {
1658
+ if (!(equals$1(existing_userPermissions_item, incoming_userPermissions_item))) {
1659
+ return false;
1660
+ }
1661
+ });
1662
+ if (equals_userPermissions_items === false) {
1663
+ return false;
1664
+ }
1665
+ return true;
1666
+ }
1667
+ const ingest = function UserPermissionsInfoListRepresentationIngest(input, path, luvio, store, timestamp) {
1368
1668
  if (process.env.NODE_ENV !== 'production') {
1369
1669
  const validateError = validate(input);
1370
1670
  if (validateError !== null) {
@@ -1390,7 +1690,7 @@ function select(luvio, params) {
1390
1690
  return select$1();
1391
1691
  }
1392
1692
  function keyBuilder$1(luvio, params) {
1393
- return keyPrefix + '::SobjectsOutputSharingRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'searchText:' + params.queryParams.searchText + ')';
1693
+ return keyPrefix + '::UserPermissionsInfoListRepresentation:(' + 'entityName:' + params.queryParams.entityName + ',' + 'recordId:' + params.queryParams.recordId + ')';
1394
1694
  }
1395
1695
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1396
1696
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -1428,7 +1728,7 @@ function createResourceRequest(config) {
1428
1728
  const headers = {};
1429
1729
  return {
1430
1730
  baseUri: '/services/data/v61.0',
1431
- basePath: '/sharing/sobjects',
1731
+ basePath: '/sharing/userPermissions',
1432
1732
  method: 'get',
1433
1733
  body: null,
1434
1734
  urlParams: {},
@@ -1438,21 +1738,20 @@ function createResourceRequest(config) {
1438
1738
  };
1439
1739
  }
1440
1740
 
1441
- const adapterName = 'getAllSobjects';
1442
- const getAllSobjects_ConfigPropertyMetadata = [
1443
- generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
1444
- generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
1445
- generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
1741
+ const adapterName = 'getUserPermissions';
1742
+ const getUserPermissions_ConfigPropertyMetadata = [
1743
+ generateParamConfigMetadata('entityName', true, 1 /* QueryParameter */, 0 /* String */),
1744
+ generateParamConfigMetadata('recordId', true, 1 /* QueryParameter */, 0 /* String */),
1446
1745
  ];
1447
- const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getAllSobjects_ConfigPropertyMetadata);
1448
- const createResourceParams = /*#__PURE__*/ createResourceParams$3(getAllSobjects_ConfigPropertyMetadata);
1746
+ const getUserPermissions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getUserPermissions_ConfigPropertyMetadata);
1747
+ const createResourceParams = /*#__PURE__*/ createResourceParams$4(getUserPermissions_ConfigPropertyMetadata);
1449
1748
  function keyBuilder(luvio, config) {
1450
1749
  const resourceParams = createResourceParams(config);
1451
1750
  return keyBuilder$1(luvio, resourceParams);
1452
1751
  }
1453
1752
  function typeCheckConfig(untrustedConfig) {
1454
1753
  const config = {};
1455
- typeCheckConfig$3(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
1754
+ typeCheckConfig$4(untrustedConfig, config, getUserPermissions_ConfigPropertyMetadata);
1456
1755
  return config;
1457
1756
  }
1458
1757
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -1501,7 +1800,7 @@ function buildNetworkSnapshot(luvio, config, options) {
1501
1800
  });
1502
1801
  }
1503
1802
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1504
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
1803
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
1505
1804
  }
1506
1805
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
1507
1806
  const { luvio, config } = context;
@@ -1516,8 +1815,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
1516
1815
  });
1517
1816
  return cacheSnapshot;
1518
1817
  }
1519
- const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects(untrustedConfig, requestContext) {
1520
- const config = validateAdapterConfig(untrustedConfig, getAllSobjects_ConfigPropertyNames);
1818
+ const getUserPermissionsAdapterFactory = (luvio) => function sharing__getUserPermissions(untrustedConfig, requestContext) {
1819
+ const config = validateAdapterConfig(untrustedConfig, getUserPermissions_ConfigPropertyNames);
1521
1820
  // Invalid or incomplete config
1522
1821
  if (config === null) {
1523
1822
  return null;
@@ -1526,4 +1825,4 @@ const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects
1526
1825
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1527
1826
  };
1528
1827
 
1529
- export { getAllSobjectsAdapterFactory, getGroupsForUserAdapterFactory, getPublicGroupShareDataAdapterFactory };
1828
+ export { getAllSobjectsAdapterFactory, getGroupsForUserAdapterFactory, getPublicGroupShareDataAdapterFactory, getUserPermissionsAdapterFactory };