@salesforce/lds-ads-bridge 1.111.4 → 1.112.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.
@@ -368,7 +368,7 @@ const callbacks$1 = [];
368
368
  function register(r) {
369
369
  callbacks$1.forEach((callback) => callback(r));
370
370
  }
371
- // version: 1.111.4-2454dff2f
371
+ // version: 1.112.0-725d7e6e3
372
372
 
373
373
  /**
374
374
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -5417,8 +5417,8 @@ function createLink$1(ref) {
5417
5417
  };
5418
5418
  }
5419
5419
 
5420
- const VERSION$1T = "d1e589a127fb1060c89070cdb6f500b2";
5421
- function validate$1x(obj, path = 'RecordTypeInfoRepresentation') {
5420
+ const VERSION$1U = "d1e589a127fb1060c89070cdb6f500b2";
5421
+ function validate$1y(obj, path = 'RecordTypeInfoRepresentation') {
5422
5422
  const v_error = (() => {
5423
5423
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5424
5424
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5451,10 +5451,10 @@ function validate$1x(obj, path = 'RecordTypeInfoRepresentation') {
5451
5451
  })();
5452
5452
  return v_error === undefined ? null : v_error;
5453
5453
  }
5454
- const select$2m = function RecordTypeInfoRepresentationSelect() {
5454
+ const select$2o = function RecordTypeInfoRepresentationSelect() {
5455
5455
  return {
5456
5456
  kind: 'Fragment',
5457
- version: VERSION$1T,
5457
+ version: VERSION$1U,
5458
5458
  private: [],
5459
5459
  selections: [
5460
5460
  {
@@ -5480,7 +5480,7 @@ const select$2m = function RecordTypeInfoRepresentationSelect() {
5480
5480
  ]
5481
5481
  };
5482
5482
  };
5483
- function equals$Y(existing, incoming) {
5483
+ function equals$Z(existing, incoming) {
5484
5484
  const existing_available = existing.available;
5485
5485
  const incoming_available = incoming.available;
5486
5486
  if (!(existing_available === incoming_available)) {
@@ -5509,8 +5509,8 @@ function equals$Y(existing, incoming) {
5509
5509
  return true;
5510
5510
  }
5511
5511
 
5512
- const VERSION$1S = "195d918987a35f45e1aa4dce9a11d8c5";
5513
- function validate$1w(obj, path = 'FieldValueRepresentation') {
5512
+ const VERSION$1T = "195d918987a35f45e1aa4dce9a11d8c5";
5513
+ function validate$1x(obj, path = 'FieldValueRepresentation') {
5514
5514
  const v_error = (() => {
5515
5515
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5516
5516
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5600,11 +5600,11 @@ function validate$1w(obj, path = 'FieldValueRepresentation') {
5600
5600
  })();
5601
5601
  return v_error === undefined ? null : v_error;
5602
5602
  }
5603
- const RepresentationType$T = 'FieldValueRepresentation';
5604
- const select$2l = function FieldValueRepresentationSelect() {
5603
+ const RepresentationType$U = 'FieldValueRepresentation';
5604
+ const select$2n = function FieldValueRepresentationSelect() {
5605
5605
  return {
5606
5606
  kind: 'Fragment',
5607
- version: VERSION$1S,
5607
+ version: VERSION$1T,
5608
5608
  private: [],
5609
5609
  selections: [
5610
5610
  {
@@ -5615,12 +5615,12 @@ const select$2l = function FieldValueRepresentationSelect() {
5615
5615
  name: 'value',
5616
5616
  kind: 'Link',
5617
5617
  nullable: true,
5618
- fragment: select$2j()
5618
+ fragment: select$2l()
5619
5619
  }
5620
5620
  ]
5621
5621
  };
5622
5622
  };
5623
- function equals$X(existing, incoming) {
5623
+ function equals$Y(existing, incoming) {
5624
5624
  const existing_displayValue = existing.displayValue;
5625
5625
  const incoming_displayValue = incoming.displayValue;
5626
5626
  if (!(existing_displayValue === incoming_displayValue)) {
@@ -5638,17 +5638,17 @@ function equals$X(existing, incoming) {
5638
5638
  }
5639
5639
  return true;
5640
5640
  }
5641
- function getTypeCacheKeys$1v(luvio, input, fullPathFactory) {
5641
+ function getTypeCacheKeys$1w(luvio, input, fullPathFactory) {
5642
5642
  const rootKeySet = new StoreKeyMap();
5643
5643
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5644
5644
  const rootKey = fullPathFactory();
5645
5645
  rootKeySet.set(rootKey, {
5646
5646
  namespace: keyPrefix,
5647
- representationName: RepresentationType$T,
5647
+ representationName: RepresentationType$U,
5648
5648
  mergeable: false
5649
5649
  });
5650
5650
  if (input.value !== null && typeof input.value === 'object') {
5651
- const input_value = getTypeCacheKeys$1u(luvio, input.value);
5651
+ const input_value = getTypeCacheKeys$1v(luvio, input.value);
5652
5652
  rootKeySet.merge(input_value);
5653
5653
  }
5654
5654
  return rootKeySet;
@@ -5661,13 +5661,13 @@ const { isArray } = Array;
5661
5661
  const { concat, filter, includes, push: push$1, reduce } = Array.prototype;
5662
5662
 
5663
5663
  // we override the generated so we can set "mergeable: true" on the root key
5664
- const getTypeCacheKeys$1u = (luvio, input, _fullPathFactory) => {
5664
+ const getTypeCacheKeys$1v = (luvio, input, _fullPathFactory) => {
5665
5665
  const rootKeySet = new StoreKeyMap();
5666
5666
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5667
- const rootKey = keyBuilderFromType$x(luvio, input);
5667
+ const rootKey = keyBuilderFromType$y(luvio, input);
5668
5668
  rootKeySet.set(rootKey, {
5669
5669
  namespace: keyPrefix,
5670
- representationName: RepresentationType$R,
5670
+ representationName: RepresentationType$S,
5671
5671
  mergeable: true,
5672
5672
  });
5673
5673
  const input_childRelationships = input.childRelationships;
@@ -5675,7 +5675,7 @@ const getTypeCacheKeys$1u = (luvio, input, _fullPathFactory) => {
5675
5675
  const input_childRelationships_length = input_childRelationships_keys.length;
5676
5676
  for (let i = 0; i < input_childRelationships_length; i++) {
5677
5677
  const key = input_childRelationships_keys[i];
5678
- const cacheKeys = getTypeCacheKeys$1t(luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
5678
+ const cacheKeys = getTypeCacheKeys$1u(luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
5679
5679
  rootKeySet.merge(cacheKeys);
5680
5680
  }
5681
5681
  const input_fields = input.fields;
@@ -5683,15 +5683,15 @@ const getTypeCacheKeys$1u = (luvio, input, _fullPathFactory) => {
5683
5683
  const input_fields_length = input_fields_keys.length;
5684
5684
  for (let i = 0; i < input_fields_length; i++) {
5685
5685
  const key = input_fields_keys[i];
5686
- const cacheKeys = getTypeCacheKeys$1v(luvio, input_fields[key], () => rootKey + '__fields__' + key);
5686
+ const cacheKeys = getTypeCacheKeys$1w(luvio, input_fields[key], () => rootKey + '__fields__' + key);
5687
5687
  rootKeySet.merge(cacheKeys);
5688
5688
  }
5689
5689
  return rootKeySet;
5690
5690
  };
5691
5691
 
5692
- const TTL$A = 120000;
5693
- const VERSION$1R = "79cb5ac9f44542f683d00245fdfe500d";
5694
- function validate$1v(obj, path = 'RecordCollectionRepresentation') {
5692
+ const TTL$B = 120000;
5693
+ const VERSION$1S = "79cb5ac9f44542f683d00245fdfe500d";
5694
+ function validate$1w(obj, path = 'RecordCollectionRepresentation') {
5695
5695
  const v_error = (() => {
5696
5696
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5697
5697
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5851,14 +5851,14 @@ function validate$1v(obj, path = 'RecordCollectionRepresentation') {
5851
5851
  })();
5852
5852
  return v_error === undefined ? null : v_error;
5853
5853
  }
5854
- const RepresentationType$S = 'RecordCollectionRepresentation';
5855
- function normalize$K(input, existing, path, luvio, store, timestamp) {
5854
+ const RepresentationType$T = 'RecordCollectionRepresentation';
5855
+ function normalize$L(input, existing, path, luvio, store, timestamp) {
5856
5856
  const input_records = input.records;
5857
5857
  const input_records_id = path.fullPath + '__records';
5858
5858
  for (let i = 0; i < input_records.length; i++) {
5859
5859
  const input_records_item = input_records[i];
5860
5860
  let input_records_item_id = input_records_id + '__' + i;
5861
- input_records[i] = ingest$1q(input_records_item, {
5861
+ input_records[i] = ingest$1r(input_records_item, {
5862
5862
  fullPath: input_records_item_id,
5863
5863
  propertyName: i,
5864
5864
  parent: {
@@ -5871,10 +5871,10 @@ function normalize$K(input, existing, path, luvio, store, timestamp) {
5871
5871
  }
5872
5872
  return input;
5873
5873
  }
5874
- const select$2k = function RecordCollectionRepresentationSelect() {
5874
+ const select$2m = function RecordCollectionRepresentationSelect() {
5875
5875
  return {
5876
5876
  kind: 'Fragment',
5877
- version: VERSION$1R,
5877
+ version: VERSION$1S,
5878
5878
  private: [],
5879
5879
  selections: [
5880
5880
  {
@@ -5909,12 +5909,12 @@ const select$2k = function RecordCollectionRepresentationSelect() {
5909
5909
  name: 'records',
5910
5910
  kind: 'Link',
5911
5911
  plural: true,
5912
- fragment: select$2j()
5912
+ fragment: select$2l()
5913
5913
  }
5914
5914
  ]
5915
5915
  };
5916
5916
  };
5917
- function equals$W(existing, incoming) {
5917
+ function equals$X(existing, incoming) {
5918
5918
  const existing_count = existing.count;
5919
5919
  const incoming_count = incoming.count;
5920
5920
  if (!(existing_count === incoming_count)) {
@@ -5962,65 +5962,65 @@ function equals$W(existing, incoming) {
5962
5962
  }
5963
5963
  return true;
5964
5964
  }
5965
- const ingest$1r = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5965
+ const ingest$1s = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5966
5966
  if (process.env.NODE_ENV !== 'production') {
5967
- const validateError = validate$1v(input);
5967
+ const validateError = validate$1w(input);
5968
5968
  if (validateError !== null) {
5969
5969
  throw validateError;
5970
5970
  }
5971
5971
  }
5972
5972
  const key = path.fullPath;
5973
5973
  const existingRecord = store.readEntry(key);
5974
- const ttlToUse = TTL$A;
5975
- let incomingRecord = normalize$K(input, store.readEntry(key), {
5974
+ const ttlToUse = TTL$B;
5975
+ let incomingRecord = normalize$L(input, store.readEntry(key), {
5976
5976
  fullPath: key,
5977
5977
  parent: path.parent,
5978
5978
  propertyName: path.propertyName,
5979
5979
  ttl: ttlToUse
5980
5980
  }, luvio, store, timestamp);
5981
- if (existingRecord === undefined || equals$W(existingRecord, incomingRecord) === false) {
5981
+ if (existingRecord === undefined || equals$X(existingRecord, incomingRecord) === false) {
5982
5982
  luvio.storePublish(key, incomingRecord);
5983
5983
  }
5984
5984
  {
5985
5985
  const storeMetadataParams = {
5986
5986
  ttl: ttlToUse,
5987
5987
  namespace: "UiApi",
5988
- version: VERSION$1R,
5989
- representationName: RepresentationType$S,
5988
+ version: VERSION$1S,
5989
+ representationName: RepresentationType$T,
5990
5990
  };
5991
5991
  luvio.publishStoreMetadata(key, storeMetadataParams);
5992
5992
  }
5993
5993
  return createLink$1(key);
5994
5994
  };
5995
- function getTypeCacheKeys$1t(luvio, input, fullPathFactory) {
5995
+ function getTypeCacheKeys$1u(luvio, input, fullPathFactory) {
5996
5996
  const rootKeySet = new StoreKeyMap();
5997
5997
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5998
5998
  const rootKey = fullPathFactory();
5999
5999
  rootKeySet.set(rootKey, {
6000
6000
  namespace: keyPrefix,
6001
- representationName: RepresentationType$S,
6001
+ representationName: RepresentationType$T,
6002
6002
  mergeable: false
6003
6003
  });
6004
6004
  const input_records_length = input.records.length;
6005
6005
  for (let i = 0; i < input_records_length; i++) {
6006
- rootKeySet.merge(getTypeCacheKeys$1u(luvio, input.records[i]));
6006
+ rootKeySet.merge(getTypeCacheKeys$1v(luvio, input.records[i]));
6007
6007
  }
6008
6008
  return rootKeySet;
6009
6009
  }
6010
6010
 
6011
6011
  const VIEW_ENTITY_API_NAME = 'Name';
6012
6012
  const VIEW_ENTITY_KEY_PREFIX = `${keyPrefix}::RecordViewEntityRepresentation:${VIEW_ENTITY_API_NAME}:`;
6013
- const keyBuilderFromType$y = function RecordRepresentationKeyBuilderFromType(luvio, object) {
6013
+ const keyBuilderFromType$z = function RecordRepresentationKeyBuilderFromType(luvio, object) {
6014
6014
  const { apiName, id } = object;
6015
6015
  if (apiName === VIEW_ENTITY_API_NAME) {
6016
6016
  return VIEW_ENTITY_KEY_PREFIX + id;
6017
6017
  }
6018
- return keyBuilderFromType$x(luvio, object);
6018
+ return keyBuilderFromType$y(luvio, object);
6019
6019
  };
6020
6020
 
6021
- const TTL$z = 30000;
6022
- const VERSION$1Q = "98c5b18512e48ca8d28727549507e4ba";
6023
- function validate$1u(obj, path = 'RecordRepresentation') {
6021
+ const TTL$A = 30000;
6022
+ const VERSION$1R = "98c5b18512e48ca8d28727549507e4ba";
6023
+ function validate$1v(obj, path = 'RecordRepresentation') {
6024
6024
  const v_error = (() => {
6025
6025
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6026
6026
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6150,7 +6150,7 @@ function validate$1u(obj, path = 'RecordRepresentation') {
6150
6150
  const path_recordTypeInfo = path + '.recordTypeInfo';
6151
6151
  let obj_recordTypeInfo_union0 = null;
6152
6152
  const obj_recordTypeInfo_union0_error = (() => {
6153
- const referencepath_recordTypeInfoValidationError = validate$1x(obj_recordTypeInfo, path_recordTypeInfo);
6153
+ const referencepath_recordTypeInfoValidationError = validate$1y(obj_recordTypeInfo, path_recordTypeInfo);
6154
6154
  if (referencepath_recordTypeInfoValidationError !== null) {
6155
6155
  let message = 'Object doesn\'t match RecordTypeInfoRepresentation (at "' + path_recordTypeInfo + '")\n';
6156
6156
  message += referencepath_recordTypeInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6209,15 +6209,15 @@ function validate$1u(obj, path = 'RecordRepresentation') {
6209
6209
  })();
6210
6210
  return v_error === undefined ? null : v_error;
6211
6211
  }
6212
- const RepresentationType$R = 'RecordRepresentation';
6213
- function keyBuilder$2C(luvio, config) {
6214
- return keyPrefix + '::' + RepresentationType$R + ':' + config.recordId;
6212
+ const RepresentationType$S = 'RecordRepresentation';
6213
+ function keyBuilder$2F(luvio, config) {
6214
+ return keyPrefix + '::' + RepresentationType$S + ':' + config.recordId;
6215
6215
  }
6216
- function keyBuilderFromType$x(luvio, object) {
6216
+ function keyBuilderFromType$y(luvio, object) {
6217
6217
  const keyParams = {
6218
6218
  recordId: object.id
6219
6219
  };
6220
- return keyBuilder$2C(luvio, keyParams);
6220
+ return keyBuilder$2F(luvio, keyParams);
6221
6221
  }
6222
6222
  function dynamicNormalize$5(ingestParams) {
6223
6223
  return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
@@ -6262,11 +6262,11 @@ function dynamicNormalize$5(ingestParams) {
6262
6262
  return input;
6263
6263
  };
6264
6264
  }
6265
- const select$2j = function RecordRepresentationSelect() {
6266
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2m();
6265
+ const select$2l = function RecordRepresentationSelect() {
6266
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2o();
6267
6267
  return {
6268
6268
  kind: 'Fragment',
6269
- version: VERSION$1Q,
6269
+ version: VERSION$1R,
6270
6270
  private: [
6271
6271
  'eTag',
6272
6272
  'weakEtag'
@@ -6280,13 +6280,13 @@ const select$2j = function RecordRepresentationSelect() {
6280
6280
  name: 'childRelationships',
6281
6281
  kind: 'Link',
6282
6282
  map: true,
6283
- fragment: select$2k()
6283
+ fragment: select$2m()
6284
6284
  },
6285
6285
  {
6286
6286
  name: 'fields',
6287
6287
  kind: 'Link',
6288
6288
  map: true,
6289
- fragment: select$2l()
6289
+ fragment: select$2n()
6290
6290
  },
6291
6291
  {
6292
6292
  name: 'id',
@@ -6322,18 +6322,18 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
6322
6322
  name: 'childRelationships',
6323
6323
  kind: 'Link',
6324
6324
  map: true,
6325
- fragment: select$2k()
6325
+ fragment: select$2m()
6326
6326
  } : params.childRelationships;
6327
6327
  const fieldsPathSelection = params.fields === undefined ? {
6328
6328
  name: 'fields',
6329
6329
  kind: 'Link',
6330
6330
  map: true,
6331
- fragment: select$2l()
6331
+ fragment: select$2n()
6332
6332
  } : params.fields;
6333
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2m();
6333
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2o();
6334
6334
  return {
6335
6335
  kind: 'Fragment',
6336
- version: VERSION$1Q,
6336
+ version: VERSION$1R,
6337
6337
  private: [
6338
6338
  'eTag',
6339
6339
  'weakEtag'
@@ -6374,7 +6374,7 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
6374
6374
  ]
6375
6375
  };
6376
6376
  };
6377
- function equals$V(existing, incoming) {
6377
+ function equals$W(existing, incoming) {
6378
6378
  const existing_weakEtag = existing.weakEtag;
6379
6379
  const incoming_weakEtag = incoming.weakEtag;
6380
6380
  if (!(existing_weakEtag === incoming_weakEtag)) {
@@ -6435,7 +6435,7 @@ function equals$V(existing, incoming) {
6435
6435
  if (!(existing_recordTypeInfo === incoming_recordTypeInfo
6436
6436
  || (existing_recordTypeInfo != null &&
6437
6437
  incoming_recordTypeInfo != null &&
6438
- equals$Y(existing_recordTypeInfo, incoming_recordTypeInfo)))) {
6438
+ equals$Z(existing_recordTypeInfo, incoming_recordTypeInfo)))) {
6439
6439
  return false;
6440
6440
  }
6441
6441
  const existing_systemModstamp = existing.systemModstamp;
@@ -7901,7 +7901,7 @@ function createPathSelection(propertyName, fieldDefinition) {
7901
7901
  kind: 'Fragment',
7902
7902
  private: ['eTag', 'weakEtag'],
7903
7903
  selections: createRecordSelection(childFieldDefinition),
7904
- version: VERSION$1Q,
7904
+ version: VERSION$1R,
7905
7905
  },
7906
7906
  };
7907
7907
  }
@@ -7911,7 +7911,7 @@ function createPathSelection(propertyName, fieldDefinition) {
7911
7911
  required: childFieldDefinition.optional === true ? false : undefined,
7912
7912
  fragment: {
7913
7913
  kind: 'Fragment',
7914
- version: VERSION$1S,
7914
+ version: VERSION$1T,
7915
7915
  private: [],
7916
7916
  selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
7917
7917
  },
@@ -7993,7 +7993,7 @@ const RECORD_REPRESENTATION_ERROR_VERSION = 'RECORD_REPRESENTATION_ERROR_VERSION
7993
7993
  const RECORD_REPRESENTATION_ERROR_STORE_METADATA_PARAMS = {
7994
7994
  representationName: '',
7995
7995
  namespace: keyPrefix,
7996
- ttl: TTL$z,
7996
+ ttl: TTL$A,
7997
7997
  version: RECORD_REPRESENTATION_ERROR_VERSION,
7998
7998
  };
7999
7999
  function isGraphNode$1(node) {
@@ -8366,7 +8366,7 @@ function mergeAndRefreshLowerVersionRecord(luvio, incoming, existing, incomingTr
8366
8366
  };
8367
8367
  }
8368
8368
  else {
8369
- buildNetworkSnapshot$_(luvio, {
8369
+ buildNetworkSnapshot$$(luvio, {
8370
8370
  recordId: incoming.id,
8371
8371
  optionalFields: convertTrieToFields(incomingTrackedFieldsTrieRoot),
8372
8372
  });
@@ -8386,7 +8386,7 @@ function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
8386
8386
  name: existing.apiName,
8387
8387
  children: {},
8388
8388
  };
8389
- const recordKey = keyBuilder$2C(luvio, {
8389
+ const recordKey = keyBuilder$2F(luvio, {
8390
8390
  recordId: incoming.id,
8391
8391
  });
8392
8392
  const trackedFieldsConfig = {
@@ -8531,7 +8531,7 @@ function fixDisplayValue(existing, incoming, path) {
8531
8531
  }
8532
8532
  }
8533
8533
 
8534
- function normalize$J(input, existing, path, luvio, store, timestamp, fieldsTrie, optionalFieldsTrie, recordConflictMap) {
8534
+ function normalize$K(input, existing, path, luvio, store, timestamp, fieldsTrie, optionalFieldsTrie, recordConflictMap) {
8535
8535
  const input_value = input.value;
8536
8536
  const input_value_id = path.fullPath + '__value';
8537
8537
  if (input_value !== null && typeof input_value === 'object') {
@@ -8552,14 +8552,14 @@ function normalize$J(input, existing, path, luvio, store, timestamp, fieldsTrie,
8552
8552
  function makeIngest(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
8553
8553
  return (input, path, luvio, store, timestamp) => {
8554
8554
  if (process.env.NODE_ENV !== 'production') {
8555
- const validateError = validate$1w(input);
8555
+ const validateError = validate$1x(input);
8556
8556
  if (validateError !== null) {
8557
8557
  throw validateError;
8558
8558
  }
8559
8559
  }
8560
8560
  const key = path.fullPath;
8561
8561
  let existingRecord = store.readEntry(key);
8562
- let incomingRecord = normalize$J(input, store.readEntry(key), {
8562
+ let incomingRecord = normalize$K(input, store.readEntry(key), {
8563
8563
  fullPath: key,
8564
8564
  parent: path.parent,
8565
8565
  propertyName: path.propertyName,
@@ -8567,7 +8567,7 @@ function makeIngest(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
8567
8567
  // read again after children ingested in case of a circular ref
8568
8568
  existingRecord = store.readEntry(key);
8569
8569
  incomingRecord = merge$2(existingRecord, incomingRecord, luvio, path);
8570
- if (existingRecord === undefined || equals$X(existingRecord, incomingRecord) === false) {
8570
+ if (existingRecord === undefined || equals$Y(existingRecord, incomingRecord) === false) {
8571
8571
  luvio.storePublish(key, incomingRecord);
8572
8572
  }
8573
8573
  return createLink$1(key);
@@ -8637,7 +8637,7 @@ function createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap
8637
8637
  }
8638
8638
  function createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
8639
8639
  return dynamicNormalize$5({
8640
- childRelationships: ingest$1r,
8640
+ childRelationships: ingest$1s,
8641
8641
  fields: createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap),
8642
8642
  });
8643
8643
  }
@@ -8645,12 +8645,12 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
8645
8645
  const childNormalize = createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap);
8646
8646
  return (input, path, luvio, store, timestamp) => {
8647
8647
  if (process.env.NODE_ENV !== 'production') {
8648
- const validateError = validate$1u(input);
8648
+ const validateError = validate$1v(input);
8649
8649
  if (validateError !== null) {
8650
8650
  throw validateError;
8651
8651
  }
8652
8652
  }
8653
- const key = keyBuilderFromType$y(luvio, input);
8653
+ const key = keyBuilderFromType$z(luvio, input);
8654
8654
  let existingRecord = store.readEntry(key);
8655
8655
  const recordPath = {
8656
8656
  fullPath: key,
@@ -8662,17 +8662,17 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
8662
8662
  existingRecord = store.readEntry(key);
8663
8663
  incomingRecord = merge$3(existingRecord, incomingRecord, luvio, path, recordConflictMap);
8664
8664
  if (existingRecord === undefined ||
8665
- equals$V(existingRecord, incomingRecord) === false ||
8665
+ equals$W(existingRecord, incomingRecord) === false ||
8666
8666
  // always publish if existing record has drafts
8667
8667
  existingRecord.drafts !==
8668
8668
  undefined) {
8669
8669
  luvio.storePublish(key, incomingRecord);
8670
8670
  }
8671
8671
  luvio.publishStoreMetadata(key, {
8672
- ttl: TTL$z,
8673
- representationName: RepresentationType$R,
8672
+ ttl: TTL$A,
8673
+ representationName: RepresentationType$S,
8674
8674
  namespace: keyPrefix,
8675
- version: VERSION$1Q,
8675
+ version: VERSION$1R,
8676
8676
  });
8677
8677
  return createLink$1(key);
8678
8678
  };
@@ -8730,22 +8730,22 @@ function unionFields(fields, optionalFields) {
8730
8730
  return [...fieldsArray, ...optionalFieldsArray];
8731
8731
  }
8732
8732
 
8733
- const createResourceRequest$13 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
8733
+ const createResourceRequest$14 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
8734
8734
  return {
8735
- ...createResourceRequest$12(config),
8735
+ ...createResourceRequest$13(config),
8736
8736
  fulfill: fulfill,
8737
8737
  };
8738
8738
  };
8739
8739
 
8740
- function keyBuilder$2B(luvio, params) {
8741
- return keyBuilder$2C(luvio, {
8740
+ function keyBuilder$2E(luvio, params) {
8741
+ return keyBuilder$2F(luvio, {
8742
8742
  recordId: params.urlParams.recordId
8743
8743
  });
8744
8744
  }
8745
- function getResponseCacheKeys$W(luvio, resourceParams, response) {
8746
- return getTypeCacheKeys$1u(luvio, response);
8745
+ function getResponseCacheKeys$X(luvio, resourceParams, response) {
8746
+ return getTypeCacheKeys$1v(luvio, response);
8747
8747
  }
8748
- function createResourceRequest$12(config) {
8748
+ function createResourceRequest$13(config) {
8749
8749
  const headers = {};
8750
8750
  return {
8751
8751
  baseUri: '/services/data/v58.0',
@@ -8758,7 +8758,7 @@ function createResourceRequest$12(config) {
8758
8758
  priority: 'normal',
8759
8759
  };
8760
8760
  }
8761
- function createResourceParams$V(config) {
8761
+ function createResourceParams$W(config) {
8762
8762
  const resourceParams = {
8763
8763
  urlParams: {
8764
8764
  recordId: config.recordId
@@ -8773,12 +8773,12 @@ function createResourceParams$V(config) {
8773
8773
  // used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
8774
8774
  function buildRecordSelector(luvio, recordId, fields, optionalFields) {
8775
8775
  return {
8776
- recordId: keyBuilder$2C(luvio, { recordId }),
8776
+ recordId: keyBuilder$2F(luvio, { recordId }),
8777
8777
  node: {
8778
8778
  kind: 'Fragment',
8779
8779
  private: ['eTag', 'weakEtag'],
8780
8780
  selections: buildSelectionFromFields(fields, optionalFields),
8781
- version: VERSION$1Q,
8781
+ version: VERSION$1R,
8782
8782
  },
8783
8783
  variables: {},
8784
8784
  };
@@ -8786,27 +8786,27 @@ function buildRecordSelector(luvio, recordId, fields, optionalFields) {
8786
8786
  function buildSnapshotRefresh$5(luvio, config) {
8787
8787
  return {
8788
8788
  config,
8789
- resolve: () => buildNetworkSnapshot$_(luvio, config),
8789
+ resolve: () => buildNetworkSnapshot$$(luvio, config),
8790
8790
  };
8791
8791
  }
8792
8792
  function prepareRequest$6(luvio, config) {
8793
8793
  const { recordId, fields } = config;
8794
8794
  // Should this go into the coersion logic?
8795
- const key = keyBuilder$2B(luvio, createResourceParams$V(config));
8795
+ const key = keyBuilder$2E(luvio, createResourceParams$W(config));
8796
8796
  const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
8797
8797
  maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
8798
8798
  onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
8799
8799
  }, config.optionalFields);
8800
8800
  const optionalFields = fields === undefined ? allTrackedFields : difference(allTrackedFields, fields);
8801
- const resourceParams = createResourceParams$V({
8801
+ const resourceParams = createResourceParams$W({
8802
8802
  recordId,
8803
8803
  fields,
8804
8804
  optionalFields: optionalFields.length > 0 ? optionalFields : undefined,
8805
8805
  });
8806
- const request = createResourceRequest$13(resourceParams);
8806
+ const request = createResourceRequest$14(resourceParams);
8807
8807
  return { request, key, allTrackedFields, resourceParams };
8808
8808
  }
8809
- function ingestSuccess$L(luvio, config, key, allTrackedFields, response, serverRequestCount) {
8809
+ function ingestSuccess$M(luvio, config, key, allTrackedFields, response, serverRequestCount) {
8810
8810
  const { body } = response;
8811
8811
  const fields = config.fields === undefined ? [] : config.fields;
8812
8812
  const optionalFields = config.optionalFields === undefined ? [] : config.optionalFields;
@@ -8820,22 +8820,22 @@ function ingestSuccess$L(luvio, config, key, allTrackedFields, response, serverR
8820
8820
  return luvio.storeLookup(buildRecordSelector(luvio, config.recordId, fields, optionalFields), buildSnapshotRefresh$5(luvio, config));
8821
8821
  }
8822
8822
  function onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount) {
8823
- const snapshot = ingestSuccess$L(luvio, config, key, allTrackedFields, response, serverRequestCount);
8823
+ const snapshot = ingestSuccess$M(luvio, config, key, allTrackedFields, response, serverRequestCount);
8824
8824
  return luvio.storeBroadcast().then(() => snapshot);
8825
8825
  }
8826
- function ingestError$J(luvio, config, key, err) {
8826
+ function ingestError$K(luvio, config, key, err) {
8827
8827
  const errorSnapshot = luvio.errorSnapshot(err, buildSnapshotRefresh$5(luvio, config));
8828
8828
  luvio.storeIngestError(key, errorSnapshot, RECORD_REPRESENTATION_ERROR_STORE_METADATA_PARAMS);
8829
8829
  return errorSnapshot;
8830
8830
  }
8831
8831
  function onResourceError(luvio, config, key, err) {
8832
- const errorSnapshot = ingestError$J(luvio, config, key, err);
8832
+ const errorSnapshot = ingestError$K(luvio, config, key, err);
8833
8833
  return luvio.storeBroadcast().then(() => errorSnapshot);
8834
8834
  }
8835
- function buildNetworkSnapshot$_(luvio, config, serverRequestCount = 0, options) {
8835
+ function buildNetworkSnapshot$$(luvio, config, serverRequestCount = 0, options) {
8836
8836
  const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
8837
8837
  return luvio.dispatchResourceRequest(request, options).then((response) => {
8838
- return luvio.handleSuccessResponse(() => onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1), () => getResponseCacheKeys$W(luvio, resourceParams, response.body));
8838
+ return luvio.handleSuccessResponse(() => onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1), () => getResponseCacheKeys$X(luvio, resourceParams, response.body));
8839
8839
  }, (err) => {
8840
8840
  return luvio.handleErrorResponse(() => {
8841
8841
  return onResourceError(luvio, config, key, err);
@@ -8843,7 +8843,7 @@ function buildNetworkSnapshot$_(luvio, config, serverRequestCount = 0, options)
8843
8843
  });
8844
8844
  }
8845
8845
 
8846
- const VERSION$1P = "98cce53b8d13b1883d001bbdaab24383";
8846
+ const VERSION$1Q = "98cce53b8d13b1883d001bbdaab24383";
8847
8847
 
8848
8848
  const nonCachedErrors$6 = ObjectCreate$1(null);
8849
8849
  function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
@@ -8853,7 +8853,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
8853
8853
  const now = Date.now();
8854
8854
  for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
8855
8855
  const childResourceParams = childResourceParamsArray[index];
8856
- const childKey = keyBuilder$2B(luvio, childResourceParams);
8856
+ const childKey = keyBuilder$2E(luvio, childResourceParams);
8857
8857
  const result = childEnvelopes[index];
8858
8858
  const { statusCode: childStatusCode, result: childBody } = result;
8859
8859
  if (childStatusCode === 200) {
@@ -8868,7 +8868,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
8868
8868
  maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
8869
8869
  onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
8870
8870
  }, childResourceParams.queryParams.optionalFields);
8871
- const childSnapshot = ingestSuccess$L(luvio, {
8871
+ const childSnapshot = ingestSuccess$M(luvio, {
8872
8872
  recordId: childResourceParams.urlParams.recordId,
8873
8873
  fields: childResourceParams.queryParams.fields,
8874
8874
  optionalFields: childResourceParams.queryParams.optionalFields,
@@ -8895,7 +8895,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
8895
8895
  headers: {},
8896
8896
  errorType: 'fetchResponse',
8897
8897
  };
8898
- ingestError$J(luvio, {
8898
+ ingestError$K(luvio, {
8899
8899
  recordId: childResourceParams.urlParams.recordId,
8900
8900
  fields: childResourceParams.queryParams.fields,
8901
8901
  optionalFields: childResourceParams.queryParams.optionalFields,
@@ -8911,7 +8911,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
8911
8911
  // track non-cached responses so rebuilds work properly
8912
8912
  if (childStatusCode !== 404 && childStatusCode !== 200) {
8913
8913
  nonCachedErrors$6[childKey] = {
8914
- expiration: now + TTL$z,
8914
+ expiration: now + TTL$A,
8915
8915
  response: childBody,
8916
8916
  status: childStatusCode,
8917
8917
  };
@@ -8942,11 +8942,11 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
8942
8942
  read: (reader) => {
8943
8943
  // Top-level 404 lookup
8944
8944
  const compositeSnapshot = luvio.storeLookup({
8945
- recordId: keyBuilder$2A(luvio, resourceParams),
8945
+ recordId: keyBuilder$2D(luvio, resourceParams),
8946
8946
  node: {
8947
8947
  kind: 'Fragment',
8948
8948
  private: [],
8949
- version: VERSION$1P,
8949
+ version: VERSION$1Q,
8950
8950
  },
8951
8951
  variables: {},
8952
8952
  });
@@ -8966,7 +8966,7 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
8966
8966
  reader.enterPath(i);
8967
8967
  reader.enterPath(envelopeBodyPath);
8968
8968
  const childResource = childResources[i];
8969
- const childKey = keyBuilder$2B(luvio, childResource);
8969
+ const childKey = keyBuilder$2E(luvio, childResource);
8970
8970
  const isMissingDataBeforeChildRead = reader.getIsDataMissing();
8971
8971
  const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
8972
8972
  reader.exitPath();
@@ -9067,10 +9067,10 @@ function createChildResourceParams$9(resourceParams) {
9067
9067
  }
9068
9068
  return childConfigs;
9069
9069
  }
9070
- function keyBuilder$2A(luvio, params) {
9070
+ function keyBuilder$2D(luvio, params) {
9071
9071
  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 + ')';
9072
9072
  }
9073
- function getResponseCacheKeys$V(luvio, resourceParams, response) {
9073
+ function getResponseCacheKeys$W(luvio, resourceParams, response) {
9074
9074
  let keys = new StoreKeyMap();
9075
9075
  const childEnvelopes = response.results;
9076
9076
  const childResourceParamsArray = createChildResourceParams$9(resourceParams);
@@ -9085,27 +9085,27 @@ function getResponseCacheKeys$V(luvio, resourceParams, response) {
9085
9085
  const childResult = childEnvelopes[index];
9086
9086
  const { statusCode: childStatusCode, result: childBody } = childResult;
9087
9087
  if (childStatusCode === 200) {
9088
- const childKeys = getResponseCacheKeys$W(luvio, childResourceParams, childBody);
9088
+ const childKeys = getResponseCacheKeys$X(luvio, childResourceParams, childBody);
9089
9089
  keys.merge(childKeys);
9090
9090
  }
9091
9091
  else if (childStatusCode === 404) {
9092
- const childKey = keyBuilder$2B(luvio, childResourceParams);
9092
+ const childKey = keyBuilder$2E(luvio, childResourceParams);
9093
9093
  keys.set(childKey, {
9094
9094
  namespace: keyPrefix,
9095
- representationName: RepresentationType$R,
9095
+ representationName: RepresentationType$S,
9096
9096
  mergeable: false
9097
9097
  });
9098
9098
  }
9099
9099
  }
9100
9100
  return keys;
9101
9101
  }
9102
- function ingestError$I(luvio, params, error, snapshotRefresh) {
9103
- const key = keyBuilder$2A(luvio, params);
9102
+ function ingestError$J(luvio, params, error, snapshotRefresh) {
9103
+ const key = keyBuilder$2D(luvio, params);
9104
9104
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
9105
9105
  luvio.storeIngestError(key, errorSnapshot);
9106
9106
  return errorSnapshot;
9107
9107
  }
9108
- function createResourceRequest$11(config) {
9108
+ function createResourceRequest$12(config) {
9109
9109
  const headers = {};
9110
9110
  return {
9111
9111
  baseUri: '/services/data/v58.0',
@@ -9119,7 +9119,7 @@ function createResourceRequest$11(config) {
9119
9119
  };
9120
9120
  }
9121
9121
 
9122
- function createResourceParams$U(config) {
9122
+ function createResourceParams$V(config) {
9123
9123
  const { records: configRecords } = config;
9124
9124
  const recordIds = [];
9125
9125
  const resourceConfigFields = [];
@@ -9171,13 +9171,13 @@ function createChildResourceParams$8(config) {
9171
9171
  return childResources;
9172
9172
  }
9173
9173
 
9174
- function adapterFragment$G(luvio, config) {
9174
+ function adapterFragment$H(luvio, config) {
9175
9175
  const childResources = createChildResourceParams$8(config);
9176
- const resourceParams = createResourceParams$U(config);
9176
+ const resourceParams = createResourceParams$V(config);
9177
9177
  return selectChildResourceParams$6(luvio, childResources, resourceParams);
9178
9178
  }
9179
9179
 
9180
- function onFetchResponseSuccess$K(luvio, config, resourceParams, response, serverRequestCount = 0) {
9180
+ function onFetchResponseSuccess$L(luvio, config, resourceParams, response, serverRequestCount = 0) {
9181
9181
  const childEnvelopes = response.body.results;
9182
9182
  const childResourceParamsArray = createChildResourceParams$8(config);
9183
9183
  if (process.env.NODE_ENV !== 'production') {
@@ -9189,7 +9189,7 @@ function onFetchResponseSuccess$K(luvio, config, resourceParams, response, serve
9189
9189
  }
9190
9190
  }
9191
9191
  const snapshotStateFulfilled = 'Fulfilled';
9192
- const key = keyBuilder$2A(luvio, resourceParams);
9192
+ const key = keyBuilder$2D(luvio, resourceParams);
9193
9193
  const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
9194
9194
  const snapshot = {
9195
9195
  recordId: key,
@@ -9198,32 +9198,32 @@ function onFetchResponseSuccess$K(luvio, config, resourceParams, response, serve
9198
9198
  seenRecords: seenRecords,
9199
9199
  select: {
9200
9200
  recordId: key,
9201
- node: adapterFragment$G(luvio, config),
9201
+ node: adapterFragment$H(luvio, config),
9202
9202
  variables: {},
9203
9203
  },
9204
9204
  refresh: {
9205
9205
  config,
9206
- resolve: () => buildNetworkSnapshot$Z(luvio, config, serverRequestCount, snapshotRefreshOptions),
9206
+ resolve: () => buildNetworkSnapshot$_(luvio, config, serverRequestCount, snapshotRefreshOptions),
9207
9207
  },
9208
9208
  variables: {},
9209
9209
  };
9210
9210
  return luvio.storeBroadcast().then(() => snapshot);
9211
9211
  }
9212
9212
 
9213
- function onFetchResponseError$L(luvio, config, resourceParams, response) {
9214
- const snapshot = ingestError$I(luvio, resourceParams, response, {
9213
+ function onFetchResponseError$M(luvio, config, resourceParams, response) {
9214
+ const snapshot = ingestError$J(luvio, resourceParams, response, {
9215
9215
  config,
9216
- resolve: () => buildNetworkSnapshot$Z(luvio, config, 0, snapshotRefreshOptions),
9216
+ resolve: () => buildNetworkSnapshot$_(luvio, config, 0, snapshotRefreshOptions),
9217
9217
  });
9218
9218
  return luvio.storeBroadcast().then(() => snapshot);
9219
9219
  }
9220
- function buildNetworkSnapshot$Z(luvio, config, serverRequestCount = 0, options) {
9221
- const resourceParams = createResourceParams$U(config);
9222
- const request = createResourceRequest$11(resourceParams);
9220
+ function buildNetworkSnapshot$_(luvio, config, serverRequestCount = 0, options) {
9221
+ const resourceParams = createResourceParams$V(config);
9222
+ const request = createResourceRequest$12(resourceParams);
9223
9223
  return luvio.dispatchResourceRequest(request, options).then((response) => {
9224
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$K(luvio, config, resourceParams, response, serverRequestCount + 1), () => getResponseCacheKeys$V(luvio, resourceParams, response.body));
9224
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$L(luvio, config, resourceParams, response, serverRequestCount + 1), () => getResponseCacheKeys$W(luvio, resourceParams, response.body));
9225
9225
  }, (response) => {
9226
- return luvio.handleErrorResponse(() => onFetchResponseError$L(luvio, config, resourceParams, response));
9226
+ return luvio.handleErrorResponse(() => onFetchResponseError$M(luvio, config, resourceParams, response));
9227
9227
  });
9228
9228
  }
9229
9229
 
@@ -9240,7 +9240,7 @@ function resolveConflict(luvio, map) {
9240
9240
  recordId,
9241
9241
  optionalFields: convertTrieToFields(map.conflicts[recordId].trackedFields),
9242
9242
  };
9243
- buildNetworkSnapshot$_(luvio, config, map.serverRequestCount);
9243
+ buildNetworkSnapshot$$(luvio, config, map.serverRequestCount);
9244
9244
  }
9245
9245
  else {
9246
9246
  const records = reduce.call(ids, (acc, id) => {
@@ -9252,10 +9252,10 @@ function resolveConflict(luvio, map) {
9252
9252
  return acc;
9253
9253
  }, []);
9254
9254
  const config = { records };
9255
- buildNetworkSnapshot$Z(luvio, config, map.serverRequestCount);
9255
+ buildNetworkSnapshot$_(luvio, config, map.serverRequestCount);
9256
9256
  }
9257
9257
  }
9258
- const ingest$1q = (input, path, luvio, store, timestamp) => {
9258
+ const ingest$1r = (input, path, luvio, store, timestamp) => {
9259
9259
  const conflictMap = {
9260
9260
  conflicts: {},
9261
9261
  serverRequestCount: 0,
@@ -9321,9 +9321,9 @@ const getMruListUi_ConfigPropertyNames = {
9321
9321
  ],
9322
9322
  },
9323
9323
  });
9324
- const RepresentationType$M = 'ObjectInfoRepresentation';
9325
- function keyBuilder$2n(luvio, config) {
9326
- return keyPrefix + '::' + RepresentationType$M + ':' + config.apiName;
9324
+ const RepresentationType$N = 'ObjectInfoRepresentation';
9325
+ function keyBuilder$2q(luvio, config) {
9326
+ return keyPrefix + '::' + RepresentationType$N + ':' + config.apiName;
9327
9327
  }
9328
9328
 
9329
9329
  var DiscriminatorValues$4;
@@ -9648,7 +9648,7 @@ function getShallowRecord(luvio, storeRecordId) {
9648
9648
  */
