@salesforce/lds-ads-bridge 1.211.0 → 1.212.1

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.
@@ -395,7 +395,7 @@ const callbacks$1 = [];
395
395
  function register(r) {
396
396
  callbacks$1.forEach((callback) => callback(r));
397
397
  }
398
- // version: 1.211.0-a37f2b789
398
+ // version: 1.212.1-796d747db
399
399
 
400
400
  /**
401
401
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -5444,7 +5444,7 @@ function createLink$1(ref) {
5444
5444
  };
5445
5445
  }
5446
5446
 
5447
- const VERSION$2i = "d1e589a127fb1060c89070cdb6f500b2";
5447
+ const VERSION$2j = "d1e589a127fb1060c89070cdb6f500b2";
5448
5448
  function validate$1C(obj, path = 'RecordTypeInfoRepresentation') {
5449
5449
  const v_error = (() => {
5450
5450
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5478,10 +5478,10 @@ function validate$1C(obj, path = 'RecordTypeInfoRepresentation') {
5478
5478
  })();
5479
5479
  return v_error === undefined ? null : v_error;
5480
5480
  }
5481
- const select$2Q = function RecordTypeInfoRepresentationSelect() {
5481
+ const select$2R = function RecordTypeInfoRepresentationSelect() {
5482
5482
  return {
5483
5483
  kind: 'Fragment',
5484
- version: VERSION$2i,
5484
+ version: VERSION$2j,
5485
5485
  private: [],
5486
5486
  selections: [
5487
5487
  {
@@ -5536,7 +5536,7 @@ function equals$10(existing, incoming) {
5536
5536
  return true;
5537
5537
  }
5538
5538
 
5539
- const VERSION$2h = "195d918987a35f45e1aa4dce9a11d8c5";
5539
+ const VERSION$2i = "195d918987a35f45e1aa4dce9a11d8c5";
5540
5540
  function validate$1B(obj, path = 'FieldValueRepresentation') {
5541
5541
  const v_error = (() => {
5542
5542
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5628,10 +5628,10 @@ function validate$1B(obj, path = 'FieldValueRepresentation') {
5628
5628
  return v_error === undefined ? null : v_error;
5629
5629
  }
5630
5630
  const RepresentationType$V = 'FieldValueRepresentation';
5631
- const select$2P = function FieldValueRepresentationSelect() {
5631
+ const select$2Q = function FieldValueRepresentationSelect() {
5632
5632
  return {
5633
5633
  kind: 'Fragment',
5634
- version: VERSION$2h,
5634
+ version: VERSION$2i,
5635
5635
  private: [],
5636
5636
  selections: [
5637
5637
  {
@@ -5642,7 +5642,7 @@ const select$2P = function FieldValueRepresentationSelect() {
5642
5642
  name: 'value',
5643
5643
  kind: 'Link',
5644
5644
  nullable: true,
5645
- fragment: select$2N()
5645
+ fragment: select$2O()
5646
5646
  }
5647
5647
  ]
5648
5648
  };
@@ -5665,7 +5665,7 @@ function equals$$(existing, incoming) {
5665
5665
  }
5666
5666
  return true;
5667
5667
  }
5668
- function getTypeCacheKeys$1V(rootKeySet, luvio, input, fullPathFactory) {
5668
+ function getTypeCacheKeys$1W(rootKeySet, luvio, input, fullPathFactory) {
5669
5669
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5670
5670
  const rootKey = fullPathFactory();
5671
5671
  rootKeySet.set(rootKey, {
@@ -5674,7 +5674,7 @@ function getTypeCacheKeys$1V(rootKeySet, luvio, input, fullPathFactory) {
5674
5674
  mergeable: false
5675
5675
  });
5676
5676
  if (input.value !== null && typeof input.value === 'object') {
5677
- getTypeCacheKeys$1U(rootKeySet, luvio, input.value);
5677
+ getTypeCacheKeys$1V(rootKeySet, luvio, input.value);
5678
5678
  }
5679
5679
  }
5680
5680
 
@@ -5685,7 +5685,7 @@ const { isArray } = Array;
5685
5685
  const { concat, filter, includes, push: push$1, reduce } = Array.prototype;
5686
5686
 
5687
5687
  // we override the generated so we can set "mergeable: true" on the root key
5688
- const getTypeCacheKeys$1U = (rootKeySet, luvio, input, _fullPathFactory) => {
5688
+ const getTypeCacheKeys$1V = (rootKeySet, luvio, input, _fullPathFactory) => {
5689
5689
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5690
5690
  const rootKey = keyBuilderFromType$y(luvio, input);
5691
5691
  rootKeySet.set(rootKey, {
@@ -5698,20 +5698,20 @@ const getTypeCacheKeys$1U = (rootKeySet, luvio, input, _fullPathFactory) => {
5698
5698
  const input_childRelationships_length = input_childRelationships_keys.length;
5699
5699
  for (let i = 0; i < input_childRelationships_length; i++) {
5700
5700
  const key = input_childRelationships_keys[i];
5701
- getTypeCacheKeys$1T(rootKeySet, luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
5701
+ getTypeCacheKeys$1U(rootKeySet, luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
5702
5702
  }
5703
5703
  const input_fields = input.fields;
5704
5704
  const input_fields_keys = keys$1(input_fields);
5705
5705
  const input_fields_length = input_fields_keys.length;
5706
5706
  for (let i = 0; i < input_fields_length; i++) {
5707
5707
  const key = input_fields_keys[i];
5708
- getTypeCacheKeys$1V(rootKeySet, luvio, input_fields[key], () => rootKey + '__fields__' + key);
5708
+ getTypeCacheKeys$1W(rootKeySet, luvio, input_fields[key], () => rootKey + '__fields__' + key);
5709
5709
  }
5710
5710
  return rootKeySet;
5711
5711
  };
5712
5712
 
5713
5713
  const TTL$C = 120000;
5714
- const VERSION$2g = "79cb5ac9f44542f683d00245fdfe500d";
5714
+ const VERSION$2h = "79cb5ac9f44542f683d00245fdfe500d";
5715
5715
  function validate$1A(obj, path = 'RecordCollectionRepresentation') {
5716
5716
  const v_error = (() => {
5717
5717
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5879,7 +5879,7 @@ function normalize$M(input, existing, path, luvio, store, timestamp) {
5879
5879
  for (let i = 0; i < input_records.length; i++) {
5880
5880
  const input_records_item = input_records[i];
5881
5881
  let input_records_item_id = input_records_id + '__' + i;
5882
- input_records[i] = ingest$1P(input_records_item, {
5882
+ input_records[i] = ingest$1Q(input_records_item, {
5883
5883
  fullPath: input_records_item_id,
5884
5884
  propertyName: i,
5885
5885
  parent: {
@@ -5892,10 +5892,10 @@ function normalize$M(input, existing, path, luvio, store, timestamp) {
5892
5892
  }
5893
5893
  return input;
5894
5894
  }
5895
- const select$2O = function RecordCollectionRepresentationSelect() {
5895
+ const select$2P = function RecordCollectionRepresentationSelect() {
5896
5896
  return {
5897
5897
  kind: 'Fragment',
5898
- version: VERSION$2g,
5898
+ version: VERSION$2h,
5899
5899
  private: [],
5900
5900
  selections: [
5901
5901
  {
@@ -5930,7 +5930,7 @@ const select$2O = function RecordCollectionRepresentationSelect() {
5930
5930
  name: 'records',
5931
5931
  kind: 'Link',
5932
5932
  plural: true,
5933
- fragment: select$2N()
5933
+ fragment: select$2O()
5934
5934
  }
5935
5935
  ]
5936
5936
  };
@@ -5983,7 +5983,7 @@ function equals$_(existing, incoming) {
5983
5983
  }
5984
5984
  return true;
5985
5985
  }
5986
- const ingest$1Q = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5986
+ const ingest$1R = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5987
5987
  if (process.env.NODE_ENV !== 'production') {
5988
5988
  const validateError = validate$1A(input);
5989
5989
  if (validateError !== null) {
@@ -6006,14 +6006,14 @@ const ingest$1Q = function RecordCollectionRepresentationIngest(input, path, luv
6006
6006
  const storeMetadataParams = {
6007
6007
  ttl: ttlToUse,
6008
6008
  namespace: "UiApi",
6009
- version: VERSION$2g,
6009
+ version: VERSION$2h,
6010
6010
  representationName: RepresentationType$U,
6011
6011
  };
6012
6012
  luvio.publishStoreMetadata(key, storeMetadataParams);
6013
6013
  }
6014
6014
  return createLink$1(key);
6015
6015
  };
6016
- function getTypeCacheKeys$1T(rootKeySet, luvio, input, fullPathFactory) {
6016
+ function getTypeCacheKeys$1U(rootKeySet, luvio, input, fullPathFactory) {
6017
6017
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
6018
6018
  const rootKey = fullPathFactory();
6019
6019
  rootKeySet.set(rootKey, {
@@ -6023,7 +6023,7 @@ function getTypeCacheKeys$1T(rootKeySet, luvio, input, fullPathFactory) {
6023
6023
  });
6024
6024
  const input_records_length = input.records.length;
6025
6025
  for (let i = 0; i < input_records_length; i++) {
6026
- getTypeCacheKeys$1U(rootKeySet, luvio, input.records[i]);
6026
+ getTypeCacheKeys$1V(rootKeySet, luvio, input.records[i]);
6027
6027
  }
6028
6028
  }
6029
6029
 
@@ -6038,7 +6038,7 @@ const keyBuilderFromType$z = function RecordRepresentationKeyBuilderFromType(luv
6038
6038
  };
6039
6039
 
6040
6040
  const TTL$B = 30000;
6041
- const VERSION$2f = "98c5b18512e48ca8d28727549507e4ba";
6041
+ const VERSION$2g = "98c5b18512e48ca8d28727549507e4ba";
6042
6042
  function validate$1z(obj, path = 'RecordRepresentation') {
6043
6043
  const v_error = (() => {
6044
6044
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -6229,14 +6229,14 @@ function validate$1z(obj, path = 'RecordRepresentation') {
6229
6229
  return v_error === undefined ? null : v_error;
6230
6230
  }
6231
6231
  const RepresentationType$T = 'RecordRepresentation';
6232
- function keyBuilder$34(luvio, config) {
6232
+ function keyBuilder$35(luvio, config) {
6233
6233
  return keyPrefix + '::' + RepresentationType$T + ':' + config.recordId;
6234
6234
  }
6235
6235
  function keyBuilderFromType$y(luvio, object) {
6236
6236
  const keyParams = {
6237
6237
  recordId: object.id
6238
6238
  };
6239
- return keyBuilder$34(luvio, keyParams);
6239
+ return keyBuilder$35(luvio, keyParams);
6240
6240
  }
6241
6241
  function dynamicNormalize$5(ingestParams) {
6242
6242
  return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
@@ -6281,11 +6281,11 @@ function dynamicNormalize$5(ingestParams) {
6281
6281
  return input;
6282
6282
  };
6283
6283
  }
6284
- const select$2N = function RecordRepresentationSelect() {
6285
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2Q();
6284
+ const select$2O = function RecordRepresentationSelect() {
6285
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2R();
6286
6286
  return {
6287
6287
  kind: 'Fragment',
6288
- version: VERSION$2f,
6288
+ version: VERSION$2g,
6289
6289
  private: [
6290
6290
  'eTag',
6291
6291
  'weakEtag'
@@ -6299,13 +6299,13 @@ const select$2N = function RecordRepresentationSelect() {
6299
6299
  name: 'childRelationships',
6300
6300
  kind: 'Link',
6301
6301
  map: true,
6302
- fragment: select$2O()
6302
+ fragment: select$2P()
6303
6303
  },
6304
6304
  {
6305
6305
  name: 'fields',
6306
6306
  kind: 'Link',
6307
6307
  map: true,
6308
- fragment: select$2P()
6308
+ fragment: select$2Q()
6309
6309
  },
6310
6310
  {
6311
6311
  name: 'id',
@@ -6341,18 +6341,18 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
6341
6341
  name: 'childRelationships',
6342
6342
  kind: 'Link',
6343
6343
  map: true,
6344
- fragment: select$2O()
6344
+ fragment: select$2P()
6345
6345
  } : params.childRelationships;
6346
6346
  const fieldsPathSelection = params.fields === undefined ? {
6347
6347
  name: 'fields',
6348
6348
  kind: 'Link',
6349
6349
  map: true,
6350
- fragment: select$2P()
6350
+ fragment: select$2Q()
6351
6351
  } : params.fields;
6352
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2Q();
6352
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2R();
6353
6353
  return {
6354
6354
  kind: 'Fragment',
6355
- version: VERSION$2f,
6355
+ version: VERSION$2g,
6356
6356
  private: [
6357
6357
  'eTag',
6358
6358
  'weakEtag'
@@ -7920,7 +7920,7 @@ function createPathSelection(propertyName, fieldDefinition) {
7920
7920
  kind: 'Fragment',
7921
7921
  private: ['eTag', 'weakEtag'],
7922
7922
  selections: createRecordSelection(childFieldDefinition),
7923
- version: VERSION$2f,
7923
+ version: VERSION$2g,
7924
7924
  },
7925
7925
  };
7926
7926
  }
@@ -7930,7 +7930,7 @@ function createPathSelection(propertyName, fieldDefinition) {
7930
7930
  required: childFieldDefinition.optional === true ? false : undefined,
7931
7931
  fragment: {
7932
7932
  kind: 'Fragment',
7933
- version: VERSION$2h,
7933
+ version: VERSION$2i,
7934
7934
  private: [],
7935
7935
  selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
7936
7936
  },
@@ -8086,12 +8086,14 @@ function extractTrackedFieldsToTrie(recordId, node, root, config, visitedRecordI
8086
8086
  continue;
8087
8087
  }
8088
8088
  extractTrackedFieldsToTrie(spanningLink.data.__ref, spanning, next, config, spanningVisitedRecordIds, depth + 1);
8089
- if (keys$1(next.children).length > 0) {
8090
- current.children[key] = next;
8091
- }
8092
- else {
8093
- continue;
8089
+ // For a spanning record that is detected to be a circular reference, we add the field along with Id and Name.
8090
+ // It's possible for spanning record lookup fields to sometimes be circular, and sometimes not - depending on the value of the lookup field.
8091
+ // For more information on scenarios that caused this fix: https://salesforce.quip.com/OvzNAh3eNIWY
8092
+ if (keys$1(next.children).length === 0) {
8093
+ addScalarFieldId(next);
8094
+ addScalarFieldName(next);
8094
8095
  }
8096
+ current.children[key] = next;
8095
8097
  }
8096
8098
  else {
8097
8099
  // Skip the field, if its value is null at the max level depth.
@@ -8405,7 +8407,7 @@ function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
8405
8407
  name: existing.apiName,
8406
8408
  children: {},
8407
8409
  };
8408
- const recordKey = keyBuilder$34(luvio, {
8410
+ const recordKey = keyBuilder$35(luvio, {
8409
8411
  recordId: incoming.id,
8410
8412
  });
8411
8413
  const trackedFieldsConfig = {
@@ -8656,7 +8658,7 @@ function createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap
8656
8658
  }
8657
8659
  function createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
8658
8660
  return dynamicNormalize$5({
8659
- childRelationships: ingest$1Q,
8661
+ childRelationships: ingest$1R,
8660
8662
  fields: createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap),
8661
8663
  });
8662
8664
  }
@@ -8691,7 +8693,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
8691
8693
  ttl: TTL$B,
8692
8694
  representationName: RepresentationType$T,
8693
8695
  namespace: keyPrefix,
8694
- version: VERSION$2f,
8696
+ version: VERSION$2g,
8695
8697
  });
8696
8698
  return createLink$1(key);
8697
8699
  };
@@ -8781,13 +8783,13 @@ const createResourceRequest$16 = function getUiApiRecordsByRecordIdCreateResourc
8781
8783
  };
8782
8784
  };
8783
8785
 
8784
- function keyBuilder$33(luvio, params) {
8785
- return keyBuilder$34(luvio, {
8786
+ function keyBuilder$34(luvio, params) {
8787
+ return keyBuilder$35(luvio, {
8786
8788
  recordId: params.urlParams.recordId
8787
8789
  });
8788
8790
  }
8789
8791
  function getResponseCacheKeys$Z(storeKeyMap, luvio, resourceParams, response) {
8790
- getTypeCacheKeys$1U(storeKeyMap, luvio, response);
8792
+ getTypeCacheKeys$1V(storeKeyMap, luvio, response);
8791
8793
  }
8792
8794
  function createResourceRequest$15(config) {
8793
8795
  const headers = {};
@@ -8817,12 +8819,12 @@ function createResourceParams$Y(config) {
8817
8819
  // used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
8818
8820
  function buildRecordSelector(luvio, recordId, fields, optionalFields) {
8819
8821
  return {
8820
- recordId: keyBuilder$34(luvio, { recordId }),
8822
+ recordId: keyBuilder$35(luvio, { recordId }),
8821
8823
  node: {
8822
8824
  kind: 'Fragment',
8823
8825
  private: ['eTag', 'weakEtag'],
8824
8826
  selections: buildSelectionFromFields(fields, optionalFields),
8825
- version: VERSION$2f,
8827
+ version: VERSION$2g,
8826
8828
  },
8827
8829
  variables: {},
8828
8830
  };
@@ -8836,7 +8838,7 @@ function buildSnapshotRefresh$5(luvio, config) {
8836
8838
  function prepareRequest$6(luvio, config) {
8837
8839
  const { recordId, fields } = config;
8838
8840
  // Should this go into the coersion logic?
8839
- const key = keyBuilder$33(luvio, createResourceParams$Y(config));
8841
+ const key = keyBuilder$34(luvio, createResourceParams$Y(config));
8840
8842
  const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
8841
8843
  maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
8842
8844
  onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
@@ -8907,7 +8909,7 @@ function isSingleBatchRecordResponse(response) {
8907
8909
  response.results.length === 1);
8908
8910
  }
8909
8911
 
8910
- const VERSION$2e = "98cce53b8d13b1883d001bbdaab24383";
8912
+ const VERSION$2f = "98cce53b8d13b1883d001bbdaab24383";
8911
8913
 
8912
8914
  const nonCachedErrors$7 = ObjectCreate$1(null);
8913
8915
  function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
@@ -8917,7 +8919,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
8917
8919
  const now = Date.now();
8918
8920
  for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
8919
8921
  const childResourceParams = childResourceParamsArray[index];
8920
- const childKey = keyBuilder$33(luvio, childResourceParams);
8922
+ const childKey = keyBuilder$34(luvio, childResourceParams);
8921
8923
  const result = childEnvelopes[index];
8922
8924
  const { statusCode: childStatusCode, result: childBody } = result;
8923
8925
  if (childStatusCode === 200) {
@@ -9004,11 +9006,11 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
9004
9006
  read: (reader) => {
9005
9007
  // Top-level 404 lookup
9006
9008
  const compositeSnapshot = luvio.storeLookup({
9007
- recordId: keyBuilder$32(luvio, resourceParams),
9009
+ recordId: keyBuilder$33(luvio, resourceParams),
9008
9010
  node: {
9009
9011
  kind: 'Fragment',
9010
9012
  private: [],
9011
- version: VERSION$2e,
9013
+ version: VERSION$2f,
9012
9014
  },
9013
9015
  variables: {},
9014
9016
  });
@@ -9028,7 +9030,7 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
9028
9030
  reader.enterPath(i);
9029
9031
  reader.enterPath(envelopeBodyPath);
9030
9032
  const childResource = childResources[i];
9031
- const childKey = keyBuilder$33(luvio, childResource);
9033
+ const childKey = keyBuilder$34(luvio, childResource);
9032
9034
  const isMissingDataBeforeChildRead = reader.getIsDataMissing();
9033
9035
  const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
9034
9036
  reader.exitPath();
@@ -9128,7 +9130,7 @@ function createChildResourceParams$9(resourceParams) {
9128
9130
  }
9129
9131
  return childConfigs;
9130
9132
  }
9131
- function keyBuilder$32(luvio, params) {
9133
+ function keyBuilder$33(luvio, params) {
9132
9134
  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 + ')';
9133
9135
  }
9134
9136
  function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
@@ -9148,7 +9150,7 @@ function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
9148
9150
  getResponseCacheKeys$Z(keys, luvio, childResourceParams, childBody);
9149
9151
  }
9150
9152
  else if (childStatusCode === 404) {
9151
- const childKey = keyBuilder$33(luvio, childResourceParams);
9153
+ const childKey = keyBuilder$34(luvio, childResourceParams);
9152
9154
  keys.set(childKey, {
9153
9155
  namespace: keyPrefix,
9154
9156
  representationName: RepresentationType$T,
@@ -9158,7 +9160,7 @@ function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
9158
9160
  }
9159
9161
  }
9160
9162
  function ingestError$K(luvio, params, error, snapshotRefresh) {
9161
- const key = keyBuilder$32(luvio, params);
9163
+ const key = keyBuilder$33(luvio, params);
9162
9164
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
9163
9165
  luvio.storeIngestError(key, errorSnapshot);
9164
9166
  return errorSnapshot;
@@ -9247,7 +9249,7 @@ function onFetchResponseSuccess$M(luvio, config, resourceParams, response, serve
9247
9249
  }
9248
9250
  }
9249
9251
  const snapshotStateFulfilled = 'Fulfilled';
9250
- const key = keyBuilder$32(luvio, resourceParams);
9252
+ const key = keyBuilder$33(luvio, resourceParams);
9251
9253
  const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
9252
9254
  const snapshot = {
9253
9255
  recordId: key,
@@ -9317,7 +9319,7 @@ function resolveConflict(luvio, map) {
9317
9319
  buildNetworkSnapshot$10(luvio, config, map.serverRequestCount);
9318
9320
  }
9319
9321
  }
9320
- const ingest$1P = (input, path, luvio, store, timestamp) => {
9322
+ const ingest$1Q = (input, path, luvio, store, timestamp) => {
9321
9323
  const conflictMap = {
9322
9324
  conflicts: {},
9323
9325
  serverRequestCount: 0,
@@ -9384,7 +9386,7 @@ const getMruListUi_ConfigPropertyNames = {
9384
9386
  },
9385
9387
  });
9386
9388
  const RepresentationType$O = 'ObjectInfoRepresentation';
9387
- function keyBuilder$2R(luvio, config) {
9389
+ function keyBuilder$2S(luvio, config) {
9388
9390
  return keyPrefix + '::' + RepresentationType$O + ':' + config.apiName;
9389
9391
  }
9390
9392
 
@@ -9424,12 +9426,12 @@ ObjectCreate$1(null);
9424
9426
 
9425
9427
  ObjectCreate$1(null);
9426
9428
 
9427
- const VERSION$1M = "53893a219bc0888951863f2c44317cac";
9428
- const select$1Z = function LeadStatusPicklistValueAttributesRepresentationSelect() {
9429
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1W();
9429
+ const VERSION$1N = "53893a219bc0888951863f2c44317cac";
9430
+ const select$1_ = function LeadStatusPicklistValueAttributesRepresentationSelect() {
9431
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1X();
9430
9432
  return {
9431
9433
  kind: 'Fragment',
9432
- version: VERSION$1M,
9434
+ version: VERSION$1N,
9433
9435
  private: [],
9434
9436
  selections: [
9435
9437
  ...AbstractPicklistValueAttributesRepresentationSelections,
@@ -9441,12 +9443,12 @@ const select$1Z = function LeadStatusPicklistValueAttributesRepresentationSelect
9441
9443
  };
9442
9444
  };
9443
9445
 
9444
- const VERSION$1L = "4818ec07c499784571c1012ead048c88";
9445
- const select$1Y = function CaseStatusPicklistValueAttributesRepresentationSelect() {
9446
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1W();
9446
+ const VERSION$1M = "4818ec07c499784571c1012ead048c88";
9447
+ const select$1Z = function CaseStatusPicklistValueAttributesRepresentationSelect() {
9448
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1X();
9447
9449
  return {
9448
9450
  kind: 'Fragment',
9449
- version: VERSION$1L,
9451
+ version: VERSION$1M,
9450
9452
  private: [],
9451
9453
  selections: [
9452
9454
  ...AbstractPicklistValueAttributesRepresentationSelections,
@@ -9458,12 +9460,12 @@ const select$1Y = function CaseStatusPicklistValueAttributesRepresentationSelect
9458
9460
  };
9459
9461
  };
9460
9462
 
9461
- const VERSION$1K = "950a3a962acbd2b128f937d4c055a9d6";
9462
- const select$1X = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
9463
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1W();
9463
+ const VERSION$1L = "950a3a962acbd2b128f937d4c055a9d6";
9464
+ const select$1Y = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
9465
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1X();
9464
9466
  return {
9465
9467
  kind: 'Fragment',
9466
- version: VERSION$1K,
9468
+ version: VERSION$1L,
9467
9469
  private: [],
9468
9470
  selections: [
9469
9471
  ...AbstractPicklistValueAttributesRepresentationSelections,
@@ -9493,11 +9495,11 @@ var DiscriminatorValues$3;
9493
9495
  DiscriminatorValues["CaseStatus"] = "CaseStatus";
9494
9496
  DiscriminatorValues["OpportunityStage"] = "OpportunityStage";
9495
9497
  })(DiscriminatorValues$3 || (DiscriminatorValues$3 = {}));
9496
- const VERSION$1J = "bd523b2343366edfc25a2dbee2c4e986";
9498
+ const VERSION$1K = "bd523b2343366edfc25a2dbee2c4e986";
9497
9499
  const selectChildren$3 = function AbstractPicklistValueAttributesRepresentationSelectChildren() {
9498
- const leadStatusPicklistValueAttributesRepresentationSelections = select$1Z();
9499
- const caseStatusPicklistValueAttributesRepresentationSelections = select$1Y();
9500
- const opportunityStagePicklistValueAttributesRepresentationSelections = select$1X();
9500
+ const leadStatusPicklistValueAttributesRepresentationSelections = select$1_();
9501
+ const caseStatusPicklistValueAttributesRepresentationSelections = select$1Z();
9502
+ const opportunityStagePicklistValueAttributesRepresentationSelections = select$1Y();
9501
9503
  return {
9502
9504
  kind: 'Fragment',
9503
9505
  union: true,
@@ -9509,10 +9511,10 @@ const selectChildren$3 = function AbstractPicklistValueAttributesRepresentationS
9509
9511
  }
9510
9512
  };
9511
9513
  };
9512
- const select$1W = function AbstractPicklistValueAttributesRepresentationSelect() {
9514
+ const select$1X = function AbstractPicklistValueAttributesRepresentationSelect() {
9513
9515
  return {
9514
9516
  kind: 'Fragment',
9515
- version: VERSION$1J,
9517
+ version: VERSION$1K,
9516
9518
  private: [],
9517
9519
  selections: [
9518
9520
  {
@@ -9523,12 +9525,12 @@ const select$1W = function AbstractPicklistValueAttributesRepresentationSelect()
9523
9525
  };
9524
9526
  };
9525
9527
 
9526
- const VERSION$1I = "9e2a16a80378487f557124c771201cf9";
9527
- const select$1V = function PicklistValueRepresentationSelect() {
9528
+ const VERSION$1J = "9e2a16a80378487f557124c771201cf9";
9529
+ const select$1W = function PicklistValueRepresentationSelect() {
9528
9530
  const AbstractPicklistValueAttributesRepresentation__unionSelections = selectChildren$3();
9529
9531
  return {
9530
9532
  kind: 'Fragment',
9531
- version: VERSION$1I,
9533
+ version: VERSION$1J,
9532
9534
  private: [],
9533
9535
  selections: [
9534
9536
  {
@@ -9555,12 +9557,12 @@ const select$1V = function PicklistValueRepresentationSelect() {
9555
9557
  ]
9556
9558
  };
9557
9559
  };
9558
- const VERSION$1H = "0a361a49370acb4c6a31721a2057649a";
9559
- const select$1U = function PicklistValuesRepresentationSelect() {
9560
- const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$1V();
9560
+ const VERSION$1I = "0a361a49370acb4c6a31721a2057649a";
9561
+ const select$1V = function PicklistValuesRepresentationSelect() {
9562
+ const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$1W();
9561
9563
  return {
9562
9564
  kind: 'Fragment',
9563
- version: VERSION$1H,
9565
+ version: VERSION$1I,
9564
9566
  private: [
9565
9567
  'eTag'
9566
9568
  ],
@@ -9590,7 +9592,7 @@ const select$1U = function PicklistValuesRepresentationSelect() {
9590
9592
  };
9591
9593
  };
9592
9594
 
9593
- select$1U().selections;
9595
+ select$1V().selections;
9594
9596
 
9595
9597
  var DiscriminatorValues$2;
9596
9598
  (function (DiscriminatorValues) {
@@ -9713,7 +9715,7 @@ function getShallowRecord(luvio, storeRecordId) {
9713
9715
  */
