@salesforce/lds-adapters-service-einstein-copilot-bot 1.451.0-dev1 → 1.451.0-dev3
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.
|
@@ -4370,7 +4370,7 @@ function equals$3(existing, incoming) {
|
|
|
4370
4370
|
return true;
|
|
4371
4371
|
}
|
|
4372
4372
|
|
|
4373
|
-
const VERSION$2 = "
|
|
4373
|
+
const VERSION$2 = "4492f233566d9ccb17479ad53eed09e8";
|
|
4374
4374
|
function validate$2(obj, path = 'MessagingChannelInfoRepresentation') {
|
|
4375
4375
|
const v_error = (() => {
|
|
4376
4376
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4400,6 +4400,13 @@ function validate$2(obj, path = 'MessagingChannelInfoRepresentation') {
|
|
|
4400
4400
|
}
|
|
4401
4401
|
}
|
|
4402
4402
|
}
|
|
4403
|
+
if (obj.isFeedbackEnabled !== undefined) {
|
|
4404
|
+
const obj_isFeedbackEnabled = obj.isFeedbackEnabled;
|
|
4405
|
+
const path_isFeedbackEnabled = path + '.isFeedbackEnabled';
|
|
4406
|
+
if (typeof obj_isFeedbackEnabled !== 'boolean') {
|
|
4407
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isFeedbackEnabled + '" (at "' + path_isFeedbackEnabled + '")');
|
|
4408
|
+
}
|
|
4409
|
+
}
|
|
4403
4410
|
if (obj.messagingChannelPlatformKey !== undefined) {
|
|
4404
4411
|
const obj_messagingChannelPlatformKey = obj.messagingChannelPlatformKey;
|
|
4405
4412
|
const path_messagingChannelPlatformKey = path + '.messagingChannelPlatformKey';
|
|
@@ -4429,6 +4436,11 @@ const select$3 = function MessagingChannelInfoRepresentationSelect() {
|
|
|
4429
4436
|
selections: EsDeploymentInfoRepresentation__selections,
|
|
4430
4437
|
required: false
|
|
4431
4438
|
},
|
|
4439
|
+
{
|
|
4440
|
+
name: 'isFeedbackEnabled',
|
|
4441
|
+
kind: 'Scalar',
|
|
4442
|
+
required: false
|
|
4443
|
+
},
|
|
4432
4444
|
{
|
|
4433
4445
|
name: 'messagingChannelPlatformKey',
|
|
4434
4446
|
kind: 'Scalar',
|
|
@@ -4438,6 +4450,19 @@ const select$3 = function MessagingChannelInfoRepresentationSelect() {
|
|
|
4438
4450
|
};
|
|
4439
4451
|
};
|
|
4440
4452
|
function equals$2(existing, incoming) {
|
|
4453
|
+
const existing_isFeedbackEnabled = existing.isFeedbackEnabled;
|
|
4454
|
+
const incoming_isFeedbackEnabled = incoming.isFeedbackEnabled;
|
|
4455
|
+
// if at least one of these optionals is defined
|
|
4456
|
+
if (existing_isFeedbackEnabled !== undefined || incoming_isFeedbackEnabled !== undefined) {
|
|
4457
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4458
|
+
// not equal
|
|
4459
|
+
if (existing_isFeedbackEnabled === undefined || incoming_isFeedbackEnabled === undefined) {
|
|
4460
|
+
return false;
|
|
4461
|
+
}
|
|
4462
|
+
if (!(existing_isFeedbackEnabled === incoming_isFeedbackEnabled)) {
|
|
4463
|
+
return false;
|
|
4464
|
+
}
|
|
4465
|
+
}
|
|
4441
4466
|
const existing_authMode = existing.authMode;
|
|
4442
4467
|
const incoming_authMode = incoming.authMode;
|
|
4443
4468
|
// if at least one of these optionals is defined
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EsDeploymentInfoRepresentation as EsDeploymentInfoRepresentation_EsDeploymentInfoRepresentation } from './EsDeploymentInfoRepresentation';
|
|
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
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "4492f233566d9ccb17479ad53eed09e8";
|
|
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: MessagingChannelInfoRepresentation, existing: MessagingChannelInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MessagingChannelInfoRepresentationNormalized;
|
|
@@ -19,6 +19,8 @@ export interface MessagingChannelInfoRepresentationNormalized {
|
|
|
19
19
|
authMode?: string;
|
|
20
20
|
/** List of EmbeddedServiceConfig deployments linked to this messaging channel. */
|
|
21
21
|
deployments?: Array<EsDeploymentInfoRepresentation_EsDeploymentInfoRepresentation>;
|
|
22
|
+
/** Indicates whether message feedback is enabled for this messaging channel. */
|
|
23
|
+
isFeedbackEnabled?: boolean;
|
|
22
24
|
/** Messaging platform key of the EmbeddedMessaging channel. */
|
|
23
25
|
messagingChannelPlatformKey?: string;
|
|
24
26
|
}
|
|
@@ -31,5 +33,6 @@ export interface MessagingChannelInfoRepresentationNormalized {
|
|
|
31
33
|
export interface MessagingChannelInfoRepresentation {
|
|
32
34
|
authMode?: string;
|
|
33
35
|
deployments?: Array<EsDeploymentInfoRepresentation_EsDeploymentInfoRepresentation>;
|
|
36
|
+
isFeedbackEnabled?: boolean;
|
|
34
37
|
messagingChannelPlatformKey?: string;
|
|
35
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
|
|
3
|
-
"version": "1.451.0-
|
|
3
|
+
"version": "1.451.0-dev3",
|
|
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.451.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.451.0-dev3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.451.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.451.0-dev3"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -219,7 +219,7 @@ function equals$l(existing, incoming) {
|
|
|
219
219
|
return true;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
const VERSION$k = "
|
|
222
|
+
const VERSION$k = "4492f233566d9ccb17479ad53eed09e8";
|
|
223
223
|
function validate$r(obj, path = 'MessagingChannelInfoRepresentation') {
|
|
224
224
|
const v_error = (() => {
|
|
225
225
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -249,6 +249,13 @@ function validate$r(obj, path = 'MessagingChannelInfoRepresentation') {
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
+
if (obj.isFeedbackEnabled !== undefined) {
|
|
253
|
+
const obj_isFeedbackEnabled = obj.isFeedbackEnabled;
|
|
254
|
+
const path_isFeedbackEnabled = path + '.isFeedbackEnabled';
|
|
255
|
+
if (typeof obj_isFeedbackEnabled !== 'boolean') {
|
|
256
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isFeedbackEnabled + '" (at "' + path_isFeedbackEnabled + '")');
|
|
257
|
+
}
|
|
258
|
+
}
|
|
252
259
|
if (obj.messagingChannelPlatformKey !== undefined) {
|
|
253
260
|
const obj_messagingChannelPlatformKey = obj.messagingChannelPlatformKey;
|
|
254
261
|
const path_messagingChannelPlatformKey = path + '.messagingChannelPlatformKey';
|
|
@@ -278,6 +285,11 @@ const select$u = function MessagingChannelInfoRepresentationSelect() {
|
|
|
278
285
|
selections: EsDeploymentInfoRepresentation__selections,
|
|
279
286
|
required: false
|
|
280
287
|
},
|
|
288
|
+
{
|
|
289
|
+
name: 'isFeedbackEnabled',
|
|
290
|
+
kind: 'Scalar',
|
|
291
|
+
required: false
|
|
292
|
+
},
|
|
281
293
|
{
|
|
282
294
|
name: 'messagingChannelPlatformKey',
|
|
283
295
|
kind: 'Scalar',
|
|
@@ -287,6 +299,19 @@ const select$u = function MessagingChannelInfoRepresentationSelect() {
|
|
|
287
299
|
};
|
|
288
300
|
};
|
|
289
301
|
function equals$k(existing, incoming) {
|
|
302
|
+
const existing_isFeedbackEnabled = existing.isFeedbackEnabled;
|
|
303
|
+
const incoming_isFeedbackEnabled = incoming.isFeedbackEnabled;
|
|
304
|
+
// if at least one of these optionals is defined
|
|
305
|
+
if (existing_isFeedbackEnabled !== undefined || incoming_isFeedbackEnabled !== undefined) {
|
|
306
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
307
|
+
// not equal
|
|
308
|
+
if (existing_isFeedbackEnabled === undefined || incoming_isFeedbackEnabled === undefined) {
|
|
309
|
+
return false;
|
|
310
|
+
}
|
|
311
|
+
if (!(existing_isFeedbackEnabled === incoming_isFeedbackEnabled)) {
|
|
312
|
+
return false;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
290
315
|
const existing_authMode = existing.authMode;
|
|
291
316
|
const incoming_authMode = incoming.authMode;
|
|
292
317
|
// if at least one of these optionals is defined
|
|
@@ -5321,4 +5346,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5321
5346
|
});
|
|
5322
5347
|
|
|
5323
5348
|
export { getAgents, getAgents_imperative, getBotId, getBotId_imperative, getCopilotObjects, getCopilotObjects_imperative, getFollowUpActions, getFollowUpActions_imperative, getRecommendedActions, getRecommendedActions_imperative, getRecommendedPlanTemplates, getRecommendedPlanTemplates_imperative, getRecommendedUtterances, getRecommendedUtterances_imperative, getWelcomeUtterances, getWelcomeUtterances_imperative, sendMessage, submitFeedback };
|
|
5324
|
-
// version: 1.451.0-
|
|
5349
|
+
// version: 1.451.0-dev3-5cd7743c69
|
package/src/raml/api.raml
CHANGED
|
@@ -709,6 +709,10 @@ types:
|
|
|
709
709
|
required: false
|
|
710
710
|
items:
|
|
711
711
|
type: EsDeploymentInfoRepresentation
|
|
712
|
+
isFeedbackEnabled:
|
|
713
|
+
description: Indicates whether message feedback is enabled for this messaging channel.
|
|
714
|
+
type: boolean
|
|
715
|
+
required: false
|
|
712
716
|
EsDeploymentInfoRepresentation:
|
|
713
717
|
description: Represents an EmbeddedServiceConfig deployment linked to a messaging channel
|
|
714
718
|
type: object
|