@salesforce/lds-worker-api 1.274.0 → 1.276.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.
@@ -885,6 +885,9 @@
885
885
  const canonicalKey = this.getCanonicalRecordId(key);
886
886
  delete this.records[canonicalKey];
887
887
  }
888
+ keyExistsInStore(key) {
889
+ return this.records[key] !== undefined;
890
+ }
888
891
  publishMetadata(key, storeMetadata) {
889
892
  this.putMetadata(key, storeMetadata, true);
890
893
  const canonicalKey = this.getCanonicalRecordId(key);
@@ -990,7 +993,7 @@
990
993
  // is already in L1 prior to ingestion
991
994
  stagingStore.readEntry = (key) => {
992
995
  const entry = originalReadEntry(key);
993
- if (!entry) {
996
+ if (entry === undefined) {
994
997
  return upstreamStore.readEntry(key);
995
998
  }
996
999
  return entry;
@@ -1595,6 +1598,12 @@
1595
1598
  const canonicalKey = this.getCanonicalRecordId(key);
1596
1599
  this.recordsMap.delete(canonicalKey);
1597
1600
  }
1601
+ keyExistsInStore(key) {
1602
+ if (typeof key === 'string') {
1603
+ return this.fallbackStringKeyInMemoryStore.keyExistsInStore(key);
1604
+ }
1605
+ return this.recordsMap.get(key) !== undefined;
1606
+ }
1598
1607
  publishMetadata(key, storeMetadata) {
1599
1608
  if (typeof key === 'string') {
1600
1609
  this.fallbackStringKeyInMemoryStore.publishMetadata(key, storeMetadata);
@@ -3380,6 +3389,9 @@
3380
3389
  storeRetain(keys) {
3381
3390
  return this.store.retain(keys);
3382
3391
  }
3392
+ storeKeyExists(key) {
3393
+ return this.store.keyExistsInStore(key);
3394
+ }
3383
3395
  snapshotAvailable(snapshot) {
3384
3396
  return (isFulfilledSnapshot$2(snapshot) || isErrorSnapshot$3(snapshot) || isStaleSnapshot$2(snapshot));
3385
3397
  }
@@ -4022,7 +4034,7 @@
4022
4034
  }
4023
4035
  return resourceParams;
4024
4036
  }
4025
- // engine version: 0.154.9-68ce3623
4037
+ // engine version: 0.154.12-43ac02c6
4026
4038
 
4027
4039
  /**
4028
4040
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -4150,7 +4162,7 @@
4150
4162
  }
4151
4163
  callbacks.push(callback);
4152
4164
  }
4153
- // version: 1.274.0-67da496e8
4165
+ // version: 1.276.0-dcebc4076
4154
4166
 
4155
4167
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4156
4168
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15658,7 +15670,7 @@
15658
15670
  }
15659
15671
  return superResult;
15660
15672
  }
15661
- // version: 1.274.0-67da496e8
15673
+ // version: 1.276.0-dcebc4076
15662
15674
 
15663
15675
  function unwrap(data) {
15664
15676
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16583,7 +16595,7 @@
16583
16595
  const { apiFamily, name } = metadata;
16584
16596
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16585
16597
  }
16586
- // version: 1.274.0-67da496e8
16598
+ // version: 1.276.0-dcebc4076
16587
16599
 
16588
16600
  /**
16589
16601
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16682,7 +16694,7 @@
16682
16694
  TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
16683
16695
  TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
16684
16696
  })(TypeCheckShapes || (TypeCheckShapes = {}));
16685
- // engine version: 0.154.9-68ce3623
16697
+ // engine version: 0.154.12-43ac02c6
16686
16698
 
16687
16699
  const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
16688
16700
 
@@ -22247,6 +22259,461 @@
22247
22259
  };
22248
22260
  }
22249
22261
 
22262
+ const VERSION$16$1 = "0b29241fd9ed04bb61fde26b3f558ac4";
22263
+ const RepresentationType$R = 'ListInfoSummaryRepresentation';
22264
+ function keyBuilder$1$(luvio, config) {
22265
+ return keyPrefix$2 + '::' + RepresentationType$R + ':' + (config.id === null ? '' : config.id);
22266
+ }
22267
+ function keyBuilderFromType$z(luvio, object) {
22268
+ const keyParams = {
22269
+ id: object.id
22270
+ };
22271
+ return keyBuilder$1$(luvio, keyParams);
22272
+ }
22273
+ function normalize$K(input, existing, path, luvio, store, timestamp) {
22274
+ return input;
22275
+ }
22276
+ const select$1L = function ListInfoSummaryRepresentationSelect() {
22277
+ return {
22278
+ kind: 'Fragment',
22279
+ version: VERSION$16$1,
22280
+ private: [],
22281
+ selections: [
22282
+ {
22283
+ name: 'apiName',
22284
+ kind: 'Scalar'
22285
+ },
22286
+ {
22287
+ name: 'id',
22288
+ kind: 'Scalar'
22289
+ },
22290
+ {
22291
+ name: 'label',
22292
+ kind: 'Scalar'
22293
+ },
22294
+ {
22295
+ name: 'url',
22296
+ kind: 'Scalar'
22297
+ }
22298
+ ]
22299
+ };
22300
+ };
22301
+ function equals$Y(existing, incoming) {
22302
+ const existing_apiName = existing.apiName;
22303
+ const incoming_apiName = incoming.apiName;
22304
+ if (!(existing_apiName === incoming_apiName)) {
22305
+ return false;
22306
+ }
22307
+ const existing_label = existing.label;
22308
+ const incoming_label = incoming.label;
22309
+ if (!(existing_label === incoming_label)) {
22310
+ return false;
22311
+ }
22312
+ const existing_url = existing.url;
22313
+ const incoming_url = incoming.url;
22314
+ if (!(existing_url === incoming_url)) {
22315
+ return false;
22316
+ }
22317
+ const existing_id = existing.id;
22318
+ const incoming_id = incoming.id;
22319
+ if (!(existing_id === incoming_id)) {
22320
+ return false;
22321
+ }
22322
+ return true;
22323
+ }
22324
+ const ingest$K$1 = function ListInfoSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
22325
+ const key = keyBuilderFromType$z(luvio, input);
22326
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
22327
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$K, "UiApi", VERSION$16$1, RepresentationType$R, equals$Y);
22328
+ return createLink$3(key);
22329
+ };
22330
+ function getTypeCacheKeys$R$1(rootKeySet, luvio, input, fullPathFactory) {
22331
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
22332
+ const rootKey = keyBuilderFromType$z(luvio, input);
22333
+ rootKeySet.set(rootKey, {
22334
+ namespace: keyPrefix$2,
22335
+ representationName: RepresentationType$R,
22336
+ mergeable: false
22337
+ });
22338
+ }
22339
+
22340
+ const VERSION$15$1 = "d0cadb0927f908b5b64694e1cff0b2d7";
22341
+ const RepresentationType$Q = 'ListInfoSummaryCollectionRepresentation';
22342
+ function keyBuilder$1_(luvio, config) {
22343
+ return keyPrefix$2 + '::' + RepresentationType$Q + ':' + config.objectApiName + ':' + (config.queryString === null ? '' : config.queryString) + ':' + config.recentListsOnly;
22344
+ }
22345
+ function keyBuilderFromType$y(luvio, object) {
22346
+ const keyParams = {
22347
+ objectApiName: object.objectApiName,
22348
+ queryString: object.queryString,
22349
+ recentListsOnly: object.recentListsOnly
22350
+ };
22351
+ return keyBuilder$1_(luvio, keyParams);
22352
+ }
22353
+ function normalize$J(input, existing, path, luvio, store, timestamp) {
22354
+ const input_lists = input.lists;
22355
+ const input_lists_id = path.fullPath + '__lists';
22356
+ for (let i = 0; i < input_lists.length; i++) {
22357
+ const input_lists_item = input_lists[i];
22358
+ let input_lists_item_id = input_lists_id + '__' + i;
22359
+ input_lists[i] = ingest$K$1(input_lists_item, {
22360
+ fullPath: input_lists_item_id,
22361
+ propertyName: i,
22362
+ parent: {
22363
+ data: input,
22364
+ key: path.fullPath,
22365
+ existing: existing,
22366
+ },
22367
+ ttl: path.ttl
22368
+ }, luvio, store, timestamp);
22369
+ }
22370
+ return input;
22371
+ }
22372
+ const select$1K = function ListInfoSummaryCollectionRepresentationSelect(paginationParams) {
22373
+ return {
22374
+ kind: 'Fragment',
22375
+ reader: true,
22376
+ synthetic: false,
22377
+ version: VERSION$15$1,
22378
+ read: (source, reader) => {
22379
+ const sink = {};
22380
+ if (paginationParams === undefined) {
22381
+ return sink;
22382
+ }
22383
+ const metadata = reader.resolveMetadata(source, PAGINATION_VERSION$1);
22384
+ const currentPageMetadata = getPageMetadata$2(metadata, paginationParams);
22385
+ const { startOffset, endOffset, metadataProperties } = currentPageMetadata;
22386
+ if (metadata !== undefined && startOffset !== undefined && endOffset !== undefined) {
22387
+ const itemsProperty = 'lists';
22388
+ reader.enterPath(itemsProperty);
22389
+ const itemsSource = source[itemsProperty];
22390
+ const itemsSink = [];
22391
+ const allSink = [];
22392
+ for (let i = startOffset; i < endOffset; i++) {
22393
+ reader.enterPath(i);
22394
+ reader.readSingleLink(i, {
22395
+ name: 'lists',
22396
+ kind: 'Link',
22397
+ fragment: select$1L()
22398
+ }, itemsSource, allSink, i - startOffset);
22399
+ if (reader.getIsDataMissing() === false) {
22400
+ itemsSink[i - startOffset] = allSink[i - startOffset];
22401
+ }
22402
+ reader.exitPath();
22403
+ }
22404
+ reader.exitPath();
22405
+ reader.assignNonScalar(sink, itemsProperty, itemsSink);
22406
+ }
22407
+ reader.enterPath('currentPageToken');
22408
+ reader.readScalar('currentPageToken', metadataProperties, sink);
22409
+ reader.exitPath();
22410
+ reader.enterPath('nextPageToken');
22411
+ reader.readScalar('nextPageToken', metadataProperties, sink);
22412
+ reader.exitPath();
22413
+ reader.enterPath('previousPageToken');
22414
+ reader.readScalar('previousPageToken', metadataProperties, sink);
22415
+ reader.exitPath();
22416
+ reader.enterPath('pageSize');
22417
+ reader.readScalar('pageSize', metadataProperties, sink);
22418
+ reader.exitPath();
22419
+ reader.enterPath('count');
22420
+ reader.readScalar('count', metadataProperties, sink);
22421
+ reader.exitPath();
22422
+ reader.enterPath('objectApiName');
22423
+ reader.readScalar('objectApiName', source, sink);
22424
+ reader.exitPath();
22425
+ reader.enterPath('queryString');
22426
+ reader.readScalar('queryString', source, sink);
22427
+ reader.exitPath();
22428
+ reader.enterPath('recentListsOnly');
22429
+ reader.readScalar('recentListsOnly', source, sink);
22430
+ reader.exitPath();
22431
+ return sink;
22432
+ },
22433
+ };
22434
+ };
22435
+ function getPageMetadata$2(paginationMetadata, paginationParams) {
22436
+ const metadataProperties = {};
22437
+ const sink = {
22438
+ metadataProperties
22439
+ };
22440
+ if (paginationMetadata === undefined) {
22441
+ return sink;
22442
+ }
22443
+ const { token, pageSize } = paginationParams;
22444
+ const pageTokenAndOffset = getPageTokenAndOffset$1(paginationMetadata, token);
22445
+ if (pageTokenAndOffset === undefined) {
22446
+ return sink;
22447
+ }
22448
+ const [pageToken, startOffset] = pageTokenAndOffset;
22449
+ const endOffset = pageEndOffset$1(paginationMetadata, startOffset, pageSize);
22450
+ sink.startOffset = startOffset;
22451
+ sink.endOffset = endOffset;
22452
+ metadataProperties.currentPageToken = pageToken;
22453
+ const nextToken = getNextPageToken$1(paginationMetadata, endOffset);
22454
+ if (nextToken !== undefined) {
22455
+ metadataProperties.nextPageToken = nextToken;
22456
+ }
22457
+ const previousToken = getPreviousPageToken(paginationMetadata, startOffset, pageSize);
22458
+ if (previousToken !== undefined) {
22459
+ metadataProperties.previousPageToken = previousToken;
22460
+ }
22461
+ metadataProperties.pageSize = pageSize;
22462
+ metadataProperties.count = endOffset - startOffset;
22463
+ return sink;
22464
+ }
22465
+ function equals$X(existing, incoming) {
22466
+ const existing_recentListsOnly = existing.recentListsOnly;
22467
+ const incoming_recentListsOnly = incoming.recentListsOnly;
22468
+ if (!(existing_recentListsOnly === incoming_recentListsOnly)) {
22469
+ return false;
22470
+ }
22471
+ const existing_count = existing.count;
22472
+ const incoming_count = incoming.count;
22473
+ if (!(existing_count === incoming_count)) {
22474
+ return false;
22475
+ }
22476
+ const existing_pageSize = existing.pageSize;
22477
+ const incoming_pageSize = incoming.pageSize;
22478
+ if (!(existing_pageSize === incoming_pageSize)) {
22479
+ return false;
22480
+ }
22481
+ const existing_currentPageToken = existing.currentPageToken;
22482
+ const incoming_currentPageToken = incoming.currentPageToken;
22483
+ if (!(existing_currentPageToken === incoming_currentPageToken)) {
22484
+ return false;
22485
+ }
22486
+ const existing_currentPageUrl = existing.currentPageUrl;
22487
+ const incoming_currentPageUrl = incoming.currentPageUrl;
22488
+ if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
22489
+ return false;
22490
+ }
22491
+ const existing_eTag = existing.eTag;
22492
+ const incoming_eTag = incoming.eTag;
22493
+ if (!(existing_eTag === incoming_eTag)) {
22494
+ return false;
22495
+ }
22496
+ const existing_objectApiName = existing.objectApiName;
22497
+ const incoming_objectApiName = incoming.objectApiName;
22498
+ if (!(existing_objectApiName === incoming_objectApiName)) {
22499
+ return false;
22500
+ }
22501
+ const existing_lists = existing.lists;
22502
+ const incoming_lists = incoming.lists;
22503
+ const equals_lists_items = equalsArray(existing_lists, incoming_lists, (existing_lists_item, incoming_lists_item) => {
22504
+ if (!(existing_lists_item.__ref === incoming_lists_item.__ref)) {
22505
+ return false;
22506
+ }
22507
+ });
22508
+ if (equals_lists_items === false) {
22509
+ return false;
22510
+ }
22511
+ const existing_nextPageToken = existing.nextPageToken;
22512
+ const incoming_nextPageToken = incoming.nextPageToken;
22513
+ if (!(existing_nextPageToken === incoming_nextPageToken)) {
22514
+ return false;
22515
+ }
22516
+ const existing_nextPageUrl = existing.nextPageUrl;
22517
+ const incoming_nextPageUrl = incoming.nextPageUrl;
22518
+ if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
22519
+ return false;
22520
+ }
22521
+ const existing_previousPageToken = existing.previousPageToken;
22522
+ const incoming_previousPageToken = incoming.previousPageToken;
22523
+ if (!(existing_previousPageToken === incoming_previousPageToken)) {
22524
+ return false;
22525
+ }
22526
+ const existing_previousPageUrl = existing.previousPageUrl;
22527
+ const incoming_previousPageUrl = incoming.previousPageUrl;
22528
+ if (!(existing_previousPageUrl === incoming_previousPageUrl)) {
22529
+ return false;
22530
+ }
22531
+ const existing_queryString = existing.queryString;
22532
+ const incoming_queryString = incoming.queryString;
22533
+ if (!(existing_queryString === incoming_queryString)) {
22534
+ return false;
22535
+ }
22536
+ return true;
22537
+ }
22538
+ const ingest$J$1 = function ListInfoSummaryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
22539
+ const key = keyBuilderFromType$y(luvio, input);
22540
+ const existingRecord = store.readEntry(key);
22541
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
22542
+ let incomingRecord = normalize$J(input, store.readEntry(key), {
22543
+ fullPath: key,
22544
+ parent: path.parent,
22545
+ propertyName: path.propertyName,
22546
+ ttl: ttlToUse
22547
+ }, luvio, store, timestamp);
22548
+ const paginationKey = key + '__pagination';
22549
+ const existingPaginationMetadata = store.readEntry(paginationKey);
22550
+ const { count: count, currentPageToken: token, nextPageToken: nextToken, pageSize: pageSize, previousPageToken: previousToken, lists: items } = input;
22551
+ const startOffset = existingPaginationMetadata === undefined ? 0 : offsetFromToken$1(existingPaginationMetadata, token);
22552
+ const incomingPaginationMetadata = {
22553
+ [token]: startOffset,
22554
+ };
22555
+ const nextOffset = startOffset + items.length;
22556
+ if (nextToken === null) {
22557
+ incomingPaginationMetadata.__END__ = nextOffset;
22558
+ }
22559
+ else {
22560
+ incomingPaginationMetadata[nextToken] = nextOffset;
22561
+ if (existingPaginationMetadata !== undefined) {
22562
+ const listEndOffset = existingPaginationMetadata.__END__;
22563
+ if (listEndOffset !== undefined && nextOffset >= listEndOffset) {
22564
+ incomingPaginationMetadata.__END__ = undefined;
22565
+ }
22566
+ }
22567
+ }
22568
+ if (previousToken !== null) {
22569
+ incomingPaginationMetadata[previousToken] = Math.max(startOffset - pageSize, 0);
22570
+ }
22571
+ const mergedPaginationMetadata = mergeMetadata$1(existingPaginationMetadata, incomingPaginationMetadata);
22572
+ if (existingPaginationMetadata === undefined ||
22573
+ equalsObject$1(existingPaginationMetadata, mergedPaginationMetadata, (existingProp, incomingProp) => {
22574
+ return existingProp === incomingProp;
22575
+ }) === false) {
22576
+ luvio.storePublish(paginationKey, mergedPaginationMetadata);
22577
+ luvio.publishStoreMetadata(paginationKey, paginationStoreMetadata$1);
22578
+ }
22579
+ assignMetadataLink$1(incomingRecord, paginationKey);
22580
+ if (existingRecord !== undefined && existingRecord.lists !== undefined) {
22581
+ incomingRecord.lists = [
22582
+ ...existingRecord.lists.slice(0, startOffset),
22583
+ ...incomingRecord.lists,
22584
+ ...existingRecord.lists.slice(nextOffset),
22585
+ ];
22586
+ }
22587
+ if (existingRecord === undefined || equals$X(existingRecord, incomingRecord) === false) {
22588
+ luvio.storePublish(key, incomingRecord);
22589
+ }
22590
+ if (ttlToUse !== undefined) {
22591
+ const storeMetadataParams = {
22592
+ ttl: ttlToUse,
22593
+ namespace: "UiApi",
22594
+ version: VERSION$15$1,
22595
+ representationName: RepresentationType$Q,
22596
+ ingestionTimestamp: timestamp,
22597
+ };
22598
+ luvio.publishStoreMetadata(key, storeMetadataParams);
22599
+ }
22600
+ return createLink$3(key);
22601
+ };
22602
+ function getTypeCacheKeys$Q$1(rootKeySet, luvio, input, fullPathFactory) {
22603
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
22604
+ const rootKey = keyBuilderFromType$y(luvio, input);
22605
+ rootKeySet.set(rootKey, {
22606
+ namespace: keyPrefix$2,
22607
+ representationName: RepresentationType$Q,
22608
+ mergeable: true
22609
+ });
22610
+ rootKeySet.set(rootKey + '__pagination', {
22611
+ namespace: keyPrefix$2,
22612
+ representationName: RepresentationType$Q,
22613
+ mergeable: true
22614
+ });
22615
+ const input_lists_length = input.lists.length;
22616
+ for (let i = 0; i < input_lists_length; i++) {
22617
+ getTypeCacheKeys$R$1(rootKeySet, luvio, input.lists[i]);
22618
+ }
22619
+ }
22620
+ const notifyUpdateAvailableFactory$3 = (luvio) => {
22621
+ return function notifyListInfoSummaryUpdateAvailable(configs) {
22622
+ const keys = configs.map(c => keyBuilder$1_(luvio, c));
22623
+ return luvio.notifyStoreUpdateAvailable(keys);
22624
+ };
22625
+ };
22626
+
22627
+ const LIST_RECORDS_PREFIX = keyPrefix$2 + '::' + RepresentationType$T;
22628
+ const LIST_SUMMARY_PREFIX = keyPrefix$2 + '::' + RepresentationType$Q;
22629
+ /**
22630
+ * Watch a Luvio instance for ListRecordCollection and ListInfoSummaryCollection cache entries.
22631
+ */
22632
+ let listRecordCollectionCache = new Map();
22633
+ let listSummaryCollectionCache = new Map();
22634
+ function getListRecordCollectionKeys(objectApiName, listViewApiName) {
22635
+ const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName) || new Map();
22636
+ const keys = cacheEntriesByObjectApiName.get(listViewApiName) || [];
22637
+ return [...keys];
22638
+ }
22639
+ function getListSummaryCollectionKeys(objectApiName, recentLists = undefined) {
22640
+ const cacheEntriesByObjectApiName = listSummaryCollectionCache.get(objectApiName) || new Map();
22641
+ const keys = cacheEntriesByObjectApiName.get(recentLists ? 'true' : 'false') || [];
22642
+ const allKeys = recentLists === undefined ? cacheEntriesByObjectApiName.get('true') || [] : [];
22643
+ return [...keys, ...allKeys];
22644
+ }
22645
+ function addListRecordCollectionKey(objectApiName, listViewApiName, key) {
22646
+ const cacheEntryByObjectName = listRecordCollectionCache.get(objectApiName) || new Map();
22647
+ if (!cacheEntryByObjectName.size) {
22648
+ listRecordCollectionCache.set(objectApiName, cacheEntryByObjectName);
22649
+ }
22650
+ const keys = cacheEntryByObjectName.get(listViewApiName) || new Set();
22651
+ if (!keys.size) {
22652
+ cacheEntryByObjectName.set(listViewApiName, keys);
22653
+ }
22654
+ keys.add(key);
22655
+ }
22656
+ function addListSummaryCollectionKey(objectApiName, recentLists, key) {
22657
+ const cacheEntryByObjectName = listSummaryCollectionCache.get(objectApiName) || new Map();
22658
+ if (!cacheEntryByObjectName.size) {
22659
+ listSummaryCollectionCache.set(objectApiName, cacheEntryByObjectName);
22660
+ }
22661
+ const keys = cacheEntryByObjectName.get(recentLists) || new Set();
22662
+ if (!keys.size) {
22663
+ cacheEntryByObjectName.set(recentLists, keys);
22664
+ }
22665
+ keys.add(key);
22666
+ }
22667
+ function removeListRecordCollectionKeys(objectApiName, listViewApiName) {
22668
+ const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName) || new Map();
22669
+ cacheEntriesByObjectApiName.delete(listViewApiName);
22670
+ }
22671
+ function removeListSummaryCollectionKeys(objectApiName, recentLists = undefined) {
22672
+ const cacheEntriesByObjectApiName = listSummaryCollectionCache.get(objectApiName) || new Map();
22673
+ cacheEntriesByObjectApiName.delete(recentLists ? 'true' : 'false');
22674
+ if (recentLists === undefined) {
22675
+ cacheEntriesByObjectApiName.delete('true');
22676
+ }
22677
+ }
22678
+ function splitListRecordCollectionKey(key) {
22679
+ const keyElements = key.split(':');
22680
+ return {
22681
+ objectApiName: keyElements[3],
22682
+ listViewApiName: keyElements[7],
22683
+ };
22684
+ }
22685
+ function splitListSummaryCollectionKey(key) {
22686
+ const keyElements = key.split(':');
22687
+ return {
22688
+ objectApiName: keyElements[3],
22689
+ recentLists: keyElements[5],
22690
+ };
22691
+ }
22692
+ function setupListRecordCollectionStoreWatcher(luvio) {
22693
+ luvio.storeWatch(LIST_RECORDS_PREFIX, (entries) => {
22694
+ for (let i = 0, len = entries.length; i < len; i++) {
22695
+ const entry = entries[i];
22696
+ if (entry.id.endsWith('__pagination')) {
22697
+ continue;
22698
+ }
22699
+ const { objectApiName, listViewApiName } = splitListRecordCollectionKey(entry.id);
22700
+ addListRecordCollectionKey(objectApiName, listViewApiName, entry.id);
22701
+ }
22702
+ });
22703
+ }
22704
+ function setupListSummaryCollectionStoreWatcher(luvio) {
22705
+ luvio.storeWatch(LIST_SUMMARY_PREFIX, (entries) => {
22706
+ for (let i = 0, len = entries.length; i < len; i++) {
22707
+ const entry = entries[i];
22708
+ if (entry.id.endsWith('__pagination')) {
22709
+ continue;
22710
+ }
22711
+ const { objectApiName, recentLists } = splitListSummaryCollectionKey(entry.id);
22712
+ addListSummaryCollectionKey(objectApiName, recentLists, entry.id);
22713
+ }
22714
+ });
22715
+ }
22716
+
22250
22717
  function buildListRefByIdContextKey(listViewId) {
22251
22718
  return `listReferenceById::${listViewId}`;
22252
22719
  }
