@salesforce/lds-network-aura 1.150.4 → 1.150.6
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/ldsNetwork.js +9 -4
- package/package.json +1 -1
package/dist/ldsNetwork.js
CHANGED
|
@@ -333,6 +333,7 @@ const LWR_APEX_BASE_URI = '/lwr/apex/v59.0';
|
|
|
333
333
|
const ApexController = 'ApexActionController.execute';
|
|
334
334
|
const CACHE_CONTROL = 'Cache-Control';
|
|
335
335
|
const X_SFDC_ALLOW_CONTINUATION = 'X-SFDC-Allow-Continuation';
|
|
336
|
+
const X_SFDC_LDS_ENDPOINTS = 'X-SFDC-LDS-Endpoints';
|
|
336
337
|
function splitNamespaceClassname(classname) {
|
|
337
338
|
const split = classname.split('__');
|
|
338
339
|
return split.length > 1 ? [split[0], split[1]] : ['', split[0]];
|
|
@@ -372,7 +373,10 @@ function executeGetApex(resourceRequest) {
|
|
|
372
373
|
});
|
|
373
374
|
}
|
|
374
375
|
function dispatchApexAction(endpoint, params, config) {
|
|
375
|
-
config.headers = {
|
|
376
|
+
config.headers = {
|
|
377
|
+
...config.headers,
|
|
378
|
+
[X_SFDC_LDS_ENDPOINTS]: `${endpoint}:${params.classname}.${params.method}`,
|
|
379
|
+
};
|
|
376
380
|
return executeGlobalControllerRawResponse(endpoint, params, config).then((body) => {
|
|
377
381
|
// Get return value from body
|
|
378
382
|
const returnValue = body.getReturnValue();
|
|
@@ -1334,7 +1338,7 @@ const fundraising = [
|
|
|
1334
1338
|
const cpq = [
|
|
1335
1339
|
generateAdapter('post', CPQ_BASE_URI, CPQ_PREVIEW_PATH, 'ICpqConnectFeatureController.preview'),
|
|
1336
1340
|
generateAdapter('post', CPQ_BASE_URI, CPQ_PRODUCT_DETAILS_PATH, 'ICpqConnectFeatureController.productDetails'),
|
|
1337
|
-
generateAdapter('post', CPQ_BASE_URI, CPQ_PRODUCT_SEARCH_PATH, 'ICpqConnectFeatureController.
|
|
1341
|
+
generateAdapter('post', CPQ_BASE_URI, CPQ_PRODUCT_SEARCH_PATH, 'ICpqConnectFeatureController.searchProductList'),
|
|
1338
1342
|
generateAdapter('post', CPQ_BASE_URI, CPQ_PRODUCT_LIST_PATH, 'ICpqConnectFeatureController.productList'),
|
|
1339
1343
|
generateAdapter('post', CPQ_BASE_URI, CPQ_CREATE_CART, 'ICpqConnectFeatureController.createCart'),
|
|
1340
1344
|
generateAdapter('get', CPQ_BASE_URI, CPQ_GET_CART, 'ICpqConnectFeatureController.getCart'),
|
|
@@ -2291,10 +2295,11 @@ function postRelatedListRecordsBatch(resourceRequest) {
|
|
|
2291
2295
|
return dispatchAction(UiApiRecordController.PostRelatedListRecordsBatch, params, undefined, instrumentationCallbacks);
|
|
2292
2296
|
}
|
|
2293
2297
|
function getRelatedListCount(resourceRequest) {
|
|
2294
|
-
const { urlParams } = resourceRequest;
|
|
2298
|
+
const { urlParams, queryParams } = resourceRequest;
|
|
2295
2299
|
const params = buildUiApiParams({
|
|
2296
2300
|
parentRecordId: urlParams.parentRecordId,
|
|
2297
2301
|
relatedListId: urlParams.relatedListId,
|
|
2302
|
+
maxCount: queryParams.maxCount,
|
|
2298
2303
|
}, resourceRequest);
|
|
2299
2304
|
return dispatchAction(UiApiRecordController.GetRelatedListCount, params);
|
|
2300
2305
|
}
|
|
@@ -3002,4 +3007,4 @@ function auraNetworkAdapter(resourceRequest) {
|
|
|
3002
3007
|
var main = platformNetworkAdapter(auraNetworkAdapter);
|
|
3003
3008
|
|
|
3004
3009
|
export { main as default, forceRecordTransactionsDisabled, instrument$1 as instrument, instrument as ldsNetworkAdapterInstrument };
|
|
3005
|
-
// version: 1.150.
|
|
3010
|
+
// version: 1.150.6-280d9d000
|