@salesforce/lds-adapters-uiapi 1.239.0 → 1.242.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/createListInfo.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc_restAdapters.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postUiApiListInfoByObjectApiName.d.ts +24 -0
- package/dist/es/es2018/types/src/generated/types/ListInfoPostInputRepresentation.d.ts +49 -0
- package/dist/es/es2018/types/src/main.d.ts +1 -0
- package/dist/es/es2018/types/src/sfdc_rest.d.ts +1 -0
- package/dist/es/es2018/types/src/util/store-utils.d.ts +9 -0
- package/dist/es/es2018/uiapi-records-service.js +9772 -9635
- package/package.json +6 -7
- package/sfdc/graphqlAdapters.js +9065 -9068
- package/sfdc/index.js +949 -784
- package/sfdc/uiapi-static-functions.js +1 -1
- package/src/raml/api.raml +59 -0
- package/src/raml/luvio.raml +10 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ListColumnRepresentation as types_ListColumnRepresentation_ListColumnRepresentation } from '../types/ListColumnRepresentation';
|
|
4
|
+
import { ListFilterByInfoRepresentation as types_ListFilterByInfoRepresentation_ListFilterByInfoRepresentation } from '../types/ListFilterByInfoRepresentation';
|
|
5
|
+
import { ListScopeRepresentation as types_ListScopeRepresentation_ListScopeRepresentation } from '../types/ListScopeRepresentation';
|
|
6
|
+
import { ResourceRequestConfig as resources_postUiApiListInfoByObjectApiName_ResourceRequestConfig } from '../resources/postUiApiListInfoByObjectApiName';
|
|
7
|
+
import { ListInfoRepresentation as types_ListInfoRepresentation_ListInfoRepresentation } from '../types/ListInfoRepresentation';
|
|
8
|
+
export declare const adapterName = "createListInfo";
|
|
9
|
+
export declare const createListInfo_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
10
|
+
export declare const createListInfo_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
11
|
+
export interface CreateListInfoConfig {
|
|
12
|
+
objectApiName: string;
|
|
13
|
+
displayColumns?: Array<types_ListColumnRepresentation_ListColumnRepresentation | null>;
|
|
14
|
+
filterLogicString?: string | null;
|
|
15
|
+
filteredByInfo?: Array<types_ListFilterByInfoRepresentation_ListFilterByInfoRepresentation>;
|
|
16
|
+
label?: string;
|
|
17
|
+
listViewApiName?: string;
|
|
18
|
+
scope?: types_ListScopeRepresentation_ListScopeRepresentation | null;
|
|
19
|
+
visibility?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const createResourceParams: (config: CreateListInfoConfig) => resources_postUiApiListInfoByObjectApiName_ResourceRequestConfig;
|
|
22
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateListInfoConfig>): adapter$45$utils_Untrusted<CreateListInfoConfig>;
|
|
23
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateListInfoConfig | null;
|
|
24
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateListInfoConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ListInfoRepresentation_ListInfoRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ListInfoRepresentation_ListInfoRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ListInfoRepresentation_ListInfoRepresentation, any>>;
|
|
25
|
+
export declare const createListInfoAdapterFactory: $64$luvio_engine_AdapterFactory<CreateListInfoConfig, types_ListInfoRepresentation_ListInfoRepresentation>;
|
|
@@ -16,6 +16,7 @@ export { getDuplicateConfigurationAdapterFactory } from '../adapters/getDuplicat
|
|
|
16
16
|
export { getLayoutAdapterFactory } from '../adapters/getLayout';
|
|
17
17
|
export { getLayoutUserStateAdapterFactory } from '../adapters/getLayoutUserState';
|
|
18
18
|
export { getListInfosByNameAdapterFactory } from '../adapters/getListInfosByName';
|
|
19
|
+
export { createListInfoAdapterFactory } from '../adapters/createListInfo';
|
|
19
20
|
export { getListInfoByNameAdapterFactory } from '../adapters/getListInfoByName';
|
|
20
21
|
export { updateListInfoByNameAdapterFactory } from '../adapters/updateListInfoByName';
|
|
21
22
|
export { getListObjectInfoAdapterFactory } from '../adapters/getListObjectInfo';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare let createContentDocumentAndVersion: any;
|
|
2
2
|
declare let createContentVersion: any;
|
|
3
|
+
declare let createListInfo: any;
|
|
3
4
|
declare let createRecord: any;
|
|
4
5
|
declare let deleteRecord: any;
|
|
5
6
|
declare let getActionOverrides: any;
|
|
@@ -105,4 +106,4 @@ declare let getRelatedListsInfo_imperative: any;
|
|
|
105
106
|
declare let getSearchFilterMetadata_imperative: any;
|
|
106
107
|
declare let getSearchFilterOptions_imperative: any;
|
|
107
108
|
declare let getSearchResults_imperative: any;
|
|
108
|
-
export { createContentDocumentAndVersion, createContentVersion, createRecord, deleteRecord, getActionOverrides, getAllApps, getAppDetails, getDuplicateConfiguration, getDuplicates, getGlobalActions, getKeywordSearchResults, getLayout, getLayoutUserState, getListInfoByName, getListInfosByName, getListObjectInfo, getListRecordsByName, getListUi, getLookupActions, getLookupMetadata, getLookupRecords, getNavItems, getObjectCreateActions, getObjectInfo, getObjectInfos, getPicklistValues, getPicklistValuesByRecordType, getQuickActionDefaults, getQuickActionLayout, getRecord, getRecordActions, getRecordAvatars, getRecordCreateDefaults, getRecordEditActions, getRecordTemplateClone, getRecordTemplateCreate, getRecordUi, getRecords, getRelatedListActions, getRelatedListCount, getRelatedListInfo, getRelatedListInfoBatch, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListRecordActions, getRelatedListRecords, getRelatedListRecordsBatch, getRelatedListsActions, getRelatedListsCount, getRelatedListsInfo, getSearchFilterMetadata, getSearchFilterOptions, getSearchResults, performQuickAction, performUpdateRecordQuickAction, updateListInfoByName, updateRecord, updateRecordAvatar, getActionOverrides_imperative, getAllApps_imperative, getAppDetails_imperative, getDuplicateConfiguration_imperative, getDuplicates_imperative, getGlobalActions_imperative, getKeywordSearchResults_imperative, getLayout_imperative, getLayoutUserState_imperative, getListInfoByName_imperative, getListInfosByName_imperative, getListObjectInfo_imperative, getListRecordsByName_imperative, getListUi_imperative, getLookupActions_imperative, getLookupMetadata_imperative, getLookupRecords_imperative, getNavItems_imperative, getObjectCreateActions_imperative, getObjectInfo_imperative, getObjectInfos_imperative, getPicklistValues_imperative, getPicklistValuesByRecordType_imperative, getQuickActionDefaults_imperative, getQuickActionLayout_imperative, getRecord_imperative, getRecordActions_imperative, getRecordAvatars_imperative, getRecordCreateDefaults_imperative, getRecordEditActions_imperative, getRecordTemplateClone_imperative, getRecordTemplateCreate_imperative, getRecordUi_imperative, getRecords_imperative, getRelatedListActions_imperative, getRelatedListCount_imperative, getRelatedListInfo_imperative, getRelatedListInfoBatch_imperative, getRelatedListPreferences_imperative, getRelatedListPreferencesBatch_imperative, getRelatedListRecordActions_imperative, getRelatedListRecords_imperative, getRelatedListRecordsBatch_imperative, getRelatedListsActions_imperative, getRelatedListsCount_imperative, getRelatedListsInfo_imperative, getSearchFilterMetadata_imperative, getSearchFilterOptions_imperative, getSearchResults_imperative };
|
|
109
|
+
export { createContentDocumentAndVersion, createContentVersion, createListInfo, createRecord, deleteRecord, getActionOverrides, getAllApps, getAppDetails, getDuplicateConfiguration, getDuplicates, getGlobalActions, getKeywordSearchResults, getLayout, getLayoutUserState, getListInfoByName, getListInfosByName, getListObjectInfo, getListRecordsByName, getListUi, getLookupActions, getLookupMetadata, getLookupRecords, getNavItems, getObjectCreateActions, getObjectInfo, getObjectInfos, getPicklistValues, getPicklistValuesByRecordType, getQuickActionDefaults, getQuickActionLayout, getRecord, getRecordActions, getRecordAvatars, getRecordCreateDefaults, getRecordEditActions, getRecordTemplateClone, getRecordTemplateCreate, getRecordUi, getRecords, getRelatedListActions, getRelatedListCount, getRelatedListInfo, getRelatedListInfoBatch, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListRecordActions, getRelatedListRecords, getRelatedListRecordsBatch, getRelatedListsActions, getRelatedListsCount, getRelatedListsInfo, getSearchFilterMetadata, getSearchFilterOptions, getSearchResults, performQuickAction, performUpdateRecordQuickAction, updateListInfoByName, updateRecord, updateRecordAvatar, getActionOverrides_imperative, getAllApps_imperative, getAppDetails_imperative, getDuplicateConfiguration_imperative, getDuplicates_imperative, getGlobalActions_imperative, getKeywordSearchResults_imperative, getLayout_imperative, getLayoutUserState_imperative, getListInfoByName_imperative, getListInfosByName_imperative, getListObjectInfo_imperative, getListRecordsByName_imperative, getListUi_imperative, getLookupActions_imperative, getLookupMetadata_imperative, getLookupRecords_imperative, getNavItems_imperative, getObjectCreateActions_imperative, getObjectInfo_imperative, getObjectInfos_imperative, getPicklistValues_imperative, getPicklistValuesByRecordType_imperative, getQuickActionDefaults_imperative, getQuickActionLayout_imperative, getRecord_imperative, getRecordActions_imperative, getRecordAvatars_imperative, getRecordCreateDefaults_imperative, getRecordEditActions_imperative, getRecordTemplateClone_imperative, getRecordTemplateCreate_imperative, getRecordUi_imperative, getRecords_imperative, getRelatedListActions_imperative, getRelatedListCount_imperative, getRelatedListInfo_imperative, getRelatedListInfoBatch_imperative, getRelatedListPreferences_imperative, getRelatedListPreferencesBatch_imperative, getRelatedListRecordActions_imperative, getRelatedListRecords_imperative, getRelatedListRecordsBatch_imperative, getRelatedListsActions_imperative, getRelatedListsCount_imperative, getRelatedListsInfo_imperative, getSearchFilterMetadata_imperative, getSearchFilterOptions_imperative, getSearchResults_imperative };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ListColumnRepresentation as types_ListColumnRepresentation_ListColumnRepresentation } from '../types/ListColumnRepresentation';
|
|
2
|
+
import { ListFilterByInfoRepresentation as types_ListFilterByInfoRepresentation_ListFilterByInfoRepresentation } from '../types/ListFilterByInfoRepresentation';
|
|
3
|
+
import { ListScopeRepresentation as types_ListScopeRepresentation_ListScopeRepresentation } from '../types/ListScopeRepresentation';
|
|
4
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
5
|
+
import { ListInfoRepresentation as types_ListInfoRepresentation_ListInfoRepresentation } from '../types/ListInfoRepresentation';
|
|
6
|
+
export interface ResourceRequestConfig {
|
|
7
|
+
urlParams: {
|
|
8
|
+
objectApiName: string;
|
|
9
|
+
};
|
|
10
|
+
body: {
|
|
11
|
+
displayColumns?: Array<types_ListColumnRepresentation_ListColumnRepresentation | null>;
|
|
12
|
+
filterLogicString?: string | null;
|
|
13
|
+
filteredByInfo?: Array<types_ListFilterByInfoRepresentation_ListFilterByInfoRepresentation>;
|
|
14
|
+
label?: string;
|
|
15
|
+
listViewApiName?: string;
|
|
16
|
+
scope?: types_ListScopeRepresentation_ListScopeRepresentation | null;
|
|
17
|
+
visibility?: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
21
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ListInfoRepresentation_ListInfoRepresentation): void;
|
|
22
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ListInfoRepresentation_ListInfoRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ListInfoRepresentation_ListInfoRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ListInfoRepresentation_ListInfoRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ListInfoRepresentation_ListInfoRepresentation, any>;
|
|
23
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
24
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ListColumnRepresentation as ListColumnRepresentation_ListColumnRepresentation } from './ListColumnRepresentation';
|
|
2
|
+
import { ListFilterByInfoRepresentation as ListFilterByInfoRepresentation_ListFilterByInfoRepresentation } from './ListFilterByInfoRepresentation';
|
|
3
|
+
import { ListScopeRepresentation as ListScopeRepresentation_ListScopeRepresentation } from './ListScopeRepresentation';
|
|
4
|
+
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';
|
|
5
|
+
export declare const VERSION = "806bbd8f4d404d23c244de9619f1b703";
|
|
6
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
|
+
export declare const RepresentationType: string;
|
|
8
|
+
export declare function normalize(input: ListInfoPostInputRepresentation, existing: ListInfoPostInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ListInfoPostInputRepresentationNormalized;
|
|
9
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
10
|
+
export declare function equals(existing: ListInfoPostInputRepresentationNormalized, incoming: ListInfoPostInputRepresentationNormalized): boolean;
|
|
11
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
12
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ListInfoPostInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
13
|
+
/**
|
|
14
|
+
* Representation of a List Info input.
|
|
15
|
+
*
|
|
16
|
+
* Keys:
|
|
17
|
+
* (none)
|
|
18
|
+
*/
|
|
19
|
+
export interface ListInfoPostInputRepresentationNormalized {
|
|
20
|
+
/** Input representation for display columns (field API names). */
|
|
21
|
+
displayColumns?: Array<ListColumnRepresentation_ListColumnRepresentation | null>;
|
|
22
|
+
/** Input representation for filterLogicString. */
|
|
23
|
+
filterLogicString?: string | null;
|
|
24
|
+
/** Input representation for filter metadata. */
|
|
25
|
+
filteredByInfo?: Array<ListFilterByInfoRepresentation_ListFilterByInfoRepresentation>;
|
|
26
|
+
/** Input representation for label. */
|
|
27
|
+
label?: string;
|
|
28
|
+
/** Input representation for listview API name. */
|
|
29
|
+
listViewApiName?: string;
|
|
30
|
+
/** Input representation for filterLogicString. */
|
|
31
|
+
scope?: ListScopeRepresentation_ListScopeRepresentation | null;
|
|
32
|
+
/** Input representation for visibility. */
|
|
33
|
+
visibility?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Representation of a List Info input.
|
|
37
|
+
*
|
|
38
|
+
* Keys:
|
|
39
|
+
* (none)
|
|
40
|
+
*/
|
|
41
|
+
export interface ListInfoPostInputRepresentation {
|
|
42
|
+
displayColumns?: Array<ListColumnRepresentation_ListColumnRepresentation | null>;
|
|
43
|
+
filterLogicString?: string | null;
|
|
44
|
+
filteredByInfo?: Array<ListFilterByInfoRepresentation_ListFilterByInfoRepresentation>;
|
|
45
|
+
label?: string;
|
|
46
|
+
listViewApiName?: string;
|
|
47
|
+
scope?: ListScopeRepresentation_ListScopeRepresentation | null;
|
|
48
|
+
visibility?: string;
|
|
49
|
+
}
|
|
@@ -33,6 +33,7 @@ export type { GraphQLBatchRepresentation } from './wire/graphqlBatch/postGraphql
|
|
|
33
33
|
export type { GraphQLInputRepresentation } from './generated/types/GraphQLInputRepresentation';
|
|
34
34
|
export type { GraphqlConfig as GraphQLConfig, BuildSnapshotContext as GraphQLBuildSnapshotContext, } from './generated/adapters/graphql';
|
|
35
35
|
export * from './generated/artifacts/main';
|
|
36
|
+
export * from './util/store-utils';
|
|
36
37
|
export type { CreateContentVersionConfig } from './wire/createContentVersion/AdapterConfig';
|
|
37
38
|
export type { CreateContentDocumentAndVersionConfig } from './wire/createContentDocumentAndVersion/AdapterConfig';
|
|
38
39
|
export type { ResourceRequestConfig as CreateContentDocumentAndVersionResourceRequestConfig } from './wire/createContentDocumentAndVersion/ResourceRequestConfig';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { updateRelatedListInfoAdapterFactory, updateRelatedListPreferencesAdapterFactory } from './main';
|
|
2
2
|
export { MRU } from './wire/getListUi';
|
|
3
3
|
export * from './generated/artifacts/sfdc_restAdapters';
|
|
4
|
+
export * from './util/store-utils';
|
|
4
5
|
export declare const refresh: <D>(data: D) => Promise<undefined> | undefined;
|
|
5
6
|
export declare const updateLayoutUserState: (apiName: unknown, recordTypeId: unknown, layoutType: unknown, mode: unknown, layoutUserStateInput: unknown) => Promise<undefined>;
|
|
6
7
|
export declare const updateRelatedListInfo: (config: Parameters<ReturnType<typeof updateRelatedListInfoAdapterFactory>>[0]) => Promise<import("./generated/types/RelatedListInfoRepresentation").RelatedListInfoRepresentation | undefined> | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const API_NAMESPACE = "UiApi";
|
|
2
|
+
export declare const RECORD_REPRESENTATION_NAME = "RecordRepresentation";
|
|
3
|
+
export declare const RECORD_VIEW_ENTITY_REPRESENTATION_NAME = "RecordViewEntityRepresentation";
|
|
4
|
+
export declare const RECORD_ID_PREFIX: string;
|
|
5
|
+
export declare const RECORD_VIEW_ENTITY_ID_PREFIX: string;
|
|
6
|
+
export declare const RECORD_FIELDS_KEY_JUNCTION = "__fields__";
|
|
7
|
+
export declare function extractRecordIdFromStoreKey(key: string): string | undefined;
|
|
8
|
+
export declare function isStoreKeyRecordViewEntity(key: string): boolean;
|
|
9
|
+
export declare function buildRecordRepKeyFromId(recordId: string): string;
|