@salesforce/lds-runtime-mobile 1.436.0 → 1.438.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.
Files changed (3) hide show
  1. package/dist/main.js +46 -211
  2. package/package.json +34 -34
  3. package/sfdc/main.js +46 -211
package/dist/main.js CHANGED
@@ -135,6 +135,9 @@ function mergeRecordFields$2(first, second) {
135
135
  targetFields[fieldName] = sourceFields[fieldName];
136
136
  continue;
137
137
  }
138
+ if (targetField.displayValue === null && sourceField.displayValue !== null) {
139
+ targetField.displayValue = sourceField.displayValue;
140
+ }
138
141
  mergeRecordFields$2(targetField.value, sourceField.value);
139
142
  continue;
140
143
  }
@@ -51661,6 +51664,9 @@ function mergeRecordFields(first, second) {
51661
51664
  targetFields[fieldName] = sourceField;
51662
51665
  continue;
51663
51666
  }
51667
+ if (targetField.displayValue === null && sourceField.displayValue !== null) {
51668
+ targetField.displayValue = sourceField.displayValue;
51669
+ }
51664
51670
  mergeRecordFields(targetField.value, sourceField.value);
51665
51671
  continue;
51666
51672
  }
@@ -56433,11 +56439,6 @@ function createSfsSideEffectHooks(durableRecordStore) {
56433
56439
  return [];
56434
56440
  }
56435
56441
 
56436
- /*!
56437
- * Copyright (c) 2022, Salesforce, Inc.,
56438
- * All rights reserved.
56439
- * For full license text, see the LICENSE.txt file
56440
- */
56441
56442
  const { create, freeze, keys, entries } = Object;
56442
56443
  const { isArray: isArray$1 } = Array;
56443
56444
  const { stringify: stringify$2, parse: parse$2 } = JSON;
@@ -56556,7 +56557,7 @@ function rejectedPromiseLike$2(reason) {
56556
56557
  };
56557
56558
  }
56558
56559
  function isPromiseLike$2(x) {
56559
- return typeof (x == null ? void 0 : x.then) === "function";
56560
+ return typeof x?.then === "function";
56560
56561
  }
