@salesforce/lds-adapters-uiapi 1.131.0-dev11 → 1.131.0-dev13
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.
|
@@ -4870,7 +4870,7 @@ function fulfill(existing, incoming) {
|
|
|
4870
4870
|
const batchRequestWithSingleRequest = isSingleBatchRecordRequest(existingUrlParams) &&
|
|
4871
4871
|
isSingleRecordRequest(urlParams) &&
|
|
4872
4872
|
incomingUrlRecords[0] === existingUrlRecords[0];
|
|
4873
|
-
if (!batchRequestWithSingleRequest) {
|
|
4873
|
+
if (!batchRequestWithSingleRequest || isRestrictedPathCondition(existingPath, path)) {
|
|
4874
4874
|
return false;
|
|
4875
4875
|
}
|
|
4876
4876
|
}
|
|
@@ -4913,6 +4913,12 @@ function isSingleBatchRecordRequest(urlParams) {
|
|
|
4913
4913
|
function isSingleRecordRequest(urlParams) {
|
|
4914
4914
|
return hasOwnProperty.call(urlParams, 'recordId');
|
|
4915
4915
|
}
|
|
4916
|
+
function isRestrictedPathCondition(existingPath, path) {
|
|
4917
|
+
// should not dedupe getRecordUi and getRecord as both of their representation is different
|
|
4918
|
+
// records call cannot digest response of getRecordUi
|
|
4919
|
+
return ((existingPath.includes('/record-ui') && path.includes('/records')) ||
|
|
4920
|
+
(existingPath.includes('/records') && path.includes('/record-ui')));
|
|
4921
|
+
}
|
|
4916
4922
|
|
|
4917
4923
|
const createResourceRequest$14 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
|
|
4918
4924
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-uiapi",
|
|
3
|
-
"version": "1.131.0-
|
|
3
|
+
"version": "1.131.0-dev13",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Wire adapters for record related UI API endpoints",
|
|
6
6
|
"main": "dist/es/es2018/uiapi-records-service.js",
|
|
@@ -67,14 +67,14 @@
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@salesforce/lds-bindings": "1.131.0-
|
|
71
|
-
"@salesforce/lds-default-luvio": "1.131.0-
|
|
70
|
+
"@salesforce/lds-bindings": "1.131.0-dev13",
|
|
71
|
+
"@salesforce/lds-default-luvio": "1.131.0-dev13"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@databases/sqlite": "^3.0.0",
|
|
75
|
-
"@salesforce/lds-compiler-plugins": "1.131.0-
|
|
76
|
-
"@salesforce/lds-jest": "1.131.0-
|
|
77
|
-
"@salesforce/lds-store-binary": "1.131.0-
|
|
75
|
+
"@salesforce/lds-compiler-plugins": "1.131.0-dev13",
|
|
76
|
+
"@salesforce/lds-jest": "1.131.0-dev13",
|
|
77
|
+
"@salesforce/lds-store-binary": "1.131.0-dev13"
|
|
78
78
|
},
|
|
79
79
|
"luvioBundlesize": [
|
|
80
80
|
{
|
package/sfdc/graphqlAdapters.js
CHANGED
|
@@ -14390,4 +14390,4 @@ register({
|
|
|
14390
14390
|
});
|
|
14391
14391
|
|
|
14392
14392
|
export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
|
|
14393
|
-
// version: 1.131.0-
|
|
14393
|
+
// version: 1.131.0-dev13-a38ed0c06
|
package/sfdc/index.js
CHANGED
|
@@ -4737,7 +4737,7 @@ function fulfill(existing, incoming) {
|
|
|
4737
4737
|
const batchRequestWithSingleRequest = isSingleBatchRecordRequest(existingUrlParams) &&
|
|
4738
4738
|
isSingleRecordRequest(urlParams) &&
|
|
4739
4739
|
incomingUrlRecords[0] === existingUrlRecords[0];
|
|
4740
|
-
if (!batchRequestWithSingleRequest) {
|
|
4740
|
+
if (!batchRequestWithSingleRequest || isRestrictedPathCondition(existingPath, path)) {
|
|
4741
4741
|
return false;
|
|
4742
4742
|
}
|
|
4743
4743
|
}
|
|
@@ -4780,6 +4780,12 @@ function isSingleBatchRecordRequest(urlParams) {
|
|
|
4780
4780
|
function isSingleRecordRequest(urlParams) {
|
|
4781
4781
|
return hasOwnProperty.call(urlParams, 'recordId');
|
|
4782
4782
|
}
|
|
4783
|
+
function isRestrictedPathCondition(existingPath, path) {
|
|
4784
|
+
// should not dedupe getRecordUi and getRecord as both of their representation is different
|
|
4785
|
+
// records call cannot digest response of getRecordUi
|
|
4786
|
+
return ((existingPath.includes('/record-ui') && path.includes('/records')) ||
|
|
4787
|
+
(existingPath.includes('/records') && path.includes('/record-ui')));
|
|
4788
|
+
}
|
|
4783
4789
|
|
|
4784
4790
|
const createResourceRequest$10 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
|
|
4785
4791
|
return {
|
|
@@ -36114,4 +36120,4 @@ withDefaultLuvio((luvio) => {
|
|
|
36114
36120
|
});
|
|
36115
36121
|
|
|
36116
36122
|
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, 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$N 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, serializeFieldArguments, updateLayoutUserState, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
36117
|
-
// version: 1.131.0-
|
|
36123
|
+
// version: 1.131.0-dev13-a38ed0c06
|