@salesforce/lds-network-aura 1.200.0 → 1.201.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/ldsNetwork.js +14 -1
- package/package.json +1 -1
package/dist/ldsNetwork.js
CHANGED
|
@@ -2256,11 +2256,13 @@ var UiApiListsController;
|
|
|
2256
2256
|
UiApiListsController["GetListInfosByName"] = "ListUiController.getListInfosByName";
|
|
2257
2257
|
UiApiListsController["GetListRecordsByName"] = "ListUiController.getListRecordsByName";
|
|
2258
2258
|
UiApiListsController["UpdateListInfoByName"] = "ListUiController.updateListInfoByName";
|
|
2259
|
+
UiApiListsController["GetListObjectInfo"] = "ListUiController.getListObjectInfo";
|
|
2259
2260
|
})(UiApiListsController || (UiApiListsController = {}));
|
|
2260
2261
|
const UIAPI_LIST_RECORDS_PATH = `${UI_API_BASE_URI$1}/list-records/`;
|
|
2261
2262
|
const UIAPI_LIST_UI_PATH = `${UI_API_BASE_URI$1}/list-ui/`;
|
|
2262
2263
|
const UIAPI_LIST_INFO_PATH = `${UI_API_BASE_URI$1}/list-info/`;
|
|
2263
2264
|
const UIAPI_LIST_INFO_BATCH_PATH = `${UIAPI_LIST_INFO_PATH}batch`;
|
|
2265
|
+
const UIAPI_LIST_OBJ_INFO_PATH = `${UI_API_BASE_URI$1}/list-object-info/`;
|
|
2264
2266
|
function getListRecordsByName(resourceRequest) {
|
|
2265
2267
|
const { urlParams: { objectApiName, listViewApiName }, queryParams: { fields, optionalFields, pageSize, pageToken, sortBy }, } = resourceRequest;
|
|
2266
2268
|
const params = buildUiApiParams({
|
|
@@ -2352,6 +2354,13 @@ function getListsByObjectName(resourceRequest) {
|
|
|
2352
2354
|
}, resourceRequest);
|
|
2353
2355
|
return dispatchAction(UiApiListsController.GetListsByObjectName, params);
|
|
2354
2356
|
}
|
|
2357
|
+
function getListObjectInfo(resourceRequest) {
|
|
2358
|
+
const { urlParams } = resourceRequest;
|
|
2359
|
+
const params = buildUiApiParams({
|
|
2360
|
+
objectApiName: urlParams.objectApiName,
|
|
2361
|
+
}, resourceRequest);
|
|
2362
|
+
return dispatchAction(UiApiListsController.GetListObjectInfo, params);
|
|
2363
|
+
}
|
|
2355
2364
|
// .../list-records/${objectApiName}/${listViewApiName}
|
|
2356
2365
|
router.get((path) => path.startsWith(UIAPI_LIST_RECORDS_PATH) && /list-records\/.*\//.test(path), getListRecordsByName);
|
|
2357
2366
|
// .../list-records/${listViewId}
|
|
@@ -2369,6 +2378,10 @@ router.get((path) => path.startsWith(`${UIAPI_LIST_INFO_BATCH_PATH}`), getListIn
|
|
|
2369
2378
|
// .../list-info/${objectApiName}/${listViewApiName}
|
|
2370
2379
|
router.patch((path) => path.startsWith(UIAPI_LIST_INFO_PATH), updateListInfoByName);
|
|
2371
2380
|
router.get((path) => path.startsWith(UIAPI_LIST_INFO_PATH) && /list-info\/.*\//.test(path), getListInfoByName);
|
|
2381
|
+
// .../list-object-info/${objectApiName}
|
|
2382
|
+
router.get((path) => path.startsWith(UIAPI_LIST_OBJ_INFO_PATH) &&
|
|
2383
|
+
/list-object-info\/.*\//.test(path) === false &&
|
|
2384
|
+
/00B[a-zA-Z\d]{15}$/.test(path) === false, getListObjectInfo);
|
|
2372
2385
|
|
|
2373
2386
|
const UIAPI_LOOKUP_RECORDS = `${UI_API_BASE_URI$1}/lookups`;
|
|
2374
2387
|
const LookupRecords = 'LookupController.getLookupRecords';
|
|
@@ -3242,4 +3255,4 @@ function auraNetworkAdapter(resourceRequest) {
|
|
|
3242
3255
|
var main = platformNetworkAdapter(auraNetworkAdapter);
|
|
3243
3256
|
|
|
3244
3257
|
export { main as default, forceRecordTransactionsDisabled, instrument$1 as instrument, instrument as ldsNetworkAdapterInstrument };
|
|
3245
|
-
// version: 1.
|
|
3258
|
+
// version: 1.201.0-17060accd
|