@salesforce/lds-adapters-industries-filebased-dataimport 1.258.0 → 1.259.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,29 @@
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_getConnectIndustriesFileBasedDataImportsEntities_ResourceRequestConfig } from '../resources/getConnectIndustriesFileBasedDataImportsEntities';
4
+ import { ObjectInfoDirectoryRepresentation as types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation } from '../types/ObjectInfoDirectoryRepresentation';
5
+ export declare const adapterName = "getAllSobjects";
6
+ export declare const getAllSobjects_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getAllSobjects_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetAllSobjectsConfig {
9
+ batchSize?: number;
10
+ searchText?: string;
11
+ startOffset?: number;
12
+ }
13
+ export declare const createResourceParams: (config: GetAllSobjectsConfig) => resources_getConnectIndustriesFileBasedDataImportsEntities_ResourceRequestConfig;
14
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetAllSobjectsConfig): string;
15
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetAllSobjectsConfig): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetAllSobjectsConfig>): adapter$45$utils_Untrusted<GetAllSobjectsConfig>;
17
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetAllSobjectsConfig | null;
18
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetAllSobjectsConfig): $64$luvio_engine_Fragment;
19
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetAllSobjectsConfig): $64$luvio_engine_Snapshot<types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation, any>;
20
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetAllSobjectsConfig, resourceParams: resources_getConnectIndustriesFileBasedDataImportsEntities_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation, any>>;
21
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetAllSobjectsConfig, resourceParams: resources_getConnectIndustriesFileBasedDataImportsEntities_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
22
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetAllSobjectsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation, any>>;
23
+ export type BuildSnapshotContext = {
24
+ luvio: $64$luvio_engine_Luvio;
25
+ config: GetAllSobjectsConfig;
26
+ };
27
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation, any>>;
28
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation>): $64$luvio_engine_Snapshot<types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation, any>;
29
+ export declare const getAllSobjectsAdapterFactory: $64$luvio_engine_AdapterFactory<GetAllSobjectsConfig, types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation>;
@@ -7,5 +7,6 @@ export { getFileBasedDataImportByIdAdapterFactory } from '../adapters/getFileBas
7
7
  export { updateFileBasedDataImportAdapterFactory } from '../adapters/updateFileBasedDataImport';
8
8
  export { getCsvPreviewDataAdapterFactory } from '../adapters/getCsvPreviewData';
9
9
  export { getDPEDefinitionsAdapterFactory } from '../adapters/getDPEDefinitions';
10
+ export { getAllSobjectsAdapterFactory } from '../adapters/getAllSobjects';
10
11
  export { getAllFieldsAdapterFactory } from '../adapters/getAllFields';
11
12
  export { getCsvAutoMapAdapterFactory } from '../adapters/getCsvAutoMap';
@@ -1,6 +1,7 @@
1
1
  declare let createFileBasedDataImport: any;
2
2
  declare let deleteFileBasedDataImport: any;
3
3
  declare let getAllFields: any;
4
+ declare let getAllSobjects: any;
4
5
  declare let getCsvAutoMap: any;
5
6
  declare let getCsvPreviewData: any;
6
7
  declare let getDPEDefinitions: any;
@@ -11,9 +12,10 @@ declare let startAdvanceImport: any;
11
12
  declare let startSimpleImport: any;
12
13
  declare let updateFileBasedDataImport: any;
13
14
  declare let getAllFields_imperative: any;
15
+ declare let getAllSobjects_imperative: any;
14
16
  declare let getCsvAutoMap_imperative: any;
15
17
  declare let getCsvPreviewData_imperative: any;
16
18
  declare let getDPEDefinitions_imperative: any;
17
19
  declare let getFileBasedDataImportById_imperative: any;
18
20
  declare let getFileBasedDataImports_imperative: any;
