@salesforce/lds-worker-api 1.444.0 → 1.445.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.
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
* @param data Data to be JSON-stringified.
|
|
296
296
|
* @returns JSON.stringified value with consistent ordering of keys.
|
|
297
297
|
*/
|
|
298
|
-
function stableJSONStringify$
|
|
298
|
+
function stableJSONStringify$4(node) {
|
|
299
299
|
// This is for Date values.
|
|
300
300
|
if (node && node.toJSON && typeof node.toJSON === 'function') {
|
|
301
301
|
// eslint-disable-next-line no-param-reassign
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
if (i) {
|
|
319
319
|
out += ',';
|
|
320
320
|
}
|
|
321
|
-
out += stableJSONStringify$
|
|
321
|
+
out += stableJSONStringify$4(node[i]) || 'null';
|
|
322
322
|
}
|
|
323
323
|
return out + ']';
|
|
324
324
|
}
|
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
out = '';
|
|
330
330
|
for (i = 0; i < keys$1.length; i++) {
|
|
331
331
|
const key = keys$1[i];
|
|
332
|
-
const value = stableJSONStringify$
|
|
332
|
+
const value = stableJSONStringify$4(node[key]);
|
|
333
333
|
if (!value) {
|
|
334
334
|
continue;
|
|
335
335
|
}
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
}
|
|
352
352
|
const cacheValue = structuredKeySerializationCache.get(key);
|
|
353
353
|
if (cacheValue === undefined) {
|
|
354
|
-
const value = stableJSONStringify$
|
|
354
|
+
const value = stableJSONStringify$4(key);
|
|
355
355
|
structuredKeySerializationCache.set(key, value);
|
|
356
356
|
return value;
|
|
357
357
|
}
|
|
@@ -2029,7 +2029,7 @@
|
|
|
2029
2029
|
returnStoreLookup.ttlStrategy = ttlStrategy;
|
|
2030
2030
|
return returnStoreLookup;
|
|
2031
2031
|
}
|
|
2032
|
-
function buildNetworkSnapshot$
|
|
2032
|
+
function buildNetworkSnapshot$1c(args) {
|
|
2033
2033
|
const { buildNetworkSnapshot, buildSnapshotContext, coercedAdapterRequestContext } = args;
|
|
2034
2034
|
return buildNetworkSnapshot(buildSnapshotContext, coercedAdapterRequestContext).then((snapshot) => snapshot.state === 'Pending' ? args.resolvePendingSnapshot(snapshot) : snapshot);
|
|
2035
2035
|
}
|
|
@@ -2081,7 +2081,7 @@
|
|
|
2081
2081
|
}
|
|
2082
2082
|
// any other state falls through to network snapshot
|
|
2083
2083
|
}
|
|
2084
|
-
return buildNetworkSnapshot$
|
|
2084
|
+
return buildNetworkSnapshot$1c(args);
|
|
2085
2085
|
});
|
|
2086
2086
|
};
|
|
2087
2087
|
}
|
|
@@ -2098,12 +2098,12 @@
|
|
|
2098
2098
|
return args.resolvePendingSnapshot(snapshot);
|
|
2099
2099
|
}
|
|
2100
2100
|
}
|
|
2101
|
-
return buildNetworkSnapshot$
|
|
2101
|
+
return buildNetworkSnapshot$1c(args);
|
|
2102
2102
|
});
|
|
2103
2103
|
};
|
|
2104
2104
|
|
|
2105
2105
|
const noCacheImplementation = function (args) {
|
|
2106
|
-
return buildNetworkSnapshot$
|
|
2106
|
+
return buildNetworkSnapshot$1c(args);
|
|
2107
2107
|
};
|
|
2108
2108
|
|
|
2109
2109
|
const onlyIfCachedImplementation = function (args) {
|
|
@@ -2144,7 +2144,7 @@
|
|
|
2144
2144
|
return snapshot;
|
|
2145
2145
|
}
|
|
2146
2146
|
}
|
|
2147
|
-
return buildNetworkSnapshot$
|
|
2147
|
+
return buildNetworkSnapshot$1c(args);
|
|
2148
2148
|
});
|
|
2149
2149
|
};
|
|
2150
2150
|
}
|
|
@@ -3291,7 +3291,7 @@
|
|
|
3291
3291
|
}
|
|
3292
3292
|
}
|
|
3293
3293
|
}
|
|
3294
|
-
function isFetchResponse(error) {
|
|
3294
|
+
function isFetchResponse$1(error) {
|
|
3295
3295
|
return error !== null && typeof error === 'object' && 'status' in error;
|
|
3296
3296
|
}
|
|
3297
3297
|
/**
|
|
@@ -3370,7 +3370,7 @@
|
|
|
3370
3370
|
// the new network adapter behavior
|
|
3371
3371
|
return reject(
|
|
3372
3372
|
// legacy network adapter check
|
|
3373
|
-
isFetchResponse(error)
|
|
3373
|
+
isFetchResponse$1(error)
|
|
3374
3374
|
? {
|
|
3375
3375
|
...error,
|
|
3376
3376
|
errorType: 'fetchResponse',
|
|
@@ -4282,7 +4282,7 @@
|
|
|
4282
4282
|
}
|
|
4283
4283
|
callbacks.push(callback);
|
|
4284
4284
|
}
|
|
4285
|
-
// version: 1.
|
|
4285
|
+
// version: 1.445.0-117c9de71a
|
|
4286
4286
|
|
|
4287
4287
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4288
4288
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5326,7 +5326,7 @@
|
|
|
5326
5326
|
const { apiFamily, name } = metadata;
|
|
5327
5327
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5328
5328
|
}
|
|
5329
|
-
// version: 1.
|
|
5329
|
+
// version: 1.445.0-117c9de71a
|
|
5330
5330
|
|
|
5331
5331
|
function isSupportedEntity(_objectApiName) {
|
|
5332
5332
|
return true;
|
|
@@ -5982,7 +5982,7 @@
|
|
|
5982
5982
|
* @param data Data to be JSON-stringified.
|
|
5983
5983
|
* @returns JSON.stringified value with consistent ordering of keys.
|
|
5984
5984
|
*/
|
|
5985
|
-
function stableJSONStringify$
|
|
5985
|
+
function stableJSONStringify$3(node) {
|
|
5986
5986
|
// This is for Date values.
|
|
5987
5987
|
if (node && node.toJSON && typeof node.toJSON === 'function') {
|
|
5988
5988
|
// eslint-disable-next-line no-param-reassign
|
|
@@ -6005,7 +6005,7 @@
|
|
|
6005
6005
|
if (i) {
|
|
6006
6006
|
out += ',';
|
|
6007
6007
|
}
|
|
6008
|
-
out += stableJSONStringify$
|
|
6008
|
+
out += stableJSONStringify$3(node[i]) || 'null';
|
|
6009
6009
|
}
|
|
6010
6010
|
return out + ']';
|
|
6011
6011
|
}
|
|
@@ -6016,7 +6016,7 @@
|
|
|
6016
6016
|
out = '';
|
|
6017
6017
|
for (i = 0; i < keys.length; i++) {
|
|
6018
6018
|
const key = keys[i];
|
|
6019
|
-
const value = stableJSONStringify$
|
|
6019
|
+
const value = stableJSONStringify$3(node[key]);
|
|
6020
6020
|
if (!value) {
|
|
6021
6021
|
continue;
|
|
6022
6022
|
}
|
|
@@ -8117,7 +8117,7 @@
|
|
|
8117
8117
|
};
|
|
8118
8118
|
}
|
|
8119
8119
|
else {
|
|
8120
|
-
buildNetworkSnapshot$
|
|
8120
|
+
buildNetworkSnapshot$1a(luvio, {
|
|
8121
8121
|
recordId: incoming.id,
|
|
8122
8122
|
optionalFields: convertTrieToFields$1(incomingTrackedFieldsTrieRoot),
|
|
8123
8123
|
});
|
|
@@ -8576,7 +8576,7 @@
|
|
|
8576
8576
|
function buildSnapshotRefresh$5(luvio, config) {
|
|
8577
8577
|
return {
|
|
8578
8578
|
config,
|
|
8579
|
-
resolve: () => buildNetworkSnapshot$
|
|
8579
|
+
resolve: () => buildNetworkSnapshot$1a(luvio, config),
|
|
8580
8580
|
};
|
|
8581
8581
|
}
|
|
8582
8582
|
function prepareRequest$7(luvio, config) {
|
|
@@ -8621,7 +8621,7 @@
|
|
|
8621
8621
|
const errorSnapshot = ingestError$M(luvio, config, key, err);
|
|
8622
8622
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
8623
8623
|
}
|
|
8624
|
-
function buildNetworkSnapshot$
|
|
8624
|
+
function buildNetworkSnapshot$1a(luvio, config, serverRequestCount = 0, options) {
|
|
8625
8625
|
const { request, key, allTrackedFields, resourceParams } = prepareRequest$7(luvio, config);
|
|
8626
8626
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
8627
8627
|
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
@@ -8678,7 +8678,7 @@
|
|
|
8678
8678
|
priority: networkPriority,
|
|
8679
8679
|
};
|
|
8680
8680
|
}
|
|
8681
|
-
return buildNetworkSnapshot$
|
|
8681
|
+
return buildNetworkSnapshot$1a(luvio, config, 0, dispatchOptions);
|
|
8682
8682
|
}
|
|
8683
8683
|
function getRecordByFields$1(luvio, config, requestContext) {
|
|
8684
8684
|
return luvio.applyCachePolicy(requestContext || {}, { config, luvio }, buildCachedSnapshotCachePolicy$Q, buildNetworkSnapshotCachePolicy$R);
|
|
@@ -9028,7 +9028,7 @@
|
|
|
9028
9028
|
},
|
|
9029
9029
|
refresh: {
|
|
9030
9030
|
config,
|
|
9031
|
-
resolve: () => buildNetworkSnapshot$
|
|
9031
|
+
resolve: () => buildNetworkSnapshot$19(luvio, config, serverRequestCount, snapshotRefreshOptions$2),
|
|
9032
9032
|
},
|
|
9033
9033
|
variables: {},
|
|
9034
9034
|
};
|
|
@@ -9038,11 +9038,11 @@
|
|
|
9038
9038
|
function onFetchResponseError$O(luvio, config, resourceParams, response) {
|
|
9039
9039
|
const snapshot = ingestError$L(luvio, resourceParams, response, {
|
|
9040
9040
|
config,
|
|
9041
|
-
resolve: () => buildNetworkSnapshot$
|
|
9041
|
+
resolve: () => buildNetworkSnapshot$19(luvio, config, 0, snapshotRefreshOptions$2),
|
|
9042
9042
|
});
|
|
9043
9043
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9044
9044
|
}
|
|
9045
|
-
function buildNetworkSnapshot$
|
|
9045
|
+
function buildNetworkSnapshot$19(luvio, config, serverRequestCount = 0, options) {
|
|
9046
9046
|
const resourceParams = createResourceParams$11(config);
|
|
9047
9047
|
const request = createResourceRequest$1b(resourceParams);
|
|
9048
9048
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
@@ -9069,7 +9069,7 @@
|
|
|
9069
9069
|
recordId,
|
|
9070
9070
|
optionalFields: convertTrieToFields$1(map.conflicts[recordId].trackedFields),
|
|
9071
9071
|
};
|
|
9072
|
-
buildNetworkSnapshot$
|
|
9072
|
+
buildNetworkSnapshot$1a(luvio, config, map.serverRequestCount);
|
|
9073
9073
|
}
|
|
9074
9074
|
else {
|
|
9075
9075
|
const records = reduce$3.call(ids, (acc, id) => {
|
|
@@ -9081,7 +9081,7 @@
|
|
|
9081
9081
|
return acc;
|
|
9082
9082
|
}, []);
|
|
9083
9083
|
const config = { records };
|
|
9084
|
-
buildNetworkSnapshot$
|
|
9084
|
+
buildNetworkSnapshot$19(luvio, config, map.serverRequestCount);
|
|
9085
9085
|
}
|
|
9086
9086
|
}
|
|
9087
9087
|
|
|
@@ -11197,14 +11197,14 @@
|
|
|
11197
11197
|
function onFetchResponseSuccess$M(luvio, config, resourceParams, response) {
|
|
11198
11198
|
const snapshot = ingestSuccess$Q(luvio, resourceParams, response, {
|
|
11199
11199
|
config,
|
|
11200
|
-
resolve: () => buildNetworkSnapshot$
|
|
11200
|
+
resolve: () => buildNetworkSnapshot$18(luvio, config, snapshotRefreshOptions$2)
|
|
11201
11201
|
});
|
|
11202
11202
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11203
11203
|
}
|
|
11204
11204
|
function onFetchResponseError$N(luvio, config, resourceParams, response) {
|
|
11205
11205
|
const snapshot = ingestError$J(luvio, resourceParams, response, {
|
|
11206
11206
|
config,
|
|
11207
|
-
resolve: () => buildNetworkSnapshot$
|
|
11207
|
+
resolve: () => buildNetworkSnapshot$18(luvio, config, snapshotRefreshOptions$2)
|
|
11208
11208
|
});
|
|
11209
11209
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11210
11210
|
}
|
|
@@ -11283,7 +11283,7 @@
|
|
|
11283
11283
|
}
|
|
11284
11284
|
return node.data.__metadata;
|
|
11285
11285
|
}
|
|
11286
|
-
function buildNetworkSnapshot$
|
|
11286
|
+
function buildNetworkSnapshot$18(luvio, config, options, cacheSnapshot) {
|
|
11287
11287
|
const resourceParams = createResourceParams$_(config);
|
|
11288
11288
|
const request = prepareRequest$6(luvio, config, resourceParams, cacheSnapshot);
|
|
11289
11289
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -11298,7 +11298,7 @@
|
|
|
11298
11298
|
});
|
|
11299
11299
|
}
|
|
11300
11300
|
function buildNetworkSnapshotCachePolicy$Q(context, coercedAdapterRequestContext) {
|
|
11301
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11301
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$18, undefined, true);
|
|
11302
11302
|
}
|
|
11303
11303
|
function buildCachedSnapshotCachePolicy$P(context, storeLookup) {
|
|
11304
11304
|
const { luvio, config } = context;
|
|
@@ -11309,7 +11309,7 @@
|
|
|
11309
11309
|
};
|
|
11310
11310
|
const cacheSnapshot = storeLookup(selector, {
|
|
11311
11311
|
config,
|
|
11312
|
-
resolve: () => buildNetworkSnapshot$
|
|
11312
|
+
resolve: () => buildNetworkSnapshot$18(luvio, config, snapshotRefreshOptions$2)
|
|
11313
11313
|
});
|
|
11314
11314
|
if (isUnfulfilledSnapshot$1$1(cacheSnapshot) && cacheSnapshot.data !== undefined) {
|
|
11315
11315
|
context.cacheSnapshot = cacheSnapshot;
|
|
@@ -12405,18 +12405,18 @@
|
|
|
12405
12405
|
function onFetchResponseSuccess$L(luvio, config, resourceParams, response) {
|
|
12406
12406
|
const snapshot = ingestSuccess$P(luvio, resourceParams, response, {
|
|
12407
12407
|
config,
|
|
12408
|
-
resolve: () => buildNetworkSnapshot$
|
|
12408
|
+
resolve: () => buildNetworkSnapshot$17(luvio, config, snapshotRefreshOptions$2)
|
|
12409
12409
|
});
|
|
12410
12410
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
12411
12411
|
}
|
|
12412
12412
|
function onFetchResponseError$M(luvio, config, resourceParams, response) {
|
|
12413
12413
|
const snapshot = ingestError$I(luvio, resourceParams, response, {
|
|
12414
12414
|
config,
|
|
12415
|
-
resolve: () => buildNetworkSnapshot$
|
|
12415
|
+
resolve: () => buildNetworkSnapshot$17(luvio, config, snapshotRefreshOptions$2)
|
|
12416
12416
|
});
|
|
12417
12417
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
12418
12418
|
}
|
|
12419
|
-
function buildNetworkSnapshot$
|
|
12419
|
+
function buildNetworkSnapshot$17(luvio, config, options) {
|
|
12420
12420
|
const resourceParams = createResourceParams$Y(config);
|
|
12421
12421
|
const request = createResourceRequest$13(resourceParams);
|
|
12422
12422
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -12431,7 +12431,7 @@
|
|
|
12431
12431
|
});
|
|
12432
12432
|
}
|
|
12433
12433
|
function buildNetworkSnapshotCachePolicy$P(context, coercedAdapterRequestContext) {
|
|
12434
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
12434
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$17, undefined, false);
|
|
12435
12435
|
}
|
|
12436
12436
|
function buildCachedSnapshotCachePolicy$O(context, storeLookup) {
|
|
12437
12437
|
const { luvio, config } = context;
|
|
@@ -12442,7 +12442,7 @@
|
|
|
12442
12442
|
};
|
|
12443
12443
|
const cacheSnapshot = storeLookup(selector, {
|
|
12444
12444
|
config,
|
|
12445
|
-
resolve: () => buildNetworkSnapshot$
|
|
12445
|
+
resolve: () => buildNetworkSnapshot$17(luvio, config, snapshotRefreshOptions$2)
|
|
12446
12446
|
});
|
|
12447
12447
|
return cacheSnapshot;
|
|
12448
12448
|
}
|
|
@@ -13117,7 +13117,7 @@
|
|
|
13117
13117
|
function buildSnapshotRefresh$4$1(luvio, config) {
|
|
13118
13118
|
return {
|
|
13119
13119
|
config,
|
|
13120
|
-
resolve: () => buildNetworkSnapshot$
|
|
13120
|
+
resolve: () => buildNetworkSnapshot$16(luvio, config),
|
|
13121
13121
|
};
|
|
13122
13122
|
}
|
|
13123
13123
|
function markRecordUiNulledOutLookupFields$1(recordLookupFields, recordNodes) {
|
|
@@ -13271,7 +13271,7 @@
|
|
|
13271
13271
|
return errorSnapshot;
|
|
13272
13272
|
});
|
|
13273
13273
|
}
|
|
13274
|
-
function buildNetworkSnapshot$
|
|
13274
|
+
function buildNetworkSnapshot$16(luvio, config, dispatchContext) {
|
|
13275
13275
|
const { key, resourceRequest, selectorKey } = prepareRequest$5$1(luvio, config);
|
|
13276
13276
|
return luvio
|
|
13277
13277
|
.dispatchResourceRequest(resourceRequest, dispatchContext)
|
|
@@ -13339,7 +13339,7 @@
|
|
|
13339
13339
|
priority: networkPriority,
|
|
13340
13340
|
};
|
|
13341
13341
|
}
|
|
13342
|
-
return buildNetworkSnapshot$
|
|
13342
|
+
return buildNetworkSnapshot$16(context.luvio, context.config, dispatchOptions);
|
|
13343
13343
|
}
|
|
13344
13344
|
function coerceConfigWithDefaults$3(untrustedConfig) {
|
|
13345
13345
|
const config = validateAdapterConfig$12(untrustedConfig, GET_RECORDUI_ADAPTER_CONFIG$1);
|
|
@@ -13406,7 +13406,7 @@
|
|
|
13406
13406
|
modes,
|
|
13407
13407
|
optionalFields,
|
|
13408
13408
|
};
|
|
13409
|
-
return buildNetworkSnapshot$
|
|
13409
|
+
return buildNetworkSnapshot$16(luvio, recordUiConfig).then((snapshot) => {
|
|
13410
13410
|
const refresh = buildSnapshotRefresh$3$1(luvio, config);
|
|
13411
13411
|
if (isErrorSnapshot$1(snapshot)) {
|
|
13412
13412
|
var recordKey = keyBuilder$29(luvio, { recordId });
|
|
@@ -13554,7 +13554,7 @@
|
|
|
13554
13554
|
}
|
|
13555
13555
|
return recordSnapshotOrPromise;
|
|
13556
13556
|
}
|
|
13557
|
-
function buildNetworkSnapshot$
|
|
13557
|
+
function buildNetworkSnapshot$15(context, coercedAdapterRequestContext) {
|
|
13558
13558
|
const { config, luvio, adapterContext } = context;
|
|
13559
13559
|
const { recordId } = config;
|
|
13560
13560
|
const optionalFields = config.optionalFields === undefined ? [] : dedupe$3(config.optionalFields).sort();
|
|
@@ -13580,7 +13580,7 @@
|
|
|
13580
13580
|
fields: context.fields,
|
|
13581
13581
|
optionalFields,
|
|
13582
13582
|
};
|
|
13583
|
-
return buildNetworkSnapshot$
|
|
13583
|
+
return buildNetworkSnapshot$1a(luvio, recordConfig, 0, coercedAdapterRequestContext).then((snapshot) => {
|
|
13584
13584
|
snapshot.refresh = refresh;
|
|
13585
13585
|
return snapshot;
|
|
13586
13586
|
});
|
|
@@ -13593,7 +13593,7 @@
|
|
|
13593
13593
|
modes,
|
|
13594
13594
|
optionalFields,
|
|
13595
13595
|
};
|
|
13596
|
-
return buildNetworkSnapshot$
|
|
13596
|
+
return buildNetworkSnapshot$16(luvio, recordUiConfig, dispatchOptions).then((snapshot) => processRecordUiRepresentation$1(luvio, refresh, recordId, modes, snapshot, adapterContext, optionalFields));
|
|
13597
13597
|
}
|
|
13598
13598
|
function buildRecordLayoutCachedSnapshot$1(context, storeLookup) {
|
|
13599
13599
|
const { config, luvio } = context;
|
|
@@ -13677,7 +13677,7 @@
|
|
|
13677
13677
|
function makeNetworkOnlySnapshot$1(luvio, config, adapterContext, requestContext) {
|
|
13678
13678
|
return luvio.applyCachePolicy(requestContext || {}, { config, luvio, adapterContext }, () => {
|
|
13679
13679
|
return undefined;
|
|
13680
|
-
}, buildNetworkSnapshot$
|
|
13680
|
+
}, buildNetworkSnapshot$15);
|
|
13681
13681
|
}
|
|
13682
13682
|
function getRecordLayoutType$1(luvio, config, adapterContext, requestContext) {
|
|
13683
13683
|
// lookup record layout
|
|
@@ -13714,10 +13714,10 @@
|
|
|
13714
13714
|
if (!fields) {
|
|
13715
13715
|
return makeNetworkOnlySnapshot$1(luvio, config, adapterContext, requestContext);
|
|
13716
13716
|
}
|
|
13717
|
-
return luvio.applyCachePolicy(requestContext || {}, { config, luvio, adapterContext }, buildRecordSnapshot$1(luvio, config, recordLayoutSnapshot, objectInfoSnapshot, fields), buildNetworkSnapshot$
|
|
13717
|
+
return luvio.applyCachePolicy(requestContext || {}, { config, luvio, adapterContext }, buildRecordSnapshot$1(luvio, config, recordLayoutSnapshot, objectInfoSnapshot, fields), buildNetworkSnapshot$15);
|
|
13718
13718
|
}
|
|
13719
13719
|
return makeRecordLayoutMap$1(luvio, config, objectInfoSnapshot.data.apiName, recordTypeId, layoutTypes, modes, adapterContext).then((recordLayoutMap) => {
|
|
13720
|
-
return luvio.applyCachePolicy(requestContext || {}, { config, luvio, adapterContext }, buildRecordLayoutSnapshot$1(recordLayoutMap, luvio, config, recordLayoutSnapshot, objectInfoSnapshot), buildNetworkSnapshot$
|
|
13720
|
+
return luvio.applyCachePolicy(requestContext || {}, { config, luvio, adapterContext }, buildRecordLayoutSnapshot$1(recordLayoutMap, luvio, config, recordLayoutSnapshot, objectInfoSnapshot), buildNetworkSnapshot$15);
|
|
13721
13721
|
});
|
|
13722
13722
|
});
|
|
13723
13723
|
});
|
|
@@ -14879,18 +14879,18 @@
|
|
|
14879
14879
|
function onFetchResponseSuccess$J(luvio, config, resourceParams, response) {
|
|
14880
14880
|
const snapshot = ingestSuccess$O(luvio, resourceParams, response, {
|
|
14881
14881
|
config,
|
|
14882
|
-
resolve: () => buildNetworkSnapshot$
|
|
14882
|
+
resolve: () => buildNetworkSnapshot$14(luvio, config, snapshotRefreshOptions$2)
|
|
14883
14883
|
});
|
|
14884
14884
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
14885
14885
|
}
|
|
14886
14886
|
function onFetchResponseError$K(luvio, config, resourceParams, response) {
|
|
14887
14887
|
const snapshot = ingestError$H(luvio, resourceParams, response, {
|
|
14888
14888
|
config,
|
|
14889
|
-
resolve: () => buildNetworkSnapshot$
|
|
14889
|
+
resolve: () => buildNetworkSnapshot$14(luvio, config, snapshotRefreshOptions$2)
|
|
14890
14890
|
});
|
|
14891
14891
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
14892
14892
|
}
|
|
14893
|
-
function buildNetworkSnapshot$
|
|
14893
|
+
function buildNetworkSnapshot$14(luvio, config, options) {
|
|
14894
14894
|
const resourceParams = createResourceParams$X(config);
|
|
14895
14895
|
const request = createResourceRequest$11(resourceParams);
|
|
14896
14896
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -14905,7 +14905,7 @@
|
|
|
14905
14905
|
});
|
|
14906
14906
|
}
|
|
14907
14907
|
function buildNetworkSnapshotCachePolicy$O(context, coercedAdapterRequestContext) {
|
|
14908
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
14908
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$14, undefined, false);
|
|
14909
14909
|
}
|
|
14910
14910
|
function buildCachedSnapshotCachePolicy$N(context, storeLookup) {
|
|
14911
14911
|
const { luvio, config } = context;
|
|
@@ -14916,7 +14916,7 @@
|
|
|
14916
14916
|
};
|
|
14917
14917
|
const cacheSnapshot = storeLookup(selector, {
|
|
14918
14918
|
config,
|
|
14919
|
-
resolve: () => buildNetworkSnapshot$
|
|
14919
|
+
resolve: () => buildNetworkSnapshot$14(luvio, config, snapshotRefreshOptions$2)
|
|
14920
14920
|
});
|
|
14921
14921
|
return cacheSnapshot;
|
|
14922
14922
|
}
|
|
@@ -15070,18 +15070,18 @@
|
|
|
15070
15070
|
function onFetchResponseSuccess$I(luvio, config, resourceParams, response) {
|
|
15071
15071
|
const snapshot = ingestSuccess$N(luvio, resourceParams, response, {
|
|
15072
15072
|
config,
|
|
15073
|
-
resolve: () => buildNetworkSnapshot
|
|
15073
|
+
resolve: () => buildNetworkSnapshot$13(luvio, config, snapshotRefreshOptions$2)
|
|
15074
15074
|
});
|
|
15075
15075
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15076
15076
|
}
|
|
15077
15077
|
function onFetchResponseError$J(luvio, config, resourceParams, response) {
|
|
15078
15078
|
const snapshot = ingestError$G(luvio, resourceParams, response, {
|
|
15079
15079
|
config,
|
|
15080
|
-
resolve: () => buildNetworkSnapshot
|
|
15080
|
+
resolve: () => buildNetworkSnapshot$13(luvio, config, snapshotRefreshOptions$2)
|
|
15081
15081
|
});
|
|
15082
15082
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15083
15083
|
}
|
|
15084
|
-
function buildNetworkSnapshot
|
|
15084
|
+
function buildNetworkSnapshot$13(luvio, config, options) {
|
|
15085
15085
|
const resourceParams = createResourceParams$W(config);
|
|
15086
15086
|
const request = createResourceRequest$10(resourceParams);
|
|
15087
15087
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -15096,7 +15096,7 @@
|
|
|
15096
15096
|
});
|
|
15097
15097
|
}
|
|
15098
15098
|
function buildNetworkSnapshotCachePolicy$N(context, coercedAdapterRequestContext) {
|
|
15099
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot
|
|
15099
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$13, undefined, false);
|
|
15100
15100
|
}
|
|
15101
15101
|
function buildCachedSnapshotCachePolicy$M(context, storeLookup) {
|
|
15102
15102
|
const { luvio, config } = context;
|
|
@@ -15107,7 +15107,7 @@
|
|
|
15107
15107
|
};
|
|
15108
15108
|
const cacheSnapshot = storeLookup(selector, {
|
|
15109
15109
|
config,
|
|
15110
|
-
resolve: () => buildNetworkSnapshot
|
|
15110
|
+
resolve: () => buildNetworkSnapshot$13(luvio, config, snapshotRefreshOptions$2)
|
|
15111
15111
|
});
|
|
15112
15112
|
return cacheSnapshot;
|
|
15113
15113
|
}
|
|
@@ -15236,18 +15236,18 @@
|
|
|
15236
15236
|
function onFetchResponseSuccess$H(luvio, config, resourceParams, response) {
|
|
15237
15237
|
const snapshot = ingestSuccess$M(luvio, resourceParams, response, {
|
|
15238
15238
|
config,
|
|
15239
|
-
resolve: () => buildNetworkSnapshot$
|
|
15239
|
+
resolve: () => buildNetworkSnapshot$12(luvio, config, snapshotRefreshOptions$2)
|
|
15240
15240
|
});
|
|
15241
15241
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15242
15242
|
}
|
|
15243
15243
|
function onFetchResponseError$I(luvio, config, resourceParams, response) {
|
|
15244
15244
|
const snapshot = ingestError$F(luvio, resourceParams, response, {
|
|
15245
15245
|
config,
|
|
15246
|
-
resolve: () => buildNetworkSnapshot$
|
|
15246
|
+
resolve: () => buildNetworkSnapshot$12(luvio, config, snapshotRefreshOptions$2)
|
|
15247
15247
|
});
|
|
15248
15248
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15249
15249
|
}
|
|
15250
|
-
function buildNetworkSnapshot$
|
|
15250
|
+
function buildNetworkSnapshot$12(luvio, config, options) {
|
|
15251
15251
|
const resourceParams = createResourceParams$V(config);
|
|
15252
15252
|
const request = createResourceRequest$$(resourceParams);
|
|
15253
15253
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -15262,7 +15262,7 @@
|
|
|
15262
15262
|
});
|
|
15263
15263
|
}
|
|
15264
15264
|
function buildNetworkSnapshotCachePolicy$M(context, coercedAdapterRequestContext) {
|
|
15265
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
15265
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$12, undefined, false);
|
|
15266
15266
|
}
|
|
15267
15267
|
function buildCachedSnapshotCachePolicy$L(context, storeLookup) {
|
|
15268
15268
|
const { luvio, config } = context;
|
|
@@ -15273,7 +15273,7 @@
|
|
|
15273
15273
|
};
|
|
15274
15274
|
const cacheSnapshot = storeLookup(selector, {
|
|
15275
15275
|
config,
|
|
15276
|
-
resolve: () => buildNetworkSnapshot$
|
|
15276
|
+
resolve: () => buildNetworkSnapshot$12(luvio, config, snapshotRefreshOptions$2)
|
|
15277
15277
|
});
|
|
15278
15278
|
return cacheSnapshot;
|
|
15279
15279
|
}
|
|
@@ -15370,18 +15370,18 @@
|
|
|
15370
15370
|
function onFetchResponseSuccess$G(luvio, config, resourceParams, response) {
|
|
15371
15371
|
const snapshot = ingestSuccess$L(luvio, resourceParams, response, {
|
|
15372
15372
|
config,
|
|
15373
|
-
resolve: () => buildNetworkSnapshot$
|
|
15373
|
+
resolve: () => buildNetworkSnapshot$11(luvio, config, snapshotRefreshOptions$2)
|
|
15374
15374
|
});
|
|
15375
15375
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15376
15376
|
}
|
|
15377
15377
|
function onFetchResponseError$H(luvio, config, resourceParams, response) {
|
|
15378
15378
|
const snapshot = ingestError$E(luvio, resourceParams, response, {
|
|
15379
15379
|
config,
|
|
15380
|
-
resolve: () => buildNetworkSnapshot$
|
|
15380
|
+
resolve: () => buildNetworkSnapshot$11(luvio, config, snapshotRefreshOptions$2)
|
|
15381
15381
|
});
|
|
15382
15382
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15383
15383
|
}
|
|
15384
|
-
function buildNetworkSnapshot$
|
|
15384
|
+
function buildNetworkSnapshot$11(luvio, config, options) {
|
|
15385
15385
|
const resourceParams = createResourceParams$U(config);
|
|
15386
15386
|
const request = createResourceRequest$_(resourceParams);
|
|
15387
15387
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -15396,7 +15396,7 @@
|
|
|
15396
15396
|
});
|
|
15397
15397
|
}
|
|
15398
15398
|
function buildNetworkSnapshotCachePolicy$L(context, coercedAdapterRequestContext) {
|
|
15399
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
15399
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$11, undefined, false);
|
|
15400
15400
|
}
|
|
15401
15401
|
function buildCachedSnapshotCachePolicy$K(context, storeLookup) {
|
|
15402
15402
|
const { luvio, config } = context;
|
|
@@ -15407,7 +15407,7 @@
|
|
|
15407
15407
|
};
|
|
15408
15408
|
const cacheSnapshot = storeLookup(selector, {
|
|
15409
15409
|
config,
|
|
15410
|
-
resolve: () => buildNetworkSnapshot$
|
|
15410
|
+
resolve: () => buildNetworkSnapshot$11(luvio, config, snapshotRefreshOptions$2)
|
|
15411
15411
|
});
|
|
15412
15412
|
return cacheSnapshot;
|
|
15413
15413
|
}
|
|
@@ -15532,18 +15532,18 @@
|
|
|
15532
15532
|
function onFetchResponseSuccess$F(luvio, config, resourceParams, response) {
|
|
15533
15533
|
const snapshot = ingestSuccess$K(luvio, resourceParams, response, {
|
|
15534
15534
|
config,
|
|
15535
|
-
resolve: () => buildNetworkSnapshot$
|
|
15535
|
+
resolve: () => buildNetworkSnapshot$10(luvio, config, snapshotRefreshOptions$2)
|
|
15536
15536
|
});
|
|
15537
15537
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15538
15538
|
}
|
|
15539
15539
|
function onFetchResponseError$G(luvio, config, resourceParams, response) {
|
|
15540
15540
|
const snapshot = ingestError$D(luvio, resourceParams, response, {
|
|
15541
15541
|
config,
|
|
15542
|
-
resolve: () => buildNetworkSnapshot$
|
|
15542
|
+
resolve: () => buildNetworkSnapshot$10(luvio, config, snapshotRefreshOptions$2)
|
|
15543
15543
|
});
|
|
15544
15544
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15545
15545
|
}
|
|
15546
|
-
function buildNetworkSnapshot$
|
|
15546
|
+
function buildNetworkSnapshot$10(luvio, config, options) {
|
|
15547
15547
|
const resourceParams = createResourceParams$T(config);
|
|
15548
15548
|
const request = createResourceRequest$Z(resourceParams);
|
|
15549
15549
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -15558,7 +15558,7 @@
|
|
|
15558
15558
|
});
|
|
15559
15559
|
}
|
|
15560
15560
|
function buildNetworkSnapshotCachePolicy$K(context, coercedAdapterRequestContext) {
|
|
15561
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
15561
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$10, undefined, false);
|
|
15562
15562
|
}
|
|
15563
15563
|
function buildCachedSnapshotCachePolicy$J(context, storeLookup) {
|
|
15564
15564
|
const { luvio, config } = context;
|
|
@@ -15569,7 +15569,7 @@
|
|
|
15569
15569
|
};
|
|
15570
15570
|
const cacheSnapshot = storeLookup(selector, {
|
|
15571
15571
|
config,
|
|
15572
|
-
resolve: () => buildNetworkSnapshot$
|
|
15572
|
+
resolve: () => buildNetworkSnapshot$10(luvio, config, snapshotRefreshOptions$2)
|
|
15573
15573
|
});
|
|
15574
15574
|
return cacheSnapshot;
|
|
15575
15575
|
}
|
|
@@ -15709,18 +15709,18 @@
|
|
|
15709
15709
|
function onFetchResponseSuccess$E(luvio, config, resourceParams, response) {
|
|
15710
15710
|
const snapshot = ingestSuccess$J(luvio, resourceParams, response, {
|
|
15711
15711
|
config,
|
|
15712
|
-
resolve: () => buildNetworkSnapshot
|
|
15712
|
+
resolve: () => buildNetworkSnapshot$$(luvio, config, snapshotRefreshOptions$2)
|
|
15713
15713
|
});
|
|
15714
15714
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15715
15715
|
}
|
|
15716
15716
|
function onFetchResponseError$F(luvio, config, resourceParams, response) {
|
|
15717
15717
|
const snapshot = ingestError$C(luvio, resourceParams, response, {
|
|
15718
15718
|
config,
|
|
15719
|
-
resolve: () => buildNetworkSnapshot
|
|
15719
|
+
resolve: () => buildNetworkSnapshot$$(luvio, config, snapshotRefreshOptions$2)
|
|
15720
15720
|
});
|
|
15721
15721
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15722
15722
|
}
|
|
15723
|
-
function buildNetworkSnapshot
|
|
15723
|
+
function buildNetworkSnapshot$$(luvio, config, options) {
|
|
15724
15724
|
const resourceParams = createResourceParams$S(config);
|
|
15725
15725
|
const request = createResourceRequest$Y(resourceParams);
|
|
15726
15726
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -15735,7 +15735,7 @@
|
|
|
15735
15735
|
});
|
|
15736
15736
|
}
|
|
15737
15737
|
function buildNetworkSnapshotCachePolicy$J(context, coercedAdapterRequestContext) {
|
|
15738
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot
|
|
15738
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$$, undefined, false);
|
|
15739
15739
|
}
|
|
15740
15740
|
function buildCachedSnapshotCachePolicy$I(context, storeLookup) {
|
|
15741
15741
|
const { luvio, config } = context;
|
|
@@ -15746,7 +15746,7 @@
|
|
|
15746
15746
|
};
|
|
15747
15747
|
const cacheSnapshot = storeLookup(selector, {
|
|
15748
15748
|
config,
|
|
15749
|
-
resolve: () => buildNetworkSnapshot
|
|
15749
|
+
resolve: () => buildNetworkSnapshot$$(luvio, config, snapshotRefreshOptions$2)
|
|
15750
15750
|
});
|
|
15751
15751
|
return cacheSnapshot;
|
|
15752
15752
|
}
|
|
@@ -16315,18 +16315,18 @@
|
|
|
16315
16315
|
function onFetchResponseSuccess$D(luvio, config, resourceParams, response) {
|
|
16316
16316
|
const snapshot = ingestSuccess$I(luvio, resourceParams, response, {
|
|
16317
16317
|
config,
|
|
16318
|
-
resolve: () => buildNetworkSnapshot$
|
|
16318
|
+
resolve: () => buildNetworkSnapshot$_(luvio, config, snapshotRefreshOptions$2)
|
|
16319
16319
|
});
|
|
16320
16320
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
16321
16321
|
}
|
|
16322
16322
|
function onFetchResponseError$E(luvio, config, resourceParams, response) {
|
|
16323
16323
|
const snapshot = ingestError$B(luvio, resourceParams, response, {
|
|
16324
16324
|
config,
|
|
16325
|
-
resolve: () => buildNetworkSnapshot$
|
|
16325
|
+
resolve: () => buildNetworkSnapshot$_(luvio, config, snapshotRefreshOptions$2)
|
|
16326
16326
|
});
|
|
16327
16327
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
16328
16328
|
}
|
|
16329
|
-
function buildNetworkSnapshot$
|
|
16329
|
+
function buildNetworkSnapshot$_(luvio, config, options) {
|
|
16330
16330
|
const resourceParams = createResourceParams$R(config);
|
|
16331
16331
|
const request = createResourceRequest$X(resourceParams);
|
|
16332
16332
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -16341,7 +16341,7 @@
|
|
|
16341
16341
|
});
|
|
16342
16342
|
}
|
|
16343
16343
|
function buildNetworkSnapshotCachePolicy$I(context, coercedAdapterRequestContext) {
|
|
16344
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
16344
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$_, undefined, false);
|
|
16345
16345
|
}
|
|
16346
16346
|
function buildCachedSnapshotCachePolicy$H(context, storeLookup) {
|
|
16347
16347
|
const { luvio, config } = context;
|
|
@@ -16352,7 +16352,7 @@
|
|
|
16352
16352
|
};
|
|
16353
16353
|
const cacheSnapshot = storeLookup(selector, {
|
|
16354
16354
|
config,
|
|
16355
|
-
resolve: () => buildNetworkSnapshot$
|
|
16355
|
+
resolve: () => buildNetworkSnapshot$_(luvio, config, snapshotRefreshOptions$2)
|
|
16356
16356
|
});
|
|
16357
16357
|
return cacheSnapshot;
|
|
16358
16358
|
}
|
|
@@ -16487,7 +16487,7 @@
|
|
|
16487
16487
|
const resourceParams = createResourceParams$Q(config);
|
|
16488
16488
|
return selectFields$6$1(luvio, resourceParams);
|
|
16489
16489
|
}
|
|
16490
|
-
function buildNetworkSnapshot$
|
|
16490
|
+
function buildNetworkSnapshot$Z(luvio, config, options) {
|
|
16491
16491
|
const resourceParams = createResourceParams$Q(config);
|
|
16492
16492
|
const request = createResourceRequest$W(resourceParams);
|
|
16493
16493
|
const key = keyBuilder$1w$2(luvio, config);
|
|
@@ -16555,18 +16555,18 @@
|
|
|
16555
16555
|
};
|
|
16556
16556
|
return luvio.storeLookup(selector, {
|
|
16557
16557
|
config,
|
|
16558
|
-
resolve: () => buildNetworkSnapshot$
|
|
16558
|
+
resolve: () => buildNetworkSnapshot$Z(luvio, config, snapshotRefreshOptions$2)
|
|
16559
16559
|
});
|
|
16560
16560
|
}
|
|
16561
16561
|
function onFetchResponseError$D(luvio, config, resourceParams, response) {
|
|
16562
16562
|
const snapshot = ingestError$A(luvio, resourceParams, response, {
|
|
16563
16563
|
config,
|
|
16564
|
-
resolve: () => buildNetworkSnapshot$
|
|
16564
|
+
resolve: () => buildNetworkSnapshot$Z(luvio, config, snapshotRefreshOptions$2)
|
|
16565
16565
|
});
|
|
16566
16566
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
16567
16567
|
}
|
|
16568
16568
|
function buildNetworkSnapshotCachePolicy$H(context, coercedAdapterRequestContext) {
|
|
16569
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
16569
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$Z, undefined, false);
|
|
16570
16570
|
}
|
|
16571
16571
|
function buildCachedSnapshotCachePolicy$G(context, storeLookup) {
|
|
16572
16572
|
const { luvio, config } = context;
|
|
@@ -16577,7 +16577,7 @@
|
|
|
16577
16577
|
};
|
|
16578
16578
|
const cacheSnapshot = storeLookup(selector, {
|
|
16579
16579
|
config,
|
|
16580
|
-
resolve: () => buildNetworkSnapshot$
|
|
16580
|
+
resolve: () => buildNetworkSnapshot$Z(luvio, config, snapshotRefreshOptions$2)
|
|
16581
16581
|
});
|
|
16582
16582
|
return cacheSnapshot;
|
|
16583
16583
|
}
|
|
@@ -16680,18 +16680,18 @@
|
|
|
16680
16680
|
function onFetchResponseSuccess$C(luvio, config, resourceParams, response) {
|
|
16681
16681
|
const snapshot = ingestSuccess$H(luvio, resourceParams, response, {
|
|
16682
16682
|
config,
|
|
16683
|
-
resolve: () => buildNetworkSnapshot$
|
|
16683
|
+
resolve: () => buildNetworkSnapshot$Y(luvio, config, snapshotRefreshOptions$2)
|
|
16684
16684
|
});
|
|
16685
16685
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
16686
16686
|
}
|
|
16687
16687
|
function onFetchResponseError$C(luvio, config, resourceParams, response) {
|
|
16688
16688
|
const snapshot = ingestError$z(luvio, resourceParams, response, {
|
|
16689
16689
|
config,
|
|
16690
|
-
resolve: () => buildNetworkSnapshot$
|
|
16690
|
+
resolve: () => buildNetworkSnapshot$Y(luvio, config, snapshotRefreshOptions$2)
|
|
16691
16691
|
});
|
|
16692
16692
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
16693
16693
|
}
|
|
16694
|
-
function buildNetworkSnapshot$
|
|
16694
|
+
function buildNetworkSnapshot$Y(luvio, config, options) {
|
|
16695
16695
|
const resourceParams = createResourceParams$P(config);
|
|
16696
16696
|
const request = createResourceRequest$V(resourceParams);
|
|
16697
16697
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -16706,7 +16706,7 @@
|
|
|
16706
16706
|
});
|
|
16707
16707
|
}
|
|
16708
16708
|
function buildNetworkSnapshotCachePolicy$G(context, coercedAdapterRequestContext) {
|
|
16709
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
16709
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$Y, undefined, false);
|
|
16710
16710
|
}
|
|
16711
16711
|
function buildCachedSnapshotCachePolicy$F(context, storeLookup) {
|
|
16712
16712
|
const { luvio, config } = context;
|
|
@@ -16717,7 +16717,7 @@
|
|
|
16717
16717
|
};
|
|
16718
16718
|
const cacheSnapshot = storeLookup(selector, {
|
|
16719
16719
|
config,
|
|
16720
|
-
resolve: () => buildNetworkSnapshot$
|
|
16720
|
+
resolve: () => buildNetworkSnapshot$Y(luvio, config, snapshotRefreshOptions$2)
|
|
16721
16721
|
});
|
|
16722
16722
|
return cacheSnapshot;
|
|
16723
16723
|
}
|
|
@@ -16814,18 +16814,18 @@
|
|
|
16814
16814
|
function onFetchResponseSuccess$B(luvio, config, resourceParams, response) {
|
|
16815
16815
|
const snapshot = ingestSuccess$G(luvio, resourceParams, response, {
|
|
16816
16816
|
config,
|
|
16817
|
-
resolve: () => buildNetworkSnapshot$
|
|
16817
|
+
resolve: () => buildNetworkSnapshot$X(luvio, config, snapshotRefreshOptions$2)
|
|
16818
16818
|
});
|
|
16819
16819
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
16820
16820
|
}
|
|
16821
16821
|
function onFetchResponseError$B(luvio, config, resourceParams, response) {
|
|
16822
16822
|
const snapshot = ingestError$y(luvio, resourceParams, response, {
|
|
16823
16823
|
config,
|
|
16824
|
-
resolve: () => buildNetworkSnapshot$
|
|
16824
|
+
resolve: () => buildNetworkSnapshot$X(luvio, config, snapshotRefreshOptions$2)
|
|
16825
16825
|
});
|
|
16826
16826
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
16827
16827
|
}
|
|
16828
|
-
function buildNetworkSnapshot$
|
|
16828
|
+
function buildNetworkSnapshot$X(luvio, config, options) {
|
|
16829
16829
|
const resourceParams = createResourceParams$O(config);
|
|
16830
16830
|
const request = createResourceRequest$U(resourceParams);
|
|
16831
16831
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -16840,7 +16840,7 @@
|
|
|
16840
16840
|
});
|
|
16841
16841
|
}
|
|
16842
16842
|
function buildNetworkSnapshotCachePolicy$F(context, coercedAdapterRequestContext) {
|
|
16843
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
16843
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$X, undefined, false);
|
|
16844
16844
|
}
|
|
16845
16845
|
function buildCachedSnapshotCachePolicy$E(context, storeLookup) {
|
|
16846
16846
|
const { luvio, config } = context;
|
|
@@ -16851,7 +16851,7 @@
|
|
|
16851
16851
|
};
|
|
16852
16852
|
const cacheSnapshot = storeLookup(selector, {
|
|
16853
16853
|
config,
|
|
16854
|
-
resolve: () => buildNetworkSnapshot$
|
|
16854
|
+
resolve: () => buildNetworkSnapshot$X(luvio, config, snapshotRefreshOptions$2)
|
|
16855
16855
|
});
|
|
16856
16856
|
return cacheSnapshot;
|
|
16857
16857
|
}
|
|
@@ -17303,18 +17303,18 @@
|
|
|
17303
17303
|
function onFetchResponseSuccess$A(luvio, config, resourceParams, response) {
|
|
17304
17304
|
const snapshot = ingestSuccess$E(luvio, resourceParams, response, {
|
|
17305
17305
|
config,
|
|
17306
|
-
resolve: () => buildNetworkSnapshot$
|
|
17306
|
+
resolve: () => buildNetworkSnapshot$W(luvio, config, snapshotRefreshOptions$2)
|
|
17307
17307
|
});
|
|
17308
17308
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
17309
17309
|
}
|
|
17310
17310
|
function onFetchResponseError$A(luvio, config, resourceParams, response) {
|
|
17311
17311
|
const snapshot = ingestError$w(luvio, resourceParams, response, {
|
|
17312
17312
|
config,
|
|
17313
|
-
resolve: () => buildNetworkSnapshot$
|
|
17313
|
+
resolve: () => buildNetworkSnapshot$W(luvio, config, snapshotRefreshOptions$2)
|
|
17314
17314
|
});
|
|
17315
17315
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
17316
17316
|
}
|
|
17317
|
-
function buildNetworkSnapshot$
|
|
17317
|
+
function buildNetworkSnapshot$W(luvio, config, options) {
|
|
17318
17318
|
const resourceParams = createResourceParams$N(config);
|
|
17319
17319
|
const request = createResourceRequest$S(resourceParams);
|
|
17320
17320
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -17329,7 +17329,7 @@
|
|
|
17329
17329
|
});
|
|
17330
17330
|
}
|
|
17331
17331
|
function buildNetworkSnapshotCachePolicy$E(context, coercedAdapterRequestContext) {
|
|
17332
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
17332
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$W, 'get', false);
|
|
17333
17333
|
}
|
|
17334
17334
|
function buildCachedSnapshotCachePolicy$D(context, storeLookup) {
|
|
17335
17335
|
const { luvio, config } = context;
|
|
@@ -17340,7 +17340,7 @@
|
|
|
17340
17340
|
};
|
|
17341
17341
|
const cacheSnapshot = storeLookup(selector, {
|
|
17342
17342
|
config,
|
|
17343
|
-
resolve: () => buildNetworkSnapshot$
|
|
17343
|
+
resolve: () => buildNetworkSnapshot$W(luvio, config, snapshotRefreshOptions$2)
|
|
17344
17344
|
});
|
|
17345
17345
|
return cacheSnapshot;
|
|
17346
17346
|
}
|
|
@@ -17393,18 +17393,18 @@
|
|
|
17393
17393
|
function onFetchResponseSuccess$z(luvio, config, resourceParams, response) {
|
|
17394
17394
|
const snapshot = ingestSuccess$F(luvio, resourceParams, response, {
|
|
17395
17395
|
config,
|
|
17396
|
-
resolve: () => buildNetworkSnapshot$
|
|
17396
|
+
resolve: () => buildNetworkSnapshot$V(luvio, config, snapshotRefreshOptions$2)
|
|
17397
17397
|
});
|
|
17398
17398
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
17399
17399
|
}
|
|
17400
17400
|
function onFetchResponseError$z(luvio, config, resourceParams, response) {
|
|
17401
17401
|
const snapshot = ingestError$x(luvio, resourceParams, response, {
|
|
17402
17402
|
config,
|
|
17403
|
-
resolve: () => buildNetworkSnapshot$
|
|
17403
|
+
resolve: () => buildNetworkSnapshot$V(luvio, config, snapshotRefreshOptions$2)
|
|
17404
17404
|
});
|
|
17405
17405
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
17406
17406
|
}
|
|
17407
|
-
function buildNetworkSnapshot$
|
|
17407
|
+
function buildNetworkSnapshot$V(luvio, config, options) {
|
|
17408
17408
|
const resourceParams = createResourceParams$M(config);
|
|
17409
17409
|
const request = createResourceRequest$T(resourceParams);
|
|
17410
17410
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -17419,7 +17419,7 @@
|
|
|
17419
17419
|
});
|
|
17420
17420
|
}
|
|
17421
17421
|
function buildNetworkSnapshotCachePolicy$D(context, coercedAdapterRequestContext) {
|
|
17422
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
17422
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$V, 'get', false);
|
|
17423
17423
|
}
|
|
17424
17424
|
function buildCachedSnapshotCachePolicy$C(context, storeLookup) {
|
|
17425
17425
|
const { luvio, config } = context;
|
|
@@ -17430,7 +17430,7 @@
|
|
|
17430
17430
|
};
|
|
17431
17431
|
const cacheSnapshot = storeLookup(selector, {
|
|
17432
17432
|
config,
|
|
17433
|
-
resolve: () => buildNetworkSnapshot$
|
|
17433
|
+
resolve: () => buildNetworkSnapshot$V(luvio, config, snapshotRefreshOptions$2)
|
|
17434
17434
|
});
|
|
17435
17435
|
return cacheSnapshot;
|
|
17436
17436
|
}
|
|
@@ -17528,18 +17528,18 @@
|
|
|
17528
17528
|
function onFetchResponseSuccess$y(luvio, config, resourceParams, response) {
|
|
17529
17529
|
const snapshot = ingestSuccess$D(luvio, resourceParams, response, {
|
|
17530
17530
|
config,
|
|
17531
|
-
resolve: () => buildNetworkSnapshot$
|
|
17531
|
+
resolve: () => buildNetworkSnapshot$U(luvio, config, snapshotRefreshOptions$2)
|
|
17532
17532
|
});
|
|
17533
17533
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
17534
17534
|
}
|
|
17535
17535
|
function onFetchResponseError$y(luvio, config, resourceParams, response) {
|
|
17536
17536
|
const snapshot = ingestError$v(luvio, resourceParams, response, {
|
|
17537
17537
|
config,
|
|
17538
|
-
resolve: () => buildNetworkSnapshot$
|
|
17538
|
+
resolve: () => buildNetworkSnapshot$U(luvio, config, snapshotRefreshOptions$2)
|
|
17539
17539
|
});
|
|
17540
17540
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
17541
17541
|
}
|
|
17542
|
-
function buildNetworkSnapshot$
|
|
17542
|
+
function buildNetworkSnapshot$U(luvio, config, options) {
|
|
17543
17543
|
const resourceParams = createResourceParams$L(config);
|
|
17544
17544
|
const request = createResourceRequest$R(resourceParams);
|
|
17545
17545
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -17554,7 +17554,7 @@
|
|
|
17554
17554
|
});
|
|
17555
17555
|
}
|
|
17556
17556
|
function buildNetworkSnapshotCachePolicy$C(context, coercedAdapterRequestContext) {
|
|
17557
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
17557
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$U, undefined, false);
|
|
17558
17558
|
}
|
|
17559
17559
|
function buildCachedSnapshotCachePolicy$B(context, storeLookup) {
|
|
17560
17560
|
const { luvio, config } = context;
|
|
@@ -17565,7 +17565,7 @@
|
|
|
17565
17565
|
};
|
|
17566
17566
|
const cacheSnapshot = storeLookup(selector, {
|
|
17567
17567
|
config,
|
|
17568
|
-
resolve: () => buildNetworkSnapshot$
|
|
17568
|
+
resolve: () => buildNetworkSnapshot$U(luvio, config, snapshotRefreshOptions$2)
|
|
17569
17569
|
});
|
|
17570
17570
|
return cacheSnapshot;
|
|
17571
17571
|
}
|
|
@@ -18246,18 +18246,18 @@
|
|
|
18246
18246
|
function onFetchResponseSuccess$x(luvio, config, resourceParams, response) {
|
|
18247
18247
|
const snapshot = ingestSuccess$C(luvio, resourceParams, response, {
|
|
18248
18248
|
config,
|
|
18249
|
-
resolve: () => buildNetworkSnapshot$
|
|
18249
|
+
resolve: () => buildNetworkSnapshot$T(luvio, config, snapshotRefreshOptions$2)
|
|
18250
18250
|
});
|
|
18251
18251
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18252
18252
|
}
|
|
18253
18253
|
function onFetchResponseError$x(luvio, config, resourceParams, response) {
|
|
18254
18254
|
const snapshot = ingestError$u(luvio, resourceParams, response, {
|
|
18255
18255
|
config,
|
|
18256
|
-
resolve: () => buildNetworkSnapshot$
|
|
18256
|
+
resolve: () => buildNetworkSnapshot$T(luvio, config, snapshotRefreshOptions$2)
|
|
18257
18257
|
});
|
|
18258
18258
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18259
18259
|
}
|
|
18260
|
-
function buildNetworkSnapshot$
|
|
18260
|
+
function buildNetworkSnapshot$T(luvio, config, options) {
|
|
18261
18261
|
const resourceParams = createResourceParams$K(config);
|
|
18262
18262
|
const request = createResourceRequest$Q(resourceParams);
|
|
18263
18263
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -18272,7 +18272,7 @@
|
|
|
18272
18272
|
});
|
|
18273
18273
|
}
|
|
18274
18274
|
function buildNetworkSnapshotCachePolicy$B(context, coercedAdapterRequestContext) {
|
|
18275
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
18275
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$T, undefined, false);
|
|
18276
18276
|
}
|
|
18277
18277
|
function buildCachedSnapshotCachePolicy$A(context, storeLookup) {
|
|
18278
18278
|
const { luvio, config } = context;
|
|
@@ -18283,7 +18283,7 @@
|
|
|
18283
18283
|
};
|
|
18284
18284
|
const cacheSnapshot = storeLookup(selector, {
|
|
18285
18285
|
config,
|
|
18286
|
-
resolve: () => buildNetworkSnapshot$
|
|
18286
|
+
resolve: () => buildNetworkSnapshot$T(luvio, config, snapshotRefreshOptions$2)
|
|
18287
18287
|
});
|
|
18288
18288
|
return cacheSnapshot;
|
|
18289
18289
|
}
|
|
@@ -18381,18 +18381,18 @@
|
|
|
18381
18381
|
function onFetchResponseSuccess$w(luvio, config, resourceParams, response) {
|
|
18382
18382
|
const snapshot = ingestSuccess$B(luvio, resourceParams, response, {
|
|
18383
18383
|
config,
|
|
18384
|
-
resolve: () => buildNetworkSnapshot$
|
|
18384
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions$2)
|
|
18385
18385
|
});
|
|
18386
18386
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18387
18387
|
}
|
|
18388
18388
|
function onFetchResponseError$w(luvio, config, resourceParams, response) {
|
|
18389
18389
|
const snapshot = ingestError$t(luvio, resourceParams, response, {
|
|
18390
18390
|
config,
|
|
18391
|
-
resolve: () => buildNetworkSnapshot$
|
|
18391
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions$2)
|
|
18392
18392
|
});
|
|
18393
18393
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18394
18394
|
}
|
|
18395
|
-
function buildNetworkSnapshot$
|
|
18395
|
+
function buildNetworkSnapshot$S(luvio, config, options) {
|
|
18396
18396
|
const resourceParams = createResourceParams$J(config);
|
|
18397
18397
|
const request = createResourceRequest$P(resourceParams);
|
|
18398
18398
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -18407,7 +18407,7 @@
|
|
|
18407
18407
|
});
|
|
18408
18408
|
}
|
|
18409
18409
|
function buildNetworkSnapshotCachePolicy$A(context, coercedAdapterRequestContext) {
|
|
18410
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
18410
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$S, undefined, false);
|
|
18411
18411
|
}
|
|
18412
18412
|
function buildCachedSnapshotCachePolicy$z(context, storeLookup) {
|
|
18413
18413
|
const { luvio, config } = context;
|
|
@@ -18418,7 +18418,7 @@
|
|
|
18418
18418
|
};
|
|
18419
18419
|
const cacheSnapshot = storeLookup(selector, {
|
|
18420
18420
|
config,
|
|
18421
|
-
resolve: () => buildNetworkSnapshot$
|
|
18421
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions$2)
|
|
18422
18422
|
});
|
|
18423
18423
|
return cacheSnapshot;
|
|
18424
18424
|
}
|
|
@@ -18715,18 +18715,18 @@
|
|
|
18715
18715
|
function onFetchResponseSuccess$v(luvio, config, resourceParams, response) {
|
|
18716
18716
|
const snapshot = ingestSuccess$A(luvio, resourceParams, response, {
|
|
18717
18717
|
config,
|
|
18718
|
-
resolve: () => buildNetworkSnapshot$
|
|
18718
|
+
resolve: () => buildNetworkSnapshot$R(luvio, config, snapshotRefreshOptions$2)
|
|
18719
18719
|
});
|
|
18720
18720
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18721
18721
|
}
|
|
18722
18722
|
function onFetchResponseError$v(luvio, config, resourceParams, response) {
|
|
18723
18723
|
const snapshot = ingestError$s(luvio, resourceParams, response, {
|
|
18724
18724
|
config,
|
|
18725
|
-
resolve: () => buildNetworkSnapshot$
|
|
18725
|
+
resolve: () => buildNetworkSnapshot$R(luvio, config, snapshotRefreshOptions$2)
|
|
18726
18726
|
});
|
|
18727
18727
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18728
18728
|
}
|
|
18729
|
-
function buildNetworkSnapshot$
|
|
18729
|
+
function buildNetworkSnapshot$R(luvio, config, options) {
|
|
18730
18730
|
const resourceParams = createResourceParams$I(config);
|
|
18731
18731
|
const request = createResourceRequest$O(resourceParams);
|
|
18732
18732
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -18741,7 +18741,7 @@
|
|
|
18741
18741
|
});
|
|
18742
18742
|
}
|
|
18743
18743
|
function buildNetworkSnapshotCachePolicy$z(context, coercedAdapterRequestContext) {
|
|
18744
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
18744
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$R, undefined, false);
|
|
18745
18745
|
}
|
|
18746
18746
|
function buildCachedSnapshotCachePolicy$y(context, storeLookup) {
|
|
18747
18747
|
const { luvio, config } = context;
|
|
@@ -18752,7 +18752,7 @@
|
|
|
18752
18752
|
};
|
|
18753
18753
|
const cacheSnapshot = storeLookup(selector, {
|
|
18754
18754
|
config,
|
|
18755
|
-
resolve: () => buildNetworkSnapshot$
|
|
18755
|
+
resolve: () => buildNetworkSnapshot$R(luvio, config, snapshotRefreshOptions$2)
|
|
18756
18756
|
});
|
|
18757
18757
|
return cacheSnapshot;
|
|
18758
18758
|
}
|
|
@@ -18828,7 +18828,7 @@
|
|
|
18828
18828
|
variables: {},
|
|
18829
18829
|
}, {
|
|
18830
18830
|
config,
|
|
18831
|
-
resolve: () => buildNetworkSnapshot$
|
|
18831
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions$2),
|
|
18832
18832
|
});
|
|
18833
18833
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18834
18834
|
}
|
|
@@ -18875,7 +18875,7 @@
|
|
|
18875
18875
|
};
|
|
18876
18876
|
return storeLookup(selector, {
|
|
18877
18877
|
config,
|
|
18878
|
-
resolve: () => buildNetworkSnapshot$
|
|
18878
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions$2),
|
|
18879
18879
|
});
|
|
18880
18880
|
}
|
|
18881
18881
|
|
|
@@ -18907,11 +18907,11 @@
|
|
|
18907
18907
|
function onFetchResponseError$u(luvio, config, resourceParams, response) {
|
|
18908
18908
|
const snapshot = ingestError$r(luvio, resourceParams, response, {
|
|
18909
18909
|
config,
|
|
18910
|
-
resolve: () => buildNetworkSnapshot$
|
|
18910
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions$2)
|
|
18911
18911
|
});
|
|
18912
18912
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18913
18913
|
}
|
|
18914
|
-
function buildNetworkSnapshot$
|
|
18914
|
+
function buildNetworkSnapshot$Q(luvio, config, options) {
|
|
18915
18915
|
const resourceParams = createResourceParams$H(config);
|
|
18916
18916
|
const request = createResourceRequest$N(resourceParams);
|
|
18917
18917
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -18926,7 +18926,7 @@
|
|
|
18926
18926
|
});
|
|
18927
18927
|
}
|
|
18928
18928
|
function buildNetworkSnapshotCachePolicy$y(context, coercedAdapterRequestContext) {
|
|
18929
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
18929
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$Q, undefined, false);
|
|
18930
18930
|
}
|
|
18931
18931
|
const getLayoutAdapterFactory = (luvio) => function UiApi__getLayout(untrustedConfig, requestContext) {
|
|
18932
18932
|
const config = validateAdapterConfig$N(untrustedConfig);
|
|
@@ -18970,11 +18970,11 @@
|
|
|
18970
18970
|
};
|
|
18971
18971
|
return luvio.storeLookup(selector, {
|
|
18972
18972
|
config,
|
|
18973
|
-
resolve: () => buildNetworkSnapshot$
|
|
18973
|
+
resolve: () => buildNetworkSnapshot$P(luvio, config),
|
|
18974
18974
|
});
|
|
18975
18975
|
}
|
|
18976
18976
|
|
|
18977
|
-
function buildNetworkSnapshot$
|
|
18977
|
+
function buildNetworkSnapshot$P(luvio, config, context) {
|
|
18978
18978
|
const { resourceParams, request, key } = prepareRequest$4$1(luvio, config);
|
|
18979
18979
|
return luvio
|
|
18980
18980
|
.dispatchResourceRequest(request, context)
|
|
@@ -19005,7 +19005,7 @@
|
|
|
19005
19005
|
function onFetchResponseError$t(luvio, config, key, error) {
|
|
19006
19006
|
const errorSnapshot = luvio.errorSnapshot(error, {
|
|
19007
19007
|
config,
|
|
19008
|
-
resolve: () => buildNetworkSnapshot$
|
|
19008
|
+
resolve: () => buildNetworkSnapshot$P(luvio, config),
|
|
19009
19009
|
});
|
|
19010
19010
|
luvio.storeIngestError(key, errorSnapshot);
|
|
19011
19011
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
@@ -19088,7 +19088,7 @@
|
|
|
19088
19088
|
};
|
|
19089
19089
|
return storeLookup(selector, {
|
|
19090
19090
|
config,
|
|
19091
|
-
resolve: () => buildNetworkSnapshot$
|
|
19091
|
+
resolve: () => buildNetworkSnapshot$P(luvio, config),
|
|
19092
19092
|
});
|
|
19093
19093
|
}
|
|
19094
19094
|
|
|
@@ -19117,7 +19117,7 @@
|
|
|
19117
19117
|
return config;
|
|
19118
19118
|
}
|
|
19119
19119
|
function buildNetworkSnapshotCachePolicy$x(context, coercedAdapterRequestContext) {
|
|
19120
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
19120
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$P, undefined, false);
|
|
19121
19121
|
}
|
|
19122
19122
|
const getLayoutUserStateAdapterFactory = (luvio) => function UiApi__getLayoutUserState(untrustedConfig, requestContext) {
|
|
19123
19123
|
const config = validateAdapterConfig$L(untrustedConfig, getLayoutUserState_ConfigPropertyNames);
|
|
@@ -19473,18 +19473,18 @@
|
|
|
19473
19473
|
function onFetchResponseSuccess$s(luvio, config, resourceParams, response) {
|
|
19474
19474
|
const snapshot = ingestSuccess$y(luvio, resourceParams, response, {
|
|
19475
19475
|
config,
|
|
19476
|
-
resolve: () => buildNetworkSnapshot$
|
|
19476
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions$2)
|
|
19477
19477
|
});
|
|
19478
19478
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
19479
19479
|
}
|
|
19480
19480
|
function onFetchResponseError$s(luvio, config, resourceParams, response) {
|
|
19481
19481
|
const snapshot = ingestError$p(luvio, resourceParams, response, {
|
|
19482
19482
|
config,
|
|
19483
|
-
resolve: () => buildNetworkSnapshot$
|
|
19483
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions$2)
|
|
19484
19484
|
});
|
|
19485
19485
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
19486
19486
|
}
|
|
19487
|
-
function buildNetworkSnapshot$
|
|
19487
|
+
function buildNetworkSnapshot$O(luvio, config, options) {
|
|
19488
19488
|
const resourceParams = createResourceParams$G(config);
|
|
19489
19489
|
const request = createResourceRequest$K(resourceParams);
|
|
19490
19490
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -19499,7 +19499,7 @@
|
|
|
19499
19499
|
});
|
|
19500
19500
|
}
|
|
19501
19501
|
function buildNetworkSnapshotCachePolicy$w(context, coercedAdapterRequestContext) {
|
|
19502
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
19502
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$O, undefined, false);
|
|
19503
19503
|
}
|
|
19504
19504
|
function buildCachedSnapshotCachePolicy$v(context, storeLookup) {
|
|
19505
19505
|
const { luvio, config } = context;
|
|
@@ -19510,7 +19510,7 @@
|
|
|
19510
19510
|
};
|
|
19511
19511
|
const cacheSnapshot = storeLookup(selector, {
|
|
19512
19512
|
config,
|
|
19513
|
-
resolve: () => buildNetworkSnapshot$
|
|
19513
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions$2)
|
|
19514
19514
|
});
|
|
19515
19515
|
return cacheSnapshot;
|
|
19516
19516
|
}
|
|
@@ -19613,14 +19613,14 @@
|
|
|
19613
19613
|
function onFetchResponseSuccess$r(luvio, config, resourceParams, response) {
|
|
19614
19614
|
const snapshot = ingestSuccess$x(luvio, resourceParams, response, {
|
|
19615
19615
|
config,
|
|
19616
|
-
resolve: () => buildNetworkSnapshot$
|
|
19616
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions$2)
|
|
19617
19617
|
});
|
|
19618
19618
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
19619
19619
|
}
|
|
19620
19620
|
function onFetchResponseError$r(luvio, config, resourceParams, response) {
|
|
19621
19621
|
const snapshot = ingestError$o(luvio, resourceParams, response, {
|
|
19622
19622
|
config,
|
|
19623
|
-
resolve: () => buildNetworkSnapshot$
|
|
19623
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions$2)
|
|
19624
19624
|
});
|
|
19625
19625
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
19626
19626
|
}
|
|
@@ -19699,7 +19699,7 @@
|
|
|
19699
19699
|
}
|
|
19700
19700
|
return node.data.__metadata;
|
|
19701
19701
|
}
|
|
19702
|
-
function buildNetworkSnapshot$
|
|
19702
|
+
function buildNetworkSnapshot$N(luvio, config, options, cacheSnapshot) {
|
|
19703
19703
|
const resourceParams = createResourceParams$F(config);
|
|
19704
19704
|
const request = prepareRequest$3$1(luvio, config, resourceParams, cacheSnapshot);
|
|
19705
19705
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -19714,7 +19714,7 @@
|
|
|
19714
19714
|
});
|
|
19715
19715
|
}
|
|
19716
19716
|
function buildNetworkSnapshotCachePolicy$v(context, coercedAdapterRequestContext) {
|
|
19717
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
19717
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$N, undefined, true);
|
|
19718
19718
|
}
|
|
19719
19719
|
function buildCachedSnapshotCachePolicy$u(context, storeLookup) {
|
|
19720
19720
|
const { luvio, config } = context;
|
|
@@ -19725,7 +19725,7 @@
|
|
|
19725
19725
|
};
|
|
19726
19726
|
const cacheSnapshot = storeLookup(selector, {
|
|
19727
19727
|
config,
|
|
19728
|
-
resolve: () => buildNetworkSnapshot$
|
|
19728
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions$2)
|
|
19729
19729
|
});
|
|
19730
19730
|
if (isUnfulfilledSnapshot$1$1(cacheSnapshot) && cacheSnapshot.data !== undefined) {
|
|
19731
19731
|
context.cacheSnapshot = cacheSnapshot;
|
|
@@ -19923,7 +19923,7 @@
|
|
|
19923
19923
|
}
|
|
19924
19924
|
return config;
|
|
19925
19925
|
}
|
|
19926
|
-
function buildNetworkSnapshot$
|
|
19926
|
+
function buildNetworkSnapshot$M(luvio, config, options) {
|
|
19927
19927
|
const resourceParams = createResourceParams$E(config);
|
|
19928
19928
|
const request = createResourceRequest$I(resourceParams);
|
|
19929
19929
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -19948,7 +19948,7 @@
|
|
|
19948
19948
|
if (config === null) {
|
|
19949
19949
|
throw new Error('Invalid config for "createListInfo"');
|
|
19950
19950
|
}
|
|
19951
|
-
return buildNetworkSnapshot$
|
|
19951
|
+
return buildNetworkSnapshot$M(luvio, config);
|
|
19952
19952
|
};
|
|
19953
19953
|
};
|
|
19954
19954
|
|
|
@@ -20007,7 +20007,7 @@
|
|
|
20007
20007
|
}
|
|
20008
20008
|
return config;
|
|
20009
20009
|
}
|
|
20010
|
-
function buildNetworkSnapshot$
|
|
20010
|
+
function buildNetworkSnapshot$L(luvio, config, options) {
|
|
20011
20011
|
const resourceParams = createResourceParams$D(config);
|
|
20012
20012
|
const request = createResourceRequest$H(resourceParams);
|
|
20013
20013
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -20032,7 +20032,7 @@
|
|
|
20032
20032
|
if (config === null) {
|
|
20033
20033
|
throw new Error(`Invalid config for "${adapterName$C}"`);
|
|
20034
20034
|
}
|
|
20035
|
-
return buildNetworkSnapshot$
|
|
20035
|
+
return buildNetworkSnapshot$L(luvio, config);
|
|
20036
20036
|
};
|
|
20037
20037
|
};
|
|
20038
20038
|
|
|
@@ -20069,18 +20069,18 @@
|
|
|
20069
20069
|
function onFetchResponseSuccess$q(luvio, config, resourceParams, response) {
|
|
20070
20070
|
const snapshot = ingestSuccess$z(luvio, resourceParams, response, {
|
|
20071
20071
|
config,
|
|
20072
|
-
resolve: () => buildNetworkSnapshot$
|
|
20072
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions$2)
|
|
20073
20073
|
});
|
|
20074
20074
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
20075
20075
|
}
|
|
20076
20076
|
function onFetchResponseError$q(luvio, config, resourceParams, response) {
|
|
20077
20077
|
const snapshot = ingestError$q(luvio, resourceParams, response, {
|
|
20078
20078
|
config,
|
|
20079
|
-
resolve: () => buildNetworkSnapshot$
|
|
20079
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions$2)
|
|
20080
20080
|
});
|
|
20081
20081
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
20082
20082
|
}
|
|
20083
|
-
function buildNetworkSnapshot$
|
|
20083
|
+
function buildNetworkSnapshot$K(luvio, config, options) {
|
|
20084
20084
|
const resourceParams = createResourceParams$C(config);
|
|
20085
20085
|
const request = createResourceRequest$L(resourceParams);
|
|
20086
20086
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -20095,7 +20095,7 @@
|
|
|
20095
20095
|
});
|
|
20096
20096
|
}
|
|
20097
20097
|
function buildNetworkSnapshotCachePolicy$u(context, coercedAdapterRequestContext) {
|
|
20098
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
20098
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$K, undefined, false);
|
|
20099
20099
|
}
|
|
20100
20100
|
function buildCachedSnapshotCachePolicy$t(context, storeLookup) {
|
|
20101
20101
|
const { luvio, config } = context;
|
|
@@ -20106,7 +20106,7 @@
|
|
|
20106
20106
|
};
|
|
20107
20107
|
const cacheSnapshot = storeLookup(selector, {
|
|
20108
20108
|
config,
|
|
20109
|
-
resolve: () => buildNetworkSnapshot$
|
|
20109
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions$2)
|
|
20110
20110
|
});
|
|
20111
20111
|
return cacheSnapshot;
|
|
20112
20112
|
}
|
|
@@ -20199,7 +20199,7 @@
|
|
|
20199
20199
|
}
|
|
20200
20200
|
return config;
|
|
20201
20201
|
}
|
|
20202
|
-
function buildNetworkSnapshot$
|
|
20202
|
+
function buildNetworkSnapshot$J(luvio, config, options) {
|
|
20203
20203
|
const resourceParams = createResourceParams$B(config);
|
|
20204
20204
|
const request = createResourceRequest$G(resourceParams);
|
|
20205
20205
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -20224,7 +20224,7 @@
|
|
|
20224
20224
|
if (config === null) {
|
|
20225
20225
|
throw new Error('Invalid config for "updateListInfoByName"');
|
|
20226
20226
|
}
|
|
20227
|
-
return buildNetworkSnapshot$
|
|
20227
|
+
return buildNetworkSnapshot$J(luvio, config);
|
|
20228
20228
|
};
|
|
20229
20229
|
};
|
|
20230
20230
|
|
|
@@ -20748,18 +20748,18 @@
|
|
|
20748
20748
|
function onFetchResponseSuccess$p(luvio, config, resourceParams, response) {
|
|
20749
20749
|
const snapshot = ingestSuccess$u(luvio, resourceParams, response, {
|
|
20750
20750
|
config,
|
|
20751
|
-
resolve: () => buildNetworkSnapshot$
|
|
20751
|
+
resolve: () => buildNetworkSnapshot$I(luvio, config, snapshotRefreshOptions$2)
|
|
20752
20752
|
});
|
|
20753
20753
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
20754
20754
|
}
|
|
20755
20755
|
function onFetchResponseError$p(luvio, config, resourceParams, response) {
|
|
20756
20756
|
const snapshot = ingestError$n(luvio, resourceParams, response, {
|
|
20757
20757
|
config,
|
|
20758
|
-
resolve: () => buildNetworkSnapshot$
|
|
20758
|
+
resolve: () => buildNetworkSnapshot$I(luvio, config, snapshotRefreshOptions$2)
|
|
20759
20759
|
});
|
|
20760
20760
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
20761
20761
|
}
|
|
20762
|
-
function buildNetworkSnapshot$
|
|
20762
|
+
function buildNetworkSnapshot$I(luvio, config, options) {
|
|
20763
20763
|
const resourceParams = createResourceParams$A(config);
|
|
20764
20764
|
const request = createResourceRequest$F(resourceParams);
|
|
20765
20765
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -20774,7 +20774,7 @@
|
|
|
20774
20774
|
});
|
|
20775
20775
|
}
|
|
20776
20776
|
function buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext) {
|
|
20777
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
20777
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$I, undefined, false);
|
|
20778
20778
|
}
|
|
20779
20779
|
function buildCachedSnapshotCachePolicy$s(context, storeLookup) {
|
|
20780
20780
|
const { luvio, config } = context;
|
|
@@ -20785,7 +20785,7 @@
|
|
|
20785
20785
|
};
|
|
20786
20786
|
const cacheSnapshot = storeLookup(selector, {
|
|
20787
20787
|
config,
|
|
20788
|
-
resolve: () => buildNetworkSnapshot$
|
|
20788
|
+
resolve: () => buildNetworkSnapshot$I(luvio, config, snapshotRefreshOptions$2)
|
|
20789
20789
|
});
|
|
20790
20790
|
return cacheSnapshot;
|
|
20791
20791
|
}
|
|
@@ -20985,18 +20985,18 @@
|
|
|
20985
20985
|
function onFetchResponseSuccess$o(luvio, config, resourceParams, response) {
|
|
20986
20986
|
const snapshot = ingestSuccess$t(luvio, resourceParams, response, {
|
|
20987
20987
|
config,
|
|
20988
|
-
resolve: () => buildNetworkSnapshot$
|
|
20988
|
+
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions$2)
|
|
20989
20989
|
});
|
|
20990
20990
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
20991
20991
|
}
|
|
20992
20992
|
function onFetchResponseError$o(luvio, config, resourceParams, response) {
|
|
20993
20993
|
const snapshot = ingestError$m(luvio, resourceParams, response, {
|
|
20994
20994
|
config,
|
|
20995
|
-
resolve: () => buildNetworkSnapshot$
|
|
20995
|
+
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions$2)
|
|
20996
20996
|
});
|
|
20997
20997
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
20998
20998
|
}
|
|
20999
|
-
function buildNetworkSnapshot$
|
|
20999
|
+
function buildNetworkSnapshot$H(luvio, config, options) {
|
|
21000
21000
|
const resourceParams = createResourceParams$z(config);
|
|
21001
21001
|
const request = createResourceRequest$E(resourceParams);
|
|
21002
21002
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -21011,7 +21011,7 @@
|
|
|
21011
21011
|
});
|
|
21012
21012
|
}
|
|
21013
21013
|
function buildNetworkSnapshotCachePolicy$s(context, coercedAdapterRequestContext) {
|
|
21014
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
21014
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$H, undefined, false);
|
|
21015
21015
|
}
|
|
21016
21016
|
function buildCachedSnapshotCachePolicy$r(context, storeLookup) {
|
|
21017
21017
|
const { luvio, config } = context;
|
|
@@ -21022,7 +21022,7 @@
|
|
|
21022
21022
|
};
|
|
21023
21023
|
const cacheSnapshot = storeLookup(selector, {
|
|
21024
21024
|
config,
|
|
21025
|
-
resolve: () => buildNetworkSnapshot$
|
|
21025
|
+
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions$2)
|
|
21026
21026
|
});
|
|
21027
21027
|
return cacheSnapshot;
|
|
21028
21028
|
}
|
|
@@ -21159,7 +21159,7 @@
|
|
|
21159
21159
|
}
|
|
21160
21160
|
return config;
|
|
21161
21161
|
}
|
|
21162
|
-
function buildNetworkSnapshot$
|
|
21162
|
+
function buildNetworkSnapshot$G(luvio, config, options) {
|
|
21163
21163
|
const resourceParams = createResourceParams$y(config);
|
|
21164
21164
|
const request = createResourceRequest$D(resourceParams);
|
|
21165
21165
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -21184,7 +21184,7 @@
|
|
|
21184
21184
|
if (config === null) {
|
|
21185
21185
|
throw new Error('Invalid config for "updateListPreferences"');
|
|
21186
21186
|
}
|
|
21187
|
-
return buildNetworkSnapshot$
|
|
21187
|
+
return buildNetworkSnapshot$G(luvio, config);
|
|
21188
21188
|
};
|
|
21189
21189
|
};
|
|
21190
21190
|
|
|
@@ -21363,18 +21363,18 @@
|
|
|
21363
21363
|
function onFetchResponseSuccess$n(luvio, config, resourceParams, response) {
|
|
21364
21364
|
const snapshot = ingestSuccess$r(luvio, resourceParams, response, {
|
|
21365
21365
|
config,
|
|
21366
|
-
resolve: () => buildNetworkSnapshot$
|
|
21366
|
+
resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions$2)
|
|
21367
21367
|
});
|
|
21368
21368
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
21369
21369
|
}
|
|
21370
21370
|
function onFetchResponseError$n(luvio, config, resourceParams, response) {
|
|
21371
21371
|
const snapshot = ingestError$l(luvio, resourceParams, response, {
|
|
21372
21372
|
config,
|
|
21373
|
-
resolve: () => buildNetworkSnapshot$
|
|
21373
|
+
resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions$2)
|
|
21374
21374
|
});
|
|
21375
21375
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
21376
21376
|
}
|
|
21377
|
-
function buildNetworkSnapshot$
|
|
21377
|
+
function buildNetworkSnapshot$F(luvio, config, options) {
|
|
21378
21378
|
const resourceParams = createResourceParams$x(config);
|
|
21379
21379
|
const request = createResourceRequest$C(resourceParams);
|
|
21380
21380
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -21389,7 +21389,7 @@
|
|
|
21389
21389
|
});
|
|
21390
21390
|
}
|
|
21391
21391
|
function buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext) {
|
|
21392
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
21392
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$F, undefined, false);
|
|
21393
21393
|
}
|
|
21394
21394
|
function buildCachedSnapshotCachePolicy$q(context, storeLookup) {
|
|
21395
21395
|
const { luvio, config } = context;
|
|
@@ -21400,7 +21400,7 @@
|
|
|
21400
21400
|
};
|
|
21401
21401
|
const cacheSnapshot = storeLookup(selector, {
|
|
21402
21402
|
config,
|
|
21403
|
-
resolve: () => buildNetworkSnapshot$
|
|
21403
|
+
resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions$2)
|
|
21404
21404
|
});
|
|
21405
21405
|
return cacheSnapshot;
|
|
21406
21406
|
}
|
|
@@ -21484,18 +21484,18 @@
|
|
|
21484
21484
|
function onFetchResponseSuccess$m(luvio, config, resourceParams, response) {
|
|
21485
21485
|
const snapshot = ingestSuccess$q(luvio, resourceParams, response, {
|
|
21486
21486
|
config,
|
|
21487
|
-
resolve: () => buildNetworkSnapshot$
|
|
21487
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions$2)
|
|
21488
21488
|
});
|
|
21489
21489
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
21490
21490
|
}
|
|
21491
21491
|
function onFetchResponseError$m(luvio, config, resourceParams, response) {
|
|
21492
21492
|
const snapshot = ingestError$k(luvio, resourceParams, response, {
|
|
21493
21493
|
config,
|
|
21494
|
-
resolve: () => buildNetworkSnapshot$
|
|
21494
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions$2)
|
|
21495
21495
|
});
|
|
21496
21496
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
21497
21497
|
}
|
|
21498
|
-
function buildNetworkSnapshot$
|
|
21498
|
+
function buildNetworkSnapshot$E(luvio, config, options) {
|
|
21499
21499
|
const resourceParams = createResourceParams$w(config);
|
|
21500
21500
|
const request = createResourceRequest$B();
|
|
21501
21501
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -21510,7 +21510,7 @@
|
|
|
21510
21510
|
});
|
|
21511
21511
|
}
|
|
21512
21512
|
function buildNetworkSnapshotCachePolicy$q(context, coercedAdapterRequestContext) {
|
|
21513
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
21513
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$E, undefined, false);
|
|
21514
21514
|
}
|
|
21515
21515
|
function buildCachedSnapshotCachePolicy$p(context, storeLookup) {
|
|
21516
21516
|
const { luvio, config } = context;
|
|
@@ -21521,7 +21521,7 @@
|
|
|
21521
21521
|
};
|
|
21522
21522
|
const cacheSnapshot = storeLookup(selector, {
|
|
21523
21523
|
config,
|
|
21524
|
-
resolve: () => buildNetworkSnapshot$
|
|
21524
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions$2)
|
|
21525
21525
|
});
|
|
21526
21526
|
return cacheSnapshot;
|
|
21527
21527
|
}
|
|
@@ -21820,18 +21820,18 @@
|
|
|
21820
21820
|
function onFetchResponseSuccess$l(luvio, config, resourceParams, response) {
|
|
21821
21821
|
const snapshot = ingestSuccess$p(luvio, resourceParams, response, {
|
|
21822
21822
|
config,
|
|
21823
|
-
resolve: () => buildNetworkSnapshot$
|
|
21823
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions$2)
|
|
21824
21824
|
});
|
|
21825
21825
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
21826
21826
|
}
|
|
21827
21827
|
function onFetchResponseError$l(luvio, config, resourceParams, response) {
|
|
21828
21828
|
const snapshot = ingestError$j(luvio, resourceParams, response, {
|
|
21829
21829
|
config,
|
|
21830
|
-
resolve: () => buildNetworkSnapshot$
|
|
21830
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions$2)
|
|
21831
21831
|
});
|
|
21832
21832
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
21833
21833
|
}
|
|
21834
|
-
function buildNetworkSnapshot$
|
|
21834
|
+
function buildNetworkSnapshot$D(luvio, config, options) {
|
|
21835
21835
|
const resourceParams = createResourceParams$v(config);
|
|
21836
21836
|
const request = createResourceRequest$A(resourceParams);
|
|
21837
21837
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -21846,7 +21846,7 @@
|
|
|
21846
21846
|
});
|
|
21847
21847
|
}
|
|
21848
21848
|
function buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext) {
|
|
21849
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
21849
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$D, undefined, false);
|
|
21850
21850
|
}
|
|
21851
21851
|
function buildCachedSnapshotCachePolicy$o(context, storeLookup) {
|
|
21852
21852
|
const { luvio, config } = context;
|
|
@@ -21857,7 +21857,7 @@
|
|
|
21857
21857
|
};
|
|
21858
21858
|
const cacheSnapshot = storeLookup(selector, {
|
|
21859
21859
|
config,
|
|
21860
|
-
resolve: () => buildNetworkSnapshot$
|
|
21860
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions$2)
|
|
21861
21861
|
});
|
|
21862
21862
|
return cacheSnapshot;
|
|
21863
21863
|
}
|
|
@@ -22266,18 +22266,18 @@
|
|
|
22266
22266
|
function onFetchResponseSuccess$k(luvio, config, resourceParams, response) {
|
|
22267
22267
|
const snapshot = ingestSuccess$o(luvio, resourceParams, response, {
|
|
22268
22268
|
config,
|
|
22269
|
-
resolve: () => buildNetworkSnapshot$
|
|
22269
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions$2)
|
|
22270
22270
|
});
|
|
22271
22271
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22272
22272
|
}
|
|
22273
22273
|
function onFetchResponseError$k(luvio, config, resourceParams, response) {
|
|
22274
22274
|
const snapshot = ingestError$i(luvio, resourceParams, response, {
|
|
22275
22275
|
config,
|
|
22276
|
-
resolve: () => buildNetworkSnapshot$
|
|
22276
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions$2)
|
|
22277
22277
|
});
|
|
22278
22278
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22279
22279
|
}
|
|
22280
|
-
function buildNetworkSnapshot$
|
|
22280
|
+
function buildNetworkSnapshot$C(luvio, config, options) {
|
|
22281
22281
|
const resourceParams = createResourceParams$u(config);
|
|
22282
22282
|
const request = createResourceRequest$z(resourceParams);
|
|
22283
22283
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -22292,7 +22292,7 @@
|
|
|
22292
22292
|
});
|
|
22293
22293
|
}
|
|
22294
22294
|
function buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext) {
|
|
22295
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
22295
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$C, undefined, false);
|
|
22296
22296
|
}
|
|
22297
22297
|
function buildCachedSnapshotCachePolicy$n(context, storeLookup) {
|
|
22298
22298
|
const { luvio, config } = context;
|
|
@@ -22303,7 +22303,7 @@
|
|
|
22303
22303
|
};
|
|
22304
22304
|
const cacheSnapshot = storeLookup(selector, {
|
|
22305
22305
|
config,
|
|
22306
|
-
resolve: () => buildNetworkSnapshot$
|
|
22306
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions$2)
|
|
22307
22307
|
});
|
|
22308
22308
|
return cacheSnapshot;
|
|
22309
22309
|
}
|
|
@@ -22338,7 +22338,7 @@
|
|
|
22338
22338
|
function buildSnapshotRefresh$2$1(luvio, config) {
|
|
22339
22339
|
return {
|
|
22340
22340
|
config,
|
|
22341
|
-
resolve: () => buildNetworkSnapshot$
|
|
22341
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config),
|
|
22342
22342
|
};
|
|
22343
22343
|
}
|
|
22344
22344
|
function buildRequestAndKey(luvio, config) {
|
|
@@ -22366,7 +22366,7 @@
|
|
|
22366
22366
|
luvio.storeIngestError(key, errorSnapshot);
|
|
22367
22367
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
22368
22368
|
}
|
|
22369
|
-
function buildNetworkSnapshot$
|
|
22369
|
+
function buildNetworkSnapshot$B(luvio, config, options) {
|
|
22370
22370
|
const { resourceParams, request, key } = buildRequestAndKey(luvio, config);
|
|
22371
22371
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
22372
22372
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -22418,7 +22418,7 @@
|
|
|
22418
22418
|
priority: networkPriority,
|
|
22419
22419
|
};
|
|
22420
22420
|
}
|
|
22421
|
-
return buildNetworkSnapshot$
|
|
22421
|
+
return buildNetworkSnapshot$B(luvio, config, dispatchOptions);
|
|
22422
22422
|
}
|
|
22423
22423
|
function buildCachedSnapshotCachePolicy$m(context, storeLookup) {
|
|
22424
22424
|
const { config, luvio } = context;
|
|
@@ -22576,18 +22576,18 @@
|
|
|
22576
22576
|
function onFetchResponseSuccess$j(luvio, config, resourceParams, response) {
|
|
22577
22577
|
const snapshot = ingestSuccess$n(luvio, resourceParams, response, {
|
|
22578
22578
|
config,
|
|
22579
|
-
resolve: () => buildNetworkSnapshot$
|
|
22579
|
+
resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions$2)
|
|
22580
22580
|
});
|
|
22581
22581
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22582
22582
|
}
|
|
22583
22583
|
function onFetchResponseError$j(luvio, config, resourceParams, response) {
|
|
22584
22584
|
const snapshot = ingestError$h(luvio, resourceParams, response, {
|
|
22585
22585
|
config,
|
|
22586
|
-
resolve: () => buildNetworkSnapshot$
|
|
22586
|
+
resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions$2)
|
|
22587
22587
|
});
|
|
22588
22588
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22589
22589
|
}
|
|
22590
|
-
function buildNetworkSnapshot$
|
|
22590
|
+
function buildNetworkSnapshot$A(luvio, config, options) {
|
|
22591
22591
|
const resourceParams = createResourceParams$t(config);
|
|
22592
22592
|
const request = createResourceRequest$x(resourceParams);
|
|
22593
22593
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -22602,7 +22602,7 @@
|
|
|
22602
22602
|
});
|
|
22603
22603
|
}
|
|
22604
22604
|
function buildNetworkSnapshotCachePolicy$m(context, coercedAdapterRequestContext) {
|
|
22605
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
22605
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$A, undefined, false);
|
|
22606
22606
|
}
|
|
22607
22607
|
function buildCachedSnapshotCachePolicy$l(context, storeLookup) {
|
|
22608
22608
|
const { luvio, config } = context;
|
|
@@ -22613,7 +22613,7 @@
|
|
|
22613
22613
|
};
|
|
22614
22614
|
const cacheSnapshot = storeLookup(selector, {
|
|
22615
22615
|
config,
|
|
22616
|
-
resolve: () => buildNetworkSnapshot$
|
|
22616
|
+
resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions$2)
|
|
22617
22617
|
});
|
|
22618
22618
|
return cacheSnapshot;
|
|
22619
22619
|
}
|
|
@@ -22667,7 +22667,7 @@
|
|
|
22667
22667
|
return select$G$2();
|
|
22668
22668
|
}
|
|
22669
22669
|
function keyBuilder$Q$2(luvio, params) {
|
|
22670
|
-
return keyPrefix$3 + '::DuplicatesRepresentation:(' + (params.body.allowSaveOnDuplicate === undefined ? 'allowSaveOnDuplicate' : 'allowSaveOnDuplicate:' + params.body.allowSaveOnDuplicate) + '::' + (params.body.apiName === undefined ? 'apiName' : 'apiName:' + params.body.apiName) + '::' + stableJSONStringify$
|
|
22670
|
+
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) + ')';
|
|
22671
22671
|
}
|
|
22672
22672
|
function getResponseCacheKeys$s(storeKeyMap, luvio, resourceParams, response) {
|
|
22673
22673
|
getTypeCacheKeys$q$2(storeKeyMap, luvio, response, () => keyBuilder$Q$2(luvio, resourceParams));
|
|
@@ -22788,18 +22788,18 @@
|
|
|
22788
22788
|
function onFetchResponseSuccess$i(luvio, config, resourceParams, response) {
|
|
22789
22789
|
const snapshot = ingestSuccess$m(luvio, resourceParams, response, {
|
|
22790
22790
|
config,
|
|
22791
|
-
resolve: () => buildNetworkSnapshot$
|
|
22791
|
+
resolve: () => buildNetworkSnapshot$z(luvio, config, snapshotRefreshOptions$2)
|
|
22792
22792
|
});
|
|
22793
22793
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22794
22794
|
}
|
|
22795
22795
|
function onFetchResponseError$i(luvio, config, resourceParams, response) {
|
|
22796
22796
|
const snapshot = ingestError$g(luvio, resourceParams, response, {
|
|
22797
22797
|
config,
|
|
22798
|
-
resolve: () => buildNetworkSnapshot$
|
|
22798
|
+
resolve: () => buildNetworkSnapshot$z(luvio, config, snapshotRefreshOptions$2)
|
|
22799
22799
|
});
|
|
22800
22800
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22801
22801
|
}
|
|
22802
|
-
function buildNetworkSnapshot$
|
|
22802
|
+
function buildNetworkSnapshot$z(luvio, config, options) {
|
|
22803
22803
|
const resourceParams = createResourceParams$s(config);
|
|
22804
22804
|
const request = createResourceRequest$w(resourceParams);
|
|
22805
22805
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -22814,7 +22814,7 @@
|
|
|
22814
22814
|
});
|
|
22815
22815
|
}
|
|
22816
22816
|
function buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext) {
|
|
22817
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
22817
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$z, 'get', false);
|
|
22818
22818
|
}
|
|
22819
22819
|
function buildCachedSnapshotCachePolicy$k(context, storeLookup) {
|
|
22820
22820
|
const { luvio, config } = context;
|
|
@@ -22825,7 +22825,7 @@
|
|
|
22825
22825
|
};
|
|
22826
22826
|
const cacheSnapshot = storeLookup(selector, {
|
|
22827
22827
|
config,
|
|
22828
|
-
resolve: () => buildNetworkSnapshot$
|
|
22828
|
+
resolve: () => buildNetworkSnapshot$z(luvio, config, snapshotRefreshOptions$2)
|
|
22829
22829
|
});
|
|
22830
22830
|
return cacheSnapshot;
|
|
22831
22831
|
}
|
|
@@ -23531,7 +23531,7 @@
|
|
|
23531
23531
|
const { recordIds } = config;
|
|
23532
23532
|
return luvio.storeLookup(recordAvatarsSelector(recordIds), {
|
|
23533
23533
|
config,
|
|
23534
|
-
resolve: () => buildNetworkSnapshot$
|
|
23534
|
+
resolve: () => buildNetworkSnapshot$y(luvio, config, snapshotRefreshOptions$2),
|
|
23535
23535
|
});
|
|
23536
23536
|
}
|
|
23537
23537
|
|
|
@@ -23586,7 +23586,7 @@
|
|
|
23586
23586
|
function isRecordAvatarBulkMapRepresentation(response) {
|
|
23587
23587
|
return response.body.hasErrors === undefined;
|
|
23588
23588
|
}
|
|
23589
|
-
function buildNetworkSnapshot$
|
|
23589
|
+
function buildNetworkSnapshot$y(luvio, config, options) {
|
|
23590
23590
|
const { uncachedRecordIds, recordIds } = config;
|
|
23591
23591
|
const { recordIdsInFlight, recordIdsNotInFlight } = getRecordIdsFlightStatus(uncachedRecordIds || recordIds, // If uncached records were specified, only get those, otherwise, get all of them
|
|
23592
23592
|
IN_FLIGHT_REQUESTS);
|
|
@@ -23655,7 +23655,7 @@
|
|
|
23655
23655
|
const { recordIds } = config;
|
|
23656
23656
|
const cachedSnapshot = storeLookup(recordAvatarsSelector(recordIds), {
|
|
23657
23657
|
config,
|
|
23658
|
-
resolve: () => buildNetworkSnapshot$
|
|
23658
|
+
resolve: () => buildNetworkSnapshot$y(luvio, config, snapshotRefreshOptions$2),
|
|
23659
23659
|
});
|
|
23660
23660
|
// if the L1 lookup had some data but not all, then put the cache keys that were
|
|
23661
23661
|
// missing onto the context, so buildNetworkSnapshotCachePolicy only requests
|
|
@@ -23684,7 +23684,7 @@
|
|
|
23684
23684
|
priority: networkPriority,
|
|
23685
23685
|
};
|
|
23686
23686
|
}
|
|
23687
|
-
return buildNetworkSnapshot$
|
|
23687
|
+
return buildNetworkSnapshot$y(luvio, config, dispatchOptions);
|
|
23688
23688
|
}
|
|
23689
23689
|
|
|
23690
23690
|
const adapterName$p = 'getRecordAvatars';
|
|
@@ -23713,14 +23713,14 @@
|
|
|
23713
23713
|
function onFetchResponseSuccess$h(luvio, config, resourceParams, response) {
|
|
23714
23714
|
const snapshot = ingestSuccess$l(luvio, resourceParams, response, {
|
|
23715
23715
|
config,
|
|
23716
|
-
resolve: () => buildNetworkSnapshot$
|
|
23716
|
+
resolve: () => buildNetworkSnapshot$y(luvio, config, snapshotRefreshOptions$2)
|
|
23717
23717
|
});
|
|
23718
23718
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
23719
23719
|
}
|
|
23720
23720
|
function onFetchResponseError$h(luvio, config, resourceParams, response) {
|
|
23721
23721
|
const snapshot = ingestError$f(luvio, resourceParams, response, {
|
|
23722
23722
|
config,
|
|
23723
|
-
resolve: () => buildNetworkSnapshot$
|
|
23723
|
+
resolve: () => buildNetworkSnapshot$y(luvio, config, snapshotRefreshOptions$2)
|
|
23724
23724
|
});
|
|
23725
23725
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
23726
23726
|
}
|
|
@@ -23859,11 +23859,11 @@
|
|
|
23859
23859
|
function onFetchResponseError$g(luvio, config, resourceParams, response) {
|
|
23860
23860
|
const snapshot = ingestError$L(luvio, resourceParams, response, {
|
|
23861
23861
|
config,
|
|
23862
|
-
resolve: () => buildNetworkSnapshot$
|
|
23862
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions$2)
|
|
23863
23863
|
});
|
|
23864
23864
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
23865
23865
|
}
|
|
23866
|
-
function buildNetworkSnapshot$
|
|
23866
|
+
function buildNetworkSnapshot$x(luvio, config, options) {
|
|
23867
23867
|
const resourceParams = createResourceParams$11(config);
|
|
23868
23868
|
const request = createResourceRequest$1b(resourceParams);
|
|
23869
23869
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -23878,7 +23878,7 @@
|
|
|
23878
23878
|
});
|
|
23879
23879
|
}
|
|
23880
23880
|
function buildNetworkSnapshotCachePolicy$j(context, coercedAdapterRequestContext) {
|
|
23881
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
23881
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$x, undefined, false);
|
|
23882
23882
|
}
|
|
23883
23883
|
function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
23884
23884
|
const { luvio, config } = context;
|
|
@@ -23889,7 +23889,7 @@
|
|
|
23889
23889
|
};
|
|
23890
23890
|
const cacheSnapshot = storeLookup(selector, {
|
|
23891
23891
|
config,
|
|
23892
|
-
resolve: () => buildNetworkSnapshot$
|
|
23892
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions$2)
|
|
23893
23893
|
});
|
|
23894
23894
|
return cacheSnapshot;
|
|
23895
23895
|
}
|
|
@@ -24402,18 +24402,18 @@
|
|
|
24402
24402
|
function onFetchResponseSuccess$g(luvio, config, resourceParams, response) {
|
|
24403
24403
|
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
24404
24404
|
config,
|
|
24405
|
-
resolve: () => buildNetworkSnapshot$
|
|
24405
|
+
resolve: () => buildNetworkSnapshot$w(luvio, config, snapshotRefreshOptions$2)
|
|
24406
24406
|
});
|
|
24407
24407
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
24408
24408
|
}
|
|
24409
24409
|
function onFetchResponseError$f(luvio, config, resourceParams, response) {
|
|
24410
24410
|
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
24411
24411
|
config,
|
|
24412
|
-
resolve: () => buildNetworkSnapshot$
|
|
24412
|
+
resolve: () => buildNetworkSnapshot$w(luvio, config, snapshotRefreshOptions$2)
|
|
24413
24413
|
});
|
|
24414
24414
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
24415
24415
|
}
|
|
24416
|
-
function buildNetworkSnapshot$
|
|
24416
|
+
function buildNetworkSnapshot$w(luvio, config, options) {
|
|
24417
24417
|
const resourceParams = createResourceParams$q(config);
|
|
24418
24418
|
const request = createResourceRequest$t(resourceParams);
|
|
24419
24419
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -24428,7 +24428,7 @@
|
|
|
24428
24428
|
});
|
|
24429
24429
|
}
|
|
24430
24430
|
function buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext) {
|
|
24431
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
24431
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$w, undefined, false);
|
|
24432
24432
|
}
|
|
24433
24433
|
function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
24434
24434
|
const { luvio, config } = context;
|
|
@@ -24439,7 +24439,7 @@
|
|
|
24439
24439
|
};
|
|
24440
24440
|
const cacheSnapshot = storeLookup(selector, {
|
|
24441
24441
|
config,
|
|
24442
|
-
resolve: () => buildNetworkSnapshot$
|
|
24442
|
+
resolve: () => buildNetworkSnapshot$w(luvio, config, snapshotRefreshOptions$2)
|
|
24443
24443
|
});
|
|
24444
24444
|
return cacheSnapshot;
|
|
24445
24445
|
}
|
|
@@ -24488,18 +24488,18 @@
|
|
|
24488
24488
|
function onFetchResponseSuccess$f(luvio, config, resourceParams, response) {
|
|
24489
24489
|
const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
|
|
24490
24490
|
config,
|
|
24491
|
-
resolve: () => buildNetworkSnapshot$
|
|
24491
|
+
resolve: () => buildNetworkSnapshot$v(luvio, config, snapshotRefreshOptions$2)
|
|
24492
24492
|
});
|
|
24493
24493
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
24494
24494
|
}
|
|
24495
24495
|
function onFetchResponseError$e(luvio, config, resourceParams, response) {
|
|
24496
24496
|
const snapshot = ingestError$e(luvio, resourceParams, response, {
|
|
24497
24497
|
config,
|
|
24498
|
-
resolve: () => buildNetworkSnapshot$
|
|
24498
|
+
resolve: () => buildNetworkSnapshot$v(luvio, config, snapshotRefreshOptions$2)
|
|
24499
24499
|
});
|
|
24500
24500
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
24501
24501
|
}
|
|
24502
|
-
function buildNetworkSnapshot$
|
|
24502
|
+
function buildNetworkSnapshot$v(luvio, config, options) {
|
|
24503
24503
|
const resourceParams = createResourceParams$p(config);
|
|
24504
24504
|
const request = createResourceRequest$u(resourceParams);
|
|
24505
24505
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -24514,7 +24514,7 @@
|
|
|
24514
24514
|
});
|
|
24515
24515
|
}
|
|
24516
24516
|
function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
|
|
24517
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
24517
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$v, undefined, false);
|
|
24518
24518
|
}
|
|
24519
24519
|
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
24520
24520
|
const { luvio, config } = context;
|
|
@@ -24525,7 +24525,7 @@
|
|
|
24525
24525
|
};
|
|
24526
24526
|
const cacheSnapshot = storeLookup(selector, {
|
|
24527
24527
|
config,
|
|
24528
|
-
resolve: () => buildNetworkSnapshot$
|
|
24528
|
+
resolve: () => buildNetworkSnapshot$v(luvio, config, snapshotRefreshOptions$2)
|
|
24529
24529
|
});
|
|
24530
24530
|
return cacheSnapshot;
|
|
24531
24531
|
}
|
|
@@ -25025,18 +25025,18 @@
|
|
|
25025
25025
|
function onFetchResponseSuccess$e(luvio, config, resourceParams, response) {
|
|
25026
25026
|
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
25027
25027
|
config,
|
|
25028
|
-
resolve: () => buildNetworkSnapshot$
|
|
25028
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions$2)
|
|
25029
25029
|
});
|
|
25030
25030
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25031
25031
|
}
|
|
25032
25032
|
function onFetchResponseError$d$1(luvio, config, resourceParams, response) {
|
|
25033
25033
|
const snapshot = ingestError$b$1(luvio, resourceParams, response, {
|
|
25034
25034
|
config,
|
|
25035
|
-
resolve: () => buildNetworkSnapshot$
|
|
25035
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions$2)
|
|
25036
25036
|
});
|
|
25037
25037
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25038
25038
|
}
|
|
25039
|
-
function buildNetworkSnapshot$
|
|
25039
|
+
function buildNetworkSnapshot$u(luvio, config, options) {
|
|
25040
25040
|
const resourceParams = createResourceParams$o(config);
|
|
25041
25041
|
const request = createResourceRequest$r(resourceParams);
|
|
25042
25042
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -25051,7 +25051,7 @@
|
|
|
25051
25051
|
});
|
|
25052
25052
|
}
|
|
25053
25053
|
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
25054
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
25054
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$u, undefined, false);
|
|
25055
25055
|
}
|
|
25056
25056
|
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
25057
25057
|
const { luvio, config } = context;
|
|
@@ -25062,7 +25062,7 @@
|
|
|
25062
25062
|
};
|
|
25063
25063
|
const cacheSnapshot = storeLookup(selector, {
|
|
25064
25064
|
config,
|
|
25065
|
-
resolve: () => buildNetworkSnapshot$
|
|
25065
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions$2)
|
|
25066
25066
|
});
|
|
25067
25067
|
return cacheSnapshot;
|
|
25068
25068
|
}
|
|
@@ -25215,18 +25215,18 @@
|
|
|
25215
25215
|
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
25216
25216
|
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
25217
25217
|
config,
|
|
25218
|
-
resolve: () => buildNetworkSnapshot$
|
|
25218
|
+
resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions$2)
|
|
25219
25219
|
});
|
|
25220
25220
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25221
25221
|
}
|
|
25222
25222
|
function onFetchResponseError$c$1(luvio, config, resourceParams, response) {
|
|
25223
25223
|
const snapshot = ingestError$a$1(luvio, resourceParams, response, {
|
|
25224
25224
|
config,
|
|
25225
|
-
resolve: () => buildNetworkSnapshot$
|
|
25225
|
+
resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions$2)
|
|
25226
25226
|
});
|
|
25227
25227
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25228
25228
|
}
|
|
25229
|
-
function buildNetworkSnapshot$
|
|
25229
|
+
function buildNetworkSnapshot$t(luvio, config, options) {
|
|
25230
25230
|
const resourceParams = createResourceParams$n(config);
|
|
25231
25231
|
const request = createResourceRequest$q(resourceParams);
|
|
25232
25232
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -25241,7 +25241,7 @@
|
|
|
25241
25241
|
});
|
|
25242
25242
|
}
|
|
25243
25243
|
function buildNetworkSnapshotCachePolicy$f$1(context, coercedAdapterRequestContext) {
|
|
25244
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
25244
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$t, undefined, false);
|
|
25245
25245
|
}
|
|
25246
25246
|
function buildCachedSnapshotCachePolicy$e$1(context, storeLookup) {
|
|
25247
25247
|
const { luvio, config } = context;
|
|
@@ -25252,7 +25252,7 @@
|
|
|
25252
25252
|
};
|
|
25253
25253
|
const cacheSnapshot = storeLookup(selector, {
|
|
25254
25254
|
config,
|
|
25255
|
-
resolve: () => buildNetworkSnapshot$
|
|
25255
|
+
resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions$2)
|
|
25256
25256
|
});
|
|
25257
25257
|
return cacheSnapshot;
|
|
25258
25258
|
}
|
|
@@ -25304,18 +25304,18 @@
|
|
|
25304
25304
|
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
25305
25305
|
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
25306
25306
|
config,
|
|
25307
|
-
resolve: () => buildNetworkSnapshot$
|
|
25307
|
+
resolve: () => buildNetworkSnapshot$s(luvio, config, snapshotRefreshOptions$2)
|
|
25308
25308
|
});
|
|
25309
25309
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25310
25310
|
}
|
|
25311
25311
|
function onFetchResponseError$b$1(luvio, config, resourceParams, response) {
|
|
25312
25312
|
const snapshot = ingestError$c$1(luvio, resourceParams, response, {
|
|
25313
25313
|
config,
|
|
25314
|
-
resolve: () => buildNetworkSnapshot$
|
|
25314
|
+
resolve: () => buildNetworkSnapshot$s(luvio, config, snapshotRefreshOptions$2)
|
|
25315
25315
|
});
|
|
25316
25316
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25317
25317
|
}
|
|
25318
|
-
function buildNetworkSnapshot$
|
|
25318
|
+
function buildNetworkSnapshot$s(luvio, config, options) {
|
|
25319
25319
|
const resourceParams = createResourceParams$m(config);
|
|
25320
25320
|
const request = createResourceRequest$s(resourceParams);
|
|
25321
25321
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -25330,7 +25330,7 @@
|
|
|
25330
25330
|
});
|
|
25331
25331
|
}
|
|
25332
25332
|
function buildNetworkSnapshotCachePolicy$e$1(context, coercedAdapterRequestContext) {
|
|
25333
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
25333
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$s, undefined, false);
|
|
25334
25334
|
}
|
|
25335
25335
|
function buildCachedSnapshotCachePolicy$d$1(context, storeLookup) {
|
|
25336
25336
|
const { luvio, config } = context;
|
|
@@ -25341,7 +25341,7 @@
|
|
|
25341
25341
|
};
|
|
25342
25342
|
const cacheSnapshot = storeLookup(selector, {
|
|
25343
25343
|
config,
|
|
25344
|
-
resolve: () => buildNetworkSnapshot$
|
|
25344
|
+
resolve: () => buildNetworkSnapshot$s(luvio, config, snapshotRefreshOptions$2)
|
|
25345
25345
|
});
|
|
25346
25346
|
return cacheSnapshot;
|
|
25347
25347
|
}
|
|
@@ -25471,7 +25471,7 @@
|
|
|
25471
25471
|
}
|
|
25472
25472
|
return config;
|
|
25473
25473
|
}
|
|
25474
|
-
function buildNetworkSnapshot$
|
|
25474
|
+
function buildNetworkSnapshot$r(luvio, config, options) {
|
|
25475
25475
|
const resourceParams = createResourceParams$l(config);
|
|
25476
25476
|
const request = createResourceRequest$p(resourceParams);
|
|
25477
25477
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -25496,7 +25496,7 @@
|
|
|
25496
25496
|
if (config === null) {
|
|
25497
25497
|
throw new Error('Invalid config for "updateRelatedListInfo"');
|
|
25498
25498
|
}
|
|
25499
|
-
return buildNetworkSnapshot$
|
|
25499
|
+
return buildNetworkSnapshot$r(luvio, config);
|
|
25500
25500
|
};
|
|
25501
25501
|
};
|
|
25502
25502
|
|
|
@@ -25878,18 +25878,18 @@
|
|
|
25878
25878
|
function onFetchResponseSuccess$b$1(luvio, config, resourceParams, response) {
|
|
25879
25879
|
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
25880
25880
|
config,
|
|
25881
|
-
resolve: () => buildNetworkSnapshot$
|
|
25881
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions$2)
|
|
25882
25882
|
});
|
|
25883
25883
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25884
25884
|
}
|
|
25885
25885
|
function onFetchResponseError$a$1(luvio, config, resourceParams, response) {
|
|
25886
25886
|
const snapshot = ingestError$8$1(luvio, resourceParams, response, {
|
|
25887
25887
|
config,
|
|
25888
|
-
resolve: () => buildNetworkSnapshot$
|
|
25888
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions$2)
|
|
25889
25889
|
});
|
|
25890
25890
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25891
25891
|
}
|
|
25892
|
-
function buildNetworkSnapshot$
|
|
25892
|
+
function buildNetworkSnapshot$q(luvio, config, options) {
|
|
25893
25893
|
const resourceParams = createResourceParams$k(config);
|
|
25894
25894
|
const request = createResourceRequest$n$1(resourceParams);
|
|
25895
25895
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -25904,7 +25904,7 @@
|
|
|
25904
25904
|
});
|
|
25905
25905
|
}
|
|
25906
25906
|
function buildNetworkSnapshotCachePolicy$d$1(context, coercedAdapterRequestContext) {
|
|
25907
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
25907
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$q, undefined, false);
|
|
25908
25908
|
}
|
|
25909
25909
|
function buildCachedSnapshotCachePolicy$c$1(context, storeLookup) {
|
|
25910
25910
|
const { luvio, config } = context;
|
|
@@ -25915,7 +25915,7 @@
|
|
|
25915
25915
|
};
|
|
25916
25916
|
const cacheSnapshot = storeLookup(selector, {
|
|
25917
25917
|
config,
|
|
25918
|
-
resolve: () => buildNetworkSnapshot$
|
|
25918
|
+
resolve: () => buildNetworkSnapshot$q(luvio, config, snapshotRefreshOptions$2)
|
|
25919
25919
|
});
|
|
25920
25920
|
return cacheSnapshot;
|
|
25921
25921
|
}
|
|
@@ -25961,18 +25961,18 @@
|
|
|
25961
25961
|
function onFetchResponseSuccess$a$1(luvio, config, resourceParams, response) {
|
|
25962
25962
|
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
25963
25963
|
config,
|
|
25964
|
-
resolve: () => buildNetworkSnapshot$
|
|
25964
|
+
resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions$2)
|
|
25965
25965
|
});
|
|
25966
25966
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25967
25967
|
}
|
|
25968
25968
|
function onFetchResponseError$9$1(luvio, config, resourceParams, response) {
|
|
25969
25969
|
const snapshot = ingestError$9$1(luvio, resourceParams, response, {
|
|
25970
25970
|
config,
|
|
25971
|
-
resolve: () => buildNetworkSnapshot$
|
|
25971
|
+
resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions$2)
|
|
25972
25972
|
});
|
|
25973
25973
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25974
25974
|
}
|
|
25975
|
-
function buildNetworkSnapshot$
|
|
25975
|
+
function buildNetworkSnapshot$p(luvio, config, options) {
|
|
25976
25976
|
const resourceParams = createResourceParams$j(config);
|
|
25977
25977
|
const request = createResourceRequest$o(resourceParams);
|
|
25978
25978
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -25987,7 +25987,7 @@
|
|
|
25987
25987
|
});
|
|
25988
25988
|
}
|
|
25989
25989
|
function buildNetworkSnapshotCachePolicy$c$1(context, coercedAdapterRequestContext) {
|
|
25990
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
25990
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$p, undefined, false);
|
|
25991
25991
|
}
|
|
25992
25992
|
function buildCachedSnapshotCachePolicy$b$1(context, storeLookup) {
|
|
25993
25993
|
const { luvio, config } = context;
|
|
@@ -25998,7 +25998,7 @@
|
|
|
25998
25998
|
};
|
|
25999
25999
|
const cacheSnapshot = storeLookup(selector, {
|
|
26000
26000
|
config,
|
|
26001
|
-
resolve: () => buildNetworkSnapshot$
|
|
26001
|
+
resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions$2)
|
|
26002
26002
|
});
|
|
26003
26003
|
return cacheSnapshot;
|
|
26004
26004
|
}
|
|
@@ -26114,7 +26114,7 @@
|
|
|
26114
26114
|
}
|
|
26115
26115
|
return config;
|
|
26116
26116
|
}
|
|
26117
|
-
function buildNetworkSnapshot$
|
|
26117
|
+
function buildNetworkSnapshot$o(luvio, config, options) {
|
|
26118
26118
|
const resourceParams = createResourceParams$i(config);
|
|
26119
26119
|
const request = createResourceRequest$m$1(resourceParams);
|
|
26120
26120
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -26139,7 +26139,7 @@
|
|
|
26139
26139
|
if (config === null) {
|
|
26140
26140
|
throw new Error('Invalid config for "updateRelatedListPreferences"');
|
|
26141
26141
|
}
|
|
26142
|
-
return buildNetworkSnapshot$
|
|
26142
|
+
return buildNetworkSnapshot$o(luvio, config);
|
|
26143
26143
|
};
|
|
26144
26144
|
};
|
|
26145
26145
|
|
|
@@ -27146,18 +27146,18 @@
|
|
|
27146
27146
|
function onFetchResponseSuccess$9$1(luvio, config, resourceParams, response) {
|
|
27147
27147
|
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
27148
27148
|
config,
|
|
27149
|
-
resolve: () => buildNetworkSnapshot$
|
|
27149
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions$2)
|
|
27150
27150
|
});
|
|
27151
27151
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27152
27152
|
}
|
|
27153
27153
|
function onFetchResponseError$8$1(luvio, config, resourceParams, response) {
|
|
27154
27154
|
const snapshot = ingestError$6$1(luvio, resourceParams, response, {
|
|
27155
27155
|
config,
|
|
27156
|
-
resolve: () => buildNetworkSnapshot$
|
|
27156
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions$2)
|
|
27157
27157
|
});
|
|
27158
27158
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27159
27159
|
}
|
|
27160
|
-
function buildNetworkSnapshot$
|
|
27160
|
+
function buildNetworkSnapshot$n(luvio, config, options) {
|
|
27161
27161
|
const resourceParams = createResourceParams$h$1(config);
|
|
27162
27162
|
const request = createResourceRequest$k$1(resourceParams);
|
|
27163
27163
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -27172,7 +27172,7 @@
|
|
|
27172
27172
|
});
|
|
27173
27173
|
}
|
|
27174
27174
|
function buildNetworkSnapshotCachePolicy$b$1(context, coercedAdapterRequestContext) {
|
|
27175
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
27175
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$n, 'get', false);
|
|
27176
27176
|
}
|
|
27177
27177
|
function buildCachedSnapshotCachePolicy$a$1(context, storeLookup) {
|
|
27178
27178
|
const { luvio, config } = context;
|
|
@@ -27183,7 +27183,7 @@
|
|
|
27183
27183
|
};
|
|
27184
27184
|
const cacheSnapshot = storeLookup(selector, {
|
|
27185
27185
|
config,
|
|
27186
|
-
resolve: () => buildNetworkSnapshot$
|
|
27186
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions$2)
|
|
27187
27187
|
});
|
|
27188
27188
|
return cacheSnapshot;
|
|
27189
27189
|
}
|
|
@@ -27238,14 +27238,14 @@
|
|
|
27238
27238
|
function onFetchResponseSuccess$8$1(luvio, config, resourceParams, response) {
|
|
27239
27239
|
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
27240
27240
|
config,
|
|
27241
|
-
resolve: () => buildNetworkSnapshot$
|
|
27241
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions$2)
|
|
27242
27242
|
});
|
|
27243
27243
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27244
27244
|
}
|
|
27245
27245
|
function onFetchResponseError$7$1(luvio, config, resourceParams, response) {
|
|
27246
27246
|
const snapshot = ingestError$7$1(luvio, resourceParams, response, {
|
|
27247
27247
|
config,
|
|
27248
|
-
resolve: () => buildNetworkSnapshot$
|
|
27248
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions$2)
|
|
27249
27249
|
});
|
|
27250
27250
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27251
27251
|
}
|
|
@@ -27316,7 +27316,7 @@
|
|
|
27316
27316
|
}
|
|
27317
27317
|
return node.data.__metadata;
|
|
27318
27318
|
}
|
|
27319
|
-
function buildNetworkSnapshot$
|
|
27319
|
+
function buildNetworkSnapshot$m(luvio, config, options, cacheSnapshot) {
|
|
27320
27320
|
const resourceParams = createResourceParams$g$1(config);
|
|
27321
27321
|
const request = prepareRequest$2$1(luvio, config, resourceParams, cacheSnapshot);
|
|
27322
27322
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -27331,7 +27331,7 @@
|
|
|
27331
27331
|
});
|
|
27332
27332
|
}
|
|
27333
27333
|
function buildNetworkSnapshotCachePolicy$a$1(context, coercedAdapterRequestContext) {
|
|
27334
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
27334
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$m, 'get', true);
|
|
27335
27335
|
}
|
|
27336
27336
|
function buildCachedSnapshotCachePolicy$9$1(context, storeLookup) {
|
|
27337
27337
|
const { luvio, config } = context;
|
|
@@ -27342,7 +27342,7 @@
|
|
|
27342
27342
|
};
|
|
27343
27343
|
const cacheSnapshot = storeLookup(selector, {
|
|
27344
27344
|
config,
|
|
27345
|
-
resolve: () => buildNetworkSnapshot$
|
|
27345
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions$2)
|
|
27346
27346
|
});
|
|
27347
27347
|
if (isUnfulfilledSnapshot$1$1(cacheSnapshot) && cacheSnapshot.data !== undefined) {
|
|
27348
27348
|
context.cacheSnapshot = cacheSnapshot;
|
|
@@ -27503,18 +27503,18 @@
|
|
|
27503
27503
|
function onFetchResponseSuccess$7$1(luvio, config, resourceParams, response) {
|
|
27504
27504
|
const snapshot = ingestSuccess$9$1(luvio, resourceParams, response, {
|
|
27505
27505
|
config,
|
|
27506
|
-
resolve: () => buildNetworkSnapshot$
|
|
27506
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions$2)
|
|
27507
27507
|
});
|
|
27508
27508
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27509
27509
|
}
|
|
27510
27510
|
function onFetchResponseError$6$1(luvio, config, resourceParams, response) {
|
|
27511
27511
|
const snapshot = ingestError$5$1(luvio, resourceParams, response, {
|
|
27512
27512
|
config,
|
|
27513
|
-
resolve: () => buildNetworkSnapshot$
|
|
27513
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions$2)
|
|
27514
27514
|
});
|
|
27515
27515
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27516
27516
|
}
|
|
27517
|
-
function buildNetworkSnapshot$
|
|
27517
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
27518
27518
|
const resourceParams = createResourceParams$f$1(config);
|
|
27519
27519
|
const request = createResourceRequest$j$1(resourceParams);
|
|
27520
27520
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -27529,7 +27529,7 @@
|
|
|
27529
27529
|
});
|
|
27530
27530
|
}
|
|
27531
27531
|
function buildNetworkSnapshotCachePolicy$9$1(context, coercedAdapterRequestContext) {
|
|
27532
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
27532
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$l, undefined, false);
|
|
27533
27533
|
}
|
|
27534
27534
|
function buildCachedSnapshotCachePolicy$8$1(context, storeLookup) {
|
|
27535
27535
|
const { luvio, config } = context;
|
|
@@ -27540,7 +27540,7 @@
|
|
|
27540
27540
|
};
|
|
27541
27541
|
const cacheSnapshot = storeLookup(selector, {
|
|
27542
27542
|
config,
|
|
27543
|
-
resolve: () => buildNetworkSnapshot$
|
|
27543
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions$2)
|
|
27544
27544
|
});
|
|
27545
27545
|
return cacheSnapshot;
|
|
27546
27546
|
}
|
|
@@ -27686,18 +27686,18 @@
|
|
|
27686
27686
|
function onFetchResponseSuccess$6$1(luvio, config, resourceParams, response) {
|
|
27687
27687
|
const snapshot = ingestSuccess$8$1(luvio, resourceParams, response, {
|
|
27688
27688
|
config,
|
|
27689
|
-
resolve: () => buildNetworkSnapshot$
|
|
27689
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions$2)
|
|
27690
27690
|
});
|
|
27691
27691
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27692
27692
|
}
|
|
27693
27693
|
function onFetchResponseError$5$1(luvio, config, resourceParams, response) {
|
|
27694
27694
|
const snapshot = ingestError$4$1(luvio, resourceParams, response, {
|
|
27695
27695
|
config,
|
|
27696
|
-
resolve: () => buildNetworkSnapshot$
|
|
27696
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions$2)
|
|
27697
27697
|
});
|
|
27698
27698
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27699
27699
|
}
|
|
27700
|
-
function buildNetworkSnapshot$
|
|
27700
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
27701
27701
|
const resourceParams = createResourceParams$e$1(config);
|
|
27702
27702
|
const request = createResourceRequest$i$1(resourceParams);
|
|
27703
27703
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -27712,7 +27712,7 @@
|
|
|
27712
27712
|
});
|
|
27713
27713
|
}
|
|
27714
27714
|
function buildNetworkSnapshotCachePolicy$8$1(context, coercedAdapterRequestContext) {
|
|
27715
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
27715
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
27716
27716
|
}
|
|
27717
27717
|
function buildCachedSnapshotCachePolicy$7$1(context, storeLookup) {
|
|
27718
27718
|
const { luvio, config } = context;
|
|
@@ -27723,7 +27723,7 @@
|
|
|
27723
27723
|
};
|
|
27724
27724
|
const cacheSnapshot = storeLookup(selector, {
|
|
27725
27725
|
config,
|
|
27726
|
-
resolve: () => buildNetworkSnapshot$
|
|
27726
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions$2)
|
|
27727
27727
|
});
|
|
27728
27728
|
return cacheSnapshot;
|
|
27729
27729
|
}
|
|
@@ -27866,18 +27866,18 @@
|
|
|
27866
27866
|
function onFetchResponseSuccess$5$1(luvio, config, resourceParams, response) {
|
|
27867
27867
|
const snapshot = ingestSuccess$7$1(luvio, resourceParams, response, {
|
|
27868
27868
|
config,
|
|
27869
|
-
resolve: () => buildNetworkSnapshot$
|
|
27869
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions$2)
|
|
27870
27870
|
});
|
|
27871
27871
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27872
27872
|
}
|
|
27873
27873
|
function onFetchResponseError$4$1(luvio, config, resourceParams, response) {
|
|
27874
27874
|
const snapshot = ingestError$3$1(luvio, resourceParams, response, {
|
|
27875
27875
|
config,
|
|
27876
|
-
resolve: () => buildNetworkSnapshot$
|
|
27876
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions$2)
|
|
27877
27877
|
});
|
|
27878
27878
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27879
27879
|
}
|
|
27880
|
-
function buildNetworkSnapshot$
|
|
27880
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
27881
27881
|
const resourceParams = createResourceParams$d$1(config);
|
|
27882
27882
|
const request = createResourceRequest$h$1(resourceParams);
|
|
27883
27883
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -27892,7 +27892,7 @@
|
|
|
27892
27892
|
});
|
|
27893
27893
|
}
|
|
27894
27894
|
function buildNetworkSnapshotCachePolicy$7$1(context, coercedAdapterRequestContext) {
|
|
27895
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
27895
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
27896
27896
|
}
|
|
27897
27897
|
function buildCachedSnapshotCachePolicy$6$1(context, storeLookup) {
|
|
27898
27898
|
const { luvio, config } = context;
|
|
@@ -27903,7 +27903,7 @@
|
|
|
27903
27903
|
};
|
|
27904
27904
|
const cacheSnapshot = storeLookup(selector, {
|
|
27905
27905
|
config,
|
|
27906
|
-
resolve: () => buildNetworkSnapshot$
|
|
27906
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions$2)
|
|
27907
27907
|
});
|
|
27908
27908
|
return cacheSnapshot;
|
|
27909
27909
|
}
|
|
@@ -28206,18 +28206,18 @@
|
|
|
28206
28206
|
function onFetchResponseSuccess$4$1(luvio, config, resourceParams, response) {
|
|
28207
28207
|
const snapshot = ingestSuccess$6$1(luvio, resourceParams, response, {
|
|
28208
28208
|
config,
|
|
28209
|
-
resolve: () => buildNetworkSnapshot$
|
|
28209
|
+
resolve: () => buildNetworkSnapshot$i$1(luvio, config, snapshotRefreshOptions$2)
|
|
28210
28210
|
});
|
|
28211
28211
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
28212
28212
|
}
|
|
28213
28213
|
function onFetchResponseError$3$1(luvio, config, resourceParams, response) {
|
|
28214
28214
|
const snapshot = ingestError$2$1(luvio, resourceParams, response, {
|
|
28215
28215
|
config,
|
|
28216
|
-
resolve: () => buildNetworkSnapshot$
|
|
28216
|
+
resolve: () => buildNetworkSnapshot$i$1(luvio, config, snapshotRefreshOptions$2)
|
|
28217
28217
|
});
|
|
28218
28218
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
28219
28219
|
}
|
|
28220
|
-
function buildNetworkSnapshot$
|
|
28220
|
+
function buildNetworkSnapshot$i$1(luvio, config, options) {
|
|
28221
28221
|
const resourceParams = createResourceParams$c$1(config);
|
|
28222
28222
|
const request = createResourceRequest$g$1(resourceParams);
|
|
28223
28223
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -28232,7 +28232,7 @@
|
|
|
28232
28232
|
});
|
|
28233
28233
|
}
|
|
28234
28234
|
function buildNetworkSnapshotCachePolicy$6$1(context, coercedAdapterRequestContext) {
|
|
28235
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
28235
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$i$1, 'get', false);
|
|
28236
28236
|
}
|
|
28237
28237
|
function buildCachedSnapshotCachePolicy$5$1(context, storeLookup) {
|
|
28238
28238
|
const { luvio, config } = context;
|
|
@@ -28243,7 +28243,7 @@
|
|
|
28243
28243
|
};
|
|
28244
28244
|
const cacheSnapshot = storeLookup(selector, {
|
|
28245
28245
|
config,
|
|
28246
|
-
resolve: () => buildNetworkSnapshot$
|
|
28246
|
+
resolve: () => buildNetworkSnapshot$i$1(luvio, config, snapshotRefreshOptions$2)
|
|
28247
28247
|
});
|
|
28248
28248
|
return cacheSnapshot;
|
|
28249
28249
|
}
|
|
@@ -28418,18 +28418,18 @@
|
|
|
28418
28418
|
function onFetchResponseSuccess$3$1(luvio, config, resourceParams, response) {
|
|
28419
28419
|
const snapshot = ingestSuccess$5$1(luvio, resourceParams, response, {
|
|
28420
28420
|
config,
|
|
28421
|
-
resolve: () => buildNetworkSnapshot$
|
|
28421
|
+
resolve: () => buildNetworkSnapshot$h$1(luvio, config, snapshotRefreshOptions$2)
|
|
28422
28422
|
});
|
|
28423
28423
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
28424
28424
|
}
|
|
28425
28425
|
function onFetchResponseError$2$1(luvio, config, resourceParams, response) {
|
|
28426
28426
|
const snapshot = ingestError$1$2(luvio, resourceParams, response, {
|
|
28427
28427
|
config,
|
|
28428
|
-
resolve: () => buildNetworkSnapshot$
|
|
28428
|
+
resolve: () => buildNetworkSnapshot$h$1(luvio, config, snapshotRefreshOptions$2)
|
|
28429
28429
|
});
|
|
28430
28430
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
28431
28431
|
}
|
|
28432
|
-
function buildNetworkSnapshot$
|
|
28432
|
+
function buildNetworkSnapshot$h$1(luvio, config, options) {
|
|
28433
28433
|
const resourceParams = createResourceParams$b$1(config);
|
|
28434
28434
|
const request = createResourceRequest$f$1(resourceParams);
|
|
28435
28435
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -28444,7 +28444,7 @@
|
|
|
28444
28444
|
});
|
|
28445
28445
|
}
|
|
28446
28446
|
function buildNetworkSnapshotCachePolicy$5$1(context, coercedAdapterRequestContext) {
|
|
28447
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
28447
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$h$1, 'get', false);
|
|
28448
28448
|
}
|
|
28449
28449
|
function buildCachedSnapshotCachePolicy$4$1(context, storeLookup) {
|
|
28450
28450
|
const { luvio, config } = context;
|
|
@@ -28455,7 +28455,7 @@
|
|
|
28455
28455
|
};
|
|
28456
28456
|
const cacheSnapshot = storeLookup(selector, {
|
|
28457
28457
|
config,
|
|
28458
|
-
resolve: () => buildNetworkSnapshot$
|
|
28458
|
+
resolve: () => buildNetworkSnapshot$h$1(luvio, config, snapshotRefreshOptions$2)
|
|
28459
28459
|
});
|
|
28460
28460
|
return cacheSnapshot;
|
|
28461
28461
|
}
|
|
@@ -28611,6 +28611,25 @@
|
|
|
28611
28611
|
};
|
|
28612
28612
|
}
|
|
28613
28613
|
|
|
28614
|
+
/**
|
|
28615
|
+
* Builds the dispatch options for a DML (mutating) adapter from the caller's
|
|
28616
|
+
* narrowed request context, forwarding the `requestCorrelator` so the
|
|
28617
|
+
* originating observability context reaches the network adapter.
|
|
28618
|
+
*
|
|
28619
|
+
* Returns `undefined` when no request context was supplied, preserving the
|
|
28620
|
+
* pre-existing behavior where mutating adapters dispatched with no options.
|
|
28621
|
+
*/
|
|
28622
|
+
function createDispatchResourceRequestContext$2(requestContext) {
|
|
28623
|
+
if (requestContext === undefined) {
|
|
28624
|
+
return undefined;
|
|
28625
|
+
}
|
|
28626
|
+
return {
|
|
28627
|
+
resourceRequestContext: {
|
|
28628
|
+
requestCorrelator: requestContext.requestCorrelator,
|
|
28629
|
+
},
|
|
28630
|
+
};
|
|
28631
|
+
}
|
|
28632
|
+
|
|
28614
28633
|
const adapterName$7$1 = 'executeBatchRecordOperations';
|
|
28615
28634
|
const executeBatchRecordOperations_ConfigPropertyMetadata = [
|
|
28616
28635
|
generateParamConfigMetadata$3('allOrNone', true, 2, 1, false),
|
|
@@ -28670,7 +28689,7 @@
|
|
|
28670
28689
|
}
|
|
28671
28690
|
return config;
|
|
28672
28691
|
}
|
|
28673
|
-
function buildNetworkSnapshot$
|
|
28692
|
+
function buildNetworkSnapshot$g$1(luvio, config, options) {
|
|
28674
28693
|
const resourceParams = batchUpdateRecordsCreateResourceParams(config);
|
|
28675
28694
|
const request = createResourceRequest$e$1(resourceParams);
|
|
28676
28695
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
@@ -28688,14 +28707,14 @@
|
|
|
28688
28707
|
});
|
|
28689
28708
|
}
|
|
28690
28709
|
const factory$e = (luvio) => {
|
|
28691
|
-
return function executeBatchRecordOperations(untrustedConfig) {
|
|
28710
|
+
return function executeBatchRecordOperations(untrustedConfig, requestContext) {
|
|
28692
28711
|
const config = validateAdapterConfig$a$1(untrustedConfig, executeBatchRecordOperations_ConfigPropertyNames);
|
|
28693
28712
|
// Invalid or incomplete config
|
|
28694
28713
|
if (config === null) {
|
|
28695
28714
|
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
28696
28715
|
throw new Error('Invalid config for "executeBatchRecordOperations"');
|
|
28697
28716
|
}
|
|
28698
|
-
return buildNetworkSnapshot$
|
|
28717
|
+
return buildNetworkSnapshot$g$1(luvio, config, createDispatchResourceRequestContext$2(requestContext));
|
|
28699
28718
|
};
|
|
28700
28719
|
};
|
|
28701
28720
|
|
|
@@ -28739,7 +28758,7 @@
|
|
|
28739
28758
|
generateParamConfigMetadata$3('fields', true, 2 /* Body */, 4 /* Unsupported */),
|
|
28740
28759
|
];
|
|
28741
28760
|
const createResourceParams$a$1 = /*#__PURE__*/ createResourceParams$14(performUpdateRecordQuickAction_ConfigPropertyMetadata);
|
|
28742
|
-
function buildNetworkSnapshot$
|
|
28761
|
+
function buildNetworkSnapshot$f$1(luvio, config, options) {
|
|
28743
28762
|
const resourceParams = createResourceParams$a$1(config);
|
|
28744
28763
|
const request = createResourceRequest$d$1(resourceParams);
|
|
28745
28764
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -28798,7 +28817,7 @@
|
|
|
28798
28817
|
generateParamConfigMetadata$3('fields', true, 2 /* Body */, 4 /* Unsupported */),
|
|
28799
28818
|
];
|
|
28800
28819
|
const createResourceParams$9$1 = /*#__PURE__*/ createResourceParams$14(performQuickAction_ConfigPropertyMetadata);
|
|
28801
|
-
function buildNetworkSnapshot$
|
|
28820
|
+
function buildNetworkSnapshot$e$1(luvio, config, options) {
|
|
28802
28821
|
const resourceParams = createResourceParams$9$1(config);
|
|
28803
28822
|
const request = createResourceRequest$c$1(resourceParams);
|
|
28804
28823
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -28817,31 +28836,37 @@
|
|
|
28817
28836
|
});
|
|
28818
28837
|
}
|
|
28819
28838
|
|
|
28839
|
+
function buildNetworkSnapshot$d$1(luvio, config, options) {
|
|
28840
|
+
return buildNetworkSnapshot$f$1(luvio, config, options);
|
|
28841
|
+
}
|
|
28820
28842
|
const factory$d = (luvio) => {
|
|
28821
|
-
return function (untrustedConfig) {
|
|
28843
|
+
return function (untrustedConfig, requestContext) {
|
|
28822
28844
|
const config = untrustedConfig;
|
|
28823
28845
|
const draftAdapter = configurationForRestAdapters$2.getDraftAwarePerformUpdateRecordQuickActionAdapter();
|
|
28824
28846
|
if (draftAdapter !== undefined) {
|
|
28825
28847
|
return draftAdapter(config, (config) => {
|
|
28826
28848
|
const resourceParams = createResourceParams$9$1(config);
|
|
28827
28849
|
return createResourceRequest$d$1(resourceParams);
|
|
28828
|
-
});
|
|
28850
|
+
}, requestContext);
|
|
28829
28851
|
}
|
|
28830
|
-
return buildNetworkSnapshot$
|
|
28852
|
+
return buildNetworkSnapshot$d$1(luvio, config, createDispatchResourceRequestContext$2(requestContext));
|
|
28831
28853
|
};
|
|
28832
28854
|
};
|
|
28833
28855
|
|
|
28856
|
+
function buildNetworkSnapshot$c$1(luvio, config, options) {
|
|
28857
|
+
return buildNetworkSnapshot$e$1(luvio, config, options);
|
|
28858
|
+
}
|
|
28834
28859
|
const factory$c = (luvio) => {
|
|
28835
|
-
return function (untrustedConfig) {
|
|
28860
|
+
return function (untrustedConfig, requestContext) {
|
|
28836
28861
|
const config = untrustedConfig;
|
|
28837
28862
|
const draftAdapter = configurationForRestAdapters$2.getDraftAwarePerformQuickActionAdapter();
|
|
28838
28863
|
if (draftAdapter !== undefined) {
|
|
28839
28864
|
return draftAdapter(config, (config) => {
|
|
28840
28865
|
const resourceParams = createResourceParams$9$1(config);
|
|
28841
28866
|
return createResourceRequest$c$1(resourceParams);
|
|
28842
|
-
});
|
|
28867
|
+
}, requestContext);
|
|
28843
28868
|
}
|
|
28844
|
-
return buildNetworkSnapshot$
|
|
28869
|
+
return buildNetworkSnapshot$c$1(luvio, config, createDispatchResourceRequestContext$2(requestContext));
|
|
28845
28870
|
};
|
|
28846
28871
|
};
|
|
28847
28872
|
|
|
@@ -28890,8 +28915,10 @@
|
|
|
28890
28915
|
layoutUserState.layoutType = layoutType;
|
|
28891
28916
|
layoutUserState.mode = mode;
|
|
28892
28917
|
}
|
|
28893
|
-
function updateLayoutUserState$1(luvio, config, key, updateRequest) {
|
|
28894
|
-
return luvio
|
|
28918
|
+
function updateLayoutUserState$1(luvio, config, key, updateRequest, options) {
|
|
28919
|
+
return luvio
|
|
28920
|
+
.dispatchResourceRequest(updateRequest, options)
|
|
28921
|
+
.then((response) => {
|
|
28895
28922
|
const { body } = response;
|
|
28896
28923
|
return luvio.handleSuccessResponse(() => ingestAndBroadcast(luvio, key, config, body), () => {
|
|
28897
28924
|
const cache = new StoreKeyMap();
|
|
@@ -28956,7 +28983,7 @@
|
|
|
28956
28983
|
};
|
|
28957
28984
|
}
|
|
28958
28985
|
const factory$b = (luvio) => {
|
|
28959
|
-
return (untrustedObjectApiName, untrustedRecordTypeId, untrustedLayoutType, untrustedMode, untrustedLayoutUserStateInput) => {
|
|
28986
|
+
return (untrustedObjectApiName, untrustedRecordTypeId, untrustedLayoutType, untrustedMode, untrustedLayoutUserStateInput, requestContext) => {
|
|
28960
28987
|
const untrusted = {
|
|
28961
28988
|
objectApiName: untrustedObjectApiName,
|
|
28962
28989
|
recordTypeId: untrustedRecordTypeId,
|
|
@@ -28991,11 +29018,11 @@
|
|
|
28991
29018
|
ingestAndBroadcast(luvio, key, config, updatedLayoutUserState);
|
|
28992
29019
|
}
|
|
28993
29020
|
}
|
|
28994
|
-
return updateLayoutUserState$1(luvio, config, key, updateRequest);
|
|
29021
|
+
return updateLayoutUserState$1(luvio, config, key, updateRequest, createDispatchResourceRequestContext$2(requestContext));
|
|
28995
29022
|
};
|
|
28996
29023
|
};
|
|
28997
29024
|
|
|
28998
|
-
function buildNetworkSnapshot$
|
|
29025
|
+
function buildNetworkSnapshot$b$1(luvio, config, options, cacheSnapshot) {
|
|
28999
29026
|
const resourceParams = createResourceParams$8$1(config);
|
|
29000
29027
|
const request = prepareRequest$1$1(luvio, config, resourceParams, cacheSnapshot);
|
|
29001
29028
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
@@ -29064,14 +29091,14 @@
|
|
|
29064
29091
|
function onFetchResponseSuccess$2$1(luvio, config, resourceParams, response) {
|
|
29065
29092
|
const snapshot = ingestSuccess$R(luvio, resourceParams, response, {
|
|
29066
29093
|
config,
|
|
29067
|
-
resolve: () => buildNetworkSnapshot$
|
|
29094
|
+
resolve: () => buildNetworkSnapshot$b$1(luvio, config, snapshotRefreshOptions$2)
|
|
29068
29095
|
});
|
|
29069
29096
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
29070
29097
|
}
|
|
29071
29098
|
function onFetchResponseError$1$2(luvio, config, resourceParams, response) {
|
|
29072
29099
|
const snapshot = ingestError$K(luvio, resourceParams, response, {
|
|
29073
29100
|
config,
|
|
29074
|
-
resolve: () => buildNetworkSnapshot$
|
|
29101
|
+
resolve: () => buildNetworkSnapshot$b$1(luvio, config, snapshotRefreshOptions$2)
|
|
29075
29102
|
});
|
|
29076
29103
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
29077
29104
|
}
|
|
@@ -29151,7 +29178,7 @@
|
|
|
29151
29178
|
return node.data.__metadata;
|
|
29152
29179
|
}
|
|
29153
29180
|
function buildNetworkSnapshotCachePolicy$4$1(context, coercedAdapterRequestContext) {
|
|
29154
|
-
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
29181
|
+
return buildNetworkSnapshotCachePolicy$T(context, coercedAdapterRequestContext, buildNetworkSnapshot$b$1, 'get', true);
|
|
29155
29182
|
}
|
|
29156
29183
|
function buildCachedSnapshotCachePolicy$3$1(context, storeLookup) {
|
|
29157
29184
|
const { luvio, config } = context;
|
|
@@ -29162,7 +29189,7 @@
|
|
|
29162
29189
|
};
|
|
29163
29190
|
const cacheSnapshot = storeLookup(selector, {
|
|
29164
29191
|
config,
|
|
29165
|
-
resolve: () => buildNetworkSnapshot$
|
|
29192
|
+
resolve: () => buildNetworkSnapshot$b$1(luvio, config, snapshotRefreshOptions$2)
|
|
29166
29193
|
});
|
|
29167
29194
|
if (isUnfulfilledSnapshot$1$1(cacheSnapshot) && cacheSnapshot.data !== undefined) {
|
|
29168
29195
|
context.cacheSnapshot = cacheSnapshot;
|
|
@@ -29318,7 +29345,7 @@
|
|
|
29318
29345
|
}
|
|
29319
29346
|
|
|
29320
29347
|
function keyBuilder$8$2(luvio, params) {
|
|
29321
|
-
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$
|
|
29348
|
+
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(',') + ']')) + ')';
|
|
29322
29349
|
}
|
|
29323
29350
|
function getResponseCacheKeys$7$1(storeKeyMap, luvio, resourceParams, response) {
|
|
29324
29351
|
getTypeCacheKeys$7$2(storeKeyMap, luvio, response, () => keyBuilder$8$2(luvio, resourceParams));
|
|
@@ -29460,7 +29487,7 @@
|
|
|
29460
29487
|
}
|
|
29461
29488
|
});
|
|
29462
29489
|
}
|
|
29463
|
-
function buildNetworkSnapshot$
|
|
29490
|
+
function buildNetworkSnapshot$a$1(luvio, config, options) {
|
|
29464
29491
|
const { objectApiName, fieldApiName } = config;
|
|
29465
29492
|
const resourceParams = {
|
|
29466
29493
|
/*
|
|
@@ -29538,7 +29565,7 @@
|
|
|
29538
29565
|
priority: networkPriority,
|
|
29539
29566
|
};
|
|
29540
29567
|
}
|
|
29541
|
-
return buildNetworkSnapshot$
|
|
29568
|
+
return buildNetworkSnapshot$a$1(context.luvio, context.config, dispatchOptions);
|
|
29542
29569
|
}
|
|
29543
29570
|
const factory$9$1 = (luvio) => {
|
|
29544
29571
|
return (untrustedConfig, requestContext) => {
|
|
@@ -29548,7 +29575,7 @@
|
|
|
29548
29575
|
}
|
|
29549
29576
|
const refresh = {
|
|
29550
29577
|
config,
|
|
29551
|
-
resolve: () => buildNetworkSnapshot$
|
|
29578
|
+
resolve: () => buildNetworkSnapshot$a$1(luvio, config),
|
|
29552
29579
|
};
|
|
29553
29580
|
const promiseOrSnapshot = luvio.applyCachePolicy(requestContext || {}, { config, luvio }, buildCachedSnapshot$2$1, buildNetworkSnapshotCachePolicy$3$1);
|
|
29554
29581
|
if (isPromise$2(promiseOrSnapshot)) {
|
|
@@ -29602,8 +29629,44 @@
|
|
|
29602
29629
|
return config;
|
|
29603
29630
|
}
|
|
29604
29631
|
|
|
29632
|
+
function buildNetworkSnapshot$9$1(luvio, resourceParams, options) {
|
|
29633
|
+
const request = createResourceRequest$9$1(resourceParams);
|
|
29634
|
+
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
29635
|
+
const { body } = response;
|
|
29636
|
+
const key = keyBuilderFromType$f$1(luvio, body);
|
|
29637
|
+
return luvio.handleSuccessResponse(() => {
|
|
29638
|
+
let selectors;
|
|
29639
|
+
if (body.type === 'Theme') {
|
|
29640
|
+
selectors = select$C$2;
|
|
29641
|
+
luvio.storeIngest(key, ingest$h$2, body);
|
|
29642
|
+
}
|
|
29643
|
+
else if (body.type === 'Photo') {
|
|
29644
|
+
selectors = select$D$2;
|
|
29645
|
+
luvio.storeIngest(key, ingest$i$2, body);
|
|
29646
|
+
}
|
|
29647
|
+
else {
|
|
29648
|
+
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
29649
|
+
throw new Error('Unsupported avatar type');
|
|
29650
|
+
}
|
|
29651
|
+
// TODO [W-6804405]: support unions on fragments (only supported on links today)
|
|
29652
|
+
const snapshot = luvio.storeLookup({
|
|
29653
|
+
recordId: key,
|
|
29654
|
+
node: selectors(),
|
|
29655
|
+
variables: {},
|
|
29656
|
+
});
|
|
29657
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
29658
|
+
}, () => {
|
|
29659
|
+
const cache = new StoreKeyMap();
|
|
29660
|
+
getTypeCacheKeys$n$2(cache, luvio, body);
|
|
29661
|
+
return cache;
|
|
29662
|
+
});
|
|
29663
|
+
}, (err) => {
|
|
29664
|
+
deepFreeze$1(err);
|
|
29665
|
+
throw err;
|
|
29666
|
+
});
|
|
29667
|
+
}
|
|
29605
29668
|
const factory$8$1 = (luvio) => {
|
|
29606
|
-
return (untrustedConfig) => {
|
|
29669
|
+
return (untrustedConfig, requestContext) => {
|
|
29607
29670
|
const config = validateAdapterConfig$7$1(untrustedConfig, updateRecordAvatar_ConfigPropertyNames);
|
|
29608
29671
|
if (config === null) {
|
|
29609
29672
|
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
@@ -29621,40 +29684,7 @@
|
|
|
29621
29684
|
actionType: config.actionType,
|
|
29622
29685
|
},
|
|
29623
29686
|
};
|
|
29624
|
-
|
|
29625
|
-
return luvio.dispatchResourceRequest(request).then((response) => {
|
|
29626
|
-
const { body } = response;
|
|
29627
|
-
const key = keyBuilderFromType$f$1(luvio, body);
|
|
29628
|
-
return luvio.handleSuccessResponse(() => {
|
|
29629
|
-
let selectors;
|
|
29630
|
-
if (body.type === 'Theme') {
|
|
29631
|
-
selectors = select$C$2;
|
|
29632
|
-
luvio.storeIngest(key, ingest$h$2, body);
|
|
29633
|
-
}
|
|
29634
|
-
else if (body.type === 'Photo') {
|
|
29635
|
-
selectors = select$D$2;
|
|
29636
|
-
luvio.storeIngest(key, ingest$i$2, body);
|
|
29637
|
-
}
|
|
29638
|
-
else {
|
|
29639
|
-
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
29640
|
-
throw new Error('Unsupported avatar type');
|
|
29641
|
-
}
|
|
29642
|
-
// TODO [W-6804405]: support unions on fragments (only supported on links today)
|
|
29643
|
-
const snapshot = luvio.storeLookup({
|
|
29644
|
-
recordId: key,
|
|
29645
|
-
node: selectors(),
|
|
29646
|
-
variables: {},
|
|
29647
|
-
});
|
|
29648
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
29649
|
-
}, () => {
|
|
29650
|
-
const cache = new StoreKeyMap();
|
|
29651
|
-
getTypeCacheKeys$n$2(cache, luvio, body);
|
|
29652
|
-
return cache;
|
|
29653
|
-
});
|
|
29654
|
-
}, (err) => {
|
|
29655
|
-
deepFreeze$1(err);
|
|
29656
|
-
throw err;
|
|
29657
|
-
});
|
|
29687
|
+
return buildNetworkSnapshot$9$1(luvio, resourceParams, createDispatchResourceRequestContext$2(requestContext));
|
|
29658
29688
|
};
|
|
29659
29689
|
};
|
|
29660
29690
|
|
|
@@ -29987,10 +30017,10 @@
|
|
|
29987
30017
|
function buildSnapshotRefresh$1$1(luvio, context, config) {
|
|
29988
30018
|
return {
|
|
29989
30019
|
config,
|
|
29990
|
-
resolve: () => buildNetworkSnapshot$
|
|
30020
|
+
resolve: () => buildNetworkSnapshot$8$1(luvio, context, config),
|
|
29991
30021
|
};
|
|
29992
30022
|
}
|
|
29993
|
-
function buildNetworkSnapshot$
|
|
30023
|
+
function buildNetworkSnapshot$8$1(luvio, context, config, options) {
|
|
29994
30024
|
const params = createResourceParams$7$1(config);
|
|
29995
30025
|
const request = createResourceRequest$8$1(params);
|
|
29996
30026
|
const key = keyBuilder$7$2(luvio, params);
|
|
@@ -30074,7 +30104,7 @@
|
|
|
30074
30104
|
priority: networkPriority,
|
|
30075
30105
|
};
|
|
30076
30106
|
}
|
|
30077
|
-
return buildNetworkSnapshot$
|
|
30107
|
+
return buildNetworkSnapshot$8$1(luvio, adapterContext, config, dispatchOptions);
|
|
30078
30108
|
}
|
|
30079
30109
|
const factory$7$1 = (luvio) => {
|
|
30080
30110
|
return luvio.withContext(function UiApi__getRecordCreateDefaults(untrusted, adapterContext, requestContext) {
|
|
@@ -30518,7 +30548,7 @@
|
|
|
30518
30548
|
}
|
|
30519
30549
|
return contextValue;
|
|
30520
30550
|
}
|
|
30521
|
-
const buildNetworkSnapshot$
|
|
30551
|
+
const buildNetworkSnapshot$7$1 = (luvio, context, config, options) => {
|
|
30522
30552
|
const resourceParams = createResourceParams$6$1(config);
|
|
30523
30553
|
const recordTypeId = getRecordTypeId$1$1(config, context);
|
|
30524
30554
|
const { recordId } = config;
|
|
@@ -30576,7 +30606,7 @@
|
|
|
30576
30606
|
});
|
|
30577
30607
|
const errorSnapshot = luvio.errorSnapshot(response, {
|
|
30578
30608
|
config,
|
|
30579
|
-
resolve: () => buildNetworkSnapshot$
|
|
30609
|
+
resolve: () => buildNetworkSnapshot$7$1(luvio, context, config, snapshotRefreshOptions$2),
|
|
30580
30610
|
});
|
|
30581
30611
|
luvio.storeIngestError(key, errorSnapshot, RECORD_TEMPLATE_CLONE_ERROR_STORE_METADATA_PARAMS$1);
|
|
30582
30612
|
return Promise.resolve(errorSnapshot);
|
|
@@ -30596,7 +30626,7 @@
|
|
|
30596
30626
|
};
|
|
30597
30627
|
return luvio.storeLookup(selector, {
|
|
30598
30628
|
config,
|
|
30599
|
-
resolve: () => buildNetworkSnapshot$
|
|
30629
|
+
resolve: () => buildNetworkSnapshot$7$1(luvio, context, config, snapshotRefreshOptions$2),
|
|
30600
30630
|
});
|
|
30601
30631
|
};
|
|
30602
30632
|
function buildNetworkSnapshotCachePolicy$1$2(context, coercedAdapterRequestContext) {
|
|
@@ -30614,7 +30644,7 @@
|
|
|
30614
30644
|
priority: networkPriority,
|
|
30615
30645
|
};
|
|
30616
30646
|
}
|
|
30617
|
-
return buildNetworkSnapshot$
|
|
30647
|
+
return buildNetworkSnapshot$7$1(luvio, adapterContext, config, dispatchOptions);
|
|
30618
30648
|
}
|
|
30619
30649
|
function buildCachedSnapshotCachePolicy$1$2(context, storeLookup) {
|
|
30620
30650
|
const { adapterContext, config, luvio, recordTypeId } = context;
|
|
@@ -30634,7 +30664,7 @@
|
|
|
30634
30664
|
};
|
|
30635
30665
|
return storeLookup(selector, {
|
|
30636
30666
|
config,
|
|
30637
|
-
resolve: () => buildNetworkSnapshot$
|
|
30667
|
+
resolve: () => buildNetworkSnapshot$7$1(luvio, adapterContext, updatedConfig, snapshotRefreshOptions$2),
|
|
30638
30668
|
});
|
|
30639
30669
|
}
|
|
30640
30670
|
const factory$6$1 = (luvio) => luvio.withContext(function getRecordTemplateClone_ContextWrapper(untrustedConfig, adapterContext, requestContext) {
|
|
@@ -31034,7 +31064,7 @@
|
|
|
31034
31064
|
function buildSnapshotRefresh$6(luvio, context, config) {
|
|
31035
31065
|
return {
|
|
31036
31066
|
config,
|
|
31037
|
-
resolve: () => buildNetworkSnapshot$
|
|
31067
|
+
resolve: () => buildNetworkSnapshot$6$1(luvio, context, config, snapshotRefreshOptions$2),
|
|
31038
31068
|
};
|
|
31039
31069
|
}
|
|
31040
31070
|
function buildRecordTypeIdContextKey$1(objectApiName) {
|
|
@@ -31110,7 +31140,7 @@
|
|
|
31110
31140
|
const snapshot = ingestError$N(luvio, resourceParams, error, buildSnapshotRefresh$6(luvio, context, config));
|
|
31111
31141
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
31112
31142
|
}
|
|
31113
|
-
function buildNetworkSnapshot$
|
|
31143
|
+
function buildNetworkSnapshot$6$1(luvio, context, config, options) {
|
|
31114
31144
|
const resourceParams = createResourceParams$5$1(config);
|
|
31115
31145
|
const request = prepareRequest$8(luvio, context, config);
|
|
31116
31146
|
return luvio
|
|
@@ -31153,7 +31183,7 @@
|
|
|
31153
31183
|
priority: networkPriority,
|
|
31154
31184
|
};
|
|
31155
31185
|
}
|
|
31156
|
-
return buildNetworkSnapshot$
|
|
31186
|
+
return buildNetworkSnapshot$6$1(luvio, adapterContext, config, dispatchOptions);
|
|
31157
31187
|
};
|
|
31158
31188
|
const buildCachedSnapshotCachePolicy$R = (context, storeLookup) => {
|
|
31159
31189
|
const { adapterContext, config, luvio, recordTypeId } = context;
|
|
@@ -31242,7 +31272,7 @@
|
|
|
31242
31272
|
});
|
|
31243
31273
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
31244
31274
|
}
|
|
31245
|
-
function buildNetworkSnapshot$
|
|
31275
|
+
function buildNetworkSnapshot$5$1(luvio, config, options) {
|
|
31246
31276
|
const resourceParams = createResourceParams$4$1(config);
|
|
31247
31277
|
const request = createResourceRequest$5$1(resourceParams);
|
|
31248
31278
|
const fieldTrie = BLANK_RECORD_FIELDS_TRIE$1;
|
|
@@ -31252,7 +31282,7 @@
|
|
|
31252
31282
|
serverRequestCount: 1,
|
|
31253
31283
|
};
|
|
31254
31284
|
const recordIngest = createRecordIngest$1(fieldTrie, optionalFieldTrie, conflictMap);
|
|
31255
|
-
return luvio.dispatchResourceRequest(request).then((response) => {
|
|
31285
|
+
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
31256
31286
|
return luvio.handleSuccessResponse(() => onResponseSuccess(luvio, response, recordIngest, conflictMap), () => {
|
|
31257
31287
|
const cache = new StoreKeyMap();
|
|
31258
31288
|
getResponseCacheKeys$3$1(cache, luvio, resourceParams, response.body);
|
|
@@ -31268,13 +31298,13 @@
|
|
|
31268
31298
|
return createResourceRequest$5$1(resourceParams);
|
|
31269
31299
|
}
|
|
31270
31300
|
const factory$4$1 = (luvio) => {
|
|
31271
|
-
return function (untrustedConfig) {
|
|
31301
|
+
return function (untrustedConfig, requestContext) {
|
|
31272
31302
|
const config = untrustedConfig;
|
|
31273
31303
|
const draftAdapter = configurationForRestAdapters$2.getDraftAwareCreateRecordAdapter();
|
|
31274
31304
|
if (draftAdapter !== undefined) {
|
|
31275
|
-
return draftAdapter(config, createResourceRequest$4$1);
|
|
31305
|
+
return draftAdapter(config, createResourceRequest$4$1, requestContext);
|
|
31276
31306
|
}
|
|
31277
|
-
return buildNetworkSnapshot$
|
|
31307
|
+
return buildNetworkSnapshot$5$1(luvio, config, createDispatchResourceRequestContext$2(requestContext));
|
|
31278
31308
|
};
|
|
31279
31309
|
};
|
|
31280
31310
|
|
|
@@ -31331,7 +31361,7 @@
|
|
|
31331
31361
|
}
|
|
31332
31362
|
return config;
|
|
31333
31363
|
}
|
|
31334
|
-
function buildNetworkSnapshot$
|
|
31364
|
+
function buildNetworkSnapshot$4$1(luvio, config, options) {
|
|
31335
31365
|
const resourceParams = createResourceParams$3$1(config);
|
|
31336
31366
|
const request = createResourceRequest$3$1(resourceParams);
|
|
31337
31367
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -31349,29 +31379,26 @@
|
|
|
31349
31379
|
throw response;
|
|
31350
31380
|
});
|
|
31351
31381
|
}
|
|
31352
|
-
const deleteRecordAdapterFactory = (luvio) => {
|
|
31353
|
-
return function UiApideleteRecord(untrustedConfig) {
|
|
31354
|
-
const config = validateAdapterConfig$3$1(untrustedConfig, deleteRecord_ConfigPropertyNames);
|
|
31355
|
-
// Invalid or incomplete config
|
|
31356
|
-
if (config === null) {
|
|
31357
|
-
throw new Error(`Invalid config for "${adapterName$1$2}"`);
|
|
31358
|
-
}
|
|
31359
|
-
return buildNetworkSnapshot$3$1(luvio, config);
|
|
31360
|
-
};
|
|
31361
|
-
};
|
|
31362
31382
|
|
|
31383
|
+
function buildNetworkSnapshot$3$1(luvio, config, options) {
|
|
31384
|
+
return buildNetworkSnapshot$4$1(luvio, config, options);
|
|
31385
|
+
}
|
|
31363
31386
|
const factory$3$1 = (luvio) => {
|
|
31364
|
-
|
|
31365
|
-
return (recordId) => {
|
|
31387
|
+
return (recordId, requestContext) => {
|
|
31366
31388
|
const config = { recordId };
|
|
31367
31389
|
const draftAdapter = configurationForRestAdapters$2.getDraftAwareDeleteRecordAdapter();
|
|
31368
31390
|
if (draftAdapter !== undefined) {
|
|
31369
31391
|
return draftAdapter(config, (config) => {
|
|
31370
31392
|
const params = createResourceParams$3$1(config);
|
|
31371
31393
|
return createResourceRequest$3$1(params);
|
|
31372
|
-
});
|
|
31394
|
+
}, requestContext);
|
|
31395
|
+
}
|
|
31396
|
+
const validatedConfig = validateAdapterConfig$3$1(config, deleteRecord_ConfigPropertyNames);
|
|
31397
|
+
if (validatedConfig === null) {
|
|
31398
|
+
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
31399
|
+
throw new Error('Invalid config for "deleteRecord"');
|
|
31373
31400
|
}
|
|
31374
|
-
return
|
|
31401
|
+
return buildNetworkSnapshot$3$1(luvio, validatedConfig, createDispatchResourceRequestContext$2(requestContext));
|
|
31375
31402
|
};
|
|
31376
31403
|
};
|
|
31377
31404
|
|
|
@@ -31820,7 +31847,7 @@
|
|
|
31820
31847
|
});
|
|
31821
31848
|
return snapshot;
|
|
31822
31849
|
}
|
|
31823
|
-
function buildNetworkSnapshot$
|
|
31850
|
+
function buildNetworkSnapshot$1b(luvio, config, options) {
|
|
31824
31851
|
const resourceParams = createResourceParams$13(config);
|
|
31825
31852
|
const request = createResourceRequest$1e(resourceParams);
|
|
31826
31853
|
return luvio
|
|
@@ -31893,7 +31920,7 @@
|
|
|
31893
31920
|
return createResourceRequest$1e(resourceParams);
|
|
31894
31921
|
}, requestContext);
|
|
31895
31922
|
}
|
|
31896
|
-
return buildNetworkSnapshot$
|
|
31923
|
+
return buildNetworkSnapshot$1b(luvio, config, createDispatchResourceRequestContext$1(requestContext));
|
|
31897
31924
|
};
|
|
31898
31925
|
};
|
|
31899
31926
|
function createDispatchResourceRequestContext$1(requestContext) {
|
|
@@ -32544,9 +32571,9 @@
|
|
|
32544
32571
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
32545
32572
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
32546
32573
|
});
|
|
32547
|
-
// version: 1.
|
|
32574
|
+
// version: 1.445.0-6d38a08808
|
|
32548
32575
|
|
|
32549
|
-
var
|
|
32576
|
+
var draftQueueMaxRetryAttemptsGate = {
|
|
32550
32577
|
isOpen: function (e) {
|
|
32551
32578
|
return e.fallback;
|
|
32552
32579
|
},
|
|
@@ -32598,6 +32625,15 @@
|
|
|
32598
32625
|
return mockInstrumentation;
|
|
32599
32626
|
};
|
|
32600
32627
|
|
|
32628
|
+
var allowUpdatesForNonCachedRecords = {
|
|
32629
|
+
isOpen: function (e) {
|
|
32630
|
+
return e.fallback;
|
|
32631
|
+
},
|
|
32632
|
+
hasError: function () {
|
|
32633
|
+
return !0;
|
|
32634
|
+
},
|
|
32635
|
+
};
|
|
32636
|
+
|
|
32601
32637
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
32602
32638
|
|
|
32603
32639
|
/**
|
|
@@ -44215,7 +44251,9 @@
|
|
|
44215
44251
|
const err$3 = (err2) => new Err$3(err2);
|
|
44216
44252
|
function resolvedPromiseLike$4(result) {
|
|
44217
44253
|
if (isPromiseLike$4(result)) {
|
|
44218
|
-
return result.then(
|
|
44254
|
+
return result.then(
|
|
44255
|
+
(nextResult) => nextResult
|
|
44256
|
+
);
|
|
44219
44257
|
}
|
|
44220
44258
|
return {
|
|
44221
44259
|
then: (onFulfilled, _onRejected) => {
|
|
@@ -44232,7 +44270,9 @@
|
|
|
44232
44270
|
}
|
|
44233
44271
|
function rejectedPromiseLike$4(reason) {
|
|
44234
44272
|
if (isPromiseLike$4(reason)) {
|
|
44235
|
-
return reason.then(
|
|
44273
|
+
return reason.then(
|
|
44274
|
+
(nextResult) => nextResult
|
|
44275
|
+
);
|
|
44236
44276
|
}
|
|
44237
44277
|
return {
|
|
44238
44278
|
then: (_onFulfilled, onRejected) => {
|
|
@@ -44255,10 +44295,10 @@
|
|
|
44255
44295
|
let settled = void 0;
|
|
44256
44296
|
if (isPromiseLike$4(value)) {
|
|
44257
44297
|
value.then(
|
|
44258
|
-
(
|
|
44298
|
+
() => {
|
|
44259
44299
|
settled = value;
|
|
44260
44300
|
},
|
|
44261
|
-
(
|
|
44301
|
+
() => {
|
|
44262
44302
|
settled = value;
|
|
44263
44303
|
}
|
|
44264
44304
|
);
|
|
@@ -44310,9 +44350,10 @@
|
|
|
44310
44350
|
}
|
|
44311
44351
|
return x === y;
|
|
44312
44352
|
}
|
|
44313
|
-
function stableJSONStringify$
|
|
44314
|
-
|
|
44315
|
-
|
|
44353
|
+
function stableJSONStringify$2(node) {
|
|
44354
|
+
const withToJSON = node;
|
|
44355
|
+
if (withToJSON && typeof withToJSON.toJSON === "function") {
|
|
44356
|
+
node = withToJSON.toJSON();
|
|
44316
44357
|
}
|
|
44317
44358
|
if (node === void 0) {
|
|
44318
44359
|
return;
|
|
@@ -44331,18 +44372,19 @@
|
|
|
44331
44372
|
if (i) {
|
|
44332
44373
|
out += ",";
|
|
44333
44374
|
}
|
|
44334
|
-
out += stableJSONStringify$
|
|
44375
|
+
out += stableJSONStringify$2(node[i]) || "null";
|
|
44335
44376
|
}
|
|
44336
44377
|
return out + "]";
|
|
44337
44378
|
}
|
|
44338
44379
|
if (node === null) {
|
|
44339
44380
|
return "null";
|
|
44340
44381
|
}
|
|
44341
|
-
const
|
|
44382
|
+
const record = node;
|
|
44383
|
+
const objKeys = keys$8(record).sort();
|
|
44342
44384
|
out = "";
|
|
44343
44385
|
for (i = 0; i < objKeys.length; i++) {
|
|
44344
44386
|
const key = objKeys[i];
|
|
44345
|
-
const value = stableJSONStringify$
|
|
44387
|
+
const value = stableJSONStringify$2(record[key]);
|
|
44346
44388
|
if (!value) {
|
|
44347
44389
|
continue;
|
|
44348
44390
|
}
|
|
@@ -44445,7 +44487,7 @@
|
|
|
44445
44487
|
};
|
|
44446
44488
|
}
|
|
44447
44489
|
buildKey(params) {
|
|
44448
|
-
return `${this.namespace}::${this.typeName}(${stableJSONStringify$
|
|
44490
|
+
return `${this.namespace}::${this.typeName}(${stableJSONStringify$2(params)})`;
|
|
44449
44491
|
}
|
|
44450
44492
|
write(cache, input) {
|
|
44451
44493
|
const key = this.buildKey(this.buildKeyParams(input));
|
|
@@ -44943,7 +44985,7 @@
|
|
|
44943
44985
|
let path = "#";
|
|
44944
44986
|
for (const key of keys) {
|
|
44945
44987
|
path = `${path}/${key}`;
|
|
44946
|
-
if (current[key] === void 0) {
|
|
44988
|
+
if (typeof current !== "object" || current === null || current[key] === void 0) {
|
|
44947
44989
|
throw new InvalidRefError$1(
|
|
44948
44990
|
`Invalid $ref value '${ref}'. Cannot find target schema at '${path}'`
|
|
44949
44991
|
);
|
|
@@ -48172,6 +48214,13 @@
|
|
|
48172
48214
|
}
|
|
48173
48215
|
|
|
48174
48216
|
const DRAFT_SEGMENT = 'DRAFT';
|
|
48217
|
+
/**
|
|
48218
|
+
* Metadata key under which an action's upload retry-attempt count is persisted.
|
|
48219
|
+
* Lives in the action's durable `metadata` bag so the count survives app restarts
|
|
48220
|
+
* (the in-memory backoff interval resets on every startQueue()). Written by the
|
|
48221
|
+
* action handler on each retry and cleared when an action is manually retried.
|
|
48222
|
+
*/
|
|
48223
|
+
const DRAFT_ACTION_RETRY_COUNT_METADATA_KEY = 'retryCount';
|
|
48175
48224
|
class DurableDraftQueue {
|
|
48176
48225
|
getHandler(id) {
|
|
48177
48226
|
const handler = this.handlers[id];
|
|
@@ -48540,10 +48589,14 @@
|
|
|
48540
48589
|
if (!isDraftError(target)) {
|
|
48541
48590
|
throw Error(`Action ${actionId} is not in Error state`);
|
|
48542
48591
|
}
|
|
48592
|
+
// A manual retry is a fresh start: clear the persisted upload retry-attempt
|
|
48593
|
+
// count so the action doesn't immediately re-cap after a single failure.
|
|
48594
|
+
const { [DRAFT_ACTION_RETRY_COUNT_METADATA_KEY]: _retryCount, ...metadataWithoutRetryCount } = target.metadata || {};
|
|
48543
48595
|
let pendingAction = {
|
|
48544
48596
|
...target,
|
|
48545
48597
|
status: DraftActionStatus.Pending,
|
|
48546
48598
|
error: undefined,
|
|
48599
|
+
metadata: metadataWithoutRetryCount,
|
|
48547
48600
|
};
|
|
48548
48601
|
await this.draftStore.writeAction(pendingAction);
|
|
48549
48602
|
await this.notifyChangedListeners({
|
|
@@ -79946,6 +79999,322 @@
|
|
|
79946
79999
|
return create$3(adapterSpecificEnvironments, {});
|
|
79947
80000
|
}
|
|
79948
80001
|
|
|
80002
|
+
/**
|
|
80003
|
+
* This function takes an unknown error and normalizes it to an Error object
|
|
80004
|
+
*/
|
|
80005
|
+
function normalizeError$1(error) {
|
|
80006
|
+
if (typeof error === 'object' && error instanceof Error) {
|
|
80007
|
+
return error;
|
|
80008
|
+
}
|
|
80009
|
+
else if (typeof error === 'string') {
|
|
80010
|
+
return new Error(error);
|
|
80011
|
+
}
|
|
80012
|
+
return new Error(stringify$5(error));
|
|
80013
|
+
}
|
|
80014
|
+
/**
|
|
80015
|
+
* Maximum number of times an action's upload will be retried before the action is
|
|
80016
|
+
* transitioned to Error and surfaced to the consumer. Caps the otherwise-unbounded
|
|
80017
|
+
* retry loop that can wedge the single-worker draft queue when an upload fails
|
|
80018
|
+
* deterministically on every dispatch. Only enforced when the
|
|
80019
|
+
* `lmr.draft-queue-max-retry-attempts` gate is open.
|
|
80020
|
+
*/
|
|
80021
|
+
const MAX_RETRY_ATTEMPTS = 5;
|
|
80022
|
+
const MAX_RETRY_ERROR_CODE = 'MAX_RETRY_ATTEMPTS_EXCEEDED';
|
|
80023
|
+
function isFetchResponse(failure) {
|
|
80024
|
+
// The union is exactly FetchResponse | Error, so "not an Error" is the FetchResponse.
|
|
80025
|
+
// This is safer than duck-typing on status/ok: a custom Error subclass that happens to
|
|
80026
|
+
// carry those properties would be misclassified by a structural check.
|
|
80027
|
+
return !(failure instanceof Error);
|
|
80028
|
+
}
|
|
80029
|
+
/**
|
|
80030
|
+
* Builds the FetchResponse-shaped error attached to an action that has exhausted its
|
|
80031
|
+
* upload retries. Shaped like a real network error response (status/statusText/ok/
|
|
80032
|
+
* headers/body) so downstream consumers (DraftManager, queue instrumentation) that
|
|
80033
|
+
* read `action.error.status`/`.body`/etc. behave consistently with a server error.
|
|
80034
|
+
*
|
|
80035
|
+
* The failure that caused the final attempt — a non-ok response (HTTP path) or a thrown
|
|
80036
|
+
* error (catch path) — is folded into the body so the surfaced error says WHAT failed,
|
|
80037
|
+
* not merely that the attempt cap was reached.
|
|
80038
|
+
*/
|
|
80039
|
+
function buildMaxRetryError(lastFailure) {
|
|
80040
|
+
const capMessage = `Draft action exceeded ${MAX_RETRY_ATTEMPTS} upload retry attempts`;
|
|
80041
|
+
if (isFetchResponse(lastFailure)) {
|
|
80042
|
+
// Preserve the server's own error detail (status + body) so the surfaced error
|
|
80043
|
+
// carries the last response that caused us to give up retrying.
|
|
80044
|
+
return {
|
|
80045
|
+
status: HttpStatusCode$2.ServerError,
|
|
80046
|
+
statusText: capMessage,
|
|
80047
|
+
ok: false,
|
|
80048
|
+
headers: {},
|
|
80049
|
+
body: {
|
|
80050
|
+
errorCode: MAX_RETRY_ERROR_CODE,
|
|
80051
|
+
message: `${capMessage}. Last response: status=${lastFailure.status} ${lastFailure.statusText}`,
|
|
80052
|
+
lastResponseStatus: lastFailure.status,
|
|
80053
|
+
lastResponseBody: lastFailure.body,
|
|
80054
|
+
},
|
|
80055
|
+
};
|
|
80056
|
+
}
|
|
80057
|
+
return {
|
|
80058
|
+
status: HttpStatusCode$2.ServerError,
|
|
80059
|
+
statusText: capMessage,
|
|
80060
|
+
ok: false,
|
|
80061
|
+
headers: {},
|
|
80062
|
+
body: {
|
|
80063
|
+
errorCode: MAX_RETRY_ERROR_CODE,
|
|
80064
|
+
message: `${capMessage}. Last error: ${lastFailure.name}: ${lastFailure.message}`,
|
|
80065
|
+
lastErrorName: lastFailure.name,
|
|
80066
|
+
lastErrorMessage: lastFailure.message,
|
|
80067
|
+
},
|
|
80068
|
+
};
|
|
80069
|
+
}
|
|
80070
|
+
|
|
80071
|
+
function attachObserversToAdapterRequestContext(observers, adapterRequestContext) {
|
|
80072
|
+
if (adapterRequestContext === undefined) {
|
|
80073
|
+
return { eventObservers: observers };
|
|
80074
|
+
}
|
|
80075
|
+
if (adapterRequestContext.eventObservers === undefined) {
|
|
80076
|
+
return { ...adapterRequestContext, eventObservers: observers };
|
|
80077
|
+
}
|
|
80078
|
+
return {
|
|
80079
|
+
...adapterRequestContext,
|
|
80080
|
+
eventObservers: adapterRequestContext.eventObservers.concat(observers),
|
|
80081
|
+
};
|
|
80082
|
+
}
|
|
80083
|
+
/**
|
|
80084
|
+
* Use this method to sanitize the unknown error object when
|
|
80085
|
+
* we are unsure of the type of the error thrown
|
|
80086
|
+
*
|
|
80087
|
+
* @param err Unknown object to sanitize
|
|
80088
|
+
* @returns an instance of error
|
|
80089
|
+
*/
|
|
80090
|
+
function normalizeError$2(err) {
|
|
80091
|
+
if (err instanceof Error) {
|
|
80092
|
+
return err;
|
|
80093
|
+
}
|
|
80094
|
+
else if (typeof err === 'string') {
|
|
80095
|
+
return new Error(err);
|
|
80096
|
+
}
|
|
80097
|
+
return new Error(stringify$5(err));
|
|
80098
|
+
}
|
|
80099
|
+
// metrics
|
|
80100
|
+
/** GraphQL */
|
|
80101
|
+
const GRAPHQL_EVAL_ERROR = 'gql-eval-error';
|
|
80102
|
+
const GRAPHQL_EVAL_DB_READ_DURATION = 'gql-eval-db-read-duration';
|
|
80103
|
+
const GRAPHQL_EVAL_ROOT_QUERY_COUNT = 'gql-eval-root-query-count';
|
|
80104
|
+
const GRAPHQL_EVAL_TOTAL_QUERY_COUNT = 'gql-eval-total-query-count';
|
|
80105
|
+
const GRAPHQL_EVAL_MAX_CHILD_RELATIONSHIPS_COUNT = 'gql-eval-max-child-count';
|
|
80106
|
+
const GRAPHQL_EVAL_QUERY_RECORD_COUNT = 'gql-eval-query-record-count';
|
|
80107
|
+
const GRAPHQL_SNAPSHOT_REFRESH_UNDEFINED = 'gql-snapshot-refresh-undefined';
|
|
80108
|
+
/** Draft Queue */
|
|
80109
|
+
const DRAFT_QUEUE_STATE_STARTED = 'draft-queue-state-started';
|
|
80110
|
+
const DRAFT_QUEUE_STATE_ERROR = 'draft-queue-state-error';
|
|
80111
|
+
const DRAFT_QUEUE_STATE_WAITING = 'draft-queue-state-waiting';
|
|
80112
|
+
const DRAFT_QUEUE_STATE_STOPPED = 'draft-queue-state-stopped';
|
|
80113
|
+
const DRAFT_QUEUE_ACTION_ADDED = 'draft-queue-action-added';
|
|
80114
|
+
const DRAFT_QUEUE_ACTION_UPLOADING = 'draft-queue-action-uploading';
|
|
80115
|
+
const DRAFT_QUEUE_ACTION_COMPLETED = 'draft-queue-action-completed';
|
|
80116
|
+
const DRAFT_QUEUE_ACTION_DELETED = 'draft-queue-action-deleted';
|
|
80117
|
+
const DRAFT_QUEUE_ACTION_UPDATED = 'draft-queue-action-updated';
|
|
80118
|
+
const DRAFT_QUEUE_ACTION_FAILED = 'draft-queue-action-failed';
|
|
80119
|
+
const DRAFT_QUEUE_ACTION_UPLOAD_ERROR = 'draft-queue-action-upload-error';
|
|
80120
|
+
const DRAFT_QUEUE_TOTAL_MERGE_ACTIONS_CALLS = 'draft-queue-total-mergeActions-calls';
|
|
80121
|
+
/** Content Document */
|
|
80122
|
+
const CREATE_CONTENT_DOCUMENT_AND_VERSION_TOTAL_SYNTHESIZE_CALLS = 'content-document-version-total-synthesize-calls';
|
|
80123
|
+
const CREATE_CONTENT_DOCUMENT_AND_VERSION_DRAFT_SYNTHESIZE_ERROR = 'create-content-document-version-draft-synthesize-error';
|
|
80124
|
+
/** Priming */
|
|
80125
|
+
const PRIMING_TOTAL_SESSION_COUNT = 'priming-total-session-count';
|
|
80126
|
+
const PRIMING_TOTAL_ERROR_COUNT = 'priming-total-error-count';
|
|
80127
|
+
const PRIMING_TOTAL_PRIMED_COUNT = 'priming-total-primed-count';
|
|
80128
|
+
const PRIMING_TOTAL_CONFLICT_COUNT = 'priming-total-conflict-count';
|
|
80129
|
+
// logs
|
|
80130
|
+
const GRAPHQL_QUERY_PARSE_ERROR = 'gql-query-parse-error';
|
|
80131
|
+
const GRAPHQL_SQL_EVAL_PRECONDITION_ERROR = 'gql-sql-pre-eval-error';
|
|
80132
|
+
const GRAPHQL_CREATE_SNAPSHOT_ERROR = 'gql-create-snapshot-error';
|
|
80133
|
+
const DRAFT_AWARE_CREATE_CONTENT_DOCUMENT_AND_VERSION_ERROR = 'draft-aware-create-content-document-and-version-error';
|
|
80134
|
+
/** Garbage Collection */
|
|
80135
|
+
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_COUNT = 'garbage-collection-aggressive-trim-count';
|
|
80136
|
+
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_RECORDS_TRIMMED = 'garbage-collection-aggressive-trim-records-trimmed';
|
|
80137
|
+
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_TOTAL_RECORDS_BEFORE_TRIM = 'garbage-collection-aggressive-trim-total-records-before-trim';
|
|
80138
|
+
const ldsMobileInstrumentation$2 = getInstrumentation();
|
|
80139
|
+
const nimbusLogger = typeof __nimbus !== 'undefined' &&
|
|
80140
|
+
__nimbus.plugins !== undefined &&
|
|
80141
|
+
__nimbus.plugins.JSLoggerPlugin !== undefined
|
|
80142
|
+
? __nimbus.plugins.JSLoggerPlugin
|
|
80143
|
+
: undefined;
|
|
80144
|
+
function reportGraphqlQueryParseError(err) {
|
|
80145
|
+
const error = normalizeError$2(err);
|
|
80146
|
+
const errorCode = GRAPHQL_QUERY_PARSE_ERROR;
|
|
80147
|
+
// Metric
|
|
80148
|
+
reportGraphqlAdapterError(errorCode);
|
|
80149
|
+
// Log
|
|
80150
|
+
ldsMobileInstrumentation$2.error(error, errorCode);
|
|
80151
|
+
}
|
|
80152
|
+
function reportGraphqlSqlEvalPreconditionError(err) {
|
|
80153
|
+
const error = normalizeError$2(err);
|
|
80154
|
+
const errorCode = GRAPHQL_SQL_EVAL_PRECONDITION_ERROR;
|
|
80155
|
+
// Metric
|
|
80156
|
+
reportGraphqlAdapterError(errorCode);
|
|
80157
|
+
// Log
|
|
80158
|
+
ldsMobileInstrumentation$2.error(error, errorCode);
|
|
80159
|
+
}
|
|
80160
|
+
function reportGraphqlCreateSnapshotError(err) {
|
|
80161
|
+
const error = normalizeError$2(err);
|
|
80162
|
+
const errorCode = GRAPHQL_CREATE_SNAPSHOT_ERROR;
|
|
80163
|
+
// Metric
|
|
80164
|
+
reportGraphqlAdapterError(errorCode);
|
|
80165
|
+
// Log
|
|
80166
|
+
ldsMobileInstrumentation$2.error(error, errorCode);
|
|
80167
|
+
}
|
|
80168
|
+
function reportGraphQlEvalDbReadDuration(duration) {
|
|
80169
|
+
ldsMobileInstrumentation$2.trackValue(GRAPHQL_EVAL_DB_READ_DURATION, duration);
|
|
80170
|
+
}
|
|
80171
|
+
function reportGraphqlAdapterError(errorCode) {
|
|
80172
|
+
// Increment overall count with errorCode as tag
|
|
80173
|
+
ldsMobileInstrumentation$2.incrementCounter(GRAPHQL_EVAL_ERROR, 1, true, { errorCode });
|
|
80174
|
+
}
|
|
80175
|
+
function reportGraphqlQueryInstrumentation(data) {
|
|
80176
|
+
const queryBuckets = [1, 2, 3, 4, 5, 10, 20, 50, 100];
|
|
80177
|
+
const recordBuckets = [
|
|
80178
|
+
1, 5, 10, 20, 50, 100, 1000, 2000, 5000, 10000, 50000, 100000, 1000000,
|
|
80179
|
+
];
|
|
80180
|
+
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_ROOT_QUERY_COUNT, data.rootQueryCount, queryBuckets);
|
|
80181
|
+
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_TOTAL_QUERY_COUNT, data.totalQueryCount, queryBuckets);
|
|
80182
|
+
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_MAX_CHILD_RELATIONSHIPS_COUNT, data.maxChildRelationships, queryBuckets);
|
|
80183
|
+
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_QUERY_RECORD_COUNT, data.requestedRecordCount, recordBuckets);
|
|
80184
|
+
}
|
|
80185
|
+
function incrementGraphQLRefreshUndfined() {
|
|
80186
|
+
ldsMobileInstrumentation$2.incrementCounter(GRAPHQL_SNAPSHOT_REFRESH_UNDEFINED);
|
|
80187
|
+
}
|
|
80188
|
+
function reportDraftActionEvent(state, draftCount, message) {
|
|
80189
|
+
if (nimbusLogger) {
|
|
80190
|
+
nimbusLogger.logInfo(`Draft action event: ${state}, depth: ${draftCount}${message ? `, message: ${message}` : ''}`);
|
|
80191
|
+
}
|
|
80192
|
+
switch (state) {
|
|
80193
|
+
case 'added':
|
|
80194
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_ADDED);
|
|
80195
|
+
break;
|
|
80196
|
+
case 'uploading':
|
|
80197
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_UPLOADING);
|
|
80198
|
+
break;
|
|
80199
|
+
case 'completed':
|
|
80200
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_COMPLETED);
|
|
80201
|
+
break;
|
|
80202
|
+
case 'deleted':
|
|
80203
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_DELETED);
|
|
80204
|
+
break;
|
|
80205
|
+
case 'failed':
|
|
80206
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_FAILED, 1, true);
|
|
80207
|
+
break;
|
|
80208
|
+
case 'updated':
|
|
80209
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_UPDATED);
|
|
80210
|
+
break;
|
|
80211
|
+
}
|
|
80212
|
+
}
|
|
80213
|
+
/**
|
|
80214
|
+
* Reports an exception thrown while uploading a draft action. The thrown error is
|
|
80215
|
+
* otherwise swallowed by the upload handler's retry path, leaving the failure
|
|
80216
|
+
* invisible in telemetry; this surfaces it to o11y (log + counter) so a deterministic
|
|
80217
|
+
* upload failure can be diagnosed instead of silently retried forever.
|
|
80218
|
+
*
|
|
80219
|
+
* PII: the device log line carries only the handler id, retry attempt, and the error
|
|
80220
|
+
* NAME (e.g. "TypeError") — never the free-text error message, which can embed record
|
|
80221
|
+
* ids (URL path segments) or server field-validation strings. The full normalized error
|
|
80222
|
+
* (message + stack) is handed only to `ldsMobileInstrumentation.error`, the structured
|
|
80223
|
+
* o11y error pipeline responsible for scrubbing/handling that detail. Also does NOT log
|
|
80224
|
+
* the action's targetId/tag or any request body/field values.
|
|
80225
|
+
*/
|
|
80226
|
+
function reportDraftActionUploadError(error, handlerId, attempt) {
|
|
80227
|
+
const normalized = normalizeError$2(error);
|
|
80228
|
+
if (nimbusLogger) {
|
|
80229
|
+
nimbusLogger.logError(`Draft action upload error: handler=${handlerId}, attempt=${attempt}, name=${normalized.name}`);
|
|
80230
|
+
}
|
|
80231
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_UPLOAD_ERROR, 1, true, {
|
|
80232
|
+
handlerId,
|
|
80233
|
+
});
|
|
80234
|
+
ldsMobileInstrumentation$2.error(normalized, DRAFT_QUEUE_ACTION_UPLOAD_ERROR);
|
|
80235
|
+
}
|
|
80236
|
+
function reportDraftQueueState(state, draftCount) {
|
|
80237
|
+
if (nimbusLogger) {
|
|
80238
|
+
nimbusLogger.logInfo(`Draft state changed: ${state}, depth: ${draftCount}`);
|
|
80239
|
+
}
|
|
80240
|
+
switch (state) {
|
|
80241
|
+
case 'started':
|
|
80242
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_STARTED);
|
|
80243
|
+
break;
|
|
80244
|
+
case 'error':
|
|
80245
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_ERROR, 1, true);
|
|
80246
|
+
break;
|
|
80247
|
+
case 'waiting':
|
|
80248
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_WAITING);
|
|
80249
|
+
break;
|
|
80250
|
+
case 'stopped':
|
|
80251
|
+
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_STOPPED);
|
|
80252
|
+
break;
|
|
80253
|
+
}
|
|
80254
|
+
}
|
|
80255
|
+
function reportDraftAwareContentDocumentVersionSynthesizeError(err) {
|
|
80256
|
+
let error;
|
|
80257
|
+
if (err.body !== undefined) {
|
|
80258
|
+
error = err.body;
|
|
80259
|
+
}
|
|
80260
|
+
else {
|
|
80261
|
+
error = normalizeError$2(err);
|
|
80262
|
+
}
|
|
80263
|
+
const errorCode = DRAFT_AWARE_CREATE_CONTENT_DOCUMENT_AND_VERSION_ERROR;
|
|
80264
|
+
const errorType = error.errorType;
|
|
80265
|
+
const tags = {
|
|
80266
|
+
errorCode,
|
|
80267
|
+
};
|
|
80268
|
+
if (errorType !== undefined) {
|
|
80269
|
+
tags.errorType = errorType;
|
|
80270
|
+
}
|
|
80271
|
+
// Metric
|
|
80272
|
+
ldsMobileInstrumentation$2.incrementCounter(CREATE_CONTENT_DOCUMENT_AND_VERSION_DRAFT_SYNTHESIZE_ERROR, 1, true, tags);
|
|
80273
|
+
// Log
|
|
80274
|
+
ldsMobileInstrumentation$2.error(error, errorCode);
|
|
80275
|
+
}
|
|
80276
|
+
function reportDraftAwareContentVersionSynthesizeCalls(mimeType) {
|
|
80277
|
+
ldsMobileInstrumentation$2.incrementCounter(CREATE_CONTENT_DOCUMENT_AND_VERSION_TOTAL_SYNTHESIZE_CALLS, 1, undefined, { mimeType });
|
|
80278
|
+
}
|
|
80279
|
+
/** Priming */
|
|
80280
|
+
function reportPrimingSessionCreated() {
|
|
80281
|
+
ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_SESSION_COUNT, 1, undefined, {});
|
|
80282
|
+
}
|
|
80283
|
+
function reportPrimingError(errorType, recordCount) {
|
|
80284
|
+
ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_ERROR_COUNT, recordCount, undefined, {
|
|
80285
|
+
errorType,
|
|
80286
|
+
});
|
|
80287
|
+
}
|
|
80288
|
+
function reportPrimingSuccess(recordCount) {
|
|
80289
|
+
ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_PRIMED_COUNT, recordCount, undefined);
|
|
80290
|
+
}
|
|
80291
|
+
function reportPrimingConflict(resolutionType, recordCount) {
|
|
80292
|
+
ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_CONFLICT_COUNT, recordCount, undefined, {
|
|
80293
|
+
resolutionType,
|
|
80294
|
+
});
|
|
80295
|
+
}
|
|
80296
|
+
/** Network */
|
|
80297
|
+
function reportChunkCandidateUrlLength(urlLength) {
|
|
80298
|
+
const buckets = [8000, 10000, 12000, 14000, 16000];
|
|
80299
|
+
ldsMobileInstrumentation$2.bucketValue('chunk-candidate-url-length-histogram', urlLength, buckets);
|
|
80300
|
+
}
|
|
80301
|
+
/** Garbage Collection */
|
|
80302
|
+
function reportAggressiveTrimTriggered(trimCount, beforeTrimRecordCount, totalRecordsTrimmed) {
|
|
80303
|
+
ldsMobileInstrumentation$2.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_COUNT, trimCount);
|
|
80304
|
+
ldsMobileInstrumentation$2.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_TOTAL_RECORDS_BEFORE_TRIM, beforeTrimRecordCount);
|
|
80305
|
+
ldsMobileInstrumentation$2.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_RECORDS_TRIMMED, totalRecordsTrimmed);
|
|
80306
|
+
}
|
|
80307
|
+
/** One Store Cache Purge */
|
|
80308
|
+
const ONESTORE_CACHE_PURGING_RECORDS_PURGED = 'onestore-cache-purging-records-purged';
|
|
80309
|
+
const ONESTORE_CACHE_PURGING_RECORDS_ERROR = 'onestore-cache-purging-records-error';
|
|
80310
|
+
function reportOneStoreRecordsPurgedFromCache(recordsPurged) {
|
|
80311
|
+
ldsMobileInstrumentation$2.trackValue(ONESTORE_CACHE_PURGING_RECORDS_PURGED, recordsPurged);
|
|
80312
|
+
}
|
|
80313
|
+
function reportOneStoreCachePurgingError(error) {
|
|
80314
|
+
const errorMessage = normalizeError$2(error);
|
|
80315
|
+
ldsMobileInstrumentation$2.error(errorMessage, ONESTORE_CACHE_PURGING_RECORDS_ERROR);
|
|
80316
|
+
}
|
|
80317
|
+
|
|
79949
80318
|
const HTTP_HEADER_RETRY_AFTER = 'Retry-After';
|
|
79950
80319
|
const HTTP_HEADER_IDEMPOTENCY_KEY = 'Idempotency-Key';
|
|
79951
80320
|
const ERROR_CODE_IDEMPOTENCY_FEATURE_NOT_ENABLED = 'IDEMPOTENCY_FEATURE_NOT_ENABLED';
|
|
@@ -80099,20 +80468,89 @@
|
|
|
80099
80468
|
shouldRetry = true;
|
|
80100
80469
|
actionDataChanged = true;
|
|
80101
80470
|
}
|
|
80102
|
-
|
|
80103
|
-
|
|
80104
|
-
|
|
80471
|
+
if (shouldRetry) {
|
|
80472
|
+
// Funnel the retry through the cap: when the gate is open this persists
|
|
80473
|
+
// the attempt count and errors out once the cap is hit; when the gate is
|
|
80474
|
+
// closed it behaves exactly as before. The non-ok response is the failure
|
|
80475
|
+
// that would otherwise be retried.
|
|
80476
|
+
await this.retryOrCap(updatedAction, response, actionErrored, retryDelayInMs, actionDataChanged);
|
|
80477
|
+
}
|
|
80478
|
+
else {
|
|
80479
|
+
await actionErrored({
|
|
80105
80480
|
...updatedAction,
|
|
80106
80481
|
error: response,
|
|
80107
80482
|
status: DraftActionStatus.Error,
|
|
80108
|
-
},
|
|
80483
|
+
}, false, retryDelayInMs, actionDataChanged);
|
|
80484
|
+
}
|
|
80109
80485
|
return ProcessActionResult.ACTION_ERRORED;
|
|
80110
80486
|
}
|
|
80111
80487
|
catch (e) {
|
|
80112
|
-
|
|
80488
|
+
// #3 (ungated): the thrown exception is otherwise swallowed here, leaving a
|
|
80489
|
+
// deterministic upload failure invisible in telemetry. Surface it to o11y
|
|
80490
|
+
// before deciding whether to retry.
|
|
80491
|
+
const error = normalizeError$1(e);
|
|
80492
|
+
const attempt = this.getUploadRetryCount(action) + 1;
|
|
80493
|
+
reportDraftActionUploadError(error, this.handlerId, attempt);
|
|
80494
|
+
await this.retryOrCap(action, error, actionErrored);
|
|
80113
80495
|
return ProcessActionResult.NETWORK_ERROR;
|
|
80114
80496
|
}
|
|
80115
80497
|
}
|
|
80498
|
+
/**
|
|
80499
|
+
* Reads the persisted upload retry-attempt count from the action's durable metadata
|
|
80500
|
+
* bag. The count lives in metadata (rather than in-memory) so it survives app
|
|
80501
|
+
* restarts and queue re-creation — the failure modes that let the unbounded retry
|
|
80502
|
+
* loop run for days.
|
|
80503
|
+
*/
|
|
80504
|
+
getUploadRetryCount(action) {
|
|
80505
|
+
const parsed = Number(action.metadata?.[DRAFT_ACTION_RETRY_COUNT_METADATA_KEY]);
|
|
80506
|
+
// Guard against a missing/corrupt persisted value: a NaN, fractional, or negative
|
|
80507
|
+
// count must never weaken the cap. Floor to a non-negative integer, defaulting to 0.
|
|
80508
|
+
if (!Number.isFinite(parsed) || parsed < 0) {
|
|
80509
|
+
return 0;
|
|
80510
|
+
}
|
|
80511
|
+
return Math.floor(parsed);
|
|
80512
|
+
}
|
|
80513
|
+
/**
|
|
80514
|
+
* Enforces the upload retry-attempt cap around the queue's `actionErrored` callback.
|
|
80515
|
+
* Both retry paths — a retryable HTTP error and a thrown exception — funnel through
|
|
80516
|
+
* here.
|
|
80517
|
+
*
|
|
80518
|
+
* The entire cap behavior is gated behind `lmr.draft-queue-max-retry-attempts`. When
|
|
80519
|
+
* the gate is CLOSED this is a transparent passthrough: it issues the same
|
|
80520
|
+
* `actionErrored(action, true, ...)` retry the queue made before this change, and
|
|
80521
|
+
* writes no extra metadata. When the gate is OPEN it persists an incremented attempt
|
|
80522
|
+
* count to the action's durable metadata and, once the action has failed
|
|
80523
|
+
* {@link MAX_RETRY_ATTEMPTS} times, transitions it to Error (carrying a
|
|
80524
|
+
* FetchResponse-shaped error that names the failure that exhausted the retries)
|
|
80525
|
+
* instead of scheduling yet another retry.
|
|
80526
|
+
*/
|
|
80527
|
+
async retryOrCap(action, lastFailure, actionErrored, retryDelayInMs, actionDataChanged) {
|
|
80528
|
+
if (!draftQueueMaxRetryAttemptsGate.isOpen({ fallback: false })) {
|
|
80529
|
+
// Gate closed: preserve the pre-existing unbounded-retry behavior exactly.
|
|
80530
|
+
await actionErrored(action, true, retryDelayInMs, actionDataChanged);
|
|
80531
|
+
return;
|
|
80532
|
+
}
|
|
80533
|
+
const attempt = this.getUploadRetryCount(action) + 1;
|
|
80534
|
+
if (attempt >= MAX_RETRY_ATTEMPTS) {
|
|
80535
|
+
await actionErrored({
|
|
80536
|
+
...action,
|
|
80537
|
+
error: buildMaxRetryError(lastFailure),
|
|
80538
|
+
status: DraftActionStatus.Error,
|
|
80539
|
+
}, false);
|
|
80540
|
+
return;
|
|
80541
|
+
}
|
|
80542
|
+
// Persist the incremented attempt count so it survives restarts. Forcing
|
|
80543
|
+
// actionDataChanged ensures the queue writes the updated metadata before the
|
|
80544
|
+
// action is rescheduled for retry.
|
|
80545
|
+
const retryingAction = {
|
|
80546
|
+
...action,
|
|
80547
|
+
metadata: {
|
|
80548
|
+
...action.metadata,
|
|
80549
|
+
[DRAFT_ACTION_RETRY_COUNT_METADATA_KEY]: String(attempt),
|
|
80550
|
+
},
|
|
80551
|
+
};
|
|
80552
|
+
await actionErrored(retryingAction, true, retryDelayInMs, true);
|
|
80553
|
+
}
|
|
80116
80554
|
async handleActionEnqueued(action) {
|
|
80117
80555
|
const impactedKeys = await this.recordService.setSideEffectsForActions([action]);
|
|
80118
80556
|
await this.recordService.reapplyRecordSideEffects(impactedKeys);
|
|
@@ -80276,6 +80714,13 @@
|
|
|
80276
80714
|
this.isActionOfType(sourceAction)) {
|
|
80277
80715
|
targetAction.status = DraftActionStatus.Pending;
|
|
80278
80716
|
targetAction.data = sourceAction.data;
|
|
80717
|
+
// Replacing an action's data re-queues it as a fresh upload, so the persisted
|
|
80718
|
+
// upload retry-attempt count must not carry over — otherwise a previously-
|
|
80719
|
+
// throttled action could immediately re-hit the cap on its first new attempt.
|
|
80720
|
+
// (Mirrors the same clear in mergeActions.)
|
|
80721
|
+
if (targetAction.metadata !== undefined) {
|
|
80722
|
+
delete targetAction.metadata[DRAFT_ACTION_RETRY_COUNT_METADATA_KEY];
|
|
80723
|
+
}
|
|
80279
80724
|
return targetAction;
|
|
80280
80725
|
}
|
|
80281
80726
|
else {
|
|
@@ -80326,6 +80771,11 @@
|
|
|
80326
80771
|
}
|
|
80327
80772
|
// overlay metadata
|
|
80328
80773
|
merged.metadata = { ...targetMetadata, ...sourceMetadata };
|
|
80774
|
+
// A merge folds new user data into the action and re-queues it as a fresh upload,
|
|
80775
|
+
// so the persisted upload retry-attempt count must not carry over — otherwise a
|
|
80776
|
+
// previously-throttled action could immediately re-hit the cap on its first new
|
|
80777
|
+
// attempt.
|
|
80778
|
+
delete merged.metadata[DRAFT_ACTION_RETRY_COUNT_METADATA_KEY];
|
|
80329
80779
|
// put status back to pending to auto upload if queue is active and targed is at the head.
|
|
80330
80780
|
merged.status = DraftActionStatus.Pending;
|
|
80331
80781
|
return merged;
|
|
@@ -80937,229 +81387,6 @@
|
|
|
80937
81387
|
}
|
|
80938
81388
|
}
|
|
80939
81389
|
|
|
80940
|
-
function attachObserversToAdapterRequestContext(observers, adapterRequestContext) {
|
|
80941
|
-
if (adapterRequestContext === undefined) {
|
|
80942
|
-
return { eventObservers: observers };
|
|
80943
|
-
}
|
|
80944
|
-
if (adapterRequestContext.eventObservers === undefined) {
|
|
80945
|
-
return { ...adapterRequestContext, eventObservers: observers };
|
|
80946
|
-
}
|
|
80947
|
-
return {
|
|
80948
|
-
...adapterRequestContext,
|
|
80949
|
-
eventObservers: adapterRequestContext.eventObservers.concat(observers),
|
|
80950
|
-
};
|
|
80951
|
-
}
|
|
80952
|
-
/**
|
|
80953
|
-
* Use this method to sanitize the unknown error object when
|
|
80954
|
-
* we are unsure of the type of the error thrown
|
|
80955
|
-
*
|
|
80956
|
-
* @param err Unknown object to sanitize
|
|
80957
|
-
* @returns an instance of error
|
|
80958
|
-
*/
|
|
80959
|
-
function normalizeError$1(err) {
|
|
80960
|
-
if (err instanceof Error) {
|
|
80961
|
-
return err;
|
|
80962
|
-
}
|
|
80963
|
-
else if (typeof err === 'string') {
|
|
80964
|
-
return new Error(err);
|
|
80965
|
-
}
|
|
80966
|
-
return new Error(stringify$5(err));
|
|
80967
|
-
}
|
|
80968
|
-
// metrics
|
|
80969
|
-
/** GraphQL */
|
|
80970
|
-
const GRAPHQL_EVAL_ERROR = 'gql-eval-error';
|
|
80971
|
-
const GRAPHQL_EVAL_DB_READ_DURATION = 'gql-eval-db-read-duration';
|
|
80972
|
-
const GRAPHQL_EVAL_ROOT_QUERY_COUNT = 'gql-eval-root-query-count';
|
|
80973
|
-
const GRAPHQL_EVAL_TOTAL_QUERY_COUNT = 'gql-eval-total-query-count';
|
|
80974
|
-
const GRAPHQL_EVAL_MAX_CHILD_RELATIONSHIPS_COUNT = 'gql-eval-max-child-count';
|
|
80975
|
-
const GRAPHQL_EVAL_QUERY_RECORD_COUNT = 'gql-eval-query-record-count';
|
|
80976
|
-
const GRAPHQL_SNAPSHOT_REFRESH_UNDEFINED = 'gql-snapshot-refresh-undefined';
|
|
80977
|
-
/** Draft Queue */
|
|
80978
|
-
const DRAFT_QUEUE_STATE_STARTED = 'draft-queue-state-started';
|
|
80979
|
-
const DRAFT_QUEUE_STATE_ERROR = 'draft-queue-state-error';
|
|
80980
|
-
const DRAFT_QUEUE_STATE_WAITING = 'draft-queue-state-waiting';
|
|
80981
|
-
const DRAFT_QUEUE_STATE_STOPPED = 'draft-queue-state-stopped';
|
|
80982
|
-
const DRAFT_QUEUE_ACTION_ADDED = 'draft-queue-action-added';
|
|
80983
|
-
const DRAFT_QUEUE_ACTION_UPLOADING = 'draft-queue-action-uploading';
|
|
80984
|
-
const DRAFT_QUEUE_ACTION_COMPLETED = 'draft-queue-action-completed';
|
|
80985
|
-
const DRAFT_QUEUE_ACTION_DELETED = 'draft-queue-action-deleted';
|
|
80986
|
-
const DRAFT_QUEUE_ACTION_UPDATED = 'draft-queue-action-updated';
|
|
80987
|
-
const DRAFT_QUEUE_ACTION_FAILED = 'draft-queue-action-failed';
|
|
80988
|
-
const DRAFT_QUEUE_TOTAL_MERGE_ACTIONS_CALLS = 'draft-queue-total-mergeActions-calls';
|
|
80989
|
-
/** Content Document */
|
|
80990
|
-
const CREATE_CONTENT_DOCUMENT_AND_VERSION_TOTAL_SYNTHESIZE_CALLS = 'content-document-version-total-synthesize-calls';
|
|
80991
|
-
const CREATE_CONTENT_DOCUMENT_AND_VERSION_DRAFT_SYNTHESIZE_ERROR = 'create-content-document-version-draft-synthesize-error';
|
|
80992
|
-
/** Priming */
|
|
80993
|
-
const PRIMING_TOTAL_SESSION_COUNT = 'priming-total-session-count';
|
|
80994
|
-
const PRIMING_TOTAL_ERROR_COUNT = 'priming-total-error-count';
|
|
80995
|
-
const PRIMING_TOTAL_PRIMED_COUNT = 'priming-total-primed-count';
|
|
80996
|
-
const PRIMING_TOTAL_CONFLICT_COUNT = 'priming-total-conflict-count';
|
|
80997
|
-
// logs
|
|
80998
|
-
const GRAPHQL_QUERY_PARSE_ERROR = 'gql-query-parse-error';
|
|
80999
|
-
const GRAPHQL_SQL_EVAL_PRECONDITION_ERROR = 'gql-sql-pre-eval-error';
|
|
81000
|
-
const GRAPHQL_CREATE_SNAPSHOT_ERROR = 'gql-create-snapshot-error';
|
|
81001
|
-
const DRAFT_AWARE_CREATE_CONTENT_DOCUMENT_AND_VERSION_ERROR = 'draft-aware-create-content-document-and-version-error';
|
|
81002
|
-
/** Garbage Collection */
|
|
81003
|
-
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_COUNT = 'garbage-collection-aggressive-trim-count';
|
|
81004
|
-
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_RECORDS_TRIMMED = 'garbage-collection-aggressive-trim-records-trimmed';
|
|
81005
|
-
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_TOTAL_RECORDS_BEFORE_TRIM = 'garbage-collection-aggressive-trim-total-records-before-trim';
|
|
81006
|
-
const ldsMobileInstrumentation$2 = getInstrumentation();
|
|
81007
|
-
const nimbusLogger = typeof __nimbus !== 'undefined' &&
|
|
81008
|
-
__nimbus.plugins !== undefined &&
|
|
81009
|
-
__nimbus.plugins.JSLoggerPlugin !== undefined
|
|
81010
|
-
? __nimbus.plugins.JSLoggerPlugin
|
|
81011
|
-
: undefined;
|
|
81012
|
-
function reportGraphqlQueryParseError(err) {
|
|
81013
|
-
const error = normalizeError$1(err);
|
|
81014
|
-
const errorCode = GRAPHQL_QUERY_PARSE_ERROR;
|
|
81015
|
-
// Metric
|
|
81016
|
-
reportGraphqlAdapterError(errorCode);
|
|
81017
|
-
// Log
|
|
81018
|
-
ldsMobileInstrumentation$2.error(error, errorCode);
|
|
81019
|
-
}
|
|
81020
|
-
function reportGraphqlSqlEvalPreconditionError(err) {
|
|
81021
|
-
const error = normalizeError$1(err);
|
|
81022
|
-
const errorCode = GRAPHQL_SQL_EVAL_PRECONDITION_ERROR;
|
|
81023
|
-
// Metric
|
|
81024
|
-
reportGraphqlAdapterError(errorCode);
|
|
81025
|
-
// Log
|
|
81026
|
-
ldsMobileInstrumentation$2.error(error, errorCode);
|
|
81027
|
-
}
|
|
81028
|
-
function reportGraphqlCreateSnapshotError(err) {
|
|
81029
|
-
const error = normalizeError$1(err);
|
|
81030
|
-
const errorCode = GRAPHQL_CREATE_SNAPSHOT_ERROR;
|
|
81031
|
-
// Metric
|
|
81032
|
-
reportGraphqlAdapterError(errorCode);
|
|
81033
|
-
// Log
|
|
81034
|
-
ldsMobileInstrumentation$2.error(error, errorCode);
|
|
81035
|
-
}
|
|
81036
|
-
function reportGraphQlEvalDbReadDuration(duration) {
|
|
81037
|
-
ldsMobileInstrumentation$2.trackValue(GRAPHQL_EVAL_DB_READ_DURATION, duration);
|
|
81038
|
-
}
|
|
81039
|
-
function reportGraphqlAdapterError(errorCode) {
|
|
81040
|
-
// Increment overall count with errorCode as tag
|
|
81041
|
-
ldsMobileInstrumentation$2.incrementCounter(GRAPHQL_EVAL_ERROR, 1, true, { errorCode });
|
|
81042
|
-
}
|
|
81043
|
-
function reportGraphqlQueryInstrumentation(data) {
|
|
81044
|
-
const queryBuckets = [1, 2, 3, 4, 5, 10, 20, 50, 100];
|
|
81045
|
-
const recordBuckets = [
|
|
81046
|
-
1, 5, 10, 20, 50, 100, 1000, 2000, 5000, 10000, 50000, 100000, 1000000,
|
|
81047
|
-
];
|
|
81048
|
-
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_ROOT_QUERY_COUNT, data.rootQueryCount, queryBuckets);
|
|
81049
|
-
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_TOTAL_QUERY_COUNT, data.totalQueryCount, queryBuckets);
|
|
81050
|
-
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_MAX_CHILD_RELATIONSHIPS_COUNT, data.maxChildRelationships, queryBuckets);
|
|
81051
|
-
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_QUERY_RECORD_COUNT, data.requestedRecordCount, recordBuckets);
|
|
81052
|
-
}
|
|
81053
|
-
function incrementGraphQLRefreshUndfined() {
|
|
81054
|
-
ldsMobileInstrumentation$2.incrementCounter(GRAPHQL_SNAPSHOT_REFRESH_UNDEFINED);
|
|
81055
|
-
}
|
|
81056
|
-
function reportDraftActionEvent(state, draftCount, message) {
|
|
81057
|
-
if (nimbusLogger) {
|
|
81058
|
-
nimbusLogger.logInfo(`Draft action event: ${state}, depth: ${draftCount}${message ? `, message: ${message}` : ''}`);
|
|
81059
|
-
}
|
|
81060
|
-
switch (state) {
|
|
81061
|
-
case 'added':
|
|
81062
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_ADDED);
|
|
81063
|
-
break;
|
|
81064
|
-
case 'uploading':
|
|
81065
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_UPLOADING);
|
|
81066
|
-
break;
|
|
81067
|
-
case 'completed':
|
|
81068
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_COMPLETED);
|
|
81069
|
-
break;
|
|
81070
|
-
case 'deleted':
|
|
81071
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_DELETED);
|
|
81072
|
-
break;
|
|
81073
|
-
case 'failed':
|
|
81074
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_FAILED, 1, true);
|
|
81075
|
-
break;
|
|
81076
|
-
case 'updated':
|
|
81077
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_ACTION_UPDATED);
|
|
81078
|
-
break;
|
|
81079
|
-
}
|
|
81080
|
-
}
|
|
81081
|
-
function reportDraftQueueState(state, draftCount) {
|
|
81082
|
-
if (nimbusLogger) {
|
|
81083
|
-
nimbusLogger.logInfo(`Draft state changed: ${state}, depth: ${draftCount}`);
|
|
81084
|
-
}
|
|
81085
|
-
switch (state) {
|
|
81086
|
-
case 'started':
|
|
81087
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_STARTED);
|
|
81088
|
-
break;
|
|
81089
|
-
case 'error':
|
|
81090
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_ERROR, 1, true);
|
|
81091
|
-
break;
|
|
81092
|
-
case 'waiting':
|
|
81093
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_WAITING);
|
|
81094
|
-
break;
|
|
81095
|
-
case 'stopped':
|
|
81096
|
-
ldsMobileInstrumentation$2.incrementCounter(DRAFT_QUEUE_STATE_STOPPED);
|
|
81097
|
-
break;
|
|
81098
|
-
}
|
|
81099
|
-
}
|
|
81100
|
-
function reportDraftAwareContentDocumentVersionSynthesizeError(err) {
|
|
81101
|
-
let error;
|
|
81102
|
-
if (err.body !== undefined) {
|
|
81103
|
-
error = err.body;
|
|
81104
|
-
}
|
|
81105
|
-
else {
|
|
81106
|
-
error = normalizeError$1(err);
|
|
81107
|
-
}
|
|
81108
|
-
const errorCode = DRAFT_AWARE_CREATE_CONTENT_DOCUMENT_AND_VERSION_ERROR;
|
|
81109
|
-
const errorType = error.errorType;
|
|
81110
|
-
const tags = {
|
|
81111
|
-
errorCode,
|
|
81112
|
-
};
|
|
81113
|
-
if (errorType !== undefined) {
|
|
81114
|
-
tags.errorType = errorType;
|
|
81115
|
-
}
|
|
81116
|
-
// Metric
|
|
81117
|
-
ldsMobileInstrumentation$2.incrementCounter(CREATE_CONTENT_DOCUMENT_AND_VERSION_DRAFT_SYNTHESIZE_ERROR, 1, true, tags);
|
|
81118
|
-
// Log
|
|
81119
|
-
ldsMobileInstrumentation$2.error(error, errorCode);
|
|
81120
|
-
}
|
|
81121
|
-
function reportDraftAwareContentVersionSynthesizeCalls(mimeType) {
|
|
81122
|
-
ldsMobileInstrumentation$2.incrementCounter(CREATE_CONTENT_DOCUMENT_AND_VERSION_TOTAL_SYNTHESIZE_CALLS, 1, undefined, { mimeType });
|
|
81123
|
-
}
|
|
81124
|
-
/** Priming */
|
|
81125
|
-
function reportPrimingSessionCreated() {
|
|
81126
|
-
ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_SESSION_COUNT, 1, undefined, {});
|
|
81127
|
-
}
|
|
81128
|
-
function reportPrimingError(errorType, recordCount) {
|
|
81129
|
-
ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_ERROR_COUNT, recordCount, undefined, {
|
|
81130
|
-
errorType,
|
|
81131
|
-
});
|
|
81132
|
-
}
|
|
81133
|
-
function reportPrimingSuccess(recordCount) {
|
|
81134
|
-
ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_PRIMED_COUNT, recordCount, undefined);
|
|
81135
|
-
}
|
|
81136
|
-
function reportPrimingConflict(resolutionType, recordCount) {
|
|
81137
|
-
ldsMobileInstrumentation$2.incrementCounter(PRIMING_TOTAL_CONFLICT_COUNT, recordCount, undefined, {
|
|
81138
|
-
resolutionType,
|
|
81139
|
-
});
|
|
81140
|
-
}
|
|
81141
|
-
/** Network */
|
|
81142
|
-
function reportChunkCandidateUrlLength(urlLength) {
|
|
81143
|
-
const buckets = [8000, 10000, 12000, 14000, 16000];
|
|
81144
|
-
ldsMobileInstrumentation$2.bucketValue('chunk-candidate-url-length-histogram', urlLength, buckets);
|
|
81145
|
-
}
|
|
81146
|
-
/** Garbage Collection */
|
|
81147
|
-
function reportAggressiveTrimTriggered(trimCount, beforeTrimRecordCount, totalRecordsTrimmed) {
|
|
81148
|
-
ldsMobileInstrumentation$2.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_COUNT, trimCount);
|
|
81149
|
-
ldsMobileInstrumentation$2.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_TOTAL_RECORDS_BEFORE_TRIM, beforeTrimRecordCount);
|
|
81150
|
-
ldsMobileInstrumentation$2.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_RECORDS_TRIMMED, totalRecordsTrimmed);
|
|
81151
|
-
}
|
|
81152
|
-
/** One Store Cache Purge */
|
|
81153
|
-
const ONESTORE_CACHE_PURGING_RECORDS_PURGED = 'onestore-cache-purging-records-purged';
|
|
81154
|
-
const ONESTORE_CACHE_PURGING_RECORDS_ERROR = 'onestore-cache-purging-records-error';
|
|
81155
|
-
function reportOneStoreRecordsPurgedFromCache(recordsPurged) {
|
|
81156
|
-
ldsMobileInstrumentation$2.trackValue(ONESTORE_CACHE_PURGING_RECORDS_PURGED, recordsPurged);
|
|
81157
|
-
}
|
|
81158
|
-
function reportOneStoreCachePurgingError(error) {
|
|
81159
|
-
const errorMessage = normalizeError$1(error);
|
|
81160
|
-
ldsMobileInstrumentation$2.error(errorMessage, ONESTORE_CACHE_PURGING_RECORDS_ERROR);
|
|
81161
|
-
}
|
|
81162
|
-
|
|
81163
81390
|
const QUICK_ACTION_HANDLER = 'QUICK_ACTION_HANDLER';
|
|
81164
81391
|
class QuickActionExecutionRepresentationHandler extends AbstractQuickActionHandler {
|
|
81165
81392
|
constructor(getLuvio, draftRecordService, draftQueue, networkAdapter, isDraftId, sideEffectService, objectInfoService, getRecord) {
|
|
@@ -81339,6 +81566,18 @@
|
|
|
81339
81566
|
return customEvent.namespace === CONTENT_DOCUMENT_AND_VERSION_NAMESPACE;
|
|
81340
81567
|
}
|
|
81341
81568
|
|
|
81569
|
+
/**
|
|
81570
|
+
* lds-worker-api packs the user action's ObservabilityContext into
|
|
81571
|
+
* `requestContext.requestCorrelator = { observabilityContext }`. This helper
|
|
81572
|
+
* unwraps it for draft-aware adapter wrappers, which forward the context to
|
|
81573
|
+
* the action handler so retry network spans can be parented to the
|
|
81574
|
+
* originating user action.
|
|
81575
|
+
*/
|
|
81576
|
+
function extractObservabilityContext(requestContext) {
|
|
81577
|
+
const correlator = requestContext?.requestCorrelator;
|
|
81578
|
+
return correlator?.observabilityContext;
|
|
81579
|
+
}
|
|
81580
|
+
|
|
81342
81581
|
function chunkToBase64(chunk) {
|
|
81343
81582
|
const bytes = new Uint8Array(chunk);
|
|
81344
81583
|
const CHUNK_SIZE = 64 * 1024; // 64kb, any bigger and fromCharCode() can error out with an overflow.
|
|
@@ -81416,7 +81655,10 @@
|
|
|
81416
81655
|
if (actionHandler.hasIdempotencySupport()) {
|
|
81417
81656
|
resourceRequest.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
81418
81657
|
}
|
|
81419
|
-
const
|
|
81658
|
+
const observabilityContext = extractObservabilityContext(requestContext);
|
|
81659
|
+
const action = await actionHandler
|
|
81660
|
+
.enqueue(resourceRequest, observabilityContext)
|
|
81661
|
+
.catch(async (error) => {
|
|
81420
81662
|
eventEmitter({
|
|
81421
81663
|
type: 'create-content-document-and-version-synthesized-response-error',
|
|
81422
81664
|
handle,
|
|
@@ -81782,21 +82024,23 @@
|
|
|
81782
82024
|
return undefined;
|
|
81783
82025
|
}
|
|
81784
82026
|
|
|
81785
|
-
/* istanbul ignore file - covered by integration tests */
|
|
81786
82027
|
/**
|
|
81787
82028
|
* @param luvio The runtime's luvio instance
|
|
81788
82029
|
* @param actionHandler The UIAPI Record action handler. NOTE: this adapter doesn't
|
|
81789
82030
|
* register it with the DraftQueue, runtime should set that up
|
|
81790
82031
|
*/
|
|
81791
82032
|
function createRecordDraftAdapterFactory(actionHandler, durableRecordStore) {
|
|
81792
|
-
return async function createRecordDraftAdapter(config, createResourceRequest) {
|
|
82033
|
+
return async function createRecordDraftAdapter(config, createResourceRequest, requestContext) {
|
|
81793
82034
|
const request = createResourceRequest(config);
|
|
81794
82035
|
if (actionHandler.hasIdempotencySupport()) {
|
|
81795
82036
|
request.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
81796
82037
|
}
|
|
81797
82038
|
request.queryParams = request.queryParams || {};
|
|
81798
82039
|
request.queryParams['includeFieldsInBody'] = true;
|
|
81799
|
-
const
|
|
82040
|
+
const observabilityContext = extractObservabilityContext(requestContext);
|
|
82041
|
+
const action = await actionHandler
|
|
82042
|
+
.enqueue(request, observabilityContext)
|
|
82043
|
+
.catch((err) => {
|
|
81800
82044
|
throw transformErrorToDraftSynthesisError(err);
|
|
81801
82045
|
});
|
|
81802
82046
|
let record = await durableRecordStore.getRecord(action.tag);
|
|
@@ -81876,34 +82120,34 @@
|
|
|
81876
82120
|
};
|
|
81877
82121
|
}
|
|
81878
82122
|
|
|
81879
|
-
/* istanbul ignore file - covered by integration tests */
|
|
81880
82123
|
/**
|
|
81881
82124
|
* @param luvio The runtime's luvio instance
|
|
81882
82125
|
* @param actionHandler The UIAPI Record action handler. NOTE: this adapter doesn't
|
|
81883
82126
|
* register it with the DraftQueue, runtime should set that up
|
|
81884
82127
|
*/
|
|
81885
82128
|
function deleteRecordDraftAdapterFactory(actionHandler) {
|
|
81886
|
-
return async function deleteRecordDraftAdapter(config, buildResourceRequest) {
|
|
82129
|
+
return async function deleteRecordDraftAdapter(config, buildResourceRequest, requestContext) {
|
|
81887
82130
|
const request = buildResourceRequest(config);
|
|
81888
82131
|
if (actionHandler.hasIdempotencySupport()) {
|
|
81889
82132
|
request.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
81890
82133
|
}
|
|
81891
|
-
|
|
82134
|
+
const observabilityContext = extractObservabilityContext(requestContext);
|
|
82135
|
+
await actionHandler.enqueue(request, observabilityContext).catch((err) => {
|
|
81892
82136
|
throw transformErrorToDraftSynthesisError(err);
|
|
81893
82137
|
});
|
|
81894
82138
|
};
|
|
81895
82139
|
}
|
|
81896
82140
|
|
|
81897
|
-
/* istanbul ignore file - covered by integration tests */
|
|
81898
82141
|
/**
|
|
81899
82142
|
* @param luvio The runtime's luvio instance
|
|
81900
82143
|
* @param actionHandler The UIAPI Record action handler. NOTE: this adapter doesn't
|
|
81901
82144
|
* register it with the DraftQueue, runtime should set that up
|
|
81902
82145
|
*/
|
|
81903
82146
|
function performQuickActionDraftAdapterFactory(actionHandler, userId) {
|
|
81904
|
-
return async function performQuickActionDraftAdapter(config, createResourceRequest) {
|
|
82147
|
+
return async function performQuickActionDraftAdapter(config, createResourceRequest, requestContext) {
|
|
81905
82148
|
const request = createResourceRequest(config);
|
|
81906
|
-
const
|
|
82149
|
+
const observabilityContext = extractObservabilityContext(requestContext);
|
|
82150
|
+
const action = await actionHandler.enqueue(request, observabilityContext).catch((err) => {
|
|
81907
82151
|
const error = transformErrorToDraftSynthesisError(err);
|
|
81908
82152
|
deepFreeze$1(error);
|
|
81909
82153
|
throw error;
|
|
@@ -81930,16 +82174,18 @@
|
|
|
81930
82174
|
};
|
|
81931
82175
|
}
|
|
81932
82176
|
|
|
81933
|
-
/* istanbul ignore file - covered by integration tests */
|
|
81934
82177
|
/**
|
|
81935
82178
|
* @param luvio The runtime's luvio instance
|
|
81936
82179
|
* @param actionHandler The UIAPI Record action handler. NOTE: this adapter doesn't
|
|
81937
82180
|
* register it with the DraftQueue, runtime should set that up
|
|
81938
82181
|
*/
|
|
81939
82182
|
function performUpdateRecordQuickActionDraftAdapterFactory(actionHandler, userId) {
|
|
81940
|
-
return async function performUpdateRecordQuickActionDraftAdapter(config, createResourceRequest) {
|
|
82183
|
+
return async function performUpdateRecordQuickActionDraftAdapter(config, createResourceRequest, requestContext) {
|
|
81941
82184
|
const request = createResourceRequest(config);
|
|
81942
|
-
const
|
|
82185
|
+
const observabilityContext = extractObservabilityContext(requestContext);
|
|
82186
|
+
const action = await actionHandler
|
|
82187
|
+
.enqueue(request, observabilityContext)
|
|
82188
|
+
.catch((err) => {
|
|
81943
82189
|
const error = transformErrorToDraftSynthesisError(err);
|
|
81944
82190
|
deepFreeze$1(error);
|
|
81945
82191
|
throw error;
|
|
@@ -89127,6 +89373,7 @@
|
|
|
89127
89373
|
let observabilityContext = null;
|
|
89128
89374
|
if (resourceRequestContext !== undefined &&
|
|
89129
89375
|
resourceRequestContext.requestCorrelator !== undefined &&
|
|
89376
|
+
resourceRequestContext.requestCorrelator !== null &&
|
|
89130
89377
|
resourceRequestContext.requestCorrelator.observabilityContext !==
|
|
89131
89378
|
undefined) {
|
|
89132
89379
|
({ observabilityContext = null } =
|
|
@@ -89841,7 +90088,7 @@
|
|
|
89841
90088
|
return operation()
|
|
89842
90089
|
.catch((err) => {
|
|
89843
90090
|
hasError = true;
|
|
89844
|
-
const error = normalizeError$
|
|
90091
|
+
const error = normalizeError$2(err);
|
|
89845
90092
|
tags['errorMessage'] = error.message;
|
|
89846
90093
|
if (logError) {
|
|
89847
90094
|
ldsMobileInstrumentation$2.error(error);
|
|
@@ -94195,7 +94442,9 @@
|
|
|
94195
94442
|
}
|
|
94196
94443
|
function resolvedPromiseLike$2(result) {
|
|
94197
94444
|
if (isPromiseLike$2(result)) {
|
|
94198
|
-
return result.then(
|
|
94445
|
+
return result.then(
|
|
94446
|
+
(nextResult) => nextResult
|
|
94447
|
+
);
|
|
94199
94448
|
}
|
|
94200
94449
|
return {
|
|
94201
94450
|
then: (onFulfilled, _onRejected) => {
|
|
@@ -94212,7 +94461,9 @@
|
|
|
94212
94461
|
}
|
|
94213
94462
|
function rejectedPromiseLike$2(reason) {
|
|
94214
94463
|
if (isPromiseLike$2(reason)) {
|
|
94215
|
-
return reason.then(
|
|
94464
|
+
return reason.then(
|
|
94465
|
+
(nextResult) => nextResult
|
|
94466
|
+
);
|
|
94216
94467
|
}
|
|
94217
94468
|
return {
|
|
94218
94469
|
then: (_onFulfilled, onRejected) => {
|
|
@@ -94269,49 +94520,6 @@
|
|
|
94269
94520
|
}
|
|
94270
94521
|
return x === y;
|
|
94271
94522
|
}
|
|
94272
|
-
function stableJSONStringify$2(node) {
|
|
94273
|
-
if (node && node.toJSON && typeof node.toJSON === "function") {
|
|
94274
|
-
node = node.toJSON();
|
|
94275
|
-
}
|
|
94276
|
-
if (node === void 0) {
|
|
94277
|
-
return;
|
|
94278
|
-
}
|
|
94279
|
-
if (typeof node === "number") {
|
|
94280
|
-
return isFinite(node) ? "" + node : "null";
|
|
94281
|
-
}
|
|
94282
|
-
if (typeof node !== "object") {
|
|
94283
|
-
return stringify$2(node);
|
|
94284
|
-
}
|
|
94285
|
-
let i;
|
|
94286
|
-
let out;
|
|
94287
|
-
if (isArray$1$1(node)) {
|
|
94288
|
-
out = "[";
|
|
94289
|
-
for (i = 0; i < node.length; i++) {
|
|
94290
|
-
if (i) {
|
|
94291
|
-
out += ",";
|
|
94292
|
-
}
|
|
94293
|
-
out += stableJSONStringify$2(node[i]) || "null";
|
|
94294
|
-
}
|
|
94295
|
-
return out + "]";
|
|
94296
|
-
}
|
|
94297
|
-
if (node === null) {
|
|
94298
|
-
return "null";
|
|
94299
|
-
}
|
|
94300
|
-
const objKeys = keys$7(node).sort();
|
|
94301
|
-
out = "";
|
|
94302
|
-
for (i = 0; i < objKeys.length; i++) {
|
|
94303
|
-
const key = objKeys[i];
|
|
94304
|
-
const value = stableJSONStringify$2(node[key]);
|
|
94305
|
-
if (!value) {
|
|
94306
|
-
continue;
|
|
94307
|
-
}
|
|
94308
|
-
if (out) {
|
|
94309
|
-
out += ",";
|
|
94310
|
-
}
|
|
94311
|
-
out += stringify$2(key) + ":" + value;
|
|
94312
|
-
}
|
|
94313
|
-
return "{" + out + "}";
|
|
94314
|
-
}
|
|
94315
94523
|
function toError(x) {
|
|
94316
94524
|
if (x instanceof Error) {
|
|
94317
94525
|
return x;
|
|
@@ -94332,16 +94540,16 @@
|
|
|
94332
94540
|
return HttpStatusCode2;
|
|
94333
94541
|
})(HttpStatusCode || {});
|
|
94334
94542
|
function getFetchResponseFromAuraError(err2) {
|
|
94335
|
-
|
|
94336
|
-
|
|
94337
|
-
data =
|
|
94338
|
-
if (
|
|
94339
|
-
data.id =
|
|
94543
|
+
const auraError = err2;
|
|
94544
|
+
if (auraError.data !== void 0 && auraError.data.statusCode !== void 0) {
|
|
94545
|
+
const data = auraError.data;
|
|
94546
|
+
if (auraError.id !== void 0) {
|
|
94547
|
+
data.id = auraError.id;
|
|
94340
94548
|
}
|
|
94341
94549
|
return new FetchResponse(data.statusCode, data);
|
|
94342
94550
|
}
|
|
94343
94551
|
return new FetchResponse(500, {
|
|
94344
|
-
error: err2
|
|
94552
|
+
error: err2?.message
|
|
94345
94553
|
});
|
|
94346
94554
|
}
|
|
94347
94555
|
function getStatusText(status) {
|
|
@@ -94383,9 +94591,10 @@
|
|
|
94383
94591
|
deepFreeze(value[i]);
|
|
94384
94592
|
}
|
|
94385
94593
|
} else {
|
|
94386
|
-
const
|
|
94594
|
+
const record = value;
|
|
94595
|
+
const keys$1 = keys$7(record);
|
|
94387
94596
|
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
94388
|
-
deepFreeze(
|
|
94597
|
+
deepFreeze(record[keys$1[i]]);
|
|
94389
94598
|
}
|
|
94390
94599
|
}
|
|
94391
94600
|
freeze$3(value);
|
|
@@ -94459,7 +94668,7 @@
|
|
|
94459
94668
|
async afterRequestHooks(_options) {
|
|
94460
94669
|
}
|
|
94461
94670
|
};
|
|
94462
|
-
function buildServiceDescriptor$
|
|
94671
|
+
function buildServiceDescriptor$m() {
|
|
94463
94672
|
return {
|
|
94464
94673
|
type: "networkCommandBaseClass",
|
|
94465
94674
|
version: "1.0",
|
|
@@ -94565,7 +94774,7 @@
|
|
|
94565
94774
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
94566
94775
|
}
|
|
94567
94776
|
}
|
|
94568
|
-
function buildServiceDescriptor$
|
|
94777
|
+
function buildServiceDescriptor$l() {
|
|
94569
94778
|
return {
|
|
94570
94779
|
type: "auraNetworkCommandBaseClass",
|
|
94571
94780
|
version: "1.0",
|
|
@@ -94607,7 +94816,9 @@
|
|
|
94607
94816
|
}
|
|
94608
94817
|
function resolvedPromiseLike$1(result) {
|
|
94609
94818
|
if (isPromiseLike$1(result)) {
|
|
94610
|
-
return result.then(
|
|
94819
|
+
return result.then(
|
|
94820
|
+
(nextResult) => nextResult
|
|
94821
|
+
);
|
|
94611
94822
|
}
|
|
94612
94823
|
return {
|
|
94613
94824
|
then: (onFulfilled, _onRejected) => {
|
|
@@ -94624,7 +94835,9 @@
|
|
|
94624
94835
|
}
|
|
94625
94836
|
function rejectedPromiseLike$1(reason) {
|
|
94626
94837
|
if (isPromiseLike$1(reason)) {
|
|
94627
|
-
return reason.then(
|
|
94838
|
+
return reason.then(
|
|
94839
|
+
(nextResult) => nextResult
|
|
94840
|
+
);
|
|
94628
94841
|
}
|
|
94629
94842
|
return {
|
|
94630
94843
|
then: (_onFulfilled, onRejected) => {
|
|
@@ -95118,7 +95331,7 @@
|
|
|
95118
95331
|
};
|
|
95119
95332
|
}
|
|
95120
95333
|
|
|
95121
|
-
|
|
95334
|
+
class AuraCacheControlCommand extends CacheControlCommand {
|
|
95122
95335
|
constructor(services) {
|
|
95123
95336
|
super(services);
|
|
95124
95337
|
this.services = services;
|
|
@@ -95220,8 +95433,8 @@
|
|
|
95220
95433
|
(reason) => err$1(toError(reason))
|
|
95221
95434
|
);
|
|
95222
95435
|
}
|
|
95223
|
-
}
|
|
95224
|
-
class AuraNormalizedCacheControlCommand extends AuraCacheControlCommand
|
|
95436
|
+
}
|
|
95437
|
+
class AuraNormalizedCacheControlCommand extends AuraCacheControlCommand {
|
|
95225
95438
|
constructor(services) {
|
|
95226
95439
|
super(services);
|
|
95227
95440
|
this.services = services;
|
|
@@ -95245,7 +95458,7 @@
|
|
|
95245
95458
|
return resolvedPromiseLike$2(void 0);
|
|
95246
95459
|
}
|
|
95247
95460
|
}
|
|
95248
|
-
function buildServiceDescriptor$
|
|
95461
|
+
function buildServiceDescriptor$k() {
|
|
95249
95462
|
return {
|
|
95250
95463
|
type: "auraNormalizedCacheControlCommand",
|
|
95251
95464
|
version: "1.0",
|
|
@@ -95253,144 +95466,6 @@
|
|
|
95253
95466
|
};
|
|
95254
95467
|
}
|
|
95255
95468
|
|
|
95256
|
-
class AuraCacheControlCommand extends CacheControlCommand {
|
|
95257
|
-
constructor(services) {
|
|
95258
|
-
super(services);
|
|
95259
|
-
this.services = services;
|
|
95260
|
-
this.actionConfig = {
|
|
95261
|
-
background: false,
|
|
95262
|
-
hotspot: true,
|
|
95263
|
-
longRunning: false,
|
|
95264
|
-
storable: false
|
|
95265
|
-
};
|
|
95266
|
-
this.networkPreference = "aura";
|
|
95267
|
-
}
|
|
95268
|
-
get fetchParams() {
|
|
95269
|
-
throw new Error(
|
|
95270
|
-
"Fetch parameters must be specified when using HTTP transport on an Aura adapter"
|
|
95271
|
-
);
|
|
95272
|
-
}
|
|
95273
|
-
shouldUseAuraNetwork() {
|
|
95274
|
-
return this.services.auraNetwork !== void 0 && (this.networkPreference === "aura" || !this.services.fetch);
|
|
95275
|
-
}
|
|
95276
|
-
shouldUseFetch() {
|
|
95277
|
-
return this.services.fetch !== void 0 && (this.networkPreference === "http" || !this.services.auraNetwork);
|
|
95278
|
-
}
|
|
95279
|
-
requestFromNetwork() {
|
|
95280
|
-
if (this.shouldUseAuraNetwork()) {
|
|
95281
|
-
return this.convertAuraResponseToData(
|
|
95282
|
-
this.services.auraNetwork(this.endpoint, this.auraParams, this.actionConfig),
|
|
95283
|
-
(errs) => this.coerceAuraErrors(errs)
|
|
95284
|
-
);
|
|
95285
|
-
} else if (this.shouldUseFetch()) {
|
|
95286
|
-
const params = this.fetchParams;
|
|
95287
|
-
try {
|
|
95288
|
-
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
95289
|
-
} catch (reason) {
|
|
95290
|
-
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
95291
|
-
}
|
|
95292
|
-
}
|
|
95293
|
-
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
95294
|
-
}
|
|
95295
|
-
coerceAuraErrors(auraErrors) {
|
|
95296
|
-
return toError(auraErrors[0]);
|
|
95297
|
-
}
|
|
95298
|
-
async coerceError(errorResponse) {
|
|
95299
|
-
return toError(errorResponse.statusText);
|
|
95300
|
-
}
|
|
95301
|
-
processAuraReturnValue(auraReturnValue) {
|
|
95302
|
-
return ok$1(auraReturnValue);
|
|
95303
|
-
}
|
|
95304
|
-
processFetchReturnValue(json) {
|
|
95305
|
-
return ok$1(json);
|
|
95306
|
-
}
|
|
95307
|
-
convertAuraResponseToData(responsePromise, coerceError) {
|
|
95308
|
-
return responsePromise.then((response) => {
|
|
95309
|
-
return this.processAuraReturnValue(response.getReturnValue());
|
|
95310
|
-
}).finally(() => {
|
|
95311
|
-
try {
|
|
95312
|
-
this.afterRequestHooks({ statusCode: 200 });
|
|
95313
|
-
} catch {
|
|
95314
|
-
}
|
|
95315
|
-
}).catch((error) => {
|
|
95316
|
-
if (!error) {
|
|
95317
|
-
return err$1(toError("Failed to get error from response"));
|
|
95318
|
-
}
|
|
95319
|
-
if (!error.getError) {
|
|
95320
|
-
return err$1(toError(error));
|
|
95321
|
-
}
|
|
95322
|
-
const actionErrors = error.getError();
|
|
95323
|
-
if (actionErrors.length > 0) {
|
|
95324
|
-
return err$1(coerceError(actionErrors));
|
|
95325
|
-
}
|
|
95326
|
-
return err$1(toError("Error fetching component"));
|
|
95327
|
-
});
|
|
95328
|
-
}
|
|
95329
|
-
convertFetchResponseToData(response) {
|
|
95330
|
-
return response.then(
|
|
95331
|
-
(response2) => {
|
|
95332
|
-
if (response2.ok) {
|
|
95333
|
-
return response2.json().then(
|
|
95334
|
-
(json) => {
|
|
95335
|
-
return this.processFetchReturnValue(json);
|
|
95336
|
-
},
|
|
95337
|
-
(reason) => err$1(toError(reason))
|
|
95338
|
-
).finally(() => {
|
|
95339
|
-
try {
|
|
95340
|
-
this.afterRequestHooks({ statusCode: response2.status });
|
|
95341
|
-
} catch {
|
|
95342
|
-
}
|
|
95343
|
-
});
|
|
95344
|
-
} else {
|
|
95345
|
-
return this.coerceError(response2).then((coercedError) => {
|
|
95346
|
-
return err$1(coercedError);
|
|
95347
|
-
}).finally(() => {
|
|
95348
|
-
try {
|
|
95349
|
-
this.afterRequestHooks({ statusCode: response2.status });
|
|
95350
|
-
} catch {
|
|
95351
|
-
}
|
|
95352
|
-
});
|
|
95353
|
-
}
|
|
95354
|
-
},
|
|
95355
|
-
(reason) => err$1(toError(reason))
|
|
95356
|
-
);
|
|
95357
|
-
}
|
|
95358
|
-
}
|
|
95359
|
-
class AuraResourceCacheControlCommand extends AuraCacheControlCommand {
|
|
95360
|
-
constructor(services) {
|
|
95361
|
-
super(services);
|
|
95362
|
-
this.services = services;
|
|
95363
|
-
}
|
|
95364
|
-
readFromCache(cache) {
|
|
95365
|
-
const data = cache.get(this.buildKey())?.value;
|
|
95366
|
-
if (data === void 0) {
|
|
95367
|
-
return resolvedPromiseLike$2(err$1(new Error("Failed to find data in cache")));
|
|
95368
|
-
}
|
|
95369
|
-
return resolvedPromiseLike$2(ok$1(data));
|
|
95370
|
-
}
|
|
95371
|
-
writeToCache(cache, networkResult) {
|
|
95372
|
-
if (networkResult.isOk()) {
|
|
95373
|
-
cache.set(this.buildKey(), {
|
|
95374
|
-
value: networkResult.value,
|
|
95375
|
-
metadata: {
|
|
95376
|
-
cacheControl: this.buildCacheControlMetadata(networkResult.value)
|
|
95377
|
-
}
|
|
95378
|
-
});
|
|
95379
|
-
}
|
|
95380
|
-
return resolvedPromiseLike$2(void 0);
|
|
95381
|
-
}
|
|
95382
|
-
buildKey() {
|
|
95383
|
-
return `{"endpoint":${this.endpoint},"params":${stableJSONStringify$2(this.auraParams)}}`;
|
|
95384
|
-
}
|
|
95385
|
-
}
|
|
95386
|
-
function buildServiceDescriptor$k() {
|
|
95387
|
-
return {
|
|
95388
|
-
type: "auraResourceCacheControlCommand",
|
|
95389
|
-
version: "1.0",
|
|
95390
|
-
service: AuraResourceCacheControlCommand
|
|
95391
|
-
};
|
|
95392
|
-
}
|
|
95393
|
-
|
|
95394
95469
|
class NetworkCommand extends BaseCommand {
|
|
95395
95470
|
constructor(services) {
|
|
95396
95471
|
super();
|
|
@@ -95434,16 +95509,16 @@
|
|
|
95434
95509
|
}
|
|
95435
95510
|
}
|
|
95436
95511
|
function isAbortableCommand(command) {
|
|
95437
|
-
return "isAbortableCommand" in command && command.isAbortableCommand === true;
|
|
95512
|
+
return !!command && typeof command === "object" && "isAbortableCommand" in command && command.isAbortableCommand === true;
|
|
95438
95513
|
}
|
|
95439
95514
|
function hasFetchParams(command) {
|
|
95440
|
-
return command && typeof command === "object" && "fetchParams" in command;
|
|
95515
|
+
return !!command && typeof command === "object" && "fetchParams" in command;
|
|
95441
95516
|
}
|
|
95442
95517
|
function createAbortableDecorator(command, options) {
|
|
95443
|
-
|
|
95518
|
+
const signal = options?.signal;
|
|
95519
|
+
if (!signal || !(signal instanceof AbortSignal)) {
|
|
95444
95520
|
return command;
|
|
95445
95521
|
}
|
|
95446
|
-
const { signal } = options;
|
|
95447
95522
|
if (isAbortableCommand(command)) {
|
|
95448
95523
|
return command;
|
|
95449
95524
|
}
|
|
@@ -95451,7 +95526,7 @@
|
|
|
95451
95526
|
return command;
|
|
95452
95527
|
}
|
|
95453
95528
|
try {
|
|
95454
|
-
|
|
95529
|
+
const handler = {
|
|
95455
95530
|
get(target, prop, receiver) {
|
|
95456
95531
|
if (prop === "isAbortableCommand") {
|
|
95457
95532
|
return true;
|
|
@@ -95460,8 +95535,8 @@
|
|
|
95460
95535
|
return signal;
|
|
95461
95536
|
}
|
|
95462
95537
|
if (prop === "fetchParams") {
|
|
95463
|
-
const originalFetchParams = target
|
|
95464
|
-
const isInternal = target
|
|
95538
|
+
const originalFetchParams = Reflect.get(target, prop, receiver);
|
|
95539
|
+
const isInternal = Reflect.get(target, "isInternalExecution", receiver) === true;
|
|
95465
95540
|
if (typeof originalFetchParams === "function") {
|
|
95466
95541
|
return function(...args) {
|
|
95467
95542
|
const originalReturnValue = originalFetchParams.apply(this, args);
|
|
@@ -95487,7 +95562,8 @@
|
|
|
95487
95562
|
}
|
|
95488
95563
|
return Reflect.has(target, prop);
|
|
95489
95564
|
}
|
|
95490
|
-
}
|
|
95565
|
+
};
|
|
95566
|
+
return new Proxy(command, handler);
|
|
95491
95567
|
} catch (error) {
|
|
95492
95568
|
return command;
|
|
95493
95569
|
}
|
|
@@ -96576,7 +96652,7 @@
|
|
|
96576
96652
|
},
|
|
96577
96653
|
};
|
|
96578
96654
|
}
|
|
96579
|
-
// version: 1.
|
|
96655
|
+
// version: 1.445.0-117c9de71a
|
|
96580
96656
|
|
|
96581
96657
|
/**
|
|
96582
96658
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -96602,7 +96678,7 @@
|
|
|
96602
96678
|
},
|
|
96603
96679
|
};
|
|
96604
96680
|
}
|
|
96605
|
-
// version: 1.
|
|
96681
|
+
// version: 1.445.0-117c9de71a
|
|
96606
96682
|
|
|
96607
96683
|
function findExecutableOperation$1(input) {
|
|
96608
96684
|
const operations = input.query.definitions.filter(
|
|
@@ -97402,7 +97478,7 @@
|
|
|
97402
97478
|
let path = "#";
|
|
97403
97479
|
for (const key of keys) {
|
|
97404
97480
|
path = `${path}/${key}`;
|
|
97405
|
-
if (current[key] === void 0) {
|
|
97481
|
+
if (typeof current !== "object" || current === null || current[key] === void 0) {
|
|
97406
97482
|
throw new InvalidRefError(
|
|
97407
97483
|
`Invalid $ref value '${ref}'. Cannot find target schema at '${path}'`
|
|
97408
97484
|
);
|
|
@@ -98465,7 +98541,9 @@
|
|
|
98465
98541
|
}
|
|
98466
98542
|
function resolvedPromiseLike$3(result) {
|
|
98467
98543
|
if (isPromiseLike$3(result)) {
|
|
98468
|
-
return result.then(
|
|
98544
|
+
return result.then(
|
|
98545
|
+
(nextResult) => nextResult
|
|
98546
|
+
);
|
|
98469
98547
|
}
|
|
98470
98548
|
return {
|
|
98471
98549
|
then: (onFulfilled, _onRejected) => {
|
|
@@ -98482,7 +98560,9 @@
|
|
|
98482
98560
|
}
|
|
98483
98561
|
function rejectedPromiseLike$3(reason) {
|
|
98484
98562
|
if (isPromiseLike$3(reason)) {
|
|
98485
|
-
return reason.then(
|
|
98563
|
+
return reason.then(
|
|
98564
|
+
(nextResult) => nextResult
|
|
98565
|
+
);
|
|
98486
98566
|
}
|
|
98487
98567
|
return {
|
|
98488
98568
|
then: (_onFulfilled, onRejected) => {
|
|
@@ -99004,12 +99084,11 @@
|
|
|
99004
99084
|
buildNimbusFetchServiceDescriptor(),
|
|
99005
99085
|
buildServiceDescriptor$f(instrumentationServiceDescriptor.service),
|
|
99006
99086
|
// NOTE: These do not directly depend on Aura, and are necessary for HTTP fallback support.
|
|
99007
|
-
buildServiceDescriptor$m(),
|
|
99008
99087
|
buildServiceDescriptor$l(),
|
|
99009
99088
|
buildServiceDescriptor$k(),
|
|
99010
99089
|
buildServiceDescriptor$g(cacheServiceDescriptor.service, nimbusSqliteOneStoreCacheServiceDescriptor.service, instrumentationServiceDescriptor.service),
|
|
99011
99090
|
buildServiceDescriptor$j(),
|
|
99012
|
-
buildServiceDescriptor$
|
|
99091
|
+
buildServiceDescriptor$m(),
|
|
99013
99092
|
buildServiceDescriptor$i(),
|
|
99014
99093
|
buildServiceDescriptor$d(),
|
|
99015
99094
|
buildServiceDescriptor$9(),
|
|
@@ -99285,7 +99364,7 @@
|
|
|
99285
99364
|
id: '@salesforce/lds-network-adapter',
|
|
99286
99365
|
instrument: instrument$2,
|
|
99287
99366
|
});
|
|
99288
|
-
// version: 1.
|
|
99367
|
+
// version: 1.445.0-117c9de71a
|
|
99289
99368
|
|
|
99290
99369
|
const { create: create$2, keys: keys$2 } = Object;
|
|
99291
99370
|
const { stringify, parse } = JSON;
|
|
@@ -99607,7 +99686,7 @@
|
|
|
99607
99686
|
}
|
|
99608
99687
|
formattedArguments[arg.name.value] = result.value;
|
|
99609
99688
|
}
|
|
99610
|
-
return ok$3(`${canonicalFieldName}::${stableJSONStringify$
|
|
99689
|
+
return ok$3(`${canonicalFieldName}::${stableJSONStringify$2({ args: formattedArguments })}`);
|
|
99611
99690
|
}
|
|
99612
99691
|
({
|
|
99613
99692
|
kind: Kind$1.FIELD,
|
|
@@ -99671,7 +99750,9 @@
|
|
|
99671
99750
|
}
|
|
99672
99751
|
write(_cache, input) {
|
|
99673
99752
|
if (input.data === void 0) {
|
|
99674
|
-
return ok$3({
|
|
99753
|
+
return ok$3({
|
|
99754
|
+
type: "missing"
|
|
99755
|
+
});
|
|
99675
99756
|
}
|
|
99676
99757
|
if (input.data === null) {
|
|
99677
99758
|
if (!this.nullable) {
|
|
@@ -99685,7 +99766,10 @@
|
|
|
99685
99766
|
]);
|
|
99686
99767
|
}
|
|
99687
99768
|
}
|
|
99688
|
-
return ok$3({
|
|
99769
|
+
return ok$3({
|
|
99770
|
+
type: "data",
|
|
99771
|
+
data: input.data
|
|
99772
|
+
});
|
|
99689
99773
|
}
|
|
99690
99774
|
read(_cache, input) {
|
|
99691
99775
|
const normalizedData = input.normalizedData;
|
|
@@ -99714,7 +99798,9 @@
|
|
|
99714
99798
|
}
|
|
99715
99799
|
write(cache, input) {
|
|
99716
99800
|
if (input.data === void 0) {
|
|
99717
|
-
return ok$3({
|
|
99801
|
+
return ok$3({
|
|
99802
|
+
type: "missing"
|
|
99803
|
+
});
|
|
99718
99804
|
}
|
|
99719
99805
|
if (input.data === null) {
|
|
99720
99806
|
if (!this.nullable) {
|
|
@@ -99727,7 +99813,10 @@
|
|
|
99727
99813
|
}
|
|
99728
99814
|
]);
|
|
99729
99815
|
}
|
|
99730
|
-
return ok$3({
|
|
99816
|
+
return ok$3({
|
|
99817
|
+
type: "data",
|
|
99818
|
+
data: input.data
|
|
99819
|
+
});
|
|
99731
99820
|
}
|
|
99732
99821
|
if (!Array.isArray(input.data)) {
|
|
99733
99822
|
return err$3([
|
|
@@ -99759,7 +99848,10 @@
|
|
|
99759
99848
|
if (arrayNormalizationErrors.length > 0) {
|
|
99760
99849
|
return err$3(arrayNormalizationErrors);
|
|
99761
99850
|
}
|
|
99762
|
-
return ok$3({
|
|
99851
|
+
return ok$3({
|
|
99852
|
+
type: "data",
|
|
99853
|
+
data: normalizedArray
|
|
99854
|
+
});
|
|
99763
99855
|
}
|
|
99764
99856
|
read(cache, input) {
|
|
99765
99857
|
const normalizedData = input.normalizedData;
|
|
@@ -99833,7 +99925,9 @@
|
|
|
99833
99925
|
]);
|
|
99834
99926
|
}
|
|
99835
99927
|
if (input.data === void 0) {
|
|
99836
|
-
return ok$3({
|
|
99928
|
+
return ok$3({
|
|
99929
|
+
type: "missing"
|
|
99930
|
+
});
|
|
99837
99931
|
}
|
|
99838
99932
|
if (input.data === null) {
|
|
99839
99933
|
if (!this.nullable) {
|
|
@@ -99846,7 +99940,10 @@
|
|
|
99846
99940
|
}
|
|
99847
99941
|
]);
|
|
99848
99942
|
}
|
|
99849
|
-
return ok$3({
|
|
99943
|
+
return ok$3({
|
|
99944
|
+
type: "data",
|
|
99945
|
+
data: null
|
|
99946
|
+
});
|
|
99850
99947
|
}
|
|
99851
99948
|
const writeResult = this.repository.write(cache, {
|
|
99852
99949
|
...input,
|
|
@@ -99859,7 +99956,10 @@
|
|
|
99859
99956
|
if (writeResult.isErr()) {
|
|
99860
99957
|
return writeResult;
|
|
99861
99958
|
}
|
|
99862
|
-
return ok$3({
|
|
99959
|
+
return ok$3({
|
|
99960
|
+
type: "data",
|
|
99961
|
+
data: writeResult.value
|
|
99962
|
+
});
|
|
99863
99963
|
}
|
|
99864
99964
|
read(cache, input) {
|
|
99865
99965
|
if (!input.selection.selectionSet) {
|
|
@@ -100522,7 +100622,10 @@
|
|
|
100522
100622
|
}
|
|
100523
100623
|
]);
|
|
100524
100624
|
}
|
|
100525
|
-
const discriminator = this.getTypeDiscriminator(
|
|
100625
|
+
const discriminator = this.getTypeDiscriminator(
|
|
100626
|
+
input.data,
|
|
100627
|
+
input.selections
|
|
100628
|
+
);
|
|
100526
100629
|
const concreteTypeRepository = this.possibleTypes[discriminator];
|
|
100527
100630
|
if (!concreteTypeRepository) {
|
|
100528
100631
|
return err$3([
|
|
@@ -100546,9 +100649,15 @@
|
|
|
100546
100649
|
request: input.request,
|
|
100547
100650
|
parentFieldSelection: input.parentFieldSelection
|
|
100548
100651
|
};
|
|
100549
|
-
const result = concreteTypeRepository.write(
|
|
100652
|
+
const result = concreteTypeRepository.write(
|
|
100653
|
+
cache,
|
|
100654
|
+
normalizeInput
|
|
100655
|
+
);
|
|
100550
100656
|
if (result.isOk()) {
|
|
100551
|
-
return ok$3({
|
|
100657
|
+
return ok$3({
|
|
100658
|
+
discriminator,
|
|
100659
|
+
data: result.value
|
|
100660
|
+
});
|
|
100552
100661
|
}
|
|
100553
100662
|
return result;
|
|
100554
100663
|
}
|
|
@@ -100686,7 +100795,10 @@
|
|
|
100686
100795
|
}
|
|
100687
100796
|
]);
|
|
100688
100797
|
}
|
|
100689
|
-
const discriminator = this.getTypeDiscriminator(
|
|
100798
|
+
const discriminator = this.getTypeDiscriminator(
|
|
100799
|
+
input.data,
|
|
100800
|
+
input.selections
|
|
100801
|
+
);
|
|
100690
100802
|
const concreteTypeRepository = this.possibleTypes[discriminator];
|
|
100691
100803
|
if (!concreteTypeRepository) {
|
|
100692
100804
|
return err$3([
|
|
@@ -100710,9 +100822,15 @@
|
|
|
100710
100822
|
request: input.request,
|
|
100711
100823
|
parentFieldSelection: input.parentFieldSelection
|
|
100712
100824
|
};
|
|
100713
|
-
const result = concreteTypeRepository.write(
|
|
100825
|
+
const result = concreteTypeRepository.write(
|
|
100826
|
+
cache,
|
|
100827
|
+
normalizeInput
|
|
100828
|
+
);
|
|
100714
100829
|
if (result.isOk()) {
|
|
100715
|
-
return ok$3({
|
|
100830
|
+
return ok$3({
|
|
100831
|
+
discriminator,
|
|
100832
|
+
data: result.value
|
|
100833
|
+
});
|
|
100716
100834
|
}
|
|
100717
100835
|
return result;
|
|
100718
100836
|
}
|
|
@@ -101301,7 +101419,9 @@
|
|
|
101301
101419
|
const err = (err2) => new Err(err2);
|
|
101302
101420
|
function resolvedPromiseLike(result) {
|
|
101303
101421
|
if (isPromiseLike(result)) {
|
|
101304
|
-
return result.then(
|
|
101422
|
+
return result.then(
|
|
101423
|
+
(nextResult) => nextResult
|
|
101424
|
+
);
|
|
101305
101425
|
}
|
|
101306
101426
|
return {
|
|
101307
101427
|
then: (onFulfilled, _onRejected) => {
|
|
@@ -101318,7 +101438,9 @@
|
|
|
101318
101438
|
}
|
|
101319
101439
|
function rejectedPromiseLike(reason) {
|
|
101320
101440
|
if (isPromiseLike(reason)) {
|
|
101321
|
-
return reason.then(
|
|
101441
|
+
return reason.then(
|
|
101442
|
+
(nextResult) => nextResult
|
|
101443
|
+
);
|
|
101322
101444
|
}
|
|
101323
101445
|
return {
|
|
101324
101446
|
then: (_onFulfilled, onRejected) => {
|
|
@@ -101347,7 +101469,10 @@
|
|
|
101347
101469
|
if (!decorators || decorators.length === 0) {
|
|
101348
101470
|
return baseCommand;
|
|
101349
101471
|
}
|
|
101350
|
-
return decorators.reduce(
|
|
101472
|
+
return decorators.reduce(
|
|
101473
|
+
(command, decorator) => decorator(command, options),
|
|
101474
|
+
baseCommand
|
|
101475
|
+
);
|
|
101351
101476
|
}
|
|
101352
101477
|
|
|
101353
101478
|
class Analytics__AnalyticsBrowseRepository extends UnidentifiableGraphQLTypeRepository {
|
|
@@ -106768,7 +106893,7 @@
|
|
|
106768
106893
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
106769
106894
|
}
|
|
106770
106895
|
}
|
|
106771
|
-
// version: 1.
|
|
106896
|
+
// version: 1.445.0-6d38a08808
|
|
106772
106897
|
|
|
106773
106898
|
function createFragmentMap(documentNode) {
|
|
106774
106899
|
const fragments = {};
|
|
@@ -135975,7 +136100,7 @@
|
|
|
135975
136100
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
135976
136101
|
instrument: instrument$1,
|
|
135977
136102
|
});
|
|
135978
|
-
// version: 1.
|
|
136103
|
+
// version: 1.445.0-6d38a08808
|
|
135979
136104
|
|
|
135980
136105
|
// On core the unstable adapters are re-exported with different names,
|
|
135981
136106
|
// we want to match them here.
|
|
@@ -136127,7 +136252,7 @@
|
|
|
136127
136252
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
136128
136253
|
graphQLImperative = ldsAdapter;
|
|
136129
136254
|
});
|
|
136130
|
-
// version: 1.
|
|
136255
|
+
// version: 1.445.0-6d38a08808
|
|
136131
136256
|
|
|
136132
136257
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
136133
136258
|
__proto__: null,
|
|
@@ -136926,7 +137051,7 @@
|
|
|
136926
137051
|
function register(r) {
|
|
136927
137052
|
callbacks$1.forEach((callback) => callback(r));
|
|
136928
137053
|
}
|
|
136929
|
-
// version: 1.
|
|
137054
|
+
// version: 1.445.0-117c9de71a
|
|
136930
137055
|
|
|
136931
137056
|
/**
|
|
136932
137057
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -138236,4 +138361,4 @@
|
|
|
138236
138361
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
138237
138362
|
|
|
138238
138363
|
}));
|
|
138239
|
-
// version: 1.
|
|
138364
|
+
// version: 1.445.0-117c9de71a
|