@salesforce/lds-runtime-mobile 1.404.0-dev5 → 1.404.0-dev7

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.
package/dist/main.js CHANGED
@@ -27,6 +27,7 @@ import graphqlRelationshipFieldsPerf from '@salesforce/gate/lds.graphqlRelations
27
27
  import FIRST_DAY_OF_WEEK from '@salesforce/i18n/firstDayOfWeek';
28
28
  import graphqQueryFieldLimit from '@salesforce/gate/lmr.graphqQueryFieldLimit';
29
29
  import graphqlPartialEmitParity from '@salesforce/gate/lmr.graphqlPartialEmitParity';
30
+ import { pdpEventSchema } from 'o11y_schema/sf_pdp';
30
31
  import { instrument as instrument$1 } from '@salesforce/lds-bindings';
31
32
  import ldsAdapterO11yLoggingGate from '@salesforce/gate/lmr.ldsAdapterO11yLogging';
32
33
  import LOCALE from '@salesforce/i18n/locale';
@@ -52020,6 +52021,9 @@ function instrumentContentDocumentVersionAdapter(adapter) {
52020
52021
  const GRAPHQL_LEGACY_ADAPTER_NAME = 'graphQL';
52021
52022
  const GRAPHQL_ADAPTER_NAME = 'graphql';
52022
52023
  const CREATE_CONTENT_DOCUMENT_AND_VERSION_ADAPTER = 'createContentDocumentAndVersion';
52024
+ const VERTICAL_NAV_FEATURE_ID = 'aJCEE00000018px4AA'; // Product Feature ID for Lightning SDK
52025
+ const NAMESPACE = 'lds';
52026
+ const ldsInstrumentation = getInstrumentation(NAMESPACE);
52023
52027
  let reportObservers = [];
52024
52028
  function instrumentAdapter(adapter, metadata) {
52025
52029
  let instrumentedMobileAdapter = adapter;
@@ -52043,6 +52047,13 @@ function instrumentAdapter(adapter, metadata) {
52043
52047
  for (const observer of reportObservers) {
52044
52048
  observer(report);
52045
52049
  }
52050
+ if (pdpEventSchema) {
52051
+ ldsInstrumentation.log(pdpEventSchema, {
52052
+ event_name: 'lsdkLDSAdapter.invoked',
52053
+ productFeatureId: VERTICAL_NAV_FEATURE_ID,
52054
+ contextName: metadata.name,
52055
+ });
52056
+ }
52046
52057
  },
52047
52058
  });
52048
52059
  }
@@ -56309,7 +56320,12 @@ class AuraNetworkCommand extends NetworkCommand$1 {
56309
56320
  this.coerceAuraErrors
56310
56321
  );
56311
56322
  } else if (this.shouldUseFetch()) {
56312
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
56323
+ const params = this.fetchParams;
56324
+ try {
56325
+ return this.convertFetchResponseToData(this.services.fetch(...params));
56326
+ } catch (reason) {
56327
+ return resolvedPromiseLike$2(err$1(toError(reason)));
56328
+ }
56313
56329
  }
56314
56330
  return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
56315
56331
  }
@@ -56907,7 +56923,12 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
56907
56923
  (errs) => this.coerceAuraErrors(errs)
56908
56924
  );
56909
56925
  } else if (this.shouldUseFetch()) {
56910
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
56926
+ const params = this.fetchParams;
56927
+ try {
56928
+ return this.convertFetchResponseToData(this.services.fetch(...params));
56929
+ } catch (reason) {
56930
+ return resolvedPromiseLike$2(err$1(toError(reason)));
56931
+ }
56911
56932
  }
56912
56933
  return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
56913
56934
  }
@@ -57046,7 +57067,12 @@ class AuraCacheControlCommand extends CacheControlCommand {
57046
57067
  (errs) => this.coerceAuraErrors(errs)
57047
57068
  );
57048
57069
  } else if (this.shouldUseFetch()) {
57049
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57070
+ const params = this.fetchParams;
57071
+ try {
57072
+ return this.convertFetchResponseToData(this.services.fetch(...params));
57073
+ } catch (reason) {
57074
+ return resolvedPromiseLike$2(err$1(toError(reason)));
57075
+ }
57050
57076
  }
57051
57077
  return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
57052
57078
  }
@@ -57282,7 +57308,11 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
57282
57308
  this.services = services;
