@salesforce/lds-ads-bridge 1.332.0-dev2 → 1.332.0-dev21

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.332.0-dev2-fcd88ea533
484
+ // version: 1.332.0-dev21-0ddc3ca21c
485
485
 
486
486
  /**
487
487
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -5012,7 +5012,7 @@ function toSortedStringArray(value) {
5012
5012
  return undefined;
5013
5013
  }
5014
5014
 
5015
- const VERSION$2I = "d1e589a127fb1060c89070cdb6f500b2";
5015
+ const VERSION$2M = "d1e589a127fb1060c89070cdb6f500b2";
5016
5016
  function validate$20(obj, path = 'RecordTypeInfoRepresentation') {
5017
5017
  const v_error = (() => {
5018
5018
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5046,10 +5046,10 @@ function validate$20(obj, path = 'RecordTypeInfoRepresentation') {
5046
5046
  })();
5047
5047
  return v_error === undefined ? null : v_error;
5048
5048
  }
5049
- const select$3n = function RecordTypeInfoRepresentationSelect() {
5049
+ const select$3r = function RecordTypeInfoRepresentationSelect() {
5050
5050
  return {
5051
5051
  kind: 'Fragment',
5052
- version: VERSION$2I,
5052
+ version: VERSION$2M,
5053
5053
  private: [],
5054
5054
  selections: [
5055
5055
  {
@@ -5104,7 +5104,7 @@ function equals$1b(existing, incoming) {
5104
5104
  return true;
5105
5105
  }
5106
5106
 
5107
- const VERSION$2H = "195d918987a35f45e1aa4dce9a11d8c5";
5107
+ const VERSION$2L = "195d918987a35f45e1aa4dce9a11d8c5";
5108
5108
  function validate$1$(obj, path = 'FieldValueRepresentation') {
5109
5109
  const v_error = (() => {
5110
5110
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5196,10 +5196,10 @@ function validate$1$(obj, path = 'FieldValueRepresentation') {
5196
5196
  return v_error === undefined ? null : v_error;
5197
5197
  }
5198
5198
  const RepresentationType$10 = 'FieldValueRepresentation';
5199
- const select$3m = function FieldValueRepresentationSelect() {
5199
+ const select$3q = function FieldValueRepresentationSelect() {
5200
5200
  return {
5201
5201
  kind: 'Fragment',
5202
- version: VERSION$2H,
5202
+ version: VERSION$2L,
5203
5203
  private: [],
5204
5204
  selections: [
5205
5205
  {
@@ -5210,7 +5210,7 @@ const select$3m = function FieldValueRepresentationSelect() {
5210
5210
  name: 'value',
5211
5211
  kind: 'Link',
5212
5212
  nullable: true,
5213
- fragment: select$3k()
5213
+ fragment: select$3o()
5214
5214
  }
5215
5215
  ]
5216
5216
  };
@@ -5233,7 +5233,7 @@ function equals$1a(existing, incoming) {
5233
5233
  }
5234
5234
  return true;
5235
5235
  }
5236
- function getTypeCacheKeys$2i(rootKeySet, luvio, input, fullPathFactory) {
5236
+ function getTypeCacheKeys$2m(rootKeySet, luvio, input, fullPathFactory) {
5237
5237
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5238
5238
  const rootKey = fullPathFactory();
5239
5239
  rootKeySet.set(rootKey, {
@@ -5242,12 +5242,12 @@ function getTypeCacheKeys$2i(rootKeySet, luvio, input, fullPathFactory) {
5242
5242
  mergeable: false
5243
5243
  });
5244
5244
  if (input.value !== null && typeof input.value === 'object') {
5245
- getTypeCacheKeys$2h(rootKeySet, luvio, input.value);
5245
+ getTypeCacheKeys$2l(rootKeySet, luvio, input.value);
5246
5246
  }
5247
5247
  }
5248
5248
 
5249
5249
  // we override the generated so we can set "mergeable: true" on the root key
5250
- const getTypeCacheKeys$2h = (rootKeySet, luvio, input, _fullPathFactory) => {
5250
+ const getTypeCacheKeys$2l = (rootKeySet, luvio, input, _fullPathFactory) => {
5251
5251
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5252
5252
  const rootKey = keyBuilderFromType$D(luvio, input);
5253
5253
  rootKeySet.set(rootKey, {
@@ -5260,20 +5260,20 @@ const getTypeCacheKeys$2h = (rootKeySet, luvio, input, _fullPathFactory) => {
5260
5260
  const input_childRelationships_length = input_childRelationships_keys.length;
5261
5261
  for (let i = 0; i < input_childRelationships_length; i++) {
5262
5262
  const key = input_childRelationships_keys[i];
5263
- getTypeCacheKeys$2g(rootKeySet, luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
5263
+ getTypeCacheKeys$2k(rootKeySet, luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
5264
5264
  }
5265
5265
  const input_fields = input.fields;
5266
5266
  const input_fields_keys = keys$1(input_fields);
5267
5267
  const input_fields_length = input_fields_keys.length;
5268
5268
  for (let i = 0; i < input_fields_length; i++) {
5269
5269
  const key = input_fields_keys[i];
5270
- getTypeCacheKeys$2i(rootKeySet, luvio, input_fields[key], () => rootKey + '__fields__' + key);
5270
+ getTypeCacheKeys$2m(rootKeySet, luvio, input_fields[key], () => rootKey + '__fields__' + key);
5271
5271
  }
5272
5272
  return rootKeySet;
5273
5273
  };
5274
5274
 
5275
5275
  const TTL$G = 120000;
5276
- const VERSION$2G = "79cb5ac9f44542f683d00245fdfe500d";
5276
+ const VERSION$2K = "79cb5ac9f44542f683d00245fdfe500d";
5277
5277
  function validate$1_(obj, path = 'RecordCollectionRepresentation') {
5278
5278
  const v_error = (() => {
5279
5279
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5441,7 +5441,7 @@ function normalize$T(input, existing, path, luvio, store, timestamp) {
5441
5441
  for (let i = 0; i < input_records.length; i++) {
5442
5442
  const input_records_item = input_records[i];
5443
5443
  let input_records_item_id = input_records_id + '__' + i;
5444
- input_records[i] = ingest$2c(input_records_item, {
5444
+ input_records[i] = ingest$2g(input_records_item, {
5445
5445
  fullPath: input_records_item_id,
5446
5446
  propertyName: i,
5447
5447
  parent: {
@@ -5454,10 +5454,10 @@ function normalize$T(input, existing, path, luvio, store, timestamp) {
5454
5454
  }
5455
5455
  return input;
5456
5456
  }
5457
- const select$3l = function RecordCollectionRepresentationSelect() {
5457
+ const select$3p = function RecordCollectionRepresentationSelect() {
5458
5458
  return {
5459
5459
  kind: 'Fragment',
5460
- version: VERSION$2G,
5460
+ version: VERSION$2K,
5461
5461
  private: [],
5462
5462
  selections: [
5463
5463
  {
@@ -5492,7 +5492,7 @@ const select$3l = function RecordCollectionRepresentationSelect() {
5492
5492
  name: 'records',
5493
5493
  kind: 'Link',
5494
5494
  plural: true,
5495
- fragment: select$3k()
5495
+ fragment: select$3o()
5496
5496
  }
5497
5497
  ]
5498
5498
  };
@@ -5545,7 +5545,7 @@ function equals$19(existing, incoming) {
5545
5545
  }
5546
5546
  return true;
5547
5547
  }
5548
- const ingest$2d = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5548
+ const ingest$2h = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5549
5549
  if (process.env.NODE_ENV !== 'production') {
5550
5550
  const validateError = validate$1_(input);
5551
5551
  if (validateError !== null) {
@@ -5554,10 +5554,10 @@ const ingest$2d = function RecordCollectionRepresentationIngest(input, path, luv
5554
5554
  }
5555
5555
  const key = path.fullPath;
5556
5556
  const ttlToUse = TTL$G;
5557
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$T, "UiApi", VERSION$2G, RepresentationType$$, equals$19);
5557
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$T, "UiApi", VERSION$2K, RepresentationType$$, equals$19);
5558
5558
  return createLink$1(key);
5559
5559
  };
5560
- function getTypeCacheKeys$2g(rootKeySet, luvio, input, fullPathFactory) {
5560
+ function getTypeCacheKeys$2k(rootKeySet, luvio, input, fullPathFactory) {
5561
5561
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5562
5562
  const rootKey = fullPathFactory();
5563
5563
  rootKeySet.set(rootKey, {
@@ -5567,7 +5567,7 @@ function getTypeCacheKeys$2g(rootKeySet, luvio, input, fullPathFactory) {
5567
5567
  });
5568
5568
  const input_records_length = input.records.length;
5569
5569
  for (let i = 0; i < input_records_length; i++) {
5570
- getTypeCacheKeys$2h(rootKeySet, luvio, input.records[i]);
5570
+ getTypeCacheKeys$2l(rootKeySet, luvio, input.records[i]);
5571
5571
  }
5572
5572
  }
5573
5573
 
@@ -5582,7 +5582,7 @@ const keyBuilderFromType$E = function RecordRepresentationKeyBuilderFromType(luv
5582
5582
  };
5583
5583
 
5584
5584
  const TTL$F = 30000;
5585
- const VERSION$2F = "98c5b18512e48ca8d28727549507e4ba";
5585
+ const VERSION$2J = "98c5b18512e48ca8d28727549507e4ba";
5586
5586
  function validate$1Z(obj, path = 'RecordRepresentation') {
5587
5587
  const v_error = (() => {
5588
5588
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5773,14 +5773,14 @@ function validate$1Z(obj, path = 'RecordRepresentation') {
5773
5773
  return v_error === undefined ? null : v_error;
5774
5774
  }
5775
5775
  const RepresentationType$_ = 'RecordRepresentation';
5776
- function keyBuilder$3A(luvio, config) {
5776
+ function keyBuilder$3E(luvio, config) {
5777
5777
  return keyPrefix + '::' + RepresentationType$_ + ':' + config.recordId;
5778
5778
  }
5779
5779
  function keyBuilderFromType$D(luvio, object) {
5780
5780
  const keyParams = {
5781
5781
  recordId: object.id
5782
5782
  };
5783
- return keyBuilder$3A(luvio, keyParams);
5783
+ return keyBuilder$3E(luvio, keyParams);
5784
5784
  }
5785
5785
  function dynamicNormalize$5(ingestParams) {
5786
5786
  return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
@@ -5825,11 +5825,11 @@ function dynamicNormalize$5(ingestParams) {
5825
5825
  return input;
5826
5826
  };
5827
5827
  }
5828
- const select$3k = function RecordRepresentationSelect() {
5829
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$3n();
5828
+ const select$3o = function RecordRepresentationSelect() {
5829
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$3r();
5830
5830
  return {
5831
5831
  kind: 'Fragment',
5832
- version: VERSION$2F,
5832
+ version: VERSION$2J,
5833
5833
  private: [
5834
5834
  'eTag',
5835
5835
  'weakEtag'
@@ -5843,13 +5843,13 @@ const select$3k = function RecordRepresentationSelect() {
5843
5843
  name: 'childRelationships',
5844
5844
  kind: 'Link',
5845
5845
  map: true,
5846
- fragment: select$3l()
5846
+ fragment: select$3p()
5847
5847
  },
5848
5848
  {
5849
5849
  name: 'fields',
5850
5850
  kind: 'Link',
5851
5851
  map: true,
5852
- fragment: select$3m()
5852
+ fragment: select$3q()
5853
5853
  },
5854
5854
  {
5855
5855
  name: 'id',
@@ -5885,18 +5885,18 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
5885
5885
  name: 'childRelationships',
5886
5886
  kind: 'Link',
5887
5887
  map: true,
5888
- fragment: select$3l()
5888
+ fragment: select$3p()
5889
5889
  } : params.childRelationships;
5890
5890
  const fieldsPathSelection = params.fields === undefined ? {
5891
5891
  name: 'fields',
5892
5892
  kind: 'Link',
5893
5893
  map: true,
5894
- fragment: select$3m()
5894
+ fragment: select$3q()
5895
5895
  } : params.fields;
5896
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$3n();
5896
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$3r();
5897
5897
  return {
5898
5898
  kind: 'Fragment',
5899
- version: VERSION$2F,
5899
+ version: VERSION$2J,
5900
5900
  private: [
5901
5901
  'eTag',
5902
5902
  'weakEtag'
@@ -7640,7 +7640,7 @@ function createPathSelection(propertyName, fieldDefinition) {
7640
7640
  kind: 'Fragment',
7641
7641
  private: ['eTag', 'weakEtag'],
7642
7642
  selections: createRecordSelection(childFieldDefinition),
7643
- version: VERSION$2F,
7643
+ version: VERSION$2J,
7644
7644
  },
7645
7645
  };
7646
7646
  }
@@ -7650,7 +7650,7 @@ function createPathSelection(propertyName, fieldDefinition) {
7650
7650
  required: childFieldDefinition.optional === true ? false : undefined,
7651
7651
  fragment: {
7652
7652
  kind: 'Fragment',
7653
- version: VERSION$2H,
7653
+ version: VERSION$2L,
7654
7654
  private: [],
7655
7655
  selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
7656
7656
  },
@@ -8160,7 +8160,7 @@ function mergeAndRefreshLowerVersionRecord(luvio, incoming, existing, incomingTr
8160
8160
  return existing;
8161
8161
  }
8162
8162
  function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
8163
- const recordKey = keyBuilder$3A(luvio, {
8163
+ const recordKey = keyBuilder$3E(luvio, {
8164
8164
  recordId: incoming.id,
8165
8165
  });
8166
8166
  const incomingNode = luvio.wrapNormalizedGraphNode(incoming, recordKey);
@@ -8421,7 +8421,7 @@ function createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap
8421
8421
  }
8422
8422
  function createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
8423
8423
  return dynamicNormalize$5({
8424
- childRelationships: ingest$2d,
8424
+ childRelationships: ingest$2h,
8425
8425
  fields: createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap),
8426
8426
  });
8427
8427
  }
@@ -8457,7 +8457,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
8457
8457
  ttl: TTL$F,
8458
8458
  representationName: RepresentationType$_,
8459
8459
  namespace: keyPrefix,
8460
- version: VERSION$2F,
8460
+ version: VERSION$2J,
8461
8461
  ingestionTimestamp: timestamp,
8462
8462
  });
8463
8463
  return createLink$1(key);
@@ -8554,13 +8554,13 @@ const createResourceRequest$1h = function getUiApiRecordsByRecordIdCreateResourc
8554
8554
  };
8555
8555
  };
8556
8556
 
8557
- function keyBuilder$3z(luvio, params) {
8558
- return keyBuilder$3A(luvio, {
8557
+ function keyBuilder$3D(luvio, params) {
8558
+ return keyBuilder$3E(luvio, {
8559
8559
  recordId: params.urlParams.recordId
8560
8560
  });
8561
8561
  }
8562
8562
  function getResponseCacheKeys$17(storeKeyMap, luvio, resourceParams, response) {
8563
- getTypeCacheKeys$2h(storeKeyMap, luvio, response);
8563
+ getTypeCacheKeys$2l(storeKeyMap, luvio, response);
8564
8564
  }
8565
8565
  function createResourceRequest$1g(config) {
8566
8566
  const headers = {};
@@ -8591,12 +8591,12 @@ const createResourceParams$15 = /*#__PURE__*/ createResourceParams(getRecord_Con
8591
8591
  // used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
8592
8592
  function buildRecordSelector(luvio, recordId, fields, optionalFields) {
8593
8593
  return {
8594
- recordId: keyBuilder$3A(luvio, { recordId }),
8594
+ recordId: keyBuilder$3E(luvio, { recordId }),
8595
8595
  node: {
8596
8596
  kind: 'Fragment',
8597
8597
  private: ['eTag', 'weakEtag'],
8598
8598
  selections: buildSelectionFromFields(fields, optionalFields),
8599
- version: VERSION$2F,
8599
+ version: VERSION$2J,
8600
8600
  },
8601
8601
  variables: {},
8602
8602
  };
@@ -8610,7 +8610,7 @@ function buildSnapshotRefresh$5(luvio, config) {
8610
8610
  function prepareRequest$7(luvio, config) {
8611
8611
  const { recordId, fields } = config;
8612
8612
  // Should this go into the coersion logic?
8613
- const key = keyBuilder$3z(luvio, createResourceParams$15(config));
8613
+ const key = keyBuilder$3D(luvio, createResourceParams$15(config));
8614
8614
  const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
8615
8615
  maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
8616
8616
  onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
@@ -8683,7 +8683,7 @@ function isSingleBatchRecordResponse(response) {
8683
8683
  response.results.length === 1);
8684
8684
  }
8685
8685
 
8686
- const VERSION$2E = "98cce53b8d13b1883d001bbdaab24383";
8686
+ const VERSION$2I = "98cce53b8d13b1883d001bbdaab24383";
8687
8687
 
8688
8688
  const nonCachedErrors$8 = ObjectCreate$1(null);
8689
8689
  function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
@@ -8693,7 +8693,7 @@ function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, chi
8693
8693
  const now = Date.now();
8694
8694
  for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
8695
8695
  const childResourceParams = childResourceParamsArray[index];
8696
- const childKey = keyBuilder$3z(luvio, childResourceParams);
8696
+ const childKey = keyBuilder$3D(luvio, childResourceParams);
8697
8697
  const result = childEnvelopes[index];
8698
8698
  const { statusCode: childStatusCode, result: childBody } = result;
8699
8699
  if (childStatusCode === 200) {
@@ -8780,11 +8780,11 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
8780
8780
  read: (reader) => {
8781
8781
  // Top-level 404 lookup
8782
8782
  const compositeSnapshot = luvio.storeLookup({
8783
- recordId: keyBuilder$3y(luvio, resourceParams),
8783
+ recordId: keyBuilder$3C(luvio, resourceParams),
8784
8784
  node: {
8785
8785
  kind: 'Fragment',
8786
8786
  private: [],
8787
- version: VERSION$2E,
8787
+ version: VERSION$2I,
8788
8788
  },
8789
8789
  variables: {},
8790
8790
  });
@@ -8804,7 +8804,7 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
8804
8804
  reader.enterPath(i);
8805
8805
  reader.enterPath(envelopeBodyPath);
8806
8806
  const childResource = childResources[i];
8807
- const childKey = keyBuilder$3z(luvio, childResource);
8807
+ const childKey = keyBuilder$3D(luvio, childResource);
8808
8808
  const isMissingDataBeforeChildRead = reader.getIsDataMissing();
8809
8809
  const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
8810
8810
  reader.exitPath();
@@ -8904,7 +8904,7 @@ function createChildResourceParams$c(resourceParams) {
8904
8904
  }
8905
8905
  return childConfigs;
8906
8906
  }
8907
- function keyBuilder$3y(luvio, params) {
8907
+ function keyBuilder$3C(luvio, params) {
8908
8908
  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 + ')';
8909
8909
  }
8910
8910
  function getResponseCacheKeys$16(keys, luvio, resourceParams, response) {
@@ -8924,7 +8924,7 @@ function getResponseCacheKeys$16(keys, luvio, resourceParams, response) {
8924
8924
  getResponseCacheKeys$17(keys, luvio, childResourceParams, childBody);
8925
8925
  }
8926
8926
  else if (childStatusCode === 404) {
8927
- const childKey = keyBuilder$3z(luvio, childResourceParams);
8927
+ const childKey = keyBuilder$3D(luvio, childResourceParams);
8928
8928
  keys.set(childKey, {
8929
8929
  namespace: keyPrefix,
8930
8930
  representationName: RepresentationType$_,
@@ -8934,7 +8934,7 @@ function getResponseCacheKeys$16(keys, luvio, resourceParams, response) {
8934
8934
  }
8935
8935
  }
8936
8936
  function ingestError$Q(luvio, params, error, snapshotRefresh) {
8937
- const key = keyBuilder$3y(luvio, params);
8937
+ const key = keyBuilder$3C(luvio, params);
8938
8938
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
8939
8939
  luvio.storeIngestError(key, errorSnapshot);
8940
8940
  return errorSnapshot;
@@ -9023,7 +9023,7 @@ function onFetchResponseSuccess$S(luvio, config, resourceParams, response, serve
9023
9023
  }
9024
9024
  }
9025
9025
  const snapshotStateFulfilled = 'Fulfilled';
9026
- const key = keyBuilder$3y(luvio, resourceParams);
9026
+ const key = keyBuilder$3C(luvio, resourceParams);
9027
9027
  const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
9028
9028
  const snapshot = {
9029
9029
  recordId: key,
@@ -9093,7 +9093,7 @@ function resolveConflict(luvio, map) {
9093
9093
  buildNetworkSnapshot$1a(luvio, config, map.serverRequestCount);
9094
9094
  }
9095
9095
  }
9096
- const ingest$2c = (input, path, luvio, store, timestamp) => {
9096
+ const ingest$2g = (input, path, luvio, store, timestamp) => {
9097
9097
  const conflictMap = {
9098
9098
  conflicts: {},
9099
9099
  serverRequestCount: 0,
@@ -9171,7 +9171,7 @@ const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationCon
9171
9171
  },
9172
9172
  });
9173
9173
  const RepresentationType$T = 'ObjectInfoRepresentation';
9174
- function keyBuilder$3j(luvio, config) {
9174
+ function keyBuilder$3n(luvio, config) {
9175
9175
  return keyPrefix + '::' + RepresentationType$T + ':' + config.apiName;
9176
9176
  }
9177
9177
 
@@ -9213,12 +9213,12 @@ ObjectCreate$1(null);
9213
9213
 
9214
9214
  ObjectCreate$1(null);
9215
9215
 
9216
- const VERSION$1_ = "8d2032474fb4fabdf5cf4042be9042d9";
9217
- const select$2c = function WorkStepPicklistValueAttributeRepresentationSelect() {
9218
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$28();
9216
+ const VERSION$22 = "8d2032474fb4fabdf5cf4042be9042d9";
9217
+ const select$2g = function WorkStepPicklistValueAttributeRepresentationSelect() {
9218
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$2c();
9219
9219
  return {
9220
9220
  kind: 'Fragment',
9221
- version: VERSION$1_,
9221
+ version: VERSION$22,
9222
9222
  private: [],
9223
9223
  selections: [
9224
9224
  ...AbstractPicklistValueAttributesRepresentationSelections,
@@ -9234,12 +9234,12 @@ const select$2c = function WorkStepPicklistValueAttributeRepresentationSelect()
9234
9234
  };
9235
9235
  };
9236
9236
 
9237
- const VERSION$1Z = "53893a219bc0888951863f2c44317cac";
9238
- const select$2b = function LeadStatusPicklistValueAttributesRepresentationSelect() {
9239
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$28();
9237
+ const VERSION$21 = "53893a219bc0888951863f2c44317cac";
9238
+ const select$2f = function LeadStatusPicklistValueAttributesRepresentationSelect() {
9239
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$2c();
9240
9240
  return {
9241
9241
  kind: 'Fragment',
9242
- version: VERSION$1Z,
9242
+ version: VERSION$21,
9243
9243
  private: [],
9244
9244
  selections: [
9245
9245
  ...AbstractPicklistValueAttributesRepresentationSelections,
@@ -9251,12 +9251,12 @@ const select$2b = function LeadStatusPicklistValueAttributesRepresentationSelect
9251
9251
  };
9252
9252
  };
9253
9253
 
9254
- const VERSION$1Y = "4818ec07c499784571c1012ead048c88";
9255
- const select$2a = function CaseStatusPicklistValueAttributesRepresentationSelect() {
9256
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$28();
9254
+ const VERSION$20 = "4818ec07c499784571c1012ead048c88";
9255
+ const select$2e = function CaseStatusPicklistValueAttributesRepresentationSelect() {
9256
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$2c();
9257
9257
  return {
9258
9258
  kind: 'Fragment',
9259
- version: VERSION$1Y,
9259
+ version: VERSION$20,
9260
9260
  private: [],
9261
9261
  selections: [
9262
9262
  ...AbstractPicklistValueAttributesRepresentationSelections,
@@ -9268,12 +9268,12 @@ const select$2a = function CaseStatusPicklistValueAttributesRepresentationSelect
9268
9268
  };
9269
9269
  };
9270
9270
 
9271
- const VERSION$1X = "950a3a962acbd2b128f937d4c055a9d6";
9272
- const select$29 = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
9273
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$28();
9271
+ const VERSION$1$ = "950a3a962acbd2b128f937d4c055a9d6";
9272
+ const select$2d = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
9273
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$2c();
9274
9274
  return {
9275
9275
  kind: 'Fragment',
9276
- version: VERSION$1X,
9276
+ version: VERSION$1$,
9277
9277
  private: [],
9278
9278
  selections: [
9279
9279
  ...AbstractPicklistValueAttributesRepresentationSelections,
@@ -9304,12 +9304,12 @@ var DiscriminatorValues$4;
9304
9304
  DiscriminatorValues["CaseStatus"] = "CaseStatus";
9305
9305
  DiscriminatorValues["OpportunityStage"] = "OpportunityStage";
9306
9306
  })(DiscriminatorValues$4 || (DiscriminatorValues$4 = {}));
9307
- const VERSION$1W = "bd523b2343366edfc25a2dbee2c4e986";
9307
+ const VERSION$1_ = "bd523b2343366edfc25a2dbee2c4e986";
9308
9308
  const selectChildren$2 = function AbstractPicklistValueAttributesRepresentationSelectChildren() {
9309
- const workStepPicklistValueAttributeRepresentationSelections = select$2c();
9310
- const leadStatusPicklistValueAttributesRepresentationSelections = select$2b();
9311
- const caseStatusPicklistValueAttributesRepresentationSelections = select$2a();
9312
- const opportunityStagePicklistValueAttributesRepresentationSelections = select$29();
9309
+ const workStepPicklistValueAttributeRepresentationSelections = select$2g();
9310
+ const leadStatusPicklistValueAttributesRepresentationSelections = select$2f();
9311
+ const caseStatusPicklistValueAttributesRepresentationSelections = select$2e();
9312
+ const opportunityStagePicklistValueAttributesRepresentationSelections = select$2d();
9313
9313
  return {
9314
9314
  kind: 'Fragment',
9315
9315
  union: true,
@@ -9322,10 +9322,10 @@ const selectChildren$2 = function AbstractPicklistValueAttributesRepresentationS
9322
9322
  }
9323
9323
  };
9324
9324
  };
9325
- const select$28 = function AbstractPicklistValueAttributesRepresentationSelect() {
9325
+ const select$2c = function AbstractPicklistValueAttributesRepresentationSelect() {
9326
9326
  return {
9327
9327
  kind: 'Fragment',
9328
- version: VERSION$1W,
9328
+ version: VERSION$1_,
9329
9329
  private: [],
9330
9330
  selections: [
9331
9331
  {
@@ -9336,12 +9336,12 @@ const select$28 = function AbstractPicklistValueAttributesRepresentationSelect()
9336
9336
  };
9337
9337
  };
9338
9338
 
9339
- const VERSION$1V = "9e2a16a80378487f557124c771201cf9";
9340
- const select$27 = function PicklistValueRepresentationSelect() {
9339
+ const VERSION$1Z = "9e2a16a80378487f557124c771201cf9";
9340
+ const select$2b = function PicklistValueRepresentationSelect() {
9341
9341
  const AbstractPicklistValueAttributesRepresentation__unionSelections = selectChildren$2();
9342
9342
  return {
9343
9343
  kind: 'Fragment',
9344
- version: VERSION$1V,
9344
+ version: VERSION$1Z,
9345
9345
  private: [],
9346
9346
  selections: [
9347
9347
  {
@@ -9368,12 +9368,12 @@ const select$27 = function PicklistValueRepresentationSelect() {
9368
9368
  ]
9369
9369
  };
9370
9370
  };
9371
- const VERSION$1U = "0a361a49370acb4c6a31721a2057649a";
9372
- const select$26 = function PicklistValuesRepresentationSelect() {
9373
- const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$27();
9371
+ const VERSION$1Y = "0a361a49370acb4c6a31721a2057649a";
9372
+ const select$2a = function PicklistValuesRepresentationSelect() {
9373
+ const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$2b();
9374
9374
  return {
9375
9375
  kind: 'Fragment',
9376
- version: VERSION$1U,
9376
+ version: VERSION$1Y,
9377
9377
  private: [
9378
9378
  'eTag'
9379
9379
  ],
@@ -9403,7 +9403,7 @@ const select$26 = function PicklistValuesRepresentationSelect() {
9403
9403
  };
9404
9404
  };
9405
9405
 
9406
- select$26().selections;
9406
+ select$2a().selections;
9407
9407
 
9408
9408
  var DiscriminatorValues$3;
9409
9409
  (function (DiscriminatorValues) {
@@ -9528,7 +9528,7 @@ function getShallowRecord(luvio, storeRecordId) {
9528
9528
  */
9529
9529
  function getObjectMetadata(luvio, record) {
9530
9530
  const { data: objectInfo } = luvio.storeLookup({
9531
- recordId: keyBuilder$3j(luvio, { apiName: record.apiName }),
9531
+ recordId: keyBuilder$3n(luvio, { apiName: record.apiName }),
9532
9532
  node: {
9533
9533
  kind: 'Fragment',
9534
9534
  private: ['eTag'],
@@ -9569,7 +9569,7 @@ function getObjectMetadata(luvio, record) {
9569
9569
  function fixRecordTypes(luvio, record) {
9570
9570
  // non-master record types should always be correct
9571
9571
  if (record.recordTypeId === MAIN_RECORD_TYPE_ID) {
9572
- const key = keyBuilder$3A(luvio, { recordId: record.id });
9572
+ const key = keyBuilder$3E(luvio, { recordId: record.id });
9573
9573
  const recordNode = luvio.getNode(key);
9574
9574
  if (isGraphNode(recordNode) && recordNode.scalar('recordTypeId') !== MAIN_RECORD_TYPE_ID) {
9575
9575
  // ignore bogus incoming record type information & keep what we have
@@ -9642,7 +9642,7 @@ class AdsBridge {
9642
9642
  // Don't let incorrect ADS/RecordGVP recordTypeIds replace a valid record type in our store
9643
9643
  // with the master record type. See W-7302870 for details.
9644
9644
  fixRecordTypes(luvio, recordCopy);
9645
- luvio.storeIngest(INGEST_KEY, ingest$2c, recordCopy);
9645
+ luvio.storeIngest(INGEST_KEY, ingest$2g, recordCopy);
9646
9646
  }
9647
9647
  }
9648
9648
  if (didIngestRecord === true) {
@@ -9655,7 +9655,7 @@ class AdsBridge {
9655
9655
  */
9656
9656
  evict(recordId) {
9657
9657
  const { luvio } = this;
9658
- const key = keyBuilder$3A(luvio, { recordId });
9658
+ const key = keyBuilder$3E(luvio, { recordId });
9659
9659
  return this.lockLdsRecordEmit(() => {
9660
9660
  luvio.storeEvict(key);
9661
9661
  luvio.storeBroadcast();
@@ -9670,7 +9670,7 @@ class AdsBridge {
9670
9670
  */
9671
9671
  getTrackedFieldsForRecord(recordId) {
9672
9672
  const { luvio } = this;
9673
- const storeRecordId = keyBuilder$3A(luvio, { recordId });
9673
+ const storeRecordId = keyBuilder$3E(luvio, { recordId });
9674
9674
  const recordNode = luvio.getNode(storeRecordId);
9675
9675
  if (!isGraphNode(recordNode)) {
9676
9676
  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.332.0-dev2-fcd88ea533
370
+ // version: 1.332.0-dev21-0ddc3ca21c
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-ads-bridge",
3
- "version": "1.332.0-dev2",
3
+ "version": "1.332.0-dev21",
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.332.0-dev2",
34
- "@salesforce/lds-uiapi-record-utils-mobile": "^1.332.0-dev2"
33
+ "@salesforce/lds-adapters-uiapi": "^1.332.0-dev21",
34
+ "@salesforce/lds-uiapi-record-utils-mobile": "^1.332.0-dev21"
35
35
  },
36
36
  "volta": {
37
37
  "extends": "../../package.json"