@salesforce/lds-adapters-uiapi 1.140.1 → 1.141.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 +1 -0
- package/dist/es/es2018/types/src/generated/resources/getUiApiLookupsByFieldApiNameAndObjectApiName.d.ts +1 -0
- package/dist/es/es2018/uiapi-records-service.js +14 -1
- package/package.json +1 -1
- package/sfdc/graphqlAdapters.js +1 -1
- package/sfdc/index.js +15 -2
- package/src/raml/api.raml +4 -0
|
@@ -13,6 +13,7 @@ export interface GetLookupRecordsConfig {
|
|
|
13
13
|
q?: string;
|
|
14
14
|
searchType?: string;
|
|
15
15
|
sourceRecordId?: string;
|
|
16
|
+
targetApiName?: string;
|
|
16
17
|
}
|
|
17
18
|
export declare function createResourceParams(config: GetLookupRecordsConfig): resources_getUiApiLookupsByFieldApiNameAndObjectApiName_ResourceRequestConfig;
|
|
18
19
|
export declare function coerceConfig(config: adapter$45$utils_UncoercedConfiguration<GetLookupRecordsConfig, any>): adapter$45$utils_Untrusted<GetLookupRecordsConfig>;
|
|
@@ -12,6 +12,7 @@ export interface ResourceRequestConfig {
|
|
|
12
12
|
q?: string;
|
|
13
13
|
searchType?: string;
|
|
14
14
|
sourceRecordId?: string;
|
|
15
|
+
targetApiName?: string;
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
18
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -51884,7 +51884,7 @@ function getTypeCacheKeys$7(luvio, input, fullPathFactory) {
|
|
|
51884
51884
|
}
|
|
51885
51885
|
|
|
51886
51886
|
function keyBuilder$8(luvio, params) {
|
|
51887
|
-
return keyPrefix + '::LookupValuesRepresentation:(' + 'dependentFieldBindings:' + params.queryParams.dependentFieldBindings + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'q:' + params.queryParams.q + ',' + 'searchType:' + params.queryParams.searchType + ',' + 'sourceRecordId:' + params.queryParams.sourceRecordId + ',' + 'fieldApiName:' + params.urlParams.fieldApiName + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
51887
|
+
return keyPrefix + '::LookupValuesRepresentation:(' + 'dependentFieldBindings:' + params.queryParams.dependentFieldBindings + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'q:' + params.queryParams.q + ',' + 'searchType:' + params.queryParams.searchType + ',' + 'sourceRecordId:' + params.queryParams.sourceRecordId + ',' + 'targetApiName:' + params.queryParams.targetApiName + ',' + 'fieldApiName:' + params.urlParams.fieldApiName + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
51888
51888
|
}
|
|
51889
51889
|
function getResponseCacheKeys$7(luvio, resourceParams, response) {
|
|
51890
51890
|
return getTypeCacheKeys$7(luvio, response, () => keyBuilder$8(luvio, resourceParams));
|
|
@@ -51937,6 +51937,10 @@ function coerceConfig$5(config) {
|
|
|
51937
51937
|
if (sourceRecordId !== undefined) {
|
|
51938
51938
|
coercedConfig.sourceRecordId = sourceRecordId;
|
|
51939
51939
|
}
|
|
51940
|
+
const targetApiName = getObjectApiName$1(config.targetApiName);
|
|
51941
|
+
if (targetApiName !== undefined) {
|
|
51942
|
+
coercedConfig.targetApiName = targetApiName;
|
|
51943
|
+
}
|
|
51940
51944
|
return coercedConfig;
|
|
51941
51945
|
}
|
|
51942
51946
|
function typeCheckConfig$a(untrustedConfig) {
|
|
@@ -51980,6 +51984,10 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
51980
51984
|
if (typeof untrustedConfig_sourceRecordId === 'string') {
|
|
51981
51985
|
config.sourceRecordId = untrustedConfig_sourceRecordId;
|
|
51982
51986
|
}
|
|
51987
|
+
const untrustedConfig_targetApiName = untrustedConfig.targetApiName;
|
|
51988
|
+
if (typeof untrustedConfig_targetApiName === 'string') {
|
|
51989
|
+
config.targetApiName = untrustedConfig_targetApiName;
|
|
51990
|
+
}
|
|
51983
51991
|
return config;
|
|
51984
51992
|
}
|
|
51985
51993
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -52034,6 +52042,10 @@ function coerceRequestParams(untrusted) {
|
|
|
52034
52042
|
if (sourceRecordId !== undefined) {
|
|
52035
52043
|
coercedConfig.sourceRecordId = sourceRecordId;
|
|
52036
52044
|
}
|
|
52045
|
+
const targetApiName = requestParams.targetApiName;
|
|
52046
|
+
if (targetApiName !== undefined) {
|
|
52047
|
+
coercedConfig.targetApiName = targetApiName;
|
|
52048
|
+
}
|
|
52037
52049
|
return coercedConfig;
|
|
52038
52050
|
}
|
|
52039
52051
|
function coerceConfigWithDefaults$1(untrusted) {
|
|
@@ -52079,6 +52091,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
52079
52091
|
searchType: config.searchType,
|
|
52080
52092
|
dependentFieldBindings: config.dependentFieldBindings,
|
|
52081
52093
|
sourceRecordId: config.sourceRecordId,
|
|
52094
|
+
targetApiName: config.targetApiName,
|
|
52082
52095
|
},
|
|
52083
52096
|
};
|
|
52084
52097
|
const request = createResourceRequest$9(resourceParams);
|
package/package.json
CHANGED
package/sfdc/graphqlAdapters.js
CHANGED
|
@@ -20811,4 +20811,4 @@ register({
|
|
|
20811
20811
|
});
|
|
20812
20812
|
|
|
20813
20813
|
export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
|
|
20814
|
-
// version: 1.
|
|
20814
|
+
// version: 1.141.0-39a2416f8
|
package/sfdc/index.js
CHANGED
|
@@ -31451,7 +31451,7 @@ function getTypeCacheKeys$7(luvio, input, fullPathFactory) {
|
|
|
31451
31451
|
}
|
|
31452
31452
|
|
|
31453
31453
|
function keyBuilder$8(luvio, params) {
|
|
31454
|
-
return keyPrefix + '::LookupValuesRepresentation:(' + 'dependentFieldBindings:' + params.queryParams.dependentFieldBindings + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'q:' + params.queryParams.q + ',' + 'searchType:' + params.queryParams.searchType + ',' + 'sourceRecordId:' + params.queryParams.sourceRecordId + ',' + 'fieldApiName:' + params.urlParams.fieldApiName + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
31454
|
+
return keyPrefix + '::LookupValuesRepresentation:(' + 'dependentFieldBindings:' + params.queryParams.dependentFieldBindings + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'q:' + params.queryParams.q + ',' + 'searchType:' + params.queryParams.searchType + ',' + 'sourceRecordId:' + params.queryParams.sourceRecordId + ',' + 'targetApiName:' + params.queryParams.targetApiName + ',' + 'fieldApiName:' + params.urlParams.fieldApiName + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
31455
31455
|
}
|
|
31456
31456
|
function getResponseCacheKeys$7(luvio, resourceParams, response) {
|
|
31457
31457
|
return getTypeCacheKeys$7(luvio, response, () => keyBuilder$8(luvio, resourceParams));
|
|
@@ -31504,6 +31504,10 @@ function coerceConfig$5(config) {
|
|
|
31504
31504
|
if (sourceRecordId !== undefined) {
|
|
31505
31505
|
coercedConfig.sourceRecordId = sourceRecordId;
|
|
31506
31506
|
}
|
|
31507
|
+
const targetApiName = getObjectApiName$1(config.targetApiName);
|
|
31508
|
+
if (targetApiName !== undefined) {
|
|
31509
|
+
coercedConfig.targetApiName = targetApiName;
|
|
31510
|
+
}
|
|
31507
31511
|
return coercedConfig;
|
|
31508
31512
|
}
|
|
31509
31513
|
function typeCheckConfig$a(untrustedConfig) {
|
|
@@ -31547,6 +31551,10 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
31547
31551
|
if (typeof untrustedConfig_sourceRecordId === 'string') {
|
|
31548
31552
|
config.sourceRecordId = untrustedConfig_sourceRecordId;
|
|
31549
31553
|
}
|
|
31554
|
+
const untrustedConfig_targetApiName = untrustedConfig.targetApiName;
|
|
31555
|
+
if (typeof untrustedConfig_targetApiName === 'string') {
|
|
31556
|
+
config.targetApiName = untrustedConfig_targetApiName;
|
|
31557
|
+
}
|
|
31550
31558
|
return config;
|
|
31551
31559
|
}
|
|
31552
31560
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -31601,6 +31609,10 @@ function coerceRequestParams(untrusted) {
|
|
|
31601
31609
|
if (sourceRecordId !== undefined) {
|
|
31602
31610
|
coercedConfig.sourceRecordId = sourceRecordId;
|
|
31603
31611
|
}
|
|
31612
|
+
const targetApiName = requestParams.targetApiName;
|
|
31613
|
+
if (targetApiName !== undefined) {
|
|
31614
|
+
coercedConfig.targetApiName = targetApiName;
|
|
31615
|
+
}
|
|
31604
31616
|
return coercedConfig;
|
|
31605
31617
|
}
|
|
31606
31618
|
function coerceConfigWithDefaults$1(untrusted) {
|
|
@@ -31646,6 +31658,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
31646
31658
|
searchType: config.searchType,
|
|
31647
31659
|
dependentFieldBindings: config.dependentFieldBindings,
|
|
31648
31660
|
sourceRecordId: config.sourceRecordId,
|
|
31661
|
+
targetApiName: config.targetApiName,
|
|
31649
31662
|
},
|
|
31650
31663
|
};
|
|
31651
31664
|
const request = createResourceRequest$9(resourceParams);
|
|
@@ -35569,4 +35582,4 @@ withDefaultLuvio((luvio) => {
|
|
|
35569
35582
|
});
|
|
35570
35583
|
|
|
35571
35584
|
export { InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$I as ObjectInfoRepresentationType, RepresentationType$N as RecordRepresentationRepresentationType, TTL$v as RecordRepresentationTTL, RepresentationType$N as RecordRepresentationType, VERSION$14 as RecordRepresentationVersion, keyPrefix as UiApiNamespace, configurationForRestAdapters as configuration, createContentDocumentAndVersion, createContentVersion, createIngestRecordWithFields, createRecord, deleteRecord, getActionOverrides, getActionOverrides_imperative, getAllApps, getAllApps_imperative, getAppDetails, getAppDetails_imperative, getDuplicateConfiguration, getDuplicateConfiguration_imperative, getDuplicates, getDuplicates_imperative, getGlobalActions, getGlobalActions_imperative, getKeywordSearchResults, getKeywordSearchResults_imperative, getLayout, getLayoutUserState, getLayoutUserState_imperative, getLayout_imperative, getListInfoByName, getListInfoByName_imperative, getListInfosByName, getListInfosByName_imperative, getListRecordsByName, getListRecordsByName_imperative, getListUi, getListUi_imperative, getListViewSummaryCollection, getListViewSummaryCollection_imperative, getLookupActions, getLookupActions_imperative, getLookupMetadata, getLookupMetadata_imperative, getLookupRecords, getLookupRecords_imperative, getNavItems, getNavItems_imperative, getObjectCreateActions, getObjectCreateActions_imperative, getObjectInfo, getObjectInfoAdapterFactory, getObjectInfo_imperative, getObjectInfos, getObjectInfosAdapterFactory, getObjectInfos_imperative, getPicklistValues, getPicklistValuesByRecordType, getPicklistValuesByRecordType_imperative, getPicklistValues_imperative, getQuickActionDefaults, getQuickActionDefaults_imperative, getQuickActionLayout, getQuickActionLayout_imperative, getRecord, getRecordActions, getRecordActions_imperative, factory$e as getRecordAdapterFactory, getRecordAvatars, getRecordAvatars_imperative, getRecordCreateDefaults, getRecordCreateDefaults_imperative, getRecordEditActions, getRecordEditActions_imperative, getRecordId18, getRecordNotifyChange, getRecordTemplateClone, getRecordTemplateClone_imperative, getRecordTemplateCreate, getRecordTemplateCreate_imperative, getRecordUi, getRecordUi_imperative, getRecord_imperative, getRecords, getRecords_imperative, getRelatedListActions, getRelatedListActions_imperative, getRelatedListCount, getRelatedListCount_imperative, getRelatedListInfo, getRelatedListInfoBatch, getRelatedListInfoBatch_imperative, getRelatedListInfo_imperative, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListPreferencesBatch_imperative, getRelatedListPreferences_imperative, getRelatedListRecordActions, getRelatedListRecordActions_imperative, getRelatedListRecords, getRelatedListRecordsBatch, getRelatedListRecordsBatch_imperative, getRelatedListRecords_imperative, getRelatedListsActions, getRelatedListsActions_imperative, getRelatedListsCount, getRelatedListsCount_imperative, getRelatedListsInfo, getRelatedListsInfo_imperative, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadata, getSearchFilterMetadata_imperative, getSearchFilterOptions, getSearchFilterOptions_imperative, getSearchResults, getSearchResults_imperative, getTypeCacheKeys$P as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$B as ingestObjectInfo, ingest$x as ingestQuickActionExecutionRepresentation, ingest$G as ingestRecord, instrument, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$x as keyBuilderFromTypeRecordRepresentation, keyBuilder$1F as keyBuilderObjectInfo, keyBuilder$1z as keyBuilderQuickActionExecutionRepresentation, keyBuilder$1Q as keyBuilderRecord, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, updateLayoutUserState, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
35572
|
-
// version: 1.
|
|
35585
|
+
// version: 1.141.0-39a2416f8
|
package/src/raml/api.raml
CHANGED
|
@@ -5659,6 +5659,7 @@ types:
|
|
|
5659
5659
|
required: true
|
|
5660
5660
|
/lookups/{objectApiName}/{fieldApiName}:
|
|
5661
5661
|
get:
|
|
5662
|
+
displayName: getLookup
|
|
5662
5663
|
description: Returns record search results for the given lookup field.
|
|
5663
5664
|
responses:
|
|
5664
5665
|
'200':
|
|
@@ -5692,6 +5693,9 @@ types:
|
|
|
5692
5693
|
sourceRecordId:
|
|
5693
5694
|
type: string
|
|
5694
5695
|
required: false
|
|
5696
|
+
targetApiName:
|
|
5697
|
+
type: string
|
|
5698
|
+
required: false
|
|
5695
5699
|
uriParameters:
|
|
5696
5700
|
fieldApiName:
|
|
5697
5701
|
type: string
|