@salesforce/lds-adapters-industries-decisiontable 1.248.0
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/LICENSE.txt +82 -0
- package/dist/es/es2018/industries-decisiontable.js +573 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getDecisionTable.d.ts +27 -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 +3 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectBusinessRulesDecisionTableDefinitionsByDecisionTableId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/DecisionTableDefinitionOutputRepresentation.d.ts +73 -0
- package/dist/es/es2018/types/src/generated/types/DecisionTableOutputRepresentation.d.ts +39 -0
- package/dist/es/es2018/types/src/generated/types/DecisionTableParameterOutputRepresentation.d.ts +65 -0
- package/dist/es/es2018/types/src/generated/types/DecisionTableSourceCriteriaOutputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +605 -0
- package/src/raml/api.raml +309 -0
- package/src/raml/luvio.raml +28 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
|
|
3
|
+
declare const ObjectKeys: {
|
|
4
|
+
(o: object): string[];
|
|
5
|
+
(o: {}): string[];
|
|
6
|
+
}, ObjectCreate: {
|
|
7
|
+
(o: object | null): any;
|
|
8
|
+
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
9
|
+
};
|
|
10
|
+
export { ObjectCreate, ObjectKeys };
|
|
11
|
+
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
12
|
+
export declare const ArrayPrototypePush: (...items: any[]) => number;
|
|
13
|
+
export interface AdapterValidationConfig {
|
|
14
|
+
displayName: string;
|
|
15
|
+
parameters: {
|
|
16
|
+
required: string[];
|
|
17
|
+
optional: string[];
|
|
18
|
+
unsupported?: string[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Validates an adapter config is well-formed.
|
|
23
|
+
* @param config The config to validate.
|
|
24
|
+
* @param adapter The adapter validation configuration.
|
|
25
|
+
* @param oneOf The keys the config must contain at least one of.
|
|
26
|
+
* @throws A TypeError if config doesn't satisfy the adapter's config validation.
|
|
27
|
+
*/
|
|
28
|
+
export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
|
|
29
|
+
export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
|
|
30
|
+
export type UncoercedConfiguration<Base, Options extends {
|
|
31
|
+
[key in keyof Base]?: any;
|
|
32
|
+
}> = {
|
|
33
|
+
[Key in keyof Base]?: Base[Key] | Options[Key];
|
|
34
|
+
};
|
|
35
|
+
export type Untrusted<Base> = Partial<Base>;
|
|
36
|
+
export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
|
|
37
|
+
export declare function refreshable<C, D, R>(adapter: $64$luvio_engine_Adapter<C, D>, resolve: (config: unknown) => Promise<$64$luvio_engine_Snapshot<R>>): $64$luvio_engine_Adapter<C, D>;
|
|
38
|
+
export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
|
|
39
|
+
export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
|
|
40
|
+
export declare const snapshotRefreshOptions: {
|
|
41
|
+
overrides: {
|
|
42
|
+
headers: {
|
|
43
|
+
'Cache-Control': string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
|
|
49
|
+
* This is needed because insertion order for JSON.stringify(object) affects output:
|
|
50
|
+
* JSON.stringify({a: 1, b: 2})
|
|
51
|
+
* "{"a":1,"b":2}"
|
|
52
|
+
* JSON.stringify({b: 2, a: 1})
|
|
53
|
+
* "{"b":2,"a":1}"
|
|
54
|
+
* @param data Data to be JSON-stringified.
|
|
55
|
+
* @returns JSON.stringified value with consistent ordering of keys.
|
|
56
|
+
*/
|
|
57
|
+
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
|
+
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
|
+
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
|
+
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
62
|
+
export declare const keyPrefix = "DecisionTable";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, 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 { ResourceRequestConfig as resources_getConnectBusinessRulesDecisionTableDefinitionsByDecisionTableId_ResourceRequestConfig } from '../resources/getConnectBusinessRulesDecisionTableDefinitionsByDecisionTableId';
|
|
4
|
+
import { DecisionTableOutputRepresentation as types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation } from '../types/DecisionTableOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "getDecisionTable";
|
|
6
|
+
export declare const getDecisionTable_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getDecisionTable_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetDecisionTableConfig {
|
|
9
|
+
decisionTableId: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const createResourceParams: (config: GetDecisionTableConfig) => resources_getConnectBusinessRulesDecisionTableDefinitionsByDecisionTableId_ResourceRequestConfig;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableConfig): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetDecisionTableConfig>): adapter$45$utils_Untrusted<GetDecisionTableConfig>;
|
|
15
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetDecisionTableConfig | null;
|
|
16
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableConfig): $64$luvio_engine_Fragment;
|
|
17
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableConfig): $64$luvio_engine_Snapshot<types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation, any>;
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableConfig, resourceParams: resources_getConnectBusinessRulesDecisionTableDefinitionsByDecisionTableId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableConfig, resourceParams: resources_getConnectBusinessRulesDecisionTableDefinitionsByDecisionTableId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation, any>>;
|
|
21
|
+
export type BuildSnapshotContext = {
|
|
22
|
+
luvio: $64$luvio_engine_Luvio;
|
|
23
|
+
config: GetDecisionTableConfig;
|
|
24
|
+
};
|
|
25
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation, any>>;
|
|
26
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation>): $64$luvio_engine_Snapshot<types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation, any>;
|
|
27
|
+
export declare const getDecisionTableAdapterFactory: $64$luvio_engine_AdapterFactory<GetDecisionTableConfig, types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getDecisionTableAdapterFactory } from '../adapters/getDecisionTable';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { DecisionTableOutputRepresentation as types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation } from '../types/DecisionTableOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
decisionTableId: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation): void;
|
|
12
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation, any>;
|
|
13
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_DecisionTableOutputRepresentation_DecisionTableOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/types/DecisionTableDefinitionOutputRepresentation.d.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { DecisionTableParameterOutputRepresentation as DecisionTableParameterOutputRepresentation_DecisionTableParameterOutputRepresentation } from './DecisionTableParameterOutputRepresentation';
|
|
2
|
+
import { DecisionTableSourceCriteriaOutputRepresentation as DecisionTableSourceCriteriaOutputRepresentation_DecisionTableSourceCriteriaOutputRepresentation } from './DecisionTableSourceCriteriaOutputRepresentation';
|
|
3
|
+
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';
|
|
4
|
+
export declare const TTL = 1000;
|
|
5
|
+
export declare const VERSION = "ddc137865a16f358ec40fdabc5b0c884";
|
|
6
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
|
+
export declare const RepresentationType: string;
|
|
8
|
+
export declare function normalize(input: DecisionTableDefinitionOutputRepresentation, existing: DecisionTableDefinitionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DecisionTableDefinitionOutputRepresentationNormalized;
|
|
9
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
10
|
+
export declare function equals(existing: DecisionTableDefinitionOutputRepresentationNormalized, incoming: DecisionTableDefinitionOutputRepresentationNormalized): 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: DecisionTableDefinitionOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
13
|
+
/**
|
|
14
|
+
* Represents the decision table definition
|
|
15
|
+
*
|
|
16
|
+
* Keys:
|
|
17
|
+
* (none)
|
|
18
|
+
*/
|
|
19
|
+
export interface DecisionTableDefinitionOutputRepresentationNormalized {
|
|
20
|
+
/** Collect operator used in case of Collect Hit Policy */
|
|
21
|
+
collectOperator?: string;
|
|
22
|
+
/** The custom logic that's used to decide how the input fields are processed */
|
|
23
|
+
conditionCriteria?: string;
|
|
24
|
+
/** The condition logic that's used for input fields */
|
|
25
|
+
conditionType?: string;
|
|
26
|
+
/** Hit policy to specify what will be the result of the decision table */
|
|
27
|
+
decisionResultPolicy?: string;
|
|
28
|
+
/** Description of the decision table */
|
|
29
|
+
description?: string;
|
|
30
|
+
/** Unique name of the rule definition */
|
|
31
|
+
fullName?: string;
|
|
32
|
+
/** ID of the decision table */
|
|
33
|
+
id?: string;
|
|
34
|
+
/** Represents an array of input fields defined for the decision table */
|
|
35
|
+
parameters: Array<$64$luvio_engine_StoreLink>;
|
|
36
|
+
/** Name of the decision table */
|
|
37
|
+
setupName?: string;
|
|
38
|
+
/** Output array representation of source filters fieldName, operators, valueType etc. */
|
|
39
|
+
sourceCriteria: Array<$64$luvio_engine_StoreLink>;
|
|
40
|
+
/** The Object on which the decision table is based */
|
|
41
|
+
sourceObject?: string;
|
|
42
|
+
/** The source from where decision table data is sourced */
|
|
43
|
+
sourceType?: string;
|
|
44
|
+
/** Custom logic that's used to decide how criteria on source is applied */
|
|
45
|
+
sourceconditionLogic?: string;
|
|
46
|
+
/** Status of the decision table */
|
|
47
|
+
status?: string;
|
|
48
|
+
/** The process type that uses this decision table */
|
|
49
|
+
usageType?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Represents the decision table definition
|
|
53
|
+
*
|
|
54
|
+
* Keys:
|
|
55
|
+
* (none)
|
|
56
|
+
*/
|
|
57
|
+
export interface DecisionTableDefinitionOutputRepresentation {
|
|
58
|
+
collectOperator?: string;
|
|
59
|
+
conditionCriteria?: string;
|
|
60
|
+
conditionType?: string;
|
|
61
|
+
decisionResultPolicy?: string;
|
|
62
|
+
description?: string;
|
|
63
|
+
fullName?: string;
|
|
64
|
+
id?: string;
|
|
65
|
+
parameters: Array<DecisionTableParameterOutputRepresentation_DecisionTableParameterOutputRepresentation>;
|
|
66
|
+
setupName?: string;
|
|
67
|
+
sourceCriteria: Array<DecisionTableSourceCriteriaOutputRepresentation_DecisionTableSourceCriteriaOutputRepresentation>;
|
|
68
|
+
sourceObject?: string;
|
|
69
|
+
sourceType?: string;
|
|
70
|
+
sourceconditionLogic?: string;
|
|
71
|
+
status?: string;
|
|
72
|
+
usageType?: string;
|
|
73
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { DecisionTableDefinitionOutputRepresentation as DecisionTableDefinitionOutputRepresentation_DecisionTableDefinitionOutputRepresentation } from './DecisionTableDefinitionOutputRepresentation';
|
|
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 = "21435364536c593ed8b8972af7d154d5";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: DecisionTableOutputRepresentation, existing: DecisionTableOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DecisionTableOutputRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
9
|
+
export declare function equals(existing: DecisionTableOutputRepresentationNormalized, incoming: DecisionTableOutputRepresentationNormalized): 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: DecisionTableOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Represents the decision table creation/fetch/delete response and its status
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface DecisionTableOutputRepresentationNormalized {
|
|
19
|
+
/** Represents the Error Code if Decision Table Definition creation failed for any reason. */
|
|
20
|
+
code?: string;
|
|
21
|
+
/** Represents the Decision Table Definition Output Representation type */
|
|
22
|
+
decisionTable: $64$luvio_engine_StoreLink;
|
|
23
|
+
/** Returns TRUE or FALSE depending on Decision Table Definition creation is successful or some error encountered. */
|
|
24
|
+
isSuccess?: boolean;
|
|
25
|
+
/** Represents the Error Message if Transaction failed for any reason. */
|
|
26
|
+
message?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Represents the decision table creation/fetch/delete response and its status
|
|
30
|
+
*
|
|
31
|
+
* Keys:
|
|
32
|
+
* (none)
|
|
33
|
+
*/
|
|
34
|
+
export interface DecisionTableOutputRepresentation {
|
|
35
|
+
code?: string;
|
|
36
|
+
decisionTable: DecisionTableDefinitionOutputRepresentation_DecisionTableDefinitionOutputRepresentation;
|
|
37
|
+
isSuccess?: boolean;
|
|
38
|
+
message?: string;
|
|
39
|
+
}
|
package/dist/es/es2018/types/src/generated/types/DecisionTableParameterOutputRepresentation.d.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
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 = "8da8a9539ab11c385bafdc5028d51ad1";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: DecisionTableParameterOutputRepresentation, existing: DecisionTableParameterOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DecisionTableParameterOutputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
8
|
+
export declare function equals(existing: DecisionTableParameterOutputRepresentationNormalized, incoming: DecisionTableParameterOutputRepresentationNormalized): 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: DecisionTableParameterOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Represents the decision table parameter
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface DecisionTableParameterOutputRepresentationNormalized {
|
|
18
|
+
/** Specifies the source object path for the mapping to the column of an entity */
|
|
19
|
+
columnMapping?: string;
|
|
20
|
+
/** Data Type of the field used */
|
|
21
|
+
dataType?: string;
|
|
22
|
+
/** Precision of the field used */
|
|
23
|
+
decimalScale?: number;
|
|
24
|
+
/** Specifies the entity domain field is mapped to */
|
|
25
|
+
domainEntity?: string;
|
|
26
|
+
/** The name of the field to be used in the decision table */
|
|
27
|
+
fieldName?: string;
|
|
28
|
+
/** Indicates whether the field is used to group the business rules of the decision table */
|
|
29
|
+
isGroupByField?: boolean;
|
|
30
|
+
/** Whether it is priority field or not */
|
|
31
|
+
isPriority?: boolean;
|
|
32
|
+
/** Valid operators for a field based on its usage */
|
|
33
|
+
isRequired?: boolean;
|
|
34
|
+
/** Maximum length of the field used */
|
|
35
|
+
maxlength?: number;
|
|
36
|
+
/** Indicates whether the field is mandatory to be provided during lookup for hashing column data */
|
|
37
|
+
operator?: string;
|
|
38
|
+
/** The sequence in which input fields are processed. */
|
|
39
|
+
sequence?: number;
|
|
40
|
+
/** Specifies the type of sorting done on the rows of a decision table */
|
|
41
|
+
sortType?: string;
|
|
42
|
+
/** A picklist to select whether a particular field will be used as input or output */
|
|
43
|
+
usage?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Represents the decision table parameter
|
|
47
|
+
*
|
|
48
|
+
* Keys:
|
|
49
|
+
* (none)
|
|
50
|
+
*/
|
|
51
|
+
export interface DecisionTableParameterOutputRepresentation {
|
|
52
|
+
columnMapping?: string;
|
|
53
|
+
dataType?: string;
|
|
54
|
+
decimalScale?: number;
|
|
55
|
+
domainEntity?: string;
|
|
56
|
+
fieldName?: string;
|
|
57
|
+
isGroupByField?: boolean;
|
|
58
|
+
isPriority?: boolean;
|
|
59
|
+
isRequired?: boolean;
|
|
60
|
+
maxlength?: number;
|
|
61
|
+
operator?: string;
|
|
62
|
+
sequence?: number;
|
|
63
|
+
sortType?: string;
|
|
64
|
+
usage?: string;
|
|
65
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 = "f1589135819c1113935481d08bb2ddac";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: DecisionTableSourceCriteriaOutputRepresentation, existing: DecisionTableSourceCriteriaOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DecisionTableSourceCriteriaOutputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
8
|
+
export declare function equals(existing: DecisionTableSourceCriteriaOutputRepresentationNormalized, incoming: DecisionTableSourceCriteriaOutputRepresentationNormalized): 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: DecisionTableSourceCriteriaOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Represents the decision table source criteria
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface DecisionTableSourceCriteriaOutputRepresentationNormalized {
|
|
18
|
+
/** Specifies the operator used in the filter criteria */
|
|
19
|
+
operator?: string;
|
|
20
|
+
/** The sequence number of the filter criteria in the associated decision table source condition */
|
|
21
|
+
sequenceNumber?: number;
|
|
22
|
+
/** The name of the field that's used in the filter criteria */
|
|
23
|
+
sourceFieldName?: string;
|
|
24
|
+
/** The expected value of the field */
|
|
25
|
+
value?: string;
|
|
26
|
+
/** Specifies the type of filter value */
|
|
27
|
+
valueType?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Represents the decision table source criteria
|
|
31
|
+
*
|
|
32
|
+
* Keys:
|
|
33
|
+
* (none)
|
|
34
|
+
*/
|
|
35
|
+
export interface DecisionTableSourceCriteriaOutputRepresentation {
|
|
36
|
+
operator?: string;
|
|
37
|
+
sequenceNumber?: number;
|
|
38
|
+
sourceFieldName?: string;
|
|
39
|
+
value?: string;
|
|
40
|
+
valueType?: string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const ObjectKeys: {
|
|
3
|
+
(o: object): string[];
|
|
4
|
+
(o: {}): string[];
|
|
5
|
+
}, ObjectCreate: {
|
|
6
|
+
(o: object | null): any;
|
|
7
|
+
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
8
|
+
}, ObjectAssign: {
|
|
9
|
+
<T extends {}, U>(target: T, source: U): T & U;
|
|
10
|
+
<T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
|
|
11
|
+
<T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
|
|
12
|
+
(target: object, ...sources: any[]): any;
|
|
13
|
+
};
|
|
14
|
+
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
15
|
+
export declare const JSONStringify: {
|
|
16
|
+
(value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
|
|
17
|
+
(value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
|
|
18
|
+
};
|
|
19
|
+
type AllowedPrimitives = boolean | string | number | Date | null;
|
|
20
|
+
type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
|
|
21
|
+
export type RecursivePartial<T> = null | {
|
|
22
|
+
[P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
|
|
23
|
+
};
|
|
24
|
+
export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
|
|
25
|
+
export declare function equalsObject<U, V extends {
|
|
26
|
+
[key: string]: U;
|
|
27
|
+
}>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
|
|
28
|
+
export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
|
|
29
|
+
__ref: string;
|
|
30
|
+
};
|
|
31
|
+
export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
32
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@salesforce/lds-adapters-industries-decisiontable",
|
|
3
|
+
"version": "1.248.0",
|
|
4
|
+
"description": "Industries BRE DecisionTable",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
|
+
"main": "dist/es/es2018/industries-decisiontable.js",
|
|
7
|
+
"module": "dist/es/es2018/industries-decisiontable.js",
|
|
8
|
+
"types": "dist/es/es2018/types/src/generated/artifacts/main.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"sfdc",
|
|
12
|
+
"src/raml/*"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/es/es2018/types/src/generated/artifacts/main.d.ts",
|
|
17
|
+
"import": "./dist/es/es2018/industries-decisiontable.js",
|
|
18
|
+
"require": "./dist/es/es2018/industries-decisiontable.js"
|
|
19
|
+
},
|
|
20
|
+
"./sfdc": {
|
|
21
|
+
"types": "./sfdc/index.d.ts",
|
|
22
|
+
"import": "./sfdc/index.js",
|
|
23
|
+
"default": "./sfdc/index.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"sfdc": {
|
|
27
|
+
"namespace": "lightning",
|
|
28
|
+
"module": "industriesDecisiontableApi"
|
|
29
|
+
},
|
|
30
|
+
"contributors": [
|
|
31
|
+
"vijay.mohan@salesforce.com"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "yarn build:raml && yarn build:services",
|
|
35
|
+
"build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
|
|
36
|
+
"build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
|
|
37
|
+
"clean": "rm -rf dist sfdc src/generated",
|
|
38
|
+
"release:core": "../../scripts/release/core.js --adapter=lds-adapters-industries-decisiontable",
|
|
39
|
+
"release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-industries-decisiontable",
|
|
40
|
+
"test:unit": "jest --config=./jest.config.js"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@salesforce/lds-bindings": "*"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "*"
|
|
47
|
+
},
|
|
48
|
+
"nx": {
|
|
49
|
+
"targets": {
|
|
50
|
+
"build": {
|
|
51
|
+
"outputs": [
|
|
52
|
+
"{projectRoot}/dist",
|
|
53
|
+
"{projectRoot}/sfdc"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"build:raml": {
|
|
57
|
+
"outputs": [
|
|
58
|
+
"{projectRoot}/src/generated"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"volta": {
|
|
64
|
+
"extends": "../../package.json"
|
|
65
|
+
}
|
|
66
|
+
}
|
package/sfdc/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';
|