@salesforce/lds-ads-bridge 1.277.0 → 1.278.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.
@@ -479,7 +479,7 @@ const callbacks$1 = [];
479
479
  function register(r) {
480
480
  callbacks$1.forEach((callback) => callback(r));
481
481
  }
482
- // version: 1.277.0-8575d97fd
482
+ // version: 1.278.0-f0e8ebcd6
483
483
 
484
484
  /**
485
485
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -4954,7 +4954,7 @@ function validate$1T(obj, path = 'RecordTypeInfoRepresentation') {
4954
4954
  })();
4955
4955
  return v_error === undefined ? null : v_error;
4956
4956
  }
4957
- const select$2_ = function RecordTypeInfoRepresentationSelect() {
4957
+ const select$2$ = function RecordTypeInfoRepresentationSelect() {
4958
4958
  return {
4959
4959
  kind: 'Fragment',
4960
4960
  version: VERSION$2l,
@@ -5104,7 +5104,7 @@ function validate$1S(obj, path = 'FieldValueRepresentation') {
5104
5104
  return v_error === undefined ? null : v_error;
5105
5105
  }
5106
5106
  const RepresentationType$$ = 'FieldValueRepresentation';
5107
- const select$2Z = function FieldValueRepresentationSelect() {
5107
+ const select$2_ = function FieldValueRepresentationSelect() {
5108
5108
  return {
5109
5109
  kind: 'Fragment',
5110
5110
  version: VERSION$2k,
@@ -5118,7 +5118,7 @@ const select$2Z = function FieldValueRepresentationSelect() {
5118
5118
  name: 'value',
5119
5119
  kind: 'Link',
5120
5120
  nullable: true,
5121
- fragment: select$2X()
5121
+ fragment: select$2Y()
5122
5122
  }
5123
5123
  ]
5124
5124
  };
@@ -5362,7 +5362,7 @@ function normalize$S(input, existing, path, luvio, store, timestamp) {
5362
5362
  }
5363
5363
  return input;
5364
5364
  }
5365
- const select$2Y = function RecordCollectionRepresentationSelect() {
5365
+ const select$2Z = function RecordCollectionRepresentationSelect() {
5366
5366
  return {
5367
5367
  kind: 'Fragment',
5368
5368
  version: VERSION$2j,
@@ -5400,7 +5400,7 @@ const select$2Y = function RecordCollectionRepresentationSelect() {
5400
5400
  name: 'records',
5401
5401
  kind: 'Link',
5402
5402
  plural: true,
5403
- fragment: select$2X()
5403
+ fragment: select$2Y()
5404
5404
  }
5405
5405
  ]
5406
5406
  };
@@ -5681,14 +5681,14 @@ function validate$1Q(obj, path = 'RecordRepresentation') {
5681
5681
  return v_error === undefined ? null : v_error;
5682
5682
  }
5683
5683
  const RepresentationType$Z = 'RecordRepresentation';
5684
- function keyBuilder$3g(luvio, config) {
5684
+ function keyBuilder$3i(luvio, config) {
5685
5685
  return keyPrefix + '::' + RepresentationType$Z + ':' + config.recordId;
5686
5686
  }
5687
5687
  function keyBuilderFromType$C(luvio, object) {
5688
5688
  const keyParams = {
5689
5689
  recordId: object.id
5690
5690
  };
5691
- return keyBuilder$3g(luvio, keyParams);
5691
+ return keyBuilder$3i(luvio, keyParams);
5692
5692
  }
5693
5693
  function dynamicNormalize$5(ingestParams) {
5694
5694
  return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
@@ -5733,8 +5733,8 @@ function dynamicNormalize$5(ingestParams) {
5733
5733
  return input;
5734
5734
  };
5735
5735
  }
5736
- const select$2X = function RecordRepresentationSelect() {
5737
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2_();
5736
+ const select$2Y = function RecordRepresentationSelect() {
5737
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2$();
5738
5738
  return {
5739
5739
  kind: 'Fragment',
5740
5740
  version: VERSION$2i,
@@ -5751,13 +5751,13 @@ const select$2X = function RecordRepresentationSelect() {
5751
5751
  name: 'childRelationships',
5752
5752
  kind: 'Link',
5753
5753
  map: true,
5754
- fragment: select$2Y()
5754
+ fragment: select$2Z()
5755
5755
  },
5756
5756
  {
5757
5757
  name: 'fields',
5758
5758
  kind: 'Link',
5759
5759
  map: true,
5760
- fragment: select$2Z()
5760
+ fragment: select$2_()
5761
5761
  },
5762
5762
  {
5763
5763
  name: 'id',
@@ -5793,15 +5793,15 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
5793
5793
  name: 'childRelationships',
5794
5794
  kind: 'Link',
5795
5795
  map: true,
5796
- fragment: select$2Y()
5796
+ fragment: select$2Z()
5797
5797
  } : params.childRelationships;
5798
5798
  const fieldsPathSelection = params.fields === undefined ? {
5799
5799
  name: 'fields',
5800
5800
  kind: 'Link',
5801
5801
  map: true,
5802
- fragment: select$2Z()
5802
+ fragment: select$2_()
5803
5803
  } : params.fields;
5804
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2_();
5804
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2$();
5805
5805
  return {
5806
5806
  kind: 'Fragment',
5807
5807
  version: VERSION$2i,
@@ -7893,7 +7893,7 @@ function mergeAndRefreshLowerVersionRecord(luvio, incoming, existing, incomingTr
7893
7893
  };
7894
7894
  }
7895
7895
  else {
7896
- buildNetworkSnapshot$19(luvio, {
7896
+ buildNetworkSnapshot$1a(luvio, {
7897
7897
  recordId: incoming.id,
7898
7898
  optionalFields: convertTrieToFields(incomingTrackedFieldsTrieRoot),
7899
7899
  });
@@ -7903,7 +7903,7 @@ function mergeAndRefreshLowerVersionRecord(luvio, incoming, existing, incomingTr
7903
7903
  return existing;
7904
7904
  }
7905
7905
  function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
7906
- const recordKey = keyBuilder$3g(luvio, {
7906
+ const recordKey = keyBuilder$3i(luvio, {
7907
7907
  recordId: incoming.id,
7908
7908
  });
7909
7909
  const incomingNode = luvio.wrapNormalizedGraphNode(incoming, recordKey);
@@ -8290,22 +8290,22 @@ function isRestrictedPathCondition(existingPath, path) {
8290
8290
  (existingPath.includes('/records') && path.includes('/record-ui')));
8291
8291
  }
8292
8292
 
8293
- const createResourceRequest$1e = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
8293
+ const createResourceRequest$1f = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
8294
8294
  return {
8295
- ...createResourceRequest$1d(config),
8295
+ ...createResourceRequest$1e(config),
8296
8296
  fulfill: fulfill,
8297
8297
  };
8298
8298
  };
8299
8299
 
8300
- function keyBuilder$3f(luvio, params) {
8301
- return keyBuilder$3g(luvio, {
8300
+ function keyBuilder$3h(luvio, params) {
8301
+ return keyBuilder$3i(luvio, {
8302
8302
  recordId: params.urlParams.recordId
8303
8303
  });
8304
8304
  }
8305
- function getResponseCacheKeys$15(storeKeyMap, luvio, resourceParams, response) {
8305
+ function getResponseCacheKeys$16(storeKeyMap, luvio, resourceParams, response) {
8306
8306
  getTypeCacheKeys$1_(storeKeyMap, luvio, response);
8307
8307
  }
8308
- function createResourceRequest$1d(config) {
8308
+ function createResourceRequest$1e(config) {
8309
8309
  const headers = {};
8310
8310
  return {
8311
8311
  baseUri: '/services/data/v61.0',
@@ -8329,12 +8329,12 @@ const getRecord_ConfigPropertyMetadata = [
8329
8329
  generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
8330
8330
  generateParamConfigMetadata('updateMru', false, 1 /* QueryParameter */, 1 /* Boolean */),
