@salesforce/lds-adapters-industries-eri 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.
@@ -0,0 +1,62 @@
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 VERSION = "1b195c1743c167f786cfce25b5d46f7b";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: DigestNotification, existing: DigestNotificationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DigestNotificationNormalized;
6
+ export declare const select: () => $64$luvio_engine_BaseFragment;
7
+ export declare function equals(existing: DigestNotificationNormalized, incoming: DigestNotificationNormalized): 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: DigestNotification, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Digest notification
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface DigestNotificationNormalized {
17
+ /** Display fields in the notification */
18
+ fields: Array<{
19
+ [key: string]: string;
20
+ }>;
21
+ /** Unique id of the notification in the digest */
22
+ id: string;
23
+ /** Record Name referenced in this notification */
24
+ name: string;
25
+ /** Navigation Url */
26
+ navigationLink: string;
27
+ /** true if the notification is read by the user */
28
+ read?: boolean;
29
+ /** Record id referenced in this notification */
30
+ recordId: string;
31
+ /** Record id type referenced in this notification */
32
+ recordTypeId?: string;
33
+ /** Sobject Type of the record referenced in this notification */
34
+ sobjectType: string;
35
+ /** Sobject type label of the record referenced in this notification */
36
+ sobjectTypeLabel: string;
37
+ /** Time when this relationship is found */
38
+ timeStamp: string;
39
+ /** Notificatio type */
40
+ type: string;
41
+ }
42
+ /**
43
+ * Digest notification
44
+ *
45
+ * Keys:
46
+ * (none)
47
+ */
48
+ export interface DigestNotification {
49
+ fields: Array<{
50
+ [key: string]: string;
51
+ }>;
52
+ id: string;
53
+ name: string;
54
+ navigationLink: string;
55
+ read?: boolean;
56
+ recordId: string;
57
+ recordTypeId?: string;
58
+ sobjectType: string;
59
+ sobjectTypeLabel: string;
60
+ timeStamp: string;
61
+ type: string;
62
+ }
@@ -0,0 +1,29 @@
1
+ import { FollowingInfoInputRepresentation as FollowingInfoInputRepresentation_FollowingInfoInputRepresentation } from './FollowingInfoInputRepresentation';
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 = "4dbcf2a95858fb64733c314aec8b2401";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: ERIDigestInputRepresentation, existing: ERIDigestInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ERIDigestInputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: ERIDigestInputRepresentationNormalized, incoming: ERIDigestInputRepresentationNormalized): 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: ERIDigestInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * An Input Representation for ERI digest
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ERIDigestInputRepresentationNormalized {
18
+ /** following input */
19
+ following: FollowingInfoInputRepresentation_FollowingInfoInputRepresentation;
20
+ }
21
+ /**
22
+ * An Input Representation for ERI digest
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface ERIDigestInputRepresentation {
28
+ following: FollowingInfoInputRepresentation_FollowingInfoInputRepresentation;
29
+ }
@@ -0,0 +1,29 @@
1
+ import { ERIDigestInputRepresentation as ERIDigestInputRepresentation_ERIDigestInputRepresentation } from './ERIDigestInputRepresentation';
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 = "2960a9bd8b7f9a2434287718b36a3c8f";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: ERIDigestInputRepresentationWrapper, existing: ERIDigestInputRepresentationWrapperNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ERIDigestInputRepresentationWrapperNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: ERIDigestInputRepresentationWrapperNormalized, incoming: ERIDigestInputRepresentationWrapperNormalized): 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: ERIDigestInputRepresentationWrapper, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Wrapper for ERI digest input representation
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ERIDigestInputRepresentationWrapperNormalized {
18
+ /** ERI Digest input represenation */
19
+ eriDigestInput: ERIDigestInputRepresentation_ERIDigestInputRepresentation;
20
+ }
21
+ /**
22
+ * Wrapper for ERI digest input representation
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface ERIDigestInputRepresentationWrapper {
28
+ eriDigestInput: ERIDigestInputRepresentation_ERIDigestInputRepresentation;
29
+ }
@@ -0,0 +1,51 @@
1
+ import { FollowingInfo as FollowingInfo_FollowingInfo } from './FollowingInfo';
2
+ import { DigestNotification as DigestNotification_DigestNotification } from './DigestNotification';
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, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
4
+ export declare const TTL = 1000;
5
+ export declare const VERSION = "954674f4e56dd5b956cf98542401fda9";
6
+ export declare function validate(obj: any, path?: string): TypeError | null;
7
+ export declare const RepresentationType: string;
8
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
9
+ isSuccess: boolean;
10
+ }
11
+ export type ERIDigestOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
12
+ export type PartialERIDigestOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
13
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
14
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): ERIDigestOutputRepresentationNormalizedKeyMetadata;
15
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: ERIDigestOutputRepresentation): string;
16
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ERIDigestOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
17
+ export declare function normalize(input: ERIDigestOutputRepresentation, existing: ERIDigestOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ERIDigestOutputRepresentationNormalized;
18
+ export declare const select: () => $64$luvio_engine_BaseFragment;
19
+ export declare function equals(existing: ERIDigestOutputRepresentationNormalized, incoming: ERIDigestOutputRepresentationNormalized): boolean;
20
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
21
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ERIDigestOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
22
+ /**
23
+ * Output representation of a ERI Digest
24
+ *
25
+ * Keys:
26
+ * isSuccess (boolean): requestSucceeded
27
+ */
28
+ export interface ERIDigestOutputRepresentationNormalized {
29
+ /** Error message */
30
+ errorMsg?: string;
31
+ following?: FollowingInfo_FollowingInfo;
32
+ /** Notifications list */
33
+ notifications?: Array<$64$luvio_engine_StoreLink>;
34
+ /** true if request is succeeded else false */
35
+ requestSucceeded: boolean;
36
+ /** Status code */
37
+ statusCode: string;
38
+ }
39
+ /**
40
+ * Output representation of a ERI Digest
41
+ *
42
+ * Keys:
43
+ * isSuccess (boolean): requestSucceeded
44
+ */
45
+ export interface ERIDigestOutputRepresentation {
46
+ errorMsg?: string;
47
+ following?: FollowingInfo_FollowingInfo;
48
+ notifications?: Array<DigestNotification_DigestNotification>;
49
+ requestSucceeded: boolean;
50
+ statusCode: string;
51
+ }
@@ -0,0 +1,34 @@
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 = "f13216a55726dc792e111571a17425dd";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: FollowingInfo, existing: FollowingInfoNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FollowingInfoNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: FollowingInfoNormalized, incoming: FollowingInfoNormalized): 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: FollowingInfo, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * following info
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface FollowingInfoNormalized {
17
+ /** List of sObjectTypes used in home page mappings */
18
+ filterTypes: Array<string>;
19
+ /** Page number of the eri digest */
20
+ page: number;
21
+ /** List of RecordIds being followed by the user */
22
+ recordIds: Array<string>;
23
+ }
24
+ /**
25
+ * following info
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface FollowingInfo {
31
+ filterTypes: Array<string>;
32
+ page: number;
33
+ recordIds: Array<string>;
34
+ }
@@ -0,0 +1,40 @@
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 = "c19d9858fd94db6848f75214e264451e";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: FollowingInfoInputRepresentation, existing: FollowingInfoInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FollowingInfoInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: FollowingInfoInputRepresentationNormalized, incoming: FollowingInfoInputRepresentationNormalized): 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: FollowingInfoInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * An Input Representation following object
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface FollowingInfoInputRepresentationNormalized {
17
+ /** true for demo reponse else false */
18
+ demo?: boolean;
19
+ /** List of sObjectTypes used in home page mappings */
20
+ filterTypes?: Array<string>;
21
+ /** true if there any more recordIds to be queried for notifications else false */
22
+ hasNext?: boolean;
23
+ /** Page number of the eri relationship digest list */
24
+ page?: number;
25
+ /** List of RecordIds being followed by the user */
26
+ recordIds?: Array<string>;
27
+ }
28
+ /**
29
+ * An Input Representation following object
30
+ *
31
+ * Keys:
32
+ * (none)
33
+ */
34
+ export interface FollowingInfoInputRepresentation {
35
+ demo?: boolean;
36
+ filterTypes?: Array<string>;
37
+ hasNext?: boolean;
38
+ page?: number;
39
+ recordIds?: Array<string>;
40
+ }
@@ -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,74 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-industries-eri",
3
+ "version": "0.1.0-dev1",
4
+ "license": "SEE LICENSE IN LICENSE.txt",
5
+ "description": "Einstein relationship insights",
6
+ "main": "dist/es/es2018/industries-eri.js",
7
+ "module": "dist/es/es2018/industries-eri.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-eri.js",
18
+ "require": "./dist/es/es2018/industries-eri.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": "industriesEriApi"
29
+ },
30
+ "contributors": [
31
+ "pdevagiri@salesforce.com"
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-eri",
40
+ "release:corejar": "yarn build && packages/core-build/scripts/core.js --adapter=lds-adapters-industries-eri",
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
+ },
47
+ "devDependencies": {
48
+ "@salesforce/lds-compiler-plugins": "^0.1.0-dev1",
49
+ "@salesforce/lds-karma": "^0.1.0-dev1"
50
+ },
51
+ "nx": {
52
+ "targets": {
53
+ "build": {
54
+ "outputs": [
55
+ "{projectRoot}/dist",
56
+ "{projectRoot}/sfdc"
57
+ ]
58
+ },
59
+ "build:raml": {
60
+ "outputs": [
61
+ "{projectRoot}/src/generated"
62
+ ]
63
+ },
64
+ "build:karma": {
65
+ "outputs": [
66
+ "{projectRoot}/karma/dist"
67
+ ]
68
+ }
69
+ }
70
+ },
71
+ "volta": {
72
+ "extends": "../../package.json"
73
+ }
74
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';