@salesforce/lds-adapters-platform-cdp-machine-learning 1.310.0 → 1.311.1
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/platform-cdp-machine-learning.js +1066 -614
- package/dist/es/es2018/types/src/generated/adapters/createCdpMlPredictResult.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postSsotMachineLearningPredict.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlAggregatePredictConditionRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlAggregatePredictionRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictRawDataInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictResultRepresentation.d.ts +54 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictSettingsInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictionBaseRepresentation.d.ts +29 -0
- package/package.json +3 -3
- package/sfdc/index.js +601 -146
- package/src/raml/api.raml +135 -1
- package/src/raml/luvio.raml +21 -1
|
@@ -0,0 +1,19 @@
|
|
|
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 { CdpAssetReferenceInputRepresentation as types_CdpAssetReferenceInputRepresentation_CdpAssetReferenceInputRepresentation } from '../types/CdpAssetReferenceInputRepresentation';
|
|
4
|
+
import { ResourceRequestConfig as resources_postSsotMachineLearningPredict_ResourceRequestConfig } from '../resources/postSsotMachineLearningPredict';
|
|
5
|
+
import { CdpMlPredictResultRepresentation as types_CdpMlPredictResultRepresentation_CdpMlPredictResultRepresentation } from '../types/CdpMlPredictResultRepresentation';
|
|
6
|
+
export declare const adapterName = "createCdpMlPredictResult";
|
|
7
|
+
export declare const createCdpMlPredictResult_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
|
+
export declare const createCdpMlPredictResult_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
|
+
export interface CreateCdpMlPredictResultConfig {
|
|
10
|
+
type: string;
|
|
11
|
+
model: types_CdpAssetReferenceInputRepresentation_CdpAssetReferenceInputRepresentation;
|
|
12
|
+
fieldNames: Array<string>;
|
|
13
|
+
rows: Array<Array<string>>;
|
|
14
|
+
}
|
|
15
|
+
export declare const createResourceParams: (config: CreateCdpMlPredictResultConfig) => resources_postSsotMachineLearningPredict_ResourceRequestConfig;
|
|
16
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateCdpMlPredictResultConfig>): adapter$45$utils_Untrusted<CreateCdpMlPredictResultConfig>;
|
|
17
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateCdpMlPredictResultConfig | null;
|
|
18
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateCdpMlPredictResultConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CdpMlPredictResultRepresentation_CdpMlPredictResultRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CdpMlPredictResultRepresentation_CdpMlPredictResultRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CdpMlPredictResultRepresentation_CdpMlPredictResultRepresentation, any>>;
|
|
19
|
+
export declare const createCdpMlPredictResultAdapterFactory: $64$luvio_engine_AdapterFactory<CreateCdpMlPredictResultConfig, types_CdpMlPredictResultRepresentation_CdpMlPredictResultRepresentation>;
|
|
@@ -10,3 +10,4 @@ export { getCdpMlConfiguredModelCollectionAdapterFactory } from '../adapters/get
|
|
|
10
10
|
export { createCdpMlConfiguredModelAdapterFactory } from '../adapters/createCdpMlConfiguredModel';
|
|
11
11
|
export { getCdpMlConfiguredModelAdapterFactory } from '../adapters/getCdpMlConfiguredModel';
|
|
12
12
|
export { updateCdpMlConfiguredModelAdapterFactory } from '../adapters/updateCdpMlConfiguredModel';
|
|
13
|
+
export { createCdpMlPredictResultAdapterFactory } from '../adapters/createCdpMlPredictResult';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare let createCdpMlConfiguredModel: any;
|
|
2
|
+
declare let createCdpMlPredictResult: any;
|
|
2
3
|
declare let createMlConfiguredModel: any;
|
|
3
4
|
declare let getCdpMlConfiguredModel: any;
|
|
4
5
|
declare let getCdpMlConfiguredModelCollection: any;
|
|
@@ -20,4 +21,4 @@ declare let getCdpMlWorkspace_imperative: any;
|
|
|
20
21
|
declare let getCdpMlWorkspaceCollection_imperative: any;
|
|
21
22
|
declare let getMlConfiguredModel_imperative: any;
|
|
22
23
|
declare let getMlConfiguredModelCollection_imperative: any;
|
|
23
|
-
export { createCdpMlConfiguredModel, createMlConfiguredModel, getCdpMlConfiguredModel, getCdpMlConfiguredModelCollection, getCdpMlModelArtifact, getCdpMlModelArtifactCollection, getCdpMlWorkspace, getCdpMlWorkspaceCollection, getCdpMlWorkspaceNotifyChange, getMlConfiguredModel, getMlConfiguredModelCollection, getMlConfiguredModelNotifyChange, updateCdpMlConfiguredModel, updateMlConfiguredModel, getCdpMlConfiguredModel_imperative, getCdpMlConfiguredModelCollection_imperative, getCdpMlModelArtifact_imperative, getCdpMlModelArtifactCollection_imperative, getCdpMlWorkspace_imperative, getCdpMlWorkspaceCollection_imperative, getMlConfiguredModel_imperative, getMlConfiguredModelCollection_imperative, };
|
|
24
|
+
export { createCdpMlConfiguredModel, createCdpMlPredictResult, createMlConfiguredModel, getCdpMlConfiguredModel, getCdpMlConfiguredModelCollection, getCdpMlModelArtifact, getCdpMlModelArtifactCollection, getCdpMlWorkspace, getCdpMlWorkspaceCollection, getCdpMlWorkspaceNotifyChange, getMlConfiguredModel, getMlConfiguredModelCollection, getMlConfiguredModelNotifyChange, updateCdpMlConfiguredModel, updateMlConfiguredModel, getCdpMlConfiguredModel_imperative, getCdpMlConfiguredModelCollection_imperative, getCdpMlModelArtifact_imperative, getCdpMlModelArtifactCollection_imperative, getCdpMlWorkspace_imperative, getCdpMlWorkspaceCollection_imperative, getMlConfiguredModel_imperative, getMlConfiguredModelCollection_imperative, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CdpAssetReferenceInputRepresentation as types_CdpAssetReferenceInputRepresentation_CdpAssetReferenceInputRepresentation } from '../types/CdpAssetReferenceInputRepresentation';
|
|
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 { CdpMlPredictResultRepresentation as types_CdpMlPredictResultRepresentation_CdpMlPredictResultRepresentation } from '../types/CdpMlPredictResultRepresentation';
|
|
4
|
+
export interface ResourceRequestConfig {
|
|
5
|
+
body: {
|
|
6
|
+
type: string;
|
|
7
|
+
model: types_CdpAssetReferenceInputRepresentation_CdpAssetReferenceInputRepresentation;
|
|
8
|
+
fieldNames: Array<string>;
|
|
9
|
+
rows: Array<Array<string>>;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
13
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_CdpMlPredictResultRepresentation_CdpMlPredictResultRepresentation): void;
|
|
14
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CdpMlPredictResultRepresentation_CdpMlPredictResultRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CdpMlPredictResultRepresentation_CdpMlPredictResultRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CdpMlPredictResultRepresentation_CdpMlPredictResultRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CdpMlPredictResultRepresentation_CdpMlPredictResultRepresentation, any>;
|
|
15
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
16
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/types/CdpMlAggregatePredictConditionRepresentation.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, 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 TTL = 1000;
|
|
3
|
+
export declare const VERSION = "67f0c0bc937dd50e4838678174096ebc";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: CdpMlAggregatePredictConditionRepresentation, existing: CdpMlAggregatePredictConditionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlAggregatePredictConditionRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
8
|
+
export declare function equals(existing: CdpMlAggregatePredictConditionRepresentationNormalized, incoming: CdpMlAggregatePredictConditionRepresentationNormalized): 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: CdpMlAggregatePredictConditionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Cdp Ml Aggregate Prediction Contribution
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface CdpMlAggregatePredictConditionRepresentationNormalized {
|
|
18
|
+
/** Count of rows included in the aggregate condition */
|
|
19
|
+
count?: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Cdp Ml Aggregate Prediction Contribution
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* (none)
|
|
26
|
+
*/
|
|
27
|
+
export interface CdpMlAggregatePredictConditionRepresentation {
|
|
28
|
+
count?: number;
|
|
29
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { CdpMlAggregatePredictConditionRepresentation as CdpMlAggregatePredictConditionRepresentation_CdpMlAggregatePredictConditionRepresentation } from './CdpMlAggregatePredictConditionRepresentation';
|
|
2
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
+
export declare const TTL = 1000;
|
|
4
|
+
export declare const VERSION = "c9ba9d58b5267123b17c4814caf78580";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: CdpMlAggregatePredictionRepresentation, existing: CdpMlAggregatePredictionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlAggregatePredictionRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
9
|
+
export declare function equals(existing: CdpMlAggregatePredictionRepresentationNormalized, incoming: CdpMlAggregatePredictionRepresentationNormalized): 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: CdpMlAggregatePredictionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Cdp Ml Prediction result representation
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface CdpMlAggregatePredictionRepresentationNormalized {
|
|
19
|
+
/** Top factors associated to this aggregate prediction */
|
|
20
|
+
factors?: Array<$64$luvio_engine_StoreLink>;
|
|
21
|
+
/** Prescriptions associated to this aggregate prediction */
|
|
22
|
+
prescriptions?: Array<$64$luvio_engine_StoreLink>;
|
|
23
|
+
/** Status of aggregate prediction */
|
|
24
|
+
status?: string | null;
|
|
25
|
+
/** Type of aggregate prediction */
|
|
26
|
+
type?: string | null;
|
|
27
|
+
/** Aggregate prediction value */
|
|
28
|
+
value?: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Cdp Ml Prediction result representation
|
|
32
|
+
*
|
|
33
|
+
* Keys:
|
|
34
|
+
* (none)
|
|
35
|
+
*/
|
|
36
|
+
export interface CdpMlAggregatePredictionRepresentation {
|
|
37
|
+
factors?: Array<CdpMlAggregatePredictConditionRepresentation_CdpMlAggregatePredictConditionRepresentation>;
|
|
38
|
+
prescriptions?: Array<CdpMlAggregatePredictConditionRepresentation_CdpMlAggregatePredictConditionRepresentation>;
|
|
39
|
+
status?: string | null;
|
|
40
|
+
type?: string | null;
|
|
41
|
+
value?: number;
|
|
42
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CdpAssetReferenceInputRepresentation as CdpAssetReferenceInputRepresentation_CdpAssetReferenceInputRepresentation } from './CdpAssetReferenceInputRepresentation';
|
|
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 = "63902acd83bb91162d0dfb6fff2ea7f7";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: CdpMlPredictRawDataInputRepresentation, existing: CdpMlPredictRawDataInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictRawDataInputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: CdpMlPredictRawDataInputRepresentationNormalized, incoming: CdpMlPredictRawDataInputRepresentationNormalized): 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: CdpMlPredictRawDataInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Raw Data Input Representation
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface CdpMlPredictRawDataInputRepresentationNormalized {
|
|
18
|
+
/** Field names */
|
|
19
|
+
fieldNames: Array<string>;
|
|
20
|
+
/** Model Reference */
|
|
21
|
+
model: CdpAssetReferenceInputRepresentation_CdpAssetReferenceInputRepresentation;
|
|
22
|
+
/** Rows of values */
|
|
23
|
+
rows: Array<Array<string>>;
|
|
24
|
+
/** prediction type enum */
|
|
25
|
+
type: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Raw Data Input Representation
|
|
29
|
+
*
|
|
30
|
+
* Keys:
|
|
31
|
+
* (none)
|
|
32
|
+
*/
|
|
33
|
+
export interface CdpMlPredictRawDataInputRepresentation {
|
|
34
|
+
fieldNames: Array<string>;
|
|
35
|
+
model: CdpAssetReferenceInputRepresentation_CdpAssetReferenceInputRepresentation;
|
|
36
|
+
rows: Array<Array<string>>;
|
|
37
|
+
type: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { CdpMlAggregatePredictionRepresentation as CdpMlAggregatePredictionRepresentation_CdpMlAggregatePredictionRepresentation } from './CdpMlAggregatePredictionRepresentation';
|
|
2
|
+
import { CdpAssetReferenceRepresentation as CdpAssetReferenceRepresentation_CdpAssetReferenceRepresentation } from './CdpAssetReferenceRepresentation';
|
|
3
|
+
import { CdpMlPredictionBaseRepresentation as CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation } from './CdpMlPredictionBaseRepresentation';
|
|
4
|
+
import { CdpMlPredictSettingsInputRepresentation as CdpMlPredictSettingsInputRepresentation_CdpMlPredictSettingsInputRepresentation } from './CdpMlPredictSettingsInputRepresentation';
|
|
5
|
+
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, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
6
|
+
export declare const TTL = 1000;
|
|
7
|
+
export declare const VERSION = "53acf0a695382123e58156e703232cb5";
|
|
8
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
9
|
+
export declare const RepresentationType: string;
|
|
10
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
11
|
+
predictionType: string;
|
|
12
|
+
}
|
|
13
|
+
export type CdpMlPredictResultRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export type PartialCdpMlPredictResultRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
16
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): CdpMlPredictResultRepresentationNormalizedKeyMetadata;
|
|
17
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: CdpMlPredictResultRepresentation): string;
|
|
18
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: CdpMlPredictResultRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
19
|
+
export declare function normalize(input: CdpMlPredictResultRepresentation, existing: CdpMlPredictResultRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictResultRepresentationNormalized;
|
|
20
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
21
|
+
export declare function equals(existing: CdpMlPredictResultRepresentationNormalized, incoming: CdpMlPredictResultRepresentationNormalized): boolean;
|
|
22
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
23
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlPredictResultRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
24
|
+
/**
|
|
25
|
+
* Cdp Ml Prediction result representation
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* predictionType (string): predictionType
|
|
29
|
+
*/
|
|
30
|
+
export interface CdpMlPredictResultRepresentationNormalized {
|
|
31
|
+
/** Aggregate Result List */
|
|
32
|
+
aggregatePredictions?: Array<$64$luvio_engine_StoreLink>;
|
|
33
|
+
/** Model asset reference used as part of the prediction request */
|
|
34
|
+
model: CdpAssetReferenceRepresentation_CdpAssetReferenceRepresentation;
|
|
35
|
+
/** Prediction Type */
|
|
36
|
+
predictionType: string;
|
|
37
|
+
/** A list of prediction results */
|
|
38
|
+
predictions?: Array<$64$luvio_engine_StoreLink>;
|
|
39
|
+
/** Settings used for the prediction */
|
|
40
|
+
settings?: $64$luvio_engine_StoreLink;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Cdp Ml Prediction result representation
|
|
44
|
+
*
|
|
45
|
+
* Keys:
|
|
46
|
+
* predictionType (string): predictionType
|
|
47
|
+
*/
|
|
48
|
+
export interface CdpMlPredictResultRepresentation {
|
|
49
|
+
aggregatePredictions?: Array<CdpMlAggregatePredictionRepresentation_CdpMlAggregatePredictionRepresentation>;
|
|
50
|
+
model: CdpAssetReferenceRepresentation_CdpAssetReferenceRepresentation;
|
|
51
|
+
predictionType: string;
|
|
52
|
+
predictions?: Array<CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation>;
|
|
53
|
+
settings?: CdpMlPredictSettingsInputRepresentation_CdpMlPredictSettingsInputRepresentation;
|
|
54
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, 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 TTL = 1000;
|
|
3
|
+
export declare const VERSION = "256e44b9301b2e6d4c36c79f36814779";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: CdpMlPredictSettingsInputRepresentation, existing: CdpMlPredictSettingsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictSettingsInputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
8
|
+
export declare function equals(existing: CdpMlPredictSettingsInputRepresentationNormalized, incoming: CdpMlPredictSettingsInputRepresentationNormalized): 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: CdpMlPredictSettingsInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Predict Settings Representation
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface CdpMlPredictSettingsInputRepresentationNormalized {
|
|
18
|
+
/** List of aggregate functions */
|
|
19
|
+
aggregateFunctions?: Array<string | null>;
|
|
20
|
+
/** Maximum recommendation count. Default value is -1 (unlimited) and the allowed range is [-1, 200] */
|
|
21
|
+
maxPrescriptions?: number;
|
|
22
|
+
/** Maximum top factor count. Default value is 0 and the allowed range is [0, 3] */
|
|
23
|
+
maxTopFactors?: number;
|
|
24
|
+
/** Impact Percentage of Prescriptions, Default is set at 0 */
|
|
25
|
+
prescriptionImpactPercentage?: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Predict Settings Representation
|
|
29
|
+
*
|
|
30
|
+
* Keys:
|
|
31
|
+
* (none)
|
|
32
|
+
*/
|
|
33
|
+
export interface CdpMlPredictSettingsInputRepresentation {
|
|
34
|
+
aggregateFunctions?: Array<string | null>;
|
|
35
|
+
maxPrescriptions?: number;
|
|
36
|
+
maxTopFactors?: number;
|
|
37
|
+
prescriptionImpactPercentage?: number;
|
|
38
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, 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 TTL = 1000;
|
|
3
|
+
export declare const VERSION = "c99d4c0679fe8e8779d08458cac72034";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: CdpMlPredictionBaseRepresentation, existing: CdpMlPredictionBaseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictionBaseRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
8
|
+
export declare function equals(existing: CdpMlPredictionBaseRepresentationNormalized, incoming: CdpMlPredictionBaseRepresentationNormalized): 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: CdpMlPredictionBaseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Base representation for a prediction result
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface CdpMlPredictionBaseRepresentationNormalized {
|
|
18
|
+
/** prediction status */
|
|
19
|
+
status?: string | null;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Base representation for a prediction result
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* (none)
|
|
26
|
+
*/
|
|
27
|
+
export interface CdpMlPredictionBaseRepresentation {
|
|
28
|
+
status?: string | null;
|
|
29
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-cdp-machine-learning",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.311.1",
|
|
4
4
|
"description": "machine learning for data cloud",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/platform-cdp-machine-learning.js",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"test:unit:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@salesforce/lds-bindings": "^1.
|
|
44
|
+
"@salesforce/lds-bindings": "^1.311.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
47
|
+
"@salesforce/lds-compiler-plugins": "^1.311.1"
|
|
48
48
|
},
|
|
49
49
|
"nx": {
|
|
50
50
|
"targets": {
|