@salesforce/lds-adapters-sfap-analytics-insights 1.309.0-dev20 → 1.309.0-dev21
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.
|
@@ -1013,16 +1013,18 @@ function equals$f(existing, incoming) {
|
|
|
1013
1013
|
return true;
|
|
1014
1014
|
}
|
|
1015
1015
|
|
|
1016
|
-
const VERSION$e = "
|
|
1016
|
+
const VERSION$e = "6e24eb6767cb7eb05e4ae19fffe299b1";
|
|
1017
1017
|
function validate$e(obj, path = 'Summary') {
|
|
1018
1018
|
const v_error = (() => {
|
|
1019
1019
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1020
1020
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1021
1021
|
}
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1022
|
+
if (obj.generationId !== undefined) {
|
|
1023
|
+
const obj_generationId = obj.generationId;
|
|
1024
|
+
const path_generationId = path + '.generationId';
|
|
1025
|
+
if (typeof obj_generationId !== 'string') {
|
|
1026
|
+
return new TypeError('Expected "string" but received "' + typeof obj_generationId + '" (at "' + path_generationId + '")');
|
|
1027
|
+
}
|
|
1026
1028
|
}
|
|
1027
1029
|
const obj_markup = obj.markup;
|
|
1028
1030
|
const path_markup = path + '.markup';
|
|
@@ -1050,7 +1052,8 @@ const select$j = function SummarySelect() {
|
|
|
1050
1052
|
selections: [
|
|
1051
1053
|
{
|
|
1052
1054
|
name: 'generationId',
|
|
1053
|
-
kind: 'Scalar'
|
|
1055
|
+
kind: 'Scalar',
|
|
1056
|
+
required: false
|
|
1054
1057
|
},
|
|
1055
1058
|
{
|
|
1056
1059
|
name: 'markup',
|
|
@@ -1070,8 +1073,16 @@ const select$j = function SummarySelect() {
|
|
|
1070
1073
|
function equals$e(existing, incoming) {
|
|
1071
1074
|
const existing_generationId = existing.generationId;
|
|
1072
1075
|
const incoming_generationId = incoming.generationId;
|
|
1073
|
-
if
|
|
1074
|
-
|
|
1076
|
+
// if at least one of these optionals is defined
|
|
1077
|
+
if (existing_generationId !== undefined || incoming_generationId !== undefined) {
|
|
1078
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1079
|
+
// not equal
|
|
1080
|
+
if (existing_generationId === undefined || incoming_generationId === undefined) {
|
|
1081
|
+
return false;
|
|
1082
|
+
}
|
|
1083
|
+
if (!(existing_generationId === incoming_generationId)) {
|
|
1084
|
+
return false;
|
|
1085
|
+
}
|
|
1075
1086
|
}
|
|
1076
1087
|
const existing_markup = existing.markup;
|
|
1077
1088
|
const incoming_markup = incoming.markup;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "6e24eb6767cb7eb05e4ae19fffe299b1";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: Summary, existing: SummaryNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SummaryNormalized;
|
|
@@ -15,7 +15,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
*/
|
|
16
16
|
export interface SummaryNormalized {
|
|
17
17
|
/** ID of the Einstein GPT generation request. */
|
|
18
|
-
generationId
|
|
18
|
+
generationId?: string;
|
|
19
19
|
/** Text for the summary */
|
|
20
20
|
markup: string;
|
|
21
21
|
/** Which summarization strategy was used */
|
|
@@ -30,7 +30,7 @@ export interface SummaryNormalized {
|
|
|
30
30
|
* (none)
|
|
31
31
|
*/
|
|
32
32
|
export interface Summary {
|
|
33
|
-
generationId
|
|
33
|
+
generationId?: string;
|
|
34
34
|
markup: string;
|
|
35
35
|
strategy: string;
|
|
36
36
|
timestamp: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-sfap-analytics-insights",
|
|
3
|
-
"version": "1.309.0-
|
|
3
|
+
"version": "1.309.0-dev21",
|
|
4
4
|
"description": "APIs for generating insights about metrics",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/sfap-analytics-insights.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.309.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.309.0-dev21"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.309.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.309.0-dev21"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1023,16 +1023,18 @@ function equals$f(existing, incoming) {
|
|
|
1023
1023
|
return true;
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
|
-
const VERSION$e = "
|
|
1026
|
+
const VERSION$e = "6e24eb6767cb7eb05e4ae19fffe299b1";
|
|
1027
1027
|
function validate$e(obj, path = 'Summary') {
|
|
1028
1028
|
const v_error = (() => {
|
|
1029
1029
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1030
1030
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1031
1031
|
}
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1032
|
+
if (obj.generationId !== undefined) {
|
|
1033
|
+
const obj_generationId = obj.generationId;
|
|
1034
|
+
const path_generationId = path + '.generationId';
|
|
1035
|
+
if (typeof obj_generationId !== 'string') {
|
|
1036
|
+
return new TypeError('Expected "string" but received "' + typeof obj_generationId + '" (at "' + path_generationId + '")');
|
|
1037
|
+
}
|
|
1036
1038
|
}
|
|
1037
1039
|
const obj_markup = obj.markup;
|
|
1038
1040
|
const path_markup = path + '.markup';
|
|
@@ -1060,7 +1062,8 @@ const select$j = function SummarySelect() {
|
|
|
1060
1062
|
selections: [
|
|
1061
1063
|
{
|
|
1062
1064
|
name: 'generationId',
|
|
1063
|
-
kind: 'Scalar'
|
|
1065
|
+
kind: 'Scalar',
|
|
1066
|
+
required: false
|
|
1064
1067
|
},
|
|
1065
1068
|
{
|
|
1066
1069
|
name: 'markup',
|
|
@@ -1080,8 +1083,16 @@ const select$j = function SummarySelect() {
|
|
|
1080
1083
|
function equals$e(existing, incoming) {
|
|
1081
1084
|
const existing_generationId = existing.generationId;
|
|
1082
1085
|
const incoming_generationId = incoming.generationId;
|
|
1083
|
-
if
|
|
1084
|
-
|
|
1086
|
+
// if at least one of these optionals is defined
|
|
1087
|
+
if (existing_generationId !== undefined || incoming_generationId !== undefined) {
|
|
1088
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1089
|
+
// not equal
|
|
1090
|
+
if (existing_generationId === undefined || incoming_generationId === undefined) {
|
|
1091
|
+
return false;
|
|
1092
|
+
}
|
|
1093
|
+
if (!(existing_generationId === incoming_generationId)) {
|
|
1094
|
+
return false;
|
|
1095
|
+
}
|
|
1085
1096
|
}
|
|
1086
1097
|
const existing_markup = existing.markup;
|
|
1087
1098
|
const incoming_markup = incoming.markup;
|
|
@@ -3554,4 +3565,4 @@ withDefaultLuvio((luvio) => {
|
|
|
3554
3565
|
});
|
|
3555
3566
|
|
|
3556
3567
|
export { createInsightsBatch, generateInsights, generateInsightsBasic, getInsightsBatch, getInsightsBatchNotifyChange, getInsightsBatch_imperative, getMetricFilterValues };
|
|
3557
|
-
// version: 1.309.0-
|
|
3568
|
+
// version: 1.309.0-dev21-4baf03ecaf
|