@salesforce/lds-adapters-uiapi 1.266.0-dev2 → 1.266.0-dev21

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.
@@ -58,6 +58,7 @@ interface IngestBaseParams<AstNodeType, StateType> {
58
58
  namespace: string;
59
59
  representationName: string;
60
60
  version: string;
61
+ ingestionTimestamp: number;
61
62
  };
62
63
  }
63
64
  interface CursorBasedIngestParams<AstNodeType, StateType> extends IngestBaseParams<AstNodeType, StateType> {
@@ -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 = "421c9d8ff4fa644d2a6ba55333c30189";
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 | null;
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 | null;
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
  }
@@ -97,6 +97,7 @@ export { Instrument, instrument } from './instrumentation';
97
97
  export type { CachePolicy, CachePolicyCacheAndNetwork, CachePolicyCacheThenNetwork, CachePolicyNoCache, CachePolicyOnlyIfCached, CachePolicyStaleWhileRevalidate, CachePolicyValidAt, } from '@luvio/engine';
98
98
  export { DataCallback, DataCallbackTuple, ImperativeAdapter } from '@salesforce/lds-bindings';
99
99
  export { default as getRecordId18 } from './primitives/RecordId18/coerce';
100
+ export { default as coerceFieldIdArray } from './primitives/FieldIdArray/coerce';
100
101
  export type Registration = {
101
102
  id: '@salesforce/lds-adapters-uiapi';
102
103
  configuration: Configuration;
@@ -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): Array<string> | undefined;
7
+ export default function getFieldApiNamesArray(value: unknown, options?: {
8
+ onlyQualifiedFieldNames: boolean;
9
+ }): Array<string> | undefined;
@@ -21,5 +21,5 @@ export { keyBuilder as keyBuilderQuickActionExecutionRepresentation, ingest as i
21
21
  export { ConfigurationForRestAdapters as Configuration, configurationForRestAdapters as configuration, } from './configuration';
22
22
  export { instrument, Instrument, Registration } from './main';
23
23
  export { CachePolicy, CachePolicyCacheAndNetwork, CachePolicyCacheThenNetwork, CachePolicyNoCache, CachePolicyOnlyIfCached, CachePolicyStaleWhileRevalidate, CachePolicyValidAt, } from './main';
24
- export { getRecordId18, getRecordAdapterFactory, getRecordsAdapterFactory, getRecordActionsAdapterFactory, getRecordAvatarsAdapterFactory, getObjectInfoAdapterFactory, getObjectInfosAdapterFactory, getObjectInfoDirectoryAdapterFactory, getTypeCacheKeysRecord, RecordRepresentationVersion, RecordRepresentationTTL, RecordRepresentationType, ObjectInfoRepresentationType, ObjectInfoDirectoryEntryRepresentationType, RecordRepresentationRepresentationType, keyBuilderFromTypeRecordRepresentation, keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderContentDocumentCompositeRepresentation, ingestContentDocumentCompositeRepresentation, getResponseCacheKeysContentDocumentCompositeRepresentation, } from './main';
24
+ export { getRecordId18, coerceFieldIdArray, getRecordAdapterFactory, getRecordsAdapterFactory, getRecordActionsAdapterFactory, getRecordAvatarsAdapterFactory, getObjectInfoAdapterFactory, getObjectInfosAdapterFactory, getObjectInfoDirectoryAdapterFactory, getTypeCacheKeysRecord, RecordRepresentationVersion, RecordRepresentationTTL, RecordRepresentationType, ObjectInfoRepresentationType, ObjectInfoDirectoryEntryRepresentationType, RecordRepresentationRepresentationType, keyBuilderFromTypeRecordRepresentation, keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderContentDocumentCompositeRepresentation, ingestContentDocumentCompositeRepresentation, getResponseCacheKeysContentDocumentCompositeRepresentation, } from './main';
25
25
  export { UiApiNamespace, InMemoryRecordRepresentationQueryEvaluator } from './main';