@salesforce/lds-adapters-uiapi 1.308.0 → 1.310.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.
@@ -55338,7 +55338,7 @@ const performUpdateRecordQuickAction_ConfigPropertyMetadata = [
55338
55338
  generateParamConfigMetadata('actionApiName', true, 0 /* UrlParameter */, 0 /* String */),
55339
55339
  generateParamConfigMetadata('allowSaveOnDuplicate', false, 2 /* Body */, 1 /* Boolean */),
55340
55340
  generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
55341
- generateParamConfigMetadata('contextId', false, 2 /* Body */, 0 /* String */),
55341
+ generateParamConfigMetadata('contextId', false, 2 /* Body */, 0 /* String */, false, getRecordId18),
55342
55342
  generateParamConfigMetadata('fields', true, 2 /* Body */, 4 /* Unsupported */),
55343
55343
  ];
55344
55344
  const performUpdateRecordQuickAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, performUpdateRecordQuickAction_ConfigPropertyMetadata);
@@ -55387,7 +55387,8 @@ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
55387
55387
  if (process.env.NODE_ENV !== 'production') {
55388
55388
  validateConfig(untrustedConfig, configPropertyNames);
55389
55389
  }
55390
- const config = typeCheckConfig$d(untrustedConfig);
55390
+ const coercedConfig = coerceConfig$1(untrustedConfig, performUpdateRecordQuickAction_ConfigPropertyMetadata);
55391
+ const config = typeCheckConfig$d(coercedConfig);
55391
55392
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
55392
55393
  return null;
55393
55394
  }
@@ -55466,7 +55467,7 @@ const performQuickAction_ConfigPropertyMetadata = [
55466
55467
  generateParamConfigMetadata('actionApiName', true, 0 /* UrlParameter */, 0 /* String */),
55467
55468
  generateParamConfigMetadata('allowSaveOnDuplicate', false, 2 /* Body */, 1 /* Boolean */),
55468
55469
  generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
55469
- generateParamConfigMetadata('contextId', false, 2 /* Body */, 0 /* String */),
55470
+ generateParamConfigMetadata('contextId', false, 2 /* Body */, 0 /* String */, false, getRecordId18),
55470
55471
  generateParamConfigMetadata('fields', true, 2 /* Body */, 4 /* Unsupported */),
55471
55472
  ];
55472
55473
  const performQuickAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, performQuickAction_ConfigPropertyMetadata);
@@ -55515,7 +55516,8 @@ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
55515
55516
  if (process.env.NODE_ENV !== 'production') {
55516
55517
  validateConfig(untrustedConfig, configPropertyNames);
55517
55518
  }
55518
- const config = typeCheckConfig$c(untrustedConfig);
55519
+ const coercedConfig = coerceConfig$1(untrustedConfig, performQuickAction_ConfigPropertyMetadata);
55520
+ const config = typeCheckConfig$c(coercedConfig);
55519
55521
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
55520
55522
  return null;
55521
55523
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-uiapi",
3
- "version": "1.308.0",
3
+ "version": "1.310.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.308.0",
72
- "@salesforce/lds-default-luvio": "^1.308.0"
71
+ "@salesforce/lds-bindings": "^1.310.0",
72
+ "@salesforce/lds-default-luvio": "^1.310.0"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@databases/sqlite": "^3.0.0",
76
- "@salesforce/lds-compiler-plugins": "^1.308.0",
77
- "@salesforce/lds-jest": "^1.308.0",
78
- "@salesforce/lds-store-binary": "^1.308.0"
76
+ "@salesforce/lds-compiler-plugins": "^1.310.0",
77
+ "@salesforce/lds-jest": "^1.310.0",
78
+ "@salesforce/lds-store-binary": "^1.310.0"
79
79
  },
