@salesforce/lds-runtime-aura 1.432.0 → 1.434.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,9 +21,9 @@ import { GetApexWireAdapterFactory, registerPrefetcher as registerPrefetcher$1 }
21
21
  import { instrument, getRecordAvatarsAdapterFactory, getRecordAdapterFactory, coerceFieldIdArray, coerceLayoutTypeArray, coerceLayoutModeArray, getRecordsAdapterFactory, getRecordActionsAdapterFactory, getObjectInfosAdapterFactory, coerceObjectIdArray, getObjectInfoAdapterFactory, coerceObjectId, getRelatedListsActionsAdapterFactory, getRelatedListInfoBatchAdapterFactory, getRelatedListInfoAdapterFactory, getRelatedListRecordsBatchAdapterFactory, getRelatedListRecordsAdapterFactory, getListInfoByNameAdapterFactory, getListInfosByObjectNameAdapterFactory, getListRecordsByNameAdapterFactory, getListObjectInfoAdapterFactory, getRelatedListsInfoAdapterFactory, getRelatedListActionsAdapterFactory, getRecordId18Array, buildRecordRepKeyFromId, configuration, InMemoryRecordRepresentationQueryEvaluator, UiApiNamespace, RecordRepresentationRepresentationType, registerPrefetcher, RecordRepresentationVersion } from 'force/ldsAdaptersUiapi';
22
22
  import { getInstrumentation } from 'o11y/client';
23
23
  import { findExecutableOperation, buildGraphQLInputExtension, addTypenameToDocument } from 'force/luvioGraphqlNormalization';
24
- import { print, resolveAndValidateGraphQLConfig } from 'force/luvioOnestoreGraphqlParser';
24
+ import { print, resolveAndValidateGraphQLConfig, toGraphQLErrorResponse } from 'force/luvioOnestoreGraphqlParser';
25
25
  import { setServices } from 'force/luvioServiceProvisioner1';
26
- import { assertIsValid, MissingRequiredPropertyError, JsonSchemaViolationError } from 'force/luvioJsonschemaValidate5';
26
+ import { assertIsValid, JsonSchemaViolationError, MissingRequiredPropertyError } from 'force/luvioJsonschemaValidate5';
27
27
  import { dispatchGlobalEvent, executeGlobalControllerRawResponse } from 'aura';
28
28
  import auraNetworkAdapter, { dispatchAuraAction, defaultActionConfig, instrument as instrument$1, forceRecordTransactionsDisabled as forceRecordTransactionsDisabled$1, ldsNetworkAdapterInstrument, CrudEventState, CrudEventType, UIAPI_RECORDS_PATH, UIAPI_RELATED_LIST_RECORDS_BATCH_PATH, UIAPI_RELATED_LIST_RECORDS_PATH } from 'force/ldsNetwork';
29
29
  import { ThirdPartyTracker } from 'instrumentation:thirdPartyTracker';
@@ -422,16 +422,17 @@ class AuraNetworkCommand extends NetworkCommand$1 {
422
422
  }
423
423
  return ok$2(auraReturnValue);
424
424
  }).catch((error) => {
425
- if (!error || !error.getError) {
425
+ if (!error) {
426
426
  return err$1(toError("Failed to get error from response"));
427
- } else {
428
- const actionErrors = error.getError();
429
- if (actionErrors.length > 0) {
430
- return err$1(coerceError(actionErrors));
431
- } else {
432
- return err$1(toError("Error fetching component"));
433
- }
434
427
  }
428
+ if (!error.getError) {
429
+ return err$1(toError(error));
430
+ }
431
+ const actionErrors = error.getError();
432
+ if (actionErrors.length > 0) {
433
+ return err$1(coerceError(actionErrors));
434
+ }
435
+ return err$1(toError("Error fetching component"));
435
436
  });
436
437
  }
437
438
  convertFetchResponseToData(response) {
@@ -1114,16 +1115,17 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
1114
1115
  } catch {
1115
1116
  }
1116
1117
  }).catch((error) => {
1117
- if (!error || !error.getError) {
1118
+ if (!error) {
1118
1119
  return err$1(toError("Failed to get error from response"));
1119
- } else {
1120
- const actionErrors = error.getError();
1121
- if (actionErrors.length > 0) {
1122
- return err$1(coerceError(actionErrors));
1123
- } else {
1124
- return err$1(toError("Error fetching component"));
1125
- }
1126
1120
  }
1121
+ if (!error.getError) {
1122
+ return err$1(toError(error));
1123
+ }
1124
+ const actionErrors = error.getError();
1125
+ if (actionErrors.length > 0) {
1126
+ return err$1(coerceError(actionErrors));
1127
+ }
1128
+ return err$1(toError("Error fetching component"));
1127
1129
  });
1128
1130
  }