@@ -22475,12 +22942,26 @@
22475
22942
  },
22476
22943
  };
22477
22944
  }
22945
+ function setupNotifyAllListRecordUpdateAvailable(luvio) {
22946
+ return (notifyInput) => {
22947
+ const keys = getListRecordCollectionKeys(notifyInput.objectApiName, notifyInput.listViewApiName);
22948
+ removeListRecordCollectionKeys(notifyInput.objectApiName, notifyInput.listViewApiName);
22949
+ return luvio.notifyStoreUpdateAvailable(keys);
22950
+ };
22951
+ }
22952
+ function setupNotifyAllListInfoSummaryUpdateAvailable(luvio) {
22953
+ return (notifyInput) => {
22954
+ const keys = getListSummaryCollectionKeys(notifyInput.objectApiName, notifyInput.recentLists);
22955
+ removeListSummaryCollectionKeys(notifyInput.objectApiName, notifyInput.recentLists);
22956
+ return luvio.notifyStoreUpdateAvailable(keys);
22957
+ };
22958
+ }
22478
22959
 
22479
22960
  let context$1;
22480
22961
  function setContext$1(adapterContext) {
22481
22962
  context$1 = adapterContext;
22482
22963
  }
22483
- function keyBuilder$1$(luvio, params) {
22964
+ function keyBuilder$1Z(luvio, params) {
22484
22965
  const query = {
22485
22966
  objectApiName: params.urlParams.objectApiName,
22486
22967
  listViewApiName: params.urlParams.listViewApiName,
@@ -22513,7 +22994,7 @@
22513
22994
  });
22514
22995
  }
22515
22996
 
