@coveo/quantic 3.29.3 → 3.29.4-pre.0965fe3ac6
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/lwc/quanticCategoryFacetValue/quanticCategoryFacetValue.js +1 -1
- package/force-app/main/default/lwc/quanticColoredResultBadge/quanticColoredResultBadge.js +1 -1
- package/force-app/main/default/lwc/quanticFacetValue/quanticFacetValue.js +1 -1
- package/force-app/main/default/lwc/quanticQuickviewContent/quanticQuickviewContent.js +1 -1
- package/force-app/main/default/lwc/quanticResult/quanticResult.js +1 -1
- package/force-app/main/default/lwc/quanticResultDate/quanticResultDate.js +1 -1
- package/force-app/main/default/lwc/quanticResultField/quanticResultField.js +1 -1
- package/force-app/main/default/lwc/quanticResultHighlightedTextField/quanticResultHighlightedTextField.js +1 -1
- package/force-app/main/default/lwc/quanticResultLabel/quanticResultLabel.js +1 -1
- package/force-app/main/default/lwc/quanticResultLink/quanticResultLink.js +1 -1
- package/force-app/main/default/lwc/quanticResultMultiValueText/quanticResultMultiValueText.js +1 -1
- package/force-app/main/default/lwc/quanticResultNumber/quanticResultNumber.js +1 -1
- package/force-app/main/default/lwc/quanticResultPrintableUri/quanticResultPrintableUri.js +1 -1
- package/force-app/main/default/lwc/quanticResultTag/quanticResultTag.js +1 -1
- package/force-app/main/default/lwc/quanticResultText/quanticResultText.js +1 -1
- package/force-app/main/default/lwc/quanticViewedByCustomerBadge/quanticViewedByCustomerBadge.js +1 -1
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +8 -8
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/search-analytics.d.ts +5 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/common/product.d.ts +4 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/generated-answer-stream.d.ts +15 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/stream-answer-actions.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/stream-answer-api-state.d.ts +6 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/stream-answer-api.d.ts +8 -28
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/tests/stream-answer-api-state-mock.d.ts +12 -12
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/range-facet/date-facet/date-range.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/range-facets/date-facet-set/interfaces/request.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/generated-answer/generated-answer-selectors.d.ts +1 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/legacy/search-request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/state/state-sections.d.ts +8 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/utils/facet-utils.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/headless.js +11 -11
- 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
|
@@ -90,13 +90,15 @@ export declare class SearchAnalyticsProvider extends BaseAnalyticsProvider<State
|
|
|
90
90
|
protected get responseTime(): number;
|
|
91
91
|
protected get numberOfResults(): number;
|
|
92
92
|
}
|
|
93
|
-
interface LegacyConfigureAnalyticsOptions {
|
|
93
|
+
interface LegacyConfigureAnalyticsOptions<State extends ConfigurationSection = StateNeededBySearchAnalyticsProvider> {
|
|
94
94
|
logger: Logger;
|
|
95
95
|
analyticsClientMiddleware?: AnalyticsClientSendEventHook;
|
|
96
96
|
preprocessRequest?: PreprocessRequest;
|
|
97
97
|
provider?: SearchPageClientProvider;
|
|
98
|
-
getState():
|
|
98
|
+
getState(): State;
|
|
99
99
|
}
|
|
100
|
-
export declare const configureLegacyAnalytics: ({ logger, getState, analyticsClientMiddleware, preprocessRequest, provider, }: LegacyConfigureAnalyticsOptions
|
|
100
|
+
export declare const configureLegacyAnalytics: <State extends ConfigurationSection = StateNeededBySearchAnalyticsProvider>({ logger, getState, analyticsClientMiddleware, preprocessRequest, provider, }: LegacyConfigureAnalyticsOptions<State> & {
|
|
101
|
+
provider: SearchPageClientProvider;
|
|
102
|
+
}) => CoveoSearchPageClient;
|
|
101
103
|
export declare const getPageID: () => string;
|
|
102
104
|
export {};
|
|
@@ -130,6 +130,10 @@ export interface BaseProduct {
|
|
|
130
130
|
* The length and offset of each word to highlight in the product excerpt string.
|
|
131
131
|
*/
|
|
132
132
|
excerptsHighlights?: HighlightKeyword[];
|
|
133
|
+
/**
|
|
134
|
+
* The ID of the response that returned the product.
|
|
135
|
+
*/
|
|
136
|
+
responseId?: string;
|
|
133
137
|
}
|
|
134
138
|
export interface Product extends BaseProduct {
|
|
135
139
|
/**
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { GeneratedContentFormat } from '../../features/generated-answer/generated-response-format.js';
|
|
2
|
+
import type { GeneratedAnswerCitation } from '../generated-answer/generated-answer-event-payload.js';
|
|
3
|
+
export interface GeneratedAnswerStream {
|
|
4
|
+
answerId?: string;
|
|
5
|
+
contentFormat?: GeneratedContentFormat;
|
|
6
|
+
answer?: string;
|
|
7
|
+
citations?: GeneratedAnswerCitation[];
|
|
8
|
+
generated?: boolean;
|
|
9
|
+
isStreaming: boolean;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
error?: {
|
|
12
|
+
message: string;
|
|
13
|
+
code: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NavigatorContext } from '../../app/navigator-context-provider.js';
|
|
2
|
-
import {
|
|
2
|
+
import type { StreamAnswerAPIState } from './stream-answer-api-state.js';
|
|
3
3
|
export declare const triggerSearchRequest: import("@reduxjs/toolkit").AsyncThunk<void, {
|
|
4
|
-
state:
|
|
4
|
+
state: StreamAnswerAPIState;
|
|
5
5
|
navigatorContext: NavigatorContext;
|
|
6
6
|
}, {
|
|
7
7
|
state?: unknown;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SearchAppState } from '../../state/search-app-state.js';
|
|
2
|
+
import type { ConfigurationSection, GeneratedAnswerSection, GetAnswerQuerySection, InsightConfigurationSection, TabSection } from '../../state/state-sections.js';
|
|
3
|
+
export type StreamAnswerAPIState = {
|
|
4
|
+
searchHub: string;
|
|
5
|
+
pipeline: string;
|
|
6
|
+
} & GetAnswerQuerySection & ConfigurationSection & Partial<SearchAppState> & Partial<InsightConfigurationSection> & GeneratedAnswerSection & Partial<TabSection>;
|
|
@@ -1,30 +1,10 @@
|
|
|
1
1
|
import { type ThunkDispatch, type UnknownAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { type NavigatorContext } from '../../app/navigator-context-provider.js';
|
|
3
|
-
import type { GeneratedContentFormat } from '../../features/generated-answer/generated-response-format.js';
|
|
4
|
-
import type { SearchAppState } from '../../state/search-app-state.js';
|
|
5
|
-
import type { ConfigurationSection, GeneratedAnswerSection, InsightConfigurationSection, TabSection } from '../../state/state-sections.js';
|
|
6
3
|
import type { EventSourceMessage } from '../../utils/fetch-event-source/parse.js';
|
|
7
|
-
import type { GeneratedAnswerCitation } from '../generated-answer/generated-answer-event-payload.js';
|
|
8
4
|
import type { SearchRequest } from '../search/search/search-request.js';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
answer: ReturnType<typeof answerApi.reducer>;
|
|
13
|
-
} & ConfigurationSection & Partial<SearchAppState> & Partial<InsightConfigurationSection> & GeneratedAnswerSection & Partial<TabSection>;
|
|
14
|
-
export interface GeneratedAnswerStream {
|
|
15
|
-
answerId?: string;
|
|
16
|
-
contentFormat?: GeneratedContentFormat;
|
|
17
|
-
answer?: string;
|
|
18
|
-
citations?: GeneratedAnswerCitation[];
|
|
19
|
-
generated?: boolean;
|
|
20
|
-
isStreaming: boolean;
|
|
21
|
-
isLoading: boolean;
|
|
22
|
-
error?: {
|
|
23
|
-
message: string;
|
|
24
|
-
code: number;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export declare const updateCacheWithEvent: (event: EventSourceMessage, draft: GeneratedAnswerStream, dispatch: ThunkDispatch<StateNeededByAnswerAPI, unknown, UnknownAction>) => void;
|
|
5
|
+
import type { GeneratedAnswerStream } from './generated-answer-stream.js';
|
|
6
|
+
import type { StreamAnswerAPIState } from './stream-answer-api-state.js';
|
|
7
|
+
export declare const updateCacheWithEvent: (event: EventSourceMessage, draft: GeneratedAnswerStream, dispatch: ThunkDispatch<StreamAnswerAPIState, unknown, UnknownAction>) => void;
|
|
28
8
|
export declare const answerApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {} & import("@reduxjs/toolkit/query").RetryOptions, {}>, {
|
|
29
9
|
getAnswer: import("@reduxjs/toolkit/query").QueryDefinition<Partial<SearchRequest>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {} & import("@reduxjs/toolkit/query").RetryOptions, {}>, never, GeneratedAnswerStream, "answer">;
|
|
30
10
|
}, "answer", never, typeof import("@reduxjs/toolkit/query").coreModuleName>;
|
|
@@ -73,7 +53,7 @@ export declare const selectAnswerTriggerParams: ((state: any, ...params: any[])
|
|
|
73
53
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
74
54
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
75
55
|
};
|
|
76
|
-
export declare const constructAnswerQueryParams: (state:
|
|
56
|
+
export declare const constructAnswerQueryParams: (state: StreamAnswerAPIState, usage: "fetch" | "select", navigatorContext: NavigatorContext) => {
|
|
77
57
|
analytics?: {
|
|
78
58
|
actionCause?: string;
|
|
79
59
|
customData?: object;
|
|
@@ -100,12 +80,12 @@ export declare const constructAnswerQueryParams: (state: StateNeededByAnswerAPI,
|
|
|
100
80
|
} | undefined;
|
|
101
81
|
enableDidYouMean?: boolean | undefined;
|
|
102
82
|
fieldsToInclude?: string[] | undefined;
|
|
103
|
-
facets?: (import("../../features/facets/facet-set/interfaces/request.js").FacetRequest | import("../../features/facets/category-facet-set/interfaces/request.js").CategoryFacetRequest | import("../../features/facets/range-facets/
|
|
83
|
+
facets?: (import("../../features/facets/facet-set/interfaces/request.js").FacetRequest | import("../../features/facets/category-facet-set/interfaces/request.js").CategoryFacetRequest | import("../../features/facets/range-facets/date-facet-set/interfaces/request.js").DateFacetRequest | import("../../features/facets/range-facets/numeric-facet-set/interfaces/request.js").NumericFacetRequest)[] | undefined;
|
|
104
84
|
pipeline?: string | undefined;
|
|
105
85
|
searchHub?: string | undefined;
|
|
106
86
|
pipelineRuleParameters: {
|
|
107
87
|
mlGenerativeQuestionAnswering: {
|
|
108
|
-
responseFormat: import("../../
|
|
88
|
+
responseFormat: import("../../index.js").GeneratedResponseFormat;
|
|
109
89
|
citationsFieldToInclude: string[];
|
|
110
90
|
};
|
|
111
91
|
};
|
|
@@ -117,8 +97,8 @@ export declare const constructAnswerQueryParams: (state: StateNeededByAnswerAPI,
|
|
|
117
97
|
aq?: string | undefined;
|
|
118
98
|
q: string | undefined;
|
|
119
99
|
};
|
|
120
|
-
export declare const fetchAnswer: (state:
|
|
121
|
-
export declare const selectAnswer: (state:
|
|
100
|
+
export declare const fetchAnswer: (state: StreamAnswerAPIState, navigatorContext: NavigatorContext) => import("redux-thunk").ThunkAction<import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<Partial<SearchRequest>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {} & import("@reduxjs/toolkit/query").RetryOptions, {}>, never, GeneratedAnswerStream, "answer">>, any, any, UnknownAction>;
|
|
101
|
+
export declare const selectAnswer: (state: StreamAnswerAPIState, navigatorContext?: NavigatorContext) => ({
|
|
122
102
|
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
123
103
|
originalArgs?: undefined | undefined;
|
|
124
104
|
data?: undefined | undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/** biome-ignore-all lint/suspicious/noExplicitAny: <mock> */
|
|
2
|
-
import type {
|
|
3
|
-
export declare const streamAnswerAPIStateMock:
|
|
4
|
-
export declare const streamAnswerAPIStateMockWithATabWithAnExpression:
|
|
5
|
-
export declare const streamAnswerAPIStateMockWithoutAnyTab:
|
|
6
|
-
export declare const streamAnswerAPIStateMockWithStaticFiltersSelected:
|
|
7
|
-
export declare const streamAnswerAPIStateMockWithNonValidFilters:
|
|
8
|
-
export declare const streamAnswerAPIStateMockWithoutAnyFilters:
|
|
9
|
-
export declare const streamAnswerAPIStateMockWithStaticFiltersAndTabExpression:
|
|
2
|
+
import type { StreamAnswerAPIState } from '../stream-answer-api-state.js';
|
|
3
|
+
export declare const streamAnswerAPIStateMock: StreamAnswerAPIState;
|
|
4
|
+
export declare const streamAnswerAPIStateMockWithATabWithAnExpression: StreamAnswerAPIState;
|
|
5
|
+
export declare const streamAnswerAPIStateMockWithoutAnyTab: StreamAnswerAPIState;
|
|
6
|
+
export declare const streamAnswerAPIStateMockWithStaticFiltersSelected: StreamAnswerAPIState;
|
|
7
|
+
export declare const streamAnswerAPIStateMockWithNonValidFilters: StreamAnswerAPIState;
|
|
8
|
+
export declare const streamAnswerAPIStateMockWithoutAnyFilters: StreamAnswerAPIState;
|
|
9
|
+
export declare const streamAnswerAPIStateMockWithStaticFiltersAndTabExpression: StreamAnswerAPIState;
|
|
10
10
|
export declare const streamAnswerAPIStateMockWithStaticFiltersAndTabExpressionWithEmptyCQ: {
|
|
11
11
|
advancedSearchQueries: {
|
|
12
12
|
cq: string;
|
|
@@ -26,9 +26,9 @@ export declare const streamAnswerAPIStateMockWithStaticFiltersAndTabExpressionWi
|
|
|
26
26
|
};
|
|
27
27
|
searchHub: string;
|
|
28
28
|
pipeline: string;
|
|
29
|
-
answer:
|
|
30
|
-
getAnswer: import("@reduxjs/toolkit/query").QueryDefinition<Partial<import("../../search/search/search-request.js").SearchRequest>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {} & import("@reduxjs/toolkit/query").RetryOptions, {}>, never, import("../
|
|
31
|
-
}, never, "answer"
|
|
29
|
+
answer: import("@reduxjs/toolkit/query").CombinedState<{
|
|
30
|
+
getAnswer: import("@reduxjs/toolkit/query").QueryDefinition<Partial<import("../../search/search/search-request.js").SearchRequest>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {} & import("@reduxjs/toolkit/query").RetryOptions, {}>, never, import("../generated-answer-stream.js").GeneratedAnswerStream, "answer">;
|
|
31
|
+
}, never, "answer">;
|
|
32
32
|
configuration: import("../../../features/configuration/configuration-state.js").ConfigurationState;
|
|
33
33
|
facetSet?: import("../../../features/facets/facet-set/facet-set-state.js").FacetSetState | undefined;
|
|
34
34
|
dateFacetSet?: import("../../../features/facets/range-facets/date-facet-set/date-facet-set-state.js").DateFacetSetState | undefined;
|
|
@@ -66,7 +66,7 @@ export declare const streamAnswerAPIStateMockWithStaticFiltersAndTabExpressionWi
|
|
|
66
66
|
instantResults?: import("../../../features/instant-results/instant-results-state.js").InstantResultsState | undefined;
|
|
67
67
|
insightConfiguration?: import("../../../features/insight-configuration/insight-configuration-state.js").InsightConfigurationState | undefined;
|
|
68
68
|
};
|
|
69
|
-
export declare const streamAnswerAPIStateMockWithoutSearchAction:
|
|
69
|
+
export declare const streamAnswerAPIStateMockWithoutSearchAction: StreamAnswerAPIState;
|
|
70
70
|
export declare const expectedStreamAnswerAPIParam: {
|
|
71
71
|
q: string;
|
|
72
72
|
aq: string;
|
|
@@ -5,11 +5,11 @@ import type { DateRangeRequest } from '../../../../../features/facets/range-face
|
|
|
5
5
|
export type DateRangeInput = AbsoluteDate | RelativeDate;
|
|
6
6
|
export interface DateRangeOptions {
|
|
7
7
|
/**
|
|
8
|
-
* The starting value for the date range. A date range can be either absolute or [relative](https://docs.coveo.com/en/headless/latest/reference/
|
|
8
|
+
* The starting value for the date range. A date range can be either absolute or [relative](https://docs.coveo.com/en/headless/latest/reference/documents/Search.DateFacet.relative-date-format.html).
|
|
9
9
|
*/
|
|
10
10
|
start: DateRangeInput;
|
|
11
11
|
/**
|
|
12
|
-
* The ending value for the date range. A date range can be either absolute or [relative](https://docs.coveo.com/en/headless/latest/reference/
|
|
12
|
+
* The ending value for the date range. A date range can be either absolute or [relative](https://docs.coveo.com/en/headless/latest/reference/documents/Search.DateFacet.relative-date-format.html).
|
|
13
13
|
*/
|
|
14
14
|
end: DateRangeInput;
|
|
15
15
|
/**
|
|
@@ -7,11 +7,11 @@ import type { BaseRangeFacetRequest } from '../../generic/interfaces/request.js'
|
|
|
7
7
|
*/
|
|
8
8
|
export interface DateRangeRequest {
|
|
9
9
|
/**
|
|
10
|
-
* The starting value for the date range, formatted as `YYYY/MM/DD@HH:mm:ss` or the [Relative Date](https://docs.coveo.com/en/headless/latest/reference/
|
|
10
|
+
* The starting value for the date range, formatted as `YYYY/MM/DD@HH:mm:ss` or the [Relative Date](https://docs.coveo.com/en/headless/latest/reference/documents/Search.DateFacet.relative-date-format.html) format "period-amount-unit".
|
|
11
11
|
*/
|
|
12
12
|
start: string;
|
|
13
13
|
/**
|
|
14
|
-
* The ending value for the date range, formatted as `YYYY/MM/DD@HH:mm:ss` or the [Relative Date](https://docs.coveo.com/en/headless/latest/reference/
|
|
14
|
+
* The ending value for the date range, formatted as `YYYY/MM/DD@HH:mm:ss` or the [Relative Date](https://docs.coveo.com/en/headless/latest/reference/documents/Search.DateFacet.relative-date-format.html) format "period-amount-unit".
|
|
15
15
|
*/
|
|
16
16
|
end: string;
|
|
17
17
|
/**
|
|
@@ -2,8 +2,7 @@ import type { GeneratedAnswerCitation } from '../../controllers/generated-answer
|
|
|
2
2
|
import type { SearchAppState } from '../../state/search-app-state.js';
|
|
3
3
|
import type { GeneratedAnswerSection } from '../../state/state-sections.js';
|
|
4
4
|
export declare const generativeQuestionAnsweringIdSelector: (state: Partial<SearchAppState>) => {
|
|
5
|
-
|
|
6
|
-
id: string | undefined;
|
|
5
|
+
generativeQuestionAnsweringId: string | undefined;
|
|
7
6
|
};
|
|
8
7
|
export declare const selectFieldsToIncludeInCitation: (state: Partial<GeneratedAnswerSection>) => string[] | undefined;
|
|
9
8
|
export declare const citationSourceSelector: ((state: Partial<GeneratedAnswerSection>, citationId: string) => GeneratedAnswerCitation | undefined) & {
|
|
@@ -24,7 +24,7 @@ export declare const buildSearchRequest: (state: StateNeededBySearchRequest, eve
|
|
|
24
24
|
facetOptions?: import("../../facet-options/facet-options.js").FacetOptions;
|
|
25
25
|
numberOfResults?: number;
|
|
26
26
|
firstResult?: number;
|
|
27
|
-
facets?: (import("../../facets/facet-set/interfaces/request.js").FacetRequest | import("../../facets/category-facet-set/interfaces/request.js").CategoryFacetRequest | import("../../facets/range-facets/
|
|
27
|
+
facets?: (import("../../facets/facet-set/interfaces/request.js").FacetRequest | import("../../facets/category-facet-set/interfaces/request.js").CategoryFacetRequest | import("../../facets/range-facets/date-facet-set/interfaces/request.js").DateFacetRequest | import("../../facets/range-facets/numeric-facet-set/interfaces/request.js").NumericFacetRequest)[] | undefined;
|
|
28
28
|
cq?: string;
|
|
29
29
|
queryCorrection?: {
|
|
30
30
|
enabled?: boolean;
|
|
@@ -25,7 +25,7 @@ export declare const buildSearchRequest: (state: StateNeededBySearchRequest, nav
|
|
|
25
25
|
facetOptions?: import("../facet-options/facet-options.js").FacetOptions;
|
|
26
26
|
numberOfResults?: number;
|
|
27
27
|
firstResult?: number;
|
|
28
|
-
facets?: (import("../facets/facet-set/interfaces/request.js").FacetRequest | import("../facets/category-facet-set/interfaces/request.js").CategoryFacetRequest | import("../facets/range-facets/
|
|
28
|
+
facets?: (import("../facets/facet-set/interfaces/request.js").FacetRequest | import("../facets/category-facet-set/interfaces/request.js").CategoryFacetRequest | import("../facets/range-facets/date-facet-set/interfaces/request.js").DateFacetRequest | import("../facets/range-facets/numeric-facet-set/interfaces/request.js").NumericFacetRequest)[] | undefined;
|
|
29
29
|
cq?: string;
|
|
30
30
|
queryCorrection?: {
|
|
31
31
|
enabled?: boolean;
|
package/force-app/main/default/staticresources/coveoheadless/definitions/state/state-sections.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { BaseQueryFn, CombinedState, FetchArgs, FetchBaseQueryError, QueryDefinition, RetryOptions } from '@reduxjs/toolkit/query';
|
|
2
|
+
import type { GeneratedAnswerStream } from '../api/knowledge/generated-answer-stream.js';
|
|
3
|
+
import type { SearchRequest } from '../api/search/search/search-request.js';
|
|
1
4
|
import type { StateWithHistory } from '../app/undoable.js';
|
|
2
5
|
import type { AdvancedSearchQueriesState } from '../features/advanced-search-queries/advanced-search-queries-state.js';
|
|
3
6
|
import type { AttachedResultsState } from '../features/attached-results/attached-results-state.js';
|
|
@@ -438,3 +441,8 @@ export interface InsightUserActionsSection {
|
|
|
438
441
|
export interface ManualRangeSection {
|
|
439
442
|
manualNumericFacetSet: ManualNumericFacetSetState;
|
|
440
443
|
}
|
|
444
|
+
export interface GetAnswerQuerySection {
|
|
445
|
+
answer: CombinedState<{
|
|
446
|
+
getAnswer: QueryDefinition<Partial<SearchRequest>, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError, {} & RetryOptions, {}>, never, GeneratedAnswerStream, 'answer'>;
|
|
447
|
+
}, never, 'answer'>;
|
|
448
|
+
}
|
package/force-app/main/default/staticresources/coveoheadless/definitions/utils/facet-utils.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export declare function sortFacets<T extends {
|
|
|
9
9
|
facetId: string;
|
|
10
10
|
}>(facets: T[], sortOrder: string[]): T[];
|
|
11
11
|
export declare const sortCriteriaMap: Record<string, SortCriteria>;
|
|
12
|
-
export declare function getFacets(state: StateNeededBySearchRequest): (import("../features/facets/facet-set/interfaces/request.js").FacetRequest | import("../features/facets/category-facet-set/interfaces/request.js").CategoryFacetRequest | import("../features/facets/range-facets/
|
|
12
|
+
export declare function getFacets(state: StateNeededBySearchRequest): (import("../features/facets/facet-set/interfaces/request.js").FacetRequest | import("../features/facets/category-facet-set/interfaces/request.js").CategoryFacetRequest | import("../features/facets/range-facets/date-facet-set/interfaces/request.js").DateFacetRequest | import("../features/facets/range-facets/numeric-facet-set/interfaces/request.js").NumericFacetRequest)[];
|
|
13
13
|
export {};
|