@salesforce/lds-worker-api 1.444.0 → 1.446.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.
|
@@ -289,7 +289,7 @@ var StoreResolveResultState$1;
|
|
|
289
289
|
* @param data Data to be JSON-stringified.
|
|
290
290
|
* @returns JSON.stringified value with consistent ordering of keys.
|
|
291
291
|
*/
|
|
292
|
-
function stableJSONStringify$
|
|
292
|
+
function stableJSONStringify$4(node) {
|
|
293
293
|
// This is for Date values.
|
|
294
294
|
if (node && node.toJSON && typeof node.toJSON === 'function') {
|
|
295
295
|
// eslint-disable-next-line no-param-reassign
|
|
@@ -312,7 +312,7 @@ function stableJSONStringify$5(node) {
|
|
|
312
312
|
if (i) {
|
|
313
313
|
out += ',';
|
|
314
314
|
}
|
|
315
|
-
out += stableJSONStringify$
|
|
315
|
+
out += stableJSONStringify$4(node[i]) || 'null';
|
|
316
316
|
}
|
|
317
317
|
return out + ']';
|
|
318
318
|
}
|
|
@@ -323,7 +323,7 @@ function stableJSONStringify$5(node) {
|
|
|
323
323
|
out = '';
|
|
324
324
|
for (i = 0; i < keys$1.length; i++) {
|
|
325
325
|
const key = keys$1[i];
|
|
326
|
-
const value = stableJSONStringify$
|
|
326
|
+
const value = stableJSONStringify$4(node[key]);
|
|
327
327
|
if (!value) {
|
|
328
328
|
continue;
|
|
329
329
|
}
|
|
@@ -345,7 +345,7 @@ function serializeStructuredKey(key) {
|
|
|
345
345
|
}
|
|
346
346
|
const cacheValue = structuredKeySerializationCache.get(key);
|
|
347
347
|
if (cacheValue === undefined) {
|
|
348
|
-
const value = stableJSONStringify$
|
|
348
|
+
const value = stableJSONStringify$4(key);
|
|
349
349
|
structuredKeySerializationCache.set(key, value);
|
|
350
350
|
return value;
|
|
351
351
|
}
|
|
@@ -2023,7 +2023,7 @@ function appendTTLStrategy(storeLookup, ttlStrategy) {
|
|
|
2023
2023
|
returnStoreLookup.ttlStrategy = ttlStrategy;
|
|
2024
2024
|
return returnStoreLookup;
|
|
2025
2025
|
}
|
|
2026
|
-
function buildNetworkSnapshot$
|
|
2026
|
+
function buildNetworkSnapshot$1c(args) {
|
|
2027
2027
|
const { buildNetworkSnapshot, buildSnapshotContext, coercedAdapterRequestContext } = args;
|
|
2028
2028
|
return buildNetworkSnapshot(buildSnapshotContext, coercedAdapterRequestContext).then((snapshot) => snapshot.state === 'Pending' ? args.resolvePendingSnapshot(snapshot) : snapshot);
|
|
2029
2029
|
}
|
|
@@ -2075,7 +2075,7 @@ function buildCacheAndNetworkImplementation(staleDurationSeconds = 0) {
|
|
|
2075
2075
|
}
|
|
2076
2076
|
// any other state falls through to network snapshot
|
|
2077
2077
|
}
|
|
2078
|
-
return buildNetworkSnapshot$
|
|
2078
|
+
return buildNetworkSnapshot$1c(args);
|
|
2079
2079
|
});
|
|
2080
2080
|
};
|
|
2081
2081
|
}
|
|
@@ -2092,12 +2092,12 @@ const cacheThenNetworkImplementation = function (args) {
|
|
|
2092
2092
|
return args.resolvePendingSnapshot(snapshot);
|
|
2093
2093
|
}
|
|
2094
2094
|
}
|
|
2095
|
-
return buildNetworkSnapshot$
|
|
2095
|
+
return buildNetworkSnapshot$1c(args);
|
|
2096
2096
|
});
|
|
2097
2097
|
};
|
|
2098
2098
|
|
|
2099
2099
|
const noCacheImplementation = function (args) {
|
|
2100
|
-
return buildNetworkSnapshot$
|
|
2100
|
+
return buildNetworkSnapshot$1c(args);
|
|
2101
2101
|
};
|
|
2102
2102
|
|
|
2103
2103
|
const onlyIfCachedImplementation = function (args) {
|
|
@@ -2138,7 +2138,7 @@ function buildStaleWhileRevalidateImplementation(staleDurationSeconds) {
|
|
|
2138
2138
|
return snapshot;
|
|
2139
2139
|
}
|
|
2140
2140
|
}
|
|
2141
|
-
return buildNetworkSnapshot$
|
|
2141
|
+
return buildNetworkSnapshot$1c(args);
|
|
2142
2142
|
});
|
|
2143
2143
|
};
|
|
2144
2144
|
}
|
|
@@ -3285,7 +3285,7 @@ function resolveCachePolicy(cachePolicy, defaultCachePolicy) {
|
|
|
3285
3285
|
}
|
|
3286
3286
|
}
|
|
3287
3287
|
}
|
|
3288
|
-
function isFetchResponse(error) {
|
|
3288
|
+
function isFetchResponse$1(error) {
|
|
3289
3289
|
return error !== null && typeof error === 'object' && 'status' in error;
|
|
3290
3290
|
}
|
|
3291
3291
|
/**
|
|
@@ -3364,7 +3364,7 @@ class Environment {
|
|
|
3364
3364
|
// the new network adapter behavior
|
|
3365
3365
|
return reject(
|
|
3366
3366
|
// legacy network adapter check
|
|
3367
|
-
isFetchResponse(error)
|
|
3367
|
+
isFetchResponse$1(error)
|
|
3368
3368
|
? {
|
|
3369
3369
|
...error,
|
|
3370
3370
|
errorType: 'fetchResponse',
|
|
@@ -4276,7 +4276,7 @@ function withDefaultLuvio(callback) {
|
|
|
4276
4276
|
}
|
|
4277
4277
|
callbacks.push(callback);
|
|
4278
4278
|
}
|
|
4279
|
-
// version: 1.
|
|
4279
|
+
// version: 1.446.0-f73bd65030
|
|
4280
4280
|
|
|
4281
4281
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4282
4282
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5320,7 +5320,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
5320
5320
|
const { apiFamily, name } = metadata;
|
|
5321
5321
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5322
5322
|
}
|
|
5323
|
-
// version: 1.
|
|
5323
|
+
// version: 1.446.0-f73bd65030
|
|
5324
5324
|
|
|
5325
5325
|
function isSupportedEntity(_objectApiName) {
|
|
5326
5326
|
return true;
|
|
@@ -5976,7 +5976,7 @@ const snapshotRefreshOptions$2 = {
|
|
|
5976
5976
|
* @param data Data to be JSON-stringified.
|
|
5977
5977
|
* @returns JSON.stringified value with consistent ordering of keys.
|
|
5978
5978
|
*/
|
|
5979
|
-
function stableJSONStringify$
|
|
5979
|
+
function stableJSONStringify$3(node) {
|
|
5980
5980
|
// This is for Date values.
|
|
5981
5981
|
if (node && node.toJSON && typeof node.toJSON === 'function') {
|
|
5982
5982
|
// eslint-disable-next-line no-param-reassign
|
|
@@ -5999,7 +5999,7 @@ function stableJSONStringify$4(node) {
|
|
|
5999
5999
|
if (i) {
|
|
6000
6000
|
out += ',';
|
|
6001
6001
|
}
|
|
6002
|
-
out += stableJSONStringify$
|
|
6002
|
+
out += stableJSONStringify$3(node[i]) || 'null';
|
|
6003
6003
|
}
|
|
6004
6004
|
return out + ']';
|
|
6005
6005
|
}
|
|
@@ -6010,7 +6010,7 @@ function stableJSONStringify$4(node) {
|
|
|
6010
6010
|
out = '';
|
|
6011
6011
|
for (i = 0; i < keys.length; i++) {
|
|
6012
6012
|
const key = keys[i];
|
|
6013
|
-
const value = stableJSONStringify$
|
|
6013
|
+
const value = stableJSONStringify$3(node[key]);
|
|
6014
6014
|
if (!value) {
|
|
6015
6015
|
continue;
|
|
6016
6016
|
}
|
|
@@ -8111,7 +8111,7 @@ function mergeAndRefreshLowerVersionRecord$1(luvio, incoming, existing, incoming
|
|
|
8111
8111
|
};
|
|
8112
8112
|
}
|
|
8113
8113
|
else {
|
|
8114
|
-
buildNetworkSnapshot$
|
|
8114
|
+
buildNetworkSnapshot$1a(luvio, {
|
|
8115
8115
|
recordId: incoming.id,
|
|
8116
8116
|
optionalFields: convertTrieToFields$1(incomingTrackedFieldsTrieRoot),
|
|
8117
8117
|
});
|
|
@@ -8570,7 +8570,7 @@ function buildRecordSelector$1(luvio, recordId, fields, optionalFields) {
|
|
|
8570
8570
|
function buildSnapshotRefresh$5(luvio, config) {
|
|
8571
8571
|
return {
|
|
8572
8572
|
config,
|
|
8573
|
-
resolve: () => buildNetworkSnapshot$
|
|
8573
|
+
resolve: () => buildNetworkSnapshot$1a(luvio, config),
|
|
8574
8574
|
};
|
|
8575
8575
|
}
|
|
8576
8576
|
function prepareRequest$7(luvio, config) {
|
|
@@ -8615,7 +8615,7 @@ function onResourceError$1(luvio, config, key, err) {
|
|
|
8615
8615
|
const errorSnapshot = ingestError$M(luvio, config, key, err);
|
|
8616
8616
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
8617
8617
|
}
|
|
8618
|
-
function buildNetworkSnapshot$
|
|
8618
|
+
function buildNetworkSnapshot$1a(luvio, config, serverRequestCount = 0, options) {
|
|
8619
8619
|
const { request, key, allTrackedFields, resourceParams } = prepareRequest$7(luvio, config);
|
|
8620
8620
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
8621
8621
|
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
@@ -8672,7 +8672,7 @@ function buildNetworkSnapshotCachePolicy$R(context, coercedAdapterRequestContext
|
|
|
8672
8672
|
priority: networkPriority,
|
|
8673
8673
|
};
|
|
8674
8674
|
}
|
|
8675
|
-
return buildNetworkSnapshot$
|
|
8675
|
+
return buildNetworkSnapshot$1a(luvio, config, 0, dispatchOptions);
|
|
8676
8676
|
}
|
|
8677
8677
|
function getRecordByFields$1(luvio, config, requestContext) {
|
|
8678
8678
|
return luvio.applyCachePolicy(requestContext || {}, { config, luvio }, buildCachedSnapshotCachePolicy$Q, buildNetworkSnapshotCachePolicy$R);
|
|
@@ -9022,7 +9022,7 @@ function onFetchResponseSuccess$N(luvio, config, resourceParams, response, serve
|
|
|
9022
9022
|
},
|
|
9023
9023
|
refresh: {
|
|
9024
9024
|
config,
|
|
9025
|
-
resolve: () => buildNetworkSnapshot$
|
|
9025
|
+
resolve: () => buildNetworkSnapshot$19(luvio, config, serverRequestCount, snapshotRefreshOptions$2),
|
|
9026
9026
|
},
|
|
9027
9027
|
variables: {},
|
|
9028
9028
|
};
|
|
@@ -9032,11 +9032,11 @@ function onFetchResponseSuccess$N(luvio, config, resourceParams, response, serve
|
|
|
9032
9032
|
function onFetchResponseError$O(luvio, config, resourceParams, response) {
|
|
9033
9033
|
const snapshot = ingestError$L(luvio, resourceParams, response, {
|
|
9034
9034
|
config,
|
|
9035
|
-
resolve: () => buildNetworkSnapshot$
|
|
9035
|
+
resolve: () => buildNetworkSnapshot$19(luvio, config, 0, snapshotRefreshOptions$2),
|
|
9036
9036
|
});
|
|
9037
9037
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9038
9038
|
}
|
|
9039
|
-
function buildNetworkSnapshot$
|
|
9039
|
+
function buildNetworkSnapshot$19(luvio, config, serverRequestCount = 0, options) {
|
|
9040
9040
|
const resourceParams = createResourceParams$11(config);
|
|
9041
9041
|
const request = createResourceRequest$1b(resourceParams);
|
|
9042
9042
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
@@ -9063,7 +9063,7 @@ function resolveConflict$1(luvio, map) {
|
|
|
9063
9063
|
recordId,
|
|
9064
9064
|
optionalFields: convertTrieToFields$1(map.conflicts[recordId].trackedFields),
|
|
9065
9065
|
};
|
|
9066
|
-
buildNetworkSnapshot$
|
|
9066
|
+
buildNetworkSnapshot$1a(luvio, config, map.serverRequestCount);
|
|
9067
9067
|
}
|
|
9068
9068
|
else {
|
|
9069
9069
|
const records = reduce$3.call(ids, (acc, id) => {
|
|
@@ -9075,7 +9075,7 @@ function resolveConflict$1(luvio, map) {
|
|
|
9075
9075
|
return acc;
|
|
9076
9076
|
}, []);
|
|
9077
9077
|
const config = { records };
|
|
9078
|
-
buildNetworkSnapshot$
|
|
9078
|
+
buildNetworkSnapshot$19(luvio, config, map.serverRequestCount);
|
|
9079
9079
|
}
|
|
9080
9080
|
}
|
|
9081
9081
|
|
|
@@ -11191,14 +11191,14 @@ function adapterFragment$I(luvio, config) {
|
|
|
11191
11191
|
function onFetchResponseSuccess$M(luvio, config, resourceParams, response) {
|
|
11192
11192
|
const snapshot = ingestSuccess$Q(luvio, resourceParams, response, {
|
|
11193
11193
|
config,
|
|
11194
|
-
resolve: () => buildNetworkSnapshot$
|
|
11194
|
+
resolve: () => buildNetworkSnapshot$18(luvio, config, snapshotRefreshOptions$2)
|
|
11195
11195
|
});
|
|
11196
11196
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11197
11197
|
}
|
|
11198
11198
|
function onFetchResponseError$N(luvio, config, resourceParams, response) {
|
|
11199
11199
|
const snapshot = ingestError$J(luvio, resourceParams, response, {
|
|
11200
11200
|
config,
|
|
11201
|
-
resolve: () => buildNetworkSnapshot$
|
|
11201
|
+
resolve: () => buildNetworkSnapshot$18(luvio, config, snapshotRefreshOptions$2)
|
|
11202
11202
|
});
|
|
11203
11203
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11204
11204
|
}
|
|
@@ -11277,7 +11277,7 @@ function getPaginationMetadata$3(luvio, resourceParams) {
|
|
|
11277
11277
|
}
|
|
11278
11278
|
return node.data.__metadata;
|
|
11279
11279
|
}
|
|
11280
|
-
function buildNetworkSnapshot$
|
|
11280
|
+
function buildNetworkSnapshot$18(luvio, config, options, cacheSnapshot) {
|
|
11281
11281
|
const resourceParams = createResourceParams$_(config);
|
|
11282
11282
|
const request = prepareRequest$6(luvio, config, resourceParams, cacheSnapshot);
|
|
11283
11283
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -11292,7 +11292,7 @@ function buildNetworkSnapshot$14(luvio, config, options, cacheSnapshot) {
|
|
|
11292
11292
|
});
|
|
11293
11293
|
}
|
|
11294
11294
|
function buildNetworkSnapshotCachePolicy$Q(context, coercedAdapterRequestContext) {
|
|
11295
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11295
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$18, undefined, true);
|
|
11296
11296
|
}
|
|
11297
11297
|
function buildCachedSnapshotCachePolicy$P(context, storeLookup) {
|
|
11298
11298
|
const { luvio, config } = context;
|
|
@@ -11303,7 +11303,7 @@ function buildCachedSnapshotCachePolicy$P(context, storeLookup) {
|
|
|
11303
11303
|
};
|
|
11304
11304
|
const cacheSnapshot = storeLookup(selector, {
|
|
11305
11305
|
config,
|
|
11306
|
-
resolve: () => buildNetworkSnapshot$
|
|
11306
|
+
resolve: () => buildNetworkSnapshot$18(luvio, config, snapshotRefreshOptions$2)
|
|
11307
11307
|
});
|
|
11308
11308
|
if (isUnfulfilledSnapshot$1$1(cacheSnapshot) && cacheSnapshot.data !== undefined) {
|
|
11309
11309
|
context.cacheSnapshot = cacheSnapshot;
|
|
@@ -12399,18 +12399,18 @@ function adapterFragment$H(luvio, config) {
|
|
|
12399
12399
|
function onFetchResponseSuccess$L(luvio, config, resourceParams, response) {
|
|
12400
12400
|
const snapshot = ingestSuccess$P(luvio, resourceParams, response, {
|
|
12401
12401
|
config,
|
|
12402
|
-
resolve: () => buildNetworkSnapshot$
|
|
12402
|
+
resolve: () => buildNetworkSnapshot$17(luvio, config, snapshotRefreshOptions$2)
|
|
12403
12403
|
});
|
|
12404
12404
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
12405
12405
|
}
|
|
12406
12406
|
function onFetchResponseError$M(luvio, config, resourceParams, response) {
|
|
12407
12407
|
const snapshot = ingestError$I(luvio, resourceParams, response, {
|
|
12408
12408
|
config,
|
|
12409
|
-
resolve: () => buildNetworkSnapshot$
|
|
12409
|
+
resolve: () => buildNetworkSnapshot$17(luvio, config, snapshotRefreshOptions$2)
|
|
12410
12410
|
});
|
|
12411
12411
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
12412
12412
|
}
|
|
12413
|
-
function buildNetworkSnapshot$
|
|
12413
|
+
function buildNetworkSnapshot$17(luvio, config, options) {
|
|
12414
12414
|
const resourceParams = createResourceParams$Y(config);
|
|
12415
12415
|
const request = createResourceRequest$13(resourceParams);
|
|
12416
12416
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -12425,7 +12425,7 @@ function buildNetworkSnapshot$13(luvio, config, options) {
|
|
|
12425
12425
|
});
|
|
12426
12426
|
}
|
|
12427
12427
|
function buildNetworkSnapshotCachePolicy$P(context, coercedAdapterRequestContext) {
|
|
12428
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
12428
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$17, undefined, false);
|
|
12429
12429
|
}
|
|
12430
12430
|
function buildCachedSnapshotCachePolicy$O(context, storeLookup) {
|
|
12431
12431
|
const { luvio, config } = context;
|
|
@@ -12436,7 +12436,7 @@ function buildCachedSnapshotCachePolicy$O(context, storeLookup) {
|
|
|
12436
12436
|
};
|
|
12437
12437
|
const cacheSnapshot = storeLookup(selector, {
|
|
12438
12438
|
config,
|
|
12439
|
-
resolve: () => buildNetworkSnapshot$
|
|
12439
|
+
resolve: () => buildNetworkSnapshot$17(luvio, config, snapshotRefreshOptions$2)
|
|
12440
12440
|
});
|
|
12441
12441
|
return cacheSnapshot;
|
|
12442
12442
|
}
|
|
@@ -13111,7 +13111,7 @@ function keyBuilder$1T(recordIds, layoutTypes, modes, optionalFields) {
|
|
|
13111
13111
|
function buildSnapshotRefresh$4$1(luvio, config) {
|
|
13112
13112
|
return {
|
|
13113
13113
|
config,
|
|
13114
|
-
resolve: () => buildNetworkSnapshot$
|
|
13114
|
+
resolve: () => buildNetworkSnapshot$16(luvio, config),
|
|
13115
13115
|
};
|
|
13116
13116
|
}
|
|
13117
13117
|
function markRecordUiNulledOutLookupFields$1(recordLookupFields, recordNodes) {
|
|
@@ -13265,7 +13265,7 @@ function onFetchResponseError$L(luvio, config, selectorKey, key, err) {
|
|
|
13265
13265
|
return errorSnapshot;
|
|
13266
13266
|
});
|
|
13267
13267
|
}
|
|
13268
|
-
function buildNetworkSnapshot$
|
|
13268
|
+
function buildNetworkSnapshot$16(luvio, config, dispatchContext) {
|
|
13269
13269
|
const { key, resourceRequest, selectorKey } = prepareRequest$5$1(luvio, config);
|
|
13270
13270
|
return luvio
|
|
13271
13271
|
.dispatchResourceRequest(resourceRequest, dispatchContext)
|
|
@@ -13333,7 +13333,7 @@ function buildNetworkRecordUiRepresentationSnapshot$1(context, coercedAdapterReq
|
|
|
13333
13333
|
priority: networkPriority,
|
|
13334
13334
|
};
|
|
13335
13335
|
}
|
|
13336
|
-
return buildNetworkSnapshot$
|
|
13336
|
+
return buildNetworkSnapshot$16(context.luvio, context.config, dispatchOptions);
|
|
13337
13337
|
}
|
|
13338
13338
|
function coerceConfigWithDefaults$3(untrustedConfig) {
|
|
13339
13339
|
const config = validateAdapterConfig$12(untrustedConfig, GET_RECORDUI_ADAPTER_CONFIG$1);
|
|
@@ -13400,7 +13400,7 @@ function refresh$1(luvio, config) {
|
|
|
13400
13400
|
modes,
|
|
13401
13401
|
optionalFields,
|
|
13402
13402
|
};
|
|
13403
|
-
return buildNetworkSnapshot$
|
|
13403
|
+
return buildNetworkSnapshot$16(luvio, recordUiConfig).then((snapshot) => {
|
|
13404
13404
|
const refresh = buildSnapshotRefresh$3$1(luvio, config);
|
|
13405
13405
|
if (isErrorSnapshot$1(snapshot)) {
|
|
13406
13406
|
var recordKey = keyBuilder$29(luvio, { recordId });
|
|
@@ -13548,7 +13548,7 @@ function getRecord$1(luvio, refresh, recordId, fields, configOptionalFields) {
|
|
|
13548
13548
|
}
|
|
13549
13549
|
return recordSnapshotOrPromise;
|
|
13550
13550
|
}
|
|
13551
|
-
function buildNetworkSnapshot$
|
|
13551
|
+
function buildNetworkSnapshot$15(context, coercedAdapterRequestContext) {
|
|
13552
13552
|
const { config, luvio, adapterContext } = context;
|
|
13553
13553
|
const { recordId } = config;
|
|
13554
13554
|
const optionalFields = config.optionalFields === undefined ? [] : dedupe$3(config.optionalFields).sort();
|
|
@@ -13574,7 +13574,7 @@ function buildNetworkSnapshot$11(context, coercedAdapterRequestContext) {
|
|
|
13574
13574
|
fields: context.fields,
|
|
13575
13575
|
optionalFields,
|
|
13576
13576
|
};
|
|
13577
|
-
return buildNetworkSnapshot$
|
|
13577
|
+
return buildNetworkSnapshot$1a(luvio, recordConfig, 0, coercedAdapterRequestContext).then((snapshot) => {
|
|
13578
13578
|
snapshot.refresh = refresh;
|
|
13579
13579
|
return snapshot;
|
|
13580
13580
|
});
|
|
@@ -13587,7 +13587,7 @@ function buildNetworkSnapshot$11(context, coercedAdapterRequestContext) {
|
|
|
13587
13587
|
modes,
|
|
13588
13588
|
optionalFields,
|
|
13589
13589
|
};
|
|
13590
|
-
return buildNetworkSnapshot$
|
|
13590
|
+
return buildNetworkSnapshot$16(luvio, recordUiConfig, dispatchOptions).then((snapshot) => processRecordUiRepresentation$1(luvio, refresh, recordId, modes, snapshot, adapterContext, optionalFields));
|
|
13591
13591
|
}
|
|
13592
13592
|
function buildRecordLayoutCachedSnapshot$1(context, storeLookup) {
|
|
13593
13593
|
const { config, luvio } = context;
|
|
@@ -13671,7 +13671,7 @@ function makeCacheOnlySnapshot$1(luvio, config, adapterContext, cachedSnapshot)
|
|
|
13671
13671
|
function makeNetworkOnlySnapshot$1(luvio, config, adapterContext, requestContext) {
|
|
13672
13672
|
return luvio.applyCachePolicy(requestContext || {}, { config, luvio, adapterContext }, () => {
|
|
13673
13673
|
return undefined;
|
|
13674
|
-
}, buildNetworkSnapshot$
|
|
13674
|
+
}, buildNetworkSnapshot$15);
|
|
13675
13675
|
}
|
|
13676
13676
|
function getRecordLayoutType$1(luvio, config, adapterContext, requestContext) {
|
|
13677
13677
|
// lookup record layout
|
|
@@ -13708,10 +13708,10 @@ function getRecordLayoutType$1(luvio, config, adapterContext, requestContext) {
|
|
|
13708
13708
|
if (!fields) {
|
|
13709
13709
|
return makeNetworkOnlySnapshot$1(luvio, config, adapterContext, requestContext);
|
|
13710
13710
|
}
|
|
13711
|
-
return luvio.applyCachePolicy(requestContext || {}, { config, luvio, adapterContext }, buildRecordSnapshot$1(luvio, config, recordLayoutSnapshot, objectInfoSnapshot, fields), buildNetworkSnapshot$
|
|
13711
|
+
return luvio.applyCachePolicy(requestContext || {}, { config, luvio, adapterContext }, buildRecordSnapshot$1(luvio, config, recordLayoutSnapshot, objectInfoSnapshot, fields), buildNetworkSnapshot$15);
|
|
13712
13712
|
}
|
|
13713
13713
|
return makeRecordLayoutMap$1(luvio, config, objectInfoSnapshot.data.apiName, recordTypeId, layoutTypes, modes, adapterContext).then((recordLayoutMap) => {
|
|
13714
|
-
return luvio.applyCachePolicy(requestContext || {}, { config, luvio, adapterContext }, buildRecordLayoutSnapshot$1(recordLayoutMap, luvio, config, recordLayoutSnapshot, objectInfoSnapshot), buildNetworkSnapshot$
|
|
13714
|
+
return luvio.applyCachePolicy(requestContext || {}, { config, luvio, adapterContext }, buildRecordLayoutSnapshot$1(recordLayoutMap, luvio, config, recordLayoutSnapshot, objectInfoSnapshot), buildNetworkSnapshot$15);
|
|
13715
13715
|
});
|
|
13716
13716
|
});
|
|
13717
13717
|
});
|
|
@@ -14873,18 +14873,18 @@ function adapterFragment$G(luvio, config) {
|
|
|
14873
14873
|
function onFetchResponseSuccess$J(luvio, config, resourceParams, response) {
|
|
14874
14874
|
const snapshot = ingestSuccess$O(luvio, resourceParams, response, {
|
|
14875
14875
|
config,
|
|
14876
|
-
resolve: () => buildNetworkSnapshot$
|
|
14876
|
+
resolve: () => buildNetworkSnapshot$14(luvio, config, snapshotRefreshOptions$2)
|
|
14877
14877
|
});
|
|
14878
14878
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
14879
14879
|
}
|
|
14880
14880
|
function onFetchResponseError$K(luvio, config, resourceParams, response) {
|
|
14881
14881
|
const snapshot = ingestError$H(luvio, resourceParams, response, {
|
|
14882
14882
|
config,
|
|
14883
|
-
resolve: () => buildNetworkSnapshot$
|
|
14883
|
+
resolve: () => buildNetworkSnapshot$14(luvio, config, snapshotRefreshOptions$2)
|
|
14884
14884
|
});
|
|
14885
14885
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
14886
14886
|
}
|
|
14887
|
-
function buildNetworkSnapshot$
|
|
14887
|
+
function buildNetworkSnapshot$14(luvio, config, options) {
|
|
14888
14888
|
const resourceParams = createResourceParams$X(config);
|
|
14889
14889
|
const request = createResourceRequest$11(resourceParams);
|
|
14890
14890
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -14899,7 +14899,7 @@ function buildNetworkSnapshot$10(luvio, config, options) {
|
|
|
14899
14899
|
});
|
|
14900
14900
|
}
|
|
14901
14901
|
function buildNetworkSnapshotCachePolicy$O(context, coercedAdapterRequestContext) {
|
|
14902
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
14902
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$14, undefined, false);
|
|
14903
14903
|
}
|
|
14904
14904
|
function buildCachedSnapshotCachePolicy$N(context, storeLookup) {
|
|
14905
14905
|
const { luvio, config } = context;
|
|
@@ -14910,7 +14910,7 @@ function buildCachedSnapshotCachePolicy$N(context, storeLookup) {
|
|
|
14910
14910
|
};
|
|
14911
14911
|
const cacheSnapshot = storeLookup(selector, {
|
|
14912
14912
|
config,
|
|
14913
|
-
resolve: () => buildNetworkSnapshot$
|
|
14913
|
+
resolve: () => buildNetworkSnapshot$14(luvio, config, snapshotRefreshOptions$2)
|
|
14914
14914
|
});
|
|
14915
14915
|
return cacheSnapshot;
|
|
14916
14916
|
}
|
|
@@ -15064,18 +15064,18 @@ function adapterFragment$F(luvio, config) {
|
|
|
15064
15064
|
function onFetchResponseSuccess$I(luvio, config, resourceParams, response) {
|
|
15065
15065
|
const snapshot = ingestSuccess$N(luvio, resourceParams, response, {
|
|
15066
15066
|
config,
|
|
15067
|
-
resolve: () => buildNetworkSnapshot
|
|
15067
|
+
resolve: () => buildNetworkSnapshot$13(luvio, config, snapshotRefreshOptions$2)
|
|
15068
15068
|
});
|
|
15069
15069
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15070
15070
|
}
|
|
15071
15071
|
function onFetchResponseError$J(luvio, config, resourceParams, response) {
|
|
15072
15072
|
const snapshot = ingestError$G(luvio, resourceParams, response, {
|
|
15073
15073
|
config,
|
|
15074
|
-
resolve: () => buildNetworkSnapshot
|
|
15074
|
+
resolve: () => buildNetworkSnapshot$13(luvio, config, snapshotRefreshOptions$2)
|
|
15075
15075
|
});
|
|
15076
15076
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15077
15077
|
}
|
|
15078
|
-
function buildNetworkSnapshot
|
|
15078
|
+
function buildNetworkSnapshot$13(luvio, config, options) {
|
|
15079
15079
|
const resourceParams = createResourceParams$W(config);
|
|
15080
15080
|
const request = createResourceRequest$10(resourceParams);
|
|
15081
15081
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -15090,7 +15090,7 @@ function buildNetworkSnapshot$$(luvio, config, options) {
|
|
|
15090
15090
|
});
|
|
15091
15091
|
}
|
|
15092
15092
|
function buildNetworkSnapshotCachePolicy$N(context, coercedAdapterRequestContext) {
|
|
15093
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot
|
|
15093
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$13, undefined, false);
|
|
15094
15094
|
}
|
|
15095
15095
|
function buildCachedSnapshotCachePolicy$M(context, storeLookup) {
|
|
15096
15096
|
const { luvio, config } = context;
|
|
@@ -15101,7 +15101,7 @@ function buildCachedSnapshotCachePolicy$M(context, storeLookup) {
|
|
|
15101
15101
|
};
|
|
15102
15102
|
const cacheSnapshot = storeLookup(selector, {
|
|
15103
15103
|
config,
|
|
15104
|
-
resolve: () => buildNetworkSnapshot
|
|
15104
|
+
resolve: () => buildNetworkSnapshot$13(luvio, config, snapshotRefreshOptions$2)
|
|
15105
15105
|
});
|
|
15106
15106
|
return cacheSnapshot;
|
|
15107
15107
|
}
|
|
@@ -15230,18 +15230,18 @@ function adapterFragment$E(luvio, config) {
|
|
|
15230
15230
|
function onFetchResponseSuccess$H(luvio, config, resourceParams, response) {
|
|
15231
15231
|
const snapshot = ingestSuccess$M(luvio, resourceParams, response, {
|
|
15232
15232
|
config,
|
|
15233
|
-
resolve: () => buildNetworkSnapshot$
|
|
15233
|
+
resolve: () => buildNetworkSnapshot$12(luvio, config, snapshotRefreshOptions$2)
|
|
15234
15234
|
});
|
|
15235
15235
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15236
15236
|
}
|
|
15237
15237
|
function onFetchResponseError$I(luvio, config, resourceParams, response) {
|
|
15238
15238
|
const snapshot = ingestError$F(luvio, resourceParams, response, {
|
|
15239
15239
|
config,
|
|
15240
|
-
resolve: () => buildNetworkSnapshot$
|
|
15240
|
+
resolve: () => buildNetworkSnapshot$12(luvio, config, snapshotRefreshOptions$2)
|
|
15241
15241
|
});
|
|
15242
15242
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15243
15243
|
}
|
|
15244
|
-
function buildNetworkSnapshot$
|
|
15244
|
+
function buildNetworkSnapshot$12(luvio, config, options) {
|
|
15245
15245
|
const resourceParams = createResourceParams$V(config);
|
|
15246
15246
|
const request = createResourceRequest$$(resourceParams);
|
|
15247
15247
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -15256,7 +15256,7 @@ function buildNetworkSnapshot$_(luvio, config, options) {
|
|
|
15256
15256
|
});
|
|
15257
15257
|
}
|
|
15258
15258
|
function buildNetworkSnapshotCachePolicy$M(context, coercedAdapterRequestContext) {
|
|
15259
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
15259
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$12, undefined, false);
|
|
15260
15260
|
}
|
|
15261
15261
|
function buildCachedSnapshotCachePolicy$L(context, storeLookup) {
|
|
15262
15262
|
const { luvio, config } = context;
|
|
@@ -15267,7 +15267,7 @@ function buildCachedSnapshotCachePolicy$L(context, storeLookup) {
|
|
|
15267
15267
|
};
|
|
15268
15268
|
const cacheSnapshot = storeLookup(selector, {
|
|
15269
15269
|
config,
|
|
15270
|
-
resolve: () => buildNetworkSnapshot$
|
|
15270
|
+
resolve: () => buildNetworkSnapshot$12(luvio, config, snapshotRefreshOptions$2)
|
|
15271
15271
|
});
|
|
15272
15272
|
return cacheSnapshot;
|
|
15273
15273
|
}
|
|
@@ -15364,18 +15364,18 @@ function adapterFragment$D(luvio, config) {
|
|
|
15364
15364
|
function onFetchResponseSuccess$G(luvio, config, resourceParams, response) {
|
|
15365
15365
|
const snapshot = ingestSuccess$L(luvio, resourceParams, response, {
|
|
15366
15366
|
config,
|
|
15367
|
-
resolve: () => buildNetworkSnapshot$
|
|
15367
|
+
resolve: () => buildNetworkSnapshot$11(luvio, config, snapshotRefreshOptions$2)
|
|
15368
15368
|
});
|
|
15369
15369
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15370
15370
|
}
|
|
15371
15371
|
function onFetchResponseError$H(luvio, config, resourceParams, response) {
|
|
15372
15372
|
const snapshot = ingestError$E(luvio, resourceParams, response, {
|
|
15373
15373
|
config,
|
|
15374
|
-
resolve: () => buildNetworkSnapshot$
|
|
15374
|
+
resolve: () => buildNetworkSnapshot$11(luvio, config, snapshotRefreshOptions$2)
|
|
15375
15375
|
});
|
|
15376
15376
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15377
15377
|
}
|
|
15378
|
-
function buildNetworkSnapshot$
|
|
15378
|
+
function buildNetworkSnapshot$11(luvio, config, options) {
|
|
15379
15379
|
const resourceParams = createResourceParams$U(config);
|
|
15380
15380
|
const request = createResourceRequest$_(resourceParams);
|
|
15381
15381
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -15390,7 +15390,7 @@ function buildNetworkSnapshot$Z(luvio, config, options) {
|
|
|
15390
15390
|
});
|
|
15391
15391
|
}
|
|
15392
15392
|
function buildNetworkSnapshotCachePolicy$L(context, coercedAdapterRequestContext) {
|
|
15393
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
15393
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$11, undefined, false);
|
|
15394
15394
|
}
|
|
15395
15395
|
function buildCachedSnapshotCachePolicy$K(context, storeLookup) {
|
|
15396
15396
|
const { luvio, config } = context;
|
|
@@ -15401,7 +15401,7 @@ function buildCachedSnapshotCachePolicy$K(context, storeLookup) {
|
|
|
15401
15401
|
};
|
|
15402
15402
|
const cacheSnapshot = storeLookup(selector, {
|
|
15403
15403
|
config,
|
|
15404
|
-
resolve: () => buildNetworkSnapshot$
|
|
15404
|
+
resolve: () => buildNetworkSnapshot$11(luvio, config, snapshotRefreshOptions$2)
|
|
15405
15405
|
});
|
|
15406
15406
|
return cacheSnapshot;
|
|
15407
15407
|
}
|
|
@@ -15526,18 +15526,18 @@ function adapterFragment$C(luvio, config) {
|
|
|
15526
15526
|
function onFetchResponseSuccess$F(luvio, config, resourceParams, response) {
|
|
15527
15527
|
const snapshot = ingestSuccess$K(luvio, resourceParams, response, {
|
|
15528
15528
|
config,
|
|
15529
|
-
resolve: () => buildNetworkSnapshot$
|
|
15529
|
+
resolve: () => buildNetworkSnapshot$10(luvio, config, snapshotRefreshOptions$2)
|
|
15530
15530
|
});
|
|
15531
15531
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15532
15532
|
}
|
|
15533
15533
|
function onFetchResponseError$G(luvio, config, resourceParams, response) {
|
|
15534
15534
|
const snapshot = ingestError$D(luvio, resourceParams, response, {
|
|
15535
15535
|
config,
|
|
15536
|
-
resolve: () => buildNetworkSnapshot$
|
|
15536
|
+
resolve: () => buildNetworkSnapshot$10(luvio, config, snapshotRefreshOptions$2)
|
|
15537
15537
|
});
|
|
15538
15538
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15539
15539
|
}
|
|
15540
|
-
function buildNetworkSnapshot$
|
|
15540
|
+
function buildNetworkSnapshot$10(luvio, config, options) {
|
|
15541
15541
|
const resourceParams = createResourceParams$T(config);
|
|
15542
15542
|
const request = createResourceRequest$Z(resourceParams);
|
|
15543
15543
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -15552,7 +15552,7 @@ function buildNetworkSnapshot$Y(luvio, config, options) {
|
|
|
15552
15552
|
});
|
|
15553
15553
|
}
|
|
15554
15554
|
function buildNetworkSnapshotCachePolicy$K(context, coercedAdapterRequestContext) {
|
|
15555
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
15555
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$10, undefined, false);
|
|
15556
15556
|
}
|
|
15557
15557
|
function buildCachedSnapshotCachePolicy$J(context, storeLookup) {
|
|
15558
15558
|
const { luvio, config } = context;
|
|
@@ -15563,7 +15563,7 @@ function buildCachedSnapshotCachePolicy$J(context, storeLookup) {
|
|
|
15563
15563
|
};
|
|
15564
15564
|
const cacheSnapshot = storeLookup(selector, {
|
|
15565
15565
|
config,
|
|
15566
|
-
resolve: () => buildNetworkSnapshot$
|
|
15566
|
+
resolve: () => buildNetworkSnapshot$10(luvio, config, snapshotRefreshOptions$2)
|
|
15567
15567
|
});
|
|
15568
15568
|
return cacheSnapshot;
|
|
15569
15569
|
}
|
|
@@ -15703,18 +15703,18 @@ function adapterFragment$B(luvio, config) {
|
|
|
15703
15703
|
function onFetchResponseSuccess$E(luvio, config, resourceParams, response) {
|
|
15704
15704
|
const snapshot = ingestSuccess$J(luvio, resourceParams, response, {
|
|
15705
15705
|
config,
|
|
15706
|
-
resolve: () => buildNetworkSnapshot
|
|
15706
|
+
resolve: () => buildNetworkSnapshot$$(luvio, config, snapshotRefreshOptions$2)
|
|
15707
15707
|
});
|
|
15708
15708
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15709
15709
|
}
|
|
15710
15710
|
function onFetchResponseError$F(luvio, config, resourceParams, response) {
|
|
15711
15711
|
const snapshot = ingestError$C(luvio, resourceParams, response, {
|
|
15712
15712
|
config,
|
|
15713
|
-
resolve: () => buildNetworkSnapshot
|
|
15713
|
+
resolve: () => buildNetworkSnapshot$$(luvio, config, snapshotRefreshOptions$2)
|
|
15714
15714
|
});
|
|
15715
15715
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15716
15716
|
}
|
|
15717
|
-
function buildNetworkSnapshot
|
|
15717
|
+
function buildNetworkSnapshot$$(luvio, config, options) {
|
|
15718
15718
|
const resourceParams = createResourceParams$S(config);
|
|
15719
15719
|
const request = createResourceRequest$Y(resourceParams);
|
|
15720
15720
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -15729,7 +15729,7 @@ function buildNetworkSnapshot$X(luvio, config, options) {
|
|
|
15729
15729
|
});
|
|
15730
15730
|
}
|
|
15731
15731
|
function buildNetworkSnapshotCachePolicy$J(context, coercedAdapterRequestContext) {
|
|
15732
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot
|
|
15732
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$$, undefined, false);
|
|
15733
15733
|
}
|
|
15734
15734
|
function buildCachedSnapshotCachePolicy$I(context, storeLookup) {
|
|
15735
15735
|
const { luvio, config } = context;
|
|
@@ -15740,7 +15740,7 @@ function buildCachedSnapshotCachePolicy$I(context, storeLookup) {
|
|
|
15740
15740
|
};
|
|
15741
15741
|
const cacheSnapshot = storeLookup(selector, {
|
|
15742
15742
|
config,
|
|
15743
|
-
resolve: () => buildNetworkSnapshot
|
|
15743
|
+
resolve: () => buildNetworkSnapshot$$(luvio, config, snapshotRefreshOptions$2)
|
|
15744
15744
|
});
|
|
15745
15745
|
return cacheSnapshot;
|
|
15746
15746
|
}
|
|
@@ -16309,18 +16309,18 @@ function adapterFragment$A(luvio, config) {
|
|
|
16309
16309
|
function onFetchResponseSuccess$D(luvio, config, resourceParams, response) {
|
|
16310
16310
|
const snapshot = ingestSuccess$I(luvio, resourceParams, response, {
|
|
16311
16311
|
config,
|
|
16312
|
-
resolve: () => buildNetworkSnapshot$
|
|
16312
|
+
resolve: () => buildNetworkSnapshot$_(luvio, config, snapshotRefreshOptions$2)
|
|
16313
16313
|
});
|
|
16314
16314
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
16315
16315
|
}
|
|
16316
16316
|
function onFetchResponseError$E(luvio, config, resourceParams, response) {
|
|
16317
16317
|
const snapshot = ingestError$B(luvio, resourceParams, response, {
|
|
16318
16318
|
config,
|
|
16319
|
-
resolve: () => buildNetworkSnapshot$
|
|
16319
|
+
resolve: () => buildNetworkSnapshot$_(luvio, config, snapshotRefreshOptions$2)
|
|
16320
16320
|
});
|
|
16321
16321
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
16322
16322
|
}
|
|
16323
|
-
function buildNetworkSnapshot$
|
|
16323
|
+
function buildNetworkSnapshot$_(luvio, config, options) {
|
|
16324
16324
|
const resourceParams = createResourceParams$R(config);
|
|
16325
16325
|
const request = createResourceRequest$X(resourceParams);
|
|
16326
16326
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -16335,7 +16335,7 @@ function buildNetworkSnapshot$W(luvio, config, options) {
|
|
|
16335
16335
|
});
|
|
16336
16336
|
}
|
|
16337
16337
|
function buildNetworkSnapshotCachePolicy$I(context, coercedAdapterRequestContext) {
|
|
16338
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
16338
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$_, undefined, false);
|
|
16339
16339
|
}
|
|
16340
16340
|
function buildCachedSnapshotCachePolicy$H(context, storeLookup) {
|
|
16341
16341
|
const { luvio, config } = context;
|
|
@@ -16346,7 +16346,7 @@ function buildCachedSnapshotCachePolicy$H(context, storeLookup) {
|
|
|
16346
16346
|
};
|
|
16347
16347
|
const cacheSnapshot = storeLookup(selector, {
|
|
16348
16348
|
config,
|
|
16349
|
-
resolve: () => buildNetworkSnapshot$
|
|
16349
|
+
resolve: () => buildNetworkSnapshot$_(luvio, config, snapshotRefreshOptions$2)
|
|
16350
16350
|
});
|
|
16351
16351
|
return cacheSnapshot;
|
|
16352
16352
|
}
|
|
@@ -16481,7 +16481,7 @@ function adapterFragment$z(luvio, config) {
|
|
|
16481
16481
|
const resourceParams = createResourceParams$Q(config);
|
|
16482
16482
|
return selectFields$6$1(luvio, resourceParams);
|
|
16483
16483
|
}
|
|
16484
|
-
function buildNetworkSnapshot$
|
|
16484
|
+
function buildNetworkSnapshot$Z(luvio, config, options) {
|
|
16485
16485
|
const resourceParams = createResourceParams$Q(config);
|
|
16486
16486
|
const request = createResourceRequest$W(resourceParams);
|
|
16487
16487
|
const key = keyBuilder$1w$2(luvio, config);
|
|
@@ -16549,18 +16549,18 @@ function buildCachedSnapshot$6$1(luvio, config) {
|
|
|
16549
16549
|
};
|
|
16550
16550
|
return luvio.storeLookup(selector, {
|
|
16551
16551
|
config,
|
|
16552
|
-
resolve: () => buildNetworkSnapshot$
|
|
16552
|
+
resolve: () => buildNetworkSnapshot$Z(luvio, config, snapshotRefreshOptions$2)
|
|
16553
16553
|
});
|
|
16554
16554
|
}
|
|
16555
16555
|
function onFetchResponseError$D(luvio, config, resourceParams, response) {
|
|
16556
16556
|
const snapshot = ingestError$A(luvio, resourceParams, response, {
|
|
16557
16557
|
config,
|
|
16558
|
-
resolve: () => buildNetworkSnapshot$
|
|
16558
|
+
resolve: () => buildNetworkSnapshot$Z(luvio, config, snapshotRefreshOptions$2)
|
|
16559
16559
|
});
|
|
16560
16560
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
16561
16561
|
}
|
|
16562
16562
|
function buildNetworkSnapshotCachePolicy$H(context, coercedAdapterRequestContext) {
|
|
16563
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
16563
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$Z, undefined, false);
|
|
16564
16564
|
}
|
|
16565
16565
|
function buildCachedSnapshotCachePolicy$G(context, storeLookup) {
|
|
16566
16566
|
const { luvio, config } = context;
|
|
@@ -16571,7 +16571,7 @@ function buildCachedSnapshotCachePolicy$G(context, storeLookup) {
|
|
|
16571
16571
|
};
|
|
16572
16572
|
const cacheSnapshot = storeLookup(selector, {
|
|
16573
16573
|
config,
|
|
16574
|
-
resolve: () => buildNetworkSnapshot$
|
|
16574
|
+
resolve: () => buildNetworkSnapshot$Z(luvio, config, snapshotRefreshOptions$2)
|
|
16575
16575
|
});
|
|
16576
16576
|
return cacheSnapshot;
|
|
16577
16577
|
}
|
|
@@ -16674,18 +16674,18 @@ function adapterFragment$y(luvio, config) {
|
|
|
16674
16674
|
function onFetchResponseSuccess$C(luvio, config, resourceParams, response) {
|
|
16675
16675
|
const snapshot = ingestSuccess$H(luvio, resourceParams, response, {
|
|
16676
16676
|
config,
|
|
16677
|
-
resolve: () => buildNetworkSnapshot$
|
|
16677
|
+
resolve: () => buildNetworkSnapshot$Y(luvio, config, snapshotRefreshOptions$2)
|
|
16678
16678
|
});
|
|
16679
16679
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
16680
16680
|
}
|
|
16681
16681
|
function onFetchResponseError$C(luvio, config, resourceParams, response) {
|
|
16682
16682
|
const snapshot = ingestError$z(luvio, resourceParams, response, {
|
|
16683
16683
|
config,
|
|
16684
|
-
resolve: () => buildNetworkSnapshot$
|
|
16684
|
+
resolve: () => buildNetworkSnapshot$Y(luvio, config, snapshotRefreshOptions$2)
|
|
16685
16685
|
});
|
|
16686
16686
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
16687
16687
|
}
|
|
16688
|
-
function buildNetworkSnapshot$
|
|
16688
|
+
function buildNetworkSnapshot$Y(luvio, config, options) {
|
|
16689
16689
|
const resourceParams = createResourceParams$P(config);
|
|
16690
16690
|
const request = createResourceRequest$V(resourceParams);
|
|
16691
16691
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -16700,7 +16700,7 @@ function buildNetworkSnapshot$U(luvio, config, options) {
|
|
|
16700
16700
|
});
|
|
16701
16701
|
}
|
|
16702
16702
|
function buildNetworkSnapshotCachePolicy$G(context, coercedAdapterRequestContext) {
|
|
16703
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
16703
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$Y, undefined, false);
|
|
16704
16704
|
}
|
|
16705
16705
|
function buildCachedSnapshotCachePolicy$F(context, storeLookup) {
|
|
16706
16706
|
const { luvio, config } = context;
|
|
@@ -16711,7 +16711,7 @@ function buildCachedSnapshotCachePolicy$F(context, storeLookup) {
|
|
|
16711
16711
|
};
|
|
16712
16712
|
const cacheSnapshot = storeLookup(selector, {
|
|
16713
16713
|
config,
|
|
16714
|
-
resolve: () => buildNetworkSnapshot$
|
|
16714
|
+
resolve: () => buildNetworkSnapshot$Y(luvio, config, snapshotRefreshOptions$2)
|
|
16715
16715
|
});
|
|
16716
16716
|
return cacheSnapshot;
|
|
16717
16717
|
}
|
|
@@ -16808,18 +16808,18 @@ function adapterFragment$x(luvio, config) {
|
|
|
16808
16808
|
function onFetchResponseSuccess$B(luvio, config, resourceParams, response) {
|
|
16809
16809
|
const snapshot = ingestSuccess$G(luvio, resourceParams, response, {
|
|
16810
16810
|
config,
|
|
16811
|
-
resolve: () => buildNetworkSnapshot$
|
|
16811
|
+
resolve: () => buildNetworkSnapshot$X(luvio, config, snapshotRefreshOptions$2)
|
|
16812
16812
|
});
|
|
16813
16813
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
16814
16814
|
}
|
|
16815
16815
|
function onFetchResponseError$B(luvio, config, resourceParams, response) {
|
|
16816
16816
|
const snapshot = ingestError$y(luvio, resourceParams, response, {
|
|
16817
16817
|
config,
|
|
16818
|
-
resolve: () => buildNetworkSnapshot$
|
|
16818
|
+
resolve: () => buildNetworkSnapshot$X(luvio, config, snapshotRefreshOptions$2)
|
|
16819
16819
|
});
|
|
16820
16820
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
16821
16821
|
}
|
|
16822
|
-
function buildNetworkSnapshot$
|
|
16822
|
+
function buildNetworkSnapshot$X(luvio, config, options) {
|
|
16823
16823
|
const resourceParams = createResourceParams$O(config);
|
|
16824
16824
|
const request = createResourceRequest$U(resourceParams);
|
|
16825
16825
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -16834,7 +16834,7 @@ function buildNetworkSnapshot$T(luvio, config, options) {
|
|
|
16834
16834
|
});
|
|
16835
16835
|
}
|
|
16836
16836
|
function buildNetworkSnapshotCachePolicy$F(context, coercedAdapterRequestContext) {
|
|
16837
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
16837
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$X, undefined, false);
|
|
16838
16838
|
}
|
|
16839
16839
|
function buildCachedSnapshotCachePolicy$E(context, storeLookup) {
|
|
16840
16840
|
const { luvio, config } = context;
|
|
@@ -16845,7 +16845,7 @@ function buildCachedSnapshotCachePolicy$E(context, storeLookup) {
|
|
|
16845
16845
|
};
|
|
16846
16846
|
const cacheSnapshot = storeLookup(selector, {
|
|
16847
16847
|
config,
|
|
16848
|
-
resolve: () => buildNetworkSnapshot$
|
|
16848
|
+
resolve: () => buildNetworkSnapshot$X(luvio, config, snapshotRefreshOptions$2)
|
|
16849
16849
|
});
|
|
16850
16850
|
return cacheSnapshot;
|
|
16851
16851
|
}
|
|
@@ -17297,18 +17297,18 @@ function adapterFragment$w(luvio, config) {
|
|
|
17297
17297
|
function onFetchResponseSuccess$A(luvio, config, resourceParams, response) {
|
|
17298
17298
|
const snapshot = ingestSuccess$E(luvio, resourceParams, response, {
|
|
17299
17299
|
config,
|
|
17300
|
-
resolve: () => buildNetworkSnapshot$
|
|
17300
|
+
resolve: () => buildNetworkSnapshot$W(luvio, config, snapshotRefreshOptions$2)
|
|
17301
17301
|
});
|
|
17302
17302
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
17303
17303
|
}
|
|
17304
17304
|
function onFetchResponseError$A(luvio, config, resourceParams, response) {
|
|
17305
17305
|
const snapshot = ingestError$w(luvio, resourceParams, response, {
|
|
17306
17306
|
config,
|
|
17307
|
-
resolve: () => buildNetworkSnapshot$
|
|
17307
|
+
resolve: () => buildNetworkSnapshot$W(luvio, config, snapshotRefreshOptions$2)
|
|
17308
17308
|
});
|
|
17309
17309
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
17310
17310
|
}
|
|
17311
|
-
function buildNetworkSnapshot$
|
|
17311
|
+
function buildNetworkSnapshot$W(luvio, config, options) {
|
|
17312
17312
|
const resourceParams = createResourceParams$N(config);
|
|
17313
17313
|
const request = createResourceRequest$S(resourceParams);
|
|
17314
17314
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -17323,7 +17323,7 @@ function buildNetworkSnapshot$S(luvio, config, options) {
|
|
|
17323
17323
|
});
|
|
17324
17324
|
}
|
|
17325
17325
|
function buildNetworkSnapshotCachePolicy$E(context, coercedAdapterRequestContext) {
|
|
17326
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
17326
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$W, 'get', false);
|
|
17327
17327
|
}
|
|
17328
17328
|
function buildCachedSnapshotCachePolicy$D(context, storeLookup) {
|
|
17329
17329
|
const { luvio, config } = context;
|
|
@@ -17334,7 +17334,7 @@ function buildCachedSnapshotCachePolicy$D(context, storeLookup) {
|
|
|
17334
17334
|
};
|
|
17335
17335
|
const cacheSnapshot = storeLookup(selector, {
|
|
17336
17336
|
config,
|
|
17337
|
-
resolve: () => buildNetworkSnapshot$
|
|
17337
|
+
resolve: () => buildNetworkSnapshot$W(luvio, config, snapshotRefreshOptions$2)
|
|
17338
17338
|
});
|
|
17339
17339
|
return cacheSnapshot;
|
|
17340
17340
|
}
|
|
@@ -17387,18 +17387,18 @@ function adapterFragment$v(luvio, config) {
|
|
|
17387
17387
|
function onFetchResponseSuccess$z(luvio, config, resourceParams, response) {
|
|
17388
17388
|
const snapshot = ingestSuccess$F(luvio, resourceParams, response, {
|
|
17389
17389
|
config,
|
|
17390
|
-
resolve: () => buildNetworkSnapshot$
|
|
17390
|
+
resolve: () => buildNetworkSnapshot$V(luvio, config, snapshotRefreshOptions$2)
|
|
17391
17391
|
});
|
|
17392
17392
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
17393
17393
|
}
|
|
17394
17394
|
function onFetchResponseError$z(luvio, config, resourceParams, response) {
|
|
17395
17395
|
const snapshot = ingestError$x(luvio, resourceParams, response, {
|
|
17396
17396
|
config,
|
|
17397
|
-
resolve: () => buildNetworkSnapshot$
|
|
17397
|
+
resolve: () => buildNetworkSnapshot$V(luvio, config, snapshotRefreshOptions$2)
|
|
17398
17398
|
});
|
|
17399
17399
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
17400
17400
|
}
|
|
17401
|
-
function buildNetworkSnapshot$
|
|
17401
|
+
function buildNetworkSnapshot$V(luvio, config, options) {
|
|
17402
17402
|
const resourceParams = createResourceParams$M(config);
|
|
17403
17403
|
const request = createResourceRequest$T(resourceParams);
|
|
17404
17404
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -17413,7 +17413,7 @@ function buildNetworkSnapshot$R(luvio, config, options) {
|
|
|
17413
17413
|
});
|
|
17414
17414
|
}
|
|
17415
17415
|
function buildNetworkSnapshotCachePolicy$D(context, coercedAdapterRequestContext) {
|
|
17416
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
17416
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$V, 'get', false);
|
|
17417
17417
|
}
|
|
17418
17418
|
function buildCachedSnapshotCachePolicy$C(context, storeLookup) {
|
|
17419
17419
|
const { luvio, config } = context;
|
|
@@ -17424,7 +17424,7 @@ function buildCachedSnapshotCachePolicy$C(context, storeLookup) {
|
|
|
17424
17424
|
};
|
|
17425
17425
|
const cacheSnapshot = storeLookup(selector, {
|
|
17426
17426
|
config,
|
|
17427
|
-
resolve: () => buildNetworkSnapshot$
|
|
17427
|
+
resolve: () => buildNetworkSnapshot$V(luvio, config, snapshotRefreshOptions$2)
|
|
17428
17428
|
});
|
|
17429
17429
|
return cacheSnapshot;
|
|
17430
17430
|
}
|
|
@@ -17522,18 +17522,18 @@ function adapterFragment$u(luvio, config) {
|
|
|
17522
17522
|
function onFetchResponseSuccess$y(luvio, config, resourceParams, response) {
|
|
17523
17523
|
const snapshot = ingestSuccess$D(luvio, resourceParams, response, {
|
|
17524
17524
|
config,
|
|
17525
|
-
resolve: () => buildNetworkSnapshot$
|
|
17525
|
+
resolve: () => buildNetworkSnapshot$U(luvio, config, snapshotRefreshOptions$2)
|
|
17526
17526
|
});
|
|
17527
17527
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
17528
17528
|
}
|
|
17529
17529
|
function onFetchResponseError$y(luvio, config, resourceParams, response) {
|
|
17530
17530
|
const snapshot = ingestError$v(luvio, resourceParams, response, {
|
|
17531
17531
|
config,
|
|
17532
|
-
resolve: () => buildNetworkSnapshot$
|
|
17532
|
+
resolve: () => buildNetworkSnapshot$U(luvio, config, snapshotRefreshOptions$2)
|
|
17533
17533
|
});
|
|
17534
17534
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
17535
17535
|
}
|
|
17536
|
-
function buildNetworkSnapshot$
|
|
17536
|
+
function buildNetworkSnapshot$U(luvio, config, options) {
|
|
17537
17537
|
const resourceParams = createResourceParams$L(config);
|
|
17538
17538
|
const request = createResourceRequest$R(resourceParams);
|
|
17539
17539
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -17548,7 +17548,7 @@ function buildNetworkSnapshot$Q(luvio, config, options) {
|
|
|
17548
17548
|
});
|
|
17549
17549
|
}
|
|
17550
17550
|
function buildNetworkSnapshotCachePolicy$C(context, coercedAdapterRequestContext) {
|
|
17551
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
17551
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$U, undefined, false);
|
|
17552
17552
|
}
|
|
17553
17553
|
function buildCachedSnapshotCachePolicy$B(context, storeLookup) {
|
|
17554
17554
|
const { luvio, config } = context;
|
|
@@ -17559,7 +17559,7 @@ function buildCachedSnapshotCachePolicy$B(context, storeLookup) {
|
|
|
17559
17559
|
};
|
|
17560
17560
|
const cacheSnapshot = storeLookup(selector, {
|
|
17561
17561
|
config,
|
|
17562
|
-
resolve: () => buildNetworkSnapshot$
|
|
17562
|
+
resolve: () => buildNetworkSnapshot$U(luvio, config, snapshotRefreshOptions$2)
|
|
17563
17563
|
});
|
|
17564
17564
|
return cacheSnapshot;
|
|
17565
17565
|
}
|
|
@@ -18240,18 +18240,18 @@ function adapterFragment$t(luvio, config) {
|
|
|
18240
18240
|
function onFetchResponseSuccess$x(luvio, config, resourceParams, response) {
|
|
18241
18241
|
const snapshot = ingestSuccess$C(luvio, resourceParams, response, {
|
|
18242
18242
|
config,
|
|
18243
|
-
resolve: () => buildNetworkSnapshot$
|
|
18243
|
+
resolve: () => buildNetworkSnapshot$T(luvio, config, snapshotRefreshOptions$2)
|
|
18244
18244
|
});
|
|
18245
18245
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18246
18246
|
}
|
|
18247
18247
|
function onFetchResponseError$x(luvio, config, resourceParams, response) {
|
|
18248
18248
|
const snapshot = ingestError$u(luvio, resourceParams, response, {
|
|
18249
18249
|
config,
|
|
18250
|
-
resolve: () => buildNetworkSnapshot$
|
|
18250
|
+
resolve: () => buildNetworkSnapshot$T(luvio, config, snapshotRefreshOptions$2)
|
|
18251
18251
|
});
|
|
18252
18252
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18253
18253
|
}
|
|
18254
|
-
function buildNetworkSnapshot$
|
|
18254
|
+
function buildNetworkSnapshot$T(luvio, config, options) {
|
|
18255
18255
|
const resourceParams = createResourceParams$K(config);
|
|
18256
18256
|
const request = createResourceRequest$Q(resourceParams);
|
|
18257
18257
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -18266,7 +18266,7 @@ function buildNetworkSnapshot$P(luvio, config, options) {
|
|
|
18266
18266
|
});
|
|
18267
18267
|
}
|
|
18268
18268
|
function buildNetworkSnapshotCachePolicy$B(context, coercedAdapterRequestContext) {
|
|
18269
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
18269
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$T, undefined, false);
|
|
18270
18270
|
}
|
|
18271
18271
|
function buildCachedSnapshotCachePolicy$A(context, storeLookup) {
|
|
18272
18272
|
const { luvio, config } = context;
|
|
@@ -18277,7 +18277,7 @@ function buildCachedSnapshotCachePolicy$A(context, storeLookup) {
|
|
|
18277
18277
|
};
|
|
18278
18278
|
const cacheSnapshot = storeLookup(selector, {
|
|
18279
18279
|
config,
|
|
18280
|
-
resolve: () => buildNetworkSnapshot$
|
|
18280
|
+
resolve: () => buildNetworkSnapshot$T(luvio, config, snapshotRefreshOptions$2)
|
|
18281
18281
|
});
|
|
18282
18282
|
return cacheSnapshot;
|
|
18283
18283
|
}
|
|
@@ -18375,18 +18375,18 @@ function adapterFragment$s(luvio, config) {
|
|
|
18375
18375
|
function onFetchResponseSuccess$w(luvio, config, resourceParams, response) {
|
|
18376
18376
|
const snapshot = ingestSuccess$B(luvio, resourceParams, response, {
|
|
18377
18377
|
config,
|
|
18378
|
-
resolve: () => buildNetworkSnapshot$
|
|
18378
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions$2)
|
|
18379
18379
|
});
|
|
18380
18380
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18381
18381
|
}
|
|
18382
18382
|
function onFetchResponseError$w(luvio, config, resourceParams, response) {
|
|
18383
18383
|
const snapshot = ingestError$t(luvio, resourceParams, response, {
|
|
18384
18384
|
config,
|
|
18385
|
-
resolve: () => buildNetworkSnapshot$
|
|
18385
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions$2)
|
|
18386
18386
|
});
|
|
18387
18387
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18388
18388
|
}
|
|
18389
|
-
function buildNetworkSnapshot$
|
|
18389
|
+
function buildNetworkSnapshot$S(luvio, config, options) {
|
|
18390
18390
|
const resourceParams = createResourceParams$J(config);
|
|
18391
18391
|
const request = createResourceRequest$P(resourceParams);
|
|
18392
18392
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -18401,7 +18401,7 @@ function buildNetworkSnapshot$O(luvio, config, options) {
|
|
|
18401
18401
|
});
|
|
18402
18402
|
}
|
|
18403
18403
|
function buildNetworkSnapshotCachePolicy$A(context, coercedAdapterRequestContext) {
|
|
18404
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
18404
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$S, undefined, false);
|
|
18405
18405
|
}
|
|
18406
18406
|
function buildCachedSnapshotCachePolicy$z(context, storeLookup) {
|
|
18407
18407
|
const { luvio, config } = context;
|
|
@@ -18412,7 +18412,7 @@ function buildCachedSnapshotCachePolicy$z(context, storeLookup) {
|
|
|
18412
18412
|
};
|
|
18413
18413
|
const cacheSnapshot = storeLookup(selector, {
|
|
18414
18414
|
config,
|
|
18415
|
-
resolve: () => buildNetworkSnapshot$
|
|
18415
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions$2)
|
|
18416
18416
|
});
|
|
18417
18417
|
return cacheSnapshot;
|
|
18418
18418
|
}
|
|
@@ -18709,18 +18709,18 @@ function adapterFragment$r(luvio, config) {
|
|
|
18709
18709
|
function onFetchResponseSuccess$v(luvio, config, resourceParams, response) {
|
|
18710
18710
|
const snapshot = ingestSuccess$A(luvio, resourceParams, response, {
|
|
18711
18711
|
config,
|
|
18712
|
-
resolve: () => buildNetworkSnapshot$
|
|
18712
|
+
resolve: () => buildNetworkSnapshot$R(luvio, config, snapshotRefreshOptions$2)
|
|
18713
18713
|
});
|
|
18714
18714
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18715
18715
|
}
|
|
18716
18716
|
function onFetchResponseError$v(luvio, config, resourceParams, response) {
|
|
18717
18717
|
const snapshot = ingestError$s(luvio, resourceParams, response, {
|
|
18718
18718
|
config,
|
|
18719
|
-
resolve: () => buildNetworkSnapshot$
|
|
18719
|
+
resolve: () => buildNetworkSnapshot$R(luvio, config, snapshotRefreshOptions$2)
|
|
18720
18720
|
});
|
|
18721
18721
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18722
18722
|
}
|
|
18723
|
-
function buildNetworkSnapshot$
|
|
18723
|
+
function buildNetworkSnapshot$R(luvio, config, options) {
|
|
18724
18724
|
const resourceParams = createResourceParams$I(config);
|
|
18725
18725
|
const request = createResourceRequest$O(resourceParams);
|
|
18726
18726
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -18735,7 +18735,7 @@ function buildNetworkSnapshot$N(luvio, config, options) {
|
|
|
18735
18735
|
});
|
|
18736
18736
|
}
|
|
18737
18737
|
function buildNetworkSnapshotCachePolicy$z(context, coercedAdapterRequestContext) {
|
|
18738
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
18738
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$R, undefined, false);
|
|
18739
18739
|
}
|
|
18740
18740
|
function buildCachedSnapshotCachePolicy$y(context, storeLookup) {
|
|
18741
18741
|
const { luvio, config } = context;
|
|
@@ -18746,7 +18746,7 @@ function buildCachedSnapshotCachePolicy$y(context, storeLookup) {
|
|
|
18746
18746
|
};
|
|
18747
18747
|
const cacheSnapshot = storeLookup(selector, {
|
|
18748
18748
|
config,
|
|
18749
|
-
resolve: () => buildNetworkSnapshot$
|
|
18749
|
+
resolve: () => buildNetworkSnapshot$R(luvio, config, snapshotRefreshOptions$2)
|
|
18750
18750
|
});
|
|
18751
18751
|
return cacheSnapshot;
|
|
18752
18752
|
}
|
|
@@ -18822,7 +18822,7 @@ function onFetchResponseSuccess$u(luvio, config, resourceParams, response) {
|
|
|
18822
18822
|
variables: {},
|
|
18823
18823
|
}, {
|
|
18824
18824
|
config,
|
|
18825
|
-
resolve: () => buildNetworkSnapshot$
|
|
18825
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions$2),
|
|
18826
18826
|
});
|
|
18827
18827
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18828
18828
|
}
|
|
@@ -18869,7 +18869,7 @@ function buildCachedSnapshotCachePolicy$x(context, storeLookup) {
|
|
|
18869
18869
|
};
|
|
18870
18870
|
return storeLookup(selector, {
|
|
18871
18871
|
config,
|
|
18872
|
-
resolve: () => buildNetworkSnapshot$
|
|
18872
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions$2),
|
|
18873
18873
|
});
|
|
18874
18874
|
}
|
|
18875
18875
|
|
|
@@ -18901,11 +18901,11 @@ function validateAdapterConfig$M(untrustedConfig, configPropertyNames) {
|
|
|
18901
18901
|
function onFetchResponseError$u(luvio, config, resourceParams, response) {
|
|
18902
18902
|
const snapshot = ingestError$r(luvio, resourceParams, response, {
|
|
18903
18903
|
config,
|
|
18904
|
-
resolve: () => buildNetworkSnapshot$
|
|
18904
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions$2)
|
|
18905
18905
|
});
|
|
18906
18906
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18907
18907
|
}
|
|
18908
|
-
function buildNetworkSnapshot$
|
|
18908
|
+
function buildNetworkSnapshot$Q(luvio, config, options) {
|
|
18909
18909
|
const resourceParams = createResourceParams$H(config);
|
|
18910
18910
|
const request = createResourceRequest$N(resourceParams);
|
|
18911
18911
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -18920,7 +18920,7 @@ function buildNetworkSnapshot$M(luvio, config, options) {
|
|
|
18920
18920
|
});
|
|
18921
18921
|
}
|
|
18922
18922
|
function buildNetworkSnapshotCachePolicy$y(context, coercedAdapterRequestContext) {
|
|
18923
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
18923
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$Q, undefined, false);
|
|
18924
18924
|
}
|
|
18925
18925
|
const getLayoutAdapterFactory = (luvio) => function UiApi__getLayout(untrustedConfig, requestContext) {
|
|
18926
18926
|
const config = validateAdapterConfig$N(untrustedConfig);
|
|
@@ -18964,11 +18964,11 @@ function buildCachedSnapshot$5$1(luvio, config) {
|
|
|
18964
18964
|
};
|
|
18965
18965
|
return luvio.storeLookup(selector, {
|
|
18966
18966
|
config,
|
|
18967
|
-
resolve: () => buildNetworkSnapshot$
|
|
18967
|
+
resolve: () => buildNetworkSnapshot$P(luvio, config),
|
|
18968
18968
|
});
|
|
18969
18969
|
}
|
|
18970
18970
|
|
|
18971
|
-
function buildNetworkSnapshot$
|
|
18971
|
+
function buildNetworkSnapshot$P(luvio, config, context) {
|
|
18972
18972
|
const { resourceParams, request, key } = prepareRequest$4$1(luvio, config);
|
|
18973
18973
|
return luvio
|
|
18974
18974
|
.dispatchResourceRequest(request, context)
|
|
@@ -18999,7 +18999,7 @@ function onFetchResponseSuccess$t(luvio, config, key, response) {
|
|
|
18999
18999
|
function onFetchResponseError$t(luvio, config, key, error) {
|
|
19000
19000
|
const errorSnapshot = luvio.errorSnapshot(error, {
|
|
19001
19001
|
config,
|
|
19002
|
-
resolve: () => buildNetworkSnapshot$
|
|
19002
|
+
resolve: () => buildNetworkSnapshot$P(luvio, config),
|
|
19003
19003
|
});
|
|
19004
19004
|
luvio.storeIngestError(key, errorSnapshot);
|
|
19005
19005
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
@@ -19082,7 +19082,7 @@ function buildCachedSnapshotCachePolicy$w(context, storeLookup) {
|
|
|
19082
19082
|
};
|
|
19083
19083
|
return storeLookup(selector, {
|
|
19084
19084
|
config,
|
|
19085
|
-
resolve: () => buildNetworkSnapshot$
|
|
19085
|
+
resolve: () => buildNetworkSnapshot$P(luvio, config),
|
|
19086
19086
|
});
|
|
19087
19087
|
}
|
|
19088
19088
|
|
|
@@ -19111,7 +19111,7 @@ function validateAdapterConfig$K(untrustedConfig, configPropertyNames) {
|
|
|
19111
19111
|
return config;
|
|
19112
19112
|
}
|
|
19113
19113
|
function buildNetworkSnapshotCachePolicy$x(context, coercedAdapterRequestContext) {
|
|
19114
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
19114
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$P, undefined, false);
|
|
19115
19115
|
}
|
|
19116
19116
|
const getLayoutUserStateAdapterFactory = (luvio) => function UiApi__getLayoutUserState(untrustedConfig, requestContext) {
|
|
19117
19117
|
const config = validateAdapterConfig$L(untrustedConfig, getLayoutUserState_ConfigPropertyNames);
|
|
@@ -19467,18 +19467,18 @@ function adapterFragment$q(luvio, config) {
|
|
|
19467
19467
|
function onFetchResponseSuccess$s(luvio, config, resourceParams, response) {
|
|
19468
19468
|
const snapshot = ingestSuccess$y(luvio, resourceParams, response, {
|
|
19469
19469
|
config,
|
|
19470
|
-
resolve: () => buildNetworkSnapshot$
|
|
19470
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions$2)
|
|
19471
19471
|
});
|
|
19472
19472
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
19473
19473
|
}
|
|
19474
19474
|
function onFetchResponseError$s(luvio, config, resourceParams, response) {
|
|
19475
19475
|
const snapshot = ingestError$p(luvio, resourceParams, response, {
|
|
19476
19476
|
config,
|
|
19477
|
-
resolve: () => buildNetworkSnapshot$
|
|
19477
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions$2)
|
|
19478
19478
|
});
|
|
19479
19479
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
19480
19480
|
}
|
|
19481
|
-
function buildNetworkSnapshot$
|
|
19481
|
+
function buildNetworkSnapshot$O(luvio, config, options) {
|
|
19482
19482
|
const resourceParams = createResourceParams$G(config);
|
|
19483
19483
|
const request = createResourceRequest$K(resourceParams);
|
|
19484
19484
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -19493,7 +19493,7 @@ function buildNetworkSnapshot$K(luvio, config, options) {
|
|
|
19493
19493
|
});
|
|
19494
19494
|
}
|
|
19495
19495
|
function buildNetworkSnapshotCachePolicy$w(context, coercedAdapterRequestContext) {
|
|
19496
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
19496
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$O, undefined, false);
|
|
19497
19497
|
}
|
|
19498
19498
|
function buildCachedSnapshotCachePolicy$v(context, storeLookup) {
|
|
19499
19499
|
const { luvio, config } = context;
|
|
@@ -19504,7 +19504,7 @@ function buildCachedSnapshotCachePolicy$v(context, storeLookup) {
|
|
|
19504
19504
|
};
|
|
19505
19505
|
const cacheSnapshot = storeLookup(selector, {
|
|
19506
19506
|
config,
|
|
19507
|
-
resolve: () => buildNetworkSnapshot$
|
|
19507
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions$2)
|
|
19508
19508
|
});
|
|
19509
19509
|
return cacheSnapshot;
|
|
19510
19510
|
}
|
|
@@ -19607,14 +19607,14 @@ function adapterFragment$p(luvio, config) {
|
|
|
19607
19607
|
function onFetchResponseSuccess$r(luvio, config, resourceParams, response) {
|
|
19608
19608
|
const snapshot = ingestSuccess$x(luvio, resourceParams, response, {
|
|
19609
19609
|
config,
|
|
19610
|
-
resolve: () => buildNetworkSnapshot$
|
|
19610
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions$2)
|
|
19611
19611
|
});
|
|
19612
19612
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
19613
19613
|
}
|
|
19614
19614
|
function onFetchResponseError$r(luvio, config, resourceParams, response) {
|
|
19615
19615
|
const snapshot = ingestError$o(luvio, resourceParams, response, {
|
|
19616
19616
|
config,
|
|
19617
|
-
resolve: () => buildNetworkSnapshot$
|
|
19617
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions$2)
|
|
19618
19618
|
});
|
|
19619
19619
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
19620
19620
|
}
|
|
@@ -19693,7 +19693,7 @@ function getPaginationMetadata$2$1(luvio, resourceParams) {
|
|
|
19693
19693
|
}
|
|
19694
19694
|
return node.data.__metadata;
|
|
19695
19695
|
}
|
|
19696
|
-
function buildNetworkSnapshot$
|
|
19696
|
+
function buildNetworkSnapshot$N(luvio, config, options, cacheSnapshot) {
|
|
19697
19697
|
const resourceParams = createResourceParams$F(config);
|
|
19698
19698
|
const request = prepareRequest$3$1(luvio, config, resourceParams, cacheSnapshot);
|
|
19699
19699
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -19708,7 +19708,7 @@ function buildNetworkSnapshot$J(luvio, config, options, cacheSnapshot) {
|
|
|
19708
19708
|
});
|
|
19709
19709
|
}
|
|
19710
19710
|
function buildNetworkSnapshotCachePolicy$v(context, coercedAdapterRequestContext) {
|
|
19711
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
19711
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$N, undefined, true);
|
|
19712
19712
|
}
|
|
19713
19713
|
function buildCachedSnapshotCachePolicy$u(context, storeLookup) {
|
|
19714
19714
|
const { luvio, config } = context;
|
|
@@ -19719,7 +19719,7 @@ function buildCachedSnapshotCachePolicy$u(context, storeLookup) {
|
|
|
19719
19719
|
};
|
|
19720
19720
|
const cacheSnapshot = storeLookup(selector, {
|
|
19721
19721
|
config,
|
|
19722
|
-
resolve: () => buildNetworkSnapshot$
|
|
19722
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions$2)
|
|
19723
19723
|
});
|
|
19724
19724
|
if (isUnfulfilledSnapshot$1$1(cacheSnapshot) && cacheSnapshot.data !== undefined) {
|
|
19725
19725
|
context.cacheSnapshot = cacheSnapshot;
|
|
@@ -19917,7 +19917,7 @@ function validateAdapterConfig$H(untrustedConfig, configPropertyNames) {
|
|
|
19917
19917
|
}
|
|
19918
19918
|
return config;
|
|
19919
19919
|
}
|
|
19920
|
-
function buildNetworkSnapshot$
|
|
19920
|
+
function buildNetworkSnapshot$M(luvio, config, options) {
|
|
19921
19921
|
const resourceParams = createResourceParams$E(config);
|
|
19922
19922
|
const request = createResourceRequest$I(resourceParams);
|
|
19923
19923
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -19942,7 +19942,7 @@ const createListInfoAdapterFactory = (luvio) => {
|
|
|
19942
19942
|
if (config === null) {
|
|
19943
19943
|
throw new Error('Invalid config for "createListInfo"');
|
|
19944
19944
|
}
|
|
19945
|
-
return buildNetworkSnapshot$
|
|
19945
|
+
return buildNetworkSnapshot$M(luvio, config);
|
|
19946
19946
|
};
|
|
19947
19947
|
};
|
|
19948
19948
|
|
|
@@ -20001,7 +20001,7 @@ function validateAdapterConfig$G(untrustedConfig, configPropertyNames) {
|
|
|
20001
20001
|
}
|
|
20002
20002
|
return config;
|
|
20003
20003
|
}
|
|
20004
|
-
function buildNetworkSnapshot$
|
|
20004
|
+
function buildNetworkSnapshot$L(luvio, config, options) {
|
|
20005
20005
|
const resourceParams = createResourceParams$D(config);
|
|
20006
20006
|
const request = createResourceRequest$H(resourceParams);
|
|
20007
20007
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -20026,7 +20026,7 @@ const deleteListInfoAdapterFactory = (luvio) => {
|
|
|
20026
20026
|
if (config === null) {
|
|
20027
20027
|
throw new Error(`Invalid config for "${adapterName$C}"`);
|
|
20028
20028
|
}
|
|
20029
|
-
return buildNetworkSnapshot$
|
|
20029
|
+
return buildNetworkSnapshot$L(luvio, config);
|
|
20030
20030
|
};
|
|
20031
20031
|
};
|
|
20032
20032
|
|
|
@@ -20063,18 +20063,18 @@ function adapterFragment$o(luvio, config) {
|
|
|
20063
20063
|
function onFetchResponseSuccess$q(luvio, config, resourceParams, response) {
|
|
20064
20064
|
const snapshot = ingestSuccess$z(luvio, resourceParams, response, {
|
|
20065
20065
|
config,
|
|
20066
|
-
resolve: () => buildNetworkSnapshot$
|
|
20066
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions$2)
|
|
20067
20067
|
});
|
|
20068
20068
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
20069
20069
|
}
|
|
20070
20070
|
function onFetchResponseError$q(luvio, config, resourceParams, response) {
|
|
20071
20071
|
const snapshot = ingestError$q(luvio, resourceParams, response, {
|
|
20072
20072
|
config,
|
|
20073
|
-
resolve: () => buildNetworkSnapshot$
|
|
20073
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions$2)
|
|
20074
20074
|
});
|
|
20075
20075
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
20076
20076
|
}
|
|
20077
|
-
function buildNetworkSnapshot$
|
|
20077
|
+
function buildNetworkSnapshot$K(luvio, config, options) {
|
|
20078
20078
|
const resourceParams = createResourceParams$C(config);
|
|
20079
20079
|
const request = createResourceRequest$L(resourceParams);
|
|
20080
20080
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -20089,7 +20089,7 @@ function buildNetworkSnapshot$G(luvio, config, options) {
|
|
|
20089
20089
|
});
|
|
20090
20090
|
}
|
|
20091
20091
|
function buildNetworkSnapshotCachePolicy$u(context, coercedAdapterRequestContext) {
|
|
20092
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
20092
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$K, undefined, false);
|
|
20093
20093
|
}
|
|
20094
20094
|
function buildCachedSnapshotCachePolicy$t(context, storeLookup) {
|
|
20095
20095
|
const { luvio, config } = context;
|
|
@@ -20100,7 +20100,7 @@ function buildCachedSnapshotCachePolicy$t(context, storeLookup) {
|
|
|
20100
20100
|
};
|
|
20101
20101
|
const cacheSnapshot = storeLookup(selector, {
|
|
20102
20102
|
config,
|
|
20103
|
-
resolve: () => buildNetworkSnapshot$
|
|
20103
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions$2)
|
|
20104
20104
|
});
|
|
20105
20105
|
return cacheSnapshot;
|
|
20106
20106
|
}
|
|
@@ -20193,7 +20193,7 @@ function validateAdapterConfig$E(untrustedConfig, configPropertyNames) {
|
|
|
20193
20193
|
}
|
|
20194
20194
|
return config;
|
|
20195
20195
|
}
|
|
20196
|
-
function buildNetworkSnapshot$
|
|
20196
|
+
function buildNetworkSnapshot$J(luvio, config, options) {
|
|
20197
20197
|
const resourceParams = createResourceParams$B(config);
|
|
20198
20198
|
const request = createResourceRequest$G(resourceParams);
|
|
20199
20199
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -20218,7 +20218,7 @@ const updateListInfoByNameAdapterFactory = (luvio) => {
|
|
|
20218
20218
|
if (config === null) {
|
|
20219
20219
|
throw new Error('Invalid config for "updateListInfoByName"');
|
|
20220
20220
|
}
|
|
20221
|
-
return buildNetworkSnapshot$
|
|
20221
|
+
return buildNetworkSnapshot$J(luvio, config);
|
|
20222
20222
|
};
|
|
20223
20223
|
};
|
|
20224
20224
|
|
|
@@ -20742,18 +20742,18 @@ function adapterFragment$n(luvio, config) {
|
|
|
20742
20742
|
function onFetchResponseSuccess$p(luvio, config, resourceParams, response) {
|
|
20743
20743
|
const snapshot = ingestSuccess$u(luvio, resourceParams, response, {
|
|
20744
20744
|
config,
|
|
20745
|
-
resolve: () => buildNetworkSnapshot$
|
|
20745
|
+
resolve: () => buildNetworkSnapshot$I(luvio, config, snapshotRefreshOptions$2)
|
|
20746
20746
|
});
|
|
20747
20747
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
20748
20748
|
}
|
|
20749
20749
|
function onFetchResponseError$p(luvio, config, resourceParams, response) {
|
|
20750
20750
|
const snapshot = ingestError$n(luvio, resourceParams, response, {
|
|
20751
20751
|
config,
|
|
20752
|
-
resolve: () => buildNetworkSnapshot$
|
|
20752
|
+
resolve: () => buildNetworkSnapshot$I(luvio, config, snapshotRefreshOptions$2)
|
|
20753
20753
|
});
|
|
20754
20754
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
20755
20755
|
}
|
|
20756
|
-
function buildNetworkSnapshot$
|
|
20756
|
+
function buildNetworkSnapshot$I(luvio, config, options) {
|
|
20757
20757
|
const resourceParams = createResourceParams$A(config);
|
|
20758
20758
|
const request = createResourceRequest$F(resourceParams);
|
|
20759
20759
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -20768,7 +20768,7 @@ function buildNetworkSnapshot$E(luvio, config, options) {
|
|
|
20768
20768
|
});
|
|
20769
20769
|
}
|
|
20770
20770
|
function buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext) {
|
|
20771
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
20771
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$I, undefined, false);
|
|
20772
20772
|
}
|
|
20773
20773
|
function buildCachedSnapshotCachePolicy$s(context, storeLookup) {
|
|
20774
20774
|
const { luvio, config } = context;
|
|
@@ -20779,7 +20779,7 @@ function buildCachedSnapshotCachePolicy$s(context, storeLookup) {
|
|
|
20779
20779
|
};
|
|
20780
20780
|
const cacheSnapshot = storeLookup(selector, {
|
|
20781
20781
|
config,
|
|
20782
|
-
resolve: () => buildNetworkSnapshot$
|
|
20782
|
+
resolve: () => buildNetworkSnapshot$I(luvio, config, snapshotRefreshOptions$2)
|
|
20783
20783
|
});
|
|
20784
20784
|
return cacheSnapshot;
|
|
20785
20785
|
}
|
|
@@ -20979,18 +20979,18 @@ function adapterFragment$m(luvio, config) {
|
|
|
20979
20979
|
function onFetchResponseSuccess$o(luvio, config, resourceParams, response) {
|
|
20980
20980
|
const snapshot = ingestSuccess$t(luvio, resourceParams, response, {
|
|
20981
20981
|
config,
|
|
20982
|
-
resolve: () => buildNetworkSnapshot$
|
|
20982
|
+
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions$2)
|
|
20983
20983
|
});
|
|
20984
20984
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
20985
20985
|
}
|
|
20986
20986
|
function onFetchResponseError$o(luvio, config, resourceParams, response) {
|
|
20987
20987
|
const snapshot = ingestError$m(luvio, resourceParams, response, {
|
|
20988
20988
|
config,
|
|
20989
|
-
resolve: () => buildNetworkSnapshot$
|
|
20989
|
+
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions$2)
|
|
20990
20990
|
});
|
|
20991
20991
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
20992
20992
|
}
|
|
20993
|
-
function buildNetworkSnapshot$
|
|
20993
|
+
function buildNetworkSnapshot$H(luvio, config, options) {
|
|
20994
20994
|
const resourceParams = createResourceParams$z(config);
|
|
20995
20995
|
const request = createResourceRequest$E(resourceParams);
|
|
20996
20996
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -21005,7 +21005,7 @@ function buildNetworkSnapshot$D(luvio, config, options) {
|
|
|
21005
21005
|
});
|
|
21006
21006
|
}
|
|
21007
21007
|
function buildNetworkSnapshotCachePolicy$s(context, coercedAdapterRequestContext) {
|
|
21008
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
21008
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$H, undefined, false);
|
|
21009
21009
|
}
|
|
21010
21010
|
function buildCachedSnapshotCachePolicy$r(context, storeLookup) {
|
|
21011
21011
|
const { luvio, config } = context;
|
|
@@ -21016,7 +21016,7 @@ function buildCachedSnapshotCachePolicy$r(context, storeLookup) {
|
|
|
21016
21016
|
};
|
|
21017
21017
|
const cacheSnapshot = storeLookup(selector, {
|
|
21018
21018
|
config,
|
|
21019
|
-
resolve: () => buildNetworkSnapshot$
|
|
21019
|
+
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions$2)
|
|
21020
21020
|
});
|
|
21021
21021
|
return cacheSnapshot;
|
|
21022
21022
|
}
|
|
@@ -21153,7 +21153,7 @@ function validateAdapterConfig$B(untrustedConfig, configPropertyNames) {
|
|
|
21153
21153
|
}
|
|
21154
21154
|
return config;
|
|
21155
21155
|
}
|
|
21156
|
-
function buildNetworkSnapshot$
|
|
21156
|
+
function buildNetworkSnapshot$G(luvio, config, options) {
|
|
21157
21157
|
const resourceParams = createResourceParams$y(config);
|
|
21158
21158
|
const request = createResourceRequest$D(resourceParams);
|
|
21159
21159
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -21178,7 +21178,7 @@ const updateListPreferencesAdapterFactory = (luvio) => {
|
|
|
21178
21178
|
if (config === null) {
|
|
21179
21179
|
throw new Error('Invalid config for "updateListPreferences"');
|
|
21180
21180
|
}
|
|
21181
|
-
return buildNetworkSnapshot$
|
|
21181
|
+
return buildNetworkSnapshot$G(luvio, config);
|
|
21182
21182
|
};
|
|
21183
21183
|
};
|
|
21184
21184
|
|
|
@@ -21357,18 +21357,18 @@ function adapterFragment$l(luvio, config) {
|
|
|
21357
21357
|
function onFetchResponseSuccess$n(luvio, config, resourceParams, response) {
|
|
21358
21358
|
const snapshot = ingestSuccess$r(luvio, resourceParams, response, {
|
|
21359
21359
|
config,
|
|
21360
|
-
resolve: () => buildNetworkSnapshot$
|
|
21360
|
+
resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions$2)
|
|
21361
21361
|
});
|
|
21362
21362
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
21363
21363
|
}
|
|
21364
21364
|
function onFetchResponseError$n(luvio, config, resourceParams, response) {
|
|
21365
21365
|
const snapshot = ingestError$l(luvio, resourceParams, response, {
|
|
21366
21366
|
config,
|
|
21367
|
-
resolve: () => buildNetworkSnapshot$
|
|
21367
|
+
resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions$2)
|
|
21368
21368
|
});
|
|
21369
21369
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
21370
21370
|
}
|
|
21371
|
-
function buildNetworkSnapshot$
|
|
21371
|
+
function buildNetworkSnapshot$F(luvio, config, options) {
|
|
21372
21372
|
const resourceParams = createResourceParams$x(config);
|
|
21373
21373
|
const request = createResourceRequest$C(resourceParams);
|
|
21374
21374
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -21383,7 +21383,7 @@ function buildNetworkSnapshot$B(luvio, config, options) {
|
|
|
21383
21383
|
});
|
|
21384
21384
|
}
|
|
21385
21385
|
function buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext) {
|
|
21386
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
21386
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$F, undefined, false);
|
|
21387
21387
|
}
|
|
21388
21388
|
function buildCachedSnapshotCachePolicy$q(context, storeLookup) {
|
|
21389
21389
|
const { luvio, config } = context;
|
|
@@ -21394,7 +21394,7 @@ function buildCachedSnapshotCachePolicy$q(context, storeLookup) {
|
|
|
21394
21394
|
};
|
|
21395
21395
|
const cacheSnapshot = storeLookup(selector, {
|
|
21396
21396
|
config,
|
|
21397
|
-
resolve: () => buildNetworkSnapshot$
|
|
21397
|
+
resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions$2)
|
|
21398
21398
|
});
|
|
21399
21399
|
return cacheSnapshot;
|
|
21400
21400
|
}
|
|
@@ -21478,18 +21478,18 @@ function adapterFragment$k(luvio, config) {
|
|
|
21478
21478
|
function onFetchResponseSuccess$m(luvio, config, resourceParams, response) {
|
|
21479
21479
|
const snapshot = ingestSuccess$q(luvio, resourceParams, response, {
|
|
21480
21480
|
config,
|
|
21481
|
-
resolve: () => buildNetworkSnapshot$
|
|
21481
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions$2)
|
|
21482
21482
|
});
|
|
21483
21483
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
21484
21484
|
}
|
|
21485
21485
|
function onFetchResponseError$m(luvio, config, resourceParams, response) {
|
|
21486
21486
|
const snapshot = ingestError$k(luvio, resourceParams, response, {
|
|
21487
21487
|
config,
|
|
21488
|
-
resolve: () => buildNetworkSnapshot$
|
|
21488
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions$2)
|
|
21489
21489
|
});
|
|
21490
21490
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
21491
21491
|
}
|
|
21492
|
-
function buildNetworkSnapshot$
|
|
21492
|
+
function buildNetworkSnapshot$E(luvio, config, options) {
|
|
21493
21493
|
const resourceParams = createResourceParams$w(config);
|
|
21494
21494
|
const request = createResourceRequest$B();
|
|
21495
21495
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -21504,7 +21504,7 @@ function buildNetworkSnapshot$A(luvio, config, options) {
|
|
|
21504
21504
|
});
|
|
21505
21505
|
}
|
|
21506
21506
|
function buildNetworkSnapshotCachePolicy$q(context, coercedAdapterRequestContext) {
|
|
21507
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
21507
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$E, undefined, false);
|
|
21508
21508
|
}
|
|
21509
21509
|
function buildCachedSnapshotCachePolicy$p(context, storeLookup) {
|
|
21510
21510
|
const { luvio, config } = context;
|
|
@@ -21515,7 +21515,7 @@ function buildCachedSnapshotCachePolicy$p(context, storeLookup) {
|
|
|
21515
21515
|
};
|
|
21516
21516
|
const cacheSnapshot = storeLookup(selector, {
|
|
21517
21517
|
config,
|
|
21518
|
-
resolve: () => buildNetworkSnapshot$
|
|
21518
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions$2)
|
|
21519
21519
|
});
|
|
21520
21520
|
return cacheSnapshot;
|
|
21521
21521
|
}
|
|
@@ -21814,18 +21814,18 @@ function adapterFragment$j(luvio, config) {
|
|
|
21814
21814
|
function onFetchResponseSuccess$l(luvio, config, resourceParams, response) {
|
|
21815
21815
|
const snapshot = ingestSuccess$p(luvio, resourceParams, response, {
|
|
21816
21816
|
config,
|
|
21817
|
-
resolve: () => buildNetworkSnapshot$
|
|
21817
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions$2)
|
|
21818
21818
|
});
|
|
21819
21819
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
21820
21820
|
}
|
|
21821
21821
|
function onFetchResponseError$l(luvio, config, resourceParams, response) {
|
|
21822
21822
|
const snapshot = ingestError$j(luvio, resourceParams, response, {
|
|
21823
21823
|
config,
|
|
21824
|
-
resolve: () => buildNetworkSnapshot$
|
|
21824
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions$2)
|
|
21825
21825
|
});
|
|
21826
21826
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
21827
21827
|
}
|
|
21828
|
-
function buildNetworkSnapshot$
|
|
21828
|
+
function buildNetworkSnapshot$D(luvio, config, options) {
|
|
21829
21829
|
const resourceParams = createResourceParams$v(config);
|
|
21830
21830
|
const request = createResourceRequest$A(resourceParams);
|
|
21831
21831
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -21840,7 +21840,7 @@ function buildNetworkSnapshot$z(luvio, config, options) {
|
|
|
21840
21840
|
});
|
|
21841
21841
|
}
|
|
21842
21842
|
function buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext) {
|
|
21843
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
21843
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$D, undefined, false);
|
|
21844
21844
|
}
|
|
21845
21845
|
function buildCachedSnapshotCachePolicy$o(context, storeLookup) {
|
|
21846
21846
|
const { luvio, config } = context;
|
|
@@ -21851,7 +21851,7 @@ function buildCachedSnapshotCachePolicy$o(context, storeLookup) {
|
|
|
21851
21851
|
};
|
|
21852
21852
|
const cacheSnapshot = storeLookup(selector, {
|
|
21853
21853
|
config,
|
|
21854
|
-
resolve: () => buildNetworkSnapshot$
|
|
21854
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions$2)
|
|
21855
21855
|
});
|
|
21856
21856
|
return cacheSnapshot;
|
|
21857
21857
|
}
|
|
@@ -22260,18 +22260,18 @@ function adapterFragment$i(luvio, config) {
|
|
|
22260
22260
|
function onFetchResponseSuccess$k(luvio, config, resourceParams, response) {
|
|
22261
22261
|
const snapshot = ingestSuccess$o(luvio, resourceParams, response, {
|
|
22262
22262
|
config,
|
|
22263
|
-
resolve: () => buildNetworkSnapshot$
|
|
22263
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions$2)
|
|
22264
22264
|
});
|
|
22265
22265
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22266
22266
|
}
|
|
22267
22267
|
function onFetchResponseError$k(luvio, config, resourceParams, response) {
|
|
22268
22268
|
const snapshot = ingestError$i(luvio, resourceParams, response, {
|
|
22269
22269
|
config,
|
|
22270
|
-
resolve: () => buildNetworkSnapshot$
|
|
22270
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions$2)
|
|
22271
22271
|
});
|
|
22272
22272
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22273
22273
|
}
|
|
22274
|
-
function buildNetworkSnapshot$
|
|
22274
|
+
function buildNetworkSnapshot$C(luvio, config, options) {
|
|
22275
22275
|
const resourceParams = createResourceParams$u(config);
|
|
22276
22276
|
const request = createResourceRequest$z(resourceParams);
|
|
22277
22277
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -22286,7 +22286,7 @@ function buildNetworkSnapshot$y(luvio, config, options) {
|
|
|
22286
22286
|
});
|
|
22287
22287
|
}
|
|
22288
22288
|
function buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext) {
|
|
22289
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
22289
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$C, undefined, false);
|
|
22290
22290
|
}
|
|
22291
22291
|
function buildCachedSnapshotCachePolicy$n(context, storeLookup) {
|
|
22292
22292
|
const { luvio, config } = context;
|
|
@@ -22297,7 +22297,7 @@ function buildCachedSnapshotCachePolicy$n(context, storeLookup) {
|
|
|
22297
22297
|
};
|
|
22298
22298
|
const cacheSnapshot = storeLookup(selector, {
|
|
22299
22299
|
config,
|
|
22300
|
-
resolve: () => buildNetworkSnapshot$
|
|
22300
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions$2)
|
|
22301
22301
|
});
|
|
22302
22302
|
return cacheSnapshot;
|
|
22303
22303
|
}
|
|
@@ -22332,7 +22332,7 @@ const path = select$K$2().selections;
|
|
|
22332
22332
|
function buildSnapshotRefresh$2$1(luvio, config) {
|
|
22333
22333
|
return {
|
|
22334
22334
|
config,
|
|
22335
|
-
resolve: () => buildNetworkSnapshot$
|
|
22335
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config),
|
|
22336
22336
|
};
|
|
22337
22337
|
}
|
|
22338
22338
|
function buildRequestAndKey(luvio, config) {
|
|
@@ -22360,7 +22360,7 @@ function onResponseError(luvio, config, key, err) {
|
|
|
22360
22360
|
luvio.storeIngestError(key, errorSnapshot);
|
|
22361
22361
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
22362
22362
|
}
|
|
22363
|
-
function buildNetworkSnapshot$
|
|
22363
|
+
function buildNetworkSnapshot$B(luvio, config, options) {
|
|
22364
22364
|
const { resourceParams, request, key } = buildRequestAndKey(luvio, config);
|
|
22365
22365
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
22366
22366
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -22412,7 +22412,7 @@ function buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext
|
|
|
22412
22412
|
priority: networkPriority,
|
|
22413
22413
|
};
|
|
22414
22414
|
}
|
|
22415
|
-
return buildNetworkSnapshot$
|
|
22415
|
+
return buildNetworkSnapshot$B(luvio, config, dispatchOptions);
|
|
22416
22416
|
}
|
|
22417
22417
|
function buildCachedSnapshotCachePolicy$m(context, storeLookup) {
|
|
22418
22418
|
const { config, luvio } = context;
|
|
@@ -22570,18 +22570,18 @@ function adapterFragment$h(luvio, config) {
|
|
|
22570
22570
|
function onFetchResponseSuccess$j(luvio, config, resourceParams, response) {
|
|
22571
22571
|
const snapshot = ingestSuccess$n(luvio, resourceParams, response, {
|
|
22572
22572
|
config,
|
|
22573
|
-
resolve: () => buildNetworkSnapshot$
|
|
22573
|
+
resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions$2)
|
|
22574
22574
|
});
|
|
22575
22575
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22576
22576
|
}
|
|
22577
22577
|
function onFetchResponseError$j(luvio, config, resourceParams, response) {
|
|
22578
22578
|
const snapshot = ingestError$h(luvio, resourceParams, response, {
|
|
22579
22579
|
config,
|
|
22580
|
-
resolve: () => buildNetworkSnapshot$
|
|
22580
|
+
resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions$2)
|
|
22581
22581
|
});
|
|
22582
22582
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22583
22583
|
}
|
|
22584
|
-
function buildNetworkSnapshot$
|
|
22584
|
+
function buildNetworkSnapshot$A(luvio, config, options) {
|
|
22585
22585
|
const resourceParams = createResourceParams$t(config);
|
|
22586
22586
|
const request = createResourceRequest$x(resourceParams);
|
|
22587
22587
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -22596,7 +22596,7 @@ function buildNetworkSnapshot$w(luvio, config, options) {
|
|
|
22596
22596
|
});
|
|
22597
22597
|
}
|
|
22598
22598
|
function buildNetworkSnapshotCachePolicy$m(context, coercedAdapterRequestContext) {
|
|
22599
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
22599
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$A, undefined, false);
|
|
22600
22600
|
}
|
|
22601
22601
|
function buildCachedSnapshotCachePolicy$l(context, storeLookup) {
|
|
22602
22602
|
const { luvio, config } = context;
|
|
@@ -22607,7 +22607,7 @@ function buildCachedSnapshotCachePolicy$l(context, storeLookup) {
|
|
|
22607
22607
|
};
|
|
22608
22608
|
const cacheSnapshot = storeLookup(selector, {
|
|
22609
22609
|
config,
|
|
22610
|
-
resolve: () => buildNetworkSnapshot$
|
|
22610
|
+
resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions$2)
|
|
22611
22611
|
});
|
|
22612
22612
|
return cacheSnapshot;
|
|
22613
22613
|
}
|
|
@@ -22661,7 +22661,7 @@ function select$F$2(luvio, params) {
|
|
|
22661
22661
|
return select$G$2();
|
|
22662
22662
|
}
|
|
22663
22663
|
function keyBuilder$Q$2(luvio, params) {
|
|
22664
|
-
return keyPrefix$3 + '::DuplicatesRepresentation:(' + (params.body.allowSaveOnDuplicate === undefined ? 'allowSaveOnDuplicate' : 'allowSaveOnDuplicate:' + params.body.allowSaveOnDuplicate) + '::' + (params.body.apiName === undefined ? 'apiName' : 'apiName:' + params.body.apiName) + '::' + stableJSONStringify$
|
|
22664
|
+
return keyPrefix$3 + '::DuplicatesRepresentation:(' + (params.body.allowSaveOnDuplicate === undefined ? 'allowSaveOnDuplicate' : 'allowSaveOnDuplicate:' + params.body.allowSaveOnDuplicate) + '::' + (params.body.apiName === undefined ? 'apiName' : 'apiName:' + params.body.apiName) + '::' + stableJSONStringify$3(params.body.fields) + ')';
|
|
22665
22665
|
}
|
|
22666
22666
|
function getResponseCacheKeys$s(storeKeyMap, luvio, resourceParams, response) {
|
|
22667
22667
|
getTypeCacheKeys$q$2(storeKeyMap, luvio, response, () => keyBuilder$Q$2(luvio, resourceParams));
|
|
@@ -22782,18 +22782,18 @@ function adapterFragment$g(luvio, config) {
|
|
|
22782
22782
|
function onFetchResponseSuccess$i(luvio, config, resourceParams, response) {
|
|
22783
22783
|
const snapshot = ingestSuccess$m(luvio, resourceParams, response, {
|
|
22784
22784
|
config,
|
|
22785
|
-
resolve: () => buildNetworkSnapshot$
|
|
22785
|
+
resolve: () => buildNetworkSnapshot$z(luvio, config, snapshotRefreshOptions$2)
|
|
22786
22786
|
});
|
|
22787
22787
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22788
22788
|
}
|
|
22789
22789
|
function onFetchResponseError$i(luvio, config, resourceParams, response) {
|
|
22790
22790
|
const snapshot = ingestError$g(luvio, resourceParams, response, {
|
|
22791
22791
|
config,
|
|
22792
|
-
resolve: () => buildNetworkSnapshot$
|
|
22792
|
+
resolve: () => buildNetworkSnapshot$z(luvio, config, snapshotRefreshOptions$2)
|
|
22793
22793
|
});
|
|
22794
22794
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22795
22795
|
}
|
|
22796
|
-
function buildNetworkSnapshot$
|
|
22796
|
+
function buildNetworkSnapshot$z(luvio, config, options) {
|
|
22797
22797
|
const resourceParams = createResourceParams$s(config);
|
|
22798
22798
|
const request = createResourceRequest$w(resourceParams);
|
|
22799
22799
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -22808,7 +22808,7 @@ function buildNetworkSnapshot$v(luvio, config, options) {
|
|
|
22808
22808
|
});
|
|
22809
22809
|
}
|
|
22810
22810
|
function buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext) {
|
|
22811
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
22811
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$z, 'get', false);
|
|
22812
22812
|
}
|
|
22813
22813
|
function buildCachedSnapshotCachePolicy$k(context, storeLookup) {
|
|
22814
22814
|
const { luvio, config } = context;
|
|
@@ -22819,7 +22819,7 @@ function buildCachedSnapshotCachePolicy$k(context, storeLookup) {
|
|
|
22819
22819
|
};
|
|
22820
22820
|
const cacheSnapshot = storeLookup(selector, {
|
|
22821
22821
|
config,
|
|
22822
|
-
resolve: () => buildNetworkSnapshot$
|
|
22822
|
+
resolve: () => buildNetworkSnapshot$z(luvio, config, snapshotRefreshOptions$2)
|
|
22823
22823
|
});
|
|
22824
22824
|
return cacheSnapshot;
|
|
22825
22825
|
}
|
|
@@ -23525,7 +23525,7 @@ function buildCachedSnapshot$3$1(luvio, config) {
|
|
|
23525
23525
|
const { recordIds } = config;
|
|
23526
23526
|
return luvio.storeLookup(recordAvatarsSelector(recordIds), {
|
|
23527
23527
|
config,
|
|
23528
|
-
resolve: () => buildNetworkSnapshot$
|
|
23528
|
+
resolve: () => buildNetworkSnapshot$y(luvio, config, snapshotRefreshOptions$2),
|
|
23529
23529
|
});
|
|
23530
23530
|
}
|
|
23531
23531
|
|
|
@@ -23580,7 +23580,7 @@ function ingestFakeResponse(luvio, recordIds) {
|
|
|
23580
23580
|
function isRecordAvatarBulkMapRepresentation(response) {
|
|
23581
23581
|
return response.body.hasErrors === undefined;
|
|
23582
23582
|
}
|
|
23583
|
-
function buildNetworkSnapshot$
|
|
23583
|
+
function buildNetworkSnapshot$y(luvio, config, options) {
|
|
23584
23584
|
const { uncachedRecordIds, recordIds } = config;
|
|
23585
23585
|
const { recordIdsInFlight, recordIdsNotInFlight } = getRecordIdsFlightStatus(uncachedRecordIds || recordIds, // If uncached records were specified, only get those, otherwise, get all of them
|
|
23586
23586
|
IN_FLIGHT_REQUESTS);
|
|
@@ -23649,7 +23649,7 @@ function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
|
|
|
23649
23649
|
const { recordIds } = config;
|
|
23650
23650
|
const cachedSnapshot = storeLookup(recordAvatarsSelector(recordIds), {
|
|
23651
23651
|
config,
|
|
23652
|
-
resolve: () => buildNetworkSnapshot$
|
|
23652
|
+
resolve: () => buildNetworkSnapshot$y(luvio, config, snapshotRefreshOptions$2),
|
|
23653
23653
|
});
|
|
23654
23654
|
// if the L1 lookup had some data but not all, then put the cache keys that were
|
|
23655
23655
|
// missing onto the context, so buildNetworkSnapshotCachePolicy only requests
|
|
@@ -23678,7 +23678,7 @@ function buildNetworkSnapshotCachePolicy$k(context, coercedAdapterRequestContext
|
|
|
23678
23678
|
priority: networkPriority,
|
|
23679
23679
|
};
|
|
23680
23680
|
}
|
|
23681
|
-
return buildNetworkSnapshot$
|
|
23681
|
+
return buildNetworkSnapshot$y(luvio, config, dispatchOptions);
|
|
23682
23682
|
}
|
|
23683
23683
|
|
|
23684
23684
|
const adapterName$p = 'getRecordAvatars';
|
|
@@ -23707,14 +23707,14 @@ function validateAdapterConfig$s(untrustedConfig, configPropertyNames) {
|
|
|
23707
23707
|
function onFetchResponseSuccess$h(luvio, config, resourceParams, response) {
|
|
23708
23708
|
const snapshot = ingestSuccess$l(luvio, resourceParams, response, {
|
|
23709
23709
|
config,
|
|
23710
|
-
resolve: () => buildNetworkSnapshot$
|
|
23710
|
+
resolve: () => buildNetworkSnapshot$y(luvio, config, snapshotRefreshOptions$2)
|
|
23711
23711
|
});
|
|
23712
23712
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
23713
23713
|
}
|
|
23714
23714
|
function onFetchResponseError$h(luvio, config, resourceParams, response) {
|
|
23715
23715
|
const snapshot = ingestError$f(luvio, resourceParams, response, {
|
|
23716
23716
|
config,
|
|
23717
|
-
resolve: () => buildNetworkSnapshot$
|
|
23717
|
+
resolve: () => buildNetworkSnapshot$y(luvio, config, snapshotRefreshOptions$2)
|
|
23718
23718
|
});
|
|
23719
23719
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
23720
23720
|
}
|
|
@@ -23853,11 +23853,11 @@ function keyBuilder$M$2(luvio, config) {
|
|
|
23853
23853
|
function onFetchResponseError$g(luvio, config, resourceParams, response) {
|
|
23854
23854
|
const snapshot = ingestError$L(luvio, resourceParams, response, {
|
|
23855
23855
|
config,
|
|
23856
|
-
resolve: () => buildNetworkSnapshot$
|
|
23856
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions$2)
|
|
23857
23857
|
});
|
|
23858
23858
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
23859
23859
|
}
|
|
23860
|
-
function buildNetworkSnapshot$
|
|
23860
|
+
function buildNetworkSnapshot$x(luvio, config, options) {
|
|
23861
23861
|
const resourceParams = createResourceParams$11(config);
|
|
23862
23862
|
const request = createResourceRequest$1b(resourceParams);
|
|
23863
23863
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -23872,7 +23872,7 @@ function buildNetworkSnapshot$t(luvio, config, options) {
|
|
|
23872
23872
|
});
|
|
23873
23873
|
}
|
|
23874
23874
|
function buildNetworkSnapshotCachePolicy$j(context, coercedAdapterRequestContext) {
|
|
23875
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
23875
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$x, undefined, false);
|
|
23876
23876
|
}
|
|
23877
23877
|
function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
23878
23878
|
const { luvio, config } = context;
|
|
@@ -23883,7 +23883,7 @@ function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
|
23883
23883
|
};
|
|
23884
23884
|
const cacheSnapshot = storeLookup(selector, {
|
|
23885
23885
|
config,
|
|
23886
|
-
resolve: () => buildNetworkSnapshot$
|
|
23886
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions$2)
|
|
23887
23887
|
});
|
|
23888
23888
|
return cacheSnapshot;
|
|
23889
23889
|
}
|
|
@@ -24396,18 +24396,18 @@ function adapterFragment$f(luvio, config) {
|
|
|
24396
24396
|
function onFetchResponseSuccess$g(luvio, config, resourceParams, response) {
|
|
24397
24397
|
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
24398
24398
|
config,
|
|
24399
|
-
resolve: () => buildNetworkSnapshot$
|
|
24399
|
+
resolve: () => buildNetworkSnapshot$w(luvio, config, snapshotRefreshOptions$2)
|
|
24400
24400
|
});
|
|
24401
24401
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
24402
24402
|
}
|
|
24403
24403
|
function onFetchResponseError$f(luvio, config, resourceParams, response) {
|
|
24404
24404
|
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
24405
24405
|
config,
|
|
24406
|
-
resolve: () => buildNetworkSnapshot$
|
|
24406
|
+
resolve: () => buildNetworkSnapshot$w(luvio, config, snapshotRefreshOptions$2)
|
|
24407
24407
|
});
|
|
24408
24408
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
24409
24409
|
}
|
|
24410
|
-
function buildNetworkSnapshot$
|
|
24410
|
+
function buildNetworkSnapshot$w(luvio, config, options) {
|
|
24411
24411
|
const resourceParams = createResourceParams$q(config);
|
|
24412
24412
|
const request = createResourceRequest$t(resourceParams);
|
|
24413
24413
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -24422,7 +24422,7 @@ function buildNetworkSnapshot$s(luvio, config, options) {
|
|
|
24422
24422
|
});
|
|
24423
24423
|
}
|
|
24424
24424
|
function buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext) {
|
|
24425
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
24425
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$w, undefined, false);
|
|
24426
24426
|
}
|
|
24427
24427
|
function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
24428
24428
|
const { luvio, config } = context;
|
|
@@ -24433,7 +24433,7 @@ function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
|
24433
24433
|
};
|
|
24434
24434
|
const cacheSnapshot = storeLookup(selector, {
|
|
24435
24435
|
config,
|
|
24436
|
-
resolve: () => buildNetworkSnapshot$
|
|
24436
|
+
resolve: () => buildNetworkSnapshot$w(luvio, config, snapshotRefreshOptions$2)
|
|
24437
24437
|
});
|
|
24438
24438
|
return cacheSnapshot;
|
|
24439
24439
|
}
|
|
@@ -24482,18 +24482,18 @@ function adapterFragment$e(luvio, config) {
|
|
|
24482
24482
|
function onFetchResponseSuccess$f(luvio, config, resourceParams, response) {
|
|
24483
24483
|
const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
|
|
24484
24484
|
config,
|
|
24485
|
-
resolve: () => buildNetworkSnapshot$
|
|
24485
|
+
resolve: () => buildNetworkSnapshot$v(luvio, config, snapshotRefreshOptions$2)
|
|
24486
24486
|
});
|
|
24487
24487
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
24488
24488
|
}
|
|
24489
24489
|
function onFetchResponseError$e(luvio, config, resourceParams, response) {
|
|
24490
24490
|
const snapshot = ingestError$e(luvio, resourceParams, response, {
|
|
24491
24491
|
config,
|
|
24492
|
-
resolve: () => buildNetworkSnapshot$
|
|
24492
|
+
resolve: () => buildNetworkSnapshot$v(luvio, config, snapshotRefreshOptions$2)
|
|
24493
24493
|
});
|
|
24494
24494
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
24495
24495
|
}
|
|
24496
|
-
function buildNetworkSnapshot$
|
|
24496
|
+
function buildNetworkSnapshot$v(luvio, config, options) {
|
|
24497
24497
|
const resourceParams = createResourceParams$p(config);
|
|
24498
24498
|
const request = createResourceRequest$u(resourceParams);
|
|
24499
24499
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -24508,7 +24508,7 @@ function buildNetworkSnapshot$r(luvio, config, options) {
|
|
|
24508
24508
|
});
|
|
24509
24509
|
}
|
|
24510
24510
|
function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
|
|
24511
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
24511
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$v, undefined, false);
|
|
24512
24512
|
}
|
|
24513
24513
|
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
24514
24514
|
const { luvio, config } = context;
|
|
@@ -24519,7 +24519,7 @@ function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
|
24519
24519
|
};
|
|
24520
24520
|
const cacheSnapshot = storeLookup(selector, {
|
|
24521
24521
|
config,
|
|
24522
|
-
resolve: () => buildNetworkSnapshot$
|
|
24522
|
+
resolve: () => buildNetworkSnapshot$v(luvio, config, snapshotRefreshOptions$2)
|
|
24523
24523
|
});
|
|
24524
24524
|
return cacheSnapshot;
|
|
24525
24525
|
}
|
|
@@ -25019,18 +25019,18 @@ function adapterFragment$d(luvio, config) {
|
|
|
25019
25019
|
function onFetchResponseSuccess$e(luvio, config, resourceParams, response) {
|
|
25020
25020
|
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
25021
25021
|
config,
|
|
25022
|
-
resolve: () => buildNetworkSnapshot$
|
|
25022
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions$2)
|
|
25023
25023
|
});
|
|
25024
25024
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25025
25025
|
}
|
|
25026
25026
|
function onFetchResponseError$d$1(luvio, config, resourceParams, response) {
|
|
25027
25027
|
const snapshot = ingestError$b$1(luvio, resourceParams, response, {
|
|
25028
25028
|
config,
|
|
25029
|
-
resolve: () => buildNetworkSnapshot$
|
|
25029
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions$2)
|
|
25030
25030
|
});
|
|
25031
25031
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25032
25032
|
}
|
|
25033
|
-
function buildNetworkSnapshot$
|
|
25033
|
+
function buildNetworkSnapshot$u(luvio, config, options) {
|
|
25034
25034
|
const resourceParams = createResourceParams$o(config);
|
|
25035
25035
|
const request = createResourceRequest$r(resourceParams);
|
|
25036
25036
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -25045,7 +25045,7 @@ function buildNetworkSnapshot$q(luvio, config, options) {
|
|
|
25045
25045
|
});
|
|
25046
25046
|
}
|
|
25047
25047
|
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
25048
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
25048
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$u, undefined, false);
|
|
25049
25049
|
}
|
|
25050
25050
|
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
25051
25051
|
const { luvio, config } = context;
|
|
@@ -25056,7 +25056,7 @@ function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
|
25056
25056
|
};
|
|
25057
25057
|
const cacheSnapshot = storeLookup(selector, {
|
|
25058
25058
|
config,
|
|
25059
|
-
resolve: () => buildNetworkSnapshot$
|
|
25059
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions$2)
|
|
25060
25060
|
});
|
|
25061
25061
|
return cacheSnapshot;
|
|
25062
25062
|
}
|
|
@@ -25209,18 +25209,18 @@ function adapterFragment$c(luvio, config) {
|
|
|
25209
25209
|
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
25210
25210
|
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
25211
25211
|
config,
|
|
25212
|
-
resolve: () => buildNetworkSnapshot$
|
|
25212
|
+
resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions$2)
|
|
25213
25213
|
});
|
|
25214
25214
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25215
25215
|
}
|
|
25216
25216
|
function onFetchResponseError$c$1(luvio, config, resourceParams, response) {
|
|
25217
25217
|
const snapshot = ingestError$a$1(luvio, resourceParams, response, {
|
|
25218
25218
|
config,
|
|
25219
|
-
resolve: () => buildNetworkSnapshot$
|
|
25219
|
+
resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions$2)
|
|
25220
25220
|
});
|
|
25221
25221
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25222
25222
|
}
|
|
25223
|
-
function buildNetworkSnapshot$
|
|
25223
|
+
function buildNetworkSnapshot$t(luvio, config, options) {
|
|
25224
25224
|
const resourceParams = createResourceParams$n(config);
|
|
25225
25225
|
const request = createResourceRequest$q(resourceParams);
|
|
25226
25226
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -25235,7 +25235,7 @@ function buildNetworkSnapshot$p(luvio, config, options) {
|
|
|
25235
25235
|
});
|
|
25236
25236
|
}
|
|
25237
25237
|
function buildNetworkSnapshotCachePolicy$f$1(context, coercedAdapterRequestContext) {
|
|
25238
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
25238
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$t, undefined, false);
|
|
25239
25239
|
}
|
|
25240
25240
|
function buildCachedSnapshotCachePolicy$e$1(context, storeLookup) {
|
|
25241
25241
|
const { luvio, config } = context;
|
|
@@ -25246,7 +25246,7 @@ function buildCachedSnapshotCachePolicy$e$1(context, storeLookup) {
|
|
|
25246
25246
|
};
|
|
25247
25247
|
const cacheSnapshot = storeLookup(selector, {
|
|
25248
25248
|
config,
|
|
25249
|
-
resolve: () => buildNetworkSnapshot$
|
|
25249
|
+
resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions$2)
|
|
25250
25250
|
});
|
|
25251
25251
|
return cacheSnapshot;
|
|
25252
25252
|
}
|
|
@@ -25298,18 +25298,18 @@ function adapterFragment$b$1(luvio, config) {
|
|
|
25298
25298
|
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
25299
25299
|
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
25300
25300
|
config,
|
|
25301
|
-
resolve: () => buildNetworkSnapshot$
|
|
25301
|
+
resolve: () => buildNetworkSnapshot$s(luvio, config, snapshotRefreshOptions$2)
|
|
25302
25302
|
});
|
|
25303
25303
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25304
25304
|
}
|
|
25305
25305
|
function onFetchResponseError$b$1(luvio, config, resourceParams, response) {
|
|
25306
25306
|
const snapshot = ingestError$c$1(luvio, resourceParams, response, {
|
|
25307
25307
|
config,
|
|
25308
|
-
resolve: () => buildNetworkSnapshot$
|
|
25308
|
+
resolve: () => buildNetworkSnapshot$s(luvio, config, snapshotRefreshOptions$2)
|
|
25309
25309
|
});
|
|
25310
25310
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25311
25311
|
}
|
|
25312
|
-
function buildNetworkSnapshot$
|
|
25312
|
+
function buildNetworkSnapshot$s(luvio, config, options) {
|
|
25313
25313
|
const resourceParams = createResourceParams$m(config);
|
|
25314
25314
|
const request = createResourceRequest$s(resourceParams);
|
|
25315
25315
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -25324,7 +25324,7 @@ function buildNetworkSnapshot$o(luvio, config, options) {
|
|
|
25324
25324
|
});
|
|
25325
25325
|
}
|
|
25326
25326
|
function buildNetworkSnapshotCachePolicy$e$1(context, coercedAdapterRequestContext) {
|
|
25327
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
25327
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$s, undefined, false);
|
|
25328
25328
|
}
|
|
25329
25329
|
function buildCachedSnapshotCachePolicy$d$1(context, storeLookup) {
|
|
25330
25330
|
const { luvio, config } = context;
|
|
@@ -25335,7 +25335,7 @@ function buildCachedSnapshotCachePolicy$d$1(context, storeLookup) {
|
|
|
25335
25335
|
};
|
|
25336
25336
|
const cacheSnapshot = storeLookup(selector, {
|
|
25337
25337
|
config,
|
|
25338
|
-
resolve: () => buildNetworkSnapshot$
|
|
25338
|
+
resolve: () => buildNetworkSnapshot$s(luvio, config, snapshotRefreshOptions$2)
|
|
25339
25339
|
});
|
|
25340
25340
|
return cacheSnapshot;
|
|
25341
25341
|
}
|
|
@@ -25465,7 +25465,7 @@ function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
|
25465
25465
|
}
|
|
25466
25466
|
return config;
|
|
25467
25467
|
}
|
|
25468
|
-
function buildNetworkSnapshot$
|
|
25468
|
+
function buildNetworkSnapshot$r(luvio, config, options) {
|
|
25469
25469
|
const resourceParams = createResourceParams$l(config);
|
|
25470
25470
|
const request = createResourceRequest$p(resourceParams);
|
|
25471
25471
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -25490,7 +25490,7 @@ const updateRelatedListInfoAdapterFactory = (luvio) => {
|
|
|
25490
25490
|
if (config === null) {
|
|
25491
25491
|
throw new Error('Invalid config for "updateRelatedListInfo"');
|
|
25492
25492
|
}
|
|
25493
|
-
return buildNetworkSnapshot$
|
|
25493
|
+
return buildNetworkSnapshot$r(luvio, config);
|
|
25494
25494
|
};
|
|
25495
25495
|
};
|
|
25496
25496
|
|
|
@@ -25872,18 +25872,18 @@ function adapterFragment$a$1(luvio, config) {
|
|
|
25872
25872
|
function onFetchResponseSuccess$b$1(luvio, config, resourceParams, response) {
|
|
25873
25873
|
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
25874
25874
|
config,
|
|
25875
|
-
resolve: () => buildNetworkSnapshot$
|
|
25875
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions$2)
|
|
25876
25876
|
});
|
|
25877
25877
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25878
25878
|
}
|
|
25879
25879
|
function onFetchResponseError$a$1(luvio, config, resourceParams, response) {
|
|
25880
25880
|
const snapshot = ingestError$8$1(luvio, resourceParams, response, {
|
|
25881
25881
|
config,
|
|
25882
|
-
resolve: () => buildNetworkSnapshot$
|
|
25882
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions$2)
|
|
25883
25883
|
});
|
|
25884
25884
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25885
25885
|
}
|
|
25886
|
-
function buildNetworkSnapshot$
|
|
25886
|
+
function buildNetworkSnapshot$q(luvio, config, options) {
|
|
25887
25887
|
const resourceParams = createResourceParams$k(config);
|
|
25888
25888
|
const request = createResourceRequest$n$1(resourceParams);
|
|
25889
25889
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -25898,7 +25898,7 @@ function buildNetworkSnapshot$m(luvio, config, options) {
|
|
|
25898
25898
|
});
|
|
25899
25899
|
}
|
|
25900
25900
|
function buildNetworkSnapshotCachePolicy$d$1(context, coercedAdapterRequestContext) {
|
|
25901
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
25901
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$q, undefined, false);
|
|
25902
25902
|
}
|
|
25903
25903
|
function buildCachedSnapshotCachePolicy$c$1(context, storeLookup) {
|
|
25904
25904
|
const { luvio, config } = context;
|
|
@@ -25909,7 +25909,7 @@ function buildCachedSnapshotCachePolicy$c$1(context, storeLookup) {
|
|
|
25909
25909
|
};
|
|
25910
25910
|
const cacheSnapshot = storeLookup(selector, {
|
|
25911
25911
|
config,
|
|
25912
|
-
resolve: () => buildNetworkSnapshot$
|
|
25912
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions$2)
|
|
25913
25913
|
});
|
|
25914
25914
|
return cacheSnapshot;
|
|
25915
25915
|
}
|
|
@@ -25955,18 +25955,18 @@ function adapterFragment$9$1(luvio, config) {
|
|
|
25955
25955
|
function onFetchResponseSuccess$a$1(luvio, config, resourceParams, response) {
|
|
25956
25956
|
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
25957
25957
|
config,
|
|
25958
|
-
resolve: () => buildNetworkSnapshot$
|
|
25958
|
+
resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions$2)
|
|
25959
25959
|
});
|
|
25960
25960
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25961
25961
|
}
|
|
25962
25962
|
function onFetchResponseError$9$1(luvio, config, resourceParams, response) {
|
|
25963
25963
|
const snapshot = ingestError$9$1(luvio, resourceParams, response, {
|
|
25964
25964
|
config,
|
|
25965
|
-
resolve: () => buildNetworkSnapshot$
|
|
25965
|
+
resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions$2)
|
|
25966
25966
|
});
|
|
25967
25967
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25968
25968
|
}
|
|
25969
|
-
function buildNetworkSnapshot$
|
|
25969
|
+
function buildNetworkSnapshot$p(luvio, config, options) {
|
|
25970
25970
|
const resourceParams = createResourceParams$j(config);
|
|
25971
25971
|
const request = createResourceRequest$o(resourceParams);
|
|
25972
25972
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -25981,7 +25981,7 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
25981
25981
|
});
|
|
25982
25982
|
}
|
|
25983
25983
|
function buildNetworkSnapshotCachePolicy$c$1(context, coercedAdapterRequestContext) {
|
|
25984
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
25984
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$p, undefined, false);
|
|
25985
25985
|
}
|
|
25986
25986
|
function buildCachedSnapshotCachePolicy$b$1(context, storeLookup) {
|
|
25987
25987
|
const { luvio, config } = context;
|
|
@@ -25992,7 +25992,7 @@ function buildCachedSnapshotCachePolicy$b$1(context, storeLookup) {
|
|
|
25992
25992
|
};
|
|
25993
25993
|
const cacheSnapshot = storeLookup(selector, {
|
|
25994
25994
|
config,
|
|
25995
|
-
resolve: () => buildNetworkSnapshot$
|
|
25995
|
+
resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions$2)
|
|
25996
25996
|
});
|
|
25997
25997
|
return cacheSnapshot;
|
|
25998
25998
|
}
|
|
@@ -26108,7 +26108,7 @@ function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
|
26108
26108
|
}
|
|
26109
26109
|
return config;
|
|
26110
26110
|
}
|
|
26111
|
-
function buildNetworkSnapshot$
|
|
26111
|
+
function buildNetworkSnapshot$o(luvio, config, options) {
|
|
26112
26112
|
const resourceParams = createResourceParams$i(config);
|
|
26113
26113
|
const request = createResourceRequest$m$1(resourceParams);
|
|
26114
26114
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -26133,7 +26133,7 @@ const updateRelatedListPreferencesAdapterFactory = (luvio) => {
|
|
|
26133
26133
|
if (config === null) {
|
|
26134
26134
|
throw new Error('Invalid config for "updateRelatedListPreferences"');
|
|
26135
26135
|
}
|
|
26136
|
-
return buildNetworkSnapshot$
|
|
26136
|
+
return buildNetworkSnapshot$o(luvio, config);
|
|
26137
26137
|
};
|
|
26138
26138
|
};
|
|
26139
26139
|
|
|
@@ -27140,18 +27140,18 @@ function adapterFragment$8$1(luvio, config) {
|
|
|
27140
27140
|
function onFetchResponseSuccess$9$1(luvio, config, resourceParams, response) {
|
|
27141
27141
|
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
27142
27142
|
config,
|
|
27143
|
-
resolve: () => buildNetworkSnapshot$
|
|
27143
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions$2)
|
|
27144
27144
|
});
|
|
27145
27145
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27146
27146
|
}
|
|
27147
27147
|
function onFetchResponseError$8$1(luvio, config, resourceParams, response) {
|
|
27148
27148
|
const snapshot = ingestError$6$1(luvio, resourceParams, response, {
|
|
27149
27149
|
config,
|
|
27150
|
-
resolve: () => buildNetworkSnapshot$
|
|
27150
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions$2)
|
|
27151
27151
|
});
|
|
27152
27152
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27153
27153
|
}
|
|
27154
|
-
function buildNetworkSnapshot$
|
|
27154
|
+
function buildNetworkSnapshot$n(luvio, config, options) {
|
|
27155
27155
|
const resourceParams = createResourceParams$h$1(config);
|
|
27156
27156
|
const request = createResourceRequest$k$1(resourceParams);
|
|
27157
27157
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -27166,7 +27166,7 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
27166
27166
|
});
|
|
27167
27167
|
}
|
|
27168
27168
|
function buildNetworkSnapshotCachePolicy$b$1(context, coercedAdapterRequestContext) {
|
|
27169
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
27169
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$n, 'get', false);
|
|
27170
27170
|
}
|
|
27171
27171
|
function buildCachedSnapshotCachePolicy$a$1(context, storeLookup) {
|
|
27172
27172
|
const { luvio, config } = context;
|
|
@@ -27177,7 +27177,7 @@ function buildCachedSnapshotCachePolicy$a$1(context, storeLookup) {
|
|
|
27177
27177
|
};
|
|
27178
27178
|
const cacheSnapshot = storeLookup(selector, {
|
|
27179
27179
|
config,
|
|
27180
|
-
resolve: () => buildNetworkSnapshot$
|
|
27180
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions$2)
|
|
27181
27181
|
});
|
|
27182
27182
|
return cacheSnapshot;
|
|
27183
27183
|
}
|
|
@@ -27232,14 +27232,14 @@ function adapterFragment$7$1(luvio, config) {
|
|
|
27232
27232
|
function onFetchResponseSuccess$8$1(luvio, config, resourceParams, response) {
|
|
27233
27233
|
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
27234
27234
|
config,
|
|
27235
|
-
resolve: () => buildNetworkSnapshot$
|
|
27235
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions$2)
|
|
27236
27236
|
});
|
|
27237
27237
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27238
27238
|
}
|
|
27239
27239
|
function onFetchResponseError$7$1(luvio, config, resourceParams, response) {
|
|
27240
27240
|
const snapshot = ingestError$7$1(luvio, resourceParams, response, {
|
|
27241
27241
|
config,
|
|
27242
|
-
resolve: () => buildNetworkSnapshot$
|
|
27242
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions$2)
|
|
27243
27243
|
});
|
|
27244
27244
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27245
27245
|
}
|
|
@@ -27310,7 +27310,7 @@ function getPaginationMetadata$1$1(luvio, resourceParams) {
|
|
|
27310
27310
|
}
|
|
27311
27311
|
return node.data.__metadata;
|
|
27312
27312
|
}
|
|
27313
|
-
function buildNetworkSnapshot$
|
|
27313
|
+
function buildNetworkSnapshot$m(luvio, config, options, cacheSnapshot) {
|
|
27314
27314
|
const resourceParams = createResourceParams$g$1(config);
|
|
27315
27315
|
const request = prepareRequest$2$1(luvio, config, resourceParams, cacheSnapshot);
|
|
27316
27316
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -27325,7 +27325,7 @@ function buildNetworkSnapshot$i$1(luvio, config, options, cacheSnapshot) {
|
|
|
27325
27325
|
});
|
|
27326
27326
|
}
|
|
27327
27327
|
function buildNetworkSnapshotCachePolicy$a$1(context, coercedAdapterRequestContext) {
|
|
27328
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
27328
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$m, 'get', true);
|
|
27329
27329
|
}
|
|
27330
27330
|
function buildCachedSnapshotCachePolicy$9$1(context, storeLookup) {
|
|
27331
27331
|
const { luvio, config } = context;
|
|
@@ -27336,7 +27336,7 @@ function buildCachedSnapshotCachePolicy$9$1(context, storeLookup) {
|
|
|
27336
27336
|
};
|
|
27337
27337
|
const cacheSnapshot = storeLookup(selector, {
|
|
27338
27338
|
config,
|
|
27339
|
-
resolve: () => buildNetworkSnapshot$
|
|
27339
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions$2)
|
|
27340
27340
|
});
|
|
27341
27341
|
if (isUnfulfilledSnapshot$1$1(cacheSnapshot) && cacheSnapshot.data !== undefined) {
|
|
27342
27342
|
context.cacheSnapshot = cacheSnapshot;
|
|
@@ -27497,18 +27497,18 @@ function adapterFragment$6$1(luvio, config) {
|
|
|
27497
27497
|
function onFetchResponseSuccess$7$1(luvio, config, resourceParams, response) {
|
|
27498
27498
|
const snapshot = ingestSuccess$9$1(luvio, resourceParams, response, {
|
|
27499
27499
|
config,
|
|
27500
|
-
resolve: () => buildNetworkSnapshot$
|
|
27500
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions$2)
|
|
27501
27501
|
});
|
|
27502
27502
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27503
27503
|
}
|
|
27504
27504
|
function onFetchResponseError$6$1(luvio, config, resourceParams, response) {
|
|
27505
27505
|
const snapshot = ingestError$5$1(luvio, resourceParams, response, {
|
|
27506
27506
|
config,
|
|
27507
|
-
resolve: () => buildNetworkSnapshot$
|
|
27507
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions$2)
|
|
27508
27508
|
});
|
|
27509
27509
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27510
27510
|
}
|
|
27511
|
-
function buildNetworkSnapshot$
|
|
27511
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
27512
27512
|
const resourceParams = createResourceParams$f$1(config);
|
|
27513
27513
|
const request = createResourceRequest$j$1(resourceParams);
|
|
27514
27514
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -27523,7 +27523,7 @@ function buildNetworkSnapshot$h$1(luvio, config, options) {
|
|
|
27523
27523
|
});
|
|
27524
27524
|
}
|
|
27525
27525
|
function buildNetworkSnapshotCachePolicy$9$1(context, coercedAdapterRequestContext) {
|
|
27526
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
27526
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$l, undefined, false);
|
|
27527
27527
|
}
|
|
27528
27528
|
function buildCachedSnapshotCachePolicy$8$1(context, storeLookup) {
|
|
27529
27529
|
const { luvio, config } = context;
|
|
@@ -27534,7 +27534,7 @@ function buildCachedSnapshotCachePolicy$8$1(context, storeLookup) {
|
|
|
27534
27534
|
};
|
|
27535
27535
|
const cacheSnapshot = storeLookup(selector, {
|
|
27536
27536
|
config,
|
|
27537
|
-
resolve: () => buildNetworkSnapshot$
|
|
27537
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions$2)
|
|
27538
27538
|
});
|
|
27539
27539
|
return cacheSnapshot;
|
|
27540
27540
|
}
|
|
@@ -27680,18 +27680,18 @@ function adapterFragment$5$1(luvio, config) {
|
|
|
27680
27680
|
function onFetchResponseSuccess$6$1(luvio, config, resourceParams, response) {
|
|
27681
27681
|
const snapshot = ingestSuccess$8$1(luvio, resourceParams, response, {
|
|
27682
27682
|
config,
|
|
27683
|
-
resolve: () => buildNetworkSnapshot$
|
|
27683
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions$2)
|
|
27684
27684
|
});
|
|
27685
27685
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27686
27686
|
}
|
|
27687
27687
|
function onFetchResponseError$5$1(luvio, config, resourceParams, response) {
|
|
27688
27688
|
const snapshot = ingestError$4$1(luvio, resourceParams, response, {
|
|
27689
27689
|
config,
|
|
27690
|
-
resolve: () => buildNetworkSnapshot$
|
|
27690
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions$2)
|
|
27691
27691
|
});
|
|
27692
27692
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27693
27693
|
}
|
|
27694
|
-
function buildNetworkSnapshot$
|
|
27694
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
27695
27695
|
const resourceParams = createResourceParams$e$1(config);
|
|
27696
27696
|
const request = createResourceRequest$i$1(resourceParams);
|
|
27697
27697
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -27706,7 +27706,7 @@ function buildNetworkSnapshot$g$1(luvio, config, options) {
|
|
|
27706
27706
|
});
|
|
27707
27707
|
}
|
|
27708
27708
|
function buildNetworkSnapshotCachePolicy$8$1(context, coercedAdapterRequestContext) {
|
|
27709
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
27709
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
27710
27710
|
}
|
|
27711
27711
|
function buildCachedSnapshotCachePolicy$7$1(context, storeLookup) {
|
|
27712
27712
|
const { luvio, config } = context;
|
|
@@ -27717,7 +27717,7 @@ function buildCachedSnapshotCachePolicy$7$1(context, storeLookup) {
|
|
|
27717
27717
|
};
|
|
27718
27718
|
const cacheSnapshot = storeLookup(selector, {
|
|
27719
27719
|
config,
|
|
27720
|
-
resolve: () => buildNetworkSnapshot$
|
|
27720
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions$2)
|
|
27721
27721
|
});
|
|
27722
27722
|
return cacheSnapshot;
|
|
27723
27723
|
}
|
|
@@ -27860,18 +27860,18 @@ function adapterFragment$4$1(luvio, config) {
|
|
|
27860
27860
|
function onFetchResponseSuccess$5$1(luvio, config, resourceParams, response) {
|
|
27861
27861
|
const snapshot = ingestSuccess$7$1(luvio, resourceParams, response, {
|
|
27862
27862
|
config,
|
|
27863
|
-
resolve: () => buildNetworkSnapshot$
|
|
27863
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions$2)
|
|
27864
27864
|
});
|
|
27865
27865
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27866
27866
|
}
|
|
27867
27867
|
function onFetchResponseError$4$1(luvio, config, resourceParams, response) {
|
|
27868
27868
|
const snapshot = ingestError$3$1(luvio, resourceParams, response, {
|
|
27869
27869
|
config,
|
|
27870
|
-
resolve: () => buildNetworkSnapshot$
|
|
27870
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions$2)
|
|
27871
27871
|
});
|
|
27872
27872
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27873
27873
|
}
|
|
27874
|
-
function buildNetworkSnapshot$
|
|
27874
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
27875
27875
|
const resourceParams = createResourceParams$d$1(config);
|
|
27876
27876
|
const request = createResourceRequest$h$1(resourceParams);
|
|
27877
27877
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -27886,7 +27886,7 @@ function buildNetworkSnapshot$f$1(luvio, config, options) {
|
|
|
27886
27886
|
});
|
|
27887
27887
|
}
|
|
27888
27888
|
function buildNetworkSnapshotCachePolicy$7$1(context, coercedAdapterRequestContext) {
|
|
27889
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
27889
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
27890
27890
|
}
|
|
27891
27891
|
function buildCachedSnapshotCachePolicy$6$1(context, storeLookup) {
|
|
27892
27892
|
const { luvio, config } = context;
|
|
@@ -27897,7 +27897,7 @@ function buildCachedSnapshotCachePolicy$6$1(context, storeLookup) {
|
|
|
27897
27897
|
};
|
|
27898
27898
|
const cacheSnapshot = storeLookup(selector, {
|
|
27899
27899
|
config,
|
|
27900
|
-
resolve: () => buildNetworkSnapshot$
|
|
27900
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions$2)
|
|
27901
27901
|
});
|
|
27902
27902
|
return cacheSnapshot;
|
|
27903
27903
|
}
|
|
@@ -28200,18 +28200,18 @@ function adapterFragment$3$1(luvio, config) {
|
|
|
28200
28200
|
function onFetchResponseSuccess$4$1(luvio, config, resourceParams, response) {
|
|
28201
28201
|
const snapshot = ingestSuccess$6$1(luvio, resourceParams, response, {
|
|
28202
28202
|
config,
|
|
28203
|
-
resolve: () => buildNetworkSnapshot$
|
|
28203
|
+
resolve: () => buildNetworkSnapshot$i$1(luvio, config, snapshotRefreshOptions$2)
|
|
28204
28204
|
});
|
|
28205
28205
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
28206
28206
|
}
|
|
28207
28207
|
function onFetchResponseError$3$1(luvio, config, resourceParams, response) {
|
|
28208
28208
|
const snapshot = ingestError$2$1(luvio, resourceParams, response, {
|
|
28209
28209
|
config,
|
|
28210
|
-
resolve: () => buildNetworkSnapshot$
|
|
28210
|
+
resolve: () => buildNetworkSnapshot$i$1(luvio, config, snapshotRefreshOptions$2)
|
|
28211
28211
|
});
|
|
28212
28212
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
28213
28213
|
}
|
|
28214
|
-
function buildNetworkSnapshot$
|
|
28214
|
+
function buildNetworkSnapshot$i$1(luvio, config, options) {
|
|
28215
28215
|
const resourceParams = createResourceParams$c$1(config);
|
|
28216
28216
|
const request = createResourceRequest$g$1(resourceParams);
|
|
28217
28217
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -28226,7 +28226,7 @@ function buildNetworkSnapshot$e$1(luvio, config, options) {
|
|
|
28226
28226
|
});
|
|
28227
28227
|
}
|
|
28228
28228
|
function buildNetworkSnapshotCachePolicy$6$1(context, coercedAdapterRequestContext) {
|
|
28229
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
28229
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$i$1, 'get', false);
|
|
28230
28230
|
}
|
|
28231
28231
|
function buildCachedSnapshotCachePolicy$5$1(context, storeLookup) {
|
|
28232
28232
|
const { luvio, config } = context;
|
|
@@ -28237,7 +28237,7 @@ function buildCachedSnapshotCachePolicy$5$1(context, storeLookup) {
|
|
|
28237
28237
|
};
|
|
28238
28238
|
const cacheSnapshot = storeLookup(selector, {
|
|
28239
28239
|
config,
|
|
28240
|
-
resolve: () => buildNetworkSnapshot$
|
|
28240
|
+
resolve: () => buildNetworkSnapshot$i$1(luvio, config, snapshotRefreshOptions$2)
|
|
28241
28241
|
});
|
|
28242
28242
|
return cacheSnapshot;
|
|
28243
28243
|
}
|
|
@@ -28412,18 +28412,18 @@ function adapterFragment$2$1(luvio, config) {
|
|
|
28412
28412
|
function onFetchResponseSuccess$3$1(luvio, config, resourceParams, response) {
|
|
28413
28413
|
const snapshot = ingestSuccess$5$1(luvio, resourceParams, response, {
|
|
28414
28414
|
config,
|
|
28415
|
-
resolve: () => buildNetworkSnapshot$
|
|
28415
|
+
resolve: () => buildNetworkSnapshot$h$1(luvio, config, snapshotRefreshOptions$2)
|
|
28416
28416
|
});
|
|
28417
28417
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
28418
28418
|
}
|
|
28419
28419
|
function onFetchResponseError$2$1(luvio, config, resourceParams, response) {
|
|
28420
28420
|
const snapshot = ingestError$1$2(luvio, resourceParams, response, {
|
|
28421
28421
|
config,
|
|
28422
|
-
resolve: () => buildNetworkSnapshot$
|
|
28422
|
+
resolve: () => buildNetworkSnapshot$h$1(luvio, config, snapshotRefreshOptions$2)
|
|
28423
28423
|
});
|
|
28424
28424
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
28425
28425
|
}
|
|
28426
|
-
function buildNetworkSnapshot$
|
|
28426
|
+
function buildNetworkSnapshot$h$1(luvio, config, options) {
|
|
28427
28427
|
const resourceParams = createResourceParams$b$1(config);
|
|
28428
28428
|
const request = createResourceRequest$f$1(resourceParams);
|
|
28429
28429
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -28438,7 +28438,7 @@ function buildNetworkSnapshot$d$1(luvio, config, options) {
|
|
|
28438
28438
|
});
|
|
28439
28439
|
}
|
|
28440
28440
|
function buildNetworkSnapshotCachePolicy$5$1(context, coercedAdapterRequestContext) {
|
|
28441
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
28441
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$h$1, 'get', false);
|
|
28442
28442
|
}
|
|
28443
28443
|
function buildCachedSnapshotCachePolicy$4$1(context, storeLookup) {
|
|
28444
28444
|
const { luvio, config } = context;
|
|
@@ -28449,7 +28449,7 @@ function buildCachedSnapshotCachePolicy$4$1(context, storeLookup) {
|
|
|
28449
28449
|
};
|
|
28450
28450
|
const cacheSnapshot = storeLookup(selector, {
|
|
28451
28451
|
config,
|
|
28452
|
-
resolve: () => buildNetworkSnapshot$
|
|
28452
|
+
resolve: () => buildNetworkSnapshot$h$1(luvio, config, snapshotRefreshOptions$2)
|
|
28453
28453
|
});
|
|
28454
28454
|
return cacheSnapshot;
|
|
28455
28455
|
}
|
|
@@ -28605,6 +28605,25 @@ function createResourceRequest$e$1(config) {
|
|
|
28605
28605
|
};
|
|
28606
28606
|
}
|
|
28607
28607
|
|
|
28608
|
+
/**
|
|
28609
|
+
* Builds the dispatch options for a DML (mutating) adapter from the caller's
|
|
28610
|
+
* narrowed request context, forwarding the `requestCorrelator` so the
|
|
28611
|
+
* originating observability context reaches the network adapter.
|
|
28612
|
+
*
|
|
28613
|
+
* Returns `undefined` when no request context was supplied, preserving the
|
|
28614
|
+
* pre-existing behavior where mutating adapters dispatched with no options.
|
|
28615
|
+
*/
|
|
28616
|
+
function createDispatchResourceRequestContext$2(requestContext) {
|
|
28617
|
+
if (requestContext === undefined) {
|
|
28618
|
+
return undefined;
|
|
28619
|
+
}
|
|
28620
|
+
return {
|
|
28621
|
+
resourceRequestContext: {
|
|
28622
|
+
requestCorrelator: requestContext.requestCorrelator,
|
|
28623
|
+
},
|
|
28624
|
+
};
|
|
28625
|
+
}
|
|
28626
|
+
|
|
28608
28627
|
const adapterName$7$1 = 'executeBatchRecordOperations';
|
|
28609
28628
|
const executeBatchRecordOperations_ConfigPropertyMetadata = [
|
|
28610
28629
|
generateParamConfigMetadata$3('allOrNone', true, 2, 1, false),
|
|
@@ -28664,7 +28683,7 @@ function validateAdapterConfig$a$1(untrustedConfig, configPropertyNames) {
|
|
|
28664
28683
|
}
|
|
28665
28684
|
return config;
|
|
28666
28685
|
}
|
|
28667
|
-
function buildNetworkSnapshot$
|
|
28686
|
+
function buildNetworkSnapshot$g$1(luvio, config, options) {
|
|
28668
28687
|
const resourceParams = batchUpdateRecordsCreateResourceParams(config);
|
|
28669
28688
|
const request = createResourceRequest$e$1(resourceParams);
|
|
28670
28689
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
@@ -28682,14 +28701,14 @@ function buildNetworkSnapshot$c$1(luvio, config, options) {
|
|
|
28682
28701
|
});
|
|
28683
28702
|
}
|
|
28684
28703
|
const factory$e = (luvio) => {
|
|
28685
|
-
return function executeBatchRecordOperations(untrustedConfig) {
|
|
28704
|
+
return function executeBatchRecordOperations(untrustedConfig, requestContext) {
|
|
28686
28705
|
const config = validateAdapterConfig$a$1(untrustedConfig, executeBatchRecordOperations_ConfigPropertyNames);
|
|
28687
28706
|
// Invalid or incomplete config
|
|
28688
28707
|
if (config === null) {
|
|
28689
28708
|
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
28690
28709
|
throw new Error('Invalid config for "executeBatchRecordOperations"');
|
|
28691
28710
|
}
|
|
28692
|
-
return buildNetworkSnapshot$
|
|
28711
|
+
return buildNetworkSnapshot$g$1(luvio, config, createDispatchResourceRequestContext$2(requestContext));
|
|
28693
28712
|
};
|
|
28694
28713
|
};
|
|
28695
28714
|
|
|
@@ -28733,7 +28752,7 @@ const performUpdateRecordQuickAction_ConfigPropertyMetadata = [
|
|
|
28733
28752
|
generateParamConfigMetadata$3('fields', true, 2 /* Body */, 4 /* Unsupported */),
|
|
28734
28753
|
];
|
|
28735
28754
|
const createResourceParams$a$1 = /*#__PURE__*/ createResourceParams$14(performUpdateRecordQuickAction_ConfigPropertyMetadata);
|
|
28736
|
-
function buildNetworkSnapshot$
|
|
28755
|
+
function buildNetworkSnapshot$f$1(luvio, config, options) {
|
|
28737
28756
|
const resourceParams = createResourceParams$a$1(config);
|
|
28738
28757
|
const request = createResourceRequest$d$1(resourceParams);
|
|
28739
28758
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -28792,7 +28811,7 @@ const performQuickAction_ConfigPropertyMetadata = [
|
|
|
28792
28811
|
generateParamConfigMetadata$3('fields', true, 2 /* Body */, 4 /* Unsupported */),
|
|
28793
28812
|
];
|
|
28794
28813
|
const createResourceParams$9$1 = /*#__PURE__*/ createResourceParams$14(performQuickAction_ConfigPropertyMetadata);
|
|
28795
|
-
function buildNetworkSnapshot$
|
|
28814
|
+
function buildNetworkSnapshot$e$1(luvio, config, options) {
|
|
28796
28815
|
const resourceParams = createResourceParams$9$1(config);
|
|
28797
28816
|
const request = createResourceRequest$c$1(resourceParams);
|
|
28798
28817
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -28811,31 +28830,37 @@ function buildNetworkSnapshot$a$1(luvio, config, options) {
|
|
|
28811
28830
|
});
|
|
28812
28831
|
}
|
|
28813
28832
|
|
|
28833
|
+
function buildNetworkSnapshot$d$1(luvio, config, options) {
|
|
28834
|
+
return buildNetworkSnapshot$f$1(luvio, config, options);
|
|
28835
|
+
}
|
|
28814
28836
|
const factory$d = (luvio) => {
|
|
28815
|
-
return function (untrustedConfig) {
|
|
28837
|
+
return function (untrustedConfig, requestContext) {
|
|
28816
28838
|
const config = untrustedConfig;
|
|
28817
28839
|
const draftAdapter = configurationForRestAdapters$2.getDraftAwarePerformUpdateRecordQuickActionAdapter();
|
|
28818
28840
|
if (draftAdapter !== undefined) {
|
|
28819
28841
|
return draftAdapter(config, (config) => {
|
|
28820
28842
|
const resourceParams = createResourceParams$9$1(config);
|
|
28821
28843
|
return createResourceRequest$d$1(resourceParams);
|
|
28822
|
-
});
|
|
28844
|
+
}, requestContext);
|
|
28823
28845
|
}
|
|
28824
|
-
return buildNetworkSnapshot$
|
|
28846
|
+
return buildNetworkSnapshot$d$1(luvio, config, createDispatchResourceRequestContext$2(requestContext));
|
|
28825
28847
|
};
|
|
28826
28848
|
};
|
|
28827
28849
|
|
|
28850
|
+
function buildNetworkSnapshot$c$1(luvio, config, options) {
|
|
28851
|
+
return buildNetworkSnapshot$e$1(luvio, config, options);
|
|
28852
|
+
}
|
|
28828
28853
|
const factory$c = (luvio) => {
|
|
28829
|
-
return function (untrustedConfig) {
|
|
28854
|
+
return function (untrustedConfig, requestContext) {
|
|
28830
28855
|
const config = untrustedConfig;
|
|
28831
28856
|
const draftAdapter = configurationForRestAdapters$2.getDraftAwarePerformQuickActionAdapter();
|
|
28832
28857
|
if (draftAdapter !== undefined) {
|
|
28833
28858
|
return draftAdapter(config, (config) => {
|
|
28834
28859
|
const resourceParams = createResourceParams$9$1(config);
|
|
28835
28860
|
return createResourceRequest$c$1(resourceParams);
|
|
28836
|
-
});
|
|
28861
|
+
}, requestContext);
|
|
28837
28862
|
}
|
|
28838
|
-
return buildNetworkSnapshot$
|
|
28863
|
+
return buildNetworkSnapshot$c$1(luvio, config, createDispatchResourceRequestContext$2(requestContext));
|
|
28839
28864
|
};
|
|
28840
28865
|
};
|
|
28841
28866
|
|
|
@@ -28884,8 +28909,10 @@ function addAdditionalFieldsForNorming(layoutUserState, apiName, recordTypeId, l
|
|
|
28884
28909
|
layoutUserState.layoutType = layoutType;
|
|
28885
28910
|
layoutUserState.mode = mode;
|
|
28886
28911
|
}
|
|
28887
|
-
function updateLayoutUserState$1(luvio, config, key, updateRequest) {
|
|
28888
|
-
return luvio
|
|
28912
|
+
function updateLayoutUserState$1(luvio, config, key, updateRequest, options) {
|
|
28913
|
+
return luvio
|
|
28914
|
+
.dispatchResourceRequest(updateRequest, options)
|
|
28915
|
+
.then((response) => {
|
|
28889
28916
|
const { body } = response;
|
|
28890
28917
|
return luvio.handleSuccessResponse(() => ingestAndBroadcast(luvio, key, config, body), () => {
|
|
28891
28918
|
const cache = new StoreKeyMap();
|
|
@@ -28950,7 +28977,7 @@ function coerceConfigWithDefaults$2$1(untrusted, layoutUserStateInput) {
|
|
|
28950
28977
|
};
|
|
28951
28978
|
}
|
|
28952
28979
|
const factory$b = (luvio) => {
|
|
28953
|
-
return (untrustedObjectApiName, untrustedRecordTypeId, untrustedLayoutType, untrustedMode, untrustedLayoutUserStateInput) => {
|
|
28980
|
+
return (untrustedObjectApiName, untrustedRecordTypeId, untrustedLayoutType, untrustedMode, untrustedLayoutUserStateInput, requestContext) => {
|
|
28954
28981
|
const untrusted = {
|
|
28955
28982
|
objectApiName: untrustedObjectApiName,
|
|
28956
28983
|
recordTypeId: untrustedRecordTypeId,
|
|
@@ -28985,11 +29012,11 @@ const factory$b = (luvio) => {
|
|
|
28985
29012
|
ingestAndBroadcast(luvio, key, config, updatedLayoutUserState);
|
|
28986
29013
|
}
|
|
28987
29014
|
}
|
|
28988
|
-
return updateLayoutUserState$1(luvio, config, key, updateRequest);
|
|
29015
|
+
return updateLayoutUserState$1(luvio, config, key, updateRequest, createDispatchResourceRequestContext$2(requestContext));
|
|
28989
29016
|
};
|
|
28990
29017
|
};
|
|
28991
29018
|
|
|
28992
|
-
function buildNetworkSnapshot$
|
|
29019
|
+
function buildNetworkSnapshot$b$1(luvio, config, options, cacheSnapshot) {
|
|
28993
29020
|
const resourceParams = createResourceParams$8$1(config);
|
|
28994
29021
|
const request = prepareRequest$1$1(luvio, config, resourceParams, cacheSnapshot);
|
|
28995
29022
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
@@ -29058,14 +29085,14 @@ function adapterFragment$1$2(luvio, config) {
|
|
|
29058
29085
|
function onFetchResponseSuccess$2$1(luvio, config, resourceParams, response) {
|
|
29059
29086
|
const snapshot = ingestSuccess$R(luvio, resourceParams, response, {
|
|
29060
29087
|
config,
|
|
29061
|
-
resolve: () => buildNetworkSnapshot$
|
|
29088
|
+
resolve: () => buildNetworkSnapshot$b$1(luvio, config, snapshotRefreshOptions$2)
|
|
29062
29089
|
});
|
|
29063
29090
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
29064
29091
|
}
|
|
29065
29092
|
function onFetchResponseError$1$2(luvio, config, resourceParams, response) {
|
|
29066
29093
|
const snapshot = ingestError$K(luvio, resourceParams, response, {
|
|
29067
29094
|
config,
|
|
29068
|
-
resolve: () => buildNetworkSnapshot$
|
|
29095
|
+
resolve: () => buildNetworkSnapshot$b$1(luvio, config, snapshotRefreshOptions$2)
|
|
29069
29096
|
});
|
|
29070
29097
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
29071
29098
|
}
|
|
@@ -29145,7 +29172,7 @@ function getPaginationMetadata$4(luvio, resourceParams) {
|
|
|
29145
29172
|
return node.data.__metadata;
|
|
29146
29173
|
}
|
|
29147
29174
|
function buildNetworkSnapshotCachePolicy$4$1(context, coercedAdapterRequestContext) {
|
|
29148
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
29175
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$b$1, 'get', true);
|
|
29149
29176
|
}
|
|
29150
29177
|
function buildCachedSnapshotCachePolicy$3$1(context, storeLookup) {
|
|
29151
29178
|
const { luvio, config } = context;
|
|
@@ -29156,7 +29183,7 @@ function buildCachedSnapshotCachePolicy$3$1(context, storeLookup) {
|
|
|
29156
29183
|
};
|
|
29157
29184
|
const cacheSnapshot = storeLookup(selector, {
|
|
29158
29185
|
config,
|
|
29159
|
-
resolve: () => buildNetworkSnapshot$
|
|
29186
|
+
resolve: () => buildNetworkSnapshot$b$1(luvio, config, snapshotRefreshOptions$2)
|
|
29160
29187
|
});
|
|
29161
29188
|
if (isUnfulfilledSnapshot$1$1(cacheSnapshot) && cacheSnapshot.data !== undefined) {
|
|
29162
29189
|
context.cacheSnapshot = cacheSnapshot;
|
|
@@ -29312,7 +29339,7 @@ function getTypeCacheKeys$7$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
29312
29339
|
}
|
|
29313
29340
|
|
|
29314
29341
|
function keyBuilder$8$2(luvio, params) {
|
|
29315
|
-
return keyPrefix$3 + '::LookupValuesRepresentation:(' + 'dependentFieldBindings:' + params.queryParams.dependentFieldBindings + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'q:' + params.queryParams.q + ',' + 'searchType:' + params.queryParams.searchType + ',' + 'sourceRecordId:' + params.queryParams.sourceRecordId + ',' + 'targetApiName:' + params.queryParams.targetApiName + ',' + 'fieldApiName:' + params.urlParams.fieldApiName + ',' + 'objectApiName:' + params.urlParams.objectApiName + ',' + (params.body.sourceRecord?.allowSaveOnDuplicate === undefined ? 'sourceRecord.allowSaveOnDuplicate' : 'sourceRecord.allowSaveOnDuplicate:' + params.body.sourceRecord?.allowSaveOnDuplicate) + '::' + (params.body.sourceRecord?.apiName === undefined ? 'sourceRecord.apiName' : 'sourceRecord.apiName:' + params.body.sourceRecord?.apiName) + '::' + stableJSONStringify$
|
|
29342
|
+
return keyPrefix$3 + '::LookupValuesRepresentation:(' + 'dependentFieldBindings:' + params.queryParams.dependentFieldBindings + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'q:' + params.queryParams.q + ',' + 'searchType:' + params.queryParams.searchType + ',' + 'sourceRecordId:' + params.queryParams.sourceRecordId + ',' + 'targetApiName:' + params.queryParams.targetApiName + ',' + 'fieldApiName:' + params.urlParams.fieldApiName + ',' + 'objectApiName:' + params.urlParams.objectApiName + ',' + (params.body.sourceRecord?.allowSaveOnDuplicate === undefined ? 'sourceRecord.allowSaveOnDuplicate' : 'sourceRecord.allowSaveOnDuplicate:' + params.body.sourceRecord?.allowSaveOnDuplicate) + '::' + (params.body.sourceRecord?.apiName === undefined ? 'sourceRecord.apiName' : 'sourceRecord.apiName:' + params.body.sourceRecord?.apiName) + '::' + stableJSONStringify$3(params.body.sourceRecord?.fields) + '::' + (params.body.orderBy === undefined ? undefined : ('[' + params.body.orderBy.map(element => 'orderBy.fieldApiName:' + element.fieldApiName + '::' + 'orderBy.isAscending:' + element.isAscending).join(',') + ']')) + ')';
|
|
29316
29343
|
}
|
|
29317
29344
|
function getResponseCacheKeys$7$1(storeKeyMap, luvio, resourceParams, response) {
|
|
29318
29345
|
getTypeCacheKeys$7$2(storeKeyMap, luvio, response, () => keyBuilder$8$2(luvio, resourceParams));
|
|
@@ -29454,7 +29481,7 @@ function removeEtags$1(recordRep) {
|
|
|
29454
29481
|
}
|
|
29455
29482
|
});
|
|
29456
29483
|
}
|
|
29457
|
-
function buildNetworkSnapshot$
|
|
29484
|
+
function buildNetworkSnapshot$a$1(luvio, config, options) {
|
|
29458
29485
|
const { objectApiName, fieldApiName } = config;
|
|
29459
29486
|
const resourceParams = {
|
|
29460
29487
|
/*
|
|
@@ -29532,7 +29559,7 @@ function buildNetworkSnapshotCachePolicy$3$1(context, coercedAdapterRequestConte
|
|
|
29532
29559
|
priority: networkPriority,
|
|
29533
29560
|
};
|
|
29534
29561
|
}
|
|
29535
|
-
return buildNetworkSnapshot$
|
|
29562
|
+
return buildNetworkSnapshot$a$1(context.luvio, context.config, dispatchOptions);
|
|
29536
29563
|
}
|
|
29537
29564
|
const factory$9$1 = (luvio) => {
|
|
29538
29565
|
return (untrustedConfig, requestContext) => {
|
|
@@ -29542,7 +29569,7 @@ const factory$9$1 = (luvio) => {
|
|
|
29542
29569
|
}
|
|
29543
29570
|
const refresh = {
|
|
29544
29571
|
config,
|
|
29545
|
-
resolve: () => buildNetworkSnapshot$
|
|
29572
|
+
resolve: () => buildNetworkSnapshot$a$1(luvio, config),
|
|
29546
29573
|
};
|
|
29547
29574
|
const promiseOrSnapshot = luvio.applyCachePolicy(requestContext || {}, { config, luvio }, buildCachedSnapshot$2$1, buildNetworkSnapshotCachePolicy$3$1);
|
|
29548
29575
|
if (isPromise$2(promiseOrSnapshot)) {
|
|
@@ -29596,8 +29623,44 @@ function validateAdapterConfig$7$1(untrustedConfig, configPropertyNames) {
|
|
|
29596
29623
|
return config;
|
|
29597
29624
|
}
|
|
29598
29625
|
|
|
29626
|
+
function buildNetworkSnapshot$9$1(luvio, resourceParams, options) {
|
|
29627
|
+
const request = createResourceRequest$9$1(resourceParams);
|
|
29628
|
+
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
29629
|
+
const { body } = response;
|
|
29630
|
+
const key = keyBuilderFromType$f$1(luvio, body);
|
|
29631
|
+
return luvio.handleSuccessResponse(() => {
|
|
29632
|
+
let selectors;
|
|
29633
|
+
if (body.type === 'Theme') {
|
|
29634
|
+
selectors = select$C$2;
|
|
29635
|
+
luvio.storeIngest(key, ingest$h$2, body);
|
|
29636
|
+
}
|
|
29637
|
+
else if (body.type === 'Photo') {
|
|
29638
|
+
selectors = select$D$2;
|
|
29639
|
+
luvio.storeIngest(key, ingest$i$2, body);
|
|
29640
|
+
}
|
|
29641
|
+
else {
|
|
29642
|
+
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
29643
|
+
throw new Error('Unsupported avatar type');
|
|
29644
|
+
}
|
|
29645
|
+
// TODO [W-6804405]: support unions on fragments (only supported on links today)
|
|
29646
|
+
const snapshot = luvio.storeLookup({
|
|
29647
|
+
recordId: key,
|
|
29648
|
+
node: selectors(),
|
|
29649
|
+
variables: {},
|
|
29650
|
+
});
|
|
29651
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
29652
|
+
}, () => {
|
|
29653
|
+
const cache = new StoreKeyMap();
|
|
29654
|
+
getTypeCacheKeys$n$2(cache, luvio, body);
|
|
29655
|
+
return cache;
|
|
29656
|
+
});
|
|
29657
|
+
}, (err) => {
|
|
29658
|
+
deepFreeze$1(err);
|
|
29659
|
+
throw err;
|
|
29660
|
+
});
|
|
29661
|
+
}
|
|
29599
29662
|
const factory$8$1 = (luvio) => {
|
|
29600
|
-
return (untrustedConfig) => {
|
|
29663
|
+
return (untrustedConfig, requestContext) => {
|
|
29601
29664
|
const config = validateAdapterConfig$7$1(untrustedConfig, updateRecordAvatar_ConfigPropertyNames);
|
|
29602
29665
|
if (config === null) {
|
|
29603
29666
|
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
@@ -29615,40 +29678,7 @@ const factory$8$1 = (luvio) => {
|
|
|
29615
29678
|
actionType: config.actionType,
|
|
29616
29679
|
},
|
|
29617
29680
|
};
|
|
29618
|
-
|
|
29619
|
-
return luvio.dispatchResourceRequest(request).then((response) => {
|
|
29620
|
-
const { body } = response;
|
|
29621
|
-
const key = keyBuilderFromType$f$1(luvio, body);
|
|
29622
|
-
return luvio.handleSuccessResponse(() => {
|
|
29623
|
-
let selectors;
|
|
29624
|
-
if (body.type === 'Theme') {
|
|
29625
|
-
selectors = select$C$2;
|
|
29626
|
-
luvio.storeIngest(key, ingest$h$2, body);
|
|
29627
|
-
}
|
|
29628
|
-
else if (body.type === 'Photo') {
|
|
29629
|
-
selectors = select$D$2;
|
|
29630
|
-
luvio.storeIngest(key, ingest$i$2, body);
|
|
29631
|
-
}
|
|
29632
|
-
else {
|
|
29633
|
-
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
29634
|
-
throw new Error('Unsupported avatar type');
|
|
29635
|
-
}
|
|
29636
|
-
// TODO [W-6804405]: support unions on fragments (only supported on links today)
|
|
29637
|
-
const snapshot = luvio.storeLookup({
|
|
29638
|
-
recordId: key,
|
|
29639
|
-
node: selectors(),
|
|
29640
|
-
variables: {},
|
|
29641
|
-
});
|
|
29642
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
29643
|
-
}, () => {
|
|
29644
|
-
const cache = new StoreKeyMap();
|
|
29645
|
-
getTypeCacheKeys$n$2(cache, luvio, body);
|
|
29646
|
-
return cache;
|
|
29647
|
-
});
|
|
29648
|
-
}, (err) => {
|
|
29649
|
-
deepFreeze$1(err);
|
|
29650
|
-
throw err;
|
|
29651
|
-
});
|
|
29681
|
+
return buildNetworkSnapshot$9$1(luvio, resourceParams, createDispatchResourceRequestContext$2(requestContext));
|
|
29652
29682
|
};
|
|
29653
29683
|
};
|
|
29654
29684
|
|
|
@@ -29981,10 +30011,10 @@ function buildSelector$1(resp) {
|
|
|
29981
30011
|
function buildSnapshotRefresh$1$1(luvio, context, config) {
|
|
29982
30012
|
return {
|
|
29983
30013
|
config,
|
|
29984
|
-
resolve: () => buildNetworkSnapshot$
|
|
30014
|
+
resolve: () => buildNetworkSnapshot$8$1(luvio, context, config),
|
|
29985
30015
|
};
|
|
29986
30016
|
}
|
|
29987
|
-
function buildNetworkSnapshot$
|
|
30017
|
+
function buildNetworkSnapshot$8$1(luvio, context, config, options) {
|
|
29988
30018
|
const params = createResourceParams$7$1(config);
|
|
29989
30019
|
const request = createResourceRequest$8$1(params);
|
|
29990
30020
|
const key = keyBuilder$7$2(luvio, params);
|
|
@@ -30068,7 +30098,7 @@ function buildNetworkSnapshotCachePolicy$2$1(context, coercedAdapterRequestConte
|
|
|
30068
30098
|
priority: networkPriority,
|
|
30069
30099
|
};
|
|
30070
30100
|
}
|
|
30071
|
-
return buildNetworkSnapshot$
|
|
30101
|
+
return buildNetworkSnapshot$8$1(luvio, adapterContext, config, dispatchOptions);
|
|
30072
30102
|
}
|
|
30073
30103
|
const factory$7$1 = (luvio) => {
|
|
30074
30104
|
return luvio.withContext(function UiApi__getRecordCreateDefaults(untrusted, adapterContext, requestContext) {
|
|
@@ -30512,7 +30542,7 @@ function getRecordTypeId$1$1(adapterConfig, context) {
|
|
|
30512
30542
|
}
|
|
30513
30543
|
return contextValue;
|
|
30514
30544
|
}
|
|
30515
|
-
const buildNetworkSnapshot$
|
|
30545
|
+
const buildNetworkSnapshot$7$1 = (luvio, context, config, options) => {
|
|
30516
30546
|
const resourceParams = createResourceParams$6$1(config);
|
|
30517
30547
|
const recordTypeId = getRecordTypeId$1$1(config, context);
|
|
30518
30548
|
const { recordId } = config;
|
|
@@ -30570,7 +30600,7 @@ const buildNetworkSnapshot$6$1 = (luvio, context, config, options) => {
|
|
|
30570
30600
|
});
|
|
30571
30601
|
const errorSnapshot = luvio.errorSnapshot(response, {
|
|
30572
30602
|
config,
|
|
30573
|
-
resolve: () => buildNetworkSnapshot$
|
|
30603
|
+
resolve: () => buildNetworkSnapshot$7$1(luvio, context, config, snapshotRefreshOptions$2),
|
|
30574
30604
|
});
|
|
30575
30605
|
luvio.storeIngestError(key, errorSnapshot, RECORD_TEMPLATE_CLONE_ERROR_STORE_METADATA_PARAMS$1);
|
|
30576
30606
|
return Promise.resolve(errorSnapshot);
|
|
@@ -30590,7 +30620,7 @@ const buildCachedSnapshot$1$1 = (luvio, context, config) => {
|
|
|
30590
30620
|
};
|
|
30591
30621
|
return luvio.storeLookup(selector, {
|
|
30592
30622
|
config,
|
|
30593
|
-
resolve: () => buildNetworkSnapshot$
|
|
30623
|
+
resolve: () => buildNetworkSnapshot$7$1(luvio, context, config, snapshotRefreshOptions$2),
|
|
30594
30624
|
});
|
|
30595
30625
|
};
|
|
30596
30626
|
function buildNetworkSnapshotCachePolicy$1$2(context, coercedAdapterRequestContext) {
|
|
@@ -30608,7 +30638,7 @@ function buildNetworkSnapshotCachePolicy$1$2(context, coercedAdapterRequestConte
|
|
|
30608
30638
|
priority: networkPriority,
|
|
30609
30639
|
};
|
|
30610
30640
|
}
|
|
30611
|
-
return buildNetworkSnapshot$
|
|
30641
|
+
return buildNetworkSnapshot$7$1(luvio, adapterContext, config, dispatchOptions);
|
|
30612
30642
|
}
|
|
30613
30643
|
function buildCachedSnapshotCachePolicy$1$2(context, storeLookup) {
|
|
30614
30644
|
const { adapterContext, config, luvio, recordTypeId } = context;
|
|
@@ -30628,7 +30658,7 @@ function buildCachedSnapshotCachePolicy$1$2(context, storeLookup) {
|
|
|
30628
30658
|
};
|
|
30629
30659
|
return storeLookup(selector, {
|
|
30630
30660
|
config,
|
|
30631
|
-
resolve: () => buildNetworkSnapshot$
|
|
30661
|
+
resolve: () => buildNetworkSnapshot$7$1(luvio, adapterContext, updatedConfig, snapshotRefreshOptions$2),
|
|
30632
30662
|
});
|
|
30633
30663
|
}
|
|
30634
30664
|
const factory$6$1 = (luvio) => luvio.withContext(function getRecordTemplateClone_ContextWrapper(untrustedConfig, adapterContext, requestContext) {
|
|
@@ -31028,7 +31058,7 @@ const contextId$6 = `${keyPrefix$3}__${adapterName$2$2}`;
|
|
|
31028
31058
|
function buildSnapshotRefresh$6(luvio, context, config) {
|
|
31029
31059
|
return {
|
|
31030
31060
|
config,
|
|
31031
|
-
resolve: () => buildNetworkSnapshot$
|
|
31061
|
+
resolve: () => buildNetworkSnapshot$6$1(luvio, context, config, snapshotRefreshOptions$2),
|
|
31032
31062
|
};
|
|
31033
31063
|
}
|
|
31034
31064
|
function buildRecordTypeIdContextKey$1(objectApiName) {
|
|
@@ -31104,7 +31134,7 @@ function onFetchResponseError$P(luvio, context, config, resourceParams, error) {
|
|
|
31104
31134
|
const snapshot = ingestError$N(luvio, resourceParams, error, buildSnapshotRefresh$6(luvio, context, config));
|
|
31105
31135
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
31106
31136
|
}
|
|
31107
|
-
function buildNetworkSnapshot$
|
|
31137
|
+
function buildNetworkSnapshot$6$1(luvio, context, config, options) {
|
|
31108
31138
|
const resourceParams = createResourceParams$5$1(config);
|
|
31109
31139
|
const request = prepareRequest$8(luvio, context, config);
|
|
31110
31140
|
return luvio
|
|
@@ -31147,7 +31177,7 @@ const buildNetworkSnapshotCachePolicy$S = (context, coercedAdapterRequestContext
|
|
|
31147
31177
|
priority: networkPriority,
|
|
31148
31178
|
};
|
|
31149
31179
|
}
|
|
31150
|
-
return buildNetworkSnapshot$
|
|
31180
|
+
return buildNetworkSnapshot$6$1(luvio, adapterContext, config, dispatchOptions);
|
|
31151
31181
|
};
|
|
31152
31182
|
const buildCachedSnapshotCachePolicy$R = (context, storeLookup) => {
|
|
31153
31183
|
const { adapterContext, config, luvio, recordTypeId } = context;
|
|
@@ -31236,7 +31266,7 @@ function onResponseSuccess(luvio, response, recordIngest, conflictMap) {
|
|
|
31236
31266
|
});
|
|
31237
31267
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
31238
31268
|
}
|
|
31239
|
-
function buildNetworkSnapshot$
|
|
31269
|
+
function buildNetworkSnapshot$5$1(luvio, config, options) {
|
|
31240
31270
|
const resourceParams = createResourceParams$4$1(config);
|
|
31241
31271
|
const request = createResourceRequest$5$1(resourceParams);
|
|
31242
31272
|
const fieldTrie = BLANK_RECORD_FIELDS_TRIE$1;
|
|
@@ -31246,7 +31276,7 @@ function buildNetworkSnapshot$4$1(luvio, config) {
|
|
|
31246
31276
|
serverRequestCount: 1,
|
|
31247
31277
|
};
|
|
31248
31278
|
const recordIngest = createRecordIngest$1(fieldTrie, optionalFieldTrie, conflictMap);
|
|
31249
|
-
return luvio.dispatchResourceRequest(request).then((response) => {
|
|
31279
|
+
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
31250
31280
|
return luvio.handleSuccessResponse(() => onResponseSuccess(luvio, response, recordIngest, conflictMap), () => {
|
|
31251
31281
|
const cache = new StoreKeyMap();
|
|
31252
31282
|
getResponseCacheKeys$3$1(cache, luvio, resourceParams, response.body);
|
|
@@ -31262,13 +31292,13 @@ function createResourceRequest$4$1(config) {
|
|
|
31262
31292
|
return createResourceRequest$5$1(resourceParams);
|
|
31263
31293
|
}
|
|
31264
31294
|
const factory$4$1 = (luvio) => {
|
|
31265
|
-
return function (untrustedConfig) {
|
|
31295
|
+
return function (untrustedConfig, requestContext) {
|
|
31266
31296
|
const config = untrustedConfig;
|
|
31267
31297
|
const draftAdapter = configurationForRestAdapters$2.getDraftAwareCreateRecordAdapter();
|
|
31268
31298
|
if (draftAdapter !== undefined) {
|
|
31269
|
-
return draftAdapter(config, createResourceRequest$4$1);
|
|
31299
|
+
return draftAdapter(config, createResourceRequest$4$1, requestContext);
|
|
31270
31300
|
}
|
|
31271
|
-
return buildNetworkSnapshot$
|
|
31301
|
+
return buildNetworkSnapshot$5$1(luvio, config, createDispatchResourceRequestContext$2(requestContext));
|
|
31272
31302
|
};
|
|
31273
31303
|
};
|
|
31274
31304
|
|
|
@@ -31325,7 +31355,7 @@ function validateAdapterConfig$3$1(untrustedConfig, configPropertyNames) {
|
|
|
31325
31355
|
}
|
|
31326
31356
|
return config;
|
|
31327
31357
|
}
|
|
31328
|
-
function buildNetworkSnapshot$
|
|
31358
|
+
function buildNetworkSnapshot$4$1(luvio, config, options) {
|
|
31329
31359
|
const resourceParams = createResourceParams$3$1(config);
|
|
31330
31360
|
const request = createResourceRequest$3$1(resourceParams);
|
|
31331
31361
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -31343,29 +31373,26 @@ function buildNetworkSnapshot$3$1(luvio, config, options) {
|
|
|
31343
31373
|
throw response;
|
|
31344
31374
|
});
|
|
31345
31375
|
}
|
|
31346
|
-
const deleteRecordAdapterFactory = (luvio) => {
|
|
31347
|
-
return function UiApideleteRecord(untrustedConfig) {
|
|
31348
|
-
const config = validateAdapterConfig$3$1(untrustedConfig, deleteRecord_ConfigPropertyNames);
|
|
31349
|
-
// Invalid or incomplete config
|
|
31350
|
-
if (config === null) {
|
|
31351
|
-
throw new Error(`Invalid config for "${adapterName$1$2}"`);
|
|
31352
|
-
}
|
|
31353
|
-
return buildNetworkSnapshot$3$1(luvio, config);
|
|
31354
|
-
};
|
|
31355
|
-
};
|
|
31356
31376
|
|
|
31377
|
+
function buildNetworkSnapshot$3$1(luvio, config, options) {
|
|
31378
|
+
return buildNetworkSnapshot$4$1(luvio, config, options);
|
|
31379
|
+
}
|
|
31357
31380
|
const factory$3$1 = (luvio) => {
|
|
31358
|
-
|
|
31359
|
-
return (recordId) => {
|
|
31381
|
+
return (recordId, requestContext) => {
|
|
31360
31382
|
const config = { recordId };
|
|
31361
31383
|
const draftAdapter = configurationForRestAdapters$2.getDraftAwareDeleteRecordAdapter();
|
|
31362
31384
|
if (draftAdapter !== undefined) {
|
|
31363
31385
|
return draftAdapter(config, (config) => {
|
|
31364
31386
|
const params = createResourceParams$3$1(config);
|
|
31365
31387
|
return createResourceRequest$3$1(params);
|
|
31366
|
-
});
|
|
31388
|
+
}, requestContext);
|
|
31389
|
+
}
|
|
31390
|
+
const validatedConfig = validateAdapterConfig$3$1(config, deleteRecord_ConfigPropertyNames);
|
|
31391
|
+
if (validatedConfig === null) {
|
|
31392
|
+
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
31393
|
+
throw new Error('Invalid config for "deleteRecord"');
|
|
31367
31394
|
}
|
|
31368
|
-
return
|
|
31395
|
+
return buildNetworkSnapshot$3$1(luvio, validatedConfig, createDispatchResourceRequestContext$2(requestContext));
|
|
31369
31396
|
};
|
|
31370
31397
|
};
|
|
31371
31398
|
|
|
@@ -31814,7 +31841,7 @@ function ingestSuccess$T(luvio, resourceParams, response) {
|
|
|
31814
31841
|
});
|
|
31815
31842
|
return snapshot;
|
|
31816
31843
|
}
|
|
31817
|
-
function buildNetworkSnapshot$
|
|
31844
|
+
function buildNetworkSnapshot$1b(luvio, config, options) {
|
|
31818
31845
|
const resourceParams = createResourceParams$13(config);
|
|
31819
31846
|
const request = createResourceRequest$1e(resourceParams);
|
|
31820
31847
|
return luvio
|
|
@@ -31887,7 +31914,7 @@ const factory$1$2 = (luvio) => {
|
|
|
31887
31914
|
return createResourceRequest$1e(resourceParams);
|
|
31888
31915
|
}, requestContext);
|
|
31889
31916
|
}
|
|
31890
|
-
return buildNetworkSnapshot$
|
|
31917
|
+
return buildNetworkSnapshot$1b(luvio, config, createDispatchResourceRequestContext$1(requestContext));
|
|
31891
31918
|
};
|
|
31892
31919
|
};
|
|
31893
31920
|
function createDispatchResourceRequestContext$1(requestContext) {
|
|
@@ -32538,9 +32565,9 @@ withDefaultLuvio((luvio) => {
|
|
|
32538
32565
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
32539
32566
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
32540
32567
|
});
|
|
32541
|
-
// version: 1.
|
|
32568
|
+
// version: 1.446.0-74903f7bb8
|
|
32542
32569
|
|
|
32543
|
-
var
|
|
32570
|
+
var draftQueueMaxRetryAttemptsGate = {
|
|
32544
32571
|
isOpen: function (e) {
|
|
32545
32572
|
return e.fallback;
|
|
32546
32573
|
},
|
|
@@ -32592,6 +32619,15 @@ const getInstrumentation = () => {
|
|
|
32592
32619
|
return mockInstrumentation;
|
|
32593
32620
|
};
|
|
32594
32621
|
|
|
32622
|
+
var allowUpdatesForNonCachedRecords = {
|
|
32623
|
+
isOpen: function (e) {
|
|
32624
|
+
return e.fallback;
|
|
32625
|
+
},
|
|
32626
|
+
hasError: function () {
|
|
32627
|
+
return !0;
|
|
32628
|
+
},
|
|
32629
|
+
};
|
|
32630
|
+
|
|
32595
32631
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
32596
32632
|
|
|
32597
32633
|
/**
|
|
@@ -44209,7 +44245,9 @@ const ok$3 = (value) => new Ok$3(value);
|
|
|
44209
44245
|
const err$3 = (err2) => new Err$3(err2);
|
|
44210
44246
|
function resolvedPromiseLike$4(result) {
|
|
44211
44247
|
if (isPromiseLike$4(result)) {
|
|
44212
|
-
return result.then(
|
|
44248
|
+
return result.then(
|
|
44249
|
+
(nextResult) => nextResult
|
|
44250
|
+
);
|
|
44213
44251
|
}
|
|
44214
44252
|
return {
|
|
44215
44253
|
then: (onFulfilled, _onRejected) => {
|
|
@@ -44226,7 +44264,9 @@ function resolvedPromiseLike$4(result) {
|
|
|
44226
44264
|
}
|
|
44227
44265
|
function rejectedPromiseLike$4(reason) {
|
|
44228
44266
|
if (isPromiseLike$4(reason)) {
|
|
44229
|
-
return reason.then(
|
|
44267
|
+
return reason.then(
|
|
44268
|
+
(nextResult) => nextResult
|
|
44269
|
+
);
|
|
44230
44270
|
}
|
|
44231
44271
|
return {
|
|
44232
44272
|
then: (_onFulfilled, onRejected) => {
|
|
@@ -44249,10 +44289,10 @@ function racesync(values) {
|
|
|
44249
44289
|
let settled = void 0;
|
|
44250
44290
|
if (isPromiseLike$4(value)) {
|
|
44251
44291
|
value.then(
|
|
44252
|
-
(
|
|
44292
|
+
() => {
|
|
44253
44293
|
settled = value;
|
|
44254
44294
|
},
|
|
44255
|
-
(
|
|
44295
|
+
() => {
|
|
44256
44296
|
settled = value;
|
|
44257
44297
|
}
|
|
44258
44298
|
);
|
|
@@ -44304,9 +44344,10 @@ function deepEquals$2(x, y) {
|
|
|
44304
44344
|
}
|
|
44305
44345
|
return x === y;
|
|
44306
44346
|
}
|
|
44307
|
-
function stableJSONStringify$
|
|
44308
|
-
|
|
44309
|
-
|
|
44347
|
+
function stableJSONStringify$2(node) {
|
|
44348
|
+
const withToJSON = node;
|
|
44349
|
+
if (withToJSON && typeof withToJSON.toJSON === "function") {
|
|
44350
|
+
node = withToJSON.toJSON();
|
|
44310
44351
|
}
|
|
44311
44352
|
if (node === void 0) {
|
|
44312
44353
|
return;
|
|
@@ -44325,18 +44366,19 @@ function stableJSONStringify$3(node) {
|
|
|
44325
44366
|
if (i) {
|
|
44326
44367
|
out += ",";
|
|
44327
44368
|
}
|
|
44328
|
-
out += stableJSONStringify$
|
|
44369
|
+
out += stableJSONStringify$2(node[i]) || "null";
|
|
44329
44370
|
}
|
|
44330
44371
|
return out + "]";
|
|
44331
44372
|
}
|
|
44332
44373
|
if (node === null) {
|
|
44333
44374
|
return "null";
|
|
44334
44375
|
}
|
|
44335
|
-
const
|
|
44376
|
+
const record = node;
|
|
44377
|
+
const objKeys = keys$8(record).sort();
|
|
44336
44378
|
out = "";
|
|
44337
44379
|
for (i = 0; i < objKeys.length; i++) {
|
|
44338
44380
|
const key = objKeys[i];
|
|
44339
|
-
const value = stableJSONStringify$
|
|
44381
|
+
const value = stableJSONStringify$2(record[key]);
|
|
44340
44382
|
if (!value) {
|
|
44341
44383
|
continue;
|
|
44342
44384
|
}
|
|
@@ -44439,7 +44481,7 @@ class IdentifiableTypeRepository {
|
|
|
44439
44481
|
};
|
|
44440
44482
|
}
|
|
44441
44483
|
buildKey(params) {
|
|
44442
|
-
return `${this.namespace}::${this.typeName}(${stableJSONStringify$
|
|
44484
|
+
return `${this.namespace}::${this.typeName}(${stableJSONStringify$2(params)})`;
|
|
44443
44485
|
}
|
|
44444
44486
|
write(cache, input) {
|
|
44445
44487
|
const key = this.buildKey(this.buildKeyParams(input));
|
|
@@ -44937,7 +44979,7 @@ function findSchemaAtPath$1(document, ref) {
|
|
|
44937
44979
|
let path = "#";
|
|
44938
44980
|
for (const key of keys) {
|
|
44939
44981
|
path = `${path}/${key}`;
|
|
44940
|
-
if (current[key] === void 0) {
|
|
44982
|
+
if (typeof current !== "object" || current === null || current[key] === void 0) {
|
|
44941
44983
|
throw new InvalidRefError$1(
|
|
44942
44984
|
`Invalid $ref value '${ref}'. Cannot find target schema at '${path}'`
|
|
44943
44985
|
);
|
|
@@ -48166,6 +48208,13 @@ function customActionHandler(executor, id, draftQueue) {
|
|
|
48166
48208
|
}
|
|
48167
48209
|
|
|
48168
48210
|
const DRAFT_SEGMENT = 'DRAFT';
|
|
48211
|
+
/**
|
|
48212
|
+
* Metadata key under which an action's upload retry-attempt count is persisted.
|
|
48213
|
+
* Lives in the action's durable `metadata` bag so the count survives app restarts
|
|
48214
|
+
* (the in-memory backoff interval resets on every startQueue()). Written by the
|
|
48215
|
+
* action handler on each retry and cleared when an action is manually retried.
|
|
48216
|
+
*/
|
|
48217
|
+
const DRAFT_ACTION_RETRY_COUNT_METADATA_KEY = 'retryCount';
|
|
48169
48218
|
class DurableDraftQueue {
|
|
48170
48219
|
getHandler(id) {
|
|
48171
48220
|
const handler = this.handlers[id];
|
|
@@ -48534,10 +48583,14 @@ class DurableDraftQueue {
|
|
|
48534
48583
|
if (!isDraftError(target)) {
|
|
48535
48584
|
throw Error(`Action ${actionId} is not in Error state`);
|
|
48536
48585
|
}
|
|
48586
|
+
// A manual retry is a fresh start: clear the persisted upload retry-attempt
|
|
48587
|
+
// count so the action doesn't immediately re-cap after a single failure.
|
|
48588
|
+
const { [DRAFT_ACTION_RETRY_COUNT_METADATA_KEY]: _retryCount, ...metadataWithoutRetryCount } = target.metadata || {};
|
|
48537
48589
|
let pendingAction = {
|
|
48538
48590
|
...target,
|
|
48539
48591
|
status: DraftActionStatus.Pending,
|
|
48540
48592
|
error: undefined,
|
|
48593
|
+
metadata: metadataWithoutRetryCount,
|
|
48541
48594
|
};
|
|
48542
48595
|
await this.draftStore.writeAction(pendingAction);
|
|
48543
48596
|
await this.notifyChangedListeners({
|
|
@@ -79940,6 +79993,322 @@ function makeEnvironmentUiApiRecordDraftAware(luvio, options, env) {
|
|
|
79940
79993
|
return create$3(adapterSpecificEnvironments, {});
|
|
79941
79994
|
}
|
|
79942
79995
|
|
|
79996
|
+
/**
|
|
79997
|
+
* This function takes an unknown error and normalizes it to an Error object
|
|
79998
|
+
*/
|
|
79999
|
+
function normalizeError$1(error) {
|
|
80000
|
+
if (typeof error === 'object' && error instanceof Error) {
|
|
80001
|
+
return error;
|
|
80002
|
+
}
|
|
80003
|
+
else if (typeof error === 'string') {
|
|
80004
|
+
return new Error(error);
|
|
80005
|
+
}
|
|
80006
|
+
return new Error(stringify$5(error));
|
|
80007
|
+
}
|
|
80008
|
+
/**
|
|
80009
|
+
* Maximum number of times an action's upload will be retried before the action is
|
|
80010
|
+
* transitioned to Error and surfaced to the consumer. Caps the otherwise-unbounded
|
|
80011
|
+
* retry loop that can wedge the single-worker draft queue when an upload fails
|
|
80012
|
+
* deterministically on every dispatch. Only enforced when the
|
|
80013
|
+
* `lmr.draft-queue-max-retry-attempts` gate is open.
|
|
80014
|
+
*/
|
|
80015
|
+
const MAX_RETRY_ATTEMPTS = 5;
|
|
80016
|
+
const MAX_RETRY_ERROR_CODE = 'MAX_RETRY_ATTEMPTS_EXCEEDED';
|
|
80017
|
+
function isFetchResponse(failure) {
|
|
80018
|
+
// The union is exactly FetchResponse | Error, so "not an Error" is the FetchResponse.
|
|
80019
|
+
// This is safer than duck-typing on status/ok: a custom Error subclass that happens to
|
|
80020
|
+
// carry those properties would be misclassified by a structural check.
|
|
80021
|
+
return !(failure instanceof Error);
|
|
80022
|
+
}
|
|
80023
|
+
/**
|
|
80024
|
+
* Builds the FetchResponse-shaped error attached to an action that has exhausted its
|
|
80025
|
+
* upload retries. Shaped like a real network error response (status/statusText/ok/
|
|
80026
|
+
* headers/body) so downstream consumers (DraftManager, queue instrumentation) that
|
|
80027
|
+
* read `action.error.status`/`.body`/etc. behave consistently with a server error.
|
|
80028
|
+
*
|
|
80029
|
+
* The failure that caused the final attempt — a non-ok response (HTTP path) or a thrown
|
|
80030
|
+
* error (catch path) — is folded into the body so the surfaced error says WHAT failed,
|
|
80031
|
+
* not merely that the attempt cap was reached.
|
|
80032
|
+
*/
|
|
80033
|
+
function buildMaxRetryError(lastFailure) {
|
|
80034
|
+
const capMessage = `Draft action exceeded ${MAX_RETRY_ATTEMPTS} upload retry attempts`;
|
|
80035
|
+
if (isFetchResponse(lastFailure)) {
|
|
80036
|
+
// Preserve the server's own error detail (status + body) so the surfaced error
|
|
80037
|
+
// carries the last response that caused us to give up retrying.
|
|
80038
|
+
return {
|
|
80039
|
+
status: HttpStatusCode$2.ServerError,
|
|
80040
|
+
statusText: capMessage,
|
|
80041
|
+
ok: false,
|
|
80042
|
+
headers: {},
|
|
80043
|
+
body: {
|
|
80044
|
+
errorCode: MAX_RETRY_ERROR_CODE,
|
|
80045
|
+
message: `${capMessage}. Last response: status=${lastFailure.status} ${lastFailure.statusText}`,
|
|
80046
|
+
lastResponseStatus: lastFailure.status,
|
|
80047
|
+
lastResponseBody: lastFailure.body,
|
|
80048
|
+
},
|
|
80049
|
+
};
|
|
80050
|
+
}
|
|
80051
|
+
return {
|
|
80052
|
+
status: HttpStatusCode$2.ServerError,
|
|
80053
|
+
statusText: capMessage,
|
|
80054
|
+
ok: false,
|
|
80055
|
+
headers: {},
|
|
80056
|
+
body: {
|
|
80057
|
+
errorCode: MAX_RETRY_ERROR_CODE,
|
|
80058
|
+
message: `${capMessage}. Last error: ${lastFailure.name}: ${lastFailure.message}`,
|
|
80059
|
+
lastErrorName: lastFailure.name,
|
|
80060
|
+
lastErrorMessage: lastFailure.message,
|
|
80061
|
+
},
|
|
80062
|
+
};
|
|
80063
|
+
}
|
|
80064
|
+
|
|
80065
|
+
function attachObserversToAdapterRequestContext(observers, adapterRequestContext) {
|
|
80066
|
+
if (adapterRequestContext === undefined) {
|
|
80067
|
+
return { eventObservers: observers };
|
|
80068
|
+
}
|
|
80069
|
+
if (adapterRequestContext.eventObservers === undefined) {
|
|
80070
|
+
return { ...adapterRequestContext, eventObservers: observers };
|
|
80071
|
+
}
|
|
80072
|
+
return {
|
|
80073
|
+
...adapterRequestContext,
|
|
80074
|
+
eventObservers: adapterRequestContext.eventObservers.concat(observers),
|
|
80075
|
+
};
|
|
80076
|
+
}
|
|
80077
|
+
/**
|
|
80078
|
+
* Use this method to sanitize the unknown error object when
|
|
80079
|
+
* we are unsure of the type of the error thrown
|
|
80080
|
+
*
|
|
80081
|
+
* @param err Unknown object to sanitize
|
|
80082
|
+
* @returns an instance of error
|
|
80083
|
+
*/
|
|
80084
|
+
function normalizeError$2(err) {
|
|
80085
|
+
if (err instanceof Error) {
|
|
80086
|
+
return err;
|
|
80087
|
+
}
|
|
80088
|
+
else if (typeof err === 'string') {
|
|
80089
|
+
return new Error(err);
|
|
80090
|
+
}
|
|
80091
|
+
return new Error(stringify$5(err));
|
|
80092
|
+
}
|
|
80093
|
+
// metrics
|
|
80094
|
+
/** GraphQL */
|
|
80095
|
+
const GRAPHQL_EVAL_ERROR = 'gql-eval-error';
|
|
80096
|
+
const GRAPHQL_EVAL_DB_READ_DURATION = 'gql-eval-db-read-duration';
|
|
80097
|
+
const GRAPHQL_EVAL_ROOT_QUERY_COUNT = 'gql-eval-root-query-count';
|
|
80098
|
+
const GRAPHQL_EVAL_TOTAL_QUERY_COUNT = 'gql-eval-total-query-count';
|
|
80099
|
+
const GRAPHQL_EVAL_MAX_CHILD_RELATIONSHIPS_COUNT = 'gql-eval-max-child-count';
|
|
80100
|
+
const GRAPHQL_EVAL_QUERY_RECORD_COUNT = 'gql-eval-query-record-count';
|
|
80101
|
+
const GRAPHQL_SNAPSHOT_REFRESH_UNDEFINED = 'gql-snapshot-refresh-undefined';
|
|
80102
|
+
/** Draft Queue */
|
|
80103
|
+
const DRAFT_QUEUE_STATE_STARTED = 'draft-queue-state-started';
|
|
80104
|
+
const DRAFT_QUEUE_STATE_ERROR = 'draft-queue-state-error';
|
|
80105
|
+
const DRAFT_QUEUE_STATE_WAITING = 'draft-queue-state-waiting';
|
|
80106
|
+
const DRAFT_QUEUE_STATE_STOPPED = 'draft-queue-state-stopped';
|
|
80107
|
+
const DRAFT_QUEUE_ACTION_ADDED = 'draft-queue-action-added';
|
|
80108
|
+
const DRAFT_QUEUE_ACTION_UPLOADING = 'draft-queue-action-uploading';
|
|
80109
|
+
const DRAFT_QUEUE_ACTION_COMPLETED = 'draft-queue-action-completed';
|
|
80110
|
+
const DRAFT_QUEUE_ACTION_DELETED = 'draft-queue-action-deleted';
|
|
80111
|
+
const DRAFT_QUEUE_ACTION_UPDATED = 'draft-queue-action-updated';
|
|
80112
|
+
const DRAFT_QUEUE_ACTION_FAILED = 'draft-queue-action-failed';
|
|
80113
|
+
const DRAFT_QUEUE_ACTION_UPLOAD_ERROR = 'draft-queue-action-upload-error';
|
|
80114
|
+
const DRAFT_QUEUE_TOTAL_MERGE_ACTIONS_CALLS = 'draft-queue-total-mergeActions-calls';
|
|
80115
|
+
/** Content Document */
|
|
80116
|
+
const CREATE_CONTENT_DOCUMENT_AND_VERSION_TOTAL_SYNTHESIZE_CALLS = 'content-document-version-total-synthesize-calls';
|
|
80117
|
+
const CREATE_CONTENT_DOCUMENT_AND_VERSION_DRAFT_SYNTHESIZE_ERROR = 'create-content-document-version-draft-synthesize-error';
|
|
80118
|
+
/** Priming */
|
|
80119
|
+
const PRIMING_TOTAL_SESSION_COUNT = 'priming-total-session-count';
|
|
80120
|
+
const PRIMING_TOTAL_ERROR_COUNT = 'priming-total-error-count';
|
|
80121
|
+
const PRIMING_TOTAL_PRIMED_COUNT = 'priming-total-primed-count';
|
|
80122
|
+
const PRIMING_TOTAL_CONFLICT_COUNT = 'priming-total-conflict-count';
|
|
80123
|
+
// logs
|
|
80124
|
+
const GRAPHQL_QUERY_PARSE_ERROR = 'gql-query-parse-error';
|
|
80125
|
+
const GRAPHQL_SQL_EVAL_PRECONDITION_ERROR = 'gql-sql-pre-eval-error';
|
|
80126
|
+
const GRAPHQL_CREATE_SNAPSHOT_ERROR = 'gql-create-snapshot-error';
|
|
80127
|
+
const DRAFT_AWARE_CREATE_CONTENT_DOCUMENT_AND_VERSION_ERROR = 'draft-aware-create-content-document-and-version-error';
|
|
80128
|
+
/** Garbage Collection */
|
|
80129
|
+
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_COUNT = 'garbage-collection-aggressive-trim-count';
|
|
80130
|
+
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_RECORDS_TRIMMED = 'garbage-collection-aggressive-trim-records-trimmed';
|
|
80131
|
+
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_TOTAL_RECORDS_BEFORE_TRIM = 'garbage-collection-aggressive-trim-total-records-before-trim';
|
|
80132
|
+
const ldsMobileInstrumentation$2 = getInstrumentation();
|
|
80133
|
+
const nimbusLogger = typeof __nimbus !== 'undefined' &&
|
|
80134
|
+
__nimbus.plugins !== undefined &&
|
|
80135
|
+
__nimbus.plugins.JSLoggerPlugin !== undefined
|
|
80136
|
+
? __nimbus.plugins.JSLoggerPlugin
|
|
80137
|
+
: undefined;
|
|
80138
|
+
function reportGraphqlQueryParseError(err) {
|
|
80139
|
+
const error = normalizeError$2(err);
|
|
80140
|
+
const errorCode = GRAPHQL_QUERY_PARSE_ERROR;
|
|
80141
|
+
// Metric
|
|
80142
|
+
reportGraphqlAdapterError(errorCode);
|
|
80143
|
+
// Log
|
|
80144
|
+
ldsMobileInstrumentation$2.error(error, errorCode);
|
|
80145
|
+
}
|
|
80146
|
+
function reportGraphqlSqlEvalPreconditionError(err) {
|
|
80147
|
+
const error = normalizeError$2(err);
|
|
80148
|
+
const errorCode = GRAPHQL_SQL_EVAL_PRECONDITION_ERROR;
|
|
80149
|
+
// Metric
|
|
80150
|
+
reportGraphqlAdapterError(errorCode);
|
|
80151
|
+
// Log
|
|
80152
|
+
ldsMobileInstrumentation$2.error(error, errorCode);
|
|
80153
|
+
}
|
|
80154
|
+
function reportGraphqlCreateSnapshotError(err) {
|
|
80155
|
+
const error = normalizeError$2(err);
|
|
80156
|
+
const errorCode = GRAPHQL_CREATE_SNAPSHOT_ERROR;
|
|
80157
|
+
// Metric
|
|
80158
|
+
reportGraphqlAdapterError(errorCode);
|
|
80159
|
+
// Log
|
|
80160
|
+
ldsMobileInstrumentation$2.error(error, errorCode);
|
|
80161
|
+
}
|
|
80162
|
+
function reportGraphQlEvalDbReadDuration(duration) {
|
|
80163
|
+
ldsMobileInstrumentation$2.trackValue(GRAPHQL_EVAL_DB_READ_DURATION, duration);
|
|
80164
|
+
}
|
|
80165
|
+
function reportGraphqlAdapterError(errorCode) {
|
|
80166
|
+
// Increment overall count with errorCode as tag
|
|
80167
|
+
ldsMobileInstrumentation$2.incrementCounter(GRAPHQL_EVAL_ERROR, 1, true, { errorCode });
|
|
80168
|
+
}
|
|
80169
|
+
function reportGraphqlQueryInstrumentation(data) {
|
|
80170
|
+
const queryBuckets = [1, 2, 3, 4, 5, 10, 20, 50, 100];
|
|
80171
|
+
const recordBuckets = [
|
|
80172
|
+
1, 5, 10, 20, 50, 100, 1000, 2000, 5000, 10000, 50000, 100000, 1000000,
|
|
80173
|
+
];
|
|
80174
|
+
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_ROOT_QUERY_COUNT, data.rootQueryCount, queryBuckets);
|
|
80175
|
+
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_TOTAL_QUERY_COUNT, data.totalQueryCount, queryBuckets);
|
|
80176
|
+
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_MAX_CHILD_RELATIONSHIPS_COUNT, data.maxChildRelationships, queryBuckets);
|
|
80177
|
+
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_QUERY_RECORD_COUNT, data.requestedRecordCount, recordBuckets);
|
|
80178
|
+
}
|
|
80179
|
+
function incrementGraphQLRefreshUndfined() {
|
|
80180
|
+
ldsMobileInstrumentation$2.incrementCounter(GRAPHQL_SNAPSHOT_REFRESH_UNDEFINED);
|
|
80181
|
+
}
|
|
80182
|
+
function reportDraftActionEvent(state, draftCount, message) {
|
|
80183
|
+
if (nimbusLogger) {
|
|
80184
|
+
nimbusLogger.logInfo(`Draft action event: ${state}, depth: ${draftCount}${message ? `, message: ${message}` : ''}`);
|
|
80185
|
+
}
|
|
80186
|
+
switch (state) {
|
|
80187
|
+
case 'added':
|
|
80188
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_ADDED);
|
|
80189
|
+
break;
|
|
80190
|
+
case 'uploading':
|
|
80191
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_UPLOADING);
|
|
80192
|
+
break;
|
|
80193
|
+
case 'completed':
|
|
80194
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_COMPLETED);
|
|
80195
|
+
break;
|
|
80196
|
+
case 'deleted':
|
|
80197
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_DELETED);
|
|
80198
|
+
break;
|
|
80199
|
+
case 'failed':
|
|
80200
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_FAILED, 1, true);
|
|
80201
|
+
break;
|
|
80202
|
+
case 'updated':
|
|
80203
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_UPDATED);
|
|
80204
|
+
break;
|
|
80205
|
+
}
|
|
80206
|
+
}
|
|
80207
|
+
/**
|
|
80208
|
+
* Reports an exception thrown while uploading a draft action. The thrown error is
|
|
80209
|
+
* otherwise swallowed by the upload handler's retry path, leaving the failure
|
|
80210
|
+
* invisible in telemetry; this surfaces it to o11y (log + counter) so a deterministic
|
|
80211
|
+
* upload failure can be diagnosed instead of silently retried forever.
|
|
80212
|
+
*
|
|
80213
|
+
* PII: the device log line carries only the handler id, retry attempt, and the error
|
|
80214
|
+
* NAME (e.g. "TypeError") — never the free-text error message, which can embed record
|
|
80215
|
+
* ids (URL path segments) or server field-validation strings. The full normalized error
|
|
80216
|
+
* (message + stack) is handed only to `ldsMobileInstrumentation.error`, the structured
|
|
80217
|
+
* o11y error pipeline responsible for scrubbing/handling that detail. Also does NOT log
|
|
80218
|
+
* the action's targetId/tag or any request body/field values.
|
|
80219
|
+
*/
|
|
80220
|
+
function reportDraftActionUploadError(error, handlerId, attempt) {
|
|
80221
|
+
const normalized = normalizeError$2(error);
|
|
80222
|
+
if (nimbusLogger) {
|
|
80223
|
+
nimbusLogger.logError(`Draft action upload error: handler=${handlerId}, attempt=${attempt}, name=${normalized.name}`);
|
|
80224
|
+
}
|
|
80225
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_UPLOAD_ERROR, 1, true, {
|
|
80226
|
+
handlerId,
|
|
80227
|
+
});
|
|
80228
|
+
ldsMobileInstrumentation$2.error(normalized, DRAFT_QUEUE_ACTION_UPLOAD_ERROR);
|
|
80229
|
+
}
|
|
80230
|
+
function reportDraftQueueState(state, draftCount) {
|
|
80231
|
+
if (nimbusLogger) {
|
|
80232
|
+
nimbusLogger.logInfo(`Draft state changed: ${state}, depth: ${draftCount}`);
|
|
80233
|
+
}
|
|
80234
|
+
switch (state) {
|
|
80235
|
+
case 'started':
|
|
80236
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_STARTED);
|
|
80237
|
+
break;
|
|
80238
|
+
case 'error':
|
|
80239
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_ERROR, 1, true);
|
|
80240
|
+
break;
|
|
80241
|
+
case 'waiting':
|
|
80242
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_WAITING);
|
|
80243
|
+
break;
|
|
80244
|
+
case 'stopped':
|
|
80245
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_STOPPED);
|
|
80246
|
+
break;
|
|
80247
|
+
}
|
|
80248
|
+
}
|
|
80249
|
+
function reportDraftAwareContentDocumentVersionSynthesizeError(err) {
|
|
80250
|
+
let error;
|
|
80251
|
+
if (err.body !== undefined) {
|
|
80252
|
+
error = err.body;
|
|
80253
|
+
}
|
|
80254
|
+
else {
|
|
80255
|
+
error = normalizeError$2(err);
|
|
80256
|
+
}
|
|
80257
|
+
const errorCode = DRAFT_AWARE_CREATE_CONTENT_DOCUMENT_AND_VERSION_ERROR;
|
|
80258
|
+
const errorType = error.errorType;
|
|
80259
|
+
const tags = {
|
|
80260
|
+
errorCode,
|
|
80261
|
+
};
|
|
80262
|
+
if (errorType !== undefined) {
|
|
80263
|
+
tags.errorType = errorType;
|
|
80264
|
+
}
|
|
80265
|
+
// Metric
|
|
80266
|
+
ldsMobileInstrumentation$2.incrementCounter(CREATE_CONTENT_DOCUMENT_AND_VERSION_DRAFT_SYNTHESIZE_ERROR, 1, true, tags);
|
|
80267
|
+
// Log
|
|
80268
|
+
ldsMobileInstrumentation$2.error(error, errorCode);
|
|
80269
|
+
}
|
|
80270
|
+
function reportDraftAwareContentVersionSynthesizeCalls(mimeType) {
|
|
80271
|
+
ldsMobileInstrumentation$2.incrementCounter(CREATE_CONTENT_DOCUMENT_AND_VERSION_TOTAL_SYNTHESIZE_CALLS, 1, undefined, { mimeType });
|
|
80272
|
+
}
|
|
80273
|
+
/** Priming */
|
|
80274
|
+
function reportPrimingSessionCreated() {
|
|
80275
|
+
ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_SESSION_COUNT, 1, undefined, {});
|
|
80276
|
+
}
|
|
80277
|
+
function reportPrimingError(errorType, recordCount) {
|
|
80278
|
+
ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_ERROR_COUNT, recordCount, undefined, {
|
|
80279
|
+
errorType,
|
|
80280
|
+
});
|
|
80281
|
+
}
|
|
80282
|
+
function reportPrimingSuccess(recordCount) {
|
|
80283
|
+
ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_PRIMED_COUNT, recordCount, undefined);
|
|
80284
|
+
}
|
|
80285
|
+
function reportPrimingConflict(resolutionType, recordCount) {
|
|
80286
|
+
ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_CONFLICT_COUNT, recordCount, undefined, {
|
|
80287
|
+
resolutionType,
|
|
80288
|
+
});
|
|
80289
|
+
}
|
|
80290
|
+
/** Network */
|
|
80291
|
+
function reportChunkCandidateUrlLength(urlLength) {
|
|
80292
|
+
const buckets = [8000, 10000, 12000, 14000, 16000];
|
|
80293
|
+
ldsMobileInstrumentation$2.bucketValue('chunk-candidate-url-length-histogram', urlLength, buckets);
|
|
80294
|
+
}
|
|
80295
|
+
/** Garbage Collection */
|
|
80296
|
+
function reportAggressiveTrimTriggered(trimCount, beforeTrimRecordCount, totalRecordsTrimmed) {
|
|
80297
|
+
ldsMobileInstrumentation$2.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_COUNT, trimCount);
|
|
80298
|
+
ldsMobileInstrumentation$2.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_TOTAL_RECORDS_BEFORE_TRIM, beforeTrimRecordCount);
|
|
80299
|
+
ldsMobileInstrumentation$2.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_RECORDS_TRIMMED, totalRecordsTrimmed);
|
|
80300
|
+
}
|
|
80301
|
+
/** One Store Cache Purge */
|
|
80302
|
+
const ONESTORE_CACHE_PURGING_RECORDS_PURGED = 'onestore-cache-purging-records-purged';
|
|
80303
|
+
const ONESTORE_CACHE_PURGING_RECORDS_ERROR = 'onestore-cache-purging-records-error';
|
|
80304
|
+
function reportOneStoreRecordsPurgedFromCache(recordsPurged) {
|
|
80305
|
+
ldsMobileInstrumentation$2.trackValue(ONESTORE_CACHE_PURGING_RECORDS_PURGED, recordsPurged);
|
|
80306
|
+
}
|
|
80307
|
+
function reportOneStoreCachePurgingError(error) {
|
|
80308
|
+
const errorMessage = normalizeError$2(error);
|
|
80309
|
+
ldsMobileInstrumentation$2.error(errorMessage, ONESTORE_CACHE_PURGING_RECORDS_ERROR);
|
|
80310
|
+
}
|
|
80311
|
+
|
|
79943
80312
|
const HTTP_HEADER_RETRY_AFTER = 'Retry-After';
|
|
79944
80313
|
const HTTP_HEADER_IDEMPOTENCY_KEY = 'Idempotency-Key';
|
|
79945
80314
|
const ERROR_CODE_IDEMPOTENCY_FEATURE_NOT_ENABLED = 'IDEMPOTENCY_FEATURE_NOT_ENABLED';
|
|
@@ -80093,20 +80462,89 @@ class AbstractResourceRequestActionHandler {
|
|
|
80093
80462
|
shouldRetry = true;
|
|
80094
80463
|
actionDataChanged = true;
|
|
80095
80464
|
}
|
|
80096
|
-
|
|
80097
|
-
|
|
80098
|
-
|
|
80465
|
+
if (shouldRetry) {
|
|
80466
|
+
// Funnel the retry through the cap: when the gate is open this persists
|
|
80467
|
+
// the attempt count and errors out once the cap is hit; when the gate is
|
|
80468
|
+
// closed it behaves exactly as before. The non-ok response is the failure
|
|
80469
|
+
// that would otherwise be retried.
|
|
80470
|
+
await this.retryOrCap(updatedAction, response, actionErrored, retryDelayInMs, actionDataChanged);
|
|
80471
|
+
}
|
|
80472
|
+
else {
|
|
80473
|
+
await actionErrored({
|
|
80099
80474
|
...updatedAction,
|
|
80100
80475
|
error: response,
|
|
80101
80476
|
status: DraftActionStatus.Error,
|
|
80102
|
-
},
|
|
80477
|
+
}, false, retryDelayInMs, actionDataChanged);
|
|
80478
|
+
}
|
|
80103
80479
|
return ProcessActionResult.ACTION_ERRORED;
|
|
80104
80480
|
}
|
|
80105
80481
|
catch (e) {
|
|
80106
|
-
|
|
80482
|
+
// #3 (ungated): the thrown exception is otherwise swallowed here, leaving a
|
|
80483
|
+
// deterministic upload failure invisible in telemetry. Surface it to o11y
|
|
80484
|
+
// before deciding whether to retry.
|
|
80485
|
+
const error = normalizeError$1(e);
|
|
80486
|
+
const attempt = this.getUploadRetryCount(action) + 1;
|
|
80487
|
+
reportDraftActionUploadError(error, this.handlerId, attempt);
|
|
80488
|
+
await this.retryOrCap(action, error, actionErrored);
|
|
80107
80489
|
return ProcessActionResult.NETWORK_ERROR;
|
|
80108
80490
|
}
|
|
80109
80491
|
}
|
|
80492
|
+
/**
|
|
80493
|
+
* Reads the persisted upload retry-attempt count from the action's durable metadata
|
|
80494
|
+
* bag. The count lives in metadata (rather than in-memory) so it survives app
|
|
80495
|
+
* restarts and queue re-creation — the failure modes that let the unbounded retry
|
|
80496
|
+
* loop run for days.
|
|
80497
|
+
*/
|
|
80498
|
+
getUploadRetryCount(action) {
|
|
80499
|
+
const parsed = Number(action.metadata?.[DRAFT_ACTION_RETRY_COUNT_METADATA_KEY]);
|
|
80500
|
+
// Guard against a missing/corrupt persisted value: a NaN, fractional, or negative
|
|
80501
|
+
// count must never weaken the cap. Floor to a non-negative integer, defaulting to 0.
|
|
80502
|
+
if (!Number.isFinite(parsed) || parsed < 0) {
|
|
80503
|
+
return 0;
|
|
80504
|
+
}
|
|
80505
|
+
return Math.floor(parsed);
|
|
80506
|
+
}
|
|
80507
|
+
/**
|
|
80508
|
+
* Enforces the upload retry-attempt cap around the queue's `actionErrored` callback.
|
|
80509
|
+
* Both retry paths — a retryable HTTP error and a thrown exception — funnel through
|
|
80510
|
+
* here.
|
|
80511
|
+
*
|
|
80512
|
+
* The entire cap behavior is gated behind `lmr.draft-queue-max-retry-attempts`. When
|
|
80513
|
+
* the gate is CLOSED this is a transparent passthrough: it issues the same
|
|
80514
|
+
* `actionErrored(action, true, ...)` retry the queue made before this change, and
|
|
80515
|
+
* writes no extra metadata. When the gate is OPEN it persists an incremented attempt
|
|
80516
|
+
* count to the action's durable metadata and, once the action has failed
|
|
80517
|
+
* {@link MAX_RETRY_ATTEMPTS} times, transitions it to Error (carrying a
|
|
80518
|
+
* FetchResponse-shaped error that names the failure that exhausted the retries)
|
|
80519
|
+
* instead of scheduling yet another retry.
|
|
80520
|
+
*/
|
|
80521
|
+
async retryOrCap(action, lastFailure, actionErrored, retryDelayInMs, actionDataChanged) {
|
|
80522
|
+
if (!draftQueueMaxRetryAttemptsGate.isOpen({ fallback: false })) {
|
|
80523
|
+
// Gate closed: preserve the pre-existing unbounded-retry behavior exactly.
|
|
80524
|
+
await actionErrored(action, true, retryDelayInMs, actionDataChanged);
|
|
80525
|
+
return;
|
|
80526
|
+
}
|
|
80527
|
+
const attempt = this.getUploadRetryCount(action) + 1;
|
|
80528
|
+
if (attempt >= MAX_RETRY_ATTEMPTS) {
|
|
80529
|
+
await actionErrored({
|
|
80530
|
+
...action,
|
|
80531
|
+
error: buildMaxRetryError(lastFailure),
|
|
80532
|
+
status: DraftActionStatus.Error,
|
|
80533
|
+
}, false);
|
|
80534
|
+
return;
|
|
80535
|
+
}
|
|
80536
|
+
// Persist the incremented attempt count so it survives restarts. Forcing
|
|
80537
|
+
// actionDataChanged ensures the queue writes the updated metadata before the
|
|
80538
|
+
// action is rescheduled for retry.
|
|
80539
|
+
const retryingAction = {
|
|
80540
|
+
...action,
|
|
80541
|
+
metadata: {
|
|
80542
|
+
...action.metadata,
|
|
80543
|
+
[DRAFT_ACTION_RETRY_COUNT_METADATA_KEY]: String(attempt),
|
|
80544
|
+
},
|
|
80545
|
+
};
|
|
80546
|
+
await actionErrored(retryingAction, true, retryDelayInMs, true);
|
|
80547
|
+
}
|
|
80110
80548
|
async handleActionEnqueued(action) {
|
|
80111
80549
|
const impactedKeys = await this.recordService.setSideEffectsForActions([action]);
|
|
80112
80550
|
await this.recordService.reapplyRecordSideEffects(impactedKeys);
|
|
@@ -80270,6 +80708,13 @@ class AbstractResourceRequestActionHandler {
|
|
|
80270
80708
|
this.isActionOfType(sourceAction)) {
|
|
80271
80709
|
targetAction.status = DraftActionStatus.Pending;
|
|
80272
80710
|
targetAction.data = sourceAction.data;
|
|
80711
|
+
// Replacing an action's data re-queues it as a fresh upload, so the persisted
|
|
80712
|
+
// upload retry-attempt count must not carry over — otherwise a previously-
|
|
80713
|
+
// throttled action could immediately re-hit the cap on its first new attempt.
|
|
80714
|
+
// (Mirrors the same clear in mergeActions.)
|
|
80715
|
+
if (targetAction.metadata !== undefined) {
|
|
80716
|
+
delete targetAction.metadata[DRAFT_ACTION_RETRY_COUNT_METADATA_KEY];
|
|
80717
|
+
}
|
|
80273
80718
|
return targetAction;
|
|
80274
80719
|
}
|
|
80275
80720
|
else {
|
|
@@ -80320,6 +80765,11 @@ class AbstractResourceRequestActionHandler {
|
|
|
80320
80765
|
}
|
|
80321
80766
|
// overlay metadata
|
|
80322
80767
|
merged.metadata = { ...targetMetadata, ...sourceMetadata };
|
|
80768
|
+
// A merge folds new user data into the action and re-queues it as a fresh upload,
|
|
80769
|
+
// so the persisted upload retry-attempt count must not carry over — otherwise a
|
|
80770
|
+
// previously-throttled action could immediately re-hit the cap on its first new
|
|
80771
|
+
// attempt.
|
|
80772
|
+
delete merged.metadata[DRAFT_ACTION_RETRY_COUNT_METADATA_KEY];
|
|
80323
80773
|
// put status back to pending to auto upload if queue is active and targed is at the head.
|
|
80324
80774
|
merged.status = DraftActionStatus.Pending;
|
|
80325
80775
|
return merged;
|
|
@@ -80931,229 +81381,6 @@ class AbstractQuickActionHandler extends AbstractResourceRequestActionHandler {
|
|
|
80931
81381
|
}
|
|
80932
81382
|
}
|
|
80933
81383
|
|
|
80934
|
-
function attachObserversToAdapterRequestContext(observers, adapterRequestContext) {
|
|
80935
|
-
if (adapterRequestContext === undefined) {
|
|
80936
|
-
return { eventObservers: observers };
|
|
80937
|
-
}
|
|
80938
|
-
if (adapterRequestContext.eventObservers === undefined) {
|
|
80939
|
-
return { ...adapterRequestContext, eventObservers: observers };
|
|
80940
|
-
}
|
|
80941
|
-
return {
|
|
80942
|
-
...adapterRequestContext,
|
|
80943
|
-
eventObservers: adapterRequestContext.eventObservers.concat(observers),
|
|
80944
|
-
};
|
|
80945
|
-
}
|
|
80946
|
-
/**
|
|
80947
|
-
* Use this method to sanitize the unknown error object when
|
|
80948
|
-
* we are unsure of the type of the error thrown
|
|
80949
|
-
*
|
|
80950
|
-
* @param err Unknown object to sanitize
|
|
80951
|
-
* @returns an instance of error
|
|
80952
|
-
*/
|
|
80953
|
-
function normalizeError$1(err) {
|
|
80954
|
-
if (err instanceof Error) {
|
|
80955
|
-
return err;
|
|
80956
|
-
}
|
|
80957
|
-
else if (typeof err === 'string') {
|
|
80958
|
-
return new Error(err);
|
|
80959
|
-
}
|
|
80960
|
-
return new Error(stringify$5(err));
|
|
80961
|
-
}
|
|
80962
|
-
// metrics
|
|
80963
|
-
/** GraphQL */
|
|
80964
|
-
const GRAPHQL_EVAL_ERROR = 'gql-eval-error';
|
|
80965
|
-
const GRAPHQL_EVAL_DB_READ_DURATION = 'gql-eval-db-read-duration';
|
|
80966
|
-
const GRAPHQL_EVAL_ROOT_QUERY_COUNT = 'gql-eval-root-query-count';
|
|
80967
|
-
const GRAPHQL_EVAL_TOTAL_QUERY_COUNT = 'gql-eval-total-query-count';
|
|
80968
|
-
const GRAPHQL_EVAL_MAX_CHILD_RELATIONSHIPS_COUNT = 'gql-eval-max-child-count';
|
|
80969
|
-
const GRAPHQL_EVAL_QUERY_RECORD_COUNT = 'gql-eval-query-record-count';
|
|
80970
|
-
const GRAPHQL_SNAPSHOT_REFRESH_UNDEFINED = 'gql-snapshot-refresh-undefined';
|
|
80971
|
-
/** Draft Queue */
|
|
80972
|
-
const DRAFT_QUEUE_STATE_STARTED = 'draft-queue-state-started';
|
|
80973
|
-
const DRAFT_QUEUE_STATE_ERROR = 'draft-queue-state-error';
|
|
80974
|
-
const DRAFT_QUEUE_STATE_WAITING = 'draft-queue-state-waiting';
|
|
80975
|
-
const DRAFT_QUEUE_STATE_STOPPED = 'draft-queue-state-stopped';
|
|
80976
|
-
const DRAFT_QUEUE_ACTION_ADDED = 'draft-queue-action-added';
|
|
80977
|
-
const DRAFT_QUEUE_ACTION_UPLOADING = 'draft-queue-action-uploading';
|
|
80978
|
-
const DRAFT_QUEUE_ACTION_COMPLETED = 'draft-queue-action-completed';
|
|
80979
|
-
const DRAFT_QUEUE_ACTION_DELETED = 'draft-queue-action-deleted';
|
|
80980
|
-
const DRAFT_QUEUE_ACTION_UPDATED = 'draft-queue-action-updated';
|
|
80981
|
-
const DRAFT_QUEUE_ACTION_FAILED = 'draft-queue-action-failed';
|
|
80982
|
-
const DRAFT_QUEUE_TOTAL_MERGE_ACTIONS_CALLS = 'draft-queue-total-mergeActions-calls';
|
|
80983
|
-
/** Content Document */
|
|
80984
|
-
const CREATE_CONTENT_DOCUMENT_AND_VERSION_TOTAL_SYNTHESIZE_CALLS = 'content-document-version-total-synthesize-calls';
|
|
80985
|
-
const CREATE_CONTENT_DOCUMENT_AND_VERSION_DRAFT_SYNTHESIZE_ERROR = 'create-content-document-version-draft-synthesize-error';
|
|
80986
|
-
/** Priming */
|
|
80987
|
-
const PRIMING_TOTAL_SESSION_COUNT = 'priming-total-session-count';
|
|
80988
|
-
const PRIMING_TOTAL_ERROR_COUNT = 'priming-total-error-count';
|
|
80989
|
-
const PRIMING_TOTAL_PRIMED_COUNT = 'priming-total-primed-count';
|
|
80990
|
-
const PRIMING_TOTAL_CONFLICT_COUNT = 'priming-total-conflict-count';
|
|
80991
|
-
// logs
|
|
80992
|
-
const GRAPHQL_QUERY_PARSE_ERROR = 'gql-query-parse-error';
|
|
80993
|
-
const GRAPHQL_SQL_EVAL_PRECONDITION_ERROR = 'gql-sql-pre-eval-error';
|
|
80994
|
-
const GRAPHQL_CREATE_SNAPSHOT_ERROR = 'gql-create-snapshot-error';
|
|
80995
|
-
const DRAFT_AWARE_CREATE_CONTENT_DOCUMENT_AND_VERSION_ERROR = 'draft-aware-create-content-document-and-version-error';
|
|
80996
|
-
/** Garbage Collection */
|
|
80997
|
-
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_COUNT = 'garbage-collection-aggressive-trim-count';
|
|
80998
|
-
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_RECORDS_TRIMMED = 'garbage-collection-aggressive-trim-records-trimmed';
|
|
80999
|
-
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_TOTAL_RECORDS_BEFORE_TRIM = 'garbage-collection-aggressive-trim-total-records-before-trim';
|
|
81000
|
-
const ldsMobileInstrumentation$2 = getInstrumentation();
|
|
81001
|
-
const nimbusLogger = typeof __nimbus !== 'undefined' &&
|
|
81002
|
-
__nimbus.plugins !== undefined &&
|
|
81003
|
-
__nimbus.plugins.JSLoggerPlugin !== undefined
|
|
81004
|
-
? __nimbus.plugins.JSLoggerPlugin
|
|
81005
|
-
: undefined;
|
|
81006
|
-
function reportGraphqlQueryParseError(err) {
|
|
81007
|
-
const error = normalizeError$1(err);
|
|
81008
|
-
const errorCode = GRAPHQL_QUERY_PARSE_ERROR;
|
|
81009
|
-
// Metric
|
|
81010
|
-
reportGraphqlAdapterError(errorCode);
|
|
81011
|
-
// Log
|
|
81012
|
-
ldsMobileInstrumentation$2.error(error, errorCode);
|
|
81013
|
-
}
|
|
81014
|
-
function reportGraphqlSqlEvalPreconditionError(err) {
|
|
81015
|
-
const error = normalizeError$1(err);
|
|
81016
|
-
const errorCode = GRAPHQL_SQL_EVAL_PRECONDITION_ERROR;
|
|
81017
|
-
// Metric
|
|
81018
|
-
reportGraphqlAdapterError(errorCode);
|
|
81019
|
-
// Log
|
|
81020
|
-
ldsMobileInstrumentation$2.error(error, errorCode);
|
|
81021
|
-
}
|
|
81022
|
-
function reportGraphqlCreateSnapshotError(err) {
|
|
81023
|
-
const error = normalizeError$1(err);
|
|
81024
|
-
const errorCode = GRAPHQL_CREATE_SNAPSHOT_ERROR;
|
|
81025
|
-
// Metric
|
|
81026
|
-
reportGraphqlAdapterError(errorCode);
|
|
81027
|
-
// Log
|
|
81028
|
-
ldsMobileInstrumentation$2.error(error, errorCode);
|
|
81029
|
-
}
|
|
81030
|
-
function reportGraphQlEvalDbReadDuration(duration) {
|
|
81031
|
-
ldsMobileInstrumentation$2.trackValue(GRAPHQL_EVAL_DB_READ_DURATION, duration);
|
|
81032
|
-
}
|
|
81033
|
-
function reportGraphqlAdapterError(errorCode) {
|
|
81034
|
-
// Increment overall count with errorCode as tag
|
|
81035
|
-
ldsMobileInstrumentation$2.incrementCounter(GRAPHQL_EVAL_ERROR, 1, true, { errorCode });
|
|
81036
|
-
}
|
|
81037
|
-
function reportGraphqlQueryInstrumentation(data) {
|
|
81038
|
-
const queryBuckets = [1, 2, 3, 4, 5, 10, 20, 50, 100];
|
|
81039
|
-
const recordBuckets = [
|
|
81040
|
-
1, 5, 10, 20, 50, 100, 1000, 2000, 5000, 10000, 50000, 100000, 1000000,
|
|
81041
|
-
];
|
|
81042
|
-
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_ROOT_QUERY_COUNT, data.rootQueryCount, queryBuckets);
|
|
81043
|
-
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_TOTAL_QUERY_COUNT, data.totalQueryCount, queryBuckets);
|
|
81044
|
-
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_MAX_CHILD_RELATIONSHIPS_COUNT, data.maxChildRelationships, queryBuckets);
|
|
81045
|
-
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_QUERY_RECORD_COUNT, data.requestedRecordCount, recordBuckets);
|
|
81046
|
-
}
|
|
81047
|
-
function incrementGraphQLRefreshUndfined() {
|
|
81048
|
-
ldsMobileInstrumentation$2.incrementCounter(GRAPHQL_SNAPSHOT_REFRESH_UNDEFINED);
|
|
81049
|
-
}
|
|
81050
|
-
function reportDraftActionEvent(state, draftCount, message) {
|
|
81051
|
-
if (nimbusLogger) {
|
|
81052
|
-
nimbusLogger.logInfo(`Draft action event: ${state}, depth: ${draftCount}${message ? `, message: ${message}` : ''}`);
|
|
81053
|
-
}
|
|
81054
|
-
switch (state) {
|
|
81055
|
-
case 'added':
|
|
81056
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_ADDED);
|
|
81057
|
-
break;
|
|
81058
|
-
case 'uploading':
|
|
81059
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_UPLOADING);
|
|
81060
|
-
break;
|
|
81061
|
-
case 'completed':
|
|
81062
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_COMPLETED);
|
|
81063
|
-
break;
|
|
81064
|
-
case 'deleted':
|
|
81065
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_DELETED);
|
|
81066
|
-
break;
|
|
81067
|
-
case 'failed':
|
|
81068
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_FAILED, 1, true);
|
|
81069
|
-
break;
|
|
81070
|
-
case 'updated':
|
|
81071
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_UPDATED);
|
|
81072
|
-
break;
|
|
81073
|
-
}
|
|
81074
|
-
}
|
|
81075
|
-
function reportDraftQueueState(state, draftCount) {
|
|
81076
|
-
if (nimbusLogger) {
|
|
81077
|
-
nimbusLogger.logInfo(`Draft state changed: ${state}, depth: ${draftCount}`);
|
|
81078
|
-
}
|
|
81079
|
-
switch (state) {
|
|
81080
|
-
case 'started':
|
|
81081
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_STARTED);
|
|
81082
|
-
break;
|
|
81083
|
-
case 'error':
|
|
81084
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_ERROR, 1, true);
|
|
81085
|
-
break;
|
|
81086
|
-
case 'waiting':
|
|
81087
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_WAITING);
|
|
81088
|
-
break;
|
|
81089
|
-
case 'stopped':
|
|
81090
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_STOPPED);
|
|
81091
|
-
break;
|
|
81092
|
-
}
|
|
81093
|
-
}
|
|
81094
|
-
function reportDraftAwareContentDocumentVersionSynthesizeError(err) {
|
|
81095
|
-
let error;
|
|
81096
|
-
if (err.body !== undefined) {
|
|
81097
|
-
error = err.body;
|
|
81098
|
-
}
|
|
81099
|
-
else {
|
|
81100
|
-
error = normalizeError$1(err);
|
|
81101
|
-
}
|
|
81102
|
-
const errorCode = DRAFT_AWARE_CREATE_CONTENT_DOCUMENT_AND_VERSION_ERROR;
|
|
81103
|
-
const errorType = error.errorType;
|
|
81104
|
-
const tags = {
|
|
81105
|
-
errorCode,
|
|
81106
|
-
};
|
|
81107
|
-
if (errorType !== undefined) {
|
|
81108
|
-
tags.errorType = errorType;
|
|
81109
|
-
}
|
|
81110
|
-
// Metric
|
|
81111
|
-
ldsMobileInstrumentation$2.incrementCounter(CREATE_CONTENT_DOCUMENT_AND_VERSION_DRAFT_SYNTHESIZE_ERROR, 1, true, tags);
|
|
81112
|
-
// Log
|
|
81113
|
-
ldsMobileInstrumentation$2.error(error, errorCode);
|
|
81114
|
-
}
|
|
81115
|
-
function reportDraftAwareContentVersionSynthesizeCalls(mimeType) {
|
|
81116
|
-
ldsMobileInstrumentation$2.incrementCounter(CREATE_CONTENT_DOCUMENT_AND_VERSION_TOTAL_SYNTHESIZE_CALLS, 1, undefined, { mimeType });
|
|
81117
|
-
}
|
|
81118
|
-
/** Priming */
|
|
81119
|
-
function reportPrimingSessionCreated() {
|
|
81120
|
-
ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_SESSION_COUNT, 1, undefined, {});
|
|
81121
|
-
}
|
|
81122
|
-
function reportPrimingError(errorType, recordCount) {
|
|
81123
|
-
ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_ERROR_COUNT, recordCount, undefined, {
|
|
81124
|
-
errorType,
|
|
81125
|
-
});
|
|
81126
|
-
}
|
|
81127
|
-
function reportPrimingSuccess(recordCount) {
|
|
81128
|
-
ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_PRIMED_COUNT, recordCount, undefined);
|
|
81129
|
-
}
|
|
81130
|
-
function reportPrimingConflict(resolutionType, recordCount) {
|
|
81131
|
-
ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_CONFLICT_COUNT, recordCount, undefined, {
|
|
81132
|
-
resolutionType,
|
|
81133
|
-
});
|
|
81134
|
-
}
|
|
81135
|
-
/** Network */
|
|
81136
|
-
function reportChunkCandidateUrlLength(urlLength) {
|
|
81137
|
-
const buckets = [8000, 10000, 12000, 14000, 16000];
|
|
81138
|
-
ldsMobileInstrumentation$2.bucketValue('chunk-candidate-url-length-histogram', urlLength, buckets);
|
|
81139
|
-
}
|
|
81140
|
-
/** Garbage Collection */
|
|
81141
|
-
function reportAggressiveTrimTriggered(trimCount, beforeTrimRecordCount, totalRecordsTrimmed) {
|
|
81142
|
-
ldsMobileInstrumentation$2.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_COUNT, trimCount);
|
|
81143
|
-
ldsMobileInstrumentation$2.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_TOTAL_RECORDS_BEFORE_TRIM, beforeTrimRecordCount);
|
|
81144
|
-
ldsMobileInstrumentation$2.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_RECORDS_TRIMMED, totalRecordsTrimmed);
|
|
81145
|
-
}
|
|
81146
|
-
/** One Store Cache Purge */
|
|
81147
|
-
const ONESTORE_CACHE_PURGING_RECORDS_PURGED = 'onestore-cache-purging-records-purged';
|
|
81148
|
-
const ONESTORE_CACHE_PURGING_RECORDS_ERROR = 'onestore-cache-purging-records-error';
|
|
81149
|
-
function reportOneStoreRecordsPurgedFromCache(recordsPurged) {
|
|
81150
|
-
ldsMobileInstrumentation$2.trackValue(ONESTORE_CACHE_PURGING_RECORDS_PURGED, recordsPurged);
|
|
81151
|
-
}
|
|
81152
|
-
function reportOneStoreCachePurgingError(error) {
|
|
81153
|
-
const errorMessage = normalizeError$1(error);
|
|
81154
|
-
ldsMobileInstrumentation$2.error(errorMessage, ONESTORE_CACHE_PURGING_RECORDS_ERROR);
|
|
81155
|
-
}
|
|
81156
|
-
|
|
81157
81384
|
const QUICK_ACTION_HANDLER = 'QUICK_ACTION_HANDLER';
|
|
81158
81385
|
class QuickActionExecutionRepresentationHandler extends AbstractQuickActionHandler {
|
|
81159
81386
|
constructor(getLuvio, draftRecordService, draftQueue, networkAdapter, isDraftId, sideEffectService, objectInfoService, getRecord) {
|
|
@@ -81333,6 +81560,18 @@ function isCreateContentDocumentAndVersionDraftAdapterEvent(customEvent) {
|
|
|
81333
81560
|
return customEvent.namespace === CONTENT_DOCUMENT_AND_VERSION_NAMESPACE;
|
|
81334
81561
|
}
|
|
81335
81562
|
|
|
81563
|
+
/**
|
|
81564
|
+
* lds-worker-api packs the user action's ObservabilityContext into
|
|
81565
|
+
* `requestContext.requestCorrelator = { observabilityContext }`. This helper
|
|
81566
|
+
* unwraps it for draft-aware adapter wrappers, which forward the context to
|
|
81567
|
+
* the action handler so retry network spans can be parented to the
|
|
81568
|
+
* originating user action.
|
|
81569
|
+
*/
|
|
81570
|
+
function extractObservabilityContext(requestContext) {
|
|
81571
|
+
const correlator = requestContext?.requestCorrelator;
|
|
81572
|
+
return correlator?.observabilityContext;
|
|
81573
|
+
}
|
|
81574
|
+
|
|
81336
81575
|
function chunkToBase64(chunk) {
|
|
81337
81576
|
const bytes = new Uint8Array(chunk);
|
|
81338
81577
|
const CHUNK_SIZE = 64 * 1024; // 64kb, any bigger and fromCharCode() can error out with an overflow.
|
|
@@ -81410,7 +81649,10 @@ function createContentDocumentAndVersionDraftAdapterFactory(luvio, binaryStore,
|
|
|
81410
81649
|
if (actionHandler.hasIdempotencySupport()) {
|
|
81411
81650
|
resourceRequest.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
81412
81651
|
}
|
|
81413
|
-
const
|
|
81652
|
+
const observabilityContext = extractObservabilityContext(requestContext);
|
|
81653
|
+
const action = await actionHandler
|
|
81654
|
+
.enqueue(resourceRequest, observabilityContext)
|
|
81655
|
+
.catch(async (error) => {
|
|
81414
81656
|
eventEmitter({
|
|
81415
81657
|
type: 'create-content-document-and-version-synthesized-response-error',
|
|
81416
81658
|
handle,
|
|
@@ -81776,21 +82018,23 @@ function getDescriptionFromResourceRequest(request) {
|
|
|
81776
82018
|
return undefined;
|
|
81777
82019
|
}
|
|
81778
82020
|
|
|
81779
|
-
/* istanbul ignore file - covered by integration tests */
|
|
81780
82021
|
/**
|
|
81781
82022
|
* @param luvio The runtime's luvio instance
|
|
81782
82023
|
* @param actionHandler The UIAPI Record action handler. NOTE: this adapter doesn't
|
|
81783
82024
|
* register it with the DraftQueue, runtime should set that up
|
|
81784
82025
|
*/
|
|
81785
82026
|
function createRecordDraftAdapterFactory(actionHandler, durableRecordStore) {
|
|
81786
|
-
return async function createRecordDraftAdapter(config, createResourceRequest) {
|
|
82027
|
+
return async function createRecordDraftAdapter(config, createResourceRequest, requestContext) {
|
|
81787
82028
|
const request = createResourceRequest(config);
|
|
81788
82029
|
if (actionHandler.hasIdempotencySupport()) {
|
|
81789
82030
|
request.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
81790
82031
|
}
|
|
81791
82032
|
request.queryParams = request.queryParams || {};
|
|
81792
82033
|
request.queryParams['includeFieldsInBody'] = true;
|
|
81793
|
-
const
|
|
82034
|
+
const observabilityContext = extractObservabilityContext(requestContext);
|
|
82035
|
+
const action = await actionHandler
|
|
82036
|
+
.enqueue(request, observabilityContext)
|
|
82037
|
+
.catch((err) => {
|
|
81794
82038
|
throw transformErrorToDraftSynthesisError(err);
|
|
81795
82039
|
});
|
|
81796
82040
|
let record = await durableRecordStore.getRecord(action.tag);
|
|
@@ -81870,34 +82114,34 @@ function updateRecordDraftAdapterFactory(actionHandler, durableRecordStore, obje
|
|
|
81870
82114
|
};
|
|
81871
82115
|
}
|
|
81872
82116
|
|
|
81873
|
-
/* istanbul ignore file - covered by integration tests */
|
|
81874
82117
|
/**
|
|
81875
82118
|
* @param luvio The runtime's luvio instance
|
|
81876
82119
|
* @param actionHandler The UIAPI Record action handler. NOTE: this adapter doesn't
|
|
81877
82120
|
* register it with the DraftQueue, runtime should set that up
|
|
81878
82121
|
*/
|
|
81879
82122
|
function deleteRecordDraftAdapterFactory(actionHandler) {
|
|
81880
|
-
return async function deleteRecordDraftAdapter(config, buildResourceRequest) {
|
|
82123
|
+
return async function deleteRecordDraftAdapter(config, buildResourceRequest, requestContext) {
|
|
81881
82124
|
const request = buildResourceRequest(config);
|
|
81882
82125
|
if (actionHandler.hasIdempotencySupport()) {
|
|
81883
82126
|
request.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
81884
82127
|
}
|
|
81885
|
-
|
|
82128
|
+
const observabilityContext = extractObservabilityContext(requestContext);
|
|
82129
|
+
await actionHandler.enqueue(request, observabilityContext).catch((err) => {
|
|
81886
82130
|
throw transformErrorToDraftSynthesisError(err);
|
|
81887
82131
|
});
|
|
81888
82132
|
};
|
|
81889
82133
|
}
|
|
81890
82134
|
|
|
81891
|
-
/* istanbul ignore file - covered by integration tests */
|
|
81892
82135
|
/**
|
|
81893
82136
|
* @param luvio The runtime's luvio instance
|
|
81894
82137
|
* @param actionHandler The UIAPI Record action handler. NOTE: this adapter doesn't
|
|
81895
82138
|
* register it with the DraftQueue, runtime should set that up
|
|
81896
82139
|
*/
|
|
81897
82140
|
function performQuickActionDraftAdapterFactory(actionHandler, userId) {
|
|
81898
|
-
return async function performQuickActionDraftAdapter(config, createResourceRequest) {
|
|
82141
|
+
return async function performQuickActionDraftAdapter(config, createResourceRequest, requestContext) {
|
|
81899
82142
|
const request = createResourceRequest(config);
|
|
81900
|
-
const
|
|
82143
|
+
const observabilityContext = extractObservabilityContext(requestContext);
|
|
82144
|
+
const action = await actionHandler.enqueue(request, observabilityContext).catch((err) => {
|
|
81901
82145
|
const error = transformErrorToDraftSynthesisError(err);
|
|
81902
82146
|
deepFreeze$1(error);
|
|
81903
82147
|
throw error;
|
|
@@ -81924,16 +82168,18 @@ function performQuickActionDraftAdapterFactory(actionHandler, userId) {
|
|
|
81924
82168
|
};
|
|
81925
82169
|
}
|
|
81926
82170
|
|
|
81927
|
-
/* istanbul ignore file - covered by integration tests */
|
|
81928
82171
|
/**
|
|
81929
82172
|
* @param luvio The runtime's luvio instance
|
|
81930
82173
|
* @param actionHandler The UIAPI Record action handler. NOTE: this adapter doesn't
|
|
81931
82174
|
* register it with the DraftQueue, runtime should set that up
|
|
81932
82175
|
*/
|
|
81933
82176
|
function performUpdateRecordQuickActionDraftAdapterFactory(actionHandler, userId) {
|
|
81934
|
-
return async function performUpdateRecordQuickActionDraftAdapter(config, createResourceRequest) {
|
|
82177
|
+
return async function performUpdateRecordQuickActionDraftAdapter(config, createResourceRequest, requestContext) {
|
|
81935
82178
|
const request = createResourceRequest(config);
|
|
81936
|
-
const
|
|
82179
|
+
const observabilityContext = extractObservabilityContext(requestContext);
|
|
82180
|
+
const action = await actionHandler
|
|
82181
|
+
.enqueue(request, observabilityContext)
|
|
82182
|
+
.catch((err) => {
|
|
81937
82183
|
const error = transformErrorToDraftSynthesisError(err);
|
|
81938
82184
|
deepFreeze$1(error);
|
|
81939
82185
|
throw error;
|
|
@@ -89121,6 +89367,7 @@ function buildNimbusNetworkPluginRequest(resourceRequest, resourceRequestContext
|
|
|
89121
89367
|
let observabilityContext = null;
|
|
89122
89368
|
if (resourceRequestContext !== undefined &&
|
|
89123
89369
|
resourceRequestContext.requestCorrelator !== undefined &&
|
|
89370
|
+
resourceRequestContext.requestCorrelator !== null &&
|
|
89124
89371
|
resourceRequestContext.requestCorrelator.observabilityContext !==
|
|
89125
89372
|
undefined) {
|
|
89126
89373
|
({ observabilityContext = null } =
|
|
@@ -89835,7 +90082,7 @@ const withInstrumentation = (operation, config) => {
|
|
|
89835
90082
|
return operation()
|
|
89836
90083
|
.catch((err) => {
|
|
89837
90084
|
hasError = true;
|
|
89838
|
-
const error = normalizeError$
|
|
90085
|
+
const error = normalizeError$2(err);
|
|
89839
90086
|
tags['errorMessage'] = error.message;
|
|
89840
90087
|
if (logError) {
|
|
89841
90088
|
ldsMobileInstrumentation$2.error(error);
|
|
@@ -94189,7 +94436,9 @@ function buildSubscribableResult$1(result, subscribe, refresh) {
|
|
|
94189
94436
|
}
|
|
94190
94437
|
function resolvedPromiseLike$2(result) {
|
|
94191
94438
|
if (isPromiseLike$2(result)) {
|
|
94192
|
-
return result.then(
|
|
94439
|
+
return result.then(
|
|
94440
|
+
(nextResult) => nextResult
|
|
94441
|
+
);
|
|
94193
94442
|
}
|
|
94194
94443
|
return {
|
|
94195
94444
|
then: (onFulfilled, _onRejected) => {
|
|
@@ -94206,7 +94455,9 @@ function resolvedPromiseLike$2(result) {
|
|
|
94206
94455
|
}
|
|
94207
94456
|
function rejectedPromiseLike$2(reason) {
|
|
94208
94457
|
if (isPromiseLike$2(reason)) {
|
|
94209
|
-
return reason.then(
|
|
94458
|
+
return reason.then(
|
|
94459
|
+
(nextResult) => nextResult
|
|
94460
|
+
);
|
|
94210
94461
|
}
|
|
94211
94462
|
return {
|
|
94212
94463
|
then: (_onFulfilled, onRejected) => {
|
|
@@ -94263,49 +94514,6 @@ function deepEquals$1(x, y) {
|
|
|
94263
94514
|
}
|
|
94264
94515
|
return x === y;
|
|
94265
94516
|
}
|
|
94266
|
-
function stableJSONStringify$2(node) {
|
|
94267
|
-
if (node && node.toJSON && typeof node.toJSON === "function") {
|
|
94268
|
-
node = node.toJSON();
|
|
94269
|
-
}
|
|
94270
|
-
if (node === void 0) {
|
|
94271
|
-
return;
|
|
94272
|
-
}
|
|
94273
|
-
if (typeof node === "number") {
|
|
94274
|
-
return isFinite(node) ? "" + node : "null";
|
|
94275
|
-
}
|
|
94276
|
-
if (typeof node !== "object") {
|
|
94277
|
-
return stringify$2(node);
|
|
94278
|
-
}
|
|
94279
|
-
let i;
|
|
94280
|
-
let out;
|
|
94281
|
-
if (isArray$1$1(node)) {
|
|
94282
|
-
out = "[";
|
|
94283
|
-
for (i = 0; i < node.length; i++) {
|
|
94284
|
-
if (i) {
|
|
94285
|
-
out += ",";
|
|
94286
|
-
}
|
|
94287
|
-
out += stableJSONStringify$2(node[i]) || "null";
|
|
94288
|
-
}
|
|
94289
|
-
return out + "]";
|
|
94290
|
-
}
|
|
94291
|
-
if (node === null) {
|
|
94292
|
-
return "null";
|
|
94293
|
-
}
|
|
94294
|
-
const objKeys = keys$7(node).sort();
|
|
94295
|
-
out = "";
|
|
94296
|
-
for (i = 0; i < objKeys.length; i++) {
|
|
94297
|
-
const key = objKeys[i];
|
|
94298
|
-
const value = stableJSONStringify$2(node[key]);
|
|
94299
|
-
if (!value) {
|
|
94300
|
-
continue;
|
|
94301
|
-
}
|
|
94302
|
-
if (out) {
|
|
94303
|
-
out += ",";
|
|
94304
|
-
}
|
|
94305
|
-
out += stringify$2(key) + ":" + value;
|
|
94306
|
-
}
|
|
94307
|
-
return "{" + out + "}";
|
|
94308
|
-
}
|
|
94309
94517
|
function toError(x) {
|
|
94310
94518
|
if (x instanceof Error) {
|
|
94311
94519
|
return x;
|
|
@@ -94326,16 +94534,16 @@ var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
|
|
|
94326
94534
|
return HttpStatusCode2;
|
|
94327
94535
|
})(HttpStatusCode || {});
|
|
94328
94536
|
function getFetchResponseFromAuraError(err2) {
|
|
94329
|
-
|
|
94330
|
-
|
|
94331
|
-
data =
|
|
94332
|
-
if (
|
|
94333
|
-
data.id =
|
|
94537
|
+
const auraError = err2;
|
|
94538
|
+
if (auraError.data !== void 0 && auraError.data.statusCode !== void 0) {
|
|
94539
|
+
const data = auraError.data;
|
|
94540
|
+
if (auraError.id !== void 0) {
|
|
94541
|
+
data.id = auraError.id;
|
|
94334
94542
|
}
|
|
94335
94543
|
return new FetchResponse(data.statusCode, data);
|
|
94336
94544
|
}
|
|
94337
94545
|
return new FetchResponse(500, {
|
|
94338
|
-
error: err2
|
|
94546
|
+
error: err2?.message
|
|
94339
94547
|
});
|
|
94340
94548
|
}
|
|
94341
94549
|
function getStatusText(status) {
|
|
@@ -94377,9 +94585,10 @@ function deepFreeze(value) {
|
|
|
94377
94585
|
deepFreeze(value[i]);
|
|
94378
94586
|
}
|
|
94379
94587
|
} else {
|
|
94380
|
-
const
|
|
94588
|
+
const record = value;
|
|
94589
|
+
const keys$1 = keys$7(record);
|
|
94381
94590
|
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
94382
|
-
deepFreeze(
|
|
94591
|
+
deepFreeze(record[keys$1[i]]);
|
|
94383
94592
|
}
|
|
94384
94593
|
}
|
|
94385
94594
|
freeze$3(value);
|
|
@@ -94453,7 +94662,7 @@ let NetworkCommand$1 = class NetworkCommand extends BaseCommand {
|
|
|
94453
94662
|
async afterRequestHooks(_options) {
|
|
94454
94663
|
}
|
|
94455
94664
|
};
|
|
94456
|
-
function buildServiceDescriptor$
|
|
94665
|
+
function buildServiceDescriptor$m() {
|
|
94457
94666
|
return {
|
|
94458
94667
|
type: "networkCommandBaseClass",
|
|
94459
94668
|
version: "1.0",
|
|
@@ -94559,7 +94768,7 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
94559
94768
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
94560
94769
|
}
|
|
94561
94770
|
}
|
|
94562
|
-
function buildServiceDescriptor$
|
|
94771
|
+
function buildServiceDescriptor$l() {
|
|
94563
94772
|
return {
|
|
94564
94773
|
type: "auraNetworkCommandBaseClass",
|
|
94565
94774
|
version: "1.0",
|
|
@@ -94601,7 +94810,9 @@ function buildSubscribableResult(result, subscribe, refresh) {
|
|
|
94601
94810
|
}
|
|
94602
94811
|
function resolvedPromiseLike$1(result) {
|
|
94603
94812
|
if (isPromiseLike$1(result)) {
|
|
94604
|
-
return result.then(
|
|
94813
|
+
return result.then(
|
|
94814
|
+
(nextResult) => nextResult
|
|
94815
|
+
);
|
|
94605
94816
|
}
|
|
94606
94817
|
return {
|
|
94607
94818
|
then: (onFulfilled, _onRejected) => {
|
|
@@ -94618,7 +94829,9 @@ function resolvedPromiseLike$1(result) {
|
|
|
94618
94829
|
}
|
|
94619
94830
|
function rejectedPromiseLike$1(reason) {
|
|
94620
94831
|
if (isPromiseLike$1(reason)) {
|
|
94621
|
-
return reason.then(
|
|
94832
|
+
return reason.then(
|
|
94833
|
+
(nextResult) => nextResult
|
|
94834
|
+
);
|
|
94622
94835
|
}
|
|
94623
94836
|
return {
|
|
94624
94837
|
then: (_onFulfilled, onRejected) => {
|
|
@@ -95112,7 +95325,7 @@ function mergeCacheControlConfigs(baseConfig, overrides) {
|
|
|
95112
95325
|
};
|
|
95113
95326
|
}
|
|
95114
95327
|
|
|
95115
|
-
|
|
95328
|
+
class AuraCacheControlCommand extends CacheControlCommand {
|
|
95116
95329
|
constructor(services) {
|
|
95117
95330
|
super(services);
|
|
95118
95331
|
this.services = services;
|
|
@@ -95214,8 +95427,8 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
|
|
|
95214
95427
|
(reason) => err$1(toError(reason))
|
|
95215
95428
|
);
|
|
95216
95429
|
}
|
|
95217
|
-
}
|
|
95218
|
-
class AuraNormalizedCacheControlCommand extends AuraCacheControlCommand
|
|
95430
|
+
}
|
|
95431
|
+
class AuraNormalizedCacheControlCommand extends AuraCacheControlCommand {
|
|
95219
95432
|
constructor(services) {
|
|
95220
95433
|
super(services);
|
|
95221
95434
|
this.services = services;
|
|
@@ -95239,7 +95452,7 @@ class AuraNormalizedCacheControlCommand extends AuraCacheControlCommand$1 {
|
|
|
95239
95452
|
return resolvedPromiseLike$2(void 0);
|
|
95240
95453
|
}
|
|
95241
95454
|
}
|
|
95242
|
-
function buildServiceDescriptor$
|
|
95455
|
+
function buildServiceDescriptor$k() {
|
|
95243
95456
|
return {
|
|
95244
95457
|
type: "auraNormalizedCacheControlCommand",
|
|
95245
95458
|
version: "1.0",
|
|
@@ -95247,144 +95460,6 @@ function buildServiceDescriptor$l() {
|
|
|
95247
95460
|
};
|
|
95248
95461
|
}
|
|
95249
95462
|
|
|
95250
|
-
class AuraCacheControlCommand extends CacheControlCommand {
|
|
95251
|
-
constructor(services) {
|
|
95252
|
-
super(services);
|
|
95253
|
-
this.services = services;
|
|
95254
|
-
this.actionConfig = {
|
|
95255
|
-
background: false,
|
|
95256
|
-
hotspot: true,
|
|
95257
|
-
longRunning: false,
|
|
95258
|
-
storable: false
|
|
95259
|
-
};
|
|
95260
|
-
this.networkPreference = "aura";
|
|
95261
|
-
}
|
|
95262
|
-
get fetchParams() {
|
|
95263
|
-
throw new Error(
|
|
95264
|
-
"Fetch parameters must be specified when using HTTP transport on an Aura adapter"
|
|
95265
|
-
);
|
|
95266
|
-
}
|
|
95267
|
-
shouldUseAuraNetwork() {
|
|
95268
|
-
return this.services.auraNetwork !== void 0 && (this.networkPreference === "aura" || !this.services.fetch);
|
|
95269
|
-
}
|
|
95270
|
-
shouldUseFetch() {
|
|
95271
|
-
return this.services.fetch !== void 0 && (this.networkPreference === "http" || !this.services.auraNetwork);
|
|
95272
|
-
}
|
|
95273
|
-
requestFromNetwork() {
|
|
95274
|
-
if (this.shouldUseAuraNetwork()) {
|
|
95275
|
-
return this.convertAuraResponseToData(
|
|
95276
|
-
this.services.auraNetwork(this.endpoint, this.auraParams, this.actionConfig),
|
|
95277
|
-
(errs) => this.coerceAuraErrors(errs)
|
|
95278
|
-
);
|
|
95279
|
-
} else if (this.shouldUseFetch()) {
|
|
95280
|
-
const params = this.fetchParams;
|
|
95281
|
-
try {
|
|
95282
|
-
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
95283
|
-
} catch (reason) {
|
|
95284
|
-
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
95285
|
-
}
|
|
95286
|
-
}
|
|
95287
|
-
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
95288
|
-
}
|
|
95289
|
-
coerceAuraErrors(auraErrors) {
|
|
95290
|
-
return toError(auraErrors[0]);
|
|
95291
|
-
}
|
|
95292
|
-
async coerceError(errorResponse) {
|
|
95293
|
-
return toError(errorResponse.statusText);
|
|
95294
|
-
}
|
|
95295
|
-
processAuraReturnValue(auraReturnValue) {
|
|
95296
|
-
return ok$1(auraReturnValue);
|
|
95297
|
-
}
|
|
95298
|
-
processFetchReturnValue(json) {
|
|
95299
|
-
return ok$1(json);
|
|
95300
|
-
}
|
|
95301
|
-
convertAuraResponseToData(responsePromise, coerceError) {
|
|
95302
|
-
return responsePromise.then((response) => {
|
|
95303
|
-
return this.processAuraReturnValue(response.getReturnValue());
|
|
95304
|
-
}).finally(() => {
|
|
95305
|
-
try {
|
|
95306
|
-
this.afterRequestHooks({ statusCode: 200 });
|
|
95307
|
-
} catch {
|
|
95308
|
-
}
|
|
95309
|
-
}).catch((error) => {
|
|
95310
|
-
if (!error) {
|
|
95311
|
-
return err$1(toError("Failed to get error from response"));
|
|
95312
|
-
}
|
|
95313
|
-
if (!error.getError) {
|
|
95314
|
-
return err$1(toError(error));
|
|
95315
|
-
}
|
|
95316
|
-
const actionErrors = error.getError();
|
|
95317
|
-
if (actionErrors.length > 0) {
|
|
95318
|
-
return err$1(coerceError(actionErrors));
|
|
95319
|
-
}
|
|
95320
|
-
return err$1(toError("Error fetching component"));
|
|
95321
|
-
});
|
|
95322
|
-
}
|
|
95323
|
-
convertFetchResponseToData(response) {
|
|
95324
|
-
return response.then(
|
|
95325
|
-
(response2) => {
|
|
95326
|
-
if (response2.ok) {
|
|
95327
|
-
return response2.json().then(
|
|
95328
|
-
(json) => {
|
|
95329
|
-
return this.processFetchReturnValue(json);
|
|
95330
|
-
},
|
|
95331
|
-
(reason) => err$1(toError(reason))
|
|
95332
|
-
).finally(() => {
|
|
95333
|
-
try {
|
|
95334
|
-
this.afterRequestHooks({ statusCode: response2.status });
|
|
95335
|
-
} catch {
|
|
95336
|
-
}
|
|
95337
|
-
});
|
|
95338
|
-
} else {
|
|
95339
|
-
return this.coerceError(response2).then((coercedError) => {
|
|
95340
|
-
return err$1(coercedError);
|
|
95341
|
-
}).finally(() => {
|
|
95342
|
-
try {
|
|
95343
|
-
this.afterRequestHooks({ statusCode: response2.status });
|
|
95344
|
-
} catch {
|
|
95345
|
-
}
|
|
95346
|
-
});
|
|
95347
|
-
}
|
|
95348
|
-
},
|
|
95349
|
-
(reason) => err$1(toError(reason))
|
|
95350
|
-
);
|
|
95351
|
-
}
|
|
95352
|
-
}
|
|
95353
|
-
class AuraResourceCacheControlCommand extends AuraCacheControlCommand {
|
|
95354
|
-
constructor(services) {
|
|
95355
|
-
super(services);
|
|
95356
|
-
this.services = services;
|
|
95357
|
-
}
|
|
95358
|
-
readFromCache(cache) {
|
|
95359
|
-
const data = cache.get(this.buildKey())?.value;
|
|
95360
|
-
if (data === void 0) {
|
|
95361
|
-
return resolvedPromiseLike$2(err$1(new Error("Failed to find data in cache")));
|
|
95362
|
-
}
|
|
95363
|
-
return resolvedPromiseLike$2(ok$1(data));
|
|
95364
|
-
}
|
|
95365
|
-
writeToCache(cache, networkResult) {
|
|
95366
|
-
if (networkResult.isOk()) {
|
|
95367
|
-
cache.set(this.buildKey(), {
|
|
95368
|
-
value: networkResult.value,
|
|
95369
|
-
metadata: {
|
|
95370
|
-
cacheControl: this.buildCacheControlMetadata(networkResult.value)
|
|
95371
|
-
}
|
|
95372
|
-
});
|
|
95373
|
-
}
|
|
95374
|
-
return resolvedPromiseLike$2(void 0);
|
|
95375
|
-
}
|
|
95376
|
-
buildKey() {
|
|
95377
|
-
return `{"endpoint":${this.endpoint},"params":${stableJSONStringify$2(this.auraParams)}}`;
|
|
95378
|
-
}
|
|
95379
|
-
}
|
|
95380
|
-
function buildServiceDescriptor$k() {
|
|
95381
|
-
return {
|
|
95382
|
-
type: "auraResourceCacheControlCommand",
|
|
95383
|
-
version: "1.0",
|
|
95384
|
-
service: AuraResourceCacheControlCommand
|
|
95385
|
-
};
|
|
95386
|
-
}
|
|
95387
|
-
|
|
95388
95463
|
class NetworkCommand extends BaseCommand {
|
|
95389
95464
|
constructor(services) {
|
|
95390
95465
|
super();
|
|
@@ -95428,16 +95503,16 @@ class NetworkCommand extends BaseCommand {
|
|
|
95428
95503
|
}
|
|
95429
95504
|
}
|
|
95430
95505
|
function isAbortableCommand(command) {
|
|
95431
|
-
return "isAbortableCommand" in command && command.isAbortableCommand === true;
|
|
95506
|
+
return !!command && typeof command === "object" && "isAbortableCommand" in command && command.isAbortableCommand === true;
|
|
95432
95507
|
}
|
|
95433
95508
|
function hasFetchParams(command) {
|
|
95434
|
-
return command && typeof command === "object" && "fetchParams" in command;
|
|
95509
|
+
return !!command && typeof command === "object" && "fetchParams" in command;
|
|
95435
95510
|
}
|
|
95436
95511
|
function createAbortableDecorator(command, options) {
|
|
95437
|
-
|
|
95512
|
+
const signal = options?.signal;
|
|
95513
|
+
if (!signal || !(signal instanceof AbortSignal)) {
|
|
95438
95514
|
return command;
|
|
95439
95515
|
}
|
|
95440
|
-
const { signal } = options;
|
|
95441
95516
|
if (isAbortableCommand(command)) {
|
|
95442
95517
|
return command;
|
|
95443
95518
|
}
|
|
@@ -95445,7 +95520,7 @@ function createAbortableDecorator(command, options) {
|
|
|
95445
95520
|
return command;
|
|
95446
95521
|
}
|
|
95447
95522
|
try {
|
|
95448
|
-
|
|
95523
|
+
const handler = {
|
|
95449
95524
|
get(target, prop, receiver) {
|
|
95450
95525
|
if (prop === "isAbortableCommand") {
|
|
95451
95526
|
return true;
|
|
@@ -95454,8 +95529,8 @@ function createAbortableDecorator(command, options) {
|
|
|
95454
95529
|
return signal;
|
|
95455
95530
|
}
|
|
95456
95531
|
if (prop === "fetchParams") {
|
|
95457
|
-
const originalFetchParams = target
|
|
95458
|
-
const isInternal = target
|
|
95532
|
+
const originalFetchParams = Reflect.get(target, prop, receiver);
|
|
95533
|
+
const isInternal = Reflect.get(target, "isInternalExecution", receiver) === true;
|
|
95459
95534
|
if (typeof originalFetchParams === "function") {
|
|
95460
95535
|
return function(...args) {
|
|
95461
95536
|
const originalReturnValue = originalFetchParams.apply(this, args);
|
|
@@ -95481,7 +95556,8 @@ function createAbortableDecorator(command, options) {
|
|
|
95481
95556
|
}
|
|
95482
95557
|
return Reflect.has(target, prop);
|
|
95483
95558
|
}
|
|
95484
|
-
}
|
|
95559
|
+
};
|
|
95560
|
+
return new Proxy(command, handler);
|
|
95485
95561
|
} catch (error) {
|
|
95486
95562
|
return command;
|
|
95487
95563
|
}
|
|
@@ -96570,7 +96646,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
96570
96646
|
},
|
|
96571
96647
|
};
|
|
96572
96648
|
}
|
|
96573
|
-
// version: 1.
|
|
96649
|
+
// version: 1.446.0-f73bd65030
|
|
96574
96650
|
|
|
96575
96651
|
/**
|
|
96576
96652
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -96596,7 +96672,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
96596
96672
|
},
|
|
96597
96673
|
};
|
|
96598
96674
|
}
|
|
96599
|
-
// version: 1.
|
|
96675
|
+
// version: 1.446.0-f73bd65030
|
|
96600
96676
|
|
|
96601
96677
|
function findExecutableOperation$1(input) {
|
|
96602
96678
|
const operations = input.query.definitions.filter(
|
|
@@ -97396,7 +97472,7 @@ function findSchemaAtPath(document, ref) {
|
|
|
97396
97472
|
let path = "#";
|
|
97397
97473
|
for (const key of keys) {
|
|
97398
97474
|
path = `${path}/${key}`;
|
|
97399
|
-
if (current[key] === void 0) {
|
|
97475
|
+
if (typeof current !== "object" || current === null || current[key] === void 0) {
|
|
97400
97476
|
throw new InvalidRefError(
|
|
97401
97477
|
`Invalid $ref value '${ref}'. Cannot find target schema at '${path}'`
|
|
97402
97478
|
);
|
|
@@ -98459,7 +98535,9 @@ function addAllToSet(targetSet, sourceSet) {
|
|
|
98459
98535
|
}
|
|
98460
98536
|
function resolvedPromiseLike$3(result) {
|
|
98461
98537
|
if (isPromiseLike$3(result)) {
|
|
98462
|
-
return result.then(
|
|
98538
|
+
return result.then(
|
|
98539
|
+
(nextResult) => nextResult
|
|
98540
|
+
);
|
|
98463
98541
|
}
|
|
98464
98542
|
return {
|
|
98465
98543
|
then: (onFulfilled, _onRejected) => {
|
|
@@ -98476,7 +98554,9 @@ function resolvedPromiseLike$3(result) {
|
|
|
98476
98554
|
}
|
|
98477
98555
|
function rejectedPromiseLike$3(reason) {
|
|
98478
98556
|
if (isPromiseLike$3(reason)) {
|
|
98479
|
-
return reason.then(
|
|
98557
|
+
return reason.then(
|
|
98558
|
+
(nextResult) => nextResult
|
|
98559
|
+
);
|
|
98480
98560
|
}
|
|
98481
98561
|
return {
|
|
98482
98562
|
then: (_onFulfilled, onRejected) => {
|
|
@@ -98998,12 +99078,11 @@ function initializeOneStore(sqliteStore, luvio) {
|
|
|
98998
99078
|
buildNimbusFetchServiceDescriptor(),
|
|
98999
99079
|
buildServiceDescriptor$f(instrumentationServiceDescriptor.service),
|
|
99000
99080
|
// NOTE: These do not directly depend on Aura, and are necessary for HTTP fallback support.
|
|
99001
|
-
buildServiceDescriptor$m(),
|
|
99002
99081
|
buildServiceDescriptor$l(),
|
|
99003
99082
|
buildServiceDescriptor$k(),
|
|
99004
99083
|
buildServiceDescriptor$g(cacheServiceDescriptor.service, nimbusSqliteOneStoreCacheServiceDescriptor.service, instrumentationServiceDescriptor.service),
|
|
99005
99084
|
buildServiceDescriptor$j(),
|
|
99006
|
-
buildServiceDescriptor$
|
|
99085
|
+
buildServiceDescriptor$m(),
|
|
99007
99086
|
buildServiceDescriptor$i(),
|
|
99008
99087
|
buildServiceDescriptor$d(),
|
|
99009
99088
|
buildServiceDescriptor$9(),
|
|
@@ -99279,7 +99358,7 @@ register$1({
|
|
|
99279
99358
|
id: '@salesforce/lds-network-adapter',
|
|
99280
99359
|
instrument: instrument$2,
|
|
99281
99360
|
});
|
|
99282
|
-
// version: 1.
|
|
99361
|
+
// version: 1.446.0-f73bd65030
|
|
99283
99362
|
|
|
99284
99363
|
const { create: create$2, keys: keys$2 } = Object;
|
|
99285
99364
|
const { stringify, parse } = JSON;
|
|
@@ -99601,7 +99680,7 @@ function buildFieldKey(canonicalFieldName, fieldArguments, variables) {
|
|
|
99601
99680
|
}
|
|
99602
99681
|
formattedArguments[arg.name.value] = result.value;
|
|
99603
99682
|
}
|
|
99604
|
-
return ok$3(`${canonicalFieldName}::${stableJSONStringify$
|
|
99683
|
+
return ok$3(`${canonicalFieldName}::${stableJSONStringify$2({ args: formattedArguments })}`);
|
|
99605
99684
|
}
|
|
99606
99685
|
({
|
|
99607
99686
|
kind: Kind$1.FIELD,
|
|
@@ -99665,7 +99744,9 @@ class BaseScalarFieldDef {
|
|
|
99665
99744
|
}
|
|
99666
99745
|
write(_cache, input) {
|
|
99667
99746
|
if (input.data === void 0) {
|
|
99668
|
-
return ok$3({
|
|
99747
|
+
return ok$3({
|
|
99748
|
+
type: "missing"
|
|
99749
|
+
});
|
|
99669
99750
|
}
|
|
99670
99751
|
if (input.data === null) {
|
|
99671
99752
|
if (!this.nullable) {
|
|
@@ -99679,7 +99760,10 @@ class BaseScalarFieldDef {
|
|
|
99679
99760
|
]);
|
|
99680
99761
|
}
|
|
99681
99762
|
}
|
|
99682
|
-
return ok$3({
|
|
99763
|
+
return ok$3({
|
|
99764
|
+
type: "data",
|
|
99765
|
+
data: input.data
|
|
99766
|
+
});
|
|
99683
99767
|
}
|
|
99684
99768
|
read(_cache, input) {
|
|
99685
99769
|
const normalizedData = input.normalizedData;
|
|
@@ -99708,7 +99792,9 @@ class BaseArrayFieldDef {
|
|
|
99708
99792
|
}
|
|
99709
99793
|
write(cache, input) {
|
|
99710
99794
|
if (input.data === void 0) {
|
|
99711
|
-
return ok$3({
|
|
99795
|
+
return ok$3({
|
|
99796
|
+
type: "missing"
|
|
99797
|
+
});
|
|
99712
99798
|
}
|
|
99713
99799
|
if (input.data === null) {
|
|
99714
99800
|
if (!this.nullable) {
|
|
@@ -99721,7 +99807,10 @@ class BaseArrayFieldDef {
|
|
|
99721
99807
|
}
|
|
99722
99808
|
]);
|
|
99723
99809
|
}
|
|
99724
|
-
return ok$3({
|
|
99810
|
+
return ok$3({
|
|
99811
|
+
type: "data",
|
|
99812
|
+
data: input.data
|
|
99813
|
+
});
|
|
99725
99814
|
}
|
|
99726
99815
|
if (!Array.isArray(input.data)) {
|
|
99727
99816
|
return err$3([
|
|
@@ -99753,7 +99842,10 @@ class BaseArrayFieldDef {
|
|
|
99753
99842
|
if (arrayNormalizationErrors.length > 0) {
|
|
99754
99843
|
return err$3(arrayNormalizationErrors);
|
|
99755
99844
|
}
|
|
99756
|
-
return ok$3({
|
|
99845
|
+
return ok$3({
|
|
99846
|
+
type: "data",
|
|
99847
|
+
data: normalizedArray
|
|
99848
|
+
});
|
|
99757
99849
|
}
|
|
99758
99850
|
read(cache, input) {
|
|
99759
99851
|
const normalizedData = input.normalizedData;
|
|
@@ -99827,7 +99919,9 @@ class BaseObjectFieldDef {
|
|
|
99827
99919
|
]);
|
|
99828
99920
|
}
|
|
99829
99921
|
if (input.data === void 0) {
|
|
99830
|
-
return ok$3({
|
|
99922
|
+
return ok$3({
|
|
99923
|
+
type: "missing"
|
|
99924
|
+
});
|
|
99831
99925
|
}
|
|
99832
99926
|
if (input.data === null) {
|
|
99833
99927
|
if (!this.nullable) {
|
|
@@ -99840,7 +99934,10 @@ class BaseObjectFieldDef {
|
|
|
99840
99934
|
}
|
|
99841
99935
|
]);
|
|
99842
99936
|
}
|
|
99843
|
-
return ok$3({
|
|
99937
|
+
return ok$3({
|
|
99938
|
+
type: "data",
|
|
99939
|
+
data: null
|
|
99940
|
+
});
|
|
99844
99941
|
}
|
|
99845
99942
|
const writeResult = this.repository.write(cache, {
|
|
99846
99943
|
...input,
|
|
@@ -99853,7 +99950,10 @@ class BaseObjectFieldDef {
|
|
|
99853
99950
|
if (writeResult.isErr()) {
|
|
99854
99951
|
return writeResult;
|
|
99855
99952
|
}
|
|
99856
|
-
return ok$3({
|
|
99953
|
+
return ok$3({
|
|
99954
|
+
type: "data",
|
|
99955
|
+
data: writeResult.value
|
|
99956
|
+
});
|
|
99857
99957
|
}
|
|
99858
99958
|
read(cache, input) {
|
|
99859
99959
|
if (!input.selection.selectionSet) {
|
|
@@ -100516,7 +100616,10 @@ class BaseInterfaceRepository {
|
|
|
100516
100616
|
}
|
|
100517
100617
|
]);
|
|
100518
100618
|
}
|
|
100519
|
-
const discriminator = this.getTypeDiscriminator(
|
|
100619
|
+
const discriminator = this.getTypeDiscriminator(
|
|
100620
|
+
input.data,
|
|
100621
|
+
input.selections
|
|
100622
|
+
);
|
|
100520
100623
|
const concreteTypeRepository = this.possibleTypes[discriminator];
|
|
100521
100624
|
if (!concreteTypeRepository) {
|
|
100522
100625
|
return err$3([
|
|
@@ -100540,9 +100643,15 @@ class BaseInterfaceRepository {
|
|
|
100540
100643
|
request: input.request,
|
|
100541
100644
|
parentFieldSelection: input.parentFieldSelection
|
|
100542
100645
|
};
|
|
100543
|
-
const result = concreteTypeRepository.write(
|
|
100646
|
+
const result = concreteTypeRepository.write(
|
|
100647
|
+
cache,
|
|
100648
|
+
normalizeInput
|
|
100649
|
+
);
|
|
100544
100650
|
if (result.isOk()) {
|
|
100545
|
-
return ok$3({
|
|
100651
|
+
return ok$3({
|
|
100652
|
+
discriminator,
|
|
100653
|
+
data: result.value
|
|
100654
|
+
});
|
|
100546
100655
|
}
|
|
100547
100656
|
return result;
|
|
100548
100657
|
}
|
|
@@ -100680,7 +100789,10 @@ class BaseUnionRepository {
|
|
|
100680
100789
|
}
|
|
100681
100790
|
]);
|
|
100682
100791
|
}
|
|
100683
|
-
const discriminator = this.getTypeDiscriminator(
|
|
100792
|
+
const discriminator = this.getTypeDiscriminator(
|
|
100793
|
+
input.data,
|
|
100794
|
+
input.selections
|
|
100795
|
+
);
|
|
100684
100796
|
const concreteTypeRepository = this.possibleTypes[discriminator];
|
|
100685
100797
|
if (!concreteTypeRepository) {
|
|
100686
100798
|
return err$3([
|
|
@@ -100704,9 +100816,15 @@ class BaseUnionRepository {
|
|
|
100704
100816
|
request: input.request,
|
|
100705
100817
|
parentFieldSelection: input.parentFieldSelection
|
|
100706
100818
|
};
|
|
100707
|
-
const result = concreteTypeRepository.write(
|
|
100819
|
+
const result = concreteTypeRepository.write(
|
|
100820
|
+
cache,
|
|
100821
|
+
normalizeInput
|
|
100822
|
+
);
|
|
100708
100823
|
if (result.isOk()) {
|
|
100709
|
-
return ok$3({
|
|
100824
|
+
return ok$3({
|
|
100825
|
+
discriminator,
|
|
100826
|
+
data: result.value
|
|
100827
|
+
});
|
|
100710
100828
|
}
|
|
100711
100829
|
return result;
|
|
100712
100830
|
}
|
|
@@ -101295,7 +101413,9 @@ const ok = (value) => new Ok(value);
|
|
|
101295
101413
|
const err = (err2) => new Err(err2);
|
|
101296
101414
|
function resolvedPromiseLike(result) {
|
|
101297
101415
|
if (isPromiseLike(result)) {
|
|
101298
|
-
return result.then(
|
|
101416
|
+
return result.then(
|
|
101417
|
+
(nextResult) => nextResult
|
|
101418
|
+
);
|
|
101299
101419
|
}
|
|
101300
101420
|
return {
|
|
101301
101421
|
then: (onFulfilled, _onRejected) => {
|
|
@@ -101312,7 +101432,9 @@ function resolvedPromiseLike(result) {
|
|
|
101312
101432
|
}
|
|
101313
101433
|
function rejectedPromiseLike(reason) {
|
|
101314
101434
|
if (isPromiseLike(reason)) {
|
|
101315
|
-
return reason.then(
|
|
101435
|
+
return reason.then(
|
|
101436
|
+
(nextResult) => nextResult
|
|
101437
|
+
);
|
|
101316
101438
|
}
|
|
101317
101439
|
return {
|
|
101318
101440
|
then: (_onFulfilled, onRejected) => {
|
|
@@ -101341,7 +101463,10 @@ function applyDecorators(baseCommand, decorators, options) {
|
|
|
101341
101463
|
if (!decorators || decorators.length === 0) {
|
|
101342
101464
|
return baseCommand;
|
|
101343
101465
|
}
|
|
101344
|
-
return decorators.reduce(
|
|
101466
|
+
return decorators.reduce(
|
|
101467
|
+
(command, decorator) => decorator(command, options),
|
|
101468
|
+
baseCommand
|
|
101469
|
+
);
|
|
101345
101470
|
}
|
|
101346
101471
|
|
|
101347
101472
|
class Analytics__AnalyticsBrowseRepository extends UnidentifiableGraphQLTypeRepository {
|
|
@@ -106762,7 +106887,7 @@ function registerCallback(cb) {
|
|
|
106762
106887
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
106763
106888
|
}
|
|
106764
106889
|
}
|
|
106765
|
-
// version: 1.
|
|
106890
|
+
// version: 1.446.0-74903f7bb8
|
|
106766
106891
|
|
|
106767
106892
|
function createFragmentMap(documentNode) {
|
|
106768
106893
|
const fragments = {};
|
|
@@ -135969,7 +136094,7 @@ register$1({
|
|
|
135969
136094
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
135970
136095
|
instrument: instrument$1,
|
|
135971
136096
|
});
|
|
135972
|
-
// version: 1.
|
|
136097
|
+
// version: 1.446.0-74903f7bb8
|
|
135973
136098
|
|
|
135974
136099
|
// On core the unstable adapters are re-exported with different names,
|
|
135975
136100
|
// we want to match them here.
|
|
@@ -136121,7 +136246,7 @@ withDefaultLuvio((luvio) => {
|
|
|
136121
136246
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
136122
136247
|
graphQLImperative = ldsAdapter;
|
|
136123
136248
|
});
|
|
136124
|
-
// version: 1.
|
|
136249
|
+
// version: 1.446.0-74903f7bb8
|
|
136125
136250
|
|
|
136126
136251
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
136127
136252
|
__proto__: null,
|
|
@@ -136920,7 +137045,7 @@ const callbacks$1 = [];
|
|
|
136920
137045
|
function register(r) {
|
|
136921
137046
|
callbacks$1.forEach((callback) => callback(r));
|
|
136922
137047
|
}
|
|
136923
|
-
// version: 1.
|
|
137048
|
+
// version: 1.446.0-f73bd65030
|
|
136924
137049
|
|
|
136925
137050
|
/**
|
|
136926
137051
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -138209,4 +138334,4 @@ const { luvio } = getRuntime();
|
|
|
138209
138334
|
setDefaultLuvio({ luvio });
|
|
138210
138335
|
|
|
138211
138336
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
138212
|
-
// version: 1.
|
|
138337
|
+
// version: 1.446.0-f73bd65030
|