@salesforce/lds-network-aura 1.229.0-dev2 → 1.229.0-dev4
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
CHANGED
|
@@ -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');
|
|
@@ -791,7 +791,7 @@ const GET_INDUSTRIES_PRICING_RECIPES_MAPPING_PATH = new RegExp(`${CONNECT_BASE_U
|
|
|
791
791
|
const CREATE_INDUSTRIES_PRICING_RECIPES_MAPPING_PATH = new RegExp(`${CONNECT_BASE_URI}/core-pricing/recipe/mapping`, 'i');
|
|
792
792
|
const GET_INDUSTRIES_PRICING_SYNC_PARAM_PATH = new RegExp(`${CONNECT_BASE_URI}/core-pricing/sync/([A-Za-z0-9_]){5,255}`, 'i');
|
|
793
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,
|
|
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');
|
|
795
795
|
function generateAdapter(method, baseUri, pathRegex, controller, bodyParamName) {
|
|
796
796
|
return {
|
|
797
797
|
method,
|
|
@@ -837,7 +837,7 @@ const CPQ_POST_CART_ITEM = new RegExp(`${CPQ_BASE_URI}/carts/([A-Za-z0-9]+(-[A-Z
|
|
|
837
837
|
const CPQ_PATCH_CART_ITEM = new RegExp(`${CPQ_BASE_URI}/carts/([A-Za-z0-9]+(-[A-Za-z0-9]+)+)/items$`, 'i');
|
|
838
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');
|
|
839
839
|
const CPQ_PRICE_CART = new RegExp(`${CPQ_BASE_URI}/carts/([A-Za-z0-9]+(-[A-Za-z0-9]+)+)/price`, 'i');
|
|
840
|
-
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');
|
|
841
841
|
const FUNDRAISING_CAMPAIGN_DEFAULT_DESIGNATION_PATH = new RegExp(`${FUNDRAISING_BASE_URI}/campaign/[a-zA-Z0-9]{15,18}/default-designations$`, 'i');
|
|
842
842
|
const FUNDRAISING_COMMITMENT_DEFAULT_DESIGNATION_PATH = new RegExp(`${FUNDRAISING_BASE_URI}/commitment/[a-zA-Z0-9]{15,18}/default-designations$`, 'i');
|
|
843
843
|
const FUNDRAISING_GIFT_TRANSACTION_PATH = new RegExp(`${FUNDRAISING_BASE_URI}/gift-commitments/[a-zA-Z0-9]{15,18}/gift-transactions$`, 'i');
|
|
@@ -861,6 +861,7 @@ const POST_AVAILS_CALENDAR_CONTENDING = new RegExp(`${MEDIA_ADSALES_BASE_URI}/av
|
|
|
861
861
|
const GET_AVAILS_CALENDAR_CONFIGS = new RegExp(`${MEDIA_ADSALES_BASE_URI}/availsCalendar/runtimeConfig`, 'i');
|
|
862
862
|
const EINSTEIN_LLM_GENERATIONS_PATH = new RegExp(`${EINSTEIN_BASE_URI}/llm/prompt/generations`, 'i');
|
|
863
863
|
const EINSTEIN_PROMPT_TEMPLATE_GENERATIONS_PATH = new RegExp(`${EINSTEIN_BASE_URI}/prompt-templates/([A-Za-z0-9_]){1,255}/generations`, 'i');
|
|
864
|
+
const EINSTEIN_LLM_FEEDBACK_PATH = new RegExp(`${EINSTEIN_BASE_URI}/llm/feedback`, 'i');
|
|
864
865
|
const DOCUMENT_MATRIX_FETCH_RESULTS = new RegExp(`${CONNECT_BASE_URI}/document-matrix/document-decision/([A-Za-z0-9]){1,18}$`, 'i');
|
|
865
866
|
const NEXTGENSALESAGREEMENTPRICE_PATH = new RegExp(`${CONNECT_BASE_URI}/salesagreements/price`, 'i');
|
|
866
867
|
const COMMERCE_STORE_MANAGEMENT_CONFIGURE_PRODUCT_PRICING_PATH = new RegExp(`${COMMERCE_STORE_MANAGEMENT_BASE_URI}/([A-Z0-9]){15,18}/configureProductPricing`, 'i');
|
|
@@ -1545,6 +1546,7 @@ const instantPricing = [
|
|
|
1545
1546
|
const einstein = [
|
|
1546
1547
|
generateAdapter('post', EINSTEIN_BASE_URI, EINSTEIN_LLM_GENERATIONS_PATH, 'EinsteinLLMController.generateMessages'),
|
|
1547
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'),
|
|
1548
1550
|
];
|
|
1549
1551
|
const nextGenSalesAgreementPrice = [
|
|
1550
1552
|
generateAdapter('post', CONNECT_BASE_URI, NEXTGENSALESAGREEMENTPRICE_PATH, 'NextGenerationSalesAgreementPriceController.getNextGenSalesAgreementPrice'),
|
|
@@ -3249,5 +3251,5 @@ function auraNetworkAdapter(resourceRequest) {
|
|
|
3249
3251
|
}
|
|
3250
3252
|
var main = platformNetworkAdapter(auraNetworkAdapter);
|
|
3251
3253
|
|
|
3252
|
-
export { main as default, forceRecordTransactionsDisabled, instrument$1 as instrument, instrument as ldsNetworkAdapterInstrument };
|
|
3253
|
-
// version: 1.229.0-
|
|
3254
|
+
export { main as default, defaultActionConfig, dispatchAction as dispatchAuraAction, forceRecordTransactionsDisabled, instrument$1 as instrument, instrument as ldsNetworkAdapterInstrument };
|
|
3255
|
+
// version: 1.229.0-dev4-07d38781a
|
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.229.0-
|
|
3
|
+
"version": "1.229.0-dev4",
|
|
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-dev3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@salesforce/lds-adapters-uiapi": "1.229.0-
|
|
41
|
-
"@salesforce/lds-aura-storage": "1.229.0-
|
|
42
|
-
"@salesforce/lds-environment-settings": "1.229.0-
|
|
43
|
-
"@salesforce/lds-instrumentation": "1.229.0-
|
|
44
|
-
"@salesforce/lds-network-adapter": "1.229.0-
|
|
40
|
+
"@salesforce/lds-adapters-uiapi": "1.229.0-dev4",
|
|
41
|
+
"@salesforce/lds-aura-storage": "1.229.0-dev4",
|
|
42
|
+
"@salesforce/lds-environment-settings": "1.229.0-dev4",
|
|
43
|
+
"@salesforce/lds-instrumentation": "1.229.0-dev4",
|
|
44
|
+
"@salesforce/lds-network-adapter": "1.229.0-dev4"
|
|
45
45
|
}
|
|
46
46
|
}
|