@coveo/quantic 3.30.0-pre.ba54e8ea99 → 3.30.0-pre.bcfd5d176b
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/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +8 -8
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/attached-results/attached-results-actions-loader.d.ts +14 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/attached-results/attached-results-actions.d.ts +2 -9
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/attached-results/attached-results-analytics-actions-loader.d.ts +35 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/insight.index.d.ts +1 -0
- package/force-app/main/default/staticresources/coveoheadless/headless.js +7 -7
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +9 -9
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +7 -7
- package/package.json +2 -2
|
@@ -2,7 +2,6 @@ import type { PayloadAction } from '@reduxjs/toolkit';
|
|
|
2
2
|
import type { InsightEngine } from '../../app/insight-engine/insight-engine.js';
|
|
3
3
|
import { type SetAttachedResultsActionCreatorPayload } from './attached-results-actions.js';
|
|
4
4
|
import type { AttachedResult } from './attached-results-state.js';
|
|
5
|
-
export type { SetAttachedResultsActionCreatorPayload, AttachedResult };
|
|
6
5
|
/**
|
|
7
6
|
* The attached results action creators.
|
|
8
7
|
*
|
|
@@ -27,6 +26,20 @@ export interface AttachedResultsActionCreators {
|
|
|
27
26
|
* @returns A dispatchable action.
|
|
28
27
|
*/
|
|
29
28
|
setAttachedResults(payload: SetAttachedResultsActionCreatorPayload): PayloadAction<SetAttachedResultsActionCreatorPayload>;
|
|
29
|
+
/**
|
|
30
|
+
* Creates an action that attaches a result to a case.
|
|
31
|
+
*
|
|
32
|
+
* @param payload - The action creator payload containing the result to attach.
|
|
33
|
+
* @returns A dispatchable action.
|
|
34
|
+
*/
|
|
35
|
+
attachResult(payload: AttachedResult): PayloadAction<AttachedResult>;
|
|
36
|
+
/**
|
|
37
|
+
* Creates an action that detaches a result from a case.
|
|
38
|
+
*
|
|
39
|
+
* @param payload - The action creator payload containing the result to detach.
|
|
40
|
+
* @returns A dispatchable action.
|
|
41
|
+
*/
|
|
42
|
+
detachResult(payload: AttachedResult): PayloadAction<AttachedResult>;
|
|
30
43
|
}
|
|
31
44
|
/**
|
|
32
45
|
* Loads the `attachedResults` reducer and returns possible action creators.
|
|
@@ -9,13 +9,6 @@ export interface SetAttachedResultsActionCreatorPayload {
|
|
|
9
9
|
*/
|
|
10
10
|
loading?: boolean;
|
|
11
11
|
}
|
|
12
|
-
interface SetAttachToCaseAttachActionCreatorPayload {
|
|
13
|
-
result: AttachedResult;
|
|
14
|
-
}
|
|
15
|
-
interface SetAttachToCaseDetachActionCreatorPayload {
|
|
16
|
-
result: AttachedResult;
|
|
17
|
-
}
|
|
18
12
|
export declare const setAttachedResults: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SetAttachedResultsActionCreatorPayload], SetAttachedResultsActionCreatorPayload, "insight/attachToCase/setAttachedResults", never, never>;
|
|
19
|
-
export declare const attachResult: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload:
|
|
20
|
-
export declare const detachResult: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload:
|
|
21
|
-
export {};
|
|
13
|
+
export declare const attachResult: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: AttachedResult], AttachedResult, "insight/attachToCase/attach", never, never>;
|
|
14
|
+
export declare const detachResult: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: AttachedResult], AttachedResult, "insight/attachToCase/detach", never, never>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Result } from '../../api/search/search/result.js';
|
|
2
|
+
import type { InsightEngine } from '../../app/insight-engine/insight-engine.js';
|
|
3
|
+
import type { InsightAction } from '../analytics/analytics-utils.js';
|
|
4
|
+
/**
|
|
5
|
+
* The attached results action creators.
|
|
6
|
+
*
|
|
7
|
+
* @group Actions
|
|
8
|
+
* @category AttachedResults
|
|
9
|
+
*/
|
|
10
|
+
export interface AttachedResultsAnalyticsActionCreators {
|
|
11
|
+
/**
|
|
12
|
+
* Creates an analytics action for when a case attach event occurs.
|
|
13
|
+
*
|
|
14
|
+
* @param result - The result to attach.
|
|
15
|
+
* @returns A dispatchable action.
|
|
16
|
+
*/
|
|
17
|
+
logCaseAttach(result: Result): InsightAction;
|
|
18
|
+
/**
|
|
19
|
+
* Creates an analytics action for when a case detach event occurs.
|
|
20
|
+
*
|
|
21
|
+
* @param result - The result to detach.
|
|
22
|
+
* @returns A dispatchable action.
|
|
23
|
+
*/
|
|
24
|
+
logCaseDetach(result: Result): InsightAction;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Loads the `attachedResults` reducer and returns possible analytics action creators.
|
|
28
|
+
*
|
|
29
|
+
* @param engine - The headless engine.
|
|
30
|
+
* @returns An object holding the analytics action creators.
|
|
31
|
+
*
|
|
32
|
+
* @group Actions
|
|
33
|
+
* @category AttachedResults
|
|
34
|
+
*/
|
|
35
|
+
export declare function loadAttachedResultsAnalyticsActions(engine: InsightEngine): AttachedResultsAnalyticsActionCreators;
|
|
@@ -92,6 +92,7 @@ export { buildInsightInterface } from './controllers/insight-interface/insight-i
|
|
|
92
92
|
export * from './features/analytics/generic-analytics-actions-loader.js';
|
|
93
93
|
export * from './features/analytics/insight-analytics-actions-loader.js';
|
|
94
94
|
export * from './features/attached-results/attached-results-actions-loader.js';
|
|
95
|
+
export * from './features/attached-results/attached-results-analytics-actions-loader.js';
|
|
95
96
|
export * from './features/case-context/case-context-actions-loader.js';
|
|
96
97
|
export * from './features/context/context-actions-loader.js';
|
|
97
98
|
export type { CategoryFacetSortCriterion, CategoryFacetValueRequest, } from './features/facets/category-facet-set/interfaces/request.js';
|