@salesforce/lds-worker-api 1.287.0-dev7 → 1.287.0-dev9

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.
@@ -1074,4 +1074,4 @@ if (process.env.NODE_ENV !== 'production') {
1074
1074
  }
1075
1075
 
1076
1076
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1077
- // version: 1.287.0-dev7-60e10f218
1077
+ // version: 1.287.0-dev9-7d875cd74
@@ -4204,7 +4204,7 @@ function withDefaultLuvio(callback) {
4204
4204
  }
4205
4205
  callbacks.push(callback);
4206
4206
  }
4207
- // version: 1.287.0-dev7-60e10f218
4207
+ // version: 1.287.0-dev9-7d875cd74
4208
4208
 
4209
4209
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4210
4210
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15712,7 +15712,7 @@ function gql(literals, ...subs) {
15712
15712
  }
15713
15713
  return superResult;
15714
15714
  }
15715
- // version: 1.287.0-dev7-60e10f218
15715
+ // version: 1.287.0-dev9-7d875cd74
15716
15716
 
15717
15717
  function unwrap(data) {
15718
15718
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16641,7 +16641,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16641
16641
  const { apiFamily, name } = metadata;
16642
16642
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16643
16643
  }
16644
- // version: 1.287.0-dev7-60e10f218
16644
+ // version: 1.287.0-dev9-7d875cd74
16645
16645
 
16646
16646
  /**
16647
16647
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -17730,20 +17730,23 @@ function getTypeCacheKeys$Z$1(rootKeySet, luvio, input, fullPathFactory) {
17730
17730
  });
17731
17731
  }
17732
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
+
17733
17744
  const TTL$A = 900000;
17734
17745
  const VERSION$1e$1 = "c658fe1591386d570e214eaed0daadd1";
17735
17746
  const RepresentationType$X = 'ListInfoRepresentation';
17736
17747
  function keyBuilder$27(luvio, config) {
17737
17748
  return keyPrefix$2 + '::' + RepresentationType$X + ':' + (config.listViewApiName === null ? '' : config.listViewApiName) + ':' + config.objectApiName + ':' + config.type;
17738
17749
  }
17739
- function keyBuilderFromType$E(luvio, object) {
17740
- const keyParams = {
17741
- listViewApiName: object.listReference.listViewApiName,
17742
- objectApiName: object.listReference.objectApiName,
17743
- type: object.listReference.type
17744
- };
17745
- return keyBuilder$27(luvio, keyParams);
17746
- }
17747
17750
  function normalize$Q(input, existing, path, luvio, store, timestamp) {
17748
17751
  const input_displayColumns = input.displayColumns;
17749
17752
  const input_displayColumns_id = path.fullPath + '__displayColumns';
@@ -21731,21 +21734,24 @@ function tokenForAtMost$1(paginationMetadata, maxOffset) {
21731
21734
  return [tokenResult, offsetResult];
21732
21735
  }
21733
21736
 
21734
- const TTL$x = 30000;
21735
- const VERSION$18$1 = "e5c90c4081cd557f8ffec53028ede1e8";
21736
- const RepresentationType$T = 'ListRecordCollectionRepresentation';
21737
- function keyBuilder$23(luvio, config) {
21738
- 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);
21739
- }
21740
- function keyBuilderFromType$B(luvio, object) {
21737
+ const keyBuilderFromType$B = function ListRecordCollectionRepresentationKeyBuilderFromType(luvio, object) {
21741
21738
  const keyParams = {
21742
- objectApiName: object.listReference.objectApiName,
21739
+ objectApiName: object.listReference.objectApiName.toLowerCase(),
21743
21740
  searchTerm: object.searchTerm,
21744
21741
  sortBy: object.sortBy,
21745
21742
  where: object.where,
21746
21743
  listViewApiName: object.listReference.listViewApiName
21744
+ ? object.listReference.listViewApiName.toLowerCase()
21745
+ : object.listReference.listViewApiName,
21747
21746
  };
21748
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);
21749
21755
  }
21750
21756
  function paginationKeyBuilder(luvio, config) {
21751
21757
  return keyBuilder$23(luvio, config) + '__pagination';
@@ -22755,8 +22761,8 @@ const LIST_SUMMARY_PREFIX = keyPrefix$2 + '::' + RepresentationType$Q;
22755
22761
  let listRecordCollectionCache = new Map();
22756
22762
  let listSummaryCollectionCache = new Map();
22757
22763
  function getListRecordCollectionKeys(objectApiName, listViewApiName) {
22758
- const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName) || new Map();
22759
- const keys = cacheEntriesByObjectApiName.get(listViewApiName) || [];
22764
+ const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName.toLowerCase()) || new Map();
22765
+ const keys = cacheEntriesByObjectApiName.get(listViewApiName.toLowerCase()) || [];
22760
22766
  return [...keys];
22761
22767
  }
22762
22768
  function getListSummaryCollectionKeys(objectApiName, recentLists = undefined) {
@@ -22788,8 +22794,8 @@ function addListSummaryCollectionKey(objectApiName, recentLists, key) {
22788
22794
  keys.add(key);
22789
22795
  }
22790
22796
  function removeListRecordCollectionKeys(objectApiName, listViewApiName) {
22791
- const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName) || new Map();
22792
- cacheEntriesByObjectApiName.delete(listViewApiName);
22797
+ const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName.toLowerCase()) || new Map();
22798
+ cacheEntriesByObjectApiName.delete(listViewApiName.toLowerCase());
22793
22799
  }
22794
22800
  function removeListSummaryCollectionKeys(objectApiName, recentLists = undefined) {
22795
22801
  const cacheEntriesByObjectApiName = listSummaryCollectionCache.get(objectApiName) || new Map();
@@ -22841,7 +22847,7 @@ function buildListRefByIdContextKey(listViewId) {
22841
22847
  return `listReferenceById::${listViewId}`;
22842
22848
  }
22843
22849
  function buildListRefByApiNameContextKey(objectApiName, listViewApiName) {
22844
- return `listReferenceByApiName::${objectApiName}:${listViewApiName}`;
22850
+ return `listReferenceByApiName::${objectApiName.toLowerCase()}:${listViewApiName.toLowerCase()}`;
22845
22851
  }
22846
22852
  /**
22847
22853
  * Adds a list reference so it can be retrieved with #getListReference later.
@@ -22897,7 +22903,12 @@ const LIST_INFO_SELECTIONS_ETAG = [
22897
22903
  * @param luvio Luvio
22898
22904
  */
