@salesforce/lds-worker-api 1.286.0 → 1.287.0-dev10

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.
@@ -898,6 +898,9 @@ class StringKeyInMemoryStore {
898
898
  delete this.records[canonicalKey];
899
899
  this.markVisited(canonicalKey);
900
900
  }
901
+ cleanup() {
902
+ this.scheduleTrim();
903
+ }
901
904
  /**
902
905
  * Deallocates data at the canonical key location for in-memory (L1) cache
903
906
  * @param key key to deallocate
@@ -1600,6 +1603,11 @@ class InMemoryStore {
1600
1603
  this.recordsMap.delete(canonicalKey);
1601
1604
  this.markVisited(canonicalKey);
1602
1605
  }
1606
+ cleanup() {
1607
+ if (this.fallbackStringKeyInMemoryStore.pendingTrimKeys.size > 0) {
1608
+ this.fallbackStringKeyInMemoryStore.cleanup();
1609
+ }
1610
+ }
1603
1611
  /**
1604
1612
  * Deallocates data at the canonical key location for in-memory (L1) cache
1605
1613
  * @param key key to deallocate
@@ -2087,7 +2095,7 @@ const onlyIfCachedImplementation = function (args) {
2087
2095
  headers: {},
2088
2096
  ok: false,
2089
2097
  status: HttpStatusCode$1.GatewayTimeout,
2090
- statusText: 'Gateway Timeout',
2098
+ statusText: 'Data requested with only-if-cached policy and not found in the cache.',
2091
2099
  errorType: 'fetchResponse',
2092
2100
  }, refresh);
2093
2101
  });
@@ -3405,6 +3413,9 @@ class Environment {
3405
3413
  storeLookup(sel, createSnapshot, refresh, ttlStrategy) {
3406
3414
  return this.store.lookup(sel, createSnapshot, refresh, ttlStrategy);
3407
3415
  }
3416
+ storeCleanup() {
3417
+ this.store.cleanup();
3418
+ }
3408
3419
  storeEvict(key) {
3409
3420
  this.store.evict(key);
3410
3421
  }
@@ -3674,6 +3685,9 @@ class Luvio {
3674
3685
  storeEvict(key) {
3675
3686
  this.environment.storeEvict(key);
3676
3687
  }
3688
+ storeCleanup() {
3689
+ this.environment.storeCleanup();
3690
+ }
3677
3691
  createSnapshot(selector, refresh) {
3678
3692
  return this.environment.createSnapshot(selector, refresh);
3679
3693
  }
@@ -4062,7 +4076,7 @@ function createResourceParamsImpl(config, configMetadata) {
4062
4076
  }
4063
4077
  return resourceParams;
4064
4078
  }
4065
- // engine version: 0.154.16-5cc35392
4079
+ // engine version: 0.154.17-dev2-5c176528
4066
4080
 
4067
4081
  /**
4068
4082
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -4190,7 +4204,7 @@ function withDefaultLuvio(callback) {
4190
4204
  }
4191
4205
  callbacks.push(callback);
4192
4206
  }
4193
- // version: 1.286.0-09e7e5207
4207
+ // version: 1.287.0-dev10-0c7922050
4194
4208
 
4195
4209
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4196
4210
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15698,7 +15712,7 @@ function gql(literals, ...subs) {
15698
15712
  }
15699
15713
  return superResult;
15700
15714
  }
15701
- // version: 1.286.0-09e7e5207
15715
+ // version: 1.287.0-dev10-0c7922050
15702
15716
 
15703
15717
  function unwrap(data) {
15704
15718
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16356,12 +16370,16 @@ function createImperativeAdapter(luvio, adapter, metadata) {
16356
16370
  callback(snapshotToTuple$1(snapshotOrPromise));
16357
16371
  return;
16358
16372
  }
16359
- snapshotOrPromise.then((snapshot) => {
16373
+ snapshotOrPromise
16374
+ .then((snapshot) => {
16360
16375
  if (snapshot === null) {
16361
16376
  callback(createInvalidConfigError$1());
16362
16377
  return;
16363
16378
  }
16364
16379
  callback(snapshotToTuple$1(snapshot));
16380
+ })
16381
+ .finally(() => {
16382
+ luvio.storeCleanup();
16365
16383
  });
16366
16384
  };
16367
16385
  defineProperty(imperativeAdapterInvoke, 'name', {
@@ -16623,7 +16641,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16623
16641
  const { apiFamily, name } = metadata;
16624
16642
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16625
16643
  }
16626
- // version: 1.286.0-09e7e5207
16644
+ // version: 1.287.0-dev10-0c7922050
16627
16645
 
16628
16646
  /**
16629
16647
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16722,7 +16740,7 @@ var TypeCheckShapes;
16722
16740
  TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
16723
16741
  TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
16724
16742
  })(TypeCheckShapes || (TypeCheckShapes = {}));
16725
- // engine version: 0.154.16-5cc35392
16743
+ // engine version: 0.154.17-dev2-5c176528
16726
16744
 
16727
16745
  const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
16728
16746
 
@@ -16844,6 +16862,10 @@ let oneStoreGetObjectInfoAdapter$2 = undefined;
16844
16862
  * One store enabled Get Object Infos adapter
16845
16863
  */
16846
16864
  let oneStoreGetObjectInfosAdapter$2 = undefined;
16865
+ /**
16866
+ * Determines when to include PDL strategies for Related Lists
16867
+ */
16868
+ let relatedListsPredictionsEnabled$2 = false;
16847
16869
  /**
16848
16870
  * Defines the configuration API and is exposed internally as well as externally.
16849
16871
  * Configuration for one store enabled REST adapters only.
@@ -16928,6 +16950,12 @@ const configurationForRestAdapters$2 = {
16928
16950
  getDraftAwareCreateContentDocumentAndVersionAdapter: function () {
16929
16951
  return draftAwareCreateContentDocumentAndVersionAdapter$2;
16930
16952
  },
16953
+ setRelatedListsPredictionsEnabled: function (f) {
16954
+ relatedListsPredictionsEnabled$2 = f;
16955
+ },
16956
+ areRelatedListsPredictionsEnabled: function () {
16957
+ return relatedListsPredictionsEnabled$2 === true;
16958
+ },
16931
16959
  // createContentVersion
16932
16960
  setDraftAwareCreateContentVersionAdapter: function (adapter) {
16933
16961
  draftAwareCreateContentVersionAdapter$2 = adapter;
@@ -17044,6 +17072,16 @@ function createLDSAdapterWithPrediction(adapter, luvio, name) {
17044
17072
  return result;
17045
17073
  };
17046
17074
  }
17075
+ function createRelatedListAdapterWithPrediction(adapter, luvio, name) {
17076
+ if (configurationForRestAdapters$2.areRelatedListsPredictionsEnabled() /* gate is open */) {
17077
+ return createLDSAdapterWithPrediction(adapter, luvio, name);
17078
+ }
17079
+ else {
17080
+ return (config, requestContext) => {
17081
+ return adapter(config, requestContext);
17082
+ };
17083
+ }
17084
+ }
17047
17085
 
