@salesforce/lds-worker-api 1.281.0 → 1.282.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.
@@ -1048,4 +1048,4 @@ if (process.env.NODE_ENV !== 'production') {
1048
1048
  }
1049
1049
 
1050
1050
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1051
- // version: 1.281.0-9a56a08f0
1051
+ // version: 1.282.0-f3e0ca0c7
@@ -28,9 +28,17 @@ const { parse: parse$a, stringify: stringify$a } = JSON;
28
28
  const WeakSetCtor = WeakSet;
29
29
 
30
30
  const deeplyFrozen = new WeakSetCtor();
31
+ // Allow custom environments to bypass deep freeze for performance reasons
32
+ let bypassDeepFreeze = false;
33
+ function setBypassDeepFreeze(value) {
34
+ bypassDeepFreeze = value;
35
+ }
31
36
  function deepFreeze(value) {
32
37
  // No need to freeze primitives or already frozen stuff
33
- if (typeof value !== 'object' || value === null || deeplyFrozen.has(value)) {
38
+ if (bypassDeepFreeze ||
39
+ typeof value !== 'object' ||
40
+ value === null ||
41
+ deeplyFrozen.has(value)) {
34
42
  return;
35
43
  }
36
44
  deeplyFrozen.add(value);
@@ -4041,7 +4049,7 @@ function createResourceParamsImpl(config, configMetadata) {
4041
4049
  }
4042
4050
  return resourceParams;
4043
4051
  }
4044
- // engine version: 0.154.14-2fbbff64
4052
+ // engine version: 0.154.15-db466bed
4045
4053
 
4046
4054
  /**
4047
4055
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -4169,7 +4177,7 @@ function withDefaultLuvio(callback) {
4169
4177
  }
4170
4178
  callbacks.push(callback);
4171
4179
  }
4172
- // version: 1.281.0-9a56a08f0
4180
+ // version: 1.282.0-f3e0ca0c7
4173
4181
 
4174
4182
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4175
4183
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15677,7 +15685,7 @@ function gql(literals, ...subs) {
15677
15685
  }
15678
15686
  return superResult;
15679
15687
  }
15680
- // version: 1.281.0-9a56a08f0
15688
+ // version: 1.282.0-f3e0ca0c7
15681
15689
 
15682
15690
  function unwrap(data) {
15683
15691
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16602,7 +16610,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16602
16610
  const { apiFamily, name } = metadata;
16603
16611
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16604
16612
  }
16605
- // version: 1.281.0-9a56a08f0
16613
+ // version: 1.282.0-f3e0ca0c7
16606
16614
 
16607
16615
  /**
16608
16616
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16701,7 +16709,7 @@ var TypeCheckShapes;
16701
16709
  TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
16702
16710
  TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
16703
16711
  })(TypeCheckShapes || (TypeCheckShapes = {}));
16704
- // engine version: 0.154.14-2fbbff64
16712
+ // engine version: 0.154.15-db466bed
16705
16713
 
16706
16714
  const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
16707
16715
 
@@ -21631,10 +21639,10 @@ function tokenForAtMost$1(paginationMetadata, maxOffset) {
21631
21639
  }
21632
21640
 
21633
21641
  const TTL$x = 30000;
21634
- const VERSION$18$1 = "88d8362577eaa3dae0820deeea3b7ae4";
21642
+ const VERSION$18$1 = "e635ab62cb633d32aeeb183e568bb2c7";
21635
21643
  const RepresentationType$T = 'ListRecordCollectionRepresentation';
21636
21644
  function keyBuilder$23(luvio, config) {
21637
- return keyPrefix$2 + '::' + RepresentationType$T + ':' + config.objectApiName + ':' + (config.searchTerm === null ? '' : config.searchTerm) + ':' + (config.sortBy === null ? '' : '[' + config.sortBy.join(',') + ']') + ':' + (config.listViewId === null ? '' : config.listViewId) + ':' + (config.listViewApiName === null ? '' : config.listViewApiName);
21645
+ return keyPrefix$2 + '::' + RepresentationType$T + ':' + config.objectApiName + ':' + (config.searchTerm === null ? '' : config.searchTerm) + ':' + (config.sortBy === null ? '' : '[' + config.sortBy.join(',') + ']') + ':' + (config.listViewId === null ? '' : config.listViewId) + ':' + (config.where === null ? '' : config.where) + ':' + (config.listViewApiName === null ? '' : config.listViewApiName);
21638
21646
  }
21639
21647
  function keyBuilderFromType$B(luvio, object) {
21640
21648
  const keyParams = {
@@ -21642,6 +21650,7 @@ function keyBuilderFromType$B(luvio, object) {
21642
21650
  searchTerm: object.searchTerm,
21643
21651
  sortBy: object.sortBy,
21644
21652
  listViewId: object.listInfoETag,
21653
+ where: object.where,
21645
21654
  listViewApiName: object.listReference.listViewApiName
21646
21655
  };
21647
21656
  return keyBuilder$23(luvio, keyParams);
@@ -22701,7 +22710,7 @@ function splitListRecordCollectionKey(key) {
22701
22710
  const keyElements = key.split(':');
22702
22711
  return {
22703
22712
  objectApiName: keyElements[3],
22704
- listViewApiName: keyElements[7],
22713
+ listViewApiName: keyElements[8],
22705
22714
  };
22706
22715
  }
22707
22716
  function splitListSummaryCollectionKey(key) {
@@ -22927,6 +22936,7 @@ function listFields(luvio, { fields = [], optionalFields = [], sortBy, }, listIn
22927
22936
  listViewId: listInfo.eTag,
22928
22937
  sortBy: sortBy || null,
22929
22938
  searchTerm: null,
22939
+ where: null,
22930
22940
  objectApiName: listInfo.listReference.objectApiName,
22931
22941
  listViewApiName: listInfo.listReference.listViewApiName,
22932
22942
  }) + '__fieldstatus';
@@ -22992,17 +23002,18 @@ function keyBuilder$1$(luvio, params) {
22992
23002
  const listReference = getListReference(query, context$1);
22993
23003
  if (listReference !== undefined) {
22994
23004
  // Check and use any default values returned from the server (i.e. sortBy)
22995
- const config = { ...params.urlParams, ...params.queryParams };
23005
+ const config = { ...params.urlParams, ...params.body };
22996
23006
  const defaults = getServerDefaults(config, context$1);
22997
23007
  // Use default values when sortBy is undefined or an empty Array []
22998
23008
  return keyBuilder$23(luvio, {
22999
23009
  objectApiName: listReference.objectApiName,
23000
23010
  listViewApiName: listReference.listViewApiName,
23001
23011
  listViewId: listReference.id,
23002
- searchTerm: params.queryParams.searchTerm || null,
23003
- sortBy: params.queryParams.sortBy !== undefined && params.queryParams.sortBy.length <= 0
23004
- ? defaults.sortBy || params.queryParams.sortBy || []
23005
- : params.queryParams.sortBy || defaults.sortBy || [],
23012
+ searchTerm: params.body.searchTerm || null,
23013
+ where: params.body.where || null,
23014
+ sortBy: params.body.sortBy !== undefined && params.body.sortBy.length <= 0
23015
+ ? defaults.sortBy || params.body.sortBy || []
23016
+ : params.body.sortBy || defaults.sortBy || [],
23006
23017
  });
23007
23018
  }
23008
23019
  // If there are no matching entries in the store, then we haven't fetched any data for this list view yet.
@@ -23011,13 +23022,14 @@ function keyBuilder$1$(luvio, params) {
23011
23022
  objectApiName: params.urlParams.objectApiName,
23012
23023
  listViewApiName: params.urlParams.listViewApiName,
23013
23024
  listViewId: '',
23014
- searchTerm: params.queryParams.searchTerm || null,
23015
- sortBy: params.queryParams.sortBy || [],
23025
+ searchTerm: params.body.searchTerm || null,
23026
+ where: params.body.where || null,
23027
+ sortBy: params.body.sortBy || [],
23016
23028
  });
23017
23029
  }
23018
23030
 
23019
23031
  function select$1K(luvio, params) {
23020
- const { fields = [], optionalFields = [] } = params.queryParams;
23032
+ const { fields = [], optionalFields = [] } = params.body;
23021
23033
  return dynamicSelect$7({
23022
23034
  records: {
23023
23035
  name: 'records',
@@ -23035,7 +23047,7 @@ function ingestSuccess$Q(luvio, resourceParams, response, snapshotRefresh) {
23035
23047
  const { body } = response;
23036
23048
  const key = keyBuilder$1$(luvio, resourceParams);
23037
23049
  luvio.storeIngest(key, ingest$M$1, body);
23038
- const optionalFields = resourceParams.queryParams.optionalFields;
23050
+ const optionalFields = resourceParams.body.optionalFields;
23039
23051
  if (optionalFields && optionalFields.length > 0) {
23040
23052
  const normalized = body;
23041
23053
  markMissingOptionalFieldsOnRecords$1(luvio, normalized, optionalFields);
@@ -23060,10 +23072,10 @@ function markMissingOptionalFieldsOnRecords$1(luvio, nomalized, optionalFields)
23060
23072
  }
23061
23073
 
23062
23074
  function createPaginationParams$4(params) {
23063
- const { queryParams } = params;
23075
+ const { body } = params;
23064
23076
  return {
23065
- token: queryParams.pageToken,
23066
- pageSize: queryParams.pageSize === undefined ? 50 : queryParams.pageSize
23077
+ token: body.pageToken,
23078
+ pageSize: body.pageSize === undefined ? 50 : body.pageSize
23067
23079
  };
23068
23080
  }
23069
23081
  function getResponseCacheKeys$$(storeKeyMap, luvio, resourceParams, response) {
@@ -23086,10 +23098,10 @@ function createResourceRequest$15(config) {
23086
23098
  return {
23087
23099
  baseUri: '/services/data/v61.0',
23088
23100
  basePath: '/ui-api/list-records/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
23089
- method: 'get',
23090
- body: null,
23101
+ method: 'post',
23102
+ body: config.body,
23091
23103
  urlParams: config.urlParams,
23092
- queryParams: config.queryParams,
23104
+ queryParams: {},
23093
23105
  headers,
23094
23106
  priority: 'normal',
23095
23107
  };
@@ -23952,6 +23964,7 @@ function prepareRequest_getMruListRecords(luvio, config, listInfo, snapshot) {
23952
23964
  const paginationKey = paginationKeyBuilder(luvio, {
23953
23965
  listViewId: listInfo.eTag,
23954
23966
  searchTerm: null,
23967
+ where: null,
23955
23968
  sortBy: config.sortBy === undefined ? null : config.sortBy,
23956
23969
  objectApiName: listInfo.listReference.objectApiName,
23957
23970
  listViewApiName: listInfo.listReference.listViewApiName,
@@ -23999,6 +24012,7 @@ function onResourceSuccess_getMruListRecords(luvio, config, listInfo, response)
23999
24012
  luvio.storeIngest(keyBuilder$23(luvio, {
24000
24013
  listViewId: listInfoETag,
24001
24014
  searchTerm: null,
24015
+ where: null,
24002
24016
  sortBy: body.sortBy,
24003
24017
  objectApiName: listInfo.listReference.objectApiName,
24004
24018
  listViewApiName: listInfo.listReference.listViewApiName,
@@ -24294,6 +24308,13 @@ function prepareRequest_getListRecords(luvio, context, config, listInfo, snapsho
24294
24308
  pageToken,
24295
24309
  sortBy,
24296
24310
  };
24311
+ const body = {
24312
+ fields,
24313
+ optionalFields,
24314
+ pageSize,
24315
+ pageToken,
24316
+ sortBy,
24317
+ };
24297
24318
  let request;
24298
24319
  if (isGetListUiByApiNameConfig(config)) {
24299
24320
  request = createResourceRequest$15({
@@ -24301,7 +24322,7 @@ function prepareRequest_getListRecords(luvio, context, config, listInfo, snapsho
24301
24322
  listViewApiName: config.listViewApiName,
24302
24323
  objectApiName: config.objectApiName,
24303
24324
  },
24304
- queryParams,
24325
+ body,
24305
24326
  });
24306
24327
  }
24307
24328
  else if (isGetListUiByListViewIdConfig(config)) {
@@ -24326,6 +24347,7 @@ function prepareRequest_getListRecords(luvio, context, config, listInfo, snapsho
24326
24347
  const paginationKey = paginationKeyBuilder(luvio, {
24327
24348
  listViewId: listInfo.eTag,
24328
24349
  searchTerm: null,
24350
+ where: null,
24329
24351
  sortBy: getSortBy(config, context),
24330
24352
  objectApiName: listInfo.listReference.objectApiName,
24331
24353
  listViewApiName: listInfo.listReference.listViewApiName,
@@ -24376,6 +24398,7 @@ function onResourceSuccess_getListRecords(luvio, context, config, listInfo, resp
24376
24398
  luvio.storeIngest(keyBuilder$23(luvio, {
24377
24399
  listViewId: listInfoETag,
24378
24400
  searchTerm: null,
24401
+ where: null,
24379
24402
  sortBy: body.sortBy,
24380
24403
  objectApiName: listInfo.listReference.objectApiName,
24381
24404
  listViewApiName: listInfo.listReference.listViewApiName,
@@ -29537,7 +29560,7 @@ function getTypeCacheKeys$z$1(rootKeySet, luvio, input, fullPathFactory) {
29537
29560
  }
29538
29561
 
29539
29562
  const TTL$n = 300000;
29540
- const VERSION$O$1 = "1781f2d3d4e413cf0c681774d82d02cd";
29563
+ const VERSION$O$1 = "b33c534240965bedfcf073228d48b940";
29541
29564
  const RepresentationType$x = 'AppRepresentation';
29542
29565
  function keyBuilder$1k(luvio, config) {
29543
29566
  return keyPrefix$2 + '::' + RepresentationType$x + ':' + (config.appId === null ? '' : config.appId);
@@ -29698,11 +29721,6 @@ function equals$E(existing, incoming) {
29698
29721
  if (!(existing_eTag === incoming_eTag)) {
29699
29722
  return false;
29700
29723
  }
29701
- const existing_headerColor = existing.headerColor;
29702
- const incoming_headerColor = incoming.headerColor;
29703
- if (!(existing_headerColor === incoming_headerColor)) {
29704
- return false;
29705
- }
29706
29724
  const existing_label = existing.label;
29707
29725
  const incoming_label = incoming.label;
29708
29726
  if (!(existing_label === incoming_label)) {
@@ -29743,6 +29761,11 @@ function equals$E(existing, incoming) {
29743
29761
  if (equals_formFactors_items === false) {
29744
29762
  return false;
29745
29763
  }
29764
+ const existing_headerColor = existing.headerColor;
29765
+ const incoming_headerColor = incoming.headerColor;
29766
+ if (!(existing_headerColor === incoming_headerColor)) {
29767
+ return false;
29768
+ }
29746
29769
  const existing_iconUrl = existing.iconUrl;
29747
29770
  const incoming_iconUrl = incoming.iconUrl;
29748
29771
  if (!(existing_iconUrl === incoming_iconUrl)) {
@@ -38364,7 +38387,7 @@ function createPaginationParams(params) {
38364
38387
  function keyBuilder$s$1(luvio, params) {
38365
38388
  return keyBuilder$t$1(luvio, {
38366
38389
  sortBy: params.body.sortBy || [],
38367
- where: params.body.where || "",
38390
+ where: params.body.where || null,
38368
38391
  parentRecordId: params.urlParams.parentRecordId,
38369
38392
  relatedListId: params.urlParams.relatedListId
38370
38393
  });
@@ -40669,12 +40692,13 @@ const adapterName$6 = 'getListRecordsByName';
40669
40692
  const getListRecordsByName_ConfigPropertyMetadata = [
40670
40693
  generateParamConfigMetadata$2('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
40671
40694
  generateParamConfigMetadata$2('objectApiName', true, 0 /* UrlParameter */, 0 /* String */),
