@salesforce/lds-network-aura 1.134.9 → 1.136.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 +17 -3
  2. package/package.json +1 -1
@@ -716,7 +716,7 @@ const INDUSTRIES_CONTEXT_NODE_MAPPING_PATH = new RegExp(`${CONNECT_BASE_URI}/con
716
716
  const DATALOADING_FEATURE_OBJECTS_PATH = new RegExp(`${CONNECT_BASE_URI}/industries/([A-Za-z0-9_]){5,255}/objects`, 'i');
717
717
  const GET_INDUSTRIES_PRICING_RECIPES_MAPPING_PATH = new RegExp(`${CONNECT_BASE_URI}/industries/pricing/recipe`, 'i');
718
718
  const CREATE_INDUSTRIES_PRICING_RECIPES_MAPPING_PATH = new RegExp(`${CONNECT_BASE_URI}/industries/pricing/recipe/mapping`, 'i');
719
- const GET_INDUSTRIES_PRICING_SYNC = new RegExp(`${CONNECT_BASE_URI}/industries/pricing/sync`, 'i');
719
+ const GET_INDUSTRIES_PRICING_SYNC_PARAM_PATH = new RegExp(`${CONNECT_BASE_URI}/industries/pricing/sync/([A-Za-z0-9_]){5,255}/syncInputParam/([A-Za-z0-9_]){5,255}`, 'i');
720
720
  function generateAdapter(method, baseUri, pathRegex, controller) {
721
721
  return {
722
722
  method,
@@ -749,6 +749,13 @@ const CPQ_PREVIEW_PATH = new RegExp(`${CPQ_BASE_URI}/preview`, 'i');
749
749
  const CPQ_PRODUCT_LIST_PATH = new RegExp(`${CPQ_BASE_URI}/products`, 'i');
750
750
  const CPQ_PRODUCT_DETAILS_PATH = new RegExp(`${CPQ_BASE_URI}/products/([A-Za-z0-9]){15,18}$`, 'i');
751
751
  const CPQ_PRODUCT_SEARCH_PATH = new RegExp(`${CPQ_BASE_URI}/products/search`, 'i');
752
+ const CPQ_CREATE_CART = new RegExp(`${CPQ_BASE_URI}/carts$`, 'i');
753
+ const CPQ_GET_CART = new RegExp(`${CPQ_BASE_URI}/carts/([A-Za-z0-9]+(-[A-Za-z0-9]+)+)`, 'i');
754
+ const CPQ_UPDATE_CART = new RegExp(`${CPQ_BASE_URI}/carts/([A-Za-z0-9]+(-[A-Za-z0-9]+)+)$`, 'i');
755
+ const CPQ_POST_CART_ITEM = new RegExp(`${CPQ_BASE_URI}/carts/([A-Za-z0-9]+(-[A-Za-z0-9]+)+)/items$`, 'i');
756
+ const CPQ_PATCH_CART_ITEM = new RegExp(`${CPQ_BASE_URI}/carts/([A-Za-z0-9]+(-[A-Za-z0-9]+)+)/items$`, 'i');
757
+ const CPQ_DELETE_CART_ITEM = new RegExp(`${CPQ_BASE_URI}/carts/([A-Za-z0-9]+(-[A-Za-z0-9]+)+)/items/([A-Za-z0-9]+(-[A-Za-z0-9]+)+)`, 'i');
758
+ const CPQ_PRICE_CART = new RegExp(`${CPQ_BASE_URI}/carts/([A-Za-z0-9]+(-[A-Za-z0-9]+)+)/price`, 'i');
752
759
  const FUNDRAISING_GIFT_COMMITMENT_PATH = new RegExp(`${FUNDRAISING_BASE_URI}/donor/[a-zA-Z0-9]{15,18}/commitment$`, 'i');
753
760
  const FUNDRAISING_CAMPAIGN_DEFAULT_DESIGNATION_PATH = new RegExp(`${FUNDRAISING_BASE_URI}/campaign/[a-zA-Z0-9]{15,18}/default-designations$`, 'i');
754
761
  const FUNDRAISING_COMMITMENT_DEFAULT_DESIGNATION_PATH = new RegExp(`${FUNDRAISING_BASE_URI}/commitment/[a-zA-Z0-9]{15,18}/default-designations$`, 'i');
@@ -1299,7 +1306,7 @@ const industriesContext = [
1299
1306
  const industriesPricing = [
1300
1307
  generateAdapter('get', CONNECT_BASE_URI, GET_INDUSTRIES_PRICING_RECIPES_MAPPING_PATH, 'PricingResourceFamilyController.getRecipeLookupTableMapping'),
1301
1308
  generateAdapter('post', CONNECT_BASE_URI, CREATE_INDUSTRIES_PRICING_RECIPES_MAPPING_PATH, 'PricingResourceFamilyController.createPricingRecipeMapping'),
1302
- generateAdapter('get', CONNECT_BASE_URI, GET_INDUSTRIES_PRICING_SYNC, 'PricingResourceFamilyController.syncPricingData'),
1309
+ generateAdapter('get', CONNECT_BASE_URI, GET_INDUSTRIES_PRICING_SYNC_PARAM_PATH, 'PricingResourceFamilyController.syncPricingData'),
1303
1310
  ];
1304
1311
  const updateQuote = [
1305
1312
  generateAdapter('post', COMMERCE_BASE_URI, REVENUE_UPDATE_PLACE_QUOTE_PATH, 'PlaceQuoteController.placeQuote'),
@@ -1317,6 +1324,13 @@ const cpq = [
1317
1324
  generateAdapter('post', CPQ_BASE_URI, CPQ_PRODUCT_DETAILS_PATH, 'ICpqConnectFeatureController.productDetails'),
1318
1325
  generateAdapter('post', CPQ_BASE_URI, CPQ_PRODUCT_SEARCH_PATH, 'ICpqConnectFeatureController.SearchProductsList'),
1319
1326
  generateAdapter('post', CPQ_BASE_URI, CPQ_PRODUCT_LIST_PATH, 'ICpqConnectFeatureController.productList'),
1327
+ generateAdapter('post', CPQ_BASE_URI, CPQ_CREATE_CART, 'ICpqConnectFeatureController.createCart'),
1328
+ generateAdapter('get', CPQ_BASE_URI, CPQ_GET_CART, 'ICpqConnectFeatureController.getCart'),
1329
+ generateAdapter('patch', CPQ_BASE_URI, CPQ_UPDATE_CART, 'ICpqConnectFeatureController.updateCart'),
1330
+ generateAdapter('post', CPQ_BASE_URI, CPQ_POST_CART_ITEM, 'ICpqConnectFeatureController.createCartItems'),
1331
+ generateAdapter('patch', CPQ_BASE_URI, CPQ_PATCH_CART_ITEM, 'ICpqConnectFeatureController.updateCartItems'),
1332
+ generateAdapter('delete', CPQ_BASE_URI, CPQ_DELETE_CART_ITEM, 'ICpqConnectFeatureController.deleteCartItem'),
1333
+ generateAdapter('patch', CPQ_BASE_URI, CPQ_PRICE_CART, 'ICpqConnectFeatureController.priceCart'),
1320
1334
  ];
1321
1335
  registerApiFamilyRoutes(updateQuote);
1322
1336
  registerApiFamilyRoutes(connect);
@@ -2961,4 +2975,4 @@ function auraNetworkAdapter(resourceRequest) {
2961
2975
  var main = platformNetworkAdapter(auraNetworkAdapter);
2962
2976
 
2963
2977
  export { main as default, forceRecordTransactionsDisabled, instrument$1 as instrument, instrument as ldsNetworkAdapterInstrument };
2964
- // version: 1.134.9-5d9e91cd4
2978
+ // version: 1.136.0-15ceb0ba0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-network-aura",
3
- "version": "1.134.9",
3
+ "version": "1.136.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS Network Adapter for Aura Runtime",
6
6
  "main": "dist/ldsNetwork.js",