8331
8331
  ];
8332
- const createResourceParams$13 = /*#__PURE__*/ createResourceParams(getRecord_ConfigPropertyMetadata);
8332
+ const createResourceParams$14 = /*#__PURE__*/ createResourceParams(getRecord_ConfigPropertyMetadata);
8333
8333
 
8334
8334
  // used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
8335
8335
  function buildRecordSelector(luvio, recordId, fields, optionalFields) {
8336
8336
  return {
8337
- recordId: keyBuilder$3g(luvio, { recordId }),
8337
+ recordId: keyBuilder$3i(luvio, { recordId }),
8338
8338
  node: {
8339
8339
  kind: 'Fragment',
8340
8340
  private: ['eTag', 'weakEtag'],
@@ -8347,27 +8347,27 @@ function buildRecordSelector(luvio, recordId, fields, optionalFields) {
8347
8347
  function buildSnapshotRefresh$5(luvio, config) {
8348
8348
  return {
8349
8349
  config,
8350
- resolve: () => buildNetworkSnapshot$19(luvio, config),
8350
+ resolve: () => buildNetworkSnapshot$1a(luvio, config),
8351
8351
  };
8352
8352
  }
8353
8353
  function prepareRequest$7(luvio, config) {
8354
8354
  const { recordId, fields } = config;
8355
8355
  // Should this go into the coersion logic?
8356
- const key = keyBuilder$3f(luvio, createResourceParams$13(config));
8356
+ const key = keyBuilder$3h(luvio, createResourceParams$14(config));
8357
8357
  const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
8358
8358
  maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
8359
8359
  onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
8360
8360
  }, config.optionalFields);
8361
8361
  const optionalFields = fields === undefined ? allTrackedFields : difference(allTrackedFields, fields);
8362
- const resourceParams = createResourceParams$13({
8362
+ const resourceParams = createResourceParams$14({
8363
8363
  recordId,
8364
8364
  fields,
8365
8365
  optionalFields: optionalFields.length > 0 ? optionalFields : undefined,
8366
8366
  });
8367
- const request = createResourceRequest$1e(resourceParams);
8367
+ const request = createResourceRequest$1f(resourceParams);
8368
8368
  return { request, key, allTrackedFields, resourceParams };
8369
8369
  }
8370
- function ingestSuccess$V(luvio, config, key, allTrackedFields, response, serverRequestCount) {
8370
+ function ingestSuccess$W(luvio, config, key, allTrackedFields, response, serverRequestCount) {
8371
8371
  const { body } = response;
8372
8372
  const fields = config.fields === undefined ? [] : config.fields;
8373
8373
  const optionalFields = config.optionalFields === undefined ? [] : config.optionalFields;
@@ -8381,19 +8381,19 @@ function ingestSuccess$V(luvio, config, key, allTrackedFields, response, serverR
8381
8381
  return luvio.storeLookup(buildRecordSelector(luvio, config.recordId, fields, optionalFields), buildSnapshotRefresh$5(luvio, config));
8382
8382
  }
8383
8383
  function onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount) {
8384
- const snapshot = ingestSuccess$V(luvio, config, key, allTrackedFields, response, serverRequestCount);
8384
+ const snapshot = ingestSuccess$W(luvio, config, key, allTrackedFields, response, serverRequestCount);
8385
8385
  return luvio.storeBroadcast().then(() => snapshot);
8386
8386
  }
8387
- function ingestError$P(luvio, config, key, err) {
8387
+ function ingestError$Q(luvio, config, key, err) {
8388
8388
  const errorSnapshot = luvio.errorSnapshot(err, buildSnapshotRefresh$5(luvio, config));
8389
8389
  luvio.storeIngestError(key, errorSnapshot, RECORD_REPRESENTATION_ERROR_STORE_METADATA_PARAMS);
8390
8390
  return errorSnapshot;
8391
8391
  }
8392
8392
  function onResourceError(luvio, config, key, err) {
8393
- const errorSnapshot = ingestError$P(luvio, config, key, err);
8393
+ const errorSnapshot = ingestError$Q(luvio, config, key, err);
8394
8394
  return luvio.storeBroadcast().then(() => errorSnapshot);
8395
8395
  }
8396
- function buildNetworkSnapshot$19(luvio, config, serverRequestCount = 0, options) {
8396
+ function buildNetworkSnapshot$1a(luvio, config, serverRequestCount = 0, options) {
8397
8397
  const { request, key, allTrackedFields, resourceParams } = prepareRequest$7(luvio, config);
8398
8398
  return luvio.dispatchResourceRequest(request, options).then((response) => {
8399
8399
  // W-11964675 - Condition to dedupe a very specific set of requests for
@@ -8412,7 +8412,7 @@ function buildNetworkSnapshot$19(luvio, config, serverRequestCount = 0, options)
8412
8412
  return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
8413
8413
  }, () => {
8414
8414
  const cache = new StoreKeyMap();
8415
- getResponseCacheKeys$15(cache, luvio, resourceParams, response.body);
8415
+ getResponseCacheKeys$16(cache, luvio, resourceParams, response.body);
8416
8416
  return cache;
8417
8417
  });
8418
8418
  }, (err) => {
@@ -8436,7 +8436,7 @@ function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, chi
8436
8436
  const now = Date.now();
8437
8437
  for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
8438
8438
  const childResourceParams = childResourceParamsArray[index];
8439
- const childKey = keyBuilder$3f(luvio, childResourceParams);
8439
+ const childKey = keyBuilder$3h(luvio, childResourceParams);
8440
8440
  const result = childEnvelopes[index];
8441
8441
  const { statusCode: childStatusCode, result: childBody } = result;
8442
8442
  if (childStatusCode === 200) {
@@ -8451,7 +8451,7 @@ function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, chi
8451
8451
  maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
8452
8452
  onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
8453
8453
  }, childResourceParams.queryParams.optionalFields);
8454
- const childSnapshot = ingestSuccess$V(luvio, {
8454
+ const childSnapshot = ingestSuccess$W(luvio, {
8455
8455
  recordId: childResourceParams.urlParams.recordId,
8456
8456
  fields: childResourceParams.queryParams.fields,
8457
8457
  optionalFields: childResourceParams.queryParams.optionalFields,
@@ -8477,7 +8477,7 @@ function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, chi
8477
8477
  headers: {},
8478
8478
  errorType: 'fetchResponse',
8479
8479
  };
8480
- ingestError$P(luvio, {
8480
+ ingestError$Q(luvio, {
8481
8481
  recordId: childResourceParams.urlParams.recordId,
8482
8482
  fields: childResourceParams.queryParams.fields,
8483
8483
  optionalFields: childResourceParams.queryParams.optionalFields,
@@ -8523,7 +8523,7 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
8523
8523
  read: (reader) => {
8524
8524
  // Top-level 404 lookup
8525
8525
  const compositeSnapshot = luvio.storeLookup({
8526
- recordId: keyBuilder$3e(luvio, resourceParams),
8526
+ recordId: keyBuilder$3g(luvio, resourceParams),
8527
8527
  node: {
8528
8528
  kind: 'Fragment',
8529
8529
  private: [],
@@ -8547,7 +8547,7 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
8547
8547
  reader.enterPath(i);
8548
8548
  reader.enterPath(envelopeBodyPath);
8549
8549
  const childResource = childResources[i];
8550
- const childKey = keyBuilder$3f(luvio, childResource);
8550
+ const childKey = keyBuilder$3h(luvio, childResource);
8551
8551
  const isMissingDataBeforeChildRead = reader.getIsDataMissing();
8552
8552
  const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
8553
8553
  reader.exitPath();
@@ -8647,10 +8647,10 @@ function createChildResourceParams$c(resourceParams) {
8647
8647
  }
8648
8648
  return childConfigs;
8649
8649
  }
8650
- function keyBuilder$3e(luvio, params) {
8650
+ function keyBuilder$3g(luvio, params) {
8651
8651
  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 + ')';
8652
8652
  }
8653
- function getResponseCacheKeys$14(keys, luvio, resourceParams, response) {
8653
+ function getResponseCacheKeys$15(keys, luvio, resourceParams, response) {
8654
8654
  const childEnvelopes = response.results;
8655
8655
  const childResourceParamsArray = createChildResourceParams$c(resourceParams);
8656
8656
  if (process.env.NODE_ENV !== 'production') {
@@ -8664,10 +8664,10 @@ function getResponseCacheKeys$14(keys, luvio, resourceParams, response) {
8664
8664
  const childResult = childEnvelopes[index];
8665
8665
  const { statusCode: childStatusCode, result: childBody } = childResult;
8666
8666
  if (childStatusCode === 200) {
8667
- getResponseCacheKeys$15(keys, luvio, childResourceParams, childBody);
8667
+ getResponseCacheKeys$16(keys, luvio, childResourceParams, childBody);
8668
8668
  }
8669
8669
  else if (childStatusCode === 404) {
8670
- const childKey = keyBuilder$3f(luvio, childResourceParams);
8670
+ const childKey = keyBuilder$3h(luvio, childResourceParams);
8671
8671
  keys.set(childKey, {
8672
8672
  namespace: keyPrefix,
8673
8673
  representationName: RepresentationType$Z,
@@ -8676,13 +8676,13 @@ function getResponseCacheKeys$14(keys, luvio, resourceParams, response) {
8676
8676
  }
8677
8677
  }
8678
8678
  }
8679
- function ingestError$O(luvio, params, error, snapshotRefresh) {
8680
- const key = keyBuilder$3e(luvio, params);
8679
+ function ingestError$P(luvio, params, error, snapshotRefresh) {
8680
+ const key = keyBuilder$3g(luvio, params);
8681
8681
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
8682
8682
  luvio.storeIngestError(key, errorSnapshot);
8683
8683
  return errorSnapshot;
8684
8684
  }
8685
- function createResourceRequest$1c(config) {
8685
+ function createResourceRequest$1d(config) {
8686
8686
  const headers = {};
8687
8687
  return {
8688
8688
  baseUri: '/services/data/v61.0',
@@ -8696,7 +8696,7 @@ function createResourceRequest$1c(config) {
8696
8696
  };
8697
8697
  }
8698
8698
 
8699
- function createResourceParams$12(config) {
8699
+ function createResourceParams$13(config) {
8700
8700
  const { records: configRecords } = config;
8701
8701
  const recordIds = [];
8702
8702
  const resourceConfigFields = [];
@@ -8748,13 +8748,13 @@ function createChildResourceParams$b(config) {
8748
8748
  return childResources;
8749
8749
  }
8750
8750
 
8751
- function adapterFragment$M(luvio, config) {
8751
+ function adapterFragment$N(luvio, config) {
8752
8752
  const childResources = createChildResourceParams$b(config);
8753
- const resourceParams = createResourceParams$12(config);
8753
+ const resourceParams = createResourceParams$13(config);
8754
8754
  return selectChildResourceParams$8(luvio, childResources, resourceParams);
8755
8755
  }
8756
8756
 
8757
- function onFetchResponseSuccess$Q(luvio, config, resourceParams, response, serverRequestCount = 0) {
8757
+ function onFetchResponseSuccess$R(luvio, config, resourceParams, response, serverRequestCount = 0) {
8758
8758
  const childEnvelopes = response.body.results;
8759
8759
  const childResourceParamsArray = createChildResourceParams$b(config);
8760
8760
  if (process.env.NODE_ENV !== 'production') {
@@ -8766,7 +8766,7 @@ function onFetchResponseSuccess$Q(luvio, config, resourceParams, response, serve
8766
8766
  }
8767
8767
  }
8768
8768
  const snapshotStateFulfilled = 'Fulfilled';
8769
- const key = keyBuilder$3e(luvio, resourceParams);
8769
+ const key = keyBuilder$3g(luvio, resourceParams);
8770
8770
  const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
8771
8771
  const snapshot = {
8772
8772
  recordId: key,
@@ -8775,36 +8775,36 @@ function onFetchResponseSuccess$Q(luvio, config, resourceParams, response, serve
8775
8775
  seenRecords: seenRecords,
8776
8776
  select: {
8777
8777
  recordId: key,
8778
- node: adapterFragment$M(luvio, config),
8778
+ node: adapterFragment$N(luvio, config),
8779
8779
  variables: {},
8780
8780
  },
8781
8781
  refresh: {
8782
8782
  config,
8783
- resolve: () => buildNetworkSnapshot$18(luvio, config, serverRequestCount, snapshotRefreshOptions),
8783
+ resolve: () => buildNetworkSnapshot$19(luvio, config, serverRequestCount, snapshotRefreshOptions),
8784
8784
  },
8785
8785
  variables: {},
8786
8786
  };
8787
8787
  return luvio.storeBroadcast().then(() => snapshot);
8788
8788
  }
8789
8789
 
8790
- function onFetchResponseError$R(luvio, config, resourceParams, response) {
8791
- const snapshot = ingestError$O(luvio, resourceParams, response, {
8790
+ function onFetchResponseError$S(luvio, config, resourceParams, response) {
8791
+ const snapshot = ingestError$P(luvio, resourceParams, response, {
8792
8792
  config,
8793
- resolve: () => buildNetworkSnapshot$18(luvio, config, 0, snapshotRefreshOptions),
8793
+ resolve: () => buildNetworkSnapshot$19(luvio, config, 0, snapshotRefreshOptions),
8794
8794
  });
8795
8795
  return luvio.storeBroadcast().then(() => snapshot);
8796
8796
  }
8797
- function buildNetworkSnapshot$18(luvio, config, serverRequestCount = 0, options) {
8798
- const resourceParams = createResourceParams$12(config);
8799
- const request = createResourceRequest$1c(resourceParams);
8797
+ function buildNetworkSnapshot$19(luvio, config, serverRequestCount = 0, options) {
8798
+ const resourceParams = createResourceParams$13(config);
8799
+ const request = createResourceRequest$1d(resourceParams);
8800
8800
  return luvio.dispatchResourceRequest(request, options).then((response) => {
8801
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$Q(luvio, config, resourceParams, response, serverRequestCount + 1), () => {
8801
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$R(luvio, config, resourceParams, response, serverRequestCount + 1), () => {
8802
8802
  const cache = new StoreKeyMap();
8803
- getResponseCacheKeys$14(cache, luvio, resourceParams, response.body);
8803
+ getResponseCacheKeys$15(cache, luvio, resourceParams, response.body);
8804
8804
  return cache;
8805
8805
  });
8806
8806
  }, (response) => {
8807
- return luvio.handleErrorResponse(() => onFetchResponseError$R(luvio, config, resourceParams, response));
8807
+ return luvio.handleErrorResponse(() => onFetchResponseError$S(luvio, config, resourceParams, response));
8808
8808
  });
8809
8809
  }
8810
8810
 
@@ -8821,7 +8821,7 @@ function resolveConflict(luvio, map) {
8821
8821
  recordId,
8822
8822
  optionalFields: convertTrieToFields(map.conflicts[recordId].trackedFields),
8823
8823
  };
8824
- buildNetworkSnapshot$19(luvio, config, map.serverRequestCount);
8824
+ buildNetworkSnapshot$1a(luvio, config, map.serverRequestCount);
8825
8825
  }
8826
8826
  else {
8827
8827
  const records = reduce.call(ids, (acc, id) => {
@@ -8833,7 +8833,7 @@ function resolveConflict(luvio, map) {
8833
8833
  return acc;
8834
8834
  }, []);
8835
8835
  const config = { records };
8836
- buildNetworkSnapshot$18(luvio, config, map.serverRequestCount);
8836
+ buildNetworkSnapshot$19(luvio, config, map.serverRequestCount);
8837
8837
  }
8838
8838
  }
8839
8839
  const ingest$1V = (input, path, luvio, store, timestamp) => {
@@ -8847,7 +8847,7 @@ const ingest$1V = (input, path, luvio, store, timestamp) => {
8847
8847
  return result;
8848
8848
  };
8849
8849
 
8850
- const adapterName$_ = 'getListUiByApiName';
8850
+ const adapterName$$ = 'getListUiByApiName';
8851
8851
  const getListUiByApiName_ConfigPropertyMetadata = [
8852
8852
  generateParamConfigMetadata('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
8853
8853
  generateParamConfigMetadata('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
@@ -8857,9 +8857,9 @@ const getListUiByApiName_ConfigPropertyMetadata = [
8857
8857
  generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
8858
8858
  generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8859
8859
  ];
8860
- const getListUiByApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$_, getListUiByApiName_ConfigPropertyMetadata);
8860
+ const getListUiByApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$$, getListUiByApiName_ConfigPropertyMetadata);
8861
8861
 
8862
- const adapterName$Z = 'getListUiByListViewId';
8862
+ const adapterName$_ = 'getListUiByListViewId';
8863
8863
  const getListUiByListViewId_ConfigPropertyMetadata = [
8864
8864
  generateParamConfigMetadata('listViewId', true, 0 /* UrlParameter */, 0 /* String */),
8865
8865
  generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
@@ -8868,9 +8868,9 @@ const getListUiByListViewId_ConfigPropertyMetadata = [
8868
8868
  generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
8869
8869
  generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8870
8870
  ];
8871
- const getListUiByListViewId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Z, getListUiByListViewId_ConfigPropertyMetadata);
8871
+ const getListUiByListViewId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$_, getListUiByListViewId_ConfigPropertyMetadata);
8872
8872
 
8873
- const adapterName$X = 'getMruListUi';
8873
+ const adapterName$Y = 'getMruListUi';
8874
8874
  const getMruListUi_ConfigPropertyMetadata = [
8875
8875
  generateParamConfigMetadata('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
8876
8876
  generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
@@ -8879,7 +8879,7 @@ const getMruListUi_ConfigPropertyMetadata = [
8879
8879
  generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
8880
8880
  generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8881
8881
  ];
8882
- const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$X, getMruListUi_ConfigPropertyMetadata);
8882
+ const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Y, getMruListUi_ConfigPropertyMetadata);
8883
8883
  // make local copies of the adapter configs so we can ignore other getListUi config parameters to match
8884
8884
  // lds222 behavior
8885
8885
  ({
@@ -8914,7 +8914,7 @@ const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationCon
8914
8914
  },
8915
8915
  });
8916
8916
  const RepresentationType$S = 'ObjectInfoRepresentation';
8917
- function keyBuilder$2$(luvio, config) {
8917
+ function keyBuilder$31(luvio, config) {
8918
8918
  return keyPrefix + '::' + RepresentationType$S + ':' + config.apiName;
8919
8919
  }
8920
8920
 
@@ -8957,8 +8957,8 @@ ObjectCreate$1(null);
8957
8957
  ObjectCreate$1(null);
8958
8958
 
8959
8959
  const VERSION$1I = "8d2032474fb4fabdf5cf4042be9042d9";
8960
- const select$1V = function WorkStepPicklistValueAttributeRepresentationSelect() {
8961
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1R();
8960
+ const select$1W = function WorkStepPicklistValueAttributeRepresentationSelect() {
8961
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1S();
8962
8962
  return {
8963
8963
  kind: 'Fragment',
8964
8964
  version: VERSION$1I,
@@ -8978,8 +8978,8 @@ const select$1V = function WorkStepPicklistValueAttributeRepresentationSelect()
8978
8978
  };
8979
8979
 
8980
8980
  const VERSION$1H = "53893a219bc0888951863f2c44317cac";
8981
- const select$1U = function LeadStatusPicklistValueAttributesRepresentationSelect() {
8982
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1R();
8981
+ const select$1V = function LeadStatusPicklistValueAttributesRepresentationSelect() {
8982
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1S();
8983
8983
  return {
8984
8984
  kind: 'Fragment',
8985
8985
  version: VERSION$1H,
@@ -8995,8 +8995,8 @@ const select$1U = function LeadStatusPicklistValueAttributesRepresentationSelect
8995
8995
  };
8996
8996
 
8997
8997
  const VERSION$1G = "4818ec07c499784571c1012ead048c88";
8998
- const select$1T = function CaseStatusPicklistValueAttributesRepresentationSelect() {
8999
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1R();
8998
+ const select$1U = function CaseStatusPicklistValueAttributesRepresentationSelect() {
8999
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1S();
9000
9000
  return {
9001
9001
  kind: 'Fragment',
9002
9002
  version: VERSION$1G,
@@ -9012,8 +9012,8 @@ const select$1T = function CaseStatusPicklistValueAttributesRepresentationSelect
9012
9012
  };
9013
9013
 
9014
9014
  const VERSION$1F = "950a3a962acbd2b128f937d4c055a9d6";
9015
- const select$1S = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
9016
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1R();
9015
+ const select$1T = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
9016
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1S();
9017
9017
  return {
9018
9018
  kind: 'Fragment',
9019
9019
  version: VERSION$1F,
@@ -9049,10 +9049,10 @@ var DiscriminatorValues$4;
9049
9049
  })(DiscriminatorValues$4 || (DiscriminatorValues$4 = {}));
9050
9050
  const VERSION$1E = "bd523b2343366edfc25a2dbee2c4e986";
9051
9051
  const selectChildren$2 = function AbstractPicklistValueAttributesRepresentationSelectChildren() {
9052
- const workStepPicklistValueAttributeRepresentationSelections = select$1V();
9053
- const leadStatusPicklistValueAttributesRepresentationSelections = select$1U();
9054
- const caseStatusPicklistValueAttributesRepresentationSelections = select$1T();
9055
- const opportunityStagePicklistValueAttributesRepresentationSelections = select$1S();
9052
+ const workStepPicklistValueAttributeRepresentationSelections = select$1W();
9053
+ const leadStatusPicklistValueAttributesRepresentationSelections = select$1V();
9054
+ const caseStatusPicklistValueAttributesRepresentationSelections = select$1U();
9055
+ const opportunityStagePicklistValueAttributesRepresentationSelections = select$1T();
9056
9056
  return {
9057
9057
  kind: 'Fragment',
9058
9058
  union: true,
@@ -9065,7 +9065,7 @@ const selectChildren$2 = function AbstractPicklistValueAttributesRepresentationS
9065
9065
  }
9066
9066
  };
9067
9067
  };
9068
- const select$1R = function AbstractPicklistValueAttributesRepresentationSelect() {
9068
+ const select$1S = function AbstractPicklistValueAttributesRepresentationSelect() {
9069
9069
  return {
9070
9070
  kind: 'Fragment',
9071
9071
  version: VERSION$1E,
@@ -9080,7 +9080,7 @@ const select$1R = function AbstractPicklistValueAttributesRepresentationSelect()
9080
9080
  };
9081
9081
 
9082
9082
  const VERSION$1D = "9e2a16a80378487f557124c771201cf9";
9083
- const select$1Q = function PicklistValueRepresentationSelect() {
9083
+ const select$1R = function PicklistValueRepresentationSelect() {
9084
9084
  const AbstractPicklistValueAttributesRepresentation__unionSelections = selectChildren$2();
9085
9085
  return {
9086
9086
  kind: 'Fragment',
@@ -9112,8 +9112,8 @@ const select$1Q = function PicklistValueRepresentationSelect() {
9112
9112
  };
9113
9113
  };
9114
9114
  const VERSION$1C = "0a361a49370acb4c6a31721a2057649a";
9115
- const select$1P = function PicklistValuesRepresentationSelect() {
9116
- const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$1Q();
9115
+ const select$1Q = function PicklistValuesRepresentationSelect() {
9116
+ const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$1R();
9117
9117
  return {
9118
9118
  kind: 'Fragment',
9119
9119
  version: VERSION$1C,
@@ -9146,7 +9146,7 @@ const select$1P = function PicklistValuesRepresentationSelect() {
9146
9146
  };
9147
9147
  };
9148
9148
 
9149
- select$1P().selections;
9149
+ select$1Q().selections;
9150
9150
 
9151
9151
  var DiscriminatorValues$3;
9152
9152
  (function (DiscriminatorValues) {
@@ -9276,7 +9276,7 @@ function getShallowRecord(luvio, storeRecordId) {
9276
9276
  */
9277
9277
  function getObjectMetadata(luvio, record) {
9278
9278
  const { data: objectInfo } = luvio.storeLookup({
9279
- recordId: keyBuilder$2$(luvio, { apiName: record.apiName }),
9279
+ recordId: keyBuilder$31(luvio, { apiName: record.apiName }),
9280
9280
  node: {
9281
9281
  kind: 'Fragment',
9282
9282
  private: ['eTag'],
@@ -9317,7 +9317,7 @@ function getObjectMetadata(luvio, record) {
9317
9317
  function fixRecordTypes(luvio, record) {
9318
9318
  // non-master record types should always be correct
9319
9319
  if (record.recordTypeId === MAIN_RECORD_TYPE_ID) {
9320
- const key = keyBuilder$3g(luvio, { recordId: record.id });
9320
+ const key = keyBuilder$3i(luvio, { recordId: record.id });
9321
9321
  const recordNode = luvio.getNode(key);
9322
9322
  if (isGraphNode(recordNode) && recordNode.scalar('recordTypeId') !== MAIN_RECORD_TYPE_ID) {
9323
9323
  // ignore bogus incoming record type information & keep what we have
@@ -9403,7 +9403,7 @@ class AdsBridge {
9403
9403
  */
9404
9404
  evict(recordId) {
9405
9405
  const { luvio } = this;
9406
- const key = keyBuilder$3g(luvio, { recordId });
9406
+ const key = keyBuilder$3i(luvio, { recordId });
9407
9407
  return this.lockLdsRecordEmit(() => {
9408
9408
  luvio.storeEvict(key);
9409
9409
  luvio.storeBroadcast();
@@ -9418,7 +9418,7 @@ class AdsBridge {
9418
9418
  */
9419
9419
  getTrackedFieldsForRecord(recordId) {
9420
9420
  const { luvio } = this;
9421
- const storeRecordId = keyBuilder$3g(luvio, { recordId });
9421
+ const storeRecordId = keyBuilder$3i(luvio, { recordId });
9422
9422
  const recordNode = luvio.getNode(storeRecordId);
9423
9423
  if (!isGraphNode(recordNode)) {
9424
9424
  return Promise.resolve([]);
package/dist/adsBridge.js CHANGED
@@ -371,4 +371,4 @@ function withAdsBridge(callback) {
371
371
  }
372
372
 
373
373
  export { instrument, withAdsBridge };
374
- // version: 1.277.0-8575d97fd
374
+ // version: 1.278.0-f0e8ebcd6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-ads-bridge",
3
- "version": "1.277.0",
3
+ "version": "1.278.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",
@@ -29,7 +29,7 @@
29
29
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-ads-bridge"
30
30
  },
31
31
  "devDependencies": {
32
- "@salesforce/lds-adapters-uiapi": "^1.277.0",
33
- "@salesforce/lds-uiapi-record-utils": "^1.277.0"
32
+ "@salesforce/lds-adapters-uiapi": "^1.278.0",
33
+ "@salesforce/lds-uiapi-record-utils": "^1.278.0"
34
34
  }
35
35
  }