40672
- generateParamConfigMetadata$2('fields', false, 1 /* QueryParameter */, 0 /* String */, true),
40673
- generateParamConfigMetadata$2('optionalFields', false, 1 /* QueryParameter */, 0 /* String */, true),
40674
- generateParamConfigMetadata$2('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
40675
- generateParamConfigMetadata$2('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
40676
- generateParamConfigMetadata$2('searchTerm', false, 1 /* QueryParameter */, 0 /* String */),
40677
- generateParamConfigMetadata$2('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true),
40695
+ generateParamConfigMetadata$2('fields', false, 2 /* Body */, 0 /* String */, true),
40696
+ generateParamConfigMetadata$2('optionalFields', false, 2 /* Body */, 0 /* String */, true),
40697
+ generateParamConfigMetadata$2('pageSize', false, 2 /* Body */, 3 /* Integer */),
40698
+ generateParamConfigMetadata$2('pageToken', false, 2 /* Body */, 0 /* String */),
40699
+ generateParamConfigMetadata$2('searchTerm', false, 2 /* Body */, 0 /* String */),
40700
+ generateParamConfigMetadata$2('sortBy', false, 2 /* Body */, 0 /* String */, true),
40701
+ generateParamConfigMetadata$2('where', false, 2 /* Body */, 0 /* String */),
40678
40702
  ];
40679
40703
  const getListRecordsByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$6, getListRecordsByName_ConfigPropertyMetadata);
40680
40704
  const createResourceParams$8 = /*#__PURE__*/ createResourceParams$13(getListRecordsByName_ConfigPropertyMetadata);
@@ -40791,7 +40815,7 @@ function getPaginationMetadata(luvio, resourceParams) {
40791
40815
  return node.data.__metadata;
40792
40816
  }
40793
40817
  function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
40794
- return buildNetworkSnapshotCachePolicy$S(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, true);
40818
+ return buildNetworkSnapshotCachePolicy$S(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, 'get', true);
40795
40819
  }