17048
17086
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty$2 } = Object.prototype;
17049
17087
  const { keys: ObjectKeys$1$2, create: ObjectCreate$1$2 } = Object;
@@ -17692,20 +17730,23 @@ function getTypeCacheKeys$Z$1(rootKeySet, luvio, input, fullPathFactory) {
17692
17730
  });
17693
17731
  }
17694
17732
 
17733
+ const keyBuilderFromType$E = function ListInfoRepresentationKeyBuilderFromType(luvio, object) {
17734
+ const keyParams = {
17735
+ listViewApiName: object.listReference.listViewApiName
17736
+ ? object.listReference.listViewApiName.toLowerCase()
17737
+ : object.listReference.listViewApiName,
17738
+ objectApiName: object.listReference.objectApiName.toLowerCase(),
17739
+ type: object.listReference.type,
17740
+ };
17741
+ return keyBuilder$27(luvio, keyParams);
17742
+ };
17743
+
17695
17744
  const TTL$A = 900000;
17696
17745
  const VERSION$1e$1 = "c658fe1591386d570e214eaed0daadd1";
17697
17746
  const RepresentationType$X = 'ListInfoRepresentation';
17698
17747
  function keyBuilder$27(luvio, config) {
17699
17748
  return keyPrefix$2 + '::' + RepresentationType$X + ':' + (config.listViewApiName === null ? '' : config.listViewApiName) + ':' + config.objectApiName + ':' + config.type;
17700
17749
  }
17701
- function keyBuilderFromType$E(luvio, object) {
17702
- const keyParams = {
17703
- listViewApiName: object.listReference.listViewApiName,
17704
- objectApiName: object.listReference.objectApiName,
17705
- type: object.listReference.type
17706
- };
17707
- return keyBuilder$27(luvio, keyParams);
17708
- }
17709
17750
  function normalize$Q(input, existing, path, luvio, store, timestamp) {
17710
17751
  const input_displayColumns = input.displayColumns;
17711
17752
  const input_displayColumns_id = path.fullPath + '__displayColumns';
@@ -21693,21 +21734,24 @@ function tokenForAtMost$1(paginationMetadata, maxOffset) {
21693
21734
  return [tokenResult, offsetResult];
21694
21735
  }
21695
21736
 
21696
- const TTL$x = 30000;
21697
- const VERSION$18$1 = "e5c90c4081cd557f8ffec53028ede1e8";
21698
- const RepresentationType$T = 'ListRecordCollectionRepresentation';
21699
- function keyBuilder$23(luvio, config) {
21700
- return keyPrefix$2 + '::' + RepresentationType$T + ':' + config.objectApiName + ':' + (config.searchTerm === null ? '' : config.searchTerm) + ':' + (config.sortBy === null ? '' : '[' + config.sortBy.join(',') + ']') + ':' + (config.where === null ? '' : config.where) + ':' + (config.listViewApiName === null ? '' : config.listViewApiName);
21701
- }
21702
- function keyBuilderFromType$B(luvio, object) {
21737
+ const keyBuilderFromType$B = function ListRecordCollectionRepresentationKeyBuilderFromType(luvio, object) {
21703
21738
  const keyParams = {
21704
- objectApiName: object.listReference.objectApiName,
21739
+ objectApiName: object.listReference.objectApiName.toLowerCase(),
21705
21740
  searchTerm: object.searchTerm,
21706
21741
  sortBy: object.sortBy,
21707
21742
  where: object.where,
21708
21743
  listViewApiName: object.listReference.listViewApiName
21744
+ ? object.listReference.listViewApiName.toLowerCase()
21745
+ : object.listReference.listViewApiName,
21709
21746
  };
21710
21747
  return keyBuilder$23(luvio, keyParams);
21748
+ };
21749
+
21750
+ const TTL$x = 30000;
21751
+ const VERSION$18$1 = "e5c90c4081cd557f8ffec53028ede1e8";
21752
+ const RepresentationType$T = 'ListRecordCollectionRepresentation';
21753
+ function keyBuilder$23(luvio, config) {
21754
+ return keyPrefix$2 + '::' + RepresentationType$T + ':' + config.objectApiName + ':' + (config.searchTerm === null ? '' : config.searchTerm) + ':' + (config.sortBy === null ? '' : '[' + config.sortBy.join(',') + ']') + ':' + (config.where === null ? '' : config.where) + ':' + (config.listViewApiName === null ? '' : config.listViewApiName);
21711
21755
  }
21712
21756
  function paginationKeyBuilder(luvio, config) {
21713
21757
  return keyBuilder$23(luvio, config) + '__pagination';
@@ -22717,8 +22761,8 @@ const LIST_SUMMARY_PREFIX = keyPrefix$2 + '::' + RepresentationType$Q;
22717
22761
  let listRecordCollectionCache = new Map();
22718
22762
  let listSummaryCollectionCache = new Map();
22719
22763
  function getListRecordCollectionKeys(objectApiName, listViewApiName) {
22720
- const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName) || new Map();
22721
- const keys = cacheEntriesByObjectApiName.get(listViewApiName) || [];
22764
+ const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName.toLowerCase()) || new Map();
22765
+ const keys = cacheEntriesByObjectApiName.get(listViewApiName.toLowerCase()) || [];
22722
22766
  return [...keys];
22723
22767
  }
22724
22768
  function getListSummaryCollectionKeys(objectApiName, recentLists = undefined) {
@@ -22750,8 +22794,8 @@ function addListSummaryCollectionKey(objectApiName, recentLists, key) {
22750
22794
  keys.add(key);
22751
22795
  }
22752
22796
  function removeListRecordCollectionKeys(objectApiName, listViewApiName) {
22753
- const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName) || new Map();
22754
- cacheEntriesByObjectApiName.delete(listViewApiName);
22797
+ const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName.toLowerCase()) || new Map();
22798
+ cacheEntriesByObjectApiName.delete(listViewApiName.toLowerCase());
22755
22799
  }
