@salesforce/lds-adapters-platform-data-provider 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 (20) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-data-provider.js +534 -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/getFieldMetadata.d.ts +28 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getSchema.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -0
  8. package/dist/es/es2018/types/src/generated/resources/getConnectDataProvidersFieldMetadataByDataProviderFullyQualifiedNameAndFieldName.d.ts +16 -0
  9. package/dist/es/es2018/types/src/generated/resources/postConnectDataProvidersSchemaByDataProviderFullyQualifiedName.d.ts +18 -0
  10. package/dist/es/es2018/types/src/generated/types/DataProviderFieldMetadataRepresentation.d.ts +33 -0
  11. package/dist/es/es2018/types/src/generated/types/DataProviderSchemaRepresentation.d.ts +33 -0
  12. package/dist/es/es2018/types/src/generated/types/SchemaInputRepresentation.d.ts +28 -0
  13. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  14. package/dist/es/es2018/types/src/raml-artifacts/resources/getConnectDataProvidersFieldMetadataByDataProviderFullyQualifiedNameAndFieldName/keyBuilder.d.ts +3 -0
  15. package/dist/es/es2018/types/src/raml-artifacts/resources/postConnectDataProvidersSchemaByDataProviderFullyQualifiedName/keyBuilder.d.ts +4 -0
  16. package/package.json +79 -0
  17. package/sfdc/index.d.ts +1 -0
  18. package/sfdc/index.js +576 -0
  19. package/src/raml/api.raml +95 -0
  20. package/src/raml/luvio.raml +26 -0
