@salesforce/lds-adapters-uiapi 1.248.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/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/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/SearchRequestInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/SearchResultsSummaryRepresentation.d.ts +7 -1
- package/dist/es/es2018/uiapi-records-service.js +113 -39
- package/package.json +1 -1
- package/sfdc/graphqlAdapters.js +3 -2
- package/sfdc/index.js +112 -39
- package/sfdc/uiapi-static-functions.js +1 -1
- package/src/raml/api.raml +15 -0
- package/src/raml/luvio.raml +4 -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;
|
|
@@ -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;
|
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;
|
|
@@ -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;
|
|
@@ -4805,22 +4805,12 @@ function _markMissingPath(record, path) {
|
|
|
4805
4805
|
const fieldValueRepresentation = record.object('fields');
|
|
4806
4806
|
const fieldName = path.shift();
|
|
4807
4807
|
if (fieldValueRepresentation.isUndefined(fieldName) === true) {
|
|
4808
|
-
|
|
4809
|
-
// an undefined/non-present __ref if isMissing is present
|
|
4810
|
-
fieldValueRepresentation.write(fieldName, {
|
|
4811
|
-
__ref: undefined,
|
|
4812
|
-
isMissing: true,
|
|
4813
|
-
});
|
|
4808
|
+
writeMissingFieldToStore(fieldValueRepresentation, fieldName);
|
|
4814
4809
|
return;
|
|
4815
4810
|
}
|
|
4816
4811
|
const link = fieldValueRepresentation.link(fieldName);
|
|
4817
4812
|
if (link.isPending()) {
|
|
4818
|
-
|
|
4819
|
-
// an undefined/non-present __ref if isMissing is present
|
|
4820
|
-
fieldValueRepresentation.write(fieldName, {
|
|
4821
|
-
__ref: undefined,
|
|
4822
|
-
isMissing: true,
|
|
4823
|
-
});
|
|
4813
|
+
writeMissingFieldToStore(fieldValueRepresentation, fieldName);
|
|
4824
4814
|
}
|
|
4825
4815
|
else if (path.length > 0 && link.isMissing() === false) {
|
|
4826
4816
|
const fieldValue = link.follow();
|
|
@@ -4836,6 +4826,19 @@ function _markMissingPath(record, path) {
|
|
|
4836
4826
|
}
|
|
4837
4827
|
}
|
|
4838
4828
|
}
|
|
4829
|
+
/**
|
|
4830
|
+
* Graph Node Directly modifies store entries, which is generally a non-starter.
|
|
4831
|
+
* Until we can refactor this mess, you need to use this function to safely mark the RecordRepresentation
|
|
4832
|
+
* as a seenId in the store when you perform this mutation.
|
|
4833
|
+
*/
|
|
4834
|
+
function writeMissingFieldToStore(field, fieldName) {
|
|
4835
|
+
// TODO [W-6900046]: remove cast, make RecordRepresentationNormalized['fields'] accept
|
|
4836
|
+
// an undefined/non-present __ref if isMissing is present
|
|
4837
|
+
field.write(fieldName, {
|
|
4838
|
+
__ref: undefined,
|
|
4839
|
+
isMissing: true,
|
|
4840
|
+
});
|
|
4841
|
+
}
|
|
4839
4842
|
/**
|
|
4840
4843
|
* Tells you if an objectApiName is supported by UI API or not.
|
|
4841
4844
|
* Note: Luvio does not currently support all the entities, the list is limited to UI API supported entities
|
|
@@ -4987,8 +4990,11 @@ function mergeAndRefreshLowerVersionRecord(luvio, incoming, existing, incomingTr
|
|
|
4987
4990
|
return existing;
|
|
4988
4991
|
}
|
|
4989
4992
|
function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
|
|
4990
|
-
const
|
|
4991
|
-
|
|
4993
|
+
const recordKey = keyBuilder$3b(luvio, {
|
|
4994
|
+
recordId: incoming.id,
|
|
4995
|
+
});
|
|
4996
|
+
const incomingNode = luvio.wrapNormalizedGraphNode(incoming, recordKey);
|
|
4997
|
+
const existingNode = luvio.wrapNormalizedGraphNode(existing, recordKey);
|
|
4992
4998
|
const incomingTrackedFieldsTrieRoot = {
|
|
4993
4999
|
name: incoming.apiName,
|
|
4994
5000
|
children: {},
|
|
@@ -4997,9 +5003,6 @@ function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
|
|
|
4997
5003
|
name: existing.apiName,
|
|
4998
5004
|
children: {},
|
|
4999
5005
|
};
|
|
5000
|
-
const recordKey = keyBuilder$3b(luvio, {
|
|
5001
|
-
recordId: incoming.id,
|
|
5002
|
-
});
|
|
5003
5006
|
const trackedFieldsConfig = {
|
|
5004
5007
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMergeConflict(),
|
|
5005
5008
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
@@ -5549,10 +5552,11 @@ function buildCachedSnapshotCachePolicy$S(context, storeLookup) {
|
|
|
5549
5552
|
}
|
|
5550
5553
|
function buildNetworkSnapshotCachePolicy$S(context, coercedAdapterRequestContext) {
|
|
5551
5554
|
const { config, luvio } = context;
|
|
5552
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
5555
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
5553
5556
|
const dispatchOptions = {
|
|
5554
5557
|
resourceRequestContext: {
|
|
5555
5558
|
requestCorrelator,
|
|
5559
|
+
sourceContext,
|
|
5556
5560
|
},
|
|
5557
5561
|
eventObservers,
|
|
5558
5562
|
};
|
|
@@ -8956,10 +8960,11 @@ function buildCachedListUiSnapshot$1(context, storeLookup) {
|
|
|
8956
8960
|
}
|
|
8957
8961
|
function buildNetworkListUiSnapshot$1(context, coercedAdapterRequestContext) {
|
|
8958
8962
|
const { config, listInfo, listUi, luvio } = context;
|
|
8959
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
8963
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
8960
8964
|
const dispatchOptions = {
|
|
8961
8965
|
resourceRequestContext: {
|
|
8962
8966
|
requestCorrelator,
|
|
8967
|
+
sourceContext,
|
|
8963
8968
|
},
|
|
8964
8969
|
eventObservers,
|
|
8965
8970
|
};
|
|
@@ -9320,10 +9325,11 @@ function buildCachedListUiSnapshot(context, storeLookup) {
|
|
|
9320
9325
|
}
|
|
9321
9326
|
function buildNetworkListUiSnapshot(context, coercedAdapterRequestContext) {
|
|
9322
9327
|
const { adapterContext, config, listInfo, listUi, luvio } = context;
|
|
9323
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
9328
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
9324
9329
|
const dispatchOptions = {
|
|
9325
9330
|
resourceRequestContext: {
|
|
9326
9331
|
requestCorrelator,
|
|
9332
|
+
sourceContext,
|
|
9327
9333
|
},
|
|
9328
9334
|
eventObservers,
|
|
9329
9335
|
};
|
|
@@ -11956,10 +11962,11 @@ function buildCachedRecordUiRepresentationSnapshot(context, storeLookup) {
|
|
|
11956
11962
|
}
|
|
11957
11963
|
}
|
|
11958
11964
|
function buildNetworkRecordUiRepresentationSnapshot(context, coercedAdapterRequestContext) {
|
|
11959
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
11965
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
11960
11966
|
const dispatchOptions = {
|
|
11961
11967
|
resourceRequestContext: {
|
|
11962
11968
|
requestCorrelator,
|
|
11969
|
+
sourceContext,
|
|
11963
11970
|
},
|
|
11964
11971
|
eventObservers,
|
|
11965
11972
|
};
|
|
@@ -12170,10 +12177,11 @@ function buildNetworkSnapshot$10(context, coercedAdapterRequestContext) {
|
|
|
12170
12177
|
const { recordId } = config;
|
|
12171
12178
|
const optionalFields = config.optionalFields === undefined ? [] : dedupe(config.optionalFields).sort();
|
|
12172
12179
|
const refresh = buildSnapshotRefresh$3(luvio, config);
|
|
12173
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
12180
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
12174
12181
|
const dispatchOptions = {
|
|
12175
12182
|
resourceRequestContext: {
|
|
12176
12183
|
requestCorrelator,
|
|
12184
|
+
sourceContext,
|
|
12177
12185
|
},
|
|
12178
12186
|
eventObservers,
|
|
12179
12187
|
};
|
|
@@ -12485,7 +12493,7 @@ const notifyChangeFactory = (luvio) => {
|
|
|
12485
12493
|
const responsePromises = [];
|
|
12486
12494
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
12487
12495
|
const { key, record } = entries[i];
|
|
12488
|
-
const node = luvio.wrapNormalizedGraphNode(record);
|
|
12496
|
+
const node = luvio.wrapNormalizedGraphNode(record, key);
|
|
12489
12497
|
const optionalFields = getTrackedFields(key, node, {
|
|
12490
12498
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnNotifyChange(),
|
|
12491
12499
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
@@ -22263,10 +22271,11 @@ function buildCachedSnapshot$3(luvio, config) {
|
|
|
22263
22271
|
}
|
|
22264
22272
|
function buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext) {
|
|
22265
22273
|
const { config, luvio } = context;
|
|
22266
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
22274
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
22267
22275
|
const dispatchOptions = {
|
|
22268
22276
|
resourceRequestContext: {
|
|
22269
22277
|
requestCorrelator,
|
|
22278
|
+
sourceContext,
|
|
22270
22279
|
},
|
|
22271
22280
|
eventObservers,
|
|
22272
22281
|
};
|
|
@@ -23972,10 +23981,11 @@ function buildNetworkSnapshotCachePolicy$m(context, coercedAdapterRequestContext
|
|
|
23972
23981
|
if (uncachedRecordIds !== undefined) {
|
|
23973
23982
|
config.uncachedRecordIds = uncachedRecordIds;
|
|
23974
23983
|
}
|
|
23975
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
23984
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
23976
23985
|
const dispatchOptions = {
|
|
23977
23986
|
resourceRequestContext: {
|
|
23978
23987
|
requestCorrelator,
|
|
23988
|
+
sourceContext,
|
|
23979
23989
|
},
|
|
23980
23990
|
eventObservers,
|
|
23981
23991
|
};
|
|
@@ -30217,12 +30227,38 @@ function validate$h(obj, path = 'SearchAnswersResultRepresentation') {
|
|
|
30217
30227
|
}
|
|
30218
30228
|
|
|
30219
30229
|
const TTL$b = 200;
|
|
30220
|
-
const VERSION$1h = "
|
|
30230
|
+
const VERSION$1h = "877ca614d967f458099a6ae606b1cd1b";
|
|
30221
30231
|
function validate$g(obj, path = 'SearchResultsSummaryRepresentation') {
|
|
30222
30232
|
const v_error = (() => {
|
|
30223
30233
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
30224
30234
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
30225
30235
|
}
|
|
30236
|
+
const obj_configurationName = obj.configurationName;
|
|
30237
|
+
const path_configurationName = path + '.configurationName';
|
|
30238
|
+
let obj_configurationName_union0 = null;
|
|
30239
|
+
const obj_configurationName_union0_error = (() => {
|
|
30240
|
+
if (typeof obj_configurationName !== 'string') {
|
|
30241
|
+
return new TypeError('Expected "string" but received "' + typeof obj_configurationName + '" (at "' + path_configurationName + '")');
|
|
30242
|
+
}
|
|
30243
|
+
})();
|
|
30244
|
+
if (obj_configurationName_union0_error != null) {
|
|
30245
|
+
obj_configurationName_union0 = obj_configurationName_union0_error.message;
|
|
30246
|
+
}
|
|
30247
|
+
let obj_configurationName_union1 = null;
|
|
30248
|
+
const obj_configurationName_union1_error = (() => {
|
|
30249
|
+
if (obj_configurationName !== null) {
|
|
30250
|
+
return new TypeError('Expected "null" but received "' + typeof obj_configurationName + '" (at "' + path_configurationName + '")');
|
|
30251
|
+
}
|
|
30252
|
+
})();
|
|
30253
|
+
if (obj_configurationName_union1_error != null) {
|
|
30254
|
+
obj_configurationName_union1 = obj_configurationName_union1_error.message;
|
|
30255
|
+
}
|
|
30256
|
+
if (obj_configurationName_union0 && obj_configurationName_union1) {
|
|
30257
|
+
let message = 'Object doesn\'t match union (at "' + path_configurationName + '")';
|
|
30258
|
+
message += '\n' + obj_configurationName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
30259
|
+
message += '\n' + obj_configurationName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
30260
|
+
return new TypeError(message);
|
|
30261
|
+
}
|
|
30226
30262
|
const obj_keywordSearchResults = obj.keywordSearchResults;
|
|
30227
30263
|
const path_keywordSearchResults = path + '.keywordSearchResults';
|
|
30228
30264
|
let obj_keywordSearchResults_union0 = null;
|
|
@@ -30296,11 +30332,12 @@ function validate$g(obj, path = 'SearchResultsSummaryRepresentation') {
|
|
|
30296
30332
|
}
|
|
30297
30333
|
const RepresentationType$e = 'SearchResultsSummaryRepresentation';
|
|
30298
30334
|
function keyBuilder$1m(luvio, config) {
|
|
30299
|
-
return keyPrefix + '::' + RepresentationType$e + ':' + config.query;
|
|
30335
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.query + ':' + (config.configurationName === null ? '' : config.configurationName);
|
|
30300
30336
|
}
|
|
30301
30337
|
function keyBuilderFromType$6(luvio, object) {
|
|
30302
30338
|
const keyParams = {
|
|
30303
|
-
query: object.query
|
|
30339
|
+
query: object.query,
|
|
30340
|
+
configurationName: object.configurationName
|
|
30304
30341
|
};
|
|
30305
30342
|
return keyBuilder$1m(luvio, keyParams);
|
|
30306
30343
|
}
|
|
@@ -30348,7 +30385,8 @@ function select$1f(luvio, params) {
|
|
|
30348
30385
|
}
|
|
30349
30386
|
function keyBuilder$1l(luvio, params) {
|
|
30350
30387
|
return keyBuilder$1m(luvio, {
|
|
30351
|
-
query: params.queryParams.q
|
|
30388
|
+
query: params.queryParams.q,
|
|
30389
|
+
configurationName: params.body.configurationName || null
|
|
30352
30390
|
});
|
|
30353
30391
|
}
|
|
30354
30392
|
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -30401,6 +30439,7 @@ const adapterName$d = 'getSearchResults';
|
|
|
30401
30439
|
const getSearchResults_ConfigPropertyMetadata = [
|
|
30402
30440
|
generateParamConfigMetadata('q', true, 1 /* QueryParameter */, 0 /* String */),
|
|
30403
30441
|
generateParamConfigMetadata('answerTypes', false, 2 /* Body */, 0 /* String */, true),
|
|
30442
|
+
generateParamConfigMetadata('configurationName', false, 2 /* Body */, 0 /* String */),
|
|
30404
30443
|
generateParamConfigMetadata('objectApiNames', false, 2 /* Body */, 0 /* String */, true),
|
|
30405
30444
|
];
|
|
30406
30445
|
const getSearchResults_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSearchResults_ConfigPropertyMetadata);
|
|
@@ -30555,12 +30594,38 @@ function validate$f(obj, path = 'SearchFilterInputRepresentation') {
|
|
|
30555
30594
|
}
|
|
30556
30595
|
|
|
30557
30596
|
const TTL$a = 200;
|
|
30558
|
-
const VERSION$1g = "
|
|
30597
|
+
const VERSION$1g = "3102453bf10ea449d9665914d5f5febf";
|
|
30559
30598
|
function validate$e(obj, path = 'KeywordSearchResultsSummaryRepresentation') {
|
|
30560
30599
|
const v_error = (() => {
|
|
30561
30600
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
30562
30601
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
30563
30602
|
}
|
|
30603
|
+
const obj_configurationName = obj.configurationName;
|
|
30604
|
+
const path_configurationName = path + '.configurationName';
|
|
30605
|
+
let obj_configurationName_union0 = null;
|
|
30606
|
+
const obj_configurationName_union0_error = (() => {
|
|
30607
|
+
if (typeof obj_configurationName !== 'string') {
|
|
30608
|
+
return new TypeError('Expected "string" but received "' + typeof obj_configurationName + '" (at "' + path_configurationName + '")');
|
|
30609
|
+
}
|
|
30610
|
+
})();
|
|
30611
|
+
if (obj_configurationName_union0_error != null) {
|
|
30612
|
+
obj_configurationName_union0 = obj_configurationName_union0_error.message;
|
|
30613
|
+
}
|
|
30614
|
+
let obj_configurationName_union1 = null;
|
|
30615
|
+
const obj_configurationName_union1_error = (() => {
|
|
30616
|
+
if (obj_configurationName !== null) {
|
|
30617
|
+
return new TypeError('Expected "null" but received "' + typeof obj_configurationName + '" (at "' + path_configurationName + '")');
|
|
30618
|
+
}
|
|
30619
|
+
})();
|
|
30620
|
+
if (obj_configurationName_union1_error != null) {
|
|
30621
|
+
obj_configurationName_union1 = obj_configurationName_union1_error.message;
|
|
30622
|
+
}
|
|
30623
|
+
if (obj_configurationName_union0 && obj_configurationName_union1) {
|
|
30624
|
+
let message = 'Object doesn\'t match union (at "' + path_configurationName + '")';
|
|
30625
|
+
message += '\n' + obj_configurationName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
30626
|
+
message += '\n' + obj_configurationName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
30627
|
+
return new TypeError(message);
|
|
30628
|
+
}
|
|
30564
30629
|
const obj_keywordSearchResult = obj.keywordSearchResult;
|
|
30565
30630
|
const path_keywordSearchResult = path + '.keywordSearchResult';
|
|
30566
30631
|
const referencepath_keywordSearchResultValidationError = validate$k(obj_keywordSearchResult, path_keywordSearchResult);
|
|
@@ -30589,12 +30654,13 @@ function validate$e(obj, path = 'KeywordSearchResultsSummaryRepresentation') {
|
|
|
30589
30654
|
}
|
|
30590
30655
|
const RepresentationType$d = 'KeywordSearchResultsSummaryRepresentation';
|
|
30591
30656
|
function keyBuilder$1j(luvio, config) {
|
|
30592
|
-
return keyPrefix + '::' + RepresentationType$d + ':' + config.query + ':' + config.objectApiName;
|
|
30657
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.query + ':' + config.objectApiName + ':' + (config.configurationName === null ? '' : config.configurationName);
|
|
30593
30658
|
}
|
|
30594
30659
|
function keyBuilderFromType$5(luvio, object) {
|
|
30595
30660
|
const keyParams = {
|
|
30596
30661
|
query: object.query,
|
|
30597
|
-
objectApiName: object.objectApiName
|
|
30662
|
+
objectApiName: object.objectApiName,
|
|
30663
|
+
configurationName: object.configurationName
|
|
30598
30664
|
};
|
|
30599
30665
|
return keyBuilder$1j(luvio, keyParams);
|
|
30600
30666
|
}
|
|
@@ -30643,7 +30709,8 @@ function select$1d(luvio, params) {
|
|
|
30643
30709
|
function keyBuilder$1i(luvio, params) {
|
|
30644
30710
|
return keyBuilder$1j(luvio, {
|
|
30645
30711
|
query: params.queryParams.q,
|
|
30646
|
-
objectApiName: params.queryParams.objectApiName
|
|
30712
|
+
objectApiName: params.queryParams.objectApiName,
|
|
30713
|
+
configurationName: params.body.configurationName || null
|
|
30647
30714
|
});
|
|
30648
30715
|
}
|
|
30649
30716
|
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -30696,6 +30763,7 @@ const adapterName$c = 'getKeywordSearchResults';
|
|
|
30696
30763
|
const getKeywordSearchResults_ConfigPropertyMetadata = [
|
|
30697
30764
|
generateParamConfigMetadata('objectApiName', true, 1 /* QueryParameter */, 0 /* String */),
|
|
30698
30765
|
generateParamConfigMetadata('q', true, 1 /* QueryParameter */, 0 /* String */),
|
|
30766
|
+
generateParamConfigMetadata('configurationName', false, 2 /* Body */, 0 /* String */),
|
|
30699
30767
|
generateParamConfigMetadata('filters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
30700
30768
|
generateParamConfigMetadata('pageSize', false, 2 /* Body */, 3 /* Integer */),
|
|
30701
30769
|
generateParamConfigMetadata('pageToken', false, 2 /* Body */, 0 /* String */),
|
|
@@ -47485,10 +47553,11 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
47485
47553
|
}
|
|
47486
47554
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
47487
47555
|
const { luvio, config } = context;
|
|
47488
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
47556
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
47489
47557
|
const dispatchOptions = {
|
|
47490
47558
|
resourceRequestContext: {
|
|
47491
47559
|
requestCorrelator,
|
|
47560
|
+
sourceContext,
|
|
47492
47561
|
luvioRequestMethod: 'get',
|
|
47493
47562
|
},
|
|
47494
47563
|
eventObservers,
|
|
@@ -49778,10 +49847,11 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
49778
49847
|
}
|
|
49779
49848
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
49780
49849
|
const { config, adapterContext, luvio } = context;
|
|
49781
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
49850
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
49782
49851
|
const dispatchOptions = {
|
|
49783
49852
|
resourceRequestContext: {
|
|
49784
49853
|
requestCorrelator,
|
|
49854
|
+
sourceContext,
|
|
49785
49855
|
},
|
|
49786
49856
|
eventObservers,
|
|
49787
49857
|
};
|
|
@@ -50412,10 +50482,11 @@ const buildCachedSnapshot$1 = (luvio, context, config) => {
|
|
|
50412
50482
|
};
|
|
50413
50483
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
50414
50484
|
const { config, adapterContext, luvio } = context;
|
|
50415
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
50485
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
50416
50486
|
const dispatchOptions = {
|
|
50417
50487
|
resourceRequestContext: {
|
|
50418
50488
|
requestCorrelator,
|
|
50489
|
+
sourceContext,
|
|
50419
50490
|
},
|
|
50420
50491
|
eventObservers,
|
|
50421
50492
|
};
|
|
@@ -51052,10 +51123,11 @@ function buildCachedSnapshot(luvio, context, config) {
|
|
|
51052
51123
|
}
|
|
51053
51124
|
const buildNetworkSnapshotCachePolicy = (context, coercedAdapterRequestContext) => {
|
|
51054
51125
|
const { config, adapterContext, luvio } = context;
|
|
51055
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
51126
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
51056
51127
|
const dispatchOptions = {
|
|
51057
51128
|
resourceRequestContext: {
|
|
51058
51129
|
requestCorrelator,
|
|
51130
|
+
sourceContext,
|
|
51059
51131
|
},
|
|
51060
51132
|
eventObservers,
|
|
51061
51133
|
};
|
|
@@ -51811,10 +51883,11 @@ function createDispatchResourceRequestContext$1(requestContext) {
|
|
|
51811
51883
|
let dispatchOptions = undefined;
|
|
51812
51884
|
if (requestContext !== undefined) {
|
|
51813
51885
|
const coercedAdapterRequestContext = coerceAdapterRequestContext(requestContext);
|
|
51814
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
51886
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
51815
51887
|
dispatchOptions = {
|
|
51816
51888
|
resourceRequestContext: {
|
|
51817
51889
|
requestCorrelator,
|
|
51890
|
+
sourceContext,
|
|
51818
51891
|
luvioRequestMethod: undefined,
|
|
51819
51892
|
},
|
|
51820
51893
|
eventObservers,
|
|
@@ -51889,10 +51962,11 @@ function createDispatchResourceRequestContext(requestContext) {
|
|
|
51889
51962
|
let dispatchOptions = undefined;
|
|
51890
51963
|
if (requestContext !== undefined) {
|
|
51891
51964
|
const coercedAdapterRequestContext = coerceAdapterRequestContext(requestContext);
|
|
51892
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
51965
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
51893
51966
|
dispatchOptions = {
|
|
51894
51967
|
resourceRequestContext: {
|
|
51895
51968
|
requestCorrelator,
|
|
51969
|
+
sourceContext,
|
|
51896
51970
|
luvioRequestMethod: undefined,
|
|
51897
51971
|
},
|
|
51898
51972
|
eventObservers,
|
package/package.json
CHANGED
package/sfdc/graphqlAdapters.js
CHANGED
|
@@ -17444,10 +17444,11 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
17444
17444
|
}
|
|
17445
17445
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
17446
17446
|
const { luvio, config } = context;
|
|
17447
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
17447
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
17448
17448
|
const dispatchOptions = {
|
|
17449
17449
|
resourceRequestContext: {
|
|
17450
17450
|
requestCorrelator,
|
|
17451
|
+
sourceContext,
|
|
17451
17452
|
luvioRequestMethod: 'get',
|
|
17452
17453
|
},
|
|
17453
17454
|
eventObservers,
|
|
@@ -17996,4 +17997,4 @@ register({
|
|
|
17996
17997
|
});
|
|
17997
17998
|
|
|
17998
17999
|
export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
|
|
17999
|
-
// version: 1.
|
|
18000
|
+
// version: 1.249.0-15efc7f9b
|
package/sfdc/index.js
CHANGED
|
@@ -4671,22 +4671,12 @@ function _markMissingPath(record, path) {
|
|
|
4671
4671
|
const fieldValueRepresentation = record.object('fields');
|
|
4672
4672
|
const fieldName = path.shift();
|
|
4673
4673
|
if (fieldValueRepresentation.isUndefined(fieldName) === true) {
|
|
4674
|
-
|
|
4675
|
-
// an undefined/non-present __ref if isMissing is present
|
|
4676
|
-
fieldValueRepresentation.write(fieldName, {
|
|
4677
|
-
__ref: undefined,
|
|
4678
|
-
isMissing: true,
|
|
4679
|
-
});
|
|
4674
|
+
writeMissingFieldToStore(fieldValueRepresentation, fieldName);
|
|
4680
4675
|
return;
|
|
4681
4676
|
}
|
|
4682
4677
|
const link = fieldValueRepresentation.link(fieldName);
|
|
4683
4678
|
if (link.isPending()) {
|
|
4684
|
-
|
|
4685
|
-
// an undefined/non-present __ref if isMissing is present
|
|
4686
|
-
fieldValueRepresentation.write(fieldName, {
|
|
4687
|
-
__ref: undefined,
|
|
4688
|
-
isMissing: true,
|
|
4689
|
-
});
|
|
4679
|
+
writeMissingFieldToStore(fieldValueRepresentation, fieldName);
|
|
4690
4680
|
}
|
|
4691
4681
|
else if (path.length > 0 && link.isMissing() === false) {
|
|
4692
4682
|
const fieldValue = link.follow();
|
|
@@ -4702,6 +4692,19 @@ function _markMissingPath(record, path) {
|
|
|
4702
4692
|
}
|
|
4703
4693
|
}
|
|
4704
4694
|
}
|
|
4695
|
+
/**
|
|
4696
|
+
* Graph Node Directly modifies store entries, which is generally a non-starter.
|
|
4697
|
+
* Until we can refactor this mess, you need to use this function to safely mark the RecordRepresentation
|
|
4698
|
+
* as a seenId in the store when you perform this mutation.
|
|
4699
|
+
*/
|
|
4700
|
+
function writeMissingFieldToStore(field, fieldName) {
|
|
4701
|
+
// TODO [W-6900046]: remove cast, make RecordRepresentationNormalized['fields'] accept
|
|
4702
|
+
// an undefined/non-present __ref if isMissing is present
|
|
4703
|
+
field.write(fieldName, {
|
|
4704
|
+
__ref: undefined,
|
|
4705
|
+
isMissing: true,
|
|
4706
|
+
});
|
|
4707
|
+
}
|
|
4705
4708
|
/**
|
|
4706
4709
|
* Tells you if an objectApiName is supported by UI API or not.
|
|
4707
4710
|
* Note: Luvio does not currently support all the entities, the list is limited to UI API supported entities
|
|
@@ -4853,8 +4856,11 @@ function mergeAndRefreshLowerVersionRecord(luvio, incoming, existing, incomingTr
|
|
|
4853
4856
|
return existing;
|
|
4854
4857
|
}
|
|
4855
4858
|
function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
|
|
4856
|
-
const
|
|
4857
|
-
|
|
4859
|
+
const recordKey = keyBuilder$1$(luvio, {
|
|
4860
|
+
recordId: incoming.id,
|
|
4861
|
+
});
|
|
4862
|
+
const incomingNode = luvio.wrapNormalizedGraphNode(incoming, recordKey);
|
|
4863
|
+
const existingNode = luvio.wrapNormalizedGraphNode(existing, recordKey);
|
|
4858
4864
|
const incomingTrackedFieldsTrieRoot = {
|
|
4859
4865
|
name: incoming.apiName,
|
|
4860
4866
|
children: {},
|
|
@@ -4863,9 +4869,6 @@ function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
|
|
|
4863
4869
|
name: existing.apiName,
|
|
4864
4870
|
children: {},
|
|
4865
4871
|
};
|
|
4866
|
-
const recordKey = keyBuilder$1$(luvio, {
|
|
4867
|
-
recordId: incoming.id,
|
|
4868
|
-
});
|
|
4869
4872
|
const trackedFieldsConfig = {
|
|
4870
4873
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMergeConflict(),
|
|
4871
4874
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
@@ -5415,10 +5418,11 @@ function buildCachedSnapshotCachePolicy$N(context, storeLookup) {
|
|
|
5415
5418
|
}
|
|
5416
5419
|
function buildNetworkSnapshotCachePolicy$N(context, coercedAdapterRequestContext) {
|
|
5417
5420
|
const { config, luvio } = context;
|
|
5418
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
5421
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
5419
5422
|
const dispatchOptions = {
|
|
5420
5423
|
resourceRequestContext: {
|
|
5421
5424
|
requestCorrelator,
|
|
5425
|
+
sourceContext,
|
|
5422
5426
|
},
|
|
5423
5427
|
eventObservers,
|
|
5424
5428
|
};
|
|
@@ -8488,10 +8492,11 @@ function buildCachedListUiSnapshot$1(context, storeLookup) {
|
|
|
8488
8492
|
}
|
|
8489
8493
|
function buildNetworkListUiSnapshot$1(context, coercedAdapterRequestContext) {
|
|
8490
8494
|
const { config, listInfo, listUi, luvio } = context;
|
|
8491
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
8495
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
8492
8496
|
const dispatchOptions = {
|
|
8493
8497
|
resourceRequestContext: {
|
|
8494
8498
|
requestCorrelator,
|
|
8499
|
+
sourceContext,
|
|
8495
8500
|
},
|
|
8496
8501
|
eventObservers,
|
|
8497
8502
|
};
|
|
@@ -8852,10 +8857,11 @@ function buildCachedListUiSnapshot(context, storeLookup) {
|
|
|
8852
8857
|
}
|
|
8853
8858
|
function buildNetworkListUiSnapshot(context, coercedAdapterRequestContext) {
|
|
8854
8859
|
const { adapterContext, config, listInfo, listUi, luvio } = context;
|
|
8855
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
8860
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
8856
8861
|
const dispatchOptions = {
|
|
8857
8862
|
resourceRequestContext: {
|
|
8858
8863
|
requestCorrelator,
|
|
8864
|
+
sourceContext,
|
|
8859
8865
|
},
|
|
8860
8866
|
eventObservers,
|
|
8861
8867
|
};
|
|
@@ -11488,10 +11494,11 @@ function buildCachedRecordUiRepresentationSnapshot(context, storeLookup) {
|
|
|
11488
11494
|
}
|
|
11489
11495
|
}
|
|
11490
11496
|
function buildNetworkRecordUiRepresentationSnapshot(context, coercedAdapterRequestContext) {
|
|
11491
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
11497
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
11492
11498
|
const dispatchOptions = {
|
|
11493
11499
|
resourceRequestContext: {
|
|
11494
11500
|
requestCorrelator,
|
|
11501
|
+
sourceContext,
|
|
11495
11502
|
},
|
|
11496
11503
|
eventObservers,
|
|
11497
11504
|
};
|
|
@@ -11702,10 +11709,11 @@ function buildNetworkSnapshot$Z(context, coercedAdapterRequestContext) {
|
|
|
11702
11709
|
const { recordId } = config;
|
|
11703
11710
|
const optionalFields = config.optionalFields === undefined ? [] : dedupe(config.optionalFields).sort();
|
|
11704
11711
|
const refresh = buildSnapshotRefresh$3(luvio, config);
|
|
11705
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
11712
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
11706
11713
|
const dispatchOptions = {
|
|
11707
11714
|
resourceRequestContext: {
|
|
11708
11715
|
requestCorrelator,
|
|
11716
|
+
sourceContext,
|
|
11709
11717
|
},
|
|
11710
11718
|
eventObservers,
|
|
11711
11719
|
};
|
|
@@ -12017,7 +12025,7 @@ const notifyChangeFactory = (luvio) => {
|
|
|
12017
12025
|
const responsePromises = [];
|
|
12018
12026
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
12019
12027
|
const { key, record } = entries[i];
|
|
12020
|
-
const node = luvio.wrapNormalizedGraphNode(record);
|
|
12028
|
+
const node = luvio.wrapNormalizedGraphNode(record, key);
|
|
12021
12029
|
const optionalFields = getTrackedFields(key, node, {
|
|
12022
12030
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnNotifyChange(),
|
|
12023
12031
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
@@ -21658,10 +21666,11 @@ function buildCachedSnapshot$3(luvio, config) {
|
|
|
21658
21666
|
}
|
|
21659
21667
|
function buildNetworkSnapshotCachePolicy$m(context, coercedAdapterRequestContext) {
|
|
21660
21668
|
const { config, luvio } = context;
|
|
21661
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
21669
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
21662
21670
|
const dispatchOptions = {
|
|
21663
21671
|
resourceRequestContext: {
|
|
21664
21672
|
requestCorrelator,
|
|
21673
|
+
sourceContext,
|
|
21665
21674
|
},
|
|
21666
21675
|
eventObservers,
|
|
21667
21676
|
};
|
|
@@ -23368,10 +23377,11 @@ function buildNetworkSnapshotCachePolicy$k(context, coercedAdapterRequestContext
|
|
|
23368
23377
|
if (uncachedRecordIds !== undefined) {
|
|
23369
23378
|
config.uncachedRecordIds = uncachedRecordIds;
|
|
23370
23379
|
}
|
|
23371
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
23380
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
23372
23381
|
const dispatchOptions = {
|
|
23373
23382
|
resourceRequestContext: {
|
|
23374
23383
|
requestCorrelator,
|
|
23384
|
+
sourceContext,
|
|
23375
23385
|
},
|
|
23376
23386
|
eventObservers,
|
|
23377
23387
|
};
|
|
@@ -29614,12 +29624,38 @@ function validate$d(obj, path = 'SearchAnswersResultRepresentation') {
|
|
|
29614
29624
|
}
|
|
29615
29625
|
|
|
29616
29626
|
const TTL$6 = 200;
|
|
29617
|
-
const VERSION$9 = "
|
|
29627
|
+
const VERSION$9 = "877ca614d967f458099a6ae606b1cd1b";
|
|
29618
29628
|
function validate$c(obj, path = 'SearchResultsSummaryRepresentation') {
|
|
29619
29629
|
const v_error = (() => {
|
|
29620
29630
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
29621
29631
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
29622
29632
|
}
|
|
29633
|
+
const obj_configurationName = obj.configurationName;
|
|
29634
|
+
const path_configurationName = path + '.configurationName';
|
|
29635
|
+
let obj_configurationName_union0 = null;
|
|
29636
|
+
const obj_configurationName_union0_error = (() => {
|
|
29637
|
+
if (typeof obj_configurationName !== 'string') {
|
|
29638
|
+
return new TypeError('Expected "string" but received "' + typeof obj_configurationName + '" (at "' + path_configurationName + '")');
|
|
29639
|
+
}
|
|
29640
|
+
})();
|
|
29641
|
+
if (obj_configurationName_union0_error != null) {
|
|
29642
|
+
obj_configurationName_union0 = obj_configurationName_union0_error.message;
|
|
29643
|
+
}
|
|
29644
|
+
let obj_configurationName_union1 = null;
|
|
29645
|
+
const obj_configurationName_union1_error = (() => {
|
|
29646
|
+
if (obj_configurationName !== null) {
|
|
29647
|
+
return new TypeError('Expected "null" but received "' + typeof obj_configurationName + '" (at "' + path_configurationName + '")');
|
|
29648
|
+
}
|
|
29649
|
+
})();
|
|
29650
|
+
if (obj_configurationName_union1_error != null) {
|
|
29651
|
+
obj_configurationName_union1 = obj_configurationName_union1_error.message;
|
|
29652
|
+
}
|
|
29653
|
+
if (obj_configurationName_union0 && obj_configurationName_union1) {
|
|
29654
|
+
let message = 'Object doesn\'t match union (at "' + path_configurationName + '")';
|
|
29655
|
+
message += '\n' + obj_configurationName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
29656
|
+
message += '\n' + obj_configurationName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
29657
|
+
return new TypeError(message);
|
|
29658
|
+
}
|
|
29623
29659
|
const obj_keywordSearchResults = obj.keywordSearchResults;
|
|
29624
29660
|
const path_keywordSearchResults = path + '.keywordSearchResults';
|
|
29625
29661
|
let obj_keywordSearchResults_union0 = null;
|
|
@@ -29693,11 +29729,12 @@ function validate$c(obj, path = 'SearchResultsSummaryRepresentation') {
|
|
|
29693
29729
|
}
|
|
29694
29730
|
const RepresentationType$9 = 'SearchResultsSummaryRepresentation';
|
|
29695
29731
|
function keyBuilder$g(luvio, config) {
|
|
29696
|
-
return keyPrefix + '::' + RepresentationType$9 + ':' + config.query;
|
|
29732
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.query + ':' + (config.configurationName === null ? '' : config.configurationName);
|
|
29697
29733
|
}
|
|
29698
29734
|
function keyBuilderFromType$6(luvio, object) {
|
|
29699
29735
|
const keyParams = {
|
|
29700
|
-
query: object.query
|
|
29736
|
+
query: object.query,
|
|
29737
|
+
configurationName: object.configurationName
|
|
29701
29738
|
};
|
|
29702
29739
|
return keyBuilder$g(luvio, keyParams);
|
|
29703
29740
|
}
|
|
@@ -29745,7 +29782,8 @@ function select$9(luvio, params) {
|
|
|
29745
29782
|
}
|
|
29746
29783
|
function keyBuilder$f(luvio, params) {
|
|
29747
29784
|
return keyBuilder$g(luvio, {
|
|
29748
|
-
query: params.queryParams.q
|
|
29785
|
+
query: params.queryParams.q,
|
|
29786
|
+
configurationName: params.body.configurationName || null
|
|
29749
29787
|
});
|
|
29750
29788
|
}
|
|
29751
29789
|
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -29798,6 +29836,7 @@ const adapterName$c = 'getSearchResults';
|
|
|
29798
29836
|
const getSearchResults_ConfigPropertyMetadata = [
|
|
29799
29837
|
generateParamConfigMetadata('q', true, 1 /* QueryParameter */, 0 /* String */),
|
|
29800
29838
|
generateParamConfigMetadata('answerTypes', false, 2 /* Body */, 0 /* String */, true),
|
|
29839
|
+
generateParamConfigMetadata('configurationName', false, 2 /* Body */, 0 /* String */),
|
|
29801
29840
|
generateParamConfigMetadata('objectApiNames', false, 2 /* Body */, 0 /* String */, true),
|
|
29802
29841
|
];
|
|
29803
29842
|
const getSearchResults_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSearchResults_ConfigPropertyMetadata);
|
|
@@ -29952,12 +29991,38 @@ function validate$b(obj, path = 'SearchFilterInputRepresentation') {
|
|
|
29952
29991
|
}
|
|
29953
29992
|
|
|
29954
29993
|
const TTL$5 = 200;
|
|
29955
|
-
const VERSION$8 = "
|
|
29994
|
+
const VERSION$8 = "3102453bf10ea449d9665914d5f5febf";
|
|
29956
29995
|
function validate$a(obj, path = 'KeywordSearchResultsSummaryRepresentation') {
|
|
29957
29996
|
const v_error = (() => {
|
|
29958
29997
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
29959
29998
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
29960
29999
|
}
|
|
30000
|
+
const obj_configurationName = obj.configurationName;
|
|
30001
|
+
const path_configurationName = path + '.configurationName';
|
|
30002
|
+
let obj_configurationName_union0 = null;
|
|
30003
|
+
const obj_configurationName_union0_error = (() => {
|
|
30004
|
+
if (typeof obj_configurationName !== 'string') {
|
|
30005
|
+
return new TypeError('Expected "string" but received "' + typeof obj_configurationName + '" (at "' + path_configurationName + '")');
|
|
30006
|
+
}
|
|
30007
|
+
})();
|
|
30008
|
+
if (obj_configurationName_union0_error != null) {
|
|
30009
|
+
obj_configurationName_union0 = obj_configurationName_union0_error.message;
|
|
30010
|
+
}
|
|
30011
|
+
let obj_configurationName_union1 = null;
|
|
30012
|
+
const obj_configurationName_union1_error = (() => {
|
|
30013
|
+
if (obj_configurationName !== null) {
|
|
30014
|
+
return new TypeError('Expected "null" but received "' + typeof obj_configurationName + '" (at "' + path_configurationName + '")');
|
|
30015
|
+
}
|
|
30016
|
+
})();
|
|
30017
|
+
if (obj_configurationName_union1_error != null) {
|
|
30018
|
+
obj_configurationName_union1 = obj_configurationName_union1_error.message;
|
|
30019
|
+
}
|
|
30020
|
+
if (obj_configurationName_union0 && obj_configurationName_union1) {
|
|
30021
|
+
let message = 'Object doesn\'t match union (at "' + path_configurationName + '")';
|
|
30022
|
+
message += '\n' + obj_configurationName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
30023
|
+
message += '\n' + obj_configurationName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
30024
|
+
return new TypeError(message);
|
|
30025
|
+
}
|
|
29961
30026
|
const obj_keywordSearchResult = obj.keywordSearchResult;
|
|
29962
30027
|
const path_keywordSearchResult = path + '.keywordSearchResult';
|
|
29963
30028
|
const referencepath_keywordSearchResultValidationError = validate$g(obj_keywordSearchResult, path_keywordSearchResult);
|
|
@@ -29986,12 +30051,13 @@ function validate$a(obj, path = 'KeywordSearchResultsSummaryRepresentation') {
|
|
|
29986
30051
|
}
|
|
29987
30052
|
const RepresentationType$8 = 'KeywordSearchResultsSummaryRepresentation';
|
|
29988
30053
|
function keyBuilder$d(luvio, config) {
|
|
29989
|
-
return keyPrefix + '::' + RepresentationType$8 + ':' + config.query + ':' + config.objectApiName;
|
|
30054
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.query + ':' + config.objectApiName + ':' + (config.configurationName === null ? '' : config.configurationName);
|
|
29990
30055
|
}
|
|
29991
30056
|
function keyBuilderFromType$5(luvio, object) {
|
|
29992
30057
|
const keyParams = {
|
|
29993
30058
|
query: object.query,
|
|
29994
|
-
objectApiName: object.objectApiName
|
|
30059
|
+
objectApiName: object.objectApiName,
|
|
30060
|
+
configurationName: object.configurationName
|
|
29995
30061
|
};
|
|
29996
30062
|
return keyBuilder$d(luvio, keyParams);
|
|
29997
30063
|
}
|
|
@@ -30040,7 +30106,8 @@ function select$7(luvio, params) {
|
|
|
30040
30106
|
function keyBuilder$c(luvio, params) {
|
|
30041
30107
|
return keyBuilder$d(luvio, {
|
|
30042
30108
|
query: params.queryParams.q,
|
|
30043
|
-
objectApiName: params.queryParams.objectApiName
|
|
30109
|
+
objectApiName: params.queryParams.objectApiName,
|
|
30110
|
+
configurationName: params.body.configurationName || null
|
|
30044
30111
|
});
|
|
30045
30112
|
}
|
|
30046
30113
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -30093,6 +30160,7 @@ const adapterName$b = 'getKeywordSearchResults';
|
|
|
30093
30160
|
const getKeywordSearchResults_ConfigPropertyMetadata = [
|
|
30094
30161
|
generateParamConfigMetadata('objectApiName', true, 1 /* QueryParameter */, 0 /* String */),
|
|
30095
30162
|
generateParamConfigMetadata('q', true, 1 /* QueryParameter */, 0 /* String */),
|
|
30163
|
+
generateParamConfigMetadata('configurationName', false, 2 /* Body */, 0 /* String */),
|
|
30096
30164
|
generateParamConfigMetadata('filters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
30097
30165
|
generateParamConfigMetadata('pageSize', false, 2 /* Body */, 3 /* Integer */),
|
|
30098
30166
|
generateParamConfigMetadata('pageToken', false, 2 /* Body */, 0 /* String */),
|
|
@@ -32334,10 +32402,11 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
32334
32402
|
}
|
|
32335
32403
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
32336
32404
|
const { config, adapterContext, luvio } = context;
|
|
32337
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
32405
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
32338
32406
|
const dispatchOptions = {
|
|
32339
32407
|
resourceRequestContext: {
|
|
32340
32408
|
requestCorrelator,
|
|
32409
|
+
sourceContext,
|
|
32341
32410
|
},
|
|
32342
32411
|
eventObservers,
|
|
32343
32412
|
};
|
|
@@ -32968,10 +33037,11 @@ const buildCachedSnapshot$1 = (luvio, context, config) => {
|
|
|
32968
33037
|
};
|
|
32969
33038
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
32970
33039
|
const { config, adapterContext, luvio } = context;
|
|
32971
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
33040
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
32972
33041
|
const dispatchOptions = {
|
|
32973
33042
|
resourceRequestContext: {
|
|
32974
33043
|
requestCorrelator,
|
|
33044
|
+
sourceContext,
|
|
32975
33045
|
},
|
|
32976
33046
|
eventObservers,
|
|
32977
33047
|
};
|
|
@@ -33608,10 +33678,11 @@ function buildCachedSnapshot(luvio, context, config) {
|
|
|
33608
33678
|
}
|
|
33609
33679
|
const buildNetworkSnapshotCachePolicy = (context, coercedAdapterRequestContext) => {
|
|
33610
33680
|
const { config, adapterContext, luvio } = context;
|
|
33611
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
33681
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
33612
33682
|
const dispatchOptions = {
|
|
33613
33683
|
resourceRequestContext: {
|
|
33614
33684
|
requestCorrelator,
|
|
33685
|
+
sourceContext,
|
|
33615
33686
|
},
|
|
33616
33687
|
eventObservers,
|
|
33617
33688
|
};
|
|
@@ -34367,10 +34438,11 @@ function createDispatchResourceRequestContext$1(requestContext) {
|
|
|
34367
34438
|
let dispatchOptions = undefined;
|
|
34368
34439
|
if (requestContext !== undefined) {
|
|
34369
34440
|
const coercedAdapterRequestContext = coerceAdapterRequestContext(requestContext);
|
|
34370
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
34441
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
34371
34442
|
dispatchOptions = {
|
|
34372
34443
|
resourceRequestContext: {
|
|
34373
34444
|
requestCorrelator,
|
|
34445
|
+
sourceContext,
|
|
34374
34446
|
luvioRequestMethod: undefined,
|
|
34375
34447
|
},
|
|
34376
34448
|
eventObservers,
|
|
@@ -34445,10 +34517,11 @@ function createDispatchResourceRequestContext(requestContext) {
|
|
|
34445
34517
|
let dispatchOptions = undefined;
|
|
34446
34518
|
if (requestContext !== undefined) {
|
|
34447
34519
|
const coercedAdapterRequestContext = coerceAdapterRequestContext(requestContext);
|
|
34448
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
34520
|
+
const { networkPriority, requestCorrelator, eventObservers, sourceContext } = coercedAdapterRequestContext;
|
|
34449
34521
|
dispatchOptions = {
|
|
34450
34522
|
resourceRequestContext: {
|
|
34451
34523
|
requestCorrelator,
|
|
34524
|
+
sourceContext,
|
|
34452
34525
|
luvioRequestMethod: undefined,
|
|
34453
34526
|
},
|
|
34454
34527
|
eventObservers,
|
|
@@ -35029,4 +35102,4 @@ withDefaultLuvio((luvio) => {
|
|
|
35029
35102
|
});
|
|
35030
35103
|
|
|
35031
35104
|
export { API_NAMESPACE, InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$H as ObjectInfoDirectoryEntryRepresentationType, RepresentationType$M as ObjectInfoRepresentationType, RECORD_FIELDS_KEY_JUNCTION, RECORD_ID_PREFIX, RECORD_REPRESENTATION_NAME, RECORD_VIEW_ENTITY_ID_PREFIX, RECORD_VIEW_ENTITY_REPRESENTATION_NAME, RepresentationType$R as RecordRepresentationRepresentationType, TTL$x as RecordRepresentationTTL, RepresentationType$R as RecordRepresentationType, VERSION$1d 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, 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, getRelatedListsActions_imperative, getRelatedListsCount, getRelatedListsCount_imperative, getRelatedListsInfo, getRelatedListsInfo_imperative, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadata, getSearchFilterMetadata_imperative, getSearchFilterOptions, getSearchFilterOptions_imperative, getSearchResults, getSearchResults_imperative, getTypeCacheKeys$T 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$1Q as keyBuilderObjectInfo, keyBuilder$1J as keyBuilderQuickActionExecutionRepresentation, keyBuilder$1$ as keyBuilderRecord, notifyListInfoUpdateAvailable, notifyListViewSummaryUpdateAvailable, notifyQuickActionDefaultsUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, registerPrefetcher, updateLayoutUserState, updateListInfoByName, updateListPreferences, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
35032
|
-
// version: 1.
|
|
35105
|
+
// version: 1.249.0-15efc7f9b
|
|
@@ -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.152.2-f6f687b3
|
|
99
99
|
|
|
100
100
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
101
101
|
|
package/src/raml/api.raml
CHANGED
|
@@ -1165,6 +1165,10 @@ types:
|
|
|
1165
1165
|
description: Input parameters to request on Search for keyword type
|
|
1166
1166
|
type: object
|
|
1167
1167
|
properties:
|
|
1168
|
+
configurationName:
|
|
1169
|
+
description: A configuration name defined in Search Manager
|
|
1170
|
+
type: string
|
|
1171
|
+
required: false #TODO: handrolled for W-13591079
|
|
1168
1172
|
filters:
|
|
1169
1173
|
description: Filters to apply on our results
|
|
1170
1174
|
type: array
|
|
@@ -1197,6 +1201,9 @@ types:
|
|
|
1197
1201
|
description: Root of the keyword search response
|
|
1198
1202
|
type: object
|
|
1199
1203
|
properties:
|
|
1204
|
+
configurationName:
|
|
1205
|
+
description: Configuration Name to be applied
|
|
1206
|
+
type: string | nil
|
|
1200
1207
|
keywordSearchResult:
|
|
1201
1208
|
description: Search’s scoped result collection
|
|
1202
1209
|
type: SearchResultCollectionRepresentation
|
|
@@ -4167,6 +4174,10 @@ types:
|
|
|
4167
4174
|
- KeywordSearchResults
|
|
4168
4175
|
- QnAResult
|
|
4169
4176
|
required: false #TODO: handrolled for W-10327520
|
|
4177
|
+
configurationName:
|
|
4178
|
+
description: A configuration name defined in Search Manager
|
|
4179
|
+
type: string
|
|
4180
|
+
required: false #TODO: handrolled for W-13591079
|
|
4170
4181
|
objectApiNames:
|
|
4171
4182
|
description: A list of supported objects, such as Account.
|
|
4172
4183
|
type: array
|
|
@@ -4231,6 +4242,9 @@ types:
|
|
|
4231
4242
|
description: Root of the search response
|
|
4232
4243
|
type: object
|
|
4233
4244
|
properties:
|
|
4245
|
+
configurationName:
|
|
4246
|
+
description: Configuration Name to be applied
|
|
4247
|
+
type: string | nil
|
|
4234
4248
|
keywordSearchResults:
|
|
4235
4249
|
description: Keyword Search Results Response
|
|
4236
4250
|
type: KeywordSearchResultsRepresentation | nil
|
|
@@ -7450,6 +7464,7 @@ types:
|
|
|
7450
7464
|
(oas-body-name): options
|
|
7451
7465
|
/search/results/keyword:
|
|
7452
7466
|
post:
|
|
7467
|
+
displayName: postKeywordSearchResults
|
|
7453
7468
|
description: List all results over entities (or only one) for the keyword
|
|
7454
7469
|
results type
|
|
7455
7470
|
responses:
|
package/src/raml/luvio.raml
CHANGED
|
@@ -448,12 +448,14 @@ types:
|
|
|
448
448
|
(luvio.ttl): 200
|
|
449
449
|
(luvio.key): # to get it working, our key should be computed with input parameters.
|
|
450
450
|
query: query
|
|
451
|
+
configurationName: configurationName
|
|
451
452
|
KeywordSearchResultsSummaryRepresentation:
|
|
452
453
|
(luvio.opaque): true
|
|
453
454
|
(luvio.ttl): 200
|
|
454
455
|
(luvio.key): # to get it working, our key should be computed with input parameters.
|
|
455
456
|
query: query
|
|
456
457
|
objectApiName: objectApiName
|
|
458
|
+
configurationName: configurationName
|
|
457
459
|
SimplifiedBatchRepresentation:
|
|
458
460
|
examples:
|
|
459
461
|
mockGetObjectInfosResponse: !include ../mocks/types/SimplifiedBatchRepresentation/object-Opportunity-Account.json
|
|
@@ -1726,6 +1728,7 @@ types:
|
|
|
1726
1728
|
(luvio.method): get
|
|
1727
1729
|
(luvio.key):
|
|
1728
1730
|
query: queryParams.q
|
|
1731
|
+
configurationName: body.configurationName || null
|
|
1729
1732
|
(luvio.adapter):
|
|
1730
1733
|
name: getSearchResults
|
|
1731
1734
|
/search/results/keyword:
|
|
@@ -1735,6 +1738,7 @@ types:
|
|
|
1735
1738
|
(luvio.key):
|
|
1736
1739
|
query: queryParams.q
|
|
1737
1740
|
objectApiName: queryParams.objectApiName
|
|
1741
|
+
configurationName: body.configurationName || null
|
|
1738
1742
|
(luvio.adapter):
|
|
1739
1743
|
name: getKeywordSearchResults
|
|
1740
1744
|
/predupe:
|