@salesforce/lds-adapters-service-einstein-copilot-bot 1.302.0 → 1.303.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.
|
@@ -2305,7 +2305,7 @@ function validate$4(obj, path = 'FollowUpActionsInputRepresentation') {
|
|
|
2305
2305
|
return v_error === undefined ? null : v_error;
|
|
2306
2306
|
}
|
|
2307
2307
|
|
|
2308
|
-
const VERSION$3 = "
|
|
2308
|
+
const VERSION$3 = "f3b8da658dda1468e0357f1fad159c79";
|
|
2309
2309
|
function validate$3(obj, path = 'FollowUpActionsRepresentation') {
|
|
2310
2310
|
const v_error = (() => {
|
|
2311
2311
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2313,13 +2313,13 @@ function validate$3(obj, path = 'FollowUpActionsRepresentation') {
|
|
|
2313
2313
|
}
|
|
2314
2314
|
const obj_actions = obj.actions;
|
|
2315
2315
|
const path_actions = path + '.actions';
|
|
2316
|
-
if (
|
|
2317
|
-
return new TypeError('Expected "
|
|
2316
|
+
if (obj_actions === undefined) {
|
|
2317
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_actions + '" (at "' + path_actions + '")');
|
|
2318
2318
|
}
|
|
2319
2319
|
const obj_blockRenderers = obj.blockRenderers;
|
|
2320
2320
|
const path_blockRenderers = path + '.blockRenderers';
|
|
2321
|
-
if (
|
|
2322
|
-
return new TypeError('Expected "
|
|
2321
|
+
if (obj_blockRenderers === undefined) {
|
|
2322
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_blockRenderers + '" (at "' + path_blockRenderers + '")');
|
|
2323
2323
|
}
|
|
2324
2324
|
})();
|
|
2325
2325
|
return v_error === undefined ? null : v_error;
|
|
@@ -2329,14 +2329,31 @@ const select$5 = function FollowUpActionsRepresentationSelect() {
|
|
|
2329
2329
|
kind: 'Fragment',
|
|
2330
2330
|
version: VERSION$3,
|
|
2331
2331
|
private: [],
|
|
2332
|
-
selections: [
|
|
2332
|
+
selections: [
|
|
2333
|
+
{
|
|
2334
|
+
name: 'actions',
|
|
2335
|
+
kind: 'Object',
|
|
2336
|
+
// any
|
|
2337
|
+
},
|
|
2338
|
+
{
|
|
2339
|
+
name: 'blockRenderers',
|
|
2340
|
+
kind: 'Object',
|
|
2341
|
+
// any
|
|
2342
|
+
}
|
|
2343
|
+
]
|
|
2333
2344
|
};
|
|
2334
2345
|
};
|
|
2335
2346
|
function equals$3(existing, incoming) {
|
|
2336
|
-
existing.actions;
|
|
2337
|
-
incoming.actions;
|
|
2338
|
-
|
|
2339
|
-
|
|
2347
|
+
const existing_actions = existing.actions;
|
|
2348
|
+
const incoming_actions = incoming.actions;
|
|
2349
|
+
if (JSONStringify(incoming_actions) !== JSONStringify(existing_actions)) {
|
|
2350
|
+
return false;
|
|
2351
|
+
}
|
|
2352
|
+
const existing_blockRenderers = existing.blockRenderers;
|
|
2353
|
+
const incoming_blockRenderers = incoming.blockRenderers;
|
|
2354
|
+
if (JSONStringify(incoming_blockRenderers) !== JSONStringify(existing_blockRenderers)) {
|
|
2355
|
+
return false;
|
|
2356
|
+
}
|
|
2340
2357
|
return true;
|
|
2341
2358
|
}
|
|
2342
2359
|
|
|
@@ -2428,7 +2445,9 @@ function equals$2(existing, incoming) {
|
|
|
2428
2445
|
const existing_actions = existing.actions;
|
|
2429
2446
|
const incoming_actions = incoming.actions;
|
|
2430
2447
|
const equals_actions_items = equalsArray(existing_actions, incoming_actions, (existing_actions_item, incoming_actions_item) => {
|
|
2431
|
-
if (!(equals$3(existing_actions_item, incoming_actions_item)))
|
|
2448
|
+
if (!(equals$3(existing_actions_item, incoming_actions_item))) {
|
|
2449
|
+
return false;
|
|
2450
|
+
}
|
|
2432
2451
|
});
|
|
2433
2452
|
if (equals_actions_items === false) {
|
|
2434
2453
|
return false;
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "f3b8da658dda1468e0357f1fad159c79";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: FollowUpActionsRepresentation, existing: FollowUpActionsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FollowUpActionsRepresentationNormalized;
|
|
@@ -14,8 +14,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
14
|
* (none)
|
|
15
15
|
*/
|
|
16
16
|
export interface FollowUpActionsRepresentationNormalized {
|
|
17
|
-
actions:
|
|
18
|
-
blockRenderers:
|
|
17
|
+
actions: unknown;
|
|
18
|
+
blockRenderers: unknown;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* basic output item type of /connect/follow-up-actions endpoint
|
|
@@ -24,6 +24,6 @@ export interface FollowUpActionsRepresentationNormalized {
|
|
|
24
24
|
* (none)
|
|
25
25
|
*/
|
|
26
26
|
export interface FollowUpActionsRepresentation {
|
|
27
|
-
actions:
|
|
28
|
-
blockRenderers:
|
|
27
|
+
actions: unknown;
|
|
28
|
+
blockRenderers: unknown;
|
|
29
29
|
}
|
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.303.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.303.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.303.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -541,7 +541,7 @@ function validate$d(obj, path = 'FollowUpActionsInputRepresentation') {
|
|
|
541
541
|
return v_error === undefined ? null : v_error;
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
-
const VERSION$b = "
|
|
544
|
+
const VERSION$b = "f3b8da658dda1468e0357f1fad159c79";
|
|
545
545
|
function validate$c(obj, path = 'FollowUpActionsRepresentation') {
|
|
546
546
|
const v_error = (() => {
|
|
547
547
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -549,13 +549,13 @@ function validate$c(obj, path = 'FollowUpActionsRepresentation') {
|
|
|
549
549
|
}
|
|
550
550
|
const obj_actions = obj.actions;
|
|
551
551
|
const path_actions = path + '.actions';
|
|
552
|
-
if (
|
|
553
|
-
return new TypeError('Expected "
|
|
552
|
+
if (obj_actions === undefined) {
|
|
553
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_actions + '" (at "' + path_actions + '")');
|
|
554
554
|
}
|
|
555
555
|
const obj_blockRenderers = obj.blockRenderers;
|
|
556
556
|
const path_blockRenderers = path + '.blockRenderers';
|
|
557
|
-
if (
|
|
558
|
-
return new TypeError('Expected "
|
|
557
|
+
if (obj_blockRenderers === undefined) {
|
|
558
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_blockRenderers + '" (at "' + path_blockRenderers + '")');
|
|
559
559
|
}
|
|
560
560
|
})();
|
|
561
561
|
return v_error === undefined ? null : v_error;
|
|
@@ -565,14 +565,31 @@ const select$g = function FollowUpActionsRepresentationSelect() {
|
|
|
565
565
|
kind: 'Fragment',
|
|
566
566
|
version: VERSION$b,
|
|
567
567
|
private: [],
|
|
568
|
-
selections: [
|
|
568
|
+
selections: [
|
|
569
|
+
{
|
|
570
|
+
name: 'actions',
|
|
571
|
+
kind: 'Object',
|
|
572
|
+
// any
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
name: 'blockRenderers',
|
|
576
|
+
kind: 'Object',
|
|
577
|
+
// any
|
|
578
|
+
}
|
|
579
|
+
]
|
|
569
580
|
};
|
|
570
581
|
};
|
|
571
582
|
function equals$b(existing, incoming) {
|
|
572
|
-
existing.actions;
|
|
573
|
-
incoming.actions;
|
|
574
|
-
|
|
575
|
-
|
|
583
|
+
const existing_actions = existing.actions;
|
|
584
|
+
const incoming_actions = incoming.actions;
|
|
585
|
+
if (JSONStringify(incoming_actions) !== JSONStringify(existing_actions)) {
|
|
586
|
+
return false;
|
|
587
|
+
}
|
|
588
|
+
const existing_blockRenderers = existing.blockRenderers;
|
|
589
|
+
const incoming_blockRenderers = incoming.blockRenderers;
|
|
590
|
+
if (JSONStringify(incoming_blockRenderers) !== JSONStringify(existing_blockRenderers)) {
|
|
591
|
+
return false;
|
|
592
|
+
}
|
|
576
593
|
return true;
|
|
577
594
|
}
|
|
578
595
|
|
|
@@ -664,7 +681,9 @@ function equals$a(existing, incoming) {
|
|
|
664
681
|
const existing_actions = existing.actions;
|
|
665
682
|
const incoming_actions = incoming.actions;
|
|
666
683
|
const equals_actions_items = equalsArray(existing_actions, incoming_actions, (existing_actions_item, incoming_actions_item) => {
|
|
667
|
-
if (!(equals$b(existing_actions_item, incoming_actions_item)))
|
|
684
|
+
if (!(equals$b(existing_actions_item, incoming_actions_item))) {
|
|
685
|
+
return false;
|
|
686
|
+
}
|
|
668
687
|
});
|
|
669
688
|
if (equals_actions_items === false) {
|
|
670
689
|
return false;
|
|
@@ -3363,4 +3382,4 @@ withDefaultLuvio((luvio) => {
|
|
|
3363
3382
|
});
|
|
3364
3383
|
|
|
3365
3384
|
export { getBotId, getBotId_imperative, getFollowUpActions, getFollowUpActions_imperative, getRecommendedActions, getRecommendedActions_imperative, getRecommendedPlanTemplates, getRecommendedPlanTemplates_imperative, sendMessage, submitFeedback };
|
|
3366
|
-
// version: 1.
|
|
3385
|
+
// version: 1.303.0-b6ed223d95
|
package/src/raml/api.raml
CHANGED
|
@@ -347,9 +347,9 @@ types:
|
|
|
347
347
|
type: object
|
|
348
348
|
properties:
|
|
349
349
|
actions:
|
|
350
|
-
type:
|
|
350
|
+
type: any
|
|
351
351
|
blockRenderers:
|
|
352
|
-
type:
|
|
352
|
+
type: any
|
|
353
353
|
FollowUpActionsListInputRepresentation:
|
|
354
354
|
description: top-level input type to FollowUp Actions endpoint
|
|
355
355
|
type: object
|