9649
9649
  function getObjectMetadata(luvio, record) {
9650
9650
  const { data: objectInfo } = luvio.storeLookup({
9651
- recordId: keyBuilder$2n(luvio, { apiName: record.apiName }),
9651
+ recordId: keyBuilder$2q(luvio, { apiName: record.apiName }),
9652
9652
  node: {
9653
9653
  kind: 'Fragment',
9654
9654
  private: ['eTag'],
@@ -9689,7 +9689,7 @@ function getObjectMetadata(luvio, record) {
9689
9689
  function fixRecordTypes(luvio, record) {
9690
9690
  // non-master record types should always be correct
9691
9691
  if (record.recordTypeId === MASTER_RECORD_TYPE_ID) {
9692
- const key = keyBuilder$2C(luvio, { recordId: record.id });
9692
+ const key = keyBuilder$2F(luvio, { recordId: record.id });
9693
9693
  const recordNode = luvio.getNode(key);
9694
9694
  if (isGraphNode(recordNode) &&
9695
9695
  recordNode.scalar('recordTypeId') !== MASTER_RECORD_TYPE_ID) {
@@ -9763,7 +9763,7 @@ class AdsBridge {
9763
9763
  // Don't let incorrect ADS/RecordGVP recordTypeIds replace a valid record type in our store
9764
9764
  // with the master record type. See W-7302870 for details.
9765
9765
  fixRecordTypes(luvio, recordCopy);
9766
- luvio.storeIngest(INGEST_KEY, ingest$1q, recordCopy);
9766
+ luvio.storeIngest(INGEST_KEY, ingest$1r, recordCopy);
9767
9767
  }
9768
9768
  }
9769
9769
  if (didIngestRecord === true) {
@@ -9776,7 +9776,7 @@ class AdsBridge {
9776
9776
  */
9777
9777
  evict(recordId) {
9778
9778
  const { luvio } = this;
9779
- const key = keyBuilder$2C(luvio, { recordId });
9779
+ const key = keyBuilder$2F(luvio, { recordId });
9780
9780
  return this.lockLdsRecordEmit(() => {
9781
9781
  luvio.storeEvict(key);
9782
9782
  luvio.storeBroadcast();
@@ -9791,7 +9791,7 @@ class AdsBridge {
9791
9791
  */
9792
9792
  getTrackedFieldsForRecord(recordId) {
9793
9793
  const { luvio } = this;
9794
- const storeRecordId = keyBuilder$2C(luvio, { recordId });
9794
+ const storeRecordId = keyBuilder$2F(luvio, { recordId });
9795
9795
  const recordNode = luvio.getNode(storeRecordId);
9796
9796
  if (!isGraphNode(recordNode)) {
9797
9797
  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.111.4-2454dff2f
378
+ // version: 1.112.0-725d7e6e3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-ads-bridge",
3
- "version": "1.111.4",
3
+ "version": "1.112.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.111.4",
33
- "@salesforce/lds-uiapi-record-utils": "^1.111.4"
32
+ "@salesforce/lds-adapters-uiapi": "^1.112.0",
33
+ "@salesforce/lds-uiapi-record-utils": "^1.112.0"
34
34
  }
35
35
  }