@@ -0,0 +1,28 @@
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_getConnectDataProvidersFieldMetadataByDataProviderFullyQualifiedNameAndFieldName_ResourceRequestConfig } from '../resources/getConnectDataProvidersFieldMetadataByDataProviderFullyQualifiedNameAndFieldName';
4
+ import { DataProviderFieldMetadataRepresentation as types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation } from '../types/DataProviderFieldMetadataRepresentation';
5
+ export declare const adapterName = "getFieldMetadata";
6
+ export declare const getFieldMetadata_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getFieldMetadata_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetFieldMetadataConfig {
9
+ dataProviderFullyQualifiedName: string;
10
+ fieldName: string;
11
+ }
12
+ export declare const createResourceParams: (config: GetFieldMetadataConfig) => resources_getConnectDataProvidersFieldMetadataByDataProviderFullyQualifiedNameAndFieldName_ResourceRequestConfig;
13
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetFieldMetadataConfig): string;
14
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetFieldMetadataConfig): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetFieldMetadataConfig>): adapter$45$utils_Untrusted<GetFieldMetadataConfig>;
16
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetFieldMetadataConfig | null;
17
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetFieldMetadataConfig): $64$luvio_engine_Fragment;
18
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetFieldMetadataConfig): $64$luvio_engine_Snapshot<types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation, any>;
19
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetFieldMetadataConfig, resourceParams: resources_getConnectDataProvidersFieldMetadataByDataProviderFullyQualifiedNameAndFieldName_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation, any>>;
20
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetFieldMetadataConfig, resourceParams: resources_getConnectDataProvidersFieldMetadataByDataProviderFullyQualifiedNameAndFieldName_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
21
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetFieldMetadataConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation, any>>;
22
+ export type BuildSnapshotContext = {
23
+ luvio: $64$luvio_engine_Luvio;
24
+ config: GetFieldMetadataConfig;
25
+ };
26
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation, any>>;
27
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation>): $64$luvio_engine_Snapshot<types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation, any>;
28
+ export declare const getFieldMetadataAdapterFactory: $64$luvio_engine_AdapterFactory<GetFieldMetadataConfig, types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation>;
@@ -0,0 +1,28 @@
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_postConnectDataProvidersSchemaByDataProviderFullyQualifiedName_ResourceRequestConfig } from '../resources/postConnectDataProvidersSchemaByDataProviderFullyQualifiedName';
4
+ import { DataProviderSchemaRepresentation as types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation } from '../types/DataProviderSchemaRepresentation';
5
+ export declare const adapterName = "getSchema";
6
+ export declare const getSchema_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getSchema_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetSchemaConfig {
9
+ dataProviderFullyQualifiedName: string;
10
+ schema: unknown;
11
+ }
12
+ export declare const createResourceParams: (config: GetSchemaConfig) => resources_postConnectDataProvidersSchemaByDataProviderFullyQualifiedName_ResourceRequestConfig;
13
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetSchemaConfig): string;
14
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetSchemaConfig): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetSchemaConfig>): adapter$45$utils_Untrusted<GetSchemaConfig>;
16
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetSchemaConfig | null;
17
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetSchemaConfig): $64$luvio_engine_Fragment;
18
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetSchemaConfig): $64$luvio_engine_Snapshot<types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation, any>;
19
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetSchemaConfig, resourceParams: resources_postConnectDataProvidersSchemaByDataProviderFullyQualifiedName_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation, any>>;
20
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetSchemaConfig, resourceParams: resources_postConnectDataProvidersSchemaByDataProviderFullyQualifiedName_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
21
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetSchemaConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation, any>>;
22
+ export type BuildSnapshotContext = {
23
+ luvio: $64$luvio_engine_Luvio;
24
+ config: GetSchemaConfig;
25
+ };
26
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation, any>>;
27
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation>): $64$luvio_engine_Snapshot<types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation, any>;
28
+ export declare const getSchemaAdapterFactory: $64$luvio_engine_AdapterFactory<GetSchemaConfig, types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation>;
@@ -0,0 +1,2 @@
1
+ export { getSchemaAdapterFactory } from '../adapters/getSchema';
2
+ export { getFieldMetadataAdapterFactory } from '../adapters/getFieldMetadata';
@@ -0,0 +1,5 @@
1
+ declare let getFieldMetadata: any;
2
+ declare let getSchema: any;
3
+ declare let getFieldMetadata_imperative: any;
4
+ declare let getSchema_imperative: any;
5
+ export { getFieldMetadata, getSchema, getFieldMetadata_imperative, getSchema_imperative };
@@ -0,0 +1,16 @@
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 { DataProviderFieldMetadataRepresentation as types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation } from '../types/DataProviderFieldMetadataRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ dataProviderFullyQualifiedName: string;
6
+ fieldName: string;
7
+ };
8
+ }
9
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
10
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
11
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
12
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation): void;
13
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation, any>;
14
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_DataProviderFieldMetadataRepresentation_DataProviderFieldMetadataRepresentation>): $64$luvio_engine_ErrorSnapshot;
15
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
16
+ export default createResourceRequest;
@@ -0,0 +1,18 @@
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 { DataProviderSchemaRepresentation as types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation } from '../types/DataProviderSchemaRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ dataProviderFullyQualifiedName: string;
6
+ };
7
+ body: {
8
+ schema: unknown;
9
+ };
10
+ }
11
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation): void;
15
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation, any>;
16
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_DataProviderSchemaRepresentation_DataProviderSchemaRepresentation>): $64$luvio_engine_ErrorSnapshot;
17
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
18
+ export default createResourceRequest;
@@ -0,0 +1,33 @@
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 TTL = 3600000;
3
+ export declare const VERSION = "8bb941e44209c32ce3ad80bda08962bc";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: DataProviderFieldMetadataRepresentation, existing: DataProviderFieldMetadataRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DataProviderFieldMetadataRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_BaseFragment;
8
+ export declare function equals(existing: DataProviderFieldMetadataRepresentationNormalized, incoming: DataProviderFieldMetadataRepresentationNormalized): 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: DataProviderFieldMetadataRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Data Provider Field Metadata
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface DataProviderFieldMetadataRepresentationNormalized {
18
+ /** The data returned for the provided data provider instance */
19
+ metadata: Array<{
20
+ [key: string]: unknown;
21
+ }>;
22
+ }
23
+ /**
24
+ * Data Provider Field Metadata
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface DataProviderFieldMetadataRepresentation {
30
+ metadata: Array<{
31
+ [key: string]: unknown;
32
+ }>;
33
+ }
@@ -0,0 +1,33 @@
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 TTL = 3600000;
3
+ export declare const VERSION = "fa63b622a17d190f6bafa7967153c8be";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: DataProviderSchemaRepresentation, existing: DataProviderSchemaRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DataProviderSchemaRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_BaseFragment;
8
+ export declare function equals(existing: DataProviderSchemaRepresentationNormalized, incoming: DataProviderSchemaRepresentationNormalized): 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: DataProviderSchemaRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Data Provider Schema
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface DataProviderSchemaRepresentationNormalized {
18
+ /** The expanded type of data provider schema. */
19
+ schema: {
20
+ [key: string]: unknown;
21
+ };
22
+ }
23
+ /**
24
+ * Data Provider Schema
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface DataProviderSchemaRepresentation {
30
+ schema: {
31
+ [key: string]: unknown;
32
+ };
33
+ }
@@ -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 = "bef6ca91fac86b022a15d79548975f75";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: SchemaInputRepresentation, existing: SchemaInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SchemaInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: SchemaInputRepresentationNormalized, incoming: SchemaInputRepresentationNormalized): 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: SchemaInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * The input representation for a data provider schema
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface SchemaInputRepresentationNormalized {
17
+ /** Input schema map used to fetch data provider schema */
18
+ schema: unknown;
19
+ }
20
+ /**
21
+ * The input representation for a data provider schema
22
+ *
23
+ * Keys:
24
+ * (none)
25
+ */
26
+ export interface SchemaInputRepresentation {
27
+ schema: unknown;
28
+ }
@@ -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 {};
@@ -0,0 +1,3 @@
1
+ import type { Luvio } from '@luvio/engine';
2
+ import type { ResourceRequestConfig } from '../../../generated/resources/getConnectDataProvidersFieldMetadataByDataProviderFullyQualifiedNameAndFieldName';
3
+ export declare function keyBuilder(luvio: Luvio, params: ResourceRequestConfig): string;
@@ -0,0 +1,4 @@
1
+ import type { Luvio } from '@luvio/engine';
2
+ import type { ResourceRequestConfig } from '../../../generated/resources/postConnectDataProvidersSchemaByDataProviderFullyQualifiedName';
3
+ export declare function keyBuilder(luvio: Luvio, params: ResourceRequestConfig): string;
4
+ export declare function serializeDataProviderProperties(schema: any): string;
package/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-platform-data-provider",
3
+ "version": "0.1.0-dev1",
4
+ "description": "Data Provider connect api resource family",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/platform-data-provider.js",
7
+ "module": "dist/es/es2018/platform-data-provider.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/platform-data-provider.js",
18
+ "require": "./dist/es/es2018/platform-data-provider.js"
19
+ },
20
+ "./sfdc": {
21
+ "types": "./sfdc/index.d.ts",
22
+ "import": "./sfdc/index.js",
23
+ "default": "./sfdc/index.js"
24
+ }
25
+ },
26
+ "contributors": [
27
+ "t.garg@salesforce.com",
28
+ "cguduru@salesforce.com"
29
+ ],
30
+ "scripts": {
31
+ "build": "yarn build:services",
32
+ "build:karma": "rollup --bundleConfigAsCjs --config rollup.config.karma.js",
33
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p './scripts/lds-platform-data-provider-plugin.js'",
34
+ "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
35
+ "clean": "rm -rf dist sfdc src/generated karma/dist",
36
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-platform-data-provider",
37
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-platform-data-provider",
38
+ "start": "nx build:karma && karma start",
39
+ "test": "nx build:karma && karma start --single-run",
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
+ "@salesforce/lds-karma": "^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
+ "inputs": [
59
+ {
60
+ "externalDependencies": [
61
+ "@luvio/compiler",
62
+ "@luvio/cli"
63
+ ]
64
+ },
65
+ "{projectRoot}/**/*.raml",
66
+ "{projectRoot}/scripts/**"
67
+ ],
68
+ "outputs": [
69
+ "{projectRoot}/src/generated"
70
+ ]
71
+ },
72
+ "build:karma": {
73
+ "outputs": [
74
+ "{projectRoot}/karma/dist"
75
+ ]
76
+ }
77
+ }
78
+ }
79
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';