@salesforce/lds-ads-bridge 1.239.0 → 1.242.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.
@@ -427,7 +427,7 @@ function createResourceParamsImpl(config, configMetadata) {
427
427
  }
428
428
  return resourceParams;
429
429
  }
430
- // engine version: 0.148.1-b9169b45
430
+ // engine version: 0.150.1-6f3c0558
431
431
 
432
432
  /**
433
433
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -475,7 +475,7 @@ const callbacks$1 = [];
475
475
  function register(r) {
476
476
  callbacks$1.forEach((callback) => callback(r));
477
477
  }
478
- // version: 1.239.0-6c531185a
478
+ // version: 1.242.0-57237c3b6
479
479
 
480
480
  /**
481
481
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -4950,7 +4950,7 @@ function validate$1F(obj, path = 'RecordTypeInfoRepresentation') {
4950
4950
  })();
4951
4951
  return v_error === undefined ? null : v_error;
4952
4952
  }
4953
- const select$2V = function RecordTypeInfoRepresentationSelect() {
4953
+ const select$2W = function RecordTypeInfoRepresentationSelect() {
4954
4954
  return {
4955
4955
  kind: 'Fragment',
4956
4956
  version: VERSION$2m,
@@ -5100,7 +5100,7 @@ function validate$1E(obj, path = 'FieldValueRepresentation') {
5100
5100
  return v_error === undefined ? null : v_error;
5101
5101
  }
5102
5102
  const RepresentationType$V = 'FieldValueRepresentation';
5103
- const select$2U = function FieldValueRepresentationSelect() {
5103
+ const select$2V = function FieldValueRepresentationSelect() {
5104
5104
  return {
5105
5105
  kind: 'Fragment',
5106
5106
  version: VERSION$2l,
@@ -5114,7 +5114,7 @@ const select$2U = function FieldValueRepresentationSelect() {
5114
5114
  name: 'value',
5115
5115
  kind: 'Link',
5116
5116
  nullable: true,
5117
- fragment: select$2S()
5117
+ fragment: select$2T()
5118
5118
  }
5119
5119
  ]
5120
5120
  };
@@ -5358,7 +5358,7 @@ function normalize$N(input, existing, path, luvio, store, timestamp) {
5358
5358
  }
5359
5359
  return input;
5360
5360
  }
5361
- const select$2T = function RecordCollectionRepresentationSelect() {
5361
+ const select$2U = function RecordCollectionRepresentationSelect() {
5362
5362
  return {
5363
5363
  kind: 'Fragment',
5364
5364
  version: VERSION$2k,
@@ -5396,7 +5396,7 @@ const select$2T = function RecordCollectionRepresentationSelect() {
5396
5396
  name: 'records',
5397
5397
  kind: 'Link',
5398
5398
  plural: true,
5399
- fragment: select$2S()
5399
+ fragment: select$2T()
5400
5400
  }
5401
5401
  ]
5402
5402
  };
@@ -5729,8 +5729,8 @@ function dynamicNormalize$5(ingestParams) {
5729
5729
  return input;
5730
5730
  };
5731
5731
  }
5732
- const select$2S = function RecordRepresentationSelect() {
5733
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2V();
5732
+ const select$2T = function RecordRepresentationSelect() {
5733
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2W();
5734
5734
  return {
5735
5735
  kind: 'Fragment',
5736
5736
  version: VERSION$2j,
@@ -5747,13 +5747,13 @@ const select$2S = function RecordRepresentationSelect() {
5747
5747
  name: 'childRelationships',
5748
5748
  kind: 'Link',
5749
5749
  map: true,
5750
- fragment: select$2T()
5750
+ fragment: select$2U()
5751
5751
  },
5752
5752
  {
5753
5753
  name: 'fields',
5754
5754
  kind: 'Link',
5755
5755
  map: true,
5756
- fragment: select$2U()
5756
+ fragment: select$2V()
5757
5757
  },
5758
5758
  {
5759
5759
  name: 'id',
@@ -5789,15 +5789,15 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
5789
5789
  name: 'childRelationships',
5790
5790
  kind: 'Link',
5791
5791
  map: true,
5792
- fragment: select$2T()
5792
+ fragment: select$2U()
5793
5793
  } : params.childRelationships;
5794
5794
  const fieldsPathSelection = params.fields === undefined ? {
5795
5795
  name: 'fields',
5796
5796
  kind: 'Link',
5797
5797
  map: true,
5798
- fragment: select$2U()
5798
+ fragment: select$2V()
5799
5799
  } : params.fields;
5800
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2V();
5800
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2W();
5801
5801
  return {
5802
5802
  kind: 'Fragment',
5803
5803
  version: VERSION$2j,
@@ -7746,7 +7746,7 @@ function mergeAndRefreshLowerVersionRecord(luvio, incoming, existing, incomingTr
7746
7746
  };
7747
7747
  }
7748
7748
  else {
7749
- buildNetworkSnapshot$11(luvio, {
7749
+ buildNetworkSnapshot$12(luvio, {
7750
7750
  recordId: incoming.id,
7751
7751
  optionalFields: convertTrieToFields(incomingTrackedFieldsTrieRoot),
7752
7752
  });
@@ -8141,9 +8141,9 @@ function isRestrictedPathCondition(existingPath, path) {
8141
8141
  (existingPath.includes('/records') && path.includes('/record-ui')));
8142
8142
  }
8143
8143
 
8144
- const createResourceRequest$16 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
8144
+ const createResourceRequest$17 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
8145
8145
  return {
8146
- ...createResourceRequest$15(config),
8146
+ ...createResourceRequest$16(config),
8147
8147
  fulfill: fulfill,
8148
8148
  };
8149
8149
  };
@@ -8153,10 +8153,10 @@ function keyBuilder$34(luvio, params) {
8153
8153
  recordId: params.urlParams.recordId
8154
8154
  });
8155
8155
  }
8156
- function getResponseCacheKeys$Z(storeKeyMap, luvio, resourceParams, response) {
8156
+ function getResponseCacheKeys$_(storeKeyMap, luvio, resourceParams, response) {
8157
8157
  getTypeCacheKeys$1V(storeKeyMap, luvio, response);
8158
8158
  }
8159
- function createResourceRequest$15(config) {
8159
+ function createResourceRequest$16(config) {
8160
8160
  const headers = {};
8161
8161
  return {
8162
8162
  baseUri: '/services/data/v60.0',
@@ -8180,7 +8180,7 @@ const getRecord_ConfigPropertyMetadata = [
8180
8180
  generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
8181
8181
  generateParamConfigMetadata('updateMru', false, 1 /* QueryParameter */, 1 /* Boolean */),
