@salesforce/lds-adapters-uiapi 1.272.0 → 1.273.1
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/generated/types/ListRecordCollectionRepresentation.d.ts +1 -0
- package/dist/es/es2018/types/src/main.d.ts +1 -0
- package/dist/es/es2018/types/src/sfdc_rest.d.ts +1 -0
- package/dist/es/es2018/types/src/wire/getRecord/GetRecordLayoutType.d.ts +7 -0
- package/dist/es/es2018/uiapi-records-service.js +37 -7
- package/package.json +6 -6
- package/sfdc/graphqlAdapters.js +1 -1
- package/sfdc/index.js +41 -9
- package/src/raml/luvio.raml +8 -0
|
@@ -4,6 +4,7 @@ export * from './predictive-loading';
|
|
|
4
4
|
export { MRU } from './wire/getListUi';
|
|
5
5
|
export { notifyChangeFactory as GetRecordNotifyChange } from './wire/getRecord';
|
|
6
6
|
export { notifyUpdateAvailableFactory as NotifyRecordUpdateAvailable } from './generated/types/RecordRepresentation';
|
|
7
|
+
export { notifyUpdateAvailableFactory as NotifyListRecordCollectionUpdateAvailable } from './generated/types/ListRecordCollectionRepresentation';
|
|
7
8
|
export { ClientOptions as UpdateRecordClientOptions } from './wire/updateRecord';
|
|
8
9
|
export { notifyUpdateAvailableFactory as NotifyListViewSummaryUpdateAvailable } from './generated/types/ListViewSummaryCollectionRepresentation';
|
|
9
10
|
export { notifyUpdateAvailableFactory as NotifyListInfoUpdateAvailable } from './raml-artifacts/types/ListInfoRepresentation/notifyUpdateAvailableFactory';
|
|
@@ -13,6 +13,7 @@ export declare let notifyRecordUpdateAvailable: any;
|
|
|
13
13
|
export declare let notifyListViewSummaryUpdateAvailable: any;
|
|
14
14
|
export declare let notifyListInfoUpdateAvailable: any;
|
|
15
15
|
export declare let notifyQuickActionDefaultsUpdateAvailable: any;
|
|
16
|
+
export declare let notifyListRecordCollectionUpdateAvailable: any;
|
|
16
17
|
export { createRecordInputFilteredByEditedFields, generateRecordInputForCreate, generateRecordInputForUpdate, getFieldDisplayValue, getFieldValue, getRecordInput, } from './uiapi-static-functions';
|
|
17
18
|
export { keyBuilder as keyBuilderRecord } from './generated/types/RecordRepresentation';
|
|
18
19
|
export { ingest as ingestRecord, createIngestRecordWithFields, } from './raml-artifacts/types/RecordRepresentation/ingest';
|
|
@@ -8,4 +8,11 @@ export interface GetRecordLayoutTypeConfig {
|
|
|
8
8
|
modes?: LayoutMode[];
|
|
9
9
|
optionalFields?: string[];
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* W-14696113
|
|
13
|
+
* Merge fields into optionalFields and return the whole list.
|
|
14
|
+
* @param {string[]} fields
|
|
15
|
+
* @param {string[]} [optionalFields]
|
|
16
|
+
*/
|
|
17
|
+
export declare function convertToImplicitFields(fields: string[], optionalFields?: string[]): string[];
|
|
11
18
|
export declare function getRecordLayoutType(luvio: Luvio, config: GetRecordLayoutTypeConfig, adapterContext: AdapterContext, requestContext?: AdapterRequestContext): Snapshot<RecordRepresentation> | Promise<Snapshot<RecordRepresentation>>;
|
|
@@ -1899,7 +1899,7 @@ function getTypeCacheKeys$1_(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1899
1899
|
getTypeCacheKeys$1$(rootKeySet, luvio, input.displayColumns[i], () => '');
|
|
1900
1900
|
}
|
|
1901
1901
|
}
|
|
1902
|
-
const notifyUpdateAvailableFactory$
|
|
1902
|
+
const notifyUpdateAvailableFactory$5 = (luvio) => {
|
|
1903
1903
|
return function notifyListInfoUpdateAvailable(configs) {
|
|
1904
1904
|
if (process.env.NODE_ENV !== 'production') {
|
|
1905
1905
|
const requiredKeyParams = ['listViewApiName', 'objectApiName', 'type'];
|
|
@@ -3007,7 +3007,7 @@ function getTypeCacheKeys$1W(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3007
3007
|
getTypeCacheKeys$1Z(rootKeySet, luvio, input_fields[key], () => rootKey + "__fields" + "__" + key);
|
|
3008
3008
|
}
|
|
3009
3009
|
}
|
|
3010
|
-
const notifyUpdateAvailableFactory$
|
|
3010
|
+
const notifyUpdateAvailableFactory$4 = (luvio) => {
|
|
3011
3011
|
return function notifyRecordUpdateAvailable(configs) {
|
|
3012
3012
|
if (process.env.NODE_ENV !== 'production') {
|
|
3013
3013
|
const requiredKeyParams = ['recordId'];
|
|
@@ -7268,6 +7268,20 @@ function getTypeCacheKeys$1V(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7268
7268
|
getTypeCacheKeys$1Y(rootKeySet, luvio, input.records[i]);
|
|
7269
7269
|
}
|
|
7270
7270
|
}
|
|
7271
|
+
const notifyUpdateAvailableFactory$3 = (luvio) => {
|
|
7272
|
+
return function notifyListRecordCollectionUpdateAvailable(configs) {
|
|
7273
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7274
|
+
const requiredKeyParams = ['objectApiName', 'searchTerm', 'sortBy', 'listViewId', 'listViewApiName'];
|
|
7275
|
+
configs.forEach(config => {
|
|
7276
|
+
if (false === requiredKeyParams.every(req => req in config)) {
|
|
7277
|
+
throw new Error(`one of the configs did not contain all required parameters: ${JSONStringify(ObjectKeys(config))}`);
|
|
7278
|
+
}
|
|
7279
|
+
});
|
|
7280
|
+
}
|
|
7281
|
+
const keys = configs.map(c => keyBuilder$39(luvio, c));
|
|
7282
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
7283
|
+
};
|
|
7284
|
+
};
|
|
7271
7285
|
|
|
7272
7286
|
const VERSION$2d = "cf8d2eb042188974da26ffe6618cfd07";
|
|
7273
7287
|
function validate$1L(obj, path = 'ListUiRepresentation') {
|
|
@@ -11966,10 +11980,11 @@ function getNameField(objectInfo, fieldApiName) {
|
|
|
11966
11980
|
// ObjectInfoRep.ReferenceToInfoRep[].nameFields[]:
|
|
11967
11981
|
// 1. If any of the arrays are empty returns `Name`
|
|
11968
11982
|
// 2. If `Name` is found in any array position then returns it
|
|
11969
|
-
//
|
|
11983
|
+
// 3. If the field has more than 1 references(polymorphic), return `Name`
|
|
11984
|
+
// 4. Else returns ObjectInfoRep.ReferenceToInfoRep[0].nameFields[0]
|
|
11970
11985
|
// Rationale for this is unclear and needs clarification.
|
|
11971
11986
|
const referenceToInfos = objectInfo.fields[fieldApiName].referenceToInfos;
|
|
11972
|
-
if (referenceToInfos.length
|
|
11987
|
+
if (referenceToInfos.length !== 1) {
|
|
11973
11988
|
return FIELD_NAME;
|
|
11974
11989
|
}
|
|
11975
11990
|
const firstReferenceNameFields = referenceToInfos[0].nameFields;
|
|
@@ -12511,9 +12526,24 @@ function getFieldsFromLayoutMap(layoutMap, objectInfo) {
|
|
|
12511
12526
|
}
|
|
12512
12527
|
return dedupe(fields).sort();
|
|
12513
12528
|
}
|
|
12529
|
+
/**
|
|
12530
|
+
* W-14696113
|
|
12531
|
+
* Merge fields into optionalFields and return the whole list.
|
|
12532
|
+
* @param {string[]} fields
|
|
12533
|
+
* @param {string[]} [optionalFields]
|
|
12534
|
+
*/
|
|
12535
|
+
function convertToImplicitFields(fields, optionalFields) {
|
|
12536
|
+
const implicitFields = optionalFields || [];
|
|
12537
|
+
fields.forEach((field) => {
|
|
12538
|
+
if (!(field in implicitFields))
|
|
12539
|
+
implicitFields.push(field);
|
|
12540
|
+
});
|
|
12541
|
+
return implicitFields;
|
|
12542
|
+
}
|
|
12514
12543
|
function getRecordForLayoutableEntities(luvio, refresh, recordId, layoutMap, objectInfo, configOptionalFields) {
|
|
12515
12544
|
const fields = getFieldsFromLayoutMap(layoutMap, objectInfo);
|
|
12516
|
-
|
|
12545
|
+
const implicitFields = convertToImplicitFields(fields, configOptionalFields);
|
|
12546
|
+
return getRecord(luvio, refresh, recordId, [], implicitFields);
|
|
12517
12547
|
}
|
|
12518
12548
|
function getRecordForNonLayoutableEntities(luvio, adapterContext, refresh, recordId, objectInfo, configOptionalFields, configFields) {
|
|
12519
12549
|
const fields = keys(configFields ? configFields : {}).map((key) => `${objectInfo.apiName}.${key}`);
|
|
@@ -12928,7 +12958,7 @@ const factory$h = (luvio) => {
|
|
|
12928
12958
|
|
|
12929
12959
|
const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
12930
12960
|
return function notifyListInfoUpdateAvailable(configs) {
|
|
12931
|
-
const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$
|
|
12961
|
+
const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$5(luvio);
|
|
12932
12962
|
// Taken from getUiApiListInfoByListViewApiNameAndObjectApiName/keyBuilder artifact
|
|
12933
12963
|
// We automatically set the type based on the listViewApiName, and we need to do the same
|
|
12934
12964
|
// here for key matching and validation
|
|
@@ -52842,4 +52872,4 @@ ensureRegisteredOnce({
|
|
|
52842
52872
|
instrument,
|
|
52843
52873
|
});
|
|
52844
52874
|
|
|
52845
|
-
export { API_NAMESPACE, notifyChangeFactory as GetRecordNotifyChange, InMemoryRecordRepresentationQueryEvaluator, MRU, notifyUpdateAvailableFactory$1 as NotifyListInfoUpdateAvailable, notifyUpdateAvailableFactory$2 as NotifyListViewSummaryUpdateAvailable, notifyUpdateAvailableFactory as NotifyQuickActionDefaultsUpdateAvailable, notifyUpdateAvailableFactory$
|
|
52875
|
+
export { API_NAMESPACE, notifyChangeFactory as GetRecordNotifyChange, InMemoryRecordRepresentationQueryEvaluator, MRU, notifyUpdateAvailableFactory$1 as NotifyListInfoUpdateAvailable, notifyUpdateAvailableFactory$3 as NotifyListRecordCollectionUpdateAvailable, notifyUpdateAvailableFactory$2 as NotifyListViewSummaryUpdateAvailable, notifyUpdateAvailableFactory as NotifyQuickActionDefaultsUpdateAvailable, notifyUpdateAvailableFactory$4 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$X as RecordRepresentationRepresentationType, TTL$D as RecordRepresentationTTL, RepresentationType$X as RecordRepresentationType, VERSION$2g as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildRecordRepKeyFromId, buildSelectionFromFields, buildSelectionFromRecord, 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, 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, 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$1Y as getTypeCacheKeysRecord, factory$e as graphqlAdapterFactory, factory$g as graphqlBatchAdapterFactory, ingest$4 as ingestContentDocumentCompositeRepresentation, ingest$1x as ingestDuplicateConfiguration, ingest$1r as ingestDuplicatesRepresentation, ingest$1W as ingestListInfo, ingest$1S as ingestListRecords, ingest$1O as ingestObjectInfo, ingest$1I as ingestQuickActionExecutionRepresentation, ingest$1T as ingestRecord, ingest$1L as ingestRecordUi, ingest$1j as ingestRelatedListInfo, ingest$2 as ingestRelatedListInfoBatch, ingest$1g as ingestRelatedListRecords, ingest as ingestRelatedListRecordsBatch, ingest$1i as ingestRelatedListSummaryInfoCollection, ingest$7 as ingestUiApiGraphql, instrument, isStoreKeyRecordViewEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$A as keyBuilderFromTypeRecordRepresentation, keyBuilder$2Z as keyBuilderObjectInfo, keyBuilder$2S as keyBuilderQuickActionExecutionRepresentation, keyBuilder$3c 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.
|
|
3
|
+
"version": "1.273.1",
|
|
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.
|
|
72
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
71
|
+
"@salesforce/lds-bindings": "^1.273.1",
|
|
72
|
+
"@salesforce/lds-default-luvio": "^1.273.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@databases/sqlite": "^3.0.0",
|
|
76
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
77
|
-
"@salesforce/lds-jest": "^1.
|
|
78
|
-
"@salesforce/lds-store-binary": "^1.
|
|
76
|
+
"@salesforce/lds-compiler-plugins": "^1.273.1",
|
|
77
|
+
"@salesforce/lds-jest": "^1.273.1",
|
|
78
|
+
"@salesforce/lds-store-binary": "^1.273.1"
|
|
79
79
|
},
|
|
80
80
|
"luvioBundlesize": [
|
|
81
81
|
{
|
package/sfdc/graphqlAdapters.js
CHANGED
|
@@ -18069,4 +18069,4 @@ register({
|
|
|
18069
18069
|
});
|
|
18070
18070
|
|
|
18071
18071
|
export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
|
|
18072
|
-
// version: 1.
|
|
18072
|
+
// version: 1.273.1-e93c18811
|
package/sfdc/index.js
CHANGED
|
@@ -1947,7 +1947,7 @@ function getTypeCacheKeys$W(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1947
1947
|
getTypeCacheKeys$X(rootKeySet, luvio, input.displayColumns[i], () => '');
|
|
1948
1948
|
}
|
|
1949
1949
|
}
|
|
1950
|
-
const notifyUpdateAvailableFactory$
|
|
1950
|
+
const notifyUpdateAvailableFactory$5 = (luvio) => {
|
|
1951
1951
|
return function notifyListInfoUpdateAvailable(configs) {
|
|
1952
1952
|
if (process.env.NODE_ENV !== 'production') {
|
|
1953
1953
|
const requiredKeyParams = ['listViewApiName', 'objectApiName', 'type'];
|
|
@@ -3055,7 +3055,7 @@ function getTypeCacheKeys$S(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3055
3055
|
getTypeCacheKeys$V(rootKeySet, luvio, input_fields[key], () => rootKey + "__fields" + "__" + key);
|
|
3056
3056
|
}
|
|
3057
3057
|
}
|
|
3058
|
-
const notifyUpdateAvailableFactory$
|
|
3058
|
+
const notifyUpdateAvailableFactory$4 = (luvio) => {
|
|
3059
3059
|
return function notifyRecordUpdateAvailable(configs) {
|
|
3060
3060
|
if (process.env.NODE_ENV !== 'production') {
|
|
3061
3061
|
const requiredKeyParams = ['recordId'];
|
|
@@ -7020,6 +7020,20 @@ function getTypeCacheKeys$R(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7020
7020
|
getTypeCacheKeys$U(rootKeySet, luvio, input.records[i]);
|
|
7021
7021
|
}
|
|
7022
7022
|
}
|
|
7023
|
+
const notifyUpdateAvailableFactory$3 = (luvio) => {
|
|
7024
|
+
return function notifyListRecordCollectionUpdateAvailable(configs) {
|
|
7025
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7026
|
+
const requiredKeyParams = ['objectApiName', 'searchTerm', 'sortBy', 'listViewId', 'listViewApiName'];
|
|
7027
|
+
configs.forEach(config => {
|
|
7028
|
+
if (false === requiredKeyParams.every(req => req in config)) {
|
|
7029
|
+
throw new Error(`one of the configs did not contain all required parameters: ${JSONStringify(ObjectKeys(config))}`);
|
|
7030
|
+
}
|
|
7031
|
+
});
|
|
7032
|
+
}
|
|
7033
|
+
const keys = configs.map(c => keyBuilder$1Z(luvio, c));
|
|
7034
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
7035
|
+
};
|
|
7036
|
+
};
|
|
7023
7037
|
|
|
7024
7038
|
const VERSION$15 = "cf8d2eb042188974da26ffe6618cfd07";
|
|
7025
7039
|
function validate$1H(obj, path = 'ListUiRepresentation') {
|
|
@@ -11498,10 +11512,11 @@ function getNameField(objectInfo, fieldApiName) {
|
|
|
11498
11512
|
// ObjectInfoRep.ReferenceToInfoRep[].nameFields[]:
|
|
11499
11513
|
// 1. If any of the arrays are empty returns `Name`
|
|
11500
11514
|
// 2. If `Name` is found in any array position then returns it
|
|
11501
|
-
//
|
|
11515
|
+
// 3. If the field has more than 1 references(polymorphic), return `Name`
|
|
11516
|
+
// 4. Else returns ObjectInfoRep.ReferenceToInfoRep[0].nameFields[0]
|
|
11502
11517
|
// Rationale for this is unclear and needs clarification.
|
|
11503
11518
|
const referenceToInfos = objectInfo.fields[fieldApiName].referenceToInfos;
|
|
11504
|
-
if (referenceToInfos.length
|
|
11519
|
+
if (referenceToInfos.length !== 1) {
|
|
11505
11520
|
return FIELD_NAME;
|
|
11506
11521
|
}
|
|
11507
11522
|
const firstReferenceNameFields = referenceToInfos[0].nameFields;
|
|
@@ -12043,9 +12058,24 @@ function getFieldsFromLayoutMap(layoutMap, objectInfo) {
|
|
|
12043
12058
|
}
|
|
12044
12059
|
return dedupe(fields).sort();
|
|
12045
12060
|
}
|
|
12061
|
+
/**
|
|
12062
|
+
* W-14696113
|
|
12063
|
+
* Merge fields into optionalFields and return the whole list.
|
|
12064
|
+
* @param {string[]} fields
|
|
12065
|
+
* @param {string[]} [optionalFields]
|
|
12066
|
+
*/
|
|
12067
|
+
function convertToImplicitFields(fields, optionalFields) {
|
|
12068
|
+
const implicitFields = optionalFields || [];
|
|
12069
|
+
fields.forEach((field) => {
|
|
12070
|
+
if (!(field in implicitFields))
|
|
12071
|
+
implicitFields.push(field);
|
|
12072
|
+
});
|
|
12073
|
+
return implicitFields;
|
|
12074
|
+
}
|
|
12046
12075
|
function getRecordForLayoutableEntities(luvio, refresh, recordId, layoutMap, objectInfo, configOptionalFields) {
|
|
12047
12076
|
const fields = getFieldsFromLayoutMap(layoutMap, objectInfo);
|
|
12048
|
-
|
|
12077
|
+
const implicitFields = convertToImplicitFields(fields, configOptionalFields);
|
|
12078
|
+
return getRecord$1(luvio, refresh, recordId, [], implicitFields);
|
|
12049
12079
|
}
|
|
12050
12080
|
function getRecordForNonLayoutableEntities(luvio, adapterContext, refresh, recordId, objectInfo, configOptionalFields, configFields) {
|
|
12051
12081
|
const fields = keys(configFields ? configFields : {}).map((key) => `${objectInfo.apiName}.${key}`);
|
|
@@ -12460,7 +12490,7 @@ const factory$f = (luvio) => {
|
|
|
12460
12490
|
|
|
12461
12491
|
const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
12462
12492
|
return function notifyListInfoUpdateAvailable(configs) {
|
|
12463
|
-
const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$
|
|
12493
|
+
const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$5(luvio);
|
|
12464
12494
|
// Taken from getUiApiListInfoByListViewApiNameAndObjectApiName/keyBuilder artifact
|
|
12465
12495
|
// We automatically set the type based on the listViewApiName, and we need to do the same
|
|
12466
12496
|
// here for key matching and validation
|
|
@@ -35580,6 +35610,7 @@ let notifyRecordUpdateAvailable;
|
|
|
35580
35610
|
let notifyListViewSummaryUpdateAvailable;
|
|
35581
35611
|
let notifyListInfoUpdateAvailable;
|
|
35582
35612
|
let notifyQuickActionDefaultsUpdateAvailable;
|
|
35613
|
+
let notifyListRecordCollectionUpdateAvailable;
|
|
35583
35614
|
withDefaultLuvio((luvio) => {
|
|
35584
35615
|
bindWireRefresh(luvio);
|
|
35585
35616
|
baseUpdateLayoutUserState = createLDSAdapter(luvio, 'updateLayoutUserState', factory$b);
|
|
@@ -35589,14 +35620,15 @@ withDefaultLuvio((luvio) => {
|
|
|
35589
35620
|
allowFunction: instrumentation.getRecordNotifyChangeAllowed,
|
|
35590
35621
|
dropFunction: instrumentation.getRecordNotifyChangeDropped,
|
|
35591
35622
|
});
|
|
35592
|
-
notifyRecordUpdateAvailable = throttle(60, 60000, createLDSAdapter(luvio, 'notifyRecordUpdateAvailable', notifyUpdateAvailableFactory$
|
|
35623
|
+
notifyRecordUpdateAvailable = throttle(60, 60000, createLDSAdapter(luvio, 'notifyRecordUpdateAvailable', notifyUpdateAvailableFactory$4), {
|
|
35593
35624
|
allowFunction: instrumentation.notifyRecordUpdateAvailableAllowed,
|
|
35594
35625
|
dropFunction: instrumentation.notifyRecordUpdateAvailableDropped,
|
|
35595
35626
|
});
|
|
35596
35627
|
notifyListViewSummaryUpdateAvailable = throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$2));
|
|
35597
35628
|
notifyListInfoUpdateAvailable = throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
35629
|
+
notifyListRecordCollectionUpdateAvailable = throttle(60, 60000, createLDSAdapter(luvio, 'notifyListRecordCollectionUpdateAvailable', notifyUpdateAvailableFactory$3));
|
|
35598
35630
|
notifyQuickActionDefaultsUpdateAvailable = throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
35599
35631
|
});
|
|
35600
35632
|
|
|
35601
|
-
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$S as RecordRepresentationRepresentationType, TTL$y as RecordRepresentationTTL, RepresentationType$S as RecordRepresentationType, VERSION$18 as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildRecordRepKeyFromId, 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, 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, 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, getRelatedListInfoBatch_imperative, getRelatedListInfo_imperative, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListPreferencesBatch_imperative, getRelatedListPreferences_imperative, getRelatedListRecordActions, getRelatedListRecordActions_imperative, getRelatedListRecords, getRelatedListRecordsBatch, 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$U as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$G as ingestObjectInfo, ingest$A as ingestQuickActionExecutionRepresentation, ingest$L as ingestRecord, instrument, isStoreKeyRecordViewEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$A as keyBuilderFromTypeRecordRepresentation, keyBuilder$1R as keyBuilderObjectInfo, keyBuilder$1K as keyBuilderQuickActionExecutionRepresentation, keyBuilder$20 as keyBuilderRecord, notifyListInfoUpdateAvailable, notifyListViewSummaryUpdateAvailable, notifyQuickActionDefaultsUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, registerPrefetcher, updateLayoutUserState, updateListInfoByName, updateListPreferences, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
35602
|
-
// version: 1.
|
|
35633
|
+
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$S as RecordRepresentationRepresentationType, TTL$y as RecordRepresentationTTL, RepresentationType$S as RecordRepresentationType, VERSION$18 as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildRecordRepKeyFromId, 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, 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, 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, getRelatedListInfoBatch_imperative, getRelatedListInfo_imperative, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListPreferencesBatch_imperative, getRelatedListPreferences_imperative, getRelatedListRecordActions, getRelatedListRecordActions_imperative, getRelatedListRecords, getRelatedListRecordsBatch, 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$U as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$G as ingestObjectInfo, ingest$A as ingestQuickActionExecutionRepresentation, ingest$L as ingestRecord, instrument, isStoreKeyRecordViewEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$A as keyBuilderFromTypeRecordRepresentation, keyBuilder$1R as keyBuilderObjectInfo, keyBuilder$1K as keyBuilderQuickActionExecutionRepresentation, keyBuilder$20 as keyBuilderRecord, notifyListInfoUpdateAvailable, notifyListRecordCollectionUpdateAvailable, notifyListViewSummaryUpdateAvailable, notifyQuickActionDefaultsUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, registerPrefetcher, updateLayoutUserState, updateListInfoByName, updateListPreferences, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
35634
|
+
// version: 1.273.1-e93c18811
|
package/src/raml/luvio.raml
CHANGED
|
@@ -141,6 +141,14 @@ types:
|
|
|
141
141
|
previousToken: previousPageToken
|
|
142
142
|
pageSize: pageSize
|
|
143
143
|
count: count
|
|
144
|
+
(luvio.updateAvailable):
|
|
145
|
+
name: notifyListRecordCollectionUpdateAvailable
|
|
146
|
+
parameters:
|
|
147
|
+
objectApiName: objectApiName
|
|
148
|
+
listViewApiName: listViewApiName
|
|
149
|
+
listViewId: listViewId
|
|
150
|
+
searchTerm: searchTerm
|
|
151
|
+
sortBy: sortBy
|
|
144
152
|
ListViewSummaryCollectionRepresentation:
|
|
145
153
|
examples:
|
|
146
154
|
mockResponseOpportunity: !include ../mocks/types/ListViewSummaryCollectionRepresentation/list-ui-Opportunity.json
|