@salesforce/lds-adapters-platform-data-seed 1.339.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.
Files changed (22) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-data-seed.js +685 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getDataSeedStatus.d.ts +30 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getUploadPreSignedUrl.d.ts +19 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -0
  8. package/dist/es/es2018/types/src/generated/resources/getPlatformDataSeedV1DataSeedRequest.d.ts +18 -0
  9. package/dist/es/es2018/types/src/generated/resources/postPlatformDataSeedV1DataSeedGeneratePresignedUploadUrl.d.ts +18 -0
  10. package/dist/es/es2018/types/src/generated/types/DataSeedRequestObjectRepresentation.d.ts +58 -0
  11. package/dist/es/es2018/types/src/generated/types/DataSeedStatusErrorRepresentation.d.ts +28 -0
  12. package/dist/es/es2018/types/src/generated/types/DataSeedStatusOutputRepresentation.d.ts +32 -0
  13. package/dist/es/es2018/types/src/generated/types/PreSignedUrlBadErrorRepresentation.d.ts +28 -0
  14. package/dist/es/es2018/types/src/generated/types/PreSignedUrlInputRepresentation.d.ts +28 -0
  15. package/dist/es/es2018/types/src/generated/types/PreSignedUrlResultRepresentation.d.ts +41 -0
  16. package/dist/es/es2018/types/src/generated/types/PreSignedUrlServerErrorRepresentation.d.ts +31 -0
  17. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  18. package/package.json +66 -0
  19. package/sfdc/index.d.ts +1 -0
  20. package/sfdc/index.js +723 -0
  21. package/src/raml/api.raml +192 -0
  22. package/src/raml/luvio.raml +24 -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 = "data-seed";
