@salesforce/lds-adapters-industries-decisiontable 1.294.0 → 1.296.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/dist/es/es2018/industries-decisiontable.js +407 -173
- package/dist/es/es2018/types/src/generated/adapters/postDecisionTableRows.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/postConnectBusinessRulesDecisionTableDataByDecisionTableId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/DecisionTableDataOutputRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/DecisionTableRowInputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/DecisionTableRowsListInputRepresentation.d.ts +35 -0
- package/package.json +3 -3
- package/sfdc/index.js +415 -174
- package/src/raml/api.raml +81 -0
- package/src/raml/luvio.raml +9 -0
|
@@ -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 { DecisionTableRowInputRepresentation as types_DecisionTableRowInputRepresentation_DecisionTableRowInputRepresentation } from '../types/DecisionTableRowInputRepresentation';
|
|
4
|
+
import { ResourceRequestConfig as resources_postConnectBusinessRulesDecisionTableDataByDecisionTableId_ResourceRequestConfig } from '../resources/postConnectBusinessRulesDecisionTableDataByDecisionTableId';
|
|
5
|
+
import { DecisionTableDataOutputRepresentation as types_DecisionTableDataOutputRepresentation_DecisionTableDataOutputRepresentation } from '../types/DecisionTableDataOutputRepresentation';
|
|
6
|
+
export declare const adapterName = "postDecisionTableRows";
|
|
7
|
+
export declare const postDecisionTableRows_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
|
+
export declare const postDecisionTableRows_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
|
+
export interface PostDecisionTableRowsConfig {
|
|
10
|
+
decisionTableId: string;
|
|
11
|
+
deleteAllRows?: boolean;
|
|
12
|
+
fileId?: string;
|
|
13
|
+
rows?: Array<types_DecisionTableRowInputRepresentation_DecisionTableRowInputRepresentation>;
|
|
14
|
+
}
|
|
15
|
+
export declare const createResourceParams: (config: PostDecisionTableRowsConfig) => resources_postConnectBusinessRulesDecisionTableDataByDecisionTableId_ResourceRequestConfig;
|
|
16
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PostDecisionTableRowsConfig>): adapter$45$utils_Untrusted<PostDecisionTableRowsConfig>;
|
|
17
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): PostDecisionTableRowsConfig | null;
|
|
18
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: PostDecisionTableRowsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_DecisionTableDataOutputRepresentation_DecisionTableDataOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_DecisionTableDataOutputRepresentation_DecisionTableDataOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_DecisionTableDataOutputRepresentation_DecisionTableDataOutputRepresentation, any>>;
|
|
19
|
+
export declare const postDecisionTableRowsAdapterFactory: $64$luvio_engine_AdapterFactory<PostDecisionTableRowsConfig, types_DecisionTableDataOutputRepresentation_DecisionTableDataOutputRepresentation>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { getDecisionTableAdapterFactory } from '../adapters/getDecisionTable';
|
|
2
2
|
export { getDecisionTableTemplateListAdapterFactory } from '../adapters/getDecisionTableTemplateList';
|
|
3
3
|
export { getDecisionTableTemplateAdapterFactory } from '../adapters/getDecisionTableTemplate';
|
|
4
|
+
export { postDecisionTableRowsAdapterFactory } from '../adapters/postDecisionTableRows';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
declare let getDecisionTable: any;
|
|
2
2
|
declare let getDecisionTableTemplate: any;
|
|
3
3
|
declare let getDecisionTableTemplateList: any;
|
|
4
|
+
declare let postDecisionTableRows: any;
|
|
4
5
|
declare let getDecisionTable_imperative: any;
|
|
5
6
|
declare let getDecisionTableTemplate_imperative: any;
|
|
6
7
|
declare let getDecisionTableTemplateList_imperative: any;
|
|
7
|
-
export { getDecisionTable, getDecisionTableTemplate, getDecisionTableTemplateList, getDecisionTable_imperative, getDecisionTableTemplate_imperative, getDecisionTableTemplateList_imperative, };
|
|
8
|
+
export { getDecisionTable, getDecisionTableTemplate, getDecisionTableTemplateList, postDecisionTableRows, getDecisionTable_imperative, getDecisionTableTemplate_imperative, getDecisionTableTemplateList_imperative, };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DecisionTableRowInputRepresentation as types_DecisionTableRowInputRepresentation_DecisionTableRowInputRepresentation } from '../types/DecisionTableRowInputRepresentation';
|
|
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 { DecisionTableDataOutputRepresentation as types_DecisionTableDataOutputRepresentation_DecisionTableDataOutputRepresentation } from '../types/DecisionTableDataOutputRepresentation';
|
|
4
|
+
export interface ResourceRequestConfig {
|
|
5
|
+
urlParams: {
|
|
6
|
+
decisionTableId: string;
|
|
7
|
+
};
|
|
8
|
+
body: {
|
|
9
|
+
deleteAllRows?: boolean;
|
|
10
|
+
fileId?: string;
|
|
11
|
+
rows?: Array<types_DecisionTableRowInputRepresentation_DecisionTableRowInputRepresentation>;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
15
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_DecisionTableDataOutputRepresentation_DecisionTableDataOutputRepresentation): void;
|
|
16
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DecisionTableDataOutputRepresentation_DecisionTableDataOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_DecisionTableDataOutputRepresentation_DecisionTableDataOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_DecisionTableDataOutputRepresentation_DecisionTableDataOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_DecisionTableDataOutputRepresentation_DecisionTableDataOutputRepresentation, any>;
|
|
17
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
18
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
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';
|
|
2
|
+
export declare const TTL = 1000;
|
|
3
|
+
export declare const VERSION = "b20786da88bc707d39693989566d86c6";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
7
|
+
success: boolean;
|
|
8
|
+
}
|
|
9
|
+
export type DecisionTableDataOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialDecisionTableDataOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
12
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): DecisionTableDataOutputRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: DecisionTableDataOutputRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: DecisionTableDataOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function normalize(input: DecisionTableDataOutputRepresentation, existing: DecisionTableDataOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DecisionTableDataOutputRepresentationNormalized;
|
|
16
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
17
|
+
export declare function equals(existing: DecisionTableDataOutputRepresentationNormalized, incoming: DecisionTableDataOutputRepresentationNormalized): boolean;
|
|
18
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: DecisionTableDataOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
|
+
/**
|
|
21
|
+
* Representation of the status of an action performed
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* success (boolean): success
|
|
25
|
+
*/
|
|
26
|
+
export interface DecisionTableDataOutputRepresentationNormalized {
|
|
27
|
+
/** Represents the Error Code if Transaction failed for any reason. */
|
|
28
|
+
errorFileId?: string;
|
|
29
|
+
/** Represents the list of Error Messages if Transaction failed for any reason. */
|
|
30
|
+
errors?: Array<string>;
|
|
31
|
+
/** Represents the Error Message if Transaction failed for any reason. */
|
|
32
|
+
message: string;
|
|
33
|
+
/** Returns TRUE or FALSE depending on Decision Table Definition creation is successful or some error encountered. */
|
|
34
|
+
success: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Representation of the status of an action performed
|
|
38
|
+
*
|
|
39
|
+
* Keys:
|
|
40
|
+
* success (boolean): success
|
|
41
|
+
*/
|
|
42
|
+
export interface DecisionTableDataOutputRepresentation {
|
|
43
|
+
errorFileId?: string;
|
|
44
|
+
errors?: Array<string>;
|
|
45
|
+
message: string;
|
|
46
|
+
success: boolean;
|
|
47
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 = "ade91c8202cbeef59011772b595dbc3a";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: DecisionTableRowInputRepresentation, existing: DecisionTableRowInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DecisionTableRowInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: DecisionTableRowInputRepresentationNormalized, incoming: DecisionTableRowInputRepresentationNormalized): 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: DecisionTableRowInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Represents the information required to update or delete a row
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface DecisionTableRowInputRepresentationNormalized {
|
|
17
|
+
/** Represents the action to this Decision Table Row, null if is add */
|
|
18
|
+
action: string;
|
|
19
|
+
/** Represents the id of the Decision Table Row, null it if is a new row */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Represents the name of the Decision Table Row */
|
|
22
|
+
name: string;
|
|
23
|
+
/** Represents the key value pair of the Decision Table Row. */
|
|
24
|
+
rowData: {
|
|
25
|
+
[key: string]: {};
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Represents the information required to update or delete a row
|
|
30
|
+
*
|
|
31
|
+
* Keys:
|
|
32
|
+
* (none)
|
|
33
|
+
*/
|
|
34
|
+
export interface DecisionTableRowInputRepresentation {
|
|
35
|
+
action: string;
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
rowData: {
|
|
39
|
+
[key: string]: {};
|
|
40
|
+
};
|
|
41
|
+
}
|
package/dist/es/es2018/types/src/generated/types/DecisionTableRowsListInputRepresentation.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DecisionTableRowInputRepresentation as DecisionTableRowInputRepresentation_DecisionTableRowInputRepresentation } from './DecisionTableRowInputRepresentation';
|
|
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 = "f1de90fdd34bbda37d0af3339fcf8e99";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: DecisionTableRowsListInputRepresentation, existing: DecisionTableRowsListInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DecisionTableRowsListInputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: DecisionTableRowsListInputRepresentationNormalized, incoming: DecisionTableRowsListInputRepresentationNormalized): 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: DecisionTableRowsListInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Represents the information to update the rows in CSV based Decision Table
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface DecisionTableRowsListInputRepresentationNormalized {
|
|
18
|
+
/** Specifies if rows should be deleted */
|
|
19
|
+
deleteAllRows?: boolean;
|
|
20
|
+
/** Represents the id of the CSV file */
|
|
21
|
+
fileId?: string;
|
|
22
|
+
/** Represents a list of rows to be updated */
|
|
23
|
+
rows?: Array<DecisionTableRowInputRepresentation_DecisionTableRowInputRepresentation>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Represents the information to update the rows in CSV based Decision Table
|
|
27
|
+
*
|
|
28
|
+
* Keys:
|
|
29
|
+
* (none)
|
|
30
|
+
*/
|
|
31
|
+
export interface DecisionTableRowsListInputRepresentation {
|
|
32
|
+
deleteAllRows?: boolean;
|
|
33
|
+
fileId?: string;
|
|
34
|
+
rows?: Array<DecisionTableRowInputRepresentation_DecisionTableRowInputRepresentation>;
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-decisiontable",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.296.0",
|
|
4
4
|
"description": "Industries BRE DecisionTable",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/industries-decisiontable.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest --config=./jest.config.js"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.296.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.296.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|