@salesforce/lds-adapters-cdp-query 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/cdp-query.js +485 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/cdpQuery.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/adapters/universalIdLookupBySourceId.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotUniversalIdLookupByDataSourceIdAndDataSourceObjectIdAndEntityNameAndSourceRecordId.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotQuery.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/types/CdpQueryDataOutputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/CdpQueryInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/CdpQueryOutputRepresentation.d.ts +60 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +525 -0
- package/src/raml/api.raml +133 -0
- package/src/raml/luvio.raml +28 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_getSsotUniversalIdLookupByDataSourceIdAndDataSourceObjectIdAndEntityNameAndSourceRecordId_ResourceRequestConfig } from '../resources/getSsotUniversalIdLookupByDataSourceIdAndDataSourceObjectIdAndEntityNameAndSourceRecordId';
|
|
4
|
+
import { CdpQueryDataOutputRepresentation as types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation } from '../types/CdpQueryDataOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "universalIdLookupBySourceId";
|
|
6
|
+
export declare const universalIdLookupBySourceId_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const universalIdLookupBySourceId_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface UniversalIdLookupBySourceIdConfig {
|
|
9
|
+
dataSourceId: string;
|
|
10
|
+
dataSourceObjectId: string;
|
|
11
|
+
entityName: string;
|
|
12
|
+
sourceRecordId: string;
|
|
13
|
+
dataspace?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const createResourceParams: (config: UniversalIdLookupBySourceIdConfig) => resources_getSsotUniversalIdLookupByDataSourceIdAndDataSourceObjectIdAndEntityNameAndSourceRecordId_ResourceRequestConfig;
|
|
16
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: UniversalIdLookupBySourceIdConfig): string;
|
|
17
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: UniversalIdLookupBySourceIdConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
18
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UniversalIdLookupBySourceIdConfig>): adapter$45$utils_Untrusted<UniversalIdLookupBySourceIdConfig>;
|
|
19
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): UniversalIdLookupBySourceIdConfig | null;
|
|
20
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: UniversalIdLookupBySourceIdConfig): $64$luvio_engine_Fragment;
|
|
21
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: UniversalIdLookupBySourceIdConfig): $64$luvio_engine_Snapshot<types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation, any>;
|
|
22
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: UniversalIdLookupBySourceIdConfig, resourceParams: resources_getSsotUniversalIdLookupByDataSourceIdAndDataSourceObjectIdAndEntityNameAndSourceRecordId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation, any>>;
|
|
23
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: UniversalIdLookupBySourceIdConfig, resourceParams: resources_getSsotUniversalIdLookupByDataSourceIdAndDataSourceObjectIdAndEntityNameAndSourceRecordId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
24
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: UniversalIdLookupBySourceIdConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation, any>>;
|
|
25
|
+
export type BuildSnapshotContext = {
|
|
26
|
+
luvio: $64$luvio_engine_Luvio;
|
|
27
|
+
config: UniversalIdLookupBySourceIdConfig;
|
|
28
|
+
};
|
|
29
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation, any>>;
|
|
30
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation>): $64$luvio_engine_Snapshot<types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation, any>;
|
|
31
|
+
export declare const universalIdLookupBySourceIdAdapterFactory: $64$luvio_engine_AdapterFactory<UniversalIdLookupBySourceIdConfig, types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { CdpQueryDataOutputRepresentation as types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation } from '../types/CdpQueryDataOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
dataSourceId: string;
|
|
6
|
+
dataSourceObjectId: string;
|
|
7
|
+
entityName: string;
|
|
8
|
+
sourceRecordId: string;
|
|
9
|
+
};
|
|
10
|
+
queryParams: {
|
|
11
|
+
dataspace?: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
15
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
16
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
17
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation): void;
|
|
18
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation, any>;
|
|
19
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_CdpQueryDataOutputRepresentation_CdpQueryDataOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
20
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
21
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { CdpQueryOutputRepresentation as types_CdpQueryOutputRepresentation_CdpQueryOutputRepresentation } from '../types/CdpQueryOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
queryParams: {
|
|
5
|
+
batchSize?: number;
|
|
6
|
+
dataspace?: string;
|
|
7
|
+
offset?: number;
|
|
8
|
+
orderby?: string;
|
|
9
|
+
};
|
|
10
|
+
body: {
|
|
11
|
+
sql: string;
|
|
12
|
+
userAgent: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
16
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_CdpQueryOutputRepresentation_CdpQueryOutputRepresentation): void;
|
|
17
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CdpQueryOutputRepresentation_CdpQueryOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CdpQueryOutputRepresentation_CdpQueryOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CdpQueryOutputRepresentation_CdpQueryOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CdpQueryOutputRepresentation_CdpQueryOutputRepresentation, any>;
|
|
18
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
19
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 = "7df04f81d9b64d7cdebf01b86018ba25";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: CdpQueryDataOutputRepresentation, existing: CdpQueryDataOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpQueryDataOutputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
7
|
+
export declare function equals(existing: CdpQueryDataOutputRepresentationNormalized, incoming: CdpQueryDataOutputRepresentationNormalized): 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: CdpQueryDataOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Represents Cdp Query Data Output
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface CdpQueryDataOutputRepresentationNormalized {
|
|
17
|
+
/** Result data set */
|
|
18
|
+
data: Array<unknown>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Represents Cdp Query Data Output
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface CdpQueryDataOutputRepresentation {
|
|
27
|
+
data: Array<unknown>;
|
|
28
|
+
}
|
|
@@ -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 = "97f287735601dbb1a4cee846d93ead08";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: CdpQueryInputRepresentation, existing: CdpQueryInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpQueryInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: CdpQueryInputRepresentationNormalized, incoming: CdpQueryInputRepresentationNormalized): 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: CdpQueryInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Input representation for creating CDP query
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface CdpQueryInputRepresentationNormalized {
|
|
17
|
+
/** Sql */
|
|
18
|
+
sql: string;
|
|
19
|
+
/** UserAgent */
|
|
20
|
+
userAgent: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Input representation for creating CDP query
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface CdpQueryInputRepresentation {
|
|
29
|
+
sql: string;
|
|
30
|
+
userAgent: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
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';
|
|
2
|
+
export declare const TTL = 100;
|
|
3
|
+
export declare const VERSION = "318ac9ee34fe90764a782a1b3eac7d16";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export type CdpQueryOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialCdpQueryOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
12
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): CdpQueryOutputRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: CdpQueryOutputRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: CdpQueryOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
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;
|
|
16
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
17
|
+
export declare function equals(existing: CdpQueryOutputRepresentationNormalized, incoming: CdpQueryOutputRepresentationNormalized): boolean;
|
|
18
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpQueryOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
|
+
/**
|
|
21
|
+
* Represents Cdp Query output
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* id (string): queryId
|
|
25
|
+
*/
|
|
26
|
+
export interface CdpQueryOutputRepresentationNormalized {
|
|
27
|
+
/** Result data set */
|
|
28
|
+
data: Array<{}>;
|
|
29
|
+
/** Query start time */
|
|
30
|
+
done: boolean;
|
|
31
|
+
/** Query end time */
|
|
32
|
+
endTime: string;
|
|
33
|
+
/** Query start time */
|
|
34
|
+
metadata: {
|
|
35
|
+
[key: string]: {};
|
|
36
|
+
};
|
|
37
|
+
/** Query Id */
|
|
38
|
+
queryId: string;
|
|
39
|
+
/** Query start time */
|
|
40
|
+
rowCount: number;
|
|
41
|
+
/** Query start time */
|
|
42
|
+
startTime: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Represents Cdp Query output
|
|
46
|
+
*
|
|
47
|
+
* Keys:
|
|
48
|
+
* id (string): queryId
|
|
49
|
+
*/
|
|
50
|
+
export interface CdpQueryOutputRepresentation {
|
|
51
|
+
data: Array<{}>;
|
|
52
|
+
done: boolean;
|
|
53
|
+
endTime: string;
|
|
54
|
+
metadata: {
|
|
55
|
+
[key: string]: {};
|
|
56
|
+
};
|
|
57
|
+
queryId: string;
|
|
58
|
+
rowCount: number;
|
|
59
|
+
startTime: string;
|
|
60
|
+
}
|
|
@@ -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-query",
|
|
3
|
+
"version": "0.1.0-dev1",
|
|
4
|
+
"description": "CDP Query",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
|
+
"main": "dist/es/es2018/cdp-query.js",
|
|
7
|
+
"module": "dist/es/es2018/cdp-query.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-query.js",
|
|
18
|
+
"require": "./dist/es/es2018/cdp-query.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": "cdpQueryApi"
|
|
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-query",
|
|
39
|
+
"release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-cdp-query",
|
|
40
|
+
"test:unit": "jest"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@salesforce/lds-bindings": "^0.1.0-dev1"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^0.1.0-dev1"
|
|
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
|
+
}
|
package/sfdc/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';
|