40796
40820
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
40797
40821
  const { luvio, config } = context;
@@ -44069,7 +44093,7 @@ withDefaultLuvio((luvio) => {
44069
44093
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
44070
44094
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
44071
44095
  });
44072
- // version: 1.281.0-bcef40769
44096
+ // version: 1.282.0-dd2e9831c
44073
44097
 
44074
44098
  var ldsIdempotencyWriteDisabled = {
44075
44099
  isOpen: function (e) {
@@ -45208,7 +45232,9 @@ function isUnfulfilledSnapshot$1(cachedSnapshotResult) {
45208
45232
  * @param durableStore A DurableStore implementation
45209
45233
  * @param instrumentation An instrumentation function implementation
45210
45234
  */
45211
- function makeDurable(environment, { durableStore, instrumentation, useRevivingStore, enableDurableMetadataRefresh = false, }) {
45235
+ function makeDurable(environment, { durableStore, instrumentation, useRevivingStore, enableDurableMetadataRefresh = false, disableDeepFreeze = false, }) {
45236
+ // runtimes can choose to disable deepFreeze, e.g. headless mobile runtime
45237
+ setBypassDeepFreeze(disableDeepFreeze);
45212
45238
  let stagingStore = null;
45213
45239
  const durableTTLStore = new DurableTTLStore(durableStore);
45214
45240
  const mergeKeysPromiseMap = new Map();
@@ -52142,6 +52168,9 @@ function sanitizePredicateIDValue(value, draftFunction) {
52142
52168
  if (isArray$2$1(value)) {
52143
52169
  return value.map((singleValue) => sanitizePredicateIDValue(singleValue, draftFunction));
52144
52170
  }
52171
+ else if (typeof value === 'string' && value === '') {
52172
+ return value;
52173
+ }
52145
52174
  else {
52146
52175
  const coercedId = getRecordId18(value);
52147
52176
  if (coercedId !== undefined) {
@@ -52861,19 +52890,7 @@ function isCapableRelationship(node) {
52861
52890
  });
52862
52891
  }
52863
52892
  }
52864
- else if (isInlineFragmentNode(node)) {
52865
- if (!node.selectionSet)
52866
- return false;
52867
- return node.selectionSet.selections.some((selection) => {
52868
- if (selection.kind !== Kind$1.FIELD && selection.kind !== Kind$1.INLINE_FRAGMENT)
52869
- return false;
52870
- // example: Account { Id }
52871
- if (selection.kind === Kind$1.FIELD && selection.name.value === 'Id')
52872
- return true;
52873
- return selection.selectionSet !== undefined;
52874
- });
52875
- }
52876
- return false;
52893
+ return isInlineFragmentNode(node);
52877
52894
  }
52878
52895
  /**
52879
52896
  * checks if the 'ArgumentNode' is a specific scope type
@@ -55500,7 +55517,8 @@ function injectParentRelationships(selections, parentNode, parentPath, ancestors
55500
55517
  * @param objectInfos
55501
55518
  * @returns
55502
55519
  */
55503
- function injectFieldsForDisplayValue({ selectionSet }, parentNode, objectInfos) {
55520
+ function injectFieldsForDisplayValue(topNode, parentNode, objectInfos) {
55521
+ const { selectionSet } = topNode;
55504
55522
  if (selectionSet === undefined)
55505
55523
  return [];
55506
55524
  let displayValueNameFields = [];
@@ -55513,6 +55531,10 @@ function injectFieldsForDisplayValue({ selectionSet }, parentNode, objectInfos)
55513
55531
  displayValue = node;
55514
55532
  break;
55515
55533
  }
55534
+ if (isInlineFragmentNode(node)) {
55535
+ const name = node.typeCondition !== undefined ? node.typeCondition.name : parentNode.name;
55536
+ displayValueNameFields = injectFieldsForDisplayValue(node, { ...parentNode, name }, objectInfos);
55537
+ }
55516
55538
  }
55517
55539
  if (displayValue !== undefined) {
55518
55540
  const apiName = parentNode.name.value;
@@ -55582,10 +55604,17 @@ function injectFields(selections, parentNode, parentPath, ancestors, objectInfos
55582
55604
  // example: TimeSheetId { value }
55583
55605
  relatedIdForChildRelationship.push(createFieldNode(injectedParentFieldName, FieldValueNodeSelectionSet));
55584
55606
  }
55607
+ displayValueNameFields.push(...injectFieldsForDisplayValue(parentNode, {
55608
+ ...parent,
55609
+ name: {
55610
+ ...parent.name,
55611
+ value: targetRelationship.childObjectApiName,
55612
+ },
55613
+ }, objectInfos));
55585
55614
  }
55586
55615
  }
55587
55616
  }
55588
- displayValueNameFields = injectFieldsForDisplayValue(parentNode, parent, objectInfos);
55617
+ displayValueNameFields.push(...injectFieldsForDisplayValue(parentNode, parent, objectInfos));
55589
55618
  }
55590
55619
  }