@@ -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_getPlatformDataSeedV1DataSeedRequest_ResourceRequestConfig } from '../resources/getPlatformDataSeedV1DataSeedRequest';
4
+ import { DataSeedStatusOutputRepresentation as types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation } from '../types/DataSeedStatusOutputRepresentation';
5
+ export declare const adapterName = "getDataSeedStatus";
6
+ export declare const getDataSeedStatus_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getDataSeedStatus_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetDataSeedStatusConfig {
9
+ xClientTraceId: string;
10
+ xSalesforceRegion: string;
11
+ orgUrl: string;
12
+ accessToken: string;
13
+ }
14
+ export declare const createResourceParams: (config: GetDataSeedStatusConfig) => resources_getPlatformDataSeedV1DataSeedRequest_ResourceRequestConfig;
15
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetDataSeedStatusConfig): string;
16
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetDataSeedStatusConfig): $64$luvio_engine_NormalizedKeyMetadata;
17
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetDataSeedStatusConfig>): adapter$45$utils_Untrusted<GetDataSeedStatusConfig>;
18
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetDataSeedStatusConfig | null;
19
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetDataSeedStatusConfig): $64$luvio_engine_Fragment;
20
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDataSeedStatusConfig): $64$luvio_engine_Snapshot<types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation, any>;
21
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetDataSeedStatusConfig, resourceParams: resources_getPlatformDataSeedV1DataSeedRequest_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation, any>>;
22
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetDataSeedStatusConfig, resourceParams: resources_getPlatformDataSeedV1DataSeedRequest_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
23
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDataSeedStatusConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation, any>>;
24
+ export type BuildSnapshotContext = {
25
+ luvio: $64$luvio_engine_Luvio;
26
+ config: GetDataSeedStatusConfig;
27
+ };
28
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation, any>>;
29
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation>): $64$luvio_engine_Snapshot<types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation, any>;
30
+ export declare const getDataSeedStatusAdapterFactory: $64$luvio_engine_AdapterFactory<GetDataSeedStatusConfig, types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation>;
@@ -0,0 +1,19 @@
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 { ResourceRequestConfig as resources_postPlatformDataSeedV1DataSeedGeneratePresignedUploadUrl_ResourceRequestConfig } from '../resources/postPlatformDataSeedV1DataSeedGeneratePresignedUploadUrl';
4
+ import { PreSignedUrlResultRepresentation as types_PreSignedUrlResultRepresentation_PreSignedUrlResultRepresentation } from '../types/PreSignedUrlResultRepresentation';
5
+ export declare const adapterName = "getUploadPreSignedUrl";
6
+ export declare const getUploadPreSignedUrl_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getUploadPreSignedUrl_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetUploadPreSignedUrlConfig {
9
+ xClientTraceId: string;
10
+ xSalesforceRegion: string;
11
+ orgUrl: string;
12
+ accessToken: string;
13
+ file_name: string;
14
+ }
15
+ export declare const createResourceParams: (config: GetUploadPreSignedUrlConfig) => resources_postPlatformDataSeedV1DataSeedGeneratePresignedUploadUrl_ResourceRequestConfig;
16
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetUploadPreSignedUrlConfig>): adapter$45$utils_Untrusted<GetUploadPreSignedUrlConfig>;
17
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetUploadPreSignedUrlConfig | null;
18
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetUploadPreSignedUrlConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_PreSignedUrlResultRepresentation_PreSignedUrlResultRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_PreSignedUrlResultRepresentation_PreSignedUrlResultRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_PreSignedUrlResultRepresentation_PreSignedUrlResultRepresentation, any>>;
19
+ export declare const getUploadPreSignedUrlAdapterFactory: $64$luvio_engine_AdapterFactory<GetUploadPreSignedUrlConfig, types_PreSignedUrlResultRepresentation_PreSignedUrlResultRepresentation>;
@@ -0,0 +1,2 @@
1
+ export { getDataSeedStatusAdapterFactory } from '../adapters/getDataSeedStatus';
2
+ export { getUploadPreSignedUrlAdapterFactory } from '../adapters/getUploadPreSignedUrl';
@@ -0,0 +1,4 @@
1
+ declare let getDataSeedStatus: any;
2
+ declare let getUploadPreSignedUrl: any;
3
+ declare let getDataSeedStatus_imperative: any;
4
+ export { getDataSeedStatus, getUploadPreSignedUrl, getDataSeedStatus_imperative };
@@ -0,0 +1,18 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { DataSeedStatusOutputRepresentation as types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation } from '../types/DataSeedStatusOutputRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ headers: {
5
+ xClientTraceId: string;
6
+ xSalesforceRegion: string;
7
+ orgUrl: string;
8
+ accessToken: string;
9
+ };
10
+ }
11
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation): void;
15
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation, any>;
16
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_DataSeedStatusOutputRepresentation_DataSeedStatusOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
17
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
18
+ export default createResourceRequest;
@@ -0,0 +1,18 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { PreSignedUrlResultRepresentation as types_PreSignedUrlResultRepresentation_PreSignedUrlResultRepresentation } from '../types/PreSignedUrlResultRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ body: {
5
+ file_name: string;
6
+ };
7
+ headers: {
8
+ xClientTraceId: string;
9
+ xSalesforceRegion: string;
10
+ orgUrl: string;
11
+ accessToken: string;
12
+ };
13
+ }
14
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
15
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_PreSignedUrlResultRepresentation_PreSignedUrlResultRepresentation): void;
16
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_PreSignedUrlResultRepresentation_PreSignedUrlResultRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_PreSignedUrlResultRepresentation_PreSignedUrlResultRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_PreSignedUrlResultRepresentation_PreSignedUrlResultRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_PreSignedUrlResultRepresentation_PreSignedUrlResultRepresentation, any>;
17
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
18
+ export default createResourceRequest;
@@ -0,0 +1,58 @@
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 = "ddec5d0c42ca88dcaf0598f884079ed2";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: DataSeedRequestObjectRepresentation, existing: DataSeedRequestObjectRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DataSeedRequestObjectRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: DataSeedRequestObjectRepresentationNormalized, incoming: DataSeedRequestObjectRepresentationNormalized): 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: DataSeedRequestObjectRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Data Seed Request properties
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface DataSeedRequestObjectRepresentationNormalized {
17
+ /** Request Created By User */
18
+ created_by: string;
19
+ /** Request Description */
20
+ description: string;
21
+ /** Request Execution End Time */
22
+ execution_end_time: string;
23
+ /** Request Execution Start Time */
24
+ execution_start_time: string;
25
+ /** Request Job Type */
26
+ job_type: string;
27
+ /** Request Log Text */
28
+ log_text: string;
29
+ /** Request Name */
30
+ name: string;
31
+ /** Organization ID */
32
+ organization_id: string;
33
+ /** Request ID */
34
+ request_id: string;
35
+ /** Request Status */
36
+ status: string;
37
+ /** Request Step */
38
+ step: string;
39
+ }
40
+ /**
41
+ * Data Seed Request properties
42
+ *
43
+ * Keys:
44
+ * (none)
45
+ */
46
+ export interface DataSeedRequestObjectRepresentation {
47
+ created_by: string;
48
+ description: string;
49
+ execution_end_time: string;
50
+ execution_start_time: string;
51
+ job_type: string;
52
+ log_text: string;
53
+ name: string;
54
+ organization_id: string;
55
+ request_id: string;
56
+ status: string;
57
+ step: string;
58
+ }
@@ -0,0 +1,28 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "f2416ed4f7986cf56b19f177e267eb6f";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: DataSeedStatusErrorRepresentation, existing: DataSeedStatusErrorRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DataSeedStatusErrorRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: DataSeedStatusErrorRepresentationNormalized, incoming: DataSeedStatusErrorRepresentationNormalized): 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: DataSeedStatusErrorRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Data Seed Error Representation
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface DataSeedStatusErrorRepresentationNormalized {
17
+ /** Data Seed Error Message */
18
+ error: string;
19
+ }
20
+ /**
21
+ * Data Seed Error Representation
22
+ *
23
+ * Keys:
24
+ * (none)
25
+ */
26
+ export interface DataSeedStatusErrorRepresentation {
27
+ error: string;
28
+ }
@@ -0,0 +1,32 @@
1
+ import { DataSeedRequestObjectRepresentation as DataSeedRequestObjectRepresentation_DataSeedRequestObjectRepresentation } from './DataSeedRequestObjectRepresentation';
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 = "732685344ea5e037b5b3da3c38ad04eb";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: DataSeedStatusOutputRepresentation, existing: DataSeedStatusOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DataSeedStatusOutputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: DataSeedStatusOutputRepresentationNormalized, incoming: DataSeedStatusOutputRepresentationNormalized): 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: DataSeedStatusOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Data Seed Response Representation
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface DataSeedStatusOutputRepresentationNormalized {
18
+ /** Data Seed Request's Correlation ID */
19
+ correlation_id: string;
20
+ /** Data Seed Request's History Data List */
21
+ data: Array<DataSeedRequestObjectRepresentation_DataSeedRequestObjectRepresentation>;
22
+ }
23
+ /**
24
+ * Data Seed Response Representation
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface DataSeedStatusOutputRepresentation {
30
+ correlation_id: string;
31
+ data: Array<DataSeedRequestObjectRepresentation_DataSeedRequestObjectRepresentation>;
32
+ }
@@ -0,0 +1,28 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "eac7d238e29b1dee9fae06ed256156b6";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: PreSignedUrlBadErrorRepresentation, existing: PreSignedUrlBadErrorRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PreSignedUrlBadErrorRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: PreSignedUrlBadErrorRepresentationNormalized, incoming: PreSignedUrlBadErrorRepresentationNormalized): 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: PreSignedUrlBadErrorRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Pre Signed Url Missing Parameters Error Representation
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface PreSignedUrlBadErrorRepresentationNormalized {
17
+ /** Pre Signed Url Bad Request Error Message */
18
+ error: string;
19
+ }
20
+ /**
21
+ * Pre Signed Url Missing Parameters Error Representation
22
+ *
23
+ * Keys:
24
+ * (none)
25
+ */
26
+ export interface PreSignedUrlBadErrorRepresentation {
27
+ error: string;
28
+ }
@@ -0,0 +1,28 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "ce2ddb27303c030703f0ac8bc70408fe";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: PreSignedUrlInputRepresentation, existing: PreSignedUrlInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PreSignedUrlInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: PreSignedUrlInputRepresentationNormalized, incoming: PreSignedUrlInputRepresentationNormalized): 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: PreSignedUrlInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Pre Signed Url Input Representation
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface PreSignedUrlInputRepresentationNormalized {
17
+ /** File Name */
18
+ file_name: string;
19
+ }
20
+ /**
21
+ * Pre Signed Url Input Representation
22
+ *
23
+ * Keys:
24
+ * (none)
25
+ */
26
+ export interface PreSignedUrlInputRepresentation {
27
+ file_name: string;
28
+ }
@@ -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 = 300000;
3
+ export declare const VERSION = "578e9dba5d8078135d4027313a51d7dc";
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
+ s3_unique_id: string;
8
+ }
9
+ export type PreSignedUrlResultRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
10
+ export type PartialPreSignedUrlResultRepresentationNormalizedKeyMetadata = 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): PreSignedUrlResultRepresentationNormalizedKeyMetadata;
13
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: PreSignedUrlResultRepresentation): string;
14
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: PreSignedUrlResultRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function normalize(input: PreSignedUrlResultRepresentation, existing: PreSignedUrlResultRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PreSignedUrlResultRepresentationNormalized;
16
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
17
+ export declare function equals(existing: PreSignedUrlResultRepresentationNormalized, incoming: PreSignedUrlResultRepresentationNormalized): 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: PreSignedUrlResultRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
+ /**
21
+ * Pre Signed Url Response Representation
22
+ *
23
+ * Keys:
24
+ * s3_unique_id (string): s3_unique_id
25
+ */
26
+ export interface PreSignedUrlResultRepresentationNormalized {
27
+ /** Url Unique Id */
28
+ s3_unique_id: string;
29
+ /** Pre Signed Url */
30
+ url: string;
31
+ }
32
+ /**
33
+ * Pre Signed Url Response Representation
34
+ *
35
+ * Keys:
36
+ * s3_unique_id (string): s3_unique_id
37
+ */
38
+ export interface PreSignedUrlResultRepresentation {
39
+ s3_unique_id: string;
40
+ url: 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 = "a61623f538925862fcdc8dc41110aa01";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: PreSignedUrlServerErrorRepresentation, existing: PreSignedUrlServerErrorRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PreSignedUrlServerErrorRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: PreSignedUrlServerErrorRepresentationNormalized, incoming: PreSignedUrlServerErrorRepresentationNormalized): 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: PreSignedUrlServerErrorRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Pre Signed Url Server Error Representation
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface PreSignedUrlServerErrorRepresentationNormalized {
17
+ /** Pre Signed Url Request Correlation Id */
18
+ correlation_id: string;
19
+ /** Pre Signed Url Server Error Message */
20
+ error: string;
21
+ }
22
+ /**
23
+ * Pre Signed Url Server Error Representation
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface PreSignedUrlServerErrorRepresentation {
29
+ correlation_id: string;
30
+ error: string;
31
+ }
@@ -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-platform-data-seed",
3
+ "version": "1.339.0",
4
+ "description": "A set of AI data seed APIs for SFAP",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/platform-data-seed.js",
7
+ "module": "dist/es/es2018/platform-data-seed.js",
8
+ "types": "dist/es/es2018/types/src/generated/artifacts/main.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "sfdc",
12
+ "src/raml/*"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/es/es2018/types/src/generated/artifacts/main.d.ts",
17
+ "import": "./dist/es/es2018/platform-data-seed.js",
18
+ "require": "./dist/es/es2018/platform-data-seed.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": "platformDataSeedApi"
29
+ },
30
+ "contributors": [
31
+ "satyam.chouksey@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-platform-data-seed",
39
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-platform-data-seed",
40
+ "test:unit": "jest"
41
+ },
42
+ "dependencies": {
43
+ "@salesforce/lds-bindings": "^1.339.0"
44
+ },
45
+ "devDependencies": {
46
+ "@salesforce/lds-compiler-plugins": "^1.339.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';