22899
22905
  function getListInfo(luvio, listRef, storeLookup) {
22900
- 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 });
22901
22912
  return storeLookup({
22902
22913
  recordId: key,
22903
22914
  node: {
@@ -22911,7 +22922,7 @@ function getListInfo(luvio, listRef, storeLookup) {
22911
22922
  }
22912
22923
  function buildDefaultsKey(listRef) {
22913
22924
  const { objectApiName, listViewApiName } = listRef;
22914
- return `defaults::${objectApiName}:${listViewApiName}`;
22925
+ return `defaults::${objectApiName.toLowerCase()}:${listViewApiName ? listViewApiName.toLowerCase() : listViewApiName}`;
22915
22926
  }
22916
22927
  /**
22917
22928
  * Update the default values based on a server response.
@@ -23086,9 +23097,11 @@ function setContext$1(adapterContext) {
23086
23097
  context$1 = adapterContext;
23087
23098
  }
23088
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
23089
23102
  const query = {
23090
- objectApiName: params.urlParams.objectApiName,
23091
- listViewApiName: params.urlParams.listViewApiName,
23103
+ objectApiName: params.urlParams.objectApiName.toLowerCase(),
23104
+ listViewApiName: params.urlParams.listViewApiName.toLowerCase(),
23092
23105
  };
23093
23106
  // Fetch listReference from internal store to better ensure a cache hit regardless of listViewApiName or listViewId
23094
23107
  const listReference = getListReference(query, context$1);
@@ -23098,8 +23111,10 @@ function keyBuilder$1$(luvio, params) {
23098
23111
  const defaults = getServerDefaults(config, context$1);
23099
23112
  // Use default values when sortBy is undefined or an empty Array []
23100
23113
  return keyBuilder$23(luvio, {
23101
- objectApiName: listReference.objectApiName,
23102
- listViewApiName: listReference.listViewApiName,
23114
+ objectApiName: listReference.objectApiName.toLowerCase(),
23115
+ listViewApiName: listReference.listViewApiName
23116
+ ? listReference.listViewApiName.toLowerCase()
23117
+ : listReference.listViewApiName,
23103
23118
  // # removing listViewId from key only supporing getting records using api name
23104
23119
  // listViewId: listReference.id,
23105
23120
  searchTerm: params.body.searchTerm || null,
@@ -23112,8 +23127,8 @@ function keyBuilder$1$(luvio, params) {
23112
23127
  // If there are no matching entries in the store, then we haven't fetched any data for this list view yet.
23113
23128
  // Assuming that listViewId is empty and continue on
23114
23129
  return keyBuilder$23(luvio, {
23115
- objectApiName: params.urlParams.objectApiName,
23116
- listViewApiName: params.urlParams.listViewApiName,
23130
+ objectApiName: params.urlParams.objectApiName.toLowerCase(),
23131
+ listViewApiName: params.urlParams.listViewApiName.toLowerCase(),
23117
23132
  // # removing listViewId from key only supporing getting records using api name
23118
23133
  // listViewId: '',
23119
23134
  searchTerm: params.body.searchTerm || null,
@@ -24060,8 +24075,10 @@ function prepareRequest_getMruListRecords(luvio, config, listInfo, snapshot) {
24060
24075
  searchTerm: null,
24061
24076
  where: null,
24062
24077
  sortBy: config.sortBy === undefined ? null : config.sortBy,
24063
- objectApiName: listInfo.listReference.objectApiName,
24064
- listViewApiName: listInfo.listReference.listViewApiName,
24078
+ objectApiName: listInfo.listReference.objectApiName.toLowerCase(),
24079
+ listViewApiName: listInfo.listReference.listViewApiName
24080
+ ? listInfo.listReference.listViewApiName.toLowerCase()
24081
+ : listInfo.listReference.listViewApiName,
24065
24082
  });
24066
24083
  const selector = {
24067
24084
  recordId: paginationKey,
@@ -24108,8 +24125,10 @@ function onResourceSuccess_getMruListRecords(luvio, config, listInfo, response)
24108
24125
  searchTerm: null,
24109
24126
  where: null,
24110
24127
  sortBy: body.sortBy,
24111
- objectApiName: listInfo.listReference.objectApiName,
24112
- listViewApiName: listInfo.listReference.listViewApiName,
24128
+ objectApiName: listInfo.listReference.objectApiName.toLowerCase(),
24129
+ listViewApiName: listInfo.listReference.listViewApiName
24130
+ ? listInfo.listReference.listViewApiName.toLowerCase()
24131
+ : listInfo.listReference.listViewApiName,
24113
24132
  }), ingest$M$1, body);
24114
24133
  const snapshot = buildCachedSnapshot$8(luvio, luvio.storeLookup.bind(luvio), config, listInfo, fields);
24115
24134
  return luvio.storeBroadcast().then(() => snapshot);
@@ -24157,7 +24176,7 @@ function buildCachedListInfoSnapshot$1(context, storeLookup, luvio) {
24157
24176
  return getListInfo(luvio, {
24158
24177
  id: null,
24159
24178
  listViewApiName: null,
24160
- objectApiName: config.objectApiName,
24179
+ objectApiName: config.objectApiName.toLowerCase(),
24161
24180
  type: 'mru',
24162
24181
  }, storeLookup);
24163
24182
  }
@@ -24443,8 +24462,10 @@ function prepareRequest_getListRecords(luvio, context, config, listInfo, snapsho
24443
24462
  searchTerm: null,
24444
24463
  where: null,
24445
24464
  sortBy: getSortBy(config, context),
24446
- objectApiName: listInfo.listReference.objectApiName,
24447
- listViewApiName: listInfo.listReference.listViewApiName,
24465
+ objectApiName: listInfo.listReference.objectApiName.toLowerCase(),
24466
+ listViewApiName: listInfo.listReference.listViewApiName
24467
+ ? listInfo.listReference.listViewApiName.toLowerCase()
24468
+ : listInfo.listReference.listViewApiName,
24448
24469
  });
24449
24470
  const selector = {
24450
24471
  recordId: paginationKey,
@@ -24494,8 +24515,10 @@ function onResourceSuccess_getListRecords(luvio, context, config, listInfo, resp
24494
24515
  searchTerm: null,
24495
24516
  where: null,
24496
24517
  sortBy: body.sortBy,
24497
- objectApiName: listInfo.listReference.objectApiName,
24498
- listViewApiName: listInfo.listReference.listViewApiName,
24518
+ objectApiName: listInfo.listReference.objectApiName.toLowerCase(),
24519
+ listViewApiName: listInfo.listReference.listViewApiName
24520
+ ? listInfo.listReference.listViewApiName.toLowerCase()
24521
+ : listInfo.listReference.listViewApiName,
24499
24522
  }), ingest$M$1, body);
24500
24523
  const snapshot = buildCachedSnapshot$7(luvio, luvio.storeLookup.bind(luvio), context, config, listInfo, fields);
24501
24524
  releaseKeys();
@@ -26418,8 +26441,14 @@ const notifyUpdateAvailableFactory$1 = (luvio) => {
26418
26441
  // We automatically set the type based on the listViewApiName, and we need to do the same
26419
26442
  // here for key matching and validation
26420
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;
26421
26450
  if (!config.type) {
26422
- config.type = config.listViewApiName === '__Recent' ? 'mru' : 'listView';
26451
+ config.type = config.listViewApiName === '__recent' ? 'mru' : 'listView';
26423
26452
  }
26424
26453
  });
26425
26454
  return generated_notifyUpdateAvailable(configs);
@@ -30959,9 +30988,9 @@ const getLayoutUserStateAdapterFactory = (luvio) => function UiApi__getLayoutUse
30959
30988
 
30960
30989
  function keyBuilder$1c$1(luvio, params) {
30961
30990
  return keyBuilder$27(luvio, {
30962
- objectApiName: params.urlParams.objectApiName,
30963
- listViewApiName: params.urlParams.listViewApiName,
30964
- 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',
30965
30994
  });
30966
30995
  }
30967
30996
 
@@ -44202,7 +44231,7 @@ withDefaultLuvio((luvio) => {
44202
44231
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
44203
44232
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
44204
44233
  });
44205
- // version: 1.287.0-dev7-62bbd479a
44234
+ // version: 1.287.0-dev9-34cbc2e93
44206
44235
 
44207
44236
  var ldsIdempotencyWriteDisabled = {
44208
44237
  isOpen: function (e) {
@@ -62508,7 +62537,7 @@ register$1({
62508
62537
  id: '@salesforce/lds-network-adapter',
62509
62538
  instrument: instrument$2,
62510
62539
  });
62511
- // version: 1.287.0-dev7-60e10f218
62540
+ // version: 1.287.0-dev9-7d875cd74
62512
62541
 
62513
62542
  const { create: create$3, keys: keys$3 } = Object;
62514
62543
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -82572,7 +82601,7 @@ register$1({
82572
82601
  configuration: { ...configurationForGraphQLAdapters$1 },
82573
82602
  instrument: instrument$1,
82574
82603
  });
82575
- // version: 1.287.0-dev7-62bbd479a
82604
+ // version: 1.287.0-dev9-34cbc2e93
82576
82605
 
82577
82606
  // On core the unstable adapters are re-exported with different names,
82578
82607
  // we want to match them here.
@@ -84828,7 +84857,7 @@ withDefaultLuvio((luvio) => {
84828
84857
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
84829
84858
  graphQLImperative = ldsAdapter;
84830
84859
  });
84831
- // version: 1.287.0-dev7-62bbd479a
84860
+ // version: 1.287.0-dev9-34cbc2e93
84832
84861
 
84833
84862
  var gqlApi = /*#__PURE__*/Object.freeze({
84834
84863
  __proto__: null,
@@ -85566,7 +85595,7 @@ const callbacks$1 = [];
85566
85595
  function register(r) {
85567
85596
  callbacks$1.forEach((callback) => callback(r));
85568
85597
  }
85569
- // version: 1.287.0-dev7-60e10f218
85598
+ // version: 1.287.0-dev9-7d875cd74
85570
85599
 
85571
85600
  /**
85572
85601
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -90528,4 +90557,4 @@ const { luvio } = getRuntime();
90528
90557
  setDefaultLuvio({ luvio });
90529
90558
 
90530
90559
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
90531
- // version: 1.287.0-dev7-60e10f218
90560
+ // version: 1.287.0-dev9-7d875cd74
@@ -4210,7 +4210,7 @@
4210
4210
  }
4211
4211
  callbacks.push(callback);
4212
4212
  }
4213
- // version: 1.287.0-dev7-60e10f218
4213
+ // version: 1.287.0-dev9-7d875cd74
4214
4214
 
4215
4215
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4216
4216
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15718,7 +15718,7 @@
15718
15718
  }
15719
15719
  return superResult;
15720
15720
  }
15721
- // version: 1.287.0-dev7-60e10f218
15721
+ // version: 1.287.0-dev9-7d875cd74
15722
15722
 
15723
15723
  function unwrap(data) {
15724
15724
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16647,7 +16647,7 @@
16647
16647
  const { apiFamily, name } = metadata;
16648
16648
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16649
16649
  }
16650
- // version: 1.287.0-dev7-60e10f218
16650
+ // version: 1.287.0-dev9-7d875cd74
16651
16651
 
16652
16652
  /**
16653
16653
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -17736,20 +17736,23 @@
17736
17736
  });
17737
17737
  }
17738
17738
 
17739
+ const keyBuilderFromType$E = function ListInfoRepresentationKeyBuilderFromType(luvio, object) {
17740
+ const keyParams = {
17741
+ listViewApiName: object.listReference.listViewApiName
17742
+ ? object.listReference.listViewApiName.toLowerCase()
17743
+ : object.listReference.listViewApiName,
17744
+ objectApiName: object.listReference.objectApiName.toLowerCase(),
17745
+ type: object.listReference.type,
17746
+ };
17747
+ return keyBuilder$27(luvio, keyParams);
17748
+ };
17749
+
17739
17750
  const TTL$A = 900000;
17740
17751
  const VERSION$1e$1 = "c658fe1591386d570e214eaed0daadd1";
17741
17752
  const RepresentationType$X = 'ListInfoRepresentation';
17742
17753
  function keyBuilder$27(luvio, config) {
17743
17754
  return keyPrefix$2 + '::' + RepresentationType$X + ':' + (config.listViewApiName === null ? '' : config.listViewApiName) + ':' + config.objectApiName + ':' + config.type;
17744
17755
  }
17745
- function keyBuilderFromType$E(luvio, object) {
17746
- const keyParams = {
17747
- listViewApiName: object.listReference.listViewApiName,
17748
- objectApiName: object.listReference.objectApiName,
17749
- type: object.listReference.type
17750
- };
17751
- return keyBuilder$27(luvio, keyParams);
17752
- }
17753
17756
  function normalize$Q(input, existing, path, luvio, store, timestamp) {
17754
17757
  const input_displayColumns = input.displayColumns;
17755
17758
  const input_displayColumns_id = path.fullPath + '__displayColumns';
@@ -21737,21 +21740,24 @@
21737
21740
  return [tokenResult, offsetResult];
21738
21741
  }
21739
21742
 
21740
- const TTL$x = 30000;
21741
- const VERSION$18$1 = "e5c90c4081cd557f8ffec53028ede1e8";
21742
- const RepresentationType$T = 'ListRecordCollectionRepresentation';
21743
- function keyBuilder$23(luvio, config) {
21744
- 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);
21745
- }
21746
- function keyBuilderFromType$B(luvio, object) {
21743
+ const keyBuilderFromType$B = function ListRecordCollectionRepresentationKeyBuilderFromType(luvio, object) {
21747
21744
  const keyParams = {
21748
- objectApiName: object.listReference.objectApiName,
21745
+ objectApiName: object.listReference.objectApiName.toLowerCase(),
21749
21746
  searchTerm: object.searchTerm,
21750
21747
  sortBy: object.sortBy,
21751
21748
  where: object.where,
21752
21749
  listViewApiName: object.listReference.listViewApiName
21750
+ ? object.listReference.listViewApiName.toLowerCase()
21751
+ : object.listReference.listViewApiName,
21753
21752
  };
21754
21753
  return keyBuilder$23(luvio, keyParams);
21754
+ };
21755
+
21756
+ const TTL$x = 30000;
21757
+ const VERSION$18$1 = "e5c90c4081cd557f8ffec53028ede1e8";
21758
+ const RepresentationType$T = 'ListRecordCollectionRepresentation';
21759
+ function keyBuilder$23(luvio, config) {
21760
+ 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);
21755
21761
  }
21756
21762
  function paginationKeyBuilder(luvio, config) {
21757
21763
  return keyBuilder$23(luvio, config) + '__pagination';
@@ -22761,8 +22767,8 @@
22761
22767
  let listRecordCollectionCache = new Map();
22762
22768
  let listSummaryCollectionCache = new Map();
22763
22769
  function getListRecordCollectionKeys(objectApiName, listViewApiName) {
22764
- const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName) || new Map();
22765
- const keys = cacheEntriesByObjectApiName.get(listViewApiName) || [];
22770
+ const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName.toLowerCase()) || new Map();
22771
+ const keys = cacheEntriesByObjectApiName.get(listViewApiName.toLowerCase()) || [];
22766
22772
  return [...keys];
22767
22773
  }
22768
22774
  function getListSummaryCollectionKeys(objectApiName, recentLists = undefined) {
@@ -22794,8 +22800,8 @@
22794
22800
  keys.add(key);
22795
22801
  }
22796
22802
  function removeListRecordCollectionKeys(objectApiName, listViewApiName) {
22797
- const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName) || new Map();
22798
- cacheEntriesByObjectApiName.delete(listViewApiName);
22803
+ const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName.toLowerCase()) || new Map();
22804
+ cacheEntriesByObjectApiName.delete(listViewApiName.toLowerCase());
22799
22805
  }
22800
22806
  function removeListSummaryCollectionKeys(objectApiName, recentLists = undefined) {
22801
22807
  const cacheEntriesByObjectApiName = listSummaryCollectionCache.get(objectApiName) || new Map();
@@ -22847,7 +22853,7 @@
22847
22853
  return `listReferenceById::${listViewId}`;
22848
22854
  }
22849
22855
  function buildListRefByApiNameContextKey(objectApiName, listViewApiName) {
22850
- return `listReferenceByApiName::${objectApiName}:${listViewApiName}`;
22856
+ return `listReferenceByApiName::${objectApiName.toLowerCase()}:${listViewApiName.toLowerCase()}`;
22851
22857
  }
22852
22858
  /**
22853
22859
  * Adds a list reference so it can be retrieved with #getListReference later.
@@ -22903,7 +22909,12 @@
22903
22909
  * @param luvio Luvio
22904
22910
  */
22905
22911
  function getListInfo(luvio, listRef, storeLookup) {
22906
- const key = keyBuilder$27(luvio, { ...listRef });
22912
+ let mutatedListRef = { ...listRef };
22913
+ mutatedListRef.objectApiName = mutatedListRef.objectApiName.toLowerCase();
22914
+ mutatedListRef.listViewApiName = mutatedListRef.listViewApiName
22915
+ ? mutatedListRef.listViewApiName.toLowerCase()
22916
+ : mutatedListRef.listViewApiName;
22917
+ const key = keyBuilder$27(luvio, { ...mutatedListRef });
22907
22918
  return storeLookup({
22908
22919
  recordId: key,
22909
22920
  node: {
@@ -22917,7 +22928,7 @@
22917
22928
  }
22918
22929
  function buildDefaultsKey(listRef) {
22919
22930
  const { objectApiName, listViewApiName } = listRef;
22920
- return `defaults::${objectApiName}:${listViewApiName}`;
22931
+ return `defaults::${objectApiName.toLowerCase()}:${listViewApiName ? listViewApiName.toLowerCase() : listViewApiName}`;
22921
22932
  }
22922
22933
  /**
22923
22934
  * Update the default values based on a server response.
@@ -23092,9 +23103,11 @@
23092
23103
  context$1 = adapterContext;
23093
23104
  }
23094
23105
  function keyBuilder$1$(luvio, params) {
23106
+ // lists data can now be fetched using case insensitive urlParams therefore
23107
+ // also changing contextStore to use lowercase caching
23095
23108
  const query = {
23096
- objectApiName: params.urlParams.objectApiName,
23097
- listViewApiName: params.urlParams.listViewApiName,
23109
+ objectApiName: params.urlParams.objectApiName.toLowerCase(),
23110
+ listViewApiName: params.urlParams.listViewApiName.toLowerCase(),
23098
23111
  };
23099
23112
  // Fetch listReference from internal store to better ensure a cache hit regardless of listViewApiName or listViewId
23100
23113
  const listReference = getListReference(query, context$1);
@@ -23104,8 +23117,10 @@
23104
23117
  const defaults = getServerDefaults(config, context$1);
23105
23118
  // Use default values when sortBy is undefined or an empty Array []
23106
23119
  return keyBuilder$23(luvio, {
23107
- objectApiName: listReference.objectApiName,
23108
- listViewApiName: listReference.listViewApiName,
23120
+ objectApiName: listReference.objectApiName.toLowerCase(),
23121
+ listViewApiName: listReference.listViewApiName
23122
+ ? listReference.listViewApiName.toLowerCase()
23123
+ : listReference.listViewApiName,
23109
23124
  // # removing listViewId from key only supporing getting records using api name
23110
23125
  // listViewId: listReference.id,
23111
23126
  searchTerm: params.body.searchTerm || null,
@@ -23118,8 +23133,8 @@
23118
23133
  // If there are no matching entries in the store, then we haven't fetched any data for this list view yet.
23119
23134
  // Assuming that listViewId is empty and continue on
23120
23135
  return keyBuilder$23(luvio, {
23121
- objectApiName: params.urlParams.objectApiName,
23122
- listViewApiName: params.urlParams.listViewApiName,
23136
+ objectApiName: params.urlParams.objectApiName.toLowerCase(),
23137
+ listViewApiName: params.urlParams.listViewApiName.toLowerCase(),
23123
23138
  // # removing listViewId from key only supporing getting records using api name
23124
23139
  // listViewId: '',
23125
23140
  searchTerm: params.body.searchTerm || null,
@@ -24066,8 +24081,10 @@
24066
24081
  searchTerm: null,
24067
24082
  where: null,
24068
24083
  sortBy: config.sortBy === undefined ? null : config.sortBy,
24069
- objectApiName: listInfo.listReference.objectApiName,
24070
- listViewApiName: listInfo.listReference.listViewApiName,
24084
+ objectApiName: listInfo.listReference.objectApiName.toLowerCase(),
24085
+ listViewApiName: listInfo.listReference.listViewApiName
24086
+ ? listInfo.listReference.listViewApiName.toLowerCase()
24087
+ : listInfo.listReference.listViewApiName,
24071
24088
  });
24072
24089
  const selector = {
24073
24090
  recordId: paginationKey,
@@ -24114,8 +24131,10 @@
24114
24131
  searchTerm: null,
24115
24132
  where: null,
24116
24133
  sortBy: body.sortBy,
24117
- objectApiName: listInfo.listReference.objectApiName,
24118
- listViewApiName: listInfo.listReference.listViewApiName,
24134
+ objectApiName: listInfo.listReference.objectApiName.toLowerCase(),
24135
+ listViewApiName: listInfo.listReference.listViewApiName
24136
+ ? listInfo.listReference.listViewApiName.toLowerCase()
24137
+ : listInfo.listReference.listViewApiName,
24119
24138
  }), ingest$M$1, body);
24120
24139
  const snapshot = buildCachedSnapshot$8(luvio, luvio.storeLookup.bind(luvio), config, listInfo, fields);
24121
24140
  return luvio.storeBroadcast().then(() => snapshot);
@@ -24163,7 +24182,7 @@
24163
24182
  return getListInfo(luvio, {
24164
24183
  id: null,
24165
24184
  listViewApiName: null,
24166
- objectApiName: config.objectApiName,
24185
+ objectApiName: config.objectApiName.toLowerCase(),
24167
24186
  type: 'mru',
24168
24187
  }, storeLookup);
24169
24188
  }
@@ -24449,8 +24468,10 @@
24449
24468
  searchTerm: null,
24450
24469
  where: null,
24451
24470
  sortBy: getSortBy(config, context),
24452
- objectApiName: listInfo.listReference.objectApiName,
24453
- listViewApiName: listInfo.listReference.listViewApiName,
24471
+ objectApiName: listInfo.listReference.objectApiName.toLowerCase(),
24472
+ listViewApiName: listInfo.listReference.listViewApiName
24473
+ ? listInfo.listReference.listViewApiName.toLowerCase()
24474
+ : listInfo.listReference.listViewApiName,
24454
24475
  });
24455
24476
  const selector = {
24456
24477
  recordId: paginationKey,
@@ -24500,8 +24521,10 @@
24500
24521
  searchTerm: null,
24501
24522
  where: null,
24502
24523
  sortBy: body.sortBy,
24503
- objectApiName: listInfo.listReference.objectApiName,
24504
- listViewApiName: listInfo.listReference.listViewApiName,
24524
+ objectApiName: listInfo.listReference.objectApiName.toLowerCase(),
24525
+ listViewApiName: listInfo.listReference.listViewApiName
24526
+ ? listInfo.listReference.listViewApiName.toLowerCase()
24527
+ : listInfo.listReference.listViewApiName,
24505
24528
  }), ingest$M$1, body);
24506
24529
  const snapshot = buildCachedSnapshot$7(luvio, luvio.storeLookup.bind(luvio), context, config, listInfo, fields);
24507
24530
  releaseKeys();
@@ -26424,8 +26447,14 @@
26424
26447
  // We automatically set the type based on the listViewApiName, and we need to do the same
26425
26448
  // here for key matching and validation
26426
26449
  configs.forEach((config) => {
26450
+ config.listViewApiName = config.listViewApiName
26451
+ ? config.listViewApiName.toLowerCase()
26452
+ : config.listViewApiName;
26453
+ config.objectApiName = config.objectApiName
26454
+ ? config.objectApiName.toLowerCase()
26455
+ : config.objectApiName;
26427
26456
  if (!config.type) {
26428
- config.type = config.listViewApiName === '__Recent' ? 'mru' : 'listView';
26457
+ config.type = config.listViewApiName === '__recent' ? 'mru' : 'listView';
26429
26458
  }
26430
26459
  });
26431
26460
  return generated_notifyUpdateAvailable(configs);
@@ -30965,9 +30994,9 @@
30965
30994
 
30966
30995
  function keyBuilder$1c$1(luvio, params) {
30967
30996
  return keyBuilder$27(luvio, {
30968
- objectApiName: params.urlParams.objectApiName,
30969
- listViewApiName: params.urlParams.listViewApiName,
30970
- type: params.urlParams.listViewApiName === '__Recent' ? 'mru' : 'listView',
30997
+ objectApiName: params.urlParams.objectApiName.toLowerCase(),
30998
+ listViewApiName: params.urlParams.listViewApiName.toLowerCase(),
30999
+ type: params.urlParams.listViewApiName.toLowerCase() === '__recent' ? 'mru' : 'listView',
30971
31000
  });
30972
31001
  }
30973
31002
 
@@ -44208,7 +44237,7 @@
44208
44237
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
44209
44238
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
44210
44239
  });
44211
- // version: 1.287.0-dev7-62bbd479a
44240
+ // version: 1.287.0-dev9-34cbc2e93
44212
44241
 
44213
44242
  var ldsIdempotencyWriteDisabled = {
44214
44243
  isOpen: function (e) {
@@ -62514,7 +62543,7 @@
62514
62543
  id: '@salesforce/lds-network-adapter',
62515
62544
  instrument: instrument$2,
62516
62545
  });
62517
- // version: 1.287.0-dev7-60e10f218
62546
+ // version: 1.287.0-dev9-7d875cd74
62518
62547
 
62519
62548
  const { create: create$3, keys: keys$3 } = Object;
62520
62549
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -82578,7 +82607,7 @@
82578
82607
  configuration: { ...configurationForGraphQLAdapters$1 },
82579
82608
  instrument: instrument$1,
82580
82609
  });
82581
- // version: 1.287.0-dev7-62bbd479a
82610
+ // version: 1.287.0-dev9-34cbc2e93
82582
82611
 
82583
82612
  // On core the unstable adapters are re-exported with different names,
82584
82613
  // we want to match them here.
@@ -84834,7 +84863,7 @@
84834
84863
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
84835
84864
  graphQLImperative = ldsAdapter;
84836
84865
  });
84837
- // version: 1.287.0-dev7-62bbd479a
84866
+ // version: 1.287.0-dev9-34cbc2e93
84838
84867
 
84839
84868
  var gqlApi = /*#__PURE__*/Object.freeze({
84840
84869
  __proto__: null,
@@ -85572,7 +85601,7 @@
85572
85601
  function register(r) {
85573
85602
  callbacks$1.forEach((callback) => callback(r));
85574
85603
  }
85575
- // version: 1.287.0-dev7-60e10f218
85604
+ // version: 1.287.0-dev9-7d875cd74
85576
85605
 
85577
85606
  /**
85578
85607
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -90553,4 +90582,4 @@
90553
90582
  exports.subscribeToAdapter = subscribeToAdapter;
90554
90583
 
90555
90584
  }));
90556
- // version: 1.287.0-dev7-60e10f218
90585
+ // version: 1.287.0-dev9-7d875cd74
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.287.0-dev7",
3
+ "version": "1.287.0-dev9",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -35,15 +35,15 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
38
- "@salesforce/lds-adapters-graphql": "^1.287.0-dev7",
39
- "@salesforce/lds-adapters-uiapi": "^1.287.0-dev7",
40
- "@salesforce/lds-default-luvio": "^1.287.0-dev7",
41
- "@salesforce/lds-drafts": "^1.287.0-dev7",
42
- "@salesforce/lds-graphql-parser": "^1.287.0-dev7",
43
- "@salesforce/lds-luvio-engine": "^1.287.0-dev7",
44
- "@salesforce/lds-priming": "^1.287.0-dev7",
45
- "@salesforce/lds-runtime-mobile": "^1.287.0-dev7",
46
- "@salesforce/nimbus-plugin-lds": "^1.287.0-dev7",
38
+ "@salesforce/lds-adapters-graphql": "^1.287.0-dev9",
39
+ "@salesforce/lds-adapters-uiapi": "^1.287.0-dev9",
40
+ "@salesforce/lds-default-luvio": "^1.287.0-dev9",
41
+ "@salesforce/lds-drafts": "^1.287.0-dev9",
42
+ "@salesforce/lds-graphql-parser": "^1.287.0-dev9",
43
+ "@salesforce/lds-luvio-engine": "^1.287.0-dev9",
44
+ "@salesforce/lds-priming": "^1.287.0-dev9",
45
+ "@salesforce/lds-runtime-mobile": "^1.287.0-dev9",
46
+ "@salesforce/nimbus-plugin-lds": "^1.287.0-dev9",
47
47
  "ajv": "^8.11.0",
48
48
  "glob": "^7.1.5",
49
49
  "nimbus-types": "^2.0.0-alpha1",