@salesforce/lds-adapters-service-einstein-copilot-bot 1.266.0-dev7 → 1.266.0-dev9
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.
|
@@ -515,7 +515,7 @@ function equals$2(existing, incoming) {
|
|
|
515
515
|
}
|
|
516
516
|
|
|
517
517
|
const TTL$1 = 30000;
|
|
518
|
-
const VERSION$1 = "
|
|
518
|
+
const VERSION$1 = "d3d34b56efe68a37c173d0cb91c57ba1";
|
|
519
519
|
function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
|
|
520
520
|
const v_error = (() => {
|
|
521
521
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -701,6 +701,32 @@ function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
|
|
|
701
701
|
return new TypeError(message);
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
|
+
const obj_planId = obj.planId;
|
|
705
|
+
const path_planId = path + '.planId';
|
|
706
|
+
let obj_planId_union0 = null;
|
|
707
|
+
const obj_planId_union0_error = (() => {
|
|
708
|
+
if (typeof obj_planId !== 'string') {
|
|
709
|
+
return new TypeError('Expected "string" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
|
|
710
|
+
}
|
|
711
|
+
})();
|
|
712
|
+
if (obj_planId_union0_error != null) {
|
|
713
|
+
obj_planId_union0 = obj_planId_union0_error.message;
|
|
714
|
+
}
|
|
715
|
+
let obj_planId_union1 = null;
|
|
716
|
+
const obj_planId_union1_error = (() => {
|
|
717
|
+
if (obj_planId !== null) {
|
|
718
|
+
return new TypeError('Expected "null" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
|
|
719
|
+
}
|
|
720
|
+
})();
|
|
721
|
+
if (obj_planId_union1_error != null) {
|
|
722
|
+
obj_planId_union1 = obj_planId_union1_error.message;
|
|
723
|
+
}
|
|
724
|
+
if (obj_planId_union0 && obj_planId_union1) {
|
|
725
|
+
let message = 'Object doesn\'t match union (at "' + path_planId + '")';
|
|
726
|
+
message += '\n' + obj_planId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
727
|
+
message += '\n' + obj_planId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
728
|
+
return new TypeError(message);
|
|
729
|
+
}
|
|
704
730
|
if (obj.result !== undefined) {
|
|
705
731
|
const obj_result = obj.result;
|
|
706
732
|
const path_result = path + '.result';
|
|
@@ -856,6 +882,10 @@ const select$2 = function ConversationRuntimeProxyMessageRepresentationSelect()
|
|
|
856
882
|
kind: 'Scalar',
|
|
857
883
|
required: false
|
|
858
884
|
},
|
|
885
|
+
{
|
|
886
|
+
name: 'planId',
|
|
887
|
+
kind: 'Scalar'
|
|
888
|
+
},
|
|
859
889
|
{
|
|
860
890
|
name: 'result',
|
|
861
891
|
kind: 'Object',
|
|
@@ -1016,6 +1046,11 @@ function equals$1(existing, incoming) {
|
|
|
1016
1046
|
return false;
|
|
1017
1047
|
}
|
|
1018
1048
|
}
|
|
1049
|
+
const existing_planId = existing.planId;
|
|
1050
|
+
const incoming_planId = incoming.planId;
|
|
1051
|
+
if (!(existing_planId === incoming_planId)) {
|
|
1052
|
+
return false;
|
|
1053
|
+
}
|
|
1019
1054
|
const existing_result = existing.result;
|
|
1020
1055
|
const incoming_result = incoming.result;
|
|
1021
1056
|
// if at least one of these optionals is defined
|
package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyMessageRepresentation.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { CollectMessageRepresentation as CollectMessageRepresentation_CollectMes
|
|
|
3
3
|
import { EsTypeMessageRepresentation as EsTypeMessageRepresentation_EsTypeMessageRepresentation } from './EsTypeMessageRepresentation';
|
|
4
4
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
5
5
|
export declare const TTL = 30000;
|
|
6
|
-
export declare const VERSION = "
|
|
6
|
+
export declare const VERSION = "d3d34b56efe68a37c173d0cb91c57ba1";
|
|
7
7
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
8
8
|
export declare const RepresentationType: string;
|
|
9
9
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -45,6 +45,8 @@ export interface ConversationRuntimeProxyMessageRepresentationNormalized {
|
|
|
45
45
|
message?: string | null;
|
|
46
46
|
/** The message type for an ES Type message. */
|
|
47
47
|
messageType?: string | null;
|
|
48
|
+
/** Plan ID for the generated plan. */
|
|
49
|
+
planId: string | null;
|
|
48
50
|
/** The result response for an Inform message. */
|
|
49
51
|
result?: Array<EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
50
52
|
/** The message text, if applicable for the type. */
|
|
@@ -70,6 +72,7 @@ export interface ConversationRuntimeProxyMessageRepresentation {
|
|
|
70
72
|
id: string;
|
|
71
73
|
message?: string | null;
|
|
72
74
|
messageType?: string | null;
|
|
75
|
+
planId: string | null;
|
|
73
76
|
result?: Array<EsTypeMessageRepresentation_EsTypeMessageRepresentation>;
|
|
74
77
|
text?: string | null;
|
|
75
78
|
type?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
|
|
3
|
-
"version": "1.266.0-
|
|
3
|
+
"version": "1.266.0-dev9",
|
|
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.266.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.266.0-dev9"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.266.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.266.0-dev9"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -525,7 +525,7 @@ function equals$2(existing, incoming) {
|
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
const TTL$1 = 30000;
|
|
528
|
-
const VERSION$1 = "
|
|
528
|
+
const VERSION$1 = "d3d34b56efe68a37c173d0cb91c57ba1";
|
|
529
529
|
function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
|
|
530
530
|
const v_error = (() => {
|
|
531
531
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -711,6 +711,32 @@ function validate$1(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
|
|
|
711
711
|
return new TypeError(message);
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
|
+
const obj_planId = obj.planId;
|
|
715
|
+
const path_planId = path + '.planId';
|
|
716
|
+
let obj_planId_union0 = null;
|
|
717
|
+
const obj_planId_union0_error = (() => {
|
|
718
|
+
if (typeof obj_planId !== 'string') {
|
|
719
|
+
return new TypeError('Expected "string" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
|
|
720
|
+
}
|
|
721
|
+
})();
|
|
722
|
+
if (obj_planId_union0_error != null) {
|
|
723
|
+
obj_planId_union0 = obj_planId_union0_error.message;
|
|
724
|
+
}
|
|
725
|
+
let obj_planId_union1 = null;
|
|
726
|
+
const obj_planId_union1_error = (() => {
|
|
727
|
+
if (obj_planId !== null) {
|
|
728
|
+
return new TypeError('Expected "null" but received "' + typeof obj_planId + '" (at "' + path_planId + '")');
|
|
729
|
+
}
|
|
730
|
+
})();
|
|
731
|
+
if (obj_planId_union1_error != null) {
|
|
732
|
+
obj_planId_union1 = obj_planId_union1_error.message;
|
|
733
|
+
}
|
|
734
|
+
if (obj_planId_union0 && obj_planId_union1) {
|
|
735
|
+
let message = 'Object doesn\'t match union (at "' + path_planId + '")';
|
|
736
|
+
message += '\n' + obj_planId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
737
|
+
message += '\n' + obj_planId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
738
|
+
return new TypeError(message);
|
|
739
|
+
}
|
|
714
740
|
if (obj.result !== undefined) {
|
|
715
741
|
const obj_result = obj.result;
|
|
716
742
|
const path_result = path + '.result';
|
|
@@ -866,6 +892,10 @@ const select$2 = function ConversationRuntimeProxyMessageRepresentationSelect()
|
|
|
866
892
|
kind: 'Scalar',
|
|
867
893
|
required: false
|
|
868
894
|
},
|
|
895
|
+
{
|
|
896
|
+
name: 'planId',
|
|
897
|
+
kind: 'Scalar'
|
|
898
|
+
},
|
|
869
899
|
{
|
|
870
900
|
name: 'result',
|
|
871
901
|
kind: 'Object',
|
|
@@ -1026,6 +1056,11 @@ function equals$1(existing, incoming) {
|
|
|
1026
1056
|
return false;
|
|
1027
1057
|
}
|
|
1028
1058
|
}
|
|
1059
|
+
const existing_planId = existing.planId;
|
|
1060
|
+
const incoming_planId = incoming.planId;
|
|
1061
|
+
if (!(existing_planId === incoming_planId)) {
|
|
1062
|
+
return false;
|
|
1063
|
+
}
|
|
1029
1064
|
const existing_result = existing.result;
|
|
1030
1065
|
const incoming_result = incoming.result;
|
|
1031
1066
|
// if at least one of these optionals is defined
|
|
@@ -1432,4 +1467,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1432
1467
|
});
|
|
1433
1468
|
|
|
1434
1469
|
export { getBotId, getBotId_imperative, sendMessage };
|
|
1435
|
-
// version: 1.266.0-
|
|
1470
|
+
// version: 1.266.0-dev9-9e86ab5c3
|
package/src/raml/api.raml
CHANGED
|
@@ -130,6 +130,9 @@ types:
|
|
|
130
130
|
description: The message type for an ES Type message.
|
|
131
131
|
type: string | nil
|
|
132
132
|
required: false
|
|
133
|
+
planId:
|
|
134
|
+
description: Plan ID for the generated plan.
|
|
135
|
+
type: string | nil
|
|
133
136
|
result:
|
|
134
137
|
description: The result response for an Inform message.
|
|
135
138
|
type: array
|