@salesforce/lds-adapters-sfap-analytics-insights 1.309.0-dev16 → 1.309.0-dev18

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.
@@ -0,0 +1,20 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { InsightBundleInput as types_InsightBundleInput_InsightBundleInput } from '../types/InsightBundleInput';
4
+ import { InsightBundleOptions as types_InsightBundleOptions_InsightBundleOptions } from '../types/InsightBundleOptions';
5
+ import { ResourceRequestConfig as resources_postAnalyticsInsightsV1BasicGenerateBundle_ResourceRequestConfig } from '../resources/postAnalyticsInsightsV1BasicGenerateBundle';
6
+ import { GenerateInsightBundleResponse as types_GenerateInsightBundleResponse_GenerateInsightBundleResponse } from '../types/GenerateInsightBundleResponse';
7
+ export declare const adapterName = "generateInsightsBasic";
8
+ export declare const generateInsightsBasic_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
9
+ export declare const generateInsightsBasic_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
10
+ export interface GenerateInsightsBasicConfig {
11
+ type?: string;
12
+ version?: number;
13
+ input?: types_InsightBundleInput_InsightBundleInput;
14
+ options?: types_InsightBundleOptions_InsightBundleOptions;
15
+ }
16
+ export declare const createResourceParams: (config: GenerateInsightsBasicConfig) => resources_postAnalyticsInsightsV1BasicGenerateBundle_ResourceRequestConfig;
17
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GenerateInsightsBasicConfig>): adapter$45$utils_Untrusted<GenerateInsightsBasicConfig>;
18
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GenerateInsightsBasicConfig | null;
19
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GenerateInsightsBasicConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_GenerateInsightBundleResponse_GenerateInsightBundleResponse, {}> | import("@luvio/engine").StaleSnapshot<types_GenerateInsightBundleResponse_GenerateInsightBundleResponse, {}> | import("@luvio/engine").PendingSnapshot<types_GenerateInsightBundleResponse_GenerateInsightBundleResponse, any>>;
20
+ export declare const generateInsightsBasicAdapterFactory: $64$luvio_engine_AdapterFactory<GenerateInsightsBasicConfig, types_GenerateInsightBundleResponse_GenerateInsightBundleResponse>;
@@ -1,4 +1,5 @@
1
1
  export { createInsightsBatchAdapterFactory } from '../adapters/createInsightsBatch';
2
2
  export { getMetricFilterValuesAdapterFactory } from '../adapters/getMetricFilterValues';
3
3
  export { generateInsightsAdapterFactory } from '../adapters/generateInsights';
4
+ export { generateInsightsBasicAdapterFactory } from '../adapters/generateInsightsBasic';
4
5
  export { getInsightsBatchAdapterFactory } from '../adapters/getInsightsBatch';
@@ -1,7 +1,8 @@
1
1
  declare let createInsightsBatch: any;
2
2
  declare let generateInsights: any;
3
+ declare let generateInsightsBasic: any;
3
4
  declare let getInsightsBatch: any;
4
5
  declare let getInsightsBatchNotifyChange: any;
5
6
  declare let getMetricFilterValues: any;
6
7
  declare let getInsightsBatch_imperative: any;
