@salesforce/lds-adapters-platform-sharing 1.288.0 → 1.290.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$4, typeCheckConfig as typeCheckConfig$4, StoreKeyMap, createResourceParams as createResourceParams$4 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, typeCheckConfig as typeCheckConfig$5, StoreKeyMap, createResourceParams as createResourceParams$5 } 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$c = "7d75e40a9fde9f60ae02b6dde36257ce";
95
- function validate$c(obj, path = 'PublicGroupRepresentation') {
94
+ const VERSION$e = "7d75e40a9fde9f60ae02b6dde36257ce";
95
+ function validate$e(obj, path = 'PublicGroupRepresentation') {
96
96
  const v_error = (() => {
97
97
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
98
98
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -120,10 +120,10 @@ function validate$c(obj, path = 'PublicGroupRepresentation') {
120
120
  })();
121
121
  return v_error === undefined ? null : v_error;
122
122
  }
123
- const select$g = function PublicGroupRepresentationSelect() {
123
+ const select$j = function PublicGroupRepresentationSelect() {
124
124
  return {
125
125
  kind: 'Fragment',
126
- version: VERSION$c,
126
+ version: VERSION$e,
127
127
  private: [],
128
128
  selections: [
129
129
  {
@@ -145,7 +145,7 @@ const select$g = function PublicGroupRepresentationSelect() {
145
145
  ]
146
146
  };
147
147
  };
148
- function equals$c(existing, incoming) {
148
+ function equals$e(existing, incoming) {
149
149
  const existing_includeBosses = existing.includeBosses;
150
150
  const incoming_includeBosses = incoming.includeBosses;
151
151
  if (!(existing_includeBosses === incoming_includeBosses)) {
@@ -169,8 +169,8 @@ function equals$c(existing, incoming) {
169
169
  return true;
170
170
  }
171
171
 
172
- const VERSION$b = "89ae3fce0ad09282e80bd77a9c483003";
173
- function validate$b(obj, path = 'QueueRepresentation') {
172
+ const VERSION$d = "89ae3fce0ad09282e80bd77a9c483003";
173
+ function validate$d(obj, path = 'QueueRepresentation') {
174
174
  const v_error = (() => {
175
175
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
176
176
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -193,10 +193,10 @@ function validate$b(obj, path = 'QueueRepresentation') {
193
193
  })();
194
194
  return v_error === undefined ? null : v_error;
195
195
  }
196
- const select$f = function QueueRepresentationSelect() {
196
+ const select$i = function QueueRepresentationSelect() {
197
197
  return {
198
198
  kind: 'Fragment',
199
- version: VERSION$b,
199
+ version: VERSION$d,
200
200
  private: [],
201
201
  selections: [
202
202
  {
@@ -214,7 +214,7 @@ const select$f = function QueueRepresentationSelect() {
214
214
  ]
215
215
  };
216
216
  };
217
- function equals$b(existing, incoming) {
217
+ function equals$d(existing, incoming) {
218
218
  const existing_developerName = existing.developerName;
219
219
  const incoming_developerName = incoming.developerName;
220
220
  if (!(existing_developerName === incoming_developerName)) {
@@ -233,9 +233,9 @@ function equals$b(existing, incoming) {
233
233
  return true;
234
234
  }
235
235
 
236
- const TTL$3 = 300;
237
- const VERSION$a = "3659c4a4f46957a3a2b5cb2d2383180d";
238
- function validate$a(obj, path = 'GroupCollectionRepresentation') {
236
+ const TTL$4 = 300;
237
+ const VERSION$c = "3659c4a4f46957a3a2b5cb2d2383180d";
238
+ function validate$c(obj, path = 'GroupCollectionRepresentation') {
239
239
  const v_error = (() => {
240
240
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
241
241
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -248,7 +248,7 @@ function validate$a(obj, path = 'GroupCollectionRepresentation') {
248
248
  for (let i = 0; i < obj_publicGroupRepresentations.length; i++) {
249
249
  const obj_publicGroupRepresentations_item = obj_publicGroupRepresentations[i];
250
250
  const path_publicGroupRepresentations_item = path_publicGroupRepresentations + '[' + i + ']';
251
- const referencepath_publicGroupRepresentations_itemValidationError = validate$c(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
251
+ const referencepath_publicGroupRepresentations_itemValidationError = validate$e(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
252
252
  if (referencepath_publicGroupRepresentations_itemValidationError !== null) {
253
253
  let message = 'Object doesn\'t match PublicGroupRepresentation (at "' + path_publicGroupRepresentations_item + '")\n';
254
254
  message += referencepath_publicGroupRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -263,7 +263,7 @@ function validate$a(obj, path = 'GroupCollectionRepresentation') {
263
263
  for (let i = 0; i < obj_queueRepresentations.length; i++) {
264
264
  const obj_queueRepresentations_item = obj_queueRepresentations[i];
265
265
  const path_queueRepresentations_item = path_queueRepresentations + '[' + i + ']';
266
- const referencepath_queueRepresentations_itemValidationError = validate$b(obj_queueRepresentations_item, path_queueRepresentations_item);
266
+ const referencepath_queueRepresentations_itemValidationError = validate$d(obj_queueRepresentations_item, path_queueRepresentations_item);
267
267
  if (referencepath_queueRepresentations_itemValidationError !== null) {
268
268
  let message = 'Object doesn\'t match QueueRepresentation (at "' + path_queueRepresentations_item + '")\n';
269
269
  message += referencepath_queueRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -273,16 +273,16 @@ function validate$a(obj, path = 'GroupCollectionRepresentation') {
273
273
  })();
274
274
  return v_error === undefined ? null : v_error;
275
275
  }
276
- const RepresentationType$3 = 'GroupCollectionRepresentation';
277
- function normalize$3(input, existing, path, luvio, store, timestamp) {
276
+ const RepresentationType$4 = 'GroupCollectionRepresentation';
277
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
278
278
  return input;
279
279
  }
280
- const select$e = function GroupCollectionRepresentationSelect() {
281
- const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$g();
282
- const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$f();
280
+ const select$h = function GroupCollectionRepresentationSelect() {
281
+ const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$j();
282
+ const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$i();
283
283
  return {
284
284
  kind: 'Fragment',
285
- version: VERSION$a,
285
+ version: VERSION$c,
286
286
  private: [],
287
287
  selections: [
288
288
  {
@@ -300,11 +300,11 @@ const select$e = function GroupCollectionRepresentationSelect() {
300
300
  ]
301
301
  };
302
302
  };
303
- function equals$a(existing, incoming) {
303
+ function equals$c(existing, incoming) {
304
304
  const existing_publicGroupRepresentations = existing.publicGroupRepresentations;
305
305
  const incoming_publicGroupRepresentations = incoming.publicGroupRepresentations;
306
306
  const equals_publicGroupRepresentations_items = equalsArray(existing_publicGroupRepresentations, incoming_publicGroupRepresentations, (existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item) => {
307
- if (!(equals$c(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
307
+ if (!(equals$e(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
308
308
  return false;
309
309
  }
310
310
  });
@@ -314,7 +314,7 @@ function equals$a(existing, incoming) {
314
314
  const existing_queueRepresentations = existing.queueRepresentations;
315
315
  const incoming_queueRepresentations = incoming.queueRepresentations;
316
316
  const equals_queueRepresentations_items = equalsArray(existing_queueRepresentations, incoming_queueRepresentations, (existing_queueRepresentations_item, incoming_queueRepresentations_item) => {
317
- if (!(equals$b(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
317
+ if (!(equals$d(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
318
318
  return false;
319
319
  }
320
320
  });
@@ -323,7 +323,336 @@ function equals$a(existing, incoming) {
323
323
  }
324
324
  return true;
325
325
  }
326
- const ingest$3 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
326
+ const ingest$4 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
327
+ if (process.env.NODE_ENV !== 'production') {
328
+ const validateError = validate$c(input);
329
+ if (validateError !== null) {
330
+ throw validateError;
331
+ }
332
+ }
333
+ const key = path.fullPath;
334
+ const ttlToUse = TTL$4;
335
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "sharing", VERSION$c, RepresentationType$4, equals$c);
336
+ return createLink(key);
337
+ };
338
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
339
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
340
+ const rootKey = fullPathFactory();
341
+ rootKeySet.set(rootKey, {
342
+ namespace: keyPrefix,
343
+ representationName: RepresentationType$4,
344
+ mergeable: false
345
+ });
346
+ }
347
+
348
+ function select$g(luvio, params) {
349
+ return select$h();
350
+ }
351
+ function keyBuilder$9(luvio, params) {
352
+ return keyPrefix + '::GroupCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'groupType:' + params.urlParams.groupType + ',' + 'userId:' + params.urlParams.userId + ')';
353
+ }
354
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
355
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
356
+ }
357
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
358
+ const { body } = response;
359
+ const key = keyBuilder$9(luvio, resourceParams);
360
+ luvio.storeIngest(key, ingest$4, body);
361
+ const snapshot = luvio.storeLookup({
362
+ recordId: key,
363
+ node: select$g(),
364
+ variables: {},
365
+ }, snapshotRefresh);
366
+ if (process.env.NODE_ENV !== 'production') {
367
+ if (snapshot.state !== 'Fulfilled') {
368
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
369
+ }
370
+ }
371
+ deepFreeze(snapshot.data);
372
+ return snapshot;
373
+ }
374
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
375
+ const key = keyBuilder$9(luvio, params);
376
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
377
+ const storeMetadataParams = {
378
+ ttl: TTL$4,
379
+ namespace: keyPrefix,
380
+ version: VERSION$c,
381
+ representationName: RepresentationType$4
382
+ };
383
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
384
+ return errorSnapshot;
385
+ }
386
+ function createResourceRequest$4(config) {
387
+ const headers = {};
388
+ return {
389
+ baseUri: '/services/data/v62.0',
390
+ basePath: '/sharing/groups-for-user/' + config.urlParams.userId + '/' + config.urlParams.groupType + '',
391
+ method: 'get',
392
+ body: null,
393
+ urlParams: config.urlParams,
394
+ queryParams: config.queryParams,
395
+ headers,
396
+ priority: 'normal',
397
+ };
398
+ }
399
+
400
+ const adapterName$4 = 'getGroupsForUser';
401
+ const getGroupsForUser_ConfigPropertyMetadata = [
402
+ generateParamConfigMetadata('groupType', true, 0 /* UrlParameter */, 0 /* String */),
403
+ generateParamConfigMetadata('userId', true, 0 /* UrlParameter */, 0 /* String */),
404
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
405
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
406
+ generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
407
+ generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
408
+ ];
409
+ const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getGroupsForUser_ConfigPropertyMetadata);
410
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(getGroupsForUser_ConfigPropertyMetadata);
411
+ function keyBuilder$8(luvio, config) {
412
+ const resourceParams = createResourceParams$4(config);
413
+ return keyBuilder$9(luvio, resourceParams);
414
+ }
415
+ function typeCheckConfig$4(untrustedConfig) {
416
+ const config = {};
417
+ typeCheckConfig$5(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
418
+ return config;
419
+ }
420
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
421
+ if (!untrustedIsObject(untrustedConfig)) {
422
+ return null;
423
+ }
424
+ if (process.env.NODE_ENV !== 'production') {
425
+ validateConfig(untrustedConfig, configPropertyNames);
426
+ }
427
+ const config = typeCheckConfig$4(untrustedConfig);
428
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
429
+ return null;
430
+ }
431
+ return config;
432
+ }
433
+ function adapterFragment$4(luvio, config) {
434
+ createResourceParams$4(config);
435
+ return select$g();
436
+ }
437
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
438
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
439
+ config,
440
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
441
+ });
442
+ return luvio.storeBroadcast().then(() => snapshot);
443
+ }
444
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
445
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
446
+ config,
447
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
448
+ });
449
+ return luvio.storeBroadcast().then(() => snapshot);
450
+ }
451
+ function buildNetworkSnapshot$4(luvio, config, options) {
452
+ const resourceParams = createResourceParams$4(config);
453
+ const request = createResourceRequest$4(resourceParams);
454
+ return luvio.dispatchResourceRequest(request, options)
455
+ .then((response) => {
456
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
457
+ const cache = new StoreKeyMap();
458
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
459
+ return cache;
460
+ });
461
+ }, (response) => {
462
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
463
+ });
464
+ }
465
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
466
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
467
+ }
468
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
469
+ const { luvio, config } = context;
470
+ const selector = {
471
+ recordId: keyBuilder$8(luvio, config),
472
+ node: adapterFragment$4(luvio, config),
473
+ variables: {},
474
+ };
475
+ const cacheSnapshot = storeLookup(selector, {
476
+ config,
477
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
478
+ });
479
+ return cacheSnapshot;
480
+ }
481
+ const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsForUser(untrustedConfig, requestContext) {
482
+ const config = validateAdapterConfig$4(untrustedConfig, getGroupsForUser_ConfigPropertyNames);
483
+ // Invalid or incomplete config
484
+ if (config === null) {
485
+ return null;
486
+ }
487
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
488
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
489
+ };
490
+
491
+ const VERSION$b = "6abb89d83ef158efe13c19652a019d40";
492
+ function validate$b(obj, path = 'UserMembersInPublicGroupRepresentation') {
493
+ const v_error = (() => {
494
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
495
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
496
+ }
497
+ const obj_alias = obj.alias;
498
+ const path_alias = path + '.alias';
499
+ if (typeof obj_alias !== 'string') {
500
+ return new TypeError('Expected "string" but received "' + typeof obj_alias + '" (at "' + path_alias + '")');
501
+ }
502
+ const obj_name = obj.name;
503
+ const path_name = path + '.name';
504
+ if (typeof obj_name !== 'string') {
505
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
506
+ }
507
+ const obj_profile = obj.profile;
508
+ const path_profile = path + '.profile';
509
+ if (typeof obj_profile !== 'string') {
510
+ return new TypeError('Expected "string" but received "' + typeof obj_profile + '" (at "' + path_profile + '")');
511
+ }
512
+ const obj_role = obj.role;
513
+ const path_role = path + '.role';
514
+ if (typeof obj_role !== 'string') {
515
+ return new TypeError('Expected "string" but received "' + typeof obj_role + '" (at "' + path_role + '")');
516
+ }
517
+ const obj_status = obj.status;
518
+ const path_status = path + '.status';
519
+ if (typeof obj_status !== 'boolean') {
520
+ return new TypeError('Expected "boolean" but received "' + typeof obj_status + '" (at "' + path_status + '")');
521
+ }
522
+ const obj_username = obj.username;
523
+ const path_username = path + '.username';
524
+ if (typeof obj_username !== 'string') {
525
+ return new TypeError('Expected "string" but received "' + typeof obj_username + '" (at "' + path_username + '")');
526
+ }
527
+ })();
528
+ return v_error === undefined ? null : v_error;
529
+ }
530
+ const select$f = function UserMembersInPublicGroupRepresentationSelect() {
531
+ return {
532
+ kind: 'Fragment',
533
+ version: VERSION$b,
534
+ private: [],
535
+ selections: [
536
+ {
537
+ name: 'alias',
538
+ kind: 'Scalar'
539
+ },
540
+ {
541
+ name: 'name',
542
+ kind: 'Scalar'
543
+ },
544
+ {
545
+ name: 'profile',
546
+ kind: 'Scalar'
547
+ },
548
+ {
549
+ name: 'role',
550
+ kind: 'Scalar'
551
+ },
552
+ {
553
+ name: 'status',
554
+ kind: 'Scalar'
555
+ },
556
+ {
557
+ name: 'username',
558
+ kind: 'Scalar'
559
+ }
560
+ ]
561
+ };
562
+ };
563
+ function equals$b(existing, incoming) {
564
+ const existing_status = existing.status;
565
+ const incoming_status = incoming.status;
566
+ if (!(existing_status === incoming_status)) {
567
+ return false;
568
+ }
569
+ const existing_alias = existing.alias;
570
+ const incoming_alias = incoming.alias;
571
+ if (!(existing_alias === incoming_alias)) {
572
+ return false;
573
+ }
574
+ const existing_name = existing.name;
575
+ const incoming_name = incoming.name;
576
+ if (!(existing_name === incoming_name)) {
577
+ return false;
578
+ }
579
+ const existing_profile = existing.profile;
580
+ const incoming_profile = incoming.profile;
581
+ if (!(existing_profile === incoming_profile)) {
582
+ return false;
583
+ }
584
+ const existing_role = existing.role;
585
+ const incoming_role = incoming.role;
586
+ if (!(existing_role === incoming_role)) {
587
+ return false;
588
+ }
589
+ const existing_username = existing.username;
590
+ const incoming_username = incoming.username;
591
+ if (!(existing_username === incoming_username)) {
592
+ return false;
593
+ }
594
+ return true;
595
+ }
596
+
597
+ const TTL$3 = 300;
598
+ const VERSION$a = "5959939d2b282a69110b986258cb3620";
599
+ function validate$a(obj, path = 'PublicGroupMembershipDetailsRepresentation') {
600
+ const v_error = (() => {
601
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
602
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
603
+ }
604
+ const obj_listUsers = obj.listUsers;
605
+ const path_listUsers = path + '.listUsers';
606
+ if (!ArrayIsArray(obj_listUsers)) {
607
+ return new TypeError('Expected "array" but received "' + typeof obj_listUsers + '" (at "' + path_listUsers + '")');
608
+ }
609
+ for (let i = 0; i < obj_listUsers.length; i++) {
610
+ const obj_listUsers_item = obj_listUsers[i];
611
+ const path_listUsers_item = path_listUsers + '[' + i + ']';
612
+ const referencepath_listUsers_itemValidationError = validate$b(obj_listUsers_item, path_listUsers_item);
613
+ if (referencepath_listUsers_itemValidationError !== null) {
614
+ let message = 'Object doesn\'t match UserMembersInPublicGroupRepresentation (at "' + path_listUsers_item + '")\n';
615
+ message += referencepath_listUsers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
616
+ return new TypeError(message);
617
+ }
618
+ }
619
+ })();
620
+ return v_error === undefined ? null : v_error;
621
+ }
622
+ const RepresentationType$3 = 'PublicGroupMembershipDetailsRepresentation';
623
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
624
+ return input;
625
+ }
626
+ const select$e = function PublicGroupMembershipDetailsRepresentationSelect() {
627
+ const { selections: UserMembersInPublicGroupRepresentation__selections, opaque: UserMembersInPublicGroupRepresentation__opaque, } = select$f();
628
+ return {
629
+ kind: 'Fragment',
630
+ version: VERSION$a,
631
+ private: [],
632
+ selections: [
633
+ {
634
+ name: 'listUsers',
635
+ kind: 'Object',
636
+ plural: true,
637
+ selections: UserMembersInPublicGroupRepresentation__selections
638
+ }
639
+ ]
640
+ };
641
+ };
642
+ function equals$a(existing, incoming) {
643
+ const existing_listUsers = existing.listUsers;
644
+ const incoming_listUsers = incoming.listUsers;
645
+ const equals_listUsers_items = equalsArray(existing_listUsers, incoming_listUsers, (existing_listUsers_item, incoming_listUsers_item) => {
646
+ if (!(equals$b(existing_listUsers_item, incoming_listUsers_item))) {
647
+ return false;
648
+ }
649
+ });
650
+ if (equals_listUsers_items === false) {
651
+ return false;
652
+ }
653
+ return true;
654
+ }
655
+ const ingest$3 = function PublicGroupMembershipDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
327
656
  if (process.env.NODE_ENV !== 'production') {
328
657
  const validateError = validate$a(input);
329
658
  if (validateError !== null) {
@@ -349,7 +678,7 @@ function select$d(luvio, params) {
349
678
  return select$e();
350
679
  }
351
680
  function keyBuilder$7(luvio, params) {
352
- return keyPrefix + '::GroupCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'groupType:' + params.urlParams.groupType + ',' + 'userId:' + params.urlParams.userId + ')';
681
+ return keyPrefix + '::PublicGroupMembershipDetailsRepresentation:(' + 'filterCriteria:' + params.body.filterCriteria + '::' + 'groupId:' + params.body.groupId + '::' + 'limit:' + params.body.limit + '::' + 'offset:' + params.body.offset + '::' + 'orderBy:' + params.body.orderBy + '::' + 'orderType:' + params.body.orderType + ')';
353
682
  }
354
683
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
355
684
  getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
@@ -386,35 +715,37 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
386
715
  function createResourceRequest$3(config) {
387
716
  const headers = {};
388
717
  return {
389
- baseUri: '/services/data/v61.0',
390
- basePath: '/sharing/groups-for-user/' + config.urlParams.userId + '/' + config.urlParams.groupType + '',
391
- method: 'get',
392
- body: null,
393
- urlParams: config.urlParams,
394
- queryParams: config.queryParams,
718
+ baseUri: '/services/data/v62.0',
719
+ basePath: '/sharing/publicGroupsDetails',
720
+ method: 'post',
721
+ body: config.body,
722
+ urlParams: {},
723
+ queryParams: {},
395
724
  headers,
396
725
  priority: 'normal',
397
726
  };
398
727
  }
399
728
 
400
- const adapterName$3 = 'getGroupsForUser';
401
- const getGroupsForUser_ConfigPropertyMetadata = [
402
- generateParamConfigMetadata('groupType', true, 0 /* UrlParameter */, 0 /* String */),
403
- generateParamConfigMetadata('userId', true, 0 /* UrlParameter */, 0 /* String */),
404
- generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
405
- generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
406
- generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
407
- generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
729
+ const adapterName$3 = 'getPublicGroupMembershipDetails';
730
+ const getPublicGroupMembershipDetails_ConfigPropertyMetadata = [
731
+ generateParamConfigMetadata('filterCriteria', true, 2 /* Body */, 4 /* Unsupported */),
732
+ generateParamConfigMetadata('groupId', true, 2 /* Body */, 0 /* String */),
733
+ generateParamConfigMetadata('limit', true, 2 /* Body */, 3 /* Integer */),
734
+ generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
735
+ generateParamConfigMetadata('orderBy', true, 2 /* Body */, 0 /* String */),
736
+ generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
408
737
  ];
409
- const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getGroupsForUser_ConfigPropertyMetadata);
410
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(getGroupsForUser_ConfigPropertyMetadata);
738
+ const getPublicGroupMembershipDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getPublicGroupMembershipDetails_ConfigPropertyMetadata);
739
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(getPublicGroupMembershipDetails_ConfigPropertyMetadata);
411
740
  function keyBuilder$6(luvio, config) {
412
741
  const resourceParams = createResourceParams$3(config);
413
742
  return keyBuilder$7(luvio, resourceParams);
414
743
  }
415
744
  function typeCheckConfig$3(untrustedConfig) {
416
745
  const config = {};
417
- typeCheckConfig$4(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
746
+ typeCheckConfig$5(untrustedConfig, config, getPublicGroupMembershipDetails_ConfigPropertyMetadata);
747
+ const untrustedConfig_filterCriteria = untrustedConfig.filterCriteria;
748
+ config.filterCriteria = untrustedConfig_filterCriteria;
418
749
  return config;
419
750
  }
420
751
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -463,7 +794,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
463
794
  });
464
795
  }
465
796
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
466
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
797
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, 'get', false);
467
798
  }
468
799
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
469
800
  const { luvio, config } = context;
@@ -478,8 +809,8 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
478
809
  });
479
810
  return cacheSnapshot;
480
811
  }
481
- const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsForUser(untrustedConfig, requestContext) {
482
- const config = validateAdapterConfig$3(untrustedConfig, getGroupsForUser_ConfigPropertyNames);
812
+ const getPublicGroupMembershipDetailsAdapterFactory = (luvio) => function sharing__getPublicGroupMembershipDetails(untrustedConfig, requestContext) {
813
+ const config = validateAdapterConfig$3(untrustedConfig, getPublicGroupMembershipDetails_ConfigPropertyNames);
483
814
  // Invalid or incomplete config
484
815
  if (config === null) {
485
816
  return null;
@@ -1141,7 +1472,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
1141
1472
  function createResourceRequest$2(config) {
1142
1473
  const headers = {};
1143
1474
  return {
1144
- baseUri: '/services/data/v61.0',
1475
+ baseUri: '/services/data/v62.0',
1145
1476
  basePath: '/sharing/publicGroupsSummary',
1146
1477
  method: 'post',
1147
1478
  body: config.body,
@@ -1163,14 +1494,14 @@ const getPublicGroupShareData_ConfigPropertyMetadata = [
1163
1494
  generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
1164
1495
  ];
1165
1496
  const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPublicGroupShareData_ConfigPropertyMetadata);
1166
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(getPublicGroupShareData_ConfigPropertyMetadata);
1497
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(getPublicGroupShareData_ConfigPropertyMetadata);
1167
1498
  function keyBuilder$4(luvio, config) {
1168
1499
  const resourceParams = createResourceParams$2(config);
1169
1500
  return keyBuilder$5(luvio, resourceParams);
1170
1501
  }
1171
1502
  function typeCheckConfig$2(untrustedConfig) {
1172
1503
  const config = {};
1173
- typeCheckConfig$4(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
1504
+ typeCheckConfig$5(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
1174
1505
  return config;
1175
1506
  }
1176
1507
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -1219,7 +1550,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
1219
1550
  });
1220
1551
  }
1221
1552
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
1222
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, 'get', false);
1553
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, 'get', false);
1223
1554
  }
1224
1555
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1225
1556
  const { luvio, config } = context;
@@ -1457,7 +1788,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
1457
1788
  function createResourceRequest$1(config) {
1458
1789
  const headers = {};
1459
1790
  return {
1460
- baseUri: '/services/data/v61.0',
1791
+ baseUri: '/services/data/v62.0',
1461
1792
  basePath: '/sharing/sobjects',
1462
1793
  method: 'get',
1463
1794
  body: null,
@@ -1475,14 +1806,14 @@ const getAllSobjects_ConfigPropertyMetadata = [
1475
1806
  generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
1476
1807
  ];
1477
1808
  const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getAllSobjects_ConfigPropertyMetadata);
1478
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(getAllSobjects_ConfigPropertyMetadata);
1809
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(getAllSobjects_ConfigPropertyMetadata);
1479
1810
  function keyBuilder$2(luvio, config) {
1480
1811
  const resourceParams = createResourceParams$1(config);
1481
1812
  return keyBuilder$3(luvio, resourceParams);
1482
1813
  }
1483
1814
  function typeCheckConfig$1(untrustedConfig) {
1484
1815
  const config = {};
1485
- typeCheckConfig$4(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
1816
+ typeCheckConfig$5(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
1486
1817
  return config;
1487
1818
  }
1488
1819
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -1531,7 +1862,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
1531
1862
  });
1532
1863
  }
1533
1864
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1534
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
1865
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
1535
1866
  }
1536
1867
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1537
1868
  const { luvio, config } = context;
@@ -1620,7 +1951,7 @@ function equals$1(existing, incoming) {
1620
1951
  return true;
1621
1952
  }
1622
1953
 
1623
- const TTL = 600000;
1954
+ const TTL = 300;
1624
1955
  const VERSION = "627ab68dfb8c0174c1e9dc9f2701c1b2";
1625
1956
  function validate(obj, path = 'UserPermissionsInfoListRepresentation') {
1626
1957
  const v_error = (() => {
@@ -1718,7 +2049,7 @@ function select(luvio, params) {
1718
2049
  return select$1();
1719
2050
  }
1720
2051
  function keyBuilder$1(luvio, params) {
1721
- return keyPrefix + '::UserPermissionsInfoListRepresentation:(' + 'entityName:' + params.queryParams.entityName + ',' + 'recordId:' + params.queryParams.recordId + ')';
2052
+ return keyPrefix + '::UserPermissionsInfoListRepresentation:(' + 'recordId:' + params.queryParams.recordId + ')';
1722
2053
  }
1723
2054
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1724
2055
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -1755,7 +2086,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
1755
2086
  function createResourceRequest(config) {
1756
2087
  const headers = {};
1757
2088
  return {
1758
- baseUri: '/services/data/v61.0',
2089
+ baseUri: '/services/data/v62.0',
1759
2090
  basePath: '/sharing/userPermissions',
1760
2091
  method: 'get',
1761
2092
  body: null,
@@ -1768,18 +2099,17 @@ function createResourceRequest(config) {
1768
2099
 
1769
2100
  const adapterName = 'getUserPermissions';
1770
2101
  const getUserPermissions_ConfigPropertyMetadata = [
1771
- generateParamConfigMetadata('entityName', true, 1 /* QueryParameter */, 0 /* String */),
1772
2102
  generateParamConfigMetadata('recordId', true, 1 /* QueryParameter */, 0 /* String */),
1773
2103
  ];
1774
2104
  const getUserPermissions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getUserPermissions_ConfigPropertyMetadata);
1775
- const createResourceParams = /*#__PURE__*/ createResourceParams$4(getUserPermissions_ConfigPropertyMetadata);
2105
+ const createResourceParams = /*#__PURE__*/ createResourceParams$5(getUserPermissions_ConfigPropertyMetadata);
1776
2106
  function keyBuilder(luvio, config) {
1777
2107
  const resourceParams = createResourceParams(config);
1778
2108
  return keyBuilder$1(luvio, resourceParams);
1779
2109
  }
1780
2110
  function typeCheckConfig(untrustedConfig) {
1781
2111
  const config = {};
1782
- typeCheckConfig$4(untrustedConfig, config, getUserPermissions_ConfigPropertyMetadata);
2112
+ typeCheckConfig$5(untrustedConfig, config, getUserPermissions_ConfigPropertyMetadata);
1783
2113
  return config;
1784
2114
  }
1785
2115
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -1828,7 +2158,7 @@ function buildNetworkSnapshot(luvio, config, options) {
1828
2158
  });
1829
2159
  }
1830
2160
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1831
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
2161
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
1832
2162
  }
1833
2163
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
1834
2164
  const { luvio, config } = context;
@@ -1853,4 +2183,4 @@ const getUserPermissionsAdapterFactory = (luvio) => function sharing__getUserPer
1853
2183
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1854
2184
  };
1855
2185
 
1856
- export { getAllSobjectsAdapterFactory, getGroupsForUserAdapterFactory, getPublicGroupShareDataAdapterFactory, getUserPermissionsAdapterFactory };
2186
+ export { getAllSobjectsAdapterFactory, getGroupsForUserAdapterFactory, getPublicGroupMembershipDetailsAdapterFactory, getPublicGroupShareDataAdapterFactory, getUserPermissionsAdapterFactory };