57283
57309
  }
57284
57310
  fetch() {
57285
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57311
+ try {
57312
+ return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57313
+ } catch (reason) {
57314
+ return resolvedPromiseLike$2(err$1(toError(reason)));
57315
+ }
57286
57316
  }
57287
57317
  async coerceError(errorResponse) {
57288
57318
  return toError(errorResponse.statusText);
@@ -57346,7 +57376,11 @@ class HttpCacheControlCommand extends CacheControlCommand {
57346
57376
  return this.fetch();
57347
57377
  }
57348
57378
  fetch() {
57349
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57379
+ try {
57380
+ return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57381
+ } catch (reason) {
57382
+ return resolvedPromiseLike$2(err$1(toError(reason)));
57383
+ }
57350
57384
  }
57351
57385
  async coerceError(errorResponse) {
57352
57386
  return toError(errorResponse.statusText);
@@ -57823,9 +57857,13 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
57823
57857
  }
57824
57858
  get expiredChecks() {
57825
57859
  return [
57826
- (cacheControlMetadata) => cacheControlMetadata.type === "no-store"
57860
+ ...super.expiredChecks,
57861
+ (cacheControlMetadata) => cacheControlMetadata.type === "no-cache"
57827
57862
  ];
57828
57863
  }
57864
+ // Note: If we add support for `stale-while-revalidate` in the future, we may
57865
+ // need to further override expiredChecks to allow stale entries that are within the
57866
+ // stale-while-revalidate window to be returned for only-if-cached requests.
57829
57867
  collectCacheHitInstrumentation(startTime, instrumentationAttributes) {
57830
57868
  if (this.services.instrumentation) {
57831
57869
  const meter = this.services.instrumentation.metrics.getMeter("onestore");
@@ -58347,7 +58385,7 @@ function buildServiceDescriptor$b(luvio) {
58347
58385
  },
58348
58386
  };
58349
58387
  }
58350
- // version: 1.404.0-dev5-38a59c52aa
58388
+ // version: 1.404.0-dev7-7d4ca687f7
58351
58389
 
58352
58390
  /**
58353
58391
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -58373,7 +58411,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
58373
58411
  },
58374
58412
  };
58375
58413
  }
58376
- // version: 1.404.0-dev5-38a59c52aa
58414
+ // version: 1.404.0-dev7-7d4ca687f7
58377
58415
 
58378
58416
  /*!
58379
58417
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -58584,11 +58622,26 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
58584
58622
  return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
58585
58623
  });
58586
58624
  } else if (this.shouldUseFetch()) {
58587
- return this.convertFetchResponseToData(
58588
- this.services.fetch(...this.originalFetchParams)
58589
- ).then((result) => {
58590
- return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
58591
- });
58625
+ const params = this.originalFetchParams;
58626
+ try {
58627
+ return this.convertFetchResponseToData(this.services.fetch(...params)).then(
58628
+ (result) => {
58629
+ return buildSubscribableResult$1(
58630
+ result,
58631
+ this.buildSubscribe(),
58632
+ () => this.refresh()
58633
+ );
58634
+ }
58635
+ );
58636
+ } catch (reason) {
58637
+ return resolvedPromiseLike$2(
58638
+ buildSubscribableResult$1(
58639
+ err$1(toError(reason)),
58640
+ this.buildSubscribe(),
58641
+ () => this.refresh()
58642
+ )
58643
+ );
58644
+ }
58592
58645
  }
58593
58646
  return resolvedPromiseLike$2(
58594
58647
  buildSubscribableResult$1(
@@ -59903,7 +59956,12 @@ function buildServiceDescriptor$2() {
59903
59956
  * All rights reserved.
59904
59957
  * For full license text, see the LICENSE.txt file
59905
59958
  */
59906
- function buildServiceDescriptor$1(interceptors = { request: [], response: [], finally: [] }, retryService) {
59959
+ function buildServiceDescriptor$1(interceptors = {
59960
+ request: [],
59961
+ retry: void 0,
59962
+ response: [],
59963
+ finally: []
59964
+ }, retryService) {
59907
59965
  return {
59908
59966
  type: "fetch",
59909
59967
  version: "1.0",
@@ -59912,6 +59970,7 @@ function buildServiceDescriptor$1(interceptors = { request: [], response: [], fi
59912
59970
  const context = (_a = interceptors.createContext) == null ? void 0 : _a.call(interceptors);
59913
59971
  const {
59914
59972
  request: requestInterceptors = [],
59973
+ retry: retryInterceptor = void 0,
59915
59974
  response: responseInterceptors = [],
59916
59975
  finally: finallyInterceptors = []
59917
59976
  } = interceptors;
@@ -59920,10 +59979,14 @@ function buildServiceDescriptor$1(interceptors = { request: [], response: [], fi
59920
59979
  resolvedPromiseLike$2(args)
59921
59980
  );
59922
59981
  return Promise.resolve(pending).then((args2) => {
59923
- if (retryService) {
59924
- return retryService.applyRetry(() => fetch(...args2));
59982
+ if (retryInterceptor) {
59983
+ return retryInterceptor(args2, retryService, context);
59984
+ } else {
59985
+ if (retryService) {
59986
+ return retryService.applyRetry(() => fetch(...args2));
59987
+ }
59988
+ return fetch(...args2);
59925
59989
  }
59926
- return fetch(...args2);
59927
59990
  }).then((response) => {
59928
59991
  return responseInterceptors.reduce(
59929
59992
  (previousPromise, interceptor) => previousPromise.then((response2) => interceptor(response2, context)),
@@ -60936,4 +60999,4 @@ register({
60936
60999
  });
60937
61000
 
60938
61001
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
60939
- // version: 1.404.0-dev5-924c469d6b
61002
+ // version: 1.404.0-dev7-f7cbfedbf0
@@ -0,0 +1 @@
1
+ export declare const pdpEventSchema: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.404.0-dev5",
3
+ "version": "1.404.0-dev7",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS runtime for mobile/hybrid environments.",
6
6
  "main": "dist/main.js",
@@ -32,44 +32,44 @@
32
32
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-mobile"
33
33
  },
34
34
  "dependencies": {
35
- "@conduit-client/service-bindings-imperative": "3.2.0",
36
- "@conduit-client/service-bindings-lwc": "3.2.0",
37
- "@conduit-client/service-provisioner": "3.2.0",
38
- "@salesforce/lds-adapters-uiapi": "^1.404.0-dev5",
39
- "@salesforce/lds-bindings": "^1.404.0-dev5",
40
- "@salesforce/lds-instrumentation": "^1.404.0-dev5",
41
- "@salesforce/lds-luvio-service": "^1.404.0-dev5",
42
- "@salesforce/lds-luvio-uiapi-records-service": "^1.404.0-dev5",
35
+ "@conduit-client/service-bindings-imperative": "3.7.0-dev2",
36
+ "@conduit-client/service-bindings-lwc": "3.7.0-dev2",
37
+ "@conduit-client/service-provisioner": "3.7.0-dev2",
38
+ "@salesforce/lds-adapters-uiapi": "^1.404.0-dev7",
39
+ "@salesforce/lds-bindings": "^1.404.0-dev7",
40
+ "@salesforce/lds-instrumentation": "^1.404.0-dev7",
41
+ "@salesforce/lds-luvio-service": "^1.404.0-dev7",
42
+ "@salesforce/lds-luvio-uiapi-records-service": "^1.404.0-dev7",
43
43
  "@salesforce/user": "0.0.21",
44
44
  "o11y": "250.7.0",
45
45
  "o11y_schema": "256.126.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@conduit-client/command-aura-network": "3.2.0",
49
- "@conduit-client/command-aura-normalized-cache-control": "3.2.0",
50
- "@conduit-client/command-aura-resource-cache-control": "3.2.0",
51
- "@conduit-client/command-fetch-network": "3.2.0",
52
- "@conduit-client/command-http-normalized-cache-control": "3.2.0",
53
- "@conduit-client/command-network": "3.2.0",
54
- "@conduit-client/service-cache": "3.2.0",
55
- "@conduit-client/service-cache-control": "3.2.0",
56
- "@conduit-client/service-cache-inclusion-policy": "3.2.0",
57
- "@conduit-client/service-fetch-network": "3.2.0",
58
- "@conduit-client/service-instrument-command": "3.2.0",
59
- "@conduit-client/service-instrumentation": "3.2.0",
60
- "@conduit-client/service-pubsub": "3.2.0",
61
- "@conduit-client/service-store": "3.2.0",
62
- "@conduit-client/utils": "3.2.0",
63
- "@salesforce/lds-adapters-graphql": "^1.404.0-dev5",
64
- "@salesforce/lds-drafts": "^1.404.0-dev5",
65
- "@salesforce/lds-durable-records": "^1.404.0-dev5",
66
- "@salesforce/lds-network-adapter": "^1.404.0-dev5",
67
- "@salesforce/lds-network-nimbus": "^1.404.0-dev5",
68
- "@salesforce/lds-store-binary": "^1.404.0-dev5",
69
- "@salesforce/lds-store-nimbus": "^1.404.0-dev5",
70
- "@salesforce/lds-store-sql": "^1.404.0-dev5",
71
- "@salesforce/lds-utils-adapters": "^1.404.0-dev5",
72
- "@salesforce/nimbus-plugin-lds": "^1.404.0-dev5",
48
+ "@conduit-client/command-aura-network": "3.7.0-dev2",
49
+ "@conduit-client/command-aura-normalized-cache-control": "3.7.0-dev2",
50
+ "@conduit-client/command-aura-resource-cache-control": "3.7.0-dev2",
51
+ "@conduit-client/command-fetch-network": "3.7.0-dev2",
52
+ "@conduit-client/command-http-normalized-cache-control": "3.7.0-dev2",
53
+ "@conduit-client/command-network": "3.7.0-dev2",
54
+ "@conduit-client/service-cache": "3.7.0-dev2",
55
+ "@conduit-client/service-cache-control": "3.7.0-dev2",
56
+ "@conduit-client/service-cache-inclusion-policy": "3.7.0-dev2",
57
+ "@conduit-client/service-fetch-network": "3.7.0-dev2",
58
+ "@conduit-client/service-instrument-command": "3.7.0-dev2",
59
+ "@conduit-client/service-instrumentation": "3.7.0-dev2",
60
+ "@conduit-client/service-pubsub": "3.7.0-dev2",
61
+ "@conduit-client/service-store": "3.7.0-dev2",
62
+ "@conduit-client/utils": "3.7.0-dev2",
63
+ "@salesforce/lds-adapters-graphql": "^1.404.0-dev7",
64
+ "@salesforce/lds-drafts": "^1.404.0-dev7",
65
+ "@salesforce/lds-durable-records": "^1.404.0-dev7",
66
+ "@salesforce/lds-network-adapter": "^1.404.0-dev7",
67
+ "@salesforce/lds-network-nimbus": "^1.404.0-dev7",
68
+ "@salesforce/lds-store-binary": "^1.404.0-dev7",
69
+ "@salesforce/lds-store-nimbus": "^1.404.0-dev7",
70
+ "@salesforce/lds-store-sql": "^1.404.0-dev7",
71
+ "@salesforce/lds-utils-adapters": "^1.404.0-dev7",
72
+ "@salesforce/nimbus-plugin-lds": "^1.404.0-dev7",
73
73
  "babel-plugin-dynamic-import-node": "^2.3.3",
74
74
  "wait-for-expect": "^3.0.2"
75
75
  },
package/sfdc/main.js CHANGED
@@ -27,6 +27,7 @@ import graphqlRelationshipFieldsPerf from '@salesforce/gate/lds.graphqlRelations
27
27
  import FIRST_DAY_OF_WEEK from '@salesforce/i18n/firstDayOfWeek';
28
28
  import graphqQueryFieldLimit from '@salesforce/gate/lmr.graphqQueryFieldLimit';
29
29
  import graphqlPartialEmitParity from '@salesforce/gate/lmr.graphqlPartialEmitParity';
30
+ import { pdpEventSchema } from 'o11y_schema/sf_pdp';
30
31
  import { instrument as instrument$1 } from 'force/ldsBindings';
31
32
  import ldsAdapterO11yLoggingGate from '@salesforce/gate/lmr.ldsAdapterO11yLogging';
32
33
  import LOCALE from '@salesforce/i18n/locale';
@@ -52020,6 +52021,9 @@ function instrumentContentDocumentVersionAdapter(adapter) {
52020
52021
  const GRAPHQL_LEGACY_ADAPTER_NAME = 'graphQL';
52021
52022
  const GRAPHQL_ADAPTER_NAME = 'graphql';
52022
52023
  const CREATE_CONTENT_DOCUMENT_AND_VERSION_ADAPTER = 'createContentDocumentAndVersion';
52024
+ const VERTICAL_NAV_FEATURE_ID = 'aJCEE00000018px4AA'; // Product Feature ID for Lightning SDK
52025
+ const NAMESPACE = 'lds';
52026
+ const ldsInstrumentation = getInstrumentation(NAMESPACE);
52023
52027
  let reportObservers = [];
52024
52028
  function instrumentAdapter(adapter, metadata) {
52025
52029
  let instrumentedMobileAdapter = adapter;
@@ -52043,6 +52047,13 @@ function instrumentAdapter(adapter, metadata) {
52043
52047
  for (const observer of reportObservers) {
52044
52048
  observer(report);
52045
52049
  }
52050
+ if (pdpEventSchema) {
52051
+ ldsInstrumentation.log(pdpEventSchema, {
52052
+ event_name: 'lsdkLDSAdapter.invoked',
52053
+ productFeatureId: VERTICAL_NAV_FEATURE_ID,
52054
+ contextName: metadata.name,
52055
+ });
52056
+ }
52046
52057
  },
52047
52058
  });
52048
52059
  }
@@ -56309,7 +56320,12 @@ class AuraNetworkCommand extends NetworkCommand$1 {
56309
56320
  this.coerceAuraErrors
56310
56321
  );
56311
56322
  } else if (this.shouldUseFetch()) {
56312
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
56323
+ const params = this.fetchParams;
56324
+ try {
56325
+ return this.convertFetchResponseToData(this.services.fetch(...params));
56326
+ } catch (reason) {
56327
+ return resolvedPromiseLike$2(err$1(toError(reason)));
56328
+ }
56313
56329
  }
56314
56330
  return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
56315
56331
  }
@@ -56907,7 +56923,12 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
56907
56923
  (errs) => this.coerceAuraErrors(errs)
56908
56924
  );
56909
56925
  } else if (this.shouldUseFetch()) {
56910
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
56926
+ const params = this.fetchParams;
56927
+ try {
56928
+ return this.convertFetchResponseToData(this.services.fetch(...params));
56929
+ } catch (reason) {
56930
+ return resolvedPromiseLike$2(err$1(toError(reason)));
56931
+ }
56911
56932
  }
56912
56933
  return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
56913
56934
  }
@@ -57046,7 +57067,12 @@ class AuraCacheControlCommand extends CacheControlCommand {
57046
57067
  (errs) => this.coerceAuraErrors(errs)
57047
57068
  );
57048
57069
  } else if (this.shouldUseFetch()) {
57049
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57070
+ const params = this.fetchParams;
57071
+ try {
57072
+ return this.convertFetchResponseToData(this.services.fetch(...params));
57073
+ } catch (reason) {
57074
+ return resolvedPromiseLike$2(err$1(toError(reason)));
57075
+ }
57050
57076
  }
57051
57077
  return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
57052
57078
  }
@@ -57282,7 +57308,11 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
57282
57308
  this.services = services;
57283
57309
  }
57284
57310
  fetch() {
57285
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57311
+ try {
57312
+ return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57313
+ } catch (reason) {
57314
+ return resolvedPromiseLike$2(err$1(toError(reason)));
57315
+ }
57286
57316
  }
57287
57317
  async coerceError(errorResponse) {
57288
57318
  return toError(errorResponse.statusText);
@@ -57346,7 +57376,11 @@ class HttpCacheControlCommand extends CacheControlCommand {
57346
57376
  return this.fetch();
57347
57377
  }
57348
57378
  fetch() {
57349
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57379
+ try {
57380
+ return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57381
+ } catch (reason) {
57382
+ return resolvedPromiseLike$2(err$1(toError(reason)));
57383
+ }
57350
57384
  }
57351
57385
  async coerceError(errorResponse) {
57352
57386
  return toError(errorResponse.statusText);
@@ -57823,9 +57857,13 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
57823
57857
  }
57824
57858
  get expiredChecks() {
57825
57859
  return [
57826
- (cacheControlMetadata) => cacheControlMetadata.type === "no-store"
57860
+ ...super.expiredChecks,
57861
+ (cacheControlMetadata) => cacheControlMetadata.type === "no-cache"
57827
57862
  ];
57828
57863
  }
57864
+ // Note: If we add support for `stale-while-revalidate` in the future, we may
57865
+ // need to further override expiredChecks to allow stale entries that are within the
57866
+ // stale-while-revalidate window to be returned for only-if-cached requests.
57829
57867
  collectCacheHitInstrumentation(startTime, instrumentationAttributes) {
57830
57868
  if (this.services.instrumentation) {
57831
57869
  const meter = this.services.instrumentation.metrics.getMeter("onestore");
@@ -58347,7 +58385,7 @@ function buildServiceDescriptor$b(luvio) {
58347
58385
  },
58348
58386
  };
58349
58387
  }
58350
- // version: 1.404.0-dev5-38a59c52aa
58388
+ // version: 1.404.0-dev7-7d4ca687f7
58351
58389
 
58352
58390
  /**
58353
58391
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -58373,7 +58411,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
58373
58411
  },
58374
58412
  };
58375
58413
  }
58376
- // version: 1.404.0-dev5-38a59c52aa
58414
+ // version: 1.404.0-dev7-7d4ca687f7
58377
58415
 
58378
58416
  /*!
58379
58417
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -58584,11 +58622,26 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
58584
58622
  return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
58585
58623
  });
58586
58624
  } else if (this.shouldUseFetch()) {
58587
- return this.convertFetchResponseToData(
58588
- this.services.fetch(...this.originalFetchParams)
58589
- ).then((result) => {
58590
- return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
58591
- });
58625
+ const params = this.originalFetchParams;
58626
+ try {
58627
+ return this.convertFetchResponseToData(this.services.fetch(...params)).then(
58628
+ (result) => {
58629
+ return buildSubscribableResult$1(
58630
+ result,
58631
+ this.buildSubscribe(),
58632
+ () => this.refresh()
58633
+ );
58634
+ }
58635
+ );
58636
+ } catch (reason) {
58637
+ return resolvedPromiseLike$2(
58638
+ buildSubscribableResult$1(
58639
+ err$1(toError(reason)),
58640
+ this.buildSubscribe(),
58641
+ () => this.refresh()
58642
+ )
58643
+ );
58644
+ }
58592
58645
  }
58593
58646
  return resolvedPromiseLike$2(
58594
58647
  buildSubscribableResult$1(
@@ -59903,7 +59956,12 @@ function buildServiceDescriptor$2() {
59903
59956
  * All rights reserved.
59904
59957
  * For full license text, see the LICENSE.txt file
59905
59958
  */
59906
- function buildServiceDescriptor$1(interceptors = { request: [], response: [], finally: [] }, retryService) {
59959
+ function buildServiceDescriptor$1(interceptors = {
59960
+ request: [],
59961
+ retry: void 0,
59962
+ response: [],
59963
+ finally: []
59964
+ }, retryService) {
59907
59965
  return {
59908
59966
  type: "fetch",
59909
59967
  version: "1.0",
@@ -59912,6 +59970,7 @@ function buildServiceDescriptor$1(interceptors = { request: [], response: [], fi
59912
59970
  const context = (_a = interceptors.createContext) == null ? void 0 : _a.call(interceptors);
59913
59971
  const {
59914
59972
  request: requestInterceptors = [],
59973
+ retry: retryInterceptor = void 0,
59915
59974
  response: responseInterceptors = [],
59916
59975
  finally: finallyInterceptors = []
59917
59976
  } = interceptors;
@@ -59920,10 +59979,14 @@ function buildServiceDescriptor$1(interceptors = { request: [], response: [], fi
59920
59979
  resolvedPromiseLike$2(args)
59921
59980
  );
59922
59981
  return Promise.resolve(pending).then((args2) => {
59923
- if (retryService) {
59924
- return retryService.applyRetry(() => fetch(...args2));
59982
+ if (retryInterceptor) {
59983
+ return retryInterceptor(args2, retryService, context);
59984
+ } else {
59985
+ if (retryService) {
59986
+ return retryService.applyRetry(() => fetch(...args2));
59987
+ }
59988
+ return fetch(...args2);
59925
59989
  }
59926
- return fetch(...args2);
59927
59990
  }).then((response) => {
59928
59991
  return responseInterceptors.reduce(
59929
59992
  (previousPromise, interceptor) => previousPromise.then((response2) => interceptor(response2, context)),
@@ -60936,4 +60999,4 @@ register({
60936
60999
  });
60937
61000
 
60938
61001
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
60939
- // version: 1.404.0-dev5-924c469d6b
61002
+ // version: 1.404.0-dev7-f7cbfedbf0
@@ -0,0 +1 @@
1
+ export declare const pdpEventSchema: {};