@salesforce/lds-adapters-service-einstein-copilot-bot 1.446.0 → 1.447.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 +478 -198
- package/dist/es/es2018/types/src/generated/types/AgentforceAgentBotInfoListRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/AgentforceAgentBotInfoRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/EsDeploymentInfoRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/MessagingChannelInfoRepresentation.d.ts +35 -0
- package/package.json +3 -3
- package/sfdc/index.js +283 -3
- package/src/raml/api.raml +44 -0
|
@@ -113,8 +113,8 @@ function createLink(ref) {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
const TTL$a = 30000;
|
|
116
|
-
const VERSION$
|
|
117
|
-
function validate$
|
|
116
|
+
const VERSION$l = "c27669d0d0ba84ade6d5a4c97336c0ef";
|
|
117
|
+
function validate$s(obj, path = 'CopilotBotInfoRepresentation') {
|
|
118
118
|
const v_error = (() => {
|
|
119
119
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
120
120
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -166,10 +166,10 @@ const RepresentationType$a = 'CopilotBotInfoRepresentation';
|
|
|
166
166
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
167
167
|
return input;
|
|
168
168
|
}
|
|
169
|
-
const select$
|
|
169
|
+
const select$v = function CopilotBotInfoRepresentationSelect() {
|
|
170
170
|
return {
|
|
171
171
|
kind: 'Fragment',
|
|
172
|
-
version: VERSION$
|
|
172
|
+
version: VERSION$l,
|
|
173
173
|
private: [],
|
|
174
174
|
selections: [
|
|
175
175
|
{
|
|
@@ -204,7 +204,7 @@ const select$t = function CopilotBotInfoRepresentationSelect() {
|
|
|
204
204
|
]
|
|
205
205
|
};
|
|
206
206
|
};
|
|
207
|
-
function equals$
|
|
207
|
+
function equals$l(existing, incoming) {
|
|
208
208
|
const existing_isSuccess = existing.isSuccess;
|
|
209
209
|
const incoming_isSuccess = incoming.isSuccess;
|
|
210
210
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -279,14 +279,14 @@ function equals$j(existing, incoming) {
|
|
|
279
279
|
}
|
|
280
280
|
const ingest$a = function CopilotBotInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
281
281
|
if (process.env.NODE_ENV !== 'production') {
|
|
282
|
-
const validateError = validate$
|
|
282
|
+
const validateError = validate$s(input);
|
|
283
283
|
if (validateError !== null) {
|
|
284
284
|
throw validateError;
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
const key = path.fullPath;
|
|
288
288
|
const ttlToUse = TTL$a;
|
|
289
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "einstein-copilot-bot", VERSION$
|
|
289
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "einstein-copilot-bot", VERSION$l, RepresentationType$a, equals$l);
|
|
290
290
|
return createLink(key);
|
|
291
291
|
};
|
|
292
292
|
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -299,8 +299,8 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
function select$
|
|
303
|
-
return select$
|
|
302
|
+
function select$u(luvio, params) {
|
|
303
|
+
return select$v();
|
|
304
304
|
}
|
|
305
305
|
function keyBuilder$i(luvio, params) {
|
|
306
306
|
return keyPrefix + '::CopilotBotInfoRepresentation:(' + 'agentType:' + params.queryParams.agentType + ')';
|
|
@@ -314,7 +314,7 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
314
314
|
luvio.storeIngest(key, ingest$a, body);
|
|
315
315
|
const snapshot = luvio.storeLookup({
|
|
316
316
|
recordId: key,
|
|
317
|
-
node: select$
|
|
317
|
+
node: select$u(),
|
|
318
318
|
variables: {},
|
|
319
319
|
}, snapshotRefresh);
|
|
320
320
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -331,7 +331,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
331
331
|
const storeMetadataParams = {
|
|
332
332
|
ttl: TTL$a,
|
|
333
333
|
namespace: keyPrefix,
|
|
334
|
-
version: VERSION$
|
|
334
|
+
version: VERSION$l,
|
|
335
335
|
representationName: RepresentationType$a
|
|
336
336
|
};
|
|
337
337
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -381,7 +381,7 @@ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
|
381
381
|
}
|
|
382
382
|
function adapterFragment$7(luvio, config) {
|
|
383
383
|
createResourceParams$9(config);
|
|
384
|
-
return select$
|
|
384
|
+
return select$u();
|
|
385
385
|
}
|
|
386
386
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
387
387
|
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
@@ -437,8 +437,8 @@ const getBotIdAdapterFactory = (luvio) => function einsteinCopilotBot__getBotId(
|
|
|
437
437
|
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
438
438
|
};
|
|
439
439
|
|
|
440
|
-
const VERSION$
|
|
441
|
-
function validate$
|
|
440
|
+
const VERSION$k = "e8cb7e20392935088ea2f98edb927e8a";
|
|
441
|
+
function validate$r(obj, path = 'EsTypeMessageRepresentation') {
|
|
442
442
|
const v_error = (() => {
|
|
443
443
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
444
444
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -484,10 +484,10 @@ function validate$p(obj, path = 'EsTypeMessageRepresentation') {
|
|
|
484
484
|
})();
|
|
485
485
|
return v_error === undefined ? null : v_error;
|
|
486
486
|
}
|
|
487
|
-
const select$
|
|
487
|
+
const select$t = function EsTypeMessageRepresentationSelect() {
|
|
488
488
|
return {
|
|
489
489
|
kind: 'Fragment',
|
|
490
|
-
version: VERSION$
|
|
490
|
+
version: VERSION$k,
|
|
491
491
|
private: [],
|
|
492
492
|
selections: [
|
|
493
493
|
{
|
|
@@ -507,7 +507,7 @@ const select$r = function EsTypeMessageRepresentationSelect() {
|
|
|
507
507
|
]
|
|
508
508
|
};
|
|
509
509
|
};
|
|
510
|
-
function equals$
|
|
510
|
+
function equals$k(existing, incoming) {
|
|
511
511
|
const existing_type = existing.type;
|
|
512
512
|
const incoming_type = incoming.type;
|
|
513
513
|
if (!(existing_type === incoming_type)) {
|
|
@@ -534,7 +534,7 @@ function equals$i(existing, incoming) {
|
|
|
534
534
|
return true;
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
-
function validate$
|
|
537
|
+
function validate$q(obj, path = 'VariableRepresentation') {
|
|
538
538
|
const v_error = (() => {
|
|
539
539
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
540
540
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -560,8 +560,8 @@ function validate$o(obj, path = 'VariableRepresentation') {
|
|
|
560
560
|
return v_error === undefined ? null : v_error;
|
|
561
561
|
}
|
|
562
562
|
|
|
563
|
-
const VERSION$
|
|
564
|
-
function validate$
|
|
563
|
+
const VERSION$j = "4e28b61c3ea362f1c68b28897784111e";
|
|
564
|
+
function validate$p(obj, path = 'ConversationRuntimeProxyChoiceRepresentation') {
|
|
565
565
|
const v_error = (() => {
|
|
566
566
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
567
567
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -579,10 +579,10 @@ function validate$n(obj, path = 'ConversationRuntimeProxyChoiceRepresentation')
|
|
|
579
579
|
})();
|
|
580
580
|
return v_error === undefined ? null : v_error;
|
|
581
581
|
}
|
|
582
|
-
const select$
|
|
582
|
+
const select$s = function ConversationRuntimeProxyChoiceRepresentationSelect() {
|
|
583
583
|
return {
|
|
584
584
|
kind: 'Fragment',
|
|
585
|
-
version: VERSION$
|
|
585
|
+
version: VERSION$j,
|
|
586
586
|
private: [],
|
|
587
587
|
selections: [
|
|
588
588
|
{
|
|
@@ -596,7 +596,7 @@ const select$q = function ConversationRuntimeProxyChoiceRepresentationSelect() {
|
|
|
596
596
|
]
|
|
597
597
|
};
|
|
598
598
|
};
|
|
599
|
-
function equals$
|
|
599
|
+
function equals$j(existing, incoming) {
|
|
600
600
|
const existing_alias = existing.alias;
|
|
601
601
|
const incoming_alias = incoming.alias;
|
|
602
602
|
if (!(existing_alias === incoming_alias)) {
|
|
@@ -610,8 +610,8 @@ function equals$h(existing, incoming) {
|
|
|
610
610
|
return true;
|
|
611
611
|
}
|
|
612
612
|
|
|
613
|
-
const VERSION$
|
|
614
|
-
function validate$
|
|
613
|
+
const VERSION$i = "477724425d0742c030025796c88ebf5d";
|
|
614
|
+
function validate$o(obj, path = 'CollectMessageRepresentation') {
|
|
615
615
|
const v_error = (() => {
|
|
616
616
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
617
617
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -619,7 +619,7 @@ function validate$m(obj, path = 'CollectMessageRepresentation') {
|
|
|
619
619
|
if (obj.data !== undefined) {
|
|
620
620
|
const obj_data = obj.data;
|
|
621
621
|
const path_data = path + '.data';
|
|
622
|
-
const referencepath_dataValidationError = validate$
|
|
622
|
+
const referencepath_dataValidationError = validate$r(obj_data, path_data);
|
|
623
623
|
if (referencepath_dataValidationError !== null) {
|
|
624
624
|
let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_data + '")\n';
|
|
625
625
|
message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -662,11 +662,11 @@ function validate$m(obj, path = 'CollectMessageRepresentation') {
|
|
|
662
662
|
})();
|
|
663
663
|
return v_error === undefined ? null : v_error;
|
|
664
664
|
}
|
|
665
|
-
const select$
|
|
666
|
-
const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$
|
|
665
|
+
const select$r = function CollectMessageRepresentationSelect() {
|
|
666
|
+
const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$t();
|
|
667
667
|
return {
|
|
668
668
|
kind: 'Fragment',
|
|
669
|
-
version: VERSION$
|
|
669
|
+
version: VERSION$i,
|
|
670
670
|
private: [],
|
|
671
671
|
selections: [
|
|
672
672
|
{
|
|
@@ -687,7 +687,7 @@ const select$p = function CollectMessageRepresentationSelect() {
|
|
|
687
687
|
]
|
|
688
688
|
};
|
|
689
689
|
};
|
|
690
|
-
function equals$
|
|
690
|
+
function equals$i(existing, incoming) {
|
|
691
691
|
const existing_targetType = existing.targetType;
|
|
692
692
|
const incoming_targetType = incoming.targetType;
|
|
693
693
|
if (!(existing_targetType === incoming_targetType)) {
|
|
@@ -702,7 +702,7 @@ function equals$g(existing, incoming) {
|
|
|
702
702
|
if (existing_data === undefined || incoming_data === undefined) {
|
|
703
703
|
return false;
|
|
704
704
|
}
|
|
705
|
-
if (!(equals$
|
|
705
|
+
if (!(equals$k(existing_data, incoming_data))) {
|
|
706
706
|
return false;
|
|
707
707
|
}
|
|
708
708
|
}
|
|
@@ -723,8 +723,8 @@ function equals$g(existing, incoming) {
|
|
|
723
723
|
}
|
|
724
724
|
|
|
725
725
|
const TTL$9 = 30000;
|
|
726
|
-
const VERSION$
|
|
727
|
-
function validate$
|
|
726
|
+
const VERSION$h = "983ede912bc103cfd2e2c2758140c5c9";
|
|
727
|
+
function validate$n(obj, path = 'ConversationRuntimeProxyMessageRepresentation') {
|
|
728
728
|
const v_error = (() => {
|
|
729
729
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
730
730
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -738,7 +738,7 @@ function validate$l(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
|
|
|
738
738
|
for (let i = 0; i < obj_choices.length; i++) {
|
|
739
739
|
const obj_choices_item = obj_choices[i];
|
|
740
740
|
const path_choices_item = path_choices + '[' + i + ']';
|
|
741
|
-
const referencepath_choices_itemValidationError = validate$
|
|
741
|
+
const referencepath_choices_itemValidationError = validate$p(obj_choices_item, path_choices_item);
|
|
742
742
|
if (referencepath_choices_itemValidationError !== null) {
|
|
743
743
|
let message = 'Object doesn\'t match ConversationRuntimeProxyChoiceRepresentation (at "' + path_choices_item + '")\n';
|
|
744
744
|
message += referencepath_choices_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -755,7 +755,7 @@ function validate$l(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
|
|
|
755
755
|
for (let i = 0; i < obj_collect.length; i++) {
|
|
756
756
|
const obj_collect_item = obj_collect[i];
|
|
757
757
|
const path_collect_item = path_collect + '[' + i + ']';
|
|
758
|
-
const referencepath_collect_itemValidationError = validate$
|
|
758
|
+
const referencepath_collect_itemValidationError = validate$o(obj_collect_item, path_collect_item);
|
|
759
759
|
if (referencepath_collect_itemValidationError !== null) {
|
|
760
760
|
let message = 'Object doesn\'t match CollectMessageRepresentation (at "' + path_collect_item + '")\n';
|
|
761
761
|
message += referencepath_collect_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -772,7 +772,7 @@ function validate$l(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
|
|
|
772
772
|
for (let i = 0; i < obj_confirm.length; i++) {
|
|
773
773
|
const obj_confirm_item = obj_confirm[i];
|
|
774
774
|
const path_confirm_item = path_confirm + '[' + i + ']';
|
|
775
|
-
const referencepath_confirm_itemValidationError = validate$
|
|
775
|
+
const referencepath_confirm_itemValidationError = validate$r(obj_confirm_item, path_confirm_item);
|
|
776
776
|
if (referencepath_confirm_itemValidationError !== null) {
|
|
777
777
|
let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_confirm_item + '")\n';
|
|
778
778
|
message += referencepath_confirm_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -955,7 +955,7 @@ function validate$l(obj, path = 'ConversationRuntimeProxyMessageRepresentation')
|
|
|
955
955
|
for (let i = 0; i < obj_result.length; i++) {
|
|
956
956
|
const obj_result_item = obj_result[i];
|
|
957
957
|
const path_result_item = path_result + '[' + i + ']';
|
|
958
|
-
const referencepath_result_itemValidationError = validate$
|
|
958
|
+
const referencepath_result_itemValidationError = validate$r(obj_result_item, path_result_item);
|
|
959
959
|
if (referencepath_result_itemValidationError !== null) {
|
|
960
960
|
let message = 'Object doesn\'t match EsTypeMessageRepresentation (at "' + path_result_item + '")\n';
|
|
961
961
|
message += referencepath_result_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1042,13 +1042,13 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
1042
1042
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
1043
1043
|
return input;
|
|
1044
1044
|
}
|
|
1045
|
-
const select$
|
|
1046
|
-
const { selections: ConversationRuntimeProxyChoiceRepresentation__selections, opaque: ConversationRuntimeProxyChoiceRepresentation__opaque, } = select$
|
|
1047
|
-
const { selections: CollectMessageRepresentation__selections, opaque: CollectMessageRepresentation__opaque, } = select$
|
|
1048
|
-
const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$
|
|
1045
|
+
const select$q = function ConversationRuntimeProxyMessageRepresentationSelect() {
|
|
1046
|
+
const { selections: ConversationRuntimeProxyChoiceRepresentation__selections, opaque: ConversationRuntimeProxyChoiceRepresentation__opaque, } = select$s();
|
|
1047
|
+
const { selections: CollectMessageRepresentation__selections, opaque: CollectMessageRepresentation__opaque, } = select$r();
|
|
1048
|
+
const { selections: EsTypeMessageRepresentation__selections, opaque: EsTypeMessageRepresentation__opaque, } = select$t();
|
|
1049
1049
|
return {
|
|
1050
1050
|
kind: 'Fragment',
|
|
1051
|
-
version: VERSION$
|
|
1051
|
+
version: VERSION$h,
|
|
1052
1052
|
private: [],
|
|
1053
1053
|
selections: [
|
|
1054
1054
|
{
|
|
@@ -1137,7 +1137,7 @@ const select$o = function ConversationRuntimeProxyMessageRepresentationSelect()
|
|
|
1137
1137
|
]
|
|
1138
1138
|
};
|
|
1139
1139
|
};
|
|
1140
|
-
function equals$
|
|
1140
|
+
function equals$h(existing, incoming) {
|
|
1141
1141
|
const existing_isContentSafe = existing.isContentSafe;
|
|
1142
1142
|
const incoming_isContentSafe = incoming.isContentSafe;
|
|
1143
1143
|
// if at least one of these optionals is defined
|
|
@@ -1179,7 +1179,7 @@ function equals$f(existing, incoming) {
|
|
|
1179
1179
|
return false;
|
|
1180
1180
|
}
|
|
1181
1181
|
const equals_choices_items = equalsArray(existing_choices, incoming_choices, (existing_choices_item, incoming_choices_item) => {
|
|
1182
|
-
if (!(equals$
|
|
1182
|
+
if (!(equals$j(existing_choices_item, incoming_choices_item))) {
|
|
1183
1183
|
return false;
|
|
1184
1184
|
}
|
|
1185
1185
|
});
|
|
@@ -1197,7 +1197,7 @@ function equals$f(existing, incoming) {
|
|
|
1197
1197
|
return false;
|
|
1198
1198
|
}
|
|
1199
1199
|
const equals_collect_items = equalsArray(existing_collect, incoming_collect, (existing_collect_item, incoming_collect_item) => {
|
|
1200
|
-
if (!(equals$
|
|
1200
|
+
if (!(equals$i(existing_collect_item, incoming_collect_item))) {
|
|
1201
1201
|
return false;
|
|
1202
1202
|
}
|
|
1203
1203
|
});
|
|
@@ -1215,7 +1215,7 @@ function equals$f(existing, incoming) {
|
|
|
1215
1215
|
return false;
|
|
1216
1216
|
}
|
|
1217
1217
|
const equals_confirm_items = equalsArray(existing_confirm, incoming_confirm, (existing_confirm_item, incoming_confirm_item) => {
|
|
1218
|
-
if (!(equals$
|
|
1218
|
+
if (!(equals$k(existing_confirm_item, incoming_confirm_item))) {
|
|
1219
1219
|
return false;
|
|
1220
1220
|
}
|
|
1221
1221
|
});
|
|
@@ -1316,7 +1316,7 @@ function equals$f(existing, incoming) {
|
|
|
1316
1316
|
return false;
|
|
1317
1317
|
}
|
|
1318
1318
|
const equals_result_items = equalsArray(existing_result, incoming_result, (existing_result_item, incoming_result_item) => {
|
|
1319
|
-
if (!(equals$
|
|
1319
|
+
if (!(equals$k(existing_result_item, incoming_result_item))) {
|
|
1320
1320
|
return false;
|
|
1321
1321
|
}
|
|
1322
1322
|
});
|
|
@@ -1354,14 +1354,14 @@ function equals$f(existing, incoming) {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
const ingest$9 = function ConversationRuntimeProxyMessageRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1356
1356
|
if (process.env.NODE_ENV !== 'production') {
|
|
1357
|
-
const validateError = validate$
|
|
1357
|
+
const validateError = validate$n(input);
|
|
1358
1358
|
if (validateError !== null) {
|
|
1359
1359
|
throw validateError;
|
|
1360
1360
|
}
|
|
1361
1361
|
}
|
|
1362
1362
|
const key = keyBuilderFromType$2(luvio, input);
|
|
1363
1363
|
const ttlToUse = TTL$9;
|
|
1364
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "einstein-copilot-bot", VERSION$
|
|
1364
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "einstein-copilot-bot", VERSION$h, RepresentationType$9, equals$h);
|
|
1365
1365
|
return createLink(key);
|
|
1366
1366
|
};
|
|
1367
1367
|
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1375,8 +1375,8 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
|
|
1377
1377
|
const TTL$8 = 30000;
|
|
1378
|
-
const VERSION$
|
|
1379
|
-
function validate$
|
|
1378
|
+
const VERSION$g = "fe7024fb1132250f97d9616482f09f99";
|
|
1379
|
+
function validate$m(obj, path = 'ConversationRuntimeProxyRepresentation') {
|
|
1380
1380
|
const v_error = (() => {
|
|
1381
1381
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1382
1382
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1457,10 +1457,10 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
return input;
|
|
1459
1459
|
}
|
|
1460
|
-
const select$
|
|
1460
|
+
const select$p = function ConversationRuntimeProxyRepresentationSelect() {
|
|
1461
1461
|
return {
|
|
1462
1462
|
kind: 'Fragment',
|
|
1463
|
-
version: VERSION$
|
|
1463
|
+
version: VERSION$g,
|
|
1464
1464
|
private: [],
|
|
1465
1465
|
selections: [
|
|
1466
1466
|
{
|
|
@@ -1475,7 +1475,7 @@ const select$n = function ConversationRuntimeProxyRepresentationSelect() {
|
|
|
1475
1475
|
name: 'messages',
|
|
1476
1476
|
kind: 'Link',
|
|
1477
1477
|
plural: true,
|
|
1478
|
-
fragment: select$
|
|
1478
|
+
fragment: select$q()
|
|
1479
1479
|
},
|
|
1480
1480
|
{
|
|
1481
1481
|
name: 'processedSequenceIds',
|
|
@@ -1493,7 +1493,7 @@ const select$n = function ConversationRuntimeProxyRepresentationSelect() {
|
|
|
1493
1493
|
]
|
|
1494
1494
|
};
|
|
1495
1495
|
};
|
|
1496
|
-
function equals$
|
|
1496
|
+
function equals$g(existing, incoming) {
|
|
1497
1497
|
const existing_botId = existing.botId;
|
|
1498
1498
|
const incoming_botId = incoming.botId;
|
|
1499
1499
|
if (!(existing_botId === incoming_botId)) {
|
|
@@ -1538,14 +1538,14 @@ function equals$e(existing, incoming) {
|
|
|
1538
1538
|
}
|
|
1539
1539
|
const ingest$8 = function ConversationRuntimeProxyRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1540
1540
|
if (process.env.NODE_ENV !== 'production') {
|
|
1541
|
-
const validateError = validate$
|
|
1541
|
+
const validateError = validate$m(input);
|
|
1542
1542
|
if (validateError !== null) {
|
|
1543
1543
|
throw validateError;
|
|
1544
1544
|
}
|
|
1545
1545
|
}
|
|
1546
1546
|
const key = keyBuilderFromType$1(luvio, input);
|
|
1547
1547
|
const ttlToUse = TTL$8;
|
|
1548
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "einstein-copilot-bot", VERSION$
|
|
1548
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "einstein-copilot-bot", VERSION$g, RepresentationType$8, equals$g);
|
|
1549
1549
|
return createLink(key);
|
|
1550
1550
|
};
|
|
1551
1551
|
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1562,8 +1562,8 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
}
|
|
1564
1564
|
|
|
1565
|
-
function select$
|
|
1566
|
-
return select$
|
|
1565
|
+
function select$o(luvio, params) {
|
|
1566
|
+
return select$p();
|
|
1567
1567
|
}
|
|
1568
1568
|
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
1569
1569
|
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
@@ -1574,7 +1574,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
1574
1574
|
luvio.storeIngest(key, ingest$8, body);
|
|
1575
1575
|
const snapshot = luvio.storeLookup({
|
|
1576
1576
|
recordId: key,
|
|
1577
|
-
node: select$
|
|
1577
|
+
node: select$o(),
|
|
1578
1578
|
variables: {},
|
|
1579
1579
|
});
|
|
1580
1580
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1628,7 +1628,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
1628
1628
|
const untrustedConfig_reply_array = [];
|
|
1629
1629
|
for (let i = 0, arrayLength = untrustedConfig_reply.length; i < arrayLength; i++) {
|
|
1630
1630
|
const untrustedConfig_reply_item = untrustedConfig_reply[i];
|
|
1631
|
-
const referenceEsTypeMessageRepresentationValidationError = validate$
|
|
1631
|
+
const referenceEsTypeMessageRepresentationValidationError = validate$r(untrustedConfig_reply_item);
|
|
1632
1632
|
if (referenceEsTypeMessageRepresentationValidationError === null) {
|
|
1633
1633
|
untrustedConfig_reply_array.push(untrustedConfig_reply_item);
|
|
1634
1634
|
}
|
|
@@ -1640,7 +1640,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
1640
1640
|
const untrustedConfig_variables_array = [];
|
|
1641
1641
|
for (let i = 0, arrayLength = untrustedConfig_variables.length; i < arrayLength; i++) {
|
|
1642
1642
|
const untrustedConfig_variables_item = untrustedConfig_variables[i];
|
|
1643
|
-
const referenceVariableRepresentationValidationError = validate$
|
|
1643
|
+
const referenceVariableRepresentationValidationError = validate$q(untrustedConfig_variables_item);
|
|
1644
1644
|
if (referenceVariableRepresentationValidationError === null) {
|
|
1645
1645
|
untrustedConfig_variables_array.push(untrustedConfig_variables_item);
|
|
1646
1646
|
}
|
|
@@ -1691,8 +1691,8 @@ const sendMessageAdapterFactory = (luvio) => {
|
|
|
1691
1691
|
};
|
|
1692
1692
|
};
|
|
1693
1693
|
|
|
1694
|
-
const VERSION$
|
|
1695
|
-
function validate$
|
|
1694
|
+
const VERSION$f = "504437088c2317480c651ac05a7565b5";
|
|
1695
|
+
function validate$l(obj, path = 'PlanTemplateRepresentation') {
|
|
1696
1696
|
const v_error = (() => {
|
|
1697
1697
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1698
1698
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1734,10 +1734,10 @@ function validate$j(obj, path = 'PlanTemplateRepresentation') {
|
|
|
1734
1734
|
})();
|
|
1735
1735
|
return v_error === undefined ? null : v_error;
|
|
1736
1736
|
}
|
|
1737
|
-
const select$
|
|
1737
|
+
const select$n = function PlanTemplateRepresentationSelect() {
|
|
1738
1738
|
return {
|
|
1739
1739
|
kind: 'Fragment',
|
|
1740
|
-
version: VERSION$
|
|
1740
|
+
version: VERSION$f,
|
|
1741
1741
|
private: [],
|
|
1742
1742
|
selections: [
|
|
1743
1743
|
{
|
|
@@ -1764,7 +1764,7 @@ const select$l = function PlanTemplateRepresentationSelect() {
|
|
|
1764
1764
|
]
|
|
1765
1765
|
};
|
|
1766
1766
|
};
|
|
1767
|
-
function equals$
|
|
1767
|
+
function equals$f(existing, incoming) {
|
|
1768
1768
|
const existing_intent = existing.intent;
|
|
1769
1769
|
const incoming_intent = incoming.intent;
|
|
1770
1770
|
if (!(existing_intent === incoming_intent)) {
|
|
@@ -1799,8 +1799,8 @@ function equals$d(existing, incoming) {
|
|
|
1799
1799
|
}
|
|
1800
1800
|
|
|
1801
1801
|
const TTL$7 = 900000;
|
|
1802
|
-
const VERSION$
|
|
1803
|
-
function validate$
|
|
1802
|
+
const VERSION$e = "0503b0c5ce250e7f5fbf16f2d3f2fec4";
|
|
1803
|
+
function validate$k(obj, path = 'RecommendedPlanTemplatesRepresentation') {
|
|
1804
1804
|
const v_error = (() => {
|
|
1805
1805
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1806
1806
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1825,7 +1825,7 @@ function validate$i(obj, path = 'RecommendedPlanTemplatesRepresentation') {
|
|
|
1825
1825
|
for (let i = 0; i < obj_planTemplates.length; i++) {
|
|
1826
1826
|
const obj_planTemplates_item = obj_planTemplates[i];
|
|
1827
1827
|
const path_planTemplates_item = path_planTemplates + '[' + i + ']';
|
|
1828
|
-
const referencepath_planTemplates_itemValidationError = validate$
|
|
1828
|
+
const referencepath_planTemplates_itemValidationError = validate$l(obj_planTemplates_item, path_planTemplates_item);
|
|
1829
1829
|
if (referencepath_planTemplates_itemValidationError !== null) {
|
|
1830
1830
|
let message = 'Object doesn\'t match PlanTemplateRepresentation (at "' + path_planTemplates_item + '")\n';
|
|
1831
1831
|
message += referencepath_planTemplates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1839,11 +1839,11 @@ const RepresentationType$7 = 'RecommendedPlanTemplatesRepresentation';
|
|
|
1839
1839
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
1840
1840
|
return input;
|
|
1841
1841
|
}
|
|
1842
|
-
const select$
|
|
1843
|
-
const { selections: PlanTemplateRepresentation__selections, opaque: PlanTemplateRepresentation__opaque, } = select$
|
|
1842
|
+
const select$m = function RecommendedPlanTemplatesRepresentationSelect() {
|
|
1843
|
+
const { selections: PlanTemplateRepresentation__selections, opaque: PlanTemplateRepresentation__opaque, } = select$n();
|
|
1844
1844
|
return {
|
|
1845
1845
|
kind: 'Fragment',
|
|
1846
|
-
version: VERSION$
|
|
1846
|
+
version: VERSION$e,
|
|
1847
1847
|
private: [],
|
|
1848
1848
|
selections: [
|
|
1849
1849
|
{
|
|
@@ -1864,7 +1864,7 @@ const select$k = function RecommendedPlanTemplatesRepresentationSelect() {
|
|
|
1864
1864
|
]
|
|
1865
1865
|
};
|
|
1866
1866
|
};
|
|
1867
|
-
function equals$
|
|
1867
|
+
function equals$e(existing, incoming) {
|
|
1868
1868
|
const existing_isSuccess = existing.isSuccess;
|
|
1869
1869
|
const incoming_isSuccess = incoming.isSuccess;
|
|
1870
1870
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -1886,7 +1886,7 @@ function equals$c(existing, incoming) {
|
|
|
1886
1886
|
const existing_planTemplates = existing.planTemplates;
|
|
1887
1887
|
const incoming_planTemplates = incoming.planTemplates;
|
|
1888
1888
|
const equals_planTemplates_items = equalsArray(existing_planTemplates, incoming_planTemplates, (existing_planTemplates_item, incoming_planTemplates_item) => {
|
|
1889
|
-
if (!(equals$
|
|
1889
|
+
if (!(equals$f(existing_planTemplates_item, incoming_planTemplates_item))) {
|
|
1890
1890
|
return false;
|
|
1891
1891
|
}
|
|
1892
1892
|
});
|
|
@@ -1897,14 +1897,14 @@ function equals$c(existing, incoming) {
|
|
|
1897
1897
|
}
|
|
1898
1898
|
const ingest$7 = function RecommendedPlanTemplatesRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1899
1899
|
if (process.env.NODE_ENV !== 'production') {
|
|
1900
|
-
const validateError = validate$
|
|
1900
|
+
const validateError = validate$k(input);
|
|
1901
1901
|
if (validateError !== null) {
|
|
1902
1902
|
throw validateError;
|
|
1903
1903
|
}
|
|
1904
1904
|
}
|
|
1905
1905
|
const key = path.fullPath;
|
|
1906
1906
|
const ttlToUse = TTL$7;
|
|
1907
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "einstein-copilot-bot", VERSION$
|
|
1907
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "einstein-copilot-bot", VERSION$e, RepresentationType$7, equals$e);
|
|
1908
1908
|
return createLink(key);
|
|
1909
1909
|
};
|
|
1910
1910
|
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1917,8 +1917,8 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1917
1917
|
});
|
|
1918
1918
|
}
|
|
1919
1919
|
|
|
1920
|
-
function select$
|
|
1921
|
-
return select$
|
|
1920
|
+
function select$l(luvio, params) {
|
|
1921
|
+
return select$m();
|
|
1922
1922
|
}
|
|
1923
1923
|
function keyBuilder$e(luvio, params) {
|
|
1924
1924
|
return keyPrefix + '::RecommendedPlanTemplatesRepresentation:(' + 'pageType:' + params.urlParams.pageType + ',' + 'objectType:' + params.urlParams.objectType + ')';
|
|
@@ -1932,7 +1932,7 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1932
1932
|
luvio.storeIngest(key, ingest$7, body);
|
|
1933
1933
|
const snapshot = luvio.storeLookup({
|
|
1934
1934
|
recordId: key,
|
|
1935
|
-
node: select$
|
|
1935
|
+
node: select$l(),
|
|
1936
1936
|
variables: {},
|
|
1937
1937
|
}, snapshotRefresh);
|
|
1938
1938
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1949,7 +1949,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
1949
1949
|
const storeMetadataParams = {
|
|
1950
1950
|
ttl: TTL$7,
|
|
1951
1951
|
namespace: keyPrefix,
|
|
1952
|
-
version: VERSION$
|
|
1952
|
+
version: VERSION$e,
|
|
1953
1953
|
representationName: RepresentationType$7
|
|
1954
1954
|
};
|
|
1955
1955
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -2000,7 +2000,7 @@ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
|
2000
2000
|
}
|
|
2001
2001
|
function adapterFragment$6(luvio, config) {
|
|
2002
2002
|
createResourceParams$7(config);
|
|
2003
|
-
return select$
|
|
2003
|
+
return select$l();
|
|
2004
2004
|
}
|
|
2005
2005
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
2006
2006
|
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
@@ -2057,8 +2057,8 @@ const getRecommendedPlanTemplatesAdapterFactory = (luvio) => function einsteinCo
|
|
|
2057
2057
|
};
|
|
2058
2058
|
|
|
2059
2059
|
const TTL$6 = 100;
|
|
2060
|
-
const VERSION$
|
|
2061
|
-
function validate$
|
|
2060
|
+
const VERSION$d = "7454bdd46af1622eb677a9bb9eac3a8b";
|
|
2061
|
+
function validate$j(obj, path = 'CopilotLLMFeedbackOutputRepresentation') {
|
|
2062
2062
|
const v_error = (() => {
|
|
2063
2063
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2064
2064
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2084,10 +2084,10 @@ function keyBuilderFromType(luvio, object) {
|
|
|
2084
2084
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
2085
2085
|
return input;
|
|
2086
2086
|
}
|
|
2087
|
-
const select$
|
|
2087
|
+
const select$k = function CopilotLLMFeedbackOutputRepresentationSelect() {
|
|
2088
2088
|
return {
|
|
2089
2089
|
kind: 'Fragment',
|
|
2090
|
-
version: VERSION$
|
|
2090
|
+
version: VERSION$d,
|
|
2091
2091
|
private: [],
|
|
2092
2092
|
selections: [
|
|
2093
2093
|
{
|
|
@@ -2097,7 +2097,7 @@ const select$i = function CopilotLLMFeedbackOutputRepresentationSelect() {
|
|
|
2097
2097
|
]
|
|
2098
2098
|
};
|
|
2099
2099
|
};
|
|
2100
|
-
function equals$
|
|
2100
|
+
function equals$d(existing, incoming) {
|
|
2101
2101
|
const existing_submitFeedbackStatus = existing.submitFeedbackStatus;
|
|
2102
2102
|
const incoming_submitFeedbackStatus = incoming.submitFeedbackStatus;
|
|
2103
2103
|
if (!(existing_submitFeedbackStatus === incoming_submitFeedbackStatus)) {
|
|
@@ -2107,14 +2107,14 @@ function equals$b(existing, incoming) {
|
|
|
2107
2107
|
}
|
|
2108
2108
|
const ingest$6 = function CopilotLLMFeedbackOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2109
2109
|
if (process.env.NODE_ENV !== 'production') {
|
|
2110
|
-
const validateError = validate$
|
|
2110
|
+
const validateError = validate$j(input);
|
|
2111
2111
|
if (validateError !== null) {
|
|
2112
2112
|
throw validateError;
|
|
2113
2113
|
}
|
|
2114
2114
|
}
|
|
2115
2115
|
const key = keyBuilderFromType(luvio, input);
|
|
2116
2116
|
const ttlToUse = TTL$6;
|
|
2117
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "einstein-copilot-bot", VERSION$
|
|
2117
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "einstein-copilot-bot", VERSION$d, RepresentationType$6, equals$d);
|
|
2118
2118
|
return createLink(key);
|
|
2119
2119
|
};
|
|
2120
2120
|
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2127,8 +2127,8 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2127
2127
|
});
|
|
2128
2128
|
}
|
|
2129
2129
|
|
|
2130
|
-
function select$
|
|
2131
|
-
return select$
|
|
2130
|
+
function select$j(luvio, params) {
|
|
2131
|
+
return select$k();
|
|
2132
2132
|
}
|
|
2133
2133
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
2134
2134
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
@@ -2139,7 +2139,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
2139
2139
|
luvio.storeIngest(key, ingest$6, body);
|
|
2140
2140
|
const snapshot = luvio.storeLookup({
|
|
2141
2141
|
recordId: key,
|
|
2142
|
-
node: select$
|
|
2142
|
+
node: select$j(),
|
|
2143
2143
|
variables: {},
|
|
2144
2144
|
});
|
|
2145
2145
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2236,8 +2236,8 @@ const submitFeedbackAdapterFactory = (luvio) => {
|
|
|
2236
2236
|
};
|
|
2237
2237
|
};
|
|
2238
2238
|
|
|
2239
|
-
const VERSION$
|
|
2240
|
-
function validate$
|
|
2239
|
+
const VERSION$c = "24d61d5f37ff09155ee4a9d90eb4fcb5";
|
|
2240
|
+
function validate$i(obj, path = 'CopilotObjectInfoRepresentation') {
|
|
2241
2241
|
const v_error = (() => {
|
|
2242
2242
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2243
2243
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2255,10 +2255,10 @@ function validate$g(obj, path = 'CopilotObjectInfoRepresentation') {
|
|
|
2255
2255
|
})();
|
|
2256
2256
|
return v_error === undefined ? null : v_error;
|
|
2257
2257
|
}
|
|
2258
|
-
const select$
|
|
2258
|
+
const select$i = function CopilotObjectInfoRepresentationSelect() {
|
|
2259
2259
|
return {
|
|
2260
2260
|
kind: 'Fragment',
|
|
2261
|
-
version: VERSION$
|
|
2261
|
+
version: VERSION$c,
|
|
2262
2262
|
private: [],
|
|
2263
2263
|
selections: [
|
|
2264
2264
|
{
|
|
@@ -2272,7 +2272,7 @@ const select$g = function CopilotObjectInfoRepresentationSelect() {
|
|
|
2272
2272
|
]
|
|
2273
2273
|
};
|
|
2274
2274
|
};
|
|
2275
|
-
function equals$
|
|
2275
|
+
function equals$c(existing, incoming) {
|
|
2276
2276
|
const existing_apiName = existing.apiName;
|
|
2277
2277
|
const incoming_apiName = incoming.apiName;
|
|
2278
2278
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -2287,8 +2287,8 @@ function equals$a(existing, incoming) {
|
|
|
2287
2287
|
}
|
|
2288
2288
|
|
|
2289
2289
|
const TTL$5 = 900000;
|
|
2290
|
-
const VERSION$
|
|
2291
|
-
function validate$
|
|
2290
|
+
const VERSION$b = "ca1aedcbd4e34795fadf2dcaf66e5825";
|
|
2291
|
+
function validate$h(obj, path = 'CopilotObjectListRepresentation') {
|
|
2292
2292
|
const v_error = (() => {
|
|
2293
2293
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2294
2294
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2301,7 +2301,7 @@ function validate$f(obj, path = 'CopilotObjectListRepresentation') {
|
|
|
2301
2301
|
for (let i = 0; i < obj_objects.length; i++) {
|
|
2302
2302
|
const obj_objects_item = obj_objects[i];
|
|
2303
2303
|
const path_objects_item = path_objects + '[' + i + ']';
|
|
2304
|
-
const referencepath_objects_itemValidationError = validate$
|
|
2304
|
+
const referencepath_objects_itemValidationError = validate$i(obj_objects_item, path_objects_item);
|
|
2305
2305
|
if (referencepath_objects_itemValidationError !== null) {
|
|
2306
2306
|
let message = 'Object doesn\'t match CopilotObjectInfoRepresentation (at "' + path_objects_item + '")\n';
|
|
2307
2307
|
message += referencepath_objects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2315,11 +2315,11 @@ const RepresentationType$5 = 'CopilotObjectListRepresentation';
|
|
|
2315
2315
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
2316
2316
|
return input;
|
|
2317
2317
|
}
|
|
2318
|
-
const select$
|
|
2319
|
-
const { selections: CopilotObjectInfoRepresentation__selections, opaque: CopilotObjectInfoRepresentation__opaque, } = select$
|
|
2318
|
+
const select$h = function CopilotObjectListRepresentationSelect() {
|
|
2319
|
+
const { selections: CopilotObjectInfoRepresentation__selections, opaque: CopilotObjectInfoRepresentation__opaque, } = select$i();
|
|
2320
2320
|
return {
|
|
2321
2321
|
kind: 'Fragment',
|
|
2322
|
-
version: VERSION$
|
|
2322
|
+
version: VERSION$b,
|
|
2323
2323
|
private: [],
|
|
2324
2324
|
selections: [
|
|
2325
2325
|
{
|
|
@@ -2331,11 +2331,11 @@ const select$f = function CopilotObjectListRepresentationSelect() {
|
|
|
2331
2331
|
]
|
|
2332
2332
|
};
|
|
2333
2333
|
};
|
|
2334
|
-
function equals$
|
|
2334
|
+
function equals$b(existing, incoming) {
|
|
2335
2335
|
const existing_objects = existing.objects;
|
|
2336
2336
|
const incoming_objects = incoming.objects;
|
|
2337
2337
|
const equals_objects_items = equalsArray(existing_objects, incoming_objects, (existing_objects_item, incoming_objects_item) => {
|
|
2338
|
-
if (!(equals$
|
|
2338
|
+
if (!(equals$c(existing_objects_item, incoming_objects_item))) {
|
|
2339
2339
|
return false;
|
|
2340
2340
|
}
|
|
2341
2341
|
});
|
|
@@ -2346,14 +2346,14 @@ function equals$9(existing, incoming) {
|
|
|
2346
2346
|
}
|
|
2347
2347
|
const ingest$5 = function CopilotObjectListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2348
2348
|
if (process.env.NODE_ENV !== 'production') {
|
|
2349
|
-
const validateError = validate$
|
|
2349
|
+
const validateError = validate$h(input);
|
|
2350
2350
|
if (validateError !== null) {
|
|
2351
2351
|
throw validateError;
|
|
2352
2352
|
}
|
|
2353
2353
|
}
|
|
2354
2354
|
const key = path.fullPath;
|
|
2355
2355
|
const ttlToUse = TTL$5;
|
|
2356
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "einstein-copilot-bot", VERSION$
|
|
2356
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "einstein-copilot-bot", VERSION$b, RepresentationType$5, equals$b);
|
|
2357
2357
|
return createLink(key);
|
|
2358
2358
|
};
|
|
2359
2359
|
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2366,8 +2366,8 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2366
2366
|
});
|
|
2367
2367
|
}
|
|
2368
2368
|
|
|
2369
|
-
function select$
|
|
2370
|
-
return select$
|
|
2369
|
+
function select$g(luvio, params) {
|
|
2370
|
+
return select$h();
|
|
2371
2371
|
}
|
|
2372
2372
|
function keyBuilder$b(luvio, params) {
|
|
2373
2373
|
return keyPrefix + '::CopilotObjectListRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'searchTerm:' + params.queryParams.searchTerm + ')';
|
|
@@ -2381,7 +2381,7 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2381
2381
|
luvio.storeIngest(key, ingest$5, body);
|
|
2382
2382
|
const snapshot = luvio.storeLookup({
|
|
2383
2383
|
recordId: key,
|
|
2384
|
-
node: select$
|
|
2384
|
+
node: select$g(),
|
|
2385
2385
|
variables: {},
|
|
2386
2386
|
}, snapshotRefresh);
|
|
2387
2387
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2398,7 +2398,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
2398
2398
|
const storeMetadataParams = {
|
|
2399
2399
|
ttl: TTL$5,
|
|
2400
2400
|
namespace: keyPrefix,
|
|
2401
|
-
version: VERSION$
|
|
2401
|
+
version: VERSION$b,
|
|
2402
2402
|
representationName: RepresentationType$5
|
|
2403
2403
|
};
|
|
2404
2404
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -2449,7 +2449,7 @@ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
|
2449
2449
|
}
|
|
2450
2450
|
function adapterFragment$5(luvio, config) {
|
|
2451
2451
|
createResourceParams$5(config);
|
|
2452
|
-
return select$
|
|
2452
|
+
return select$g();
|
|
2453
2453
|
}
|
|
2454
2454
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
2455
2455
|
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
@@ -2505,7 +2505,7 @@ const getCopilotObjectsAdapterFactory = (luvio) => function einsteinCopilotBot__
|
|
|
2505
2505
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
2506
2506
|
};
|
|
2507
2507
|
|
|
2508
|
-
function validate$
|
|
2508
|
+
function validate$g(obj, path = 'FollowUpActionsDesignConfigRepresentation') {
|
|
2509
2509
|
const v_error = (() => {
|
|
2510
2510
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2511
2511
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2528,7 +2528,7 @@ function validate$e(obj, path = 'FollowUpActionsDesignConfigRepresentation') {
|
|
|
2528
2528
|
return v_error === undefined ? null : v_error;
|
|
2529
2529
|
}
|
|
2530
2530
|
|
|
2531
|
-
function validate$
|
|
2531
|
+
function validate$f(obj, path = 'FollowUpActionsRenditionConfigRepresentation') {
|
|
2532
2532
|
const v_error = (() => {
|
|
2533
2533
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2534
2534
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2551,7 +2551,7 @@ function validate$d(obj, path = 'FollowUpActionsRenditionConfigRepresentation')
|
|
|
2551
2551
|
return v_error === undefined ? null : v_error;
|
|
2552
2552
|
}
|
|
2553
2553
|
|
|
2554
|
-
function validate$
|
|
2554
|
+
function validate$e(obj, path = 'FollowUpActionsFilterConfigRepresentation') {
|
|
2555
2555
|
const v_error = (() => {
|
|
2556
2556
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2557
2557
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2574,7 +2574,7 @@ function validate$c(obj, path = 'FollowUpActionsFilterConfigRepresentation') {
|
|
|
2574
2574
|
return v_error === undefined ? null : v_error;
|
|
2575
2575
|
}
|
|
2576
2576
|
|
|
2577
|
-
function validate$
|
|
2577
|
+
function validate$d(obj, path = 'FollowUpActionsSchemaConfigRepresentation') {
|
|
2578
2578
|
const v_error = (() => {
|
|
2579
2579
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2580
2580
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2582,7 +2582,7 @@ function validate$b(obj, path = 'FollowUpActionsSchemaConfigRepresentation') {
|
|
|
2582
2582
|
if (obj.filterConfig !== undefined) {
|
|
2583
2583
|
const obj_filterConfig = obj.filterConfig;
|
|
2584
2584
|
const path_filterConfig = path + '.filterConfig';
|
|
2585
|
-
const referencepath_filterConfigValidationError = validate$
|
|
2585
|
+
const referencepath_filterConfigValidationError = validate$e(obj_filterConfig, path_filterConfig);
|
|
2586
2586
|
if (referencepath_filterConfigValidationError !== null) {
|
|
2587
2587
|
let message = 'Object doesn\'t match FollowUpActionsFilterConfigRepresentation (at "' + path_filterConfig + '")\n';
|
|
2588
2588
|
message += referencepath_filterConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2600,7 +2600,7 @@ function validate$b(obj, path = 'FollowUpActionsSchemaConfigRepresentation') {
|
|
|
2600
2600
|
return v_error === undefined ? null : v_error;
|
|
2601
2601
|
}
|
|
2602
2602
|
|
|
2603
|
-
function validate$
|
|
2603
|
+
function validate$c(obj, path = 'FollowUpActionsSourceDescriptorRepresentation') {
|
|
2604
2604
|
const v_error = (() => {
|
|
2605
2605
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2606
2606
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2623,7 +2623,7 @@ function validate$a(obj, path = 'FollowUpActionsSourceDescriptorRepresentation')
|
|
|
2623
2623
|
return v_error === undefined ? null : v_error;
|
|
2624
2624
|
}
|
|
2625
2625
|
|
|
2626
|
-
function validate$
|
|
2626
|
+
function validate$b(obj, path = 'FollowUpActionsInputRepresentation') {
|
|
2627
2627
|
const v_error = (() => {
|
|
2628
2628
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2629
2629
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2636,7 +2636,7 @@ function validate$9(obj, path = 'FollowUpActionsInputRepresentation') {
|
|
|
2636
2636
|
if (obj.designConfig !== undefined) {
|
|
2637
2637
|
const obj_designConfig = obj.designConfig;
|
|
2638
2638
|
const path_designConfig = path + '.designConfig';
|
|
2639
|
-
const referencepath_designConfigValidationError = validate$
|
|
2639
|
+
const referencepath_designConfigValidationError = validate$g(obj_designConfig, path_designConfig);
|
|
2640
2640
|
if (referencepath_designConfigValidationError !== null) {
|
|
2641
2641
|
let message = 'Object doesn\'t match FollowUpActionsDesignConfigRepresentation (at "' + path_designConfig + '")\n';
|
|
2642
2642
|
message += referencepath_designConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2646,7 +2646,7 @@ function validate$9(obj, path = 'FollowUpActionsInputRepresentation') {
|
|
|
2646
2646
|
if (obj.renditionConfig !== undefined) {
|
|
2647
2647
|
const obj_renditionConfig = obj.renditionConfig;
|
|
2648
2648
|
const path_renditionConfig = path + '.renditionConfig';
|
|
2649
|
-
const referencepath_renditionConfigValidationError = validate$
|
|
2649
|
+
const referencepath_renditionConfigValidationError = validate$f(obj_renditionConfig, path_renditionConfig);
|
|
2650
2650
|
if (referencepath_renditionConfigValidationError !== null) {
|
|
2651
2651
|
let message = 'Object doesn\'t match FollowUpActionsRenditionConfigRepresentation (at "' + path_renditionConfig + '")\n';
|
|
2652
2652
|
message += referencepath_renditionConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2656,7 +2656,7 @@ function validate$9(obj, path = 'FollowUpActionsInputRepresentation') {
|
|
|
2656
2656
|
if (obj.schemaConfig !== undefined) {
|
|
2657
2657
|
const obj_schemaConfig = obj.schemaConfig;
|
|
2658
2658
|
const path_schemaConfig = path + '.schemaConfig';
|
|
2659
|
-
const referencepath_schemaConfigValidationError = validate$
|
|
2659
|
+
const referencepath_schemaConfigValidationError = validate$d(obj_schemaConfig, path_schemaConfig);
|
|
2660
2660
|
if (referencepath_schemaConfigValidationError !== null) {
|
|
2661
2661
|
let message = 'Object doesn\'t match FollowUpActionsSchemaConfigRepresentation (at "' + path_schemaConfig + '")\n';
|
|
2662
2662
|
message += referencepath_schemaConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2666,7 +2666,7 @@ function validate$9(obj, path = 'FollowUpActionsInputRepresentation') {
|
|
|
2666
2666
|
if (obj.sourceDescriptor !== undefined) {
|
|
2667
2667
|
const obj_sourceDescriptor = obj.sourceDescriptor;
|
|
2668
2668
|
const path_sourceDescriptor = path + '.sourceDescriptor';
|
|
2669
|
-
const referencepath_sourceDescriptorValidationError = validate$
|
|
2669
|
+
const referencepath_sourceDescriptorValidationError = validate$c(obj_sourceDescriptor, path_sourceDescriptor);
|
|
2670
2670
|
if (referencepath_sourceDescriptorValidationError !== null) {
|
|
2671
2671
|
let message = 'Object doesn\'t match FollowUpActionsSourceDescriptorRepresentation (at "' + path_sourceDescriptor + '")\n';
|
|
2672
2672
|
message += referencepath_sourceDescriptorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2677,8 +2677,8 @@ function validate$9(obj, path = 'FollowUpActionsInputRepresentation') {
|
|
|
2677
2677
|
return v_error === undefined ? null : v_error;
|
|
2678
2678
|
}
|
|
2679
2679
|
|
|
2680
|
-
const VERSION$
|
|
2681
|
-
function validate$
|
|
2680
|
+
const VERSION$a = "38e904794d03177700e02a0dbd234d01";
|
|
2681
|
+
function validate$a(obj, path = 'FollowUpActionsRepresentation') {
|
|
2682
2682
|
const v_error = (() => {
|
|
2683
2683
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2684
2684
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2703,10 +2703,10 @@ function validate$8(obj, path = 'FollowUpActionsRepresentation') {
|
|
|
2703
2703
|
})();
|
|
2704
2704
|
return v_error === undefined ? null : v_error;
|
|
2705
2705
|
}
|
|
2706
|
-
const select$
|
|
2706
|
+
const select$f = function FollowUpActionsRepresentationSelect() {
|
|
2707
2707
|
return {
|
|
2708
2708
|
kind: 'Fragment',
|
|
2709
|
-
version: VERSION$
|
|
2709
|
+
version: VERSION$a,
|
|
2710
2710
|
private: [],
|
|
2711
2711
|
selections: [
|
|
2712
2712
|
{
|
|
@@ -2727,7 +2727,7 @@ const select$d = function FollowUpActionsRepresentationSelect() {
|
|
|
2727
2727
|
]
|
|
2728
2728
|
};
|
|
2729
2729
|
};
|
|
2730
|
-
function equals$
|
|
2730
|
+
function equals$a(existing, incoming) {
|
|
2731
2731
|
const existing_descriptor = existing.descriptor;
|
|
2732
2732
|
const incoming_descriptor = incoming.descriptor;
|
|
2733
2733
|
// if at least one of these optionals is defined
|
|
@@ -2755,8 +2755,8 @@ function equals$8(existing, incoming) {
|
|
|
2755
2755
|
}
|
|
2756
2756
|
|
|
2757
2757
|
const TTL$4 = 900000;
|
|
2758
|
-
const VERSION$
|
|
2759
|
-
function validate$
|
|
2758
|
+
const VERSION$9 = "280b43a12fefd5d1adb432fd664b7def";
|
|
2759
|
+
function validate$9(obj, path = 'CopilotFollowUpActionsRepresentation') {
|
|
2760
2760
|
const v_error = (() => {
|
|
2761
2761
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2762
2762
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2769,7 +2769,7 @@ function validate$7(obj, path = 'CopilotFollowUpActionsRepresentation') {
|
|
|
2769
2769
|
for (let i = 0; i < obj_actions.length; i++) {
|
|
2770
2770
|
const obj_actions_item = obj_actions[i];
|
|
2771
2771
|
const path_actions_item = path_actions + '[' + i + ']';
|
|
2772
|
-
const referencepath_actions_itemValidationError = validate$
|
|
2772
|
+
const referencepath_actions_itemValidationError = validate$a(obj_actions_item, path_actions_item);
|
|
2773
2773
|
if (referencepath_actions_itemValidationError !== null) {
|
|
2774
2774
|
let message = 'Object doesn\'t match FollowUpActionsRepresentation (at "' + path_actions_item + '")\n';
|
|
2775
2775
|
message += referencepath_actions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2795,11 +2795,11 @@ const RepresentationType$4 = 'CopilotFollowUpActionsRepresentation';
|
|
|
2795
2795
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
2796
2796
|
return input;
|
|
2797
2797
|
}
|
|
2798
|
-
const select$
|
|
2799
|
-
const { selections: FollowUpActionsRepresentation__selections, opaque: FollowUpActionsRepresentation__opaque, } = select$
|
|
2798
|
+
const select$e = function CopilotFollowUpActionsRepresentationSelect() {
|
|
2799
|
+
const { selections: FollowUpActionsRepresentation__selections, opaque: FollowUpActionsRepresentation__opaque, } = select$f();
|
|
2800
2800
|
return {
|
|
2801
2801
|
kind: 'Fragment',
|
|
2802
|
-
version: VERSION$
|
|
2802
|
+
version: VERSION$9,
|
|
2803
2803
|
private: [],
|
|
2804
2804
|
selections: [
|
|
2805
2805
|
{
|
|
@@ -2820,7 +2820,7 @@ const select$c = function CopilotFollowUpActionsRepresentationSelect() {
|
|
|
2820
2820
|
]
|
|
2821
2821
|
};
|
|
2822
2822
|
};
|
|
2823
|
-
function equals$
|
|
2823
|
+
function equals$9(existing, incoming) {
|
|
2824
2824
|
const existing_isSuccess = existing.isSuccess;
|
|
2825
2825
|
const incoming_isSuccess = incoming.isSuccess;
|
|
2826
2826
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -2842,7 +2842,7 @@ function equals$7(existing, incoming) {
|
|
|
2842
2842
|
const existing_actions = existing.actions;
|
|
2843
2843
|
const incoming_actions = incoming.actions;
|
|
2844
2844
|
const equals_actions_items = equalsArray(existing_actions, incoming_actions, (existing_actions_item, incoming_actions_item) => {
|
|
2845
|
-
if (!(equals$
|
|
2845
|
+
if (!(equals$a(existing_actions_item, incoming_actions_item))) {
|
|
2846
2846
|
return false;
|
|
2847
2847
|
}
|
|
2848
2848
|
});
|
|
@@ -2853,14 +2853,14 @@ function equals$7(existing, incoming) {
|
|
|
2853
2853
|
}
|
|
2854
2854
|
const ingest$4 = function CopilotFollowUpActionsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2855
2855
|
if (process.env.NODE_ENV !== 'production') {
|
|
2856
|
-
const validateError = validate$
|
|
2856
|
+
const validateError = validate$9(input);
|
|
2857
2857
|
if (validateError !== null) {
|
|
2858
2858
|
throw validateError;
|
|
2859
2859
|
}
|
|
2860
2860
|
}
|
|
2861
2861
|
const key = path.fullPath;
|
|
2862
2862
|
const ttlToUse = TTL$4;
|
|
2863
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "einstein-copilot-bot", VERSION$
|
|
2863
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "einstein-copilot-bot", VERSION$9, RepresentationType$4, equals$9);
|
|
2864
2864
|
return createLink(key);
|
|
2865
2865
|
};
|
|
2866
2866
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2873,8 +2873,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2873
2873
|
});
|
|
2874
2874
|
}
|
|
2875
2875
|
|
|
2876
|
-
function select$
|
|
2877
|
-
return select$
|
|
2876
|
+
function select$d(luvio, params) {
|
|
2877
|
+
return select$e();
|
|
2878
2878
|
}
|
|
2879
2879
|
function keyBuilder$9(luvio, params) {
|
|
2880
2880
|
return keyPrefix + '::CopilotFollowUpActionsRepresentation:(' + (params.body.language === undefined ? 'language' : 'language:' + params.body.language) + '::' + '[' + params.body.followUpActionsInputs.map(element => { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t; return 'followUpActionsInputs.descriptor:' + element.descriptor + '::' + (((_a = element.sourceDescriptor) === null || _a === void 0 ? void 0 : _a.descriptor) === undefined ? 'followUpActionsInputs.sourceDescriptor.descriptor' : 'followUpActionsInputs.sourceDescriptor.descriptor:' + ((_b = element.sourceDescriptor) === null || _b === void 0 ? void 0 : _b.descriptor)) + '::' + (((_c = element.sourceDescriptor) === null || _c === void 0 ? void 0 : _c.propertyName) === undefined ? 'followUpActionsInputs.sourceDescriptor.propertyName' : 'followUpActionsInputs.sourceDescriptor.propertyName:' + ((_d = element.sourceDescriptor) === null || _d === void 0 ? void 0 : _d.propertyName)) + '::' + (((_e = element.schemaConfig) === null || _e === void 0 ? void 0 : _e.subSchemaDefinitions) === undefined ? 'followUpActionsInputs.schemaConfig.subSchemaDefinitions' : 'followUpActionsInputs.schemaConfig.subSchemaDefinitions:' + ((_f = element.schemaConfig) === null || _f === void 0 ? void 0 : _f.subSchemaDefinitions)) + '::' + (((_h = (_g = element.schemaConfig) === null || _g === void 0 ? void 0 : _g.filterConfig) === null || _h === void 0 ? void 0 : _h.propertyNames) === undefined ? 'followUpActionsInputs.schemaConfig.filterConfig.propertyNames' : 'followUpActionsInputs.schemaConfig.filterConfig.propertyNames:' + ((_k = (_j = element.schemaConfig) === null || _j === void 0 ? void 0 : _j.filterConfig) === null || _k === void 0 ? void 0 : _k.propertyNames)) + '::' + (((_l = element.designConfig) === null || _l === void 0 ? void 0 : _l.target) === undefined ? 'followUpActionsInputs.designConfig.target' : 'followUpActionsInputs.designConfig.target:' + ((_m = element.designConfig) === null || _m === void 0 ? void 0 : _m.target)) + '::' + (((_o = element.designConfig) === null || _o === void 0 ? void 0 : _o.subViewDefinitions) === undefined ? 'followUpActionsInputs.designConfig.subViewDefinitions' : 'followUpActionsInputs.designConfig.subViewDefinitions:' + ((_p = element.designConfig) === null || _p === void 0 ? void 0 : _p.subViewDefinitions)) + '::' + (((_q = element.renditionConfig) === null || _q === void 0 ? void 0 : _q.target) === undefined ? 'followUpActionsInputs.renditionConfig.target' : 'followUpActionsInputs.renditionConfig.target:' + ((_r = element.renditionConfig) === null || _r === void 0 ? void 0 : _r.target)) + '::' + (((_s = element.renditionConfig) === null || _s === void 0 ? void 0 : _s.subViewDefinitions) === undefined ? 'followUpActionsInputs.renditionConfig.subViewDefinitions' : 'followUpActionsInputs.renditionConfig.subViewDefinitions:' + ((_t = element.renditionConfig) === null || _t === void 0 ? void 0 : _t.subViewDefinitions)); }).join(',') + ']' + ')';
|
|
@@ -2888,7 +2888,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2888
2888
|
luvio.storeIngest(key, ingest$4, body);
|
|
2889
2889
|
const snapshot = luvio.storeLookup({
|
|
2890
2890
|
recordId: key,
|
|
2891
|
-
node: select$
|
|
2891
|
+
node: select$d(),
|
|
2892
2892
|
variables: {},
|
|
2893
2893
|
}, snapshotRefresh);
|
|
2894
2894
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2905,7 +2905,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
2905
2905
|
const storeMetadataParams = {
|
|
2906
2906
|
ttl: TTL$4,
|
|
2907
2907
|
namespace: keyPrefix,
|
|
2908
|
-
version: VERSION$
|
|
2908
|
+
version: VERSION$9,
|
|
2909
2909
|
representationName: RepresentationType$4
|
|
2910
2910
|
};
|
|
2911
2911
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -2944,7 +2944,7 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
2944
2944
|
const untrustedConfig_followUpActionsInputs_array = [];
|
|
2945
2945
|
for (let i = 0, arrayLength = untrustedConfig_followUpActionsInputs.length; i < arrayLength; i++) {
|
|
2946
2946
|
const untrustedConfig_followUpActionsInputs_item = untrustedConfig_followUpActionsInputs[i];
|
|
2947
|
-
const referenceFollowUpActionsInputRepresentationValidationError = validate$
|
|
2947
|
+
const referenceFollowUpActionsInputRepresentationValidationError = validate$b(untrustedConfig_followUpActionsInputs_item);
|
|
2948
2948
|
if (referenceFollowUpActionsInputRepresentationValidationError === null) {
|
|
2949
2949
|
untrustedConfig_followUpActionsInputs_array.push(untrustedConfig_followUpActionsInputs_item);
|
|
2950
2950
|
}
|
|
@@ -2968,7 +2968,7 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
|
2968
2968
|
}
|
|
2969
2969
|
function adapterFragment$4(luvio, config) {
|
|
2970
2970
|
createResourceParams$4(config);
|
|
2971
|
-
return select$
|
|
2971
|
+
return select$d();
|
|
2972
2972
|
}
|
|
2973
2973
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
2974
2974
|
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
@@ -3025,8 +3025,8 @@ const getFollowUpActionsAdapterFactory = (luvio) => function einsteinCopilotBot_
|
|
|
3025
3025
|
};
|
|
3026
3026
|
|
|
3027
3027
|
const TTL$3 = 100;
|
|
3028
|
-
const VERSION$
|
|
3029
|
-
function validate$
|
|
3028
|
+
const VERSION$8 = "240cfec5fc3a3d994da444a2dfa1eca4";
|
|
3029
|
+
function validate$8(obj, path = 'RecommendedUtterancesRepresentation') {
|
|
3030
3030
|
const v_error = (() => {
|
|
3031
3031
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3032
3032
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3062,10 +3062,10 @@ const RepresentationType$3 = 'RecommendedUtterancesRepresentation';
|
|
|
3062
3062
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
3063
3063
|
return input;
|
|
3064
3064
|
}
|
|
3065
|
-
const select$
|
|
3065
|
+
const select$c = function RecommendedUtterancesRepresentationSelect() {
|
|
3066
3066
|
return {
|
|
3067
3067
|
kind: 'Fragment',
|
|
3068
|
-
version: VERSION$
|
|
3068
|
+
version: VERSION$8,
|
|
3069
3069
|
private: [],
|
|
3070
3070
|
selections: [
|
|
3071
3071
|
{
|
|
@@ -3085,7 +3085,7 @@ const select$a = function RecommendedUtterancesRepresentationSelect() {
|
|
|
3085
3085
|
]
|
|
3086
3086
|
};
|
|
3087
3087
|
};
|
|
3088
|
-
function equals$
|
|
3088
|
+
function equals$8(existing, incoming) {
|
|
3089
3089
|
const existing_isSuccess = existing.isSuccess;
|
|
3090
3090
|
const incoming_isSuccess = incoming.isSuccess;
|
|
3091
3091
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -3118,14 +3118,14 @@ function equals$6(existing, incoming) {
|
|
|
3118
3118
|
}
|
|
3119
3119
|
const ingest$3 = function RecommendedUtterancesRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3120
3120
|
if (process.env.NODE_ENV !== 'production') {
|
|
3121
|
-
const validateError = validate$
|
|
3121
|
+
const validateError = validate$8(input);
|
|
3122
3122
|
if (validateError !== null) {
|
|
3123
3123
|
throw validateError;
|
|
3124
3124
|
}
|
|
3125
3125
|
}
|
|
3126
3126
|
const key = path.fullPath;
|
|
3127
3127
|
const ttlToUse = TTL$3;
|
|
3128
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "einstein-copilot-bot", VERSION$
|
|
3128
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "einstein-copilot-bot", VERSION$8, RepresentationType$3, equals$8);
|
|
3129
3129
|
return createLink(key);
|
|
3130
3130
|
};
|
|
3131
3131
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -3138,8 +3138,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3138
3138
|
});
|
|
3139
3139
|
}
|
|
3140
3140
|
|
|
3141
|
-
function select$
|
|
3142
|
-
return select$
|
|
3141
|
+
function select$b(luvio, params) {
|
|
3142
|
+
return select$c();
|
|
3143
3143
|
}
|
|
3144
3144
|
function keyBuilder$7(luvio, params) {
|
|
3145
3145
|
return keyPrefix + '::RecommendedUtterancesRepresentation:(' + 'agentId:' + params.queryParams.agentId + ',' + 'sessionId:' + params.queryParams.sessionId + ')';
|
|
@@ -3153,7 +3153,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3153
3153
|
luvio.storeIngest(key, ingest$3, body);
|
|
3154
3154
|
const snapshot = luvio.storeLookup({
|
|
3155
3155
|
recordId: key,
|
|
3156
|
-
node: select$
|
|
3156
|
+
node: select$b(),
|
|
3157
3157
|
variables: {},
|
|
3158
3158
|
}, snapshotRefresh);
|
|
3159
3159
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3170,7 +3170,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
3170
3170
|
const storeMetadataParams = {
|
|
3171
3171
|
ttl: TTL$3,
|
|
3172
3172
|
namespace: keyPrefix,
|
|
3173
|
-
version: VERSION$
|
|
3173
|
+
version: VERSION$8,
|
|
3174
3174
|
representationName: RepresentationType$3
|
|
3175
3175
|
};
|
|
3176
3176
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -3221,7 +3221,7 @@ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
|
3221
3221
|
}
|
|
3222
3222
|
function adapterFragment$3(luvio, config) {
|
|
3223
3223
|
createResourceParams$3(config);
|
|
3224
|
-
return select$
|
|
3224
|
+
return select$b();
|
|
3225
3225
|
}
|
|
3226
3226
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
3227
3227
|
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
@@ -3277,8 +3277,8 @@ const getRecommendedUtterancesAdapterFactory = (luvio) => function einsteinCopil
|
|
|
3277
3277
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
3278
3278
|
};
|
|
3279
3279
|
|
|
3280
|
-
const VERSION$
|
|
3281
|
-
function validate$
|
|
3280
|
+
const VERSION$7 = "3d8b52828ddd11f23f898b0bba8db802";
|
|
3281
|
+
function validate$7(obj, path = 'CopilotQuickActionRepresentation') {
|
|
3282
3282
|
const v_error = (() => {
|
|
3283
3283
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3284
3284
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3400,10 +3400,10 @@ function validate$5(obj, path = 'CopilotQuickActionRepresentation') {
|
|
|
3400
3400
|
})();
|
|
3401
3401
|
return v_error === undefined ? null : v_error;
|
|
3402
3402
|
}
|
|
3403
|
-
const select$
|
|
3403
|
+
const select$a = function CopilotQuickActionRepresentationSelect() {
|
|
3404
3404
|
return {
|
|
3405
3405
|
kind: 'Fragment',
|
|
3406
|
-
version: VERSION$
|
|
3406
|
+
version: VERSION$7,
|
|
3407
3407
|
private: [],
|
|
3408
3408
|
selections: [
|
|
3409
3409
|
{
|
|
@@ -3485,7 +3485,7 @@ const select$8 = function CopilotQuickActionRepresentationSelect() {
|
|
|
3485
3485
|
]
|
|
3486
3486
|
};
|
|
3487
3487
|
};
|
|
3488
|
-
function equals$
|
|
3488
|
+
function equals$7(existing, incoming) {
|
|
3489
3489
|
const existing_isGlobal = existing.isGlobal;
|
|
3490
3490
|
const incoming_isGlobal = incoming.isGlobal;
|
|
3491
3491
|
// if at least one of these optionals is defined
|
|
@@ -3690,8 +3690,8 @@ function equals$5(existing, incoming) {
|
|
|
3690
3690
|
}
|
|
3691
3691
|
|
|
3692
3692
|
const TTL$2 = 900000;
|
|
3693
|
-
const VERSION$
|
|
3694
|
-
function validate$
|
|
3693
|
+
const VERSION$6 = "122e61b0db6dc38d244a87570efc5522";
|
|
3694
|
+
function validate$6(obj, path = 'RecommendedActionsRepresentation') {
|
|
3695
3695
|
const v_error = (() => {
|
|
3696
3696
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3697
3697
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3704,7 +3704,7 @@ function validate$4(obj, path = 'RecommendedActionsRepresentation') {
|
|
|
3704
3704
|
for (let i = 0; i < obj_copilotQuickActions.length; i++) {
|
|
3705
3705
|
const obj_copilotQuickActions_item = obj_copilotQuickActions[i];
|
|
3706
3706
|
const path_copilotQuickActions_item = path_copilotQuickActions + '[' + i + ']';
|
|
3707
|
-
const referencepath_copilotQuickActions_itemValidationError = validate$
|
|
3707
|
+
const referencepath_copilotQuickActions_itemValidationError = validate$7(obj_copilotQuickActions_item, path_copilotQuickActions_item);
|
|
3708
3708
|
if (referencepath_copilotQuickActions_itemValidationError !== null) {
|
|
3709
3709
|
let message = 'Object doesn\'t match CopilotQuickActionRepresentation (at "' + path_copilotQuickActions_item + '")\n';
|
|
3710
3710
|
message += referencepath_copilotQuickActions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3730,11 +3730,11 @@ const RepresentationType$2 = 'RecommendedActionsRepresentation';
|
|
|
3730
3730
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
3731
3731
|
return input;
|
|
3732
3732
|
}
|
|
3733
|
-
const select$
|
|
3734
|
-
const { selections: CopilotQuickActionRepresentation__selections, opaque: CopilotQuickActionRepresentation__opaque, } = select$
|
|
3733
|
+
const select$9 = function RecommendedActionsRepresentationSelect() {
|
|
3734
|
+
const { selections: CopilotQuickActionRepresentation__selections, opaque: CopilotQuickActionRepresentation__opaque, } = select$a();
|
|
3735
3735
|
return {
|
|
3736
3736
|
kind: 'Fragment',
|
|
3737
|
-
version: VERSION$
|
|
3737
|
+
version: VERSION$6,
|
|
3738
3738
|
private: [],
|
|
3739
3739
|
selections: [
|
|
3740
3740
|
{
|
|
@@ -3755,7 +3755,7 @@ const select$7 = function RecommendedActionsRepresentationSelect() {
|
|
|
3755
3755
|
]
|
|
3756
3756
|
};
|
|
3757
3757
|
};
|
|
3758
|
-
function equals$
|
|
3758
|
+
function equals$6(existing, incoming) {
|
|
3759
3759
|
const existing_isSuccess = existing.isSuccess;
|
|
3760
3760
|
const incoming_isSuccess = incoming.isSuccess;
|
|
3761
3761
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -3777,7 +3777,7 @@ function equals$4(existing, incoming) {
|
|
|
3777
3777
|
const existing_copilotQuickActions = existing.copilotQuickActions;
|
|
3778
3778
|
const incoming_copilotQuickActions = incoming.copilotQuickActions;
|
|
3779
3779
|
const equals_copilotQuickActions_items = equalsArray(existing_copilotQuickActions, incoming_copilotQuickActions, (existing_copilotQuickActions_item, incoming_copilotQuickActions_item) => {
|
|
3780
|
-
if (!(equals$
|
|
3780
|
+
if (!(equals$7(existing_copilotQuickActions_item, incoming_copilotQuickActions_item))) {
|
|
3781
3781
|
return false;
|
|
3782
3782
|
}
|
|
3783
3783
|
});
|
|
@@ -3788,14 +3788,14 @@ function equals$4(existing, incoming) {
|
|
|
3788
3788
|
}
|
|
3789
3789
|
const ingest$2 = function RecommendedActionsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3790
3790
|
if (process.env.NODE_ENV !== 'production') {
|
|
3791
|
-
const validateError = validate$
|
|
3791
|
+
const validateError = validate$6(input);
|
|
3792
3792
|
if (validateError !== null) {
|
|
3793
3793
|
throw validateError;
|
|
3794
3794
|
}
|
|
3795
3795
|
}
|
|
3796
3796
|
const key = path.fullPath;
|
|
3797
3797
|
const ttlToUse = TTL$2;
|
|
3798
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "einstein-copilot-bot", VERSION$
|
|
3798
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "einstein-copilot-bot", VERSION$6, RepresentationType$2, equals$6);
|
|
3799
3799
|
return createLink(key);
|
|
3800
3800
|
};
|
|
3801
3801
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -3808,8 +3808,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3808
3808
|
});
|
|
3809
3809
|
}
|
|
3810
3810
|
|
|
3811
|
-
function select$
|
|
3812
|
-
return select$
|
|
3811
|
+
function select$8(luvio, params) {
|
|
3812
|
+
return select$9();
|
|
3813
3813
|
}
|
|
3814
3814
|
function keyBuilder$5(luvio, params) {
|
|
3815
3815
|
return keyPrefix + '::RecommendedActionsRepresentation:(' + 'agentId:' + params.queryParams.agentId + ',' + 'pageName:' + params.queryParams.pageName + ',' + 'pageType:' + params.queryParams.pageType + ',' + 'actionName:' + params.queryParams.actionName + ',' + 'objectApiName:' + params.queryParams.objectApiName + ',' + 'customApplicationName:' + params.queryParams.customApplicationName + ',' + 'sessionId:' + params.queryParams.sessionId + ',' + 'formFactor:' + params.queryParams.formFactor + ')';
|
|
@@ -3823,7 +3823,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3823
3823
|
luvio.storeIngest(key, ingest$2, body);
|
|
3824
3824
|
const snapshot = luvio.storeLookup({
|
|
3825
3825
|
recordId: key,
|
|
3826
|
-
node: select$
|
|
3826
|
+
node: select$8(),
|
|
3827
3827
|
variables: {},
|
|
3828
3828
|
}, snapshotRefresh);
|
|
3829
3829
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3840,7 +3840,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
3840
3840
|
const storeMetadataParams = {
|
|
3841
3841
|
ttl: TTL$2,
|
|
3842
3842
|
namespace: keyPrefix,
|
|
3843
|
-
version: VERSION$
|
|
3843
|
+
version: VERSION$6,
|
|
3844
3844
|
representationName: RepresentationType$2
|
|
3845
3845
|
};
|
|
3846
3846
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -3897,7 +3897,7 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
|
3897
3897
|
}
|
|
3898
3898
|
function adapterFragment$2(luvio, config) {
|
|
3899
3899
|
createResourceParams$2(config);
|
|
3900
|
-
return select$
|
|
3900
|
+
return select$8();
|
|
3901
3901
|
}
|
|
3902
3902
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
3903
3903
|
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
@@ -3953,8 +3953,8 @@ const getRecommendedActionsAdapterFactory = (luvio) => function einsteinCopilotB
|
|
|
3953
3953
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
3954
3954
|
};
|
|
3955
3955
|
|
|
3956
|
-
const VERSION$
|
|
3957
|
-
function validate$
|
|
3956
|
+
const VERSION$5 = "7b8f676098deb92fdb92955fba2e6805";
|
|
3957
|
+
function validate$5(obj, path = 'WelcomeTopicSuggestedUtterancesRepresentation') {
|
|
3958
3958
|
const v_error = (() => {
|
|
3959
3959
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3960
3960
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3979,10 +3979,10 @@ function validate$3(obj, path = 'WelcomeTopicSuggestedUtterancesRepresentation')
|
|
|
3979
3979
|
})();
|
|
3980
3980
|
return v_error === undefined ? null : v_error;
|
|
3981
3981
|
}
|
|
3982
|
-
const select$
|
|
3982
|
+
const select$7 = function WelcomeTopicSuggestedUtterancesRepresentationSelect() {
|
|
3983
3983
|
return {
|
|
3984
3984
|
kind: 'Fragment',
|
|
3985
|
-
version: VERSION$
|
|
3985
|
+
version: VERSION$5,
|
|
3986
3986
|
private: [],
|
|
3987
3987
|
selections: [
|
|
3988
3988
|
{
|
|
@@ -3997,7 +3997,7 @@ const select$5 = function WelcomeTopicSuggestedUtterancesRepresentationSelect()
|
|
|
3997
3997
|
]
|
|
3998
3998
|
};
|
|
3999
3999
|
};
|
|
4000
|
-
function equals$
|
|
4000
|
+
function equals$5(existing, incoming) {
|
|
4001
4001
|
const existing_topicApiName = existing.topicApiName;
|
|
4002
4002
|
const incoming_topicApiName = incoming.topicApiName;
|
|
4003
4003
|
if (!(existing_topicApiName === incoming_topicApiName)) {
|
|
@@ -4017,8 +4017,8 @@ function equals$3(existing, incoming) {
|
|
|
4017
4017
|
}
|
|
4018
4018
|
|
|
4019
4019
|
const TTL$1 = 100;
|
|
4020
|
-
const VERSION$
|
|
4021
|
-
function validate$
|
|
4020
|
+
const VERSION$4 = "5563352486e852506e175069aef4b290";
|
|
4021
|
+
function validate$4(obj, path = 'WelcomeUtterancesRepresentation') {
|
|
4022
4022
|
const v_error = (() => {
|
|
4023
4023
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4024
4024
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4043,7 +4043,7 @@ function validate$2(obj, path = 'WelcomeUtterancesRepresentation') {
|
|
|
4043
4043
|
for (let i = 0; i < obj_topicsAndSuggestedUtterances.length; i++) {
|
|
4044
4044
|
const obj_topicsAndSuggestedUtterances_item = obj_topicsAndSuggestedUtterances[i];
|
|
4045
4045
|
const path_topicsAndSuggestedUtterances_item = path_topicsAndSuggestedUtterances + '[' + i + ']';
|
|
4046
|
-
const referencepath_topicsAndSuggestedUtterances_itemValidationError = validate$
|
|
4046
|
+
const referencepath_topicsAndSuggestedUtterances_itemValidationError = validate$5(obj_topicsAndSuggestedUtterances_item, path_topicsAndSuggestedUtterances_item);
|
|
4047
4047
|
if (referencepath_topicsAndSuggestedUtterances_itemValidationError !== null) {
|
|
4048
4048
|
let message = 'Object doesn\'t match WelcomeTopicSuggestedUtterancesRepresentation (at "' + path_topicsAndSuggestedUtterances_item + '")\n';
|
|
4049
4049
|
message += referencepath_topicsAndSuggestedUtterances_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4057,11 +4057,11 @@ const RepresentationType$1 = 'WelcomeUtterancesRepresentation';
|
|
|
4057
4057
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
4058
4058
|
return input;
|
|
4059
4059
|
}
|
|
4060
|
-
const select$
|
|
4061
|
-
const { selections: WelcomeTopicSuggestedUtterancesRepresentation__selections, opaque: WelcomeTopicSuggestedUtterancesRepresentation__opaque, } = select$
|
|
4060
|
+
const select$6 = function WelcomeUtterancesRepresentationSelect() {
|
|
4061
|
+
const { selections: WelcomeTopicSuggestedUtterancesRepresentation__selections, opaque: WelcomeTopicSuggestedUtterancesRepresentation__opaque, } = select$7();
|
|
4062
4062
|
return {
|
|
4063
4063
|
kind: 'Fragment',
|
|
4064
|
-
version: VERSION$
|
|
4064
|
+
version: VERSION$4,
|
|
4065
4065
|
private: [],
|
|
4066
4066
|
selections: [
|
|
4067
4067
|
{
|
|
@@ -4082,7 +4082,7 @@ const select$4 = function WelcomeUtterancesRepresentationSelect() {
|
|
|
4082
4082
|
]
|
|
4083
4083
|
};
|
|
4084
4084
|
};
|
|
4085
|
-
function equals$
|
|
4085
|
+
function equals$4(existing, incoming) {
|
|
4086
4086
|
const existing_isSuccess = existing.isSuccess;
|
|
4087
4087
|
const incoming_isSuccess = incoming.isSuccess;
|
|
4088
4088
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -4104,7 +4104,7 @@ function equals$2(existing, incoming) {
|
|
|
4104
4104
|
const existing_topicsAndSuggestedUtterances = existing.topicsAndSuggestedUtterances;
|
|
4105
4105
|
const incoming_topicsAndSuggestedUtterances = incoming.topicsAndSuggestedUtterances;
|
|
4106
4106
|
const equals_topicsAndSuggestedUtterances_items = equalsArray(existing_topicsAndSuggestedUtterances, incoming_topicsAndSuggestedUtterances, (existing_topicsAndSuggestedUtterances_item, incoming_topicsAndSuggestedUtterances_item) => {
|
|
4107
|
-
if (!(equals$
|
|
4107
|
+
if (!(equals$5(existing_topicsAndSuggestedUtterances_item, incoming_topicsAndSuggestedUtterances_item))) {
|
|
4108
4108
|
return false;
|
|
4109
4109
|
}
|
|
4110
4110
|
});
|
|
@@ -4115,14 +4115,14 @@ function equals$2(existing, incoming) {
|
|
|
4115
4115
|
}
|
|
4116
4116
|
const ingest$1 = function WelcomeUtterancesRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4117
4117
|
if (process.env.NODE_ENV !== 'production') {
|
|
4118
|
-
const validateError = validate$
|
|
4118
|
+
const validateError = validate$4(input);
|
|
4119
4119
|
if (validateError !== null) {
|
|
4120
4120
|
throw validateError;
|
|
4121
4121
|
}
|
|
4122
4122
|
}
|
|
4123
4123
|
const key = path.fullPath;
|
|
4124
4124
|
const ttlToUse = TTL$1;
|
|
4125
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "einstein-copilot-bot", VERSION$
|
|
4125
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "einstein-copilot-bot", VERSION$4, RepresentationType$1, equals$4);
|
|
4126
4126
|
return createLink(key);
|
|
4127
4127
|
};
|
|
4128
4128
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -4135,8 +4135,8 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4135
4135
|
});
|
|
4136
4136
|
}
|
|
4137
4137
|
|
|
4138
|
-
function select$
|
|
4139
|
-
return select$
|
|
4138
|
+
function select$5(luvio, params) {
|
|
4139
|
+
return select$6();
|
|
4140
4140
|
}
|
|
4141
4141
|
function keyBuilder$3(luvio, params) {
|
|
4142
4142
|
return keyPrefix + '::WelcomeUtterancesRepresentation:(' + 'sessionId:' + params.queryParams.sessionId + ')';
|
|
@@ -4150,7 +4150,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4150
4150
|
luvio.storeIngest(key, ingest$1, body);
|
|
4151
4151
|
const snapshot = luvio.storeLookup({
|
|
4152
4152
|
recordId: key,
|
|
4153
|
-
node: select$
|
|
4153
|
+
node: select$5(),
|
|
4154
4154
|
variables: {},
|
|
4155
4155
|
}, snapshotRefresh);
|
|
4156
4156
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4167,7 +4167,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
4167
4167
|
const storeMetadataParams = {
|
|
4168
4168
|
ttl: TTL$1,
|
|
4169
4169
|
namespace: keyPrefix,
|
|
4170
|
-
version: VERSION$
|
|
4170
|
+
version: VERSION$4,
|
|
4171
4171
|
representationName: RepresentationType$1
|
|
4172
4172
|
};
|
|
4173
4173
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -4217,7 +4217,7 @@ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
|
4217
4217
|
}
|
|
4218
4218
|
function adapterFragment$1(luvio, config) {
|
|
4219
4219
|
createResourceParams$1(config);
|
|
4220
|
-
return select$
|
|
4220
|
+
return select$5();
|
|
4221
4221
|
}
|
|
4222
4222
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
4223
4223
|
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
@@ -4273,7 +4273,219 @@ const getWelcomeUtterancesAdapterFactory = (luvio) => function einsteinCopilotBo
|
|
|
4273
4273
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
4274
4274
|
};
|
|
4275
4275
|
|
|
4276
|
-
const VERSION$
|
|
4276
|
+
const VERSION$3 = "46249d201efadd7e3dcf7cfbe6728f48";
|
|
4277
|
+
function validate$3(obj, path = 'EsDeploymentInfoRepresentation') {
|
|
4278
|
+
const v_error = (() => {
|
|
4279
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4280
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4281
|
+
}
|
|
4282
|
+
if (obj.deploymentType !== undefined) {
|
|
4283
|
+
const obj_deploymentType = obj.deploymentType;
|
|
4284
|
+
const path_deploymentType = path + '.deploymentType';
|
|
4285
|
+
if (typeof obj_deploymentType !== 'string') {
|
|
4286
|
+
return new TypeError('Expected "string" but received "' + typeof obj_deploymentType + '" (at "' + path_deploymentType + '")');
|
|
4287
|
+
}
|
|
4288
|
+
}
|
|
4289
|
+
if (obj.developerName !== undefined) {
|
|
4290
|
+
const obj_developerName = obj.developerName;
|
|
4291
|
+
const path_developerName = path + '.developerName';
|
|
4292
|
+
if (typeof obj_developerName !== 'string') {
|
|
4293
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
4294
|
+
}
|
|
4295
|
+
}
|
|
4296
|
+
if (obj.namespacePrefix !== undefined) {
|
|
4297
|
+
const obj_namespacePrefix = obj.namespacePrefix;
|
|
4298
|
+
const path_namespacePrefix = path + '.namespacePrefix';
|
|
4299
|
+
if (typeof obj_namespacePrefix !== 'string') {
|
|
4300
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespacePrefix + '" (at "' + path_namespacePrefix + '")');
|
|
4301
|
+
}
|
|
4302
|
+
}
|
|
4303
|
+
})();
|
|
4304
|
+
return v_error === undefined ? null : v_error;
|
|
4305
|
+
}
|
|
4306
|
+
const select$4 = function EsDeploymentInfoRepresentationSelect() {
|
|
4307
|
+
return {
|
|
4308
|
+
kind: 'Fragment',
|
|
4309
|
+
version: VERSION$3,
|
|
4310
|
+
private: [],
|
|
4311
|
+
selections: [
|
|
4312
|
+
{
|
|
4313
|
+
name: 'deploymentType',
|
|
4314
|
+
kind: 'Scalar',
|
|
4315
|
+
required: false
|
|
4316
|
+
},
|
|
4317
|
+
{
|
|
4318
|
+
name: 'developerName',
|
|
4319
|
+
kind: 'Scalar',
|
|
4320
|
+
required: false
|
|
4321
|
+
},
|
|
4322
|
+
{
|
|
4323
|
+
name: 'namespacePrefix',
|
|
4324
|
+
kind: 'Scalar',
|
|
4325
|
+
required: false
|
|
4326
|
+
}
|
|
4327
|
+
]
|
|
4328
|
+
};
|
|
4329
|
+
};
|
|
4330
|
+
function equals$3(existing, incoming) {
|
|
4331
|
+
const existing_deploymentType = existing.deploymentType;
|
|
4332
|
+
const incoming_deploymentType = incoming.deploymentType;
|
|
4333
|
+
// if at least one of these optionals is defined
|
|
4334
|
+
if (existing_deploymentType !== undefined || incoming_deploymentType !== undefined) {
|
|
4335
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4336
|
+
// not equal
|
|
4337
|
+
if (existing_deploymentType === undefined || incoming_deploymentType === undefined) {
|
|
4338
|
+
return false;
|
|
4339
|
+
}
|
|
4340
|
+
if (!(existing_deploymentType === incoming_deploymentType)) {
|
|
4341
|
+
return false;
|
|
4342
|
+
}
|
|
4343
|
+
}
|
|
4344
|
+
const existing_developerName = existing.developerName;
|
|
4345
|
+
const incoming_developerName = incoming.developerName;
|
|
4346
|
+
// if at least one of these optionals is defined
|
|
4347
|
+
if (existing_developerName !== undefined || incoming_developerName !== undefined) {
|
|
4348
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4349
|
+
// not equal
|
|
4350
|
+
if (existing_developerName === undefined || incoming_developerName === undefined) {
|
|
4351
|
+
return false;
|
|
4352
|
+
}
|
|
4353
|
+
if (!(existing_developerName === incoming_developerName)) {
|
|
4354
|
+
return false;
|
|
4355
|
+
}
|
|
4356
|
+
}
|
|
4357
|
+
const existing_namespacePrefix = existing.namespacePrefix;
|
|
4358
|
+
const incoming_namespacePrefix = incoming.namespacePrefix;
|
|
4359
|
+
// if at least one of these optionals is defined
|
|
4360
|
+
if (existing_namespacePrefix !== undefined || incoming_namespacePrefix !== undefined) {
|
|
4361
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4362
|
+
// not equal
|
|
4363
|
+
if (existing_namespacePrefix === undefined || incoming_namespacePrefix === undefined) {
|
|
4364
|
+
return false;
|
|
4365
|
+
}
|
|
4366
|
+
if (!(existing_namespacePrefix === incoming_namespacePrefix)) {
|
|
4367
|
+
return false;
|
|
4368
|
+
}
|
|
4369
|
+
}
|
|
4370
|
+
return true;
|
|
4371
|
+
}
|
|
4372
|
+
|
|
4373
|
+
const VERSION$2 = "c946e14d9f53600016e83b9a0291dd95";
|
|
4374
|
+
function validate$2(obj, path = 'MessagingChannelInfoRepresentation') {
|
|
4375
|
+
const v_error = (() => {
|
|
4376
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4377
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4378
|
+
}
|
|
4379
|
+
if (obj.authMode !== undefined) {
|
|
4380
|
+
const obj_authMode = obj.authMode;
|
|
4381
|
+
const path_authMode = path + '.authMode';
|
|
4382
|
+
if (typeof obj_authMode !== 'string') {
|
|
4383
|
+
return new TypeError('Expected "string" but received "' + typeof obj_authMode + '" (at "' + path_authMode + '")');
|
|
4384
|
+
}
|
|
4385
|
+
}
|
|
4386
|
+
if (obj.deployments !== undefined) {
|
|
4387
|
+
const obj_deployments = obj.deployments;
|
|
4388
|
+
const path_deployments = path + '.deployments';
|
|
4389
|
+
if (!ArrayIsArray(obj_deployments)) {
|
|
4390
|
+
return new TypeError('Expected "array" but received "' + typeof obj_deployments + '" (at "' + path_deployments + '")');
|
|
4391
|
+
}
|
|
4392
|
+
for (let i = 0; i < obj_deployments.length; i++) {
|
|
4393
|
+
const obj_deployments_item = obj_deployments[i];
|
|
4394
|
+
const path_deployments_item = path_deployments + '[' + i + ']';
|
|
4395
|
+
const referencepath_deployments_itemValidationError = validate$3(obj_deployments_item, path_deployments_item);
|
|
4396
|
+
if (referencepath_deployments_itemValidationError !== null) {
|
|
4397
|
+
let message = 'Object doesn\'t match EsDeploymentInfoRepresentation (at "' + path_deployments_item + '")\n';
|
|
4398
|
+
message += referencepath_deployments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4399
|
+
return new TypeError(message);
|
|
4400
|
+
}
|
|
4401
|
+
}
|
|
4402
|
+
}
|
|
4403
|
+
if (obj.messagingChannelPlatformKey !== undefined) {
|
|
4404
|
+
const obj_messagingChannelPlatformKey = obj.messagingChannelPlatformKey;
|
|
4405
|
+
const path_messagingChannelPlatformKey = path + '.messagingChannelPlatformKey';
|
|
4406
|
+
if (typeof obj_messagingChannelPlatformKey !== 'string') {
|
|
4407
|
+
return new TypeError('Expected "string" but received "' + typeof obj_messagingChannelPlatformKey + '" (at "' + path_messagingChannelPlatformKey + '")');
|
|
4408
|
+
}
|
|
4409
|
+
}
|
|
4410
|
+
})();
|
|
4411
|
+
return v_error === undefined ? null : v_error;
|
|
4412
|
+
}
|
|
4413
|
+
const select$3 = function MessagingChannelInfoRepresentationSelect() {
|
|
4414
|
+
const { selections: EsDeploymentInfoRepresentation__selections, opaque: EsDeploymentInfoRepresentation__opaque, } = select$4();
|
|
4415
|
+
return {
|
|
4416
|
+
kind: 'Fragment',
|
|
4417
|
+
version: VERSION$2,
|
|
4418
|
+
private: [],
|
|
4419
|
+
selections: [
|
|
4420
|
+
{
|
|
4421
|
+
name: 'authMode',
|
|
4422
|
+
kind: 'Scalar',
|
|
4423
|
+
required: false
|
|
4424
|
+
},
|
|
4425
|
+
{
|
|
4426
|
+
name: 'deployments',
|
|
4427
|
+
kind: 'Object',
|
|
4428
|
+
plural: true,
|
|
4429
|
+
selections: EsDeploymentInfoRepresentation__selections,
|
|
4430
|
+
required: false
|
|
4431
|
+
},
|
|
4432
|
+
{
|
|
4433
|
+
name: 'messagingChannelPlatformKey',
|
|
4434
|
+
kind: 'Scalar',
|
|
4435
|
+
required: false
|
|
4436
|
+
}
|
|
4437
|
+
]
|
|
4438
|
+
};
|
|
4439
|
+
};
|
|
4440
|
+
function equals$2(existing, incoming) {
|
|
4441
|
+
const existing_authMode = existing.authMode;
|
|
4442
|
+
const incoming_authMode = incoming.authMode;
|
|
4443
|
+
// if at least one of these optionals is defined
|
|
4444
|
+
if (existing_authMode !== undefined || incoming_authMode !== undefined) {
|
|
4445
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4446
|
+
// not equal
|
|
4447
|
+
if (existing_authMode === undefined || incoming_authMode === undefined) {
|
|
4448
|
+
return false;
|
|
4449
|
+
}
|
|
4450
|
+
if (!(existing_authMode === incoming_authMode)) {
|
|
4451
|
+
return false;
|
|
4452
|
+
}
|
|
4453
|
+
}
|
|
4454
|
+
const existing_messagingChannelPlatformKey = existing.messagingChannelPlatformKey;
|
|
4455
|
+
const incoming_messagingChannelPlatformKey = incoming.messagingChannelPlatformKey;
|
|
4456
|
+
// if at least one of these optionals is defined
|
|
4457
|
+
if (existing_messagingChannelPlatformKey !== undefined || incoming_messagingChannelPlatformKey !== undefined) {
|
|
4458
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4459
|
+
// not equal
|
|
4460
|
+
if (existing_messagingChannelPlatformKey === undefined || incoming_messagingChannelPlatformKey === undefined) {
|
|
4461
|
+
return false;
|
|
4462
|
+
}
|
|
4463
|
+
if (!(existing_messagingChannelPlatformKey === incoming_messagingChannelPlatformKey)) {
|
|
4464
|
+
return false;
|
|
4465
|
+
}
|
|
4466
|
+
}
|
|
4467
|
+
const existing_deployments = existing.deployments;
|
|
4468
|
+
const incoming_deployments = incoming.deployments;
|
|
4469
|
+
// if at least one of these optionals is defined
|
|
4470
|
+
if (existing_deployments !== undefined || incoming_deployments !== undefined) {
|
|
4471
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4472
|
+
// not equal
|
|
4473
|
+
if (existing_deployments === undefined || incoming_deployments === undefined) {
|
|
4474
|
+
return false;
|
|
4475
|
+
}
|
|
4476
|
+
const equals_deployments_items = equalsArray(existing_deployments, incoming_deployments, (existing_deployments_item, incoming_deployments_item) => {
|
|
4477
|
+
if (!(equals$3(existing_deployments_item, incoming_deployments_item))) {
|
|
4478
|
+
return false;
|
|
4479
|
+
}
|
|
4480
|
+
});
|
|
4481
|
+
if (equals_deployments_items === false) {
|
|
4482
|
+
return false;
|
|
4483
|
+
}
|
|
4484
|
+
}
|
|
4485
|
+
return true;
|
|
4486
|
+
}
|
|
4487
|
+
|
|
4488
|
+
const VERSION$1 = "4218ec9c1b9a06ae07be1342f42b1d36";
|
|
4277
4489
|
function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
4278
4490
|
const v_error = (() => {
|
|
4279
4491
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4326,6 +4538,23 @@ function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
|
4326
4538
|
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
4327
4539
|
}
|
|
4328
4540
|
}
|
|
4541
|
+
if (obj.messagingChannels !== undefined) {
|
|
4542
|
+
const obj_messagingChannels = obj.messagingChannels;
|
|
4543
|
+
const path_messagingChannels = path + '.messagingChannels';
|
|
4544
|
+
if (!ArrayIsArray(obj_messagingChannels)) {
|
|
4545
|
+
return new TypeError('Expected "array" but received "' + typeof obj_messagingChannels + '" (at "' + path_messagingChannels + '")');
|
|
4546
|
+
}
|
|
4547
|
+
for (let i = 0; i < obj_messagingChannels.length; i++) {
|
|
4548
|
+
const obj_messagingChannels_item = obj_messagingChannels[i];
|
|
4549
|
+
const path_messagingChannels_item = path_messagingChannels + '[' + i + ']';
|
|
4550
|
+
const referencepath_messagingChannels_itemValidationError = validate$2(obj_messagingChannels_item, path_messagingChannels_item);
|
|
4551
|
+
if (referencepath_messagingChannels_itemValidationError !== null) {
|
|
4552
|
+
let message = 'Object doesn\'t match MessagingChannelInfoRepresentation (at "' + path_messagingChannels_item + '")\n';
|
|
4553
|
+
message += referencepath_messagingChannels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4554
|
+
return new TypeError(message);
|
|
4555
|
+
}
|
|
4556
|
+
}
|
|
4557
|
+
}
|
|
4329
4558
|
if (obj.stopRecPrompts !== undefined) {
|
|
4330
4559
|
const obj_stopRecPrompts = obj.stopRecPrompts;
|
|
4331
4560
|
const path_stopRecPrompts = path + '.stopRecPrompts';
|
|
@@ -4344,6 +4573,7 @@ function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
|
|
|
4344
4573
|
return v_error === undefined ? null : v_error;
|
|
4345
4574
|
}
|
|
4346
4575
|
const select$2 = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
4576
|
+
const { selections: MessagingChannelInfoRepresentation__selections, opaque: MessagingChannelInfoRepresentation__opaque, } = select$3();
|
|
4347
4577
|
return {
|
|
4348
4578
|
kind: 'Fragment',
|
|
4349
4579
|
version: VERSION$1,
|
|
@@ -4383,6 +4613,13 @@ const select$2 = function AgentforceAgentBotInfoRepresentationSelect() {
|
|
|
4383
4613
|
kind: 'Scalar',
|
|
4384
4614
|
required: false
|
|
4385
4615
|
},
|
|
4616
|
+
{
|
|
4617
|
+
name: 'messagingChannels',
|
|
4618
|
+
kind: 'Object',
|
|
4619
|
+
plural: true,
|
|
4620
|
+
selections: MessagingChannelInfoRepresentation__selections,
|
|
4621
|
+
required: false
|
|
4622
|
+
},
|
|
4386
4623
|
{
|
|
4387
4624
|
name: 'stopRecPrompts',
|
|
4388
4625
|
kind: 'Scalar',
|
|
@@ -4506,11 +4743,29 @@ function equals$1(existing, incoming) {
|
|
|
4506
4743
|
return false;
|
|
4507
4744
|
}
|
|
4508
4745
|
}
|
|
4746
|
+
const existing_messagingChannels = existing.messagingChannels;
|
|
4747
|
+
const incoming_messagingChannels = incoming.messagingChannels;
|
|
4748
|
+
// if at least one of these optionals is defined
|
|
4749
|
+
if (existing_messagingChannels !== undefined || incoming_messagingChannels !== undefined) {
|
|
4750
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4751
|
+
// not equal
|
|
4752
|
+
if (existing_messagingChannels === undefined || incoming_messagingChannels === undefined) {
|
|
4753
|
+
return false;
|
|
4754
|
+
}
|
|
4755
|
+
const equals_messagingChannels_items = equalsArray(existing_messagingChannels, incoming_messagingChannels, (existing_messagingChannels_item, incoming_messagingChannels_item) => {
|
|
4756
|
+
if (!(equals$2(existing_messagingChannels_item, incoming_messagingChannels_item))) {
|
|
4757
|
+
return false;
|
|
4758
|
+
}
|
|
4759
|
+
});
|
|
4760
|
+
if (equals_messagingChannels_items === false) {
|
|
4761
|
+
return false;
|
|
4762
|
+
}
|
|
4763
|
+
}
|
|
4509
4764
|
return true;
|
|
4510
4765
|
}
|
|
4511
4766
|
|
|
4512
4767
|
const TTL = 30000;
|
|
4513
|
-
const VERSION = "
|
|
4768
|
+
const VERSION = "230e5ddacb2457f15873cf4b932e3703";
|
|
4514
4769
|
function validate(obj, path = 'AgentforceAgentBotInfoListRepresentation') {
|
|
4515
4770
|
const v_error = (() => {
|
|
4516
4771
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4557,6 +4812,13 @@ function validate(obj, path = 'AgentforceAgentBotInfoListRepresentation') {
|
|
|
4557
4812
|
if (typeof obj_isSuccess !== 'boolean') {
|
|
4558
4813
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
4559
4814
|
}
|
|
4815
|
+
if (obj.scrtUrl !== undefined) {
|
|
4816
|
+
const obj_scrtUrl = obj.scrtUrl;
|
|
4817
|
+
const path_scrtUrl = path + '.scrtUrl';
|
|
4818
|
+
if (typeof obj_scrtUrl !== 'string') {
|
|
4819
|
+
return new TypeError('Expected "string" but received "' + typeof obj_scrtUrl + '" (at "' + path_scrtUrl + '")');
|
|
4820
|
+
}
|
|
4821
|
+
}
|
|
4560
4822
|
if (obj.sfapUrl !== undefined) {
|
|
4561
4823
|
const obj_sfapUrl = obj.sfapUrl;
|
|
4562
4824
|
const path_sfapUrl = path + '.sfapUrl';
|
|
@@ -4617,6 +4879,11 @@ const select$1 = function AgentforceAgentBotInfoListRepresentationSelect() {
|
|
|
4617
4879
|
name: 'isSuccess',
|
|
4618
4880
|
kind: 'Scalar'
|
|
4619
4881
|
},
|
|
4882
|
+
{
|
|
4883
|
+
name: 'scrtUrl',
|
|
4884
|
+
kind: 'Scalar',
|
|
4885
|
+
required: false
|
|
4886
|
+
},
|
|
4620
4887
|
{
|
|
4621
4888
|
name: 'sfapUrl',
|
|
4622
4889
|
kind: 'Scalar',
|
|
@@ -4680,6 +4947,19 @@ function equals(existing, incoming) {
|
|
|
4680
4947
|
return false;
|
|
4681
4948
|
}
|
|
4682
4949
|
}
|
|
4950
|
+
const existing_scrtUrl = existing.scrtUrl;
|
|
4951
|
+
const incoming_scrtUrl = incoming.scrtUrl;
|
|
4952
|
+
// if at least one of these optionals is defined
|
|
4953
|
+
if (existing_scrtUrl !== undefined || incoming_scrtUrl !== undefined) {
|
|
4954
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4955
|
+
// not equal
|
|
4956
|
+
if (existing_scrtUrl === undefined || incoming_scrtUrl === undefined) {
|
|
4957
|
+
return false;
|
|
4958
|
+
}
|
|
4959
|
+
if (!(existing_scrtUrl === incoming_scrtUrl)) {
|
|
4960
|
+
return false;
|
|
4961
|
+
}
|
|
4962
|
+
}
|
|
4683
4963
|
const existing_sfapUrl = existing.sfapUrl;
|
|
4684
4964
|
const incoming_sfapUrl = incoming.sfapUrl;
|
|
4685
4965
|
// if at least one of these optionals is defined
|