@salesforce/lds-worker-api 1.266.0-dev2 → 1.266.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.
@@ -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);
@@ -990,7 +998,7 @@
990
998
  // is already in L1 prior to ingestion
991
999
  stagingStore.readEntry = (key) => {
992
1000
  const entry = originalReadEntry(key);
993
- if (!entry) {
1001
+ if (entry === undefined) {
994
1002
  return upstreamStore.readEntry(key);
995
1003
  }
996
1004
  return entry;
@@ -2284,6 +2292,13 @@
2284
2292
  return value !== undefined && value !== null;
2285
2293
  }
2286
2294
 
2295
+ /**
2296
+ * Checks if the given variable is an object
2297
+ */
2298
+ function isObject$1(value) {
2299
+ return typeof value === 'object' && value !== null;
2300
+ }
2301
+
2287
2302
  var StoreLinkStateValues$2;
2288
2303
  (function (StoreLinkStateValues) {
2289
2304
  StoreLinkStateValues[StoreLinkStateValues["NotPresent"] = 0] = "NotPresent";
@@ -2434,6 +2449,7 @@
2434
2449
  variables: {},
2435
2450
  });
2436
2451
  }
2452
+ const readerOpaqueReferenceMap = new WeakMap();
2437
2453
  class Reader {
2438
2454
  constructor(store, variables, refresh, baseSnapshot, ttlStrategy) {
2439
2455
  this.store = store;
@@ -2898,7 +2914,12 @@
2898
2914
  }
2899
2915
  if (fragment.opaque) {
2900
2916
  this.checkIfChanged(result.value, { useDeepEquals: true });
2901
- const opaqueValue = this.opaqueCopy(result.value);
2917
+ if (isObject$1(result.value) && !readerOpaqueReferenceMap.has(result.value)) {
2918
+ readerOpaqueReferenceMap.set(result.value, this.opaqueCopy(result.value));
2919
+ }
2920
+ const opaqueValue = isObject$1(result.value)
2921
+ ? readerOpaqueReferenceMap.get(result.value)
2922
+ : result.value;
2902
2923
  return {
2903
2924
  state: FragmentReadResultState$1.Success,
2904
2925
  value: opaqueValue,
@@ -3741,10 +3762,13 @@
3741
3762
  }
3742
3763
  publishStoreMetadata(key, storeMetadataParams) {
3743
3764
  const { ttl, namespace, representationName, version } = storeMetadataParams;
3744
- const now = Date.now();
3765
+ let { ingestionTimestamp } = storeMetadataParams;
3766
+ if (ingestionTimestamp === undefined) {
3767
+ ingestionTimestamp = Date.now();
3768
+ }
3745
3769
  const storeMetadata = {
3746
- ingestionTimestamp: now,
3747
- expirationTimestamp: now + ttl,
3770
+ ingestionTimestamp: ingestionTimestamp,
3771
+ expirationTimestamp: ingestionTimestamp + ttl,
3748
3772
  representationName,
3749
3773
  namespace,
3750
3774
  version,
@@ -3971,6 +3995,7 @@
3971
3995
  namespace,
3972
3996
  version,
3973
3997
  representationName,
3998
+ ingestionTimestamp: timestamp,
3974
3999
  };
3975
4000
  luvio.publishStoreMetadata(key, storeMetadataParams);
3976
4001
  }
@@ -4018,7 +4043,7 @@
4018
4043
  }
4019
4044
  return resourceParams;
4020
4045
  }
4021
- // engine version: 0.154.6-a3a5150a
4046
+ // engine version: 0.154.7-dev8-fca5df34
4022
4047
 
4023
4048
  /**
4024
4049
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -4146,7 +4171,7 @@
4146
4171
  }
4147
4172
  callbacks.push(callback);
4148
4173
  }
4149
- // version: 1.266.0-dev2-7c2f3615f
4174
+ // version: 1.266.0-dev21-b2a247476
4150
4175
 
4151
4176
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4152
4177
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15654,7 +15679,7 @@
15654
15679
  }
15655
15680
  return superResult;
15656
15681
  }
15657
- // version: 1.266.0-dev2-7c2f3615f
15682
+ // version: 1.266.0-dev21-b2a247476
15658
15683
 
15659
15684
  function unwrap(data) {
15660
15685
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16579,7 +16604,7 @@
16579
16604
  const { apiFamily, name } = metadata;
16580
16605
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16581
16606
  }
16582
- // version: 1.266.0-dev2-7c2f3615f
16607
+ // version: 1.266.0-dev21-b2a247476
16583
16608
 
16584
16609
  /**
16585
16610
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16678,7 +16703,7 @@
16678
16703
  TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
16679
16704
  TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
16680
16705
  })(TypeCheckShapes || (TypeCheckShapes = {}));
16681
- // engine version: 0.154.6-a3a5150a
16706
+ // engine version: 0.154.7-dev8-fca5df34
16682
16707
 
16683
16708
  const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
16684
16709
 
@@ -17202,15 +17227,17 @@
17202
17227
  /**
17203
17228
  * Returns the field API name, qualified with an object name if possible.
17204
17229
  * @param value The value from which to get the qualified field API name.
17230
+ * @param onlyQualifiedFieldNames - Whether or not this function should skip fieldApiName that do not include the delimiter '.'
17205
17231
  * @return The qualified field API name.
17206
17232
  */