56561
56562
  function deepEquals$1(x, y) {
56562
56563
  if (x === void 0) {
@@ -56726,19 +56727,9 @@ function logError$1(error) {
56726
56727
  console.error("OneStore Command threw an error that we did not expect", error);
56727
56728
  }
56728
56729
 
56729
- /*!
56730
- * Copyright (c) 2022, Salesforce, Inc.,
56731
- * All rights reserved.
56732
- * For full license text, see the LICENSE.txt file
56733
- */
56734
56730
  class BaseCommand {
56735
56731
  }
56736
56732
 
56737
- /*!
56738
- * Copyright (c) 2022, Salesforce, Inc.,
56739
- * All rights reserved.
56740
- * For full license text, see the LICENSE.txt file
56741
- */
56742
56733
  let NetworkCommand$1 = class NetworkCommand extends BaseCommand {
56743
56734
  constructor(services) {
56744
56735
  super();
@@ -56789,11 +56780,6 @@ function buildServiceDescriptor$n() {
56789
56780
  };
56790
56781
  }
56791
56782
 
56792
- /*!
56793
- * Copyright (c) 2022, Salesforce, Inc.,
56794
- * All rights reserved.
56795
- * For full license text, see the LICENSE.txt file
56796
- */
56797
56783
  class AuraNetworkCommand extends NetworkCommand$1 {
56798
56784
  constructor(services) {
56799
56785
  super(services);
@@ -56900,16 +56886,6 @@ function buildServiceDescriptor$m() {
56900
56886
  };
56901
56887
  }
56902
56888
 
56903
- /*!
56904
- * Copyright (c) 2022, Salesforce, Inc.,
56905
- * All rights reserved.
56906
- * For full license text, see the LICENSE.txt file
56907
- */
56908
- /*!
56909
- * Copyright (c) 2022, Salesforce, Inc.,
56910
- * All rights reserved.
56911
- * For full license text, see the LICENSE.txt file
56912
- */
56913
56889
  const { isArray } = Array;
56914
56890
  class Ok {
56915
56891
  constructor(value) {
@@ -56977,7 +56953,7 @@ function rejectedPromiseLike$1(reason) {
56977
56953
  };
56978
56954
  }
56979
56955
  function isPromiseLike$1(x) {
56980
- return typeof (x == null ? void 0 : x.then) === "function";
56956
+ return typeof x?.then === "function";
56981
56957
  }
56982
56958
  function deepEquals(x, y) {
56983
56959
  if (x === void 0) {
@@ -57268,7 +57244,7 @@ class CacheControlCommand extends BaseCommand {
57268
57244
  unsubscribe() {
57269
57245
  while (this.unsubscribers.length > 0) {
57270
57246
  const unsubscriber = this.unsubscribers.pop();
57271
- unsubscriber == null ? void 0 : unsubscriber();
57247
+ unsubscriber?.();
57272
57248
  }
57273
57249
  }
57274
57250
  /**
@@ -57452,16 +57428,6 @@ function mergeCacheControlConfigs(baseConfig, overrides) {
57452
57428
  };
57453
57429
  }
57454
57430
 
57455
- /*!
57456
- * Copyright (c) 2022, Salesforce, Inc.,
57457
- * All rights reserved.
57458
- * For full license text, see the LICENSE.txt file
57459
- */
57460
- /*!
57461
- * Copyright (c) 2022, Salesforce, Inc.,
57462
- * All rights reserved.
57463
- * For full license text, see the LICENSE.txt file
57464
- */
57465
57431
  let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheControlCommand {
57466
57432
  constructor(services) {
57467
57433
  super(services);
@@ -57597,16 +57563,6 @@ function buildServiceDescriptor$l() {
57597
57563
  };
57598
57564
  }
57599
57565
 
57600
- /*!
57601
- * Copyright (c) 2022, Salesforce, Inc.,
57602
- * All rights reserved.
57603
- * For full license text, see the LICENSE.txt file
57604
- */
57605
- /*!
57606
- * Copyright (c) 2022, Salesforce, Inc.,
57607
- * All rights reserved.
57608
- * For full license text, see the LICENSE.txt file
57609
- */
57610
57566
  class AuraCacheControlCommand extends CacheControlCommand {
57611
57567
  constructor(services) {
57612
57568
  super(services);
@@ -57716,8 +57672,7 @@ class AuraResourceCacheControlCommand extends AuraCacheControlCommand {
57716
57672
  this.services = services;
57717
57673
  }
57718
57674
  readFromCache(cache) {
57719
- var _a;
57720
- const data = (_a = cache.get(this.buildKey())) == null ? void 0 : _a.value;
57675
+ const data = cache.get(this.buildKey())?.value;
57721
57676
  if (data === void 0) {
57722
57677
  return resolvedPromiseLike$2(err$1(new Error("Failed to find data in cache")));
57723
57678
  }
@@ -57746,16 +57701,6 @@ function buildServiceDescriptor$k() {
57746
57701
  };
57747
57702
  }
57748
57703
 
57749
- /*!
57750
- * Copyright (c) 2022, Salesforce, Inc.,
57751
- * All rights reserved.
57752
- * For full license text, see the LICENSE.txt file
57753
- */
57754
- /*!
57755
- * Copyright (c) 2022, Salesforce, Inc.,
57756
- * All rights reserved.
57757
- * For full license text, see the LICENSE.txt file
57758
- */
57759
57704
  class NetworkCommand extends BaseCommand {
57760
57705
  constructor(services) {
57761
57706
  super();
@@ -57805,7 +57750,7 @@ function hasFetchParams(command) {
57805
57750
  return command && typeof command === "object" && "fetchParams" in command;
57806
57751
  }
57807
57752
  function createAbortableDecorator(command, options) {
57808
- if (!(options == null ? void 0 : options.signal) || !((options == null ? void 0 : options.signal) instanceof AbortSignal)) {
57753
+ if (!options?.signal || !(options?.signal instanceof AbortSignal)) {
57809
57754
  return command;
57810
57755
  }
57811
57756
  const { signal } = options;
@@ -57952,16 +57897,6 @@ function buildServiceDescriptor$j() {
57952
57897
  };
57953
57898
  }
57954
57899
 
57955
- /*!
57956
- * Copyright (c) 2022, Salesforce, Inc.,
57957
- * All rights reserved.
57958
- * For full license text, see the LICENSE.txt file
57959
- */
57960
- /*!
57961
- * Copyright (c) 2022, Salesforce, Inc.,
57962
- * All rights reserved.
57963
- * For full license text, see the LICENSE.txt file
57964
- */
57965
57900
  class HttpCacheControlCommand extends CacheControlCommand {
57966
57901
  constructor(services) {
57967
57902
  super(services);
@@ -58069,16 +58004,6 @@ function buildServiceDescriptor$i() {
58069
58004
  };
58070
58005
  }
58071
58006
 
58072
- /*!
58073
- * Copyright (c) 2022, Salesforce, Inc.,
58074
- * All rights reserved.
58075
- * For full license text, see the LICENSE.txt file
58076
- */
58077
- /*!
58078
- * Copyright (c) 2022, Salesforce, Inc.,
58079
- * All rights reserved.
58080
- * For full license text, see the LICENSE.txt file
58081
- */
58082
58007
  const { stringify: stringify$1, parse: parse$1 } = JSON;
58083
58008
  function deepCopy$1(x) {
58084
58009
  const stringified = stringify$1(x);
@@ -58102,7 +58027,7 @@ let DefaultRecordableCache$1 = class DefaultRecordableCache {
58102
58027
  if (value === void 0) {
58103
58028
  this.missingKeysRead.add(key);
58104
58029
  }
58105
- if (options == null ? void 0 : options.copy) {
58030
+ if (options?.copy) {
58106
58031
  return deepCopy$1(value);
58107
58032
  }
58108
58033
  return value;
@@ -58146,7 +58071,7 @@ let DefaultFilteredCache$1 = class DefaultFilteredCache {
58146
58071
  get(key, options) {
58147
58072
  const result = this.baseCache.get(key);
58148
58073
  if (result && this.predicate(key, result)) {
58149
- if (options == null ? void 0 : options.copy) {
58074
+ if (options?.copy) {
58150
58075
  return deepCopy$1(result);
58151
58076
  }
58152
58077
  return result;
@@ -58242,7 +58167,7 @@ let DefaultCache$1 = class DefaultCache {
58242
58167
  this.data = {};
58243
58168
  }
58244
58169
  get(key, options) {
58245
- if (options == null ? void 0 : options.copy) {
58170
+ if (options?.copy) {
58246
58171
  return deepCopy$1(this.data[key]);
58247
58172
  }
58248
58173
  return this.data[key];
@@ -58322,11 +58247,6 @@ function buildServiceDescriptor$h() {
58322
58247
  };
58323
58248
  }
58324
58249
 
58325
- /*!
58326
- * Copyright (c) 2022, Salesforce, Inc.,
58327
- * All rights reserved.
58328
- * For full license text, see the LICENSE.txt file
58329
- */
58330
58250
  class CacheControlStrategy {
58331
58251
  constructor(services, config, requestRunner) {
58332
58252
  this.services = services;
@@ -58387,11 +58307,11 @@ class MaxAgeCacheControlStrategy extends CacheControlStrategy {
58387
58307
  if (value.isOk()) {
58388
58308
  this.collectCacheHitInstrumentation(
58389
58309
  startTime,
58390
- options == null ? void 0 : options.instrumentationAttributes
58310
+ options?.instrumentationAttributes
58391
58311
  );
58392
58312
  return ok$1(void 0);
58393
58313
  }
58394
- this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
58314
+ this.collectCacheMissInstrumentation(startTime, options?.instrumentationAttributes);
58395
58315
  const tempCache = this.filteredCache;
58396
58316
  return new Promise(async (resolve, reject) => {
58397
58317
  try {
@@ -58461,11 +58381,11 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
58461
58381
  if (result.isOk()) {
58462
58382
  this.collectCacheHitInstrumentation(
58463
58383
  startTime,
58464
- options == null ? void 0 : options.instrumentationAttributes
58384
+ options?.instrumentationAttributes
58465
58385
  );
58466
58386
  return ok$1(void 0);
58467
58387
  }
58468
- this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
58388
+ this.collectCacheMissInstrumentation(startTime, options?.instrumentationAttributes);
58469
58389
  const error = new UserVisibleError(
58470
58390
  new FetchResponse(HttpStatusCode.GatewayTimeout, {
58471
58391
  error: "Cache miss for only-if-cached request"
@@ -58549,11 +58469,6 @@ function buildServiceDescriptor$g(cache, cacheInclusionPolicy, instrumentation)
58549
58469
  };
58550
58470
  }
58551
58471
 
58552
- /*!
58553
- * Copyright (c) 2022, Salesforce, Inc.,
58554
- * All rights reserved.
58555
- * For full license text, see the LICENSE.txt file
58556
- */
58557
58472
  function buildInstrumentCommand(services) {
58558
58473
  const meter = services.instrumentation.metrics.getMeter("onestore");
58559
58474
  return function instrumentCommand(commandClass, commandName) {
@@ -58573,7 +58488,7 @@ function buildInstrumentCommand(services) {
58573
58488
  try {
58574
58489
  result = super.execute(...args);
58575
58490
  } catch (e) {
58576
- if ((e == null ? void 0 : e.name) === "AbortError") {
58491
+ if (e?.name === "AbortError") {
58577
58492
  abortCounter.add(1);
58578
58493
  } else {
58579
58494
  errorCounter.add(1);
@@ -58600,16 +58515,6 @@ function buildServiceDescriptor$f(instrumentation) {
58600
58515
  };
58601
58516
  }
58602
58517
 
58603
- /*!
58604
- * Copyright (c) 2022, Salesforce, Inc.,
58605
- * All rights reserved.
58606
- * For full license text, see the LICENSE.txt file
58607
- */
58608
- /*!
58609
- * Copyright (c) 2022, Salesforce, Inc.,
58610
- * All rights reserved.
58611
- * For full license text, see the LICENSE.txt file
58612
- */
58613
58518
  class O11yOTelTraceAPI {
58614
58519
  constructor(services) {
58615
58520
  this.services = services;
@@ -58625,9 +58530,9 @@ class O11yTracer {
58625
58530
  this.logger = logger;
58626
58531
  }
58627
58532
  startSpan(name, _options, context) {
58628
- const traceId = context == null ? void 0 : context.getValue(Symbol.for("traceId"));
58629
- const spanId = context == null ? void 0 : context.getValue(Symbol.for("spanId"));
58630
- const traceFlags = context == null ? void 0 : context.getValue(Symbol.for("traceFlags"));
58533
+ const traceId = context?.getValue(/* @__PURE__ */ Symbol.for("traceId"));
58534
+ const spanId = context?.getValue(/* @__PURE__ */ Symbol.for("spanId"));
58535
+ const traceFlags = context?.getValue(/* @__PURE__ */ Symbol.for("traceFlags"));
58631
58536
  let spanContext = void 0;
58632
58537
  if (traceId !== void 0 && spanId !== void 0 && traceFlags !== void 0) {
58633
58538
  spanContext = {
@@ -58870,12 +58775,7 @@ function buildServiceDescriptor$e(logger) {
58870
58775
  };
58871
58776
  }
58872
58777
 
58873
- /*!
58874
- * Copyright (c) 2022, Salesforce, Inc.,
58875
- * All rights reserved.
58876
- * For full license text, see the LICENSE.txt file
58877
- */
58878
- const EventTypeWildcard = Symbol("EventTypeWildcard");
58778
+ const EventTypeWildcard = /* @__PURE__ */ Symbol("EventTypeWildcard");
58879
58779
  class DefaultPubSubService {
58880
58780
  constructor() {
58881
58781
  this.subscriptions = /* @__PURE__ */ new Map();
@@ -58938,11 +58838,6 @@ function buildServiceDescriptor$d() {
58938
58838
  };
58939
58839
  }
58940
58840
 
58941
- /*!
58942
- * Copyright (c) 2022, Salesforce, Inc.,
58943
- * All rights reserved.
58944
- * For full license text, see the LICENSE.txt file
58945
- */
58946
58841
  class FeatureFlagsService {
58947
58842
  constructor() {
58948
58843
  this.flags = /* @__PURE__ */ new Map();
@@ -59004,7 +58899,7 @@ function buildServiceDescriptor$b(luvio) {
59004
58899
  },
59005
58900
  };
59006
58901
  }
59007
- // version: 1.436.0-581b8a5964
58902
+ // version: 1.438.0-0ec0a89235
59008
58903
 
59009
58904
  /**
59010
58905
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -59030,13 +58925,8 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
59030
58925
  },
59031
58926
  };
59032
58927
  }
59033
- // version: 1.436.0-581b8a5964
58928
+ // version: 1.438.0-0ec0a89235
59034
58929
 
59035
- /*!
59036
- * Copyright (c) 2022, Salesforce, Inc.,
59037
- * All rights reserved.
59038
- * For full license text, see the LICENSE.txt file
59039
- */
59040
58930
  function findExecutableOperation(input) {
59041
58931
  const operations = input.query.definitions.filter(
59042
58932
  (def) => def.kind === Kind$2.OPERATION_DEFINITION
@@ -59048,10 +58938,7 @@ function findExecutableOperation(input) {
59048
58938
  return ok$1(operations[0]);
59049
58939
  }
59050
58940
  if (input.operationName) {
59051
- const specifiedOperation = operations.find((op) => {
59052
- var _a;
59053
- return ((_a = op.name) == null ? void 0 : _a.value) === input.operationName;
59054
- });
58941
+ const specifiedOperation = operations.find((op) => op.name?.value === input.operationName);
59055
58942
  if (specifiedOperation) {
59056
58943
  return ok$1(specifiedOperation);
59057
58944
  }
@@ -59067,14 +58954,13 @@ function buildGraphQLInputExtension(input) {
59067
58954
  const operation = operationResult.value;
59068
58955
  const selections = operation.selectionSet.selections;
59069
58956
  const variableDefinitions = operation.variableDefinitions;
59070
- const variables = (variableDefinitions == null ? void 0 : variableDefinitions.reduce((prev, def) => {
59071
- var _a;
58957
+ const variables = variableDefinitions?.reduce((prev, def) => {
59072
58958
  prev[def.variable.name.value] = {
59073
58959
  definition: def,
59074
- value: (_a = input.variables) == null ? void 0 : _a[def.variable.name.value]
58960
+ value: input.variables?.[def.variable.name.value]
59075
58961
  };
59076
58962
  return prev;
59077
- }, {})) || {};
58963
+ }, {}) || {};
59078
58964
  const fragments = input.query.definitions.filter(isFragmentDefinition).reduce((prev, fragment) => {
59079
58965
  prev[fragment.name.value] = fragment;
59080
58966
  return prev;
@@ -59127,11 +59013,6 @@ function isFragmentDefinition(node) {
59127
59013
  return node.kind === Kind$2.FRAGMENT_DEFINITION;
59128
59014
  }
59129
59015
 
59130
- /*!
59131
- * Copyright (c) 2022, Salesforce, Inc.,
59132
- * All rights reserved.
59133
- * For full license text, see the LICENSE.txt file
59134
- */
59135
59016
  class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
59136
59017
  constructor(config, documentRootType, services) {
59137
59018
  super(services);
@@ -59312,11 +59193,6 @@ function buildServiceDescriptor$9() {
59312
59193
  };
59313
59194
  }
59314
59195
 
59315
- /*!
59316
- * Copyright (c) 2022, Salesforce, Inc.,
59317
- * All rights reserved.
59318
- * For full license text, see the LICENSE.txt file
59319
- */
59320
59196
  class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheControlCommand {
59321
59197
  constructor(config, documentRootType, services) {
59322
59198
  super(services);
@@ -59430,11 +59306,6 @@ function buildServiceDescriptor$8() {
59430
59306
  };
59431
59307
  }
59432
59308
 
59433
- /*!
59434
- * Copyright (c) 2022, Salesforce, Inc.,
59435
- * All rights reserved.
59436
- * For full license text, see the LICENSE.txt file
59437
- */
59438
59309
  class JsonSchemaViolationError extends Error {
59439
59310
  constructor(message, validationErrors) {
59440
59311
  super(message);
@@ -59864,11 +59735,6 @@ function findSchemaAtPath(document, ref) {
59864
59735
  return current;
59865
59736
  }
59866
59737
 
59867
- /*!
59868
- * Copyright (c) 2022, Salesforce, Inc.,
59869
- * All rights reserved.
59870
- * For full license text, see the LICENSE.txt file
59871
- */
59872
59738
  function isUserVisibleError(error) {
59873
59739
  return error instanceof Error && "type" in error && error.type === "user-visible";
59874
59740
  }
@@ -59893,11 +59759,6 @@ function logError(error) {
59893
59759
  console.error("OneStore Command threw an error that we did not expect", error);
59894
59760
  }
59895
59761
 
59896
- /*!
59897
- * Copyright (c) 2022, Salesforce, Inc.,
59898
- * All rights reserved.
59899
- * For full license text, see the LICENSE.txt file
59900
- */
59901
59762
  function buildBaseImperativeInvoker(getCommand, transformResult) {
59902
59763
  return async (...params) => {
59903
59764
  const command = getCommand({ params, assertIsValid });
@@ -60002,7 +59863,7 @@ class SubscribableImperativeBindingsService {
60002
59863
  const api = {
60003
59864
  data: result.value.data,
60004
59865
  subscribe: (cb) => {
60005
- result.value.subscribe((result2) => {
59866
+ return result.value.subscribe((result2) => {
60006
59867
  if (result2.isErr()) {
60007
59868
  return cb({ data: void 0, error: toError(result2.error) });
60008
59869
  }
@@ -60105,10 +59966,10 @@ class GraphQLImperativeBindingsService {
60105
59966
  acceptedOperations: ["query"]
60106
59967
  };
60107
59968
  const result = resolveAndValidateGraphQLConfig(params[0], options);
60108
- if (result == null ? void 0 : result.isErr()) {
59969
+ if (result?.isErr()) {
60109
59970
  return result.error;
60110
59971
  }
60111
- if (result == null ? void 0 : result.isOk()) {
59972
+ if (result?.isOk()) {
60112
59973
  params[0] = result.value;
60113
59974
  }
60114
59975
  }
@@ -60127,7 +59988,7 @@ class GraphQLImperativeBindingsService {
60127
59988
  deepFreeze(result.value);
60128
59989
  consumerEmittedData.data = result.value.data.data;
60129
59990
  consumerEmittedData.subscribe = (cb) => {
60130
- result.value.subscribe((res) => {
59991
+ return result.value.subscribe((res) => {
60131
59992
  const consumerEmittedData2 = {
60132
59993
  data: void 0,
60133
59994
  errors: void 0
@@ -60200,11 +60061,11 @@ class GraphQLLegacyImperativeBindingsService {
60200
60061
  acceptedOperations: ["query"]
60201
60062
  };
60202
60063
  const result = resolveAndValidateGraphQLConfig(config, options);
60203
- if (result == null ? void 0 : result.isErr()) {
60064
+ if (result?.isErr()) {
60204
60065
  callback(result.error);
60205
60066
  return;
60206
60067
  }
60207
- if (result == null ? void 0 : result.isOk()) {
60068
+ if (result?.isOk()) {
60208
60069
  config = result.value;
60209
60070
  }
60210
60071
  }
@@ -60235,12 +60096,12 @@ class GraphQLLegacyImperativeBindingsService {
60235
60096
  acceptedOperations: ["query"]
60236
60097
  };
60237
60098
  const result = resolveAndValidateGraphQLConfig(config, options);
60238
- if (result == null ? void 0 : result.isErr()) {
60099
+ if (result?.isErr()) {
60239
60100
  callback(result.error);
60240
60101
  return () => {
60241
60102
  };
60242
60103
  }
60243
- if (result == null ? void 0 : result.isOk()) {
60104
+ if (result?.isOk()) {
60244
60105
  config = result.value;
60245
60106
  }
60246
60107
  }
@@ -60302,13 +60163,13 @@ class GraphQLMutationBindingsService {
60302
60163
  acceptedOperations: ["mutation"]
60303
60164
  };
60304
60165
  const result2 = resolveAndValidateGraphQLConfig(params[0], options);
60305
- if (result2 == null ? void 0 : result2.isErr()) {
60166
+ if (result2?.isErr()) {
60306
60167
  return {
60307
60168
  data: void 0,
60308
60169
  errors: result2.error.errors
60309
60170
  };
60310
60171
  }
60311
- if (result2 == null ? void 0 : result2.isOk()) {
60172
+ if (result2?.isOk()) {
60312
60173
  params[0] = result2.value;
60313
60174
  }
60314
60175
  }
@@ -60334,11 +60195,6 @@ function buildServiceDescriptor$7() {
60334
60195
  };
60335
60196
  }
60336
60197
 
60337
- /*!
60338
- * Copyright (c) 2022, Salesforce, Inc.,
60339
- * All rights reserved.
60340
- * For full license text, see the LICENSE.txt file
60341
- */
60342
60198
  class Sanitizer {
60343
60199
  constructor(obj) {
60344
60200
  this.obj = obj;
@@ -60398,7 +60254,7 @@ class CommandWireAdapterConstructor {
60398
60254
  this.callback = callback;
60399
60255
  this.connected = false;
60400
60256
  this.exposeRefresh = false;
60401
- if (!(options == null ? void 0 : options.skipEmptyEmit)) {
60257
+ if (!options?.skipEmptyEmit) {
60402
60258
  this.emit();
60403
60259
  }
60404
60260
  }
@@ -60695,11 +60551,6 @@ function buildServiceDescriptor$2() {
60695
60551
  };
60696
60552
  }
60697
60553
 
60698
- /*!
60699
- * Copyright (c) 2022, Salesforce, Inc.,
60700
- * All rights reserved.
60701
- * For full license text, see the LICENSE.txt file
60702
- */
60703
60554
  function buildServiceDescriptor$1(interceptors = {
60704
60555
  request: [],
60705
60556
  retry: void 0,
@@ -60710,8 +60561,7 @@ function buildServiceDescriptor$1(interceptors = {
60710
60561
  type: "fetch",
60711
60562
  version: "1.0",
60712
60563
  service: function(...args) {
60713
- var _a;
60714
- const context = (_a = interceptors.createContext) == null ? void 0 : _a.call(interceptors);
60564
+ const context = interceptors.createContext?.();
60715
60565
  const {
60716
60566
  request: requestInterceptors = [],
60717
60567
  retry: retryInterceptor = void 0,
@@ -60905,11 +60755,6 @@ function extractQueryParams(urlString) {
60905
60755
  return queryParams;
60906
60756
  }
60907
60757
 
60908
- /*!
60909
- * Copyright (c) 2022, Salesforce, Inc.,
60910
- * All rights reserved.
60911
- * For full license text, see the LICENSE.txt file
60912
- */
60913
60758
  class CacheInclusionPolicyService {
60914
60759
  }
60915
60760
  function setDifference(setA, setB) {
@@ -60961,18 +60806,8 @@ function rejectedPromiseLike(reason) {
60961
60806
  };
60962
60807
  }
60963
60808
  function isPromiseLike(x) {
60964
- return typeof (x == null ? void 0 : x.then) === "function";
60809
+ return typeof x?.then === "function";
60965
60810
  }
60966
- /*!
60967
- * Copyright (c) 2022, Salesforce, Inc.,
60968
- * All rights reserved.
60969
- * For full license text, see the LICENSE.txt file
60970
- */
60971
- /*!
60972
- * Copyright (c) 2022, Salesforce, Inc.,
60973
- * All rights reserved.
60974
- * For full license text, see the LICENSE.txt file
60975
- */
60976
60811
  const { stringify, parse } = JSON;
60977
60812
  function deepCopy(x) {
60978
60813
  const stringified = stringify(x);
@@ -60996,7 +60831,7 @@ class DefaultRecordableCache {
60996
60831
  if (value === void 0) {
60997
60832
  this.missingKeysRead.add(key);
60998
60833
  }
60999
- if (options == null ? void 0 : options.copy) {
60834
+ if (options?.copy) {
61000
60835
  return deepCopy(value);
61001
60836
  }
61002
60837
  return value;
@@ -61040,7 +60875,7 @@ class DefaultFilteredCache {
61040
60875
  get(key, options) {
61041
60876
  const result = this.baseCache.get(key);
61042
60877
  if (result && this.predicate(key, result)) {
61043
- if (options == null ? void 0 : options.copy) {
60878
+ if (options?.copy) {
61044
60879
  return deepCopy(result);
61045
60880
  }
61046
60881
  return result;
@@ -61136,7 +60971,7 @@ class DefaultCache {
61136
60971
  this.data = {};
61137
60972
  }
61138
60973
  get(key, options) {
61139
- if (options == null ? void 0 : options.copy) {
60974
+ if (options?.copy) {
61140
60975
  return deepCopy(this.data[key]);
61141
60976
  }
61142
60977
  return this.data[key];
@@ -61761,4 +61596,4 @@ register({
61761
61596
  });
61762
61597
 
61763
61598
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
61764
- // version: 1.436.0-581b8a5964
61599
+ // version: 1.438.0-0ec0a89235
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.436.0",
3
+ "version": "1.438.0",
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.19.5",
36
- "@conduit-client/service-bindings-lwc": "3.19.5",
37
- "@conduit-client/service-provisioner": "3.19.5",
38
- "@salesforce/lds-adapters-uiapi": "^1.436.0",
39
- "@salesforce/lds-bindings": "^1.436.0",
40
- "@salesforce/lds-instrumentation": "^1.436.0",
41
- "@salesforce/lds-luvio-service": "^1.436.0",
42
- "@salesforce/lds-luvio-uiapi-records-service": "^1.436.0",
35
+ "@conduit-client/service-bindings-imperative": "3.20.5",
36
+ "@conduit-client/service-bindings-lwc": "3.20.5",
37
+ "@conduit-client/service-provisioner": "3.20.5",
38
+ "@salesforce/lds-adapters-uiapi": "^1.438.0",
39
+ "@salesforce/lds-bindings": "^1.438.0",
40
+ "@salesforce/lds-instrumentation": "^1.438.0",
41
+ "@salesforce/lds-luvio-service": "^1.438.0",
42
+ "@salesforce/lds-luvio-uiapi-records-service": "^1.438.0",
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.19.5",
49
- "@conduit-client/command-aura-normalized-cache-control": "3.19.5",
50
- "@conduit-client/command-aura-resource-cache-control": "3.19.5",
51
- "@conduit-client/command-fetch-network": "3.19.5",
52
- "@conduit-client/command-http-normalized-cache-control": "3.19.5",
53
- "@conduit-client/command-network": "3.19.5",
54
- "@conduit-client/service-cache": "3.19.5",
55
- "@conduit-client/service-cache-control": "3.19.5",
56
- "@conduit-client/service-cache-inclusion-policy": "3.19.5",
57
- "@conduit-client/service-fetch-network": "3.19.5",
58
- "@conduit-client/service-instrument-command": "3.19.5",
59
- "@conduit-client/service-instrumentation": "3.19.5",
60
- "@conduit-client/service-pubsub": "3.19.5",
61
- "@conduit-client/service-store": "3.19.5",
62
- "@conduit-client/utils": "3.19.5",
63
- "@salesforce/lds-adapters-graphql": "^1.436.0",
64
- "@salesforce/lds-drafts": "^1.436.0",
65
- "@salesforce/lds-durable-records": "^1.436.0",
66
- "@salesforce/lds-network-adapter": "^1.436.0",
67
- "@salesforce/lds-network-nimbus": "^1.436.0",
68
- "@salesforce/lds-store-binary": "^1.436.0",
69
- "@salesforce/lds-store-nimbus": "^1.436.0",
70
- "@salesforce/lds-store-sql": "^1.436.0",
71
- "@salesforce/lds-utils-adapters": "^1.436.0",
72
- "@salesforce/nimbus-plugin-lds": "^1.436.0",
48
+ "@conduit-client/command-aura-network": "3.20.5",
49
+ "@conduit-client/command-aura-normalized-cache-control": "3.20.5",
50
+ "@conduit-client/command-aura-resource-cache-control": "3.20.5",
51
+ "@conduit-client/command-fetch-network": "3.20.5",
52
+ "@conduit-client/command-http-normalized-cache-control": "3.20.5",
53
+ "@conduit-client/command-network": "3.20.5",
54
+ "@conduit-client/service-cache": "3.20.5",
55
+ "@conduit-client/service-cache-control": "3.20.5",
56
+ "@conduit-client/service-cache-inclusion-policy": "3.20.5",
57
+ "@conduit-client/service-fetch-network": "3.20.5",
58
+ "@conduit-client/service-instrument-command": "3.20.5",
59
+ "@conduit-client/service-instrumentation": "3.20.5",
60
+ "@conduit-client/service-pubsub": "3.20.5",
61
+ "@conduit-client/service-store": "3.20.5",
62
+ "@conduit-client/utils": "3.20.5",
63
+ "@salesforce/lds-adapters-graphql": "^1.438.0",
64
+ "@salesforce/lds-drafts": "^1.438.0",
65
+ "@salesforce/lds-durable-records": "^1.438.0",
66
+ "@salesforce/lds-network-adapter": "^1.438.0",
67
+ "@salesforce/lds-network-nimbus": "^1.438.0",
68
+ "@salesforce/lds-store-binary": "^1.438.0",
69
+ "@salesforce/lds-store-nimbus": "^1.438.0",
70
+ "@salesforce/lds-store-sql": "^1.438.0",
71
+ "@salesforce/lds-utils-adapters": "^1.438.0",
72
+ "@salesforce/nimbus-plugin-lds": "^1.438.0",
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
@@ -135,6 +135,9 @@ function mergeRecordFields$2(first, second) {
135
135
  targetFields[fieldName] = sourceFields[fieldName];
136
136
  continue;
137
137
  }
138
+ if (targetField.displayValue === null && sourceField.displayValue !== null) {
139
+ targetField.displayValue = sourceField.displayValue;
140
+ }
138
141
  mergeRecordFields$2(targetField.value, sourceField.value);
139
142
  continue;
140
143
  }
@@ -51661,6 +51664,9 @@ function mergeRecordFields(first, second) {
51661
51664
  targetFields[fieldName] = sourceField;
51662
51665
  continue;
51663
51666
  }
51667
+ if (targetField.displayValue === null && sourceField.displayValue !== null) {
51668
+ targetField.displayValue = sourceField.displayValue;
51669
+ }
51664
51670
  mergeRecordFields(targetField.value, sourceField.value);
51665
51671
  continue;
51666
51672
  }
@@ -56433,11 +56439,6 @@ function createSfsSideEffectHooks(durableRecordStore) {
56433
56439
  return [];
56434
56440
  }
56435
56441
 
56436
- /*!
56437
- * Copyright (c) 2022, Salesforce, Inc.,
56438
- * All rights reserved.
56439
- * For full license text, see the LICENSE.txt file
56440
- */
56441
56442
  const { create, freeze, keys, entries } = Object;
56442
56443
  const { isArray: isArray$1 } = Array;
56443
56444
  const { stringify: stringify$2, parse: parse$2 } = JSON;
@@ -56556,7 +56557,7 @@ function rejectedPromiseLike$2(reason) {
56556
56557
  };
56557
56558
  }
56558
56559
  function isPromiseLike$2(x) {
56559
- return typeof (x == null ? void 0 : x.then) === "function";
56560
+ return typeof x?.then === "function";
56560
56561
  }
56561
56562
  function deepEquals$1(x, y) {
56562
56563
  if (x === void 0) {
@@ -56726,19 +56727,9 @@ function logError$1(error) {
56726
56727
  console.error("OneStore Command threw an error that we did not expect", error);
56727
56728
  }
56728
56729
 
56729
- /*!
56730
- * Copyright (c) 2022, Salesforce, Inc.,
56731
- * All rights reserved.
56732
- * For full license text, see the LICENSE.txt file
56733
- */
56734
56730
  class BaseCommand {
56735
56731
  }
56736
56732
 
56737
- /*!
56738
- * Copyright (c) 2022, Salesforce, Inc.,
56739
- * All rights reserved.
56740
- * For full license text, see the LICENSE.txt file
56741
- */
56742
56733
  let NetworkCommand$1 = class NetworkCommand extends BaseCommand {
56743
56734
  constructor(services) {
56744
56735
  super();
@@ -56789,11 +56780,6 @@ function buildServiceDescriptor$n() {
56789
56780
  };
56790
56781
  }
56791
56782
 
56792
- /*!
56793
- * Copyright (c) 2022, Salesforce, Inc.,
56794
- * All rights reserved.
56795
- * For full license text, see the LICENSE.txt file
56796
- */
56797
56783
  class AuraNetworkCommand extends NetworkCommand$1 {
56798
56784
  constructor(services) {
56799
56785
  super(services);
@@ -56900,16 +56886,6 @@ function buildServiceDescriptor$m() {
56900
56886
  };
56901
56887
  }
56902
56888
 
56903
- /*!
56904
- * Copyright (c) 2022, Salesforce, Inc.,
56905
- * All rights reserved.
56906
- * For full license text, see the LICENSE.txt file
56907
- */
56908
- /*!
56909
- * Copyright (c) 2022, Salesforce, Inc.,
56910
- * All rights reserved.
56911
- * For full license text, see the LICENSE.txt file
56912
- */
56913
56889
  const { isArray } = Array;
56914
56890
  class Ok {
56915
56891
  constructor(value) {
@@ -56977,7 +56953,7 @@ function rejectedPromiseLike$1(reason) {
56977
56953
  };
56978
56954
  }
56979
56955
  function isPromiseLike$1(x) {
56980
- return typeof (x == null ? void 0 : x.then) === "function";
56956
+ return typeof x?.then === "function";
56981
56957
  }
56982
56958
  function deepEquals(x, y) {
56983
56959
  if (x === void 0) {
@@ -57268,7 +57244,7 @@ class CacheControlCommand extends BaseCommand {
57268
57244
  unsubscribe() {
57269
57245
  while (this.unsubscribers.length > 0) {
57270
57246
  const unsubscriber = this.unsubscribers.pop();
57271
- unsubscriber == null ? void 0 : unsubscriber();
57247
+ unsubscriber?.();
57272
57248
  }
57273
57249
  }
57274
57250
  /**
@@ -57452,16 +57428,6 @@ function mergeCacheControlConfigs(baseConfig, overrides) {
57452
57428
  };
57453
57429
  }
57454
57430
 
57455
- /*!
57456
- * Copyright (c) 2022, Salesforce, Inc.,
57457
- * All rights reserved.
57458
- * For full license text, see the LICENSE.txt file
57459
- */
57460
- /*!
57461
- * Copyright (c) 2022, Salesforce, Inc.,
57462
- * All rights reserved.
57463
- * For full license text, see the LICENSE.txt file
57464
- */
57465
57431
  let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheControlCommand {
57466
57432
  constructor(services) {
57467
57433
  super(services);
@@ -57597,16 +57563,6 @@ function buildServiceDescriptor$l() {
57597
57563
  };
57598
57564
  }
57599
57565
 
57600
- /*!
57601
- * Copyright (c) 2022, Salesforce, Inc.,
57602
- * All rights reserved.
57603
- * For full license text, see the LICENSE.txt file
57604
- */
57605
- /*!
57606
- * Copyright (c) 2022, Salesforce, Inc.,
57607
- * All rights reserved.
57608
- * For full license text, see the LICENSE.txt file
57609
- */
57610
57566
  class AuraCacheControlCommand extends CacheControlCommand {
57611
57567
  constructor(services) {
57612
57568
  super(services);
@@ -57716,8 +57672,7 @@ class AuraResourceCacheControlCommand extends AuraCacheControlCommand {
57716
57672
  this.services = services;
57717
57673
  }
57718
57674
  readFromCache(cache) {
57719
- var _a;
57720
- const data = (_a = cache.get(this.buildKey())) == null ? void 0 : _a.value;
57675
+ const data = cache.get(this.buildKey())?.value;
57721
57676
  if (data === void 0) {
57722
57677
  return resolvedPromiseLike$2(err$1(new Error("Failed to find data in cache")));
57723
57678
  }
@@ -57746,16 +57701,6 @@ function buildServiceDescriptor$k() {
57746
57701
  };
57747
57702
  }
57748
57703
 
57749
- /*!
57750
- * Copyright (c) 2022, Salesforce, Inc.,
57751
- * All rights reserved.
57752
- * For full license text, see the LICENSE.txt file
57753
- */
57754
- /*!
57755
- * Copyright (c) 2022, Salesforce, Inc.,
57756
- * All rights reserved.
57757
- * For full license text, see the LICENSE.txt file
57758
- */
57759
57704
  class NetworkCommand extends BaseCommand {
57760
57705
  constructor(services) {
57761
57706
  super();
@@ -57805,7 +57750,7 @@ function hasFetchParams(command) {
57805
57750
  return command && typeof command === "object" && "fetchParams" in command;
57806
57751
  }
57807
57752
  function createAbortableDecorator(command, options) {
57808
- if (!(options == null ? void 0 : options.signal) || !((options == null ? void 0 : options.signal) instanceof AbortSignal)) {
57753
+ if (!options?.signal || !(options?.signal instanceof AbortSignal)) {
57809
57754
  return command;
57810
57755
  }
57811
57756
  const { signal } = options;
@@ -57952,16 +57897,6 @@ function buildServiceDescriptor$j() {
57952
57897
  };
57953
57898
  }
57954
57899
 
57955
- /*!
57956
- * Copyright (c) 2022, Salesforce, Inc.,
57957
- * All rights reserved.
57958
- * For full license text, see the LICENSE.txt file
57959
- */
57960
- /*!
57961
- * Copyright (c) 2022, Salesforce, Inc.,
57962
- * All rights reserved.
57963
- * For full license text, see the LICENSE.txt file
57964
- */
57965
57900
  class HttpCacheControlCommand extends CacheControlCommand {
57966
57901
  constructor(services) {
57967
57902
  super(services);
@@ -58069,16 +58004,6 @@ function buildServiceDescriptor$i() {
58069
58004
  };
58070
58005
  }
58071
58006
 
58072
- /*!
58073
- * Copyright (c) 2022, Salesforce, Inc.,
58074
- * All rights reserved.
58075
- * For full license text, see the LICENSE.txt file
58076
- */
58077
- /*!
58078
- * Copyright (c) 2022, Salesforce, Inc.,
58079
- * All rights reserved.
58080
- * For full license text, see the LICENSE.txt file
58081
- */
58082
58007
  const { stringify: stringify$1, parse: parse$1 } = JSON;
58083
58008
  function deepCopy$1(x) {
58084
58009
  const stringified = stringify$1(x);
@@ -58102,7 +58027,7 @@ let DefaultRecordableCache$1 = class DefaultRecordableCache {
58102
58027
  if (value === void 0) {
58103
58028
  this.missingKeysRead.add(key);
58104
58029
  }
58105
- if (options == null ? void 0 : options.copy) {
58030
+ if (options?.copy) {
58106
58031
  return deepCopy$1(value);
58107
58032
  }
58108
58033
  return value;
@@ -58146,7 +58071,7 @@ let DefaultFilteredCache$1 = class DefaultFilteredCache {
58146
58071
  get(key, options) {
58147
58072
  const result = this.baseCache.get(key);
58148
58073
  if (result && this.predicate(key, result)) {
58149
- if (options == null ? void 0 : options.copy) {
58074
+ if (options?.copy) {
58150
58075
  return deepCopy$1(result);
58151
58076
  }
58152
58077
  return result;
@@ -58242,7 +58167,7 @@ let DefaultCache$1 = class DefaultCache {
58242
58167
  this.data = {};
58243
58168
  }
58244
58169
  get(key, options) {
58245
- if (options == null ? void 0 : options.copy) {
58170
+ if (options?.copy) {
58246
58171
  return deepCopy$1(this.data[key]);
58247
58172
  }
58248
58173
  return this.data[key];
@@ -58322,11 +58247,6 @@ function buildServiceDescriptor$h() {
58322
58247
  };
58323
58248
  }
58324
58249
 
58325
- /*!
58326
- * Copyright (c) 2022, Salesforce, Inc.,
58327
- * All rights reserved.
58328
- * For full license text, see the LICENSE.txt file
58329
- */
58330
58250
  class CacheControlStrategy {
58331
58251
  constructor(services, config, requestRunner) {
58332
58252
  this.services = services;
@@ -58387,11 +58307,11 @@ class MaxAgeCacheControlStrategy extends CacheControlStrategy {
58387
58307
  if (value.isOk()) {
58388
58308
  this.collectCacheHitInstrumentation(
58389
58309
  startTime,
58390
- options == null ? void 0 : options.instrumentationAttributes
58310
+ options?.instrumentationAttributes
58391
58311
  );
58392
58312
  return ok$1(void 0);
58393
58313
  }
58394
- this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
58314
+ this.collectCacheMissInstrumentation(startTime, options?.instrumentationAttributes);
58395
58315
  const tempCache = this.filteredCache;
58396
58316
  return new Promise(async (resolve, reject) => {
58397
58317
  try {
@@ -58461,11 +58381,11 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
58461
58381
  if (result.isOk()) {
58462
58382
  this.collectCacheHitInstrumentation(
58463
58383
  startTime,
58464
- options == null ? void 0 : options.instrumentationAttributes
58384
+ options?.instrumentationAttributes
58465
58385
  );
58466
58386
  return ok$1(void 0);
58467
58387
  }
58468
- this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
58388
+ this.collectCacheMissInstrumentation(startTime, options?.instrumentationAttributes);
58469
58389
  const error = new UserVisibleError(
58470
58390
  new FetchResponse(HttpStatusCode.GatewayTimeout, {
58471
58391
  error: "Cache miss for only-if-cached request"
@@ -58549,11 +58469,6 @@ function buildServiceDescriptor$g(cache, cacheInclusionPolicy, instrumentation)
58549
58469
  };
58550
58470
  }
58551
58471
 
58552
- /*!
58553
- * Copyright (c) 2022, Salesforce, Inc.,
58554
- * All rights reserved.
58555
- * For full license text, see the LICENSE.txt file
58556
- */
58557
58472
  function buildInstrumentCommand(services) {
58558
58473
  const meter = services.instrumentation.metrics.getMeter("onestore");
58559
58474
  return function instrumentCommand(commandClass, commandName) {
@@ -58573,7 +58488,7 @@ function buildInstrumentCommand(services) {
58573
58488
  try {
58574
58489
  result = super.execute(...args);
58575
58490
  } catch (e) {
58576
- if ((e == null ? void 0 : e.name) === "AbortError") {
58491
+ if (e?.name === "AbortError") {
58577
58492
  abortCounter.add(1);
58578
58493
  } else {
58579
58494
  errorCounter.add(1);
@@ -58600,16 +58515,6 @@ function buildServiceDescriptor$f(instrumentation) {
58600
58515
  };
58601
58516
  }
58602
58517
 
58603
- /*!
58604
- * Copyright (c) 2022, Salesforce, Inc.,
58605
- * All rights reserved.
58606
- * For full license text, see the LICENSE.txt file
58607
- */
58608
- /*!
58609
- * Copyright (c) 2022, Salesforce, Inc.,
58610
- * All rights reserved.
58611
- * For full license text, see the LICENSE.txt file
58612
- */
58613
58518
  class O11yOTelTraceAPI {
58614
58519
  constructor(services) {
58615
58520
  this.services = services;
@@ -58625,9 +58530,9 @@ class O11yTracer {
58625
58530
  this.logger = logger;
58626
58531
  }
58627
58532
  startSpan(name, _options, context) {
58628
- const traceId = context == null ? void 0 : context.getValue(Symbol.for("traceId"));
58629
- const spanId = context == null ? void 0 : context.getValue(Symbol.for("spanId"));
58630
- const traceFlags = context == null ? void 0 : context.getValue(Symbol.for("traceFlags"));
58533
+ const traceId = context?.getValue(/* @__PURE__ */ Symbol.for("traceId"));
58534
+ const spanId = context?.getValue(/* @__PURE__ */ Symbol.for("spanId"));
58535
+ const traceFlags = context?.getValue(/* @__PURE__ */ Symbol.for("traceFlags"));
58631
58536
  let spanContext = void 0;
58632
58537
  if (traceId !== void 0 && spanId !== void 0 && traceFlags !== void 0) {
58633
58538
  spanContext = {
@@ -58870,12 +58775,7 @@ function buildServiceDescriptor$e(logger) {
58870
58775
  };
58871
58776
  }
58872
58777
 
58873
- /*!
58874
- * Copyright (c) 2022, Salesforce, Inc.,
58875
- * All rights reserved.
58876
- * For full license text, see the LICENSE.txt file
58877
- */
58878
- const EventTypeWildcard = Symbol("EventTypeWildcard");
58778
+ const EventTypeWildcard = /* @__PURE__ */ Symbol("EventTypeWildcard");
58879
58779
  class DefaultPubSubService {
58880
58780
  constructor() {
58881
58781
  this.subscriptions = /* @__PURE__ */ new Map();
@@ -58938,11 +58838,6 @@ function buildServiceDescriptor$d() {
58938
58838
  };
58939
58839
  }
58940
58840
 
58941
- /*!
58942
- * Copyright (c) 2022, Salesforce, Inc.,
58943
- * All rights reserved.
58944
- * For full license text, see the LICENSE.txt file
58945
- */
58946
58841
  class FeatureFlagsService {
58947
58842
  constructor() {
58948
58843
  this.flags = /* @__PURE__ */ new Map();
@@ -59004,7 +58899,7 @@ function buildServiceDescriptor$b(luvio) {
59004
58899
  },
59005
58900
  };
59006
58901
  }
59007
- // version: 1.436.0-581b8a5964
58902
+ // version: 1.438.0-0ec0a89235
59008
58903
 
59009
58904
  /**
59010
58905
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -59030,13 +58925,8 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
59030
58925
  },
59031
58926
  };
59032
58927
  }
59033
- // version: 1.436.0-581b8a5964
58928
+ // version: 1.438.0-0ec0a89235
59034
58929
 
59035
- /*!
59036
- * Copyright (c) 2022, Salesforce, Inc.,
59037
- * All rights reserved.
59038
- * For full license text, see the LICENSE.txt file
59039
- */
59040
58930
  function findExecutableOperation(input) {
59041
58931
  const operations = input.query.definitions.filter(
59042
58932
  (def) => def.kind === Kind$2.OPERATION_DEFINITION
@@ -59048,10 +58938,7 @@ function findExecutableOperation(input) {
59048
58938
  return ok$1(operations[0]);
59049
58939
  }
59050
58940
  if (input.operationName) {
59051
- const specifiedOperation = operations.find((op) => {
59052
- var _a;
59053
- return ((_a = op.name) == null ? void 0 : _a.value) === input.operationName;
59054
- });
58941
+ const specifiedOperation = operations.find((op) => op.name?.value === input.operationName);
59055
58942
  if (specifiedOperation) {
59056
58943
  return ok$1(specifiedOperation);
59057
58944
  }
@@ -59067,14 +58954,13 @@ function buildGraphQLInputExtension(input) {
59067
58954
  const operation = operationResult.value;
59068
58955
  const selections = operation.selectionSet.selections;
59069
58956
  const variableDefinitions = operation.variableDefinitions;
59070
- const variables = (variableDefinitions == null ? void 0 : variableDefinitions.reduce((prev, def) => {
59071
- var _a;
58957
+ const variables = variableDefinitions?.reduce((prev, def) => {
59072
58958
  prev[def.variable.name.value] = {
59073
58959
  definition: def,
59074
- value: (_a = input.variables) == null ? void 0 : _a[def.variable.name.value]
58960
+ value: input.variables?.[def.variable.name.value]
59075
58961
  };
59076
58962
  return prev;
59077
- }, {})) || {};
58963
+ }, {}) || {};
59078
58964
  const fragments = input.query.definitions.filter(isFragmentDefinition).reduce((prev, fragment) => {
59079
58965
  prev[fragment.name.value] = fragment;
59080
58966
  return prev;
@@ -59127,11 +59013,6 @@ function isFragmentDefinition(node) {
59127
59013
  return node.kind === Kind$2.FRAGMENT_DEFINITION;
59128
59014
  }
59129
59015
 
59130
- /*!
59131
- * Copyright (c) 2022, Salesforce, Inc.,
59132
- * All rights reserved.
59133
- * For full license text, see the LICENSE.txt file
59134
- */
59135
59016
  class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
59136
59017
  constructor(config, documentRootType, services) {
59137
59018
  super(services);
@@ -59312,11 +59193,6 @@ function buildServiceDescriptor$9() {
59312
59193
  };
59313
59194
  }
59314
59195
 
59315
- /*!
59316
- * Copyright (c) 2022, Salesforce, Inc.,
59317
- * All rights reserved.
59318
- * For full license text, see the LICENSE.txt file
59319
- */
59320
59196
  class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheControlCommand {
59321
59197
  constructor(config, documentRootType, services) {
59322
59198
  super(services);
@@ -59430,11 +59306,6 @@ function buildServiceDescriptor$8() {
59430
59306
  };
59431
59307
  }
59432
59308
 
59433
- /*!
59434
- * Copyright (c) 2022, Salesforce, Inc.,
59435
- * All rights reserved.
59436
- * For full license text, see the LICENSE.txt file
59437
- */
59438
59309
  class JsonSchemaViolationError extends Error {
59439
59310
  constructor(message, validationErrors) {
59440
59311
  super(message);
@@ -59864,11 +59735,6 @@ function findSchemaAtPath(document, ref) {
59864
59735
  return current;
59865
59736
  }
59866
59737
 
59867
- /*!
59868
- * Copyright (c) 2022, Salesforce, Inc.,
59869
- * All rights reserved.
59870
- * For full license text, see the LICENSE.txt file
59871
- */
59872
59738
  function isUserVisibleError(error) {
59873
59739
  return error instanceof Error && "type" in error && error.type === "user-visible";
59874
59740
  }
@@ -59893,11 +59759,6 @@ function logError(error) {
59893
59759
  console.error("OneStore Command threw an error that we did not expect", error);
59894
59760
  }
59895
59761
 
59896
- /*!
59897
- * Copyright (c) 2022, Salesforce, Inc.,
59898
- * All rights reserved.
59899
- * For full license text, see the LICENSE.txt file
59900
- */
59901
59762
  function buildBaseImperativeInvoker(getCommand, transformResult) {
59902
59763
  return async (...params) => {
59903
59764
  const command = getCommand({ params, assertIsValid });
@@ -60002,7 +59863,7 @@ class SubscribableImperativeBindingsService {
60002
59863
  const api = {
60003
59864
  data: result.value.data,
60004
59865
  subscribe: (cb) => {
60005
- result.value.subscribe((result2) => {
59866
+ return result.value.subscribe((result2) => {
60006
59867
  if (result2.isErr()) {
60007
59868
  return cb({ data: void 0, error: toError(result2.error) });
60008
59869
  }
@@ -60105,10 +59966,10 @@ class GraphQLImperativeBindingsService {
60105
59966
  acceptedOperations: ["query"]
60106
59967
  };
60107
59968
  const result = resolveAndValidateGraphQLConfig(params[0], options);
60108
- if (result == null ? void 0 : result.isErr()) {
59969
+ if (result?.isErr()) {
60109
59970
  return result.error;
60110
59971
  }
60111
- if (result == null ? void 0 : result.isOk()) {
59972
+ if (result?.isOk()) {
60112
59973
  params[0] = result.value;
60113
59974
  }
60114
59975
  }
@@ -60127,7 +59988,7 @@ class GraphQLImperativeBindingsService {
60127
59988
  deepFreeze(result.value);
60128
59989
  consumerEmittedData.data = result.value.data.data;
60129
59990
  consumerEmittedData.subscribe = (cb) => {
60130
- result.value.subscribe((res) => {
59991
+ return result.value.subscribe((res) => {
60131
59992
  const consumerEmittedData2 = {
60132
59993
  data: void 0,
60133
59994
  errors: void 0
@@ -60200,11 +60061,11 @@ class GraphQLLegacyImperativeBindingsService {
60200
60061
  acceptedOperations: ["query"]
60201
60062
  };
60202
60063
  const result = resolveAndValidateGraphQLConfig(config, options);
60203
- if (result == null ? void 0 : result.isErr()) {
60064
+ if (result?.isErr()) {
60204
60065
  callback(result.error);
60205
60066
  return;
60206
60067
  }
60207
- if (result == null ? void 0 : result.isOk()) {
60068
+ if (result?.isOk()) {
60208
60069
  config = result.value;
60209
60070
  }
60210
60071
  }
@@ -60235,12 +60096,12 @@ class GraphQLLegacyImperativeBindingsService {
60235
60096
  acceptedOperations: ["query"]
60236
60097
  };
60237
60098
  const result = resolveAndValidateGraphQLConfig(config, options);
60238
- if (result == null ? void 0 : result.isErr()) {
60099
+ if (result?.isErr()) {
60239
60100
  callback(result.error);
60240
60101
  return () => {
60241
60102
  };
60242
60103
  }
60243
- if (result == null ? void 0 : result.isOk()) {
60104
+ if (result?.isOk()) {
60244
60105
  config = result.value;
60245
60106
  }
60246
60107
  }
@@ -60302,13 +60163,13 @@ class GraphQLMutationBindingsService {
60302
60163
  acceptedOperations: ["mutation"]
60303
60164
  };
60304
60165
  const result2 = resolveAndValidateGraphQLConfig(params[0], options);
60305
- if (result2 == null ? void 0 : result2.isErr()) {
60166
+ if (result2?.isErr()) {
60306
60167
  return {
60307
60168
  data: void 0,
60308
60169
  errors: result2.error.errors
60309
60170
  };
60310
60171
  }
60311
- if (result2 == null ? void 0 : result2.isOk()) {
60172
+ if (result2?.isOk()) {
60312
60173
  params[0] = result2.value;
60313
60174
  }
60314
60175
  }
@@ -60334,11 +60195,6 @@ function buildServiceDescriptor$7() {
60334
60195
  };
60335
60196
  }
60336
60197
 
60337
- /*!
60338
- * Copyright (c) 2022, Salesforce, Inc.,
60339
- * All rights reserved.
60340
- * For full license text, see the LICENSE.txt file
60341
- */
60342
60198
  class Sanitizer {
60343
60199
  constructor(obj) {
60344
60200
  this.obj = obj;
@@ -60398,7 +60254,7 @@ class CommandWireAdapterConstructor {
60398
60254
  this.callback = callback;
60399
60255
  this.connected = false;
60400
60256
  this.exposeRefresh = false;
60401
- if (!(options == null ? void 0 : options.skipEmptyEmit)) {
60257
+ if (!options?.skipEmptyEmit) {
60402
60258
  this.emit();
60403
60259
  }
60404
60260
  }
@@ -60695,11 +60551,6 @@ function buildServiceDescriptor$2() {
60695
60551
  };
60696
60552
  }
60697
60553
 
60698
- /*!
60699
- * Copyright (c) 2022, Salesforce, Inc.,
60700
- * All rights reserved.
60701
- * For full license text, see the LICENSE.txt file
60702
- */
60703
60554
  function buildServiceDescriptor$1(interceptors = {
60704
60555
  request: [],
60705
60556
  retry: void 0,
@@ -60710,8 +60561,7 @@ function buildServiceDescriptor$1(interceptors = {
60710
60561
  type: "fetch",
60711
60562
  version: "1.0",
60712
60563
  service: function(...args) {
60713
- var _a;
60714
- const context = (_a = interceptors.createContext) == null ? void 0 : _a.call(interceptors);
60564
+ const context = interceptors.createContext?.();
60715
60565
  const {
60716
60566
  request: requestInterceptors = [],
60717
60567
  retry: retryInterceptor = void 0,
@@ -60905,11 +60755,6 @@ function extractQueryParams(urlString) {
60905
60755
  return queryParams;
60906
60756
  }
60907
60757
 
60908
- /*!
60909
- * Copyright (c) 2022, Salesforce, Inc.,
60910
- * All rights reserved.
60911
- * For full license text, see the LICENSE.txt file
60912
- */
60913
60758
  class CacheInclusionPolicyService {
60914
60759
  }
60915
60760
  function setDifference(setA, setB) {
@@ -60961,18 +60806,8 @@ function rejectedPromiseLike(reason) {
60961
60806
  };
60962
60807
  }
60963
60808
  function isPromiseLike(x) {
60964
- return typeof (x == null ? void 0 : x.then) === "function";
60809
+ return typeof x?.then === "function";
60965
60810
  }
60966
- /*!
60967
- * Copyright (c) 2022, Salesforce, Inc.,
60968
- * All rights reserved.
60969
- * For full license text, see the LICENSE.txt file
60970
- */
60971
- /*!
60972
- * Copyright (c) 2022, Salesforce, Inc.,
60973
- * All rights reserved.
60974
- * For full license text, see the LICENSE.txt file
60975
- */
60976
60811
  const { stringify, parse } = JSON;
60977
60812
  function deepCopy(x) {
60978
60813
  const stringified = stringify(x);
@@ -60996,7 +60831,7 @@ class DefaultRecordableCache {
60996
60831
  if (value === void 0) {
60997
60832
  this.missingKeysRead.add(key);
60998
60833
  }
60999
- if (options == null ? void 0 : options.copy) {
60834
+ if (options?.copy) {
61000
60835
  return deepCopy(value);
61001
60836
  }
61002
60837
  return value;
@@ -61040,7 +60875,7 @@ class DefaultFilteredCache {
61040
60875
  get(key, options) {
61041
60876
  const result = this.baseCache.get(key);
61042
60877
  if (result && this.predicate(key, result)) {
61043
- if (options == null ? void 0 : options.copy) {
60878
+ if (options?.copy) {
61044
60879
  return deepCopy(result);
61045
60880
  }
61046
60881
  return result;
@@ -61136,7 +60971,7 @@ class DefaultCache {
61136
60971
  this.data = {};
61137
60972
  }
61138
60973
  get(key, options) {
61139
- if (options == null ? void 0 : options.copy) {
60974
+ if (options?.copy) {
61140
60975
  return deepCopy(this.data[key]);
61141
60976
  }
61142
60977
  return this.data[key];
@@ -61761,4 +61596,4 @@ register({
61761
61596
  });
61762
61597
 
61763
61598
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
61764
- // version: 1.436.0-581b8a5964
61599
+ // version: 1.438.0-0ec0a89235