@salesforce/lds-adapters-service-einstein-copilot-bot 1.266.0-dev12 → 1.266.0-dev14
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 +58 -16
- package/dist/es/es2018/types/src/generated/types/CollectMessageRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/EsTypeMessageRepresentation.d.ts +3 -3
- package/package.json +3 -3
- package/sfdc/index.js +59 -17
- package/src/raml/api.raml +2 -2
|
@@ -339,7 +339,7 @@ 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) {
|
|
@@ -347,8 +347,29 @@ function validate$5(obj, path = 'EsTypeMessageRepresentation') {
|
|
|
347
347
|
}
|
|
348
348
|
const obj_property = obj.property;
|
|
349
349
|
const path_property = path + '.property';
|
|
350
|
-
|
|
351
|
-
|
|
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);
|
|
352
373
|
}
|
|
353
374
|
const obj_type = obj.type;
|
|
354
375
|
const path_type = path + '.type';
|
|
@@ -386,16 +407,16 @@ const select$5 = function EsTypeMessageRepresentationSelect() {
|
|
|
386
407
|
};
|
|
387
408
|
};
|
|
388
409
|
function equals$4(existing, incoming) {
|
|
389
|
-
const existing_property = existing.property;
|
|
390
|
-
const incoming_property = incoming.property;
|
|
391
|
-
if (!(existing_property === incoming_property)) {
|
|
392
|
-
return false;
|
|
393
|
-
}
|
|
394
410
|
const existing_type = existing.type;
|
|
395
411
|
const incoming_type = incoming.type;
|
|
396
412
|
if (!(existing_type === incoming_type)) {
|
|
397
413
|
return false;
|
|
398
414
|
}
|
|
415
|
+
const existing_property = existing.property;
|
|
416
|
+
const incoming_property = incoming.property;
|
|
417
|
+
if (!(existing_property === incoming_property)) {
|
|
418
|
+
return false;
|
|
419
|
+
}
|
|
399
420
|
const existing_value = existing.value;
|
|
400
421
|
const incoming_value = incoming.value;
|
|
401
422
|
if (JSONStringify(incoming_value) !== JSONStringify(existing_value)) {
|
|
@@ -473,7 +494,7 @@ function equals$3(existing, incoming) {
|
|
|
473
494
|
return true;
|
|
474
495
|
}
|
|
475
496
|
|
|
476
|
-
const VERSION$2 = "
|
|
497
|
+
const VERSION$2 = "301ceee5b86e4e56526252efbbf70520";
|
|
477
498
|
function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
478
499
|
const v_error = (() => {
|
|
479
500
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -489,8 +510,29 @@ function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
|
489
510
|
}
|
|
490
511
|
const obj_targetProperty = obj.targetProperty;
|
|
491
512
|
const path_targetProperty = path + '.targetProperty';
|
|
492
|
-
|
|
493
|
-
|
|
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);
|
|
494
536
|
}
|
|
495
537
|
const obj_targetType = obj.targetType;
|
|
496
538
|
const path_targetType = path + '.targetType';
|
|
@@ -524,11 +566,6 @@ const select$3 = function CollectMessageRepresentationSelect() {
|
|
|
524
566
|
};
|
|
525
567
|
};
|
|
526
568
|
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
|
-
}
|
|
532
569
|
const existing_targetType = existing.targetType;
|
|
533
570
|
const incoming_targetType = incoming.targetType;
|
|
534
571
|
if (!(existing_targetType === incoming_targetType)) {
|
|
@@ -539,6 +576,11 @@ function equals$2(existing, incoming) {
|
|
|
539
576
|
if (!(equals$4(existing_data, incoming_data))) {
|
|
540
577
|
return false;
|
|
541
578
|
}
|
|
579
|
+
const existing_targetProperty = existing.targetProperty;
|
|
580
|
+
const incoming_targetProperty = incoming.targetProperty;
|
|
581
|
+
if (!(existing_targetProperty === incoming_targetProperty)) {
|
|
582
|
+
return false;
|
|
583
|
+
}
|
|
542
584
|
return true;
|
|
543
585
|
}
|
|
544
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;
|
|
@@ -18,7 +18,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
18
18
|
export interface CollectMessageRepresentationNormalized {
|
|
19
19
|
data: EsTypeMessageRepresentation_EsTypeMessageRepresentation;
|
|
20
20
|
/** Target property for the collect message. */
|
|
21
|
-
targetProperty: string;
|
|
21
|
+
targetProperty: string | null;
|
|
22
22
|
/** Target type for the collect message. */
|
|
23
23
|
targetType: string;
|
|
24
24
|
}
|
|
@@ -30,6 +30,6 @@ export interface CollectMessageRepresentationNormalized {
|
|
|
30
30
|
*/
|
|
31
31
|
export interface CollectMessageRepresentation {
|
|
32
32
|
data: EsTypeMessageRepresentation_EsTypeMessageRepresentation;
|
|
33
|
-
targetProperty: string;
|
|
33
|
+
targetProperty: string | null;
|
|
34
34
|
targetType: string;
|
|
35
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;
|
|
@@ -16,7 +16,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
16
|
*/
|
|
17
17
|
export interface EsTypeMessageRepresentationNormalized {
|
|
18
18
|
/** Property for the ES type message. */
|
|
19
|
-
property: string;
|
|
19
|
+
property: string | null;
|
|
20
20
|
/** Type for the ES type message. */
|
|
21
21
|
type: string;
|
|
22
22
|
/** Value for the ES type message. */
|
|
@@ -29,7 +29,7 @@ export interface EsTypeMessageRepresentationNormalized {
|
|
|
29
29
|
* (none)
|
|
30
30
|
*/
|
|
31
31
|
export interface EsTypeMessageRepresentation {
|
|
32
|
-
property: string;
|
|
32
|
+
property: string | null;
|
|
33
33
|
type: string;
|
|
34
34
|
value: unknown;
|
|
35
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-dev14",
|
|
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-dev14"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.266.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.266.0-dev14"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -349,7 +349,7 @@ 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) {
|
|
@@ -357,8 +357,29 @@ function validate$5(obj, path = 'EsTypeMessageRepresentation') {
|
|
|
357
357
|
}
|
|
358
358
|
const obj_property = obj.property;
|
|
359
359
|
const path_property = path + '.property';
|
|
360
|
-
|
|
361
|
-
|
|
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);
|
|
362
383
|
}
|
|
363
384
|
const obj_type = obj.type;
|
|
364
385
|
const path_type = path + '.type';
|
|
@@ -396,16 +417,16 @@ const select$5 = function EsTypeMessageRepresentationSelect() {
|
|
|
396
417
|
};
|
|
397
418
|
};
|
|
398
419
|
function equals$4(existing, incoming) {
|
|
399
|
-
const existing_property = existing.property;
|
|
400
|
-
const incoming_property = incoming.property;
|
|
401
|
-
if (!(existing_property === incoming_property)) {
|
|
402
|
-
return false;
|
|
403
|
-
}
|
|
404
420
|
const existing_type = existing.type;
|
|
405
421
|
const incoming_type = incoming.type;
|
|
406
422
|
if (!(existing_type === incoming_type)) {
|
|
407
423
|
return false;
|
|
408
424
|
}
|
|
425
|
+
const existing_property = existing.property;
|
|
426
|
+
const incoming_property = incoming.property;
|
|
427
|
+
if (!(existing_property === incoming_property)) {
|
|
428
|
+
return false;
|
|
429
|
+
}
|
|
409
430
|
const existing_value = existing.value;
|
|
410
431
|
const incoming_value = incoming.value;
|
|
411
432
|
if (JSONStringify(incoming_value) !== JSONStringify(existing_value)) {
|
|
@@ -483,7 +504,7 @@ function equals$3(existing, incoming) {
|
|
|
483
504
|
return true;
|
|
484
505
|
}
|
|
485
506
|
|
|
486
|
-
const VERSION$2 = "
|
|
507
|
+
const VERSION$2 = "301ceee5b86e4e56526252efbbf70520";
|
|
487
508
|
function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
488
509
|
const v_error = (() => {
|
|
489
510
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -499,8 +520,29 @@ function validate$2(obj, path = 'CollectMessageRepresentation') {
|
|
|
499
520
|
}
|
|
500
521
|
const obj_targetProperty = obj.targetProperty;
|
|
501
522
|
const path_targetProperty = path + '.targetProperty';
|
|
502
|
-
|
|
503
|
-
|
|
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);
|
|
504
546
|
}
|
|
505
547
|
const obj_targetType = obj.targetType;
|
|
506
548
|
const path_targetType = path + '.targetType';
|
|
@@ -534,11 +576,6 @@ const select$3 = function CollectMessageRepresentationSelect() {
|
|
|
534
576
|
};
|
|
535
577
|
};
|
|
536
578
|
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
|
-
}
|
|
542
579
|
const existing_targetType = existing.targetType;
|
|
543
580
|
const incoming_targetType = incoming.targetType;
|
|
544
581
|
if (!(existing_targetType === incoming_targetType)) {
|
|
@@ -549,6 +586,11 @@ function equals$2(existing, incoming) {
|
|
|
549
586
|
if (!(equals$4(existing_data, incoming_data))) {
|
|
550
587
|
return false;
|
|
551
588
|
}
|
|
589
|
+
const existing_targetProperty = existing.targetProperty;
|
|
590
|
+
const incoming_targetProperty = incoming.targetProperty;
|
|
591
|
+
if (!(existing_targetProperty === incoming_targetProperty)) {
|
|
592
|
+
return false;
|
|
593
|
+
}
|
|
552
594
|
return true;
|
|
553
595
|
}
|
|
554
596
|
|
|
@@ -1495,4 +1537,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1495
1537
|
});
|
|
1496
1538
|
|
|
1497
1539
|
export { getBotId, getBotId_imperative, sendMessage };
|
|
1498
|
-
// version: 1.266.0-
|
|
1540
|
+
// version: 1.266.0-dev14-46738832d
|
package/src/raml/api.raml
CHANGED
|
@@ -34,7 +34,7 @@ types:
|
|
|
34
34
|
type: EsTypeMessageRepresentation
|
|
35
35
|
targetProperty:
|
|
36
36
|
description: Target property for the collect message.
|
|
37
|
-
type: string
|
|
37
|
+
type: string | nil
|
|
38
38
|
targetType:
|
|
39
39
|
description: Target type for the collect message.
|
|
40
40
|
type: string
|
|
@@ -213,7 +213,7 @@ types:
|
|
|
213
213
|
properties:
|
|
214
214
|
property:
|
|
215
215
|
description: Property for the ES type message.
|
|
216
|
-
type: string
|
|
216
|
+
type: string | nil
|
|
217
217
|
type:
|
|
218
218
|
description: Type for the ES type message.
|
|
219
219
|
type: string
|