@salesforce/lds-network-aura 1.200.0 → 1.202.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.
Files changed (2) hide show
  1. package/dist/ldsNetwork.js +23 -1
  2. package/package.json +1 -1
@@ -703,6 +703,8 @@ const DELETE_SALES_USER_WORKING_HOURS_PATH = new RegExp(`${BASE_URI}/sales/worki
703
703
  const GET_SALES_USER_WORKING_HOURS_PATH = new RegExp(`${BASE_URI}/sales/working-hours/time-slots`, 'i');
704
704
  const PATCH_SALES_USER_WORKING_HOURS_PATH = new RegExp(`${BASE_URI}/sales/working-hours/time-slots`, 'i');
705
705
  const POST_SALES_USER_WORKING_HOURS_PATH = new RegExp(`${BASE_URI}/sales/working-hours/time-slots`, 'i');
706
+ const GET_ENGAGEMENT_WORKSPACE_OBJECTS_PATH = new RegExp(`${BASE_URI}/engagement-workspace/objects`, 'i');
707
+ const ENGAGEMENT_WORKSPACE_PERSONALIZATION_PATH = new RegExp(`${BASE_URI}/engagement-workspace/workspace-personalization`, 'i');
706
708
  const CREDENTIAL_PATH = new RegExp(`${NAMED_CREDENTIAL_BASE_URI}/credential$`, 'i');
707
709
  const OAUTH_CREDENTIAL_AUTH_URL_PATH = new RegExp(`${NAMED_CREDENTIAL_BASE_URI}/credential/auth-url/o-auth$`, 'i');
708
710
  const EXTERNAL_CREDENTIAL_PATH = new RegExp(`${NAMED_CREDENTIAL_BASE_URI}/external-credentials$`, 'i');
@@ -1366,6 +1368,12 @@ const salesUserWorkingHours = [
1366
1368
  generateAdapter('patch', BASE_URI, PATCH_SALES_USER_WORKING_HOURS_PATH, 'ISalesUserWorkingHoursFamilyController.updateSalesUserWorkingHours'),
1367
1369
  generateAdapter('post', BASE_URI, POST_SALES_USER_WORKING_HOURS_PATH, 'ISalesUserWorkingHoursFamilyController.postSalesUserWorkingHours'),
1368
1370
  ];
1371
+ const salesEngagementWorkspace = [
1372
+ generateAdapter('get', BASE_URI, GET_ENGAGEMENT_WORKSPACE_OBJECTS_PATH, 'IEngagementWorkspaceFamilyController.getEngagementWorkspaceObjects'),
1373
+ generateAdapter('get', BASE_URI, ENGAGEMENT_WORKSPACE_PERSONALIZATION_PATH, 'IEngagementWorkspaceFamilyController.getWorkspaceUserPersonalization'),
1374
+ generateAdapter('post', BASE_URI, ENGAGEMENT_WORKSPACE_PERSONALIZATION_PATH, 'IEngagementWorkspaceFamilyController.updateWorkspaceUserPersonalization'),
1375
+ generateAdapter('delete', BASE_URI, ENGAGEMENT_WORKSPACE_PERSONALIZATION_PATH, 'IEngagementWorkspaceFamilyController.deleteWorkspaceUserPersonalization'),
1376
+ ];
1369
1377
  const namedCredential = [
1370
1378
  generateAdapter('delete', NAMED_CREDENTIAL_BASE_URI, CREDENTIAL_PATH, 'NamedCredentialsController.deleteCredential'),
1371
1379
  generateAdapter('post', NAMED_CREDENTIAL_BASE_URI, OAUTH_CREDENTIAL_AUTH_URL_PATH, 'NamedCredentialsController.getOAuthCredentialAuthUrl'),
@@ -1608,6 +1616,7 @@ registerApiFamilyRoutes(externalDocApi);
1608
1616
  registerApiFamilyRoutes(globalization);
1609
1617
  registerApiFamilyRoutes(dataloading);
1610
1618
  registerApiFamilyRoutes(salesUserWorkingHours);
1619
+ registerApiFamilyRoutes(salesEngagementWorkspace);
1611
1620
  registerApiFamilyRoutes(scheduler);
1612
1621
  registerApiFamilyRoutes(industriesContext);
1613
1622
  registerApiFamilyRoutes(industriesPricing);
@@ -2256,11 +2265,13 @@ var UiApiListsController;
2256
2265
  UiApiListsController["GetListInfosByName"] = "ListUiController.getListInfosByName";
2257
2266
  UiApiListsController["GetListRecordsByName"] = "ListUiController.getListRecordsByName";
2258
2267
  UiApiListsController["UpdateListInfoByName"] = "ListUiController.updateListInfoByName";
2268
+ UiApiListsController["GetListObjectInfo"] = "ListUiController.getListObjectInfo";
2259
2269
  })(UiApiListsController || (UiApiListsController = {}));
2260
2270
  const UIAPI_LIST_RECORDS_PATH = `${UI_API_BASE_URI$1}/list-records/`;
2261
2271
  const UIAPI_LIST_UI_PATH = `${UI_API_BASE_URI$1}/list-ui/`;
2262
2272
  const UIAPI_LIST_INFO_PATH = `${UI_API_BASE_URI$1}/list-info/`;
2263
2273
  const UIAPI_LIST_INFO_BATCH_PATH = `${UIAPI_LIST_INFO_PATH}batch`;
2274
+ const UIAPI_LIST_OBJ_INFO_PATH = `${UI_API_BASE_URI$1}/list-object-info/`;
2264
2275
  function getListRecordsByName(resourceRequest) {
2265
2276
  const { urlParams: { objectApiName, listViewApiName }, queryParams: { fields, optionalFields, pageSize, pageToken, sortBy }, } = resourceRequest;
2266
2277
  const params = buildUiApiParams({
@@ -2352,6 +2363,13 @@ function getListsByObjectName(resourceRequest) {
2352
2363
  }, resourceRequest);
2353
2364
  return dispatchAction(UiApiListsController.GetListsByObjectName, params);
2354
2365
  }
2366
+ function getListObjectInfo(resourceRequest) {
2367
+ const { urlParams } = resourceRequest;
2368
+ const params = buildUiApiParams({
2369
+ objectApiName: urlParams.objectApiName,
2370
+ }, resourceRequest);
2371
+ return dispatchAction(UiApiListsController.GetListObjectInfo, params);
2372
+ }
2355
2373
  // .../list-records/${objectApiName}/${listViewApiName}
2356
2374
  router.get((path) => path.startsWith(UIAPI_LIST_RECORDS_PATH) && /list-records\/.*\//.test(path), getListRecordsByName);
2357
2375
  // .../list-records/${listViewId}
@@ -2369,6 +2387,10 @@ router.get((path) => path.startsWith(`${UIAPI_LIST_INFO_BATCH_PATH}`), getListIn
2369
2387
  // .../list-info/${objectApiName}/${listViewApiName}
2370
2388
  router.patch((path) => path.startsWith(UIAPI_LIST_INFO_PATH), updateListInfoByName);
2371
2389
  router.get((path) => path.startsWith(UIAPI_LIST_INFO_PATH) && /list-info\/.*\//.test(path), getListInfoByName);
2390
+ // .../list-object-info/${objectApiName}
2391
+ router.get((path) => path.startsWith(UIAPI_LIST_OBJ_INFO_PATH) &&
2392
+ /list-object-info\/.*\//.test(path) === false &&
2393
+ /00B[a-zA-Z\d]{15}$/.test(path) === false, getListObjectInfo);
2372
2394
 
2373
2395
  const UIAPI_LOOKUP_RECORDS = `${UI_API_BASE_URI$1}/lookups`;
2374
2396
  const LookupRecords = 'LookupController.getLookupRecords';
@@ -3242,4 +3264,4 @@ function auraNetworkAdapter(resourceRequest) {
3242
3264
  var main = platformNetworkAdapter(auraNetworkAdapter);
3243
3265
 
3244
3266
  export { main as default, forceRecordTransactionsDisabled, instrument$1 as instrument, instrument as ldsNetworkAdapterInstrument };
3245
- // version: 1.200.0-c4cb94fd9
3267
+ // version: 1.202.0-54dc8f339
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-network-aura",
3
- "version": "1.200.0",
3
+ "version": "1.202.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS Network Adapter for Aura Runtime",
6
6
  "main": "dist/ldsNetwork.js",