80
80
  "luvioBundlesize": [
81
81
  {
@@ -22244,4 +22244,4 @@ register({
22244
22244
  });
22245
22245
 
22246
22246
  export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
22247
- // version: 1.308.0-e148a73d6a
22247
+ // version: 1.310.0-51b4ab090c
package/sfdc/index.js CHANGED
@@ -8034,17 +8034,6 @@ function addListSummaryCollectionKey(objectApiName, recentLists, key) {
8034
8034
  }
8035
8035
  keys.add(key);
8036
8036
  }
8037
- function removeListRecordCollectionKeys(objectApiName, listViewApiName) {
8038
- const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName.toLowerCase()) || new Map();
8039
- cacheEntriesByObjectApiName.delete(listViewApiName.toLowerCase());
8040
- }
8041
- function removeListSummaryCollectionKeys(objectApiName, recentLists = undefined) {
8042
- const cacheEntriesByObjectApiName = listSummaryCollectionCache.get(objectApiName) || new Map();
8043
- cacheEntriesByObjectApiName.delete(recentLists ? 'true' : 'false');
8044
- if (recentLists === undefined) {
8045
- cacheEntriesByObjectApiName.delete('true');
8046
- }
8047
- }
8048
8037
  function splitListRecordCollectionKey(key) {
8049
8038
  const keyElements = key.split(':');
8050
8039
  return {
@@ -8321,14 +8310,22 @@ function listFields(luvio, { fields = [], optionalFields = [], sortBy, }, listIn
8321
8310
  function setupNotifyAllListRecordUpdateAvailable(luvio) {
8322
8311
  return (notifyInput) => {
8323
8312
  const keys = getListRecordCollectionKeys(notifyInput.objectApiName, notifyInput.listViewApiName);
8324
- removeListRecordCollectionKeys(notifyInput.objectApiName, notifyInput.listViewApiName);
8313
+ // W-16311716 - Bug is happening because we are removing keys from the cache when
8314
+ // the actual data has not changed. This causes a mismatch in this notifyAll cache
8315
+ // vs the actual LDS cache. Not removing these keys from the notifyAll cache has
8316
+ // no forseen drawbacks
8317
+ //removeListRecordCollectionKeys(notifyInput.objectApiName, notifyInput.listViewApiName);
8325
8318
  return luvio.notifyStoreUpdateAvailable(keys);
8326
8319
  };
8327
8320
  }
8328
8321
  function setupNotifyAllListInfoSummaryUpdateAvailable(luvio) {
8329
8322
  return (notifyInput) => {
8330
8323
  const keys = getListSummaryCollectionKeys(notifyInput.objectApiName, notifyInput.recentLists);
8331
- removeListSummaryCollectionKeys(notifyInput.objectApiName, notifyInput.recentLists);
8324
+ // W-16311716 - Bug is happening because we are removing keys from the cache when
8325
+ // the actual data has not changed. This causes a mismatch in this notifyAll cache
8326
+ // vs the actual LDS cache. Not removing these keys from the notifyAll cache has
8327
+ // no forseen drawbacks
8328
+ //removeListSummaryCollectionKeys(notifyInput.objectApiName, notifyInput.recentLists);
8332
8329
  return luvio.notifyStoreUpdateAvailable(keys);
8333
8330
  };
8334
8331
  }
@@ -33824,7 +33821,7 @@ const performUpdateRecordQuickAction_ConfigPropertyMetadata = [
33824
33821
  generateParamConfigMetadata('actionApiName', true, 0 /* UrlParameter */, 0 /* String */),
33825
33822
  generateParamConfigMetadata('allowSaveOnDuplicate', false, 2 /* Body */, 1 /* Boolean */),
33826
33823
  generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
33827
- generateParamConfigMetadata('contextId', false, 2 /* Body */, 0 /* String */),
33824
+ generateParamConfigMetadata('contextId', false, 2 /* Body */, 0 /* String */, false, getRecordId18),
33828
33825
  generateParamConfigMetadata('fields', true, 2 /* Body */, 4 /* Unsupported */),
33829
33826
  ];
33830
33827
  const performUpdateRecordQuickAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, performUpdateRecordQuickAction_ConfigPropertyMetadata);
@@ -33873,7 +33870,8 @@ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
33873
33870
  if (process.env.NODE_ENV !== 'production') {
33874
33871
  validateConfig(untrustedConfig, configPropertyNames);
33875
33872
  }
33876
- const config = typeCheckConfig$d(untrustedConfig);
33873
+ const coercedConfig = coerceConfig$1(untrustedConfig, performUpdateRecordQuickAction_ConfigPropertyMetadata);
33874
+ const config = typeCheckConfig$d(coercedConfig);
33877
33875
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
33878
33876
  return null;
33879
33877
  }
@@ -33952,7 +33950,7 @@ const performQuickAction_ConfigPropertyMetadata = [
33952
33950
  generateParamConfigMetadata('actionApiName', true, 0 /* UrlParameter */, 0 /* String */),
33953
33951
  generateParamConfigMetadata('allowSaveOnDuplicate', false, 2 /* Body */, 1 /* Boolean */),
33954
33952
  generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
33955
- generateParamConfigMetadata('contextId', false, 2 /* Body */, 0 /* String */),
33953
+ generateParamConfigMetadata('contextId', false, 2 /* Body */, 0 /* String */, false, getRecordId18),
33956
33954
  generateParamConfigMetadata('fields', true, 2 /* Body */, 4 /* Unsupported */),
33957
33955
  ];
33958
33956
  const performQuickAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, performQuickAction_ConfigPropertyMetadata);
@@ -34001,7 +33999,8 @@ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
34001
33999
  if (process.env.NODE_ENV !== 'production') {
34002
34000
  validateConfig(untrustedConfig, configPropertyNames);
34003
34001
  }
34004
- const config = typeCheckConfig$c(untrustedConfig);
34002
+ const coercedConfig = coerceConfig$1(untrustedConfig, performQuickAction_ConfigPropertyMetadata);
34003
+ const config = typeCheckConfig$c(coercedConfig);
34005
34004
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
34006
34005
  return null;
