@salesforce/lds-worker-api 1.266.0-dev2 → 1.266.0-dev20

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.
@@ -28,9 +28,17 @@ const { parse: parse$a, stringify: stringify$a } = JSON;
28
28
  const WeakSetCtor = WeakSet;
29
29
 
30
30
  const deeplyFrozen = new WeakSetCtor();
31
+ // Allow custom environments to bypass deep freeze for performance reasons
32
+ let bypassDeepFreeze = false;
33
+ function setBypassDeepFreeze(value) {
34
+ bypassDeepFreeze = value;
35
+ }
31
36
  function deepFreeze(value) {
32
37
  // No need to freeze primitives or already frozen stuff
33
- if (typeof value !== 'object' || value === null || deeplyFrozen.has(value)) {
38
+ if (bypassDeepFreeze ||
39
+ typeof value !== 'object' ||
40
+ value === null ||
41
+ deeplyFrozen.has(value)) {
34
42
  return;
35
43
  }
36
44
  deeplyFrozen.add(value);
@@ -984,7 +992,7 @@ class StringKeyInMemoryStore {
984
992
  // is already in L1 prior to ingestion
985
993
  stagingStore.readEntry = (key) => {
986
994
  const entry = originalReadEntry(key);
987
- if (!entry) {
995
+ if (entry === undefined) {
988
996
  return upstreamStore.readEntry(key);
989
997
  }
990
998
  return entry;
@@ -2278,6 +2286,13 @@ function isDefined$1(value) {
2278
2286
  return value !== undefined && value !== null;
2279
2287
  }
2280
2288
 
2289
+ /**
2290
+ * Checks if the given variable is an object
2291
+ */
2292
+ function isObject$1(value) {
2293
+ return typeof value === 'object' && value !== null;
2294
+ }
2295
+
2281
2296
  var StoreLinkStateValues$2;
2282
2297
  (function (StoreLinkStateValues) {
2283
2298
  StoreLinkStateValues[StoreLinkStateValues["NotPresent"] = 0] = "NotPresent";
@@ -2428,6 +2443,7 @@ function resolveLink$1(reader, storeLink, version) {
2428
2443
  variables: {},
2429
2444
  });
2430
2445
  }
2446
+ const readerOpaqueReferenceMap = new WeakMap();
2431
2447
  class Reader {
2432
2448
  constructor(store, variables, refresh, baseSnapshot, ttlStrategy) {
2433
2449
  this.store = store;
@@ -2892,7 +2908,12 @@ class Reader {
2892
2908
  }
2893
2909
  if (fragment.opaque) {
2894
2910
  this.checkIfChanged(result.value, { useDeepEquals: true });
2895
- const opaqueValue = this.opaqueCopy(result.value);
2911
+ if (isObject$1(result.value) && !readerOpaqueReferenceMap.has(result.value)) {
2912
+ readerOpaqueReferenceMap.set(result.value, this.opaqueCopy(result.value));
2913
+ }
2914
+ const opaqueValue = isObject$1(result.value)
2915
+ ? readerOpaqueReferenceMap.get(result.value)
2916
+ : result.value;
2896
2917
  return {
2897
2918
  state: FragmentReadResultState$1.Success,
2898
2919
  value: opaqueValue,
@@ -3735,10 +3756,13 @@ class Luvio {
3735
3756
  }
3736
3757
  publishStoreMetadata(key, storeMetadataParams) {
3737
3758
  const { ttl, namespace, representationName, version } = storeMetadataParams;
3738
- const now = Date.now();
3759
+ let { ingestionTimestamp } = storeMetadataParams;
3760
+ if (ingestionTimestamp === undefined) {
3761
+ ingestionTimestamp = Date.now();
3762
+ }
3739
3763
  const storeMetadata = {
3740
- ingestionTimestamp: now,
3741
- expirationTimestamp: now + ttl,
3764
+ ingestionTimestamp: ingestionTimestamp,
3765
+ expirationTimestamp: ingestionTimestamp + ttl,
3742
3766
  representationName,
3743
3767
  namespace,
3744
3768
  version,
@@ -3965,6 +3989,7 @@ function ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normal
3965
3989
  namespace,
3966
3990
  version,
3967
3991
  representationName,
3992
+ ingestionTimestamp: timestamp,
3968
3993
  };
3969
3994
  luvio.publishStoreMetadata(key, storeMetadataParams);
3970
3995
  }
@@ -4012,7 +4037,7 @@ function createResourceParamsImpl(config, configMetadata) {
4012
4037
  }
4013
4038
  return resourceParams;
4014
4039
  }
4015
- // engine version: 0.154.6-a3a5150a
4040
+ // engine version: 0.154.7-dev8-fca5df34
4016
4041
 
4017
4042
  /**
4018
4043
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -4140,7 +4165,7 @@ function withDefaultLuvio(callback) {
4140
4165
  }
4141
4166
  callbacks.push(callback);
4142
4167
  }
4143
- // version: 1.266.0-dev2-7c2f3615f
4168
+ // version: 1.266.0-dev20-117d849b4
4144
4169
 
4145
4170
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4146
4171
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15648,7 +15673,7 @@ function gql(literals, ...subs) {
15648
15673
  }
15649
15674
  return superResult;
15650
15675
  }
15651
- // version: 1.266.0-dev2-7c2f3615f
15676
+ // version: 1.266.0-dev20-117d849b4
15652
15677
 
15653
15678
  function unwrap(data) {
15654
15679
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16573,7 +16598,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16573
16598
  const { apiFamily, name } = metadata;
16574
16599
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16575
16600
  }
16576
- // version: 1.266.0-dev2-7c2f3615f
16601
+ // version: 1.266.0-dev20-117d849b4
16577
16602
 
16578
16603
  /**
16579
16604
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16672,7 +16697,7 @@ var TypeCheckShapes;
16672
16697
  TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
16673
16698
  TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
16674
16699
  })(TypeCheckShapes || (TypeCheckShapes = {}));
16675
- // engine version: 0.154.6-a3a5150a
16700
+ // engine version: 0.154.7-dev8-fca5df34
16676
16701
 
16677
16702
  const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
16678
16703
 
@@ -20800,6 +20825,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
20800
20825
  representationName: RepresentationType$S,
20801
20826
  namespace: keyPrefix$2,
20802
20827
  version: VERSION$18$1,
20828
+ ingestionTimestamp: timestamp,
20803
20829
  });
20804
20830
  return createLink$3(key);
20805
20831
  };
@@ -21017,17 +21043,19 @@ function onResourceError(luvio, config, key, err) {
21017
21043
  function buildNetworkSnapshot$13(luvio, config, serverRequestCount = 0, options) {
21018
21044
  const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
21019
21045
  return luvio.dispatchResourceRequest(request, options).then((response) => {
21046
+ // W-11964675 - Condition to dedupe a very specific set of requests for
21047
+ // Komaci - a batch record request with a single record followed by a single
21048
+ // record request. The fulfill logic sends the same network response, so
21049
+ // there is some TypeScript massaging to extract the RecordRepresentation
21050
+ //
21051
+ // W-14381091 - Ensure hoisting the response body happens prior to
21052
+ // calling `luvio.handleSuccessResponse`, since both arguments capture
21053
+ // the response.
21054
+ if (isSingleBatchRecordResponse(response.body)) {
21055
+ response.body = response.body.results[0]
21056
+ .result;
21057
+ }
21020
21058
  return luvio.handleSuccessResponse(() => {
21021
- // W-11964675 - Condition to dedupe a very specific set of requests for
21022
- // Komaci - a batch record request with a single record followed by a single
21023
- // record request. The fulfill logic sends the same network response, so
21024
- // there is some TypeScript massaging to extract the RecordRepresentation
21025
- if (isSingleBatchRecordResponse(response.body)) {
21026
- let recordResponse = response;
21027
- recordResponse.body = response.body.results[0]
21028
- .result;
21029
- return onResourceSuccess(luvio, config, key, allTrackedFields, recordResponse, serverRequestCount + 1);
21030
- }
21031
21059
  return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
21032
21060
  }, () => {
21033
21061
  const cache = new StoreKeyMap();
@@ -21990,6 +22018,7 @@ const ingest$K$1 = function ListRecordCollectionRepresentationIngest(input, path
21990
22018
  namespace: "UiApi",
21991
22019
  version: VERSION$16$1,
21992
22020
  representationName: RepresentationType$R,
22021
+ ingestionTimestamp: timestamp,
21993
22022
  };
21994
22023
  luvio.publishStoreMetadata(key, storeMetadataParams);
21995
22024
  }
@@ -22959,6 +22988,7 @@ const ingest$H$1 = function ListViewSummaryCollectionRepresentationIngest(input,
22959
22988
  namespace: "UiApi",
22960
22989
  version: VERSION$13$1,
22961
22990
  representationName: RepresentationType$O,
22991
+ ingestionTimestamp: timestamp,
22962
22992
  };
22963
22993
  luvio.publishStoreMetadata(key, storeMetadataParams);
22964
22994
  }
@@ -25283,7 +25313,7 @@ function getLayoutMapAndObjectInfo(recordId, data) {
25283
25313
  // Temp fix until we can mimic the server behavior for non-layoutable entities.
25284
25314
  let layoutMap = {};
25285
25315
  if (hasOwnProperty$1.call(layouts, apiName)) {
25286
- layoutMap = layouts[apiName][recordTypeId];
25316
+ layoutMap = layouts[apiName][recordTypeId] || {};
25287
25317
  }
25288
25318
  return {
25289
25319
  layoutMap,
@@ -27577,7 +27607,10 @@ const dynamicIngest$4 = (ingestParams) => {
27577
27607
  if (existingRecord === undefined || equals$N(existingRecord, incomingRecord) === false) {
27578
27608
  luvio.storePublish(key, incomingRecord);
27579
27609
  }
27580
- luvio.publishStoreMetadata(key, QUICK_ACTION_DEFAULTS_STORE_METADATA_PARAMS);
27610
+ luvio.publishStoreMetadata(key, {
27611
+ ...QUICK_ACTION_DEFAULTS_STORE_METADATA_PARAMS,
27612
+ ingestionTimestamp: timestamp,
27613
+ });
27581
27614
  return createLink$3(key);
27582
27615
  };
27583
27616
  };
@@ -28042,7 +28075,7 @@ const getRecordEditActionsAdapterFactory = (luvio) => function UiApi__getRecordE
28042
28075
  buildCachedSnapshotCachePolicy$C, buildNetworkSnapshotCachePolicy$D);
28043
28076
  };
28044
28077
 
28045
- function validate$1e(obj, path = 'ActionRelatedListSingleBatchInputRepresentation') {
28078
+ function validate$1f(obj, path = 'ActionRelatedListSingleBatchInputRepresentation') {
28046
28079
  const v_error = (() => {
28047
28080
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
28048
28081
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -28453,7 +28486,7 @@ function typeCheckConfig$R(untrustedConfig) {
28453
28486
  const untrustedConfig_relatedListsActionParameters_array = [];
28454
28487
  for (let i = 0, arrayLength = untrustedConfig_relatedListsActionParameters.length; i < arrayLength; i++) {
28455
28488
  const untrustedConfig_relatedListsActionParameters_item = untrustedConfig_relatedListsActionParameters[i];
28456
- const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$1e(untrustedConfig_relatedListsActionParameters_item);
28489
+ const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$1f(untrustedConfig_relatedListsActionParameters_item);
28457
28490
  if (referenceActionRelatedListSingleBatchInputRepresentationValidationError === null) {
28458
28491
  untrustedConfig_relatedListsActionParameters_array.push(untrustedConfig_relatedListsActionParameters_item);
28459
28492
  }
@@ -30692,7 +30725,7 @@ const getListInfosByNameAdapterFactory = (luvio) => function UiApi__getListInfos
30692
30725
  buildCachedSnapshotCachePolicy$t, buildNetworkSnapshotCachePolicy$u);
30693
30726
  };
30694
30727
 
30695
- function validate$14(obj, path = 'ListFilterByInfoInputRepresentation') {
30728
+ function validate$15(obj, path = 'ListFilterByInfoInputRepresentation') {
30696
30729
  const v_error = (() => {
30697
30730
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
30698
30731
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -30723,7 +30756,7 @@ function validate$14(obj, path = 'ListFilterByInfoInputRepresentation') {
30723
30756
  return v_error === undefined ? null : v_error;
30724
30757
  }
30725
30758
 
30726
- function validate$13(obj, path = 'ListScopeInputRepresentation') {
30759
+ function validate$14(obj, path = 'ListScopeInputRepresentation') {
30727
30760
  const v_error = (() => {
30728
30761
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
30729
30762
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -30847,7 +30880,7 @@ function typeCheckConfig$I(untrustedConfig) {
30847
30880
  const untrustedConfig_filteredByInfo_array = [];
30848
30881
  for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
30849
30882
  const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
30850
- const referenceListFilterByInfoInputRepresentationValidationError = validate$14(untrustedConfig_filteredByInfo_item);
30883
+ const referenceListFilterByInfoInputRepresentationValidationError = validate$15(untrustedConfig_filteredByInfo_item);
30851
30884
  if (referenceListFilterByInfoInputRepresentationValidationError === null) {
30852
30885
  untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
30853
30886
  }
@@ -30855,7 +30888,7 @@ function typeCheckConfig$I(untrustedConfig) {
30855
30888
  config.filteredByInfo = untrustedConfig_filteredByInfo_array;
30856
30889
  }
30857
30890
  const untrustedConfig_scope = untrustedConfig.scope;
30858
- const referenceListScopeInputRepresentationValidationError = validate$13(untrustedConfig_scope);
30891
+ const referenceListScopeInputRepresentationValidationError = validate$14(untrustedConfig_scope);
30859
30892
  if (referenceListScopeInputRepresentationValidationError === null) {
30860
30893
  config.scope = untrustedConfig_scope;
30861
30894
  }
@@ -31123,7 +31156,7 @@ function typeCheckConfig$F(untrustedConfig) {
31123
31156
  const untrustedConfig_filteredByInfo_array = [];
31124
31157
  for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
31125
31158
  const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
31126
- const referenceListFilterByInfoInputRepresentationValidationError = validate$14(untrustedConfig_filteredByInfo_item);
31159
+ const referenceListFilterByInfoInputRepresentationValidationError = validate$15(untrustedConfig_filteredByInfo_item);
31127
31160
  if (referenceListFilterByInfoInputRepresentationValidationError === null) {
31128
31161
  untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
31129
31162
  }
@@ -31131,7 +31164,7 @@ function typeCheckConfig$F(untrustedConfig) {
31131
31164
  config.filteredByInfo = untrustedConfig_filteredByInfo_array;
31132
31165
  }
31133
31166
  const untrustedConfig_scope = untrustedConfig.scope;
31134
- const referenceListScopeInputRepresentationValidationError = validate$13(untrustedConfig_scope);
31167
+ const referenceListScopeInputRepresentationValidationError = validate$14(untrustedConfig_scope);
31135
31168
  if (referenceListScopeInputRepresentationValidationError === null) {
31136
31169
  config.scope = untrustedConfig_scope;
31137
31170
  }
@@ -31882,7 +31915,7 @@ const getListPreferencesAdapterFactory = (luvio) => function UiApi__getListPrefe
31882
31915
  buildCachedSnapshotCachePolicy$q, buildNetworkSnapshotCachePolicy$r);
31883
31916
  };
31884
31917
 
31885
- function validate$Y(obj, path = 'ListOrderedByInfoInputRepresentation') {
31918
+ function validate$Z(obj, path = 'ListOrderedByInfoInputRepresentation') {
31886
31919
  const v_error = (() => {
31887
31920
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
31888
31921
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -31985,7 +32018,7 @@ function typeCheckConfig$C(untrustedConfig) {
31985
32018
  const untrustedConfig_orderedBy_array = [];
31986
32019
  for (let i = 0, arrayLength = untrustedConfig_orderedBy.length; i < arrayLength; i++) {
31987
32020
  const untrustedConfig_orderedBy_item = untrustedConfig_orderedBy[i];
31988
- const referenceListOrderedByInfoInputRepresentationValidationError = validate$Y(untrustedConfig_orderedBy_item);
32021
+ const referenceListOrderedByInfoInputRepresentationValidationError = validate$Z(untrustedConfig_orderedBy_item);
31989
32022
  if (referenceListOrderedByInfoInputRepresentationValidationError === null) {
31990
32023
  untrustedConfig_orderedBy_array.push(untrustedConfig_orderedBy_item);
31991
32024
  }
@@ -36047,7 +36080,7 @@ const getRelatedListInfoAdapterFactory = (luvio) => function UiApi__getRelatedLi
36047
36080
  buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$e);
36048
36081
  };
36049
36082
 
36050
- function validate$y(obj, path = 'ListUserPreferenceInputRepresentation') {
36083
+ function validate$z(obj, path = 'ListUserPreferenceInputRepresentation') {
36051
36084
  const v_error = (() => {
36052
36085
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
36053
36086
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -36124,7 +36157,7 @@ function typeCheckConfig$o(untrustedConfig) {
36124
36157
  const untrustedConfig_orderedByInfo_array = [];
36125
36158
  for (let i = 0, arrayLength = untrustedConfig_orderedByInfo.length; i < arrayLength; i++) {
36126
36159
  const untrustedConfig_orderedByInfo_item = untrustedConfig_orderedByInfo[i];
36127
- const referenceListOrderedByInfoInputRepresentationValidationError = validate$Y(untrustedConfig_orderedByInfo_item);
36160
+ const referenceListOrderedByInfoInputRepresentationValidationError = validate$Z(untrustedConfig_orderedByInfo_item);
36128
36161
  if (referenceListOrderedByInfoInputRepresentationValidationError === null) {
36129
36162
  untrustedConfig_orderedByInfo_array.push(untrustedConfig_orderedByInfo_item);
36130
36163
  }
@@ -36132,7 +36165,7 @@ function typeCheckConfig$o(untrustedConfig) {
36132
36165
  config.orderedByInfo = untrustedConfig_orderedByInfo_array;
36133
36166
  }
36134
36167
  const untrustedConfig_userPreferences = untrustedConfig.userPreferences;
36135
- const referenceListUserPreferenceInputRepresentationValidationError = validate$y(untrustedConfig_userPreferences);
36168
+ const referenceListUserPreferenceInputRepresentationValidationError = validate$z(untrustedConfig_userPreferences);
36136
36169
  if (referenceListUserPreferenceInputRepresentationValidationError === null) {
36137
36170
  config.userPreferences = untrustedConfig_userPreferences;
36138
36171
  }
@@ -36787,7 +36820,7 @@ function typeCheckConfig$l(untrustedConfig) {
36787
36820
  const untrustedConfig_orderedBy_array = [];
36788
36821
  for (let i = 0, arrayLength = untrustedConfig_orderedBy.length; i < arrayLength; i++) {
36789
36822
  const untrustedConfig_orderedBy_item = untrustedConfig_orderedBy[i];
36790
- const referenceListOrderedByInfoInputRepresentationValidationError = validate$Y(untrustedConfig_orderedBy_item);
36823
+ const referenceListOrderedByInfoInputRepresentationValidationError = validate$Z(untrustedConfig_orderedBy_item);
36791
36824
  if (referenceListOrderedByInfoInputRepresentationValidationError === null) {
36792
36825
  untrustedConfig_orderedBy_array.push(untrustedConfig_orderedBy_item);
36793
36826
  }
@@ -36835,7 +36868,7 @@ const updateRelatedListPreferencesAdapterFactory = (luvio) => {
36835
36868
  };
36836
36869
  };
36837
36870
 
36838
- function validate$w(obj, path = 'RelatedListRecordsSingleBatchInputRepresentation') {
36871
+ function validate$x(obj, path = 'RelatedListRecordsSingleBatchInputRepresentation') {
36839
36872
  const v_error = (() => {
36840
36873
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
36841
36874
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -37383,6 +37416,7 @@ const ingest$8$1 = function RelatedListRecordCollectionRepresentationIngest(inpu
37383
37416
  namespace: "UiApi",
37384
37417
  version: VERSION$c$1,
37385
37418
  representationName: RepresentationType$d,
37419
+ ingestionTimestamp: timestamp,
37386
37420
  };
37387
37421
  luvio.publishStoreMetadata(key, storeMetadataParams);
37388
37422
  }
@@ -37788,7 +37822,7 @@ function typeCheckConfig$k(untrustedConfig) {
37788
37822
  const untrustedConfig_relatedListParameters_array = [];
37789
37823
  for (let i = 0, arrayLength = untrustedConfig_relatedListParameters.length; i < arrayLength; i++) {
37790
37824
  const untrustedConfig_relatedListParameters_item = untrustedConfig_relatedListParameters[i];
37791
- const referenceRelatedListRecordsSingleBatchInputRepresentationValidationError = validate$w(untrustedConfig_relatedListParameters_item);
37825
+ const referenceRelatedListRecordsSingleBatchInputRepresentationValidationError = validate$x(untrustedConfig_relatedListParameters_item);
37792
37826
  if (referenceRelatedListRecordsSingleBatchInputRepresentationValidationError === null) {
37793
37827
  untrustedConfig_relatedListParameters_array.push(untrustedConfig_relatedListParameters_item);
37794
37828
  }
@@ -38582,7 +38616,7 @@ const getLookupMetadataAdapterFactory = (luvio) => function UiApi__getLookupMeta
38582
38616
  buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$7);
38583
38617
  };
38584
38618
 
38585
- function validate$l(obj, path = 'SearchDataCategoryInputRepresentation') {
38619
+ function validate$m(obj, path = 'SearchDataCategoryInputRepresentation') {
38586
38620
  const v_error = (() => {
38587
38621
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
38588
38622
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -38613,7 +38647,7 @@ function validate$l(obj, path = 'SearchDataCategoryInputRepresentation') {
38613
38647
  return v_error === undefined ? null : v_error;
38614
38648
  }
38615
38649
 
38616
- function validate$k(obj, path = 'SearchFilterInputRepresentation') {
38650
+ function validate$l(obj, path = 'SearchFilterInputRepresentation') {
38617
38651
  const v_error = (() => {
38618
38652
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
38619
38653
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -38682,7 +38716,7 @@ function validate$k(obj, path = 'SearchFilterInputRepresentation') {
38682
38716
  return v_error === undefined ? null : v_error;
38683
38717
  }
38684
38718
 
38685
- function validate$j(obj, path = 'SearchObjectOptionsRepresentation') {
38719
+ function validate$k(obj, path = 'SearchObjectOptionsRepresentation') {
38686
38720
  const v_error = (() => {
38687
38721
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
38688
38722
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -38695,7 +38729,7 @@ function validate$j(obj, path = 'SearchObjectOptionsRepresentation') {
38695
38729
  for (let i = 0; i < obj_dataCategories.length; i++) {
38696
38730
  const obj_dataCategories_item = obj_dataCategories[i];
38697
38731
  const path_dataCategories_item = path_dataCategories + '[' + i + ']';
38698
- const referencepath_dataCategories_itemValidationError = validate$l(obj_dataCategories_item, path_dataCategories_item);
38732
+ const referencepath_dataCategories_itemValidationError = validate$m(obj_dataCategories_item, path_dataCategories_item);
38699
38733
  if (referencepath_dataCategories_itemValidationError !== null) {
38700
38734
  let message = 'Object doesn\'t match SearchDataCategoryInputRepresentation (at "' + path_dataCategories_item + '")\n';
38701
38735
  message += referencepath_dataCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -38710,7 +38744,7 @@ function validate$j(obj, path = 'SearchObjectOptionsRepresentation') {
38710
38744
  for (let i = 0; i < obj_filters.length; i++) {
38711
38745
  const obj_filters_item = obj_filters[i];
38712
38746
  const path_filters_item = path_filters + '[' + i + ']';
38713
- const referencepath_filters_itemValidationError = validate$k(obj_filters_item, path_filters_item);
38747
+ const referencepath_filters_itemValidationError = validate$l(obj_filters_item, path_filters_item);
38714
38748
  if (referencepath_filters_itemValidationError !== null) {
38715
38749
  let message = 'Object doesn\'t match SearchFilterInputRepresentation (at "' + path_filters_item + '")\n';
38716
38750
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -38841,7 +38875,7 @@ function typeCheckConfig$f(untrustedConfig) {
38841
38875
  for (let i = 0, arrayLength = untrustedConfig_searchObjectOptions_keys.length; i < arrayLength; i++) {
38842
38876
  const key = untrustedConfig_searchObjectOptions_keys[i];
38843
38877
  const untrustedConfig_searchObjectOptions_prop = untrustedConfig_searchObjectOptions[key];
38844
- const referenceSearchObjectOptionsRepresentationValidationError = validate$j(untrustedConfig_searchObjectOptions_prop);
38878
+ const referenceSearchObjectOptionsRepresentationValidationError = validate$k(untrustedConfig_searchObjectOptions_prop);
38845
38879
  if (referenceSearchObjectOptionsRepresentationValidationError === null) {
38846
38880
  if (untrustedConfig_searchObjectOptions_object !== undefined) {
38847
38881
  untrustedConfig_searchObjectOptions_object[key] = untrustedConfig_searchObjectOptions_prop;
@@ -39044,7 +39078,7 @@ function typeCheckConfig$e(untrustedConfig) {
39044
39078
  const untrustedConfig_filters_array = [];
39045
39079
  for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
39046
39080
  const untrustedConfig_filters_item = untrustedConfig_filters[i];
39047
- const referenceSearchFilterInputRepresentationValidationError = validate$k(untrustedConfig_filters_item);
39081
+ const referenceSearchFilterInputRepresentationValidationError = validate$l(untrustedConfig_filters_item);
39048
39082
  if (referenceSearchFilterInputRepresentationValidationError === null) {
39049
39083
  untrustedConfig_filters_array.push(untrustedConfig_filters_item);
39050
39084
  }
@@ -43141,7 +43175,7 @@ withDefaultLuvio((luvio) => {
43141
43175
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
43142
43176
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
43143
43177
  });
43144
- // version: 1.266.0-dev2-e69d357fb
43178
+ // version: 1.266.0-dev20-1e6923024
43145
43179
 
43146
43180
  var ldsIdempotencyWriteDisabled = {
43147
43181
  isOpen: function (e) {
@@ -44279,7 +44313,9 @@ function isUnfulfilledSnapshot$1(cachedSnapshotResult) {
44279
44313
  * @param durableStore A DurableStore implementation
44280
44314
  * @param instrumentation An instrumentation function implementation
44281
44315
  */
44282
- function makeDurable(environment, { durableStore, instrumentation, useRevivingStore, enableDurableMetadataRefresh = false, }) {
44316
+ function makeDurable(environment, { durableStore, instrumentation, useRevivingStore, enableDurableMetadataRefresh = false, disableDeepFreeze = false, }) {
44317
+ // runtimes can choose to disable deepFreeze, e.g. headless mobile runtime
44318
+ setBypassDeepFreeze(disableDeepFreeze);
44283
44319
  let stagingStore = null;
44284
44320
  const durableTTLStore = new DurableTTLStore(durableStore);
44285
44321
  const mergeKeysPromiseMap = new Map();
@@ -44650,6 +44686,10 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
44650
44686
  }
44651
44687
  return {};
44652
44688
  };
44689
+ const getIngestStagingStore = function () {
44690
+ validateNotDisposed();
44691
+ return stagingStore === null || stagingStore === void 0 ? void 0 : stagingStore.fallbackStringKeyInMemoryStore;
44692
+ };
44653
44693
  const handleSuccessResponse = async function (ingestAndBroadcastFunc, getResponseCacheKeysFunc) {
44654
44694
  validateNotDisposed();
44655
44695
  const cacheKeyMap = getResponseCacheKeysFunc();
@@ -44842,6 +44882,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
44842
44882
  applyCachePolicy: { value: applyCachePolicy },
44843
44883
  getIngestStagingStoreRecords: { value: getIngestStagingStoreRecords },
44844
44884
  getIngestStagingStoreMetadata: { value: getIngestStagingStoreMetadata },
44885
+ getIngestStagingStore: { value: getIngestStagingStore },
44845
44886
  handleSuccessResponse: { value: handleSuccessResponse },
44846
44887
  handleErrorResponse: { value: handleErrorResponse },
44847
44888
  getNotifyChangeStoreEntries: { value: getNotifyChangeStoreEntries },
@@ -47639,9 +47680,10 @@ function rootRecordQuery(selection, input) {
47639
47680
  // If there is no metadata for this query or it somehow lacks a timestamp
47640
47681
  // skip setting the root timestamp
47641
47682
  if (queryMetadata !== undefined && queryMetadata.ingestionTimestamp !== undefined) {
47642
- // adjust the timestamp to account for ingestion processing time
47643
- // 30s is used because this is the default record TTL
47644
- input.rootTimestamp = queryMetadata.ingestionTimestamp - 30000;
47683
+ const timestamp = Number(queryMetadata.ingestionTimestamp);
47684
+ if (!isNaN(timestamp)) {
47685
+ input.rootTimestamp = timestamp;
47686
+ }
47645
47687
  }
47646
47688
  }
47647
47689
  return recordQuery(selection, alias, apiName, [], input);
@@ -49107,7 +49149,12 @@ class DurableDraftQueue {
49107
49149
  }
49108
49150
  finally {
49109
49151
  this.replacingAction = undefined;
49110
- await this.startQueueSafe();
49152
+ try {
49153
+ await this.startQueueSafe();
49154
+ }
49155
+ catch (_a) {
49156
+ // An error starting the queue should not bubble up from this method
49157
+ }
49111
49158
  }
49112
49159
  return updatedTarget;
49113
49160
  });
@@ -51256,6 +51303,9 @@ function createSinglePredicate(val, operator, field, alias) {
51256
51303
  else if (field.apiName === 'weakEtag') {
51257
51304
  leftPath = '$.weakEtag';
51258
51305
  }
51306
+ else if (field.apiName === 'RecordTypeId') {
51307
+ leftPath = '$.recordTypeId';
51308
+ }
51259
51309
  return {
51260
51310
  alias,
51261
51311
  leftPath,
@@ -52292,6 +52342,20 @@ function findFieldInfo(objectInfo, fieldName) {
52292
52342
  return values$2(objectInfo.fields).find((field) => field.apiName === fieldName ||
52293
52343
  (field.dataType === 'Reference' && field.relationshipName === fieldName));
52294
52344
  }
52345
+ async function readIngestionTimestampForKey(key, query) {
52346
+ let ingestionTimestamp = 0;
52347
+ const sql = `SELECT json_extract(metadata, '${JSON_EXTRACT_PATH_INGESTION_TIMESTAMP}') FROM lds_data WHERE key IS ?`;
52348
+ const results = await query(sql, [key]);
52349
+ const [timestamp] = results.rows.map((row) => row[0]);
52350
+ if (timestamp !== null) {
52351
+ const numericalTimestamp = Number(timestamp);
52352
+ if (isNaN(numericalTimestamp)) {
52353
+ return ingestionTimestamp;
52354
+ }
52355
+ ingestionTimestamp = numericalTimestamp;
52356
+ }
52357
+ return ingestionTimestamp;
52358
+ }
52295
52359
 
52296
52360
  function findSpanningField(name) {
52297
52361
  return (field) => {
@@ -52616,6 +52680,12 @@ function addResolversToSchema(schema, polyFields) {
52616
52680
  break;
52617
52681
  case 'LastModifiedDate':
52618
52682
  field.resolve = ({ recordRepresentation: record }) => {
52683
+ // In UIAPI record reps, LastModifiedDate might be present as a field,
52684
+ // which will include both the value and displayValue
52685
+ if (record.fields['LastModifiedDate']) {
52686
+ return record.fields['LastModifiedDate'];
52687
+ }
52688
+ // If the field is not present, just return the value of the root property
52619
52689
  return record.lastModifiedDate
52620
52690
  ? { value: record.lastModifiedDate }
52621
52691
  : null;
@@ -52650,16 +52720,26 @@ function addResolversToSchema(schema, polyFields) {
52650
52720
  : null;
52651
52721
  };
52652
52722
  const { recordRepresentation: record, ingestionTimestamp } = obj;
52653
- const fieldName = field.name.endsWith('__r')
52654
- ? field.name.replace('__r', '__c')
52655
- : field.name;
52656
- const id = (record.fields[fieldName] && record.fields[fieldName].value) ||
52657
- (record.fields[`${fieldName}Id`] &&
52658
- record.fields[`${fieldName}Id`].value);
52659
- if (!id)
52723
+ let id = undefined;
52724
+ if (field.name === 'RecordType') {
52725
+ // RecordTypeId has special handling during ingest and is
52726
+ // not in record.fields, so check for it at the UIAPI root property location
52727
+ id = record.recordTypeId;
52728
+ }
52729
+ else if (field.name.endsWith('__r')) {
52730
+ // Custom relationships end in `__r` and the corresponding ID field should be `__c`
52731
+ let fieldName = field.name.replace('__r', '__c');
52732
+ id = record.fields[fieldName] && record.fields[fieldName].value;
52733
+ }
52734
+ else {
52735
+ // Standard relationships are just FieldNameId
52736
+ let fieldName = field.name + 'Id';
52737
+ id = record.fields[fieldName] && record.fields[fieldName].value;
52738
+ }
52739
+ if (!id || typeof id !== 'string') {
52740
+ // possibly field injection did not inject the necessary Id field
52741
+ // for the relationship, or we found a non-string value.
52660
52742
  return null;
52661
- if (id['__ref'] !== undefined) {
52662
- return fetchRecordOrNull(record.fields[`${field.name}Id`].value);
52663
52743
  }
52664
52744
  seenRecordIds.add(id);
52665
52745
  return fetchRecordOrNull(id);
@@ -52811,18 +52891,7 @@ async function fetchIngestionTimeStampFromDatabase(apiName, info, args, query) {
52811
52891
  const key = buildKeyStringForRecordQuery(operation,
52812
52892
  // join varables passed from query to the argument variables given from the AST
52813
52893
  { ...variableValues, ...args }, info.fieldNodes[0].arguments, apiName);
52814
- const sql = `
52815
- SELECT json_extract(metadata, '${JSON_EXTRACT_PATH_INGESTION_TIMESTAMP}')
52816
- FROM lds_data
52817
- WHERE key IS ?
52818
- `;
52819
- const results = await query(sql, [key]);
52820
- const [timestamp] = results.rows.map((row) => row[0]);
52821
- if (timestamp !== null && typeof timestamp === 'number') {
52822
- // adjust the timestamp to account for ingestion processing time
52823
- // 30s is used because this is the default record TTL
52824
- ingestionTimestamp = timestamp - 30000;
52825
- }
52894
+ return readIngestionTimestampForKey(key, query);
52826
52895
  }
52827
52896
  return ingestionTimestamp;
52828
52897
  }
@@ -54889,7 +54958,7 @@ function createUserJsonOutput(selection, jsonInput, jsonOutput) {
54889
54958
  function createjsonOutput(selections, jsonInput, jsonOutput) {
54890
54959
  const keys$1 = keys$4(jsonInput);
54891
54960
  selections.filter(isFieldNode).forEach((subSelection) => {
54892
- const fieldName = subSelection.name.value;
54961
+ const fieldName = subSelection.alias ? subSelection.alias.value : subSelection.name.value;
54893
54962
  if (keys$1.includes(fieldName)) {
54894
54963
  if (isArray$2$1(jsonInput[fieldName])) {
54895
54964
  jsonOutput[fieldName] = [];
@@ -55609,13 +55678,21 @@ function buildSyntheticRecordRepresentation(luvio, createOperation, userId, obje
55609
55678
  draftFields[DEFAULT_FIELD_LAST_MODIFIED_DATE] = { value: timestampString, displayValue: null };
55610
55679
  draftFields[DEFAULT_FIELD_OWNER_ID] = { value: userId, displayValue: null };
55611
55680
  draftFields[DEFAULT_FIELD_ID] = { value: recordId, displayValue: null };
55612
- if (objectInfo !== undefined) {
55613
- const allObjectFields = keys$3$1(objectInfo.fields);
55614
- allObjectFields.forEach((fieldName) => {
55615
- if (draftFields[fieldName] === undefined) {
55616
- draftFields[fieldName] = { value: null, displayValue: null };
55617
- }
55618
- });
55681
+ const allObjectFields = keys$3$1(objectInfo.fields);
55682
+ allObjectFields.forEach((fieldName) => {
55683
+ if (draftFields[fieldName] === undefined) {
55684
+ draftFields[fieldName] = { value: null, displayValue: null };
55685
+ }
55686
+ });
55687
+ // TODO [W-14915806]: lightning-record-form injects the `IsPersonAccount`
55688
+ // field for all `Account` and `PersonAccount` records. However, not all
55689
+ // orgs use person accounts, and if that field is not present in the object
55690
+ // info then it is not synthesized. We force it to be synthesized here to
55691
+ // ensure lightning-record-form will work correctly with draft-created
55692
+ // accounts.
55693
+ if ((apiName === 'Account' || apiName === 'PersonAccount') &&
55694
+ draftFields['IsPersonAccount'] === undefined) {
55695
+ draftFields['IsPersonAccount'] = { value: null, displayValue: null };
55619
55696
  }
55620
55697
  return {
55621
55698
  id: recordId,
@@ -56202,10 +56279,13 @@ function normalizeRecordFields(key, entry) {
56202
56279
  * Transforms a record for storage in the durable store. The transformation involves denormalizing
56203
56280
  * scalar fields and persisting link metadata to transform back into a normalized representation
56204
56281
  *
56282
+ * If the record contains pending fields this will return undefined as pending records do not get persisted
56283
+ * to the durable store. There should be a refresh operation outbound that will bring in the updated record.
56284
+ *
56205
56285
  * @param normalizedRecord Record containing normalized field links
56206
56286
  * @param recordStore a store containing referenced record fields
56207
56287
  */
56208
- function buildDurableRecordRepresentation(normalizedRecord, records, pendingEntries) {
56288
+ function buildDurableRecordRepresentation(normalizedRecord, records, pendingEntries, store) {
56209
56289
  const fields = normalizedRecord.fields;
56210
56290
  const filteredFields = {};
56211
56291
  const links = {};
@@ -56216,7 +56296,9 @@ function buildDurableRecordRepresentation(normalizedRecord, records, pendingEntr
56216
56296
  // pending fields get filtered out of the durable store
56217
56297
  const { pending } = field;
56218
56298
  if (pending === true) {
56219
- continue;
56299
+ // do not write records with pending fields to the durable store
56300
+ // there should be a refresh operation outbound that will bring in the updated record
56301
+ return undefined;
56220
56302
  }
56221
56303
  const { __ref } = field;
56222
56304
  if (__ref !== undefined) {
@@ -56232,6 +56314,19 @@ function buildDurableRecordRepresentation(normalizedRecord, records, pendingEntr
56232
56314
  if (ref !== undefined) {
56233
56315
  filteredFields[fieldName] = ref;
56234
56316
  }
56317
+ else {
56318
+ // if we have a store to read, try to find the field there too
56319
+ // The durable ingest staging store may pass through to L1, and
56320
+ // not all fields are necessarily published every time, so it is
56321
+ // important to check L1 and not just the fields being published,
56322
+ // otherwise we risk truncating the fields on the record.
56323
+ if (store) {
56324
+ ref = store.readEntry(__ref);
56325
+ if (ref !== undefined) {
56326
+ filteredFields[fieldName] = ref;
56327
+ }
56328
+ }
56329
+ }
56235
56330
  }
56236
56331
  // we want to preserve fields that are missing nodes
56237
56332
  if (filteredFields[fieldName] !== undefined || field.isMissing === true) {
@@ -56253,7 +56348,7 @@ function getDenormalizedKey(originalKey, recordId, luvio) {
56253
56348
  }
56254
56349
  return keyBuilder$20(luvio, { recordId });
56255
56350
  }
56256
- function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecords, getStoreMetadata) {
56351
+ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecords, getStoreMetadata, getStore) {
56257
56352
  const getEntries = function (entries, segment) {
56258
56353
  // this HOF only inspects records in the default segment
56259
56354
  if (segment !== DefaultDurableSegment) {
@@ -56321,6 +56416,7 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
56321
56416
  const putRecordViews = {};
56322
56417
  const storeRecords = getStoreRecords !== undefined ? getStoreRecords() : {};
56323
56418
  const storeMetadata = getStoreMetadata !== undefined ? getStoreMetadata() : {};
56419
+ const store = getStore();
56324
56420
  for (let i = 0, len = keys$1.length; i < len; i++) {
56325
56421
  const key = keys$1[i];
56326
56422
  let value = entries[key];
@@ -56367,11 +56463,13 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
56367
56463
  metadataVersion: DURABLE_METADATA_VERSION,
56368
56464
  };
56369
56465
  }
56370
- const denormalizedRecord = buildDurableRecordRepresentation(record, storeRecords, recordEntries);
56371
- putEntries[recordKey] = {
56372
- data: denormalizedRecord,
56373
- metadata,
56374
- };
56466
+ const denormalizedRecord = buildDurableRecordRepresentation(record, storeRecords, recordEntries, store);
56467
+ if (denormalizedRecord !== undefined) {
56468
+ putEntries[recordKey] = {
56469
+ data: denormalizedRecord,
56470
+ metadata,
56471
+ };
56472
+ }
56375
56473
  }
56376
56474
  else {
56377
56475
  putEntries[key] = value;
@@ -59865,6 +59963,7 @@ function findReferenceFieldForSpanningField(fieldName, objectInfo) {
59865
59963
  function buildFieldUnionArray(existingRecord, incomingRecord, objectInfo) {
59866
59964
  const allFields = Array.from(new Set([...Object.keys(existingRecord.fields), ...Object.keys(incomingRecord.fields)]));
59867
59965
  const fieldUnion = [];
59966
+ let includesSpanningFields = false;
59868
59967
  allFields.forEach((fieldName) => {
59869
59968
  const objectInfoField = objectInfo.fields[fieldName];
59870
59969
  if (objectInfoField === undefined) {
@@ -59872,13 +59971,14 @@ function buildFieldUnionArray(existingRecord, incomingRecord, objectInfo) {
59872
59971
  const referenceField = findReferenceFieldForSpanningField(fieldName, objectInfo);
59873
59972
  if (referenceField !== undefined) {
59874
59973
  fieldUnion.push(`${fieldName}.Id`);
59974
+ includesSpanningFields = true;
59875
59975
  }
59876
59976
  }
59877
59977
  else {
59878
59978
  fieldUnion.push(fieldName);
59879
59979
  }
59880
59980
  });
59881
- return fieldUnion;
59981
+ return { fields: fieldUnion, includesSpanningFields };
59882
59982
  }
59883
59983
  /**
59884
59984
  * Merges (if possible) an incoming record from a priming session with an existing record in the durable store.
@@ -59910,7 +60010,7 @@ function mergeRecord(existingRecord, incomingRecord, objectInfo) {
59910
60010
  ok: false,
59911
60011
  code: 'conflict-drafts',
59912
60012
  hasDraft: true,
59913
- fieldUnion: buildFieldUnionArray(existingRecord, incomingRecord, objectInfo),
60013
+ fieldUnion: buildFieldUnionArray(existingRecord, incomingRecord, objectInfo).fields,
59914
60014
  };
59915
60015
  }
59916
60016
  // Check if incoming record's Etag is equal to the existing one
@@ -59972,10 +60072,19 @@ function mergeRecord(existingRecord, incomingRecord, objectInfo) {
59972
60072
  };
59973
60073
  }
59974
60074
  // If Etags do not match and the incoming record does not contain all fields, re-request the record
60075
+ const { fields, includesSpanningFields } = buildFieldUnionArray(existingRecord, incomingRecord, objectInfo);
60076
+ if (includesSpanningFields) {
60077
+ return {
60078
+ ok: false,
60079
+ code: 'conflict-spanning-record',
60080
+ fieldUnion: fields,
60081
+ hasDraft: false,
60082
+ };
60083
+ }
59975
60084
  return {
59976
60085
  ok: false,
59977
60086
  code: 'conflict-missing-fields',
59978
- fieldUnion: buildFieldUnionArray(existingRecord, incomingRecord, objectInfo),
60087
+ fieldUnion: fields,
59979
60088
  hasDraft: false,
59980
60089
  };
59981
60090
  }
@@ -60899,30 +61008,36 @@ function getRuntime() {
60899
61008
  const internalAdapterStore = new InMemoryStore();
60900
61009
  let getIngestRecordsForInternalAdapters;
60901
61010
  let getIngestMetadataForInternalAdapters;
61011
+ let getIngestStoreInternal;
60902
61012
  const internalAdapterDurableStore = makeRecordDenormalizingDurableStore(lazyLuvio, lazyBaseDurableStore, () => getIngestRecordsForInternalAdapters !== undefined
60903
61013
  ? getIngestRecordsForInternalAdapters()
60904
61014
  : {}, () => getIngestMetadataForInternalAdapters !== undefined
60905
61015
  ? getIngestMetadataForInternalAdapters()
60906
- : {});
61016
+ : {}, () => (getIngestStoreInternal !== undefined ? getIngestStoreInternal() : undefined));
60907
61017
  const { adapters: { getObjectInfo, getObjectInfos, getRecord, getObjectInfoDirectory }, durableEnvironment: internalAdapterDurableEnvironment, luvio: internalLuvio, } = buildInternalAdapters(internalAdapterStore, lazyNetworkAdapter, internalAdapterDurableStore, (apiName, objectInfo) => lazyObjectInfoService.ensureObjectInfoCached(apiName, objectInfo));
60908
61018
  lazyInternalLuvio = internalLuvio;
60909
61019
  getIngestRecordsForInternalAdapters =
60910
61020
  internalAdapterDurableEnvironment.getIngestStagingStoreRecords;
60911
61021
  getIngestMetadataForInternalAdapters =
60912
61022
  internalAdapterDurableEnvironment.getIngestStagingStoreRecords;
61023
+ getIngestStoreInternal = internalAdapterDurableEnvironment.getIngestStagingStore;
60913
61024
  lazyObjectInfoService = new ObjectInfoService(getObjectInfo, getObjectInfos, getObjectInfoDirectory, lazyBaseDurableStore);
60914
61025
  // creates a durable store that denormalizes scalar fields for records
60915
61026
  let getIngestRecords;
60916
61027
  let getIngestMetadata;
60917
- const recordDenormingStore = makeRecordDenormalizingDurableStore(lazyLuvio, lazyBaseDurableStore, () => (getIngestRecords !== undefined ? getIngestRecords() : {}), () => (getIngestMetadata !== undefined ? getIngestMetadata() : {}));
61028
+ let getIngestStore;
61029
+ const recordDenormingStore = makeRecordDenormalizingDurableStore(lazyLuvio, lazyBaseDurableStore, () => (getIngestRecords !== undefined ? getIngestRecords() : {}), () => (getIngestMetadata !== undefined ? getIngestMetadata() : {}), () => (getIngestStore !== undefined ? getIngestStore() : undefined));
60918
61030
  const baseEnv = new Environment(store, lazyNetworkAdapter);
60919
61031
  const gqlEnv = makeEnvironmentGraphqlAware(baseEnv);
60920
61032
  const durableEnv = makeDurable(gqlEnv, {
60921
61033
  durableStore: recordDenormingStore,
60922
61034
  enableDurableMetadataRefresh: ldsMetadataRefreshEnabled.isOpen({ fallback: false }),
61035
+ // disable luvio deep freeze in headless environments
61036
+ disableDeepFreeze: typeof window === 'undefined',
60923
61037
  });
60924
61038
  getIngestRecords = durableEnv.getIngestStagingStoreRecords;
60925
61039
  getIngestMetadata = durableEnv.getIngestStagingStoreMetadata;
61040
+ getIngestStore = durableEnv.getIngestStagingStore;
60926
61041
  // draft queue
60927
61042
  lazyDraftQueue = buildLdsDraftQueue(recordDenormingStore);
60928
61043
  const draftService = new UiApiDraftRecordService(lazyDraftQueue, () => lazyLuvio, recordDenormingStore, getObjectInfo, newRecordId, userId, formatDisplayValue);
@@ -61019,7 +61134,7 @@ register$1({
61019
61134
  id: '@salesforce/lds-network-adapter',
61020
61135
  instrument: instrument$2,
61021
61136
  });
61022
- // version: 1.266.0-dev2-7c2f3615f
61137
+ // version: 1.266.0-dev20-117d849b4
61023
61138
 
61024
61139
  const { create: create$3, keys: keys$3 } = Object;
61025
61140
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -61796,7 +61911,7 @@ function mergeData$11(existingData, newData) {
61796
61911
  };
61797
61912
  }
61798
61913
  function ingest$13(astNode, state) {
61799
- const { path, data, luvio } = state;
61914
+ const { path, data, timestamp, luvio } = state;
61800
61915
  const key = keyBuilder$16(luvio, path);
61801
61916
  return ingestNonCursorConnectionType(astNode, state, {
61802
61917
  key,
@@ -61810,7 +61925,8 @@ function ingest$13(astNode, state) {
61810
61925
  ttl: TTL$1,
61811
61926
  namespace: keyPrefix$1,
61812
61927
  representationName: "DoubleValue",
61813
- version: VERSION$1c
61928
+ version: VERSION$1c,
61929
+ ingestionTimestamp: timestamp,
61814
61930
  },
61815
61931
  });
61816
61932
  }
@@ -61938,7 +62054,7 @@ function mergeData$10(existingData, newData) {
61938
62054
  };
61939
62055
  }
61940
62056
  function ingest$12(astNode, state) {
61941
- const { path, data, luvio } = state;
62057
+ const { path, data, timestamp, luvio } = state;
61942
62058
  const key = keyBuilder$15(luvio, path);
61943
62059
  return ingestNonCursorConnectionType(astNode, state, {
61944
62060
  key,
@@ -61952,7 +62068,8 @@ function ingest$12(astNode, state) {
61952
62068
  ttl: TTL$1,
61953
62069
  namespace: keyPrefix$1,
61954
62070
  representationName: "LongValue",
61955
- version: VERSION$1b
62071
+ version: VERSION$1b,
62072
+ ingestionTimestamp: timestamp,
61956
62073
  },
61957
62074
  });
61958
62075
  }
@@ -62080,7 +62197,7 @@ function mergeData$$(existingData, newData) {
62080
62197
  };
62081
62198
  }
62082
62199
  function ingest$11(astNode, state) {
62083
- const { path, data, luvio } = state;
62200
+ const { path, data, timestamp, luvio } = state;
62084
62201
  const key = keyBuilder$14(luvio, path);
62085
62202
  return ingestNonCursorConnectionType(astNode, state, {
62086
62203
  key,
@@ -62094,7 +62211,8 @@ function ingest$11(astNode, state) {
62094
62211
  ttl: TTL$1,
62095
62212
  namespace: keyPrefix$1,
62096
62213
  representationName: "PercentValue",
62097
- version: VERSION$1a
62214
+ version: VERSION$1a,
62215
+ ingestionTimestamp: timestamp,
62098
62216
  },
62099
62217
  });
62100
62218
  }
@@ -62222,7 +62340,7 @@ function mergeData$_(existingData, newData) {
62222
62340
  };
62223
62341
  }
62224
62342
  function ingest$10(astNode, state) {
62225
- const { path, data, luvio } = state;
62343
+ const { path, data, timestamp, luvio } = state;
62226
62344
  const key = keyBuilder$13(luvio, path);
62227
62345
  return ingestNonCursorConnectionType(astNode, state, {
62228
62346
  key,
@@ -62236,7 +62354,8 @@ function ingest$10(astNode, state) {
62236
62354
  ttl: TTL$1,
62237
62355
  namespace: keyPrefix$1,
62238
62356
  representationName: "PercentAggregate",
62239
- version: VERSION$19
62357
+ version: VERSION$19,
62358
+ ingestionTimestamp: timestamp,
62240
62359
  },
62241
62360
  });
62242
62361
  }
@@ -62484,7 +62603,7 @@ function mergeData$Z(existingData, newData) {
62484
62603
  };
62485
62604
  }
62486
62605
  function ingest$$(astNode, state) {
62487
- const { path, data, luvio } = state;
62606
+ const { path, data, timestamp, luvio } = state;
62488
62607
  const key = keyBuilder$12(luvio, path);
62489
62608
  return ingestNonCursorConnectionType(astNode, state, {
62490
62609
  key,
@@ -62498,7 +62617,8 @@ function ingest$$(astNode, state) {
62498
62617
  ttl: TTL$1,
62499
62618
  namespace: keyPrefix$1,
62500
62619
  representationName: "IntValue",
62501
- version: VERSION$18
62620
+ version: VERSION$18,
62621
+ ingestionTimestamp: timestamp,
62502
62622
  },
62503
62623
  });
62504
62624
  }
@@ -62626,7 +62746,7 @@ function mergeData$Y(existingData, newData) {
62626
62746
  };
62627
62747
  }
62628
62748
  function ingest$_(astNode, state) {
62629
- const { path, data, luvio } = state;
62749
+ const { path, data, timestamp, luvio } = state;
62630
62750
  const key = keyBuilder$11(luvio, path);
62631
62751
  return ingestNonCursorConnectionType(astNode, state, {
62632
62752
  key,
@@ -62640,7 +62760,8 @@ function ingest$_(astNode, state) {
62640
62760
  ttl: TTL$1,
62641
62761
  namespace: keyPrefix$1,
62642
62762
  representationName: "StringValue",
62643
- version: VERSION$17
62763
+ version: VERSION$17,
62764
+ ingestionTimestamp: timestamp,
62644
62765
  },
62645
62766
  });
62646
62767
  }
@@ -62759,7 +62880,7 @@ function mergeData$X(existingData, newData) {
62759
62880
  };
62760
62881
  }
62761
62882
  function ingest$Z(astNode, state) {
62762
- const { path, data, luvio } = state;
62883
+ const { path, data, timestamp, luvio } = state;
62763
62884
  const key = keyBuilder$10(luvio, path);
62764
62885
  return ingestNonCursorConnectionType(astNode, state, {
62765
62886
  key,
@@ -62773,7 +62894,8 @@ function ingest$Z(astNode, state) {
62773
62894
  ttl: TTL$1,
62774
62895
  namespace: keyPrefix$1,
62775
62896
  representationName: "StringAggregate",
62776
- version: VERSION$16
62897
+ version: VERSION$16,
62898
+ ingestionTimestamp: timestamp,
62777
62899
  },
62778
62900
  });
62779
62901
  }
@@ -63001,7 +63123,7 @@ function mergeData$W(existingData, newData) {
63001
63123
  };
63002
63124
  }
63003
63125
  function ingest$Y(astNode, state) {
63004
- const { path, data, luvio } = state;
63126
+ const { path, data, timestamp, luvio } = state;
63005
63127
  const key = keyBuilder$$(luvio, path);
63006
63128
  return ingestNonCursorConnectionType(astNode, state, {
63007
63129
  key,
@@ -63015,7 +63137,8 @@ function ingest$Y(astNode, state) {
63015
63137
  ttl: TTL$1,
63016
63138
  namespace: keyPrefix$1,
63017
63139
  representationName: "IDValue",
63018
- version: VERSION$15
63140
+ version: VERSION$15,
63141
+ ingestionTimestamp: timestamp,
63019
63142
  },
63020
63143
  });
63021
63144
  }
@@ -63137,7 +63260,7 @@ function mergeData$V(existingData, newData) {
63137
63260
  };
63138
63261
  }
63139
63262
  function ingest$X(astNode, state) {
63140
- const { path, data, luvio } = state;
63263
+ const { path, data, timestamp, luvio } = state;
63141
63264
  const key = keyBuilder$_(luvio, path);
63142
63265
  return ingestNonCursorConnectionType(astNode, state, {
63143
63266
  key,
@@ -63151,7 +63274,8 @@ function ingest$X(astNode, state) {
63151
63274
  ttl: TTL$1,
63152
63275
  namespace: keyPrefix$1,
63153
63276
  representationName: "DateTimeValue",
63154
- version: VERSION$14
63277
+ version: VERSION$14,
63278
+ ingestionTimestamp: timestamp,
63155
63279
  },
63156
63280
  });
63157
63281
  }
@@ -63279,7 +63403,7 @@ function mergeData$U(existingData, newData) {
63279
63403
  };
63280
63404
  }
63281
63405
  function ingest$W(astNode, state) {
63282
- const { path, data, luvio } = state;
63406
+ const { path, data, timestamp, luvio } = state;
63283
63407
  const key = keyBuilder$Z(luvio, path);
63284
63408
  return ingestNonCursorConnectionType(astNode, state, {
63285
63409
  key,
@@ -63293,7 +63417,8 @@ function ingest$W(astNode, state) {
63293
63417
  ttl: TTL$1,
63294
63418
  namespace: keyPrefix$1,
63295
63419
  representationName: "BooleanValue",
63296
- version: VERSION$13
63420
+ version: VERSION$13,
63421
+ ingestionTimestamp: timestamp,
63297
63422
  },
63298
63423
  });
63299
63424
  }
@@ -63415,7 +63540,7 @@ function mergeData$T(existingData, newData) {
63415
63540
  };
63416
63541
  }
63417
63542
  function ingest$V(astNode, state) {
63418
- const { path, data, luvio } = state;
63543
+ const { path, data, timestamp, luvio } = state;
63419
63544
  const key = keyBuilder$Y(luvio, path);
63420
63545
  return ingestNonCursorConnectionType(astNode, state, {
63421
63546
  key,
@@ -63429,7 +63554,8 @@ function ingest$V(astNode, state) {
63429
63554
  ttl: TTL$1,
63430
63555
  namespace: keyPrefix$1,
63431
63556
  representationName: "TimeValue",
63432
- version: VERSION$12
63557
+ version: VERSION$12,
63558
+ ingestionTimestamp: timestamp,
63433
63559
  },
63434
63560
  });
63435
63561
  }
@@ -63557,7 +63683,7 @@ function mergeData$S(existingData, newData) {
63557
63683
  };
63558
63684
  }
63559
63685
  function ingest$U(astNode, state) {
63560
- const { path, data, luvio } = state;
63686
+ const { path, data, timestamp, luvio } = state;
63561
63687
  const key = keyBuilder$X(luvio, path);
63562
63688
  return ingestNonCursorConnectionType(astNode, state, {
63563
63689
  key,
@@ -63571,7 +63697,8 @@ function ingest$U(astNode, state) {
63571
63697
  ttl: TTL$1,
63572
63698
  namespace: keyPrefix$1,
63573
63699
  representationName: "DateValue",
63574
- version: VERSION$11
63700
+ version: VERSION$11,
63701
+ ingestionTimestamp: timestamp,
63575
63702
  },
63576
63703
  });
63577
63704
  }
@@ -63699,7 +63826,7 @@ function mergeData$R(existingData, newData) {
63699
63826
  };
63700
63827
  }
63701
63828
  function ingest$T(astNode, state) {
63702
- const { path, data, luvio } = state;
63829
+ const { path, data, timestamp, luvio } = state;
63703
63830
  const key = keyBuilder$W(luvio, path);
63704
63831
  return ingestNonCursorConnectionType(astNode, state, {
63705
63832
  key,
@@ -63713,7 +63840,8 @@ function ingest$T(astNode, state) {
63713
63840
  ttl: TTL$1,
63714
63841
  namespace: keyPrefix$1,
63715
63842
  representationName: "TextAreaValue",
63716
- version: VERSION$10
63843
+ version: VERSION$10,
63844
+ ingestionTimestamp: timestamp,
63717
63845
  },
63718
63846
  });
63719
63847
  }
@@ -63835,7 +63963,7 @@ function mergeData$Q(existingData, newData) {
63835
63963
  };
63836
63964
  }
63837
63965
  function ingest$S(astNode, state) {
63838
- const { path, data, luvio } = state;
63966
+ const { path, data, timestamp, luvio } = state;
63839
63967
  const key = keyBuilder$V(luvio, path);
63840
63968
  return ingestNonCursorConnectionType(astNode, state, {
63841
63969
  key,
@@ -63849,7 +63977,8 @@ function ingest$S(astNode, state) {
63849
63977
  ttl: TTL$1,
63850
63978
  namespace: keyPrefix$1,
63851
63979
  representationName: "LongTextAreaValue",
63852
- version: VERSION$$
63980
+ version: VERSION$$,
63981
+ ingestionTimestamp: timestamp,
63853
63982
  },
63854
63983
  });
63855
63984
  }
@@ -63971,7 +64100,7 @@ function mergeData$P(existingData, newData) {
63971
64100
  };
63972
64101
  }
63973
64102
  function ingest$R(astNode, state) {
63974
- const { path, data, luvio } = state;
64103
+ const { path, data, timestamp, luvio } = state;
63975
64104
  const key = keyBuilder$U(luvio, path);
63976
64105
  return ingestNonCursorConnectionType(astNode, state, {
63977
64106
  key,
@@ -63985,7 +64114,8 @@ function ingest$R(astNode, state) {
63985
64114
  ttl: TTL$1,
63986
64115
  namespace: keyPrefix$1,
63987
64116
  representationName: "RichTextAreaValue",
63988
- version: VERSION$_
64117
+ version: VERSION$_,
64118
+ ingestionTimestamp: timestamp,
63989
64119
  },
63990
64120
  });
63991
64121
  }
@@ -64107,7 +64237,7 @@ function mergeData$O(existingData, newData) {
64107
64237
  };
64108
64238
  }
64109
64239
  function ingest$Q(astNode, state) {
64110
- const { path, data, luvio } = state;
64240
+ const { path, data, timestamp, luvio } = state;
64111
64241
  const key = keyBuilder$T(luvio, path);
64112
64242
  return ingestNonCursorConnectionType(astNode, state, {
64113
64243
  key,
@@ -64121,7 +64251,8 @@ function ingest$Q(astNode, state) {
64121
64251
  ttl: TTL$1,
64122
64252
  namespace: keyPrefix$1,
64123
64253
  representationName: "PhoneNumberValue",
64124
- version: VERSION$Z
64254
+ version: VERSION$Z,
64255
+ ingestionTimestamp: timestamp,
64125
64256
  },
64126
64257
  });
64127
64258
  }
@@ -64243,7 +64374,7 @@ function mergeData$N(existingData, newData) {
64243
64374
  };
64244
64375
  }
64245
64376
  function ingest$P(astNode, state) {
64246
- const { path, data, luvio } = state;
64377
+ const { path, data, timestamp, luvio } = state;
64247
64378
  const key = keyBuilder$S(luvio, path);
64248
64379
  return ingestNonCursorConnectionType(astNode, state, {
64249
64380
  key,
@@ -64257,7 +64388,8 @@ function ingest$P(astNode, state) {
64257
64388
  ttl: TTL$1,
64258
64389
  namespace: keyPrefix$1,
64259
64390
  representationName: "EmailValue",
64260
- version: VERSION$Y
64391
+ version: VERSION$Y,
64392
+ ingestionTimestamp: timestamp,
64261
64393
  },
64262
64394
  });
64263
64395
  }
@@ -64379,7 +64511,7 @@ function mergeData$M(existingData, newData) {
64379
64511
  };
64380
64512
  }
64381
64513
  function ingest$O(astNode, state) {
64382
- const { path, data, luvio } = state;
64514
+ const { path, data, timestamp, luvio } = state;
64383
64515
  const key = keyBuilder$R(luvio, path);
64384
64516
  return ingestNonCursorConnectionType(astNode, state, {
64385
64517
  key,
@@ -64393,7 +64525,8 @@ function ingest$O(astNode, state) {
64393
64525
  ttl: TTL$1,
64394
64526
  namespace: keyPrefix$1,
64395
64527
  representationName: "UrlValue",
64396
- version: VERSION$X
64528
+ version: VERSION$X,
64529
+ ingestionTimestamp: timestamp,
64397
64530
  },
64398
64531
  });
64399
64532
  }
@@ -64515,7 +64648,7 @@ function mergeData$L(existingData, newData) {
64515
64648
  };
64516
64649
  }
64517
64650
  function ingest$N(astNode, state) {
64518
- const { path, data, luvio } = state;
64651
+ const { path, data, timestamp, luvio } = state;
64519
64652
  const key = keyBuilder$Q(luvio, path);
64520
64653
  return ingestNonCursorConnectionType(astNode, state, {
64521
64654
  key,
@@ -64529,7 +64662,8 @@ function ingest$N(astNode, state) {
64529
64662
  ttl: TTL$1,
64530
64663
  namespace: keyPrefix$1,
64531
64664
  representationName: "EncryptedStringValue",
64532
- version: VERSION$W
64665
+ version: VERSION$W,
64666
+ ingestionTimestamp: timestamp,
64533
64667
  },
64534
64668
  });
64535
64669
  }
@@ -64651,7 +64785,7 @@ function mergeData$K(existingData, newData) {
64651
64785
  };
64652
64786
  }
64653
64787
  function ingest$M(astNode, state) {
64654
- const { path, data, luvio } = state;
64788
+ const { path, data, timestamp, luvio } = state;
64655
64789
  const key = keyBuilder$P(luvio, path);
64656
64790
  return ingestNonCursorConnectionType(astNode, state, {
64657
64791
  key,
@@ -64665,7 +64799,8 @@ function ingest$M(astNode, state) {
64665
64799
  ttl: TTL$1,
64666
64800
  namespace: keyPrefix$1,
64667
64801
  representationName: "CurrencyValue",
64668
- version: VERSION$V
64802
+ version: VERSION$V,
64803
+ ingestionTimestamp: timestamp,
64669
64804
  },
64670
64805
  });
64671
64806
  }
@@ -64793,7 +64928,7 @@ function mergeData$J(existingData, newData) {
64793
64928
  };
64794
64929
  }
64795
64930
  function ingest$L(astNode, state) {
64796
- const { path, data, luvio } = state;
64931
+ const { path, data, timestamp, luvio } = state;
64797
64932
  const key = keyBuilder$O(luvio, path);
64798
64933
  return ingestNonCursorConnectionType(astNode, state, {
64799
64934
  key,
@@ -64807,7 +64942,8 @@ function ingest$L(astNode, state) {
64807
64942
  ttl: TTL$1,
64808
64943
  namespace: keyPrefix$1,
64809
64944
  representationName: "LongitudeValue",
64810
- version: VERSION$U
64945
+ version: VERSION$U,
64946
+ ingestionTimestamp: timestamp,
64811
64947
  },
64812
64948
  });
64813
64949
  }
@@ -64929,7 +65065,7 @@ function mergeData$I(existingData, newData) {
64929
65065
  };
64930
65066
  }
64931
65067
  function ingest$K(astNode, state) {
64932
- const { path, data, luvio } = state;
65068
+ const { path, data, timestamp, luvio } = state;
64933
65069
  const key = keyBuilder$N(luvio, path);
64934
65070
  return ingestNonCursorConnectionType(astNode, state, {
64935
65071
  key,
@@ -64943,7 +65079,8 @@ function ingest$K(astNode, state) {
64943
65079
  ttl: TTL$1,
64944
65080
  namespace: keyPrefix$1,
64945
65081
  representationName: "LatitudeValue",
64946
- version: VERSION$T
65082
+ version: VERSION$T,
65083
+ ingestionTimestamp: timestamp,
64947
65084
  },
64948
65085
  });
64949
65086
  }
@@ -65065,7 +65202,7 @@ function mergeData$H(existingData, newData) {
65065
65202
  };
65066
65203
  }
65067
65204
  function ingest$J(astNode, state) {
65068
- const { path, data, luvio } = state;
65205
+ const { path, data, timestamp, luvio } = state;
65069
65206
  const key = keyBuilder$M(luvio, path);
65070
65207
  return ingestNonCursorConnectionType(astNode, state, {
65071
65208
  key,
@@ -65079,7 +65216,8 @@ function ingest$J(astNode, state) {
65079
65216
  ttl: TTL$1,
65080
65217
  namespace: keyPrefix$1,
65081
65218
  representationName: "PicklistValue",
65082
- version: VERSION$S
65219
+ version: VERSION$S,
65220
+ ingestionTimestamp: timestamp,
65083
65221
  },
65084
65222
  });
65085
65223
  }
@@ -65207,7 +65345,7 @@ function mergeData$G(existingData, newData) {
65207
65345
  };
65208
65346
  }
65209
65347
  function ingest$I(astNode, state) {
65210
- const { path, data, luvio } = state;
65348
+ const { path, data, timestamp, luvio } = state;
65211
65349
  const key = keyBuilder$L(luvio, path);
65212
65350
  return ingestNonCursorConnectionType(astNode, state, {
65213
65351
  key,
@@ -65221,7 +65359,8 @@ function ingest$I(astNode, state) {
65221
65359
  ttl: TTL$1,
65222
65360
  namespace: keyPrefix$1,
65223
65361
  representationName: "MultiPicklistValue",
65224
- version: VERSION$R
65362
+ version: VERSION$R,
65363
+ ingestionTimestamp: timestamp,
65225
65364
  },
65226
65365
  });
65227
65366
  }
@@ -65349,7 +65488,7 @@ function mergeData$F(existingData, newData) {
65349
65488
  };
65350
65489
  }
65351
65490
  function ingest$H(astNode, state) {
65352
- const { path, data, luvio } = state;
65491
+ const { path, data, timestamp, luvio } = state;
65353
65492
  const key = keyBuilder$K(luvio, path);
65354
65493
  return ingestNonCursorConnectionType(astNode, state, {
65355
65494
  key,
@@ -65363,7 +65502,8 @@ function ingest$H(astNode, state) {
65363
65502
  ttl: TTL$1,
65364
65503
  namespace: keyPrefix$1,
65365
65504
  representationName: "Base64Value",
65366
- version: VERSION$Q
65505
+ version: VERSION$Q,
65506
+ ingestionTimestamp: timestamp,
65367
65507
  },
65368
65508
  });
65369
65509
  }
@@ -65485,7 +65625,7 @@ function mergeData$E(existingData, newData) {
65485
65625
  };
65486
65626
  }
65487
65627
  function ingest$G(astNode, state) {
65488
- const { path, data, luvio } = state;
65628
+ const { path, data, timestamp, luvio } = state;
65489
65629
  const key = keyBuilder$J(luvio, path);
65490
65630
  return ingestNonCursorConnectionType(astNode, state, {
65491
65631
  key,
@@ -65499,7 +65639,8 @@ function ingest$G(astNode, state) {
65499
65639
  ttl: TTL$1,
65500
65640
  namespace: keyPrefix$1,
65501
65641
  representationName: "JSONValue",
65502
- version: VERSION$P
65642
+ version: VERSION$P,
65643
+ ingestionTimestamp: timestamp,
65503
65644
  },
65504
65645
  });
65505
65646
  }
@@ -66097,7 +66238,7 @@ function mergeData$D(existingData, newData) {
66097
66238
  };
66098
66239
  }
66099
66240
  function ingest$E(astNode, state) {
66100
- const { path, data, luvio } = state;
66241
+ const { path, data, timestamp, luvio } = state;
66101
66242
  const key = keyBuilder$H(luvio, path);
66102
66243
  return ingestNonCursorConnectionType(astNode, state, {
66103
66244
  key,
@@ -66111,7 +66252,8 @@ function ingest$E(astNode, state) {
66111
66252
  ttl: TTL$1,
66112
66253
  namespace: keyPrefix$1,
66113
66254
  representationName: "CompoundField",
66114
- version: VERSION$L
66255
+ version: VERSION$L,
66256
+ ingestionTimestamp: timestamp,
66115
66257
  },
66116
66258
  });
66117
66259
  }
@@ -67097,7 +67239,7 @@ function mergeData$C(existingData, newData) {
67097
67239
  };
67098
67240
  }
67099
67241
  function ingest$D(astNode, state) {
67100
- const { path, data, luvio } = state;
67242
+ const { path, data, timestamp, luvio } = state;
67101
67243
  const key = keyBuilder$G(luvio, path);
67102
67244
  return ingestNonCursorConnectionType(astNode, state, {
67103
67245
  key,
@@ -67111,7 +67253,8 @@ function ingest$D(astNode, state) {
67111
67253
  ttl: TTL$1,
67112
67254
  namespace: keyPrefix$1,
67113
67255
  representationName: "PageInfo",
67114
- version: VERSION$K
67256
+ version: VERSION$K,
67257
+ ingestionTimestamp: timestamp,
67115
67258
  },
67116
67259
  });
67117
67260
  }
@@ -67313,7 +67456,7 @@ function mergeData$B(existingData, newData) {
67313
67456
  };
67314
67457
  }
67315
67458
  function ingest$C(astNode, state) {
67316
- const { path, data, luvio } = state;
67459
+ const { path, data, timestamp, luvio } = state;
67317
67460
  const key = keyBuilder$F(luvio, path, data);
67318
67461
  return ingestNonCursorConnectionType(astNode, state, {
67319
67462
  key,
@@ -67330,7 +67473,8 @@ function ingest$C(astNode, state) {
67330
67473
  ttl: TTL$1,
67331
67474
  namespace: keyPrefix$1,
67332
67475
  representationName: "RecordRepresentation",
67333
- version: VERSION$J
67476
+ version: VERSION$J,
67477
+ ingestionTimestamp: timestamp,
67334
67478
  },
67335
67479
  });
67336
67480
  }
@@ -67852,7 +67996,7 @@ function mergeData$A(existingData, newData) {
67852
67996
  };
67853
67997
  }
67854
67998
  function ingest$B(astNode, state) {
67855
- const { path, data, luvio } = state;
67999
+ const { path, data, timestamp, luvio } = state;
67856
68000
  const key = keyBuilder$E(luvio, path);
67857
68001
  return ingestNonCursorConnectionType(astNode, state, {
67858
68002
  key,
@@ -67866,7 +68010,8 @@ function ingest$B(astNode, state) {
67866
68010
  ttl: TTL$1,
67867
68011
  namespace: keyPrefix$1,
67868
68012
  representationName: "RecordEdge",
67869
- version: VERSION$I
68013
+ version: VERSION$I,
68014
+ ingestionTimestamp: timestamp,
67870
68015
  },
67871
68016
  });
67872
68017
  }
@@ -68071,7 +68216,7 @@ function ingestPaginationMetadata$1(astNode, state, key, sink, existingData) {
68071
68216
  }
68072
68217
  }
68073
68218
  function ingest$A(astNode, state) {
68074
- const { path, data, luvio } = state;
68219
+ const { path, data, timestamp, luvio } = state;
68075
68220
  const key = keyBuilder$D(luvio, path);
68076
68221
  return ingestCursorConnectionType(astNode, state, {
68077
68222
  key,
@@ -68087,7 +68232,8 @@ function ingest$A(astNode, state) {
68087
68232
  ttl: TTL$4,
68088
68233
  namespace: keyPrefix$1,
68089
68234
  representationName: "RecordConnection",
68090
- version: VERSION$H
68235
+ version: VERSION$H,
68236
+ ingestionTimestamp: timestamp,
68091
68237
  },
68092
68238
  });
68093
68239
  }
@@ -68256,7 +68402,7 @@ function mergeData$y(existingData, newData) {
68256
68402
  };
68257
68403
  }
68258
68404
  function ingest$z(astNode, state) {
68259
- const { path, data, luvio } = state;
68405
+ const { path, data, timestamp, luvio } = state;
68260
68406
  const key = keyBuilder$C(luvio, path);
68261
68407
  return ingestNonCursorConnectionType(astNode, state, {
68262
68408
  key,
@@ -68270,7 +68416,8 @@ function ingest$z(astNode, state) {
68270
68416
  ttl: TTL$1,
68271
68417
  namespace: keyPrefix$1,
68272
68418
  representationName: "RecordQuery",
68273
- version: VERSION$G
68419
+ version: VERSION$G,
68420
+ ingestionTimestamp: timestamp,
68274
68421
  },
68275
68422
  });
68276
68423
  }
@@ -68400,7 +68547,7 @@ function mergeData$x(existingData, newData) {
68400
68547
  };
68401
68548
  }
68402
68549
  function ingest$y(astNode, state) {
68403
- const { path, data, luvio } = state;
68550
+ const { path, data, timestamp, luvio } = state;
68404
68551
  const key = keyBuilder$B(luvio, path);
68405
68552
  return ingestNonCursorConnectionType(astNode, state, {
68406
68553
  key,
@@ -68414,7 +68561,8 @@ function ingest$y(astNode, state) {
68414
68561
  ttl: TTL$1,
68415
68562
  namespace: keyPrefix$1,
68416
68563
  representationName: "BooleanAggregate",
68417
- version: VERSION$F
68564
+ version: VERSION$F,
68565
+ ingestionTimestamp: timestamp,
68418
68566
  },
68419
68567
  });
68420
68568
  }
@@ -68583,7 +68731,7 @@ function mergeData$w(existingData, newData) {
68583
68731
  };
68584
68732
  }
68585
68733
  function ingest$x(astNode, state) {
68586
- const { path, data, luvio } = state;
68734
+ const { path, data, timestamp, luvio } = state;
68587
68735
  const key = keyBuilder$A(luvio, path);
68588
68736
  return ingestNonCursorConnectionType(astNode, state, {
68589
68737
  key,
@@ -68597,7 +68745,8 @@ function ingest$x(astNode, state) {
68597
68745
  ttl: TTL$1,
68598
68746
  namespace: keyPrefix$1,
68599
68747
  representationName: "CurrencyAggregate",
68600
- version: VERSION$E
68748
+ version: VERSION$E,
68749
+ ingestionTimestamp: timestamp,
68601
68750
  },
68602
68751
  });
68603
68752
  }
@@ -68845,7 +68994,7 @@ function mergeData$v(existingData, newData) {
68845
68994
  };
68846
68995
  }
68847
68996
  function ingest$w(astNode, state) {
68848
- const { path, data, luvio } = state;
68997
+ const { path, data, timestamp, luvio } = state;
68849
68998
  const key = keyBuilder$z(luvio, path);
68850
68999
  return ingestNonCursorConnectionType(astNode, state, {
68851
69000
  key,
@@ -68859,7 +69008,8 @@ function ingest$w(astNode, state) {
68859
69008
  ttl: TTL$1,
68860
69009
  namespace: keyPrefix$1,
68861
69010
  representationName: "DateFunctionAggregation",
68862
- version: VERSION$D
69011
+ version: VERSION$D,
69012
+ ingestionTimestamp: timestamp,
68863
69013
  },
68864
69014
  });
68865
69015
  }
@@ -68993,7 +69143,7 @@ function mergeData$u(existingData, newData) {
68993
69143
  };
68994
69144
  }
68995
69145
  function ingest$v(astNode, state) {
68996
- const { path, data, luvio } = state;
69146
+ const { path, data, timestamp, luvio } = state;
68997
69147
  const key = keyBuilder$y(luvio, path);
68998
69148
  return ingestNonCursorConnectionType(astNode, state, {
68999
69149
  key,
@@ -69007,7 +69157,8 @@ function ingest$v(astNode, state) {
69007
69157
  ttl: TTL$1,
69008
69158
  namespace: keyPrefix$1,
69009
69159
  representationName: "DateAggregate",
69010
- version: VERSION$C
69160
+ version: VERSION$C,
69161
+ ingestionTimestamp: timestamp,
69011
69162
  },
69012
69163
  });
69013
69164
  }
@@ -69374,7 +69525,7 @@ function mergeData$t(existingData, newData) {
69374
69525
  };
69375
69526
  }
69376
69527
  function ingest$u(astNode, state) {
69377
- const { path, data, luvio } = state;
69528
+ const { path, data, timestamp, luvio } = state;
69378
69529
  const key = keyBuilder$x(luvio, path);
69379
69530
  return ingestNonCursorConnectionType(astNode, state, {
69380
69531
  key,
@@ -69388,7 +69539,8 @@ function ingest$u(astNode, state) {
69388
69539
  ttl: TTL$1,
69389
69540
  namespace: keyPrefix$1,
69390
69541
  representationName: "DoubleAggregate",
69391
- version: VERSION$B
69542
+ version: VERSION$B,
69543
+ ingestionTimestamp: timestamp,
69392
69544
  },
69393
69545
  });
69394
69546
  }
@@ -69627,7 +69779,7 @@ function mergeData$s(existingData, newData) {
69627
69779
  };
69628
69780
  }
69629
69781
  function ingest$t(astNode, state) {
69630
- const { path, data, luvio } = state;
69782
+ const { path, data, timestamp, luvio } = state;
69631
69783
  const key = keyBuilder$w(luvio, path);
69632
69784
  return ingestNonCursorConnectionType(astNode, state, {
69633
69785
  key,
@@ -69641,7 +69793,8 @@ function ingest$t(astNode, state) {
69641
69793
  ttl: TTL$1,
69642
69794
  namespace: keyPrefix$1,
69643
69795
  representationName: "EmailAggregate",
69644
- version: VERSION$A
69796
+ version: VERSION$A,
69797
+ ingestionTimestamp: timestamp,
69645
69798
  },
69646
69799
  });
69647
69800
  }
@@ -69872,7 +70025,7 @@ function mergeData$r(existingData, newData) {
69872
70025
  };
69873
70026
  }
69874
70027
  function ingest$s(astNode, state) {
69875
- const { path, data, luvio } = state;
70028
+ const { path, data, timestamp, luvio } = state;
69876
70029
  const key = keyBuilder$v(luvio, path);
69877
70030
  return ingestNonCursorConnectionType(astNode, state, {
69878
70031
  key,
@@ -69886,7 +70039,8 @@ function ingest$s(astNode, state) {
69886
70039
  ttl: TTL$1,
69887
70040
  namespace: keyPrefix$1,
69888
70041
  representationName: "IDAggregate",
69889
- version: VERSION$z
70042
+ version: VERSION$z,
70043
+ ingestionTimestamp: timestamp,
69890
70044
  },
69891
70045
  });
69892
70046
  }
@@ -70117,7 +70271,7 @@ function mergeData$q(existingData, newData) {
70117
70271
  };
70118
70272
  }
70119
70273
  function ingest$r(astNode, state) {
70120
- const { path, data, luvio } = state;
70274
+ const { path, data, timestamp, luvio } = state;
70121
70275
  const key = keyBuilder$u(luvio, path);
70122
70276
  return ingestNonCursorConnectionType(astNode, state, {
70123
70277
  key,
@@ -70131,7 +70285,8 @@ function ingest$r(astNode, state) {
70131
70285
  ttl: TTL$1,
70132
70286
  namespace: keyPrefix$1,
70133
70287
  representationName: "IntAggregate",
70134
- version: VERSION$y
70288
+ version: VERSION$y,
70289
+ ingestionTimestamp: timestamp,
70135
70290
  },
70136
70291
  });
70137
70292
  }
@@ -70390,7 +70545,7 @@ function mergeData$p(existingData, newData) {
70390
70545
  };
70391
70546
  }
70392
70547
  function ingest$q(astNode, state) {
70393
- const { path, data, luvio } = state;
70548
+ const { path, data, timestamp, luvio } = state;
70394
70549
  const key = keyBuilder$t(luvio, path);
70395
70550
  return ingestNonCursorConnectionType(astNode, state, {
70396
70551
  key,
@@ -70404,7 +70559,8 @@ function ingest$q(astNode, state) {
70404
70559
  ttl: TTL$1,
70405
70560
  namespace: keyPrefix$1,
70406
70561
  representationName: "LatitudeAggregate",
70407
- version: VERSION$x
70562
+ version: VERSION$x,
70563
+ ingestionTimestamp: timestamp,
70408
70564
  },
70409
70565
  });
70410
70566
  }
@@ -70646,7 +70802,7 @@ function mergeData$o(existingData, newData) {
70646
70802
  };
70647
70803
  }
70648
70804
  function ingest$p(astNode, state) {
70649
- const { path, data, luvio } = state;
70805
+ const { path, data, timestamp, luvio } = state;
70650
70806
  const key = keyBuilder$s(luvio, path);
70651
70807
  return ingestNonCursorConnectionType(astNode, state, {
70652
70808
  key,
@@ -70660,7 +70816,8 @@ function ingest$p(astNode, state) {
70660
70816
  ttl: TTL$1,
70661
70817
  namespace: keyPrefix$1,
70662
70818
  representationName: "LongitudeAggregate",
70663
- version: VERSION$w
70819
+ version: VERSION$w,
70820
+ ingestionTimestamp: timestamp,
70664
70821
  },
70665
70822
  });
70666
70823
  }
@@ -70902,7 +71059,7 @@ function mergeData$n(existingData, newData) {
70902
71059
  };
70903
71060
  }
70904
71061
  function ingest$o(astNode, state) {
70905
- const { path, data, luvio } = state;
71062
+ const { path, data, timestamp, luvio } = state;
70906
71063
  const key = keyBuilder$r(luvio, path);
70907
71064
  return ingestNonCursorConnectionType(astNode, state, {
70908
71065
  key,
@@ -70916,7 +71073,8 @@ function ingest$o(astNode, state) {
70916
71073
  ttl: TTL$1,
70917
71074
  namespace: keyPrefix$1,
70918
71075
  representationName: "LongAggregate",
70919
- version: VERSION$v
71076
+ version: VERSION$v,
71077
+ ingestionTimestamp: timestamp,
70920
71078
  },
70921
71079
  });
70922
71080
  }
@@ -71175,7 +71333,7 @@ function mergeData$m(existingData, newData) {
71175
71333
  };
71176
71334
  }
71177
71335
  function ingest$n(astNode, state) {
71178
- const { path, data, luvio } = state;
71336
+ const { path, data, timestamp, luvio } = state;
71179
71337
  const key = keyBuilder$q(luvio, path);
71180
71338
  return ingestNonCursorConnectionType(astNode, state, {
71181
71339
  key,
@@ -71189,7 +71347,8 @@ function ingest$n(astNode, state) {
71189
71347
  ttl: TTL$1,
71190
71348
  namespace: keyPrefix$1,
71191
71349
  representationName: "PhoneNumberAggregate",
71192
- version: VERSION$u
71350
+ version: VERSION$u,
71351
+ ingestionTimestamp: timestamp,
71193
71352
  },
71194
71353
  });
71195
71354
  }
@@ -71420,7 +71579,7 @@ function mergeData$l(existingData, newData) {
71420
71579
  };
71421
71580
  }
71422
71581
  function ingest$m(astNode, state) {
71423
- const { path, data, luvio } = state;
71582
+ const { path, data, timestamp, luvio } = state;
71424
71583
  const key = keyBuilder$p(luvio, path);
71425
71584
  return ingestNonCursorConnectionType(astNode, state, {
71426
71585
  key,
@@ -71434,7 +71593,8 @@ function ingest$m(astNode, state) {
71434
71593
  ttl: TTL$1,
71435
71594
  namespace: keyPrefix$1,
71436
71595
  representationName: "PicklistAggregate",
71437
- version: VERSION$t
71596
+ version: VERSION$t,
71597
+ ingestionTimestamp: timestamp,
71438
71598
  },
71439
71599
  });
71440
71600
  }
@@ -71671,7 +71831,7 @@ function mergeData$k(existingData, newData) {
71671
71831
  };
71672
71832
  }
71673
71833
  function ingest$l(astNode, state) {
71674
- const { path, data, luvio } = state;
71834
+ const { path, data, timestamp, luvio } = state;
71675
71835
  const key = keyBuilder$o(luvio, path);
71676
71836
  return ingestNonCursorConnectionType(astNode, state, {
71677
71837
  key,
@@ -71685,7 +71845,8 @@ function ingest$l(astNode, state) {
71685
71845
  ttl: TTL$1,
71686
71846
  namespace: keyPrefix$1,
71687
71847
  representationName: "TextAreaAggregate",
71688
- version: VERSION$s
71848
+ version: VERSION$s,
71849
+ ingestionTimestamp: timestamp,
71689
71850
  },
71690
71851
  });
71691
71852
  }
@@ -71916,7 +72077,7 @@ function mergeData$j(existingData, newData) {
71916
72077
  };
71917
72078
  }
71918
72079
  function ingest$k(astNode, state) {
71919
- const { path, data, luvio } = state;
72080
+ const { path, data, timestamp, luvio } = state;
71920
72081
  const key = keyBuilder$n(luvio, path);
71921
72082
  return ingestNonCursorConnectionType(astNode, state, {
71922
72083
  key,
@@ -71930,7 +72091,8 @@ function ingest$k(astNode, state) {
71930
72091
  ttl: TTL$1,
71931
72092
  namespace: keyPrefix$1,
71932
72093
  representationName: "TimeAggregate",
71933
- version: VERSION$r
72094
+ version: VERSION$r,
72095
+ ingestionTimestamp: timestamp,
71934
72096
  },
71935
72097
  });
71936
72098
  }
@@ -72105,7 +72267,7 @@ function mergeData$i(existingData, newData) {
72105
72267
  };
72106
72268
  }
72107
72269
  function ingest$j(astNode, state) {
72108
- const { path, data, luvio } = state;
72270
+ const { path, data, timestamp, luvio } = state;
72109
72271
  const key = keyBuilder$m(luvio, path);
72110
72272
  return ingestNonCursorConnectionType(astNode, state, {
72111
72273
  key,
@@ -72119,7 +72281,8 @@ function ingest$j(astNode, state) {
72119
72281
  ttl: TTL$1,
72120
72282
  namespace: keyPrefix$1,
72121
72283
  representationName: "UrlAggregate",
72122
- version: VERSION$q
72284
+ version: VERSION$q,
72285
+ ingestionTimestamp: timestamp,
72123
72286
  },
72124
72287
  });
72125
72288
  }
@@ -72473,7 +72636,7 @@ function mergeData$h(existingData, newData) {
72473
72636
  };
72474
72637
  }
72475
72638
  function ingest$i(astNode, state) {
72476
- const { path, data, luvio } = state;
72639
+ const { path, data, timestamp, luvio } = state;
72477
72640
  const key = keyBuilder$l(luvio, path);
72478
72641
  return ingestNonCursorConnectionType(astNode, state, {
72479
72642
  key,
@@ -72487,7 +72650,8 @@ function ingest$i(astNode, state) {
72487
72650
  ttl: TTL$1,
72488
72651
  namespace: keyPrefix$1,
72489
72652
  representationName: "RecordAggregate",
72490
- version: VERSION$p
72653
+ version: VERSION$p,
72654
+ ingestionTimestamp: timestamp,
72491
72655
  },
72492
72656
  });
72493
72657
  }
@@ -72841,7 +73005,7 @@ function mergeData$g(existingData, newData) {
72841
73005
  };
72842
73006
  }
72843
73007
  function ingest$h(astNode, state) {
72844
- const { path, data, luvio } = state;
73008
+ const { path, data, timestamp, luvio } = state;
72845
73009
  const key = keyBuilder$k(luvio, path);
72846
73010
  return ingestNonCursorConnectionType(astNode, state, {
72847
73011
  key,
@@ -72855,7 +73019,8 @@ function ingest$h(astNode, state) {
72855
73019
  ttl: TTL$1,
72856
73020
  namespace: keyPrefix$1,
72857
73021
  representationName: "RecordResult",
72858
- version: VERSION$o
73022
+ version: VERSION$o,
73023
+ ingestionTimestamp: timestamp,
72859
73024
  },
72860
73025
  });
72861
73026
  }
@@ -73003,7 +73168,7 @@ function mergeData$f(existingData, newData) {
73003
73168
  };
73004
73169
  }
73005
73170
  function ingest$g(astNode, state) {
73006
- const { path, data, luvio } = state;
73171
+ const { path, data, timestamp, luvio } = state;
73007
73172
  const key = keyBuilder$j(luvio, path);
73008
73173
  return ingestNonCursorConnectionType(astNode, state, {
73009
73174
  key,
@@ -73017,7 +73182,8 @@ function ingest$g(astNode, state) {
73017
73182
  ttl: TTL$1,
73018
73183
  namespace: keyPrefix$1,
73019
73184
  representationName: "RecordAggregateEdge",
73020
- version: VERSION$n
73185
+ version: VERSION$n,
73186
+ ingestionTimestamp: timestamp,
73021
73187
  },
73022
73188
  });
73023
73189
  }
@@ -73221,7 +73387,7 @@ function ingestPaginationMetadata(astNode, state, key, sink, existingData) {
73221
73387
  }
73222
73388
  }
73223
73389
  function ingest$f(astNode, state) {
73224
- const { path, data, luvio } = state;
73390
+ const { path, data, timestamp, luvio } = state;
73225
73391
  const key = keyBuilder$i(luvio, path);
73226
73392
  return ingestCursorConnectionType(astNode, state, {
73227
73393
  key,
@@ -73237,7 +73403,8 @@ function ingest$f(astNode, state) {
73237
73403
  ttl: TTL$1,
73238
73404
  namespace: keyPrefix$1,
73239
73405
  representationName: "RecordAggregateConnection",
73240
- version: VERSION$m
73406
+ version: VERSION$m,
73407
+ ingestionTimestamp: timestamp,
73241
73408
  },
73242
73409
  });
73243
73410
  }
@@ -73454,7 +73621,7 @@ function mergeData$d(existingData, newData) {
73454
73621
  };
73455
73622
  }
73456
73623
  function ingest$e(astNode, state) {
73457
- const { path, data, luvio } = state;
73624
+ const { path, data, timestamp, luvio } = state;
73458
73625
  const key = keyBuilder$h(luvio, path);
73459
73626
  return ingestNonCursorConnectionType(astNode, state, {
73460
73627
  key,
@@ -73468,7 +73635,8 @@ function ingest$e(astNode, state) {
73468
73635
  ttl: TTL$1,
73469
73636
  namespace: keyPrefix$1,
73470
73637
  representationName: "RecordQueryAggregate",
73471
- version: VERSION$l
73638
+ version: VERSION$l,
73639
+ ingestionTimestamp: timestamp,
73472
73640
  },
73473
73641
  });
73474
73642
  }
@@ -73598,7 +73766,7 @@ function mergeData$c(existingData, newData) {
73598
73766
  };
73599
73767
  }
73600
73768
  function ingest$d(astNode, state) {
73601
- const { path, data, luvio } = state;
73769
+ const { path, data, timestamp, luvio } = state;
73602
73770
  const key = keyBuilder$g(luvio, path);
73603
73771
  return ingestNonCursorConnectionType(astNode, state, {
73604
73772
  key,
@@ -73612,7 +73780,8 @@ function ingest$d(astNode, state) {
73612
73780
  ttl: TTL$1,
73613
73781
  namespace: keyPrefix$1,
73614
73782
  representationName: "ChildRelationship",
73615
- version: VERSION$k
73783
+ version: VERSION$k,
73784
+ ingestionTimestamp: timestamp,
73616
73785
  },
73617
73786
  });
73618
73787
  }
@@ -73790,7 +73959,7 @@ function mergeData$b(existingData, newData) {
73790
73959
  };
73791
73960
  }
73792
73961
  function ingest$c(astNode, state) {
73793
- const { path, data, luvio } = state;
73962
+ const { path, data, timestamp, luvio } = state;
73794
73963
  const key = keyBuilder$f(luvio, path);
73795
73964
  return ingestNonCursorConnectionType(astNode, state, {
73796
73965
  key,
@@ -73804,7 +73973,8 @@ function ingest$c(astNode, state) {
73804
73973
  ttl: TTL$1,
73805
73974
  namespace: keyPrefix$1,
73806
73975
  representationName: "DependentField",
73807
- version: VERSION$j
73976
+ version: VERSION$j,
73977
+ ingestionTimestamp: timestamp,
73808
73978
  },
73809
73979
  });
73810
73980
  }
@@ -73929,7 +74099,7 @@ function mergeData$a(existingData, newData) {
73929
74099
  };
73930
74100
  }
73931
74101
  function ingest$b(astNode, state) {
73932
- const { path, data, luvio } = state;
74102
+ const { path, data, timestamp, luvio } = state;
73933
74103
  const key = keyBuilder$e(luvio, path);
73934
74104
  return ingestNonCursorConnectionType(astNode, state, {
73935
74105
  key,
@@ -73943,7 +74113,8 @@ function ingest$b(astNode, state) {
73943
74113
  ttl: TTL$1,
73944
74114
  namespace: keyPrefix$1,
73945
74115
  representationName: "FilteredLookupInfo",
73946
- version: VERSION$i
74116
+ version: VERSION$i,
74117
+ ingestionTimestamp: timestamp,
73947
74118
  },
73948
74119
  });
73949
74120
  }
@@ -74083,7 +74254,7 @@ function mergeData$9(existingData, newData) {
74083
74254
  };
74084
74255
  }
74085
74256
  function ingest$a(astNode, state) {
74086
- const { path, data, luvio } = state;
74257
+ const { path, data, timestamp, luvio } = state;
74087
74258
  const key = keyBuilder$d(luvio, path);
74088
74259
  return ingestNonCursorConnectionType(astNode, state, {
74089
74260
  key,
@@ -74097,7 +74268,8 @@ function ingest$a(astNode, state) {
74097
74268
  ttl: TTL$1,
74098
74269
  namespace: keyPrefix$1,
74099
74270
  representationName: "ReferenceToInfo",
74100
- version: VERSION$h
74271
+ version: VERSION$h,
74272
+ ingestionTimestamp: timestamp,
74101
74273
  },
74102
74274
  });
74103
74275
  }
@@ -74257,7 +74429,7 @@ function mergeData$8(existingData, newData) {
74257
74429
  };
74258
74430
  }
74259
74431
  function ingest$9(astNode, state) {
74260
- const { path, data, luvio } = state;
74432
+ const { path, data, timestamp, luvio } = state;
74261
74433
  const key = keyBuilder$c(luvio, path);
74262
74434
  return ingestNonCursorConnectionType(astNode, state, {
74263
74435
  key,
@@ -74271,7 +74443,8 @@ function ingest$9(astNode, state) {
74271
74443
  ttl: TTL$1,
74272
74444
  namespace: keyPrefix$1,
74273
74445
  representationName: "Field",
74274
- version: VERSION$g
74446
+ version: VERSION$g,
74447
+ ingestionTimestamp: timestamp,
74275
74448
  },
74276
74449
  });
74277
74450
  }
@@ -74649,7 +74822,7 @@ function mergeData$7(existingData, newData) {
74649
74822
  };
74650
74823
  }
74651
74824
  function ingest$8(astNode, state) {
74652
- const { path, data, luvio } = state;
74825
+ const { path, data, timestamp, luvio } = state;
74653
74826
  const key = keyBuilder$b(luvio, path);
74654
74827
  return ingestNonCursorConnectionType(astNode, state, {
74655
74828
  key,
@@ -74663,7 +74836,8 @@ function ingest$8(astNode, state) {
74663
74836
  ttl: TTL$1,
74664
74837
  namespace: keyPrefix$1,
74665
74838
  representationName: "RecordTypeInfo",
74666
- version: VERSION$f
74839
+ version: VERSION$f,
74840
+ ingestionTimestamp: timestamp,
74667
74841
  },
74668
74842
  });
74669
74843
  }
@@ -74824,7 +74998,7 @@ function mergeData$6(existingData, newData) {
74824
74998
  };
74825
74999
  }
74826
75000
  function ingest$7(astNode, state) {
74827
- const { path, data, luvio } = state;
75001
+ const { path, data, timestamp, luvio } = state;
74828
75002
  const key = keyBuilder$a(luvio, path);
74829
75003
  return ingestNonCursorConnectionType(astNode, state, {
74830
75004
  key,
@@ -74838,7 +75012,8 @@ function ingest$7(astNode, state) {
74838
75012
  ttl: TTL$1,
74839
75013
  namespace: keyPrefix$1,
74840
75014
  representationName: "ThemeInfo",
74841
- version: VERSION$e
75015
+ version: VERSION$e,
75016
+ ingestionTimestamp: timestamp,
74842
75017
  },
74843
75018
  });
74844
75019
  }
@@ -74964,7 +75139,7 @@ function mergeData$5(existingData, newData) {
74964
75139
  };
74965
75140
  }
74966
75141
  function ingest$6(astNode, state) {
74967
- const { path, data, luvio } = state;
75142
+ const { path, data, timestamp, luvio } = state;
74968
75143
  const key = keyBuilder$9(luvio, path);
74969
75144
  return ingestNonCursorConnectionType(astNode, state, {
74970
75145
  key,
@@ -74978,7 +75153,8 @@ function ingest$6(astNode, state) {
74978
75153
  ttl: TTL$3,
74979
75154
  namespace: keyPrefix$1,
74980
75155
  representationName: "ObjectInfo",
74981
- version: VERSION$d
75156
+ version: VERSION$d,
75157
+ ingestionTimestamp: timestamp,
74982
75158
  },
74983
75159
  });
74984
75160
  }
@@ -75368,7 +75544,7 @@ function mergeData$4(existingData, newData) {
75368
75544
  };
75369
75545
  }
75370
75546
  function ingest$5(astNode, state) {
75371
- const { path, data, luvio } = state;
75547
+ const { path, data, timestamp, luvio } = state;
75372
75548
  const key = keyBuilder$8(luvio, path);
75373
75549
  return ingestNonCursorConnectionType(astNode, state, {
75374
75550
  key,
@@ -75382,7 +75558,8 @@ function ingest$5(astNode, state) {
75382
75558
  ttl: TTL$1,
75383
75559
  namespace: keyPrefix$1,
75384
75560
  representationName: "ListColumn",
75385
- version: VERSION$c
75561
+ version: VERSION$c,
75562
+ ingestionTimestamp: timestamp,
75386
75563
  },
75387
75564
  });
75388
75565
  }
@@ -75528,7 +75705,7 @@ function mergeData$3(existingData, newData) {
75528
75705
  };
75529
75706
  }
75530
75707
  function ingest$4(astNode, state) {
75531
- const { path, data, luvio } = state;
75708
+ const { path, data, timestamp, luvio } = state;
75532
75709
  const key = keyBuilder$7(luvio, path);
75533
75710
  return ingestNonCursorConnectionType(astNode, state, {
75534
75711
  key,
@@ -75542,7 +75719,8 @@ function ingest$4(astNode, state) {
75542
75719
  ttl: TTL$1,
75543
75720
  namespace: keyPrefix$1,
75544
75721
  representationName: "ListOrder",
75545
- version: VERSION$b
75722
+ version: VERSION$b,
75723
+ ingestionTimestamp: timestamp,
75546
75724
  },
75547
75725
  });
75548
75726
  }
@@ -75677,7 +75855,7 @@ function mergeData$2(existingData, newData) {
75677
75855
  };
75678
75856
  }
75679
75857
  function ingest$3(astNode, state) {
75680
- const { path, data, luvio } = state;
75858
+ const { path, data, timestamp, luvio } = state;
75681
75859
  const key = keyBuilder$6(luvio, path);
75682
75860
  return ingestNonCursorConnectionType(astNode, state, {
75683
75861
  key,
@@ -75691,7 +75869,8 @@ function ingest$3(astNode, state) {
75691
75869
  ttl: TTL$2,
75692
75870
  namespace: keyPrefix$1,
75693
75871
  representationName: "RelatedListInfo",
75694
- version: VERSION$a
75872
+ version: VERSION$a,
75873
+ ingestionTimestamp: timestamp,
75695
75874
  },
75696
75875
  });
75697
75876
  }
@@ -75913,7 +76092,7 @@ function mergeData$1(existingData, newData) {
75913
76092
  };
75914
76093
  }
75915
76094
  function ingest$2(astNode, state) {
75916
- const { path, data, luvio } = state;
76095
+ const { path, data, timestamp, luvio } = state;
75917
76096
  const key = keyBuilder$5(luvio, path);
75918
76097
  return ingestNonCursorConnectionType(astNode, state, {
75919
76098
  key,
@@ -75927,7 +76106,8 @@ function ingest$2(astNode, state) {
75927
76106
  ttl: TTL$1,
75928
76107
  namespace: keyPrefix$1,
75929
76108
  representationName: "UIAPI",
75930
- version: VERSION$9
76109
+ version: VERSION$9,
76110
+ ingestionTimestamp: timestamp,
75931
76111
  },
75932
76112
  });
75933
76113
  }
@@ -76151,7 +76331,7 @@ function mergeData(existingData, newData) {
76151
76331
  };
76152
76332
  }
76153
76333
  function ingest$1(astNode, state) {
76154
- const { path, data, luvio } = state;
76334
+ const { path, data, timestamp, luvio } = state;
76155
76335
  const key = keyBuilder$4(luvio, astNode, state.variables, state.fragments);
76156
76336
  return ingestNonCursorConnectionType(astNode, state, {
76157
76337
  key,
@@ -76165,7 +76345,8 @@ function ingest$1(astNode, state) {
76165
76345
  ttl: TTL$1,
76166
76346
  namespace: keyPrefix$1,
76167
76347
  representationName: "Query",
76168
- version: VERSION$8
76348
+ version: VERSION$8,
76349
+ ingestionTimestamp: timestamp,
76169
76350
  },
76170
76351
  });
76171
76352
  }
@@ -79348,7 +79529,7 @@ register$1({
79348
79529
  configuration: { ...configurationForGraphQLAdapters$1 },
79349
79530
  instrument: instrument$1,
79350
79531
  });
79351
- // version: 1.266.0-dev2-e69d357fb
79532
+ // version: 1.266.0-dev20-1e6923024
79352
79533
 
79353
79534
  // On core the unstable adapters are re-exported with different names,
79354
79535
  // we want to match them here.
@@ -79999,6 +80180,7 @@ function genericCreateIngest(ast, variables) {
79999
80180
  namespace: namespace,
80000
80181
  ttl: DEFAULT_GRAPHQL_TTL,
80001
80182
  version: GRAPHQL_INGEST_VERSION,
80183
+ ingestionTimestamp: timestamp,
80002
80184
  });
80003
80185
  }
80004
80186
  return {
@@ -80094,6 +80276,7 @@ function ingestConnectionEdges(sel, data, path, luvio, store, timestamp, variabl
80094
80276
  namespace: namespace,
80095
80277
  ttl: DEFAULT_GRAPHQL_TTL,
80096
80278
  version: GRAPHQL_INGEST_VERSION,
80279
+ ingestionTimestamp: timestamp,
80097
80280
  });
80098
80281
  return {
80099
80282
  __ref: key,
@@ -80134,6 +80317,7 @@ const createIngest$1 = (ast, key, variables) => {
80134
80317
  namespace: namespace,
80135
80318
  ttl: DEFAULT_GRAPHQL_TTL,
80136
80319
  version: GRAPHQL_INGEST_VERSION,
80320
+ ingestionTimestamp: timestamp,
80137
80321
  });
80138
80322
  return {
80139
80323
  __ref: key,
@@ -81599,7 +81783,7 @@ withDefaultLuvio((luvio) => {
81599
81783
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
81600
81784
  graphQLImperative = ldsAdapter;
81601
81785
  });
81602
- // version: 1.266.0-dev2-e69d357fb
81786
+ // version: 1.266.0-dev20-1e6923024
81603
81787
 
81604
81788
  var gqlApi = /*#__PURE__*/Object.freeze({
81605
81789
  __proto__: null,
@@ -81942,8 +82126,22 @@ function invokeAdapterWithDraftToReplace(adapterId, config, draftIdToReplace, on
81942
82126
  draftIds !== undefined &&
81943
82127
  draftIds.length > 0) {
81944
82128
  const draftId = draftIds[draftIds.length - 1];
81945
- draftManager.replaceAction(draftIdToReplace, draftId).then(() => {
82129
+ draftManager
82130
+ .replaceAction(draftIdToReplace, draftId)
82131
+ .then(() => {
81946
82132
  onResponse(responseValue);
82133
+ })
82134
+ .catch((error) => {
82135
+ let message = 'Unknown error replacing draft';
82136
+ if (error instanceof Error) {
82137
+ message = error.message;
82138
+ }
82139
+ else if (typeof error === 'string') {
82140
+ message = error;
82141
+ }
82142
+ onResponse({
82143
+ error: createNativeFetchErrorResponse(message),
82144
+ });
81947
82145
  });
81948
82146
  }
81949
82147
  else {
@@ -82297,7 +82495,7 @@ const callbacks$1 = [];
82297
82495
  function register(r) {
82298
82496
  callbacks$1.forEach((callback) => callback(r));
82299
82497
  }
82300
- // version: 1.266.0-dev2-7c2f3615f
82498
+ // version: 1.266.0-dev20-117d849b4
82301
82499
 
82302
82500
  /**
82303
82501
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -87202,4 +87400,4 @@ const { luvio } = getRuntime();
87202
87400
  setDefaultLuvio({ luvio });
87203
87401
 
87204
87402
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
87205
- // version: 1.266.0-dev2-7c2f3615f
87403
+ // version: 1.266.0-dev20-117d849b4