@salesforce/lds-adapters-industries-filebased-dataimport 1.247.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.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/industries-filebased-dataimport.js +1219 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getFileBasedDataImports.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/adapters/getGetCsvPreview.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/adapters/startAdvanceImport.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/adapters/startSimpleImport.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectIndustriesFileBasedDataImports.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectIndustriesFileBasedDataImportsPreviewByFileBasedImportId.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectIndustriesFileBasedDataImportsAdvanceImport.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectIndustriesFileBasedDataImportsSimpleImport.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/CsvPreviewOutputRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/FieldConfigurationInputRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/FileBasedDataImportByUserResultRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/FileBasedDataImportRepresentation.d.ts +55 -0
- package/dist/es/es2018/types/src/generated/types/FileImportInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/FileImportOutputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/ImportOperationInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ImportOptionsInputRepresentation.d.ts +39 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +68 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1269 -0
- package/src/raml/api.raml +252 -0
- package/src/raml/luvio.raml +50 -0
|
@@ -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 = "fileBased-dataimport";
|
|
@@ -0,0 +1,26 @@
|
|
|
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_getConnectIndustriesFileBasedDataImports_ResourceRequestConfig } from '../resources/getConnectIndustriesFileBasedDataImports';
|
|
4
|
+
import { FileBasedDataImportByUserResultRepresentation as types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation } from '../types/FileBasedDataImportByUserResultRepresentation';
|
|
5
|
+
export declare const adapterName = "getFileBasedDataImports";
|
|
6
|
+
export declare const getFileBasedDataImports_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getFileBasedDataImports_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetFileBasedDataImportsConfig {
|
|
9
|
+
}
|
|
10
|
+
export declare const createResourceParams: (config: GetFileBasedDataImportsConfig) => resources_getConnectIndustriesFileBasedDataImports_ResourceRequestConfig;
|
|
11
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetFileBasedDataImportsConfig): string;
|
|
12
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetFileBasedDataImportsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
13
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetFileBasedDataImportsConfig>): adapter$45$utils_Untrusted<GetFileBasedDataImportsConfig>;
|
|
14
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetFileBasedDataImportsConfig | null;
|
|
15
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetFileBasedDataImportsConfig): $64$luvio_engine_Fragment;
|
|
16
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetFileBasedDataImportsConfig): $64$luvio_engine_Snapshot<types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation, any>;
|
|
17
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetFileBasedDataImportsConfig, resourceParams: resources_getConnectIndustriesFileBasedDataImports_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation, any>>;
|
|
18
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetFileBasedDataImportsConfig, resourceParams: resources_getConnectIndustriesFileBasedDataImports_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
19
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetFileBasedDataImportsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation, any>>;
|
|
20
|
+
export type BuildSnapshotContext = {
|
|
21
|
+
luvio: $64$luvio_engine_Luvio;
|
|
22
|
+
config: GetFileBasedDataImportsConfig;
|
|
23
|
+
};
|
|
24
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation, any>>;
|
|
25
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation>): $64$luvio_engine_Snapshot<types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation, any>;
|
|
26
|
+
export declare const getFileBasedDataImportsAdapterFactory: $64$luvio_engine_AdapterFactory<GetFileBasedDataImportsConfig, types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation>;
|
|
@@ -0,0 +1,30 @@
|
|
|
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_getConnectIndustriesFileBasedDataImportsPreviewByFileBasedImportId_ResourceRequestConfig } from '../resources/getConnectIndustriesFileBasedDataImportsPreviewByFileBasedImportId';
|
|
4
|
+
import { CsvPreviewOutputRepresentation as types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation } from '../types/CsvPreviewOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "getGetCsvPreview";
|
|
6
|
+
export declare const getGetCsvPreview_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getGetCsvPreview_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetGetCsvPreviewConfig {
|
|
9
|
+
fileBasedImportId: string;
|
|
10
|
+
delimiter?: string;
|
|
11
|
+
endOfLine?: string;
|
|
12
|
+
numberOfRows?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const createResourceParams: (config: GetGetCsvPreviewConfig) => resources_getConnectIndustriesFileBasedDataImportsPreviewByFileBasedImportId_ResourceRequestConfig;
|
|
15
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetGetCsvPreviewConfig): string;
|
|
16
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetGetCsvPreviewConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
17
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetGetCsvPreviewConfig>): adapter$45$utils_Untrusted<GetGetCsvPreviewConfig>;
|
|
18
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetGetCsvPreviewConfig | null;
|
|
19
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetGetCsvPreviewConfig): $64$luvio_engine_Fragment;
|
|
20
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetGetCsvPreviewConfig): $64$luvio_engine_Snapshot<types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation, any>;
|
|
21
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetGetCsvPreviewConfig, resourceParams: resources_getConnectIndustriesFileBasedDataImportsPreviewByFileBasedImportId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation, any>>;
|
|
22
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetGetCsvPreviewConfig, resourceParams: resources_getConnectIndustriesFileBasedDataImportsPreviewByFileBasedImportId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
23
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetGetCsvPreviewConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation, any>>;
|
|
24
|
+
export type BuildSnapshotContext = {
|
|
25
|
+
luvio: $64$luvio_engine_Luvio;
|
|
26
|
+
config: GetGetCsvPreviewConfig;
|
|
27
|
+
};
|
|
28
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation, any>>;
|
|
29
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation>): $64$luvio_engine_Snapshot<types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation, any>;
|
|
30
|
+
export declare const getGetCsvPreviewAdapterFactory: $64$luvio_engine_AdapterFactory<GetGetCsvPreviewConfig, types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, 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 { ImportOptionsInputRepresentation as types_ImportOptionsInputRepresentation_ImportOptionsInputRepresentation } from '../types/ImportOptionsInputRepresentation';
|
|
4
|
+
import { ResourceRequestConfig as resources_postConnectIndustriesFileBasedDataImportsAdvanceImport_ResourceRequestConfig } from '../resources/postConnectIndustriesFileBasedDataImportsAdvanceImport';
|
|
5
|
+
import { FileImportOutputRepresentation as types_FileImportOutputRepresentation_FileImportOutputRepresentation } from '../types/FileImportOutputRepresentation';
|
|
6
|
+
export declare const adapterName = "startAdvanceImport";
|
|
7
|
+
export declare const startAdvanceImport_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
|
+
export declare const startAdvanceImport_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
|
+
export interface StartAdvanceImportConfig {
|
|
10
|
+
importReferenceId: string;
|
|
11
|
+
options?: types_ImportOptionsInputRepresentation_ImportOptionsInputRepresentation;
|
|
12
|
+
targetContext: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const createResourceParams: (config: StartAdvanceImportConfig) => resources_postConnectIndustriesFileBasedDataImportsAdvanceImport_ResourceRequestConfig;
|
|
15
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<StartAdvanceImportConfig>): adapter$45$utils_Untrusted<StartAdvanceImportConfig>;
|
|
16
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): StartAdvanceImportConfig | null;
|
|
17
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: StartAdvanceImportConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_FileImportOutputRepresentation_FileImportOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_FileImportOutputRepresentation_FileImportOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_FileImportOutputRepresentation_FileImportOutputRepresentation, any>>;
|
|
18
|
+
export declare const startAdvanceImportAdapterFactory: $64$luvio_engine_AdapterFactory<StartAdvanceImportConfig, types_FileImportOutputRepresentation_FileImportOutputRepresentation>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, 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 { ImportOptionsInputRepresentation as types_ImportOptionsInputRepresentation_ImportOptionsInputRepresentation } from '../types/ImportOptionsInputRepresentation';
|
|
4
|
+
import { ResourceRequestConfig as resources_postConnectIndustriesFileBasedDataImportsSimpleImport_ResourceRequestConfig } from '../resources/postConnectIndustriesFileBasedDataImportsSimpleImport';
|
|
5
|
+
import { FileImportOutputRepresentation as types_FileImportOutputRepresentation_FileImportOutputRepresentation } from '../types/FileImportOutputRepresentation';
|
|
6
|
+
export declare const adapterName = "startSimpleImport";
|
|
7
|
+
export declare const startSimpleImport_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
|
+
export declare const startSimpleImport_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
|
+
export interface StartSimpleImportConfig {
|
|
10
|
+
importReferenceId: string;
|
|
11
|
+
options?: types_ImportOptionsInputRepresentation_ImportOptionsInputRepresentation;
|
|
12
|
+
targetContext: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const createResourceParams: (config: StartSimpleImportConfig) => resources_postConnectIndustriesFileBasedDataImportsSimpleImport_ResourceRequestConfig;
|
|
15
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<StartSimpleImportConfig>): adapter$45$utils_Untrusted<StartSimpleImportConfig>;
|
|
16
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): StartSimpleImportConfig | null;
|
|
17
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: StartSimpleImportConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_FileImportOutputRepresentation_FileImportOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_FileImportOutputRepresentation_FileImportOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_FileImportOutputRepresentation_FileImportOutputRepresentation, any>>;
|
|
18
|
+
export declare const startSimpleImportAdapterFactory: $64$luvio_engine_AdapterFactory<StartSimpleImportConfig, types_FileImportOutputRepresentation_FileImportOutputRepresentation>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { getFileBasedDataImportsAdapterFactory } from '../adapters/getFileBasedDataImports';
|
|
2
|
+
export { startAdvanceImportAdapterFactory } from '../adapters/startAdvanceImport';
|
|
3
|
+
export { startSimpleImportAdapterFactory } from '../adapters/startSimpleImport';
|
|
4
|
+
export { getGetCsvPreviewAdapterFactory } from '../adapters/getGetCsvPreview';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare let getFileBasedDataImports: any;
|
|
2
|
+
declare let getGetCsvPreview: any;
|
|
3
|
+
declare let startAdvanceImport: any;
|
|
4
|
+
declare let startSimpleImport: any;
|
|
5
|
+
declare let getFileBasedDataImports_imperative: any;
|
|
6
|
+
declare let getGetCsvPreview_imperative: any;
|
|
7
|
+
export { getFileBasedDataImports, getGetCsvPreview, startAdvanceImport, startSimpleImport, getFileBasedDataImports_imperative, getGetCsvPreview_imperative };
|
package/dist/es/es2018/types/src/generated/resources/getConnectIndustriesFileBasedDataImports.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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 { FileBasedDataImportByUserResultRepresentation as types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation } from '../types/FileBasedDataImportByUserResultRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
}
|
|
5
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
6
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
7
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
8
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation): void;
|
|
9
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation, any>;
|
|
10
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FileBasedDataImportByUserResultRepresentation_FileBasedDataImportByUserResultRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
11
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
12
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { CsvPreviewOutputRepresentation as types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation } from '../types/CsvPreviewOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
fileBasedImportId: string;
|
|
6
|
+
};
|
|
7
|
+
queryParams: {
|
|
8
|
+
delimiter?: string;
|
|
9
|
+
endOfLine?: string;
|
|
10
|
+
numberOfRows?: number;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
14
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
15
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation): void;
|
|
17
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation, any>;
|
|
18
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_CsvPreviewOutputRepresentation_CsvPreviewOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
19
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
20
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ImportOptionsInputRepresentation as types_ImportOptionsInputRepresentation_ImportOptionsInputRepresentation } from '../types/ImportOptionsInputRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
import { FileImportOutputRepresentation as types_FileImportOutputRepresentation_FileImportOutputRepresentation } from '../types/FileImportOutputRepresentation';
|
|
4
|
+
export interface ResourceRequestConfig {
|
|
5
|
+
body: {
|
|
6
|
+
importReferenceId: string;
|
|
7
|
+
options?: types_ImportOptionsInputRepresentation_ImportOptionsInputRepresentation;
|
|
8
|
+
targetContext: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FileImportOutputRepresentation_FileImportOutputRepresentation): void;
|
|
13
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FileImportOutputRepresentation_FileImportOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FileImportOutputRepresentation_FileImportOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FileImportOutputRepresentation_FileImportOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FileImportOutputRepresentation_FileImportOutputRepresentation, any>;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ImportOptionsInputRepresentation as types_ImportOptionsInputRepresentation_ImportOptionsInputRepresentation } from '../types/ImportOptionsInputRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
import { FileImportOutputRepresentation as types_FileImportOutputRepresentation_FileImportOutputRepresentation } from '../types/FileImportOutputRepresentation';
|
|
4
|
+
export interface ResourceRequestConfig {
|
|
5
|
+
body: {
|
|
6
|
+
importReferenceId: string;
|
|
7
|
+
options?: types_ImportOptionsInputRepresentation_ImportOptionsInputRepresentation;
|
|
8
|
+
targetContext: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FileImportOutputRepresentation_FileImportOutputRepresentation): void;
|
|
13
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FileImportOutputRepresentation_FileImportOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FileImportOutputRepresentation_FileImportOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FileImportOutputRepresentation_FileImportOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FileImportOutputRepresentation_FileImportOutputRepresentation, any>;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 TTL = 0;
|
|
3
|
+
export declare const VERSION = "e9c4694d64f76de38156297711f3a09c";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: CsvPreviewOutputRepresentation, existing: CsvPreviewOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CsvPreviewOutputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: CsvPreviewOutputRepresentationNormalized, incoming: CsvPreviewOutputRepresentationNormalized): 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: CsvPreviewOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Output representation of CSV Data Preview
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface CsvPreviewOutputRepresentationNormalized {
|
|
18
|
+
/** List of header */
|
|
19
|
+
headers: Array<string>;
|
|
20
|
+
/** List of rows data fetched */
|
|
21
|
+
rows: Array<Array<string>>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Output representation of CSV Data Preview
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* (none)
|
|
28
|
+
*/
|
|
29
|
+
export interface CsvPreviewOutputRepresentation {
|
|
30
|
+
headers: Array<string>;
|
|
31
|
+
rows: Array<Array<string>>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 = "da3186ca7e1e758732f7a54496411bc7";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: FieldConfigurationInputRepresentation, existing: FieldConfigurationInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FieldConfigurationInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: FieldConfigurationInputRepresentationNormalized, incoming: FieldConfigurationInputRepresentationNormalized): 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: FieldConfigurationInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Input representation of the field configurations from CSV columns to Salesforce Object Columns for the Data Import Job
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface FieldConfigurationInputRepresentationNormalized {
|
|
17
|
+
/** To identify wether it is a lookup relationship */
|
|
18
|
+
isLookupRelationship?: boolean;
|
|
19
|
+
/** The name of the field of the object of the lookup relationship. */
|
|
20
|
+
relatedFieldName?: string;
|
|
21
|
+
/** The name of the object where the lookup needs to be performed for this entity field */
|
|
22
|
+
relatedObjectName?: string;
|
|
23
|
+
/** The name of the column of the source content for this mapping definition */
|
|
24
|
+
sourceColumnName?: string;
|
|
25
|
+
/** The field name of the targeted import object for this mapping definition */
|
|
26
|
+
targetFieldName?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Input representation of the field configurations from CSV columns to Salesforce Object Columns for the Data Import Job
|
|
30
|
+
*
|
|
31
|
+
* Keys:
|
|
32
|
+
* (none)
|
|
33
|
+
*/
|
|
34
|
+
export interface FieldConfigurationInputRepresentation {
|
|
35
|
+
isLookupRelationship?: boolean;
|
|
36
|
+
relatedFieldName?: string;
|
|
37
|
+
relatedObjectName?: string;
|
|
38
|
+
sourceColumnName?: string;
|
|
39
|
+
targetFieldName?: string;
|
|
40
|
+
}
|
package/dist/es/es2018/types/src/generated/types/FileBasedDataImportByUserResultRepresentation.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { FileBasedDataImportRepresentation as FileBasedDataImportRepresentation_FileBasedDataImportRepresentation } from './FileBasedDataImportRepresentation';
|
|
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 TTL = 0;
|
|
4
|
+
export declare const VERSION = "5991ee5ca7b2257295bf92976098c9d5";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: FileBasedDataImportByUserResultRepresentation, existing: FileBasedDataImportByUserResultRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FileBasedDataImportByUserResultRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
+
export declare function equals(existing: FileBasedDataImportByUserResultRepresentationNormalized, incoming: FileBasedDataImportByUserResultRepresentationNormalized): 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: FileBasedDataImportByUserResultRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Output representation file based data imports as per user context
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface FileBasedDataImportByUserResultRepresentationNormalized {
|
|
19
|
+
/** The file based data import response */
|
|
20
|
+
fileBasedDataImportRepresentations: Array<FileBasedDataImportRepresentation_FileBasedDataImportRepresentation>;
|
|
21
|
+
/** True if user has admin role */
|
|
22
|
+
isAdminUser: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Output representation file based data imports as per user context
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface FileBasedDataImportByUserResultRepresentation {
|
|
31
|
+
fileBasedDataImportRepresentations: Array<FileBasedDataImportRepresentation_FileBasedDataImportRepresentation>;
|
|
32
|
+
isAdminUser: boolean;
|
|
33
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "603264989f33f5176bf362db81791a82";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: FileBasedDataImportRepresentation, existing: FileBasedDataImportRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FileBasedDataImportRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: FileBasedDataImportRepresentationNormalized, incoming: FileBasedDataImportRepresentationNormalized): 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: FileBasedDataImportRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* File based Data import Entity output representation
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface FileBasedDataImportRepresentationNormalized {
|
|
17
|
+
/** FailedRecordsCount */
|
|
18
|
+
failedRecordsCount?: number;
|
|
19
|
+
/** FileBasedImportType */
|
|
20
|
+
fileBasedImportType?: string;
|
|
21
|
+
/** ImportOperationType */
|
|
22
|
+
importOperationType?: string;
|
|
23
|
+
/** jobIdentifier */
|
|
24
|
+
jobIdentifier?: string;
|
|
25
|
+
/** SourceContentDocument */
|
|
26
|
+
sourceContentDocument: string;
|
|
27
|
+
/** Status */
|
|
28
|
+
status: string;
|
|
29
|
+
/** StatusReason */
|
|
30
|
+
statusReason?: string;
|
|
31
|
+
/** SuccessRecordsCount */
|
|
32
|
+
successRecordsCount?: number;
|
|
33
|
+
/** targetContext */
|
|
34
|
+
targetContext?: string;
|
|
35
|
+
/** UnprocessedRecordsCount */
|
|
36
|
+
unprocessedRecordsCount?: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* File based Data import Entity output representation
|
|
40
|
+
*
|
|
41
|
+
* Keys:
|
|
42
|
+
* (none)
|
|
43
|
+
*/
|
|
44
|
+
export interface FileBasedDataImportRepresentation {
|
|
45
|
+
failedRecordsCount?: number;
|
|
46
|
+
fileBasedImportType?: string;
|
|
47
|
+
importOperationType?: string;
|
|
48
|
+
jobIdentifier?: string;
|
|
49
|
+
sourceContentDocument: string;
|
|
50
|
+
status: string;
|
|
51
|
+
statusReason?: string;
|
|
52
|
+
successRecordsCount?: number;
|
|
53
|
+
targetContext?: string;
|
|
54
|
+
unprocessedRecordsCount?: number;
|
|
55
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ImportOptionsInputRepresentation as ImportOptionsInputRepresentation_ImportOptionsInputRepresentation } from './ImportOptionsInputRepresentation';
|
|
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 = "10bbd8a200f443b9c3e9bc90881ff72e";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: FileImportInputRepresentation, existing: FileImportInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FileImportInputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: FileImportInputRepresentationNormalized, incoming: FileImportInputRepresentationNormalized): 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: FileImportInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Input representation of payload for File Based Data Import Use Case
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface FileImportInputRepresentationNormalized {
|
|
18
|
+
/** The id of the file based data import functionality entity */
|
|
19
|
+
importReferenceId: string;
|
|
20
|
+
options?: ImportOptionsInputRepresentation_ImportOptionsInputRepresentation;
|
|
21
|
+
/** The target context of import be it a object or a import template */
|
|
22
|
+
targetContext: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Input representation of payload for File Based Data Import Use Case
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface FileImportInputRepresentation {
|
|
31
|
+
importReferenceId: string;
|
|
32
|
+
options?: ImportOptionsInputRepresentation_ImportOptionsInputRepresentation;
|
|
33
|
+
targetContext: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
+
export declare const TTL = 0;
|
|
3
|
+
export declare const VERSION = "0f74d1482de21ff21d94491b9f9b869a";
|
|
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
|
+
statusCode: string;
|
|
8
|
+
}
|
|
9
|
+
export type FileImportOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialFileImportOutputRepresentationNormalizedKeyMetadata = 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): FileImportOutputRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: FileImportOutputRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: FileImportOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function normalize(input: FileImportOutputRepresentation, existing: FileImportOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FileImportOutputRepresentationNormalized;
|
|
16
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
|
+
export declare function equals(existing: FileImportOutputRepresentationNormalized, incoming: FileImportOutputRepresentationNormalized): 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: FileImportOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
|
+
/**
|
|
21
|
+
* Output representation of a File Based Import Job
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* statusCode (string): statusCode
|
|
25
|
+
*/
|
|
26
|
+
export interface FileImportOutputRepresentationNormalized {
|
|
27
|
+
/** The status code of the Start Import Job API */
|
|
28
|
+
statusCode: string;
|
|
29
|
+
/** The status message of the Start Import Job API */
|
|
30
|
+
statusMessage: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Output representation of a File Based Import Job
|
|
34
|
+
*
|
|
35
|
+
* Keys:
|
|
36
|
+
* statusCode (string): statusCode
|
|
37
|
+
*/
|
|
38
|
+
export interface FileImportOutputRepresentation {
|
|
39
|
+
statusCode: string;
|
|
40
|
+
statusMessage: string;
|
|
41
|
+
}
|
|
@@ -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 = "81dca5ace98d11cb047863a37c79101e";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ImportOperationInputRepresentation, existing: ImportOperationInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ImportOperationInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ImportOperationInputRepresentationNormalized, incoming: ImportOperationInputRepresentationNormalized): 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: ImportOperationInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Input representation of operations for File Based Import Case
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ImportOperationInputRepresentationNormalized {
|
|
17
|
+
/** The operation type of the import job */
|
|
18
|
+
operationType?: string;
|
|
19
|
+
/** The unique fields of the object on which Update or upsert kind of operations are to be performed */
|
|
20
|
+
uniqueFields?: Array<string>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Input representation of operations for File Based Import Case
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface ImportOperationInputRepresentation {
|
|
29
|
+
operationType?: string;
|
|
30
|
+
uniqueFields?: Array<string>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FieldConfigurationInputRepresentation as FieldConfigurationInputRepresentation_FieldConfigurationInputRepresentation } from './FieldConfigurationInputRepresentation';
|
|
2
|
+
import { ImportOperationInputRepresentation as ImportOperationInputRepresentation_ImportOperationInputRepresentation } from './ImportOperationInputRepresentation';
|
|
3
|
+
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';
|
|
4
|
+
export declare const VERSION = "334e0dcff64ce4432848106b6022576e";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: ImportOptionsInputRepresentation, existing: ImportOptionsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ImportOptionsInputRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
+
export declare function equals(existing: ImportOptionsInputRepresentationNormalized, incoming: ImportOptionsInputRepresentationNormalized): 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: ImportOptionsInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Input representation of Options for File Based Import
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface ImportOptionsInputRepresentationNormalized {
|
|
19
|
+
/** The delimiter of the source content document */
|
|
20
|
+
delimiter?: string;
|
|
21
|
+
/** The End of Line character for the file used for import */
|
|
22
|
+
eol?: string;
|
|
23
|
+
/** The list of field configurations */
|
|
24
|
+
fieldConfigurations?: Array<FieldConfigurationInputRepresentation_FieldConfigurationInputRepresentation>;
|
|
25
|
+
/** The operation type of the import job */
|
|
26
|
+
operation?: ImportOperationInputRepresentation_ImportOperationInputRepresentation;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Input representation of Options for File Based Import
|
|
30
|
+
*
|
|
31
|
+
* Keys:
|
|
32
|
+
* (none)
|
|
33
|
+
*/
|
|
34
|
+
export interface ImportOptionsInputRepresentation {
|
|
35
|
+
delimiter?: string;
|
|
36
|
+
eol?: string;
|
|
37
|
+
fieldConfigurations?: Array<FieldConfigurationInputRepresentation_FieldConfigurationInputRepresentation>;
|
|
38
|
+
operation?: ImportOperationInputRepresentation_ImportOperationInputRepresentation;
|
|
39
|
+
}
|
|
@@ -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 {};
|