@salesforce/lds-adapters-uiapi 1.229.0-dev1 → 1.229.0-dev3

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.
@@ -11980,18 +11980,28 @@ const buildLayoutModeCacheSnapshot = (apiName, recordTypeId, layoutType, mode) =
11980
11980
  * These are intermediate lookups to check if the record is in the L2 cache
11981
11981
  * @param {Luvio} luvio
11982
11982
  * @param {GetRecordLayoutTypeConfig} config
11983
- * @param {BuildCachedSnapshot<BuildSnapshotContext} cachedSnapshot
11983
+ * @param {BuildCachedSnapshot<BuildSnapshotContext>} cachedSnapshot
11984
11984
  */
11985
11985
  function makeCacheOnlySnapshot(luvio, config, adapterContext, cachedSnapshot) {
11986
- return luvio.applyCachePolicy({
11987
- cachePolicy: {
11988
- // only looking in the cache so we can check for L2 data offline
11989
- type: 'only-if-cached',
11990
- },
11991
- }, { config, luvio, adapterContext }, cachedSnapshot,
11992
- // this won't be invoked since we're requesting only-if-cached
11986
+ return luvio.applyCachePolicy(
11987
+ // Pass empty context so environment will use its default cache-policy
11988
+ {}, { config, luvio, adapterContext }, cachedSnapshot,
11989
+ // disallow hitting the network by returning a gateway timeout
11993
11990
  () => {
11994
- throw Error('buildNetworkSnapshot should not be called for only-if-cached policy');
11991
+ return new Promise((resolve) => {
11992
+ resolve({
11993
+ state: 'Error',
11994
+ data: undefined,
11995
+ error: {
11996
+ body: undefined,
11997
+ headers: {},
11998
+ ok: false,
11999
+ status: 504,
12000
+ statusText: 'Gateway Timeout',
12001
+ errorType: 'fetchResponse',
12002
+ },
12003
+ });
12004
+ });
11995
12005
  });
11996
12006
  }
11997
12007
  /**
@@ -43072,6 +43082,7 @@ function buildSelectionForField$7(source, reader, sel, variables, fragments, isC
43072
43082
  }
43073
43083
  if (fieldData === null) {
43074
43084
  reader.assignScalar(requestedFieldName, sink, fieldData);
43085
+ reader.exitPath();
43075
43086
  return sink;
43076
43087
  }
43077
43088
  const fieldType = getFieldType(sel);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-uiapi",
3
- "version": "1.229.0-dev1",
3
+ "version": "1.229.0-dev3",
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,15 +68,15 @@
68
68
  }
69
69
  },
70
70
  "dependencies": {
71
- "@salesforce/lds-bindings": "1.229.0-dev1",
72
- "@salesforce/lds-default-luvio": "1.229.0-dev1"
71
+ "@salesforce/lds-bindings": "1.229.0-dev3",
72
+ "@salesforce/lds-default-luvio": "1.229.0-dev3"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@databases/sqlite": "^3.0.0",
76
- "@salesforce/lds-compiler-plugins": "1.229.0-dev1",
77
- "@salesforce/lds-jest": "1.229.0-dev1",
78
- "@salesforce/lds-store-binary": "1.229.0-dev1",
79
- "@salesforce/lds-uiapi-record-utils": "1.229.0-dev1"
76
+ "@salesforce/lds-compiler-plugins": "1.229.0-dev3",
77
+ "@salesforce/lds-jest": "1.229.0-dev3",
78
+ "@salesforce/lds-store-binary": "1.229.0-dev3",
79
+ "@salesforce/lds-uiapi-record-utils": "1.229.0-dev3"
80
80
  },
81
81
  "luvioBundlesize": [
82
82
  {
@@ -14393,6 +14393,7 @@ function buildSelectionForField$7(source, reader, sel, variables, fragments, isC
14393
14393
  }
14394
14394
  if (fieldData === null) {
14395
14395
  reader.assignScalar(requestedFieldName, sink, fieldData);
14396
+ reader.exitPath();
14396
14397
  return sink;
14397
14398
  }
14398
14399
  const fieldType = getFieldType(sel);
@@ -18121,4 +18122,4 @@ register({
18121
18122
  });
18122
18123
 
18123
18124
  export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
18124
- // version: 1.229.0-dev1-5b6d3db67
18125
+ // version: 1.229.0-dev3-71194d134
package/sfdc/index.js CHANGED
@@ -11512,18 +11512,28 @@ const buildLayoutModeCacheSnapshot = (apiName, recordTypeId, layoutType, mode) =
11512
11512
  * These are intermediate lookups to check if the record is in the L2 cache
11513
11513
  * @param {Luvio} luvio
11514
11514
  * @param {GetRecordLayoutTypeConfig} config
11515
- * @param {BuildCachedSnapshot<BuildSnapshotContext} cachedSnapshot
11515
+ * @param {BuildCachedSnapshot<BuildSnapshotContext>} cachedSnapshot
11516
11516
  */
11517
11517
  function makeCacheOnlySnapshot(luvio, config, adapterContext, cachedSnapshot) {
11518
- return luvio.applyCachePolicy({
11519
- cachePolicy: {
11520
- // only looking in the cache so we can check for L2 data offline
11521
- type: 'only-if-cached',
11522
- },
11523
- }, { config, luvio, adapterContext }, cachedSnapshot,
11524
- // this won't be invoked since we're requesting only-if-cached
11518
+ return luvio.applyCachePolicy(
11519
+ // Pass empty context so environment will use its default cache-policy
11520
+ {}, { config, luvio, adapterContext }, cachedSnapshot,
11521
+ // disallow hitting the network by returning a gateway timeout
11525
11522
  () => {
11526
- throw Error('buildNetworkSnapshot should not be called for only-if-cached policy');
11523
+ return new Promise((resolve) => {
11524
+ resolve({
11525
+ state: 'Error',
11526
+ data: undefined,
11527
+ error: {
11528
+ body: undefined,
11529
+ headers: {},
11530
+ ok: false,
11531
+ status: 504,
11532
+ statusText: 'Gateway Timeout',
11533
+ errorType: 'fetchResponse',
11534
+ },
11535
+ });
11536
+ });
11527
11537
  });
11528
11538
  }
11529
11539
  /**
@@ -32853,4 +32863,4 @@ withDefaultLuvio((luvio) => {
32853
32863
  });
32854
32864
 
32855
32865
  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 };
32856
- // version: 1.229.0-dev1-5b6d3db67
32866
+ // version: 1.229.0-dev3-71194d134
@@ -95,7 +95,7 @@ var TypeCheckShapes;
95
95
  TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
96
96
  TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
97
97
  })(TypeCheckShapes || (TypeCheckShapes = {}));
98
- // engine version: 0.145.2-6a13677c
98
+ // engine version: 0.146.0-dev3-502c4337
99
99
 
100
100
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
101
101