@salesforce/lds-adapters-industries-einstein-aiaccelerator 1.308.0 → 1.309.0-dev8
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/industries-einstein-aiaccelerator.js +202 -145
- package/dist/es/es2018/types/src/generated/adapters/getPredictions.d.ts +9 -2
- package/dist/es/es2018/types/src/generated/resources/postConnectAiacceleratorV2Predictions.d.ts +9 -2
- package/dist/es/es2018/types/src/generated/types/CustomAttributesMap.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/NullableCustomAttributesMap.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/types/PredictionOutput.d.ts +8 -1
- package/dist/es/es2018/types/src/generated/types/PredictionOutputObject.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/PredictionRequestRepresentation.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/PredictionResponseRepresentation.d.ts +1 -4
- package/package.json +6 -5
- package/sfdc/index.js +161 -104
- package/src/raml/api.raml +26 -8
|
@@ -1,13 +1,20 @@
|
|
|
1
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
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
-
import {
|
|
3
|
+
import { WrappedList as types_WrappedList_WrappedList } from '../types/WrappedList';
|
|
4
4
|
import { ResourceRequestConfig as resources_postConnectAiacceleratorV2Predictions_ResourceRequestConfig } from '../resources/postConnectAiacceleratorV2Predictions';
|
|
5
5
|
import { PredictionResponseRepresentation as types_PredictionResponseRepresentation_PredictionResponseRepresentation } from '../types/PredictionResponseRepresentation';
|
|
6
6
|
export declare const adapterName = "getPredictions";
|
|
7
7
|
export declare const getPredictions_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
8
|
export declare const getPredictions_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
9
|
export interface GetPredictionsConfig {
|
|
10
|
-
|
|
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;
|
|
11
18
|
}
|
|
12
19
|
export declare const createResourceParams: (config: GetPredictionsConfig) => resources_postConnectAiacceleratorV2Predictions_ResourceRequestConfig;
|
|
13
20
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetPredictionsConfig>): adapter$45$utils_Untrusted<GetPredictionsConfig>;
|
package/dist/es/es2018/types/src/generated/resources/postConnectAiacceleratorV2Predictions.d.ts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WrappedList as types_WrappedList_WrappedList } from '../types/WrappedList';
|
|
2
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
3
|
import { PredictionResponseRepresentation as types_PredictionResponseRepresentation_PredictionResponseRepresentation } from '../types/PredictionResponseRepresentation';
|
|
4
4
|
export interface ResourceRequestConfig {
|
|
5
5
|
body: {
|
|
6
|
-
|
|
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;
|
|
7
14
|
};
|
|
8
15
|
}
|
|
9
16
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -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,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
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { CustomAttributesMap as CustomAttributesMap_CustomAttributesMap } from './CustomAttributesMap';
|
|
1
2
|
import { Predictor as Predictor_Predictor } from './Predictor';
|
|
2
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';
|
|
3
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "33738bf219bbb2f4cd2ccdc51cd7cb13";
|
|
4
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
6
|
export declare const RepresentationType: string;
|
|
6
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;
|
|
@@ -15,6 +16,10 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
16
|
* (none)
|
|
16
17
|
*/
|
|
17
18
|
export interface PredictionOutputNormalized {
|
|
19
|
+
/** . */
|
|
20
|
+
customAttributes?: CustomAttributesMap_CustomAttributesMap | null;
|
|
21
|
+
/** . */
|
|
22
|
+
customPredictionLabel?: string;
|
|
18
23
|
/** . */
|
|
19
24
|
predictionScore?: number;
|
|
20
25
|
/** . */
|
|
@@ -27,6 +32,8 @@ export interface PredictionOutputNormalized {
|
|
|
27
32
|
* (none)
|
|
28
33
|
*/
|
|
29
34
|
export interface PredictionOutput {
|
|
35
|
+
customAttributes?: CustomAttributesMap_CustomAttributesMap | null;
|
|
36
|
+
customPredictionLabel?: string;
|
|
30
37
|
predictionScore?: number;
|
|
31
38
|
topPredictors?: Array<Predictor_Predictor>;
|
|
32
39
|
}
|
|
@@ -2,7 +2,7 @@ import { Error as Error_Error } from './Error';
|
|
|
2
2
|
import { PredictionOutput as PredictionOutput_PredictionOutput } from './PredictionOutput';
|
|
3
3
|
import { PredictionWarning as PredictionWarning_PredictionWarning } from './PredictionWarning';
|
|
4
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 = "
|
|
5
|
+
export declare const VERSION = "fe0822978f2a5f907536c414e65532a7";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
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;
|
|
@@ -20,7 +20,7 @@ export interface PredictionOutputObjectNormalized {
|
|
|
20
20
|
/** . */
|
|
21
21
|
errors?: Array<Error_Error>;
|
|
22
22
|
/** . */
|
|
23
|
-
isSuccess:
|
|
23
|
+
isSuccess: boolean | null;
|
|
24
24
|
/** . */
|
|
25
25
|
predictionOutput?: Array<PredictionOutput_PredictionOutput>;
|
|
26
26
|
predictionWarning?: PredictionWarning_PredictionWarning;
|
|
@@ -35,7 +35,7 @@ export interface PredictionOutputObjectNormalized {
|
|
|
35
35
|
*/
|
|
36
36
|
export interface PredictionOutputObject {
|
|
37
37
|
errors?: Array<Error_Error>;
|
|
38
|
-
isSuccess:
|
|
38
|
+
isSuccess: boolean | null;
|
|
39
39
|
predictionOutput?: Array<PredictionOutput_PredictionOutput>;
|
|
40
40
|
predictionWarning?: PredictionWarning_PredictionWarning;
|
|
41
41
|
recordId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WrappedList as WrappedList_WrappedList } from './WrappedList';
|
|
2
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 = "
|
|
3
|
+
export declare const VERSION = "1b8383a98d9570aa8a5edf209b830e2c";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
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;
|
|
@@ -18,10 +18,10 @@ export interface PredictionRequestRepresentationNormalized {
|
|
|
18
18
|
/** . */
|
|
19
19
|
maxInsights?: number;
|
|
20
20
|
/** . */
|
|
21
|
-
predictionModel
|
|
21
|
+
predictionModel: string;
|
|
22
22
|
/** . */
|
|
23
23
|
predictionPlatform?: string;
|
|
24
|
-
records
|
|
24
|
+
records?: WrappedList_WrappedList | null;
|
|
25
25
|
/** . */
|
|
26
26
|
scoreFilterCriteria?: string;
|
|
27
27
|
/** . */
|
|
@@ -39,9 +39,9 @@ export interface PredictionRequestRepresentationNormalized {
|
|
|
39
39
|
*/
|
|
40
40
|
export interface PredictionRequestRepresentation {
|
|
41
41
|
maxInsights?: number;
|
|
42
|
-
predictionModel
|
|
42
|
+
predictionModel: string;
|
|
43
43
|
predictionPlatform?: string;
|
|
44
|
-
records
|
|
44
|
+
records?: WrappedList_WrappedList | null;
|
|
45
45
|
scoreFilterCriteria?: string;
|
|
46
46
|
scoringThreshold?: number;
|
|
47
47
|
sortingOrder?: string;
|
|
@@ -2,7 +2,7 @@ import { PredictionOutputObject as PredictionOutputObject_PredictionOutputObject
|
|
|
2
2
|
import { Status as Status_Status } from './Status';
|
|
3
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
4
|
export declare const TTL = 1000;
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "c1431b6652fb0e211a1e2149b42f10f4";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -26,8 +26,6 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
26
26
|
* status (string): status.message
|
|
27
27
|
*/
|
|
28
28
|
export interface PredictionResponseRepresentationNormalized {
|
|
29
|
-
/** . */
|
|
30
|
-
customPredictionLabel?: string;
|
|
31
29
|
/** . */
|
|
32
30
|
predictionModel?: string;
|
|
33
31
|
/** . */
|
|
@@ -47,7 +45,6 @@ export interface PredictionResponseRepresentationNormalized {
|
|
|
47
45
|
* status (string): status.message
|
|
48
46
|
*/
|
|
49
47
|
export interface PredictionResponseRepresentation {
|
|
50
|
-
customPredictionLabel?: string;
|
|
51
48
|
predictionModel?: string;
|
|
52
49
|
predictionOutputObjects?: Array<PredictionOutputObject_PredictionOutputObject>;
|
|
53
50
|
predictionPlatform?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-einstein-aiaccelerator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.309.0-dev8",
|
|
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.
|
|
42
|
+
"@salesforce/lds-bindings": "^1.309.0-dev8"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
45
|
-
"@salesforce/lds-karma": "^1.
|
|
45
|
+
"@salesforce/lds-compiler-plugins": "^1.309.0-dev8",
|
|
46
|
+
"@salesforce/lds-karma": "^1.309.0-dev8"
|
|
46
47
|
},
|
|
47
48
|
"nx": {
|
|
48
49
|
"targets": {
|