@salesforce/lds-adapters-uiapi 1.274.0 → 1.276.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/generated/types/AppliedSearchFilterOutputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/SearchAnswersResultRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/SearchFilterOutputRepresentation.d.ts +1 -4
- package/dist/es/es2018/types/src/main.d.ts +1 -0
- package/dist/es/es2018/types/src/sfdc_rest.d.ts +3 -1
- package/dist/es/es2018/types/src/storewatch.d.ts +7 -0
- package/dist/es/es2018/types/src/util/lists.d.ts +11 -0
- package/dist/es/es2018/types/src/wire/graphqlBatch/index.d.ts +17 -17
- package/dist/es/es2018/uiapi-records-service.js +2075 -2030
- package/package.json +6 -6
- package/sfdc/graphqlAdapters.js +2 -3
- package/sfdc/index.js +2190 -2032
- package/sfdc/uiapi-static-functions.js +1 -1
- package/src/raml/api.raml +23 -3
|
@@ -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 = "e9718ddbcfd32e221236fd8fa53883c2";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: AppliedSearchFilterOutputRepresentation, existing: AppliedSearchFilterOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AppliedSearchFilterOutputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: AppliedSearchFilterOutputRepresentationNormalized, incoming: AppliedSearchFilterOutputRepresentationNormalized): 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: AppliedSearchFilterOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Applied filter output response.
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface AppliedSearchFilterOutputRepresentationNormalized {
|
|
17
|
+
/** Field path where we should apply the filter */
|
|
18
|
+
fieldPath: string;
|
|
19
|
+
/** Label for the applied filter */
|
|
20
|
+
label: string;
|
|
21
|
+
/** Operator for the filter */
|
|
22
|
+
operator: string;
|
|
23
|
+
/** Values applied for the filter */
|
|
24
|
+
values: Array<string>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Applied filter output response.
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface AppliedSearchFilterOutputRepresentation {
|
|
33
|
+
fieldPath: string;
|
|
34
|
+
label: string;
|
|
35
|
+
operator: string;
|
|
36
|
+
values: Array<string>;
|
|
37
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { AppliedSearchFilterOutputRepresentation as AppliedSearchFilterOutputRepresentation_AppliedSearchFilterOutputRepresentation } from './AppliedSearchFilterOutputRepresentation';
|
|
1
2
|
import { SearchAnswersRecordRepresentation as SearchAnswersRecordRepresentation_SearchAnswersRecordRepresentation } from './SearchAnswersRecordRepresentation';
|
|
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 = "58a6e2c9e87cacaf054b3f2da31e60a7";
|
|
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: SearchAnswersResultRepresentation, existing: SearchAnswersResultRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SearchAnswersResultRepresentationNormalized;
|
|
@@ -17,6 +18,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
17
18
|
export interface SearchAnswersResultRepresentationNormalized {
|
|
18
19
|
/** The type of search answer */
|
|
19
20
|
answerType: string;
|
|
21
|
+
/** The list of applied filters. */
|
|
22
|
+
appliedFilters: Array<AppliedSearchFilterOutputRepresentation_AppliedSearchFilterOutputRepresentation>;
|
|
20
23
|
/** The record’s snippet which includes the answer */
|
|
21
24
|
passage: string;
|
|
22
25
|
/** The list of records for search answer */
|
|
@@ -30,6 +33,7 @@ export interface SearchAnswersResultRepresentationNormalized {
|
|
|
30
33
|
*/
|
|
31
34
|
export interface SearchAnswersResultRepresentation {
|
|
32
35
|
answerType: string;
|
|
36
|
+
appliedFilters: Array<AppliedSearchFilterOutputRepresentation_AppliedSearchFilterOutputRepresentation>;
|
|
33
37
|
passage: string;
|
|
34
38
|
records: Array<SearchAnswersRecordRepresentation_SearchAnswersRecordRepresentation>;
|
|
35
39
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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 = "
|
|
2
|
+
export declare const VERSION = "ad91d41fef86d335ecd5766a23c8634d";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: SearchFilterOutputRepresentation, existing: SearchFilterOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SearchFilterOutputRepresentationNormalized;
|
|
@@ -16,8 +16,6 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
16
|
export interface SearchFilterOutputRepresentationNormalized {
|
|
17
17
|
/** Field path where we should apply the filter */
|
|
18
18
|
fieldPath: string;
|
|
19
|
-
/** Label for the filter */
|
|
20
|
-
label: string;
|
|
21
19
|
/** Operator for the filter */
|
|
22
20
|
operator: string;
|
|
23
21
|
/** Values applied for the filter */
|
|
@@ -31,7 +29,6 @@ export interface SearchFilterOutputRepresentationNormalized {
|
|
|
31
29
|
*/
|
|
32
30
|
export interface SearchFilterOutputRepresentation {
|
|
33
31
|
fieldPath: string;
|
|
34
|
-
label: string;
|
|
35
32
|
operator: string;
|
|
36
33
|
values: Array<string>;
|
|
37
34
|
}
|
|
@@ -22,6 +22,7 @@ export type { GetRecordAvatarsConfig } from './generated/adapters/getRecordAvata
|
|
|
22
22
|
export type { GetRelatedListsActionsConfig } from './generated/adapters/getRelatedListsActions';
|
|
23
23
|
export type { GetRelatedListRecordsConfig } from './generated/adapters/getRelatedListRecords';
|
|
24
24
|
export type { GetRelatedListRecordsBatchConfig } from './generated/adapters/getRelatedListRecordsBatch';
|
|
25
|
+
export type { GetRelatedListInfoBatchConfig } from './generated/adapters/getRelatedListInfoBatch';
|
|
25
26
|
export { untrustedIsObject, keyPrefix as UiApiNamespace } from './generated/adapters/adapter-utils';
|
|
26
27
|
export type { RecordRepresentation } from './generated/types/RecordRepresentation';
|
|
27
28
|
export { RecordRepresentationNormalized, keyBuilder as keyBuilderRecord, KeyParams as KeyParamsRecord, RepresentationType as RecordRepresentationRepresentationType, VERSION as RecordRepresentationVersion, TTL as RecordRepresentationTTL, RepresentationType as RecordRepresentationType, } from './generated/types/RecordRepresentation';
|
|
@@ -15,6 +15,8 @@ export declare let notifyListInfoSummaryUpdateAvailable: any;
|
|
|
15
15
|
export declare let notifyListInfoUpdateAvailable: any;
|
|
16
16
|
export declare let notifyQuickActionDefaultsUpdateAvailable: any;
|
|
17
17
|
export declare let notifyListRecordCollectionUpdateAvailable: any;
|
|
18
|
+
export declare let notifyAllListRecordUpdateAvailable: any;
|
|
19
|
+
export declare let notifyAllListInfoSummaryUpdateAvailable: any;
|
|
18
20
|
export { createRecordInputFilteredByEditedFields, generateRecordInputForCreate, generateRecordInputForUpdate, getFieldDisplayValue, getFieldValue, getRecordInput, } from './uiapi-static-functions';
|
|
19
21
|
export { keyBuilder as keyBuilderRecord } from './generated/types/RecordRepresentation';
|
|
20
22
|
export { ingest as ingestRecord, createIngestRecordWithFields, } from './raml-artifacts/types/RecordRepresentation/ingest';
|
|
@@ -23,5 +25,5 @@ export { keyBuilder as keyBuilderQuickActionExecutionRepresentation, ingest as i
|
|
|
23
25
|
export { ConfigurationForRestAdapters as Configuration, configurationForRestAdapters as configuration, } from './configuration';
|
|
24
26
|
export { instrument, Instrument, Registration } from './main';
|
|
25
27
|
export { CachePolicy, CachePolicyCacheAndNetwork, CachePolicyCacheThenNetwork, CachePolicyNoCache, CachePolicyOnlyIfCached, CachePolicyStaleWhileRevalidate, CachePolicyValidAt, } from './main';
|
|
26
|
-
export { getRecordId18, getRecordAdapterFactory, getRecordsAdapterFactory, getRecordActionsAdapterFactory, getRecordAvatarsAdapterFactory, getObjectInfoAdapterFactory, getObjectInfosAdapterFactory, getObjectInfoDirectoryAdapterFactory, getRelatedListsActionsAdapterFactory, getRelatedListRecordsAdapterFactory, getRelatedListRecordsBatchAdapterFactory, getTypeCacheKeysRecord, RecordRepresentationVersion, RecordRepresentationTTL, RecordRepresentationType, ObjectInfoRepresentationType, ObjectInfoDirectoryEntryRepresentationType, RecordRepresentationRepresentationType, keyBuilderFromTypeRecordRepresentation, keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderContentDocumentCompositeRepresentation, ingestContentDocumentCompositeRepresentation, getResponseCacheKeysContentDocumentCompositeRepresentation, } from './main';
|
|
28
|
+
export { getRecordId18, getRecordAdapterFactory, getRecordsAdapterFactory, getRecordActionsAdapterFactory, getRecordAvatarsAdapterFactory, getObjectInfoAdapterFactory, getObjectInfosAdapterFactory, getObjectInfoDirectoryAdapterFactory, getRelatedListsActionsAdapterFactory, getRelatedListRecordsAdapterFactory, getRelatedListRecordsBatchAdapterFactory, getTypeCacheKeysRecord, RecordRepresentationVersion, RecordRepresentationTTL, RecordRepresentationType, ObjectInfoRepresentationType, ObjectInfoDirectoryEntryRepresentationType, RecordRepresentationRepresentationType, keyBuilderFromTypeRecordRepresentation, keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderContentDocumentCompositeRepresentation, ingestContentDocumentCompositeRepresentation, getResponseCacheKeysContentDocumentCompositeRepresentation, getRelatedListInfoBatchAdapterFactory, } from './main';
|
|
27
29
|
export { UiApiNamespace, InMemoryRecordRepresentationQueryEvaluator } from './main';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Luvio } from '@luvio/engine';
|
|
2
|
+
export declare function getListRecordCollectionKeys(objectApiName: string, listViewApiName: string): string[];
|
|
3
|
+
export declare function getListSummaryCollectionKeys(objectApiName: string, recentLists?: boolean | undefined): string[];
|
|
4
|
+
export declare function removeListRecordCollectionKeys(objectApiName: string, listViewApiName: string): void;
|
|
5
|
+
export declare function removeListSummaryCollectionKeys(objectApiName: string, recentLists?: boolean | undefined): void;
|
|
6
|
+
export declare function setupListRecordCollectionStoreWatcher(luvio: Luvio): void;
|
|
7
|
+
export declare function setupListSummaryCollectionStoreWatcher(luvio: Luvio): void;
|
|
@@ -75,3 +75,14 @@ export declare function listFields(luvio: Luvio, { fields, optionalFields, sortB
|
|
|
75
75
|
sortBy?: string[];
|
|
76
76
|
}, listInfo: ListInfoRepresentation): ListFields;
|
|
77
77
|
export declare function isListInfoSnapshotWithData(snapshot: Snapshot<unknown>): snapshot is FulfilledSnapshot<ListInfoRepresentation> | StaleSnapshot<ListInfoRepresentation>;
|
|
78
|
+
interface notifyAllListRecordInput {
|
|
79
|
+
objectApiName: string;
|
|
80
|
+
listViewApiName: string;
|
|
81
|
+
}
|
|
82
|
+
export declare function setupNotifyAllListRecordUpdateAvailable(luvio: Luvio): (notifyInput: notifyAllListRecordInput) => Promise<void>;
|
|
83
|
+
interface notifyAllListInfoSummaryInput {
|
|
84
|
+
objectApiName: string;
|
|
85
|
+
recentLists: boolean | undefined;
|
|
86
|
+
}
|
|
87
|
+
export declare function setupNotifyAllListInfoSummaryUpdateAvailable(luvio: Luvio): (notifyInput: notifyAllListInfoSummaryInput) => Promise<void>;
|
|
88
|
+
export {};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import type { AdapterValidationConfig
|
|
2
|
-
import type { Luvio
|
|
3
|
-
import type { ResourceRequestConfig
|
|
1
|
+
import type { AdapterValidationConfig, Untrusted as Untrusted } from '../../generated/adapters/adapter-utils';
|
|
2
|
+
import type { Luvio, Fragment, Snapshot, FetchResponse, ErrorResponse, DispatchResourceRequestContext, CoercedAdapterRequestContext, StoreLookup, AdapterFactory } from '@luvio/engine';
|
|
3
|
+
import type { ResourceRequestConfig, GraphQLBatchRepresentation } from './postGraphqlBatch';
|
|
4
4
|
import type { GraphqlConfig } from '../../generated/adapters/graphql';
|
|
5
5
|
export interface GraphqlBatchConfig {
|
|
6
6
|
batchQuery: Array<GraphqlConfig>;
|
|
7
7
|
}
|
|
8
|
-
export declare function createResourceParams(config: GraphqlBatchConfig):
|
|
8
|
+
export declare function createResourceParams(config: GraphqlBatchConfig): ResourceRequestConfig;
|
|
9
9
|
export declare function transformConfiguration(config: GraphqlBatchConfig): GraphqlBatchConfig;
|
|
10
|
-
export declare function typeCheckConfig(untrustedConfig:
|
|
11
|
-
export declare const factory:
|
|
10
|
+
export declare function typeCheckConfig(untrustedConfig: Untrusted<GraphqlBatchConfig>): Untrusted<GraphqlBatchConfig>;
|
|
11
|
+
export declare const factory: AdapterFactory<GraphqlBatchConfig, GraphQLBatchRepresentation>;
|
|
12
12
|
export declare const adapterName = "graphqlBatch";
|
|
13
|
-
export declare const graphqlBatch_ConfigPropertyNames:
|
|
14
|
-
export declare function keyBuilder(luvio:
|
|
15
|
-
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames:
|
|
16
|
-
export declare function adapterFragment(luvio:
|
|
17
|
-
export declare function buildCachedSnapshot(luvio:
|
|
18
|
-
export declare function onFetchResponseSuccess(luvio:
|
|
19
|
-
export declare function onFetchResponseError(luvio:
|
|
20
|
-
export declare function buildNetworkSnapshot(luvio:
|
|
13
|
+
export declare const graphqlBatch_ConfigPropertyNames: AdapterValidationConfig;
|
|
14
|
+
export declare function keyBuilder(luvio: Luvio, config: GraphqlBatchConfig): string;
|
|
15
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: AdapterValidationConfig): GraphqlBatchConfig | null;
|
|
16
|
+
export declare function adapterFragment(luvio: Luvio, config: GraphqlBatchConfig): Fragment;
|
|
17
|
+
export declare function buildCachedSnapshot(luvio: Luvio, config: GraphqlBatchConfig): Snapshot<GraphQLBatchRepresentation, any>;
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: Luvio, config: GraphqlBatchConfig, resourceParams: ResourceRequestConfig, response: FetchResponse<GraphQLBatchRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<GraphQLBatchRepresentation, any> | import("@luvio/engine").StaleSnapshot<GraphQLBatchRepresentation, any> | import("@luvio/engine").PendingSnapshot<GraphQLBatchRepresentation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: Luvio, config: GraphqlBatchConfig, resourceParams: ResourceRequestConfig, response: ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: Luvio, config: GraphqlBatchConfig, options?: DispatchResourceRequestContext): Promise<Snapshot<GraphQLBatchRepresentation, any>>;
|
|
21
21
|
export type BuildSnapshotContext = {
|
|
22
|
-
luvio:
|
|
22
|
+
luvio: Luvio;
|
|
23
23
|
config: GraphqlBatchConfig;
|
|
24
24
|
};
|
|
25
|
-
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext:
|
|
26
|
-
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup:
|
|
25
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: CoercedAdapterRequestContext): Promise<Snapshot<GraphQLBatchRepresentation, any>>;
|
|
26
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: StoreLookup<GraphQLBatchRepresentation>): Snapshot<GraphQLBatchRepresentation, any>;
|