@salesforce/lds-adapters-industries-featurevalidation 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 = "featurevalidation";
@@ -0,0 +1,16 @@
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 { FeatureValidationInputRepresentation as types_FeatureValidationInputRepresentation_FeatureValidationInputRepresentation } from '../types/FeatureValidationInputRepresentation';
4
+ import { ResourceRequestConfig as resources_postConnectIndustriesFeatureValidation_ResourceRequestConfig } from '../resources/postConnectIndustriesFeatureValidation';
5
+ import { FeatureValidationOutputRepresentation as types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation } from '../types/FeatureValidationOutputRepresentation';
6
+ export declare const adapterName = "featureValidation";
7
+ export declare const featureValidation_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
8
+ export declare const featureValidation_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
9
+ export interface FeatureValidationConfig {
10
+ FeatureValidationData: types_FeatureValidationInputRepresentation_FeatureValidationInputRepresentation;
11
+ }
12
+ export declare const createResourceParams: (config: FeatureValidationConfig) => resources_postConnectIndustriesFeatureValidation_ResourceRequestConfig;
13
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<FeatureValidationConfig>): adapter$45$utils_Untrusted<FeatureValidationConfig>;
14
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): FeatureValidationConfig | null;
15
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: FeatureValidationConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation, any>>;
16
+ export declare const featureValidationAdapterFactory: $64$luvio_engine_AdapterFactory<FeatureValidationConfig, types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation>;
@@ -0,0 +1 @@
1
+ export { featureValidationAdapterFactory } from '../adapters/featureValidation';
@@ -0,0 +1,2 @@
1
+ declare let featureValidation: any;
2
+ export { featureValidation };
@@ -0,0 +1,13 @@
1
+ import { FeatureValidationInputRepresentation as types_FeatureValidationInputRepresentation_FeatureValidationInputRepresentation } from '../types/FeatureValidationInputRepresentation';
2
+ 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';
3
+ import { FeatureValidationOutputRepresentation as types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation } from '../types/FeatureValidationOutputRepresentation';
4
+ export interface ResourceRequestConfig {
5
+ body: {
6
+ FeatureValidationData: types_FeatureValidationInputRepresentation_FeatureValidationInputRepresentation;
7
+ };
8
+ }
9
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
10
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation): void;
11
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation, any>;
12
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
13
+ export default createResourceRequest;
@@ -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 = "0d47ccdcf5db6f8d66e7eef5eecfea77";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: FeatureValidationAccessInfoRepresentation, existing: FeatureValidationAccessInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeatureValidationAccessInfoRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: FeatureValidationAccessInfoRepresentationNormalized, incoming: FeatureValidationAccessInfoRepresentationNormalized): 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: FeatureValidationAccessInfoRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Represents the access info of entities and fields
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface FeatureValidationAccessInfoRepresentationNormalized {
17
+ /** the level of access that needs to be validated */
18
+ accessLevel: string;
19
+ /** api name of the entity or field */
20
+ apiName: string;
21
+ /** validates the access level of the entity or field */
22
+ hasAccess: boolean;
23
+ /** specifies if the given name is an entity or a field */
24
+ type: string;
25
+ }
26
+ /**
27
+ * Represents the access info of entities and fields
28
+ *
29
+ * Keys:
30
+ * (none)
31
+ */
32
+ export interface FeatureValidationAccessInfoRepresentation {
33
+ accessLevel: string;
34
+ apiName: string;
35
+ hasAccess: boolean;
36
+ type: string;
37
+ }
@@ -0,0 +1,40 @@
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 = "8b64929ba3ec78671e1ff0f37e0e40bf";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: FeatureValidationFieldValuesRepresentation, existing: FeatureValidationFieldValuesRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeatureValidationFieldValuesRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: FeatureValidationFieldValuesRepresentationNormalized, incoming: FeatureValidationFieldValuesRepresentationNormalized): 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: FeatureValidationFieldValuesRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Select fields that were validated as part of use-case implementation.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface FeatureValidationFieldValuesRepresentationNormalized {
17
+ /** Field name */
18
+ fieldName: string;
19
+ /** Field value */
20
+ fieldValue: string;
21
+ /** Message related to the field. Example: Missing fls permissions. */
22
+ message: string;
23
+ /** Describes the type of the message. Example: Error, Warning or Info. */
24
+ messageType: string;
25
+ /** true if field is required. false otherwise. */
26
+ required: boolean;
27
+ }
28
+ /**
29
+ * Select fields that were validated as part of use-case implementation.
30
+ *
31
+ * Keys:
32
+ * (none)
33
+ */
34
+ export interface FeatureValidationFieldValuesRepresentation {
35
+ fieldName: string;
36
+ fieldValue: string;
37
+ message: string;
38
+ messageType: string;
39
+ required: boolean;
40
+ }
@@ -0,0 +1,36 @@
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 = "60c73c655b3937ef7bd48858b4f78f29";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: FeatureValidationInputDetailsRepresentation, existing: FeatureValidationInputDetailsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeatureValidationInputDetailsRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: FeatureValidationInputDetailsRepresentationNormalized, incoming: FeatureValidationInputDetailsRepresentationNormalized): 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: FeatureValidationInputDetailsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Holds BPO recordUsage and bpo recordId. example: {"recordUsage": "Facility",
12
+ "bpoRecordId": "0bSxx0000000005EAA"}
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface FeatureValidationInputDetailsRepresentationNormalized {
18
+ /** Input BPO record id */
19
+ bpoRecordId: string;
20
+ /** How record is used in the feature. Example value: Patient. Note: Account is a bpo name but Patient is a business usage of the patient's account */
21
+ recordUsage: string;
22
+ /** used for access checks, determines the scenario or the flow for the given feature */
23
+ scenarioName: string;
24
+ }
25
+ /**
26
+ * Holds BPO recordUsage and bpo recordId. example: {"recordUsage": "Facility",
27
+ "bpoRecordId": "0bSxx0000000005EAA"}
28
+ *
29
+ * Keys:
30
+ * (none)
31
+ */
32
+ export interface FeatureValidationInputDetailsRepresentation {
33
+ bpoRecordId: string;
34
+ recordUsage: string;
35
+ scenarioName: string;
36
+ }
@@ -0,0 +1,31 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "48d9d6d93a46779d56d7eae66a5f2333";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: FeatureValidationInputRepresentation, existing: FeatureValidationInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeatureValidationInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: FeatureValidationInputRepresentationNormalized, incoming: FeatureValidationInputRepresentationNormalized): 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: FeatureValidationInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Feature validation input
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface FeatureValidationInputRepresentationNormalized {
17
+ /** Holds record usage and bpo recordId. */
18
+ featureValidationInputDetails: Array<{}>;
19
+ /** Use-case to validate the data. Example: HealthCloudIAM needs user to pass on practitioner id, facility id, patient id, and worktype id in featureValidationInputDetails. */
20
+ useCase: string;
21
+ }
22
+ /**
23
+ * Feature validation input
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface FeatureValidationInputRepresentation {
29
+ featureValidationInputDetails: Array<{}>;
30
+ useCase: string;
31
+ }
@@ -0,0 +1,45 @@
1
+ import { FeatureValidationAccessInfoRepresentation as FeatureValidationAccessInfoRepresentation_FeatureValidationAccessInfoRepresentation } from './FeatureValidationAccessInfoRepresentation';
2
+ import { FeatureValidationFieldValuesRepresentation as FeatureValidationFieldValuesRepresentation_FeatureValidationFieldValuesRepresentation } from './FeatureValidationFieldValuesRepresentation';
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 VERSION = "a1bf162cf98bc525d53bc137d27b2086";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: FeatureValidationOutputDetailsRepresentation, existing: FeatureValidationOutputDetailsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeatureValidationOutputDetailsRepresentationNormalized;
8
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
9
+ export declare function equals(existing: FeatureValidationOutputDetailsRepresentationNormalized, incoming: FeatureValidationOutputDetailsRepresentationNormalized): boolean;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: FeatureValidationOutputDetailsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
+ /**
13
+ * Holds BPO name, bpoRecordId, select fields from the bpo and related error message.
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface FeatureValidationOutputDetailsRepresentationNormalized {
19
+ /** BPO name */
20
+ bpoName: string;
21
+ /** BPO record id */
22
+ bpoRecordId: string;
23
+ /** Access check results for the fields/entities */
24
+ featureValidationAccessInfo: Array<FeatureValidationAccessInfoRepresentation_FeatureValidationAccessInfoRepresentation>;
25
+ /** Select fields that were validated as part of use-case implementation. */
26
+ featureValidationFieldValues: Array<FeatureValidationFieldValuesRepresentation_FeatureValidationFieldValuesRepresentation>;
27
+ /** Message related to the bpo. Example: Invalid record Id. */
28
+ message: string;
29
+ /** Describes the type of the message. Example: Error, Warning or Info. */
30
+ messageType: string;
31
+ }
32
+ /**
33
+ * Holds BPO name, bpoRecordId, select fields from the bpo and related error message.
34
+ *
35
+ * Keys:
36
+ * (none)
37
+ */
38
+ export interface FeatureValidationOutputDetailsRepresentation {
39
+ bpoName: string;
40
+ bpoRecordId: string;
41
+ featureValidationAccessInfo: Array<FeatureValidationAccessInfoRepresentation_FeatureValidationAccessInfoRepresentation>;
42
+ featureValidationFieldValues: Array<FeatureValidationFieldValuesRepresentation_FeatureValidationFieldValuesRepresentation>;
43
+ message: string;
44
+ messageType: string;
45
+ }
@@ -0,0 +1,45 @@
1
+ import { FeatureValidationOutputDetailsRepresentation as FeatureValidationOutputDetailsRepresentation_FeatureValidationOutputDetailsRepresentation } from './FeatureValidationOutputDetailsRepresentation';
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 = 300;
4
+ export declare const VERSION = "cca11a8e3ab8424bcce64057aad4f46d";
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
+ isSuccess: boolean;
9
+ }
10
+ export type FeatureValidationOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export type PartialFeatureValidationOutputRepresentationNormalizedKeyMetadata = 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): FeatureValidationOutputRepresentationNormalizedKeyMetadata;
14
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: FeatureValidationOutputRepresentation): string;
15
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: FeatureValidationOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function normalize(input: FeatureValidationOutputRepresentation, existing: FeatureValidationOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeatureValidationOutputRepresentationNormalized;
17
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
18
+ export declare function equals(existing: FeatureValidationOutputRepresentationNormalized, incoming: FeatureValidationOutputRepresentationNormalized): boolean;
19
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
20
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: FeatureValidationOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
+ /**
22
+ * FeatureValidation output.
23
+ *
24
+ * Keys:
25
+ * isSuccess (boolean): isSuccess
26
+ */
27
+ export interface FeatureValidationOutputRepresentationNormalized {
28
+ /** Get FeatureValidation error messages */
29
+ errorMessage?: string;
30
+ /** Holds BPO name, bpoRecordId, select fields from the bpo and related error message. */
31
+ featureValidationOutputDetails: Array<FeatureValidationOutputDetailsRepresentation_FeatureValidationOutputDetailsRepresentation>;
32
+ /** Get FeatureValidation success flag */
33
+ isSuccess: boolean;
34
+ }
35
+ /**
36
+ * FeatureValidation output.
37
+ *
38
+ * Keys:
39
+ * isSuccess (boolean): isSuccess
40
+ */
41
+ export interface FeatureValidationOutputRepresentation {
42
+ errorMessage?: string;
43
+ featureValidationOutputDetails: Array<FeatureValidationOutputDetailsRepresentation_FeatureValidationOutputDetailsRepresentation>;
44
+ isSuccess: boolean;
45
+ }
@@ -0,0 +1,29 @@
1
+ import { FeatureValidationInputRepresentation as FeatureValidationInputRepresentation_FeatureValidationInputRepresentation } from './FeatureValidationInputRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "4207845dfb88c988fe5cc9446004b714";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: FeatureValidationWrapperInputRepresentation, existing: FeatureValidationWrapperInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeatureValidationWrapperInputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: FeatureValidationWrapperInputRepresentationNormalized, incoming: FeatureValidationWrapperInputRepresentationNormalized): 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: FeatureValidationWrapperInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * wrapper of FeatureValidationInputRepresentation
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface FeatureValidationWrapperInputRepresentationNormalized {
18
+ /** Input representation for FeatureValidationInputRepresentation */
19
+ FeatureValidationData: FeatureValidationInputRepresentation_FeatureValidationInputRepresentation;
20
+ }
21
+ /**
22
+ * wrapper of FeatureValidationInputRepresentation
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface FeatureValidationWrapperInputRepresentation {
28
+ FeatureValidationData: FeatureValidationInputRepresentation_FeatureValidationInputRepresentation;
29
+ }
@@ -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,75 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-industries-featurevalidation",
3
+ "version": "0.1.0-dev1",
4
+ "description": "Feature validation tool to debug setup issues.",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/umd/es2018/industries-featurevalidation.js",
7
+ "module": "dist/es/es2018/industries-featurevalidation.js",
8
+ "types": "dist/types/src/generated/artifacts/main.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "sfdc",
12
+ "src/raml/*"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/types/src/generated/artifacts/main.d.ts",
17
+ "import": "./dist/es/es2018/industries-featurevalidation.js",
18
+ "require": "./dist/umd/es2018/industries-featurevalidation.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": "industriesFeaturevalidationApi"
29
+ },
30
+ "contributors": [
31
+ "vpatcha@salesforce.com",
32
+ "atharanichelvan@salesforce.com"
33
+ ],
34
+ "scripts": {
35
+ "build": "yarn build:services",
36
+ "build:karma": "rollup --bundleConfigAsCjs --config rollup.config.karma.js",
37
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
38
+ "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
39
+ "clean": "rm -rf dist sfdc src/generated karma/dist",
40
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-industries-featurevalidation",
41
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-industries-featurevalidation",
42
+ "start": "nx build:karma && karma start",
43
+ "test": "nx build:karma && karma start --single-run"
44
+ },
45
+ "dependencies": {
46
+ "@salesforce/lds-bindings": "^0.1.0-dev1"
47
+ },
48
+ "devDependencies": {
49
+ "@salesforce/lds-compiler-plugins": "^0.1.0-dev1",
50
+ "@salesforce/lds-karma": "^0.1.0-dev1"
51
+ },
52
+ "nx": {
53
+ "targets": {
54
+ "build": {
55
+ "outputs": [
56
+ "{projectRoot}/dist",
57
+ "{projectRoot}/sfdc"
58
+ ]
59
+ },
60
+ "build:raml": {
61
+ "outputs": [
62
+ "{projectRoot}/src/generated"
63
+ ]
64
+ },
65
+ "build:karma": {
66
+ "outputs": [
67
+ "{projectRoot}/karma/dist"
68
+ ]
69
+ }
70
+ }
71
+ },
72
+ "volta": {
73
+ "extends": "../../package.json"
74
+ }
75
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';