@salesforce/lds-runtime-mobile 1.438.0 → 1.439.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 +211 -40
  2. package/package.json +34 -34
  3. package/sfdc/main.js +211 -40
package/dist/main.js CHANGED
@@ -56439,6 +56439,11 @@ function createSfsSideEffectHooks(durableRecordStore) {
56439
56439
  return [];
56440
56440
  }
56441
56441
 
56442
+ /*!
56443
+ * Copyright (c) 2022, Salesforce, Inc.,
56444
+ * All rights reserved.
56445
+ * For full license text, see the LICENSE.txt file
56446
+ */
56442
56447
  const { create, freeze, keys, entries } = Object;
56443
56448
  const { isArray: isArray$1 } = Array;
56444
56449
  const { stringify: stringify$2, parse: parse$2 } = JSON;
@@ -56557,7 +56562,7 @@ function rejectedPromiseLike$2(reason) {
56557
56562
  };
56558
56563
  }
56559
56564
  function isPromiseLike$2(x) {
56560
- return typeof x?.then === "function";
56565
+ return typeof (x == null ? void 0 : x.then) === "function";
56561
56566
  }
56562
56567
  function deepEquals$1(x, y) {
56563
56568
  if (x === void 0) {
@@ -56727,9 +56732,19 @@ function logError$1(error) {
56727
56732
  console.error("OneStore Command threw an error that we did not expect", error);
56728
56733
  }
56729
56734
 
56735
+ /*!
56736
+ * Copyright (c) 2022, Salesforce, Inc.,
56737
+ * All rights reserved.
56738
+ * For full license text, see the LICENSE.txt file
56739
+ */
56730
56740
  class BaseCommand {
56731
56741
  }
56732
56742
 
56743
+ /*!
56744
+ * Copyright (c) 2022, Salesforce, Inc.,
56745
+ * All rights reserved.
56746
+ * For full license text, see the LICENSE.txt file
56747
+ */
56733
56748
  let NetworkCommand$1 = class NetworkCommand extends BaseCommand {
56734
56749
  constructor(services) {
56735
56750
  super();
@@ -56780,6 +56795,11 @@ function buildServiceDescriptor$n() {
56780
56795
  };
56781
56796
  }
56782
56797
 
56798
+ /*!
56799
+ * Copyright (c) 2022, Salesforce, Inc.,
56800
+ * All rights reserved.
56801
+ * For full license text, see the LICENSE.txt file
56802
+ */
56783
56803
  class AuraNetworkCommand extends NetworkCommand$1 {
56784
56804
  constructor(services) {
56785
56805
  super(services);
@@ -56886,6 +56906,16 @@ function buildServiceDescriptor$m() {
56886
56906
  };
56887
56907
  }
56888
56908
 
56909
+ /*!
56910
+ * Copyright (c) 2022, Salesforce, Inc.,
56911
+ * All rights reserved.
56912
+ * For full license text, see the LICENSE.txt file
56913
+ */
56914
+ /*!
56915
+ * Copyright (c) 2022, Salesforce, Inc.,
56916
+ * All rights reserved.
56917
+ * For full license text, see the LICENSE.txt file
56918
+ */
56889
56919
  const { isArray } = Array;
56890
56920
  class Ok {
56891
56921
  constructor(value) {
@@ -56953,7 +56983,7 @@ function rejectedPromiseLike$1(reason) {
56953
56983
  };
56954
56984
  }
56955
56985
  function isPromiseLike$1(x) {
56956
- return typeof x?.then === "function";
56986
+ return typeof (x == null ? void 0 : x.then) === "function";
56957
56987
  }
56958
56988
  function deepEquals(x, y) {
56959
56989
  if (x === void 0) {
@@ -57244,7 +57274,7 @@ class CacheControlCommand extends BaseCommand {
57244
57274
  unsubscribe() {
57245
57275
  while (this.unsubscribers.length > 0) {
57246
57276
  const unsubscriber = this.unsubscribers.pop();
57247
- unsubscriber?.();
57277
+ unsubscriber == null ? void 0 : unsubscriber();
57248
57278
  }
57249
57279
  }
57250
57280
  /**
@@ -57428,6 +57458,16 @@ function mergeCacheControlConfigs(baseConfig, overrides) {
57428
57458
  };
57429
57459
  }
57430
57460
 
57461
+ /*!
57462
+ * Copyright (c) 2022, Salesforce, Inc.,
57463
+ * All rights reserved.
57464
+ * For full license text, see the LICENSE.txt file
57465
+ */
57466
+ /*!
57467
+ * Copyright (c) 2022, Salesforce, Inc.,
57468
+ * All rights reserved.
57469
+ * For full license text, see the LICENSE.txt file
57470
+ */
57431
57471
  let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheControlCommand {
57432
57472
  constructor(services) {
57433
57473
  super(services);
@@ -57563,6 +57603,16 @@ function buildServiceDescriptor$l() {
57563
57603
  };
57564
57604
  }
57565
57605
 
57606
+ /*!
57607
+ * Copyright (c) 2022, Salesforce, Inc.,
57608
+ * All rights reserved.
57609
+ * For full license text, see the LICENSE.txt file
57610
+ */
57611
+ /*!
57612
+ * Copyright (c) 2022, Salesforce, Inc.,
57613
+ * All rights reserved.
57614
+ * For full license text, see the LICENSE.txt file
57615
+ */
57566
57616
  class AuraCacheControlCommand extends CacheControlCommand {
57567
57617
  constructor(services) {
57568
57618
  super(services);
@@ -57672,7 +57722,8 @@ class AuraResourceCacheControlCommand extends AuraCacheControlCommand {
57672
57722
  this.services = services;
57673
57723
  }
57674
57724
  readFromCache(cache) {
57675
- const data = cache.get(this.buildKey())?.value;
57725
+ var _a;
57726
+ const data = (_a = cache.get(this.buildKey())) == null ? void 0 : _a.value;
57676
57727
  if (data === void 0) {
57677
57728
  return resolvedPromiseLike$2(err$1(new Error("Failed to find data in cache")));
57678
57729
  }
@@ -57701,6 +57752,16 @@ function buildServiceDescriptor$k() {
57701
57752
  };
57702
57753
  }
57703
57754
 
57755
+ /*!
57756
+ * Copyright (c) 2022, Salesforce, Inc.,
57757
+ * All rights reserved.
57758
+ * For full license text, see the LICENSE.txt file
57759
+ */
57760
+ /*!
57761
+ * Copyright (c) 2022, Salesforce, Inc.,
57762
+ * All rights reserved.
57763
+ * For full license text, see the LICENSE.txt file
57764
+ */
57704
57765
  class NetworkCommand extends BaseCommand {
57705
57766
  constructor(services) {
57706
57767
  super();
@@ -57750,7 +57811,7 @@ function hasFetchParams(command) {
57750
57811
  return command && typeof command === "object" && "fetchParams" in command;
57751
57812
  }
57752
57813
  function createAbortableDecorator(command, options) {
57753
- if (!options?.signal || !(options?.signal instanceof AbortSignal)) {
57814
+ if (!(options == null ? void 0 : options.signal) || !((options == null ? void 0 : options.signal) instanceof AbortSignal)) {
57754
57815
  return command;
57755
57816
  }
57756
57817
  const { signal } = options;
@@ -57897,6 +57958,16 @@ function buildServiceDescriptor$j() {
57897
57958
  };
57898
57959
  }
57899
57960
 
57961
+ /*!
57962
+ * Copyright (c) 2022, Salesforce, Inc.,
57963
+ * All rights reserved.
57964
+ * For full license text, see the LICENSE.txt file
57965
+ */
57966
+ /*!
57967
+ * Copyright (c) 2022, Salesforce, Inc.,
57968
+ * All rights reserved.
57969
+ * For full license text, see the LICENSE.txt file
57970
+ */
57900
57971
  class HttpCacheControlCommand extends CacheControlCommand {
57901
57972
  constructor(services) {
57902
57973
  super(services);
@@ -58004,6 +58075,16 @@ function buildServiceDescriptor$i() {
58004
58075
  };
58005
58076
  }
58006
58077
 
58078
+ /*!
58079
+ * Copyright (c) 2022, Salesforce, Inc.,
58080
+ * All rights reserved.
58081
+ * For full license text, see the LICENSE.txt file
58082
+ */
58083
+ /*!
58084
+ * Copyright (c) 2022, Salesforce, Inc.,
58085
+ * All rights reserved.
58086
+ * For full license text, see the LICENSE.txt file
58087
+ */
58007
58088
  const { stringify: stringify$1, parse: parse$1 } = JSON;
58008
58089
  function deepCopy$1(x) {
58009
58090
  const stringified = stringify$1(x);
@@ -58027,7 +58108,7 @@ let DefaultRecordableCache$1 = class DefaultRecordableCache {
58027
58108
  if (value === void 0) {
58028
58109
  this.missingKeysRead.add(key);
58029
58110
  }
58030
- if (options?.copy) {
58111
+ if (options == null ? void 0 : options.copy) {
58031
58112
  return deepCopy$1(value);
58032
58113
  }
58033
58114
  return value;
@@ -58071,7 +58152,7 @@ let DefaultFilteredCache$1 = class DefaultFilteredCache {
58071
58152
  get(key, options) {
58072
58153
  const result = this.baseCache.get(key);
58073
58154
  if (result && this.predicate(key, result)) {
58074
- if (options?.copy) {
58155
+ if (options == null ? void 0 : options.copy) {
58075
58156
  return deepCopy$1(result);
58076
58157
  }
58077
58158
  return result;
@@ -58167,7 +58248,7 @@ let DefaultCache$1 = class DefaultCache {
58167
58248
  this.data = {};
58168
58249
  }
58169
58250
  get(key, options) {
58170
- if (options?.copy) {
58251
+ if (options == null ? void 0 : options.copy) {
58171
58252
  return deepCopy$1(this.data[key]);
58172
58253
  }
58173
58254
  return this.data[key];
@@ -58247,6 +58328,11 @@ function buildServiceDescriptor$h() {
58247
58328
  };
58248
58329
  }
58249
58330
 
58331
+ /*!
58332
+ * Copyright (c) 2022, Salesforce, Inc.,
58333
+ * All rights reserved.
58334
+ * For full license text, see the LICENSE.txt file
58335
+ */
58250
58336
  class CacheControlStrategy {
58251
58337
  constructor(services, config, requestRunner) {
58252
58338
  this.services = services;
@@ -58307,11 +58393,11 @@ class MaxAgeCacheControlStrategy extends CacheControlStrategy {
58307
58393
  if (value.isOk()) {
58308
58394
  this.collectCacheHitInstrumentation(
58309
58395
  startTime,
58310
- options?.instrumentationAttributes
58396
+ options == null ? void 0 : options.instrumentationAttributes
58311
58397
  );
58312
58398
  return ok$1(void 0);
58313
58399
  }
58314
- this.collectCacheMissInstrumentation(startTime, options?.instrumentationAttributes);
58400
+ this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
58315
58401
  const tempCache = this.filteredCache;
58316
58402
  return new Promise(async (resolve, reject) => {
58317
58403
  try {
@@ -58381,11 +58467,11 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
58381
58467
  if (result.isOk()) {
58382
58468
  this.collectCacheHitInstrumentation(
58383
58469
  startTime,
58384
- options?.instrumentationAttributes
58470
+ options == null ? void 0 : options.instrumentationAttributes
58385
58471
  );
58386
58472
  return ok$1(void 0);
58387
58473
  }
58388
- this.collectCacheMissInstrumentation(startTime, options?.instrumentationAttributes);
58474
+ this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
58389
58475
  const error = new UserVisibleError(
58390
58476
  new FetchResponse(HttpStatusCode.GatewayTimeout, {
58391
58477
  error: "Cache miss for only-if-cached request"
@@ -58469,6 +58555,11 @@ function buildServiceDescriptor$g(cache, cacheInclusionPolicy, instrumentation)
58469
58555
  };
58470
58556
  }
58471
58557
 
58558
+ /*!
58559
+ * Copyright (c) 2022, Salesforce, Inc.,
58560
+ * All rights reserved.
58561
+ * For full license text, see the LICENSE.txt file
58562
+ */
58472
58563
  function buildInstrumentCommand(services) {
58473
58564
  const meter = services.instrumentation.metrics.getMeter("onestore");
58474
58565
  return function instrumentCommand(commandClass, commandName) {
@@ -58488,7 +58579,7 @@ function buildInstrumentCommand(services) {
58488
58579
  try {
58489
58580
  result = super.execute(...args);
58490
58581
  } catch (e) {
58491
- if (e?.name === "AbortError") {
58582
+ if ((e == null ? void 0 : e.name) === "AbortError") {
58492
58583
  abortCounter.add(1);
58493
58584
  } else {
58494
58585
  errorCounter.add(1);
@@ -58515,6 +58606,16 @@ function buildServiceDescriptor$f(instrumentation) {
58515
58606
  };
58516
58607
  }
58517
58608
 
58609
+ /*!
58610
+ * Copyright (c) 2022, Salesforce, Inc.,
58611
+ * All rights reserved.
58612
+ * For full license text, see the LICENSE.txt file
58613
+ */
58614
+ /*!
58615
+ * Copyright (c) 2022, Salesforce, Inc.,
58616
+ * All rights reserved.
58617
+ * For full license text, see the LICENSE.txt file
58618
+ */
58518
58619
  class O11yOTelTraceAPI {
58519
58620
  constructor(services) {
58520
58621
  this.services = services;
@@ -58530,9 +58631,9 @@ class O11yTracer {
58530
58631
  this.logger = logger;
58531
58632
  }
58532
58633
  startSpan(name, _options, context) {
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"));
58634
+ const traceId = context == null ? void 0 : context.getValue(Symbol.for("traceId"));
58635
+ const spanId = context == null ? void 0 : context.getValue(Symbol.for("spanId"));
58636
+ const traceFlags = context == null ? void 0 : context.getValue(Symbol.for("traceFlags"));
58536
58637
  let spanContext = void 0;
58537
58638
  if (traceId !== void 0 && spanId !== void 0 && traceFlags !== void 0) {
58538
58639
  spanContext = {
@@ -58775,7 +58876,12 @@ function buildServiceDescriptor$e(logger) {
58775
58876
  };
58776
58877
  }
58777
58878
 
58778
- const EventTypeWildcard = /* @__PURE__ */ Symbol("EventTypeWildcard");
58879
+ /*!
58880
+ * Copyright (c) 2022, Salesforce, Inc.,
58881
+ * All rights reserved.
58882
+ * For full license text, see the LICENSE.txt file
58883
+ */
58884
+ const EventTypeWildcard = Symbol("EventTypeWildcard");
58779
58885
  class DefaultPubSubService {
58780
58886
  constructor() {
58781
58887
  this.subscriptions = /* @__PURE__ */ new Map();
@@ -58838,6 +58944,11 @@ function buildServiceDescriptor$d() {
58838
58944
  };
58839
58945
  }
58840
58946
 
58947
+ /*!
58948
+ * Copyright (c) 2022, Salesforce, Inc.,
58949
+ * All rights reserved.
58950
+ * For full license text, see the LICENSE.txt file
58951
+ */
58841
58952
  class FeatureFlagsService {
58842
58953
  constructor() {
58843
58954
  this.flags = /* @__PURE__ */ new Map();
@@ -58899,7 +59010,7 @@ function buildServiceDescriptor$b(luvio) {
58899
59010
  },
58900
59011
  };
58901
59012
  }
58902
- // version: 1.438.0-0ec0a89235
59013
+ // version: 1.439.0-e3dc0cfb2a
58903
59014
 
58904
59015
  /**
58905
59016
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -58925,8 +59036,13 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
58925
59036
  },
58926
59037
  };
58927
59038
  }
58928
- // version: 1.438.0-0ec0a89235
59039
+ // version: 1.439.0-e3dc0cfb2a
58929
59040
 
59041
+ /*!
59042
+ * Copyright (c) 2022, Salesforce, Inc.,
59043
+ * All rights reserved.
59044
+ * For full license text, see the LICENSE.txt file
59045
+ */
58930
59046
  function findExecutableOperation(input) {
58931
59047
  const operations = input.query.definitions.filter(
58932
59048
  (def) => def.kind === Kind$2.OPERATION_DEFINITION
@@ -58938,7 +59054,10 @@ function findExecutableOperation(input) {
58938
59054
  return ok$1(operations[0]);
58939
59055
  }
58940
59056
  if (input.operationName) {
58941
- const specifiedOperation = operations.find((op) => op.name?.value === input.operationName);
59057
+ const specifiedOperation = operations.find((op) => {
59058
+ var _a;
59059
+ return ((_a = op.name) == null ? void 0 : _a.value) === input.operationName;
59060
+ });
58942
59061
  if (specifiedOperation) {
58943
59062
  return ok$1(specifiedOperation);
58944
59063
  }
@@ -58954,13 +59073,14 @@ function buildGraphQLInputExtension(input) {
58954
59073
  const operation = operationResult.value;
58955
59074
  const selections = operation.selectionSet.selections;
58956
59075
  const variableDefinitions = operation.variableDefinitions;
58957
- const variables = variableDefinitions?.reduce((prev, def) => {
59076
+ const variables = (variableDefinitions == null ? void 0 : variableDefinitions.reduce((prev, def) => {
59077
+ var _a;
58958
59078
  prev[def.variable.name.value] = {
58959
59079
  definition: def,
58960
- value: input.variables?.[def.variable.name.value]
59080
+ value: (_a = input.variables) == null ? void 0 : _a[def.variable.name.value]
58961
59081
  };
58962
59082
  return prev;
58963
- }, {}) || {};
59083
+ }, {})) || {};
58964
59084
  const fragments = input.query.definitions.filter(isFragmentDefinition).reduce((prev, fragment) => {
58965
59085
  prev[fragment.name.value] = fragment;
58966
59086
  return prev;
@@ -59013,6 +59133,11 @@ function isFragmentDefinition(node) {
59013
59133
  return node.kind === Kind$2.FRAGMENT_DEFINITION;
59014
59134
  }
59015
59135
 
59136
+ /*!
59137
+ * Copyright (c) 2022, Salesforce, Inc.,
59138
+ * All rights reserved.
59139
+ * For full license text, see the LICENSE.txt file
59140
+ */
59016
59141
  class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
59017
59142
  constructor(config, documentRootType, services) {
59018
59143
  super(services);
@@ -59193,6 +59318,11 @@ function buildServiceDescriptor$9() {
59193
59318
  };
59194
59319
  }
59195
59320
 
59321
+ /*!
59322
+ * Copyright (c) 2022, Salesforce, Inc.,
59323
+ * All rights reserved.
59324
+ * For full license text, see the LICENSE.txt file
59325
+ */
59196
59326
  class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheControlCommand {
59197
59327
  constructor(config, documentRootType, services) {
59198
59328
  super(services);
@@ -59306,6 +59436,11 @@ function buildServiceDescriptor$8() {
59306
59436
  };
59307
59437
  }
59308
59438
 
59439
+ /*!
59440
+ * Copyright (c) 2022, Salesforce, Inc.,
59441
+ * All rights reserved.
59442
+ * For full license text, see the LICENSE.txt file
59443
+ */
59309
59444
  class JsonSchemaViolationError extends Error {
59310
59445
  constructor(message, validationErrors) {
59311
59446
  super(message);
@@ -59735,6 +59870,11 @@ function findSchemaAtPath(document, ref) {
59735
59870
  return current;
59736
59871
  }
59737
59872
 
59873
+ /*!
59874
+ * Copyright (c) 2022, Salesforce, Inc.,
59875
+ * All rights reserved.
59876
+ * For full license text, see the LICENSE.txt file
59877
+ */
59738
59878
  function isUserVisibleError(error) {
59739
59879
  return error instanceof Error && "type" in error && error.type === "user-visible";
59740
59880
  }
@@ -59759,6 +59899,11 @@ function logError(error) {
59759
59899
  console.error("OneStore Command threw an error that we did not expect", error);
59760
59900
  }
59761
59901
 
59902
+ /*!
59903
+ * Copyright (c) 2022, Salesforce, Inc.,
59904
+ * All rights reserved.
59905
+ * For full license text, see the LICENSE.txt file
59906
+ */
59762
59907
  function buildBaseImperativeInvoker(getCommand, transformResult) {
59763
59908
  return async (...params) => {
59764
59909
  const command = getCommand({ params, assertIsValid });
@@ -59863,7 +60008,7 @@ class SubscribableImperativeBindingsService {
59863
60008
  const api = {
59864
60009
  data: result.value.data,
59865
60010
  subscribe: (cb) => {
59866
- return result.value.subscribe((result2) => {
60011
+ result.value.subscribe((result2) => {
59867
60012
  if (result2.isErr()) {
59868
60013
  return cb({ data: void 0, error: toError(result2.error) });
59869
60014
  }
@@ -59966,10 +60111,10 @@ class GraphQLImperativeBindingsService {
59966
60111
  acceptedOperations: ["query"]
59967
60112
  };
59968
60113
  const result = resolveAndValidateGraphQLConfig(params[0], options);
59969
- if (result?.isErr()) {
60114
+ if (result == null ? void 0 : result.isErr()) {
59970
60115
  return result.error;
59971
60116
  }
59972
- if (result?.isOk()) {
60117
+ if (result == null ? void 0 : result.isOk()) {
59973
60118
  params[0] = result.value;
59974
60119
  }
59975
60120
  }
@@ -59988,7 +60133,7 @@ class GraphQLImperativeBindingsService {
59988
60133
  deepFreeze(result.value);
59989
60134
  consumerEmittedData.data = result.value.data.data;
59990
60135
  consumerEmittedData.subscribe = (cb) => {
59991
- return result.value.subscribe((res) => {
60136
+ result.value.subscribe((res) => {
59992
60137
  const consumerEmittedData2 = {
59993
60138
  data: void 0,
59994
60139
  errors: void 0
@@ -60061,11 +60206,11 @@ class GraphQLLegacyImperativeBindingsService {
60061
60206
  acceptedOperations: ["query"]
60062
60207
  };
60063
60208
  const result = resolveAndValidateGraphQLConfig(config, options);
60064
- if (result?.isErr()) {
60209
+ if (result == null ? void 0 : result.isErr()) {
60065
60210
  callback(result.error);
60066
60211
  return;
60067
60212
  }
60068
- if (result?.isOk()) {
60213
+ if (result == null ? void 0 : result.isOk()) {
60069
60214
  config = result.value;
60070
60215
  }
60071
60216
  }
@@ -60096,12 +60241,12 @@ class GraphQLLegacyImperativeBindingsService {
60096
60241
  acceptedOperations: ["query"]
60097
60242
  };
60098
60243
  const result = resolveAndValidateGraphQLConfig(config, options);
60099
- if (result?.isErr()) {
60244
+ if (result == null ? void 0 : result.isErr()) {
60100
60245
  callback(result.error);
60101
60246
  return () => {
60102
60247
  };
60103
60248
  }
60104
- if (result?.isOk()) {
60249
+ if (result == null ? void 0 : result.isOk()) {
60105
60250
  config = result.value;
60106
60251
  }
60107
60252
  }
@@ -60163,13 +60308,13 @@ class GraphQLMutationBindingsService {
60163
60308
  acceptedOperations: ["mutation"]
60164
60309
  };
60165
60310
  const result2 = resolveAndValidateGraphQLConfig(params[0], options);
60166
- if (result2?.isErr()) {
60311
+ if (result2 == null ? void 0 : result2.isErr()) {
60167
60312
  return {
60168
60313
  data: void 0,
60169
60314
  errors: result2.error.errors
60170
60315
  };
60171
60316
  }
60172
- if (result2?.isOk()) {
60317
+ if (result2 == null ? void 0 : result2.isOk()) {
60173
60318
  params[0] = result2.value;
60174
60319
  }
60175
60320
  }
@@ -60195,6 +60340,11 @@ function buildServiceDescriptor$7() {
60195
60340
  };
60196
60341
  }
60197
60342
 
60343
+ /*!
60344
+ * Copyright (c) 2022, Salesforce, Inc.,
60345
+ * All rights reserved.
60346
+ * For full license text, see the LICENSE.txt file
60347
+ */
60198
60348
  class Sanitizer {
60199
60349
  constructor(obj) {
60200
60350
  this.obj = obj;
@@ -60254,7 +60404,7 @@ class CommandWireAdapterConstructor {
60254
60404
  this.callback = callback;
60255
60405
  this.connected = false;
60256
60406
  this.exposeRefresh = false;
60257
- if (!options?.skipEmptyEmit) {
60407
+ if (!(options == null ? void 0 : options.skipEmptyEmit)) {
60258
60408
  this.emit();
60259
60409
  }
60260
60410
  }
@@ -60551,6 +60701,11 @@ function buildServiceDescriptor$2() {
60551
60701
  };
60552
60702
  }
60553
60703
 
60704
+ /*!
60705
+ * Copyright (c) 2022, Salesforce, Inc.,
60706
+ * All rights reserved.
60707
+ * For full license text, see the LICENSE.txt file
60708
+ */
60554
60709
  function buildServiceDescriptor$1(interceptors = {
60555
60710
  request: [],
60556
60711
  retry: void 0,
@@ -60561,7 +60716,8 @@ function buildServiceDescriptor$1(interceptors = {
60561
60716
  type: "fetch",
60562
60717
  version: "1.0",
60563
60718
  service: function(...args) {
60564
- const context = interceptors.createContext?.();
60719
+ var _a;
60720
+ const context = (_a = interceptors.createContext) == null ? void 0 : _a.call(interceptors);
60565
60721
  const {
60566
60722
  request: requestInterceptors = [],
60567
60723
  retry: retryInterceptor = void 0,
@@ -60755,6 +60911,11 @@ function extractQueryParams(urlString) {
60755
60911
  return queryParams;
60756
60912
  }
60757
60913
 
60914
+ /*!
60915
+ * Copyright (c) 2022, Salesforce, Inc.,
60916
+ * All rights reserved.
60917
+ * For full license text, see the LICENSE.txt file
60918
+ */
60758
60919
  class CacheInclusionPolicyService {
60759
60920
  }
60760
60921
  function setDifference(setA, setB) {
@@ -60806,8 +60967,18 @@ function rejectedPromiseLike(reason) {
60806
60967
  };
60807
60968
  }
60808
60969
  function isPromiseLike(x) {
60809
- return typeof x?.then === "function";
60970
+ return typeof (x == null ? void 0 : x.then) === "function";
60810
60971
  }
60972
+ /*!
60973
+ * Copyright (c) 2022, Salesforce, Inc.,
60974
+ * All rights reserved.
60975
+ * For full license text, see the LICENSE.txt file
60976
+ */
60977
+ /*!
60978
+ * Copyright (c) 2022, Salesforce, Inc.,
60979
+ * All rights reserved.
60980
+ * For full license text, see the LICENSE.txt file
60981
+ */
60811
60982
  const { stringify, parse } = JSON;
60812
60983
  function deepCopy(x) {
60813
60984
  const stringified = stringify(x);
@@ -60831,7 +61002,7 @@ class DefaultRecordableCache {
60831
61002
  if (value === void 0) {
60832
61003
  this.missingKeysRead.add(key);
60833
61004
  }
60834
- if (options?.copy) {
61005
+ if (options == null ? void 0 : options.copy) {
60835
61006
  return deepCopy(value);
60836
61007
  }
60837
61008
  return value;
@@ -60875,7 +61046,7 @@ class DefaultFilteredCache {
60875
61046
  get(key, options) {
60876
61047
  const result = this.baseCache.get(key);
60877
61048
  if (result && this.predicate(key, result)) {
60878
- if (options?.copy) {
61049
+ if (options == null ? void 0 : options.copy) {
60879
61050
  return deepCopy(result);
60880
61051
  }
60881
61052
  return result;
@@ -60971,7 +61142,7 @@ class DefaultCache {
60971
61142
  this.data = {};
60972
61143
  }
60973
61144
  get(key, options) {
60974
- if (options?.copy) {
61145
+ if (options == null ? void 0 : options.copy) {
60975
61146
  return deepCopy(this.data[key]);
60976
61147
  }
60977
61148
  return this.data[key];
@@ -61596,4 +61767,4 @@ register({
61596
61767
  });
61597
61768
 
61598
61769
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
61599
- // version: 1.438.0-0ec0a89235
61770
+ // version: 1.439.0-e3dc0cfb2a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.438.0",
3
+ "version": "1.439.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.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",
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.439.0",
39
+ "@salesforce/lds-bindings": "^1.439.0",
40
+ "@salesforce/lds-instrumentation": "^1.439.0",
41
+ "@salesforce/lds-luvio-service": "^1.439.0",
42
+ "@salesforce/lds-luvio-uiapi-records-service": "^1.439.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.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",
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.439.0",
64
+ "@salesforce/lds-drafts": "^1.439.0",
65
+ "@salesforce/lds-durable-records": "^1.439.0",
66
+ "@salesforce/lds-network-adapter": "^1.439.0",
67
+ "@salesforce/lds-network-nimbus": "^1.439.0",
68
+ "@salesforce/lds-store-binary": "^1.439.0",
69
+ "@salesforce/lds-store-nimbus": "^1.439.0",
70
+ "@salesforce/lds-store-sql": "^1.439.0",
71
+ "@salesforce/lds-utils-adapters": "^1.439.0",
72
+ "@salesforce/nimbus-plugin-lds": "^1.439.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
@@ -56439,6 +56439,11 @@ function createSfsSideEffectHooks(durableRecordStore) {
56439
56439
  return [];
56440
56440
  }
56441
56441
 
56442
+ /*!
56443
+ * Copyright (c) 2022, Salesforce, Inc.,
56444
+ * All rights reserved.
56445
+ * For full license text, see the LICENSE.txt file
56446
+ */
56442
56447
  const { create, freeze, keys, entries } = Object;
56443
56448
  const { isArray: isArray$1 } = Array;
56444
56449
  const { stringify: stringify$2, parse: parse$2 } = JSON;
@@ -56557,7 +56562,7 @@ function rejectedPromiseLike$2(reason) {
56557
56562
  };
56558
56563
  }
56559
56564
  function isPromiseLike$2(x) {
56560
- return typeof x?.then === "function";
56565
+ return typeof (x == null ? void 0 : x.then) === "function";
56561
56566
  }
56562
56567
  function deepEquals$1(x, y) {
56563
56568
  if (x === void 0) {
@@ -56727,9 +56732,19 @@ function logError$1(error) {
56727
56732
  console.error("OneStore Command threw an error that we did not expect", error);
56728
56733
  }
56729
56734
 
56735
+ /*!
56736
+ * Copyright (c) 2022, Salesforce, Inc.,
56737
+ * All rights reserved.
56738
+ * For full license text, see the LICENSE.txt file
56739
+ */
56730
56740
  class BaseCommand {
56731
56741
  }
56732
56742
 
56743
+ /*!
56744
+ * Copyright (c) 2022, Salesforce, Inc.,
56745
+ * All rights reserved.
56746
+ * For full license text, see the LICENSE.txt file
56747
+ */
56733
56748
  let NetworkCommand$1 = class NetworkCommand extends BaseCommand {
56734
56749
  constructor(services) {
56735
56750
  super();
@@ -56780,6 +56795,11 @@ function buildServiceDescriptor$n() {
56780
56795
  };
56781
56796
  }
56782
56797
 
56798
+ /*!
56799
+ * Copyright (c) 2022, Salesforce, Inc.,
56800
+ * All rights reserved.
56801
+ * For full license text, see the LICENSE.txt file
56802
+ */
56783
56803
  class AuraNetworkCommand extends NetworkCommand$1 {
56784
56804
  constructor(services) {
56785
56805
  super(services);
@@ -56886,6 +56906,16 @@ function buildServiceDescriptor$m() {
56886
56906
  };
56887
56907
  }
56888
56908
 
56909
+ /*!
56910
+ * Copyright (c) 2022, Salesforce, Inc.,
56911
+ * All rights reserved.
56912
+ * For full license text, see the LICENSE.txt file
56913
+ */
56914
+ /*!
56915
+ * Copyright (c) 2022, Salesforce, Inc.,
56916
+ * All rights reserved.
56917
+ * For full license text, see the LICENSE.txt file
56918
+ */
56889
56919
  const { isArray } = Array;
56890
56920
  class Ok {
56891
56921
  constructor(value) {
@@ -56953,7 +56983,7 @@ function rejectedPromiseLike$1(reason) {
56953
56983
  };
56954
56984
  }
56955
56985
  function isPromiseLike$1(x) {
56956
- return typeof x?.then === "function";
56986
+ return typeof (x == null ? void 0 : x.then) === "function";
56957
56987
  }
56958
56988
  function deepEquals(x, y) {
56959
56989
  if (x === void 0) {
@@ -57244,7 +57274,7 @@ class CacheControlCommand extends BaseCommand {
57244
57274
  unsubscribe() {
57245
57275
  while (this.unsubscribers.length > 0) {
57246
57276
  const unsubscriber = this.unsubscribers.pop();
57247
- unsubscriber?.();
57277
+ unsubscriber == null ? void 0 : unsubscriber();
57248
57278
  }
57249
57279
  }
57250
57280
  /**
@@ -57428,6 +57458,16 @@ function mergeCacheControlConfigs(baseConfig, overrides) {
57428
57458
  };
57429
57459
  }
57430
57460
 
57461
+ /*!
57462
+ * Copyright (c) 2022, Salesforce, Inc.,
57463
+ * All rights reserved.
57464
+ * For full license text, see the LICENSE.txt file
57465
+ */
57466
+ /*!
57467
+ * Copyright (c) 2022, Salesforce, Inc.,
57468
+ * All rights reserved.
57469
+ * For full license text, see the LICENSE.txt file
57470
+ */
57431
57471
  let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheControlCommand {
57432
57472
  constructor(services) {
57433
57473
  super(services);
@@ -57563,6 +57603,16 @@ function buildServiceDescriptor$l() {
57563
57603
  };
57564
57604
  }
57565
57605
 
57606
+ /*!
57607
+ * Copyright (c) 2022, Salesforce, Inc.,
57608
+ * All rights reserved.
57609
+ * For full license text, see the LICENSE.txt file
57610
+ */
57611
+ /*!
57612
+ * Copyright (c) 2022, Salesforce, Inc.,
57613
+ * All rights reserved.
57614
+ * For full license text, see the LICENSE.txt file
57615
+ */
57566
57616
  class AuraCacheControlCommand extends CacheControlCommand {
57567
57617
  constructor(services) {
57568
57618
  super(services);
@@ -57672,7 +57722,8 @@ class AuraResourceCacheControlCommand extends AuraCacheControlCommand {
57672
57722
  this.services = services;
57673
57723
  }
57674
57724
  readFromCache(cache) {
57675
- const data = cache.get(this.buildKey())?.value;
57725
+ var _a;
57726
+ const data = (_a = cache.get(this.buildKey())) == null ? void 0 : _a.value;
57676
57727
  if (data === void 0) {
57677
57728
  return resolvedPromiseLike$2(err$1(new Error("Failed to find data in cache")));
57678
57729
  }
@@ -57701,6 +57752,16 @@ function buildServiceDescriptor$k() {
57701
57752
  };
57702
57753
  }
57703
57754
 
57755
+ /*!
57756
+ * Copyright (c) 2022, Salesforce, Inc.,
57757
+ * All rights reserved.
57758
+ * For full license text, see the LICENSE.txt file
57759
+ */
57760
+ /*!
57761
+ * Copyright (c) 2022, Salesforce, Inc.,
57762
+ * All rights reserved.
57763
+ * For full license text, see the LICENSE.txt file
57764
+ */
57704
57765
  class NetworkCommand extends BaseCommand {
57705
57766
  constructor(services) {
57706
57767
  super();
@@ -57750,7 +57811,7 @@ function hasFetchParams(command) {
57750
57811
  return command && typeof command === "object" && "fetchParams" in command;
57751
57812
  }
57752
57813
  function createAbortableDecorator(command, options) {
57753
- if (!options?.signal || !(options?.signal instanceof AbortSignal)) {
57814
+ if (!(options == null ? void 0 : options.signal) || !((options == null ? void 0 : options.signal) instanceof AbortSignal)) {
57754
57815
  return command;
57755
57816
  }
57756
57817
  const { signal } = options;
@@ -57897,6 +57958,16 @@ function buildServiceDescriptor$j() {
57897
57958
  };
57898
57959
  }
57899
57960
 
57961
+ /*!
57962
+ * Copyright (c) 2022, Salesforce, Inc.,
57963
+ * All rights reserved.
57964
+ * For full license text, see the LICENSE.txt file
57965
+ */
57966
+ /*!
57967
+ * Copyright (c) 2022, Salesforce, Inc.,
57968
+ * All rights reserved.
57969
+ * For full license text, see the LICENSE.txt file
57970
+ */
57900
57971
  class HttpCacheControlCommand extends CacheControlCommand {
57901
57972
  constructor(services) {
57902
57973
  super(services);
@@ -58004,6 +58075,16 @@ function buildServiceDescriptor$i() {
58004
58075
  };
58005
58076
  }
58006
58077
 
58078
+ /*!
58079
+ * Copyright (c) 2022, Salesforce, Inc.,
58080
+ * All rights reserved.
58081
+ * For full license text, see the LICENSE.txt file
58082
+ */
58083
+ /*!
58084
+ * Copyright (c) 2022, Salesforce, Inc.,
58085
+ * All rights reserved.
58086
+ * For full license text, see the LICENSE.txt file
58087
+ */
58007
58088
  const { stringify: stringify$1, parse: parse$1 } = JSON;
58008
58089
  function deepCopy$1(x) {
58009
58090
  const stringified = stringify$1(x);
@@ -58027,7 +58108,7 @@ let DefaultRecordableCache$1 = class DefaultRecordableCache {
58027
58108
  if (value === void 0) {
58028
58109
  this.missingKeysRead.add(key);
58029
58110
  }
58030
- if (options?.copy) {
58111
+ if (options == null ? void 0 : options.copy) {
58031
58112
  return deepCopy$1(value);
58032
58113
  }
58033
58114
  return value;
@@ -58071,7 +58152,7 @@ let DefaultFilteredCache$1 = class DefaultFilteredCache {
58071
58152
  get(key, options) {
58072
58153
  const result = this.baseCache.get(key);
58073
58154
  if (result && this.predicate(key, result)) {
58074
- if (options?.copy) {
58155
+ if (options == null ? void 0 : options.copy) {
58075
58156
  return deepCopy$1(result);
58076
58157
  }
58077
58158
  return result;
@@ -58167,7 +58248,7 @@ let DefaultCache$1 = class DefaultCache {
58167
58248
  this.data = {};
58168
58249
  }
58169
58250
  get(key, options) {
58170
- if (options?.copy) {
58251
+ if (options == null ? void 0 : options.copy) {
58171
58252
  return deepCopy$1(this.data[key]);
58172
58253
  }
58173
58254
  return this.data[key];
@@ -58247,6 +58328,11 @@ function buildServiceDescriptor$h() {
58247
58328
  };
58248
58329
  }
58249
58330
 
58331
+ /*!
58332
+ * Copyright (c) 2022, Salesforce, Inc.,
58333
+ * All rights reserved.
58334
+ * For full license text, see the LICENSE.txt file
58335
+ */
58250
58336
  class CacheControlStrategy {
58251
58337
  constructor(services, config, requestRunner) {
58252
58338
  this.services = services;
@@ -58307,11 +58393,11 @@ class MaxAgeCacheControlStrategy extends CacheControlStrategy {
58307
58393
  if (value.isOk()) {
58308
58394
  this.collectCacheHitInstrumentation(
58309
58395
  startTime,
58310
- options?.instrumentationAttributes
58396
+ options == null ? void 0 : options.instrumentationAttributes
58311
58397
  );
58312
58398
  return ok$1(void 0);
58313
58399
  }
58314
- this.collectCacheMissInstrumentation(startTime, options?.instrumentationAttributes);
58400
+ this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
58315
58401
  const tempCache = this.filteredCache;
58316
58402
  return new Promise(async (resolve, reject) => {
58317
58403
  try {
@@ -58381,11 +58467,11 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
58381
58467
  if (result.isOk()) {
58382
58468
  this.collectCacheHitInstrumentation(
58383
58469
  startTime,
58384
- options?.instrumentationAttributes
58470
+ options == null ? void 0 : options.instrumentationAttributes
58385
58471
  );
58386
58472
  return ok$1(void 0);
58387
58473
  }
58388
- this.collectCacheMissInstrumentation(startTime, options?.instrumentationAttributes);
58474
+ this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
58389
58475
  const error = new UserVisibleError(
58390
58476
  new FetchResponse(HttpStatusCode.GatewayTimeout, {
58391
58477
  error: "Cache miss for only-if-cached request"
@@ -58469,6 +58555,11 @@ function buildServiceDescriptor$g(cache, cacheInclusionPolicy, instrumentation)
58469
58555
  };
58470
58556
  }
58471
58557
 
58558
+ /*!
58559
+ * Copyright (c) 2022, Salesforce, Inc.,
58560
+ * All rights reserved.
58561
+ * For full license text, see the LICENSE.txt file
58562
+ */
58472
58563
  function buildInstrumentCommand(services) {
58473
58564
  const meter = services.instrumentation.metrics.getMeter("onestore");
58474
58565
  return function instrumentCommand(commandClass, commandName) {
@@ -58488,7 +58579,7 @@ function buildInstrumentCommand(services) {
58488
58579
  try {
58489
58580
  result = super.execute(...args);
58490
58581
  } catch (e) {
58491
- if (e?.name === "AbortError") {
58582
+ if ((e == null ? void 0 : e.name) === "AbortError") {
58492
58583
  abortCounter.add(1);
58493
58584
  } else {
58494
58585
  errorCounter.add(1);
@@ -58515,6 +58606,16 @@ function buildServiceDescriptor$f(instrumentation) {
58515
58606
  };
58516
58607
  }
58517
58608
 
58609
+ /*!
58610
+ * Copyright (c) 2022, Salesforce, Inc.,
58611
+ * All rights reserved.
58612
+ * For full license text, see the LICENSE.txt file
58613
+ */
58614
+ /*!
58615
+ * Copyright (c) 2022, Salesforce, Inc.,
58616
+ * All rights reserved.
58617
+ * For full license text, see the LICENSE.txt file
58618
+ */
58518
58619
  class O11yOTelTraceAPI {
58519
58620
  constructor(services) {
58520
58621
  this.services = services;
@@ -58530,9 +58631,9 @@ class O11yTracer {
58530
58631
  this.logger = logger;
58531
58632
  }
58532
58633
  startSpan(name, _options, context) {
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"));
58634
+ const traceId = context == null ? void 0 : context.getValue(Symbol.for("traceId"));
58635
+ const spanId = context == null ? void 0 : context.getValue(Symbol.for("spanId"));
58636
+ const traceFlags = context == null ? void 0 : context.getValue(Symbol.for("traceFlags"));
58536
58637
  let spanContext = void 0;
58537
58638
  if (traceId !== void 0 && spanId !== void 0 && traceFlags !== void 0) {
58538
58639
  spanContext = {
@@ -58775,7 +58876,12 @@ function buildServiceDescriptor$e(logger) {
58775
58876
  };
58776
58877
  }
58777
58878
 
58778
- const EventTypeWildcard = /* @__PURE__ */ Symbol("EventTypeWildcard");
58879
+ /*!
58880
+ * Copyright (c) 2022, Salesforce, Inc.,
58881
+ * All rights reserved.
58882
+ * For full license text, see the LICENSE.txt file
58883
+ */
58884
+ const EventTypeWildcard = Symbol("EventTypeWildcard");
58779
58885
  class DefaultPubSubService {
58780
58886
  constructor() {
58781
58887
  this.subscriptions = /* @__PURE__ */ new Map();
@@ -58838,6 +58944,11 @@ function buildServiceDescriptor$d() {
58838
58944
  };
58839
58945
  }
58840
58946
 
58947
+ /*!
58948
+ * Copyright (c) 2022, Salesforce, Inc.,
58949
+ * All rights reserved.
58950
+ * For full license text, see the LICENSE.txt file
58951
+ */
58841
58952
  class FeatureFlagsService {
58842
58953
  constructor() {
58843
58954
  this.flags = /* @__PURE__ */ new Map();
@@ -58899,7 +59010,7 @@ function buildServiceDescriptor$b(luvio) {
58899
59010
  },
58900
59011
  };
58901
59012
  }
58902
- // version: 1.438.0-0ec0a89235
59013
+ // version: 1.439.0-e3dc0cfb2a
58903
59014
 
58904
59015
  /**
58905
59016
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -58925,8 +59036,13 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
58925
59036
  },
58926
59037
  };
58927
59038
  }
58928
- // version: 1.438.0-0ec0a89235
59039
+ // version: 1.439.0-e3dc0cfb2a
58929
59040
 
59041
+ /*!
59042
+ * Copyright (c) 2022, Salesforce, Inc.,
59043
+ * All rights reserved.
59044
+ * For full license text, see the LICENSE.txt file
59045
+ */
58930
59046
  function findExecutableOperation(input) {
58931
59047
  const operations = input.query.definitions.filter(
58932
59048
  (def) => def.kind === Kind$2.OPERATION_DEFINITION
@@ -58938,7 +59054,10 @@ function findExecutableOperation(input) {
58938
59054
  return ok$1(operations[0]);
58939
59055
  }
58940
59056
  if (input.operationName) {
58941
- const specifiedOperation = operations.find((op) => op.name?.value === input.operationName);
59057
+ const specifiedOperation = operations.find((op) => {
59058
+ var _a;
59059
+ return ((_a = op.name) == null ? void 0 : _a.value) === input.operationName;
59060
+ });
58942
59061
  if (specifiedOperation) {
58943
59062
  return ok$1(specifiedOperation);
58944
59063
  }
@@ -58954,13 +59073,14 @@ function buildGraphQLInputExtension(input) {
58954
59073
  const operation = operationResult.value;
58955
59074
  const selections = operation.selectionSet.selections;
58956
59075
  const variableDefinitions = operation.variableDefinitions;
58957
- const variables = variableDefinitions?.reduce((prev, def) => {
59076
+ const variables = (variableDefinitions == null ? void 0 : variableDefinitions.reduce((prev, def) => {
59077
+ var _a;
58958
59078
  prev[def.variable.name.value] = {
58959
59079
  definition: def,
58960
- value: input.variables?.[def.variable.name.value]
59080
+ value: (_a = input.variables) == null ? void 0 : _a[def.variable.name.value]
58961
59081
  };
58962
59082
  return prev;
58963
- }, {}) || {};
59083
+ }, {})) || {};
58964
59084
  const fragments = input.query.definitions.filter(isFragmentDefinition).reduce((prev, fragment) => {
58965
59085
  prev[fragment.name.value] = fragment;
58966
59086
  return prev;
@@ -59013,6 +59133,11 @@ function isFragmentDefinition(node) {
59013
59133
  return node.kind === Kind$2.FRAGMENT_DEFINITION;
59014
59134
  }
59015
59135
 
59136
+ /*!
59137
+ * Copyright (c) 2022, Salesforce, Inc.,
59138
+ * All rights reserved.
59139
+ * For full license text, see the LICENSE.txt file
59140
+ */
59016
59141
  class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
59017
59142
  constructor(config, documentRootType, services) {
59018
59143
  super(services);
@@ -59193,6 +59318,11 @@ function buildServiceDescriptor$9() {
59193
59318
  };
59194
59319
  }
59195
59320
 
59321
+ /*!
59322
+ * Copyright (c) 2022, Salesforce, Inc.,
59323
+ * All rights reserved.
59324
+ * For full license text, see the LICENSE.txt file
59325
+ */
59196
59326
  class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheControlCommand {
59197
59327
  constructor(config, documentRootType, services) {
59198
59328
  super(services);
@@ -59306,6 +59436,11 @@ function buildServiceDescriptor$8() {
59306
59436
  };
59307
59437
  }
59308
59438
 
59439
+ /*!
59440
+ * Copyright (c) 2022, Salesforce, Inc.,
59441
+ * All rights reserved.
59442
+ * For full license text, see the LICENSE.txt file
59443
+ */
59309
59444
  class JsonSchemaViolationError extends Error {
59310
59445
  constructor(message, validationErrors) {
59311
59446
  super(message);
@@ -59735,6 +59870,11 @@ function findSchemaAtPath(document, ref) {
59735
59870
  return current;
59736
59871
  }
59737
59872
 
59873
+ /*!
59874
+ * Copyright (c) 2022, Salesforce, Inc.,
59875
+ * All rights reserved.
59876
+ * For full license text, see the LICENSE.txt file
59877
+ */
59738
59878
  function isUserVisibleError(error) {
59739
59879
  return error instanceof Error && "type" in error && error.type === "user-visible";
59740
59880
  }
@@ -59759,6 +59899,11 @@ function logError(error) {
59759
59899
  console.error("OneStore Command threw an error that we did not expect", error);
59760
59900
  }
59761
59901
 
59902
+ /*!
59903
+ * Copyright (c) 2022, Salesforce, Inc.,
59904
+ * All rights reserved.
59905
+ * For full license text, see the LICENSE.txt file
59906
+ */
59762
59907
  function buildBaseImperativeInvoker(getCommand, transformResult) {
59763
59908
  return async (...params) => {
59764
59909
  const command = getCommand({ params, assertIsValid });
@@ -59863,7 +60008,7 @@ class SubscribableImperativeBindingsService {
59863
60008
  const api = {
59864
60009
  data: result.value.data,
59865
60010
  subscribe: (cb) => {
59866
- return result.value.subscribe((result2) => {
60011
+ result.value.subscribe((result2) => {
59867
60012
  if (result2.isErr()) {
59868
60013
  return cb({ data: void 0, error: toError(result2.error) });
59869
60014
  }
@@ -59966,10 +60111,10 @@ class GraphQLImperativeBindingsService {
59966
60111
  acceptedOperations: ["query"]
59967
60112
  };
59968
60113
  const result = resolveAndValidateGraphQLConfig(params[0], options);
59969
- if (result?.isErr()) {
60114
+ if (result == null ? void 0 : result.isErr()) {
59970
60115
  return result.error;
59971
60116
  }
59972
- if (result?.isOk()) {
60117
+ if (result == null ? void 0 : result.isOk()) {
59973
60118
  params[0] = result.value;
59974
60119
  }
59975
60120
  }
@@ -59988,7 +60133,7 @@ class GraphQLImperativeBindingsService {
59988
60133
  deepFreeze(result.value);
59989
60134
  consumerEmittedData.data = result.value.data.data;
59990
60135
  consumerEmittedData.subscribe = (cb) => {
59991
- return result.value.subscribe((res) => {
60136
+ result.value.subscribe((res) => {
59992
60137
  const consumerEmittedData2 = {
59993
60138
  data: void 0,
59994
60139
  errors: void 0
@@ -60061,11 +60206,11 @@ class GraphQLLegacyImperativeBindingsService {
60061
60206
  acceptedOperations: ["query"]
60062
60207
  };
60063
60208
  const result = resolveAndValidateGraphQLConfig(config, options);
60064
- if (result?.isErr()) {
60209
+ if (result == null ? void 0 : result.isErr()) {
60065
60210
  callback(result.error);
60066
60211
  return;
60067
60212
  }
60068
- if (result?.isOk()) {
60213
+ if (result == null ? void 0 : result.isOk()) {
60069
60214
  config = result.value;
60070
60215
  }
60071
60216
  }
@@ -60096,12 +60241,12 @@ class GraphQLLegacyImperativeBindingsService {
60096
60241
  acceptedOperations: ["query"]
60097
60242
  };
60098
60243
  const result = resolveAndValidateGraphQLConfig(config, options);
60099
- if (result?.isErr()) {
60244
+ if (result == null ? void 0 : result.isErr()) {
60100
60245
  callback(result.error);
60101
60246
  return () => {
60102
60247
  };
60103
60248
  }
60104
- if (result?.isOk()) {
60249
+ if (result == null ? void 0 : result.isOk()) {
60105
60250
  config = result.value;
60106
60251
  }
60107
60252
  }
@@ -60163,13 +60308,13 @@ class GraphQLMutationBindingsService {
60163
60308
  acceptedOperations: ["mutation"]
60164
60309
  };
60165
60310
  const result2 = resolveAndValidateGraphQLConfig(params[0], options);
60166
- if (result2?.isErr()) {
60311
+ if (result2 == null ? void 0 : result2.isErr()) {
60167
60312
  return {
60168
60313
  data: void 0,
60169
60314
  errors: result2.error.errors
60170
60315
  };
60171
60316
  }
60172
- if (result2?.isOk()) {
60317
+ if (result2 == null ? void 0 : result2.isOk()) {
60173
60318
  params[0] = result2.value;
60174
60319
  }
60175
60320
  }
@@ -60195,6 +60340,11 @@ function buildServiceDescriptor$7() {
60195
60340
  };
60196
60341
  }
60197
60342
 
60343
+ /*!
60344
+ * Copyright (c) 2022, Salesforce, Inc.,
60345
+ * All rights reserved.
60346
+ * For full license text, see the LICENSE.txt file
60347
+ */
60198
60348
  class Sanitizer {
60199
60349
  constructor(obj) {
60200
60350
  this.obj = obj;
@@ -60254,7 +60404,7 @@ class CommandWireAdapterConstructor {
60254
60404
  this.callback = callback;
60255
60405
  this.connected = false;
60256
60406
  this.exposeRefresh = false;
60257
- if (!options?.skipEmptyEmit) {
60407
+ if (!(options == null ? void 0 : options.skipEmptyEmit)) {
60258
60408
  this.emit();
60259
60409
  }
60260
60410
  }
@@ -60551,6 +60701,11 @@ function buildServiceDescriptor$2() {
60551
60701
  };
60552
60702
  }
60553
60703
 
60704
+ /*!
60705
+ * Copyright (c) 2022, Salesforce, Inc.,
60706
+ * All rights reserved.
60707
+ * For full license text, see the LICENSE.txt file
60708
+ */
60554
60709
  function buildServiceDescriptor$1(interceptors = {
60555
60710
  request: [],
60556
60711
  retry: void 0,
@@ -60561,7 +60716,8 @@ function buildServiceDescriptor$1(interceptors = {
60561
60716
  type: "fetch",
60562
60717
  version: "1.0",
60563
60718
  service: function(...args) {
60564
- const context = interceptors.createContext?.();
60719
+ var _a;
60720
+ const context = (_a = interceptors.createContext) == null ? void 0 : _a.call(interceptors);
60565
60721
  const {
60566
60722
  request: requestInterceptors = [],
60567
60723
  retry: retryInterceptor = void 0,
@@ -60755,6 +60911,11 @@ function extractQueryParams(urlString) {
60755
60911
  return queryParams;
60756
60912
  }
60757
60913
 
60914
+ /*!
60915
+ * Copyright (c) 2022, Salesforce, Inc.,
60916
+ * All rights reserved.
60917
+ * For full license text, see the LICENSE.txt file
60918
+ */
60758
60919
  class CacheInclusionPolicyService {
60759
60920
  }
60760
60921
  function setDifference(setA, setB) {
@@ -60806,8 +60967,18 @@ function rejectedPromiseLike(reason) {
60806
60967
  };
60807
60968
  }
60808
60969
  function isPromiseLike(x) {
60809
- return typeof x?.then === "function";
60970
+ return typeof (x == null ? void 0 : x.then) === "function";
60810
60971
  }
60972
+ /*!
60973
+ * Copyright (c) 2022, Salesforce, Inc.,
60974
+ * All rights reserved.
60975
+ * For full license text, see the LICENSE.txt file
60976
+ */
60977
+ /*!
60978
+ * Copyright (c) 2022, Salesforce, Inc.,
60979
+ * All rights reserved.
60980
+ * For full license text, see the LICENSE.txt file
60981
+ */
60811
60982
  const { stringify, parse } = JSON;
60812
60983
  function deepCopy(x) {
60813
60984
  const stringified = stringify(x);
@@ -60831,7 +61002,7 @@ class DefaultRecordableCache {
60831
61002
  if (value === void 0) {
60832
61003
  this.missingKeysRead.add(key);
60833
61004
  }
60834
- if (options?.copy) {
61005
+ if (options == null ? void 0 : options.copy) {
60835
61006
  return deepCopy(value);
60836
61007
  }
60837
61008
  return value;
@@ -60875,7 +61046,7 @@ class DefaultFilteredCache {
60875
61046
  get(key, options) {
60876
61047
  const result = this.baseCache.get(key);
60877
61048
  if (result && this.predicate(key, result)) {
60878
- if (options?.copy) {
61049
+ if (options == null ? void 0 : options.copy) {
60879
61050
  return deepCopy(result);
60880
61051
  }
60881
61052
  return result;
@@ -60971,7 +61142,7 @@ class DefaultCache {
60971
61142
  this.data = {};
60972
61143
  }
60973
61144
  get(key, options) {
60974
- if (options?.copy) {
61145
+ if (options == null ? void 0 : options.copy) {
60975
61146
  return deepCopy(this.data[key]);
60976
61147
  }
60977
61148
  return this.data[key];
@@ -61596,4 +61767,4 @@ register({
61596
61767
  });
61597
61768
 
61598
61769
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
61599
- // version: 1.438.0-0ec0a89235
61770
+ // version: 1.439.0-e3dc0cfb2a