@salesforce/lds-adapters-sales-enablementmeasureconnectfamily 0.1.0-dev1
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/sales-enablementmeasureconnectfamily.js +866 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getContributingRecordsInfoForMilestone.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/triggerOnDemandComputation.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectEnablementContributingRecordsTaskMeasureProgressByTaskMeasureProgressId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/patchConnectEnablementOnDemandComputationProgramsByProgramId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/types/ContributingRecordFieldInfoRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ContributingRecordFieldsValueRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/MilestoneProgressContributingRecordsRepresentation.d.ts +52 -0
- package/dist/es/es2018/types/src/generated/types/OnDemandComputationResponseRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +67 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +911 -0
- package/src/raml/api.raml +131 -0
- package/src/raml/luvio.raml +26 -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 = "EnablementMeasureConnectFamily";
|
package/dist/es/es2018/types/src/generated/adapters/getContributingRecordsInfoForMilestone.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
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_getConnectEnablementContributingRecordsTaskMeasureProgressByTaskMeasureProgressId_ResourceRequestConfig } from '../resources/getConnectEnablementContributingRecordsTaskMeasureProgressByTaskMeasureProgressId';
|
|
4
|
+
import { MilestoneProgressContributingRecordsRepresentation as types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation } from '../types/MilestoneProgressContributingRecordsRepresentation';
|
|
5
|
+
export declare const adapterName = "getContributingRecordsInfoForMilestone";
|
|
6
|
+
export declare const getContributingRecordsInfoForMilestone_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getContributingRecordsInfoForMilestone_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetContributingRecordsInfoForMilestoneConfig {
|
|
9
|
+
taskMeasureProgressId: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const createResourceParams: (config: GetContributingRecordsInfoForMilestoneConfig) => resources_getConnectEnablementContributingRecordsTaskMeasureProgressByTaskMeasureProgressId_ResourceRequestConfig;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetContributingRecordsInfoForMilestoneConfig): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetContributingRecordsInfoForMilestoneConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetContributingRecordsInfoForMilestoneConfig>): adapter$45$utils_Untrusted<GetContributingRecordsInfoForMilestoneConfig>;
|
|
15
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetContributingRecordsInfoForMilestoneConfig | null;
|
|
16
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetContributingRecordsInfoForMilestoneConfig): $64$luvio_engine_Fragment;
|
|
17
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetContributingRecordsInfoForMilestoneConfig): $64$luvio_engine_Snapshot<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation, any>;
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetContributingRecordsInfoForMilestoneConfig, resourceParams: resources_getConnectEnablementContributingRecordsTaskMeasureProgressByTaskMeasureProgressId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetContributingRecordsInfoForMilestoneConfig, resourceParams: resources_getConnectEnablementContributingRecordsTaskMeasureProgressByTaskMeasureProgressId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetContributingRecordsInfoForMilestoneConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation, any>>;
|
|
21
|
+
export type BuildSnapshotContext = {
|
|
22
|
+
luvio: $64$luvio_engine_Luvio;
|
|
23
|
+
config: GetContributingRecordsInfoForMilestoneConfig;
|
|
24
|
+
};
|
|
25
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation, any>>;
|
|
26
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation>): $64$luvio_engine_Snapshot<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation, any>;
|
|
27
|
+
export declare const getContributingRecordsInfoForMilestoneAdapterFactory: $64$luvio_engine_AdapterFactory<GetContributingRecordsInfoForMilestoneConfig, types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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_patchConnectEnablementOnDemandComputationProgramsByProgramId_ResourceRequestConfig } from '../resources/patchConnectEnablementOnDemandComputationProgramsByProgramId';
|
|
4
|
+
import { OnDemandComputationResponseRepresentation as types_OnDemandComputationResponseRepresentation_OnDemandComputationResponseRepresentation } from '../types/OnDemandComputationResponseRepresentation';
|
|
5
|
+
export declare const adapterName = "triggerOnDemandComputation";
|
|
6
|
+
export declare const triggerOnDemandComputation_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const triggerOnDemandComputation_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface TriggerOnDemandComputationConfig {
|
|
9
|
+
programId: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const createResourceParams: (config: TriggerOnDemandComputationConfig) => resources_patchConnectEnablementOnDemandComputationProgramsByProgramId_ResourceRequestConfig;
|
|
12
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<TriggerOnDemandComputationConfig>): adapter$45$utils_Untrusted<TriggerOnDemandComputationConfig>;
|
|
13
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): TriggerOnDemandComputationConfig | null;
|
|
14
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: TriggerOnDemandComputationConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_OnDemandComputationResponseRepresentation_OnDemandComputationResponseRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_OnDemandComputationResponseRepresentation_OnDemandComputationResponseRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_OnDemandComputationResponseRepresentation_OnDemandComputationResponseRepresentation, any>>;
|
|
15
|
+
export declare const triggerOnDemandComputationAdapterFactory: $64$luvio_engine_AdapterFactory<TriggerOnDemandComputationConfig, types_OnDemandComputationResponseRepresentation_OnDemandComputationResponseRepresentation>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare let getContributingRecordsInfoForMilestone: any;
|
|
2
|
+
declare let triggerOnDemandComputation: any;
|
|
3
|
+
declare let getContributingRecordsInfoForMilestone_imperative: any;
|
|
4
|
+
export { getContributingRecordsInfoForMilestone, triggerOnDemandComputation, getContributingRecordsInfoForMilestone_imperative, };
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { MilestoneProgressContributingRecordsRepresentation as types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation } from '../types/MilestoneProgressContributingRecordsRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
taskMeasureProgressId: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation): void;
|
|
12
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation, any>;
|
|
13
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 { OnDemandComputationResponseRepresentation as types_OnDemandComputationResponseRepresentation_OnDemandComputationResponseRepresentation } from '../types/OnDemandComputationResponseRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
programId: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_OnDemandComputationResponseRepresentation_OnDemandComputationResponseRepresentation): void;
|
|
10
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_OnDemandComputationResponseRepresentation_OnDemandComputationResponseRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_OnDemandComputationResponseRepresentation_OnDemandComputationResponseRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_OnDemandComputationResponseRepresentation_OnDemandComputationResponseRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_OnDemandComputationResponseRepresentation_OnDemandComputationResponseRepresentation, any>;
|
|
11
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
12
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/types/ContributingRecordFieldInfoRepresentation.d.ts
ADDED
|
@@ -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 = "ad12fb131e66578581e978c238ecbf1f";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ContributingRecordFieldInfoRepresentation, existing: ContributingRecordFieldInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ContributingRecordFieldInfoRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ContributingRecordFieldInfoRepresentationNormalized, incoming: ContributingRecordFieldInfoRepresentationNormalized): 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: ContributingRecordFieldInfoRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Contributing Record Field Info Representation.
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ContributingRecordFieldInfoRepresentationNormalized {
|
|
17
|
+
/** Field Api Name */
|
|
18
|
+
apiName: string | null;
|
|
19
|
+
/** Data type of field */
|
|
20
|
+
dataType: string | null;
|
|
21
|
+
/** Field Label */
|
|
22
|
+
label: string | null;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Contributing Record Field Info Representation.
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface ContributingRecordFieldInfoRepresentation {
|
|
31
|
+
apiName: string | null;
|
|
32
|
+
dataType: string | null;
|
|
33
|
+
label: string | null;
|
|
34
|
+
}
|
package/dist/es/es2018/types/src/generated/types/ContributingRecordFieldsValueRepresentation.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
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 = "1b50012cdea40e92974c92748eeb3fa7";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ContributingRecordFieldsValueRepresentation, existing: ContributingRecordFieldsValueRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ContributingRecordFieldsValueRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ContributingRecordFieldsValueRepresentationNormalized, incoming: ContributingRecordFieldsValueRepresentationNormalized): 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: ContributingRecordFieldsValueRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* MilestoneProgress Contributing Record Fields Output Representation
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ContributingRecordFieldsValueRepresentationNormalized {
|
|
17
|
+
/** Aggregation field value */
|
|
18
|
+
aggregationFieldValue: string | null;
|
|
19
|
+
/** Date filter field value */
|
|
20
|
+
dateFilterFieldValue: string | null;
|
|
21
|
+
/** Display field value */
|
|
22
|
+
displayFieldValue: string | null;
|
|
23
|
+
/** Contributing record id */
|
|
24
|
+
recordId: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* MilestoneProgress Contributing Record Fields Output Representation
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface ContributingRecordFieldsValueRepresentation {
|
|
33
|
+
aggregationFieldValue: string | null;
|
|
34
|
+
dateFilterFieldValue: string | null;
|
|
35
|
+
displayFieldValue: string | null;
|
|
36
|
+
recordId: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ContributingRecordFieldInfoRepresentation as ContributingRecordFieldInfoRepresentation_ContributingRecordFieldInfoRepresentation } from './ContributingRecordFieldInfoRepresentation';
|
|
2
|
+
import { ContributingRecordFieldsValueRepresentation as ContributingRecordFieldsValueRepresentation_ContributingRecordFieldsValueRepresentation } from './ContributingRecordFieldsValueRepresentation';
|
|
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 TTL = 5000;
|
|
5
|
+
export declare const VERSION = "a40560a4894d717e0f73660f0311f293";
|
|
6
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
|
+
export declare const RepresentationType: string;
|
|
8
|
+
export declare function normalize(input: MilestoneProgressContributingRecordsRepresentation, existing: MilestoneProgressContributingRecordsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MilestoneProgressContributingRecordsRepresentationNormalized;
|
|
9
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
10
|
+
export declare function equals(existing: MilestoneProgressContributingRecordsRepresentationNormalized, incoming: MilestoneProgressContributingRecordsRepresentationNormalized): boolean;
|
|
11
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
12
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: MilestoneProgressContributingRecordsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
13
|
+
/**
|
|
14
|
+
* MilestoneProgress Contributing Records Output Representation
|
|
15
|
+
*
|
|
16
|
+
* Keys:
|
|
17
|
+
* (none)
|
|
18
|
+
*/
|
|
19
|
+
export interface MilestoneProgressContributingRecordsRepresentationNormalized {
|
|
20
|
+
aggregationField: ContributingRecordFieldInfoRepresentation_ContributingRecordFieldInfoRepresentation;
|
|
21
|
+
/** Indicates milestone aggregation type */
|
|
22
|
+
aggregationType: string;
|
|
23
|
+
dateFilterField: ContributingRecordFieldInfoRepresentation_ContributingRecordFieldInfoRepresentation;
|
|
24
|
+
displayField: ContributingRecordFieldInfoRepresentation_ContributingRecordFieldInfoRepresentation;
|
|
25
|
+
/** Inaccessible Contributing records count */
|
|
26
|
+
inaccessibleRecordCount: number;
|
|
27
|
+
/** Measure Name */
|
|
28
|
+
measureName: string;
|
|
29
|
+
/** Contributing records */
|
|
30
|
+
records: Array<ContributingRecordFieldsValueRepresentation_ContributingRecordFieldsValueRepresentation>;
|
|
31
|
+
/** Source Object on which the measure is defined */
|
|
32
|
+
sourceObjectApiName: string;
|
|
33
|
+
/** Task measure progress id */
|
|
34
|
+
taskMeasureProgressId: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* MilestoneProgress Contributing Records Output Representation
|
|
38
|
+
*
|
|
39
|
+
* Keys:
|
|
40
|
+
* (none)
|
|
41
|
+
*/
|
|
42
|
+
export interface MilestoneProgressContributingRecordsRepresentation {
|
|
43
|
+
aggregationField: ContributingRecordFieldInfoRepresentation_ContributingRecordFieldInfoRepresentation;
|
|
44
|
+
aggregationType: string;
|
|
45
|
+
dateFilterField: ContributingRecordFieldInfoRepresentation_ContributingRecordFieldInfoRepresentation;
|
|
46
|
+
displayField: ContributingRecordFieldInfoRepresentation_ContributingRecordFieldInfoRepresentation;
|
|
47
|
+
inaccessibleRecordCount: number;
|
|
48
|
+
measureName: string;
|
|
49
|
+
records: Array<ContributingRecordFieldsValueRepresentation_ContributingRecordFieldsValueRepresentation>;
|
|
50
|
+
sourceObjectApiName: string;
|
|
51
|
+
taskMeasureProgressId: string;
|
|
52
|
+
}
|
package/dist/es/es2018/types/src/generated/types/OnDemandComputationResponseRepresentation.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
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 = 5000;
|
|
3
|
+
export declare const VERSION = "06f642b78c6dc5286bb5b43198feed06";
|
|
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
|
+
enablementProgramId: string;
|
|
8
|
+
}
|
|
9
|
+
export type OnDemandComputationResponseRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialOnDemandComputationResponseRepresentationNormalizedKeyMetadata = 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): OnDemandComputationResponseRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: OnDemandComputationResponseRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: OnDemandComputationResponseRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function normalize(input: OnDemandComputationResponseRepresentation, existing: OnDemandComputationResponseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): OnDemandComputationResponseRepresentationNormalized;
|
|
16
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
|
+
export declare function equals(existing: OnDemandComputationResponseRepresentationNormalized, incoming: OnDemandComputationResponseRepresentationNormalized): 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: OnDemandComputationResponseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
|
+
/**
|
|
21
|
+
* OnDemand Computation Response Representation
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* enablementProgramId (string): enablementProgramId
|
|
25
|
+
*/
|
|
26
|
+
export interface OnDemandComputationResponseRepresentationNormalized {
|
|
27
|
+
/** Record Id of Enablement Program for which computation is being triggered */
|
|
28
|
+
enablementProgramId: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* OnDemand Computation Response Representation
|
|
32
|
+
*
|
|
33
|
+
* Keys:
|
|
34
|
+
* enablementProgramId (string): enablementProgramId
|
|
35
|
+
*/
|
|
36
|
+
export interface OnDemandComputationResponseRepresentation {
|
|
37
|
+
enablementProgramId: string;
|
|
38
|
+
}
|
|
@@ -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,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@salesforce/lds-adapters-sales-enablementmeasureconnectfamily",
|
|
3
|
+
"version": "0.1.0-dev1",
|
|
4
|
+
"description": "Enablement Measure related Connect APIs",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
|
+
"main": "dist/es/es2018/sales-enablementmeasureconnectfamily.js",
|
|
7
|
+
"module": "dist/es/es2018/sales-enablementmeasureconnectfamily.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/sales-enablementmeasureconnectfamily.js",
|
|
18
|
+
"require": "./dist/es/es2018/sales-enablementmeasureconnectfamily.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": "salesEnablementmeasureconnectfamilyApi"
|
|
29
|
+
},
|
|
30
|
+
"contributors": [
|
|
31
|
+
"shadab.baig@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-sales-enablementmeasureconnectfamily",
|
|
39
|
+
"release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-sales-enablementmeasureconnectfamily",
|
|
40
|
+
"test:unit": "jest"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@salesforce/lds-bindings": "^0.1.0-dev1"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^0.1.0-dev1",
|
|
47
|
+
"@salesforce/lds-karma": "^0.1.0-dev1"
|
|
48
|
+
},
|
|
49
|
+
"nx": {
|
|
50
|
+
"targets": {
|
|
51
|
+
"build": {
|
|
52
|
+
"outputs": [
|
|
53
|
+
"{projectRoot}/dist",
|
|
54
|
+
"{projectRoot}/sfdc"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"build:raml": {
|
|
58
|
+
"outputs": [
|
|
59
|
+
"{projectRoot}/src/generated"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"volta": {
|
|
65
|
+
"extends": "../../package.json"
|
|
66
|
+
}
|
|
67
|
+
}
|
package/sfdc/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';
|