@salesforce/lds-network-aura 1.199.1 → 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.
Files changed (2) hide show
  1. package/dist/ldsNetwork.js +20 -1
  2. package/package.json +1 -1
@@ -778,8 +778,10 @@ const CREATE_INDUSTRIES_CONTEXT_TAGS_PATH = new RegExp(`${CONNECT_BASE_URI}/cont
778
778
  const INDUSTRIES_CONTEXT_TAGS_PATH = new RegExp(`${CONNECT_BASE_URI}/context-definitions/([A-Za-z0-9]){15,18}/context-tags/([A-Za-z0-9]){15,18}$`, 'i');
779
779
  const GET_INDUSTRIES_CONTEXT_TAGS_PATH = new RegExp(`${CONNECT_BASE_URI}/context-definitions/([A-Za-z0-9]){15,18}/context-tags$`, 'i');
780
780
  const GET_INDUSTRIES_CONTEXT_RUNTIME_PATH = new RegExp(`${CONNECT_BASE_URI}/context/([A-Za-z0-9_]){5,255}`, 'i');
781
+ const INDUSTRIES_CONTEXT_ATTRIBUTELIST_MAPPING_PATH = new RegExp(`${CONNECT_BASE_URI}/context-node-mappings/([A-Za-z0-9]){15,18}/context-attribute-mappings$`, 'i');
781
782
  const CREATE_INDUSTRIES_CONTEXT_ATTRIBUTENODE_MAPPING_PATH = new RegExp(`${CONNECT_BASE_URI}/contextmapping/attributenode$`, 'i');
782
783
  const INDUSTRIES_CONTEXT_ATTRIBUTENODE_MAPPING_PATH = new RegExp(`${CONNECT_BASE_URI}/contextmapping/attributenode/([A-Za-z0-9]){15,18}$`, 'i');
784
+ const INDUSTRIES_CONTEXT_ATTRIBUTE_MAPPING_PATH = new RegExp(`${CONNECT_BASE_URI}/context-node-mappings/([A-Za-z0-9]){15,18}/context-attribute-mappings/([A-Za-z0-9]){15,18}$`, 'i');
783
785
  const CREATE_INDUSTRIES_CONTEXT_NODE_MAPPING_PATH = new RegExp(`${CONNECT_BASE_URI}/contextmapping/node$`, 'i');
784
786
  const INDUSTRIES_CONTEXT_NODE_MAPPING_PATH = new RegExp(`${CONNECT_BASE_URI}/contextmapping/node/([A-Za-z0-9]){15,18}$`, 'i');
785
787
  const INDUSTRIES_CONTEXT_NODE_LIST_PATH = new RegExp(`${CONNECT_BASE_URI}/context-definitions/([A-Za-z0-9]){15,18}/context-nodes`, 'i');
@@ -1479,9 +1481,11 @@ const industriesContext = [
1479
1481
  generateAdapter('delete', CONNECT_BASE_URI, INDUSTRIES_CONTEXT_MAPPING_PATH, 'ContextResourceFamilyController.deleteContextMapping'),
1480
1482
  generateAdapter('get', CONNECT_BASE_URI, INDUSTRIES_CONTEXT_MAPPING_PATH, 'ContextResourceFamilyController.getContextMapping'),
1481
1483
  generateAdapter('patch', CONNECT_BASE_URI, INDUSTRIES_CONTEXT_MAPPING_PATH, 'ContextResourceFamilyController.updateContextMapping'),
1484
+ generateAdapter('post', CONNECT_BASE_URI, INDUSTRIES_CONTEXT_ATTRIBUTELIST_MAPPING_PATH, 'ContextResourceFamilyController.createContextAttributeMappings'),
1482
1485
  generateAdapter('post', CONNECT_BASE_URI, CREATE_INDUSTRIES_CONTEXT_MAPPINGS_PATH, 'ContextResourceFamilyController.createContextMappings'),
1483
1486
  generateAdapter('delete', CONNECT_BASE_URI, INDUSTRIES_CONTEXT_MAPPINGS_PATH, 'ContextResourceFamilyController.deleteContextServiceMapping'),
1484
1487
  generateAdapter('get', CONNECT_BASE_URI, INDUSTRIES_CONTEXT_MAPPINGS_PATH, 'ContextResourceFamilyController.getContextServiceMapping'),
1488
+ generateAdapter('patch', CONNECT_BASE_URI, INDUSTRIES_CONTEXT_ATTRIBUTELIST_MAPPING_PATH, 'ContextResourceFamilyController.updateContextAttributeMappings'),
1485
1489
  generateAdapter('patch', CONNECT_BASE_URI, CREATE_INDUSTRIES_CONTEXT_MAPPINGS_PATH, 'ContextResourceFamilyController.updateContextMappings'),
1486
1490
  generateAdapter('post', CONNECT_BASE_URI, CREATE_INDUSTRIES_CONTEXT_TAGS_PATH, 'ContextResourceFamilyController.createContextTags'),
1487
1491
  generateAdapter('delete', CONNECT_BASE_URI, INDUSTRIES_CONTEXT_TAGS_PATH, 'ContextResourceFamilyController.deleteContextServiceTag'),
@@ -1492,6 +1496,8 @@ const industriesContext = [
1492
1496
  generateAdapter('delete', CONNECT_BASE_URI, INDUSTRIES_CONTEXT_ATTRIBUTENODE_MAPPING_PATH, 'ContextResourceFamilyController.deleteContextAttributeMapping'),
1493
1497
  generateAdapter('get', CONNECT_BASE_URI, INDUSTRIES_CONTEXT_ATTRIBUTENODE_MAPPING_PATH, 'ContextResourceFamilyController.getContextAttributeMapping'),
1494
1498
  generateAdapter('patch', CONNECT_BASE_URI, INDUSTRIES_CONTEXT_ATTRIBUTENODE_MAPPING_PATH, 'ContextResourceFamilyController.updateContextAttributeMapping'),
1499
+ generateAdapter('delete', CONNECT_BASE_URI, INDUSTRIES_CONTEXT_ATTRIBUTE_MAPPING_PATH, 'ContextResourceFamilyController.deleteContextServiceAttributeMapping'),
1500
+ generateAdapter('get', CONNECT_BASE_URI, INDUSTRIES_CONTEXT_ATTRIBUTE_MAPPING_PATH, 'ContextResourceFamilyController.getContextServiceAttributeMapping'),
1495
1501
  generateAdapter('post', CONNECT_BASE_URI, CREATE_INDUSTRIES_CONTEXT_NODE_MAPPING_PATH, 'ContextResourceFamilyController.createContextNodeMapping'),
1496
1502
  generateAdapter('delete', CONNECT_BASE_URI, INDUSTRIES_CONTEXT_NODE_MAPPING_PATH, 'ContextResourceFamilyController.deleteContextNodeMapping'),
1497
1503
  generateAdapter('get', CONNECT_BASE_URI, INDUSTRIES_CONTEXT_NODE_MAPPING_PATH, 'ContextResourceFamilyController.getContextNodeMapping'),
@@ -2250,11 +2256,13 @@ var UiApiListsController;
2250
2256
  UiApiListsController["GetListInfosByName"] = "ListUiController.getListInfosByName";
2251
2257
  UiApiListsController["GetListRecordsByName"] = "ListUiController.getListRecordsByName";
2252
2258
  UiApiListsController["UpdateListInfoByName"] = "ListUiController.updateListInfoByName";
2259
+ UiApiListsController["GetListObjectInfo"] = "ListUiController.getListObjectInfo";
2253
2260
  })(UiApiListsController || (UiApiListsController = {}));
2254
2261
  const UIAPI_LIST_RECORDS_PATH = `${UI_API_BASE_URI$1}/list-records/`;
2255
2262
  const UIAPI_LIST_UI_PATH = `${UI_API_BASE_URI$1}/list-ui/`;
2256
2263
  const UIAPI_LIST_INFO_PATH = `${UI_API_BASE_URI$1}/list-info/`;
2257
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/`;
2258
2266
  function getListRecordsByName(resourceRequest) {
2259
2267
  const { urlParams: { objectApiName, listViewApiName }, queryParams: { fields, optionalFields, pageSize, pageToken, sortBy }, } = resourceRequest;
2260
2268
  const params = buildUiApiParams({
@@ -2346,6 +2354,13 @@ function getListsByObjectName(resourceRequest) {
2346
2354
  }, resourceRequest);
2347
2355
  return dispatchAction(UiApiListsController.GetListsByObjectName, params);
2348
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
+ }
2349
2364
  // .../list-records/${objectApiName}/${listViewApiName}
2350
2365
  router.get((path) => path.startsWith(UIAPI_LIST_RECORDS_PATH) && /list-records\/.*\//.test(path), getListRecordsByName);
2351
2366
  // .../list-records/${listViewId}
@@ -2363,6 +2378,10 @@ router.get((path) => path.startsWith(`${UIAPI_LIST_INFO_BATCH_PATH}`), getListIn
2363
2378
  // .../list-info/${objectApiName}/${listViewApiName}
2364
2379
  router.patch((path) => path.startsWith(UIAPI_LIST_INFO_PATH), updateListInfoByName);
2365
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);
2366
2385
 
2367
2386
  const UIAPI_LOOKUP_RECORDS = `${UI_API_BASE_URI$1}/lookups`;
2368
2387
  const LookupRecords = 'LookupController.getLookupRecords';
@@ -3236,4 +3255,4 @@ function auraNetworkAdapter(resourceRequest) {
3236
3255
  var main = platformNetworkAdapter(auraNetworkAdapter);
3237
3256
 
3238
3257
  export { main as default, forceRecordTransactionsDisabled, instrument$1 as instrument, instrument as ldsNetworkAdapterInstrument };
3239
- // version: 1.199.1-4bf260c39
3258
+ // version: 1.201.0-17060accd
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-network-aura",
3
- "version": "1.199.1",
3
+ "version": "1.201.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS Network Adapter for Aura Runtime",
6
6
  "main": "dist/ldsNetwork.js",