@salesforce/lds-adapters-uiapi 1.270.1 → 1.271.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.
@@ -5868,17 +5868,19 @@ function onResourceError(luvio, config, key, err) {
5868
5868
  function buildNetworkSnapshot$18(luvio, config, serverRequestCount = 0, options) {
5869
5869
  const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
5870
5870
  return luvio.dispatchResourceRequest(request, options).then((response) => {
5871
+ // W-11964675 - Condition to dedupe a very specific set of requests for
5872
+ // Komaci - a batch record request with a single record followed by a single
5873
+ // record request. The fulfill logic sends the same network response, so
5874
+ // there is some TypeScript massaging to extract the RecordRepresentation
5875
+ //
5876
+ // W-14381091 - Ensure hoisting the response body happens prior to
5877
+ // calling `luvio.handleSuccessResponse`, since both arguments capture
5878
+ // the response.
5879
+ if (isSingleBatchRecordResponse(response.body)) {
5880
+ response.body = response.body.results[0]
5881
+ .result;
5882
+ }
5871
5883
  return luvio.handleSuccessResponse(() => {
5872
- // W-11964675 - Condition to dedupe a very specific set of requests for
5873
- // Komaci - a batch record request with a single record followed by a single
5874
- // record request. The fulfill logic sends the same network response, so
5875
- // there is some TypeScript massaging to extract the RecordRepresentation
5876
- if (isSingleBatchRecordResponse(response.body)) {
5877
- let recordResponse = response;
5878
- recordResponse.body = response.body.results[0]
5879
- .result;
5880
- return onResourceSuccess(luvio, config, key, allTrackedFields, recordResponse, serverRequestCount + 1);
5881
- }
5882
5884
  return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
5883
5885
  }, () => {
5884
5886
  const cache = new StoreKeyMap();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-uiapi",
3
- "version": "1.270.1",
3
+ "version": "1.271.0",
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",
@@ -68,14 +68,14 @@
68
68
  }
69
69
  },
70
70
  "dependencies": {
71
- "@salesforce/lds-bindings": "^1.270.1",
72
- "@salesforce/lds-default-luvio": "^1.270.1"
71
+ "@salesforce/lds-bindings": "^1.271.0",
72
+ "@salesforce/lds-default-luvio": "^1.271.0"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@databases/sqlite": "^3.0.0",
76
- "@salesforce/lds-compiler-plugins": "^1.270.1",
77
- "@salesforce/lds-jest": "^1.270.1",
78
- "@salesforce/lds-store-binary": "^1.270.1"
76
+ "@salesforce/lds-compiler-plugins": "^1.271.0",
77
+ "@salesforce/lds-jest": "^1.271.0",
78
+ "@salesforce/lds-store-binary": "^1.271.0"
79
79
  },
80
80
  "luvioBundlesize": [
81
81
  {
@@ -18003,4 +18003,4 @@ register({
18003
18003
  });
18004
18004
 
18005
18005
  export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
18006
- // version: 1.270.1-abfb311e8
18006
+ // version: 1.271.0-c2f810db8
package/sfdc/index.js CHANGED
@@ -5734,17 +5734,19 @@ function onResourceError(luvio, config, key, err) {
5734
5734
  function buildNetworkSnapshot$13(luvio, config, serverRequestCount = 0, options) {
5735
5735
  const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
5736
5736
  return luvio.dispatchResourceRequest(request, options).then((response) => {
5737
+ // W-11964675 - Condition to dedupe a very specific set of requests for
5738
+ // Komaci - a batch record request with a single record followed by a single
5739
+ // record request. The fulfill logic sends the same network response, so
5740
+ // there is some TypeScript massaging to extract the RecordRepresentation
5741
+ //
5742
+ // W-14381091 - Ensure hoisting the response body happens prior to
5743
+ // calling `luvio.handleSuccessResponse`, since both arguments capture
5744
+ // the response.
5745
+ if (isSingleBatchRecordResponse(response.body)) {
5746
+ response.body = response.body.results[0]
5747
+ .result;
5748
+ }
5737
5749
  return luvio.handleSuccessResponse(() => {
5738
- // W-11964675 - Condition to dedupe a very specific set of requests for
5739
- // Komaci - a batch record request with a single record followed by a single
5740
- // record request. The fulfill logic sends the same network response, so
5741
- // there is some TypeScript massaging to extract the RecordRepresentation
5742
- if (isSingleBatchRecordResponse(response.body)) {
5743
- let recordResponse = response;
5744
- recordResponse.body = response.body.results[0]
5745
- .result;
5746
- return onResourceSuccess(luvio, config, key, allTrackedFields, recordResponse, serverRequestCount + 1);
5747
- }
5748
5750
  return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
5749
5751
  }, () => {
5750
5752
  const cache = new StoreKeyMap();
@@ -35590,4 +35592,4 @@ withDefaultLuvio((luvio) => {
35590
35592
  });
35591
35593
 
35592
35594
  export { API_NAMESPACE, InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$I as ObjectInfoDirectoryEntryRepresentationType, RepresentationType$N as ObjectInfoRepresentationType, RECORD_FIELDS_KEY_JUNCTION, RECORD_ID_PREFIX, RECORD_REPRESENTATION_NAME, RECORD_VIEW_ENTITY_ID_PREFIX, RECORD_VIEW_ENTITY_REPRESENTATION_NAME, RepresentationType$S as RecordRepresentationRepresentationType, TTL$y as RecordRepresentationTTL, RepresentationType$S as RecordRepresentationType, VERSION$18 as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildRecordRepKeyFromId, configurationForRestAdapters as configuration, createContentDocumentAndVersion, createContentVersion, createIngestRecordWithFields, createLDSAdapterWithPrediction, createListInfo, createRecord, deleteListInfo, deleteRecord, executeBatchRecordOperations, extractRecordIdFromStoreKey, getActionOverrides, getActionOverrides_imperative, getAllApps, getAllApps_imperative, getAppDetails, getAppDetails_imperative, getDuplicateConfiguration, getDuplicateConfiguration_imperative, getDuplicates, getDuplicates_imperative, getFlexipageFormulaOverrides, getFlexipageFormulaOverrides_imperative, getGlobalActions, getGlobalActions_imperative, getKeywordSearchResults, getKeywordSearchResults_imperative, getLayout, getLayoutUserState, getLayoutUserState_imperative, getLayout_imperative, getListInfoByName, getListInfoByName_imperative, getListInfosByName, getListInfosByName_imperative, getListObjectInfo, getListObjectInfo_imperative, getListPreferences, getListPreferences_imperative, getListRecordsByName, getListRecordsByName_imperative, getListUi, getListUi_imperative, getLookupActions, getLookupActions_imperative, getLookupMetadata, getLookupMetadata_imperative, getLookupRecords, getLookupRecords_imperative, getNavItems, getNavItems_imperative, getObjectCreateActions, getObjectCreateActions_imperative, getObjectInfo, getObjectInfoAdapterFactory, getObjectInfoDirectoryAdapterFactory, getObjectInfo_imperative, getObjectInfos, getObjectInfosAdapterFactory, getObjectInfos_imperative, getPicklistValues, getPicklistValuesByRecordType, getPicklistValuesByRecordType_imperative, getPicklistValues_imperative, getQuickActionDefaults, getQuickActionDefaults_imperative, getQuickActionLayout, getQuickActionLayout_imperative, getRecord, getRecordActions, getRecordActionsAdapterFactory, getRecordActions_imperative, factory$f as getRecordAdapterFactory, getRecordAvatars, getRecordAvatarsAdapterFactory, 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$U as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$G as ingestObjectInfo, ingest$A as ingestQuickActionExecutionRepresentation, ingest$L as ingestRecord, instrument, isStoreKeyRecordViewEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$A as keyBuilderFromTypeRecordRepresentation, keyBuilder$1R as keyBuilderObjectInfo, keyBuilder$1K as keyBuilderQuickActionExecutionRepresentation, keyBuilder$20 as keyBuilderRecord, notifyListInfoUpdateAvailable, notifyListViewSummaryUpdateAvailable, notifyQuickActionDefaultsUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, registerPrefetcher, updateLayoutUserState, updateListInfoByName, updateListPreferences, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
35593
- // version: 1.270.1-abfb311e8
35595
+ // version: 1.271.0-c2f810db8