@salesforce/lds-adapters-uiapi 1.278.0 → 1.280.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.
- package/dist/es/es2018/types/src/configuration.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/types/AdvancedLookupDisplayInfoFieldRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/AdvancedLookupDisplayInfoRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/AdvancedLookupInfoRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/LookupMetadataTargetInfoRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/main.d.ts +4 -1
- package/dist/es/es2018/uiapi-records-service.js +316 -228
- package/package.json +8 -8
- package/sfdc/graphqlAdapters.js +17 -2
- package/sfdc/index.js +313 -230
- package/sfdc/uiapi-static-functions.js +1 -1
- package/src/raml/api.raml +32 -0
- package/src/raml/uiapi.graphql +139 -20
|
@@ -7,7 +7,11 @@ import type { DraftAwareCreateContentVersionAdapter } from './wire/createContent
|
|
|
7
7
|
import type { DraftAwareCreateRecordAdapter } from './wire/createRecord/configurationTypes';
|
|
8
8
|
import type { DraftAwareUpdateRecordAdapter } from './wire/updateRecord/configurationTypes';
|
|
9
9
|
import type { DraftAwareDeleteRecordAdapter } from './wire/deleteRecord/configurationTypes';
|
|
10
|
+
import type { GraphqlBatchConfig } from './wire/graphqlBatch';
|
|
11
|
+
import type { GraphQLBatchRepresentation } from './wire/graphqlBatch/postGraphqlBatch';
|
|
12
|
+
import type { BuildSnapshotContext as BatchBuildSnapshotContext } from './wire/graphqlBatch';
|
|
10
13
|
export type DraftAwareGraphQLAdapter = (config: GraphqlConfig, buildCachedSnapshotCachePolicy: (context: BuildSnapshotContext, storeLookup: StoreLookup<GraphQLRepresentation, unknown>) => Snapshot<GraphQLRepresentation, any>, buildNetworkSnapshotCachePolicy: (context: BuildSnapshotContext, coercedAdapterRequestContext: CoercedAdapterRequestContext) => Promise<Snapshot<GraphQLRepresentation, any>>, requestContext?: AdapterRequestContext) => Promise<AvailableSnapshot<GraphQLRepresentation>>;
|
|
14
|
+
export type EnvironmentAwareGraphQLBatchAdapter = (config: GraphqlBatchConfig, buildCachedSnapshotCachePolicy: (context: BatchBuildSnapshotContext, storeLookup: StoreLookup<GraphQLBatchRepresentation, unknown>) => Snapshot<GraphQLBatchRepresentation, any>, buildNetworkSnapshotCachePolicy: (context: BatchBuildSnapshotContext, coercedAdapterRequestContext: CoercedAdapterRequestContext) => Promise<Snapshot<GraphQLBatchRepresentation, any>>, requestContext?: AdapterRequestContext) => Promise<AvailableSnapshot<GraphQLBatchRepresentation>>;
|
|
11
15
|
/**
|
|
12
16
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
13
17
|
* Configuration for REST adapters only.
|
|
@@ -39,6 +43,8 @@ export declare const configurationForRestAdapters: {
|
|
|
39
43
|
export declare const configurationForGraphQLAdapters: {
|
|
40
44
|
setDraftAwareGraphQLAdapter: (adapter: DraftAwareGraphQLAdapter) => void;
|
|
41
45
|
getDraftAwareGraphQLAdapter: () => DraftAwareGraphQLAdapter | undefined;
|
|
46
|
+
setEnvironmentAwareGraphQLBatchAdapter: (adapter: EnvironmentAwareGraphQLBatchAdapter) => void;
|
|
47
|
+
getEnvironmentAwareGraphQLBatchAdapter: () => EnvironmentAwareGraphQLBatchAdapter | undefined;
|
|
42
48
|
};
|
|
43
49
|
/**
|
|
44
50
|
* Note: configuration isn't shared across REST and GraphQL adapters
|
package/dist/es/es2018/types/src/generated/types/AdvancedLookupDisplayInfoFieldRepresentation.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "8fe70439dbf33022585a7f49b380a2b3";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: AdvancedLookupDisplayInfoFieldRepresentation, existing: AdvancedLookupDisplayInfoFieldRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AdvancedLookupDisplayInfoFieldRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: AdvancedLookupDisplayInfoFieldRepresentationNormalized, incoming: AdvancedLookupDisplayInfoFieldRepresentationNormalized): 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: AdvancedLookupDisplayInfoFieldRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Search Lookups - Advanced Lookup Display Info Fields metadata
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface AdvancedLookupDisplayInfoFieldRepresentationNormalized {
|
|
17
|
+
/** Advanced Lookup Display Info Field FieldPath */
|
|
18
|
+
fieldPath: string;
|
|
19
|
+
/** Advanced Lookup Display Info Field Label */
|
|
20
|
+
label: string;
|
|
21
|
+
/** Advanced Lookup Display Info Field ObjectApiName */
|
|
22
|
+
objectApiName: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Search Lookups - Advanced Lookup Display Info Fields metadata
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface AdvancedLookupDisplayInfoFieldRepresentation {
|
|
31
|
+
fieldPath: string;
|
|
32
|
+
label: string;
|
|
33
|
+
objectApiName: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AdvancedLookupDisplayInfoFieldRepresentation as AdvancedLookupDisplayInfoFieldRepresentation_AdvancedLookupDisplayInfoFieldRepresentation } from './AdvancedLookupDisplayInfoFieldRepresentation';
|
|
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 = "3eca44e7957c5d65ea0b5cce2fa39d00";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: AdvancedLookupDisplayInfoRepresentation, existing: AdvancedLookupDisplayInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AdvancedLookupDisplayInfoRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: AdvancedLookupDisplayInfoRepresentationNormalized, incoming: AdvancedLookupDisplayInfoRepresentationNormalized): 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: AdvancedLookupDisplayInfoRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Search Lookups - Advanced Lookup Display Info metadata
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface AdvancedLookupDisplayInfoRepresentationNormalized {
|
|
18
|
+
/** ordered list of advanced Lookup Display Info Fields metadata */
|
|
19
|
+
fields: Array<AdvancedLookupDisplayInfoFieldRepresentation_AdvancedLookupDisplayInfoFieldRepresentation>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Search Lookups - Advanced Lookup Display Info metadata
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* (none)
|
|
26
|
+
*/
|
|
27
|
+
export interface AdvancedLookupDisplayInfoRepresentation {
|
|
28
|
+
fields: Array<AdvancedLookupDisplayInfoFieldRepresentation_AdvancedLookupDisplayInfoFieldRepresentation>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AdvancedLookupDisplayInfoRepresentation as AdvancedLookupDisplayInfoRepresentation_AdvancedLookupDisplayInfoRepresentation } from './AdvancedLookupDisplayInfoRepresentation';
|
|
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 = "6adca634d0b71c3a7cb5093bb634874f";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: AdvancedLookupInfoRepresentation, existing: AdvancedLookupInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AdvancedLookupInfoRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: AdvancedLookupInfoRepresentationNormalized, incoming: AdvancedLookupInfoRepresentationNormalized): 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: AdvancedLookupInfoRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Search Lookups - Advanced Lookup Info metadata
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface AdvancedLookupInfoRepresentationNormalized {
|
|
18
|
+
/** Advanced Lookup Display Info metadata */
|
|
19
|
+
displayInfo: AdvancedLookupDisplayInfoRepresentation_AdvancedLookupDisplayInfoRepresentation;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Search Lookups - Advanced Lookup Info metadata
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* (none)
|
|
26
|
+
*/
|
|
27
|
+
export interface AdvancedLookupInfoRepresentation {
|
|
28
|
+
displayInfo: AdvancedLookupDisplayInfoRepresentation_AdvancedLookupDisplayInfoRepresentation;
|
|
29
|
+
}
|
package/dist/es/es2018/types/src/generated/types/LookupMetadataTargetInfoRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { AdvancedLookupInfoRepresentation as AdvancedLookupInfoRepresentation_AdvancedLookupInfoRepresentation } from './AdvancedLookupInfoRepresentation';
|
|
1
2
|
import { DisplayLayoutAndMatchingInfoRepresentation as DisplayLayoutAndMatchingInfoRepresentation_DisplayLayoutAndMatchingInfoRepresentation } from './DisplayLayoutAndMatchingInfoRepresentation';
|
|
2
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';
|
|
3
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "5cd5cb0425e592a56eead7786c783f07";
|
|
4
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
6
|
export declare const RepresentationType: string;
|
|
6
7
|
export declare function normalize(input: LookupMetadataTargetInfoRepresentation, existing: LookupMetadataTargetInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LookupMetadataTargetInfoRepresentationNormalized;
|
|
@@ -15,6 +16,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
16
|
* (none)
|
|
16
17
|
*/
|
|
17
18
|
export interface LookupMetadataTargetInfoRepresentationNormalized {
|
|
19
|
+
/** Advanced Lookup Info */
|
|
20
|
+
advancedLookupInfo: AdvancedLookupInfoRepresentation_AdvancedLookupInfoRepresentation;
|
|
18
21
|
/** Full Search display layout and matching info */
|
|
19
22
|
fullSearchInfo: DisplayLayoutAndMatchingInfoRepresentation_DisplayLayoutAndMatchingInfoRepresentation;
|
|
20
23
|
/** Object API name */
|
|
@@ -29,6 +32,7 @@ export interface LookupMetadataTargetInfoRepresentationNormalized {
|
|
|
29
32
|
* (none)
|
|
30
33
|
*/
|
|
31
34
|
export interface LookupMetadataTargetInfoRepresentation {
|
|
35
|
+
advancedLookupInfo: AdvancedLookupInfoRepresentation_AdvancedLookupInfoRepresentation;
|
|
32
36
|
fullSearchInfo: DisplayLayoutAndMatchingInfoRepresentation_DisplayLayoutAndMatchingInfoRepresentation;
|
|
33
37
|
objectApiName: string;
|
|
34
38
|
suggestionsInfo: DisplayLayoutAndMatchingInfoRepresentation_DisplayLayoutAndMatchingInfoRepresentation;
|
|
@@ -42,6 +42,7 @@ export type { PerformActionInputRepresentation } from './generated/types/Perform
|
|
|
42
42
|
export type { RecordInputRepresentation } from './generated/types/RecordInputRepresentation';
|
|
43
43
|
export type { GraphQLRepresentation, GraphQLRepresentationData, } from './generated/types/GraphQLRepresentation';
|
|
44
44
|
export type { GraphQLBatchRepresentation } from './wire/graphqlBatch/postGraphqlBatch';
|
|
45
|
+
export type { GraphqlBatchConfig } from './wire/graphqlBatch';
|
|
45
46
|
export type { GraphQLInputRepresentation } from './generated/types/GraphQLInputRepresentation';
|
|
46
47
|
export type { GraphqlConfig as GraphQLConfig, BuildSnapshotContext as GraphQLBuildSnapshotContext, } from './generated/adapters/graphql';
|
|
47
48
|
export * from './generated/artifacts/main';
|
|
@@ -75,11 +76,13 @@ export { RecordRepresentationQueryEvaluator, InMemoryRecordRepresentationQueryEv
|
|
|
75
76
|
export { createRecordInputFilteredByEditedFields, generateRecordInputForCreate, generateRecordInputForUpdate, getFieldDisplayValue, getRecordInput, getFieldValue, } from './uiapi-static-functions';
|
|
76
77
|
export { buildSelectionFromFields, buildSelectionFromRecord } from './selectors/record';
|
|
77
78
|
export { createFieldsIngestSuccess as getRecordResourceIngest } from './generated/fields/resources/getUiApiRecordsByRecordId';
|
|
78
|
-
export type { DraftAwareGraphQLAdapter } from './configuration';
|
|
79
|
+
export type { DraftAwareGraphQLAdapter, EnvironmentAwareGraphQLBatchAdapter, } from './configuration';
|
|
79
80
|
export type Configuration = ConfigurationForRestAdapters & ConfigurationForGraphQLAdapters;
|
|
80
81
|
export declare const configuration: {
|
|
81
82
|
setDraftAwareGraphQLAdapter: (adapter: import("./configuration").DraftAwareGraphQLAdapter) => void;
|
|
82
83
|
getDraftAwareGraphQLAdapter: () => import("./configuration").DraftAwareGraphQLAdapter | undefined;
|
|
84
|
+
setEnvironmentAwareGraphQLBatchAdapter: (adapter: import("./configuration").EnvironmentAwareGraphQLBatchAdapter) => void;
|
|
85
|
+
getEnvironmentAwareGraphQLBatchAdapter: () => import("./configuration").EnvironmentAwareGraphQLBatchAdapter | undefined;
|
|
83
86
|
setTrackedFieldDepthOnCacheMiss: (trackedFieldDepthOnCacheMissParam: number) => void;
|
|
84
87
|
getTrackedFieldDepthOnCacheMiss: () => number;
|
|
85
88
|
setTrackedFieldDepthOnCacheMergeConflict: (trackedFieldDepthOnCacheMergeConflictParam: number) => void;
|