@salesforce/lds-adapters-uiapi 1.247.0 → 1.249.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/generated/adapters/getKeywordSearchResults.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/adapters/getSearchResults.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/adapters/updateListPreferences.d.ts +24 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc_restAdapters.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/patchUiApiListPreferencesByListViewApiNameAndObjectApiName.d.ts +23 -0
- package/dist/es/es2018/types/src/generated/resources/postUiApiSearchResults.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/postUiApiSearchResultsKeyword.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/BatchInputRepresentation.d.ts +4 -3
- package/dist/es/es2018/types/src/generated/types/BatchOperationInputRepresentation.d.ts +4 -3
- package/dist/es/es2018/types/src/generated/types/KeywordSearchRequestInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/KeywordSearchResultsSummaryRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/ListPreferencesInputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/SearchRequestInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/SearchResultsSummaryRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/util/records.d.ts +3 -1
- package/dist/es/es2018/types/src/wire/executeBatchRecordOperations/index.d.ts +16 -0
- package/dist/es/es2018/types/src/wire/executeBatchRecordOperations/postUiApiRecordsBatch.d.ts +40 -0
- package/dist/es/es2018/uiapi-records-service.js +1930 -1510
- package/package.json +2 -2
- package/sfdc/graphqlAdapters.js +7 -6
- package/sfdc/index.js +1895 -1470
- package/sfdc/uiapi-static-functions.js +1 -1
- package/src/raml/api.raml +55 -19
- package/src/raml/luvio.raml +9 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, 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, 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';
|
|
2
|
-
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
3
|
import { SearchFilterInputRepresentation as types_SearchFilterInputRepresentation_SearchFilterInputRepresentation } from '../types/SearchFilterInputRepresentation';
|
|
4
4
|
import { ResourceRequestConfig as resources_postUiApiSearchResultsKeyword_ResourceRequestConfig } from '../resources/postUiApiSearchResultsKeyword';
|
|
5
|
-
import { KeywordSearchResultsSummaryRepresentation as types_KeywordSearchResultsSummaryRepresentation_KeywordSearchResultsSummaryRepresentation
|
|
5
|
+
import { KeywordSearchResultsSummaryRepresentation as types_KeywordSearchResultsSummaryRepresentation_KeywordSearchResultsSummaryRepresentation } from '../types/KeywordSearchResultsSummaryRepresentation';
|
|
6
6
|
export declare const adapterName = "getKeywordSearchResults";
|
|
7
7
|
export declare const getKeywordSearchResults_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
8
|
export declare const getKeywordSearchResults_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
9
|
export interface GetKeywordSearchResultsConfig {
|
|
10
10
|
objectApiName: string;
|
|
11
11
|
q: string;
|
|
12
|
+
configurationName?: string;
|
|
12
13
|
filters?: Array<types_SearchFilterInputRepresentation_SearchFilterInputRepresentation>;
|
|
13
14
|
pageSize?: number;
|
|
14
15
|
pageToken?: string;
|
|
@@ -31,4 +32,3 @@ export type BuildSnapshotContext = {
|
|
|
31
32
|
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_KeywordSearchResultsSummaryRepresentation_KeywordSearchResultsSummaryRepresentation, any>>;
|
|
32
33
|
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_KeywordSearchResultsSummaryRepresentation_KeywordSearchResultsSummaryRepresentation>): $64$luvio_engine_Snapshot<types_KeywordSearchResultsSummaryRepresentation_KeywordSearchResultsSummaryRepresentation, any>;
|
|
33
34
|
export declare const getKeywordSearchResultsAdapterFactory: $64$luvio_engine_AdapterFactory<GetKeywordSearchResultsConfig, types_KeywordSearchResultsSummaryRepresentation_KeywordSearchResultsSummaryRepresentation>;
|
|
34
|
-
export declare const notifyChangeFactory: (luvio: $64$luvio_engine_Luvio, options?: $64$luvio_engine_DispatchResourceRequestContext) => (configs: adapter$45$utils_UncoercedConfiguration<types_KeywordSearchResultsSummaryRepresentation_KeyParams, any>[]) => void;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, 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, 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';
|
|
2
|
-
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
3
|
import { ResourceRequestConfig as resources_postUiApiSearchResults_ResourceRequestConfig } from '../resources/postUiApiSearchResults';
|
|
4
|
-
import { SearchResultsSummaryRepresentation as types_SearchResultsSummaryRepresentation_SearchResultsSummaryRepresentation
|
|
4
|
+
import { SearchResultsSummaryRepresentation as types_SearchResultsSummaryRepresentation_SearchResultsSummaryRepresentation } from '../types/SearchResultsSummaryRepresentation';
|
|
5
5
|
export declare const adapterName = "getSearchResults";
|
|
6
6
|
export declare const getSearchResults_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const getSearchResults_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetSearchResultsConfig {
|
|
9
9
|
q: string;
|
|
10
10
|
answerTypes?: Array<string>;
|
|
11
|
+
configurationName?: string;
|
|
11
12
|
objectApiNames?: Array<string>;
|
|
12
13
|
}
|
|
13
14
|
export declare const createResourceParams: (config: GetSearchResultsConfig) => resources_postUiApiSearchResults_ResourceRequestConfig;
|
|
@@ -27,4 +28,3 @@ export type BuildSnapshotContext = {
|
|
|
27
28
|
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_SearchResultsSummaryRepresentation_SearchResultsSummaryRepresentation, any>>;
|
|
28
29
|
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_SearchResultsSummaryRepresentation_SearchResultsSummaryRepresentation>): $64$luvio_engine_Snapshot<types_SearchResultsSummaryRepresentation_SearchResultsSummaryRepresentation, any>;
|
|
29
30
|
export declare const getSearchResultsAdapterFactory: $64$luvio_engine_AdapterFactory<GetSearchResultsConfig, types_SearchResultsSummaryRepresentation_SearchResultsSummaryRepresentation>;
|
|
30
|
-
export declare const notifyChangeFactory: (luvio: $64$luvio_engine_Luvio, options?: $64$luvio_engine_DispatchResourceRequestContext) => (configs: adapter$45$utils_UncoercedConfiguration<types_SearchResultsSummaryRepresentation_KeyParams, any>[]) => void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ListOrderedByInfoInputRepresentation as types_ListOrderedByInfoInputRepresentation_ListOrderedByInfoInputRepresentation } from '../types/ListOrderedByInfoInputRepresentation';
|
|
4
|
+
import { ResourceRequestConfig as resources_patchUiApiListPreferencesByListViewApiNameAndObjectApiName_ResourceRequestConfig } from '../resources/patchUiApiListPreferencesByListViewApiNameAndObjectApiName';
|
|
5
|
+
import { ListPreferencesRepresentation as types_ListPreferencesRepresentation_ListPreferencesRepresentation } from '../types/ListPreferencesRepresentation';
|
|
6
|
+
export declare const adapterName = "updateListPreferences";
|
|
7
|
+
export declare const updateListPreferences_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
|
+
export declare const updateListPreferences_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
|
+
export interface UpdateListPreferencesConfig {
|
|
10
|
+
listViewApiName: string;
|
|
11
|
+
objectApiName: string;
|
|
12
|
+
columnWidths?: {
|
|
13
|
+
[key: string]: number;
|
|
14
|
+
};
|
|
15
|
+
columnWrap?: {
|
|
16
|
+
[key: string]: boolean;
|
|
17
|
+
};
|
|
18
|
+
orderedBy?: Array<types_ListOrderedByInfoInputRepresentation_ListOrderedByInfoInputRepresentation>;
|
|
19
|
+
}
|
|
20
|
+
export declare const createResourceParams: (config: UpdateListPreferencesConfig) => resources_patchUiApiListPreferencesByListViewApiNameAndObjectApiName_ResourceRequestConfig;
|
|
21
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateListPreferencesConfig>): adapter$45$utils_Untrusted<UpdateListPreferencesConfig>;
|
|
22
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): UpdateListPreferencesConfig | null;
|
|
23
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: UpdateListPreferencesConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ListPreferencesRepresentation_ListPreferencesRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ListPreferencesRepresentation_ListPreferencesRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ListPreferencesRepresentation_ListPreferencesRepresentation, any>>;
|
|
24
|
+
export declare const updateListPreferencesAdapterFactory: $64$luvio_engine_AdapterFactory<UpdateListPreferencesConfig, types_ListPreferencesRepresentation_ListPreferencesRepresentation>;
|
|
@@ -22,6 +22,7 @@ export { deleteListInfoAdapterFactory } from '../adapters/deleteListInfo';
|
|
|
22
22
|
export { updateListInfoByNameAdapterFactory } from '../adapters/updateListInfoByName';
|
|
23
23
|
export { getListObjectInfoAdapterFactory } from '../adapters/getListObjectInfo';
|
|
24
24
|
export { getListPreferencesAdapterFactory } from '../adapters/getListPreferences';
|
|
25
|
+
export { updateListPreferencesAdapterFactory } from '../adapters/updateListPreferences';
|
|
25
26
|
export { getListUiByListViewIdAdapterFactory } from '../adapters/getListUiByListViewId';
|
|
26
27
|
export { getListViewSummaryCollectionAdapterFactory } from '../adapters/getListViewSummaryCollection';
|
|
27
28
|
export { getListUiByApiNameAdapterFactory } from '../adapters/getListUiByApiName';
|
|
@@ -52,6 +53,7 @@ export { getSearchResultsAdapterFactory } from '../adapters/getSearchResults';
|
|
|
52
53
|
export { getKeywordSearchResultsAdapterFactory } from '../adapters/getKeywordSearchResults';
|
|
53
54
|
export { factory as getListUiAdapterFactory } from '../../wire/getListUi';
|
|
54
55
|
export { factory as graphqlBatchAdapterFactory } from '../../wire/graphqlBatch';
|
|
56
|
+
export { factory as executeBatchRecordOperationsAdapterFactory } from '../../wire/executeBatchRecordOperations';
|
|
55
57
|
export { factory as graphqlAdapterFactory } from '../../wire/graphql';
|
|
56
58
|
export { factory as performUpdateRecordQuickActionAdapterFactory } from '../../wire/performUpdateRecordQuickAction';
|
|
57
59
|
export { factory as performQuickActionAdapterFactory } from '../../wire/performQuickAction';
|
|
@@ -4,6 +4,7 @@ declare let createListInfo: any;
|
|
|
4
4
|
declare let createRecord: any;
|
|
5
5
|
declare let deleteListInfo: any;
|
|
6
6
|
declare let deleteRecord: any;
|
|
7
|
+
declare let executeBatchRecordOperations: any;
|
|
7
8
|
declare let getActionOverrides: any;
|
|
8
9
|
declare let getAllApps: any;
|
|
9
10
|
declare let getAppDetails: any;
|
|
@@ -57,6 +58,7 @@ declare let getSearchResults: any;
|
|
|
57
58
|
declare let performQuickAction: any;
|
|
58
59
|
declare let performUpdateRecordQuickAction: any;
|
|
59
60
|
declare let updateListInfoByName: any;
|
|
61
|
+
declare let updateListPreferences: any;
|
|
60
62
|
declare let updateRecord: any;
|
|
61
63
|
declare let updateRecordAvatar: any;
|
|
62
64
|
declare let getActionOverrides_imperative: any;
|
|
@@ -109,4 +111,4 @@ declare let getRelatedListsInfo_imperative: any;
|
|
|
109
111
|
declare let getSearchFilterMetadata_imperative: any;
|
|
110
112
|
declare let getSearchFilterOptions_imperative: any;
|
|
111
113
|
declare let getSearchResults_imperative: any;
|
|
112
|
-
export { createContentDocumentAndVersion, createContentVersion, createListInfo, createRecord, deleteListInfo, deleteRecord, getActionOverrides, getAllApps, getAppDetails, getDuplicateConfiguration, getDuplicates, getGlobalActions, getKeywordSearchResults, getLayout, getLayoutUserState, getListInfoByName, getListInfosByName, getListObjectInfo, getListPreferences, getListRecordsByName, getListUi, getLookupActions, getLookupMetadata, getLookupRecords, getNavItems, getObjectCreateActions, getObjectInfo, getObjectInfos, getPicklistValues, getPicklistValuesByRecordType, getQuickActionDefaults, getQuickActionLayout, 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, updateListInfoByName, updateRecord, updateRecordAvatar, getActionOverrides_imperative, getAllApps_imperative, getAppDetails_imperative, getDuplicateConfiguration_imperative, getDuplicates_imperative, getGlobalActions_imperative, getKeywordSearchResults_imperative, getLayout_imperative, getLayoutUserState_imperative, getListInfoByName_imperative, getListInfosByName_imperative, getListObjectInfo_imperative, getListPreferences_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, getQuickActionLayout_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 };
|
|
114
|
+
export { createContentDocumentAndVersion, createContentVersion, createListInfo, createRecord, deleteListInfo, deleteRecord, executeBatchRecordOperations, getActionOverrides, getAllApps, getAppDetails, getDuplicateConfiguration, getDuplicates, getGlobalActions, getKeywordSearchResults, getLayout, getLayoutUserState, getListInfoByName, getListInfosByName, getListObjectInfo, getListPreferences, getListRecordsByName, getListUi, getLookupActions, getLookupMetadata, getLookupRecords, getNavItems, getObjectCreateActions, getObjectInfo, getObjectInfos, getPicklistValues, getPicklistValuesByRecordType, getQuickActionDefaults, getQuickActionLayout, 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, updateListInfoByName, updateListPreferences, updateRecord, updateRecordAvatar, getActionOverrides_imperative, getAllApps_imperative, getAppDetails_imperative, getDuplicateConfiguration_imperative, getDuplicates_imperative, getGlobalActions_imperative, getKeywordSearchResults_imperative, getLayout_imperative, getLayoutUserState_imperative, getListInfoByName_imperative, getListInfosByName_imperative, getListObjectInfo_imperative, getListPreferences_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, getQuickActionLayout_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 };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ListOrderedByInfoInputRepresentation as types_ListOrderedByInfoInputRepresentation_ListOrderedByInfoInputRepresentation } from '../types/ListOrderedByInfoInputRepresentation';
|
|
2
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
3
|
+
import { ListPreferencesRepresentation as types_ListPreferencesRepresentation_ListPreferencesRepresentation } from '../types/ListPreferencesRepresentation';
|
|
4
|
+
export interface ResourceRequestConfig {
|
|
5
|
+
urlParams: {
|
|
6
|
+
listViewApiName: string;
|
|
7
|
+
objectApiName: string;
|
|
8
|
+
};
|
|
9
|
+
body: {
|
|
10
|
+
columnWidths?: {
|
|
11
|
+
[key: string]: number;
|
|
12
|
+
};
|
|
13
|
+
columnWrap?: {
|
|
14
|
+
[key: string]: boolean;
|
|
15
|
+
};
|
|
16
|
+
orderedBy?: Array<types_ListOrderedByInfoInputRepresentation_ListOrderedByInfoInputRepresentation>;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
20
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ListPreferencesRepresentation_ListPreferencesRepresentation): void;
|
|
21
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ListPreferencesRepresentation_ListPreferencesRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ListPreferencesRepresentation_ListPreferencesRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ListPreferencesRepresentation_ListPreferencesRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ListPreferencesRepresentation_ListPreferencesRepresentation, any>;
|
|
22
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
23
|
+
export default createResourceRequest;
|
|
@@ -6,6 +6,7 @@ export interface ResourceRequestConfig {
|
|
|
6
6
|
};
|
|
7
7
|
body: {
|
|
8
8
|
answerTypes?: Array<string>;
|
|
9
|
+
configurationName?: string;
|
|
9
10
|
objectApiNames?: Array<string>;
|
|
10
11
|
};
|
|
11
12
|
}
|
|
@@ -17,4 +18,3 @@ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourcePar
|
|
|
17
18
|
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SearchResultsSummaryRepresentation_SearchResultsSummaryRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
18
19
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
19
20
|
export default createResourceRequest;
|
|
20
|
-
export declare function createResourceRequestFromRepresentation(representation: types_SearchResultsSummaryRepresentation_SearchResultsSummaryRepresentation): $64$luvio_engine_ResourceRequest;
|
|
@@ -7,6 +7,7 @@ export interface ResourceRequestConfig {
|
|
|
7
7
|
q: string;
|
|
8
8
|
};
|
|
9
9
|
body: {
|
|
10
|
+
configurationName?: string;
|
|
10
11
|
filters?: Array<types_SearchFilterInputRepresentation_SearchFilterInputRepresentation>;
|
|
11
12
|
pageSize?: number;
|
|
12
13
|
pageToken?: string;
|
|
@@ -21,4 +22,3 @@ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourcePar
|
|
|
21
22
|
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_KeywordSearchResultsSummaryRepresentation_KeywordSearchResultsSummaryRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
22
23
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
23
24
|
export default createResourceRequest;
|
|
24
|
-
export declare function createResourceRequestFromRepresentation(representation: types_KeywordSearchResultsSummaryRepresentation_KeywordSearchResultsSummaryRepresentation): $64$luvio_engine_ResourceRequest;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { BatchOperationInputRepresentation as BatchOperationInputRepresentation_BatchOperationInputRepresentation } from './BatchOperationInputRepresentation';
|
|
1
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "d988c61e77c163f6d6c7a5bf6598ef27";
|
|
3
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
5
|
export declare const RepresentationType: string;
|
|
5
6
|
export declare function normalize(input: BatchInputRepresentation, existing: BatchInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): BatchInputRepresentationNormalized;
|
|
@@ -17,7 +18,7 @@ export interface BatchInputRepresentationNormalized {
|
|
|
17
18
|
/** Set allOrNone param */
|
|
18
19
|
allOrNone: boolean;
|
|
19
20
|
/** Set operations */
|
|
20
|
-
operations: Array<
|
|
21
|
+
operations: Array<BatchOperationInputRepresentation_BatchOperationInputRepresentation>;
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
24
|
* Batch Operations on Records.
|
|
@@ -27,5 +28,5 @@ export interface BatchInputRepresentationNormalized {
|
|
|
27
28
|
*/
|
|
28
29
|
export interface BatchInputRepresentation {
|
|
29
30
|
allOrNone: boolean;
|
|
30
|
-
operations: Array<
|
|
31
|
+
operations: Array<BatchOperationInputRepresentation_BatchOperationInputRepresentation>;
|
|
31
32
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { RecordInputRepresentation as RecordInputRepresentation_RecordInputRepresentation } from './RecordInputRepresentation';
|
|
1
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "07421ba238ba58a3c116de475fecd625";
|
|
3
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
5
|
export declare const RepresentationType: string;
|
|
5
6
|
export declare function normalize(input: BatchOperationInputRepresentation, existing: BatchOperationInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): BatchOperationInputRepresentationNormalized;
|
|
@@ -15,7 +16,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
16
|
*/
|
|
16
17
|
export interface BatchOperationInputRepresentationNormalized {
|
|
17
18
|
/** Set records param */
|
|
18
|
-
records: Array<
|
|
19
|
+
records: Array<RecordInputRepresentation_RecordInputRepresentation>;
|
|
19
20
|
/** Set records param */
|
|
20
21
|
type: string;
|
|
21
22
|
}
|
|
@@ -26,6 +27,6 @@ export interface BatchOperationInputRepresentationNormalized {
|
|
|
26
27
|
* (none)
|
|
27
28
|
*/
|
|
28
29
|
export interface BatchOperationInputRepresentation {
|
|
29
|
-
records: Array<
|
|
30
|
+
records: Array<RecordInputRepresentation_RecordInputRepresentation>;
|
|
30
31
|
type: string;
|
|
31
32
|
}
|
package/dist/es/es2018/types/src/generated/types/KeywordSearchRequestInputRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SearchFilterInputRepresentation as SearchFilterInputRepresentation_SearchFilterInputRepresentation } from './SearchFilterInputRepresentation';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "6b1e3370c19789f74d758b46242558b5";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: KeywordSearchRequestInputRepresentation, existing: KeywordSearchRequestInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): KeywordSearchRequestInputRepresentationNormalized;
|
|
@@ -15,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
* (none)
|
|
16
16
|
*/
|
|
17
17
|
export interface KeywordSearchRequestInputRepresentationNormalized {
|
|
18
|
+
/** A configuration name defined in Search Manager */
|
|
19
|
+
configurationName?: string;
|
|
18
20
|
/** Filters to apply on our results */
|
|
19
21
|
filters?: Array<SearchFilterInputRepresentation_SearchFilterInputRepresentation>;
|
|
20
22
|
/** Number of records to return */
|
|
@@ -31,6 +33,7 @@ export interface KeywordSearchRequestInputRepresentationNormalized {
|
|
|
31
33
|
* (none)
|
|
32
34
|
*/
|
|
33
35
|
export interface KeywordSearchRequestInputRepresentation {
|
|
36
|
+
configurationName?: string;
|
|
34
37
|
filters?: Array<SearchFilterInputRepresentation_SearchFilterInputRepresentation>;
|
|
35
38
|
pageSize?: number;
|
|
36
39
|
pageToken?: string;
|
package/dist/es/es2018/types/src/generated/types/KeywordSearchResultsSummaryRepresentation.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { SearchResultCollectionRepresentation as SearchResultCollectionRepresentation_SearchResultCollectionRepresentation } from './SearchResultCollectionRepresentation';
|
|
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, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
3
3
|
export declare const TTL = 200;
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "3102453bf10ea449d9665914d5f5febf";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
8
8
|
query: string;
|
|
9
9
|
objectApiName: string;
|
|
10
|
+
configurationName: string | null;
|
|
10
11
|
}
|
|
11
12
|
export type KeywordSearchResultsSummaryRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
13
|
export type PartialKeywordSearchResultsSummaryRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
@@ -25,8 +26,11 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
25
26
|
* Keys:
|
|
26
27
|
* query (string): query
|
|
27
28
|
* objectApiName (string): objectApiName
|
|
29
|
+
* configurationName (string | null): configurationName
|
|
28
30
|
*/
|
|
29
31
|
export interface KeywordSearchResultsSummaryRepresentationNormalized {
|
|
32
|
+
/** Configuration Name to be applied */
|
|
33
|
+
configurationName: string | null;
|
|
30
34
|
keywordSearchResult: $64$luvio_engine_StoreLink;
|
|
31
35
|
/** Object API name. */
|
|
32
36
|
objectApiName: string;
|
|
@@ -41,8 +45,10 @@ export interface KeywordSearchResultsSummaryRepresentationNormalized {
|
|
|
41
45
|
* Keys:
|
|
42
46
|
* query (string): query
|
|
43
47
|
* objectApiName (string): objectApiName
|
|
48
|
+
* configurationName (string | null): configurationName
|
|
44
49
|
*/
|
|
45
50
|
export interface KeywordSearchResultsSummaryRepresentation {
|
|
51
|
+
configurationName: string | null;
|
|
46
52
|
keywordSearchResult: SearchResultCollectionRepresentation_SearchResultCollectionRepresentation;
|
|
47
53
|
objectApiName: string;
|
|
48
54
|
query: string;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ListOrderedByInfoInputRepresentation as ListOrderedByInfoInputRepresentation_ListOrderedByInfoInputRepresentation } from './ListOrderedByInfoInputRepresentation';
|
|
2
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
+
export declare const VERSION = "5cbdcf5ed83638a3fccdd8201d2e71a3";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: ListPreferencesInputRepresentation, existing: ListPreferencesInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ListPreferencesInputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: ListPreferencesInputRepresentationNormalized, incoming: ListPreferencesInputRepresentationNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ListPreferencesInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Representation of a List Preferences input.
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface ListPreferencesInputRepresentationNormalized {
|
|
18
|
+
/** Input representation for column widths. */
|
|
19
|
+
columnWidths?: {
|
|
20
|
+
[key: string]: number;
|
|
21
|
+
};
|
|
22
|
+
/** Input representation for column wrap. */
|
|
23
|
+
columnWrap?: {
|
|
24
|
+
[key: string]: boolean;
|
|
25
|
+
};
|
|
26
|
+
/** Input representation for ordered by. */
|
|
27
|
+
orderedBy?: Array<ListOrderedByInfoInputRepresentation_ListOrderedByInfoInputRepresentation>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Representation of a List Preferences input.
|
|
31
|
+
*
|
|
32
|
+
* Keys:
|
|
33
|
+
* (none)
|
|
34
|
+
*/
|
|
35
|
+
export interface ListPreferencesInputRepresentation {
|
|
36
|
+
columnWidths?: {
|
|
37
|
+
[key: string]: number;
|
|
38
|
+
};
|
|
39
|
+
columnWrap?: {
|
|
40
|
+
[key: string]: boolean;
|
|
41
|
+
};
|
|
42
|
+
orderedBy?: Array<ListOrderedByInfoInputRepresentation_ListOrderedByInfoInputRepresentation>;
|
|
43
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "91639ee17b0861e5523a6bedb5592dbf";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: SearchRequestInputRepresentation, existing: SearchRequestInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SearchRequestInputRepresentationNormalized;
|
|
@@ -16,6 +16,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
16
|
export interface SearchRequestInputRepresentationNormalized {
|
|
17
17
|
/** The accepted answer types */
|
|
18
18
|
answerTypes?: Array<string>;
|
|
19
|
+
/** A configuration name defined in Search Manager */
|
|
20
|
+
configurationName?: string;
|
|
19
21
|
/** A list of supported objects, such as Account. */
|
|
20
22
|
objectApiNames?: Array<string>;
|
|
21
23
|
}
|
|
@@ -27,5 +29,6 @@ export interface SearchRequestInputRepresentationNormalized {
|
|
|
27
29
|
*/
|
|
28
30
|
export interface SearchRequestInputRepresentation {
|
|
29
31
|
answerTypes?: Array<string>;
|
|
32
|
+
configurationName?: string;
|
|
30
33
|
objectApiNames?: Array<string>;
|
|
31
34
|
}
|
|
@@ -2,11 +2,12 @@ import { KeywordSearchResultsRepresentation as KeywordSearchResultsRepresentatio
|
|
|
2
2
|
import { SearchAnswersResultRepresentation as SearchAnswersResultRepresentation_SearchAnswersResultRepresentation } from './SearchAnswersResultRepresentation';
|
|
3
3
|
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, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
4
4
|
export declare const TTL = 200;
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "877ca614d967f458099a6ae606b1cd1b";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
9
9
|
query: string;
|
|
10
|
+
configurationName: string | null;
|
|
10
11
|
}
|
|
11
12
|
export type SearchResultsSummaryRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
13
|
export type PartialSearchResultsSummaryRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
@@ -24,8 +25,11 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
24
25
|
*
|
|
25
26
|
* Keys:
|
|
26
27
|
* query (string): query
|
|
28
|
+
* configurationName (string | null): configurationName
|
|
27
29
|
*/
|
|
28
30
|
export interface SearchResultsSummaryRepresentationNormalized {
|
|
31
|
+
/** Configuration Name to be applied */
|
|
32
|
+
configurationName: string | null;
|
|
29
33
|
/** Keyword Search Results Response */
|
|
30
34
|
keywordSearchResults: $64$luvio_engine_StoreLink | null;
|
|
31
35
|
/** Search Answers Response */
|
|
@@ -40,8 +44,10 @@ export interface SearchResultsSummaryRepresentationNormalized {
|
|
|
40
44
|
*
|
|
41
45
|
* Keys:
|
|
42
46
|
* query (string): query
|
|
47
|
+
* configurationName (string | null): configurationName
|
|
43
48
|
*/
|
|
44
49
|
export interface SearchResultsSummaryRepresentation {
|
|
50
|
+
configurationName: string | null;
|
|
45
51
|
keywordSearchResults: KeywordSearchResultsRepresentation_KeywordSearchResultsRepresentation | null;
|
|
46
52
|
qnaResult: SearchAnswersResultRepresentation_SearchAnswersResultRepresentation | null;
|
|
47
53
|
query: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProxyGraphNode, GraphNode, Luvio,
|
|
1
|
+
import type { ProxyGraphNode, GraphNode, NormalizedKeyMetadata, FetchResponse, Luvio, ResourceIngest, Snapshot } from '@luvio/engine';
|
|
2
2
|
import type { FieldValueRepresentation } from '../generated/types/FieldValueRepresentation';
|
|
3
3
|
import type { RecordCreateDefaultRecordRepresentation } from '../generated/types/RecordCreateDefaultRecordRepresentation';
|
|
4
4
|
import type { ObjectInfoRepresentation } from '../generated/types/ObjectInfoRepresentation';
|
|
@@ -6,6 +6,7 @@ import type { RecordInputRepresentation } from '../generated/types/RecordInputRe
|
|
|
6
6
|
import type { RecordRepresentation, RecordRepresentationNormalized } from '../generated/types/RecordRepresentation';
|
|
7
7
|
import type { FieldId } from '../primitives/FieldId';
|
|
8
8
|
import type { FieldMapRepresentation, FieldMapRepresentationNormalized } from './fields';
|
|
9
|
+
import type { RecordConflictMap } from '../helpers/RecordRepresentation/resolveConflict';
|
|
9
10
|
type FieldValueRepresentationValue = FieldValueRepresentation['value'];
|
|
10
11
|
export declare const RECORD_REPRESENTATION_ERROR_VERSION = "RECORD_REPRESENTATION_ERROR_VERSION_1";
|
|
11
12
|
export declare const RECORD_REPRESENTATION_ERROR_STORE_METADATA_PARAMS: {
|
|
@@ -114,4 +115,5 @@ export declare function isSuperRecordFieldTrie(a: RecordFieldTrie, b: RecordFiel
|
|
|
114
115
|
export declare function extractRecordIds(record: RecordRepresentation | RecordCreateDefaultRecordRepresentation, luvio: Luvio): {
|
|
115
116
|
[key: string]: boolean;
|
|
116
117
|
};
|
|
118
|
+
export declare function ingestRecordResponse(luvio: Luvio, response: FetchResponse<RecordRepresentation>, recordId: string, recordIngest: ResourceIngest, conflictMap: RecordConflictMap): Snapshot<RecordRepresentation>;
|
|
117
119
|
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AdapterConfigMetadata, Luvio, DispatchResourceRequestContext, AdapterFactory, Snapshot } from '@luvio/engine';
|
|
2
|
+
import type { Untrusted, AdapterValidationConfig } from '../../generated/adapters/adapter-utils';
|
|
3
|
+
import type { ResourceRequestConfig, BatchUpdateResponseRepresentation } from './postUiApiRecordsBatch';
|
|
4
|
+
import type { BatchOperationInputRepresentation } from '../../generated/types/BatchOperationInputRepresentation';
|
|
5
|
+
export declare const adapterName = "executeBatchRecordOperations";
|
|
6
|
+
export declare const executeBatchRecordOperations_ConfigPropertyMetadata: AdapterConfigMetadata[];
|
|
7
|
+
export declare const executeBatchRecordOperations_ConfigPropertyNames: AdapterValidationConfig;
|
|
8
|
+
export interface executeBatchRecordOperationsConfig {
|
|
9
|
+
allOrNone: boolean;
|
|
10
|
+
operations: Array<BatchOperationInputRepresentation>;
|
|
11
|
+
}
|
|
12
|
+
export declare const batchUpdateRecordsCreateResourceParams: (config: executeBatchRecordOperationsConfig) => ResourceRequestConfig;
|
|
13
|
+
export declare function batchUpdateRecordsTypeCheckConfig(untrustedConfig: Untrusted<executeBatchRecordOperationsConfig>): executeBatchRecordOperationsConfig;
|
|
14
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: AdapterValidationConfig): executeBatchRecordOperationsConfig | null;
|
|
15
|
+
export declare function buildNetworkSnapshot(luvio: Luvio, config: executeBatchRecordOperationsConfig, options?: DispatchResourceRequestContext): Promise<Snapshot<BatchUpdateResponseRepresentation>>;
|
|
16
|
+
export declare const factory: AdapterFactory<executeBatchRecordOperationsConfig, BatchUpdateResponseRepresentation>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Luvio, FetchResponse, FulfilledSnapshot, StaleSnapshot, PendingSnapshot, ResourceRequest, NormalizedKeyMetadata, DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
+
import { StoreKeySet } from '@luvio/engine';
|
|
3
|
+
import type { RecordRepresentation } from '../../generated/types/RecordRepresentation';
|
|
4
|
+
import type { BatchOperationInputRepresentation } from '../../generated/types/BatchOperationInputRepresentation';
|
|
5
|
+
export interface BatchUpdateResponseRepresentation {
|
|
6
|
+
hasErrors: boolean;
|
|
7
|
+
results: Array<BatchUpdateResultRepresentation>;
|
|
8
|
+
}
|
|
9
|
+
export interface BatchResultErrorRepresentation {
|
|
10
|
+
errorCode: string;
|
|
11
|
+
message: string;
|
|
12
|
+
}
|
|
13
|
+
export type RecordIdRepresentation = {
|
|
14
|
+
id: string;
|
|
15
|
+
};
|
|
16
|
+
export type BatchUpdateResultRepresentation = BatchUpdateSuccessResultRepresentation | BatchUpdateErrorResultRepresentation;
|
|
17
|
+
export interface BatchUpdateSuccessResultRepresentation {
|
|
18
|
+
statusCode: 200 | 201;
|
|
19
|
+
result: RecordRepresentation | RecordIdRepresentation;
|
|
20
|
+
}
|
|
21
|
+
export interface BatchUpdateErrorResultRepresentation {
|
|
22
|
+
statusCode: 400;
|
|
23
|
+
result: Array<BatchResultErrorRepresentation>;
|
|
24
|
+
}
|
|
25
|
+
export interface ResourceRequestConfig {
|
|
26
|
+
body: {
|
|
27
|
+
allOrNone: boolean;
|
|
28
|
+
operations: Array<BatchOperationInputRepresentation>;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export declare function getResponseCacheKeys(cacheKeyMap: DurableStoreKeyMetadataMap, luvio: Luvio, _resourceParams: ResourceRequestConfig, // For consistency of interface with other adapters
|
|
32
|
+
response: BatchUpdateResponseRepresentation): void;
|
|
33
|
+
export declare function ingestSuccessChildResourceParams(luvio: Luvio, response: BatchUpdateResponseRepresentation): {
|
|
34
|
+
result: BatchUpdateResponseRepresentation;
|
|
35
|
+
seenRecords: StoreKeySet<string | NormalizedKeyMetadata>;
|
|
36
|
+
snapshotState: string;
|
|
37
|
+
};
|
|
38
|
+
export declare function ingestSuccess(luvio: Luvio, response: FetchResponse<BatchUpdateResponseRepresentation>): FulfilledSnapshot<BatchUpdateResponseRepresentation, any> | StaleSnapshot<BatchUpdateResponseRepresentation, any> | PendingSnapshot<BatchUpdateResponseRepresentation, any>;
|
|
39
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): ResourceRequest;
|
|
40
|
+
export default createResourceRequest;
|