@salesforce/lds-adapters-industries-einstein-aiaccelerator 1.308.0-dev4 → 1.308.0-dev5

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,23 @@
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 { WrappedList as types_WrappedList_WrappedList } from '../types/WrappedList';
4
+ import { ResourceRequestConfig as resources_postConnectAiacceleratorV2Predictions_ResourceRequestConfig } from '../resources/postConnectAiacceleratorV2Predictions';
5
+ import { PredictionResponseRepresentation as types_PredictionResponseRepresentation_PredictionResponseRepresentation } from '../types/PredictionResponseRepresentation';
6
+ export declare const adapterName = "getPredictions";
7
+ export declare const getPredictions_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
8
+ export declare const getPredictions_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
9
+ export interface GetPredictionsConfig {
10
+ maxInsights?: number;
11
+ predictionModel: string;
12
+ predictionPlatform?: string;
13
+ records?: types_WrappedList_WrappedList | null;
14
+ scoreFilterCriteria?: string;
15
+ scoringThreshold?: number;
16
+ sortingOrder?: string;
17
+ usecaseName: string;
18
+ }
19
+ export declare const createResourceParams: (config: GetPredictionsConfig) => resources_postConnectAiacceleratorV2Predictions_ResourceRequestConfig;
20
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetPredictionsConfig>): adapter$45$utils_Untrusted<GetPredictionsConfig>;
21
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetPredictionsConfig | null;
22
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetPredictionsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_PredictionResponseRepresentation_PredictionResponseRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_PredictionResponseRepresentation_PredictionResponseRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_PredictionResponseRepresentation_PredictionResponseRepresentation, any>>;
23
+ export declare const getPredictionsAdapterFactory: $64$luvio_engine_AdapterFactory<GetPredictionsConfig, types_PredictionResponseRepresentation_PredictionResponseRepresentation>;
@@ -1,2 +1,3 @@
1
1
  export { predictionsAdapterFactory } from '../adapters/predictions';
2
2
  export { fetchRecommendationsAdapterFactory } from '../adapters/fetchRecommendations';
3
+ export { getPredictionsAdapterFactory } from '../adapters/getPredictions';
@@ -1,3 +1,4 @@
1
1
  declare let fetchRecommendations: any;
2
+ declare let getPredictions: any;
2
3
  declare let predictions: any;
