@salesforce/lds-ads-bridge 1.308.0-dev5 → 1.308.0-dev7

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.
@@ -481,7 +481,7 @@ const callbacks$1 = [];
481
481
  function register(r) {
482
482
  callbacks$1.forEach((callback) => callback(r));
483
483
  }
484
- // version: 1.308.0-dev5-300c3f9b60
484
+ // version: 1.308.0-dev7-a4e738a0df
485
485
 
486
486
  /**
487
487
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -4975,7 +4975,7 @@ function toSortedStringArray(value) {
4975
4975
  return undefined;
4976
4976
  }
4977
4977
 
4978
- const VERSION$2H = "d1e589a127fb1060c89070cdb6f500b2";
4978
+ const VERSION$2L = "d1e589a127fb1060c89070cdb6f500b2";
4979
4979
  function validate$1$(obj, path = 'RecordTypeInfoRepresentation') {
4980
4980
  const v_error = (() => {
4981
4981
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5009,10 +5009,10 @@ function validate$1$(obj, path = 'RecordTypeInfoRepresentation') {
5009
5009
  })();
5010
5010
  return v_error === undefined ? null : v_error;
5011
5011
  }
5012
- const select$3m = function RecordTypeInfoRepresentationSelect() {
5012
+ const select$3q = function RecordTypeInfoRepresentationSelect() {
5013
5013
  return {
5014
5014
  kind: 'Fragment',
5015
- version: VERSION$2H,
5015
+ version: VERSION$2L,
5016
5016
  private: [],
5017
5017
  selections: [
5018
5018
  {
@@ -5067,7 +5067,7 @@ function equals$1a(existing, incoming) {
5067
5067
  return true;
5068
5068
  }
5069
5069
 
5070
- const VERSION$2G = "195d918987a35f45e1aa4dce9a11d8c5";
5070
+ const VERSION$2K = "195d918987a35f45e1aa4dce9a11d8c5";
5071
5071
  function validate$1_(obj, path = 'FieldValueRepresentation') {
5072
5072
  const v_error = (() => {
5073
5073
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5159,10 +5159,10 @@ function validate$1_(obj, path = 'FieldValueRepresentation') {
5159
5159
  return v_error === undefined ? null : v_error;
5160
5160
  }
5161
5161
  const RepresentationType$10 = 'FieldValueRepresentation';
5162
- const select$3l = function FieldValueRepresentationSelect() {
5162
+ const select$3p = function FieldValueRepresentationSelect() {
5163
5163
  return {
5164
5164
  kind: 'Fragment',
5165
- version: VERSION$2G,
5165
+ version: VERSION$2K,
5166
5166
  private: [],
5167
5167
  selections: [
5168
5168
  {
@@ -5173,7 +5173,7 @@ const select$3l = function FieldValueRepresentationSelect() {
5173
5173
  name: 'value',
5174
5174
  kind: 'Link',
5175
5175
  nullable: true,
5176
- fragment: select$3j()
5176
+ fragment: select$3n()
5177
5177
  }
5178
5178
  ]
5179
5179
  };
@@ -5196,7 +5196,7 @@ function equals$19(existing, incoming) {
5196
5196
  }
5197
5197
  return true;
5198
5198
  }
5199
- function getTypeCacheKeys$2i(rootKeySet, luvio, input, fullPathFactory) {
5199
+ function getTypeCacheKeys$2m(rootKeySet, luvio, input, fullPathFactory) {
5200
5200
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5201
5201
  const rootKey = fullPathFactory();
5202
5202
  rootKeySet.set(rootKey, {
@@ -5205,12 +5205,12 @@ function getTypeCacheKeys$2i(rootKeySet, luvio, input, fullPathFactory) {
5205
5205
  mergeable: false
5206
5206
  });
5207
5207
  if (input.value !== null && typeof input.value === 'object') {
5208
- getTypeCacheKeys$2h(rootKeySet, luvio, input.value);
5208
+ getTypeCacheKeys$2l(rootKeySet, luvio, input.value);
5209
5209
  }
5210
5210
  }
5211
5211
 
5212
5212
  // we override the generated so we can set "mergeable: true" on the root key
5213
- const getTypeCacheKeys$2h = (rootKeySet, luvio, input, _fullPathFactory) => {
5213
+ const getTypeCacheKeys$2l = (rootKeySet, luvio, input, _fullPathFactory) => {
5214
5214
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5215
5215
  const rootKey = keyBuilderFromType$D(luvio, input);
5216
5216
  rootKeySet.set(rootKey, {
@@ -5223,20 +5223,20 @@ const getTypeCacheKeys$2h = (rootKeySet, luvio, input, _fullPathFactory) => {
5223
5223
  const input_childRelationships_length = input_childRelationships_keys.length;
5224
5224
  for (let i = 0; i < input_childRelationships_length; i++) {
5225
5225
  const key = input_childRelationships_keys[i];
5226
- getTypeCacheKeys$2g(rootKeySet, luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
5226
+ getTypeCacheKeys$2k(rootKeySet, luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
5227
5227
  }
5228
5228
  const input_fields = input.fields;
5229
5229
  const input_fields_keys = keys$1(input_fields);
5230
5230
  const input_fields_length = input_fields_keys.length;
5231
5231
  for (let i = 0; i < input_fields_length; i++) {
5232
5232
  const key = input_fields_keys[i];
5233
- getTypeCacheKeys$2i(rootKeySet, luvio, input_fields[key], () => rootKey + '__fields__' + key);
5233
+ getTypeCacheKeys$2m(rootKeySet, luvio, input_fields[key], () => rootKey + '__fields__' + key);
5234
5234
  }
5235
5235
  return rootKeySet;
5236
5236
  };
5237
5237
 
5238
5238
  const TTL$G = 120000;
5239
- const VERSION$2F = "79cb5ac9f44542f683d00245fdfe500d";
5239
+ const VERSION$2J = "79cb5ac9f44542f683d00245fdfe500d";
5240
5240
  function validate$1Z(obj, path = 'RecordCollectionRepresentation') {
5241
5241
  const v_error = (() => {
5242
5242
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5404,7 +5404,7 @@ function normalize$T(input, existing, path, luvio, store, timestamp) {
5404
5404
  for (let i = 0; i < input_records.length; i++) {
5405
5405
  const input_records_item = input_records[i];
5406
5406
  let input_records_item_id = input_records_id + '__' + i;
5407
- input_records[i] = ingest$2c(input_records_item, {
5407
+ input_records[i] = ingest$2g(input_records_item, {
5408
5408
  fullPath: input_records_item_id,
5409
5409
  propertyName: i,
5410
5410
  parent: {
@@ -5417,10 +5417,10 @@ function normalize$T(input, existing, path, luvio, store, timestamp) {
5417
5417
  }
5418
5418
  return input;
5419
5419
  }
5420
- const select$3k = function RecordCollectionRepresentationSelect() {
5420
+ const select$3o = function RecordCollectionRepresentationSelect() {
5421
5421
  return {
5422
5422
  kind: 'Fragment',
5423
- version: VERSION$2F,
5423
+ version: VERSION$2J,
5424
5424
  private: [],
5425
5425
  selections: [
5426
5426
  {
@@ -5455,7 +5455,7 @@ const select$3k = function RecordCollectionRepresentationSelect() {
5455
5455
  name: 'records',
5456
5456
  kind: 'Link',
5457
5457
  plural: true,
5458
- fragment: select$3j()
5458
+ fragment: select$3n()
5459
5459
  }
5460
5460
  ]
5461
5461
  };
@@ -5508,7 +5508,7 @@ function equals$18(existing, incoming) {
5508
5508
  }
5509
5509
  return true;
5510
5510
  }
5511
- const ingest$2d = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5511
+ const ingest$2h = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5512
5512
  if (process.env.NODE_ENV !== 'production') {
5513
5513
  const validateError = validate$1Z(input);
5514
5514
  if (validateError !== null) {
@@ -5517,10 +5517,10 @@ const ingest$2d = function RecordCollectionRepresentationIngest(input, path, luv
5517
5517
  }
5518
5518
  const key = path.fullPath;
5519
5519
  const ttlToUse = TTL$G;
5520
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$T, "UiApi", VERSION$2F, RepresentationType$$, equals$18);
5520
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$T, "UiApi", VERSION$2J, RepresentationType$$, equals$18);
5521
5521
  return createLink$1(key);
5522
5522
  };
5523
- function getTypeCacheKeys$2g(rootKeySet, luvio, input, fullPathFactory) {
5523
+ function getTypeCacheKeys$2k(rootKeySet, luvio, input, fullPathFactory) {
5524
5524
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5525
5525
  const rootKey = fullPathFactory();
5526
5526
  rootKeySet.set(rootKey, {
@@ -5530,7 +5530,7 @@ function getTypeCacheKeys$2g(rootKeySet, luvio, input, fullPathFactory) {
5530
5530
  });
5531
5531
  const input_records_length = input.records.length;
5532
5532
  for (let i = 0; i < input_records_length; i++) {
5533
- getTypeCacheKeys$2h(rootKeySet, luvio, input.records[i]);
5533
+ getTypeCacheKeys$2l(rootKeySet, luvio, input.records[i]);
5534
5534
  }
5535
5535
  }
5536
5536
 
@@ -5545,7 +5545,7 @@ const keyBuilderFromType$E = function RecordRepresentationKeyBuilderFromType(luv
5545
5545
  };
5546
5546
 
5547
5547
  const TTL$F = 30000;
5548
- const VERSION$2E = "98c5b18512e48ca8d28727549507e4ba";
5548
+ const VERSION$2I = "98c5b18512e48ca8d28727549507e4ba";
5549
5549
  function validate$1Y(obj, path = 'RecordRepresentation') {
5550
5550
  const v_error = (() => {
5551
5551
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5736,14 +5736,14 @@ function validate$1Y(obj, path = 'RecordRepresentation') {
5736
5736
  return v_error === undefined ? null : v_error;
5737
5737
  }
5738
5738
  const RepresentationType$_ = 'RecordRepresentation';
5739
- function keyBuilder$3A(luvio, config) {
5739
+ function keyBuilder$3E(luvio, config) {
5740
5740
  return keyPrefix + '::' + RepresentationType$_ + ':' + config.recordId;
5741
5741
  }
5742
5742
  function keyBuilderFromType$D(luvio, object) {
5743
5743
  const keyParams = {
5744
5744
  recordId: object.id
5745
5745
  };
5746
- return keyBuilder$3A(luvio, keyParams);
5746
+ return keyBuilder$3E(luvio, keyParams);
5747
5747
  }
5748
5748
  function dynamicNormalize$5(ingestParams) {
5749
5749
  return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
@@ -5788,11 +5788,11 @@ function dynamicNormalize$5(ingestParams) {
5788
5788
  return input;
5789
5789
  };
5790
5790
  }
5791
- const select$3j = function RecordRepresentationSelect() {
5792
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$3m();
5791
+ const select$3n = function RecordRepresentationSelect() {
5792
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$3q();
5793
5793
  return {
5794
5794
  kind: 'Fragment',
5795
- version: VERSION$2E,
5795
+ version: VERSION$2I,
5796
5796
  private: [
5797
5797
  'eTag',
5798
5798
  'weakEtag'
@@ -5806,13 +5806,13 @@ const select$3j = function RecordRepresentationSelect() {
5806
5806
  name: 'childRelationships',
5807
5807
  kind: 'Link',
5808
5808
  map: true,
5809
- fragment: select$3k()
5809
+ fragment: select$3o()
5810
5810
  },
5811
5811
  {
5812
5812
  name: 'fields',
5813
5813
  kind: 'Link',
5814
5814
  map: true,
5815
- fragment: select$3l()
5815
+ fragment: select$3p()
5816
5816
  },
5817
5817
  {
5818
5818
  name: 'id',
@@ -5848,18 +5848,18 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
5848
5848
  name: 'childRelationships',
5849
5849
  kind: 'Link',
5850
5850
  map: true,
5851
- fragment: select$3k()
5851
+ fragment: select$3o()
5852
5852
  } : params.childRelationships;
5853
5853
  const fieldsPathSelection = params.fields === undefined ? {
5854
5854
  name: 'fields',
5855
5855
  kind: 'Link',
5856
5856
  map: true,
5857
- fragment: select$3l()
5857
+ fragment: select$3p()
5858
5858
  } : params.fields;
5859
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$3m();
5859
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$3q();
5860
5860
  return {
5861
5861
  kind: 'Fragment',
5862
- version: VERSION$2E,
5862
+ version: VERSION$2I,
5863
5863
  private: [
5864
5864
  'eTag',
5865
5865
  'weakEtag'
@@ -7477,7 +7477,7 @@ function createPathSelection(propertyName, fieldDefinition) {
7477
7477
  kind: 'Fragment',
7478
7478
  private: ['eTag', 'weakEtag'],
7479
7479
  selections: createRecordSelection(childFieldDefinition),
7480
- version: VERSION$2E,
7480
+ version: VERSION$2I,
7481
7481
  },
7482
7482
  };
7483
7483
  }
@@ -7487,7 +7487,7 @@ function createPathSelection(propertyName, fieldDefinition) {
7487
7487
  required: childFieldDefinition.optional === true ? false : undefined,
7488
7488
  fragment: {
7489
7489
  kind: 'Fragment',
7490
- version: VERSION$2G,
7490
+ version: VERSION$2K,
7491
7491
  private: [],
7492
7492
  selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
7493
7493
  },
@@ -7958,7 +7958,7 @@ function mergeAndRefreshLowerVersionRecord(luvio, incoming, existing, incomingTr
7958
7958
  return existing;
7959
7959
  }
7960
7960
  function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
7961
- const recordKey = keyBuilder$3A(luvio, {
7961
+ const recordKey = keyBuilder$3E(luvio, {
7962
7962
  recordId: incoming.id,
7963
7963
  });
7964
7964
  const incomingNode = luvio.wrapNormalizedGraphNode(incoming, recordKey);
@@ -8219,7 +8219,7 @@ function createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap
8219
8219
  }
8220
8220
  function createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
8221
8221
  return dynamicNormalize$5({
8222
- childRelationships: ingest$2d,
8222
+ childRelationships: ingest$2h,
8223
8223
  fields: createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap),
8224
8224
  });
8225
8225
  }
@@ -8255,7 +8255,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
8255
8255
  ttl: TTL$F,
8256
8256
  representationName: RepresentationType$_,
8257
8257
  namespace: keyPrefix,
8258
- version: VERSION$2E,
8258
+ version: VERSION$2I,
8259
8259
  ingestionTimestamp: timestamp,
8260
8260
  });
8261
8261
  return createLink$1(key);
@@ -8352,13 +8352,13 @@ const createResourceRequest$1g = function getUiApiRecordsByRecordIdCreateResourc
8352
8352
  };
8353
8353
  };
8354
8354
 
8355
- function keyBuilder$3z(luvio, params) {
8356
- return keyBuilder$3A(luvio, {
8355
+ function keyBuilder$3D(luvio, params) {
8356
+ return keyBuilder$3E(luvio, {
8357
8357
  recordId: params.urlParams.recordId
8358
8358
  });
8359
8359
  }
8360
8360
  function getResponseCacheKeys$17(storeKeyMap, luvio, resourceParams, response) {
8361
- getTypeCacheKeys$2h(storeKeyMap, luvio, response);
8361
+ getTypeCacheKeys$2l(storeKeyMap, luvio, response);
8362
8362
  }
8363
8363
  function createResourceRequest$1f(config) {
8364
8364
  const headers = {};
@@ -8389,12 +8389,12 @@ const createResourceParams$15 = /*#__PURE__*/ createResourceParams(getRecord_Con
8389
8389
  // used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
8390
8390
  function buildRecordSelector(luvio, recordId, fields, optionalFields) {
8391
8391
  return {
8392
- recordId: keyBuilder$3A(luvio, { recordId }),
8392
+ recordId: keyBuilder$3E(luvio, { recordId }),
8393
8393
  node: {
8394
8394
  kind: 'Fragment',
8395
8395
  private: ['eTag', 'weakEtag'],
8396
8396
  selections: buildSelectionFromFields(fields, optionalFields),
8397
- version: VERSION$2E,
8397
+ version: VERSION$2I,
8398
8398
  },
8399
8399
  variables: {},
8400
8400
  };
@@ -8408,7 +8408,7 @@ function buildSnapshotRefresh$5(luvio, config) {
8408
8408
  function prepareRequest$7(luvio, config) {
8409
8409
  const { recordId, fields } = config;
8410
8410
  // Should this go into the coersion logic?
8411
- const key = keyBuilder$3z(luvio, createResourceParams$15(config));
8411
+ const key = keyBuilder$3D(luvio, createResourceParams$15(config));
8412
8412
  const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
8413
8413
  maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
8414
8414
  onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
@@ -8481,7 +8481,7 @@ function isSingleBatchRecordResponse(response) {
8481
8481
  response.results.length === 1);
8482
8482
  }
8483
8483
 
8484
- const VERSION$2D = "98cce53b8d13b1883d001bbdaab24383";
8484
+ const VERSION$2H = "98cce53b8d13b1883d001bbdaab24383";
8485
8485
 
8486
8486
  const nonCachedErrors$8 = ObjectCreate$1(null);
8487
8487
  function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
@@ -8491,7 +8491,7 @@ function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, chi
8491
8491
  const now = Date.now();
8492
8492
  for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
8493
8493
  const childResourceParams = childResourceParamsArray[index];
8494
- const childKey = keyBuilder$3z(luvio, childResourceParams);
8494
+ const childKey = keyBuilder$3D(luvio, childResourceParams);
8495
8495
  const result = childEnvelopes[index];
8496
8496
  const { statusCode: childStatusCode, result: childBody } = result;
8497
8497
  if (childStatusCode === 200) {
@@ -8578,11 +8578,11 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
8578
8578
  read: (reader) => {
8579
8579
  // Top-level 404 lookup
8580
8580
  const compositeSnapshot = luvio.storeLookup({
8581
- recordId: keyBuilder$3y(luvio, resourceParams),
8581
+ recordId: keyBuilder$3C(luvio, resourceParams),
8582
8582
  node: {
8583
8583
  kind: 'Fragment',
8584
8584
  private: [],
8585
- version: VERSION$2D,
8585
+ version: VERSION$2H,
8586
8586
  },
8587
8587
  variables: {},
8588
8588
  });
@@ -8602,7 +8602,7 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
8602
8602
  reader.enterPath(i);
8603
8603
  reader.enterPath(envelopeBodyPath);
8604
8604
  const childResource = childResources[i];
8605
- const childKey = keyBuilder$3z(luvio, childResource);
8605
+ const childKey = keyBuilder$3D(luvio, childResource);
8606
8606
  const isMissingDataBeforeChildRead = reader.getIsDataMissing();
8607
8607
  const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
8608
8608
  reader.exitPath();
@@ -8702,7 +8702,7 @@ function createChildResourceParams$c(resourceParams) {
8702
8702
  }
8703
8703
  return childConfigs;
8704
8704
  }
8705
- function keyBuilder$3y(luvio, params) {
8705
+ function keyBuilder$3C(luvio, params) {
8706
8706
  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 + ')';
8707
8707
  }
8708
8708
  function getResponseCacheKeys$16(keys, luvio, resourceParams, response) {
@@ -8722,7 +8722,7 @@ function getResponseCacheKeys$16(keys, luvio, resourceParams, response) {
8722
8722
  getResponseCacheKeys$17(keys, luvio, childResourceParams, childBody);
8723
8723
  }
8724
8724
  else if (childStatusCode === 404) {
8725
- const childKey = keyBuilder$3z(luvio, childResourceParams);
8725
+ const childKey = keyBuilder$3D(luvio, childResourceParams);
8726
8726
  keys.set(childKey, {
8727
8727
  namespace: keyPrefix,
8728
8728
  representationName: RepresentationType$_,
@@ -8732,7 +8732,7 @@ function getResponseCacheKeys$16(keys, luvio, resourceParams, response) {
8732
8732
  }
8733
8733
  }
8734
8734
  function ingestError$Q(luvio, params, error, snapshotRefresh) {
8735
- const key = keyBuilder$3y(luvio, params);
8735
+ const key = keyBuilder$3C(luvio, params);
8736
8736
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
8737
8737
  luvio.storeIngestError(key, errorSnapshot);
8738
8738
  return errorSnapshot;
@@ -8821,7 +8821,7 @@ function onFetchResponseSuccess$S(luvio, config, resourceParams, response, serve
8821
8821
  }
8822
8822
  }
8823
8823
  const snapshotStateFulfilled = 'Fulfilled';
8824
- const key = keyBuilder$3y(luvio, resourceParams);
8824
+ const key = keyBuilder$3C(luvio, resourceParams);
8825
8825
  const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
8826
8826
  const snapshot = {
8827
8827
  recordId: key,
@@ -8891,7 +8891,7 @@ function resolveConflict(luvio, map) {
8891
8891
  buildNetworkSnapshot$1a(luvio, config, map.serverRequestCount);
8892
8892
  }
8893
8893
  }
8894
- const ingest$2c = (input, path, luvio, store, timestamp) => {
8894
+ const ingest$2g = (input, path, luvio, store, timestamp) => {
8895
8895
  const conflictMap = {
8896
8896
  conflicts: {},
8897
8897
  serverRequestCount: 0,
@@ -8969,7 +8969,7 @@ const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationCon
8969
8969
  },
8970
8970
  });
8971
8971
  const RepresentationType$T = 'ObjectInfoRepresentation';
8972
- function keyBuilder$3j(luvio, config) {
8972
+ function keyBuilder$3n(luvio, config) {
8973
8973
  return keyPrefix + '::' + RepresentationType$T + ':' + config.apiName;
8974
8974
  }
8975
8975
 
@@ -9011,12 +9011,12 @@ ObjectCreate$1(null);
9011
9011
 
9012
9012
  ObjectCreate$1(null);
9013
9013
 
9014
- const VERSION$1_ = "8d2032474fb4fabdf5cf4042be9042d9";
9015
- const select$2c = function WorkStepPicklistValueAttributeRepresentationSelect() {
9016
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$28();
9014
+ const VERSION$22 = "8d2032474fb4fabdf5cf4042be9042d9";
9015
+ const select$2g = function WorkStepPicklistValueAttributeRepresentationSelect() {
9016
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$2c();
9017
9017
  return {
9018
9018
  kind: 'Fragment',
9019
- version: VERSION$1_,
9019
+ version: VERSION$22,
9020
9020
  private: [],
9021
9021
  selections: [
9022
9022
  ...AbstractPicklistValueAttributesRepresentationSelections,
@@ -9032,12 +9032,12 @@ const select$2c = function WorkStepPicklistValueAttributeRepresentationSelect()
9032
9032
  };
9033
9033
  };
9034
9034
 
9035
- const VERSION$1Z = "53893a219bc0888951863f2c44317cac";
9036
- const select$2b = function LeadStatusPicklistValueAttributesRepresentationSelect() {
9037
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$28();
9035
+ const VERSION$21 = "53893a219bc0888951863f2c44317cac";
9036
+ const select$2f = function LeadStatusPicklistValueAttributesRepresentationSelect() {
9037
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$2c();
9038
9038
  return {
9039
9039
  kind: 'Fragment',
9040
- version: VERSION$1Z,
9040
+ version: VERSION$21,
9041
9041
  private: [],
9042
9042
  selections: [
9043
9043
  ...AbstractPicklistValueAttributesRepresentationSelections,
@@ -9049,12 +9049,12 @@ const select$2b = function LeadStatusPicklistValueAttributesRepresentationSelect
9049
9049
  };
9050
9050
  };
9051
9051
 
9052
- const VERSION$1Y = "4818ec07c499784571c1012ead048c88";
9053
- const select$2a = function CaseStatusPicklistValueAttributesRepresentationSelect() {
9054
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$28();
9052
+ const VERSION$20 = "4818ec07c499784571c1012ead048c88";
9053
+ const select$2e = function CaseStatusPicklistValueAttributesRepresentationSelect() {
9054
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$2c();
9055
9055
  return {
9056
9056
  kind: 'Fragment',
9057
- version: VERSION$1Y,
9057
+ version: VERSION$20,
9058
9058
  private: [],
9059
9059
  selections: [
9060
9060
  ...AbstractPicklistValueAttributesRepresentationSelections,
@@ -9066,12 +9066,12 @@ const select$2a = function CaseStatusPicklistValueAttributesRepresentationSelect
9066
9066
  };
9067
9067
  };
9068
9068
 
9069
- const VERSION$1X = "950a3a962acbd2b128f937d4c055a9d6";
9070
- const select$29 = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
9071
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$28();
9069
+ const VERSION$1$ = "950a3a962acbd2b128f937d4c055a9d6";
9070
+ const select$2d = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
9071
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$2c();
9072
9072
  return {
9073
9073
  kind: 'Fragment',
9074
- version: VERSION$1X,
9074
+ version: VERSION$1$,
9075
9075
  private: [],
9076
9076
  selections: [
9077
9077
  ...AbstractPicklistValueAttributesRepresentationSelections,
@@ -9102,12 +9102,12 @@ var DiscriminatorValues$4;
9102
9102
  DiscriminatorValues["CaseStatus"] = "CaseStatus";
9103
9103
  DiscriminatorValues["OpportunityStage"] = "OpportunityStage";
9104
9104
  })(DiscriminatorValues$4 || (DiscriminatorValues$4 = {}));
9105
- const VERSION$1W = "bd523b2343366edfc25a2dbee2c4e986";
9105
+ const VERSION$1_ = "bd523b2343366edfc25a2dbee2c4e986";
9106
9106
  const selectChildren$2 = function AbstractPicklistValueAttributesRepresentationSelectChildren() {
9107
- const workStepPicklistValueAttributeRepresentationSelections = select$2c();
9108
- const leadStatusPicklistValueAttributesRepresentationSelections = select$2b();
9109
- const caseStatusPicklistValueAttributesRepresentationSelections = select$2a();
9110
- const opportunityStagePicklistValueAttributesRepresentationSelections = select$29();
9107
+ const workStepPicklistValueAttributeRepresentationSelections = select$2g();
9108
+ const leadStatusPicklistValueAttributesRepresentationSelections = select$2f();
9109
+ const caseStatusPicklistValueAttributesRepresentationSelections = select$2e();
9110
+ const opportunityStagePicklistValueAttributesRepresentationSelections = select$2d();
9111
9111
  return {
9112
9112
  kind: 'Fragment',
9113
9113
  union: true,
@@ -9120,10 +9120,10 @@ const selectChildren$2 = function AbstractPicklistValueAttributesRepresentationS
9120
9120
  }
9121
9121
  };
9122
9122
  };
9123
- const select$28 = function AbstractPicklistValueAttributesRepresentationSelect() {
9123
+ const select$2c = function AbstractPicklistValueAttributesRepresentationSelect() {
9124
9124
  return {
9125
9125
  kind: 'Fragment',
9126
- version: VERSION$1W,
9126
+ version: VERSION$1_,
9127
9127
  private: [],
9128
9128
  selections: [
9129
9129
  {
@@ -9134,12 +9134,12 @@ const select$28 = function AbstractPicklistValueAttributesRepresentationSelect()
9134
9134
  };
9135
9135
  };
9136
9136
 
9137
- const VERSION$1V = "9e2a16a80378487f557124c771201cf9";
9138
- const select$27 = function PicklistValueRepresentationSelect() {
9137
+ const VERSION$1Z = "9e2a16a80378487f557124c771201cf9";
9138
+ const select$2b = function PicklistValueRepresentationSelect() {
9139
9139
  const AbstractPicklistValueAttributesRepresentation__unionSelections = selectChildren$2();
9140
9140
  return {
9141
9141
  kind: 'Fragment',
9142
- version: VERSION$1V,
9142
+ version: VERSION$1Z,
9143
9143
  private: [],
9144
9144
  selections: [
9145
9145
  {
@@ -9166,12 +9166,12 @@ const select$27 = function PicklistValueRepresentationSelect() {
9166
9166
  ]
9167
9167
  };
9168
9168
  };
9169
- const VERSION$1U = "0a361a49370acb4c6a31721a2057649a";
9170
- const select$26 = function PicklistValuesRepresentationSelect() {
9171
- const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$27();
9169
+ const VERSION$1Y = "0a361a49370acb4c6a31721a2057649a";
9170
+ const select$2a = function PicklistValuesRepresentationSelect() {
9171
+ const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$2b();
9172
9172
  return {
9173
9173
  kind: 'Fragment',
9174
- version: VERSION$1U,
9174
+ version: VERSION$1Y,
9175
9175
  private: [
9176
9176
  'eTag'
9177
9177
  ],
@@ -9201,7 +9201,7 @@ const select$26 = function PicklistValuesRepresentationSelect() {
9201
9201
  };
9202
9202
  };
9203
9203
 
9204
- select$26().selections;
9204
+ select$2a().selections;
9205
9205
 
9206
9206
  var DiscriminatorValues$3;
9207
9207
  (function (DiscriminatorValues) {
@@ -9326,7 +9326,7 @@ function getShallowRecord(luvio, storeRecordId) {
9326
9326
  */
9327
9327
  function getObjectMetadata(luvio, record) {
9328
9328
  const { data: objectInfo } = luvio.storeLookup({
9329
- recordId: keyBuilder$3j(luvio, { apiName: record.apiName }),
9329
+ recordId: keyBuilder$3n(luvio, { apiName: record.apiName }),
9330
9330
  node: {
9331
9331
  kind: 'Fragment',
9332
9332
  private: ['eTag'],
@@ -9367,7 +9367,7 @@ function getObjectMetadata(luvio, record) {
9367
9367
  function fixRecordTypes(luvio, record) {
9368
9368
  // non-master record types should always be correct
9369
9369
  if (record.recordTypeId === MAIN_RECORD_TYPE_ID) {
9370
- const key = keyBuilder$3A(luvio, { recordId: record.id });
9370
+ const key = keyBuilder$3E(luvio, { recordId: record.id });
9371
9371
  const recordNode = luvio.getNode(key);
9372
9372
  if (isGraphNode(recordNode) && recordNode.scalar('recordTypeId') !== MAIN_RECORD_TYPE_ID) {
9373
9373
  // ignore bogus incoming record type information & keep what we have
@@ -9440,7 +9440,7 @@ class AdsBridge {
9440
9440
  // Don't let incorrect ADS/RecordGVP recordTypeIds replace a valid record type in our store
9441
9441
  // with the master record type. See W-7302870 for details.
9442
9442
  fixRecordTypes(luvio, recordCopy);
9443
- luvio.storeIngest(INGEST_KEY, ingest$2c, recordCopy);
9443
+ luvio.storeIngest(INGEST_KEY, ingest$2g, recordCopy);
9444
9444
  }
9445
9445
  }
9446
9446
  if (didIngestRecord === true) {
@@ -9453,7 +9453,7 @@ class AdsBridge {
9453
9453
  */
9454
9454
  evict(recordId) {
9455
9455
  const { luvio } = this;
9456
- const key = keyBuilder$3A(luvio, { recordId });
9456
+ const key = keyBuilder$3E(luvio, { recordId });
9457
9457
  return this.lockLdsRecordEmit(() => {
9458
9458
  luvio.storeEvict(key);
9459
9459
  luvio.storeBroadcast();
@@ -9468,7 +9468,7 @@ class AdsBridge {
9468
9468
  */
9469
9469
  getTrackedFieldsForRecord(recordId) {
9470
9470
  const { luvio } = this;
9471
- const storeRecordId = keyBuilder$3A(luvio, { recordId });
9471
+ const storeRecordId = keyBuilder$3E(luvio, { recordId });
9472
9472
  const recordNode = luvio.getNode(storeRecordId);
9473
9473
  if (!isGraphNode(recordNode)) {
9474
9474
  return Promise.resolve([]);
package/dist/adsBridge.js CHANGED
@@ -367,4 +367,4 @@ function withAdsBridge(callback) {
367
367
  }
368
368
 
369
369
  export { instrument, withAdsBridge };
370
- // version: 1.308.0-dev5-300c3f9b60
370
+ // version: 1.308.0-dev7-a4e738a0df
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-ads-bridge",
3
- "version": "1.308.0-dev5",
3
+ "version": "1.308.0-dev7",
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",
@@ -30,8 +30,8 @@
30
30
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-ads-bridge"
31
31
  },
32
32
  "devDependencies": {
33
- "@salesforce/lds-adapters-uiapi": "^1.308.0-dev5",
34
- "@salesforce/lds-uiapi-record-utils-mobile": "^1.308.0-dev5"
33
+ "@salesforce/lds-adapters-uiapi": "^1.308.0-dev7",
34
+ "@salesforce/lds-uiapi-record-utils-mobile": "^1.308.0-dev7"
35
35
  },
36
36
  "volta": {
37
37
  "extends": "../../package.json"