@salesforce/lds-runtime-mobile 1.322.0 → 1.323.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/main.js +248 -115
- package/dist/types/adapters/types/NLSResultsRepresentation.d.ts +40 -0
- package/dist/types/adapters/types/SearchResultsSummaryRepresentation.d.ts +4 -0
- package/dist/types/drafts/records/actionHandlers/SideEffectHook.d.ts +19 -0
- package/dist/types/drafts/records/actionHandlers/UiApiRecordActionHandler.d.ts +3 -0
- package/dist/types/sfs/sfsCustomSideEffects.d.ts +3 -0
- package/package.json +14 -14
- package/sfdc/main.js +248 -115
- package/sfdc/types/adapters/types/NLSResultsRepresentation.d.ts +40 -0
- package/sfdc/types/adapters/types/SearchResultsSummaryRepresentation.d.ts +4 -0
- package/sfdc/types/drafts/records/actionHandlers/SideEffectHook.d.ts +19 -0
- package/sfdc/types/drafts/records/actionHandlers/UiApiRecordActionHandler.d.ts +3 -0
- package/sfdc/types/sfs/sfsCustomSideEffects.d.ts +3 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
import type { SearchResultCollectionRepresentation as SearchResultCollectionRepresentation_SearchResultCollectionRepresentation } from './SearchResultCollectionRepresentation';
|
|
3
|
+
export declare const VERSION = "04f51bdf8ed7e213acba78987e1ce377";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: NLSResultsRepresentation, existing: NLSResultsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): NLSResultsRepresentationNormalized;
|
|
7
|
+
export interface DynamicIngestParams {
|
|
8
|
+
results: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
}
|
|
10
|
+
export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: NLSResultsRepresentation, existing: NLSResultsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => NLSResultsRepresentationNormalized;
|
|
11
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
12
|
+
export interface DynamicSelectParams {
|
|
13
|
+
results?: $64$luvio_engine_LinkSelection;
|
|
14
|
+
}
|
|
15
|
+
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
16
|
+
export declare function equals(existing: NLSResultsRepresentationNormalized, incoming: NLSResultsRepresentationNormalized): boolean;
|
|
17
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
18
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: NLSResultsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
19
|
+
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
20
|
+
/**
|
|
21
|
+
* Natural Language Search Results Response
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface NLSResultsRepresentationNormalized {
|
|
27
|
+
/** Indicates that no results were found */
|
|
28
|
+
hasNoResult: boolean | null;
|
|
29
|
+
results: $64$luvio_engine_StoreLink;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Natural Language Search Results Response
|
|
33
|
+
*
|
|
34
|
+
* Keys:
|
|
35
|
+
* (none)
|
|
36
|
+
*/
|
|
37
|
+
export interface NLSResultsRepresentation {
|
|
38
|
+
hasNoResult: boolean | null;
|
|
39
|
+
results: SearchResultCollectionRepresentation_SearchResultCollectionRepresentation;
|
|
40
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { KeywordSearchResultsRepresentation as KeywordSearchResultsRepresentation_KeywordSearchResultsRepresentation } from './KeywordSearchResultsRepresentation';
|
|
2
2
|
import type { SearchAnswersResultRepresentation as SearchAnswersResultRepresentation_SearchAnswersResultRepresentation } from './SearchAnswersResultRepresentation';
|
|
3
|
+
import type { NLSResultsRepresentation as NLSResultsRepresentation_NLSResultsRepresentation } from './NLSResultsRepresentation';
|
|
3
4
|
import type { SearchObjectOptionsOutputRepresentation as SearchObjectOptionsOutputRepresentation_SearchObjectOptionsOutputRepresentation } from './SearchObjectOptionsOutputRepresentation';
|
|
4
5
|
import type { 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';
|
|
5
6
|
export declare const TTL = 200;
|
|
@@ -33,6 +34,8 @@ export interface SearchResultsSummaryRepresentationNormalized {
|
|
|
33
34
|
configurationName: string | null;
|
|
34
35
|
/** Keyword Search Results Response */
|
|
35
36
|
keywordSearchResults: $64$luvio_engine_StoreLink | null;
|
|
37
|
+
/** Natural Language Search Results Response */
|
|
38
|
+
nlsResults: $64$luvio_engine_StoreLink | null;
|
|
36
39
|
/** Search Answers Response */
|
|
37
40
|
qnaResult: SearchAnswersResultRepresentation_SearchAnswersResultRepresentation | null;
|
|
38
41
|
/** Search query that yielded the search results */
|
|
@@ -54,6 +57,7 @@ export interface SearchResultsSummaryRepresentationNormalized {
|
|
|
54
57
|
export interface SearchResultsSummaryRepresentation {
|
|
55
58
|
configurationName: string | null;
|
|
56
59
|
keywordSearchResults: KeywordSearchResultsRepresentation_KeywordSearchResultsRepresentation | null;
|
|
60
|
+
nlsResults: NLSResultsRepresentation_NLSResultsRepresentation | null;
|
|
57
61
|
qnaResult: SearchAnswersResultRepresentation_SearchAnswersResultRepresentation | null;
|
|
58
62
|
query: string;
|
|
59
63
|
queryId: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SideEffect } from '../../sideEffects';
|
|
2
|
+
interface BaseSideEffectHook {
|
|
3
|
+
on: 'post' | 'patch' | 'delete';
|
|
4
|
+
apiName: string;
|
|
5
|
+
}
|
|
6
|
+
export interface CreateSideEffectHook extends BaseSideEffectHook {
|
|
7
|
+
on: 'post';
|
|
8
|
+
then(draftActionId: string, draftActionTimestamp: number, draftRecordId: string, fields: Record<string, any>): Promise<SideEffect[]>;
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateSideEffectHook extends BaseSideEffectHook {
|
|
11
|
+
on: 'patch';
|
|
12
|
+
then(draftActionId: string, draftActionTimestamp: number, draftRecordId: string, fields: Record<string, any>): Promise<SideEffect[]>;
|
|
13
|
+
}
|
|
14
|
+
export interface DeleteSideEffectHook extends BaseSideEffectHook {
|
|
15
|
+
on: 'delete';
|
|
16
|
+
then(draftActionId: string, draftActionTimestamp: number, draftRecordId: string): Promise<SideEffect[]>;
|
|
17
|
+
}
|
|
18
|
+
export type SideEffectHook = CreateSideEffectHook | UpdateSideEffectHook | DeleteSideEffectHook;
|
|
19
|
+
export {};
|
|
@@ -5,6 +5,7 @@ import type { ObjectInfoService } from '../../utils/types';
|
|
|
5
5
|
import type { DraftIdAndKeyMapping } from '../../AbstractResourceRequestActionHandler';
|
|
6
6
|
import { AbstractResourceRequestActionHandler } from '../../AbstractResourceRequestActionHandler';
|
|
7
7
|
import type { SideEffect } from '../../sideEffects/sideEffects';
|
|
8
|
+
import type { SideEffectHook } from './SideEffectHook';
|
|
8
9
|
import type { UiApiDraftRecordService } from '../../UiApiDraftRecordService';
|
|
9
10
|
import type { RecordEffectingHandler } from './RecordEffectingHandler';
|
|
10
11
|
import { type SideEffectService } from '../../sideEffects/SideEffectService';
|
|
@@ -28,7 +29,9 @@ export declare class UiApiActionHandler extends AbstractResourceRequestActionHan
|
|
|
28
29
|
private readonly sideEffectService;
|
|
29
30
|
private readonly durableRecordStore;
|
|
30
31
|
handlerId: string;
|
|
32
|
+
private sideEffectHooks;
|
|
31
33
|
constructor(getLuvio: () => Luvio, networkAdapter: NetworkAdapter, draftQueue: DraftQueue, getRecordAdapter: Adapter<GetRecordConfig, RecordRepresentation>, objectInfoService: ObjectInfoService, isDraftId: (targetId: string) => boolean, recordService: UiApiDraftRecordService, sideEffectService: SideEffectService, durableRecordStore: DurableRecordStore);
|
|
34
|
+
setSideEffectHooks(hooks: SideEffectHook[]): void;
|
|
32
35
|
buildPendingAction(request: RecordResourceRequest, queue: DraftAction<unknown, unknown>[]): Promise<PendingDraftAction<ResourceRequest>>;
|
|
33
36
|
private getBackdatingFields;
|
|
34
37
|
getRedirectMappings(action: CompletedDraftAction<ResourceRequest, RecordRepresentation>): DraftIdAndKeyMapping[] | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-mobile",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.323.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS runtime for mobile/hybrid environments.",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -32,23 +32,23 @@
|
|
|
32
32
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-mobile"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
36
|
-
"@salesforce/lds-bindings": "^1.
|
|
37
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
35
|
+
"@salesforce/lds-adapters-uiapi": "^1.323.0",
|
|
36
|
+
"@salesforce/lds-bindings": "^1.323.0",
|
|
37
|
+
"@salesforce/lds-instrumentation": "^1.323.0",
|
|
38
38
|
"@salesforce/user": "0.0.21",
|
|
39
39
|
"o11y": "250.7.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@salesforce/lds-adapters-graphql": "^1.
|
|
43
|
-
"@salesforce/lds-drafts": "^1.
|
|
44
|
-
"@salesforce/lds-durable-records": "^1.
|
|
45
|
-
"@salesforce/lds-network-adapter": "^1.
|
|
46
|
-
"@salesforce/lds-network-nimbus": "^1.
|
|
47
|
-
"@salesforce/lds-store-binary": "^1.
|
|
48
|
-
"@salesforce/lds-store-nimbus": "^1.
|
|
49
|
-
"@salesforce/lds-store-sql": "^1.
|
|
50
|
-
"@salesforce/lds-utils-adapters": "^1.
|
|
51
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
42
|
+
"@salesforce/lds-adapters-graphql": "^1.323.0",
|
|
43
|
+
"@salesforce/lds-drafts": "^1.323.0",
|
|
44
|
+
"@salesforce/lds-durable-records": "^1.323.0",
|
|
45
|
+
"@salesforce/lds-network-adapter": "^1.323.0",
|
|
46
|
+
"@salesforce/lds-network-nimbus": "^1.323.0",
|
|
47
|
+
"@salesforce/lds-store-binary": "^1.323.0",
|
|
48
|
+
"@salesforce/lds-store-nimbus": "^1.323.0",
|
|
49
|
+
"@salesforce/lds-store-sql": "^1.323.0",
|
|
50
|
+
"@salesforce/lds-utils-adapters": "^1.323.0",
|
|
51
|
+
"@salesforce/nimbus-plugin-lds": "^1.323.0",
|
|
52
52
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
53
53
|
"wait-for-expect": "^3.0.2"
|
|
54
54
|
},
|