1129
1131
  convertFetchResponseToData(response) {
@@ -1262,16 +1264,17 @@ class AuraCacheControlCommand extends CacheControlCommand {
1262
1264
  } catch {
1263
1265
  }
1264
1266
  }).catch((error) => {
1265
- if (!error || !error.getError) {
1267
+ if (!error) {
1266
1268
  return err$1(toError("Failed to get error from response"));
1267
- } else {
1268
- const actionErrors = error.getError();
1269
- if (actionErrors.length > 0) {
1270
- return err$1(coerceError(actionErrors));
1271
- } else {
1272
- return err$1(toError("Error fetching component"));
1273
- }
1274
1269
  }
1270
+ if (!error.getError) {
1271
+ return err$1(toError(error));
1272
+ }
1273
+ const actionErrors = error.getError();
1274
+ if (actionErrors.length > 0) {
1275
+ return err$1(coerceError(actionErrors));
1276
+ }
1277
+ return err$1(toError("Error fetching component"));
1275
1278
  });
1276
1279
  }
1277
1280
  convertFetchResponseToData(response) {
@@ -2756,7 +2759,7 @@ function buildServiceDescriptor$d(luvio) {
2756
2759
  },
2757
2760
  };
2758
2761
  }
2759
- // version: 1.432.0-b99ba9d219
2762
+ // version: 1.434.0-6aa2dd15e3
2760
2763
 
2761
2764
  /*!
2762
2765
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -3109,7 +3112,7 @@ function buildServiceDescriptor$9(notifyRecordUpdateAvailable, getNormalizedLuvi
3109
3112
  },
3110
3113
  };
3111
3114
  }
3112
- // version: 1.432.0-b99ba9d219
3115
+ // version: 1.434.0-6aa2dd15e3
3113
3116
 
3114
3117
  /*!
3115
3118
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -3516,13 +3519,7 @@ class GraphQLImperativeBindingsService {
3516
3519
  }
3517
3520
  return await buildBaseImperativeInvoker(getCommand, (result) => this.transformResult(result, exposeRefresh))(...params);
3518
3521
  } catch (error) {
3519
- logError$1(error);
3520
- return {
3521
- data: void 0,
3522
- errors: [
3523
- { message: "Internal error in GraphQL adapter occurred", locations: [] }
3524
- ]
3525
- };
3522
+ return toGraphQLErrorResponse(error);
3526
3523
  }
3527
3524
  };
3528
3525
  }
@@ -3616,8 +3613,8 @@ class GraphQLLegacyImperativeBindingsService {
3616
3613
  config = result.value;
3617
3614
  }
3618
3615
  }
3619
- const command = getCommand({ config, assertIsValid });
3620
3616
  try {
3617
+ const command = getCommand({ config, assertIsValid });
3621
3618
  const overrides = getOverridesForLegacyRequestContext(requestContext);
3622
3619
  const result = await command.execute(overrides);
3623
3620
  const consumerEmittedData = {
@@ -3634,13 +3631,7 @@ class GraphQLLegacyImperativeBindingsService {
3634
3631
  }
3635
3632
  callback(consumerEmittedData);
3636
3633
  } catch (error) {
3637
- logError$1(error);
3638
- callback({
3639
- data: void 0,
3640
- errors: [
3641
- { message: "Internal error in GraphQL adapter occurred", locations: [] }
3642
- ]
3643
- });
3634
+ callback(toGraphQLErrorResponse(error));
3644
3635
  }
3645
3636
  };
3646
3637
  const subscribe = (config, requestContext, callback) => {
@@ -3658,35 +3649,41 @@ class GraphQLLegacyImperativeBindingsService {
3658
3649
  config = result.value;
3659
3650
  }
3660
3651
  }
3661
- const command = getCommand({ config, assertIsValid });
3662
3652
  let unsubscribe = () => {
3663
3653
  };
3664
- const overrides = getOverridesForLegacyRequestContext(requestContext);
3665
- command.execute(overrides).then((result) => {
3666
- const consumerEmittedData = {
3667
- data: void 0,
3668
- errors: void 0
3669
- };
3670
- if (result.isOk()) {
3671
- deepFreeze(result.value);
3672
- consumerEmittedData.data = result.value.data.data;
3673
- unsubscribe = result.value.subscribe(
3674
- (res) => {
3675
- handleEmit(res, callback);
3676
- }
3677
- );
3678
- } else {
3679
- const { data, errors } = toGraphQLResponseFromFailure$1(result.error.failure);
3680
- consumerEmittedData.data = data;
3681
- consumerEmittedData.errors = errors;
3682
- unsubscribe = result.error.subscribe(
3683
- (res) => {
3684
- handleEmit(res, callback);
3685
- }
3686
- );
3687
- }
3688
- callback(consumerEmittedData);
3689
- });
3654
+ try {
3655
+ const command = getCommand({ config, assertIsValid });
3656
+ const overrides = getOverridesForLegacyRequestContext(requestContext);
3657
+ command.execute(overrides).then((result) => {
3658
+ const consumerEmittedData = {
3659
+ data: void 0,
3660
+ errors: void 0
3661
+ };
3662
+ if (result.isOk()) {
3663
+ deepFreeze(result.value);
3664
+ consumerEmittedData.data = result.value.data.data;
3665
+ unsubscribe = result.value.subscribe(
3666
+ (res) => {
3667
+ handleEmit(res, callback);
3668
+ }
3669
+ );
3670
+ } else {
3671
+ const { data, errors } = toGraphQLResponseFromFailure$1(
3672
+ result.error.failure
3673
+ );
3674
+ consumerEmittedData.data = data;
3675
+ consumerEmittedData.errors = errors;
3676
+ unsubscribe = result.error.subscribe(
3677
+ (res) => {
3678
+ handleEmit(res, callback);
3679
+ }
3680
+ );
3681
+ }
3682
+ callback(consumerEmittedData);
3683
+ });
3684
+ } catch (error) {
3685
+ callback(toGraphQLErrorResponse(error));
3686
+ }
3690
3687
  return () => {
3691
3688
  unsubscribe();
3692
3689
  };
@@ -3729,13 +3726,7 @@ class GraphQLMutationBindingsService {
3729
3726
  return toGraphQLResponseFromFailure$1(result.error.failure);
3730
3727
  }
3731
3728
  } catch (error) {
3732
- logError$1(error);
3733
- return {
3734
- data: void 0,
3735
- errors: [
3736
- { message: "Internal error in GraphQL adapter occurred", locations: [] }
3737
- ]
3738
- };
3729
+ return toGraphQLErrorResponse(error);
3739
3730
  }
3740
3731
  };
3741
3732
  }
@@ -3895,6 +3886,10 @@ class CommandWireAdapterConstructor {
3895
3886
  if (isIncompleteConfigError(err)) {
3896
3887
  return;
3897
3888
  }
3889
+ if (err instanceof JsonSchemaViolationError) {
3890
+ this.handleConfigSchemaViolation(err);
3891
+ return;
3892
+ }
3898
3893
  throw err;
3899
3894
  }
3900
3895
  }
@@ -3947,6 +3942,16 @@ class CommandWireAdapterConstructor {
3947
3942
  handleExecutionThrow(error) {
3948
3943
  emitError(this.callback, error);
3949
3944
  }
3945
+ /**
3946
+ * Hook for subclasses to handle a JsonSchemaViolationError from the config
3947
+ * schema assertion. The default re-throws so legacy non-GraphQL wire
3948
+ * adapters keep their existing throw behavior. Overrides are expected to
3949
+ * either emit an error result or re-throw — silently returning will
3950
+ * swallow the error.
3951
+ */
3952
+ handleConfigSchemaViolation(error) {
3953
+ throw error;
3954
+ }
3950
3955
  unsubscribe() {
3951
3956
  if (this.unsubscriber) {
3952
3957
  this.unsubscriber();
@@ -4039,16 +4044,14 @@ class GraphQLCommandWireAdapterConstructor extends CommandWireAdapterConstructor
4039
4044
  this.callback(consumerEmittedData);
4040
4045
  }
4041
4046
  } catch (e) {
4042
- logError$1(e);
4043
4047
  this.handleExecutionThrow(e);
4044
4048
  }
