@salesforce/lds-adapters-sfap-analytics-insights 1.354.0-dev1 → 1.355.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.
|
@@ -545,6 +545,16 @@ function validate$v(obj, path = 'MetricInstance') {
|
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
+
if (obj.goals !== undefined) {
|
|
549
|
+
const obj_goals = obj.goals;
|
|
550
|
+
const path_goals = path + '.goals';
|
|
551
|
+
const referencepath_goalsValidationError = validate$F(obj_goals, path_goals);
|
|
552
|
+
if (referencepath_goalsValidationError !== null) {
|
|
553
|
+
let message = 'Object doesn\'t match GoalMetadata (at "' + path_goals + '")\n';
|
|
554
|
+
message += referencepath_goalsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
555
|
+
return new TypeError(message);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
548
558
|
if (obj.measurementPeriod !== undefined) {
|
|
549
559
|
const obj_measurementPeriod = obj.measurementPeriod;
|
|
550
560
|
const path_measurementPeriod = path + '.measurementPeriod';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Filter as Filter_Filter } from './Filter';
|
|
2
|
+
import { GoalMetadata as GoalMetadata_GoalMetadata } from './GoalMetadata';
|
|
2
3
|
import { FlattenFilter as FlattenFilter_FlattenFilter } from './FlattenFilter';
|
|
3
4
|
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';
|
|
4
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "1ac67609b73ea8c90ca19057c24ba02d";
|
|
5
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
7
|
export declare const RepresentationType: string;
|
|
7
8
|
export declare function normalize(input: MetricInstance, existing: MetricInstanceNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MetricInstanceNormalized;
|
|
@@ -19,6 +20,7 @@ export interface MetricInstanceNormalized {
|
|
|
19
20
|
/** DEPRECATED Please don't use this field.
|
|
20
21
|
The 'filters' and 'semantic_filters' will be ANDed together */
|
|
21
22
|
filters?: Array<Filter_Filter>;
|
|
23
|
+
goals?: GoalMetadata_GoalMetadata;
|
|
22
24
|
measurementPeriod?: unknown;
|
|
23
25
|
semanticFilter?: FlattenFilter_FlattenFilter;
|
|
24
26
|
}
|
|
@@ -30,6 +32,7 @@ export interface MetricInstanceNormalized {
|
|
|
30
32
|
*/
|
|
31
33
|
export interface MetricInstance {
|
|
32
34
|
filters?: Array<Filter_Filter>;
|
|
35
|
+
goals?: GoalMetadata_GoalMetadata;
|
|
33
36
|
measurementPeriod?: unknown;
|
|
34
37
|
semanticFilter?: FlattenFilter_FlattenFilter;
|
|
35
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-sfap-analytics-insights",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.355.0",
|
|
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.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.355.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.355.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -555,6 +555,16 @@ function validate$v(obj, path = 'MetricInstance') {
|
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
+
if (obj.goals !== undefined) {
|
|
559
|
+
const obj_goals = obj.goals;
|
|
560
|
+
const path_goals = path + '.goals';
|
|
561
|
+
const referencepath_goalsValidationError = validate$F(obj_goals, path_goals);
|
|
562
|
+
if (referencepath_goalsValidationError !== null) {
|
|
563
|
+
let message = 'Object doesn\'t match GoalMetadata (at "' + path_goals + '")\n';
|
|
564
|
+
message += referencepath_goalsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
565
|
+
return new TypeError(message);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
558
568
|
if (obj.measurementPeriod !== undefined) {
|
|
559
569
|
const obj_measurementPeriod = obj.measurementPeriod;
|
|
560
570
|
const path_measurementPeriod = path + '.measurementPeriod';
|
|
@@ -3755,4 +3765,4 @@ withDefaultLuvio((luvio) => {
|
|
|
3755
3765
|
});
|
|
3756
3766
|
|
|
3757
3767
|
export { createInsightsBatch, generateInsights, generateInsightsBasic, getInsightsBatch, getInsightsBatchNotifyChange, getInsightsBatch_imperative, getMetricFilterValues };
|
|
3758
|
-
// version: 1.
|
|
3768
|
+
// version: 1.355.0-df8576becd
|