@salesforce/lds-adapters-uiapi 1.232.0 → 1.233.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.
@@ -1,19 +1,16 @@
1
1
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, PathSelection as $64$luvio_engine_PathSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
2
  import { RecordCollectionRepresentation as RecordCollectionRepresentation_RecordCollectionRepresentation } from './RecordCollectionRepresentation';
3
- import { LookupMetadataRepresentation as LookupMetadataRepresentation_LookupMetadataRepresentation } from './LookupMetadataRepresentation';
4
- export declare const VERSION = "7afbf1748874667ff6c5efeee85824d7";
3
+ export declare const VERSION = "022d5de1337ec512acb4af43b75ea5e6";
5
4
  export declare function validate(obj: any, path?: string): TypeError | null;
6
5
  export declare const RepresentationType: string;
7
6
  export declare function normalize(input: LookupValuesRepresentation, existing: LookupValuesRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LookupValuesRepresentationNormalized;
8
7
  export interface DynamicIngestParams {
9
8
  lookupResults: $64$luvio_engine_ResourceIngest;
10
- metadata: $64$luvio_engine_ResourceIngest;
11
9
  }
12
10
  export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: LookupValuesRepresentation, existing: LookupValuesRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => LookupValuesRepresentationNormalized;
13
11
  export declare const select: () => $64$luvio_engine_FragmentSelection;
14
12
  export interface DynamicSelectParams {
15
13
  lookupResults?: $64$luvio_engine_PathSelection;
16
- metadata?: $64$luvio_engine_PathSelection;
17
14
  }
18
15
  export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
19
16
  export declare function equals(existing: LookupValuesRepresentationNormalized, incoming: LookupValuesRepresentationNormalized): boolean;
@@ -33,7 +30,11 @@ export interface LookupValuesRepresentationNormalized {
33
30
  };
34
31
  /** Search metadata for a given lookup field, organized by type. */
35
32
  metadata: {
36
- [key: string]: $64$luvio_engine_StoreLink;
33
+ /** Search Lookups Metadata */
34
+ [key: string]: {
35
+ /** API name of the field used as a secondary display field. */
36
+ secondaryField: string | null;
37
+ };
37
38
  };
38
39
  }
39
40
  /**
@@ -47,6 +48,8 @@ export interface LookupValuesRepresentation {
47
48
  [key: string]: RecordCollectionRepresentation_RecordCollectionRepresentation;
48
49
  };
49
50
  metadata: {
50
- [key: string]: LookupMetadataRepresentation_LookupMetadataRepresentation;
51
+ [key: string]: {
52
+ secondaryField: string | null;
53
+ };
51
54
  };
52
55
  }
@@ -1,6 +1,6 @@
1
1
  import { PicklistValueRepresentation as PicklistValueRepresentation_PicklistValueRepresentation } from './PicklistValueRepresentation';
2
2
  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';
3
- export declare const TTL = 300000;
3
+ export declare const TTL = 900000;
4
4
  export declare const VERSION = "0a361a49370acb4c6a31721a2057649a";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
@@ -0,0 +1,17 @@
1
+ import type { GetLookupRecordsConfig } from '../../../generated/adapters/getLookupRecords';
2
+ import type { FieldId } from '../../../primitives/FieldId';
3
+ interface GetLookupRecordsConfigRequestParams {
4
+ q?: string;
5
+ page?: number;
6
+ pageSize?: number;
7
+ dependentFieldBindings?: string[];
8
+ searchType?: 'Recent' | 'Search' | 'TypeAhead';
9
+ sourceRecordId?: string;
10
+ targetApiName?: string;
11
+ }
12
+ export interface GetLookupRecordsAdapterConfig {
13
+ fieldApiName: string | FieldId;
14
+ requestParams?: GetLookupRecordsConfigRequestParams;
15
+ }
16
+ export declare function validateAdapterConfig(untrustedConfig: unknown): GetLookupRecordsConfig | null;
17
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { FetchResponse, FulfilledSnapshot, Luvio, PendingSnapshot, SnapshotRefresh, StaleSnapshot } from '@luvio/engine';
2
+ import type { LookupValuesRepresentation } from '../../../generated/types/LookupValuesRepresentation';
3
+ import type { ResourceRequestConfig } from '../../../generated/resources/getUiApiLookupsByFieldApiNameAndObjectApiName';
4
+ export declare function ingestSuccess(luvio: Luvio, resourceParams: ResourceRequestConfig, response: FetchResponse<LookupValuesRepresentation>, snapshotRefresh?: SnapshotRefresh<LookupValuesRepresentation>): FulfilledSnapshot<LookupValuesRepresentation, {}> | StaleSnapshot<LookupValuesRepresentation, {}> | PendingSnapshot<LookupValuesRepresentation, any>;
@@ -0,0 +1,5 @@
1
+ import type { Fragment, Luvio, AdapterContext } from '@luvio/engine';
2
+ import type { LookupValuesRepresentation } from '../../../generated/types/LookupValuesRepresentation';
3
+ import type { ResourceRequestConfig } from '../../../generated/resources/getUiApiLookupsByFieldApiNameAndObjectApiName';
4
+ export declare function setContext(adapterContext: AdapterContext): void;
5
+ export declare const select: (luvio: Luvio, params: ResourceRequestConfig, response?: LookupValuesRepresentation) => Fragment;
@@ -0,0 +1,2 @@
1
+ import type { keyBuilderFromType as generatedKeyBuilderFromType } from '../../../generated/types/PicklistValuesRepresentation';
2
+ export declare const keyBuilderFromType: typeof generatedKeyBuilderFromType;
@@ -1,20 +1,4 @@
1
- import type { AdapterFactory, Luvio, FulfilledSnapshot, DispatchResourceRequestContext } from '@luvio/engine';
1
+ import type { AdapterFactory } from '@luvio/engine';
2
2
  import type { LookupValuesRepresentation } from '../../generated/types/LookupValuesRepresentation';
3
3
  import type { GetLookupRecordsConfig } from '../../generated/adapters/getLookupRecords';
4
- import type { FieldId } from '../../primitives/FieldId';
5
- interface GetLookupRecordsConfigRequestParams {
6
- q?: string;
7
- page?: number;
8
- pageSize?: number;
9
- dependentFieldBindings?: string[];
10
- searchType?: 'Recent' | 'Search' | 'TypeAhead';
11
- sourceRecordId?: string;
12
- targetApiName?: string;
13
- }
14
- export interface GetLookupRecordsAdapterConfig {
15
- fieldApiName: string | FieldId;
16
- requestParams?: GetLookupRecordsConfigRequestParams;
17
- }
18
- export declare function buildNetworkSnapshot(luvio: Luvio, config: GetLookupRecordsConfig, options?: DispatchResourceRequestContext): Promise<import("@luvio/engine").ErrorSnapshot | FulfilledSnapshot<LookupValuesRepresentation, {}>>;
19
4
  export declare const factory: AdapterFactory<GetLookupRecordsConfig, LookupValuesRepresentation>;
20
- export {};