3
- export { fetchRecommendations, predictions };
4
+ export { fetchRecommendations, getPredictions, predictions };
@@ -0,0 +1,20 @@
1
+ import { WrappedList as types_WrappedList_WrappedList } from '../types/WrappedList';
2
+ 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';
3
+ import { PredictionResponseRepresentation as types_PredictionResponseRepresentation_PredictionResponseRepresentation } from '../types/PredictionResponseRepresentation';
4
+ export interface ResourceRequestConfig {
5
+ body: {
6
+ maxInsights?: number;
7
+ predictionModel: string;
8
+ predictionPlatform?: string;
9
+ records?: types_WrappedList_WrappedList | null;
10
+ scoreFilterCriteria?: string;
11
+ scoringThreshold?: number;
12
+ sortingOrder?: string;
13
+ usecaseName: string;
14
+ };
15
+ }
16
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
17
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_PredictionResponseRepresentation_PredictionResponseRepresentation): void;
18
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_PredictionResponseRepresentation_PredictionResponseRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_PredictionResponseRepresentation_PredictionResponseRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_PredictionResponseRepresentation_PredictionResponseRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_PredictionResponseRepresentation_PredictionResponseRepresentation, any>;
19
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
20
+ export default createResourceRequest;
@@ -0,0 +1,29 @@
1
+ import { NullableCustomAttributesMap as NullableCustomAttributesMap_NullableCustomAttributesMap } from './NullableCustomAttributesMap';
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 = "bfcb89e96ae97268ce284c0ed73a0ef1";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: CustomAttributesMap, existing: CustomAttributesMapNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CustomAttributesMapNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: CustomAttributesMapNormalized, incoming: CustomAttributesMapNormalized): 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: CustomAttributesMap, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * CustomAttributesMap wrapper object for use in PredictionInputRepresentation.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface CustomAttributesMapNormalized {
18
+ /** customAttributes */
19
+ customAttributes?: NullableCustomAttributesMap_NullableCustomAttributesMap | null;
20
+ }
21
+ /**
22
+ * CustomAttributesMap wrapper object for use in PredictionInputRepresentation.
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface CustomAttributesMap {
28
+ customAttributes?: NullableCustomAttributesMap_NullableCustomAttributesMap | null;
29
+ }
@@ -0,0 +1,31 @@
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 = "5e234ed626df7e532e8f3c1a02bd3061";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: FieldCount, existing: FieldCountNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FieldCountNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: FieldCountNormalized, incoming: FieldCountNormalized): 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: FieldCount, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * .
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface FieldCountNormalized {
17
+ /** . */
18
+ count?: number;
19
+ /** . */
20
+ fieldValue?: string;
21
+ }
22
+ /**
23
+ * .
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface FieldCount {
29
+ count?: number;
30
+ fieldValue?: string;
31
+ }
@@ -0,0 +1,27 @@
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 = "516d8713643bedd96108b2e77fd64906";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: NullableCustomAttributesMap, existing: NullableCustomAttributesMapNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): NullableCustomAttributesMapNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: NullableCustomAttributesMapNormalized, incoming: NullableCustomAttributesMapNormalized): 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: NullableCustomAttributesMap, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Wrapper for Nullable Map Object.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface NullableCustomAttributesMapNormalized {
17
+ [key: string]: string | null;
18
+ }
19
+ /**
20
+ * Wrapper for Nullable Map Object.
21
+ *
22
+ * Keys:
23
+ * (none)
24
+ */
25
+ export interface NullableCustomAttributesMap {
26
+ [key: string]: string | null;
27
+ }
@@ -0,0 +1,39 @@
1
+ import { CustomAttributesMap as CustomAttributesMap_CustomAttributesMap } from './CustomAttributesMap';
2
+ import { Predictor as Predictor_Predictor } from './Predictor';
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 = "33738bf219bbb2f4cd2ccdc51cd7cb13";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: PredictionOutput, existing: PredictionOutputNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PredictionOutputNormalized;
8
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
9
+ export declare function equals(existing: PredictionOutputNormalized, incoming: PredictionOutputNormalized): boolean;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: PredictionOutput, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
+ /**
13
+ * Predicted object representation for prediction.
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface PredictionOutputNormalized {
19
+ /** . */
20
+ customAttributes?: CustomAttributesMap_CustomAttributesMap | null;
21
+ /** . */
22
+ customPredictionLabel?: string;
23
+ /** . */
24
+ predictionScore?: number;
25
+ /** . */
26
+ topPredictors?: Array<Predictor_Predictor>;
27
+ }
28
+ /**
29
+ * Predicted object representation for prediction.
30
+ *
31
+ * Keys:
32
+ * (none)
33
+ */
34
+ export interface PredictionOutput {
35
+ customAttributes?: CustomAttributesMap_CustomAttributesMap | null;
36
+ customPredictionLabel?: string;
37
+ predictionScore?: number;
38
+ topPredictors?: Array<Predictor_Predictor>;
39
+ }
@@ -0,0 +1,42 @@
1
+ import { Error as Error_Error } from './Error';
2
+ import { PredictionOutput as PredictionOutput_PredictionOutput } from './PredictionOutput';
3
+ import { PredictionWarning as PredictionWarning_PredictionWarning } from './PredictionWarning';
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';
5
+ export declare const VERSION = "fe0822978f2a5f907536c414e65532a7";
6
+ export declare function validate(obj: any, path?: string): TypeError | null;
7
+ export declare const RepresentationType: string;
8
+ export declare function normalize(input: PredictionOutputObject, existing: PredictionOutputObjectNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PredictionOutputObjectNormalized;
9
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
10
+ export declare function equals(existing: PredictionOutputObjectNormalized, incoming: PredictionOutputObjectNormalized): boolean;
11
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
12
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: PredictionOutputObject, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
13
+ /**
14
+ * Prediction for a given record
15
+ *
16
+ * Keys:
17
+ * (none)
18
+ */
19
+ export interface PredictionOutputObjectNormalized {
20
+ /** . */
21
+ errors?: Array<Error_Error>;
22
+ /** . */
23
+ isSuccess: boolean | null;
24
+ /** . */
25
+ predictionOutput?: Array<PredictionOutput_PredictionOutput>;
26
+ predictionWarning?: PredictionWarning_PredictionWarning;
27
+ /** . */
28
+ recordId: string;
29
+ }
30
+ /**
31
+ * Prediction for a given record
32
+ *
33
+ * Keys:
34
+ * (none)
35
+ */
36
+ export interface PredictionOutputObject {
37
+ errors?: Array<Error_Error>;
38
+ isSuccess: boolean | null;
39
+ predictionOutput?: Array<PredictionOutput_PredictionOutput>;
40
+ predictionWarning?: PredictionWarning_PredictionWarning;
41
+ recordId: string;
42
+ }
@@ -0,0 +1,49 @@
1
+ import { WrappedList as WrappedList_WrappedList } from './WrappedList';
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 = "1b8383a98d9570aa8a5edf209b830e2c";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: PredictionRequestRepresentation, existing: PredictionRequestRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PredictionRequestRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: PredictionRequestRepresentationNormalized, incoming: PredictionRequestRepresentationNormalized): 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: PredictionRequestRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Request for which predictions are fetched.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface PredictionRequestRepresentationNormalized {
18
+ /** . */
19
+ maxInsights?: number;
20
+ /** . */
21
+ predictionModel: string;
22
+ /** . */
23
+ predictionPlatform?: string;
24
+ records?: WrappedList_WrappedList | null;
25
+ /** . */
26
+ scoreFilterCriteria?: string;
27
+ /** . */
28
+ scoringThreshold?: number;
29
+ /** . */
30
+ sortingOrder?: string;
31
+ /** . */
32
+ usecaseName: string;
33
+ }
34
+ /**
35
+ * Request for which predictions are fetched.
36
+ *
37
+ * Keys:
38
+ * (none)
39
+ */
40
+ export interface PredictionRequestRepresentation {
41
+ maxInsights?: number;
42
+ predictionModel: string;
43
+ predictionPlatform?: string;
44
+ records?: WrappedList_WrappedList | null;
45
+ scoreFilterCriteria?: string;
46
+ scoringThreshold?: number;
47
+ sortingOrder?: string;
48
+ usecaseName: string;
49
+ }
@@ -0,0 +1,29 @@
1
+ import { PredictionRequestRepresentation as PredictionRequestRepresentation_PredictionRequestRepresentation } from './PredictionRequestRepresentation';
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 = "783d9d2da8565676d41b436a77777f51";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: PredictionRequestWrapperRepresentation, existing: PredictionRequestWrapperRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PredictionRequestWrapperRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: PredictionRequestWrapperRepresentationNormalized, incoming: PredictionRequestWrapperRepresentationNormalized): 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: PredictionRequestWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Wrapper for PredictionRequestRepresentation.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface PredictionRequestWrapperRepresentationNormalized {
18
+ /** oas body name. */
19
+ predictionRequest: PredictionRequestRepresentation_PredictionRequestRepresentation;
20
+ }
21
+ /**
22
+ * Wrapper for PredictionRequestRepresentation.
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface PredictionRequestWrapperRepresentation {
28
+ predictionRequest: PredictionRequestRepresentation_PredictionRequestRepresentation;
29
+ }
@@ -0,0 +1,54 @@
1
+ import { PredictionOutputObject as PredictionOutputObject_PredictionOutputObject } from './PredictionOutputObject';
2
+ import { Status as Status_Status } from './Status';
3
+ 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, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
4
+ export declare const TTL = 1000;
5
+ export declare const VERSION = "c1431b6652fb0e211a1e2149b42f10f4";
6
+ export declare function validate(obj: any, path?: string): TypeError | null;
7
+ export declare const RepresentationType: string;
8
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
9
+ status: string;
10
+ }
11
+ export type PredictionResponseRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
12
+ export type PartialPredictionResponseRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
13
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
14
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): PredictionResponseRepresentationNormalizedKeyMetadata;
15
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: PredictionResponseRepresentation): string;
16
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: PredictionResponseRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
17
+ export declare function normalize(input: PredictionResponseRepresentation, existing: PredictionResponseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PredictionResponseRepresentationNormalized;
18
+ export declare const select: () => $64$luvio_engine_BaseFragment;
19
+ export declare function equals(existing: PredictionResponseRepresentationNormalized, incoming: PredictionResponseRepresentationNormalized): boolean;
20
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
21
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: PredictionResponseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
22
+ /**
23
+ * Predictions for a given request
24
+ *
25
+ * Keys:
26
+ * status (string): status.message
27
+ */
28
+ export interface PredictionResponseRepresentationNormalized {
29
+ /** . */
30
+ predictionModel?: string;
31
+ /** . */
32
+ predictionOutputObjects?: Array<PredictionOutputObject_PredictionOutputObject>;
33
+ /** . */
34
+ predictionPlatform?: string;
35
+ /** . */
36
+ predictionType?: string;
37
+ status: Status_Status;
38
+ /** . */
39
+ usecaseName: string;
40
+ }
41
+ /**
42
+ * Predictions for a given request
43
+ *
44
+ * Keys:
45
+ * status (string): status.message
46
+ */
47
+ export interface PredictionResponseRepresentation {
48
+ predictionModel?: string;
49
+ predictionOutputObjects?: Array<PredictionOutputObject_PredictionOutputObject>;
50
+ predictionPlatform?: string;
51
+ predictionType?: string;
52
+ status: Status_Status;
53
+ usecaseName: string;
54
+ }
@@ -0,0 +1,32 @@
1
+ import { FieldCount as FieldCount_FieldCount } from './FieldCount';
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 = "b9f3fae69bd67ce6ff2f1eaa7a70e007";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: PredictionWarning, existing: PredictionWarningNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PredictionWarningNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: PredictionWarningNormalized, incoming: PredictionWarningNormalized): 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: PredictionWarning, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Warning for a prediction of a particular record
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface PredictionWarningNormalized {
18
+ /** . */
19
+ missingFieldNames?: Array<string>;
20
+ /** . */
21
+ outOfBoundFields?: Array<FieldCount_FieldCount>;
22
+ }
23
+ /**
24
+ * Warning for a prediction of a particular record
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface PredictionWarning {
30
+ missingFieldNames?: Array<string>;
31
+ outOfBoundFields?: Array<FieldCount_FieldCount>;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { PredictorField as PredictorField_PredictorField } from './PredictorField';
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 = "2656ae02fe5cb7f7c6fcecc89f4f8a31";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: Predictor, existing: PredictorNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PredictorNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: PredictorNormalized, incoming: PredictorNormalized): 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: Predictor, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Predicted object representation for prediction
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface PredictorNormalized {
18
+ /** . */
19
+ contributionValue?: number;
20
+ /** . */
21
+ predictorFields?: Array<PredictorField_PredictorField>;
22
+ }
23
+ /**
24
+ * Predicted object representation for prediction
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface Predictor {
30
+ contributionValue?: number;
31
+ predictorFields?: Array<PredictorField_PredictorField>;
32
+ }
@@ -0,0 +1,40 @@
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 = "81417d96816b9884fe834dbba726a68e";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: PredictorField, existing: PredictorFieldNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PredictorFieldNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: PredictorFieldNormalized, incoming: PredictorFieldNormalized): 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: PredictorField, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Field representation for predictor.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface PredictorFieldNormalized {
17
+ /** . */
18
+ customText?: string;
19
+ /** . */
20
+ label?: string;
21
+ /** . */
22
+ name?: string;
23
+ /** . */
24
+ prescribedValue?: string;
25
+ /** . */
26
+ value?: string;
27
+ }
28
+ /**
29
+ * Field representation for predictor.
30
+ *
31
+ * Keys:
32
+ * (none)
33
+ */
34
+ export interface PredictorField {
35
+ customText?: string;
36
+ label?: string;
37
+ name?: string;
38
+ prescribedValue?: string;
39
+ value?: string;
40
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-einstein-aiaccelerator",
3
- "version": "1.308.0-dev4",
3
+ "version": "1.308.0-dev5",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "AI Accelerator Connect API to make predictions",
6
6
  "main": "dist/es/es2018/industries-einstein-aiaccelerator.js",
@@ -35,14 +35,15 @@
35
35
  "release:core": "../../scripts/release/core.js --adapter=lds-adapters-industries-einstein-aiaccelerator",
36
36
  "release:corejar": "yarn build && packages/core-build/scripts/core.js --adapter=lds-adapters-industries-einstein-aiaccelerator",
37
37
  "start": "nx build:karma && karma start",
38
- "test": "nx build:karma && karma start --single-run"
38
+ "test": "nx build:karma && karma start --single-run",
39
+ "test:unit": "jest"
39
40
  },
40
41
  "dependencies": {
41
- "@salesforce/lds-bindings": "^1.308.0-dev4"
42
+ "@salesforce/lds-bindings": "^1.308.0-dev5"
42
43
  },
43
44
  "devDependencies": {
44
- "@salesforce/lds-compiler-plugins": "^1.308.0-dev4",
45
- "@salesforce/lds-karma": "^1.308.0-dev4"
45
+ "@salesforce/lds-compiler-plugins": "^1.308.0-dev5",
46
+ "@salesforce/lds-karma": "^1.308.0-dev5"
46
47
  },
47
48
  "nx": {
48
49
  "targets": {