@salesforce/lds-adapters-industries-decision-matrix-designer 0.1.0-dev1
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-decision-matrix-designer.js +1119 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getColumns.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getRows.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/adapters/saveColumns.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/adapters/saveRows.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectOmnistudioDecisionMatricesColumnsByMatrixId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectOmnistudioDecisionMatricesVersionsRowsByMatrixIdAndVersionId.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectOmnistudioDecisionMatricesColumnsByMatrixId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectOmnistudioDecisionMatricesVersionsRowsByMatrixIdAndVersionId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/types/Columns.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/DecisionMatrixColumnOutputRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/DecisionMatrixColumnRepresentation.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/DecisionMatrixColumnsInputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/DecisionMatrixColumnsOutputRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/DecisionMatrixOutputRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/DecisionMatrixRowInputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/DecisionMatrixRowOutputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/DecisionMatrixRowsInputRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/DecisionMatrixRowsOutputRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/RowsInput.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +75 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1165 -0
- package/src/raml/api.raml +274 -0
- package/src/raml/luvio.raml +45 -0
|
@@ -0,0 +1,32 @@
|
|
|
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 = "59acff3f1f19a1f921fdd9b4e2b66a92";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: DecisionMatrixRowsInputRepresentation, existing: DecisionMatrixRowsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DecisionMatrixRowsInputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
8
|
+
export declare function equals(existing: DecisionMatrixRowsInputRepresentationNormalized, incoming: DecisionMatrixRowsInputRepresentationNormalized): 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: DecisionMatrixRowsInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Represents the information to update a Decision Matrix Version’s rows
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface DecisionMatrixRowsInputRepresentationNormalized {
|
|
18
|
+
/** Represents the id of the CSV file */
|
|
19
|
+
fileId?: string;
|
|
20
|
+
/** Represents a list of rows to be updated */
|
|
21
|
+
rows?: Array<{}>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Represents the information to update a Decision Matrix Version’s rows
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* (none)
|
|
28
|
+
*/
|
|
29
|
+
export interface DecisionMatrixRowsInputRepresentation {
|
|
30
|
+
fileId?: string;
|
|
31
|
+
rows?: Array<{}>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DecisionMatrixRowOutputRepresentation as DecisionMatrixRowOutputRepresentation_DecisionMatrixRowOutputRepresentation } from './DecisionMatrixRowOutputRepresentation';
|
|
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, 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 = "29ed6d4f3fd86e3a72843e30d2858825";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: DecisionMatrixRowsOutputRepresentation, existing: DecisionMatrixRowsOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DecisionMatrixRowsOutputRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
9
|
+
export declare function equals(existing: DecisionMatrixRowsOutputRepresentationNormalized, incoming: DecisionMatrixRowsOutputRepresentationNormalized): 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: DecisionMatrixRowsOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* A paginated list of rows in a Decision Matrix Version
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface DecisionMatrixRowsOutputRepresentationNormalized {
|
|
19
|
+
/** Represents the message which indicates the async process. */
|
|
20
|
+
message: string | null;
|
|
21
|
+
/** Represents the returned list of rows. */
|
|
22
|
+
rows: Array<DecisionMatrixRowOutputRepresentation_DecisionMatrixRowOutputRepresentation>;
|
|
23
|
+
/** Represents the total number of rows. */
|
|
24
|
+
totalRows: number | null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A paginated list of rows in a Decision Matrix Version
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface DecisionMatrixRowsOutputRepresentation {
|
|
33
|
+
message: string | null;
|
|
34
|
+
rows: Array<DecisionMatrixRowOutputRepresentation_DecisionMatrixRowOutputRepresentation>;
|
|
35
|
+
totalRows: number | null;
|
|
36
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
import { DecisionMatrixRowsInputRepresentation as DecisionMatrixRowsInputRepresentation_DecisionMatrixRowsInputRepresentation } from './DecisionMatrixRowsInputRepresentation';
|
|
3
|
+
export declare const VERSION = "c8c94dc44104d77f78c87f246523e793";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: RowsInput, existing: RowsInputNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RowsInputNormalized;
|
|
7
|
+
export interface DynamicIngestParams {
|
|
8
|
+
rowsInput: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
}
|
|
10
|
+
export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: RowsInput, existing: RowsInputNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => RowsInputNormalized;
|
|
11
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
12
|
+
export interface DynamicSelectParams {
|
|
13
|
+
rowsInput?: $64$luvio_engine_LinkSelection;
|
|
14
|
+
}
|
|
15
|
+
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
16
|
+
export declare function equals(existing: RowsInputNormalized, incoming: RowsInputNormalized): boolean;
|
|
17
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
18
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: RowsInput, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
19
|
+
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
20
|
+
/**
|
|
21
|
+
* A Wrapper around the DecisionMatrixRowsInputRepresentation
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface RowsInputNormalized {
|
|
27
|
+
/** The Oas Body Name for RowsInput */
|
|
28
|
+
rowsInput: $64$luvio_engine_StoreLink;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A Wrapper around the DecisionMatrixRowsInputRepresentation
|
|
32
|
+
*
|
|
33
|
+
* Keys:
|
|
34
|
+
* (none)
|
|
35
|
+
*/
|
|
36
|
+
export interface RowsInput {
|
|
37
|
+
rowsInput: DecisionMatrixRowsInputRepresentation_DecisionMatrixRowsInputRepresentation;
|
|
38
|
+
}
|
|
@@ -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,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@salesforce/lds-adapters-industries-decision-matrix-designer",
|
|
3
|
+
"version": "0.1.0-dev1",
|
|
4
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
+
"description": "This set up of adapters is used to interface and communicate with the connect-api for use in creating/updating and viewing a decision matrix.",
|
|
6
|
+
"main": "dist/es/es2018/industries-decision-matrix-designer.js",
|
|
7
|
+
"module": "dist/es/es2018/industries-decision-matrix-designer.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-decision-matrix-designer.js",
|
|
18
|
+
"require": "./dist/es/es2018/industries-decision-matrix-designer.js"
|
|
19
|
+
},
|
|
20
|
+
"./sfdc": {
|
|
21
|
+
"types": "./sfdc/index.d.ts",
|
|
22
|
+
"import": "./sfdc/index.js",
|
|
23
|
+
"default": "./sfdc/index.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"contributors": [
|
|
27
|
+
"kschell@salesforce.com"
|
|
28
|
+
],
|
|
29
|
+
"sfdc": {
|
|
30
|
+
"namespace": "lightning",
|
|
31
|
+
"module": "industriesDecisionMatrixDesignerApi"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "yarn build:services",
|
|
35
|
+
"build:karma": "rollup --bundleConfigAsCjs --config rollup.config.karma.js",
|
|
36
|
+
"build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
|
|
37
|
+
"build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
|
|
38
|
+
"clean": "rm -rf dist sfdc src/generated karma/dist",
|
|
39
|
+
"release:core": "../../scripts/release/core.js --adapter=lds-adapters-industries-decision-matrix-designer",
|
|
40
|
+
"release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-industries-decision-matrix-designer",
|
|
41
|
+
"start": "nx build:karma && karma start",
|
|
42
|
+
"test": "nx build:karma && karma start --single-run"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@salesforce/lds-bindings": "^0.1.0-dev1",
|
|
46
|
+
"karma": "^6.3.4"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@salesforce/lds-compiler-plugins": "^0.1.0-dev1",
|
|
50
|
+
"@salesforce/lds-karma": "^0.1.0-dev1"
|
|
51
|
+
},
|
|
52
|
+
"nx": {
|
|
53
|
+
"targets": {
|
|
54
|
+
"build": {
|
|
55
|
+
"outputs": [
|
|
56
|
+
"{projectRoot}/dist",
|
|
57
|
+
"{projectRoot}/sfdc"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"build:raml": {
|
|
61
|
+
"outputs": [
|
|
62
|
+
"{projectRoot}/src/generated"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"build:karma": {
|
|
66
|
+
"outputs": [
|
|
67
|
+
"{projectRoot}/karma/dist"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"volta": {
|
|
73
|
+
"extends": "../../package.json"
|
|
74
|
+
}
|
|
75
|
+
}
|
package/sfdc/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';
|