@salesforce/lds-adapters-platform-sharing 1.280.0 → 1.281.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$2, typeCheckConfig as typeCheckConfig$2, StoreKeyMap, createResourceParams as createResourceParams$2 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$3, StoreKeyMap, createResourceParams as createResourceParams$3 } 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$8 = "252bb771341222662b0b76c855414e1f";
95
- function validate$8(obj, path = 'PublicGroupRepresentation') {
94
+ const VERSION$a = "252bb771341222662b0b76c855414e1f";
95
+ function validate$a(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$8(obj, path = 'PublicGroupRepresentation') {
115
115
  })();
116
116
  return v_error === undefined ? null : v_error;
117
117
  }
118
- const select$a = function PublicGroupRepresentationSelect() {
118
+ const select$d = function PublicGroupRepresentationSelect() {
119
119
  return {
120
120
  kind: 'Fragment',
121
- version: VERSION$8,
121
+ version: VERSION$a,
122
122
  private: [],
123
123
  selections: [
124
124
  {
@@ -136,7 +136,7 @@ const select$a = function PublicGroupRepresentationSelect() {
136
136
  ]
137
137
  };
138
138
  };
139
- function equals$8(existing, incoming) {
139
+ function equals$a(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$8(existing, incoming) {
155
155
  return true;
156
156
  }
157
157
 
158
- const VERSION$7 = "9371d1d2e640f37aa01c377fc78d6ef7";
159
- function validate$7(obj, path = 'QueueRepresentation') {
158
+ const VERSION$9 = "9371d1d2e640f37aa01c377fc78d6ef7";
159
+ function validate$9(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$7(obj, path = 'QueueRepresentation') {
174
174
  })();
175
175
  return v_error === undefined ? null : v_error;
176
176
  }
177
- const select$9 = function QueueRepresentationSelect() {
177
+ const select$c = function QueueRepresentationSelect() {
178
178
  return {
179
179
  kind: 'Fragment',
180
- version: VERSION$7,
180
+ version: VERSION$9,
181
181
  private: [],
182
182
  selections: [
183
183
  {
@@ -191,7 +191,7 @@ const select$9 = function QueueRepresentationSelect() {
191
191
  ]
192
192
  };
193
193
  };
194
- function equals$7(existing, incoming) {
194
+ function equals$9(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$7(existing, incoming) {
205
205
  return true;
206
206
  }
207
207
 
208
- const TTL$1 = 300;
209
- const VERSION$6 = "3659c4a4f46957a3a2b5cb2d2383180d";
210
- function validate$6(obj, path = 'GroupCollectionRepresentation') {
208
+ const TTL$2 = 300;
209
+ const VERSION$8 = "3659c4a4f46957a3a2b5cb2d2383180d";
210
+ function validate$8(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$6(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$8(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
223
+ const referencepath_publicGroupRepresentations_itemValidationError = validate$a(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$6(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$7(obj_queueRepresentations_item, path_queueRepresentations_item);
238
+ const referencepath_queueRepresentations_itemValidationError = validate$9(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$6(obj, path = 'GroupCollectionRepresentation') {
245
245
  })();
246
246
  return v_error === undefined ? null : v_error;
247
247
  }
248
- const RepresentationType$1 = 'GroupCollectionRepresentation';
249
- function normalize$1(input, existing, path, luvio, store, timestamp) {
248
+ const RepresentationType$2 = 'GroupCollectionRepresentation';
249
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
250
250
  return input;
251
251
  }
252
- const select$8 = function GroupCollectionRepresentationSelect() {
253
- const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$a();
254
- const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$9();
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();
255
255
  return {
256
256
  kind: 'Fragment',
257
- version: VERSION$6,
257
+ version: VERSION$8,
258
258
  private: [],
259
259
  selections: [
260
260
  {
@@ -272,11 +272,11 @@ const select$8 = function GroupCollectionRepresentationSelect() {
272
272
  ]
273
273
  };
274
274
  };
275
- function equals$6(existing, incoming) {
275
+ function equals$8(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$8(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
279
+ if (!(equals$a(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
280
280
  return false;
281
281
  }
282
282
  });
@@ -286,7 +286,7 @@ function equals$6(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$7(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
289
+ if (!(equals$9(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
290
290
  return false;
291
291
  }
292
292
  });
@@ -295,44 +295,44 @@ function equals$6(existing, incoming) {
295
295
  }
296
296
  return true;
297
297
  }
298
- const ingest$1 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
298
+ const ingest$2 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
299
299
  if (process.env.NODE_ENV !== 'production') {
300
- const validateError = validate$6(input);
300
+ const validateError = validate$8(input);
301
301
  if (validateError !== null) {
302
302
  throw validateError;
303
303
  }
304
304
  }
305
305
  const key = path.fullPath;
306
- const ttlToUse = TTL$1;
307
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "sharing", VERSION$6, RepresentationType$1, equals$6);
306
+ const ttlToUse = TTL$2;
307
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "sharing", VERSION$8, RepresentationType$2, equals$8);
308
308
  return createLink(key);
309
309
  };
310
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
310
+ function getTypeCacheKeys$2(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$1,
315
+ representationName: RepresentationType$2,
316
316
  mergeable: false
317
317
  });
318
318
  }
319
319
 
320
- function select$7(luvio, params) {
321
- return select$8();
320
+ function select$a(luvio, params) {
321
+ return select$b();
322
322
  }
323
- function keyBuilder$3(luvio, params) {
323
+ function keyBuilder$5(luvio, params) {
324
324
  return keyPrefix + '::GroupCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'groupType:' + params.urlParams.groupType + ',' + 'userId:' + params.urlParams.userId + ')';
325
325
  }
326
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
327
- getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
326
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
327
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
328
328
  }
329
- function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
329
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
330
330
  const { body } = response;
331
- const key = keyBuilder$3(luvio, resourceParams);
332
- luvio.storeIngest(key, ingest$1, body);
331
+ const key = keyBuilder$5(luvio, resourceParams);
332
+ luvio.storeIngest(key, ingest$2, body);
333
333
  const snapshot = luvio.storeLookup({
334
334
  recordId: key,
335
- node: select$7(),
335
+ node: select$a(),
336
336
  variables: {},
337
337
  }, snapshotRefresh);
338
338
  if (process.env.NODE_ENV !== 'production') {
@@ -343,19 +343,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
343
343
  deepFreeze(snapshot.data);
344
344
  return snapshot;
345
345
  }
346
- function ingestError$1(luvio, params, error, snapshotRefresh) {
347
- const key = keyBuilder$3(luvio, params);
346
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
347
+ const key = keyBuilder$5(luvio, params);
348
348
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
349
349
  const storeMetadataParams = {
350
- ttl: TTL$1,
350
+ ttl: TTL$2,
351
351
  namespace: keyPrefix,
352
- version: VERSION$6,
353
- representationName: RepresentationType$1
352
+ version: VERSION$8,
353
+ representationName: RepresentationType$2
354
354
  };
355
355
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
356
356
  return errorSnapshot;
357
357
  }
358
- function createResourceRequest$1(config) {
358
+ function createResourceRequest$2(config) {
359
359
  const headers = {};
360
360
  return {
361
361
  baseUri: '/services/data/v61.0',
@@ -369,97 +369,97 @@ function createResourceRequest$1(config) {
369
369
  };
370
370
  }
371
371
 
372
- const adapterName$1 = 'getGroupsForUser';
372
+ const adapterName$2 = '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
378
  ];
379
- const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getGroupsForUser_ConfigPropertyMetadata);
380
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(getGroupsForUser_ConfigPropertyMetadata);
381
- function keyBuilder$2(luvio, config) {
382
- const resourceParams = createResourceParams$1(config);
383
- return keyBuilder$3(luvio, resourceParams);
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);
384
384
  }
385
- function typeCheckConfig$1(untrustedConfig) {
385
+ function typeCheckConfig$2(untrustedConfig) {
386
386
  const config = {};
387
- typeCheckConfig$2(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
387
+ typeCheckConfig$3(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
388
388
  return config;
389
389
  }
390
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
390
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
391
391
  if (!untrustedIsObject(untrustedConfig)) {
392
392
  return null;
393
393
  }
394
394
  if (process.env.NODE_ENV !== 'production') {
395
395
  validateConfig(untrustedConfig, configPropertyNames);
396
396
  }
397
- const config = typeCheckConfig$1(untrustedConfig);
397
+ const config = typeCheckConfig$2(untrustedConfig);
398
398
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
399
399
  return null;
400
400
  }
401
401
  return config;
402
402
  }
403
- function adapterFragment$1(luvio, config) {
404
- createResourceParams$1(config);
405
- return select$7();
403
+ function adapterFragment$2(luvio, config) {
404
+ createResourceParams$2(config);
405
+ return select$a();
406
406
  }
407
- function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
408
- const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
407
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
408
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
409
409
  config,
410
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
410
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
411
411
  });
412
412
  return luvio.storeBroadcast().then(() => snapshot);
413
413
  }
414
- function onFetchResponseError$1(luvio, config, resourceParams, response) {
415
- const snapshot = ingestError$1(luvio, resourceParams, response, {
414
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
415
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
416
416
  config,
417
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
417
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
418
418
  });
419
419
  return luvio.storeBroadcast().then(() => snapshot);
420
420
  }
421
- function buildNetworkSnapshot$1(luvio, config, options) {
422
- const resourceParams = createResourceParams$1(config);
423
- const request = createResourceRequest$1(resourceParams);
421
+ function buildNetworkSnapshot$2(luvio, config, options) {
422
+ const resourceParams = createResourceParams$2(config);
423
+ const request = createResourceRequest$2(resourceParams);
424
424
  return luvio.dispatchResourceRequest(request, options)
425
425
  .then((response) => {
426
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
426
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
427
427
  const cache = new StoreKeyMap();
428
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
428
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
429
429
  return cache;
430
430
  });
431
431
  }, (response) => {
432
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
432
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
433
433
  });
434
434
  }
435
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
436
- return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
435
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
436
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
437
437
  }
438
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
438
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
439
439
  const { luvio, config } = context;
440
440
  const selector = {
441
- recordId: keyBuilder$2(luvio, config),
442
- node: adapterFragment$1(luvio, config),
441
+ recordId: keyBuilder$4(luvio, config),
442
+ node: adapterFragment$2(luvio, config),
443
443
  variables: {},
444
444
  };
445
445
  const cacheSnapshot = storeLookup(selector, {
446
446
  config,
447
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
447
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
448
448
  });
449
449
  return cacheSnapshot;
450
450
  }
451
451
  const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsForUser(untrustedConfig, requestContext) {
452
- const config = validateAdapterConfig$1(untrustedConfig, getGroupsForUser_ConfigPropertyNames);
452
+ const config = validateAdapterConfig$2(untrustedConfig, getGroupsForUser_ConfigPropertyNames);
453
453
  // Invalid or incomplete config
454
454
  if (config === null) {
455
455
  return null;
456
456
  }
457
457
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
458
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
458
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
459
459
  };
460
460
 
461
- const VERSION$5 = "11e587d0bd769c0df33d7cce4eb7210d";
462
- function validate$5(obj, path = 'IncludedGroupsSharingRepresentation') {
461
+ const VERSION$7 = "11e587d0bd769c0df33d7cce4eb7210d";
462
+ function validate$7(obj, path = 'IncludedGroupsSharingRepresentation') {
463
463
  const v_error = (() => {
464
464
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
465
465
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -492,10 +492,10 @@ function validate$5(obj, path = 'IncludedGroupsSharingRepresentation') {
492
492
  })();
493
493
  return v_error === undefined ? null : v_error;
494
494
  }
495
- const select$6 = function IncludedGroupsSharingRepresentationSelect() {
495
+ const select$9 = function IncludedGroupsSharingRepresentationSelect() {
496
496
  return {
497
497
  kind: 'Fragment',
498
- version: VERSION$5,
498
+ version: VERSION$7,
499
499
  private: [],
500
500
  selections: [
501
501
  {
@@ -521,7 +521,7 @@ const select$6 = function IncludedGroupsSharingRepresentationSelect() {
521
521
  ]
522
522
  };
523
523
  };
524
- function equals$5(existing, incoming) {
524
+ function equals$7(existing, incoming) {
525
525
  const existing_grantAccessHierarchies = existing.grantAccessHierarchies;
526
526
  const incoming_grantAccessHierarchies = incoming.grantAccessHierarchies;
527
527
  if (!(existing_grantAccessHierarchies === incoming_grantAccessHierarchies)) {
@@ -550,8 +550,8 @@ function equals$5(existing, incoming) {
550
550
  return true;
551
551
  }
552
552
 
553
- const VERSION$4 = "06eef993be289c8b20b37b2ae6f4c5ee";
554
- function validate$4(obj, path = 'ListViewGroupSharingRepresentation') {
553
+ const VERSION$6 = "06eef993be289c8b20b37b2ae6f4c5ee";
554
+ function validate$6(obj, path = 'ListViewGroupSharingRepresentation') {
555
555
  const v_error = (() => {
556
556
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
557
557
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -569,10 +569,10 @@ function validate$4(obj, path = 'ListViewGroupSharingRepresentation') {
569
569
  })();
570
570
  return v_error === undefined ? null : v_error;
571
571
  }
572
- const select$5 = function ListViewGroupSharingRepresentationSelect() {
572
+ const select$8 = function ListViewGroupSharingRepresentationSelect() {
573
573
  return {
574
574
  kind: 'Fragment',
575
- version: VERSION$4,
575
+ version: VERSION$6,
576
576
  private: [],
577
577
  selections: [
578
578
  {
@@ -586,7 +586,7 @@ const select$5 = function ListViewGroupSharingRepresentationSelect() {
586
586
  ]
587
587
  };
588
588
  };
589
- function equals$4(existing, incoming) {
589
+ function equals$6(existing, incoming) {
590
590
  const existing_developerName = existing.developerName;
591
591
  const incoming_developerName = incoming.developerName;
592
592
  if (!(existing_developerName === incoming_developerName)) {
@@ -600,8 +600,8 @@ function equals$4(existing, incoming) {
600
600
  return true;
601
601
  }
602
602
 
603
- const VERSION$3 = "a0ed38b40ad9886f3e05a1b65fd2e246";
604
- function validate$3(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentation') {
603
+ const VERSION$5 = "a0ed38b40ad9886f3e05a1b65fd2e246";
604
+ function validate$5(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentation') {
605
605
  const v_error = (() => {
606
606
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
607
607
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -639,10 +639,10 @@ function validate$3(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentat
639
639
  })();
640
640
  return v_error === undefined ? null : v_error;
641
641
  }
642
- const select$4 = function ReportAndDashboardFolderGroupSharingRepresentationSelect() {
642
+ const select$7 = function ReportAndDashboardFolderGroupSharingRepresentationSelect() {
643
643
  return {
644
644
  kind: 'Fragment',
645
- version: VERSION$3,
645
+ version: VERSION$5,
646
646
  private: [],
647
647
  selections: [
648
648
  {
@@ -672,7 +672,7 @@ const select$4 = function ReportAndDashboardFolderGroupSharingRepresentationSele
672
672
  ]
673
673
  };
674
674
  };
675
- function equals$3(existing, incoming) {
675
+ function equals$5(existing, incoming) {
676
676
  const existing_accessLevel = existing.accessLevel;
677
677
  const incoming_accessLevel = incoming.accessLevel;
678
678
  if (!(existing_accessLevel === incoming_accessLevel)) {
@@ -706,8 +706,8 @@ function equals$3(existing, incoming) {
706
706
  return true;
707
707
  }
708
708
 
709
- const VERSION$2 = "1036a20704b51746749bb4be569e39c0";
710
- function validate$2(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation') {
709
+ const VERSION$4 = "1036a20704b51746749bb4be569e39c0";
710
+ function validate$4(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation') {
711
711
  const v_error = (() => {
712
712
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
713
713
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -735,10 +735,10 @@ function validate$2(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation'
735
735
  })();
736
736
  return v_error === undefined ? null : v_error;
737
737
  }
738
- const select$3 = function SharingRulesCriteriaGroupSharingRepresentationSelect() {
738
+ const select$6 = function SharingRulesCriteriaGroupSharingRepresentationSelect() {
739
739
  return {
740
740
  kind: 'Fragment',
741
- version: VERSION$2,
741
+ version: VERSION$4,
742
742
  private: [],
743
743
  selections: [
744
744
  {
@@ -760,7 +760,7 @@ const select$3 = function SharingRulesCriteriaGroupSharingRepresentationSelect()
760
760
  ]
761
761
  };
762
762
  };
763
- function equals$2(existing, incoming) {
763
+ function equals$4(existing, incoming) {
764
764
  const existing_accessLevel = existing.accessLevel;
765
765
  const incoming_accessLevel = incoming.accessLevel;
766
766
  if (!(existing_accessLevel === incoming_accessLevel)) {
@@ -784,8 +784,8 @@ function equals$2(existing, incoming) {
784
784
  return true;
785
785
  }
786
786
 
787
- const VERSION$1 = "8f205925d69192f91fd2c71838ed20e7";
788
- function validate$1(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
787
+ const VERSION$3 = "8f205925d69192f91fd2c71838ed20e7";
788
+ function validate$3(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
789
789
  const v_error = (() => {
790
790
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
791
791
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -813,10 +813,10 @@ function validate$1(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
813
813
  })();
814
814
  return v_error === undefined ? null : v_error;
815
815
  }
816
- const select$2 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
816
+ const select$5 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
817
817
  return {
818
818
  kind: 'Fragment',
819
- version: VERSION$1,
819
+ version: VERSION$3,
820
820
  private: [],
821
821
  selections: [
822
822
  {
@@ -838,7 +838,7 @@ const select$2 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
838
838
  ]
839
839
  };
840
840
  };
841
- function equals$1(existing, incoming) {
841
+ function equals$3(existing, incoming) {
842
842
  const existing_accessLevel = existing.accessLevel;
843
843
  const incoming_accessLevel = incoming.accessLevel;
844
844
  if (!(existing_accessLevel === incoming_accessLevel)) {
@@ -862,9 +862,9 @@ function equals$1(existing, incoming) {
862
862
  return true;
863
863
  }
864
864
 
865
- const TTL = 300;
866
- const VERSION = "68cd535d9b1bd32d0d42ce950115eff5";
867
- function validate(obj, path = 'PublicGroupSummaryRepresentation') {
865
+ const TTL$1 = 300;
866
+ const VERSION$2 = "68cd535d9b1bd32d0d42ce950115eff5";
867
+ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
868
868
  const v_error = (() => {
869
869
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
870
870
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -877,7 +877,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
877
877
  for (let i = 0; i < obj_includedGroupsSharing.length; i++) {
878
878
  const obj_includedGroupsSharing_item = obj_includedGroupsSharing[i];
879
879
  const path_includedGroupsSharing_item = path_includedGroupsSharing + '[' + i + ']';
880
- const referencepath_includedGroupsSharing_itemValidationError = validate$5(obj_includedGroupsSharing_item, path_includedGroupsSharing_item);
880
+ const referencepath_includedGroupsSharing_itemValidationError = validate$7(obj_includedGroupsSharing_item, path_includedGroupsSharing_item);
881
881
  if (referencepath_includedGroupsSharing_itemValidationError !== null) {
882
882
  let message = 'Object doesn\'t match IncludedGroupsSharingRepresentation (at "' + path_includedGroupsSharing_item + '")\n';
883
883
  message += referencepath_includedGroupsSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -892,7 +892,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
892
892
  for (let i = 0; i < obj_listViewGroupSharing.length; i++) {
893
893
  const obj_listViewGroupSharing_item = obj_listViewGroupSharing[i];
894
894
  const path_listViewGroupSharing_item = path_listViewGroupSharing + '[' + i + ']';
895
- const referencepath_listViewGroupSharing_itemValidationError = validate$4(obj_listViewGroupSharing_item, path_listViewGroupSharing_item);
895
+ const referencepath_listViewGroupSharing_itemValidationError = validate$6(obj_listViewGroupSharing_item, path_listViewGroupSharing_item);
896
896
  if (referencepath_listViewGroupSharing_itemValidationError !== null) {
897
897
  let message = 'Object doesn\'t match ListViewGroupSharingRepresentation (at "' + path_listViewGroupSharing_item + '")\n';
898
898
  message += referencepath_listViewGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -907,7 +907,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
907
907
  for (let i = 0; i < obj_reportAndDashboardFolderGroupSharing.length; i++) {
908
908
  const obj_reportAndDashboardFolderGroupSharing_item = obj_reportAndDashboardFolderGroupSharing[i];
909
909
  const path_reportAndDashboardFolderGroupSharing_item = path_reportAndDashboardFolderGroupSharing + '[' + i + ']';
910
- const referencepath_reportAndDashboardFolderGroupSharing_itemValidationError = validate$3(obj_reportAndDashboardFolderGroupSharing_item, path_reportAndDashboardFolderGroupSharing_item);
910
+ const referencepath_reportAndDashboardFolderGroupSharing_itemValidationError = validate$5(obj_reportAndDashboardFolderGroupSharing_item, path_reportAndDashboardFolderGroupSharing_item);
911
911
  if (referencepath_reportAndDashboardFolderGroupSharing_itemValidationError !== null) {
912
912
  let message = 'Object doesn\'t match ReportAndDashboardFolderGroupSharingRepresentation (at "' + path_reportAndDashboardFolderGroupSharing_item + '")\n';
913
913
  message += referencepath_reportAndDashboardFolderGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -922,7 +922,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
922
922
  for (let i = 0; i < obj_sharingRulesCriteriaGroupSharing.length; i++) {
923
923
  const obj_sharingRulesCriteriaGroupSharing_item = obj_sharingRulesCriteriaGroupSharing[i];
924
924
  const path_sharingRulesCriteriaGroupSharing_item = path_sharingRulesCriteriaGroupSharing + '[' + i + ']';
925
- const referencepath_sharingRulesCriteriaGroupSharing_itemValidationError = validate$2(obj_sharingRulesCriteriaGroupSharing_item, path_sharingRulesCriteriaGroupSharing_item);
925
+ const referencepath_sharingRulesCriteriaGroupSharing_itemValidationError = validate$4(obj_sharingRulesCriteriaGroupSharing_item, path_sharingRulesCriteriaGroupSharing_item);
926
926
  if (referencepath_sharingRulesCriteriaGroupSharing_itemValidationError !== null) {
927
927
  let message = 'Object doesn\'t match SharingRulesCriteriaGroupSharingRepresentation (at "' + path_sharingRulesCriteriaGroupSharing_item + '")\n';
928
928
  message += referencepath_sharingRulesCriteriaGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -937,7 +937,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
937
937
  for (let i = 0; i < obj_sharingRulesOwnerGroupSharing.length; i++) {
938
938
  const obj_sharingRulesOwnerGroupSharing_item = obj_sharingRulesOwnerGroupSharing[i];
939
939
  const path_sharingRulesOwnerGroupSharing_item = path_sharingRulesOwnerGroupSharing + '[' + i + ']';
940
- const referencepath_sharingRulesOwnerGroupSharing_itemValidationError = validate$1(obj_sharingRulesOwnerGroupSharing_item, path_sharingRulesOwnerGroupSharing_item);
940
+ const referencepath_sharingRulesOwnerGroupSharing_itemValidationError = validate$3(obj_sharingRulesOwnerGroupSharing_item, path_sharingRulesOwnerGroupSharing_item);
941
941
  if (referencepath_sharingRulesOwnerGroupSharing_itemValidationError !== null) {
942
942
  let message = 'Object doesn\'t match SharingRulesOwnerGroupSharingRepresentation (at "' + path_sharingRulesOwnerGroupSharing_item + '")\n';
943
943
  message += referencepath_sharingRulesOwnerGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -947,19 +947,19 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
947
947
  })();
948
948
  return v_error === undefined ? null : v_error;
949
949
  }
950
- const RepresentationType = 'PublicGroupSummaryRepresentation';
951
- function normalize(input, existing, path, luvio, store, timestamp) {
950
+ const RepresentationType$1 = 'PublicGroupSummaryRepresentation';
951
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
952
952
  return input;
953
953
  }
954
- const select$1 = function PublicGroupSummaryRepresentationSelect() {
955
- const { selections: IncludedGroupsSharingRepresentation__selections, opaque: IncludedGroupsSharingRepresentation__opaque, } = select$6();
956
- const { selections: ListViewGroupSharingRepresentation__selections, opaque: ListViewGroupSharingRepresentation__opaque, } = select$5();
957
- const { selections: ReportAndDashboardFolderGroupSharingRepresentation__selections, opaque: ReportAndDashboardFolderGroupSharingRepresentation__opaque, } = select$4();
958
- const { selections: SharingRulesCriteriaGroupSharingRepresentation__selections, opaque: SharingRulesCriteriaGroupSharingRepresentation__opaque, } = select$3();
959
- const { selections: SharingRulesOwnerGroupSharingRepresentation__selections, opaque: SharingRulesOwnerGroupSharingRepresentation__opaque, } = select$2();
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();
960
960
  return {
961
961
  kind: 'Fragment',
962
- version: VERSION,
962
+ version: VERSION$2,
963
963
  private: [],
964
964
  selections: [
965
965
  {
@@ -995,11 +995,11 @@ const select$1 = function PublicGroupSummaryRepresentationSelect() {
995
995
  ]
996
996
  };
997
997
  };
998
- function equals(existing, incoming) {
998
+ function equals$2(existing, incoming) {
999
999
  const existing_includedGroupsSharing = existing.includedGroupsSharing;
1000
1000
  const incoming_includedGroupsSharing = incoming.includedGroupsSharing;
1001
1001
  const equals_includedGroupsSharing_items = equalsArray(existing_includedGroupsSharing, incoming_includedGroupsSharing, (existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item) => {
1002
- if (!(equals$5(existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item))) {
1002
+ if (!(equals$7(existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item))) {
1003
1003
  return false;
1004
1004
  }
1005
1005
  });
@@ -1009,7 +1009,7 @@ function equals(existing, incoming) {
1009
1009
  const existing_listViewGroupSharing = existing.listViewGroupSharing;
1010
1010
  const incoming_listViewGroupSharing = incoming.listViewGroupSharing;
1011
1011
  const equals_listViewGroupSharing_items = equalsArray(existing_listViewGroupSharing, incoming_listViewGroupSharing, (existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item) => {
1012
- if (!(equals$4(existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item))) {
1012
+ if (!(equals$6(existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item))) {
1013
1013
  return false;
1014
1014
  }
1015
1015
  });
@@ -1019,7 +1019,7 @@ function equals(existing, incoming) {
1019
1019
  const existing_reportAndDashboardFolderGroupSharing = existing.reportAndDashboardFolderGroupSharing;
1020
1020
  const incoming_reportAndDashboardFolderGroupSharing = incoming.reportAndDashboardFolderGroupSharing;
1021
1021
  const equals_reportAndDashboardFolderGroupSharing_items = equalsArray(existing_reportAndDashboardFolderGroupSharing, incoming_reportAndDashboardFolderGroupSharing, (existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item) => {
1022
- if (!(equals$3(existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item))) {
1022
+ if (!(equals$5(existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item))) {
1023
1023
  return false;
1024
1024
  }
1025
1025
  });
@@ -1029,7 +1029,7 @@ function equals(existing, incoming) {
1029
1029
  const existing_sharingRulesCriteriaGroupSharing = existing.sharingRulesCriteriaGroupSharing;
1030
1030
  const incoming_sharingRulesCriteriaGroupSharing = incoming.sharingRulesCriteriaGroupSharing;
1031
1031
  const equals_sharingRulesCriteriaGroupSharing_items = equalsArray(existing_sharingRulesCriteriaGroupSharing, incoming_sharingRulesCriteriaGroupSharing, (existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item) => {
1032
- if (!(equals$2(existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item))) {
1032
+ if (!(equals$4(existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item))) {
1033
1033
  return false;
1034
1034
  }
1035
1035
  });
@@ -1039,7 +1039,7 @@ function equals(existing, incoming) {
1039
1039
  const existing_sharingRulesOwnerGroupSharing = existing.sharingRulesOwnerGroupSharing;
1040
1040
  const incoming_sharingRulesOwnerGroupSharing = incoming.sharingRulesOwnerGroupSharing;
1041
1041
  const equals_sharingRulesOwnerGroupSharing_items = equalsArray(existing_sharingRulesOwnerGroupSharing, incoming_sharingRulesOwnerGroupSharing, (existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item) => {
1042
- if (!(equals$1(existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item))) {
1042
+ if (!(equals$3(existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item))) {
1043
1043
  return false;
1044
1044
  }
1045
1045
  });
@@ -1048,7 +1048,321 @@ function equals(existing, incoming) {
1048
1048
  }
1049
1049
  return true;
1050
1050
  }
1051
- const ingest = function PublicGroupSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
1051
+ const ingest$1 = function PublicGroupSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
1052
+ if (process.env.NODE_ENV !== 'production') {
1053
+ const validateError = validate$2(input);
1054
+ if (validateError !== null) {
1055
+ throw validateError;
1056
+ }
1057
+ }
1058
+ 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
+ return createLink(key);
1062
+ };
1063
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1064
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1065
+ const rootKey = fullPathFactory();
1066
+ rootKeySet.set(rootKey, {
1067
+ namespace: keyPrefix,
1068
+ representationName: RepresentationType$1,
1069
+ mergeable: false
1070
+ });
1071
+ }
1072
+
1073
+ function select$3(luvio, params) {
1074
+ return select$4();
1075
+ }
1076
+ function keyBuilder$3(luvio, params) {
1077
+ return keyPrefix + '::PublicGroupSummaryRepresentation:(' + 'entityKeyPrefix:' + params.body.entityKeyPrefix + '::' + 'groupId:' + params.body.groupId + '::' + 'limit:' + params.body.limit + '::' + 'offset:' + params.body.offset + '::' + 'operation:' + params.body.operation + ')';
1078
+ }
1079
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1080
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
1081
+ }
1082
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1083
+ const { body } = response;
1084
+ const key = keyBuilder$3(luvio, resourceParams);
1085
+ luvio.storeIngest(key, ingest$1, body);
1086
+ const snapshot = luvio.storeLookup({
1087
+ recordId: key,
1088
+ node: select$3(),
1089
+ variables: {},
1090
+ }, snapshotRefresh);
1091
+ if (process.env.NODE_ENV !== 'production') {
1092
+ if (snapshot.state !== 'Fulfilled') {
1093
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1094
+ }
1095
+ }
1096
+ deepFreeze(snapshot.data);
1097
+ return snapshot;
1098
+ }
1099
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
1100
+ const key = keyBuilder$3(luvio, params);
1101
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1102
+ const storeMetadataParams = {
1103
+ ttl: TTL$1,
1104
+ namespace: keyPrefix,
1105
+ version: VERSION$2,
1106
+ representationName: RepresentationType$1
1107
+ };
1108
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1109
+ return errorSnapshot;
1110
+ }
1111
+ function createResourceRequest$1(config) {
1112
+ const headers = {};
1113
+ return {
1114
+ baseUri: '/services/data/v61.0',
1115
+ basePath: '/sharing/publicGroupsSummary',
1116
+ method: 'post',
1117
+ body: config.body,
1118
+ urlParams: {},
1119
+ queryParams: {},
1120
+ headers,
1121
+ priority: 'normal',
1122
+ };
1123
+ }
1124
+
1125
+ const adapterName$1 = 'getPublicGroupShareData';
1126
+ const getPublicGroupShareData_ConfigPropertyMetadata = [
1127
+ generateParamConfigMetadata('entityKeyPrefix', true, 2 /* Body */, 0 /* String */),
1128
+ generateParamConfigMetadata('groupId', true, 2 /* Body */, 0 /* String */),
1129
+ generateParamConfigMetadata('limit', true, 2 /* Body */, 3 /* Integer */),
1130
+ generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
1131
+ generateParamConfigMetadata('operation', true, 2 /* Body */, 0 /* String */),
1132
+ ];
1133
+ const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPublicGroupShareData_ConfigPropertyMetadata);
1134
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getPublicGroupShareData_ConfigPropertyMetadata);
1135
+ function keyBuilder$2(luvio, config) {
1136
+ const resourceParams = createResourceParams$1(config);
1137
+ return keyBuilder$3(luvio, resourceParams);
1138
+ }
1139
+ function typeCheckConfig$1(untrustedConfig) {
1140
+ const config = {};
1141
+ typeCheckConfig$3(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
1142
+ return config;
1143
+ }
1144
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1145
+ if (!untrustedIsObject(untrustedConfig)) {
1146
+ return null;
1147
+ }
1148
+ if (process.env.NODE_ENV !== 'production') {
1149
+ validateConfig(untrustedConfig, configPropertyNames);
1150
+ }
1151
+ const config = typeCheckConfig$1(untrustedConfig);
1152
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1153
+ return null;
1154
+ }
1155
+ return config;
1156
+ }
1157
+ function adapterFragment$1(luvio, config) {
1158
+ createResourceParams$1(config);
1159
+ return select$3();
1160
+ }
1161
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
1162
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
1163
+ config,
1164
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1165
+ });
1166
+ return luvio.storeBroadcast().then(() => snapshot);
1167
+ }
1168
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
1169
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
1170
+ config,
1171
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1172
+ });
1173
+ return luvio.storeBroadcast().then(() => snapshot);
1174
+ }
1175
+ function buildNetworkSnapshot$1(luvio, config, options) {
1176
+ const resourceParams = createResourceParams$1(config);
1177
+ const request = createResourceRequest$1(resourceParams);
1178
+ return luvio.dispatchResourceRequest(request, options)
1179
+ .then((response) => {
1180
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
1181
+ const cache = new StoreKeyMap();
1182
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1183
+ return cache;
1184
+ });
1185
+ }, (response) => {
1186
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
1187
+ });
1188
+ }
1189
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1190
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, 'get', false);
1191
+ }
1192
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1193
+ const { luvio, config } = context;
1194
+ const selector = {
1195
+ recordId: keyBuilder$2(luvio, config),
1196
+ node: adapterFragment$1(luvio, config),
1197
+ variables: {},
1198
+ };
1199
+ const cacheSnapshot = storeLookup(selector, {
1200
+ config,
1201
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1202
+ });
1203
+ return cacheSnapshot;
1204
+ }
1205
+ const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPublicGroupShareData(untrustedConfig, requestContext) {
1206
+ const config = validateAdapterConfig$1(untrustedConfig, getPublicGroupShareData_ConfigPropertyNames);
1207
+ // Invalid or incomplete config
1208
+ if (config === null) {
1209
+ return null;
1210
+ }
1211
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1212
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
1213
+ };
1214
+
1215
+ const VERSION$1 = "8f1b312aa04c8869624b95b9e3f3cd4e";
1216
+ function validate$1(obj, path = 'SobjectOutputSharingRepresentation') {
1217
+ const v_error = (() => {
1218
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1219
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1220
+ }
1221
+ const obj_apiName = obj.apiName;
1222
+ const path_apiName = path + '.apiName';
1223
+ if (typeof obj_apiName !== 'string') {
1224
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
1225
+ }
1226
+ const obj_keyPrefix = obj.keyPrefix;
1227
+ const path_keyPrefix = path + '.keyPrefix';
1228
+ if (typeof obj_keyPrefix !== 'string') {
1229
+ return new TypeError('Expected "string" but received "' + typeof obj_keyPrefix + '" (at "' + path_keyPrefix + '")');
1230
+ }
1231
+ const obj_label = obj.label;
1232
+ const path_label = path + '.label';
1233
+ if (typeof obj_label !== 'string') {
1234
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1235
+ }
1236
+ const obj_labelPlural = obj.labelPlural;
1237
+ const path_labelPlural = path + '.labelPlural';
1238
+ if (typeof obj_labelPlural !== 'string') {
1239
+ return new TypeError('Expected "string" but received "' + typeof obj_labelPlural + '" (at "' + path_labelPlural + '")');
1240
+ }
1241
+ })();
1242
+ return v_error === undefined ? null : v_error;
1243
+ }
1244
+ const select$2 = function SobjectOutputSharingRepresentationSelect() {
1245
+ return {
1246
+ kind: 'Fragment',
1247
+ version: VERSION$1,
1248
+ private: [],
1249
+ selections: [
1250
+ {
1251
+ name: 'apiName',
1252
+ kind: 'Scalar'
1253
+ },
1254
+ {
1255
+ name: 'keyPrefix',
1256
+ kind: 'Scalar'
1257
+ },
1258
+ {
1259
+ name: 'label',
1260
+ kind: 'Scalar'
1261
+ },
1262
+ {
1263
+ name: 'labelPlural',
1264
+ kind: 'Scalar'
1265
+ }
1266
+ ]
1267
+ };
1268
+ };
1269
+ function equals$1(existing, incoming) {
1270
+ const existing_apiName = existing.apiName;
1271
+ const incoming_apiName = incoming.apiName;
1272
+ if (!(existing_apiName === incoming_apiName)) {
1273
+ return false;
1274
+ }
1275
+ const existing_keyPrefix = existing.keyPrefix;
1276
+ const incoming_keyPrefix = incoming.keyPrefix;
1277
+ if (!(existing_keyPrefix === incoming_keyPrefix)) {
1278
+ return false;
1279
+ }
1280
+ const existing_label = existing.label;
1281
+ const incoming_label = incoming.label;
1282
+ if (!(existing_label === incoming_label)) {
1283
+ return false;
1284
+ }
1285
+ const existing_labelPlural = existing.labelPlural;
1286
+ const incoming_labelPlural = incoming.labelPlural;
1287
+ if (!(existing_labelPlural === incoming_labelPlural)) {
1288
+ return false;
1289
+ }
1290
+ return true;
1291
+ }
1292
+
1293
+ const TTL = 900000;
1294
+ const VERSION = "891459dfe3e992adddad156c898d3aef";
1295
+ function validate(obj, path = 'SobjectsOutputSharingRepresentation') {
1296
+ const v_error = (() => {
1297
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1298
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1299
+ }
1300
+ const obj_size = obj.size;
1301
+ const path_size = path + '.size';
1302
+ if (typeof obj_size !== 'number' || (typeof obj_size === 'number' && Math.floor(obj_size) !== obj_size)) {
1303
+ return new TypeError('Expected "integer" but received "' + typeof obj_size + '" (at "' + path_size + '")');
1304
+ }
1305
+ const obj_sobjects = obj.sobjects;
1306
+ const path_sobjects = path + '.sobjects';
1307
+ if (!ArrayIsArray(obj_sobjects)) {
1308
+ return new TypeError('Expected "array" but received "' + typeof obj_sobjects + '" (at "' + path_sobjects + '")');
1309
+ }
1310
+ for (let i = 0; i < obj_sobjects.length; i++) {
1311
+ const obj_sobjects_item = obj_sobjects[i];
1312
+ const path_sobjects_item = path_sobjects + '[' + i + ']';
1313
+ const referencepath_sobjects_itemValidationError = validate$1(obj_sobjects_item, path_sobjects_item);
1314
+ if (referencepath_sobjects_itemValidationError !== null) {
1315
+ let message = 'Object doesn\'t match SobjectOutputSharingRepresentation (at "' + path_sobjects_item + '")\n';
1316
+ message += referencepath_sobjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1317
+ return new TypeError(message);
1318
+ }
1319
+ }
1320
+ })();
1321
+ return v_error === undefined ? null : v_error;
1322
+ }
1323
+ const RepresentationType = 'SobjectsOutputSharingRepresentation';
1324
+ function normalize(input, existing, path, luvio, store, timestamp) {
1325
+ return input;
1326
+ }
1327
+ const select$1 = function SobjectsOutputSharingRepresentationSelect() {
1328
+ const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$2();
1329
+ return {
1330
+ kind: 'Fragment',
1331
+ version: VERSION,
1332
+ private: [],
1333
+ selections: [
1334
+ {
1335
+ name: 'size',
1336
+ kind: 'Scalar'
1337
+ },
1338
+ {
1339
+ name: 'sobjects',
1340
+ kind: 'Object',
1341
+ plural: true,
1342
+ selections: SobjectOutputSharingRepresentation__selections
1343
+ }
1344
+ ]
1345
+ };
1346
+ };
1347
+ function equals(existing, incoming) {
1348
+ const existing_size = existing.size;
1349
+ const incoming_size = incoming.size;
1350
+ if (!(existing_size === incoming_size)) {
1351
+ return false;
1352
+ }
1353
+ const existing_sobjects = existing.sobjects;
1354
+ const incoming_sobjects = incoming.sobjects;
1355
+ const equals_sobjects_items = equalsArray(existing_sobjects, incoming_sobjects, (existing_sobjects_item, incoming_sobjects_item) => {
1356
+ if (!(equals$1(existing_sobjects_item, incoming_sobjects_item))) {
1357
+ return false;
1358
+ }
1359
+ });
1360
+ if (equals_sobjects_items === false) {
1361
+ return false;
1362
+ }
1363
+ return true;
1364
+ }
1365
+ const ingest = function SobjectsOutputSharingRepresentationIngest(input, path, luvio, store, timestamp) {
1052
1366
  if (process.env.NODE_ENV !== 'production') {
1053
1367
  const validateError = validate(input);
1054
1368
  if (validateError !== null) {
@@ -1074,7 +1388,7 @@ function select(luvio, params) {
1074
1388
  return select$1();
1075
1389
  }
1076
1390
  function keyBuilder$1(luvio, params) {
1077
- return keyPrefix + '::PublicGroupSummaryRepresentation:(' + 'entityKeyPrefix:' + params.body.entityKeyPrefix + '::' + 'groupId:' + params.body.groupId + '::' + 'limit:' + params.body.limit + '::' + 'offset:' + params.body.offset + '::' + 'operation:' + params.body.operation + ')';
1391
+ return keyPrefix + '::SobjectsOutputSharingRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'searchText:' + params.queryParams.searchText + ')';
1078
1392
  }
1079
1393
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1080
1394
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -1112,33 +1426,31 @@ function createResourceRequest(config) {
1112
1426
  const headers = {};
1113
1427
  return {
1114
1428
  baseUri: '/services/data/v61.0',
1115
- basePath: '/sharing/publicGroupsSummary',
1116
- method: 'post',
1117
- body: config.body,
1429
+ basePath: '/sharing/sobjects',
1430
+ method: 'get',
1431
+ body: null,
1118
1432
  urlParams: {},
1119
- queryParams: {},
1433
+ queryParams: config.queryParams,
1120
1434
  headers,
1121
1435
  priority: 'normal',
1122
1436
  };
1123
1437
  }
1124
1438
 
1125
- const adapterName = 'getPublicGroupShareData';
1126
- const getPublicGroupShareData_ConfigPropertyMetadata = [
1127
- generateParamConfigMetadata('entityKeyPrefix', true, 2 /* Body */, 0 /* String */),
1128
- generateParamConfigMetadata('groupId', true, 2 /* Body */, 0 /* String */),
1129
- generateParamConfigMetadata('limit', true, 2 /* Body */, 3 /* Integer */),
1130
- generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
1131
- generateParamConfigMetadata('operation', true, 2 /* Body */, 0 /* String */),
1439
+ const adapterName = 'getAllSobjects';
1440
+ const getAllSobjects_ConfigPropertyMetadata = [
1441
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
1442
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
1443
+ generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
1132
1444
  ];
1133
- const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPublicGroupShareData_ConfigPropertyMetadata);
1134
- const createResourceParams = /*#__PURE__*/ createResourceParams$2(getPublicGroupShareData_ConfigPropertyMetadata);
1445
+ const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getAllSobjects_ConfigPropertyMetadata);
1446
+ const createResourceParams = /*#__PURE__*/ createResourceParams$3(getAllSobjects_ConfigPropertyMetadata);
1135
1447
  function keyBuilder(luvio, config) {
1136
1448
  const resourceParams = createResourceParams(config);
1137
1449
  return keyBuilder$1(luvio, resourceParams);
1138
1450
  }
1139
1451
  function typeCheckConfig(untrustedConfig) {
1140
1452
  const config = {};
1141
- typeCheckConfig$2(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
1453
+ typeCheckConfig$3(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
1142
1454
  return config;
1143
1455
  }
1144
1456
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -1187,7 +1499,7 @@ function buildNetworkSnapshot(luvio, config, options) {
1187
1499
  });
1188
1500
  }
1189
1501
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1190
- return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot, 'get', false);
1502
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
1191
1503
  }
1192
1504
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
1193
1505
  const { luvio, config } = context;
@@ -1202,8 +1514,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
1202
1514
  });
1203
1515
  return cacheSnapshot;
1204
1516
  }
1205
- const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPublicGroupShareData(untrustedConfig, requestContext) {
1206
- const config = validateAdapterConfig(untrustedConfig, getPublicGroupShareData_ConfigPropertyNames);
1517
+ const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects(untrustedConfig, requestContext) {
1518
+ const config = validateAdapterConfig(untrustedConfig, getAllSobjects_ConfigPropertyNames);
1207
1519
  // Invalid or incomplete config
1208
1520
  if (config === null) {
1209
1521
  return null;
@@ -1212,4 +1524,4 @@ const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPu
1212
1524
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1213
1525
  };
1214
1526
 
1215
- export { getGroupsForUserAdapterFactory, getPublicGroupShareDataAdapterFactory };
1527
+ export { getAllSobjectsAdapterFactory, getGroupsForUserAdapterFactory, getPublicGroupShareDataAdapterFactory };