@salesforce/lds-adapters-industries-omnianalytics 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.
Files changed (27) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-omnianalytics.js +1870 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/fetchOmniAnalyticsLogs.d.ts +34 -0
  5. package/dist/es/es2018/types/src/generated/adapters/fetchOmniAnalyticsMetadata.d.ts +30 -0
  6. package/dist/es/es2018/types/src/generated/adapters/storeOmniAnalyticsLogs.d.ts +19 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +6 -0
  9. package/dist/es/es2018/types/src/generated/resources/getConnectOmniAnalyticsAnalyticsMetadata.d.ts +18 -0
  10. package/dist/es/es2018/types/src/generated/resources/getConnectOmniAnalyticsGetAnalyticsLogs.d.ts +22 -0
  11. package/dist/es/es2018/types/src/generated/resources/postConnectOmniAnalyticsAnalyticsLogs.d.ts +16 -0
  12. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsLogCreateRepresentation.d.ts +47 -0
  13. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsLogDetailRepresentation.d.ts +46 -0
  14. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsLogInputRepresentation.d.ts +40 -0
  15. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsLogsRepresentation.d.ts +33 -0
  16. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsMetadataRepresentation.d.ts +46 -0
  17. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsSettingRepresentation.d.ts +31 -0
  18. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsTrackingComponentRepresentation.d.ts +46 -0
  19. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsTrackingExternalDefRepresentation.d.ts +46 -0
  20. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsTrackingExternalEventDefRepresentation.d.ts +49 -0
  21. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsTrackingGroupRepresentation.d.ts +55 -0
  22. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  23. package/package.json +69 -0
  24. package/sfdc/index.d.ts +1 -0
  25. package/sfdc/index.js +1927 -0
  26. package/src/raml/api.raml +377 -0
  27. package/src/raml/luvio.raml +35 -0
@@ -0,0 +1,49 @@
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 = "1c4d8ed71bfcb107dd8015a6c5a862fb";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: OmniAnalyticsTrackingExternalEventDefRepresentation, existing: OmniAnalyticsTrackingExternalEventDefRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): OmniAnalyticsTrackingExternalEventDefRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: OmniAnalyticsTrackingExternalEventDefRepresentationNormalized, incoming: OmniAnalyticsTrackingExternalEventDefRepresentationNormalized): 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: OmniAnalyticsTrackingExternalEventDefRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Mock Description
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface OmniAnalyticsTrackingExternalEventDefRepresentationNormalized {
17
+ /** The component type being tracked */
18
+ componentType?: string;
19
+ /** Description of the external tracking configuration event type */
20
+ description: string;
21
+ /** The 18 character Salesforce record Identifier */
22
+ identifier: string;
23
+ /** Rules for evaluating data from the event payload that decide if the event is sent. */
24
+ inclusionRule: string;
25
+ /** Name of the external tracking configuration event type */
26
+ name: string;
27
+ /** The parent external tracking configuration Identified */
28
+ omniExtTrackingDefId?: string;
29
+ /** A UUID generated internally by Salesforce to uniquely identify a record across all orgs */
30
+ omniExtTrackingEventDefKey?: string;
31
+ /** The payload template structure with placeholders for runtime data. This is used at runtime to generate the actual payload to be sent to the external Analytics service. */
32
+ payloadTemplate?: string;
33
+ }
34
+ /**
35
+ * Mock Description
36
+ *
37
+ * Keys:
38
+ * (none)
39
+ */
40
+ export interface OmniAnalyticsTrackingExternalEventDefRepresentation {
41
+ componentType?: string;
42
+ description: string;
43
+ identifier: string;
44
+ inclusionRule: string;
45
+ name: string;
46
+ omniExtTrackingDefId?: string;
47
+ omniExtTrackingEventDefKey?: string;
48
+ payloadTemplate?: string;
49
+ }
@@ -0,0 +1,55 @@
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 = "0ea01ba368d55ea9d81e0fcd069dbdeb";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: OmniAnalyticsTrackingGroupRepresentation, existing: OmniAnalyticsTrackingGroupRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): OmniAnalyticsTrackingGroupRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: OmniAnalyticsTrackingGroupRepresentationNormalized, incoming: OmniAnalyticsTrackingGroupRepresentationNormalized): 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: OmniAnalyticsTrackingGroupRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Mock Description
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface OmniAnalyticsTrackingGroupRepresentationNormalized {
17
+ /** Description of the Omni Analytics tracking group */
18
+ description?: string;
19
+ /** Date when the group became inactive and is ready for deletion */
20
+ endDate?: string;
21
+ /** The group type. Possible values: Internal, External */
22
+ groupType: string;
23
+ /** The 18 character Salesforce record Identifier */
24
+ identifier: string;
25
+ /** Indicates whether the group is active (true) or not (false). The default value is true. */
26
+ isActive: string;
27
+ /** The maximum number of days the group and its analytics data is active beyond which the data is deleted. */
28
+ maxAgeInDays?: string;
29
+ /** A unique name for the tracking group. */
30
+ name: string;
31
+ /** The external tracking configuration definition Identifier associated with the tracking group definition. */
32
+ omniExtTrackingDefId?: string;
33
+ /** A UUID generated internally by Salesforce to uniquely identify a record across all orgs. */
34
+ omniTrackingGroupKey: string;
35
+ /** Date when the group became active */
36
+ startDate?: string;
37
+ }
38
+ /**
39
+ * Mock Description
40
+ *
41
+ * Keys:
42
+ * (none)
43
+ */
44
+ export interface OmniAnalyticsTrackingGroupRepresentation {
45
+ description?: string;
46
+ endDate?: string;
47
+ groupType: string;
48
+ identifier: string;
49
+ isActive: string;
50
+ maxAgeInDays?: string;
51
+ name: string;
52
+ omniExtTrackingDefId?: string;
53
+ omniTrackingGroupKey: string;
54
+ startDate?: string;
55
+ }
@@ -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,69 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-industries-omnianalytics",
3
+ "version": "0.1.0-dev1",
4
+ "description": "Wire adapters for Omni Analytics feature in Industries cloud.",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/industries-omnianalytics.js",
7
+ "module": "dist/es/es2018/industries-omnianalytics.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-omnianalytics.js",
18
+ "require": "./dist/es/es2018/industries-omnianalytics.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": "industriesOmnianalyticsApi"
29
+ },
30
+ "contributors": [
31
+ "harish.r@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": "yarn build && yarn build:core-artifacts && python3 output/lds/release.py --outputDir ./output",
40
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-industries-omnianalytics",
41
+ "start": "nx build:karma && karma start",
42
+ "test": "yarn build:services && jest",
43
+ "test:unit": "jest"
44
+ },
45
+ "dependencies": {
46
+ "@salesforce/lds-bindings": "^0.1.0-dev1"
47
+ },
48
+ "devDependencies": {
49
+ "@salesforce/lds-compiler-plugins": "^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
+ }
65
+ },
66
+ "volta": {
67
+ "extends": "../../package.json"
68
+ }
69
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';