@salesforce/lds-adapters-uiapi 1.299.0 → 1.301.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.
- package/dist/es/es2018/types/src/__mocks__/force/ldsBindings.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/ListInfoRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/predictive-loading/registry.d.ts +1 -1
- package/dist/es/es2018/uiapi-records-service.js +13 -1
- package/package.json +6 -6
- package/sfdc/graphqlAdapters.js +1 -1
- package/sfdc/index.js +14 -2
- package/sfdc/uiapi-static-functions.js +1 -1
- package/src/raml/api.raml +4 -0
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import type { Luvio } from '@luvio/engine';
|
|
3
3
|
import { createImperativeAdapter, createGraphQLWireAdapterConstructor, createGraphQLImperativeAdapter } from '@salesforce/lds-bindings';
|
|
4
4
|
export declare function createLDSAdapter(luvio: Luvio, name: string, factory: any): any;
|
|
5
|
-
export declare function createWireAdapterConstructor(): jest.Mock<any, any>;
|
|
6
|
-
export declare function createInfiniteScrollingWireAdapterConstructor(): jest.Mock<any, any>;
|
|
5
|
+
export declare function createWireAdapterConstructor(): jest.Mock<any, any, any>;
|
|
6
|
+
export declare function createInfiniteScrollingWireAdapterConstructor(): jest.Mock<any, any, any>;
|
|
7
7
|
export declare function createInstrumentedAdapter(adapter: any, _metadata: any): any;
|
|
8
8
|
export declare function bindWireRefresh(): void;
|
|
9
9
|
export { createImperativeAdapter, createGraphQLWireAdapterConstructor, createGraphQLImperativeAdapter, };
|
|
@@ -8,7 +8,7 @@ import { ListUserPreferenceRepresentation as ListUserPreferenceRepresentation_Li
|
|
|
8
8
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
9
9
|
import { ListColumnRepresentation as ListColumnRepresentation_ListColumnRepresentation } from './ListColumnRepresentation';
|
|
10
10
|
export declare const TTL = 900000;
|
|
11
|
-
export declare const VERSION = "
|
|
11
|
+
export declare const VERSION = "5adf17d38be03c0f71b1c52485b377a6";
|
|
12
12
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
13
13
|
export declare const RepresentationType: string;
|
|
14
14
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -59,6 +59,8 @@ export interface ListInfoRepresentationNormalized {
|
|
|
59
59
|
filterLogicString: string | null;
|
|
60
60
|
/** Describes how the list view is filtered. */
|
|
61
61
|
filteredByInfo: Array<ListFilterByInfoRepresentation_ListFilterByInfoRepresentation>;
|
|
62
|
+
/** To be updated */
|
|
63
|
+
hasMassActions?: boolean;
|
|
62
64
|
inlineEditDetails: ListInlineEditDetailsRepresentation_ListInlineEditDetailsRepresentation;
|
|
63
65
|
/** The list view's display label. E.g. "All Accounts". */
|
|
64
66
|
label: string | null;
|
|
@@ -97,6 +99,7 @@ export interface ListInfoRepresentation {
|
|
|
97
99
|
eTag: string;
|
|
98
100
|
filterLogicString: string | null;
|
|
99
101
|
filteredByInfo: Array<ListFilterByInfoRepresentation_ListFilterByInfoRepresentation>;
|
|
102
|
+
hasMassActions?: boolean;
|
|
100
103
|
inlineEditDetails: ListInlineEditDetailsRepresentation_ListInlineEditDetailsRepresentation;
|
|
101
104
|
label: string | null;
|
|
102
105
|
listReference: ListReferenceRepresentation_ListReferenceRepresentation;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Adapter, Luvio } from '@luvio/engine';
|
|
2
2
|
interface Prefetcher {
|
|
3
|
-
saveRequest: (request: any) =>
|
|
3
|
+
saveRequest: (request: any) => void;
|
|
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>;
|
|
@@ -1543,7 +1543,7 @@ const keyBuilderFromType$F = function ListInfoRepresentationKeyBuilderFromType(l
|
|
|
1543
1543
|
};
|
|
1544
1544
|
|
|
1545
1545
|
const TTL$H = 900000;
|
|
1546
|
-
const VERSION$2A = "
|
|
1546
|
+
const VERSION$2A = "5adf17d38be03c0f71b1c52485b377a6";
|
|
1547
1547
|
function validate$1$(obj, path = 'ListInfoRepresentation') {
|
|
1548
1548
|
const v_error = (() => {
|
|
1549
1549
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1622,6 +1622,13 @@ function validate$1$(obj, path = 'ListInfoRepresentation') {
|
|
|
1622
1622
|
return new TypeError(message);
|
|
1623
1623
|
}
|
|
1624
1624
|
}
|
|
1625
|
+
if (obj.hasMassActions !== undefined) {
|
|
1626
|
+
const obj_hasMassActions = obj.hasMassActions;
|
|
1627
|
+
const path_hasMassActions = path + '.hasMassActions';
|
|
1628
|
+
if (typeof obj_hasMassActions !== 'boolean') {
|
|
1629
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasMassActions + '" (at "' + path_hasMassActions + '")');
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1625
1632
|
const obj_inlineEditDetails = obj.inlineEditDetails;
|
|
1626
1633
|
const path_inlineEditDetails = path + '.inlineEditDetails';
|
|
1627
1634
|
const referencepath_inlineEditDetailsValidationError = validate$2b(obj_inlineEditDetails, path_inlineEditDetails);
|
|
@@ -1832,6 +1839,11 @@ const select$3f = function ListInfoRepresentationSelect() {
|
|
|
1832
1839
|
plural: true,
|
|
1833
1840
|
selections: ListFilterByInfoRepresentation__selections
|
|
1834
1841
|
},
|
|
1842
|
+
{
|
|
1843
|
+
name: 'hasMassActions',
|
|
1844
|
+
kind: 'Scalar',
|
|
1845
|
+
required: false
|
|
1846
|
+
},
|
|
1835
1847
|
{
|
|
1836
1848
|
name: 'inlineEditDetails',
|
|
1837
1849
|
kind: 'Object',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-uiapi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.301.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Wire adapters for record related UI API endpoints",
|
|
6
6
|
"main": "dist/es/es2018/uiapi-records-service.js",
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@salesforce/lds-bindings": "^1.
|
|
72
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
71
|
+
"@salesforce/lds-bindings": "^1.301.0",
|
|
72
|
+
"@salesforce/lds-default-luvio": "^1.301.0"
|
|
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.301.0",
|
|
77
|
+
"@salesforce/lds-jest": "^1.301.0",
|
|
78
|
+
"@salesforce/lds-store-binary": "^1.301.0"
|
|
79
79
|
},
|
|
80
80
|
"luvioBundlesize": [
|
|
81
81
|
{
|
package/sfdc/graphqlAdapters.js
CHANGED
|
@@ -20565,4 +20565,4 @@ register({
|
|
|
20565
20565
|
});
|
|
20566
20566
|
|
|
20567
20567
|
export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
|
|
20568
|
-
// version: 1.
|
|
20568
|
+
// version: 1.301.0-4216dc9d10
|
package/sfdc/index.js
CHANGED
|
@@ -1600,7 +1600,7 @@ const keyBuilderFromType$F = function ListInfoRepresentationKeyBuilderFromType(l
|
|
|
1600
1600
|
};
|
|
1601
1601
|
|
|
1602
1602
|
const TTL$B = 900000;
|
|
1603
|
-
const VERSION$1i = "
|
|
1603
|
+
const VERSION$1i = "5adf17d38be03c0f71b1c52485b377a6";
|
|
1604
1604
|
function validate$1X(obj, path = 'ListInfoRepresentation') {
|
|
1605
1605
|
const v_error = (() => {
|
|
1606
1606
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1679,6 +1679,13 @@ function validate$1X(obj, path = 'ListInfoRepresentation') {
|
|
|
1679
1679
|
return new TypeError(message);
|
|
1680
1680
|
}
|
|
1681
1681
|
}
|
|
1682
|
+
if (obj.hasMassActions !== undefined) {
|
|
1683
|
+
const obj_hasMassActions = obj.hasMassActions;
|
|
1684
|
+
const path_hasMassActions = path + '.hasMassActions';
|
|
1685
|
+
if (typeof obj_hasMassActions !== 'boolean') {
|
|
1686
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasMassActions + '" (at "' + path_hasMassActions + '")');
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1682
1689
|
const obj_inlineEditDetails = obj.inlineEditDetails;
|
|
1683
1690
|
const path_inlineEditDetails = path + '.inlineEditDetails';
|
|
1684
1691
|
const referencepath_inlineEditDetailsValidationError = validate$27(obj_inlineEditDetails, path_inlineEditDetails);
|
|
@@ -1889,6 +1896,11 @@ const select$1X = function ListInfoRepresentationSelect() {
|
|
|
1889
1896
|
plural: true,
|
|
1890
1897
|
selections: ListFilterByInfoRepresentation__selections
|
|
1891
1898
|
},
|
|
1899
|
+
{
|
|
1900
|
+
name: 'hasMassActions',
|
|
1901
|
+
kind: 'Scalar',
|
|
1902
|
+
required: false
|
|
1903
|
+
},
|
|
1892
1904
|
{
|
|
1893
1905
|
name: 'inlineEditDetails',
|
|
1894
1906
|
kind: 'Object',
|
|
@@ -38272,4 +38284,4 @@ withDefaultLuvio((luvio) => {
|
|
|
38272
38284
|
});
|
|
38273
38285
|
|
|
38274
38286
|
export { API_NAMESPACE, InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$J as ObjectInfoDirectoryEntryRepresentationType, RepresentationType$O as ObjectInfoRepresentationType, RECORD_FIELDS_KEY_JUNCTION, RECORD_ID_PREFIX, RECORD_REPRESENTATION_NAME, RECORD_VIEW_ENTITY_ID_PREFIX, RECORD_VIEW_ENTITY_REPRESENTATION_NAME, RepresentationType$V as RecordRepresentationRepresentationType, TTL$z as RecordRepresentationTTL, RepresentationType$V as RecordRepresentationType, VERSION$1e as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildRecordRepKeyFromId, getFieldApiNamesArray as coerceFieldIdArray, getObjectApiName$1 as coerceObjectId, getObjectApiNamesArray as coerceObjectIdArray, configurationForRestAdapters as configuration, createContentDocumentAndVersion, createContentVersion, createIngestRecordWithFields, createLDSAdapterWithPrediction, createListInfo, createRecord, createRelatedListAdapterWithPrediction, deleteListInfo, deleteRecord, executeBatchRecordOperations, extractRecordIdFromStoreKey, getActionOverrides, getActionOverrides_imperative, getAllApps, getAllApps_imperative, getAppDetails, getAppDetails_imperative, getDuplicateConfiguration, getDuplicateConfiguration_imperative, getDuplicates, getDuplicates_imperative, getFlexipageFormulaOverrides, getFlexipageFormulaOverrides_imperative, getGlobalActions, getGlobalActions_imperative, getKeywordSearchResults, getKeywordSearchResults_imperative, getLayout, getLayoutUserState, getLayoutUserState_imperative, getLayout_imperative, getListInfoByName, getListInfoByNameAdapterFactory, getListInfoByName_imperative, getListInfosByName, getListInfosByName_imperative, getListInfosByObjectName, getListInfosByObjectNameAdapterFactory, getListInfosByObjectName_imperative, getListObjectInfo, getListObjectInfo_imperative, getListPreferences, getListPreferences_imperative, getListRecordsByName, factory$a as getListRecordsByNameAdapterFactory, getListRecordsByName_imperative, getListUi, getListUi_imperative, getLookupActions, getLookupActions_imperative, getLookupMetadata, getLookupMetadata_imperative, getLookupRecords, getLookupRecords_imperative, getNavItems, getNavItems_imperative, getObjectCreateActions, getObjectCreateActions_imperative, getObjectInfo, getObjectInfoAdapterFactory, getObjectInfoDirectoryAdapterFactory, getObjectInfo_imperative, getObjectInfos, getObjectInfosAdapterFactory, getObjectInfos_imperative, getPathLayout, getPathLayout_imperative, getPicklistValues, getPicklistValuesByRecordType, getPicklistValuesByRecordType_imperative, getPicklistValues_imperative, getQuickActionDefaults, getQuickActionDefaults_imperative, getQuickActionInfo, getQuickActionInfo_imperative, getQuickActionLayout, getQuickActionLayout_imperative, getRecord, getRecordActions, getRecordActionsAdapterFactory, getRecordActions_imperative, factory$f as getRecordAdapterFactory, getRecordAvatars, getRecordAvatarsAdapterFactory, getRecordAvatars_imperative, getRecordCreateDefaults, getRecordCreateDefaults_imperative, getRecordEditActions, getRecordEditActions_imperative, getRecordId18, getRecordNotifyChange, getRecordTemplateClone, getRecordTemplateClone_imperative, getRecordTemplateCreate, getRecordTemplateCreate_imperative, getRecordUi, getRecordUi_imperative, getRecord_imperative, getRecords, getRecordsAdapterFactory, getRecords_imperative, getRelatedListActions, getRelatedListActions_imperative, getRelatedListCount, getRelatedListCount_imperative, getRelatedListInfo, getRelatedListInfoBatch, getRelatedListInfoBatchAdapterFactory, getRelatedListInfoBatch_imperative, getRelatedListInfo_imperative, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListPreferencesBatch_imperative, getRelatedListPreferences_imperative, getRelatedListRecordActions, getRelatedListRecordActions_imperative, getRelatedListRecords, getRelatedListRecordsAdapterFactory, getRelatedListRecordsBatch, getRelatedListRecordsBatchAdapterFactory, getRelatedListRecordsBatch_imperative, getRelatedListRecords_imperative, getRelatedListsActions, getRelatedListsActionsAdapterFactory, getRelatedListsActions_imperative, getRelatedListsCount, getRelatedListsCount_imperative, getRelatedListsInfo, getRelatedListsInfo_imperative, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadata, getSearchFilterMetadata_imperative, getSearchFilterOptions, getSearchFilterOptions_imperative, getSearchResults, getSearchResults_imperative, getTypeCacheKeys$X as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$H as ingestObjectInfo, ingest$B as ingestQuickActionExecutionRepresentation, ingest$O as ingestRecord, instrument, isStoreKeyRecordViewEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$D as keyBuilderFromTypeRecordRepresentation, keyBuilder$1Y as keyBuilderObjectInfo, keyBuilder$1R as keyBuilderQuickActionExecutionRepresentation, keyBuilder$29 as keyBuilderRecord, notifyAllListInfoSummaryUpdateAvailable, notifyAllListRecordUpdateAvailable, notifyListInfoSummaryUpdateAvailable, notifyListInfoUpdateAvailable, notifyListRecordCollectionUpdateAvailable, notifyListViewSummaryUpdateAvailable, notifyQuickActionDefaultsUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, registerPrefetcher, updateLayoutUserState, updateListInfoByName, updateListPreferences, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
38275
|
-
// version: 1.
|
|
38287
|
+
// version: 1.301.0-4216dc9d10
|
|
@@ -95,7 +95,7 @@ var TypeCheckShapes;
|
|
|
95
95
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
96
96
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
97
97
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
98
|
-
// engine version: 0.
|
|
98
|
+
// engine version: 0.155.1-284dbf66
|
|
99
99
|
|
|
100
100
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
101
101
|
|
package/src/raml/api.raml
CHANGED
|
@@ -1572,6 +1572,10 @@ types:
|
|
|
1572
1572
|
type: array
|
|
1573
1573
|
items:
|
|
1574
1574
|
type: ListFilterByInfoRepresentation
|
|
1575
|
+
hasMassActions:
|
|
1576
|
+
description: To be updated
|
|
1577
|
+
type: boolean
|
|
1578
|
+
required: false
|
|
1575
1579
|
inlineEditDetails:
|
|
1576
1580
|
description: Inline edit information for this list view.
|
|
1577
1581
|
type: ListInlineEditDetailsRepresentation
|