34007
34006
  }
@@ -38284,4 +38283,4 @@ withDefaultLuvio((luvio) => {
38284
38283
  });
38285
38284
 
38286
38285
  export { API_NAMESPACE, InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$J as ObjectInfoDirectoryEntryRepresentationType, RepresentationType$O as ObjectInfoRepresentationType, RECORD_FIELDS_KEY_JUNCTION, RECORD_ID_PREFIX, RECORD_REPRESENTATION_NAME, RECORD_VIEW_ENTITY_ID_PREFIX, RECORD_VIEW_ENTITY_REPRESENTATION_NAME, RepresentationType$V as RecordRepresentationRepresentationType, TTL$z as RecordRepresentationTTL, RepresentationType$V as RecordRepresentationType, VERSION$1e as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildRecordRepKeyFromId, getFieldApiNamesArray as coerceFieldIdArray, getObjectApiName$1 as coerceObjectId, getObjectApiNamesArray as coerceObjectIdArray, configurationForRestAdapters as configuration, createContentDocumentAndVersion, createContentVersion, createIngestRecordWithFields, createLDSAdapterWithPrediction, createListInfo, createRecord, createRelatedListAdapterWithPrediction, 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, getListInfoByNameAdapterFactory, getListInfoByName_imperative, getListInfosByName, getListInfosByName_imperative, getListInfosByObjectName, getListInfosByObjectNameAdapterFactory, getListInfosByObjectName_imperative, getListObjectInfo, getListObjectInfoAdapterFactory, getListObjectInfo_imperative, getListPreferences, getListPreferences_imperative, getListRecordsByName, factory$a as getListRecordsByNameAdapterFactory, 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, getPathLayout, getPathLayout_imperative, getPicklistValues, getPicklistValuesByRecordType, getPicklistValuesByRecordType_imperative, getPicklistValues_imperative, getQuickActionDefaults, getQuickActionDefaults_imperative, getQuickActionInfo, getQuickActionInfo_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, getRelatedListInfoBatchAdapterFactory, getRelatedListInfoBatch_imperative, getRelatedListInfo_imperative, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListPreferencesBatch_imperative, getRelatedListPreferences_imperative, getRelatedListRecordActions, getRelatedListRecordActions_imperative, getRelatedListRecords, getRelatedListRecordsAdapterFactory, getRelatedListRecordsBatch, getRelatedListRecordsBatchAdapterFactory, getRelatedListRecordsBatch_imperative, getRelatedListRecords_imperative, getRelatedListsActions, getRelatedListsActionsAdapterFactory, getRelatedListsActions_imperative, getRelatedListsCount, getRelatedListsCount_imperative, getRelatedListsInfo, getRelatedListsInfo_imperative, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadata, getSearchFilterMetadata_imperative, getSearchFilterOptions, getSearchFilterOptions_imperative, getSearchResults, getSearchResults_imperative, getTypeCacheKeys$X as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$H as ingestObjectInfo, ingest$B as ingestQuickActionExecutionRepresentation, ingest$O as ingestRecord, instrument, isStoreKeyRecordViewEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$D as keyBuilderFromTypeRecordRepresentation, keyBuilder$1Y as keyBuilderObjectInfo, keyBuilder$1R as keyBuilderQuickActionExecutionRepresentation, keyBuilder$29 as keyBuilderRecord, notifyAllListInfoSummaryUpdateAvailable, notifyAllListRecordUpdateAvailable, notifyListInfoSummaryUpdateAvailable, notifyListInfoUpdateAvailable, notifyListRecordCollectionUpdateAvailable, notifyListViewSummaryUpdateAvailable, notifyQuickActionDefaultsUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, registerPrefetcher, updateLayoutUserState, updateListInfoByName, updateListPreferences, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
38287
- // version: 1.308.0-e148a73d6a
38286
+ // version: 1.310.0-51b4ab090c
@@ -613,9 +613,13 @@ types:
613
613
  patch:
614
614
  (luvio.adapter):
615
615
  name: performUpdateRecordQuickAction
616
+ coercedParams:
617
+ contextId: SalesforceRecordId18
616
618
  post:
617
619
  (luvio.adapter):
618
620
  name: performQuickAction
621
+ coercedParams:
622
+ contextId: SalesforceRecordId18
619
623
 
620
624
  '/overrides/{objectApiName}':
621
625
  uriParameters:
@@ -1673,4 +1673,4 @@ input Analytics__AnalyticsFilter {
1673
1673
 
1674
1674
  directive @generic on OBJECT | INTERFACE | UNION | ENUM | INPUT_OBJECT
1675
1675
  directive @fieldCategory on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
1676
- directive @category on FIELD
1676
+ directive @category(name: String!) on FIELD