@salesforce/lds-adapters-uiapi 1.380.0-dev7 → 1.380.0-dev9

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.
@@ -1,5 +1,11 @@
1
1
  declare let graphql: any;
2
+ declare let graphql_deprecated: any;
3
+ declare let graphql_onestore: any;
2
4
  declare let graphqlBatch: any;
3
5
  declare let graphql_imperative: any;
6
+ declare let graphql_imperative_deprecated: any;
7
+ declare let graphql_imperative_onestore: any;
4
8
  declare let graphqlBatch_imperative: any;
5
- export { graphql, graphqlBatch, graphql_imperative, graphqlBatch_imperative };
9
+ declare let refreshGraphQL: (data: any) => any;
10
+ declare let refreshGraphQL_deprecated: (data: any) => any;
11
+ export { graphql, graphqlBatch, graphql_imperative, graphqlBatch_imperative, refreshGraphQL, refreshGraphQL_deprecated, graphql_deprecated, graphql_imperative_deprecated, graphql_onestore, graphql_imperative_onestore, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-uiapi",
3
- "version": "1.380.0-dev7",
3
+ "version": "1.380.0-dev9",
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",
@@ -69,14 +69,14 @@
69
69
  },
70
70
  "dependencies": {
71
71
  "@luvio/graphql-parser": "0.158.7",
72
- "@salesforce/lds-adapters-onestore-graphql": "^1.380.0-dev7",
73
- "@salesforce/lds-bindings": "^1.380.0-dev7",
74
- "@salesforce/lds-default-luvio": "^1.380.0-dev7"
72
+ "@salesforce/lds-adapters-onestore-graphql": "^1.380.0-dev9",
73
+ "@salesforce/lds-bindings": "^1.380.0-dev9",
74
+ "@salesforce/lds-default-luvio": "^1.380.0-dev9"
75
75
  },
76
76
  "devDependencies": {
77
- "@salesforce/lds-compiler-plugins": "^1.380.0-dev7",
78
- "@salesforce/lds-jest": "^1.380.0-dev7",
79
- "@salesforce/lds-store-binary": "^1.380.0-dev7"
77
+ "@salesforce/lds-compiler-plugins": "^1.380.0-dev9",
78
+ "@salesforce/lds-jest": "^1.380.0-dev9",
79
+ "@salesforce/lds-store-binary": "^1.380.0-dev9"
80
80
  },
81
81
  "luvioBundlesize": [
82
82
  {
@@ -25694,11 +25694,20 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
25694
25694
  return cacheSnapshot;
25695
25695
  }
25696
25696
 
25697
+ // Wire Adapters
25697
25698
  let graphql;
25699
+ let graphql_deprecated;
25700
+ let graphql_onestore;
25698
25701
  let graphqlBatch;
25699
25702
  // Imperative GET Adapters
25700
25703
  let graphql_imperative;
25704
+ let graphql_imperative_deprecated;
25705
+ let graphql_imperative_onestore;
25701
25706
  let graphqlBatch_imperative;
25707
+ let refreshGraphQL$1 = (data) => {
25708
+ return refresh(data, 'refreshUiApi');
25709
+ };
25710
+ let refreshGraphQL_deprecated = refreshGraphQL$1;
25702
25711
  // Adapter Metadata
25703
25712
  const graphqlMetadata = { apiFamily: keyPrefix, name: 'graphql', ttl: 900000 };
25704
25713
  const graphqlBatchMetadata = { apiFamily: keyPrefix, name: 'graphqlBatch' };
@@ -25718,13 +25727,26 @@ function bindExportsTo(luvio) {
25718
25727
  }
25719
25728
  withDefaultLuvio((luvio) => {
25720
25729
  ({ graphql, graphqlBatch, graphql_imperative, graphqlBatch_imperative } = bindExportsTo(luvio));
25730
+ graphql_deprecated = graphql;
25731
+ graphql_imperative_deprecated = graphql_imperative;
25721
25732
  // We register the callback here rather than above withDefaultLuvio because we want environments
25722
25733
  // that don't have onestore bootstrapped with the required services to default to the luvio versions of the adapters
25723
- registerCallback((oneStoreGraphql, oneStoreGraphql_imperative, useOneStoreGraphQL) => {
25734
+ registerCallback((oneStoreGraphql, oneStoreGraphql_imperative, oneStoreGraphql_imperative_legacy, useOneStoreGraphQL) => {
25724
25735
  if (useOneStoreGraphQL) {
25725
25736
  graphql = oneStoreGraphql;
25726
- graphql_imperative = oneStoreGraphql_imperative;
25737
+ graphql_imperative = oneStoreGraphql_imperative_legacy;
25738
+ refreshGraphQL$1 = (data) => {
25739
+ if (data?.data === undefined && data?.errors === undefined) {
25740
+ return Promise.resolve();
25741
+ }
25742
+ if (typeof data?.refresh === 'function') {
25743
+ return data.refresh();
25744
+ }
25745
+ throw new Error('Component attempted to refresh a GraphQL result that is not refreshable');
25746
+ };
25727
25747
  }
25748
+ graphql_onestore = oneStoreGraphql;
25749
+ graphql_imperative_onestore = oneStoreGraphql_imperative;
25728
25750
  });
25729
25751
  });
25730
25752
 
@@ -26244,5 +26266,5 @@ function refreshGraphQL(data) {
26244
26266
  return refresh(data, 'refreshUiApi');
26245
26267
  }
26246
26268
 
26247
- export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative, refreshGraphQL };
26248
- // version: 1.380.0-dev7-9c2ae6143e
26269
+ export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_deprecated, graphql_imperative, graphql_imperative_deprecated, graphql_imperative_onestore, graphql_onestore, refreshGraphQL, refreshGraphQL_deprecated };
26270
+ // version: 1.380.0-dev9-476a6580cf
package/sfdc/index.js CHANGED
@@ -39030,4 +39030,4 @@ withDefaultLuvio((luvio) => {
39030
39030
  });
39031
39031
 
39032
39032
  export { API_NAMESPACE, VERSION$1i as FieldValueRepresentationVersion, 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$1g 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, createRelatedListPlusAdapterWithPrediction, 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, getRecordId18Array, getRecordIngestionOverride, getRecordNotifyChange, getRecordTemplateClone, getRecordTemplateClone_imperative, getRecordTemplateCreate, getRecordTemplateCreate_imperative, getRecordUi, getRecordUi_imperative, getRecord_imperative, getRecords, getRecordsAdapterFactory, getRecords_imperative, getRelatedListActions, getRelatedListActionsAdapterFactory, getRelatedListActions_imperative, getRelatedListCount, getRelatedListCount_imperative, getRelatedListInfo, getRelatedListInfoAdapterFactory, 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, getRelatedListsInfoAdapterFactory, 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, isSupportedEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$E 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 };
39033
- // version: 1.380.0-dev7-9c2ae6143e
39033
+ // version: 1.380.0-dev9-476a6580cf