@salesforce/lds-adapters-uiapi 1.229.0 → 1.231.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.
|
@@ -5099,7 +5099,7 @@ function fulfill(existing, incoming) {
|
|
|
5099
5099
|
const batchRequestWithSingleRequest = isSingleBatchRecordRequest(existingUrlParams) &&
|
|
5100
5100
|
isSingleRecordRequest(urlParams) &&
|
|
5101
5101
|
incomingUrlRecords[0] === existingUrlRecords[0];
|
|
5102
|
-
if (!batchRequestWithSingleRequest) {
|
|
5102
|
+
if (!batchRequestWithSingleRequest || isRestrictedPathCondition(existingPath, path)) {
|
|
5103
5103
|
return false;
|
|
5104
5104
|
}
|
|
5105
5105
|
}
|
|
@@ -5142,6 +5142,12 @@ function isSingleBatchRecordRequest(urlParams) {
|
|
|
5142
5142
|
function isSingleRecordRequest(urlParams) {
|
|
5143
5143
|
return hasOwnProperty.call(urlParams, 'recordId');
|
|
5144
5144
|
}
|
|
5145
|
+
function isRestrictedPathCondition(existingPath, path) {
|
|
5146
|
+
// should not dedupe getRecordUi and getRecord as both of their representation is different
|
|
5147
|
+
// records call cannot digest response of getRecordUi
|
|
5148
|
+
return ((existingPath.includes('/record-ui') && path.includes('/records')) ||
|
|
5149
|
+
(existingPath.includes('/records') && path.includes('/record-ui')));
|
|
5150
|
+
}
|
|
5145
5151
|
|
|
5146
5152
|
const createResourceRequest$16 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
|
|
5147
5153
|
return {
|
package/package.json
CHANGED
package/sfdc/graphqlAdapters.js
CHANGED
|
@@ -18122,4 +18122,4 @@ register({
|
|
|
18122
18122
|
});
|
|
18123
18123
|
|
|
18124
18124
|
export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
|
|
18125
|
-
// version: 1.
|
|
18125
|
+
// version: 1.231.0-2b4244fb5
|
package/sfdc/index.js
CHANGED
|
@@ -4965,7 +4965,7 @@ function fulfill(existing, incoming) {
|
|
|
4965
4965
|
const batchRequestWithSingleRequest = isSingleBatchRecordRequest(existingUrlParams) &&
|
|
4966
4966
|
isSingleRecordRequest(urlParams) &&
|
|
4967
4967
|
incomingUrlRecords[0] === existingUrlRecords[0];
|
|
4968
|
-
if (!batchRequestWithSingleRequest) {
|
|
4968
|
+
if (!batchRequestWithSingleRequest || isRestrictedPathCondition(existingPath, path)) {
|
|
4969
4969
|
return false;
|
|
4970
4970
|
}
|
|
4971
4971
|
}
|
|
@@ -5008,6 +5008,12 @@ function isSingleBatchRecordRequest(urlParams) {
|
|
|
5008
5008
|
function isSingleRecordRequest(urlParams) {
|
|
5009
5009
|
return hasOwnProperty.call(urlParams, 'recordId');
|
|
5010
5010
|
}
|
|
5011
|
+
function isRestrictedPathCondition(existingPath, path) {
|
|
5012
|
+
// should not dedupe getRecordUi and getRecord as both of their representation is different
|
|
5013
|
+
// records call cannot digest response of getRecordUi
|
|
5014
|
+
return ((existingPath.includes('/record-ui') && path.includes('/records')) ||
|
|
5015
|
+
(existingPath.includes('/records') && path.includes('/record-ui')));
|
|
5016
|
+
}
|
|
5011
5017
|
|
|
5012
5018
|
const createResourceRequest$12 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
|
|
5013
5019
|
return {
|
|
@@ -32847,4 +32853,4 @@ withDefaultLuvio((luvio) => {
|
|
|
32847
32853
|
});
|
|
32848
32854
|
|
|
32849
32855
|
export { InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$J as ObjectInfoRepresentationType, RepresentationType$O as RecordRepresentationRepresentationType, TTL$w as RecordRepresentationTTL, RepresentationType$O as RecordRepresentationType, VERSION$17 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, getListObjectInfo, getListObjectInfo_imperative, getListRecordsByName, getListRecordsByName_imperative, getListUi, getListUi_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, getRecordsAdapterFactory, 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$Q as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$C as ingestObjectInfo, ingest$y as ingestQuickActionExecutionRepresentation, ingest$H as ingestRecord, instrument, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$y as keyBuilderFromTypeRecordRepresentation, keyBuilder$1J as keyBuilderObjectInfo, keyBuilder$1D as keyBuilderQuickActionExecutionRepresentation, keyBuilder$1U as keyBuilderRecord, notifyListInfoUpdateAvailable, notifyListViewSummaryUpdateAvailable, notifyQuickActionDefaultsUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, updateLayoutUserState, updateListInfoByName, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
32850
|
-
// version: 1.
|
|
32856
|
+
// version: 1.231.0-2b4244fb5
|