55591
55620
  return [
@@ -61032,13 +61061,13 @@ function mergeRecord(existingRecord, incomingRecord, objectInfo) {
61032
61061
  // since none of the changed fields are part of the incoming record
61033
61062
  if (missingFields.every((field) => {
61034
61063
  const referenceFieldName = findReferenceFieldForSpanningField(field, objectInfo);
61035
- if (referenceFieldName !== undefined) {
61036
- return (incomingRecord.fields[referenceFieldName].value ===
61037
- existingRecord.fields[referenceFieldName].value);
61038
- }
61039
- else {
61064
+ if (referenceFieldName === undefined) {
61040
61065
  return false;
61041
61066
  }
61067
+ return (existingRecord.fields[referenceFieldName] &&
61068
+ incomingRecord.fields[referenceFieldName] &&
61069
+ incomingRecord.fields[referenceFieldName].value ===
61070
+ existingRecord.fields[referenceFieldName].value);
61042
61071
  })) {
61043
61072
  return {
61044
61073
  ok: true,
@@ -61915,6 +61944,9 @@ class LdsPrimingRecordRefresher {
61915
61944
  optionalFields: value.fields.map((f) => `${_apiName}.${f}`),
61916
61945
  },
61917
61946
  ],
61947
+ }, {
61948
+ cachePolicy: { type: 'no-cache' },
61949
+ priority: 'background',
61918
61950
  }));
61919
61951
  });
61920
61952
  const promiseResults = await allSettled(promises);
