@salesforce/lwc-adapters-uiapi 1.248.0 → 1.249.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +119 -42
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -19,12 +19,15 @@ var SnapshotState;
|
|
|
19
19
|
const { create: create$1, entries, freeze: freeze$1, keys: keys$1, values } = Object;
|
|
20
20
|
const { isArray: isArray$1 } = Array;
|
|
21
21
|
const { parse: parse$2, stringify: stringify$1 } = JSON;
|
|
22
|
+
const WeakSetCtor = WeakSet;
|
|
22
23
|
|
|
24
|
+
const deeplyFrozen = new WeakSetCtor();
|
|
23
25
|
function deepFreeze(value) {
|
|
24
|
-
// No need to freeze primitives
|
|
25
|
-
if (typeof value !== 'object' || value === null) {
|
|
26
|
+
// No need to freeze primitives or already frozen stuff
|
|
27
|
+
if (typeof value !== 'object' || value === null || deeplyFrozen.has(value)) {
|
|
26
28
|
return;
|
|
27
29
|
}
|
|
30
|
+
deeplyFrozen.add(value);
|
|
28
31
|
if (isArray$1(value)) {
|
|
29
32
|
for (let i = 0, len = value.length; i < len; i += 1) {
|
|
30
33
|
deepFreeze(value[i]);
|
|
@@ -566,7 +569,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
566
569
|
}
|
|
567
570
|
return resourceParams;
|
|
568
571
|
}
|
|
569
|
-
// engine version: 0.
|
|
572
|
+
// engine version: 0.152.2-f6f687b3
|
|
570
573
|
|
|
571
574
|
/**
|
|
572
575
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -12046,22 +12049,12 @@ function _markMissingPath(record, path) {
|
|
|
12046
12049
|
const fieldValueRepresentation = record.object('fields');
|
|
12047
12050
|
const fieldName = path.shift();
|
|
12048
12051
|
if (fieldValueRepresentation.isUndefined(fieldName) === true) {
|
|
12049
|
-
|
|
12050
|
-
// an undefined/non-present __ref if isMissing is present
|
|
12051
|
-
fieldValueRepresentation.write(fieldName, {
|
|
12052
|
-
__ref: undefined,
|
|
12053
|
-
isMissing: true,
|
|
12054
|
-
});
|
|
12052
|
+
writeMissingFieldToStore(fieldValueRepresentation, fieldName);
|
|
12055
12053
|
return;
|
|
12056
12054
|
}
|
|
12057
12055
|
const link = fieldValueRepresentation.link(fieldName);
|
|
12058
12056
|
if (link.isPending()) {
|
|
12059
|
-
|
|
12060
|
-
// an undefined/non-present __ref if isMissing is present
|
|
12061
|
-
fieldValueRepresentation.write(fieldName, {
|
|
12062
|
-
__ref: undefined,
|
|
12063
|
-
isMissing: true,
|
|
12064
|
-
});
|
|
12057
|
+
writeMissingFieldToStore(fieldValueRepresentation, fieldName);
|
|
12065
12058
|
}
|
|
12066
12059
|
else if (path.length > 0 && link.isMissing() === false) {
|
|
12067
12060
|
const fieldValue = link.follow();
|
|
@@ -12077,6 +12070,19 @@ function _markMissingPath(record, path) {
|
|
|
12077
12070
|
}
|
|
12078
12071
|
}
|
|
12079
12072
|
}
|
|
12073
|
+
/**
|
|
12074
|
+
* Graph Node Directly modifies store entries, which is generally a non-starter.
|
|
12075
|
+
* Until we can refactor this mess, you need to use this function to safely mark the RecordRepresentation
|
|
12076
|
+
* as a seenId in the store when you perform this mutation.
|
|
12077
|
+
*/
|
|
12078
|
+
function writeMissingFieldToStore(field, fieldName) {
|
|
12079
|
+
// TODO [W-6900046]: remove cast, make RecordRepresentationNormalized['fields'] accept
|
|
12080
|
+
// an undefined/non-present __ref if isMissing is present
|
|
12081
|
+
field.write(fieldName, {
|
|
12082
|
+
__ref: undefined,
|
|
12083
|
+
isMissing: true,
|
|
12084
|
+
});
|
|
12085
|
+
}
|
|
12080
12086
|
/**
|
|
12081
12087
|
* Tells you if an objectApiName is supported by UI API or not.
|
|
12082
12088
|
* Note: Luvio does not currently support all the entities, the list is limited to UI API supported entities
|
|
@@ -12228,8 +12234,11 @@ function mergeAndRefreshLowerVersionRecord(luvio, incoming, existing, incomingTr
|
|
|
12228
12234
|
return existing;
|
|
12229
12235
|
}
|
|
12230
12236
|
function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
|
|
12231
|
-
const
|
|
12232
|
-
|
|
12237
|
+
const recordKey = keyBuilder$3b(luvio, {
|
|
12238
|
+
recordId: incoming.id,
|
|
12239
|
+
});
|
|
12240
|
+
const incomingNode = luvio.wrapNormalizedGraphNode(incoming, recordKey);
|
|
12241
|
+
const existingNode = luvio.wrapNormalizedGraphNode(existing, recordKey);
|
|
12233
12242
|
const incomingTrackedFieldsTrieRoot = {
|
|
12234
12243
|
name: incoming.apiName,
|
|
12235
12244
|
children: {},
|
|
@@ -12238,9 +12247,6 @@ function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
|
|
|
12238
12247
|
name: existing.apiName,
|
|
12239
12248
|
children: {},
|
|
12240
12249
|
};
|
|
12241
|
-
const recordKey = keyBuilder$3b(luvio, {
|
|
12242
|
-
recordId: incoming.id,
|
|
12243
|
-
});
|
|
12244
12250
|
const trackedFieldsConfig = {
|
|
12245
12251
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMergeConflict(),
|
|
12246
12252
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
@@ -12790,10 +12796,11 @@ function buildCachedSnapshotCachePolicy$S(context, storeLookup) {
|
|
|
12790
12796
|
}
|
|
12791
12797
|
function buildNetworkSnapshotCachePolicy$S(context, coercedAdapterRequestContext) {
|
|
12792
12798
|
const { config, luvio } = context;
|
|
12793
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
12799
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
12794
12800
|
const dispatchOptions = {
|
|
12795
12801
|
resourceRequestContext: {
|
|
12796
12802
|
requestCorrelator,
|
|
12803
|
+
sourceContext,
|
|
12797
12804
|
},
|
|
12798
12805
|
eventObservers,
|
|
12799
12806
|
};
|
|
@@ -15963,10 +15970,11 @@ function buildCachedListUiSnapshot$1(context, storeLookup) {
|
|
|
15963
15970
|
}
|
|
15964
15971
|
function buildNetworkListUiSnapshot$1(context, coercedAdapterRequestContext) {
|
|
15965
15972
|
const { config, listInfo, listUi, luvio } = context;
|
|
15966
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
15973
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
15967
15974
|
const dispatchOptions = {
|
|
15968
15975
|
resourceRequestContext: {
|
|
15969
15976
|
requestCorrelator,
|
|
15977
|
+
sourceContext,
|
|
15970
15978
|
},
|
|
15971
15979
|
eventObservers,
|
|
15972
15980
|
};
|
|
@@ -16327,10 +16335,11 @@ function buildCachedListUiSnapshot(context, storeLookup) {
|
|
|
16327
16335
|
}
|
|
16328
16336
|
function buildNetworkListUiSnapshot(context, coercedAdapterRequestContext) {
|
|
16329
16337
|
const { adapterContext, config, listInfo, listUi, luvio } = context;
|
|
16330
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
16338
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
16331
16339
|
const dispatchOptions = {
|
|
16332
16340
|
resourceRequestContext: {
|
|
16333
16341
|
requestCorrelator,
|
|
16342
|
+
sourceContext,
|
|
16334
16343
|
},
|
|
16335
16344
|
eventObservers,
|
|
16336
16345
|
};
|
|
@@ -18963,10 +18972,11 @@ function buildCachedRecordUiRepresentationSnapshot(context, storeLookup) {
|
|
|
18963
18972
|
}
|
|
18964
18973
|
}
|
|
18965
18974
|
function buildNetworkRecordUiRepresentationSnapshot(context, coercedAdapterRequestContext) {
|
|
18966
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
18975
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
18967
18976
|
const dispatchOptions = {
|
|
18968
18977
|
resourceRequestContext: {
|
|
18969
18978
|
requestCorrelator,
|
|
18979
|
+
sourceContext,
|
|
18970
18980
|
},
|
|
18971
18981
|
eventObservers,
|
|
18972
18982
|
};
|
|
@@ -19177,10 +19187,11 @@ function buildNetworkSnapshot$10(context, coercedAdapterRequestContext) {
|
|
|
19177
19187
|
const { recordId } = config;
|
|
19178
19188
|
const optionalFields = config.optionalFields === undefined ? [] : dedupe(config.optionalFields).sort();
|
|
19179
19189
|
const refresh = buildSnapshotRefresh$3(luvio, config);
|
|
19180
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
19190
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
19181
19191
|
const dispatchOptions = {
|
|
19182
19192
|
resourceRequestContext: {
|
|
19183
19193
|
requestCorrelator,
|
|
19194
|
+
sourceContext,
|
|
19184
19195
|
},
|
|
19185
19196
|
eventObservers,
|
|
19186
19197
|
};
|
|
@@ -19492,7 +19503,7 @@ const notifyChangeFactory = (luvio) => {
|
|
|
19492
19503
|
const responsePromises = [];
|
|
19493
19504
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
19494
19505
|
const { key, record } = entries[i];
|
|
19495
|
-
const node = luvio.wrapNormalizedGraphNode(record);
|
|
19506
|
+
const node = luvio.wrapNormalizedGraphNode(record, key);
|
|
19496
19507
|
const optionalFields = getTrackedFields(key, node, {
|
|
19497
19508
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnNotifyChange(),
|
|
19498
19509
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
@@ -28696,10 +28707,11 @@ function buildCachedSnapshot$3(luvio, config) {
|
|
|
28696
28707
|
}
|
|
28697
28708
|
function buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext) {
|
|
28698
28709
|
const { config, luvio } = context;
|
|
28699
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
28710
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
28700
28711
|
const dispatchOptions = {
|
|
28701
28712
|
resourceRequestContext: {
|
|
28702
28713
|
requestCorrelator,
|
|
28714
|
+
sourceContext,
|
|
28703
28715
|
},
|
|
28704
28716
|
eventObservers,
|
|
28705
28717
|
};
|
|
@@ -30405,10 +30417,11 @@ function buildNetworkSnapshotCachePolicy$m(context, coercedAdapterRequestContext
|
|
|
30405
30417
|
if (uncachedRecordIds !== undefined) {
|
|
30406
30418
|
config.uncachedRecordIds = uncachedRecordIds;
|
|
30407
30419
|
}
|
|
30408
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
30420
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
30409
30421
|
const dispatchOptions = {
|
|
30410
30422
|
resourceRequestContext: {
|
|
30411
30423
|
requestCorrelator,
|
|
30424
|
+
sourceContext,
|
|
30412
30425
|
},
|
|
30413
30426
|
eventObservers,
|
|
30414
30427
|
};
|
|
@@ -36358,12 +36371,38 @@ function validate$h(obj, path = 'SearchAnswersResultRepresentation') {
|
|
|
36358
36371
|
}
|
|
36359
36372
|
|
|
36360
36373
|
const TTL$b = 200;
|
|
36361
|
-
const VERSION$1h = "
|
|
36374
|
+
const VERSION$1h = "877ca614d967f458099a6ae606b1cd1b";
|
|
36362
36375
|
function validate$g(obj, path = 'SearchResultsSummaryRepresentation') {
|
|
36363
36376
|
const v_error = (() => {
|
|
36364
36377
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
36365
36378
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
36366
36379
|
}
|
|
36380
|
+
const obj_configurationName = obj.configurationName;
|
|
36381
|
+
const path_configurationName = path + '.configurationName';
|
|
36382
|
+
let obj_configurationName_union0 = null;
|
|
36383
|
+
const obj_configurationName_union0_error = (() => {
|
|
36384
|
+
if (typeof obj_configurationName !== 'string') {
|
|
36385
|
+
return new TypeError('Expected "string" but received "' + typeof obj_configurationName + '" (at "' + path_configurationName + '")');
|
|
36386
|
+
}
|
|
36387
|
+
})();
|
|
36388
|
+
if (obj_configurationName_union0_error != null) {
|
|
36389
|
+
obj_configurationName_union0 = obj_configurationName_union0_error.message;
|
|
36390
|
+
}
|
|
36391
|
+
let obj_configurationName_union1 = null;
|
|
36392
|
+
const obj_configurationName_union1_error = (() => {
|
|
36393
|
+
if (obj_configurationName !== null) {
|
|
36394
|
+
return new TypeError('Expected "null" but received "' + typeof obj_configurationName + '" (at "' + path_configurationName + '")');
|
|
36395
|
+
}
|
|
36396
|
+
})();
|
|
36397
|
+
if (obj_configurationName_union1_error != null) {
|
|
36398
|
+
obj_configurationName_union1 = obj_configurationName_union1_error.message;
|
|
36399
|
+
}
|
|
36400
|
+
if (obj_configurationName_union0 && obj_configurationName_union1) {
|
|
36401
|
+
let message = 'Object doesn\'t match union (at "' + path_configurationName + '")';
|
|
36402
|
+
message += '\n' + obj_configurationName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
36403
|
+
message += '\n' + obj_configurationName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
36404
|
+
return new TypeError(message);
|
|
36405
|
+
}
|
|
36367
36406
|
const obj_keywordSearchResults = obj.keywordSearchResults;
|
|
36368
36407
|
const path_keywordSearchResults = path + '.keywordSearchResults';
|
|
36369
36408
|
let obj_keywordSearchResults_union0 = null;
|
|
@@ -36437,11 +36476,12 @@ function validate$g(obj, path = 'SearchResultsSummaryRepresentation') {
|
|
|
36437
36476
|
}
|
|
36438
36477
|
const RepresentationType$e = 'SearchResultsSummaryRepresentation';
|
|
36439
36478
|
function keyBuilder$1m(luvio, config) {
|
|
36440
|
-
return keyPrefix + '::' + RepresentationType$e + ':' + config.query;
|
|
36479
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.query + ':' + (config.configurationName === null ? '' : config.configurationName);
|
|
36441
36480
|
}
|
|
36442
36481
|
function keyBuilderFromType$6(luvio, object) {
|
|
36443
36482
|
const keyParams = {
|
|
36444
|
-
query: object.query
|
|
36483
|
+
query: object.query,
|
|
36484
|
+
configurationName: object.configurationName
|
|
36445
36485
|
};
|
|
36446
36486
|
return keyBuilder$1m(luvio, keyParams);
|
|
36447
36487
|
}
|
|
@@ -36489,7 +36529,8 @@ function select$1f(luvio, params) {
|
|
|
36489
36529
|
}
|
|
36490
36530
|
function keyBuilder$1l(luvio, params) {
|
|
36491
36531
|
return keyBuilder$1m(luvio, {
|
|
36492
|
-
query: params.queryParams.q
|
|
36532
|
+
query: params.queryParams.q,
|
|
36533
|
+
configurationName: params.body.configurationName || null
|
|
36493
36534
|
});
|
|
36494
36535
|
}
|
|
36495
36536
|
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -36542,6 +36583,7 @@ const adapterName$d = 'getSearchResults';
|
|
|
36542
36583
|
const getSearchResults_ConfigPropertyMetadata = [
|
|
36543
36584
|
generateParamConfigMetadata('q', true, 1 /* QueryParameter */, 0 /* String */),
|
|
36544
36585
|
generateParamConfigMetadata('answerTypes', false, 2 /* Body */, 0 /* String */, true),
|
|
36586
|
+
generateParamConfigMetadata('configurationName', false, 2 /* Body */, 0 /* String */),
|
|
36545
36587
|
generateParamConfigMetadata('objectApiNames', false, 2 /* Body */, 0 /* String */, true),
|
|
36546
36588
|
];
|
|
36547
36589
|
const getSearchResults_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSearchResults_ConfigPropertyMetadata);
|
|
@@ -36696,12 +36738,38 @@ function validate$f(obj, path = 'SearchFilterInputRepresentation') {
|
|
|
36696
36738
|
}
|
|
36697
36739
|
|
|
36698
36740
|
const TTL$a = 200;
|
|
36699
|
-
const VERSION$1g = "
|
|
36741
|
+
const VERSION$1g = "3102453bf10ea449d9665914d5f5febf";
|
|
36700
36742
|
function validate$e(obj, path = 'KeywordSearchResultsSummaryRepresentation') {
|
|
36701
36743
|
const v_error = (() => {
|
|
36702
36744
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
36703
36745
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
36704
36746
|
}
|
|
36747
|
+
const obj_configurationName = obj.configurationName;
|
|
36748
|
+
const path_configurationName = path + '.configurationName';
|
|
36749
|
+
let obj_configurationName_union0 = null;
|
|
36750
|
+
const obj_configurationName_union0_error = (() => {
|
|
36751
|
+
if (typeof obj_configurationName !== 'string') {
|
|
36752
|
+
return new TypeError('Expected "string" but received "' + typeof obj_configurationName + '" (at "' + path_configurationName + '")');
|
|
36753
|
+
}
|
|
36754
|
+
})();
|
|
36755
|
+
if (obj_configurationName_union0_error != null) {
|
|
36756
|
+
obj_configurationName_union0 = obj_configurationName_union0_error.message;
|
|
36757
|
+
}
|
|
36758
|
+
let obj_configurationName_union1 = null;
|
|
36759
|
+
const obj_configurationName_union1_error = (() => {
|
|
36760
|
+
if (obj_configurationName !== null) {
|
|
36761
|
+
return new TypeError('Expected "null" but received "' + typeof obj_configurationName + '" (at "' + path_configurationName + '")');
|
|
36762
|
+
}
|
|
36763
|
+
})();
|
|
36764
|
+
if (obj_configurationName_union1_error != null) {
|
|
36765
|
+
obj_configurationName_union1 = obj_configurationName_union1_error.message;
|
|
36766
|
+
}
|
|
36767
|
+
if (obj_configurationName_union0 && obj_configurationName_union1) {
|
|
36768
|
+
let message = 'Object doesn\'t match union (at "' + path_configurationName + '")';
|
|
36769
|
+
message += '\n' + obj_configurationName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
36770
|
+
message += '\n' + obj_configurationName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
36771
|
+
return new TypeError(message);
|
|
36772
|
+
}
|
|
36705
36773
|
const obj_keywordSearchResult = obj.keywordSearchResult;
|
|
36706
36774
|
const path_keywordSearchResult = path + '.keywordSearchResult';
|
|
36707
36775
|
const referencepath_keywordSearchResultValidationError = validate$k(obj_keywordSearchResult, path_keywordSearchResult);
|
|
@@ -36730,12 +36798,13 @@ function validate$e(obj, path = 'KeywordSearchResultsSummaryRepresentation') {
|
|
|
36730
36798
|
}
|
|
36731
36799
|
const RepresentationType$d = 'KeywordSearchResultsSummaryRepresentation';
|
|
36732
36800
|
function keyBuilder$1j(luvio, config) {
|
|
36733
|
-
return keyPrefix + '::' + RepresentationType$d + ':' + config.query + ':' + config.objectApiName;
|
|
36801
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.query + ':' + config.objectApiName + ':' + (config.configurationName === null ? '' : config.configurationName);
|
|
36734
36802
|
}
|
|
36735
36803
|
function keyBuilderFromType$5(luvio, object) {
|
|
36736
36804
|
const keyParams = {
|
|
36737
36805
|
query: object.query,
|
|
36738
|
-
objectApiName: object.objectApiName
|
|
36806
|
+
objectApiName: object.objectApiName,
|
|
36807
|
+
configurationName: object.configurationName
|
|
36739
36808
|
};
|
|
36740
36809
|
return keyBuilder$1j(luvio, keyParams);
|
|
36741
36810
|
}
|
|
@@ -36784,7 +36853,8 @@ function select$1d(luvio, params) {
|
|
|
36784
36853
|
function keyBuilder$1i(luvio, params) {
|
|
36785
36854
|
return keyBuilder$1j(luvio, {
|
|
36786
36855
|
query: params.queryParams.q,
|
|
36787
|
-
objectApiName: params.queryParams.objectApiName
|
|
36856
|
+
objectApiName: params.queryParams.objectApiName,
|
|
36857
|
+
configurationName: params.body.configurationName || null
|
|
36788
36858
|
});
|
|
36789
36859
|
}
|
|
36790
36860
|
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -36837,6 +36907,7 @@ const adapterName$c = 'getKeywordSearchResults';
|
|
|
36837
36907
|
const getKeywordSearchResults_ConfigPropertyMetadata = [
|
|
36838
36908
|
generateParamConfigMetadata('objectApiName', true, 1 /* QueryParameter */, 0 /* String */),
|
|
36839
36909
|
generateParamConfigMetadata('q', true, 1 /* QueryParameter */, 0 /* String */),
|
|
36910
|
+
generateParamConfigMetadata('configurationName', false, 2 /* Body */, 0 /* String */),
|
|
36840
36911
|
generateParamConfigMetadata('filters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
36841
36912
|
generateParamConfigMetadata('pageSize', false, 2 /* Body */, 3 /* Integer */),
|
|
36842
36913
|
generateParamConfigMetadata('pageToken', false, 2 /* Body */, 0 /* String */),
|
|
@@ -53626,10 +53697,11 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
53626
53697
|
}
|
|
53627
53698
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
53628
53699
|
const { luvio, config } = context;
|
|
53629
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
53700
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
53630
53701
|
const dispatchOptions = {
|
|
53631
53702
|
resourceRequestContext: {
|
|
53632
53703
|
requestCorrelator,
|
|
53704
|
+
sourceContext,
|
|
53633
53705
|
luvioRequestMethod: 'get',
|
|
53634
53706
|
},
|
|
53635
53707
|
eventObservers,
|
|
@@ -55752,10 +55824,11 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
55752
55824
|
}
|
|
55753
55825
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
55754
55826
|
const { config, adapterContext, luvio } = context;
|
|
55755
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
55827
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
55756
55828
|
const dispatchOptions = {
|
|
55757
55829
|
resourceRequestContext: {
|
|
55758
55830
|
requestCorrelator,
|
|
55831
|
+
sourceContext,
|
|
55759
55832
|
},
|
|
55760
55833
|
eventObservers,
|
|
55761
55834
|
};
|
|
@@ -56386,10 +56459,11 @@ const buildCachedSnapshot$1 = (luvio, context, config) => {
|
|
|
56386
56459
|
};
|
|
56387
56460
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
56388
56461
|
const { config, adapterContext, luvio } = context;
|
|
56389
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
56462
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
56390
56463
|
const dispatchOptions = {
|
|
56391
56464
|
resourceRequestContext: {
|
|
56392
56465
|
requestCorrelator,
|
|
56466
|
+
sourceContext,
|
|
56393
56467
|
},
|
|
56394
56468
|
eventObservers,
|
|
56395
56469
|
};
|
|
@@ -57026,10 +57100,11 @@ function buildCachedSnapshot(luvio, context, config) {
|
|
|
57026
57100
|
}
|
|
57027
57101
|
const buildNetworkSnapshotCachePolicy = (context, coercedAdapterRequestContext) => {
|
|
57028
57102
|
const { config, adapterContext, luvio } = context;
|
|
57029
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
57103
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
57030
57104
|
const dispatchOptions = {
|
|
57031
57105
|
resourceRequestContext: {
|
|
57032
57106
|
requestCorrelator,
|
|
57107
|
+
sourceContext,
|
|
57033
57108
|
},
|
|
57034
57109
|
eventObservers,
|
|
57035
57110
|
};
|
|
@@ -57785,10 +57860,11 @@ function createDispatchResourceRequestContext$1(requestContext) {
|
|
|
57785
57860
|
let dispatchOptions = undefined;
|
|
57786
57861
|
if (requestContext !== undefined) {
|
|
57787
57862
|
const coercedAdapterRequestContext = coerceAdapterRequestContext(requestContext);
|
|
57788
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
57863
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
57789
57864
|
dispatchOptions = {
|
|
57790
57865
|
resourceRequestContext: {
|
|
57791
57866
|
requestCorrelator,
|
|
57867
|
+
sourceContext,
|
|
57792
57868
|
luvioRequestMethod: undefined,
|
|
57793
57869
|
},
|
|
57794
57870
|
eventObservers,
|
|
@@ -57863,10 +57939,11 @@ function createDispatchResourceRequestContext(requestContext) {
|
|
|
57863
57939
|
let dispatchOptions = undefined;
|
|
57864
57940
|
if (requestContext !== undefined) {
|
|
57865
57941
|
const coercedAdapterRequestContext = coerceAdapterRequestContext(requestContext);
|
|
57866
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
57942
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
57867
57943
|
dispatchOptions = {
|
|
57868
57944
|
resourceRequestContext: {
|
|
57869
57945
|
requestCorrelator,
|
|
57946
|
+
sourceContext,
|
|
57870
57947
|
luvioRequestMethod: undefined,
|
|
57871
57948
|
},
|
|
57872
57949
|
eventObservers,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lwc-adapters-uiapi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.249.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "UIAPI adapters with LWC bindings",
|
|
6
6
|
"module": "dist/main.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@salesforce/lds-adapters-uiapi": "*"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@luvio/lwc-luvio": "0.
|
|
37
|
+
"@luvio/lwc-luvio": "0.152.2",
|
|
38
38
|
"@salesforce/lds-default-luvio": "*"
|
|
39
39
|
}
|
|
40
40
|
}
|