@salesforce/lds-adapters-uiapi 1.244.0 → 1.245.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/adapters/getLookupRecords.d.ts +6 -4
- package/dist/es/es2018/types/src/generated/resources/{getUiApiLookupsByFieldApiNameAndObjectApiName.d.ts → postUiApiLookupsByFieldApiNameAndObjectApiName.d.ts} +4 -0
- package/dist/es/es2018/types/src/generated/types/ListColumnRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ListInfoRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ListScopeInputRepresentation.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/LookupPOSTRequestBodyRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/raml-artifacts/adapters/getLookupRecords/validateAdapterConfig.d.ts +2 -0
- package/dist/es/es2018/types/src/raml-artifacts/resources/{getUiApiLookupsByFieldApiNameAndObjectApiName → postUiApiLookupsByFieldApiNameAndObjectApiName}/ingestSuccess.d.ts +1 -1
- package/dist/es/es2018/types/src/raml-artifacts/resources/{getUiApiLookupsByFieldApiNameAndObjectApiName → postUiApiLookupsByFieldApiNameAndObjectApiName}/select.d.ts +1 -1
- package/dist/es/es2018/types/src/util/language.d.ts +2 -2
- package/dist/es/es2018/uiapi-records-service.js +427 -293
- package/package.json +12 -1
- package/sfdc/graphqlAdapters.js +2 -2
- package/sfdc/index.js +428 -294
- package/sfdc/uiapi-static-functions.js +2 -2
- package/src/raml/api.raml +26 -2
- package/src/raml/luvio.raml +2 -17
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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';
|
|
2
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
-
import {
|
|
3
|
+
import { RecordInputRepresentation as types_RecordInputRepresentation_RecordInputRepresentation } from '../types/RecordInputRepresentation';
|
|
4
|
+
import { ResourceRequestConfig as resources_postUiApiLookupsByFieldApiNameAndObjectApiName_ResourceRequestConfig } from '../resources/postUiApiLookupsByFieldApiNameAndObjectApiName';
|
|
4
5
|
import { LookupValuesRepresentation as types_LookupValuesRepresentation_LookupValuesRepresentation } from '../types/LookupValuesRepresentation';
|
|
5
6
|
export declare const adapterName = "getLookupRecords";
|
|
6
7
|
export declare const getLookupRecords_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
@@ -15,16 +16,17 @@ export interface GetLookupRecordsConfig {
|
|
|
15
16
|
searchType?: string;
|
|
16
17
|
sourceRecordId?: string;
|
|
17
18
|
targetApiName?: string;
|
|
19
|
+
sourceRecord?: types_RecordInputRepresentation_RecordInputRepresentation | null;
|
|
18
20
|
}
|
|
19
|
-
export declare const createResourceParams: (config: GetLookupRecordsConfig) =>
|
|
21
|
+
export declare const createResourceParams: (config: GetLookupRecordsConfig) => resources_postUiApiLookupsByFieldApiNameAndObjectApiName_ResourceRequestConfig;
|
|
20
22
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetLookupRecordsConfig): string;
|
|
21
23
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetLookupRecordsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
22
24
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetLookupRecordsConfig>): adapter$45$utils_Untrusted<GetLookupRecordsConfig>;
|
|
23
25
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetLookupRecordsConfig | null;
|
|
24
26
|
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetLookupRecordsConfig): $64$luvio_engine_Fragment;
|
|
25
27
|
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetLookupRecordsConfig): $64$luvio_engine_Snapshot<types_LookupValuesRepresentation_LookupValuesRepresentation, any>;
|
|
26
|
-
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetLookupRecordsConfig, resourceParams:
|
|
27
|
-
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetLookupRecordsConfig, resourceParams:
|
|
28
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetLookupRecordsConfig, resourceParams: resources_postUiApiLookupsByFieldApiNameAndObjectApiName_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_LookupValuesRepresentation_LookupValuesRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_LookupValuesRepresentation_LookupValuesRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_LookupValuesRepresentation_LookupValuesRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_LookupValuesRepresentation_LookupValuesRepresentation, any>>;
|
|
29
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetLookupRecordsConfig, resourceParams: resources_postUiApiLookupsByFieldApiNameAndObjectApiName_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
28
30
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetLookupRecordsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_LookupValuesRepresentation_LookupValuesRepresentation, any>>;
|
|
29
31
|
export type BuildSnapshotContext = {
|
|
30
32
|
luvio: $64$luvio_engine_Luvio;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RecordInputRepresentation as types_RecordInputRepresentation_RecordInputRepresentation } from '../types/RecordInputRepresentation';
|
|
1
2
|
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
3
|
import { LookupValuesRepresentation as types_LookupValuesRepresentation_LookupValuesRepresentation } from '../types/LookupValuesRepresentation';
|
|
3
4
|
export interface ResourceRequestConfig {
|
|
@@ -14,6 +15,9 @@ export interface ResourceRequestConfig {
|
|
|
14
15
|
sourceRecordId?: string;
|
|
15
16
|
targetApiName?: string;
|
|
16
17
|
};
|
|
18
|
+
body: {
|
|
19
|
+
sourceRecord?: types_RecordInputRepresentation_RecordInputRepresentation | null;
|
|
20
|
+
};
|
|
17
21
|
}
|
|
18
22
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
19
23
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
@@ -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 = "d8917f62af39b67a54f8ff8cf7ea49c6";
|
|
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: ListColumnRepresentation, existing: ListColumnRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ListColumnRepresentationNormalized;
|
|
@@ -20,6 +20,8 @@ export interface ListColumnRepresentationNormalized {
|
|
|
20
20
|
label: string;
|
|
21
21
|
/** The lookupId for the column when the field is a reference, otherwise null. */
|
|
22
22
|
lookupId: string | null;
|
|
23
|
+
/** Whether the list column is searchable. */
|
|
24
|
+
searchable?: boolean;
|
|
23
25
|
/** Whether the list column is sortable. */
|
|
24
26
|
sortable: boolean;
|
|
25
27
|
}
|
|
@@ -33,5 +35,6 @@ export interface ListColumnRepresentation {
|
|
|
33
35
|
fieldApiName: string;
|
|
34
36
|
label: string;
|
|
35
37
|
lookupId: string | null;
|
|
38
|
+
searchable?: boolean;
|
|
36
39
|
sortable: boolean;
|
|
37
40
|
}
|
|
@@ -7,7 +7,7 @@ import { ListScopeRepresentation as ListScopeRepresentation_ListScopeRepresentat
|
|
|
7
7
|
import { ListUserPreferenceRepresentation as ListUserPreferenceRepresentation_ListUserPreferenceRepresentation } from './ListUserPreferenceRepresentation';
|
|
8
8
|
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';
|
|
9
9
|
export declare const TTL = 900000;
|
|
10
|
-
export declare const VERSION = "
|
|
10
|
+
export declare const VERSION = "6bd7c5a1bb955f37db137327c7d65f65";
|
|
11
11
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
12
12
|
export declare const RepresentationType: string;
|
|
13
13
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -60,6 +60,8 @@ export interface ListInfoRepresentationNormalized {
|
|
|
60
60
|
orderedByInfo: Array<ListOrderByInfoRepresentation_ListOrderByInfoRepresentation>;
|
|
61
61
|
/** Scope information for this list view. */
|
|
62
62
|
scope?: ListScopeRepresentation_ListScopeRepresentation | null;
|
|
63
|
+
/** Indicates whether the listview can be searched (SOSL). */
|
|
64
|
+
searchable?: boolean;
|
|
63
65
|
/** Indicates whether the listview can be updated. */
|
|
64
66
|
updateable: boolean;
|
|
65
67
|
userPreferences: ListUserPreferenceRepresentation_ListUserPreferenceRepresentation;
|
|
@@ -90,6 +92,7 @@ export interface ListInfoRepresentation {
|
|
|
90
92
|
objectApiNames?: Array<string>;
|
|
91
93
|
orderedByInfo: Array<ListOrderByInfoRepresentation_ListOrderByInfoRepresentation>;
|
|
92
94
|
scope?: ListScopeRepresentation_ListScopeRepresentation | null;
|
|
95
|
+
searchable?: boolean;
|
|
93
96
|
updateable: boolean;
|
|
94
97
|
userPreferences: ListUserPreferenceRepresentation_ListUserPreferenceRepresentation;
|
|
95
98
|
visibility: string;
|
|
@@ -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 = "bd1016e8706fcd6155ee4ce1ac973b3c";
|
|
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: ListScopeInputRepresentation, existing: ListScopeInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ListScopeInputRepresentationNormalized;
|
|
@@ -17,9 +17,9 @@ export interface ListScopeInputRepresentationNormalized {
|
|
|
17
17
|
/** Input representation for the scope's API name. */
|
|
18
18
|
apiName: string;
|
|
19
19
|
/** Input representation for the scope's entity id. */
|
|
20
|
-
entityId
|
|
20
|
+
entityId?: string | null;
|
|
21
21
|
/** Input representation for the scope's related entity id. */
|
|
22
|
-
relatedEntityId
|
|
22
|
+
relatedEntityId?: string | null;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Representation of a list scope for input.
|
|
@@ -29,6 +29,6 @@ export interface ListScopeInputRepresentationNormalized {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface ListScopeInputRepresentation {
|
|
31
31
|
apiName: string;
|
|
32
|
-
entityId
|
|
33
|
-
relatedEntityId
|
|
32
|
+
entityId?: string | null;
|
|
33
|
+
relatedEntityId?: string | null;
|
|
34
34
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { RecordInputRepresentation as RecordInputRepresentation_RecordInputRepresentation } from './RecordInputRepresentation';
|
|
2
|
+
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 = "b691df90bb0e9447ab87187df1ff0a81";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: LookupPOSTRequestBodyRepresentation, existing: LookupPOSTRequestBodyRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LookupPOSTRequestBodyRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: LookupPOSTRequestBodyRepresentationNormalized, incoming: LookupPOSTRequestBodyRepresentationNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: LookupPOSTRequestBodyRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* A lookup POST request body.
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface LookupPOSTRequestBodyRepresentationNormalized {
|
|
18
|
+
/** The source record */
|
|
19
|
+
sourceRecord?: RecordInputRepresentation_RecordInputRepresentation | null;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A lookup POST request body.
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* (none)
|
|
26
|
+
*/
|
|
27
|
+
export interface LookupPOSTRequestBodyRepresentation {
|
|
28
|
+
sourceRecord?: RecordInputRepresentation_RecordInputRepresentation | null;
|
|
29
|
+
}
|
package/dist/es/es2018/types/src/raml-artifacts/adapters/getLookupRecords/validateAdapterConfig.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AdapterValidationConfig } from '../../../generated/adapters/adapter-utils';
|
|
2
2
|
import type { GetLookupRecordsConfig } from '../../../generated/adapters/getLookupRecords';
|
|
3
3
|
import type { FieldId } from '../../../primitives/FieldId';
|
|
4
|
+
import type { RecordInputRepresentation as types_RecordInputRepresentation_RecordInputRepresentation } from '../../../generated/types/RecordInputRepresentation';
|
|
4
5
|
interface GetLookupRecordsConfigRequestParams {
|
|
5
6
|
q?: string;
|
|
6
7
|
page?: number;
|
|
@@ -9,6 +10,7 @@ interface GetLookupRecordsConfigRequestParams {
|
|
|
9
10
|
searchType?: 'Recent' | 'Search' | 'TypeAhead';
|
|
10
11
|
sourceRecordId?: string;
|
|
11
12
|
targetApiName?: string;
|
|
13
|
+
sourceRecord?: types_RecordInputRepresentation_RecordInputRepresentation | null;
|
|
12
14
|
}
|
|
13
15
|
export interface GetLookupRecordsAdapterConfig {
|
|
14
16
|
fieldApiName: string | FieldId;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { FetchResponse, FulfilledSnapshot, Luvio, PendingSnapshot, SnapshotRefresh, StaleSnapshot } from '@luvio/engine';
|
|
2
2
|
import type { LookupValuesRepresentation } from '../../../generated/types/LookupValuesRepresentation';
|
|
3
|
-
import type { ResourceRequestConfig } from '../../../generated/resources/
|
|
3
|
+
import type { ResourceRequestConfig } from '../../../generated/resources/postUiApiLookupsByFieldApiNameAndObjectApiName';
|
|
4
4
|
export declare function ingestSuccess(luvio: Luvio, resourceParams: ResourceRequestConfig, response: FetchResponse<LookupValuesRepresentation>, snapshotRefresh?: SnapshotRefresh<LookupValuesRepresentation>): FulfilledSnapshot<LookupValuesRepresentation, {}> | StaleSnapshot<LookupValuesRepresentation, {}> | PendingSnapshot<LookupValuesRepresentation, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Fragment, Luvio, AdapterContext } from '@luvio/engine';
|
|
2
2
|
import type { LookupValuesRepresentation } from '../../../generated/types/LookupValuesRepresentation';
|
|
3
|
-
import type { ResourceRequestConfig } from '../../../generated/resources/
|
|
3
|
+
import type { ResourceRequestConfig } from '../../../generated/resources/postUiApiLookupsByFieldApiNameAndObjectApiName';
|
|
4
4
|
export declare function setContext(adapterContext: AdapterContext): void;
|
|
5
5
|
export declare const select: (luvio: Luvio, params: ResourceRequestConfig, response?: LookupValuesRepresentation) => Fragment;
|
|
@@ -12,7 +12,7 @@ declare const assign: {
|
|
|
12
12
|
[idx: string]: object | U | null | undefined;
|
|
13
13
|
}, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
|
|
14
14
|
<T_2>(o: T_2): Readonly<T_2>;
|
|
15
|
-
}, keys: {
|
|
15
|
+
}, isFrozen: (o: any) => boolean, keys: {
|
|
16
16
|
(o: object): string[];
|
|
17
17
|
(o: {}): string[];
|
|
18
18
|
};
|
|
@@ -39,4 +39,4 @@ declare const parse: (text: string, reviver?: ((this: any, key: string, value: a
|
|
|
39
39
|
(value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
|
|
40
40
|
(value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
|
|
41
41
|
};
|
|
42
|
-
export { assign as ObjectAssign, create as ObjectCreate, freeze as ObjectFreeze, keys as ObjectKeys, hasOwnProperty as ObjectPrototypeHasOwnProperty, isArray as ArrayIsArray, concat as ArrayPrototypeConcat, filter as ArrayPrototypeFilter, includes as ArrayPrototypeIncludes, push as ArrayPrototypePush, reduce as ArrayPrototypeReduce, split as StringPrototypeSplit, endsWith as StringPrototypeEndsWith, parse as JSONParse, stringify as JSONStringify, };
|
|
42
|
+
export { assign as ObjectAssign, create as ObjectCreate, freeze as ObjectFreeze, isFrozen as ObjectIsFrozen, keys as ObjectKeys, hasOwnProperty as ObjectPrototypeHasOwnProperty, isArray as ArrayIsArray, concat as ArrayPrototypeConcat, filter as ArrayPrototypeFilter, includes as ArrayPrototypeIncludes, push as ArrayPrototypePush, reduce as ArrayPrototypeReduce, split as StringPrototypeSplit, endsWith as StringPrototypeEndsWith, parse as JSONParse, stringify as JSONStringify, };
|