22756
22800
  function removeListSummaryCollectionKeys(objectApiName, recentLists = undefined) {
22757
22801
  const cacheEntriesByObjectApiName = listSummaryCollectionCache.get(objectApiName) || new Map();
@@ -22803,7 +22847,7 @@ function buildListRefByIdContextKey(listViewId) {
22803
22847
  return `listReferenceById::${listViewId}`;
22804
22848
  }
22805
22849
  function buildListRefByApiNameContextKey(objectApiName, listViewApiName) {
22806
- return `listReferenceByApiName::${objectApiName}:${listViewApiName}`;
22850
+ return `listReferenceByApiName::${objectApiName.toLowerCase()}:${listViewApiName.toLowerCase()}`;
22807
22851
  }
22808
22852
  /**
22809
22853
  * Adds a list reference so it can be retrieved with #getListReference later.
@@ -22859,7 +22903,12 @@ const LIST_INFO_SELECTIONS_ETAG = [
22859
22903
  * @param luvio Luvio
22860
22904
  */
22861
22905
  function getListInfo(luvio, listRef, storeLookup) {
22862
- const key = keyBuilder$27(luvio, { ...listRef });
22906
+ let mutatedListRef = { ...listRef };
22907
+ mutatedListRef.objectApiName = mutatedListRef.objectApiName.toLowerCase();
22908
+ mutatedListRef.listViewApiName = mutatedListRef.listViewApiName
22909
+ ? mutatedListRef.listViewApiName.toLowerCase()
22910
+ : mutatedListRef.listViewApiName;
22911
+ const key = keyBuilder$27(luvio, { ...mutatedListRef });
22863
22912
  return storeLookup({
22864
22913
  recordId: key,
22865
22914
  node: {
@@ -22873,7 +22922,7 @@ function getListInfo(luvio, listRef, storeLookup) {
22873
22922
  }
22874
22923
  function buildDefaultsKey(listRef) {
22875
22924
  const { objectApiName, listViewApiName } = listRef;
22876
- return `defaults::${objectApiName}:${listViewApiName}`;
22925
+ return `defaults::${objectApiName.toLowerCase()}:${listViewApiName ? listViewApiName.toLowerCase() : listViewApiName}`;
22877
22926
  }
22878
22927
  /**
22879
22928
  * Update the default values based on a server response.
@@ -23048,9 +23097,11 @@ function setContext$1(adapterContext) {
23048
23097
  context$1 = adapterContext;
23049
23098
  }
23050
23099
  function keyBuilder$1$(luvio, params) {
23100
+ // lists data can now be fetched using case insensitive urlParams therefore
23101
+ // also changing contextStore to use lowercase caching
23051
23102
  const query = {
23052
- objectApiName: params.urlParams.objectApiName,
23053
- listViewApiName: params.urlParams.listViewApiName,
23103
+ objectApiName: params.urlParams.objectApiName.toLowerCase(),
23104
+ listViewApiName: params.urlParams.listViewApiName.toLowerCase(),
23054
23105
  };
23055
23106
  // Fetch listReference from internal store to better ensure a cache hit regardless of listViewApiName or listViewId
23056
23107
  const listReference = getListReference(query, context$1);
@@ -23060,8 +23111,10 @@ function keyBuilder$1$(luvio, params) {
23060
23111
  const defaults = getServerDefaults(config, context$1);
23061
23112
  // Use default values when sortBy is undefined or an empty Array []
23062
23113
  return keyBuilder$23(luvio, {
23063
- objectApiName: listReference.objectApiName,
23064
- listViewApiName: listReference.listViewApiName,
23114
+ objectApiName: listReference.objectApiName.toLowerCase(),
23115
+ listViewApiName: listReference.listViewApiName
23116
+ ? listReference.listViewApiName.toLowerCase()
23117
+ : listReference.listViewApiName,
23065
23118
  // # removing listViewId from key only supporing getting records using api name
23066
23119
  // listViewId: listReference.id,
23067
23120
  searchTerm: params.body.searchTerm || null,
@@ -23074,8 +23127,8 @@ function keyBuilder$1$(luvio, params) {
23074
23127
  // If there are no matching entries in the store, then we haven't fetched any data for this list view yet.
23075
23128
  // Assuming that listViewId is empty and continue on
23076
23129
  return keyBuilder$23(luvio, {
23077
- objectApiName: params.urlParams.objectApiName,
23078
- listViewApiName: params.urlParams.listViewApiName,
23130
+ objectApiName: params.urlParams.objectApiName.toLowerCase(),
23131
+ listViewApiName: params.urlParams.listViewApiName.toLowerCase(),
23079
23132
  // # removing listViewId from key only supporing getting records using api name
23080
23133
  // listViewId: '',
23081
23134
  searchTerm: params.body.searchTerm || null,
@@ -24022,8 +24075,10 @@ function prepareRequest_getMruListRecords(luvio, config, listInfo, snapshot) {
24022
24075
  searchTerm: null,
24023
24076
  where: null,
24024
24077
  sortBy: config.sortBy === undefined ? null : config.sortBy,
24025
- objectApiName: listInfo.listReference.objectApiName,
24026
- listViewApiName: listInfo.listReference.listViewApiName,
24078
+ objectApiName: listInfo.listReference.objectApiName.toLowerCase(),
24079
+ listViewApiName: listInfo.listReference.listViewApiName
24080
+ ? listInfo.listReference.listViewApiName.toLowerCase()
24081
+ : listInfo.listReference.listViewApiName,
24027
24082
  });
24028
24083
  const selector = {
24029
24084
  recordId: paginationKey,
@@ -24070,8 +24125,10 @@ function onResourceSuccess_getMruListRecords(luvio, config, listInfo, response)
24070
24125
  searchTerm: null,
24071
24126
  where: null,
24072
24127
  sortBy: body.sortBy,
24073
- objectApiName: listInfo.listReference.objectApiName,
24074
- listViewApiName: listInfo.listReference.listViewApiName,
24128
+ objectApiName: listInfo.listReference.objectApiName.toLowerCase(),
24129
+ listViewApiName: listInfo.listReference.listViewApiName
24130
+ ? listInfo.listReference.listViewApiName.toLowerCase()
24131
+ : listInfo.listReference.listViewApiName,
24075
24132
  }), ingest$M$1, body);
24076
24133
  const snapshot = buildCachedSnapshot$8(luvio, luvio.storeLookup.bind(luvio), config, listInfo, fields);
24077
24134
  return luvio.storeBroadcast().then(() => snapshot);
@@ -24119,7 +24176,7 @@ function buildCachedListInfoSnapshot$1(context, storeLookup, luvio) {
24119
24176
  return getListInfo(luvio, {
24120
24177
  id: null,
24121
24178
  listViewApiName: null,
24122
- objectApiName: config.objectApiName,
24179
+ objectApiName: config.objectApiName.toLowerCase(),
24123
24180
  type: 'mru',
24124
24181
  }, storeLookup);
24125
24182
  }
@@ -24405,8 +24462,10 @@ function prepareRequest_getListRecords(luvio, context, config, listInfo, snapsho
24405
24462
  searchTerm: null,
24406
24463
  where: null,
24407
24464
  sortBy: getSortBy(config, context),
24408
- objectApiName: listInfo.listReference.objectApiName,
24409
- listViewApiName: listInfo.listReference.listViewApiName,
24465
+ objectApiName: listInfo.listReference.objectApiName.toLowerCase(),
24466
+ listViewApiName: listInfo.listReference.listViewApiName
24467
+ ? listInfo.listReference.listViewApiName.toLowerCase()
24468
+ : listInfo.listReference.listViewApiName,
24410
24469
  });
24411
24470
  const selector = {
24412
24471
  recordId: paginationKey,
@@ -24456,8 +24515,10 @@ function onResourceSuccess_getListRecords(luvio, context, config, listInfo, resp
24456
24515
  searchTerm: null,
24457
24516
  where: null,
24458
24517
  sortBy: body.sortBy,
24459
- objectApiName: listInfo.listReference.objectApiName,
24460
- listViewApiName: listInfo.listReference.listViewApiName,
24518
+ objectApiName: listInfo.listReference.objectApiName.toLowerCase(),
24519
+ listViewApiName: listInfo.listReference.listViewApiName
24520
+ ? listInfo.listReference.listViewApiName.toLowerCase()
24521
+ : listInfo.listReference.listViewApiName,
24461
24522
  }), ingest$M$1, body);
24462
24523
  const snapshot = buildCachedSnapshot$7(luvio, luvio.storeLookup.bind(luvio), context, config, listInfo, fields);
24463
24524
  releaseKeys();
@@ -26380,8 +26441,14 @@ const notifyUpdateAvailableFactory$1 = (luvio) => {
26380
26441
  // We automatically set the type based on the listViewApiName, and we need to do the same
26381
26442
  // here for key matching and validation
26382
26443
  configs.forEach((config) => {
26444
+ config.listViewApiName = config.listViewApiName
26445
+ ? config.listViewApiName.toLowerCase()
26446
+ : config.listViewApiName;
26447
+ config.objectApiName = config.objectApiName
26448
+ ? config.objectApiName.toLowerCase()
26449
+ : config.objectApiName;
26383
26450
  if (!config.type) {
26384
- config.type = config.listViewApiName === '__Recent' ? 'mru' : 'listView';
26451
+ config.type = config.listViewApiName === '__recent' ? 'mru' : 'listView';
26385
26452
  }
26386
26453
  });
26387
26454
  return generated_notifyUpdateAvailable(configs);
@@ -30921,9 +30988,9 @@ const getLayoutUserStateAdapterFactory = (luvio) => function UiApi__getLayoutUse
30921
30988
 
30922
30989
  function keyBuilder$1c$1(luvio, params) {
30923
30990
  return keyBuilder$27(luvio, {
30924
- objectApiName: params.urlParams.objectApiName,
30925
- listViewApiName: params.urlParams.listViewApiName,
30926
- type: params.urlParams.listViewApiName === '__Recent' ? 'mru' : 'listView',
30991
+ objectApiName: params.urlParams.objectApiName.toLowerCase(),
30992
+ listViewApiName: params.urlParams.listViewApiName.toLowerCase(),
30993
+ type: params.urlParams.listViewApiName.toLowerCase() === '__recent' ? 'mru' : 'listView',
30927
30994
  });
30928
30995
  }
30929
30996
 
@@ -43854,13 +43921,13 @@ function bindExportsTo$1(luvio) {
43854
43921
  const getRelatedListActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListActions', getRelatedListActionsAdapterFactory), getRelatedListActionsMetadata);
43855
43922
  const getRelatedListCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListCount', getRelatedListCountAdapterFactory), getRelatedListCountMetadata);
43856
43923
  const getRelatedListInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListInfo', getRelatedListInfoAdapterFactory), getRelatedListInfoMetadata);
43857
- const getRelatedListInfoBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListInfoBatch', getRelatedListInfoBatchAdapterFactory), luvio, 'getRelatedListInfoBatch'), getRelatedListInfoBatchMetadata);
43924
+ const getRelatedListInfoBatch_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListInfoBatch', getRelatedListInfoBatchAdapterFactory), luvio, 'getRelatedListInfoBatch'), getRelatedListInfoBatchMetadata);
43858
43925
  const getRelatedListPreferences_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferences', getRelatedListPreferencesAdapterFactory), getRelatedListPreferencesMetadata);
43859
43926
  const getRelatedListPreferencesBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferencesBatch', getRelatedListPreferencesBatchAdapterFactory), getRelatedListPreferencesBatchMetadata);
43860
43927
  const getRelatedListRecordActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListRecordActions', getRelatedListRecordActionsAdapterFactory), getRelatedListRecordActionsMetadata);
43861
- const getRelatedListRecords_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecords', getRelatedListRecordsAdapterFactory), luvio, 'getRelatedListRecords'), getRelatedListRecordsMetadata);
43862
- const getRelatedListRecordsBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecordsBatch', getRelatedListRecordsBatchAdapterFactory), luvio, 'getRelatedListRecordsBatch'), getRelatedListRecordsBatchMetadata);
43863
- const getRelatedListsActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListsActions', getRelatedListsActionsAdapterFactory), luvio, 'getRelatedListsActions'), getRelatedListsActionsMetadata);
43928
+ const getRelatedListRecords_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecords', getRelatedListRecordsAdapterFactory), luvio, 'getRelatedListRecords'), getRelatedListRecordsMetadata);
43929
+ const getRelatedListRecordsBatch_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecordsBatch', getRelatedListRecordsBatchAdapterFactory), luvio, 'getRelatedListRecordsBatch'), getRelatedListRecordsBatchMetadata);
43930
+ const getRelatedListsActions_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListsActions', getRelatedListsActionsAdapterFactory), luvio, 'getRelatedListsActions'), getRelatedListsActionsMetadata);
43864
43931
  const getRelatedListsCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListsCount', getRelatedListsCountAdapterFactory), getRelatedListsCountMetadata);
43865
43932
  const getRelatedListsInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListsInfo', getRelatedListsInfoAdapterFactory), getRelatedListsInfoMetadata);
43866
43933
  const getSearchFilterMetadata_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchFilterMetadata', getSearchFilterMetadataAdapterFactory), getSearchFilterMetadataMetadata);
@@ -44164,7 +44231,7 @@ withDefaultLuvio((luvio) => {
44164
44231
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
44165
44232
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
44166
44233
  });
44167
- // version: 1.286.0-27bef7c46
44234
+ // version: 1.287.0-dev10-32adad9f2
44168
44235
 
44169
44236
  var ldsIdempotencyWriteDisabled = {
44170
44237
  isOpen: function (e) {
@@ -44323,6 +44390,15 @@ var ldsPrimingGraphqlBatch = {
44323
44390
  },
44324
44391
  };
44325
44392
 
44393
+ var aggressiveTrimLowLimitGate = {
44394
+ isOpen: function (e) {
44395
+ return e.fallback;
44396
+ },
44397
+ hasError: function () {
44398
+ return !0;
44399
+ },
44400
+ };
44401
+
44326
44402
  var ldsMetadataRefreshEnabled = {
44327
44403
  isOpen: function (e) {
44328
44404
  return e.fallback;
@@ -45473,7 +45549,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
45473
45549
  // because we do not want some other code attempting to use the
45474
45550
  // in-memory values before the durable store onChanged handler
45475
45551
  // calls back and revives the values to in-memory
45476
- environment.storeEvict(key);
45552
+ environment.storeDealloc(key);
45477
45553
  };
45478
45554
  const publishStoreMetadata = function (recordId, storeMetadata) {
45479
45555
  validateNotDisposed();
@@ -56847,7 +56923,7 @@ function applyReferenceLinksToDraft(record, draftMetadata) {
56847
56923
  const referencedRecord = referencedRecords.get(key);
56848
56924
  recordFields[relationshipName] = {
56849
56925
  displayValue: null,
56850
- value: createLink$2(key),
56926
+ value: createLink$1$1(key),
56851
56927
  };
56852
56928
  // for custom objects, we select the 'Name' field
56853
56929
  // otherwise we check the object info for name fields.
@@ -56875,7 +56951,7 @@ function applyReferenceLinksToDraft(record, draftMetadata) {
56875
56951
  }
56876
56952
  return { ...record, fields: recordFields };
56877
56953
  }
56878
- function createLink$2(key) {
56954
+ function createLink$1$1(key) {
56879
56955
  return { __ref: key };
56880
56956
  }
56881
56957
  function getReferenceInfoForKey(fieldName, field, luvio, objectInfo) {
@@ -56890,7 +56966,7 @@ function getReferenceInfoForKey(fieldName, field, luvio, objectInfo) {
56890
56966
  referenceFieldName: relationshipName,
56891
56967
  field: {
56892
56968
  displayValue: null,
56893
- value: createLink$2(key),
56969
+ value: createLink$1$1(key),
56894
56970
  },
56895
56971
  };
56896
56972
  }
@@ -57353,6 +57429,9 @@ function isBackdatingFieldEditable(objectInfo, backdatingFieldName, attributeNam
57353
57429
  !draftActionFieldNames.includes(backdatingFieldName));
57354
57430
  }
57355
57431
 
57432
+ function createLink$2(key) {
57433
+ return { __ref: key };
57434
+ }
57356
57435
  /**
57357
57436
  * Records are stored in the durable store with scalar fields denormalized. This function takes that denoramlized
57358
57437
  * durable store record representation and normalizes it back out into the format the the luvio store expects it
@@ -57363,26 +57442,25 @@ function isBackdatingFieldEditable(objectInfo, backdatingFieldName, attributeNam
57363
57442
  function normalizeRecordFields(key, entry) {
57364
57443
  const { data: record } = entry;
57365
57444
  const { fields, links } = record;
57366
- const linkNames = keys$3$1(links);
57445
+ const missingFieldLinks = keys$3$1(links);
57446
+ const fieldNames = keys$3$1(fields);
57367
57447
  const normalizedFields = {};
57368
57448
  const returnEntries = {};
57369
- for (let i = 0, len = linkNames.length; i < len; i++) {
57370
- const fieldName = linkNames[i];
57449
+ // restore fields
57450
+ for (let i = 0, len = fieldNames.length; i < len; i++) {
57451
+ const fieldName = fieldNames[i];
57371
57452
  const field = fields[fieldName];
57453
+ const fieldKey = buildRecordFieldStoreKey(key, fieldName);
57454
+ returnEntries[fieldKey] = { data: field };
57455
+ normalizedFields[fieldName] = createLink$2(fieldKey);
57456
+ }
57457
+ // restore missing fields
57458
+ for (let i = 0, len = missingFieldLinks.length; i < len; i++) {
57459
+ const fieldName = missingFieldLinks[i];
57372
57460
  const link = links[fieldName];
57373
- // field is undefined for missing links
57374
- if (field !== undefined) {
57375
- const fieldKey = buildRecordFieldStoreKey(key, fieldName);
57376
- returnEntries[fieldKey] = { data: field };
57377
- }
57378
- // we need to restore the undefined __ref node as it is
57379
- // lost during serialization
57380
57461
  if (link.isMissing === true) {
57381
57462
  normalizedFields[fieldName] = { ...link, __ref: undefined };
57382
57463
  }
57383
- else {
57384
- normalizedFields[fieldName] = link;
57385
- }
57386
57464
  }
57387
57465
  returnEntries[key] = {
57388
57466
  data: assign$3(record, { fields: normalizedFields }),
@@ -57444,7 +57522,7 @@ function buildDurableRecordRepresentation(normalizedRecord, records, pendingEntr
57444
57522
  }
57445
57523
  }
57446
57524
  // we want to preserve fields that are missing nodes
57447
- if (filteredFields[fieldName] !== undefined || field.isMissing === true) {
57525
+ if (field.isMissing === true) {
57448
57526
  links[fieldName] = field;
57449
57527
  }
57450
57528
  }
@@ -57463,7 +57541,7 @@ function getDenormalizedKey(originalKey, recordId, luvio) {
57463
57541
  }
57464
57542
  return keyBuilder$26(luvio, { recordId });
57465
57543
  }
57466
- function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecords, getStoreMetadata, getStore) {
57544
+ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecords, getStoreMetadata, getStore, sqlStore) {
57467
57545
  const getEntries = function (entries, segment) {
57468
57546
  // this HOF only inspects records in the default segment
57469
57547
  if (segment !== DefaultDurableSegment) {
@@ -57525,7 +57603,10 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
57525
57603
  });
57526
57604
  };
57527
57605
  const denormalizeEntries = function (entries) {
57606
+ let hasEntries = false;
57607
+ let hasMetadata = false;
57528
57608
  const putEntries = create$3$1(null);
57609
+ const putMetadata = create$3$1(null);
57529
57610
  const keys$1 = keys$3$1(entries);
57530
57611
  const putRecords = {};
57531
57612
  const putRecordViews = {};
@@ -57568,6 +57649,7 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
57568
57649
  putRecords[recordId] = true;
57569
57650
  }
57570
57651
  if (isStoreRecordError(record)) {
57652
+ hasEntries = true;
57571
57653
  putEntries[recordKey] = value;
57572
57654
  continue;
57573
57655
  }
@@ -57580,24 +57662,43 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
57580
57662
  }
57581
57663
  const denormalizedRecord = buildDurableRecordRepresentation(record, storeRecords, recordEntries, store);
57582
57664
  if (denormalizedRecord !== undefined) {
57665
+ hasEntries = true;
57583
57666
  putEntries[recordKey] = {
57584
57667
  data: denormalizedRecord,
57585
57668
  metadata,
57586
57669
  };
57670
+ // if undefined then it is pending
57671
+ // we should still update metadata on pending records
57672
+ }
57673
+ else {
57674
+ hasMetadata = true;
57675
+ metadata.expirationTimestamp = metadata.ingestionTimestamp;
57676
+ putMetadata[recordKey] = {
57677
+ metadata,
57678
+ };
57587
57679
  }
57588
57680
  }
57589
57681
  else {
57682
+ hasEntries = true;
57590
57683
  putEntries[key] = value;
57591
57684
  }
57592
57685
  }
57593
- return putEntries;
57686
+ return { putEntries, putMetadata, hasEntries, hasMetadata };
57594
57687
  };
57595
57688
  const setEntries = function (entries, segment) {
57596
57689
  if (segment !== DefaultDurableSegment) {
57597
57690
  return durableStore.setEntries(entries, segment);
57598
57691
  }
57599
- const putEntries = denormalizeEntries(entries);
57600
- return durableStore.setEntries(putEntries, segment);
57692
+ const { putEntries, putMetadata, hasEntries, hasMetadata } = denormalizeEntries(entries);
57693
+ const promises = [
57694
+ hasEntries ? durableStore.setEntries(putEntries, segment) : undefined,
57695
+ ];
57696
+ if (sqlStore !== undefined && sqlStore.isBatchUpdateSupported()) {
57697
+ promises.push(hasMetadata && sqlStore !== undefined
57698
+ ? durableStore.setMetadata(putMetadata, segment)
57699
+ : undefined);
57700
+ }
57701
+ return Promise.all(promises).then(() => { });
57601
57702
  };
57602
57703
  const batchOperations = function (operations) {
57603
57704
  const operationsWithDenormedRecords = [];
@@ -57614,10 +57715,20 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
57614
57715
  // this is determined by the plugin supporting update batch calls before it gets to this HOF.
57615
57716
  // so we only need to check one entry to confirm this for performance
57616
57717
  if (firstEntry.data !== undefined) {
57718
+ const { putEntries, putMetadata, hasMetadata } = denormalizeEntries(operation.entries);
57617
57719
  operationsWithDenormedRecords.push({
57618
57720
  ...operation,
57619
- entries: denormalizeEntries(operation.entries),
57721
+ entries: putEntries,
57620
57722
  });
57723
+ if (hasMetadata &&
57724
+ sqlStore !== undefined &&
57725
+ sqlStore.isBatchUpdateSupported() === true) {
57726
+ operationsWithDenormedRecords.push({
57727
+ ...operation,
57728
+ entries: putMetadata,
57729
+ type: 'setMetadata',
57730
+ });
57731
+ }
57621
57732
  }
57622
57733
  else {
57623
57734
  operationsWithDenormedRecords.push(operation);
@@ -57629,10 +57740,20 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
57629
57740
  operationsWithDenormedRecords.push(operation);
57630
57741
  continue;
57631
57742
  }
57743
+ const { putEntries, putMetadata, hasMetadata } = denormalizeEntries(operation.entries);
57632
57744
  operationsWithDenormedRecords.push({
57633
57745
  ...operation,
57634
- entries: denormalizeEntries(operation.entries),
57746
+ entries: putEntries,
57635
57747
  });
57748
+ if (hasMetadata &&
57749
+ sqlStore !== undefined &&
57750
+ sqlStore.isBatchUpdateSupported() === true) {
57751
+ operationsWithDenormedRecords.push({
57752
+ ...operation,
57753
+ entries: putMetadata,
57754
+ type: 'setMetadata',
57755
+ });
57756
+ }
57636
57757
  }
57637
57758
  return durableStore.batchOperations(operationsWithDenormedRecords);
57638
57759
  };
@@ -60099,9 +60220,11 @@ function enableObjectInfoCaching(env, ensureObjectInfoCached) {
60099
60220
  let apiName = null;
60100
60221
  let objectInfo;
60101
60222
  if (dataIsRecord(key)) {
60223
+ incomingRecords.delete(key);
60102
60224
  apiName = data.apiName;
60103
60225
  }
60104
60226
  else if (dataIsObjectInfo(key)) {
60227
+ incomingObjectInfos.delete(key);
60105
60228
  apiName = data.apiName;
60106
60229
  objectInfo = data;
60107
60230
  }
@@ -60612,6 +60735,9 @@ class NimbusSqliteStore {
60612
60735
  isEvalSupported() {
60613
60736
  return true;
60614
60737
  }
60738
+ isBatchUpdateSupported() {
60739
+ return this.supportsBatchUpdates;
60740
+ }
60615
60741
  query(sql, params) {
60616
60742
  return new Promise((resolve, reject) => {
60617
60743
  this.plugin.query(sql, params, (result) => {
@@ -61776,7 +61902,6 @@ class RecordLoaderGraphQL {
61776
61902
  }, {});
61777
61903
  fields['Id'] = { value: id, displayValue: null };
61778
61904
  fields['RecordTypeId'] = { value: recordTypeId, displayValue: null };
61779
- const links = this.generateFieldLinks(id, [...requestedFields, 'Id', 'RecordTypeId']);
61780
61905
  return {
61781
61906
  apiName: node[`${requiredPrefix}ApiName`],
61782
61907
  childRelationships: {},
@@ -61798,18 +61923,9 @@ class RecordLoaderGraphQL {
61798
61923
  : null,
61799
61924
  weakEtag: node[`${requiredPrefix}WeakEtag`],
61800
61925
  fields,
61801
- links,
61926
+ links: {},
61802
61927
  };
61803
61928
  }
61804
- generateFieldLinks(id, fields) {
61805
- const links = {};
61806
- for (const field of fields) {
61807
- links[field] = {
61808
- __ref: `UiApi::RecordRepresentation:${id}__fields__${field}`,
61809
- };
61810
- }
61811
- return links;
61812
- }
61813
61929
  }
61814
61930
 
61815
61931
  class RecordIngestor {
@@ -62038,6 +62154,20 @@ class SqlitePrimingStore {
62038
62154
  async writeBatch(records, overwrite) {
62039
62155
  const idsToPrime = new Set();
62040
62156
  const written = [];
62157
+ if (overwrite === true) {
62158
+ // if overwrite is true we need to raise change notifications so use the batchOperations
62159
+ const operations = {};
62160
+ for (const { record, metadata } of records) {
62161
+ const key = keyBuilder$26(this.getLuvio(), { recordId: record.id });
62162
+ idsToPrime.add(record.id);
62163
+ operations[key] = {
62164
+ data: record,
62165
+ metadata: { ...metadata, metadataVersion: DURABLE_METADATA_VERSION },
62166
+ };
62167
+ }
62168
+ await this.store.setEntries(operations, DefaultDurableSegment);
62169
+ return { written: Array.from(idsToPrime), conflicted: [], errors: [] };
62170
+ }
62041
62171
  const statement = `${overwrite ? 'REPLACE' : 'INSERT or IGNORE'} INTO lds_data (key, data, metadata) VALUES ${records
62042
62172
  .map((_) => `(?,?,?)`)
62043
62173
  .join(',')} returning key;`;
@@ -62153,7 +62283,9 @@ function primingSessionFactory(config) {
62153
62283
  return instrumentPrimingSession(session);
62154
62284
  }
62155
62285
 
62156
- const DEFAULT_MAX_RECORD_COUNT = 80000;
62286
+ const DEFAULT_MAX_RECORD_COUNT = aggressiveTrimLowLimitGate.isOpen({ fallback: false })
62287
+ ? 20000
62288
+ : 200000;
62157
62289
  const DEFAULT_MAX_BATCH_SIZE = 200;
62158
62290
  async function aggressiveTrim(data, deallocateFn, options = {}) {
62159
62291
  const maxStoreRecords = options.maxStoreRecords !== undefined ? options.maxStoreRecords : DEFAULT_MAX_RECORD_COUNT;
@@ -62264,9 +62396,11 @@ function getRuntime() {
62264
62396
  // user id centric record ID generator
62265
62397
  const { newRecordId, isGenerated } = recordIdGenerator(userId);
62266
62398
  // non-draft-aware base services
62267
- const store = new InMemoryStore({
62268
- customTrimPolicy: aggressiveTrim,
62269
- });
62399
+ let storeOptions = {};
62400
+ {
62401
+ storeOptions.customTrimPolicy = aggressiveTrim;
62402
+ }
62403
+ const store = new InMemoryStore(storeOptions);
62270
62404
  lazyNetworkAdapter = platformNetworkAdapter(makeNetworkAdapterChunkRecordFields(NimbusNetworkAdapter, {
62271
62405
  reportChunkCandidateUrlLength: reportChunkCandidateUrlLength,
62272
62406
  }));
@@ -62293,7 +62427,7 @@ function getRuntime() {
62293
62427
  let getIngestRecords;
62294
62428
  let getIngestMetadata;
62295
62429
  let getIngestStore;
62296
- const recordDenormingStore = makeRecordDenormalizingDurableStore(lazyLuvio, lazyBaseDurableStore, () => (getIngestRecords !== undefined ? getIngestRecords() : {}), () => (getIngestMetadata !== undefined ? getIngestMetadata() : {}), () => (getIngestStore !== undefined ? getIngestStore() : undefined));
62430
+ const recordDenormingStore = makeRecordDenormalizingDurableStore(lazyLuvio, lazyBaseDurableStore, () => (getIngestRecords !== undefined ? getIngestRecords() : {}), () => (getIngestMetadata !== undefined ? getIngestMetadata() : {}), () => (getIngestStore !== undefined ? getIngestStore() : undefined), lazyBaseDurableStore);
62297
62431
  const baseEnv = new Environment(store, lazyNetworkAdapter);
62298
62432
  const gqlEnv = makeEnvironmentGraphqlAware(baseEnv);
62299
62433
  const durableEnv = makeDurable(gqlEnv, {
@@ -62403,7 +62537,7 @@ register$1({
62403
62537
  id: '@salesforce/lds-network-adapter',
62404
62538
  instrument: instrument$2,
62405
62539
  });
62406
- // version: 1.286.0-09e7e5207
62540
+ // version: 1.287.0-dev10-0c7922050
62407
62541
 
62408
62542
  const { create: create$3, keys: keys$3 } = Object;
62409
62543
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -78805,6 +78939,29 @@ function getInContextFragmentType$d(fragment, fragmentMap) {
78805
78939
  return sharedGetFragmentType(fragment, fragmentMap);
78806
78940
  }
78807
78941
 
78942
+ function getFieldType$b(field) {
78943
+ const fieldName = field.name.value;
78944
+ switch (fieldName) {
78945
+ case '__typename': {
78946
+ return {
78947
+ isArray: false,
78948
+ typename: 'String',
78949
+ };
78950
+ }
78951
+ /*
78952
+ Probably should use metaschema like the RecordQuery graphql-artifact,
78953
+ but this type only has one generic type possible. Also, the most likely scenario for future schema additions,
78954
+ is UISDK adding the the parent of this type, Setup__Setup. Therefore, we will just default to SetupConnection so that
78955
+ query authors don't need to use metaschema when there's no real decision point in this type.
78956
+ */
78957
+ default:
78958
+ return {
78959
+ isArray: false,
78960
+ typename: 'Setup__SetupConnection',
78961
+ };
78962
+ }
78963
+ }
78964
+
78808
78965
  const name$2 = 'Setup__SetupQuery';
78809
78966
  const VERSION$a = 'b89cccb5fa5e458d89dc1137af3e5469';
78810
78967
  function keyBuilder$6(luvio, path, data) {
@@ -78922,24 +79079,6 @@ function getTypeCacheKeys$3(cacheKeySink, astNode, state) {
78922
79079
  }
78923
79080
  // Deal with mapped types' cache keys
78924
79081
  }
78925
- function getFieldType$b(field) {
78926
- switch (field.name.value) {
78927
- case '__typename': {
78928
- return {
78929
- isArray: false,
78930
- typename: 'String'
78931
- };
78932
- }
78933
- case 'recordQuery': {
78934
- return {
78935
- isArray: false,
78936
- typename: 'Setup__SetupConnection'
78937
- };
78938
- }
78939
- default:
78940
- return undefined;
78941
- }
78942
- }
78943
79082
  function ingestFieldByType$2(typename, parentKey, requestedField, sink, fieldKey, fieldData, state) {
78944
79083
  // TODO: add validation logic to only allow nullable fields to be null in the future
78945
79084
  if (fieldData === null) {
@@ -81344,6 +81483,10 @@ let oneStoreGetObjectInfoAdapter$1 = undefined;
81344
81483
  * One store enabled Get Object Infos adapter
81345
81484
  */
81346
81485
  let oneStoreGetObjectInfosAdapter$1 = undefined;
81486
+ /**
81487
+ * Determines when to include PDL strategies for Related Lists
81488
+ */
81489
+ let relatedListsPredictionsEnabled$1 = false;
81347
81490
  /**
81348
81491
  * Defines the configuration API and is exposed internally as well as externally.
81349
81492
  * Configuration for one store enabled REST adapters only.
@@ -81419,6 +81562,12 @@ const configurationForRestAdapters$1 = {
81419
81562
  getDraftAwareCreateContentDocumentAndVersionAdapter: function () {
81420
81563
  return draftAwareCreateContentDocumentAndVersionAdapter$1;
81421
81564
  },
81565
+ setRelatedListsPredictionsEnabled: function (f) {
81566
+ relatedListsPredictionsEnabled$1 = f;
81567
+ },
81568
+ areRelatedListsPredictionsEnabled: function () {
81569
+ return relatedListsPredictionsEnabled$1 === true;
81570
+ },
81422
81571
  // createContentVersion
81423
81572
  setDraftAwareCreateContentVersionAdapter: function (adapter) {
81424
81573
  draftAwareCreateContentVersionAdapter$1 = adapter;
@@ -82452,7 +82601,7 @@ register$1({
82452
82601
  configuration: { ...configurationForGraphQLAdapters$1 },
82453
82602
  instrument: instrument$1,
82454
82603
  });
82455
- // version: 1.286.0-27bef7c46
82604
+ // version: 1.287.0-dev10-32adad9f2
82456
82605
 
82457
82606
  // On core the unstable adapters are re-exported with different names,
82458
82607
  // we want to match them here.
@@ -84708,7 +84857,7 @@ withDefaultLuvio((luvio) => {
84708
84857
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
84709
84858
  graphQLImperative = ldsAdapter;
84710
84859
  });
84711
- // version: 1.286.0-27bef7c46
84860
+ // version: 1.287.0-dev10-32adad9f2
84712
84861
 
84713
84862
  var gqlApi = /*#__PURE__*/Object.freeze({
84714
84863
  __proto__: null,
@@ -85446,7 +85595,7 @@ const callbacks$1 = [];
85446
85595
  function register(r) {
85447
85596
  callbacks$1.forEach((callback) => callback(r));
85448
85597
  }
85449
- // version: 1.286.0-09e7e5207
85598
+ // version: 1.287.0-dev10-0c7922050
85450
85599
 
85451
85600
  /**
85452
85601
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -89438,6 +89587,10 @@ let oneStoreGetObjectInfoAdapter = undefined;
89438
89587
  * One store enabled Get Object Infos adapter
89439
89588
  */
89440
89589
  let oneStoreGetObjectInfosAdapter = undefined;
89590
+ /**
89591
+ * Determines when to include PDL strategies for Related Lists
89592
+ */
89593
+ let relatedListsPredictionsEnabled = false;
89441
89594
  /**
89442
89595
  * Defines the configuration API and is exposed internally as well as externally.
89443
89596
  * Configuration for one store enabled REST adapters only.
@@ -89513,6 +89666,12 @@ const configurationForRestAdapters = {
89513
89666
  getDraftAwareCreateContentDocumentAndVersionAdapter: function () {
89514
89667
  return draftAwareCreateContentDocumentAndVersionAdapter;
89515
89668
  },
89669
+ setRelatedListsPredictionsEnabled: function (f) {
89670
+ relatedListsPredictionsEnabled = f;
89671
+ },
89672
+ areRelatedListsPredictionsEnabled: function () {
89673
+ return relatedListsPredictionsEnabled === true;
89674
+ },
89516
89675
  // createContentVersion
89517
89676
  setDraftAwareCreateContentVersionAdapter: function (adapter) {
89518
89677
  draftAwareCreateContentVersionAdapter = adapter;
@@ -90398,4 +90557,4 @@ const { luvio } = getRuntime();
90398
90557
  setDefaultLuvio({ luvio });
90399
90558
 
90400
90559
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
90401
- // version: 1.286.0-09e7e5207
90560
+ // version: 1.287.0-dev10-0c7922050