@salesforce/lds-ads-bridge 1.150.7 → 1.151.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.
@@ -387,7 +387,7 @@ const callbacks$1 = [];
387
387
  function register(r) {
388
388
  callbacks$1.forEach((callback) => callback(r));
389
389
  }
390
- // version: 1.150.7-7e9174c61
390
+ // version: 1.151.0-9d2874342
391
391
 
392
392
  /**
393
393
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -6229,14 +6229,14 @@ function validate$1v(obj, path = 'RecordRepresentation') {
6229
6229
  return v_error === undefined ? null : v_error;
6230
6230
  }
6231
6231
  const RepresentationType$S = 'RecordRepresentation';
6232
- function keyBuilder$30(luvio, config) {
6232
+ function keyBuilder$31(luvio, config) {
6233
6233
  return keyPrefix + '::' + RepresentationType$S + ':' + config.recordId;
6234
6234
  }
6235
6235
  function keyBuilderFromType$x(luvio, object) {
6236
6236
  const keyParams = {
6237
6237
  recordId: object.id
6238
6238
  };
6239
- return keyBuilder$30(luvio, keyParams);
6239
+ return keyBuilder$31(luvio, keyParams);
6240
6240
  }
6241
6241
  function dynamicNormalize$5(ingestParams) {
6242
6242
  return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
@@ -8405,7 +8405,7 @@ function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
8405
8405
  name: existing.apiName,
8406
8406
  children: {},
8407
8407
  };
8408
- const recordKey = keyBuilder$30(luvio, {
8408
+ const recordKey = keyBuilder$31(luvio, {
8409
8409
  recordId: incoming.id,
8410
8410
  });
8411
8411
  const trackedFieldsConfig = {
@@ -8781,8 +8781,8 @@ const createResourceRequest$14 = function getUiApiRecordsByRecordIdCreateResourc
8781
8781
  };
8782
8782
  };
8783
8783
 
8784
- function keyBuilder$2$(luvio, params) {
8785
- return keyBuilder$30(luvio, {
8784
+ function keyBuilder$30(luvio, params) {
8785
+ return keyBuilder$31(luvio, {
8786
8786
  recordId: params.urlParams.recordId
8787
8787
  });
8788
8788
  }
@@ -8817,7 +8817,7 @@ function createResourceParams$W(config) {
8817
8817
  // used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
8818
8818
  function buildRecordSelector(luvio, recordId, fields, optionalFields) {
8819
8819
  return {
8820
- recordId: keyBuilder$30(luvio, { recordId }),
8820
+ recordId: keyBuilder$31(luvio, { recordId }),
8821
8821
  node: {
8822
8822
  kind: 'Fragment',
8823
8823
  private: ['eTag', 'weakEtag'],
@@ -8836,7 +8836,7 @@ function buildSnapshotRefresh$5(luvio, config) {
8836
8836
  function prepareRequest$6(luvio, config) {
8837
8837
  const { recordId, fields } = config;
8838
8838
  // Should this go into the coersion logic?
8839
- const key = keyBuilder$2$(luvio, createResourceParams$W(config));
8839
+ const key = keyBuilder$30(luvio, createResourceParams$W(config));
8840
8840
  const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
8841
8841
  maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
8842
8842
  onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
@@ -8913,7 +8913,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
8913
8913
  const now = Date.now();
8914
8914
  for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
8915
8915
  const childResourceParams = childResourceParamsArray[index];
8916
- const childKey = keyBuilder$2$(luvio, childResourceParams);
8916
+ const childKey = keyBuilder$30(luvio, childResourceParams);
8917
8917
  const result = childEnvelopes[index];
8918
8918
  const { statusCode: childStatusCode, result: childBody } = result;
8919
8919
  if (childStatusCode === 200) {
@@ -9000,7 +9000,7 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
9000
9000
  read: (reader) => {
9001
9001
  // Top-level 404 lookup
9002
9002
  const compositeSnapshot = luvio.storeLookup({
9003
- recordId: keyBuilder$2_(luvio, resourceParams),
9003
+ recordId: keyBuilder$2$(luvio, resourceParams),
9004
9004
  node: {
9005
9005
  kind: 'Fragment',
9006
9006
  private: [],
@@ -9024,7 +9024,7 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
9024
9024
  reader.enterPath(i);
9025
9025
  reader.enterPath(envelopeBodyPath);
9026
9026
  const childResource = childResources[i];
9027
- const childKey = keyBuilder$2$(luvio, childResource);
9027
+ const childKey = keyBuilder$30(luvio, childResource);
9028
9028
  const isMissingDataBeforeChildRead = reader.getIsDataMissing();
9029
9029
  const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
9030
9030
  reader.exitPath();
@@ -9124,7 +9124,7 @@ function createChildResourceParams$9(resourceParams) {
9124
9124
  }
9125
9125
  return childConfigs;
9126
9126
  }
9127
- function keyBuilder$2_(luvio, params) {
9127
+ function keyBuilder$2$(luvio, params) {
9128
9128
  return keyPrefix + '::BatchRepresentation:(' + 'childRelationships:' + params.queryParams.childRelationships + ',' + 'fields:' + params.queryParams.fields + ',' + 'layoutTypes:' + params.queryParams.layoutTypes + ',' + 'modes:' + params.queryParams.modes + ',' + 'optionalFields:' + params.queryParams.optionalFields + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'updateMru:' + params.queryParams.updateMru + ',' + 'recordIds:' + params.urlParams.recordIds + ')';
9129
9129
  }
9130
9130
  function getResponseCacheKeys$W(luvio, resourceParams, response) {
@@ -9146,7 +9146,7 @@ function getResponseCacheKeys$W(luvio, resourceParams, response) {
9146
9146
  keys.merge(childKeys);
9147
9147
  }
9148
9148
  else if (childStatusCode === 404) {
9149
- const childKey = keyBuilder$2$(luvio, childResourceParams);
9149
+ const childKey = keyBuilder$30(luvio, childResourceParams);
9150
9150
  keys.set(childKey, {
9151
9151
  namespace: keyPrefix,
9152
9152
  representationName: RepresentationType$S,
@@ -9157,7 +9157,7 @@ function getResponseCacheKeys$W(luvio, resourceParams, response) {
9157
9157
  return keys;
9158
9158
  }
9159
9159
  function ingestError$J(luvio, params, error, snapshotRefresh) {
9160
- const key = keyBuilder$2_(luvio, params);
9160
+ const key = keyBuilder$2$(luvio, params);
9161
9161
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
9162
9162
  luvio.storeIngestError(key, errorSnapshot);
9163
9163
  return errorSnapshot;
@@ -9246,7 +9246,7 @@ function onFetchResponseSuccess$L(luvio, config, resourceParams, response, serve
9246
9246
  }
9247
9247
  }
9248
9248
  const snapshotStateFulfilled = 'Fulfilled';
9249
- const key = keyBuilder$2_(luvio, resourceParams);
9249
+ const key = keyBuilder$2$(luvio, resourceParams);
9250
9250
  const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
9251
9251
  const snapshot = {
9252
9252
  recordId: key,
@@ -9379,7 +9379,7 @@ const getMruListUi_ConfigPropertyNames = {
9379
9379
  },
9380
9380
  });
9381
9381
  const RepresentationType$N = 'ObjectInfoRepresentation';
9382
- function keyBuilder$2N(luvio, config) {
9382
+ function keyBuilder$2O(luvio, config) {
9383
9383
  return keyPrefix + '::' + RepresentationType$N + ':' + config.apiName;
9384
9384
  }
9385
9385
 
@@ -9708,7 +9708,7 @@ function getShallowRecord(luvio, storeRecordId) {
9708
9708
  */