19
- export { createFileBasedDataImport, deleteFileBasedDataImport, getAllFields, getCsvAutoMap, getCsvPreviewData, getDPEDefinitions, getFileBasedDataImportById, getFileBasedDataImportByIdNotifyChange, getFileBasedDataImports, startAdvanceImport, startSimpleImport, updateFileBasedDataImport, getAllFields_imperative, getCsvAutoMap_imperative, getCsvPreviewData_imperative, getDPEDefinitions_imperative, getFileBasedDataImportById_imperative, getFileBasedDataImports_imperative };
21
+ export { createFileBasedDataImport, deleteFileBasedDataImport, getAllFields, getAllSobjects, getCsvAutoMap, getCsvPreviewData, getDPEDefinitions, getFileBasedDataImportById, getFileBasedDataImportByIdNotifyChange, getFileBasedDataImports, startAdvanceImport, startSimpleImport, updateFileBasedDataImport, getAllFields_imperative, getAllSobjects_imperative, getCsvAutoMap_imperative, getCsvPreviewData_imperative, getDPEDefinitions_imperative, getFileBasedDataImportById_imperative, getFileBasedDataImports_imperative };
@@ -0,0 +1,17 @@
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 { ObjectInfoDirectoryRepresentation as types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation } from '../types/ObjectInfoDirectoryRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ queryParams: {
5
+ batchSize?: number;
6
+ searchText?: string;
7
+ startOffset?: number;
8
+ };
9
+ }
10
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
11
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
12
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
13
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation): void;
14
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation, any>;
15
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ObjectInfoDirectoryRepresentation_ObjectInfoDirectoryRepresentation>): $64$luvio_engine_ErrorSnapshot;
16
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
17
+ export default createResourceRequest;
@@ -0,0 +1,43 @@
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 = "2e822aab70fdf6622a60bb733aa9b5bc";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ObjectInfoDirectoryEntryRepresentation, existing: ObjectInfoDirectoryEntryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ObjectInfoDirectoryEntryRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ObjectInfoDirectoryEntryRepresentationNormalized, incoming: ObjectInfoDirectoryEntryRepresentationNormalized): 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: ObjectInfoDirectoryEntryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Entry for an object info within the directory of objects.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ObjectInfoDirectoryEntryRepresentationNormalized {
17
+ /** The API name of the object info corresponding to this entry. */
18
+ apiName: string;
19
+ /** The key prefix for IDs of this object. */
20
+ keyPrefix: string | null;
21
+ /** The label of the object info corresponding to this entry. */
22
+ label: string;
23
+ /** The plural label of the object info corresponding to this entry. */
24
+ labelPlural: string;
25
+ /** List of the API names of the fields used to identify the name field for standard and custom objects. Typically there is one name field per object, except where FirstName and LastName fields are used. */
26
+ nameFields: Array<string>;
27
+ /** The URL to retrieve the full object info corresponding to this entry. */
28
+ objectInfoUrl: string;
29
+ }
30
+ /**
31
+ * Entry for an object info within the directory of objects.
32
+ *
33
+ * Keys:
34
+ * (none)
35
+ */
36
+ export interface ObjectInfoDirectoryEntryRepresentation {
37
+ apiName: string;
38
+ keyPrefix: string | null;
39
+ label: string;
40
+ labelPlural: string;
41
+ nameFields: Array<string>;
42
+ objectInfoUrl: string;
43
+ }
@@ -0,0 +1,33 @@
1
+ import { ObjectInfoDirectoryEntryRepresentation as ObjectInfoDirectoryEntryRepresentation_ObjectInfoDirectoryEntryRepresentation } from './ObjectInfoDirectoryEntryRepresentation';
2
+ 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';
3
+ export declare const VERSION = "c040e955efdc64a496f748f728dcbe5f";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: ObjectInfoDirectoryRepresentation, existing: ObjectInfoDirectoryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ObjectInfoDirectoryRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_BaseFragment;
8
+ export declare function equals(existing: ObjectInfoDirectoryRepresentationNormalized, incoming: ObjectInfoDirectoryRepresentationNormalized): 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: ObjectInfoDirectoryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Directory of objects that can be used within UI API end-points.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ObjectInfoDirectoryRepresentationNormalized {
18
+ /** The object info entries corresponding to the objects that can be used within UI API. */
19
+ objects: {
20
+ [key: string]: ObjectInfoDirectoryEntryRepresentation_ObjectInfoDirectoryEntryRepresentation;
21
+ };
22
+ }
23
+ /**
24
+ * Directory of objects that can be used within UI API end-points.
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface ObjectInfoDirectoryRepresentation {
30
+ objects: {
31
+ [key: string]: ObjectInfoDirectoryEntryRepresentation_ObjectInfoDirectoryEntryRepresentation;
32
+ };
33
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-filebased-dataimport",
3
- "version": "1.258.0",
3
+ "version": "1.259.0",
4
4
  "description": "Resource Family for File Based Data Import Use cases",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/industries-filebased-dataimport.js",
@@ -41,11 +41,11 @@
41
41
  "test:unit": "jest"
42
42
  },
43
43
  "dependencies": {
44
- "@salesforce/lds-bindings": "^1.258.0"
44
+ "@salesforce/lds-bindings": "^1.259.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@salesforce/lds-compiler-plugins": "^1.258.0",
48
- "@salesforce/lds-karma": "^1.258.0"
47
+ "@salesforce/lds-compiler-plugins": "^1.259.0",
48
+ "@salesforce/lds-karma": "^1.259.0"
49
49
  },
50
50
  "nx": {
51
51
  "targets": {