@salesforce/lds-adapters-cdp-data-transform 1.344.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.
@@ -0,0 +1,62 @@
1
+ import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
2
+ export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
3
+ declare const ObjectKeys: {
4
+ (o: object): string[];
5
+ (o: {}): string[];
6
+ }, ObjectCreate: {
7
+ (o: object | null): any;
8
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
9
+ };
10
+ export { ObjectCreate, ObjectKeys };
11
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
12
+ export declare const ArrayPrototypePush: (...items: any[]) => number;
13
+ export interface AdapterValidationConfig {
14
+ displayName: string;
15
+ parameters: {
16
+ required: string[];
17
+ optional: string[];
18
+ unsupported?: string[];
19
+ };
20
+ }
21
+ /**
22
+ * Validates an adapter config is well-formed.
23
+ * @param config The config to validate.
24
+ * @param adapter The adapter validation configuration.
25
+ * @param oneOf The keys the config must contain at least one of.
26
+ * @throws A TypeError if config doesn't satisfy the adapter's config validation.
27
+ */
28
+ export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
29
+ export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
30
+ export type UncoercedConfiguration<Base, Options extends {
31
+ [key in keyof Base]?: any;
32
+ }> = {
33
+ [Key in keyof Base]?: Base[Key] | Options[Key];
34
+ };
35
+ export type Untrusted<Base> = Partial<Base>;
36
+ export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
37
+ export declare function refreshable<C, D, R>(adapter: $64$luvio_engine_Adapter<C, D>, resolve: (config: unknown) => Promise<$64$luvio_engine_Snapshot<R>>): $64$luvio_engine_Adapter<C, D>;
38
+ export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
39
+ export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
40
+ export declare const snapshotRefreshOptions: {
41
+ overrides: {
42
+ headers: {
43
+ 'Cache-Control': string;
44
+ };
45
+ };
46
+ };
47
+ /**
48
+ * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
49
+ * This is needed because insertion order for JSON.stringify(object) affects output:
50
+ * JSON.stringify({a: 1, b: 2})
51
+ * "{"a":1,"b":2}"
52
+ * JSON.stringify({b: 2, a: 1})
53
+ * "{"b":2,"a":1}"
54
+ * @param data Data to be JSON-stringified.
55
+ * @returns JSON.stringified value with consistent ordering of keys.
56
+ */
57
+ export declare function stableJSONStringify(node: any): string | undefined;
58
+ export declare function getFetchResponseStatusText(status: number): string;
59
+ export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
60
+ export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
61
+ export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
62
+ export declare const keyPrefix = "data-transform";
@@ -0,0 +1,43 @@
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_postSsotDataTransformsValidation_ResourceRequestConfig } from '../resources/postSsotDataTransformsValidation';
4
+ import { DataTransformValidationRepresentation as types_DataTransformValidationRepresentation_DataTransformValidationRepresentation } from '../types/DataTransformValidationRepresentation';
5
+ export declare const adapterName = "validateDataTransforms";
6
+ export declare const validateDataTransforms_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const validateDataTransforms_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface ValidateDataTransformsConfig {
9
+ capabilities?: {
10
+ [key: string]: boolean;
11
+ };
12
+ creationType: string;
13
+ currencyIsoCode?: string;
14
+ dataSpaceName?: string;
15
+ definition: {
16
+ [key: string]: unknown;
17
+ };
18
+ description?: string;
19
+ label?: string;
20
+ name?: string;
21
+ primarySource?: string;
22
+ tags?: {
23
+ [key: string]: string;
24
+ };
25
+ type: string;
26
+ }
27
+ export declare const createResourceParams: (config: ValidateDataTransformsConfig) => resources_postSsotDataTransformsValidation_ResourceRequestConfig;
28
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: ValidateDataTransformsConfig): string;
29
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: ValidateDataTransformsConfig): $64$luvio_engine_NormalizedKeyMetadata;
30
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<ValidateDataTransformsConfig>): adapter$45$utils_Untrusted<ValidateDataTransformsConfig>;
31
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): ValidateDataTransformsConfig | null;
32
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: ValidateDataTransformsConfig): $64$luvio_engine_Fragment;
33
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: ValidateDataTransformsConfig): $64$luvio_engine_Snapshot<types_DataTransformValidationRepresentation_DataTransformValidationRepresentation, any>;
34
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: ValidateDataTransformsConfig, resourceParams: resources_postSsotDataTransformsValidation_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DataTransformValidationRepresentation_DataTransformValidationRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_DataTransformValidationRepresentation_DataTransformValidationRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_DataTransformValidationRepresentation_DataTransformValidationRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_DataTransformValidationRepresentation_DataTransformValidationRepresentation, any>>;
35
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: ValidateDataTransformsConfig, resourceParams: resources_postSsotDataTransformsValidation_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
36
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: ValidateDataTransformsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_DataTransformValidationRepresentation_DataTransformValidationRepresentation, any>>;
37
+ export type BuildSnapshotContext = {
38
+ luvio: $64$luvio_engine_Luvio;
39
+ config: ValidateDataTransformsConfig;
40
+ };
41
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_DataTransformValidationRepresentation_DataTransformValidationRepresentation, any>>;
42
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_DataTransformValidationRepresentation_DataTransformValidationRepresentation>): $64$luvio_engine_Snapshot<types_DataTransformValidationRepresentation_DataTransformValidationRepresentation, any>;
43
+ export declare const validateDataTransformsAdapterFactory: $64$luvio_engine_AdapterFactory<ValidateDataTransformsConfig, types_DataTransformValidationRepresentation_DataTransformValidationRepresentation>;
@@ -0,0 +1 @@
1
+ export { validateDataTransformsAdapterFactory } from '../adapters/validateDataTransforms';
@@ -0,0 +1,3 @@
1
+ declare let validateDataTransforms: any;
2
+ declare let validateDataTransforms_imperative: any;
3
+ export { validateDataTransforms, validateDataTransforms_imperative };
@@ -0,0 +1,31 @@
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 { DataTransformValidationRepresentation as types_DataTransformValidationRepresentation_DataTransformValidationRepresentation } from '../types/DataTransformValidationRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ body: {
5
+ capabilities?: {
6
+ [key: string]: boolean;
7
+ };
8
+ creationType: string;
9
+ currencyIsoCode?: string;
10
+ dataSpaceName?: string;
11
+ definition: {
12
+ [key: string]: unknown;
13
+ };
14
+ description?: string;
15
+ label?: string;
16
+ name?: string;
17
+ primarySource?: string;
18
+ tags?: {
19
+ [key: string]: string;
20
+ };
21
+ type: string;
22
+ };
23
+ }
24
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
25
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
26
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
27
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_DataTransformValidationRepresentation_DataTransformValidationRepresentation): void;
28
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DataTransformValidationRepresentation_DataTransformValidationRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_DataTransformValidationRepresentation_DataTransformValidationRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_DataTransformValidationRepresentation_DataTransformValidationRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_DataTransformValidationRepresentation_DataTransformValidationRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_DataTransformValidationRepresentation_DataTransformValidationRepresentation, any>;
29
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_DataTransformValidationRepresentation_DataTransformValidationRepresentation>): $64$luvio_engine_ErrorSnapshot;
30
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
31
+ export default createResourceRequest;
@@ -0,0 +1,53 @@
1
+ import { CdpUserRepresentation as CdpUserRepresentation_CdpUserRepresentation } from './CdpUserRepresentation';
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 = "5c270c3f3f62b28570d9bc71e589cf45";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: CdpAssetBaseRepresentation, existing: CdpAssetBaseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpAssetBaseRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: CdpAssetBaseRepresentationNormalized, incoming: CdpAssetBaseRepresentationNormalized): 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: CdpAssetBaseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Represents a base Asset
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface CdpAssetBaseRepresentationNormalized {
18
+ /** Created by */
19
+ createdBy?: CdpUserRepresentation_CdpUserRepresentation;
20
+ /** Created date */
21
+ createdDate?: string;
22
+ /** The 18 character ID of the asset */
23
+ id: string;
24
+ /** Label of the asset */
25
+ label?: string;
26
+ /** Last modified by */
27
+ lastModifiedBy?: CdpUserRepresentation_CdpUserRepresentation;
28
+ /** Last modified date */
29
+ lastModifiedDate?: string;
30
+ /** Name of the asset */
31
+ name?: string;
32
+ /** Namespace of the asset */
33
+ namespace?: string;
34
+ /** Url */
35
+ url?: string;
36
+ }
37
+ /**
38
+ * Represents a base Asset
39
+ *
40
+ * Keys:
41
+ * (none)
42
+ */
43
+ export interface CdpAssetBaseRepresentation {
44
+ createdBy?: CdpUserRepresentation_CdpUserRepresentation;
45
+ createdDate?: string;
46
+ id: string;
47
+ label?: string;
48
+ lastModifiedBy?: CdpUserRepresentation_CdpUserRepresentation;
49
+ lastModifiedDate?: string;
50
+ name?: string;
51
+ namespace?: string;
52
+ url?: string;
53
+ }
@@ -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 = "efb82c29d2d2d9ec860406b7caae554d";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: CdpUserRepresentation, existing: CdpUserRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpUserRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: CdpUserRepresentationNormalized, incoming: CdpUserRepresentationNormalized): 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: CdpUserRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Represents a user
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface CdpUserRepresentationNormalized {
17
+ /** The 18 character user ID */
18
+ id: string;
19
+ /** The name of the user */
20
+ name?: string;
21
+ /** The Chatter profile photo of the user */
22
+ profilePhotoUrl?: string;
23
+ }
24
+ /**
25
+ * Represents a user
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface CdpUserRepresentation {
31
+ id: string;
32
+ name?: string;
33
+ profilePhotoUrl?: 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, 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 = "936f1f8f00fb53065758d5f44d534bda";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: DataObjectFieldRepresentation, existing: DataObjectFieldRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DataObjectFieldRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_BaseFragment;
7
+ export declare function equals(existing: DataObjectFieldRepresentationNormalized, incoming: DataObjectFieldRepresentationNormalized): 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: DataObjectFieldRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Data Object Field
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface DataObjectFieldRepresentationNormalized {
17
+ /** Is Primary Key */
18
+ isPrimaryKey: boolean;
19
+ /** Key Qualifier Field */
20
+ keyQualifierField: string;
21
+ /** Label */
22
+ label: string;
23
+ /** Name */
24
+ name: string;
25
+ /** Type */
26
+ type: string;
27
+ }
28
+ /**
29
+ * Data Object Field
30
+ *
31
+ * Keys:
32
+ * (none)
33
+ */
34
+ export interface DataObjectFieldRepresentation {
35
+ isPrimaryKey: boolean;
36
+ keyQualifierField: string;
37
+ label: string;
38
+ name: string;
39
+ type: string;
40
+ }
@@ -0,0 +1,42 @@
1
+ import { CdpAssetBaseRepresentation as CdpAssetBaseRepresentation_CdpAssetBaseRepresentation } from './CdpAssetBaseRepresentation';
2
+ import { DataObjectFieldRepresentation as DataObjectFieldRepresentation_DataObjectFieldRepresentation } from './DataObjectFieldRepresentation';
3
+ 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, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
+ export declare const VERSION = "9e4b2d7a80be5ccb629f0776f1d4fe19";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: DataObjectRepresentation, existing: DataObjectRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DataObjectRepresentationNormalized;
8
+ export declare const select: () => $64$luvio_engine_BaseFragment;
9
+ export declare function equals(existing: DataObjectRepresentationNormalized, incoming: DataObjectRepresentationNormalized): boolean;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: DataObjectRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
+ /**
13
+ * Data Object
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface DataObjectRepresentationNormalized extends CdpAssetBaseRepresentation_CdpAssetBaseRepresentation {
19
+ /** Category */
20
+ category: string;
21
+ /** Event Date Time Field */
22
+ eventDateTimeFieldName?: string;
23
+ /** Fields */
24
+ fields: Array<$64$luvio_engine_StoreLink>;
25
+ /** Record Modified Field */
26
+ recordModifiedFieldName?: string;
27
+ /** Type of Data Object */
28
+ type: string;
29
+ }
30
+ /**
31
+ * Data Object
32
+ *
33
+ * Keys:
34
+ * (none)
35
+ */
36
+ export interface DataObjectRepresentation extends CdpAssetBaseRepresentation_CdpAssetBaseRepresentation {
37
+ category: string;
38
+ eventDateTimeFieldName?: string;
39
+ fields: Array<DataObjectFieldRepresentation_DataObjectFieldRepresentation>;
40
+ recordModifiedFieldName?: string;
41
+ type: string;
42
+ }
@@ -0,0 +1,70 @@
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 = "c291031c56b79b0c1b091a7ef8c96b77";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: DataTransformInputRepresentation, existing: DataTransformInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DataTransformInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_BaseFragment;
7
+ export declare function equals(existing: DataTransformInputRepresentationNormalized, incoming: DataTransformInputRepresentationNormalized): 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: DataTransformInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Input representation for creating a Data Transform
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface DataTransformInputRepresentationNormalized {
17
+ /** A map of capabilities that can be requested for a data transform */
18
+ capabilities?: {
19
+ [key: string]: boolean;
20
+ };
21
+ /** The creation type of the data transform */
22
+ creationType: string;
23
+ /** The currency iso code of the data transform */
24
+ currencyIsoCode?: string;
25
+ /** The data space the data transform belongs to */
26
+ dataSpaceName?: string;
27
+ /** Definition of the data transform. Can be batch or streaming */
28
+ definition: {
29
+ [key: string]: unknown;
30
+ };
31
+ /** Description of the data transform */
32
+ description?: string;
33
+ /** Label of the data transform */
34
+ label?: string;
35
+ /** Name of the data transform */
36
+ name?: string;
37
+ /** The primary source for transform when there are table joins */
38
+ primarySource?: string;
39
+ /** A JSON blob of tags for consumers to add metadata/event info to the transforms they create */
40
+ tags?: {
41
+ [key: string]: string;
42
+ };
43
+ /** Type of data transform - streaming or batch */
44
+ type: string;
45
+ }
46
+ /**
47
+ * Input representation for creating a Data Transform
48
+ *
49
+ * Keys:
50
+ * (none)
51
+ */
52
+ export interface DataTransformInputRepresentation {
53
+ capabilities?: {
54
+ [key: string]: boolean;
55
+ };
56
+ creationType: string;
57
+ currencyIsoCode?: string;
58
+ dataSpaceName?: string;
59
+ definition: {
60
+ [key: string]: unknown;
61
+ };
62
+ description?: string;
63
+ label?: string;
64
+ name?: string;
65
+ primarySource?: string;
66
+ tags?: {
67
+ [key: string]: string;
68
+ };
69
+ type: string;
70
+ }
@@ -0,0 +1,33 @@
1
+ import { TransformValidationIssueRepresentation as TransformValidationIssueRepresentation_TransformValidationIssueRepresentation } from './TransformValidationIssueRepresentation';
2
+ import { DataObjectRepresentation as DataObjectRepresentation_DataObjectRepresentation } from './DataObjectRepresentation';
3
+ 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, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
+ export declare const VERSION = "21a4cd3206473ce28645099a11735bc6";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: DataTransformValidationRepresentation, existing: DataTransformValidationRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DataTransformValidationRepresentationNormalized;
8
+ export declare const select: () => $64$luvio_engine_BaseFragment;
9
+ export declare function equals(existing: DataTransformValidationRepresentationNormalized, incoming: DataTransformValidationRepresentationNormalized): boolean;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: DataTransformValidationRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
+ /**
13
+ * Data Transform validations and output data object Representation
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface DataTransformValidationRepresentationNormalized {
19
+ /** List of validation issues */
20
+ issues?: Array<$64$luvio_engine_StoreLink>;
21
+ /** Output representation of target object */
22
+ outputDataObjects?: Array<$64$luvio_engine_StoreLink>;
23
+ }
24
+ /**
25
+ * Data Transform validations and output data object Representation
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface DataTransformValidationRepresentation {
31
+ issues?: Array<TransformValidationIssueRepresentation_TransformValidationIssueRepresentation>;
32
+ outputDataObjects?: Array<DataObjectRepresentation_DataObjectRepresentation>;
33
+ }
@@ -0,0 +1,34 @@
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 = "bca8236daa5bb5580390d829c9789904";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: TransformValidationIssueRepresentation, existing: TransformValidationIssueRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TransformValidationIssueRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_BaseFragment;
7
+ export declare function equals(existing: TransformValidationIssueRepresentationNormalized, incoming: TransformValidationIssueRepresentationNormalized): 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: TransformValidationIssueRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Data transform validation issue representation
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface TransformValidationIssueRepresentationNormalized {
17
+ /** Error code */
18
+ errorCode?: string;
19
+ /** Error message */
20
+ errorMessage?: string;
21
+ /** Error severity */
22
+ errorSeverity: string;
23
+ }
24
+ /**
25
+ * Data transform validation issue representation
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface TransformValidationIssueRepresentation {
31
+ errorCode?: string;
32
+ errorMessage?: string;
33
+ errorSeverity: string;
34
+ }
@@ -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-data-transform",
3
+ "version": "1.344.0",
4
+ "description": "CRUD API for CDP data transforms",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/cdp-data-transform.js",
7
+ "module": "dist/es/es2018/cdp-data-transform.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-data-transform.js",
18
+ "require": "./dist/es/es2018/cdp-data-transform.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": "cdpDataTransformApi"
29
+ },
30
+ "contributors": [
31
+ "dindurkhya@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-data-transform",
39
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-cdp-data-transform",
40
+ "test:unit": "jest"
41
+ },
42
+ "dependencies": {
43
+ "@salesforce/lds-bindings": "^1.344.0"
44
+ },
45
+ "devDependencies": {
46
+ "@salesforce/lds-compiler-plugins": "^1.344.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';