7
- export { createInsightsBatch, generateInsights, getInsightsBatch, getInsightsBatchNotifyChange, getMetricFilterValues, getInsightsBatch_imperative, };
8
+ export { createInsightsBatch, generateInsights, generateInsightsBasic, getInsightsBatch, getInsightsBatchNotifyChange, getMetricFilterValues, getInsightsBatch_imperative, };
@@ -0,0 +1,17 @@
1
+ import { InsightBundleInput as types_InsightBundleInput_InsightBundleInput } from '../types/InsightBundleInput';
2
+ import { InsightBundleOptions as types_InsightBundleOptions_InsightBundleOptions } from '../types/InsightBundleOptions';
3
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
4
+ import { GenerateInsightBundleResponse as types_GenerateInsightBundleResponse_GenerateInsightBundleResponse } from '../types/GenerateInsightBundleResponse';
5
+ export interface ResourceRequestConfig {
6
+ body: {
7
+ type?: string;
8
+ version?: number;
9
+ input?: types_InsightBundleInput_InsightBundleInput;
10
+ options?: types_InsightBundleOptions_InsightBundleOptions;
11
+ };
12
+ }
13
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
14
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_GenerateInsightBundleResponse_GenerateInsightBundleResponse): void;
15
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_GenerateInsightBundleResponse_GenerateInsightBundleResponse>): $64$luvio_engine_FulfilledSnapshot<types_GenerateInsightBundleResponse_GenerateInsightBundleResponse, {}> | $64$luvio_engine_StaleSnapshot<types_GenerateInsightBundleResponse_GenerateInsightBundleResponse, {}> | $64$luvio_engine_PendingSnapshot<types_GenerateInsightBundleResponse_GenerateInsightBundleResponse, any>;
16
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
17
+ export default createResourceRequest;
@@ -1,6 +1,7 @@
1
1
  import { SummaryResponse as SummaryResponse_SummaryResponse } from './SummaryResponse';
2
2
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
3
  import { GenerateInsightBundleResponse as GenerateInsightBundleResponse_GenerateInsightBundleResponse } from './GenerateInsightBundleResponse';
4
+ export declare const TTL = 5000;
4
5
  export declare const VERSION = "b3ecf416df1c88948a22534e1143e6d5";
5
6
  export declare function validate(obj: any, path?: string): TypeError | null;
6
7
  export declare const RepresentationType: string;
@@ -1,7 +1,7 @@
1
1
  import { Error as Error_Error } from './Error';
2
2
  import { Insight as Insight_Insight } from './Insight';
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 = "6707f0d0aa09112abbca1db5e32bb172";
4
+ export declare const VERSION = "09a140bdbc97294bdce2b9555910f209";
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: InsightResponse, existing: InsightResponseNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): InsightResponseNormalized;
@@ -18,7 +18,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
18
18
  export interface InsightResponseNormalized {
19
19
  error?: Error_Error;
20
20
  insightType?: string;
21
- result: Insight_Insight;
21
+ result?: Insight_Insight;
22
22
  }
23
23
  /**
24
24
  *
@@ -29,5 +29,5 @@ export interface InsightResponseNormalized {
29
29
  export interface InsightResponse {
30
30
  error?: Error_Error;
31
31
  insightType?: string;
32
- result: Insight_Insight;
32
+ result?: Insight_Insight;
33
33
  }
@@ -1,7 +1,7 @@
1
1
  import { Error as Error_Error } from './Error';
2
2
  import { Overview as Overview_Overview } from './Overview';
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 = "ac3296a9832f46fda66420bc753d8c61";
4
+ export declare const VERSION = "ff01bfcbb0b2877fe279be648aceb371";
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: OverviewResponse, existing: OverviewResponseNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): OverviewResponseNormalized;
@@ -17,7 +17,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
17
17
  */
18
18
  export interface OverviewResponseNormalized {
19
19
  error?: Error_Error;
20
- result: Overview_Overview;
20
+ result?: Overview_Overview;
21
21
  }
22
22
  /**
23
23
  *
@@ -27,5 +27,5 @@ export interface OverviewResponseNormalized {
27
27
  */
28
28
  export interface OverviewResponse {
29
29
  error?: Error_Error;
30
- result: Overview_Overview;
30
+ result?: Overview_Overview;
31
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-sfap-analytics-insights",
3
- "version": "1.309.0-dev16",
3
+ "version": "1.309.0-dev18",
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-dev16"
43
+ "@salesforce/lds-bindings": "^1.309.0-dev18"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.309.0-dev16"
46
+ "@salesforce/lds-compiler-plugins": "^1.309.0-dev18"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {