@salesforce/lds-adapters-industries-contextrules 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-contextrules.js +1155 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createContextTagMapping.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/adapters/deleteContextTagMapping.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/adapters/getContextTagMapping.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/adapters/getContextTagMappings.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getUsageTypeDetail.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/updateContextTagMapping.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/deleteConnectContextRulesContextTagMappingsRuleLibraryApiNameVersionNumberMappingNameByMappingNameAndRuleLibraryApiNameAndVersionNumber.d.ts +14 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectContextRulesContextTagMappingsRuleLibraryApiNameVersionNumberByRuleLibraryApiNameAndVersionNumber.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectContextRulesContextTagMappingsRuleLibraryApiNameVersionNumberMappingNameByMappingNameAndRuleLibraryApiNameAndVersionNumber.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectContextRulesUsageTypesByUsageType.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/patchConnectContextRulesContextTagMappingsRuleLibraryApiNameVersionNumberByRuleLibraryApiNameAndVersionNumber.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectContextRulesContextTagMappingsRuleLibraryApiNameVersionNumberByRuleLibraryApiNameAndVersionNumber.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsCreateUpdateOutputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsListWrapperRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsOverallInputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsReadOutputRepresentation.d.ts +56 -0
- package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsReadOutputRepresentationList.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/UsageSubtypeOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/UsageTypeOutputRepresentation.d.ts +45 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +67 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1317 -0
- package/src/raml/api.raml +221 -0
- package/src/raml/luvio.raml +57 -0
|
@@ -0,0 +1,31 @@
|
|
|
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 = "579a71aae59aa57770bf60164e38a087";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: UsageSubtypeOutputRepresentation, existing: UsageSubtypeOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UsageSubtypeOutputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: UsageSubtypeOutputRepresentationNormalized, incoming: UsageSubtypeOutputRepresentationNormalized): 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: UsageSubtypeOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Output representation of context rule usageSubtype
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface UsageSubtypeOutputRepresentationNormalized {
|
|
17
|
+
/** subType Mapping names */
|
|
18
|
+
subtypeMappingNames: Array<string>;
|
|
19
|
+
/** Usage Subtype */
|
|
20
|
+
usageSubtype: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Output representation of context rule usageSubtype
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface UsageSubtypeOutputRepresentation {
|
|
29
|
+
subtypeMappingNames: Array<string>;
|
|
30
|
+
usageSubtype: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { UsageSubtypeOutputRepresentation as UsageSubtypeOutputRepresentation_UsageSubtypeOutputRepresentation } from './UsageSubtypeOutputRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
export declare const TTL = 1000;
|
|
4
|
+
export declare const VERSION = "19586883f36a2f3e5aa88a8708d670b4";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
10
|
+
export type UsageTypeOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export type PartialUsageTypeOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): UsageTypeOutputRepresentationNormalizedKeyMetadata;
|
|
14
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: UsageTypeOutputRepresentation): string;
|
|
15
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: UsageTypeOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
+
export declare function normalize(input: UsageTypeOutputRepresentation, existing: UsageTypeOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UsageTypeOutputRepresentationNormalized;
|
|
17
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
18
|
+
export declare function equals(existing: UsageTypeOutputRepresentationNormalized, incoming: UsageTypeOutputRepresentationNormalized): boolean;
|
|
19
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
20
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: UsageTypeOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
21
|
+
/**
|
|
22
|
+
* Output representation of context rule usageType
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* id (string): usageType
|
|
26
|
+
*/
|
|
27
|
+
export interface UsageTypeOutputRepresentationNormalized {
|
|
28
|
+
/** mapping names */
|
|
29
|
+
mappingNames: Array<string>;
|
|
30
|
+
/** Usage Subtypes */
|
|
31
|
+
usageSubtypes: Array<UsageSubtypeOutputRepresentation_UsageSubtypeOutputRepresentation>;
|
|
32
|
+
/** Usage type */
|
|
33
|
+
usageType: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Output representation of context rule usageType
|
|
37
|
+
*
|
|
38
|
+
* Keys:
|
|
39
|
+
* id (string): usageType
|
|
40
|
+
*/
|
|
41
|
+
export interface UsageTypeOutputRepresentation {
|
|
42
|
+
mappingNames: Array<string>;
|
|
43
|
+
usageSubtypes: Array<UsageSubtypeOutputRepresentation_UsageSubtypeOutputRepresentation>;
|
|
44
|
+
usageType: string;
|
|
45
|
+
}
|
|
@@ -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,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@salesforce/lds-adapters-industries-contextrules",
|
|
3
|
+
"version": "0.1.0-dev1",
|
|
4
|
+
"description": "API family for contextrules",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
|
+
"main": "dist/es/es2018/industries-contextrules.js",
|
|
7
|
+
"module": "dist/es/es2018/industries-contextrules.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-contextrules.js",
|
|
18
|
+
"require": "./dist/es/es2018/industries-contextrules.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": "industriesContextrulesApi"
|
|
29
|
+
},
|
|
30
|
+
"contributors": [
|
|
31
|
+
"govindram.sinha@salesforce.com"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "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-contextrules",
|
|
39
|
+
"release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-industries-contextrules",
|
|
40
|
+
"test:unit": "jest",
|
|
41
|
+
"test:unit:debug": "node --inspect-brk ../../node_modules/jest/bin/jest.js --config ./jest.config.js --runInBand"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@salesforce/lds-bindings": "^0.1.0-dev1"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@salesforce/lds-compiler-plugins": "^0.1.0-dev1"
|
|
48
|
+
},
|
|
49
|
+
"nx": {
|
|
50
|
+
"targets": {
|
|
51
|
+
"build": {
|
|
52
|
+
"outputs": [
|
|
53
|
+
"{projectRoot}/dist",
|
|
54
|
+
"{projectRoot}/sfdc"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"build:raml": {
|
|
58
|
+
"outputs": [
|
|
59
|
+
"{projectRoot}/src/generated"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"volta": {
|
|
65
|
+
"extends": "../../package.json"
|
|
66
|
+
}
|
|
67
|
+
}
|
package/sfdc/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';
|