@salesforce/lds-runtime-mobile 1.439.0 → 1.441.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.
- package/dist/main.js +61 -220
- package/package.json +34 -34
- package/sfdc/main.js +61 -220
package/sfdc/main.js
CHANGED
|
@@ -56439,11 +56439,6 @@ 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
|
-
*/
|
|
56447
56442
|
const { create, freeze, keys, entries } = Object;
|
|
56448
56443
|
const { isArray: isArray$1 } = Array;
|
|
56449
56444
|
const { stringify: stringify$2, parse: parse$2 } = JSON;
|
|
@@ -56562,7 +56557,7 @@ function rejectedPromiseLike$2(reason) {
|
|
|
56562
56557
|
};
|
|
56563
56558
|
}
|
|
56564
56559
|
function isPromiseLike$2(x) {
|
|
56565
|
-
return typeof
|
|
56560
|
+
return typeof x?.then === "function";
|
|
56566
56561
|
}
|
|
56567
56562
|
function deepEquals$1(x, y) {
|
|
56568
56563
|
if (x === void 0) {
|
|
@@ -56732,19 +56727,9 @@ function logError$1(error) {
|
|
|
56732
56727
|
console.error("OneStore Command threw an error that we did not expect", error);
|
|
56733
56728
|
}
|
|
56734
56729
|
|
|
56735
|
-
/*!
|
|
56736
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
56737
|
-
* All rights reserved.
|
|
56738
|
-
* For full license text, see the LICENSE.txt file
|
|
56739
|
-
*/
|
|
56740
56730
|
class BaseCommand {
|
|
56741
56731
|
}
|
|
56742
56732
|
|
|
56743
|
-
/*!
|
|
56744
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
56745
|
-
* All rights reserved.
|
|
56746
|
-
* For full license text, see the LICENSE.txt file
|
|
56747
|
-
*/
|
|
56748
56733
|
let NetworkCommand$1 = class NetworkCommand extends BaseCommand {
|
|
56749
56734
|
constructor(services) {
|
|
56750
56735
|
super();
|
|
@@ -56795,11 +56780,6 @@ function buildServiceDescriptor$n() {
|
|
|
56795
56780
|
};
|
|
56796
56781
|
}
|
|
56797
56782
|
|
|
56798
|
-
/*!
|
|
56799
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
56800
|
-
* All rights reserved.
|
|
56801
|
-
* For full license text, see the LICENSE.txt file
|
|
56802
|
-
*/
|
|
56803
56783
|
class AuraNetworkCommand extends NetworkCommand$1 {
|
|
56804
56784
|
constructor(services) {
|
|
56805
56785
|
super(services);
|
|
@@ -56906,16 +56886,6 @@ function buildServiceDescriptor$m() {
|
|
|
56906
56886
|
};
|
|
56907
56887
|
}
|
|
56908
56888
|
|
|
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
|
-
*/
|
|
56919
56889
|
const { isArray } = Array;
|
|
56920
56890
|
class Ok {
|
|
56921
56891
|
constructor(value) {
|
|
@@ -56983,7 +56953,7 @@ function rejectedPromiseLike$1(reason) {
|
|
|
56983
56953
|
};
|
|
56984
56954
|
}
|
|
56985
56955
|
function isPromiseLike$1(x) {
|
|
56986
|
-
return typeof
|
|
56956
|
+
return typeof x?.then === "function";
|
|
56987
56957
|
}
|
|
56988
56958
|
function deepEquals(x, y) {
|
|
56989
56959
|
if (x === void 0) {
|
|
@@ -57274,7 +57244,7 @@ class CacheControlCommand extends BaseCommand {
|
|
|
57274
57244
|
unsubscribe() {
|
|
57275
57245
|
while (this.unsubscribers.length > 0) {
|
|
57276
57246
|
const unsubscriber = this.unsubscribers.pop();
|
|
57277
|
-
unsubscriber
|
|
57247
|
+
unsubscriber?.();
|
|
57278
57248
|
}
|
|
57279
57249
|
}
|
|
57280
57250
|
/**
|
|
@@ -57458,16 +57428,6 @@ function mergeCacheControlConfigs(baseConfig, overrides) {
|
|
|
57458
57428
|
};
|
|
57459
57429
|
}
|
|
57460
57430
|
|
|
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
|
-
*/
|
|
57471
57431
|
let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheControlCommand {
|
|
57472
57432
|
constructor(services) {
|
|
57473
57433
|
super(services);
|
|
@@ -57603,16 +57563,6 @@ function buildServiceDescriptor$l() {
|
|
|
57603
57563
|
};
|
|
57604
57564
|
}
|
|
57605
57565
|
|
|
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
|
-
*/
|
|
57616
57566
|
class AuraCacheControlCommand extends CacheControlCommand {
|
|
57617
57567
|
constructor(services) {
|
|
57618
57568
|
super(services);
|
|
@@ -57722,8 +57672,7 @@ class AuraResourceCacheControlCommand extends AuraCacheControlCommand {
|
|
|
57722
57672
|
this.services = services;
|
|
57723
57673
|
}
|
|
57724
57674
|
readFromCache(cache) {
|
|
57725
|
-
|
|
57726
|
-
const data = (_a = cache.get(this.buildKey())) == null ? void 0 : _a.value;
|
|
57675
|
+
const data = cache.get(this.buildKey())?.value;
|
|
57727
57676
|
if (data === void 0) {
|
|
57728
57677
|
return resolvedPromiseLike$2(err$1(new Error("Failed to find data in cache")));
|
|
57729
57678
|
}
|
|
@@ -57752,16 +57701,6 @@ function buildServiceDescriptor$k() {
|
|
|
57752
57701
|
};
|
|
57753
57702
|
}
|
|
57754
57703
|
|
|
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
|
-
*/
|
|
57765
57704
|
class NetworkCommand extends BaseCommand {
|
|
57766
57705
|
constructor(services) {
|
|
57767
57706
|
super();
|
|
@@ -57811,7 +57750,7 @@ function hasFetchParams(command) {
|
|
|
57811
57750
|
return command && typeof command === "object" && "fetchParams" in command;
|
|
57812
57751
|
}
|
|
57813
57752
|
function createAbortableDecorator(command, options) {
|
|
57814
|
-
if (!
|
|
57753
|
+
if (!options?.signal || !(options?.signal instanceof AbortSignal)) {
|
|
57815
57754
|
return command;
|
|
57816
57755
|
}
|
|
57817
57756
|
const { signal } = options;
|
|
@@ -57885,9 +57824,12 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
57885
57824
|
this.services = services;
|
|
57886
57825
|
this.additionalNullResponses = [];
|
|
57887
57826
|
}
|
|
57888
|
-
fetch() {
|
|
57827
|
+
fetch(contextSeed) {
|
|
57889
57828
|
try {
|
|
57890
|
-
|
|
57829
|
+
const [input, init] = this.fetchParams;
|
|
57830
|
+
const initWithSeed = contextSeed === void 0 ? init : { ...init, __contextSeed: contextSeed };
|
|
57831
|
+
const fetchCall = initWithSeed === void 0 ? this.services.fetch(input) : this.services.fetch(input, initWithSeed);
|
|
57832
|
+
return this.convertFetchResponseToData(fetchCall);
|
|
57891
57833
|
} catch (reason) {
|
|
57892
57834
|
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57893
57835
|
}
|
|
@@ -57958,16 +57900,6 @@ function buildServiceDescriptor$j() {
|
|
|
57958
57900
|
};
|
|
57959
57901
|
}
|
|
57960
57902
|
|
|
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
|
-
*/
|
|
57971
57903
|
class HttpCacheControlCommand extends CacheControlCommand {
|
|
57972
57904
|
constructor(services) {
|
|
57973
57905
|
super(services);
|
|
@@ -58075,16 +58007,6 @@ function buildServiceDescriptor$i() {
|
|
|
58075
58007
|
};
|
|
58076
58008
|
}
|
|
58077
58009
|
|
|
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
|
-
*/
|
|
58088
58010
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
58089
58011
|
function deepCopy$1(x) {
|
|
58090
58012
|
const stringified = stringify$1(x);
|
|
@@ -58108,7 +58030,7 @@ let DefaultRecordableCache$1 = class DefaultRecordableCache {
|
|
|
58108
58030
|
if (value === void 0) {
|
|
58109
58031
|
this.missingKeysRead.add(key);
|
|
58110
58032
|
}
|
|
58111
|
-
if (options
|
|
58033
|
+
if (options?.copy) {
|
|
58112
58034
|
return deepCopy$1(value);
|
|
58113
58035
|
}
|
|
58114
58036
|
return value;
|
|
@@ -58152,7 +58074,7 @@ let DefaultFilteredCache$1 = class DefaultFilteredCache {
|
|
|
58152
58074
|
get(key, options) {
|
|
58153
58075
|
const result = this.baseCache.get(key);
|
|
58154
58076
|
if (result && this.predicate(key, result)) {
|
|
58155
|
-
if (options
|
|
58077
|
+
if (options?.copy) {
|
|
58156
58078
|
return deepCopy$1(result);
|
|
58157
58079
|
}
|
|
58158
58080
|
return result;
|
|
@@ -58248,7 +58170,7 @@ let DefaultCache$1 = class DefaultCache {
|
|
|
58248
58170
|
this.data = {};
|
|
58249
58171
|
}
|
|
58250
58172
|
get(key, options) {
|
|
58251
|
-
if (options
|
|
58173
|
+
if (options?.copy) {
|
|
58252
58174
|
return deepCopy$1(this.data[key]);
|
|
58253
58175
|
}
|
|
58254
58176
|
return this.data[key];
|
|
@@ -58328,11 +58250,6 @@ function buildServiceDescriptor$h() {
|
|
|
58328
58250
|
};
|
|
58329
58251
|
}
|
|
58330
58252
|
|
|
58331
|
-
/*!
|
|
58332
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
58333
|
-
* All rights reserved.
|
|
58334
|
-
* For full license text, see the LICENSE.txt file
|
|
58335
|
-
*/
|
|
58336
58253
|
class CacheControlStrategy {
|
|
58337
58254
|
constructor(services, config, requestRunner) {
|
|
58338
58255
|
this.services = services;
|
|
@@ -58393,11 +58310,11 @@ class MaxAgeCacheControlStrategy extends CacheControlStrategy {
|
|
|
58393
58310
|
if (value.isOk()) {
|
|
58394
58311
|
this.collectCacheHitInstrumentation(
|
|
58395
58312
|
startTime,
|
|
58396
|
-
options
|
|
58313
|
+
options?.instrumentationAttributes
|
|
58397
58314
|
);
|
|
58398
58315
|
return ok$1(void 0);
|
|
58399
58316
|
}
|
|
58400
|
-
this.collectCacheMissInstrumentation(startTime, options
|
|
58317
|
+
this.collectCacheMissInstrumentation(startTime, options?.instrumentationAttributes);
|
|
58401
58318
|
const tempCache = this.filteredCache;
|
|
58402
58319
|
return new Promise(async (resolve, reject) => {
|
|
58403
58320
|
try {
|
|
@@ -58467,11 +58384,11 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
|
|
|
58467
58384
|
if (result.isOk()) {
|
|
58468
58385
|
this.collectCacheHitInstrumentation(
|
|
58469
58386
|
startTime,
|
|
58470
|
-
options
|
|
58387
|
+
options?.instrumentationAttributes
|
|
58471
58388
|
);
|
|
58472
58389
|
return ok$1(void 0);
|
|
58473
58390
|
}
|
|
58474
|
-
this.collectCacheMissInstrumentation(startTime, options
|
|
58391
|
+
this.collectCacheMissInstrumentation(startTime, options?.instrumentationAttributes);
|
|
58475
58392
|
const error = new UserVisibleError(
|
|
58476
58393
|
new FetchResponse(HttpStatusCode.GatewayTimeout, {
|
|
58477
58394
|
error: "Cache miss for only-if-cached request"
|
|
@@ -58555,11 +58472,6 @@ function buildServiceDescriptor$g(cache, cacheInclusionPolicy, instrumentation)
|
|
|
58555
58472
|
};
|
|
58556
58473
|
}
|
|
58557
58474
|
|
|
58558
|
-
/*!
|
|
58559
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
58560
|
-
* All rights reserved.
|
|
58561
|
-
* For full license text, see the LICENSE.txt file
|
|
58562
|
-
*/
|
|
58563
58475
|
function buildInstrumentCommand(services) {
|
|
58564
58476
|
const meter = services.instrumentation.metrics.getMeter("onestore");
|
|
58565
58477
|
return function instrumentCommand(commandClass, commandName) {
|
|
@@ -58579,7 +58491,7 @@ function buildInstrumentCommand(services) {
|
|
|
58579
58491
|
try {
|
|
58580
58492
|
result = super.execute(...args);
|
|
58581
58493
|
} catch (e) {
|
|
58582
|
-
if (
|
|
58494
|
+
if (e?.name === "AbortError") {
|
|
58583
58495
|
abortCounter.add(1);
|
|
58584
58496
|
} else {
|
|
58585
58497
|
errorCounter.add(1);
|
|
@@ -58606,16 +58518,6 @@ function buildServiceDescriptor$f(instrumentation) {
|
|
|
58606
58518
|
};
|
|
58607
58519
|
}
|
|
58608
58520
|
|
|
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
|
-
*/
|
|
58619
58521
|
class O11yOTelTraceAPI {
|
|
58620
58522
|
constructor(services) {
|
|
58621
58523
|
this.services = services;
|
|
@@ -58631,9 +58533,9 @@ class O11yTracer {
|
|
|
58631
58533
|
this.logger = logger;
|
|
58632
58534
|
}
|
|
58633
58535
|
startSpan(name, _options, context) {
|
|
58634
|
-
const traceId = context
|
|
58635
|
-
const spanId = context
|
|
58636
|
-
const traceFlags = context
|
|
58536
|
+
const traceId = context?.getValue(/* @__PURE__ */ Symbol.for("traceId"));
|
|
58537
|
+
const spanId = context?.getValue(/* @__PURE__ */ Symbol.for("spanId"));
|
|
58538
|
+
const traceFlags = context?.getValue(/* @__PURE__ */ Symbol.for("traceFlags"));
|
|
58637
58539
|
let spanContext = void 0;
|
|
58638
58540
|
if (traceId !== void 0 && spanId !== void 0 && traceFlags !== void 0) {
|
|
58639
58541
|
spanContext = {
|
|
@@ -58876,12 +58778,7 @@ function buildServiceDescriptor$e(logger) {
|
|
|
58876
58778
|
};
|
|
58877
58779
|
}
|
|
58878
58780
|
|
|
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");
|
|
58781
|
+
const EventTypeWildcard = /* @__PURE__ */ Symbol("EventTypeWildcard");
|
|
58885
58782
|
class DefaultPubSubService {
|
|
58886
58783
|
constructor() {
|
|
58887
58784
|
this.subscriptions = /* @__PURE__ */ new Map();
|
|
@@ -58944,11 +58841,6 @@ function buildServiceDescriptor$d() {
|
|
|
58944
58841
|
};
|
|
58945
58842
|
}
|
|
58946
58843
|
|
|
58947
|
-
/*!
|
|
58948
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
58949
|
-
* All rights reserved.
|
|
58950
|
-
* For full license text, see the LICENSE.txt file
|
|
58951
|
-
*/
|
|
58952
58844
|
class FeatureFlagsService {
|
|
58953
58845
|
constructor() {
|
|
58954
58846
|
this.flags = /* @__PURE__ */ new Map();
|
|
@@ -59010,7 +58902,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
59010
58902
|
},
|
|
59011
58903
|
};
|
|
59012
58904
|
}
|
|
59013
|
-
// version: 1.
|
|
58905
|
+
// version: 1.441.0-5e7d04c146
|
|
59014
58906
|
|
|
59015
58907
|
/**
|
|
59016
58908
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -59036,13 +58928,8 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
59036
58928
|
},
|
|
59037
58929
|
};
|
|
59038
58930
|
}
|
|
59039
|
-
// version: 1.
|
|
58931
|
+
// version: 1.441.0-5e7d04c146
|
|
59040
58932
|
|
|
59041
|
-
/*!
|
|
59042
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
59043
|
-
* All rights reserved.
|
|
59044
|
-
* For full license text, see the LICENSE.txt file
|
|
59045
|
-
*/
|
|
59046
58933
|
function findExecutableOperation(input) {
|
|
59047
58934
|
const operations = input.query.definitions.filter(
|
|
59048
58935
|
(def) => def.kind === Kind$2.OPERATION_DEFINITION
|
|
@@ -59054,10 +58941,7 @@ function findExecutableOperation(input) {
|
|
|
59054
58941
|
return ok$1(operations[0]);
|
|
59055
58942
|
}
|
|
59056
58943
|
if (input.operationName) {
|
|
59057
|
-
const specifiedOperation = operations.find((op) =>
|
|
59058
|
-
var _a;
|
|
59059
|
-
return ((_a = op.name) == null ? void 0 : _a.value) === input.operationName;
|
|
59060
|
-
});
|
|
58944
|
+
const specifiedOperation = operations.find((op) => op.name?.value === input.operationName);
|
|
59061
58945
|
if (specifiedOperation) {
|
|
59062
58946
|
return ok$1(specifiedOperation);
|
|
59063
58947
|
}
|
|
@@ -59073,14 +58957,13 @@ function buildGraphQLInputExtension(input) {
|
|
|
59073
58957
|
const operation = operationResult.value;
|
|
59074
58958
|
const selections = operation.selectionSet.selections;
|
|
59075
58959
|
const variableDefinitions = operation.variableDefinitions;
|
|
59076
|
-
const variables =
|
|
59077
|
-
var _a;
|
|
58960
|
+
const variables = variableDefinitions?.reduce((prev, def) => {
|
|
59078
58961
|
prev[def.variable.name.value] = {
|
|
59079
58962
|
definition: def,
|
|
59080
|
-
value:
|
|
58963
|
+
value: input.variables?.[def.variable.name.value]
|
|
59081
58964
|
};
|
|
59082
58965
|
return prev;
|
|
59083
|
-
}, {})
|
|
58966
|
+
}, {}) || {};
|
|
59084
58967
|
const fragments = input.query.definitions.filter(isFragmentDefinition).reduce((prev, fragment) => {
|
|
59085
58968
|
prev[fragment.name.value] = fragment;
|
|
59086
58969
|
return prev;
|
|
@@ -59133,11 +59016,6 @@ function isFragmentDefinition(node) {
|
|
|
59133
59016
|
return node.kind === Kind$2.FRAGMENT_DEFINITION;
|
|
59134
59017
|
}
|
|
59135
59018
|
|
|
59136
|
-
/*!
|
|
59137
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
59138
|
-
* All rights reserved.
|
|
59139
|
-
* For full license text, see the LICENSE.txt file
|
|
59140
|
-
*/
|
|
59141
59019
|
class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
|
|
59142
59020
|
constructor(config, documentRootType, services) {
|
|
59143
59021
|
super(services);
|
|
@@ -59318,11 +59196,6 @@ function buildServiceDescriptor$9() {
|
|
|
59318
59196
|
};
|
|
59319
59197
|
}
|
|
59320
59198
|
|
|
59321
|
-
/*!
|
|
59322
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
59323
|
-
* All rights reserved.
|
|
59324
|
-
* For full license text, see the LICENSE.txt file
|
|
59325
|
-
*/
|
|
59326
59199
|
class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheControlCommand {
|
|
59327
59200
|
constructor(config, documentRootType, services) {
|
|
59328
59201
|
super(services);
|
|
@@ -59436,11 +59309,6 @@ function buildServiceDescriptor$8() {
|
|
|
59436
59309
|
};
|
|
59437
59310
|
}
|
|
59438
59311
|
|
|
59439
|
-
/*!
|
|
59440
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
59441
|
-
* All rights reserved.
|
|
59442
|
-
* For full license text, see the LICENSE.txt file
|
|
59443
|
-
*/
|
|
59444
59312
|
class JsonSchemaViolationError extends Error {
|
|
59445
59313
|
constructor(message, validationErrors) {
|
|
59446
59314
|
super(message);
|
|
@@ -59870,11 +59738,6 @@ function findSchemaAtPath(document, ref) {
|
|
|
59870
59738
|
return current;
|
|
59871
59739
|
}
|
|
59872
59740
|
|
|
59873
|
-
/*!
|
|
59874
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
59875
|
-
* All rights reserved.
|
|
59876
|
-
* For full license text, see the LICENSE.txt file
|
|
59877
|
-
*/
|
|
59878
59741
|
function isUserVisibleError(error) {
|
|
59879
59742
|
return error instanceof Error && "type" in error && error.type === "user-visible";
|
|
59880
59743
|
}
|
|
@@ -59899,11 +59762,6 @@ function logError(error) {
|
|
|
59899
59762
|
console.error("OneStore Command threw an error that we did not expect", error);
|
|
59900
59763
|
}
|
|
59901
59764
|
|
|
59902
|
-
/*!
|
|
59903
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
59904
|
-
* All rights reserved.
|
|
59905
|
-
* For full license text, see the LICENSE.txt file
|
|
59906
|
-
*/
|
|
59907
59765
|
function buildBaseImperativeInvoker(getCommand, transformResult) {
|
|
59908
59766
|
return async (...params) => {
|
|
59909
59767
|
const command = getCommand({ params, assertIsValid });
|
|
@@ -60008,7 +59866,7 @@ class SubscribableImperativeBindingsService {
|
|
|
60008
59866
|
const api = {
|
|
60009
59867
|
data: result.value.data,
|
|
60010
59868
|
subscribe: (cb) => {
|
|
60011
|
-
result.value.subscribe((result2) => {
|
|
59869
|
+
return result.value.subscribe((result2) => {
|
|
60012
59870
|
if (result2.isErr()) {
|
|
60013
59871
|
return cb({ data: void 0, error: toError(result2.error) });
|
|
60014
59872
|
}
|
|
@@ -60111,10 +59969,10 @@ class GraphQLImperativeBindingsService {
|
|
|
60111
59969
|
acceptedOperations: ["query"]
|
|
60112
59970
|
};
|
|
60113
59971
|
const result = resolveAndValidateGraphQLConfig(params[0], options);
|
|
60114
|
-
if (result
|
|
59972
|
+
if (result?.isErr()) {
|
|
60115
59973
|
return result.error;
|
|
60116
59974
|
}
|
|
60117
|
-
if (result
|
|
59975
|
+
if (result?.isOk()) {
|
|
60118
59976
|
params[0] = result.value;
|
|
60119
59977
|
}
|
|
60120
59978
|
}
|
|
@@ -60133,7 +59991,7 @@ class GraphQLImperativeBindingsService {
|
|
|
60133
59991
|
deepFreeze(result.value);
|
|
60134
59992
|
consumerEmittedData.data = result.value.data.data;
|
|
60135
59993
|
consumerEmittedData.subscribe = (cb) => {
|
|
60136
|
-
result.value.subscribe((res) => {
|
|
59994
|
+
return result.value.subscribe((res) => {
|
|
60137
59995
|
const consumerEmittedData2 = {
|
|
60138
59996
|
data: void 0,
|
|
60139
59997
|
errors: void 0
|
|
@@ -60206,11 +60064,11 @@ class GraphQLLegacyImperativeBindingsService {
|
|
|
60206
60064
|
acceptedOperations: ["query"]
|
|
60207
60065
|
};
|
|
60208
60066
|
const result = resolveAndValidateGraphQLConfig(config, options);
|
|
60209
|
-
if (result
|
|
60067
|
+
if (result?.isErr()) {
|
|
60210
60068
|
callback(result.error);
|
|
60211
60069
|
return;
|
|
60212
60070
|
}
|
|
60213
|
-
if (result
|
|
60071
|
+
if (result?.isOk()) {
|
|
60214
60072
|
config = result.value;
|
|
60215
60073
|
}
|
|
60216
60074
|
}
|
|
@@ -60241,12 +60099,12 @@ class GraphQLLegacyImperativeBindingsService {
|
|
|
60241
60099
|
acceptedOperations: ["query"]
|
|
60242
60100
|
};
|
|
60243
60101
|
const result = resolveAndValidateGraphQLConfig(config, options);
|
|
60244
|
-
if (result
|
|
60102
|
+
if (result?.isErr()) {
|
|
60245
60103
|
callback(result.error);
|
|
60246
60104
|
return () => {
|
|
60247
60105
|
};
|
|
60248
60106
|
}
|
|
60249
|
-
if (result
|
|
60107
|
+
if (result?.isOk()) {
|
|
60250
60108
|
config = result.value;
|
|
60251
60109
|
}
|
|
60252
60110
|
}
|
|
@@ -60308,13 +60166,13 @@ class GraphQLMutationBindingsService {
|
|
|
60308
60166
|
acceptedOperations: ["mutation"]
|
|
60309
60167
|
};
|
|
60310
60168
|
const result2 = resolveAndValidateGraphQLConfig(params[0], options);
|
|
60311
|
-
if (result2
|
|
60169
|
+
if (result2?.isErr()) {
|
|
60312
60170
|
return {
|
|
60313
60171
|
data: void 0,
|
|
60314
60172
|
errors: result2.error.errors
|
|
60315
60173
|
};
|
|
60316
60174
|
}
|
|
60317
|
-
if (result2
|
|
60175
|
+
if (result2?.isOk()) {
|
|
60318
60176
|
params[0] = result2.value;
|
|
60319
60177
|
}
|
|
60320
60178
|
}
|
|
@@ -60340,11 +60198,6 @@ function buildServiceDescriptor$7() {
|
|
|
60340
60198
|
};
|
|
60341
60199
|
}
|
|
60342
60200
|
|
|
60343
|
-
/*!
|
|
60344
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
60345
|
-
* All rights reserved.
|
|
60346
|
-
* For full license text, see the LICENSE.txt file
|
|
60347
|
-
*/
|
|
60348
60201
|
class Sanitizer {
|
|
60349
60202
|
constructor(obj) {
|
|
60350
60203
|
this.obj = obj;
|
|
@@ -60404,7 +60257,7 @@ class CommandWireAdapterConstructor {
|
|
|
60404
60257
|
this.callback = callback;
|
|
60405
60258
|
this.connected = false;
|
|
60406
60259
|
this.exposeRefresh = false;
|
|
60407
|
-
if (!
|
|
60260
|
+
if (!options?.skipEmptyEmit) {
|
|
60408
60261
|
this.emit();
|
|
60409
60262
|
}
|
|
60410
60263
|
}
|
|
@@ -60701,11 +60554,6 @@ function buildServiceDescriptor$2() {
|
|
|
60701
60554
|
};
|
|
60702
60555
|
}
|
|
60703
60556
|
|
|
60704
|
-
/*!
|
|
60705
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
60706
|
-
* All rights reserved.
|
|
60707
|
-
* For full license text, see the LICENSE.txt file
|
|
60708
|
-
*/
|
|
60709
60557
|
function buildServiceDescriptor$1(interceptors = {
|
|
60710
60558
|
request: [],
|
|
60711
60559
|
retry: void 0,
|
|
@@ -60715,9 +60563,17 @@ function buildServiceDescriptor$1(interceptors = {
|
|
|
60715
60563
|
return {
|
|
60716
60564
|
type: "fetch",
|
|
60717
60565
|
version: "1.0",
|
|
60718
|
-
service: function(
|
|
60719
|
-
|
|
60720
|
-
|
|
60566
|
+
service: function(input, init) {
|
|
60567
|
+
let contextSeed;
|
|
60568
|
+
let cleanInit = init;
|
|
60569
|
+
if (init !== void 0 && "__contextSeed" in init) {
|
|
60570
|
+
const { __contextSeed, ...initWithoutSeed } = init;
|
|
60571
|
+
contextSeed = __contextSeed;
|
|
60572
|
+
cleanInit = Object.keys(initWithoutSeed).length === 0 ? void 0 : initWithoutSeed;
|
|
60573
|
+
}
|
|
60574
|
+
const fetchArgs = cleanInit === void 0 ? [input] : [input, cleanInit];
|
|
60575
|
+
const baseContext = interceptors.createContext?.();
|
|
60576
|
+
const context = contextSeed === void 0 ? baseContext : { ...baseContext, ...contextSeed };
|
|
60721
60577
|
const {
|
|
60722
60578
|
request: requestInterceptors = [],
|
|
60723
60579
|
retry: retryInterceptor = void 0,
|
|
@@ -60725,17 +60581,17 @@ function buildServiceDescriptor$1(interceptors = {
|
|
|
60725
60581
|
finally: finallyInterceptors = []
|
|
60726
60582
|
} = interceptors;
|
|
60727
60583
|
const pending = requestInterceptors.reduce(
|
|
60728
|
-
(previousPromise, interceptor) => previousPromise.then((
|
|
60729
|
-
resolvedPromiseLike$2(
|
|
60584
|
+
(previousPromise, interceptor) => previousPromise.then((args) => interceptor(args, context)),
|
|
60585
|
+
resolvedPromiseLike$2(fetchArgs)
|
|
60730
60586
|
);
|
|
60731
|
-
return Promise.resolve(pending).then((
|
|
60587
|
+
return Promise.resolve(pending).then((args) => {
|
|
60732
60588
|
if (retryInterceptor) {
|
|
60733
|
-
return retryInterceptor(
|
|
60589
|
+
return retryInterceptor(args, retryService, context);
|
|
60734
60590
|
} else {
|
|
60735
60591
|
if (retryService) {
|
|
60736
|
-
return retryService.applyRetry(() => fetch(...
|
|
60592
|
+
return retryService.applyRetry(() => fetch(...args));
|
|
60737
60593
|
}
|
|
60738
|
-
return fetch(...
|
|
60594
|
+
return fetch(...args);
|
|
60739
60595
|
}
|
|
60740
60596
|
}).then((response) => {
|
|
60741
60597
|
return responseInterceptors.reduce(
|
|
@@ -60911,11 +60767,6 @@ function extractQueryParams(urlString) {
|
|
|
60911
60767
|
return queryParams;
|
|
60912
60768
|
}
|
|
60913
60769
|
|
|
60914
|
-
/*!
|
|
60915
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
60916
|
-
* All rights reserved.
|
|
60917
|
-
* For full license text, see the LICENSE.txt file
|
|
60918
|
-
*/
|
|
60919
60770
|
class CacheInclusionPolicyService {
|
|
60920
60771
|
}
|
|
60921
60772
|
function setDifference(setA, setB) {
|
|
@@ -60967,18 +60818,8 @@ function rejectedPromiseLike(reason) {
|
|
|
60967
60818
|
};
|
|
60968
60819
|
}
|
|
60969
60820
|
function isPromiseLike(x) {
|
|
60970
|
-
return typeof
|
|
60821
|
+
return typeof x?.then === "function";
|
|
60971
60822
|
}
|
|
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
|
-
*/
|
|
60982
60823
|
const { stringify, parse } = JSON;
|
|
60983
60824
|
function deepCopy(x) {
|
|
60984
60825
|
const stringified = stringify(x);
|
|
@@ -61002,7 +60843,7 @@ class DefaultRecordableCache {
|
|
|
61002
60843
|
if (value === void 0) {
|
|
61003
60844
|
this.missingKeysRead.add(key);
|
|
61004
60845
|
}
|
|
61005
|
-
if (options
|
|
60846
|
+
if (options?.copy) {
|
|
61006
60847
|
return deepCopy(value);
|
|
61007
60848
|
}
|
|
61008
60849
|
return value;
|
|
@@ -61046,7 +60887,7 @@ class DefaultFilteredCache {
|
|
|
61046
60887
|
get(key, options) {
|
|
61047
60888
|
const result = this.baseCache.get(key);
|
|
61048
60889
|
if (result && this.predicate(key, result)) {
|
|
61049
|
-
if (options
|
|
60890
|
+
if (options?.copy) {
|
|
61050
60891
|
return deepCopy(result);
|
|
61051
60892
|
}
|
|
61052
60893
|
return result;
|
|
@@ -61142,7 +60983,7 @@ class DefaultCache {
|
|
|
61142
60983
|
this.data = {};
|
|
61143
60984
|
}
|
|
61144
60985
|
get(key, options) {
|
|
61145
|
-
if (options
|
|
60986
|
+
if (options?.copy) {
|
|
61146
60987
|
return deepCopy(this.data[key]);
|
|
61147
60988
|
}
|
|
61148
60989
|
return this.data[key];
|
|
@@ -61767,4 +61608,4 @@ register({
|
|
|
61767
61608
|
});
|
|
61768
61609
|
|
|
61769
61610
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
|
|
61770
|
-
// version: 1.
|
|
61611
|
+
// version: 1.441.0-5e7d04c146
|