8182
8182
  ];
8183
- const createResourceParams$Z = /*#__PURE__*/ createResourceParams(getRecord_ConfigPropertyMetadata);
8183
+ const createResourceParams$_ = /*#__PURE__*/ createResourceParams(getRecord_ConfigPropertyMetadata);
8184
8184
 
8185
8185
  // used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
8186
8186
  function buildRecordSelector(luvio, recordId, fields, optionalFields) {
@@ -8198,27 +8198,27 @@ function buildRecordSelector(luvio, recordId, fields, optionalFields) {
8198
8198
  function buildSnapshotRefresh$5(luvio, config) {
8199
8199
  return {
8200
8200
  config,
8201
- resolve: () => buildNetworkSnapshot$11(luvio, config),
8201
+ resolve: () => buildNetworkSnapshot$12(luvio, config),
8202
8202
  };
8203
8203
  }
8204
8204
  function prepareRequest$6(luvio, config) {
8205
8205
  const { recordId, fields } = config;
8206
8206
  // Should this go into the coersion logic?
8207
- const key = keyBuilder$34(luvio, createResourceParams$Z(config));
8207
+ const key = keyBuilder$34(luvio, createResourceParams$_(config));
8208
8208
  const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
8209
8209
  maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
8210
8210
  onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
8211
8211
  }, config.optionalFields);
8212
8212
  const optionalFields = fields === undefined ? allTrackedFields : difference(allTrackedFields, fields);
8213
- const resourceParams = createResourceParams$Z({
8213
+ const resourceParams = createResourceParams$_({
8214
8214
  recordId,
8215
8215
  fields,
8216
8216
  optionalFields: optionalFields.length > 0 ? optionalFields : undefined,
8217
8217
  });
8218
- const request = createResourceRequest$16(resourceParams);
8218
+ const request = createResourceRequest$17(resourceParams);
8219
8219
  return { request, key, allTrackedFields, resourceParams };
8220
8220
  }
8221
- function ingestSuccess$P(luvio, config, key, allTrackedFields, response, serverRequestCount) {
8221
+ function ingestSuccess$Q(luvio, config, key, allTrackedFields, response, serverRequestCount) {
8222
8222
  const { body } = response;
8223
8223
  const fields = config.fields === undefined ? [] : config.fields;
8224
8224
  const optionalFields = config.optionalFields === undefined ? [] : config.optionalFields;
@@ -8232,7 +8232,7 @@ function ingestSuccess$P(luvio, config, key, allTrackedFields, response, serverR
8232
8232
  return luvio.storeLookup(buildRecordSelector(luvio, config.recordId, fields, optionalFields), buildSnapshotRefresh$5(luvio, config));
8233
8233
  }
8234
8234
  function onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount) {
8235
- const snapshot = ingestSuccess$P(luvio, config, key, allTrackedFields, response, serverRequestCount);
8235
+ const snapshot = ingestSuccess$Q(luvio, config, key, allTrackedFields, response, serverRequestCount);
8236
8236
  return luvio.storeBroadcast().then(() => snapshot);
8237
8237
  }
8238
8238
  function ingestError$M(luvio, config, key, err) {
@@ -8244,7 +8244,7 @@ function onResourceError(luvio, config, key, err) {
8244
8244
  const errorSnapshot = ingestError$M(luvio, config, key, err);
8245
8245
  return luvio.storeBroadcast().then(() => errorSnapshot);
8246
8246
  }
8247
- function buildNetworkSnapshot$11(luvio, config, serverRequestCount = 0, options) {
8247
+ function buildNetworkSnapshot$12(luvio, config, serverRequestCount = 0, options) {
8248
8248
  const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
8249
8249
  return luvio.dispatchResourceRequest(request, options).then((response) => {
8250
8250
  return luvio.handleSuccessResponse(() => {
@@ -8261,7 +8261,7 @@ function buildNetworkSnapshot$11(luvio, config, serverRequestCount = 0, options)
8261
8261
  return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
8262
8262
  }, () => {
8263
8263
  const cache = new StoreKeyMap();
8264
- getResponseCacheKeys$Z(cache, luvio, resourceParams, response.body);
8264
+ getResponseCacheKeys$_(cache, luvio, resourceParams, response.body);
8265
8265
  return cache;
8266
8266
  });
8267
8267
  }, (err) => {
@@ -8300,7 +8300,7 @@ function ingestSuccessChildResourceParams$8(luvio, childResourceParamsArray, chi
8300
8300
  maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
8301
8301
  onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
8302
8302
  }, childResourceParams.queryParams.optionalFields);
8303
- const childSnapshot = ingestSuccess$P(luvio, {
8303
+ const childSnapshot = ingestSuccess$Q(luvio, {
8304
8304
  recordId: childResourceParams.urlParams.recordId,
8305
8305
  fields: childResourceParams.queryParams.fields,
8306
8306
  optionalFields: childResourceParams.queryParams.optionalFields,
@@ -8499,7 +8499,7 @@ function createChildResourceParams$c(resourceParams) {
8499
8499
  function keyBuilder$33(luvio, params) {
8500
8500
  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 + ')';
8501
8501
  }
8502
- function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
8502
+ function getResponseCacheKeys$Z(keys, luvio, resourceParams, response) {
8503
8503
  const childEnvelopes = response.results;
8504
8504
  const childResourceParamsArray = createChildResourceParams$c(resourceParams);
8505
8505
  if (process.env.NODE_ENV !== 'production') {
@@ -8513,7 +8513,7 @@ function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
8513
8513
  const childResult = childEnvelopes[index];
8514
8514
  const { statusCode: childStatusCode, result: childBody } = childResult;
8515
8515
  if (childStatusCode === 200) {
8516
- getResponseCacheKeys$Z(keys, luvio, childResourceParams, childBody);
8516
+ getResponseCacheKeys$_(keys, luvio, childResourceParams, childBody);
8517
8517
  }
8518
8518
  else if (childStatusCode === 404) {
8519
8519
  const childKey = keyBuilder$34(luvio, childResourceParams);
@@ -8531,7 +8531,7 @@ function ingestError$L(luvio, params, error, snapshotRefresh) {
8531
8531
  luvio.storeIngestError(key, errorSnapshot);
8532
8532
  return errorSnapshot;
8533
8533
  }
8534
- function createResourceRequest$14(config) {
8534
+ function createResourceRequest$15(config) {
8535
8535
  const headers = {};
8536
8536
  return {
8537
8537
  baseUri: '/services/data/v60.0',
@@ -8545,7 +8545,7 @@ function createResourceRequest$14(config) {
8545
8545
  };
8546
8546
  }
8547
8547
 
8548
- function createResourceParams$Y(config) {
8548
+ function createResourceParams$Z(config) {
8549
8549
  const { records: configRecords } = config;
8550
8550
  const recordIds = [];
8551
8551
  const resourceConfigFields = [];
@@ -8599,7 +8599,7 @@ function createChildResourceParams$b(config) {
8599
8599
 
8600
8600
  function adapterFragment$J(luvio, config) {
8601
8601
  const childResources = createChildResourceParams$b(config);
8602
- const resourceParams = createResourceParams$Y(config);
8602
+ const resourceParams = createResourceParams$Z(config);
8603
8603
  return selectChildResourceParams$8(luvio, childResources, resourceParams);
8604
8604
  }
8605
8605
 
@@ -8629,7 +8629,7 @@ function onFetchResponseSuccess$N(luvio, config, resourceParams, response, serve
8629
8629
  },
8630
8630
  refresh: {
8631
8631
  config,
8632
- resolve: () => buildNetworkSnapshot$10(luvio, config, serverRequestCount, snapshotRefreshOptions),
8632
+ resolve: () => buildNetworkSnapshot$11(luvio, config, serverRequestCount, snapshotRefreshOptions),
8633
8633
  },
8634
8634
  variables: {},
8635
8635
  };
@@ -8639,17 +8639,17 @@ function onFetchResponseSuccess$N(luvio, config, resourceParams, response, serve
8639
8639
  function onFetchResponseError$O(luvio, config, resourceParams, response) {
8640
8640
  const snapshot = ingestError$L(luvio, resourceParams, response, {
8641
8641
  config,
8642
- resolve: () => buildNetworkSnapshot$10(luvio, config, 0, snapshotRefreshOptions),
8642
+ resolve: () => buildNetworkSnapshot$11(luvio, config, 0, snapshotRefreshOptions),
8643
8643
  });
8644
8644
  return luvio.storeBroadcast().then(() => snapshot);
8645
8645
  }
8646
- function buildNetworkSnapshot$10(luvio, config, serverRequestCount = 0, options) {
8647
- const resourceParams = createResourceParams$Y(config);
8648
- const request = createResourceRequest$14(resourceParams);
8646
+ function buildNetworkSnapshot$11(luvio, config, serverRequestCount = 0, options) {
8647
+ const resourceParams = createResourceParams$Z(config);
8648
+ const request = createResourceRequest$15(resourceParams);
8649
8649
  return luvio.dispatchResourceRequest(request, options).then((response) => {
8650
8650
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$N(luvio, config, resourceParams, response, serverRequestCount + 1), () => {
8651
8651
  const cache = new StoreKeyMap();
8652
- getResponseCacheKeys$Y(cache, luvio, resourceParams, response.body);
8652
+ getResponseCacheKeys$Z(cache, luvio, resourceParams, response.body);
8653
8653
  return cache;
8654
8654
  });
8655
8655
  }, (response) => {
@@ -8670,7 +8670,7 @@ function resolveConflict(luvio, map) {
8670
8670
  recordId,
8671
8671
  optionalFields: convertTrieToFields(map.conflicts[recordId].trackedFields),
8672
8672
  };
8673
- buildNetworkSnapshot$11(luvio, config, map.serverRequestCount);
8673
+ buildNetworkSnapshot$12(luvio, config, map.serverRequestCount);
8674
8674
  }
8675
8675
  else {
8676
8676
  const records = reduce.call(ids, (acc, id) => {
@@ -8682,7 +8682,7 @@ function resolveConflict(luvio, map) {
8682
8682
  return acc;
8683
8683
  }, []);
8684
8684
  const config = { records };
8685
- buildNetworkSnapshot$10(luvio, config, map.serverRequestCount);
8685
+ buildNetworkSnapshot$11(luvio, config, map.serverRequestCount);
8686
8686
  }
8687
8687
  }
8688
8688
  const ingest$1R = (input, path, luvio, store, timestamp) => {
@@ -8696,7 +8696,7 @@ const ingest$1R = (input, path, luvio, store, timestamp) => {
8696
8696
  return result;
8697
8697
  };
8698
8698
 
8699
- const adapterName$T = 'getListUiByApiName';
8699
+ const adapterName$U = 'getListUiByApiName';
8700
8700
  const getListUiByApiName_ConfigPropertyMetadata = [
8701
8701
  generateParamConfigMetadata('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
8702
8702
  generateParamConfigMetadata('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
@@ -8706,9 +8706,9 @@ const getListUiByApiName_ConfigPropertyMetadata = [
8706
8706
  generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
8707
8707
  generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8708
8708
  ];
8709
- const getListUiByApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$T, getListUiByApiName_ConfigPropertyMetadata);
8709
+ const getListUiByApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$U, getListUiByApiName_ConfigPropertyMetadata);
8710
8710
 
8711
- const adapterName$S = 'getListUiByListViewId';
8711
+ const adapterName$T = 'getListUiByListViewId';
8712
8712
  const getListUiByListViewId_ConfigPropertyMetadata = [
8713
8713
  generateParamConfigMetadata('listViewId', true, 0 /* UrlParameter */, 0 /* String */),
8714
8714
  generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
@@ -8717,9 +8717,9 @@ const getListUiByListViewId_ConfigPropertyMetadata = [
8717
8717
  generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
8718
8718
  generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8719
8719
  ];
8720
- const getListUiByListViewId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$S, getListUiByListViewId_ConfigPropertyMetadata);
8720
+ const getListUiByListViewId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$T, getListUiByListViewId_ConfigPropertyMetadata);
8721
8721
 
8722
- const adapterName$Q = 'getMruListUi';
8722
+ const adapterName$R = 'getMruListUi';
8723
8723
  const getMruListUi_ConfigPropertyMetadata = [
8724
8724
  generateParamConfigMetadata('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
8725
8725
  generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
@@ -8728,7 +8728,7 @@ const getMruListUi_ConfigPropertyMetadata = [
8728
8728
  generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
8729
8729
  generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8730
8730
  ];
8731
- const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Q, getMruListUi_ConfigPropertyMetadata);
8731
+ const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$R, getMruListUi_ConfigPropertyMetadata);
8732
8732
  // make local copies of the adapter configs so we can ignore other getListUi config parameters to match
8733
8733
  // lds222 behavior
8734
8734
  ({
@@ -9016,6 +9016,11 @@ var DiscriminatorValues;
9016
9016
  DiscriminatorValues["Select"] = "Select";
9017
9017
  DiscriminatorValues["Text"] = "Text";
9018
9018
  })(DiscriminatorValues || (DiscriminatorValues = {}));
9019
+
9020
+ const API_NAMESPACE = 'UiApi';
9021
+ const RECORD_REPRESENTATION_NAME = 'RecordRepresentation';
9022
+ const RECORD_ID_PREFIX = `${API_NAMESPACE}::${RECORD_REPRESENTATION_NAME}:`;
9023
+ const RECORD_FIELDS_KEY_JUNCTION = '__fields__';
9019
9024
  // The rest of this is copy-pasted. Sorry.
9020
9025
  ObjectCreate$1(null);
9021
9026
  ensureRegisteredOnce({
@@ -9035,10 +9040,7 @@ const { parse, stringify } = JSON;
9035
9040
  * For full license text, see the LICENSE.txt file
9036
9041
  */
9037
9042
 
9038
- const API_NAMESPACE = 'UiApi';
9039
- const RECORD_REPRESENTATION_NAME = 'RecordRepresentation';
9040
- const RECORD_ID_PREFIX = `${API_NAMESPACE}::${RECORD_REPRESENTATION_NAME}:`;
9041
- const RECORD_FIELDS_KEY_JUNCTION = '__fields__';
9043
+
9042
9044
  function isStoreKeyRecordId(key) {
9043
9045
  return key.indexOf(RECORD_ID_PREFIX) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION) === -1;
9044
9046
  }
package/dist/adsBridge.js CHANGED
@@ -12,7 +12,7 @@
12
12
  * *******************************************************************************************
13
13
  */
14
14
  /* proxy-compat-disable */
15
- import { ingestRecord, keyBuilderRecord, keyBuilderObjectInfo } from 'force/ldsAdaptersUiapi';
15
+ import { RECORD_ID_PREFIX, RECORD_FIELDS_KEY_JUNCTION, ingestRecord, keyBuilderRecord, keyBuilderObjectInfo } from 'force/ldsAdaptersUiapi';
16
16
  import { withDefaultLuvio } from 'force/ldsEngine';
17
17
 
18
18
  const { push } = Array.prototype;
@@ -46,10 +46,7 @@ function instrument(newInstrumentation) {
46
46
  * For full license text, see the LICENSE.txt file
47
47
  */
48
48
 
49
- const API_NAMESPACE = 'UiApi';
50
- const RECORD_REPRESENTATION_NAME = 'RecordRepresentation';
51
- const RECORD_ID_PREFIX = `${API_NAMESPACE}::${RECORD_REPRESENTATION_NAME}:`;
52
- const RECORD_FIELDS_KEY_JUNCTION = '__fields__';
49
+
53
50
  function isStoreKeyRecordId(key) {
54
51
  return key.indexOf(RECORD_ID_PREFIX) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION) === -1;
55
52
  }
@@ -375,4 +372,4 @@ function withAdsBridge(callback) {
375
372
  }
376
373
 
377
374
  export { instrument, withAdsBridge };
378
- // version: 1.239.0-6c531185a
375
+ // version: 1.242.0-57237c3b6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-ads-bridge",
3
- "version": "1.239.0",
3
+ "version": "1.242.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",