@salesforce/lds-adapters-platform-enablement 0.131.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,66 @@
1
+ import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot } from '@luvio/engine';
2
+ export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
3
+ declare const ObjectKeys: {
4
+ (o: object): string[];
5
+ (o: {}): string[];
6
+ }, ObjectFreeze: {
7
+ <T extends Function>(f: T): T;
8
+ <T_1 extends {
9
+ [idx: string]: object | U | null | undefined;
10
+ }, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
11
+ <T_2>(o: T_2): Readonly<T_2>;
12
+ }, ObjectCreate: {
13
+ (o: object | null): any;
14
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
15
+ };
16
+ export { ObjectFreeze, ObjectCreate, ObjectKeys };
17
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
18
+ export declare const ArrayPrototypePush: (...items: any[]) => number;
19
+ export interface AdapterValidationConfig {
20
+ displayName: string;
21
+ parameters: {
22
+ required: string[];
23
+ optional: string[];
24
+ unsupported?: string[];
25
+ };
26
+ }
27
+ /**
28
+ * Validates an adapter config is well-formed.
29
+ * @param config The config to validate.
30
+ * @param adapter The adapter validation configuration.
31
+ * @param oneOf The keys the config must contain at least one of.
32
+ * @throws A TypeError if config doesn't satisfy the adapter's config validation.
33
+ */
34
+ export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
35
+ export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
36
+ export type UncoercedConfiguration<Base, Options extends {
37
+ [key in keyof Base]?: any;
38
+ }> = {
39
+ [Key in keyof Base]?: Base[Key] | Options[Key];
40
+ };
41
+ export type Untrusted<Base> = Partial<Base>;
42
+ export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
43
+ 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>;
44
+ export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
45
+ export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
46
+ export declare const snapshotRefreshOptions: {
47
+ overrides: {
48
+ headers: {
49
+ 'Cache-Control': string;
50
+ };
51
+ };
52
+ };
53
+ /**
54
+ * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
55
+ * This is needed because insertion order for JSON.stringify(object) affects output:
56
+ * JSON.stringify({a: 1, b: 2})
57
+ * "{"a":1,"b":2}"
58
+ * JSON.stringify({b: 2, a: 1})
59
+ * "{"b":2,"a":1}"
60
+ * @param data Data to be JSON-stringified.
61
+ * @returns JSON.stringified value with consistent ordering of keys.
62
+ */
63
+ export declare function stableJSONStringify(node: any): string | undefined;
64
+ export declare function getFetchResponseStatusText(status: number): string;
65
+ export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
66
+ export declare const keyPrefix = "enablement";
@@ -0,0 +1,26 @@
1
+ import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
2
+ import { ResourceRequestConfig as resources_getConnectEnablementProgramSummaryAssigned_ResourceRequestConfig } from '../resources/getConnectEnablementProgramSummaryAssigned';
3
+ import { 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';
4
+ import { EnablementProgramSummaryListRepresentation as types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation } from '../types/EnablementProgramSummaryListRepresentation';
5
+ export declare const adapterName = "getAssignedEnablementProgramSummary";
6
+ export declare const getAssignedEnablementProgramSummary_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
+ export interface GetAssignedEnablementProgramSummaryConfig {
8
+ limit?: number;
9
+ }
10
+ export declare function createResourceParams(config: GetAssignedEnablementProgramSummaryConfig): resources_getConnectEnablementProgramSummaryAssigned_ResourceRequestConfig;
11
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetAssignedEnablementProgramSummaryConfig): string;
12
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetAssignedEnablementProgramSummaryConfig): $64$luvio_engine_NormalizedKeyMetadata;
13
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetAssignedEnablementProgramSummaryConfig>): adapter$45$utils_Untrusted<GetAssignedEnablementProgramSummaryConfig>;
14
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetAssignedEnablementProgramSummaryConfig | null;
15
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetAssignedEnablementProgramSummaryConfig): $64$luvio_engine_Fragment;
16
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetAssignedEnablementProgramSummaryConfig): $64$luvio_engine_Snapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, any>;
17
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetAssignedEnablementProgramSummaryConfig, resourceParams: resources_getConnectEnablementProgramSummaryAssigned_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, any>>;
18
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetAssignedEnablementProgramSummaryConfig, resourceParams: resources_getConnectEnablementProgramSummaryAssigned_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
19
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetAssignedEnablementProgramSummaryConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, any>>;
20
+ export type BuildSnapshotContext = {
21
+ luvio: $64$luvio_engine_Luvio;
22
+ config: GetAssignedEnablementProgramSummaryConfig;
23
+ };
24
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, any>>;
25
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation>): $64$luvio_engine_Snapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, any>;
26
+ export declare const getAssignedEnablementProgramSummaryAdapterFactory: $64$luvio_engine_AdapterFactory<GetAssignedEnablementProgramSummaryConfig, types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation>;
@@ -0,0 +1,27 @@
1
+ import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
2
+ import { ResourceRequestConfig as resources_getConnectEnablementProgramSummaryByEnablementProgramId_ResourceRequestConfig } from '../resources/getConnectEnablementProgramSummaryByEnablementProgramId';
3
+ import { 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';
4
+ import { EnablementProgramSummaryRepresentation as types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation } from '../types/EnablementProgramSummaryRepresentation';
5
+ export declare const adapterName = "getEnablementProgramSummary";
6
+ export declare const getEnablementProgramSummary_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
+ export interface GetEnablementProgramSummaryConfig {
8
+ enablementProgramId: string;
9
+ includeProgress?: boolean;
10
+ }
11
+ export declare function createResourceParams(config: GetEnablementProgramSummaryConfig): resources_getConnectEnablementProgramSummaryByEnablementProgramId_ResourceRequestConfig;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetEnablementProgramSummaryConfig): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetEnablementProgramSummaryConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetEnablementProgramSummaryConfig>): adapter$45$utils_Untrusted<GetEnablementProgramSummaryConfig>;
15
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetEnablementProgramSummaryConfig | null;
16
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetEnablementProgramSummaryConfig): $64$luvio_engine_Fragment;
17
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetEnablementProgramSummaryConfig): $64$luvio_engine_Snapshot<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation, any>;
18
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetEnablementProgramSummaryConfig, resourceParams: resources_getConnectEnablementProgramSummaryByEnablementProgramId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation, any>>;
19
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetEnablementProgramSummaryConfig, resourceParams: resources_getConnectEnablementProgramSummaryByEnablementProgramId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
20
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetEnablementProgramSummaryConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation, any>>;
21
+ export type BuildSnapshotContext = {
22
+ luvio: $64$luvio_engine_Luvio;
23
+ config: GetEnablementProgramSummaryConfig;
24
+ };
25
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation, any>>;
26
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation>): $64$luvio_engine_Snapshot<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation, any>;
27
+ export declare const getEnablementProgramSummaryAdapterFactory: $64$luvio_engine_AdapterFactory<GetEnablementProgramSummaryConfig, types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation>;
@@ -0,0 +1,2 @@
1
+ export { getAssignedEnablementProgramSummaryAdapterFactory } from '../adapters/getAssignedEnablementProgramSummary';
2
+ export { getEnablementProgramSummaryAdapterFactory } from '../adapters/getEnablementProgramSummary';
@@ -0,0 +1,5 @@
1
+ declare let getAssignedEnablementProgramSummary: any;
2
+ declare let getEnablementProgramSummary: any;
3
+ declare let getAssignedEnablementProgramSummary_imperative: any;
4
+ declare let getEnablementProgramSummary_imperative: any;
5
+ export { getAssignedEnablementProgramSummary, getEnablementProgramSummary, getAssignedEnablementProgramSummary_imperative, getEnablementProgramSummary_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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, 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 { EnablementProgramSummaryListRepresentation as types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation } from '../types/EnablementProgramSummaryListRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ queryParams: {
5
+ limit?: number;
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(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, any>;
13
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation>): $64$luvio_engine_ErrorSnapshot;
14
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
15
+ export default createResourceRequest;
@@ -0,0 +1,18 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, 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 { EnablementProgramSummaryRepresentation as types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation } from '../types/EnablementProgramSummaryRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ enablementProgramId: string;
6
+ };
7
+ queryParams: {
8
+ includeProgress?: boolean;
9
+ };
10
+ }
11
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
+ export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
15
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation, any>;
16
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation>): $64$luvio_engine_ErrorSnapshot;
17
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
18
+ export default createResourceRequest;
@@ -0,0 +1,47 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentUnionSelection as $64$luvio_engine_FragmentUnionSelection, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ export declare enum DiscriminatorValues {
3
+ Task = "Task",
4
+ Section = "Section"
5
+ }
6
+ export declare const VERSION = "a9470f37b0d95500b425222897fff882";
7
+ export declare function validate(obj: any, path?: string): TypeError | null;
8
+ export declare const RepresentationType: string;
9
+ export declare function normalize(input: EnablementProgramSummaryItemRepresentation, existing: EnablementProgramSummaryItemRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramSummaryItemRepresentationNormalized;
10
+ export declare const selectChildren: () => $64$luvio_engine_FragmentUnionSelection;
11
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
12
+ export declare function equals(existing: EnablementProgramSummaryItemRepresentationNormalized, incoming: EnablementProgramSummaryItemRepresentationNormalized): boolean;
13
+ export declare function deepFreeze(input: EnablementProgramSummaryItemRepresentation): void;
14
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
15
+ export declare const discriminatorIngest: $64$luvio_engine_ResourceIngest;
16
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryItemRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
17
+ /**
18
+ * Common Enablement Program Summary item representation
19
+ *
20
+ * Keys:
21
+ * (none)
22
+ */
23
+ export interface EnablementProgramSummaryItemRepresentationNormalized {
24
+ /** Description of the enablement program summary item */
25
+ description: string;
26
+ /** Id of the enablement program summary item */
27
+ id: string;
28
+ /** Sequence Number of the enablement task */
29
+ sequenceNumber: number;
30
+ /** Title of the enablement program summary item */
31
+ title: string;
32
+ /** Type of enablement program summary item */
33
+ type: string;
34
+ }
35
+ /**
36
+ * Common Enablement Program Summary item representation
37
+ *
38
+ * Keys:
39
+ * (none)
40
+ */
41
+ export interface EnablementProgramSummaryItemRepresentation {
42
+ description: string;
43
+ id: string;
44
+ sequenceNumber: number;
45
+ title: string;
46
+ type: string;
47
+ }
@@ -0,0 +1,42 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ import { EnablementProgramSummaryRepresentation as EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation } from './EnablementProgramSummaryRepresentation';
3
+ export declare const VERSION = "7ef7adad59a82a6a2a4ab4ba77434b67";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: EnablementProgramSummaryListRepresentation, existing: EnablementProgramSummaryListRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramSummaryListRepresentationNormalized;
7
+ export interface DynamicIngestParams {
8
+ programSummaryList: $64$luvio_engine_ResourceIngest;
9
+ }
10
+ export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: EnablementProgramSummaryListRepresentation, existing: EnablementProgramSummaryListRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => EnablementProgramSummaryListRepresentationNormalized;
11
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
12
+ export interface DynamicSelectParams {
13
+ programSummaryList?: $64$luvio_engine_LinkSelection;
14
+ }
15
+ export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
16
+ export declare function equals(existing: EnablementProgramSummaryListRepresentationNormalized, incoming: EnablementProgramSummaryListRepresentationNormalized): boolean;
17
+ export declare function deepFreeze(input: EnablementProgramSummaryListRepresentation): void;
18
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
19
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
20
+ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
21
+ /**
22
+ * List of Enablement Program Summary Representations
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface EnablementProgramSummaryListRepresentationNormalized {
28
+ /** Indicates if there are more programs available than the results returned */
29
+ hasMore: boolean;
30
+ /** List of enablement program summaries */
31
+ programSummaryList: Array<$64$luvio_engine_StoreLink>;
32
+ }
33
+ /**
34
+ * List of Enablement Program Summary Representations
35
+ *
36
+ * Keys:
37
+ * (none)
38
+ */
39
+ export interface EnablementProgramSummaryListRepresentation {
40
+ hasMore: boolean;
41
+ programSummaryList: Array<EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation>;
42
+ }
@@ -0,0 +1,64 @@
1
+ import { EnablementProgramSummaryTaskRepresentation as EnablementProgramSummaryTaskRepresentation_EnablementProgramSummaryTaskRepresentation } from './EnablementProgramSummaryTaskRepresentation';
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 TTL = 15000;
4
+ export declare const VERSION = "83df796ee9af3bf09f5729eac8b86d08";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
8
+ enablement_program_id: string | null;
9
+ }
10
+ export type EnablementProgramSummaryRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export type PartialEnablementProgramSummaryRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): EnablementProgramSummaryRepresentationNormalizedKeyMetadata;
14
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: EnablementProgramSummaryRepresentation): string;
15
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: EnablementProgramSummaryRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function normalize(input: EnablementProgramSummaryRepresentation, existing: EnablementProgramSummaryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramSummaryRepresentationNormalized;
17
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
18
+ export declare function equals(existing: EnablementProgramSummaryRepresentationNormalized, incoming: EnablementProgramSummaryRepresentationNormalized): boolean;
19
+ export declare function deepFreeze(input: EnablementProgramSummaryRepresentation): void;
20
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
21
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
22
+ /**
23
+ * Enablement Program Summary Representation
24
+ *
25
+ * Keys:
26
+ * enablement_program_id (string | null): id
27
+ */
28
+ export interface EnablementProgramSummaryRepresentationNormalized {
29
+ /** Description of the enablement program */
30
+ description: string | null;
31
+ /** Due date for enablement program. */
32
+ dueDate: string | null;
33
+ /** Id of the enablement program */
34
+ id: string | null;
35
+ /** List of items for the enablement program */
36
+ items: Array<unknown>;
37
+ /** Learning Item Id of the enablement program */
38
+ learningItemId: string | null;
39
+ /** Outcome of the enablement program */
40
+ outcome: EnablementProgramSummaryTaskRepresentation_EnablementProgramSummaryTaskRepresentation | null;
41
+ /** Status of the enablement program */
42
+ status: string;
43
+ /** System modification timestamp of the enablement program */
44
+ systemModStamp?: string | null;
45
+ /** Name of the enablement program */
46
+ title: string | null;
47
+ }
48
+ /**
49
+ * Enablement Program Summary Representation
50
+ *
51
+ * Keys:
52
+ * enablement_program_id (string | null): id
53
+ */
54
+ export interface EnablementProgramSummaryRepresentation {
55
+ description: string | null;
56
+ dueDate: string | null;
57
+ id: string | null;
58
+ items: Array<unknown>;
59
+ learningItemId: string | null;
60
+ outcome: EnablementProgramSummaryTaskRepresentation_EnablementProgramSummaryTaskRepresentation | null;
61
+ status: string;
62
+ systemModStamp?: string | null;
63
+ title: string | null;
64
+ }
@@ -0,0 +1,32 @@
1
+ import { EnablementProgramSummaryItemRepresentation as EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation } from './EnablementProgramSummaryItemRepresentation';
2
+ import { EnablementProgramSummaryTaskRepresentation as EnablementProgramSummaryTaskRepresentation_EnablementProgramSummaryTaskRepresentation } from './EnablementProgramSummaryTaskRepresentation';
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
4
+ export declare const VERSION = "5ae4706d9f71126202e6170ace63ad7e";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: EnablementProgramSummarySectionRepresentation, existing: EnablementProgramSummarySectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramSummarySectionRepresentationNormalized;
8
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
9
+ export declare function equals(existing: EnablementProgramSummarySectionRepresentationNormalized, incoming: EnablementProgramSummarySectionRepresentationNormalized): boolean;
10
+ export declare function deepFreeze(input: EnablementProgramSummarySectionRepresentation): void;
11
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
12
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummarySectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
13
+ /**
14
+ * Runtime representation of enablement program section.
15
+ *
16
+ * Keys:
17
+ * (none)
18
+ */
19
+ export interface EnablementProgramSummarySectionRepresentationNormalized extends EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation {
20
+ /** List of tasks for the enablement program section */
21
+ tasks: Array<EnablementProgramSummaryTaskRepresentation_EnablementProgramSummaryTaskRepresentation>;
22
+ }
23
+ /**
24
+ * Runtime representation of enablement program section.
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface EnablementProgramSummarySectionRepresentation extends EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation {
30
+ tasks: Array<EnablementProgramSummaryTaskRepresentation_EnablementProgramSummaryTaskRepresentation>;
31
+ type: 'Section';
32
+ }
@@ -0,0 +1,70 @@
1
+ import { EnablementProgramSummaryItemRepresentation as EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation } from './EnablementProgramSummaryItemRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
+ export declare const VERSION = "4c8624037e7270f09e6a41f95632e74b";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: EnablementProgramSummaryTaskRepresentation, existing: EnablementProgramSummaryTaskRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramSummaryTaskRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: EnablementProgramSummaryTaskRepresentationNormalized, incoming: EnablementProgramSummaryTaskRepresentationNormalized): boolean;
9
+ export declare function deepFreeze(input: EnablementProgramSummaryTaskRepresentation): void;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryTaskRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
+ /**
13
+ * Runtime representation of enablement program task.
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface EnablementProgramSummaryTaskRepresentationNormalized extends EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation {
19
+ /** The date the item was completed */
20
+ completedDate: string | null;
21
+ /** Percent complete for the current user */
22
+ completedPercent: number | null;
23
+ /** The total contributing record count */
24
+ contributingRecordCount: number | null;
25
+ /** Due date for the current assignment */
26
+ dueDate: string | null;
27
+ /** Program Section Id of the enablement task */
28
+ enablementProgramSectionId: string | null;
29
+ /** Indicates if the item is complete or not */
30
+ isCompleted: boolean | null;
31
+ /** Indicates if the item is overdue or not */
32
+ isOverdue: boolean | null;
33
+ /** Learning Item Id of the enablement task */
34
+ learningItemId: string | null;
35
+ /** The result value of if the task is of measure type */
36
+ milestoneResult: number | null;
37
+ /** Milestone Target of the enablement task */
38
+ milestoneTarget: number | null;
39
+ /** The minimum sample record size */
40
+ minimumSampleSize: number | null;
41
+ /** The day the program task is due */
42
+ programDay: number;
43
+ /** Category Type of the enablement task */
44
+ taskCategory: string;
45
+ /** Sub Category Type of the enablement task */
46
+ taskSubCategory: string;
47
+ }
48
+ /**
49
+ * Runtime representation of enablement program task.
50
+ *
51
+ * Keys:
52
+ * (none)
53
+ */
54
+ export interface EnablementProgramSummaryTaskRepresentation extends EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation {
55
+ completedDate: string | null;
56
+ completedPercent: number | null;
57
+ contributingRecordCount: number | null;
58
+ dueDate: string | null;
59
+ enablementProgramSectionId: string | null;
60
+ isCompleted: boolean | null;
61
+ isOverdue: boolean | null;
62
+ learningItemId: string | null;
63
+ milestoneResult: number | null;
64
+ milestoneTarget: number | null;
65
+ minimumSampleSize: number | null;
66
+ programDay: number;
67
+ taskCategory: string;
68
+ taskSubCategory: string;
69
+ type: 'Task';
70
+ }
@@ -0,0 +1,39 @@
1
+ import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const ObjectFreeze: {
3
+ <T extends Function>(f: T): T;
4
+ <T_1 extends {
5
+ [idx: string]: object | U | null | undefined;
6
+ }, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
7
+ <T_2>(o: T_2): Readonly<T_2>;
8
+ }, ObjectKeys: {
9
+ (o: object): string[];
10
+ (o: {}): string[];
11
+ }, ObjectCreate: {
12
+ (o: object | null): any;
13
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
14
+ }, ObjectAssign: {
15
+ <T extends {}, U>(target: T, source: U): T & U;
16
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
17
+ <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;
18
+ (target: object, ...sources: any[]): any;
19
+ };
20
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
21
+ export declare const JSONStringify: {
22
+ (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
23
+ (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
24
+ };
25
+ type AllowedPrimitives = boolean | string | number | Date | null;
26
+ type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
27
+ export type RecursivePartial<T> = null | {
28
+ [P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
29
+ };
30
+ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
31
+ export declare function equalsObject<U, V extends {
32
+ [key: string]: U;
33
+ }>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
34
+ export declare function deepFreeze(value: any): void;
35
+ export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
36
+ __ref: string;
37
+ };
38
+ export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
39
+ export {};
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-platform-enablement",
3
+ "version": "0.131.0",
4
+ "license": "SEE LICENSE IN LICENSE.txt",
5
+ "description": "Wire adapters for enablement APIs",
6
+ "main": "dist/es/es2018/platform-enablement.js",
7
+ "module": "dist/es/es2018/platform-enablement.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
+ "import": "./dist/es/es2018/platform-enablement.js",
17
+ "require": "./dist/es/es2018/platform-enablement.js",
18
+ "types": "./dist/es/es2018/types/src/generated/artifacts/main.d.ts"
19
+ },
20
+ "./sfdc": {
21
+ "import": "./sfdc/index.js",
22
+ "types": "./sfdc/index.d.ts",
23
+ "default": "./sfdc/index.js"
24
+ }
25
+ },
26
+ "sdfc": {
27
+ "namespace": "lightning",
28
+ "module": "platformEnablementApi"
29
+ },
30
+ "contributors": [
31
+ "n.chandarraj@salesforce.com"
32
+ ],
33
+ "scripts": {
34
+ "build": "yarn build:raml && yarn build:services && yarn build:karma",
35
+ "build:karma": "rollup --config rollup.config.karma.js",
36
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
37
+ "build:services": "rollup --config rollup.config.js",
38
+ "clean": "rm -rf dist sfdc src/generated karma/dist",
39
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-platform-enablement",
40
+ "release:corejar": "yarn build && packages/core-build/scripts/core.js --adapter=lds-adapters-platform-enablement",
41
+ "start": "karma start",
42
+ "test": "karma start --single-run",
43
+ "test:compat": "karma start --single-run --compat",
44
+ "test:unit": "jest"
45
+ },
46
+ "dependencies": {
47
+ "@salesforce/lds-bindings": "1.131.0-244.6"
48
+ },
49
+ "devDependencies": {
50
+ "@salesforce/lds-compiler-plugins": "1.131.0-244.6",
51
+ "@salesforce/lds-karma": "1.131.0-244.6"
52
+ },
53
+ "nx": {
54
+ "targets": {
55
+ "build": {
56
+ "outputs": [
57
+ "packages/lds-adapters-platform-enablement/dist",
58
+ "packages/lds-adapters-platform-enablement/karma/dist",
59
+ "packages/lds-adapters-platform-enablement/sfdc",
60
+ "packages/lds-adapters-platform-enablement/src/generated"
61
+ ]
62
+ }
63
+ }
64
+ },
65
+ "volta": {
66
+ "extends": "../../package.json"
67
+ }
68
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';