@salesforce/lds-network-aura 1.228.1 → 1.229.0-dev10
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 +15 -15
- package/dist/types/main.d.ts +3 -0
- package/dist/types/middlewares/utils.d.ts +2 -1
- package/package.json +7 -7
package/dist/ldsNetwork.js
CHANGED
|
@@ -73,7 +73,7 @@ const INDUSTRIES_BASE_URI = `${BASE_URI}/industries`;
|
|
|
73
73
|
const MEDIA_ADSALES_BASE_URI = `${CONNECT_BASE_URI}/media`;
|
|
74
74
|
const EINSTEIN_BASE_URI = `${BASE_URI}/einstein`;
|
|
75
75
|
const ECI_CONVERSATION_BASE_URI = `${BASE_URI}/conversation`;
|
|
76
|
-
const COMMERCE_STORE_MANAGEMENT_BASE_URI = `${COMMERCE_BASE_URI}/management/
|
|
76
|
+
const COMMERCE_STORE_MANAGEMENT_BASE_URI = `${COMMERCE_BASE_URI}/management/webstores`;
|
|
77
77
|
|
|
78
78
|
function getStatusText(status) {
|
|
79
79
|
switch (status) {
|
|
@@ -720,7 +720,7 @@ const EXTERNAL_CREDENTIAL_PATH = new RegExp(`${NAMED_CREDENTIAL_BASE_URI}/extern
|
|
|
720
720
|
const EXTERNAL_SERVICES_DATA_SHAPE_PATH = new RegExp(`${EXTERNAL_SERVICES_BASE_URI}/inference/datashape/([A-Za-z0-9]){1,15}$`, 'i');
|
|
721
721
|
const EXTERNAL_SERVICES_OPENAPI_SPEC_PATH = new RegExp(`${EXTERNAL_SERVICES_BASE_URI}/inference/openapispec/([A-Za-z0-9_]){1,15}$`, 'i');
|
|
722
722
|
// actionName = externalServiceRegistrationName.operationName. Up to 510 characters, with a minimum of 3 characters.
|
|
723
|
-
const EXTERNAL_SERVICES_ACTION_DETAILS_PATH = new RegExp(`${EXTERNAL_SERVICES_BASE_URI}/actions/services/(
|
|
723
|
+
const EXTERNAL_SERVICES_ACTION_DETAILS_PATH = new RegExp(`${EXTERNAL_SERVICES_BASE_URI}/actions/services/(.){3,510}$`, 'i');
|
|
724
724
|
const EXTERNAL_SERVICES_STATISTICS_PATH = new RegExp(`${EXTERNAL_SERVICES_BASE_URI}/statistics/services$`, 'i');
|
|
725
725
|
// upper limit for registrationName is 97 = 15 (namespace prefix) + 2 ("__" separator) + 80 (external service developer name)
|
|
726
726
|
const EXTERNAL_SERVICES_STATISTICS_FOR_SERVICE_PATH = new RegExp(`${EXTERNAL_SERVICES_BASE_URI}/statistics/services/([A-Z0-9_]){1,97}$`, 'i');
|
|
@@ -787,12 +787,11 @@ const INDUSTRIES_CONTEXT_SERVICE_ATTRIBUTE_PATH = new RegExp(`${CONNECT_BASE_URI
|
|
|
787
787
|
const INDUSTRIES_CONTEXT_SERVICE_NODE_MAPPING_PATH = new RegExp(`${CONNECT_BASE_URI}/context-mappings/([A-Z0-9]){15,18}/context-node-mappings/([A-Z0-9]){1,28}$`, 'i');
|
|
788
788
|
const CREATE_INDUSTRIES_CONTEXT_NODE_MAPPINGS_PATH = new RegExp(`${CONNECT_BASE_URI}/context-mappings/([A-Za-z0-9]){15,18}/context-node-mappings$`, 'i');
|
|
789
789
|
const DATALOADING_FEATURE_OBJECTS_PATH = new RegExp(`${CONNECT_BASE_URI}/industries/([A-Za-z0-9_]){5,255}/objects`, 'i');
|
|
790
|
-
const GET_INDUSTRIES_PRICING_RECIPES_MAPPING_PATH = new RegExp(`${CONNECT_BASE_URI}/
|
|
791
|
-
const CREATE_INDUSTRIES_PRICING_RECIPES_MAPPING_PATH = new RegExp(`${CONNECT_BASE_URI}/
|
|
792
|
-
const GET_INDUSTRIES_PRICING_SYNC_PARAM_PATH = new RegExp(`${CONNECT_BASE_URI}/
|
|
793
|
-
const CREATE_INDUSTRIES_PRICING_VERSIONED_REVISE_DETAILS_PATH = new RegExp(`${CONNECT_BASE_URI}/
|
|
794
|
-
const
|
|
795
|
-
const GET_INDUSTRIES_PRICING_WATERFALL2 = new RegExp(`${CONNECT_BASE_URI}/industries/pricing/waterfall/([A-Za-z0-9]){15,18}/([A-Za-z0-9]){15,18}$`, 'i');
|
|
790
|
+
const GET_INDUSTRIES_PRICING_RECIPES_MAPPING_PATH = new RegExp(`${CONNECT_BASE_URI}/core-pricing/recipe`, 'i');
|
|
791
|
+
const CREATE_INDUSTRIES_PRICING_RECIPES_MAPPING_PATH = new RegExp(`${CONNECT_BASE_URI}/core-pricing/recipe/mapping`, 'i');
|
|
792
|
+
const GET_INDUSTRIES_PRICING_SYNC_PARAM_PATH = new RegExp(`${CONNECT_BASE_URI}/core-pricing/sync/([A-Za-z0-9_]){5,255}`, 'i');
|
|
793
|
+
const CREATE_INDUSTRIES_PRICING_VERSIONED_REVISE_DETAILS_PATH = new RegExp(`${CONNECT_BASE_URI}/core-pricing/versioned-revise-details`, 'i');
|
|
794
|
+
const GET_INDUSTRIES_PRICING_WATERFALL = new RegExp(`${CONNECT_BASE_URI}/core-pricing/waterfall/([A-Za-z0-9]){15,20}/([A-Za-z0-9]){15,20}$`, 'i');
|
|
796
795
|
function generateAdapter(method, baseUri, pathRegex, controller, bodyParamName) {
|
|
797
796
|
return {
|
|
798
797
|
method,
|
|
@@ -838,7 +837,7 @@ const CPQ_POST_CART_ITEM = new RegExp(`${CPQ_BASE_URI}/carts/([A-Za-z0-9]+(-[A-Z
|
|
|
838
837
|
const CPQ_PATCH_CART_ITEM = new RegExp(`${CPQ_BASE_URI}/carts/([A-Za-z0-9]+(-[A-Za-z0-9]+)+)/items$`, 'i');
|
|
839
838
|
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');
|
|
840
839
|
const CPQ_PRICE_CART = new RegExp(`${CPQ_BASE_URI}/carts/([A-Za-z0-9]+(-[A-Za-z0-9]+)+)/price`, 'i');
|
|
841
|
-
const FUNDRAISING_GIFT_COMMITMENT_PATH = new RegExp(`${FUNDRAISING_BASE_URI}/donor/[a-zA-Z0-9]{15,18}/
|
|
840
|
+
const FUNDRAISING_GIFT_COMMITMENT_PATH = new RegExp(`${FUNDRAISING_BASE_URI}/donor/[a-zA-Z0-9]{15,18}/commitments$`, 'i');
|
|
842
841
|
const FUNDRAISING_CAMPAIGN_DEFAULT_DESIGNATION_PATH = new RegExp(`${FUNDRAISING_BASE_URI}/campaign/[a-zA-Z0-9]{15,18}/default-designations$`, 'i');
|
|
843
842
|
const FUNDRAISING_COMMITMENT_DEFAULT_DESIGNATION_PATH = new RegExp(`${FUNDRAISING_BASE_URI}/commitment/[a-zA-Z0-9]{15,18}/default-designations$`, 'i');
|
|
844
843
|
const FUNDRAISING_GIFT_TRANSACTION_PATH = new RegExp(`${FUNDRAISING_BASE_URI}/gift-commitments/[a-zA-Z0-9]{15,18}/gift-transactions$`, 'i');
|
|
@@ -862,7 +861,8 @@ const POST_AVAILS_CALENDAR_CONTENDING = new RegExp(`${MEDIA_ADSALES_BASE_URI}/av
|
|
|
862
861
|
const GET_AVAILS_CALENDAR_CONFIGS = new RegExp(`${MEDIA_ADSALES_BASE_URI}/availsCalendar/runtimeConfig`, 'i');
|
|
863
862
|
const EINSTEIN_LLM_GENERATIONS_PATH = new RegExp(`${EINSTEIN_BASE_URI}/llm/prompt/generations`, 'i');
|
|
864
863
|
const EINSTEIN_PROMPT_TEMPLATE_GENERATIONS_PATH = new RegExp(`${EINSTEIN_BASE_URI}/prompt-templates/([A-Za-z0-9_]){1,255}/generations`, 'i');
|
|
865
|
-
const
|
|
864
|
+
const EINSTEIN_LLM_FEEDBACK_PATH = new RegExp(`${EINSTEIN_BASE_URI}/llm/feedback`, 'i');
|
|
865
|
+
const DOCUMENT_MATRIX_FETCH_RESULTS = new RegExp(`${CONNECT_BASE_URI}/document-matrix/document-decision/([A-Za-z0-9]){1,18}$`, 'i');
|
|
866
866
|
const NEXTGENSALESAGREEMENTPRICE_PATH = new RegExp(`${CONNECT_BASE_URI}/salesagreements/price`, 'i');
|
|
867
867
|
const COMMERCE_STORE_MANAGEMENT_CONFIGURE_PRODUCT_PRICING_PATH = new RegExp(`${COMMERCE_STORE_MANAGEMENT_BASE_URI}/([A-Z0-9]){15,18}/configureProductPricing`, 'i');
|
|
868
868
|
const COMMERCE_STORE_MANAGEMENT_GET_PRODUCT_PRICING_PATH = new RegExp(`${COMMERCE_STORE_MANAGEMENT_BASE_URI}/([A-Z0-9]){15,18}/getProductPricing`, 'i');
|
|
@@ -1048,7 +1048,7 @@ const commerce = [
|
|
|
1048
1048
|
generateAdapter('post', COMMERCE_BASE_URI, PRODUCT_SEARCH_PATH, 'CommerceProductSearchController.productSearch'),
|
|
1049
1049
|
];
|
|
1050
1050
|
const commerce_management = [
|
|
1051
|
-
generateAdapter('get', COMMERCE_BASE_URI, GET_MANAGEMENT_CHANNELS_PATH, '
|
|
1051
|
+
generateAdapter('get', COMMERCE_BASE_URI, GET_MANAGEMENT_CHANNELS_PATH, 'ICommerceManagementController.getChannels'),
|
|
1052
1052
|
];
|
|
1053
1053
|
const commerce_extension = [
|
|
1054
1054
|
generateAdapter('get', COMMERCE_EXTENSION_BASE_URI, GET_EXTENSIONS_PATH, 'CommerceExtensionFamilyController.getExtensions'),
|
|
@@ -1498,8 +1498,7 @@ const industriesPricing = [
|
|
|
1498
1498
|
generateAdapter('post', CONNECT_BASE_URI, CREATE_INDUSTRIES_PRICING_RECIPES_MAPPING_PATH, 'PricingResourceFamilyController.createPricingRecipeMapping'),
|
|
1499
1499
|
generateAdapter('get', CONNECT_BASE_URI, GET_INDUSTRIES_PRICING_SYNC_PARAM_PATH, 'PricingResourceFamilyController.syncPricingData'),
|
|
1500
1500
|
generateAdapter('post', CONNECT_BASE_URI, CREATE_INDUSTRIES_PRICING_VERSIONED_REVISE_DETAILS_PATH, 'PricingResourceFamilyController.updateAndPersistAdjustmentEntity'),
|
|
1501
|
-
generateAdapter('get', CONNECT_BASE_URI,
|
|
1502
|
-
generateAdapter('get', CONNECT_BASE_URI, GET_INDUSTRIES_PRICING_WATERFALL2, 'PricingResourceFamilyController.requestPricingWaterFallOutputResponse2'),
|
|
1501
|
+
generateAdapter('get', CONNECT_BASE_URI, GET_INDUSTRIES_PRICING_WATERFALL, 'PricingResourceFamilyController.requestPricingWaterFallOutputResponse'),
|
|
1503
1502
|
];
|
|
1504
1503
|
const updateQuote = [
|
|
1505
1504
|
generateAdapter('post', COMMERCE_BASE_URI, REVENUE_UPDATE_PLACE_QUOTE_PATH, 'PlaceQuoteController.placeQuote'),
|
|
@@ -1547,6 +1546,7 @@ const instantPricing = [
|
|
|
1547
1546
|
const einstein = [
|
|
1548
1547
|
generateAdapter('post', EINSTEIN_BASE_URI, EINSTEIN_LLM_GENERATIONS_PATH, 'EinsteinLLMController.generateMessages'),
|
|
1549
1548
|
generateAdapter('post', EINSTEIN_BASE_URI, EINSTEIN_PROMPT_TEMPLATE_GENERATIONS_PATH, 'EinsteinLLMController.generateMessagesForPromptTemplate'),
|
|
1549
|
+
generateAdapter('post', EINSTEIN_BASE_URI, EINSTEIN_LLM_FEEDBACK_PATH, 'EinsteinLLMController.feedback'),
|
|
1550
1550
|
];
|
|
1551
1551
|
const nextGenSalesAgreementPrice = [
|
|
1552
1552
|
generateAdapter('post', CONNECT_BASE_URI, NEXTGENSALESAGREEMENTPRICE_PATH, 'NextGenerationSalesAgreementPriceController.getNextGenSalesAgreementPrice'),
|
|
@@ -3251,5 +3251,5 @@ function auraNetworkAdapter(resourceRequest) {
|
|
|
3251
3251
|
}
|
|
3252
3252
|
var main = platformNetworkAdapter(auraNetworkAdapter);
|
|
3253
3253
|
|
|
3254
|
-
export { main as default, forceRecordTransactionsDisabled, instrument$1 as instrument, instrument as ldsNetworkAdapterInstrument };
|
|
3255
|
-
// version: 1.
|
|
3254
|
+
export { main as default, defaultActionConfig, dispatchAction as dispatchAuraAction, forceRecordTransactionsDisabled, instrument$1 as instrument, instrument as ldsNetworkAdapterInstrument };
|
|
3255
|
+
// version: 1.229.0-dev10-bc9ef2513
|
package/dist/types/main.d.ts
CHANGED
|
@@ -4,3 +4,6 @@ export default _default;
|
|
|
4
4
|
export { instrument, AuraNetworkInstrumentation } from './instrumentation';
|
|
5
5
|
export { instrument as ldsNetworkAdapterInstrument } from '@salesforce/lds-network-adapter';
|
|
6
6
|
export { forceRecordTransactionsDisabled } from './middlewares/event-logging';
|
|
7
|
+
export { dispatchAction as dispatchAuraAction, defaultActionConfig } from './middlewares/utils';
|
|
8
|
+
export type { DispatchActionConfig, ConnectInJavaError } from './middlewares/utils';
|
|
9
|
+
export type { AuraFetchResponse } from './AuraFetchResponse';
|
|
@@ -31,7 +31,7 @@ interface UiApiError {
|
|
|
31
31
|
errorCode: number;
|
|
32
32
|
message: string;
|
|
33
33
|
}
|
|
34
|
-
interface ConnectInJavaError {
|
|
34
|
+
export interface ConnectInJavaError {
|
|
35
35
|
data: {
|
|
36
36
|
errorCode: string;
|
|
37
37
|
message: string;
|
|
@@ -61,6 +61,7 @@ export interface InstrumentationResolveConfig extends InstrumentationConfig {
|
|
|
61
61
|
export interface InstrumentationRejectConfig extends InstrumentationConfig {
|
|
62
62
|
err?: UiApiError | ConnectInJavaError;
|
|
63
63
|
}
|
|
64
|
+
export declare const defaultActionConfig: ActionConfig;
|
|
64
65
|
export type InstrumentationResolveCallback = (config: InstrumentationResolveConfig) => void;
|
|
65
66
|
export type InstrumentationRejectCallback = (config: InstrumentationRejectConfig) => void;
|
|
66
67
|
export interface InstrumentationCallbacks {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-network-aura",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.229.0-dev10",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS Network Adapter for Aura Runtime",
|
|
6
6
|
"main": "dist/ldsNetwork.js",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-network-aura"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@luvio/engine": "0.
|
|
37
|
+
"@luvio/engine": "0.146.0-dev5"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@salesforce/lds-adapters-uiapi": "
|
|
41
|
-
"@salesforce/lds-aura-storage": "
|
|
42
|
-
"@salesforce/lds-environment-settings": "
|
|
43
|
-
"@salesforce/lds-instrumentation": "
|
|
44
|
-
"@salesforce/lds-network-adapter": "
|
|
40
|
+
"@salesforce/lds-adapters-uiapi": "1.229.0-dev10",
|
|
41
|
+
"@salesforce/lds-aura-storage": "1.229.0-dev10",
|
|
42
|
+
"@salesforce/lds-environment-settings": "1.229.0-dev10",
|
|
43
|
+
"@salesforce/lds-instrumentation": "1.229.0-dev10",
|
|
44
|
+
"@salesforce/lds-network-adapter": "1.229.0-dev10"
|
|
45
45
|
}
|
|
46
46
|
}
|