@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.
package/sfdc/index.js CHANGED
@@ -14,7 +14,7 @@
14
14
  /* proxy-compat-disable */
15
15
  import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
16
16
  import { withDefaultLuvio } from 'force/ldsEngine';
17
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$3, StoreKeyMap, createResourceParams as createResourceParams$3 } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckConfig as typeCheckConfig$4, StoreKeyMap, createResourceParams as createResourceParams$4 } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -101,8 +101,8 @@ function createLink(ref) {
101
101
  };
102
102
  }
103
103
 
104
- const VERSION$a = "8f1b312aa04c8869624b95b9e3f3cd4e";
105
- function validate$a(obj, path = 'SobjectOutputSharingRepresentation') {
104
+ const VERSION$c = "8f1b312aa04c8869624b95b9e3f3cd4e";
105
+ function validate$c(obj, path = 'SobjectOutputSharingRepresentation') {
106
106
  const v_error = (() => {
107
107
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
108
108
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -130,10 +130,10 @@ function validate$a(obj, path = 'SobjectOutputSharingRepresentation') {
130
130
  })();
131
131
  return v_error === undefined ? null : v_error;
132
132
  }
133
- const select$d = function SobjectOutputSharingRepresentationSelect() {
133
+ const select$g = function SobjectOutputSharingRepresentationSelect() {
134
134
  return {
135
135
  kind: 'Fragment',
136
- version: VERSION$a,
136
+ version: VERSION$c,
137
137
  private: [],
138
138
  selections: [
139
139
  {
@@ -155,7 +155,7 @@ const select$d = function SobjectOutputSharingRepresentationSelect() {
155
155
  ]
156
156
  };
157
157
  };
158
- function equals$a(existing, incoming) {
158
+ function equals$c(existing, incoming) {
159
159
  const existing_apiName = existing.apiName;
160
160
  const incoming_apiName = incoming.apiName;
161
161
  if (!(existing_apiName === incoming_apiName)) {
@@ -179,9 +179,9 @@ function equals$a(existing, incoming) {
179
179
  return true;
180
180
  }
181
181
 
182
- const TTL$2 = 900000;
183
- const VERSION$9 = "891459dfe3e992adddad156c898d3aef";
184
- function validate$9(obj, path = 'SobjectsOutputSharingRepresentation') {
182
+ const TTL$3 = 900000;
183
+ const VERSION$b = "891459dfe3e992adddad156c898d3aef";
184
+ function validate$b(obj, path = 'SobjectsOutputSharingRepresentation') {
185
185
  const v_error = (() => {
186
186
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
187
187
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -199,7 +199,7 @@ function validate$9(obj, path = 'SobjectsOutputSharingRepresentation') {
199
199
  for (let i = 0; i < obj_sobjects.length; i++) {
200
200
  const obj_sobjects_item = obj_sobjects[i];
201
201
  const path_sobjects_item = path_sobjects + '[' + i + ']';
202
- const referencepath_sobjects_itemValidationError = validate$a(obj_sobjects_item, path_sobjects_item);
202
+ const referencepath_sobjects_itemValidationError = validate$c(obj_sobjects_item, path_sobjects_item);
203
203
  if (referencepath_sobjects_itemValidationError !== null) {
204
204
  let message = 'Object doesn\'t match SobjectOutputSharingRepresentation (at "' + path_sobjects_item + '")\n';
205
205
  message += referencepath_sobjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -209,15 +209,15 @@ function validate$9(obj, path = 'SobjectsOutputSharingRepresentation') {
209
209
  })();
210
210
  return v_error === undefined ? null : v_error;
211
211
  }
212
- const RepresentationType$2 = 'SobjectsOutputSharingRepresentation';
213
- function normalize$2(input, existing, path, luvio, store, timestamp) {
212
+ const RepresentationType$3 = 'SobjectsOutputSharingRepresentation';
213
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
214
214
  return input;
215
215
  }
216
- const select$c = function SobjectsOutputSharingRepresentationSelect() {
217
- const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$d();
216
+ const select$f = function SobjectsOutputSharingRepresentationSelect() {
217
+ const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$g();
218
218
  return {
219
219
  kind: 'Fragment',
220
- version: VERSION$9,
220
+ version: VERSION$b,
221
221
  private: [],
222
222
  selections: [
223
223
  {
@@ -233,7 +233,7 @@ const select$c = function SobjectsOutputSharingRepresentationSelect() {
233
233
  ]
234
234
  };
235
235
  };
236
- function equals$9(existing, incoming) {
236
+ function equals$b(existing, incoming) {
237
237
  const existing_size = existing.size;
238
238
  const incoming_size = incoming.size;
239
239
  if (!(existing_size === incoming_size)) {
@@ -242,7 +242,7 @@ function equals$9(existing, incoming) {
242
242
  const existing_sobjects = existing.sobjects;
243
243
  const incoming_sobjects = incoming.sobjects;
244
244
  const equals_sobjects_items = equalsArray(existing_sobjects, incoming_sobjects, (existing_sobjects_item, incoming_sobjects_item) => {
245
- if (!(equals$a(existing_sobjects_item, incoming_sobjects_item))) {
245
+ if (!(equals$c(existing_sobjects_item, incoming_sobjects_item))) {
246
246
  return false;
247
247
  }
248
248
  });
@@ -251,44 +251,44 @@ function equals$9(existing, incoming) {
251
251
  }
252
252
  return true;
253
253
  }
254
- const ingest$2 = function SobjectsOutputSharingRepresentationIngest(input, path, luvio, store, timestamp) {
254
+ const ingest$3 = function SobjectsOutputSharingRepresentationIngest(input, path, luvio, store, timestamp) {
255
255
  if (process.env.NODE_ENV !== 'production') {
256
- const validateError = validate$9(input);
256
+ const validateError = validate$b(input);
257
257
  if (validateError !== null) {
258
258
  throw validateError;
259
259
  }
260
260
  }
261
261
  const key = path.fullPath;
262
- const ttlToUse = TTL$2;
263
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "sharing", VERSION$9, RepresentationType$2, equals$9);
262
+ const ttlToUse = TTL$3;
263
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "sharing", VERSION$b, RepresentationType$3, equals$b);
264
264
  return createLink(key);
265
265
  };
266
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
266
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
267
267
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
268
268
  const rootKey = fullPathFactory();
269
269
  rootKeySet.set(rootKey, {
270
270
  namespace: keyPrefix,
271
- representationName: RepresentationType$2,
271
+ representationName: RepresentationType$3,
272
272
  mergeable: false
273
273
  });
274
274
  }
275
275
 
276
- function select$b(luvio, params) {
277
- return select$c();
276
+ function select$e(luvio, params) {
277
+ return select$f();
278
278
  }
279
- function keyBuilder$5(luvio, params) {
279
+ function keyBuilder$7(luvio, params) {
280
280
  return keyPrefix + '::SobjectsOutputSharingRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'searchText:' + params.queryParams.searchText + ')';
281
281
  }
282
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
283
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
282
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
283
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
284
284
  }
285
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
285
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
286
286
  const { body } = response;
287
- const key = keyBuilder$5(luvio, resourceParams);
288
- luvio.storeIngest(key, ingest$2, body);
287
+ const key = keyBuilder$7(luvio, resourceParams);
288
+ luvio.storeIngest(key, ingest$3, body);
289
289
  const snapshot = luvio.storeLookup({
290
290
  recordId: key,
291
- node: select$b(),
291
+ node: select$e(),
292
292
  variables: {},
293
293
  }, snapshotRefresh);
294
294
  if (process.env.NODE_ENV !== 'production') {
@@ -299,19 +299,19 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
299
299
  deepFreeze(snapshot.data);
300
300
  return snapshot;
301
301
  }
302
- function ingestError$2(luvio, params, error, snapshotRefresh) {
303
- const key = keyBuilder$5(luvio, params);
302
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
303
+ const key = keyBuilder$7(luvio, params);
304
304
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
305
305
  const storeMetadataParams = {
306
- ttl: TTL$2,
306
+ ttl: TTL$3,
307
307
  namespace: keyPrefix,
308
- version: VERSION$9,
309
- representationName: RepresentationType$2
308
+ version: VERSION$b,
309
+ representationName: RepresentationType$3
310
310
  };
311
311
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
312
312
  return errorSnapshot;
313
313
  }
314
- function createResourceRequest$2(config) {
314
+ function createResourceRequest$3(config) {
315
315
  const headers = {};
316
316
  return {
317
317
  baseUri: '/services/data/v61.0',
@@ -325,96 +325,96 @@ function createResourceRequest$2(config) {
325
325
  };
326
326
  }
327
327
 
328
- const adapterName$2 = 'getAllSobjects';
328
+ const adapterName$3 = 'getAllSobjects';
329
329
  const getAllSobjects_ConfigPropertyMetadata = [
330
330
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
331
331
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
332
332
  generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
333
333
  ];
334
- const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getAllSobjects_ConfigPropertyMetadata);
335
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(getAllSobjects_ConfigPropertyMetadata);
336
- function keyBuilder$4(luvio, config) {
337
- const resourceParams = createResourceParams$2(config);
338
- return keyBuilder$5(luvio, resourceParams);
334
+ const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getAllSobjects_ConfigPropertyMetadata);
335
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(getAllSobjects_ConfigPropertyMetadata);
336
+ function keyBuilder$6(luvio, config) {
337
+ const resourceParams = createResourceParams$3(config);
338
+ return keyBuilder$7(luvio, resourceParams);
339
339
  }
340
- function typeCheckConfig$2(untrustedConfig) {
340
+ function typeCheckConfig$3(untrustedConfig) {
341
341
  const config = {};
342
- typeCheckConfig$3(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
342
+ typeCheckConfig$4(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
343
343
  return config;
344
344
  }
345
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
345
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
346
346
  if (!untrustedIsObject(untrustedConfig)) {
347
347
  return null;
348
348
  }
349
349
  if (process.env.NODE_ENV !== 'production') {
350
350
  validateConfig(untrustedConfig, configPropertyNames);
351
351
  }
352
- const config = typeCheckConfig$2(untrustedConfig);
352
+ const config = typeCheckConfig$3(untrustedConfig);
353
353
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
354
354
  return null;
355
355
  }
356
356
  return config;
357
357
  }
358
- function adapterFragment$2(luvio, config) {
359
- createResourceParams$2(config);
360
- return select$b();
358
+ function adapterFragment$3(luvio, config) {
359
+ createResourceParams$3(config);
360
+ return select$e();
361
361
  }
362
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
363
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
362
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
363
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
364
364
  config,
365
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
365
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
366
366
  });
367
367
  return luvio.storeBroadcast().then(() => snapshot);
368
368
  }
369
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
370
- const snapshot = ingestError$2(luvio, resourceParams, response, {
369
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
370
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
371
371
  config,
372
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
372
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
373
373
  });
374
374
  return luvio.storeBroadcast().then(() => snapshot);
375
375
  }
376
- function buildNetworkSnapshot$2(luvio, config, options) {
377
- const resourceParams = createResourceParams$2(config);
378
- const request = createResourceRequest$2(resourceParams);
376
+ function buildNetworkSnapshot$3(luvio, config, options) {
377
+ const resourceParams = createResourceParams$3(config);
378
+ const request = createResourceRequest$3(resourceParams);
379
379
  return luvio.dispatchResourceRequest(request, options)
380
380
  .then((response) => {
381
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
381
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
382
382
  const cache = new StoreKeyMap();
383
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
383
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
384
384
  return cache;
385
385
  });
386
386
  }, (response) => {
387
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
387
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
388
388
  });
389
389
  }
390
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
391
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
390
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
391
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
392
392
  }
393
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
393
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
394
394
  const { luvio, config } = context;
395
395
  const selector = {
396
- recordId: keyBuilder$4(luvio, config),
397
- node: adapterFragment$2(luvio, config),
396
+ recordId: keyBuilder$6(luvio, config),
397
+ node: adapterFragment$3(luvio, config),
398
398
  variables: {},
399
399
  };
400
400
  const cacheSnapshot = storeLookup(selector, {
401
401
  config,
402
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
402
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
403
403
  });
404
404
  return cacheSnapshot;
405
405
  }
406
406
  const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects(untrustedConfig, requestContext) {
407
- const config = validateAdapterConfig$2(untrustedConfig, getAllSobjects_ConfigPropertyNames);
407
+ const config = validateAdapterConfig$3(untrustedConfig, getAllSobjects_ConfigPropertyNames);
408
408
  // Invalid or incomplete config
409
409
  if (config === null) {
410
410
  return null;
411
411
  }
412
412
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
413
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
413
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
414
414
  };
415
415
 
416
- const VERSION$8 = "252bb771341222662b0b76c855414e1f";
417
- function validate$8(obj, path = 'PublicGroupRepresentation') {
416
+ const VERSION$a = "252bb771341222662b0b76c855414e1f";
417
+ function validate$a(obj, path = 'PublicGroupRepresentation') {
418
418
  const v_error = (() => {
419
419
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
420
420
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -437,10 +437,10 @@ function validate$8(obj, path = 'PublicGroupRepresentation') {
437
437
  })();
438
438
  return v_error === undefined ? null : v_error;
439
439
  }
440
- const select$a = function PublicGroupRepresentationSelect() {
440
+ const select$d = function PublicGroupRepresentationSelect() {
441
441
  return {
442
442
  kind: 'Fragment',
443
- version: VERSION$8,
443
+ version: VERSION$a,
444
444
  private: [],
445
445
  selections: [
446
446
  {
@@ -458,7 +458,7 @@ const select$a = function PublicGroupRepresentationSelect() {
458
458
  ]
459
459
  };
460
460
  };
461
- function equals$8(existing, incoming) {
461
+ function equals$a(existing, incoming) {
462
462
  const existing_includeBosses = existing.includeBosses;
463
463
  const incoming_includeBosses = incoming.includeBosses;
464
464
  if (!(existing_includeBosses === incoming_includeBosses)) {
@@ -477,8 +477,8 @@ function equals$8(existing, incoming) {
477
477
  return true;
478
478
  }
479
479
 
480
- const VERSION$7 = "9371d1d2e640f37aa01c377fc78d6ef7";
481
- function validate$7(obj, path = 'QueueRepresentation') {
480
+ const VERSION$9 = "9371d1d2e640f37aa01c377fc78d6ef7";
481
+ function validate$9(obj, path = 'QueueRepresentation') {
482
482
  const v_error = (() => {
483
483
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
484
484
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -496,10 +496,10 @@ function validate$7(obj, path = 'QueueRepresentation') {
496
496
  })();
497
497
  return v_error === undefined ? null : v_error;
498
498
  }
499
- const select$9 = function QueueRepresentationSelect() {
499
+ const select$c = function QueueRepresentationSelect() {
500
500
  return {
501
501
  kind: 'Fragment',
502
- version: VERSION$7,
502
+ version: VERSION$9,
503
503
  private: [],
504
504
  selections: [
505
505
  {
@@ -513,7 +513,7 @@ const select$9 = function QueueRepresentationSelect() {
513
513
  ]
514
514
  };
515
515
  };
516
- function equals$7(existing, incoming) {
516
+ function equals$9(existing, incoming) {
517
517
  const existing_developerName = existing.developerName;
518
518
  const incoming_developerName = incoming.developerName;
519
519
  if (!(existing_developerName === incoming_developerName)) {
@@ -527,9 +527,9 @@ function equals$7(existing, incoming) {
527
527
  return true;
528
528
  }
529
529
 
530
- const TTL$1 = 300;
531
- const VERSION$6 = "3659c4a4f46957a3a2b5cb2d2383180d";
532
- function validate$6(obj, path = 'GroupCollectionRepresentation') {
530
+ const TTL$2 = 300;
531
+ const VERSION$8 = "3659c4a4f46957a3a2b5cb2d2383180d";
532
+ function validate$8(obj, path = 'GroupCollectionRepresentation') {
533
533
  const v_error = (() => {
534
534
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
535
535
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -542,7 +542,7 @@ function validate$6(obj, path = 'GroupCollectionRepresentation') {
542
542
  for (let i = 0; i < obj_publicGroupRepresentations.length; i++) {
543
543
  const obj_publicGroupRepresentations_item = obj_publicGroupRepresentations[i];
544
544
  const path_publicGroupRepresentations_item = path_publicGroupRepresentations + '[' + i + ']';
545
- const referencepath_publicGroupRepresentations_itemValidationError = validate$8(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
545
+ const referencepath_publicGroupRepresentations_itemValidationError = validate$a(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
546
546
  if (referencepath_publicGroupRepresentations_itemValidationError !== null) {
547
547
  let message = 'Object doesn\'t match PublicGroupRepresentation (at "' + path_publicGroupRepresentations_item + '")\n';
548
548
  message += referencepath_publicGroupRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -557,7 +557,7 @@ function validate$6(obj, path = 'GroupCollectionRepresentation') {
557
557
  for (let i = 0; i < obj_queueRepresentations.length; i++) {
558
558
  const obj_queueRepresentations_item = obj_queueRepresentations[i];
559
559
  const path_queueRepresentations_item = path_queueRepresentations + '[' + i + ']';
560
- const referencepath_queueRepresentations_itemValidationError = validate$7(obj_queueRepresentations_item, path_queueRepresentations_item);
560
+ const referencepath_queueRepresentations_itemValidationError = validate$9(obj_queueRepresentations_item, path_queueRepresentations_item);
561
561
  if (referencepath_queueRepresentations_itemValidationError !== null) {
562
562
  let message = 'Object doesn\'t match QueueRepresentation (at "' + path_queueRepresentations_item + '")\n';
563
563
  message += referencepath_queueRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -567,16 +567,16 @@ function validate$6(obj, path = 'GroupCollectionRepresentation') {
567
567
  })();
568
568
  return v_error === undefined ? null : v_error;
569
569
  }
570
- const RepresentationType$1 = 'GroupCollectionRepresentation';
571
- function normalize$1(input, existing, path, luvio, store, timestamp) {
570
+ const RepresentationType$2 = 'GroupCollectionRepresentation';
571
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
572
572
  return input;
573
573
  }
574
- const select$8 = function GroupCollectionRepresentationSelect() {
575
- const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$a();
576
- const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$9();
574
+ const select$b = function GroupCollectionRepresentationSelect() {
575
+ const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$d();
576
+ const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$c();
577
577
  return {
578
578
  kind: 'Fragment',
579
- version: VERSION$6,
579
+ version: VERSION$8,
580
580
  private: [],
581
581
  selections: [
582
582
  {
@@ -594,11 +594,11 @@ const select$8 = function GroupCollectionRepresentationSelect() {
594
594
  ]
595
595
  };
596
596
  };
597
- function equals$6(existing, incoming) {
597
+ function equals$8(existing, incoming) {
598
598
  const existing_publicGroupRepresentations = existing.publicGroupRepresentations;
599
599
  const incoming_publicGroupRepresentations = incoming.publicGroupRepresentations;
600
600
  const equals_publicGroupRepresentations_items = equalsArray(existing_publicGroupRepresentations, incoming_publicGroupRepresentations, (existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item) => {
601
- if (!(equals$8(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
601
+ if (!(equals$a(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
602
602
  return false;
603
603
  }
604
604
  });
@@ -608,7 +608,7 @@ function equals$6(existing, incoming) {
608
608
  const existing_queueRepresentations = existing.queueRepresentations;
609
609
  const incoming_queueRepresentations = incoming.queueRepresentations;
610
610
  const equals_queueRepresentations_items = equalsArray(existing_queueRepresentations, incoming_queueRepresentations, (existing_queueRepresentations_item, incoming_queueRepresentations_item) => {
611
- if (!(equals$7(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
611
+ if (!(equals$9(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
612
612
  return false;
613
613
  }
614
614
  });
@@ -617,44 +617,44 @@ function equals$6(existing, incoming) {
617
617
  }
618
618
  return true;
619
619
  }
620
- const ingest$1 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
620
+ const ingest$2 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
621
621
  if (process.env.NODE_ENV !== 'production') {
622
- const validateError = validate$6(input);
622
+ const validateError = validate$8(input);
623
623
  if (validateError !== null) {
624
624
  throw validateError;
625
625
  }
626
626
  }
627
627
  const key = path.fullPath;
628
- const ttlToUse = TTL$1;
629
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "sharing", VERSION$6, RepresentationType$1, equals$6);
628
+ const ttlToUse = TTL$2;
629
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "sharing", VERSION$8, RepresentationType$2, equals$8);
630
630
  return createLink(key);
631
631
  };
632
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
632
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
633
633
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
634
634
  const rootKey = fullPathFactory();
635
635
  rootKeySet.set(rootKey, {
636
636
  namespace: keyPrefix,
637
- representationName: RepresentationType$1,
637
+ representationName: RepresentationType$2,
638
638
  mergeable: false
639
639
  });
640
640
  }
641
641
 
642
- function select$7(luvio, params) {
643
- return select$8();
642
+ function select$a(luvio, params) {
643
+ return select$b();
644
644
  }
645
- function keyBuilder$3(luvio, params) {
646
- return keyPrefix + '::GroupCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'groupType:' + params.urlParams.groupType + ',' + 'userId:' + params.urlParams.userId + ')';
645
+ function keyBuilder$5(luvio, params) {
646
+ 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 + ')';
647
647
  }
648
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
649
- getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
648
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
649
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
650
650
  }
651
- function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
651
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
652
652
  const { body } = response;
653
- const key = keyBuilder$3(luvio, resourceParams);
654
- luvio.storeIngest(key, ingest$1, body);
653
+ const key = keyBuilder$5(luvio, resourceParams);
654
+ luvio.storeIngest(key, ingest$2, body);
655
655
  const snapshot = luvio.storeLookup({
656
656
  recordId: key,
657
- node: select$7(),
657
+ node: select$a(),
658
658
  variables: {},
659
659
  }, snapshotRefresh);
660
660
  if (process.env.NODE_ENV !== 'production') {
@@ -665,19 +665,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
665
665
  deepFreeze(snapshot.data);
666
666
  return snapshot;
667
667
  }
668
- function ingestError$1(luvio, params, error, snapshotRefresh) {
669
- const key = keyBuilder$3(luvio, params);
668
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
669
+ const key = keyBuilder$5(luvio, params);
670
670
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
671
671
  const storeMetadataParams = {
672
- ttl: TTL$1,
672
+ ttl: TTL$2,
673
673
  namespace: keyPrefix,
674
- version: VERSION$6,
675
- representationName: RepresentationType$1
674
+ version: VERSION$8,
675
+ representationName: RepresentationType$2
676
676
  };
677
677
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
678
678
  return errorSnapshot;
679
679
  }
680
- function createResourceRequest$1(config) {
680
+ function createResourceRequest$2(config) {
681
681
  const headers = {};
682
682
  return {
683
683
  baseUri: '/services/data/v61.0',
@@ -691,97 +691,99 @@ function createResourceRequest$1(config) {
691
691
  };
692
692
  }
693
693
 
694
- const adapterName$1 = 'getGroupsForUser';
694
+ const adapterName$2 = 'getGroupsForUser';
695
695
  const getGroupsForUser_ConfigPropertyMetadata = [
696
696
  generateParamConfigMetadata('groupType', true, 0 /* UrlParameter */, 0 /* String */),
697
697
  generateParamConfigMetadata('userId', true, 0 /* UrlParameter */, 0 /* String */),
698
698
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
699
699
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
700
+ generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
701
+ generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
700
702
  ];
701
- const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getGroupsForUser_ConfigPropertyMetadata);
702
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getGroupsForUser_ConfigPropertyMetadata);
703
- function keyBuilder$2(luvio, config) {
704
- const resourceParams = createResourceParams$1(config);
705
- return keyBuilder$3(luvio, resourceParams);
703
+ const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getGroupsForUser_ConfigPropertyMetadata);
704
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(getGroupsForUser_ConfigPropertyMetadata);
705
+ function keyBuilder$4(luvio, config) {
706
+ const resourceParams = createResourceParams$2(config);
707
+ return keyBuilder$5(luvio, resourceParams);
706
708
  }
707
- function typeCheckConfig$1(untrustedConfig) {
709
+ function typeCheckConfig$2(untrustedConfig) {
708
710
  const config = {};
709
- typeCheckConfig$3(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
711
+ typeCheckConfig$4(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
710
712
  return config;
711
713
  }
712
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
714
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
713
715
  if (!untrustedIsObject(untrustedConfig)) {
714
716
  return null;
715
717
  }
716
718
  if (process.env.NODE_ENV !== 'production') {
717
719
  validateConfig(untrustedConfig, configPropertyNames);
718
720
  }
719
- const config = typeCheckConfig$1(untrustedConfig);
721
+ const config = typeCheckConfig$2(untrustedConfig);
720
722
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
721
723
  return null;
722
724
  }
723
725
  return config;
724
726
  }
725
- function adapterFragment$1(luvio, config) {
726
- createResourceParams$1(config);
727
- return select$7();
727
+ function adapterFragment$2(luvio, config) {
728
+ createResourceParams$2(config);
729
+ return select$a();
728
730
  }
729
- function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
730
- const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
731
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
732
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
731
733
  config,
732
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
734
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
733
735
  });
734
736
  return luvio.storeBroadcast().then(() => snapshot);
735
737
  }
736
- function onFetchResponseError$1(luvio, config, resourceParams, response) {
737
- const snapshot = ingestError$1(luvio, resourceParams, response, {
738
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
739
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
738
740
  config,
739
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
741
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
740
742
  });
741
743
  return luvio.storeBroadcast().then(() => snapshot);
742
744
  }
743
- function buildNetworkSnapshot$1(luvio, config, options) {
744
- const resourceParams = createResourceParams$1(config);
745
- const request = createResourceRequest$1(resourceParams);
745
+ function buildNetworkSnapshot$2(luvio, config, options) {
746
+ const resourceParams = createResourceParams$2(config);
747
+ const request = createResourceRequest$2(resourceParams);
746
748
  return luvio.dispatchResourceRequest(request, options)
747
749
  .then((response) => {
748
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
750
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
749
751
  const cache = new StoreKeyMap();
750
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
752
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
751
753
  return cache;
752
754
  });
753
755
  }, (response) => {
754
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
756
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
755
757
  });
756
758
  }
757
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
758
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
759
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
760
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
759
761
  }
760
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
762
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
761
763
  const { luvio, config } = context;
762
764
  const selector = {
763
- recordId: keyBuilder$2(luvio, config),
764
- node: adapterFragment$1(luvio, config),
765
+ recordId: keyBuilder$4(luvio, config),
766
+ node: adapterFragment$2(luvio, config),
765
767
  variables: {},
766
768
  };
767
769
  const cacheSnapshot = storeLookup(selector, {
768
770
  config,
769
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
771
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
770
772
  });
771
773
  return cacheSnapshot;
772
774
  }
773
775
  const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsForUser(untrustedConfig, requestContext) {
774
- const config = validateAdapterConfig$1(untrustedConfig, getGroupsForUser_ConfigPropertyNames);
776
+ const config = validateAdapterConfig$2(untrustedConfig, getGroupsForUser_ConfigPropertyNames);
775
777
  // Invalid or incomplete config
776
778
  if (config === null) {
777
779
  return null;
778
780
  }
779
781
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
780
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
782
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
781
783
  };
782
784
 
783
- const VERSION$5 = "11e587d0bd769c0df33d7cce4eb7210d";
784
- function validate$5(obj, path = 'IncludedGroupsSharingRepresentation') {
785
+ const VERSION$7 = "11e587d0bd769c0df33d7cce4eb7210d";
786
+ function validate$7(obj, path = 'IncludedGroupsSharingRepresentation') {
785
787
  const v_error = (() => {
786
788
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
787
789
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -814,10 +816,10 @@ function validate$5(obj, path = 'IncludedGroupsSharingRepresentation') {
814
816
  })();
815
817
  return v_error === undefined ? null : v_error;
816
818
  }
817
- const select$6 = function IncludedGroupsSharingRepresentationSelect() {
819
+ const select$9 = function IncludedGroupsSharingRepresentationSelect() {
818
820
  return {
819
821
  kind: 'Fragment',
820
- version: VERSION$5,
822
+ version: VERSION$7,
821
823
  private: [],
822
824
  selections: [
823
825
  {
@@ -843,7 +845,7 @@ const select$6 = function IncludedGroupsSharingRepresentationSelect() {
843
845
  ]
844
846
  };
845
847
  };
846
- function equals$5(existing, incoming) {
848
+ function equals$7(existing, incoming) {
847
849
  const existing_grantAccessHierarchies = existing.grantAccessHierarchies;
848
850
  const incoming_grantAccessHierarchies = incoming.grantAccessHierarchies;
849
851
  if (!(existing_grantAccessHierarchies === incoming_grantAccessHierarchies)) {
@@ -872,8 +874,8 @@ function equals$5(existing, incoming) {
872
874
  return true;
873
875
  }
874
876
 
875
- const VERSION$4 = "06eef993be289c8b20b37b2ae6f4c5ee";
876
- function validate$4(obj, path = 'ListViewGroupSharingRepresentation') {
877
+ const VERSION$6 = "06eef993be289c8b20b37b2ae6f4c5ee";
878
+ function validate$6(obj, path = 'ListViewGroupSharingRepresentation') {
877
879
  const v_error = (() => {
878
880
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
879
881
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -891,10 +893,10 @@ function validate$4(obj, path = 'ListViewGroupSharingRepresentation') {
891
893
  })();
892
894
  return v_error === undefined ? null : v_error;
893
895
  }
894
- const select$5 = function ListViewGroupSharingRepresentationSelect() {
896
+ const select$8 = function ListViewGroupSharingRepresentationSelect() {
895
897
  return {
896
898
  kind: 'Fragment',
897
- version: VERSION$4,
899
+ version: VERSION$6,
898
900
  private: [],
899
901
  selections: [
900
902
  {
@@ -908,7 +910,7 @@ const select$5 = function ListViewGroupSharingRepresentationSelect() {
908
910
  ]
909
911
  };
910
912
  };
911
- function equals$4(existing, incoming) {
913
+ function equals$6(existing, incoming) {
912
914
  const existing_developerName = existing.developerName;
913
915
  const incoming_developerName = incoming.developerName;
914
916
  if (!(existing_developerName === incoming_developerName)) {
@@ -922,8 +924,8 @@ function equals$4(existing, incoming) {
922
924
  return true;
923
925
  }
924
926
 
925
- const VERSION$3 = "a0ed38b40ad9886f3e05a1b65fd2e246";
926
- function validate$3(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentation') {
927
+ const VERSION$5 = "a0ed38b40ad9886f3e05a1b65fd2e246";
928
+ function validate$5(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentation') {
927
929
  const v_error = (() => {
928
930
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
929
931
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -961,10 +963,10 @@ function validate$3(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentat
961
963
  })();
962
964
  return v_error === undefined ? null : v_error;
963
965
  }
964
- const select$4 = function ReportAndDashboardFolderGroupSharingRepresentationSelect() {
966
+ const select$7 = function ReportAndDashboardFolderGroupSharingRepresentationSelect() {
965
967
  return {
966
968
  kind: 'Fragment',
967
- version: VERSION$3,
969
+ version: VERSION$5,
968
970
  private: [],
969
971
  selections: [
970
972
  {
@@ -994,7 +996,7 @@ const select$4 = function ReportAndDashboardFolderGroupSharingRepresentationSele
994
996
  ]
995
997
  };
996
998
  };
997
- function equals$3(existing, incoming) {
999
+ function equals$5(existing, incoming) {
998
1000
  const existing_accessLevel = existing.accessLevel;
999
1001
  const incoming_accessLevel = incoming.accessLevel;
1000
1002
  if (!(existing_accessLevel === incoming_accessLevel)) {
@@ -1028,8 +1030,8 @@ function equals$3(existing, incoming) {
1028
1030
  return true;
1029
1031
  }
1030
1032
 
1031
- const VERSION$2 = "1036a20704b51746749bb4be569e39c0";
1032
- function validate$2(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation') {
1033
+ const VERSION$4 = "1036a20704b51746749bb4be569e39c0";
1034
+ function validate$4(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation') {
1033
1035
  const v_error = (() => {
1034
1036
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1035
1037
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1057,10 +1059,10 @@ function validate$2(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation'
1057
1059
  })();
1058
1060
  return v_error === undefined ? null : v_error;
1059
1061
  }
1060
- const select$3 = function SharingRulesCriteriaGroupSharingRepresentationSelect() {
1062
+ const select$6 = function SharingRulesCriteriaGroupSharingRepresentationSelect() {
1061
1063
  return {
1062
1064
  kind: 'Fragment',
1063
- version: VERSION$2,
1065
+ version: VERSION$4,
1064
1066
  private: [],
1065
1067
  selections: [
1066
1068
  {
@@ -1082,7 +1084,7 @@ const select$3 = function SharingRulesCriteriaGroupSharingRepresentationSelect()
1082
1084
  ]
1083
1085
  };
1084
1086
  };
1085
- function equals$2(existing, incoming) {
1087
+ function equals$4(existing, incoming) {
1086
1088
  const existing_accessLevel = existing.accessLevel;
1087
1089
  const incoming_accessLevel = incoming.accessLevel;
1088
1090
  if (!(existing_accessLevel === incoming_accessLevel)) {
@@ -1106,8 +1108,8 @@ function equals$2(existing, incoming) {
1106
1108
  return true;
1107
1109
  }
1108
1110
 
1109
- const VERSION$1 = "8f205925d69192f91fd2c71838ed20e7";
1110
- function validate$1(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
1111
+ const VERSION$3 = "8f205925d69192f91fd2c71838ed20e7";
1112
+ function validate$3(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
1111
1113
  const v_error = (() => {
1112
1114
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1113
1115
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1135,10 +1137,10 @@ function validate$1(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
1135
1137
  })();
1136
1138
  return v_error === undefined ? null : v_error;
1137
1139
  }
1138
- const select$2 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
1140
+ const select$5 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
1139
1141
  return {
1140
1142
  kind: 'Fragment',
1141
- version: VERSION$1,
1143
+ version: VERSION$3,
1142
1144
  private: [],
1143
1145
  selections: [
1144
1146
  {
@@ -1160,7 +1162,7 @@ const select$2 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
1160
1162
  ]
1161
1163
  };
1162
1164
  };
1163
- function equals$1(existing, incoming) {
1165
+ function equals$3(existing, incoming) {
1164
1166
  const existing_accessLevel = existing.accessLevel;
1165
1167
  const incoming_accessLevel = incoming.accessLevel;
1166
1168
  if (!(existing_accessLevel === incoming_accessLevel)) {
@@ -1184,9 +1186,9 @@ function equals$1(existing, incoming) {
1184
1186
  return true;
1185
1187
  }
1186
1188
 
1187
- const TTL = 300;
1188
- const VERSION = "68cd535d9b1bd32d0d42ce950115eff5";
1189
- function validate(obj, path = 'PublicGroupSummaryRepresentation') {
1189
+ const TTL$1 = 300;
1190
+ const VERSION$2 = "68cd535d9b1bd32d0d42ce950115eff5";
1191
+ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
1190
1192
  const v_error = (() => {
1191
1193
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1192
1194
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1199,7 +1201,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
1199
1201
  for (let i = 0; i < obj_includedGroupsSharing.length; i++) {
1200
1202
  const obj_includedGroupsSharing_item = obj_includedGroupsSharing[i];
1201
1203
  const path_includedGroupsSharing_item = path_includedGroupsSharing + '[' + i + ']';
1202
- const referencepath_includedGroupsSharing_itemValidationError = validate$5(obj_includedGroupsSharing_item, path_includedGroupsSharing_item);
1204
+ const referencepath_includedGroupsSharing_itemValidationError = validate$7(obj_includedGroupsSharing_item, path_includedGroupsSharing_item);
1203
1205
  if (referencepath_includedGroupsSharing_itemValidationError !== null) {
1204
1206
  let message = 'Object doesn\'t match IncludedGroupsSharingRepresentation (at "' + path_includedGroupsSharing_item + '")\n';
1205
1207
  message += referencepath_includedGroupsSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1214,7 +1216,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
1214
1216
  for (let i = 0; i < obj_listViewGroupSharing.length; i++) {
1215
1217
  const obj_listViewGroupSharing_item = obj_listViewGroupSharing[i];
1216
1218
  const path_listViewGroupSharing_item = path_listViewGroupSharing + '[' + i + ']';
1217
- const referencepath_listViewGroupSharing_itemValidationError = validate$4(obj_listViewGroupSharing_item, path_listViewGroupSharing_item);
1219
+ const referencepath_listViewGroupSharing_itemValidationError = validate$6(obj_listViewGroupSharing_item, path_listViewGroupSharing_item);
1218
1220
  if (referencepath_listViewGroupSharing_itemValidationError !== null) {
1219
1221
  let message = 'Object doesn\'t match ListViewGroupSharingRepresentation (at "' + path_listViewGroupSharing_item + '")\n';
1220
1222
  message += referencepath_listViewGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1229,7 +1231,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
1229
1231
  for (let i = 0; i < obj_reportAndDashboardFolderGroupSharing.length; i++) {
1230
1232
  const obj_reportAndDashboardFolderGroupSharing_item = obj_reportAndDashboardFolderGroupSharing[i];
1231
1233
  const path_reportAndDashboardFolderGroupSharing_item = path_reportAndDashboardFolderGroupSharing + '[' + i + ']';
1232
- const referencepath_reportAndDashboardFolderGroupSharing_itemValidationError = validate$3(obj_reportAndDashboardFolderGroupSharing_item, path_reportAndDashboardFolderGroupSharing_item);
1234
+ const referencepath_reportAndDashboardFolderGroupSharing_itemValidationError = validate$5(obj_reportAndDashboardFolderGroupSharing_item, path_reportAndDashboardFolderGroupSharing_item);
1233
1235
  if (referencepath_reportAndDashboardFolderGroupSharing_itemValidationError !== null) {
1234
1236
  let message = 'Object doesn\'t match ReportAndDashboardFolderGroupSharingRepresentation (at "' + path_reportAndDashboardFolderGroupSharing_item + '")\n';
1235
1237
  message += referencepath_reportAndDashboardFolderGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1244,7 +1246,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
1244
1246
  for (let i = 0; i < obj_sharingRulesCriteriaGroupSharing.length; i++) {
1245
1247
  const obj_sharingRulesCriteriaGroupSharing_item = obj_sharingRulesCriteriaGroupSharing[i];
1246
1248
  const path_sharingRulesCriteriaGroupSharing_item = path_sharingRulesCriteriaGroupSharing + '[' + i + ']';
1247
- const referencepath_sharingRulesCriteriaGroupSharing_itemValidationError = validate$2(obj_sharingRulesCriteriaGroupSharing_item, path_sharingRulesCriteriaGroupSharing_item);
1249
+ const referencepath_sharingRulesCriteriaGroupSharing_itemValidationError = validate$4(obj_sharingRulesCriteriaGroupSharing_item, path_sharingRulesCriteriaGroupSharing_item);
1248
1250
  if (referencepath_sharingRulesCriteriaGroupSharing_itemValidationError !== null) {
1249
1251
  let message = 'Object doesn\'t match SharingRulesCriteriaGroupSharingRepresentation (at "' + path_sharingRulesCriteriaGroupSharing_item + '")\n';
1250
1252
  message += referencepath_sharingRulesCriteriaGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1259,7 +1261,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
1259
1261
  for (let i = 0; i < obj_sharingRulesOwnerGroupSharing.length; i++) {
1260
1262
  const obj_sharingRulesOwnerGroupSharing_item = obj_sharingRulesOwnerGroupSharing[i];
1261
1263
  const path_sharingRulesOwnerGroupSharing_item = path_sharingRulesOwnerGroupSharing + '[' + i + ']';
1262
- const referencepath_sharingRulesOwnerGroupSharing_itemValidationError = validate$1(obj_sharingRulesOwnerGroupSharing_item, path_sharingRulesOwnerGroupSharing_item);
1264
+ const referencepath_sharingRulesOwnerGroupSharing_itemValidationError = validate$3(obj_sharingRulesOwnerGroupSharing_item, path_sharingRulesOwnerGroupSharing_item);
1263
1265
  if (referencepath_sharingRulesOwnerGroupSharing_itemValidationError !== null) {
1264
1266
  let message = 'Object doesn\'t match SharingRulesOwnerGroupSharingRepresentation (at "' + path_sharingRulesOwnerGroupSharing_item + '")\n';
1265
1267
  message += referencepath_sharingRulesOwnerGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1269,19 +1271,19 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
1269
1271
  })();
1270
1272
  return v_error === undefined ? null : v_error;
1271
1273
  }
1272
- const RepresentationType = 'PublicGroupSummaryRepresentation';
1273
- function normalize(input, existing, path, luvio, store, timestamp) {
1274
+ const RepresentationType$1 = 'PublicGroupSummaryRepresentation';
1275
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
1274
1276
  return input;
1275
1277
  }
1276
- const select$1 = function PublicGroupSummaryRepresentationSelect() {
1277
- const { selections: IncludedGroupsSharingRepresentation__selections, opaque: IncludedGroupsSharingRepresentation__opaque, } = select$6();
1278
- const { selections: ListViewGroupSharingRepresentation__selections, opaque: ListViewGroupSharingRepresentation__opaque, } = select$5();
1279
- const { selections: ReportAndDashboardFolderGroupSharingRepresentation__selections, opaque: ReportAndDashboardFolderGroupSharingRepresentation__opaque, } = select$4();
1280
- const { selections: SharingRulesCriteriaGroupSharingRepresentation__selections, opaque: SharingRulesCriteriaGroupSharingRepresentation__opaque, } = select$3();
1281
- const { selections: SharingRulesOwnerGroupSharingRepresentation__selections, opaque: SharingRulesOwnerGroupSharingRepresentation__opaque, } = select$2();
1278
+ const select$4 = function PublicGroupSummaryRepresentationSelect() {
1279
+ const { selections: IncludedGroupsSharingRepresentation__selections, opaque: IncludedGroupsSharingRepresentation__opaque, } = select$9();
1280
+ const { selections: ListViewGroupSharingRepresentation__selections, opaque: ListViewGroupSharingRepresentation__opaque, } = select$8();
1281
+ const { selections: ReportAndDashboardFolderGroupSharingRepresentation__selections, opaque: ReportAndDashboardFolderGroupSharingRepresentation__opaque, } = select$7();
1282
+ const { selections: SharingRulesCriteriaGroupSharingRepresentation__selections, opaque: SharingRulesCriteriaGroupSharingRepresentation__opaque, } = select$6();
1283
+ const { selections: SharingRulesOwnerGroupSharingRepresentation__selections, opaque: SharingRulesOwnerGroupSharingRepresentation__opaque, } = select$5();
1282
1284
  return {
1283
1285
  kind: 'Fragment',
1284
- version: VERSION,
1286
+ version: VERSION$2,
1285
1287
  private: [],
1286
1288
  selections: [
1287
1289
  {
@@ -1317,11 +1319,11 @@ const select$1 = function PublicGroupSummaryRepresentationSelect() {
1317
1319
  ]
1318
1320
  };
1319
1321
  };
1320
- function equals(existing, incoming) {
1322
+ function equals$2(existing, incoming) {
1321
1323
  const existing_includedGroupsSharing = existing.includedGroupsSharing;
1322
1324
  const incoming_includedGroupsSharing = incoming.includedGroupsSharing;
1323
1325
  const equals_includedGroupsSharing_items = equalsArray(existing_includedGroupsSharing, incoming_includedGroupsSharing, (existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item) => {
1324
- if (!(equals$5(existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item))) {
1326
+ if (!(equals$7(existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item))) {
1325
1327
  return false;
1326
1328
  }
1327
1329
  });
@@ -1331,7 +1333,7 @@ function equals(existing, incoming) {
1331
1333
  const existing_listViewGroupSharing = existing.listViewGroupSharing;
1332
1334
  const incoming_listViewGroupSharing = incoming.listViewGroupSharing;
1333
1335
  const equals_listViewGroupSharing_items = equalsArray(existing_listViewGroupSharing, incoming_listViewGroupSharing, (existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item) => {
1334
- if (!(equals$4(existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item))) {
1336
+ if (!(equals$6(existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item))) {
1335
1337
  return false;
1336
1338
  }
1337
1339
  });
@@ -1341,7 +1343,7 @@ function equals(existing, incoming) {
1341
1343
  const existing_reportAndDashboardFolderGroupSharing = existing.reportAndDashboardFolderGroupSharing;
1342
1344
  const incoming_reportAndDashboardFolderGroupSharing = incoming.reportAndDashboardFolderGroupSharing;
1343
1345
  const equals_reportAndDashboardFolderGroupSharing_items = equalsArray(existing_reportAndDashboardFolderGroupSharing, incoming_reportAndDashboardFolderGroupSharing, (existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item) => {
1344
- if (!(equals$3(existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item))) {
1346
+ if (!(equals$5(existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item))) {
1345
1347
  return false;
1346
1348
  }
1347
1349
  });
@@ -1351,7 +1353,7 @@ function equals(existing, incoming) {
1351
1353
  const existing_sharingRulesCriteriaGroupSharing = existing.sharingRulesCriteriaGroupSharing;
1352
1354
  const incoming_sharingRulesCriteriaGroupSharing = incoming.sharingRulesCriteriaGroupSharing;
1353
1355
  const equals_sharingRulesCriteriaGroupSharing_items = equalsArray(existing_sharingRulesCriteriaGroupSharing, incoming_sharingRulesCriteriaGroupSharing, (existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item) => {
1354
- if (!(equals$2(existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item))) {
1356
+ if (!(equals$4(existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item))) {
1355
1357
  return false;
1356
1358
  }
1357
1359
  });
@@ -1361,7 +1363,7 @@ function equals(existing, incoming) {
1361
1363
  const existing_sharingRulesOwnerGroupSharing = existing.sharingRulesOwnerGroupSharing;
1362
1364
  const incoming_sharingRulesOwnerGroupSharing = incoming.sharingRulesOwnerGroupSharing;
1363
1365
  const equals_sharingRulesOwnerGroupSharing_items = equalsArray(existing_sharingRulesOwnerGroupSharing, incoming_sharingRulesOwnerGroupSharing, (existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item) => {
1364
- if (!(equals$1(existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item))) {
1366
+ if (!(equals$3(existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item))) {
1365
1367
  return false;
1366
1368
  }
1367
1369
  });
@@ -1370,7 +1372,309 @@ function equals(existing, incoming) {
1370
1372
  }
1371
1373
  return true;
1372
1374
  }
1373
- const ingest = function PublicGroupSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
1375
+ const ingest$1 = function PublicGroupSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
1376
+ if (process.env.NODE_ENV !== 'production') {
1377
+ const validateError = validate$2(input);
1378
+ if (validateError !== null) {
1379
+ throw validateError;
1380
+ }
1381
+ }
1382
+ const key = path.fullPath;
1383
+ const ttlToUse = TTL$1;
1384
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "sharing", VERSION$2, RepresentationType$1, equals$2);
1385
+ return createLink(key);
1386
+ };
1387
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1388
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1389
+ const rootKey = fullPathFactory();
1390
+ rootKeySet.set(rootKey, {
1391
+ namespace: keyPrefix,
1392
+ representationName: RepresentationType$1,
1393
+ mergeable: false
1394
+ });
1395
+ }
1396
+
1397
+ function select$3(luvio, params) {
1398
+ return select$4();
1399
+ }
1400
+ function keyBuilder$3(luvio, params) {
1401
+ 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 + ')';
1402
+ }
1403
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1404
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
1405
+ }
1406
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1407
+ const { body } = response;
1408
+ const key = keyBuilder$3(luvio, resourceParams);
1409
+ luvio.storeIngest(key, ingest$1, body);
1410
+ const snapshot = luvio.storeLookup({
1411
+ recordId: key,
1412
+ node: select$3(),
1413
+ variables: {},
1414
+ }, snapshotRefresh);
1415
+ if (process.env.NODE_ENV !== 'production') {
1416
+ if (snapshot.state !== 'Fulfilled') {
1417
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1418
+ }
1419
+ }
1420
+ deepFreeze(snapshot.data);
1421
+ return snapshot;
1422
+ }
1423
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
1424
+ const key = keyBuilder$3(luvio, params);
1425
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1426
+ const storeMetadataParams = {
1427
+ ttl: TTL$1,
1428
+ namespace: keyPrefix,
1429
+ version: VERSION$2,
1430
+ representationName: RepresentationType$1
1431
+ };
1432
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1433
+ return errorSnapshot;
1434
+ }
1435
+ function createResourceRequest$1(config) {
1436
+ const headers = {};
1437
+ return {
1438
+ baseUri: '/services/data/v61.0',
1439
+ basePath: '/sharing/publicGroupsSummary',
1440
+ method: 'post',
1441
+ body: config.body,
1442
+ urlParams: {},
1443
+ queryParams: {},
1444
+ headers,
1445
+ priority: 'normal',
1446
+ };
1447
+ }
1448
+
1449
+ const adapterName$1 = 'getPublicGroupShareData';
1450
+ const getPublicGroupShareData_ConfigPropertyMetadata = [
1451
+ generateParamConfigMetadata('entityKeyPrefix', true, 2 /* Body */, 0 /* String */),
1452
+ generateParamConfigMetadata('groupId', true, 2 /* Body */, 0 /* String */),
1453
+ generateParamConfigMetadata('limit', true, 2 /* Body */, 3 /* Integer */),
1454
+ generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
1455
+ generateParamConfigMetadata('operation', true, 2 /* Body */, 0 /* String */),
1456
+ generateParamConfigMetadata('orderBy', true, 2 /* Body */, 0 /* String */),
1457
+ generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
1458
+ ];
1459
+ const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPublicGroupShareData_ConfigPropertyMetadata);
1460
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(getPublicGroupShareData_ConfigPropertyMetadata);
1461
+ function keyBuilder$2(luvio, config) {
1462
+ const resourceParams = createResourceParams$1(config);
1463
+ return keyBuilder$3(luvio, resourceParams);
1464
+ }
1465
+ function typeCheckConfig$1(untrustedConfig) {
1466
+ const config = {};
1467
+ typeCheckConfig$4(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
1468
+ return config;
1469
+ }
1470
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1471
+ if (!untrustedIsObject(untrustedConfig)) {
1472
+ return null;
1473
+ }
1474
+ if (process.env.NODE_ENV !== 'production') {
1475
+ validateConfig(untrustedConfig, configPropertyNames);
1476
+ }
1477
+ const config = typeCheckConfig$1(untrustedConfig);
1478
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1479
+ return null;
1480
+ }
1481
+ return config;
1482
+ }
1483
+ function adapterFragment$1(luvio, config) {
1484
+ createResourceParams$1(config);
1485
+ return select$3();
1486
+ }
1487
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
1488
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
1489
+ config,
1490
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1491
+ });
1492
+ return luvio.storeBroadcast().then(() => snapshot);
1493
+ }
1494
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
1495
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
1496
+ config,
1497
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1498
+ });
1499
+ return luvio.storeBroadcast().then(() => snapshot);
1500
+ }
1501
+ function buildNetworkSnapshot$1(luvio, config, options) {
1502
+ const resourceParams = createResourceParams$1(config);
1503
+ const request = createResourceRequest$1(resourceParams);
1504
+ return luvio.dispatchResourceRequest(request, options)
1505
+ .then((response) => {
1506
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
1507
+ const cache = new StoreKeyMap();
1508
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1509
+ return cache;
1510
+ });
1511
+ }, (response) => {
1512
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
1513
+ });
1514
+ }
1515
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1516
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, 'get', false);
1517
+ }
1518
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1519
+ const { luvio, config } = context;
1520
+ const selector = {
1521
+ recordId: keyBuilder$2(luvio, config),
1522
+ node: adapterFragment$1(luvio, config),
1523
+ variables: {},
1524
+ };
1525
+ const cacheSnapshot = storeLookup(selector, {
1526
+ config,
1527
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1528
+ });
1529
+ return cacheSnapshot;
1530
+ }
1531
+ const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPublicGroupShareData(untrustedConfig, requestContext) {
1532
+ const config = validateAdapterConfig$1(untrustedConfig, getPublicGroupShareData_ConfigPropertyNames);
1533
+ // Invalid or incomplete config
1534
+ if (config === null) {
1535
+ return null;
1536
+ }
1537
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1538
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
1539
+ };
1540
+
1541
+ const VERSION$1 = "348a7399778e8986878f81df955a8eab";
1542
+ function validate$1(obj, path = 'UserPermissionInfoRepresentation') {
1543
+ const v_error = (() => {
1544
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1545
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1546
+ }
1547
+ const obj_userPermApiName = obj.userPermApiName;
1548
+ const path_userPermApiName = path + '.userPermApiName';
1549
+ if (typeof obj_userPermApiName !== 'string') {
1550
+ return new TypeError('Expected "string" but received "' + typeof obj_userPermApiName + '" (at "' + path_userPermApiName + '")');
1551
+ }
1552
+ const obj_userPermDescription = obj.userPermDescription;
1553
+ const path_userPermDescription = path + '.userPermDescription';
1554
+ if (typeof obj_userPermDescription !== 'string') {
1555
+ return new TypeError('Expected "string" but received "' + typeof obj_userPermDescription + '" (at "' + path_userPermDescription + '")');
1556
+ }
1557
+ const obj_userPermLabel = obj.userPermLabel;
1558
+ const path_userPermLabel = path + '.userPermLabel';
1559
+ if (typeof obj_userPermLabel !== 'string') {
1560
+ return new TypeError('Expected "string" but received "' + typeof obj_userPermLabel + '" (at "' + path_userPermLabel + '")');
1561
+ }
1562
+ })();
1563
+ return v_error === undefined ? null : v_error;
1564
+ }
1565
+ const select$2 = function UserPermissionInfoRepresentationSelect() {
1566
+ return {
1567
+ kind: 'Fragment',
1568
+ version: VERSION$1,
1569
+ private: [],
1570
+ selections: [
1571
+ {
1572
+ name: 'userPermApiName',
1573
+ kind: 'Scalar'
1574
+ },
1575
+ {
1576
+ name: 'userPermDescription',
1577
+ kind: 'Scalar'
1578
+ },
1579
+ {
1580
+ name: 'userPermLabel',
1581
+ kind: 'Scalar'
1582
+ }
1583
+ ]
1584
+ };
1585
+ };
1586
+ function equals$1(existing, incoming) {
1587
+ const existing_userPermApiName = existing.userPermApiName;
1588
+ const incoming_userPermApiName = incoming.userPermApiName;
1589
+ if (!(existing_userPermApiName === incoming_userPermApiName)) {
1590
+ return false;
1591
+ }
1592
+ const existing_userPermDescription = existing.userPermDescription;
1593
+ const incoming_userPermDescription = incoming.userPermDescription;
1594
+ if (!(existing_userPermDescription === incoming_userPermDescription)) {
1595
+ return false;
1596
+ }
1597
+ const existing_userPermLabel = existing.userPermLabel;
1598
+ const incoming_userPermLabel = incoming.userPermLabel;
1599
+ if (!(existing_userPermLabel === incoming_userPermLabel)) {
1600
+ return false;
1601
+ }
1602
+ return true;
1603
+ }
1604
+
1605
+ const TTL = 600000;
1606
+ const VERSION = "627ab68dfb8c0174c1e9dc9f2701c1b2";
1607
+ function validate(obj, path = 'UserPermissionsInfoListRepresentation') {
1608
+ const v_error = (() => {
1609
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1610
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1611
+ }
1612
+ const obj_size = obj.size;
1613
+ const path_size = path + '.size';
1614
+ if (typeof obj_size !== 'number' || (typeof obj_size === 'number' && Math.floor(obj_size) !== obj_size)) {
1615
+ return new TypeError('Expected "integer" but received "' + typeof obj_size + '" (at "' + path_size + '")');
1616
+ }
1617
+ const obj_userPermissions = obj.userPermissions;
1618
+ const path_userPermissions = path + '.userPermissions';
1619
+ if (!ArrayIsArray(obj_userPermissions)) {
1620
+ return new TypeError('Expected "array" but received "' + typeof obj_userPermissions + '" (at "' + path_userPermissions + '")');
1621
+ }
1622
+ for (let i = 0; i < obj_userPermissions.length; i++) {
1623
+ const obj_userPermissions_item = obj_userPermissions[i];
1624
+ const path_userPermissions_item = path_userPermissions + '[' + i + ']';
1625
+ const referencepath_userPermissions_itemValidationError = validate$1(obj_userPermissions_item, path_userPermissions_item);
1626
+ if (referencepath_userPermissions_itemValidationError !== null) {
1627
+ let message = 'Object doesn\'t match UserPermissionInfoRepresentation (at "' + path_userPermissions_item + '")\n';
1628
+ message += referencepath_userPermissions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1629
+ return new TypeError(message);
1630
+ }
1631
+ }
1632
+ })();
1633
+ return v_error === undefined ? null : v_error;
1634
+ }
1635
+ const RepresentationType = 'UserPermissionsInfoListRepresentation';
1636
+ function normalize(input, existing, path, luvio, store, timestamp) {
1637
+ return input;
1638
+ }
1639
+ const select$1 = function UserPermissionsInfoListRepresentationSelect() {
1640
+ const { selections: UserPermissionInfoRepresentation__selections, opaque: UserPermissionInfoRepresentation__opaque, } = select$2();
1641
+ return {
1642
+ kind: 'Fragment',
1643
+ version: VERSION,
1644
+ private: [],
1645
+ selections: [
1646
+ {
1647
+ name: 'size',
1648
+ kind: 'Scalar'
1649
+ },
1650
+ {
1651
+ name: 'userPermissions',
1652
+ kind: 'Object',
1653
+ plural: true,
1654
+ selections: UserPermissionInfoRepresentation__selections
1655
+ }
1656
+ ]
1657
+ };
1658
+ };
1659
+ function equals(existing, incoming) {
1660
+ const existing_size = existing.size;
1661
+ const incoming_size = incoming.size;
1662
+ if (!(existing_size === incoming_size)) {
1663
+ return false;
1664
+ }
1665
+ const existing_userPermissions = existing.userPermissions;
1666
+ const incoming_userPermissions = incoming.userPermissions;
1667
+ const equals_userPermissions_items = equalsArray(existing_userPermissions, incoming_userPermissions, (existing_userPermissions_item, incoming_userPermissions_item) => {
1668
+ if (!(equals$1(existing_userPermissions_item, incoming_userPermissions_item))) {
1669
+ return false;
1670
+ }
1671
+ });
1672
+ if (equals_userPermissions_items === false) {
1673
+ return false;
1674
+ }
1675
+ return true;
1676
+ }
1677
+ const ingest = function UserPermissionsInfoListRepresentationIngest(input, path, luvio, store, timestamp) {
1374
1678
  if (process.env.NODE_ENV !== 'production') {
1375
1679
  const validateError = validate(input);
1376
1680
  if (validateError !== null) {
@@ -1396,7 +1700,7 @@ function select(luvio, params) {
1396
1700
  return select$1();
1397
1701
  }
1398
1702
  function keyBuilder$1(luvio, params) {
1399
- 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 + ')';
1703
+ return keyPrefix + '::UserPermissionsInfoListRepresentation:(' + 'entityName:' + params.queryParams.entityName + ',' + 'recordId:' + params.queryParams.recordId + ')';
1400
1704
  }
1401
1705
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1402
1706
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -1434,35 +1738,30 @@ function createResourceRequest(config) {
1434
1738
  const headers = {};
1435
1739
  return {
1436
1740
  baseUri: '/services/data/v61.0',
1437
- basePath: '/sharing/publicGroupsSummary',
1438
- method: 'post',
1439
- body: config.body,
1741
+ basePath: '/sharing/userPermissions',
1742
+ method: 'get',
1743
+ body: null,
1440
1744
  urlParams: {},
1441
- queryParams: {},
1745
+ queryParams: config.queryParams,
1442
1746
  headers,
1443
1747
  priority: 'normal',
1444
1748
  };
1445
1749
  }
1446
1750
 
1447
- const adapterName = 'getPublicGroupShareData';
1448
- const getPublicGroupShareData_ConfigPropertyMetadata = [
1449
- generateParamConfigMetadata('entityKeyPrefix', true, 2 /* Body */, 0 /* String */),
1450
- generateParamConfigMetadata('groupId', true, 2 /* Body */, 0 /* String */),
1451
- generateParamConfigMetadata('limit', true, 2 /* Body */, 3 /* Integer */),
1452
- generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
1453
- generateParamConfigMetadata('operation', true, 2 /* Body */, 0 /* String */),
1454
- generateParamConfigMetadata('orderBy', true, 2 /* Body */, 0 /* String */),
1455
- generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
1751
+ const adapterName = 'getUserPermissions';
1752
+ const getUserPermissions_ConfigPropertyMetadata = [
1753
+ generateParamConfigMetadata('entityName', true, 1 /* QueryParameter */, 0 /* String */),
1754
+ generateParamConfigMetadata('recordId', true, 1 /* QueryParameter */, 0 /* String */),
1456
1755
  ];
1457
- const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPublicGroupShareData_ConfigPropertyMetadata);
1458
- const createResourceParams = /*#__PURE__*/ createResourceParams$3(getPublicGroupShareData_ConfigPropertyMetadata);
1756
+ const getUserPermissions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getUserPermissions_ConfigPropertyMetadata);
1757
+ const createResourceParams = /*#__PURE__*/ createResourceParams$4(getUserPermissions_ConfigPropertyMetadata);
1459
1758
  function keyBuilder(luvio, config) {
1460
1759
  const resourceParams = createResourceParams(config);
1461
1760
  return keyBuilder$1(luvio, resourceParams);
1462
1761
  }
1463
1762
  function typeCheckConfig(untrustedConfig) {
1464
1763
  const config = {};
1465
- typeCheckConfig$3(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
1764
+ typeCheckConfig$4(untrustedConfig, config, getUserPermissions_ConfigPropertyMetadata);
1466
1765
  return config;
1467
1766
  }
1468
1767
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -1511,7 +1810,7 @@ function buildNetworkSnapshot(luvio, config, options) {
1511
1810
  });
1512
1811
  }
1513
1812
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1514
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, 'get', false);
1813
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
1515
1814
  }
1516
1815
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
1517
1816
  const { luvio, config } = context;
@@ -1526,8 +1825,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
1526
1825
  });
1527
1826
  return cacheSnapshot;
1528
1827
  }
1529
- const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPublicGroupShareData(untrustedConfig, requestContext) {
1530
- const config = validateAdapterConfig(untrustedConfig, getPublicGroupShareData_ConfigPropertyNames);
1828
+ const getUserPermissionsAdapterFactory = (luvio) => function sharing__getUserPermissions(untrustedConfig, requestContext) {
1829
+ const config = validateAdapterConfig(untrustedConfig, getUserPermissions_ConfigPropertyNames);
1531
1830
  // Invalid or incomplete config
1532
1831
  if (config === null) {
1533
1832
  return null;
@@ -1539,10 +1838,12 @@ const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPu
1539
1838
  let getAllSobjects;
1540
1839
  let getGroupsForUser;
1541
1840
  let getPublicGroupShareData;
1841
+ let getUserPermissions;
1542
1842
  // Imperative GET Adapters
1543
1843
  let getAllSobjects_imperative;
1544
1844
  let getGroupsForUser_imperative;
1545
1845
  let getPublicGroupShareData_imperative;
1846
+ let getUserPermissions_imperative;
1546
1847
  // Adapter Metadata
1547
1848
  const getAllSobjectsMetadata = { apiFamily: 'sharing', name: 'getAllSobjects', ttl: 900000 };
1548
1849
  const getGroupsForUserMetadata = { apiFamily: 'sharing', name: 'getGroupsForUser', ttl: 300 };
@@ -1551,20 +1852,28 @@ const getPublicGroupShareDataMetadata = {
1551
1852
  name: 'getPublicGroupShareData',
1552
1853
  ttl: 300,
1553
1854
  };
1855
+ const getUserPermissionsMetadata = {
1856
+ apiFamily: 'sharing',
1857
+ name: 'getUserPermissions',
1858
+ ttl: 600000,
1859
+ };
1554
1860
  // Notify Update Available
1555
1861
  function bindExportsTo(luvio) {
1556
1862
  // LDS Adapters
1557
1863
  const getAllSobjects_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllSobjects', getAllSobjectsAdapterFactory), getAllSobjectsMetadata);
1558
1864
  const getGroupsForUser_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getGroupsForUser', getGroupsForUserAdapterFactory), getGroupsForUserMetadata);
1559
1865
  const getPublicGroupShareData_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPublicGroupShareData', getPublicGroupShareDataAdapterFactory), getPublicGroupShareDataMetadata);
1866
+ const getUserPermissions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getUserPermissions', getUserPermissionsAdapterFactory), getUserPermissionsMetadata);
1560
1867
  return {
1561
1868
  getAllSobjects: createWireAdapterConstructor(luvio, getAllSobjects_ldsAdapter, getAllSobjectsMetadata),
1562
1869
  getGroupsForUser: createWireAdapterConstructor(luvio, getGroupsForUser_ldsAdapter, getGroupsForUserMetadata),
1563
1870
  getPublicGroupShareData: createWireAdapterConstructor(luvio, getPublicGroupShareData_ldsAdapter, getPublicGroupShareDataMetadata),
1871
+ getUserPermissions: createWireAdapterConstructor(luvio, getUserPermissions_ldsAdapter, getUserPermissionsMetadata),
1564
1872
  // Imperative GET Adapters
1565
1873
  getAllSobjects_imperative: createImperativeAdapter(luvio, getAllSobjects_ldsAdapter, getAllSobjectsMetadata),
1566
1874
  getGroupsForUser_imperative: createImperativeAdapter(luvio, getGroupsForUser_ldsAdapter, getGroupsForUserMetadata),
1567
1875
  getPublicGroupShareData_imperative: createImperativeAdapter(luvio, getPublicGroupShareData_ldsAdapter, getPublicGroupShareDataMetadata),
1876
+ getUserPermissions_imperative: createImperativeAdapter(luvio, getUserPermissions_ldsAdapter, getUserPermissionsMetadata),
1568
1877
  // Notify Update Availables
1569
1878
  };
1570
1879
  }
@@ -1573,11 +1882,13 @@ withDefaultLuvio((luvio) => {
1573
1882
  getAllSobjects,
1574
1883
  getGroupsForUser,
1575
1884
  getPublicGroupShareData,
1885
+ getUserPermissions,
1576
1886
  getAllSobjects_imperative,
1577
1887
  getGroupsForUser_imperative,
1578
1888
  getPublicGroupShareData_imperative,
1889
+ getUserPermissions_imperative,
1579
1890
  } = bindExportsTo(luvio));
1580
1891
  });
1581
1892
 
1582
- export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative };
1583
- // version: 1.282.0-dd2e9831c
1893
+ export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative, getUserPermissions, getUserPermissions_imperative };
1894
+ // version: 1.284.0-8b78b708e