9714
9716
  function getObjectMetadata(luvio, record) {
9715
9717
  const { data: objectInfo } = luvio.storeLookup({
9716
- recordId: keyBuilder$2R(luvio, { apiName: record.apiName }),
9718
+ recordId: keyBuilder$2S(luvio, { apiName: record.apiName }),
9717
9719
  node: {
9718
9720
  kind: 'Fragment',
9719
9721
  private: ['eTag'],
@@ -9754,7 +9756,7 @@ function getObjectMetadata(luvio, record) {
9754
9756
  function fixRecordTypes(luvio, record) {
9755
9757
  // non-master record types should always be correct
9756
9758
  if (record.recordTypeId === MASTER_RECORD_TYPE_ID) {
9757
- const key = keyBuilder$34(luvio, { recordId: record.id });
9759
+ const key = keyBuilder$35(luvio, { recordId: record.id });
9758
9760
  const recordNode = luvio.getNode(key);
9759
9761
  if (isGraphNode(recordNode) &&
9760
9762
  recordNode.scalar('recordTypeId') !== MASTER_RECORD_TYPE_ID) {
@@ -9828,7 +9830,7 @@ class AdsBridge {
9828
9830
  // Don't let incorrect ADS/RecordGVP recordTypeIds replace a valid record type in our store
9829
9831
  // with the master record type. See W-7302870 for details.
9830
9832
  fixRecordTypes(luvio, recordCopy);
9831
- luvio.storeIngest(INGEST_KEY, ingest$1P, recordCopy);
9833
+ luvio.storeIngest(INGEST_KEY, ingest$1Q, recordCopy);
9832
9834
  }
9833
9835
  }
9834
9836
  if (didIngestRecord === true) {
@@ -9841,7 +9843,7 @@ class AdsBridge {
9841
9843
  */
9842
9844
  evict(recordId) {
9843
9845
  const { luvio } = this;
9844
- const key = keyBuilder$34(luvio, { recordId });
9846
+ const key = keyBuilder$35(luvio, { recordId });
9845
9847
  return this.lockLdsRecordEmit(() => {
9846
9848
  luvio.storeEvict(key);
9847
9849
  luvio.storeBroadcast();
@@ -9856,7 +9858,7 @@ class AdsBridge {
9856
9858
  */
9857
9859
  getTrackedFieldsForRecord(recordId) {
9858
9860
  const { luvio } = this;
9859
- const storeRecordId = keyBuilder$34(luvio, { recordId });
9861
+ const storeRecordId = keyBuilder$35(luvio, { recordId });
9860
9862
  const recordNode = luvio.getNode(storeRecordId);
9861
9863
  if (!isGraphNode(recordNode)) {
9862
9864
  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.211.0-a37f2b789
378
+ // version: 1.212.1-796d747db
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-ads-bridge",
3
- "version": "1.211.0",
3
+ "version": "1.212.1",
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",