@salesforce/lds-adapters-sfap-analytics-insights 1.332.0-dev2 → 1.332.0-dev20
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/sfap-analytics-insights.js +200 -112
- package/dist/es/es2018/types/src/generated/types/GoalMetadata.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/GoalMetadata_StatusCondition.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/InputMetric.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/MeasurementPeriod.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/MetricDefinition.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/MetricInstance.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/MetricInstanceInput.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/RelativePeriod.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/Status.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/UnifiedFilter.d.ts +33 -0
- package/package.json +3 -3
- package/sfdc/index.js +201 -113
- package/src/raml/api.raml +159 -8
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { GoalMetadata_StatusCondition as GoalMetadata_StatusCondition_GoalMetadata_StatusCondition } from './GoalMetadata_StatusCondition';
|
|
2
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
+
export declare const VERSION = "e50e1ade99afa0af26c6426ef1104abf";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: GoalMetadata, existing: GoalMetadataNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GoalMetadataNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: GoalMetadataNormalized, incoming: GoalMetadataNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: GoalMetadata, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface GoalMetadataNormalized {
|
|
18
|
+
forecasting?: boolean;
|
|
19
|
+
statusConditions?: Array<GoalMetadata_StatusCondition_GoalMetadata_StatusCondition>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* (none)
|
|
26
|
+
*/
|
|
27
|
+
export interface GoalMetadata {
|
|
28
|
+
forecasting?: boolean;
|
|
29
|
+
statusConditions?: Array<GoalMetadata_StatusCondition_GoalMetadata_StatusCondition>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 = "04b77164c551085930f8c762fbc0baf7";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: GoalMetadata_StatusCondition, existing: GoalMetadata_StatusConditionNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GoalMetadata_StatusConditionNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: GoalMetadata_StatusConditionNormalized, incoming: GoalMetadata_StatusConditionNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: GoalMetadata_StatusCondition, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface GoalMetadata_StatusConditionNormalized {
|
|
17
|
+
color?: string;
|
|
18
|
+
currencyIsoCode?: string;
|
|
19
|
+
operator?: string;
|
|
20
|
+
primary?: boolean;
|
|
21
|
+
statusName?: string;
|
|
22
|
+
value?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface GoalMetadata_StatusCondition {
|
|
31
|
+
color?: string;
|
|
32
|
+
currencyIsoCode?: string;
|
|
33
|
+
operator?: string;
|
|
34
|
+
primary?: boolean;
|
|
35
|
+
statusName?: string;
|
|
36
|
+
value?: string;
|
|
37
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ExtensionOptions as ExtensionOptions_ExtensionOptions } from './ExtensionOptions';
|
|
2
|
+
import { GoalMetadata as GoalMetadata_GoalMetadata } from './GoalMetadata';
|
|
2
3
|
import { InsightsOptions as InsightsOptions_InsightsOptions } from './InsightsOptions';
|
|
3
4
|
import { MetricInstance as MetricInstance_MetricInstance } from './MetricInstance';
|
|
4
5
|
import { MetricDefinition as MetricDefinition_MetricDefinition } from './MetricDefinition';
|
|
5
6
|
import { RepresentationOptions as RepresentationOptions_RepresentationOptions } from './RepresentationOptions';
|
|
6
7
|
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';
|
|
7
|
-
export declare const VERSION = "
|
|
8
|
+
export declare const VERSION = "fabb0211ec0f98955089dfac31fe7c0c";
|
|
8
9
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
9
10
|
export declare const RepresentationType: string;
|
|
10
11
|
export declare function normalize(input: InputMetric, existing: InputMetricNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): InputMetricNormalized;
|
|
@@ -20,6 +21,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
20
21
|
*/
|
|
21
22
|
export interface InputMetricNormalized {
|
|
22
23
|
extensionOptions: ExtensionOptions_ExtensionOptions;
|
|
24
|
+
goals?: GoalMetadata_GoalMetadata;
|
|
23
25
|
insightsOptions: InsightsOptions_InsightsOptions;
|
|
24
26
|
instance: MetricInstance_MetricInstance;
|
|
25
27
|
metric: MetricDefinition_MetricDefinition;
|
|
@@ -33,6 +35,7 @@ export interface InputMetricNormalized {
|
|
|
33
35
|
*/
|
|
34
36
|
export interface InputMetric {
|
|
35
37
|
extensionOptions: ExtensionOptions_ExtensionOptions;
|
|
38
|
+
goals?: GoalMetadata_GoalMetadata;
|
|
36
39
|
insightsOptions: InsightsOptions_InsightsOptions;
|
|
37
40
|
instance: MetricInstance_MetricInstance;
|
|
38
41
|
metric: MetricDefinition_MetricDefinition;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Filter as Filter_Filter } from './Filter';
|
|
2
2
|
import { RelativePeriod as RelativePeriod_RelativePeriod } from './RelativePeriod';
|
|
3
3
|
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 = "
|
|
4
|
+
export declare const VERSION = "4a016b66b546a8ae805a5271877fa734";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export declare function normalize(input: MeasurementPeriod, existing: MeasurementPeriodNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MeasurementPeriodNormalized;
|
|
@@ -18,6 +18,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
18
18
|
export interface MeasurementPeriodNormalized {
|
|
19
19
|
filter?: Filter_Filter;
|
|
20
20
|
relativePeriod?: RelativePeriod_RelativePeriod;
|
|
21
|
+
/** We do not yet have support for fiscal year */
|
|
22
|
+
semanticFilter?: unknown;
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
*
|
|
@@ -28,4 +30,5 @@ export interface MeasurementPeriodNormalized {
|
|
|
28
30
|
export interface MeasurementPeriod {
|
|
29
31
|
filter?: Filter_Filter;
|
|
30
32
|
relativePeriod?: RelativePeriod_RelativePeriod;
|
|
33
|
+
semanticFilter?: unknown;
|
|
31
34
|
}
|
|
@@ -21,6 +21,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
21
21
|
*/
|
|
22
22
|
export interface MetricDefinitionNormalized {
|
|
23
23
|
comparison: CompareConfig_CompareConfig;
|
|
24
|
+
/** DEPRECATED Please don't use this field. */
|
|
24
25
|
filters?: Array<Filter_Filter>;
|
|
25
26
|
measure: Measure_Measure;
|
|
26
27
|
runningTotal?: boolean;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Filter as Filter_Filter } from './Filter';
|
|
2
|
-
import { MeasurementPeriod as MeasurementPeriod_MeasurementPeriod } from './MeasurementPeriod';
|
|
3
2
|
import { FlattenFilter as FlattenFilter_FlattenFilter } from './FlattenFilter';
|
|
4
3
|
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';
|
|
5
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "0278f9efb04f0f3d2165d5c8f69125fb";
|
|
6
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
6
|
export declare const RepresentationType: string;
|
|
8
7
|
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;
|
|
@@ -17,9 +16,10 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
17
16
|
* (none)
|
|
18
17
|
*/
|
|
19
18
|
export interface MetricInstanceNormalized {
|
|
20
|
-
/**
|
|
19
|
+
/** DEPRECATED Please don't use this field.
|
|
20
|
+
The 'filters' and 'semantic_filters' will be ANDed together */
|
|
21
21
|
filters?: Array<Filter_Filter>;
|
|
22
|
-
measurementPeriod
|
|
22
|
+
measurementPeriod?: unknown;
|
|
23
23
|
semanticFilter?: FlattenFilter_FlattenFilter;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
@@ -30,6 +30,6 @@ export interface MetricInstanceNormalized {
|
|
|
30
30
|
*/
|
|
31
31
|
export interface MetricInstance {
|
|
32
32
|
filters?: Array<Filter_Filter>;
|
|
33
|
-
measurementPeriod
|
|
33
|
+
measurementPeriod?: unknown;
|
|
34
34
|
semanticFilter?: FlattenFilter_FlattenFilter;
|
|
35
35
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { UnifiedFilter as UnifiedFilter_UnifiedFilter } from './UnifiedFilter';
|
|
1
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "4cfe0ca50285d8024e918cb1ede5847d";
|
|
3
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
5
|
export declare const RepresentationType: string;
|
|
5
6
|
export declare function normalize(input: MetricInstanceInput, existing: MetricInstanceInputNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MetricInstanceInputNormalized;
|
|
@@ -14,6 +15,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
15
|
* (none)
|
|
15
16
|
*/
|
|
16
17
|
export interface MetricInstanceInputNormalized {
|
|
18
|
+
measurementPeriod?: UnifiedFilter_UnifiedFilter;
|
|
17
19
|
metricInstanceId: string;
|
|
18
20
|
sdmId: string;
|
|
19
21
|
}
|
|
@@ -24,6 +26,7 @@ export interface MetricInstanceInputNormalized {
|
|
|
24
26
|
* (none)
|
|
25
27
|
*/
|
|
26
28
|
export interface MetricInstanceInput {
|
|
29
|
+
measurementPeriod?: UnifiedFilter_UnifiedFilter;
|
|
27
30
|
metricInstanceId: string;
|
|
28
31
|
sdmId: string;
|
|
29
32
|
}
|
|
@@ -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 = "9a4f0f6afd72539eaa9ecacc66570157";
|
|
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: RelativePeriod, existing: RelativePeriodNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RelativePeriodNormalized;
|
|
@@ -8,7 +8,7 @@ export declare function equals(existing: RelativePeriodNormalized, incoming: Rel
|
|
|
8
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
9
|
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: RelativePeriod, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* The old insights time filter
|
|
12
12
|
*
|
|
13
13
|
* Keys:
|
|
14
14
|
* (none)
|
|
@@ -18,7 +18,7 @@ export interface RelativePeriodNormalized {
|
|
|
18
18
|
range?: string;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* The old insights time filter
|
|
22
22
|
*
|
|
23
23
|
* Keys:
|
|
24
24
|
* (none)
|
|
@@ -17,7 +17,7 @@ export interface StatusNormalized {
|
|
|
17
17
|
/** Defines how the metric is tracking */
|
|
18
18
|
qualifier?: string;
|
|
19
19
|
/** Represents a sentiment towards metric status.
|
|
20
|
-
|
|
20
|
+
Status sentiment is determined based on metric sentiment (e.g. up is good) and status qualifier */
|
|
21
21
|
sentiment?: string;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
@@ -0,0 +1,33 @@
|
|
|
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 = "7948f62379bf327a3cc190504223aecc";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: UnifiedFilter, existing: UnifiedFilterNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UnifiedFilterNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: UnifiedFilterNormalized, incoming: UnifiedFilterNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: UnifiedFilter, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Message representing the Unified Filter.
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface UnifiedFilterNormalized {
|
|
17
|
+
/** tableName.ColumnName or calcFieldName */
|
|
18
|
+
fieldName?: string;
|
|
19
|
+
operator?: string;
|
|
20
|
+
/** An array of values. All values must be of the same type. We support strings, numbers, and booleans. */
|
|
21
|
+
values?: Array<unknown>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Message representing the Unified Filter.
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* (none)
|
|
28
|
+
*/
|
|
29
|
+
export interface UnifiedFilter {
|
|
30
|
+
fieldName?: string;
|
|
31
|
+
operator?: string;
|
|
32
|
+
values?: Array<unknown>;
|
|
33
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-sfap-analytics-insights",
|
|
3
|
-
"version": "1.332.0-
|
|
3
|
+
"version": "1.332.0-dev20",
|
|
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.332.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.332.0-dev20"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.332.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.332.0-dev20"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|