@salesforce/lds-adapters-uiapi 1.283.0 → 1.285.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 +23 -0
- package/dist/es/es2018/types/src/generated/graphql/types/Setup__Setup.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/ListObjectInfoRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ListRecordCollectionRepresentation.d.ts +1 -4
- package/dist/es/es2018/types/src/main.d.ts +6 -2
- package/dist/es/es2018/types/src/primitives/FieldId/coerce.d.ts +2 -1
- package/dist/es/es2018/types/src/primitives/FieldIdArray/coerce.d.ts +4 -1
- package/dist/es/es2018/uiapi-records-service.js +183 -128
- package/package.json +7 -7
- package/sfdc/graphqlAdapters.js +54 -14
- package/sfdc/index.js +82 -18
- package/sfdc/uiapi-static-functions.js +5 -3
- package/src/raml/api.raml +4 -0
- package/src/raml/luvio.raml +8 -3
|
@@ -10,13 +10,35 @@ import type { DraftAwareDeleteRecordAdapter } from './wire/deleteRecord/configur
|
|
|
10
10
|
import type { GraphqlBatchConfig } from './wire/graphqlBatch';
|
|
11
11
|
import type { GraphQLBatchRepresentation } from './wire/graphqlBatch/postGraphqlBatch';
|
|
12
12
|
import type { BuildSnapshotContext as BatchBuildSnapshotContext } from './wire/graphqlBatch';
|
|
13
|
+
import type { WireAdapterConstructor } from '@lwc/engine-core';
|
|
13
14
|
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
15
|
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>>;
|
|
16
|
+
/**
|
|
17
|
+
* Defines the configuration API and is exposed internally as well as externally.
|
|
18
|
+
* Configuration for one store enabled REST adapters only.
|
|
19
|
+
*/
|
|
20
|
+
export declare const configurationForOneStoreEnabledAdapters: {
|
|
21
|
+
setGetObjectInfoAdapter: (adapter: WireAdapterConstructor) => void;
|
|
22
|
+
getGetObjectInfoAdapter: () => WireAdapterConstructor | undefined;
|
|
23
|
+
setGetObjectInfosAdapter: (adapter: WireAdapterConstructor) => void;
|
|
24
|
+
getGetObjectInfosAdapter: () => WireAdapterConstructor | undefined;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Helper function to return the one store adapter if it's defined, otherwise return the luvio adapter.
|
|
28
|
+
* @param luvioAdapter - The luvio bound adapter.
|
|
29
|
+
* @param oneStoreAdapter - The one store bound adapter.
|
|
30
|
+
* @returns Luvio or one store wire adapter constructor.
|
|
31
|
+
*/
|
|
32
|
+
export declare function getLuvioOrOneStoreAdapter(luvioAdapter: WireAdapterConstructor, oneStoreAdapter: WireAdapterConstructor | undefined): WireAdapterConstructor;
|
|
15
33
|
/**
|
|
16
34
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
17
35
|
* Configuration for REST adapters only.
|
|
18
36
|
*/
|
|
19
37
|
export declare const configurationForRestAdapters: {
|
|
38
|
+
setGetObjectInfoAdapter: (adapter: WireAdapterConstructor) => void;
|
|
39
|
+
getGetObjectInfoAdapter: () => WireAdapterConstructor | undefined;
|
|
40
|
+
setGetObjectInfosAdapter: (adapter: WireAdapterConstructor) => void;
|
|
41
|
+
getGetObjectInfosAdapter: () => WireAdapterConstructor | undefined;
|
|
20
42
|
setTrackedFieldDepthOnCacheMiss: (trackedFieldDepthOnCacheMissParam: number) => void;
|
|
21
43
|
getTrackedFieldDepthOnCacheMiss: () => number;
|
|
22
44
|
setTrackedFieldDepthOnCacheMergeConflict: (trackedFieldDepthOnCacheMergeConflictParam: number) => void;
|
|
@@ -52,6 +74,7 @@ export declare const configurationForGraphQLAdapters: {
|
|
|
52
74
|
*/
|
|
53
75
|
export type ConfigurationForRestAdapters = typeof configurationForRestAdapters;
|
|
54
76
|
export type ConfigurationForGraphQLAdapters = typeof configurationForGraphQLAdapters;
|
|
77
|
+
export type ConfigurationForOneStoreEnabledAdapters = typeof configurationForOneStoreEnabledAdapters;
|
|
55
78
|
/**
|
|
56
79
|
* lds-adapter-uiapi is special. The non-SFDC bundle combines REST and GQL adapters,
|
|
57
80
|
* yet for SFDC those are separate bundles. So non-SFDC bundle (./main.ts) registers
|
|
@@ -4,6 +4,7 @@ import { NormalizedGraphQL as type$45$util_NormalizedGraphQL, GraphQLIngestState
|
|
|
4
4
|
import { FieldNode as $64$luvio_graphql$45$parser_FieldNode, OperationDefinitionNode as $64$luvio_graphql$45$parser_OperationDefinitionNode, SelectionNode as $64$luvio_graphql$45$parser_SelectionNode, FragmentDefinitionNode as $64$luvio_graphql$45$parser_FragmentDefinitionNode, InlineFragmentNode as $64$luvio_graphql$45$parser_InlineFragmentNode, FragmentSpreadNode as $64$luvio_graphql$45$parser_FragmentSpreadNode } from '@luvio/graphql-parser';
|
|
5
5
|
import { GraphQLVariables as $64$luvio_graphql_GraphQLVariables, GraphQLFragmentMap as $64$luvio_graphql_GraphQLFragmentMap } from '@luvio/graphql';
|
|
6
6
|
export declare const name = "Setup__Setup";
|
|
7
|
+
export declare const TTL = 1000;
|
|
7
8
|
export declare const VERSION = "57c66c8147b44793116747c96b2b0fc9";
|
|
8
9
|
export interface Interface {
|
|
9
10
|
query: Setup__SetupQuery_Interface;
|
|
@@ -2,7 +2,7 @@ import { ListObjectScopeRepresentation as ListObjectScopeRepresentation_ListObje
|
|
|
2
2
|
import { ListObjectColumnRepresentation as ListObjectColumnRepresentation_ListObjectColumnRepresentation } from './ListObjectColumnRepresentation';
|
|
3
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
4
|
export declare const TTL = 900000;
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "2405a0b25c2c00f82e88b600edc16387";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -34,6 +34,8 @@ export interface ListObjectInfoRepresentationNormalized {
|
|
|
34
34
|
createable: boolean;
|
|
35
35
|
/** The requested object API name. */
|
|
36
36
|
objectApiName: string;
|
|
37
|
+
/** Indicates whether the current user can create a new public or shared listview for this listview's SObject. */
|
|
38
|
+
publicOrSharedCreateable: boolean;
|
|
37
39
|
/** Null, or the type of related entity to which this LV can be scoped. */
|
|
38
40
|
relatedEntityApiName: string | null;
|
|
39
41
|
}
|
|
@@ -48,5 +50,6 @@ export interface ListObjectInfoRepresentation {
|
|
|
48
50
|
columns: Array<ListObjectColumnRepresentation_ListObjectColumnRepresentation>;
|
|
49
51
|
createable: boolean;
|
|
50
52
|
objectApiName: string;
|
|
53
|
+
publicOrSharedCreateable: boolean;
|
|
51
54
|
relatedEntityApiName: string | null;
|
|
52
55
|
}
|
|
@@ -3,14 +3,13 @@ import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $
|
|
|
3
3
|
import { PaginationParams as pagination_cursor_PaginationParams, PaginationMetadata as pagination_cursor_PaginationMetadata, PageMetadata as pagination_cursor_PageMetadata } from '../pagination/cursor';
|
|
4
4
|
import { RecordRepresentation as RecordRepresentation_RecordRepresentation } from './RecordRepresentation';
|
|
5
5
|
export declare const TTL = 30000;
|
|
6
|
-
export declare const VERSION = "
|
|
6
|
+
export declare const VERSION = "e5c90c4081cd557f8ffec53028ede1e8";
|
|
7
7
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
8
8
|
export declare const RepresentationType: string;
|
|
9
9
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
10
10
|
objectApiName: string;
|
|
11
11
|
searchTerm: string | null;
|
|
12
12
|
sortBy: Array<string> | null;
|
|
13
|
-
listViewId: string | null;
|
|
14
13
|
where: string | null;
|
|
15
14
|
listViewApiName: string | null;
|
|
16
15
|
}
|
|
@@ -44,7 +43,6 @@ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$lu
|
|
|
44
43
|
* objectApiName (string): listReference.objectApiName
|
|
45
44
|
* searchTerm (string | null): searchTerm
|
|
46
45
|
* sortBy (Array<string> | null): sortBy
|
|
47
|
-
* listViewId (string | null): listInfoETag
|
|
48
46
|
* where (string | null): where
|
|
49
47
|
* listViewApiName (string | null): listReference.listViewApiName
|
|
50
48
|
*/
|
|
@@ -88,7 +86,6 @@ export interface ListRecordCollectionRepresentationNormalized {
|
|
|
88
86
|
* objectApiName (string): listReference.objectApiName
|
|
89
87
|
* searchTerm (string | null): searchTerm
|
|
90
88
|
* sortBy (Array<string> | null): sortBy
|
|
91
|
-
* listViewId (string | null): listInfoETag
|
|
92
89
|
* where (string | null): where
|
|
93
90
|
* listViewApiName (string | null): listReference.listViewApiName
|
|
94
91
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConfigurationForRestAdapters, ConfigurationForGraphQLAdapters } from './configuration';
|
|
1
|
+
import type { ConfigurationForRestAdapters, ConfigurationForGraphQLAdapters, ConfigurationForOneStoreEnabledAdapters } from './configuration';
|
|
2
2
|
import type { Instrument } from './instrumentation';
|
|
3
3
|
export * from './predictive-loading';
|
|
4
4
|
export { MRU } from './wire/getListUi';
|
|
@@ -77,8 +77,12 @@ export { createRecordInputFilteredByEditedFields, generateRecordInputForCreate,
|
|
|
77
77
|
export { buildSelectionFromFields, buildSelectionFromRecord } from './selectors/record';
|
|
78
78
|
export { createFieldsIngestSuccess as getRecordResourceIngest } from './generated/fields/resources/getUiApiRecordsByRecordId';
|
|
79
79
|
export type { DraftAwareGraphQLAdapter, EnvironmentAwareGraphQLBatchAdapter, } from './configuration';
|
|
80
|
-
export type Configuration = ConfigurationForRestAdapters & ConfigurationForGraphQLAdapters;
|
|
80
|
+
export type Configuration = ConfigurationForRestAdapters & ConfigurationForGraphQLAdapters & ConfigurationForOneStoreEnabledAdapters;
|
|
81
81
|
export declare const configuration: {
|
|
82
|
+
setGetObjectInfoAdapter: (adapter: import("@lwc/engine-core").WireAdapterConstructor) => void;
|
|
83
|
+
getGetObjectInfoAdapter: () => import("@lwc/engine-core").WireAdapterConstructor | undefined;
|
|
84
|
+
setGetObjectInfosAdapter: (adapter: import("@lwc/engine-core").WireAdapterConstructor) => void;
|
|
85
|
+
getGetObjectInfosAdapter: () => import("@lwc/engine-core").WireAdapterConstructor | undefined;
|
|
82
86
|
setDraftAwareGraphQLAdapter: (adapter: import("./configuration").DraftAwareGraphQLAdapter) => void;
|
|
83
87
|
getDraftAwareGraphQLAdapter: () => import("./configuration").DraftAwareGraphQLAdapter | undefined;
|
|
84
88
|
setEnvironmentAwareGraphQLBatchAdapter: (adapter: import("./configuration").EnvironmentAwareGraphQLBatchAdapter) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns the field API name, qualified with an object name if possible.
|
|
3
3
|
* @param value The value from which to get the qualified field API name.
|
|
4
|
+
* @param onlyQualifiedFieldNames - Whether or not this function should skip fieldApiName that do not include the delimiter '.'
|
|
4
5
|
* @return The qualified field API name.
|
|
5
6
|
*/
|
|
6
|
-
export default function getFieldApiName(value: unknown): string | undefined;
|
|
7
|
+
export default function getFieldApiName(value: unknown, onlyQualifiedFieldNames?: boolean): string | undefined;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns the field API name.
|
|
3
3
|
* @param value The value from which to get the field API name.
|
|
4
|
+
* @param options Option bag. onlyQualifiedFieldNames is a boolean that allows this function to skip returning invalid FieldApiNames.
|
|
4
5
|
* @returns The field API name.
|
|
5
6
|
*/
|
|
6
|
-
export default function getFieldApiNamesArray(value: unknown
|
|
7
|
+
export default function getFieldApiNamesArray(value: unknown, options?: {
|
|
8
|
+
onlyQualifiedFieldNames: boolean;
|
|
9
|
+
}): Array<string> | undefined;
|