@@ -62019,6 +62051,8 @@ function getRuntime() {
62019
62051
  const durableEnv = makeDurable(gqlEnv, {
62020
62052
  durableStore: recordDenormingStore,
62021
62053
  enableDurableMetadataRefresh: ldsMetadataRefreshEnabled.isOpen({ fallback: false }),
62054
+ // disable luvio deep freeze in headless environments
62055
+ disableDeepFreeze: typeof window === 'undefined',
62022
62056
  });
62023
62057
  getIngestRecords = durableEnv.getIngestStagingStoreRecords;
62024
62058
  getIngestMetadata = durableEnv.getIngestStagingStoreMetadata;
@@ -62121,7 +62155,7 @@ register$1({
62121
62155
  id: '@salesforce/lds-network-adapter',
62122
62156
  instrument: instrument$2,
62123
62157
  });
62124
- // version: 1.281.0-9a56a08f0
62158
+ // version: 1.282.0-f3e0ca0c7
62125
62159
 
62126
62160
  const { create: create$3, keys: keys$3 } = Object;
62127
62161
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -82131,7 +82165,7 @@ register$1({
82131
82165
  configuration: { ...configurationForGraphQLAdapters$1 },
82132
82166
  instrument: instrument$1,
82133
82167
  });
82134
- // version: 1.281.0-bcef40769
82168
+ // version: 1.282.0-dd2e9831c
82135
82169
 
82136
82170
  // On core the unstable adapters are re-exported with different names,
82137
82171
  // we want to match them here.
@@ -84387,7 +84421,7 @@ withDefaultLuvio((luvio) => {
84387
84421
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
84388
84422
  graphQLImperative = ldsAdapter;
84389
84423
  });
84390
- // version: 1.281.0-bcef40769
84424
+ // version: 1.282.0-dd2e9831c
84391
84425
 
84392
84426
  var gqlApi = /*#__PURE__*/Object.freeze({
84393
84427
  __proto__: null,
@@ -85099,7 +85133,7 @@ const callbacks$1 = [];
85099
85133
  function register(r) {
85100
85134
  callbacks$1.forEach((callback) => callback(r));
85101
85135
  }
85102
- // version: 1.281.0-9a56a08f0
85136
+ // version: 1.282.0-f3e0ca0c7
85103
85137
 
85104
85138
  /**
85105
85139
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -90014,4 +90048,4 @@ const { luvio } = getRuntime();
90014
90048
  setDefaultLuvio({ luvio });
90015
90049
 
90016
90050
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
90017
- // version: 1.281.0-9a56a08f0
90051
+ // version: 1.282.0-f3e0ca0c7
@@ -34,9 +34,17 @@
34
34
  const WeakSetCtor = WeakSet;
35
35
 
36
36
  const deeplyFrozen = new WeakSetCtor();
37
+ // Allow custom environments to bypass deep freeze for performance reasons
38
+ let bypassDeepFreeze = false;
39
+ function setBypassDeepFreeze(value) {
40
+ bypassDeepFreeze = value;
41
+ }
37
42
  function deepFreeze(value) {
38
43
  // No need to freeze primitives or already frozen stuff
39
- if (typeof value !== 'object' || value === null || deeplyFrozen.has(value)) {
44
+ if (bypassDeepFreeze ||
45
+ typeof value !== 'object' ||
46
+ value === null ||
47
+ deeplyFrozen.has(value)) {
40
48
  return;
41
49
  }
42
50
  deeplyFrozen.add(value);
@@ -4047,7 +4055,7 @@
4047
4055
  }
4048
4056
  return resourceParams;
4049
4057
  }
4050
- // engine version: 0.154.14-2fbbff64
4058
+ // engine version: 0.154.15-db466bed
4051
4059
 
4052
4060
  /**
4053
4061
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -4175,7 +4183,7 @@
4175
4183
  }
4176
4184
  callbacks.push(callback);
4177
4185
  }
4178
- // version: 1.281.0-9a56a08f0
4186
+ // version: 1.282.0-f3e0ca0c7
4179
4187
 
4180
4188
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4181
4189
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15683,7 +15691,7 @@
15683
15691
  }
15684
15692
  return superResult;
15685
15693
  }
15686
- // version: 1.281.0-9a56a08f0
15694
+ // version: 1.282.0-f3e0ca0c7
15687
15695
 
15688
15696
  function unwrap(data) {
15689
15697
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16608,7 +16616,7 @@
16608
16616
  const { apiFamily, name } = metadata;
16609
16617
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16610
16618
  }
16611
- // version: 1.281.0-9a56a08f0
16619
+ // version: 1.282.0-f3e0ca0c7
16612
16620
 
16613
16621
  /**
16614
16622
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16707,7 +16715,7 @@
16707
16715
  TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
16708
16716
  TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
16709
16717
  })(TypeCheckShapes || (TypeCheckShapes = {}));
16710
- // engine version: 0.154.14-2fbbff64
16718
+ // engine version: 0.154.15-db466bed
16711
16719
 
16712
16720
  const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
16713
16721
 
@@ -21637,10 +21645,10 @@
21637
21645
  }
21638
21646
 
21639
21647
  const TTL$x = 30000;
21640
- const VERSION$18$1 = "88d8362577eaa3dae0820deeea3b7ae4";
21648
+ const VERSION$18$1 = "e635ab62cb633d32aeeb183e568bb2c7";
21641
21649
  const RepresentationType$T = 'ListRecordCollectionRepresentation';
21642
21650
  function keyBuilder$23(luvio, config) {
21643
- return keyPrefix$2 + '::' + RepresentationType$T + ':' + config.objectApiName + ':' + (config.searchTerm === null ? '' : config.searchTerm) + ':' + (config.sortBy === null ? '' : '[' + config.sortBy.join(',') + ']') + ':' + (config.listViewId === null ? '' : config.listViewId) + ':' + (config.listViewApiName === null ? '' : config.listViewApiName);
21651
+ return keyPrefix$2 + '::' + RepresentationType$T + ':' + config.objectApiName + ':' + (config.searchTerm === null ? '' : config.searchTerm) + ':' + (config.sortBy === null ? '' : '[' + config.sortBy.join(',') + ']') + ':' + (config.listViewId === null ? '' : config.listViewId) + ':' + (config.where === null ? '' : config.where) + ':' + (config.listViewApiName === null ? '' : config.listViewApiName);
21644
21652
  }
21645
21653
  function keyBuilderFromType$B(luvio, object) {
21646
21654
  const keyParams = {
@@ -21648,6 +21656,7 @@
21648
21656
  searchTerm: object.searchTerm,
21649
21657
  sortBy: object.sortBy,
21650
21658
  listViewId: object.listInfoETag,
21659
+ where: object.where,
21651
21660
  listViewApiName: object.listReference.listViewApiName
21652
21661
  };
21653
21662
  return keyBuilder$23(luvio, keyParams);
@@ -22707,7 +22716,7 @@
22707
22716
  const keyElements = key.split(':');
22708
22717
  return {
22709
22718
  objectApiName: keyElements[3],
22710
- listViewApiName: keyElements[7],
22719
+ listViewApiName: keyElements[8],
22711
22720
  };
22712
22721
  }
22713
22722
  function splitListSummaryCollectionKey(key) {
@@ -22933,6 +22942,7 @@
22933
22942
  listViewId: listInfo.eTag,
22934
22943
  sortBy: sortBy || null,
22935
22944
  searchTerm: null,
22945
+ where: null,
22936
22946
  objectApiName: listInfo.listReference.objectApiName,
22937
22947
  listViewApiName: listInfo.listReference.listViewApiName,
22938
22948
  }) + '__fieldstatus';
@@ -22998,17 +23008,18 @@
22998
23008
  const listReference = getListReference(query, context$1);
22999
23009
  if (listReference !== undefined) {
23000
23010
  // Check and use any default values returned from the server (i.e. sortBy)
23001
- const config = { ...params.urlParams, ...params.queryParams };
23011
+ const config = { ...params.urlParams, ...params.body };
23002
23012
  const defaults = getServerDefaults(config, context$1);
23003
23013
  // Use default values when sortBy is undefined or an empty Array []
23004
23014
  return keyBuilder$23(luvio, {
23005
23015
  objectApiName: listReference.objectApiName,
23006
23016
  listViewApiName: listReference.listViewApiName,
23007
23017
  listViewId: listReference.id,
23008
- searchTerm: params.queryParams.searchTerm || null,
23009
- sortBy: params.queryParams.sortBy !== undefined && params.queryParams.sortBy.length <= 0
23010
- ? defaults.sortBy || params.queryParams.sortBy || []
23011
- : params.queryParams.sortBy || defaults.sortBy || [],
23018
+ searchTerm: params.body.searchTerm || null,
23019
+ where: params.body.where || null,
23020
+ sortBy: params.body.sortBy !== undefined && params.body.sortBy.length <= 0
23021
+ ? defaults.sortBy || params.body.sortBy || []
23022
+ : params.body.sortBy || defaults.sortBy || [],
23012
23023
  });
23013
23024
  }
23014
23025
  // If there are no matching entries in the store, then we haven't fetched any data for this list view yet.
@@ -23017,13 +23028,14 @@
23017
23028
  objectApiName: params.urlParams.objectApiName,
23018
23029
  listViewApiName: params.urlParams.listViewApiName,
23019
23030
  listViewId: '',
23020
- searchTerm: params.queryParams.searchTerm || null,
23021
- sortBy: params.queryParams.sortBy || [],
23031
+ searchTerm: params.body.searchTerm || null,
23032
+ where: params.body.where || null,
23033
+ sortBy: params.body.sortBy || [],
23022
23034
  });
23023
23035
  }
23024
23036
 
23025
23037
  function select$1K(luvio, params) {
23026
- const { fields = [], optionalFields = [] } = params.queryParams;
23038
+ const { fields = [], optionalFields = [] } = params.body;
23027
23039
  return dynamicSelect$7({
23028
23040
  records: {
23029
23041
  name: 'records',
@@ -23041,7 +23053,7 @@
23041
23053
  const { body } = response;
23042
23054
  const key = keyBuilder$1$(luvio, resourceParams);
23043
23055
  luvio.storeIngest(key, ingest$M$1, body);
23044
- const optionalFields = resourceParams.queryParams.optionalFields;
23056
+ const optionalFields = resourceParams.body.optionalFields;
23045
23057
  if (optionalFields && optionalFields.length > 0) {
23046
23058
  const normalized = body;
23047
23059
  markMissingOptionalFieldsOnRecords$1(luvio, normalized, optionalFields);
@@ -23066,10 +23078,10 @@
23066
23078
  }
23067
23079
 
23068
23080
  function createPaginationParams$4(params) {
23069
- const { queryParams } = params;
23081
+ const { body } = params;
23070
23082
  return {
23071
- token: queryParams.pageToken,
23072
- pageSize: queryParams.pageSize === undefined ? 50 : queryParams.pageSize
23083
+ token: body.pageToken,
23084
+ pageSize: body.pageSize === undefined ? 50 : body.pageSize
23073
23085
  };
23074
23086
  }
23075
23087
  function getResponseCacheKeys$$(storeKeyMap, luvio, resourceParams, response) {
@@ -23092,10 +23104,10 @@
23092
23104
  return {
23093
23105
  baseUri: '/services/data/v61.0',
23094
23106
  basePath: '/ui-api/list-records/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
23095
- method: 'get',
23096
- body: null,
23107
+ method: 'post',
23108
+ body: config.body,
23097
23109
  urlParams: config.urlParams,
23098
- queryParams: config.queryParams,
23110
+ queryParams: {},
23099
23111
  headers,
23100
23112
  priority: 'normal',
23101
23113
  };
@@ -23958,6 +23970,7 @@
23958
23970
  const paginationKey = paginationKeyBuilder(luvio, {
23959
23971
  listViewId: listInfo.eTag,
23960
23972
  searchTerm: null,
23973
+ where: null,
23961
23974
  sortBy: config.sortBy === undefined ? null : config.sortBy,
23962
23975
  objectApiName: listInfo.listReference.objectApiName,
23963
23976
  listViewApiName: listInfo.listReference.listViewApiName,
@@ -24005,6 +24018,7 @@
24005
24018
  luvio.storeIngest(keyBuilder$23(luvio, {
24006
24019
  listViewId: listInfoETag,
24007
24020
  searchTerm: null,
24021
+ where: null,
24008
24022
  sortBy: body.sortBy,
24009
24023
  objectApiName: listInfo.listReference.objectApiName,
24010
24024
  listViewApiName: listInfo.listReference.listViewApiName,
@@ -24300,6 +24314,13 @@
24300
24314
  pageToken,
24301
24315
  sortBy,
24302
24316
  };
24317
+ const body = {
24318
+ fields,
24319
+ optionalFields,
24320
+ pageSize,
24321
+ pageToken,
24322
+ sortBy,
24323
+ };
24303
24324
  let request;
24304
24325
  if (isGetListUiByApiNameConfig(config)) {
24305
24326
  request = createResourceRequest$15({
@@ -24307,7 +24328,7 @@
24307
24328
  listViewApiName: config.listViewApiName,
24308
24329
  objectApiName: config.objectApiName,
24309
24330
  },
24310
- queryParams,
24331
+ body,
24311
24332
  });
24312
24333
  }
24313
24334
  else if (isGetListUiByListViewIdConfig(config)) {
@@ -24332,6 +24353,7 @@
24332
24353
  const paginationKey = paginationKeyBuilder(luvio, {
24333
24354
  listViewId: listInfo.eTag,
24334
24355
  searchTerm: null,
24356
+ where: null,
24335
24357
  sortBy: getSortBy(config, context),
24336
24358
  objectApiName: listInfo.listReference.objectApiName,
24337
24359
  listViewApiName: listInfo.listReference.listViewApiName,
@@ -24382,6 +24404,7 @@
24382
24404
  luvio.storeIngest(keyBuilder$23(luvio, {
24383
24405
  listViewId: listInfoETag,
24384
24406
  searchTerm: null,
24407
+ where: null,
24385
24408
  sortBy: body.sortBy,
24386
24409
  objectApiName: listInfo.listReference.objectApiName,
24387
24410
  listViewApiName: listInfo.listReference.listViewApiName,
@@ -29543,7 +29566,7 @@
29543
29566
  }
29544
29567
 
29545
29568
  const TTL$n = 300000;
29546
- const VERSION$O$1 = "1781f2d3d4e413cf0c681774d82d02cd";
29569
+ const VERSION$O$1 = "b33c534240965bedfcf073228d48b940";
29547
29570
  const RepresentationType$x = 'AppRepresentation';
29548
29571
  function keyBuilder$1k(luvio, config) {
29549
29572
  return keyPrefix$2 + '::' + RepresentationType$x + ':' + (config.appId === null ? '' : config.appId);
@@ -29704,11 +29727,6 @@
29704
29727
  if (!(existing_eTag === incoming_eTag)) {
29705
29728
  return false;
29706
29729
  }
29707
- const existing_headerColor = existing.headerColor;
29708
- const incoming_headerColor = incoming.headerColor;
29709
- if (!(existing_headerColor === incoming_headerColor)) {
29710
- return false;
29711
- }
29712
29730
  const existing_label = existing.label;
29713
29731
  const incoming_label = incoming.label;
29714
29732
  if (!(existing_label === incoming_label)) {
@@ -29749,6 +29767,11 @@
29749
29767
  if (equals_formFactors_items === false) {
29750
29768
  return false;
29751
29769
  }
29770
+ const existing_headerColor = existing.headerColor;
29771
+ const incoming_headerColor = incoming.headerColor;
29772
+ if (!(existing_headerColor === incoming_headerColor)) {
29773
+ return false;
29774
+ }
29752
29775
  const existing_iconUrl = existing.iconUrl;
29753
29776
  const incoming_iconUrl = incoming.iconUrl;
29754
29777
  if (!(existing_iconUrl === incoming_iconUrl)) {
@@ -38370,7 +38393,7 @@
38370
38393
  function keyBuilder$s$1(luvio, params) {
38371
38394
  return keyBuilder$t$1(luvio, {
38372
38395
  sortBy: params.body.sortBy || [],
38373
- where: params.body.where || "",
38396
+ where: params.body.where || null,
38374
38397
  parentRecordId: params.urlParams.parentRecordId,
38375
38398
  relatedListId: params.urlParams.relatedListId
38376
38399
  });
@@ -40675,12 +40698,13 @@
40675
40698
  const getListRecordsByName_ConfigPropertyMetadata = [
40676
40699
  generateParamConfigMetadata$2('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
40677
40700
  generateParamConfigMetadata$2('objectApiName', true, 0 /* UrlParameter */, 0 /* String */),
40678
- generateParamConfigMetadata$2('fields', false, 1 /* QueryParameter */, 0 /* String */, true),
40679
- generateParamConfigMetadata$2('optionalFields', false, 1 /* QueryParameter */, 0 /* String */, true),
40680
- generateParamConfigMetadata$2('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
40681
- generateParamConfigMetadata$2('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
40682
- generateParamConfigMetadata$2('searchTerm', false, 1 /* QueryParameter */, 0 /* String */),
40683
- generateParamConfigMetadata$2('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true),
40701
+ generateParamConfigMetadata$2('fields', false, 2 /* Body */, 0 /* String */, true),
40702
+ generateParamConfigMetadata$2('optionalFields', false, 2 /* Body */, 0 /* String */, true),
40703
+ generateParamConfigMetadata$2('pageSize', false, 2 /* Body */, 3 /* Integer */),
40704
+ generateParamConfigMetadata$2('pageToken', false, 2 /* Body */, 0 /* String */),
40705
+ generateParamConfigMetadata$2('searchTerm', false, 2 /* Body */, 0 /* String */),
40706
+ generateParamConfigMetadata$2('sortBy', false, 2 /* Body */, 0 /* String */, true),
40707
+ generateParamConfigMetadata$2('where', false, 2 /* Body */, 0 /* String */),
40684
40708
  ];
40685
40709
  const getListRecordsByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$6, getListRecordsByName_ConfigPropertyMetadata);
40686
40710
  const createResourceParams$8 = /*#__PURE__*/ createResourceParams$13(getListRecordsByName_ConfigPropertyMetadata);
@@ -40797,7 +40821,7 @@
40797
40821
  return node.data.__metadata;
40798
40822
  }
40799
40823
  function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
40800
- return buildNetworkSnapshotCachePolicy$S(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, true);
40824
+ return buildNetworkSnapshotCachePolicy$S(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, 'get', true);
40801
40825
  }
40802
40826
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
40803
40827
  const { luvio, config } = context;
@@ -44075,7 +44099,7 @@
44075
44099
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
44076
44100
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
44077
44101
  });