22516
- function select$1L(luvio, params) {
22997
+ function select$1J(luvio, params) {
22517
22998
  const { fields = [], optionalFields = [] } = params.queryParams;
22518
22999
  return dynamicSelect$7({
22519
23000
  records: {
@@ -22530,7 +23011,7 @@
22530
23011
  }
22531
23012
  function ingestSuccess$P(luvio, resourceParams, response, snapshotRefresh) {
22532
23013
  const { body } = response;
22533
- const key = keyBuilder$1$(luvio, resourceParams);
23014
+ const key = keyBuilder$1Z(luvio, resourceParams);
22534
23015
  luvio.storeIngest(key, ingest$M$1, body);
22535
23016
  const optionalFields = resourceParams.queryParams.optionalFields;
22536
23017
  if (optionalFields && optionalFields.length > 0) {
@@ -22539,7 +23020,7 @@
22539
23020
  }
22540
23021
  const snapshot = luvio.storeLookup({
22541
23022
  recordId: key,
22542
- node: select$1L(luvio, resourceParams),
23023
+ node: select$1J(luvio, resourceParams),
22543
23024
  variables: {},
22544
23025
  }, snapshotRefresh);
22545
23026
  return snapshot;
@@ -22567,7 +23048,7 @@
22567
23048
  getTypeCacheKeys$T$1(storeKeyMap, luvio, response);
22568
23049
  }
22569
23050
  function ingestError$I(luvio, params, error, snapshotRefresh) {
22570
- const key = keyBuilder$1$(luvio, params);
23051
+ const key = keyBuilder$1Z(luvio, params);
22571
23052
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
22572
23053
  const storeMetadataParams = {
22573
23054
  ttl: TTL$x,
@@ -22645,24 +23126,24 @@
22645
23126
  return snapshot.state === 'Error';
22646
23127
  }
22647
23128
 
22648
- const VERSION$16$1 = "3529c5f7d0eb2206c90a52c6d9f721d4";
22649
- const RepresentationType$R = 'ListViewSummaryRepresentation';
22650
- function keyBuilder$1_(luvio, config) {
22651
- return keyPrefix$2 + '::' + RepresentationType$R + ':' + (config.id === null ? '' : config.id);
23129
+ const VERSION$14$1 = "3529c5f7d0eb2206c90a52c6d9f721d4";
23130
+ const RepresentationType$P = 'ListViewSummaryRepresentation';
23131
+ function keyBuilder$1Y(luvio, config) {
23132
+ return keyPrefix$2 + '::' + RepresentationType$P + ':' + (config.id === null ? '' : config.id);
22652
23133
  }
22653
- function keyBuilderFromType$z(luvio, object) {
23134
+ function keyBuilderFromType$x(luvio, object) {
22654
23135
  const keyParams = {
22655
23136
  id: object.id
22656
23137
  };
22657
- return keyBuilder$1_(luvio, keyParams);
23138
+ return keyBuilder$1Y(luvio, keyParams);
22658
23139
  }
22659
- function normalize$K(input, existing, path, luvio, store, timestamp) {
23140
+ function normalize$I(input, existing, path, luvio, store, timestamp) {
22660
23141
  return input;
22661
23142
  }
22662
- const select$1K = function ListViewSummaryRepresentationSelect() {
23143
+ const select$1I = function ListViewSummaryRepresentationSelect() {
22663
23144
  return {
22664
23145
  kind: 'Fragment',
22665
- version: VERSION$16$1,
23146
+ version: VERSION$14$1,
22666
23147
  private: [],
22667
23148
  selections: [
22668
23149
  {
@@ -22684,7 +23165,7 @@
22684
23165
  ]
22685
23166
  };
22686
23167
  };
22687
- function equals$Y(existing, incoming) {
23168
+ function equals$W(existing, incoming) {
22688
23169
  const existing_apiName = existing.apiName;
22689
23170
  const incoming_apiName = incoming.apiName;
22690
23171
  if (!(existing_apiName === incoming_apiName)) {
@@ -22707,42 +23188,42 @@
22707
23188
  }
22708
23189
  return true;
22709
23190
  }
22710
- const ingest$K$1 = function ListViewSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
22711
- const key = keyBuilderFromType$z(luvio, input);
23191
+ const ingest$I$1 = function ListViewSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
23192
+ const key = keyBuilderFromType$x(luvio, input);
22712
23193
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
22713
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$K, "UiApi", VERSION$16$1, RepresentationType$R, equals$Y);
23194
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$I, "UiApi", VERSION$14$1, RepresentationType$P, equals$W);
22714
23195
  return createLink$3(key);
22715
23196
  };
22716
- function getTypeCacheKeys$R$1(rootKeySet, luvio, input, fullPathFactory) {
23197
+ function getTypeCacheKeys$P$1(rootKeySet, luvio, input, fullPathFactory) {
22717
23198
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
22718
- const rootKey = keyBuilderFromType$z(luvio, input);
23199
+ const rootKey = keyBuilderFromType$x(luvio, input);
22719
23200
  rootKeySet.set(rootKey, {
22720
23201
  namespace: keyPrefix$2,
22721
- representationName: RepresentationType$R,
23202
+ representationName: RepresentationType$P,
22722
23203
  mergeable: false
22723
23204
  });
22724
23205
  }
22725
23206
 
22726
- const VERSION$15$1 = "f4c79fe066da3558499d5ee88c72abcd";
22727
- const RepresentationType$Q = 'ListViewSummaryCollectionRepresentation';
22728
- function keyBuilder$1Z(luvio, config) {
22729
- return keyPrefix$2 + '::' + RepresentationType$Q + ':' + config.objectApiName + ':' + (config.queryString === null ? '' : config.queryString) + ':' + config.recentListsOnly;
23207
+ const VERSION$13$1 = "f4c79fe066da3558499d5ee88c72abcd";
23208
+ const RepresentationType$O = 'ListViewSummaryCollectionRepresentation';
23209
+ function keyBuilder$1X(luvio, config) {
23210
+ return keyPrefix$2 + '::' + RepresentationType$O + ':' + config.objectApiName + ':' + (config.queryString === null ? '' : config.queryString) + ':' + config.recentListsOnly;
22730
23211
  }
22731
- function keyBuilderFromType$y(luvio, object) {
23212
+ function keyBuilderFromType$w(luvio, object) {
22732
23213
  const keyParams = {
22733
23214
  objectApiName: object.objectApiName,
22734
23215
  queryString: object.queryString,
22735
23216
  recentListsOnly: object.recentListsOnly
22736
23217
  };
22737
- return keyBuilder$1Z(luvio, keyParams);
23218
+ return keyBuilder$1X(luvio, keyParams);
22738
23219
  }
22739
- function normalize$J(input, existing, path, luvio, store, timestamp) {
23220
+ function normalize$H(input, existing, path, luvio, store, timestamp) {
22740
23221
  const input_lists = input.lists;
22741
23222
  const input_lists_id = path.fullPath + '__lists';
22742
23223
  for (let i = 0; i < input_lists.length; i++) {
22743
23224
  const input_lists_item = input_lists[i];
22744
23225
  let input_lists_item_id = input_lists_id + '__' + i;
22745
- input_lists[i] = ingest$K$1(input_lists_item, {
23226
+ input_lists[i] = ingest$I$1(input_lists_item, {
22746
23227
  fullPath: input_lists_item_id,
22747
23228
  propertyName: i,
22748
23229
  parent: {
@@ -22755,19 +23236,19 @@
22755
23236
  }
22756
23237
  return input;
22757
23238
  }
22758
- const select$1J = function ListViewSummaryCollectionRepresentationSelect(paginationParams) {
23239
+ const select$1H = function ListViewSummaryCollectionRepresentationSelect(paginationParams) {
22759
23240
  return {
22760
23241
  kind: 'Fragment',
22761
23242
  reader: true,
22762
23243
  synthetic: false,
22763
- version: VERSION$15$1,
23244
+ version: VERSION$13$1,
22764
23245
  read: (source, reader) => {
22765
23246
  const sink = {};
22766
23247
  if (paginationParams === undefined) {
22767
23248
  return sink;
22768
23249
  }
22769
23250
  const metadata = reader.resolveMetadata(source, PAGINATION_VERSION$1);
22770
- const currentPageMetadata = getPageMetadata$2(metadata, paginationParams);
23251
+ const currentPageMetadata = getPageMetadata$1(metadata, paginationParams);
22771
23252
  const { startOffset, endOffset, metadataProperties } = currentPageMetadata;
22772
23253
  if (metadata !== undefined && startOffset !== undefined && endOffset !== undefined) {
22773
23254
  const itemsProperty = 'lists';
@@ -22780,7 +23261,7 @@
22780
23261
  reader.readSingleLink(i, {
22781
23262
  name: 'lists',
22782
23263
  kind: 'Link',
22783
- fragment: select$1K()
23264
+ fragment: select$1I()
22784
23265
  }, itemsSource, allSink, i - startOffset);
22785
23266
  if (reader.getIsDataMissing() === false) {
22786
23267
  itemsSink[i - startOffset] = allSink[i - startOffset];
@@ -22818,7 +23299,7 @@
22818
23299
  },
22819
23300
  };
22820
23301
  };
22821
- function getPageMetadata$2(paginationMetadata, paginationParams) {
23302
+ function getPageMetadata$1(paginationMetadata, paginationParams) {
22822
23303
  const metadataProperties = {};
22823
23304
  const sink = {
22824
23305
  metadataProperties
@@ -22848,7 +23329,7 @@
22848
23329
  metadataProperties.count = endOffset - startOffset;
22849
23330
  return sink;
22850
23331
  }
22851
- function equals$X(existing, incoming) {
23332
+ function equals$V(existing, incoming) {
22852
23333
  const existing_recentListsOnly = existing.recentListsOnly;
22853
23334
  const incoming_recentListsOnly = incoming.recentListsOnly;
22854
23335
  if (!(existing_recentListsOnly === incoming_recentListsOnly)) {
@@ -22921,11 +23402,11 @@
22921
23402
  }
22922
23403
  return true;
22923
23404
  }
22924
- const ingest$J$1 = function ListViewSummaryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
22925
- const key = keyBuilderFromType$y(luvio, input);
23405
+ const ingest$H$1 = function ListViewSummaryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
23406
+ const key = keyBuilderFromType$w(luvio, input);
22926
23407
  const existingRecord = store.readEntry(key);
22927
23408
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
22928
- let incomingRecord = normalize$J(input, store.readEntry(key), {
23409
+ let incomingRecord = normalize$H(input, store.readEntry(key), {
22929
23410
  fullPath: key,
22930
23411
  parent: path.parent,
22931
23412
  propertyName: path.propertyName,
@@ -22970,42 +23451,42 @@
22970
23451
  ...existingRecord.lists.slice(nextOffset),
22971
23452
  ];
22972
23453
  }
22973
- if (existingRecord === undefined || equals$X(existingRecord, incomingRecord) === false) {
23454
+ if (existingRecord === undefined || equals$V(existingRecord, incomingRecord) === false) {
22974
23455
  luvio.storePublish(key, incomingRecord);
22975
23456
  }
22976
23457
  if (ttlToUse !== undefined) {
22977
23458
  const storeMetadataParams = {
22978
23459
  ttl: ttlToUse,
22979
23460
  namespace: "UiApi",
22980
- version: VERSION$15$1,
22981
- representationName: RepresentationType$Q,
23461
+ version: VERSION$13$1,
23462
+ representationName: RepresentationType$O,
22982
23463
  ingestionTimestamp: timestamp,
22983
23464
  };
22984
23465
  luvio.publishStoreMetadata(key, storeMetadataParams);
22985
23466
  }
22986
23467
  return createLink$3(key);
22987
23468
  };
22988
- function getTypeCacheKeys$Q$1(rootKeySet, luvio, input, fullPathFactory) {
23469
+ function getTypeCacheKeys$O$1(rootKeySet, luvio, input, fullPathFactory) {
22989
23470
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
22990
- const rootKey = keyBuilderFromType$y(luvio, input);
23471
+ const rootKey = keyBuilderFromType$w(luvio, input);
22991
23472
  rootKeySet.set(rootKey, {
22992
23473
  namespace: keyPrefix$2,
22993
- representationName: RepresentationType$Q,
23474
+ representationName: RepresentationType$O,
22994
23475
  mergeable: true
22995
23476
  });
22996
23477
  rootKeySet.set(rootKey + '__pagination', {
22997
23478
  namespace: keyPrefix$2,
22998
- representationName: RepresentationType$Q,
23479
+ representationName: RepresentationType$O,
22999
23480
  mergeable: true
23000
23481
  });
23001
23482
  const input_lists_length = input.lists.length;
23002
23483
  for (let i = 0; i < input_lists_length; i++) {
23003
- getTypeCacheKeys$R$1(rootKeySet, luvio, input.lists[i]);
23484
+ getTypeCacheKeys$P$1(rootKeySet, luvio, input.lists[i]);
23004
23485
  }
23005
23486
  }
23006
- const notifyUpdateAvailableFactory$3 = (luvio) => {
23487
+ const notifyUpdateAvailableFactory$2 = (luvio) => {
23007
23488
  return function notifyListViewSummaryUpdateAvailable(configs) {
23008
- const keys = configs.map(c => keyBuilder$1Z(luvio, c));
23489
+ const keys = configs.map(c => keyBuilder$1X(luvio, c));
23009
23490
  return luvio.notifyStoreUpdateAvailable(keys);
23010
23491
  };
23011
23492
  };
@@ -23017,34 +23498,34 @@
23017
23498
  pageSize: queryParams.pageSize === undefined ? 20 : queryParams.pageSize
23018
23499
  };
23019
23500
  }
23020
- function select$1I(luvio, params) {
23501
+ function select$1G(luvio, params) {
23021
23502
  const paginationParams = createPaginationParams$3(params);
23022
- return select$1J(paginationParams);
23503
+ return select$1H(paginationParams);
23023
23504
  }
23024
- function keyBuilder$1Y(luvio, params) {
23025
- return keyBuilder$1Z(luvio, {
23505
+ function keyBuilder$1W(luvio, params) {
23506
+ return keyBuilder$1X(luvio, {
23026
23507
  objectApiName: params.urlParams.objectApiName,
23027
23508
  queryString: params.queryParams.q || null,
23028
23509
  recentListsOnly: params.queryParams.recentListsOnly || false
23029
23510
  });
23030
23511
  }
23031
23512
  function getResponseCacheKeys$Z(storeKeyMap, luvio, resourceParams, response) {
23032
- getTypeCacheKeys$Q$1(storeKeyMap, luvio, response);
23513
+ getTypeCacheKeys$O$1(storeKeyMap, luvio, response);
23033
23514
  }
23034
23515
  function ingestSuccess$O(luvio, resourceParams, response, snapshotRefresh) {
23035
23516
  const { body } = response;
23036
- const key = keyBuilder$1Y(luvio, resourceParams);
23037
- luvio.storeIngest(key, ingest$J$1, body);
23517
+ const key = keyBuilder$1W(luvio, resourceParams);
23518
+ luvio.storeIngest(key, ingest$H$1, body);
23038
23519
  const snapshot = luvio.storeLookup({
23039
23520
  recordId: key,
23040
- node: select$1I(luvio, resourceParams),
23521
+ node: select$1G(luvio, resourceParams),
23041
23522
  variables: {},
23042
23523
  }, snapshotRefresh);
23043
23524
  deepFreeze(snapshot.data);
23044
23525
  return snapshot;
23045
23526
  }
23046
23527
  function ingestError$H(luvio, params, error, snapshotRefresh) {
23047
- const key = keyBuilder$1Y(luvio, params);
23528
+ const key = keyBuilder$1W(luvio, params);
23048
23529
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
23049
23530
  luvio.storeIngestError(key, errorSnapshot);
23050
23531
  return errorSnapshot;
@@ -23073,9 +23554,9 @@
23073
23554
  ];
23074
23555
  const getListViewSummaryCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$_$1, getListViewSummaryCollection_ConfigPropertyMetadata);
23075
23556
  const createResourceParams$Y = /*#__PURE__*/ createResourceParams$12(getListViewSummaryCollection_ConfigPropertyMetadata);
23076
- function keyBuilder$1X(luvio, config) {
23557
+ function keyBuilder$1V(luvio, config) {
23077
23558
  const resourceParams = createResourceParams$Y(config);
23078
- return keyBuilder$1Y(luvio, resourceParams);
23559
+ return keyBuilder$1W(luvio, resourceParams);
23079
23560
  }
23080
23561
  function typeCheckConfig$13(untrustedConfig) {
23081
23562
  const config = {};
@@ -23095,7 +23576,7 @@
23095
23576
  }
23096
23577
  function adapterFragment$G(luvio, config) {
23097
23578
  const resourceParams = createResourceParams$Y(config);
23098
- return select$1I(luvio, resourceParams);
23579
+ return select$1G(luvio, resourceParams);
23099
23580
  }
23100
23581
  function onFetchResponseSuccess$K(luvio, config, resourceParams, response) {
23101
23582
  const snapshot = ingestSuccess$O(luvio, resourceParams, response, {
@@ -23158,12 +23639,12 @@
23158
23639
  return items.length;
23159
23640
  }
23160
23641
  function getPaginationMetadata$3(luvio, resourceParams) {
23161
- const key = keyBuilder$1Y(luvio, resourceParams);
23642
+ const key = keyBuilder$1W(luvio, resourceParams);
23162
23643
  const selector = {
23163
23644
  recordId: key,
23164
23645
  node: {
23165
23646
  kind: 'Fragment',
23166
- version: VERSION$15$1,
23647
+ version: VERSION$13$1,
23167
23648
  private: [],
23168
23649
  selections: [
23169
23650
  {
@@ -23206,7 +23687,7 @@
23206
23687
  function buildCachedSnapshotCachePolicy$N(context, storeLookup) {
23207
23688
  const { luvio, config } = context;
23208
23689
  const selector = {
23209
- recordId: keyBuilder$1X(luvio, config),
23690
+ recordId: keyBuilder$1V(luvio, config),
23210
23691
  node: adapterFragment$G(luvio, config),
23211
23692
  variables: {},
23212
23693
  };
@@ -23236,7 +23717,7 @@
23236
23717
  pageSize: queryParams.pageSize === undefined ? 50 : queryParams.pageSize
23237
23718
  };
23238
23719
  }
23239
- function keyBuilder$1W(luvio, params) {
23720
+ function keyBuilder$1U(luvio, params) {
23240
23721
  return keyBuilder$20(luvio, {
23241
23722
  listViewApiName: null,
23242
23723
  objectApiName: params.urlParams.objectApiName,
@@ -23397,7 +23878,7 @@
23397
23878
  const listFields_ = fields || listFields(luvio, config, listInfo);
23398
23879
  const resourceParams = createResourceParams$X(config);
23399
23880
  const selector = {
23400
- recordId: keyBuilder$1W(luvio, resourceParams),
23881
+ recordId: keyBuilder$1U(luvio, resourceParams),
23401
23882
  node: buildListUiFragment$1(config, listFields_),
23402
23883
  variables: {},
23403
23884
  };
@@ -24058,24 +24539,24 @@
24058
24539
  };
24059
24540
 
24060
24541
  const TTL$w = 900000;
24061
- const VERSION$14$1 = "ec9370a0cd56f4769fe9ec5cd942ff30";
24062
- const RepresentationType$P = 'ObjectInfoRepresentation';
24063
- function keyBuilder$1V(luvio, config) {
24064
- return keyPrefix$2 + '::' + RepresentationType$P + ':' + config.apiName;
24542
+ const VERSION$12$1 = "ec9370a0cd56f4769fe9ec5cd942ff30";
24543
+ const RepresentationType$N = 'ObjectInfoRepresentation';
24544
+ function keyBuilder$1T(luvio, config) {
24545
+ return keyPrefix$2 + '::' + RepresentationType$N + ':' + config.apiName;
24065
24546
  }
24066
- function keyBuilderFromType$x(luvio, object) {
24547
+ function keyBuilderFromType$v(luvio, object) {
24067
24548
  const keyParams = {
24068
24549
  apiName: object.apiName
24069
24550
  };
24070
- return keyBuilder$1V(luvio, keyParams);
24551
+ return keyBuilder$1T(luvio, keyParams);
24071
24552
  }
24072
- function normalize$I(input, existing, path, luvio, store, timestamp) {
24553
+ function normalize$G(input, existing, path, luvio, store, timestamp) {
24073
24554
  return input;
24074
24555
  }
24075
- const select$1H = function ObjectInfoRepresentationSelect() {
24556
+ const select$1F = function ObjectInfoRepresentationSelect() {
24076
24557
  return {
24077
24558
  kind: 'Fragment',
24078
- version: VERSION$14$1,
24559
+ version: VERSION$12$1,
24079
24560
  private: [
24080
24561
  'eTag'
24081
24562
  ],
@@ -24177,59 +24658,59 @@
24177
24658
  ]
24178
24659
  };
24179
24660
  };
24180
- function equals$W(existing, incoming) {
24661
+ function equals$U(existing, incoming) {
24181
24662
  if (existing.eTag !== incoming.eTag) {
24182
24663
  return false;
24183
24664
  }
24184
24665
  return true;
24185
24666
  }
24186
- const ingest$I$1 = function ObjectInfoRepresentationIngest(input, path, luvio, store, timestamp) {
24187
- const key = keyBuilderFromType$x(luvio, input);
24667
+ const ingest$G$1 = function ObjectInfoRepresentationIngest(input, path, luvio, store, timestamp) {
24668
+ const key = keyBuilderFromType$v(luvio, input);
24188
24669
  const ttlToUse = TTL$w;
24189
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$I, "UiApi", VERSION$14$1, RepresentationType$P, equals$W);
24670
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$G, "UiApi", VERSION$12$1, RepresentationType$N, equals$U);
24190
24671
  return createLink$3(key);
24191
24672
  };
24192
- function getTypeCacheKeys$P$1(rootKeySet, luvio, input, fullPathFactory) {
24673
+ function getTypeCacheKeys$N$1(rootKeySet, luvio, input, fullPathFactory) {
24193
24674
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
24194
- const rootKey = keyBuilderFromType$x(luvio, input);
24675
+ const rootKey = keyBuilderFromType$v(luvio, input);
24195
24676
  rootKeySet.set(rootKey, {
24196
24677
  namespace: keyPrefix$2,
24197
- representationName: RepresentationType$P,
24678
+ representationName: RepresentationType$N,
24198
24679
  mergeable: false
24199
24680
  });
24200
24681
  }
24201
24682
 
24202
- function select$1G(luvio, params) {
24203
- return select$1H();
24683
+ function select$1E(luvio, params) {
24684
+ return select$1F();
24204
24685
  }
24205
- function keyBuilder$1U(luvio, params) {
24206
- return keyBuilder$1V(luvio, {
24686
+ function keyBuilder$1S(luvio, params) {
24687
+ return keyBuilder$1T(luvio, {
24207
24688
  apiName: params.urlParams.objectApiName
24208
24689
  });
24209
24690
  }
24210
24691
  function getResponseCacheKeys$Y(storeKeyMap, luvio, resourceParams, response) {
24211
- getTypeCacheKeys$P$1(storeKeyMap, luvio, response);
24692
+ getTypeCacheKeys$N$1(storeKeyMap, luvio, response);
24212
24693
  }
24213
24694
  function ingestSuccess$N(luvio, resourceParams, response, snapshotRefresh) {
24214
24695
  const { body } = response;
24215
- const key = keyBuilder$1U(luvio, resourceParams);
24216
- luvio.storeIngest(key, ingest$I$1, body);
24696
+ const key = keyBuilder$1S(luvio, resourceParams);
24697
+ luvio.storeIngest(key, ingest$G$1, body);
24217
24698
  const snapshot = luvio.storeLookup({
24218
24699
  recordId: key,
24219
- node: select$1G(),
24700
+ node: select$1E(),
24220
24701
  variables: {},
24221
24702
  }, snapshotRefresh);
24222
24703
  deepFreeze(snapshot.data);
24223
24704
  return snapshot;
24224
24705
  }
24225
24706
  function ingestError$G(luvio, params, error, snapshotRefresh) {
24226
- const key = keyBuilder$1U(luvio, params);
24707
+ const key = keyBuilder$1S(luvio, params);
24227
24708
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
24228
24709
  const storeMetadataParams = {
24229
24710
  ttl: TTL$w,
24230
24711
  namespace: keyPrefix$2,
24231
- version: VERSION$14$1,
24232
- representationName: RepresentationType$P
24712
+ version: VERSION$12$1,
24713
+ representationName: RepresentationType$N
24233
24714
  };
24234
24715
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
24235
24716
  return errorSnapshot;
@@ -24254,9 +24735,9 @@
24254
24735
  ];
24255
24736
  const getObjectInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$Y, getObjectInfo_ConfigPropertyMetadata);
24256
24737
  const createResourceParams$W = /*#__PURE__*/ createResourceParams$12(getObjectInfo_ConfigPropertyMetadata);
24257
- function keyBuilder$1T(luvio, config) {
24738
+ function keyBuilder$1R(luvio, config) {
24258
24739
  const resourceParams = createResourceParams$W(config);
24259
- return keyBuilder$1U(luvio, resourceParams);
24740
+ return keyBuilder$1S(luvio, resourceParams);
24260
24741
  }
24261
24742
  function typeCheckConfig$11(untrustedConfig) {
24262
24743
  const config = {};
@@ -24276,7 +24757,7 @@
24276
24757
  }
24277
24758
  function adapterFragment$F(luvio, config) {
24278
24759
  createResourceParams$W(config);
24279
- return select$1G();
24760
+ return select$1E();
24280
24761
  }
24281
24762
  function onFetchResponseSuccess$J(luvio, config, resourceParams, response) {
24282
24763
  const snapshot = ingestSuccess$N(luvio, resourceParams, response, {
@@ -24312,7 +24793,7 @@
24312
24793
  function buildCachedSnapshotCachePolicy$M(context, storeLookup) {
24313
24794
  const { luvio, config } = context;
24314
24795
  const selector = {
24315
- recordId: keyBuilder$1T(luvio, config),
24796
+ recordId: keyBuilder$1R(luvio, config),
24316
24797
  node: adapterFragment$F(luvio, config),
24317
24798
  variables: {},
24318
24799
  };
@@ -24343,27 +24824,27 @@
24343
24824
  })(DiscriminatorValues$5$1 || (DiscriminatorValues$5$1 = {}));
24344
24825
 
24345
24826
  const TTL$v = 900000;
24346
- const VERSION$13$1 = "fb515e25a89ca1ec154dc865e72b913a";
24347
- const RepresentationType$O = 'RecordLayoutRepresentation';
24348
- function keyBuilder$1S(luvio, config) {
24349
- return keyPrefix$2 + '::' + RepresentationType$O + ':' + (config.recordTypeId === null ? '' : config.recordTypeId) + ':' + (config.objectApiName === null ? '' : config.objectApiName) + ':' + config.layoutType + ':' + config.mode;
24827
+ const VERSION$11$1 = "fb515e25a89ca1ec154dc865e72b913a";
24828
+ const RepresentationType$M = 'RecordLayoutRepresentation';
24829
+ function keyBuilder$1Q(luvio, config) {
24830
+ return keyPrefix$2 + '::' + RepresentationType$M + ':' + (config.recordTypeId === null ? '' : config.recordTypeId) + ':' + (config.objectApiName === null ? '' : config.objectApiName) + ':' + config.layoutType + ':' + config.mode;
24350
24831
  }
24351
- function keyBuilderFromType$w(luvio, object) {
24832
+ function keyBuilderFromType$u(luvio, object) {
24352
24833
  const keyParams = {
24353
24834
  recordTypeId: object.recordTypeId,
24354
24835
  objectApiName: object.objectApiName,
24355
24836
  layoutType: object.layoutType,
24356
24837
  mode: object.mode
24357
24838
  };
24358
- return keyBuilder$1S(luvio, keyParams);
24839
+ return keyBuilder$1Q(luvio, keyParams);
24359
24840
  }
24360
- function normalize$H(input, existing, path, luvio, store, timestamp) {
24841
+ function normalize$F(input, existing, path, luvio, store, timestamp) {
24361
24842
  return input;
24362
24843
  }
24363
- const select$1F = function RecordLayoutRepresentationSelect() {
24844
+ const select$1D = function RecordLayoutRepresentationSelect() {
24364
24845
  return {
24365
24846
  kind: 'Fragment',
24366
- version: VERSION$13$1,
24847
+ version: VERSION$11$1,
24367
24848
  private: [
24368
24849
  'eTag'
24369
24850
  ],
@@ -24401,24 +24882,24 @@
24401
24882
  ]
24402
24883
  };
24403
24884
  };
24404
- function equals$V(existing, incoming) {
24885
+ function equals$T(existing, incoming) {
24405
24886
  if (existing.eTag !== incoming.eTag) {
24406
24887
  return false;
24407
24888
  }
24408
24889
  return true;
24409
24890
  }
24410
- const ingest$H$1 = function RecordLayoutRepresentationIngest(input, path, luvio, store, timestamp) {
24411
- const key = keyBuilderFromType$w(luvio, input);
24891
+ const ingest$F$1 = function RecordLayoutRepresentationIngest(input, path, luvio, store, timestamp) {
24892
+ const key = keyBuilderFromType$u(luvio, input);
24412
24893
  const ttlToUse = TTL$v;
24413
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$H, "UiApi", VERSION$13$1, RepresentationType$O, equals$V);
24894
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$F, "UiApi", VERSION$11$1, RepresentationType$M, equals$T);
24414
24895
  return createLink$3(key);
24415
24896
  };
24416
- function getTypeCacheKeys$O$1(rootKeySet, luvio, input, fullPathFactory) {
24897
+ function getTypeCacheKeys$M$1(rootKeySet, luvio, input, fullPathFactory) {
24417
24898
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
24418
- const rootKey = keyBuilderFromType$w(luvio, input);
24899
+ const rootKey = keyBuilderFromType$u(luvio, input);
24419
24900
  rootKeySet.set(rootKey, {
24420
24901
  namespace: keyPrefix$2,
24421
- representationName: RepresentationType$O,
24902
+ representationName: RepresentationType$M,
24422
24903
  mergeable: false
24423
24904
  });
24424
24905
  }
@@ -24446,27 +24927,27 @@
24446
24927
  }
24447
24928
 
24448
24929
  const TTL$u = 900000;
24449
- const VERSION$12$1 = "4ba42e1fa0fb00cf78fce86082da41c9";
24450
- const RepresentationType$N = 'RecordLayoutUserStateRepresentation';
24451
- function keyBuilder$1R(luvio, config) {
24452
- return keyPrefix$2 + '::' + RepresentationType$N + ':' + config.recordTypeId + ':' + config.apiName + ':' + config.layoutType + ':' + config.mode;
24930
+ const VERSION$10$1 = "4ba42e1fa0fb00cf78fce86082da41c9";
24931
+ const RepresentationType$L = 'RecordLayoutUserStateRepresentation';
24932
+ function keyBuilder$1P(luvio, config) {
24933
+ return keyPrefix$2 + '::' + RepresentationType$L + ':' + config.recordTypeId + ':' + config.apiName + ':' + config.layoutType + ':' + config.mode;
24453
24934
  }
24454
- function keyBuilderFromType$v(luvio, object) {
24935
+ function keyBuilderFromType$t(luvio, object) {
24455
24936
  const keyParams = {
24456
24937
  recordTypeId: object.recordTypeId,
24457
24938
  apiName: object.apiName,
24458
24939
  layoutType: object.layoutType,
24459
24940
  mode: object.mode
24460
24941
  };
24461
- return keyBuilder$1R(luvio, keyParams);
24942
+ return keyBuilder$1P(luvio, keyParams);
24462
24943
  }
24463
- function normalize$G(input, existing, path, luvio, store, timestamp) {
24944
+ function normalize$E(input, existing, path, luvio, store, timestamp) {
24464
24945
  return input;
24465
24946
  }
24466
- const select$1E = function RecordLayoutUserStateRepresentationSelect() {
24947
+ const select$1C = function RecordLayoutUserStateRepresentationSelect() {
24467
24948
  return {
24468
24949
  kind: 'Fragment',
24469
- version: VERSION$12$1,
24950
+ version: VERSION$10$1,
24470
24951
  private: [
24471
24952
  'apiName',
24472
24953
  'recordTypeId',
@@ -24486,32 +24967,32 @@
24486
24967
  ]
24487
24968
  };
24488
24969
  };
24489
- function equals$U(existing, incoming) {
24970
+ function equals$S(existing, incoming) {
24490
24971
  if (JSONStringify$2(incoming) !== JSONStringify$2(existing)) {
24491
24972
  return false;
24492
24973
  }
24493
24974
  return true;
24494
24975
  }
24495
- const ingest$G$1 = function RecordLayoutUserStateRepresentationIngest(input, path, luvio, store, timestamp) {
24496
- const key = keyBuilderFromType$v(luvio, input);
24976
+ const ingest$E$1 = function RecordLayoutUserStateRepresentationIngest(input, path, luvio, store, timestamp) {
24977
+ const key = keyBuilderFromType$t(luvio, input);
24497
24978
  const ttlToUse = TTL$u;
24498
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$G, "UiApi", VERSION$12$1, RepresentationType$N, equals$U);
24979
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$E, "UiApi", VERSION$10$1, RepresentationType$L, equals$S);
24499
24980
  return createLink$3(key);
24500
24981
  };
24501
- function getTypeCacheKeys$N$1(rootKeySet, luvio, input, fullPathFactory) {
24982
+ function getTypeCacheKeys$L$1(rootKeySet, luvio, input, fullPathFactory) {
24502
24983
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
24503
- const rootKey = keyBuilderFromType$v(luvio, input);
24984
+ const rootKey = keyBuilderFromType$t(luvio, input);
24504
24985
  rootKeySet.set(rootKey, {
24505
24986
  namespace: keyPrefix$2,
24506
- representationName: RepresentationType$N,
24987
+ representationName: RepresentationType$L,
24507
24988
  mergeable: false
24508
24989
  });
24509
24990
  }
24510
24991
 
24511
24992
  const TTL$t = 900000;
24512
- const VERSION$11$1 = "49cdd4bc235a6094c3559cc7735b3b6d";
24513
- const RepresentationType$M = 'RecordUiRepresentation';
24514
- function normalize$F(input, existing, path, luvio, store, timestamp) {
24993
+ const VERSION$$$1 = "49cdd4bc235a6094c3559cc7735b3b6d";
24994
+ const RepresentationType$K = 'RecordUiRepresentation';
24995
+ function normalize$D(input, existing, path, luvio, store, timestamp) {
24515
24996
  const input_layoutUserStates = input.layoutUserStates;
24516
24997
  const input_layoutUserStates_id = path.fullPath + '__layoutUserStates';
24517
24998
  const input_layoutUserStates_keys = Object.keys(input_layoutUserStates);
@@ -24520,7 +25001,7 @@
24520
25001
  const key = input_layoutUserStates_keys[i];
24521
25002
  const input_layoutUserStates_prop = input_layoutUserStates[key];
24522
25003
  const input_layoutUserStates_prop_id = input_layoutUserStates_id + '__' + key;
24523
- input_layoutUserStates[key] = ingest$G$1(input_layoutUserStates_prop, {
25004
+ input_layoutUserStates[key] = ingest$E$1(input_layoutUserStates_prop, {
24524
25005
  fullPath: input_layoutUserStates_prop_id,
24525
25006
  propertyName: key,
24526
25007
  parent: {
@@ -24557,7 +25038,7 @@
24557
25038
  const key = input_layouts_prop_prop_prop_keys[i];
24558
25039
  const input_layouts_prop_prop_prop_prop = input_layouts_prop_prop_prop[key];
24559
25040
  const input_layouts_prop_prop_prop_prop_id = input_layouts_prop_prop_prop_id + '__' + key;
24560
- input_layouts_prop_prop_prop[key] = ingest$H$1(input_layouts_prop_prop_prop_prop, {
25041
+ input_layouts_prop_prop_prop[key] = ingest$F$1(input_layouts_prop_prop_prop_prop, {
24561
25042
  fullPath: input_layouts_prop_prop_prop_prop_id,
24562
25043
  propertyName: key,
24563
25044
  parent: {
@@ -24579,7 +25060,7 @@
24579
25060
  const key = input_objectInfos_keys[i];
24580
25061
  const input_objectInfos_prop = input_objectInfos[key];
24581
25062
  const input_objectInfos_prop_id = input_objectInfos_id + '__' + key;
24582
- input_objectInfos[key] = ingest$I$1(input_objectInfos_prop, {
25063
+ input_objectInfos[key] = ingest$G$1(input_objectInfos_prop, {
24583
25064
  fullPath: input_objectInfos_prop_id,
24584
25065
  propertyName: key,
24585
25066
  parent: {
@@ -24611,7 +25092,7 @@
24611
25092
  }
24612
25093
  return input;
24613
25094
  }
24614
- function equals$T(existing, incoming) {
25095
+ function equals$R(existing, incoming) {
24615
25096
  const existing_eTag = existing.eTag;
24616
25097
  const incoming_eTag = incoming.eTag;
24617
25098
  if (!(existing_eTag === incoming_eTag)) {
@@ -24674,10 +25155,10 @@
24674
25155
  }
24675
25156
  return true;
24676
25157
  }
24677
- const ingest$F$1 = function RecordUiRepresentationIngest(input, path, luvio, store, timestamp) {
25158
+ const ingest$D$1 = function RecordUiRepresentationIngest(input, path, luvio, store, timestamp) {
24678
25159
  const key = path.fullPath;
24679
25160
  const ttlToUse = TTL$t;
24680
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$F, "UiApi", VERSION$11$1, RepresentationType$M, equals$T);
25161
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$D, "UiApi", VERSION$$$1, RepresentationType$K, equals$R);
24681
25162
  return createLink$3(key);
24682
25163
  };
24683
25164
 
@@ -24722,9 +25203,9 @@
24722
25203
  return config;
24723
25204
  }
24724
25205
 
24725
- const layoutSelections$2 = select$1F();
24726
- const objectInfoPathSelection = select$1H();
24727
- const layoutUserStatePathSelector = select$1E();
25206
+ const layoutSelections$2 = select$1D();
25207
+ const objectInfoPathSelection = select$1F();
25208
+ const layoutUserStatePathSelector = select$1C();
24728
25209
  function buildRecordUiSelector(recordDefs, layoutTypes, modes, recordOptionalFields) {
24729
25210
  const layoutTypeSelections = [];
24730
25211
  for (let i = 0, len = layoutTypes.length; i < len; i += 1) {
@@ -24772,7 +25253,7 @@
24772
25253
  return {
24773
25254
  kind: 'Fragment',
24774
25255
  private: ['eTag'],
24775
- version: VERSION$11$1,
25256
+ version: VERSION$$$1,
24776
25257
  selections: [
24777
25258
  {
24778
25259
  kind: 'Link',
@@ -24974,7 +25455,7 @@
24974
25455
  }
24975
25456
  return recordDefs;
24976
25457
  }
24977
- function keyBuilder$1Q(recordIds, layoutTypes, modes, optionalFields) {
25458
+ function keyBuilder$1O(recordIds, layoutTypes, modes, optionalFields) {
24978
25459
  const joinedRecordIds = recordIds.sort().join(',');
24979
25460
  const joinedOptionalFields = optionalFields.sort().join(',');
24980
25461
  const joinedLayoutTypes = layoutTypes.sort().join(',');
@@ -25008,7 +25489,7 @@
25008
25489
  }
25009
25490
  function prepareRequest$5(luvio, config) {
25010
25491
  const { recordIds, layoutTypes, modes, optionalFields } = config;
25011
- const key = keyBuilder$1Q(recordIds, layoutTypes, modes, optionalFields);
25492
+ const key = keyBuilder$1O(recordIds, layoutTypes, modes, optionalFields);
25012
25493
  const selectorKey = buildCachedSelectorKey(key);
25013
25494
  const resourceRequest = createResourceRequest$$({
25014
25495
  urlParams: {
@@ -25050,7 +25531,7 @@
25050
25531
  node: selPath,
25051
25532
  variables: {},
25052
25533
  };
25053
- luvio.storeIngest(key, ingest$F$1, responseBody);
25534
+ luvio.storeIngest(key, ingest$D$1, responseBody);
25054
25535
  const snapshot = luvio.storeLookup(sel, buildSnapshotRefresh$4(luvio, config));
25055
25536
  if (snapshot.state === 'Error') {
25056
25537
  return new StoreKeyMap();
@@ -25095,7 +25576,7 @@
25095
25576
  variables: {},
25096
25577
  };
25097
25578
  luvio.storePublish(selectorKey, sel);
25098
- luvio.storeIngest(key, ingest$F$1, responseBody);
25579
+ luvio.storeIngest(key, ingest$D$1, responseBody);
25099
25580
  // During ingestion, only valid records are stored.
25100
25581
  const recordNodes = [];
25101
25582
  const validRecordIds = [];
@@ -25172,7 +25653,7 @@
25172
25653
  function buildCachedSelectorSnapshot(context, storeLookup) {
25173
25654
  const { config } = context;
25174
25655
  const { recordIds, layoutTypes, modes, optionalFields } = config;
25175
- const key = keyBuilder$1Q(recordIds, layoutTypes, modes, optionalFields);
25656
+ const key = keyBuilder$1O(recordIds, layoutTypes, modes, optionalFields);
25176
25657
  const cachedSelectorKey = buildCachedSelectorKey(key);
25177
25658
  return storeLookup({
25178
25659
  recordId: cachedSelectorKey,
@@ -25252,7 +25733,7 @@
25252
25733
  })(LayoutMode$2 || (LayoutMode$2 = {}));
25253
25734
 
25254
25735
  const DEFAULT_MODE = LayoutMode$2.View;
25255
- const layoutSelections$1 = select$1F();
25736
+ const layoutSelections$1 = select$1D();
25256
25737
  function buildSnapshotRefresh$3(luvio, config) {
25257
25738
  return {
25258
25739
  config,
@@ -25260,7 +25741,7 @@
25260
25741
  };
25261
25742
  }
25262
25743
  function buildObjectInfoSelectorKey(luvio, objectInfo) {
25263
- const key = keyBuilderFromType$x(luvio, objectInfo);
25744
+ const key = keyBuilderFromType$v(luvio, objectInfo);
25264
25745
  return `${key}__implicit__fields__selector`;
25265
25746
  }
25266
25747
  function refresh$1(luvio, config) {
@@ -25482,7 +25963,7 @@
25482
25963
  };
25483
25964
  const buildLayoutModeCacheSnapshot = (apiName, recordTypeId, layoutType, mode) => (context, storeLookup) => {
25484
25965
  const { luvio } = context;
25485
- const key = keyBuilder$1S(luvio, {
25966
+ const key = keyBuilder$1Q(luvio, {
25486
25967
  objectApiName: apiName,
25487
25968
  recordTypeId,
25488
25969
  layoutType,
@@ -25791,371 +26272,6 @@
25791
26272
  }, { contextId: contextId$4 });
25792
26273
  };
25793
26274
 
25794
- const VERSION$10$1 = "0b29241fd9ed04bb61fde26b3f558ac4";
25795
- const RepresentationType$L = 'ListInfoSummaryRepresentation';
25796
- function keyBuilder$1P(luvio, config) {
25797
- return keyPrefix$2 + '::' + RepresentationType$L + ':' + (config.id === null ? '' : config.id);
25798
- }
25799
- function keyBuilderFromType$u(luvio, object) {
25800
- const keyParams = {
25801
- id: object.id
25802
- };
25803
- return keyBuilder$1P(luvio, keyParams);
25804
- }
25805
- function normalize$E(input, existing, path, luvio, store, timestamp) {
25806
- return input;
25807
- }
25808
- const select$1D = function ListInfoSummaryRepresentationSelect() {
25809
- return {
25810
- kind: 'Fragment',
25811
- version: VERSION$10$1,
25812
- private: [],
25813
- selections: [
25814
- {
25815
- name: 'apiName',
25816
- kind: 'Scalar'
25817
- },
25818
- {
25819
- name: 'id',
25820
- kind: 'Scalar'
25821
- },
25822
- {
25823
- name: 'label',
25824
- kind: 'Scalar'
25825
- },
25826
- {
25827
- name: 'url',
25828
- kind: 'Scalar'
25829
- }
25830
- ]
25831
- };
25832
- };
25833
- function equals$S(existing, incoming) {
25834
- const existing_apiName = existing.apiName;
25835
- const incoming_apiName = incoming.apiName;
25836
- if (!(existing_apiName === incoming_apiName)) {
25837
- return false;
25838
- }
25839
- const existing_label = existing.label;
25840
- const incoming_label = incoming.label;
25841
- if (!(existing_label === incoming_label)) {
25842
- return false;
25843
- }
25844
- const existing_url = existing.url;
25845
- const incoming_url = incoming.url;
25846
- if (!(existing_url === incoming_url)) {
25847
- return false;
25848
- }
25849
- const existing_id = existing.id;
25850
- const incoming_id = incoming.id;
25851
- if (!(existing_id === incoming_id)) {
25852
- return false;
25853
- }
25854
- return true;
25855
- }
25856
- const ingest$E$1 = function ListInfoSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
25857
- const key = keyBuilderFromType$u(luvio, input);
25858
- const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
25859
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$E, "UiApi", VERSION$10$1, RepresentationType$L, equals$S);
25860
- return createLink$3(key);
25861
- };
25862
- function getTypeCacheKeys$M$1(rootKeySet, luvio, input, fullPathFactory) {
25863
- // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
25864
- const rootKey = keyBuilderFromType$u(luvio, input);
25865
- rootKeySet.set(rootKey, {
25866
- namespace: keyPrefix$2,
25867
- representationName: RepresentationType$L,
25868
- mergeable: false
25869
- });
25870
- }
25871
-
25872
- const VERSION$$$1 = "d0cadb0927f908b5b64694e1cff0b2d7";
25873
- const RepresentationType$K = 'ListInfoSummaryCollectionRepresentation';
25874
- function keyBuilder$1O(luvio, config) {
25875
- return keyPrefix$2 + '::' + RepresentationType$K + ':' + config.objectApiName + ':' + (config.queryString === null ? '' : config.queryString) + ':' + config.recentListsOnly;
25876
- }
25877
- function keyBuilderFromType$t(luvio, object) {
25878
- const keyParams = {
25879
- objectApiName: object.objectApiName,
25880
- queryString: object.queryString,
25881
- recentListsOnly: object.recentListsOnly
25882
- };
25883
- return keyBuilder$1O(luvio, keyParams);
25884
- }
25885
- function normalize$D(input, existing, path, luvio, store, timestamp) {
25886
- const input_lists = input.lists;
25887
- const input_lists_id = path.fullPath + '__lists';
25888
- for (let i = 0; i < input_lists.length; i++) {
25889
- const input_lists_item = input_lists[i];
25890
- let input_lists_item_id = input_lists_id + '__' + i;
25891
- input_lists[i] = ingest$E$1(input_lists_item, {
25892
- fullPath: input_lists_item_id,
25893
- propertyName: i,
25894
- parent: {
25895
- data: input,
25896
- key: path.fullPath,
25897
- existing: existing,
25898
- },
25899
- ttl: path.ttl
25900
- }, luvio, store, timestamp);
25901
- }
25902
- return input;
25903
- }
25904
- const select$1C = function ListInfoSummaryCollectionRepresentationSelect(paginationParams) {
25905
- return {
25906
- kind: 'Fragment',
25907
- reader: true,
25908
- synthetic: false,
25909
- version: VERSION$$$1,
25910
- read: (source, reader) => {
25911
- const sink = {};
25912
- if (paginationParams === undefined) {
25913
- return sink;
25914
- }
25915
- const metadata = reader.resolveMetadata(source, PAGINATION_VERSION$1);
25916
- const currentPageMetadata = getPageMetadata$1(metadata, paginationParams);
25917
- const { startOffset, endOffset, metadataProperties } = currentPageMetadata;
25918
- if (metadata !== undefined && startOffset !== undefined && endOffset !== undefined) {
25919
- const itemsProperty = 'lists';
25920
- reader.enterPath(itemsProperty);
25921
- const itemsSource = source[itemsProperty];
25922
- const itemsSink = [];
25923
- const allSink = [];
25924
- for (let i = startOffset; i < endOffset; i++) {
25925
- reader.enterPath(i);
25926
- reader.readSingleLink(i, {
25927
- name: 'lists',
25928
- kind: 'Link',
25929
- fragment: select$1D()
25930
- }, itemsSource, allSink, i - startOffset);
25931
- if (reader.getIsDataMissing() === false) {
25932
- itemsSink[i - startOffset] = allSink[i - startOffset];
25933
- }
25934
- reader.exitPath();
25935
- }
25936
- reader.exitPath();
25937
- reader.assignNonScalar(sink, itemsProperty, itemsSink);
25938
- }
25939
- reader.enterPath('currentPageToken');
25940
- reader.readScalar('currentPageToken', metadataProperties, sink);
25941
- reader.exitPath();
25942
- reader.enterPath('nextPageToken');
25943
- reader.readScalar('nextPageToken', metadataProperties, sink);
25944
- reader.exitPath();
25945
- reader.enterPath('previousPageToken');
25946
- reader.readScalar('previousPageToken', metadataProperties, sink);
25947
- reader.exitPath();
25948
- reader.enterPath('pageSize');
25949
- reader.readScalar('pageSize', metadataProperties, sink);
25950
- reader.exitPath();
25951
- reader.enterPath('count');
25952
- reader.readScalar('count', metadataProperties, sink);
25953
- reader.exitPath();
25954
- reader.enterPath('objectApiName');
25955
- reader.readScalar('objectApiName', source, sink);
25956
- reader.exitPath();
25957
- reader.enterPath('queryString');
25958
- reader.readScalar('queryString', source, sink);
25959
- reader.exitPath();
25960
- reader.enterPath('recentListsOnly');
25961
- reader.readScalar('recentListsOnly', source, sink);
25962
- reader.exitPath();
25963
- return sink;
25964
- },
25965
- };
25966
- };
25967
- function getPageMetadata$1(paginationMetadata, paginationParams) {
25968
- const metadataProperties = {};
25969
- const sink = {
25970
- metadataProperties
25971
- };
25972
- if (paginationMetadata === undefined) {
25973
- return sink;
25974
- }
25975
- const { token, pageSize } = paginationParams;
25976
- const pageTokenAndOffset = getPageTokenAndOffset$1(paginationMetadata, token);
25977
- if (pageTokenAndOffset === undefined) {
25978
- return sink;
25979
- }
25980
- const [pageToken, startOffset] = pageTokenAndOffset;
25981
- const endOffset = pageEndOffset$1(paginationMetadata, startOffset, pageSize);
25982
- sink.startOffset = startOffset;
25983
- sink.endOffset = endOffset;
25984
- metadataProperties.currentPageToken = pageToken;
25985
- const nextToken = getNextPageToken$1(paginationMetadata, endOffset);
25986
- if (nextToken !== undefined) {
25987
- metadataProperties.nextPageToken = nextToken;
25988
- }
25989
- const previousToken = getPreviousPageToken(paginationMetadata, startOffset, pageSize);
25990
- if (previousToken !== undefined) {
25991
- metadataProperties.previousPageToken = previousToken;
25992
- }
25993
- metadataProperties.pageSize = pageSize;
25994
- metadataProperties.count = endOffset - startOffset;
25995
- return sink;
25996
- }
25997
- function equals$R(existing, incoming) {
25998
- const existing_recentListsOnly = existing.recentListsOnly;
25999
- const incoming_recentListsOnly = incoming.recentListsOnly;
26000
- if (!(existing_recentListsOnly === incoming_recentListsOnly)) {
26001
- return false;
26002
- }
26003
- const existing_count = existing.count;
26004
- const incoming_count = incoming.count;
26005
- if (!(existing_count === incoming_count)) {
26006
- return false;
26007
- }
26008
- const existing_pageSize = existing.pageSize;
26009
- const incoming_pageSize = incoming.pageSize;
26010
- if (!(existing_pageSize === incoming_pageSize)) {
26011
- return false;
26012
- }
26013
- const existing_currentPageToken = existing.currentPageToken;
26014
- const incoming_currentPageToken = incoming.currentPageToken;
26015
- if (!(existing_currentPageToken === incoming_currentPageToken)) {
26016
- return false;
26017
- }
26018
- const existing_currentPageUrl = existing.currentPageUrl;
26019
- const incoming_currentPageUrl = incoming.currentPageUrl;
26020
- if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
26021
- return false;
26022
- }
26023
- const existing_eTag = existing.eTag;
26024
- const incoming_eTag = incoming.eTag;
26025
- if (!(existing_eTag === incoming_eTag)) {
26026
- return false;
26027
- }
26028
- const existing_objectApiName = existing.objectApiName;
26029
- const incoming_objectApiName = incoming.objectApiName;
26030
- if (!(existing_objectApiName === incoming_objectApiName)) {
26031
- return false;
26032
- }
26033
- const existing_lists = existing.lists;
26034
- const incoming_lists = incoming.lists;
26035
- const equals_lists_items = equalsArray(existing_lists, incoming_lists, (existing_lists_item, incoming_lists_item) => {
26036
- if (!(existing_lists_item.__ref === incoming_lists_item.__ref)) {
26037
- return false;
26038
- }
26039
- });
26040
- if (equals_lists_items === false) {
26041
- return false;
26042
- }
26043
- const existing_nextPageToken = existing.nextPageToken;
26044
- const incoming_nextPageToken = incoming.nextPageToken;
26045
- if (!(existing_nextPageToken === incoming_nextPageToken)) {
26046
- return false;
26047
- }
26048
- const existing_nextPageUrl = existing.nextPageUrl;
26049
- const incoming_nextPageUrl = incoming.nextPageUrl;
26050
- if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
26051
- return false;
26052
- }
26053
- const existing_previousPageToken = existing.previousPageToken;
26054
- const incoming_previousPageToken = incoming.previousPageToken;
26055
- if (!(existing_previousPageToken === incoming_previousPageToken)) {
26056
- return false;
26057
- }
26058
- const existing_previousPageUrl = existing.previousPageUrl;
26059
- const incoming_previousPageUrl = incoming.previousPageUrl;
26060
- if (!(existing_previousPageUrl === incoming_previousPageUrl)) {
26061
- return false;
26062
- }
26063
- const existing_queryString = existing.queryString;
26064
- const incoming_queryString = incoming.queryString;
26065
- if (!(existing_queryString === incoming_queryString)) {
26066
- return false;
26067
- }
26068
- return true;
26069
- }
26070
- const ingest$D$1 = function ListInfoSummaryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
26071
- const key = keyBuilderFromType$t(luvio, input);
26072
- const existingRecord = store.readEntry(key);
26073
- const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
26074
- let incomingRecord = normalize$D(input, store.readEntry(key), {
26075
- fullPath: key,
26076
- parent: path.parent,
26077
- propertyName: path.propertyName,
26078
- ttl: ttlToUse
26079
- }, luvio, store, timestamp);
26080
- const paginationKey = key + '__pagination';
26081
- const existingPaginationMetadata = store.readEntry(paginationKey);
26082
- const { count: count, currentPageToken: token, nextPageToken: nextToken, pageSize: pageSize, previousPageToken: previousToken, lists: items } = input;
26083
- const startOffset = existingPaginationMetadata === undefined ? 0 : offsetFromToken$1(existingPaginationMetadata, token);
26084
- const incomingPaginationMetadata = {
26085
- [token]: startOffset,
26086
- };
26087
- const nextOffset = startOffset + items.length;
26088
- if (nextToken === null) {
26089
- incomingPaginationMetadata.__END__ = nextOffset;
26090
- }
26091
- else {
26092
- incomingPaginationMetadata[nextToken] = nextOffset;
26093
- if (existingPaginationMetadata !== undefined) {
26094
- const listEndOffset = existingPaginationMetadata.__END__;
26095
- if (listEndOffset !== undefined && nextOffset >= listEndOffset) {
26096
- incomingPaginationMetadata.__END__ = undefined;
26097
- }
26098
- }
26099
- }
26100
- if (previousToken !== null) {
26101
- incomingPaginationMetadata[previousToken] = Math.max(startOffset - pageSize, 0);
26102
- }
26103
- const mergedPaginationMetadata = mergeMetadata$1(existingPaginationMetadata, incomingPaginationMetadata);
26104
- if (existingPaginationMetadata === undefined ||
26105
- equalsObject$1(existingPaginationMetadata, mergedPaginationMetadata, (existingProp, incomingProp) => {
26106
- return existingProp === incomingProp;
26107
- }) === false) {
26108
- luvio.storePublish(paginationKey, mergedPaginationMetadata);
26109
- luvio.publishStoreMetadata(paginationKey, paginationStoreMetadata$1);
26110
- }
26111
- assignMetadataLink$1(incomingRecord, paginationKey);
26112
- if (existingRecord !== undefined && existingRecord.lists !== undefined) {
26113
- incomingRecord.lists = [
26114
- ...existingRecord.lists.slice(0, startOffset),
26115
- ...incomingRecord.lists,
26116
- ...existingRecord.lists.slice(nextOffset),
26117
- ];
26118
- }
26119
- if (existingRecord === undefined || equals$R(existingRecord, incomingRecord) === false) {
26120
- luvio.storePublish(key, incomingRecord);
26121
- }
26122
- if (ttlToUse !== undefined) {
26123
- const storeMetadataParams = {
26124
- ttl: ttlToUse,
26125
- namespace: "UiApi",
26126
- version: VERSION$$$1,
26127
- representationName: RepresentationType$K,
26128
- ingestionTimestamp: timestamp,
26129
- };
26130
- luvio.publishStoreMetadata(key, storeMetadataParams);
26131
- }
26132
- return createLink$3(key);
26133
- };
26134
- function getTypeCacheKeys$L$1(rootKeySet, luvio, input, fullPathFactory) {
26135
- // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
26136
- const rootKey = keyBuilderFromType$t(luvio, input);
26137
- rootKeySet.set(rootKey, {
26138
- namespace: keyPrefix$2,
26139
- representationName: RepresentationType$K,
26140
- mergeable: true
26141
- });
26142
- rootKeySet.set(rootKey + '__pagination', {
26143
- namespace: keyPrefix$2,
26144
- representationName: RepresentationType$K,
26145
- mergeable: true
26146
- });
26147
- const input_lists_length = input.lists.length;
26148
- for (let i = 0; i < input_lists_length; i++) {
26149
- getTypeCacheKeys$M$1(rootKeySet, luvio, input.lists[i]);
26150
- }
26151
- }
26152
- const notifyUpdateAvailableFactory$2 = (luvio) => {
26153
- return function notifyListInfoSummaryUpdateAvailable(configs) {
26154
- const keys = configs.map(c => keyBuilder$1O(luvio, c));
26155
- return luvio.notifyStoreUpdateAvailable(keys);
26156
- };
26157
- };
26158
-
26159
26275
  const notifyUpdateAvailableFactory$1 = (luvio) => {
26160
26276
  return function notifyListInfoUpdateAvailable(configs) {
26161
26277
  const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$6(luvio);
@@ -28447,7 +28563,7 @@
28447
28563
  buildCachedSnapshotCachePolicy$D, buildNetworkSnapshotCachePolicy$E);
28448
28564
  };
28449
28565
 
28450
- function validate$1e(obj, path = 'ActionRelatedListSingleBatchInputRepresentation') {
28566
+ function validate$1f(obj, path = 'ActionRelatedListSingleBatchInputRepresentation') {
28451
28567
  const v_error = (() => {
28452
28568
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
28453
28569
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -28858,7 +28974,7 @@
28858
28974
  const untrustedConfig_relatedListsActionParameters_array = [];
28859
28975
  for (let i = 0, arrayLength = untrustedConfig_relatedListsActionParameters.length; i < arrayLength; i++) {
28860
28976
  const untrustedConfig_relatedListsActionParameters_item = untrustedConfig_relatedListsActionParameters[i];
28861
- const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$1e(untrustedConfig_relatedListsActionParameters_item);
28977
+ const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$1f(untrustedConfig_relatedListsActionParameters_item);
28862
28978
  if (referenceActionRelatedListSingleBatchInputRepresentationValidationError === null) {
28863
28979
  untrustedConfig_relatedListsActionParameters_array.push(untrustedConfig_relatedListsActionParameters_item);
28864
28980
  }
@@ -30363,7 +30479,7 @@
30363
30479
  return keyPrefix$2 + '::RecordLayoutRepresentation:(' + 'formFactor:' + params.queryParams.formFactor + ',' + 'layoutType:' + params.queryParams.layoutType + ',' + 'mode:' + params.queryParams.mode + ',' + 'recordTypeId:' + params.queryParams.recordTypeId + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
30364
30480
  }
30365
30481
  function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
30366
- getTypeCacheKeys$O$1(storeKeyMap, luvio, response);
30482
+ getTypeCacheKeys$M$1(storeKeyMap, luvio, response);
30367
30483
  }
30368
30484
  function ingestError$q(luvio, params, error, snapshotRefresh) {
30369
30485
  const key = keyBuilder$1b(luvio, params);
@@ -30371,8 +30487,8 @@
30371
30487
  const storeMetadataParams = {
30372
30488
  ttl: TTL$v,
30373
30489
  namespace: keyPrefix$2,
30374
- version: VERSION$13$1,
30375
- representationName: RepresentationType$O
30490
+ version: VERSION$11$1,
30491
+ representationName: RepresentationType$M
30376
30492
  };
30377
30493
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
30378
30494
  return errorSnapshot;
@@ -30393,11 +30509,11 @@
30393
30509
 
30394
30510
  function onFetchResponseSuccess$t(luvio, config, resourceParams, response) {
30395
30511
  const { body } = response;
30396
- const key = keyBuilder$1S(luvio, config);
30397
- luvio.storeIngest(key, ingest$H$1, body);
30512
+ const key = keyBuilder$1Q(luvio, config);
30513
+ luvio.storeIngest(key, ingest$F$1, body);
30398
30514
  const snapshot = luvio.storeLookup({
30399
30515
  recordId: key,
30400
- node: select$1F(),
30516
+ node: select$1D(),
30401
30517
  variables: {},
30402
30518
  }, {
30403
30519
  config,
@@ -30442,8 +30558,8 @@
30442
30558
  function buildCachedSnapshotCachePolicy$w(context, storeLookup) {
30443
30559
  const { luvio, config } = context;
30444
30560
  const selector = {
30445
- recordId: keyBuilder$1S(luvio, config),
30446
- node: select$1F(),
30561
+ recordId: keyBuilder$1Q(luvio, config),
30562
+ node: select$1D(),
30447
30563
  variables: {},
30448
30564
  };
30449
30565
  return storeLookup(selector, {
@@ -30512,7 +30628,7 @@
30512
30628
  };
30513
30629
 
30514
30630
  function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
30515
- getTypeCacheKeys$N$1(storeKeyMap, luvio, response);
30631
+ getTypeCacheKeys$L$1(storeKeyMap, luvio, response);
30516
30632
  }
30517
30633
  function createResourceRequest$K(config) {
30518
30634
  const headers = {};
@@ -30530,7 +30646,7 @@
30530
30646
 
30531
30647
  function buildCachedSnapshot$5(luvio, config) {
30532
30648
  const { objectApiName, recordTypeId, layoutType, mode } = config;
30533
- const key = keyBuilder$1R(luvio, {
30649
+ const key = keyBuilder$1P(luvio, {
30534
30650
  apiName: objectApiName,
30535
30651
  recordTypeId,
30536
30652
  layoutType,
@@ -30538,7 +30654,7 @@
30538
30654
  });
30539
30655
  const selector = {
30540
30656
  recordId: key,
30541
- node: select$1E(),
30657
+ node: select$1C(),
30542
30658
  variables: {},
30543
30659
  };
30544
30660
  return luvio.storeLookup(selector, {
@@ -30571,7 +30687,7 @@
30571
30687
  body.recordTypeId = recordTypeId;
30572
30688
  body.layoutType = layoutType;
30573
30689
  body.mode = mode;
30574
- luvio.storeIngest(key, ingest$G$1, body);
30690
+ luvio.storeIngest(key, ingest$E$1, body);
30575
30691
  const snapshot = buildCachedSnapshot$5(luvio, config);
30576
30692
  return luvio.storeBroadcast().then(() => snapshot);
30577
30693
  }
@@ -30585,7 +30701,7 @@
30585
30701
  }
30586
30702
  function prepareRequest$4(luvio, config) {
30587
30703
  const { recordTypeId, layoutType, mode, objectApiName } = config;
30588
- const key = keyBuilder$1R(luvio, {
30704
+ const key = keyBuilder$1P(luvio, {
30589
30705
  apiName: objectApiName,
30590
30706
  recordTypeId,
30591
30707
  layoutType,
@@ -30650,13 +30766,13 @@
30650
30766
  const { config, luvio } = context;
30651
30767
  const { objectApiName, recordTypeId, layoutType, mode } = config;
30652
30768
  const selector = {
30653
- recordId: keyBuilder$1R(luvio, {
30769
+ recordId: keyBuilder$1P(luvio, {
30654
30770
  apiName: objectApiName,
30655
30771
  recordTypeId,
30656
30772
  layoutType,
30657
30773
  mode,
30658
30774
  }),
30659
- node: select$1E(),
30775
+ node: select$1C(),
30660
30776
  variables: {},
30661
30777
  };
30662
30778
  return storeLookup(selector, {
@@ -31106,22 +31222,22 @@
31106
31222
  }
31107
31223
  function select$13$1(luvio, params) {
31108
31224
  const paginationParams = createPaginationParams$1(params);
31109
- return select$1C(paginationParams);
31225
+ return select$1K(paginationParams);
31110
31226
  }
31111
31227
  function keyBuilder$17$1(luvio, params) {
31112
- return keyBuilder$1O(luvio, {
31228
+ return keyBuilder$1_(luvio, {
31113
31229
  objectApiName: params.urlParams.objectApiName,
31114
31230
  queryString: params.queryParams.q || null,
31115
31231
  recentListsOnly: params.queryParams.recentListsOnly || false
31116
31232
  });
31117
31233
  }
31118
31234
  function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
31119
- getTypeCacheKeys$L$1(storeKeyMap, luvio, response);
31235
+ getTypeCacheKeys$Q$1(storeKeyMap, luvio, response);
31120
31236
  }
31121
31237
  function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
31122
31238
  const { body } = response;
31123
31239
  const key = keyBuilder$17$1(luvio, resourceParams);
31124
- luvio.storeIngest(key, ingest$D$1, body);
31240
+ luvio.storeIngest(key, ingest$J$1, body);
31125
31241
  const snapshot = luvio.storeLookup({
31126
31242
  recordId: key,
31127
31243
  node: select$13$1(luvio, resourceParams),
@@ -31249,7 +31365,7 @@
31249
31365
  recordId: key,
31250
31366
  node: {
31251
31367
  kind: 'Fragment',
31252
- version: VERSION$$$1,
31368
+ version: VERSION$15$1,
31253
31369
  private: [],
31254
31370
  selections: [
31255
31371
  {
@@ -31315,7 +31431,7 @@
31315
31431
  buildCachedSnapshotCachePolicy$t, buildNetworkSnapshotCachePolicy$u);
31316
31432
  };
31317
31433
 
31318
- function validate$14(obj, path = 'ListFilterByInfoInputRepresentation') {
31434
+ function validate$15(obj, path = 'ListFilterByInfoInputRepresentation') {
31319
31435
  const v_error = (() => {
31320
31436
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
31321
31437
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -31346,7 +31462,7 @@
31346
31462
  return v_error === undefined ? null : v_error;
31347
31463
  }
31348
31464
 
31349
- function validate$13(obj, path = 'ListScopeInputRepresentation') {
31465
+ function validate$14(obj, path = 'ListScopeInputRepresentation') {
31350
31466
  const v_error = (() => {
31351
31467
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
31352
31468
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -31470,7 +31586,7 @@
31470
31586
  const untrustedConfig_filteredByInfo_array = [];
31471
31587
  for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
31472
31588
  const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
31473
- const referenceListFilterByInfoInputRepresentationValidationError = validate$14(untrustedConfig_filteredByInfo_item);
31589
+ const referenceListFilterByInfoInputRepresentationValidationError = validate$15(untrustedConfig_filteredByInfo_item);
31474
31590
  if (referenceListFilterByInfoInputRepresentationValidationError === null) {
31475
31591
  untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
31476
31592
  }
@@ -31478,7 +31594,7 @@
31478
31594
  config.filteredByInfo = untrustedConfig_filteredByInfo_array;
31479
31595
  }
31480
31596
  const untrustedConfig_scope = untrustedConfig.scope;
31481
- const referenceListScopeInputRepresentationValidationError = validate$13(untrustedConfig_scope);
31597
+ const referenceListScopeInputRepresentationValidationError = validate$14(untrustedConfig_scope);
31482
31598
  if (referenceListScopeInputRepresentationValidationError === null) {
31483
31599
  config.scope = untrustedConfig_scope;
31484
31600
  }
@@ -31746,7 +31862,7 @@
31746
31862
  const untrustedConfig_filteredByInfo_array = [];
31747
31863
  for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
31748
31864
  const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
31749
- const referenceListFilterByInfoInputRepresentationValidationError = validate$14(untrustedConfig_filteredByInfo_item);
31865
+ const referenceListFilterByInfoInputRepresentationValidationError = validate$15(untrustedConfig_filteredByInfo_item);
31750
31866
  if (referenceListFilterByInfoInputRepresentationValidationError === null) {
31751
31867
  untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
31752
31868
  }
@@ -31754,7 +31870,7 @@
31754
31870
  config.filteredByInfo = untrustedConfig_filteredByInfo_array;
31755
31871
  }
31756
31872
  const untrustedConfig_scope = untrustedConfig.scope;
31757
- const referenceListScopeInputRepresentationValidationError = validate$13(untrustedConfig_scope);
31873
+ const referenceListScopeInputRepresentationValidationError = validate$14(untrustedConfig_scope);
31758
31874
  if (referenceListScopeInputRepresentationValidationError === null) {
31759
31875
  config.scope = untrustedConfig_scope;
31760
31876
  }
@@ -32505,7 +32621,7 @@
32505
32621
  buildCachedSnapshotCachePolicy$q, buildNetworkSnapshotCachePolicy$r);
32506
32622
  };
32507
32623
 
32508
- function validate$Y(obj, path = 'ListOrderedByInfoInputRepresentation') {
32624
+ function validate$Z(obj, path = 'ListOrderedByInfoInputRepresentation') {
32509
32625
  const v_error = (() => {
32510
32626
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
32511
32627
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -32608,7 +32724,7 @@
32608
32724
  const untrustedConfig_orderedBy_array = [];
32609
32725
  for (let i = 0, arrayLength = untrustedConfig_orderedBy.length; i < arrayLength; i++) {
32610
32726
  const untrustedConfig_orderedBy_item = untrustedConfig_orderedBy[i];
32611
- const referenceListOrderedByInfoInputRepresentationValidationError = validate$Y(untrustedConfig_orderedBy_item);
32727
+ const referenceListOrderedByInfoInputRepresentationValidationError = validate$Z(untrustedConfig_orderedBy_item);
32612
32728
  if (referenceListOrderedByInfoInputRepresentationValidationError === null) {
32613
32729
  untrustedConfig_orderedBy_array.push(untrustedConfig_orderedBy_item);
32614
32730
  }
@@ -33041,8 +33157,8 @@
33041
33157
  reader.enterPath(i);
33042
33158
  reader.enterPath(envelopeBodyPath);
33043
33159
  const childResource = childResources[i];
33044
- const childKey = keyBuilder$1U(luvio, childResource);
33045
- const childFragment = select$1G();
33160
+ const childKey = keyBuilder$1S(luvio, childResource);
33161
+ const childFragment = select$1E();
33046
33162
  const isMissingDataBeforeChildRead = reader.getIsDataMissing();
33047
33163
  const childSnapshot = reader.read({
33048
33164
  recordId: childKey,
@@ -33141,10 +33257,10 @@
33141
33257
  getResponseCacheKeys$Y(keys, luvio, childResourceParams, childBody);
33142
33258
  }
33143
33259
  else if (childStatusCode === 404) {
33144
- const childKey = keyBuilder$1U(luvio, childResourceParams);
33260
+ const childKey = keyBuilder$1S(luvio, childResourceParams);
33145
33261
  keys.set(childKey, {
33146
33262
  namespace: keyPrefix$2,
33147
- representationName: RepresentationType$P,
33263
+ representationName: RepresentationType$N,
33148
33264
  mergeable: false
33149
33265
  });
33150
33266
  }
@@ -33157,7 +33273,7 @@
33157
33273
  const now = Date.now();
33158
33274
  for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
33159
33275
  const childResourceParams = childResourceParamsArray[index];
33160
- const childKey = keyBuilder$1U(luvio, childResourceParams);
33276
+ const childKey = keyBuilder$1S(luvio, childResourceParams);
33161
33277
  const result = childEnvelopes[index];
33162
33278
  const { statusCode: childStatusCode, result: childBody } = result;
33163
33279
  if (childStatusCode === 200) {
@@ -36670,7 +36786,7 @@
36670
36786
  buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$e);
36671
36787
  };
36672
36788
 
36673
- function validate$y(obj, path = 'ListUserPreferenceInputRepresentation') {
36789
+ function validate$z(obj, path = 'ListUserPreferenceInputRepresentation') {
36674
36790
  const v_error = (() => {
36675
36791
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
36676
36792
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -36747,7 +36863,7 @@
36747
36863
  const untrustedConfig_orderedByInfo_array = [];
36748
36864
  for (let i = 0, arrayLength = untrustedConfig_orderedByInfo.length; i < arrayLength; i++) {
36749
36865
  const untrustedConfig_orderedByInfo_item = untrustedConfig_orderedByInfo[i];
36750
- const referenceListOrderedByInfoInputRepresentationValidationError = validate$Y(untrustedConfig_orderedByInfo_item);
36866
+ const referenceListOrderedByInfoInputRepresentationValidationError = validate$Z(untrustedConfig_orderedByInfo_item);
36751
36867
  if (referenceListOrderedByInfoInputRepresentationValidationError === null) {
36752
36868
  untrustedConfig_orderedByInfo_array.push(untrustedConfig_orderedByInfo_item);
36753
36869
  }
@@ -36755,7 +36871,7 @@
36755
36871
  config.orderedByInfo = untrustedConfig_orderedByInfo_array;
36756
36872
  }
36757
36873
  const untrustedConfig_userPreferences = untrustedConfig.userPreferences;
36758
- const referenceListUserPreferenceInputRepresentationValidationError = validate$y(untrustedConfig_userPreferences);
36874
+ const referenceListUserPreferenceInputRepresentationValidationError = validate$z(untrustedConfig_userPreferences);
36759
36875
  if (referenceListUserPreferenceInputRepresentationValidationError === null) {
36760
36876
  config.userPreferences = untrustedConfig_userPreferences;
36761
36877
  }
@@ -37410,7 +37526,7 @@
37410
37526
  const untrustedConfig_orderedBy_array = [];
37411
37527
  for (let i = 0, arrayLength = untrustedConfig_orderedBy.length; i < arrayLength; i++) {
37412
37528
  const untrustedConfig_orderedBy_item = untrustedConfig_orderedBy[i];
37413
- const referenceListOrderedByInfoInputRepresentationValidationError = validate$Y(untrustedConfig_orderedBy_item);
37529
+ const referenceListOrderedByInfoInputRepresentationValidationError = validate$Z(untrustedConfig_orderedBy_item);
37414
37530
  if (referenceListOrderedByInfoInputRepresentationValidationError === null) {
37415
37531
  untrustedConfig_orderedBy_array.push(untrustedConfig_orderedBy_item);
37416
37532
  }
@@ -37458,7 +37574,7 @@
37458
37574
  };
37459
37575
  };
37460
37576
 
37461
- function validate$w(obj, path = 'RelatedListRecordsSingleBatchInputRepresentation') {
37577
+ function validate$x(obj, path = 'RelatedListRecordsSingleBatchInputRepresentation') {
37462
37578
  const v_error = (() => {
37463
37579
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
37464
37580
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -38412,7 +38528,7 @@
38412
38528
  const untrustedConfig_relatedListParameters_array = [];
38413
38529
  for (let i = 0, arrayLength = untrustedConfig_relatedListParameters.length; i < arrayLength; i++) {
38414
38530
  const untrustedConfig_relatedListParameters_item = untrustedConfig_relatedListParameters[i];
38415
- const referenceRelatedListRecordsSingleBatchInputRepresentationValidationError = validate$w(untrustedConfig_relatedListParameters_item);
38531
+ const referenceRelatedListRecordsSingleBatchInputRepresentationValidationError = validate$x(untrustedConfig_relatedListParameters_item);
38416
38532
  if (referenceRelatedListRecordsSingleBatchInputRepresentationValidationError === null) {
38417
38533
  untrustedConfig_relatedListParameters_array.push(untrustedConfig_relatedListParameters_item);
38418
38534
  }
@@ -39206,7 +39322,7 @@
39206
39322
  buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$7);
39207
39323
  };
39208
39324
 
39209
- function validate$l(obj, path = 'SearchDataCategoryInputRepresentation') {
39325
+ function validate$m(obj, path = 'SearchDataCategoryInputRepresentation') {
39210
39326
  const v_error = (() => {
39211
39327
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
39212
39328
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -39237,7 +39353,7 @@
39237
39353
  return v_error === undefined ? null : v_error;
39238
39354
  }
39239
39355
 
39240
- function validate$k(obj, path = 'SearchFilterInputRepresentation') {
39356
+ function validate$l(obj, path = 'SearchFilterInputRepresentation') {
39241
39357
  const v_error = (() => {
39242
39358
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
39243
39359
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -39306,7 +39422,7 @@
39306
39422
  return v_error === undefined ? null : v_error;
39307
39423
  }
39308
39424
 
39309
- function validate$j(obj, path = 'SearchObjectOptionsRepresentation') {
39425
+ function validate$k(obj, path = 'SearchObjectOptionsRepresentation') {
39310
39426
  const v_error = (() => {
39311
39427
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
39312
39428
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -39319,7 +39435,7 @@
39319
39435
  for (let i = 0; i < obj_dataCategories.length; i++) {
39320
39436
  const obj_dataCategories_item = obj_dataCategories[i];
39321
39437
  const path_dataCategories_item = path_dataCategories + '[' + i + ']';
39322
- const referencepath_dataCategories_itemValidationError = validate$l(obj_dataCategories_item, path_dataCategories_item);
39438
+ const referencepath_dataCategories_itemValidationError = validate$m(obj_dataCategories_item, path_dataCategories_item);
39323
39439
  if (referencepath_dataCategories_itemValidationError !== null) {
39324
39440
  let message = 'Object doesn\'t match SearchDataCategoryInputRepresentation (at "' + path_dataCategories_item + '")\n';
39325
39441
  message += referencepath_dataCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -39334,7 +39450,7 @@
39334
39450
  for (let i = 0; i < obj_filters.length; i++) {
39335
39451
  const obj_filters_item = obj_filters[i];
39336
39452
  const path_filters_item = path_filters + '[' + i + ']';
39337
- const referencepath_filters_itemValidationError = validate$k(obj_filters_item, path_filters_item);
39453
+ const referencepath_filters_itemValidationError = validate$l(obj_filters_item, path_filters_item);
39338
39454
  if (referencepath_filters_itemValidationError !== null) {
39339
39455
  let message = 'Object doesn\'t match SearchFilterInputRepresentation (at "' + path_filters_item + '")\n';
39340
39456
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -39465,7 +39581,7 @@
39465
39581
  for (let i = 0, arrayLength = untrustedConfig_searchObjectOptions_keys.length; i < arrayLength; i++) {
39466
39582
  const key = untrustedConfig_searchObjectOptions_keys[i];
39467
39583
  const untrustedConfig_searchObjectOptions_prop = untrustedConfig_searchObjectOptions[key];
39468
- const referenceSearchObjectOptionsRepresentationValidationError = validate$j(untrustedConfig_searchObjectOptions_prop);
39584
+ const referenceSearchObjectOptionsRepresentationValidationError = validate$k(untrustedConfig_searchObjectOptions_prop);
39469
39585
  if (referenceSearchObjectOptionsRepresentationValidationError === null) {
39470
39586
  if (untrustedConfig_searchObjectOptions_object !== undefined) {
39471
39587
  untrustedConfig_searchObjectOptions_object[key] = untrustedConfig_searchObjectOptions_prop;
@@ -39668,7 +39784,7 @@
39668
39784
  const untrustedConfig_filters_array = [];
39669
39785
  for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
39670
39786
  const untrustedConfig_filters_item = untrustedConfig_filters[i];
39671
- const referenceSearchFilterInputRepresentationValidationError = validate$k(untrustedConfig_filters_item);
39787
+ const referenceSearchFilterInputRepresentationValidationError = validate$l(untrustedConfig_filters_item);
39672
39788
  if (referenceSearchFilterInputRepresentationValidationError === null) {
39673
39789
  untrustedConfig_filters_array.push(untrustedConfig_filters_item);
39674
39790
  }
@@ -40256,7 +40372,7 @@
40256
40372
  const { body } = response;
40257
40373
  return luvio.handleSuccessResponse(() => ingestAndBroadcast(luvio, key, config, body), () => {
40258
40374
  const cache = new StoreKeyMap();
40259
- getTypeCacheKeys$N$1(cache, luvio, body);
40375
+ getTypeCacheKeys$L$1(cache, luvio, body);
40260
40376
  return cache;
40261
40377
  });
40262
40378
  }, (err) => {
@@ -40266,7 +40382,7 @@
40266
40382
  }
40267
40383
  function ingestAndBroadcast(luvio, key, config, body) {
40268
40384
  addAdditionalFieldsForNorming(body, config.objectApiName, config.recordTypeId, config.layoutType, config.mode);
40269
- luvio.storeIngest(key, ingest$G$1, body);
40385
+ luvio.storeIngest(key, ingest$E$1, body);
40270
40386
  return luvio.storeBroadcast().then(() => {
40271
40387
  return buildCachedSnapshot$5(luvio, config);
40272
40388
  });
@@ -40337,7 +40453,7 @@
40337
40453
  recordTypeId,
40338
40454
  },
40339
40455
  });
40340
- const key = keyBuilder$1R(luvio, {
40456
+ const key = keyBuilder$1P(luvio, {
40341
40457
  apiName: objectApiName,
40342
40458
  recordTypeId,
40343
40459
  layoutType,
@@ -40400,7 +40516,7 @@
40400
40516
  const createResourceParams$8 = /*#__PURE__*/ createResourceParams$12(getListRecordsByName_ConfigPropertyMetadata);
40401
40517
  function keyBuilder$9$1(luvio, config) {
40402
40518
  const resourceParams = createResourceParams$8(config);
40403
- return keyBuilder$1$(luvio, resourceParams);
40519
+ return keyBuilder$1Z(luvio, resourceParams);
40404
40520
  }
40405
40521
  function typeCheckConfig$b(untrustedConfig) {
40406
40522
  const config = {};
@@ -40419,7 +40535,7 @@
40419
40535
  }
40420
40536
  function adapterFragment$1$1(luvio, config) {
40421
40537
  const resourceParams = createResourceParams$8(config);
40422
- return select$1L(luvio, resourceParams);
40538
+ return select$1J(luvio, resourceParams);
40423
40539
  }
40424
40540
  function onFetchResponseSuccess$2$1(luvio, config, resourceParams, response) {
40425
40541
  const snapshot = ingestSuccess$P(luvio, resourceParams, response, {
@@ -40482,7 +40598,7 @@
40482
40598
  return items.length;
40483
40599
  }
40484
40600
  function getPaginationMetadata(luvio, resourceParams) {
40485
- const key = keyBuilder$1$(luvio, resourceParams);
40601
+ const key = keyBuilder$1Z(luvio, resourceParams);
40486
40602
  const selector = {
40487
40603
  recordId: key,
40488
40604
  node: {
@@ -41136,7 +41252,7 @@
41136
41252
  const input_layout = input.layout;
41137
41253
  const input_layout_id = path.fullPath + '__layout';
41138
41254
  if (input_layout !== null && typeof input_layout === 'object') {
41139
- input.layout = ingest$H$1(input_layout, {
41255
+ input.layout = ingest$F$1(input_layout, {
41140
41256
  fullPath: input_layout_id,
41141
41257
  propertyName: 'layout',
41142
41258
  parent: {
@@ -41155,7 +41271,7 @@
41155
41271
  const key = input_objectInfos_keys[i];
41156
41272
  const input_objectInfos_prop = input_objectInfos[key];
41157
41273
  const input_objectInfos_prop_id = input_objectInfos_id + '__' + key;
41158
- input_objectInfos[key] = ingest$I$1(input_objectInfos_prop, {
41274
+ input_objectInfos[key] = ingest$G$1(input_objectInfos_prop, {
41159
41275
  fullPath: input_objectInfos_prop_id,
41160
41276
  propertyName: key,
41161
41277
  parent: {
@@ -41223,14 +41339,14 @@
41223
41339
  mergeable: false
41224
41340
  });
41225
41341
  if (input.layout !== null && typeof input.layout === 'object') {
41226
- getTypeCacheKeys$O$1(rootKeySet, luvio, input.layout);
41342
+ getTypeCacheKeys$M$1(rootKeySet, luvio, input.layout);
41227
41343
  }
41228
41344
  const input_objectInfos = input.objectInfos;
41229
41345
  const input_objectInfos_keys = ObjectKeys$2(input_objectInfos);
41230
41346
  const input_objectInfos_length = input_objectInfos_keys.length;
41231
41347
  for (let i = 0; i < input_objectInfos_length; i++) {
41232
41348
  const key = input_objectInfos_keys[i];
41233
- getTypeCacheKeys$P$1(rootKeySet, luvio, input_objectInfos[key]);
41349
+ getTypeCacheKeys$N$1(rootKeySet, luvio, input_objectInfos[key]);
41234
41350
  }
41235
41351
  getTypeCacheKeys$6$1(rootKeySet, luvio, input.record, () => rootKey + "__" + "record");
41236
41352
  }
@@ -41282,8 +41398,8 @@
41282
41398
  }
41283
41399
 
41284
41400
  const contextId$2 = `${keyPrefix$2}__${adapterName$4$1}`;
41285
- const layoutSelections = select$1F();
41286
- const objectInfoSelections = select$1H();
41401
+ const layoutSelections = select$1D();
41402
+ const objectInfoSelections = select$1F();
41287
41403
  function buildSelector(resp) {
41288
41404
  const recordSelections = buildSelectionFromRecord(resp.record);
41289
41405
  return [
@@ -41629,7 +41745,7 @@
41629
41745
  name: 'objectInfos',
41630
41746
  kind: 'Link',
41631
41747
  map: true,
41632
- fragment: select$1H()
41748
+ fragment: select$1F()
41633
41749
  } : params.objectInfos;
41634
41750
  const recordPathSelection = params.record === undefined ? {
41635
41751
  name: 'record',
@@ -41677,7 +41793,7 @@
41677
41793
  const input_objectInfos_length = input_objectInfos_keys.length;
41678
41794
  for (let i = 0; i < input_objectInfos_length; i++) {
41679
41795
  const key = input_objectInfos_keys[i];
41680
- getTypeCacheKeys$P$1(rootKeySet, luvio, input_objectInfos[key]);
41796
+ getTypeCacheKeys$N$1(rootKeySet, luvio, input_objectInfos[key]);
41681
41797
  }
41682
41798
  getTypeCacheKeys$4$1(rootKeySet, luvio, input.record);
41683
41799
  }
@@ -41711,7 +41827,7 @@
41711
41827
  function createFieldsIngest$2(params) {
41712
41828
  const { fields, optionalFields, trackedFields, recordConflictMap } = params;
41713
41829
  const ingest = dynamicIngest$2({
41714
- objectInfos: ingest$I$1,
41830
+ objectInfos: ingest$G$1,
41715
41831
  record: createFieldsIngest$3(params)
41716
41832
  });
41717
41833
  return (data, path, luvio, store, timestamp) => {
@@ -42155,7 +42271,7 @@
42155
42271
  name: 'objectInfos',
42156
42272
  kind: 'Link',
42157
42273
  map: true,
42158
- fragment: select$1H()
42274
+ fragment: select$1F()
42159
42275
  } : params.objectInfos;
42160
42276
  const recordPathSelection = params.record === undefined ? {
42161
42277
  name: 'record',
@@ -42203,7 +42319,7 @@
42203
42319
  const input_objectInfos_length = input_objectInfos_keys.length;
42204
42320
  for (let i = 0; i < input_objectInfos_length; i++) {
42205
42321
  const key = input_objectInfos_keys[i];
42206
- getTypeCacheKeys$P$1(rootKeySet, luvio, input_objectInfos[key]);
42322
+ getTypeCacheKeys$N$1(rootKeySet, luvio, input_objectInfos[key]);
42207
42323
  }
42208
42324
  getTypeCacheKeys$2$1(rootKeySet, luvio, input.record);
42209
42325
  }
@@ -42237,7 +42353,7 @@
42237
42353
  function createFieldsIngest(params) {
42238
42354
  const { fields, optionalFields, trackedFields, recordConflictMap } = params;
42239
42355
  const ingest = dynamicIngest({
42240
- objectInfos: ingest$I$1,
42356
+ objectInfos: ingest$G$1,
42241
42357
  record: createFieldsIngest$1(params)
42242
42358
  });
42243
42359
  return (data, path, luvio, store, timestamp) => {
@@ -43476,7 +43592,7 @@
43476
43592
  const getRelatedListActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListActions', getRelatedListActionsAdapterFactory), getRelatedListActionsMetadata);
43477
43593
  const getRelatedListCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListCount', getRelatedListCountAdapterFactory), getRelatedListCountMetadata);
43478
43594
  const getRelatedListInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListInfo', getRelatedListInfoAdapterFactory), getRelatedListInfoMetadata);
43479
- const getRelatedListInfoBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListInfoBatch', getRelatedListInfoBatchAdapterFactory), getRelatedListInfoBatchMetadata);
43595
+ const getRelatedListInfoBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListInfoBatch', getRelatedListInfoBatchAdapterFactory), luvio, 'getRelatedListInfoBatch'), getRelatedListInfoBatchMetadata);
43480
43596
  const getRelatedListPreferences_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferences', getRelatedListPreferencesAdapterFactory), getRelatedListPreferencesMetadata);
43481
43597
  const getRelatedListPreferencesBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferencesBatch', getRelatedListPreferencesBatchAdapterFactory), getRelatedListPreferencesBatchMetadata);
43482
43598
  const getRelatedListRecordActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListRecordActions', getRelatedListRecordActionsAdapterFactory), getRelatedListRecordActionsMetadata);
@@ -43769,13 +43885,19 @@
43769
43885
  allowFunction: instrumentation$3.notifyRecordUpdateAvailableAllowed,
43770
43886
  dropFunction: instrumentation$3.notifyRecordUpdateAvailableDropped,
43771
43887
  });
43772
- throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$3));
43773
- throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoSummaryUpdateAvailable', notifyUpdateAvailableFactory$2));
43888
+ throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$2));
43889
+ throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoSummaryUpdateAvailable', notifyUpdateAvailableFactory$3));
43774
43890
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
43775
43891
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListRecordCollectionUpdateAvailable', notifyUpdateAvailableFactory$4));
43776
43892
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
43893
+ // Setting up storeWatchers for custom notifyUpdateAvailable endpoints
43894
+ setupListRecordCollectionStoreWatcher(luvio);
43895
+ setupListSummaryCollectionStoreWatcher(luvio);
43896
+ // Custom notifyUpdateAvailable endpoints for partial key support
43897
+ throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
43898
+ throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
43777
43899
  });
43778
- // version: 1.274.0-a59680ec1
43900
+ // version: 1.276.0-58fd72593
43779
43901
 
43780
43902
  var ldsIdempotencyWriteDisabled = {
43781
43903
  isOpen: function (e) {
@@ -44685,7 +44807,7 @@
44685
44807
  }
44686
44808
  }
44687
44809
 
44688
- function flushInMemoryStoreValuesToDurableStore(store, durableStore, crossEnvironmentNotifier, durableStoreErrorHandler, redirects, additionalDurableStoreOperations = [], enableDurableMetadataRefresh = false) {
44810
+ function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStoreErrorHandler, redirects, additionalDurableStoreOperations = [], enableDurableMetadataRefresh = false) {
44689
44811
  const durableRecords = create$6(null);
44690
44812
  const refreshedDurableRecords = create$6(null);
44691
44813
  const evictedRecords = create$6(null);
@@ -44725,21 +44847,14 @@
44725
44847
  segment: DefaultDurableSegment,
44726
44848
  });
44727
44849
  }
44728
- if (keys$7(refreshedDurableRecords).length > 0) {
44850
+ const refreshKeys = keys$7(refreshedDurableRecords);
44851
+ if (refreshKeys.length > 0) {
44729
44852
  // publishes with only metadata updates
44730
44853
  durableStoreOperations.push({
44731
44854
  type: 'setMetadata',
44732
44855
  entries: refreshedDurableRecords,
44733
44856
  segment: DefaultDurableSegment,
44734
44857
  });
44735
- if (crossEnvironmentNotifier !== undefined) {
44736
- crossEnvironmentNotifier.notifyCrossEnvironments({
44737
- data: {
44738
- refreshedDurableRecords,
44739
- },
44740
- type: 'Update',
44741
- });
44742
- }
44743
44858
  }
44744
44859
  // redirects
44745
44860
  redirects.forEach((value, key) => {
@@ -45041,14 +45156,17 @@
45041
45156
  }
45042
45157
  // process metadata only refreshes
45043
45158
  if (metadataRefreshSegmentKeys.length > 0) {
45044
- const entries = await durableStore.getMetadata(metadataRefreshSegmentKeys, DefaultDurableSegment);
45045
- if (entries !== undefined) {
45046
- const entryKeys = keys$7(entries);
45047
- for (let i = 0, len = entryKeys.length; i < len; i++) {
45048
- const entryKey = entryKeys[i];
45049
- const { metadata } = entries[entryKey];
45050
- if (metadata !== undefined) {
45051
- environment.putStoreMetadata(entryKey, metadata, false);
45159
+ const filteredKeys = metadataRefreshSegmentKeys.filter((s) => environment.storeKeyExists(s));
45160
+ if (filteredKeys.length > 0) {
45161
+ const entries = await durableStore.getMetadata(filteredKeys, DefaultDurableSegment);
45162
+ if (entries !== undefined) {
45163
+ const entryKeys = keys$7(entries);
45164
+ for (let i = 0, len = entryKeys.length; i < len; i++) {
45165
+ const entryKey = entryKeys[i];
45166
+ const { metadata } = entries[entryKey];
45167
+ if (metadata !== undefined) {
45168
+ environment.putStoreMetadata(entryKey, metadata, false);
45169
+ }
45052
45170
  }
45053
45171
  }
45054
45172
  }
@@ -45071,15 +45189,6 @@
45071
45189
  }
45072
45190
  }
45073
45191
  });
45074
- let notifier;
45075
- const getCrossEnvironmentNotifier = function () {
45076
- validateNotDisposed();
45077
- return notifier;
45078
- };
45079
- const setCrossEnvironmentNotifier = function (crossEnvironmentNotifier) {
45080
- validateNotDisposed();
45081
- notifier = crossEnvironmentNotifier;
45082
- };
45083
45192
  const dispose = function () {
45084
45193
  validateNotDisposed();
45085
45194
  disposed = true;
@@ -45132,7 +45241,7 @@
45132
45241
  if (stagingStore === null) {
45133
45242
  return Promise.resolve();
45134
45243
  }
45135
- const promise = flushInMemoryStoreValuesToDurableStore(stagingStore, durableStore, getCrossEnvironmentNotifier(), durableStoreErrorHandler, new Map(pendingStoreRedirects), additionalDurableStoreOperations, enableDurableMetadataRefresh);
45244
+ const promise = flushInMemoryStoreValuesToDurableStore(stagingStore, durableStore, durableStoreErrorHandler, new Map(pendingStoreRedirects), additionalDurableStoreOperations, enableDurableMetadataRefresh);
45136
45245
  pendingStoreRedirects.clear();
45137
45246
  stagingStore = null;
45138
45247
  return promise;
@@ -45502,8 +45611,6 @@
45502
45611
  handleErrorResponse: { value: handleErrorResponse },
45503
45612
  getNotifyChangeStoreEntries: { value: getNotifyChangeStoreEntries },
45504
45613
  notifyStoreUpdateAvailable: { value: notifyStoreUpdateAvailable },
45505
- getCrossEnvironmentNotifier: { value: getCrossEnvironmentNotifier },
45506
- setCrossEnvironmentNotifier: { value: setCrossEnvironmentNotifier },
45507
45614
  });
45508
45615
  }
45509
45616
 
@@ -56269,13 +56376,21 @@
56269
56376
  draftFields[DEFAULT_FIELD_LAST_MODIFIED_DATE] = { value: timestampString, displayValue: null };
56270
56377
  draftFields[DEFAULT_FIELD_OWNER_ID] = { value: userId, displayValue: null };
56271
56378
  draftFields[DEFAULT_FIELD_ID] = { value: recordId, displayValue: null };
56272
- if (objectInfo !== undefined) {
56273
- const allObjectFields = keys$3$1(objectInfo.fields);
56274
- allObjectFields.forEach((fieldName) => {
56275
- if (draftFields[fieldName] === undefined) {
56276
- draftFields[fieldName] = { value: null, displayValue: null };
56277
- }
56278
- });
56379
+ const allObjectFields = keys$3$1(objectInfo.fields);
56380
+ allObjectFields.forEach((fieldName) => {
56381
+ if (draftFields[fieldName] === undefined) {
56382
+ draftFields[fieldName] = { value: null, displayValue: null };
56383
+ }
56384
+ });
56385
+ // TODO [W-14915806]: lightning-record-form injects the `IsPersonAccount`
56386
+ // field for all `Account` and `PersonAccount` records. However, not all
56387
+ // orgs use person accounts, and if that field is not present in the object
56388
+ // info then it is not synthesized. We force it to be synthesized here to
56389
+ // ensure lightning-record-form will work correctly with draft-created
56390
+ // accounts.
56391
+ if ((apiName === 'Account' || apiName === 'PersonAccount') &&
56392
+ draftFields['IsPersonAccount'] === undefined) {
56393
+ draftFields['IsPersonAccount'] = { value: null, displayValue: null };
56279
56394
  }
56280
56395
  return {
56281
56396
  id: recordId,
@@ -59482,7 +59597,7 @@
59482
59597
  if (representationName === RepresentationType$U) {
59483
59598
  incomingRecords.add(key);
59484
59599
  }
59485
- else if (representationName === RepresentationType$P) {
59600
+ else if (representationName === RepresentationType$N) {
59486
59601
  incomingObjectInfos.add(key);
59487
59602
  }
59488
59603
  }
@@ -60539,6 +60654,7 @@
60539
60654
  function buildFieldUnionArray(existingRecord, incomingRecord, objectInfo) {
60540
60655
  const allFields = Array.from(new Set([...Object.keys(existingRecord.fields), ...Object.keys(incomingRecord.fields)]));
60541
60656
  const fieldUnion = [];
60657
+ let includesSpanningFields = false;
60542
60658
  allFields.forEach((fieldName) => {
60543
60659
  const objectInfoField = objectInfo.fields[fieldName];
60544
60660
  if (objectInfoField === undefined) {
@@ -60546,13 +60662,14 @@
60546
60662
  const referenceField = findReferenceFieldForSpanningField(fieldName, objectInfo);
60547
60663
  if (referenceField !== undefined) {
60548
60664
  fieldUnion.push(`${fieldName}.Id`);
60665
+ includesSpanningFields = true;
60549
60666
  }
60550
60667
  }
60551
60668
  else {
60552
60669
  fieldUnion.push(fieldName);
60553
60670
  }
60554
60671
  });
60555
- return fieldUnion;
60672
+ return { fields: fieldUnion, includesSpanningFields };
60556
60673
  }
60557
60674
  /**
60558
60675
  * Merges (if possible) an incoming record from a priming session with an existing record in the durable store.
@@ -60584,7 +60701,7 @@
60584
60701
  ok: false,
60585
60702
  code: 'conflict-drafts',
60586
60703
  hasDraft: true,
60587
- fieldUnion: buildFieldUnionArray(existingRecord, incomingRecord, objectInfo),
60704
+ fieldUnion: buildFieldUnionArray(existingRecord, incomingRecord, objectInfo).fields,
60588
60705
  };
60589
60706
  }
60590
60707
  // Check if incoming record's Etag is equal to the existing one
@@ -60646,10 +60763,19 @@
60646
60763
  };
60647
60764
  }
60648
60765
  // If Etags do not match and the incoming record does not contain all fields, re-request the record
60766
+ const { fields, includesSpanningFields } = buildFieldUnionArray(existingRecord, incomingRecord, objectInfo);
60767
+ if (includesSpanningFields) {
60768
+ return {
60769
+ ok: false,
60770
+ code: 'conflict-spanning-record',
60771
+ fieldUnion: fields,
60772
+ hasDraft: false,
60773
+ };
60774
+ }
60649
60775
  return {
60650
60776
  ok: false,
60651
60777
  code: 'conflict-missing-fields',
60652
- fieldUnion: buildFieldUnionArray(existingRecord, incomingRecord, objectInfo),
60778
+ fieldUnion: fields,
60653
60779
  hasDraft: false,
60654
60780
  };
60655
60781
  }
@@ -61697,7 +61823,7 @@
61697
61823
  id: '@salesforce/lds-network-adapter',
61698
61824
  instrument: instrument$2,
61699
61825
  });
61700
- // version: 1.274.0-67da496e8
61826
+ // version: 1.276.0-dcebc4076
61701
61827
 
61702
61828
  const { create: create$3, keys: keys$3 } = Object;
61703
61829
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -79457,8 +79583,7 @@
79457
79583
  function typeCheckConfig(untrustedConfig) {
79458
79584
  const config = {};
79459
79585
  const untrustedConfig_batchQuery = untrustedConfig.batchQuery;
79460
- if (untrustedConfig_batchQuery !== undefined &&
79461
- ArrayIsArray(untrustedConfig_batchQuery)) {
79586
+ if (untrustedConfig_batchQuery !== undefined && ArrayIsArray(untrustedConfig_batchQuery)) {
79462
79587
  const untrustedConfig_batchQuery_array = [];
79463
79588
  for (let i = 0, arrayLength = untrustedConfig_batchQuery.length; i < arrayLength; i++) {
79464
79589
  const untrustedConfig_batchQuery_item = untrustedConfig_batchQuery[i];
@@ -80092,7 +80217,7 @@
80092
80217
  configuration: { ...configurationForGraphQLAdapters$1 },
80093
80218
  instrument: instrument$1,
80094
80219
  });
80095
- // version: 1.274.0-a59680ec1
80220
+ // version: 1.276.0-58fd72593
80096
80221
 
80097
80222
  // On core the unstable adapters are re-exported with different names,
80098
80223
  // we want to match them here.
@@ -82346,7 +82471,7 @@
82346
82471
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
82347
82472
  graphQLImperative = ldsAdapter;
82348
82473
  });
82349
- // version: 1.274.0-a59680ec1
82474
+ // version: 1.276.0-58fd72593
82350
82475
 
82351
82476
  var gqlApi = /*#__PURE__*/Object.freeze({
82352
82477
  __proto__: null,
@@ -83044,7 +83169,7 @@
83044
83169
  function register(r) {
83045
83170
  callbacks$1.forEach((callback) => callback(r));
83046
83171
  }
83047
- // version: 1.274.0-67da496e8
83172
+ // version: 1.276.0-dcebc4076
83048
83173
 
83049
83174
  /**
83050
83175
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -87967,4 +88092,4 @@
87967
88092
  exports.subscribeToAdapter = subscribeToAdapter;
87968
88093
 
87969
88094
  }));
87970
- // version: 1.274.0-67da496e8
88095
+ // version: 1.276.0-dcebc4076