@salesforce/lds-adapters-service-milestones 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.
@@ -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 = "Milestones";
@@ -0,0 +1,28 @@
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_getConnectMilestonesBusinessHours_ResourceRequestConfig } from '../resources/getConnectMilestonesBusinessHours';
4
+ import { BusinessHoursRepresentation as types_BusinessHoursRepresentation_BusinessHoursRepresentation } from '../types/BusinessHoursRepresentation';
5
+ export declare const adapterName = "getBusinessHours";
6
+ export declare const getBusinessHours_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getBusinessHours_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetBusinessHoursConfig {
9
+ businessHoursId?: string | null;
10
+ getNextDayBusinessHours?: boolean | null;
11
+ }
12
+ export declare const createResourceParams: (config: GetBusinessHoursConfig) => resources_getConnectMilestonesBusinessHours_ResourceRequestConfig;
13
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetBusinessHoursConfig): string;
14
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetBusinessHoursConfig): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetBusinessHoursConfig>): adapter$45$utils_Untrusted<GetBusinessHoursConfig>;
16
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetBusinessHoursConfig | null;
17
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetBusinessHoursConfig): $64$luvio_engine_Fragment;
18
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetBusinessHoursConfig): $64$luvio_engine_Snapshot<types_BusinessHoursRepresentation_BusinessHoursRepresentation, any>;
19
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetBusinessHoursConfig, resourceParams: resources_getConnectMilestonesBusinessHours_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_BusinessHoursRepresentation_BusinessHoursRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_BusinessHoursRepresentation_BusinessHoursRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_BusinessHoursRepresentation_BusinessHoursRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_BusinessHoursRepresentation_BusinessHoursRepresentation, any>>;
20
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetBusinessHoursConfig, resourceParams: resources_getConnectMilestonesBusinessHours_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
21
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetBusinessHoursConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_BusinessHoursRepresentation_BusinessHoursRepresentation, any>>;
22
+ export type BuildSnapshotContext = {
23
+ luvio: $64$luvio_engine_Luvio;
24
+ config: GetBusinessHoursConfig;
25
+ };
26
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_BusinessHoursRepresentation_BusinessHoursRepresentation, any>>;
27
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_BusinessHoursRepresentation_BusinessHoursRepresentation>): $64$luvio_engine_Snapshot<types_BusinessHoursRepresentation_BusinessHoursRepresentation, any>;
28
+ export declare const getBusinessHoursAdapterFactory: $64$luvio_engine_AdapterFactory<GetBusinessHoursConfig, types_BusinessHoursRepresentation_BusinessHoursRepresentation>;
@@ -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_getConnectMilestonesMilestonesDataManagerByRecordId_ResourceRequestConfig } from '../resources/getConnectMilestonesMilestonesDataManagerByRecordId';
4
+ import { MilestonesDataManagerRepresentation as types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation } from '../types/MilestonesDataManagerRepresentation';
5
+ export declare const adapterName = "getMilestonesDataManager";
6
+ export declare const getMilestonesDataManager_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getMilestonesDataManager_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetMilestonesDataManagerConfig {
9
+ recordId: string;
10
+ }
11
+ export declare const createResourceParams: (config: GetMilestonesDataManagerConfig) => resources_getConnectMilestonesMilestonesDataManagerByRecordId_ResourceRequestConfig;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetMilestonesDataManagerConfig): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetMilestonesDataManagerConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetMilestonesDataManagerConfig>): adapter$45$utils_Untrusted<GetMilestonesDataManagerConfig>;
15
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetMilestonesDataManagerConfig | null;
16
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetMilestonesDataManagerConfig): $64$luvio_engine_Fragment;
17
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetMilestonesDataManagerConfig): $64$luvio_engine_Snapshot<types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation, any>;
18
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetMilestonesDataManagerConfig, resourceParams: resources_getConnectMilestonesMilestonesDataManagerByRecordId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation, any>>;
19
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetMilestonesDataManagerConfig, resourceParams: resources_getConnectMilestonesMilestonesDataManagerByRecordId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
20
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetMilestonesDataManagerConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation, any>>;
21
+ export type BuildSnapshotContext = {
22
+ luvio: $64$luvio_engine_Luvio;
23
+ config: GetMilestonesDataManagerConfig;
24
+ };
25
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation, any>>;
26
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation>): $64$luvio_engine_Snapshot<types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation, any>;
27
+ export declare const getMilestonesDataManagerAdapterFactory: $64$luvio_engine_AdapterFactory<GetMilestonesDataManagerConfig, types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation>;
@@ -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_putConnectMilestonesMilestoneCompleted_ResourceRequestConfig } from '../resources/putConnectMilestonesMilestoneCompleted';
4
+ import { MilestoneCompletedRepresentation as types_MilestoneCompletedRepresentation_MilestoneCompletedRepresentation } from '../types/MilestoneCompletedRepresentation';
5
+ export declare const adapterName = "markMilestoneCompleted";
6
+ export declare const markMilestoneCompleted_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const markMilestoneCompleted_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface MarkMilestoneCompletedConfig {
9
+ milestoneId?: string | null;
10
+ }
11
+ export declare const createResourceParams: (config: MarkMilestoneCompletedConfig) => resources_putConnectMilestonesMilestoneCompleted_ResourceRequestConfig;
12
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<MarkMilestoneCompletedConfig>): adapter$45$utils_Untrusted<MarkMilestoneCompletedConfig>;
13
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): MarkMilestoneCompletedConfig | null;
14
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: MarkMilestoneCompletedConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_MilestoneCompletedRepresentation_MilestoneCompletedRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_MilestoneCompletedRepresentation_MilestoneCompletedRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_MilestoneCompletedRepresentation_MilestoneCompletedRepresentation, any>>;
15
+ export declare const markMilestoneCompletedAdapterFactory: $64$luvio_engine_AdapterFactory<MarkMilestoneCompletedConfig, types_MilestoneCompletedRepresentation_MilestoneCompletedRepresentation>;
@@ -0,0 +1,3 @@
1
+ export { getBusinessHoursAdapterFactory } from '../adapters/getBusinessHours';
2
+ export { markMilestoneCompletedAdapterFactory } from '../adapters/markMilestoneCompleted';
3
+ export { getMilestonesDataManagerAdapterFactory } from '../adapters/getMilestonesDataManager';
@@ -0,0 +1,6 @@
1
+ declare let getBusinessHours: any;
2
+ declare let getMilestonesDataManager: any;
3
+ declare let markMilestoneCompleted: any;
4
+ declare let getBusinessHours_imperative: any;
5
+ declare let getMilestonesDataManager_imperative: any;
6
+ export { getBusinessHours, getMilestonesDataManager, markMilestoneCompleted, getBusinessHours_imperative, getMilestonesDataManager_imperative, };
@@ -0,0 +1,16 @@
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 { BusinessHoursRepresentation as types_BusinessHoursRepresentation_BusinessHoursRepresentation } from '../types/BusinessHoursRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ queryParams: {
5
+ businessHoursId?: string | null;
6
+ getNextDayBusinessHours?: boolean | null;
7
+ };
8
+ }
9
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
10
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
11
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
12
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_BusinessHoursRepresentation_BusinessHoursRepresentation): void;
13
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_BusinessHoursRepresentation_BusinessHoursRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_BusinessHoursRepresentation_BusinessHoursRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_BusinessHoursRepresentation_BusinessHoursRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_BusinessHoursRepresentation_BusinessHoursRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_BusinessHoursRepresentation_BusinessHoursRepresentation, any>;
14
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_BusinessHoursRepresentation_BusinessHoursRepresentation>): $64$luvio_engine_ErrorSnapshot;
15
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
16
+ export default createResourceRequest;
@@ -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 { MilestonesDataManagerRepresentation as types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation } from '../types/MilestonesDataManagerRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ recordId: 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_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation): void;
12
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation, any>;
13
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_MilestonesDataManagerRepresentation_MilestonesDataManagerRepresentation>): $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 { MilestoneCompletedRepresentation as types_MilestoneCompletedRepresentation_MilestoneCompletedRepresentation } from '../types/MilestoneCompletedRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ queryParams: {
5
+ milestoneId?: string | null;
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_MilestoneCompletedRepresentation_MilestoneCompletedRepresentation): void;
10
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_MilestoneCompletedRepresentation_MilestoneCompletedRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_MilestoneCompletedRepresentation_MilestoneCompletedRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_MilestoneCompletedRepresentation_MilestoneCompletedRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_MilestoneCompletedRepresentation_MilestoneCompletedRepresentation, any>;
11
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
12
+ export default createResourceRequest;
@@ -0,0 +1,32 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const TTL = 100;
3
+ export declare const VERSION = "77385f3d3c79cead805a91e3f9f1f94b";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: BusinessHoursRepresentation, existing: BusinessHoursRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): BusinessHoursRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: BusinessHoursRepresentationNormalized, incoming: BusinessHoursRepresentationNormalized): 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: BusinessHoursRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Business Hours Description
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface BusinessHoursRepresentationNormalized {
18
+ /** End time of the Business Hours */
19
+ endTime: string | null;
20
+ /** Start Time of the Business Hours */
21
+ startTime: string | null;
22
+ }
23
+ /**
24
+ * Business Hours Description
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface BusinessHoursRepresentation {
30
+ endTime: string | null;
31
+ startTime: string | null;
32
+ }
@@ -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, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ export declare const TTL = 100;
3
+ export declare const VERSION = "2225350c2bb6b0628fe14b755cc2f9ee";
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
+ requestId: string | null;
8
+ }
9
+ export type MilestoneCompletedRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
10
+ export type PartialMilestoneCompletedRepresentationNormalizedKeyMetadata = 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): MilestoneCompletedRepresentationNormalizedKeyMetadata;
13
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: MilestoneCompletedRepresentation): string;
14
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: MilestoneCompletedRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function normalize(input: MilestoneCompletedRepresentation, existing: MilestoneCompletedRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MilestoneCompletedRepresentationNormalized;
16
+ export declare const select: () => $64$luvio_engine_BaseFragment;
17
+ export declare function equals(existing: MilestoneCompletedRepresentationNormalized, incoming: MilestoneCompletedRepresentationNormalized): 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: MilestoneCompletedRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
+ /**
21
+ * Milestone Completed Description
22
+ *
23
+ * Keys:
24
+ * requestId (string | null): milestoneId
25
+ */
26
+ export interface MilestoneCompletedRepresentationNormalized {
27
+ /** Completed Status of the Milestone */
28
+ completed: boolean | null;
29
+ /** Id of the Milestone */
30
+ milestoneId: string | null;
31
+ }
32
+ /**
33
+ * Milestone Completed Description
34
+ *
35
+ * Keys:
36
+ * requestId (string | null): milestoneId
37
+ */
38
+ export interface MilestoneCompletedRepresentation {
39
+ completed: boolean | null;
40
+ milestoneId: string | null;
41
+ }
@@ -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 TTL = 100;
3
+ export declare const VERSION = "a2cd71d2b2939f60d03c222feec15f36";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: MilestonesDataManagerRepresentation, existing: MilestonesDataManagerRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MilestonesDataManagerRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: MilestonesDataManagerRepresentationNormalized, incoming: MilestonesDataManagerRepresentationNormalized): 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: MilestonesDataManagerRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Milestone Data Manager Representation Description
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface MilestonesDataManagerRepresentationNormalized {
18
+ /** Get Actual Time Remaining */
19
+ actualTimeRemaining: {
20
+ [key: string]: string;
21
+ };
22
+ /** Get Fields */
23
+ fields: Array<string>;
24
+ /** Get Ignore Business Hours */
25
+ ignoreBusinessHours: boolean | null;
26
+ /** Milestone Agreement Type Map */
27
+ milestoneAgreementTypeMap: {
28
+ [key: string]: string;
29
+ };
30
+ /** Get Overdue Milestone Ignore Business Hours */
31
+ overdueMilestoneIgnoreBusinessHours: boolean | null;
32
+ /** Get Record Ids */
33
+ recordIds: Array<string>;
34
+ /** Get Sla Exit Date */
35
+ slaExitDate: string | null;
36
+ /** Get Stop StartDate */
37
+ stopStartDate: string | null;
38
+ }
39
+ /**
40
+ * Milestone Data Manager Representation Description
41
+ *
42
+ * Keys:
43
+ * (none)
44
+ */
45
+ export interface MilestonesDataManagerRepresentation {
46
+ actualTimeRemaining: {
47
+ [key: string]: string;
48
+ };
49
+ fields: Array<string>;
50
+ ignoreBusinessHours: boolean | null;
51
+ milestoneAgreementTypeMap: {
52
+ [key: string]: string;
53
+ };
54
+ overdueMilestoneIgnoreBusinessHours: boolean | null;
55
+ recordIds: Array<string>;
56
+ slaExitDate: string | null;
57
+ stopStartDate: string | null;
58
+ }
@@ -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-service-milestones",
3
+ "version": "0.1.0-dev1",
4
+ "description": "Milestones API family description",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/service-milestones.js",
7
+ "module": "dist/es/es2018/service-milestones.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/service-milestones.js",
18
+ "require": "./dist/es/es2018/service-milestones.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": "serviceMilestonesApi"
29
+ },
30
+ "contributors": [
31
+ "s.sarkar@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-service-milestones",
39
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-service-milestones",
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
+ },
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';