44078
- // version: 1.281.0-bcef40769
44102
+ // version: 1.282.0-dd2e9831c
44079
44103
 
44080
44104
  var ldsIdempotencyWriteDisabled = {
44081
44105
  isOpen: function (e) {
@@ -45214,7 +45238,9 @@
45214
45238
  * @param durableStore A DurableStore implementation
45215
45239
  * @param instrumentation An instrumentation function implementation
45216
45240
  */
45217
- function makeDurable(environment, { durableStore, instrumentation, useRevivingStore, enableDurableMetadataRefresh = false, }) {
45241
+ function makeDurable(environment, { durableStore, instrumentation, useRevivingStore, enableDurableMetadataRefresh = false, disableDeepFreeze = false, }) {
45242
+ // runtimes can choose to disable deepFreeze, e.g. headless mobile runtime
45243
+ setBypassDeepFreeze(disableDeepFreeze);
45218
45244
  let stagingStore = null;
45219
45245
  const durableTTLStore = new DurableTTLStore(durableStore);
45220
45246
  const mergeKeysPromiseMap = new Map();
@@ -52148,6 +52174,9 @@
52148
52174
  if (isArray$2$1(value)) {
52149
52175
  return value.map((singleValue) => sanitizePredicateIDValue(singleValue, draftFunction));
52150
52176
  }
52177
+ else if (typeof value === 'string' && value === '') {
52178
+ return value;
52179
+ }
52151
52180
  else {
52152
52181
  const coercedId = getRecordId18(value);
52153
52182
  if (coercedId !== undefined) {
@@ -52867,19 +52896,7 @@
52867
52896
  });
52868
52897
  }
52869
52898
  }
52870
- else if (isInlineFragmentNode(node)) {
52871
- if (!node.selectionSet)
52872
- return false;
52873
- return node.selectionSet.selections.some((selection) => {
52874
- if (selection.kind !== Kind$1.FIELD && selection.kind !== Kind$1.INLINE_FRAGMENT)
52875
- return false;
52876
- // example: Account { Id }
52877
- if (selection.kind === Kind$1.FIELD && selection.name.value === 'Id')
52878
- return true;
52879
- return selection.selectionSet !== undefined;
52880
- });
52881
- }
52882
- return false;
52899
+ return isInlineFragmentNode(node);
52883
52900
  }
52884
52901
  /**
52885
52902
  * checks if the 'ArgumentNode' is a specific scope type
@@ -55506,7 +55523,8 @@
55506
55523
  * @param objectInfos
55507
55524
  * @returns
55508
55525
  */
55509
- function injectFieldsForDisplayValue({ selectionSet }, parentNode, objectInfos) {
55526
+ function injectFieldsForDisplayValue(topNode, parentNode, objectInfos) {
55527
+ const { selectionSet } = topNode;
55510
55528
  if (selectionSet === undefined)
55511
55529
  return [];
55512
55530
  let displayValueNameFields = [];
@@ -55519,6 +55537,10 @@
55519
55537
  displayValue = node;
55520
55538
  break;
55521
55539
  }
55540
+ if (isInlineFragmentNode(node)) {
55541
+ const name = node.typeCondition !== undefined ? node.typeCondition.name : parentNode.name;
55542
+ displayValueNameFields = injectFieldsForDisplayValue(node, { ...parentNode, name }, objectInfos);
55543
+ }
55522
55544
  }
55523
55545
  if (displayValue !== undefined) {
55524
55546
  const apiName = parentNode.name.value;
@@ -55588,10 +55610,17 @@
55588
55610
  // example: TimeSheetId { value }
55589
55611
  relatedIdForChildRelationship.push(createFieldNode(injectedParentFieldName, FieldValueNodeSelectionSet));
55590
55612
  }
55613
+ displayValueNameFields.push(...injectFieldsForDisplayValue(parentNode, {
55614
+ ...parent,
55615
+ name: {
55616
+ ...parent.name,
55617
+ value: targetRelationship.childObjectApiName,
55618
+ },
55619
+ }, objectInfos));
55591
55620
  }