17207
- function getFieldApiName$2(value) {
17233
+ function getFieldApiName$2(value, onlyQualifiedFieldNames = false) {
17208
17234
  // Note: tightening validation logic changes behavior from userland getting
17209
17235
  // a server-provided error to the adapter noop'ing. In 224 we decided to not
17210
- // change the behavior.
17236
+ // change the behavior. In 250 we decided to add the 'onlyQualifiedFieldName' flag to tighten the logic
17237
+ // optionally to avoid issues with persisted invalid field names.
17211
17238
  if (isString$2(value)) {
17212
17239
  const trimmed = value.trim();
17213
- if (trimmed.length > 0) {
17240
+ if (trimmed.length > 0 && (onlyQualifiedFieldNames ? trimmed.indexOf('.') > -1 : true)) {
17214
17241
  return trimmed;
17215
17242
  }
17216
17243
  }
@@ -17223,15 +17250,19 @@
17223
17250
  /**
17224
17251
  * Returns the field API name.
17225
17252
  * @param value The value from which to get the field API name.
17253
+ * @param options Option bag. onlyQualifiedFieldNames is a boolean that allows this function to skip returning invalid FieldApiNames.
17226
17254
  * @returns The field API name.
17227
17255
  */
17228
- function getFieldApiNamesArray$2(value) {
17256
+ function getFieldApiNamesArray$2(value, options = { onlyQualifiedFieldNames: false }) {
17229
17257
  const valueArray = isArray$7(value) ? value : [value];
17230
17258
  const array = [];
17231
17259
  for (let i = 0, len = valueArray.length; i < len; i += 1) {
17232
17260
  const item = valueArray[i];
17233
- const apiName = getFieldApiName$2(item);
17261
+ const apiName = getFieldApiName$2(item, options.onlyQualifiedFieldNames);
17234
17262
  if (apiName === undefined) {
17263
+ if (options.onlyQualifiedFieldNames) {
17264
+ continue; // Just skips invalid field names rather than failing to return an array at all
17265
+ }
17235
17266
  return undefined;
17236
17267
  }
17237
17268
  push$4.call(array, apiName);
@@ -20806,6 +20837,7 @@
20806
20837
  representationName: RepresentationType$S,
20807
20838
  namespace: keyPrefix$2,
20808
20839
  version: VERSION$18$1,
20840
+ ingestionTimestamp: timestamp,
20809
20841
  });
20810
20842
  return createLink$3(key);
20811
20843
  };
@@ -21023,17 +21055,19 @@
21023
21055
  function buildNetworkSnapshot$13(luvio, config, serverRequestCount = 0, options) {
21024
21056
  const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
21025
21057
  return luvio.dispatchResourceRequest(request, options).then((response) => {
21058
+ // W-11964675 - Condition to dedupe a very specific set of requests for
21059
+ // Komaci - a batch record request with a single record followed by a single
21060
+ // record request. The fulfill logic sends the same network response, so
21061
+ // there is some TypeScript massaging to extract the RecordRepresentation
21062
+ //
21063
+ // W-14381091 - Ensure hoisting the response body happens prior to
21064
+ // calling `luvio.handleSuccessResponse`, since both arguments capture
21065
+ // the response.
21066
+ if (isSingleBatchRecordResponse(response.body)) {
21067
+ response.body = response.body.results[0]
21068
+ .result;
21069
+ }
21026
21070
  return luvio.handleSuccessResponse(() => {
21027
- // W-11964675 - Condition to dedupe a very specific set of requests for
21028
- // Komaci - a batch record request with a single record followed by a single
21029
- // record request. The fulfill logic sends the same network response, so
21030
- // there is some TypeScript massaging to extract the RecordRepresentation
21031
- if (isSingleBatchRecordResponse(response.body)) {
21032
- let recordResponse = response;
21033
- recordResponse.body = response.body.results[0]
21034
- .result;
21035
- return onResourceSuccess(luvio, config, key, allTrackedFields, recordResponse, serverRequestCount + 1);
21036
- }
21037
21071
  return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
21038
21072
  }, () => {
21039
21073
  const cache = new StoreKeyMap();
@@ -21996,6 +22030,7 @@
21996
22030
  namespace: "UiApi",
21997
22031
  version: VERSION$16$1,
21998
22032
  representationName: RepresentationType$R,
22033
+ ingestionTimestamp: timestamp,
21999
22034
  };
22000
22035
  luvio.publishStoreMetadata(key, storeMetadataParams);
22001
22036
  }
@@ -22965,6 +23000,7 @@
22965
23000
  namespace: "UiApi",
22966
23001
  version: VERSION$13$1,
22967
23002
  representationName: RepresentationType$O,
23003
+ ingestionTimestamp: timestamp,
22968
23004
  };
22969
23005
  luvio.publishStoreMetadata(key, storeMetadataParams);
22970
23006
  }
@@ -25289,7 +25325,7 @@
25289
25325
  // Temp fix until we can mimic the server behavior for non-layoutable entities.
25290
25326
  let layoutMap = {};
25291
25327
  if (hasOwnProperty$1.call(layouts, apiName)) {
25292
- layoutMap = layouts[apiName][recordTypeId];
25328
+ layoutMap = layouts[apiName][recordTypeId] || {};
25293
25329
  }
25294
25330
  return {
25295
25331
  layoutMap,
@@ -27583,7 +27619,10 @@
27583
27619
  if (existingRecord === undefined || equals$N(existingRecord, incomingRecord) === false) {
27584
27620
  luvio.storePublish(key, incomingRecord);
27585
27621
  }
27586
- luvio.publishStoreMetadata(key, QUICK_ACTION_DEFAULTS_STORE_METADATA_PARAMS);
27622
+ luvio.publishStoreMetadata(key, {
27623
+ ...QUICK_ACTION_DEFAULTS_STORE_METADATA_PARAMS,
27624
+ ingestionTimestamp: timestamp,
27625
+ });
27587
27626
  return createLink$3(key);
27588
27627
  };
27589
27628
  };
@@ -28048,7 +28087,7 @@
28048
28087
  buildCachedSnapshotCachePolicy$C, buildNetworkSnapshotCachePolicy$D);
28049
28088
  };
28050
28089
 
28051
- function validate$1e(obj, path = 'ActionRelatedListSingleBatchInputRepresentation') {
28090
+ function validate$1f(obj, path = 'ActionRelatedListSingleBatchInputRepresentation') {
28052
28091
  const v_error = (() => {
28053
28092
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
28054
28093
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -28459,7 +28498,7 @@
28459
28498
  const untrustedConfig_relatedListsActionParameters_array = [];
28460
28499
  for (let i = 0, arrayLength = untrustedConfig_relatedListsActionParameters.length; i < arrayLength; i++) {
28461
28500
  const untrustedConfig_relatedListsActionParameters_item = untrustedConfig_relatedListsActionParameters[i];
28462
- const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$1e(untrustedConfig_relatedListsActionParameters_item);
28501
+ const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$1f(untrustedConfig_relatedListsActionParameters_item);
28463
28502
  if (referenceActionRelatedListSingleBatchInputRepresentationValidationError === null) {
28464
28503
  untrustedConfig_relatedListsActionParameters_array.push(untrustedConfig_relatedListsActionParameters_item);
28465
28504
  }
@@ -30698,7 +30737,7 @@
30698
30737
  buildCachedSnapshotCachePolicy$t, buildNetworkSnapshotCachePolicy$u);
30699
30738
  };
30700
30739
 
30701
- function validate$14(obj, path = 'ListFilterByInfoInputRepresentation') {
30740
+ function validate$15(obj, path = 'ListFilterByInfoInputRepresentation') {
30702
30741
  const v_error = (() => {
30703
30742
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
30704
30743
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -30729,7 +30768,7 @@
30729
30768
  return v_error === undefined ? null : v_error;
30730
30769
  }
30731
30770
 
30732
- function validate$13(obj, path = 'ListScopeInputRepresentation') {
30771
+ function validate$14(obj, path = 'ListScopeInputRepresentation') {
30733
30772
  const v_error = (() => {
30734
30773
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
30735
30774
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -30853,7 +30892,7 @@
30853
30892
  const untrustedConfig_filteredByInfo_array = [];
30854
30893
  for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
30855
30894
  const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
30856
- const referenceListFilterByInfoInputRepresentationValidationError = validate$14(untrustedConfig_filteredByInfo_item);
30895
+ const referenceListFilterByInfoInputRepresentationValidationError = validate$15(untrustedConfig_filteredByInfo_item);
30857
30896
  if (referenceListFilterByInfoInputRepresentationValidationError === null) {
30858
30897
  untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
30859
30898
  }
@@ -30861,7 +30900,7 @@
30861
30900
  config.filteredByInfo = untrustedConfig_filteredByInfo_array;
30862
30901
  }
30863
30902
  const untrustedConfig_scope = untrustedConfig.scope;
30864
- const referenceListScopeInputRepresentationValidationError = validate$13(untrustedConfig_scope);
30903
+ const referenceListScopeInputRepresentationValidationError = validate$14(untrustedConfig_scope);
30865
30904
  if (referenceListScopeInputRepresentationValidationError === null) {
30866
30905
  config.scope = untrustedConfig_scope;
30867
30906
  }
@@ -31129,7 +31168,7 @@
31129
31168
  const untrustedConfig_filteredByInfo_array = [];
31130
31169
  for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
31131
31170
  const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
31132
- const referenceListFilterByInfoInputRepresentationValidationError = validate$14(untrustedConfig_filteredByInfo_item);
31171
+ const referenceListFilterByInfoInputRepresentationValidationError = validate$15(untrustedConfig_filteredByInfo_item);
31133
31172
  if (referenceListFilterByInfoInputRepresentationValidationError === null) {
31134
31173
  untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
31135
31174
  }
@@ -31137,7 +31176,7 @@
31137
31176
  config.filteredByInfo = untrustedConfig_filteredByInfo_array;
31138
31177
  }
31139
31178
  const untrustedConfig_scope = untrustedConfig.scope;
31140
- const referenceListScopeInputRepresentationValidationError = validate$13(untrustedConfig_scope);
31179
+ const referenceListScopeInputRepresentationValidationError = validate$14(untrustedConfig_scope);
31141
31180
  if (referenceListScopeInputRepresentationValidationError === null) {
31142
31181
  config.scope = untrustedConfig_scope;
31143
31182
  }
@@ -31888,7 +31927,7 @@
31888
31927
  buildCachedSnapshotCachePolicy$q, buildNetworkSnapshotCachePolicy$r);
31889
31928
  };
31890
31929
 
31891
- function validate$Y(obj, path = 'ListOrderedByInfoInputRepresentation') {
31930
+ function validate$Z(obj, path = 'ListOrderedByInfoInputRepresentation') {
31892
31931
  const v_error = (() => {
31893
31932
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
31894
31933
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -31991,7 +32030,7 @@
31991
32030
  const untrustedConfig_orderedBy_array = [];
31992
32031
  for (let i = 0, arrayLength = untrustedConfig_orderedBy.length; i < arrayLength; i++) {
31993
32032
  const untrustedConfig_orderedBy_item = untrustedConfig_orderedBy[i];
31994
- const referenceListOrderedByInfoInputRepresentationValidationError = validate$Y(untrustedConfig_orderedBy_item);
32033
+ const referenceListOrderedByInfoInputRepresentationValidationError = validate$Z(untrustedConfig_orderedBy_item);
31995
32034
  if (referenceListOrderedByInfoInputRepresentationValidationError === null) {
31996
32035
  untrustedConfig_orderedBy_array.push(untrustedConfig_orderedBy_item);
31997
32036
  }
@@ -36053,7 +36092,7 @@
36053
36092
  buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$e);
36054
36093
  };
36055
36094
 
36056
- function validate$y(obj, path = 'ListUserPreferenceInputRepresentation') {
36095
+ function validate$z(obj, path = 'ListUserPreferenceInputRepresentation') {
36057
36096
  const v_error = (() => {
36058
36097
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
36059
36098
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -36130,7 +36169,7 @@
36130
36169
  const untrustedConfig_orderedByInfo_array = [];
36131
36170
  for (let i = 0, arrayLength = untrustedConfig_orderedByInfo.length; i < arrayLength; i++) {
36132
36171
  const untrustedConfig_orderedByInfo_item = untrustedConfig_orderedByInfo[i];
36133
- const referenceListOrderedByInfoInputRepresentationValidationError = validate$Y(untrustedConfig_orderedByInfo_item);
36172
+ const referenceListOrderedByInfoInputRepresentationValidationError = validate$Z(untrustedConfig_orderedByInfo_item);
36134
36173
  if (referenceListOrderedByInfoInputRepresentationValidationError === null) {
36135
36174
  untrustedConfig_orderedByInfo_array.push(untrustedConfig_orderedByInfo_item);
36136
36175
  }
@@ -36138,7 +36177,7 @@
36138
36177
  config.orderedByInfo = untrustedConfig_orderedByInfo_array;
36139
36178
  }
36140
36179
  const untrustedConfig_userPreferences = untrustedConfig.userPreferences;
36141
- const referenceListUserPreferenceInputRepresentationValidationError = validate$y(untrustedConfig_userPreferences);
36180
+ const referenceListUserPreferenceInputRepresentationValidationError = validate$z(untrustedConfig_userPreferences);
36142
36181
  if (referenceListUserPreferenceInputRepresentationValidationError === null) {
36143
36182
  config.userPreferences = untrustedConfig_userPreferences;
36144
36183
  }
@@ -36793,7 +36832,7 @@
36793
36832
  const untrustedConfig_orderedBy_array = [];
36794
36833
  for (let i = 0, arrayLength = untrustedConfig_orderedBy.length; i < arrayLength; i++) {
36795
36834
  const untrustedConfig_orderedBy_item = untrustedConfig_orderedBy[i];
36796
- const referenceListOrderedByInfoInputRepresentationValidationError = validate$Y(untrustedConfig_orderedBy_item);
36835
+ const referenceListOrderedByInfoInputRepresentationValidationError = validate$Z(untrustedConfig_orderedBy_item);
36797
36836
  if (referenceListOrderedByInfoInputRepresentationValidationError === null) {
36798
36837
  untrustedConfig_orderedBy_array.push(untrustedConfig_orderedBy_item);
36799
36838
  }
@@ -36841,7 +36880,7 @@
36841
36880
  };
36842
36881
  };
36843
36882
 
36844
- function validate$w(obj, path = 'RelatedListRecordsSingleBatchInputRepresentation') {
36883
+ function validate$x(obj, path = 'RelatedListRecordsSingleBatchInputRepresentation') {
36845
36884
  const v_error = (() => {
36846
36885
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
36847
36886
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -37389,6 +37428,7 @@
37389
37428
  namespace: "UiApi",
37390
37429
  version: VERSION$c$1,
37391
37430
  representationName: RepresentationType$d,
37431
+ ingestionTimestamp: timestamp,
37392
37432
  };
37393
37433
  luvio.publishStoreMetadata(key, storeMetadataParams);
37394
37434
  }
@@ -37794,7 +37834,7 @@
37794
37834
  const untrustedConfig_relatedListParameters_array = [];
37795
37835
  for (let i = 0, arrayLength = untrustedConfig_relatedListParameters.length; i < arrayLength; i++) {
37796
37836
  const untrustedConfig_relatedListParameters_item = untrustedConfig_relatedListParameters[i];
37797
- const referenceRelatedListRecordsSingleBatchInputRepresentationValidationError = validate$w(untrustedConfig_relatedListParameters_item);
37837
+ const referenceRelatedListRecordsSingleBatchInputRepresentationValidationError = validate$x(untrustedConfig_relatedListParameters_item);
37798
37838
  if (referenceRelatedListRecordsSingleBatchInputRepresentationValidationError === null) {
37799
37839
  untrustedConfig_relatedListParameters_array.push(untrustedConfig_relatedListParameters_item);
37800
37840
  }
@@ -38588,7 +38628,7 @@
38588
38628
  buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$7);
38589
38629
  };
38590
38630
 
38591
- function validate$l(obj, path = 'SearchDataCategoryInputRepresentation') {
38631
+ function validate$m(obj, path = 'SearchDataCategoryInputRepresentation') {
38592
38632
  const v_error = (() => {
38593
38633
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
38594
38634
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -38619,7 +38659,7 @@
38619
38659
  return v_error === undefined ? null : v_error;
38620
38660
  }
38621
38661
 
38622
- function validate$k(obj, path = 'SearchFilterInputRepresentation') {
38662
+ function validate$l(obj, path = 'SearchFilterInputRepresentation') {
38623
38663
  const v_error = (() => {
38624
38664
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
38625
38665
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -38688,7 +38728,7 @@
38688
38728
  return v_error === undefined ? null : v_error;
38689
38729
  }
38690
38730
 
38691
- function validate$j(obj, path = 'SearchObjectOptionsRepresentation') {
38731
+ function validate$k(obj, path = 'SearchObjectOptionsRepresentation') {
38692
38732
  const v_error = (() => {
38693
38733
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
38694
38734
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -38701,7 +38741,7 @@
38701
38741
  for (let i = 0; i < obj_dataCategories.length; i++) {
38702
38742
  const obj_dataCategories_item = obj_dataCategories[i];
38703
38743
  const path_dataCategories_item = path_dataCategories + '[' + i + ']';
38704
- const referencepath_dataCategories_itemValidationError = validate$l(obj_dataCategories_item, path_dataCategories_item);
38744
+ const referencepath_dataCategories_itemValidationError = validate$m(obj_dataCategories_item, path_dataCategories_item);
38705
38745
  if (referencepath_dataCategories_itemValidationError !== null) {
38706
38746
  let message = 'Object doesn\'t match SearchDataCategoryInputRepresentation (at "' + path_dataCategories_item + '")\n';
38707
38747
  message += referencepath_dataCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -38716,7 +38756,7 @@
38716
38756
  for (let i = 0; i < obj_filters.length; i++) {
38717
38757
  const obj_filters_item = obj_filters[i];
38718
38758
  const path_filters_item = path_filters + '[' + i + ']';
38719
- const referencepath_filters_itemValidationError = validate$k(obj_filters_item, path_filters_item);
38759
+ const referencepath_filters_itemValidationError = validate$l(obj_filters_item, path_filters_item);
38720
38760
  if (referencepath_filters_itemValidationError !== null) {
38721
38761
  let message = 'Object doesn\'t match SearchFilterInputRepresentation (at "' + path_filters_item + '")\n';
38722
38762
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -38847,7 +38887,7 @@
38847
38887
  for (let i = 0, arrayLength = untrustedConfig_searchObjectOptions_keys.length; i < arrayLength; i++) {
38848
38888
  const key = untrustedConfig_searchObjectOptions_keys[i];
38849
38889
  const untrustedConfig_searchObjectOptions_prop = untrustedConfig_searchObjectOptions[key];
38850
- const referenceSearchObjectOptionsRepresentationValidationError = validate$j(untrustedConfig_searchObjectOptions_prop);
38890
+ const referenceSearchObjectOptionsRepresentationValidationError = validate$k(untrustedConfig_searchObjectOptions_prop);
38851
38891
  if (referenceSearchObjectOptionsRepresentationValidationError === null) {
38852
38892
  if (untrustedConfig_searchObjectOptions_object !== undefined) {
38853
38893
  untrustedConfig_searchObjectOptions_object[key] = untrustedConfig_searchObjectOptions_prop;
@@ -39050,7 +39090,7 @@
39050
39090
  const untrustedConfig_filters_array = [];
39051
39091
  for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
39052
39092
  const untrustedConfig_filters_item = untrustedConfig_filters[i];
39053
- const referenceSearchFilterInputRepresentationValidationError = validate$k(untrustedConfig_filters_item);
39093
+ const referenceSearchFilterInputRepresentationValidationError = validate$l(untrustedConfig_filters_item);
39054
39094
  if (referenceSearchFilterInputRepresentationValidationError === null) {
39055
39095
  untrustedConfig_filters_array.push(untrustedConfig_filters_item);
39056
39096
  }
@@ -43147,7 +43187,7 @@
43147
43187
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
43148
43188
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
43149
43189
  });
43150
- // version: 1.266.0-dev2-e69d357fb
43190
+ // version: 1.266.0-dev21-7d5715511
43151
43191
 
43152
43192
  var ldsIdempotencyWriteDisabled = {
43153
43193
  isOpen: function (e) {
@@ -44285,7 +44325,9 @@
44285
44325
  * @param durableStore A DurableStore implementation
44286
44326
  * @param instrumentation An instrumentation function implementation
44287
44327
  */
44288
- function makeDurable(environment, { durableStore, instrumentation, useRevivingStore, enableDurableMetadataRefresh = false, }) {
44328
+ function makeDurable(environment, { durableStore, instrumentation, useRevivingStore, enableDurableMetadataRefresh = false, disableDeepFreeze = false, }) {
44329
+ // runtimes can choose to disable deepFreeze, e.g. headless mobile runtime
44330
+ setBypassDeepFreeze(disableDeepFreeze);
44289
44331
  let stagingStore = null;
44290
44332
  const durableTTLStore = new DurableTTLStore(durableStore);
44291
44333
  const mergeKeysPromiseMap = new Map();
@@ -44656,6 +44698,10 @@
44656
44698
  }
44657
44699
  return {};
44658
44700
  };
44701
+ const getIngestStagingStore = function () {
44702
+ validateNotDisposed();
44703
+ return stagingStore === null || stagingStore === void 0 ? void 0 : stagingStore.fallbackStringKeyInMemoryStore;
44704
+ };
44659
44705
  const handleSuccessResponse = async function (ingestAndBroadcastFunc, getResponseCacheKeysFunc) {
44660
44706
  validateNotDisposed();
44661
44707
  const cacheKeyMap = getResponseCacheKeysFunc();
@@ -44848,6 +44894,7 @@
44848
44894
  applyCachePolicy: { value: applyCachePolicy },
44849
44895
  getIngestStagingStoreRecords: { value: getIngestStagingStoreRecords },
44850
44896
  getIngestStagingStoreMetadata: { value: getIngestStagingStoreMetadata },
44897
+ getIngestStagingStore: { value: getIngestStagingStore },
44851
44898
  handleSuccessResponse: { value: handleSuccessResponse },
44852
44899
  handleErrorResponse: { value: handleErrorResponse },
44853
44900
  getNotifyChangeStoreEntries: { value: getNotifyChangeStoreEntries },
@@ -47645,9 +47692,10 @@
47645
47692
  // If there is no metadata for this query or it somehow lacks a timestamp
47646
47693
  // skip setting the root timestamp
47647
47694
  if (queryMetadata !== undefined && queryMetadata.ingestionTimestamp !== undefined) {
47648
- // adjust the timestamp to account for ingestion processing time
47649
- // 30s is used because this is the default record TTL
47650
- input.rootTimestamp = queryMetadata.ingestionTimestamp - 30000;
47695
+ const timestamp = Number(queryMetadata.ingestionTimestamp);
47696
+ if (!isNaN(timestamp)) {
47697
+ input.rootTimestamp = timestamp;
47698
+ }
47651
47699
  }
47652
47700
  }
47653
47701
  return recordQuery(selection, alias, apiName, [], input);
@@ -49113,7 +49161,12 @@
49113
49161
  }
49114
49162
  finally {
49115
49163
  this.replacingAction = undefined;
49116
- await this.startQueueSafe();
49164
+ try {
49165
+ await this.startQueueSafe();
49166
+ }
49167
+ catch (_a) {
49168
+ // An error starting the queue should not bubble up from this method
49169
+ }
49117
49170
  }
49118
49171
  return updatedTarget;
49119
49172
  });
@@ -51262,6 +51315,9 @@
51262
51315
  else if (field.apiName === 'weakEtag') {
51263
51316
  leftPath = '$.weakEtag';
51264
51317
  }
51318
+ else if (field.apiName === 'RecordTypeId') {
51319
+ leftPath = '$.recordTypeId';
51320
+ }
51265
51321
  return {
51266
51322
  alias,
51267
51323
  leftPath,
@@ -52298,6 +52354,20 @@
52298
52354
  return values$2(objectInfo.fields).find((field) => field.apiName === fieldName ||
52299
52355
  (field.dataType === 'Reference' && field.relationshipName === fieldName));
52300
52356
  }
52357
+ async function readIngestionTimestampForKey(key, query) {
52358
+ let ingestionTimestamp = 0;
52359
+ const sql = `SELECT json_extract(metadata, '${JSON_EXTRACT_PATH_INGESTION_TIMESTAMP}') FROM lds_data WHERE key IS ?`;
52360
+ const results = await query(sql, [key]);
52361
+ const [timestamp] = results.rows.map((row) => row[0]);
52362
+ if (timestamp !== null) {
52363
+ const numericalTimestamp = Number(timestamp);
52364
+ if (isNaN(numericalTimestamp)) {
52365
+ return ingestionTimestamp;
52366
+ }
52367
+ ingestionTimestamp = numericalTimestamp;
52368
+ }
52369
+ return ingestionTimestamp;
52370
+ }
52301
52371
 
52302
52372
  function findSpanningField(name) {
52303
52373
  return (field) => {
@@ -52622,6 +52692,12 @@
52622
52692
  break;
52623
52693
  case 'LastModifiedDate':
52624
52694
  field.resolve = ({ recordRepresentation: record }) => {
52695
+ // In UIAPI record reps, LastModifiedDate might be present as a field,
52696
+ // which will include both the value and displayValue
52697
+ if (record.fields['LastModifiedDate']) {
52698
+ return record.fields['LastModifiedDate'];
52699
+ }
52700
+ // If the field is not present, just return the value of the root property
52625
52701
  return record.lastModifiedDate
52626
52702
  ? { value: record.lastModifiedDate }
52627
52703
  : null;
@@ -52656,16 +52732,26 @@
52656
52732
  : null;
52657
52733
  };
52658
52734
  const { recordRepresentation: record, ingestionTimestamp } = obj;
52659
- const fieldName = field.name.endsWith('__r')
52660
- ? field.name.replace('__r', '__c')
52661
- : field.name;
52662
- const id = (record.fields[fieldName] && record.fields[fieldName].value) ||
52663
- (record.fields[`${fieldName}Id`] &&
52664
- record.fields[`${fieldName}Id`].value);
52665
- if (!id)
52735
+ let id = undefined;
52736
+ if (field.name === 'RecordType') {
52737
+ // RecordTypeId has special handling during ingest and is
52738
+ // not in record.fields, so check for it at the UIAPI root property location
52739
+ id = record.recordTypeId;
52740
+ }
52741
+ else if (field.name.endsWith('__r')) {
52742
+ // Custom relationships end in `__r` and the corresponding ID field should be `__c`
52743
+ let fieldName = field.name.replace('__r', '__c');
52744
+ id = record.fields[fieldName] && record.fields[fieldName].value;
52745
+ }
52746
+ else {
52747
+ // Standard relationships are just FieldNameId
52748
+ let fieldName = field.name + 'Id';
52749
+ id = record.fields[fieldName] && record.fields[fieldName].value;
52750
+ }
52751
+ if (!id || typeof id !== 'string') {
52752
+ // possibly field injection did not inject the necessary Id field
52753
+ // for the relationship, or we found a non-string value.
52666
52754
  return null;
52667
- if (id['__ref'] !== undefined) {
52668
- return fetchRecordOrNull(record.fields[`${field.name}Id`].value);
52669
52755
  }
52670
52756
  seenRecordIds.add(id);
52671
52757
  return fetchRecordOrNull(id);
@@ -52817,18 +52903,7 @@
52817
52903
  const key = buildKeyStringForRecordQuery(operation,
52818
52904
  // join varables passed from query to the argument variables given from the AST
52819
52905
  { ...variableValues, ...args }, info.fieldNodes[0].arguments, apiName);
52820
- const sql = `
52821
- SELECT json_extract(metadata, '${JSON_EXTRACT_PATH_INGESTION_TIMESTAMP}')
52822
- FROM lds_data
52823
- WHERE key IS ?
52824
- `;
52825
- const results = await query(sql, [key]);
52826
- const [timestamp] = results.rows.map((row) => row[0]);
52827
- if (timestamp !== null && typeof timestamp === 'number') {
52828
- // adjust the timestamp to account for ingestion processing time
52829
- // 30s is used because this is the default record TTL
52830
- ingestionTimestamp = timestamp - 30000;
52831
- }
52906
+ return readIngestionTimestampForKey(key, query);
52832
52907
  }
52833
52908
  return ingestionTimestamp;
52834
52909
  }
@@ -54895,7 +54970,7 @@
54895
54970
  function createjsonOutput(selections, jsonInput, jsonOutput) {
54896
54971
  const keys$1 = keys$4(jsonInput);
54897
54972
  selections.filter(isFieldNode).forEach((subSelection) => {
54898
- const fieldName = subSelection.name.value;
54973
+ const fieldName = subSelection.alias ? subSelection.alias.value : subSelection.name.value;
54899
54974
  if (keys$1.includes(fieldName)) {
54900
54975
  if (isArray$2$1(jsonInput[fieldName])) {
54901
54976
  jsonOutput[fieldName] = [];
@@ -55615,13 +55690,21 @@
55615
55690
  draftFields[DEFAULT_FIELD_LAST_MODIFIED_DATE] = { value: timestampString, displayValue: null };
55616
55691
  draftFields[DEFAULT_FIELD_OWNER_ID] = { value: userId, displayValue: null };
55617
55692
  draftFields[DEFAULT_FIELD_ID] = { value: recordId, displayValue: null };
55618
- if (objectInfo !== undefined) {
55619
- const allObjectFields = keys$3$1(objectInfo.fields);
55620
- allObjectFields.forEach((fieldName) => {
55621
- if (draftFields[fieldName] === undefined) {
55622
- draftFields[fieldName] = { value: null, displayValue: null };
55623
- }
55624
- });
55693
+ const allObjectFields = keys$3$1(objectInfo.fields);
55694
+ allObjectFields.forEach((fieldName) => {
55695
+ if (draftFields[fieldName] === undefined) {
55696
+ draftFields[fieldName] = { value: null, displayValue: null };
55697
+ }
55698
+ });
55699
+ // TODO [W-14915806]: lightning-record-form injects the `IsPersonAccount`
55700
+ // field for all `Account` and `PersonAccount` records. However, not all
55701
+ // orgs use person accounts, and if that field is not present in the object
55702
+ // info then it is not synthesized. We force it to be synthesized here to
55703
+ // ensure lightning-record-form will work correctly with draft-created
55704
+ // accounts.
55705
+ if ((apiName === 'Account' || apiName === 'PersonAccount') &&
55706
+ draftFields['IsPersonAccount'] === undefined) {
55707
+ draftFields['IsPersonAccount'] = { value: null, displayValue: null };
55625
55708
  }
55626
55709
  return {
55627
55710
  id: recordId,
@@ -56208,10 +56291,13 @@
56208
56291
  * Transforms a record for storage in the durable store. The transformation involves denormalizing
56209
56292
  * scalar fields and persisting link metadata to transform back into a normalized representation
56210
56293
  *
56294
+ * If the record contains pending fields this will return undefined as pending records do not get persisted
56295
+ * to the durable store. There should be a refresh operation outbound that will bring in the updated record.
56296
+ *
56211
56297
  * @param normalizedRecord Record containing normalized field links
56212
56298
  * @param recordStore a store containing referenced record fields
56213
56299
  */
56214
- function buildDurableRecordRepresentation(normalizedRecord, records, pendingEntries) {
56300
+ function buildDurableRecordRepresentation(normalizedRecord, records, pendingEntries, store) {
56215
56301
  const fields = normalizedRecord.fields;
56216
56302
  const filteredFields = {};
56217
56303
  const links = {};
@@ -56222,7 +56308,9 @@
56222
56308
  // pending fields get filtered out of the durable store
56223
56309
  const { pending } = field;
56224
56310
  if (pending === true) {
56225
- continue;
56311
+ // do not write records with pending fields to the durable store
56312
+ // there should be a refresh operation outbound that will bring in the updated record
56313
+ return undefined;
56226
56314
  }
56227
56315
  const { __ref } = field;
56228
56316
  if (__ref !== undefined) {
@@ -56238,6 +56326,19 @@
56238
56326
  if (ref !== undefined) {
56239
56327
  filteredFields[fieldName] = ref;
56240
56328
  }
56329
+ else {
56330
+ // if we have a store to read, try to find the field there too
56331
+ // The durable ingest staging store may pass through to L1, and
56332
+ // not all fields are necessarily published every time, so it is
56333
+ // important to check L1 and not just the fields being published,
56334
+ // otherwise we risk truncating the fields on the record.
56335
+ if (store) {
56336
+ ref = store.readEntry(__ref);
56337
+ if (ref !== undefined) {
56338
+ filteredFields[fieldName] = ref;
56339
+ }
56340
+ }
56341
+ }
56241
56342
  }
56242
56343
  // we want to preserve fields that are missing nodes
56243
56344
  if (filteredFields[fieldName] !== undefined || field.isMissing === true) {
@@ -56259,7 +56360,7 @@
56259
56360
  }
56260
56361
  return keyBuilder$20(luvio, { recordId });
56261
56362
  }
56262
- function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecords, getStoreMetadata) {
56363
+ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecords, getStoreMetadata, getStore) {
56263
56364
  const getEntries = function (entries, segment) {
56264
56365
  // this HOF only inspects records in the default segment
56265
56366
  if (segment !== DefaultDurableSegment) {
@@ -56327,6 +56428,7 @@
56327
56428
  const putRecordViews = {};
56328
56429
  const storeRecords = getStoreRecords !== undefined ? getStoreRecords() : {};
56329
56430
  const storeMetadata = getStoreMetadata !== undefined ? getStoreMetadata() : {};
56431
+ const store = getStore();
56330
56432
  for (let i = 0, len = keys$1.length; i < len; i++) {
56331
56433
  const key = keys$1[i];
56332
56434
  let value = entries[key];
@@ -56373,11 +56475,13 @@
56373
56475
  metadataVersion: DURABLE_METADATA_VERSION,
56374
56476
  };
56375
56477
  }
56376
- const denormalizedRecord = buildDurableRecordRepresentation(record, storeRecords, recordEntries);
56377
- putEntries[recordKey] = {
56378
- data: denormalizedRecord,
56379
- metadata,
56380
- };
56478
+ const denormalizedRecord = buildDurableRecordRepresentation(record, storeRecords, recordEntries, store);
56479
+ if (denormalizedRecord !== undefined) {
56480
+ putEntries[recordKey] = {
56481
+ data: denormalizedRecord,
56482
+ metadata,
56483
+ };
56484
+ }
56381
56485
  }
56382
56486
  else {
56383
56487
  putEntries[key] = value;
@@ -59871,6 +59975,7 @@
59871
59975
  function buildFieldUnionArray(existingRecord, incomingRecord, objectInfo) {
59872
59976
  const allFields = Array.from(new Set([...Object.keys(existingRecord.fields), ...Object.keys(incomingRecord.fields)]));
59873
59977
  const fieldUnion = [];
59978
+ let includesSpanningFields = false;
59874
59979
  allFields.forEach((fieldName) => {
59875
59980
  const objectInfoField = objectInfo.fields[fieldName];
59876
59981
  if (objectInfoField === undefined) {
@@ -59878,13 +59983,14 @@
59878
59983
  const referenceField = findReferenceFieldForSpanningField(fieldName, objectInfo);
59879
59984
  if (referenceField !== undefined) {
59880
59985
  fieldUnion.push(`${fieldName}.Id`);
59986
+ includesSpanningFields = true;
59881
59987
  }
59882
59988
  }
59883
59989
  else {
59884
59990
  fieldUnion.push(fieldName);
59885
59991
  }
59886
59992
  });
59887
- return fieldUnion;
59993
+ return { fields: fieldUnion, includesSpanningFields };
59888
59994
  }
59889
59995
  /**
59890
59996
  * Merges (if possible) an incoming record from a priming session with an existing record in the durable store.
@@ -59916,7 +60022,7 @@
59916
60022
  ok: false,
59917
60023
  code: 'conflict-drafts',
59918
60024
  hasDraft: true,
59919
- fieldUnion: buildFieldUnionArray(existingRecord, incomingRecord, objectInfo),
60025
+ fieldUnion: buildFieldUnionArray(existingRecord, incomingRecord, objectInfo).fields,
59920
60026
  };
59921
60027
  }
59922
60028
  // Check if incoming record's Etag is equal to the existing one
@@ -59978,10 +60084,19 @@
59978
60084
  };
59979
60085
  }
59980
60086
  // If Etags do not match and the incoming record does not contain all fields, re-request the record
60087
+ const { fields, includesSpanningFields } = buildFieldUnionArray(existingRecord, incomingRecord, objectInfo);
60088
+ if (includesSpanningFields) {
60089
+ return {
60090
+ ok: false,
60091
+ code: 'conflict-spanning-record',
60092
+ fieldUnion: fields,
60093
+ hasDraft: false,
60094
+ };
60095
+ }
59981
60096
  return {
59982
60097
  ok: false,
59983
60098
  code: 'conflict-missing-fields',
59984
- fieldUnion: buildFieldUnionArray(existingRecord, incomingRecord, objectInfo),
60099
+ fieldUnion: fields,
59985
60100
  hasDraft: false,
59986
60101
  };
59987
60102
  }
@@ -60905,30 +61020,36 @@
60905
61020
  const internalAdapterStore = new InMemoryStore();
60906
61021
  let getIngestRecordsForInternalAdapters;
60907
61022
  let getIngestMetadataForInternalAdapters;
61023
+ let getIngestStoreInternal;
60908
61024
  const internalAdapterDurableStore = makeRecordDenormalizingDurableStore(lazyLuvio, lazyBaseDurableStore, () => getIngestRecordsForInternalAdapters !== undefined
60909
61025
  ? getIngestRecordsForInternalAdapters()
60910
61026
  : {}, () => getIngestMetadataForInternalAdapters !== undefined
60911
61027
  ? getIngestMetadataForInternalAdapters()
60912
- : {});
61028
+ : {}, () => (getIngestStoreInternal !== undefined ? getIngestStoreInternal() : undefined));
60913
61029
  const { adapters: { getObjectInfo, getObjectInfos, getRecord, getObjectInfoDirectory }, durableEnvironment: internalAdapterDurableEnvironment, luvio: internalLuvio, } = buildInternalAdapters(internalAdapterStore, lazyNetworkAdapter, internalAdapterDurableStore, (apiName, objectInfo) => lazyObjectInfoService.ensureObjectInfoCached(apiName, objectInfo));
60914
61030
  lazyInternalLuvio = internalLuvio;
60915
61031
  getIngestRecordsForInternalAdapters =
60916
61032
  internalAdapterDurableEnvironment.getIngestStagingStoreRecords;
60917
61033
  getIngestMetadataForInternalAdapters =
60918
61034
  internalAdapterDurableEnvironment.getIngestStagingStoreRecords;
61035
+ getIngestStoreInternal = internalAdapterDurableEnvironment.getIngestStagingStore;
60919
61036
  lazyObjectInfoService = new ObjectInfoService(getObjectInfo, getObjectInfos, getObjectInfoDirectory, lazyBaseDurableStore);
60920
61037
  // creates a durable store that denormalizes scalar fields for records
60921
61038
  let getIngestRecords;
60922
61039
  let getIngestMetadata;
60923
- const recordDenormingStore = makeRecordDenormalizingDurableStore(lazyLuvio, lazyBaseDurableStore, () => (getIngestRecords !== undefined ? getIngestRecords() : {}), () => (getIngestMetadata !== undefined ? getIngestMetadata() : {}));
61040
+ let getIngestStore;
61041
+ const recordDenormingStore = makeRecordDenormalizingDurableStore(lazyLuvio, lazyBaseDurableStore, () => (getIngestRecords !== undefined ? getIngestRecords() : {}), () => (getIngestMetadata !== undefined ? getIngestMetadata() : {}), () => (getIngestStore !== undefined ? getIngestStore() : undefined));
60924
61042
  const baseEnv = new Environment(store, lazyNetworkAdapter);
60925
61043
  const gqlEnv = makeEnvironmentGraphqlAware(baseEnv);
60926
61044
  const durableEnv = makeDurable(gqlEnv, {
60927
61045
  durableStore: recordDenormingStore,
60928
61046
  enableDurableMetadataRefresh: ldsMetadataRefreshEnabled.isOpen({ fallback: false }),
61047
+ // disable luvio deep freeze in headless environments
61048
+ disableDeepFreeze: typeof window === 'undefined',
60929
61049
  });
60930
61050
  getIngestRecords = durableEnv.getIngestStagingStoreRecords;
60931
61051
  getIngestMetadata = durableEnv.getIngestStagingStoreMetadata;
61052
+ getIngestStore = durableEnv.getIngestStagingStore;
60932
61053
  // draft queue
60933
61054
  lazyDraftQueue = buildLdsDraftQueue(recordDenormingStore);
60934
61055
  const draftService = new UiApiDraftRecordService(lazyDraftQueue, () => lazyLuvio, recordDenormingStore, getObjectInfo, newRecordId, userId, formatDisplayValue);
@@ -61025,7 +61146,7 @@
61025
61146
  id: '@salesforce/lds-network-adapter',
61026
61147
  instrument: instrument$2,
61027
61148
  });
61028
- // version: 1.266.0-dev2-7c2f3615f
61149
+ // version: 1.266.0-dev21-b2a247476
61029
61150
 
61030
61151
  const { create: create$3, keys: keys$3 } = Object;
61031
61152
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -61802,7 +61923,7 @@
61802
61923
  };
61803
61924
  }
61804
61925
  function ingest$13(astNode, state) {
61805
- const { path, data, luvio } = state;
61926
+ const { path, data, timestamp, luvio } = state;
61806
61927
  const key = keyBuilder$16(luvio, path);
61807
61928
  return ingestNonCursorConnectionType(astNode, state, {
61808
61929
  key,
@@ -61816,7 +61937,8 @@
61816
61937
  ttl: TTL$1,
61817
61938
  namespace: keyPrefix$1,
61818
61939
  representationName: "DoubleValue",
61819
- version: VERSION$1c
61940
+ version: VERSION$1c,
61941
+ ingestionTimestamp: timestamp,
61820
61942
  },
61821
61943
  });
61822
61944
  }
@@ -61944,7 +62066,7 @@
61944
62066
  };
61945
62067
  }
61946
62068
  function ingest$12(astNode, state) {
61947
- const { path, data, luvio } = state;
62069
+ const { path, data, timestamp, luvio } = state;
61948
62070
  const key = keyBuilder$15(luvio, path);
61949
62071
  return ingestNonCursorConnectionType(astNode, state, {
61950
62072
  key,
@@ -61958,7 +62080,8 @@
61958
62080
  ttl: TTL$1,
61959
62081
  namespace: keyPrefix$1,
61960
62082
  representationName: "LongValue",
61961
- version: VERSION$1b
62083
+ version: VERSION$1b,
62084
+ ingestionTimestamp: timestamp,
61962
62085
  },
61963
62086
  });
61964
62087
  }
@@ -62086,7 +62209,7 @@
62086
62209
  };
62087
62210
  }
62088
62211
  function ingest$11(astNode, state) {
62089
- const { path, data, luvio } = state;
62212
+ const { path, data, timestamp, luvio } = state;
62090
62213
  const key = keyBuilder$14(luvio, path);
62091
62214
  return ingestNonCursorConnectionType(astNode, state, {
62092
62215
  key,
@@ -62100,7 +62223,8 @@
62100
62223
  ttl: TTL$1,
62101
62224
  namespace: keyPrefix$1,
62102
62225
  representationName: "PercentValue",
62103
- version: VERSION$1a
62226
+ version: VERSION$1a,
62227
+ ingestionTimestamp: timestamp,
62104
62228
  },
62105
62229
  });
62106
62230
  }
@@ -62228,7 +62352,7 @@
62228
62352
  };
62229
62353
  }
62230
62354
  function ingest$10(astNode, state) {
62231
- const { path, data, luvio } = state;
62355
+ const { path, data, timestamp, luvio } = state;
62232
62356
  const key = keyBuilder$13(luvio, path);
62233
62357
  return ingestNonCursorConnectionType(astNode, state, {
62234
62358
  key,
@@ -62242,7 +62366,8 @@
62242
62366
  ttl: TTL$1,
62243
62367
  namespace: keyPrefix$1,
62244
62368
  representationName: "PercentAggregate",
62245
- version: VERSION$19
62369
+ version: VERSION$19,
62370
+ ingestionTimestamp: timestamp,
62246
62371
  },
62247
62372
  });
62248
62373
  }
@@ -62490,7 +62615,7 @@
62490
62615
  };
62491
62616
  }
62492
62617
  function ingest$$(astNode, state) {
62493
- const { path, data, luvio } = state;
62618
+ const { path, data, timestamp, luvio } = state;
62494
62619
  const key = keyBuilder$12(luvio, path);
62495
62620
  return ingestNonCursorConnectionType(astNode, state, {
62496
62621
  key,
@@ -62504,7 +62629,8 @@
62504
62629
  ttl: TTL$1,
62505
62630
  namespace: keyPrefix$1,
62506
62631
  representationName: "IntValue",
62507
- version: VERSION$18
62632
+ version: VERSION$18,
62633
+ ingestionTimestamp: timestamp,
62508
62634
  },
62509
62635
  });
62510
62636
  }
@@ -62632,7 +62758,7 @@
62632
62758
  };
62633
62759
  }
62634
62760
  function ingest$_(astNode, state) {
62635
- const { path, data, luvio } = state;
62761
+ const { path, data, timestamp, luvio } = state;
62636
62762
  const key = keyBuilder$11(luvio, path);
62637
62763
  return ingestNonCursorConnectionType(astNode, state, {
62638
62764
  key,
@@ -62646,7 +62772,8 @@
62646
62772
  ttl: TTL$1,
62647
62773
  namespace: keyPrefix$1,
62648
62774
  representationName: "StringValue",
62649
- version: VERSION$17
62775
+ version: VERSION$17,
62776
+ ingestionTimestamp: timestamp,
62650
62777
  },
62651
62778
  });
62652
62779
  }
@@ -62765,7 +62892,7 @@
62765
62892
  };
62766
62893
  }
62767
62894
  function ingest$Z(astNode, state) {
62768
- const { path, data, luvio } = state;
62895
+ const { path, data, timestamp, luvio } = state;
62769
62896
  const key = keyBuilder$10(luvio, path);
62770
62897
  return ingestNonCursorConnectionType(astNode, state, {
62771
62898
  key,
@@ -62779,7 +62906,8 @@
62779
62906
  ttl: TTL$1,
62780
62907
  namespace: keyPrefix$1,
62781
62908
  representationName: "StringAggregate",
62782
- version: VERSION$16
62909
+ version: VERSION$16,
62910
+ ingestionTimestamp: timestamp,
62783
62911
  },
62784
62912
  });
62785
62913
  }
@@ -63007,7 +63135,7 @@
63007
63135
  };
63008
63136
  }
63009
63137
  function ingest$Y(astNode, state) {
63010
- const { path, data, luvio } = state;
63138
+ const { path, data, timestamp, luvio } = state;
63011
63139
  const key = keyBuilder$$(luvio, path);
63012
63140
  return ingestNonCursorConnectionType(astNode, state, {
63013
63141
  key,
@@ -63021,7 +63149,8 @@
63021
63149
  ttl: TTL$1,
63022
63150
  namespace: keyPrefix$1,
63023
63151
  representationName: "IDValue",
63024
- version: VERSION$15
63152
+ version: VERSION$15,
63153
+ ingestionTimestamp: timestamp,
63025
63154
  },
63026
63155
  });
63027
63156
  }
@@ -63143,7 +63272,7 @@
63143
63272
  };
63144
63273
  }
63145
63274
  function ingest$X(astNode, state) {
63146
- const { path, data, luvio } = state;
63275
+ const { path, data, timestamp, luvio } = state;
63147
63276
  const key = keyBuilder$_(luvio, path);
63148
63277
  return ingestNonCursorConnectionType(astNode, state, {
63149
63278
  key,
@@ -63157,7 +63286,8 @@
63157
63286
  ttl: TTL$1,
63158
63287
  namespace: keyPrefix$1,
63159
63288
  representationName: "DateTimeValue",
63160
- version: VERSION$14
63289
+ version: VERSION$14,
63290
+ ingestionTimestamp: timestamp,
63161
63291
  },
63162
63292
  });
63163
63293
  }
@@ -63285,7 +63415,7 @@
63285
63415
  };
63286
63416
  }
63287
63417
  function ingest$W(astNode, state) {
63288
- const { path, data, luvio } = state;
63418
+ const { path, data, timestamp, luvio } = state;
63289
63419
  const key = keyBuilder$Z(luvio, path);
63290
63420
  return ingestNonCursorConnectionType(astNode, state, {
63291
63421
  key,
@@ -63299,7 +63429,8 @@
63299
63429
  ttl: TTL$1,
63300
63430
  namespace: keyPrefix$1,
63301
63431
  representationName: "BooleanValue",
63302
- version: VERSION$13
63432
+ version: VERSION$13,
63433
+ ingestionTimestamp: timestamp,
63303
63434
  },
63304
63435
  });
63305
63436
  }
@@ -63421,7 +63552,7 @@
63421
63552
  };
63422
63553
  }
63423
63554
  function ingest$V(astNode, state) {
63424
- const { path, data, luvio } = state;
63555
+ const { path, data, timestamp, luvio } = state;
63425
63556
  const key = keyBuilder$Y(luvio, path);
63426
63557
  return ingestNonCursorConnectionType(astNode, state, {
63427
63558
  key,
@@ -63435,7 +63566,8 @@
63435
63566
  ttl: TTL$1,
63436
63567
  namespace: keyPrefix$1,
63437
63568
  representationName: "TimeValue",
63438
- version: VERSION$12
63569
+ version: VERSION$12,
63570
+ ingestionTimestamp: timestamp,
63439
63571
  },
63440
63572
  });
63441
63573
  }
@@ -63563,7 +63695,7 @@
63563
63695
  };
63564
63696
  }
63565
63697
  function ingest$U(astNode, state) {
63566
- const { path, data, luvio } = state;
63698
+ const { path, data, timestamp, luvio } = state;
63567
63699
  const key = keyBuilder$X(luvio, path);
63568
63700
  return ingestNonCursorConnectionType(astNode, state, {
63569
63701
  key,
@@ -63577,7 +63709,8 @@
63577
63709
  ttl: TTL$1,
63578
63710
  namespace: keyPrefix$1,
63579
63711
  representationName: "DateValue",
63580
- version: VERSION$11
63712
+ version: VERSION$11,
63713
+ ingestionTimestamp: timestamp,
63581
63714
  },
63582
63715
  });
63583
63716
  }
@@ -63705,7 +63838,7 @@
63705
63838
  };
63706
63839
  }
63707
63840
  function ingest$T(astNode, state) {
63708
- const { path, data, luvio } = state;
63841
+ const { path, data, timestamp, luvio } = state;
63709
63842
  const key = keyBuilder$W(luvio, path);
63710
63843
  return ingestNonCursorConnectionType(astNode, state, {
63711
63844
  key,
@@ -63719,7 +63852,8 @@
63719
63852
  ttl: TTL$1,
63720
63853
  namespace: keyPrefix$1,
63721
63854
  representationName: "TextAreaValue",
63722
- version: VERSION$10
63855
+ version: VERSION$10,
63856
+ ingestionTimestamp: timestamp,
63723
63857
  },
63724
63858
  });
63725
63859
  }
@@ -63841,7 +63975,7 @@
63841
63975
  };
63842
63976
  }
63843
63977
  function ingest$S(astNode, state) {
63844
- const { path, data, luvio } = state;
63978
+ const { path, data, timestamp, luvio } = state;
63845
63979
  const key = keyBuilder$V(luvio, path);
63846
63980
  return ingestNonCursorConnectionType(astNode, state, {
63847
63981
  key,
@@ -63855,7 +63989,8 @@
63855
63989
  ttl: TTL$1,
63856
63990
  namespace: keyPrefix$1,
63857
63991
  representationName: "LongTextAreaValue",
63858
- version: VERSION$$
63992
+ version: VERSION$$,
63993
+ ingestionTimestamp: timestamp,
63859
63994
  },
63860
63995
  });
63861
63996
  }
@@ -63977,7 +64112,7 @@
63977
64112
  };
63978
64113
  }
63979
64114
  function ingest$R(astNode, state) {
63980
- const { path, data, luvio } = state;
64115
+ const { path, data, timestamp, luvio } = state;
63981
64116
  const key = keyBuilder$U(luvio, path);
63982
64117
  return ingestNonCursorConnectionType(astNode, state, {
63983
64118
  key,
@@ -63991,7 +64126,8 @@
63991
64126
  ttl: TTL$1,
63992
64127
  namespace: keyPrefix$1,
63993
64128
  representationName: "RichTextAreaValue",
63994
- version: VERSION$_
64129
+ version: VERSION$_,
64130
+ ingestionTimestamp: timestamp,
63995
64131
  },
63996
64132
  });
63997
64133
  }
@@ -64113,7 +64249,7 @@
64113
64249
  };
64114
64250
  }
64115
64251
  function ingest$Q(astNode, state) {
64116
- const { path, data, luvio } = state;
64252
+ const { path, data, timestamp, luvio } = state;
64117
64253
  const key = keyBuilder$T(luvio, path);
64118
64254
  return ingestNonCursorConnectionType(astNode, state, {
64119
64255
  key,
@@ -64127,7 +64263,8 @@
64127
64263
  ttl: TTL$1,
64128
64264
  namespace: keyPrefix$1,
64129
64265
  representationName: "PhoneNumberValue",
64130
- version: VERSION$Z
64266
+ version: VERSION$Z,
64267
+ ingestionTimestamp: timestamp,
64131
64268
  },
64132
64269
  });
64133
64270
  }
@@ -64249,7 +64386,7 @@
64249
64386
  };
64250
64387
  }
64251
64388
  function ingest$P(astNode, state) {
64252
- const { path, data, luvio } = state;
64389
+ const { path, data, timestamp, luvio } = state;
64253
64390
  const key = keyBuilder$S(luvio, path);
64254
64391
  return ingestNonCursorConnectionType(astNode, state, {
64255
64392
  key,
@@ -64263,7 +64400,8 @@
64263
64400
  ttl: TTL$1,
64264
64401
  namespace: keyPrefix$1,
64265
64402
  representationName: "EmailValue",
64266
- version: VERSION$Y
64403
+ version: VERSION$Y,
64404
+ ingestionTimestamp: timestamp,
64267
64405
  },
64268
64406
  });
64269
64407
  }
@@ -64385,7 +64523,7 @@
64385
64523
  };
64386
64524
  }
64387
64525
  function ingest$O(astNode, state) {
64388
- const { path, data, luvio } = state;
64526
+ const { path, data, timestamp, luvio } = state;
64389
64527
  const key = keyBuilder$R(luvio, path);
64390
64528
  return ingestNonCursorConnectionType(astNode, state, {
64391
64529
  key,
@@ -64399,7 +64537,8 @@
64399
64537
  ttl: TTL$1,
64400
64538
  namespace: keyPrefix$1,
64401
64539
  representationName: "UrlValue",
64402
- version: VERSION$X
64540
+ version: VERSION$X,
64541
+ ingestionTimestamp: timestamp,
64403
64542
  },
64404
64543
  });
64405
64544
  }
@@ -64521,7 +64660,7 @@
64521
64660
  };
64522
64661
  }
64523
64662
  function ingest$N(astNode, state) {
64524
- const { path, data, luvio } = state;
64663
+ const { path, data, timestamp, luvio } = state;
64525
64664
  const key = keyBuilder$Q(luvio, path);
64526
64665
  return ingestNonCursorConnectionType(astNode, state, {
64527
64666
  key,
@@ -64535,7 +64674,8 @@
64535
64674
  ttl: TTL$1,
64536
64675
  namespace: keyPrefix$1,
64537
64676
  representationName: "EncryptedStringValue",
64538
- version: VERSION$W
64677
+ version: VERSION$W,
64678
+ ingestionTimestamp: timestamp,
64539
64679
  },
64540
64680
  });
64541
64681
  }
@@ -64657,7 +64797,7 @@
64657
64797
  };
64658
64798
  }
64659
64799
  function ingest$M(astNode, state) {
64660
- const { path, data, luvio } = state;
64800
+ const { path, data, timestamp, luvio } = state;
64661
64801
  const key = keyBuilder$P(luvio, path);
64662
64802
  return ingestNonCursorConnectionType(astNode, state, {
64663
64803
  key,
@@ -64671,7 +64811,8 @@
64671
64811
  ttl: TTL$1,
64672
64812
  namespace: keyPrefix$1,
64673
64813
  representationName: "CurrencyValue",
64674
- version: VERSION$V
64814
+ version: VERSION$V,
64815
+ ingestionTimestamp: timestamp,
64675
64816
  },
64676
64817
  });
64677
64818
  }
@@ -64799,7 +64940,7 @@
64799
64940
  };
64800
64941
  }
64801
64942
  function ingest$L(astNode, state) {
64802
- const { path, data, luvio } = state;
64943
+ const { path, data, timestamp, luvio } = state;
64803
64944
  const key = keyBuilder$O(luvio, path);
64804
64945
  return ingestNonCursorConnectionType(astNode, state, {
64805
64946
  key,
@@ -64813,7 +64954,8 @@
64813
64954
  ttl: TTL$1,
64814
64955
  namespace: keyPrefix$1,
64815
64956
  representationName: "LongitudeValue",
64816
- version: VERSION$U
64957
+ version: VERSION$U,
64958
+ ingestionTimestamp: timestamp,
64817
64959
  },
64818
64960
  });
64819
64961
  }
@@ -64935,7 +65077,7 @@
64935
65077
  };
64936
65078
  }
64937
65079
  function ingest$K(astNode, state) {
64938
- const { path, data, luvio } = state;
65080
+ const { path, data, timestamp, luvio } = state;
64939
65081
  const key = keyBuilder$N(luvio, path);
64940
65082
  return ingestNonCursorConnectionType(astNode, state, {
64941
65083
  key,
@@ -64949,7 +65091,8 @@
64949
65091
  ttl: TTL$1,
64950
65092
  namespace: keyPrefix$1,
64951
65093
  representationName: "LatitudeValue",
64952
- version: VERSION$T
65094
+ version: VERSION$T,
65095
+ ingestionTimestamp: timestamp,
64953
65096
  },
64954
65097
  });
64955
65098
  }
@@ -65071,7 +65214,7 @@
65071
65214
  };
65072
65215
  }
65073
65216
  function ingest$J(astNode, state) {
65074
- const { path, data, luvio } = state;
65217
+ const { path, data, timestamp, luvio } = state;
65075
65218
  const key = keyBuilder$M(luvio, path);
65076
65219
  return ingestNonCursorConnectionType(astNode, state, {
65077
65220
  key,
@@ -65085,7 +65228,8 @@
65085
65228
  ttl: TTL$1,
65086
65229
  namespace: keyPrefix$1,
65087
65230
  representationName: "PicklistValue",
65088
- version: VERSION$S
65231
+ version: VERSION$S,
65232
+ ingestionTimestamp: timestamp,
65089
65233
  },
65090
65234
  });
65091
65235
  }
@@ -65213,7 +65357,7 @@
65213
65357
  };
65214
65358
  }
65215
65359
  function ingest$I(astNode, state) {
65216
- const { path, data, luvio } = state;
65360
+ const { path, data, timestamp, luvio } = state;
65217
65361
  const key = keyBuilder$L(luvio, path);
65218
65362
  return ingestNonCursorConnectionType(astNode, state, {
65219
65363
  key,
@@ -65227,7 +65371,8 @@
65227
65371
  ttl: TTL$1,
65228
65372
  namespace: keyPrefix$1,
65229
65373
  representationName: "MultiPicklistValue",
65230
- version: VERSION$R
65374
+ version: VERSION$R,
65375
+ ingestionTimestamp: timestamp,
65231
65376
  },
65232
65377
  });
65233
65378
  }
@@ -65355,7 +65500,7 @@
65355
65500
  };
65356
65501
  }
65357
65502
  function ingest$H(astNode, state) {
65358
- const { path, data, luvio } = state;
65503
+ const { path, data, timestamp, luvio } = state;
65359
65504
  const key = keyBuilder$K(luvio, path);
65360
65505
  return ingestNonCursorConnectionType(astNode, state, {
65361
65506
  key,
@@ -65369,7 +65514,8 @@
65369
65514
  ttl: TTL$1,
65370
65515
  namespace: keyPrefix$1,
65371
65516
  representationName: "Base64Value",
65372
- version: VERSION$Q
65517
+ version: VERSION$Q,
65518
+ ingestionTimestamp: timestamp,
65373
65519
  },
65374
65520
  });
65375
65521
  }
@@ -65491,7 +65637,7 @@
65491
65637
  };
65492
65638
  }
65493
65639
  function ingest$G(astNode, state) {
65494
- const { path, data, luvio } = state;
65640
+ const { path, data, timestamp, luvio } = state;
65495
65641
  const key = keyBuilder$J(luvio, path);
65496
65642
  return ingestNonCursorConnectionType(astNode, state, {
65497
65643
  key,
@@ -65505,7 +65651,8 @@
65505
65651
  ttl: TTL$1,
65506
65652
  namespace: keyPrefix$1,
65507
65653
  representationName: "JSONValue",
65508
- version: VERSION$P
65654
+ version: VERSION$P,
65655
+ ingestionTimestamp: timestamp,
65509
65656
  },
65510
65657
  });
65511
65658
  }
@@ -66103,7 +66250,7 @@
66103
66250
  };
66104
66251
  }
66105
66252
  function ingest$E(astNode, state) {
66106
- const { path, data, luvio } = state;
66253
+ const { path, data, timestamp, luvio } = state;
66107
66254
  const key = keyBuilder$H(luvio, path);
66108
66255
  return ingestNonCursorConnectionType(astNode, state, {
66109
66256
  key,
@@ -66117,7 +66264,8 @@
66117
66264
  ttl: TTL$1,
66118
66265
  namespace: keyPrefix$1,
66119
66266
  representationName: "CompoundField",
66120
- version: VERSION$L
66267
+ version: VERSION$L,
66268
+ ingestionTimestamp: timestamp,
66121
66269
  },
66122
66270
  });
66123
66271
  }
@@ -67103,7 +67251,7 @@
67103
67251
  };
67104
67252
  }
67105
67253
  function ingest$D(astNode, state) {
67106
- const { path, data, luvio } = state;
67254
+ const { path, data, timestamp, luvio } = state;
67107
67255
  const key = keyBuilder$G(luvio, path);
67108
67256
  return ingestNonCursorConnectionType(astNode, state, {
67109
67257
  key,
@@ -67117,7 +67265,8 @@
67117
67265
  ttl: TTL$1,
67118
67266
  namespace: keyPrefix$1,
67119
67267
  representationName: "PageInfo",
67120
- version: VERSION$K
67268
+ version: VERSION$K,
67269
+ ingestionTimestamp: timestamp,
67121
67270
  },
67122
67271
  });
67123
67272
  }
@@ -67319,7 +67468,7 @@
67319
67468
  };
67320
67469
  }
67321
67470
  function ingest$C(astNode, state) {
67322
- const { path, data, luvio } = state;
67471
+ const { path, data, timestamp, luvio } = state;
67323
67472
  const key = keyBuilder$F(luvio, path, data);
67324
67473
  return ingestNonCursorConnectionType(astNode, state, {
67325
67474
  key,
@@ -67336,7 +67485,8 @@
67336
67485
  ttl: TTL$1,
67337
67486
  namespace: keyPrefix$1,
67338
67487
  representationName: "RecordRepresentation",
67339
- version: VERSION$J
67488
+ version: VERSION$J,
67489
+ ingestionTimestamp: timestamp,
67340
67490
  },
67341
67491
  });
67342
67492
  }
@@ -67858,7 +68008,7 @@
67858
68008
  };
67859
68009
  }
67860
68010
  function ingest$B(astNode, state) {
67861
- const { path, data, luvio } = state;
68011
+ const { path, data, timestamp, luvio } = state;
67862
68012
  const key = keyBuilder$E(luvio, path);
67863
68013
  return ingestNonCursorConnectionType(astNode, state, {
67864
68014
  key,
@@ -67872,7 +68022,8 @@
67872
68022
  ttl: TTL$1,
67873
68023
  namespace: keyPrefix$1,
67874
68024
  representationName: "RecordEdge",
67875
- version: VERSION$I
68025
+ version: VERSION$I,
68026
+ ingestionTimestamp: timestamp,
67876
68027
  },
67877
68028
  });
67878
68029
  }
@@ -68077,7 +68228,7 @@
68077
68228
  }
68078
68229
  }
68079
68230
  function ingest$A(astNode, state) {
68080
- const { path, data, luvio } = state;
68231
+ const { path, data, timestamp, luvio } = state;
68081
68232
  const key = keyBuilder$D(luvio, path);
68082
68233
  return ingestCursorConnectionType(astNode, state, {
68083
68234
  key,
@@ -68093,7 +68244,8 @@
68093
68244
  ttl: TTL$4,
68094
68245
  namespace: keyPrefix$1,
68095
68246
  representationName: "RecordConnection",
68096
- version: VERSION$H
68247
+ version: VERSION$H,
68248
+ ingestionTimestamp: timestamp,
68097
68249
  },
68098
68250
  });
68099
68251
  }
@@ -68262,7 +68414,7 @@
68262
68414
  };
68263
68415
  }
68264
68416
  function ingest$z(astNode, state) {
68265
- const { path, data, luvio } = state;
68417
+ const { path, data, timestamp, luvio } = state;
68266
68418
  const key = keyBuilder$C(luvio, path);
68267
68419
  return ingestNonCursorConnectionType(astNode, state, {
68268
68420
  key,
@@ -68276,7 +68428,8 @@
68276
68428
  ttl: TTL$1,
68277
68429
  namespace: keyPrefix$1,
68278
68430
  representationName: "RecordQuery",
68279
- version: VERSION$G
68431
+ version: VERSION$G,
68432
+ ingestionTimestamp: timestamp,
68280
68433
  },
68281
68434
  });
68282
68435
  }
@@ -68406,7 +68559,7 @@
68406
68559
  };
68407
68560
  }
68408
68561
  function ingest$y(astNode, state) {
68409
- const { path, data, luvio } = state;
68562
+ const { path, data, timestamp, luvio } = state;
68410
68563
  const key = keyBuilder$B(luvio, path);
68411
68564
  return ingestNonCursorConnectionType(astNode, state, {
68412
68565
  key,
@@ -68420,7 +68573,8 @@
68420
68573
  ttl: TTL$1,
68421
68574
  namespace: keyPrefix$1,
68422
68575
  representationName: "BooleanAggregate",
68423
- version: VERSION$F
68576
+ version: VERSION$F,
68577
+ ingestionTimestamp: timestamp,
68424
68578
  },
68425
68579
  });
68426
68580
  }
@@ -68589,7 +68743,7 @@
68589
68743
  };
68590
68744
  }
68591
68745
  function ingest$x(astNode, state) {
68592
- const { path, data, luvio } = state;
68746
+ const { path, data, timestamp, luvio } = state;
68593
68747
  const key = keyBuilder$A(luvio, path);
68594
68748
  return ingestNonCursorConnectionType(astNode, state, {
68595
68749
  key,
@@ -68603,7 +68757,8 @@
68603
68757
  ttl: TTL$1,
68604
68758
  namespace: keyPrefix$1,
68605
68759
  representationName: "CurrencyAggregate",
68606
- version: VERSION$E
68760
+ version: VERSION$E,
68761
+ ingestionTimestamp: timestamp,
68607
68762
  },
68608
68763
  });
68609
68764
  }
@@ -68851,7 +69006,7 @@
68851
69006
  };
68852
69007
  }
68853
69008
  function ingest$w(astNode, state) {
68854
- const { path, data, luvio } = state;
69009
+ const { path, data, timestamp, luvio } = state;
68855
69010
  const key = keyBuilder$z(luvio, path);
68856
69011
  return ingestNonCursorConnectionType(astNode, state, {
68857
69012
  key,
@@ -68865,7 +69020,8 @@
68865
69020
  ttl: TTL$1,
68866
69021
  namespace: keyPrefix$1,
68867
69022
  representationName: "DateFunctionAggregation",
68868
- version: VERSION$D
69023
+ version: VERSION$D,
69024
+ ingestionTimestamp: timestamp,
68869
69025
  },
68870
69026
  });
68871
69027
  }
@@ -68999,7 +69155,7 @@
68999
69155
  };
69000
69156
  }
69001
69157
  function ingest$v(astNode, state) {
69002
- const { path, data, luvio } = state;
69158
+ const { path, data, timestamp, luvio } = state;
69003
69159
  const key = keyBuilder$y(luvio, path);
69004
69160
  return ingestNonCursorConnectionType(astNode, state, {
69005
69161
  key,
@@ -69013,7 +69169,8 @@
69013
69169
  ttl: TTL$1,
69014
69170
  namespace: keyPrefix$1,
69015
69171
  representationName: "DateAggregate",
69016
- version: VERSION$C
69172
+ version: VERSION$C,
69173
+ ingestionTimestamp: timestamp,
69017
69174
  },
69018
69175
  });
69019
69176
  }
@@ -69380,7 +69537,7 @@
69380
69537
  };
69381
69538
  }
69382
69539
  function ingest$u(astNode, state) {
69383
- const { path, data, luvio } = state;
69540
+ const { path, data, timestamp, luvio } = state;
69384
69541
  const key = keyBuilder$x(luvio, path);
69385
69542
  return ingestNonCursorConnectionType(astNode, state, {
69386
69543
  key,
@@ -69394,7 +69551,8 @@
69394
69551
  ttl: TTL$1,
69395
69552
  namespace: keyPrefix$1,
69396
69553
  representationName: "DoubleAggregate",
69397
- version: VERSION$B
69554
+ version: VERSION$B,
69555
+ ingestionTimestamp: timestamp,
69398
69556
  },
69399
69557
  });
69400
69558
  }
@@ -69633,7 +69791,7 @@
69633
69791
  };
69634
69792
  }
69635
69793
  function ingest$t(astNode, state) {
69636
- const { path, data, luvio } = state;
69794
+ const { path, data, timestamp, luvio } = state;
69637
69795
  const key = keyBuilder$w(luvio, path);
69638
69796
  return ingestNonCursorConnectionType(astNode, state, {
69639
69797
  key,
@@ -69647,7 +69805,8 @@
69647
69805
  ttl: TTL$1,
69648
69806
  namespace: keyPrefix$1,
69649
69807
  representationName: "EmailAggregate",
69650
- version: VERSION$A
69808
+ version: VERSION$A,
69809
+ ingestionTimestamp: timestamp,
69651
69810
  },
69652
69811
  });
69653
69812
  }
@@ -69878,7 +70037,7 @@
69878
70037
  };
69879
70038
  }
69880
70039
  function ingest$s(astNode, state) {
69881
- const { path, data, luvio } = state;
70040
+ const { path, data, timestamp, luvio } = state;
69882
70041
  const key = keyBuilder$v(luvio, path);
69883
70042
  return ingestNonCursorConnectionType(astNode, state, {
69884
70043
  key,
@@ -69892,7 +70051,8 @@
69892
70051
  ttl: TTL$1,
69893
70052
  namespace: keyPrefix$1,
69894
70053
  representationName: "IDAggregate",
69895
- version: VERSION$z
70054
+ version: VERSION$z,
70055
+ ingestionTimestamp: timestamp,
69896
70056
  },
69897
70057
  });
69898
70058
  }
@@ -70123,7 +70283,7 @@
70123
70283
  };
70124
70284
  }
70125
70285
  function ingest$r(astNode, state) {
70126
- const { path, data, luvio } = state;
70286
+ const { path, data, timestamp, luvio } = state;
70127
70287
  const key = keyBuilder$u(luvio, path);
70128
70288
  return ingestNonCursorConnectionType(astNode, state, {
70129
70289
  key,
@@ -70137,7 +70297,8 @@
70137
70297
  ttl: TTL$1,
70138
70298
  namespace: keyPrefix$1,
70139
70299
  representationName: "IntAggregate",
70140
- version: VERSION$y
70300
+ version: VERSION$y,
70301
+ ingestionTimestamp: timestamp,
70141
70302
  },
70142
70303
  });
70143
70304
  }
@@ -70396,7 +70557,7 @@
70396
70557
  };
70397
70558
  }
70398
70559
  function ingest$q(astNode, state) {
70399
- const { path, data, luvio } = state;
70560
+ const { path, data, timestamp, luvio } = state;
70400
70561
  const key = keyBuilder$t(luvio, path);
70401
70562
  return ingestNonCursorConnectionType(astNode, state, {
70402
70563
  key,
@@ -70410,7 +70571,8 @@
70410
70571
  ttl: TTL$1,
70411
70572
  namespace: keyPrefix$1,
70412
70573
  representationName: "LatitudeAggregate",
70413
- version: VERSION$x
70574
+ version: VERSION$x,
70575
+ ingestionTimestamp: timestamp,
70414
70576
  },
70415
70577
  });
70416
70578
  }
@@ -70652,7 +70814,7 @@
70652
70814
  };
70653
70815
  }
70654
70816
  function ingest$p(astNode, state) {
70655
- const { path, data, luvio } = state;
70817
+ const { path, data, timestamp, luvio } = state;
70656
70818
  const key = keyBuilder$s(luvio, path);
70657
70819
  return ingestNonCursorConnectionType(astNode, state, {
70658
70820
  key,
@@ -70666,7 +70828,8 @@
70666
70828
  ttl: TTL$1,
70667
70829
  namespace: keyPrefix$1,
70668
70830
  representationName: "LongitudeAggregate",
70669
- version: VERSION$w
70831
+ version: VERSION$w,
70832
+ ingestionTimestamp: timestamp,
70670
70833
  },
70671
70834
  });
70672
70835
  }
@@ -70908,7 +71071,7 @@
70908
71071
  };
70909
71072
  }
70910
71073
  function ingest$o(astNode, state) {
70911
- const { path, data, luvio } = state;
71074
+ const { path, data, timestamp, luvio } = state;
70912
71075
  const key = keyBuilder$r(luvio, path);
70913
71076
  return ingestNonCursorConnectionType(astNode, state, {
70914
71077
  key,
@@ -70922,7 +71085,8 @@
70922
71085
  ttl: TTL$1,
70923
71086
  namespace: keyPrefix$1,
70924
71087
  representationName: "LongAggregate",
70925
- version: VERSION$v
71088
+ version: VERSION$v,
71089
+ ingestionTimestamp: timestamp,
70926
71090
  },
70927
71091
  });
70928
71092
  }
@@ -71181,7 +71345,7 @@
71181
71345
  };
71182
71346
  }
71183
71347
  function ingest$n(astNode, state) {
71184
- const { path, data, luvio } = state;
71348
+ const { path, data, timestamp, luvio } = state;
71185
71349
  const key = keyBuilder$q(luvio, path);
71186
71350
  return ingestNonCursorConnectionType(astNode, state, {
71187
71351
  key,
@@ -71195,7 +71359,8 @@
71195
71359
  ttl: TTL$1,
71196
71360
  namespace: keyPrefix$1,
71197
71361
  representationName: "PhoneNumberAggregate",
71198
- version: VERSION$u
71362
+ version: VERSION$u,
71363
+ ingestionTimestamp: timestamp,
71199
71364
  },
71200
71365
  });
71201
71366
  }
@@ -71426,7 +71591,7 @@
71426
71591
  };
71427
71592
  }
71428
71593
  function ingest$m(astNode, state) {
71429
- const { path, data, luvio } = state;
71594
+ const { path, data, timestamp, luvio } = state;
71430
71595
  const key = keyBuilder$p(luvio, path);
71431
71596
  return ingestNonCursorConnectionType(astNode, state, {
71432
71597
  key,
@@ -71440,7 +71605,8 @@
71440
71605
  ttl: TTL$1,
71441
71606
  namespace: keyPrefix$1,
71442
71607
  representationName: "PicklistAggregate",
71443
- version: VERSION$t
71608
+ version: VERSION$t,
71609
+ ingestionTimestamp: timestamp,
71444
71610
  },
71445
71611
  });
71446
71612
  }
@@ -71677,7 +71843,7 @@
71677
71843
  };
71678
71844
  }
71679
71845
  function ingest$l(astNode, state) {
71680
- const { path, data, luvio } = state;
71846
+ const { path, data, timestamp, luvio } = state;
71681
71847
  const key = keyBuilder$o(luvio, path);
71682
71848
  return ingestNonCursorConnectionType(astNode, state, {
71683
71849
  key,
@@ -71691,7 +71857,8 @@
71691
71857
  ttl: TTL$1,
71692
71858
  namespace: keyPrefix$1,
71693
71859
  representationName: "TextAreaAggregate",
71694
- version: VERSION$s
71860
+ version: VERSION$s,
71861
+ ingestionTimestamp: timestamp,
71695
71862
  },
71696
71863
  });
71697
71864
  }
@@ -71922,7 +72089,7 @@
71922
72089
  };
71923
72090
  }
71924
72091
  function ingest$k(astNode, state) {
71925
- const { path, data, luvio } = state;
72092
+ const { path, data, timestamp, luvio } = state;
71926
72093
  const key = keyBuilder$n(luvio, path);
71927
72094
  return ingestNonCursorConnectionType(astNode, state, {
71928
72095
  key,
@@ -71936,7 +72103,8 @@
71936
72103
  ttl: TTL$1,
71937
72104
  namespace: keyPrefix$1,
71938
72105
  representationName: "TimeAggregate",
71939
- version: VERSION$r
72106
+ version: VERSION$r,
72107
+ ingestionTimestamp: timestamp,
71940
72108
  },
71941
72109
  });
71942
72110
  }
@@ -72111,7 +72279,7 @@
72111
72279
  };
72112
72280
  }
72113
72281
  function ingest$j(astNode, state) {
72114
- const { path, data, luvio } = state;
72282
+ const { path, data, timestamp, luvio } = state;
72115
72283
  const key = keyBuilder$m(luvio, path);
72116
72284
  return ingestNonCursorConnectionType(astNode, state, {
72117
72285
  key,
@@ -72125,7 +72293,8 @@
72125
72293
  ttl: TTL$1,
72126
72294
  namespace: keyPrefix$1,
72127
72295
  representationName: "UrlAggregate",
72128
- version: VERSION$q
72296
+ version: VERSION$q,
72297
+ ingestionTimestamp: timestamp,
72129
72298
  },
72130
72299
  });
72131
72300
  }
@@ -72479,7 +72648,7 @@
72479
72648
  };
72480
72649
  }
72481
72650
  function ingest$i(astNode, state) {
72482
- const { path, data, luvio } = state;
72651
+ const { path, data, timestamp, luvio } = state;
72483
72652
  const key = keyBuilder$l(luvio, path);
72484
72653
  return ingestNonCursorConnectionType(astNode, state, {
72485
72654
  key,
@@ -72493,7 +72662,8 @@
72493
72662
  ttl: TTL$1,
72494
72663
  namespace: keyPrefix$1,
72495
72664
  representationName: "RecordAggregate",
72496
- version: VERSION$p
72665
+ version: VERSION$p,
72666
+ ingestionTimestamp: timestamp,
72497
72667
  },
72498
72668
  });
72499
72669
  }
@@ -72847,7 +73017,7 @@
72847
73017
  };
72848
73018
  }
72849
73019
  function ingest$h(astNode, state) {
72850
- const { path, data, luvio } = state;
73020
+ const { path, data, timestamp, luvio } = state;
72851
73021
  const key = keyBuilder$k(luvio, path);
72852
73022
  return ingestNonCursorConnectionType(astNode, state, {
72853
73023
  key,
@@ -72861,7 +73031,8 @@
72861
73031
  ttl: TTL$1,
72862
73032
  namespace: keyPrefix$1,
72863
73033
  representationName: "RecordResult",
72864
- version: VERSION$o
73034
+ version: VERSION$o,
73035
+ ingestionTimestamp: timestamp,
72865
73036
  },
72866
73037
  });
72867
73038
  }
@@ -73009,7 +73180,7 @@
73009
73180
  };
73010
73181
  }
73011
73182
  function ingest$g(astNode, state) {
73012
- const { path, data, luvio } = state;
73183
+ const { path, data, timestamp, luvio } = state;
73013
73184
  const key = keyBuilder$j(luvio, path);
73014
73185
  return ingestNonCursorConnectionType(astNode, state, {
73015
73186
  key,
@@ -73023,7 +73194,8 @@
73023
73194
  ttl: TTL$1,
73024
73195
  namespace: keyPrefix$1,
73025
73196
  representationName: "RecordAggregateEdge",
73026
- version: VERSION$n
73197
+ version: VERSION$n,
73198
+ ingestionTimestamp: timestamp,
73027
73199
  },
73028
73200
  });
73029
73201
  }
@@ -73227,7 +73399,7 @@
73227
73399
  }
73228
73400
  }
73229
73401
  function ingest$f(astNode, state) {
73230
- const { path, data, luvio } = state;
73402
+ const { path, data, timestamp, luvio } = state;
73231
73403
  const key = keyBuilder$i(luvio, path);
73232
73404
  return ingestCursorConnectionType(astNode, state, {
73233
73405
  key,
@@ -73243,7 +73415,8 @@
73243
73415
  ttl: TTL$1,
73244
73416
  namespace: keyPrefix$1,
73245
73417
  representationName: "RecordAggregateConnection",
73246
- version: VERSION$m
73418
+ version: VERSION$m,
73419
+ ingestionTimestamp: timestamp,
73247
73420
  },
73248
73421
  });
73249
73422
  }
@@ -73460,7 +73633,7 @@
73460
73633
  };
73461
73634
  }
73462
73635
  function ingest$e(astNode, state) {
73463
- const { path, data, luvio } = state;
73636
+ const { path, data, timestamp, luvio } = state;
73464
73637
  const key = keyBuilder$h(luvio, path);
73465
73638
  return ingestNonCursorConnectionType(astNode, state, {
73466
73639
  key,
@@ -73474,7 +73647,8 @@
73474
73647
  ttl: TTL$1,
73475
73648
  namespace: keyPrefix$1,
73476
73649
  representationName: "RecordQueryAggregate",
73477
- version: VERSION$l
73650
+ version: VERSION$l,
73651
+ ingestionTimestamp: timestamp,
73478
73652
  },
73479
73653
  });
73480
73654
  }
@@ -73604,7 +73778,7 @@
73604
73778
  };
73605
73779
  }
73606
73780
  function ingest$d(astNode, state) {
73607
- const { path, data, luvio } = state;
73781
+ const { path, data, timestamp, luvio } = state;
73608
73782
  const key = keyBuilder$g(luvio, path);
73609
73783
  return ingestNonCursorConnectionType(astNode, state, {
73610
73784
  key,
@@ -73618,7 +73792,8 @@
73618
73792
  ttl: TTL$1,
73619
73793
  namespace: keyPrefix$1,
73620
73794
  representationName: "ChildRelationship",
73621
- version: VERSION$k
73795
+ version: VERSION$k,
73796
+ ingestionTimestamp: timestamp,
73622
73797
  },
73623
73798
  });
73624
73799
  }
@@ -73796,7 +73971,7 @@
73796
73971
  };
73797
73972
  }
73798
73973
  function ingest$c(astNode, state) {
73799
- const { path, data, luvio } = state;
73974
+ const { path, data, timestamp, luvio } = state;
73800
73975
  const key = keyBuilder$f(luvio, path);
73801
73976
  return ingestNonCursorConnectionType(astNode, state, {
73802
73977
  key,
@@ -73810,7 +73985,8 @@
73810
73985
  ttl: TTL$1,
73811
73986
  namespace: keyPrefix$1,
73812
73987
  representationName: "DependentField",
73813
- version: VERSION$j
73988
+ version: VERSION$j,
73989
+ ingestionTimestamp: timestamp,
73814
73990
  },
73815
73991
  });
73816
73992
  }
@@ -73935,7 +74111,7 @@
73935
74111
  };
73936
74112
  }
73937
74113
  function ingest$b(astNode, state) {
73938
- const { path, data, luvio } = state;
74114
+ const { path, data, timestamp, luvio } = state;
73939
74115
  const key = keyBuilder$e(luvio, path);
73940
74116
  return ingestNonCursorConnectionType(astNode, state, {
73941
74117
  key,
@@ -73949,7 +74125,8 @@
73949
74125
  ttl: TTL$1,
73950
74126
  namespace: keyPrefix$1,
73951
74127
  representationName: "FilteredLookupInfo",
73952
- version: VERSION$i
74128
+ version: VERSION$i,
74129
+ ingestionTimestamp: timestamp,
73953
74130
  },
73954
74131
  });
73955
74132
  }
@@ -74089,7 +74266,7 @@
74089
74266
  };
74090
74267
  }
74091
74268
  function ingest$a(astNode, state) {
74092
- const { path, data, luvio } = state;
74269
+ const { path, data, timestamp, luvio } = state;
74093
74270
  const key = keyBuilder$d(luvio, path);
74094
74271
  return ingestNonCursorConnectionType(astNode, state, {
74095
74272
  key,
@@ -74103,7 +74280,8 @@
74103
74280
  ttl: TTL$1,
74104
74281
  namespace: keyPrefix$1,
74105
74282
  representationName: "ReferenceToInfo",
74106
- version: VERSION$h
74283
+ version: VERSION$h,
74284
+ ingestionTimestamp: timestamp,
74107
74285
  },
74108
74286
  });
74109
74287
  }
@@ -74263,7 +74441,7 @@
74263
74441
  };
74264
74442
  }
74265
74443
  function ingest$9(astNode, state) {
74266
- const { path, data, luvio } = state;
74444
+ const { path, data, timestamp, luvio } = state;
74267
74445
  const key = keyBuilder$c(luvio, path);
74268
74446
  return ingestNonCursorConnectionType(astNode, state, {
74269
74447
  key,
@@ -74277,7 +74455,8 @@
74277
74455
  ttl: TTL$1,
74278
74456
  namespace: keyPrefix$1,
74279
74457
  representationName: "Field",
74280
- version: VERSION$g
74458
+ version: VERSION$g,
74459
+ ingestionTimestamp: timestamp,
74281
74460
  },
74282
74461
  });
74283
74462
  }
@@ -74655,7 +74834,7 @@
74655
74834
  };
74656
74835
  }
74657
74836
  function ingest$8(astNode, state) {
74658
- const { path, data, luvio } = state;
74837
+ const { path, data, timestamp, luvio } = state;
74659
74838
  const key = keyBuilder$b(luvio, path);
74660
74839
  return ingestNonCursorConnectionType(astNode, state, {
74661
74840
  key,
@@ -74669,7 +74848,8 @@
74669
74848
  ttl: TTL$1,
74670
74849
  namespace: keyPrefix$1,
74671
74850
  representationName: "RecordTypeInfo",
74672
- version: VERSION$f
74851
+ version: VERSION$f,
74852
+ ingestionTimestamp: timestamp,
74673
74853
  },
74674
74854
  });
74675
74855
  }
@@ -74830,7 +75010,7 @@
74830
75010
  };
74831
75011
  }
74832
75012
  function ingest$7(astNode, state) {
74833
- const { path, data, luvio } = state;
75013
+ const { path, data, timestamp, luvio } = state;
74834
75014
  const key = keyBuilder$a(luvio, path);
74835
75015
  return ingestNonCursorConnectionType(astNode, state, {
74836
75016
  key,
@@ -74844,7 +75024,8 @@
74844
75024
  ttl: TTL$1,
74845
75025
  namespace: keyPrefix$1,
74846
75026
  representationName: "ThemeInfo",
74847
- version: VERSION$e
75027
+ version: VERSION$e,
75028
+ ingestionTimestamp: timestamp,
74848
75029
  },
74849
75030
  });
74850
75031
  }
@@ -74970,7 +75151,7 @@
74970
75151
  };
74971
75152
  }
74972
75153
  function ingest$6(astNode, state) {
74973
- const { path, data, luvio } = state;
75154
+ const { path, data, timestamp, luvio } = state;
74974
75155
  const key = keyBuilder$9(luvio, path);
74975
75156
  return ingestNonCursorConnectionType(astNode, state, {
74976
75157
  key,
@@ -74984,7 +75165,8 @@
74984
75165
  ttl: TTL$3,
74985
75166
  namespace: keyPrefix$1,
74986
75167
  representationName: "ObjectInfo",
74987
- version: VERSION$d
75168
+ version: VERSION$d,
75169
+ ingestionTimestamp: timestamp,
74988
75170
  },
74989
75171
  });
74990
75172
  }
@@ -75374,7 +75556,7 @@
75374
75556
  };
75375
75557
  }
75376
75558
  function ingest$5(astNode, state) {
75377
- const { path, data, luvio } = state;
75559
+ const { path, data, timestamp, luvio } = state;
75378
75560
  const key = keyBuilder$8(luvio, path);
75379
75561
  return ingestNonCursorConnectionType(astNode, state, {
75380
75562
  key,
@@ -75388,7 +75570,8 @@
75388
75570
  ttl: TTL$1,
75389
75571
  namespace: keyPrefix$1,
75390
75572
  representationName: "ListColumn",
75391
- version: VERSION$c
75573
+ version: VERSION$c,
75574
+ ingestionTimestamp: timestamp,
75392
75575
  },
75393
75576
  });
75394
75577
  }
@@ -75534,7 +75717,7 @@
75534
75717
  };
75535
75718
  }
75536
75719
  function ingest$4(astNode, state) {
75537
- const { path, data, luvio } = state;
75720
+ const { path, data, timestamp, luvio } = state;
75538
75721
  const key = keyBuilder$7(luvio, path);
75539
75722
  return ingestNonCursorConnectionType(astNode, state, {
75540
75723
  key,
@@ -75548,7 +75731,8 @@
75548
75731
  ttl: TTL$1,
75549
75732
  namespace: keyPrefix$1,
75550
75733
  representationName: "ListOrder",
75551
- version: VERSION$b
75734
+ version: VERSION$b,
75735
+ ingestionTimestamp: timestamp,
75552
75736
  },
75553
75737
  });
75554
75738
  }
@@ -75683,7 +75867,7 @@
75683
75867
  };
75684
75868
  }
75685
75869
  function ingest$3(astNode, state) {
75686
- const { path, data, luvio } = state;
75870
+ const { path, data, timestamp, luvio } = state;
75687
75871
  const key = keyBuilder$6(luvio, path);
75688
75872
  return ingestNonCursorConnectionType(astNode, state, {
75689
75873
  key,
@@ -75697,7 +75881,8 @@
75697
75881
  ttl: TTL$2,
75698
75882
  namespace: keyPrefix$1,
75699
75883
  representationName: "RelatedListInfo",
75700
- version: VERSION$a
75884
+ version: VERSION$a,
75885
+ ingestionTimestamp: timestamp,
75701
75886
  },
75702
75887
  });
75703
75888
  }
@@ -75919,7 +76104,7 @@
75919
76104
  };
75920
76105
  }
75921
76106
  function ingest$2(astNode, state) {
75922
- const { path, data, luvio } = state;
76107
+ const { path, data, timestamp, luvio } = state;
75923
76108
  const key = keyBuilder$5(luvio, path);
75924
76109
  return ingestNonCursorConnectionType(astNode, state, {
75925
76110
  key,
@@ -75933,7 +76118,8 @@
75933
76118
  ttl: TTL$1,
75934
76119
  namespace: keyPrefix$1,
75935
76120
  representationName: "UIAPI",
75936
- version: VERSION$9
76121
+ version: VERSION$9,
76122
+ ingestionTimestamp: timestamp,
75937
76123
  },
75938
76124
  });
75939
76125
  }
@@ -76157,7 +76343,7 @@
76157
76343
  };
76158
76344
  }
76159
76345
  function ingest$1(astNode, state) {
76160
- const { path, data, luvio } = state;
76346
+ const { path, data, timestamp, luvio } = state;
76161
76347
  const key = keyBuilder$4(luvio, astNode, state.variables, state.fragments);
76162
76348
  return ingestNonCursorConnectionType(astNode, state, {
76163
76349
  key,
@@ -76171,7 +76357,8 @@
76171
76357
  ttl: TTL$1,
76172
76358
  namespace: keyPrefix$1,
76173
76359
  representationName: "Query",
76174
- version: VERSION$8
76360
+ version: VERSION$8,
76361
+ ingestionTimestamp: timestamp,
76175
76362
  },
76176
76363
  });
76177
76364
  }
@@ -78969,15 +79156,17 @@
78969
79156
  /**
78970
79157
  * Returns the field API name, qualified with an object name if possible.
78971
79158
  * @param value The value from which to get the qualified field API name.
79159
+ * @param onlyQualifiedFieldNames - Whether or not this function should skip fieldApiName that do not include the delimiter '.'
78972
79160
  * @return The qualified field API name.
78973
79161
  */
78974
- function getFieldApiName$1(value) {
79162
+ function getFieldApiName$1(value, onlyQualifiedFieldNames = false) {
78975
79163
  // Note: tightening validation logic changes behavior from userland getting
78976
79164
  // a server-provided error to the adapter noop'ing. In 224 we decided to not
78977
- // change the behavior.
79165
+ // change the behavior. In 250 we decided to add the 'onlyQualifiedFieldName' flag to tighten the logic
79166
+ // optionally to avoid issues with persisted invalid field names.
78978
79167
  if (isString$1(value)) {
78979
79168
  const trimmed = value.trim();
78980
- if (trimmed.length > 0) {
79169
+ if (trimmed.length > 0 && (onlyQualifiedFieldNames ? trimmed.indexOf('.') > -1 : true)) {
78981
79170
  return trimmed;
78982
79171
  }
78983
79172
  }
@@ -78990,15 +79179,19 @@
78990
79179
  /**
78991
79180
  * Returns the field API name.
78992
79181
  * @param value The value from which to get the field API name.
79182
+ * @param options Option bag. onlyQualifiedFieldNames is a boolean that allows this function to skip returning invalid FieldApiNames.
78993
79183
  * @returns The field API name.
78994
79184
  */
78995
- function getFieldApiNamesArray$1(value) {
79185
+ function getFieldApiNamesArray$1(value, options = { onlyQualifiedFieldNames: false }) {
78996
79186
  const valueArray = isArray$2(value) ? value : [value];
78997
79187
  const array = [];
78998
79188
  for (let i = 0, len = valueArray.length; i < len; i += 1) {
78999
79189
  const item = valueArray[i];
79000
- const apiName = getFieldApiName$1(item);
79190
+ const apiName = getFieldApiName$1(item, options.onlyQualifiedFieldNames);
79001
79191
  if (apiName === undefined) {
79192
+ if (options.onlyQualifiedFieldNames) {
79193
+ continue; // Just skips invalid field names rather than failing to return an array at all
79194
+ }
79002
79195
  return undefined;
79003
79196
  }
79004
79197
  push$1.call(array, apiName);
@@ -79354,7 +79547,7 @@
79354
79547
  configuration: { ...configurationForGraphQLAdapters$1 },
79355
79548
  instrument: instrument$1,
79356
79549
  });
79357
- // version: 1.266.0-dev2-e69d357fb
79550
+ // version: 1.266.0-dev21-7d5715511
79358
79551
 
79359
79552
  // On core the unstable adapters are re-exported with different names,
79360
79553
  // we want to match them here.
@@ -80005,6 +80198,7 @@
80005
80198
  namespace: namespace,
80006
80199
  ttl: DEFAULT_GRAPHQL_TTL,
80007
80200
  version: GRAPHQL_INGEST_VERSION,
80201
+ ingestionTimestamp: timestamp,
80008
80202
  });
80009
80203
  }
80010
80204
  return {
@@ -80100,6 +80294,7 @@
80100
80294
  namespace: namespace,
80101
80295
  ttl: DEFAULT_GRAPHQL_TTL,
80102
80296
  version: GRAPHQL_INGEST_VERSION,
80297
+ ingestionTimestamp: timestamp,
80103
80298
  });
80104
80299
  return {
80105
80300
  __ref: key,
@@ -80140,6 +80335,7 @@
80140
80335
  namespace: namespace,
80141
80336
  ttl: DEFAULT_GRAPHQL_TTL,
80142
80337
  version: GRAPHQL_INGEST_VERSION,
80338
+ ingestionTimestamp: timestamp,
80143
80339
  });
80144
80340
  return {
80145
80341
  __ref: key,
@@ -81605,7 +81801,7 @@
81605
81801
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
81606
81802
  graphQLImperative = ldsAdapter;
81607
81803
  });
81608
- // version: 1.266.0-dev2-e69d357fb
81804
+ // version: 1.266.0-dev21-7d5715511
81609
81805
 
81610
81806
  var gqlApi = /*#__PURE__*/Object.freeze({
81611
81807
  __proto__: null,
@@ -81948,8 +82144,22 @@
81948
82144
  draftIds !== undefined &&
81949
82145
  draftIds.length > 0) {
81950
82146
  const draftId = draftIds[draftIds.length - 1];
81951
- draftManager.replaceAction(draftIdToReplace, draftId).then(() => {
82147
+ draftManager
82148
+ .replaceAction(draftIdToReplace, draftId)
82149
+ .then(() => {
81952
82150
  onResponse(responseValue);
82151
+ })
82152
+ .catch((error) => {
82153
+ let message = 'Unknown error replacing draft';
82154
+ if (error instanceof Error) {
82155
+ message = error.message;
82156
+ }
82157
+ else if (typeof error === 'string') {
82158
+ message = error;
82159
+ }
82160
+ onResponse({
82161
+ error: createNativeFetchErrorResponse(message),
82162
+ });
81953
82163
  });
81954
82164
  }
81955
82165
  else {
@@ -82303,7 +82513,7 @@
82303
82513
  function register(r) {
82304
82514
  callbacks$1.forEach((callback) => callback(r));
82305
82515
  }
82306
- // version: 1.266.0-dev2-7c2f3615f
82516
+ // version: 1.266.0-dev21-b2a247476
82307
82517
 
82308
82518
  /**
82309
82519
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -86513,15 +86723,17 @@
86513
86723
  /**
86514
86724
  * Returns the field API name, qualified with an object name if possible.
86515
86725
  * @param value The value from which to get the qualified field API name.
86726
+ * @param onlyQualifiedFieldNames - Whether or not this function should skip fieldApiName that do not include the delimiter '.'
86516
86727
  * @return The qualified field API name.
86517
86728
  */
86518
- function getFieldApiName(value) {
86729
+ function getFieldApiName(value, onlyQualifiedFieldNames = false) {
86519
86730
  // Note: tightening validation logic changes behavior from userland getting
86520
86731
  // a server-provided error to the adapter noop'ing. In 224 we decided to not
86521
- // change the behavior.
86732
+ // change the behavior. In 250 we decided to add the 'onlyQualifiedFieldName' flag to tighten the logic
86733
+ // optionally to avoid issues with persisted invalid field names.
86522
86734
  if (isString(value)) {
86523
86735
  const trimmed = value.trim();
86524
- if (trimmed.length > 0) {
86736
+ if (trimmed.length > 0 && (onlyQualifiedFieldNames ? trimmed.indexOf('.') > -1 : true)) {
86525
86737
  return trimmed;
86526
86738
  }
86527
86739
  }
@@ -86534,15 +86746,19 @@
86534
86746
  /**
86535
86747
  * Returns the field API name.
86536
86748
  * @param value The value from which to get the field API name.
86749
+ * @param options Option bag. onlyQualifiedFieldNames is a boolean that allows this function to skip returning invalid FieldApiNames.
86537
86750
  * @returns The field API name.
86538
86751
  */
86539
- function getFieldApiNamesArray(value) {
86752
+ function getFieldApiNamesArray(value, options = { onlyQualifiedFieldNames: false }) {
86540
86753
  const valueArray = isArray(value) ? value : [value];
86541
86754
  const array = [];
86542
86755
  for (let i = 0, len = valueArray.length; i < len; i += 1) {
86543
86756
  const item = valueArray[i];
86544
- const apiName = getFieldApiName(item);
86757
+ const apiName = getFieldApiName(item, options.onlyQualifiedFieldNames);
86545
86758
  if (apiName === undefined) {
86759
+ if (options.onlyQualifiedFieldNames) {
86760
+ continue; // Just skips invalid field names rather than failing to return an array at all
86761
+ }
86546
86762
  return undefined;
86547
86763
  }
86548
86764
  push.call(array, apiName);
@@ -87226,4 +87442,4 @@
87226
87442
  exports.subscribeToAdapter = subscribeToAdapter;
87227
87443
 
87228
87444
  }));
87229
- // version: 1.266.0-dev2-7c2f3615f
87445
+ // version: 1.266.0-dev21-b2a247476