@salesforce/lds-adapters-uiapi 1.106.0 → 1.107.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/uiapi-records-service.js +2318 -1913
- package/dist/komaci-mapping.json +6 -0
- package/dist/types/src/generated/adapters/getListRecordsByName.d.ts +34 -0
- package/dist/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/types/src/generated/artifacts/sfdc_restAdapters.d.ts +3 -1
- package/dist/types/src/generated/resources/getUiApiListRecordsByListViewApiNameAndObjectApiName.d.ts +2 -0
- package/dist/types/src/generated/types/ListRecordCollectionRepresentation.d.ts +13 -6
- package/dist/types/src/generated/uiapi/record-collection/resources/getUiApiListRecordsByListViewApiNameAndObjectApiName.d.ts +5 -0
- package/dist/types/src/main.d.ts +1 -0
- package/dist/types/src/raml-artifacts/adapters/getListRecordsByName/buildNetworkSnapshot.d.ts +4 -0
- package/dist/types/src/raml-artifacts/adapters/getListRecordsByName/onFetchResponseSuccess.d.ts +6 -0
- package/dist/types/src/raml-artifacts/resources/getUiApiListRecordsByListViewApiNameAndObjectApiName/keyBuilder.d.ts +4 -0
- package/dist/types/src/util/lists.d.ts +8 -0
- package/dist/types/src/wire/getListRecordsByName/index.d.ts +4 -0
- package/dist/umd/es2018/uiapi-records-service.js +2332 -1925
- package/dist/umd/es5/uiapi-records-service.js +2161 -1756
- package/package.json +7 -7
- package/sfdc/graphqlAdapters.js +1 -1
- package/sfdc/index.js +2295 -1882
- package/src/raml/api.raml +1 -1
- package/src/raml/luvio.raml +26 -0
package/dist/komaci-mapping.json
CHANGED
|
@@ -55,6 +55,12 @@
|
|
|
55
55
|
"importPath": "lightning/unstable_uiListsApi",
|
|
56
56
|
"identifier": "unstable_getListInfoByName_imperative"
|
|
57
57
|
}
|
|
58
|
+
},
|
|
59
|
+
"getListRecordsByName": {
|
|
60
|
+
"prime": {
|
|
61
|
+
"importPath": "lightning/unstable_uiListsApi",
|
|
62
|
+
"identifier": "unstable_getListRecordsByName_imperative"
|
|
63
|
+
}
|
|
58
64
|
}
|
|
59
65
|
},
|
|
60
66
|
"lightning/uiAppsApi": {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
|
|
2
|
+
import { ResourceRequestConfig as resources_getUiApiListRecordsByListViewApiNameAndObjectApiName_ResourceRequestConfig, createResourceRequest as resources_getUiApiListRecordsByListViewApiNameAndObjectApiName_createResourceRequest } from '../resources/getUiApiListRecordsByListViewApiNameAndObjectApiName';
|
|
3
|
+
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
|
+
import { ListRecordCollectionRepresentation as types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation } from '../types/ListRecordCollectionRepresentation';
|
|
5
|
+
export declare const adapterName = "getListRecordsByName";
|
|
6
|
+
export declare const getListRecordsByName_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
|
+
export interface GetListRecordsByNameConfig {
|
|
8
|
+
listViewApiName: string;
|
|
9
|
+
objectApiName: string;
|
|
10
|
+
fields?: Array<string>;
|
|
11
|
+
optionalFields?: Array<string>;
|
|
12
|
+
pageSize?: number;
|
|
13
|
+
pageToken?: string;
|
|
14
|
+
sortBy?: Array<string>;
|
|
15
|
+
}
|
|
16
|
+
export declare function createResourceParams(config: GetListRecordsByNameConfig): resources_getUiApiListRecordsByListViewApiNameAndObjectApiName_ResourceRequestConfig;
|
|
17
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetListRecordsByNameConfig): string;
|
|
18
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetListRecordsByNameConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
19
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetListRecordsByNameConfig>): adapter$45$utils_Untrusted<GetListRecordsByNameConfig>;
|
|
20
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetListRecordsByNameConfig | null;
|
|
21
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetListRecordsByNameConfig): $64$luvio_engine_Fragment;
|
|
22
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetListRecordsByNameConfig): $64$luvio_engine_Snapshot<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation, any>;
|
|
23
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetListRecordsByNameConfig, resourceParams: resources_getUiApiListRecordsByListViewApiNameAndObjectApiName_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation>): Promise<import("@luvio/engine").PendingSnapshot<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation, any> | import("@luvio/engine").FulfilledSnapshot<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation, {}>>;
|
|
24
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetListRecordsByNameConfig, resourceParams: resources_getUiApiListRecordsByListViewApiNameAndObjectApiName_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
25
|
+
export declare function prepareRequest(luvio: $64$luvio_engine_Luvio, config: GetListRecordsByNameConfig, resourceParams: resources_getUiApiListRecordsByListViewApiNameAndObjectApiName_ResourceRequestConfig, cacheSnapshot?: $64$luvio_engine_UnfulfilledSnapshot<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation>): ReturnType<typeof resources_getUiApiListRecordsByListViewApiNameAndObjectApiName_createResourceRequest>;
|
|
26
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetListRecordsByNameConfig, options?: $64$luvio_engine_DispatchResourceRequestContext, cacheSnapshot?: $64$luvio_engine_UnfulfilledSnapshot<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation>): Promise<$64$luvio_engine_Snapshot<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation, any>>;
|
|
27
|
+
export type BuildSnapshotContext = {
|
|
28
|
+
luvio: $64$luvio_engine_Luvio;
|
|
29
|
+
config: GetListRecordsByNameConfig;
|
|
30
|
+
cacheSnapshot?: $64$luvio_engine_UnfulfilledSnapshot<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation>;
|
|
31
|
+
};
|
|
32
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation, any>>;
|
|
33
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation>): $64$luvio_engine_Snapshot<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation, any>;
|
|
34
|
+
export declare const getListRecordsByNameAdapterFactory: $64$luvio_engine_AdapterFactory<GetListRecordsByNameConfig, types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation>;
|
|
@@ -49,6 +49,7 @@ export { factory as graphqlAdapterFactory } from '../../wire/graphql';
|
|
|
49
49
|
export { factory as performUpdateRecordQuickActionAdapterFactory } from '../../wire/performUpdateRecordQuickAction';
|
|
50
50
|
export { factory as performQuickActionAdapterFactory } from '../../wire/performQuickAction';
|
|
51
51
|
export { factory as updateLayoutUserStateAdapterFactory } from '../../wire/updateLayoutUserState';
|
|
52
|
+
export { factory as getListRecordsByNameAdapterFactory } from '../../wire/getListRecordsByName';
|
|
52
53
|
export { factory as getLookupRecordsAdapterFactory } from '../../wire/getLookupRecords';
|
|
53
54
|
export { factory as getMruListUiAdapterFactory } from '../../wire/getMruListUi';
|
|
54
55
|
export { factory as updateRecordAvatarAdapterFactory } from '../../wire/updateRecordAvatar';
|
|
@@ -13,6 +13,7 @@ declare let getLayout: any;
|
|
|
13
13
|
declare let getLayoutUserState: any;
|
|
14
14
|
declare let getListInfoByName: any;
|
|
15
15
|
declare let getListInfosByName: any;
|
|
16
|
+
declare let getListRecordsByName: any;
|
|
16
17
|
declare let getListUi: any;
|
|
17
18
|
declare let getLookupActions: any;
|
|
18
19
|
declare let getLookupMetadata: any;
|
|
@@ -63,6 +64,7 @@ declare let getLayout_imperative: any;
|
|
|
63
64
|
declare let getLayoutUserState_imperative: any;
|
|
64
65
|
declare let getListInfoByName_imperative: any;
|
|
65
66
|
declare let getListInfosByName_imperative: any;
|
|
67
|
+
declare let getListRecordsByName_imperative: any;
|
|
66
68
|
declare let getListUi_imperative: any;
|
|
67
69
|
declare let getLookupActions_imperative: any;
|
|
68
70
|
declare let getLookupMetadata_imperative: any;
|
|
@@ -98,4 +100,4 @@ declare let getRelatedListsInfo_imperative: any;
|
|
|
98
100
|
declare let getSearchFilterMetadata_imperative: any;
|
|
99
101
|
declare let getSearchFilterOptions_imperative: any;
|
|
100
102
|
declare let getSearchResults_imperative: any;
|
|
101
|
-
export { createContentDocumentAndVersion, createContentVersion, createRecord, deleteRecord, getActionOverrides, getAllApps, getAppDetails, getDuplicateConfiguration, getDuplicates, getGlobalActions, getKeywordSearchResults, getLayout, getLayoutUserState, getListInfoByName, getListInfosByName, getListUi, getLookupActions, getLookupMetadata, getLookupRecords, getNavItems, getObjectCreateActions, getObjectInfo, getObjectInfos, getPicklistValues, getPicklistValuesByRecordType, getQuickActionDefaults, getRecord, getRecordActions, getRecordAvatars, getRecordCreateDefaults, getRecordEditActions, getRecordTemplateClone, getRecordTemplateCreate, getRecordUi, getRecords, getRelatedListActions, getRelatedListCount, getRelatedListInfo, getRelatedListInfoBatch, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListRecordActions, getRelatedListRecords, getRelatedListRecordsBatch, getRelatedListsActions, getRelatedListsCount, getRelatedListsInfo, getSearchFilterMetadata, getSearchFilterOptions, getSearchResults, performQuickAction, performUpdateRecordQuickAction, updateRecord, updateRecordAvatar, getActionOverrides_imperative, getAllApps_imperative, getAppDetails_imperative, getDuplicateConfiguration_imperative, getDuplicates_imperative, getGlobalActions_imperative, getKeywordSearchResults_imperative, getLayout_imperative, getLayoutUserState_imperative, getListInfoByName_imperative, getListInfosByName_imperative, getListUi_imperative, getLookupActions_imperative, getLookupMetadata_imperative, getLookupRecords_imperative, getNavItems_imperative, getObjectCreateActions_imperative, getObjectInfo_imperative, getObjectInfos_imperative, getPicklistValues_imperative, getPicklistValuesByRecordType_imperative, getQuickActionDefaults_imperative, getRecord_imperative, getRecordActions_imperative, getRecordAvatars_imperative, getRecordCreateDefaults_imperative, getRecordEditActions_imperative, getRecordTemplateClone_imperative, getRecordTemplateCreate_imperative, getRecordUi_imperative, getRecords_imperative, getRelatedListActions_imperative, getRelatedListCount_imperative, getRelatedListInfo_imperative, getRelatedListInfoBatch_imperative, getRelatedListPreferences_imperative, getRelatedListPreferencesBatch_imperative, getRelatedListRecordActions_imperative, getRelatedListRecords_imperative, getRelatedListRecordsBatch_imperative, getRelatedListsActions_imperative, getRelatedListsCount_imperative, getRelatedListsInfo_imperative, getSearchFilterMetadata_imperative, getSearchFilterOptions_imperative, getSearchResults_imperative };
|
|
103
|
+
export { createContentDocumentAndVersion, createContentVersion, createRecord, deleteRecord, getActionOverrides, getAllApps, getAppDetails, getDuplicateConfiguration, getDuplicates, getGlobalActions, getKeywordSearchResults, getLayout, getLayoutUserState, getListInfoByName, getListInfosByName, getListRecordsByName, getListUi, getLookupActions, getLookupMetadata, getLookupRecords, getNavItems, getObjectCreateActions, getObjectInfo, getObjectInfos, getPicklistValues, getPicklistValuesByRecordType, getQuickActionDefaults, getRecord, getRecordActions, getRecordAvatars, getRecordCreateDefaults, getRecordEditActions, getRecordTemplateClone, getRecordTemplateCreate, getRecordUi, getRecords, getRelatedListActions, getRelatedListCount, getRelatedListInfo, getRelatedListInfoBatch, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListRecordActions, getRelatedListRecords, getRelatedListRecordsBatch, getRelatedListsActions, getRelatedListsCount, getRelatedListsInfo, getSearchFilterMetadata, getSearchFilterOptions, getSearchResults, performQuickAction, performUpdateRecordQuickAction, updateRecord, updateRecordAvatar, getActionOverrides_imperative, getAllApps_imperative, getAppDetails_imperative, getDuplicateConfiguration_imperative, getDuplicates_imperative, getGlobalActions_imperative, getKeywordSearchResults_imperative, getLayout_imperative, getLayoutUserState_imperative, getListInfoByName_imperative, getListInfosByName_imperative, getListRecordsByName_imperative, getListUi_imperative, getLookupActions_imperative, getLookupMetadata_imperative, getLookupRecords_imperative, getNavItems_imperative, getObjectCreateActions_imperative, getObjectInfo_imperative, getObjectInfos_imperative, getPicklistValues_imperative, getPicklistValuesByRecordType_imperative, getQuickActionDefaults_imperative, getRecord_imperative, getRecordActions_imperative, getRecordAvatars_imperative, getRecordCreateDefaults_imperative, getRecordEditActions_imperative, getRecordTemplateClone_imperative, getRecordTemplateCreate_imperative, getRecordUi_imperative, getRecords_imperative, getRelatedListActions_imperative, getRelatedListCount_imperative, getRelatedListInfo_imperative, getRelatedListInfoBatch_imperative, getRelatedListPreferences_imperative, getRelatedListPreferencesBatch_imperative, getRelatedListRecordActions_imperative, getRelatedListRecords_imperative, getRelatedListRecordsBatch_imperative, getRelatedListsActions_imperative, getRelatedListsCount_imperative, getRelatedListsInfo_imperative, getSearchFilterMetadata_imperative, getSearchFilterOptions_imperative, getSearchResults_imperative };
|
package/dist/types/src/generated/resources/getUiApiListRecordsByListViewApiNameAndObjectApiName.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PaginationParams as pagination_cursor_PaginationParams } from '../pagination/cursor';
|
|
1
2
|
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
3
|
import { ListRecordCollectionRepresentation as types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation } from '../types/ListRecordCollectionRepresentation';
|
|
3
4
|
export interface ResourceRequestConfig {
|
|
@@ -13,6 +14,7 @@ export interface ResourceRequestConfig {
|
|
|
13
14
|
sortBy?: Array<string>;
|
|
14
15
|
};
|
|
15
16
|
}
|
|
17
|
+
export declare function createPaginationParams(params: ResourceRequestConfig): pagination_cursor_PaginationParams;
|
|
16
18
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
17
19
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
18
20
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
@@ -2,12 +2,15 @@ import { ListReferenceRepresentation as ListReferenceRepresentation_ListReferenc
|
|
|
2
2
|
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, ReaderFragment as $64$luvio_engine_ReaderFragment, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
3
3
|
import { PaginationParams as pagination_cursor_PaginationParams, PaginationMetadata as pagination_cursor_PaginationMetadata, PageMetadata as pagination_cursor_PageMetadata } from '../pagination/cursor';
|
|
4
4
|
import { RecordRepresentation as RecordRepresentation_RecordRepresentation } from './RecordRepresentation';
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const TTL = 30000;
|
|
6
|
+
export declare const VERSION = "614ef19823027c07fa6deb9a149619d2";
|
|
6
7
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
8
|
export declare const RepresentationType: string;
|
|
8
9
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
9
|
-
listViewId: string;
|
|
10
|
+
listViewId: string | null;
|
|
10
11
|
sortBy: Array<string> | null;
|
|
12
|
+
objectApiName: string;
|
|
13
|
+
listViewApiName: string | null;
|
|
11
14
|
}
|
|
12
15
|
export type ListRecordCollectionRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
13
16
|
export type PartialListRecordCollectionRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
@@ -37,8 +40,10 @@ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$lu
|
|
|
37
40
|
* ListRecordCollectionRepresentation
|
|
38
41
|
*
|
|
39
42
|
* Keys:
|
|
40
|
-
* listViewId (string): listInfoETag
|
|
43
|
+
* listViewId (string | null): listInfoETag
|
|
41
44
|
* sortBy (Array<string> | null): sortBy
|
|
45
|
+
* objectApiName (string): listReference.objectApiName
|
|
46
|
+
* listViewApiName (string | null): listReference.listViewApiName
|
|
42
47
|
*/
|
|
43
48
|
export interface ListRecordCollectionRepresentationNormalized {
|
|
44
49
|
/** The total count of records returned. */
|
|
@@ -50,7 +55,7 @@ export interface ListRecordCollectionRepresentationNormalized {
|
|
|
50
55
|
/** The list of fields requested when these records were fetched. */
|
|
51
56
|
fields: Array<string>;
|
|
52
57
|
/** ListInfo ETag. */
|
|
53
|
-
listInfoETag: string;
|
|
58
|
+
listInfoETag: string | null;
|
|
54
59
|
listReference: ListReferenceRepresentation_ListReferenceRepresentation;
|
|
55
60
|
/** The token for the next page of records. */
|
|
56
61
|
nextPageToken: string | null;
|
|
@@ -73,15 +78,17 @@ export interface ListRecordCollectionRepresentationNormalized {
|
|
|
73
78
|
* ListRecordCollectionRepresentation
|
|
74
79
|
*
|
|
75
80
|
* Keys:
|
|
76
|
-
* listViewId (string): listInfoETag
|
|
81
|
+
* listViewId (string | null): listInfoETag
|
|
77
82
|
* sortBy (Array<string> | null): sortBy
|
|
83
|
+
* objectApiName (string): listReference.objectApiName
|
|
84
|
+
* listViewApiName (string | null): listReference.listViewApiName
|
|
78
85
|
*/
|
|
79
86
|
export interface ListRecordCollectionRepresentation {
|
|
80
87
|
count: number;
|
|
81
88
|
currentPageToken: string;
|
|
82
89
|
currentPageUrl: string;
|
|
83
90
|
fields: Array<string>;
|
|
84
|
-
listInfoETag: string;
|
|
91
|
+
listInfoETag: string | null;
|
|
85
92
|
listReference: ListReferenceRepresentation_ListReferenceRepresentation;
|
|
86
93
|
nextPageToken: string | null;
|
|
87
94
|
nextPageUrl: string | null;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot } from '@luvio/engine';
|
|
2
|
+
import { ResourceRequestConfig as resources_getUiApiListRecordsByListViewApiNameAndObjectApiName_ResourceRequestConfig } from '../../../resources/getUiApiListRecordsByListViewApiNameAndObjectApiName';
|
|
3
|
+
import { ListRecordCollectionRepresentation as types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation } from '../../../types/ListRecordCollectionRepresentation';
|
|
4
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: resources_getUiApiListRecordsByListViewApiNameAndObjectApiName_ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
5
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: resources_getUiApiListRecordsByListViewApiNameAndObjectApiName_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ListRecordCollectionRepresentation_ListRecordCollectionRepresentation, any>;
|
package/dist/types/src/main.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export { ingest as ingestDuplicateConfiguration } from './generated/types/Duplic
|
|
|
47
47
|
export { ingest as ingestDuplicatesRepresentation } from './generated/types/DuplicatesRepresentation';
|
|
48
48
|
export { ingest as ingestRelatedListSummaryInfoCollection } from './generated/types/RelatedListSummaryInfoCollectionRepresentation';
|
|
49
49
|
export { ingest as ingestUiApiGraphql } from './generated/types/GraphQLRepresentation';
|
|
50
|
+
export { ingest as ingestListRecords } from './generated/types/ListRecordCollectionRepresentation';
|
|
50
51
|
export { RecordRepresentationQueryEvaluator, InMemoryRecordRepresentationQueryEvaluator, } from './query-evaluation/record-representation-query-evaluator';
|
|
51
52
|
export { createRecordInputFilteredByEditedFields, generateRecordInputForCreate, generateRecordInputForUpdate, getFieldDisplayValue, getRecordInput, getFieldValue, } from './uiapi-static-functions';
|
|
52
53
|
export { buildSelectionFromFields, buildSelectionFromRecord } from './selectors/record';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Luvio, DispatchResourceRequestContext, Snapshot, UnfulfilledSnapshot } from '@luvio/engine';
|
|
2
|
+
import type { GetListRecordsByNameConfig } from '../../../generated/adapters/getListRecordsByName';
|
|
3
|
+
import type { ListRecordCollectionRepresentation } from '../../../generated/types/ListRecordCollectionRepresentation';
|
|
4
|
+
export declare function buildNetworkSnapshot(luvio: Luvio, config: GetListRecordsByNameConfig, options?: DispatchResourceRequestContext, cacheSnapshot?: UnfulfilledSnapshot<ListRecordCollectionRepresentation>): Promise<Snapshot<ListRecordCollectionRepresentation, any>>;
|
package/dist/types/src/raml-artifacts/adapters/getListRecordsByName/onFetchResponseSuccess.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Luvio, FetchResponse, AdapterContext } from '@luvio/engine';
|
|
2
|
+
import type { GetListRecordsByNameConfig } from '../../../generated/adapters/getListRecordsByName';
|
|
3
|
+
import type { ResourceRequestConfig } from '../../../generated/resources/getUiApiListRecordsByListViewApiNameAndObjectApiName';
|
|
4
|
+
import type { ListRecordCollectionRepresentation } from '../../../generated/types/ListRecordCollectionRepresentation';
|
|
5
|
+
export declare function setContext(adapterContext: AdapterContext): void;
|
|
6
|
+
export declare function onFetchResponseSuccess(luvio: Luvio, config: GetListRecordsByNameConfig, resourceParams: ResourceRequestConfig, response: FetchResponse<ListRecordCollectionRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<ListRecordCollectionRepresentation, {}> | import("@luvio/engine").StaleSnapshot<ListRecordCollectionRepresentation, {}> | import("@luvio/engine").PendingSnapshot<ListRecordCollectionRepresentation, any>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AdapterContext, Luvio } from '@luvio/engine';
|
|
2
|
+
import type { ResourceRequestConfig } from '../../../generated/resources/getUiApiListRecordsByListViewApiNameAndObjectApiName';
|
|
3
|
+
export declare function setContext(adapterContext: AdapterContext): void;
|
|
4
|
+
export declare function keyBuilder(luvio: Luvio, params: ResourceRequestConfig): string;
|
|
@@ -14,6 +14,14 @@ export interface ListReferenceQuery {
|
|
|
14
14
|
* @param listRef list reference
|
|
15
15
|
*/
|
|
16
16
|
export declare function addListReference(listRef: ListReferenceRepresentation, context: AdapterContext): void;
|
|
17
|
+
/**
|
|
18
|
+
* Adds a list reference with some specified key so it can be retrieved with #getListReference later.
|
|
19
|
+
*
|
|
20
|
+
* @param listRef
|
|
21
|
+
* @param context
|
|
22
|
+
* @param id - Specified Id to use in the context key
|
|
23
|
+
*/
|
|
24
|
+
export declare function addListReferenceWithId(listRef: ListReferenceRepresentation, context: AdapterContext, id: string | null): void;
|
|
17
25
|
/**
|
|
18
26
|
* Returns a list reference from the store if it's present.
|
|
19
27
|
*
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import type { GetListRecordsByNameConfig } from '../../generated/adapters/getListRecordsByName';
|
|
3
|
+
import type { ListRecordCollectionRepresentation } from '../../generated/types/ListRecordCollectionRepresentation';
|
|
4
|
+
export declare const factory: AdapterFactory<GetListRecordsByNameConfig, ListRecordCollectionRepresentation>;
|