55592
55621
  }
55593
55622
  }
55594
- displayValueNameFields = injectFieldsForDisplayValue(parentNode, parent, objectInfos);
55623
+ displayValueNameFields.push(...injectFieldsForDisplayValue(parentNode, parent, objectInfos));
55595
55624
  }
55596
55625
  }
55597
55626
  return [
@@ -61038,13 +61067,13 @@
61038
61067
  // since none of the changed fields are part of the incoming record
61039
61068
  if (missingFields.every((field) => {
61040
61069
  const referenceFieldName = findReferenceFieldForSpanningField(field, objectInfo);
61041
- if (referenceFieldName !== undefined) {
61042
- return (incomingRecord.fields[referenceFieldName].value ===
61043
- existingRecord.fields[referenceFieldName].value);
61044
- }
61045
- else {
61070
+ if (referenceFieldName === undefined) {
61046
61071
  return false;
61047
61072
  }
61073
+ return (existingRecord.fields[referenceFieldName] &&
61074
+ incomingRecord.fields[referenceFieldName] &&
61075
+ incomingRecord.fields[referenceFieldName].value ===
61076
+ existingRecord.fields[referenceFieldName].value);
61048
61077
  })) {
61049
61078
  return {
61050
61079
  ok: true,
@@ -61921,6 +61950,9 @@
61921
61950
  optionalFields: value.fields.map((f) => `${_apiName}.${f}`),
61922
61951
  },
61923
61952
  ],
61953
+ }, {
61954
+ cachePolicy: { type: 'no-cache' },
61955
+ priority: 'background',
61924
61956
  }));
