@salesforce/lds-adapters-service-einstein-copilot-bot 1.265.0 → 1.266.0-dev2
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.
|
@@ -72,6 +72,7 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
|
72
72
|
const keyPrefix = 'einstein-copilot-bot';
|
|
73
73
|
|
|
74
74
|
const { isArray: ArrayIsArray } = Array;
|
|
75
|
+
const { stringify: JSONStringify } = JSON;
|
|
75
76
|
function equalsArray(a, b, equalsItem) {
|
|
76
77
|
const aLength = a.length;
|
|
77
78
|
const bLength = b.length;
|
|
@@ -338,7 +339,7 @@ const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(
|
|
|
338
339
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
339
340
|
};
|
|
340
341
|
|
|
341
|
-
const VERSION$4 = "
|
|
342
|
+
const VERSION$4 = "35edf813cf9e135085be6a7af45aada2";
|
|
342
343
|
function validate$5(obj, path = 'EsTypeMessageRepresentation') {
|
|
343
344
|
const v_error = (() => {
|
|
344
345
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -351,8 +352,8 @@ function validate$5(obj, path = 'EsTypeMessageRepresentation') {
|
|
|
351
352
|
}
|
|
352
353
|
const obj_value = obj.value;
|
|
353
354
|
const path_value = path + '.value';
|
|
354
|
-
if (
|
|
355
|
-
return new TypeError('Expected "
|
|
355
|
+
if (obj_value === undefined) {
|
|
356
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
356
357
|
}
|
|
357
358
|
})();
|
|
358
359
|
return v_error === undefined ? null : v_error;
|
|
@@ -366,6 +367,11 @@ const select$5 = function EsTypeMessageRepresentationSelect() {
|
|
|
366
367
|
{
|
|
367
368
|
name: 'type',
|
|
368
369
|
kind: 'Scalar'
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
name: 'value',
|
|
373
|
+
kind: 'Object',
|
|
374
|
+
// any
|
|
369
375
|
}
|
|
370
376
|
]
|
|
371
377
|
};
|
|
@@ -376,8 +382,11 @@ function equals$4(existing, incoming) {
|
|
|
376
382
|
if (!(existing_type === incoming_type)) {
|
|
377
383
|
return false;
|
|
378
384
|
}
|
|
379
|
-
existing.value;
|
|
380
|
-
incoming.value;
|
|
385
|
+
const existing_value = existing.value;
|
|
386
|
+
const incoming_value = incoming.value;
|
|
387
|
+
if (JSONStringify(incoming_value) !== JSONStringify(existing_value)) {
|
|
388
|
+
return false;
|
|
389
|
+
}
|
|
381
390
|
return true;
|
|
382
391
|
}
|
|
383
392
|
|
|
@@ -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 = "35edf813cf9e135085be6a7af45aada2";
|
|
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;
|
|
@@ -18,7 +18,7 @@ export interface EsTypeMessageRepresentationNormalized {
|
|
|
18
18
|
/** Type for the ES type message. */
|
|
19
19
|
type: string;
|
|
20
20
|
/** Value for the ES type message. */
|
|
21
|
-
value:
|
|
21
|
+
value: unknown;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Represents a ES type message
|
|
@@ -28,5 +28,5 @@ export interface EsTypeMessageRepresentationNormalized {
|
|
|
28
28
|
*/
|
|
29
29
|
export interface EsTypeMessageRepresentation {
|
|
30
30
|
type: string;
|
|
31
|
-
value:
|
|
31
|
+
value: unknown;
|
|
32
32
|
}
|
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.266.0-dev2",
|
|
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.266.0-dev2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.266.0-dev2"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -82,6 +82,7 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
|
82
82
|
const keyPrefix = 'einstein-copilot-bot';
|
|
83
83
|
|
|
84
84
|
const { isArray: ArrayIsArray } = Array;
|
|
85
|
+
const { stringify: JSONStringify } = JSON;
|
|
85
86
|
function equalsArray(a, b, equalsItem) {
|
|
86
87
|
const aLength = a.length;
|
|
87
88
|
const bLength = b.length;
|
|
@@ -348,7 +349,7 @@ const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(
|
|
|
348
349
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
349
350
|
};
|
|
350
351
|
|
|
351
|
-
const VERSION$4 = "
|
|
352
|
+
const VERSION$4 = "35edf813cf9e135085be6a7af45aada2";
|
|
352
353
|
function validate$5(obj, path = 'EsTypeMessageRepresentation') {
|
|
353
354
|
const v_error = (() => {
|
|
354
355
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -361,8 +362,8 @@ function validate$5(obj, path = 'EsTypeMessageRepresentation') {
|
|
|
361
362
|
}
|
|
362
363
|
const obj_value = obj.value;
|
|
363
364
|
const path_value = path + '.value';
|
|
364
|
-
if (
|
|
365
|
-
return new TypeError('Expected "
|
|
365
|
+
if (obj_value === undefined) {
|
|
366
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
366
367
|
}
|
|
367
368
|
})();
|
|
368
369
|
return v_error === undefined ? null : v_error;
|
|
@@ -376,6 +377,11 @@ const select$5 = function EsTypeMessageRepresentationSelect() {
|
|
|
376
377
|
{
|
|
377
378
|
name: 'type',
|
|
378
379
|
kind: 'Scalar'
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
name: 'value',
|
|
383
|
+
kind: 'Object',
|
|
384
|
+
// any
|
|
379
385
|
}
|
|
380
386
|
]
|
|
381
387
|
};
|
|
@@ -386,8 +392,11 @@ function equals$4(existing, incoming) {
|
|
|
386
392
|
if (!(existing_type === incoming_type)) {
|
|
387
393
|
return false;
|
|
388
394
|
}
|
|
389
|
-
existing.value;
|
|
390
|
-
incoming.value;
|
|
395
|
+
const existing_value = existing.value;
|
|
396
|
+
const incoming_value = incoming.value;
|
|
397
|
+
if (JSONStringify(incoming_value) !== JSONStringify(existing_value)) {
|
|
398
|
+
return false;
|
|
399
|
+
}
|
|
391
400
|
return true;
|
|
392
401
|
}
|
|
393
402
|
|
|
@@ -1387,4 +1396,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1387
1396
|
});
|
|
1388
1397
|
|
|
1389
1398
|
export { getBotId, getBotId_imperative, sendMessage };
|
|
1390
|
-
// version: 1.
|
|
1399
|
+
// version: 1.266.0-dev2-e69d357fb
|
package/src/raml/api.raml
CHANGED