9709
9709
  function getObjectMetadata(luvio, record) {
9710
9710
  const { data: objectInfo } = luvio.storeLookup({
9711
- recordId: keyBuilder$2N(luvio, { apiName: record.apiName }),
9711
+ recordId: keyBuilder$2O(luvio, { apiName: record.apiName }),
9712
9712
  node: {
9713
9713
  kind: 'Fragment',
9714
9714
  private: ['eTag'],
@@ -9749,7 +9749,7 @@ function getObjectMetadata(luvio, record) {
9749
9749
  function fixRecordTypes(luvio, record) {
9750
9750
  // non-master record types should always be correct
9751
9751
  if (record.recordTypeId === MASTER_RECORD_TYPE_ID) {
9752
- const key = keyBuilder$30(luvio, { recordId: record.id });
9752
+ const key = keyBuilder$31(luvio, { recordId: record.id });
9753
9753
  const recordNode = luvio.getNode(key);
9754
9754
  if (isGraphNode(recordNode) &&
9755
9755
  recordNode.scalar('recordTypeId') !== MASTER_RECORD_TYPE_ID) {
@@ -9836,7 +9836,7 @@ class AdsBridge {
9836
9836
  */
9837
9837
  evict(recordId) {
9838
9838
  const { luvio } = this;
9839
- const key = keyBuilder$30(luvio, { recordId });
9839
+ const key = keyBuilder$31(luvio, { recordId });
9840
9840
  return this.lockLdsRecordEmit(() => {
9841
9841
  luvio.storeEvict(key);
9842
9842
  luvio.storeBroadcast();
@@ -9851,7 +9851,7 @@ class AdsBridge {
9851
9851
  */
9852
9852
  getTrackedFieldsForRecord(recordId) {
9853
9853
  const { luvio } = this;
9854
- const storeRecordId = keyBuilder$30(luvio, { recordId });
9854
+ const storeRecordId = keyBuilder$31(luvio, { recordId });
9855
9855
  const recordNode = luvio.getNode(storeRecordId);
9856
9856
  if (!isGraphNode(recordNode)) {
9857
9857
  return Promise.resolve([]);
package/dist/adsBridge.js CHANGED
@@ -375,4 +375,4 @@ function withAdsBridge(callback) {
375
375
  }
376
376
 
377
377
  export { instrument, withAdsBridge };
378
- // version: 1.150.7-7e9174c61
378
+ // version: 1.151.0-9d2874342
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-ads-bridge",
3
- "version": "1.150.7",
3
+ "version": "1.151.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Bridge to sync data between LDS and ADS",
6
6
  "main": "dist/adsBridge.js",