@salesforce/lds-adapters-uiapi 1.287.0-dev1 → 1.287.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.
- package/dist/es/es2018/types/src/configuration.d.ts +2 -0
- package/dist/es/es2018/types/src/graphql-artifacts/types/Setup__SetupQuery/getFieldType.d.ts +5 -0
- package/dist/es/es2018/types/src/main.d.ts +2 -0
- package/dist/es/es2018/types/src/predictive-loading/registry.d.ts +1 -0
- package/dist/es/es2018/uiapi-records-service.js +44 -19
- package/package.json +6 -6
- package/sfdc/graphqlAdapters.js +34 -19
- package/sfdc/index.js +26 -6
|
@@ -55,6 +55,8 @@ export declare const configurationForRestAdapters: {
|
|
|
55
55
|
getDraftAwareDeleteRecordAdapter: () => DraftAwareDeleteRecordAdapter | undefined;
|
|
56
56
|
setDraftAwareCreateContentDocumentAndVersionAdapter: (adapter: DraftAwareCreateContentDocumentAndVersionAdapter) => void;
|
|
57
57
|
getDraftAwareCreateContentDocumentAndVersionAdapter: () => DraftAwareCreateContentDocumentAndVersionAdapter | undefined;
|
|
58
|
+
setRelatedListsPredictionsEnabled: (f: boolean) => void;
|
|
59
|
+
areRelatedListsPredictionsEnabled: () => boolean;
|
|
58
60
|
setDraftAwareCreateContentVersionAdapter: (adapter: DraftAwareCreateContentVersionAdapter) => void;
|
|
59
61
|
getDraftAwareCreateContentVersionAdapter: () => DraftAwareCreateContentVersionAdapter | undefined;
|
|
60
62
|
};
|
|
@@ -103,6 +103,8 @@ export declare const configuration: {
|
|
|
103
103
|
getDraftAwareDeleteRecordAdapter: () => import("./wire/deleteRecord/configurationTypes").DraftAwareDeleteRecordAdapter | undefined;
|
|
104
104
|
setDraftAwareCreateContentDocumentAndVersionAdapter: (adapter: import("./wire/createContentDocumentAndVersion/configurationTypes").DraftAwareCreateContentDocumentAndVersionAdapter) => void;
|
|
105
105
|
getDraftAwareCreateContentDocumentAndVersionAdapter: () => import("./wire/createContentDocumentAndVersion/configurationTypes").DraftAwareCreateContentDocumentAndVersionAdapter | undefined;
|
|
106
|
+
setRelatedListsPredictionsEnabled: (f: boolean) => void;
|
|
107
|
+
areRelatedListsPredictionsEnabled: () => boolean;
|
|
106
108
|
setDraftAwareCreateContentVersionAdapter: (adapter: import("./wire/createContentVersion/configurationTypes").DraftAwareCreateContentVersionAdapter) => void;
|
|
107
109
|
getDraftAwareCreateContentVersionAdapter: () => import("./wire/createContentVersion/configurationTypes").DraftAwareCreateContentVersionAdapter | undefined;
|
|
108
110
|
};
|
|
@@ -4,4 +4,5 @@ interface Prefetcher {
|
|
|
4
4
|
}
|
|
5
5
|
export declare function registerPrefetcher(luvio: Luvio, prefetcher: Prefetcher): void;
|
|
6
6
|
export declare function createLDSAdapterWithPrediction<C, D>(adapter: Adapter<C, D>, luvio: Luvio, name: string): Adapter<C, D>;
|
|
7
|
+
export declare function createRelatedListAdapterWithPrediction<C, D>(adapter: Adapter<C, D>, luvio: Luvio, name: string): Adapter<C, D>;
|
|
7
8
|
export {};
|
|
@@ -74,6 +74,10 @@ let oneStoreGetObjectInfoAdapter = undefined;
|
|
|
74
74
|
* One store enabled Get Object Infos adapter
|
|
75
75
|
*/
|
|
76
76
|
let oneStoreGetObjectInfosAdapter = undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Determines when to include PDL strategies for Related Lists
|
|
79
|
+
*/
|
|
80
|
+
let relatedListsPredictionsEnabled = false;
|
|
77
81
|
/**
|
|
78
82
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
79
83
|
* Configuration for one store enabled REST adapters only.
|
|
@@ -149,6 +153,12 @@ const configurationForRestAdapters = {
|
|
|
149
153
|
getDraftAwareCreateContentDocumentAndVersionAdapter: function () {
|
|
150
154
|
return draftAwareCreateContentDocumentAndVersionAdapter;
|
|
151
155
|
},
|
|
156
|
+
setRelatedListsPredictionsEnabled: function (f) {
|
|
157
|
+
relatedListsPredictionsEnabled = f;
|
|
158
|
+
},
|
|
159
|
+
areRelatedListsPredictionsEnabled: function () {
|
|
160
|
+
return relatedListsPredictionsEnabled === true;
|
|
161
|
+
},
|
|
152
162
|
// createContentVersion
|
|
153
163
|
setDraftAwareCreateContentVersionAdapter: function (adapter) {
|
|
154
164
|
draftAwareCreateContentVersionAdapter = adapter;
|
|
@@ -273,6 +283,16 @@ function createLDSAdapterWithPrediction(adapter, luvio, name) {
|
|
|
273
283
|
return result;
|
|
274
284
|
};
|
|
275
285
|
}
|
|
286
|
+
function createRelatedListAdapterWithPrediction(adapter, luvio, name) {
|
|
287
|
+
if (configurationForRestAdapters.areRelatedListsPredictionsEnabled() /* gate is open */) {
|
|
288
|
+
return createLDSAdapterWithPrediction(adapter, luvio, name);
|
|
289
|
+
}
|
|
290
|
+
else {
|
|
291
|
+
return (config, requestContext) => {
|
|
292
|
+
return adapter(config, requestContext);
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
}
|
|
276
296
|
|
|
277
297
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
278
298
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -48361,6 +48381,29 @@ function getInContextFragmentType$d(fragment, fragmentMap) {
|
|
|
48361
48381
|
return sharedGetFragmentType(fragment, fragmentMap);
|
|
48362
48382
|
}
|
|
48363
48383
|
|
|
48384
|
+
function getFieldType$b(field) {
|
|
48385
|
+
const fieldName = field.name.value;
|
|
48386
|
+
switch (fieldName) {
|
|
48387
|
+
case '__typename': {
|
|
48388
|
+
return {
|
|
48389
|
+
isArray: false,
|
|
48390
|
+
typename: 'String',
|
|
48391
|
+
};
|
|
48392
|
+
}
|
|
48393
|
+
/*
|
|
48394
|
+
Probably should use metaschema like the RecordQuery graphql-artifact,
|
|
48395
|
+
but this type only has one generic type possible. Also, the most likely scenario for future schema additions,
|
|
48396
|
+
is UISDK adding the the parent of this type, Setup__Setup. Therefore, we will just default to SetupConnection so that
|
|
48397
|
+
query authors don't need to use metaschema when there's no real decision point in this type.
|
|
48398
|
+
*/
|
|
48399
|
+
default:
|
|
48400
|
+
return {
|
|
48401
|
+
isArray: false,
|
|
48402
|
+
typename: 'Setup__SetupConnection',
|
|
48403
|
+
};
|
|
48404
|
+
}
|
|
48405
|
+
}
|
|
48406
|
+
|
|
48364
48407
|
const name$2 = 'Setup__SetupQuery';
|
|
48365
48408
|
const VERSION$e = 'b89cccb5fa5e458d89dc1137af3e5469';
|
|
48366
48409
|
function keyBuilder$g(luvio, path, data) {
|
|
@@ -48478,24 +48521,6 @@ function getTypeCacheKeys$b(cacheKeySink, astNode, state) {
|
|
|
48478
48521
|
}
|
|
48479
48522
|
// Deal with mapped types' cache keys
|
|
48480
48523
|
}
|
|
48481
|
-
function getFieldType$b(field) {
|
|
48482
|
-
switch (field.name.value) {
|
|
48483
|
-
case '__typename': {
|
|
48484
|
-
return {
|
|
48485
|
-
isArray: false,
|
|
48486
|
-
typename: 'String'
|
|
48487
|
-
};
|
|
48488
|
-
}
|
|
48489
|
-
case 'recordQuery': {
|
|
48490
|
-
return {
|
|
48491
|
-
isArray: false,
|
|
48492
|
-
typename: 'Setup__SetupConnection'
|
|
48493
|
-
};
|
|
48494
|
-
}
|
|
48495
|
-
default:
|
|
48496
|
-
return undefined;
|
|
48497
|
-
}
|
|
48498
|
-
}
|
|
48499
48524
|
function ingestFieldByType$2(typename, parentKey, requestedField, sink, fieldKey, fieldData, state) {
|
|
48500
48525
|
// TODO: add validation logic to only allow nullable fields to be null in the future
|
|
48501
48526
|
if (fieldData === null) {
|
|
@@ -55692,4 +55717,4 @@ ensureRegisteredOnce({
|
|
|
55692
55717
|
instrument,
|
|
55693
55718
|
});
|
|
55694
55719
|
|
|
55695
|
-
export { API_NAMESPACE, notifyChangeFactory as GetRecordNotifyChange, InMemoryRecordRepresentationQueryEvaluator, MRU, notifyUpdateAvailableFactory$3 as NotifyListInfoSummaryUpdateAvailable, notifyUpdateAvailableFactory$1 as NotifyListInfoUpdateAvailable, notifyUpdateAvailableFactory$4 as NotifyListRecordCollectionUpdateAvailable, notifyUpdateAvailableFactory$2 as NotifyListViewSummaryUpdateAvailable, notifyUpdateAvailableFactory as NotifyQuickActionDefaultsUpdateAvailable, notifyUpdateAvailableFactory$5 as NotifyRecordUpdateAvailable, RepresentationType$N as ObjectInfoDirectoryEntryRepresentationType, RepresentationType$S as ObjectInfoRepresentationType, RECORD_FIELDS_KEY_JUNCTION, RECORD_ID_PREFIX, RECORD_REPRESENTATION_NAME, RECORD_VIEW_ENTITY_ID_PREFIX, RECORD_VIEW_ENTITY_REPRESENTATION_NAME, RepresentationType$Z as RecordRepresentationRepresentationType, TTL$E as RecordRepresentationTTL, RepresentationType$Z as RecordRepresentationType, VERSION$2o as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildRecordRepKeyFromId, buildSelectionFromFields, buildSelectionFromRecord, getFieldApiNamesArray as coerceFieldIdArray, getObjectApiName$1 as coerceObjectId, getObjectApiNamesArray as coerceObjectIdArray, configuration, factory$1 as createContentDocumentAndVersionAdapterFactory, factory as createContentVersionAdapterFactory, createIngestRecordWithFields, createLDSAdapterWithPrediction, createListInfoAdapterFactory, factory$4 as createRecordAdapterFactory, createRecordInputFilteredByEditedFields, deleteListInfoAdapterFactory, factory$3 as deleteRecordAdapterFactory, factory$f as executeBatchRecordOperationsAdapterFactory, extractRecordIdFromStoreKey, generateRecordInputForCreate, generateRecordInputForUpdate, getActionOverridesAdapterFactory, getAllAppsAdapterFactory, getAppDetailsAdapterFactory, getDuplicateConfigurationAdapterFactory, getDuplicatesAdapterFactory, getFieldDisplayValue$1 as getFieldDisplayValue, getFieldValue, getFlexipageFormulaOverridesAdapterFactory, getGlobalActionsAdapterFactory, getKeywordSearchResultsAdapterFactory, getLayoutAdapterFactory, getLayoutUserStateAdapterFactory, getListInfoByNameAdapterFactory, getListInfosByNameAdapterFactory, getListInfosByObjectNameAdapterFactory, getListObjectInfoAdapterFactory, getListPreferencesAdapterFactory, factory$a as getListRecordsByNameAdapterFactory, factory$j as getListUiAdapterFactory, getListUiByApiNameAdapterFactory, getListUiByListViewIdAdapterFactory, getListViewSummaryCollectionAdapterFactory, getLookupActionsAdapterFactory, getLookupMetadataAdapterFactory, factory$9 as getLookupRecordsAdapterFactory, factory$k as getMruListUiAdapterFactory, getNavItemsAdapterFactory, getObjectCreateActionsAdapterFactory, getObjectInfoAdapterFactory, getObjectInfoDirectoryAdapterFactory, getObjectInfosAdapterFactory, getPathLayoutAdapterFactory, getPicklistValuesAdapterFactory, getPicklistValuesByRecordTypeAdapterFactory, getQuickActionDefaultsAdapterFactory, getQuickActionLayoutAdapterFactory, getRecordActionsAdapterFactory, factory$h as getRecordAdapterFactory, getRecordAvatarsAdapterFactory, factory$7 as getRecordCreateDefaultsAdapterFactory, getRecordEditActionsAdapterFactory, getRecordId18, getRecordInput, createFieldsIngestSuccess$3 as getRecordResourceIngest, factory$6 as getRecordTemplateCloneAdapterFactory, factory$5 as getRecordTemplateCreateAdapterFactory, factory$i as getRecordUiAdapterFactory, getRecordsAdapterFactory, getRelatedListActionsAdapterFactory, getRelatedListCountAdapterFactory, getRelatedListInfoAdapterFactory, getRelatedListInfoBatchAdapterFactory, getRelatedListPreferencesAdapterFactory, getRelatedListPreferencesBatchAdapterFactory, getRelatedListRecordActionsAdapterFactory, getRelatedListRecordsAdapterFactory, getRelatedListRecordsBatchAdapterFactory, getRelatedListsActionsAdapterFactory, getRelatedListsCountAdapterFactory, getRelatedListsInfoAdapterFactory, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadataAdapterFactory, getSearchFilterOptionsAdapterFactory, getSearchResultsAdapterFactory, getSelectedAppAdapterFactory, getTypeCacheKeys$24 as getTypeCacheKeysRecord, factory$e as graphqlAdapterFactory, factory$g as graphqlBatchAdapterFactory, ingest$4 as ingestContentDocumentCompositeRepresentation, ingest$1D as ingestDuplicateConfiguration, ingest$1x as ingestDuplicatesRepresentation, ingest$22 as ingestListInfo, ingest$1_ as ingestListRecords, ingest$1U as ingestObjectInfo, ingest$1O as ingestQuickActionExecutionRepresentation, ingest$1$ as ingestRecord, ingest$1R as ingestRecordUi, ingest$1p as ingestRelatedListInfo, ingest$2 as ingestRelatedListInfoBatch, ingest$1m as ingestRelatedListRecords, ingest as ingestRelatedListRecordsBatch, ingest$1o as ingestRelatedListSummaryInfoCollection, ingest$7 as ingestUiApiGraphql, instrument, isStoreKeyRecordViewEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$C as keyBuilderFromTypeRecordRepresentation, keyBuilder$36 as keyBuilderObjectInfo, keyBuilder$2$ as keyBuilderQuickActionExecutionRepresentation, keyBuilder$3n as keyBuilderRecord, factory$c as performQuickActionAdapterFactory, factory$d as performUpdateRecordQuickActionAdapterFactory, registerPrefetcher, untrustedIsObject, factory$b as updateLayoutUserStateAdapterFactory, updateListInfoByNameAdapterFactory, updateListPreferencesAdapterFactory, factory$2 as updateRecordAdapterFactory, factory$8 as updateRecordAvatarAdapterFactory, updateRelatedListInfoAdapterFactory, updateRelatedListPreferencesAdapterFactory };
|
|
55720
|
+
export { API_NAMESPACE, notifyChangeFactory as GetRecordNotifyChange, InMemoryRecordRepresentationQueryEvaluator, MRU, notifyUpdateAvailableFactory$3 as NotifyListInfoSummaryUpdateAvailable, notifyUpdateAvailableFactory$1 as NotifyListInfoUpdateAvailable, notifyUpdateAvailableFactory$4 as NotifyListRecordCollectionUpdateAvailable, notifyUpdateAvailableFactory$2 as NotifyListViewSummaryUpdateAvailable, notifyUpdateAvailableFactory as NotifyQuickActionDefaultsUpdateAvailable, notifyUpdateAvailableFactory$5 as NotifyRecordUpdateAvailable, RepresentationType$N as ObjectInfoDirectoryEntryRepresentationType, RepresentationType$S as ObjectInfoRepresentationType, RECORD_FIELDS_KEY_JUNCTION, RECORD_ID_PREFIX, RECORD_REPRESENTATION_NAME, RECORD_VIEW_ENTITY_ID_PREFIX, RECORD_VIEW_ENTITY_REPRESENTATION_NAME, RepresentationType$Z as RecordRepresentationRepresentationType, TTL$E as RecordRepresentationTTL, RepresentationType$Z as RecordRepresentationType, VERSION$2o as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildRecordRepKeyFromId, buildSelectionFromFields, buildSelectionFromRecord, getFieldApiNamesArray as coerceFieldIdArray, getObjectApiName$1 as coerceObjectId, getObjectApiNamesArray as coerceObjectIdArray, configuration, factory$1 as createContentDocumentAndVersionAdapterFactory, factory as createContentVersionAdapterFactory, createIngestRecordWithFields, createLDSAdapterWithPrediction, createListInfoAdapterFactory, factory$4 as createRecordAdapterFactory, createRecordInputFilteredByEditedFields, createRelatedListAdapterWithPrediction, deleteListInfoAdapterFactory, factory$3 as deleteRecordAdapterFactory, factory$f as executeBatchRecordOperationsAdapterFactory, extractRecordIdFromStoreKey, generateRecordInputForCreate, generateRecordInputForUpdate, getActionOverridesAdapterFactory, getAllAppsAdapterFactory, getAppDetailsAdapterFactory, getDuplicateConfigurationAdapterFactory, getDuplicatesAdapterFactory, getFieldDisplayValue$1 as getFieldDisplayValue, getFieldValue, getFlexipageFormulaOverridesAdapterFactory, getGlobalActionsAdapterFactory, getKeywordSearchResultsAdapterFactory, getLayoutAdapterFactory, getLayoutUserStateAdapterFactory, getListInfoByNameAdapterFactory, getListInfosByNameAdapterFactory, getListInfosByObjectNameAdapterFactory, getListObjectInfoAdapterFactory, getListPreferencesAdapterFactory, factory$a as getListRecordsByNameAdapterFactory, factory$j as getListUiAdapterFactory, getListUiByApiNameAdapterFactory, getListUiByListViewIdAdapterFactory, getListViewSummaryCollectionAdapterFactory, getLookupActionsAdapterFactory, getLookupMetadataAdapterFactory, factory$9 as getLookupRecordsAdapterFactory, factory$k as getMruListUiAdapterFactory, getNavItemsAdapterFactory, getObjectCreateActionsAdapterFactory, getObjectInfoAdapterFactory, getObjectInfoDirectoryAdapterFactory, getObjectInfosAdapterFactory, getPathLayoutAdapterFactory, getPicklistValuesAdapterFactory, getPicklistValuesByRecordTypeAdapterFactory, getQuickActionDefaultsAdapterFactory, getQuickActionLayoutAdapterFactory, getRecordActionsAdapterFactory, factory$h as getRecordAdapterFactory, getRecordAvatarsAdapterFactory, factory$7 as getRecordCreateDefaultsAdapterFactory, getRecordEditActionsAdapterFactory, getRecordId18, getRecordInput, createFieldsIngestSuccess$3 as getRecordResourceIngest, factory$6 as getRecordTemplateCloneAdapterFactory, factory$5 as getRecordTemplateCreateAdapterFactory, factory$i as getRecordUiAdapterFactory, getRecordsAdapterFactory, getRelatedListActionsAdapterFactory, getRelatedListCountAdapterFactory, getRelatedListInfoAdapterFactory, getRelatedListInfoBatchAdapterFactory, getRelatedListPreferencesAdapterFactory, getRelatedListPreferencesBatchAdapterFactory, getRelatedListRecordActionsAdapterFactory, getRelatedListRecordsAdapterFactory, getRelatedListRecordsBatchAdapterFactory, getRelatedListsActionsAdapterFactory, getRelatedListsCountAdapterFactory, getRelatedListsInfoAdapterFactory, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadataAdapterFactory, getSearchFilterOptionsAdapterFactory, getSearchResultsAdapterFactory, getSelectedAppAdapterFactory, getTypeCacheKeys$24 as getTypeCacheKeysRecord, factory$e as graphqlAdapterFactory, factory$g as graphqlBatchAdapterFactory, ingest$4 as ingestContentDocumentCompositeRepresentation, ingest$1D as ingestDuplicateConfiguration, ingest$1x as ingestDuplicatesRepresentation, ingest$22 as ingestListInfo, ingest$1_ as ingestListRecords, ingest$1U as ingestObjectInfo, ingest$1O as ingestQuickActionExecutionRepresentation, ingest$1$ as ingestRecord, ingest$1R as ingestRecordUi, ingest$1p as ingestRelatedListInfo, ingest$2 as ingestRelatedListInfoBatch, ingest$1m as ingestRelatedListRecords, ingest as ingestRelatedListRecordsBatch, ingest$1o as ingestRelatedListSummaryInfoCollection, ingest$7 as ingestUiApiGraphql, instrument, isStoreKeyRecordViewEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$C as keyBuilderFromTypeRecordRepresentation, keyBuilder$36 as keyBuilderObjectInfo, keyBuilder$2$ as keyBuilderQuickActionExecutionRepresentation, keyBuilder$3n as keyBuilderRecord, factory$c as performQuickActionAdapterFactory, factory$d as performUpdateRecordQuickActionAdapterFactory, registerPrefetcher, untrustedIsObject, factory$b as updateLayoutUserStateAdapterFactory, updateListInfoByNameAdapterFactory, updateListPreferencesAdapterFactory, factory$2 as updateRecordAdapterFactory, factory$8 as updateRecordAvatarAdapterFactory, updateRelatedListInfoAdapterFactory, updateRelatedListPreferencesAdapterFactory };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-uiapi",
|
|
3
|
-
"version": "1.287.0-
|
|
3
|
+
"version": "1.287.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,14 +68,14 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@salesforce/lds-bindings": "^1.287.0-
|
|
72
|
-
"@salesforce/lds-default-luvio": "^1.287.0-
|
|
71
|
+
"@salesforce/lds-bindings": "^1.287.0-dev3",
|
|
72
|
+
"@salesforce/lds-default-luvio": "^1.287.0-dev3"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@databases/sqlite": "^3.0.0",
|
|
76
|
-
"@salesforce/lds-compiler-plugins": "^1.287.0-
|
|
77
|
-
"@salesforce/lds-jest": "^1.287.0-
|
|
78
|
-
"@salesforce/lds-store-binary": "^1.287.0-
|
|
76
|
+
"@salesforce/lds-compiler-plugins": "^1.287.0-dev3",
|
|
77
|
+
"@salesforce/lds-jest": "^1.287.0-dev3",
|
|
78
|
+
"@salesforce/lds-store-binary": "^1.287.0-dev3"
|
|
79
79
|
},
|
|
80
80
|
"luvioBundlesize": [
|
|
81
81
|
{
|
package/sfdc/graphqlAdapters.js
CHANGED
|
@@ -16041,6 +16041,29 @@ function getInContextFragmentType$d(fragment, fragmentMap) {
|
|
|
16041
16041
|
return sharedGetFragmentType(fragment, fragmentMap);
|
|
16042
16042
|
}
|
|
16043
16043
|
|
|
16044
|
+
function getFieldType$b(field) {
|
|
16045
|
+
const fieldName = field.name.value;
|
|
16046
|
+
switch (fieldName) {
|
|
16047
|
+
case '__typename': {
|
|
16048
|
+
return {
|
|
16049
|
+
isArray: false,
|
|
16050
|
+
typename: 'String',
|
|
16051
|
+
};
|
|
16052
|
+
}
|
|
16053
|
+
/*
|
|
16054
|
+
Probably should use metaschema like the RecordQuery graphql-artifact,
|
|
16055
|
+
but this type only has one generic type possible. Also, the most likely scenario for future schema additions,
|
|
16056
|
+
is UISDK adding the the parent of this type, Setup__Setup. Therefore, we will just default to SetupConnection so that
|
|
16057
|
+
query authors don't need to use metaschema when there's no real decision point in this type.
|
|
16058
|
+
*/
|
|
16059
|
+
default:
|
|
16060
|
+
return {
|
|
16061
|
+
isArray: false,
|
|
16062
|
+
typename: 'Setup__SetupConnection',
|
|
16063
|
+
};
|
|
16064
|
+
}
|
|
16065
|
+
}
|
|
16066
|
+
|
|
16044
16067
|
const name$2 = 'Setup__SetupQuery';
|
|
16045
16068
|
const VERSION$a = 'b89cccb5fa5e458d89dc1137af3e5469';
|
|
16046
16069
|
function keyBuilder$6(luvio, path, data) {
|
|
@@ -16158,24 +16181,6 @@ function getTypeCacheKeys$3(cacheKeySink, astNode, state) {
|
|
|
16158
16181
|
}
|
|
16159
16182
|
// Deal with mapped types' cache keys
|
|
16160
16183
|
}
|
|
16161
|
-
function getFieldType$b(field) {
|
|
16162
|
-
switch (field.name.value) {
|
|
16163
|
-
case '__typename': {
|
|
16164
|
-
return {
|
|
16165
|
-
isArray: false,
|
|
16166
|
-
typename: 'String'
|
|
16167
|
-
};
|
|
16168
|
-
}
|
|
16169
|
-
case 'recordQuery': {
|
|
16170
|
-
return {
|
|
16171
|
-
isArray: false,
|
|
16172
|
-
typename: 'Setup__SetupConnection'
|
|
16173
|
-
};
|
|
16174
|
-
}
|
|
16175
|
-
default:
|
|
16176
|
-
return undefined;
|
|
16177
|
-
}
|
|
16178
|
-
}
|
|
16179
16184
|
function ingestFieldByType$2(typename, parentKey, requestedField, sink, fieldKey, fieldData, state) {
|
|
16180
16185
|
// TODO: add validation logic to only allow nullable fields to be null in the future
|
|
16181
16186
|
if (fieldData === null) {
|
|
@@ -18594,6 +18599,10 @@ let oneStoreGetObjectInfoAdapter = undefined;
|
|
|
18594
18599
|
* One store enabled Get Object Infos adapter
|
|
18595
18600
|
*/
|
|
18596
18601
|
let oneStoreGetObjectInfosAdapter = undefined;
|
|
18602
|
+
/**
|
|
18603
|
+
* Determines when to include PDL strategies for Related Lists
|
|
18604
|
+
*/
|
|
18605
|
+
let relatedListsPredictionsEnabled = false;
|
|
18597
18606
|
/**
|
|
18598
18607
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
18599
18608
|
* Configuration for one store enabled REST adapters only.
|
|
@@ -18669,6 +18678,12 @@ const configurationForRestAdapters = {
|
|
|
18669
18678
|
getDraftAwareCreateContentDocumentAndVersionAdapter: function () {
|
|
18670
18679
|
return draftAwareCreateContentDocumentAndVersionAdapter;
|
|
18671
18680
|
},
|
|
18681
|
+
setRelatedListsPredictionsEnabled: function (f) {
|
|
18682
|
+
relatedListsPredictionsEnabled = f;
|
|
18683
|
+
},
|
|
18684
|
+
areRelatedListsPredictionsEnabled: function () {
|
|
18685
|
+
return relatedListsPredictionsEnabled === true;
|
|
18686
|
+
},
|
|
18672
18687
|
// createContentVersion
|
|
18673
18688
|
setDraftAwareCreateContentVersionAdapter: function (adapter) {
|
|
18674
18689
|
draftAwareCreateContentVersionAdapter = adapter;
|
|
@@ -19729,4 +19744,4 @@ register({
|
|
|
19729
19744
|
});
|
|
19730
19745
|
|
|
19731
19746
|
export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
|
|
19732
|
-
// version: 1.287.0-
|
|
19747
|
+
// version: 1.287.0-dev3-b1b8160d0
|
package/sfdc/index.js
CHANGED
|
@@ -122,6 +122,10 @@ let oneStoreGetObjectInfoAdapter = undefined;
|
|
|
122
122
|
* One store enabled Get Object Infos adapter
|
|
123
123
|
*/
|
|
124
124
|
let oneStoreGetObjectInfosAdapter = undefined;
|
|
125
|
+
/**
|
|
126
|
+
* Determines when to include PDL strategies for Related Lists
|
|
127
|
+
*/
|
|
128
|
+
let relatedListsPredictionsEnabled = false;
|
|
125
129
|
/**
|
|
126
130
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
127
131
|
* Configuration for one store enabled REST adapters only.
|
|
@@ -206,6 +210,12 @@ const configurationForRestAdapters = {
|
|
|
206
210
|
getDraftAwareCreateContentDocumentAndVersionAdapter: function () {
|
|
207
211
|
return draftAwareCreateContentDocumentAndVersionAdapter;
|
|
208
212
|
},
|
|
213
|
+
setRelatedListsPredictionsEnabled: function (f) {
|
|
214
|
+
relatedListsPredictionsEnabled = f;
|
|
215
|
+
},
|
|
216
|
+
areRelatedListsPredictionsEnabled: function () {
|
|
217
|
+
return relatedListsPredictionsEnabled === true;
|
|
218
|
+
},
|
|
209
219
|
// createContentVersion
|
|
210
220
|
setDraftAwareCreateContentVersionAdapter: function (adapter) {
|
|
211
221
|
draftAwareCreateContentVersionAdapter = adapter;
|
|
@@ -330,6 +340,16 @@ function createLDSAdapterWithPrediction(adapter, luvio, name) {
|
|
|
330
340
|
return result;
|
|
331
341
|
};
|
|
332
342
|
}
|
|
343
|
+
function createRelatedListAdapterWithPrediction(adapter, luvio, name) {
|
|
344
|
+
if (configurationForRestAdapters.areRelatedListsPredictionsEnabled() /* gate is open */) {
|
|
345
|
+
return createLDSAdapterWithPrediction(adapter, luvio, name);
|
|
346
|
+
}
|
|
347
|
+
else {
|
|
348
|
+
return (config, requestContext) => {
|
|
349
|
+
return adapter(config, requestContext);
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
}
|
|
333
353
|
|
|
334
354
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
335
355
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -36632,13 +36652,13 @@ function bindExportsTo(luvio) {
|
|
|
36632
36652
|
const getRelatedListActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListActions', getRelatedListActionsAdapterFactory), getRelatedListActionsMetadata);
|
|
36633
36653
|
const getRelatedListCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListCount', getRelatedListCountAdapterFactory), getRelatedListCountMetadata);
|
|
36634
36654
|
const getRelatedListInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListInfo', getRelatedListInfoAdapterFactory), getRelatedListInfoMetadata);
|
|
36635
|
-
const getRelatedListInfoBatch_ldsAdapter = createInstrumentedAdapter(
|
|
36655
|
+
const getRelatedListInfoBatch_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListInfoBatch', getRelatedListInfoBatchAdapterFactory), luvio, 'getRelatedListInfoBatch'), getRelatedListInfoBatchMetadata);
|
|
36636
36656
|
const getRelatedListPreferences_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferences', getRelatedListPreferencesAdapterFactory), getRelatedListPreferencesMetadata);
|
|
36637
36657
|
const getRelatedListPreferencesBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferencesBatch', getRelatedListPreferencesBatchAdapterFactory), getRelatedListPreferencesBatchMetadata);
|
|
36638
36658
|
const getRelatedListRecordActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListRecordActions', getRelatedListRecordActionsAdapterFactory), getRelatedListRecordActionsMetadata);
|
|
36639
|
-
const getRelatedListRecords_ldsAdapter = createInstrumentedAdapter(
|
|
36640
|
-
const getRelatedListRecordsBatch_ldsAdapter = createInstrumentedAdapter(
|
|
36641
|
-
const getRelatedListsActions_ldsAdapter = createInstrumentedAdapter(
|
|
36659
|
+
const getRelatedListRecords_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecords', getRelatedListRecordsAdapterFactory), luvio, 'getRelatedListRecords'), getRelatedListRecordsMetadata);
|
|
36660
|
+
const getRelatedListRecordsBatch_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecordsBatch', getRelatedListRecordsBatchAdapterFactory), luvio, 'getRelatedListRecordsBatch'), getRelatedListRecordsBatchMetadata);
|
|
36661
|
+
const getRelatedListsActions_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListsActions', getRelatedListsActionsAdapterFactory), luvio, 'getRelatedListsActions'), getRelatedListsActionsMetadata);
|
|
36642
36662
|
const getRelatedListsCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListsCount', getRelatedListsCountAdapterFactory), getRelatedListsCountMetadata);
|
|
36643
36663
|
const getRelatedListsInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListsInfo', getRelatedListsInfoAdapterFactory), getRelatedListsInfoMetadata);
|
|
36644
36664
|
const getSearchFilterMetadata_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchFilterMetadata', getSearchFilterMetadataAdapterFactory), getSearchFilterMetadataMetadata);
|
|
@@ -36979,5 +36999,5 @@ withDefaultLuvio((luvio) => {
|
|
|
36979
36999
|
notifyAllListInfoSummaryUpdateAvailable = throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
36980
37000
|
});
|
|
36981
37001
|
|
|
36982
|
-
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$U as RecordRepresentationRepresentationType, TTL$y as RecordRepresentationTTL, RepresentationType$U as RecordRepresentationType, VERSION$1a 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, 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, getListInfosByObjectName, getListInfosByObjectName_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, getPathLayout, getPathLayout_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, 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$W as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$G as ingestObjectInfo, ingest$A as ingestQuickActionExecutionRepresentation, ingest$N as ingestRecord, instrument, isStoreKeyRecordViewEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$C as keyBuilderFromTypeRecordRepresentation, keyBuilder$1V as keyBuilderObjectInfo, keyBuilder$1O as keyBuilderQuickActionExecutionRepresentation, keyBuilder$26 as keyBuilderRecord, notifyAllListInfoSummaryUpdateAvailable, notifyAllListRecordUpdateAvailable, notifyListInfoSummaryUpdateAvailable, notifyListInfoUpdateAvailable, notifyListRecordCollectionUpdateAvailable, notifyListViewSummaryUpdateAvailable, notifyQuickActionDefaultsUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, registerPrefetcher, updateLayoutUserState, updateListInfoByName, updateListPreferences, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
36983
|
-
// version: 1.287.0-
|
|
37002
|
+
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$U as RecordRepresentationRepresentationType, TTL$y as RecordRepresentationTTL, RepresentationType$U as RecordRepresentationType, VERSION$1a 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, getListInfoByName_imperative, getListInfosByName, getListInfosByName_imperative, getListInfosByObjectName, getListInfosByObjectName_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, getPathLayout, getPathLayout_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, 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$W as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$G as ingestObjectInfo, ingest$A as ingestQuickActionExecutionRepresentation, ingest$N as ingestRecord, instrument, isStoreKeyRecordViewEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$C as keyBuilderFromTypeRecordRepresentation, keyBuilder$1V as keyBuilderObjectInfo, keyBuilder$1O as keyBuilderQuickActionExecutionRepresentation, keyBuilder$26 as keyBuilderRecord, notifyAllListInfoSummaryUpdateAvailable, notifyAllListRecordUpdateAvailable, notifyListInfoSummaryUpdateAvailable, notifyListInfoUpdateAvailable, notifyListRecordCollectionUpdateAvailable, notifyListViewSummaryUpdateAvailable, notifyQuickActionDefaultsUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, registerPrefetcher, updateLayoutUserState, updateListInfoByName, updateListPreferences, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
37003
|
+
// version: 1.287.0-dev3-b1b8160d0
|