@salesforce/lds-adapters-cdp-byoc 1.332.0-dev18
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/cdp-byoc.js +714 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createCustomCodeDeployment.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotDataCustomCode.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/types/CdpUserRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/CustomCodeDeploymentInputRepresentation.d.ts +65 -0
- package/dist/es/es2018/types/src/generated/types/CustomCodeDeploymentRepresentation.d.ts +99 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +742 -0
- package/src/raml/api.raml +220 -0
- package/src/raml/luvio.raml +25 -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 = "byoc";
|
|
@@ -0,0 +1,25 @@
|
|
|
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_postSsotDataCustomCode_ResourceRequestConfig } from '../resources/postSsotDataCustomCode';
|
|
4
|
+
import { CustomCodeDeploymentRepresentation as types_CustomCodeDeploymentRepresentation_CustomCodeDeploymentRepresentation } from '../types/CustomCodeDeploymentRepresentation';
|
|
5
|
+
export declare const adapterName = "createCustomCodeDeployment";
|
|
6
|
+
export declare const createCustomCodeDeployment_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const createCustomCodeDeployment_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface CreateCustomCodeDeploymentConfig {
|
|
9
|
+
codeType?: string;
|
|
10
|
+
computeType: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
label: string;
|
|
14
|
+
name: string;
|
|
15
|
+
namespace?: string;
|
|
16
|
+
parameters?: {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
version: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const createResourceParams: (config: CreateCustomCodeDeploymentConfig) => resources_postSsotDataCustomCode_ResourceRequestConfig;
|
|
22
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateCustomCodeDeploymentConfig>): adapter$45$utils_Untrusted<CreateCustomCodeDeploymentConfig>;
|
|
23
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateCustomCodeDeploymentConfig | null;
|
|
24
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateCustomCodeDeploymentConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CustomCodeDeploymentRepresentation_CustomCodeDeploymentRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CustomCodeDeploymentRepresentation_CustomCodeDeploymentRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CustomCodeDeploymentRepresentation_CustomCodeDeploymentRepresentation, any>>;
|
|
25
|
+
export declare const createCustomCodeDeploymentAdapterFactory: $64$luvio_engine_AdapterFactory<CreateCustomCodeDeploymentConfig, types_CustomCodeDeploymentRepresentation_CustomCodeDeploymentRepresentation>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createCustomCodeDeploymentAdapterFactory } from '../adapters/createCustomCodeDeployment';
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { CustomCodeDeploymentRepresentation as types_CustomCodeDeploymentRepresentation_CustomCodeDeploymentRepresentation } from '../types/CustomCodeDeploymentRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
body: {
|
|
5
|
+
codeType?: string;
|
|
6
|
+
computeType: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
label: string;
|
|
10
|
+
name: string;
|
|
11
|
+
namespace?: string;
|
|
12
|
+
parameters?: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
version: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
19
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_CustomCodeDeploymentRepresentation_CustomCodeDeploymentRepresentation): void;
|
|
20
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CustomCodeDeploymentRepresentation_CustomCodeDeploymentRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CustomCodeDeploymentRepresentation_CustomCodeDeploymentRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CustomCodeDeploymentRepresentation_CustomCodeDeploymentRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CustomCodeDeploymentRepresentation_CustomCodeDeploymentRepresentation, any>;
|
|
21
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
22
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "2fe1bfd9fd1c6a94767d2ea000d6d318";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: CdpUserRepresentation, existing: CdpUserRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpUserRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: CdpUserRepresentationNormalized, incoming: CdpUserRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpUserRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Represents a user
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface CdpUserRepresentationNormalized {
|
|
17
|
+
/** The 18 character user ID */
|
|
18
|
+
id: string;
|
|
19
|
+
/** The name of the user */
|
|
20
|
+
name: string;
|
|
21
|
+
/** The Chatter profile photo of the user */
|
|
22
|
+
profilePhotoUrl: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Represents a user
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface CdpUserRepresentation {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
profilePhotoUrl: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 VERSION = "35be8feb5512570a4a3c88f17e2ad67a";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
export type CustomCodeDeploymentInputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
9
|
+
export type PartialCustomCodeDeploymentInputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
11
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): CustomCodeDeploymentInputRepresentationNormalizedKeyMetadata;
|
|
12
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: CustomCodeDeploymentInputRepresentation): string;
|
|
13
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: CustomCodeDeploymentInputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function normalize(input: CustomCodeDeploymentInputRepresentation, existing: CustomCodeDeploymentInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CustomCodeDeploymentInputRepresentationNormalized;
|
|
15
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
16
|
+
export declare function equals(existing: CustomCodeDeploymentInputRepresentationNormalized, incoming: CustomCodeDeploymentInputRepresentationNormalized): boolean;
|
|
17
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
18
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CustomCodeDeploymentInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
19
|
+
/**
|
|
20
|
+
* Input representation for creating a Custom Code Deployment
|
|
21
|
+
*
|
|
22
|
+
* Keys:
|
|
23
|
+
* name (string): name
|
|
24
|
+
*/
|
|
25
|
+
export interface CustomCodeDeploymentInputRepresentationNormalized {
|
|
26
|
+
/** Custom code type */
|
|
27
|
+
codeType?: string;
|
|
28
|
+
/** Compute type for executions of the custom code */
|
|
29
|
+
computeType: string;
|
|
30
|
+
/** Description of the custom code deployment */
|
|
31
|
+
description?: string;
|
|
32
|
+
/** Id */
|
|
33
|
+
id?: string;
|
|
34
|
+
/** Label of the custom code deployment */
|
|
35
|
+
label: string;
|
|
36
|
+
/** Name */
|
|
37
|
+
name: string;
|
|
38
|
+
/** Namespace */
|
|
39
|
+
namespace?: string;
|
|
40
|
+
/** Parameters of the custom code deployment */
|
|
41
|
+
parameters?: {
|
|
42
|
+
[key: string]: string;
|
|
43
|
+
};
|
|
44
|
+
/** Version of the custom code */
|
|
45
|
+
version: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Input representation for creating a Custom Code Deployment
|
|
49
|
+
*
|
|
50
|
+
* Keys:
|
|
51
|
+
* name (string): name
|
|
52
|
+
*/
|
|
53
|
+
export interface CustomCodeDeploymentInputRepresentation {
|
|
54
|
+
codeType?: string;
|
|
55
|
+
computeType: string;
|
|
56
|
+
description?: string;
|
|
57
|
+
id?: string;
|
|
58
|
+
label: string;
|
|
59
|
+
name: string;
|
|
60
|
+
namespace?: string;
|
|
61
|
+
parameters?: {
|
|
62
|
+
[key: string]: string;
|
|
63
|
+
};
|
|
64
|
+
version: string;
|
|
65
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { CdpUserRepresentation as CdpUserRepresentation_CdpUserRepresentation } from './CdpUserRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
export declare const VERSION = "bc7c21323d31a68bdc0ef7484dc4fa2b";
|
|
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
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export type CustomCodeDeploymentRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialCustomCodeDeploymentRepresentationNormalizedKeyMetadata = 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): CustomCodeDeploymentRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: CustomCodeDeploymentRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: CustomCodeDeploymentRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function normalize(input: CustomCodeDeploymentRepresentation, existing: CustomCodeDeploymentRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CustomCodeDeploymentRepresentationNormalized;
|
|
16
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
|
+
export declare function equals(existing: CustomCodeDeploymentRepresentationNormalized, incoming: CustomCodeDeploymentRepresentationNormalized): 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: CustomCodeDeploymentRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
|
+
/**
|
|
21
|
+
* A custom code deployment.
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* id (string): id
|
|
25
|
+
*/
|
|
26
|
+
export interface CustomCodeDeploymentRepresentationNormalized {
|
|
27
|
+
/** Custom code type */
|
|
28
|
+
codeType: string;
|
|
29
|
+
/** Compute type for executions of the custom code */
|
|
30
|
+
computeType: string;
|
|
31
|
+
/** Created by */
|
|
32
|
+
createdBy: CdpUserRepresentation_CdpUserRepresentation;
|
|
33
|
+
/** Created date */
|
|
34
|
+
createdDate: string;
|
|
35
|
+
/** Failure code for the custom code deployment */
|
|
36
|
+
deploymentFailureCode?: number;
|
|
37
|
+
/** Failure reason for the custom code deployment */
|
|
38
|
+
deploymentFailureReason?: string;
|
|
39
|
+
/** Deployment status of the custom code */
|
|
40
|
+
deploymentStatus: string;
|
|
41
|
+
/** Description of the custom code deployment */
|
|
42
|
+
description?: string;
|
|
43
|
+
/** URL to use for custom code file upload */
|
|
44
|
+
fileUploadUrl: string;
|
|
45
|
+
/** List of function invoke options */
|
|
46
|
+
functionInvokeOptions?: Array<string>;
|
|
47
|
+
/** The 18 character ID of the asset */
|
|
48
|
+
id: string;
|
|
49
|
+
/** Label of the asset */
|
|
50
|
+
label: string;
|
|
51
|
+
/** Last modified by */
|
|
52
|
+
lastModifiedBy: CdpUserRepresentation_CdpUserRepresentation;
|
|
53
|
+
/** Last modified date */
|
|
54
|
+
lastModifiedDate: string;
|
|
55
|
+
/** Name of the asset */
|
|
56
|
+
name: string;
|
|
57
|
+
/** Namespace of the asset */
|
|
58
|
+
namespace?: string;
|
|
59
|
+
/** Parameters of custom code deployment */
|
|
60
|
+
parameters: {
|
|
61
|
+
[key: string]: string;
|
|
62
|
+
};
|
|
63
|
+
/** Sync status of the custom code deployment */
|
|
64
|
+
status: string;
|
|
65
|
+
/** Url */
|
|
66
|
+
url: string;
|
|
67
|
+
/** Version of the custom code */
|
|
68
|
+
version: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* A custom code deployment.
|
|
72
|
+
*
|
|
73
|
+
* Keys:
|
|
74
|
+
* id (string): id
|
|
75
|
+
*/
|
|
76
|
+
export interface CustomCodeDeploymentRepresentation {
|
|
77
|
+
codeType: string;
|
|
78
|
+
computeType: string;
|
|
79
|
+
createdBy: CdpUserRepresentation_CdpUserRepresentation;
|
|
80
|
+
createdDate: string;
|
|
81
|
+
deploymentFailureCode?: number;
|
|
82
|
+
deploymentFailureReason?: string;
|
|
83
|
+
deploymentStatus: string;
|
|
84
|
+
description?: string;
|
|
85
|
+
fileUploadUrl: string;
|
|
86
|
+
functionInvokeOptions?: Array<string>;
|
|
87
|
+
id: string;
|
|
88
|
+
label: string;
|
|
89
|
+
lastModifiedBy: CdpUserRepresentation_CdpUserRepresentation;
|
|
90
|
+
lastModifiedDate: string;
|
|
91
|
+
name: string;
|
|
92
|
+
namespace?: string;
|
|
93
|
+
parameters: {
|
|
94
|
+
[key: string]: string;
|
|
95
|
+
};
|
|
96
|
+
status: string;
|
|
97
|
+
url: string;
|
|
98
|
+
version: string;
|
|
99
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const ObjectKeys: {
|
|
3
|
+
(o: object): string[];
|
|
4
|
+
(o: {}): string[];
|
|
5
|
+
}, ObjectCreate: {
|
|
6
|
+
(o: object | null): any;
|
|
7
|
+
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
8
|
+
}, ObjectAssign: {
|
|
9
|
+
<T extends {}, U>(target: T, source: U): T & U;
|
|
10
|
+
<T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
|
|
11
|
+
<T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
|
|
12
|
+
(target: object, ...sources: any[]): any;
|
|
13
|
+
};
|
|
14
|
+
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
15
|
+
export declare const JSONStringify: {
|
|
16
|
+
(value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
|
|
17
|
+
(value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
|
|
18
|
+
};
|
|
19
|
+
type AllowedPrimitives = boolean | string | number | Date | null;
|
|
20
|
+
type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
|
|
21
|
+
export type RecursivePartial<T> = null | {
|
|
22
|
+
[P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
|
|
23
|
+
};
|
|
24
|
+
export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
|
|
25
|
+
export declare function equalsObject<U, V extends {
|
|
26
|
+
[key: string]: U;
|
|
27
|
+
}>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
|
|
28
|
+
export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
|
|
29
|
+
__ref: string;
|
|
30
|
+
};
|
|
31
|
+
export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
32
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@salesforce/lds-adapters-cdp-byoc",
|
|
3
|
+
"version": "1.332.0-dev18",
|
|
4
|
+
"description": "Used to connect to the CDP BYOC service in core and off-core",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
|
+
"main": "dist/es/es2018/cdp-byoc.js",
|
|
7
|
+
"module": "dist/es/es2018/cdp-byoc.js",
|
|
8
|
+
"types": "dist/es/es2018/types/src/generated/artifacts/main.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"sfdc",
|
|
12
|
+
"src/raml/*"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/es/es2018/types/src/generated/artifacts/main.d.ts",
|
|
17
|
+
"import": "./dist/es/es2018/cdp-byoc.js",
|
|
18
|
+
"require": "./dist/es/es2018/cdp-byoc.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": "cdpByocApi"
|
|
29
|
+
},
|
|
30
|
+
"contributors": [
|
|
31
|
+
"cdp-byoc@salesforce.com"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "yarn build:services",
|
|
35
|
+
"build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
|
|
36
|
+
"build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
|
|
37
|
+
"clean": "rm -rf dist sfdc src/generated",
|
|
38
|
+
"release:core": "../../scripts/release/core.js --adapter=lds-adapters-cdp-byoc",
|
|
39
|
+
"release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-cdp-byoc",
|
|
40
|
+
"test:unit": "jest"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@salesforce/lds-bindings": "^1.332.0-dev18"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.332.0-dev18"
|
|
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
|
+
}
|
package/sfdc/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';
|