@salesforce/lds-adapters-cdp-calculated-insights 1.295.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.
Files changed (27) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/cdp-calculated-insights.js +1457 -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/getCdpCalculatedInsight.d.ts +28 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getCdpCalculatedInsightCollection.d.ts +32 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getCdpInsightsQuery.d.ts +35 -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 +8 -0
  9. package/dist/es/es2018/types/src/generated/resources/getSsotCalculatedInsights.d.ts +20 -0
  10. package/dist/es/es2018/types/src/generated/resources/getSsotCalculatedInsightsByApiName.d.ts +16 -0
  11. package/dist/es/es2018/types/src/generated/resources/getSsotInsightCalculatedInsightsByCiName.d.ts +25 -0
  12. package/dist/es/es2018/types/src/generated/types/CdpCalculatedInsightCollectionDataRepresentation.d.ts +62 -0
  13. package/dist/es/es2018/types/src/generated/types/CdpCalculatedInsightCollectionRepresentation.d.ts +29 -0
  14. package/dist/es/es2018/types/src/generated/types/CdpCalculatedInsightDataSourceRepresentation.d.ts +31 -0
  15. package/dist/es/es2018/types/src/generated/types/CdpCalculatedInsightDimensionRepresentation.d.ts +50 -0
  16. package/dist/es/es2018/types/src/generated/types/CdpCalculatedInsightErrorResponseRepresentation.d.ts +40 -0
  17. package/dist/es/es2018/types/src/generated/types/CdpCalculatedInsightMeasureRepresentation.d.ts +50 -0
  18. package/dist/es/es2018/types/src/generated/types/CdpCalculatedInsightRepresentation.d.ts +99 -0
  19. package/dist/es/es2018/types/src/generated/types/CdpQueryMetadataItemRepresentation.d.ts +34 -0
  20. package/dist/es/es2018/types/src/generated/types/CdpQueryMetadataOutputRepresentation.d.ts +28 -0
  21. package/dist/es/es2018/types/src/generated/types/CdpQueryOutputRepresentation.d.ts +54 -0
  22. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  23. package/package.json +66 -0
  24. package/sfdc/index.d.ts +1 -0
  25. package/sfdc/index.js +1555 -0
  26. package/src/raml/api.raml +360 -0
  27. package/src/raml/luvio.raml +49 -0