61925
61957
  });
61926
61958
  const promiseResults = await allSettled(promises);
@@ -62025,6 +62057,8 @@
62025
62057
  const durableEnv = makeDurable(gqlEnv, {
62026
62058
  durableStore: recordDenormingStore,
62027
62059
  enableDurableMetadataRefresh: ldsMetadataRefreshEnabled.isOpen({ fallback: false }),
62060
+ // disable luvio deep freeze in headless environments
62061
+ disableDeepFreeze: typeof window === 'undefined',
62028
62062
  });
62029
62063
  getIngestRecords = durableEnv.getIngestStagingStoreRecords;
62030
62064
  getIngestMetadata = durableEnv.getIngestStagingStoreMetadata;
@@ -62127,7 +62161,7 @@
62127
62161
  id: '@salesforce/lds-network-adapter',
62128
62162
  instrument: instrument$2,
62129
62163
  });
62130
- // version: 1.281.0-9a56a08f0
62164
+ // version: 1.282.0-f3e0ca0c7
62131
62165
 
62132
62166
  const { create: create$3, keys: keys$3 } = Object;
62133
62167
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -82137,7 +82171,7 @@
82137
82171
  configuration: { ...configurationForGraphQLAdapters$1 },
82138
82172
  instrument: instrument$1,
82139
82173
  });
82140
- // version: 1.281.0-bcef40769
82174
+ // version: 1.282.0-dd2e9831c
82141
82175
 
82142
82176
  // On core the unstable adapters are re-exported with different names,
82143
82177
  // we want to match them here.
@@ -84393,7 +84427,7 @@
84393
84427
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
84394
84428
  graphQLImperative = ldsAdapter;
84395
84429
  });
84396
- // version: 1.281.0-bcef40769
84430
+ // version: 1.282.0-dd2e9831c
84397
84431
 
84398
84432
  var gqlApi = /*#__PURE__*/Object.freeze({
84399
84433
  __proto__: null,
@@ -85105,7 +85139,7 @@
85105
85139
  function register(r) {
85106
85140
  callbacks$1.forEach((callback) => callback(r));
85107
85141
  }
85108
- // version: 1.281.0-9a56a08f0
85142
+ // version: 1.282.0-f3e0ca0c7
85109
85143
 
85110
85144
  /**
85111
85145
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -90038,4 +90072,4 @@
90038
90072
  exports.subscribeToAdapter = subscribeToAdapter;
90039
90073
 
90040
90074
  }));
90041
- // version: 1.281.0-9a56a08f0
90075
+ // version: 1.282.0-f3e0ca0c7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.281.0",
3
+ "version": "1.282.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -35,15 +35,15 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
38
- "@salesforce/lds-adapters-graphql": "^1.281.0",
39
- "@salesforce/lds-adapters-uiapi": "^1.281.0",
40
- "@salesforce/lds-default-luvio": "^1.281.0",
41
- "@salesforce/lds-drafts": "^1.281.0",
42
- "@salesforce/lds-graphql-parser": "^1.281.0",
43
- "@salesforce/lds-luvio-engine": "^1.281.0",
44
- "@salesforce/lds-priming": "^1.281.0",
45
- "@salesforce/lds-runtime-mobile": "^1.281.0",
46
- "@salesforce/nimbus-plugin-lds": "^1.281.0",
38
+ "@salesforce/lds-adapters-graphql": "^1.282.0",
39
+ "@salesforce/lds-adapters-uiapi": "^1.282.0",
40
+ "@salesforce/lds-default-luvio": "^1.282.0",
41
+ "@salesforce/lds-drafts": "^1.282.0",
42
+ "@salesforce/lds-graphql-parser": "^1.282.0",
43
+ "@salesforce/lds-luvio-engine": "^1.282.0",
44
+ "@salesforce/lds-priming": "^1.282.0",
45
+ "@salesforce/lds-runtime-mobile": "^1.282.0",
46
+ "@salesforce/nimbus-plugin-lds": "^1.282.0",
47
47
  "ajv": "^8.11.0",
48
48
  "glob": "^7.1.5",
49
49
  "nimbus-types": "^2.0.0-alpha1",