4045
4049
  }
4046
- handleExecutionThrow(e) {
4047
- logError$1(e);
4048
- this.callback({
4049
- data: void 0,
4050
- errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
4051
- });
4050
+ handleExecutionThrow(error) {
4051
+ this.callback(toGraphQLErrorResponse(error));
4052
+ }
4053
+ handleConfigSchemaViolation(error) {
4054
+ this.handleExecutionThrow(error);
4052
4055
  }
4053
4056
  update(config, _context) {
4054
4057
  this.unsubscribe();
@@ -5739,7 +5742,7 @@ function getEnvironmentSetting(name) {
5739
5742
  }
5740
5743
  return undefined;
5741
5744
  }
5742
- // version: 1.432.0-b99ba9d219
5745
+ // version: 1.434.0-6aa2dd15e3
5743
5746
 
5744
5747
  const environmentHasAura = typeof window !== 'undefined' && typeof window.$A !== 'undefined';
5745
5748
  const defaultConfig = {
@@ -6135,6 +6138,7 @@ function buildLexRuntime5xxStatusResponseInterceptor(logger) {
6135
6138
  // Throw a simple error to terminate the request completely
6136
6139
  // The consumer has NOT opted in to handle 5xx errors, so we don't return any response
6137
6140
  // The systemError event above will handle showing the gack dialog
6141
+ // eslint-disable-next-line @salesforce/lds/no-error-in-production
6138
6142
  throw new Error(error.message);
6139
6143
  }
6140
6144
  return response;
@@ -6177,6 +6181,7 @@ function buildLexRuntimeLuvio5xxStatusResponseInterceptor() {
6177
6181
  // Throw a simple error to terminate the request completely
6178
6182
  // The consumer has NOT opted in to handle 5xx errors, so we don't return any response
6179
6183
  // The systemError event above will handle showing the gack dialog
6184
+ // eslint-disable-next-line @salesforce/lds/no-error-in-production
6180
6185
  throw new Error(error.message);
6181
6186
  }
6182
6187
  return response;
@@ -6366,6 +6371,7 @@ function buildCsrfTokenInterceptor() {
6366
6371
  if (isCsrfMethod(method)) {
6367
6372
  const token = await csrfTokenManager.getToken();
6368
6373
  if (token) {
6374
+ // eslint-disable-next-line no-param-reassign
6369
6375
  fetchArgs = setHeader(CSRF_TOKEN_HEADER, token, fetchArgs);
6370
6376
  }
6371
6377
  }
@@ -6540,6 +6546,7 @@ function findCorrectResource(resources, url, context) {
6540
6546
  const matchingResources = [];
6541
6547
  if (context.queryParams) {
6542
6548
  const urlWithParams = buildUrlWithParams(url, context.queryParams);
6549
+ // eslint-disable-next-line guard-for-in
6543
6550
  for (let entry in resources) {
6544
6551
  const resource = resources[entry];
6545
6552
  if (resource.name === urlWithParams && !seenResources.has(resource)) {
@@ -6551,6 +6558,7 @@ function findCorrectResource(resources, url, context) {
6551
6558
  return matchingResources[0];
6552
6559
  }
6553
6560
  else if (matchingResources.length > 1) {
6561
+ // eslint-disable-next-line no-param-reassign
6554
6562
  resources = matchingResources;
6555
6563
  }
6556
6564
  // this means that we have multiple of the same request, and so we will fall back to timing. But this is only a best estimate,
@@ -6630,6 +6638,7 @@ function buildTransportMarksSendInterceptor() {
6630
6638
  // First set the requestId header. If there's not context, it means we won't be able to track the mark and something is hosed, and so not worth even trying
6631
6639
  if (context && context.instrumentationId) {
6632
6640
  const requestId = context.instrumentationId;
6641
+ // eslint-disable-next-line no-param-reassign
6633
6642
  fetchArgs = setHeader(SFDC_REQUEST_ID_KEY, requestId, fetchArgs);
6634
6643
  context.startTime = performance.now();
6635
6644
  createTransportStartMark(requestId);
@@ -6927,7 +6936,7 @@ class CsrfTokenRetryPolicy extends RetryPolicy {
6927
6936
  }
6928
6937
  // Check if this is a CSRF error by examining the response body
6929
6938
  // This avoids retrying all 400s (validation errors, bad requests, etc.)
6930
- return await isCsrfError(result);
6939
+ return isCsrfError(result);
6931
6940
  }
6932
6941
  /**
6933
6942
  * CSRF token refresh should happen immediately with no delay.
@@ -6987,7 +6996,7 @@ async function isCsrfError(response) {
6987
6996
  }
6988
6997
 
6989
6998
  function buildCsrfRetryInterceptor() {
6990
- return async (fetchArgs, retryService, context) => {
6999
+ return async (fetchArgs, retryService, _context) => {
6991
7000
  if (retryService) {
6992
7001
  // Create mutable context for CSRF retry policy
6993
7002
  const mutableRequest = { args: fetchArgs };
@@ -7006,7 +7015,7 @@ function buildCsrfRetryInterceptor() {
7006
7015
  }
7007
7016
  // Retry service will call prepareRetry hook which updates mutableRequest.args
7008
7017
  return retryService.applyRetry(async () => {
7009
- return await fetch(...mutableRequest.args);
7018
+ return fetch(...mutableRequest.args);
7010
7019
  });
7011
7020
  }
7012
7021
  return fetch(...fetchArgs);
@@ -9912,6 +9921,7 @@ class FetchThrottlingRetryPolicy extends RetryPolicy {
9912
9921
  }
9913
9922
  }
9914
9923
 
9924
+ /* eslint-disable no-console */
9915
9925
  /**
9916
9926
  * Default storage configuration for the durable cache
9917
9927
  */
@@ -10206,6 +10216,7 @@ class AuraDurableCacheInclusionPolicy extends DurableCacheInclusionPolicy {
10206
10216
  buildUpdate(update, existing) {
10207
10217
  switch (update.type) {
10208
10218
  case 'invalidate':
10219
+ // eslint-disable-next-line no-case-declarations
10209
10220
  const updatedCacheControl = this.buildInvalidatedCacheControl(existing.metadata.cacheControl);
10210
10221
  return updatedCacheControl !== undefined
10211
10222
  ? { type: 'metadata', metadata: updatedCacheControl }
@@ -10214,6 +10225,7 @@ class AuraDurableCacheInclusionPolicy extends DurableCacheInclusionPolicy {
10214
10225
  // Eviction removes the entry entirely from storage
10215
10226
  return { type: 'delete' };
10216
10227
  default:
10228
+ // eslint-disable-next-line @salesforce/lds/no-error-in-production
10217
10229
  throw new Error(`Invalid update operation: ${update.type}`);
10218
10230
  }
10219
10231
  }
@@ -10264,12 +10276,10 @@ register({
10264
10276
  id: '@salesforce/lds-network-adapter',
10265
10277
  instrument: ldsNetworkAdapterInstrument,
10266
10278
  });
10267
- function setTrackedFieldsConfig(includeLeafNodeIdAndNameOnly) {
10268
- const depth = includeLeafNodeIdAndNameOnly ? 1 : 5;
10269
- configuration.setTrackedFieldLeafNodeIdAndNameOnly(includeLeafNodeIdAndNameOnly);
10270
- configuration.setTrackedFieldDepthOnCacheMiss(depth);
10271
- configuration.setTrackedFieldDepthOnCacheMergeConflict(depth);
10272
- configuration.setTrackedFieldDepthOnNotifyChange(depth);
10279
+ function setTrackedFieldsConfig() {
10280
+ configuration.setTrackedFieldDepthOnCacheMiss(1);
10281
+ configuration.setTrackedFieldDepthOnCacheMergeConflict(1);
10282
+ configuration.setTrackedFieldDepthOnNotifyChange(1);
10273
10283
  }
10274
10284
  function setupQueryEvaluators(luvio, store) {
10275
10285
  const baseQueryEvaluator = new InMemoryStoreQueryEvaluator(store);
@@ -10461,7 +10471,7 @@ function initializeLDS() {
10461
10471
  setupMetadataWatcher(luvio);
10462
10472
  setupQueryEvaluators(luvio, store);
10463
10473
  setDefaultLuvio({ luvio });
10464
- setTrackedFieldsConfig(true);
10474
+ setTrackedFieldsConfig();
10465
10475
  if (usePredictiveLoading.isOpen({ fallback: false })) {
10466
10476
  setupPredictivePrefetcher(luvio);
10467
10477
  }
@@ -10571,4 +10581,4 @@ function ldsEngineCreator() {
10571
10581
  }
10572
10582
 
10573
10583
  export { LexRequestStrategy, PdlPrefetcherEventType, PdlRequestPriority, buildPredictorForContext, configService, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory, registerRequestStrategy, saveRequestAsPrediction, subscribeToPrefetcherEvents, unregisterRequestStrategy, whenPredictionsReady };
10574
- // version: 1.432.0-a57c62b660
10584
+ // version: 1.434.0-d8deb0d4ea
@@ -1,6 +1,6 @@
1
1
  import { type LoggerService } from '@conduit-client/utils';
2
2
  import { type FetchServiceDescriptor } from '@conduit-client/service-fetch-network/v1';
3
- import { RetryService } from '@conduit-client/service-retry/v1';
3
+ import type { RetryService } from '@conduit-client/service-retry/v1';
4
4
  export declare function buildLexRuntimeDefaultFetchServiceDescriptor(logger: LoggerService, retryService?: RetryService<Response>): FetchServiceDescriptor;
5
5
  export declare function buildLexRuntimeAllow5xxFetchServiceDescriptor(logger: LoggerService, retryService?: RetryService<Response>): FetchServiceDescriptor;
6
6
  export declare function buildLexRuntimeCompressedFetchServiceDescriptor(logger: LoggerService, retryService?: RetryService<Response>): FetchServiceDescriptor;
@@ -1,2 +1,2 @@
1
- import { FinallyInterceptor } from '@conduit-client/service-fetch-network/v1';
1
+ import type { FinallyInterceptor } from '@conduit-client/service-fetch-network/v1';
2
2
  export declare function buildThirdPartyTrackerFinishInterceptor(): FinallyInterceptor;
@@ -1,6 +1,7 @@
1
1
  import { Luvio } from '@luvio/engine';
2
- import { KeyParamsRecord } from '@salesforce/lds-adapters-uiapi';
3
- import { ObjectHomePageContext, PdlPrefetcherEventType, PrefetcherEventMap, type RecordHomePageContext } from './predictive-loading';
2
+ import type { KeyParamsRecord } from '@salesforce/lds-adapters-uiapi';
3
+ import type { ObjectHomePageContext, PdlPrefetcherEventType, PrefetcherEventMap } from './predictive-loading';
4
+ import { type RecordHomePageContext } from './predictive-loading';
4
5
  import type { LexRequestStrategy } from './predictive-loading/request-strategy/lex-request-strategy';
5
6
  import { type LexRequest } from './predictive-loading/lex';
6
7
  export { PdlRequestPriority, PdlPrefetcherEventType } from './predictive-loading';
@@ -1,6 +1,6 @@
1
1
  import { type ResourceRequest } from '@luvio/engine';
2
2
  import type { RequestLogger } from '@salesforce/lds-network-fetch';
3
- import { RequestTracker } from './instrumentation-utils';
3
+ import type { RequestTracker } from './instrumentation-utils';
4
4
  /**
5
5
  * Base set of url paths that this adapter can serve via HTTP when enabled.
6
6
  * Extend this list to support additional endpoints (see predicate wiring below).
@@ -5,7 +5,7 @@ import type { PrefetchRepository } from '../repository';
5
5
  import type { RequestEntry } from '../common';
6
6
  import type { LexContext, LexPrefetcherOptions, LexRequest } from '../lex';
7
7
  import type { RequestStrategyManager } from '../request-strategy-manager/request-strategy-manager';
8
- import { PrefetcherEventEmitter } from './events';
8
+ import type { PrefetcherEventEmitter } from './events';
9
9
  export declare class LexPredictivePrefetcher extends ApplicationPredictivePrefetcher<LexRequest, LexContext, LexDefaultPage<LexRequest, LexContext>> {
10
10
  protected options: LexPrefetcherOptions;
11
11
  page: LexDefaultPage<LexRequest, LexContext>;
@@ -2,7 +2,8 @@ import type { PrefetchRepository } from '../repository';
2
2
  import type { PredictivePrefetchPage } from '../pages';
3
3
  import type { RequestRunner } from '../request-runner';
4
4
  import type { BaseAdapterRequest } from '../request-strategy';
5
- import { PrefetcherEventEmitter, PdlPrefetcherEventType, PrefetcherEventMap } from './events';
5
+ import type { PrefetcherEventEmitter, PrefetcherEventMap } from './events';
6
+ import { PdlPrefetcherEventType } from './events';
6
7
  export declare abstract class ApplicationPredictivePrefetcher<Request extends BaseAdapterRequest, Context extends Record<string, any>, Page extends PredictivePrefetchPage<Request, Context>> {
7
8
  protected repository: PrefetchRepository<Request>;
8
9
  protected requestRunner: RequestRunner<Request>;
@@ -1,4 +1,4 @@
1
- import { StorageOptions } from './aura-prefetch-storage';
1
+ import type { StorageOptions } from './aura-prefetch-storage';
2
2
  export type PrefetchStorage = {
3
3
  get<T>(key: string): T | undefined;
4
4
  set<T>(key: string, value: T): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
2
- import { ResourceRequest } from '@luvio/engine';
1
+ import type { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
2
+ import type { ResourceRequest } from '@luvio/engine';
3
3
  export declare function buildActionMarksSendInterceptor(): RequestInterceptor;
4
4
  export declare function buildLuvioActionMarksSendInterceptor(): (resourceRequest: ResourceRequest, context?: any) => PromiseLike<ResourceRequest>;
@@ -1,5 +1,5 @@
1
- import { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
2
- import { ResourceRequest } from '@luvio/engine';
1
+ import type { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
2
+ import type { ResourceRequest } from '@luvio/engine';
3
3
  /**
4
4
  * Builds a request interceptor that adds CSRF token headers to mutating requests.
5
5
  * The CSRF token is fetched once and cached for subsequent requests.
@@ -1,2 +1,2 @@
1
- import { ResourceRequest } from '@luvio/engine';
1
+ import type { ResourceRequest } from '@luvio/engine';
2
2
  export declare function buildLuvioThirdPartyTrackerRegisterInterceptor(): (resourceRequest: ResourceRequest, context?: any) => PromiseLike<ResourceRequest>;
@@ -1,2 +1,2 @@
1
- import { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
1
+ import type { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
2
2
  export declare function buildPageScopedCacheRequestInterceptor(): RequestInterceptor;
@@ -1,2 +1,2 @@
1
- import { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
1
+ import type { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
2
2
  export declare function buildThirdPartyTrackerRegisterInterceptor(): RequestInterceptor;
@@ -1,5 +1,5 @@
1
- import { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
2
- import { ResourceRequest } from '@luvio/engine';
1
+ import type { RequestInterceptor } from '@conduit-client/service-fetch-network/v1';
2
+ import type { ResourceRequest } from '@luvio/engine';
3
3
  export declare const SFDC_REQUEST_ID_KEY = "X-SFDC-Request-Id";
4
4
  export declare function buildTransportMarksSendInterceptor(): RequestInterceptor;
5
5
  export declare function buildLuvioTransportMarksSendInterceptor(): (resourceRequest: ResourceRequest, context?: any) => PromiseLike<ResourceRequest>;
@@ -1,4 +1,4 @@
1
- import { ResponseInterceptor } from '@conduit-client/service-fetch-network/v1';
2
- import { ResponseInterceptor as LuvioResponseInterceptor } from '@salesforce/lds-network-fetch';
1
+ import type { ResponseInterceptor } from '@conduit-client/service-fetch-network/v1';
2
+ import type { ResponseInterceptor as LuvioResponseInterceptor } from '@salesforce/lds-network-fetch';
3
3
  export declare function buildActionMarksReceiveInterceptor(): ResponseInterceptor;
4
4
  export declare function buildLuvioActionMarksReceiveInterceptor(): LuvioResponseInterceptor;
@@ -1,6 +1,6 @@
1
- import { LoggerService } from '@conduit-client/utils';
2
- import { ResponseInterceptor } from '@conduit-client/service-fetch-network/v1';
3
- import { ResponseInterceptor as LuvioResponseInterceptor } from '@salesforce/lds-network-fetch';
1
+ import type { LoggerService } from '@conduit-client/utils';
2
+ import type { ResponseInterceptor } from '@conduit-client/service-fetch-network/v1';
3
+ import type { ResponseInterceptor as LuvioResponseInterceptor } from '@salesforce/lds-network-fetch';
4
4
  export type LexRuntimeError = {
5
5
  message: string;
6
6
  severity: string;
@@ -1,5 +1,5 @@
1
- import { LoggerService } from '@conduit-client/utils';
2
- import { ResponseInterceptor } from '@conduit-client/service-fetch-network/v1';
3
- import { ResponseInterceptor as LuvioResponseInterceptor } from '@salesforce/lds-network-fetch';
1
+ import type { LoggerService } from '@conduit-client/utils';
2
+ import type { ResponseInterceptor } from '@conduit-client/service-fetch-network/v1';
3
+ import type { ResponseInterceptor as LuvioResponseInterceptor } from '@salesforce/lds-network-fetch';
4
4
  export declare function buildLexRuntimeAuthExpirationRedirectResponseInterceptor(logger: LoggerService): ResponseInterceptor;
5
5
  export declare function buildLexRuntimeLuvioAuthExpirationRedirectResponseInterceptor(): LuvioResponseInterceptor;
@@ -1,4 +1,4 @@
1
- import { ResponseInterceptor } from '@conduit-client/service-fetch-network/v1';
2
- import { ResponseInterceptor as LuvioResponseInterceptor } from '@salesforce/lds-network-fetch';
1
+ import type { ResponseInterceptor } from '@conduit-client/service-fetch-network/v1';
2
+ import type { ResponseInterceptor as LuvioResponseInterceptor } from '@salesforce/lds-network-fetch';
3
3
  export declare function buildTransportMarksReceiveInterceptor(): ResponseInterceptor;
4
4
  export declare function buildLuvioTransportMarksReceiveInterceptor(): LuvioResponseInterceptor;
@@ -1,2 +1,2 @@
1
- import { RetryInterceptor } from '@conduit-client/service-fetch-network/v1';
1
+ import type { RetryInterceptor } from '@conduit-client/service-fetch-network/v1';
2
2
  export declare function buildCsrfRetryInterceptor(): RetryInterceptor;
@@ -1,4 +1,5 @@
1
- import { RetryPolicy, RetryContext } from '@conduit-client/service-retry/v1';
1
+ import type { RetryContext } from '@conduit-client/service-retry/v1';
2
+ import { RetryPolicy } from '@conduit-client/service-retry/v1';
2
3
  import type { FetchParameters } from '@conduit-client/service-fetch-network/v1';
3
4
  type CsrfTokenRetryPolicyConfig = {
4
5
  /**
@@ -1,4 +1,5 @@
1
- import { RetryPolicy, RetryContext } from '@conduit-client/service-retry/v1';
1
+ import type { RetryContext } from '@conduit-client/service-retry/v1';
2
+ import { RetryPolicy } from '@conduit-client/service-retry/v1';
2
3
  type FetchThrottlingRetryPolicyConfig = {
3
4
  maxRetries: number;
4
5
  maxTimeToRetry: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-aura",
3
- "version": "1.432.0",
3
+ "version": "1.434.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS engine for Aura runtime",
6
6
  "main": "dist/ldsEngineCreator.js",
@@ -34,51 +34,51 @@
34
34
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-aura"
35
35
  },
36
36
  "devDependencies": {
37
- "@conduit-client/service-provisioner": "3.19.2",
38
- "@conduit-client/tools-core": "3.19.2",
39
- "@salesforce/lds-adapters-apex": "^1.432.0",
40
- "@salesforce/lds-adapters-uiapi": "^1.432.0",
41
- "@salesforce/lds-ads-bridge": "^1.432.0",
42
- "@salesforce/lds-aura-storage": "^1.432.0",
43
- "@salesforce/lds-bindings": "^1.432.0",
44
- "@salesforce/lds-instrumentation": "^1.432.0",
45
- "@salesforce/lds-network-aura": "^1.432.0",
46
- "@salesforce/lds-network-fetch": "^1.432.0",
37
+ "@conduit-client/service-provisioner": "3.19.4",
38
+ "@conduit-client/tools-core": "3.19.4",
39
+ "@salesforce/lds-adapters-apex": "^1.434.0",
40
+ "@salesforce/lds-adapters-uiapi": "^1.434.0",
41
+ "@salesforce/lds-ads-bridge": "^1.434.0",
42
+ "@salesforce/lds-aura-storage": "^1.434.0",
43
+ "@salesforce/lds-bindings": "^1.434.0",
44
+ "@salesforce/lds-instrumentation": "^1.434.0",
45
+ "@salesforce/lds-network-aura": "^1.434.0",
46
+ "@salesforce/lds-network-fetch": "^1.434.0",
47
47
  "jwt-encode": "1.0.1"
48
48
  },
49
49
  "dependencies": {
50
- "@conduit-client/command-aura-graphql-normalized-cache-control": "3.19.2",
51
- "@conduit-client/command-aura-network": "3.19.2",
52
- "@conduit-client/command-aura-normalized-cache-control": "3.19.2",
53
- "@conduit-client/command-aura-resource-cache-control": "3.19.2",
54
- "@conduit-client/command-fetch-network": "3.19.2",
55
- "@conduit-client/command-http-graphql-normalized-cache-control": "3.19.2",
56
- "@conduit-client/command-http-normalized-cache-control": "3.19.2",
57
- "@conduit-client/command-ndjson": "3.19.2",
58
- "@conduit-client/command-network": "3.19.2",
59
- "@conduit-client/command-sse": "3.19.2",
60
- "@conduit-client/command-streaming": "3.19.2",
61
- "@conduit-client/service-aura-network": "3.19.2",
62
- "@conduit-client/service-bindings-imperative": "3.19.2",
63
- "@conduit-client/service-bindings-lwc": "3.19.2",
64
- "@conduit-client/service-cache": "3.19.2",
65
- "@conduit-client/service-cache-control": "3.19.2",
66
- "@conduit-client/service-cache-inclusion-policy": "3.19.2",
67
- "@conduit-client/service-config": "3.19.2",
68
- "@conduit-client/service-feature-flags": "3.19.2",
69
- "@conduit-client/service-fetch-network": "3.19.2",
70
- "@conduit-client/service-instrument-command": "3.19.2",
71
- "@conduit-client/service-pubsub": "3.19.2",
72
- "@conduit-client/service-store": "3.19.2",
73
- "@conduit-client/utils": "3.19.2",
50
+ "@conduit-client/command-aura-graphql-normalized-cache-control": "3.19.4",
51
+ "@conduit-client/command-aura-network": "3.19.4",
52
+ "@conduit-client/command-aura-normalized-cache-control": "3.19.4",
53
+ "@conduit-client/command-aura-resource-cache-control": "3.19.4",
54
+ "@conduit-client/command-fetch-network": "3.19.4",
55
+ "@conduit-client/command-http-graphql-normalized-cache-control": "3.19.4",
56
+ "@conduit-client/command-http-normalized-cache-control": "3.19.4",
57
+ "@conduit-client/command-ndjson": "3.19.4",
58
+ "@conduit-client/command-network": "3.19.4",
59
+ "@conduit-client/command-sse": "3.19.4",
60
+ "@conduit-client/command-streaming": "3.19.4",
61
+ "@conduit-client/service-aura-network": "3.19.4",
62
+ "@conduit-client/service-bindings-imperative": "3.19.4",
63
+ "@conduit-client/service-bindings-lwc": "3.19.4",
64
+ "@conduit-client/service-cache": "3.19.4",
65
+ "@conduit-client/service-cache-control": "3.19.4",
66
+ "@conduit-client/service-cache-inclusion-policy": "3.19.4",
67
+ "@conduit-client/service-config": "3.19.4",
68
+ "@conduit-client/service-feature-flags": "3.19.4",
69
+ "@conduit-client/service-fetch-network": "3.19.4",
70
+ "@conduit-client/service-instrument-command": "3.19.4",
71
+ "@conduit-client/service-pubsub": "3.19.4",
72
+ "@conduit-client/service-store": "3.19.4",
73
+ "@conduit-client/utils": "3.19.4",
74
74
  "@luvio/network-adapter-composable": "0.160.4",
75
75
  "@luvio/network-adapter-fetch": "0.160.4",
76
76
  "@lwc/state": "^0.29.0",
77
- "@salesforce/lds-adapters-onestore-graphql": "^1.432.0",
77
+ "@salesforce/lds-adapters-onestore-graphql": "^1.434.0",
78
78
  "@salesforce/lds-adapters-uiapi-lex": "^1.415.0",
79
- "@salesforce/lds-durable-storage": "^1.432.0",
80
- "@salesforce/lds-luvio-service": "^1.432.0",
81
- "@salesforce/lds-luvio-uiapi-records-service": "^1.432.0"
79
+ "@salesforce/lds-durable-storage": "^1.434.0",
80
+ "@salesforce/lds-luvio-service": "^1.434.0",
81
+ "@salesforce/lds-luvio-uiapi-records-service": "^1.434.0"
82
82
  },
83
83
  "luvioBundlesize": [
84
84
  {