@@ -0,0 +1,99 @@
1
+ import { CdpCalculatedInsightDimensionRepresentation as CdpCalculatedInsightDimensionRepresentation_CdpCalculatedInsightDimensionRepresentation } from './CdpCalculatedInsightDimensionRepresentation';
2
+ import { CdpCalculatedInsightMeasureRepresentation as CdpCalculatedInsightMeasureRepresentation_CdpCalculatedInsightMeasureRepresentation } from './CdpCalculatedInsightMeasureRepresentation';
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 VERSION = "f316567639b3e0e679952c9d3a21ba22";
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
+ apiName: string;
9
+ }
10
+ export type CdpCalculatedInsightRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export type PartialCdpCalculatedInsightRepresentationNormalizedKeyMetadata = 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): CdpCalculatedInsightRepresentationNormalizedKeyMetadata;
14
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: CdpCalculatedInsightRepresentation): string;
15
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: CdpCalculatedInsightRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function normalize(input: CdpCalculatedInsightRepresentation, existing: CdpCalculatedInsightRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpCalculatedInsightRepresentationNormalized;
17
+ export declare const select: () => $64$luvio_engine_BaseFragment;
18
+ export declare function equals(existing: CdpCalculatedInsightRepresentationNormalized, incoming: CdpCalculatedInsightRepresentationNormalized): 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: CdpCalculatedInsightRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
+ /**
22
+ * A calculated insight.
23
+ *
24
+ * Keys:
25
+ * apiName (string): apiName
26
+ */
27
+ export interface CdpCalculatedInsightRepresentationNormalized {
28
+ /** Api Name */
29
+ apiName: string;
30
+ /** Calculated Insight Status */
31
+ calculatedInsightStatus: string;
32
+ /** Creation Type */
33
+ creationType: string;
34
+ /** Data Space */
35
+ dataSpace: string;
36
+ /** Definition Status */
37
+ definitionStatus: string;
38
+ /** Definition Type */
39
+ definitionType: string;
40
+ /** Description */
41
+ description: string | null;
42
+ /** Dimensions */
43
+ dimensions: Array<$64$luvio_engine_StoreLink>;
44
+ /** Display Name */
45
+ displayName: string;
46
+ /** Expression */
47
+ expression: string;
48
+ /** Is Enabled */
49
+ isEnabled: boolean;
50
+ /** Last Calc Insight Status Date Time */
51
+ lastCalcInsightStatusDateTime: string;
52
+ /** Last Calc Insight Status Error Code */
53
+ lastCalcInsightStatusErrorCode: string | null;
54
+ /** Last Run Date Time */
55
+ lastRunDateTime: string | null;
56
+ /** Last Run Status */
57
+ lastRunStatus: string | null;
58
+ /** Last Run Status Date Time */
59
+ lastRunStatusDateTime: string | null;
60
+ /** Last Run Status Error Code */
61
+ lastRunStatusErrorCode: string | null;
62
+ /** Measures */
63
+ measures: Array<$64$luvio_engine_StoreLink>;
64
+ /** Publish Schedule End Date Expected format: Expected: yyyy-MM-dd */
65
+ publishScheduleEndDate: string | null;
66
+ /** Publish Schedule Interval NOT_SCHEDULED, SIX, TWELVE, TWENTY_FOUR */
67
+ publishScheduleInterval: string;
68
+ /** Publish Schedule Start Date Time Expected format: Expected: yyyy-MM-ddTHH:mm */
69
+ publishScheduleStartDateTime: string | null;
70
+ }
71
+ /**
72
+ * A calculated insight.
73
+ *
74
+ * Keys:
75
+ * apiName (string): apiName
76
+ */
77
+ export interface CdpCalculatedInsightRepresentation {
78
+ apiName: string;
79
+ calculatedInsightStatus: string;
80
+ creationType: string;
81
+ dataSpace: string;
82
+ definitionStatus: string;
83
+ definitionType: string;
84
+ description: string | null;
85
+ dimensions: Array<CdpCalculatedInsightDimensionRepresentation_CdpCalculatedInsightDimensionRepresentation>;
86
+ displayName: string;
87
+ expression: string;
88
+ isEnabled: boolean;
89
+ lastCalcInsightStatusDateTime: string;
90
+ lastCalcInsightStatusErrorCode: string | null;
91
+ lastRunDateTime: string | null;
92
+ lastRunStatus: string | null;
93
+ lastRunStatusDateTime: string | null;
94
+ lastRunStatusErrorCode: string | null;
95
+ measures: Array<CdpCalculatedInsightMeasureRepresentation_CdpCalculatedInsightMeasureRepresentation>;
96
+ publishScheduleEndDate: string | null;
97
+ publishScheduleInterval: string;
98
+ publishScheduleStartDateTime: string | null;
99
+ }
@@ -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 = "8293e83eb3771a7b903824275434b525";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: CdpQueryMetadataItemRepresentation, existing: CdpQueryMetadataItemRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpQueryMetadataItemRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: CdpQueryMetadataItemRepresentationNormalized, incoming: CdpQueryMetadataItemRepresentationNormalized): 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: CdpQueryMetadataItemRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Represents Cdp Metadata Item
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface CdpQueryMetadataItemRepresentationNormalized {
17
+ /** Attribute place order in the result */
18
+ placeInOrder: number;
19
+ /** Metadata Type for Column */
20
+ type: string;
21
+ /** Metadata Type Code */
22
+ typeCode: number;
23
+ }
24
+ /**
25
+ * Represents Cdp Metadata Item
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface CdpQueryMetadataItemRepresentation {
31
+ placeInOrder: number;
32
+ type: string;
33
+ typeCode: number;
34
+ }
@@ -0,0 +1,28 @@
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 = "a0036640c345be607bf95400f357556f";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: CdpQueryMetadataOutputRepresentation, existing: CdpQueryMetadataOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpQueryMetadataOutputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: CdpQueryMetadataOutputRepresentationNormalized, incoming: CdpQueryMetadataOutputRepresentationNormalized): 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: CdpQueryMetadataOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Represents Cdp Query Metadata Output
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface CdpQueryMetadataOutputRepresentationNormalized {
17
+ /** Result metadata set */
18
+ metadata: Array<{}>;
19
+ }
20
+ /**
21
+ * Represents Cdp Query Metadata Output
22
+ *
23
+ * Keys:
24
+ * (none)
25
+ */
26
+ export interface CdpQueryMetadataOutputRepresentation {
27
+ metadata: Array<{}>;
28
+ }
@@ -0,0 +1,54 @@
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 = "f7dafa2848516fc627f377709ba0b375";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: CdpQueryOutputRepresentation, existing: CdpQueryOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpQueryOutputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: CdpQueryOutputRepresentationNormalized, incoming: CdpQueryOutputRepresentationNormalized): 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: CdpQueryOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Represents Cdp Query output
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface CdpQueryOutputRepresentationNormalized {
17
+ /** Result data set */
18
+ data: Array<{
19
+ [key: string]: unknown;
20
+ }>;
21
+ /** Query start time */
22
+ done: boolean;
23
+ /** Query end time */
24
+ endTime?: string;
25
+ /** Query start time */
26
+ metadata: {
27
+ [key: string]: unknown;
28
+ };
29
+ /** Query Id */
30
+ queryId?: string;
31
+ /** Query start time */
32
+ rowCount?: number;
33
+ /** Query start time */
34
+ startTime?: string;
35
+ }
36
+ /**
37
+ * Represents Cdp Query output
38
+ *
39
+ * Keys:
40
+ * (none)
41
+ */
42
+ export interface CdpQueryOutputRepresentation {
43
+ data: Array<{
44
+ [key: string]: unknown;
45
+ }>;
46
+ done: boolean;
47
+ endTime?: string;
48
+ metadata: {
49
+ [key: string]: unknown;
50
+ };
51
+ queryId?: string;
52
+ rowCount?: number;
53
+ startTime?: string;
54
+ }
@@ -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,66 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-cdp-calculated-insights",
3
+ "version": "1.295.0",
4
+ "description": "Calculated Insights related API calls",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/cdp-calculated-insights.js",
7
+ "module": "dist/es/es2018/cdp-calculated-insights.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/cdp-calculated-insights.js",
18
+ "require": "./dist/es/es2018/cdp-calculated-insights.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": "cdpCalculatedInsightsApi"
29
+ },
30
+ "contributors": [
31
+ "raskraba@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-cdp-calculated-insights",
39
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-cdp-calculated-insights",
40
+ "test:unit": "jest"
41
+ },
42
+ "dependencies": {
43
+ "@salesforce/lds-bindings": "^1.295.0"
44
+ },
45
+ "devDependencies": {
46
+ "@salesforce/lds-compiler-plugins": "^1.295.0"
47
+ },
48
+ "nx": {
49
+ "targets": {
50
+ "build": {
51
+ "outputs": [
52
+ "{projectRoot}/dist",
53
+ "{projectRoot}/sfdc"
54
+ ]
55
+ },
56
+ "build:raml": {
57
+ "outputs": [
58
+ "{projectRoot}/src/generated"
59
+ ]
60
+ }
61
+ }
62
+ },
63
+ "volta": {
64
+ "extends": "../../package.json"
65
+ }
66
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';