@salesforce/lds-worker-api 1.354.0-dev11 → 1.354.0-dev12

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.
@@ -4274,7 +4274,7 @@ function withDefaultLuvio(callback) {
4274
4274
  }
4275
4275
  callbacks.push(callback);
4276
4276
  }
4277
- // version: 1.354.0-dev11-5ded66ad52
4277
+ // version: 1.354.0-dev12-cc66432529
4278
4278
 
4279
4279
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4280
4280
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -4912,7 +4912,7 @@ function safeSanitizeGraphQLConfigObject(config) {
4912
4912
  }
4913
4913
 
4914
4914
  // For use by callers within this module to instrument interesting things.
4915
- let instrumentation$5 = {
4915
+ let instrumentation$6 = {
4916
4916
  refreshCalled: (_fromSource) => { },
4917
4917
  instrumentAdapter: (adapter, _metadata) => {
4918
4918
  return adapter;
@@ -4927,20 +4927,20 @@ let instrumentation$5 = {
4927
4927
  * @param newInstrumentation instrumentation hooks to be overridden
4928
4928
  */
4929
4929
  function instrument$4(newInstrumentation) {
4930
- instrumentation$5 = Object.assign(instrumentation$5, newInstrumentation);
4930
+ instrumentation$6 = Object.assign(instrumentation$6, newInstrumentation);
4931
4931
  }
4932
4932
 
4933
4933
  let refresh$3;
4934
4934
  function bindWireRefresh(luvio) {
4935
4935
  const wireRefresh = bindWireRefresh$1(luvio);
4936
4936
  refresh$3 = (data, apiFamily) => {
4937
- instrumentation$5.refreshCalled(apiFamily);
4937
+ instrumentation$6.refreshCalled(apiFamily);
4938
4938
  return wireRefresh(data);
4939
4939
  };
4940
4940
  }
4941
4941
 
4942
4942
  function createInstrumentedAdapter(adapter, metadata) {
4943
- return instrumentation$5.instrumentAdapter(adapter, metadata);
4943
+ return instrumentation$6.instrumentAdapter(adapter, metadata);
4944
4944
  }
4945
4945
 
4946
4946
  function createLDSAdapter(luvio, name, factory) {
@@ -5286,7 +5286,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
5286
5286
  const { apiFamily, name } = metadata;
5287
5287
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5288
5288
  }
5289
- // version: 1.354.0-dev11-5ded66ad52
5289
+ // version: 1.354.0-dev12-cc66432529
5290
5290
 
5291
5291
  /**
5292
5292
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -5898,7 +5898,7 @@ function ensureRegisteredOnce$2(registration) {
5898
5898
  }
5899
5899
 
5900
5900
  // For use by callers within this module to instrument interesting things.
5901
- let instrumentation$4 = {
5901
+ let instrumentation$5 = {
5902
5902
  /**
5903
5903
  * Called when a set of record conflicts has been fully resolved. The
5904
5904
  * parameter indicates the number of server requests that were needed
@@ -5947,7 +5947,7 @@ let instrumentation$4 = {
5947
5947
  * @param newInstrumentation instrumentation hooks to be overridden
5948
5948
  */
5949
5949
  function instrument$3(newInstrumentation) {
5950
- instrumentation$4 = Object.assign(instrumentation$4, newInstrumentation);
5950
+ instrumentation$5 = Object.assign(instrumentation$5, newInstrumentation);
5951
5951
  }
5952
5952
 
5953
5953
  const engineForPrefetcherMap = new Map();
@@ -9805,7 +9805,7 @@ function merge$3(existing, incoming, luvio, _path, recordConflictMap) {
9805
9805
  incoming.recordTypeId === undefined ||
9806
9806
  existing.recordTypeId === null ||
9807
9807
  existing.recordTypeId === undefined) {
9808
- instrumentation$4.recordTypeIdIsNull(incoming.apiName);
9808
+ instrumentation$5.recordTypeIdIsNull(incoming.apiName);
9809
9809
  }
9810
9810
  const recordDepKey = dependencyKeyBuilder$1({ recordId: existing.id });
9811
9811
  const node = luvio.getNode(recordDepKey);
@@ -9830,12 +9830,12 @@ function merge$3(existing, incoming, luvio, _path, recordConflictMap) {
9830
9830
  // }
9831
9831
  // Adding instrumentation to see how frequently this occurs
9832
9832
  if (existing.apiName !== incoming.apiName) {
9833
- instrumentation$4.recordApiNameChanged(incoming.apiName, existing.apiName);
9833
+ instrumentation$5.recordApiNameChanged(incoming.apiName, existing.apiName);
9834
9834
  }
9835
9835
  const incomingWeakEtagZero = incoming.weakEtag === 0;
9836
9836
  const existingWeakEtagZero = existing.weakEtag === 0;
9837
9837
  if (incomingWeakEtagZero || existingWeakEtagZero) {
9838
- instrumentation$4.weakEtagZero(incomingWeakEtagZero, existingWeakEtagZero, incoming.apiName);
9838
+ instrumentation$5.weakEtagZero(incomingWeakEtagZero, existingWeakEtagZero, incoming.apiName);
9839
9839
  }
9840
9840
  // TODO [W-6900085]: UIAPI returns weakEtag=0 when the record is >2 levels nested. For now
9841
9841
  // we treat the record as mergeable.
@@ -9895,7 +9895,7 @@ function fixDisplayValue(existing, incoming, path) {
9895
9895
  incomingValue !== null) {
9896
9896
  incoming.displayValue = existing.displayValue;
9897
9897
  const isSpanningRecord = typeof incomingValue === 'object';
9898
- instrumentation$4.nullDisplayValueConflict({
9898
+ instrumentation$5.nullDisplayValueConflict({
9899
9899
  entityName: path.parent.data.apiName,
9900
9900
  fieldName: path.propertyName,
9901
9901
  fieldType: isSpanningRecord ? 'spanning-record' : 'scalar',
@@ -10685,7 +10685,7 @@ function buildNetworkSnapshot$15(luvio, config, serverRequestCount = 0, options)
10685
10685
  function resolveConflict$1(luvio, map) {
10686
10686
  const ids = keys$7(map.conflicts);
10687
10687
  if (ids.length === 0) {
10688
- instrumentation$4.recordConflictsResolved(map.serverRequestCount);
10688
+ instrumentation$5.recordConflictsResolved(map.serverRequestCount);
10689
10689
  return;
10690
10690
  }
10691
10691
  if (ids.length === 1) {
@@ -15518,7 +15518,7 @@ const notifyChangeFactory = (luvio) => {
15518
15518
  serverRequestCount: 1,
15519
15519
  }), body);
15520
15520
  const result = luvio.storeBroadcast();
15521
- instrumentation$4.getRecordNotifyChangeNetworkResult(existingWeakEtag !== body.weakEtag);
15521
+ instrumentation$5.getRecordNotifyChangeNetworkResult(existingWeakEtag !== body.weakEtag);
15522
15522
  return result;
15523
15523
  }, () => {
15524
15524
  const cache = new StoreKeyMap();
@@ -15530,7 +15530,7 @@ const notifyChangeFactory = (luvio) => {
15530
15530
  const errorSnapshot = luvio.errorSnapshot(error);
15531
15531
  luvio.storeIngestError(key, errorSnapshot, RECORD_REPRESENTATION_ERROR_STORE_METADATA_PARAMS$1);
15532
15532
  const result = luvio.storeBroadcast();
15533
- instrumentation$4.getRecordNotifyChangeNetworkResult(null, true);
15533
+ instrumentation$5.getRecordNotifyChangeNetworkResult(null, true);
15534
15534
  return result.then(() => errorSnapshot);
15535
15535
  });
15536
15536
  });
@@ -34043,12 +34043,12 @@ withDefaultLuvio((luvio) => {
34043
34043
  baseUpdateRelatedListInfo = createLDSAdapter(luvio, 'baseUpdateRelatedListInfo', updateRelatedListInfoAdapterFactory);
34044
34044
  createLDSAdapter(luvio, 'baseUpdateRelatedListPreferences', updateRelatedListPreferencesAdapterFactory);
34045
34045
  throttle(60, 60000, createLDSAdapter(luvio, 'getRecordNotifyChange', notifyChangeFactory), {
34046
- allowFunction: instrumentation$4.getRecordNotifyChangeAllowed,
34047
- dropFunction: instrumentation$4.getRecordNotifyChangeDropped,
34046
+ allowFunction: instrumentation$5.getRecordNotifyChangeAllowed,
34047
+ dropFunction: instrumentation$5.getRecordNotifyChangeDropped,
34048
34048
  });
34049
34049
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyRecordUpdateAvailable', notifyUpdateAvailableFactory$5), {
34050
- allowFunction: instrumentation$4.notifyRecordUpdateAvailableAllowed,
34051
- dropFunction: instrumentation$4.notifyRecordUpdateAvailableDropped,
34050
+ allowFunction: instrumentation$5.notifyRecordUpdateAvailableAllowed,
34051
+ dropFunction: instrumentation$5.notifyRecordUpdateAvailableDropped,
34052
34052
  });
34053
34053
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$2));
34054
34054
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoSummaryUpdateAvailable', notifyUpdateAvailableFactory$3));
@@ -34062,7 +34062,50 @@ withDefaultLuvio((luvio) => {
34062
34062
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
34063
34063
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
34064
34064
  });
34065
- // version: 1.354.0-dev11-634f7f7752
34065
+ // version: 1.354.0-dev12-1fd5866001
34066
+
34067
+ function requestIdleDetectedCallback(_callback) { }
34068
+ function declareNotifierTaskSingle(_name) {
34069
+ return {
34070
+ isBusy: false,
34071
+ done: function () { },
34072
+ };
34073
+ }
34074
+ function declareNotifierTaskMulti(_name, _existingBusyCount) {
34075
+ return {
34076
+ isBusy: false,
34077
+ add: function () { },
34078
+ done: function () { },
34079
+ };
34080
+ }
34081
+ function declarePollableTaskMulti(_name, _isBusyChecker) { }
34082
+ const idleDetector = {
34083
+ requestIdleDetectedCallback,
34084
+ declareNotifierTaskSingle,
34085
+ declareNotifierTaskMulti,
34086
+ declarePollableTaskMulti,
34087
+ };
34088
+ function stop(_userSchemaOrText, _userData) { }
34089
+ function error(_error, _userSchemaOrText, _userData) { }
34090
+ const activity = {
34091
+ stop,
34092
+ error,
34093
+ };
34094
+ function startActivity(_name) {
34095
+ return activity;
34096
+ }
34097
+ function log(_schema, _data) { }
34098
+ const mockInstrumentation = {
34099
+ log,
34100
+ startActivity,
34101
+ error: () => { },
34102
+ trackValue: (_operation, _value, _hasError, _tags) => { },
34103
+ incrementCounter: (_operation, _increment, _hasError, _tags) => { },
34104
+ bucketValue: (_operation, _value, _buckets) => { },
34105
+ };
34106
+ const getInstrumentation = () => {
34107
+ return mockInstrumentation;
34108
+ };
34066
34109
 
34067
34110
  /**
34068
34111
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -45526,49 +45569,6 @@ var graphqQueryFieldLimit = {
45526
45569
 
45527
45570
  var caseSensitiveUserId = '005B0000000GR4OIAW';
45528
45571
 
45529
- function requestIdleDetectedCallback(_callback) { }
45530
- function declareNotifierTaskSingle(_name) {
45531
- return {
45532
- isBusy: false,
45533
- done: function () { },
45534
- };
45535
- }
45536
- function declareNotifierTaskMulti(_name, _existingBusyCount) {
45537
- return {
45538
- isBusy: false,
45539
- add: function () { },
45540
- done: function () { },
45541
- };
45542
- }
45543
- function declarePollableTaskMulti(_name, _isBusyChecker) { }
45544
- const idleDetector = {
45545
- requestIdleDetectedCallback,
45546
- declareNotifierTaskSingle,
45547
- declareNotifierTaskMulti,
45548
- declarePollableTaskMulti,
45549
- };
45550
- function stop(_userSchemaOrText, _userData) { }
45551
- function error(_error, _userSchemaOrText, _userData) { }
45552
- const activity = {
45553
- stop,
45554
- error,
45555
- };
45556
- function startActivity(_name) {
45557
- return activity;
45558
- }
45559
- function log(_schema, _data) { }
45560
- const mockInstrumentation = {
45561
- log,
45562
- startActivity,
45563
- error: () => { },
45564
- trackValue: (_operation, _value, _hasError, _tags) => { },
45565
- incrementCounter: (_operation, _increment, _hasError, _tags) => { },
45566
- bucketValue: (_operation, _value, _buckets) => { },
45567
- };
45568
- const getInstrumentation = () => {
45569
- return mockInstrumentation;
45570
- };
45571
-
45572
45572
  var ldsAdapterO11yLoggingGate = {
45573
45573
  isOpen: function (e) {
45574
45574
  return e.fallback;
@@ -45684,7 +45684,7 @@ const { entries: entries$3, keys: keys$5 } = Object;
45684
45684
 
45685
45685
  const UI_API_BASE_URI = '/services/data/v64.0/ui-api';
45686
45686
 
45687
- let instrumentation$2 = {
45687
+ let instrumentation$3 = {
45688
45688
  aggregateUiChunkCount: (_cb) => { },
45689
45689
  aggregateUiConnectError: () => { },
45690
45690
  duplicateRequest: (_cb) => { },
@@ -45696,7 +45696,7 @@ let instrumentation$2 = {
45696
45696
  networkRateLimitExceeded: () => { },
45697
45697
  };
45698
45698
  function instrument$2(newInstrumentation) {
45699
- instrumentation$2 = Object.assign(instrumentation$2, newInstrumentation);
45699
+ instrumentation$3 = Object.assign(instrumentation$3, newInstrumentation);
45700
45700
  }
45701
45701
 
45702
45702
  const LDS_RECORDS_AGGREGATE_UI = 'LDS_Records_AggregateUi';
@@ -45766,7 +45766,7 @@ function mergeRecordFields$2(first, second) {
45766
45766
  * would otherwise cause a query length exception.
45767
45767
  */
45768
45768
  function dispatchSplitRecordAggregateUiAction(recordId, networkAdapter, resourceRequest, resourceRequestContext) {
45769
- instrumentation$2.getRecordAggregateInvoke();
45769
+ instrumentation$3.getRecordAggregateInvoke();
45770
45770
  return networkAdapter(resourceRequest, resourceRequestContext).then((resp) => {
45771
45771
  const { body } = resp;
45772
45772
  // This response body could be an executeAggregateUi, which we don't natively support.
@@ -45782,7 +45782,7 @@ function dispatchSplitRecordAggregateUiAction(recordId, networkAdapter, resource
45782
45782
  }
45783
45783
  const merged = body.compositeResponse.reduce((seed, response) => {
45784
45784
  if (response.httpStatusCode !== HttpStatusCode$1.Ok) {
45785
- instrumentation$2.getRecordAggregateReject(() => recordId);
45785
+ instrumentation$3.getRecordAggregateReject(() => recordId);
45786
45786
  throw createErrorResponse(HttpStatusCode$1.ServerError, {
45787
45787
  error: response.message,
45788
45788
  });
@@ -45792,7 +45792,7 @@ function dispatchSplitRecordAggregateUiAction(recordId, networkAdapter, resource
45792
45792
  }
45793
45793
  return mergeRecordFields$2(seed, response.body);
45794
45794
  }, null);
45795
- instrumentation$2.getRecordAggregateResolve(() => {
45795
+ instrumentation$3.getRecordAggregateResolve(() => {
45796
45796
  return {
45797
45797
  recordId,
45798
45798
  apiName: merged.apiName,
@@ -45800,7 +45800,7 @@ function dispatchSplitRecordAggregateUiAction(recordId, networkAdapter, resource
45800
45800
  });
45801
45801
  return createOkResponse$1(merged);
45802
45802
  }, (err) => {
45803
- instrumentation$2.getRecordAggregateReject(() => recordId);
45803
+ instrumentation$3.getRecordAggregateReject(() => recordId);
45804
45804
  // rethrow error
45805
45805
  throw err;
45806
45806
  });
@@ -45878,7 +45878,7 @@ function buildAndDispatchGetRecordAggregateUi(recordId, req, params) {
45878
45878
  const { networkAdapter, resourceRequest, resourceRequestContext } = req;
45879
45879
  const compositeRequest = buildGetRecordByFieldsCompositeRequest(resourceRequest, params);
45880
45880
  // W-12245125: Emit chunk size metrics
45881
- instrumentation$2.aggregateUiChunkCount(() => compositeRequest.length);
45881
+ instrumentation$3.aggregateUiChunkCount(() => compositeRequest.length);
45882
45882
  const aggregateUiParams = {
45883
45883
  compositeRequest,
45884
45884
  };
@@ -46112,7 +46112,7 @@ function platformNetworkAdapter(baseNetworkAdapter) {
46112
46112
  return (resourceRequest, resourceRequestContext) => {
46113
46113
  if (!tokenBucket.take(1)) {
46114
46114
  // We are hitting rate limiting, add some metrics
46115
- instrumentation$2.networkRateLimitExceeded();
46115
+ instrumentation$3.networkRateLimitExceeded();
46116
46116
  }
46117
46117
  const salesforceRequest = {
46118
46118
  networkAdapter: baseNetworkAdapter,
@@ -80326,6 +80326,209 @@ class UiApiDraftRecordService {
80326
80326
  }
80327
80327
  }
80328
80328
 
80329
+ function attachObserversToAdapterRequestContext(observers, adapterRequestContext) {
80330
+ if (adapterRequestContext === undefined) {
80331
+ return { eventObservers: observers };
80332
+ }
80333
+ if (adapterRequestContext.eventObservers === undefined) {
80334
+ return { ...adapterRequestContext, eventObservers: observers };
80335
+ }
80336
+ return {
80337
+ ...adapterRequestContext,
80338
+ eventObservers: adapterRequestContext.eventObservers.concat(observers),
80339
+ };
80340
+ }
80341
+ /**
80342
+ * Use this method to sanitize the unknown error object when
80343
+ * we are unsure of the type of the error thrown
80344
+ *
80345
+ * @param err Unknown object to sanitize
80346
+ * @returns an instance of error
80347
+ */
80348
+ function normalizeError$1(err) {
80349
+ if (err instanceof Error) {
80350
+ return err;
80351
+ }
80352
+ else if (typeof err === 'string') {
80353
+ return new Error(err);
80354
+ }
80355
+ return new Error(stringify$2(err));
80356
+ }
80357
+ // metrics
80358
+ /** GraphQL */
80359
+ const GRAPHQL_EVAL_ERROR = 'gql-eval-error';
80360
+ const GRAPHQL_EVAL_DB_READ_DURATION = 'gql-eval-db-read-duration';
80361
+ const GRAPHQL_EVAL_ROOT_QUERY_COUNT = 'gql-eval-root-query-count';
80362
+ const GRAPHQL_EVAL_TOTAL_QUERY_COUNT = 'gql-eval-total-query-count';
80363
+ const GRAPHQL_EVAL_MAX_CHILD_RELATIONSHIPS_COUNT = 'gql-eval-max-child-count';
80364
+ const GRAPHQL_EVAL_QUERY_RECORD_COUNT = 'gql-eval-query-record-count';
80365
+ const GRAPHQL_SNAPSHOT_REFRESH_UNDEFINED = 'gql-snapshot-refresh-undefined';
80366
+ /** Draft Queue */
80367
+ const DRAFT_QUEUE_STATE_STARTED = 'draft-queue-state-started';
80368
+ const DRAFT_QUEUE_STATE_ERROR = 'draft-queue-state-error';
80369
+ const DRAFT_QUEUE_STATE_WAITING = 'draft-queue-state-waiting';
80370
+ const DRAFT_QUEUE_STATE_STOPPED = 'draft-queue-state-stopped';
80371
+ const DRAFT_QUEUE_ACTION_ADDED = 'draft-queue-action-added';
80372
+ const DRAFT_QUEUE_ACTION_UPLOADING = 'draft-queue-action-uploading';
80373
+ const DRAFT_QUEUE_ACTION_COMPLETED = 'draft-queue-action-completed';
80374
+ const DRAFT_QUEUE_ACTION_DELETED = 'draft-queue-action-deleted';
80375
+ const DRAFT_QUEUE_ACTION_UPDATED = 'draft-queue-action-updated';
80376
+ const DRAFT_QUEUE_ACTION_FAILED = 'draft-queue-action-failed';
80377
+ const DRAFT_QUEUE_TOTAL_MERGE_ACTIONS_CALLS = 'draft-queue-total-mergeActions-calls';
80378
+ /** Content Document */
80379
+ const CREATE_CONTENT_DOCUMENT_AND_VERSION_TOTAL_SYNTHESIZE_CALLS = 'content-document-version-total-synthesize-calls';
80380
+ const CREATE_CONTENT_DOCUMENT_AND_VERSION_DRAFT_SYNTHESIZE_ERROR = 'create-content-document-version-draft-synthesize-error';
80381
+ /** Priming */
80382
+ const PRIMING_TOTAL_SESSION_COUNT = 'priming-total-session-count';
80383
+ const PRIMING_TOTAL_ERROR_COUNT = 'priming-total-error-count';
80384
+ const PRIMING_TOTAL_PRIMED_COUNT = 'priming-total-primed-count';
80385
+ const PRIMING_TOTAL_CONFLICT_COUNT = 'priming-total-conflict-count';
80386
+ // logs
80387
+ const GRAPHQL_QUERY_PARSE_ERROR = 'gql-query-parse-error';
80388
+ const GRAPHQL_SQL_EVAL_PRECONDITION_ERROR = 'gql-sql-pre-eval-error';
80389
+ const GRAPHQL_CREATE_SNAPSHOT_ERROR = 'gql-create-snapshot-error';
80390
+ const DRAFT_AWARE_CREATE_CONTENT_DOCUMENT_AND_VERSION_ERROR = 'draft-aware-create-content-document-and-version-error';
80391
+ const ldsMobileInstrumentation$2 = getInstrumentation();
80392
+ const nimbusLogger = typeof __nimbus !== 'undefined' &&
80393
+ __nimbus.plugins !== undefined &&
80394
+ __nimbus.plugins.JSLoggerPlugin !== undefined
80395
+ ? __nimbus.plugins.JSLoggerPlugin
80396
+ : undefined;
80397
+ function reportGraphqlQueryParseError(err) {
80398
+ const error = normalizeError$1(err);
80399
+ const errorCode = GRAPHQL_QUERY_PARSE_ERROR;
80400
+ // Metric
80401
+ reportGraphqlAdapterError(errorCode);
80402
+ // Log
80403
+ ldsMobileInstrumentation$2.error(error, errorCode);
80404
+ }
80405
+ function reportGraphqlSqlEvalPreconditionError(err) {
80406
+ const error = normalizeError$1(err);
80407
+ const errorCode = GRAPHQL_SQL_EVAL_PRECONDITION_ERROR;
80408
+ // Metric
80409
+ reportGraphqlAdapterError(errorCode);
80410
+ // Log
80411
+ ldsMobileInstrumentation$2.error(error, errorCode);
80412
+ }
80413
+ function reportGraphqlCreateSnapshotError(err) {
80414
+ const error = normalizeError$1(err);
80415
+ const errorCode = GRAPHQL_CREATE_SNAPSHOT_ERROR;
80416
+ // Metric
80417
+ reportGraphqlAdapterError(errorCode);
80418
+ // Log
80419
+ ldsMobileInstrumentation$2.error(error, errorCode);
80420
+ }
80421
+ function reportGraphQlEvalDbReadDuration(duration) {
80422
+ ldsMobileInstrumentation$2.trackValue(GRAPHQL_EVAL_DB_READ_DURATION, duration);
80423
+ }
80424
+ function reportGraphqlAdapterError(errorCode) {
80425
+ // Increment overall count with errorCode as tag
80426
+ ldsMobileInstrumentation$2.incrementCounter(GRAPHQL_EVAL_ERROR, 1, true, { errorCode });
80427
+ }
80428
+ function reportGraphqlQueryInstrumentation(data) {
80429
+ const queryBuckets = [1, 2, 3, 4, 5, 10, 20, 50, 100];
80430
+ const recordBuckets = [
80431
+ 1, 5, 10, 20, 50, 100, 1000, 2000, 5000, 10000, 50000, 100000, 1000000,
80432
+ ];
80433
+ ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_ROOT_QUERY_COUNT, data.rootQueryCount, queryBuckets);
80434
+ ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_TOTAL_QUERY_COUNT, data.totalQueryCount, queryBuckets);
80435
+ ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_MAX_CHILD_RELATIONSHIPS_COUNT, data.maxChildRelationships, queryBuckets);
80436
+ ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_QUERY_RECORD_COUNT, data.requestedRecordCount, recordBuckets);
80437
+ }
80438
+ function incrementGraphQLRefreshUndfined() {
80439
+ ldsMobileInstrumentation$2.incrementCounter(GRAPHQL_SNAPSHOT_REFRESH_UNDEFINED);
80440
+ }
80441
+ function reportDraftActionEvent(state, draftCount, message) {
80442
+ if (nimbusLogger) {
80443
+ nimbusLogger.logInfo(`Draft action event: ${state}, depth: ${draftCount}${message ? `, message: ${message}` : ''}`);
80444
+ }
80445
+ switch (state) {
80446
+ case 'added':
80447
+ ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_ADDED);
80448
+ break;
80449
+ case 'uploading':
80450
+ ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_UPLOADING);
80451
+ break;
80452
+ case 'completed':
80453
+ ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_COMPLETED);
80454
+ break;
80455
+ case 'deleted':
80456
+ ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_DELETED);
80457
+ break;
80458
+ case 'failed':
80459
+ ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_FAILED, 1, true);
80460
+ break;
80461
+ case 'updated':
80462
+ ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_UPDATED);
80463
+ break;
80464
+ }
80465
+ }
80466
+ function reportDraftQueueState(state, draftCount) {
80467
+ if (nimbusLogger) {
80468
+ nimbusLogger.logInfo(`Draft state changed: ${state}, depth: ${draftCount}`);
80469
+ }
80470
+ switch (state) {
80471
+ case 'started':
80472
+ ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_STARTED);
80473
+ break;
80474
+ case 'error':
80475
+ ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_ERROR, 1, true);
80476
+ break;
80477
+ case 'waiting':
80478
+ ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_WAITING);
80479
+ break;
80480
+ case 'stopped':
80481
+ ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_STOPPED);
80482
+ break;
80483
+ }
80484
+ }
80485
+ function reportDraftAwareContentDocumentVersionSynthesizeError(err) {
80486
+ let error;
80487
+ if (err.body !== undefined) {
80488
+ error = err.body;
80489
+ }
80490
+ else {
80491
+ error = normalizeError$1(err);
80492
+ }
80493
+ const errorCode = DRAFT_AWARE_CREATE_CONTENT_DOCUMENT_AND_VERSION_ERROR;
80494
+ const errorType = error.errorType;
80495
+ const tags = {
80496
+ errorCode,
80497
+ };
80498
+ if (errorType !== undefined) {
80499
+ tags.errorType = errorType;
80500
+ }
80501
+ // Metric
80502
+ ldsMobileInstrumentation$2.incrementCounter(CREATE_CONTENT_DOCUMENT_AND_VERSION_DRAFT_SYNTHESIZE_ERROR, 1, true, tags);
80503
+ // Log
80504
+ ldsMobileInstrumentation$2.error(error, errorCode);
80505
+ }
80506
+ function reportDraftAwareContentVersionSynthesizeCalls(mimeType) {
80507
+ ldsMobileInstrumentation$2.incrementCounter(CREATE_CONTENT_DOCUMENT_AND_VERSION_TOTAL_SYNTHESIZE_CALLS, 1, undefined, { mimeType });
80508
+ }
80509
+ /** Priming */
80510
+ function reportPrimingSessionCreated() {
80511
+ ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_SESSION_COUNT, 1, undefined, {});
80512
+ }
80513
+ function reportPrimingError(errorType, recordCount) {
80514
+ ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_ERROR_COUNT, recordCount, undefined, {
80515
+ errorType,
80516
+ });
80517
+ }
80518
+ function reportPrimingSuccess(recordCount) {
80519
+ ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_PRIMED_COUNT, recordCount, undefined);
80520
+ }
80521
+ function reportPrimingConflict(resolutionType, recordCount) {
80522
+ ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_CONFLICT_COUNT, recordCount, undefined, {
80523
+ resolutionType,
80524
+ });
80525
+ }
80526
+ /** Network */
80527
+ function reportChunkCandidateUrlLength(urlLength) {
80528
+ const buckets = [8000, 10000, 12000, 14000, 16000];
80529
+ ldsMobileInstrumentation$2.bucketValue('chunk-candidate-url-length-histogram', urlLength, buckets);
80530
+ }
80531
+
80329
80532
  const QUICK_ACTION_HANDLER = 'QUICK_ACTION_HANDLER';
