@salesforce/lds-adapters-service-basesetup 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 = "basesetup";
@@ -0,0 +1,19 @@
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_postConnectBaseSetupEnableFeatureSet_ResourceRequestConfig } from '../resources/postConnectBaseSetupEnableFeatureSet';
4
+ import { EnableFeatureSetOutputRepresentation as types_EnableFeatureSetOutputRepresentation_EnableFeatureSetOutputRepresentation } from '../types/EnableFeatureSetOutputRepresentation';
5
+ export declare const adapterName = "enableFeatureSet";
6
+ export declare const enableFeatureSet_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const enableFeatureSet_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface EnableFeatureSetConfig {
9
+ additionalInfo: {
10
+ [key: string]: {};
11
+ };
12
+ featureApiName: string;
13
+ featureSetApiName: string;
14
+ }
15
+ export declare const createResourceParams: (config: EnableFeatureSetConfig) => resources_postConnectBaseSetupEnableFeatureSet_ResourceRequestConfig;
16
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<EnableFeatureSetConfig>): adapter$45$utils_Untrusted<EnableFeatureSetConfig>;
17
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): EnableFeatureSetConfig | null;
18
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: EnableFeatureSetConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_EnableFeatureSetOutputRepresentation_EnableFeatureSetOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_EnableFeatureSetOutputRepresentation_EnableFeatureSetOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_EnableFeatureSetOutputRepresentation_EnableFeatureSetOutputRepresentation, any>>;
19
+ export declare const enableFeatureSetAdapterFactory: $64$luvio_engine_AdapterFactory<EnableFeatureSetConfig, types_EnableFeatureSetOutputRepresentation_EnableFeatureSetOutputRepresentation>;
@@ -0,0 +1,29 @@
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, UncoercedConfiguration as adapter$45$utils_UncoercedConfiguration } from './adapter-utils';
3
+ import { ResourceRequestConfig as resources_getConnectBaseSetupFeatureSetDetail_ResourceRequestConfig } from '../resources/getConnectBaseSetupFeatureSetDetail';
4
+ import { FeatureSetRepresentation as types_FeatureSetRepresentation_FeatureSetRepresentation, KeyParams as types_FeatureSetRepresentation_KeyParams } from '../types/FeatureSetRepresentation';
5
+ export declare const adapterName = "getFeatureSetDetail";
6
+ export declare const getFeatureSetDetail_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getFeatureSetDetail_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetFeatureSetDetailConfig {
9
+ featureApiNames?: Array<string>;
10
+ featureSetApiName: string;
11
+ }
12
+ export declare const createResourceParams: (config: GetFeatureSetDetailConfig) => resources_getConnectBaseSetupFeatureSetDetail_ResourceRequestConfig;
13
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetFeatureSetDetailConfig): string;
14
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetFeatureSetDetailConfig): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetFeatureSetDetailConfig>): adapter$45$utils_Untrusted<GetFeatureSetDetailConfig>;
16
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetFeatureSetDetailConfig | null;
17
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetFeatureSetDetailConfig): $64$luvio_engine_Fragment;
18
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetFeatureSetDetailConfig): $64$luvio_engine_Snapshot<types_FeatureSetRepresentation_FeatureSetRepresentation, any>;
19
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetFeatureSetDetailConfig, resourceParams: resources_getConnectBaseSetupFeatureSetDetail_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FeatureSetRepresentation_FeatureSetRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_FeatureSetRepresentation_FeatureSetRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_FeatureSetRepresentation_FeatureSetRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_FeatureSetRepresentation_FeatureSetRepresentation, any>>;
20
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetFeatureSetDetailConfig, resourceParams: resources_getConnectBaseSetupFeatureSetDetail_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
21
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetFeatureSetDetailConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_FeatureSetRepresentation_FeatureSetRepresentation, any>>;
22
+ export type BuildSnapshotContext = {
23
+ luvio: $64$luvio_engine_Luvio;
24
+ config: GetFeatureSetDetailConfig;
25
+ };
26
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_FeatureSetRepresentation_FeatureSetRepresentation, any>>;
27
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_FeatureSetRepresentation_FeatureSetRepresentation>): $64$luvio_engine_Snapshot<types_FeatureSetRepresentation_FeatureSetRepresentation, any>;
28
+ export declare const getFeatureSetDetailAdapterFactory: $64$luvio_engine_AdapterFactory<GetFeatureSetDetailConfig, types_FeatureSetRepresentation_FeatureSetRepresentation>;
29
+ export declare const notifyChangeFactory: (luvio: $64$luvio_engine_Luvio, options?: $64$luvio_engine_DispatchResourceRequestContext) => (configs: adapter$45$utils_UncoercedConfiguration<types_FeatureSetRepresentation_KeyParams, any>[]) => void;
@@ -0,0 +1,2 @@
1
+ export { enableFeatureSetAdapterFactory } from '../adapters/enableFeatureSet';
2
+ export { getFeatureSetDetailAdapterFactory } from '../adapters/getFeatureSetDetail';
@@ -0,0 +1,5 @@
1
+ declare let enableFeatureSet: any;
2
+ declare let getFeatureSetDetail: any;
3
+ declare let getFeatureSetDetailNotifyChange: any;
4
+ declare let getFeatureSetDetail_imperative: any;
5
+ export { enableFeatureSet, getFeatureSetDetail, getFeatureSetDetailNotifyChange, getFeatureSetDetail_imperative, };
@@ -0,0 +1,17 @@
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 { FeatureSetRepresentation as types_FeatureSetRepresentation_FeatureSetRepresentation } from '../types/FeatureSetRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ queryParams: {
5
+ featureApiNames?: Array<string>;
6
+ featureSetApiName: string;
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_FeatureSetRepresentation_FeatureSetRepresentation): void;
13
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FeatureSetRepresentation_FeatureSetRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FeatureSetRepresentation_FeatureSetRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FeatureSetRepresentation_FeatureSetRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FeatureSetRepresentation_FeatureSetRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FeatureSetRepresentation_FeatureSetRepresentation, any>;
14
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FeatureSetRepresentation_FeatureSetRepresentation>): $64$luvio_engine_ErrorSnapshot;
15
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
16
+ export default createResourceRequest;
17
+ export declare function createResourceRequestFromRepresentation(representation: types_FeatureSetRepresentation_FeatureSetRepresentation): $64$luvio_engine_ResourceRequest;
@@ -0,0 +1,16 @@
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 { EnableFeatureSetOutputRepresentation as types_EnableFeatureSetOutputRepresentation_EnableFeatureSetOutputRepresentation } from '../types/EnableFeatureSetOutputRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ body: {
5
+ additionalInfo: {
6
+ [key: string]: {};
7
+ };
8
+ featureApiName: string;
9
+ featureSetApiName: string;
10
+ };
11
+ }
12
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
13
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EnableFeatureSetOutputRepresentation_EnableFeatureSetOutputRepresentation): void;
14
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EnableFeatureSetOutputRepresentation_EnableFeatureSetOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EnableFeatureSetOutputRepresentation_EnableFeatureSetOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EnableFeatureSetOutputRepresentation_EnableFeatureSetOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EnableFeatureSetOutputRepresentation_EnableFeatureSetOutputRepresentation, any>;
15
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
16
+ export default createResourceRequest;
@@ -0,0 +1,38 @@
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 = "f4da014744d443e4f8da35dda009bc3d";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: EnableFeatureSetInputRepresentation, existing: EnableFeatureSetInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnableFeatureSetInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: EnableFeatureSetInputRepresentationNormalized, incoming: EnableFeatureSetInputRepresentationNormalized): 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: EnableFeatureSetInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Enable Field Service feature set
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface EnableFeatureSetInputRepresentationNormalized {
17
+ /** Additional info storing user inputs */
18
+ additionalInfo: {
19
+ [key: string]: {};
20
+ };
21
+ /** Feature API Name */
22
+ featureApiName: string;
23
+ /** Feature Set API Name */
24
+ featureSetApiName: string;
25
+ }
26
+ /**
27
+ * Enable Field Service feature set
28
+ *
29
+ * Keys:
30
+ * (none)
31
+ */
32
+ export interface EnableFeatureSetInputRepresentation {
33
+ additionalInfo: {
34
+ [key: string]: {};
35
+ };
36
+ featureApiName: string;
37
+ featureSetApiName: string;
38
+ }
@@ -0,0 +1,48 @@
1
+ import { FeatureSetErrorRepresentation as FeatureSetErrorRepresentation_FeatureSetErrorRepresentation } from './FeatureSetErrorRepresentation';
2
+ import { FeatureStatusRepresentation as FeatureStatusRepresentation_FeatureStatusRepresentation } from './FeatureStatusRepresentation';
3
+ 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';
4
+ export declare const VERSION = "83652c37c36b03098220a8a09f67bef0";
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
+ featureSetApiName: string;
9
+ }
10
+ export type EnableFeatureSetOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export type PartialEnableFeatureSetOutputRepresentationNormalizedKeyMetadata = 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): EnableFeatureSetOutputRepresentationNormalizedKeyMetadata;
14
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: EnableFeatureSetOutputRepresentation): string;
15
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: EnableFeatureSetOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function normalize(input: EnableFeatureSetOutputRepresentation, existing: EnableFeatureSetOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnableFeatureSetOutputRepresentationNormalized;
17
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
18
+ export declare function equals(existing: EnableFeatureSetOutputRepresentationNormalized, incoming: EnableFeatureSetOutputRepresentationNormalized): 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: EnableFeatureSetOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
+ /**
22
+ * Output representation of enable feature set
23
+ *
24
+ * Keys:
25
+ * featureSetApiName (string): featureSetApiName
26
+ */
27
+ export interface EnableFeatureSetOutputRepresentationNormalized {
28
+ /** Top level errors */
29
+ errors: Array<FeatureSetErrorRepresentation_FeatureSetErrorRepresentation>;
30
+ /** Feature set API Name */
31
+ featureSetApiName: string;
32
+ /** Feature set status */
33
+ featureSetStatus: string;
34
+ /** List of statuses for each feature in feature set */
35
+ featureStatusList: Array<FeatureStatusRepresentation_FeatureStatusRepresentation>;
36
+ }
37
+ /**
38
+ * Output representation of enable feature set
39
+ *
40
+ * Keys:
41
+ * featureSetApiName (string): featureSetApiName
42
+ */
43
+ export interface EnableFeatureSetOutputRepresentation {
44
+ errors: Array<FeatureSetErrorRepresentation_FeatureSetErrorRepresentation>;
45
+ featureSetApiName: string;
46
+ featureSetStatus: string;
47
+ featureStatusList: Array<FeatureStatusRepresentation_FeatureStatusRepresentation>;
48
+ }
@@ -0,0 +1,38 @@
1
+ import { FeatureSetErrorRepresentation as FeatureSetErrorRepresentation_FeatureSetErrorRepresentation } from './FeatureSetErrorRepresentation';
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 = "ca4ec8cd4e622433088678cab5c86b05";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: FeatureRepresentation, existing: FeatureRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeatureRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: FeatureRepresentationNormalized, incoming: FeatureRepresentationNormalized): 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: FeatureRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Representation of Feature Details
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface FeatureRepresentationNormalized {
18
+ /** Errors */
19
+ errors: Array<FeatureSetErrorRepresentation_FeatureSetErrorRepresentation>;
20
+ /** API name that uniquely identifies a feature */
21
+ featureApiName: string;
22
+ /** Status of a specific feature */
23
+ featureStatus: string;
24
+ /** Flag to track org status of a feature setup */
25
+ reExecuteFeature: boolean;
26
+ }
27
+ /**
28
+ * Representation of Feature Details
29
+ *
30
+ * Keys:
31
+ * (none)
32
+ */
33
+ export interface FeatureRepresentation {
34
+ errors: Array<FeatureSetErrorRepresentation_FeatureSetErrorRepresentation>;
35
+ featureApiName: string;
36
+ featureStatus: string;
37
+ reExecuteFeature: boolean;
38
+ }
@@ -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 = "57736b1397735a74a85726a28b18413d";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: FeatureSetErrorRepresentation, existing: FeatureSetErrorRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeatureSetErrorRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: FeatureSetErrorRepresentationNormalized, incoming: FeatureSetErrorRepresentationNormalized): 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: FeatureSetErrorRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Output representation of feature set error
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface FeatureSetErrorRepresentationNormalized {
17
+ /** Error code */
18
+ errorCode: string;
19
+ /** Error message */
20
+ errorMessage: string;
21
+ }
22
+ /**
23
+ * Output representation of feature set error
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface FeatureSetErrorRepresentation {
29
+ errorCode: string;
30
+ errorMessage: string;
31
+ }
@@ -0,0 +1,51 @@
1
+ import { FeatureSetErrorRepresentation as FeatureSetErrorRepresentation_FeatureSetErrorRepresentation } from './FeatureSetErrorRepresentation';
2
+ import { FeatureRepresentation as FeatureRepresentation_FeatureRepresentation } from './FeatureRepresentation';
3
+ 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';
4
+ export declare const VERSION = "0970fea00fb709ac6da6352a070b6436";
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
+ featureSetApiName: string;
9
+ }
10
+ export type FeatureSetRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export type PartialFeatureSetRepresentationNormalizedKeyMetadata = 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): FeatureSetRepresentationNormalizedKeyMetadata;
14
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: FeatureSetRepresentation): string;
15
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: FeatureSetRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function normalize(input: FeatureSetRepresentation, existing: FeatureSetRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeatureSetRepresentationNormalized;
17
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
18
+ export declare function equals(existing: FeatureSetRepresentationNormalized, incoming: FeatureSetRepresentationNormalized): 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: FeatureSetRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
+ /**
22
+ * Output representation for featureSetDetails endpoint (FeatureSet Detail)
23
+ *
24
+ * Keys:
25
+ * featureSetApiName (string): featureSetApiName
26
+ */
27
+ export interface FeatureSetRepresentationNormalized {
28
+ /** Description for a specific feature set */
29
+ description: string;
30
+ /** Errors */
31
+ errors: Array<FeatureSetErrorRepresentation_FeatureSetErrorRepresentation>;
32
+ /** API name that uniquely identifies a feature set */
33
+ featureSetApiName: string;
34
+ /** The status for a specific feature set */
35
+ featureSetStatus: string;
36
+ /** The features for the specified feature set */
37
+ features: Array<FeatureRepresentation_FeatureRepresentation>;
38
+ }
39
+ /**
40
+ * Output representation for featureSetDetails endpoint (FeatureSet Detail)
41
+ *
42
+ * Keys:
43
+ * featureSetApiName (string): featureSetApiName
44
+ */
45
+ export interface FeatureSetRepresentation {
46
+ description: string;
47
+ errors: Array<FeatureSetErrorRepresentation_FeatureSetErrorRepresentation>;
48
+ featureSetApiName: string;
49
+ featureSetStatus: string;
50
+ features: Array<FeatureRepresentation_FeatureRepresentation>;
51
+ }
@@ -0,0 +1,35 @@
1
+ import { FeatureSetErrorRepresentation as FeatureSetErrorRepresentation_FeatureSetErrorRepresentation } from './FeatureSetErrorRepresentation';
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 = "fdf09db1e294f390c748746b14b00ea8";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: FeatureStatusRepresentation, existing: FeatureStatusRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeatureStatusRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: FeatureStatusRepresentationNormalized, incoming: FeatureStatusRepresentationNormalized): 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: FeatureStatusRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Output representation of feature status
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface FeatureStatusRepresentationNormalized {
18
+ /** Errors */
19
+ errors: Array<FeatureSetErrorRepresentation_FeatureSetErrorRepresentation>;
20
+ /** Feature API Name */
21
+ featureApiName: string;
22
+ /** Feature status */
23
+ featureStatus: string;
24
+ }
25
+ /**
26
+ * Output representation of feature status
27
+ *
28
+ * Keys:
29
+ * (none)
30
+ */
31
+ export interface FeatureStatusRepresentation {
32
+ errors: Array<FeatureSetErrorRepresentation_FeatureSetErrorRepresentation>;
33
+ featureApiName: string;
34
+ featureStatus: string;
35
+ }
@@ -0,0 +1,32 @@
1
+ import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const ObjectKeys: {
3
+ (o: object): string[];
4
+ (o: {}): string[];
5
+ }, ObjectCreate: {
6
+ (o: object | null): any;
7
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
8
+ }, ObjectAssign: {
9
+ <T extends {}, U>(target: T, source: U): T & U;
10
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
11
+ <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
12
+ (target: object, ...sources: any[]): any;
13
+ };
14
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
15
+ export declare const JSONStringify: {
16
+ (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
17
+ (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
18
+ };
19
+ type AllowedPrimitives = boolean | string | number | Date | null;
20
+ type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
21
+ export type RecursivePartial<T> = null | {
22
+ [P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
23
+ };
24
+ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
25
+ export declare function equalsObject<U, V extends {
26
+ [key: string]: U;
27
+ }>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
28
+ export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
29
+ __ref: string;
30
+ };
31
+ export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
32
+ export {};
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-service-basesetup",
3
+ "version": "0.1.0-dev1",
4
+ "description": "A family of APIs that facilitates easy setup and configuration via a setup assistant",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/service-basesetup.js",
7
+ "module": "dist/es/es2018/service-basesetup.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-basesetup.js",
18
+ "require": "./dist/es/es2018/service-basesetup.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": "serviceBasesetupApi"
29
+ },
30
+ "contributors": [
31
+ "cifejiagwa@salesforce.com",
32
+ "david.koo@salesforce.com"
33
+ ],
34
+ "scripts": {
35
+ "build": "yarn build:services",
36
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
37
+ "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
38
+ "clean": "rm -rf dist sfdc src/generated",
39
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-service-basesetup",
40
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-service-basesetup",
41
+ "test:unit": "jest"
42
+ },
43
+ "dependencies": {
44
+ "@salesforce/lds-bindings": "^0.1.0-dev1"
45
+ },
46
+ "devDependencies": {
47
+ "@salesforce/lds-compiler-plugins": "^0.1.0-dev1"
48
+ },
49
+ "nx": {
50
+ "targets": {
51
+ "build": {
52
+ "outputs": [
53
+ "{projectRoot}/dist",
54
+ "{projectRoot}/sfdc"
55
+ ]
56
+ },
57
+ "build:raml": {
58
+ "outputs": [
59
+ "{projectRoot}/src/generated"
60
+ ]
61
+ }
62
+ }
63
+ },
64
+ "volta": {
65
+ "extends": "../../package.json"
66
+ }
67
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';