@salesforce/lds-adapters-service-einstein-copilot-bot 1.266.0-dev10 → 1.266.0-dev12
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.
|
@@ -473,7 +473,7 @@ function equals$3(existing, incoming) {
|
|
|
473
473
|
return true;
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
-
const VERSION$2 = "
|
|
476
|
+
const VERSION$2 = "2fe61f5346db4feb51352f6cf58b0c1b";
|
|
477
477
|
function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
478
478
|
const v_error = (() => {
|
|
479
479
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -487,6 +487,11 @@ function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
|
487
487
|
message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
488
488
|
return new TypeError(message);
|
|
489
489
|
}
|
|
490
|
+
const obj_targetProperty = obj.targetProperty;
|
|
491
|
+
const path_targetProperty = path + '.targetProperty';
|
|
492
|
+
if (typeof obj_targetProperty !== 'string') {
|
|
493
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetProperty + '" (at "' + path_targetProperty + '")');
|
|
494
|
+
}
|
|
490
495
|
const obj_targetType = obj.targetType;
|
|
491
496
|
const path_targetType = path + '.targetType';
|
|
492
497
|
if (typeof obj_targetType !== 'string') {
|
|
@@ -507,6 +512,10 @@ const select$3 = function CollectMessageRepresentationSelect() {
|
|
|
507
512
|
kind: 'Object',
|
|
508
513
|
selections: EsTypeMessageRepresentation__selections
|
|
509
514
|
},
|
|
515
|
+
{
|
|
516
|
+
name: 'targetProperty',
|
|
517
|
+
kind: 'Scalar'
|
|
518
|
+
},
|
|
510
519
|
{
|
|
511
520
|
name: 'targetType',
|
|
512
521
|
kind: 'Scalar'
|
|
@@ -515,6 +524,11 @@ const select$3 = function CollectMessageRepresentationSelect() {
|
|
|
515
524
|
};
|
|
516
525
|
};
|
|
517
526
|
function equals$2(existing, incoming) {
|
|
527
|
+
const existing_targetProperty = existing.targetProperty;
|
|
528
|
+
const incoming_targetProperty = incoming.targetProperty;
|
|
529
|
+
if (!(existing_targetProperty === incoming_targetProperty)) {
|
|
530
|
+
return false;
|
|
531
|
+
}
|
|
518
532
|
const existing_targetType = existing.targetType;
|
|
519
533
|
const incoming_targetType = incoming.targetType;
|
|
520
534
|
if (!(existing_targetType === incoming_targetType)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EsTypeMessageRepresentation as EsTypeMessageRepresentation_EsTypeMessageRepresentation } from './EsTypeMessageRepresentation';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
3
|
export declare const TTL = 30000;
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "2fe61f5346db4feb51352f6cf58b0c1b";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export declare function normalize(input: CollectMessageRepresentation, existing: CollectMessageRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CollectMessageRepresentationNormalized;
|
|
@@ -17,6 +17,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CollectMessageRepresentationNormalized {
|
|
19
19
|
data: EsTypeMessageRepresentation_EsTypeMessageRepresentation;
|
|
20
|
+
/** Target property for the collect message. */
|
|
21
|
+
targetProperty: string;
|
|
20
22
|
/** Target type for the collect message. */
|
|
21
23
|
targetType: string;
|
|
22
24
|
}
|
|
@@ -28,5 +30,6 @@ export interface CollectMessageRepresentationNormalized {
|
|
|
28
30
|
*/
|
|
29
31
|
export interface CollectMessageRepresentation {
|
|
30
32
|
data: EsTypeMessageRepresentation_EsTypeMessageRepresentation;
|
|
33
|
+
targetProperty: string;
|
|
31
34
|
targetType: string;
|
|
32
35
|
}
|
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-dev12",
|
|
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-dev12"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.266.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.266.0-dev12"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -483,7 +483,7 @@ function equals$3(existing, incoming) {
|
|
|
483
483
|
return true;
|
|
484
484
|
}
|
|
485
485
|
|
|
486
|
-
const VERSION$2 = "
|
|
486
|
+
const VERSION$2 = "2fe61f5346db4feb51352f6cf58b0c1b";
|
|
487
487
|
function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
488
488
|
const v_error = (() => {
|
|
489
489
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -497,6 +497,11 @@ function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
|
497
497
|
message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
498
498
|
return new TypeError(message);
|
|
499
499
|
}
|
|
500
|
+
const obj_targetProperty = obj.targetProperty;
|
|
501
|
+
const path_targetProperty = path + '.targetProperty';
|
|
502
|
+
if (typeof obj_targetProperty !== 'string') {
|
|
503
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetProperty + '" (at "' + path_targetProperty + '")');
|
|
504
|
+
}
|
|
500
505
|
const obj_targetType = obj.targetType;
|
|
501
506
|
const path_targetType = path + '.targetType';
|
|
502
507
|
if (typeof obj_targetType !== 'string') {
|
|
@@ -517,6 +522,10 @@ const select$3 = function CollectMessageRepresentationSelect() {
|
|
|
517
522
|
kind: 'Object',
|
|
518
523
|
selections: EsTypeMessageRepresentation__selections
|
|
519
524
|
},
|
|
525
|
+
{
|
|
526
|
+
name: 'targetProperty',
|
|
527
|
+
kind: 'Scalar'
|
|
528
|
+
},
|
|
520
529
|
{
|
|
521
530
|
name: 'targetType',
|
|
522
531
|
kind: 'Scalar'
|
|
@@ -525,6 +534,11 @@ const select$3 = function CollectMessageRepresentationSelect() {
|
|
|
525
534
|
};
|
|
526
535
|
};
|
|
527
536
|
function equals$2(existing, incoming) {
|
|
537
|
+
const existing_targetProperty = existing.targetProperty;
|
|
538
|
+
const incoming_targetProperty = incoming.targetProperty;
|
|
539
|
+
if (!(existing_targetProperty === incoming_targetProperty)) {
|
|
540
|
+
return false;
|
|
541
|
+
}
|
|
528
542
|
const existing_targetType = existing.targetType;
|
|
529
543
|
const incoming_targetType = incoming.targetType;
|
|
530
544
|
if (!(existing_targetType === incoming_targetType)) {
|
|
@@ -1481,4 +1495,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1481
1495
|
});
|
|
1482
1496
|
|
|
1483
1497
|
export { getBotId, getBotId_imperative, sendMessage };
|
|
1484
|
-
// version: 1.266.0-
|
|
1498
|
+
// version: 1.266.0-dev12-133bca5b9
|
package/src/raml/api.raml
CHANGED
|
@@ -32,6 +32,9 @@ types:
|
|
|
32
32
|
data:
|
|
33
33
|
description: Data for the collect message.
|
|
34
34
|
type: EsTypeMessageRepresentation
|
|
35
|
+
targetProperty:
|
|
36
|
+
description: Target property for the collect message.
|
|
37
|
+
type: string
|
|
35
38
|
targetType:
|
|
36
39
|
description: Target type for the collect message.
|
|
37
40
|
type: string
|