@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.
@@ -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 = "5d980775998d47f944d61b57a58f6320";
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 = "bcebe6534390a1f2d867d7763a5c3946";
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 as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from '../../generated/adapters/adapter-utils';
2
- import type { Luvio as $64$luvio_engine_Luvio, 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';
3
- import type { ResourceRequestConfig as resources_postGraphqlBatch_ResourceRequestConfig, GraphQLBatchRepresentation } from './postGraphqlBatch';
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): resources_postGraphqlBatch_ResourceRequestConfig;
8
+ export declare function createResourceParams(config: GraphqlBatchConfig): ResourceRequestConfig;
9
9
  export declare function transformConfiguration(config: GraphqlBatchConfig): GraphqlBatchConfig;
10
- export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GraphqlBatchConfig>): adapter$45$utils_Untrusted<GraphqlBatchConfig>;
11
- export declare const factory: $64$luvio_engine_AdapterFactory<GraphqlBatchConfig, GraphQLBatchRepresentation>;
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: adapter$45$utils_AdapterValidationConfig;
14
- export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GraphqlBatchConfig): string;
15
- export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GraphqlBatchConfig | null;
16
- export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GraphqlBatchConfig): $64$luvio_engine_Fragment;
17
- export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GraphqlBatchConfig): $64$luvio_engine_Snapshot<GraphQLBatchRepresentation, any>;
18
- export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GraphqlBatchConfig, resourceParams: resources_postGraphqlBatch_ResourceRequestConfig, response: $64$luvio_engine_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: $64$luvio_engine_Luvio, config: GraphqlBatchConfig, resourceParams: resources_postGraphqlBatch_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
20
- export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GraphqlBatchConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<GraphQLBatchRepresentation, any>>;
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: $64$luvio_engine_Luvio;
22
+ luvio: Luvio;
23
23
  config: GraphqlBatchConfig;
24
24
  };
25
- export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<GraphQLBatchRepresentation, any>>;
26
- export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<GraphQLBatchRepresentation>): $64$luvio_engine_Snapshot<GraphQLBatchRepresentation, any>;
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>;