@salesforce/lds-adapters-service-einstein-copilot-bot 1.370.0 → 1.372.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.
- package/dist/es/es2018/service-einstein-copilot-bot.js +4 -2
- package/dist/es/es2018/types/src/generated/adapters/getRecommendedActions.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getRecommendedUtterances.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectRecommendedActions.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectRecommendedUtterances.d.ts +1 -0
- package/package.json +3 -3
- package/sfdc/index.js +5 -3
- package/src/raml/api.raml +6 -0
|
@@ -3142,7 +3142,7 @@ function select$9(luvio, params) {
|
|
|
3142
3142
|
return select$a();
|
|
3143
3143
|
}
|
|
3144
3144
|
function keyBuilder$7(luvio, params) {
|
|
3145
|
-
return keyPrefix + '::RecommendedUtterancesRepresentation:(' + 'sessionId:' + params.queryParams.sessionId + ')';
|
|
3145
|
+
return keyPrefix + '::RecommendedUtterancesRepresentation:(' + 'agentId:' + params.queryParams.agentId + ',' + 'sessionId:' + params.queryParams.sessionId + ')';
|
|
3146
3146
|
}
|
|
3147
3147
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
3148
3148
|
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
@@ -3192,6 +3192,7 @@ function createResourceRequest$3(config) {
|
|
|
3192
3192
|
|
|
3193
3193
|
const adapterName$3 = 'getRecommendedUtterances';
|
|
3194
3194
|
const getRecommendedUtterances_ConfigPropertyMetadata = [
|
|
3195
|
+
generateParamConfigMetadata('agentId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3195
3196
|
generateParamConfigMetadata('sessionId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
3196
3197
|
];
|
|
3197
3198
|
const getRecommendedUtterances_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getRecommendedUtterances_ConfigPropertyMetadata);
|
|
@@ -3811,7 +3812,7 @@ function select$6(luvio, params) {
|
|
|
3811
3812
|
return select$7();
|
|
3812
3813
|
}
|
|
3813
3814
|
function keyBuilder$5(luvio, params) {
|
|
3814
|
-
return keyPrefix + '::RecommendedActionsRepresentation:(' + 'pageName:' + params.queryParams.pageName + ',' + 'pageType:' + params.queryParams.pageType + ',' + 'actionName:' + params.queryParams.actionName + ',' + 'objectApiName:' + params.queryParams.objectApiName + ',' + 'customApplicationName:' + params.queryParams.customApplicationName + ',' + 'sessionId:' + params.queryParams.sessionId + ',' + 'formFactor:' + params.queryParams.formFactor + ')';
|
|
3815
|
+
return keyPrefix + '::RecommendedActionsRepresentation:(' + 'agentId:' + params.queryParams.agentId + ',' + 'pageName:' + params.queryParams.pageName + ',' + 'pageType:' + params.queryParams.pageType + ',' + 'actionName:' + params.queryParams.actionName + ',' + 'objectApiName:' + params.queryParams.objectApiName + ',' + 'customApplicationName:' + params.queryParams.customApplicationName + ',' + 'sessionId:' + params.queryParams.sessionId + ',' + 'formFactor:' + params.queryParams.formFactor + ')';
|
|
3815
3816
|
}
|
|
3816
3817
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
3817
3818
|
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
@@ -3861,6 +3862,7 @@ function createResourceRequest$2(config) {
|
|
|
3861
3862
|
|
|
3862
3863
|
const adapterName$2 = 'getRecommendedActions';
|
|
3863
3864
|
const getRecommendedActions_ConfigPropertyMetadata = [
|
|
3865
|
+
generateParamConfigMetadata('agentId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3864
3866
|
generateParamConfigMetadata('pageName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3865
3867
|
generateParamConfigMetadata('pageType', true, 1 /* QueryParameter */, 0 /* String */),
|
|
3866
3868
|
generateParamConfigMetadata('actionName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -6,6 +6,7 @@ export declare const adapterName = "getRecommendedActions";
|
|
|
6
6
|
export declare const getRecommendedActions_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const getRecommendedActions_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetRecommendedActionsConfig {
|
|
9
|
+
agentId?: string;
|
|
9
10
|
pageName?: string;
|
|
10
11
|
pageType: string;
|
|
11
12
|
actionName?: string;
|
|
@@ -6,6 +6,7 @@ export declare const adapterName = "getRecommendedUtterances";
|
|
|
6
6
|
export declare const getRecommendedUtterances_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const getRecommendedUtterances_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetRecommendedUtterancesConfig {
|
|
9
|
+
agentId?: string;
|
|
9
10
|
sessionId: string;
|
|
10
11
|
}
|
|
11
12
|
export declare const createResourceParams: (config: GetRecommendedUtterancesConfig) => resources_getConnectRecommendedUtterances_ResourceRequestConfig;
|
|
@@ -2,6 +2,7 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
|
2
2
|
import { RecommendedActionsRepresentation as types_RecommendedActionsRepresentation_RecommendedActionsRepresentation } from '../types/RecommendedActionsRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
queryParams: {
|
|
5
|
+
agentId?: string;
|
|
5
6
|
pageName?: string;
|
|
6
7
|
pageType: string;
|
|
7
8
|
actionName?: string;
|
|
@@ -2,6 +2,7 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
|
2
2
|
import { RecommendedUtterancesRepresentation as types_RecommendedUtterancesRepresentation_RecommendedUtterancesRepresentation } from '../types/RecommendedUtterancesRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
queryParams: {
|
|
5
|
+
agentId?: string;
|
|
5
6
|
sessionId: string;
|
|
6
7
|
};
|
|
7
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.372.0",
|
|
4
4
|
"description": "Einstein Copilot Bot API Family",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/service-einstein-copilot-bot.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.372.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.372.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -2339,7 +2339,7 @@ function select$g(luvio, params) {
|
|
|
2339
2339
|
return select$h();
|
|
2340
2340
|
}
|
|
2341
2341
|
function keyBuilder$a(luvio, params) {
|
|
2342
|
-
return keyPrefix + '::RecommendedActionsRepresentation:(' + 'pageName:' + params.queryParams.pageName + ',' + 'pageType:' + params.queryParams.pageType + ',' + 'actionName:' + params.queryParams.actionName + ',' + 'objectApiName:' + params.queryParams.objectApiName + ',' + 'customApplicationName:' + params.queryParams.customApplicationName + ',' + 'sessionId:' + params.queryParams.sessionId + ',' + 'formFactor:' + params.queryParams.formFactor + ')';
|
|
2342
|
+
return keyPrefix + '::RecommendedActionsRepresentation:(' + 'agentId:' + params.queryParams.agentId + ',' + 'pageName:' + params.queryParams.pageName + ',' + 'pageType:' + params.queryParams.pageType + ',' + 'actionName:' + params.queryParams.actionName + ',' + 'objectApiName:' + params.queryParams.objectApiName + ',' + 'customApplicationName:' + params.queryParams.customApplicationName + ',' + 'sessionId:' + params.queryParams.sessionId + ',' + 'formFactor:' + params.queryParams.formFactor + ')';
|
|
2343
2343
|
}
|
|
2344
2344
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
2345
2345
|
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
|
|
@@ -2389,6 +2389,7 @@ function createResourceRequest$5(config) {
|
|
|
2389
2389
|
|
|
2390
2390
|
const adapterName$5 = 'getRecommendedActions';
|
|
2391
2391
|
const getRecommendedActions_ConfigPropertyMetadata = [
|
|
2392
|
+
generateParamConfigMetadata('agentId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2392
2393
|
generateParamConfigMetadata('pageName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2393
2394
|
generateParamConfigMetadata('pageType', true, 1 /* QueryParameter */, 0 /* String */),
|
|
2394
2395
|
generateParamConfigMetadata('actionName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -2962,7 +2963,7 @@ function select$b(luvio, params) {
|
|
|
2962
2963
|
return select$c();
|
|
2963
2964
|
}
|
|
2964
2965
|
function keyBuilder$6(luvio, params) {
|
|
2965
|
-
return keyPrefix + '::RecommendedUtterancesRepresentation:(' + 'sessionId:' + params.queryParams.sessionId + ')';
|
|
2966
|
+
return keyPrefix + '::RecommendedUtterancesRepresentation:(' + 'agentId:' + params.queryParams.agentId + ',' + 'sessionId:' + params.queryParams.sessionId + ')';
|
|
2966
2967
|
}
|
|
2967
2968
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
2968
2969
|
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
@@ -3012,6 +3013,7 @@ function createResourceRequest$3(config) {
|
|
|
3012
3013
|
|
|
3013
3014
|
const adapterName$3 = 'getRecommendedUtterances';
|
|
3014
3015
|
const getRecommendedUtterances_ConfigPropertyMetadata = [
|
|
3016
|
+
generateParamConfigMetadata('agentId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3015
3017
|
generateParamConfigMetadata('sessionId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
3016
3018
|
];
|
|
3017
3019
|
const getRecommendedUtterances_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getRecommendedUtterances_ConfigPropertyMetadata);
|
|
@@ -4964,4 +4966,4 @@ withDefaultLuvio((luvio) => {
|
|
|
4964
4966
|
});
|
|
4965
4967
|
|
|
4966
4968
|
export { getAgents, getAgents_imperative, getBotId, getBotId_imperative, getCopilotObjects, getCopilotObjects_imperative, getFollowUpActions, getFollowUpActions_imperative, getRecommendedActions, getRecommendedActions_imperative, getRecommendedPlanTemplates, getRecommendedPlanTemplates_imperative, getRecommendedUtterances, getRecommendedUtterances_imperative, getWelcomeUtterances, getWelcomeUtterances_imperative, sendMessage, submitFeedback };
|
|
4967
|
-
// version: 1.
|
|
4969
|
+
// version: 1.372.0-59e8aa192f
|
package/src/raml/api.raml
CHANGED
|
@@ -787,6 +787,9 @@ types:
|
|
|
787
787
|
application/json:
|
|
788
788
|
type: RecommendedUtterancesRepresentation
|
|
789
789
|
queryParameters:
|
|
790
|
+
agentId:
|
|
791
|
+
type: string
|
|
792
|
+
required: false
|
|
790
793
|
sessionId:
|
|
791
794
|
type: string
|
|
792
795
|
required: true
|
|
@@ -801,6 +804,9 @@ types:
|
|
|
801
804
|
application/json:
|
|
802
805
|
type: RecommendedActionsRepresentation
|
|
803
806
|
queryParameters:
|
|
807
|
+
agentId:
|
|
808
|
+
type: string
|
|
809
|
+
required: false
|
|
804
810
|
pageName:
|
|
805
811
|
type: string
|
|
806
812
|
required: false
|