@salesforce/lds-adapters-uiapi 1.382.0 → 1.384.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.
|
@@ -8,5 +8,4 @@ export type Registration = {
|
|
|
8
8
|
instrument: Instrument;
|
|
9
9
|
};
|
|
10
10
|
export { ConfigurationForGraphQLAdapters as Configuration, configurationForGraphQLAdapters as configuration, };
|
|
11
|
-
export declare function refreshGraphQL(data: any): any;
|
|
12
11
|
export { graphqlAdapterFactory } from './main';
|
|
@@ -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
|
-
|
|
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.
|
|
3
|
+
"version": "1.384.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",
|
|
@@ -69,14 +69,14 @@
|
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@luvio/graphql-parser": "0.158.7",
|
|
72
|
-
"@salesforce/lds-adapters-onestore-graphql": "^1.
|
|
73
|
-
"@salesforce/lds-bindings": "^1.
|
|
74
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
72
|
+
"@salesforce/lds-adapters-onestore-graphql": "^1.384.0",
|
|
73
|
+
"@salesforce/lds-bindings": "^1.384.0",
|
|
74
|
+
"@salesforce/lds-default-luvio": "^1.384.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
78
|
-
"@salesforce/lds-jest": "^1.
|
|
79
|
-
"@salesforce/lds-store-binary": "^1.
|
|
77
|
+
"@salesforce/lds-compiler-plugins": "^1.384.0",
|
|
78
|
+
"@salesforce/lds-jest": "^1.384.0",
|
|
79
|
+
"@salesforce/lds-store-binary": "^1.384.0"
|
|
80
80
|
},
|
|
81
81
|
"luvioBundlesize": [
|
|
82
82
|
{
|
package/sfdc/graphqlAdapters.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { register, withDefaultLuvio } from 'force/ldsEngine';
|
|
16
16
|
import { print, visit, parse, astResolver } from 'force/ldsGraphqlParser';
|
|
17
|
-
import { createInstrumentedAdapter, createLDSAdapter, createGraphQLWireAdapterConstructor, createGraphQLImperativeAdapter
|
|
17
|
+
import { refresh, createInstrumentedAdapter, createLDSAdapter, createGraphQLWireAdapterConstructor, createGraphQLImperativeAdapter } from 'force/ldsBindings';
|
|
18
18
|
import { registerCallback } from 'force/ldsAdaptersOnestoreGraphql';
|
|
19
19
|
import { serializeStructuredKey, resolveLink, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, StoreKeyMap, createResourceParams as createResourceParams$2, StoreKeySet } from 'force/luvioEngine';
|
|
20
20
|
import { getRequestedFieldsForType, buildFieldState, buildQueryTypeStringKey, serializeFieldArguments, deepMerge, getOperationFromDocument, createFragmentMap, applyMinimumFieldsToDocument } from 'force/luvioGraphql';
|
|
@@ -25530,11 +25530,20 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
25530
25530
|
return cacheSnapshot;
|
|
25531
25531
|
}
|
|
25532
25532
|
|
|
25533
|
+
// Wire Adapters
|
|
25533
25534
|
let graphql;
|
|
25535
|
+
let graphql_deprecated;
|
|
25536
|
+
let graphql_onestore;
|
|
25534
25537
|
let graphqlBatch;
|
|
25535
25538
|
// Imperative GET Adapters
|
|
25536
25539
|
let graphql_imperative;
|
|
25540
|
+
let graphql_imperative_deprecated;
|
|
25541
|
+
let graphql_imperative_onestore;
|
|
25537
25542
|
let graphqlBatch_imperative;
|
|
25543
|
+
let refreshGraphQL = (data) => {
|
|
25544
|
+
return refresh(data, 'refreshUiApi');
|
|
25545
|
+
};
|
|
25546
|
+
let refreshGraphQL_deprecated = refreshGraphQL;
|
|
25538
25547
|
// Adapter Metadata
|
|
25539
25548
|
const graphqlMetadata = { apiFamily: keyPrefix, name: 'graphql', ttl: 900000 };
|
|
25540
25549
|
const graphqlBatchMetadata = { apiFamily: keyPrefix, name: 'graphqlBatch' };
|
|
@@ -25554,13 +25563,23 @@ function bindExportsTo(luvio) {
|
|
|
25554
25563
|
}
|
|
25555
25564
|
withDefaultLuvio((luvio) => {
|
|
25556
25565
|
({ graphql, graphqlBatch, graphql_imperative, graphqlBatch_imperative } = bindExportsTo(luvio));
|
|
25566
|
+
graphql_deprecated = graphql;
|
|
25567
|
+
graphql_imperative_deprecated = graphql_imperative;
|
|
25557
25568
|
// We register the callback here rather than above withDefaultLuvio because we want environments
|
|
25558
25569
|
// that don't have onestore bootstrapped with the required services to default to the luvio versions of the adapters
|
|
25559
|
-
registerCallback((oneStoreGraphql, oneStoreGraphql_imperative, useOneStoreGraphQL) => {
|
|
25570
|
+
registerCallback((oneStoreGraphql, oneStoreGraphql_imperative, oneStoreGraphql_imperative_legacy, useOneStoreGraphQL) => {
|
|
25560
25571
|
if (useOneStoreGraphQL) {
|
|
25561
25572
|
graphql = oneStoreGraphql;
|
|
25562
|
-
graphql_imperative =
|
|
25573
|
+
graphql_imperative = oneStoreGraphql_imperative_legacy;
|
|
25574
|
+
refreshGraphQL = (data) => {
|
|
25575
|
+
if (typeof data?.refresh === 'function') {
|
|
25576
|
+
return data.refresh();
|
|
25577
|
+
}
|
|
25578
|
+
throw new Error('Component attempted to refresh a GraphQL result that is not refreshable');
|
|
25579
|
+
};
|
|
25563
25580
|
}
|
|
25581
|
+
graphql_onestore = oneStoreGraphql;
|
|
25582
|
+
graphql_imperative_onestore = oneStoreGraphql_imperative;
|
|
25564
25583
|
});
|
|
25565
25584
|
});
|
|
25566
25585
|
|
|
@@ -26072,13 +26091,6 @@ register({
|
|
|
26072
26091
|
configuration: { ...configurationForGraphQLAdapters },
|
|
26073
26092
|
instrument,
|
|
26074
26093
|
});
|
|
26075
|
-
function refreshGraphQL(data) {
|
|
26076
|
-
// If OneStore data, call its refresh instead
|
|
26077
|
-
if (typeof data?.refresh === 'function') {
|
|
26078
|
-
return data.refresh();
|
|
26079
|
-
}
|
|
26080
|
-
return refresh(data, 'refreshUiApi');
|
|
26081
|
-
}
|
|
26082
26094
|
|
|
26083
|
-
export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative, refreshGraphQL };
|
|
26084
|
-
// version: 1.
|
|
26095
|
+
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 };
|
|
26096
|
+
// version: 1.384.0-835fd13f44
|
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.
|
|
39033
|
+
// version: 1.384.0-835fd13f44
|