80330
80533
  class QuickActionExecutionRepresentationHandler extends AbstractResourceRequestActionHandler {
80331
80534
  constructor(getLuvio, draftRecordService, draftQueue, networkAdapter, isDraftId, sideEffectService, objectInfoService, getRecord) {
@@ -80336,6 +80539,7 @@ class QuickActionExecutionRepresentationHandler extends AbstractResourceRequestA
80336
80539
  this.objectInfoService = objectInfoService;
80337
80540
  this.getRecord = getRecord;
80338
80541
  this.handlerId = QUICK_ACTION_HANDLER;
80542
+ this.instrumentation = getInstrumentation();
80339
80543
  draftRecordService.registerRecordHandler(this);
80340
80544
  }
80341
80545
  async draftActionToSideEffects(queueEntry) {
@@ -80367,10 +80571,26 @@ class QuickActionExecutionRepresentationHandler extends AbstractResourceRequestA
80367
80571
  luvio.storeIngest(key, ingest$B$2, response);
80368
80572
  }
80369
80573
  async handleActionCompleted(action, queueOperations) {
80574
+ /* performQuickAction will not return the new record itself, so before the action
80575
+ * is marked as completed, we need to fetch the actual record. This must be done before
80576
+ * the super method is called because the super method will revert the side effects that
80577
+ * were created for this action, and critically that means evicting the synthetic record
80578
+ * that was created to represent the draft of what would become the canonical record.
80579
+ * Since getRecord is a network call, it is better to have a small timeframe (on the order
80580
+ * of microseconds) where both the synthetic record and the canonical record are in the
80581
+ * store instead of the record missing from the store for the entire duration of the
80582
+ * network call.
80583
+ */
80584
+ try {
80585
+ await this.fetchRecordIntoStoreFromCompletedAction(action);
80586
+ }
80587
+ catch (error) {
80588
+ this.instrumentation.error(error, 'Error fetching the record created from performQuickAction adapter.');
80589
+ }
80370
80590
  await super.handleActionCompleted(action, queueOperations);
80371
- this.getLuvio();
80591
+ }
80592
+ async fetchRecordIntoStoreFromCompletedAction(action) {
80372
80593
  const canonicalId = action.response.body.id;
80373
- this.buildTagForTargetId(canonicalId);
80374
80594
  const prefix = canonicalId.substring(0, 3);
80375
80595
  if (prefix.length !== 3) {
80376
80596
  // if we can't get a prefix, don't do the rest
@@ -88770,96 +88990,6 @@ class NimbusDraftQueue {
88770
88990
  }
88771
88991
  }
88772
88992
 
88773
- function attachObserversToAdapterRequestContext(observers, adapterRequestContext) {
88774
- if (adapterRequestContext === undefined) {
88775
- return { eventObservers: observers };
88776
- }
88777
- if (adapterRequestContext.eventObservers === undefined) {
88778
- return { ...adapterRequestContext, eventObservers: observers };
88779
- }
88780
- return {
88781
- ...adapterRequestContext,
88782
- eventObservers: adapterRequestContext.eventObservers.concat(observers),
88783
- };
88784
- }
88785
- /**
88786
- * Use this method to sanitize the unknown error object when
88787
- * we are unsure of the type of the error thrown
88788
- *
88789
- * @param err Unknown object to sanitize
88790
- * @returns an instance of error
88791
- */
88792
- function normalizeError$1(err) {
88793
- if (err instanceof Error) {
88794
- return err;
88795
- }
88796
- else if (typeof err === 'string') {
88797
- return new Error(err);
88798
- }
88799
- return new Error(stringify$2(err));
88800
- }
88801
- const GRAPHQL_EVAL_ROOT_QUERY_COUNT = 'gql-eval-root-query-count';
88802
- const GRAPHQL_EVAL_TOTAL_QUERY_COUNT = 'gql-eval-total-query-count';
88803
- const GRAPHQL_EVAL_MAX_CHILD_RELATIONSHIPS_COUNT = 'gql-eval-max-child-count';
88804
- const GRAPHQL_EVAL_QUERY_RECORD_COUNT = 'gql-eval-query-record-count';
88805
- const DRAFT_QUEUE_TOTAL_MERGE_ACTIONS_CALLS = 'draft-queue-total-mergeActions-calls';
88806
- const ldsMobileInstrumentation$2 = getInstrumentation();
88807
- const nimbusLogger = typeof __nimbus !== 'undefined' &&
88808
- __nimbus.plugins !== undefined &&
88809
- __nimbus.plugins.JSLoggerPlugin !== undefined
88810
- ? __nimbus.plugins.JSLoggerPlugin
88811
- : undefined;
88812
- function reportGraphqlQueryParseError(err) {
88813
- normalizeError$1(err);
88814
- }
88815
- function reportGraphqlSqlEvalPreconditionError(err) {
88816
- normalizeError$1(err);
88817
- }
88818
- function reportGraphqlCreateSnapshotError(err) {
88819
- normalizeError$1(err);
88820
- }
88821
- function reportGraphQlEvalDbReadDuration(duration) {
88822
- }
88823
- function reportGraphqlQueryInstrumentation(data) {
88824
- const queryBuckets = [1, 2, 3, 4, 5, 10, 20, 50, 100];
88825
- const recordBuckets = [
88826
- 1, 5, 10, 20, 50, 100, 1000, 2000, 5000, 10000, 50000, 100000, 1000000,
88827
- ];
88828
- ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_ROOT_QUERY_COUNT, data.rootQueryCount, queryBuckets);
88829
- ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_TOTAL_QUERY_COUNT, data.totalQueryCount, queryBuckets);
88830
- ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_MAX_CHILD_RELATIONSHIPS_COUNT, data.maxChildRelationships, queryBuckets);
88831
- ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_QUERY_RECORD_COUNT, data.requestedRecordCount, recordBuckets);
88832
- }
88833
- function reportDraftActionEvent(state, draftCount, message) {
88834
- if (nimbusLogger) {
88835
- nimbusLogger.logInfo(`Draft action event: ${state}, depth: ${draftCount}${message ? `, message: ${message}` : ''}`);
88836
- }
88837
- }
88838
- function reportDraftQueueState(state, draftCount) {
88839
- if (nimbusLogger) {
88840
- nimbusLogger.logInfo(`Draft state changed: ${state}, depth: ${draftCount}`);
88841
- }
88842
- }
88843
- function reportDraftAwareContentDocumentVersionSynthesizeError(err) {
88844
- let error;
88845
- if (err.body !== undefined) {
88846
- error = err.body;
88847
- }
88848
- else {
88849
- error = normalizeError$1(err);
88850
- }
88851
- error.errorType;
88852
- }
88853
- function reportDraftAwareContentVersionSynthesizeCalls(mimeType) {
88854
- }
88855
- function reportPrimingError(errorType, recordCount) {
88856
- }
88857
- function reportPrimingConflict(resolutionType, recordCount) {
88858
- }
88859
- /** Network */
88860
- function reportChunkCandidateUrlLength(urlLength) {
88861
- }
88862
-
88863
88993
  /**
88864
88994
  * HOF (high-order-function) that instruments any async operation. If the operation
88865
88995
  * has an error then the hasError param will be set on the call to o11y.incrementCounter
@@ -88871,13 +89001,19 @@ const withInstrumentation = (operation, config) => {
88871
89001
  return operation();
88872
89002
  }
88873
89003
  const { tags, metricName, logError } = config;
89004
+ let hasError = false;
88874
89005
  return operation()
88875
89006
  .catch((err) => {
89007
+ hasError = true;
88876
89008
  const error = normalizeError$1(err);
88877
89009
  tags['errorMessage'] = error.message;
89010
+ if (logError) {
89011
+ ldsMobileInstrumentation$2.error(error);
89012
+ }
88878
89013
  throw err;
88879
89014
  })
88880
89015
  .finally(() => {
89016
+ ldsMobileInstrumentation$2.incrementCounter(metricName, 1, hasError, tags);
88881
89017
  });
88882
89018
  };
88883
89019
 
@@ -89217,6 +89353,9 @@ function instrumentGraphQLEval(adapter) {
89217
89353
  case 'graphql-query-instrumentation':
89218
89354
  reportGraphqlQueryInstrumentation(data.data);
89219
89355
  break;
89356
+ case 'graphql-luvio-refresh-undefined':
89357
+ incrementGraphQLRefreshUndfined();
89358
+ break;
89220
89359
  }
89221
89360
  }
89222
89361
  },
@@ -89529,6 +89668,9 @@ class LdsInternalDataTable {
89529
89668
  }
89530
89669
 
89531
89670
  const tasker = idleDetector.declareNotifierTaskMulti('NimbusSqliteStore');
89671
+ const instrumentation$2 = getInstrumentation();
89672
+ const GRAPHQL_QUERY_ROOT_KEY = 'UiApi::uiapi::Query[uiapi]__uiapi__query';
89673
+ const GRAPHQL_QUERY_ROOT_METRIC_NAME = 'gql-query-root-object-size';
89532
89674
  class NimbusSqliteStore {
89533
89675
  constructor(plugin, additionalTableMap = {}) {
89534
89676
  this.plugin = plugin;
@@ -89575,6 +89717,9 @@ class NimbusSqliteStore {
89575
89717
  }
89576
89718
  const table = this.getTable(segment);
89577
89719
  const upsertOperation = table.entriesToUpsertOperations(entries, segment);
89720
+ if (entries[GRAPHQL_QUERY_ROOT_KEY]) {
89721
+ this.trackGraphQLQueryRootSize(upsertOperation);
89722
+ }
89578
89723
  return this.batchOperationAsPromise([upsertOperation]);
89579
89724
  }
89580
89725
  setMetadata(entries, segment) {
@@ -89590,7 +89735,11 @@ class NimbusSqliteStore {
89590
89735
  if (cur.type === 'setEntries') {
89591
89736
  if (keys$6(cur.entries).length > 0) {
89592
89737
  const table = this.getTable(cur.segment);
89593
- acc.push(table.entriesToUpsertOperations(cur.entries, cur.segment));
89738
+ const upsertOperation = table.entriesToUpsertOperations(cur.entries, cur.segment);
89739
+ if (cur.entries[GRAPHQL_QUERY_ROOT_KEY]) {
89740
+ this.trackGraphQLQueryRootSize(upsertOperation);
89741
+ }
89742
+ acc.push(upsertOperation);
89594
89743
  }
89595
89744
  }
89596
89745
  else if (cur.type === 'setMetadata') {
@@ -89674,6 +89823,19 @@ class NimbusSqliteStore {
89674
89823
  });
89675
89824
  }).finally(() => tasker.done());
89676
89825
  }
89826
+ trackGraphQLQueryRootSize(upsertOperation) {
89827
+ try {
89828
+ if (upsertOperation.type !== 'upsert') {
89829
+ return;
89830
+ }
89831
+ const row = upsertOperation.rows.find((r) => r[0] === GRAPHQL_QUERY_ROOT_KEY);
89832
+ if (!(row && row[1] && typeof row[1] === 'string')) {
89833
+ return;
89834
+ }
89835
+ instrumentation$2.trackValue(GRAPHQL_QUERY_ROOT_METRIC_NAME, row[1].length);
89836
+ }
89837
+ catch { }
89838
+ }
89677
89839
  }
89678
89840
 
89679
89841
  // These const values must be in sync with the latest
@@ -90311,6 +90473,7 @@ const SESSION_ENQUEUE_RECORD_COUNT = 'priming-session-enqueue-record-count';
90311
90473
  const SESSION_INGEST_WRITTEN = 'priming-session-ingest-written-count';
90312
90474
  const SESSION_INGEST_CONFLICTED = 'priming-session-ingest-conflicted-count';
90313
90475
  const SESSION_INGEST_ERRORS = 'priming-session-ingest-error-count';
90476
+ const SESSION_INGEST_DURATION = 'priming-session-ingest-duration';
90314
90477
  class PrimingSession extends EventEmitter {
90315
90478
  constructor(config) {
90316
90479
  super();
@@ -90483,6 +90646,7 @@ class PrimingSession extends EventEmitter {
90483
90646
  instrumentation$1$1.trackValue(SESSION_INGEST_WRITTEN, written.length);
90484
90647
  instrumentation$1$1.trackValue(SESSION_INGEST_CONFLICTED, conflicted.length);
90485
90648
  instrumentation$1$1.trackValue(SESSION_INGEST_ERRORS, errors.length);
90649
+ instrumentation$1$1.trackValue(SESSION_INGEST_DURATION, Date.now() - beforeWrite);
90486
90650
  stats.conflictedCount = conflicted.length;
90487
90651
  this.emit('batch-written', {
90488
90652
  written,
@@ -91221,10 +91385,12 @@ class RecordLoaderSOQLComposite extends NetworkRecordLoader {
91221
91385
  }
91222
91386
 
91223
91387
  function instrumentPrimingSession(session) {
91388
+ reportPrimingSessionCreated();
91224
91389
  session.on('error', ({ code, ids }) => {
91225
91390
  reportPrimingError(code, ids.length);
91226
91391
  });
91227
91392
  session.on('primed', ({ length }) => {
91393
+ reportPrimingSuccess(length);
91228
91394
  });
91229
91395
  session.on('conflict', ({ ids, resolution }) => {
91230
91396
  reportPrimingConflict(resolution, ids.length);
@@ -92833,7 +92999,7 @@ function isStoreRecordError(storeRecord) {
92833
92999
  return storeRecord.__type === 'error';
92834
93000
  }
92835
93001
 
92836
- const instrumentation$3 = getInstrumentation();
93002
+ const instrumentation$4 = getInstrumentation();
92837
93003
  const ProductConsumed = {
92838
93004
  API_NAME: 'ProductConsumed',
92839
93005
  Fields: {
@@ -92891,6 +93057,7 @@ class ProductConsumedUpdatedHook {
92891
93057
  const originalRecord = await this.durableRecordStore.getRecord(buildRecordRepKeyFromId$1(draftRecordId));
92892
93058
  if (originalRecord === undefined) {
92893
93059
  incrementCounter(ProductConsumedUpdatedHook.COUNTER_NAME, CounterResult.Error);
93060
+ instrumentation$4.error(`SFS - ProductConsumedUpdatedHook - Original record ${draftRecordId} not found`);
92894
93061
  return [];
92895
93062
  }
92896
93063
  const originalProductItemId = getProductItemIdFromRecordFields(originalRecord.fields);
@@ -92901,6 +93068,7 @@ class ProductConsumedUpdatedHook {
92901
93068
  }
92902
93069
  if (originalQuantityConsumed === undefined) {
92903
93070
  incrementCounter(ProductConsumedUpdatedHook.COUNTER_NAME, CounterResult.Error);
93071
+ instrumentation$4.error(`SFS - ProductConsumedUpdatedHook - Original record ${draftRecordId} QuantityConsumed not found`);
92904
93072
  return [];
92905
93073
  }
92906
93074
  incrementCounter(ProductConsumedUpdatedHook.COUNTER_NAME, CounterResult.Created);
@@ -92927,6 +93095,7 @@ class ProductConsumedDeletedHook {
92927
93095
  const originalRecord = await this.durableRecordStore.getRecord(buildRecordRepKeyFromId$1(draftRecordId));
92928
93096
  if (originalRecord === undefined) {
92929
93097
  incrementCounter(ProductConsumedDeletedHook.COUNTER_NAME, CounterResult.Error);
93098
+ instrumentation$4.error(`SFS - ProductConsumedDeletedHook - Original record ${draftRecordId} not found`);
92930
93099
  return [];
92931
93100
  }
92932
93101
  const productItemId = getProductItemIdFromRecordFields(originalRecord.fields);
@@ -92937,6 +93106,7 @@ class ProductConsumedDeletedHook {
92937
93106
  }
92938
93107
  if (quantityConsumed === undefined) {
92939
93108
  incrementCounter(ProductConsumedDeletedHook.COUNTER_NAME, CounterResult.Error);
93109
+ instrumentation$4.error(`SFS - ProductConsumedDeletedHook - Original record ${draftRecordId} QuantityConsumed not found`);
92940
93110
  return [];
92941
93111
  }
92942
93112
  incrementCounter(ProductConsumedDeletedHook.COUNTER_NAME, CounterResult.Created);
@@ -92991,7 +93161,7 @@ var CounterResult;
92991
93161
  CounterResult["Error"] = "Error";
92992
93162
  })(CounterResult || (CounterResult = {}));
92993
93163
  function incrementCounter(name, result) {
92994
- instrumentation$3.incrementCounter('SFSSideEffect', 1, result == CounterResult.Error, {
93164
+ instrumentation$4.incrementCounter('SFSSideEffect', 1, result == CounterResult.Error, {
92995
93165
  Name: name,
92996
93166
  Result: result,
92997
93167
  });
@@ -93196,7 +93366,7 @@ register$1({
93196
93366
  id: '@salesforce/lds-network-adapter',
93197
93367
  instrument: instrument$2,
93198
93368
  });
93199
- // version: 1.354.0-dev11-5ded66ad52
93369
+ // version: 1.354.0-dev12-cc66432529
93200
93370
 
93201
93371
  const { create: create$2, keys: keys$2 } = Object;
93202
93372
  const { stringify, parse } = JSON;
@@ -117547,7 +117717,7 @@ register$1({
117547
117717
  configuration: { ...configurationForGraphQLAdapters$1 },
117548
117718
  instrument: instrument$1,
117549
117719
  });
117550
- // version: 1.354.0-dev11-634f7f7752
117720
+ // version: 1.354.0-dev12-1fd5866001
117551
117721
 
117552
117722
  // On core the unstable adapters are re-exported with different names,
117553
117723
  // we want to match them here.
@@ -117699,7 +117869,7 @@ withDefaultLuvio((luvio) => {
117699
117869
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
117700
117870
  graphQLImperative = ldsAdapter;
117701
117871
  });
117702
- // version: 1.354.0-dev11-634f7f7752
117872
+ // version: 1.354.0-dev12-1fd5866001
117703
117873
 
117704
117874
  var gqlApi = /*#__PURE__*/Object.freeze({
117705
117875
  __proto__: null,
@@ -118491,7 +118661,7 @@ const callbacks$1 = [];
118491
118661
  function register(r) {
118492
118662
  callbacks$1.forEach((callback) => callback(r));
118493
118663
  }
118494
- // version: 1.354.0-dev11-5ded66ad52
118664
+ // version: 1.354.0-dev12-cc66432529
118495
118665
 
118496
118666
  /**
118497
118667
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -119571,4 +119741,4 @@ const { luvio } = getRuntime();
119571
119741
  setDefaultLuvio({ luvio });
119572
119742
 
119573
119743
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
119574
- // version: 1.354.0-dev11-5ded66ad52
119744
+ // version: 1.354.0-dev12-cc66432529