@salesforce/lds-adapters-service-einstein-copilot-bot 1.274.0 → 1.276.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 +72 -2
- package/dist/es/es2018/types/src/generated/types/CollectMessageRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/EsTypeMessageRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +73 -3
- package/src/raml/api.raml +6 -0
|
@@ -339,12 +339,38 @@ const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(
|
|
|
339
339
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
340
340
|
};
|
|
341
341
|
|
|
342
|
-
const VERSION$4 = "
|
|
342
|
+
const VERSION$4 = "62bc08357d634ed38883e4b936473a49";
|
|
343
343
|
function validate$5(obj, path = 'EsTypeMessageRepresentation') {
|
|
344
344
|
const v_error = (() => {
|
|
345
345
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
346
346
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
347
347
|
}
|
|
348
|
+
const obj_property = obj.property;
|
|
349
|
+
const path_property = path + '.property';
|
|
350
|
+
let obj_property_union0 = null;
|
|
351
|
+
const obj_property_union0_error = (() => {
|
|
352
|
+
if (typeof obj_property !== 'string') {
|
|
353
|
+
return new TypeError('Expected "string" but received "' + typeof obj_property + '" (at "' + path_property + '")');
|
|
354
|
+
}
|
|
355
|
+
})();
|
|
356
|
+
if (obj_property_union0_error != null) {
|
|
357
|
+
obj_property_union0 = obj_property_union0_error.message;
|
|
358
|
+
}
|
|
359
|
+
let obj_property_union1 = null;
|
|
360
|
+
const obj_property_union1_error = (() => {
|
|
361
|
+
if (obj_property !== null) {
|
|
362
|
+
return new TypeError('Expected "null" but received "' + typeof obj_property + '" (at "' + path_property + '")');
|
|
363
|
+
}
|
|
364
|
+
})();
|
|
365
|
+
if (obj_property_union1_error != null) {
|
|
366
|
+
obj_property_union1 = obj_property_union1_error.message;
|
|
367
|
+
}
|
|
368
|
+
if (obj_property_union0 && obj_property_union1) {
|
|
369
|
+
let message = 'Object doesn\'t match union (at "' + path_property + '")';
|
|
370
|
+
message += '\n' + obj_property_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
371
|
+
message += '\n' + obj_property_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
372
|
+
return new TypeError(message);
|
|
373
|
+
}
|
|
348
374
|
const obj_type = obj.type;
|
|
349
375
|
const path_type = path + '.type';
|
|
350
376
|
if (typeof obj_type !== 'string') {
|
|
@@ -364,6 +390,10 @@ const select$5 = function EsTypeMessageRepresentationSelect() {
|
|
|
364
390
|
version: VERSION$4,
|
|
365
391
|
private: [],
|
|
366
392
|
selections: [
|
|
393
|
+
{
|
|
394
|
+
name: 'property',
|
|
395
|
+
kind: 'Scalar'
|
|
396
|
+
},
|
|
367
397
|
{
|
|
368
398
|
name: 'type',
|
|
369
399
|
kind: 'Scalar'
|
|
@@ -382,6 +412,11 @@ function equals$4(existing, incoming) {
|
|
|
382
412
|
if (!(existing_type === incoming_type)) {
|
|
383
413
|
return false;
|
|
384
414
|
}
|
|
415
|
+
const existing_property = existing.property;
|
|
416
|
+
const incoming_property = incoming.property;
|
|
417
|
+
if (!(existing_property === incoming_property)) {
|
|
418
|
+
return false;
|
|
419
|
+
}
|
|
385
420
|
const existing_value = existing.value;
|
|
386
421
|
const incoming_value = incoming.value;
|
|
387
422
|
if (JSONStringify(incoming_value) !== JSONStringify(existing_value)) {
|
|
@@ -459,7 +494,7 @@ function equals$3(existing, incoming) {
|
|
|
459
494
|
return true;
|
|
460
495
|
}
|
|
461
496
|
|
|
462
|
-
const VERSION$2 = "
|
|
497
|
+
const VERSION$2 = "301ceee5b86e4e56526252efbbf70520";
|
|
463
498
|
function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
464
499
|
const v_error = (() => {
|
|
465
500
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -473,6 +508,32 @@ function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
|
473
508
|
message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
474
509
|
return new TypeError(message);
|
|
475
510
|
}
|
|
511
|
+
const obj_targetProperty = obj.targetProperty;
|
|
512
|
+
const path_targetProperty = path + '.targetProperty';
|
|
513
|
+
let obj_targetProperty_union0 = null;
|
|
514
|
+
const obj_targetProperty_union0_error = (() => {
|
|
515
|
+
if (typeof obj_targetProperty !== 'string') {
|
|
516
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetProperty + '" (at "' + path_targetProperty + '")');
|
|
517
|
+
}
|
|
518
|
+
})();
|
|
519
|
+
if (obj_targetProperty_union0_error != null) {
|
|
520
|
+
obj_targetProperty_union0 = obj_targetProperty_union0_error.message;
|
|
521
|
+
}
|
|
522
|
+
let obj_targetProperty_union1 = null;
|
|
523
|
+
const obj_targetProperty_union1_error = (() => {
|
|
524
|
+
if (obj_targetProperty !== null) {
|
|
525
|
+
return new TypeError('Expected "null" but received "' + typeof obj_targetProperty + '" (at "' + path_targetProperty + '")');
|
|
526
|
+
}
|
|
527
|
+
})();
|
|
528
|
+
if (obj_targetProperty_union1_error != null) {
|
|
529
|
+
obj_targetProperty_union1 = obj_targetProperty_union1_error.message;
|
|
530
|
+
}
|
|
531
|
+
if (obj_targetProperty_union0 && obj_targetProperty_union1) {
|
|
532
|
+
let message = 'Object doesn\'t match union (at "' + path_targetProperty + '")';
|
|
533
|
+
message += '\n' + obj_targetProperty_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
534
|
+
message += '\n' + obj_targetProperty_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
535
|
+
return new TypeError(message);
|
|
536
|
+
}
|
|
476
537
|
const obj_targetType = obj.targetType;
|
|
477
538
|
const path_targetType = path + '.targetType';
|
|
478
539
|
if (typeof obj_targetType !== 'string') {
|
|
@@ -493,6 +554,10 @@ const select$3 = function CollectMessageRepresentationSelect() {
|
|
|
493
554
|
kind: 'Object',
|
|
494
555
|
selections: EsTypeMessageRepresentation__selections
|
|
495
556
|
},
|
|
557
|
+
{
|
|
558
|
+
name: 'targetProperty',
|
|
559
|
+
kind: 'Scalar'
|
|
560
|
+
},
|
|
496
561
|
{
|
|
497
562
|
name: 'targetType',
|
|
498
563
|
kind: 'Scalar'
|
|
@@ -511,6 +576,11 @@ function equals$2(existing, incoming) {
|
|
|
511
576
|
if (!(equals$4(existing_data, incoming_data))) {
|
|
512
577
|
return false;
|
|
513
578
|
}
|
|
579
|
+
const existing_targetProperty = existing.targetProperty;
|
|
580
|
+
const incoming_targetProperty = incoming.targetProperty;
|
|
581
|
+
if (!(existing_targetProperty === incoming_targetProperty)) {
|
|
582
|
+
return false;
|
|
583
|
+
}
|
|
514
584
|
return true;
|
|
515
585
|
}
|
|
516
586
|
|
|
@@ -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 = "301ceee5b86e4e56526252efbbf70520";
|
|
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 | null;
|
|
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 | null;
|
|
31
34
|
targetType: string;
|
|
32
35
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
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';
|
|
2
2
|
export declare const TTL = 30000;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "62bc08357d634ed38883e4b936473a49";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: EsTypeMessageRepresentation, existing: EsTypeMessageRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EsTypeMessageRepresentationNormalized;
|
|
@@ -15,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
* (none)
|
|
16
16
|
*/
|
|
17
17
|
export interface EsTypeMessageRepresentationNormalized {
|
|
18
|
+
/** Property for the ES type message. */
|
|
19
|
+
property: string | null;
|
|
18
20
|
/** Type for the ES type message. */
|
|
19
21
|
type: string;
|
|
20
22
|
/** Value for the ES type message. */
|
|
@@ -27,6 +29,7 @@ export interface EsTypeMessageRepresentationNormalized {
|
|
|
27
29
|
* (none)
|
|
28
30
|
*/
|
|
29
31
|
export interface EsTypeMessageRepresentation {
|
|
32
|
+
property: string | null;
|
|
30
33
|
type: string;
|
|
31
34
|
value: unknown;
|
|
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.
|
|
3
|
+
"version": "1.276.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.276.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.276.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -349,12 +349,38 @@ const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(
|
|
|
349
349
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
350
350
|
};
|
|
351
351
|
|
|
352
|
-
const VERSION$4 = "
|
|
352
|
+
const VERSION$4 = "62bc08357d634ed38883e4b936473a49";
|
|
353
353
|
function validate$5(obj, path = 'EsTypeMessageRepresentation') {
|
|
354
354
|
const v_error = (() => {
|
|
355
355
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
356
356
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
357
357
|
}
|
|
358
|
+
const obj_property = obj.property;
|
|
359
|
+
const path_property = path + '.property';
|
|
360
|
+
let obj_property_union0 = null;
|
|
361
|
+
const obj_property_union0_error = (() => {
|
|
362
|
+
if (typeof obj_property !== 'string') {
|
|
363
|
+
return new TypeError('Expected "string" but received "' + typeof obj_property + '" (at "' + path_property + '")');
|
|
364
|
+
}
|
|
365
|
+
})();
|
|
366
|
+
if (obj_property_union0_error != null) {
|
|
367
|
+
obj_property_union0 = obj_property_union0_error.message;
|
|
368
|
+
}
|
|
369
|
+
let obj_property_union1 = null;
|
|
370
|
+
const obj_property_union1_error = (() => {
|
|
371
|
+
if (obj_property !== null) {
|
|
372
|
+
return new TypeError('Expected "null" but received "' + typeof obj_property + '" (at "' + path_property + '")');
|
|
373
|
+
}
|
|
374
|
+
})();
|
|
375
|
+
if (obj_property_union1_error != null) {
|
|
376
|
+
obj_property_union1 = obj_property_union1_error.message;
|
|
377
|
+
}
|
|
378
|
+
if (obj_property_union0 && obj_property_union1) {
|
|
379
|
+
let message = 'Object doesn\'t match union (at "' + path_property + '")';
|
|
380
|
+
message += '\n' + obj_property_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
381
|
+
message += '\n' + obj_property_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
382
|
+
return new TypeError(message);
|
|
383
|
+
}
|
|
358
384
|
const obj_type = obj.type;
|
|
359
385
|
const path_type = path + '.type';
|
|
360
386
|
if (typeof obj_type !== 'string') {
|
|
@@ -374,6 +400,10 @@ const select$5 = function EsTypeMessageRepresentationSelect() {
|
|
|
374
400
|
version: VERSION$4,
|
|
375
401
|
private: [],
|
|
376
402
|
selections: [
|
|
403
|
+
{
|
|
404
|
+
name: 'property',
|
|
405
|
+
kind: 'Scalar'
|
|
406
|
+
},
|
|
377
407
|
{
|
|
378
408
|
name: 'type',
|
|
379
409
|
kind: 'Scalar'
|
|
@@ -392,6 +422,11 @@ function equals$4(existing, incoming) {
|
|
|
392
422
|
if (!(existing_type === incoming_type)) {
|
|
393
423
|
return false;
|
|
394
424
|
}
|
|
425
|
+
const existing_property = existing.property;
|
|
426
|
+
const incoming_property = incoming.property;
|
|
427
|
+
if (!(existing_property === incoming_property)) {
|
|
428
|
+
return false;
|
|
429
|
+
}
|
|
395
430
|
const existing_value = existing.value;
|
|
396
431
|
const incoming_value = incoming.value;
|
|
397
432
|
if (JSONStringify(incoming_value) !== JSONStringify(existing_value)) {
|
|
@@ -469,7 +504,7 @@ function equals$3(existing, incoming) {
|
|
|
469
504
|
return true;
|
|
470
505
|
}
|
|
471
506
|
|
|
472
|
-
const VERSION$2 = "
|
|
507
|
+
const VERSION$2 = "301ceee5b86e4e56526252efbbf70520";
|
|
473
508
|
function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
474
509
|
const v_error = (() => {
|
|
475
510
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -483,6 +518,32 @@ function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
|
483
518
|
message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
484
519
|
return new TypeError(message);
|
|
485
520
|
}
|
|
521
|
+
const obj_targetProperty = obj.targetProperty;
|
|
522
|
+
const path_targetProperty = path + '.targetProperty';
|
|
523
|
+
let obj_targetProperty_union0 = null;
|
|
524
|
+
const obj_targetProperty_union0_error = (() => {
|
|
525
|
+
if (typeof obj_targetProperty !== 'string') {
|
|
526
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetProperty + '" (at "' + path_targetProperty + '")');
|
|
527
|
+
}
|
|
528
|
+
})();
|
|
529
|
+
if (obj_targetProperty_union0_error != null) {
|
|
530
|
+
obj_targetProperty_union0 = obj_targetProperty_union0_error.message;
|
|
531
|
+
}
|
|
532
|
+
let obj_targetProperty_union1 = null;
|
|
533
|
+
const obj_targetProperty_union1_error = (() => {
|
|
534
|
+
if (obj_targetProperty !== null) {
|
|
535
|
+
return new TypeError('Expected "null" but received "' + typeof obj_targetProperty + '" (at "' + path_targetProperty + '")');
|
|
536
|
+
}
|
|
537
|
+
})();
|
|
538
|
+
if (obj_targetProperty_union1_error != null) {
|
|
539
|
+
obj_targetProperty_union1 = obj_targetProperty_union1_error.message;
|
|
540
|
+
}
|
|
541
|
+
if (obj_targetProperty_union0 && obj_targetProperty_union1) {
|
|
542
|
+
let message = 'Object doesn\'t match union (at "' + path_targetProperty + '")';
|
|
543
|
+
message += '\n' + obj_targetProperty_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
544
|
+
message += '\n' + obj_targetProperty_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
545
|
+
return new TypeError(message);
|
|
546
|
+
}
|
|
486
547
|
const obj_targetType = obj.targetType;
|
|
487
548
|
const path_targetType = path + '.targetType';
|
|
488
549
|
if (typeof obj_targetType !== 'string') {
|
|
@@ -503,6 +564,10 @@ const select$3 = function CollectMessageRepresentationSelect() {
|
|
|
503
564
|
kind: 'Object',
|
|
504
565
|
selections: EsTypeMessageRepresentation__selections
|
|
505
566
|
},
|
|
567
|
+
{
|
|
568
|
+
name: 'targetProperty',
|
|
569
|
+
kind: 'Scalar'
|
|
570
|
+
},
|
|
506
571
|
{
|
|
507
572
|
name: 'targetType',
|
|
508
573
|
kind: 'Scalar'
|
|
@@ -521,6 +586,11 @@ function equals$2(existing, incoming) {
|
|
|
521
586
|
if (!(equals$4(existing_data, incoming_data))) {
|
|
522
587
|
return false;
|
|
523
588
|
}
|
|
589
|
+
const existing_targetProperty = existing.targetProperty;
|
|
590
|
+
const incoming_targetProperty = incoming.targetProperty;
|
|
591
|
+
if (!(existing_targetProperty === incoming_targetProperty)) {
|
|
592
|
+
return false;
|
|
593
|
+
}
|
|
524
594
|
return true;
|
|
525
595
|
}
|
|
526
596
|
|
|
@@ -1467,4 +1537,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1467
1537
|
});
|
|
1468
1538
|
|
|
1469
1539
|
export { getBotId, getBotId_imperative, sendMessage };
|
|
1470
|
-
// version: 1.
|
|
1540
|
+
// version: 1.276.0-58fd72593
|
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 | nil
|
|
35
38
|
targetType:
|
|
36
39
|
description: Target type for the collect message.
|
|
37
40
|
type: string
|
|
@@ -208,6 +211,9 @@ types:
|
|
|
208
211
|
description: Represents a ES type message
|
|
209
212
|
type: object
|
|
210
213
|
properties:
|
|
214
|
+
property:
|
|
215
|
+
description: Property for the ES type message.
|
|
216
|
+
type: string | nil
|
|
211
217
|
type:
|
|
212
218
|
description: Type for the ES type message.
|
|
213
219
|
type: string
|